From 2304a1e29f9567b43cfd2e5752c2063749faba5d Mon Sep 17 00:00:00 2001 From: Santiago Quiroga Date: Fri, 29 May 2026 17:11:12 -0700 Subject: [PATCH] chore(packages): purge all existing legacy snippet metadata json files --- ...etadata_google.analytics.data.v1alpha.json | 671 - ...metadata_google.analytics.data.v1beta.json | 639 - ...etadata_google.analytics.data.v1alpha.json | 671 - ...metadata_google.analytics.data.v1beta.json | 639 - ...ippet_metadata_google.cloud.speech.v1.json | 591 - ...etadata_google.cloud.speech.v1p1beta1.json | 591 - ...ippet_metadata_google.cloud.speech.v2.json | 1139 - ...ippet_metadata_google.cloud.speech.v1.json | 591 - ...etadata_google.cloud.speech.v1p1beta1.json | 591 - ...ippet_metadata_google.cloud.speech.v2.json | 1139 - ...nippet_metadata_google.cloud.tasks.v2.json | 719 - ...t_metadata_google.cloud.tasks.v2beta2.json | 971 - ...nippet_metadata_google.cloud.tasks.v2.json | 719 - ...t_metadata_google.cloud.tasks.v2beta2.json | 971 - ...data.google.cloud.bigquery.storage.v1.json | 427 - ...data_google.cloud.bigquery.storage.v1.json | 435 - ...google.cloud.bigquery.storage.v1alpha.json | 259 - ..._google.cloud.bigquery.storage.v1beta.json | 259 - ...google.cloud.bigquery.storage.v1beta1.json | 247 - ...google.cloud.bigquery.storage.v1beta1.json | 247 - ...pet_metadata_google.bigtable.admin.v2.json | 3087 - ...et_metadata.google.datastore.admin.v1.json | 303 - .../snippet_metadata.google.datastore.v1.json | 439 - ...et_metadata_google.datastore.admin.v1.json | 303 - .../snippet_metadata_google.datastore.v1.json | 455 - .../snippet_metadata.google.logging.v2.json | 1963 - .../snippet_metadata_google.logging.v2.json | 1963 - ...ppet_metadata_google.ads.admanager.v1.json | 7835 --- ...et_metadata_google.ads.datamanager.v1.json | 1063 - ...adata_google.ai.generativelanguage.v1.json | 351 - ..._google.ai.generativelanguage.v1alpha.json | 2591 - ...a_google.ai.generativelanguage.v1beta.json | 2679 - ..._google.ai.generativelanguage.v1beta2.json | 319 - ..._google.ai.generativelanguage.v1beta3.json | 879 - ...tadata_google.analytics.admin.v1alpha.json | 6787 -- ...etadata_google.analytics.admin.v1beta.json | 2423 - ...etadata_google.analytics.data.v1alpha.json | 763 - ...metadata_google.analytics.data.v1beta.json | 639 - ...nippet_metadata_google.api.apikeys.v2.json | 363 - ...et_metadata_google.api.cloudquotas.v1.json | 307 - ...etadata_google.api.cloudquotas.v1beta.json | 395 - ...metadata_google.api.servicecontrol.v1.json | 159 - ...metadata_google.api.servicecontrol.v2.json | 119 - ...adata_google.api.servicemanagement.v1.json | 599 - ...t_metadata_google.api.serviceusage.v1.json | 283 - ...adata_google.api.serviceusage.v1beta1.json | 923 - .../snippet_metadata_google.appengine.v1.json | 1531 - ...a_google.apps.events.subscriptions.v1.json | 287 - ...ogle.apps.events.subscriptions.v1beta.json | 287 - .../snippet_metadata_google.apps.meet.v2.json | 715 - ...ppet_metadata_google.apps.meet.v2beta.json | 931 - ...tadata_google.area120.tables.v1alpha1.json | 551 - .../v1/snippet_metadata_google.chat.v1.json | 1991 - ...tadata_google.cloud.accessapproval.v1.json | 395 - ...google.cloud.advisorynotifications.v1.json | 195 - ...t_metadata_google.cloud.aiplatform.v1.json | 16171 ----- ...adata_google.cloud.aiplatform.v1beta1.json | 19935 ------ ...ppet_metadata_google.cloud.alloydb.v1.json | 2027 - ...metadata_google.cloud.alloydb.v1alpha.json | 2079 - ..._metadata_google.cloud.alloydb.v1beta.json | 2079 - ...t_metadata_google.cloud.apigateway.v1.json | 703 - ...etadata_google.cloud.apigeeconnect.v1.json | 127 - ...tadata_google.cloud.apigeeregistry.v1.json | 1723 - ...ippet_metadata_google.cloud.apihub.v1.json | 3719 - ..._metadata_google.cloud.apiregistry.v1.json | 207 - ...adata_google.cloud.apiregistry.v1beta.json | 207 - ...ippet_metadata_google.cloud.apphub.v1.json | 1287 - ...adata_google.cloud.appoptimize.v1beta.json | 243 - ...nippet_metadata_google.cloud.asset.v1.json | 1183 - ...metadata_google.cloud.asset.v1p1beta1.json | 127 - ...metadata_google.cloud.asset.v1p2beta1.json | 227 - ...metadata_google.cloud.asset.v1p5beta1.json | 75 - ...metadata_google.cloud.asset.v1p7beta1.json | 75 - ...data_google.cloud.assuredworkloads.v1.json | 431 - ...google.cloud.assuredworkloads.v1beta1.json | 335 - ...metadata_google.cloud.auditmanager.v1.json | 391 - ...ippet_metadata_google.cloud.automl.v1.json | 907 - ..._metadata_google.cloud.automl.v1beta1.json | 1195 - ...pet_metadata_google.cloud.backupdr.v1.json | 1959 - ...ata_google.cloud.baremetalsolution.v2.json | 1947 - ...nippet_metadata_google.cloud.batch.v1.json | 347 - ...t_metadata_google.cloud.batch.v1alpha.json | 635 - ...le.cloud.beyondcorp.appconnections.v1.json | 323 - ...gle.cloud.beyondcorp.appconnectors.v1.json | 319 - ...oogle.cloud.beyondcorp.appgateways.v1.json | 215 - ...beyondcorp.clientconnectorservices.v1.json | 271 - ...le.cloud.beyondcorp.clientgateways.v1.json | 215 - ...google.cloud.bigquery.analyticshub.v1.json | 1315 - ...a_google.cloud.bigquery.connection.v1.json | 375 - ...gle.cloud.bigquery.connection.v1beta1.json | 419 - ...e.cloud.bigquery.dataexchange.v1beta1.json | 683 - ...google.cloud.bigquery.datapolicies.v1.json | 415 - ...e.cloud.bigquery.datapolicies.v1beta1.json | 367 - ...google.cloud.bigquery.datapolicies.v2.json | 467 - ...e.cloud.bigquery.datapolicies.v2beta1.json | 459 - ...google.cloud.bigquery.datatransfer.v1.json | 759 - ...ta_google.cloud.bigquery.migration.v2.json | 335 - ...ogle.cloud.bigquery.migration.v2alpha.json | 383 - ..._google.cloud.bigquery.reservation.v1.json | 1327 - ...adata_google.cloud.billing.budgets.v1.json | 235 - ..._google.cloud.billing.budgets.v1beta1.json | 235 - ...ppet_metadata_google.cloud.billing.v1.json | 615 - ...a_google.cloud.binaryauthorization.v1.json | 403 - ...gle.cloud.binaryauthorization.v1beta1.json | 351 - ...a_google.cloud.capacityplanner.v1beta.json | 659 - ...ta_google.cloud.certificatemanager.v1.json | 1343 - .../snippet_metadata_google.cloud.ces.v1.json | 2619 - ...ppet_metadata_google.cloud.ces.v1beta.json | 4339 -- ...ppet_metadata_google.cloud.channel.v1.json | 2555 - ...et_metadata_google.cloud.chronicle.v1.json | 3135 - ..._google.cloud.cloudcontrolspartner.v1.json | 615 - ...gle.cloud.cloudcontrolspartner.v1beta.json | 615 - ...pet_metadata_google.cloud.clouddms.v1.json | 2015 - ...ogle.cloud.cloudsecuritycompliance.v1.json | 1287 - ...loud.commerce.consumer.procurement.v1.json | 479 - ...ommerce.consumer.procurement.v1alpha1.json | 159 - ...ppet_metadata_google.cloud.compute.v1.json | 53003 -------------- ..._metadata_google.cloud.compute.v1beta.json | 57491 ---------------- ...metadata_google.cloud.compute.v1small.json | 335 - ...google.cloud.confidentialcomputing.v1.json | 247 - ....cloud.confidentialcomputing.v1alpha1.json | 107 - ...ippet_metadata_google.cloud.config.v1.json | 1787 - ...tadata_google.cloud.configdelivery.v1.json | 1219 - ...a_google.cloud.configdelivery.v1alpha.json | 1219 - ...ta_google.cloud.configdelivery.v1beta.json | 1219 - ...t_metadata_google.cloud.connectors.v1.json | 787 - ...google.cloud.contactcenterinsights.v1.json | 3355 - ...data_google.cloud.contentwarehouse.v1.json | 1343 - ...ta_google.cloud.databasecenter.v1beta.json | 359 - ...tacatalog.lineage.configmanagement.v1.json | 95 - ...a_google.cloud.datacatalog.lineage.v1.json | 879 - ..._metadata_google.cloud.datacatalog.v1.json | 2407 - ...data_google.cloud.datacatalog.v1beta1.json | 1947 - ...pet_metadata_google.cloud.dataform.v1.json | 3363 - ...etadata_google.cloud.dataform.v1beta1.json | 3279 - ...t_metadata_google.cloud.datafusion.v1.json | 335 - ...adata_google.cloud.datafusion.v1beta1.json | 603 - ...ata_google.cloud.datalabeling.v1beta1.json | 1591 - ...pet_metadata_google.cloud.dataplex.v1.json | 6199 -- ...pet_metadata_google.cloud.dataproc.v1.json | 2155 - ...metadata_google.cloud.dataqna.v1alpha.json | 283 - ...t_metadata_google.cloud.datastream.v1.json | 1311 - ...data_google.cloud.datastream.v1alpha1.json | 1051 - ...ippet_metadata_google.cloud.deploy.v1.json | 2323 - ...data_google.cloud.developerconnect.v1.json | 1623 - ...adata_google.cloud.devicestreaming.v1.json | 283 - ...etadata_google.cloud.dialogflow.cx.v3.json | 6291 -- ...ta_google.cloud.dialogflow.cx.v3beta1.json | 6479 -- ...t_metadata_google.cloud.dialogflow.v2.json | 6051 -- ...adata_google.cloud.dialogflow.v2beta1.json | 5827 -- ...adata_google.cloud.discoveryengine.v1.json | 4891 -- ..._google.cloud.discoveryengine.v1alpha.json | 5167 -- ...a_google.cloud.discoveryengine.v1beta.json | 5079 -- ...t_metadata_google.cloud.documentai.v1.json | 1031 - ...adata_google.cloud.documentai.v1beta1.json | 59 - ...adata_google.cloud.documentai.v1beta2.json | 131 - ...adata_google.cloud.documentai.v1beta3.json | 1427 - ...ppet_metadata_google.cloud.domains.v1.json | 719 - ...etadata_google.cloud.domains.v1alpha2.json | 719 - ...metadata_google.cloud.domains.v1beta1.json | 719 - ...etadata_google.cloud.edgecontainer.v1.json | 955 - ..._metadata_google.cloud.edgenetwork.v1.json | 1231 - ...ata_google.cloud.essentialcontacts.v1.json | 331 - ...a_google.cloud.eventarc.publishing.v1.json | 163 - ...pet_metadata_google.cloud.eventarc.v1.json | 1915 - ...et_metadata_google.cloud.filestore.v1.json | 843 - ...tadata_google.cloud.filestore.v1beta1.json | 1075 - ...ata_google.cloud.financialservices.v1.json | 1831 - ...et_metadata_google.cloud.functions.v1.json | 503 - ...et_metadata_google.cloud.functions.v2.json | 379 - ...tadata_google.cloud.functions.v2alpha.json | 379 - ...etadata_google.cloud.functions.v2beta.json | 379 - ...e.cloud.gdchardwaremanagement.v1alpha.json | 1795 - ...gle.cloud.geminidataanalytics.v1alpha.json | 915 - ...ogle.cloud.geminidataanalytics.v1beta.json | 915 - ...et_metadata_google.cloud.gkebackup.v1.json | 1851 - ...ta_google.cloud.gkeconnect.gateway.v1.json | 71 - ...ogle.cloud.gkeconnect.gateway.v1beta1.json | 71 - ...ippet_metadata_google.cloud.gkehub.v1.json | 2051 - ..._metadata_google.cloud.gkehub.v1alpha.json | 263 - ...metadata_google.cloud.gkehub.v1alpha2.json | 351 - ...t_metadata_google.cloud.gkehub.v1beta.json | 263 - ..._metadata_google.cloud.gkehub.v1beta1.json | 419 - ...etadata_google.cloud.gkemulticloud.v1.json | 2163 - ...tadata_google.cloud.gkerecommender.v1.json | 323 - ...metadata_google.cloud.gsuiteaddons.v1.json | 395 - ...a_google.cloud.hypercomputecluster.v1.json | 255 - ...gle.cloud.hypercomputecluster.v1alpha.json | 1251 - ...ogle.cloud.hypercomputecluster.v1beta.json | 255 - .../snippet_metadata_google.cloud.iap.v1.json | 835 - ...pet_metadata_google.cloud.iap.v1beta1.json | 151 - .../snippet_metadata_google.cloud.ids.v1.json | 207 - .../snippet_metadata_google.cloud.iot.v1.json | 883 - ...etadata_google.cloud.kms.inventory.v1.json | 163 - .../snippet_metadata_google.cloud.kms.v1.json | 2631 - ...pet_metadata_google.cloud.language.v1.json | 323 - ...etadata_google.cloud.language.v1beta2.json | 323 - ...pet_metadata_google.cloud.language.v2.json | 235 - ...tadata_google.cloud.licensemanager.v1.json | 647 - ...data_google.cloud.lifesciences.v2beta.json | 67 - ...tadata_google.cloud.locationfinder.v1.json | 163 - ...ippet_metadata_google.cloud.lustre.v1.json | 367 - ...adata_google.cloud.maintenance.api.v1.json | 167 - ...a_google.cloud.maintenance.api.v1beta.json | 167 - ...ata_google.cloud.managedidentities.v1.json | 463 - ...oogle.cloud.managedidentities.v1beta1.json | 463 - ....cloud.managedkafka.schemaregistry.v1.json | 1231 - ...metadata_google.cloud.managedkafka.v1.json | 1575 - ...google.cloud.mediatranslation.v1beta1.json | 59 - ...pet_metadata_google.cloud.memcache.v1.json | 387 - ...etadata_google.cloud.memcache.v1beta2.json | 435 - ..._metadata_google.cloud.memorystore.v1.json | 695 - ...adata_google.cloud.memorystore.v1beta.json | 335 - ...et_metadata_google.cloud.metastore.v1.json | 1131 - ...tadata_google.cloud.metastore.v1alpha.json | 1175 - ...etadata_google.cloud.metastore.v1beta.json | 1175 - ...adata_google.cloud.migrationcenter.v1.json | 2331 - ...t_metadata_google.cloud.modelarmor.v1.json | 439 - ...tadata_google.cloud.modelarmor.v1beta.json | 555 - ...snippet_metadata_google.monitoring.v3.json | 2359 - ...ippet_metadata_google.cloud.netapp.v1.json | 3231 - ...a_google.cloud.networkconnectivity.v1.json | 3055 - ...le.cloud.networkconnectivity.v1alpha1.json | 495 - ...ogle.cloud.networkconnectivity.v1beta.json | 2555 - ...ata_google.cloud.networkmanagement.v1.json | 847 - ...oogle.cloud.networkmanagement.v1beta1.json | 847 - ...adata_google.cloud.networksecurity.v1.json | 7023 -- ...google.cloud.networksecurity.v1alpha1.json | 6007 -- ..._google.cloud.networksecurity.v1beta1.json | 895 - ...adata_google.cloud.networkservices.v1.json | 3555 - ..._google.cloud.networkservices.v1beta1.json | 715 - ...et_metadata_google.cloud.notebooks.v1.json | 2115 - ...tadata_google.cloud.notebooks.v1beta1.json | 839 - ...et_metadata_google.cloud.notebooks.v2.json | 551 - ...tadata_google.cloud.oracledatabase.v1.json | 2791 - ...loud.orchestration.airflow.service.v1.json | 1155 - ...orchestration.airflow.service.v1beta1.json | 1195 - ...et_metadata_google.cloud.orgpolicy.v2.json | 535 - ...pet_metadata_google.cloud.osconfig.v1.json | 1119 - ...etadata_google.cloud.osconfig.v1alpha.json | 659 - ...metadata_google.cloud.osconfig.v1beta.json | 839 - ...ppet_metadata_google.cloud.oslogin.v1.json | 327 - ..._metadata_google.cloud.oslogin.v1beta.json | 379 - ...etadata_google.cloud.parallelstore.v1.json | 375 - ...ata_google.cloud.parallelstore.v1beta.json | 375 - ...data_google.cloud.parametermanager.v1.json | 539 - ...ogle.cloud.phishingprotection.v1beta1.json | 59 - ...adata_google.cloud.policysimulator.v1.json | 331 - ...gle.cloud.policytroubleshooter.iam.v3.json | 55 - ...cloud.policytroubleshooter.iam.v3beta.json | 55 - ..._google.cloud.policytroubleshooter.v1.json | 55 - ...a_google.cloud.privatecatalog.v1beta1.json | 171 - ...ogle.cloud.privilegedaccessmanager.v1.json | 683 - ...gle.cloud.rapidmigrationassessment.v1.json | 475 - ...a_google.cloud.recaptchaenterprise.v1.json | 1011 - ...gle.cloud.recaptchaenterprise.v1beta1.json | 115 - ..._metadata_google.cloud.recommender.v1.json | 611 - ...data_google.cloud.recommender.v1beta1.json | 655 - ...etadata_google.cloud.redis.cluster.v1.json | 687 - ...ta_google.cloud.redis.cluster.v1beta1.json | 687 - ...nippet_metadata_google.cloud.redis.v1.json | 499 - ...t_metadata_google.cloud.redis.v1beta1.json | 499 - ...adata_google.cloud.resourcemanager.v3.json | 2339 - ...ippet_metadata_google.cloud.retail.v2.json | 2915 - ..._metadata_google.cloud.retail.v2alpha.json | 3619 - ...t_metadata_google.cloud.retail.v2beta.json | 3139 - .../snippet_metadata_google.cloud.run.v2.json | 1995 - ....saasplatform.saasservicemgmt.v1beta1.json | 2063 - ...et_metadata_google.cloud.scheduler.v1.json | 351 - ...tadata_google.cloud.scheduler.v1beta1.json | 367 - ...etadata_google.cloud.secretmanager.v1.json | 687 - ...ta_google.cloud.secretmanager.v1beta2.json | 687 - ...a_google.cloud.securesourcemanager.v1.json | 2359 - ...ta_google.cloud.security.privateca.v1.json | 1419 - ...ogle.cloud.security.privateca.v1beta1.json | 963 - ...ata_google.cloud.security.publicca.v1.json | 59 - ...ogle.cloud.security.publicca.v1alpha1.json | 59 - ...oogle.cloud.security.publicca.v1beta1.json | 59 - ...tadata_google.cloud.securitycenter.v1.json | 2907 - ...a_google.cloud.securitycenter.v1beta1.json | 895 - ...google.cloud.securitycenter.v1p1beta1.json | 1123 - ...tadata_google.cloud.securitycenter.v2.json | 1823 - ...gle.cloud.securitycentermanagement.v1.json | 983 - ...data_google.cloud.servicedirectory.v1.json | 883 - ...google.cloud.servicedirectory.v1beta1.json | 883 - ...etadata_google.cloud.servicehealth.v1.json | 299 - ...nippet_metadata_google.cloud.shell.v1.json | 243 - ...ippet_metadata_google.cloud.speech.v1.json | 591 - ...etadata_google.cloud.speech.v1p1beta1.json | 591 - ...ippet_metadata_google.cloud.speech.v2.json | 1139 - .../snippet_metadata_google.cloud.sql.v1.json | 3567 - ...pet_metadata_google.cloud.sql.v1beta4.json | 3567 - ...oogle.cloud.storagebatchoperations.v1.json | 351 - ...adata_google.cloud.storageinsights.v1.json | 671 - ...ppet_metadata_google.cloud.support.v2.json | 599 - ..._metadata_google.cloud.support.v2beta.json | 659 - ...ippet_metadata_google.cloud.talent.v4.json | 1119 - ..._metadata_google.cloud.talent.v4beta1.json | 1127 - ...nippet_metadata_google.cloud.tasks.v2.json | 719 - ...t_metadata_google.cloud.tasks.v2beta2.json | 971 - ...t_metadata_google.cloud.tasks.v2beta3.json | 727 - ...adata_google.cloud.telcoautomation.v1.json | 1639 - ...google.cloud.telcoautomation.v1alpha1.json | 1639 - ...metadata_google.cloud.texttospeech.v1.json | 207 - ...ata_google.cloud.texttospeech.v1beta1.json | 211 - .../snippet_metadata_google.cloud.tpu.v1.json | 507 - .../snippet_metadata_google.cloud.tpu.v2.json | 823 - ...et_metadata_google.cloud.tpu.v2alpha1.json | 1007 - ..._metadata_google.cloud.translation.v3.json | 1851 - ...data_google.cloud.translation.v3beta1.json | 651 - ...metadata_google.cloud.vectorsearch.v1.json | 1103 - ...data_google.cloud.vectorsearch.v1beta.json | 1103 - ...data_google.cloud.video.livestream.v1.json | 1627 - ...tadata_google.cloud.video.stitcher.v1.json | 1371 - ...data_google.cloud.video.transcoder.v1.json | 387 - ...ata_google.cloud.videointelligence.v1.json | 75 - ...oogle.cloud.videointelligence.v1beta2.json | 75 - ...gle.cloud.videointelligence.v1p1beta1.json | 75 - ...gle.cloud.videointelligence.v1p2beta1.json | 75 - ...gle.cloud.videointelligence.v1p3beta1.json | 119 - ...ippet_metadata_google.cloud.vision.v1.json | 1059 - ...etadata_google.cloud.vision.v1p1beta1.json | 55 - ...etadata_google.cloud.vision.v1p2beta1.json | 95 - ...etadata_google.cloud.vision.v1p3beta1.json | 891 - ...etadata_google.cloud.vision.v1p4beta1.json | 1027 - ...pet_metadata_google.cloud.visionai.v1.json | 6391 -- ..._metadata_google.cloud.vmmigration.v1.json | 2919 - ...metadata_google.cloud.vmwareengine.v1.json | 3527 - ...et_metadata_google.cloud.vpcaccess.v1.json | 191 - ...ppet_metadata_google.cloud.webrisk.v1.json | 247 - ...metadata_google.cloud.webrisk.v1beta1.json | 151 - ...ta_google.cloud.websecurityscanner.v1.json | 579 - ...ogle.cloud.websecurityscanner.v1alpha.json | 579 - ...oogle.cloud.websecurityscanner.v1beta.json | 579 - ..._google.cloud.workflows.executions.v1.json | 203 - ...et_metadata_google.cloud.workflows.v1.json | 295 - ...gle.cloud.workflows.executions.v1beta.json | 195 - ...etadata_google.cloud.workflows.v1beta.json | 243 - ...adata_google.cloud.workloadmanager.v1.json | 623 - ...metadata_google.cloud.workstations.v1.json | 983 - ...data_google.cloud.workstations.v1beta.json | 983 - .../snippet_metadata_google.container.v1.json | 2059 - ...pet_metadata_google.container.v1beta1.json | 2151 - ...ppet_metadata_google.dataflow.v1beta3.json | 1019 - ...a_google.devicesandservices.health.v4.json | 1159 - ...a_google.devtools.artifactregistry.v1.json | 2267 - ...gle.devtools.artifactregistry.v1beta2.json | 1131 - ...etadata_google.devtools.cloudbuild.v1.json | 943 - ...etadata_google.devtools.cloudbuild.v2.json | 655 - ...data_google.devtools.cloudprofiler.v2.json | 199 - ..._google.devtools.containeranalysis.v1.json | 879 - ...le.devtools.containeranalysis.v1beta1.json | 907 - ...et_metadata_google.iam.credentials.v1.json | 215 - .../snippet_metadata_google.iam.v1beta.json | 543 - .../v2/snippet_metadata_google.iam.v2.json | 235 - .../snippet_metadata_google.iam.v2beta.json | 235 - .../v3/snippet_metadata_google.iam.v3.json | 595 - .../snippet_metadata_google.iam.v3beta.json | 883 - ...ogle.identity.accesscontextmanager.v1.json | 1183 - ...data_google.maps.addressvalidation.v1.json | 111 - ..._metadata_google.maps.areainsights.v1.json | 59 - ...metadata_maps.fleetengine.delivery.v1.json | 599 - .../snippet_metadata_maps.fleetengine.v1.json | 803 - ...ippet_metadata_google.maps.geocode.v4.json | 239 - ...a_google.maps.mapsplatformdatasets.v1.json | 283 - ...gle.maps.mapsplatformdatasets.v1alpha.json | 327 - ...et_metadata_google.maps.navconnect.v1.json | 103 - ...nippet_metadata_google.maps.places.v1.json | 391 - ...data_google.maps.routeoptimization.v1.json | 315 - ...ippet_metadata_google.maps.routing.v2.json | 211 - ...snippet_metadata_google.maps.solar.v1.json | 171 - ...oogle.marketingplatform.admin.v1alpha.json | 367 - ...tadata_google.monitoring.dashboard.v1.json | 235 - ...nippet_metadata_google.privacy.dlp.v2.json | 2647 - ...ippet_metadata_google.shopping.css.v1.json | 607 - ..._google.shopping.merchant.accounts.v1.json | 3302 - ...gle.shopping.merchant.accounts.v1beta.json | 2751 - ...ogle.shopping.merchant.conversions.v1.json | 275 - ....shopping.merchant.conversions.v1beta.json | 275 - ...ogle.shopping.merchant.datasources.v1.json | 311 - ....shopping.merchant.datasources.v1beta.json | 311 - ...ogle.shopping.merchant.inventories.v1.json | 279 - ....shopping.merchant.inventories.v1beta.json | 279 - ....shopping.merchant.issueresolution.v1.json | 219 - ...pping.merchant.issueresolution.v1beta.json | 219 - ...adata_google.shopping.merchant.lfp.v1.json | 319 - ...a_google.shopping.merchant.lfp.v1beta.json | 319 - ...le.shopping.merchant.notifications.v1.json | 271 - ...hopping.merchant.notifications.v1beta.json | 231 - ...le.shopping.merchant.ordertracking.v1.json | 63 - ...hopping.merchant.ordertracking.v1beta.json | 63 - ..._google.shopping.merchant.products.v1.json | 243 - ...gle.shopping.merchant.products.v1beta.json | 243 - ...oogle.shopping.merchant.promotions.v1.json | 151 - ...e.shopping.merchant.promotions.v1beta.json | 151 - ...ata_google.shopping.merchant.quota.v1.json | 155 - ...google.shopping.merchant.quota.v1beta.json | 63 - ...a_google.shopping.merchant.reports.v1.json | 67 - ...gle.shopping.merchant.reports.v1alpha.json | 67 - ...ogle.shopping.merchant.reports.v1beta.json | 67 - ...ogle.shopping.merchant.reviews.v1beta.json | 367 - ...et_metadata_google.storage.control.v2.json | 1575 - .../snippet_metadata_google.storage.v2.json | 339 - ...et_metadata_google.storagetransfer.v1.json | 631 - ...metadata_google.streetview.publish.v1.json | 621 - .../v1/snippet_metadata_grafeas.v1.json | 647 - 406 files changed, 565695 deletions(-) delete mode 100644 core/packages/gapic-node-processing/test/fixtures/combined-library/google-analytics-data-nodejs/analytics-data-v1alpha-nodejs/samples/generated/v1alpha/snippet_metadata_google.analytics.data.v1alpha.json delete mode 100644 core/packages/gapic-node-processing/test/fixtures/combined-library/google-analytics-data-nodejs/google-analytics-data-v1beta-nodejs/samples/generated/v1beta/snippet_metadata_google.analytics.data.v1beta.json delete mode 100644 core/packages/gapic-node-processing/test/fixtures/combined-library/google-analytics-data/samples/generated/v1alpha/snippet_metadata_google.analytics.data.v1alpha.json delete mode 100644 core/packages/gapic-node-processing/test/fixtures/combined-library/google-analytics-data/samples/generated/v1beta/snippet_metadata_google.analytics.data.v1beta.json delete mode 100644 core/packages/gapic-node-processing/test/fixtures/combined-library/google-cloud-speech-nodejs/speech-v1-nodejs/samples/generated/v1/snippet_metadata_google.cloud.speech.v1.json delete mode 100644 core/packages/gapic-node-processing/test/fixtures/combined-library/google-cloud-speech-nodejs/speech-v1p1beta1-nodejs/samples/generated/v1p1beta1/snippet_metadata_google.cloud.speech.v1p1beta1.json delete mode 100644 core/packages/gapic-node-processing/test/fixtures/combined-library/google-cloud-speech-nodejs/speech-v2-nodejs/samples/generated/v2/snippet_metadata_google.cloud.speech.v2.json delete mode 100644 core/packages/gapic-node-processing/test/fixtures/combined-library/google-cloud-speech/samples/generated/v1/snippet_metadata_google.cloud.speech.v1.json delete mode 100644 core/packages/gapic-node-processing/test/fixtures/combined-library/google-cloud-speech/samples/generated/v1p1beta1/snippet_metadata_google.cloud.speech.v1p1beta1.json delete mode 100644 core/packages/gapic-node-processing/test/fixtures/combined-library/google-cloud-speech/samples/generated/v2/snippet_metadata_google.cloud.speech.v2.json delete mode 100644 core/packages/gapic-node-processing/test/fixtures/combined-library/google-cloud-tasks-nodejs/tasks-v2-nodejs/samples/generated/v2/snippet_metadata_google.cloud.tasks.v2.json delete mode 100644 core/packages/gapic-node-processing/test/fixtures/combined-library/google-cloud-tasks-nodejs/tasks-v2beta2-nodejs/samples/generated/v2beta2/snippet_metadata_google.cloud.tasks.v2beta2.json delete mode 100644 core/packages/gapic-node-processing/test/fixtures/combined-library/google-cloud-tasks/samples/generated/v2/snippet_metadata_google.cloud.tasks.v2.json delete mode 100644 core/packages/gapic-node-processing/test/fixtures/combined-library/google-cloud-tasks/samples/generated/v2beta2/snippet_metadata_google.cloud.tasks.v2beta2.json delete mode 100644 handwritten/bigquery-storage/samples/generated/v1/snippet_metadata.google.cloud.bigquery.storage.v1.json delete mode 100644 handwritten/bigquery-storage/samples/generated/v1/snippet_metadata_google.cloud.bigquery.storage.v1.json delete mode 100644 handwritten/bigquery-storage/samples/generated/v1alpha/snippet_metadata_google.cloud.bigquery.storage.v1alpha.json delete mode 100644 handwritten/bigquery-storage/samples/generated/v1beta/snippet_metadata_google.cloud.bigquery.storage.v1beta.json delete mode 100644 handwritten/bigquery-storage/samples/generated/v1beta1/snippet_metadata.google.cloud.bigquery.storage.v1beta1.json delete mode 100644 handwritten/bigquery-storage/samples/generated/v1beta1/snippet_metadata_google.cloud.bigquery.storage.v1beta1.json delete mode 100644 handwritten/bigtable/samples/generated/admin/v2/snippet_metadata_google.bigtable.admin.v2.json delete mode 100644 handwritten/datastore/samples/generated/v1/snippet_metadata.google.datastore.admin.v1.json delete mode 100644 handwritten/datastore/samples/generated/v1/snippet_metadata.google.datastore.v1.json delete mode 100644 handwritten/datastore/samples/generated/v1/snippet_metadata_google.datastore.admin.v1.json delete mode 100644 handwritten/datastore/samples/generated/v1/snippet_metadata_google.datastore.v1.json delete mode 100644 handwritten/logging/samples/generated/v2/snippet_metadata.google.logging.v2.json delete mode 100644 handwritten/logging/samples/generated/v2/snippet_metadata_google.logging.v2.json delete mode 100644 packages/google-ads-admanager/samples/generated/v1/snippet_metadata_google.ads.admanager.v1.json delete mode 100644 packages/google-ads-datamanager/samples/generated/v1/snippet_metadata_google.ads.datamanager.v1.json delete mode 100644 packages/google-ai-generativelanguage/samples/generated/v1/snippet_metadata_google.ai.generativelanguage.v1.json delete mode 100644 packages/google-ai-generativelanguage/samples/generated/v1alpha/snippet_metadata_google.ai.generativelanguage.v1alpha.json delete mode 100644 packages/google-ai-generativelanguage/samples/generated/v1beta/snippet_metadata_google.ai.generativelanguage.v1beta.json delete mode 100644 packages/google-ai-generativelanguage/samples/generated/v1beta2/snippet_metadata_google.ai.generativelanguage.v1beta2.json delete mode 100644 packages/google-ai-generativelanguage/samples/generated/v1beta3/snippet_metadata_google.ai.generativelanguage.v1beta3.json delete mode 100644 packages/google-analytics-admin/samples/generated/v1alpha/snippet_metadata_google.analytics.admin.v1alpha.json delete mode 100644 packages/google-analytics-admin/samples/generated/v1beta/snippet_metadata_google.analytics.admin.v1beta.json delete mode 100644 packages/google-analytics-data/samples/generated/v1alpha/snippet_metadata_google.analytics.data.v1alpha.json delete mode 100644 packages/google-analytics-data/samples/generated/v1beta/snippet_metadata_google.analytics.data.v1beta.json delete mode 100644 packages/google-api-apikeys/samples/generated/v2/snippet_metadata_google.api.apikeys.v2.json delete mode 100644 packages/google-api-cloudquotas/samples/generated/v1/snippet_metadata_google.api.cloudquotas.v1.json delete mode 100644 packages/google-api-cloudquotas/samples/generated/v1beta/snippet_metadata_google.api.cloudquotas.v1beta.json delete mode 100644 packages/google-api-servicecontrol/samples/generated/v1/snippet_metadata_google.api.servicecontrol.v1.json delete mode 100644 packages/google-api-servicecontrol/samples/generated/v2/snippet_metadata_google.api.servicecontrol.v2.json delete mode 100644 packages/google-api-servicemanagement/samples/generated/v1/snippet_metadata_google.api.servicemanagement.v1.json delete mode 100644 packages/google-api-serviceusage/samples/generated/v1/snippet_metadata_google.api.serviceusage.v1.json delete mode 100644 packages/google-api-serviceusage/samples/generated/v1beta1/snippet_metadata_google.api.serviceusage.v1beta1.json delete mode 100644 packages/google-appengine/samples/generated/v1/snippet_metadata_google.appengine.v1.json delete mode 100644 packages/google-apps-events-subscriptions/samples/generated/v1/snippet_metadata_google.apps.events.subscriptions.v1.json delete mode 100644 packages/google-apps-events-subscriptions/samples/generated/v1beta/snippet_metadata_google.apps.events.subscriptions.v1beta.json delete mode 100644 packages/google-apps-meet/samples/generated/v2/snippet_metadata_google.apps.meet.v2.json delete mode 100644 packages/google-apps-meet/samples/generated/v2beta/snippet_metadata_google.apps.meet.v2beta.json delete mode 100644 packages/google-area120-tables/samples/generated/v1alpha1/snippet_metadata_google.area120.tables.v1alpha1.json delete mode 100644 packages/google-chat/samples/generated/v1/snippet_metadata_google.chat.v1.json delete mode 100644 packages/google-cloud-accessapproval/samples/generated/v1/snippet_metadata_google.cloud.accessapproval.v1.json delete mode 100644 packages/google-cloud-advisorynotifications/samples/generated/v1/snippet_metadata_google.cloud.advisorynotifications.v1.json delete mode 100644 packages/google-cloud-aiplatform/samples/generated/v1/snippet_metadata_google.cloud.aiplatform.v1.json delete mode 100644 packages/google-cloud-aiplatform/samples/generated/v1beta1/snippet_metadata_google.cloud.aiplatform.v1beta1.json delete mode 100644 packages/google-cloud-alloydb/samples/generated/v1/snippet_metadata_google.cloud.alloydb.v1.json delete mode 100644 packages/google-cloud-alloydb/samples/generated/v1alpha/snippet_metadata_google.cloud.alloydb.v1alpha.json delete mode 100644 packages/google-cloud-alloydb/samples/generated/v1beta/snippet_metadata_google.cloud.alloydb.v1beta.json delete mode 100644 packages/google-cloud-apigateway/samples/generated/v1/snippet_metadata_google.cloud.apigateway.v1.json delete mode 100644 packages/google-cloud-apigeeconnect/samples/generated/v1/snippet_metadata_google.cloud.apigeeconnect.v1.json delete mode 100644 packages/google-cloud-apigeeregistry/samples/generated/v1/snippet_metadata_google.cloud.apigeeregistry.v1.json delete mode 100644 packages/google-cloud-apihub/samples/generated/v1/snippet_metadata_google.cloud.apihub.v1.json delete mode 100644 packages/google-cloud-apiregistry/samples/generated/v1/snippet_metadata_google.cloud.apiregistry.v1.json delete mode 100644 packages/google-cloud-apiregistry/samples/generated/v1beta/snippet_metadata_google.cloud.apiregistry.v1beta.json delete mode 100644 packages/google-cloud-apphub/samples/generated/v1/snippet_metadata_google.cloud.apphub.v1.json delete mode 100644 packages/google-cloud-appoptimize/samples/generated/v1beta/snippet_metadata_google.cloud.appoptimize.v1beta.json delete mode 100644 packages/google-cloud-asset/samples/generated/v1/snippet_metadata_google.cloud.asset.v1.json delete mode 100644 packages/google-cloud-asset/samples/generated/v1p1beta1/snippet_metadata_google.cloud.asset.v1p1beta1.json delete mode 100644 packages/google-cloud-asset/samples/generated/v1p2beta1/snippet_metadata_google.cloud.asset.v1p2beta1.json delete mode 100644 packages/google-cloud-asset/samples/generated/v1p5beta1/snippet_metadata_google.cloud.asset.v1p5beta1.json delete mode 100644 packages/google-cloud-asset/samples/generated/v1p7beta1/snippet_metadata_google.cloud.asset.v1p7beta1.json delete mode 100644 packages/google-cloud-assuredworkloads/samples/generated/v1/snippet_metadata_google.cloud.assuredworkloads.v1.json delete mode 100644 packages/google-cloud-assuredworkloads/samples/generated/v1beta1/snippet_metadata_google.cloud.assuredworkloads.v1beta1.json delete mode 100644 packages/google-cloud-auditmanager/samples/generated/v1/snippet_metadata_google.cloud.auditmanager.v1.json delete mode 100644 packages/google-cloud-automl/samples/generated/v1/snippet_metadata_google.cloud.automl.v1.json delete mode 100644 packages/google-cloud-automl/samples/generated/v1beta1/snippet_metadata_google.cloud.automl.v1beta1.json delete mode 100644 packages/google-cloud-backupdr/samples/generated/v1/snippet_metadata_google.cloud.backupdr.v1.json delete mode 100644 packages/google-cloud-baremetalsolution/samples/generated/v2/snippet_metadata_google.cloud.baremetalsolution.v2.json delete mode 100644 packages/google-cloud-batch/samples/generated/v1/snippet_metadata_google.cloud.batch.v1.json delete mode 100644 packages/google-cloud-batch/samples/generated/v1alpha/snippet_metadata_google.cloud.batch.v1alpha.json delete mode 100644 packages/google-cloud-beyondcorp-appconnections/samples/generated/v1/snippet_metadata_google.cloud.beyondcorp.appconnections.v1.json delete mode 100644 packages/google-cloud-beyondcorp-appconnectors/samples/generated/v1/snippet_metadata_google.cloud.beyondcorp.appconnectors.v1.json delete mode 100644 packages/google-cloud-beyondcorp-appgateways/samples/generated/v1/snippet_metadata_google.cloud.beyondcorp.appgateways.v1.json delete mode 100644 packages/google-cloud-beyondcorp-clientconnectorservices/samples/generated/v1/snippet_metadata_google.cloud.beyondcorp.clientconnectorservices.v1.json delete mode 100644 packages/google-cloud-beyondcorp-clientgateways/samples/generated/v1/snippet_metadata_google.cloud.beyondcorp.clientgateways.v1.json delete mode 100644 packages/google-cloud-bigquery-analyticshub/samples/generated/v1/snippet_metadata_google.cloud.bigquery.analyticshub.v1.json delete mode 100644 packages/google-cloud-bigquery-connection/samples/generated/v1/snippet_metadata_google.cloud.bigquery.connection.v1.json delete mode 100644 packages/google-cloud-bigquery-connection/samples/generated/v1beta1/snippet_metadata_google.cloud.bigquery.connection.v1beta1.json delete mode 100644 packages/google-cloud-bigquery-dataexchange/samples/generated/v1beta1/snippet_metadata_google.cloud.bigquery.dataexchange.v1beta1.json delete mode 100644 packages/google-cloud-bigquery-datapolicies/samples/generated/v1/snippet_metadata_google.cloud.bigquery.datapolicies.v1.json delete mode 100644 packages/google-cloud-bigquery-datapolicies/samples/generated/v1beta1/snippet_metadata_google.cloud.bigquery.datapolicies.v1beta1.json delete mode 100644 packages/google-cloud-bigquery-datapolicies/samples/generated/v2/snippet_metadata_google.cloud.bigquery.datapolicies.v2.json delete mode 100644 packages/google-cloud-bigquery-datapolicies/samples/generated/v2beta1/snippet_metadata_google.cloud.bigquery.datapolicies.v2beta1.json delete mode 100644 packages/google-cloud-bigquery-datatransfer/samples/generated/v1/snippet_metadata_google.cloud.bigquery.datatransfer.v1.json delete mode 100644 packages/google-cloud-bigquery-migration/samples/generated/v2/snippet_metadata_google.cloud.bigquery.migration.v2.json delete mode 100644 packages/google-cloud-bigquery-migration/samples/generated/v2alpha/snippet_metadata_google.cloud.bigquery.migration.v2alpha.json delete mode 100644 packages/google-cloud-bigquery-reservation/samples/generated/v1/snippet_metadata_google.cloud.bigquery.reservation.v1.json delete mode 100644 packages/google-cloud-billing-budgets/samples/generated/v1/snippet_metadata_google.cloud.billing.budgets.v1.json delete mode 100644 packages/google-cloud-billing-budgets/samples/generated/v1beta1/snippet_metadata_google.cloud.billing.budgets.v1beta1.json delete mode 100644 packages/google-cloud-billing/samples/generated/v1/snippet_metadata_google.cloud.billing.v1.json delete mode 100644 packages/google-cloud-binaryauthorization/samples/generated/v1/snippet_metadata_google.cloud.binaryauthorization.v1.json delete mode 100644 packages/google-cloud-binaryauthorization/samples/generated/v1beta1/snippet_metadata_google.cloud.binaryauthorization.v1beta1.json delete mode 100644 packages/google-cloud-capacityplanner/samples/generated/v1beta/snippet_metadata_google.cloud.capacityplanner.v1beta.json delete mode 100644 packages/google-cloud-certificatemanager/samples/generated/v1/snippet_metadata_google.cloud.certificatemanager.v1.json delete mode 100644 packages/google-cloud-ces/samples/generated/v1/snippet_metadata_google.cloud.ces.v1.json delete mode 100644 packages/google-cloud-ces/samples/generated/v1beta/snippet_metadata_google.cloud.ces.v1beta.json delete mode 100644 packages/google-cloud-channel/samples/generated/v1/snippet_metadata_google.cloud.channel.v1.json delete mode 100644 packages/google-cloud-chronicle/samples/generated/v1/snippet_metadata_google.cloud.chronicle.v1.json delete mode 100644 packages/google-cloud-cloudcontrolspartner/samples/generated/v1/snippet_metadata_google.cloud.cloudcontrolspartner.v1.json delete mode 100644 packages/google-cloud-cloudcontrolspartner/samples/generated/v1beta/snippet_metadata_google.cloud.cloudcontrolspartner.v1beta.json delete mode 100644 packages/google-cloud-clouddms/samples/generated/v1/snippet_metadata_google.cloud.clouddms.v1.json delete mode 100644 packages/google-cloud-cloudsecuritycompliance/samples/generated/v1/snippet_metadata_google.cloud.cloudsecuritycompliance.v1.json delete mode 100644 packages/google-cloud-commerce-consumer-procurement/samples/generated/v1/snippet_metadata_google.cloud.commerce.consumer.procurement.v1.json delete mode 100644 packages/google-cloud-commerce-consumer-procurement/samples/generated/v1alpha1/snippet_metadata_google.cloud.commerce.consumer.procurement.v1alpha1.json delete mode 100644 packages/google-cloud-compute/samples/generated/v1/snippet_metadata_google.cloud.compute.v1.json delete mode 100644 packages/google-cloud-compute/samples/generated/v1beta/snippet_metadata_google.cloud.compute.v1beta.json delete mode 100644 packages/google-cloud-compute/samples/generated/v1small/snippet_metadata_google.cloud.compute.v1small.json delete mode 100644 packages/google-cloud-confidentialcomputing/samples/generated/v1/snippet_metadata_google.cloud.confidentialcomputing.v1.json delete mode 100644 packages/google-cloud-confidentialcomputing/samples/generated/v1alpha1/snippet_metadata_google.cloud.confidentialcomputing.v1alpha1.json delete mode 100644 packages/google-cloud-config/samples/generated/v1/snippet_metadata_google.cloud.config.v1.json delete mode 100644 packages/google-cloud-configdelivery/samples/generated/v1/snippet_metadata_google.cloud.configdelivery.v1.json delete mode 100644 packages/google-cloud-configdelivery/samples/generated/v1alpha/snippet_metadata_google.cloud.configdelivery.v1alpha.json delete mode 100644 packages/google-cloud-configdelivery/samples/generated/v1beta/snippet_metadata_google.cloud.configdelivery.v1beta.json delete mode 100644 packages/google-cloud-connectors/samples/generated/v1/snippet_metadata_google.cloud.connectors.v1.json delete mode 100644 packages/google-cloud-contactcenterinsights/samples/generated/v1/snippet_metadata_google.cloud.contactcenterinsights.v1.json delete mode 100644 packages/google-cloud-contentwarehouse/samples/generated/v1/snippet_metadata_google.cloud.contentwarehouse.v1.json delete mode 100644 packages/google-cloud-databasecenter/samples/generated/v1beta/snippet_metadata_google.cloud.databasecenter.v1beta.json delete mode 100644 packages/google-cloud-datacatalog-lineage-configmanagement/samples/generated/v1/snippet_metadata_google.cloud.datacatalog.lineage.configmanagement.v1.json delete mode 100644 packages/google-cloud-datacatalog-lineage/samples/generated/v1/snippet_metadata_google.cloud.datacatalog.lineage.v1.json delete mode 100644 packages/google-cloud-datacatalog/samples/generated/v1/snippet_metadata_google.cloud.datacatalog.v1.json delete mode 100644 packages/google-cloud-datacatalog/samples/generated/v1beta1/snippet_metadata_google.cloud.datacatalog.v1beta1.json delete mode 100644 packages/google-cloud-dataform/samples/generated/v1/snippet_metadata_google.cloud.dataform.v1.json delete mode 100644 packages/google-cloud-dataform/samples/generated/v1beta1/snippet_metadata_google.cloud.dataform.v1beta1.json delete mode 100644 packages/google-cloud-datafusion/samples/generated/v1/snippet_metadata_google.cloud.datafusion.v1.json delete mode 100644 packages/google-cloud-datafusion/samples/generated/v1beta1/snippet_metadata_google.cloud.datafusion.v1beta1.json delete mode 100644 packages/google-cloud-datalabeling/samples/generated/v1beta1/snippet_metadata_google.cloud.datalabeling.v1beta1.json delete mode 100644 packages/google-cloud-dataplex/samples/generated/v1/snippet_metadata_google.cloud.dataplex.v1.json delete mode 100644 packages/google-cloud-dataproc/samples/generated/v1/snippet_metadata_google.cloud.dataproc.v1.json delete mode 100644 packages/google-cloud-dataqna/samples/generated/v1alpha/snippet_metadata_google.cloud.dataqna.v1alpha.json delete mode 100644 packages/google-cloud-datastream/samples/generated/v1/snippet_metadata_google.cloud.datastream.v1.json delete mode 100644 packages/google-cloud-datastream/samples/generated/v1alpha1/snippet_metadata_google.cloud.datastream.v1alpha1.json delete mode 100644 packages/google-cloud-deploy/samples/generated/v1/snippet_metadata_google.cloud.deploy.v1.json delete mode 100644 packages/google-cloud-developerconnect/samples/generated/v1/snippet_metadata_google.cloud.developerconnect.v1.json delete mode 100644 packages/google-cloud-devicestreaming/samples/generated/v1/snippet_metadata_google.cloud.devicestreaming.v1.json delete mode 100644 packages/google-cloud-dialogflow-cx/samples/generated/v3/snippet_metadata_google.cloud.dialogflow.cx.v3.json delete mode 100644 packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/snippet_metadata_google.cloud.dialogflow.cx.v3beta1.json delete mode 100644 packages/google-cloud-dialogflow/samples/generated/v2/snippet_metadata_google.cloud.dialogflow.v2.json delete mode 100644 packages/google-cloud-dialogflow/samples/generated/v2beta1/snippet_metadata_google.cloud.dialogflow.v2beta1.json delete mode 100644 packages/google-cloud-discoveryengine/samples/generated/v1/snippet_metadata_google.cloud.discoveryengine.v1.json delete mode 100644 packages/google-cloud-discoveryengine/samples/generated/v1alpha/snippet_metadata_google.cloud.discoveryengine.v1alpha.json delete mode 100644 packages/google-cloud-discoveryengine/samples/generated/v1beta/snippet_metadata_google.cloud.discoveryengine.v1beta.json delete mode 100644 packages/google-cloud-documentai/samples/generated/v1/snippet_metadata_google.cloud.documentai.v1.json delete mode 100644 packages/google-cloud-documentai/samples/generated/v1beta1/snippet_metadata_google.cloud.documentai.v1beta1.json delete mode 100644 packages/google-cloud-documentai/samples/generated/v1beta2/snippet_metadata_google.cloud.documentai.v1beta2.json delete mode 100644 packages/google-cloud-documentai/samples/generated/v1beta3/snippet_metadata_google.cloud.documentai.v1beta3.json delete mode 100644 packages/google-cloud-domains/samples/generated/v1/snippet_metadata_google.cloud.domains.v1.json delete mode 100644 packages/google-cloud-domains/samples/generated/v1alpha2/snippet_metadata_google.cloud.domains.v1alpha2.json delete mode 100644 packages/google-cloud-domains/samples/generated/v1beta1/snippet_metadata_google.cloud.domains.v1beta1.json delete mode 100644 packages/google-cloud-edgecontainer/samples/generated/v1/snippet_metadata_google.cloud.edgecontainer.v1.json delete mode 100644 packages/google-cloud-edgenetwork/samples/generated/v1/snippet_metadata_google.cloud.edgenetwork.v1.json delete mode 100644 packages/google-cloud-essentialcontacts/samples/generated/v1/snippet_metadata_google.cloud.essentialcontacts.v1.json delete mode 100644 packages/google-cloud-eventarc-publishing/samples/generated/v1/snippet_metadata_google.cloud.eventarc.publishing.v1.json delete mode 100644 packages/google-cloud-eventarc/samples/generated/v1/snippet_metadata_google.cloud.eventarc.v1.json delete mode 100644 packages/google-cloud-filestore/samples/generated/v1/snippet_metadata_google.cloud.filestore.v1.json delete mode 100644 packages/google-cloud-filestore/samples/generated/v1beta1/snippet_metadata_google.cloud.filestore.v1beta1.json delete mode 100644 packages/google-cloud-financialservices/samples/generated/v1/snippet_metadata_google.cloud.financialservices.v1.json delete mode 100644 packages/google-cloud-functions/samples/generated/v1/snippet_metadata_google.cloud.functions.v1.json delete mode 100644 packages/google-cloud-functions/samples/generated/v2/snippet_metadata_google.cloud.functions.v2.json delete mode 100644 packages/google-cloud-functions/samples/generated/v2alpha/snippet_metadata_google.cloud.functions.v2alpha.json delete mode 100644 packages/google-cloud-functions/samples/generated/v2beta/snippet_metadata_google.cloud.functions.v2beta.json delete mode 100644 packages/google-cloud-gdchardwaremanagement/samples/generated/v1alpha/snippet_metadata_google.cloud.gdchardwaremanagement.v1alpha.json delete mode 100644 packages/google-cloud-geminidataanalytics/samples/generated/v1alpha/snippet_metadata_google.cloud.geminidataanalytics.v1alpha.json delete mode 100644 packages/google-cloud-geminidataanalytics/samples/generated/v1beta/snippet_metadata_google.cloud.geminidataanalytics.v1beta.json delete mode 100644 packages/google-cloud-gkebackup/samples/generated/v1/snippet_metadata_google.cloud.gkebackup.v1.json delete mode 100644 packages/google-cloud-gkeconnect-gateway/samples/generated/v1/snippet_metadata_google.cloud.gkeconnect.gateway.v1.json delete mode 100644 packages/google-cloud-gkeconnect-gateway/samples/generated/v1beta1/snippet_metadata_google.cloud.gkeconnect.gateway.v1beta1.json delete mode 100644 packages/google-cloud-gkehub/samples/generated/v1/snippet_metadata_google.cloud.gkehub.v1.json delete mode 100644 packages/google-cloud-gkehub/samples/generated/v1alpha/snippet_metadata_google.cloud.gkehub.v1alpha.json delete mode 100644 packages/google-cloud-gkehub/samples/generated/v1alpha2/snippet_metadata_google.cloud.gkehub.v1alpha2.json delete mode 100644 packages/google-cloud-gkehub/samples/generated/v1beta/snippet_metadata_google.cloud.gkehub.v1beta.json delete mode 100644 packages/google-cloud-gkehub/samples/generated/v1beta1/snippet_metadata_google.cloud.gkehub.v1beta1.json delete mode 100644 packages/google-cloud-gkemulticloud/samples/generated/v1/snippet_metadata_google.cloud.gkemulticloud.v1.json delete mode 100644 packages/google-cloud-gkerecommender/samples/generated/v1/snippet_metadata_google.cloud.gkerecommender.v1.json delete mode 100644 packages/google-cloud-gsuiteaddons/samples/generated/v1/snippet_metadata_google.cloud.gsuiteaddons.v1.json delete mode 100644 packages/google-cloud-hypercomputecluster/samples/generated/v1/snippet_metadata_google.cloud.hypercomputecluster.v1.json delete mode 100644 packages/google-cloud-hypercomputecluster/samples/generated/v1alpha/snippet_metadata_google.cloud.hypercomputecluster.v1alpha.json delete mode 100644 packages/google-cloud-hypercomputecluster/samples/generated/v1beta/snippet_metadata_google.cloud.hypercomputecluster.v1beta.json delete mode 100644 packages/google-cloud-iap/samples/generated/v1/snippet_metadata_google.cloud.iap.v1.json delete mode 100644 packages/google-cloud-iap/samples/generated/v1beta1/snippet_metadata_google.cloud.iap.v1beta1.json delete mode 100644 packages/google-cloud-ids/samples/generated/v1/snippet_metadata_google.cloud.ids.v1.json delete mode 100644 packages/google-cloud-iot/samples/generated/v1/snippet_metadata_google.cloud.iot.v1.json delete mode 100644 packages/google-cloud-kms-inventory/samples/generated/v1/snippet_metadata_google.cloud.kms.inventory.v1.json delete mode 100644 packages/google-cloud-kms/samples/generated/v1/snippet_metadata_google.cloud.kms.v1.json delete mode 100644 packages/google-cloud-language/samples/generated/v1/snippet_metadata_google.cloud.language.v1.json delete mode 100644 packages/google-cloud-language/samples/generated/v1beta2/snippet_metadata_google.cloud.language.v1beta2.json delete mode 100644 packages/google-cloud-language/samples/generated/v2/snippet_metadata_google.cloud.language.v2.json delete mode 100644 packages/google-cloud-licensemanager/samples/generated/v1/snippet_metadata_google.cloud.licensemanager.v1.json delete mode 100644 packages/google-cloud-lifesciences/samples/generated/v2beta/snippet_metadata_google.cloud.lifesciences.v2beta.json delete mode 100644 packages/google-cloud-locationfinder/samples/generated/v1/snippet_metadata_google.cloud.locationfinder.v1.json delete mode 100644 packages/google-cloud-lustre/samples/generated/v1/snippet_metadata_google.cloud.lustre.v1.json delete mode 100644 packages/google-cloud-maintenance-api/samples/generated/v1/snippet_metadata_google.cloud.maintenance.api.v1.json delete mode 100644 packages/google-cloud-maintenance-api/samples/generated/v1beta/snippet_metadata_google.cloud.maintenance.api.v1beta.json delete mode 100644 packages/google-cloud-managedidentities/samples/generated/v1/snippet_metadata_google.cloud.managedidentities.v1.json delete mode 100644 packages/google-cloud-managedidentities/samples/generated/v1beta1/snippet_metadata_google.cloud.managedidentities.v1beta1.json delete mode 100644 packages/google-cloud-managedkafka-schemaregistry/samples/generated/v1/snippet_metadata_google.cloud.managedkafka.schemaregistry.v1.json delete mode 100644 packages/google-cloud-managedkafka/samples/generated/v1/snippet_metadata_google.cloud.managedkafka.v1.json delete mode 100644 packages/google-cloud-mediatranslation/samples/generated/v1beta1/snippet_metadata_google.cloud.mediatranslation.v1beta1.json delete mode 100644 packages/google-cloud-memcache/samples/generated/v1/snippet_metadata_google.cloud.memcache.v1.json delete mode 100644 packages/google-cloud-memcache/samples/generated/v1beta2/snippet_metadata_google.cloud.memcache.v1beta2.json delete mode 100644 packages/google-cloud-memorystore/samples/generated/v1/snippet_metadata_google.cloud.memorystore.v1.json delete mode 100644 packages/google-cloud-memorystore/samples/generated/v1beta/snippet_metadata_google.cloud.memorystore.v1beta.json delete mode 100644 packages/google-cloud-metastore/samples/generated/v1/snippet_metadata_google.cloud.metastore.v1.json delete mode 100644 packages/google-cloud-metastore/samples/generated/v1alpha/snippet_metadata_google.cloud.metastore.v1alpha.json delete mode 100644 packages/google-cloud-metastore/samples/generated/v1beta/snippet_metadata_google.cloud.metastore.v1beta.json delete mode 100644 packages/google-cloud-migrationcenter/samples/generated/v1/snippet_metadata_google.cloud.migrationcenter.v1.json delete mode 100644 packages/google-cloud-modelarmor/samples/generated/v1/snippet_metadata_google.cloud.modelarmor.v1.json delete mode 100644 packages/google-cloud-modelarmor/samples/generated/v1beta/snippet_metadata_google.cloud.modelarmor.v1beta.json delete mode 100644 packages/google-cloud-monitoring/samples/generated/v3/snippet_metadata_google.monitoring.v3.json delete mode 100644 packages/google-cloud-netapp/samples/generated/v1/snippet_metadata_google.cloud.netapp.v1.json delete mode 100644 packages/google-cloud-networkconnectivity/samples/generated/v1/snippet_metadata_google.cloud.networkconnectivity.v1.json delete mode 100644 packages/google-cloud-networkconnectivity/samples/generated/v1alpha1/snippet_metadata_google.cloud.networkconnectivity.v1alpha1.json delete mode 100644 packages/google-cloud-networkconnectivity/samples/generated/v1beta/snippet_metadata_google.cloud.networkconnectivity.v1beta.json delete mode 100644 packages/google-cloud-networkmanagement/samples/generated/v1/snippet_metadata_google.cloud.networkmanagement.v1.json delete mode 100644 packages/google-cloud-networkmanagement/samples/generated/v1beta1/snippet_metadata_google.cloud.networkmanagement.v1beta1.json delete mode 100644 packages/google-cloud-networksecurity/samples/generated/v1/snippet_metadata_google.cloud.networksecurity.v1.json delete mode 100644 packages/google-cloud-networksecurity/samples/generated/v1alpha1/snippet_metadata_google.cloud.networksecurity.v1alpha1.json delete mode 100644 packages/google-cloud-networksecurity/samples/generated/v1beta1/snippet_metadata_google.cloud.networksecurity.v1beta1.json delete mode 100644 packages/google-cloud-networkservices/samples/generated/v1/snippet_metadata_google.cloud.networkservices.v1.json delete mode 100644 packages/google-cloud-networkservices/samples/generated/v1beta1/snippet_metadata_google.cloud.networkservices.v1beta1.json delete mode 100644 packages/google-cloud-notebooks/samples/generated/v1/snippet_metadata_google.cloud.notebooks.v1.json delete mode 100644 packages/google-cloud-notebooks/samples/generated/v1beta1/snippet_metadata_google.cloud.notebooks.v1beta1.json delete mode 100644 packages/google-cloud-notebooks/samples/generated/v2/snippet_metadata_google.cloud.notebooks.v2.json delete mode 100644 packages/google-cloud-oracledatabase/samples/generated/v1/snippet_metadata_google.cloud.oracledatabase.v1.json delete mode 100644 packages/google-cloud-orchestration-airflow-service/samples/generated/v1/snippet_metadata_google.cloud.orchestration.airflow.service.v1.json delete mode 100644 packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/snippet_metadata_google.cloud.orchestration.airflow.service.v1beta1.json delete mode 100644 packages/google-cloud-orgpolicy/samples/generated/v2/snippet_metadata_google.cloud.orgpolicy.v2.json delete mode 100644 packages/google-cloud-osconfig/samples/generated/v1/snippet_metadata_google.cloud.osconfig.v1.json delete mode 100644 packages/google-cloud-osconfig/samples/generated/v1alpha/snippet_metadata_google.cloud.osconfig.v1alpha.json delete mode 100644 packages/google-cloud-osconfig/samples/generated/v1beta/snippet_metadata_google.cloud.osconfig.v1beta.json delete mode 100644 packages/google-cloud-oslogin/samples/generated/v1/snippet_metadata_google.cloud.oslogin.v1.json delete mode 100644 packages/google-cloud-oslogin/samples/generated/v1beta/snippet_metadata_google.cloud.oslogin.v1beta.json delete mode 100644 packages/google-cloud-parallelstore/samples/generated/v1/snippet_metadata_google.cloud.parallelstore.v1.json delete mode 100644 packages/google-cloud-parallelstore/samples/generated/v1beta/snippet_metadata_google.cloud.parallelstore.v1beta.json delete mode 100644 packages/google-cloud-parametermanager/samples/generated/v1/snippet_metadata_google.cloud.parametermanager.v1.json delete mode 100644 packages/google-cloud-phishingprotection/samples/generated/v1beta1/snippet_metadata_google.cloud.phishingprotection.v1beta1.json delete mode 100644 packages/google-cloud-policysimulator/samples/generated/v1/snippet_metadata_google.cloud.policysimulator.v1.json delete mode 100644 packages/google-cloud-policytroubleshooter-iam/samples/generated/v3/snippet_metadata_google.cloud.policytroubleshooter.iam.v3.json delete mode 100644 packages/google-cloud-policytroubleshooter-iam/samples/generated/v3beta/snippet_metadata_google.cloud.policytroubleshooter.iam.v3beta.json delete mode 100644 packages/google-cloud-policytroubleshooter/samples/generated/v1/snippet_metadata_google.cloud.policytroubleshooter.v1.json delete mode 100644 packages/google-cloud-privatecatalog/samples/generated/v1beta1/snippet_metadata_google.cloud.privatecatalog.v1beta1.json delete mode 100644 packages/google-cloud-privilegedaccessmanager/samples/generated/v1/snippet_metadata_google.cloud.privilegedaccessmanager.v1.json delete mode 100644 packages/google-cloud-rapidmigrationassessment/samples/generated/v1/snippet_metadata_google.cloud.rapidmigrationassessment.v1.json delete mode 100644 packages/google-cloud-recaptchaenterprise/samples/generated/v1/snippet_metadata_google.cloud.recaptchaenterprise.v1.json delete mode 100644 packages/google-cloud-recaptchaenterprise/samples/generated/v1beta1/snippet_metadata_google.cloud.recaptchaenterprise.v1beta1.json delete mode 100644 packages/google-cloud-recommender/samples/generated/v1/snippet_metadata_google.cloud.recommender.v1.json delete mode 100644 packages/google-cloud-recommender/samples/generated/v1beta1/snippet_metadata_google.cloud.recommender.v1beta1.json delete mode 100644 packages/google-cloud-redis-cluster/samples/generated/v1/snippet_metadata_google.cloud.redis.cluster.v1.json delete mode 100644 packages/google-cloud-redis-cluster/samples/generated/v1beta1/snippet_metadata_google.cloud.redis.cluster.v1beta1.json delete mode 100644 packages/google-cloud-redis/samples/generated/v1/snippet_metadata_google.cloud.redis.v1.json delete mode 100644 packages/google-cloud-redis/samples/generated/v1beta1/snippet_metadata_google.cloud.redis.v1beta1.json delete mode 100644 packages/google-cloud-resourcemanager/samples/generated/v3/snippet_metadata_google.cloud.resourcemanager.v3.json delete mode 100644 packages/google-cloud-retail/samples/generated/v2/snippet_metadata_google.cloud.retail.v2.json delete mode 100644 packages/google-cloud-retail/samples/generated/v2alpha/snippet_metadata_google.cloud.retail.v2alpha.json delete mode 100644 packages/google-cloud-retail/samples/generated/v2beta/snippet_metadata_google.cloud.retail.v2beta.json delete mode 100644 packages/google-cloud-run/samples/generated/v2/snippet_metadata_google.cloud.run.v2.json delete mode 100644 packages/google-cloud-saasplatform-saasservicemgmt/samples/generated/v1beta1/snippet_metadata_google.cloud.saasplatform.saasservicemgmt.v1beta1.json delete mode 100644 packages/google-cloud-scheduler/samples/generated/v1/snippet_metadata_google.cloud.scheduler.v1.json delete mode 100644 packages/google-cloud-scheduler/samples/generated/v1beta1/snippet_metadata_google.cloud.scheduler.v1beta1.json delete mode 100644 packages/google-cloud-secretmanager/samples/generated/v1/snippet_metadata_google.cloud.secretmanager.v1.json delete mode 100644 packages/google-cloud-secretmanager/samples/generated/v1beta2/snippet_metadata_google.cloud.secretmanager.v1beta2.json delete mode 100644 packages/google-cloud-securesourcemanager/samples/generated/v1/snippet_metadata_google.cloud.securesourcemanager.v1.json delete mode 100644 packages/google-cloud-security-privateca/samples/generated/v1/snippet_metadata_google.cloud.security.privateca.v1.json delete mode 100644 packages/google-cloud-security-privateca/samples/generated/v1beta1/snippet_metadata_google.cloud.security.privateca.v1beta1.json delete mode 100644 packages/google-cloud-security-publicca/samples/generated/v1/snippet_metadata_google.cloud.security.publicca.v1.json delete mode 100644 packages/google-cloud-security-publicca/samples/generated/v1alpha1/snippet_metadata_google.cloud.security.publicca.v1alpha1.json delete mode 100644 packages/google-cloud-security-publicca/samples/generated/v1beta1/snippet_metadata_google.cloud.security.publicca.v1beta1.json delete mode 100644 packages/google-cloud-securitycenter/samples/generated/v1/snippet_metadata_google.cloud.securitycenter.v1.json delete mode 100644 packages/google-cloud-securitycenter/samples/generated/v1beta1/snippet_metadata_google.cloud.securitycenter.v1beta1.json delete mode 100644 packages/google-cloud-securitycenter/samples/generated/v1p1beta1/snippet_metadata_google.cloud.securitycenter.v1p1beta1.json delete mode 100644 packages/google-cloud-securitycenter/samples/generated/v2/snippet_metadata_google.cloud.securitycenter.v2.json delete mode 100644 packages/google-cloud-securitycentermanagement/samples/generated/v1/snippet_metadata_google.cloud.securitycentermanagement.v1.json delete mode 100644 packages/google-cloud-servicedirectory/samples/generated/v1/snippet_metadata_google.cloud.servicedirectory.v1.json delete mode 100644 packages/google-cloud-servicedirectory/samples/generated/v1beta1/snippet_metadata_google.cloud.servicedirectory.v1beta1.json delete mode 100644 packages/google-cloud-servicehealth/samples/generated/v1/snippet_metadata_google.cloud.servicehealth.v1.json delete mode 100644 packages/google-cloud-shell/samples/generated/v1/snippet_metadata_google.cloud.shell.v1.json delete mode 100644 packages/google-cloud-speech/samples/generated/v1/snippet_metadata_google.cloud.speech.v1.json delete mode 100644 packages/google-cloud-speech/samples/generated/v1p1beta1/snippet_metadata_google.cloud.speech.v1p1beta1.json delete mode 100644 packages/google-cloud-speech/samples/generated/v2/snippet_metadata_google.cloud.speech.v2.json delete mode 100644 packages/google-cloud-sql/samples/generated/v1/snippet_metadata_google.cloud.sql.v1.json delete mode 100644 packages/google-cloud-sql/samples/generated/v1beta4/snippet_metadata_google.cloud.sql.v1beta4.json delete mode 100644 packages/google-cloud-storagebatchoperations/samples/generated/v1/snippet_metadata_google.cloud.storagebatchoperations.v1.json delete mode 100644 packages/google-cloud-storageinsights/samples/generated/v1/snippet_metadata_google.cloud.storageinsights.v1.json delete mode 100644 packages/google-cloud-support/samples/generated/v2/snippet_metadata_google.cloud.support.v2.json delete mode 100644 packages/google-cloud-support/samples/generated/v2beta/snippet_metadata_google.cloud.support.v2beta.json delete mode 100644 packages/google-cloud-talent/samples/generated/v4/snippet_metadata_google.cloud.talent.v4.json delete mode 100644 packages/google-cloud-talent/samples/generated/v4beta1/snippet_metadata_google.cloud.talent.v4beta1.json delete mode 100644 packages/google-cloud-tasks/samples/generated/v2/snippet_metadata_google.cloud.tasks.v2.json delete mode 100644 packages/google-cloud-tasks/samples/generated/v2beta2/snippet_metadata_google.cloud.tasks.v2beta2.json delete mode 100644 packages/google-cloud-tasks/samples/generated/v2beta3/snippet_metadata_google.cloud.tasks.v2beta3.json delete mode 100644 packages/google-cloud-telcoautomation/samples/generated/v1/snippet_metadata_google.cloud.telcoautomation.v1.json delete mode 100644 packages/google-cloud-telcoautomation/samples/generated/v1alpha1/snippet_metadata_google.cloud.telcoautomation.v1alpha1.json delete mode 100644 packages/google-cloud-texttospeech/samples/generated/v1/snippet_metadata_google.cloud.texttospeech.v1.json delete mode 100644 packages/google-cloud-texttospeech/samples/generated/v1beta1/snippet_metadata_google.cloud.texttospeech.v1beta1.json delete mode 100644 packages/google-cloud-tpu/samples/generated/v1/snippet_metadata_google.cloud.tpu.v1.json delete mode 100644 packages/google-cloud-tpu/samples/generated/v2/snippet_metadata_google.cloud.tpu.v2.json delete mode 100644 packages/google-cloud-tpu/samples/generated/v2alpha1/snippet_metadata_google.cloud.tpu.v2alpha1.json delete mode 100644 packages/google-cloud-translate/samples/generated/v3/snippet_metadata_google.cloud.translation.v3.json delete mode 100644 packages/google-cloud-translate/samples/generated/v3beta1/snippet_metadata_google.cloud.translation.v3beta1.json delete mode 100644 packages/google-cloud-vectorsearch/samples/generated/v1/snippet_metadata_google.cloud.vectorsearch.v1.json delete mode 100644 packages/google-cloud-vectorsearch/samples/generated/v1beta/snippet_metadata_google.cloud.vectorsearch.v1beta.json delete mode 100644 packages/google-cloud-video-livestream/samples/generated/v1/snippet_metadata_google.cloud.video.livestream.v1.json delete mode 100644 packages/google-cloud-video-stitcher/samples/generated/v1/snippet_metadata_google.cloud.video.stitcher.v1.json delete mode 100644 packages/google-cloud-video-transcoder/samples/generated/v1/snippet_metadata_google.cloud.video.transcoder.v1.json delete mode 100644 packages/google-cloud-videointelligence/samples/generated/v1/snippet_metadata_google.cloud.videointelligence.v1.json delete mode 100644 packages/google-cloud-videointelligence/samples/generated/v1beta2/snippet_metadata_google.cloud.videointelligence.v1beta2.json delete mode 100644 packages/google-cloud-videointelligence/samples/generated/v1p1beta1/snippet_metadata_google.cloud.videointelligence.v1p1beta1.json delete mode 100644 packages/google-cloud-videointelligence/samples/generated/v1p2beta1/snippet_metadata_google.cloud.videointelligence.v1p2beta1.json delete mode 100644 packages/google-cloud-videointelligence/samples/generated/v1p3beta1/snippet_metadata_google.cloud.videointelligence.v1p3beta1.json delete mode 100644 packages/google-cloud-vision/samples/generated/v1/snippet_metadata_google.cloud.vision.v1.json delete mode 100644 packages/google-cloud-vision/samples/generated/v1p1beta1/snippet_metadata_google.cloud.vision.v1p1beta1.json delete mode 100644 packages/google-cloud-vision/samples/generated/v1p2beta1/snippet_metadata_google.cloud.vision.v1p2beta1.json delete mode 100644 packages/google-cloud-vision/samples/generated/v1p3beta1/snippet_metadata_google.cloud.vision.v1p3beta1.json delete mode 100644 packages/google-cloud-vision/samples/generated/v1p4beta1/snippet_metadata_google.cloud.vision.v1p4beta1.json delete mode 100644 packages/google-cloud-visionai/samples/generated/v1/snippet_metadata_google.cloud.visionai.v1.json delete mode 100644 packages/google-cloud-vmmigration/samples/generated/v1/snippet_metadata_google.cloud.vmmigration.v1.json delete mode 100644 packages/google-cloud-vmwareengine/samples/generated/v1/snippet_metadata_google.cloud.vmwareengine.v1.json delete mode 100644 packages/google-cloud-vpcaccess/samples/generated/v1/snippet_metadata_google.cloud.vpcaccess.v1.json delete mode 100644 packages/google-cloud-webrisk/samples/generated/v1/snippet_metadata_google.cloud.webrisk.v1.json delete mode 100644 packages/google-cloud-webrisk/samples/generated/v1beta1/snippet_metadata_google.cloud.webrisk.v1beta1.json delete mode 100644 packages/google-cloud-websecurityscanner/samples/generated/v1/snippet_metadata_google.cloud.websecurityscanner.v1.json delete mode 100644 packages/google-cloud-websecurityscanner/samples/generated/v1alpha/snippet_metadata_google.cloud.websecurityscanner.v1alpha.json delete mode 100644 packages/google-cloud-websecurityscanner/samples/generated/v1beta/snippet_metadata_google.cloud.websecurityscanner.v1beta.json delete mode 100644 packages/google-cloud-workflows/samples/generated/v1/snippet_metadata_google.cloud.workflows.executions.v1.json delete mode 100644 packages/google-cloud-workflows/samples/generated/v1/snippet_metadata_google.cloud.workflows.v1.json delete mode 100644 packages/google-cloud-workflows/samples/generated/v1beta/snippet_metadata_google.cloud.workflows.executions.v1beta.json delete mode 100644 packages/google-cloud-workflows/samples/generated/v1beta/snippet_metadata_google.cloud.workflows.v1beta.json delete mode 100644 packages/google-cloud-workloadmanager/samples/generated/v1/snippet_metadata_google.cloud.workloadmanager.v1.json delete mode 100644 packages/google-cloud-workstations/samples/generated/v1/snippet_metadata_google.cloud.workstations.v1.json delete mode 100644 packages/google-cloud-workstations/samples/generated/v1beta/snippet_metadata_google.cloud.workstations.v1beta.json delete mode 100644 packages/google-container/samples/generated/v1/snippet_metadata_google.container.v1.json delete mode 100644 packages/google-container/samples/generated/v1beta1/snippet_metadata_google.container.v1beta1.json delete mode 100644 packages/google-dataflow/samples/generated/v1beta3/snippet_metadata_google.dataflow.v1beta3.json delete mode 100644 packages/google-devicesandservices-health/samples/generated/v4/snippet_metadata_google.devicesandservices.health.v4.json delete mode 100644 packages/google-devtools-artifactregistry/samples/generated/v1/snippet_metadata_google.devtools.artifactregistry.v1.json delete mode 100644 packages/google-devtools-artifactregistry/samples/generated/v1beta2/snippet_metadata_google.devtools.artifactregistry.v1beta2.json delete mode 100644 packages/google-devtools-cloudbuild/samples/generated/v1/snippet_metadata_google.devtools.cloudbuild.v1.json delete mode 100644 packages/google-devtools-cloudbuild/samples/generated/v2/snippet_metadata_google.devtools.cloudbuild.v2.json delete mode 100644 packages/google-devtools-cloudprofiler/samples/generated/v2/snippet_metadata_google.devtools.cloudprofiler.v2.json delete mode 100644 packages/google-devtools-containeranalysis/samples/generated/v1/snippet_metadata_google.devtools.containeranalysis.v1.json delete mode 100644 packages/google-devtools-containeranalysis/samples/generated/v1beta1/snippet_metadata_google.devtools.containeranalysis.v1beta1.json delete mode 100644 packages/google-iam-credentials/samples/generated/v1/snippet_metadata_google.iam.credentials.v1.json delete mode 100644 packages/google-iam/samples/generated/v1beta/snippet_metadata_google.iam.v1beta.json delete mode 100644 packages/google-iam/samples/generated/v2/snippet_metadata_google.iam.v2.json delete mode 100644 packages/google-iam/samples/generated/v2beta/snippet_metadata_google.iam.v2beta.json delete mode 100644 packages/google-iam/samples/generated/v3/snippet_metadata_google.iam.v3.json delete mode 100644 packages/google-iam/samples/generated/v3beta/snippet_metadata_google.iam.v3beta.json delete mode 100644 packages/google-identity-accesscontextmanager/samples/generated/v1/snippet_metadata_google.identity.accesscontextmanager.v1.json delete mode 100644 packages/google-maps-addressvalidation/samples/generated/v1/snippet_metadata_google.maps.addressvalidation.v1.json delete mode 100644 packages/google-maps-areainsights/samples/generated/v1/snippet_metadata_google.maps.areainsights.v1.json delete mode 100644 packages/google-maps-fleetengine-delivery/samples/generated/v1/snippet_metadata_maps.fleetengine.delivery.v1.json delete mode 100644 packages/google-maps-fleetengine/samples/generated/v1/snippet_metadata_maps.fleetengine.v1.json delete mode 100644 packages/google-maps-geocode/samples/generated/v4/snippet_metadata_google.maps.geocode.v4.json delete mode 100644 packages/google-maps-mapsplatformdatasets/samples/generated/v1/snippet_metadata_google.maps.mapsplatformdatasets.v1.json delete mode 100644 packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/snippet_metadata_google.maps.mapsplatformdatasets.v1alpha.json delete mode 100644 packages/google-maps-navconnect/samples/generated/v1/snippet_metadata_google.maps.navconnect.v1.json delete mode 100644 packages/google-maps-places/samples/generated/v1/snippet_metadata_google.maps.places.v1.json delete mode 100644 packages/google-maps-routeoptimization/samples/generated/v1/snippet_metadata_google.maps.routeoptimization.v1.json delete mode 100644 packages/google-maps-routing/samples/generated/v2/snippet_metadata_google.maps.routing.v2.json delete mode 100644 packages/google-maps-solar/samples/generated/v1/snippet_metadata_google.maps.solar.v1.json delete mode 100644 packages/google-marketingplatform-admin/samples/generated/v1alpha/snippet_metadata_google.marketingplatform.admin.v1alpha.json delete mode 100644 packages/google-monitoring-dashboard/samples/generated/v1/snippet_metadata_google.monitoring.dashboard.v1.json delete mode 100644 packages/google-privacy-dlp/samples/generated/v2/snippet_metadata_google.privacy.dlp.v2.json delete mode 100644 packages/google-shopping-css/samples/generated/v1/snippet_metadata_google.shopping.css.v1.json delete mode 100644 packages/google-shopping-merchant-accounts/samples/generated/v1/snippet_metadata_google.shopping.merchant.accounts.v1.json delete mode 100644 packages/google-shopping-merchant-accounts/samples/generated/v1beta/snippet_metadata_google.shopping.merchant.accounts.v1beta.json delete mode 100644 packages/google-shopping-merchant-conversions/samples/generated/v1/snippet_metadata_google.shopping.merchant.conversions.v1.json delete mode 100644 packages/google-shopping-merchant-conversions/samples/generated/v1beta/snippet_metadata_google.shopping.merchant.conversions.v1beta.json delete mode 100644 packages/google-shopping-merchant-datasources/samples/generated/v1/snippet_metadata_google.shopping.merchant.datasources.v1.json delete mode 100644 packages/google-shopping-merchant-datasources/samples/generated/v1beta/snippet_metadata_google.shopping.merchant.datasources.v1beta.json delete mode 100644 packages/google-shopping-merchant-inventories/samples/generated/v1/snippet_metadata_google.shopping.merchant.inventories.v1.json delete mode 100644 packages/google-shopping-merchant-inventories/samples/generated/v1beta/snippet_metadata_google.shopping.merchant.inventories.v1beta.json delete mode 100644 packages/google-shopping-merchant-issueresolution/samples/generated/v1/snippet_metadata_google.shopping.merchant.issueresolution.v1.json delete mode 100644 packages/google-shopping-merchant-issueresolution/samples/generated/v1beta/snippet_metadata_google.shopping.merchant.issueresolution.v1beta.json delete mode 100644 packages/google-shopping-merchant-lfp/samples/generated/v1/snippet_metadata_google.shopping.merchant.lfp.v1.json delete mode 100644 packages/google-shopping-merchant-lfp/samples/generated/v1beta/snippet_metadata_google.shopping.merchant.lfp.v1beta.json delete mode 100644 packages/google-shopping-merchant-notifications/samples/generated/v1/snippet_metadata_google.shopping.merchant.notifications.v1.json delete mode 100644 packages/google-shopping-merchant-notifications/samples/generated/v1beta/snippet_metadata_google.shopping.merchant.notifications.v1beta.json delete mode 100644 packages/google-shopping-merchant-ordertracking/samples/generated/v1/snippet_metadata_google.shopping.merchant.ordertracking.v1.json delete mode 100644 packages/google-shopping-merchant-ordertracking/samples/generated/v1beta/snippet_metadata_google.shopping.merchant.ordertracking.v1beta.json delete mode 100644 packages/google-shopping-merchant-products/samples/generated/v1/snippet_metadata_google.shopping.merchant.products.v1.json delete mode 100644 packages/google-shopping-merchant-products/samples/generated/v1beta/snippet_metadata_google.shopping.merchant.products.v1beta.json delete mode 100644 packages/google-shopping-merchant-promotions/samples/generated/v1/snippet_metadata_google.shopping.merchant.promotions.v1.json delete mode 100644 packages/google-shopping-merchant-promotions/samples/generated/v1beta/snippet_metadata_google.shopping.merchant.promotions.v1beta.json delete mode 100644 packages/google-shopping-merchant-quota/samples/generated/v1/snippet_metadata_google.shopping.merchant.quota.v1.json delete mode 100644 packages/google-shopping-merchant-quota/samples/generated/v1beta/snippet_metadata_google.shopping.merchant.quota.v1beta.json delete mode 100644 packages/google-shopping-merchant-reports/samples/generated/v1/snippet_metadata_google.shopping.merchant.reports.v1.json delete mode 100644 packages/google-shopping-merchant-reports/samples/generated/v1alpha/snippet_metadata_google.shopping.merchant.reports.v1alpha.json delete mode 100644 packages/google-shopping-merchant-reports/samples/generated/v1beta/snippet_metadata_google.shopping.merchant.reports.v1beta.json delete mode 100644 packages/google-shopping-merchant-reviews/samples/generated/v1beta/snippet_metadata_google.shopping.merchant.reviews.v1beta.json delete mode 100644 packages/google-storage-control/samples/generated/v2/snippet_metadata_google.storage.control.v2.json delete mode 100644 packages/google-storage-control/samples/generated/v2/snippet_metadata_google.storage.v2.json delete mode 100644 packages/google-storagetransfer/samples/generated/v1/snippet_metadata_google.storagetransfer.v1.json delete mode 100644 packages/google-streetview-publish/samples/generated/v1/snippet_metadata_google.streetview.publish.v1.json delete mode 100644 packages/grafeas/samples/generated/v1/snippet_metadata_grafeas.v1.json diff --git a/core/packages/gapic-node-processing/test/fixtures/combined-library/google-analytics-data-nodejs/analytics-data-v1alpha-nodejs/samples/generated/v1alpha/snippet_metadata_google.analytics.data.v1alpha.json b/core/packages/gapic-node-processing/test/fixtures/combined-library/google-analytics-data-nodejs/analytics-data-v1alpha-nodejs/samples/generated/v1alpha/snippet_metadata_google.analytics.data.v1alpha.json deleted file mode 100644 index 92dbb6896d17..000000000000 --- a/core/packages/gapic-node-processing/test/fixtures/combined-library/google-analytics-data-nodejs/analytics-data-v1alpha-nodejs/samples/generated/v1alpha/snippet_metadata_google.analytics.data.v1alpha.json +++ /dev/null @@ -1,671 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-data", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.analytics.data.v1alpha", - "version": "v1alpha" - } - ] - }, - "snippets": [ - { - "regionTag": "analyticsdata_v1alpha_generated_AlphaAnalyticsData_RunFunnelReport_async", - "title": "AlphaAnalyticsData runFunnelReport Sample", - "origin": "API_DEFINITION", - "description": " Returns a customized funnel report of your Google Analytics event data. The data returned from the API is as a table with columns for the requested dimensions and metrics. Funnel exploration lets you visualize the steps your users take to complete a task and quickly see how well they are succeeding or failing at each step. For example, how do prospects become shoppers and then become buyers? How do one time buyers become repeat buyers? With this information, you can improve inefficient or abandoned customer journeys. To learn more, see [GA4 Funnel Explorations](https://support.google.com/analytics/answer/9327974). This method is introduced at alpha stability with the intention of gathering feedback on syntax and capabilities before entering beta. To give your feedback on this API, complete the [Google Analytics Data API Funnel Reporting Feedback](https://docs.google.com/forms/d/e/1FAIpQLSdwOlQDJAUoBiIgUZZ3S_Lwi8gr7Bb0k1jhvc-DEg7Rol3UjA/viewform).", - "canonical": true, - "file": "alpha_analytics_data.run_funnel_report.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 124, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RunFunnelReport", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.RunFunnelReport", - "async": true, - "parameters": [ - { - "name": "property", - "type": "TYPE_STRING" - }, - { - "name": "date_ranges", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "funnel", - "type": ".google.analytics.data.v1alpha.Funnel" - }, - { - "name": "funnel_breakdown", - "type": ".google.analytics.data.v1alpha.FunnelBreakdown" - }, - { - "name": "funnel_next_action", - "type": ".google.analytics.data.v1alpha.FunnelNextAction" - }, - { - "name": "funnel_visualization_type", - "type": ".google.analytics.data.v1alpha.RunFunnelReportRequest.FunnelVisualizationType" - }, - { - "name": "segments", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "limit", - "type": "TYPE_INT64" - }, - { - "name": "dimension_filter", - "type": ".google.analytics.data.v1alpha.FilterExpression" - }, - { - "name": "return_property_quota", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.analytics.data.v1alpha.RunFunnelReportResponse", - "client": { - "shortName": "AlphaAnalyticsDataClient", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsDataClient" - }, - "method": { - "shortName": "RunFunnelReport", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.RunFunnelReport", - "service": { - "shortName": "AlphaAnalyticsData", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1alpha_generated_AlphaAnalyticsData_CreateAudienceList_async", - "title": "AlphaAnalyticsData createAudienceList Sample", - "origin": "API_DEFINITION", - "description": " Creates an audience list for later retrieval. This method quickly returns the audience list's resource name and initiates a long running asynchronous request to form an audience list. To list the users in an audience list, first create the audience list through this method and then send the audience resource name to the `QueryAudienceList` method. See [Creating an Audience List](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) for an introduction to Audience Lists with examples. An audience list is a snapshot of the users currently in the audience at the time of audience list creation. Creating audience lists for one audience on different days will return different results as users enter and exit the audience. Audiences in Google Analytics 4 allow you to segment your users in the ways that are important to your business. To learn more, see https://support.google.com/analytics/answer/9267572. Audience lists contain the users in each audience. This method is available at beta stability at [audienceExports.create](https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties.audienceExports/create). To give your feedback on this API, complete the [Google Analytics Audience Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.", - "canonical": true, - "file": "alpha_analytics_data.create_audience_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAudienceList", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.CreateAudienceList", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "audience_list", - "type": ".google.analytics.data.v1alpha.AudienceList" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlphaAnalyticsDataClient", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsDataClient" - }, - "method": { - "shortName": "CreateAudienceList", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.CreateAudienceList", - "service": { - "shortName": "AlphaAnalyticsData", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1alpha_generated_AlphaAnalyticsData_QueryAudienceList_async", - "title": "AlphaAnalyticsData queryAudienceList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an audience list of users. After creating an audience, the users are not immediately available for listing. First, a request to `CreateAudienceList` is necessary to create an audience list of users, and then second, this method is used to retrieve the users in the audience list. See [Creating an Audience List](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) for an introduction to Audience Lists with examples. Audiences in Google Analytics 4 allow you to segment your users in the ways that are important to your business. To learn more, see https://support.google.com/analytics/answer/9267572. This method is available at beta stability at [audienceExports.query](https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties.audienceExports/query). To give your feedback on this API, complete the [Google Analytics Audience Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.", - "canonical": true, - "file": "alpha_analytics_data.query_audience_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryAudienceList", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.QueryAudienceList", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "offset", - "type": "TYPE_INT64" - }, - { - "name": "limit", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.analytics.data.v1alpha.QueryAudienceListResponse", - "client": { - "shortName": "AlphaAnalyticsDataClient", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsDataClient" - }, - "method": { - "shortName": "QueryAudienceList", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.QueryAudienceList", - "service": { - "shortName": "AlphaAnalyticsData", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1alpha_generated_AlphaAnalyticsData_SheetExportAudienceList_async", - "title": "AlphaAnalyticsData sheetExportAudienceList Sample", - "origin": "API_DEFINITION", - "description": " Exports an audience list of users to a Google Sheet. After creating an audience, the users are not immediately available for listing. First, a request to `CreateAudienceList` is necessary to create an audience list of users, and then second, this method is used to export those users in the audience list to a Google Sheet. See [Creating an Audience List](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) for an introduction to Audience Lists with examples. Audiences in Google Analytics 4 allow you to segment your users in the ways that are important to your business. To learn more, see https://support.google.com/analytics/answer/9267572. This method is introduced at alpha stability with the intention of gathering feedback on syntax and capabilities before entering beta. To give your feedback on this API, complete the [Google Analytics Audience Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.", - "canonical": true, - "file": "alpha_analytics_data.sheet_export_audience_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SheetExportAudienceList", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.SheetExportAudienceList", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "offset", - "type": "TYPE_INT64" - }, - { - "name": "limit", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.analytics.data.v1alpha.SheetExportAudienceListResponse", - "client": { - "shortName": "AlphaAnalyticsDataClient", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsDataClient" - }, - "method": { - "shortName": "SheetExportAudienceList", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.SheetExportAudienceList", - "service": { - "shortName": "AlphaAnalyticsData", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1alpha_generated_AlphaAnalyticsData_GetAudienceList_async", - "title": "AlphaAnalyticsData getAudienceList Sample", - "origin": "API_DEFINITION", - "description": " Gets configuration metadata about a specific audience list. This method can be used to understand an audience list after it has been created. See [Creating an Audience List](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) for an introduction to Audience Lists with examples. This method is available at beta stability at [audienceExports.get](https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties.audienceExports/get). To give your feedback on this API, complete the [Google Analytics Audience Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.", - "canonical": true, - "file": "alpha_analytics_data.get_audience_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAudienceList", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.GetAudienceList", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.data.v1alpha.AudienceList", - "client": { - "shortName": "AlphaAnalyticsDataClient", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsDataClient" - }, - "method": { - "shortName": "GetAudienceList", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.GetAudienceList", - "service": { - "shortName": "AlphaAnalyticsData", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1alpha_generated_AlphaAnalyticsData_ListAudienceLists_async", - "title": "AlphaAnalyticsData listAudienceLists Sample", - "origin": "API_DEFINITION", - "description": " Lists all audience lists for a property. This method can be used for you to find and reuse existing audience lists rather than creating unnecessary new audience lists. The same audience can have multiple audience lists that represent the list of users that were in an audience on different days. See [Creating an Audience List](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) for an introduction to Audience Lists with examples. This method is available at beta stability at [audienceExports.list](https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties.audienceExports/list). To give your feedback on this API, complete the [Google Analytics Audience Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.", - "canonical": true, - "file": "alpha_analytics_data.list_audience_lists.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAudienceLists", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.ListAudienceLists", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.data.v1alpha.ListAudienceListsResponse", - "client": { - "shortName": "AlphaAnalyticsDataClient", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsDataClient" - }, - "method": { - "shortName": "ListAudienceLists", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.ListAudienceLists", - "service": { - "shortName": "AlphaAnalyticsData", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1alpha_generated_AlphaAnalyticsData_CreateRecurringAudienceList_async", - "title": "AlphaAnalyticsData createRecurringAudienceList Sample", - "origin": "API_DEFINITION", - "description": " Creates a recurring audience list. Recurring audience lists produces new audience lists each day. Audience lists are users in an audience at the time of the list's creation. A recurring audience list ensures that you have audience list based on the most recent data available for use each day. If you manually create audience list, you don't know when an audience list based on an additional day's data is available. This recurring audience list automates the creation of an audience list when an additional day's data is available. You will consume fewer quota tokens by using recurring audience list versus manually creating audience list at various times of day trying to guess when an additional day's data is ready. This method is introduced at alpha stability with the intention of gathering feedback on syntax and capabilities before entering beta. To give your feedback on this API, complete the [Google Analytics Audience Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.", - "canonical": true, - "file": "alpha_analytics_data.create_recurring_audience_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateRecurringAudienceList", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.CreateRecurringAudienceList", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "recurring_audience_list", - "type": ".google.analytics.data.v1alpha.RecurringAudienceList" - } - ], - "resultType": ".google.analytics.data.v1alpha.RecurringAudienceList", - "client": { - "shortName": "AlphaAnalyticsDataClient", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsDataClient" - }, - "method": { - "shortName": "CreateRecurringAudienceList", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.CreateRecurringAudienceList", - "service": { - "shortName": "AlphaAnalyticsData", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1alpha_generated_AlphaAnalyticsData_GetRecurringAudienceList_async", - "title": "AlphaAnalyticsData getRecurringAudienceList Sample", - "origin": "API_DEFINITION", - "description": " Gets configuration metadata about a specific recurring audience list. This method can be used to understand a recurring audience list's state after it has been created. For example, a recurring audience list resource will generate audience list instances for each day, and this method can be used to get the resource name of the most recent audience list instance. This method is introduced at alpha stability with the intention of gathering feedback on syntax and capabilities before entering beta. To give your feedback on this API, complete the [Google Analytics Audience Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.", - "canonical": true, - "file": "alpha_analytics_data.get_recurring_audience_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRecurringAudienceList", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.GetRecurringAudienceList", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.data.v1alpha.RecurringAudienceList", - "client": { - "shortName": "AlphaAnalyticsDataClient", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsDataClient" - }, - "method": { - "shortName": "GetRecurringAudienceList", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.GetRecurringAudienceList", - "service": { - "shortName": "AlphaAnalyticsData", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1alpha_generated_AlphaAnalyticsData_ListRecurringAudienceLists_async", - "title": "AlphaAnalyticsData listRecurringAudienceLists Sample", - "origin": "API_DEFINITION", - "description": " Lists all recurring audience lists for a property. This method can be used for you to find and reuse existing recurring audience lists rather than creating unnecessary new recurring audience lists. The same audience can have multiple recurring audience lists that represent different dimension combinations; for example, just the dimension `deviceId` or both the dimensions `deviceId` and `userId`. This method is introduced at alpha stability with the intention of gathering feedback on syntax and capabilities before entering beta. To give your feedback on this API, complete the [Google Analytics Audience Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.", - "canonical": true, - "file": "alpha_analytics_data.list_recurring_audience_lists.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRecurringAudienceLists", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.ListRecurringAudienceLists", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.data.v1alpha.ListRecurringAudienceListsResponse", - "client": { - "shortName": "AlphaAnalyticsDataClient", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsDataClient" - }, - "method": { - "shortName": "ListRecurringAudienceLists", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.ListRecurringAudienceLists", - "service": { - "shortName": "AlphaAnalyticsData", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1alpha_generated_AlphaAnalyticsData_GetPropertyQuotasSnapshot_async", - "title": "AlphaAnalyticsData getPropertyQuotasSnapshot Sample", - "origin": "API_DEFINITION", - "description": " Get all property quotas organized by quota category for a given property. This will charge 1 property quota from the category with the most quota.", - "canonical": true, - "file": "alpha_analytics_data.get_property_quotas_snapshot.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPropertyQuotasSnapshot", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.GetPropertyQuotasSnapshot", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.data.v1alpha.PropertyQuotasSnapshot", - "client": { - "shortName": "AlphaAnalyticsDataClient", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsDataClient" - }, - "method": { - "shortName": "GetPropertyQuotasSnapshot", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.GetPropertyQuotasSnapshot", - "service": { - "shortName": "AlphaAnalyticsData", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1alpha_generated_AlphaAnalyticsData_CreateReportTask_async", - "title": "AlphaAnalyticsData createReportTask Sample", - "origin": "API_DEFINITION", - "description": " Initiates the creation of a report task. This method quickly returns a report task and initiates a long running asynchronous request to form a customized report of your Google Analytics event data. A report task will be retained and available for querying for 72 hours after it has been created. A report task created by one user can be listed and queried by all users who have access to the property.", - "canonical": true, - "file": "alpha_analytics_data.create_report_task.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateReportTask", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.CreateReportTask", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "report_task", - "type": ".google.analytics.data.v1alpha.ReportTask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlphaAnalyticsDataClient", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsDataClient" - }, - "method": { - "shortName": "CreateReportTask", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.CreateReportTask", - "service": { - "shortName": "AlphaAnalyticsData", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1alpha_generated_AlphaAnalyticsData_QueryReportTask_async", - "title": "AlphaAnalyticsData queryReportTask Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a report task's content. After requesting the `CreateReportTask`, you are able to retrieve the report content once the report is ACTIVE. This method will return an error if the report task's state is not `ACTIVE`. A query response will return the tabular row & column values of the report.", - "canonical": true, - "file": "alpha_analytics_data.query_report_task.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryReportTask", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.QueryReportTask", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "offset", - "type": "TYPE_INT64" - }, - { - "name": "limit", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.analytics.data.v1alpha.QueryReportTaskResponse", - "client": { - "shortName": "AlphaAnalyticsDataClient", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsDataClient" - }, - "method": { - "shortName": "QueryReportTask", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.QueryReportTask", - "service": { - "shortName": "AlphaAnalyticsData", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1alpha_generated_AlphaAnalyticsData_GetReportTask_async", - "title": "AlphaAnalyticsData getReportTask Sample", - "origin": "API_DEFINITION", - "description": " Gets report metadata about a specific report task. After creating a report task, use this method to check its processing state or inspect its report definition.", - "canonical": true, - "file": "alpha_analytics_data.get_report_task.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetReportTask", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.GetReportTask", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.data.v1alpha.ReportTask", - "client": { - "shortName": "AlphaAnalyticsDataClient", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsDataClient" - }, - "method": { - "shortName": "GetReportTask", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.GetReportTask", - "service": { - "shortName": "AlphaAnalyticsData", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1alpha_generated_AlphaAnalyticsData_ListReportTasks_async", - "title": "AlphaAnalyticsData listReportTasks Sample", - "origin": "API_DEFINITION", - "description": " Lists all report tasks for a property.", - "canonical": true, - "file": "alpha_analytics_data.list_report_tasks.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListReportTasks", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.ListReportTasks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.data.v1alpha.ListReportTasksResponse", - "client": { - "shortName": "AlphaAnalyticsDataClient", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsDataClient" - }, - "method": { - "shortName": "ListReportTasks", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.ListReportTasks", - "service": { - "shortName": "AlphaAnalyticsData", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData" - } - } - } - } - ] -} diff --git a/core/packages/gapic-node-processing/test/fixtures/combined-library/google-analytics-data-nodejs/google-analytics-data-v1beta-nodejs/samples/generated/v1beta/snippet_metadata_google.analytics.data.v1beta.json b/core/packages/gapic-node-processing/test/fixtures/combined-library/google-analytics-data-nodejs/google-analytics-data-v1beta-nodejs/samples/generated/v1beta/snippet_metadata_google.analytics.data.v1beta.json deleted file mode 100644 index ba79913e3173..000000000000 --- a/core/packages/gapic-node-processing/test/fixtures/combined-library/google-analytics-data-nodejs/google-analytics-data-v1beta-nodejs/samples/generated/v1beta/snippet_metadata_google.analytics.data.v1beta.json +++ /dev/null @@ -1,639 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-data", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.analytics.data.v1beta", - "version": "v1beta" - } - ] - }, - "snippets": [ - { - "regionTag": "analyticsdata_v1beta_generated_BetaAnalyticsData_RunReport_async", - "title": "BetaAnalyticsData runReport Sample", - "origin": "API_DEFINITION", - "description": " Returns a customized report of your Google Analytics event data. Reports contain statistics derived from data collected by the Google Analytics tracking code. The data returned from the API is as a table with columns for the requested dimensions and metrics. Metrics are individual measurements of user activity on your property, such as active users or event count. Dimensions break down metrics across some common criteria, such as country or event name. For a guide to constructing requests & understanding responses, see [Creating a Report](https://developers.google.com/analytics/devguides/reporting/data/v1/basics).", - "canonical": true, - "file": "beta_analytics_data.run_report.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 154, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RunReport", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.RunReport", - "async": true, - "parameters": [ - { - "name": "property", - "type": "TYPE_STRING" - }, - { - "name": "dimensions", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "metrics", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "date_ranges", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "dimension_filter", - "type": ".google.analytics.data.v1beta.FilterExpression" - }, - { - "name": "metric_filter", - "type": ".google.analytics.data.v1beta.FilterExpression" - }, - { - "name": "offset", - "type": "TYPE_INT64" - }, - { - "name": "limit", - "type": "TYPE_INT64" - }, - { - "name": "metric_aggregations", - "type": "TYPE_ENUM[]" - }, - { - "name": "order_bys", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "currency_code", - "type": "TYPE_STRING" - }, - { - "name": "cohort_spec", - "type": ".google.analytics.data.v1beta.CohortSpec" - }, - { - "name": "keep_empty_rows", - "type": "TYPE_BOOL" - }, - { - "name": "return_property_quota", - "type": "TYPE_BOOL" - }, - { - "name": "comparisons", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.analytics.data.v1beta.RunReportResponse", - "client": { - "shortName": "BetaAnalyticsDataClient", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsDataClient" - }, - "method": { - "shortName": "RunReport", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.RunReport", - "service": { - "shortName": "BetaAnalyticsData", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1beta_generated_BetaAnalyticsData_RunPivotReport_async", - "title": "BetaAnalyticsData runPivotReport Sample", - "origin": "API_DEFINITION", - "description": " Returns a customized pivot report of your Google Analytics event data. Pivot reports are more advanced and expressive formats than regular reports. In a pivot report, dimensions are only visible if they are included in a pivot. Multiple pivots can be specified to further dissect your data.", - "canonical": true, - "file": "beta_analytics_data.run_pivot_report.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 127, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RunPivotReport", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.RunPivotReport", - "async": true, - "parameters": [ - { - "name": "property", - "type": "TYPE_STRING" - }, - { - "name": "dimensions", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "metrics", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "date_ranges", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "pivots", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "dimension_filter", - "type": ".google.analytics.data.v1beta.FilterExpression" - }, - { - "name": "metric_filter", - "type": ".google.analytics.data.v1beta.FilterExpression" - }, - { - "name": "currency_code", - "type": "TYPE_STRING" - }, - { - "name": "cohort_spec", - "type": ".google.analytics.data.v1beta.CohortSpec" - }, - { - "name": "keep_empty_rows", - "type": "TYPE_BOOL" - }, - { - "name": "return_property_quota", - "type": "TYPE_BOOL" - }, - { - "name": "comparisons", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.analytics.data.v1beta.RunPivotReportResponse", - "client": { - "shortName": "BetaAnalyticsDataClient", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsDataClient" - }, - "method": { - "shortName": "RunPivotReport", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.RunPivotReport", - "service": { - "shortName": "BetaAnalyticsData", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1beta_generated_BetaAnalyticsData_BatchRunReports_async", - "title": "BetaAnalyticsData batchRunReports Sample", - "origin": "API_DEFINITION", - "description": " Returns multiple reports in a batch. All reports must be for the same Google Analytics property.", - "canonical": true, - "file": "beta_analytics_data.batch_run_reports.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchRunReports", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.BatchRunReports", - "async": true, - "parameters": [ - { - "name": "property", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.analytics.data.v1beta.BatchRunReportsResponse", - "client": { - "shortName": "BetaAnalyticsDataClient", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsDataClient" - }, - "method": { - "shortName": "BatchRunReports", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.BatchRunReports", - "service": { - "shortName": "BetaAnalyticsData", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1beta_generated_BetaAnalyticsData_BatchRunPivotReports_async", - "title": "BetaAnalyticsData batchRunPivotReports Sample", - "origin": "API_DEFINITION", - "description": " Returns multiple pivot reports in a batch. All reports must be for the same Google Analytics property.", - "canonical": true, - "file": "beta_analytics_data.batch_run_pivot_reports.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchRunPivotReports", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.BatchRunPivotReports", - "async": true, - "parameters": [ - { - "name": "property", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.analytics.data.v1beta.BatchRunPivotReportsResponse", - "client": { - "shortName": "BetaAnalyticsDataClient", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsDataClient" - }, - "method": { - "shortName": "BatchRunPivotReports", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.BatchRunPivotReports", - "service": { - "shortName": "BetaAnalyticsData", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1beta_generated_BetaAnalyticsData_GetMetadata_async", - "title": "BetaAnalyticsData getMetadata Sample", - "origin": "API_DEFINITION", - "description": " Returns metadata for dimensions and metrics available in reporting methods. Used to explore the dimensions and metrics. In this method, a Google Analytics property identifier is specified in the request, and the metadata response includes Custom dimensions and metrics as well as Universal metadata. For example if a custom metric with parameter name `levels_unlocked` is registered to a property, the Metadata response will contain `customEvent:levels_unlocked`. Universal metadata are dimensions and metrics applicable to any property such as `country` and `totalUsers`.", - "canonical": true, - "file": "beta_analytics_data.get_metadata.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMetadata", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.GetMetadata", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.data.v1beta.Metadata", - "client": { - "shortName": "BetaAnalyticsDataClient", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsDataClient" - }, - "method": { - "shortName": "GetMetadata", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.GetMetadata", - "service": { - "shortName": "BetaAnalyticsData", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1beta_generated_BetaAnalyticsData_RunRealtimeReport_async", - "title": "BetaAnalyticsData runRealtimeReport Sample", - "origin": "API_DEFINITION", - "description": " Returns a customized report of realtime event data for your property. Events appear in realtime reports seconds after they have been sent to the Google Analytics. Realtime reports show events and usage data for the periods of time ranging from the present moment to 30 minutes ago (up to 60 minutes for Google Analytics 360 properties). For a guide to constructing realtime requests & understanding responses, see [Creating a Realtime Report](https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-basics).", - "canonical": true, - "file": "beta_analytics_data.run_realtime_report.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 107, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RunRealtimeReport", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.RunRealtimeReport", - "async": true, - "parameters": [ - { - "name": "property", - "type": "TYPE_STRING" - }, - { - "name": "dimensions", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "metrics", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "dimension_filter", - "type": ".google.analytics.data.v1beta.FilterExpression" - }, - { - "name": "metric_filter", - "type": ".google.analytics.data.v1beta.FilterExpression" - }, - { - "name": "limit", - "type": "TYPE_INT64" - }, - { - "name": "metric_aggregations", - "type": "TYPE_ENUM[]" - }, - { - "name": "order_bys", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "return_property_quota", - "type": "TYPE_BOOL" - }, - { - "name": "minute_ranges", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.analytics.data.v1beta.RunRealtimeReportResponse", - "client": { - "shortName": "BetaAnalyticsDataClient", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsDataClient" - }, - "method": { - "shortName": "RunRealtimeReport", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.RunRealtimeReport", - "service": { - "shortName": "BetaAnalyticsData", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1beta_generated_BetaAnalyticsData_CheckCompatibility_async", - "title": "BetaAnalyticsData checkCompatibility Sample", - "origin": "API_DEFINITION", - "description": " This compatibility method lists dimensions and metrics that can be added to a report request and maintain compatibility. This method fails if the request's dimensions and metrics are incompatible. In Google Analytics, reports fail if they request incompatible dimensions and/or metrics; in that case, you will need to remove dimensions and/or metrics from the incompatible report until the report is compatible. The Realtime and Core reports have different compatibility rules. This method checks compatibility for Core reports.", - "canonical": true, - "file": "beta_analytics_data.check_compatibility.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CheckCompatibility", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.CheckCompatibility", - "async": true, - "parameters": [ - { - "name": "property", - "type": "TYPE_STRING" - }, - { - "name": "dimensions", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "metrics", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "dimension_filter", - "type": ".google.analytics.data.v1beta.FilterExpression" - }, - { - "name": "metric_filter", - "type": ".google.analytics.data.v1beta.FilterExpression" - }, - { - "name": "compatibility_filter", - "type": ".google.analytics.data.v1beta.Compatibility" - } - ], - "resultType": ".google.analytics.data.v1beta.CheckCompatibilityResponse", - "client": { - "shortName": "BetaAnalyticsDataClient", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsDataClient" - }, - "method": { - "shortName": "CheckCompatibility", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.CheckCompatibility", - "service": { - "shortName": "BetaAnalyticsData", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1beta_generated_BetaAnalyticsData_CreateAudienceExport_async", - "title": "BetaAnalyticsData createAudienceExport Sample", - "origin": "API_DEFINITION", - "description": " Creates an audience export for later retrieval. This method quickly returns the audience export's resource name and initiates a long running asynchronous request to form an audience export. To export the users in an audience export, first create the audience export through this method and then send the audience resource name to the `QueryAudienceExport` method. See [Creating an Audience Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) for an introduction to Audience Exports with examples. An audience export is a snapshot of the users currently in the audience at the time of audience export creation. Creating audience exports for one audience on different days will return different results as users enter and exit the audience. Audiences in Google Analytics 4 allow you to segment your users in the ways that are important to your business. To learn more, see https://support.google.com/analytics/answer/9267572. Audience exports contain the users in each audience. Audience Export APIs have some methods at alpha and other methods at beta stability. The intention is to advance methods to beta stability after some feedback and adoption. To give your feedback on this API, complete the [Google Analytics Audience Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.", - "canonical": true, - "file": "beta_analytics_data.create_audience_export.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAudienceExport", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.CreateAudienceExport", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "audience_export", - "type": ".google.analytics.data.v1beta.AudienceExport" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BetaAnalyticsDataClient", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsDataClient" - }, - "method": { - "shortName": "CreateAudienceExport", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.CreateAudienceExport", - "service": { - "shortName": "BetaAnalyticsData", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1beta_generated_BetaAnalyticsData_QueryAudienceExport_async", - "title": "BetaAnalyticsData queryAudienceExport Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an audience export of users. After creating an audience, the users are not immediately available for exporting. First, a request to `CreateAudienceExport` is necessary to create an audience export of users, and then second, this method is used to retrieve the users in the audience export. See [Creating an Audience Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) for an introduction to Audience Exports with examples. Audiences in Google Analytics 4 allow you to segment your users in the ways that are important to your business. To learn more, see https://support.google.com/analytics/answer/9267572. Audience Export APIs have some methods at alpha and other methods at beta stability. The intention is to advance methods to beta stability after some feedback and adoption. To give your feedback on this API, complete the [Google Analytics Audience Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.", - "canonical": true, - "file": "beta_analytics_data.query_audience_export.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryAudienceExport", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.QueryAudienceExport", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "offset", - "type": "TYPE_INT64" - }, - { - "name": "limit", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.analytics.data.v1beta.QueryAudienceExportResponse", - "client": { - "shortName": "BetaAnalyticsDataClient", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsDataClient" - }, - "method": { - "shortName": "QueryAudienceExport", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.QueryAudienceExport", - "service": { - "shortName": "BetaAnalyticsData", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1beta_generated_BetaAnalyticsData_GetAudienceExport_async", - "title": "BetaAnalyticsData getAudienceExport Sample", - "origin": "API_DEFINITION", - "description": " Gets configuration metadata about a specific audience export. This method can be used to understand an audience export after it has been created. See [Creating an Audience Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) for an introduction to Audience Exports with examples. Audience Export APIs have some methods at alpha and other methods at beta stability. The intention is to advance methods to beta stability after some feedback and adoption. To give your feedback on this API, complete the [Google Analytics Audience Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.", - "canonical": true, - "file": "beta_analytics_data.get_audience_export.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAudienceExport", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.GetAudienceExport", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.data.v1beta.AudienceExport", - "client": { - "shortName": "BetaAnalyticsDataClient", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsDataClient" - }, - "method": { - "shortName": "GetAudienceExport", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.GetAudienceExport", - "service": { - "shortName": "BetaAnalyticsData", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1beta_generated_BetaAnalyticsData_ListAudienceExports_async", - "title": "BetaAnalyticsData listAudienceExports Sample", - "origin": "API_DEFINITION", - "description": " Lists all audience exports for a property. This method can be used for you to find and reuse existing audience exports rather than creating unnecessary new audience exports. The same audience can have multiple audience exports that represent the export of users that were in an audience on different days. See [Creating an Audience Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) for an introduction to Audience Exports with examples. Audience Export APIs have some methods at alpha and other methods at beta stability. The intention is to advance methods to beta stability after some feedback and adoption. To give your feedback on this API, complete the [Google Analytics Audience Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.", - "canonical": true, - "file": "beta_analytics_data.list_audience_exports.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAudienceExports", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.ListAudienceExports", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.data.v1beta.ListAudienceExportsResponse", - "client": { - "shortName": "BetaAnalyticsDataClient", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsDataClient" - }, - "method": { - "shortName": "ListAudienceExports", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.ListAudienceExports", - "service": { - "shortName": "BetaAnalyticsData", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData" - } - } - } - } - ] -} diff --git a/core/packages/gapic-node-processing/test/fixtures/combined-library/google-analytics-data/samples/generated/v1alpha/snippet_metadata_google.analytics.data.v1alpha.json b/core/packages/gapic-node-processing/test/fixtures/combined-library/google-analytics-data/samples/generated/v1alpha/snippet_metadata_google.analytics.data.v1alpha.json deleted file mode 100644 index 92dbb6896d17..000000000000 --- a/core/packages/gapic-node-processing/test/fixtures/combined-library/google-analytics-data/samples/generated/v1alpha/snippet_metadata_google.analytics.data.v1alpha.json +++ /dev/null @@ -1,671 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-data", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.analytics.data.v1alpha", - "version": "v1alpha" - } - ] - }, - "snippets": [ - { - "regionTag": "analyticsdata_v1alpha_generated_AlphaAnalyticsData_RunFunnelReport_async", - "title": "AlphaAnalyticsData runFunnelReport Sample", - "origin": "API_DEFINITION", - "description": " Returns a customized funnel report of your Google Analytics event data. The data returned from the API is as a table with columns for the requested dimensions and metrics. Funnel exploration lets you visualize the steps your users take to complete a task and quickly see how well they are succeeding or failing at each step. For example, how do prospects become shoppers and then become buyers? How do one time buyers become repeat buyers? With this information, you can improve inefficient or abandoned customer journeys. To learn more, see [GA4 Funnel Explorations](https://support.google.com/analytics/answer/9327974). This method is introduced at alpha stability with the intention of gathering feedback on syntax and capabilities before entering beta. To give your feedback on this API, complete the [Google Analytics Data API Funnel Reporting Feedback](https://docs.google.com/forms/d/e/1FAIpQLSdwOlQDJAUoBiIgUZZ3S_Lwi8gr7Bb0k1jhvc-DEg7Rol3UjA/viewform).", - "canonical": true, - "file": "alpha_analytics_data.run_funnel_report.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 124, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RunFunnelReport", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.RunFunnelReport", - "async": true, - "parameters": [ - { - "name": "property", - "type": "TYPE_STRING" - }, - { - "name": "date_ranges", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "funnel", - "type": ".google.analytics.data.v1alpha.Funnel" - }, - { - "name": "funnel_breakdown", - "type": ".google.analytics.data.v1alpha.FunnelBreakdown" - }, - { - "name": "funnel_next_action", - "type": ".google.analytics.data.v1alpha.FunnelNextAction" - }, - { - "name": "funnel_visualization_type", - "type": ".google.analytics.data.v1alpha.RunFunnelReportRequest.FunnelVisualizationType" - }, - { - "name": "segments", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "limit", - "type": "TYPE_INT64" - }, - { - "name": "dimension_filter", - "type": ".google.analytics.data.v1alpha.FilterExpression" - }, - { - "name": "return_property_quota", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.analytics.data.v1alpha.RunFunnelReportResponse", - "client": { - "shortName": "AlphaAnalyticsDataClient", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsDataClient" - }, - "method": { - "shortName": "RunFunnelReport", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.RunFunnelReport", - "service": { - "shortName": "AlphaAnalyticsData", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1alpha_generated_AlphaAnalyticsData_CreateAudienceList_async", - "title": "AlphaAnalyticsData createAudienceList Sample", - "origin": "API_DEFINITION", - "description": " Creates an audience list for later retrieval. This method quickly returns the audience list's resource name and initiates a long running asynchronous request to form an audience list. To list the users in an audience list, first create the audience list through this method and then send the audience resource name to the `QueryAudienceList` method. See [Creating an Audience List](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) for an introduction to Audience Lists with examples. An audience list is a snapshot of the users currently in the audience at the time of audience list creation. Creating audience lists for one audience on different days will return different results as users enter and exit the audience. Audiences in Google Analytics 4 allow you to segment your users in the ways that are important to your business. To learn more, see https://support.google.com/analytics/answer/9267572. Audience lists contain the users in each audience. This method is available at beta stability at [audienceExports.create](https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties.audienceExports/create). To give your feedback on this API, complete the [Google Analytics Audience Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.", - "canonical": true, - "file": "alpha_analytics_data.create_audience_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAudienceList", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.CreateAudienceList", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "audience_list", - "type": ".google.analytics.data.v1alpha.AudienceList" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlphaAnalyticsDataClient", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsDataClient" - }, - "method": { - "shortName": "CreateAudienceList", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.CreateAudienceList", - "service": { - "shortName": "AlphaAnalyticsData", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1alpha_generated_AlphaAnalyticsData_QueryAudienceList_async", - "title": "AlphaAnalyticsData queryAudienceList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an audience list of users. After creating an audience, the users are not immediately available for listing. First, a request to `CreateAudienceList` is necessary to create an audience list of users, and then second, this method is used to retrieve the users in the audience list. See [Creating an Audience List](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) for an introduction to Audience Lists with examples. Audiences in Google Analytics 4 allow you to segment your users in the ways that are important to your business. To learn more, see https://support.google.com/analytics/answer/9267572. This method is available at beta stability at [audienceExports.query](https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties.audienceExports/query). To give your feedback on this API, complete the [Google Analytics Audience Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.", - "canonical": true, - "file": "alpha_analytics_data.query_audience_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryAudienceList", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.QueryAudienceList", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "offset", - "type": "TYPE_INT64" - }, - { - "name": "limit", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.analytics.data.v1alpha.QueryAudienceListResponse", - "client": { - "shortName": "AlphaAnalyticsDataClient", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsDataClient" - }, - "method": { - "shortName": "QueryAudienceList", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.QueryAudienceList", - "service": { - "shortName": "AlphaAnalyticsData", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1alpha_generated_AlphaAnalyticsData_SheetExportAudienceList_async", - "title": "AlphaAnalyticsData sheetExportAudienceList Sample", - "origin": "API_DEFINITION", - "description": " Exports an audience list of users to a Google Sheet. After creating an audience, the users are not immediately available for listing. First, a request to `CreateAudienceList` is necessary to create an audience list of users, and then second, this method is used to export those users in the audience list to a Google Sheet. See [Creating an Audience List](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) for an introduction to Audience Lists with examples. Audiences in Google Analytics 4 allow you to segment your users in the ways that are important to your business. To learn more, see https://support.google.com/analytics/answer/9267572. This method is introduced at alpha stability with the intention of gathering feedback on syntax and capabilities before entering beta. To give your feedback on this API, complete the [Google Analytics Audience Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.", - "canonical": true, - "file": "alpha_analytics_data.sheet_export_audience_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SheetExportAudienceList", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.SheetExportAudienceList", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "offset", - "type": "TYPE_INT64" - }, - { - "name": "limit", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.analytics.data.v1alpha.SheetExportAudienceListResponse", - "client": { - "shortName": "AlphaAnalyticsDataClient", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsDataClient" - }, - "method": { - "shortName": "SheetExportAudienceList", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.SheetExportAudienceList", - "service": { - "shortName": "AlphaAnalyticsData", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1alpha_generated_AlphaAnalyticsData_GetAudienceList_async", - "title": "AlphaAnalyticsData getAudienceList Sample", - "origin": "API_DEFINITION", - "description": " Gets configuration metadata about a specific audience list. This method can be used to understand an audience list after it has been created. See [Creating an Audience List](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) for an introduction to Audience Lists with examples. This method is available at beta stability at [audienceExports.get](https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties.audienceExports/get). To give your feedback on this API, complete the [Google Analytics Audience Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.", - "canonical": true, - "file": "alpha_analytics_data.get_audience_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAudienceList", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.GetAudienceList", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.data.v1alpha.AudienceList", - "client": { - "shortName": "AlphaAnalyticsDataClient", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsDataClient" - }, - "method": { - "shortName": "GetAudienceList", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.GetAudienceList", - "service": { - "shortName": "AlphaAnalyticsData", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1alpha_generated_AlphaAnalyticsData_ListAudienceLists_async", - "title": "AlphaAnalyticsData listAudienceLists Sample", - "origin": "API_DEFINITION", - "description": " Lists all audience lists for a property. This method can be used for you to find and reuse existing audience lists rather than creating unnecessary new audience lists. The same audience can have multiple audience lists that represent the list of users that were in an audience on different days. See [Creating an Audience List](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) for an introduction to Audience Lists with examples. This method is available at beta stability at [audienceExports.list](https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties.audienceExports/list). To give your feedback on this API, complete the [Google Analytics Audience Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.", - "canonical": true, - "file": "alpha_analytics_data.list_audience_lists.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAudienceLists", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.ListAudienceLists", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.data.v1alpha.ListAudienceListsResponse", - "client": { - "shortName": "AlphaAnalyticsDataClient", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsDataClient" - }, - "method": { - "shortName": "ListAudienceLists", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.ListAudienceLists", - "service": { - "shortName": "AlphaAnalyticsData", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1alpha_generated_AlphaAnalyticsData_CreateRecurringAudienceList_async", - "title": "AlphaAnalyticsData createRecurringAudienceList Sample", - "origin": "API_DEFINITION", - "description": " Creates a recurring audience list. Recurring audience lists produces new audience lists each day. Audience lists are users in an audience at the time of the list's creation. A recurring audience list ensures that you have audience list based on the most recent data available for use each day. If you manually create audience list, you don't know when an audience list based on an additional day's data is available. This recurring audience list automates the creation of an audience list when an additional day's data is available. You will consume fewer quota tokens by using recurring audience list versus manually creating audience list at various times of day trying to guess when an additional day's data is ready. This method is introduced at alpha stability with the intention of gathering feedback on syntax and capabilities before entering beta. To give your feedback on this API, complete the [Google Analytics Audience Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.", - "canonical": true, - "file": "alpha_analytics_data.create_recurring_audience_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateRecurringAudienceList", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.CreateRecurringAudienceList", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "recurring_audience_list", - "type": ".google.analytics.data.v1alpha.RecurringAudienceList" - } - ], - "resultType": ".google.analytics.data.v1alpha.RecurringAudienceList", - "client": { - "shortName": "AlphaAnalyticsDataClient", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsDataClient" - }, - "method": { - "shortName": "CreateRecurringAudienceList", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.CreateRecurringAudienceList", - "service": { - "shortName": "AlphaAnalyticsData", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1alpha_generated_AlphaAnalyticsData_GetRecurringAudienceList_async", - "title": "AlphaAnalyticsData getRecurringAudienceList Sample", - "origin": "API_DEFINITION", - "description": " Gets configuration metadata about a specific recurring audience list. This method can be used to understand a recurring audience list's state after it has been created. For example, a recurring audience list resource will generate audience list instances for each day, and this method can be used to get the resource name of the most recent audience list instance. This method is introduced at alpha stability with the intention of gathering feedback on syntax and capabilities before entering beta. To give your feedback on this API, complete the [Google Analytics Audience Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.", - "canonical": true, - "file": "alpha_analytics_data.get_recurring_audience_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRecurringAudienceList", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.GetRecurringAudienceList", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.data.v1alpha.RecurringAudienceList", - "client": { - "shortName": "AlphaAnalyticsDataClient", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsDataClient" - }, - "method": { - "shortName": "GetRecurringAudienceList", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.GetRecurringAudienceList", - "service": { - "shortName": "AlphaAnalyticsData", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1alpha_generated_AlphaAnalyticsData_ListRecurringAudienceLists_async", - "title": "AlphaAnalyticsData listRecurringAudienceLists Sample", - "origin": "API_DEFINITION", - "description": " Lists all recurring audience lists for a property. This method can be used for you to find and reuse existing recurring audience lists rather than creating unnecessary new recurring audience lists. The same audience can have multiple recurring audience lists that represent different dimension combinations; for example, just the dimension `deviceId` or both the dimensions `deviceId` and `userId`. This method is introduced at alpha stability with the intention of gathering feedback on syntax and capabilities before entering beta. To give your feedback on this API, complete the [Google Analytics Audience Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.", - "canonical": true, - "file": "alpha_analytics_data.list_recurring_audience_lists.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRecurringAudienceLists", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.ListRecurringAudienceLists", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.data.v1alpha.ListRecurringAudienceListsResponse", - "client": { - "shortName": "AlphaAnalyticsDataClient", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsDataClient" - }, - "method": { - "shortName": "ListRecurringAudienceLists", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.ListRecurringAudienceLists", - "service": { - "shortName": "AlphaAnalyticsData", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1alpha_generated_AlphaAnalyticsData_GetPropertyQuotasSnapshot_async", - "title": "AlphaAnalyticsData getPropertyQuotasSnapshot Sample", - "origin": "API_DEFINITION", - "description": " Get all property quotas organized by quota category for a given property. This will charge 1 property quota from the category with the most quota.", - "canonical": true, - "file": "alpha_analytics_data.get_property_quotas_snapshot.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPropertyQuotasSnapshot", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.GetPropertyQuotasSnapshot", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.data.v1alpha.PropertyQuotasSnapshot", - "client": { - "shortName": "AlphaAnalyticsDataClient", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsDataClient" - }, - "method": { - "shortName": "GetPropertyQuotasSnapshot", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.GetPropertyQuotasSnapshot", - "service": { - "shortName": "AlphaAnalyticsData", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1alpha_generated_AlphaAnalyticsData_CreateReportTask_async", - "title": "AlphaAnalyticsData createReportTask Sample", - "origin": "API_DEFINITION", - "description": " Initiates the creation of a report task. This method quickly returns a report task and initiates a long running asynchronous request to form a customized report of your Google Analytics event data. A report task will be retained and available for querying for 72 hours after it has been created. A report task created by one user can be listed and queried by all users who have access to the property.", - "canonical": true, - "file": "alpha_analytics_data.create_report_task.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateReportTask", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.CreateReportTask", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "report_task", - "type": ".google.analytics.data.v1alpha.ReportTask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlphaAnalyticsDataClient", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsDataClient" - }, - "method": { - "shortName": "CreateReportTask", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.CreateReportTask", - "service": { - "shortName": "AlphaAnalyticsData", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1alpha_generated_AlphaAnalyticsData_QueryReportTask_async", - "title": "AlphaAnalyticsData queryReportTask Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a report task's content. After requesting the `CreateReportTask`, you are able to retrieve the report content once the report is ACTIVE. This method will return an error if the report task's state is not `ACTIVE`. A query response will return the tabular row & column values of the report.", - "canonical": true, - "file": "alpha_analytics_data.query_report_task.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryReportTask", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.QueryReportTask", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "offset", - "type": "TYPE_INT64" - }, - { - "name": "limit", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.analytics.data.v1alpha.QueryReportTaskResponse", - "client": { - "shortName": "AlphaAnalyticsDataClient", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsDataClient" - }, - "method": { - "shortName": "QueryReportTask", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.QueryReportTask", - "service": { - "shortName": "AlphaAnalyticsData", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1alpha_generated_AlphaAnalyticsData_GetReportTask_async", - "title": "AlphaAnalyticsData getReportTask Sample", - "origin": "API_DEFINITION", - "description": " Gets report metadata about a specific report task. After creating a report task, use this method to check its processing state or inspect its report definition.", - "canonical": true, - "file": "alpha_analytics_data.get_report_task.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetReportTask", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.GetReportTask", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.data.v1alpha.ReportTask", - "client": { - "shortName": "AlphaAnalyticsDataClient", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsDataClient" - }, - "method": { - "shortName": "GetReportTask", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.GetReportTask", - "service": { - "shortName": "AlphaAnalyticsData", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1alpha_generated_AlphaAnalyticsData_ListReportTasks_async", - "title": "AlphaAnalyticsData listReportTasks Sample", - "origin": "API_DEFINITION", - "description": " Lists all report tasks for a property.", - "canonical": true, - "file": "alpha_analytics_data.list_report_tasks.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListReportTasks", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.ListReportTasks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.data.v1alpha.ListReportTasksResponse", - "client": { - "shortName": "AlphaAnalyticsDataClient", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsDataClient" - }, - "method": { - "shortName": "ListReportTasks", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.ListReportTasks", - "service": { - "shortName": "AlphaAnalyticsData", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData" - } - } - } - } - ] -} diff --git a/core/packages/gapic-node-processing/test/fixtures/combined-library/google-analytics-data/samples/generated/v1beta/snippet_metadata_google.analytics.data.v1beta.json b/core/packages/gapic-node-processing/test/fixtures/combined-library/google-analytics-data/samples/generated/v1beta/snippet_metadata_google.analytics.data.v1beta.json deleted file mode 100644 index ba79913e3173..000000000000 --- a/core/packages/gapic-node-processing/test/fixtures/combined-library/google-analytics-data/samples/generated/v1beta/snippet_metadata_google.analytics.data.v1beta.json +++ /dev/null @@ -1,639 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-data", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.analytics.data.v1beta", - "version": "v1beta" - } - ] - }, - "snippets": [ - { - "regionTag": "analyticsdata_v1beta_generated_BetaAnalyticsData_RunReport_async", - "title": "BetaAnalyticsData runReport Sample", - "origin": "API_DEFINITION", - "description": " Returns a customized report of your Google Analytics event data. Reports contain statistics derived from data collected by the Google Analytics tracking code. The data returned from the API is as a table with columns for the requested dimensions and metrics. Metrics are individual measurements of user activity on your property, such as active users or event count. Dimensions break down metrics across some common criteria, such as country or event name. For a guide to constructing requests & understanding responses, see [Creating a Report](https://developers.google.com/analytics/devguides/reporting/data/v1/basics).", - "canonical": true, - "file": "beta_analytics_data.run_report.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 154, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RunReport", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.RunReport", - "async": true, - "parameters": [ - { - "name": "property", - "type": "TYPE_STRING" - }, - { - "name": "dimensions", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "metrics", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "date_ranges", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "dimension_filter", - "type": ".google.analytics.data.v1beta.FilterExpression" - }, - { - "name": "metric_filter", - "type": ".google.analytics.data.v1beta.FilterExpression" - }, - { - "name": "offset", - "type": "TYPE_INT64" - }, - { - "name": "limit", - "type": "TYPE_INT64" - }, - { - "name": "metric_aggregations", - "type": "TYPE_ENUM[]" - }, - { - "name": "order_bys", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "currency_code", - "type": "TYPE_STRING" - }, - { - "name": "cohort_spec", - "type": ".google.analytics.data.v1beta.CohortSpec" - }, - { - "name": "keep_empty_rows", - "type": "TYPE_BOOL" - }, - { - "name": "return_property_quota", - "type": "TYPE_BOOL" - }, - { - "name": "comparisons", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.analytics.data.v1beta.RunReportResponse", - "client": { - "shortName": "BetaAnalyticsDataClient", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsDataClient" - }, - "method": { - "shortName": "RunReport", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.RunReport", - "service": { - "shortName": "BetaAnalyticsData", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1beta_generated_BetaAnalyticsData_RunPivotReport_async", - "title": "BetaAnalyticsData runPivotReport Sample", - "origin": "API_DEFINITION", - "description": " Returns a customized pivot report of your Google Analytics event data. Pivot reports are more advanced and expressive formats than regular reports. In a pivot report, dimensions are only visible if they are included in a pivot. Multiple pivots can be specified to further dissect your data.", - "canonical": true, - "file": "beta_analytics_data.run_pivot_report.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 127, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RunPivotReport", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.RunPivotReport", - "async": true, - "parameters": [ - { - "name": "property", - "type": "TYPE_STRING" - }, - { - "name": "dimensions", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "metrics", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "date_ranges", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "pivots", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "dimension_filter", - "type": ".google.analytics.data.v1beta.FilterExpression" - }, - { - "name": "metric_filter", - "type": ".google.analytics.data.v1beta.FilterExpression" - }, - { - "name": "currency_code", - "type": "TYPE_STRING" - }, - { - "name": "cohort_spec", - "type": ".google.analytics.data.v1beta.CohortSpec" - }, - { - "name": "keep_empty_rows", - "type": "TYPE_BOOL" - }, - { - "name": "return_property_quota", - "type": "TYPE_BOOL" - }, - { - "name": "comparisons", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.analytics.data.v1beta.RunPivotReportResponse", - "client": { - "shortName": "BetaAnalyticsDataClient", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsDataClient" - }, - "method": { - "shortName": "RunPivotReport", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.RunPivotReport", - "service": { - "shortName": "BetaAnalyticsData", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1beta_generated_BetaAnalyticsData_BatchRunReports_async", - "title": "BetaAnalyticsData batchRunReports Sample", - "origin": "API_DEFINITION", - "description": " Returns multiple reports in a batch. All reports must be for the same Google Analytics property.", - "canonical": true, - "file": "beta_analytics_data.batch_run_reports.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchRunReports", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.BatchRunReports", - "async": true, - "parameters": [ - { - "name": "property", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.analytics.data.v1beta.BatchRunReportsResponse", - "client": { - "shortName": "BetaAnalyticsDataClient", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsDataClient" - }, - "method": { - "shortName": "BatchRunReports", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.BatchRunReports", - "service": { - "shortName": "BetaAnalyticsData", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1beta_generated_BetaAnalyticsData_BatchRunPivotReports_async", - "title": "BetaAnalyticsData batchRunPivotReports Sample", - "origin": "API_DEFINITION", - "description": " Returns multiple pivot reports in a batch. All reports must be for the same Google Analytics property.", - "canonical": true, - "file": "beta_analytics_data.batch_run_pivot_reports.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchRunPivotReports", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.BatchRunPivotReports", - "async": true, - "parameters": [ - { - "name": "property", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.analytics.data.v1beta.BatchRunPivotReportsResponse", - "client": { - "shortName": "BetaAnalyticsDataClient", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsDataClient" - }, - "method": { - "shortName": "BatchRunPivotReports", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.BatchRunPivotReports", - "service": { - "shortName": "BetaAnalyticsData", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1beta_generated_BetaAnalyticsData_GetMetadata_async", - "title": "BetaAnalyticsData getMetadata Sample", - "origin": "API_DEFINITION", - "description": " Returns metadata for dimensions and metrics available in reporting methods. Used to explore the dimensions and metrics. In this method, a Google Analytics property identifier is specified in the request, and the metadata response includes Custom dimensions and metrics as well as Universal metadata. For example if a custom metric with parameter name `levels_unlocked` is registered to a property, the Metadata response will contain `customEvent:levels_unlocked`. Universal metadata are dimensions and metrics applicable to any property such as `country` and `totalUsers`.", - "canonical": true, - "file": "beta_analytics_data.get_metadata.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMetadata", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.GetMetadata", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.data.v1beta.Metadata", - "client": { - "shortName": "BetaAnalyticsDataClient", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsDataClient" - }, - "method": { - "shortName": "GetMetadata", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.GetMetadata", - "service": { - "shortName": "BetaAnalyticsData", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1beta_generated_BetaAnalyticsData_RunRealtimeReport_async", - "title": "BetaAnalyticsData runRealtimeReport Sample", - "origin": "API_DEFINITION", - "description": " Returns a customized report of realtime event data for your property. Events appear in realtime reports seconds after they have been sent to the Google Analytics. Realtime reports show events and usage data for the periods of time ranging from the present moment to 30 minutes ago (up to 60 minutes for Google Analytics 360 properties). For a guide to constructing realtime requests & understanding responses, see [Creating a Realtime Report](https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-basics).", - "canonical": true, - "file": "beta_analytics_data.run_realtime_report.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 107, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RunRealtimeReport", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.RunRealtimeReport", - "async": true, - "parameters": [ - { - "name": "property", - "type": "TYPE_STRING" - }, - { - "name": "dimensions", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "metrics", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "dimension_filter", - "type": ".google.analytics.data.v1beta.FilterExpression" - }, - { - "name": "metric_filter", - "type": ".google.analytics.data.v1beta.FilterExpression" - }, - { - "name": "limit", - "type": "TYPE_INT64" - }, - { - "name": "metric_aggregations", - "type": "TYPE_ENUM[]" - }, - { - "name": "order_bys", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "return_property_quota", - "type": "TYPE_BOOL" - }, - { - "name": "minute_ranges", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.analytics.data.v1beta.RunRealtimeReportResponse", - "client": { - "shortName": "BetaAnalyticsDataClient", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsDataClient" - }, - "method": { - "shortName": "RunRealtimeReport", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.RunRealtimeReport", - "service": { - "shortName": "BetaAnalyticsData", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1beta_generated_BetaAnalyticsData_CheckCompatibility_async", - "title": "BetaAnalyticsData checkCompatibility Sample", - "origin": "API_DEFINITION", - "description": " This compatibility method lists dimensions and metrics that can be added to a report request and maintain compatibility. This method fails if the request's dimensions and metrics are incompatible. In Google Analytics, reports fail if they request incompatible dimensions and/or metrics; in that case, you will need to remove dimensions and/or metrics from the incompatible report until the report is compatible. The Realtime and Core reports have different compatibility rules. This method checks compatibility for Core reports.", - "canonical": true, - "file": "beta_analytics_data.check_compatibility.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CheckCompatibility", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.CheckCompatibility", - "async": true, - "parameters": [ - { - "name": "property", - "type": "TYPE_STRING" - }, - { - "name": "dimensions", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "metrics", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "dimension_filter", - "type": ".google.analytics.data.v1beta.FilterExpression" - }, - { - "name": "metric_filter", - "type": ".google.analytics.data.v1beta.FilterExpression" - }, - { - "name": "compatibility_filter", - "type": ".google.analytics.data.v1beta.Compatibility" - } - ], - "resultType": ".google.analytics.data.v1beta.CheckCompatibilityResponse", - "client": { - "shortName": "BetaAnalyticsDataClient", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsDataClient" - }, - "method": { - "shortName": "CheckCompatibility", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.CheckCompatibility", - "service": { - "shortName": "BetaAnalyticsData", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1beta_generated_BetaAnalyticsData_CreateAudienceExport_async", - "title": "BetaAnalyticsData createAudienceExport Sample", - "origin": "API_DEFINITION", - "description": " Creates an audience export for later retrieval. This method quickly returns the audience export's resource name and initiates a long running asynchronous request to form an audience export. To export the users in an audience export, first create the audience export through this method and then send the audience resource name to the `QueryAudienceExport` method. See [Creating an Audience Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) for an introduction to Audience Exports with examples. An audience export is a snapshot of the users currently in the audience at the time of audience export creation. Creating audience exports for one audience on different days will return different results as users enter and exit the audience. Audiences in Google Analytics 4 allow you to segment your users in the ways that are important to your business. To learn more, see https://support.google.com/analytics/answer/9267572. Audience exports contain the users in each audience. Audience Export APIs have some methods at alpha and other methods at beta stability. The intention is to advance methods to beta stability after some feedback and adoption. To give your feedback on this API, complete the [Google Analytics Audience Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.", - "canonical": true, - "file": "beta_analytics_data.create_audience_export.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAudienceExport", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.CreateAudienceExport", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "audience_export", - "type": ".google.analytics.data.v1beta.AudienceExport" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BetaAnalyticsDataClient", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsDataClient" - }, - "method": { - "shortName": "CreateAudienceExport", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.CreateAudienceExport", - "service": { - "shortName": "BetaAnalyticsData", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1beta_generated_BetaAnalyticsData_QueryAudienceExport_async", - "title": "BetaAnalyticsData queryAudienceExport Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an audience export of users. After creating an audience, the users are not immediately available for exporting. First, a request to `CreateAudienceExport` is necessary to create an audience export of users, and then second, this method is used to retrieve the users in the audience export. See [Creating an Audience Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) for an introduction to Audience Exports with examples. Audiences in Google Analytics 4 allow you to segment your users in the ways that are important to your business. To learn more, see https://support.google.com/analytics/answer/9267572. Audience Export APIs have some methods at alpha and other methods at beta stability. The intention is to advance methods to beta stability after some feedback and adoption. To give your feedback on this API, complete the [Google Analytics Audience Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.", - "canonical": true, - "file": "beta_analytics_data.query_audience_export.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryAudienceExport", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.QueryAudienceExport", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "offset", - "type": "TYPE_INT64" - }, - { - "name": "limit", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.analytics.data.v1beta.QueryAudienceExportResponse", - "client": { - "shortName": "BetaAnalyticsDataClient", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsDataClient" - }, - "method": { - "shortName": "QueryAudienceExport", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.QueryAudienceExport", - "service": { - "shortName": "BetaAnalyticsData", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1beta_generated_BetaAnalyticsData_GetAudienceExport_async", - "title": "BetaAnalyticsData getAudienceExport Sample", - "origin": "API_DEFINITION", - "description": " Gets configuration metadata about a specific audience export. This method can be used to understand an audience export after it has been created. See [Creating an Audience Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) for an introduction to Audience Exports with examples. Audience Export APIs have some methods at alpha and other methods at beta stability. The intention is to advance methods to beta stability after some feedback and adoption. To give your feedback on this API, complete the [Google Analytics Audience Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.", - "canonical": true, - "file": "beta_analytics_data.get_audience_export.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAudienceExport", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.GetAudienceExport", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.data.v1beta.AudienceExport", - "client": { - "shortName": "BetaAnalyticsDataClient", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsDataClient" - }, - "method": { - "shortName": "GetAudienceExport", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.GetAudienceExport", - "service": { - "shortName": "BetaAnalyticsData", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1beta_generated_BetaAnalyticsData_ListAudienceExports_async", - "title": "BetaAnalyticsData listAudienceExports Sample", - "origin": "API_DEFINITION", - "description": " Lists all audience exports for a property. This method can be used for you to find and reuse existing audience exports rather than creating unnecessary new audience exports. The same audience can have multiple audience exports that represent the export of users that were in an audience on different days. See [Creating an Audience Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) for an introduction to Audience Exports with examples. Audience Export APIs have some methods at alpha and other methods at beta stability. The intention is to advance methods to beta stability after some feedback and adoption. To give your feedback on this API, complete the [Google Analytics Audience Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.", - "canonical": true, - "file": "beta_analytics_data.list_audience_exports.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAudienceExports", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.ListAudienceExports", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.data.v1beta.ListAudienceExportsResponse", - "client": { - "shortName": "BetaAnalyticsDataClient", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsDataClient" - }, - "method": { - "shortName": "ListAudienceExports", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.ListAudienceExports", - "service": { - "shortName": "BetaAnalyticsData", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData" - } - } - } - } - ] -} diff --git a/core/packages/gapic-node-processing/test/fixtures/combined-library/google-cloud-speech-nodejs/speech-v1-nodejs/samples/generated/v1/snippet_metadata_google.cloud.speech.v1.json b/core/packages/gapic-node-processing/test/fixtures/combined-library/google-cloud-speech-nodejs/speech-v1-nodejs/samples/generated/v1/snippet_metadata_google.cloud.speech.v1.json deleted file mode 100644 index dee670aa1b68..000000000000 --- a/core/packages/gapic-node-processing/test/fixtures/combined-library/google-cloud-speech-nodejs/speech-v1-nodejs/samples/generated/v1/snippet_metadata_google.cloud.speech.v1.json +++ /dev/null @@ -1,591 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-speech", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.speech.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "speech_v1_generated_Adaptation_CreatePhraseSet_async", - "title": "Adaptation createPhraseSet Sample", - "origin": "API_DEFINITION", - "description": " Create a set of phrase hints. Each item in the set can be a single word or a multi-word phrase. The items in the PhraseSet are favored by the recognition model when you send a call that includes the PhraseSet.", - "canonical": true, - "file": "adaptation.create_phrase_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreatePhraseSet", - "fullName": "google.cloud.speech.v1.Adaptation.CreatePhraseSet", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "phrase_set_id", - "type": "TYPE_STRING" - }, - { - "name": "phrase_set", - "type": ".google.cloud.speech.v1.PhraseSet" - } - ], - "resultType": ".google.cloud.speech.v1.PhraseSet", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1.AdaptationClient" - }, - "method": { - "shortName": "CreatePhraseSet", - "fullName": "google.cloud.speech.v1.Adaptation.CreatePhraseSet", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1_generated_Adaptation_GetPhraseSet_async", - "title": "Adaptation getPhraseSet Sample", - "origin": "API_DEFINITION", - "description": " Get a phrase set.", - "canonical": true, - "file": "adaptation.get_phrase_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPhraseSet", - "fullName": "google.cloud.speech.v1.Adaptation.GetPhraseSet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.speech.v1.PhraseSet", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1.AdaptationClient" - }, - "method": { - "shortName": "GetPhraseSet", - "fullName": "google.cloud.speech.v1.Adaptation.GetPhraseSet", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1_generated_Adaptation_ListPhraseSet_async", - "title": "Adaptation listPhraseSet Sample", - "origin": "API_DEFINITION", - "description": " List phrase sets.", - "canonical": true, - "file": "adaptation.list_phrase_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPhraseSet", - "fullName": "google.cloud.speech.v1.Adaptation.ListPhraseSet", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.speech.v1.ListPhraseSetResponse", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1.AdaptationClient" - }, - "method": { - "shortName": "ListPhraseSet", - "fullName": "google.cloud.speech.v1.Adaptation.ListPhraseSet", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1_generated_Adaptation_UpdatePhraseSet_async", - "title": "Adaptation updatePhraseSet Sample", - "origin": "API_DEFINITION", - "description": " Update a phrase set.", - "canonical": true, - "file": "adaptation.update_phrase_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdatePhraseSet", - "fullName": "google.cloud.speech.v1.Adaptation.UpdatePhraseSet", - "async": true, - "parameters": [ - { - "name": "phrase_set", - "type": ".google.cloud.speech.v1.PhraseSet" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.speech.v1.PhraseSet", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1.AdaptationClient" - }, - "method": { - "shortName": "UpdatePhraseSet", - "fullName": "google.cloud.speech.v1.Adaptation.UpdatePhraseSet", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1_generated_Adaptation_DeletePhraseSet_async", - "title": "Adaptation deletePhraseSet Sample", - "origin": "API_DEFINITION", - "description": " Delete a phrase set.", - "canonical": true, - "file": "adaptation.delete_phrase_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePhraseSet", - "fullName": "google.cloud.speech.v1.Adaptation.DeletePhraseSet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1.AdaptationClient" - }, - "method": { - "shortName": "DeletePhraseSet", - "fullName": "google.cloud.speech.v1.Adaptation.DeletePhraseSet", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1_generated_Adaptation_CreateCustomClass_async", - "title": "Adaptation createCustomClass Sample", - "origin": "API_DEFINITION", - "description": " Create a custom class.", - "canonical": true, - "file": "adaptation.create_custom_class.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCustomClass", - "fullName": "google.cloud.speech.v1.Adaptation.CreateCustomClass", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "custom_class_id", - "type": "TYPE_STRING" - }, - { - "name": "custom_class", - "type": ".google.cloud.speech.v1.CustomClass" - } - ], - "resultType": ".google.cloud.speech.v1.CustomClass", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1.AdaptationClient" - }, - "method": { - "shortName": "CreateCustomClass", - "fullName": "google.cloud.speech.v1.Adaptation.CreateCustomClass", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1_generated_Adaptation_GetCustomClass_async", - "title": "Adaptation getCustomClass Sample", - "origin": "API_DEFINITION", - "description": " Get a custom class.", - "canonical": true, - "file": "adaptation.get_custom_class.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCustomClass", - "fullName": "google.cloud.speech.v1.Adaptation.GetCustomClass", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.speech.v1.CustomClass", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1.AdaptationClient" - }, - "method": { - "shortName": "GetCustomClass", - "fullName": "google.cloud.speech.v1.Adaptation.GetCustomClass", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1_generated_Adaptation_ListCustomClasses_async", - "title": "Adaptation listCustomClasses Sample", - "origin": "API_DEFINITION", - "description": " List custom classes.", - "canonical": true, - "file": "adaptation.list_custom_classes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCustomClasses", - "fullName": "google.cloud.speech.v1.Adaptation.ListCustomClasses", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.speech.v1.ListCustomClassesResponse", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1.AdaptationClient" - }, - "method": { - "shortName": "ListCustomClasses", - "fullName": "google.cloud.speech.v1.Adaptation.ListCustomClasses", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1_generated_Adaptation_UpdateCustomClass_async", - "title": "Adaptation updateCustomClass Sample", - "origin": "API_DEFINITION", - "description": " Update a custom class.", - "canonical": true, - "file": "adaptation.update_custom_class.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCustomClass", - "fullName": "google.cloud.speech.v1.Adaptation.UpdateCustomClass", - "async": true, - "parameters": [ - { - "name": "custom_class", - "type": ".google.cloud.speech.v1.CustomClass" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.speech.v1.CustomClass", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1.AdaptationClient" - }, - "method": { - "shortName": "UpdateCustomClass", - "fullName": "google.cloud.speech.v1.Adaptation.UpdateCustomClass", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1_generated_Adaptation_DeleteCustomClass_async", - "title": "Adaptation deleteCustomClass Sample", - "origin": "API_DEFINITION", - "description": " Delete a custom class.", - "canonical": true, - "file": "adaptation.delete_custom_class.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCustomClass", - "fullName": "google.cloud.speech.v1.Adaptation.DeleteCustomClass", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1.AdaptationClient" - }, - "method": { - "shortName": "DeleteCustomClass", - "fullName": "google.cloud.speech.v1.Adaptation.DeleteCustomClass", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1_generated_Speech_Recognize_async", - "title": "Adaptation recognize Sample", - "origin": "API_DEFINITION", - "description": " Performs synchronous speech recognition: receive results after all audio has been sent and processed.", - "canonical": true, - "file": "speech.recognize.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Recognize", - "fullName": "google.cloud.speech.v1.Speech.Recognize", - "async": true, - "parameters": [ - { - "name": "config", - "type": ".google.cloud.speech.v1.RecognitionConfig" - }, - { - "name": "audio", - "type": ".google.cloud.speech.v1.RecognitionAudio" - } - ], - "resultType": ".google.cloud.speech.v1.RecognizeResponse", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v1.SpeechClient" - }, - "method": { - "shortName": "Recognize", - "fullName": "google.cloud.speech.v1.Speech.Recognize", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v1.Speech" - } - } - } - }, - { - "regionTag": "speech_v1_generated_Speech_LongRunningRecognize_async", - "title": "Adaptation longRunningRecognize Sample", - "origin": "API_DEFINITION", - "description": " Performs asynchronous speech recognition: receive results via the google.longrunning.Operations interface. Returns either an `Operation.error` or an `Operation.response` which contains a `LongRunningRecognizeResponse` message. For more information on asynchronous speech recognition, see the [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).", - "canonical": true, - "file": "speech.long_running_recognize.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "LongRunningRecognize", - "fullName": "google.cloud.speech.v1.Speech.LongRunningRecognize", - "async": true, - "parameters": [ - { - "name": "config", - "type": ".google.cloud.speech.v1.RecognitionConfig" - }, - { - "name": "audio", - "type": ".google.cloud.speech.v1.RecognitionAudio" - }, - { - "name": "output_config", - "type": ".google.cloud.speech.v1.TranscriptOutputConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v1.SpeechClient" - }, - "method": { - "shortName": "LongRunningRecognize", - "fullName": "google.cloud.speech.v1.Speech.LongRunningRecognize", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v1.Speech" - } - } - } - }, - { - "regionTag": "speech_v1_generated_Speech_StreamingRecognize_async", - "title": "Adaptation streamingRecognize Sample", - "origin": "API_DEFINITION", - "description": " Performs bidirectional streaming speech recognition: receive results while sending audio. This method is only available via the gRPC API (not REST).", - "canonical": true, - "file": "speech.streaming_recognize.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StreamingRecognize", - "fullName": "google.cloud.speech.v1.Speech.StreamingRecognize", - "async": true, - "parameters": [ - { - "name": "streaming_config", - "type": ".google.cloud.speech.v1.StreamingRecognitionConfig" - }, - { - "name": "audio_content", - "type": "TYPE_BYTES" - } - ], - "resultType": ".google.cloud.speech.v1.StreamingRecognizeResponse", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v1.SpeechClient" - }, - "method": { - "shortName": "StreamingRecognize", - "fullName": "google.cloud.speech.v1.Speech.StreamingRecognize", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v1.Speech" - } - } - } - } - ] -} diff --git a/core/packages/gapic-node-processing/test/fixtures/combined-library/google-cloud-speech-nodejs/speech-v1p1beta1-nodejs/samples/generated/v1p1beta1/snippet_metadata_google.cloud.speech.v1p1beta1.json b/core/packages/gapic-node-processing/test/fixtures/combined-library/google-cloud-speech-nodejs/speech-v1p1beta1-nodejs/samples/generated/v1p1beta1/snippet_metadata_google.cloud.speech.v1p1beta1.json deleted file mode 100644 index c50b1efcefdd..000000000000 --- a/core/packages/gapic-node-processing/test/fixtures/combined-library/google-cloud-speech-nodejs/speech-v1p1beta1-nodejs/samples/generated/v1p1beta1/snippet_metadata_google.cloud.speech.v1p1beta1.json +++ /dev/null @@ -1,591 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-speech", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.speech.v1p1beta1", - "version": "v1p1beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "speech_v1p1beta1_generated_Adaptation_CreatePhraseSet_async", - "title": "Adaptation createPhraseSet Sample", - "origin": "API_DEFINITION", - "description": " Create a set of phrase hints. Each item in the set can be a single word or a multi-word phrase. The items in the PhraseSet are favored by the recognition model when you send a call that includes the PhraseSet.", - "canonical": true, - "file": "adaptation.create_phrase_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreatePhraseSet", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.CreatePhraseSet", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "phrase_set_id", - "type": "TYPE_STRING" - }, - { - "name": "phrase_set", - "type": ".google.cloud.speech.v1p1beta1.PhraseSet" - } - ], - "resultType": ".google.cloud.speech.v1p1beta1.PhraseSet", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" - }, - "method": { - "shortName": "CreatePhraseSet", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.CreatePhraseSet", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1p1beta1_generated_Adaptation_GetPhraseSet_async", - "title": "Adaptation getPhraseSet Sample", - "origin": "API_DEFINITION", - "description": " Get a phrase set.", - "canonical": true, - "file": "adaptation.get_phrase_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPhraseSet", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.GetPhraseSet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.speech.v1p1beta1.PhraseSet", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" - }, - "method": { - "shortName": "GetPhraseSet", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.GetPhraseSet", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1p1beta1_generated_Adaptation_ListPhraseSet_async", - "title": "Adaptation listPhraseSet Sample", - "origin": "API_DEFINITION", - "description": " List phrase sets.", - "canonical": true, - "file": "adaptation.list_phrase_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPhraseSet", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.ListPhraseSet", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.speech.v1p1beta1.ListPhraseSetResponse", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" - }, - "method": { - "shortName": "ListPhraseSet", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.ListPhraseSet", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1p1beta1_generated_Adaptation_UpdatePhraseSet_async", - "title": "Adaptation updatePhraseSet Sample", - "origin": "API_DEFINITION", - "description": " Update a phrase set.", - "canonical": true, - "file": "adaptation.update_phrase_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdatePhraseSet", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.UpdatePhraseSet", - "async": true, - "parameters": [ - { - "name": "phrase_set", - "type": ".google.cloud.speech.v1p1beta1.PhraseSet" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.speech.v1p1beta1.PhraseSet", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" - }, - "method": { - "shortName": "UpdatePhraseSet", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.UpdatePhraseSet", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1p1beta1_generated_Adaptation_DeletePhraseSet_async", - "title": "Adaptation deletePhraseSet Sample", - "origin": "API_DEFINITION", - "description": " Delete a phrase set.", - "canonical": true, - "file": "adaptation.delete_phrase_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePhraseSet", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.DeletePhraseSet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" - }, - "method": { - "shortName": "DeletePhraseSet", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.DeletePhraseSet", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1p1beta1_generated_Adaptation_CreateCustomClass_async", - "title": "Adaptation createCustomClass Sample", - "origin": "API_DEFINITION", - "description": " Create a custom class.", - "canonical": true, - "file": "adaptation.create_custom_class.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCustomClass", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.CreateCustomClass", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "custom_class_id", - "type": "TYPE_STRING" - }, - { - "name": "custom_class", - "type": ".google.cloud.speech.v1p1beta1.CustomClass" - } - ], - "resultType": ".google.cloud.speech.v1p1beta1.CustomClass", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" - }, - "method": { - "shortName": "CreateCustomClass", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.CreateCustomClass", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1p1beta1_generated_Adaptation_GetCustomClass_async", - "title": "Adaptation getCustomClass Sample", - "origin": "API_DEFINITION", - "description": " Get a custom class.", - "canonical": true, - "file": "adaptation.get_custom_class.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCustomClass", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.GetCustomClass", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.speech.v1p1beta1.CustomClass", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" - }, - "method": { - "shortName": "GetCustomClass", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.GetCustomClass", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1p1beta1_generated_Adaptation_ListCustomClasses_async", - "title": "Adaptation listCustomClasses Sample", - "origin": "API_DEFINITION", - "description": " List custom classes.", - "canonical": true, - "file": "adaptation.list_custom_classes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCustomClasses", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.ListCustomClasses", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.speech.v1p1beta1.ListCustomClassesResponse", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" - }, - "method": { - "shortName": "ListCustomClasses", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.ListCustomClasses", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1p1beta1_generated_Adaptation_UpdateCustomClass_async", - "title": "Adaptation updateCustomClass Sample", - "origin": "API_DEFINITION", - "description": " Update a custom class.", - "canonical": true, - "file": "adaptation.update_custom_class.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCustomClass", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.UpdateCustomClass", - "async": true, - "parameters": [ - { - "name": "custom_class", - "type": ".google.cloud.speech.v1p1beta1.CustomClass" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.speech.v1p1beta1.CustomClass", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" - }, - "method": { - "shortName": "UpdateCustomClass", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.UpdateCustomClass", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1p1beta1_generated_Adaptation_DeleteCustomClass_async", - "title": "Adaptation deleteCustomClass Sample", - "origin": "API_DEFINITION", - "description": " Delete a custom class.", - "canonical": true, - "file": "adaptation.delete_custom_class.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCustomClass", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.DeleteCustomClass", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" - }, - "method": { - "shortName": "DeleteCustomClass", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.DeleteCustomClass", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1p1beta1_generated_Speech_Recognize_async", - "title": "Adaptation recognize Sample", - "origin": "API_DEFINITION", - "description": " Performs synchronous speech recognition: receive results after all audio has been sent and processed.", - "canonical": true, - "file": "speech.recognize.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Recognize", - "fullName": "google.cloud.speech.v1p1beta1.Speech.Recognize", - "async": true, - "parameters": [ - { - "name": "config", - "type": ".google.cloud.speech.v1p1beta1.RecognitionConfig" - }, - { - "name": "audio", - "type": ".google.cloud.speech.v1p1beta1.RecognitionAudio" - } - ], - "resultType": ".google.cloud.speech.v1p1beta1.RecognizeResponse", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v1p1beta1.SpeechClient" - }, - "method": { - "shortName": "Recognize", - "fullName": "google.cloud.speech.v1p1beta1.Speech.Recognize", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v1p1beta1.Speech" - } - } - } - }, - { - "regionTag": "speech_v1p1beta1_generated_Speech_LongRunningRecognize_async", - "title": "Adaptation longRunningRecognize Sample", - "origin": "API_DEFINITION", - "description": " Performs asynchronous speech recognition: receive results via the google.longrunning.Operations interface. Returns either an `Operation.error` or an `Operation.response` which contains a `LongRunningRecognizeResponse` message. For more information on asynchronous speech recognition, see the [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).", - "canonical": true, - "file": "speech.long_running_recognize.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "LongRunningRecognize", - "fullName": "google.cloud.speech.v1p1beta1.Speech.LongRunningRecognize", - "async": true, - "parameters": [ - { - "name": "config", - "type": ".google.cloud.speech.v1p1beta1.RecognitionConfig" - }, - { - "name": "audio", - "type": ".google.cloud.speech.v1p1beta1.RecognitionAudio" - }, - { - "name": "output_config", - "type": ".google.cloud.speech.v1p1beta1.TranscriptOutputConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v1p1beta1.SpeechClient" - }, - "method": { - "shortName": "LongRunningRecognize", - "fullName": "google.cloud.speech.v1p1beta1.Speech.LongRunningRecognize", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v1p1beta1.Speech" - } - } - } - }, - { - "regionTag": "speech_v1p1beta1_generated_Speech_StreamingRecognize_async", - "title": "Adaptation streamingRecognize Sample", - "origin": "API_DEFINITION", - "description": " Performs bidirectional streaming speech recognition: receive results while sending audio. This method is only available via the gRPC API (not REST).", - "canonical": true, - "file": "speech.streaming_recognize.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StreamingRecognize", - "fullName": "google.cloud.speech.v1p1beta1.Speech.StreamingRecognize", - "async": true, - "parameters": [ - { - "name": "streaming_config", - "type": ".google.cloud.speech.v1p1beta1.StreamingRecognitionConfig" - }, - { - "name": "audio_content", - "type": "TYPE_BYTES" - } - ], - "resultType": ".google.cloud.speech.v1p1beta1.StreamingRecognizeResponse", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v1p1beta1.SpeechClient" - }, - "method": { - "shortName": "StreamingRecognize", - "fullName": "google.cloud.speech.v1p1beta1.Speech.StreamingRecognize", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v1p1beta1.Speech" - } - } - } - } - ] -} diff --git a/core/packages/gapic-node-processing/test/fixtures/combined-library/google-cloud-speech-nodejs/speech-v2-nodejs/samples/generated/v2/snippet_metadata_google.cloud.speech.v2.json b/core/packages/gapic-node-processing/test/fixtures/combined-library/google-cloud-speech-nodejs/speech-v2-nodejs/samples/generated/v2/snippet_metadata_google.cloud.speech.v2.json deleted file mode 100644 index 544187db9938..000000000000 --- a/core/packages/gapic-node-processing/test/fixtures/combined-library/google-cloud-speech-nodejs/speech-v2-nodejs/samples/generated/v2/snippet_metadata_google.cloud.speech.v2.json +++ /dev/null @@ -1,1139 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-speech", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.speech.v2", - "version": "v2" - } - ] - }, - "snippets": [ - { - "regionTag": "speech_v2_generated_Speech_CreateRecognizer_async", - "title": "Speech createRecognizer Sample", - "origin": "API_DEFINITION", - "description": " Creates a [Recognizer][google.cloud.speech.v2.Recognizer].", - "canonical": true, - "file": "speech.create_recognizer.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateRecognizer", - "fullName": "google.cloud.speech.v2.Speech.CreateRecognizer", - "async": true, - "parameters": [ - { - "name": "recognizer", - "type": ".google.cloud.speech.v2.Recognizer" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "recognizer_id", - "type": "TYPE_STRING" - }, - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "CreateRecognizer", - "fullName": "google.cloud.speech.v2.Speech.CreateRecognizer", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_ListRecognizers_async", - "title": "Speech listRecognizers Sample", - "origin": "API_DEFINITION", - "description": " Lists Recognizers.", - "canonical": true, - "file": "speech.list_recognizers.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRecognizers", - "fullName": "google.cloud.speech.v2.Speech.ListRecognizers", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "show_deleted", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.speech.v2.ListRecognizersResponse", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "ListRecognizers", - "fullName": "google.cloud.speech.v2.Speech.ListRecognizers", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_GetRecognizer_async", - "title": "Speech getRecognizer Sample", - "origin": "API_DEFINITION", - "description": " Returns the requested [Recognizer][google.cloud.speech.v2.Recognizer]. Fails with [NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested Recognizer doesn't exist.", - "canonical": true, - "file": "speech.get_recognizer.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRecognizer", - "fullName": "google.cloud.speech.v2.Speech.GetRecognizer", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.speech.v2.Recognizer", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "GetRecognizer", - "fullName": "google.cloud.speech.v2.Speech.GetRecognizer", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_UpdateRecognizer_async", - "title": "Speech updateRecognizer Sample", - "origin": "API_DEFINITION", - "description": " Updates the [Recognizer][google.cloud.speech.v2.Recognizer].", - "canonical": true, - "file": "speech.update_recognizer.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateRecognizer", - "fullName": "google.cloud.speech.v2.Speech.UpdateRecognizer", - "async": true, - "parameters": [ - { - "name": "recognizer", - "type": ".google.cloud.speech.v2.Recognizer" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "UpdateRecognizer", - "fullName": "google.cloud.speech.v2.Speech.UpdateRecognizer", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_DeleteRecognizer_async", - "title": "Speech deleteRecognizer Sample", - "origin": "API_DEFINITION", - "description": " Deletes the [Recognizer][google.cloud.speech.v2.Recognizer].", - "canonical": true, - "file": "speech.delete_recognizer.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteRecognizer", - "fullName": "google.cloud.speech.v2.Speech.DeleteRecognizer", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "DeleteRecognizer", - "fullName": "google.cloud.speech.v2.Speech.DeleteRecognizer", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_UndeleteRecognizer_async", - "title": "Speech undeleteRecognizer Sample", - "origin": "API_DEFINITION", - "description": " Undeletes the [Recognizer][google.cloud.speech.v2.Recognizer].", - "canonical": true, - "file": "speech.undelete_recognizer.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UndeleteRecognizer", - "fullName": "google.cloud.speech.v2.Speech.UndeleteRecognizer", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "UndeleteRecognizer", - "fullName": "google.cloud.speech.v2.Speech.UndeleteRecognizer", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_Recognize_async", - "title": "Speech recognize Sample", - "origin": "API_DEFINITION", - "description": " Performs synchronous Speech recognition: receive results after all audio has been sent and processed.", - "canonical": true, - "file": "speech.recognize.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 99, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Recognize", - "fullName": "google.cloud.speech.v2.Speech.Recognize", - "async": true, - "parameters": [ - { - "name": "recognizer", - "type": "TYPE_STRING" - }, - { - "name": "config", - "type": ".google.cloud.speech.v2.RecognitionConfig" - }, - { - "name": "config_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "content", - "type": "TYPE_BYTES" - }, - { - "name": "uri", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.speech.v2.RecognizeResponse", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "Recognize", - "fullName": "google.cloud.speech.v2.Speech.Recognize", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_StreamingRecognize_async", - "title": "Speech streamingRecognize Sample", - "origin": "API_DEFINITION", - "description": " Performs bidirectional streaming speech recognition: receive results while sending audio. This method is only available via the gRPC API (not REST).", - "canonical": true, - "file": "speech.streaming_recognize.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StreamingRecognize", - "fullName": "google.cloud.speech.v2.Speech.StreamingRecognize", - "async": true, - "parameters": [ - { - "name": "recognizer", - "type": "TYPE_STRING" - }, - { - "name": "streaming_config", - "type": ".google.cloud.speech.v2.StreamingRecognitionConfig" - }, - { - "name": "audio", - "type": "TYPE_BYTES" - } - ], - "resultType": ".google.cloud.speech.v2.StreamingRecognizeResponse", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "StreamingRecognize", - "fullName": "google.cloud.speech.v2.Speech.StreamingRecognize", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_BatchRecognize_async", - "title": "Speech batchRecognize Sample", - "origin": "API_DEFINITION", - "description": " Performs batch asynchronous speech recognition: send a request with N audio files and receive a long running operation that can be polled to see when the transcriptions are finished.", - "canonical": true, - "file": "speech.batch_recognize.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 95, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchRecognize", - "fullName": "google.cloud.speech.v2.Speech.BatchRecognize", - "async": true, - "parameters": [ - { - "name": "recognizer", - "type": "TYPE_STRING" - }, - { - "name": "config", - "type": ".google.cloud.speech.v2.RecognitionConfig" - }, - { - "name": "config_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "files", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "recognition_output_config", - "type": ".google.cloud.speech.v2.RecognitionOutputConfig" - }, - { - "name": "processing_strategy", - "type": ".google.cloud.speech.v2.BatchRecognizeRequest.ProcessingStrategy" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "BatchRecognize", - "fullName": "google.cloud.speech.v2.Speech.BatchRecognize", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_GetConfig_async", - "title": "Speech getConfig Sample", - "origin": "API_DEFINITION", - "description": " Returns the requested [Config][google.cloud.speech.v2.Config].", - "canonical": true, - "file": "speech.get_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetConfig", - "fullName": "google.cloud.speech.v2.Speech.GetConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.speech.v2.Config", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "GetConfig", - "fullName": "google.cloud.speech.v2.Speech.GetConfig", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_UpdateConfig_async", - "title": "Speech updateConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates the [Config][google.cloud.speech.v2.Config].", - "canonical": true, - "file": "speech.update_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateConfig", - "fullName": "google.cloud.speech.v2.Speech.UpdateConfig", - "async": true, - "parameters": [ - { - "name": "config", - "type": ".google.cloud.speech.v2.Config" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.speech.v2.Config", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "UpdateConfig", - "fullName": "google.cloud.speech.v2.Speech.UpdateConfig", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_CreateCustomClass_async", - "title": "Speech createCustomClass Sample", - "origin": "API_DEFINITION", - "description": " Creates a [CustomClass][google.cloud.speech.v2.CustomClass].", - "canonical": true, - "file": "speech.create_custom_class.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCustomClass", - "fullName": "google.cloud.speech.v2.Speech.CreateCustomClass", - "async": true, - "parameters": [ - { - "name": "custom_class", - "type": ".google.cloud.speech.v2.CustomClass" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "custom_class_id", - "type": "TYPE_STRING" - }, - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "CreateCustomClass", - "fullName": "google.cloud.speech.v2.Speech.CreateCustomClass", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_ListCustomClasses_async", - "title": "Speech listCustomClasses Sample", - "origin": "API_DEFINITION", - "description": " Lists CustomClasses.", - "canonical": true, - "file": "speech.list_custom_classes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCustomClasses", - "fullName": "google.cloud.speech.v2.Speech.ListCustomClasses", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "show_deleted", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.speech.v2.ListCustomClassesResponse", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "ListCustomClasses", - "fullName": "google.cloud.speech.v2.Speech.ListCustomClasses", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_GetCustomClass_async", - "title": "Speech getCustomClass Sample", - "origin": "API_DEFINITION", - "description": " Returns the requested [CustomClass][google.cloud.speech.v2.CustomClass].", - "canonical": true, - "file": "speech.get_custom_class.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCustomClass", - "fullName": "google.cloud.speech.v2.Speech.GetCustomClass", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.speech.v2.CustomClass", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "GetCustomClass", - "fullName": "google.cloud.speech.v2.Speech.GetCustomClass", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_UpdateCustomClass_async", - "title": "Speech updateCustomClass Sample", - "origin": "API_DEFINITION", - "description": " Updates the [CustomClass][google.cloud.speech.v2.CustomClass].", - "canonical": true, - "file": "speech.update_custom_class.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCustomClass", - "fullName": "google.cloud.speech.v2.Speech.UpdateCustomClass", - "async": true, - "parameters": [ - { - "name": "custom_class", - "type": ".google.cloud.speech.v2.CustomClass" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "UpdateCustomClass", - "fullName": "google.cloud.speech.v2.Speech.UpdateCustomClass", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_DeleteCustomClass_async", - "title": "Speech deleteCustomClass Sample", - "origin": "API_DEFINITION", - "description": " Deletes the [CustomClass][google.cloud.speech.v2.CustomClass].", - "canonical": true, - "file": "speech.delete_custom_class.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCustomClass", - "fullName": "google.cloud.speech.v2.Speech.DeleteCustomClass", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "DeleteCustomClass", - "fullName": "google.cloud.speech.v2.Speech.DeleteCustomClass", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_UndeleteCustomClass_async", - "title": "Speech undeleteCustomClass Sample", - "origin": "API_DEFINITION", - "description": " Undeletes the [CustomClass][google.cloud.speech.v2.CustomClass].", - "canonical": true, - "file": "speech.undelete_custom_class.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UndeleteCustomClass", - "fullName": "google.cloud.speech.v2.Speech.UndeleteCustomClass", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "UndeleteCustomClass", - "fullName": "google.cloud.speech.v2.Speech.UndeleteCustomClass", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_CreatePhraseSet_async", - "title": "Speech createPhraseSet Sample", - "origin": "API_DEFINITION", - "description": " Creates a [PhraseSet][google.cloud.speech.v2.PhraseSet].", - "canonical": true, - "file": "speech.create_phrase_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreatePhraseSet", - "fullName": "google.cloud.speech.v2.Speech.CreatePhraseSet", - "async": true, - "parameters": [ - { - "name": "phrase_set", - "type": ".google.cloud.speech.v2.PhraseSet" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "phrase_set_id", - "type": "TYPE_STRING" - }, - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "CreatePhraseSet", - "fullName": "google.cloud.speech.v2.Speech.CreatePhraseSet", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_ListPhraseSets_async", - "title": "Speech listPhraseSets Sample", - "origin": "API_DEFINITION", - "description": " Lists PhraseSets.", - "canonical": true, - "file": "speech.list_phrase_sets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPhraseSets", - "fullName": "google.cloud.speech.v2.Speech.ListPhraseSets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "show_deleted", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.speech.v2.ListPhraseSetsResponse", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "ListPhraseSets", - "fullName": "google.cloud.speech.v2.Speech.ListPhraseSets", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_GetPhraseSet_async", - "title": "Speech getPhraseSet Sample", - "origin": "API_DEFINITION", - "description": " Returns the requested [PhraseSet][google.cloud.speech.v2.PhraseSet].", - "canonical": true, - "file": "speech.get_phrase_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPhraseSet", - "fullName": "google.cloud.speech.v2.Speech.GetPhraseSet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.speech.v2.PhraseSet", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "GetPhraseSet", - "fullName": "google.cloud.speech.v2.Speech.GetPhraseSet", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_UpdatePhraseSet_async", - "title": "Speech updatePhraseSet Sample", - "origin": "API_DEFINITION", - "description": " Updates the [PhraseSet][google.cloud.speech.v2.PhraseSet].", - "canonical": true, - "file": "speech.update_phrase_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdatePhraseSet", - "fullName": "google.cloud.speech.v2.Speech.UpdatePhraseSet", - "async": true, - "parameters": [ - { - "name": "phrase_set", - "type": ".google.cloud.speech.v2.PhraseSet" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "UpdatePhraseSet", - "fullName": "google.cloud.speech.v2.Speech.UpdatePhraseSet", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_DeletePhraseSet_async", - "title": "Speech deletePhraseSet Sample", - "origin": "API_DEFINITION", - "description": " Deletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].", - "canonical": true, - "file": "speech.delete_phrase_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePhraseSet", - "fullName": "google.cloud.speech.v2.Speech.DeletePhraseSet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "DeletePhraseSet", - "fullName": "google.cloud.speech.v2.Speech.DeletePhraseSet", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_UndeletePhraseSet_async", - "title": "Speech undeletePhraseSet Sample", - "origin": "API_DEFINITION", - "description": " Undeletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].", - "canonical": true, - "file": "speech.undelete_phrase_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UndeletePhraseSet", - "fullName": "google.cloud.speech.v2.Speech.UndeletePhraseSet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "UndeletePhraseSet", - "fullName": "google.cloud.speech.v2.Speech.UndeletePhraseSet", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - } - ] -} diff --git a/core/packages/gapic-node-processing/test/fixtures/combined-library/google-cloud-speech/samples/generated/v1/snippet_metadata_google.cloud.speech.v1.json b/core/packages/gapic-node-processing/test/fixtures/combined-library/google-cloud-speech/samples/generated/v1/snippet_metadata_google.cloud.speech.v1.json deleted file mode 100644 index dee670aa1b68..000000000000 --- a/core/packages/gapic-node-processing/test/fixtures/combined-library/google-cloud-speech/samples/generated/v1/snippet_metadata_google.cloud.speech.v1.json +++ /dev/null @@ -1,591 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-speech", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.speech.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "speech_v1_generated_Adaptation_CreatePhraseSet_async", - "title": "Adaptation createPhraseSet Sample", - "origin": "API_DEFINITION", - "description": " Create a set of phrase hints. Each item in the set can be a single word or a multi-word phrase. The items in the PhraseSet are favored by the recognition model when you send a call that includes the PhraseSet.", - "canonical": true, - "file": "adaptation.create_phrase_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreatePhraseSet", - "fullName": "google.cloud.speech.v1.Adaptation.CreatePhraseSet", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "phrase_set_id", - "type": "TYPE_STRING" - }, - { - "name": "phrase_set", - "type": ".google.cloud.speech.v1.PhraseSet" - } - ], - "resultType": ".google.cloud.speech.v1.PhraseSet", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1.AdaptationClient" - }, - "method": { - "shortName": "CreatePhraseSet", - "fullName": "google.cloud.speech.v1.Adaptation.CreatePhraseSet", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1_generated_Adaptation_GetPhraseSet_async", - "title": "Adaptation getPhraseSet Sample", - "origin": "API_DEFINITION", - "description": " Get a phrase set.", - "canonical": true, - "file": "adaptation.get_phrase_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPhraseSet", - "fullName": "google.cloud.speech.v1.Adaptation.GetPhraseSet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.speech.v1.PhraseSet", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1.AdaptationClient" - }, - "method": { - "shortName": "GetPhraseSet", - "fullName": "google.cloud.speech.v1.Adaptation.GetPhraseSet", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1_generated_Adaptation_ListPhraseSet_async", - "title": "Adaptation listPhraseSet Sample", - "origin": "API_DEFINITION", - "description": " List phrase sets.", - "canonical": true, - "file": "adaptation.list_phrase_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPhraseSet", - "fullName": "google.cloud.speech.v1.Adaptation.ListPhraseSet", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.speech.v1.ListPhraseSetResponse", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1.AdaptationClient" - }, - "method": { - "shortName": "ListPhraseSet", - "fullName": "google.cloud.speech.v1.Adaptation.ListPhraseSet", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1_generated_Adaptation_UpdatePhraseSet_async", - "title": "Adaptation updatePhraseSet Sample", - "origin": "API_DEFINITION", - "description": " Update a phrase set.", - "canonical": true, - "file": "adaptation.update_phrase_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdatePhraseSet", - "fullName": "google.cloud.speech.v1.Adaptation.UpdatePhraseSet", - "async": true, - "parameters": [ - { - "name": "phrase_set", - "type": ".google.cloud.speech.v1.PhraseSet" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.speech.v1.PhraseSet", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1.AdaptationClient" - }, - "method": { - "shortName": "UpdatePhraseSet", - "fullName": "google.cloud.speech.v1.Adaptation.UpdatePhraseSet", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1_generated_Adaptation_DeletePhraseSet_async", - "title": "Adaptation deletePhraseSet Sample", - "origin": "API_DEFINITION", - "description": " Delete a phrase set.", - "canonical": true, - "file": "adaptation.delete_phrase_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePhraseSet", - "fullName": "google.cloud.speech.v1.Adaptation.DeletePhraseSet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1.AdaptationClient" - }, - "method": { - "shortName": "DeletePhraseSet", - "fullName": "google.cloud.speech.v1.Adaptation.DeletePhraseSet", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1_generated_Adaptation_CreateCustomClass_async", - "title": "Adaptation createCustomClass Sample", - "origin": "API_DEFINITION", - "description": " Create a custom class.", - "canonical": true, - "file": "adaptation.create_custom_class.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCustomClass", - "fullName": "google.cloud.speech.v1.Adaptation.CreateCustomClass", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "custom_class_id", - "type": "TYPE_STRING" - }, - { - "name": "custom_class", - "type": ".google.cloud.speech.v1.CustomClass" - } - ], - "resultType": ".google.cloud.speech.v1.CustomClass", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1.AdaptationClient" - }, - "method": { - "shortName": "CreateCustomClass", - "fullName": "google.cloud.speech.v1.Adaptation.CreateCustomClass", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1_generated_Adaptation_GetCustomClass_async", - "title": "Adaptation getCustomClass Sample", - "origin": "API_DEFINITION", - "description": " Get a custom class.", - "canonical": true, - "file": "adaptation.get_custom_class.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCustomClass", - "fullName": "google.cloud.speech.v1.Adaptation.GetCustomClass", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.speech.v1.CustomClass", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1.AdaptationClient" - }, - "method": { - "shortName": "GetCustomClass", - "fullName": "google.cloud.speech.v1.Adaptation.GetCustomClass", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1_generated_Adaptation_ListCustomClasses_async", - "title": "Adaptation listCustomClasses Sample", - "origin": "API_DEFINITION", - "description": " List custom classes.", - "canonical": true, - "file": "adaptation.list_custom_classes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCustomClasses", - "fullName": "google.cloud.speech.v1.Adaptation.ListCustomClasses", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.speech.v1.ListCustomClassesResponse", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1.AdaptationClient" - }, - "method": { - "shortName": "ListCustomClasses", - "fullName": "google.cloud.speech.v1.Adaptation.ListCustomClasses", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1_generated_Adaptation_UpdateCustomClass_async", - "title": "Adaptation updateCustomClass Sample", - "origin": "API_DEFINITION", - "description": " Update a custom class.", - "canonical": true, - "file": "adaptation.update_custom_class.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCustomClass", - "fullName": "google.cloud.speech.v1.Adaptation.UpdateCustomClass", - "async": true, - "parameters": [ - { - "name": "custom_class", - "type": ".google.cloud.speech.v1.CustomClass" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.speech.v1.CustomClass", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1.AdaptationClient" - }, - "method": { - "shortName": "UpdateCustomClass", - "fullName": "google.cloud.speech.v1.Adaptation.UpdateCustomClass", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1_generated_Adaptation_DeleteCustomClass_async", - "title": "Adaptation deleteCustomClass Sample", - "origin": "API_DEFINITION", - "description": " Delete a custom class.", - "canonical": true, - "file": "adaptation.delete_custom_class.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCustomClass", - "fullName": "google.cloud.speech.v1.Adaptation.DeleteCustomClass", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1.AdaptationClient" - }, - "method": { - "shortName": "DeleteCustomClass", - "fullName": "google.cloud.speech.v1.Adaptation.DeleteCustomClass", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1_generated_Speech_Recognize_async", - "title": "Adaptation recognize Sample", - "origin": "API_DEFINITION", - "description": " Performs synchronous speech recognition: receive results after all audio has been sent and processed.", - "canonical": true, - "file": "speech.recognize.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Recognize", - "fullName": "google.cloud.speech.v1.Speech.Recognize", - "async": true, - "parameters": [ - { - "name": "config", - "type": ".google.cloud.speech.v1.RecognitionConfig" - }, - { - "name": "audio", - "type": ".google.cloud.speech.v1.RecognitionAudio" - } - ], - "resultType": ".google.cloud.speech.v1.RecognizeResponse", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v1.SpeechClient" - }, - "method": { - "shortName": "Recognize", - "fullName": "google.cloud.speech.v1.Speech.Recognize", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v1.Speech" - } - } - } - }, - { - "regionTag": "speech_v1_generated_Speech_LongRunningRecognize_async", - "title": "Adaptation longRunningRecognize Sample", - "origin": "API_DEFINITION", - "description": " Performs asynchronous speech recognition: receive results via the google.longrunning.Operations interface. Returns either an `Operation.error` or an `Operation.response` which contains a `LongRunningRecognizeResponse` message. For more information on asynchronous speech recognition, see the [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).", - "canonical": true, - "file": "speech.long_running_recognize.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "LongRunningRecognize", - "fullName": "google.cloud.speech.v1.Speech.LongRunningRecognize", - "async": true, - "parameters": [ - { - "name": "config", - "type": ".google.cloud.speech.v1.RecognitionConfig" - }, - { - "name": "audio", - "type": ".google.cloud.speech.v1.RecognitionAudio" - }, - { - "name": "output_config", - "type": ".google.cloud.speech.v1.TranscriptOutputConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v1.SpeechClient" - }, - "method": { - "shortName": "LongRunningRecognize", - "fullName": "google.cloud.speech.v1.Speech.LongRunningRecognize", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v1.Speech" - } - } - } - }, - { - "regionTag": "speech_v1_generated_Speech_StreamingRecognize_async", - "title": "Adaptation streamingRecognize Sample", - "origin": "API_DEFINITION", - "description": " Performs bidirectional streaming speech recognition: receive results while sending audio. This method is only available via the gRPC API (not REST).", - "canonical": true, - "file": "speech.streaming_recognize.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StreamingRecognize", - "fullName": "google.cloud.speech.v1.Speech.StreamingRecognize", - "async": true, - "parameters": [ - { - "name": "streaming_config", - "type": ".google.cloud.speech.v1.StreamingRecognitionConfig" - }, - { - "name": "audio_content", - "type": "TYPE_BYTES" - } - ], - "resultType": ".google.cloud.speech.v1.StreamingRecognizeResponse", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v1.SpeechClient" - }, - "method": { - "shortName": "StreamingRecognize", - "fullName": "google.cloud.speech.v1.Speech.StreamingRecognize", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v1.Speech" - } - } - } - } - ] -} diff --git a/core/packages/gapic-node-processing/test/fixtures/combined-library/google-cloud-speech/samples/generated/v1p1beta1/snippet_metadata_google.cloud.speech.v1p1beta1.json b/core/packages/gapic-node-processing/test/fixtures/combined-library/google-cloud-speech/samples/generated/v1p1beta1/snippet_metadata_google.cloud.speech.v1p1beta1.json deleted file mode 100644 index c50b1efcefdd..000000000000 --- a/core/packages/gapic-node-processing/test/fixtures/combined-library/google-cloud-speech/samples/generated/v1p1beta1/snippet_metadata_google.cloud.speech.v1p1beta1.json +++ /dev/null @@ -1,591 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-speech", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.speech.v1p1beta1", - "version": "v1p1beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "speech_v1p1beta1_generated_Adaptation_CreatePhraseSet_async", - "title": "Adaptation createPhraseSet Sample", - "origin": "API_DEFINITION", - "description": " Create a set of phrase hints. Each item in the set can be a single word or a multi-word phrase. The items in the PhraseSet are favored by the recognition model when you send a call that includes the PhraseSet.", - "canonical": true, - "file": "adaptation.create_phrase_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreatePhraseSet", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.CreatePhraseSet", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "phrase_set_id", - "type": "TYPE_STRING" - }, - { - "name": "phrase_set", - "type": ".google.cloud.speech.v1p1beta1.PhraseSet" - } - ], - "resultType": ".google.cloud.speech.v1p1beta1.PhraseSet", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" - }, - "method": { - "shortName": "CreatePhraseSet", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.CreatePhraseSet", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1p1beta1_generated_Adaptation_GetPhraseSet_async", - "title": "Adaptation getPhraseSet Sample", - "origin": "API_DEFINITION", - "description": " Get a phrase set.", - "canonical": true, - "file": "adaptation.get_phrase_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPhraseSet", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.GetPhraseSet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.speech.v1p1beta1.PhraseSet", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" - }, - "method": { - "shortName": "GetPhraseSet", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.GetPhraseSet", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1p1beta1_generated_Adaptation_ListPhraseSet_async", - "title": "Adaptation listPhraseSet Sample", - "origin": "API_DEFINITION", - "description": " List phrase sets.", - "canonical": true, - "file": "adaptation.list_phrase_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPhraseSet", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.ListPhraseSet", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.speech.v1p1beta1.ListPhraseSetResponse", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" - }, - "method": { - "shortName": "ListPhraseSet", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.ListPhraseSet", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1p1beta1_generated_Adaptation_UpdatePhraseSet_async", - "title": "Adaptation updatePhraseSet Sample", - "origin": "API_DEFINITION", - "description": " Update a phrase set.", - "canonical": true, - "file": "adaptation.update_phrase_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdatePhraseSet", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.UpdatePhraseSet", - "async": true, - "parameters": [ - { - "name": "phrase_set", - "type": ".google.cloud.speech.v1p1beta1.PhraseSet" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.speech.v1p1beta1.PhraseSet", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" - }, - "method": { - "shortName": "UpdatePhraseSet", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.UpdatePhraseSet", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1p1beta1_generated_Adaptation_DeletePhraseSet_async", - "title": "Adaptation deletePhraseSet Sample", - "origin": "API_DEFINITION", - "description": " Delete a phrase set.", - "canonical": true, - "file": "adaptation.delete_phrase_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePhraseSet", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.DeletePhraseSet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" - }, - "method": { - "shortName": "DeletePhraseSet", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.DeletePhraseSet", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1p1beta1_generated_Adaptation_CreateCustomClass_async", - "title": "Adaptation createCustomClass Sample", - "origin": "API_DEFINITION", - "description": " Create a custom class.", - "canonical": true, - "file": "adaptation.create_custom_class.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCustomClass", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.CreateCustomClass", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "custom_class_id", - "type": "TYPE_STRING" - }, - { - "name": "custom_class", - "type": ".google.cloud.speech.v1p1beta1.CustomClass" - } - ], - "resultType": ".google.cloud.speech.v1p1beta1.CustomClass", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" - }, - "method": { - "shortName": "CreateCustomClass", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.CreateCustomClass", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1p1beta1_generated_Adaptation_GetCustomClass_async", - "title": "Adaptation getCustomClass Sample", - "origin": "API_DEFINITION", - "description": " Get a custom class.", - "canonical": true, - "file": "adaptation.get_custom_class.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCustomClass", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.GetCustomClass", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.speech.v1p1beta1.CustomClass", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" - }, - "method": { - "shortName": "GetCustomClass", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.GetCustomClass", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1p1beta1_generated_Adaptation_ListCustomClasses_async", - "title": "Adaptation listCustomClasses Sample", - "origin": "API_DEFINITION", - "description": " List custom classes.", - "canonical": true, - "file": "adaptation.list_custom_classes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCustomClasses", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.ListCustomClasses", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.speech.v1p1beta1.ListCustomClassesResponse", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" - }, - "method": { - "shortName": "ListCustomClasses", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.ListCustomClasses", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1p1beta1_generated_Adaptation_UpdateCustomClass_async", - "title": "Adaptation updateCustomClass Sample", - "origin": "API_DEFINITION", - "description": " Update a custom class.", - "canonical": true, - "file": "adaptation.update_custom_class.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCustomClass", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.UpdateCustomClass", - "async": true, - "parameters": [ - { - "name": "custom_class", - "type": ".google.cloud.speech.v1p1beta1.CustomClass" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.speech.v1p1beta1.CustomClass", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" - }, - "method": { - "shortName": "UpdateCustomClass", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.UpdateCustomClass", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1p1beta1_generated_Adaptation_DeleteCustomClass_async", - "title": "Adaptation deleteCustomClass Sample", - "origin": "API_DEFINITION", - "description": " Delete a custom class.", - "canonical": true, - "file": "adaptation.delete_custom_class.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCustomClass", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.DeleteCustomClass", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" - }, - "method": { - "shortName": "DeleteCustomClass", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.DeleteCustomClass", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1p1beta1_generated_Speech_Recognize_async", - "title": "Adaptation recognize Sample", - "origin": "API_DEFINITION", - "description": " Performs synchronous speech recognition: receive results after all audio has been sent and processed.", - "canonical": true, - "file": "speech.recognize.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Recognize", - "fullName": "google.cloud.speech.v1p1beta1.Speech.Recognize", - "async": true, - "parameters": [ - { - "name": "config", - "type": ".google.cloud.speech.v1p1beta1.RecognitionConfig" - }, - { - "name": "audio", - "type": ".google.cloud.speech.v1p1beta1.RecognitionAudio" - } - ], - "resultType": ".google.cloud.speech.v1p1beta1.RecognizeResponse", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v1p1beta1.SpeechClient" - }, - "method": { - "shortName": "Recognize", - "fullName": "google.cloud.speech.v1p1beta1.Speech.Recognize", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v1p1beta1.Speech" - } - } - } - }, - { - "regionTag": "speech_v1p1beta1_generated_Speech_LongRunningRecognize_async", - "title": "Adaptation longRunningRecognize Sample", - "origin": "API_DEFINITION", - "description": " Performs asynchronous speech recognition: receive results via the google.longrunning.Operations interface. Returns either an `Operation.error` or an `Operation.response` which contains a `LongRunningRecognizeResponse` message. For more information on asynchronous speech recognition, see the [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).", - "canonical": true, - "file": "speech.long_running_recognize.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "LongRunningRecognize", - "fullName": "google.cloud.speech.v1p1beta1.Speech.LongRunningRecognize", - "async": true, - "parameters": [ - { - "name": "config", - "type": ".google.cloud.speech.v1p1beta1.RecognitionConfig" - }, - { - "name": "audio", - "type": ".google.cloud.speech.v1p1beta1.RecognitionAudio" - }, - { - "name": "output_config", - "type": ".google.cloud.speech.v1p1beta1.TranscriptOutputConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v1p1beta1.SpeechClient" - }, - "method": { - "shortName": "LongRunningRecognize", - "fullName": "google.cloud.speech.v1p1beta1.Speech.LongRunningRecognize", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v1p1beta1.Speech" - } - } - } - }, - { - "regionTag": "speech_v1p1beta1_generated_Speech_StreamingRecognize_async", - "title": "Adaptation streamingRecognize Sample", - "origin": "API_DEFINITION", - "description": " Performs bidirectional streaming speech recognition: receive results while sending audio. This method is only available via the gRPC API (not REST).", - "canonical": true, - "file": "speech.streaming_recognize.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StreamingRecognize", - "fullName": "google.cloud.speech.v1p1beta1.Speech.StreamingRecognize", - "async": true, - "parameters": [ - { - "name": "streaming_config", - "type": ".google.cloud.speech.v1p1beta1.StreamingRecognitionConfig" - }, - { - "name": "audio_content", - "type": "TYPE_BYTES" - } - ], - "resultType": ".google.cloud.speech.v1p1beta1.StreamingRecognizeResponse", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v1p1beta1.SpeechClient" - }, - "method": { - "shortName": "StreamingRecognize", - "fullName": "google.cloud.speech.v1p1beta1.Speech.StreamingRecognize", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v1p1beta1.Speech" - } - } - } - } - ] -} diff --git a/core/packages/gapic-node-processing/test/fixtures/combined-library/google-cloud-speech/samples/generated/v2/snippet_metadata_google.cloud.speech.v2.json b/core/packages/gapic-node-processing/test/fixtures/combined-library/google-cloud-speech/samples/generated/v2/snippet_metadata_google.cloud.speech.v2.json deleted file mode 100644 index 544187db9938..000000000000 --- a/core/packages/gapic-node-processing/test/fixtures/combined-library/google-cloud-speech/samples/generated/v2/snippet_metadata_google.cloud.speech.v2.json +++ /dev/null @@ -1,1139 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-speech", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.speech.v2", - "version": "v2" - } - ] - }, - "snippets": [ - { - "regionTag": "speech_v2_generated_Speech_CreateRecognizer_async", - "title": "Speech createRecognizer Sample", - "origin": "API_DEFINITION", - "description": " Creates a [Recognizer][google.cloud.speech.v2.Recognizer].", - "canonical": true, - "file": "speech.create_recognizer.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateRecognizer", - "fullName": "google.cloud.speech.v2.Speech.CreateRecognizer", - "async": true, - "parameters": [ - { - "name": "recognizer", - "type": ".google.cloud.speech.v2.Recognizer" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "recognizer_id", - "type": "TYPE_STRING" - }, - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "CreateRecognizer", - "fullName": "google.cloud.speech.v2.Speech.CreateRecognizer", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_ListRecognizers_async", - "title": "Speech listRecognizers Sample", - "origin": "API_DEFINITION", - "description": " Lists Recognizers.", - "canonical": true, - "file": "speech.list_recognizers.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRecognizers", - "fullName": "google.cloud.speech.v2.Speech.ListRecognizers", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "show_deleted", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.speech.v2.ListRecognizersResponse", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "ListRecognizers", - "fullName": "google.cloud.speech.v2.Speech.ListRecognizers", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_GetRecognizer_async", - "title": "Speech getRecognizer Sample", - "origin": "API_DEFINITION", - "description": " Returns the requested [Recognizer][google.cloud.speech.v2.Recognizer]. Fails with [NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested Recognizer doesn't exist.", - "canonical": true, - "file": "speech.get_recognizer.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRecognizer", - "fullName": "google.cloud.speech.v2.Speech.GetRecognizer", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.speech.v2.Recognizer", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "GetRecognizer", - "fullName": "google.cloud.speech.v2.Speech.GetRecognizer", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_UpdateRecognizer_async", - "title": "Speech updateRecognizer Sample", - "origin": "API_DEFINITION", - "description": " Updates the [Recognizer][google.cloud.speech.v2.Recognizer].", - "canonical": true, - "file": "speech.update_recognizer.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateRecognizer", - "fullName": "google.cloud.speech.v2.Speech.UpdateRecognizer", - "async": true, - "parameters": [ - { - "name": "recognizer", - "type": ".google.cloud.speech.v2.Recognizer" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "UpdateRecognizer", - "fullName": "google.cloud.speech.v2.Speech.UpdateRecognizer", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_DeleteRecognizer_async", - "title": "Speech deleteRecognizer Sample", - "origin": "API_DEFINITION", - "description": " Deletes the [Recognizer][google.cloud.speech.v2.Recognizer].", - "canonical": true, - "file": "speech.delete_recognizer.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteRecognizer", - "fullName": "google.cloud.speech.v2.Speech.DeleteRecognizer", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "DeleteRecognizer", - "fullName": "google.cloud.speech.v2.Speech.DeleteRecognizer", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_UndeleteRecognizer_async", - "title": "Speech undeleteRecognizer Sample", - "origin": "API_DEFINITION", - "description": " Undeletes the [Recognizer][google.cloud.speech.v2.Recognizer].", - "canonical": true, - "file": "speech.undelete_recognizer.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UndeleteRecognizer", - "fullName": "google.cloud.speech.v2.Speech.UndeleteRecognizer", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "UndeleteRecognizer", - "fullName": "google.cloud.speech.v2.Speech.UndeleteRecognizer", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_Recognize_async", - "title": "Speech recognize Sample", - "origin": "API_DEFINITION", - "description": " Performs synchronous Speech recognition: receive results after all audio has been sent and processed.", - "canonical": true, - "file": "speech.recognize.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 99, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Recognize", - "fullName": "google.cloud.speech.v2.Speech.Recognize", - "async": true, - "parameters": [ - { - "name": "recognizer", - "type": "TYPE_STRING" - }, - { - "name": "config", - "type": ".google.cloud.speech.v2.RecognitionConfig" - }, - { - "name": "config_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "content", - "type": "TYPE_BYTES" - }, - { - "name": "uri", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.speech.v2.RecognizeResponse", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "Recognize", - "fullName": "google.cloud.speech.v2.Speech.Recognize", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_StreamingRecognize_async", - "title": "Speech streamingRecognize Sample", - "origin": "API_DEFINITION", - "description": " Performs bidirectional streaming speech recognition: receive results while sending audio. This method is only available via the gRPC API (not REST).", - "canonical": true, - "file": "speech.streaming_recognize.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StreamingRecognize", - "fullName": "google.cloud.speech.v2.Speech.StreamingRecognize", - "async": true, - "parameters": [ - { - "name": "recognizer", - "type": "TYPE_STRING" - }, - { - "name": "streaming_config", - "type": ".google.cloud.speech.v2.StreamingRecognitionConfig" - }, - { - "name": "audio", - "type": "TYPE_BYTES" - } - ], - "resultType": ".google.cloud.speech.v2.StreamingRecognizeResponse", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "StreamingRecognize", - "fullName": "google.cloud.speech.v2.Speech.StreamingRecognize", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_BatchRecognize_async", - "title": "Speech batchRecognize Sample", - "origin": "API_DEFINITION", - "description": " Performs batch asynchronous speech recognition: send a request with N audio files and receive a long running operation that can be polled to see when the transcriptions are finished.", - "canonical": true, - "file": "speech.batch_recognize.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 95, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchRecognize", - "fullName": "google.cloud.speech.v2.Speech.BatchRecognize", - "async": true, - "parameters": [ - { - "name": "recognizer", - "type": "TYPE_STRING" - }, - { - "name": "config", - "type": ".google.cloud.speech.v2.RecognitionConfig" - }, - { - "name": "config_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "files", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "recognition_output_config", - "type": ".google.cloud.speech.v2.RecognitionOutputConfig" - }, - { - "name": "processing_strategy", - "type": ".google.cloud.speech.v2.BatchRecognizeRequest.ProcessingStrategy" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "BatchRecognize", - "fullName": "google.cloud.speech.v2.Speech.BatchRecognize", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_GetConfig_async", - "title": "Speech getConfig Sample", - "origin": "API_DEFINITION", - "description": " Returns the requested [Config][google.cloud.speech.v2.Config].", - "canonical": true, - "file": "speech.get_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetConfig", - "fullName": "google.cloud.speech.v2.Speech.GetConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.speech.v2.Config", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "GetConfig", - "fullName": "google.cloud.speech.v2.Speech.GetConfig", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_UpdateConfig_async", - "title": "Speech updateConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates the [Config][google.cloud.speech.v2.Config].", - "canonical": true, - "file": "speech.update_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateConfig", - "fullName": "google.cloud.speech.v2.Speech.UpdateConfig", - "async": true, - "parameters": [ - { - "name": "config", - "type": ".google.cloud.speech.v2.Config" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.speech.v2.Config", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "UpdateConfig", - "fullName": "google.cloud.speech.v2.Speech.UpdateConfig", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_CreateCustomClass_async", - "title": "Speech createCustomClass Sample", - "origin": "API_DEFINITION", - "description": " Creates a [CustomClass][google.cloud.speech.v2.CustomClass].", - "canonical": true, - "file": "speech.create_custom_class.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCustomClass", - "fullName": "google.cloud.speech.v2.Speech.CreateCustomClass", - "async": true, - "parameters": [ - { - "name": "custom_class", - "type": ".google.cloud.speech.v2.CustomClass" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "custom_class_id", - "type": "TYPE_STRING" - }, - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "CreateCustomClass", - "fullName": "google.cloud.speech.v2.Speech.CreateCustomClass", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_ListCustomClasses_async", - "title": "Speech listCustomClasses Sample", - "origin": "API_DEFINITION", - "description": " Lists CustomClasses.", - "canonical": true, - "file": "speech.list_custom_classes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCustomClasses", - "fullName": "google.cloud.speech.v2.Speech.ListCustomClasses", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "show_deleted", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.speech.v2.ListCustomClassesResponse", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "ListCustomClasses", - "fullName": "google.cloud.speech.v2.Speech.ListCustomClasses", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_GetCustomClass_async", - "title": "Speech getCustomClass Sample", - "origin": "API_DEFINITION", - "description": " Returns the requested [CustomClass][google.cloud.speech.v2.CustomClass].", - "canonical": true, - "file": "speech.get_custom_class.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCustomClass", - "fullName": "google.cloud.speech.v2.Speech.GetCustomClass", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.speech.v2.CustomClass", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "GetCustomClass", - "fullName": "google.cloud.speech.v2.Speech.GetCustomClass", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_UpdateCustomClass_async", - "title": "Speech updateCustomClass Sample", - "origin": "API_DEFINITION", - "description": " Updates the [CustomClass][google.cloud.speech.v2.CustomClass].", - "canonical": true, - "file": "speech.update_custom_class.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCustomClass", - "fullName": "google.cloud.speech.v2.Speech.UpdateCustomClass", - "async": true, - "parameters": [ - { - "name": "custom_class", - "type": ".google.cloud.speech.v2.CustomClass" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "UpdateCustomClass", - "fullName": "google.cloud.speech.v2.Speech.UpdateCustomClass", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_DeleteCustomClass_async", - "title": "Speech deleteCustomClass Sample", - "origin": "API_DEFINITION", - "description": " Deletes the [CustomClass][google.cloud.speech.v2.CustomClass].", - "canonical": true, - "file": "speech.delete_custom_class.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCustomClass", - "fullName": "google.cloud.speech.v2.Speech.DeleteCustomClass", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "DeleteCustomClass", - "fullName": "google.cloud.speech.v2.Speech.DeleteCustomClass", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_UndeleteCustomClass_async", - "title": "Speech undeleteCustomClass Sample", - "origin": "API_DEFINITION", - "description": " Undeletes the [CustomClass][google.cloud.speech.v2.CustomClass].", - "canonical": true, - "file": "speech.undelete_custom_class.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UndeleteCustomClass", - "fullName": "google.cloud.speech.v2.Speech.UndeleteCustomClass", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "UndeleteCustomClass", - "fullName": "google.cloud.speech.v2.Speech.UndeleteCustomClass", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_CreatePhraseSet_async", - "title": "Speech createPhraseSet Sample", - "origin": "API_DEFINITION", - "description": " Creates a [PhraseSet][google.cloud.speech.v2.PhraseSet].", - "canonical": true, - "file": "speech.create_phrase_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreatePhraseSet", - "fullName": "google.cloud.speech.v2.Speech.CreatePhraseSet", - "async": true, - "parameters": [ - { - "name": "phrase_set", - "type": ".google.cloud.speech.v2.PhraseSet" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "phrase_set_id", - "type": "TYPE_STRING" - }, - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "CreatePhraseSet", - "fullName": "google.cloud.speech.v2.Speech.CreatePhraseSet", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_ListPhraseSets_async", - "title": "Speech listPhraseSets Sample", - "origin": "API_DEFINITION", - "description": " Lists PhraseSets.", - "canonical": true, - "file": "speech.list_phrase_sets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPhraseSets", - "fullName": "google.cloud.speech.v2.Speech.ListPhraseSets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "show_deleted", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.speech.v2.ListPhraseSetsResponse", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "ListPhraseSets", - "fullName": "google.cloud.speech.v2.Speech.ListPhraseSets", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_GetPhraseSet_async", - "title": "Speech getPhraseSet Sample", - "origin": "API_DEFINITION", - "description": " Returns the requested [PhraseSet][google.cloud.speech.v2.PhraseSet].", - "canonical": true, - "file": "speech.get_phrase_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPhraseSet", - "fullName": "google.cloud.speech.v2.Speech.GetPhraseSet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.speech.v2.PhraseSet", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "GetPhraseSet", - "fullName": "google.cloud.speech.v2.Speech.GetPhraseSet", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_UpdatePhraseSet_async", - "title": "Speech updatePhraseSet Sample", - "origin": "API_DEFINITION", - "description": " Updates the [PhraseSet][google.cloud.speech.v2.PhraseSet].", - "canonical": true, - "file": "speech.update_phrase_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdatePhraseSet", - "fullName": "google.cloud.speech.v2.Speech.UpdatePhraseSet", - "async": true, - "parameters": [ - { - "name": "phrase_set", - "type": ".google.cloud.speech.v2.PhraseSet" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "UpdatePhraseSet", - "fullName": "google.cloud.speech.v2.Speech.UpdatePhraseSet", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_DeletePhraseSet_async", - "title": "Speech deletePhraseSet Sample", - "origin": "API_DEFINITION", - "description": " Deletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].", - "canonical": true, - "file": "speech.delete_phrase_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePhraseSet", - "fullName": "google.cloud.speech.v2.Speech.DeletePhraseSet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "DeletePhraseSet", - "fullName": "google.cloud.speech.v2.Speech.DeletePhraseSet", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_UndeletePhraseSet_async", - "title": "Speech undeletePhraseSet Sample", - "origin": "API_DEFINITION", - "description": " Undeletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].", - "canonical": true, - "file": "speech.undelete_phrase_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UndeletePhraseSet", - "fullName": "google.cloud.speech.v2.Speech.UndeletePhraseSet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "UndeletePhraseSet", - "fullName": "google.cloud.speech.v2.Speech.UndeletePhraseSet", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - } - ] -} diff --git a/core/packages/gapic-node-processing/test/fixtures/combined-library/google-cloud-tasks-nodejs/tasks-v2-nodejs/samples/generated/v2/snippet_metadata_google.cloud.tasks.v2.json b/core/packages/gapic-node-processing/test/fixtures/combined-library/google-cloud-tasks-nodejs/tasks-v2-nodejs/samples/generated/v2/snippet_metadata_google.cloud.tasks.v2.json deleted file mode 100644 index f8320985590c..000000000000 --- a/core/packages/gapic-node-processing/test/fixtures/combined-library/google-cloud-tasks-nodejs/tasks-v2-nodejs/samples/generated/v2/snippet_metadata_google.cloud.tasks.v2.json +++ /dev/null @@ -1,719 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-tasks", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.tasks.v2", - "version": "v2" - } - ] - }, - "snippets": [ - { - "regionTag": "cloudtasks_v2_generated_CloudTasks_ListQueues_async", - "title": "tasks listQueues Sample", - "origin": "API_DEFINITION", - "description": " Lists queues. Queues are returned in lexicographical order.", - "canonical": true, - "file": "cloud_tasks.list_queues.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 88, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListQueues", - "fullName": "google.cloud.tasks.v2.CloudTasks.ListQueues", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tasks.v2.ListQueuesResponse", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2.CloudTasksClient" - }, - "method": { - "shortName": "ListQueues", - "fullName": "google.cloud.tasks.v2.CloudTasks.ListQueues", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2_generated_CloudTasks_GetQueue_async", - "title": "tasks getQueue Sample", - "origin": "API_DEFINITION", - "description": " Gets a queue.", - "canonical": true, - "file": "cloud_tasks.get_queue.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetQueue", - "fullName": "google.cloud.tasks.v2.CloudTasks.GetQueue", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tasks.v2.Queue", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2.CloudTasksClient" - }, - "method": { - "shortName": "GetQueue", - "fullName": "google.cloud.tasks.v2.CloudTasks.GetQueue", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2_generated_CloudTasks_CreateQueue_async", - "title": "tasks createQueue Sample", - "origin": "API_DEFINITION", - "description": " Creates a queue. Queues created with this method allow tasks to live for a maximum of 31 days. After a task is 31 days old, the task will be deleted regardless of whether it was dispatched or not. WARNING: Using this method may have unintended side effects if you are using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method.", - "canonical": true, - "file": "cloud_tasks.create_queue.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateQueue", - "fullName": "google.cloud.tasks.v2.CloudTasks.CreateQueue", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "queue", - "type": ".google.cloud.tasks.v2.Queue" - } - ], - "resultType": ".google.cloud.tasks.v2.Queue", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2.CloudTasksClient" - }, - "method": { - "shortName": "CreateQueue", - "fullName": "google.cloud.tasks.v2.CloudTasks.CreateQueue", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2_generated_CloudTasks_UpdateQueue_async", - "title": "tasks updateQueue Sample", - "origin": "API_DEFINITION", - "description": " Updates a queue. This method creates the queue if it does not exist and updates the queue if it does exist. Queues created with this method allow tasks to live for a maximum of 31 days. After a task is 31 days old, the task will be deleted regardless of whether it was dispatched or not. WARNING: Using this method may have unintended side effects if you are using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method.", - "canonical": true, - "file": "cloud_tasks.update_queue.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateQueue", - "fullName": "google.cloud.tasks.v2.CloudTasks.UpdateQueue", - "async": true, - "parameters": [ - { - "name": "queue", - "type": ".google.cloud.tasks.v2.Queue" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.tasks.v2.Queue", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2.CloudTasksClient" - }, - "method": { - "shortName": "UpdateQueue", - "fullName": "google.cloud.tasks.v2.CloudTasks.UpdateQueue", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2_generated_CloudTasks_DeleteQueue_async", - "title": "tasks deleteQueue Sample", - "origin": "API_DEFINITION", - "description": " Deletes a queue. This command will delete the queue even if it has tasks in it. Note: If you delete a queue, a queue with the same name can't be created for 7 days. WARNING: Using this method may have unintended side effects if you are using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method.", - "canonical": true, - "file": "cloud_tasks.delete_queue.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteQueue", - "fullName": "google.cloud.tasks.v2.CloudTasks.DeleteQueue", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2.CloudTasksClient" - }, - "method": { - "shortName": "DeleteQueue", - "fullName": "google.cloud.tasks.v2.CloudTasks.DeleteQueue", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2_generated_CloudTasks_PurgeQueue_async", - "title": "tasks purgeQueue Sample", - "origin": "API_DEFINITION", - "description": " Purges a queue by deleting all of its tasks. All tasks created before this method is called are permanently deleted. Purge operations can take up to one minute to take effect. Tasks might be dispatched before the purge takes effect. A purge is irreversible.", - "canonical": true, - "file": "cloud_tasks.purge_queue.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PurgeQueue", - "fullName": "google.cloud.tasks.v2.CloudTasks.PurgeQueue", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tasks.v2.Queue", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2.CloudTasksClient" - }, - "method": { - "shortName": "PurgeQueue", - "fullName": "google.cloud.tasks.v2.CloudTasks.PurgeQueue", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2_generated_CloudTasks_PauseQueue_async", - "title": "tasks pauseQueue Sample", - "origin": "API_DEFINITION", - "description": " Pauses the queue. If a queue is paused then the system will stop dispatching tasks until the queue is resumed via [ResumeQueue][google.cloud.tasks.v2.CloudTasks.ResumeQueue]. Tasks can still be added when the queue is paused. A queue is paused if its [state][google.cloud.tasks.v2.Queue.state] is [PAUSED][google.cloud.tasks.v2.Queue.State.PAUSED].", - "canonical": true, - "file": "cloud_tasks.pause_queue.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PauseQueue", - "fullName": "google.cloud.tasks.v2.CloudTasks.PauseQueue", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tasks.v2.Queue", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2.CloudTasksClient" - }, - "method": { - "shortName": "PauseQueue", - "fullName": "google.cloud.tasks.v2.CloudTasks.PauseQueue", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2_generated_CloudTasks_ResumeQueue_async", - "title": "tasks resumeQueue Sample", - "origin": "API_DEFINITION", - "description": " Resume a queue. This method resumes a queue after it has been [PAUSED][google.cloud.tasks.v2.Queue.State.PAUSED] or [DISABLED][google.cloud.tasks.v2.Queue.State.DISABLED]. The state of a queue is stored in the queue's [state][google.cloud.tasks.v2.Queue.state]; after calling this method it will be set to [RUNNING][google.cloud.tasks.v2.Queue.State.RUNNING]. WARNING: Resuming many high-QPS queues at the same time can lead to target overloading. If you are resuming high-QPS queues, follow the 500/50/5 pattern described in [Managing Cloud Tasks Scaling Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling).", - "canonical": true, - "file": "cloud_tasks.resume_queue.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResumeQueue", - "fullName": "google.cloud.tasks.v2.CloudTasks.ResumeQueue", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tasks.v2.Queue", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2.CloudTasksClient" - }, - "method": { - "shortName": "ResumeQueue", - "fullName": "google.cloud.tasks.v2.CloudTasks.ResumeQueue", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2_generated_CloudTasks_GetIamPolicy_async", - "title": "tasks getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a [Queue][google.cloud.tasks.v2.Queue]. Returns an empty policy if the resource exists and does not have a policy set. Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission on the specified resource parent: * `cloudtasks.queues.getIamPolicy`", - "canonical": true, - "file": "cloud_tasks.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.tasks.v2.CloudTasks.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": ".google.iam.v1.GetPolicyOptions" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2.CloudTasksClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.tasks.v2.CloudTasks.GetIamPolicy", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2_generated_CloudTasks_SetIamPolicy_async", - "title": "tasks setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy for a [Queue][google.cloud.tasks.v2.Queue]. Replaces any existing policy. Note: The Cloud Console does not check queue-level IAM permissions yet. Project-level permissions are required to use the Cloud Console. Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission on the specified resource parent: * `cloudtasks.queues.setIamPolicy`", - "canonical": true, - "file": "cloud_tasks.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.tasks.v2.CloudTasks.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.iam.v1.Policy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2.CloudTasksClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.tasks.v2.CloudTasks.SetIamPolicy", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2_generated_CloudTasks_TestIamPermissions_async", - "title": "tasks testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on a [Queue][google.cloud.tasks.v2.Queue]. If the resource does not exist, this will return an empty set of permissions, not a [NOT_FOUND][google.rpc.Code.NOT_FOUND] error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - "canonical": true, - "file": "cloud_tasks.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.tasks.v2.CloudTasks.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "permissions", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.iam.v1.TestIamPermissionsResponse", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2.CloudTasksClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.tasks.v2.CloudTasks.TestIamPermissions", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2_generated_CloudTasks_ListTasks_async", - "title": "tasks listTasks Sample", - "origin": "API_DEFINITION", - "description": " Lists the tasks in a queue. By default, only the [BASIC][google.cloud.tasks.v2.Task.View.BASIC] view is retrieved due to performance considerations; [response_view][google.cloud.tasks.v2.ListTasksRequest.response_view] controls the subset of information which is returned. The tasks may be returned in any order. The ordering may change at any time.", - "canonical": true, - "file": "cloud_tasks.list_tasks.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 88, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTasks", - "fullName": "google.cloud.tasks.v2.CloudTasks.ListTasks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "response_view", - "type": ".google.cloud.tasks.v2.Task.View" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tasks.v2.ListTasksResponse", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2.CloudTasksClient" - }, - "method": { - "shortName": "ListTasks", - "fullName": "google.cloud.tasks.v2.CloudTasks.ListTasks", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2_generated_CloudTasks_GetTask_async", - "title": "tasks getTask Sample", - "origin": "API_DEFINITION", - "description": " Gets a task.", - "canonical": true, - "file": "cloud_tasks.get_task.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTask", - "fullName": "google.cloud.tasks.v2.CloudTasks.GetTask", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "response_view", - "type": ".google.cloud.tasks.v2.Task.View" - } - ], - "resultType": ".google.cloud.tasks.v2.Task", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2.CloudTasksClient" - }, - "method": { - "shortName": "GetTask", - "fullName": "google.cloud.tasks.v2.CloudTasks.GetTask", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2_generated_CloudTasks_CreateTask_async", - "title": "tasks createTask Sample", - "origin": "API_DEFINITION", - "description": " Creates a task and adds it to a queue. Tasks cannot be updated after creation; there is no UpdateTask command. * The maximum task size is 100KB.", - "canonical": true, - "file": "cloud_tasks.create_task.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 100, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTask", - "fullName": "google.cloud.tasks.v2.CloudTasks.CreateTask", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "task", - "type": ".google.cloud.tasks.v2.Task" - }, - { - "name": "response_view", - "type": ".google.cloud.tasks.v2.Task.View" - } - ], - "resultType": ".google.cloud.tasks.v2.Task", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2.CloudTasksClient" - }, - "method": { - "shortName": "CreateTask", - "fullName": "google.cloud.tasks.v2.CloudTasks.CreateTask", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2_generated_CloudTasks_DeleteTask_async", - "title": "tasks deleteTask Sample", - "origin": "API_DEFINITION", - "description": " Deletes a task. A task can be deleted if it is scheduled or dispatched. A task cannot be deleted if it has executed successfully or permanently failed.", - "canonical": true, - "file": "cloud_tasks.delete_task.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTask", - "fullName": "google.cloud.tasks.v2.CloudTasks.DeleteTask", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2.CloudTasksClient" - }, - "method": { - "shortName": "DeleteTask", - "fullName": "google.cloud.tasks.v2.CloudTasks.DeleteTask", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2_generated_CloudTasks_RunTask_async", - "title": "tasks runTask Sample", - "origin": "API_DEFINITION", - "description": " Forces a task to run now. When this method is called, Cloud Tasks will dispatch the task, even if the task is already running, the queue has reached its [RateLimits][google.cloud.tasks.v2.RateLimits] or is [PAUSED][google.cloud.tasks.v2.Queue.State.PAUSED]. This command is meant to be used for manual debugging. For example, [RunTask][google.cloud.tasks.v2.CloudTasks.RunTask] can be used to retry a failed task after a fix has been made or to manually force a task to be dispatched now. The dispatched task is returned. That is, the task that is returned contains the [status][Task.status] after the task is dispatched but before the task is received by its target. If Cloud Tasks receives a successful response from the task's target, then the task will be deleted; otherwise the task's [schedule_time][google.cloud.tasks.v2.Task.schedule_time] will be reset to the time that [RunTask][google.cloud.tasks.v2.CloudTasks.RunTask] was called plus the retry delay specified in the queue's [RetryConfig][google.cloud.tasks.v2.RetryConfig]. [RunTask][google.cloud.tasks.v2.CloudTasks.RunTask] returns [NOT_FOUND][google.rpc.Code.NOT_FOUND] when it is called on a task that has already succeeded or permanently failed.", - "canonical": true, - "file": "cloud_tasks.run_task.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RunTask", - "fullName": "google.cloud.tasks.v2.CloudTasks.RunTask", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "response_view", - "type": ".google.cloud.tasks.v2.Task.View" - } - ], - "resultType": ".google.cloud.tasks.v2.Task", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2.CloudTasksClient" - }, - "method": { - "shortName": "RunTask", - "fullName": "google.cloud.tasks.v2.CloudTasks.RunTask", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2.CloudTasks" - } - } - } - } - ] -} diff --git a/core/packages/gapic-node-processing/test/fixtures/combined-library/google-cloud-tasks-nodejs/tasks-v2beta2-nodejs/samples/generated/v2beta2/snippet_metadata_google.cloud.tasks.v2beta2.json b/core/packages/gapic-node-processing/test/fixtures/combined-library/google-cloud-tasks-nodejs/tasks-v2beta2-nodejs/samples/generated/v2beta2/snippet_metadata_google.cloud.tasks.v2beta2.json deleted file mode 100644 index 6cce7d638c96..000000000000 --- a/core/packages/gapic-node-processing/test/fixtures/combined-library/google-cloud-tasks-nodejs/tasks-v2beta2-nodejs/samples/generated/v2beta2/snippet_metadata_google.cloud.tasks.v2beta2.json +++ /dev/null @@ -1,971 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-tasks", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.tasks.v2beta2", - "version": "v2beta2" - } - ] - }, - "snippets": [ - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_ListQueues_async", - "title": "tasks listQueues Sample", - "origin": "API_DEFINITION", - "description": " Lists queues. Queues are returned in lexicographical order.", - "canonical": true, - "file": "cloud_tasks.list_queues.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 95, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListQueues", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.ListQueues", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.tasks.v2beta2.ListQueuesResponse", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "ListQueues", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.ListQueues", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_GetQueue_async", - "title": "tasks getQueue Sample", - "origin": "API_DEFINITION", - "description": " Gets a queue.", - "canonical": true, - "file": "cloud_tasks.get_queue.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetQueue", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.GetQueue", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.tasks.v2beta2.Queue", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "GetQueue", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.GetQueue", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_CreateQueue_async", - "title": "tasks createQueue Sample", - "origin": "API_DEFINITION", - "description": " Creates a queue. Queues created with this method allow tasks to live for a maximum of 31 days. After a task is 31 days old, the task will be deleted regardless of whether it was dispatched or not. WARNING: Using this method may have unintended side effects if you are using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method.", - "canonical": true, - "file": "cloud_tasks.create_queue.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateQueue", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.CreateQueue", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "queue", - "type": ".google.cloud.tasks.v2beta2.Queue" - } - ], - "resultType": ".google.cloud.tasks.v2beta2.Queue", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "CreateQueue", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.CreateQueue", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_UpdateQueue_async", - "title": "tasks updateQueue Sample", - "origin": "API_DEFINITION", - "description": " Updates a queue. This method creates the queue if it does not exist and updates the queue if it does exist. Queues created with this method allow tasks to live for a maximum of 31 days. After a task is 31 days old, the task will be deleted regardless of whether it was dispatched or not. WARNING: Using this method may have unintended side effects if you are using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method.", - "canonical": true, - "file": "cloud_tasks.update_queue.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateQueue", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.UpdateQueue", - "async": true, - "parameters": [ - { - "name": "queue", - "type": ".google.cloud.tasks.v2beta2.Queue" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.tasks.v2beta2.Queue", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "UpdateQueue", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.UpdateQueue", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_DeleteQueue_async", - "title": "tasks deleteQueue Sample", - "origin": "API_DEFINITION", - "description": " Deletes a queue. This command will delete the queue even if it has tasks in it. Note: If you delete a queue, a queue with the same name can't be created for 7 days. WARNING: Using this method may have unintended side effects if you are using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method.", - "canonical": true, - "file": "cloud_tasks.delete_queue.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteQueue", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.DeleteQueue", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "DeleteQueue", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.DeleteQueue", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_PurgeQueue_async", - "title": "tasks purgeQueue Sample", - "origin": "API_DEFINITION", - "description": " Purges a queue by deleting all of its tasks. All tasks created before this method is called are permanently deleted. Purge operations can take up to one minute to take effect. Tasks might be dispatched before the purge takes effect. A purge is irreversible.", - "canonical": true, - "file": "cloud_tasks.purge_queue.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PurgeQueue", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.PurgeQueue", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tasks.v2beta2.Queue", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "PurgeQueue", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.PurgeQueue", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_PauseQueue_async", - "title": "tasks pauseQueue Sample", - "origin": "API_DEFINITION", - "description": " Pauses the queue. If a queue is paused then the system will stop dispatching tasks until the queue is resumed via [ResumeQueue][google.cloud.tasks.v2beta2.CloudTasks.ResumeQueue]. Tasks can still be added when the queue is paused. A queue is paused if its [state][google.cloud.tasks.v2beta2.Queue.state] is [PAUSED][google.cloud.tasks.v2beta2.Queue.State.PAUSED].", - "canonical": true, - "file": "cloud_tasks.pause_queue.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PauseQueue", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.PauseQueue", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tasks.v2beta2.Queue", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "PauseQueue", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.PauseQueue", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_ResumeQueue_async", - "title": "tasks resumeQueue Sample", - "origin": "API_DEFINITION", - "description": " Resume a queue. This method resumes a queue after it has been [PAUSED][google.cloud.tasks.v2beta2.Queue.State.PAUSED] or [DISABLED][google.cloud.tasks.v2beta2.Queue.State.DISABLED]. The state of a queue is stored in the queue's [state][google.cloud.tasks.v2beta2.Queue.state]; after calling this method it will be set to [RUNNING][google.cloud.tasks.v2beta2.Queue.State.RUNNING]. WARNING: Resuming many high-QPS queues at the same time can lead to target overloading. If you are resuming high-QPS queues, follow the 500/50/5 pattern described in [Managing Cloud Tasks Scaling Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling).", - "canonical": true, - "file": "cloud_tasks.resume_queue.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResumeQueue", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.ResumeQueue", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tasks.v2beta2.Queue", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "ResumeQueue", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.ResumeQueue", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_UploadQueueYaml_async", - "title": "tasks uploadQueueYaml Sample", - "origin": "API_DEFINITION", - "description": " Update queue list by uploading a queue.yaml file. The queue.yaml file is supplied in the request body as a YAML encoded string. This method was added to support gcloud clients versions before 322.0.0. New clients should use CreateQueue instead of this method.", - "canonical": true, - "file": "cloud_tasks.upload_queue_yaml.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UploadQueueYaml", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.UploadQueueYaml", - "async": true, - "parameters": [ - { - "name": "app_id", - "type": "TYPE_STRING" - }, - { - "name": "http_body", - "type": ".google.api.HttpBody" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "UploadQueueYaml", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.UploadQueueYaml", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_GetIamPolicy_async", - "title": "tasks getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a [Queue][google.cloud.tasks.v2beta2.Queue]. Returns an empty policy if the resource exists and does not have a policy set. Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission on the specified resource parent: * `cloudtasks.queues.getIamPolicy`", - "canonical": true, - "file": "cloud_tasks.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": ".google.iam.v1.GetPolicyOptions" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.GetIamPolicy", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_SetIamPolicy_async", - "title": "tasks setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy for a [Queue][google.cloud.tasks.v2beta2.Queue]. Replaces any existing policy. Note: The Cloud Console does not check queue-level IAM permissions yet. Project-level permissions are required to use the Cloud Console. Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission on the specified resource parent: * `cloudtasks.queues.setIamPolicy`", - "canonical": true, - "file": "cloud_tasks.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.iam.v1.Policy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.SetIamPolicy", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_TestIamPermissions_async", - "title": "tasks testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on a [Queue][google.cloud.tasks.v2beta2.Queue]. If the resource does not exist, this will return an empty set of permissions, not a [NOT_FOUND][google.rpc.Code.NOT_FOUND] error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - "canonical": true, - "file": "cloud_tasks.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "permissions", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.iam.v1.TestIamPermissionsResponse", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.TestIamPermissions", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_ListTasks_async", - "title": "tasks listTasks Sample", - "origin": "API_DEFINITION", - "description": " Lists the tasks in a queue. By default, only the [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC] view is retrieved due to performance considerations; [response_view][google.cloud.tasks.v2beta2.ListTasksRequest.response_view] controls the subset of information which is returned. The tasks may be returned in any order. The ordering may change at any time.", - "canonical": true, - "file": "cloud_tasks.list_tasks.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 89, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.ListTasks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "response_view", - "type": ".google.cloud.tasks.v2beta2.Task.View" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tasks.v2beta2.ListTasksResponse", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "ListTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.ListTasks", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_GetTask_async", - "title": "tasks getTask Sample", - "origin": "API_DEFINITION", - "description": " Gets a task.", - "canonical": true, - "file": "cloud_tasks.get_task.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTask", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.GetTask", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "response_view", - "type": ".google.cloud.tasks.v2beta2.Task.View" - } - ], - "resultType": ".google.cloud.tasks.v2beta2.Task", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "GetTask", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.GetTask", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_CreateTask_async", - "title": "tasks createTask Sample", - "origin": "API_DEFINITION", - "description": " Creates a task and adds it to a queue. Tasks cannot be updated after creation; there is no UpdateTask command. * For [App Engine queues][google.cloud.tasks.v2beta2.AppEngineHttpTarget], the maximum task size is 100KB. * For [pull queues][google.cloud.tasks.v2beta2.PullTarget], the maximum task size is 1MB.", - "canonical": true, - "file": "cloud_tasks.create_task.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 101, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTask", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.CreateTask", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "task", - "type": ".google.cloud.tasks.v2beta2.Task" - }, - { - "name": "response_view", - "type": ".google.cloud.tasks.v2beta2.Task.View" - } - ], - "resultType": ".google.cloud.tasks.v2beta2.Task", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "CreateTask", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.CreateTask", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_DeleteTask_async", - "title": "tasks deleteTask Sample", - "origin": "API_DEFINITION", - "description": " Deletes a task. A task can be deleted if it is scheduled or dispatched. A task cannot be deleted if it has completed successfully or permanently failed.", - "canonical": true, - "file": "cloud_tasks.delete_task.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTask", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.DeleteTask", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "DeleteTask", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.DeleteTask", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_LeaseTasks_async", - "title": "tasks leaseTasks Sample", - "origin": "API_DEFINITION", - "description": " Leases tasks from a pull queue for [lease_duration][google.cloud.tasks.v2beta2.LeaseTasksRequest.lease_duration]. This method is invoked by the worker to obtain a lease. The worker must acknowledge the task via [AcknowledgeTask][google.cloud.tasks.v2beta2.CloudTasks.AcknowledgeTask] after they have performed the work associated with the task. The [payload][google.cloud.tasks.v2beta2.PullMessage.payload] is intended to store data that the worker needs to perform the work associated with the task. To return the payloads in the [response][google.cloud.tasks.v2beta2.LeaseTasksResponse], set [response_view][google.cloud.tasks.v2beta2.LeaseTasksRequest.response_view] to [FULL][google.cloud.tasks.v2beta2.Task.View.FULL]. A maximum of 10 qps of [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] requests are allowed per queue. [RESOURCE_EXHAUSTED][google.rpc.Code.RESOURCE_EXHAUSTED] is returned when this limit is exceeded. [RESOURCE_EXHAUSTED][google.rpc.Code.RESOURCE_EXHAUSTED] is also returned when [max_tasks_dispatched_per_second][google.cloud.tasks.v2beta2.RateLimits.max_tasks_dispatched_per_second] is exceeded.", - "canonical": true, - "file": "cloud_tasks.lease_tasks.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 127, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "LeaseTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "max_tasks", - "type": "TYPE_INT32" - }, - { - "name": "lease_duration", - "type": ".google.protobuf.Duration" - }, - { - "name": "response_view", - "type": ".google.cloud.tasks.v2beta2.Task.View" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tasks.v2beta2.LeaseTasksResponse", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "LeaseTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_AcknowledgeTask_async", - "title": "tasks acknowledgeTask Sample", - "origin": "API_DEFINITION", - "description": " Acknowledges a pull task. The worker, that is, the entity that [leased][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] this task must call this method to indicate that the work associated with the task has finished. The worker must acknowledge a task within the [lease_duration][google.cloud.tasks.v2beta2.LeaseTasksRequest.lease_duration] or the lease will expire and the task will become available to be leased again. After the task is acknowledged, it will not be returned by a later [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks], [GetTask][google.cloud.tasks.v2beta2.CloudTasks.GetTask], or [ListTasks][google.cloud.tasks.v2beta2.CloudTasks.ListTasks].", - "canonical": true, - "file": "cloud_tasks.acknowledge_task.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AcknowledgeTask", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.AcknowledgeTask", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "schedule_time", - "type": ".google.protobuf.Timestamp" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "AcknowledgeTask", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.AcknowledgeTask", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_RenewLease_async", - "title": "tasks renewLease Sample", - "origin": "API_DEFINITION", - "description": " Renew the current lease of a pull task. The worker can use this method to extend the lease by a new duration, starting from now. The new task lease will be returned in the task's [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time].", - "canonical": true, - "file": "cloud_tasks.renew_lease.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RenewLease", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.RenewLease", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "schedule_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "lease_duration", - "type": ".google.protobuf.Duration" - }, - { - "name": "response_view", - "type": ".google.cloud.tasks.v2beta2.Task.View" - } - ], - "resultType": ".google.cloud.tasks.v2beta2.Task", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "RenewLease", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.RenewLease", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_CancelLease_async", - "title": "tasks cancelLease Sample", - "origin": "API_DEFINITION", - "description": " Cancel a pull task's lease. The worker can use this method to cancel a task's lease by setting its [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] to now. This will make the task available to be leased to the next caller of [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks].", - "canonical": true, - "file": "cloud_tasks.cancel_lease.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CancelLease", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.CancelLease", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "schedule_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "response_view", - "type": ".google.cloud.tasks.v2beta2.Task.View" - } - ], - "resultType": ".google.cloud.tasks.v2beta2.Task", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "CancelLease", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.CancelLease", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_RunTask_async", - "title": "tasks runTask Sample", - "origin": "API_DEFINITION", - "description": " Forces a task to run now. When this method is called, Cloud Tasks will dispatch the task, even if the task is already running, the queue has reached its [RateLimits][google.cloud.tasks.v2beta2.RateLimits] or is [PAUSED][google.cloud.tasks.v2beta2.Queue.State.PAUSED]. This command is meant to be used for manual debugging. For example, [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] can be used to retry a failed task after a fix has been made or to manually force a task to be dispatched now. The dispatched task is returned. That is, the task that is returned contains the [status][google.cloud.tasks.v2beta2.Task.status] after the task is dispatched but before the task is received by its target. If Cloud Tasks receives a successful response from the task's target, then the task will be deleted; otherwise the task's [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] will be reset to the time that [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] was called plus the retry delay specified in the queue's [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig]. [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] returns [NOT_FOUND][google.rpc.Code.NOT_FOUND] when it is called on a task that has already succeeded or permanently failed. [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] cannot be called on a [pull task][google.cloud.tasks.v2beta2.PullMessage].", - "canonical": true, - "file": "cloud_tasks.run_task.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RunTask", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.RunTask", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "response_view", - "type": ".google.cloud.tasks.v2beta2.Task.View" - } - ], - "resultType": ".google.cloud.tasks.v2beta2.Task", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "RunTask", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.RunTask", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - } - ] -} diff --git a/core/packages/gapic-node-processing/test/fixtures/combined-library/google-cloud-tasks/samples/generated/v2/snippet_metadata_google.cloud.tasks.v2.json b/core/packages/gapic-node-processing/test/fixtures/combined-library/google-cloud-tasks/samples/generated/v2/snippet_metadata_google.cloud.tasks.v2.json deleted file mode 100644 index f8320985590c..000000000000 --- a/core/packages/gapic-node-processing/test/fixtures/combined-library/google-cloud-tasks/samples/generated/v2/snippet_metadata_google.cloud.tasks.v2.json +++ /dev/null @@ -1,719 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-tasks", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.tasks.v2", - "version": "v2" - } - ] - }, - "snippets": [ - { - "regionTag": "cloudtasks_v2_generated_CloudTasks_ListQueues_async", - "title": "tasks listQueues Sample", - "origin": "API_DEFINITION", - "description": " Lists queues. Queues are returned in lexicographical order.", - "canonical": true, - "file": "cloud_tasks.list_queues.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 88, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListQueues", - "fullName": "google.cloud.tasks.v2.CloudTasks.ListQueues", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tasks.v2.ListQueuesResponse", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2.CloudTasksClient" - }, - "method": { - "shortName": "ListQueues", - "fullName": "google.cloud.tasks.v2.CloudTasks.ListQueues", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2_generated_CloudTasks_GetQueue_async", - "title": "tasks getQueue Sample", - "origin": "API_DEFINITION", - "description": " Gets a queue.", - "canonical": true, - "file": "cloud_tasks.get_queue.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetQueue", - "fullName": "google.cloud.tasks.v2.CloudTasks.GetQueue", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tasks.v2.Queue", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2.CloudTasksClient" - }, - "method": { - "shortName": "GetQueue", - "fullName": "google.cloud.tasks.v2.CloudTasks.GetQueue", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2_generated_CloudTasks_CreateQueue_async", - "title": "tasks createQueue Sample", - "origin": "API_DEFINITION", - "description": " Creates a queue. Queues created with this method allow tasks to live for a maximum of 31 days. After a task is 31 days old, the task will be deleted regardless of whether it was dispatched or not. WARNING: Using this method may have unintended side effects if you are using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method.", - "canonical": true, - "file": "cloud_tasks.create_queue.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateQueue", - "fullName": "google.cloud.tasks.v2.CloudTasks.CreateQueue", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "queue", - "type": ".google.cloud.tasks.v2.Queue" - } - ], - "resultType": ".google.cloud.tasks.v2.Queue", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2.CloudTasksClient" - }, - "method": { - "shortName": "CreateQueue", - "fullName": "google.cloud.tasks.v2.CloudTasks.CreateQueue", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2_generated_CloudTasks_UpdateQueue_async", - "title": "tasks updateQueue Sample", - "origin": "API_DEFINITION", - "description": " Updates a queue. This method creates the queue if it does not exist and updates the queue if it does exist. Queues created with this method allow tasks to live for a maximum of 31 days. After a task is 31 days old, the task will be deleted regardless of whether it was dispatched or not. WARNING: Using this method may have unintended side effects if you are using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method.", - "canonical": true, - "file": "cloud_tasks.update_queue.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateQueue", - "fullName": "google.cloud.tasks.v2.CloudTasks.UpdateQueue", - "async": true, - "parameters": [ - { - "name": "queue", - "type": ".google.cloud.tasks.v2.Queue" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.tasks.v2.Queue", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2.CloudTasksClient" - }, - "method": { - "shortName": "UpdateQueue", - "fullName": "google.cloud.tasks.v2.CloudTasks.UpdateQueue", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2_generated_CloudTasks_DeleteQueue_async", - "title": "tasks deleteQueue Sample", - "origin": "API_DEFINITION", - "description": " Deletes a queue. This command will delete the queue even if it has tasks in it. Note: If you delete a queue, a queue with the same name can't be created for 7 days. WARNING: Using this method may have unintended side effects if you are using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method.", - "canonical": true, - "file": "cloud_tasks.delete_queue.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteQueue", - "fullName": "google.cloud.tasks.v2.CloudTasks.DeleteQueue", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2.CloudTasksClient" - }, - "method": { - "shortName": "DeleteQueue", - "fullName": "google.cloud.tasks.v2.CloudTasks.DeleteQueue", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2_generated_CloudTasks_PurgeQueue_async", - "title": "tasks purgeQueue Sample", - "origin": "API_DEFINITION", - "description": " Purges a queue by deleting all of its tasks. All tasks created before this method is called are permanently deleted. Purge operations can take up to one minute to take effect. Tasks might be dispatched before the purge takes effect. A purge is irreversible.", - "canonical": true, - "file": "cloud_tasks.purge_queue.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PurgeQueue", - "fullName": "google.cloud.tasks.v2.CloudTasks.PurgeQueue", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tasks.v2.Queue", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2.CloudTasksClient" - }, - "method": { - "shortName": "PurgeQueue", - "fullName": "google.cloud.tasks.v2.CloudTasks.PurgeQueue", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2_generated_CloudTasks_PauseQueue_async", - "title": "tasks pauseQueue Sample", - "origin": "API_DEFINITION", - "description": " Pauses the queue. If a queue is paused then the system will stop dispatching tasks until the queue is resumed via [ResumeQueue][google.cloud.tasks.v2.CloudTasks.ResumeQueue]. Tasks can still be added when the queue is paused. A queue is paused if its [state][google.cloud.tasks.v2.Queue.state] is [PAUSED][google.cloud.tasks.v2.Queue.State.PAUSED].", - "canonical": true, - "file": "cloud_tasks.pause_queue.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PauseQueue", - "fullName": "google.cloud.tasks.v2.CloudTasks.PauseQueue", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tasks.v2.Queue", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2.CloudTasksClient" - }, - "method": { - "shortName": "PauseQueue", - "fullName": "google.cloud.tasks.v2.CloudTasks.PauseQueue", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2_generated_CloudTasks_ResumeQueue_async", - "title": "tasks resumeQueue Sample", - "origin": "API_DEFINITION", - "description": " Resume a queue. This method resumes a queue after it has been [PAUSED][google.cloud.tasks.v2.Queue.State.PAUSED] or [DISABLED][google.cloud.tasks.v2.Queue.State.DISABLED]. The state of a queue is stored in the queue's [state][google.cloud.tasks.v2.Queue.state]; after calling this method it will be set to [RUNNING][google.cloud.tasks.v2.Queue.State.RUNNING]. WARNING: Resuming many high-QPS queues at the same time can lead to target overloading. If you are resuming high-QPS queues, follow the 500/50/5 pattern described in [Managing Cloud Tasks Scaling Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling).", - "canonical": true, - "file": "cloud_tasks.resume_queue.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResumeQueue", - "fullName": "google.cloud.tasks.v2.CloudTasks.ResumeQueue", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tasks.v2.Queue", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2.CloudTasksClient" - }, - "method": { - "shortName": "ResumeQueue", - "fullName": "google.cloud.tasks.v2.CloudTasks.ResumeQueue", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2_generated_CloudTasks_GetIamPolicy_async", - "title": "tasks getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a [Queue][google.cloud.tasks.v2.Queue]. Returns an empty policy if the resource exists and does not have a policy set. Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission on the specified resource parent: * `cloudtasks.queues.getIamPolicy`", - "canonical": true, - "file": "cloud_tasks.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.tasks.v2.CloudTasks.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": ".google.iam.v1.GetPolicyOptions" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2.CloudTasksClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.tasks.v2.CloudTasks.GetIamPolicy", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2_generated_CloudTasks_SetIamPolicy_async", - "title": "tasks setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy for a [Queue][google.cloud.tasks.v2.Queue]. Replaces any existing policy. Note: The Cloud Console does not check queue-level IAM permissions yet. Project-level permissions are required to use the Cloud Console. Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission on the specified resource parent: * `cloudtasks.queues.setIamPolicy`", - "canonical": true, - "file": "cloud_tasks.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.tasks.v2.CloudTasks.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.iam.v1.Policy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2.CloudTasksClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.tasks.v2.CloudTasks.SetIamPolicy", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2_generated_CloudTasks_TestIamPermissions_async", - "title": "tasks testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on a [Queue][google.cloud.tasks.v2.Queue]. If the resource does not exist, this will return an empty set of permissions, not a [NOT_FOUND][google.rpc.Code.NOT_FOUND] error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - "canonical": true, - "file": "cloud_tasks.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.tasks.v2.CloudTasks.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "permissions", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.iam.v1.TestIamPermissionsResponse", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2.CloudTasksClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.tasks.v2.CloudTasks.TestIamPermissions", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2_generated_CloudTasks_ListTasks_async", - "title": "tasks listTasks Sample", - "origin": "API_DEFINITION", - "description": " Lists the tasks in a queue. By default, only the [BASIC][google.cloud.tasks.v2.Task.View.BASIC] view is retrieved due to performance considerations; [response_view][google.cloud.tasks.v2.ListTasksRequest.response_view] controls the subset of information which is returned. The tasks may be returned in any order. The ordering may change at any time.", - "canonical": true, - "file": "cloud_tasks.list_tasks.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 88, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTasks", - "fullName": "google.cloud.tasks.v2.CloudTasks.ListTasks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "response_view", - "type": ".google.cloud.tasks.v2.Task.View" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tasks.v2.ListTasksResponse", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2.CloudTasksClient" - }, - "method": { - "shortName": "ListTasks", - "fullName": "google.cloud.tasks.v2.CloudTasks.ListTasks", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2_generated_CloudTasks_GetTask_async", - "title": "tasks getTask Sample", - "origin": "API_DEFINITION", - "description": " Gets a task.", - "canonical": true, - "file": "cloud_tasks.get_task.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTask", - "fullName": "google.cloud.tasks.v2.CloudTasks.GetTask", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "response_view", - "type": ".google.cloud.tasks.v2.Task.View" - } - ], - "resultType": ".google.cloud.tasks.v2.Task", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2.CloudTasksClient" - }, - "method": { - "shortName": "GetTask", - "fullName": "google.cloud.tasks.v2.CloudTasks.GetTask", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2_generated_CloudTasks_CreateTask_async", - "title": "tasks createTask Sample", - "origin": "API_DEFINITION", - "description": " Creates a task and adds it to a queue. Tasks cannot be updated after creation; there is no UpdateTask command. * The maximum task size is 100KB.", - "canonical": true, - "file": "cloud_tasks.create_task.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 100, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTask", - "fullName": "google.cloud.tasks.v2.CloudTasks.CreateTask", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "task", - "type": ".google.cloud.tasks.v2.Task" - }, - { - "name": "response_view", - "type": ".google.cloud.tasks.v2.Task.View" - } - ], - "resultType": ".google.cloud.tasks.v2.Task", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2.CloudTasksClient" - }, - "method": { - "shortName": "CreateTask", - "fullName": "google.cloud.tasks.v2.CloudTasks.CreateTask", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2_generated_CloudTasks_DeleteTask_async", - "title": "tasks deleteTask Sample", - "origin": "API_DEFINITION", - "description": " Deletes a task. A task can be deleted if it is scheduled or dispatched. A task cannot be deleted if it has executed successfully or permanently failed.", - "canonical": true, - "file": "cloud_tasks.delete_task.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTask", - "fullName": "google.cloud.tasks.v2.CloudTasks.DeleteTask", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2.CloudTasksClient" - }, - "method": { - "shortName": "DeleteTask", - "fullName": "google.cloud.tasks.v2.CloudTasks.DeleteTask", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2_generated_CloudTasks_RunTask_async", - "title": "tasks runTask Sample", - "origin": "API_DEFINITION", - "description": " Forces a task to run now. When this method is called, Cloud Tasks will dispatch the task, even if the task is already running, the queue has reached its [RateLimits][google.cloud.tasks.v2.RateLimits] or is [PAUSED][google.cloud.tasks.v2.Queue.State.PAUSED]. This command is meant to be used for manual debugging. For example, [RunTask][google.cloud.tasks.v2.CloudTasks.RunTask] can be used to retry a failed task after a fix has been made or to manually force a task to be dispatched now. The dispatched task is returned. That is, the task that is returned contains the [status][Task.status] after the task is dispatched but before the task is received by its target. If Cloud Tasks receives a successful response from the task's target, then the task will be deleted; otherwise the task's [schedule_time][google.cloud.tasks.v2.Task.schedule_time] will be reset to the time that [RunTask][google.cloud.tasks.v2.CloudTasks.RunTask] was called plus the retry delay specified in the queue's [RetryConfig][google.cloud.tasks.v2.RetryConfig]. [RunTask][google.cloud.tasks.v2.CloudTasks.RunTask] returns [NOT_FOUND][google.rpc.Code.NOT_FOUND] when it is called on a task that has already succeeded or permanently failed.", - "canonical": true, - "file": "cloud_tasks.run_task.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RunTask", - "fullName": "google.cloud.tasks.v2.CloudTasks.RunTask", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "response_view", - "type": ".google.cloud.tasks.v2.Task.View" - } - ], - "resultType": ".google.cloud.tasks.v2.Task", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2.CloudTasksClient" - }, - "method": { - "shortName": "RunTask", - "fullName": "google.cloud.tasks.v2.CloudTasks.RunTask", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2.CloudTasks" - } - } - } - } - ] -} diff --git a/core/packages/gapic-node-processing/test/fixtures/combined-library/google-cloud-tasks/samples/generated/v2beta2/snippet_metadata_google.cloud.tasks.v2beta2.json b/core/packages/gapic-node-processing/test/fixtures/combined-library/google-cloud-tasks/samples/generated/v2beta2/snippet_metadata_google.cloud.tasks.v2beta2.json deleted file mode 100644 index 6cce7d638c96..000000000000 --- a/core/packages/gapic-node-processing/test/fixtures/combined-library/google-cloud-tasks/samples/generated/v2beta2/snippet_metadata_google.cloud.tasks.v2beta2.json +++ /dev/null @@ -1,971 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-tasks", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.tasks.v2beta2", - "version": "v2beta2" - } - ] - }, - "snippets": [ - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_ListQueues_async", - "title": "tasks listQueues Sample", - "origin": "API_DEFINITION", - "description": " Lists queues. Queues are returned in lexicographical order.", - "canonical": true, - "file": "cloud_tasks.list_queues.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 95, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListQueues", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.ListQueues", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.tasks.v2beta2.ListQueuesResponse", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "ListQueues", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.ListQueues", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_GetQueue_async", - "title": "tasks getQueue Sample", - "origin": "API_DEFINITION", - "description": " Gets a queue.", - "canonical": true, - "file": "cloud_tasks.get_queue.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetQueue", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.GetQueue", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.tasks.v2beta2.Queue", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "GetQueue", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.GetQueue", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_CreateQueue_async", - "title": "tasks createQueue Sample", - "origin": "API_DEFINITION", - "description": " Creates a queue. Queues created with this method allow tasks to live for a maximum of 31 days. After a task is 31 days old, the task will be deleted regardless of whether it was dispatched or not. WARNING: Using this method may have unintended side effects if you are using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method.", - "canonical": true, - "file": "cloud_tasks.create_queue.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateQueue", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.CreateQueue", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "queue", - "type": ".google.cloud.tasks.v2beta2.Queue" - } - ], - "resultType": ".google.cloud.tasks.v2beta2.Queue", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "CreateQueue", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.CreateQueue", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_UpdateQueue_async", - "title": "tasks updateQueue Sample", - "origin": "API_DEFINITION", - "description": " Updates a queue. This method creates the queue if it does not exist and updates the queue if it does exist. Queues created with this method allow tasks to live for a maximum of 31 days. After a task is 31 days old, the task will be deleted regardless of whether it was dispatched or not. WARNING: Using this method may have unintended side effects if you are using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method.", - "canonical": true, - "file": "cloud_tasks.update_queue.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateQueue", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.UpdateQueue", - "async": true, - "parameters": [ - { - "name": "queue", - "type": ".google.cloud.tasks.v2beta2.Queue" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.tasks.v2beta2.Queue", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "UpdateQueue", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.UpdateQueue", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_DeleteQueue_async", - "title": "tasks deleteQueue Sample", - "origin": "API_DEFINITION", - "description": " Deletes a queue. This command will delete the queue even if it has tasks in it. Note: If you delete a queue, a queue with the same name can't be created for 7 days. WARNING: Using this method may have unintended side effects if you are using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method.", - "canonical": true, - "file": "cloud_tasks.delete_queue.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteQueue", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.DeleteQueue", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "DeleteQueue", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.DeleteQueue", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_PurgeQueue_async", - "title": "tasks purgeQueue Sample", - "origin": "API_DEFINITION", - "description": " Purges a queue by deleting all of its tasks. All tasks created before this method is called are permanently deleted. Purge operations can take up to one minute to take effect. Tasks might be dispatched before the purge takes effect. A purge is irreversible.", - "canonical": true, - "file": "cloud_tasks.purge_queue.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PurgeQueue", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.PurgeQueue", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tasks.v2beta2.Queue", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "PurgeQueue", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.PurgeQueue", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_PauseQueue_async", - "title": "tasks pauseQueue Sample", - "origin": "API_DEFINITION", - "description": " Pauses the queue. If a queue is paused then the system will stop dispatching tasks until the queue is resumed via [ResumeQueue][google.cloud.tasks.v2beta2.CloudTasks.ResumeQueue]. Tasks can still be added when the queue is paused. A queue is paused if its [state][google.cloud.tasks.v2beta2.Queue.state] is [PAUSED][google.cloud.tasks.v2beta2.Queue.State.PAUSED].", - "canonical": true, - "file": "cloud_tasks.pause_queue.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PauseQueue", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.PauseQueue", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tasks.v2beta2.Queue", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "PauseQueue", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.PauseQueue", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_ResumeQueue_async", - "title": "tasks resumeQueue Sample", - "origin": "API_DEFINITION", - "description": " Resume a queue. This method resumes a queue after it has been [PAUSED][google.cloud.tasks.v2beta2.Queue.State.PAUSED] or [DISABLED][google.cloud.tasks.v2beta2.Queue.State.DISABLED]. The state of a queue is stored in the queue's [state][google.cloud.tasks.v2beta2.Queue.state]; after calling this method it will be set to [RUNNING][google.cloud.tasks.v2beta2.Queue.State.RUNNING]. WARNING: Resuming many high-QPS queues at the same time can lead to target overloading. If you are resuming high-QPS queues, follow the 500/50/5 pattern described in [Managing Cloud Tasks Scaling Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling).", - "canonical": true, - "file": "cloud_tasks.resume_queue.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResumeQueue", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.ResumeQueue", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tasks.v2beta2.Queue", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "ResumeQueue", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.ResumeQueue", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_UploadQueueYaml_async", - "title": "tasks uploadQueueYaml Sample", - "origin": "API_DEFINITION", - "description": " Update queue list by uploading a queue.yaml file. The queue.yaml file is supplied in the request body as a YAML encoded string. This method was added to support gcloud clients versions before 322.0.0. New clients should use CreateQueue instead of this method.", - "canonical": true, - "file": "cloud_tasks.upload_queue_yaml.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UploadQueueYaml", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.UploadQueueYaml", - "async": true, - "parameters": [ - { - "name": "app_id", - "type": "TYPE_STRING" - }, - { - "name": "http_body", - "type": ".google.api.HttpBody" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "UploadQueueYaml", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.UploadQueueYaml", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_GetIamPolicy_async", - "title": "tasks getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a [Queue][google.cloud.tasks.v2beta2.Queue]. Returns an empty policy if the resource exists and does not have a policy set. Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission on the specified resource parent: * `cloudtasks.queues.getIamPolicy`", - "canonical": true, - "file": "cloud_tasks.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": ".google.iam.v1.GetPolicyOptions" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.GetIamPolicy", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_SetIamPolicy_async", - "title": "tasks setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy for a [Queue][google.cloud.tasks.v2beta2.Queue]. Replaces any existing policy. Note: The Cloud Console does not check queue-level IAM permissions yet. Project-level permissions are required to use the Cloud Console. Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission on the specified resource parent: * `cloudtasks.queues.setIamPolicy`", - "canonical": true, - "file": "cloud_tasks.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.iam.v1.Policy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.SetIamPolicy", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_TestIamPermissions_async", - "title": "tasks testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on a [Queue][google.cloud.tasks.v2beta2.Queue]. If the resource does not exist, this will return an empty set of permissions, not a [NOT_FOUND][google.rpc.Code.NOT_FOUND] error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - "canonical": true, - "file": "cloud_tasks.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "permissions", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.iam.v1.TestIamPermissionsResponse", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.TestIamPermissions", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_ListTasks_async", - "title": "tasks listTasks Sample", - "origin": "API_DEFINITION", - "description": " Lists the tasks in a queue. By default, only the [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC] view is retrieved due to performance considerations; [response_view][google.cloud.tasks.v2beta2.ListTasksRequest.response_view] controls the subset of information which is returned. The tasks may be returned in any order. The ordering may change at any time.", - "canonical": true, - "file": "cloud_tasks.list_tasks.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 89, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.ListTasks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "response_view", - "type": ".google.cloud.tasks.v2beta2.Task.View" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tasks.v2beta2.ListTasksResponse", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "ListTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.ListTasks", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_GetTask_async", - "title": "tasks getTask Sample", - "origin": "API_DEFINITION", - "description": " Gets a task.", - "canonical": true, - "file": "cloud_tasks.get_task.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTask", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.GetTask", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "response_view", - "type": ".google.cloud.tasks.v2beta2.Task.View" - } - ], - "resultType": ".google.cloud.tasks.v2beta2.Task", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "GetTask", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.GetTask", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_CreateTask_async", - "title": "tasks createTask Sample", - "origin": "API_DEFINITION", - "description": " Creates a task and adds it to a queue. Tasks cannot be updated after creation; there is no UpdateTask command. * For [App Engine queues][google.cloud.tasks.v2beta2.AppEngineHttpTarget], the maximum task size is 100KB. * For [pull queues][google.cloud.tasks.v2beta2.PullTarget], the maximum task size is 1MB.", - "canonical": true, - "file": "cloud_tasks.create_task.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 101, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTask", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.CreateTask", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "task", - "type": ".google.cloud.tasks.v2beta2.Task" - }, - { - "name": "response_view", - "type": ".google.cloud.tasks.v2beta2.Task.View" - } - ], - "resultType": ".google.cloud.tasks.v2beta2.Task", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "CreateTask", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.CreateTask", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_DeleteTask_async", - "title": "tasks deleteTask Sample", - "origin": "API_DEFINITION", - "description": " Deletes a task. A task can be deleted if it is scheduled or dispatched. A task cannot be deleted if it has completed successfully or permanently failed.", - "canonical": true, - "file": "cloud_tasks.delete_task.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTask", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.DeleteTask", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "DeleteTask", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.DeleteTask", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_LeaseTasks_async", - "title": "tasks leaseTasks Sample", - "origin": "API_DEFINITION", - "description": " Leases tasks from a pull queue for [lease_duration][google.cloud.tasks.v2beta2.LeaseTasksRequest.lease_duration]. This method is invoked by the worker to obtain a lease. The worker must acknowledge the task via [AcknowledgeTask][google.cloud.tasks.v2beta2.CloudTasks.AcknowledgeTask] after they have performed the work associated with the task. The [payload][google.cloud.tasks.v2beta2.PullMessage.payload] is intended to store data that the worker needs to perform the work associated with the task. To return the payloads in the [response][google.cloud.tasks.v2beta2.LeaseTasksResponse], set [response_view][google.cloud.tasks.v2beta2.LeaseTasksRequest.response_view] to [FULL][google.cloud.tasks.v2beta2.Task.View.FULL]. A maximum of 10 qps of [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] requests are allowed per queue. [RESOURCE_EXHAUSTED][google.rpc.Code.RESOURCE_EXHAUSTED] is returned when this limit is exceeded. [RESOURCE_EXHAUSTED][google.rpc.Code.RESOURCE_EXHAUSTED] is also returned when [max_tasks_dispatched_per_second][google.cloud.tasks.v2beta2.RateLimits.max_tasks_dispatched_per_second] is exceeded.", - "canonical": true, - "file": "cloud_tasks.lease_tasks.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 127, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "LeaseTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "max_tasks", - "type": "TYPE_INT32" - }, - { - "name": "lease_duration", - "type": ".google.protobuf.Duration" - }, - { - "name": "response_view", - "type": ".google.cloud.tasks.v2beta2.Task.View" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tasks.v2beta2.LeaseTasksResponse", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "LeaseTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_AcknowledgeTask_async", - "title": "tasks acknowledgeTask Sample", - "origin": "API_DEFINITION", - "description": " Acknowledges a pull task. The worker, that is, the entity that [leased][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] this task must call this method to indicate that the work associated with the task has finished. The worker must acknowledge a task within the [lease_duration][google.cloud.tasks.v2beta2.LeaseTasksRequest.lease_duration] or the lease will expire and the task will become available to be leased again. After the task is acknowledged, it will not be returned by a later [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks], [GetTask][google.cloud.tasks.v2beta2.CloudTasks.GetTask], or [ListTasks][google.cloud.tasks.v2beta2.CloudTasks.ListTasks].", - "canonical": true, - "file": "cloud_tasks.acknowledge_task.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AcknowledgeTask", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.AcknowledgeTask", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "schedule_time", - "type": ".google.protobuf.Timestamp" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "AcknowledgeTask", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.AcknowledgeTask", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_RenewLease_async", - "title": "tasks renewLease Sample", - "origin": "API_DEFINITION", - "description": " Renew the current lease of a pull task. The worker can use this method to extend the lease by a new duration, starting from now. The new task lease will be returned in the task's [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time].", - "canonical": true, - "file": "cloud_tasks.renew_lease.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RenewLease", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.RenewLease", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "schedule_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "lease_duration", - "type": ".google.protobuf.Duration" - }, - { - "name": "response_view", - "type": ".google.cloud.tasks.v2beta2.Task.View" - } - ], - "resultType": ".google.cloud.tasks.v2beta2.Task", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "RenewLease", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.RenewLease", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_CancelLease_async", - "title": "tasks cancelLease Sample", - "origin": "API_DEFINITION", - "description": " Cancel a pull task's lease. The worker can use this method to cancel a task's lease by setting its [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] to now. This will make the task available to be leased to the next caller of [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks].", - "canonical": true, - "file": "cloud_tasks.cancel_lease.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CancelLease", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.CancelLease", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "schedule_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "response_view", - "type": ".google.cloud.tasks.v2beta2.Task.View" - } - ], - "resultType": ".google.cloud.tasks.v2beta2.Task", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "CancelLease", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.CancelLease", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_RunTask_async", - "title": "tasks runTask Sample", - "origin": "API_DEFINITION", - "description": " Forces a task to run now. When this method is called, Cloud Tasks will dispatch the task, even if the task is already running, the queue has reached its [RateLimits][google.cloud.tasks.v2beta2.RateLimits] or is [PAUSED][google.cloud.tasks.v2beta2.Queue.State.PAUSED]. This command is meant to be used for manual debugging. For example, [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] can be used to retry a failed task after a fix has been made or to manually force a task to be dispatched now. The dispatched task is returned. That is, the task that is returned contains the [status][google.cloud.tasks.v2beta2.Task.status] after the task is dispatched but before the task is received by its target. If Cloud Tasks receives a successful response from the task's target, then the task will be deleted; otherwise the task's [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] will be reset to the time that [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] was called plus the retry delay specified in the queue's [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig]. [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] returns [NOT_FOUND][google.rpc.Code.NOT_FOUND] when it is called on a task that has already succeeded or permanently failed. [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] cannot be called on a [pull task][google.cloud.tasks.v2beta2.PullMessage].", - "canonical": true, - "file": "cloud_tasks.run_task.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RunTask", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.RunTask", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "response_view", - "type": ".google.cloud.tasks.v2beta2.Task.View" - } - ], - "resultType": ".google.cloud.tasks.v2beta2.Task", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "RunTask", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.RunTask", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - } - ] -} diff --git a/handwritten/bigquery-storage/samples/generated/v1/snippet_metadata.google.cloud.bigquery.storage.v1.json b/handwritten/bigquery-storage/samples/generated/v1/snippet_metadata.google.cloud.bigquery.storage.v1.json deleted file mode 100644 index a02b7e548cbb..000000000000 --- a/handwritten/bigquery-storage/samples/generated/v1/snippet_metadata.google.cloud.bigquery.storage.v1.json +++ /dev/null @@ -1,427 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-storage", - "version": "5.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.bigquery.storage.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "bigquerystorage_v1_generated_BigQueryRead_CreateReadSession_async", - "title": "BigQueryRead createReadSession Sample", - "origin": "API_DEFINITION", - "description": " Creates a new read session. A read session divides the contents of a BigQuery table into one or more streams, which can then be used to read data from the table. The read session also specifies properties of the data to be read, such as a list of columns or a push-down filter describing the rows to be returned. A particular row can be read by at most one stream. When the caller has reached the end of each stream in the session, then all the data in the table has been read. Data is assigned to each stream such that roughly the same number of rows can be read from each stream. Because the server-side unit for assigning data is collections of rows, the API does not guarantee that each stream will return the same number or rows. Additionally, the limits are enforced based on the number of pre-filtered rows, so some filters can lead to lopsided assignments. Read sessions automatically expire 6 hours after they are created and do not require manual clean-up by the caller.", - "canonical": true, - "file": "big_query_read.create_read_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateReadSession", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryRead.CreateReadSession", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "read_session", - "type": ".google.cloud.bigquery.storage.v1.ReadSession" - }, - { - "name": "max_stream_count", - "type": "TYPE_INT32" - }, - { - "name": "preferred_min_stream_count", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.bigquery.storage.v1.ReadSession", - "client": { - "shortName": "BigQueryReadClient", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryReadClient" - }, - "method": { - "shortName": "CreateReadSession", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryRead.CreateReadSession", - "service": { - "shortName": "BigQueryRead", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryRead" - } - } - } - }, - { - "regionTag": "bigquerystorage_v1_generated_BigQueryRead_ReadRows_async", - "title": "BigQueryRead readRows Sample", - "origin": "API_DEFINITION", - "description": " Reads rows from the stream in the format prescribed by the ReadSession. Each response contains one or more table rows, up to a maximum of 100 MiB per response; read requests which attempt to read individual rows larger than 100 MiB will fail. Each request also returns a set of stream statistics reflecting the current state of the stream.", - "canonical": true, - "file": "big_query_read.read_rows.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReadRows", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryRead.ReadRows", - "async": true, - "parameters": [ - { - "name": "read_stream", - "type": "TYPE_STRING" - }, - { - "name": "offset", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.bigquery.storage.v1.ReadRowsResponse", - "client": { - "shortName": "BigQueryReadClient", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryReadClient" - }, - "method": { - "shortName": "ReadRows", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryRead.ReadRows", - "service": { - "shortName": "BigQueryRead", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryRead" - } - } - } - }, - { - "regionTag": "bigquerystorage_v1_generated_BigQueryRead_SplitReadStream_async", - "title": "BigQueryRead splitReadStream Sample", - "origin": "API_DEFINITION", - "description": " Splits a given `ReadStream` into two `ReadStream` objects. These `ReadStream` objects are referred to as the primary and the residual streams of the split. The original `ReadStream` can still be read from in the same manner as before. Both of the returned `ReadStream` objects can also be read from, and the rows returned by both child streams will be the same as the rows read from the original stream. Moreover, the two child streams will be allocated back-to-back in the original `ReadStream`. Concretely, it is guaranteed that for streams original, primary, and residual, that original[0-j] = primary[0-j] and original[j-n] = residual[0-m] once the streams have been read to completion.", - "canonical": true, - "file": "big_query_read.split_read_stream.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SplitReadStream", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryRead.SplitReadStream", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "fraction", - "type": "TYPE_DOUBLE" - } - ], - "resultType": ".google.cloud.bigquery.storage.v1.SplitReadStreamResponse", - "client": { - "shortName": "BigQueryReadClient", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryReadClient" - }, - "method": { - "shortName": "SplitReadStream", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryRead.SplitReadStream", - "service": { - "shortName": "BigQueryRead", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryRead" - } - } - } - }, - { - "regionTag": "bigquerystorage_v1_generated_BigQueryWrite_CreateWriteStream_async", - "title": "BigQueryRead createWriteStream Sample", - "origin": "API_DEFINITION", - "description": " Creates a write stream to the given table. Additionally, every table has a special stream named '_default' to which data can be written. This stream doesn't need to be created using CreateWriteStream. It is a stream that can be used simultaneously by any number of clients. Data written to this stream is considered committed as soon as an acknowledgement is received.", - "canonical": true, - "file": "big_query_write.create_write_stream.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateWriteStream", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryWrite.CreateWriteStream", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "write_stream", - "type": ".google.cloud.bigquery.storage.v1.WriteStream" - } - ], - "resultType": ".google.cloud.bigquery.storage.v1.WriteStream", - "client": { - "shortName": "BigQueryWriteClient", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryWriteClient" - }, - "method": { - "shortName": "CreateWriteStream", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryWrite.CreateWriteStream", - "service": { - "shortName": "BigQueryWrite", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryWrite" - } - } - } - }, - { - "regionTag": "bigquerystorage_v1_generated_BigQueryWrite_AppendRows_async", - "title": "BigQueryRead appendRows Sample", - "origin": "API_DEFINITION", - "description": " Appends data to the given stream. If `offset` is specified, the `offset` is checked against the end of stream. The server returns `OUT_OF_RANGE` in `AppendRowsResponse` if an attempt is made to append to an offset beyond the current end of the stream or `ALREADY_EXISTS` if user provides an `offset` that has already been written to. User can retry with adjusted offset within the same RPC connection. If `offset` is not specified, append happens at the end of the stream. The response contains an optional offset at which the append happened. No offset information will be returned for appends to a default stream. Responses are received in the same order in which requests are sent. There will be one response for each successful inserted request. Responses may optionally embed error information if the originating AppendRequest was not successfully processed. The specifics of when successfully appended data is made visible to the table are governed by the type of stream: * For COMMITTED streams (which includes the default stream), data is visible immediately upon successful append. * For BUFFERED streams, data is made visible via a subsequent `FlushRows` rpc which advances a cursor to a newer offset in the stream. * For PENDING streams, data is not made visible until the stream itself is finalized (via the `FinalizeWriteStream` rpc), and the stream is explicitly committed via the `BatchCommitWriteStreams` rpc.", - "canonical": true, - "file": "big_query_write.append_rows.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 97, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AppendRows", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryWrite.AppendRows", - "async": true, - "parameters": [ - { - "name": "write_stream", - "type": "TYPE_STRING" - }, - { - "name": "offset", - "type": ".google.protobuf.Int64Value" - }, - { - "name": "proto_rows", - "type": ".google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData" - }, - { - "name": "trace_id", - "type": "TYPE_STRING" - }, - { - "name": "missing_value_interpretations", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.bigquery.storage.v1.AppendRowsResponse", - "client": { - "shortName": "BigQueryWriteClient", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryWriteClient" - }, - "method": { - "shortName": "AppendRows", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryWrite.AppendRows", - "service": { - "shortName": "BigQueryWrite", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryWrite" - } - } - } - }, - { - "regionTag": "bigquerystorage_v1_generated_BigQueryWrite_GetWriteStream_async", - "title": "BigQueryRead getWriteStream Sample", - "origin": "API_DEFINITION", - "description": " Gets information about a write stream.", - "canonical": true, - "file": "big_query_write.get_write_stream.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetWriteStream", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryWrite.GetWriteStream", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.bigquery.storage.v1.WriteStreamView" - } - ], - "resultType": ".google.cloud.bigquery.storage.v1.WriteStream", - "client": { - "shortName": "BigQueryWriteClient", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryWriteClient" - }, - "method": { - "shortName": "GetWriteStream", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryWrite.GetWriteStream", - "service": { - "shortName": "BigQueryWrite", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryWrite" - } - } - } - }, - { - "regionTag": "bigquerystorage_v1_generated_BigQueryWrite_FinalizeWriteStream_async", - "title": "BigQueryRead finalizeWriteStream Sample", - "origin": "API_DEFINITION", - "description": " Finalize a write stream so that no new data can be appended to the stream. Finalize is not supported on the '_default' stream.", - "canonical": true, - "file": "big_query_write.finalize_write_stream.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FinalizeWriteStream", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryWrite.FinalizeWriteStream", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse", - "client": { - "shortName": "BigQueryWriteClient", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryWriteClient" - }, - "method": { - "shortName": "FinalizeWriteStream", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryWrite.FinalizeWriteStream", - "service": { - "shortName": "BigQueryWrite", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryWrite" - } - } - } - }, - { - "regionTag": "bigquerystorage_v1_generated_BigQueryWrite_BatchCommitWriteStreams_async", - "title": "BigQueryRead batchCommitWriteStreams Sample", - "origin": "API_DEFINITION", - "description": " Atomically commits a group of `PENDING` streams that belong to the same `parent` table. Streams must be finalized before commit and cannot be committed multiple times. Once a stream is committed, data in the stream becomes available for read operations.", - "canonical": true, - "file": "big_query_write.batch_commit_write_streams.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCommitWriteStreams", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryWrite.BatchCommitWriteStreams", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "write_streams", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse", - "client": { - "shortName": "BigQueryWriteClient", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryWriteClient" - }, - "method": { - "shortName": "BatchCommitWriteStreams", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryWrite.BatchCommitWriteStreams", - "service": { - "shortName": "BigQueryWrite", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryWrite" - } - } - } - }, - { - "regionTag": "bigquerystorage_v1_generated_BigQueryWrite_FlushRows_async", - "title": "BigQueryRead flushRows Sample", - "origin": "API_DEFINITION", - "description": " Flushes rows to a BUFFERED stream. If users are appending rows to BUFFERED stream, flush operation is required in order for the rows to become available for reading. A Flush operation flushes up to any previously flushed offset in a BUFFERED stream, to the offset specified in the request. Flush is not supported on the _default stream, since it is not BUFFERED.", - "canonical": true, - "file": "big_query_write.flush_rows.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FlushRows", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryWrite.FlushRows", - "async": true, - "parameters": [ - { - "name": "write_stream", - "type": "TYPE_STRING" - }, - { - "name": "offset", - "type": ".google.protobuf.Int64Value" - } - ], - "resultType": ".google.cloud.bigquery.storage.v1.FlushRowsResponse", - "client": { - "shortName": "BigQueryWriteClient", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryWriteClient" - }, - "method": { - "shortName": "FlushRows", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryWrite.FlushRows", - "service": { - "shortName": "BigQueryWrite", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryWrite" - } - } - } - } - ] -} \ No newline at end of file diff --git a/handwritten/bigquery-storage/samples/generated/v1/snippet_metadata_google.cloud.bigquery.storage.v1.json b/handwritten/bigquery-storage/samples/generated/v1/snippet_metadata_google.cloud.bigquery.storage.v1.json deleted file mode 100644 index 0f17af129f2d..000000000000 --- a/handwritten/bigquery-storage/samples/generated/v1/snippet_metadata_google.cloud.bigquery.storage.v1.json +++ /dev/null @@ -1,435 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-storage", - "version": "5.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.bigquery.storage.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "bigquerystorage_v1_generated_BigQueryRead_CreateReadSession_async", - "title": "BigQueryRead createReadSession Sample", - "origin": "API_DEFINITION", - "description": " Creates a new read session. A read session divides the contents of a BigQuery table into one or more streams, which can then be used to read data from the table. The read session also specifies properties of the data to be read, such as a list of columns or a push-down filter describing the rows to be returned. A particular row can be read by at most one stream. When the caller has reached the end of each stream in the session, then all the data in the table has been read. Data is assigned to each stream such that roughly the same number of rows can be read from each stream. Because the server-side unit for assigning data is collections of rows, the API does not guarantee that each stream will return the same number or rows. Additionally, the limits are enforced based on the number of pre-filtered rows, so some filters can lead to lopsided assignments. Read sessions automatically expire 6 hours after they are created and do not require manual clean-up by the caller.", - "canonical": true, - "file": "big_query_read.create_read_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateReadSession", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryRead.CreateReadSession", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "read_session", - "type": ".google.cloud.bigquery.storage.v1.ReadSession" - }, - { - "name": "max_stream_count", - "type": "TYPE_INT32" - }, - { - "name": "preferred_min_stream_count", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.bigquery.storage.v1.ReadSession", - "client": { - "shortName": "BigQueryReadClient", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryReadClient" - }, - "method": { - "shortName": "CreateReadSession", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryRead.CreateReadSession", - "service": { - "shortName": "BigQueryRead", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryRead" - } - } - } - }, - { - "regionTag": "bigquerystorage_v1_generated_BigQueryRead_ReadRows_async", - "title": "BigQueryRead readRows Sample", - "origin": "API_DEFINITION", - "description": " Reads rows from the stream in the format prescribed by the ReadSession. Each response contains one or more table rows, up to a maximum of 100 MiB per response; read requests which attempt to read individual rows larger than 100 MiB will fail. Each request also returns a set of stream statistics reflecting the current state of the stream.", - "canonical": true, - "file": "big_query_read.read_rows.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReadRows", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryRead.ReadRows", - "async": true, - "parameters": [ - { - "name": "read_stream", - "type": "TYPE_STRING" - }, - { - "name": "offset", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.bigquery.storage.v1.ReadRowsResponse", - "client": { - "shortName": "BigQueryReadClient", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryReadClient" - }, - "method": { - "shortName": "ReadRows", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryRead.ReadRows", - "service": { - "shortName": "BigQueryRead", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryRead" - } - } - } - }, - { - "regionTag": "bigquerystorage_v1_generated_BigQueryRead_SplitReadStream_async", - "title": "BigQueryRead splitReadStream Sample", - "origin": "API_DEFINITION", - "description": " Splits a given `ReadStream` into two `ReadStream` objects. These `ReadStream` objects are referred to as the primary and the residual streams of the split. The original `ReadStream` can still be read from in the same manner as before. Both of the returned `ReadStream` objects can also be read from, and the rows returned by both child streams will be the same as the rows read from the original stream. Moreover, the two child streams will be allocated back-to-back in the original `ReadStream`. Concretely, it is guaranteed that for streams original, primary, and residual, that original[0-j] = primary[0-j] and original[j-n] = residual[0-m] once the streams have been read to completion.", - "canonical": true, - "file": "big_query_read.split_read_stream.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SplitReadStream", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryRead.SplitReadStream", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "fraction", - "type": "TYPE_DOUBLE" - } - ], - "resultType": ".google.cloud.bigquery.storage.v1.SplitReadStreamResponse", - "client": { - "shortName": "BigQueryReadClient", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryReadClient" - }, - "method": { - "shortName": "SplitReadStream", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryRead.SplitReadStream", - "service": { - "shortName": "BigQueryRead", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryRead" - } - } - } - }, - { - "regionTag": "bigquerystorage_v1_generated_BigQueryWrite_CreateWriteStream_async", - "title": "BigQueryRead createWriteStream Sample", - "origin": "API_DEFINITION", - "description": " Creates a write stream to the given table. Additionally, every table has a special stream named '_default' to which data can be written. This stream doesn't need to be created using CreateWriteStream. It is a stream that can be used simultaneously by any number of clients. Data written to this stream is considered committed as soon as an acknowledgement is received.", - "canonical": true, - "file": "big_query_write.create_write_stream.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateWriteStream", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryWrite.CreateWriteStream", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "write_stream", - "type": ".google.cloud.bigquery.storage.v1.WriteStream" - } - ], - "resultType": ".google.cloud.bigquery.storage.v1.WriteStream", - "client": { - "shortName": "BigQueryWriteClient", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryWriteClient" - }, - "method": { - "shortName": "CreateWriteStream", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryWrite.CreateWriteStream", - "service": { - "shortName": "BigQueryWrite", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryWrite" - } - } - } - }, - { - "regionTag": "bigquerystorage_v1_generated_BigQueryWrite_AppendRows_async", - "title": "BigQueryRead appendRows Sample", - "origin": "API_DEFINITION", - "description": " Appends data to the given stream. If `offset` is specified, the `offset` is checked against the end of stream. The server returns `OUT_OF_RANGE` in `AppendRowsResponse` if an attempt is made to append to an offset beyond the current end of the stream or `ALREADY_EXISTS` if user provides an `offset` that has already been written to. User can retry with adjusted offset within the same RPC connection. If `offset` is not specified, append happens at the end of the stream. The response contains an optional offset at which the append happened. No offset information will be returned for appends to a default stream. Responses are received in the same order in which requests are sent. There will be one response for each successful inserted request. Responses may optionally embed error information if the originating AppendRequest was not successfully processed. The specifics of when successfully appended data is made visible to the table are governed by the type of stream: * For COMMITTED streams (which includes the default stream), data is visible immediately upon successful append. * For BUFFERED streams, data is made visible via a subsequent `FlushRows` rpc which advances a cursor to a newer offset in the stream. * For PENDING streams, data is not made visible until the stream itself is finalized (via the `FinalizeWriteStream` rpc), and the stream is explicitly committed via the `BatchCommitWriteStreams` rpc.", - "canonical": true, - "file": "big_query_write.append_rows.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 125, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AppendRows", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryWrite.AppendRows", - "async": true, - "parameters": [ - { - "name": "write_stream", - "type": "TYPE_STRING" - }, - { - "name": "offset", - "type": ".google.protobuf.Int64Value" - }, - { - "name": "proto_rows", - "type": ".google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData" - }, - { - "name": "arrow_rows", - "type": ".google.cloud.bigquery.storage.v1.AppendRowsRequest.ArrowData" - }, - { - "name": "trace_id", - "type": "TYPE_STRING" - }, - { - "name": "missing_value_interpretations", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "default_missing_value_interpretation", - "type": ".google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation" - } - ], - "resultType": ".google.cloud.bigquery.storage.v1.AppendRowsResponse", - "client": { - "shortName": "BigQueryWriteClient", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryWriteClient" - }, - "method": { - "shortName": "AppendRows", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryWrite.AppendRows", - "service": { - "shortName": "BigQueryWrite", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryWrite" - } - } - } - }, - { - "regionTag": "bigquerystorage_v1_generated_BigQueryWrite_GetWriteStream_async", - "title": "BigQueryRead getWriteStream Sample", - "origin": "API_DEFINITION", - "description": " Gets information about a write stream.", - "canonical": true, - "file": "big_query_write.get_write_stream.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetWriteStream", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryWrite.GetWriteStream", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.bigquery.storage.v1.WriteStreamView" - } - ], - "resultType": ".google.cloud.bigquery.storage.v1.WriteStream", - "client": { - "shortName": "BigQueryWriteClient", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryWriteClient" - }, - "method": { - "shortName": "GetWriteStream", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryWrite.GetWriteStream", - "service": { - "shortName": "BigQueryWrite", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryWrite" - } - } - } - }, - { - "regionTag": "bigquerystorage_v1_generated_BigQueryWrite_FinalizeWriteStream_async", - "title": "BigQueryRead finalizeWriteStream Sample", - "origin": "API_DEFINITION", - "description": " Finalize a write stream so that no new data can be appended to the stream. Finalize is not supported on the '_default' stream.", - "canonical": true, - "file": "big_query_write.finalize_write_stream.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FinalizeWriteStream", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryWrite.FinalizeWriteStream", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse", - "client": { - "shortName": "BigQueryWriteClient", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryWriteClient" - }, - "method": { - "shortName": "FinalizeWriteStream", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryWrite.FinalizeWriteStream", - "service": { - "shortName": "BigQueryWrite", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryWrite" - } - } - } - }, - { - "regionTag": "bigquerystorage_v1_generated_BigQueryWrite_BatchCommitWriteStreams_async", - "title": "BigQueryRead batchCommitWriteStreams Sample", - "origin": "API_DEFINITION", - "description": " Atomically commits a group of `PENDING` streams that belong to the same `parent` table. Streams must be finalized before commit and cannot be committed multiple times. Once a stream is committed, data in the stream becomes available for read operations.", - "canonical": true, - "file": "big_query_write.batch_commit_write_streams.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCommitWriteStreams", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryWrite.BatchCommitWriteStreams", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "write_streams", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse", - "client": { - "shortName": "BigQueryWriteClient", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryWriteClient" - }, - "method": { - "shortName": "BatchCommitWriteStreams", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryWrite.BatchCommitWriteStreams", - "service": { - "shortName": "BigQueryWrite", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryWrite" - } - } - } - }, - { - "regionTag": "bigquerystorage_v1_generated_BigQueryWrite_FlushRows_async", - "title": "BigQueryRead flushRows Sample", - "origin": "API_DEFINITION", - "description": " Flushes rows to a BUFFERED stream. If users are appending rows to BUFFERED stream, flush operation is required in order for the rows to become available for reading. A Flush operation flushes up to any previously flushed offset in a BUFFERED stream, to the offset specified in the request. Flush is not supported on the _default stream, since it is not BUFFERED.", - "canonical": true, - "file": "big_query_write.flush_rows.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FlushRows", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryWrite.FlushRows", - "async": true, - "parameters": [ - { - "name": "write_stream", - "type": "TYPE_STRING" - }, - { - "name": "offset", - "type": ".google.protobuf.Int64Value" - } - ], - "resultType": ".google.cloud.bigquery.storage.v1.FlushRowsResponse", - "client": { - "shortName": "BigQueryWriteClient", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryWriteClient" - }, - "method": { - "shortName": "FlushRows", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryWrite.FlushRows", - "service": { - "shortName": "BigQueryWrite", - "fullName": "google.cloud.bigquery.storage.v1.BigQueryWrite" - } - } - } - } - ] -} \ No newline at end of file diff --git a/handwritten/bigquery-storage/samples/generated/v1alpha/snippet_metadata_google.cloud.bigquery.storage.v1alpha.json b/handwritten/bigquery-storage/samples/generated/v1alpha/snippet_metadata_google.cloud.bigquery.storage.v1alpha.json deleted file mode 100644 index 3fedb87b58a9..000000000000 --- a/handwritten/bigquery-storage/samples/generated/v1alpha/snippet_metadata_google.cloud.bigquery.storage.v1alpha.json +++ /dev/null @@ -1,259 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-storage", - "version": "5.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.bigquery.storage.v1alpha", - "version": "v1alpha" - } - ] - }, - "snippets": [ - { - "regionTag": "bigquerystorage_v1alpha_generated_MetastorePartitionService_BatchCreateMetastorePartitions_async", - "title": "MetastorePartitionService batchCreateMetastorePartitions Sample", - "origin": "API_DEFINITION", - "description": " Adds metastore partitions to a table.", - "canonical": true, - "file": "metastore_partition_service.batch_create_metastore_partitions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCreateMetastorePartitions", - "fullName": "google.cloud.bigquery.storage.v1alpha.MetastorePartitionService.BatchCreateMetastorePartitions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "skip_existing_partitions", - "type": "TYPE_BOOL" - }, - { - "name": "trace_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.storage.v1alpha.BatchCreateMetastorePartitionsResponse", - "client": { - "shortName": "MetastorePartitionServiceClient", - "fullName": "google.cloud.bigquery.storage.v1alpha.MetastorePartitionServiceClient" - }, - "method": { - "shortName": "BatchCreateMetastorePartitions", - "fullName": "google.cloud.bigquery.storage.v1alpha.MetastorePartitionService.BatchCreateMetastorePartitions", - "service": { - "shortName": "MetastorePartitionService", - "fullName": "google.cloud.bigquery.storage.v1alpha.MetastorePartitionService" - } - } - } - }, - { - "regionTag": "bigquerystorage_v1alpha_generated_MetastorePartitionService_BatchDeleteMetastorePartitions_async", - "title": "MetastorePartitionService batchDeleteMetastorePartitions Sample", - "origin": "API_DEFINITION", - "description": " Deletes metastore partitions from a table.", - "canonical": true, - "file": "metastore_partition_service.batch_delete_metastore_partitions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchDeleteMetastorePartitions", - "fullName": "google.cloud.bigquery.storage.v1alpha.MetastorePartitionService.BatchDeleteMetastorePartitions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "partition_values", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "trace_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "MetastorePartitionServiceClient", - "fullName": "google.cloud.bigquery.storage.v1alpha.MetastorePartitionServiceClient" - }, - "method": { - "shortName": "BatchDeleteMetastorePartitions", - "fullName": "google.cloud.bigquery.storage.v1alpha.MetastorePartitionService.BatchDeleteMetastorePartitions", - "service": { - "shortName": "MetastorePartitionService", - "fullName": "google.cloud.bigquery.storage.v1alpha.MetastorePartitionService" - } - } - } - }, - { - "regionTag": "bigquerystorage_v1alpha_generated_MetastorePartitionService_BatchUpdateMetastorePartitions_async", - "title": "MetastorePartitionService batchUpdateMetastorePartitions Sample", - "origin": "API_DEFINITION", - "description": " Updates metastore partitions in a table.", - "canonical": true, - "file": "metastore_partition_service.batch_update_metastore_partitions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchUpdateMetastorePartitions", - "fullName": "google.cloud.bigquery.storage.v1alpha.MetastorePartitionService.BatchUpdateMetastorePartitions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "trace_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.storage.v1alpha.BatchUpdateMetastorePartitionsResponse", - "client": { - "shortName": "MetastorePartitionServiceClient", - "fullName": "google.cloud.bigquery.storage.v1alpha.MetastorePartitionServiceClient" - }, - "method": { - "shortName": "BatchUpdateMetastorePartitions", - "fullName": "google.cloud.bigquery.storage.v1alpha.MetastorePartitionService.BatchUpdateMetastorePartitions", - "service": { - "shortName": "MetastorePartitionService", - "fullName": "google.cloud.bigquery.storage.v1alpha.MetastorePartitionService" - } - } - } - }, - { - "regionTag": "bigquerystorage_v1alpha_generated_MetastorePartitionService_ListMetastorePartitions_async", - "title": "MetastorePartitionService listMetastorePartitions Sample", - "origin": "API_DEFINITION", - "description": " Gets metastore partitions from a table.", - "canonical": true, - "file": "metastore_partition_service.list_metastore_partitions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMetastorePartitions", - "fullName": "google.cloud.bigquery.storage.v1alpha.MetastorePartitionService.ListMetastorePartitions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "trace_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.storage.v1alpha.ListMetastorePartitionsResponse", - "client": { - "shortName": "MetastorePartitionServiceClient", - "fullName": "google.cloud.bigquery.storage.v1alpha.MetastorePartitionServiceClient" - }, - "method": { - "shortName": "ListMetastorePartitions", - "fullName": "google.cloud.bigquery.storage.v1alpha.MetastorePartitionService.ListMetastorePartitions", - "service": { - "shortName": "MetastorePartitionService", - "fullName": "google.cloud.bigquery.storage.v1alpha.MetastorePartitionService" - } - } - } - }, - { - "regionTag": "bigquerystorage_v1alpha_generated_MetastorePartitionService_StreamMetastorePartitions_async", - "title": "MetastorePartitionService streamMetastorePartitions Sample", - "origin": "API_DEFINITION", - "description": " This is a bi-di streaming rpc method that allows the client to send a stream of partitions and commit all of them atomically at the end. If the commit is successful, the server will return a response and close the stream. If the commit fails (due to duplicate partitions or other reason), the server will close the stream with an error. This method is only available via the gRPC API (not REST).", - "canonical": true, - "file": "metastore_partition_service.stream_metastore_partitions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StreamMetastorePartitions", - "fullName": "google.cloud.bigquery.storage.v1alpha.MetastorePartitionService.StreamMetastorePartitions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "metastore_partitions", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "skip_existing_partitions", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.bigquery.storage.v1alpha.StreamMetastorePartitionsResponse", - "client": { - "shortName": "MetastorePartitionServiceClient", - "fullName": "google.cloud.bigquery.storage.v1alpha.MetastorePartitionServiceClient" - }, - "method": { - "shortName": "StreamMetastorePartitions", - "fullName": "google.cloud.bigquery.storage.v1alpha.MetastorePartitionService.StreamMetastorePartitions", - "service": { - "shortName": "MetastorePartitionService", - "fullName": "google.cloud.bigquery.storage.v1alpha.MetastorePartitionService" - } - } - } - } - ] -} \ No newline at end of file diff --git a/handwritten/bigquery-storage/samples/generated/v1beta/snippet_metadata_google.cloud.bigquery.storage.v1beta.json b/handwritten/bigquery-storage/samples/generated/v1beta/snippet_metadata_google.cloud.bigquery.storage.v1beta.json deleted file mode 100644 index 12b215c9741a..000000000000 --- a/handwritten/bigquery-storage/samples/generated/v1beta/snippet_metadata_google.cloud.bigquery.storage.v1beta.json +++ /dev/null @@ -1,259 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-storage", - "version": "5.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.bigquery.storage.v1beta", - "version": "v1beta" - } - ] - }, - "snippets": [ - { - "regionTag": "bigquerystorage_v1beta_generated_MetastorePartitionService_BatchCreateMetastorePartitions_async", - "title": "MetastorePartitionService batchCreateMetastorePartitions Sample", - "origin": "API_DEFINITION", - "description": " Adds metastore partitions to a table.", - "canonical": true, - "file": "metastore_partition_service.batch_create_metastore_partitions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCreateMetastorePartitions", - "fullName": "google.cloud.bigquery.storage.v1beta.MetastorePartitionService.BatchCreateMetastorePartitions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "skip_existing_partitions", - "type": "TYPE_BOOL" - }, - { - "name": "trace_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.storage.v1beta.BatchCreateMetastorePartitionsResponse", - "client": { - "shortName": "MetastorePartitionServiceClient", - "fullName": "google.cloud.bigquery.storage.v1beta.MetastorePartitionServiceClient" - }, - "method": { - "shortName": "BatchCreateMetastorePartitions", - "fullName": "google.cloud.bigquery.storage.v1beta.MetastorePartitionService.BatchCreateMetastorePartitions", - "service": { - "shortName": "MetastorePartitionService", - "fullName": "google.cloud.bigquery.storage.v1beta.MetastorePartitionService" - } - } - } - }, - { - "regionTag": "bigquerystorage_v1beta_generated_MetastorePartitionService_BatchDeleteMetastorePartitions_async", - "title": "MetastorePartitionService batchDeleteMetastorePartitions Sample", - "origin": "API_DEFINITION", - "description": " Deletes metastore partitions from a table.", - "canonical": true, - "file": "metastore_partition_service.batch_delete_metastore_partitions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchDeleteMetastorePartitions", - "fullName": "google.cloud.bigquery.storage.v1beta.MetastorePartitionService.BatchDeleteMetastorePartitions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "partition_values", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "trace_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "MetastorePartitionServiceClient", - "fullName": "google.cloud.bigquery.storage.v1beta.MetastorePartitionServiceClient" - }, - "method": { - "shortName": "BatchDeleteMetastorePartitions", - "fullName": "google.cloud.bigquery.storage.v1beta.MetastorePartitionService.BatchDeleteMetastorePartitions", - "service": { - "shortName": "MetastorePartitionService", - "fullName": "google.cloud.bigquery.storage.v1beta.MetastorePartitionService" - } - } - } - }, - { - "regionTag": "bigquerystorage_v1beta_generated_MetastorePartitionService_BatchUpdateMetastorePartitions_async", - "title": "MetastorePartitionService batchUpdateMetastorePartitions Sample", - "origin": "API_DEFINITION", - "description": " Updates metastore partitions in a table.", - "canonical": true, - "file": "metastore_partition_service.batch_update_metastore_partitions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchUpdateMetastorePartitions", - "fullName": "google.cloud.bigquery.storage.v1beta.MetastorePartitionService.BatchUpdateMetastorePartitions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "trace_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.storage.v1beta.BatchUpdateMetastorePartitionsResponse", - "client": { - "shortName": "MetastorePartitionServiceClient", - "fullName": "google.cloud.bigquery.storage.v1beta.MetastorePartitionServiceClient" - }, - "method": { - "shortName": "BatchUpdateMetastorePartitions", - "fullName": "google.cloud.bigquery.storage.v1beta.MetastorePartitionService.BatchUpdateMetastorePartitions", - "service": { - "shortName": "MetastorePartitionService", - "fullName": "google.cloud.bigquery.storage.v1beta.MetastorePartitionService" - } - } - } - }, - { - "regionTag": "bigquerystorage_v1beta_generated_MetastorePartitionService_ListMetastorePartitions_async", - "title": "MetastorePartitionService listMetastorePartitions Sample", - "origin": "API_DEFINITION", - "description": " Gets metastore partitions from a table.", - "canonical": true, - "file": "metastore_partition_service.list_metastore_partitions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMetastorePartitions", - "fullName": "google.cloud.bigquery.storage.v1beta.MetastorePartitionService.ListMetastorePartitions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "trace_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.storage.v1beta.ListMetastorePartitionsResponse", - "client": { - "shortName": "MetastorePartitionServiceClient", - "fullName": "google.cloud.bigquery.storage.v1beta.MetastorePartitionServiceClient" - }, - "method": { - "shortName": "ListMetastorePartitions", - "fullName": "google.cloud.bigquery.storage.v1beta.MetastorePartitionService.ListMetastorePartitions", - "service": { - "shortName": "MetastorePartitionService", - "fullName": "google.cloud.bigquery.storage.v1beta.MetastorePartitionService" - } - } - } - }, - { - "regionTag": "bigquerystorage_v1beta_generated_MetastorePartitionService_StreamMetastorePartitions_async", - "title": "MetastorePartitionService streamMetastorePartitions Sample", - "origin": "API_DEFINITION", - "description": " This is a bi-di streaming rpc method that allows the client to send a stream of partitions and commit all of them atomically at the end. If the commit is successful, the server will return a response and close the stream. If the commit fails (due to duplicate partitions or other reason), the server will close the stream with an error. This method is only available via the gRPC API (not REST).", - "canonical": true, - "file": "metastore_partition_service.stream_metastore_partitions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StreamMetastorePartitions", - "fullName": "google.cloud.bigquery.storage.v1beta.MetastorePartitionService.StreamMetastorePartitions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "metastore_partitions", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "skip_existing_partitions", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.bigquery.storage.v1beta.StreamMetastorePartitionsResponse", - "client": { - "shortName": "MetastorePartitionServiceClient", - "fullName": "google.cloud.bigquery.storage.v1beta.MetastorePartitionServiceClient" - }, - "method": { - "shortName": "StreamMetastorePartitions", - "fullName": "google.cloud.bigquery.storage.v1beta.MetastorePartitionService.StreamMetastorePartitions", - "service": { - "shortName": "MetastorePartitionService", - "fullName": "google.cloud.bigquery.storage.v1beta.MetastorePartitionService" - } - } - } - } - ] -} \ No newline at end of file diff --git a/handwritten/bigquery-storage/samples/generated/v1beta1/snippet_metadata.google.cloud.bigquery.storage.v1beta1.json b/handwritten/bigquery-storage/samples/generated/v1beta1/snippet_metadata.google.cloud.bigquery.storage.v1beta1.json deleted file mode 100644 index 8ced04685a1d..000000000000 --- a/handwritten/bigquery-storage/samples/generated/v1beta1/snippet_metadata.google.cloud.bigquery.storage.v1beta1.json +++ /dev/null @@ -1,247 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-storage", - "version": "5.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.bigquery.storage.v1beta1", - "version": "v1beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "bigquerystorage_v1beta1_generated_BigQueryStorage_CreateReadSession_async", - "title": "BigQueryStorage createReadSession Sample", - "origin": "API_DEFINITION", - "description": " Creates a new read session. A read session divides the contents of a BigQuery table into one or more streams, which can then be used to read data from the table. The read session also specifies properties of the data to be read, such as a list of columns or a push-down filter describing the rows to be returned. A particular row can be read by at most one stream. When the caller has reached the end of each stream in the session, then all the data in the table has been read. Read sessions automatically expire 6 hours after they are created and do not require manual clean-up by the caller.", - "canonical": true, - "file": "big_query_storage.create_read_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateReadSession", - "fullName": "google.cloud.bigquery.storage.v1beta1.BigQueryStorage.CreateReadSession", - "async": true, - "parameters": [ - { - "name": "table_reference", - "type": ".google.cloud.bigquery.storage.v1beta1.TableReference" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "table_modifiers", - "type": ".google.cloud.bigquery.storage.v1beta1.TableModifiers" - }, - { - "name": "requested_streams", - "type": "TYPE_INT32" - }, - { - "name": "read_options", - "type": ".google.cloud.bigquery.storage.v1beta1.TableReadOptions" - }, - { - "name": "format", - "type": ".google.cloud.bigquery.storage.v1beta1.DataFormat" - }, - { - "name": "sharding_strategy", - "type": ".google.cloud.bigquery.storage.v1beta1.ShardingStrategy" - } - ], - "resultType": ".google.cloud.bigquery.storage.v1beta1.ReadSession", - "client": { - "shortName": "BigQueryStorageClient", - "fullName": "google.cloud.bigquery.storage.v1beta1.BigQueryStorageClient" - }, - "method": { - "shortName": "CreateReadSession", - "fullName": "google.cloud.bigquery.storage.v1beta1.BigQueryStorage.CreateReadSession", - "service": { - "shortName": "BigQueryStorage", - "fullName": "google.cloud.bigquery.storage.v1beta1.BigQueryStorage" - } - } - } - }, - { - "regionTag": "bigquerystorage_v1beta1_generated_BigQueryStorage_ReadRows_async", - "title": "BigQueryStorage readRows Sample", - "origin": "API_DEFINITION", - "description": " Reads rows from the table in the format prescribed by the read session. Each response contains one or more table rows, up to a maximum of 10 MiB per response; read requests which attempt to read individual rows larger than this will fail. Each request also returns a set of stream statistics reflecting the estimated total number of rows in the read stream. This number is computed based on the total table size and the number of active streams in the read session, and may change as other streams continue to read data.", - "canonical": true, - "file": "big_query_storage.read_rows.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReadRows", - "fullName": "google.cloud.bigquery.storage.v1beta1.BigQueryStorage.ReadRows", - "async": true, - "parameters": [ - { - "name": "read_position", - "type": ".google.cloud.bigquery.storage.v1beta1.StreamPosition" - } - ], - "resultType": ".google.cloud.bigquery.storage.v1beta1.ReadRowsResponse", - "client": { - "shortName": "BigQueryStorageClient", - "fullName": "google.cloud.bigquery.storage.v1beta1.BigQueryStorageClient" - }, - "method": { - "shortName": "ReadRows", - "fullName": "google.cloud.bigquery.storage.v1beta1.BigQueryStorage.ReadRows", - "service": { - "shortName": "BigQueryStorage", - "fullName": "google.cloud.bigquery.storage.v1beta1.BigQueryStorage" - } - } - } - }, - { - "regionTag": "bigquerystorage_v1beta1_generated_BigQueryStorage_BatchCreateReadSessionStreams_async", - "title": "BigQueryStorage batchCreateReadSessionStreams Sample", - "origin": "API_DEFINITION", - "description": " Creates additional streams for a ReadSession. This API can be used to dynamically adjust the parallelism of a batch processing task upwards by adding additional workers.", - "canonical": true, - "file": "big_query_storage.batch_create_read_session_streams.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCreateReadSessionStreams", - "fullName": "google.cloud.bigquery.storage.v1beta1.BigQueryStorage.BatchCreateReadSessionStreams", - "async": true, - "parameters": [ - { - "name": "session", - "type": ".google.cloud.bigquery.storage.v1beta1.ReadSession" - }, - { - "name": "requested_streams", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsResponse", - "client": { - "shortName": "BigQueryStorageClient", - "fullName": "google.cloud.bigquery.storage.v1beta1.BigQueryStorageClient" - }, - "method": { - "shortName": "BatchCreateReadSessionStreams", - "fullName": "google.cloud.bigquery.storage.v1beta1.BigQueryStorage.BatchCreateReadSessionStreams", - "service": { - "shortName": "BigQueryStorage", - "fullName": "google.cloud.bigquery.storage.v1beta1.BigQueryStorage" - } - } - } - }, - { - "regionTag": "bigquerystorage_v1beta1_generated_BigQueryStorage_FinalizeStream_async", - "title": "BigQueryStorage finalizeStream Sample", - "origin": "API_DEFINITION", - "description": " Causes a single stream in a ReadSession to gracefully stop. This API can be used to dynamically adjust the parallelism of a batch processing task downwards without losing data. This API does not delete the stream -- it remains visible in the ReadSession, and any data processed by the stream is not released to other streams. However, no additional data will be assigned to the stream once this call completes. Callers must continue reading data on the stream until the end of the stream is reached so that data which has already been assigned to the stream will be processed. This method will return an error if there are no other live streams in the Session, or if SplitReadStream() has been called on the given Stream.", - "canonical": true, - "file": "big_query_storage.finalize_stream.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FinalizeStream", - "fullName": "google.cloud.bigquery.storage.v1beta1.BigQueryStorage.FinalizeStream", - "async": true, - "parameters": [ - { - "name": "stream", - "type": ".google.cloud.bigquery.storage.v1beta1.Stream" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "BigQueryStorageClient", - "fullName": "google.cloud.bigquery.storage.v1beta1.BigQueryStorageClient" - }, - "method": { - "shortName": "FinalizeStream", - "fullName": "google.cloud.bigquery.storage.v1beta1.BigQueryStorage.FinalizeStream", - "service": { - "shortName": "BigQueryStorage", - "fullName": "google.cloud.bigquery.storage.v1beta1.BigQueryStorage" - } - } - } - }, - { - "regionTag": "bigquerystorage_v1beta1_generated_BigQueryStorage_SplitReadStream_async", - "title": "BigQueryStorage splitReadStream Sample", - "origin": "API_DEFINITION", - "description": " Splits a given read stream into two Streams. These streams are referred to as the primary and the residual of the split. The original stream can still be read from in the same manner as before. Both of the returned streams can also be read from, and the total rows return by both child streams will be the same as the rows read from the original stream. Moreover, the two child streams will be allocated back to back in the original Stream. Concretely, it is guaranteed that for streams Original, Primary, and Residual, that Original[0-j] = Primary[0-j] and Original[j-n] = Residual[0-m] once the streams have been read to completion. This method is guaranteed to be idempotent.", - "canonical": true, - "file": "big_query_storage.split_read_stream.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SplitReadStream", - "fullName": "google.cloud.bigquery.storage.v1beta1.BigQueryStorage.SplitReadStream", - "async": true, - "parameters": [ - { - "name": "original_stream", - "type": ".google.cloud.bigquery.storage.v1beta1.Stream" - }, - { - "name": "fraction", - "type": "TYPE_FLOAT" - } - ], - "resultType": ".google.cloud.bigquery.storage.v1beta1.SplitReadStreamResponse", - "client": { - "shortName": "BigQueryStorageClient", - "fullName": "google.cloud.bigquery.storage.v1beta1.BigQueryStorageClient" - }, - "method": { - "shortName": "SplitReadStream", - "fullName": "google.cloud.bigquery.storage.v1beta1.BigQueryStorage.SplitReadStream", - "service": { - "shortName": "BigQueryStorage", - "fullName": "google.cloud.bigquery.storage.v1beta1.BigQueryStorage" - } - } - } - } - ] -} \ No newline at end of file diff --git a/handwritten/bigquery-storage/samples/generated/v1beta1/snippet_metadata_google.cloud.bigquery.storage.v1beta1.json b/handwritten/bigquery-storage/samples/generated/v1beta1/snippet_metadata_google.cloud.bigquery.storage.v1beta1.json deleted file mode 100644 index 8ced04685a1d..000000000000 --- a/handwritten/bigquery-storage/samples/generated/v1beta1/snippet_metadata_google.cloud.bigquery.storage.v1beta1.json +++ /dev/null @@ -1,247 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-storage", - "version": "5.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.bigquery.storage.v1beta1", - "version": "v1beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "bigquerystorage_v1beta1_generated_BigQueryStorage_CreateReadSession_async", - "title": "BigQueryStorage createReadSession Sample", - "origin": "API_DEFINITION", - "description": " Creates a new read session. A read session divides the contents of a BigQuery table into one or more streams, which can then be used to read data from the table. The read session also specifies properties of the data to be read, such as a list of columns or a push-down filter describing the rows to be returned. A particular row can be read by at most one stream. When the caller has reached the end of each stream in the session, then all the data in the table has been read. Read sessions automatically expire 6 hours after they are created and do not require manual clean-up by the caller.", - "canonical": true, - "file": "big_query_storage.create_read_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateReadSession", - "fullName": "google.cloud.bigquery.storage.v1beta1.BigQueryStorage.CreateReadSession", - "async": true, - "parameters": [ - { - "name": "table_reference", - "type": ".google.cloud.bigquery.storage.v1beta1.TableReference" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "table_modifiers", - "type": ".google.cloud.bigquery.storage.v1beta1.TableModifiers" - }, - { - "name": "requested_streams", - "type": "TYPE_INT32" - }, - { - "name": "read_options", - "type": ".google.cloud.bigquery.storage.v1beta1.TableReadOptions" - }, - { - "name": "format", - "type": ".google.cloud.bigquery.storage.v1beta1.DataFormat" - }, - { - "name": "sharding_strategy", - "type": ".google.cloud.bigquery.storage.v1beta1.ShardingStrategy" - } - ], - "resultType": ".google.cloud.bigquery.storage.v1beta1.ReadSession", - "client": { - "shortName": "BigQueryStorageClient", - "fullName": "google.cloud.bigquery.storage.v1beta1.BigQueryStorageClient" - }, - "method": { - "shortName": "CreateReadSession", - "fullName": "google.cloud.bigquery.storage.v1beta1.BigQueryStorage.CreateReadSession", - "service": { - "shortName": "BigQueryStorage", - "fullName": "google.cloud.bigquery.storage.v1beta1.BigQueryStorage" - } - } - } - }, - { - "regionTag": "bigquerystorage_v1beta1_generated_BigQueryStorage_ReadRows_async", - "title": "BigQueryStorage readRows Sample", - "origin": "API_DEFINITION", - "description": " Reads rows from the table in the format prescribed by the read session. Each response contains one or more table rows, up to a maximum of 10 MiB per response; read requests which attempt to read individual rows larger than this will fail. Each request also returns a set of stream statistics reflecting the estimated total number of rows in the read stream. This number is computed based on the total table size and the number of active streams in the read session, and may change as other streams continue to read data.", - "canonical": true, - "file": "big_query_storage.read_rows.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReadRows", - "fullName": "google.cloud.bigquery.storage.v1beta1.BigQueryStorage.ReadRows", - "async": true, - "parameters": [ - { - "name": "read_position", - "type": ".google.cloud.bigquery.storage.v1beta1.StreamPosition" - } - ], - "resultType": ".google.cloud.bigquery.storage.v1beta1.ReadRowsResponse", - "client": { - "shortName": "BigQueryStorageClient", - "fullName": "google.cloud.bigquery.storage.v1beta1.BigQueryStorageClient" - }, - "method": { - "shortName": "ReadRows", - "fullName": "google.cloud.bigquery.storage.v1beta1.BigQueryStorage.ReadRows", - "service": { - "shortName": "BigQueryStorage", - "fullName": "google.cloud.bigquery.storage.v1beta1.BigQueryStorage" - } - } - } - }, - { - "regionTag": "bigquerystorage_v1beta1_generated_BigQueryStorage_BatchCreateReadSessionStreams_async", - "title": "BigQueryStorage batchCreateReadSessionStreams Sample", - "origin": "API_DEFINITION", - "description": " Creates additional streams for a ReadSession. This API can be used to dynamically adjust the parallelism of a batch processing task upwards by adding additional workers.", - "canonical": true, - "file": "big_query_storage.batch_create_read_session_streams.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCreateReadSessionStreams", - "fullName": "google.cloud.bigquery.storage.v1beta1.BigQueryStorage.BatchCreateReadSessionStreams", - "async": true, - "parameters": [ - { - "name": "session", - "type": ".google.cloud.bigquery.storage.v1beta1.ReadSession" - }, - { - "name": "requested_streams", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsResponse", - "client": { - "shortName": "BigQueryStorageClient", - "fullName": "google.cloud.bigquery.storage.v1beta1.BigQueryStorageClient" - }, - "method": { - "shortName": "BatchCreateReadSessionStreams", - "fullName": "google.cloud.bigquery.storage.v1beta1.BigQueryStorage.BatchCreateReadSessionStreams", - "service": { - "shortName": "BigQueryStorage", - "fullName": "google.cloud.bigquery.storage.v1beta1.BigQueryStorage" - } - } - } - }, - { - "regionTag": "bigquerystorage_v1beta1_generated_BigQueryStorage_FinalizeStream_async", - "title": "BigQueryStorage finalizeStream Sample", - "origin": "API_DEFINITION", - "description": " Causes a single stream in a ReadSession to gracefully stop. This API can be used to dynamically adjust the parallelism of a batch processing task downwards without losing data. This API does not delete the stream -- it remains visible in the ReadSession, and any data processed by the stream is not released to other streams. However, no additional data will be assigned to the stream once this call completes. Callers must continue reading data on the stream until the end of the stream is reached so that data which has already been assigned to the stream will be processed. This method will return an error if there are no other live streams in the Session, or if SplitReadStream() has been called on the given Stream.", - "canonical": true, - "file": "big_query_storage.finalize_stream.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FinalizeStream", - "fullName": "google.cloud.bigquery.storage.v1beta1.BigQueryStorage.FinalizeStream", - "async": true, - "parameters": [ - { - "name": "stream", - "type": ".google.cloud.bigquery.storage.v1beta1.Stream" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "BigQueryStorageClient", - "fullName": "google.cloud.bigquery.storage.v1beta1.BigQueryStorageClient" - }, - "method": { - "shortName": "FinalizeStream", - "fullName": "google.cloud.bigquery.storage.v1beta1.BigQueryStorage.FinalizeStream", - "service": { - "shortName": "BigQueryStorage", - "fullName": "google.cloud.bigquery.storage.v1beta1.BigQueryStorage" - } - } - } - }, - { - "regionTag": "bigquerystorage_v1beta1_generated_BigQueryStorage_SplitReadStream_async", - "title": "BigQueryStorage splitReadStream Sample", - "origin": "API_DEFINITION", - "description": " Splits a given read stream into two Streams. These streams are referred to as the primary and the residual of the split. The original stream can still be read from in the same manner as before. Both of the returned streams can also be read from, and the total rows return by both child streams will be the same as the rows read from the original stream. Moreover, the two child streams will be allocated back to back in the original Stream. Concretely, it is guaranteed that for streams Original, Primary, and Residual, that Original[0-j] = Primary[0-j] and Original[j-n] = Residual[0-m] once the streams have been read to completion. This method is guaranteed to be idempotent.", - "canonical": true, - "file": "big_query_storage.split_read_stream.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SplitReadStream", - "fullName": "google.cloud.bigquery.storage.v1beta1.BigQueryStorage.SplitReadStream", - "async": true, - "parameters": [ - { - "name": "original_stream", - "type": ".google.cloud.bigquery.storage.v1beta1.Stream" - }, - { - "name": "fraction", - "type": "TYPE_FLOAT" - } - ], - "resultType": ".google.cloud.bigquery.storage.v1beta1.SplitReadStreamResponse", - "client": { - "shortName": "BigQueryStorageClient", - "fullName": "google.cloud.bigquery.storage.v1beta1.BigQueryStorageClient" - }, - "method": { - "shortName": "SplitReadStream", - "fullName": "google.cloud.bigquery.storage.v1beta1.BigQueryStorage.SplitReadStream", - "service": { - "shortName": "BigQueryStorage", - "fullName": "google.cloud.bigquery.storage.v1beta1.BigQueryStorage" - } - } - } - } - ] -} \ No newline at end of file diff --git a/handwritten/bigtable/samples/generated/admin/v2/snippet_metadata_google.bigtable.admin.v2.json b/handwritten/bigtable/samples/generated/admin/v2/snippet_metadata_google.bigtable.admin.v2.json deleted file mode 100644 index cc9e3e41035f..000000000000 --- a/handwritten/bigtable/samples/generated/admin/v2/snippet_metadata_google.bigtable.admin.v2.json +++ /dev/null @@ -1,3087 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-admin", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.bigtable.admin.v2", - "version": "v2" - } - ] - }, - "snippets": [ - { - "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateInstance_async", - "title": "bigtable createInstance Sample", - "origin": "API_DEFINITION", - "description": " Create an instance within a project. Note that exactly one of Cluster.serve_nodes and Cluster.cluster_config.cluster_autoscaling_config can be set. If serve_nodes is set to non-zero, then the cluster is manually scaled. If cluster_config.cluster_autoscaling_config is non-empty, then autoscaling is enabled.", - "canonical": true, - "file": "bigtable_instance_admin.create_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateInstance", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateInstance", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "instance_id", - "type": "TYPE_STRING" - }, - { - "name": "instance", - "type": ".google.bigtable.admin.v2.Instance" - }, - { - "name": "clusters", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BigtableInstanceAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" - }, - "method": { - "shortName": "CreateInstance", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateInstance", - "service": { - "shortName": "BigtableInstanceAdmin", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetInstance_async", - "title": "bigtable getInstance Sample", - "origin": "API_DEFINITION", - "description": " Gets information about an instance.", - "canonical": true, - "file": "bigtable_instance_admin.get_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetInstance", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.bigtable.admin.v2.Instance", - "client": { - "shortName": "BigtableInstanceAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" - }, - "method": { - "shortName": "GetInstance", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetInstance", - "service": { - "shortName": "BigtableInstanceAdmin", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListInstances_async", - "title": "bigtable listInstances Sample", - "origin": "API_DEFINITION", - "description": " Lists information about instances in a project.", - "canonical": true, - "file": "bigtable_instance_admin.list_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListInstances", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListInstances", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.bigtable.admin.v2.ListInstancesResponse", - "client": { - "shortName": "BigtableInstanceAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" - }, - "method": { - "shortName": "ListInstances", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListInstances", - "service": { - "shortName": "BigtableInstanceAdmin", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateInstance_async", - "title": "bigtable updateInstance Sample", - "origin": "API_DEFINITION", - "description": " Updates an instance within a project. This method updates only the display name and type for an Instance. To update other Instance properties, such as labels, use PartialUpdateInstance.", - "canonical": true, - "file": "bigtable_instance_admin.update_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 111, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateInstance", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "display_name", - "type": "TYPE_STRING" - }, - { - "name": "state", - "type": ".google.bigtable.admin.v2.Instance.State" - }, - { - "name": "type", - "type": ".google.bigtable.admin.v2.Instance.Type" - }, - { - "name": "labels", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "create_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "satisfies_pzs", - "type": "TYPE_BOOL" - }, - { - "name": "satisfies_pzi", - "type": "TYPE_BOOL" - }, - { - "name": "tags", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.bigtable.admin.v2.Instance", - "client": { - "shortName": "BigtableInstanceAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" - }, - "method": { - "shortName": "UpdateInstance", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateInstance", - "service": { - "shortName": "BigtableInstanceAdmin", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateInstance_async", - "title": "bigtable partialUpdateInstance Sample", - "origin": "API_DEFINITION", - "description": " Partially updates an instance within a project. This method can modify all fields of an Instance and is the preferred way to update an Instance.", - "canonical": true, - "file": "bigtable_instance_admin.partial_update_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PartialUpdateInstance", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.PartialUpdateInstance", - "async": true, - "parameters": [ - { - "name": "instance", - "type": ".google.bigtable.admin.v2.Instance" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BigtableInstanceAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" - }, - "method": { - "shortName": "PartialUpdateInstance", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.PartialUpdateInstance", - "service": { - "shortName": "BigtableInstanceAdmin", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteInstance_async", - "title": "bigtable deleteInstance Sample", - "origin": "API_DEFINITION", - "description": " Delete an instance from a project.", - "canonical": true, - "file": "bigtable_instance_admin.delete_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteInstance", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "BigtableInstanceAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" - }, - "method": { - "shortName": "DeleteInstance", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteInstance", - "service": { - "shortName": "BigtableInstanceAdmin", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateCluster_async", - "title": "bigtable createCluster Sample", - "origin": "API_DEFINITION", - "description": " Creates a cluster within an instance. Note that exactly one of Cluster.serve_nodes and Cluster.cluster_config.cluster_autoscaling_config can be set. If serve_nodes is set to non-zero, then the cluster is manually scaled. If cluster_config.cluster_autoscaling_config is non-empty, then autoscaling is enabled.", - "canonical": true, - "file": "bigtable_instance_admin.create_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCluster", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateCluster", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "cluster", - "type": ".google.bigtable.admin.v2.Cluster" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BigtableInstanceAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" - }, - "method": { - "shortName": "CreateCluster", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateCluster", - "service": { - "shortName": "BigtableInstanceAdmin", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetCluster_async", - "title": "bigtable getCluster Sample", - "origin": "API_DEFINITION", - "description": " Gets information about a cluster.", - "canonical": true, - "file": "bigtable_instance_admin.get_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCluster", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.bigtable.admin.v2.Cluster", - "client": { - "shortName": "BigtableInstanceAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" - }, - "method": { - "shortName": "GetCluster", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetCluster", - "service": { - "shortName": "BigtableInstanceAdmin", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListClusters_async", - "title": "bigtable listClusters Sample", - "origin": "API_DEFINITION", - "description": " Lists information about clusters in an instance.", - "canonical": true, - "file": "bigtable_instance_admin.list_clusters.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListClusters", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListClusters", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.bigtable.admin.v2.ListClustersResponse", - "client": { - "shortName": "BigtableInstanceAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" - }, - "method": { - "shortName": "ListClusters", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListClusters", - "service": { - "shortName": "BigtableInstanceAdmin", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateCluster_async", - "title": "bigtable updateCluster Sample", - "origin": "API_DEFINITION", - "description": " Updates a cluster within an instance. Note that UpdateCluster does not support updating cluster_config.cluster_autoscaling_config. In order to update it, you must use PartialUpdateCluster.", - "canonical": true, - "file": "bigtable_instance_admin.update_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 93, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCluster", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "location", - "type": "TYPE_STRING" - }, - { - "name": "state", - "type": ".google.bigtable.admin.v2.Cluster.State" - }, - { - "name": "serve_nodes", - "type": "TYPE_INT32" - }, - { - "name": "node_scaling_factor", - "type": ".google.bigtable.admin.v2.Cluster.NodeScalingFactor" - }, - { - "name": "cluster_config", - "type": ".google.bigtable.admin.v2.Cluster.ClusterConfig" - }, - { - "name": "default_storage_type", - "type": ".google.bigtable.admin.v2.StorageType" - }, - { - "name": "encryption_config", - "type": ".google.bigtable.admin.v2.Cluster.EncryptionConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BigtableInstanceAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" - }, - "method": { - "shortName": "UpdateCluster", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateCluster", - "service": { - "shortName": "BigtableInstanceAdmin", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_PartialUpdateCluster_async", - "title": "bigtable partialUpdateCluster Sample", - "origin": "API_DEFINITION", - "description": " Partially updates a cluster within a project. This method is the preferred way to update a Cluster. To enable and update autoscaling, set cluster_config.cluster_autoscaling_config. When autoscaling is enabled, serve_nodes is treated as an OUTPUT_ONLY field, meaning that updates to it are ignored. Note that an update cannot simultaneously set serve_nodes to non-zero and cluster_config.cluster_autoscaling_config to non-empty, and also specify both in the update_mask. To disable autoscaling, clear cluster_config.cluster_autoscaling_config, and explicitly set a serve_node count via the update_mask.", - "canonical": true, - "file": "bigtable_instance_admin.partial_update_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PartialUpdateCluster", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.PartialUpdateCluster", - "async": true, - "parameters": [ - { - "name": "cluster", - "type": ".google.bigtable.admin.v2.Cluster" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BigtableInstanceAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" - }, - "method": { - "shortName": "PartialUpdateCluster", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.PartialUpdateCluster", - "service": { - "shortName": "BigtableInstanceAdmin", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteCluster_async", - "title": "bigtable deleteCluster Sample", - "origin": "API_DEFINITION", - "description": " Deletes a cluster from an instance.", - "canonical": true, - "file": "bigtable_instance_admin.delete_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCluster", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "BigtableInstanceAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" - }, - "method": { - "shortName": "DeleteCluster", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteCluster", - "service": { - "shortName": "BigtableInstanceAdmin", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateAppProfile_async", - "title": "bigtable createAppProfile Sample", - "origin": "API_DEFINITION", - "description": " Creates an app profile within an instance.", - "canonical": true, - "file": "bigtable_instance_admin.create_app_profile.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAppProfile", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateAppProfile", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "app_profile_id", - "type": "TYPE_STRING" - }, - { - "name": "app_profile", - "type": ".google.bigtable.admin.v2.AppProfile" - }, - { - "name": "ignore_warnings", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.bigtable.admin.v2.AppProfile", - "client": { - "shortName": "BigtableInstanceAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" - }, - "method": { - "shortName": "CreateAppProfile", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateAppProfile", - "service": { - "shortName": "BigtableInstanceAdmin", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetAppProfile_async", - "title": "bigtable getAppProfile Sample", - "origin": "API_DEFINITION", - "description": " Gets information about an app profile.", - "canonical": true, - "file": "bigtable_instance_admin.get_app_profile.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAppProfile", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetAppProfile", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.bigtable.admin.v2.AppProfile", - "client": { - "shortName": "BigtableInstanceAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" - }, - "method": { - "shortName": "GetAppProfile", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetAppProfile", - "service": { - "shortName": "BigtableInstanceAdmin", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListAppProfiles_async", - "title": "bigtable listAppProfiles Sample", - "origin": "API_DEFINITION", - "description": " Lists information about app profiles in an instance.", - "canonical": true, - "file": "bigtable_instance_admin.list_app_profiles.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAppProfiles", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListAppProfiles", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.bigtable.admin.v2.ListAppProfilesResponse", - "client": { - "shortName": "BigtableInstanceAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" - }, - "method": { - "shortName": "ListAppProfiles", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListAppProfiles", - "service": { - "shortName": "BigtableInstanceAdmin", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateAppProfile_async", - "title": "bigtable updateAppProfile Sample", - "origin": "API_DEFINITION", - "description": " Updates an app profile within an instance.", - "canonical": true, - "file": "bigtable_instance_admin.update_app_profile.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAppProfile", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateAppProfile", - "async": true, - "parameters": [ - { - "name": "app_profile", - "type": ".google.bigtable.admin.v2.AppProfile" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "ignore_warnings", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BigtableInstanceAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" - }, - "method": { - "shortName": "UpdateAppProfile", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateAppProfile", - "service": { - "shortName": "BigtableInstanceAdmin", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteAppProfile_async", - "title": "bigtable deleteAppProfile Sample", - "origin": "API_DEFINITION", - "description": " Deletes an app profile from an instance.", - "canonical": true, - "file": "bigtable_instance_admin.delete_app_profile.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAppProfile", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteAppProfile", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "ignore_warnings", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "BigtableInstanceAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" - }, - "method": { - "shortName": "DeleteAppProfile", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteAppProfile", - "service": { - "shortName": "BigtableInstanceAdmin", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetIamPolicy_async", - "title": "bigtable getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for an instance resource. Returns an empty policy if an instance exists but does not have a policy set.", - "canonical": true, - "file": "bigtable_instance_admin.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": ".google.iam.v1.GetPolicyOptions" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "BigtableInstanceAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetIamPolicy", - "service": { - "shortName": "BigtableInstanceAdmin", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_SetIamPolicy_async", - "title": "bigtable setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on an instance resource. Replaces any existing policy.", - "canonical": true, - "file": "bigtable_instance_admin.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.iam.v1.Policy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "BigtableInstanceAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.SetIamPolicy", - "service": { - "shortName": "BigtableInstanceAdmin", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_TestIamPermissions_async", - "title": "bigtable testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that the caller has on the specified instance resource.", - "canonical": true, - "file": "bigtable_instance_admin.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "permissions", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.iam.v1.TestIamPermissionsResponse", - "client": { - "shortName": "BigtableInstanceAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.TestIamPermissions", - "service": { - "shortName": "BigtableInstanceAdmin", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListHotTablets_async", - "title": "bigtable listHotTablets Sample", - "origin": "API_DEFINITION", - "description": " Lists hot tablets in a cluster, within the time range provided. Hot tablets are ordered based on CPU usage.", - "canonical": true, - "file": "bigtable_instance_admin.list_hot_tablets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListHotTablets", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListHotTablets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "start_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "end_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.bigtable.admin.v2.ListHotTabletsResponse", - "client": { - "shortName": "BigtableInstanceAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" - }, - "method": { - "shortName": "ListHotTablets", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListHotTablets", - "service": { - "shortName": "BigtableInstanceAdmin", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateLogicalView_async", - "title": "bigtable createLogicalView Sample", - "origin": "API_DEFINITION", - "description": " Creates a logical view within an instance.", - "canonical": true, - "file": "bigtable_instance_admin.create_logical_view.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateLogicalView", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateLogicalView", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "logical_view_id", - "type": "TYPE_STRING" - }, - { - "name": "logical_view", - "type": ".google.bigtable.admin.v2.LogicalView" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BigtableInstanceAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" - }, - "method": { - "shortName": "CreateLogicalView", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateLogicalView", - "service": { - "shortName": "BigtableInstanceAdmin", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetLogicalView_async", - "title": "bigtable getLogicalView Sample", - "origin": "API_DEFINITION", - "description": " Gets information about a logical view.", - "canonical": true, - "file": "bigtable_instance_admin.get_logical_view.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetLogicalView", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetLogicalView", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.bigtable.admin.v2.LogicalView", - "client": { - "shortName": "BigtableInstanceAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" - }, - "method": { - "shortName": "GetLogicalView", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetLogicalView", - "service": { - "shortName": "BigtableInstanceAdmin", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListLogicalViews_async", - "title": "bigtable listLogicalViews Sample", - "origin": "API_DEFINITION", - "description": " Lists information about logical views in an instance.", - "canonical": true, - "file": "bigtable_instance_admin.list_logical_views.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListLogicalViews", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListLogicalViews", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.bigtable.admin.v2.ListLogicalViewsResponse", - "client": { - "shortName": "BigtableInstanceAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" - }, - "method": { - "shortName": "ListLogicalViews", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListLogicalViews", - "service": { - "shortName": "BigtableInstanceAdmin", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateLogicalView_async", - "title": "bigtable updateLogicalView Sample", - "origin": "API_DEFINITION", - "description": " Updates a logical view within an instance.", - "canonical": true, - "file": "bigtable_instance_admin.update_logical_view.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateLogicalView", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateLogicalView", - "async": true, - "parameters": [ - { - "name": "logical_view", - "type": ".google.bigtable.admin.v2.LogicalView" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BigtableInstanceAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" - }, - "method": { - "shortName": "UpdateLogicalView", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateLogicalView", - "service": { - "shortName": "BigtableInstanceAdmin", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteLogicalView_async", - "title": "bigtable deleteLogicalView Sample", - "origin": "API_DEFINITION", - "description": " Deletes a logical view from an instance.", - "canonical": true, - "file": "bigtable_instance_admin.delete_logical_view.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteLogicalView", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteLogicalView", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "BigtableInstanceAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" - }, - "method": { - "shortName": "DeleteLogicalView", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteLogicalView", - "service": { - "shortName": "BigtableInstanceAdmin", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_CreateMaterializedView_async", - "title": "bigtable createMaterializedView Sample", - "origin": "API_DEFINITION", - "description": " Creates a materialized view within an instance.", - "canonical": true, - "file": "bigtable_instance_admin.create_materialized_view.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateMaterializedView", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateMaterializedView", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "materialized_view_id", - "type": "TYPE_STRING" - }, - { - "name": "materialized_view", - "type": ".google.bigtable.admin.v2.MaterializedView" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BigtableInstanceAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" - }, - "method": { - "shortName": "CreateMaterializedView", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.CreateMaterializedView", - "service": { - "shortName": "BigtableInstanceAdmin", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_GetMaterializedView_async", - "title": "bigtable getMaterializedView Sample", - "origin": "API_DEFINITION", - "description": " Gets information about a materialized view.", - "canonical": true, - "file": "bigtable_instance_admin.get_materialized_view.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMaterializedView", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetMaterializedView", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.bigtable.admin.v2.MaterializedView", - "client": { - "shortName": "BigtableInstanceAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" - }, - "method": { - "shortName": "GetMaterializedView", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.GetMaterializedView", - "service": { - "shortName": "BigtableInstanceAdmin", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_ListMaterializedViews_async", - "title": "bigtable listMaterializedViews Sample", - "origin": "API_DEFINITION", - "description": " Lists information about materialized views in an instance.", - "canonical": true, - "file": "bigtable_instance_admin.list_materialized_views.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMaterializedViews", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListMaterializedViews", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.bigtable.admin.v2.ListMaterializedViewsResponse", - "client": { - "shortName": "BigtableInstanceAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" - }, - "method": { - "shortName": "ListMaterializedViews", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.ListMaterializedViews", - "service": { - "shortName": "BigtableInstanceAdmin", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_UpdateMaterializedView_async", - "title": "bigtable updateMaterializedView Sample", - "origin": "API_DEFINITION", - "description": " Updates a materialized view within an instance.", - "canonical": true, - "file": "bigtable_instance_admin.update_materialized_view.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateMaterializedView", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateMaterializedView", - "async": true, - "parameters": [ - { - "name": "materialized_view", - "type": ".google.bigtable.admin.v2.MaterializedView" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BigtableInstanceAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" - }, - "method": { - "shortName": "UpdateMaterializedView", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.UpdateMaterializedView", - "service": { - "shortName": "BigtableInstanceAdmin", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableInstanceAdmin_DeleteMaterializedView_async", - "title": "bigtable deleteMaterializedView Sample", - "origin": "API_DEFINITION", - "description": " Deletes a materialized view from an instance.", - "canonical": true, - "file": "bigtable_instance_admin.delete_materialized_view.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteMaterializedView", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteMaterializedView", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "BigtableInstanceAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdminClient" - }, - "method": { - "shortName": "DeleteMaterializedView", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin.DeleteMaterializedView", - "service": { - "shortName": "BigtableInstanceAdmin", - "fullName": "google.bigtable.admin.v2.BigtableInstanceAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateTable_async", - "title": "bigtable createTable Sample", - "origin": "API_DEFINITION", - "description": " Creates a new table in the specified instance. The table can be created with a full set of initial column families, specified in the request.", - "canonical": true, - "file": "bigtable_table_admin.create_table.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTable", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CreateTable", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "table_id", - "type": "TYPE_STRING" - }, - { - "name": "table", - "type": ".google.bigtable.admin.v2.Table" - }, - { - "name": "initial_splits", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.bigtable.admin.v2.Table", - "client": { - "shortName": "BigtableTableAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" - }, - "method": { - "shortName": "CreateTable", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CreateTable", - "service": { - "shortName": "BigtableTableAdmin", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateTableFromSnapshot_async", - "title": "bigtable createTableFromSnapshot Sample", - "origin": "API_DEFINITION", - "description": " Creates a new table from the specified snapshot. The target table must not exist. The snapshot and the table must be in the same instance. Note: This is a private alpha release of Cloud Bigtable snapshots. This feature is not currently available to most Cloud Bigtable customers. This feature might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy.", - "canonical": true, - "file": "bigtable_table_admin.create_table_from_snapshot.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTableFromSnapshot", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CreateTableFromSnapshot", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "table_id", - "type": "TYPE_STRING" - }, - { - "name": "source_snapshot", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BigtableTableAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" - }, - "method": { - "shortName": "CreateTableFromSnapshot", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CreateTableFromSnapshot", - "service": { - "shortName": "BigtableTableAdmin", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListTables_async", - "title": "bigtable listTables Sample", - "origin": "API_DEFINITION", - "description": " Lists all tables served from a specified instance.", - "canonical": true, - "file": "bigtable_table_admin.list_tables.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTables", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.ListTables", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.bigtable.admin.v2.Table.View" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.bigtable.admin.v2.ListTablesResponse", - "client": { - "shortName": "BigtableTableAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" - }, - "method": { - "shortName": "ListTables", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.ListTables", - "service": { - "shortName": "BigtableTableAdmin", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetTable_async", - "title": "bigtable getTable Sample", - "origin": "API_DEFINITION", - "description": " Gets metadata information about the specified table.", - "canonical": true, - "file": "bigtable_table_admin.get_table.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTable", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GetTable", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.bigtable.admin.v2.Table.View" - } - ], - "resultType": ".google.bigtable.admin.v2.Table", - "client": { - "shortName": "BigtableTableAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" - }, - "method": { - "shortName": "GetTable", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GetTable", - "service": { - "shortName": "BigtableTableAdmin", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_UpdateTable_async", - "title": "bigtable updateTable Sample", - "origin": "API_DEFINITION", - "description": " Updates a specified table.", - "canonical": true, - "file": "bigtable_table_admin.update_table.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTable", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.UpdateTable", - "async": true, - "parameters": [ - { - "name": "table", - "type": ".google.bigtable.admin.v2.Table" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "ignore_warnings", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BigtableTableAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" - }, - "method": { - "shortName": "UpdateTable", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.UpdateTable", - "service": { - "shortName": "BigtableTableAdmin", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteTable_async", - "title": "bigtable deleteTable Sample", - "origin": "API_DEFINITION", - "description": " Permanently deletes a specified table and all of its data.", - "canonical": true, - "file": "bigtable_table_admin.delete_table.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTable", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteTable", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "BigtableTableAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" - }, - "method": { - "shortName": "DeleteTable", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteTable", - "service": { - "shortName": "BigtableTableAdmin", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_UndeleteTable_async", - "title": "bigtable undeleteTable Sample", - "origin": "API_DEFINITION", - "description": " Restores a specified table which was accidentally deleted.", - "canonical": true, - "file": "bigtable_table_admin.undelete_table.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UndeleteTable", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.UndeleteTable", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BigtableTableAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" - }, - "method": { - "shortName": "UndeleteTable", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.UndeleteTable", - "service": { - "shortName": "BigtableTableAdmin", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateAuthorizedView_async", - "title": "bigtable createAuthorizedView Sample", - "origin": "API_DEFINITION", - "description": " Creates a new AuthorizedView in a table.", - "canonical": true, - "file": "bigtable_table_admin.create_authorized_view.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAuthorizedView", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CreateAuthorizedView", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "authorized_view_id", - "type": "TYPE_STRING" - }, - { - "name": "authorized_view", - "type": ".google.bigtable.admin.v2.AuthorizedView" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BigtableTableAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" - }, - "method": { - "shortName": "CreateAuthorizedView", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CreateAuthorizedView", - "service": { - "shortName": "BigtableTableAdmin", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListAuthorizedViews_async", - "title": "bigtable listAuthorizedViews Sample", - "origin": "API_DEFINITION", - "description": " Lists all AuthorizedViews from a specific table.", - "canonical": true, - "file": "bigtable_table_admin.list_authorized_views.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAuthorizedViews", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.ListAuthorizedViews", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.bigtable.admin.v2.AuthorizedView.ResponseView" - } - ], - "resultType": ".google.bigtable.admin.v2.ListAuthorizedViewsResponse", - "client": { - "shortName": "BigtableTableAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" - }, - "method": { - "shortName": "ListAuthorizedViews", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.ListAuthorizedViews", - "service": { - "shortName": "BigtableTableAdmin", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetAuthorizedView_async", - "title": "bigtable getAuthorizedView Sample", - "origin": "API_DEFINITION", - "description": " Gets information from a specified AuthorizedView.", - "canonical": true, - "file": "bigtable_table_admin.get_authorized_view.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAuthorizedView", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GetAuthorizedView", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.bigtable.admin.v2.AuthorizedView.ResponseView" - } - ], - "resultType": ".google.bigtable.admin.v2.AuthorizedView", - "client": { - "shortName": "BigtableTableAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" - }, - "method": { - "shortName": "GetAuthorizedView", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GetAuthorizedView", - "service": { - "shortName": "BigtableTableAdmin", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_UpdateAuthorizedView_async", - "title": "bigtable updateAuthorizedView Sample", - "origin": "API_DEFINITION", - "description": " Updates an AuthorizedView in a table.", - "canonical": true, - "file": "bigtable_table_admin.update_authorized_view.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAuthorizedView", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.UpdateAuthorizedView", - "async": true, - "parameters": [ - { - "name": "authorized_view", - "type": ".google.bigtable.admin.v2.AuthorizedView" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "ignore_warnings", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BigtableTableAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" - }, - "method": { - "shortName": "UpdateAuthorizedView", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.UpdateAuthorizedView", - "service": { - "shortName": "BigtableTableAdmin", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteAuthorizedView_async", - "title": "bigtable deleteAuthorizedView Sample", - "origin": "API_DEFINITION", - "description": " Permanently deletes a specified AuthorizedView.", - "canonical": true, - "file": "bigtable_table_admin.delete_authorized_view.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAuthorizedView", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteAuthorizedView", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "BigtableTableAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" - }, - "method": { - "shortName": "DeleteAuthorizedView", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteAuthorizedView", - "service": { - "shortName": "BigtableTableAdmin", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_ModifyColumnFamilies_async", - "title": "bigtable modifyColumnFamilies Sample", - "origin": "API_DEFINITION", - "description": " Performs a series of column family modifications on the specified table. Either all or none of the modifications will occur before this method returns, but data requests received prior to that point may see a table where only some modifications have taken effect.", - "canonical": true, - "file": "bigtable_table_admin.modify_column_families.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ModifyColumnFamilies", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.ModifyColumnFamilies", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "modifications", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "ignore_warnings", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.bigtable.admin.v2.Table", - "client": { - "shortName": "BigtableTableAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" - }, - "method": { - "shortName": "ModifyColumnFamilies", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.ModifyColumnFamilies", - "service": { - "shortName": "BigtableTableAdmin", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_DropRowRange_async", - "title": "bigtable dropRowRange Sample", - "origin": "API_DEFINITION", - "description": " Permanently drop/delete a row range from a specified table. The request can specify whether to delete all rows in a table, or only those that match a particular prefix.", - "canonical": true, - "file": "bigtable_table_admin.drop_row_range.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DropRowRange", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.DropRowRange", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "row_key_prefix", - "type": "TYPE_BYTES" - }, - { - "name": "delete_all_data_from_table", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "BigtableTableAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" - }, - "method": { - "shortName": "DropRowRange", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.DropRowRange", - "service": { - "shortName": "BigtableTableAdmin", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_GenerateConsistencyToken_async", - "title": "bigtable generateConsistencyToken Sample", - "origin": "API_DEFINITION", - "description": " Generates a consistency token for a Table, which can be used in CheckConsistency to check whether mutations to the table that finished before this call started have been replicated. The tokens will be available for 90 days.", - "canonical": true, - "file": "bigtable_table_admin.generate_consistency_token.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateConsistencyToken", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyToken", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.bigtable.admin.v2.GenerateConsistencyTokenResponse", - "client": { - "shortName": "BigtableTableAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" - }, - "method": { - "shortName": "GenerateConsistencyToken", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyToken", - "service": { - "shortName": "BigtableTableAdmin", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_CheckConsistency_async", - "title": "bigtable checkConsistency Sample", - "origin": "API_DEFINITION", - "description": " Checks replication consistency based on a consistency token, that is, if replication has caught up based on the conditions specified in the token and the check request.", - "canonical": true, - "file": "bigtable_table_admin.check_consistency.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CheckConsistency", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "consistency_token", - "type": "TYPE_STRING" - }, - { - "name": "standard_read_remote_writes", - "type": ".google.bigtable.admin.v2.StandardReadRemoteWrites" - }, - { - "name": "data_boost_read_local_writes", - "type": ".google.bigtable.admin.v2.DataBoostReadLocalWrites" - } - ], - "resultType": ".google.bigtable.admin.v2.CheckConsistencyResponse", - "client": { - "shortName": "BigtableTableAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" - }, - "method": { - "shortName": "CheckConsistency", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency", - "service": { - "shortName": "BigtableTableAdmin", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_SnapshotTable_async", - "title": "bigtable snapshotTable Sample", - "origin": "API_DEFINITION", - "description": " Creates a new snapshot in the specified cluster from the specified source table. The cluster and the table must be in the same instance. Note: This is a private alpha release of Cloud Bigtable snapshots. This feature is not currently available to most Cloud Bigtable customers. This feature might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy.", - "canonical": true, - "file": "bigtable_table_admin.snapshot_table.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SnapshotTable", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.SnapshotTable", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "cluster", - "type": "TYPE_STRING" - }, - { - "name": "snapshot_id", - "type": "TYPE_STRING" - }, - { - "name": "ttl", - "type": ".google.protobuf.Duration" - }, - { - "name": "description", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BigtableTableAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" - }, - "method": { - "shortName": "SnapshotTable", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.SnapshotTable", - "service": { - "shortName": "BigtableTableAdmin", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetSnapshot_async", - "title": "bigtable getSnapshot Sample", - "origin": "API_DEFINITION", - "description": " Gets metadata information about the specified snapshot. Note: This is a private alpha release of Cloud Bigtable snapshots. This feature is not currently available to most Cloud Bigtable customers. This feature might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy.", - "canonical": true, - "file": "bigtable_table_admin.get_snapshot.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSnapshot", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GetSnapshot", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.bigtable.admin.v2.Snapshot", - "client": { - "shortName": "BigtableTableAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" - }, - "method": { - "shortName": "GetSnapshot", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GetSnapshot", - "service": { - "shortName": "BigtableTableAdmin", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListSnapshots_async", - "title": "bigtable listSnapshots Sample", - "origin": "API_DEFINITION", - "description": " Lists all snapshots associated with the specified cluster. Note: This is a private alpha release of Cloud Bigtable snapshots. This feature is not currently available to most Cloud Bigtable customers. This feature might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy.", - "canonical": true, - "file": "bigtable_table_admin.list_snapshots.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSnapshots", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.ListSnapshots", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.bigtable.admin.v2.ListSnapshotsResponse", - "client": { - "shortName": "BigtableTableAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" - }, - "method": { - "shortName": "ListSnapshots", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.ListSnapshots", - "service": { - "shortName": "BigtableTableAdmin", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSnapshot_async", - "title": "bigtable deleteSnapshot Sample", - "origin": "API_DEFINITION", - "description": " Permanently deletes the specified snapshot. Note: This is a private alpha release of Cloud Bigtable snapshots. This feature is not currently available to most Cloud Bigtable customers. This feature might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy.", - "canonical": true, - "file": "bigtable_table_admin.delete_snapshot.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSnapshot", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteSnapshot", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "BigtableTableAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" - }, - "method": { - "shortName": "DeleteSnapshot", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteSnapshot", - "service": { - "shortName": "BigtableTableAdmin", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateBackup_async", - "title": "bigtable createBackup Sample", - "origin": "API_DEFINITION", - "description": " Starts creating a new Cloud Bigtable Backup. The returned backup [long-running operation][google.longrunning.Operation] can be used to track creation of the backup. The [metadata][google.longrunning.Operation.metadata] field type is [CreateBackupMetadata][google.bigtable.admin.v2.CreateBackupMetadata]. The [response][google.longrunning.Operation.response] field type is [Backup][google.bigtable.admin.v2.Backup], if successful. Cancelling the returned operation will stop the creation and delete the backup.", - "canonical": true, - "file": "bigtable_table_admin.create_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateBackup", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "backup_id", - "type": "TYPE_STRING" - }, - { - "name": "backup", - "type": ".google.bigtable.admin.v2.Backup" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BigtableTableAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" - }, - "method": { - "shortName": "CreateBackup", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup", - "service": { - "shortName": "BigtableTableAdmin", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetBackup_async", - "title": "bigtable getBackup Sample", - "origin": "API_DEFINITION", - "description": " Gets metadata on a pending or completed Cloud Bigtable Backup.", - "canonical": true, - "file": "bigtable_table_admin.get_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBackup", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GetBackup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.bigtable.admin.v2.Backup", - "client": { - "shortName": "BigtableTableAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" - }, - "method": { - "shortName": "GetBackup", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GetBackup", - "service": { - "shortName": "BigtableTableAdmin", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_UpdateBackup_async", - "title": "bigtable updateBackup Sample", - "origin": "API_DEFINITION", - "description": " Updates a pending or completed Cloud Bigtable Backup.", - "canonical": true, - "file": "bigtable_table_admin.update_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateBackup", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.UpdateBackup", - "async": true, - "parameters": [ - { - "name": "backup", - "type": ".google.bigtable.admin.v2.Backup" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.bigtable.admin.v2.Backup", - "client": { - "shortName": "BigtableTableAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" - }, - "method": { - "shortName": "UpdateBackup", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.UpdateBackup", - "service": { - "shortName": "BigtableTableAdmin", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteBackup_async", - "title": "bigtable deleteBackup Sample", - "origin": "API_DEFINITION", - "description": " Deletes a pending or completed Cloud Bigtable backup.", - "canonical": true, - "file": "bigtable_table_admin.delete_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteBackup", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteBackup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "BigtableTableAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" - }, - "method": { - "shortName": "DeleteBackup", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteBackup", - "service": { - "shortName": "BigtableTableAdmin", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListBackups_async", - "title": "bigtable listBackups Sample", - "origin": "API_DEFINITION", - "description": " Lists Cloud Bigtable backups. Returns both completed and pending backups.", - "canonical": true, - "file": "bigtable_table_admin.list_backups.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 123, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBackups", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.ListBackups", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.bigtable.admin.v2.ListBackupsResponse", - "client": { - "shortName": "BigtableTableAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" - }, - "method": { - "shortName": "ListBackups", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.ListBackups", - "service": { - "shortName": "BigtableTableAdmin", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_RestoreTable_async", - "title": "bigtable restoreTable Sample", - "origin": "API_DEFINITION", - "description": " Create a new table by restoring from a completed backup. The returned table [long-running operation][google.longrunning.Operation] can be used to track the progress of the operation, and to cancel it. The [metadata][google.longrunning.Operation.metadata] field type is [RestoreTableMetadata][google.bigtable.admin.v2.RestoreTableMetadata]. The [response][google.longrunning.Operation.response] type is [Table][google.bigtable.admin.v2.Table], if successful.", - "canonical": true, - "file": "bigtable_table_admin.restore_table.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RestoreTable", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "table_id", - "type": "TYPE_STRING" - }, - { - "name": "backup", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BigtableTableAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" - }, - "method": { - "shortName": "RestoreTable", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable", - "service": { - "shortName": "BigtableTableAdmin", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_CopyBackup_async", - "title": "bigtable copyBackup Sample", - "origin": "API_DEFINITION", - "description": " Copy a Cloud Bigtable backup to a new backup in the destination cluster located in the destination instance and project.", - "canonical": true, - "file": "bigtable_table_admin.copy_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CopyBackup", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CopyBackup", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "backup_id", - "type": "TYPE_STRING" - }, - { - "name": "source_backup", - "type": "TYPE_STRING" - }, - { - "name": "expire_time", - "type": ".google.protobuf.Timestamp" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BigtableTableAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" - }, - "method": { - "shortName": "CopyBackup", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CopyBackup", - "service": { - "shortName": "BigtableTableAdmin", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetIamPolicy_async", - "title": "bigtable getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a Bigtable resource. Returns an empty policy if the resource exists but does not have a policy set.", - "canonical": true, - "file": "bigtable_table_admin.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": ".google.iam.v1.GetPolicyOptions" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "BigtableTableAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GetIamPolicy", - "service": { - "shortName": "BigtableTableAdmin", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_SetIamPolicy_async", - "title": "bigtable setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on a Bigtable resource. Replaces any existing policy.", - "canonical": true, - "file": "bigtable_table_admin.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.iam.v1.Policy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "BigtableTableAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.SetIamPolicy", - "service": { - "shortName": "BigtableTableAdmin", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_TestIamPermissions_async", - "title": "bigtable testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that the caller has on the specified Bigtable resource.", - "canonical": true, - "file": "bigtable_table_admin.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "permissions", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.iam.v1.TestIamPermissionsResponse", - "client": { - "shortName": "BigtableTableAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.TestIamPermissions", - "service": { - "shortName": "BigtableTableAdmin", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_CreateSchemaBundle_async", - "title": "bigtable createSchemaBundle Sample", - "origin": "API_DEFINITION", - "description": " Creates a new schema bundle in the specified table.", - "canonical": true, - "file": "bigtable_table_admin.create_schema_bundle.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSchemaBundle", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CreateSchemaBundle", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "schema_bundle_id", - "type": "TYPE_STRING" - }, - { - "name": "schema_bundle", - "type": ".google.bigtable.admin.v2.SchemaBundle" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BigtableTableAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" - }, - "method": { - "shortName": "CreateSchemaBundle", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.CreateSchemaBundle", - "service": { - "shortName": "BigtableTableAdmin", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_UpdateSchemaBundle_async", - "title": "bigtable updateSchemaBundle Sample", - "origin": "API_DEFINITION", - "description": " Updates a schema bundle in the specified table.", - "canonical": true, - "file": "bigtable_table_admin.update_schema_bundle.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSchemaBundle", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.UpdateSchemaBundle", - "async": true, - "parameters": [ - { - "name": "schema_bundle", - "type": ".google.bigtable.admin.v2.SchemaBundle" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "ignore_warnings", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BigtableTableAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" - }, - "method": { - "shortName": "UpdateSchemaBundle", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.UpdateSchemaBundle", - "service": { - "shortName": "BigtableTableAdmin", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_GetSchemaBundle_async", - "title": "bigtable getSchemaBundle Sample", - "origin": "API_DEFINITION", - "description": " Gets metadata information about the specified schema bundle.", - "canonical": true, - "file": "bigtable_table_admin.get_schema_bundle.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSchemaBundle", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GetSchemaBundle", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.bigtable.admin.v2.SchemaBundle", - "client": { - "shortName": "BigtableTableAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" - }, - "method": { - "shortName": "GetSchemaBundle", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.GetSchemaBundle", - "service": { - "shortName": "BigtableTableAdmin", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_ListSchemaBundles_async", - "title": "bigtable listSchemaBundles Sample", - "origin": "API_DEFINITION", - "description": " Lists all schema bundles associated with the specified table.", - "canonical": true, - "file": "bigtable_table_admin.list_schema_bundles.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSchemaBundles", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.ListSchemaBundles", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.bigtable.admin.v2.ListSchemaBundlesResponse", - "client": { - "shortName": "BigtableTableAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" - }, - "method": { - "shortName": "ListSchemaBundles", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.ListSchemaBundles", - "service": { - "shortName": "BigtableTableAdmin", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - } - }, - { - "regionTag": "bigtableadmin_v2_generated_BigtableTableAdmin_DeleteSchemaBundle_async", - "title": "bigtable deleteSchemaBundle Sample", - "origin": "API_DEFINITION", - "description": " Deletes a schema bundle in the specified table.", - "canonical": true, - "file": "bigtable_table_admin.delete_schema_bundle.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSchemaBundle", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteSchemaBundle", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "BigtableTableAdminClient", - "fullName": "google.bigtable.admin.v2.BigtableTableAdminClient" - }, - "method": { - "shortName": "DeleteSchemaBundle", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin.DeleteSchemaBundle", - "service": { - "shortName": "BigtableTableAdmin", - "fullName": "google.bigtable.admin.v2.BigtableTableAdmin" - } - } - } - } - ] -} diff --git a/handwritten/datastore/samples/generated/v1/snippet_metadata.google.datastore.admin.v1.json b/handwritten/datastore/samples/generated/v1/snippet_metadata.google.datastore.admin.v1.json deleted file mode 100644 index 41431b0f77a1..000000000000 --- a/handwritten/datastore/samples/generated/v1/snippet_metadata.google.datastore.admin.v1.json +++ /dev/null @@ -1,303 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-admin", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.datastore.admin.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "datastore_v1_generated_DatastoreAdmin_ExportEntities_async", - "title": "DatastoreAdmin exportEntities Sample", - "origin": "API_DEFINITION", - "description": " Exports a copy of all or a subset of entities from Google Cloud Datastore to another storage system, such as Google Cloud Storage. Recent updates to entities may not be reflected in the export. The export occurs in the background and its progress can be monitored and managed via the Operation resource that is created. The output of an export may only be used once the associated operation is done. If an export operation is cancelled before completion it may leave partial data behind in Google Cloud Storage.", - "canonical": true, - "file": "datastore_admin.export_entities.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportEntities", - "fullName": "google.datastore.admin.v1.DatastoreAdmin.ExportEntities", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "labels", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "entity_filter", - "type": ".google.datastore.admin.v1.EntityFilter" - }, - { - "name": "output_url_prefix", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DatastoreAdminClient", - "fullName": "google.datastore.admin.v1.DatastoreAdminClient" - }, - "method": { - "shortName": "ExportEntities", - "fullName": "google.datastore.admin.v1.DatastoreAdmin.ExportEntities", - "service": { - "shortName": "DatastoreAdmin", - "fullName": "google.datastore.admin.v1.DatastoreAdmin" - } - } - } - }, - { - "regionTag": "datastore_v1_generated_DatastoreAdmin_ImportEntities_async", - "title": "DatastoreAdmin importEntities Sample", - "origin": "API_DEFINITION", - "description": " Imports entities into Google Cloud Datastore. Existing entities with the same key are overwritten. The import occurs in the background and its progress can be monitored and managed via the Operation resource that is created. If an ImportEntities operation is cancelled, it is possible that a subset of the data has already been imported to Cloud Datastore.", - "canonical": true, - "file": "datastore_admin.import_entities.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportEntities", - "fullName": "google.datastore.admin.v1.DatastoreAdmin.ImportEntities", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "labels", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "input_url", - "type": "TYPE_STRING" - }, - { - "name": "entity_filter", - "type": ".google.datastore.admin.v1.EntityFilter" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DatastoreAdminClient", - "fullName": "google.datastore.admin.v1.DatastoreAdminClient" - }, - "method": { - "shortName": "ImportEntities", - "fullName": "google.datastore.admin.v1.DatastoreAdmin.ImportEntities", - "service": { - "shortName": "DatastoreAdmin", - "fullName": "google.datastore.admin.v1.DatastoreAdmin" - } - } - } - }, - { - "regionTag": "datastore_v1_generated_DatastoreAdmin_CreateIndex_async", - "title": "DatastoreAdmin createIndex Sample", - "origin": "API_DEFINITION", - "description": " Creates the specified index. A newly created index's initial state is `CREATING`. On completion of the returned [google.longrunning.Operation][google.longrunning.Operation], the state will be `READY`. If the index already exists, the call will return an `ALREADY_EXISTS` status. During index creation, the process could result in an error, in which case the index will move to the `ERROR` state. The process can be recovered by fixing the data that caused the error, removing the index with [delete][google.datastore.admin.v1.DatastoreAdmin.DeleteIndex], then re-creating the index with [create] [google.datastore.admin.v1.DatastoreAdmin.CreateIndex]. Indexes with a single property cannot be created.", - "canonical": true, - "file": "datastore_admin.create_index.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateIndex", - "fullName": "google.datastore.admin.v1.DatastoreAdmin.CreateIndex", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "index", - "type": ".google.datastore.admin.v1.Index" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DatastoreAdminClient", - "fullName": "google.datastore.admin.v1.DatastoreAdminClient" - }, - "method": { - "shortName": "CreateIndex", - "fullName": "google.datastore.admin.v1.DatastoreAdmin.CreateIndex", - "service": { - "shortName": "DatastoreAdmin", - "fullName": "google.datastore.admin.v1.DatastoreAdmin" - } - } - } - }, - { - "regionTag": "datastore_v1_generated_DatastoreAdmin_DeleteIndex_async", - "title": "DatastoreAdmin deleteIndex Sample", - "origin": "API_DEFINITION", - "description": " Deletes an existing index. An index can only be deleted if it is in a `READY` or `ERROR` state. On successful execution of the request, the index will be in a `DELETING` [state][google.datastore.admin.v1.Index.State]. And on completion of the returned [google.longrunning.Operation][google.longrunning.Operation], the index will be removed. During index deletion, the process could result in an error, in which case the index will move to the `ERROR` state. The process can be recovered by fixing the data that caused the error, followed by calling [delete][google.datastore.admin.v1.DatastoreAdmin.DeleteIndex] again.", - "canonical": true, - "file": "datastore_admin.delete_index.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteIndex", - "fullName": "google.datastore.admin.v1.DatastoreAdmin.DeleteIndex", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "index_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DatastoreAdminClient", - "fullName": "google.datastore.admin.v1.DatastoreAdminClient" - }, - "method": { - "shortName": "DeleteIndex", - "fullName": "google.datastore.admin.v1.DatastoreAdmin.DeleteIndex", - "service": { - "shortName": "DatastoreAdmin", - "fullName": "google.datastore.admin.v1.DatastoreAdmin" - } - } - } - }, - { - "regionTag": "datastore_v1_generated_DatastoreAdmin_GetIndex_async", - "title": "DatastoreAdmin getIndex Sample", - "origin": "API_DEFINITION", - "description": " Gets an index.", - "canonical": true, - "file": "datastore_admin.get_index.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIndex", - "fullName": "google.datastore.admin.v1.DatastoreAdmin.GetIndex", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "index_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.datastore.admin.v1.Index", - "client": { - "shortName": "DatastoreAdminClient", - "fullName": "google.datastore.admin.v1.DatastoreAdminClient" - }, - "method": { - "shortName": "GetIndex", - "fullName": "google.datastore.admin.v1.DatastoreAdmin.GetIndex", - "service": { - "shortName": "DatastoreAdmin", - "fullName": "google.datastore.admin.v1.DatastoreAdmin" - } - } - } - }, - { - "regionTag": "datastore_v1_generated_DatastoreAdmin_ListIndexes_async", - "title": "DatastoreAdmin listIndexes Sample", - "origin": "API_DEFINITION", - "description": " Lists the indexes that match the specified filters. Datastore uses an eventually consistent query to fetch the list of indexes and may occasionally return stale results.", - "canonical": true, - "file": "datastore_admin.list_indexes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListIndexes", - "fullName": "google.datastore.admin.v1.DatastoreAdmin.ListIndexes", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.datastore.admin.v1.ListIndexesResponse", - "client": { - "shortName": "DatastoreAdminClient", - "fullName": "google.datastore.admin.v1.DatastoreAdminClient" - }, - "method": { - "shortName": "ListIndexes", - "fullName": "google.datastore.admin.v1.DatastoreAdmin.ListIndexes", - "service": { - "shortName": "DatastoreAdmin", - "fullName": "google.datastore.admin.v1.DatastoreAdmin" - } - } - } - } - ] -} diff --git a/handwritten/datastore/samples/generated/v1/snippet_metadata.google.datastore.v1.json b/handwritten/datastore/samples/generated/v1/snippet_metadata.google.datastore.v1.json deleted file mode 100644 index 27ec516fcc5d..000000000000 --- a/handwritten/datastore/samples/generated/v1/snippet_metadata.google.datastore.v1.json +++ /dev/null @@ -1,439 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-datastore", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.datastore.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "datastore_v1_generated_Datastore_Lookup_async", - "title": "datastore lookup Sample", - "origin": "API_DEFINITION", - "description": " Looks up entities by key.", - "canonical": true, - "file": "datastore.lookup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Lookup", - "fullName": "google.datastore.v1.Datastore.Lookup", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "database_id", - "type": "TYPE_STRING" - }, - { - "name": "read_options", - "type": ".google.datastore.v1.ReadOptions" - }, - { - "name": "keys", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.datastore.v1.LookupResponse", - "client": { - "shortName": "DatastoreClient", - "fullName": "google.datastore.v1.DatastoreClient" - }, - "method": { - "shortName": "Lookup", - "fullName": "google.datastore.v1.Datastore.Lookup", - "service": { - "shortName": "Datastore", - "fullName": "google.datastore.v1.Datastore" - } - } - } - }, - { - "regionTag": "datastore_v1_generated_Datastore_RunQuery_async", - "title": "datastore runQuery Sample", - "origin": "API_DEFINITION", - "description": " Queries for entities.", - "canonical": true, - "file": "datastore.run_query.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RunQuery", - "fullName": "google.datastore.v1.Datastore.RunQuery", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "database_id", - "type": "TYPE_STRING" - }, - { - "name": "partition_id", - "type": ".google.datastore.v1.PartitionId" - }, - { - "name": "read_options", - "type": ".google.datastore.v1.ReadOptions" - }, - { - "name": "query", - "type": ".google.datastore.v1.Query" - }, - { - "name": "gql_query", - "type": ".google.datastore.v1.GqlQuery" - } - ], - "resultType": ".google.datastore.v1.RunQueryResponse", - "client": { - "shortName": "DatastoreClient", - "fullName": "google.datastore.v1.DatastoreClient" - }, - "method": { - "shortName": "RunQuery", - "fullName": "google.datastore.v1.Datastore.RunQuery", - "service": { - "shortName": "Datastore", - "fullName": "google.datastore.v1.Datastore" - } - } - } - }, - { - "regionTag": "datastore_v1_generated_Datastore_RunAggregationQuery_async", - "title": "datastore runAggregationQuery Sample", - "origin": "API_DEFINITION", - "description": " Runs an aggregation query.", - "canonical": true, - "file": "datastore.run_aggregation_query.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RunAggregationQuery", - "fullName": "google.datastore.v1.Datastore.RunAggregationQuery", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "database_id", - "type": "TYPE_STRING" - }, - { - "name": "partition_id", - "type": ".google.datastore.v1.PartitionId" - }, - { - "name": "read_options", - "type": ".google.datastore.v1.ReadOptions" - }, - { - "name": "aggregation_query", - "type": ".google.datastore.v1.AggregationQuery" - }, - { - "name": "gql_query", - "type": ".google.datastore.v1.GqlQuery" - } - ], - "resultType": ".google.datastore.v1.RunAggregationQueryResponse", - "client": { - "shortName": "DatastoreClient", - "fullName": "google.datastore.v1.DatastoreClient" - }, - "method": { - "shortName": "RunAggregationQuery", - "fullName": "google.datastore.v1.Datastore.RunAggregationQuery", - "service": { - "shortName": "Datastore", - "fullName": "google.datastore.v1.Datastore" - } - } - } - }, - { - "regionTag": "datastore_v1_generated_Datastore_BeginTransaction_async", - "title": "datastore beginTransaction Sample", - "origin": "API_DEFINITION", - "description": " Begins a new transaction.", - "canonical": true, - "file": "datastore.begin_transaction.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BeginTransaction", - "fullName": "google.datastore.v1.Datastore.BeginTransaction", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "database_id", - "type": "TYPE_STRING" - }, - { - "name": "transaction_options", - "type": ".google.datastore.v1.TransactionOptions" - } - ], - "resultType": ".google.datastore.v1.BeginTransactionResponse", - "client": { - "shortName": "DatastoreClient", - "fullName": "google.datastore.v1.DatastoreClient" - }, - "method": { - "shortName": "BeginTransaction", - "fullName": "google.datastore.v1.Datastore.BeginTransaction", - "service": { - "shortName": "Datastore", - "fullName": "google.datastore.v1.Datastore" - } - } - } - }, - { - "regionTag": "datastore_v1_generated_Datastore_Commit_async", - "title": "datastore commit Sample", - "origin": "API_DEFINITION", - "description": " Commits a transaction, optionally creating, deleting or modifying some entities.", - "canonical": true, - "file": "datastore.commit.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 89, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Commit", - "fullName": "google.datastore.v1.Datastore.Commit", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "database_id", - "type": "TYPE_STRING" - }, - { - "name": "mode", - "type": ".google.datastore.v1.CommitRequest.Mode" - }, - { - "name": "transaction", - "type": "TYPE_BYTES" - }, - { - "name": "single_use_transaction", - "type": ".google.datastore.v1.TransactionOptions" - }, - { - "name": "mutations", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.datastore.v1.CommitResponse", - "client": { - "shortName": "DatastoreClient", - "fullName": "google.datastore.v1.DatastoreClient" - }, - "method": { - "shortName": "Commit", - "fullName": "google.datastore.v1.Datastore.Commit", - "service": { - "shortName": "Datastore", - "fullName": "google.datastore.v1.Datastore" - } - } - } - }, - { - "regionTag": "datastore_v1_generated_Datastore_Rollback_async", - "title": "datastore rollback Sample", - "origin": "API_DEFINITION", - "description": " Rolls back a transaction.", - "canonical": true, - "file": "datastore.rollback.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Rollback", - "fullName": "google.datastore.v1.Datastore.Rollback", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "database_id", - "type": "TYPE_STRING" - }, - { - "name": "transaction", - "type": "TYPE_BYTES" - } - ], - "resultType": ".google.datastore.v1.RollbackResponse", - "client": { - "shortName": "DatastoreClient", - "fullName": "google.datastore.v1.DatastoreClient" - }, - "method": { - "shortName": "Rollback", - "fullName": "google.datastore.v1.Datastore.Rollback", - "service": { - "shortName": "Datastore", - "fullName": "google.datastore.v1.Datastore" - } - } - } - }, - { - "regionTag": "datastore_v1_generated_Datastore_AllocateIds_async", - "title": "datastore allocateIds Sample", - "origin": "API_DEFINITION", - "description": " Allocates IDs for the given keys, which is useful for referencing an entity before it is inserted.", - "canonical": true, - "file": "datastore.allocate_ids.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AllocateIds", - "fullName": "google.datastore.v1.Datastore.AllocateIds", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "database_id", - "type": "TYPE_STRING" - }, - { - "name": "keys", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.datastore.v1.AllocateIdsResponse", - "client": { - "shortName": "DatastoreClient", - "fullName": "google.datastore.v1.DatastoreClient" - }, - "method": { - "shortName": "AllocateIds", - "fullName": "google.datastore.v1.Datastore.AllocateIds", - "service": { - "shortName": "Datastore", - "fullName": "google.datastore.v1.Datastore" - } - } - } - }, - { - "regionTag": "datastore_v1_generated_Datastore_ReserveIds_async", - "title": "datastore reserveIds Sample", - "origin": "API_DEFINITION", - "description": " Prevents the supplied keys' IDs from being auto-allocated by Cloud Datastore.", - "canonical": true, - "file": "datastore.reserve_ids.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReserveIds", - "fullName": "google.datastore.v1.Datastore.ReserveIds", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "database_id", - "type": "TYPE_STRING" - }, - { - "name": "keys", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.datastore.v1.ReserveIdsResponse", - "client": { - "shortName": "DatastoreClient", - "fullName": "google.datastore.v1.DatastoreClient" - }, - "method": { - "shortName": "ReserveIds", - "fullName": "google.datastore.v1.Datastore.ReserveIds", - "service": { - "shortName": "Datastore", - "fullName": "google.datastore.v1.Datastore" - } - } - } - } - ] -} diff --git a/handwritten/datastore/samples/generated/v1/snippet_metadata_google.datastore.admin.v1.json b/handwritten/datastore/samples/generated/v1/snippet_metadata_google.datastore.admin.v1.json deleted file mode 100644 index a96b7eab4d24..000000000000 --- a/handwritten/datastore/samples/generated/v1/snippet_metadata_google.datastore.admin.v1.json +++ /dev/null @@ -1,303 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-admin", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.datastore.admin.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "datastore_v1_generated_DatastoreAdmin_ExportEntities_async", - "title": "DatastoreAdmin exportEntities Sample", - "origin": "API_DEFINITION", - "description": " Exports a copy of all or a subset of entities from Google Cloud Datastore to another storage system, such as Google Cloud Storage. Recent updates to entities may not be reflected in the export. The export occurs in the background and its progress can be monitored and managed via the Operation resource that is created. The output of an export may only be used once the associated operation is done. If an export operation is cancelled before completion it may leave partial data behind in Google Cloud Storage.", - "canonical": true, - "file": "datastore_admin.export_entities.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportEntities", - "fullName": "google.datastore.admin.v1.DatastoreAdmin.ExportEntities", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "labels", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "entity_filter", - "type": ".google.datastore.admin.v1.EntityFilter" - }, - { - "name": "output_url_prefix", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DatastoreAdminClient", - "fullName": "google.datastore.admin.v1.DatastoreAdminClient" - }, - "method": { - "shortName": "ExportEntities", - "fullName": "google.datastore.admin.v1.DatastoreAdmin.ExportEntities", - "service": { - "shortName": "DatastoreAdmin", - "fullName": "google.datastore.admin.v1.DatastoreAdmin" - } - } - } - }, - { - "regionTag": "datastore_v1_generated_DatastoreAdmin_ImportEntities_async", - "title": "DatastoreAdmin importEntities Sample", - "origin": "API_DEFINITION", - "description": " Imports entities into Google Cloud Datastore. Existing entities with the same key are overwritten. The import occurs in the background and its progress can be monitored and managed via the Operation resource that is created. If an ImportEntities operation is cancelled, it is possible that a subset of the data has already been imported to Cloud Datastore.", - "canonical": true, - "file": "datastore_admin.import_entities.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportEntities", - "fullName": "google.datastore.admin.v1.DatastoreAdmin.ImportEntities", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "labels", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "input_url", - "type": "TYPE_STRING" - }, - { - "name": "entity_filter", - "type": ".google.datastore.admin.v1.EntityFilter" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DatastoreAdminClient", - "fullName": "google.datastore.admin.v1.DatastoreAdminClient" - }, - "method": { - "shortName": "ImportEntities", - "fullName": "google.datastore.admin.v1.DatastoreAdmin.ImportEntities", - "service": { - "shortName": "DatastoreAdmin", - "fullName": "google.datastore.admin.v1.DatastoreAdmin" - } - } - } - }, - { - "regionTag": "datastore_v1_generated_DatastoreAdmin_CreateIndex_async", - "title": "DatastoreAdmin createIndex Sample", - "origin": "API_DEFINITION", - "description": " Creates the specified index. A newly created index's initial state is `CREATING`. On completion of the returned [google.longrunning.Operation][google.longrunning.Operation], the state will be `READY`. If the index already exists, the call will return an `ALREADY_EXISTS` status. During index creation, the process could result in an error, in which case the index will move to the `ERROR` state. The process can be recovered by fixing the data that caused the error, removing the index with [delete][google.datastore.admin.v1.DatastoreAdmin.DeleteIndex], then re-creating the index with [create] [google.datastore.admin.v1.DatastoreAdmin.CreateIndex]. Indexes with a single property cannot be created.", - "canonical": true, - "file": "datastore_admin.create_index.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateIndex", - "fullName": "google.datastore.admin.v1.DatastoreAdmin.CreateIndex", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "index", - "type": ".google.datastore.admin.v1.Index" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DatastoreAdminClient", - "fullName": "google.datastore.admin.v1.DatastoreAdminClient" - }, - "method": { - "shortName": "CreateIndex", - "fullName": "google.datastore.admin.v1.DatastoreAdmin.CreateIndex", - "service": { - "shortName": "DatastoreAdmin", - "fullName": "google.datastore.admin.v1.DatastoreAdmin" - } - } - } - }, - { - "regionTag": "datastore_v1_generated_DatastoreAdmin_DeleteIndex_async", - "title": "DatastoreAdmin deleteIndex Sample", - "origin": "API_DEFINITION", - "description": " Deletes an existing index. An index can only be deleted if it is in a `READY` or `ERROR` state. On successful execution of the request, the index will be in a `DELETING` [state][google.datastore.admin.v1.Index.State]. And on completion of the returned [google.longrunning.Operation][google.longrunning.Operation], the index will be removed. During index deletion, the process could result in an error, in which case the index will move to the `ERROR` state. The process can be recovered by fixing the data that caused the error, followed by calling [delete][google.datastore.admin.v1.DatastoreAdmin.DeleteIndex] again.", - "canonical": true, - "file": "datastore_admin.delete_index.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteIndex", - "fullName": "google.datastore.admin.v1.DatastoreAdmin.DeleteIndex", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "index_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DatastoreAdminClient", - "fullName": "google.datastore.admin.v1.DatastoreAdminClient" - }, - "method": { - "shortName": "DeleteIndex", - "fullName": "google.datastore.admin.v1.DatastoreAdmin.DeleteIndex", - "service": { - "shortName": "DatastoreAdmin", - "fullName": "google.datastore.admin.v1.DatastoreAdmin" - } - } - } - }, - { - "regionTag": "datastore_v1_generated_DatastoreAdmin_GetIndex_async", - "title": "DatastoreAdmin getIndex Sample", - "origin": "API_DEFINITION", - "description": " Gets an index.", - "canonical": true, - "file": "datastore_admin.get_index.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIndex", - "fullName": "google.datastore.admin.v1.DatastoreAdmin.GetIndex", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "index_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.datastore.admin.v1.Index", - "client": { - "shortName": "DatastoreAdminClient", - "fullName": "google.datastore.admin.v1.DatastoreAdminClient" - }, - "method": { - "shortName": "GetIndex", - "fullName": "google.datastore.admin.v1.DatastoreAdmin.GetIndex", - "service": { - "shortName": "DatastoreAdmin", - "fullName": "google.datastore.admin.v1.DatastoreAdmin" - } - } - } - }, - { - "regionTag": "datastore_v1_generated_DatastoreAdmin_ListIndexes_async", - "title": "DatastoreAdmin listIndexes Sample", - "origin": "API_DEFINITION", - "description": " Lists the indexes that match the specified filters. Datastore uses an eventually consistent query to fetch the list of indexes and may occasionally return stale results.", - "canonical": true, - "file": "datastore_admin.list_indexes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListIndexes", - "fullName": "google.datastore.admin.v1.DatastoreAdmin.ListIndexes", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.datastore.admin.v1.ListIndexesResponse", - "client": { - "shortName": "DatastoreAdminClient", - "fullName": "google.datastore.admin.v1.DatastoreAdminClient" - }, - "method": { - "shortName": "ListIndexes", - "fullName": "google.datastore.admin.v1.DatastoreAdmin.ListIndexes", - "service": { - "shortName": "DatastoreAdmin", - "fullName": "google.datastore.admin.v1.DatastoreAdmin" - } - } - } - } - ] -} diff --git a/handwritten/datastore/samples/generated/v1/snippet_metadata_google.datastore.v1.json b/handwritten/datastore/samples/generated/v1/snippet_metadata_google.datastore.v1.json deleted file mode 100644 index ea85b6beb2c5..000000000000 --- a/handwritten/datastore/samples/generated/v1/snippet_metadata_google.datastore.v1.json +++ /dev/null @@ -1,455 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-datastore", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.datastore.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "datastore_v1_generated_Datastore_Lookup_async", - "title": "datastore lookup Sample", - "origin": "API_DEFINITION", - "description": " Looks up entities by key.", - "canonical": true, - "file": "datastore.lookup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Lookup", - "fullName": "google.datastore.v1.Datastore.Lookup", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "database_id", - "type": "TYPE_STRING" - }, - { - "name": "read_options", - "type": ".google.datastore.v1.ReadOptions" - }, - { - "name": "keys", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "property_mask", - "type": ".google.datastore.v1.PropertyMask" - } - ], - "resultType": ".google.datastore.v1.LookupResponse", - "client": { - "shortName": "DatastoreClient", - "fullName": "google.datastore.v1.DatastoreClient" - }, - "method": { - "shortName": "Lookup", - "fullName": "google.datastore.v1.Datastore.Lookup", - "service": { - "shortName": "Datastore", - "fullName": "google.datastore.v1.Datastore" - } - } - } - }, - { - "regionTag": "datastore_v1_generated_Datastore_RunQuery_async", - "title": "datastore runQuery Sample", - "origin": "API_DEFINITION", - "description": " Queries for entities.", - "canonical": true, - "file": "datastore.run_query.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 90, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RunQuery", - "fullName": "google.datastore.v1.Datastore.RunQuery", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "database_id", - "type": "TYPE_STRING" - }, - { - "name": "partition_id", - "type": ".google.datastore.v1.PartitionId" - }, - { - "name": "read_options", - "type": ".google.datastore.v1.ReadOptions" - }, - { - "name": "query", - "type": ".google.datastore.v1.Query" - }, - { - "name": "gql_query", - "type": ".google.datastore.v1.GqlQuery" - }, - { - "name": "property_mask", - "type": ".google.datastore.v1.PropertyMask" - }, - { - "name": "explain_options", - "type": ".google.datastore.v1.ExplainOptions" - } - ], - "resultType": ".google.datastore.v1.RunQueryResponse", - "client": { - "shortName": "DatastoreClient", - "fullName": "google.datastore.v1.DatastoreClient" - }, - "method": { - "shortName": "RunQuery", - "fullName": "google.datastore.v1.Datastore.RunQuery", - "service": { - "shortName": "Datastore", - "fullName": "google.datastore.v1.Datastore" - } - } - } - }, - { - "regionTag": "datastore_v1_generated_Datastore_RunAggregationQuery_async", - "title": "datastore runAggregationQuery Sample", - "origin": "API_DEFINITION", - "description": " Runs an aggregation query.", - "canonical": true, - "file": "datastore.run_aggregation_query.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RunAggregationQuery", - "fullName": "google.datastore.v1.Datastore.RunAggregationQuery", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "database_id", - "type": "TYPE_STRING" - }, - { - "name": "partition_id", - "type": ".google.datastore.v1.PartitionId" - }, - { - "name": "read_options", - "type": ".google.datastore.v1.ReadOptions" - }, - { - "name": "aggregation_query", - "type": ".google.datastore.v1.AggregationQuery" - }, - { - "name": "gql_query", - "type": ".google.datastore.v1.GqlQuery" - }, - { - "name": "explain_options", - "type": ".google.datastore.v1.ExplainOptions" - } - ], - "resultType": ".google.datastore.v1.RunAggregationQueryResponse", - "client": { - "shortName": "DatastoreClient", - "fullName": "google.datastore.v1.DatastoreClient" - }, - "method": { - "shortName": "RunAggregationQuery", - "fullName": "google.datastore.v1.Datastore.RunAggregationQuery", - "service": { - "shortName": "Datastore", - "fullName": "google.datastore.v1.Datastore" - } - } - } - }, - { - "regionTag": "datastore_v1_generated_Datastore_BeginTransaction_async", - "title": "datastore beginTransaction Sample", - "origin": "API_DEFINITION", - "description": " Begins a new transaction.", - "canonical": true, - "file": "datastore.begin_transaction.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BeginTransaction", - "fullName": "google.datastore.v1.Datastore.BeginTransaction", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "database_id", - "type": "TYPE_STRING" - }, - { - "name": "transaction_options", - "type": ".google.datastore.v1.TransactionOptions" - } - ], - "resultType": ".google.datastore.v1.BeginTransactionResponse", - "client": { - "shortName": "DatastoreClient", - "fullName": "google.datastore.v1.DatastoreClient" - }, - "method": { - "shortName": "BeginTransaction", - "fullName": "google.datastore.v1.Datastore.BeginTransaction", - "service": { - "shortName": "Datastore", - "fullName": "google.datastore.v1.Datastore" - } - } - } - }, - { - "regionTag": "datastore_v1_generated_Datastore_Commit_async", - "title": "datastore commit Sample", - "origin": "API_DEFINITION", - "description": " Commits a transaction, optionally creating, deleting or modifying some entities.", - "canonical": true, - "file": "datastore.commit.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 89, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Commit", - "fullName": "google.datastore.v1.Datastore.Commit", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "database_id", - "type": "TYPE_STRING" - }, - { - "name": "mode", - "type": ".google.datastore.v1.CommitRequest.Mode" - }, - { - "name": "transaction", - "type": "TYPE_BYTES" - }, - { - "name": "single_use_transaction", - "type": ".google.datastore.v1.TransactionOptions" - }, - { - "name": "mutations", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.datastore.v1.CommitResponse", - "client": { - "shortName": "DatastoreClient", - "fullName": "google.datastore.v1.DatastoreClient" - }, - "method": { - "shortName": "Commit", - "fullName": "google.datastore.v1.Datastore.Commit", - "service": { - "shortName": "Datastore", - "fullName": "google.datastore.v1.Datastore" - } - } - } - }, - { - "regionTag": "datastore_v1_generated_Datastore_Rollback_async", - "title": "datastore rollback Sample", - "origin": "API_DEFINITION", - "description": " Rolls back a transaction.", - "canonical": true, - "file": "datastore.rollback.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Rollback", - "fullName": "google.datastore.v1.Datastore.Rollback", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "database_id", - "type": "TYPE_STRING" - }, - { - "name": "transaction", - "type": "TYPE_BYTES" - } - ], - "resultType": ".google.datastore.v1.RollbackResponse", - "client": { - "shortName": "DatastoreClient", - "fullName": "google.datastore.v1.DatastoreClient" - }, - "method": { - "shortName": "Rollback", - "fullName": "google.datastore.v1.Datastore.Rollback", - "service": { - "shortName": "Datastore", - "fullName": "google.datastore.v1.Datastore" - } - } - } - }, - { - "regionTag": "datastore_v1_generated_Datastore_AllocateIds_async", - "title": "datastore allocateIds Sample", - "origin": "API_DEFINITION", - "description": " Allocates IDs for the given keys, which is useful for referencing an entity before it is inserted.", - "canonical": true, - "file": "datastore.allocate_ids.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AllocateIds", - "fullName": "google.datastore.v1.Datastore.AllocateIds", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "database_id", - "type": "TYPE_STRING" - }, - { - "name": "keys", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.datastore.v1.AllocateIdsResponse", - "client": { - "shortName": "DatastoreClient", - "fullName": "google.datastore.v1.DatastoreClient" - }, - "method": { - "shortName": "AllocateIds", - "fullName": "google.datastore.v1.Datastore.AllocateIds", - "service": { - "shortName": "Datastore", - "fullName": "google.datastore.v1.Datastore" - } - } - } - }, - { - "regionTag": "datastore_v1_generated_Datastore_ReserveIds_async", - "title": "datastore reserveIds Sample", - "origin": "API_DEFINITION", - "description": " Prevents the supplied keys' IDs from being auto-allocated by Cloud Datastore.", - "canonical": true, - "file": "datastore.reserve_ids.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReserveIds", - "fullName": "google.datastore.v1.Datastore.ReserveIds", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "database_id", - "type": "TYPE_STRING" - }, - { - "name": "keys", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.datastore.v1.ReserveIdsResponse", - "client": { - "shortName": "DatastoreClient", - "fullName": "google.datastore.v1.DatastoreClient" - }, - "method": { - "shortName": "ReserveIds", - "fullName": "google.datastore.v1.Datastore.ReserveIds", - "service": { - "shortName": "Datastore", - "fullName": "google.datastore.v1.Datastore" - } - } - } - } - ] -} diff --git a/handwritten/logging/samples/generated/v2/snippet_metadata.google.logging.v2.json b/handwritten/logging/samples/generated/v2/snippet_metadata.google.logging.v2.json deleted file mode 100644 index ca8724bf4fa4..000000000000 --- a/handwritten/logging/samples/generated/v2/snippet_metadata.google.logging.v2.json +++ /dev/null @@ -1,1963 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-logging", - "version": "11.2.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.logging.v2", - "version": "v2" - } - ] - }, - "snippets": [ - { - "regionTag": "logging_v2_generated_ConfigServiceV2_ListBuckets_async", - "title": "logging listBuckets Sample", - "origin": "API_DEFINITION", - "description": " Lists log buckets.", - "canonical": true, - "file": "config_service_v2.list_buckets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBuckets", - "fullName": "google.logging.v2.ConfigServiceV2.ListBuckets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.logging.v2.ListBucketsResponse", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "ListBuckets", - "fullName": "google.logging.v2.ConfigServiceV2.ListBuckets", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_GetBucket_async", - "title": "logging getBucket Sample", - "origin": "API_DEFINITION", - "description": " Gets a log bucket.", - "canonical": true, - "file": "config_service_v2.get_bucket.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBucket", - "fullName": "google.logging.v2.ConfigServiceV2.GetBucket", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.logging.v2.LogBucket", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "GetBucket", - "fullName": "google.logging.v2.ConfigServiceV2.GetBucket", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_CreateBucketAsync_async", - "title": "logging createBucketAsync Sample", - "origin": "API_DEFINITION", - "description": " Creates a log bucket asynchronously that can be used to store log entries. After a bucket has been created, the bucket's location cannot be changed.", - "canonical": true, - "file": "config_service_v2.create_bucket_async.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateBucketAsync", - "fullName": "google.logging.v2.ConfigServiceV2.CreateBucketAsync", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "bucket_id", - "type": "TYPE_STRING" - }, - { - "name": "bucket", - "type": ".google.logging.v2.LogBucket" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "CreateBucketAsync", - "fullName": "google.logging.v2.ConfigServiceV2.CreateBucketAsync", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_UpdateBucketAsync_async", - "title": "logging updateBucketAsync Sample", - "origin": "API_DEFINITION", - "description": " Updates a log bucket asynchronously. If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then `FAILED_PRECONDITION` will be returned. After a bucket has been created, the bucket's location cannot be changed.", - "canonical": true, - "file": "config_service_v2.update_bucket_async.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateBucketAsync", - "fullName": "google.logging.v2.ConfigServiceV2.UpdateBucketAsync", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "bucket", - "type": ".google.logging.v2.LogBucket" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "UpdateBucketAsync", - "fullName": "google.logging.v2.ConfigServiceV2.UpdateBucketAsync", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_CreateBucket_async", - "title": "logging createBucket Sample", - "origin": "API_DEFINITION", - "description": " Creates a log bucket that can be used to store log entries. After a bucket has been created, the bucket's location cannot be changed.", - "canonical": true, - "file": "config_service_v2.create_bucket.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateBucket", - "fullName": "google.logging.v2.ConfigServiceV2.CreateBucket", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "bucket_id", - "type": "TYPE_STRING" - }, - { - "name": "bucket", - "type": ".google.logging.v2.LogBucket" - } - ], - "resultType": ".google.logging.v2.LogBucket", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "CreateBucket", - "fullName": "google.logging.v2.ConfigServiceV2.CreateBucket", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_UpdateBucket_async", - "title": "logging updateBucket Sample", - "origin": "API_DEFINITION", - "description": " Updates a log bucket. If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then `FAILED_PRECONDITION` will be returned. After a bucket has been created, the bucket's location cannot be changed.", - "canonical": true, - "file": "config_service_v2.update_bucket.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateBucket", - "fullName": "google.logging.v2.ConfigServiceV2.UpdateBucket", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "bucket", - "type": ".google.logging.v2.LogBucket" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.logging.v2.LogBucket", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "UpdateBucket", - "fullName": "google.logging.v2.ConfigServiceV2.UpdateBucket", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_DeleteBucket_async", - "title": "logging deleteBucket Sample", - "origin": "API_DEFINITION", - "description": " Deletes a log bucket. Changes the bucket's `lifecycle_state` to the `DELETE_REQUESTED` state. After 7 days, the bucket will be purged and all log entries in the bucket will be permanently deleted.", - "canonical": true, - "file": "config_service_v2.delete_bucket.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteBucket", - "fullName": "google.logging.v2.ConfigServiceV2.DeleteBucket", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "DeleteBucket", - "fullName": "google.logging.v2.ConfigServiceV2.DeleteBucket", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_UndeleteBucket_async", - "title": "logging undeleteBucket Sample", - "origin": "API_DEFINITION", - "description": " Undeletes a log bucket. A bucket that has been deleted can be undeleted within the grace period of 7 days.", - "canonical": true, - "file": "config_service_v2.undelete_bucket.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UndeleteBucket", - "fullName": "google.logging.v2.ConfigServiceV2.UndeleteBucket", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "UndeleteBucket", - "fullName": "google.logging.v2.ConfigServiceV2.UndeleteBucket", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_ListViews_async", - "title": "logging listViews Sample", - "origin": "API_DEFINITION", - "description": " Lists views on a log bucket.", - "canonical": true, - "file": "config_service_v2.list_views.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListViews", - "fullName": "google.logging.v2.ConfigServiceV2.ListViews", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.logging.v2.ListViewsResponse", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "ListViews", - "fullName": "google.logging.v2.ConfigServiceV2.ListViews", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_GetView_async", - "title": "logging getView Sample", - "origin": "API_DEFINITION", - "description": " Gets a view on a log bucket..", - "canonical": true, - "file": "config_service_v2.get_view.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetView", - "fullName": "google.logging.v2.ConfigServiceV2.GetView", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.logging.v2.LogView", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "GetView", - "fullName": "google.logging.v2.ConfigServiceV2.GetView", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_CreateView_async", - "title": "logging createView Sample", - "origin": "API_DEFINITION", - "description": " Creates a view over log entries in a log bucket. A bucket may contain a maximum of 30 views.", - "canonical": true, - "file": "config_service_v2.create_view.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateView", - "fullName": "google.logging.v2.ConfigServiceV2.CreateView", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "view_id", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.logging.v2.LogView" - } - ], - "resultType": ".google.logging.v2.LogView", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "CreateView", - "fullName": "google.logging.v2.ConfigServiceV2.CreateView", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_UpdateView_async", - "title": "logging updateView Sample", - "origin": "API_DEFINITION", - "description": " Updates a view on a log bucket. This method replaces the following fields in the existing view with values from the new view: `filter`. If an `UNAVAILABLE` error is returned, this indicates that system is not in a state where it can update the view. If this occurs, please try again in a few minutes.", - "canonical": true, - "file": "config_service_v2.update_view.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateView", - "fullName": "google.logging.v2.ConfigServiceV2.UpdateView", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.logging.v2.LogView" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.logging.v2.LogView", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "UpdateView", - "fullName": "google.logging.v2.ConfigServiceV2.UpdateView", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_DeleteView_async", - "title": "logging deleteView Sample", - "origin": "API_DEFINITION", - "description": " Deletes a view on a log bucket. If an `UNAVAILABLE` error is returned, this indicates that system is not in a state where it can delete the view. If this occurs, please try again in a few minutes.", - "canonical": true, - "file": "config_service_v2.delete_view.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteView", - "fullName": "google.logging.v2.ConfigServiceV2.DeleteView", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "DeleteView", - "fullName": "google.logging.v2.ConfigServiceV2.DeleteView", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_ListSinks_async", - "title": "logging listSinks Sample", - "origin": "API_DEFINITION", - "description": " Lists sinks.", - "canonical": true, - "file": "config_service_v2.list_sinks.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSinks", - "fullName": "google.logging.v2.ConfigServiceV2.ListSinks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.logging.v2.ListSinksResponse", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "ListSinks", - "fullName": "google.logging.v2.ConfigServiceV2.ListSinks", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_GetSink_async", - "title": "logging getSink Sample", - "origin": "API_DEFINITION", - "description": " Gets a sink.", - "canonical": true, - "file": "config_service_v2.get_sink.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSink", - "fullName": "google.logging.v2.ConfigServiceV2.GetSink", - "async": true, - "parameters": [ - { - "name": "sink_name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.logging.v2.LogSink", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "GetSink", - "fullName": "google.logging.v2.ConfigServiceV2.GetSink", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_CreateSink_async", - "title": "logging createSink Sample", - "origin": "API_DEFINITION", - "description": " Creates a sink that exports specified log entries to a destination. The export of newly-ingested log entries begins immediately, unless the sink's `writer_identity` is not permitted to write to the destination. A sink can export log entries only from the resource owning the sink.", - "canonical": true, - "file": "config_service_v2.create_sink.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSink", - "fullName": "google.logging.v2.ConfigServiceV2.CreateSink", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "sink", - "type": ".google.logging.v2.LogSink" - }, - { - "name": "unique_writer_identity", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.logging.v2.LogSink", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "CreateSink", - "fullName": "google.logging.v2.ConfigServiceV2.CreateSink", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_UpdateSink_async", - "title": "logging updateSink Sample", - "origin": "API_DEFINITION", - "description": " Updates a sink. This method replaces the following fields in the existing sink with values from the new sink: `destination`, and `filter`. The updated sink might also have a new `writer_identity`; see the `unique_writer_identity` field.", - "canonical": true, - "file": "config_service_v2.update_sink.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 93, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSink", - "fullName": "google.logging.v2.ConfigServiceV2.UpdateSink", - "async": true, - "parameters": [ - { - "name": "sink_name", - "type": "TYPE_STRING" - }, - { - "name": "sink", - "type": ".google.logging.v2.LogSink" - }, - { - "name": "unique_writer_identity", - "type": "TYPE_BOOL" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.logging.v2.LogSink", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "UpdateSink", - "fullName": "google.logging.v2.ConfigServiceV2.UpdateSink", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_DeleteSink_async", - "title": "logging deleteSink Sample", - "origin": "API_DEFINITION", - "description": " Deletes a sink. If the sink has a unique `writer_identity`, then that service account is also deleted.", - "canonical": true, - "file": "config_service_v2.delete_sink.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSink", - "fullName": "google.logging.v2.ConfigServiceV2.DeleteSink", - "async": true, - "parameters": [ - { - "name": "sink_name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "DeleteSink", - "fullName": "google.logging.v2.ConfigServiceV2.DeleteSink", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_CreateLink_async", - "title": "logging createLink Sample", - "origin": "API_DEFINITION", - "description": " Asynchronously creates a linked dataset in BigQuery which makes it possible to use BigQuery to read the logs stored in the log bucket. A log bucket may currently only contain one link.", - "canonical": true, - "file": "config_service_v2.create_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateLink", - "fullName": "google.logging.v2.ConfigServiceV2.CreateLink", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "link", - "type": ".google.logging.v2.Link" - }, - { - "name": "link_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "CreateLink", - "fullName": "google.logging.v2.ConfigServiceV2.CreateLink", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_DeleteLink_async", - "title": "logging deleteLink Sample", - "origin": "API_DEFINITION", - "description": " Deletes a link. This will also delete the corresponding BigQuery linked dataset.", - "canonical": true, - "file": "config_service_v2.delete_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteLink", - "fullName": "google.logging.v2.ConfigServiceV2.DeleteLink", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "DeleteLink", - "fullName": "google.logging.v2.ConfigServiceV2.DeleteLink", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_ListLinks_async", - "title": "logging listLinks Sample", - "origin": "API_DEFINITION", - "description": " Lists links.", - "canonical": true, - "file": "config_service_v2.list_links.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListLinks", - "fullName": "google.logging.v2.ConfigServiceV2.ListLinks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.logging.v2.ListLinksResponse", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "ListLinks", - "fullName": "google.logging.v2.ConfigServiceV2.ListLinks", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_GetLink_async", - "title": "logging getLink Sample", - "origin": "API_DEFINITION", - "description": " Gets a link.", - "canonical": true, - "file": "config_service_v2.get_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetLink", - "fullName": "google.logging.v2.ConfigServiceV2.GetLink", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.logging.v2.Link", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "GetLink", - "fullName": "google.logging.v2.ConfigServiceV2.GetLink", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_ListExclusions_async", - "title": "logging listExclusions Sample", - "origin": "API_DEFINITION", - "description": " Lists all the exclusions on the _Default sink in a parent resource.", - "canonical": true, - "file": "config_service_v2.list_exclusions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListExclusions", - "fullName": "google.logging.v2.ConfigServiceV2.ListExclusions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.logging.v2.ListExclusionsResponse", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "ListExclusions", - "fullName": "google.logging.v2.ConfigServiceV2.ListExclusions", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_GetExclusion_async", - "title": "logging getExclusion Sample", - "origin": "API_DEFINITION", - "description": " Gets the description of an exclusion in the _Default sink.", - "canonical": true, - "file": "config_service_v2.get_exclusion.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetExclusion", - "fullName": "google.logging.v2.ConfigServiceV2.GetExclusion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.logging.v2.LogExclusion", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "GetExclusion", - "fullName": "google.logging.v2.ConfigServiceV2.GetExclusion", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_CreateExclusion_async", - "title": "logging createExclusion Sample", - "origin": "API_DEFINITION", - "description": " Creates a new exclusion in the _Default sink in a specified parent resource. Only log entries belonging to that resource can be excluded. You can have up to 10 exclusions in a resource.", - "canonical": true, - "file": "config_service_v2.create_exclusion.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateExclusion", - "fullName": "google.logging.v2.ConfigServiceV2.CreateExclusion", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "exclusion", - "type": ".google.logging.v2.LogExclusion" - } - ], - "resultType": ".google.logging.v2.LogExclusion", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "CreateExclusion", - "fullName": "google.logging.v2.ConfigServiceV2.CreateExclusion", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_UpdateExclusion_async", - "title": "logging updateExclusion Sample", - "origin": "API_DEFINITION", - "description": " Changes one or more properties of an existing exclusion in the _Default sink.", - "canonical": true, - "file": "config_service_v2.update_exclusion.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateExclusion", - "fullName": "google.logging.v2.ConfigServiceV2.UpdateExclusion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "exclusion", - "type": ".google.logging.v2.LogExclusion" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.logging.v2.LogExclusion", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "UpdateExclusion", - "fullName": "google.logging.v2.ConfigServiceV2.UpdateExclusion", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_DeleteExclusion_async", - "title": "logging deleteExclusion Sample", - "origin": "API_DEFINITION", - "description": " Deletes an exclusion in the _Default sink.", - "canonical": true, - "file": "config_service_v2.delete_exclusion.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteExclusion", - "fullName": "google.logging.v2.ConfigServiceV2.DeleteExclusion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "DeleteExclusion", - "fullName": "google.logging.v2.ConfigServiceV2.DeleteExclusion", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_GetCmekSettings_async", - "title": "logging getCmekSettings Sample", - "origin": "API_DEFINITION", - "description": " Gets the Logging CMEK settings for the given resource. Note: CMEK for the Log Router can be configured for Google Cloud projects, folders, organizations and billing accounts. Once configured for an organization, it applies to all projects and folders in the Google Cloud organization. See [Enabling CMEK for Log Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information.", - "canonical": true, - "file": "config_service_v2.get_cmek_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCmekSettings", - "fullName": "google.logging.v2.ConfigServiceV2.GetCmekSettings", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.logging.v2.CmekSettings", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "GetCmekSettings", - "fullName": "google.logging.v2.ConfigServiceV2.GetCmekSettings", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_UpdateCmekSettings_async", - "title": "logging updateCmekSettings Sample", - "origin": "API_DEFINITION", - "description": " Updates the Log Router CMEK settings for the given resource. Note: CMEK for the Log Router can currently only be configured for Google Cloud organizations. Once configured, it applies to all projects and folders in the Google Cloud organization. [UpdateCmekSettings][google.logging.v2.ConfigServiceV2.UpdateCmekSettings] will fail if 1) `kms_key_name` is invalid, or 2) the associated service account does not have the required `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key, or 3) access to the key is disabled. See [Enabling CMEK for Log Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information.", - "canonical": true, - "file": "config_service_v2.update_cmek_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCmekSettings", - "fullName": "google.logging.v2.ConfigServiceV2.UpdateCmekSettings", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "cmek_settings", - "type": ".google.logging.v2.CmekSettings" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.logging.v2.CmekSettings", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "UpdateCmekSettings", - "fullName": "google.logging.v2.ConfigServiceV2.UpdateCmekSettings", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_GetSettings_async", - "title": "logging getSettings Sample", - "origin": "API_DEFINITION", - "description": " Gets the Log Router settings for the given resource. Note: Settings for the Log Router can be get for Google Cloud projects, folders, organizations and billing accounts. Currently it can only be configured for organizations. Once configured for an organization, it applies to all projects and folders in the Google Cloud organization. See [Enabling CMEK for Log Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information.", - "canonical": true, - "file": "config_service_v2.get_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSettings", - "fullName": "google.logging.v2.ConfigServiceV2.GetSettings", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.logging.v2.Settings", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "GetSettings", - "fullName": "google.logging.v2.ConfigServiceV2.GetSettings", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_UpdateSettings_async", - "title": "logging updateSettings Sample", - "origin": "API_DEFINITION", - "description": " Updates the Log Router settings for the given resource. Note: Settings for the Log Router can currently only be configured for Google Cloud organizations. Once configured, it applies to all projects and folders in the Google Cloud organization. [UpdateSettings][google.logging.v2.ConfigServiceV2.UpdateSettings] will fail if 1) `kms_key_name` is invalid, or 2) the associated service account does not have the required `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key, or 3) access to the key is disabled. 4) `location_id` is not supported by Logging. 5) `location_id` violate OrgPolicy. See [Enabling CMEK for Log Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information.", - "canonical": true, - "file": "config_service_v2.update_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSettings", - "fullName": "google.logging.v2.ConfigServiceV2.UpdateSettings", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "settings", - "type": ".google.logging.v2.Settings" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.logging.v2.Settings", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "UpdateSettings", - "fullName": "google.logging.v2.ConfigServiceV2.UpdateSettings", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_CopyLogEntries_async", - "title": "logging copyLogEntries Sample", - "origin": "API_DEFINITION", - "description": " Copies a set of log entries from a log bucket to a Cloud Storage bucket.", - "canonical": true, - "file": "config_service_v2.copy_log_entries.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CopyLogEntries", - "fullName": "google.logging.v2.ConfigServiceV2.CopyLogEntries", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "destination", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "CopyLogEntries", - "fullName": "google.logging.v2.ConfigServiceV2.CopyLogEntries", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_LoggingServiceV2_DeleteLog_async", - "title": "logging deleteLog Sample", - "origin": "API_DEFINITION", - "description": " Deletes all the log entries in a log for the _Default Log Bucket. The log reappears if it receives new entries. Log entries written shortly before the delete operation might not be deleted. Entries received after the delete operation with a timestamp before the operation will be deleted.", - "canonical": true, - "file": "logging_service_v2.delete_log.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteLog", - "fullName": "google.logging.v2.LoggingServiceV2.DeleteLog", - "async": true, - "parameters": [ - { - "name": "log_name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "LoggingServiceV2Client", - "fullName": "google.logging.v2.LoggingServiceV2Client" - }, - "method": { - "shortName": "DeleteLog", - "fullName": "google.logging.v2.LoggingServiceV2.DeleteLog", - "service": { - "shortName": "LoggingServiceV2", - "fullName": "google.logging.v2.LoggingServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_LoggingServiceV2_WriteLogEntries_async", - "title": "logging writeLogEntries Sample", - "origin": "API_DEFINITION", - "description": " Writes log entries to Logging. This API method is the only way to send log entries to Logging. This method is used, directly or indirectly, by the Logging agent (fluentd) and all logging libraries configured to use Logging. A single request may contain log entries for a maximum of 1000 different resources (projects, organizations, billing accounts or folders)", - "canonical": true, - "file": "logging_service_v2.write_log_entries.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 121, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "WriteLogEntries", - "fullName": "google.logging.v2.LoggingServiceV2.WriteLogEntries", - "async": true, - "parameters": [ - { - "name": "log_name", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": ".google.api.MonitoredResource" - }, - { - "name": "labels", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "entries", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "dry_run", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.logging.v2.WriteLogEntriesResponse", - "client": { - "shortName": "LoggingServiceV2Client", - "fullName": "google.logging.v2.LoggingServiceV2Client" - }, - "method": { - "shortName": "WriteLogEntries", - "fullName": "google.logging.v2.LoggingServiceV2.WriteLogEntries", - "service": { - "shortName": "LoggingServiceV2", - "fullName": "google.logging.v2.LoggingServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_LoggingServiceV2_ListLogEntries_async", - "title": "logging listLogEntries Sample", - "origin": "API_DEFINITION", - "description": " Lists log entries. Use this method to retrieve log entries that originated from a project/folder/organization/billing account. For ways to export log entries, see [Exporting Logs](https://cloud.google.com/logging/docs/export).", - "canonical": true, - "file": "logging_service_v2.list_log_entries.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 98, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListLogEntries", - "fullName": "google.logging.v2.LoggingServiceV2.ListLogEntries", - "async": true, - "parameters": [ - { - "name": "resource_names", - "type": "TYPE_STRING[]" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.logging.v2.ListLogEntriesResponse", - "client": { - "shortName": "LoggingServiceV2Client", - "fullName": "google.logging.v2.LoggingServiceV2Client" - }, - "method": { - "shortName": "ListLogEntries", - "fullName": "google.logging.v2.LoggingServiceV2.ListLogEntries", - "service": { - "shortName": "LoggingServiceV2", - "fullName": "google.logging.v2.LoggingServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_LoggingServiceV2_ListMonitoredResourceDescriptors_async", - "title": "logging listMonitoredResourceDescriptors Sample", - "origin": "API_DEFINITION", - "description": " Lists the descriptors for monitored resource types used by Logging.", - "canonical": true, - "file": "logging_service_v2.list_monitored_resource_descriptors.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMonitoredResourceDescriptors", - "fullName": "google.logging.v2.LoggingServiceV2.ListMonitoredResourceDescriptors", - "async": true, - "parameters": [ - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.logging.v2.ListMonitoredResourceDescriptorsResponse", - "client": { - "shortName": "LoggingServiceV2Client", - "fullName": "google.logging.v2.LoggingServiceV2Client" - }, - "method": { - "shortName": "ListMonitoredResourceDescriptors", - "fullName": "google.logging.v2.LoggingServiceV2.ListMonitoredResourceDescriptors", - "service": { - "shortName": "LoggingServiceV2", - "fullName": "google.logging.v2.LoggingServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_LoggingServiceV2_ListLogs_async", - "title": "logging listLogs Sample", - "origin": "API_DEFINITION", - "description": " Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.", - "canonical": true, - "file": "logging_service_v2.list_logs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListLogs", - "fullName": "google.logging.v2.LoggingServiceV2.ListLogs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "resource_names", - "type": "TYPE_STRING[]" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.logging.v2.ListLogsResponse", - "client": { - "shortName": "LoggingServiceV2Client", - "fullName": "google.logging.v2.LoggingServiceV2Client" - }, - "method": { - "shortName": "ListLogs", - "fullName": "google.logging.v2.LoggingServiceV2.ListLogs", - "service": { - "shortName": "LoggingServiceV2", - "fullName": "google.logging.v2.LoggingServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_LoggingServiceV2_TailLogEntries_async", - "title": "logging tailLogEntries Sample", - "origin": "API_DEFINITION", - "description": " Streaming read of log entries as they are ingested. Until the stream is terminated, it will continue reading logs.", - "canonical": true, - "file": "logging_service_v2.tail_log_entries.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TailLogEntries", - "fullName": "google.logging.v2.LoggingServiceV2.TailLogEntries", - "async": true, - "parameters": [ - { - "name": "resource_names", - "type": "TYPE_STRING[]" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "buffer_window", - "type": ".google.protobuf.Duration" - } - ], - "resultType": ".google.logging.v2.TailLogEntriesResponse", - "client": { - "shortName": "LoggingServiceV2Client", - "fullName": "google.logging.v2.LoggingServiceV2Client" - }, - "method": { - "shortName": "TailLogEntries", - "fullName": "google.logging.v2.LoggingServiceV2.TailLogEntries", - "service": { - "shortName": "LoggingServiceV2", - "fullName": "google.logging.v2.LoggingServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_MetricsServiceV2_ListLogMetrics_async", - "title": "logging listLogMetrics Sample", - "origin": "API_DEFINITION", - "description": " Lists logs-based metrics.", - "canonical": true, - "file": "metrics_service_v2.list_log_metrics.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListLogMetrics", - "fullName": "google.logging.v2.MetricsServiceV2.ListLogMetrics", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.logging.v2.ListLogMetricsResponse", - "client": { - "shortName": "MetricsServiceV2Client", - "fullName": "google.logging.v2.MetricsServiceV2Client" - }, - "method": { - "shortName": "ListLogMetrics", - "fullName": "google.logging.v2.MetricsServiceV2.ListLogMetrics", - "service": { - "shortName": "MetricsServiceV2", - "fullName": "google.logging.v2.MetricsServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_MetricsServiceV2_GetLogMetric_async", - "title": "logging getLogMetric Sample", - "origin": "API_DEFINITION", - "description": " Gets a logs-based metric.", - "canonical": true, - "file": "metrics_service_v2.get_log_metric.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetLogMetric", - "fullName": "google.logging.v2.MetricsServiceV2.GetLogMetric", - "async": true, - "parameters": [ - { - "name": "metric_name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.logging.v2.LogMetric", - "client": { - "shortName": "MetricsServiceV2Client", - "fullName": "google.logging.v2.MetricsServiceV2Client" - }, - "method": { - "shortName": "GetLogMetric", - "fullName": "google.logging.v2.MetricsServiceV2.GetLogMetric", - "service": { - "shortName": "MetricsServiceV2", - "fullName": "google.logging.v2.MetricsServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_MetricsServiceV2_CreateLogMetric_async", - "title": "logging createLogMetric Sample", - "origin": "API_DEFINITION", - "description": " Creates a logs-based metric.", - "canonical": true, - "file": "metrics_service_v2.create_log_metric.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateLogMetric", - "fullName": "google.logging.v2.MetricsServiceV2.CreateLogMetric", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "metric", - "type": ".google.logging.v2.LogMetric" - } - ], - "resultType": ".google.logging.v2.LogMetric", - "client": { - "shortName": "MetricsServiceV2Client", - "fullName": "google.logging.v2.MetricsServiceV2Client" - }, - "method": { - "shortName": "CreateLogMetric", - "fullName": "google.logging.v2.MetricsServiceV2.CreateLogMetric", - "service": { - "shortName": "MetricsServiceV2", - "fullName": "google.logging.v2.MetricsServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_MetricsServiceV2_UpdateLogMetric_async", - "title": "logging updateLogMetric Sample", - "origin": "API_DEFINITION", - "description": " Creates or updates a logs-based metric.", - "canonical": true, - "file": "metrics_service_v2.update_log_metric.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateLogMetric", - "fullName": "google.logging.v2.MetricsServiceV2.UpdateLogMetric", - "async": true, - "parameters": [ - { - "name": "metric_name", - "type": "TYPE_STRING" - }, - { - "name": "metric", - "type": ".google.logging.v2.LogMetric" - } - ], - "resultType": ".google.logging.v2.LogMetric", - "client": { - "shortName": "MetricsServiceV2Client", - "fullName": "google.logging.v2.MetricsServiceV2Client" - }, - "method": { - "shortName": "UpdateLogMetric", - "fullName": "google.logging.v2.MetricsServiceV2.UpdateLogMetric", - "service": { - "shortName": "MetricsServiceV2", - "fullName": "google.logging.v2.MetricsServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_MetricsServiceV2_DeleteLogMetric_async", - "title": "logging deleteLogMetric Sample", - "origin": "API_DEFINITION", - "description": " Deletes a logs-based metric.", - "canonical": true, - "file": "metrics_service_v2.delete_log_metric.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteLogMetric", - "fullName": "google.logging.v2.MetricsServiceV2.DeleteLogMetric", - "async": true, - "parameters": [ - { - "name": "metric_name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "MetricsServiceV2Client", - "fullName": "google.logging.v2.MetricsServiceV2Client" - }, - "method": { - "shortName": "DeleteLogMetric", - "fullName": "google.logging.v2.MetricsServiceV2.DeleteLogMetric", - "service": { - "shortName": "MetricsServiceV2", - "fullName": "google.logging.v2.MetricsServiceV2" - } - } - } - } - ] -} \ No newline at end of file diff --git a/handwritten/logging/samples/generated/v2/snippet_metadata_google.logging.v2.json b/handwritten/logging/samples/generated/v2/snippet_metadata_google.logging.v2.json deleted file mode 100644 index ca8724bf4fa4..000000000000 --- a/handwritten/logging/samples/generated/v2/snippet_metadata_google.logging.v2.json +++ /dev/null @@ -1,1963 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-logging", - "version": "11.2.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.logging.v2", - "version": "v2" - } - ] - }, - "snippets": [ - { - "regionTag": "logging_v2_generated_ConfigServiceV2_ListBuckets_async", - "title": "logging listBuckets Sample", - "origin": "API_DEFINITION", - "description": " Lists log buckets.", - "canonical": true, - "file": "config_service_v2.list_buckets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBuckets", - "fullName": "google.logging.v2.ConfigServiceV2.ListBuckets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.logging.v2.ListBucketsResponse", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "ListBuckets", - "fullName": "google.logging.v2.ConfigServiceV2.ListBuckets", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_GetBucket_async", - "title": "logging getBucket Sample", - "origin": "API_DEFINITION", - "description": " Gets a log bucket.", - "canonical": true, - "file": "config_service_v2.get_bucket.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBucket", - "fullName": "google.logging.v2.ConfigServiceV2.GetBucket", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.logging.v2.LogBucket", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "GetBucket", - "fullName": "google.logging.v2.ConfigServiceV2.GetBucket", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_CreateBucketAsync_async", - "title": "logging createBucketAsync Sample", - "origin": "API_DEFINITION", - "description": " Creates a log bucket asynchronously that can be used to store log entries. After a bucket has been created, the bucket's location cannot be changed.", - "canonical": true, - "file": "config_service_v2.create_bucket_async.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateBucketAsync", - "fullName": "google.logging.v2.ConfigServiceV2.CreateBucketAsync", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "bucket_id", - "type": "TYPE_STRING" - }, - { - "name": "bucket", - "type": ".google.logging.v2.LogBucket" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "CreateBucketAsync", - "fullName": "google.logging.v2.ConfigServiceV2.CreateBucketAsync", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_UpdateBucketAsync_async", - "title": "logging updateBucketAsync Sample", - "origin": "API_DEFINITION", - "description": " Updates a log bucket asynchronously. If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then `FAILED_PRECONDITION` will be returned. After a bucket has been created, the bucket's location cannot be changed.", - "canonical": true, - "file": "config_service_v2.update_bucket_async.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateBucketAsync", - "fullName": "google.logging.v2.ConfigServiceV2.UpdateBucketAsync", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "bucket", - "type": ".google.logging.v2.LogBucket" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "UpdateBucketAsync", - "fullName": "google.logging.v2.ConfigServiceV2.UpdateBucketAsync", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_CreateBucket_async", - "title": "logging createBucket Sample", - "origin": "API_DEFINITION", - "description": " Creates a log bucket that can be used to store log entries. After a bucket has been created, the bucket's location cannot be changed.", - "canonical": true, - "file": "config_service_v2.create_bucket.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateBucket", - "fullName": "google.logging.v2.ConfigServiceV2.CreateBucket", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "bucket_id", - "type": "TYPE_STRING" - }, - { - "name": "bucket", - "type": ".google.logging.v2.LogBucket" - } - ], - "resultType": ".google.logging.v2.LogBucket", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "CreateBucket", - "fullName": "google.logging.v2.ConfigServiceV2.CreateBucket", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_UpdateBucket_async", - "title": "logging updateBucket Sample", - "origin": "API_DEFINITION", - "description": " Updates a log bucket. If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then `FAILED_PRECONDITION` will be returned. After a bucket has been created, the bucket's location cannot be changed.", - "canonical": true, - "file": "config_service_v2.update_bucket.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateBucket", - "fullName": "google.logging.v2.ConfigServiceV2.UpdateBucket", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "bucket", - "type": ".google.logging.v2.LogBucket" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.logging.v2.LogBucket", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "UpdateBucket", - "fullName": "google.logging.v2.ConfigServiceV2.UpdateBucket", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_DeleteBucket_async", - "title": "logging deleteBucket Sample", - "origin": "API_DEFINITION", - "description": " Deletes a log bucket. Changes the bucket's `lifecycle_state` to the `DELETE_REQUESTED` state. After 7 days, the bucket will be purged and all log entries in the bucket will be permanently deleted.", - "canonical": true, - "file": "config_service_v2.delete_bucket.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteBucket", - "fullName": "google.logging.v2.ConfigServiceV2.DeleteBucket", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "DeleteBucket", - "fullName": "google.logging.v2.ConfigServiceV2.DeleteBucket", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_UndeleteBucket_async", - "title": "logging undeleteBucket Sample", - "origin": "API_DEFINITION", - "description": " Undeletes a log bucket. A bucket that has been deleted can be undeleted within the grace period of 7 days.", - "canonical": true, - "file": "config_service_v2.undelete_bucket.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UndeleteBucket", - "fullName": "google.logging.v2.ConfigServiceV2.UndeleteBucket", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "UndeleteBucket", - "fullName": "google.logging.v2.ConfigServiceV2.UndeleteBucket", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_ListViews_async", - "title": "logging listViews Sample", - "origin": "API_DEFINITION", - "description": " Lists views on a log bucket.", - "canonical": true, - "file": "config_service_v2.list_views.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListViews", - "fullName": "google.logging.v2.ConfigServiceV2.ListViews", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.logging.v2.ListViewsResponse", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "ListViews", - "fullName": "google.logging.v2.ConfigServiceV2.ListViews", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_GetView_async", - "title": "logging getView Sample", - "origin": "API_DEFINITION", - "description": " Gets a view on a log bucket..", - "canonical": true, - "file": "config_service_v2.get_view.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetView", - "fullName": "google.logging.v2.ConfigServiceV2.GetView", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.logging.v2.LogView", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "GetView", - "fullName": "google.logging.v2.ConfigServiceV2.GetView", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_CreateView_async", - "title": "logging createView Sample", - "origin": "API_DEFINITION", - "description": " Creates a view over log entries in a log bucket. A bucket may contain a maximum of 30 views.", - "canonical": true, - "file": "config_service_v2.create_view.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateView", - "fullName": "google.logging.v2.ConfigServiceV2.CreateView", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "view_id", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.logging.v2.LogView" - } - ], - "resultType": ".google.logging.v2.LogView", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "CreateView", - "fullName": "google.logging.v2.ConfigServiceV2.CreateView", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_UpdateView_async", - "title": "logging updateView Sample", - "origin": "API_DEFINITION", - "description": " Updates a view on a log bucket. This method replaces the following fields in the existing view with values from the new view: `filter`. If an `UNAVAILABLE` error is returned, this indicates that system is not in a state where it can update the view. If this occurs, please try again in a few minutes.", - "canonical": true, - "file": "config_service_v2.update_view.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateView", - "fullName": "google.logging.v2.ConfigServiceV2.UpdateView", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.logging.v2.LogView" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.logging.v2.LogView", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "UpdateView", - "fullName": "google.logging.v2.ConfigServiceV2.UpdateView", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_DeleteView_async", - "title": "logging deleteView Sample", - "origin": "API_DEFINITION", - "description": " Deletes a view on a log bucket. If an `UNAVAILABLE` error is returned, this indicates that system is not in a state where it can delete the view. If this occurs, please try again in a few minutes.", - "canonical": true, - "file": "config_service_v2.delete_view.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteView", - "fullName": "google.logging.v2.ConfigServiceV2.DeleteView", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "DeleteView", - "fullName": "google.logging.v2.ConfigServiceV2.DeleteView", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_ListSinks_async", - "title": "logging listSinks Sample", - "origin": "API_DEFINITION", - "description": " Lists sinks.", - "canonical": true, - "file": "config_service_v2.list_sinks.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSinks", - "fullName": "google.logging.v2.ConfigServiceV2.ListSinks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.logging.v2.ListSinksResponse", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "ListSinks", - "fullName": "google.logging.v2.ConfigServiceV2.ListSinks", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_GetSink_async", - "title": "logging getSink Sample", - "origin": "API_DEFINITION", - "description": " Gets a sink.", - "canonical": true, - "file": "config_service_v2.get_sink.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSink", - "fullName": "google.logging.v2.ConfigServiceV2.GetSink", - "async": true, - "parameters": [ - { - "name": "sink_name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.logging.v2.LogSink", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "GetSink", - "fullName": "google.logging.v2.ConfigServiceV2.GetSink", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_CreateSink_async", - "title": "logging createSink Sample", - "origin": "API_DEFINITION", - "description": " Creates a sink that exports specified log entries to a destination. The export of newly-ingested log entries begins immediately, unless the sink's `writer_identity` is not permitted to write to the destination. A sink can export log entries only from the resource owning the sink.", - "canonical": true, - "file": "config_service_v2.create_sink.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSink", - "fullName": "google.logging.v2.ConfigServiceV2.CreateSink", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "sink", - "type": ".google.logging.v2.LogSink" - }, - { - "name": "unique_writer_identity", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.logging.v2.LogSink", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "CreateSink", - "fullName": "google.logging.v2.ConfigServiceV2.CreateSink", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_UpdateSink_async", - "title": "logging updateSink Sample", - "origin": "API_DEFINITION", - "description": " Updates a sink. This method replaces the following fields in the existing sink with values from the new sink: `destination`, and `filter`. The updated sink might also have a new `writer_identity`; see the `unique_writer_identity` field.", - "canonical": true, - "file": "config_service_v2.update_sink.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 93, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSink", - "fullName": "google.logging.v2.ConfigServiceV2.UpdateSink", - "async": true, - "parameters": [ - { - "name": "sink_name", - "type": "TYPE_STRING" - }, - { - "name": "sink", - "type": ".google.logging.v2.LogSink" - }, - { - "name": "unique_writer_identity", - "type": "TYPE_BOOL" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.logging.v2.LogSink", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "UpdateSink", - "fullName": "google.logging.v2.ConfigServiceV2.UpdateSink", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_DeleteSink_async", - "title": "logging deleteSink Sample", - "origin": "API_DEFINITION", - "description": " Deletes a sink. If the sink has a unique `writer_identity`, then that service account is also deleted.", - "canonical": true, - "file": "config_service_v2.delete_sink.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSink", - "fullName": "google.logging.v2.ConfigServiceV2.DeleteSink", - "async": true, - "parameters": [ - { - "name": "sink_name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "DeleteSink", - "fullName": "google.logging.v2.ConfigServiceV2.DeleteSink", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_CreateLink_async", - "title": "logging createLink Sample", - "origin": "API_DEFINITION", - "description": " Asynchronously creates a linked dataset in BigQuery which makes it possible to use BigQuery to read the logs stored in the log bucket. A log bucket may currently only contain one link.", - "canonical": true, - "file": "config_service_v2.create_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateLink", - "fullName": "google.logging.v2.ConfigServiceV2.CreateLink", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "link", - "type": ".google.logging.v2.Link" - }, - { - "name": "link_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "CreateLink", - "fullName": "google.logging.v2.ConfigServiceV2.CreateLink", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_DeleteLink_async", - "title": "logging deleteLink Sample", - "origin": "API_DEFINITION", - "description": " Deletes a link. This will also delete the corresponding BigQuery linked dataset.", - "canonical": true, - "file": "config_service_v2.delete_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteLink", - "fullName": "google.logging.v2.ConfigServiceV2.DeleteLink", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "DeleteLink", - "fullName": "google.logging.v2.ConfigServiceV2.DeleteLink", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_ListLinks_async", - "title": "logging listLinks Sample", - "origin": "API_DEFINITION", - "description": " Lists links.", - "canonical": true, - "file": "config_service_v2.list_links.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListLinks", - "fullName": "google.logging.v2.ConfigServiceV2.ListLinks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.logging.v2.ListLinksResponse", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "ListLinks", - "fullName": "google.logging.v2.ConfigServiceV2.ListLinks", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_GetLink_async", - "title": "logging getLink Sample", - "origin": "API_DEFINITION", - "description": " Gets a link.", - "canonical": true, - "file": "config_service_v2.get_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetLink", - "fullName": "google.logging.v2.ConfigServiceV2.GetLink", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.logging.v2.Link", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "GetLink", - "fullName": "google.logging.v2.ConfigServiceV2.GetLink", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_ListExclusions_async", - "title": "logging listExclusions Sample", - "origin": "API_DEFINITION", - "description": " Lists all the exclusions on the _Default sink in a parent resource.", - "canonical": true, - "file": "config_service_v2.list_exclusions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListExclusions", - "fullName": "google.logging.v2.ConfigServiceV2.ListExclusions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.logging.v2.ListExclusionsResponse", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "ListExclusions", - "fullName": "google.logging.v2.ConfigServiceV2.ListExclusions", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_GetExclusion_async", - "title": "logging getExclusion Sample", - "origin": "API_DEFINITION", - "description": " Gets the description of an exclusion in the _Default sink.", - "canonical": true, - "file": "config_service_v2.get_exclusion.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetExclusion", - "fullName": "google.logging.v2.ConfigServiceV2.GetExclusion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.logging.v2.LogExclusion", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "GetExclusion", - "fullName": "google.logging.v2.ConfigServiceV2.GetExclusion", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_CreateExclusion_async", - "title": "logging createExclusion Sample", - "origin": "API_DEFINITION", - "description": " Creates a new exclusion in the _Default sink in a specified parent resource. Only log entries belonging to that resource can be excluded. You can have up to 10 exclusions in a resource.", - "canonical": true, - "file": "config_service_v2.create_exclusion.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateExclusion", - "fullName": "google.logging.v2.ConfigServiceV2.CreateExclusion", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "exclusion", - "type": ".google.logging.v2.LogExclusion" - } - ], - "resultType": ".google.logging.v2.LogExclusion", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "CreateExclusion", - "fullName": "google.logging.v2.ConfigServiceV2.CreateExclusion", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_UpdateExclusion_async", - "title": "logging updateExclusion Sample", - "origin": "API_DEFINITION", - "description": " Changes one or more properties of an existing exclusion in the _Default sink.", - "canonical": true, - "file": "config_service_v2.update_exclusion.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateExclusion", - "fullName": "google.logging.v2.ConfigServiceV2.UpdateExclusion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "exclusion", - "type": ".google.logging.v2.LogExclusion" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.logging.v2.LogExclusion", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "UpdateExclusion", - "fullName": "google.logging.v2.ConfigServiceV2.UpdateExclusion", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_DeleteExclusion_async", - "title": "logging deleteExclusion Sample", - "origin": "API_DEFINITION", - "description": " Deletes an exclusion in the _Default sink.", - "canonical": true, - "file": "config_service_v2.delete_exclusion.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteExclusion", - "fullName": "google.logging.v2.ConfigServiceV2.DeleteExclusion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "DeleteExclusion", - "fullName": "google.logging.v2.ConfigServiceV2.DeleteExclusion", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_GetCmekSettings_async", - "title": "logging getCmekSettings Sample", - "origin": "API_DEFINITION", - "description": " Gets the Logging CMEK settings for the given resource. Note: CMEK for the Log Router can be configured for Google Cloud projects, folders, organizations and billing accounts. Once configured for an organization, it applies to all projects and folders in the Google Cloud organization. See [Enabling CMEK for Log Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information.", - "canonical": true, - "file": "config_service_v2.get_cmek_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCmekSettings", - "fullName": "google.logging.v2.ConfigServiceV2.GetCmekSettings", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.logging.v2.CmekSettings", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "GetCmekSettings", - "fullName": "google.logging.v2.ConfigServiceV2.GetCmekSettings", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_UpdateCmekSettings_async", - "title": "logging updateCmekSettings Sample", - "origin": "API_DEFINITION", - "description": " Updates the Log Router CMEK settings for the given resource. Note: CMEK for the Log Router can currently only be configured for Google Cloud organizations. Once configured, it applies to all projects and folders in the Google Cloud organization. [UpdateCmekSettings][google.logging.v2.ConfigServiceV2.UpdateCmekSettings] will fail if 1) `kms_key_name` is invalid, or 2) the associated service account does not have the required `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key, or 3) access to the key is disabled. See [Enabling CMEK for Log Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information.", - "canonical": true, - "file": "config_service_v2.update_cmek_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCmekSettings", - "fullName": "google.logging.v2.ConfigServiceV2.UpdateCmekSettings", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "cmek_settings", - "type": ".google.logging.v2.CmekSettings" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.logging.v2.CmekSettings", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "UpdateCmekSettings", - "fullName": "google.logging.v2.ConfigServiceV2.UpdateCmekSettings", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_GetSettings_async", - "title": "logging getSettings Sample", - "origin": "API_DEFINITION", - "description": " Gets the Log Router settings for the given resource. Note: Settings for the Log Router can be get for Google Cloud projects, folders, organizations and billing accounts. Currently it can only be configured for organizations. Once configured for an organization, it applies to all projects and folders in the Google Cloud organization. See [Enabling CMEK for Log Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information.", - "canonical": true, - "file": "config_service_v2.get_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSettings", - "fullName": "google.logging.v2.ConfigServiceV2.GetSettings", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.logging.v2.Settings", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "GetSettings", - "fullName": "google.logging.v2.ConfigServiceV2.GetSettings", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_UpdateSettings_async", - "title": "logging updateSettings Sample", - "origin": "API_DEFINITION", - "description": " Updates the Log Router settings for the given resource. Note: Settings for the Log Router can currently only be configured for Google Cloud organizations. Once configured, it applies to all projects and folders in the Google Cloud organization. [UpdateSettings][google.logging.v2.ConfigServiceV2.UpdateSettings] will fail if 1) `kms_key_name` is invalid, or 2) the associated service account does not have the required `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key, or 3) access to the key is disabled. 4) `location_id` is not supported by Logging. 5) `location_id` violate OrgPolicy. See [Enabling CMEK for Log Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information.", - "canonical": true, - "file": "config_service_v2.update_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSettings", - "fullName": "google.logging.v2.ConfigServiceV2.UpdateSettings", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "settings", - "type": ".google.logging.v2.Settings" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.logging.v2.Settings", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "UpdateSettings", - "fullName": "google.logging.v2.ConfigServiceV2.UpdateSettings", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_ConfigServiceV2_CopyLogEntries_async", - "title": "logging copyLogEntries Sample", - "origin": "API_DEFINITION", - "description": " Copies a set of log entries from a log bucket to a Cloud Storage bucket.", - "canonical": true, - "file": "config_service_v2.copy_log_entries.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CopyLogEntries", - "fullName": "google.logging.v2.ConfigServiceV2.CopyLogEntries", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "destination", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigServiceV2Client", - "fullName": "google.logging.v2.ConfigServiceV2Client" - }, - "method": { - "shortName": "CopyLogEntries", - "fullName": "google.logging.v2.ConfigServiceV2.CopyLogEntries", - "service": { - "shortName": "ConfigServiceV2", - "fullName": "google.logging.v2.ConfigServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_LoggingServiceV2_DeleteLog_async", - "title": "logging deleteLog Sample", - "origin": "API_DEFINITION", - "description": " Deletes all the log entries in a log for the _Default Log Bucket. The log reappears if it receives new entries. Log entries written shortly before the delete operation might not be deleted. Entries received after the delete operation with a timestamp before the operation will be deleted.", - "canonical": true, - "file": "logging_service_v2.delete_log.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteLog", - "fullName": "google.logging.v2.LoggingServiceV2.DeleteLog", - "async": true, - "parameters": [ - { - "name": "log_name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "LoggingServiceV2Client", - "fullName": "google.logging.v2.LoggingServiceV2Client" - }, - "method": { - "shortName": "DeleteLog", - "fullName": "google.logging.v2.LoggingServiceV2.DeleteLog", - "service": { - "shortName": "LoggingServiceV2", - "fullName": "google.logging.v2.LoggingServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_LoggingServiceV2_WriteLogEntries_async", - "title": "logging writeLogEntries Sample", - "origin": "API_DEFINITION", - "description": " Writes log entries to Logging. This API method is the only way to send log entries to Logging. This method is used, directly or indirectly, by the Logging agent (fluentd) and all logging libraries configured to use Logging. A single request may contain log entries for a maximum of 1000 different resources (projects, organizations, billing accounts or folders)", - "canonical": true, - "file": "logging_service_v2.write_log_entries.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 121, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "WriteLogEntries", - "fullName": "google.logging.v2.LoggingServiceV2.WriteLogEntries", - "async": true, - "parameters": [ - { - "name": "log_name", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": ".google.api.MonitoredResource" - }, - { - "name": "labels", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "entries", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "dry_run", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.logging.v2.WriteLogEntriesResponse", - "client": { - "shortName": "LoggingServiceV2Client", - "fullName": "google.logging.v2.LoggingServiceV2Client" - }, - "method": { - "shortName": "WriteLogEntries", - "fullName": "google.logging.v2.LoggingServiceV2.WriteLogEntries", - "service": { - "shortName": "LoggingServiceV2", - "fullName": "google.logging.v2.LoggingServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_LoggingServiceV2_ListLogEntries_async", - "title": "logging listLogEntries Sample", - "origin": "API_DEFINITION", - "description": " Lists log entries. Use this method to retrieve log entries that originated from a project/folder/organization/billing account. For ways to export log entries, see [Exporting Logs](https://cloud.google.com/logging/docs/export).", - "canonical": true, - "file": "logging_service_v2.list_log_entries.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 98, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListLogEntries", - "fullName": "google.logging.v2.LoggingServiceV2.ListLogEntries", - "async": true, - "parameters": [ - { - "name": "resource_names", - "type": "TYPE_STRING[]" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.logging.v2.ListLogEntriesResponse", - "client": { - "shortName": "LoggingServiceV2Client", - "fullName": "google.logging.v2.LoggingServiceV2Client" - }, - "method": { - "shortName": "ListLogEntries", - "fullName": "google.logging.v2.LoggingServiceV2.ListLogEntries", - "service": { - "shortName": "LoggingServiceV2", - "fullName": "google.logging.v2.LoggingServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_LoggingServiceV2_ListMonitoredResourceDescriptors_async", - "title": "logging listMonitoredResourceDescriptors Sample", - "origin": "API_DEFINITION", - "description": " Lists the descriptors for monitored resource types used by Logging.", - "canonical": true, - "file": "logging_service_v2.list_monitored_resource_descriptors.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMonitoredResourceDescriptors", - "fullName": "google.logging.v2.LoggingServiceV2.ListMonitoredResourceDescriptors", - "async": true, - "parameters": [ - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.logging.v2.ListMonitoredResourceDescriptorsResponse", - "client": { - "shortName": "LoggingServiceV2Client", - "fullName": "google.logging.v2.LoggingServiceV2Client" - }, - "method": { - "shortName": "ListMonitoredResourceDescriptors", - "fullName": "google.logging.v2.LoggingServiceV2.ListMonitoredResourceDescriptors", - "service": { - "shortName": "LoggingServiceV2", - "fullName": "google.logging.v2.LoggingServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_LoggingServiceV2_ListLogs_async", - "title": "logging listLogs Sample", - "origin": "API_DEFINITION", - "description": " Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.", - "canonical": true, - "file": "logging_service_v2.list_logs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListLogs", - "fullName": "google.logging.v2.LoggingServiceV2.ListLogs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "resource_names", - "type": "TYPE_STRING[]" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.logging.v2.ListLogsResponse", - "client": { - "shortName": "LoggingServiceV2Client", - "fullName": "google.logging.v2.LoggingServiceV2Client" - }, - "method": { - "shortName": "ListLogs", - "fullName": "google.logging.v2.LoggingServiceV2.ListLogs", - "service": { - "shortName": "LoggingServiceV2", - "fullName": "google.logging.v2.LoggingServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_LoggingServiceV2_TailLogEntries_async", - "title": "logging tailLogEntries Sample", - "origin": "API_DEFINITION", - "description": " Streaming read of log entries as they are ingested. Until the stream is terminated, it will continue reading logs.", - "canonical": true, - "file": "logging_service_v2.tail_log_entries.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TailLogEntries", - "fullName": "google.logging.v2.LoggingServiceV2.TailLogEntries", - "async": true, - "parameters": [ - { - "name": "resource_names", - "type": "TYPE_STRING[]" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "buffer_window", - "type": ".google.protobuf.Duration" - } - ], - "resultType": ".google.logging.v2.TailLogEntriesResponse", - "client": { - "shortName": "LoggingServiceV2Client", - "fullName": "google.logging.v2.LoggingServiceV2Client" - }, - "method": { - "shortName": "TailLogEntries", - "fullName": "google.logging.v2.LoggingServiceV2.TailLogEntries", - "service": { - "shortName": "LoggingServiceV2", - "fullName": "google.logging.v2.LoggingServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_MetricsServiceV2_ListLogMetrics_async", - "title": "logging listLogMetrics Sample", - "origin": "API_DEFINITION", - "description": " Lists logs-based metrics.", - "canonical": true, - "file": "metrics_service_v2.list_log_metrics.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListLogMetrics", - "fullName": "google.logging.v2.MetricsServiceV2.ListLogMetrics", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.logging.v2.ListLogMetricsResponse", - "client": { - "shortName": "MetricsServiceV2Client", - "fullName": "google.logging.v2.MetricsServiceV2Client" - }, - "method": { - "shortName": "ListLogMetrics", - "fullName": "google.logging.v2.MetricsServiceV2.ListLogMetrics", - "service": { - "shortName": "MetricsServiceV2", - "fullName": "google.logging.v2.MetricsServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_MetricsServiceV2_GetLogMetric_async", - "title": "logging getLogMetric Sample", - "origin": "API_DEFINITION", - "description": " Gets a logs-based metric.", - "canonical": true, - "file": "metrics_service_v2.get_log_metric.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetLogMetric", - "fullName": "google.logging.v2.MetricsServiceV2.GetLogMetric", - "async": true, - "parameters": [ - { - "name": "metric_name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.logging.v2.LogMetric", - "client": { - "shortName": "MetricsServiceV2Client", - "fullName": "google.logging.v2.MetricsServiceV2Client" - }, - "method": { - "shortName": "GetLogMetric", - "fullName": "google.logging.v2.MetricsServiceV2.GetLogMetric", - "service": { - "shortName": "MetricsServiceV2", - "fullName": "google.logging.v2.MetricsServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_MetricsServiceV2_CreateLogMetric_async", - "title": "logging createLogMetric Sample", - "origin": "API_DEFINITION", - "description": " Creates a logs-based metric.", - "canonical": true, - "file": "metrics_service_v2.create_log_metric.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateLogMetric", - "fullName": "google.logging.v2.MetricsServiceV2.CreateLogMetric", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "metric", - "type": ".google.logging.v2.LogMetric" - } - ], - "resultType": ".google.logging.v2.LogMetric", - "client": { - "shortName": "MetricsServiceV2Client", - "fullName": "google.logging.v2.MetricsServiceV2Client" - }, - "method": { - "shortName": "CreateLogMetric", - "fullName": "google.logging.v2.MetricsServiceV2.CreateLogMetric", - "service": { - "shortName": "MetricsServiceV2", - "fullName": "google.logging.v2.MetricsServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_MetricsServiceV2_UpdateLogMetric_async", - "title": "logging updateLogMetric Sample", - "origin": "API_DEFINITION", - "description": " Creates or updates a logs-based metric.", - "canonical": true, - "file": "metrics_service_v2.update_log_metric.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateLogMetric", - "fullName": "google.logging.v2.MetricsServiceV2.UpdateLogMetric", - "async": true, - "parameters": [ - { - "name": "metric_name", - "type": "TYPE_STRING" - }, - { - "name": "metric", - "type": ".google.logging.v2.LogMetric" - } - ], - "resultType": ".google.logging.v2.LogMetric", - "client": { - "shortName": "MetricsServiceV2Client", - "fullName": "google.logging.v2.MetricsServiceV2Client" - }, - "method": { - "shortName": "UpdateLogMetric", - "fullName": "google.logging.v2.MetricsServiceV2.UpdateLogMetric", - "service": { - "shortName": "MetricsServiceV2", - "fullName": "google.logging.v2.MetricsServiceV2" - } - } - } - }, - { - "regionTag": "logging_v2_generated_MetricsServiceV2_DeleteLogMetric_async", - "title": "logging deleteLogMetric Sample", - "origin": "API_DEFINITION", - "description": " Deletes a logs-based metric.", - "canonical": true, - "file": "metrics_service_v2.delete_log_metric.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteLogMetric", - "fullName": "google.logging.v2.MetricsServiceV2.DeleteLogMetric", - "async": true, - "parameters": [ - { - "name": "metric_name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "MetricsServiceV2Client", - "fullName": "google.logging.v2.MetricsServiceV2Client" - }, - "method": { - "shortName": "DeleteLogMetric", - "fullName": "google.logging.v2.MetricsServiceV2.DeleteLogMetric", - "service": { - "shortName": "MetricsServiceV2", - "fullName": "google.logging.v2.MetricsServiceV2" - } - } - } - } - ] -} \ No newline at end of file diff --git a/packages/google-ads-admanager/samples/generated/v1/snippet_metadata_google.ads.admanager.v1.json b/packages/google-ads-admanager/samples/generated/v1/snippet_metadata_google.ads.admanager.v1.json deleted file mode 100644 index 7c877ee64635..000000000000 --- a/packages/google-ads-admanager/samples/generated/v1/snippet_metadata_google.ads.admanager.v1.json +++ /dev/null @@ -1,7835 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-admanager", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.ads.admanager.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "admanager_v1_generated_AdBreakService_GetAdBreak_async", - "title": "AdBreakService getAdBreak Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve an `AdBreak` object. Query an ad break by its resource name or custom asset key. Check the resource's `breakState` field to determine its state.", - "canonical": true, - "file": "ad_break_service.get_ad_break.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAdBreak", - "fullName": "google.ads.admanager.v1.AdBreakService.GetAdBreak", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ads.admanager.v1.AdBreak", - "client": { - "shortName": "AdBreakServiceClient", - "fullName": "google.ads.admanager.v1.AdBreakServiceClient" - }, - "method": { - "shortName": "GetAdBreak", - "fullName": "google.ads.admanager.v1.AdBreakService.GetAdBreak", - "service": { - "shortName": "AdBreakService", - "fullName": "google.ads.admanager.v1.AdBreakService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_AdBreakService_ListAdBreaks_async", - "title": "AdBreakService listAdBreaks Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a list of `AdBreak` objects. By default, when no `orderBy` query parameter is specified, ad breaks are ordered reverse chronologically. However, ad breaks with a 'breakState' of 'SCHEDULED' or 'DECISIONED' are prioritized and appear first.", - "canonical": true, - "file": "ad_break_service.list_ad_breaks.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 88, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAdBreaks", - "fullName": "google.ads.admanager.v1.AdBreakService.ListAdBreaks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "skip", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.ads.admanager.v1.ListAdBreaksResponse", - "client": { - "shortName": "AdBreakServiceClient", - "fullName": "google.ads.admanager.v1.AdBreakServiceClient" - }, - "method": { - "shortName": "ListAdBreaks", - "fullName": "google.ads.admanager.v1.AdBreakService.ListAdBreaks", - "service": { - "shortName": "AdBreakService", - "fullName": "google.ads.admanager.v1.AdBreakService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_AdBreakService_CreateAdBreak_async", - "title": "AdBreakService createAdBreak Sample", - "origin": "API_DEFINITION", - "description": " API to create an `AdBreak` object. Informs DAI of an upcoming ad break for a live stream event, with an optional expected start time. DAI will begin decisioning ads for the break shortly before the expected start time, if provided. Each live stream event can only have one incomplete ad break at any given time. The next ad break can be scheduled after the previous ad break has started serving, indicated by its state being [`COMPLETE`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.COMPLETE], or it has been deleted. This method cannot be used if the `LiveStreamEvent` has [prefetching ad breaks enabled](https://developers.google.com/ad-manager/api/reference/latest/LiveStreamEventService.LiveStreamEvent#prefetchenabled) or the event is not active. If a `LiveStreamEvent` is deactivated after creating an ad break and before the ad break is complete, the ad break is discarded. An ad break's state is complete when the following occurs: - Full service DAI: after a matching ad break shows in the `LiveStreamEvent` manifest only when the ad break has started decisioning. - Pod Serving: after the ad break is requested using the ad break ID or break sequence.", - "canonical": true, - "file": "ad_break_service.create_ad_break.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAdBreak", - "fullName": "google.ads.admanager.v1.AdBreakService.CreateAdBreak", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "ad_break", - "type": ".google.ads.admanager.v1.AdBreak" - } - ], - "resultType": ".google.ads.admanager.v1.AdBreak", - "client": { - "shortName": "AdBreakServiceClient", - "fullName": "google.ads.admanager.v1.AdBreakServiceClient" - }, - "method": { - "shortName": "CreateAdBreak", - "fullName": "google.ads.admanager.v1.AdBreakService.CreateAdBreak", - "service": { - "shortName": "AdBreakService", - "fullName": "google.ads.admanager.v1.AdBreakService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_AdBreakService_UpdateAdBreak_async", - "title": "AdBreakService updateAdBreak Sample", - "origin": "API_DEFINITION", - "description": " API to update an `AdBreak` object. Modify an ad break when its state is [`SCHEDULED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.SCHEDULED].", - "canonical": true, - "file": "ad_break_service.update_ad_break.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAdBreak", - "fullName": "google.ads.admanager.v1.AdBreakService.UpdateAdBreak", - "async": true, - "parameters": [ - { - "name": "ad_break", - "type": ".google.ads.admanager.v1.AdBreak" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.ads.admanager.v1.AdBreak", - "client": { - "shortName": "AdBreakServiceClient", - "fullName": "google.ads.admanager.v1.AdBreakServiceClient" - }, - "method": { - "shortName": "UpdateAdBreak", - "fullName": "google.ads.admanager.v1.AdBreakService.UpdateAdBreak", - "service": { - "shortName": "AdBreakService", - "fullName": "google.ads.admanager.v1.AdBreakService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_AdBreakService_DeleteAdBreak_async", - "title": "AdBreakService deleteAdBreak Sample", - "origin": "API_DEFINITION", - "description": " API to delete an `AdBreak` object. Deletes and cancels an incomplete ad break, mitigating the need to wait for the current break to serve before recreating an ad break. You can delete an ad break that has not started serving or seen in manifests, indicated by its state being [`SCHEDULED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.SCHEDULED] or [`DECISIONED`][google.ads.admanager.v1.AdBreakStateEnum.AdBreakState.DECISIONED].", - "canonical": true, - "file": "ad_break_service.delete_ad_break.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAdBreak", - "fullName": "google.ads.admanager.v1.AdBreakService.DeleteAdBreak", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AdBreakServiceClient", - "fullName": "google.ads.admanager.v1.AdBreakServiceClient" - }, - "method": { - "shortName": "DeleteAdBreak", - "fullName": "google.ads.admanager.v1.AdBreakService.DeleteAdBreak", - "service": { - "shortName": "AdBreakService", - "fullName": "google.ads.admanager.v1.AdBreakService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_AdReviewCenterAdService_SearchAdReviewCenterAds_async", - "title": "AdBreakService searchAdReviewCenterAds Sample", - "origin": "API_DEFINITION", - "description": " API to search for AdReviewCenterAds.", - "canonical": true, - "file": "ad_review_center_ad_service.search_ad_review_center_ads.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 112, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchAdReviewCenterAds", - "fullName": "google.ads.admanager.v1.AdReviewCenterAdService.SearchAdReviewCenterAds", - "async": true, - "parameters": [ - { - "name": "status", - "type": ".google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus" - }, - { - "name": "manual_review_status", - "type": ".google.ads.admanager.v1.ManualAdReviewCenterAdStatusEnum.ManualAdReviewCenterAdStatus" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "ad_review_center_ad_id", - "type": "TYPE_STRING[]" - }, - { - "name": "date_time_range", - "type": ".google.type.Interval" - }, - { - "name": "search_text", - "type": "TYPE_STRING[]" - }, - { - "name": "buyer_account_id", - "type": "TYPE_INT64[]" - } - ], - "resultType": ".google.ads.admanager.v1.SearchAdReviewCenterAdsResponse", - "client": { - "shortName": "AdReviewCenterAdServiceClient", - "fullName": "google.ads.admanager.v1.AdReviewCenterAdServiceClient" - }, - "method": { - "shortName": "SearchAdReviewCenterAds", - "fullName": "google.ads.admanager.v1.AdReviewCenterAdService.SearchAdReviewCenterAds", - "service": { - "shortName": "AdReviewCenterAdService", - "fullName": "google.ads.admanager.v1.AdReviewCenterAdService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_AdReviewCenterAdService_BatchAllowAdReviewCenterAds_async", - "title": "AdBreakService batchAllowAdReviewCenterAds Sample", - "origin": "API_DEFINITION", - "description": " API to batch allow AdReviewCenterAds. This method supports partial success. Some operations may succeed while others fail. Callers should check the failedRequests field in the response to determine which operations failed.", - "canonical": true, - "file": "ad_review_center_ad_service.batch_allow_ad_review_center_ads.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchAllowAdReviewCenterAds", - "fullName": "google.ads.admanager.v1.AdReviewCenterAdService.BatchAllowAdReviewCenterAds", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "names", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AdReviewCenterAdServiceClient", - "fullName": "google.ads.admanager.v1.AdReviewCenterAdServiceClient" - }, - "method": { - "shortName": "BatchAllowAdReviewCenterAds", - "fullName": "google.ads.admanager.v1.AdReviewCenterAdService.BatchAllowAdReviewCenterAds", - "service": { - "shortName": "AdReviewCenterAdService", - "fullName": "google.ads.admanager.v1.AdReviewCenterAdService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_AdReviewCenterAdService_BatchBlockAdReviewCenterAds_async", - "title": "AdBreakService batchBlockAdReviewCenterAds Sample", - "origin": "API_DEFINITION", - "description": " API to batch block AdReviewCenterAds. This method supports partial success. Some operations may succeed while others fail. Callers should check the failedRequests field in the response to determine which operations failed.", - "canonical": true, - "file": "ad_review_center_ad_service.batch_block_ad_review_center_ads.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchBlockAdReviewCenterAds", - "fullName": "google.ads.admanager.v1.AdReviewCenterAdService.BatchBlockAdReviewCenterAds", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "names", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AdReviewCenterAdServiceClient", - "fullName": "google.ads.admanager.v1.AdReviewCenterAdServiceClient" - }, - "method": { - "shortName": "BatchBlockAdReviewCenterAds", - "fullName": "google.ads.admanager.v1.AdReviewCenterAdService.BatchBlockAdReviewCenterAds", - "service": { - "shortName": "AdReviewCenterAdService", - "fullName": "google.ads.admanager.v1.AdReviewCenterAdService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_AdUnitService_GetAdUnit_async", - "title": "AdBreakService getAdUnit Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve an AdUnit object.", - "canonical": true, - "file": "ad_unit_service.get_ad_unit.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAdUnit", - "fullName": "google.ads.admanager.v1.AdUnitService.GetAdUnit", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ads.admanager.v1.AdUnit", - "client": { - "shortName": "AdUnitServiceClient", - "fullName": "google.ads.admanager.v1.AdUnitServiceClient" - }, - "method": { - "shortName": "GetAdUnit", - "fullName": "google.ads.admanager.v1.AdUnitService.GetAdUnit", - "service": { - "shortName": "AdUnitService", - "fullName": "google.ads.admanager.v1.AdUnitService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_AdUnitService_ListAdUnits_async", - "title": "AdBreakService listAdUnits Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a list of AdUnit objects.", - "canonical": true, - "file": "ad_unit_service.list_ad_units.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 101, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAdUnits", - "fullName": "google.ads.admanager.v1.AdUnitService.ListAdUnits", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "skip", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.ads.admanager.v1.ListAdUnitsResponse", - "client": { - "shortName": "AdUnitServiceClient", - "fullName": "google.ads.admanager.v1.AdUnitServiceClient" - }, - "method": { - "shortName": "ListAdUnits", - "fullName": "google.ads.admanager.v1.AdUnitService.ListAdUnits", - "service": { - "shortName": "AdUnitService", - "fullName": "google.ads.admanager.v1.AdUnitService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_AdUnitService_ListAdUnitSizes_async", - "title": "AdBreakService listAdUnitSizes Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a list of AdUnitSize objects.", - "canonical": true, - "file": "ad_unit_service.list_ad_unit_sizes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAdUnitSizes", - "fullName": "google.ads.admanager.v1.AdUnitService.ListAdUnitSizes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "skip", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.ads.admanager.v1.ListAdUnitSizesResponse", - "client": { - "shortName": "AdUnitServiceClient", - "fullName": "google.ads.admanager.v1.AdUnitServiceClient" - }, - "method": { - "shortName": "ListAdUnitSizes", - "fullName": "google.ads.admanager.v1.AdUnitService.ListAdUnitSizes", - "service": { - "shortName": "AdUnitService", - "fullName": "google.ads.admanager.v1.AdUnitService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_AdUnitService_CreateAdUnit_async", - "title": "AdBreakService createAdUnit Sample", - "origin": "API_DEFINITION", - "description": " API to create an `AdUnit` object.", - "canonical": true, - "file": "ad_unit_service.create_ad_unit.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAdUnit", - "fullName": "google.ads.admanager.v1.AdUnitService.CreateAdUnit", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "ad_unit", - "type": ".google.ads.admanager.v1.AdUnit" - } - ], - "resultType": ".google.ads.admanager.v1.AdUnit", - "client": { - "shortName": "AdUnitServiceClient", - "fullName": "google.ads.admanager.v1.AdUnitServiceClient" - }, - "method": { - "shortName": "CreateAdUnit", - "fullName": "google.ads.admanager.v1.AdUnitService.CreateAdUnit", - "service": { - "shortName": "AdUnitService", - "fullName": "google.ads.admanager.v1.AdUnitService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_AdUnitService_UpdateAdUnit_async", - "title": "AdBreakService updateAdUnit Sample", - "origin": "API_DEFINITION", - "description": " API to update an `AdUnit` object.", - "canonical": true, - "file": "ad_unit_service.update_ad_unit.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAdUnit", - "fullName": "google.ads.admanager.v1.AdUnitService.UpdateAdUnit", - "async": true, - "parameters": [ - { - "name": "ad_unit", - "type": ".google.ads.admanager.v1.AdUnit" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.ads.admanager.v1.AdUnit", - "client": { - "shortName": "AdUnitServiceClient", - "fullName": "google.ads.admanager.v1.AdUnitServiceClient" - }, - "method": { - "shortName": "UpdateAdUnit", - "fullName": "google.ads.admanager.v1.AdUnitService.UpdateAdUnit", - "service": { - "shortName": "AdUnitService", - "fullName": "google.ads.admanager.v1.AdUnitService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_AdUnitService_BatchCreateAdUnits_async", - "title": "AdBreakService batchCreateAdUnits Sample", - "origin": "API_DEFINITION", - "description": " API to batch create `AdUnit` objects.", - "canonical": true, - "file": "ad_unit_service.batch_create_ad_units.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCreateAdUnits", - "fullName": "google.ads.admanager.v1.AdUnitService.BatchCreateAdUnits", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.ads.admanager.v1.BatchCreateAdUnitsResponse", - "client": { - "shortName": "AdUnitServiceClient", - "fullName": "google.ads.admanager.v1.AdUnitServiceClient" - }, - "method": { - "shortName": "BatchCreateAdUnits", - "fullName": "google.ads.admanager.v1.AdUnitService.BatchCreateAdUnits", - "service": { - "shortName": "AdUnitService", - "fullName": "google.ads.admanager.v1.AdUnitService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_AdUnitService_BatchUpdateAdUnits_async", - "title": "AdBreakService batchUpdateAdUnits Sample", - "origin": "API_DEFINITION", - "description": " API to batch update `AdUnit` objects.", - "canonical": true, - "file": "ad_unit_service.batch_update_ad_units.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchUpdateAdUnits", - "fullName": "google.ads.admanager.v1.AdUnitService.BatchUpdateAdUnits", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.ads.admanager.v1.BatchUpdateAdUnitsResponse", - "client": { - "shortName": "AdUnitServiceClient", - "fullName": "google.ads.admanager.v1.AdUnitServiceClient" - }, - "method": { - "shortName": "BatchUpdateAdUnits", - "fullName": "google.ads.admanager.v1.AdUnitService.BatchUpdateAdUnits", - "service": { - "shortName": "AdUnitService", - "fullName": "google.ads.admanager.v1.AdUnitService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_AdUnitService_BatchActivateAdUnits_async", - "title": "AdBreakService batchActivateAdUnits Sample", - "origin": "API_DEFINITION", - "description": " API to batch activate `AdUnit` objects.", - "canonical": true, - "file": "ad_unit_service.batch_activate_ad_units.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchActivateAdUnits", - "fullName": "google.ads.admanager.v1.AdUnitService.BatchActivateAdUnits", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "names", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.ads.admanager.v1.BatchActivateAdUnitsResponse", - "client": { - "shortName": "AdUnitServiceClient", - "fullName": "google.ads.admanager.v1.AdUnitServiceClient" - }, - "method": { - "shortName": "BatchActivateAdUnits", - "fullName": "google.ads.admanager.v1.AdUnitService.BatchActivateAdUnits", - "service": { - "shortName": "AdUnitService", - "fullName": "google.ads.admanager.v1.AdUnitService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_AdUnitService_BatchDeactivateAdUnits_async", - "title": "AdBreakService batchDeactivateAdUnits Sample", - "origin": "API_DEFINITION", - "description": " Deactivates a list of `AdUnit` objects.", - "canonical": true, - "file": "ad_unit_service.batch_deactivate_ad_units.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchDeactivateAdUnits", - "fullName": "google.ads.admanager.v1.AdUnitService.BatchDeactivateAdUnits", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "names", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.ads.admanager.v1.BatchDeactivateAdUnitsResponse", - "client": { - "shortName": "AdUnitServiceClient", - "fullName": "google.ads.admanager.v1.AdUnitServiceClient" - }, - "method": { - "shortName": "BatchDeactivateAdUnits", - "fullName": "google.ads.admanager.v1.AdUnitService.BatchDeactivateAdUnits", - "service": { - "shortName": "AdUnitService", - "fullName": "google.ads.admanager.v1.AdUnitService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_AdUnitService_BatchArchiveAdUnits_async", - "title": "AdBreakService batchArchiveAdUnits Sample", - "origin": "API_DEFINITION", - "description": " Archives a list of `AdUnit` objects.", - "canonical": true, - "file": "ad_unit_service.batch_archive_ad_units.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchArchiveAdUnits", - "fullName": "google.ads.admanager.v1.AdUnitService.BatchArchiveAdUnits", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "names", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.ads.admanager.v1.BatchArchiveAdUnitsResponse", - "client": { - "shortName": "AdUnitServiceClient", - "fullName": "google.ads.admanager.v1.AdUnitServiceClient" - }, - "method": { - "shortName": "BatchArchiveAdUnits", - "fullName": "google.ads.admanager.v1.AdUnitService.BatchArchiveAdUnits", - "service": { - "shortName": "AdUnitService", - "fullName": "google.ads.admanager.v1.AdUnitService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_ApplicationService_GetApplication_async", - "title": "AdBreakService getApplication Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a `Application` object.", - "canonical": true, - "file": "application_service.get_application.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetApplication", - "fullName": "google.ads.admanager.v1.ApplicationService.GetApplication", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ads.admanager.v1.Application", - "client": { - "shortName": "ApplicationServiceClient", - "fullName": "google.ads.admanager.v1.ApplicationServiceClient" - }, - "method": { - "shortName": "GetApplication", - "fullName": "google.ads.admanager.v1.ApplicationService.GetApplication", - "service": { - "shortName": "ApplicationService", - "fullName": "google.ads.admanager.v1.ApplicationService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_ApplicationService_ListApplications_async", - "title": "AdBreakService listApplications Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a list of `Application` objects.", - "canonical": true, - "file": "application_service.list_applications.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 98, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListApplications", - "fullName": "google.ads.admanager.v1.ApplicationService.ListApplications", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "skip", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.ads.admanager.v1.ListApplicationsResponse", - "client": { - "shortName": "ApplicationServiceClient", - "fullName": "google.ads.admanager.v1.ApplicationServiceClient" - }, - "method": { - "shortName": "ListApplications", - "fullName": "google.ads.admanager.v1.ApplicationService.ListApplications", - "service": { - "shortName": "ApplicationService", - "fullName": "google.ads.admanager.v1.ApplicationService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_ApplicationService_CreateApplication_async", - "title": "AdBreakService createApplication Sample", - "origin": "API_DEFINITION", - "description": " API to create a `Application` object.", - "canonical": true, - "file": "application_service.create_application.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateApplication", - "fullName": "google.ads.admanager.v1.ApplicationService.CreateApplication", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "application", - "type": ".google.ads.admanager.v1.Application" - } - ], - "resultType": ".google.ads.admanager.v1.Application", - "client": { - "shortName": "ApplicationServiceClient", - "fullName": "google.ads.admanager.v1.ApplicationServiceClient" - }, - "method": { - "shortName": "CreateApplication", - "fullName": "google.ads.admanager.v1.ApplicationService.CreateApplication", - "service": { - "shortName": "ApplicationService", - "fullName": "google.ads.admanager.v1.ApplicationService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_ApplicationService_BatchCreateApplications_async", - "title": "AdBreakService batchCreateApplications Sample", - "origin": "API_DEFINITION", - "description": " API to batch create `Application` objects.", - "canonical": true, - "file": "application_service.batch_create_applications.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCreateApplications", - "fullName": "google.ads.admanager.v1.ApplicationService.BatchCreateApplications", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.ads.admanager.v1.BatchCreateApplicationsResponse", - "client": { - "shortName": "ApplicationServiceClient", - "fullName": "google.ads.admanager.v1.ApplicationServiceClient" - }, - "method": { - "shortName": "BatchCreateApplications", - "fullName": "google.ads.admanager.v1.ApplicationService.BatchCreateApplications", - "service": { - "shortName": "ApplicationService", - "fullName": "google.ads.admanager.v1.ApplicationService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_ApplicationService_UpdateApplication_async", - "title": "AdBreakService updateApplication Sample", - "origin": "API_DEFINITION", - "description": " API to update a `Application` object.", - "canonical": true, - "file": "application_service.update_application.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateApplication", - "fullName": "google.ads.admanager.v1.ApplicationService.UpdateApplication", - "async": true, - "parameters": [ - { - "name": "application", - "type": ".google.ads.admanager.v1.Application" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.ads.admanager.v1.Application", - "client": { - "shortName": "ApplicationServiceClient", - "fullName": "google.ads.admanager.v1.ApplicationServiceClient" - }, - "method": { - "shortName": "UpdateApplication", - "fullName": "google.ads.admanager.v1.ApplicationService.UpdateApplication", - "service": { - "shortName": "ApplicationService", - "fullName": "google.ads.admanager.v1.ApplicationService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_ApplicationService_BatchUpdateApplications_async", - "title": "AdBreakService batchUpdateApplications Sample", - "origin": "API_DEFINITION", - "description": " API to batch update `Application` objects.", - "canonical": true, - "file": "application_service.batch_update_applications.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchUpdateApplications", - "fullName": "google.ads.admanager.v1.ApplicationService.BatchUpdateApplications", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.ads.admanager.v1.BatchUpdateApplicationsResponse", - "client": { - "shortName": "ApplicationServiceClient", - "fullName": "google.ads.admanager.v1.ApplicationServiceClient" - }, - "method": { - "shortName": "BatchUpdateApplications", - "fullName": "google.ads.admanager.v1.ApplicationService.BatchUpdateApplications", - "service": { - "shortName": "ApplicationService", - "fullName": "google.ads.admanager.v1.ApplicationService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_ApplicationService_BatchArchiveApplications_async", - "title": "AdBreakService batchArchiveApplications Sample", - "origin": "API_DEFINITION", - "description": " / API to batch archive `Application` objects.", - "canonical": true, - "file": "application_service.batch_archive_applications.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchArchiveApplications", - "fullName": "google.ads.admanager.v1.ApplicationService.BatchArchiveApplications", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "names", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.ads.admanager.v1.BatchArchiveApplicationsResponse", - "client": { - "shortName": "ApplicationServiceClient", - "fullName": "google.ads.admanager.v1.ApplicationServiceClient" - }, - "method": { - "shortName": "BatchArchiveApplications", - "fullName": "google.ads.admanager.v1.ApplicationService.BatchArchiveApplications", - "service": { - "shortName": "ApplicationService", - "fullName": "google.ads.admanager.v1.ApplicationService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_ApplicationService_BatchUnarchiveApplications_async", - "title": "AdBreakService batchUnarchiveApplications Sample", - "origin": "API_DEFINITION", - "description": " / API to batch unarchive `Application` objects.", - "canonical": true, - "file": "application_service.batch_unarchive_applications.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchUnarchiveApplications", - "fullName": "google.ads.admanager.v1.ApplicationService.BatchUnarchiveApplications", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "names", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.ads.admanager.v1.BatchUnarchiveApplicationsResponse", - "client": { - "shortName": "ApplicationServiceClient", - "fullName": "google.ads.admanager.v1.ApplicationServiceClient" - }, - "method": { - "shortName": "BatchUnarchiveApplications", - "fullName": "google.ads.admanager.v1.ApplicationService.BatchUnarchiveApplications", - "service": { - "shortName": "ApplicationService", - "fullName": "google.ads.admanager.v1.ApplicationService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_AudienceSegmentService_GetAudienceSegment_async", - "title": "AdBreakService getAudienceSegment Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve an `AudienceSegment` object.", - "canonical": true, - "file": "audience_segment_service.get_audience_segment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAudienceSegment", - "fullName": "google.ads.admanager.v1.AudienceSegmentService.GetAudienceSegment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ads.admanager.v1.AudienceSegment", - "client": { - "shortName": "AudienceSegmentServiceClient", - "fullName": "google.ads.admanager.v1.AudienceSegmentServiceClient" - }, - "method": { - "shortName": "GetAudienceSegment", - "fullName": "google.ads.admanager.v1.AudienceSegmentService.GetAudienceSegment", - "service": { - "shortName": "AudienceSegmentService", - "fullName": "google.ads.admanager.v1.AudienceSegmentService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_AudienceSegmentService_ListAudienceSegments_async", - "title": "AdBreakService listAudienceSegments Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a list of `AudienceSegment` objects.", - "canonical": true, - "file": "audience_segment_service.list_audience_segments.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 90, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAudienceSegments", - "fullName": "google.ads.admanager.v1.AudienceSegmentService.ListAudienceSegments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "skip", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.ads.admanager.v1.ListAudienceSegmentsResponse", - "client": { - "shortName": "AudienceSegmentServiceClient", - "fullName": "google.ads.admanager.v1.AudienceSegmentServiceClient" - }, - "method": { - "shortName": "ListAudienceSegments", - "fullName": "google.ads.admanager.v1.AudienceSegmentService.ListAudienceSegments", - "service": { - "shortName": "AudienceSegmentService", - "fullName": "google.ads.admanager.v1.AudienceSegmentService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_BandwidthGroupService_GetBandwidthGroup_async", - "title": "AdBreakService getBandwidthGroup Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a `BandwidthGroup` object.", - "canonical": true, - "file": "bandwidth_group_service.get_bandwidth_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBandwidthGroup", - "fullName": "google.ads.admanager.v1.BandwidthGroupService.GetBandwidthGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ads.admanager.v1.BandwidthGroup", - "client": { - "shortName": "BandwidthGroupServiceClient", - "fullName": "google.ads.admanager.v1.BandwidthGroupServiceClient" - }, - "method": { - "shortName": "GetBandwidthGroup", - "fullName": "google.ads.admanager.v1.BandwidthGroupService.GetBandwidthGroup", - "service": { - "shortName": "BandwidthGroupService", - "fullName": "google.ads.admanager.v1.BandwidthGroupService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_BandwidthGroupService_ListBandwidthGroups_async", - "title": "AdBreakService listBandwidthGroups Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a list of `BandwidthGroup` objects.", - "canonical": true, - "file": "bandwidth_group_service.list_bandwidth_groups.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 91, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBandwidthGroups", - "fullName": "google.ads.admanager.v1.BandwidthGroupService.ListBandwidthGroups", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "skip", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.ads.admanager.v1.ListBandwidthGroupsResponse", - "client": { - "shortName": "BandwidthGroupServiceClient", - "fullName": "google.ads.admanager.v1.BandwidthGroupServiceClient" - }, - "method": { - "shortName": "ListBandwidthGroups", - "fullName": "google.ads.admanager.v1.BandwidthGroupService.ListBandwidthGroups", - "service": { - "shortName": "BandwidthGroupService", - "fullName": "google.ads.admanager.v1.BandwidthGroupService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_BrowserLanguageService_GetBrowserLanguage_async", - "title": "AdBreakService getBrowserLanguage Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a `BrowserLanguage` object.", - "canonical": true, - "file": "browser_language_service.get_browser_language.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBrowserLanguage", - "fullName": "google.ads.admanager.v1.BrowserLanguageService.GetBrowserLanguage", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ads.admanager.v1.BrowserLanguage", - "client": { - "shortName": "BrowserLanguageServiceClient", - "fullName": "google.ads.admanager.v1.BrowserLanguageServiceClient" - }, - "method": { - "shortName": "GetBrowserLanguage", - "fullName": "google.ads.admanager.v1.BrowserLanguageService.GetBrowserLanguage", - "service": { - "shortName": "BrowserLanguageService", - "fullName": "google.ads.admanager.v1.BrowserLanguageService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_BrowserLanguageService_ListBrowserLanguages_async", - "title": "AdBreakService listBrowserLanguages Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a list of `BrowserLanguage` objects.", - "canonical": true, - "file": "browser_language_service.list_browser_languages.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 91, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBrowserLanguages", - "fullName": "google.ads.admanager.v1.BrowserLanguageService.ListBrowserLanguages", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "skip", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.ads.admanager.v1.ListBrowserLanguagesResponse", - "client": { - "shortName": "BrowserLanguageServiceClient", - "fullName": "google.ads.admanager.v1.BrowserLanguageServiceClient" - }, - "method": { - "shortName": "ListBrowserLanguages", - "fullName": "google.ads.admanager.v1.BrowserLanguageService.ListBrowserLanguages", - "service": { - "shortName": "BrowserLanguageService", - "fullName": "google.ads.admanager.v1.BrowserLanguageService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_BrowserService_GetBrowser_async", - "title": "AdBreakService getBrowser Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a `Browser` object.", - "canonical": true, - "file": "browser_service.get_browser.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBrowser", - "fullName": "google.ads.admanager.v1.BrowserService.GetBrowser", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ads.admanager.v1.Browser", - "client": { - "shortName": "BrowserServiceClient", - "fullName": "google.ads.admanager.v1.BrowserServiceClient" - }, - "method": { - "shortName": "GetBrowser", - "fullName": "google.ads.admanager.v1.BrowserService.GetBrowser", - "service": { - "shortName": "BrowserService", - "fullName": "google.ads.admanager.v1.BrowserService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_BrowserService_ListBrowsers_async", - "title": "AdBreakService listBrowsers Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a list of `Browser` objects.", - "canonical": true, - "file": "browser_service.list_browsers.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 93, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBrowsers", - "fullName": "google.ads.admanager.v1.BrowserService.ListBrowsers", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "skip", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.ads.admanager.v1.ListBrowsersResponse", - "client": { - "shortName": "BrowserServiceClient", - "fullName": "google.ads.admanager.v1.BrowserServiceClient" - }, - "method": { - "shortName": "ListBrowsers", - "fullName": "google.ads.admanager.v1.BrowserService.ListBrowsers", - "service": { - "shortName": "BrowserService", - "fullName": "google.ads.admanager.v1.BrowserService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_CmsMetadataKeyService_GetCmsMetadataKey_async", - "title": "AdBreakService getCmsMetadataKey Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a `CmsMetadataKey` object.", - "canonical": true, - "file": "cms_metadata_key_service.get_cms_metadata_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCmsMetadataKey", - "fullName": "google.ads.admanager.v1.CmsMetadataKeyService.GetCmsMetadataKey", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ads.admanager.v1.CmsMetadataKey", - "client": { - "shortName": "CmsMetadataKeyServiceClient", - "fullName": "google.ads.admanager.v1.CmsMetadataKeyServiceClient" - }, - "method": { - "shortName": "GetCmsMetadataKey", - "fullName": "google.ads.admanager.v1.CmsMetadataKeyService.GetCmsMetadataKey", - "service": { - "shortName": "CmsMetadataKeyService", - "fullName": "google.ads.admanager.v1.CmsMetadataKeyService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_CmsMetadataKeyService_ListCmsMetadataKeys_async", - "title": "AdBreakService listCmsMetadataKeys Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a list of `CmsMetadataKey` objects.", - "canonical": true, - "file": "cms_metadata_key_service.list_cms_metadata_keys.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 92, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCmsMetadataKeys", - "fullName": "google.ads.admanager.v1.CmsMetadataKeyService.ListCmsMetadataKeys", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "skip", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.ads.admanager.v1.ListCmsMetadataKeysResponse", - "client": { - "shortName": "CmsMetadataKeyServiceClient", - "fullName": "google.ads.admanager.v1.CmsMetadataKeyServiceClient" - }, - "method": { - "shortName": "ListCmsMetadataKeys", - "fullName": "google.ads.admanager.v1.CmsMetadataKeyService.ListCmsMetadataKeys", - "service": { - "shortName": "CmsMetadataKeyService", - "fullName": "google.ads.admanager.v1.CmsMetadataKeyService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_CmsMetadataKeyService_BatchActivateCmsMetadataKeys_async", - "title": "AdBreakService batchActivateCmsMetadataKeys Sample", - "origin": "API_DEFINITION", - "description": " API to activate a list of `CmsMetadataKey` objects.", - "canonical": true, - "file": "cms_metadata_key_service.batch_activate_cms_metadata_keys.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchActivateCmsMetadataKeys", - "fullName": "google.ads.admanager.v1.CmsMetadataKeyService.BatchActivateCmsMetadataKeys", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "names", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.ads.admanager.v1.BatchActivateCmsMetadataKeysResponse", - "client": { - "shortName": "CmsMetadataKeyServiceClient", - "fullName": "google.ads.admanager.v1.CmsMetadataKeyServiceClient" - }, - "method": { - "shortName": "BatchActivateCmsMetadataKeys", - "fullName": "google.ads.admanager.v1.CmsMetadataKeyService.BatchActivateCmsMetadataKeys", - "service": { - "shortName": "CmsMetadataKeyService", - "fullName": "google.ads.admanager.v1.CmsMetadataKeyService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_CmsMetadataKeyService_BatchDeactivateCmsMetadataKeys_async", - "title": "AdBreakService batchDeactivateCmsMetadataKeys Sample", - "origin": "API_DEFINITION", - "description": " API to deactivate a list of `CmsMetadataKey` objects.", - "canonical": true, - "file": "cms_metadata_key_service.batch_deactivate_cms_metadata_keys.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchDeactivateCmsMetadataKeys", - "fullName": "google.ads.admanager.v1.CmsMetadataKeyService.BatchDeactivateCmsMetadataKeys", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "names", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.ads.admanager.v1.BatchDeactivateCmsMetadataKeysResponse", - "client": { - "shortName": "CmsMetadataKeyServiceClient", - "fullName": "google.ads.admanager.v1.CmsMetadataKeyServiceClient" - }, - "method": { - "shortName": "BatchDeactivateCmsMetadataKeys", - "fullName": "google.ads.admanager.v1.CmsMetadataKeyService.BatchDeactivateCmsMetadataKeys", - "service": { - "shortName": "CmsMetadataKeyService", - "fullName": "google.ads.admanager.v1.CmsMetadataKeyService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_CmsMetadataValueService_GetCmsMetadataValue_async", - "title": "AdBreakService getCmsMetadataValue Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a `CmsMetadataValue` object.", - "canonical": true, - "file": "cms_metadata_value_service.get_cms_metadata_value.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCmsMetadataValue", - "fullName": "google.ads.admanager.v1.CmsMetadataValueService.GetCmsMetadataValue", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ads.admanager.v1.CmsMetadataValue", - "client": { - "shortName": "CmsMetadataValueServiceClient", - "fullName": "google.ads.admanager.v1.CmsMetadataValueServiceClient" - }, - "method": { - "shortName": "GetCmsMetadataValue", - "fullName": "google.ads.admanager.v1.CmsMetadataValueService.GetCmsMetadataValue", - "service": { - "shortName": "CmsMetadataValueService", - "fullName": "google.ads.admanager.v1.CmsMetadataValueService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_CmsMetadataValueService_ListCmsMetadataValues_async", - "title": "AdBreakService listCmsMetadataValues Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a list of `CmsMetadataValue` objects.", - "canonical": true, - "file": "cms_metadata_value_service.list_cms_metadata_values.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 93, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCmsMetadataValues", - "fullName": "google.ads.admanager.v1.CmsMetadataValueService.ListCmsMetadataValues", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "skip", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.ads.admanager.v1.ListCmsMetadataValuesResponse", - "client": { - "shortName": "CmsMetadataValueServiceClient", - "fullName": "google.ads.admanager.v1.CmsMetadataValueServiceClient" - }, - "method": { - "shortName": "ListCmsMetadataValues", - "fullName": "google.ads.admanager.v1.CmsMetadataValueService.ListCmsMetadataValues", - "service": { - "shortName": "CmsMetadataValueService", - "fullName": "google.ads.admanager.v1.CmsMetadataValueService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_CmsMetadataValueService_BatchActivateCmsMetadataValues_async", - "title": "AdBreakService batchActivateCmsMetadataValues Sample", - "origin": "API_DEFINITION", - "description": " API to activate a list of `CmsMetadataValue` objects.", - "canonical": true, - "file": "cms_metadata_value_service.batch_activate_cms_metadata_values.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchActivateCmsMetadataValues", - "fullName": "google.ads.admanager.v1.CmsMetadataValueService.BatchActivateCmsMetadataValues", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "names", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.ads.admanager.v1.BatchActivateCmsMetadataValuesResponse", - "client": { - "shortName": "CmsMetadataValueServiceClient", - "fullName": "google.ads.admanager.v1.CmsMetadataValueServiceClient" - }, - "method": { - "shortName": "BatchActivateCmsMetadataValues", - "fullName": "google.ads.admanager.v1.CmsMetadataValueService.BatchActivateCmsMetadataValues", - "service": { - "shortName": "CmsMetadataValueService", - "fullName": "google.ads.admanager.v1.CmsMetadataValueService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_CmsMetadataValueService_BatchDeactivateCmsMetadataValues_async", - "title": "AdBreakService batchDeactivateCmsMetadataValues Sample", - "origin": "API_DEFINITION", - "description": " API to deactivate a list of `CmsMetadataValue` objects.", - "canonical": true, - "file": "cms_metadata_value_service.batch_deactivate_cms_metadata_values.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchDeactivateCmsMetadataValues", - "fullName": "google.ads.admanager.v1.CmsMetadataValueService.BatchDeactivateCmsMetadataValues", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "names", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.ads.admanager.v1.BatchDeactivateCmsMetadataValuesResponse", - "client": { - "shortName": "CmsMetadataValueServiceClient", - "fullName": "google.ads.admanager.v1.CmsMetadataValueServiceClient" - }, - "method": { - "shortName": "BatchDeactivateCmsMetadataValues", - "fullName": "google.ads.admanager.v1.CmsMetadataValueService.BatchDeactivateCmsMetadataValues", - "service": { - "shortName": "CmsMetadataValueService", - "fullName": "google.ads.admanager.v1.CmsMetadataValueService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_CompanyService_GetCompany_async", - "title": "AdBreakService getCompany Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a `Company` object.", - "canonical": true, - "file": "company_service.get_company.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCompany", - "fullName": "google.ads.admanager.v1.CompanyService.GetCompany", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ads.admanager.v1.Company", - "client": { - "shortName": "CompanyServiceClient", - "fullName": "google.ads.admanager.v1.CompanyServiceClient" - }, - "method": { - "shortName": "GetCompany", - "fullName": "google.ads.admanager.v1.CompanyService.GetCompany", - "service": { - "shortName": "CompanyService", - "fullName": "google.ads.admanager.v1.CompanyService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_CompanyService_ListCompanies_async", - "title": "AdBreakService listCompanies Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a list of `Company` objects.", - "canonical": true, - "file": "company_service.list_companies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 102, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCompanies", - "fullName": "google.ads.admanager.v1.CompanyService.ListCompanies", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "skip", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.ads.admanager.v1.ListCompaniesResponse", - "client": { - "shortName": "CompanyServiceClient", - "fullName": "google.ads.admanager.v1.CompanyServiceClient" - }, - "method": { - "shortName": "ListCompanies", - "fullName": "google.ads.admanager.v1.CompanyService.ListCompanies", - "service": { - "shortName": "CompanyService", - "fullName": "google.ads.admanager.v1.CompanyService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_ContactService_GetContact_async", - "title": "AdBreakService getContact Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a `Contact` object.", - "canonical": true, - "file": "contact_service.get_contact.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetContact", - "fullName": "google.ads.admanager.v1.ContactService.GetContact", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ads.admanager.v1.Contact", - "client": { - "shortName": "ContactServiceClient", - "fullName": "google.ads.admanager.v1.ContactServiceClient" - }, - "method": { - "shortName": "GetContact", - "fullName": "google.ads.admanager.v1.ContactService.GetContact", - "service": { - "shortName": "ContactService", - "fullName": "google.ads.admanager.v1.ContactService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_ContactService_ListContacts_async", - "title": "AdBreakService listContacts Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a list of `Contact` objects.", - "canonical": true, - "file": "contact_service.list_contacts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 100, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListContacts", - "fullName": "google.ads.admanager.v1.ContactService.ListContacts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "skip", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.ads.admanager.v1.ListContactsResponse", - "client": { - "shortName": "ContactServiceClient", - "fullName": "google.ads.admanager.v1.ContactServiceClient" - }, - "method": { - "shortName": "ListContacts", - "fullName": "google.ads.admanager.v1.ContactService.ListContacts", - "service": { - "shortName": "ContactService", - "fullName": "google.ads.admanager.v1.ContactService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_ContactService_CreateContact_async", - "title": "AdBreakService createContact Sample", - "origin": "API_DEFINITION", - "description": " API to create a `Contact` object.", - "canonical": true, - "file": "contact_service.create_contact.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateContact", - "fullName": "google.ads.admanager.v1.ContactService.CreateContact", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "contact", - "type": ".google.ads.admanager.v1.Contact" - } - ], - "resultType": ".google.ads.admanager.v1.Contact", - "client": { - "shortName": "ContactServiceClient", - "fullName": "google.ads.admanager.v1.ContactServiceClient" - }, - "method": { - "shortName": "CreateContact", - "fullName": "google.ads.admanager.v1.ContactService.CreateContact", - "service": { - "shortName": "ContactService", - "fullName": "google.ads.admanager.v1.ContactService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_ContactService_BatchCreateContacts_async", - "title": "AdBreakService batchCreateContacts Sample", - "origin": "API_DEFINITION", - "description": " API to batch create `Contact` objects.", - "canonical": true, - "file": "contact_service.batch_create_contacts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCreateContacts", - "fullName": "google.ads.admanager.v1.ContactService.BatchCreateContacts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.ads.admanager.v1.BatchCreateContactsResponse", - "client": { - "shortName": "ContactServiceClient", - "fullName": "google.ads.admanager.v1.ContactServiceClient" - }, - "method": { - "shortName": "BatchCreateContacts", - "fullName": "google.ads.admanager.v1.ContactService.BatchCreateContacts", - "service": { - "shortName": "ContactService", - "fullName": "google.ads.admanager.v1.ContactService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_ContactService_UpdateContact_async", - "title": "AdBreakService updateContact Sample", - "origin": "API_DEFINITION", - "description": " API to update a `Contact` object.", - "canonical": true, - "file": "contact_service.update_contact.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateContact", - "fullName": "google.ads.admanager.v1.ContactService.UpdateContact", - "async": true, - "parameters": [ - { - "name": "contact", - "type": ".google.ads.admanager.v1.Contact" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.ads.admanager.v1.Contact", - "client": { - "shortName": "ContactServiceClient", - "fullName": "google.ads.admanager.v1.ContactServiceClient" - }, - "method": { - "shortName": "UpdateContact", - "fullName": "google.ads.admanager.v1.ContactService.UpdateContact", - "service": { - "shortName": "ContactService", - "fullName": "google.ads.admanager.v1.ContactService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_ContactService_BatchUpdateContacts_async", - "title": "AdBreakService batchUpdateContacts Sample", - "origin": "API_DEFINITION", - "description": " API to batch update `Contact` objects.", - "canonical": true, - "file": "contact_service.batch_update_contacts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchUpdateContacts", - "fullName": "google.ads.admanager.v1.ContactService.BatchUpdateContacts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.ads.admanager.v1.BatchUpdateContactsResponse", - "client": { - "shortName": "ContactServiceClient", - "fullName": "google.ads.admanager.v1.ContactServiceClient" - }, - "method": { - "shortName": "BatchUpdateContacts", - "fullName": "google.ads.admanager.v1.ContactService.BatchUpdateContacts", - "service": { - "shortName": "ContactService", - "fullName": "google.ads.admanager.v1.ContactService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_ContentBundleService_GetContentBundle_async", - "title": "AdBreakService getContentBundle Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a `ContentBundle` object.", - "canonical": true, - "file": "content_bundle_service.get_content_bundle.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetContentBundle", - "fullName": "google.ads.admanager.v1.ContentBundleService.GetContentBundle", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ads.admanager.v1.ContentBundle", - "client": { - "shortName": "ContentBundleServiceClient", - "fullName": "google.ads.admanager.v1.ContentBundleServiceClient" - }, - "method": { - "shortName": "GetContentBundle", - "fullName": "google.ads.admanager.v1.ContentBundleService.GetContentBundle", - "service": { - "shortName": "ContentBundleService", - "fullName": "google.ads.admanager.v1.ContentBundleService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_ContentBundleService_ListContentBundles_async", - "title": "AdBreakService listContentBundles Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a list of `ContentBundle` objects.", - "canonical": true, - "file": "content_bundle_service.list_content_bundles.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 91, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListContentBundles", - "fullName": "google.ads.admanager.v1.ContentBundleService.ListContentBundles", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "skip", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.ads.admanager.v1.ListContentBundlesResponse", - "client": { - "shortName": "ContentBundleServiceClient", - "fullName": "google.ads.admanager.v1.ContentBundleServiceClient" - }, - "method": { - "shortName": "ListContentBundles", - "fullName": "google.ads.admanager.v1.ContentBundleService.ListContentBundles", - "service": { - "shortName": "ContentBundleService", - "fullName": "google.ads.admanager.v1.ContentBundleService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_ContentLabelService_GetContentLabel_async", - "title": "AdBreakService getContentLabel Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a `ContentLabel` object.", - "canonical": true, - "file": "content_label_service.get_content_label.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetContentLabel", - "fullName": "google.ads.admanager.v1.ContentLabelService.GetContentLabel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ads.admanager.v1.ContentLabel", - "client": { - "shortName": "ContentLabelServiceClient", - "fullName": "google.ads.admanager.v1.ContentLabelServiceClient" - }, - "method": { - "shortName": "GetContentLabel", - "fullName": "google.ads.admanager.v1.ContentLabelService.GetContentLabel", - "service": { - "shortName": "ContentLabelService", - "fullName": "google.ads.admanager.v1.ContentLabelService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_ContentLabelService_ListContentLabels_async", - "title": "AdBreakService listContentLabels Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a list of `ContentLabel` objects.", - "canonical": true, - "file": "content_label_service.list_content_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 91, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListContentLabels", - "fullName": "google.ads.admanager.v1.ContentLabelService.ListContentLabels", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "skip", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.ads.admanager.v1.ListContentLabelsResponse", - "client": { - "shortName": "ContentLabelServiceClient", - "fullName": "google.ads.admanager.v1.ContentLabelServiceClient" - }, - "method": { - "shortName": "ListContentLabels", - "fullName": "google.ads.admanager.v1.ContentLabelService.ListContentLabels", - "service": { - "shortName": "ContentLabelService", - "fullName": "google.ads.admanager.v1.ContentLabelService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_ContentService_GetContent_async", - "title": "AdBreakService getContent Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a `Content` object.", - "canonical": true, - "file": "content_service.get_content.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetContent", - "fullName": "google.ads.admanager.v1.ContentService.GetContent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ads.admanager.v1.Content", - "client": { - "shortName": "ContentServiceClient", - "fullName": "google.ads.admanager.v1.ContentServiceClient" - }, - "method": { - "shortName": "GetContent", - "fullName": "google.ads.admanager.v1.ContentService.GetContent", - "service": { - "shortName": "ContentService", - "fullName": "google.ads.admanager.v1.ContentService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_ContentService_ListContent_async", - "title": "AdBreakService listContent Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a list of `Content` objects.", - "canonical": true, - "file": "content_service.list_content.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 91, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListContent", - "fullName": "google.ads.admanager.v1.ContentService.ListContent", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "skip", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.ads.admanager.v1.ListContentResponse", - "client": { - "shortName": "ContentServiceClient", - "fullName": "google.ads.admanager.v1.ContentServiceClient" - }, - "method": { - "shortName": "ListContent", - "fullName": "google.ads.admanager.v1.ContentService.ListContent", - "service": { - "shortName": "ContentService", - "fullName": "google.ads.admanager.v1.ContentService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_CreativeTemplateService_GetCreativeTemplate_async", - "title": "AdBreakService getCreativeTemplate Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a `CreativeTemplate` object.", - "canonical": true, - "file": "creative_template_service.get_creative_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCreativeTemplate", - "fullName": "google.ads.admanager.v1.CreativeTemplateService.GetCreativeTemplate", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ads.admanager.v1.CreativeTemplate", - "client": { - "shortName": "CreativeTemplateServiceClient", - "fullName": "google.ads.admanager.v1.CreativeTemplateServiceClient" - }, - "method": { - "shortName": "GetCreativeTemplate", - "fullName": "google.ads.admanager.v1.CreativeTemplateService.GetCreativeTemplate", - "service": { - "shortName": "CreativeTemplateService", - "fullName": "google.ads.admanager.v1.CreativeTemplateService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_CreativeTemplateService_ListCreativeTemplates_async", - "title": "AdBreakService listCreativeTemplates Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a list of `CreativeTemplate` objects.", - "canonical": true, - "file": "creative_template_service.list_creative_templates.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 98, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCreativeTemplates", - "fullName": "google.ads.admanager.v1.CreativeTemplateService.ListCreativeTemplates", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "skip", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.ads.admanager.v1.ListCreativeTemplatesResponse", - "client": { - "shortName": "CreativeTemplateServiceClient", - "fullName": "google.ads.admanager.v1.CreativeTemplateServiceClient" - }, - "method": { - "shortName": "ListCreativeTemplates", - "fullName": "google.ads.admanager.v1.CreativeTemplateService.ListCreativeTemplates", - "service": { - "shortName": "CreativeTemplateService", - "fullName": "google.ads.admanager.v1.CreativeTemplateService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_CustomFieldService_GetCustomField_async", - "title": "AdBreakService getCustomField Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a `CustomField` object.", - "canonical": true, - "file": "custom_field_service.get_custom_field.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCustomField", - "fullName": "google.ads.admanager.v1.CustomFieldService.GetCustomField", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ads.admanager.v1.CustomField", - "client": { - "shortName": "CustomFieldServiceClient", - "fullName": "google.ads.admanager.v1.CustomFieldServiceClient" - }, - "method": { - "shortName": "GetCustomField", - "fullName": "google.ads.admanager.v1.CustomFieldService.GetCustomField", - "service": { - "shortName": "CustomFieldService", - "fullName": "google.ads.admanager.v1.CustomFieldService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_CustomFieldService_ListCustomFields_async", - "title": "AdBreakService listCustomFields Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a list of `CustomField` objects.", - "canonical": true, - "file": "custom_field_service.list_custom_fields.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 98, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCustomFields", - "fullName": "google.ads.admanager.v1.CustomFieldService.ListCustomFields", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "skip", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.ads.admanager.v1.ListCustomFieldsResponse", - "client": { - "shortName": "CustomFieldServiceClient", - "fullName": "google.ads.admanager.v1.CustomFieldServiceClient" - }, - "method": { - "shortName": "ListCustomFields", - "fullName": "google.ads.admanager.v1.CustomFieldService.ListCustomFields", - "service": { - "shortName": "CustomFieldService", - "fullName": "google.ads.admanager.v1.CustomFieldService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_CustomFieldService_CreateCustomField_async", - "title": "AdBreakService createCustomField Sample", - "origin": "API_DEFINITION", - "description": " API to create a `CustomField` object.", - "canonical": true, - "file": "custom_field_service.create_custom_field.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCustomField", - "fullName": "google.ads.admanager.v1.CustomFieldService.CreateCustomField", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "custom_field", - "type": ".google.ads.admanager.v1.CustomField" - } - ], - "resultType": ".google.ads.admanager.v1.CustomField", - "client": { - "shortName": "CustomFieldServiceClient", - "fullName": "google.ads.admanager.v1.CustomFieldServiceClient" - }, - "method": { - "shortName": "CreateCustomField", - "fullName": "google.ads.admanager.v1.CustomFieldService.CreateCustomField", - "service": { - "shortName": "CustomFieldService", - "fullName": "google.ads.admanager.v1.CustomFieldService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_CustomFieldService_BatchCreateCustomFields_async", - "title": "AdBreakService batchCreateCustomFields Sample", - "origin": "API_DEFINITION", - "description": " API to batch create `CustomField` objects.", - "canonical": true, - "file": "custom_field_service.batch_create_custom_fields.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCreateCustomFields", - "fullName": "google.ads.admanager.v1.CustomFieldService.BatchCreateCustomFields", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.ads.admanager.v1.BatchCreateCustomFieldsResponse", - "client": { - "shortName": "CustomFieldServiceClient", - "fullName": "google.ads.admanager.v1.CustomFieldServiceClient" - }, - "method": { - "shortName": "BatchCreateCustomFields", - "fullName": "google.ads.admanager.v1.CustomFieldService.BatchCreateCustomFields", - "service": { - "shortName": "CustomFieldService", - "fullName": "google.ads.admanager.v1.CustomFieldService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_CustomFieldService_UpdateCustomField_async", - "title": "AdBreakService updateCustomField Sample", - "origin": "API_DEFINITION", - "description": " API to update a `CustomField` object.", - "canonical": true, - "file": "custom_field_service.update_custom_field.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCustomField", - "fullName": "google.ads.admanager.v1.CustomFieldService.UpdateCustomField", - "async": true, - "parameters": [ - { - "name": "custom_field", - "type": ".google.ads.admanager.v1.CustomField" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.ads.admanager.v1.CustomField", - "client": { - "shortName": "CustomFieldServiceClient", - "fullName": "google.ads.admanager.v1.CustomFieldServiceClient" - }, - "method": { - "shortName": "UpdateCustomField", - "fullName": "google.ads.admanager.v1.CustomFieldService.UpdateCustomField", - "service": { - "shortName": "CustomFieldService", - "fullName": "google.ads.admanager.v1.CustomFieldService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_CustomFieldService_BatchUpdateCustomFields_async", - "title": "AdBreakService batchUpdateCustomFields Sample", - "origin": "API_DEFINITION", - "description": " API to batch update `CustomField` objects.", - "canonical": true, - "file": "custom_field_service.batch_update_custom_fields.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchUpdateCustomFields", - "fullName": "google.ads.admanager.v1.CustomFieldService.BatchUpdateCustomFields", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.ads.admanager.v1.BatchUpdateCustomFieldsResponse", - "client": { - "shortName": "CustomFieldServiceClient", - "fullName": "google.ads.admanager.v1.CustomFieldServiceClient" - }, - "method": { - "shortName": "BatchUpdateCustomFields", - "fullName": "google.ads.admanager.v1.CustomFieldService.BatchUpdateCustomFields", - "service": { - "shortName": "CustomFieldService", - "fullName": "google.ads.admanager.v1.CustomFieldService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_CustomFieldService_BatchActivateCustomFields_async", - "title": "AdBreakService batchActivateCustomFields Sample", - "origin": "API_DEFINITION", - "description": " Activates a list of `CustomField` objects.", - "canonical": true, - "file": "custom_field_service.batch_activate_custom_fields.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchActivateCustomFields", - "fullName": "google.ads.admanager.v1.CustomFieldService.BatchActivateCustomFields", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "names", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.ads.admanager.v1.BatchActivateCustomFieldsResponse", - "client": { - "shortName": "CustomFieldServiceClient", - "fullName": "google.ads.admanager.v1.CustomFieldServiceClient" - }, - "method": { - "shortName": "BatchActivateCustomFields", - "fullName": "google.ads.admanager.v1.CustomFieldService.BatchActivateCustomFields", - "service": { - "shortName": "CustomFieldService", - "fullName": "google.ads.admanager.v1.CustomFieldService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_CustomFieldService_BatchDeactivateCustomFields_async", - "title": "AdBreakService batchDeactivateCustomFields Sample", - "origin": "API_DEFINITION", - "description": " Deactivates a list of `CustomField` objects.", - "canonical": true, - "file": "custom_field_service.batch_deactivate_custom_fields.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchDeactivateCustomFields", - "fullName": "google.ads.admanager.v1.CustomFieldService.BatchDeactivateCustomFields", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "names", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.ads.admanager.v1.BatchDeactivateCustomFieldsResponse", - "client": { - "shortName": "CustomFieldServiceClient", - "fullName": "google.ads.admanager.v1.CustomFieldServiceClient" - }, - "method": { - "shortName": "BatchDeactivateCustomFields", - "fullName": "google.ads.admanager.v1.CustomFieldService.BatchDeactivateCustomFields", - "service": { - "shortName": "CustomFieldService", - "fullName": "google.ads.admanager.v1.CustomFieldService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_CustomTargetingKeyService_GetCustomTargetingKey_async", - "title": "AdBreakService getCustomTargetingKey Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a `CustomTargetingKey` object.", - "canonical": true, - "file": "custom_targeting_key_service.get_custom_targeting_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCustomTargetingKey", - "fullName": "google.ads.admanager.v1.CustomTargetingKeyService.GetCustomTargetingKey", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ads.admanager.v1.CustomTargetingKey", - "client": { - "shortName": "CustomTargetingKeyServiceClient", - "fullName": "google.ads.admanager.v1.CustomTargetingKeyServiceClient" - }, - "method": { - "shortName": "GetCustomTargetingKey", - "fullName": "google.ads.admanager.v1.CustomTargetingKeyService.GetCustomTargetingKey", - "service": { - "shortName": "CustomTargetingKeyService", - "fullName": "google.ads.admanager.v1.CustomTargetingKeyService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_CustomTargetingKeyService_ListCustomTargetingKeys_async", - "title": "AdBreakService listCustomTargetingKeys Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a list of `CustomTargetingKey` objects.", - "canonical": true, - "file": "custom_targeting_key_service.list_custom_targeting_keys.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 95, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCustomTargetingKeys", - "fullName": "google.ads.admanager.v1.CustomTargetingKeyService.ListCustomTargetingKeys", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "skip", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.ads.admanager.v1.ListCustomTargetingKeysResponse", - "client": { - "shortName": "CustomTargetingKeyServiceClient", - "fullName": "google.ads.admanager.v1.CustomTargetingKeyServiceClient" - }, - "method": { - "shortName": "ListCustomTargetingKeys", - "fullName": "google.ads.admanager.v1.CustomTargetingKeyService.ListCustomTargetingKeys", - "service": { - "shortName": "CustomTargetingKeyService", - "fullName": "google.ads.admanager.v1.CustomTargetingKeyService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_CustomTargetingKeyService_CreateCustomTargetingKey_async", - "title": "AdBreakService createCustomTargetingKey Sample", - "origin": "API_DEFINITION", - "description": " API to create a `CustomTargetingKey` object.", - "canonical": true, - "file": "custom_targeting_key_service.create_custom_targeting_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCustomTargetingKey", - "fullName": "google.ads.admanager.v1.CustomTargetingKeyService.CreateCustomTargetingKey", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "custom_targeting_key", - "type": ".google.ads.admanager.v1.CustomTargetingKey" - } - ], - "resultType": ".google.ads.admanager.v1.CustomTargetingKey", - "client": { - "shortName": "CustomTargetingKeyServiceClient", - "fullName": "google.ads.admanager.v1.CustomTargetingKeyServiceClient" - }, - "method": { - "shortName": "CreateCustomTargetingKey", - "fullName": "google.ads.admanager.v1.CustomTargetingKeyService.CreateCustomTargetingKey", - "service": { - "shortName": "CustomTargetingKeyService", - "fullName": "google.ads.admanager.v1.CustomTargetingKeyService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_CustomTargetingKeyService_BatchCreateCustomTargetingKeys_async", - "title": "AdBreakService batchCreateCustomTargetingKeys Sample", - "origin": "API_DEFINITION", - "description": " API to batch create `CustomTargetingKey` objects.", - "canonical": true, - "file": "custom_targeting_key_service.batch_create_custom_targeting_keys.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCreateCustomTargetingKeys", - "fullName": "google.ads.admanager.v1.CustomTargetingKeyService.BatchCreateCustomTargetingKeys", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.ads.admanager.v1.BatchCreateCustomTargetingKeysResponse", - "client": { - "shortName": "CustomTargetingKeyServiceClient", - "fullName": "google.ads.admanager.v1.CustomTargetingKeyServiceClient" - }, - "method": { - "shortName": "BatchCreateCustomTargetingKeys", - "fullName": "google.ads.admanager.v1.CustomTargetingKeyService.BatchCreateCustomTargetingKeys", - "service": { - "shortName": "CustomTargetingKeyService", - "fullName": "google.ads.admanager.v1.CustomTargetingKeyService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_CustomTargetingKeyService_UpdateCustomTargetingKey_async", - "title": "AdBreakService updateCustomTargetingKey Sample", - "origin": "API_DEFINITION", - "description": " API to update a `CustomTargetingKey` object.", - "canonical": true, - "file": "custom_targeting_key_service.update_custom_targeting_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCustomTargetingKey", - "fullName": "google.ads.admanager.v1.CustomTargetingKeyService.UpdateCustomTargetingKey", - "async": true, - "parameters": [ - { - "name": "custom_targeting_key", - "type": ".google.ads.admanager.v1.CustomTargetingKey" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.ads.admanager.v1.CustomTargetingKey", - "client": { - "shortName": "CustomTargetingKeyServiceClient", - "fullName": "google.ads.admanager.v1.CustomTargetingKeyServiceClient" - }, - "method": { - "shortName": "UpdateCustomTargetingKey", - "fullName": "google.ads.admanager.v1.CustomTargetingKeyService.UpdateCustomTargetingKey", - "service": { - "shortName": "CustomTargetingKeyService", - "fullName": "google.ads.admanager.v1.CustomTargetingKeyService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_CustomTargetingKeyService_BatchUpdateCustomTargetingKeys_async", - "title": "AdBreakService batchUpdateCustomTargetingKeys Sample", - "origin": "API_DEFINITION", - "description": " API to batch update `CustomTargetingKey` objects.", - "canonical": true, - "file": "custom_targeting_key_service.batch_update_custom_targeting_keys.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchUpdateCustomTargetingKeys", - "fullName": "google.ads.admanager.v1.CustomTargetingKeyService.BatchUpdateCustomTargetingKeys", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.ads.admanager.v1.BatchUpdateCustomTargetingKeysResponse", - "client": { - "shortName": "CustomTargetingKeyServiceClient", - "fullName": "google.ads.admanager.v1.CustomTargetingKeyServiceClient" - }, - "method": { - "shortName": "BatchUpdateCustomTargetingKeys", - "fullName": "google.ads.admanager.v1.CustomTargetingKeyService.BatchUpdateCustomTargetingKeys", - "service": { - "shortName": "CustomTargetingKeyService", - "fullName": "google.ads.admanager.v1.CustomTargetingKeyService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_CustomTargetingKeyService_BatchActivateCustomTargetingKeys_async", - "title": "AdBreakService batchActivateCustomTargetingKeys Sample", - "origin": "API_DEFINITION", - "description": " API to batch activate `CustomTargetingKey` objects.", - "canonical": true, - "file": "custom_targeting_key_service.batch_activate_custom_targeting_keys.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchActivateCustomTargetingKeys", - "fullName": "google.ads.admanager.v1.CustomTargetingKeyService.BatchActivateCustomTargetingKeys", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "names", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.ads.admanager.v1.BatchActivateCustomTargetingKeysResponse", - "client": { - "shortName": "CustomTargetingKeyServiceClient", - "fullName": "google.ads.admanager.v1.CustomTargetingKeyServiceClient" - }, - "method": { - "shortName": "BatchActivateCustomTargetingKeys", - "fullName": "google.ads.admanager.v1.CustomTargetingKeyService.BatchActivateCustomTargetingKeys", - "service": { - "shortName": "CustomTargetingKeyService", - "fullName": "google.ads.admanager.v1.CustomTargetingKeyService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_CustomTargetingKeyService_BatchDeactivateCustomTargetingKeys_async", - "title": "AdBreakService batchDeactivateCustomTargetingKeys Sample", - "origin": "API_DEFINITION", - "description": " Deactivates a list of `CustomTargetingKey` objects.", - "canonical": true, - "file": "custom_targeting_key_service.batch_deactivate_custom_targeting_keys.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchDeactivateCustomTargetingKeys", - "fullName": "google.ads.admanager.v1.CustomTargetingKeyService.BatchDeactivateCustomTargetingKeys", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "names", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysResponse", - "client": { - "shortName": "CustomTargetingKeyServiceClient", - "fullName": "google.ads.admanager.v1.CustomTargetingKeyServiceClient" - }, - "method": { - "shortName": "BatchDeactivateCustomTargetingKeys", - "fullName": "google.ads.admanager.v1.CustomTargetingKeyService.BatchDeactivateCustomTargetingKeys", - "service": { - "shortName": "CustomTargetingKeyService", - "fullName": "google.ads.admanager.v1.CustomTargetingKeyService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_CustomTargetingValueService_GetCustomTargetingValue_async", - "title": "AdBreakService getCustomTargetingValue Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a `CustomTargetingValue` object.", - "canonical": true, - "file": "custom_targeting_value_service.get_custom_targeting_value.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCustomTargetingValue", - "fullName": "google.ads.admanager.v1.CustomTargetingValueService.GetCustomTargetingValue", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ads.admanager.v1.CustomTargetingValue", - "client": { - "shortName": "CustomTargetingValueServiceClient", - "fullName": "google.ads.admanager.v1.CustomTargetingValueServiceClient" - }, - "method": { - "shortName": "GetCustomTargetingValue", - "fullName": "google.ads.admanager.v1.CustomTargetingValueService.GetCustomTargetingValue", - "service": { - "shortName": "CustomTargetingValueService", - "fullName": "google.ads.admanager.v1.CustomTargetingValueService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_CustomTargetingValueService_ListCustomTargetingValues_async", - "title": "AdBreakService listCustomTargetingValues Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a list of `CustomTargetingValue` objects.", - "canonical": true, - "file": "custom_targeting_value_service.list_custom_targeting_values.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 98, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCustomTargetingValues", - "fullName": "google.ads.admanager.v1.CustomTargetingValueService.ListCustomTargetingValues", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "skip", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.ads.admanager.v1.ListCustomTargetingValuesResponse", - "client": { - "shortName": "CustomTargetingValueServiceClient", - "fullName": "google.ads.admanager.v1.CustomTargetingValueServiceClient" - }, - "method": { - "shortName": "ListCustomTargetingValues", - "fullName": "google.ads.admanager.v1.CustomTargetingValueService.ListCustomTargetingValues", - "service": { - "shortName": "CustomTargetingValueService", - "fullName": "google.ads.admanager.v1.CustomTargetingValueService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_DeviceCapabilityService_GetDeviceCapability_async", - "title": "AdBreakService getDeviceCapability Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a `DeviceCapability` object.", - "canonical": true, - "file": "device_capability_service.get_device_capability.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDeviceCapability", - "fullName": "google.ads.admanager.v1.DeviceCapabilityService.GetDeviceCapability", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ads.admanager.v1.DeviceCapability", - "client": { - "shortName": "DeviceCapabilityServiceClient", - "fullName": "google.ads.admanager.v1.DeviceCapabilityServiceClient" - }, - "method": { - "shortName": "GetDeviceCapability", - "fullName": "google.ads.admanager.v1.DeviceCapabilityService.GetDeviceCapability", - "service": { - "shortName": "DeviceCapabilityService", - "fullName": "google.ads.admanager.v1.DeviceCapabilityService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_DeviceCapabilityService_ListDeviceCapabilities_async", - "title": "AdBreakService listDeviceCapabilities Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a list of `DeviceCapability` objects.", - "canonical": true, - "file": "device_capability_service.list_device_capabilities.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 91, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDeviceCapabilities", - "fullName": "google.ads.admanager.v1.DeviceCapabilityService.ListDeviceCapabilities", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "skip", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.ads.admanager.v1.ListDeviceCapabilitiesResponse", - "client": { - "shortName": "DeviceCapabilityServiceClient", - "fullName": "google.ads.admanager.v1.DeviceCapabilityServiceClient" - }, - "method": { - "shortName": "ListDeviceCapabilities", - "fullName": "google.ads.admanager.v1.DeviceCapabilityService.ListDeviceCapabilities", - "service": { - "shortName": "DeviceCapabilityService", - "fullName": "google.ads.admanager.v1.DeviceCapabilityService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_DeviceCategoryService_GetDeviceCategory_async", - "title": "AdBreakService getDeviceCategory Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a `DeviceCategory` object.", - "canonical": true, - "file": "device_category_service.get_device_category.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDeviceCategory", - "fullName": "google.ads.admanager.v1.DeviceCategoryService.GetDeviceCategory", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ads.admanager.v1.DeviceCategory", - "client": { - "shortName": "DeviceCategoryServiceClient", - "fullName": "google.ads.admanager.v1.DeviceCategoryServiceClient" - }, - "method": { - "shortName": "GetDeviceCategory", - "fullName": "google.ads.admanager.v1.DeviceCategoryService.GetDeviceCategory", - "service": { - "shortName": "DeviceCategoryService", - "fullName": "google.ads.admanager.v1.DeviceCategoryService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_DeviceCategoryService_ListDeviceCategories_async", - "title": "AdBreakService listDeviceCategories Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a list of `DeviceCategory` objects.", - "canonical": true, - "file": "device_category_service.list_device_categories.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 91, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDeviceCategories", - "fullName": "google.ads.admanager.v1.DeviceCategoryService.ListDeviceCategories", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "skip", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.ads.admanager.v1.ListDeviceCategoriesResponse", - "client": { - "shortName": "DeviceCategoryServiceClient", - "fullName": "google.ads.admanager.v1.DeviceCategoryServiceClient" - }, - "method": { - "shortName": "ListDeviceCategories", - "fullName": "google.ads.admanager.v1.DeviceCategoryService.ListDeviceCategories", - "service": { - "shortName": "DeviceCategoryService", - "fullName": "google.ads.admanager.v1.DeviceCategoryService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_DeviceManufacturerService_GetDeviceManufacturer_async", - "title": "AdBreakService getDeviceManufacturer Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a `DeviceManufacturer` object.", - "canonical": true, - "file": "device_manufacturer_service.get_device_manufacturer.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDeviceManufacturer", - "fullName": "google.ads.admanager.v1.DeviceManufacturerService.GetDeviceManufacturer", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ads.admanager.v1.DeviceManufacturer", - "client": { - "shortName": "DeviceManufacturerServiceClient", - "fullName": "google.ads.admanager.v1.DeviceManufacturerServiceClient" - }, - "method": { - "shortName": "GetDeviceManufacturer", - "fullName": "google.ads.admanager.v1.DeviceManufacturerService.GetDeviceManufacturer", - "service": { - "shortName": "DeviceManufacturerService", - "fullName": "google.ads.admanager.v1.DeviceManufacturerService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_DeviceManufacturerService_ListDeviceManufacturers_async", - "title": "AdBreakService listDeviceManufacturers Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a list of `DeviceManufacturer` objects.", - "canonical": true, - "file": "device_manufacturer_service.list_device_manufacturers.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 91, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDeviceManufacturers", - "fullName": "google.ads.admanager.v1.DeviceManufacturerService.ListDeviceManufacturers", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "skip", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.ads.admanager.v1.ListDeviceManufacturersResponse", - "client": { - "shortName": "DeviceManufacturerServiceClient", - "fullName": "google.ads.admanager.v1.DeviceManufacturerServiceClient" - }, - "method": { - "shortName": "ListDeviceManufacturers", - "fullName": "google.ads.admanager.v1.DeviceManufacturerService.ListDeviceManufacturers", - "service": { - "shortName": "DeviceManufacturerService", - "fullName": "google.ads.admanager.v1.DeviceManufacturerService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_EntitySignalsMappingService_GetEntitySignalsMapping_async", - "title": "AdBreakService getEntitySignalsMapping Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a `EntitySignalsMapping` object.", - "canonical": true, - "file": "entity_signals_mapping_service.get_entity_signals_mapping.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEntitySignalsMapping", - "fullName": "google.ads.admanager.v1.EntitySignalsMappingService.GetEntitySignalsMapping", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ads.admanager.v1.EntitySignalsMapping", - "client": { - "shortName": "EntitySignalsMappingServiceClient", - "fullName": "google.ads.admanager.v1.EntitySignalsMappingServiceClient" - }, - "method": { - "shortName": "GetEntitySignalsMapping", - "fullName": "google.ads.admanager.v1.EntitySignalsMappingService.GetEntitySignalsMapping", - "service": { - "shortName": "EntitySignalsMappingService", - "fullName": "google.ads.admanager.v1.EntitySignalsMappingService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_EntitySignalsMappingService_ListEntitySignalsMappings_async", - "title": "AdBreakService listEntitySignalsMappings Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a list of `EntitySignalsMapping` objects.", - "canonical": true, - "file": "entity_signals_mapping_service.list_entity_signals_mappings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 88, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEntitySignalsMappings", - "fullName": "google.ads.admanager.v1.EntitySignalsMappingService.ListEntitySignalsMappings", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "skip", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.ads.admanager.v1.ListEntitySignalsMappingsResponse", - "client": { - "shortName": "EntitySignalsMappingServiceClient", - "fullName": "google.ads.admanager.v1.EntitySignalsMappingServiceClient" - }, - "method": { - "shortName": "ListEntitySignalsMappings", - "fullName": "google.ads.admanager.v1.EntitySignalsMappingService.ListEntitySignalsMappings", - "service": { - "shortName": "EntitySignalsMappingService", - "fullName": "google.ads.admanager.v1.EntitySignalsMappingService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_EntitySignalsMappingService_CreateEntitySignalsMapping_async", - "title": "AdBreakService createEntitySignalsMapping Sample", - "origin": "API_DEFINITION", - "description": " API to create an `EntitySignalsMapping` object.", - "canonical": true, - "file": "entity_signals_mapping_service.create_entity_signals_mapping.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateEntitySignalsMapping", - "fullName": "google.ads.admanager.v1.EntitySignalsMappingService.CreateEntitySignalsMapping", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "entity_signals_mapping", - "type": ".google.ads.admanager.v1.EntitySignalsMapping" - } - ], - "resultType": ".google.ads.admanager.v1.EntitySignalsMapping", - "client": { - "shortName": "EntitySignalsMappingServiceClient", - "fullName": "google.ads.admanager.v1.EntitySignalsMappingServiceClient" - }, - "method": { - "shortName": "CreateEntitySignalsMapping", - "fullName": "google.ads.admanager.v1.EntitySignalsMappingService.CreateEntitySignalsMapping", - "service": { - "shortName": "EntitySignalsMappingService", - "fullName": "google.ads.admanager.v1.EntitySignalsMappingService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_EntitySignalsMappingService_UpdateEntitySignalsMapping_async", - "title": "AdBreakService updateEntitySignalsMapping Sample", - "origin": "API_DEFINITION", - "description": " API to update an `EntitySignalsMapping` object.", - "canonical": true, - "file": "entity_signals_mapping_service.update_entity_signals_mapping.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateEntitySignalsMapping", - "fullName": "google.ads.admanager.v1.EntitySignalsMappingService.UpdateEntitySignalsMapping", - "async": true, - "parameters": [ - { - "name": "entity_signals_mapping", - "type": ".google.ads.admanager.v1.EntitySignalsMapping" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.ads.admanager.v1.EntitySignalsMapping", - "client": { - "shortName": "EntitySignalsMappingServiceClient", - "fullName": "google.ads.admanager.v1.EntitySignalsMappingServiceClient" - }, - "method": { - "shortName": "UpdateEntitySignalsMapping", - "fullName": "google.ads.admanager.v1.EntitySignalsMappingService.UpdateEntitySignalsMapping", - "service": { - "shortName": "EntitySignalsMappingService", - "fullName": "google.ads.admanager.v1.EntitySignalsMappingService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_EntitySignalsMappingService_BatchCreateEntitySignalsMappings_async", - "title": "AdBreakService batchCreateEntitySignalsMappings Sample", - "origin": "API_DEFINITION", - "description": " API to batch create `EntitySignalsMapping` objects.", - "canonical": true, - "file": "entity_signals_mapping_service.batch_create_entity_signals_mappings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCreateEntitySignalsMappings", - "fullName": "google.ads.admanager.v1.EntitySignalsMappingService.BatchCreateEntitySignalsMappings", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.ads.admanager.v1.BatchCreateEntitySignalsMappingsResponse", - "client": { - "shortName": "EntitySignalsMappingServiceClient", - "fullName": "google.ads.admanager.v1.EntitySignalsMappingServiceClient" - }, - "method": { - "shortName": "BatchCreateEntitySignalsMappings", - "fullName": "google.ads.admanager.v1.EntitySignalsMappingService.BatchCreateEntitySignalsMappings", - "service": { - "shortName": "EntitySignalsMappingService", - "fullName": "google.ads.admanager.v1.EntitySignalsMappingService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_EntitySignalsMappingService_BatchUpdateEntitySignalsMappings_async", - "title": "AdBreakService batchUpdateEntitySignalsMappings Sample", - "origin": "API_DEFINITION", - "description": " API to batch update `EntitySignalsMapping` objects.", - "canonical": true, - "file": "entity_signals_mapping_service.batch_update_entity_signals_mappings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchUpdateEntitySignalsMappings", - "fullName": "google.ads.admanager.v1.EntitySignalsMappingService.BatchUpdateEntitySignalsMappings", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.ads.admanager.v1.BatchUpdateEntitySignalsMappingsResponse", - "client": { - "shortName": "EntitySignalsMappingServiceClient", - "fullName": "google.ads.admanager.v1.EntitySignalsMappingServiceClient" - }, - "method": { - "shortName": "BatchUpdateEntitySignalsMappings", - "fullName": "google.ads.admanager.v1.EntitySignalsMappingService.BatchUpdateEntitySignalsMappings", - "service": { - "shortName": "EntitySignalsMappingService", - "fullName": "google.ads.admanager.v1.EntitySignalsMappingService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_GeoTargetService_GetGeoTarget_async", - "title": "AdBreakService getGeoTarget Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a `GeoTarget` object.", - "canonical": true, - "file": "geo_target_service.get_geo_target.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetGeoTarget", - "fullName": "google.ads.admanager.v1.GeoTargetService.GetGeoTarget", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ads.admanager.v1.GeoTarget", - "client": { - "shortName": "GeoTargetServiceClient", - "fullName": "google.ads.admanager.v1.GeoTargetServiceClient" - }, - "method": { - "shortName": "GetGeoTarget", - "fullName": "google.ads.admanager.v1.GeoTargetService.GetGeoTarget", - "service": { - "shortName": "GeoTargetService", - "fullName": "google.ads.admanager.v1.GeoTargetService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_GeoTargetService_ListGeoTargets_async", - "title": "AdBreakService listGeoTargets Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a list of `GeoTarget` objects.", - "canonical": true, - "file": "geo_target_service.list_geo_targets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 94, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListGeoTargets", - "fullName": "google.ads.admanager.v1.GeoTargetService.ListGeoTargets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "skip", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.ads.admanager.v1.ListGeoTargetsResponse", - "client": { - "shortName": "GeoTargetServiceClient", - "fullName": "google.ads.admanager.v1.GeoTargetServiceClient" - }, - "method": { - "shortName": "ListGeoTargets", - "fullName": "google.ads.admanager.v1.GeoTargetService.ListGeoTargets", - "service": { - "shortName": "GeoTargetService", - "fullName": "google.ads.admanager.v1.GeoTargetService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_LabelService_GetLabel_async", - "title": "AdBreakService getLabel Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a `Label` object.", - "canonical": true, - "file": "label_service.get_label.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetLabel", - "fullName": "google.ads.admanager.v1.LabelService.GetLabel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ads.admanager.v1.Label", - "client": { - "shortName": "LabelServiceClient", - "fullName": "google.ads.admanager.v1.LabelServiceClient" - }, - "method": { - "shortName": "GetLabel", - "fullName": "google.ads.admanager.v1.LabelService.GetLabel", - "service": { - "shortName": "LabelService", - "fullName": "google.ads.admanager.v1.LabelService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_LabelService_ListLabels_async", - "title": "AdBreakService listLabels Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a list of `Label` objects.", - "canonical": true, - "file": "label_service.list_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 94, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListLabels", - "fullName": "google.ads.admanager.v1.LabelService.ListLabels", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "skip", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.ads.admanager.v1.ListLabelsResponse", - "client": { - "shortName": "LabelServiceClient", - "fullName": "google.ads.admanager.v1.LabelServiceClient" - }, - "method": { - "shortName": "ListLabels", - "fullName": "google.ads.admanager.v1.LabelService.ListLabels", - "service": { - "shortName": "LabelService", - "fullName": "google.ads.admanager.v1.LabelService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_LabelService_CreateLabel_async", - "title": "AdBreakService createLabel Sample", - "origin": "API_DEFINITION", - "description": " API to create a `Label` object.", - "canonical": true, - "file": "label_service.create_label.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateLabel", - "fullName": "google.ads.admanager.v1.LabelService.CreateLabel", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "label", - "type": ".google.ads.admanager.v1.Label" - } - ], - "resultType": ".google.ads.admanager.v1.Label", - "client": { - "shortName": "LabelServiceClient", - "fullName": "google.ads.admanager.v1.LabelServiceClient" - }, - "method": { - "shortName": "CreateLabel", - "fullName": "google.ads.admanager.v1.LabelService.CreateLabel", - "service": { - "shortName": "LabelService", - "fullName": "google.ads.admanager.v1.LabelService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_LabelService_BatchCreateLabels_async", - "title": "AdBreakService batchCreateLabels Sample", - "origin": "API_DEFINITION", - "description": " API to batch create `Label` objects.", - "canonical": true, - "file": "label_service.batch_create_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCreateLabels", - "fullName": "google.ads.admanager.v1.LabelService.BatchCreateLabels", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.ads.admanager.v1.BatchCreateLabelsResponse", - "client": { - "shortName": "LabelServiceClient", - "fullName": "google.ads.admanager.v1.LabelServiceClient" - }, - "method": { - "shortName": "BatchCreateLabels", - "fullName": "google.ads.admanager.v1.LabelService.BatchCreateLabels", - "service": { - "shortName": "LabelService", - "fullName": "google.ads.admanager.v1.LabelService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_LabelService_UpdateLabel_async", - "title": "AdBreakService updateLabel Sample", - "origin": "API_DEFINITION", - "description": " API to update a `Label` object.", - "canonical": true, - "file": "label_service.update_label.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateLabel", - "fullName": "google.ads.admanager.v1.LabelService.UpdateLabel", - "async": true, - "parameters": [ - { - "name": "label", - "type": ".google.ads.admanager.v1.Label" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.ads.admanager.v1.Label", - "client": { - "shortName": "LabelServiceClient", - "fullName": "google.ads.admanager.v1.LabelServiceClient" - }, - "method": { - "shortName": "UpdateLabel", - "fullName": "google.ads.admanager.v1.LabelService.UpdateLabel", - "service": { - "shortName": "LabelService", - "fullName": "google.ads.admanager.v1.LabelService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_LabelService_BatchUpdateLabels_async", - "title": "AdBreakService batchUpdateLabels Sample", - "origin": "API_DEFINITION", - "description": " API to batch update `Label` objects.", - "canonical": true, - "file": "label_service.batch_update_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchUpdateLabels", - "fullName": "google.ads.admanager.v1.LabelService.BatchUpdateLabels", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.ads.admanager.v1.BatchUpdateLabelsResponse", - "client": { - "shortName": "LabelServiceClient", - "fullName": "google.ads.admanager.v1.LabelServiceClient" - }, - "method": { - "shortName": "BatchUpdateLabels", - "fullName": "google.ads.admanager.v1.LabelService.BatchUpdateLabels", - "service": { - "shortName": "LabelService", - "fullName": "google.ads.admanager.v1.LabelService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_LabelService_BatchActivateLabels_async", - "title": "AdBreakService batchActivateLabels Sample", - "origin": "API_DEFINITION", - "description": " API to activate `Label` objects.", - "canonical": true, - "file": "label_service.batch_activate_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchActivateLabels", - "fullName": "google.ads.admanager.v1.LabelService.BatchActivateLabels", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "names", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.ads.admanager.v1.BatchActivateLabelsResponse", - "client": { - "shortName": "LabelServiceClient", - "fullName": "google.ads.admanager.v1.LabelServiceClient" - }, - "method": { - "shortName": "BatchActivateLabels", - "fullName": "google.ads.admanager.v1.LabelService.BatchActivateLabels", - "service": { - "shortName": "LabelService", - "fullName": "google.ads.admanager.v1.LabelService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_LabelService_BatchDeactivateLabels_async", - "title": "AdBreakService batchDeactivateLabels Sample", - "origin": "API_DEFINITION", - "description": " API to deactivate `Label` objects.", - "canonical": true, - "file": "label_service.batch_deactivate_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchDeactivateLabels", - "fullName": "google.ads.admanager.v1.LabelService.BatchDeactivateLabels", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "names", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.ads.admanager.v1.BatchDeactivateLabelsResponse", - "client": { - "shortName": "LabelServiceClient", - "fullName": "google.ads.admanager.v1.LabelServiceClient" - }, - "method": { - "shortName": "BatchDeactivateLabels", - "fullName": "google.ads.admanager.v1.LabelService.BatchDeactivateLabels", - "service": { - "shortName": "LabelService", - "fullName": "google.ads.admanager.v1.LabelService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_LineItemService_GetLineItem_async", - "title": "AdBreakService getLineItem Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a `LineItem` object.", - "canonical": true, - "file": "line_item_service.get_line_item.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetLineItem", - "fullName": "google.ads.admanager.v1.LineItemService.GetLineItem", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ads.admanager.v1.LineItem", - "client": { - "shortName": "LineItemServiceClient", - "fullName": "google.ads.admanager.v1.LineItemServiceClient" - }, - "method": { - "shortName": "GetLineItem", - "fullName": "google.ads.admanager.v1.LineItemService.GetLineItem", - "service": { - "shortName": "LineItemService", - "fullName": "google.ads.admanager.v1.LineItemService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_LineItemService_ListLineItems_async", - "title": "AdBreakService listLineItems Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a list of `LineItem` objects.", - "canonical": true, - "file": "line_item_service.list_line_items.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 96, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListLineItems", - "fullName": "google.ads.admanager.v1.LineItemService.ListLineItems", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "skip", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.ads.admanager.v1.ListLineItemsResponse", - "client": { - "shortName": "LineItemServiceClient", - "fullName": "google.ads.admanager.v1.LineItemServiceClient" - }, - "method": { - "shortName": "ListLineItems", - "fullName": "google.ads.admanager.v1.LineItemService.ListLineItems", - "service": { - "shortName": "LineItemService", - "fullName": "google.ads.admanager.v1.LineItemService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_LinkedDeviceService_GetLinkedDevice_async", - "title": "AdBreakService getLinkedDevice Sample", - "origin": "API_DEFINITION", - "description": " Gets a `LinkedDevice`.", - "canonical": true, - "file": "linked_device_service.get_linked_device.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetLinkedDevice", - "fullName": "google.ads.admanager.v1.LinkedDeviceService.GetLinkedDevice", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ads.admanager.v1.LinkedDevice", - "client": { - "shortName": "LinkedDeviceServiceClient", - "fullName": "google.ads.admanager.v1.LinkedDeviceServiceClient" - }, - "method": { - "shortName": "GetLinkedDevice", - "fullName": "google.ads.admanager.v1.LinkedDeviceService.GetLinkedDevice", - "service": { - "shortName": "LinkedDeviceService", - "fullName": "google.ads.admanager.v1.LinkedDeviceService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_LinkedDeviceService_ListLinkedDevices_async", - "title": "AdBreakService listLinkedDevices Sample", - "origin": "API_DEFINITION", - "description": " Lists `LinkedDevice` objects.", - "canonical": true, - "file": "linked_device_service.list_linked_devices.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 93, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListLinkedDevices", - "fullName": "google.ads.admanager.v1.LinkedDeviceService.ListLinkedDevices", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "skip", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.ads.admanager.v1.ListLinkedDevicesResponse", - "client": { - "shortName": "LinkedDeviceServiceClient", - "fullName": "google.ads.admanager.v1.LinkedDeviceServiceClient" - }, - "method": { - "shortName": "ListLinkedDevices", - "fullName": "google.ads.admanager.v1.LinkedDeviceService.ListLinkedDevices", - "service": { - "shortName": "LinkedDeviceService", - "fullName": "google.ads.admanager.v1.LinkedDeviceService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_McmEarningsService_FetchMcmEarnings_async", - "title": "AdBreakService fetchMcmEarnings Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a list of `McmEarnings` objects.", - "canonical": true, - "file": "mcm_earnings_service.fetch_mcm_earnings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 92, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchMcmEarnings", - "fullName": "google.ads.admanager.v1.McmEarningsService.FetchMcmEarnings", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "skip", - "type": "TYPE_INT32" - }, - { - "name": "month", - "type": ".google.type.Date" - } - ], - "resultType": ".google.ads.admanager.v1.FetchMcmEarningsResponse", - "client": { - "shortName": "McmEarningsServiceClient", - "fullName": "google.ads.admanager.v1.McmEarningsServiceClient" - }, - "method": { - "shortName": "FetchMcmEarnings", - "fullName": "google.ads.admanager.v1.McmEarningsService.FetchMcmEarnings", - "service": { - "shortName": "McmEarningsService", - "fullName": "google.ads.admanager.v1.McmEarningsService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_MobileCarrierService_GetMobileCarrier_async", - "title": "AdBreakService getMobileCarrier Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a `MobileCarrier` object.", - "canonical": true, - "file": "mobile_carrier_service.get_mobile_carrier.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMobileCarrier", - "fullName": "google.ads.admanager.v1.MobileCarrierService.GetMobileCarrier", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ads.admanager.v1.MobileCarrier", - "client": { - "shortName": "MobileCarrierServiceClient", - "fullName": "google.ads.admanager.v1.MobileCarrierServiceClient" - }, - "method": { - "shortName": "GetMobileCarrier", - "fullName": "google.ads.admanager.v1.MobileCarrierService.GetMobileCarrier", - "service": { - "shortName": "MobileCarrierService", - "fullName": "google.ads.admanager.v1.MobileCarrierService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_MobileCarrierService_ListMobileCarriers_async", - "title": "AdBreakService listMobileCarriers Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a list of `MobileCarrier` objects.", - "canonical": true, - "file": "mobile_carrier_service.list_mobile_carriers.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 92, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMobileCarriers", - "fullName": "google.ads.admanager.v1.MobileCarrierService.ListMobileCarriers", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "skip", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.ads.admanager.v1.ListMobileCarriersResponse", - "client": { - "shortName": "MobileCarrierServiceClient", - "fullName": "google.ads.admanager.v1.MobileCarrierServiceClient" - }, - "method": { - "shortName": "ListMobileCarriers", - "fullName": "google.ads.admanager.v1.MobileCarrierService.ListMobileCarriers", - "service": { - "shortName": "MobileCarrierService", - "fullName": "google.ads.admanager.v1.MobileCarrierService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_MobileDeviceService_GetMobileDevice_async", - "title": "AdBreakService getMobileDevice Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a `MobileDevice` object.", - "canonical": true, - "file": "mobile_device_service.get_mobile_device.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMobileDevice", - "fullName": "google.ads.admanager.v1.MobileDeviceService.GetMobileDevice", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ads.admanager.v1.MobileDevice", - "client": { - "shortName": "MobileDeviceServiceClient", - "fullName": "google.ads.admanager.v1.MobileDeviceServiceClient" - }, - "method": { - "shortName": "GetMobileDevice", - "fullName": "google.ads.admanager.v1.MobileDeviceService.GetMobileDevice", - "service": { - "shortName": "MobileDeviceService", - "fullName": "google.ads.admanager.v1.MobileDeviceService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_MobileDeviceService_ListMobileDevices_async", - "title": "AdBreakService listMobileDevices Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a list of `MobileDevice` objects.", - "canonical": true, - "file": "mobile_device_service.list_mobile_devices.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 92, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMobileDevices", - "fullName": "google.ads.admanager.v1.MobileDeviceService.ListMobileDevices", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "skip", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.ads.admanager.v1.ListMobileDevicesResponse", - "client": { - "shortName": "MobileDeviceServiceClient", - "fullName": "google.ads.admanager.v1.MobileDeviceServiceClient" - }, - "method": { - "shortName": "ListMobileDevices", - "fullName": "google.ads.admanager.v1.MobileDeviceService.ListMobileDevices", - "service": { - "shortName": "MobileDeviceService", - "fullName": "google.ads.admanager.v1.MobileDeviceService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_MobileDeviceSubmodelService_GetMobileDeviceSubmodel_async", - "title": "AdBreakService getMobileDeviceSubmodel Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a `MobileDeviceSubmodel` object.", - "canonical": true, - "file": "mobile_device_submodel_service.get_mobile_device_submodel.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMobileDeviceSubmodel", - "fullName": "google.ads.admanager.v1.MobileDeviceSubmodelService.GetMobileDeviceSubmodel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ads.admanager.v1.MobileDeviceSubmodel", - "client": { - "shortName": "MobileDeviceSubmodelServiceClient", - "fullName": "google.ads.admanager.v1.MobileDeviceSubmodelServiceClient" - }, - "method": { - "shortName": "GetMobileDeviceSubmodel", - "fullName": "google.ads.admanager.v1.MobileDeviceSubmodelService.GetMobileDeviceSubmodel", - "service": { - "shortName": "MobileDeviceSubmodelService", - "fullName": "google.ads.admanager.v1.MobileDeviceSubmodelService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_MobileDeviceSubmodelService_ListMobileDeviceSubmodels_async", - "title": "AdBreakService listMobileDeviceSubmodels Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a list of `MobileDeviceSubmodel` objects.", - "canonical": true, - "file": "mobile_device_submodel_service.list_mobile_device_submodels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 94, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMobileDeviceSubmodels", - "fullName": "google.ads.admanager.v1.MobileDeviceSubmodelService.ListMobileDeviceSubmodels", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "skip", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.ads.admanager.v1.ListMobileDeviceSubmodelsResponse", - "client": { - "shortName": "MobileDeviceSubmodelServiceClient", - "fullName": "google.ads.admanager.v1.MobileDeviceSubmodelServiceClient" - }, - "method": { - "shortName": "ListMobileDeviceSubmodels", - "fullName": "google.ads.admanager.v1.MobileDeviceSubmodelService.ListMobileDeviceSubmodels", - "service": { - "shortName": "MobileDeviceSubmodelService", - "fullName": "google.ads.admanager.v1.MobileDeviceSubmodelService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_NetworkService_GetNetwork_async", - "title": "AdBreakService getNetwork Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a Network object.", - "canonical": true, - "file": "network_service.get_network.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetNetwork", - "fullName": "google.ads.admanager.v1.NetworkService.GetNetwork", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ads.admanager.v1.Network", - "client": { - "shortName": "NetworkServiceClient", - "fullName": "google.ads.admanager.v1.NetworkServiceClient" - }, - "method": { - "shortName": "GetNetwork", - "fullName": "google.ads.admanager.v1.NetworkService.GetNetwork", - "service": { - "shortName": "NetworkService", - "fullName": "google.ads.admanager.v1.NetworkService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_NetworkService_ListNetworks_async", - "title": "AdBreakService listNetworks Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve all the networks the current user has access to.", - "canonical": true, - "file": "network_service.list_networks.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListNetworks", - "fullName": "google.ads.admanager.v1.NetworkService.ListNetworks", - "async": true, - "parameters": [ - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "skip", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.ads.admanager.v1.ListNetworksResponse", - "client": { - "shortName": "NetworkServiceClient", - "fullName": "google.ads.admanager.v1.NetworkServiceClient" - }, - "method": { - "shortName": "ListNetworks", - "fullName": "google.ads.admanager.v1.NetworkService.ListNetworks", - "service": { - "shortName": "NetworkService", - "fullName": "google.ads.admanager.v1.NetworkService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_OperatingSystemService_GetOperatingSystem_async", - "title": "AdBreakService getOperatingSystem Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a `OperatingSystem` object.", - "canonical": true, - "file": "operating_system_service.get_operating_system.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetOperatingSystem", - "fullName": "google.ads.admanager.v1.OperatingSystemService.GetOperatingSystem", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ads.admanager.v1.OperatingSystem", - "client": { - "shortName": "OperatingSystemServiceClient", - "fullName": "google.ads.admanager.v1.OperatingSystemServiceClient" - }, - "method": { - "shortName": "GetOperatingSystem", - "fullName": "google.ads.admanager.v1.OperatingSystemService.GetOperatingSystem", - "service": { - "shortName": "OperatingSystemService", - "fullName": "google.ads.admanager.v1.OperatingSystemService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_OperatingSystemService_ListOperatingSystems_async", - "title": "AdBreakService listOperatingSystems Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a list of `OperatingSystem` objects.", - "canonical": true, - "file": "operating_system_service.list_operating_systems.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 91, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListOperatingSystems", - "fullName": "google.ads.admanager.v1.OperatingSystemService.ListOperatingSystems", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "skip", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.ads.admanager.v1.ListOperatingSystemsResponse", - "client": { - "shortName": "OperatingSystemServiceClient", - "fullName": "google.ads.admanager.v1.OperatingSystemServiceClient" - }, - "method": { - "shortName": "ListOperatingSystems", - "fullName": "google.ads.admanager.v1.OperatingSystemService.ListOperatingSystems", - "service": { - "shortName": "OperatingSystemService", - "fullName": "google.ads.admanager.v1.OperatingSystemService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_OperatingSystemVersionService_GetOperatingSystemVersion_async", - "title": "AdBreakService getOperatingSystemVersion Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a `OperatingSystemVersion` object.", - "canonical": true, - "file": "operating_system_version_service.get_operating_system_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetOperatingSystemVersion", - "fullName": "google.ads.admanager.v1.OperatingSystemVersionService.GetOperatingSystemVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ads.admanager.v1.OperatingSystemVersion", - "client": { - "shortName": "OperatingSystemVersionServiceClient", - "fullName": "google.ads.admanager.v1.OperatingSystemVersionServiceClient" - }, - "method": { - "shortName": "GetOperatingSystemVersion", - "fullName": "google.ads.admanager.v1.OperatingSystemVersionService.GetOperatingSystemVersion", - "service": { - "shortName": "OperatingSystemVersionService", - "fullName": "google.ads.admanager.v1.OperatingSystemVersionService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_OperatingSystemVersionService_ListOperatingSystemVersions_async", - "title": "AdBreakService listOperatingSystemVersions Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a list of `OperatingSystemVersion` objects.", - "canonical": true, - "file": "operating_system_version_service.list_operating_system_versions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 95, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListOperatingSystemVersions", - "fullName": "google.ads.admanager.v1.OperatingSystemVersionService.ListOperatingSystemVersions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "skip", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.ads.admanager.v1.ListOperatingSystemVersionsResponse", - "client": { - "shortName": "OperatingSystemVersionServiceClient", - "fullName": "google.ads.admanager.v1.OperatingSystemVersionServiceClient" - }, - "method": { - "shortName": "ListOperatingSystemVersions", - "fullName": "google.ads.admanager.v1.OperatingSystemVersionService.ListOperatingSystemVersions", - "service": { - "shortName": "OperatingSystemVersionService", - "fullName": "google.ads.admanager.v1.OperatingSystemVersionService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_OrderService_GetOrder_async", - "title": "AdBreakService getOrder Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve an Order object.", - "canonical": true, - "file": "order_service.get_order.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetOrder", - "fullName": "google.ads.admanager.v1.OrderService.GetOrder", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ads.admanager.v1.Order", - "client": { - "shortName": "OrderServiceClient", - "fullName": "google.ads.admanager.v1.OrderServiceClient" - }, - "method": { - "shortName": "GetOrder", - "fullName": "google.ads.admanager.v1.OrderService.GetOrder", - "service": { - "shortName": "OrderService", - "fullName": "google.ads.admanager.v1.OrderService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_OrderService_ListOrders_async", - "title": "AdBreakService listOrders Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a list of `Order` objects. Fields used for literal matching in filter string: * `order_id` * `display_name` * `external_order_id`", - "canonical": true, - "file": "order_service.list_orders.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 108, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListOrders", - "fullName": "google.ads.admanager.v1.OrderService.ListOrders", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "skip", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.ads.admanager.v1.ListOrdersResponse", - "client": { - "shortName": "OrderServiceClient", - "fullName": "google.ads.admanager.v1.OrderServiceClient" - }, - "method": { - "shortName": "ListOrders", - "fullName": "google.ads.admanager.v1.OrderService.ListOrders", - "service": { - "shortName": "OrderService", - "fullName": "google.ads.admanager.v1.OrderService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_PlacementService_GetPlacement_async", - "title": "AdBreakService getPlacement Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a `Placement` object.", - "canonical": true, - "file": "placement_service.get_placement.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPlacement", - "fullName": "google.ads.admanager.v1.PlacementService.GetPlacement", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ads.admanager.v1.Placement", - "client": { - "shortName": "PlacementServiceClient", - "fullName": "google.ads.admanager.v1.PlacementServiceClient" - }, - "method": { - "shortName": "GetPlacement", - "fullName": "google.ads.admanager.v1.PlacementService.GetPlacement", - "service": { - "shortName": "PlacementService", - "fullName": "google.ads.admanager.v1.PlacementService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_PlacementService_ListPlacements_async", - "title": "AdBreakService listPlacements Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a list of `Placement` objects.", - "canonical": true, - "file": "placement_service.list_placements.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 96, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPlacements", - "fullName": "google.ads.admanager.v1.PlacementService.ListPlacements", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "skip", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.ads.admanager.v1.ListPlacementsResponse", - "client": { - "shortName": "PlacementServiceClient", - "fullName": "google.ads.admanager.v1.PlacementServiceClient" - }, - "method": { - "shortName": "ListPlacements", - "fullName": "google.ads.admanager.v1.PlacementService.ListPlacements", - "service": { - "shortName": "PlacementService", - "fullName": "google.ads.admanager.v1.PlacementService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_PlacementService_CreatePlacement_async", - "title": "AdBreakService createPlacement Sample", - "origin": "API_DEFINITION", - "description": " API to create an `Placement` object.", - "canonical": true, - "file": "placement_service.create_placement.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreatePlacement", - "fullName": "google.ads.admanager.v1.PlacementService.CreatePlacement", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "placement", - "type": ".google.ads.admanager.v1.Placement" - } - ], - "resultType": ".google.ads.admanager.v1.Placement", - "client": { - "shortName": "PlacementServiceClient", - "fullName": "google.ads.admanager.v1.PlacementServiceClient" - }, - "method": { - "shortName": "CreatePlacement", - "fullName": "google.ads.admanager.v1.PlacementService.CreatePlacement", - "service": { - "shortName": "PlacementService", - "fullName": "google.ads.admanager.v1.PlacementService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_PlacementService_UpdatePlacement_async", - "title": "AdBreakService updatePlacement Sample", - "origin": "API_DEFINITION", - "description": " API to update an `Placement` object.", - "canonical": true, - "file": "placement_service.update_placement.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdatePlacement", - "fullName": "google.ads.admanager.v1.PlacementService.UpdatePlacement", - "async": true, - "parameters": [ - { - "name": "placement", - "type": ".google.ads.admanager.v1.Placement" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.ads.admanager.v1.Placement", - "client": { - "shortName": "PlacementServiceClient", - "fullName": "google.ads.admanager.v1.PlacementServiceClient" - }, - "method": { - "shortName": "UpdatePlacement", - "fullName": "google.ads.admanager.v1.PlacementService.UpdatePlacement", - "service": { - "shortName": "PlacementService", - "fullName": "google.ads.admanager.v1.PlacementService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_PlacementService_BatchCreatePlacements_async", - "title": "AdBreakService batchCreatePlacements Sample", - "origin": "API_DEFINITION", - "description": " API to batch create `Placement` objects.", - "canonical": true, - "file": "placement_service.batch_create_placements.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCreatePlacements", - "fullName": "google.ads.admanager.v1.PlacementService.BatchCreatePlacements", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.ads.admanager.v1.BatchCreatePlacementsResponse", - "client": { - "shortName": "PlacementServiceClient", - "fullName": "google.ads.admanager.v1.PlacementServiceClient" - }, - "method": { - "shortName": "BatchCreatePlacements", - "fullName": "google.ads.admanager.v1.PlacementService.BatchCreatePlacements", - "service": { - "shortName": "PlacementService", - "fullName": "google.ads.admanager.v1.PlacementService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_PlacementService_BatchUpdatePlacements_async", - "title": "AdBreakService batchUpdatePlacements Sample", - "origin": "API_DEFINITION", - "description": " API to batch update `Placement` objects.", - "canonical": true, - "file": "placement_service.batch_update_placements.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchUpdatePlacements", - "fullName": "google.ads.admanager.v1.PlacementService.BatchUpdatePlacements", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.ads.admanager.v1.BatchUpdatePlacementsResponse", - "client": { - "shortName": "PlacementServiceClient", - "fullName": "google.ads.admanager.v1.PlacementServiceClient" - }, - "method": { - "shortName": "BatchUpdatePlacements", - "fullName": "google.ads.admanager.v1.PlacementService.BatchUpdatePlacements", - "service": { - "shortName": "PlacementService", - "fullName": "google.ads.admanager.v1.PlacementService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_PlacementService_BatchActivatePlacements_async", - "title": "AdBreakService batchActivatePlacements Sample", - "origin": "API_DEFINITION", - "description": " Activates a list of `Placement` objects.", - "canonical": true, - "file": "placement_service.batch_activate_placements.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchActivatePlacements", - "fullName": "google.ads.admanager.v1.PlacementService.BatchActivatePlacements", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "names", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.ads.admanager.v1.BatchActivatePlacementsResponse", - "client": { - "shortName": "PlacementServiceClient", - "fullName": "google.ads.admanager.v1.PlacementServiceClient" - }, - "method": { - "shortName": "BatchActivatePlacements", - "fullName": "google.ads.admanager.v1.PlacementService.BatchActivatePlacements", - "service": { - "shortName": "PlacementService", - "fullName": "google.ads.admanager.v1.PlacementService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_PlacementService_BatchDeactivatePlacements_async", - "title": "AdBreakService batchDeactivatePlacements Sample", - "origin": "API_DEFINITION", - "description": " Deactivates a list of `Placement` objects.", - "canonical": true, - "file": "placement_service.batch_deactivate_placements.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchDeactivatePlacements", - "fullName": "google.ads.admanager.v1.PlacementService.BatchDeactivatePlacements", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "names", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.ads.admanager.v1.BatchDeactivatePlacementsResponse", - "client": { - "shortName": "PlacementServiceClient", - "fullName": "google.ads.admanager.v1.PlacementServiceClient" - }, - "method": { - "shortName": "BatchDeactivatePlacements", - "fullName": "google.ads.admanager.v1.PlacementService.BatchDeactivatePlacements", - "service": { - "shortName": "PlacementService", - "fullName": "google.ads.admanager.v1.PlacementService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_PlacementService_BatchArchivePlacements_async", - "title": "AdBreakService batchArchivePlacements Sample", - "origin": "API_DEFINITION", - "description": " Archives a list of `Placement` objects.", - "canonical": true, - "file": "placement_service.batch_archive_placements.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchArchivePlacements", - "fullName": "google.ads.admanager.v1.PlacementService.BatchArchivePlacements", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "names", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.ads.admanager.v1.BatchArchivePlacementsResponse", - "client": { - "shortName": "PlacementServiceClient", - "fullName": "google.ads.admanager.v1.PlacementServiceClient" - }, - "method": { - "shortName": "BatchArchivePlacements", - "fullName": "google.ads.admanager.v1.PlacementService.BatchArchivePlacements", - "service": { - "shortName": "PlacementService", - "fullName": "google.ads.admanager.v1.PlacementService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_PrivateAuctionDealService_GetPrivateAuctionDeal_async", - "title": "AdBreakService getPrivateAuctionDeal Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a `PrivateAuctionDeal` object.", - "canonical": true, - "file": "private_auction_deal_service.get_private_auction_deal.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPrivateAuctionDeal", - "fullName": "google.ads.admanager.v1.PrivateAuctionDealService.GetPrivateAuctionDeal", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ads.admanager.v1.PrivateAuctionDeal", - "client": { - "shortName": "PrivateAuctionDealServiceClient", - "fullName": "google.ads.admanager.v1.PrivateAuctionDealServiceClient" - }, - "method": { - "shortName": "GetPrivateAuctionDeal", - "fullName": "google.ads.admanager.v1.PrivateAuctionDealService.GetPrivateAuctionDeal", - "service": { - "shortName": "PrivateAuctionDealService", - "fullName": "google.ads.admanager.v1.PrivateAuctionDealService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_PrivateAuctionDealService_ListPrivateAuctionDeals_async", - "title": "AdBreakService listPrivateAuctionDeals Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a list of `PrivateAuctionDeal` objects.", - "canonical": true, - "file": "private_auction_deal_service.list_private_auction_deals.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 104, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPrivateAuctionDeals", - "fullName": "google.ads.admanager.v1.PrivateAuctionDealService.ListPrivateAuctionDeals", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "skip", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.ads.admanager.v1.ListPrivateAuctionDealsResponse", - "client": { - "shortName": "PrivateAuctionDealServiceClient", - "fullName": "google.ads.admanager.v1.PrivateAuctionDealServiceClient" - }, - "method": { - "shortName": "ListPrivateAuctionDeals", - "fullName": "google.ads.admanager.v1.PrivateAuctionDealService.ListPrivateAuctionDeals", - "service": { - "shortName": "PrivateAuctionDealService", - "fullName": "google.ads.admanager.v1.PrivateAuctionDealService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_PrivateAuctionDealService_CreatePrivateAuctionDeal_async", - "title": "AdBreakService createPrivateAuctionDeal Sample", - "origin": "API_DEFINITION", - "description": " API to create a `PrivateAuctionDeal` object.", - "canonical": true, - "file": "private_auction_deal_service.create_private_auction_deal.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreatePrivateAuctionDeal", - "fullName": "google.ads.admanager.v1.PrivateAuctionDealService.CreatePrivateAuctionDeal", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "private_auction_deal", - "type": ".google.ads.admanager.v1.PrivateAuctionDeal" - } - ], - "resultType": ".google.ads.admanager.v1.PrivateAuctionDeal", - "client": { - "shortName": "PrivateAuctionDealServiceClient", - "fullName": "google.ads.admanager.v1.PrivateAuctionDealServiceClient" - }, - "method": { - "shortName": "CreatePrivateAuctionDeal", - "fullName": "google.ads.admanager.v1.PrivateAuctionDealService.CreatePrivateAuctionDeal", - "service": { - "shortName": "PrivateAuctionDealService", - "fullName": "google.ads.admanager.v1.PrivateAuctionDealService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_PrivateAuctionDealService_UpdatePrivateAuctionDeal_async", - "title": "AdBreakService updatePrivateAuctionDeal Sample", - "origin": "API_DEFINITION", - "description": " API to update a `PrivateAuctionDeal` object.", - "canonical": true, - "file": "private_auction_deal_service.update_private_auction_deal.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdatePrivateAuctionDeal", - "fullName": "google.ads.admanager.v1.PrivateAuctionDealService.UpdatePrivateAuctionDeal", - "async": true, - "parameters": [ - { - "name": "private_auction_deal", - "type": ".google.ads.admanager.v1.PrivateAuctionDeal" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.ads.admanager.v1.PrivateAuctionDeal", - "client": { - "shortName": "PrivateAuctionDealServiceClient", - "fullName": "google.ads.admanager.v1.PrivateAuctionDealServiceClient" - }, - "method": { - "shortName": "UpdatePrivateAuctionDeal", - "fullName": "google.ads.admanager.v1.PrivateAuctionDealService.UpdatePrivateAuctionDeal", - "service": { - "shortName": "PrivateAuctionDealService", - "fullName": "google.ads.admanager.v1.PrivateAuctionDealService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_PrivateAuctionService_GetPrivateAuction_async", - "title": "AdBreakService getPrivateAuction Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a `PrivateAuction` object.", - "canonical": true, - "file": "private_auction_service.get_private_auction.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPrivateAuction", - "fullName": "google.ads.admanager.v1.PrivateAuctionService.GetPrivateAuction", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ads.admanager.v1.PrivateAuction", - "client": { - "shortName": "PrivateAuctionServiceClient", - "fullName": "google.ads.admanager.v1.PrivateAuctionServiceClient" - }, - "method": { - "shortName": "GetPrivateAuction", - "fullName": "google.ads.admanager.v1.PrivateAuctionService.GetPrivateAuction", - "service": { - "shortName": "PrivateAuctionService", - "fullName": "google.ads.admanager.v1.PrivateAuctionService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_PrivateAuctionService_ListPrivateAuctions_async", - "title": "AdBreakService listPrivateAuctions Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a list of `PrivateAuction` objects.", - "canonical": true, - "file": "private_auction_service.list_private_auctions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPrivateAuctions", - "fullName": "google.ads.admanager.v1.PrivateAuctionService.ListPrivateAuctions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "skip", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.ads.admanager.v1.ListPrivateAuctionsResponse", - "client": { - "shortName": "PrivateAuctionServiceClient", - "fullName": "google.ads.admanager.v1.PrivateAuctionServiceClient" - }, - "method": { - "shortName": "ListPrivateAuctions", - "fullName": "google.ads.admanager.v1.PrivateAuctionService.ListPrivateAuctions", - "service": { - "shortName": "PrivateAuctionService", - "fullName": "google.ads.admanager.v1.PrivateAuctionService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_PrivateAuctionService_CreatePrivateAuction_async", - "title": "AdBreakService createPrivateAuction Sample", - "origin": "API_DEFINITION", - "description": " API to create a `PrivateAuction` object.", - "canonical": true, - "file": "private_auction_service.create_private_auction.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreatePrivateAuction", - "fullName": "google.ads.admanager.v1.PrivateAuctionService.CreatePrivateAuction", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "private_auction", - "type": ".google.ads.admanager.v1.PrivateAuction" - } - ], - "resultType": ".google.ads.admanager.v1.PrivateAuction", - "client": { - "shortName": "PrivateAuctionServiceClient", - "fullName": "google.ads.admanager.v1.PrivateAuctionServiceClient" - }, - "method": { - "shortName": "CreatePrivateAuction", - "fullName": "google.ads.admanager.v1.PrivateAuctionService.CreatePrivateAuction", - "service": { - "shortName": "PrivateAuctionService", - "fullName": "google.ads.admanager.v1.PrivateAuctionService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_PrivateAuctionService_UpdatePrivateAuction_async", - "title": "AdBreakService updatePrivateAuction Sample", - "origin": "API_DEFINITION", - "description": " API to update a `PrivateAuction` object.", - "canonical": true, - "file": "private_auction_service.update_private_auction.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdatePrivateAuction", - "fullName": "google.ads.admanager.v1.PrivateAuctionService.UpdatePrivateAuction", - "async": true, - "parameters": [ - { - "name": "private_auction", - "type": ".google.ads.admanager.v1.PrivateAuction" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.ads.admanager.v1.PrivateAuction", - "client": { - "shortName": "PrivateAuctionServiceClient", - "fullName": "google.ads.admanager.v1.PrivateAuctionServiceClient" - }, - "method": { - "shortName": "UpdatePrivateAuction", - "fullName": "google.ads.admanager.v1.PrivateAuctionService.UpdatePrivateAuction", - "service": { - "shortName": "PrivateAuctionService", - "fullName": "google.ads.admanager.v1.PrivateAuctionService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_ProgrammaticBuyerService_GetProgrammaticBuyer_async", - "title": "AdBreakService getProgrammaticBuyer Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a `ProgrammaticBuyer` object.", - "canonical": true, - "file": "programmatic_buyer_service.get_programmatic_buyer.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetProgrammaticBuyer", - "fullName": "google.ads.admanager.v1.ProgrammaticBuyerService.GetProgrammaticBuyer", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ads.admanager.v1.ProgrammaticBuyer", - "client": { - "shortName": "ProgrammaticBuyerServiceClient", - "fullName": "google.ads.admanager.v1.ProgrammaticBuyerServiceClient" - }, - "method": { - "shortName": "GetProgrammaticBuyer", - "fullName": "google.ads.admanager.v1.ProgrammaticBuyerService.GetProgrammaticBuyer", - "service": { - "shortName": "ProgrammaticBuyerService", - "fullName": "google.ads.admanager.v1.ProgrammaticBuyerService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_ProgrammaticBuyerService_ListProgrammaticBuyers_async", - "title": "AdBreakService listProgrammaticBuyers Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a list of `ProgrammaticBuyer` objects.", - "canonical": true, - "file": "programmatic_buyer_service.list_programmatic_buyers.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 97, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListProgrammaticBuyers", - "fullName": "google.ads.admanager.v1.ProgrammaticBuyerService.ListProgrammaticBuyers", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "skip", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.ads.admanager.v1.ListProgrammaticBuyersResponse", - "client": { - "shortName": "ProgrammaticBuyerServiceClient", - "fullName": "google.ads.admanager.v1.ProgrammaticBuyerServiceClient" - }, - "method": { - "shortName": "ListProgrammaticBuyers", - "fullName": "google.ads.admanager.v1.ProgrammaticBuyerService.ListProgrammaticBuyers", - "service": { - "shortName": "ProgrammaticBuyerService", - "fullName": "google.ads.admanager.v1.ProgrammaticBuyerService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_ReportService_GetReport_async", - "title": "AdBreakService getReport Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a `Report` object.", - "canonical": true, - "file": "report_service.get_report.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetReport", - "fullName": "google.ads.admanager.v1.ReportService.GetReport", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ads.admanager.v1.Report", - "client": { - "shortName": "ReportServiceClient", - "fullName": "google.ads.admanager.v1.ReportServiceClient" - }, - "method": { - "shortName": "GetReport", - "fullName": "google.ads.admanager.v1.ReportService.GetReport", - "service": { - "shortName": "ReportService", - "fullName": "google.ads.admanager.v1.ReportService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_ReportService_ListReports_async", - "title": "AdBreakService listReports Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a list of `Report` objects.", - "canonical": true, - "file": "report_service.list_reports.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListReports", - "fullName": "google.ads.admanager.v1.ReportService.ListReports", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "skip", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.ads.admanager.v1.ListReportsResponse", - "client": { - "shortName": "ReportServiceClient", - "fullName": "google.ads.admanager.v1.ReportServiceClient" - }, - "method": { - "shortName": "ListReports", - "fullName": "google.ads.admanager.v1.ReportService.ListReports", - "service": { - "shortName": "ReportService", - "fullName": "google.ads.admanager.v1.ReportService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_ReportService_CreateReport_async", - "title": "AdBreakService createReport Sample", - "origin": "API_DEFINITION", - "description": " API to create a `Report` object.", - "canonical": true, - "file": "report_service.create_report.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateReport", - "fullName": "google.ads.admanager.v1.ReportService.CreateReport", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "report", - "type": ".google.ads.admanager.v1.Report" - } - ], - "resultType": ".google.ads.admanager.v1.Report", - "client": { - "shortName": "ReportServiceClient", - "fullName": "google.ads.admanager.v1.ReportServiceClient" - }, - "method": { - "shortName": "CreateReport", - "fullName": "google.ads.admanager.v1.ReportService.CreateReport", - "service": { - "shortName": "ReportService", - "fullName": "google.ads.admanager.v1.ReportService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_ReportService_UpdateReport_async", - "title": "AdBreakService updateReport Sample", - "origin": "API_DEFINITION", - "description": " API to update a `Report` object.", - "canonical": true, - "file": "report_service.update_report.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateReport", - "fullName": "google.ads.admanager.v1.ReportService.UpdateReport", - "async": true, - "parameters": [ - { - "name": "report", - "type": ".google.ads.admanager.v1.Report" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.ads.admanager.v1.Report", - "client": { - "shortName": "ReportServiceClient", - "fullName": "google.ads.admanager.v1.ReportServiceClient" - }, - "method": { - "shortName": "UpdateReport", - "fullName": "google.ads.admanager.v1.ReportService.UpdateReport", - "service": { - "shortName": "ReportService", - "fullName": "google.ads.admanager.v1.ReportService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_ReportService_RunReport_async", - "title": "AdBreakService runReport Sample", - "origin": "API_DEFINITION", - "description": " Initiates the execution of an existing report asynchronously. Users can get the report by polling this operation using `OperationsService.GetOperation`. Poll every 5 seconds initially, with an exponential backoff. Once a report is complete, the operation will contain a `RunReportResponse` in its response field containing a report_result that can be passed to the `FetchReportResultRows` method to retrieve the report data.", - "canonical": true, - "file": "report_service.run_report.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RunReport", - "fullName": "google.ads.admanager.v1.ReportService.RunReport", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ReportServiceClient", - "fullName": "google.ads.admanager.v1.ReportServiceClient" - }, - "method": { - "shortName": "RunReport", - "fullName": "google.ads.admanager.v1.ReportService.RunReport", - "service": { - "shortName": "ReportService", - "fullName": "google.ads.admanager.v1.ReportService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_ReportService_FetchReportResultRows_async", - "title": "AdBreakService fetchReportResultRows Sample", - "origin": "API_DEFINITION", - "description": " Returns the result rows from a completed report. The caller must have previously called `RunReport` and waited for that operation to complete. The rows will be returned according to the order specified by the `sorts` member of the report definition.", - "canonical": true, - "file": "report_service.fetch_report_result_rows.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchReportResultRows", - "fullName": "google.ads.admanager.v1.ReportService.FetchReportResultRows", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ads.admanager.v1.FetchReportResultRowsResponse", - "client": { - "shortName": "ReportServiceClient", - "fullName": "google.ads.admanager.v1.ReportServiceClient" - }, - "method": { - "shortName": "FetchReportResultRows", - "fullName": "google.ads.admanager.v1.ReportService.FetchReportResultRows", - "service": { - "shortName": "ReportService", - "fullName": "google.ads.admanager.v1.ReportService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_RichMediaAdsCompanyService_GetRichMediaAdsCompany_async", - "title": "AdBreakService getRichMediaAdsCompany Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a `RichMediaAdsCompany` object.", - "canonical": true, - "file": "rich_media_ads_company_service.get_rich_media_ads_company.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRichMediaAdsCompany", - "fullName": "google.ads.admanager.v1.RichMediaAdsCompanyService.GetRichMediaAdsCompany", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ads.admanager.v1.RichMediaAdsCompany", - "client": { - "shortName": "RichMediaAdsCompanyServiceClient", - "fullName": "google.ads.admanager.v1.RichMediaAdsCompanyServiceClient" - }, - "method": { - "shortName": "GetRichMediaAdsCompany", - "fullName": "google.ads.admanager.v1.RichMediaAdsCompanyService.GetRichMediaAdsCompany", - "service": { - "shortName": "RichMediaAdsCompanyService", - "fullName": "google.ads.admanager.v1.RichMediaAdsCompanyService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_RichMediaAdsCompanyService_ListRichMediaAdsCompanies_async", - "title": "AdBreakService listRichMediaAdsCompanies Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a list of `RichMediaAdsCompany` objects.", - "canonical": true, - "file": "rich_media_ads_company_service.list_rich_media_ads_companies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 96, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRichMediaAdsCompanies", - "fullName": "google.ads.admanager.v1.RichMediaAdsCompanyService.ListRichMediaAdsCompanies", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "skip", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.ads.admanager.v1.ListRichMediaAdsCompaniesResponse", - "client": { - "shortName": "RichMediaAdsCompanyServiceClient", - "fullName": "google.ads.admanager.v1.RichMediaAdsCompanyServiceClient" - }, - "method": { - "shortName": "ListRichMediaAdsCompanies", - "fullName": "google.ads.admanager.v1.RichMediaAdsCompanyService.ListRichMediaAdsCompanies", - "service": { - "shortName": "RichMediaAdsCompanyService", - "fullName": "google.ads.admanager.v1.RichMediaAdsCompanyService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_RoleService_GetRole_async", - "title": "AdBreakService getRole Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a `Role` object.", - "canonical": true, - "file": "role_service.get_role.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRole", - "fullName": "google.ads.admanager.v1.RoleService.GetRole", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ads.admanager.v1.Role", - "client": { - "shortName": "RoleServiceClient", - "fullName": "google.ads.admanager.v1.RoleServiceClient" - }, - "method": { - "shortName": "GetRole", - "fullName": "google.ads.admanager.v1.RoleService.GetRole", - "service": { - "shortName": "RoleService", - "fullName": "google.ads.admanager.v1.RoleService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_RoleService_ListRoles_async", - "title": "AdBreakService listRoles Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a list of `Role` objects.", - "canonical": true, - "file": "role_service.list_roles.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 94, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRoles", - "fullName": "google.ads.admanager.v1.RoleService.ListRoles", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "skip", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.ads.admanager.v1.ListRolesResponse", - "client": { - "shortName": "RoleServiceClient", - "fullName": "google.ads.admanager.v1.RoleServiceClient" - }, - "method": { - "shortName": "ListRoles", - "fullName": "google.ads.admanager.v1.RoleService.ListRoles", - "service": { - "shortName": "RoleService", - "fullName": "google.ads.admanager.v1.RoleService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_SiteService_GetSite_async", - "title": "AdBreakService getSite Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a `Site` object.", - "canonical": true, - "file": "site_service.get_site.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSite", - "fullName": "google.ads.admanager.v1.SiteService.GetSite", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ads.admanager.v1.Site", - "client": { - "shortName": "SiteServiceClient", - "fullName": "google.ads.admanager.v1.SiteServiceClient" - }, - "method": { - "shortName": "GetSite", - "fullName": "google.ads.admanager.v1.SiteService.GetSite", - "service": { - "shortName": "SiteService", - "fullName": "google.ads.admanager.v1.SiteService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_SiteService_ListSites_async", - "title": "AdBreakService listSites Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a list of `Site` objects.", - "canonical": true, - "file": "site_service.list_sites.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 94, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSites", - "fullName": "google.ads.admanager.v1.SiteService.ListSites", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "skip", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.ads.admanager.v1.ListSitesResponse", - "client": { - "shortName": "SiteServiceClient", - "fullName": "google.ads.admanager.v1.SiteServiceClient" - }, - "method": { - "shortName": "ListSites", - "fullName": "google.ads.admanager.v1.SiteService.ListSites", - "service": { - "shortName": "SiteService", - "fullName": "google.ads.admanager.v1.SiteService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_SiteService_CreateSite_async", - "title": "AdBreakService createSite Sample", - "origin": "API_DEFINITION", - "description": " API to create a `Site` object.", - "canonical": true, - "file": "site_service.create_site.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSite", - "fullName": "google.ads.admanager.v1.SiteService.CreateSite", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "site", - "type": ".google.ads.admanager.v1.Site" - } - ], - "resultType": ".google.ads.admanager.v1.Site", - "client": { - "shortName": "SiteServiceClient", - "fullName": "google.ads.admanager.v1.SiteServiceClient" - }, - "method": { - "shortName": "CreateSite", - "fullName": "google.ads.admanager.v1.SiteService.CreateSite", - "service": { - "shortName": "SiteService", - "fullName": "google.ads.admanager.v1.SiteService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_SiteService_BatchCreateSites_async", - "title": "AdBreakService batchCreateSites Sample", - "origin": "API_DEFINITION", - "description": " API to batch create `Site` objects.", - "canonical": true, - "file": "site_service.batch_create_sites.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCreateSites", - "fullName": "google.ads.admanager.v1.SiteService.BatchCreateSites", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.ads.admanager.v1.BatchCreateSitesResponse", - "client": { - "shortName": "SiteServiceClient", - "fullName": "google.ads.admanager.v1.SiteServiceClient" - }, - "method": { - "shortName": "BatchCreateSites", - "fullName": "google.ads.admanager.v1.SiteService.BatchCreateSites", - "service": { - "shortName": "SiteService", - "fullName": "google.ads.admanager.v1.SiteService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_SiteService_UpdateSite_async", - "title": "AdBreakService updateSite Sample", - "origin": "API_DEFINITION", - "description": " API to update a `Site` object.", - "canonical": true, - "file": "site_service.update_site.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSite", - "fullName": "google.ads.admanager.v1.SiteService.UpdateSite", - "async": true, - "parameters": [ - { - "name": "site", - "type": ".google.ads.admanager.v1.Site" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.ads.admanager.v1.Site", - "client": { - "shortName": "SiteServiceClient", - "fullName": "google.ads.admanager.v1.SiteServiceClient" - }, - "method": { - "shortName": "UpdateSite", - "fullName": "google.ads.admanager.v1.SiteService.UpdateSite", - "service": { - "shortName": "SiteService", - "fullName": "google.ads.admanager.v1.SiteService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_SiteService_BatchUpdateSites_async", - "title": "AdBreakService batchUpdateSites Sample", - "origin": "API_DEFINITION", - "description": " API to batch update `Site` objects.", - "canonical": true, - "file": "site_service.batch_update_sites.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchUpdateSites", - "fullName": "google.ads.admanager.v1.SiteService.BatchUpdateSites", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.ads.admanager.v1.BatchUpdateSitesResponse", - "client": { - "shortName": "SiteServiceClient", - "fullName": "google.ads.admanager.v1.SiteServiceClient" - }, - "method": { - "shortName": "BatchUpdateSites", - "fullName": "google.ads.admanager.v1.SiteService.BatchUpdateSites", - "service": { - "shortName": "SiteService", - "fullName": "google.ads.admanager.v1.SiteService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_SiteService_BatchDeactivateSites_async", - "title": "AdBreakService batchDeactivateSites Sample", - "origin": "API_DEFINITION", - "description": " Deactivates a list of `Site` objects.", - "canonical": true, - "file": "site_service.batch_deactivate_sites.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchDeactivateSites", - "fullName": "google.ads.admanager.v1.SiteService.BatchDeactivateSites", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "names", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.ads.admanager.v1.BatchDeactivateSitesResponse", - "client": { - "shortName": "SiteServiceClient", - "fullName": "google.ads.admanager.v1.SiteServiceClient" - }, - "method": { - "shortName": "BatchDeactivateSites", - "fullName": "google.ads.admanager.v1.SiteService.BatchDeactivateSites", - "service": { - "shortName": "SiteService", - "fullName": "google.ads.admanager.v1.SiteService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_SiteService_BatchSubmitSitesForApproval_async", - "title": "AdBreakService batchSubmitSitesForApproval Sample", - "origin": "API_DEFINITION", - "description": " Submits a list of `Site` objects for approval.", - "canonical": true, - "file": "site_service.batch_submit_sites_for_approval.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchSubmitSitesForApproval", - "fullName": "google.ads.admanager.v1.SiteService.BatchSubmitSitesForApproval", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "names", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.ads.admanager.v1.BatchSubmitSitesForApprovalResponse", - "client": { - "shortName": "SiteServiceClient", - "fullName": "google.ads.admanager.v1.SiteServiceClient" - }, - "method": { - "shortName": "BatchSubmitSitesForApproval", - "fullName": "google.ads.admanager.v1.SiteService.BatchSubmitSitesForApproval", - "service": { - "shortName": "SiteService", - "fullName": "google.ads.admanager.v1.SiteService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_TaxonomyCategoryService_GetTaxonomyCategory_async", - "title": "AdBreakService getTaxonomyCategory Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a `TaxonomyCategory` object.", - "canonical": true, - "file": "taxonomy_category_service.get_taxonomy_category.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTaxonomyCategory", - "fullName": "google.ads.admanager.v1.TaxonomyCategoryService.GetTaxonomyCategory", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ads.admanager.v1.TaxonomyCategory", - "client": { - "shortName": "TaxonomyCategoryServiceClient", - "fullName": "google.ads.admanager.v1.TaxonomyCategoryServiceClient" - }, - "method": { - "shortName": "GetTaxonomyCategory", - "fullName": "google.ads.admanager.v1.TaxonomyCategoryService.GetTaxonomyCategory", - "service": { - "shortName": "TaxonomyCategoryService", - "fullName": "google.ads.admanager.v1.TaxonomyCategoryService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_TaxonomyCategoryService_ListTaxonomyCategories_async", - "title": "AdBreakService listTaxonomyCategories Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a list of `TaxonomyCategory` objects.", - "canonical": true, - "file": "taxonomy_category_service.list_taxonomy_categories.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTaxonomyCategories", - "fullName": "google.ads.admanager.v1.TaxonomyCategoryService.ListTaxonomyCategories", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "skip", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.ads.admanager.v1.ListTaxonomyCategoriesResponse", - "client": { - "shortName": "TaxonomyCategoryServiceClient", - "fullName": "google.ads.admanager.v1.TaxonomyCategoryServiceClient" - }, - "method": { - "shortName": "ListTaxonomyCategories", - "fullName": "google.ads.admanager.v1.TaxonomyCategoryService.ListTaxonomyCategories", - "service": { - "shortName": "TaxonomyCategoryService", - "fullName": "google.ads.admanager.v1.TaxonomyCategoryService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_TeamService_GetTeam_async", - "title": "AdBreakService getTeam Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a `Team` object.", - "canonical": true, - "file": "team_service.get_team.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTeam", - "fullName": "google.ads.admanager.v1.TeamService.GetTeam", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ads.admanager.v1.Team", - "client": { - "shortName": "TeamServiceClient", - "fullName": "google.ads.admanager.v1.TeamServiceClient" - }, - "method": { - "shortName": "GetTeam", - "fullName": "google.ads.admanager.v1.TeamService.GetTeam", - "service": { - "shortName": "TeamService", - "fullName": "google.ads.admanager.v1.TeamService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_TeamService_ListTeams_async", - "title": "AdBreakService listTeams Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a list of `Team` objects.", - "canonical": true, - "file": "team_service.list_teams.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 96, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTeams", - "fullName": "google.ads.admanager.v1.TeamService.ListTeams", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "skip", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.ads.admanager.v1.ListTeamsResponse", - "client": { - "shortName": "TeamServiceClient", - "fullName": "google.ads.admanager.v1.TeamServiceClient" - }, - "method": { - "shortName": "ListTeams", - "fullName": "google.ads.admanager.v1.TeamService.ListTeams", - "service": { - "shortName": "TeamService", - "fullName": "google.ads.admanager.v1.TeamService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_TeamService_CreateTeam_async", - "title": "AdBreakService createTeam Sample", - "origin": "API_DEFINITION", - "description": " API to create a `Team` object.", - "canonical": true, - "file": "team_service.create_team.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTeam", - "fullName": "google.ads.admanager.v1.TeamService.CreateTeam", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "team", - "type": ".google.ads.admanager.v1.Team" - } - ], - "resultType": ".google.ads.admanager.v1.Team", - "client": { - "shortName": "TeamServiceClient", - "fullName": "google.ads.admanager.v1.TeamServiceClient" - }, - "method": { - "shortName": "CreateTeam", - "fullName": "google.ads.admanager.v1.TeamService.CreateTeam", - "service": { - "shortName": "TeamService", - "fullName": "google.ads.admanager.v1.TeamService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_TeamService_BatchCreateTeams_async", - "title": "AdBreakService batchCreateTeams Sample", - "origin": "API_DEFINITION", - "description": " API to batch create `Team` objects.", - "canonical": true, - "file": "team_service.batch_create_teams.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCreateTeams", - "fullName": "google.ads.admanager.v1.TeamService.BatchCreateTeams", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.ads.admanager.v1.BatchCreateTeamsResponse", - "client": { - "shortName": "TeamServiceClient", - "fullName": "google.ads.admanager.v1.TeamServiceClient" - }, - "method": { - "shortName": "BatchCreateTeams", - "fullName": "google.ads.admanager.v1.TeamService.BatchCreateTeams", - "service": { - "shortName": "TeamService", - "fullName": "google.ads.admanager.v1.TeamService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_TeamService_UpdateTeam_async", - "title": "AdBreakService updateTeam Sample", - "origin": "API_DEFINITION", - "description": " API to update a `Team` object.", - "canonical": true, - "file": "team_service.update_team.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTeam", - "fullName": "google.ads.admanager.v1.TeamService.UpdateTeam", - "async": true, - "parameters": [ - { - "name": "team", - "type": ".google.ads.admanager.v1.Team" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.ads.admanager.v1.Team", - "client": { - "shortName": "TeamServiceClient", - "fullName": "google.ads.admanager.v1.TeamServiceClient" - }, - "method": { - "shortName": "UpdateTeam", - "fullName": "google.ads.admanager.v1.TeamService.UpdateTeam", - "service": { - "shortName": "TeamService", - "fullName": "google.ads.admanager.v1.TeamService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_TeamService_BatchUpdateTeams_async", - "title": "AdBreakService batchUpdateTeams Sample", - "origin": "API_DEFINITION", - "description": " API to batch update `Team` objects.", - "canonical": true, - "file": "team_service.batch_update_teams.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchUpdateTeams", - "fullName": "google.ads.admanager.v1.TeamService.BatchUpdateTeams", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.ads.admanager.v1.BatchUpdateTeamsResponse", - "client": { - "shortName": "TeamServiceClient", - "fullName": "google.ads.admanager.v1.TeamServiceClient" - }, - "method": { - "shortName": "BatchUpdateTeams", - "fullName": "google.ads.admanager.v1.TeamService.BatchUpdateTeams", - "service": { - "shortName": "TeamService", - "fullName": "google.ads.admanager.v1.TeamService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_TeamService_BatchActivateTeams_async", - "title": "AdBreakService batchActivateTeams Sample", - "origin": "API_DEFINITION", - "description": " API to batch activate `Team` objects.", - "canonical": true, - "file": "team_service.batch_activate_teams.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchActivateTeams", - "fullName": "google.ads.admanager.v1.TeamService.BatchActivateTeams", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "names", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.ads.admanager.v1.BatchActivateTeamsResponse", - "client": { - "shortName": "TeamServiceClient", - "fullName": "google.ads.admanager.v1.TeamServiceClient" - }, - "method": { - "shortName": "BatchActivateTeams", - "fullName": "google.ads.admanager.v1.TeamService.BatchActivateTeams", - "service": { - "shortName": "TeamService", - "fullName": "google.ads.admanager.v1.TeamService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_TeamService_BatchDeactivateTeams_async", - "title": "AdBreakService batchDeactivateTeams Sample", - "origin": "API_DEFINITION", - "description": " API to batch deactivate `Team` objects.", - "canonical": true, - "file": "team_service.batch_deactivate_teams.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchDeactivateTeams", - "fullName": "google.ads.admanager.v1.TeamService.BatchDeactivateTeams", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "names", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.ads.admanager.v1.BatchDeactivateTeamsResponse", - "client": { - "shortName": "TeamServiceClient", - "fullName": "google.ads.admanager.v1.TeamServiceClient" - }, - "method": { - "shortName": "BatchDeactivateTeams", - "fullName": "google.ads.admanager.v1.TeamService.BatchDeactivateTeams", - "service": { - "shortName": "TeamService", - "fullName": "google.ads.admanager.v1.TeamService" - } - } - } - }, - { - "regionTag": "admanager_v1_generated_UserService_GetUser_async", - "title": "AdBreakService getUser Sample", - "origin": "API_DEFINITION", - "description": " API to retrieve a User object. To get the current user, the resource name `networks/{networkCode}/users/me` can be used.", - "canonical": true, - "file": "user_service.get_user.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetUser", - "fullName": "google.ads.admanager.v1.UserService.GetUser", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ads.admanager.v1.User", - "client": { - "shortName": "UserServiceClient", - "fullName": "google.ads.admanager.v1.UserServiceClient" - }, - "method": { - "shortName": "GetUser", - "fullName": "google.ads.admanager.v1.UserService.GetUser", - "service": { - "shortName": "UserService", - "fullName": "google.ads.admanager.v1.UserService" - } - } - } - } - ] -} diff --git a/packages/google-ads-datamanager/samples/generated/v1/snippet_metadata_google.ads.datamanager.v1.json b/packages/google-ads-datamanager/samples/generated/v1/snippet_metadata_google.ads.datamanager.v1.json deleted file mode 100644 index 64f8cb59a961..000000000000 --- a/packages/google-ads-datamanager/samples/generated/v1/snippet_metadata_google.ads.datamanager.v1.json +++ /dev/null @@ -1,1063 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-datamanager", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.ads.datamanager.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "datamanager_v1_generated_IngestionService_IngestAudienceMembers_async", - "title": "IngestionService ingestAudienceMembers Sample", - "origin": "API_DEFINITION", - "description": " Uploads a list of [AudienceMember][google.ads.datamanager.v1.AudienceMember] resources to the provided [Destination][google.ads.datamanager.v1.Destination].", - "canonical": true, - "file": "ingestion_service.ingest_audience_members.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 92, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "IngestAudienceMembers", - "fullName": "google.ads.datamanager.v1.IngestionService.IngestAudienceMembers", - "async": true, - "parameters": [ - { - "name": "destinations", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "audience_members", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "consent", - "type": ".google.ads.datamanager.v1.Consent" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "encoding", - "type": ".google.ads.datamanager.v1.Encoding" - }, - { - "name": "encryption_info", - "type": ".google.ads.datamanager.v1.EncryptionInfo" - }, - { - "name": "terms_of_service", - "type": ".google.ads.datamanager.v1.TermsOfService" - } - ], - "resultType": ".google.ads.datamanager.v1.IngestAudienceMembersResponse", - "client": { - "shortName": "IngestionServiceClient", - "fullName": "google.ads.datamanager.v1.IngestionServiceClient" - }, - "method": { - "shortName": "IngestAudienceMembers", - "fullName": "google.ads.datamanager.v1.IngestionService.IngestAudienceMembers", - "service": { - "shortName": "IngestionService", - "fullName": "google.ads.datamanager.v1.IngestionService" - } - } - } - }, - { - "regionTag": "datamanager_v1_generated_IngestionService_RemoveAudienceMembers_async", - "title": "IngestionService removeAudienceMembers Sample", - "origin": "API_DEFINITION", - "description": " Removes a list of [AudienceMember][google.ads.datamanager.v1.AudienceMember] resources from the provided [Destination][google.ads.datamanager.v1.Destination].", - "canonical": true, - "file": "ingestion_service.remove_audience_members.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveAudienceMembers", - "fullName": "google.ads.datamanager.v1.IngestionService.RemoveAudienceMembers", - "async": true, - "parameters": [ - { - "name": "destinations", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "audience_members", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "encoding", - "type": ".google.ads.datamanager.v1.Encoding" - }, - { - "name": "encryption_info", - "type": ".google.ads.datamanager.v1.EncryptionInfo" - } - ], - "resultType": ".google.ads.datamanager.v1.RemoveAudienceMembersResponse", - "client": { - "shortName": "IngestionServiceClient", - "fullName": "google.ads.datamanager.v1.IngestionServiceClient" - }, - "method": { - "shortName": "RemoveAudienceMembers", - "fullName": "google.ads.datamanager.v1.IngestionService.RemoveAudienceMembers", - "service": { - "shortName": "IngestionService", - "fullName": "google.ads.datamanager.v1.IngestionService" - } - } - } - }, - { - "regionTag": "datamanager_v1_generated_IngestionService_IngestEvents_async", - "title": "IngestionService ingestEvents Sample", - "origin": "API_DEFINITION", - "description": " Uploads a list of [Event][google.ads.datamanager.v1.Event] resources from the provided [Destination][google.ads.datamanager.v1.Destination].", - "canonical": true, - "file": "ingestion_service.ingest_events.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 88, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "IngestEvents", - "fullName": "google.ads.datamanager.v1.IngestionService.IngestEvents", - "async": true, - "parameters": [ - { - "name": "destinations", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "events", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "consent", - "type": ".google.ads.datamanager.v1.Consent" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "encoding", - "type": ".google.ads.datamanager.v1.Encoding" - }, - { - "name": "encryption_info", - "type": ".google.ads.datamanager.v1.EncryptionInfo" - } - ], - "resultType": ".google.ads.datamanager.v1.IngestEventsResponse", - "client": { - "shortName": "IngestionServiceClient", - "fullName": "google.ads.datamanager.v1.IngestionServiceClient" - }, - "method": { - "shortName": "IngestEvents", - "fullName": "google.ads.datamanager.v1.IngestionService.IngestEvents", - "service": { - "shortName": "IngestionService", - "fullName": "google.ads.datamanager.v1.IngestionService" - } - } - } - }, - { - "regionTag": "datamanager_v1_generated_IngestionService_RetrieveRequestStatus_async", - "title": "IngestionService retrieveRequestStatus Sample", - "origin": "API_DEFINITION", - "description": " Gets the status of a request given request id.", - "canonical": true, - "file": "ingestion_service.retrieve_request_status.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RetrieveRequestStatus", - "fullName": "google.ads.datamanager.v1.IngestionService.RetrieveRequestStatus", - "async": true, - "parameters": [ - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ads.datamanager.v1.RetrieveRequestStatusResponse", - "client": { - "shortName": "IngestionServiceClient", - "fullName": "google.ads.datamanager.v1.IngestionServiceClient" - }, - "method": { - "shortName": "RetrieveRequestStatus", - "fullName": "google.ads.datamanager.v1.IngestionService.RetrieveRequestStatus", - "service": { - "shortName": "IngestionService", - "fullName": "google.ads.datamanager.v1.IngestionService" - } - } - } - }, - { - "regionTag": "datamanager_v1_generated_MarketingDataInsightsService_RetrieveInsights_async", - "title": "IngestionService retrieveInsights Sample", - "origin": "API_DEFINITION", - "description": " Retrieves marketing data insights for a given user list. This feature is only available to data partners. Authorization Headers: This method supports the following optional headers to define how the API authorizes access for the request: * `login-account`: (Optional) The resource name of the account where the Google Account of the credentials is a user. If not set, defaults to the account of the request. Format: `accountTypes/{loginAccountType}/accounts/{loginAccountId}` * `linked-account`: (Optional) The resource name of the account with an established product link to the `login-account`. Format: `accountTypes/{linkedAccountType}/accounts/{linkedAccountId}`", - "canonical": true, - "file": "marketing_data_insights_service.retrieve_insights.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RetrieveInsights", - "fullName": "google.ads.datamanager.v1.MarketingDataInsightsService.RetrieveInsights", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "baseline", - "type": ".google.ads.datamanager.v1.Baseline" - }, - { - "name": "user_list_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ads.datamanager.v1.RetrieveInsightsResponse", - "client": { - "shortName": "MarketingDataInsightsServiceClient", - "fullName": "google.ads.datamanager.v1.MarketingDataInsightsServiceClient" - }, - "method": { - "shortName": "RetrieveInsights", - "fullName": "google.ads.datamanager.v1.MarketingDataInsightsService.RetrieveInsights", - "service": { - "shortName": "MarketingDataInsightsService", - "fullName": "google.ads.datamanager.v1.MarketingDataInsightsService" - } - } - } - }, - { - "regionTag": "datamanager_v1_generated_PartnerLinkService_CreatePartnerLink_async", - "title": "IngestionService createPartnerLink Sample", - "origin": "API_DEFINITION", - "description": " Creates a partner link for the given account. Authorization Headers: This method supports the following optional headers to define how the API authorizes access for the request: * `login-account`: (Optional) The resource name of the account where the Google Account of the credentials is a user. If not set, defaults to the account of the request. Format: `accountTypes/{loginAccountType}/accounts/{loginAccountId}`", - "canonical": true, - "file": "partner_link_service.create_partner_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreatePartnerLink", - "fullName": "google.ads.datamanager.v1.PartnerLinkService.CreatePartnerLink", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "partner_link", - "type": ".google.ads.datamanager.v1.PartnerLink" - } - ], - "resultType": ".google.ads.datamanager.v1.PartnerLink", - "client": { - "shortName": "PartnerLinkServiceClient", - "fullName": "google.ads.datamanager.v1.PartnerLinkServiceClient" - }, - "method": { - "shortName": "CreatePartnerLink", - "fullName": "google.ads.datamanager.v1.PartnerLinkService.CreatePartnerLink", - "service": { - "shortName": "PartnerLinkService", - "fullName": "google.ads.datamanager.v1.PartnerLinkService" - } - } - } - }, - { - "regionTag": "datamanager_v1_generated_PartnerLinkService_DeletePartnerLink_async", - "title": "IngestionService deletePartnerLink Sample", - "origin": "API_DEFINITION", - "description": " Deletes a partner link for the given account. Authorization Headers: This method supports the following optional headers to define how the API authorizes access for the request: * `login-account`: (Optional) The resource name of the account where the Google Account of the credentials is a user. If not set, defaults to the account of the request. Format: `accountTypes/{loginAccountType}/accounts/{loginAccountId}`", - "canonical": true, - "file": "partner_link_service.delete_partner_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePartnerLink", - "fullName": "google.ads.datamanager.v1.PartnerLinkService.DeletePartnerLink", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "PartnerLinkServiceClient", - "fullName": "google.ads.datamanager.v1.PartnerLinkServiceClient" - }, - "method": { - "shortName": "DeletePartnerLink", - "fullName": "google.ads.datamanager.v1.PartnerLinkService.DeletePartnerLink", - "service": { - "shortName": "PartnerLinkService", - "fullName": "google.ads.datamanager.v1.PartnerLinkService" - } - } - } - }, - { - "regionTag": "datamanager_v1_generated_PartnerLinkService_SearchPartnerLinks_async", - "title": "IngestionService searchPartnerLinks Sample", - "origin": "API_DEFINITION", - "description": " Searches for all partner links to and from a given account. Authorization Headers: This method supports the following optional headers to define how the API authorizes access for the request: * `login-account`: (Optional) The resource name of the account where the Google Account of the credentials is a user. If not set, defaults to the account of the request. Format: `accountTypes/{loginAccountType}/accounts/{loginAccountId}`", - "canonical": true, - "file": "partner_link_service.search_partner_links.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 94, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchPartnerLinks", - "fullName": "google.ads.datamanager.v1.PartnerLinkService.SearchPartnerLinks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ads.datamanager.v1.SearchPartnerLinksResponse", - "client": { - "shortName": "PartnerLinkServiceClient", - "fullName": "google.ads.datamanager.v1.PartnerLinkServiceClient" - }, - "method": { - "shortName": "SearchPartnerLinks", - "fullName": "google.ads.datamanager.v1.PartnerLinkService.SearchPartnerLinks", - "service": { - "shortName": "PartnerLinkService", - "fullName": "google.ads.datamanager.v1.PartnerLinkService" - } - } - } - }, - { - "regionTag": "datamanager_v1_generated_UserListDirectLicenseService_CreateUserListDirectLicense_async", - "title": "IngestionService createUserListDirectLicense Sample", - "origin": "API_DEFINITION", - "description": " Creates a user list direct license. This feature is only available to data partners.", - "canonical": true, - "file": "user_list_direct_license_service.create_user_list_direct_license.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateUserListDirectLicense", - "fullName": "google.ads.datamanager.v1.UserListDirectLicenseService.CreateUserListDirectLicense", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "user_list_direct_license", - "type": ".google.ads.datamanager.v1.UserListDirectLicense" - } - ], - "resultType": ".google.ads.datamanager.v1.UserListDirectLicense", - "client": { - "shortName": "UserListDirectLicenseServiceClient", - "fullName": "google.ads.datamanager.v1.UserListDirectLicenseServiceClient" - }, - "method": { - "shortName": "CreateUserListDirectLicense", - "fullName": "google.ads.datamanager.v1.UserListDirectLicenseService.CreateUserListDirectLicense", - "service": { - "shortName": "UserListDirectLicenseService", - "fullName": "google.ads.datamanager.v1.UserListDirectLicenseService" - } - } - } - }, - { - "regionTag": "datamanager_v1_generated_UserListDirectLicenseService_GetUserListDirectLicense_async", - "title": "IngestionService getUserListDirectLicense Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a user list direct license. This feature is only available to data partners.", - "canonical": true, - "file": "user_list_direct_license_service.get_user_list_direct_license.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetUserListDirectLicense", - "fullName": "google.ads.datamanager.v1.UserListDirectLicenseService.GetUserListDirectLicense", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ads.datamanager.v1.UserListDirectLicense", - "client": { - "shortName": "UserListDirectLicenseServiceClient", - "fullName": "google.ads.datamanager.v1.UserListDirectLicenseServiceClient" - }, - "method": { - "shortName": "GetUserListDirectLicense", - "fullName": "google.ads.datamanager.v1.UserListDirectLicenseService.GetUserListDirectLicense", - "service": { - "shortName": "UserListDirectLicenseService", - "fullName": "google.ads.datamanager.v1.UserListDirectLicenseService" - } - } - } - }, - { - "regionTag": "datamanager_v1_generated_UserListDirectLicenseService_UpdateUserListDirectLicense_async", - "title": "IngestionService updateUserListDirectLicense Sample", - "origin": "API_DEFINITION", - "description": " Updates a user list direct license. This feature is only available to data partners.", - "canonical": true, - "file": "user_list_direct_license_service.update_user_list_direct_license.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateUserListDirectLicense", - "fullName": "google.ads.datamanager.v1.UserListDirectLicenseService.UpdateUserListDirectLicense", - "async": true, - "parameters": [ - { - "name": "user_list_direct_license", - "type": ".google.ads.datamanager.v1.UserListDirectLicense" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.ads.datamanager.v1.UserListDirectLicense", - "client": { - "shortName": "UserListDirectLicenseServiceClient", - "fullName": "google.ads.datamanager.v1.UserListDirectLicenseServiceClient" - }, - "method": { - "shortName": "UpdateUserListDirectLicense", - "fullName": "google.ads.datamanager.v1.UserListDirectLicenseService.UpdateUserListDirectLicense", - "service": { - "shortName": "UserListDirectLicenseService", - "fullName": "google.ads.datamanager.v1.UserListDirectLicenseService" - } - } - } - }, - { - "regionTag": "datamanager_v1_generated_UserListDirectLicenseService_ListUserListDirectLicenses_async", - "title": "IngestionService listUserListDirectLicenses Sample", - "origin": "API_DEFINITION", - "description": " Lists all user list direct licenses owned by the parent account. This feature is only available to data partners.", - "canonical": true, - "file": "user_list_direct_license_service.list_user_list_direct_licenses.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 94, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListUserListDirectLicenses", - "fullName": "google.ads.datamanager.v1.UserListDirectLicenseService.ListUserListDirectLicenses", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ads.datamanager.v1.ListUserListDirectLicensesResponse", - "client": { - "shortName": "UserListDirectLicenseServiceClient", - "fullName": "google.ads.datamanager.v1.UserListDirectLicenseServiceClient" - }, - "method": { - "shortName": "ListUserListDirectLicenses", - "fullName": "google.ads.datamanager.v1.UserListDirectLicenseService.ListUserListDirectLicenses", - "service": { - "shortName": "UserListDirectLicenseService", - "fullName": "google.ads.datamanager.v1.UserListDirectLicenseService" - } - } - } - }, - { - "regionTag": "datamanager_v1_generated_UserListGlobalLicenseService_CreateUserListGlobalLicense_async", - "title": "IngestionService createUserListGlobalLicense Sample", - "origin": "API_DEFINITION", - "description": " Creates a user list global license. This feature is only available to data partners.", - "canonical": true, - "file": "user_list_global_license_service.create_user_list_global_license.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateUserListGlobalLicense", - "fullName": "google.ads.datamanager.v1.UserListGlobalLicenseService.CreateUserListGlobalLicense", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "user_list_global_license", - "type": ".google.ads.datamanager.v1.UserListGlobalLicense" - } - ], - "resultType": ".google.ads.datamanager.v1.UserListGlobalLicense", - "client": { - "shortName": "UserListGlobalLicenseServiceClient", - "fullName": "google.ads.datamanager.v1.UserListGlobalLicenseServiceClient" - }, - "method": { - "shortName": "CreateUserListGlobalLicense", - "fullName": "google.ads.datamanager.v1.UserListGlobalLicenseService.CreateUserListGlobalLicense", - "service": { - "shortName": "UserListGlobalLicenseService", - "fullName": "google.ads.datamanager.v1.UserListGlobalLicenseService" - } - } - } - }, - { - "regionTag": "datamanager_v1_generated_UserListGlobalLicenseService_UpdateUserListGlobalLicense_async", - "title": "IngestionService updateUserListGlobalLicense Sample", - "origin": "API_DEFINITION", - "description": " Updates a user list global license. This feature is only available to data partners.", - "canonical": true, - "file": "user_list_global_license_service.update_user_list_global_license.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateUserListGlobalLicense", - "fullName": "google.ads.datamanager.v1.UserListGlobalLicenseService.UpdateUserListGlobalLicense", - "async": true, - "parameters": [ - { - "name": "user_list_global_license", - "type": ".google.ads.datamanager.v1.UserListGlobalLicense" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.ads.datamanager.v1.UserListGlobalLicense", - "client": { - "shortName": "UserListGlobalLicenseServiceClient", - "fullName": "google.ads.datamanager.v1.UserListGlobalLicenseServiceClient" - }, - "method": { - "shortName": "UpdateUserListGlobalLicense", - "fullName": "google.ads.datamanager.v1.UserListGlobalLicenseService.UpdateUserListGlobalLicense", - "service": { - "shortName": "UserListGlobalLicenseService", - "fullName": "google.ads.datamanager.v1.UserListGlobalLicenseService" - } - } - } - }, - { - "regionTag": "datamanager_v1_generated_UserListGlobalLicenseService_GetUserListGlobalLicense_async", - "title": "IngestionService getUserListGlobalLicense Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a user list global license. This feature is only available to data partners.", - "canonical": true, - "file": "user_list_global_license_service.get_user_list_global_license.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetUserListGlobalLicense", - "fullName": "google.ads.datamanager.v1.UserListGlobalLicenseService.GetUserListGlobalLicense", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ads.datamanager.v1.UserListGlobalLicense", - "client": { - "shortName": "UserListGlobalLicenseServiceClient", - "fullName": "google.ads.datamanager.v1.UserListGlobalLicenseServiceClient" - }, - "method": { - "shortName": "GetUserListGlobalLicense", - "fullName": "google.ads.datamanager.v1.UserListGlobalLicenseService.GetUserListGlobalLicense", - "service": { - "shortName": "UserListGlobalLicenseService", - "fullName": "google.ads.datamanager.v1.UserListGlobalLicenseService" - } - } - } - }, - { - "regionTag": "datamanager_v1_generated_UserListGlobalLicenseService_ListUserListGlobalLicenses_async", - "title": "IngestionService listUserListGlobalLicenses Sample", - "origin": "API_DEFINITION", - "description": " Lists all user list global licenses owned by the parent account. This feature is only available to data partners.", - "canonical": true, - "file": "user_list_global_license_service.list_user_list_global_licenses.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 94, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListUserListGlobalLicenses", - "fullName": "google.ads.datamanager.v1.UserListGlobalLicenseService.ListUserListGlobalLicenses", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ads.datamanager.v1.ListUserListGlobalLicensesResponse", - "client": { - "shortName": "UserListGlobalLicenseServiceClient", - "fullName": "google.ads.datamanager.v1.UserListGlobalLicenseServiceClient" - }, - "method": { - "shortName": "ListUserListGlobalLicenses", - "fullName": "google.ads.datamanager.v1.UserListGlobalLicenseService.ListUserListGlobalLicenses", - "service": { - "shortName": "UserListGlobalLicenseService", - "fullName": "google.ads.datamanager.v1.UserListGlobalLicenseService" - } - } - } - }, - { - "regionTag": "datamanager_v1_generated_UserListGlobalLicenseService_ListUserListGlobalLicenseCustomerInfos_async", - "title": "IngestionService listUserListGlobalLicenseCustomerInfos Sample", - "origin": "API_DEFINITION", - "description": " Lists all customer info for a user list global license. This feature is only available to data partners.", - "canonical": true, - "file": "user_list_global_license_service.list_user_list_global_license_customer_infos.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 98, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListUserListGlobalLicenseCustomerInfos", - "fullName": "google.ads.datamanager.v1.UserListGlobalLicenseService.ListUserListGlobalLicenseCustomerInfos", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ads.datamanager.v1.ListUserListGlobalLicenseCustomerInfosResponse", - "client": { - "shortName": "UserListGlobalLicenseServiceClient", - "fullName": "google.ads.datamanager.v1.UserListGlobalLicenseServiceClient" - }, - "method": { - "shortName": "ListUserListGlobalLicenseCustomerInfos", - "fullName": "google.ads.datamanager.v1.UserListGlobalLicenseService.ListUserListGlobalLicenseCustomerInfos", - "service": { - "shortName": "UserListGlobalLicenseService", - "fullName": "google.ads.datamanager.v1.UserListGlobalLicenseService" - } - } - } - }, - { - "regionTag": "datamanager_v1_generated_UserListService_GetUserList_async", - "title": "IngestionService getUserList Sample", - "origin": "API_DEFINITION", - "description": " Gets a UserList. Authorization Headers: This method supports the following optional headers to define how the API authorizes access for the request: * `login-account`: (Optional) The resource name of the account where the Google Account of the credentials is a user. If not set, defaults to the account of the request. Format: `accountTypes/{loginAccountType}/accounts/{loginAccountId}` * `linked-account`: (Optional) The resource name of the account with an established product link to the `login-account`. Format: `accountTypes/{linkedAccountType}/accounts/{linkedAccountId}`", - "canonical": true, - "file": "user_list_service.get_user_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetUserList", - "fullName": "google.ads.datamanager.v1.UserListService.GetUserList", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ads.datamanager.v1.UserList", - "client": { - "shortName": "UserListServiceClient", - "fullName": "google.ads.datamanager.v1.UserListServiceClient" - }, - "method": { - "shortName": "GetUserList", - "fullName": "google.ads.datamanager.v1.UserListService.GetUserList", - "service": { - "shortName": "UserListService", - "fullName": "google.ads.datamanager.v1.UserListService" - } - } - } - }, - { - "regionTag": "datamanager_v1_generated_UserListService_ListUserLists_async", - "title": "IngestionService listUserLists Sample", - "origin": "API_DEFINITION", - "description": " Lists UserLists. Authorization Headers: This method supports the following optional headers to define how the API authorizes access for the request: * `login-account`: (Optional) The resource name of the account where the Google Account of the credentials is a user. If not set, defaults to the account of the request. Format: `accountTypes/{loginAccountType}/accounts/{loginAccountId}` * `linked-account`: (Optional) The resource name of the account with an established product link to the `login-account`. Format: `accountTypes/{linkedAccountType}/accounts/{linkedAccountId}`", - "canonical": true, - "file": "user_list_service.list_user_lists.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 96, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListUserLists", - "fullName": "google.ads.datamanager.v1.UserListService.ListUserLists", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ads.datamanager.v1.ListUserListsResponse", - "client": { - "shortName": "UserListServiceClient", - "fullName": "google.ads.datamanager.v1.UserListServiceClient" - }, - "method": { - "shortName": "ListUserLists", - "fullName": "google.ads.datamanager.v1.UserListService.ListUserLists", - "service": { - "shortName": "UserListService", - "fullName": "google.ads.datamanager.v1.UserListService" - } - } - } - }, - { - "regionTag": "datamanager_v1_generated_UserListService_CreateUserList_async", - "title": "IngestionService createUserList Sample", - "origin": "API_DEFINITION", - "description": " Creates a UserList. Authorization Headers: This method supports the following optional headers to define how the API authorizes access for the request: * `login-account`: (Optional) The resource name of the account where the Google Account of the credentials is a user. If not set, defaults to the account of the request. Format: `accountTypes/{loginAccountType}/accounts/{loginAccountId}` * `linked-account`: (Optional) The resource name of the account with an established product link to the `login-account`. Format: `accountTypes/{linkedAccountType}/accounts/{linkedAccountId}`", - "canonical": true, - "file": "user_list_service.create_user_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateUserList", - "fullName": "google.ads.datamanager.v1.UserListService.CreateUserList", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "user_list", - "type": ".google.ads.datamanager.v1.UserList" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.ads.datamanager.v1.UserList", - "client": { - "shortName": "UserListServiceClient", - "fullName": "google.ads.datamanager.v1.UserListServiceClient" - }, - "method": { - "shortName": "CreateUserList", - "fullName": "google.ads.datamanager.v1.UserListService.CreateUserList", - "service": { - "shortName": "UserListService", - "fullName": "google.ads.datamanager.v1.UserListService" - } - } - } - }, - { - "regionTag": "datamanager_v1_generated_UserListService_UpdateUserList_async", - "title": "IngestionService updateUserList Sample", - "origin": "API_DEFINITION", - "description": " Updates a UserList. Authorization Headers: This method supports the following optional headers to define how the API authorizes access for the request: * `login-account`: (Optional) The resource name of the account where the Google Account of the credentials is a user. If not set, defaults to the account of the request. Format: `accountTypes/{loginAccountType}/accounts/{loginAccountId}` * `linked-account`: (Optional) The resource name of the account with an established product link to the `login-account`. Format: `accountTypes/{linkedAccountType}/accounts/{linkedAccountId}`", - "canonical": true, - "file": "user_list_service.update_user_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateUserList", - "fullName": "google.ads.datamanager.v1.UserListService.UpdateUserList", - "async": true, - "parameters": [ - { - "name": "user_list", - "type": ".google.ads.datamanager.v1.UserList" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.ads.datamanager.v1.UserList", - "client": { - "shortName": "UserListServiceClient", - "fullName": "google.ads.datamanager.v1.UserListServiceClient" - }, - "method": { - "shortName": "UpdateUserList", - "fullName": "google.ads.datamanager.v1.UserListService.UpdateUserList", - "service": { - "shortName": "UserListService", - "fullName": "google.ads.datamanager.v1.UserListService" - } - } - } - }, - { - "regionTag": "datamanager_v1_generated_UserListService_DeleteUserList_async", - "title": "IngestionService deleteUserList Sample", - "origin": "API_DEFINITION", - "description": " Deletes a UserList. Authorization Headers: This method supports the following optional headers to define how the API authorizes access for the request: * `login-account`: (Optional) The resource name of the account where the Google Account of the credentials is a user. If not set, defaults to the account of the request. Format: `accountTypes/{loginAccountType}/accounts/{loginAccountId}` * `linked-account`: (Optional) The resource name of the account with an established product link to the `login-account`. Format: `accountTypes/{linkedAccountType}/accounts/{linkedAccountId}`", - "canonical": true, - "file": "user_list_service.delete_user_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteUserList", - "fullName": "google.ads.datamanager.v1.UserListService.DeleteUserList", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "UserListServiceClient", - "fullName": "google.ads.datamanager.v1.UserListServiceClient" - }, - "method": { - "shortName": "DeleteUserList", - "fullName": "google.ads.datamanager.v1.UserListService.DeleteUserList", - "service": { - "shortName": "UserListService", - "fullName": "google.ads.datamanager.v1.UserListService" - } - } - } - } - ] -} diff --git a/packages/google-ai-generativelanguage/samples/generated/v1/snippet_metadata_google.ai.generativelanguage.v1.json b/packages/google-ai-generativelanguage/samples/generated/v1/snippet_metadata_google.ai.generativelanguage.v1.json deleted file mode 100644 index 7adf7770f50f..000000000000 --- a/packages/google-ai-generativelanguage/samples/generated/v1/snippet_metadata_google.ai.generativelanguage.v1.json +++ /dev/null @@ -1,351 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-generativelanguage", - "version": "3.7.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.ai.generativelanguage.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "generativelanguage_v1_generated_GenerativeService_GenerateContent_async", - "title": "GenerativeService generateContent Sample", - "origin": "API_DEFINITION", - "description": " Generates a model response given an input `GenerateContentRequest`. Refer to the [text generation guide](https://ai.google.dev/gemini-api/docs/text-generation) for detailed usage information. Input capabilities differ between models, including tuned models. Refer to the [model guide](https://ai.google.dev/gemini-api/docs/models/gemini) and [tuning guide](https://ai.google.dev/gemini-api/docs/model-tuning) for details.", - "canonical": true, - "file": "generative_service.generate_content.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateContent", - "fullName": "google.ai.generativelanguage.v1.GenerativeService.GenerateContent", - "async": true, - "parameters": [ - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "contents", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "safety_settings", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "generation_config", - "type": ".google.ai.generativelanguage.v1.GenerationConfig" - } - ], - "resultType": ".google.ai.generativelanguage.v1.GenerateContentResponse", - "client": { - "shortName": "GenerativeServiceClient", - "fullName": "google.ai.generativelanguage.v1.GenerativeServiceClient" - }, - "method": { - "shortName": "GenerateContent", - "fullName": "google.ai.generativelanguage.v1.GenerativeService.GenerateContent", - "service": { - "shortName": "GenerativeService", - "fullName": "google.ai.generativelanguage.v1.GenerativeService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1_generated_GenerativeService_StreamGenerateContent_async", - "title": "GenerativeService streamGenerateContent Sample", - "origin": "API_DEFINITION", - "description": " Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`.", - "canonical": true, - "file": "generative_service.stream_generate_content.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 88, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StreamGenerateContent", - "fullName": "google.ai.generativelanguage.v1.GenerativeService.StreamGenerateContent", - "async": true, - "parameters": [ - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "contents", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "safety_settings", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "generation_config", - "type": ".google.ai.generativelanguage.v1.GenerationConfig" - } - ], - "resultType": ".google.ai.generativelanguage.v1.GenerateContentResponse", - "client": { - "shortName": "GenerativeServiceClient", - "fullName": "google.ai.generativelanguage.v1.GenerativeServiceClient" - }, - "method": { - "shortName": "StreamGenerateContent", - "fullName": "google.ai.generativelanguage.v1.GenerativeService.StreamGenerateContent", - "service": { - "shortName": "GenerativeService", - "fullName": "google.ai.generativelanguage.v1.GenerativeService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1_generated_GenerativeService_EmbedContent_async", - "title": "GenerativeService embedContent Sample", - "origin": "API_DEFINITION", - "description": " Generates a text embedding vector from the input `Content` using the specified [Gemini Embedding model](https://ai.google.dev/gemini-api/docs/models/gemini#text-embedding).", - "canonical": true, - "file": "generative_service.embed_content.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "EmbedContent", - "fullName": "google.ai.generativelanguage.v1.GenerativeService.EmbedContent", - "async": true, - "parameters": [ - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "content", - "type": ".google.ai.generativelanguage.v1.Content" - }, - { - "name": "task_type", - "type": ".google.ai.generativelanguage.v1.TaskType" - }, - { - "name": "title", - "type": "TYPE_STRING" - }, - { - "name": "output_dimensionality", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.ai.generativelanguage.v1.EmbedContentResponse", - "client": { - "shortName": "GenerativeServiceClient", - "fullName": "google.ai.generativelanguage.v1.GenerativeServiceClient" - }, - "method": { - "shortName": "EmbedContent", - "fullName": "google.ai.generativelanguage.v1.GenerativeService.EmbedContent", - "service": { - "shortName": "GenerativeService", - "fullName": "google.ai.generativelanguage.v1.GenerativeService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1_generated_GenerativeService_BatchEmbedContents_async", - "title": "GenerativeService batchEmbedContents Sample", - "origin": "API_DEFINITION", - "description": " Generates multiple embedding vectors from the input `Content` which consists of a batch of strings represented as `EmbedContentRequest` objects.", - "canonical": true, - "file": "generative_service.batch_embed_contents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchEmbedContents", - "fullName": "google.ai.generativelanguage.v1.GenerativeService.BatchEmbedContents", - "async": true, - "parameters": [ - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.ai.generativelanguage.v1.BatchEmbedContentsResponse", - "client": { - "shortName": "GenerativeServiceClient", - "fullName": "google.ai.generativelanguage.v1.GenerativeServiceClient" - }, - "method": { - "shortName": "BatchEmbedContents", - "fullName": "google.ai.generativelanguage.v1.GenerativeService.BatchEmbedContents", - "service": { - "shortName": "GenerativeService", - "fullName": "google.ai.generativelanguage.v1.GenerativeService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1_generated_GenerativeService_CountTokens_async", - "title": "GenerativeService countTokens Sample", - "origin": "API_DEFINITION", - "description": " Runs a model's tokenizer on input `Content` and returns the token count. Refer to the [tokens guide](https://ai.google.dev/gemini-api/docs/tokens) to learn more about tokens.", - "canonical": true, - "file": "generative_service.count_tokens.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CountTokens", - "fullName": "google.ai.generativelanguage.v1.GenerativeService.CountTokens", - "async": true, - "parameters": [ - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "contents", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "generate_content_request", - "type": ".google.ai.generativelanguage.v1.GenerateContentRequest" - } - ], - "resultType": ".google.ai.generativelanguage.v1.CountTokensResponse", - "client": { - "shortName": "GenerativeServiceClient", - "fullName": "google.ai.generativelanguage.v1.GenerativeServiceClient" - }, - "method": { - "shortName": "CountTokens", - "fullName": "google.ai.generativelanguage.v1.GenerativeService.CountTokens", - "service": { - "shortName": "GenerativeService", - "fullName": "google.ai.generativelanguage.v1.GenerativeService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1_generated_ModelService_GetModel_async", - "title": "GenerativeService getModel Sample", - "origin": "API_DEFINITION", - "description": " Gets information about a specific `Model` such as its version number, token limits, [parameters](https://ai.google.dev/gemini-api/docs/models/generative-models#model-parameters) and other metadata. Refer to the [Gemini models guide](https://ai.google.dev/gemini-api/docs/models/gemini) for detailed model information.", - "canonical": true, - "file": "model_service.get_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetModel", - "fullName": "google.ai.generativelanguage.v1.ModelService.GetModel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ai.generativelanguage.v1.Model", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.ai.generativelanguage.v1.ModelServiceClient" - }, - "method": { - "shortName": "GetModel", - "fullName": "google.ai.generativelanguage.v1.ModelService.GetModel", - "service": { - "shortName": "ModelService", - "fullName": "google.ai.generativelanguage.v1.ModelService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1_generated_ModelService_ListModels_async", - "title": "GenerativeService listModels Sample", - "origin": "API_DEFINITION", - "description": " Lists the [`Model`s](https://ai.google.dev/gemini-api/docs/models/gemini) available through the Gemini API.", - "canonical": true, - "file": "model_service.list_models.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListModels", - "fullName": "google.ai.generativelanguage.v1.ModelService.ListModels", - "async": true, - "parameters": [ - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ai.generativelanguage.v1.ListModelsResponse", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.ai.generativelanguage.v1.ModelServiceClient" - }, - "method": { - "shortName": "ListModels", - "fullName": "google.ai.generativelanguage.v1.ModelService.ListModels", - "service": { - "shortName": "ModelService", - "fullName": "google.ai.generativelanguage.v1.ModelService" - } - } - } - } - ] -} diff --git a/packages/google-ai-generativelanguage/samples/generated/v1alpha/snippet_metadata_google.ai.generativelanguage.v1alpha.json b/packages/google-ai-generativelanguage/samples/generated/v1alpha/snippet_metadata_google.ai.generativelanguage.v1alpha.json deleted file mode 100644 index 0d11b9069e2e..000000000000 --- a/packages/google-ai-generativelanguage/samples/generated/v1alpha/snippet_metadata_google.ai.generativelanguage.v1alpha.json +++ /dev/null @@ -1,2591 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-generativelanguage", - "version": "3.7.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.ai.generativelanguage.v1alpha", - "version": "v1alpha" - } - ] - }, - "snippets": [ - { - "regionTag": "generativelanguage_v1alpha_generated_CacheService_ListCachedContents_async", - "title": "CacheService listCachedContents Sample", - "origin": "API_DEFINITION", - "description": " Lists CachedContents.", - "canonical": true, - "file": "cache_service.list_cached_contents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCachedContents", - "fullName": "google.ai.generativelanguage.v1alpha.CacheService.ListCachedContents", - "async": true, - "parameters": [ - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ai.generativelanguage.v1alpha.ListCachedContentsResponse", - "client": { - "shortName": "CacheServiceClient", - "fullName": "google.ai.generativelanguage.v1alpha.CacheServiceClient" - }, - "method": { - "shortName": "ListCachedContents", - "fullName": "google.ai.generativelanguage.v1alpha.CacheService.ListCachedContents", - "service": { - "shortName": "CacheService", - "fullName": "google.ai.generativelanguage.v1alpha.CacheService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1alpha_generated_CacheService_CreateCachedContent_async", - "title": "CacheService createCachedContent Sample", - "origin": "API_DEFINITION", - "description": " Creates CachedContent resource.", - "canonical": true, - "file": "cache_service.create_cached_content.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCachedContent", - "fullName": "google.ai.generativelanguage.v1alpha.CacheService.CreateCachedContent", - "async": true, - "parameters": [ - { - "name": "cached_content", - "type": ".google.ai.generativelanguage.v1alpha.CachedContent" - } - ], - "resultType": ".google.ai.generativelanguage.v1alpha.CachedContent", - "client": { - "shortName": "CacheServiceClient", - "fullName": "google.ai.generativelanguage.v1alpha.CacheServiceClient" - }, - "method": { - "shortName": "CreateCachedContent", - "fullName": "google.ai.generativelanguage.v1alpha.CacheService.CreateCachedContent", - "service": { - "shortName": "CacheService", - "fullName": "google.ai.generativelanguage.v1alpha.CacheService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1alpha_generated_CacheService_GetCachedContent_async", - "title": "CacheService getCachedContent Sample", - "origin": "API_DEFINITION", - "description": " Reads CachedContent resource.", - "canonical": true, - "file": "cache_service.get_cached_content.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCachedContent", - "fullName": "google.ai.generativelanguage.v1alpha.CacheService.GetCachedContent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ai.generativelanguage.v1alpha.CachedContent", - "client": { - "shortName": "CacheServiceClient", - "fullName": "google.ai.generativelanguage.v1alpha.CacheServiceClient" - }, - "method": { - "shortName": "GetCachedContent", - "fullName": "google.ai.generativelanguage.v1alpha.CacheService.GetCachedContent", - "service": { - "shortName": "CacheService", - "fullName": "google.ai.generativelanguage.v1alpha.CacheService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1alpha_generated_CacheService_UpdateCachedContent_async", - "title": "CacheService updateCachedContent Sample", - "origin": "API_DEFINITION", - "description": " Updates CachedContent resource (only expiration is updatable).", - "canonical": true, - "file": "cache_service.update_cached_content.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCachedContent", - "fullName": "google.ai.generativelanguage.v1alpha.CacheService.UpdateCachedContent", - "async": true, - "parameters": [ - { - "name": "cached_content", - "type": ".google.ai.generativelanguage.v1alpha.CachedContent" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.ai.generativelanguage.v1alpha.CachedContent", - "client": { - "shortName": "CacheServiceClient", - "fullName": "google.ai.generativelanguage.v1alpha.CacheServiceClient" - }, - "method": { - "shortName": "UpdateCachedContent", - "fullName": "google.ai.generativelanguage.v1alpha.CacheService.UpdateCachedContent", - "service": { - "shortName": "CacheService", - "fullName": "google.ai.generativelanguage.v1alpha.CacheService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1alpha_generated_CacheService_DeleteCachedContent_async", - "title": "CacheService deleteCachedContent Sample", - "origin": "API_DEFINITION", - "description": " Deletes CachedContent resource.", - "canonical": true, - "file": "cache_service.delete_cached_content.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCachedContent", - "fullName": "google.ai.generativelanguage.v1alpha.CacheService.DeleteCachedContent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "CacheServiceClient", - "fullName": "google.ai.generativelanguage.v1alpha.CacheServiceClient" - }, - "method": { - "shortName": "DeleteCachedContent", - "fullName": "google.ai.generativelanguage.v1alpha.CacheService.DeleteCachedContent", - "service": { - "shortName": "CacheService", - "fullName": "google.ai.generativelanguage.v1alpha.CacheService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1alpha_generated_DiscussService_GenerateMessage_async", - "title": "CacheService generateMessage Sample", - "origin": "API_DEFINITION", - "description": " Generates a response from the model given an input `MessagePrompt`.", - "canonical": true, - "file": "discuss_service.generate_message.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 90, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateMessage", - "fullName": "google.ai.generativelanguage.v1alpha.DiscussService.GenerateMessage", - "async": true, - "parameters": [ - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "prompt", - "type": ".google.ai.generativelanguage.v1alpha.MessagePrompt" - }, - { - "name": "temperature", - "type": "TYPE_FLOAT" - }, - { - "name": "candidate_count", - "type": "TYPE_INT32" - }, - { - "name": "top_p", - "type": "TYPE_FLOAT" - }, - { - "name": "top_k", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.ai.generativelanguage.v1alpha.GenerateMessageResponse", - "client": { - "shortName": "DiscussServiceClient", - "fullName": "google.ai.generativelanguage.v1alpha.DiscussServiceClient" - }, - "method": { - "shortName": "GenerateMessage", - "fullName": "google.ai.generativelanguage.v1alpha.DiscussService.GenerateMessage", - "service": { - "shortName": "DiscussService", - "fullName": "google.ai.generativelanguage.v1alpha.DiscussService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1alpha_generated_DiscussService_CountMessageTokens_async", - "title": "CacheService countMessageTokens Sample", - "origin": "API_DEFINITION", - "description": " Runs a model's tokenizer on a string and returns the token count.", - "canonical": true, - "file": "discuss_service.count_message_tokens.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CountMessageTokens", - "fullName": "google.ai.generativelanguage.v1alpha.DiscussService.CountMessageTokens", - "async": true, - "parameters": [ - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "prompt", - "type": ".google.ai.generativelanguage.v1alpha.MessagePrompt" - } - ], - "resultType": ".google.ai.generativelanguage.v1alpha.CountMessageTokensResponse", - "client": { - "shortName": "DiscussServiceClient", - "fullName": "google.ai.generativelanguage.v1alpha.DiscussServiceClient" - }, - "method": { - "shortName": "CountMessageTokens", - "fullName": "google.ai.generativelanguage.v1alpha.DiscussService.CountMessageTokens", - "service": { - "shortName": "DiscussService", - "fullName": "google.ai.generativelanguage.v1alpha.DiscussService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1alpha_generated_FileService_CreateFile_async", - "title": "CacheService createFile Sample", - "origin": "API_DEFINITION", - "description": " Creates a `File`.", - "canonical": true, - "file": "file_service.create_file.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 52, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateFile", - "fullName": "google.ai.generativelanguage.v1alpha.FileService.CreateFile", - "async": true, - "parameters": [ - { - "name": "file", - "type": ".google.ai.generativelanguage.v1alpha.File" - } - ], - "resultType": ".google.ai.generativelanguage.v1alpha.CreateFileResponse", - "client": { - "shortName": "FileServiceClient", - "fullName": "google.ai.generativelanguage.v1alpha.FileServiceClient" - }, - "method": { - "shortName": "CreateFile", - "fullName": "google.ai.generativelanguage.v1alpha.FileService.CreateFile", - "service": { - "shortName": "FileService", - "fullName": "google.ai.generativelanguage.v1alpha.FileService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1alpha_generated_FileService_ListFiles_async", - "title": "CacheService listFiles Sample", - "origin": "API_DEFINITION", - "description": " Lists the metadata for `File`s owned by the requesting project.", - "canonical": true, - "file": "file_service.list_files.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFiles", - "fullName": "google.ai.generativelanguage.v1alpha.FileService.ListFiles", - "async": true, - "parameters": [ - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ai.generativelanguage.v1alpha.ListFilesResponse", - "client": { - "shortName": "FileServiceClient", - "fullName": "google.ai.generativelanguage.v1alpha.FileServiceClient" - }, - "method": { - "shortName": "ListFiles", - "fullName": "google.ai.generativelanguage.v1alpha.FileService.ListFiles", - "service": { - "shortName": "FileService", - "fullName": "google.ai.generativelanguage.v1alpha.FileService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1alpha_generated_FileService_GetFile_async", - "title": "CacheService getFile Sample", - "origin": "API_DEFINITION", - "description": " Gets the metadata for the given `File`.", - "canonical": true, - "file": "file_service.get_file.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFile", - "fullName": "google.ai.generativelanguage.v1alpha.FileService.GetFile", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ai.generativelanguage.v1alpha.File", - "client": { - "shortName": "FileServiceClient", - "fullName": "google.ai.generativelanguage.v1alpha.FileServiceClient" - }, - "method": { - "shortName": "GetFile", - "fullName": "google.ai.generativelanguage.v1alpha.FileService.GetFile", - "service": { - "shortName": "FileService", - "fullName": "google.ai.generativelanguage.v1alpha.FileService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1alpha_generated_FileService_DeleteFile_async", - "title": "CacheService deleteFile Sample", - "origin": "API_DEFINITION", - "description": " Deletes the `File`.", - "canonical": true, - "file": "file_service.delete_file.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteFile", - "fullName": "google.ai.generativelanguage.v1alpha.FileService.DeleteFile", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "FileServiceClient", - "fullName": "google.ai.generativelanguage.v1alpha.FileServiceClient" - }, - "method": { - "shortName": "DeleteFile", - "fullName": "google.ai.generativelanguage.v1alpha.FileService.DeleteFile", - "service": { - "shortName": "FileService", - "fullName": "google.ai.generativelanguage.v1alpha.FileService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1alpha_generated_GenerativeService_GenerateContent_async", - "title": "CacheService generateContent Sample", - "origin": "API_DEFINITION", - "description": " Generates a model response given an input `GenerateContentRequest`. Refer to the [text generation guide](https://ai.google.dev/gemini-api/docs/text-generation) for detailed usage information. Input capabilities differ between models, including tuned models. Refer to the [model guide](https://ai.google.dev/gemini-api/docs/models/gemini) and [tuning guide](https://ai.google.dev/gemini-api/docs/model-tuning) for details.", - "canonical": true, - "file": "generative_service.generate_content.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 117, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateContent", - "fullName": "google.ai.generativelanguage.v1alpha.GenerativeService.GenerateContent", - "async": true, - "parameters": [ - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "system_instruction", - "type": ".google.ai.generativelanguage.v1alpha.Content" - }, - { - "name": "contents", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "tools", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "tool_config", - "type": ".google.ai.generativelanguage.v1alpha.ToolConfig" - }, - { - "name": "safety_settings", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "generation_config", - "type": ".google.ai.generativelanguage.v1alpha.GenerationConfig" - }, - { - "name": "cached_content", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ai.generativelanguage.v1alpha.GenerateContentResponse", - "client": { - "shortName": "GenerativeServiceClient", - "fullName": "google.ai.generativelanguage.v1alpha.GenerativeServiceClient" - }, - "method": { - "shortName": "GenerateContent", - "fullName": "google.ai.generativelanguage.v1alpha.GenerativeService.GenerateContent", - "service": { - "shortName": "GenerativeService", - "fullName": "google.ai.generativelanguage.v1alpha.GenerativeService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1alpha_generated_GenerativeService_GenerateAnswer_async", - "title": "CacheService generateAnswer Sample", - "origin": "API_DEFINITION", - "description": " Generates a grounded answer from the model given an input `GenerateAnswerRequest`.", - "canonical": true, - "file": "generative_service.generate_answer.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 107, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateAnswer", - "fullName": "google.ai.generativelanguage.v1alpha.GenerativeService.GenerateAnswer", - "async": true, - "parameters": [ - { - "name": "inline_passages", - "type": ".google.ai.generativelanguage.v1alpha.GroundingPassages" - }, - { - "name": "semantic_retriever", - "type": ".google.ai.generativelanguage.v1alpha.SemanticRetrieverConfig" - }, - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "contents", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "answer_style", - "type": ".google.ai.generativelanguage.v1alpha.GenerateAnswerRequest.AnswerStyle" - }, - { - "name": "safety_settings", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "temperature", - "type": "TYPE_FLOAT" - } - ], - "resultType": ".google.ai.generativelanguage.v1alpha.GenerateAnswerResponse", - "client": { - "shortName": "GenerativeServiceClient", - "fullName": "google.ai.generativelanguage.v1alpha.GenerativeServiceClient" - }, - "method": { - "shortName": "GenerateAnswer", - "fullName": "google.ai.generativelanguage.v1alpha.GenerativeService.GenerateAnswer", - "service": { - "shortName": "GenerativeService", - "fullName": "google.ai.generativelanguage.v1alpha.GenerativeService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1alpha_generated_GenerativeService_StreamGenerateContent_async", - "title": "CacheService streamGenerateContent Sample", - "origin": "API_DEFINITION", - "description": " Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`.", - "canonical": true, - "file": "generative_service.stream_generate_content.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 119, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StreamGenerateContent", - "fullName": "google.ai.generativelanguage.v1alpha.GenerativeService.StreamGenerateContent", - "async": true, - "parameters": [ - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "system_instruction", - "type": ".google.ai.generativelanguage.v1alpha.Content" - }, - { - "name": "contents", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "tools", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "tool_config", - "type": ".google.ai.generativelanguage.v1alpha.ToolConfig" - }, - { - "name": "safety_settings", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "generation_config", - "type": ".google.ai.generativelanguage.v1alpha.GenerationConfig" - }, - { - "name": "cached_content", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ai.generativelanguage.v1alpha.GenerateContentResponse", - "client": { - "shortName": "GenerativeServiceClient", - "fullName": "google.ai.generativelanguage.v1alpha.GenerativeServiceClient" - }, - "method": { - "shortName": "StreamGenerateContent", - "fullName": "google.ai.generativelanguage.v1alpha.GenerativeService.StreamGenerateContent", - "service": { - "shortName": "GenerativeService", - "fullName": "google.ai.generativelanguage.v1alpha.GenerativeService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1alpha_generated_GenerativeService_EmbedContent_async", - "title": "CacheService embedContent Sample", - "origin": "API_DEFINITION", - "description": " Generates a text embedding vector from the input `Content` using the specified [Gemini Embedding model](https://ai.google.dev/gemini-api/docs/models/gemini#text-embedding).", - "canonical": true, - "file": "generative_service.embed_content.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "EmbedContent", - "fullName": "google.ai.generativelanguage.v1alpha.GenerativeService.EmbedContent", - "async": true, - "parameters": [ - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "content", - "type": ".google.ai.generativelanguage.v1alpha.Content" - }, - { - "name": "task_type", - "type": ".google.ai.generativelanguage.v1alpha.TaskType" - }, - { - "name": "title", - "type": "TYPE_STRING" - }, - { - "name": "output_dimensionality", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.ai.generativelanguage.v1alpha.EmbedContentResponse", - "client": { - "shortName": "GenerativeServiceClient", - "fullName": "google.ai.generativelanguage.v1alpha.GenerativeServiceClient" - }, - "method": { - "shortName": "EmbedContent", - "fullName": "google.ai.generativelanguage.v1alpha.GenerativeService.EmbedContent", - "service": { - "shortName": "GenerativeService", - "fullName": "google.ai.generativelanguage.v1alpha.GenerativeService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1alpha_generated_GenerativeService_BatchEmbedContents_async", - "title": "CacheService batchEmbedContents Sample", - "origin": "API_DEFINITION", - "description": " Generates multiple embedding vectors from the input `Content` which consists of a batch of strings represented as `EmbedContentRequest` objects.", - "canonical": true, - "file": "generative_service.batch_embed_contents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchEmbedContents", - "fullName": "google.ai.generativelanguage.v1alpha.GenerativeService.BatchEmbedContents", - "async": true, - "parameters": [ - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.ai.generativelanguage.v1alpha.BatchEmbedContentsResponse", - "client": { - "shortName": "GenerativeServiceClient", - "fullName": "google.ai.generativelanguage.v1alpha.GenerativeServiceClient" - }, - "method": { - "shortName": "BatchEmbedContents", - "fullName": "google.ai.generativelanguage.v1alpha.GenerativeService.BatchEmbedContents", - "service": { - "shortName": "GenerativeService", - "fullName": "google.ai.generativelanguage.v1alpha.GenerativeService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1alpha_generated_GenerativeService_CountTokens_async", - "title": "CacheService countTokens Sample", - "origin": "API_DEFINITION", - "description": " Runs a model's tokenizer on input `Content` and returns the token count. Refer to the [tokens guide](https://ai.google.dev/gemini-api/docs/tokens) to learn more about tokens.", - "canonical": true, - "file": "generative_service.count_tokens.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CountTokens", - "fullName": "google.ai.generativelanguage.v1alpha.GenerativeService.CountTokens", - "async": true, - "parameters": [ - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "contents", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "generate_content_request", - "type": ".google.ai.generativelanguage.v1alpha.GenerateContentRequest" - } - ], - "resultType": ".google.ai.generativelanguage.v1alpha.CountTokensResponse", - "client": { - "shortName": "GenerativeServiceClient", - "fullName": "google.ai.generativelanguage.v1alpha.GenerativeServiceClient" - }, - "method": { - "shortName": "CountTokens", - "fullName": "google.ai.generativelanguage.v1alpha.GenerativeService.CountTokens", - "service": { - "shortName": "GenerativeService", - "fullName": "google.ai.generativelanguage.v1alpha.GenerativeService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1alpha_generated_GenerativeService_BidiGenerateContent_async", - "title": "CacheService bidiGenerateContent Sample", - "origin": "API_DEFINITION", - "description": " Low-Latency bidirectional streaming API that supports audio and video streaming inputs can produce multimodal output streams (audio and text).", - "canonical": true, - "file": "generative_service.bidi_generate_content.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BidiGenerateContent", - "fullName": "google.ai.generativelanguage.v1alpha.GenerativeService.BidiGenerateContent", - "async": true, - "parameters": [ - { - "name": "setup", - "type": ".google.ai.generativelanguage.v1alpha.BidiGenerateContentSetup" - }, - { - "name": "client_content", - "type": ".google.ai.generativelanguage.v1alpha.BidiGenerateContentClientContent" - }, - { - "name": "realtime_input", - "type": ".google.ai.generativelanguage.v1alpha.BidiGenerateContentRealtimeInput" - }, - { - "name": "tool_response", - "type": ".google.ai.generativelanguage.v1alpha.BidiGenerateContentToolResponse" - } - ], - "resultType": ".google.ai.generativelanguage.v1alpha.BidiGenerateContentServerMessage", - "client": { - "shortName": "GenerativeServiceClient", - "fullName": "google.ai.generativelanguage.v1alpha.GenerativeServiceClient" - }, - "method": { - "shortName": "BidiGenerateContent", - "fullName": "google.ai.generativelanguage.v1alpha.GenerativeService.BidiGenerateContent", - "service": { - "shortName": "GenerativeService", - "fullName": "google.ai.generativelanguage.v1alpha.GenerativeService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1alpha_generated_ModelService_GetModel_async", - "title": "CacheService getModel Sample", - "origin": "API_DEFINITION", - "description": " Gets information about a specific `Model` such as its version number, token limits, [parameters](https://ai.google.dev/gemini-api/docs/models/generative-models#model-parameters) and other metadata. Refer to the [Gemini models guide](https://ai.google.dev/gemini-api/docs/models/gemini) for detailed model information.", - "canonical": true, - "file": "model_service.get_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetModel", - "fullName": "google.ai.generativelanguage.v1alpha.ModelService.GetModel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ai.generativelanguage.v1alpha.Model", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.ai.generativelanguage.v1alpha.ModelServiceClient" - }, - "method": { - "shortName": "GetModel", - "fullName": "google.ai.generativelanguage.v1alpha.ModelService.GetModel", - "service": { - "shortName": "ModelService", - "fullName": "google.ai.generativelanguage.v1alpha.ModelService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1alpha_generated_ModelService_ListModels_async", - "title": "CacheService listModels Sample", - "origin": "API_DEFINITION", - "description": " Lists the [`Model`s](https://ai.google.dev/gemini-api/docs/models/gemini) available through the Gemini API.", - "canonical": true, - "file": "model_service.list_models.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListModels", - "fullName": "google.ai.generativelanguage.v1alpha.ModelService.ListModels", - "async": true, - "parameters": [ - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ai.generativelanguage.v1alpha.ListModelsResponse", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.ai.generativelanguage.v1alpha.ModelServiceClient" - }, - "method": { - "shortName": "ListModels", - "fullName": "google.ai.generativelanguage.v1alpha.ModelService.ListModels", - "service": { - "shortName": "ModelService", - "fullName": "google.ai.generativelanguage.v1alpha.ModelService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1alpha_generated_ModelService_GetTunedModel_async", - "title": "CacheService getTunedModel Sample", - "origin": "API_DEFINITION", - "description": " Gets information about a specific TunedModel.", - "canonical": true, - "file": "model_service.get_tuned_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTunedModel", - "fullName": "google.ai.generativelanguage.v1alpha.ModelService.GetTunedModel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ai.generativelanguage.v1alpha.TunedModel", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.ai.generativelanguage.v1alpha.ModelServiceClient" - }, - "method": { - "shortName": "GetTunedModel", - "fullName": "google.ai.generativelanguage.v1alpha.ModelService.GetTunedModel", - "service": { - "shortName": "ModelService", - "fullName": "google.ai.generativelanguage.v1alpha.ModelService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1alpha_generated_ModelService_ListTunedModels_async", - "title": "CacheService listTunedModels Sample", - "origin": "API_DEFINITION", - "description": " Lists created tuned models.", - "canonical": true, - "file": "model_service.list_tuned_models.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTunedModels", - "fullName": "google.ai.generativelanguage.v1alpha.ModelService.ListTunedModels", - "async": true, - "parameters": [ - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ai.generativelanguage.v1alpha.ListTunedModelsResponse", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.ai.generativelanguage.v1alpha.ModelServiceClient" - }, - "method": { - "shortName": "ListTunedModels", - "fullName": "google.ai.generativelanguage.v1alpha.ModelService.ListTunedModels", - "service": { - "shortName": "ModelService", - "fullName": "google.ai.generativelanguage.v1alpha.ModelService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1alpha_generated_ModelService_CreateTunedModel_async", - "title": "CacheService createTunedModel Sample", - "origin": "API_DEFINITION", - "description": " Creates a tuned model. Check intermediate tuning progress (if any) through the [google.longrunning.Operations] service. Access status and results through the Operations service. Example: GET /v1/tunedModels/az2mb0bpw6i/operations/000-111-222", - "canonical": true, - "file": "model_service.create_tuned_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTunedModel", - "fullName": "google.ai.generativelanguage.v1alpha.ModelService.CreateTunedModel", - "async": true, - "parameters": [ - { - "name": "tuned_model_id", - "type": "TYPE_STRING" - }, - { - "name": "tuned_model", - "type": ".google.ai.generativelanguage.v1alpha.TunedModel" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.ai.generativelanguage.v1alpha.ModelServiceClient" - }, - "method": { - "shortName": "CreateTunedModel", - "fullName": "google.ai.generativelanguage.v1alpha.ModelService.CreateTunedModel", - "service": { - "shortName": "ModelService", - "fullName": "google.ai.generativelanguage.v1alpha.ModelService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1alpha_generated_ModelService_UpdateTunedModel_async", - "title": "CacheService updateTunedModel Sample", - "origin": "API_DEFINITION", - "description": " Updates a tuned model.", - "canonical": true, - "file": "model_service.update_tuned_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTunedModel", - "fullName": "google.ai.generativelanguage.v1alpha.ModelService.UpdateTunedModel", - "async": true, - "parameters": [ - { - "name": "tuned_model", - "type": ".google.ai.generativelanguage.v1alpha.TunedModel" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.ai.generativelanguage.v1alpha.TunedModel", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.ai.generativelanguage.v1alpha.ModelServiceClient" - }, - "method": { - "shortName": "UpdateTunedModel", - "fullName": "google.ai.generativelanguage.v1alpha.ModelService.UpdateTunedModel", - "service": { - "shortName": "ModelService", - "fullName": "google.ai.generativelanguage.v1alpha.ModelService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1alpha_generated_ModelService_DeleteTunedModel_async", - "title": "CacheService deleteTunedModel Sample", - "origin": "API_DEFINITION", - "description": " Deletes a tuned model.", - "canonical": true, - "file": "model_service.delete_tuned_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTunedModel", - "fullName": "google.ai.generativelanguage.v1alpha.ModelService.DeleteTunedModel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.ai.generativelanguage.v1alpha.ModelServiceClient" - }, - "method": { - "shortName": "DeleteTunedModel", - "fullName": "google.ai.generativelanguage.v1alpha.ModelService.DeleteTunedModel", - "service": { - "shortName": "ModelService", - "fullName": "google.ai.generativelanguage.v1alpha.ModelService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1alpha_generated_PermissionService_CreatePermission_async", - "title": "CacheService createPermission Sample", - "origin": "API_DEFINITION", - "description": " Create a permission to a specific resource.", - "canonical": true, - "file": "permission_service.create_permission.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreatePermission", - "fullName": "google.ai.generativelanguage.v1alpha.PermissionService.CreatePermission", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "permission", - "type": ".google.ai.generativelanguage.v1alpha.Permission" - } - ], - "resultType": ".google.ai.generativelanguage.v1alpha.Permission", - "client": { - "shortName": "PermissionServiceClient", - "fullName": "google.ai.generativelanguage.v1alpha.PermissionServiceClient" - }, - "method": { - "shortName": "CreatePermission", - "fullName": "google.ai.generativelanguage.v1alpha.PermissionService.CreatePermission", - "service": { - "shortName": "PermissionService", - "fullName": "google.ai.generativelanguage.v1alpha.PermissionService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1alpha_generated_PermissionService_GetPermission_async", - "title": "CacheService getPermission Sample", - "origin": "API_DEFINITION", - "description": " Gets information about a specific Permission.", - "canonical": true, - "file": "permission_service.get_permission.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPermission", - "fullName": "google.ai.generativelanguage.v1alpha.PermissionService.GetPermission", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ai.generativelanguage.v1alpha.Permission", - "client": { - "shortName": "PermissionServiceClient", - "fullName": "google.ai.generativelanguage.v1alpha.PermissionServiceClient" - }, - "method": { - "shortName": "GetPermission", - "fullName": "google.ai.generativelanguage.v1alpha.PermissionService.GetPermission", - "service": { - "shortName": "PermissionService", - "fullName": "google.ai.generativelanguage.v1alpha.PermissionService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1alpha_generated_PermissionService_ListPermissions_async", - "title": "CacheService listPermissions Sample", - "origin": "API_DEFINITION", - "description": " Lists permissions for the specific resource.", - "canonical": true, - "file": "permission_service.list_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPermissions", - "fullName": "google.ai.generativelanguage.v1alpha.PermissionService.ListPermissions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ai.generativelanguage.v1alpha.ListPermissionsResponse", - "client": { - "shortName": "PermissionServiceClient", - "fullName": "google.ai.generativelanguage.v1alpha.PermissionServiceClient" - }, - "method": { - "shortName": "ListPermissions", - "fullName": "google.ai.generativelanguage.v1alpha.PermissionService.ListPermissions", - "service": { - "shortName": "PermissionService", - "fullName": "google.ai.generativelanguage.v1alpha.PermissionService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1alpha_generated_PermissionService_UpdatePermission_async", - "title": "CacheService updatePermission Sample", - "origin": "API_DEFINITION", - "description": " Updates the permission.", - "canonical": true, - "file": "permission_service.update_permission.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdatePermission", - "fullName": "google.ai.generativelanguage.v1alpha.PermissionService.UpdatePermission", - "async": true, - "parameters": [ - { - "name": "permission", - "type": ".google.ai.generativelanguage.v1alpha.Permission" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.ai.generativelanguage.v1alpha.Permission", - "client": { - "shortName": "PermissionServiceClient", - "fullName": "google.ai.generativelanguage.v1alpha.PermissionServiceClient" - }, - "method": { - "shortName": "UpdatePermission", - "fullName": "google.ai.generativelanguage.v1alpha.PermissionService.UpdatePermission", - "service": { - "shortName": "PermissionService", - "fullName": "google.ai.generativelanguage.v1alpha.PermissionService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1alpha_generated_PermissionService_DeletePermission_async", - "title": "CacheService deletePermission Sample", - "origin": "API_DEFINITION", - "description": " Deletes the permission.", - "canonical": true, - "file": "permission_service.delete_permission.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePermission", - "fullName": "google.ai.generativelanguage.v1alpha.PermissionService.DeletePermission", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "PermissionServiceClient", - "fullName": "google.ai.generativelanguage.v1alpha.PermissionServiceClient" - }, - "method": { - "shortName": "DeletePermission", - "fullName": "google.ai.generativelanguage.v1alpha.PermissionService.DeletePermission", - "service": { - "shortName": "PermissionService", - "fullName": "google.ai.generativelanguage.v1alpha.PermissionService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1alpha_generated_PermissionService_TransferOwnership_async", - "title": "CacheService transferOwnership Sample", - "origin": "API_DEFINITION", - "description": " Transfers ownership of the tuned model. This is the only way to change ownership of the tuned model. The current owner will be downgraded to writer role.", - "canonical": true, - "file": "permission_service.transfer_ownership.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TransferOwnership", - "fullName": "google.ai.generativelanguage.v1alpha.PermissionService.TransferOwnership", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "email_address", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ai.generativelanguage.v1alpha.TransferOwnershipResponse", - "client": { - "shortName": "PermissionServiceClient", - "fullName": "google.ai.generativelanguage.v1alpha.PermissionServiceClient" - }, - "method": { - "shortName": "TransferOwnership", - "fullName": "google.ai.generativelanguage.v1alpha.PermissionService.TransferOwnership", - "service": { - "shortName": "PermissionService", - "fullName": "google.ai.generativelanguage.v1alpha.PermissionService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1alpha_generated_PredictionService_Predict_async", - "title": "CacheService predict Sample", - "origin": "API_DEFINITION", - "description": " Performs a prediction request.", - "canonical": true, - "file": "prediction_service.predict.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Predict", - "fullName": "google.ai.generativelanguage.v1alpha.PredictionService.Predict", - "async": true, - "parameters": [ - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "instances", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "parameters", - "type": ".google.protobuf.Value" - } - ], - "resultType": ".google.ai.generativelanguage.v1alpha.PredictResponse", - "client": { - "shortName": "PredictionServiceClient", - "fullName": "google.ai.generativelanguage.v1alpha.PredictionServiceClient" - }, - "method": { - "shortName": "Predict", - "fullName": "google.ai.generativelanguage.v1alpha.PredictionService.Predict", - "service": { - "shortName": "PredictionService", - "fullName": "google.ai.generativelanguage.v1alpha.PredictionService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1alpha_generated_RetrieverService_CreateCorpus_async", - "title": "CacheService createCorpus Sample", - "origin": "API_DEFINITION", - "description": " Creates an empty `Corpus`.", - "canonical": true, - "file": "retriever_service.create_corpus.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCorpus", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverService.CreateCorpus", - "async": true, - "parameters": [ - { - "name": "corpus", - "type": ".google.ai.generativelanguage.v1alpha.Corpus" - } - ], - "resultType": ".google.ai.generativelanguage.v1alpha.Corpus", - "client": { - "shortName": "RetrieverServiceClient", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverServiceClient" - }, - "method": { - "shortName": "CreateCorpus", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverService.CreateCorpus", - "service": { - "shortName": "RetrieverService", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1alpha_generated_RetrieverService_GetCorpus_async", - "title": "CacheService getCorpus Sample", - "origin": "API_DEFINITION", - "description": " Gets information about a specific `Corpus`.", - "canonical": true, - "file": "retriever_service.get_corpus.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCorpus", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverService.GetCorpus", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ai.generativelanguage.v1alpha.Corpus", - "client": { - "shortName": "RetrieverServiceClient", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverServiceClient" - }, - "method": { - "shortName": "GetCorpus", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverService.GetCorpus", - "service": { - "shortName": "RetrieverService", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1alpha_generated_RetrieverService_UpdateCorpus_async", - "title": "CacheService updateCorpus Sample", - "origin": "API_DEFINITION", - "description": " Updates a `Corpus`.", - "canonical": true, - "file": "retriever_service.update_corpus.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCorpus", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverService.UpdateCorpus", - "async": true, - "parameters": [ - { - "name": "corpus", - "type": ".google.ai.generativelanguage.v1alpha.Corpus" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.ai.generativelanguage.v1alpha.Corpus", - "client": { - "shortName": "RetrieverServiceClient", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverServiceClient" - }, - "method": { - "shortName": "UpdateCorpus", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverService.UpdateCorpus", - "service": { - "shortName": "RetrieverService", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1alpha_generated_RetrieverService_DeleteCorpus_async", - "title": "CacheService deleteCorpus Sample", - "origin": "API_DEFINITION", - "description": " Deletes a `Corpus`.", - "canonical": true, - "file": "retriever_service.delete_corpus.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCorpus", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverService.DeleteCorpus", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "RetrieverServiceClient", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverServiceClient" - }, - "method": { - "shortName": "DeleteCorpus", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverService.DeleteCorpus", - "service": { - "shortName": "RetrieverService", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1alpha_generated_RetrieverService_ListCorpora_async", - "title": "CacheService listCorpora Sample", - "origin": "API_DEFINITION", - "description": " Lists all `Corpora` owned by the user.", - "canonical": true, - "file": "retriever_service.list_corpora.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCorpora", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverService.ListCorpora", - "async": true, - "parameters": [ - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ai.generativelanguage.v1alpha.ListCorporaResponse", - "client": { - "shortName": "RetrieverServiceClient", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverServiceClient" - }, - "method": { - "shortName": "ListCorpora", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverService.ListCorpora", - "service": { - "shortName": "RetrieverService", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1alpha_generated_RetrieverService_QueryCorpus_async", - "title": "CacheService queryCorpus Sample", - "origin": "API_DEFINITION", - "description": " Performs semantic search over a `Corpus`.", - "canonical": true, - "file": "retriever_service.query_corpus.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 95, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryCorpus", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverService.QueryCorpus", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": "TYPE_STRING" - }, - { - "name": "metadata_filters", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "results_count", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.ai.generativelanguage.v1alpha.QueryCorpusResponse", - "client": { - "shortName": "RetrieverServiceClient", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverServiceClient" - }, - "method": { - "shortName": "QueryCorpus", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverService.QueryCorpus", - "service": { - "shortName": "RetrieverService", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1alpha_generated_RetrieverService_CreateDocument_async", - "title": "CacheService createDocument Sample", - "origin": "API_DEFINITION", - "description": " Creates an empty `Document`.", - "canonical": true, - "file": "retriever_service.create_document.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDocument", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverService.CreateDocument", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "document", - "type": ".google.ai.generativelanguage.v1alpha.Document" - } - ], - "resultType": ".google.ai.generativelanguage.v1alpha.Document", - "client": { - "shortName": "RetrieverServiceClient", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverServiceClient" - }, - "method": { - "shortName": "CreateDocument", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverService.CreateDocument", - "service": { - "shortName": "RetrieverService", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1alpha_generated_RetrieverService_GetDocument_async", - "title": "CacheService getDocument Sample", - "origin": "API_DEFINITION", - "description": " Gets information about a specific `Document`.", - "canonical": true, - "file": "retriever_service.get_document.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDocument", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverService.GetDocument", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ai.generativelanguage.v1alpha.Document", - "client": { - "shortName": "RetrieverServiceClient", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverServiceClient" - }, - "method": { - "shortName": "GetDocument", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverService.GetDocument", - "service": { - "shortName": "RetrieverService", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1alpha_generated_RetrieverService_UpdateDocument_async", - "title": "CacheService updateDocument Sample", - "origin": "API_DEFINITION", - "description": " Updates a `Document`.", - "canonical": true, - "file": "retriever_service.update_document.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDocument", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverService.UpdateDocument", - "async": true, - "parameters": [ - { - "name": "document", - "type": ".google.ai.generativelanguage.v1alpha.Document" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.ai.generativelanguage.v1alpha.Document", - "client": { - "shortName": "RetrieverServiceClient", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverServiceClient" - }, - "method": { - "shortName": "UpdateDocument", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverService.UpdateDocument", - "service": { - "shortName": "RetrieverService", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1alpha_generated_RetrieverService_DeleteDocument_async", - "title": "CacheService deleteDocument Sample", - "origin": "API_DEFINITION", - "description": " Deletes a `Document`.", - "canonical": true, - "file": "retriever_service.delete_document.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDocument", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverService.DeleteDocument", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "RetrieverServiceClient", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverServiceClient" - }, - "method": { - "shortName": "DeleteDocument", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverService.DeleteDocument", - "service": { - "shortName": "RetrieverService", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1alpha_generated_RetrieverService_ListDocuments_async", - "title": "CacheService listDocuments Sample", - "origin": "API_DEFINITION", - "description": " Lists all `Document`s in a `Corpus`.", - "canonical": true, - "file": "retriever_service.list_documents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDocuments", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverService.ListDocuments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ai.generativelanguage.v1alpha.ListDocumentsResponse", - "client": { - "shortName": "RetrieverServiceClient", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverServiceClient" - }, - "method": { - "shortName": "ListDocuments", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverService.ListDocuments", - "service": { - "shortName": "RetrieverService", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1alpha_generated_RetrieverService_QueryDocument_async", - "title": "CacheService queryDocument Sample", - "origin": "API_DEFINITION", - "description": " Performs semantic search over a `Document`.", - "canonical": true, - "file": "retriever_service.query_document.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 94, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryDocument", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverService.QueryDocument", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": "TYPE_STRING" - }, - { - "name": "results_count", - "type": "TYPE_INT32" - }, - { - "name": "metadata_filters", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.ai.generativelanguage.v1alpha.QueryDocumentResponse", - "client": { - "shortName": "RetrieverServiceClient", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverServiceClient" - }, - "method": { - "shortName": "QueryDocument", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverService.QueryDocument", - "service": { - "shortName": "RetrieverService", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1alpha_generated_RetrieverService_CreateChunk_async", - "title": "CacheService createChunk Sample", - "origin": "API_DEFINITION", - "description": " Creates a `Chunk`.", - "canonical": true, - "file": "retriever_service.create_chunk.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateChunk", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverService.CreateChunk", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "chunk", - "type": ".google.ai.generativelanguage.v1alpha.Chunk" - } - ], - "resultType": ".google.ai.generativelanguage.v1alpha.Chunk", - "client": { - "shortName": "RetrieverServiceClient", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverServiceClient" - }, - "method": { - "shortName": "CreateChunk", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverService.CreateChunk", - "service": { - "shortName": "RetrieverService", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1alpha_generated_RetrieverService_BatchCreateChunks_async", - "title": "CacheService batchCreateChunks Sample", - "origin": "API_DEFINITION", - "description": " Batch create `Chunk`s.", - "canonical": true, - "file": "retriever_service.batch_create_chunks.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCreateChunks", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverService.BatchCreateChunks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.ai.generativelanguage.v1alpha.BatchCreateChunksResponse", - "client": { - "shortName": "RetrieverServiceClient", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverServiceClient" - }, - "method": { - "shortName": "BatchCreateChunks", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverService.BatchCreateChunks", - "service": { - "shortName": "RetrieverService", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1alpha_generated_RetrieverService_GetChunk_async", - "title": "CacheService getChunk Sample", - "origin": "API_DEFINITION", - "description": " Gets information about a specific `Chunk`.", - "canonical": true, - "file": "retriever_service.get_chunk.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetChunk", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverService.GetChunk", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ai.generativelanguage.v1alpha.Chunk", - "client": { - "shortName": "RetrieverServiceClient", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverServiceClient" - }, - "method": { - "shortName": "GetChunk", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverService.GetChunk", - "service": { - "shortName": "RetrieverService", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1alpha_generated_RetrieverService_UpdateChunk_async", - "title": "CacheService updateChunk Sample", - "origin": "API_DEFINITION", - "description": " Updates a `Chunk`.", - "canonical": true, - "file": "retriever_service.update_chunk.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateChunk", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverService.UpdateChunk", - "async": true, - "parameters": [ - { - "name": "chunk", - "type": ".google.ai.generativelanguage.v1alpha.Chunk" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.ai.generativelanguage.v1alpha.Chunk", - "client": { - "shortName": "RetrieverServiceClient", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverServiceClient" - }, - "method": { - "shortName": "UpdateChunk", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverService.UpdateChunk", - "service": { - "shortName": "RetrieverService", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1alpha_generated_RetrieverService_BatchUpdateChunks_async", - "title": "CacheService batchUpdateChunks Sample", - "origin": "API_DEFINITION", - "description": " Batch update `Chunk`s.", - "canonical": true, - "file": "retriever_service.batch_update_chunks.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchUpdateChunks", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverService.BatchUpdateChunks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.ai.generativelanguage.v1alpha.BatchUpdateChunksResponse", - "client": { - "shortName": "RetrieverServiceClient", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverServiceClient" - }, - "method": { - "shortName": "BatchUpdateChunks", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverService.BatchUpdateChunks", - "service": { - "shortName": "RetrieverService", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1alpha_generated_RetrieverService_DeleteChunk_async", - "title": "CacheService deleteChunk Sample", - "origin": "API_DEFINITION", - "description": " Deletes a `Chunk`.", - "canonical": true, - "file": "retriever_service.delete_chunk.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteChunk", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverService.DeleteChunk", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "RetrieverServiceClient", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverServiceClient" - }, - "method": { - "shortName": "DeleteChunk", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverService.DeleteChunk", - "service": { - "shortName": "RetrieverService", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1alpha_generated_RetrieverService_BatchDeleteChunks_async", - "title": "CacheService batchDeleteChunks Sample", - "origin": "API_DEFINITION", - "description": " Batch delete `Chunk`s.", - "canonical": true, - "file": "retriever_service.batch_delete_chunks.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchDeleteChunks", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverService.BatchDeleteChunks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "RetrieverServiceClient", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverServiceClient" - }, - "method": { - "shortName": "BatchDeleteChunks", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverService.BatchDeleteChunks", - "service": { - "shortName": "RetrieverService", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1alpha_generated_RetrieverService_ListChunks_async", - "title": "CacheService listChunks Sample", - "origin": "API_DEFINITION", - "description": " Lists all `Chunk`s in a `Document`.", - "canonical": true, - "file": "retriever_service.list_chunks.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListChunks", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverService.ListChunks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ai.generativelanguage.v1alpha.ListChunksResponse", - "client": { - "shortName": "RetrieverServiceClient", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverServiceClient" - }, - "method": { - "shortName": "ListChunks", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverService.ListChunks", - "service": { - "shortName": "RetrieverService", - "fullName": "google.ai.generativelanguage.v1alpha.RetrieverService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1alpha_generated_TextService_GenerateText_async", - "title": "CacheService generateText Sample", - "origin": "API_DEFINITION", - "description": " Generates a response from the model given an input message.", - "canonical": true, - "file": "text_service.generate_text.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 129, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateText", - "fullName": "google.ai.generativelanguage.v1alpha.TextService.GenerateText", - "async": true, - "parameters": [ - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "prompt", - "type": ".google.ai.generativelanguage.v1alpha.TextPrompt" - }, - { - "name": "temperature", - "type": "TYPE_FLOAT" - }, - { - "name": "candidate_count", - "type": "TYPE_INT32" - }, - { - "name": "max_output_tokens", - "type": "TYPE_INT32" - }, - { - "name": "top_p", - "type": "TYPE_FLOAT" - }, - { - "name": "top_k", - "type": "TYPE_INT32" - }, - { - "name": "safety_settings", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "stop_sequences", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.ai.generativelanguage.v1alpha.GenerateTextResponse", - "client": { - "shortName": "TextServiceClient", - "fullName": "google.ai.generativelanguage.v1alpha.TextServiceClient" - }, - "method": { - "shortName": "GenerateText", - "fullName": "google.ai.generativelanguage.v1alpha.TextService.GenerateText", - "service": { - "shortName": "TextService", - "fullName": "google.ai.generativelanguage.v1alpha.TextService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1alpha_generated_TextService_EmbedText_async", - "title": "CacheService embedText Sample", - "origin": "API_DEFINITION", - "description": " Generates an embedding from the model given an input message.", - "canonical": true, - "file": "text_service.embed_text.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "EmbedText", - "fullName": "google.ai.generativelanguage.v1alpha.TextService.EmbedText", - "async": true, - "parameters": [ - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "text", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ai.generativelanguage.v1alpha.EmbedTextResponse", - "client": { - "shortName": "TextServiceClient", - "fullName": "google.ai.generativelanguage.v1alpha.TextServiceClient" - }, - "method": { - "shortName": "EmbedText", - "fullName": "google.ai.generativelanguage.v1alpha.TextService.EmbedText", - "service": { - "shortName": "TextService", - "fullName": "google.ai.generativelanguage.v1alpha.TextService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1alpha_generated_TextService_BatchEmbedText_async", - "title": "CacheService batchEmbedText Sample", - "origin": "API_DEFINITION", - "description": " Generates multiple embeddings from the model given input text in a synchronous call.", - "canonical": true, - "file": "text_service.batch_embed_text.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchEmbedText", - "fullName": "google.ai.generativelanguage.v1alpha.TextService.BatchEmbedText", - "async": true, - "parameters": [ - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "texts", - "type": "TYPE_STRING[]" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.ai.generativelanguage.v1alpha.BatchEmbedTextResponse", - "client": { - "shortName": "TextServiceClient", - "fullName": "google.ai.generativelanguage.v1alpha.TextServiceClient" - }, - "method": { - "shortName": "BatchEmbedText", - "fullName": "google.ai.generativelanguage.v1alpha.TextService.BatchEmbedText", - "service": { - "shortName": "TextService", - "fullName": "google.ai.generativelanguage.v1alpha.TextService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1alpha_generated_TextService_CountTextTokens_async", - "title": "CacheService countTextTokens Sample", - "origin": "API_DEFINITION", - "description": " Runs a model's tokenizer on a text and returns the token count.", - "canonical": true, - "file": "text_service.count_text_tokens.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CountTextTokens", - "fullName": "google.ai.generativelanguage.v1alpha.TextService.CountTextTokens", - "async": true, - "parameters": [ - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "prompt", - "type": ".google.ai.generativelanguage.v1alpha.TextPrompt" - } - ], - "resultType": ".google.ai.generativelanguage.v1alpha.CountTextTokensResponse", - "client": { - "shortName": "TextServiceClient", - "fullName": "google.ai.generativelanguage.v1alpha.TextServiceClient" - }, - "method": { - "shortName": "CountTextTokens", - "fullName": "google.ai.generativelanguage.v1alpha.TextService.CountTextTokens", - "service": { - "shortName": "TextService", - "fullName": "google.ai.generativelanguage.v1alpha.TextService" - } - } - } - } - ] -} diff --git a/packages/google-ai-generativelanguage/samples/generated/v1beta/snippet_metadata_google.ai.generativelanguage.v1beta.json b/packages/google-ai-generativelanguage/samples/generated/v1beta/snippet_metadata_google.ai.generativelanguage.v1beta.json deleted file mode 100644 index 2e1082d63d77..000000000000 --- a/packages/google-ai-generativelanguage/samples/generated/v1beta/snippet_metadata_google.ai.generativelanguage.v1beta.json +++ /dev/null @@ -1,2679 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-generativelanguage", - "version": "3.7.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.ai.generativelanguage.v1beta", - "version": "v1beta" - } - ] - }, - "snippets": [ - { - "regionTag": "generativelanguage_v1beta_generated_CacheService_ListCachedContents_async", - "title": "CacheService listCachedContents Sample", - "origin": "API_DEFINITION", - "description": " Lists CachedContents.", - "canonical": true, - "file": "cache_service.list_cached_contents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCachedContents", - "fullName": "google.ai.generativelanguage.v1beta.CacheService.ListCachedContents", - "async": true, - "parameters": [ - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta.ListCachedContentsResponse", - "client": { - "shortName": "CacheServiceClient", - "fullName": "google.ai.generativelanguage.v1beta.CacheServiceClient" - }, - "method": { - "shortName": "ListCachedContents", - "fullName": "google.ai.generativelanguage.v1beta.CacheService.ListCachedContents", - "service": { - "shortName": "CacheService", - "fullName": "google.ai.generativelanguage.v1beta.CacheService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta_generated_CacheService_CreateCachedContent_async", - "title": "CacheService createCachedContent Sample", - "origin": "API_DEFINITION", - "description": " Creates CachedContent resource.", - "canonical": true, - "file": "cache_service.create_cached_content.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCachedContent", - "fullName": "google.ai.generativelanguage.v1beta.CacheService.CreateCachedContent", - "async": true, - "parameters": [ - { - "name": "cached_content", - "type": ".google.ai.generativelanguage.v1beta.CachedContent" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta.CachedContent", - "client": { - "shortName": "CacheServiceClient", - "fullName": "google.ai.generativelanguage.v1beta.CacheServiceClient" - }, - "method": { - "shortName": "CreateCachedContent", - "fullName": "google.ai.generativelanguage.v1beta.CacheService.CreateCachedContent", - "service": { - "shortName": "CacheService", - "fullName": "google.ai.generativelanguage.v1beta.CacheService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta_generated_CacheService_GetCachedContent_async", - "title": "CacheService getCachedContent Sample", - "origin": "API_DEFINITION", - "description": " Reads CachedContent resource.", - "canonical": true, - "file": "cache_service.get_cached_content.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCachedContent", - "fullName": "google.ai.generativelanguage.v1beta.CacheService.GetCachedContent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta.CachedContent", - "client": { - "shortName": "CacheServiceClient", - "fullName": "google.ai.generativelanguage.v1beta.CacheServiceClient" - }, - "method": { - "shortName": "GetCachedContent", - "fullName": "google.ai.generativelanguage.v1beta.CacheService.GetCachedContent", - "service": { - "shortName": "CacheService", - "fullName": "google.ai.generativelanguage.v1beta.CacheService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta_generated_CacheService_UpdateCachedContent_async", - "title": "CacheService updateCachedContent Sample", - "origin": "API_DEFINITION", - "description": " Updates CachedContent resource (only expiration is updatable).", - "canonical": true, - "file": "cache_service.update_cached_content.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCachedContent", - "fullName": "google.ai.generativelanguage.v1beta.CacheService.UpdateCachedContent", - "async": true, - "parameters": [ - { - "name": "cached_content", - "type": ".google.ai.generativelanguage.v1beta.CachedContent" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta.CachedContent", - "client": { - "shortName": "CacheServiceClient", - "fullName": "google.ai.generativelanguage.v1beta.CacheServiceClient" - }, - "method": { - "shortName": "UpdateCachedContent", - "fullName": "google.ai.generativelanguage.v1beta.CacheService.UpdateCachedContent", - "service": { - "shortName": "CacheService", - "fullName": "google.ai.generativelanguage.v1beta.CacheService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta_generated_CacheService_DeleteCachedContent_async", - "title": "CacheService deleteCachedContent Sample", - "origin": "API_DEFINITION", - "description": " Deletes CachedContent resource.", - "canonical": true, - "file": "cache_service.delete_cached_content.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCachedContent", - "fullName": "google.ai.generativelanguage.v1beta.CacheService.DeleteCachedContent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "CacheServiceClient", - "fullName": "google.ai.generativelanguage.v1beta.CacheServiceClient" - }, - "method": { - "shortName": "DeleteCachedContent", - "fullName": "google.ai.generativelanguage.v1beta.CacheService.DeleteCachedContent", - "service": { - "shortName": "CacheService", - "fullName": "google.ai.generativelanguage.v1beta.CacheService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta_generated_DiscussService_GenerateMessage_async", - "title": "CacheService generateMessage Sample", - "origin": "API_DEFINITION", - "description": " Generates a response from the model given an input `MessagePrompt`.", - "canonical": true, - "file": "discuss_service.generate_message.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 90, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateMessage", - "fullName": "google.ai.generativelanguage.v1beta.DiscussService.GenerateMessage", - "async": true, - "parameters": [ - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "prompt", - "type": ".google.ai.generativelanguage.v1beta.MessagePrompt" - }, - { - "name": "temperature", - "type": "TYPE_FLOAT" - }, - { - "name": "candidate_count", - "type": "TYPE_INT32" - }, - { - "name": "top_p", - "type": "TYPE_FLOAT" - }, - { - "name": "top_k", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta.GenerateMessageResponse", - "client": { - "shortName": "DiscussServiceClient", - "fullName": "google.ai.generativelanguage.v1beta.DiscussServiceClient" - }, - "method": { - "shortName": "GenerateMessage", - "fullName": "google.ai.generativelanguage.v1beta.DiscussService.GenerateMessage", - "service": { - "shortName": "DiscussService", - "fullName": "google.ai.generativelanguage.v1beta.DiscussService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta_generated_DiscussService_CountMessageTokens_async", - "title": "CacheService countMessageTokens Sample", - "origin": "API_DEFINITION", - "description": " Runs a model's tokenizer on a string and returns the token count.", - "canonical": true, - "file": "discuss_service.count_message_tokens.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CountMessageTokens", - "fullName": "google.ai.generativelanguage.v1beta.DiscussService.CountMessageTokens", - "async": true, - "parameters": [ - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "prompt", - "type": ".google.ai.generativelanguage.v1beta.MessagePrompt" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta.CountMessageTokensResponse", - "client": { - "shortName": "DiscussServiceClient", - "fullName": "google.ai.generativelanguage.v1beta.DiscussServiceClient" - }, - "method": { - "shortName": "CountMessageTokens", - "fullName": "google.ai.generativelanguage.v1beta.DiscussService.CountMessageTokens", - "service": { - "shortName": "DiscussService", - "fullName": "google.ai.generativelanguage.v1beta.DiscussService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta_generated_FileService_CreateFile_async", - "title": "CacheService createFile Sample", - "origin": "API_DEFINITION", - "description": " Creates a `File`.", - "canonical": true, - "file": "file_service.create_file.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 52, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateFile", - "fullName": "google.ai.generativelanguage.v1beta.FileService.CreateFile", - "async": true, - "parameters": [ - { - "name": "file", - "type": ".google.ai.generativelanguage.v1beta.File" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta.CreateFileResponse", - "client": { - "shortName": "FileServiceClient", - "fullName": "google.ai.generativelanguage.v1beta.FileServiceClient" - }, - "method": { - "shortName": "CreateFile", - "fullName": "google.ai.generativelanguage.v1beta.FileService.CreateFile", - "service": { - "shortName": "FileService", - "fullName": "google.ai.generativelanguage.v1beta.FileService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta_generated_FileService_ListFiles_async", - "title": "CacheService listFiles Sample", - "origin": "API_DEFINITION", - "description": " Lists the metadata for `File`s owned by the requesting project.", - "canonical": true, - "file": "file_service.list_files.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFiles", - "fullName": "google.ai.generativelanguage.v1beta.FileService.ListFiles", - "async": true, - "parameters": [ - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta.ListFilesResponse", - "client": { - "shortName": "FileServiceClient", - "fullName": "google.ai.generativelanguage.v1beta.FileServiceClient" - }, - "method": { - "shortName": "ListFiles", - "fullName": "google.ai.generativelanguage.v1beta.FileService.ListFiles", - "service": { - "shortName": "FileService", - "fullName": "google.ai.generativelanguage.v1beta.FileService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta_generated_FileService_GetFile_async", - "title": "CacheService getFile Sample", - "origin": "API_DEFINITION", - "description": " Gets the metadata for the given `File`.", - "canonical": true, - "file": "file_service.get_file.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFile", - "fullName": "google.ai.generativelanguage.v1beta.FileService.GetFile", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta.File", - "client": { - "shortName": "FileServiceClient", - "fullName": "google.ai.generativelanguage.v1beta.FileServiceClient" - }, - "method": { - "shortName": "GetFile", - "fullName": "google.ai.generativelanguage.v1beta.FileService.GetFile", - "service": { - "shortName": "FileService", - "fullName": "google.ai.generativelanguage.v1beta.FileService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta_generated_FileService_DeleteFile_async", - "title": "CacheService deleteFile Sample", - "origin": "API_DEFINITION", - "description": " Deletes the `File`.", - "canonical": true, - "file": "file_service.delete_file.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteFile", - "fullName": "google.ai.generativelanguage.v1beta.FileService.DeleteFile", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "FileServiceClient", - "fullName": "google.ai.generativelanguage.v1beta.FileServiceClient" - }, - "method": { - "shortName": "DeleteFile", - "fullName": "google.ai.generativelanguage.v1beta.FileService.DeleteFile", - "service": { - "shortName": "FileService", - "fullName": "google.ai.generativelanguage.v1beta.FileService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta_generated_FileService_DownloadFile_async", - "title": "CacheService downloadFile Sample", - "origin": "API_DEFINITION", - "description": " Download the `File`.", - "canonical": true, - "file": "file_service.download_file.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DownloadFile", - "fullName": "google.ai.generativelanguage.v1beta.FileService.DownloadFile", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta.DownloadFileResponse", - "client": { - "shortName": "FileServiceClient", - "fullName": "google.ai.generativelanguage.v1beta.FileServiceClient" - }, - "method": { - "shortName": "DownloadFile", - "fullName": "google.ai.generativelanguage.v1beta.FileService.DownloadFile", - "service": { - "shortName": "FileService", - "fullName": "google.ai.generativelanguage.v1beta.FileService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta_generated_GenerativeService_GenerateContent_async", - "title": "CacheService generateContent Sample", - "origin": "API_DEFINITION", - "description": " Generates a model response given an input `GenerateContentRequest`. Refer to the [text generation guide](https://ai.google.dev/gemini-api/docs/text-generation) for detailed usage information. Input capabilities differ between models, including tuned models. Refer to the [model guide](https://ai.google.dev/gemini-api/docs/models/gemini) and [tuning guide](https://ai.google.dev/gemini-api/docs/model-tuning) for details.", - "canonical": true, - "file": "generative_service.generate_content.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 117, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateContent", - "fullName": "google.ai.generativelanguage.v1beta.GenerativeService.GenerateContent", - "async": true, - "parameters": [ - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "system_instruction", - "type": ".google.ai.generativelanguage.v1beta.Content" - }, - { - "name": "contents", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "tools", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "tool_config", - "type": ".google.ai.generativelanguage.v1beta.ToolConfig" - }, - { - "name": "safety_settings", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "generation_config", - "type": ".google.ai.generativelanguage.v1beta.GenerationConfig" - }, - { - "name": "cached_content", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta.GenerateContentResponse", - "client": { - "shortName": "GenerativeServiceClient", - "fullName": "google.ai.generativelanguage.v1beta.GenerativeServiceClient" - }, - "method": { - "shortName": "GenerateContent", - "fullName": "google.ai.generativelanguage.v1beta.GenerativeService.GenerateContent", - "service": { - "shortName": "GenerativeService", - "fullName": "google.ai.generativelanguage.v1beta.GenerativeService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta_generated_GenerativeService_GenerateAnswer_async", - "title": "CacheService generateAnswer Sample", - "origin": "API_DEFINITION", - "description": " Generates a grounded answer from the model given an input `GenerateAnswerRequest`.", - "canonical": true, - "file": "generative_service.generate_answer.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 107, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateAnswer", - "fullName": "google.ai.generativelanguage.v1beta.GenerativeService.GenerateAnswer", - "async": true, - "parameters": [ - { - "name": "inline_passages", - "type": ".google.ai.generativelanguage.v1beta.GroundingPassages" - }, - { - "name": "semantic_retriever", - "type": ".google.ai.generativelanguage.v1beta.SemanticRetrieverConfig" - }, - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "contents", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "answer_style", - "type": ".google.ai.generativelanguage.v1beta.GenerateAnswerRequest.AnswerStyle" - }, - { - "name": "safety_settings", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "temperature", - "type": "TYPE_FLOAT" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta.GenerateAnswerResponse", - "client": { - "shortName": "GenerativeServiceClient", - "fullName": "google.ai.generativelanguage.v1beta.GenerativeServiceClient" - }, - "method": { - "shortName": "GenerateAnswer", - "fullName": "google.ai.generativelanguage.v1beta.GenerativeService.GenerateAnswer", - "service": { - "shortName": "GenerativeService", - "fullName": "google.ai.generativelanguage.v1beta.GenerativeService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta_generated_GenerativeService_StreamGenerateContent_async", - "title": "CacheService streamGenerateContent Sample", - "origin": "API_DEFINITION", - "description": " Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`.", - "canonical": true, - "file": "generative_service.stream_generate_content.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 119, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StreamGenerateContent", - "fullName": "google.ai.generativelanguage.v1beta.GenerativeService.StreamGenerateContent", - "async": true, - "parameters": [ - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "system_instruction", - "type": ".google.ai.generativelanguage.v1beta.Content" - }, - { - "name": "contents", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "tools", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "tool_config", - "type": ".google.ai.generativelanguage.v1beta.ToolConfig" - }, - { - "name": "safety_settings", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "generation_config", - "type": ".google.ai.generativelanguage.v1beta.GenerationConfig" - }, - { - "name": "cached_content", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta.GenerateContentResponse", - "client": { - "shortName": "GenerativeServiceClient", - "fullName": "google.ai.generativelanguage.v1beta.GenerativeServiceClient" - }, - "method": { - "shortName": "StreamGenerateContent", - "fullName": "google.ai.generativelanguage.v1beta.GenerativeService.StreamGenerateContent", - "service": { - "shortName": "GenerativeService", - "fullName": "google.ai.generativelanguage.v1beta.GenerativeService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta_generated_GenerativeService_EmbedContent_async", - "title": "CacheService embedContent Sample", - "origin": "API_DEFINITION", - "description": " Generates a text embedding vector from the input `Content` using the specified [Gemini Embedding model](https://ai.google.dev/gemini-api/docs/models/gemini#text-embedding).", - "canonical": true, - "file": "generative_service.embed_content.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "EmbedContent", - "fullName": "google.ai.generativelanguage.v1beta.GenerativeService.EmbedContent", - "async": true, - "parameters": [ - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "content", - "type": ".google.ai.generativelanguage.v1beta.Content" - }, - { - "name": "task_type", - "type": ".google.ai.generativelanguage.v1beta.TaskType" - }, - { - "name": "title", - "type": "TYPE_STRING" - }, - { - "name": "output_dimensionality", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta.EmbedContentResponse", - "client": { - "shortName": "GenerativeServiceClient", - "fullName": "google.ai.generativelanguage.v1beta.GenerativeServiceClient" - }, - "method": { - "shortName": "EmbedContent", - "fullName": "google.ai.generativelanguage.v1beta.GenerativeService.EmbedContent", - "service": { - "shortName": "GenerativeService", - "fullName": "google.ai.generativelanguage.v1beta.GenerativeService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta_generated_GenerativeService_BatchEmbedContents_async", - "title": "CacheService batchEmbedContents Sample", - "origin": "API_DEFINITION", - "description": " Generates multiple embedding vectors from the input `Content` which consists of a batch of strings represented as `EmbedContentRequest` objects.", - "canonical": true, - "file": "generative_service.batch_embed_contents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchEmbedContents", - "fullName": "google.ai.generativelanguage.v1beta.GenerativeService.BatchEmbedContents", - "async": true, - "parameters": [ - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta.BatchEmbedContentsResponse", - "client": { - "shortName": "GenerativeServiceClient", - "fullName": "google.ai.generativelanguage.v1beta.GenerativeServiceClient" - }, - "method": { - "shortName": "BatchEmbedContents", - "fullName": "google.ai.generativelanguage.v1beta.GenerativeService.BatchEmbedContents", - "service": { - "shortName": "GenerativeService", - "fullName": "google.ai.generativelanguage.v1beta.GenerativeService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta_generated_GenerativeService_CountTokens_async", - "title": "CacheService countTokens Sample", - "origin": "API_DEFINITION", - "description": " Runs a model's tokenizer on input `Content` and returns the token count. Refer to the [tokens guide](https://ai.google.dev/gemini-api/docs/tokens) to learn more about tokens.", - "canonical": true, - "file": "generative_service.count_tokens.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CountTokens", - "fullName": "google.ai.generativelanguage.v1beta.GenerativeService.CountTokens", - "async": true, - "parameters": [ - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "contents", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "generate_content_request", - "type": ".google.ai.generativelanguage.v1beta.GenerateContentRequest" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta.CountTokensResponse", - "client": { - "shortName": "GenerativeServiceClient", - "fullName": "google.ai.generativelanguage.v1beta.GenerativeServiceClient" - }, - "method": { - "shortName": "CountTokens", - "fullName": "google.ai.generativelanguage.v1beta.GenerativeService.CountTokens", - "service": { - "shortName": "GenerativeService", - "fullName": "google.ai.generativelanguage.v1beta.GenerativeService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta_generated_GenerativeService_BidiGenerateContent_async", - "title": "CacheService bidiGenerateContent Sample", - "origin": "API_DEFINITION", - "description": " Low-Latency bidirectional streaming API that supports audio and video streaming inputs can produce multimodal output streams (audio and text).", - "canonical": true, - "file": "generative_service.bidi_generate_content.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BidiGenerateContent", - "fullName": "google.ai.generativelanguage.v1beta.GenerativeService.BidiGenerateContent", - "async": true, - "parameters": [ - { - "name": "setup", - "type": ".google.ai.generativelanguage.v1beta.BidiGenerateContentSetup" - }, - { - "name": "client_content", - "type": ".google.ai.generativelanguage.v1beta.BidiGenerateContentClientContent" - }, - { - "name": "realtime_input", - "type": ".google.ai.generativelanguage.v1beta.BidiGenerateContentRealtimeInput" - }, - { - "name": "tool_response", - "type": ".google.ai.generativelanguage.v1beta.BidiGenerateContentToolResponse" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta.BidiGenerateContentServerMessage", - "client": { - "shortName": "GenerativeServiceClient", - "fullName": "google.ai.generativelanguage.v1beta.GenerativeServiceClient" - }, - "method": { - "shortName": "BidiGenerateContent", - "fullName": "google.ai.generativelanguage.v1beta.GenerativeService.BidiGenerateContent", - "service": { - "shortName": "GenerativeService", - "fullName": "google.ai.generativelanguage.v1beta.GenerativeService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta_generated_ModelService_GetModel_async", - "title": "CacheService getModel Sample", - "origin": "API_DEFINITION", - "description": " Gets information about a specific `Model` such as its version number, token limits, [parameters](https://ai.google.dev/gemini-api/docs/models/generative-models#model-parameters) and other metadata. Refer to the [Gemini models guide](https://ai.google.dev/gemini-api/docs/models/gemini) for detailed model information.", - "canonical": true, - "file": "model_service.get_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetModel", - "fullName": "google.ai.generativelanguage.v1beta.ModelService.GetModel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta.Model", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.ai.generativelanguage.v1beta.ModelServiceClient" - }, - "method": { - "shortName": "GetModel", - "fullName": "google.ai.generativelanguage.v1beta.ModelService.GetModel", - "service": { - "shortName": "ModelService", - "fullName": "google.ai.generativelanguage.v1beta.ModelService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta_generated_ModelService_ListModels_async", - "title": "CacheService listModels Sample", - "origin": "API_DEFINITION", - "description": " Lists the [`Model`s](https://ai.google.dev/gemini-api/docs/models/gemini) available through the Gemini API.", - "canonical": true, - "file": "model_service.list_models.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListModels", - "fullName": "google.ai.generativelanguage.v1beta.ModelService.ListModels", - "async": true, - "parameters": [ - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta.ListModelsResponse", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.ai.generativelanguage.v1beta.ModelServiceClient" - }, - "method": { - "shortName": "ListModels", - "fullName": "google.ai.generativelanguage.v1beta.ModelService.ListModels", - "service": { - "shortName": "ModelService", - "fullName": "google.ai.generativelanguage.v1beta.ModelService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta_generated_ModelService_GetTunedModel_async", - "title": "CacheService getTunedModel Sample", - "origin": "API_DEFINITION", - "description": " Gets information about a specific TunedModel.", - "canonical": true, - "file": "model_service.get_tuned_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTunedModel", - "fullName": "google.ai.generativelanguage.v1beta.ModelService.GetTunedModel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta.TunedModel", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.ai.generativelanguage.v1beta.ModelServiceClient" - }, - "method": { - "shortName": "GetTunedModel", - "fullName": "google.ai.generativelanguage.v1beta.ModelService.GetTunedModel", - "service": { - "shortName": "ModelService", - "fullName": "google.ai.generativelanguage.v1beta.ModelService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta_generated_ModelService_ListTunedModels_async", - "title": "CacheService listTunedModels Sample", - "origin": "API_DEFINITION", - "description": " Lists created tuned models.", - "canonical": true, - "file": "model_service.list_tuned_models.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTunedModels", - "fullName": "google.ai.generativelanguage.v1beta.ModelService.ListTunedModels", - "async": true, - "parameters": [ - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta.ListTunedModelsResponse", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.ai.generativelanguage.v1beta.ModelServiceClient" - }, - "method": { - "shortName": "ListTunedModels", - "fullName": "google.ai.generativelanguage.v1beta.ModelService.ListTunedModels", - "service": { - "shortName": "ModelService", - "fullName": "google.ai.generativelanguage.v1beta.ModelService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta_generated_ModelService_CreateTunedModel_async", - "title": "CacheService createTunedModel Sample", - "origin": "API_DEFINITION", - "description": " Creates a tuned model. Check intermediate tuning progress (if any) through the [google.longrunning.Operations] service. Access status and results through the Operations service. Example: GET /v1/tunedModels/az2mb0bpw6i/operations/000-111-222", - "canonical": true, - "file": "model_service.create_tuned_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTunedModel", - "fullName": "google.ai.generativelanguage.v1beta.ModelService.CreateTunedModel", - "async": true, - "parameters": [ - { - "name": "tuned_model_id", - "type": "TYPE_STRING" - }, - { - "name": "tuned_model", - "type": ".google.ai.generativelanguage.v1beta.TunedModel" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.ai.generativelanguage.v1beta.ModelServiceClient" - }, - "method": { - "shortName": "CreateTunedModel", - "fullName": "google.ai.generativelanguage.v1beta.ModelService.CreateTunedModel", - "service": { - "shortName": "ModelService", - "fullName": "google.ai.generativelanguage.v1beta.ModelService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta_generated_ModelService_UpdateTunedModel_async", - "title": "CacheService updateTunedModel Sample", - "origin": "API_DEFINITION", - "description": " Updates a tuned model.", - "canonical": true, - "file": "model_service.update_tuned_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTunedModel", - "fullName": "google.ai.generativelanguage.v1beta.ModelService.UpdateTunedModel", - "async": true, - "parameters": [ - { - "name": "tuned_model", - "type": ".google.ai.generativelanguage.v1beta.TunedModel" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta.TunedModel", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.ai.generativelanguage.v1beta.ModelServiceClient" - }, - "method": { - "shortName": "UpdateTunedModel", - "fullName": "google.ai.generativelanguage.v1beta.ModelService.UpdateTunedModel", - "service": { - "shortName": "ModelService", - "fullName": "google.ai.generativelanguage.v1beta.ModelService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta_generated_ModelService_DeleteTunedModel_async", - "title": "CacheService deleteTunedModel Sample", - "origin": "API_DEFINITION", - "description": " Deletes a tuned model.", - "canonical": true, - "file": "model_service.delete_tuned_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTunedModel", - "fullName": "google.ai.generativelanguage.v1beta.ModelService.DeleteTunedModel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.ai.generativelanguage.v1beta.ModelServiceClient" - }, - "method": { - "shortName": "DeleteTunedModel", - "fullName": "google.ai.generativelanguage.v1beta.ModelService.DeleteTunedModel", - "service": { - "shortName": "ModelService", - "fullName": "google.ai.generativelanguage.v1beta.ModelService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta_generated_PermissionService_CreatePermission_async", - "title": "CacheService createPermission Sample", - "origin": "API_DEFINITION", - "description": " Create a permission to a specific resource.", - "canonical": true, - "file": "permission_service.create_permission.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreatePermission", - "fullName": "google.ai.generativelanguage.v1beta.PermissionService.CreatePermission", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "permission", - "type": ".google.ai.generativelanguage.v1beta.Permission" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta.Permission", - "client": { - "shortName": "PermissionServiceClient", - "fullName": "google.ai.generativelanguage.v1beta.PermissionServiceClient" - }, - "method": { - "shortName": "CreatePermission", - "fullName": "google.ai.generativelanguage.v1beta.PermissionService.CreatePermission", - "service": { - "shortName": "PermissionService", - "fullName": "google.ai.generativelanguage.v1beta.PermissionService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta_generated_PermissionService_GetPermission_async", - "title": "CacheService getPermission Sample", - "origin": "API_DEFINITION", - "description": " Gets information about a specific Permission.", - "canonical": true, - "file": "permission_service.get_permission.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPermission", - "fullName": "google.ai.generativelanguage.v1beta.PermissionService.GetPermission", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta.Permission", - "client": { - "shortName": "PermissionServiceClient", - "fullName": "google.ai.generativelanguage.v1beta.PermissionServiceClient" - }, - "method": { - "shortName": "GetPermission", - "fullName": "google.ai.generativelanguage.v1beta.PermissionService.GetPermission", - "service": { - "shortName": "PermissionService", - "fullName": "google.ai.generativelanguage.v1beta.PermissionService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta_generated_PermissionService_ListPermissions_async", - "title": "CacheService listPermissions Sample", - "origin": "API_DEFINITION", - "description": " Lists permissions for the specific resource.", - "canonical": true, - "file": "permission_service.list_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPermissions", - "fullName": "google.ai.generativelanguage.v1beta.PermissionService.ListPermissions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta.ListPermissionsResponse", - "client": { - "shortName": "PermissionServiceClient", - "fullName": "google.ai.generativelanguage.v1beta.PermissionServiceClient" - }, - "method": { - "shortName": "ListPermissions", - "fullName": "google.ai.generativelanguage.v1beta.PermissionService.ListPermissions", - "service": { - "shortName": "PermissionService", - "fullName": "google.ai.generativelanguage.v1beta.PermissionService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta_generated_PermissionService_UpdatePermission_async", - "title": "CacheService updatePermission Sample", - "origin": "API_DEFINITION", - "description": " Updates the permission.", - "canonical": true, - "file": "permission_service.update_permission.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdatePermission", - "fullName": "google.ai.generativelanguage.v1beta.PermissionService.UpdatePermission", - "async": true, - "parameters": [ - { - "name": "permission", - "type": ".google.ai.generativelanguage.v1beta.Permission" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta.Permission", - "client": { - "shortName": "PermissionServiceClient", - "fullName": "google.ai.generativelanguage.v1beta.PermissionServiceClient" - }, - "method": { - "shortName": "UpdatePermission", - "fullName": "google.ai.generativelanguage.v1beta.PermissionService.UpdatePermission", - "service": { - "shortName": "PermissionService", - "fullName": "google.ai.generativelanguage.v1beta.PermissionService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta_generated_PermissionService_DeletePermission_async", - "title": "CacheService deletePermission Sample", - "origin": "API_DEFINITION", - "description": " Deletes the permission.", - "canonical": true, - "file": "permission_service.delete_permission.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePermission", - "fullName": "google.ai.generativelanguage.v1beta.PermissionService.DeletePermission", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "PermissionServiceClient", - "fullName": "google.ai.generativelanguage.v1beta.PermissionServiceClient" - }, - "method": { - "shortName": "DeletePermission", - "fullName": "google.ai.generativelanguage.v1beta.PermissionService.DeletePermission", - "service": { - "shortName": "PermissionService", - "fullName": "google.ai.generativelanguage.v1beta.PermissionService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta_generated_PermissionService_TransferOwnership_async", - "title": "CacheService transferOwnership Sample", - "origin": "API_DEFINITION", - "description": " Transfers ownership of the tuned model. This is the only way to change ownership of the tuned model. The current owner will be downgraded to writer role.", - "canonical": true, - "file": "permission_service.transfer_ownership.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TransferOwnership", - "fullName": "google.ai.generativelanguage.v1beta.PermissionService.TransferOwnership", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "email_address", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta.TransferOwnershipResponse", - "client": { - "shortName": "PermissionServiceClient", - "fullName": "google.ai.generativelanguage.v1beta.PermissionServiceClient" - }, - "method": { - "shortName": "TransferOwnership", - "fullName": "google.ai.generativelanguage.v1beta.PermissionService.TransferOwnership", - "service": { - "shortName": "PermissionService", - "fullName": "google.ai.generativelanguage.v1beta.PermissionService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta_generated_PredictionService_Predict_async", - "title": "CacheService predict Sample", - "origin": "API_DEFINITION", - "description": " Performs a prediction request.", - "canonical": true, - "file": "prediction_service.predict.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Predict", - "fullName": "google.ai.generativelanguage.v1beta.PredictionService.Predict", - "async": true, - "parameters": [ - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "instances", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "parameters", - "type": ".google.protobuf.Value" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta.PredictResponse", - "client": { - "shortName": "PredictionServiceClient", - "fullName": "google.ai.generativelanguage.v1beta.PredictionServiceClient" - }, - "method": { - "shortName": "Predict", - "fullName": "google.ai.generativelanguage.v1beta.PredictionService.Predict", - "service": { - "shortName": "PredictionService", - "fullName": "google.ai.generativelanguage.v1beta.PredictionService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta_generated_PredictionService_PredictLongRunning_async", - "title": "CacheService predictLongRunning Sample", - "origin": "API_DEFINITION", - "description": " Same as Predict but returns an LRO.", - "canonical": true, - "file": "prediction_service.predict_long_running.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PredictLongRunning", - "fullName": "google.ai.generativelanguage.v1beta.PredictionService.PredictLongRunning", - "async": true, - "parameters": [ - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "instances", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "parameters", - "type": ".google.protobuf.Value" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "PredictionServiceClient", - "fullName": "google.ai.generativelanguage.v1beta.PredictionServiceClient" - }, - "method": { - "shortName": "PredictLongRunning", - "fullName": "google.ai.generativelanguage.v1beta.PredictionService.PredictLongRunning", - "service": { - "shortName": "PredictionService", - "fullName": "google.ai.generativelanguage.v1beta.PredictionService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta_generated_RetrieverService_CreateCorpus_async", - "title": "CacheService createCorpus Sample", - "origin": "API_DEFINITION", - "description": " Creates an empty `Corpus`.", - "canonical": true, - "file": "retriever_service.create_corpus.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCorpus", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverService.CreateCorpus", - "async": true, - "parameters": [ - { - "name": "corpus", - "type": ".google.ai.generativelanguage.v1beta.Corpus" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta.Corpus", - "client": { - "shortName": "RetrieverServiceClient", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverServiceClient" - }, - "method": { - "shortName": "CreateCorpus", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverService.CreateCorpus", - "service": { - "shortName": "RetrieverService", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta_generated_RetrieverService_GetCorpus_async", - "title": "CacheService getCorpus Sample", - "origin": "API_DEFINITION", - "description": " Gets information about a specific `Corpus`.", - "canonical": true, - "file": "retriever_service.get_corpus.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCorpus", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverService.GetCorpus", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta.Corpus", - "client": { - "shortName": "RetrieverServiceClient", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverServiceClient" - }, - "method": { - "shortName": "GetCorpus", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverService.GetCorpus", - "service": { - "shortName": "RetrieverService", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta_generated_RetrieverService_UpdateCorpus_async", - "title": "CacheService updateCorpus Sample", - "origin": "API_DEFINITION", - "description": " Updates a `Corpus`.", - "canonical": true, - "file": "retriever_service.update_corpus.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCorpus", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverService.UpdateCorpus", - "async": true, - "parameters": [ - { - "name": "corpus", - "type": ".google.ai.generativelanguage.v1beta.Corpus" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta.Corpus", - "client": { - "shortName": "RetrieverServiceClient", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverServiceClient" - }, - "method": { - "shortName": "UpdateCorpus", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverService.UpdateCorpus", - "service": { - "shortName": "RetrieverService", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta_generated_RetrieverService_DeleteCorpus_async", - "title": "CacheService deleteCorpus Sample", - "origin": "API_DEFINITION", - "description": " Deletes a `Corpus`.", - "canonical": true, - "file": "retriever_service.delete_corpus.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCorpus", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverService.DeleteCorpus", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "RetrieverServiceClient", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverServiceClient" - }, - "method": { - "shortName": "DeleteCorpus", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverService.DeleteCorpus", - "service": { - "shortName": "RetrieverService", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta_generated_RetrieverService_ListCorpora_async", - "title": "CacheService listCorpora Sample", - "origin": "API_DEFINITION", - "description": " Lists all `Corpora` owned by the user.", - "canonical": true, - "file": "retriever_service.list_corpora.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCorpora", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverService.ListCorpora", - "async": true, - "parameters": [ - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta.ListCorporaResponse", - "client": { - "shortName": "RetrieverServiceClient", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverServiceClient" - }, - "method": { - "shortName": "ListCorpora", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverService.ListCorpora", - "service": { - "shortName": "RetrieverService", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta_generated_RetrieverService_QueryCorpus_async", - "title": "CacheService queryCorpus Sample", - "origin": "API_DEFINITION", - "description": " Performs semantic search over a `Corpus`.", - "canonical": true, - "file": "retriever_service.query_corpus.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 95, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryCorpus", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverService.QueryCorpus", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": "TYPE_STRING" - }, - { - "name": "metadata_filters", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "results_count", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta.QueryCorpusResponse", - "client": { - "shortName": "RetrieverServiceClient", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverServiceClient" - }, - "method": { - "shortName": "QueryCorpus", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverService.QueryCorpus", - "service": { - "shortName": "RetrieverService", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta_generated_RetrieverService_CreateDocument_async", - "title": "CacheService createDocument Sample", - "origin": "API_DEFINITION", - "description": " Creates an empty `Document`.", - "canonical": true, - "file": "retriever_service.create_document.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDocument", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverService.CreateDocument", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "document", - "type": ".google.ai.generativelanguage.v1beta.Document" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta.Document", - "client": { - "shortName": "RetrieverServiceClient", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverServiceClient" - }, - "method": { - "shortName": "CreateDocument", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverService.CreateDocument", - "service": { - "shortName": "RetrieverService", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta_generated_RetrieverService_GetDocument_async", - "title": "CacheService getDocument Sample", - "origin": "API_DEFINITION", - "description": " Gets information about a specific `Document`.", - "canonical": true, - "file": "retriever_service.get_document.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDocument", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverService.GetDocument", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta.Document", - "client": { - "shortName": "RetrieverServiceClient", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverServiceClient" - }, - "method": { - "shortName": "GetDocument", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverService.GetDocument", - "service": { - "shortName": "RetrieverService", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta_generated_RetrieverService_UpdateDocument_async", - "title": "CacheService updateDocument Sample", - "origin": "API_DEFINITION", - "description": " Updates a `Document`.", - "canonical": true, - "file": "retriever_service.update_document.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDocument", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverService.UpdateDocument", - "async": true, - "parameters": [ - { - "name": "document", - "type": ".google.ai.generativelanguage.v1beta.Document" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta.Document", - "client": { - "shortName": "RetrieverServiceClient", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverServiceClient" - }, - "method": { - "shortName": "UpdateDocument", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverService.UpdateDocument", - "service": { - "shortName": "RetrieverService", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta_generated_RetrieverService_DeleteDocument_async", - "title": "CacheService deleteDocument Sample", - "origin": "API_DEFINITION", - "description": " Deletes a `Document`.", - "canonical": true, - "file": "retriever_service.delete_document.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDocument", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverService.DeleteDocument", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "RetrieverServiceClient", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverServiceClient" - }, - "method": { - "shortName": "DeleteDocument", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverService.DeleteDocument", - "service": { - "shortName": "RetrieverService", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta_generated_RetrieverService_ListDocuments_async", - "title": "CacheService listDocuments Sample", - "origin": "API_DEFINITION", - "description": " Lists all `Document`s in a `Corpus`.", - "canonical": true, - "file": "retriever_service.list_documents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDocuments", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverService.ListDocuments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta.ListDocumentsResponse", - "client": { - "shortName": "RetrieverServiceClient", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverServiceClient" - }, - "method": { - "shortName": "ListDocuments", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverService.ListDocuments", - "service": { - "shortName": "RetrieverService", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta_generated_RetrieverService_QueryDocument_async", - "title": "CacheService queryDocument Sample", - "origin": "API_DEFINITION", - "description": " Performs semantic search over a `Document`.", - "canonical": true, - "file": "retriever_service.query_document.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 94, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryDocument", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverService.QueryDocument", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": "TYPE_STRING" - }, - { - "name": "results_count", - "type": "TYPE_INT32" - }, - { - "name": "metadata_filters", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta.QueryDocumentResponse", - "client": { - "shortName": "RetrieverServiceClient", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverServiceClient" - }, - "method": { - "shortName": "QueryDocument", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverService.QueryDocument", - "service": { - "shortName": "RetrieverService", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta_generated_RetrieverService_CreateChunk_async", - "title": "CacheService createChunk Sample", - "origin": "API_DEFINITION", - "description": " Creates a `Chunk`.", - "canonical": true, - "file": "retriever_service.create_chunk.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateChunk", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverService.CreateChunk", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "chunk", - "type": ".google.ai.generativelanguage.v1beta.Chunk" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta.Chunk", - "client": { - "shortName": "RetrieverServiceClient", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverServiceClient" - }, - "method": { - "shortName": "CreateChunk", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverService.CreateChunk", - "service": { - "shortName": "RetrieverService", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta_generated_RetrieverService_BatchCreateChunks_async", - "title": "CacheService batchCreateChunks Sample", - "origin": "API_DEFINITION", - "description": " Batch create `Chunk`s.", - "canonical": true, - "file": "retriever_service.batch_create_chunks.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCreateChunks", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverService.BatchCreateChunks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta.BatchCreateChunksResponse", - "client": { - "shortName": "RetrieverServiceClient", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverServiceClient" - }, - "method": { - "shortName": "BatchCreateChunks", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverService.BatchCreateChunks", - "service": { - "shortName": "RetrieverService", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta_generated_RetrieverService_GetChunk_async", - "title": "CacheService getChunk Sample", - "origin": "API_DEFINITION", - "description": " Gets information about a specific `Chunk`.", - "canonical": true, - "file": "retriever_service.get_chunk.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetChunk", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverService.GetChunk", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta.Chunk", - "client": { - "shortName": "RetrieverServiceClient", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverServiceClient" - }, - "method": { - "shortName": "GetChunk", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverService.GetChunk", - "service": { - "shortName": "RetrieverService", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta_generated_RetrieverService_UpdateChunk_async", - "title": "CacheService updateChunk Sample", - "origin": "API_DEFINITION", - "description": " Updates a `Chunk`.", - "canonical": true, - "file": "retriever_service.update_chunk.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateChunk", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverService.UpdateChunk", - "async": true, - "parameters": [ - { - "name": "chunk", - "type": ".google.ai.generativelanguage.v1beta.Chunk" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta.Chunk", - "client": { - "shortName": "RetrieverServiceClient", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverServiceClient" - }, - "method": { - "shortName": "UpdateChunk", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverService.UpdateChunk", - "service": { - "shortName": "RetrieverService", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta_generated_RetrieverService_BatchUpdateChunks_async", - "title": "CacheService batchUpdateChunks Sample", - "origin": "API_DEFINITION", - "description": " Batch update `Chunk`s.", - "canonical": true, - "file": "retriever_service.batch_update_chunks.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchUpdateChunks", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverService.BatchUpdateChunks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta.BatchUpdateChunksResponse", - "client": { - "shortName": "RetrieverServiceClient", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverServiceClient" - }, - "method": { - "shortName": "BatchUpdateChunks", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverService.BatchUpdateChunks", - "service": { - "shortName": "RetrieverService", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta_generated_RetrieverService_DeleteChunk_async", - "title": "CacheService deleteChunk Sample", - "origin": "API_DEFINITION", - "description": " Deletes a `Chunk`.", - "canonical": true, - "file": "retriever_service.delete_chunk.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteChunk", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverService.DeleteChunk", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "RetrieverServiceClient", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverServiceClient" - }, - "method": { - "shortName": "DeleteChunk", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverService.DeleteChunk", - "service": { - "shortName": "RetrieverService", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta_generated_RetrieverService_BatchDeleteChunks_async", - "title": "CacheService batchDeleteChunks Sample", - "origin": "API_DEFINITION", - "description": " Batch delete `Chunk`s.", - "canonical": true, - "file": "retriever_service.batch_delete_chunks.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchDeleteChunks", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverService.BatchDeleteChunks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "RetrieverServiceClient", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverServiceClient" - }, - "method": { - "shortName": "BatchDeleteChunks", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverService.BatchDeleteChunks", - "service": { - "shortName": "RetrieverService", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta_generated_RetrieverService_ListChunks_async", - "title": "CacheService listChunks Sample", - "origin": "API_DEFINITION", - "description": " Lists all `Chunk`s in a `Document`.", - "canonical": true, - "file": "retriever_service.list_chunks.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListChunks", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverService.ListChunks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta.ListChunksResponse", - "client": { - "shortName": "RetrieverServiceClient", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverServiceClient" - }, - "method": { - "shortName": "ListChunks", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverService.ListChunks", - "service": { - "shortName": "RetrieverService", - "fullName": "google.ai.generativelanguage.v1beta.RetrieverService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta_generated_TextService_GenerateText_async", - "title": "CacheService generateText Sample", - "origin": "API_DEFINITION", - "description": " Generates a response from the model given an input message.", - "canonical": true, - "file": "text_service.generate_text.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 129, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateText", - "fullName": "google.ai.generativelanguage.v1beta.TextService.GenerateText", - "async": true, - "parameters": [ - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "prompt", - "type": ".google.ai.generativelanguage.v1beta.TextPrompt" - }, - { - "name": "temperature", - "type": "TYPE_FLOAT" - }, - { - "name": "candidate_count", - "type": "TYPE_INT32" - }, - { - "name": "max_output_tokens", - "type": "TYPE_INT32" - }, - { - "name": "top_p", - "type": "TYPE_FLOAT" - }, - { - "name": "top_k", - "type": "TYPE_INT32" - }, - { - "name": "safety_settings", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "stop_sequences", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta.GenerateTextResponse", - "client": { - "shortName": "TextServiceClient", - "fullName": "google.ai.generativelanguage.v1beta.TextServiceClient" - }, - "method": { - "shortName": "GenerateText", - "fullName": "google.ai.generativelanguage.v1beta.TextService.GenerateText", - "service": { - "shortName": "TextService", - "fullName": "google.ai.generativelanguage.v1beta.TextService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta_generated_TextService_EmbedText_async", - "title": "CacheService embedText Sample", - "origin": "API_DEFINITION", - "description": " Generates an embedding from the model given an input message.", - "canonical": true, - "file": "text_service.embed_text.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "EmbedText", - "fullName": "google.ai.generativelanguage.v1beta.TextService.EmbedText", - "async": true, - "parameters": [ - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "text", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta.EmbedTextResponse", - "client": { - "shortName": "TextServiceClient", - "fullName": "google.ai.generativelanguage.v1beta.TextServiceClient" - }, - "method": { - "shortName": "EmbedText", - "fullName": "google.ai.generativelanguage.v1beta.TextService.EmbedText", - "service": { - "shortName": "TextService", - "fullName": "google.ai.generativelanguage.v1beta.TextService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta_generated_TextService_BatchEmbedText_async", - "title": "CacheService batchEmbedText Sample", - "origin": "API_DEFINITION", - "description": " Generates multiple embeddings from the model given input text in a synchronous call.", - "canonical": true, - "file": "text_service.batch_embed_text.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchEmbedText", - "fullName": "google.ai.generativelanguage.v1beta.TextService.BatchEmbedText", - "async": true, - "parameters": [ - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "texts", - "type": "TYPE_STRING[]" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta.BatchEmbedTextResponse", - "client": { - "shortName": "TextServiceClient", - "fullName": "google.ai.generativelanguage.v1beta.TextServiceClient" - }, - "method": { - "shortName": "BatchEmbedText", - "fullName": "google.ai.generativelanguage.v1beta.TextService.BatchEmbedText", - "service": { - "shortName": "TextService", - "fullName": "google.ai.generativelanguage.v1beta.TextService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta_generated_TextService_CountTextTokens_async", - "title": "CacheService countTextTokens Sample", - "origin": "API_DEFINITION", - "description": " Runs a model's tokenizer on a text and returns the token count.", - "canonical": true, - "file": "text_service.count_text_tokens.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CountTextTokens", - "fullName": "google.ai.generativelanguage.v1beta.TextService.CountTextTokens", - "async": true, - "parameters": [ - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "prompt", - "type": ".google.ai.generativelanguage.v1beta.TextPrompt" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta.CountTextTokensResponse", - "client": { - "shortName": "TextServiceClient", - "fullName": "google.ai.generativelanguage.v1beta.TextServiceClient" - }, - "method": { - "shortName": "CountTextTokens", - "fullName": "google.ai.generativelanguage.v1beta.TextService.CountTextTokens", - "service": { - "shortName": "TextService", - "fullName": "google.ai.generativelanguage.v1beta.TextService" - } - } - } - } - ] -} diff --git a/packages/google-ai-generativelanguage/samples/generated/v1beta2/snippet_metadata_google.ai.generativelanguage.v1beta2.json b/packages/google-ai-generativelanguage/samples/generated/v1beta2/snippet_metadata_google.ai.generativelanguage.v1beta2.json deleted file mode 100644 index 593685524d28..000000000000 --- a/packages/google-ai-generativelanguage/samples/generated/v1beta2/snippet_metadata_google.ai.generativelanguage.v1beta2.json +++ /dev/null @@ -1,319 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-generativelanguage", - "version": "3.7.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.ai.generativelanguage.v1beta2", - "version": "v1beta2" - } - ] - }, - "snippets": [ - { - "regionTag": "generativelanguage_v1beta2_generated_DiscussService_GenerateMessage_async", - "title": "DiscussService generateMessage Sample", - "origin": "API_DEFINITION", - "description": " Generates a response from the model given an input `MessagePrompt`.", - "canonical": true, - "file": "discuss_service.generate_message.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 90, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateMessage", - "fullName": "google.ai.generativelanguage.v1beta2.DiscussService.GenerateMessage", - "async": true, - "parameters": [ - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "prompt", - "type": ".google.ai.generativelanguage.v1beta2.MessagePrompt" - }, - { - "name": "temperature", - "type": "TYPE_FLOAT" - }, - { - "name": "candidate_count", - "type": "TYPE_INT32" - }, - { - "name": "top_p", - "type": "TYPE_FLOAT" - }, - { - "name": "top_k", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta2.GenerateMessageResponse", - "client": { - "shortName": "DiscussServiceClient", - "fullName": "google.ai.generativelanguage.v1beta2.DiscussServiceClient" - }, - "method": { - "shortName": "GenerateMessage", - "fullName": "google.ai.generativelanguage.v1beta2.DiscussService.GenerateMessage", - "service": { - "shortName": "DiscussService", - "fullName": "google.ai.generativelanguage.v1beta2.DiscussService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta2_generated_DiscussService_CountMessageTokens_async", - "title": "DiscussService countMessageTokens Sample", - "origin": "API_DEFINITION", - "description": " Runs a model's tokenizer on a string and returns the token count.", - "canonical": true, - "file": "discuss_service.count_message_tokens.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CountMessageTokens", - "fullName": "google.ai.generativelanguage.v1beta2.DiscussService.CountMessageTokens", - "async": true, - "parameters": [ - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "prompt", - "type": ".google.ai.generativelanguage.v1beta2.MessagePrompt" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta2.CountMessageTokensResponse", - "client": { - "shortName": "DiscussServiceClient", - "fullName": "google.ai.generativelanguage.v1beta2.DiscussServiceClient" - }, - "method": { - "shortName": "CountMessageTokens", - "fullName": "google.ai.generativelanguage.v1beta2.DiscussService.CountMessageTokens", - "service": { - "shortName": "DiscussService", - "fullName": "google.ai.generativelanguage.v1beta2.DiscussService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta2_generated_ModelService_GetModel_async", - "title": "DiscussService getModel Sample", - "origin": "API_DEFINITION", - "description": " Gets information about a specific Model.", - "canonical": true, - "file": "model_service.get_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetModel", - "fullName": "google.ai.generativelanguage.v1beta2.ModelService.GetModel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta2.Model", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.ai.generativelanguage.v1beta2.ModelServiceClient" - }, - "method": { - "shortName": "GetModel", - "fullName": "google.ai.generativelanguage.v1beta2.ModelService.GetModel", - "service": { - "shortName": "ModelService", - "fullName": "google.ai.generativelanguage.v1beta2.ModelService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta2_generated_ModelService_ListModels_async", - "title": "DiscussService listModels Sample", - "origin": "API_DEFINITION", - "description": " Lists models available through the API.", - "canonical": true, - "file": "model_service.list_models.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListModels", - "fullName": "google.ai.generativelanguage.v1beta2.ModelService.ListModels", - "async": true, - "parameters": [ - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta2.ListModelsResponse", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.ai.generativelanguage.v1beta2.ModelServiceClient" - }, - "method": { - "shortName": "ListModels", - "fullName": "google.ai.generativelanguage.v1beta2.ModelService.ListModels", - "service": { - "shortName": "ModelService", - "fullName": "google.ai.generativelanguage.v1beta2.ModelService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta2_generated_TextService_GenerateText_async", - "title": "DiscussService generateText Sample", - "origin": "API_DEFINITION", - "description": " Generates a response from the model given an input message.", - "canonical": true, - "file": "text_service.generate_text.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 119, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateText", - "fullName": "google.ai.generativelanguage.v1beta2.TextService.GenerateText", - "async": true, - "parameters": [ - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "prompt", - "type": ".google.ai.generativelanguage.v1beta2.TextPrompt" - }, - { - "name": "temperature", - "type": "TYPE_FLOAT" - }, - { - "name": "candidate_count", - "type": "TYPE_INT32" - }, - { - "name": "max_output_tokens", - "type": "TYPE_INT32" - }, - { - "name": "top_p", - "type": "TYPE_FLOAT" - }, - { - "name": "top_k", - "type": "TYPE_INT32" - }, - { - "name": "safety_settings", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "stop_sequences", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta2.GenerateTextResponse", - "client": { - "shortName": "TextServiceClient", - "fullName": "google.ai.generativelanguage.v1beta2.TextServiceClient" - }, - "method": { - "shortName": "GenerateText", - "fullName": "google.ai.generativelanguage.v1beta2.TextService.GenerateText", - "service": { - "shortName": "TextService", - "fullName": "google.ai.generativelanguage.v1beta2.TextService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta2_generated_TextService_EmbedText_async", - "title": "DiscussService embedText Sample", - "origin": "API_DEFINITION", - "description": " Generates an embedding from the model given an input message.", - "canonical": true, - "file": "text_service.embed_text.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "EmbedText", - "fullName": "google.ai.generativelanguage.v1beta2.TextService.EmbedText", - "async": true, - "parameters": [ - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "text", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta2.EmbedTextResponse", - "client": { - "shortName": "TextServiceClient", - "fullName": "google.ai.generativelanguage.v1beta2.TextServiceClient" - }, - "method": { - "shortName": "EmbedText", - "fullName": "google.ai.generativelanguage.v1beta2.TextService.EmbedText", - "service": { - "shortName": "TextService", - "fullName": "google.ai.generativelanguage.v1beta2.TextService" - } - } - } - } - ] -} diff --git a/packages/google-ai-generativelanguage/samples/generated/v1beta3/snippet_metadata_google.ai.generativelanguage.v1beta3.json b/packages/google-ai-generativelanguage/samples/generated/v1beta3/snippet_metadata_google.ai.generativelanguage.v1beta3.json deleted file mode 100644 index f85d68722e7e..000000000000 --- a/packages/google-ai-generativelanguage/samples/generated/v1beta3/snippet_metadata_google.ai.generativelanguage.v1beta3.json +++ /dev/null @@ -1,879 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-generativelanguage", - "version": "3.7.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.ai.generativelanguage.v1beta3", - "version": "v1beta3" - } - ] - }, - "snippets": [ - { - "regionTag": "generativelanguage_v1beta3_generated_DiscussService_GenerateMessage_async", - "title": "DiscussService generateMessage Sample", - "origin": "API_DEFINITION", - "description": " Generates a response from the model given an input `MessagePrompt`.", - "canonical": true, - "file": "discuss_service.generate_message.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 90, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateMessage", - "fullName": "google.ai.generativelanguage.v1beta3.DiscussService.GenerateMessage", - "async": true, - "parameters": [ - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "prompt", - "type": ".google.ai.generativelanguage.v1beta3.MessagePrompt" - }, - { - "name": "temperature", - "type": "TYPE_FLOAT" - }, - { - "name": "candidate_count", - "type": "TYPE_INT32" - }, - { - "name": "top_p", - "type": "TYPE_FLOAT" - }, - { - "name": "top_k", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta3.GenerateMessageResponse", - "client": { - "shortName": "DiscussServiceClient", - "fullName": "google.ai.generativelanguage.v1beta3.DiscussServiceClient" - }, - "method": { - "shortName": "GenerateMessage", - "fullName": "google.ai.generativelanguage.v1beta3.DiscussService.GenerateMessage", - "service": { - "shortName": "DiscussService", - "fullName": "google.ai.generativelanguage.v1beta3.DiscussService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta3_generated_DiscussService_CountMessageTokens_async", - "title": "DiscussService countMessageTokens Sample", - "origin": "API_DEFINITION", - "description": " Runs a model's tokenizer on a string and returns the token count.", - "canonical": true, - "file": "discuss_service.count_message_tokens.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CountMessageTokens", - "fullName": "google.ai.generativelanguage.v1beta3.DiscussService.CountMessageTokens", - "async": true, - "parameters": [ - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "prompt", - "type": ".google.ai.generativelanguage.v1beta3.MessagePrompt" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta3.CountMessageTokensResponse", - "client": { - "shortName": "DiscussServiceClient", - "fullName": "google.ai.generativelanguage.v1beta3.DiscussServiceClient" - }, - "method": { - "shortName": "CountMessageTokens", - "fullName": "google.ai.generativelanguage.v1beta3.DiscussService.CountMessageTokens", - "service": { - "shortName": "DiscussService", - "fullName": "google.ai.generativelanguage.v1beta3.DiscussService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta3_generated_ModelService_GetModel_async", - "title": "DiscussService getModel Sample", - "origin": "API_DEFINITION", - "description": " Gets information about a specific Model.", - "canonical": true, - "file": "model_service.get_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetModel", - "fullName": "google.ai.generativelanguage.v1beta3.ModelService.GetModel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta3.Model", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.ai.generativelanguage.v1beta3.ModelServiceClient" - }, - "method": { - "shortName": "GetModel", - "fullName": "google.ai.generativelanguage.v1beta3.ModelService.GetModel", - "service": { - "shortName": "ModelService", - "fullName": "google.ai.generativelanguage.v1beta3.ModelService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta3_generated_ModelService_ListModels_async", - "title": "DiscussService listModels Sample", - "origin": "API_DEFINITION", - "description": " Lists models available through the API.", - "canonical": true, - "file": "model_service.list_models.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListModels", - "fullName": "google.ai.generativelanguage.v1beta3.ModelService.ListModels", - "async": true, - "parameters": [ - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta3.ListModelsResponse", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.ai.generativelanguage.v1beta3.ModelServiceClient" - }, - "method": { - "shortName": "ListModels", - "fullName": "google.ai.generativelanguage.v1beta3.ModelService.ListModels", - "service": { - "shortName": "ModelService", - "fullName": "google.ai.generativelanguage.v1beta3.ModelService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta3_generated_ModelService_GetTunedModel_async", - "title": "DiscussService getTunedModel Sample", - "origin": "API_DEFINITION", - "description": " Gets information about a specific TunedModel.", - "canonical": true, - "file": "model_service.get_tuned_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTunedModel", - "fullName": "google.ai.generativelanguage.v1beta3.ModelService.GetTunedModel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta3.TunedModel", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.ai.generativelanguage.v1beta3.ModelServiceClient" - }, - "method": { - "shortName": "GetTunedModel", - "fullName": "google.ai.generativelanguage.v1beta3.ModelService.GetTunedModel", - "service": { - "shortName": "ModelService", - "fullName": "google.ai.generativelanguage.v1beta3.ModelService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta3_generated_ModelService_ListTunedModels_async", - "title": "DiscussService listTunedModels Sample", - "origin": "API_DEFINITION", - "description": " Lists tuned models owned by the user.", - "canonical": true, - "file": "model_service.list_tuned_models.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTunedModels", - "fullName": "google.ai.generativelanguage.v1beta3.ModelService.ListTunedModels", - "async": true, - "parameters": [ - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta3.ListTunedModelsResponse", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.ai.generativelanguage.v1beta3.ModelServiceClient" - }, - "method": { - "shortName": "ListTunedModels", - "fullName": "google.ai.generativelanguage.v1beta3.ModelService.ListTunedModels", - "service": { - "shortName": "ModelService", - "fullName": "google.ai.generativelanguage.v1beta3.ModelService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta3_generated_ModelService_CreateTunedModel_async", - "title": "DiscussService createTunedModel Sample", - "origin": "API_DEFINITION", - "description": " Creates a tuned model. Intermediate tuning progress (if any) is accessed through the [google.longrunning.Operations] service. Status and results can be accessed through the Operations service. Example: GET /v1/tunedModels/az2mb0bpw6i/operations/000-111-222", - "canonical": true, - "file": "model_service.create_tuned_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTunedModel", - "fullName": "google.ai.generativelanguage.v1beta3.ModelService.CreateTunedModel", - "async": true, - "parameters": [ - { - "name": "tuned_model_id", - "type": "TYPE_STRING" - }, - { - "name": "tuned_model", - "type": ".google.ai.generativelanguage.v1beta3.TunedModel" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.ai.generativelanguage.v1beta3.ModelServiceClient" - }, - "method": { - "shortName": "CreateTunedModel", - "fullName": "google.ai.generativelanguage.v1beta3.ModelService.CreateTunedModel", - "service": { - "shortName": "ModelService", - "fullName": "google.ai.generativelanguage.v1beta3.ModelService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta3_generated_ModelService_UpdateTunedModel_async", - "title": "DiscussService updateTunedModel Sample", - "origin": "API_DEFINITION", - "description": " Updates a tuned model.", - "canonical": true, - "file": "model_service.update_tuned_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTunedModel", - "fullName": "google.ai.generativelanguage.v1beta3.ModelService.UpdateTunedModel", - "async": true, - "parameters": [ - { - "name": "tuned_model", - "type": ".google.ai.generativelanguage.v1beta3.TunedModel" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta3.TunedModel", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.ai.generativelanguage.v1beta3.ModelServiceClient" - }, - "method": { - "shortName": "UpdateTunedModel", - "fullName": "google.ai.generativelanguage.v1beta3.ModelService.UpdateTunedModel", - "service": { - "shortName": "ModelService", - "fullName": "google.ai.generativelanguage.v1beta3.ModelService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta3_generated_ModelService_DeleteTunedModel_async", - "title": "DiscussService deleteTunedModel Sample", - "origin": "API_DEFINITION", - "description": " Deletes a tuned model.", - "canonical": true, - "file": "model_service.delete_tuned_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTunedModel", - "fullName": "google.ai.generativelanguage.v1beta3.ModelService.DeleteTunedModel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.ai.generativelanguage.v1beta3.ModelServiceClient" - }, - "method": { - "shortName": "DeleteTunedModel", - "fullName": "google.ai.generativelanguage.v1beta3.ModelService.DeleteTunedModel", - "service": { - "shortName": "ModelService", - "fullName": "google.ai.generativelanguage.v1beta3.ModelService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta3_generated_PermissionService_CreatePermission_async", - "title": "DiscussService createPermission Sample", - "origin": "API_DEFINITION", - "description": " Create a permission to a specific resource.", - "canonical": true, - "file": "permission_service.create_permission.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreatePermission", - "fullName": "google.ai.generativelanguage.v1beta3.PermissionService.CreatePermission", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "permission", - "type": ".google.ai.generativelanguage.v1beta3.Permission" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta3.Permission", - "client": { - "shortName": "PermissionServiceClient", - "fullName": "google.ai.generativelanguage.v1beta3.PermissionServiceClient" - }, - "method": { - "shortName": "CreatePermission", - "fullName": "google.ai.generativelanguage.v1beta3.PermissionService.CreatePermission", - "service": { - "shortName": "PermissionService", - "fullName": "google.ai.generativelanguage.v1beta3.PermissionService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta3_generated_PermissionService_GetPermission_async", - "title": "DiscussService getPermission Sample", - "origin": "API_DEFINITION", - "description": " Gets information about a specific Permission.", - "canonical": true, - "file": "permission_service.get_permission.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPermission", - "fullName": "google.ai.generativelanguage.v1beta3.PermissionService.GetPermission", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta3.Permission", - "client": { - "shortName": "PermissionServiceClient", - "fullName": "google.ai.generativelanguage.v1beta3.PermissionServiceClient" - }, - "method": { - "shortName": "GetPermission", - "fullName": "google.ai.generativelanguage.v1beta3.PermissionService.GetPermission", - "service": { - "shortName": "PermissionService", - "fullName": "google.ai.generativelanguage.v1beta3.PermissionService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta3_generated_PermissionService_ListPermissions_async", - "title": "DiscussService listPermissions Sample", - "origin": "API_DEFINITION", - "description": " Lists permissions for the specific resource.", - "canonical": true, - "file": "permission_service.list_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPermissions", - "fullName": "google.ai.generativelanguage.v1beta3.PermissionService.ListPermissions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta3.ListPermissionsResponse", - "client": { - "shortName": "PermissionServiceClient", - "fullName": "google.ai.generativelanguage.v1beta3.PermissionServiceClient" - }, - "method": { - "shortName": "ListPermissions", - "fullName": "google.ai.generativelanguage.v1beta3.PermissionService.ListPermissions", - "service": { - "shortName": "PermissionService", - "fullName": "google.ai.generativelanguage.v1beta3.PermissionService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta3_generated_PermissionService_UpdatePermission_async", - "title": "DiscussService updatePermission Sample", - "origin": "API_DEFINITION", - "description": " Updates the permission.", - "canonical": true, - "file": "permission_service.update_permission.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdatePermission", - "fullName": "google.ai.generativelanguage.v1beta3.PermissionService.UpdatePermission", - "async": true, - "parameters": [ - { - "name": "permission", - "type": ".google.ai.generativelanguage.v1beta3.Permission" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta3.Permission", - "client": { - "shortName": "PermissionServiceClient", - "fullName": "google.ai.generativelanguage.v1beta3.PermissionServiceClient" - }, - "method": { - "shortName": "UpdatePermission", - "fullName": "google.ai.generativelanguage.v1beta3.PermissionService.UpdatePermission", - "service": { - "shortName": "PermissionService", - "fullName": "google.ai.generativelanguage.v1beta3.PermissionService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta3_generated_PermissionService_DeletePermission_async", - "title": "DiscussService deletePermission Sample", - "origin": "API_DEFINITION", - "description": " Deletes the permission.", - "canonical": true, - "file": "permission_service.delete_permission.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePermission", - "fullName": "google.ai.generativelanguage.v1beta3.PermissionService.DeletePermission", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "PermissionServiceClient", - "fullName": "google.ai.generativelanguage.v1beta3.PermissionServiceClient" - }, - "method": { - "shortName": "DeletePermission", - "fullName": "google.ai.generativelanguage.v1beta3.PermissionService.DeletePermission", - "service": { - "shortName": "PermissionService", - "fullName": "google.ai.generativelanguage.v1beta3.PermissionService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta3_generated_PermissionService_TransferOwnership_async", - "title": "DiscussService transferOwnership Sample", - "origin": "API_DEFINITION", - "description": " Transfers ownership of the tuned model. This is the only way to change ownership of the tuned model. The current owner will be downgraded to writer role.", - "canonical": true, - "file": "permission_service.transfer_ownership.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TransferOwnership", - "fullName": "google.ai.generativelanguage.v1beta3.PermissionService.TransferOwnership", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "email_address", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta3.TransferOwnershipResponse", - "client": { - "shortName": "PermissionServiceClient", - "fullName": "google.ai.generativelanguage.v1beta3.PermissionServiceClient" - }, - "method": { - "shortName": "TransferOwnership", - "fullName": "google.ai.generativelanguage.v1beta3.PermissionService.TransferOwnership", - "service": { - "shortName": "PermissionService", - "fullName": "google.ai.generativelanguage.v1beta3.PermissionService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta3_generated_TextService_GenerateText_async", - "title": "DiscussService generateText Sample", - "origin": "API_DEFINITION", - "description": " Generates a response from the model given an input message.", - "canonical": true, - "file": "text_service.generate_text.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 125, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateText", - "fullName": "google.ai.generativelanguage.v1beta3.TextService.GenerateText", - "async": true, - "parameters": [ - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "prompt", - "type": ".google.ai.generativelanguage.v1beta3.TextPrompt" - }, - { - "name": "temperature", - "type": "TYPE_FLOAT" - }, - { - "name": "candidate_count", - "type": "TYPE_INT32" - }, - { - "name": "max_output_tokens", - "type": "TYPE_INT32" - }, - { - "name": "top_p", - "type": "TYPE_FLOAT" - }, - { - "name": "top_k", - "type": "TYPE_INT32" - }, - { - "name": "safety_settings", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "stop_sequences", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta3.GenerateTextResponse", - "client": { - "shortName": "TextServiceClient", - "fullName": "google.ai.generativelanguage.v1beta3.TextServiceClient" - }, - "method": { - "shortName": "GenerateText", - "fullName": "google.ai.generativelanguage.v1beta3.TextService.GenerateText", - "service": { - "shortName": "TextService", - "fullName": "google.ai.generativelanguage.v1beta3.TextService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta3_generated_TextService_EmbedText_async", - "title": "DiscussService embedText Sample", - "origin": "API_DEFINITION", - "description": " Generates an embedding from the model given an input message.", - "canonical": true, - "file": "text_service.embed_text.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "EmbedText", - "fullName": "google.ai.generativelanguage.v1beta3.TextService.EmbedText", - "async": true, - "parameters": [ - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "text", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta3.EmbedTextResponse", - "client": { - "shortName": "TextServiceClient", - "fullName": "google.ai.generativelanguage.v1beta3.TextServiceClient" - }, - "method": { - "shortName": "EmbedText", - "fullName": "google.ai.generativelanguage.v1beta3.TextService.EmbedText", - "service": { - "shortName": "TextService", - "fullName": "google.ai.generativelanguage.v1beta3.TextService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta3_generated_TextService_BatchEmbedText_async", - "title": "DiscussService batchEmbedText Sample", - "origin": "API_DEFINITION", - "description": " Generates multiple embeddings from the model given input text in a synchronous call.", - "canonical": true, - "file": "text_service.batch_embed_text.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchEmbedText", - "fullName": "google.ai.generativelanguage.v1beta3.TextService.BatchEmbedText", - "async": true, - "parameters": [ - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "texts", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta3.BatchEmbedTextResponse", - "client": { - "shortName": "TextServiceClient", - "fullName": "google.ai.generativelanguage.v1beta3.TextServiceClient" - }, - "method": { - "shortName": "BatchEmbedText", - "fullName": "google.ai.generativelanguage.v1beta3.TextService.BatchEmbedText", - "service": { - "shortName": "TextService", - "fullName": "google.ai.generativelanguage.v1beta3.TextService" - } - } - } - }, - { - "regionTag": "generativelanguage_v1beta3_generated_TextService_CountTextTokens_async", - "title": "DiscussService countTextTokens Sample", - "origin": "API_DEFINITION", - "description": " Runs a model's tokenizer on a text and returns the token count.", - "canonical": true, - "file": "text_service.count_text_tokens.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CountTextTokens", - "fullName": "google.ai.generativelanguage.v1beta3.TextService.CountTextTokens", - "async": true, - "parameters": [ - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "prompt", - "type": ".google.ai.generativelanguage.v1beta3.TextPrompt" - } - ], - "resultType": ".google.ai.generativelanguage.v1beta3.CountTextTokensResponse", - "client": { - "shortName": "TextServiceClient", - "fullName": "google.ai.generativelanguage.v1beta3.TextServiceClient" - }, - "method": { - "shortName": "CountTextTokens", - "fullName": "google.ai.generativelanguage.v1beta3.TextService.CountTextTokens", - "service": { - "shortName": "TextService", - "fullName": "google.ai.generativelanguage.v1beta3.TextService" - } - } - } - } - ] -} diff --git a/packages/google-analytics-admin/samples/generated/v1alpha/snippet_metadata_google.analytics.admin.v1alpha.json b/packages/google-analytics-admin/samples/generated/v1alpha/snippet_metadata_google.analytics.admin.v1alpha.json deleted file mode 100644 index 0d477c8a7f66..000000000000 --- a/packages/google-analytics-admin/samples/generated/v1alpha/snippet_metadata_google.analytics.admin.v1alpha.json +++ /dev/null @@ -1,6787 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-admin", - "version": "9.0.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.analytics.admin.v1alpha", - "version": "v1alpha" - } - ] - }, - "snippets": [ - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAccount_async", - "title": "AnalyticsAdminService getAccount Sample", - "origin": "API_DEFINITION", - "description": " Lookup for a single Account.", - "canonical": true, - "file": "analytics_admin_service.get_account.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAccount", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetAccount", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.Account", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetAccount", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetAccount", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccounts_async", - "title": "AnalyticsAdminService listAccounts Sample", - "origin": "API_DEFINITION", - "description": " Returns all accounts accessible by the caller. Note that these accounts might not currently have GA properties. Soft-deleted (ie: \"trashed\") accounts are excluded by default. Returns an empty list if no relevant accounts are found.", - "canonical": true, - "file": "analytics_admin_service.list_accounts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAccounts", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListAccounts", - "async": true, - "parameters": [ - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "show_deleted", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ListAccountsResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ListAccounts", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListAccounts", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteAccount_async", - "title": "AnalyticsAdminService deleteAccount Sample", - "origin": "API_DEFINITION", - "description": " Marks target Account as soft-deleted (ie: \"trashed\") and returns it. This API does not have a method to restore soft-deleted accounts. However, they can be restored using the Trash Can UI. If the accounts are not restored before the expiration time, the account and all child resources (eg: Properties, GoogleAdsLinks, Streams, AccessBindings) will be permanently purged. https://support.google.com/analytics/answer/6154772 Returns an error if the target is not found.", - "canonical": true, - "file": "analytics_admin_service.delete_account.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAccount", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteAccount", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "DeleteAccount", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteAccount", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAccount_async", - "title": "AnalyticsAdminService updateAccount Sample", - "origin": "API_DEFINITION", - "description": " Updates an account.", - "canonical": true, - "file": "analytics_admin_service.update_account.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAccount", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateAccount", - "async": true, - "parameters": [ - { - "name": "account", - "type": ".google.analytics.admin.v1alpha.Account" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.analytics.admin.v1alpha.Account", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "UpdateAccount", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateAccount", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ProvisionAccountTicket_async", - "title": "AnalyticsAdminService provisionAccountTicket Sample", - "origin": "API_DEFINITION", - "description": " Requests a ticket for creating an account.", - "canonical": true, - "file": "analytics_admin_service.provision_account_ticket.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ProvisionAccountTicket", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ProvisionAccountTicket", - "async": true, - "parameters": [ - { - "name": "account", - "type": ".google.analytics.admin.v1alpha.Account" - }, - { - "name": "redirect_uri", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ProvisionAccountTicketResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ProvisionAccountTicket", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ProvisionAccountTicket", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccountSummaries_async", - "title": "AnalyticsAdminService listAccountSummaries Sample", - "origin": "API_DEFINITION", - "description": " Returns summaries of all accounts accessible by the caller.", - "canonical": true, - "file": "analytics_admin_service.list_account_summaries.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAccountSummaries", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListAccountSummaries", - "async": true, - "parameters": [ - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ListAccountSummariesResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ListAccountSummaries", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListAccountSummaries", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetProperty_async", - "title": "AnalyticsAdminService getProperty Sample", - "origin": "API_DEFINITION", - "description": " Lookup for a single GA Property.", - "canonical": true, - "file": "analytics_admin_service.get_property.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetProperty", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetProperty", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.Property", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetProperty", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetProperty", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListProperties_async", - "title": "AnalyticsAdminService listProperties Sample", - "origin": "API_DEFINITION", - "description": " Returns child Properties under the specified parent Account. Properties will be excluded if the caller does not have access. Soft-deleted (ie: \"trashed\") properties are excluded by default. Returns an empty list if no relevant properties are found.", - "canonical": true, - "file": "analytics_admin_service.list_properties.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 89, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListProperties", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListProperties", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "show_deleted", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ListPropertiesResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ListProperties", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListProperties", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateProperty_async", - "title": "AnalyticsAdminService createProperty Sample", - "origin": "API_DEFINITION", - "description": " Creates a Google Analytics property with the specified location and attributes.", - "canonical": true, - "file": "analytics_admin_service.create_property.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateProperty", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateProperty", - "async": true, - "parameters": [ - { - "name": "property", - "type": ".google.analytics.admin.v1alpha.Property" - } - ], - "resultType": ".google.analytics.admin.v1alpha.Property", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "CreateProperty", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateProperty", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteProperty_async", - "title": "AnalyticsAdminService deleteProperty Sample", - "origin": "API_DEFINITION", - "description": " Marks target Property as soft-deleted (ie: \"trashed\") and returns it. This API does not have a method to restore soft-deleted properties. However, they can be restored using the Trash Can UI. If the properties are not restored before the expiration time, the Property and all child resources (eg: GoogleAdsLinks, Streams, AccessBindings) will be permanently purged. https://support.google.com/analytics/answer/6154772 Returns an error if the target is not found.", - "canonical": true, - "file": "analytics_admin_service.delete_property.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteProperty", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteProperty", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.Property", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "DeleteProperty", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteProperty", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateProperty_async", - "title": "AnalyticsAdminService updateProperty Sample", - "origin": "API_DEFINITION", - "description": " Updates a property.", - "canonical": true, - "file": "analytics_admin_service.update_property.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateProperty", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateProperty", - "async": true, - "parameters": [ - { - "name": "property", - "type": ".google.analytics.admin.v1alpha.Property" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.analytics.admin.v1alpha.Property", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "UpdateProperty", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateProperty", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateFirebaseLink_async", - "title": "AnalyticsAdminService createFirebaseLink Sample", - "origin": "API_DEFINITION", - "description": " Creates a FirebaseLink. Properties can have at most one FirebaseLink.", - "canonical": true, - "file": "analytics_admin_service.create_firebase_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateFirebaseLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateFirebaseLink", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "firebase_link", - "type": ".google.analytics.admin.v1alpha.FirebaseLink" - } - ], - "resultType": ".google.analytics.admin.v1alpha.FirebaseLink", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "CreateFirebaseLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateFirebaseLink", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteFirebaseLink_async", - "title": "AnalyticsAdminService deleteFirebaseLink Sample", - "origin": "API_DEFINITION", - "description": " Deletes a FirebaseLink on a property", - "canonical": true, - "file": "analytics_admin_service.delete_firebase_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteFirebaseLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteFirebaseLink", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "DeleteFirebaseLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteFirebaseLink", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListFirebaseLinks_async", - "title": "AnalyticsAdminService listFirebaseLinks Sample", - "origin": "API_DEFINITION", - "description": " Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink.", - "canonical": true, - "file": "analytics_admin_service.list_firebase_links.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFirebaseLinks", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListFirebaseLinks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ListFirebaseLinksResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ListFirebaseLinks", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListFirebaseLinks", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetGlobalSiteTag_async", - "title": "AnalyticsAdminService getGlobalSiteTag Sample", - "origin": "API_DEFINITION", - "description": " Returns the Site Tag for the specified web stream. Site Tags are immutable singletons.", - "canonical": true, - "file": "analytics_admin_service.get_global_site_tag.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetGlobalSiteTag", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetGlobalSiteTag", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.GlobalSiteTag", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetGlobalSiteTag", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetGlobalSiteTag", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateGoogleAdsLink_async", - "title": "AnalyticsAdminService createGoogleAdsLink Sample", - "origin": "API_DEFINITION", - "description": " Creates a GoogleAdsLink.", - "canonical": true, - "file": "analytics_admin_service.create_google_ads_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateGoogleAdsLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateGoogleAdsLink", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "google_ads_link", - "type": ".google.analytics.admin.v1alpha.GoogleAdsLink" - } - ], - "resultType": ".google.analytics.admin.v1alpha.GoogleAdsLink", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "CreateGoogleAdsLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateGoogleAdsLink", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateGoogleAdsLink_async", - "title": "AnalyticsAdminService updateGoogleAdsLink Sample", - "origin": "API_DEFINITION", - "description": " Updates a GoogleAdsLink on a property", - "canonical": true, - "file": "analytics_admin_service.update_google_ads_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateGoogleAdsLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateGoogleAdsLink", - "async": true, - "parameters": [ - { - "name": "google_ads_link", - "type": ".google.analytics.admin.v1alpha.GoogleAdsLink" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.analytics.admin.v1alpha.GoogleAdsLink", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "UpdateGoogleAdsLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateGoogleAdsLink", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteGoogleAdsLink_async", - "title": "AnalyticsAdminService deleteGoogleAdsLink Sample", - "origin": "API_DEFINITION", - "description": " Deletes a GoogleAdsLink on a property", - "canonical": true, - "file": "analytics_admin_service.delete_google_ads_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteGoogleAdsLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteGoogleAdsLink", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "DeleteGoogleAdsLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteGoogleAdsLink", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListGoogleAdsLinks_async", - "title": "AnalyticsAdminService listGoogleAdsLinks Sample", - "origin": "API_DEFINITION", - "description": " Lists GoogleAdsLinks on a property.", - "canonical": true, - "file": "analytics_admin_service.list_google_ads_links.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListGoogleAdsLinks", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListGoogleAdsLinks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ListGoogleAdsLinks", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListGoogleAdsLinks", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataSharingSettings_async", - "title": "AnalyticsAdminService getDataSharingSettings Sample", - "origin": "API_DEFINITION", - "description": " Get data sharing settings on an account. Data sharing settings are singletons.", - "canonical": true, - "file": "analytics_admin_service.get_data_sharing_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDataSharingSettings", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetDataSharingSettings", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.DataSharingSettings", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetDataSharingSettings", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetDataSharingSettings", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetMeasurementProtocolSecret_async", - "title": "AnalyticsAdminService getMeasurementProtocolSecret Sample", - "origin": "API_DEFINITION", - "description": " Lookup for a single MeasurementProtocolSecret.", - "canonical": true, - "file": "analytics_admin_service.get_measurement_protocol_secret.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMeasurementProtocolSecret", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetMeasurementProtocolSecret", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.MeasurementProtocolSecret", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetMeasurementProtocolSecret", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetMeasurementProtocolSecret", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListMeasurementProtocolSecrets_async", - "title": "AnalyticsAdminService listMeasurementProtocolSecrets Sample", - "origin": "API_DEFINITION", - "description": " Returns child MeasurementProtocolSecrets under the specified parent Property.", - "canonical": true, - "file": "analytics_admin_service.list_measurement_protocol_secrets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMeasurementProtocolSecrets", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListMeasurementProtocolSecrets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ListMeasurementProtocolSecrets", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListMeasurementProtocolSecrets", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateMeasurementProtocolSecret_async", - "title": "AnalyticsAdminService createMeasurementProtocolSecret Sample", - "origin": "API_DEFINITION", - "description": " Creates a measurement protocol secret.", - "canonical": true, - "file": "analytics_admin_service.create_measurement_protocol_secret.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateMeasurementProtocolSecret", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateMeasurementProtocolSecret", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "measurement_protocol_secret", - "type": ".google.analytics.admin.v1alpha.MeasurementProtocolSecret" - } - ], - "resultType": ".google.analytics.admin.v1alpha.MeasurementProtocolSecret", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "CreateMeasurementProtocolSecret", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateMeasurementProtocolSecret", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteMeasurementProtocolSecret_async", - "title": "AnalyticsAdminService deleteMeasurementProtocolSecret Sample", - "origin": "API_DEFINITION", - "description": " Deletes target MeasurementProtocolSecret.", - "canonical": true, - "file": "analytics_admin_service.delete_measurement_protocol_secret.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteMeasurementProtocolSecret", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteMeasurementProtocolSecret", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "DeleteMeasurementProtocolSecret", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteMeasurementProtocolSecret", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateMeasurementProtocolSecret_async", - "title": "AnalyticsAdminService updateMeasurementProtocolSecret Sample", - "origin": "API_DEFINITION", - "description": " Updates a measurement protocol secret.", - "canonical": true, - "file": "analytics_admin_service.update_measurement_protocol_secret.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateMeasurementProtocolSecret", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateMeasurementProtocolSecret", - "async": true, - "parameters": [ - { - "name": "measurement_protocol_secret", - "type": ".google.analytics.admin.v1alpha.MeasurementProtocolSecret" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.analytics.admin.v1alpha.MeasurementProtocolSecret", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "UpdateMeasurementProtocolSecret", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateMeasurementProtocolSecret", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_AcknowledgeUserDataCollection_async", - "title": "AnalyticsAdminService acknowledgeUserDataCollection Sample", - "origin": "API_DEFINITION", - "description": " Acknowledges the terms of user data collection for the specified property. This acknowledgement must be completed (either in the Google Analytics UI or through this API) before MeasurementProtocolSecret resources may be created.", - "canonical": true, - "file": "analytics_admin_service.acknowledge_user_data_collection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AcknowledgeUserDataCollection", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.AcknowledgeUserDataCollection", - "async": true, - "parameters": [ - { - "name": "property", - "type": "TYPE_STRING" - }, - { - "name": "acknowledgement", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "AcknowledgeUserDataCollection", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.AcknowledgeUserDataCollection", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetSKAdNetworkConversionValueSchema_async", - "title": "AnalyticsAdminService getSKAdNetworkConversionValueSchema Sample", - "origin": "API_DEFINITION", - "description": " Looks up a single SKAdNetworkConversionValueSchema.", - "canonical": true, - "file": "analytics_admin_service.get_s_k_ad_network_conversion_value_schema.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSKAdNetworkConversionValueSchema", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetSKAdNetworkConversionValueSchema", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetSKAdNetworkConversionValueSchema", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetSKAdNetworkConversionValueSchema", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateSKAdNetworkConversionValueSchema_async", - "title": "AnalyticsAdminService createSKAdNetworkConversionValueSchema Sample", - "origin": "API_DEFINITION", - "description": " Creates a SKAdNetworkConversionValueSchema.", - "canonical": true, - "file": "analytics_admin_service.create_s_k_ad_network_conversion_value_schema.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSKAdNetworkConversionValueSchema", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateSKAdNetworkConversionValueSchema", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "skadnetwork_conversion_value_schema", - "type": ".google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema" - } - ], - "resultType": ".google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "CreateSKAdNetworkConversionValueSchema", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateSKAdNetworkConversionValueSchema", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteSKAdNetworkConversionValueSchema_async", - "title": "AnalyticsAdminService deleteSKAdNetworkConversionValueSchema Sample", - "origin": "API_DEFINITION", - "description": " Deletes target SKAdNetworkConversionValueSchema.", - "canonical": true, - "file": "analytics_admin_service.delete_s_k_ad_network_conversion_value_schema.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSKAdNetworkConversionValueSchema", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteSKAdNetworkConversionValueSchema", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "DeleteSKAdNetworkConversionValueSchema", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteSKAdNetworkConversionValueSchema", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateSKAdNetworkConversionValueSchema_async", - "title": "AnalyticsAdminService updateSKAdNetworkConversionValueSchema Sample", - "origin": "API_DEFINITION", - "description": " Updates a SKAdNetworkConversionValueSchema.", - "canonical": true, - "file": "analytics_admin_service.update_s_k_ad_network_conversion_value_schema.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSKAdNetworkConversionValueSchema", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateSKAdNetworkConversionValueSchema", - "async": true, - "parameters": [ - { - "name": "skadnetwork_conversion_value_schema", - "type": ".google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "UpdateSKAdNetworkConversionValueSchema", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateSKAdNetworkConversionValueSchema", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListSKAdNetworkConversionValueSchemas_async", - "title": "AnalyticsAdminService listSKAdNetworkConversionValueSchemas Sample", - "origin": "API_DEFINITION", - "description": " Lists SKAdNetworkConversionValueSchema on a stream. Properties can have at most one SKAdNetworkConversionValueSchema.", - "canonical": true, - "file": "analytics_admin_service.list_s_k_ad_network_conversion_value_schemas.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSKAdNetworkConversionValueSchemas", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListSKAdNetworkConversionValueSchemas", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ListSKAdNetworkConversionValueSchemas", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListSKAdNetworkConversionValueSchemas", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_SearchChangeHistoryEvents_async", - "title": "AnalyticsAdminService searchChangeHistoryEvents Sample", - "origin": "API_DEFINITION", - "description": " Searches through all changes to an account or its children given the specified set of filters. Only returns the subset of changes supported by the API. The UI may return additional changes.", - "canonical": true, - "file": "analytics_admin_service.search_change_history_events.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 106, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchChangeHistoryEvents", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.SearchChangeHistoryEvents", - "async": true, - "parameters": [ - { - "name": "account", - "type": "TYPE_STRING" - }, - { - "name": "property", - "type": "TYPE_STRING" - }, - { - "name": "resource_type", - "type": "TYPE_ENUM[]" - }, - { - "name": "action", - "type": "TYPE_ENUM[]" - }, - { - "name": "actor_email", - "type": "TYPE_STRING[]" - }, - { - "name": "earliest_change_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "latest_change_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "SearchChangeHistoryEvents", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.SearchChangeHistoryEvents", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetGoogleSignalsSettings_async", - "title": "AnalyticsAdminService getGoogleSignalsSettings Sample", - "origin": "API_DEFINITION", - "description": " Lookup for Google Signals settings for a property.", - "canonical": true, - "file": "analytics_admin_service.get_google_signals_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetGoogleSignalsSettings", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetGoogleSignalsSettings", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.GoogleSignalsSettings", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetGoogleSignalsSettings", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetGoogleSignalsSettings", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateGoogleSignalsSettings_async", - "title": "AnalyticsAdminService updateGoogleSignalsSettings Sample", - "origin": "API_DEFINITION", - "description": " Updates Google Signals settings for a property.", - "canonical": true, - "file": "analytics_admin_service.update_google_signals_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateGoogleSignalsSettings", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateGoogleSignalsSettings", - "async": true, - "parameters": [ - { - "name": "google_signals_settings", - "type": ".google.analytics.admin.v1alpha.GoogleSignalsSettings" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.analytics.admin.v1alpha.GoogleSignalsSettings", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "UpdateGoogleSignalsSettings", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateGoogleSignalsSettings", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateConversionEvent_async", - "title": "AnalyticsAdminService createConversionEvent Sample", - "origin": "API_DEFINITION", - "description": " Deprecated: Use `CreateKeyEvent` instead. Creates a conversion event with the specified attributes.", - "canonical": true, - "file": "analytics_admin_service.create_conversion_event.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateConversionEvent", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateConversionEvent", - "async": true, - "parameters": [ - { - "name": "conversion_event", - "type": ".google.analytics.admin.v1alpha.ConversionEvent" - }, - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ConversionEvent", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "CreateConversionEvent", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateConversionEvent", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateConversionEvent_async", - "title": "AnalyticsAdminService updateConversionEvent Sample", - "origin": "API_DEFINITION", - "description": " Deprecated: Use `UpdateKeyEvent` instead. Updates a conversion event with the specified attributes.", - "canonical": true, - "file": "analytics_admin_service.update_conversion_event.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateConversionEvent", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateConversionEvent", - "async": true, - "parameters": [ - { - "name": "conversion_event", - "type": ".google.analytics.admin.v1alpha.ConversionEvent" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ConversionEvent", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "UpdateConversionEvent", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateConversionEvent", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetConversionEvent_async", - "title": "AnalyticsAdminService getConversionEvent Sample", - "origin": "API_DEFINITION", - "description": " Deprecated: Use `GetKeyEvent` instead. Retrieve a single conversion event.", - "canonical": true, - "file": "analytics_admin_service.get_conversion_event.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetConversionEvent", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetConversionEvent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ConversionEvent", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetConversionEvent", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetConversionEvent", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteConversionEvent_async", - "title": "AnalyticsAdminService deleteConversionEvent Sample", - "origin": "API_DEFINITION", - "description": " Deprecated: Use `DeleteKeyEvent` instead. Deletes a conversion event in a property.", - "canonical": true, - "file": "analytics_admin_service.delete_conversion_event.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteConversionEvent", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteConversionEvent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "DeleteConversionEvent", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteConversionEvent", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListConversionEvents_async", - "title": "AnalyticsAdminService listConversionEvents Sample", - "origin": "API_DEFINITION", - "description": " Deprecated: Use `ListKeyEvents` instead. Returns a list of conversion events in the specified parent property. Returns an empty list if no conversion events are found.", - "canonical": true, - "file": "analytics_admin_service.list_conversion_events.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListConversionEvents", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListConversionEvents", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ListConversionEventsResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ListConversionEvents", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListConversionEvents", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateKeyEvent_async", - "title": "AnalyticsAdminService createKeyEvent Sample", - "origin": "API_DEFINITION", - "description": " Creates a Key Event.", - "canonical": true, - "file": "analytics_admin_service.create_key_event.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateKeyEvent", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateKeyEvent", - "async": true, - "parameters": [ - { - "name": "key_event", - "type": ".google.analytics.admin.v1alpha.KeyEvent" - }, - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.KeyEvent", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "CreateKeyEvent", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateKeyEvent", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateKeyEvent_async", - "title": "AnalyticsAdminService updateKeyEvent Sample", - "origin": "API_DEFINITION", - "description": " Updates a Key Event.", - "canonical": true, - "file": "analytics_admin_service.update_key_event.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateKeyEvent", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateKeyEvent", - "async": true, - "parameters": [ - { - "name": "key_event", - "type": ".google.analytics.admin.v1alpha.KeyEvent" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.analytics.admin.v1alpha.KeyEvent", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "UpdateKeyEvent", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateKeyEvent", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetKeyEvent_async", - "title": "AnalyticsAdminService getKeyEvent Sample", - "origin": "API_DEFINITION", - "description": " Retrieve a single Key Event.", - "canonical": true, - "file": "analytics_admin_service.get_key_event.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetKeyEvent", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetKeyEvent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.KeyEvent", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetKeyEvent", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetKeyEvent", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteKeyEvent_async", - "title": "AnalyticsAdminService deleteKeyEvent Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Key Event.", - "canonical": true, - "file": "analytics_admin_service.delete_key_event.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteKeyEvent", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteKeyEvent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "DeleteKeyEvent", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteKeyEvent", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListKeyEvents_async", - "title": "AnalyticsAdminService listKeyEvents Sample", - "origin": "API_DEFINITION", - "description": " Returns a list of Key Events in the specified parent property. Returns an empty list if no Key Events are found.", - "canonical": true, - "file": "analytics_admin_service.list_key_events.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListKeyEvents", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListKeyEvents", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ListKeyEventsResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ListKeyEvents", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListKeyEvents", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDisplayVideo360AdvertiserLink_async", - "title": "AnalyticsAdminService getDisplayVideo360AdvertiserLink Sample", - "origin": "API_DEFINITION", - "description": " Look up a single DisplayVideo360AdvertiserLink", - "canonical": true, - "file": "analytics_admin_service.get_display_video360_advertiser_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDisplayVideo360AdvertiserLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetDisplayVideo360AdvertiserLink", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetDisplayVideo360AdvertiserLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetDisplayVideo360AdvertiserLink", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDisplayVideo360AdvertiserLinks_async", - "title": "AnalyticsAdminService listDisplayVideo360AdvertiserLinks Sample", - "origin": "API_DEFINITION", - "description": " Lists all DisplayVideo360AdvertiserLinks on a property.", - "canonical": true, - "file": "analytics_admin_service.list_display_video360_advertiser_links.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDisplayVideo360AdvertiserLinks", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListDisplayVideo360AdvertiserLinks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ListDisplayVideo360AdvertiserLinks", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListDisplayVideo360AdvertiserLinks", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateDisplayVideo360AdvertiserLink_async", - "title": "AnalyticsAdminService createDisplayVideo360AdvertiserLink Sample", - "origin": "API_DEFINITION", - "description": " Creates a DisplayVideo360AdvertiserLink. This can only be utilized by users who have proper authorization both on the Google Analytics property and on the Display & Video 360 advertiser. Users who do not have access to the Display & Video 360 advertiser should instead seek to create a DisplayVideo360LinkProposal.", - "canonical": true, - "file": "analytics_admin_service.create_display_video360_advertiser_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDisplayVideo360AdvertiserLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateDisplayVideo360AdvertiserLink", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "display_video_360_advertiser_link", - "type": ".google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink" - } - ], - "resultType": ".google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "CreateDisplayVideo360AdvertiserLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateDisplayVideo360AdvertiserLink", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteDisplayVideo360AdvertiserLink_async", - "title": "AnalyticsAdminService deleteDisplayVideo360AdvertiserLink Sample", - "origin": "API_DEFINITION", - "description": " Deletes a DisplayVideo360AdvertiserLink on a property.", - "canonical": true, - "file": "analytics_admin_service.delete_display_video360_advertiser_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDisplayVideo360AdvertiserLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteDisplayVideo360AdvertiserLink", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "DeleteDisplayVideo360AdvertiserLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteDisplayVideo360AdvertiserLink", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDisplayVideo360AdvertiserLink_async", - "title": "AnalyticsAdminService updateDisplayVideo360AdvertiserLink Sample", - "origin": "API_DEFINITION", - "description": " Updates a DisplayVideo360AdvertiserLink on a property.", - "canonical": true, - "file": "analytics_admin_service.update_display_video360_advertiser_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDisplayVideo360AdvertiserLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateDisplayVideo360AdvertiserLink", - "async": true, - "parameters": [ - { - "name": "display_video_360_advertiser_link", - "type": ".google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "UpdateDisplayVideo360AdvertiserLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateDisplayVideo360AdvertiserLink", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDisplayVideo360AdvertiserLinkProposal_async", - "title": "AnalyticsAdminService getDisplayVideo360AdvertiserLinkProposal Sample", - "origin": "API_DEFINITION", - "description": " Lookup for a single DisplayVideo360AdvertiserLinkProposal.", - "canonical": true, - "file": "analytics_admin_service.get_display_video360_advertiser_link_proposal.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDisplayVideo360AdvertiserLinkProposal", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetDisplayVideo360AdvertiserLinkProposal", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetDisplayVideo360AdvertiserLinkProposal", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetDisplayVideo360AdvertiserLinkProposal", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDisplayVideo360AdvertiserLinkProposals_async", - "title": "AnalyticsAdminService listDisplayVideo360AdvertiserLinkProposals Sample", - "origin": "API_DEFINITION", - "description": " Lists DisplayVideo360AdvertiserLinkProposals on a property.", - "canonical": true, - "file": "analytics_admin_service.list_display_video360_advertiser_link_proposals.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDisplayVideo360AdvertiserLinkProposals", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListDisplayVideo360AdvertiserLinkProposals", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ListDisplayVideo360AdvertiserLinkProposals", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListDisplayVideo360AdvertiserLinkProposals", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateDisplayVideo360AdvertiserLinkProposal_async", - "title": "AnalyticsAdminService createDisplayVideo360AdvertiserLinkProposal Sample", - "origin": "API_DEFINITION", - "description": " Creates a DisplayVideo360AdvertiserLinkProposal.", - "canonical": true, - "file": "analytics_admin_service.create_display_video360_advertiser_link_proposal.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDisplayVideo360AdvertiserLinkProposal", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateDisplayVideo360AdvertiserLinkProposal", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "display_video_360_advertiser_link_proposal", - "type": ".google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal" - } - ], - "resultType": ".google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "CreateDisplayVideo360AdvertiserLinkProposal", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateDisplayVideo360AdvertiserLinkProposal", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteDisplayVideo360AdvertiserLinkProposal_async", - "title": "AnalyticsAdminService deleteDisplayVideo360AdvertiserLinkProposal Sample", - "origin": "API_DEFINITION", - "description": " Deletes a DisplayVideo360AdvertiserLinkProposal on a property. This can only be used on cancelled proposals.", - "canonical": true, - "file": "analytics_admin_service.delete_display_video360_advertiser_link_proposal.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDisplayVideo360AdvertiserLinkProposal", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteDisplayVideo360AdvertiserLinkProposal", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "DeleteDisplayVideo360AdvertiserLinkProposal", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteDisplayVideo360AdvertiserLinkProposal", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ApproveDisplayVideo360AdvertiserLinkProposal_async", - "title": "AnalyticsAdminService approveDisplayVideo360AdvertiserLinkProposal Sample", - "origin": "API_DEFINITION", - "description": " Approves a DisplayVideo360AdvertiserLinkProposal. The DisplayVideo360AdvertiserLinkProposal will be deleted and a new DisplayVideo360AdvertiserLink will be created.", - "canonical": true, - "file": "analytics_admin_service.approve_display_video360_advertiser_link_proposal.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ApproveDisplayVideo360AdvertiserLinkProposal", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ApproveDisplayVideo360AdvertiserLinkProposal", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ApproveDisplayVideo360AdvertiserLinkProposal", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ApproveDisplayVideo360AdvertiserLinkProposal", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CancelDisplayVideo360AdvertiserLinkProposal_async", - "title": "AnalyticsAdminService cancelDisplayVideo360AdvertiserLinkProposal Sample", - "origin": "API_DEFINITION", - "description": " Cancels a DisplayVideo360AdvertiserLinkProposal. Cancelling can mean either: - Declining a proposal initiated from Display & Video 360 - Withdrawing a proposal initiated from Google Analytics After being cancelled, a proposal will eventually be deleted automatically.", - "canonical": true, - "file": "analytics_admin_service.cancel_display_video360_advertiser_link_proposal.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CancelDisplayVideo360AdvertiserLinkProposal", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CancelDisplayVideo360AdvertiserLinkProposal", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "CancelDisplayVideo360AdvertiserLinkProposal", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CancelDisplayVideo360AdvertiserLinkProposal", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateCustomDimension_async", - "title": "AnalyticsAdminService createCustomDimension Sample", - "origin": "API_DEFINITION", - "description": " Creates a CustomDimension.", - "canonical": true, - "file": "analytics_admin_service.create_custom_dimension.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCustomDimension", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateCustomDimension", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "custom_dimension", - "type": ".google.analytics.admin.v1alpha.CustomDimension" - } - ], - "resultType": ".google.analytics.admin.v1alpha.CustomDimension", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "CreateCustomDimension", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateCustomDimension", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateCustomDimension_async", - "title": "AnalyticsAdminService updateCustomDimension Sample", - "origin": "API_DEFINITION", - "description": " Updates a CustomDimension on a property.", - "canonical": true, - "file": "analytics_admin_service.update_custom_dimension.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCustomDimension", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateCustomDimension", - "async": true, - "parameters": [ - { - "name": "custom_dimension", - "type": ".google.analytics.admin.v1alpha.CustomDimension" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.analytics.admin.v1alpha.CustomDimension", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "UpdateCustomDimension", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateCustomDimension", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListCustomDimensions_async", - "title": "AnalyticsAdminService listCustomDimensions Sample", - "origin": "API_DEFINITION", - "description": " Lists CustomDimensions on a property.", - "canonical": true, - "file": "analytics_admin_service.list_custom_dimensions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCustomDimensions", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListCustomDimensions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ListCustomDimensionsResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ListCustomDimensions", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListCustomDimensions", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ArchiveCustomDimension_async", - "title": "AnalyticsAdminService archiveCustomDimension Sample", - "origin": "API_DEFINITION", - "description": " Archives a CustomDimension on a property.", - "canonical": true, - "file": "analytics_admin_service.archive_custom_dimension.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ArchiveCustomDimension", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ArchiveCustomDimension", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ArchiveCustomDimension", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ArchiveCustomDimension", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetCustomDimension_async", - "title": "AnalyticsAdminService getCustomDimension Sample", - "origin": "API_DEFINITION", - "description": " Lookup for a single CustomDimension.", - "canonical": true, - "file": "analytics_admin_service.get_custom_dimension.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCustomDimension", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetCustomDimension", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.CustomDimension", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetCustomDimension", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetCustomDimension", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateCustomMetric_async", - "title": "AnalyticsAdminService createCustomMetric Sample", - "origin": "API_DEFINITION", - "description": " Creates a CustomMetric.", - "canonical": true, - "file": "analytics_admin_service.create_custom_metric.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCustomMetric", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateCustomMetric", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "custom_metric", - "type": ".google.analytics.admin.v1alpha.CustomMetric" - } - ], - "resultType": ".google.analytics.admin.v1alpha.CustomMetric", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "CreateCustomMetric", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateCustomMetric", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateCustomMetric_async", - "title": "AnalyticsAdminService updateCustomMetric Sample", - "origin": "API_DEFINITION", - "description": " Updates a CustomMetric on a property.", - "canonical": true, - "file": "analytics_admin_service.update_custom_metric.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCustomMetric", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateCustomMetric", - "async": true, - "parameters": [ - { - "name": "custom_metric", - "type": ".google.analytics.admin.v1alpha.CustomMetric" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.analytics.admin.v1alpha.CustomMetric", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "UpdateCustomMetric", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateCustomMetric", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListCustomMetrics_async", - "title": "AnalyticsAdminService listCustomMetrics Sample", - "origin": "API_DEFINITION", - "description": " Lists CustomMetrics on a property.", - "canonical": true, - "file": "analytics_admin_service.list_custom_metrics.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCustomMetrics", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListCustomMetrics", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ListCustomMetricsResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ListCustomMetrics", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListCustomMetrics", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ArchiveCustomMetric_async", - "title": "AnalyticsAdminService archiveCustomMetric Sample", - "origin": "API_DEFINITION", - "description": " Archives a CustomMetric on a property.", - "canonical": true, - "file": "analytics_admin_service.archive_custom_metric.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ArchiveCustomMetric", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ArchiveCustomMetric", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ArchiveCustomMetric", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ArchiveCustomMetric", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetCustomMetric_async", - "title": "AnalyticsAdminService getCustomMetric Sample", - "origin": "API_DEFINITION", - "description": " Lookup for a single CustomMetric.", - "canonical": true, - "file": "analytics_admin_service.get_custom_metric.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCustomMetric", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetCustomMetric", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.CustomMetric", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetCustomMetric", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetCustomMetric", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataRetentionSettings_async", - "title": "AnalyticsAdminService getDataRetentionSettings Sample", - "origin": "API_DEFINITION", - "description": " Returns the singleton data retention settings for this property.", - "canonical": true, - "file": "analytics_admin_service.get_data_retention_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDataRetentionSettings", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetDataRetentionSettings", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.DataRetentionSettings", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetDataRetentionSettings", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetDataRetentionSettings", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDataRetentionSettings_async", - "title": "AnalyticsAdminService updateDataRetentionSettings Sample", - "origin": "API_DEFINITION", - "description": " Updates the singleton data retention settings for this property.", - "canonical": true, - "file": "analytics_admin_service.update_data_retention_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDataRetentionSettings", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateDataRetentionSettings", - "async": true, - "parameters": [ - { - "name": "data_retention_settings", - "type": ".google.analytics.admin.v1alpha.DataRetentionSettings" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.analytics.admin.v1alpha.DataRetentionSettings", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "UpdateDataRetentionSettings", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateDataRetentionSettings", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateDataStream_async", - "title": "AnalyticsAdminService createDataStream Sample", - "origin": "API_DEFINITION", - "description": " Creates a DataStream.", - "canonical": true, - "file": "analytics_admin_service.create_data_stream.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDataStream", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateDataStream", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "data_stream", - "type": ".google.analytics.admin.v1alpha.DataStream" - } - ], - "resultType": ".google.analytics.admin.v1alpha.DataStream", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "CreateDataStream", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateDataStream", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteDataStream_async", - "title": "AnalyticsAdminService deleteDataStream Sample", - "origin": "API_DEFINITION", - "description": " Deletes a DataStream on a property.", - "canonical": true, - "file": "analytics_admin_service.delete_data_stream.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDataStream", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteDataStream", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "DeleteDataStream", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteDataStream", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDataStream_async", - "title": "AnalyticsAdminService updateDataStream Sample", - "origin": "API_DEFINITION", - "description": " Updates a DataStream on a property.", - "canonical": true, - "file": "analytics_admin_service.update_data_stream.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDataStream", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateDataStream", - "async": true, - "parameters": [ - { - "name": "data_stream", - "type": ".google.analytics.admin.v1alpha.DataStream" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.analytics.admin.v1alpha.DataStream", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "UpdateDataStream", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateDataStream", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListDataStreams_async", - "title": "AnalyticsAdminService listDataStreams Sample", - "origin": "API_DEFINITION", - "description": " Lists DataStreams on a property.", - "canonical": true, - "file": "analytics_admin_service.list_data_streams.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDataStreams", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListDataStreams", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ListDataStreamsResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ListDataStreams", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListDataStreams", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataStream_async", - "title": "AnalyticsAdminService getDataStream Sample", - "origin": "API_DEFINITION", - "description": " Lookup for a single DataStream.", - "canonical": true, - "file": "analytics_admin_service.get_data_stream.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDataStream", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetDataStream", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.DataStream", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetDataStream", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetDataStream", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAudience_async", - "title": "AnalyticsAdminService getAudience Sample", - "origin": "API_DEFINITION", - "description": " Lookup for a single Audience. Audiences created before 2020 may not be supported. Default audiences will not show filter definitions.", - "canonical": true, - "file": "analytics_admin_service.get_audience.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAudience", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetAudience", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.Audience", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetAudience", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetAudience", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAudiences_async", - "title": "AnalyticsAdminService listAudiences Sample", - "origin": "API_DEFINITION", - "description": " Lists Audiences on a property. Audiences created before 2020 may not be supported. Default audiences will not show filter definitions.", - "canonical": true, - "file": "analytics_admin_service.list_audiences.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAudiences", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListAudiences", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ListAudiencesResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ListAudiences", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListAudiences", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateAudience_async", - "title": "AnalyticsAdminService createAudience Sample", - "origin": "API_DEFINITION", - "description": " Creates an Audience.", - "canonical": true, - "file": "analytics_admin_service.create_audience.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAudience", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateAudience", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "audience", - "type": ".google.analytics.admin.v1alpha.Audience" - } - ], - "resultType": ".google.analytics.admin.v1alpha.Audience", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "CreateAudience", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateAudience", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAudience_async", - "title": "AnalyticsAdminService updateAudience Sample", - "origin": "API_DEFINITION", - "description": " Updates an Audience on a property.", - "canonical": true, - "file": "analytics_admin_service.update_audience.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAudience", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateAudience", - "async": true, - "parameters": [ - { - "name": "audience", - "type": ".google.analytics.admin.v1alpha.Audience" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.analytics.admin.v1alpha.Audience", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "UpdateAudience", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateAudience", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ArchiveAudience_async", - "title": "AnalyticsAdminService archiveAudience Sample", - "origin": "API_DEFINITION", - "description": " Archives an Audience on a property.", - "canonical": true, - "file": "analytics_admin_service.archive_audience.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ArchiveAudience", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ArchiveAudience", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ArchiveAudience", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ArchiveAudience", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetSearchAds360Link_async", - "title": "AnalyticsAdminService getSearchAds360Link Sample", - "origin": "API_DEFINITION", - "description": " Look up a single SearchAds360Link", - "canonical": true, - "file": "analytics_admin_service.get_search_ads360_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSearchAds360Link", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetSearchAds360Link", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.SearchAds360Link", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetSearchAds360Link", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetSearchAds360Link", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListSearchAds360Links_async", - "title": "AnalyticsAdminService listSearchAds360Links Sample", - "origin": "API_DEFINITION", - "description": " Lists all SearchAds360Links on a property.", - "canonical": true, - "file": "analytics_admin_service.list_search_ads360_links.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSearchAds360Links", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListSearchAds360Links", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ListSearchAds360LinksResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ListSearchAds360Links", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListSearchAds360Links", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateSearchAds360Link_async", - "title": "AnalyticsAdminService createSearchAds360Link Sample", - "origin": "API_DEFINITION", - "description": " Creates a SearchAds360Link.", - "canonical": true, - "file": "analytics_admin_service.create_search_ads360_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSearchAds360Link", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateSearchAds360Link", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "search_ads_360_link", - "type": ".google.analytics.admin.v1alpha.SearchAds360Link" - } - ], - "resultType": ".google.analytics.admin.v1alpha.SearchAds360Link", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "CreateSearchAds360Link", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateSearchAds360Link", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteSearchAds360Link_async", - "title": "AnalyticsAdminService deleteSearchAds360Link Sample", - "origin": "API_DEFINITION", - "description": " Deletes a SearchAds360Link on a property.", - "canonical": true, - "file": "analytics_admin_service.delete_search_ads360_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSearchAds360Link", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteSearchAds360Link", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "DeleteSearchAds360Link", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteSearchAds360Link", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateSearchAds360Link_async", - "title": "AnalyticsAdminService updateSearchAds360Link Sample", - "origin": "API_DEFINITION", - "description": " Updates a SearchAds360Link on a property.", - "canonical": true, - "file": "analytics_admin_service.update_search_ads360_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSearchAds360Link", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateSearchAds360Link", - "async": true, - "parameters": [ - { - "name": "search_ads_360_link", - "type": ".google.analytics.admin.v1alpha.SearchAds360Link" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.analytics.admin.v1alpha.SearchAds360Link", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "UpdateSearchAds360Link", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateSearchAds360Link", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAttributionSettings_async", - "title": "AnalyticsAdminService getAttributionSettings Sample", - "origin": "API_DEFINITION", - "description": " Lookup for a AttributionSettings singleton.", - "canonical": true, - "file": "analytics_admin_service.get_attribution_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAttributionSettings", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetAttributionSettings", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.AttributionSettings", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetAttributionSettings", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetAttributionSettings", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAttributionSettings_async", - "title": "AnalyticsAdminService updateAttributionSettings Sample", - "origin": "API_DEFINITION", - "description": " Updates attribution settings on a property.", - "canonical": true, - "file": "analytics_admin_service.update_attribution_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAttributionSettings", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateAttributionSettings", - "async": true, - "parameters": [ - { - "name": "attribution_settings", - "type": ".google.analytics.admin.v1alpha.AttributionSettings" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.analytics.admin.v1alpha.AttributionSettings", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "UpdateAttributionSettings", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateAttributionSettings", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_RunAccessReport_async", - "title": "AnalyticsAdminService runAccessReport Sample", - "origin": "API_DEFINITION", - "description": " Returns a customized report of data access records. The report provides records of each time a user reads Google Analytics reporting data. Access records are retained for up to 2 years. Data Access Reports can be requested for a property. Reports may be requested for any property, but dimensions that aren't related to quota can only be requested on Google Analytics 360 properties. This method is only available to Administrators. These data access records include GA UI Reporting, GA UI Explorations, GA Data API, and other products like Firebase & Admob that can retrieve data from Google Analytics through a linkage. These records don't include property configuration changes like adding a stream or changing a property's time zone. For configuration change history, see [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents). To give your feedback on this API, complete the [Google Analytics Access Reports feedback](https://docs.google.com/forms/d/e/1FAIpQLSdmEBUrMzAEdiEKk5TV5dEHvDUZDRlgWYdQdAeSdtR4hVjEhw/viewform) form.", - "canonical": true, - "file": "analytics_admin_service.run_access_report.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 146, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RunAccessReport", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.RunAccessReport", - "async": true, - "parameters": [ - { - "name": "entity", - "type": "TYPE_STRING" - }, - { - "name": "dimensions", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "metrics", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "date_ranges", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "dimension_filter", - "type": ".google.analytics.admin.v1alpha.AccessFilterExpression" - }, - { - "name": "metric_filter", - "type": ".google.analytics.admin.v1alpha.AccessFilterExpression" - }, - { - "name": "offset", - "type": "TYPE_INT64" - }, - { - "name": "limit", - "type": "TYPE_INT64" - }, - { - "name": "time_zone", - "type": "TYPE_STRING" - }, - { - "name": "order_bys", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "return_entity_quota", - "type": "TYPE_BOOL" - }, - { - "name": "include_all_users", - "type": "TYPE_BOOL" - }, - { - "name": "expand_groups", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.analytics.admin.v1alpha.RunAccessReportResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "RunAccessReport", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.RunAccessReport", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateAccessBinding_async", - "title": "AnalyticsAdminService createAccessBinding Sample", - "origin": "API_DEFINITION", - "description": " Creates an access binding on an account or property.", - "canonical": true, - "file": "analytics_admin_service.create_access_binding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAccessBinding", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateAccessBinding", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "access_binding", - "type": ".google.analytics.admin.v1alpha.AccessBinding" - } - ], - "resultType": ".google.analytics.admin.v1alpha.AccessBinding", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "CreateAccessBinding", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateAccessBinding", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAccessBinding_async", - "title": "AnalyticsAdminService getAccessBinding Sample", - "origin": "API_DEFINITION", - "description": " Gets information about an access binding.", - "canonical": true, - "file": "analytics_admin_service.get_access_binding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAccessBinding", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetAccessBinding", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.AccessBinding", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetAccessBinding", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetAccessBinding", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateAccessBinding_async", - "title": "AnalyticsAdminService updateAccessBinding Sample", - "origin": "API_DEFINITION", - "description": " Updates an access binding on an account or property.", - "canonical": true, - "file": "analytics_admin_service.update_access_binding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAccessBinding", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateAccessBinding", - "async": true, - "parameters": [ - { - "name": "access_binding", - "type": ".google.analytics.admin.v1alpha.AccessBinding" - } - ], - "resultType": ".google.analytics.admin.v1alpha.AccessBinding", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "UpdateAccessBinding", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateAccessBinding", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteAccessBinding_async", - "title": "AnalyticsAdminService deleteAccessBinding Sample", - "origin": "API_DEFINITION", - "description": " Deletes an access binding on an account or property.", - "canonical": true, - "file": "analytics_admin_service.delete_access_binding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAccessBinding", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteAccessBinding", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "DeleteAccessBinding", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteAccessBinding", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAccessBindings_async", - "title": "AnalyticsAdminService listAccessBindings Sample", - "origin": "API_DEFINITION", - "description": " Lists all access bindings on an account or property.", - "canonical": true, - "file": "analytics_admin_service.list_access_bindings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAccessBindings", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListAccessBindings", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ListAccessBindingsResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ListAccessBindings", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListAccessBindings", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchCreateAccessBindings_async", - "title": "AnalyticsAdminService batchCreateAccessBindings Sample", - "origin": "API_DEFINITION", - "description": " Creates information about multiple access bindings to an account or property. This method is transactional. If any AccessBinding cannot be created, none of the AccessBindings will be created.", - "canonical": true, - "file": "analytics_admin_service.batch_create_access_bindings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCreateAccessBindings", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.BatchCreateAccessBindings", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "BatchCreateAccessBindings", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.BatchCreateAccessBindings", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchGetAccessBindings_async", - "title": "AnalyticsAdminService batchGetAccessBindings Sample", - "origin": "API_DEFINITION", - "description": " Gets information about multiple access bindings to an account or property.", - "canonical": true, - "file": "analytics_admin_service.batch_get_access_bindings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchGetAccessBindings", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.BatchGetAccessBindings", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "names", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "BatchGetAccessBindings", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.BatchGetAccessBindings", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchUpdateAccessBindings_async", - "title": "AnalyticsAdminService batchUpdateAccessBindings Sample", - "origin": "API_DEFINITION", - "description": " Updates information about multiple access bindings to an account or property.", - "canonical": true, - "file": "analytics_admin_service.batch_update_access_bindings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchUpdateAccessBindings", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.BatchUpdateAccessBindings", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "BatchUpdateAccessBindings", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.BatchUpdateAccessBindings", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_BatchDeleteAccessBindings_async", - "title": "AnalyticsAdminService batchDeleteAccessBindings Sample", - "origin": "API_DEFINITION", - "description": " Deletes information about multiple users' links to an account or property.", - "canonical": true, - "file": "analytics_admin_service.batch_delete_access_bindings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchDeleteAccessBindings", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.BatchDeleteAccessBindings", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "BatchDeleteAccessBindings", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.BatchDeleteAccessBindings", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetExpandedDataSet_async", - "title": "AnalyticsAdminService getExpandedDataSet Sample", - "origin": "API_DEFINITION", - "description": " Lookup for a single ExpandedDataSet.", - "canonical": true, - "file": "analytics_admin_service.get_expanded_data_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetExpandedDataSet", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetExpandedDataSet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ExpandedDataSet", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetExpandedDataSet", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetExpandedDataSet", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListExpandedDataSets_async", - "title": "AnalyticsAdminService listExpandedDataSets Sample", - "origin": "API_DEFINITION", - "description": " Lists ExpandedDataSets on a property.", - "canonical": true, - "file": "analytics_admin_service.list_expanded_data_sets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListExpandedDataSets", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListExpandedDataSets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ListExpandedDataSetsResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ListExpandedDataSets", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListExpandedDataSets", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateExpandedDataSet_async", - "title": "AnalyticsAdminService createExpandedDataSet Sample", - "origin": "API_DEFINITION", - "description": " Creates a ExpandedDataSet.", - "canonical": true, - "file": "analytics_admin_service.create_expanded_data_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateExpandedDataSet", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateExpandedDataSet", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "expanded_data_set", - "type": ".google.analytics.admin.v1alpha.ExpandedDataSet" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ExpandedDataSet", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "CreateExpandedDataSet", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateExpandedDataSet", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateExpandedDataSet_async", - "title": "AnalyticsAdminService updateExpandedDataSet Sample", - "origin": "API_DEFINITION", - "description": " Updates a ExpandedDataSet on a property.", - "canonical": true, - "file": "analytics_admin_service.update_expanded_data_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateExpandedDataSet", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateExpandedDataSet", - "async": true, - "parameters": [ - { - "name": "expanded_data_set", - "type": ".google.analytics.admin.v1alpha.ExpandedDataSet" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ExpandedDataSet", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "UpdateExpandedDataSet", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateExpandedDataSet", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteExpandedDataSet_async", - "title": "AnalyticsAdminService deleteExpandedDataSet Sample", - "origin": "API_DEFINITION", - "description": " Deletes a ExpandedDataSet on a property.", - "canonical": true, - "file": "analytics_admin_service.delete_expanded_data_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteExpandedDataSet", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteExpandedDataSet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "DeleteExpandedDataSet", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteExpandedDataSet", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetChannelGroup_async", - "title": "AnalyticsAdminService getChannelGroup Sample", - "origin": "API_DEFINITION", - "description": " Lookup for a single ChannelGroup.", - "canonical": true, - "file": "analytics_admin_service.get_channel_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetChannelGroup", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetChannelGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ChannelGroup", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetChannelGroup", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetChannelGroup", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListChannelGroups_async", - "title": "AnalyticsAdminService listChannelGroups Sample", - "origin": "API_DEFINITION", - "description": " Lists ChannelGroups on a property.", - "canonical": true, - "file": "analytics_admin_service.list_channel_groups.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListChannelGroups", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListChannelGroups", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ListChannelGroupsResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ListChannelGroups", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListChannelGroups", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateChannelGroup_async", - "title": "AnalyticsAdminService createChannelGroup Sample", - "origin": "API_DEFINITION", - "description": " Creates a ChannelGroup.", - "canonical": true, - "file": "analytics_admin_service.create_channel_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateChannelGroup", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateChannelGroup", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "channel_group", - "type": ".google.analytics.admin.v1alpha.ChannelGroup" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ChannelGroup", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "CreateChannelGroup", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateChannelGroup", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateChannelGroup_async", - "title": "AnalyticsAdminService updateChannelGroup Sample", - "origin": "API_DEFINITION", - "description": " Updates a ChannelGroup.", - "canonical": true, - "file": "analytics_admin_service.update_channel_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateChannelGroup", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateChannelGroup", - "async": true, - "parameters": [ - { - "name": "channel_group", - "type": ".google.analytics.admin.v1alpha.ChannelGroup" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ChannelGroup", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "UpdateChannelGroup", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateChannelGroup", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteChannelGroup_async", - "title": "AnalyticsAdminService deleteChannelGroup Sample", - "origin": "API_DEFINITION", - "description": " Deletes a ChannelGroup on a property.", - "canonical": true, - "file": "analytics_admin_service.delete_channel_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteChannelGroup", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteChannelGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "DeleteChannelGroup", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteChannelGroup", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateBigQueryLink_async", - "title": "AnalyticsAdminService createBigQueryLink Sample", - "origin": "API_DEFINITION", - "description": " Creates a BigQueryLink.", - "canonical": true, - "file": "analytics_admin_service.create_big_query_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateBigQueryLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateBigQueryLink", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "bigquery_link", - "type": ".google.analytics.admin.v1alpha.BigQueryLink" - } - ], - "resultType": ".google.analytics.admin.v1alpha.BigQueryLink", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "CreateBigQueryLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateBigQueryLink", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetBigQueryLink_async", - "title": "AnalyticsAdminService getBigQueryLink Sample", - "origin": "API_DEFINITION", - "description": " Lookup for a single BigQuery Link.", - "canonical": true, - "file": "analytics_admin_service.get_big_query_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBigQueryLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetBigQueryLink", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.BigQueryLink", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetBigQueryLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetBigQueryLink", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListBigQueryLinks_async", - "title": "AnalyticsAdminService listBigQueryLinks Sample", - "origin": "API_DEFINITION", - "description": " Lists BigQuery Links on a property.", - "canonical": true, - "file": "analytics_admin_service.list_big_query_links.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBigQueryLinks", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListBigQueryLinks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ListBigQueryLinksResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ListBigQueryLinks", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListBigQueryLinks", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteBigQueryLink_async", - "title": "AnalyticsAdminService deleteBigQueryLink Sample", - "origin": "API_DEFINITION", - "description": " Deletes a BigQueryLink on a property.", - "canonical": true, - "file": "analytics_admin_service.delete_big_query_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteBigQueryLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteBigQueryLink", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "DeleteBigQueryLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteBigQueryLink", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateBigQueryLink_async", - "title": "AnalyticsAdminService updateBigQueryLink Sample", - "origin": "API_DEFINITION", - "description": " Updates a BigQueryLink.", - "canonical": true, - "file": "analytics_admin_service.update_big_query_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateBigQueryLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateBigQueryLink", - "async": true, - "parameters": [ - { - "name": "bigquery_link", - "type": ".google.analytics.admin.v1alpha.BigQueryLink" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.analytics.admin.v1alpha.BigQueryLink", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "UpdateBigQueryLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateBigQueryLink", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetEnhancedMeasurementSettings_async", - "title": "AnalyticsAdminService getEnhancedMeasurementSettings Sample", - "origin": "API_DEFINITION", - "description": " Returns the enhanced measurement settings for this data stream. Note that the stream must enable enhanced measurement for these settings to take effect.", - "canonical": true, - "file": "analytics_admin_service.get_enhanced_measurement_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEnhancedMeasurementSettings", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetEnhancedMeasurementSettings", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.EnhancedMeasurementSettings", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetEnhancedMeasurementSettings", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetEnhancedMeasurementSettings", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateEnhancedMeasurementSettings_async", - "title": "AnalyticsAdminService updateEnhancedMeasurementSettings Sample", - "origin": "API_DEFINITION", - "description": " Updates the enhanced measurement settings for this data stream. Note that the stream must enable enhanced measurement for these settings to take effect.", - "canonical": true, - "file": "analytics_admin_service.update_enhanced_measurement_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateEnhancedMeasurementSettings", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateEnhancedMeasurementSettings", - "async": true, - "parameters": [ - { - "name": "enhanced_measurement_settings", - "type": ".google.analytics.admin.v1alpha.EnhancedMeasurementSettings" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.analytics.admin.v1alpha.EnhancedMeasurementSettings", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "UpdateEnhancedMeasurementSettings", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateEnhancedMeasurementSettings", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetAdSenseLink_async", - "title": "AnalyticsAdminService getAdSenseLink Sample", - "origin": "API_DEFINITION", - "description": " Looks up a single AdSenseLink.", - "canonical": true, - "file": "analytics_admin_service.get_ad_sense_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAdSenseLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetAdSenseLink", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.AdSenseLink", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetAdSenseLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetAdSenseLink", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateAdSenseLink_async", - "title": "AnalyticsAdminService createAdSenseLink Sample", - "origin": "API_DEFINITION", - "description": " Creates an AdSenseLink.", - "canonical": true, - "file": "analytics_admin_service.create_ad_sense_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAdSenseLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateAdSenseLink", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "adsense_link", - "type": ".google.analytics.admin.v1alpha.AdSenseLink" - } - ], - "resultType": ".google.analytics.admin.v1alpha.AdSenseLink", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "CreateAdSenseLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateAdSenseLink", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteAdSenseLink_async", - "title": "AnalyticsAdminService deleteAdSenseLink Sample", - "origin": "API_DEFINITION", - "description": " Deletes an AdSenseLink.", - "canonical": true, - "file": "analytics_admin_service.delete_ad_sense_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAdSenseLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteAdSenseLink", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "DeleteAdSenseLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteAdSenseLink", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListAdSenseLinks_async", - "title": "AnalyticsAdminService listAdSenseLinks Sample", - "origin": "API_DEFINITION", - "description": " Lists AdSenseLinks on a property.", - "canonical": true, - "file": "analytics_admin_service.list_ad_sense_links.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAdSenseLinks", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListAdSenseLinks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ListAdSenseLinksResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ListAdSenseLinks", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListAdSenseLinks", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetEventCreateRule_async", - "title": "AnalyticsAdminService getEventCreateRule Sample", - "origin": "API_DEFINITION", - "description": " Lookup for a single EventCreateRule.", - "canonical": true, - "file": "analytics_admin_service.get_event_create_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEventCreateRule", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetEventCreateRule", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.EventCreateRule", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetEventCreateRule", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetEventCreateRule", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListEventCreateRules_async", - "title": "AnalyticsAdminService listEventCreateRules Sample", - "origin": "API_DEFINITION", - "description": " Lists EventCreateRules on a web data stream.", - "canonical": true, - "file": "analytics_admin_service.list_event_create_rules.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEventCreateRules", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListEventCreateRules", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ListEventCreateRulesResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ListEventCreateRules", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListEventCreateRules", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateEventCreateRule_async", - "title": "AnalyticsAdminService createEventCreateRule Sample", - "origin": "API_DEFINITION", - "description": " Creates an EventCreateRule.", - "canonical": true, - "file": "analytics_admin_service.create_event_create_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateEventCreateRule", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateEventCreateRule", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "event_create_rule", - "type": ".google.analytics.admin.v1alpha.EventCreateRule" - } - ], - "resultType": ".google.analytics.admin.v1alpha.EventCreateRule", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "CreateEventCreateRule", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateEventCreateRule", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateEventCreateRule_async", - "title": "AnalyticsAdminService updateEventCreateRule Sample", - "origin": "API_DEFINITION", - "description": " Updates an EventCreateRule.", - "canonical": true, - "file": "analytics_admin_service.update_event_create_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateEventCreateRule", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateEventCreateRule", - "async": true, - "parameters": [ - { - "name": "event_create_rule", - "type": ".google.analytics.admin.v1alpha.EventCreateRule" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.analytics.admin.v1alpha.EventCreateRule", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "UpdateEventCreateRule", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateEventCreateRule", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteEventCreateRule_async", - "title": "AnalyticsAdminService deleteEventCreateRule Sample", - "origin": "API_DEFINITION", - "description": " Deletes an EventCreateRule.", - "canonical": true, - "file": "analytics_admin_service.delete_event_create_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteEventCreateRule", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteEventCreateRule", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "DeleteEventCreateRule", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteEventCreateRule", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetEventEditRule_async", - "title": "AnalyticsAdminService getEventEditRule Sample", - "origin": "API_DEFINITION", - "description": " Lookup for a single EventEditRule.", - "canonical": true, - "file": "analytics_admin_service.get_event_edit_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEventEditRule", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetEventEditRule", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.EventEditRule", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetEventEditRule", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetEventEditRule", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListEventEditRules_async", - "title": "AnalyticsAdminService listEventEditRules Sample", - "origin": "API_DEFINITION", - "description": " Lists EventEditRules on a web data stream.", - "canonical": true, - "file": "analytics_admin_service.list_event_edit_rules.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEventEditRules", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListEventEditRules", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ListEventEditRulesResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ListEventEditRules", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListEventEditRules", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateEventEditRule_async", - "title": "AnalyticsAdminService createEventEditRule Sample", - "origin": "API_DEFINITION", - "description": " Creates an EventEditRule.", - "canonical": true, - "file": "analytics_admin_service.create_event_edit_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateEventEditRule", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateEventEditRule", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "event_edit_rule", - "type": ".google.analytics.admin.v1alpha.EventEditRule" - } - ], - "resultType": ".google.analytics.admin.v1alpha.EventEditRule", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "CreateEventEditRule", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateEventEditRule", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateEventEditRule_async", - "title": "AnalyticsAdminService updateEventEditRule Sample", - "origin": "API_DEFINITION", - "description": " Updates an EventEditRule.", - "canonical": true, - "file": "analytics_admin_service.update_event_edit_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateEventEditRule", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateEventEditRule", - "async": true, - "parameters": [ - { - "name": "event_edit_rule", - "type": ".google.analytics.admin.v1alpha.EventEditRule" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.analytics.admin.v1alpha.EventEditRule", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "UpdateEventEditRule", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateEventEditRule", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteEventEditRule_async", - "title": "AnalyticsAdminService deleteEventEditRule Sample", - "origin": "API_DEFINITION", - "description": " Deletes an EventEditRule.", - "canonical": true, - "file": "analytics_admin_service.delete_event_edit_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteEventEditRule", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteEventEditRule", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "DeleteEventEditRule", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteEventEditRule", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ReorderEventEditRules_async", - "title": "AnalyticsAdminService reorderEventEditRules Sample", - "origin": "API_DEFINITION", - "description": " Changes the processing order of event edit rules on the specified stream.", - "canonical": true, - "file": "analytics_admin_service.reorder_event_edit_rules.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReorderEventEditRules", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ReorderEventEditRules", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "event_edit_rules", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ReorderEventEditRules", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ReorderEventEditRules", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateDataRedactionSettings_async", - "title": "AnalyticsAdminService updateDataRedactionSettings Sample", - "origin": "API_DEFINITION", - "description": " Updates a DataRedactionSettings on a property.", - "canonical": true, - "file": "analytics_admin_service.update_data_redaction_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDataRedactionSettings", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateDataRedactionSettings", - "async": true, - "parameters": [ - { - "name": "data_redaction_settings", - "type": ".google.analytics.admin.v1alpha.DataRedactionSettings" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.analytics.admin.v1alpha.DataRedactionSettings", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "UpdateDataRedactionSettings", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateDataRedactionSettings", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetDataRedactionSettings_async", - "title": "AnalyticsAdminService getDataRedactionSettings Sample", - "origin": "API_DEFINITION", - "description": " Lookup for a single DataRedactionSettings.", - "canonical": true, - "file": "analytics_admin_service.get_data_redaction_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDataRedactionSettings", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetDataRedactionSettings", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.DataRedactionSettings", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetDataRedactionSettings", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetDataRedactionSettings", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetCalculatedMetric_async", - "title": "AnalyticsAdminService getCalculatedMetric Sample", - "origin": "API_DEFINITION", - "description": " Lookup for a single CalculatedMetric.", - "canonical": true, - "file": "analytics_admin_service.get_calculated_metric.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCalculatedMetric", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetCalculatedMetric", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.CalculatedMetric", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetCalculatedMetric", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetCalculatedMetric", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateCalculatedMetric_async", - "title": "AnalyticsAdminService createCalculatedMetric Sample", - "origin": "API_DEFINITION", - "description": " Creates a CalculatedMetric.", - "canonical": true, - "file": "analytics_admin_service.create_calculated_metric.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCalculatedMetric", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateCalculatedMetric", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "calculated_metric_id", - "type": "TYPE_STRING" - }, - { - "name": "calculated_metric", - "type": ".google.analytics.admin.v1alpha.CalculatedMetric" - } - ], - "resultType": ".google.analytics.admin.v1alpha.CalculatedMetric", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "CreateCalculatedMetric", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateCalculatedMetric", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListCalculatedMetrics_async", - "title": "AnalyticsAdminService listCalculatedMetrics Sample", - "origin": "API_DEFINITION", - "description": " Lists CalculatedMetrics on a property.", - "canonical": true, - "file": "analytics_admin_service.list_calculated_metrics.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCalculatedMetrics", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListCalculatedMetrics", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ListCalculatedMetricsResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ListCalculatedMetrics", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListCalculatedMetrics", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateCalculatedMetric_async", - "title": "AnalyticsAdminService updateCalculatedMetric Sample", - "origin": "API_DEFINITION", - "description": " Updates a CalculatedMetric on a property.", - "canonical": true, - "file": "analytics_admin_service.update_calculated_metric.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCalculatedMetric", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateCalculatedMetric", - "async": true, - "parameters": [ - { - "name": "calculated_metric", - "type": ".google.analytics.admin.v1alpha.CalculatedMetric" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.analytics.admin.v1alpha.CalculatedMetric", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "UpdateCalculatedMetric", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateCalculatedMetric", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteCalculatedMetric_async", - "title": "AnalyticsAdminService deleteCalculatedMetric Sample", - "origin": "API_DEFINITION", - "description": " Deletes a CalculatedMetric on a property.", - "canonical": true, - "file": "analytics_admin_service.delete_calculated_metric.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCalculatedMetric", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteCalculatedMetric", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "DeleteCalculatedMetric", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteCalculatedMetric", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateRollupProperty_async", - "title": "AnalyticsAdminService createRollupProperty Sample", - "origin": "API_DEFINITION", - "description": " Create a roll-up property and all roll-up property source links.", - "canonical": true, - "file": "analytics_admin_service.create_rollup_property.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateRollupProperty", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateRollupProperty", - "async": true, - "parameters": [ - { - "name": "rollup_property", - "type": ".google.analytics.admin.v1alpha.Property" - }, - { - "name": "source_properties", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.analytics.admin.v1alpha.CreateRollupPropertyResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "CreateRollupProperty", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateRollupProperty", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetRollupPropertySourceLink_async", - "title": "AnalyticsAdminService getRollupPropertySourceLink Sample", - "origin": "API_DEFINITION", - "description": " Lookup for a single roll-up property source Link. Only roll-up properties can have source links, so this method will throw an error if used on other types of properties.", - "canonical": true, - "file": "analytics_admin_service.get_rollup_property_source_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRollupPropertySourceLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetRollupPropertySourceLink", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.RollupPropertySourceLink", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetRollupPropertySourceLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetRollupPropertySourceLink", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListRollupPropertySourceLinks_async", - "title": "AnalyticsAdminService listRollupPropertySourceLinks Sample", - "origin": "API_DEFINITION", - "description": " Lists roll-up property source Links on a property. Only roll-up properties can have source links, so this method will throw an error if used on other types of properties.", - "canonical": true, - "file": "analytics_admin_service.list_rollup_property_source_links.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRollupPropertySourceLinks", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListRollupPropertySourceLinks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ListRollupPropertySourceLinks", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListRollupPropertySourceLinks", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateRollupPropertySourceLink_async", - "title": "AnalyticsAdminService createRollupPropertySourceLink Sample", - "origin": "API_DEFINITION", - "description": " Creates a roll-up property source link. Only roll-up properties can have source links, so this method will throw an error if used on other types of properties.", - "canonical": true, - "file": "analytics_admin_service.create_rollup_property_source_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateRollupPropertySourceLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateRollupPropertySourceLink", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "rollup_property_source_link", - "type": ".google.analytics.admin.v1alpha.RollupPropertySourceLink" - } - ], - "resultType": ".google.analytics.admin.v1alpha.RollupPropertySourceLink", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "CreateRollupPropertySourceLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateRollupPropertySourceLink", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteRollupPropertySourceLink_async", - "title": "AnalyticsAdminService deleteRollupPropertySourceLink Sample", - "origin": "API_DEFINITION", - "description": " Deletes a roll-up property source link. Only roll-up properties can have source links, so this method will throw an error if used on other types of properties.", - "canonical": true, - "file": "analytics_admin_service.delete_rollup_property_source_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteRollupPropertySourceLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteRollupPropertySourceLink", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "DeleteRollupPropertySourceLink", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteRollupPropertySourceLink", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ProvisionSubproperty_async", - "title": "AnalyticsAdminService provisionSubproperty Sample", - "origin": "API_DEFINITION", - "description": " Create a subproperty and a subproperty event filter that applies to the created subproperty.", - "canonical": true, - "file": "analytics_admin_service.provision_subproperty.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ProvisionSubproperty", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ProvisionSubproperty", - "async": true, - "parameters": [ - { - "name": "subproperty", - "type": ".google.analytics.admin.v1alpha.Property" - }, - { - "name": "subproperty_event_filter", - "type": ".google.analytics.admin.v1alpha.SubpropertyEventFilter" - }, - { - "name": "custom_dimension_and_metric_synchronization_mode", - "type": ".google.analytics.admin.v1alpha.SubpropertySyncConfig.SynchronizationMode" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ProvisionSubpropertyResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ProvisionSubproperty", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ProvisionSubproperty", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateSubpropertyEventFilter_async", - "title": "AnalyticsAdminService createSubpropertyEventFilter Sample", - "origin": "API_DEFINITION", - "description": " Creates a subproperty Event Filter.", - "canonical": true, - "file": "analytics_admin_service.create_subproperty_event_filter.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSubpropertyEventFilter", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateSubpropertyEventFilter", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "subproperty_event_filter", - "type": ".google.analytics.admin.v1alpha.SubpropertyEventFilter" - } - ], - "resultType": ".google.analytics.admin.v1alpha.SubpropertyEventFilter", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "CreateSubpropertyEventFilter", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateSubpropertyEventFilter", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetSubpropertyEventFilter_async", - "title": "AnalyticsAdminService getSubpropertyEventFilter Sample", - "origin": "API_DEFINITION", - "description": " Lookup for a single subproperty Event Filter.", - "canonical": true, - "file": "analytics_admin_service.get_subproperty_event_filter.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSubpropertyEventFilter", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetSubpropertyEventFilter", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.SubpropertyEventFilter", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetSubpropertyEventFilter", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetSubpropertyEventFilter", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListSubpropertyEventFilters_async", - "title": "AnalyticsAdminService listSubpropertyEventFilters Sample", - "origin": "API_DEFINITION", - "description": " List all subproperty Event Filters on a property.", - "canonical": true, - "file": "analytics_admin_service.list_subproperty_event_filters.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSubpropertyEventFilters", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListSubpropertyEventFilters", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ListSubpropertyEventFilters", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListSubpropertyEventFilters", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateSubpropertyEventFilter_async", - "title": "AnalyticsAdminService updateSubpropertyEventFilter Sample", - "origin": "API_DEFINITION", - "description": " Updates a subproperty Event Filter.", - "canonical": true, - "file": "analytics_admin_service.update_subproperty_event_filter.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSubpropertyEventFilter", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateSubpropertyEventFilter", - "async": true, - "parameters": [ - { - "name": "subproperty_event_filter", - "type": ".google.analytics.admin.v1alpha.SubpropertyEventFilter" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.analytics.admin.v1alpha.SubpropertyEventFilter", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "UpdateSubpropertyEventFilter", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateSubpropertyEventFilter", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteSubpropertyEventFilter_async", - "title": "AnalyticsAdminService deleteSubpropertyEventFilter Sample", - "origin": "API_DEFINITION", - "description": " Deletes a subproperty event filter.", - "canonical": true, - "file": "analytics_admin_service.delete_subproperty_event_filter.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSubpropertyEventFilter", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteSubpropertyEventFilter", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "DeleteSubpropertyEventFilter", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteSubpropertyEventFilter", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_CreateReportingDataAnnotation_async", - "title": "AnalyticsAdminService createReportingDataAnnotation Sample", - "origin": "API_DEFINITION", - "description": " Creates a Reporting Data Annotation.", - "canonical": true, - "file": "analytics_admin_service.create_reporting_data_annotation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateReportingDataAnnotation", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateReportingDataAnnotation", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "reporting_data_annotation", - "type": ".google.analytics.admin.v1alpha.ReportingDataAnnotation" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ReportingDataAnnotation", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "CreateReportingDataAnnotation", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.CreateReportingDataAnnotation", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetReportingDataAnnotation_async", - "title": "AnalyticsAdminService getReportingDataAnnotation Sample", - "origin": "API_DEFINITION", - "description": " Lookup a single Reporting Data Annotation.", - "canonical": true, - "file": "analytics_admin_service.get_reporting_data_annotation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetReportingDataAnnotation", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetReportingDataAnnotation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ReportingDataAnnotation", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetReportingDataAnnotation", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetReportingDataAnnotation", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListReportingDataAnnotations_async", - "title": "AnalyticsAdminService listReportingDataAnnotations Sample", - "origin": "API_DEFINITION", - "description": " List all Reporting Data Annotations on a property.", - "canonical": true, - "file": "analytics_admin_service.list_reporting_data_annotations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 111, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListReportingDataAnnotations", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListReportingDataAnnotations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ListReportingDataAnnotationsResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ListReportingDataAnnotations", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListReportingDataAnnotations", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateReportingDataAnnotation_async", - "title": "AnalyticsAdminService updateReportingDataAnnotation Sample", - "origin": "API_DEFINITION", - "description": " Updates a Reporting Data Annotation.", - "canonical": true, - "file": "analytics_admin_service.update_reporting_data_annotation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateReportingDataAnnotation", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateReportingDataAnnotation", - "async": true, - "parameters": [ - { - "name": "reporting_data_annotation", - "type": ".google.analytics.admin.v1alpha.ReportingDataAnnotation" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ReportingDataAnnotation", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "UpdateReportingDataAnnotation", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateReportingDataAnnotation", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_DeleteReportingDataAnnotation_async", - "title": "AnalyticsAdminService deleteReportingDataAnnotation Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Reporting Data Annotation.", - "canonical": true, - "file": "analytics_admin_service.delete_reporting_data_annotation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteReportingDataAnnotation", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteReportingDataAnnotation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "DeleteReportingDataAnnotation", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.DeleteReportingDataAnnotation", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_SubmitUserDeletion_async", - "title": "AnalyticsAdminService submitUserDeletion Sample", - "origin": "API_DEFINITION", - "description": " Submits a request for user deletion for a property.", - "canonical": true, - "file": "analytics_admin_service.submit_user_deletion.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SubmitUserDeletion", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.SubmitUserDeletion", - "async": true, - "parameters": [ - { - "name": "user_id", - "type": "TYPE_STRING" - }, - { - "name": "client_id", - "type": "TYPE_STRING" - }, - { - "name": "app_instance_id", - "type": "TYPE_STRING" - }, - { - "name": "user_provided_data", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.SubmitUserDeletionResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "SubmitUserDeletion", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.SubmitUserDeletion", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_ListSubpropertySyncConfigs_async", - "title": "AnalyticsAdminService listSubpropertySyncConfigs Sample", - "origin": "API_DEFINITION", - "description": " List all `SubpropertySyncConfig` resources for a property.", - "canonical": true, - "file": "analytics_admin_service.list_subproperty_sync_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSubpropertySyncConfigs", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListSubpropertySyncConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ListSubpropertySyncConfigsResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ListSubpropertySyncConfigs", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.ListSubpropertySyncConfigs", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateSubpropertySyncConfig_async", - "title": "AnalyticsAdminService updateSubpropertySyncConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates a `SubpropertySyncConfig`.", - "canonical": true, - "file": "analytics_admin_service.update_subproperty_sync_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSubpropertySyncConfig", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateSubpropertySyncConfig", - "async": true, - "parameters": [ - { - "name": "subproperty_sync_config", - "type": ".google.analytics.admin.v1alpha.SubpropertySyncConfig" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.analytics.admin.v1alpha.SubpropertySyncConfig", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "UpdateSubpropertySyncConfig", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.UpdateSubpropertySyncConfig", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetSubpropertySyncConfig_async", - "title": "AnalyticsAdminService getSubpropertySyncConfig Sample", - "origin": "API_DEFINITION", - "description": " Lookup for a single `SubpropertySyncConfig`.", - "canonical": true, - "file": "analytics_admin_service.get_subproperty_sync_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSubpropertySyncConfig", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetSubpropertySyncConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.SubpropertySyncConfig", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetSubpropertySyncConfig", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetSubpropertySyncConfig", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetReportingIdentitySettings_async", - "title": "AnalyticsAdminService getReportingIdentitySettings Sample", - "origin": "API_DEFINITION", - "description": " Returns the reporting identity settings for this property.", - "canonical": true, - "file": "analytics_admin_service.get_reporting_identity_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetReportingIdentitySettings", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetReportingIdentitySettings", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.ReportingIdentitySettings", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetReportingIdentitySettings", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetReportingIdentitySettings", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetUserProvidedDataSettings_async", - "title": "AnalyticsAdminService getUserProvidedDataSettings Sample", - "origin": "API_DEFINITION", - "description": " Looks up settings related to user-provided data for a property.", - "canonical": true, - "file": "analytics_admin_service.get_user_provided_data_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetUserProvidedDataSettings", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetUserProvidedDataSettings", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1alpha.UserProvidedDataSettings", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetUserProvidedDataSettings", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService.GetUserProvidedDataSettings", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1alpha.AnalyticsAdminService" - } - } - } - } - ] -} diff --git a/packages/google-analytics-admin/samples/generated/v1beta/snippet_metadata_google.analytics.admin.v1beta.json b/packages/google-analytics-admin/samples/generated/v1beta/snippet_metadata_google.analytics.admin.v1beta.json deleted file mode 100644 index 17e2171e7289..000000000000 --- a/packages/google-analytics-admin/samples/generated/v1beta/snippet_metadata_google.analytics.admin.v1beta.json +++ /dev/null @@ -1,2423 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-admin", - "version": "9.0.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.analytics.admin.v1beta", - "version": "v1beta" - } - ] - }, - "snippets": [ - { - "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_GetAccount_async", - "title": "AnalyticsAdminService getAccount Sample", - "origin": "API_DEFINITION", - "description": " Lookup for a single Account.", - "canonical": true, - "file": "analytics_admin_service.get_account.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAccount", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.GetAccount", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1beta.Account", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetAccount", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.GetAccount", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_ListAccounts_async", - "title": "AnalyticsAdminService listAccounts Sample", - "origin": "API_DEFINITION", - "description": " Returns all accounts accessible by the caller. Note that these accounts might not currently have GA properties. Soft-deleted (ie: \"trashed\") accounts are excluded by default. Returns an empty list if no relevant accounts are found.", - "canonical": true, - "file": "analytics_admin_service.list_accounts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAccounts", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.ListAccounts", - "async": true, - "parameters": [ - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "show_deleted", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.analytics.admin.v1beta.ListAccountsResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ListAccounts", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.ListAccounts", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteAccount_async", - "title": "AnalyticsAdminService deleteAccount Sample", - "origin": "API_DEFINITION", - "description": " Marks target Account as soft-deleted (ie: \"trashed\") and returns it. This API does not have a method to restore soft-deleted accounts. However, they can be restored using the Trash Can UI. If the accounts are not restored before the expiration time, the account and all child resources (eg: Properties, GoogleAdsLinks, Streams, AccessBindings) will be permanently purged. https://support.google.com/analytics/answer/6154772 Returns an error if the target is not found.", - "canonical": true, - "file": "analytics_admin_service.delete_account.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAccount", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.DeleteAccount", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "DeleteAccount", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.DeleteAccount", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateAccount_async", - "title": "AnalyticsAdminService updateAccount Sample", - "origin": "API_DEFINITION", - "description": " Updates an account.", - "canonical": true, - "file": "analytics_admin_service.update_account.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAccount", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.UpdateAccount", - "async": true, - "parameters": [ - { - "name": "account", - "type": ".google.analytics.admin.v1beta.Account" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.analytics.admin.v1beta.Account", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "UpdateAccount", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.UpdateAccount", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_ProvisionAccountTicket_async", - "title": "AnalyticsAdminService provisionAccountTicket Sample", - "origin": "API_DEFINITION", - "description": " Requests a ticket for creating an account.", - "canonical": true, - "file": "analytics_admin_service.provision_account_ticket.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ProvisionAccountTicket", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.ProvisionAccountTicket", - "async": true, - "parameters": [ - { - "name": "account", - "type": ".google.analytics.admin.v1beta.Account" - }, - { - "name": "redirect_uri", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1beta.ProvisionAccountTicketResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ProvisionAccountTicket", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.ProvisionAccountTicket", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_ListAccountSummaries_async", - "title": "AnalyticsAdminService listAccountSummaries Sample", - "origin": "API_DEFINITION", - "description": " Returns summaries of all accounts accessible by the caller.", - "canonical": true, - "file": "analytics_admin_service.list_account_summaries.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAccountSummaries", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.ListAccountSummaries", - "async": true, - "parameters": [ - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1beta.ListAccountSummariesResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ListAccountSummaries", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.ListAccountSummaries", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_GetProperty_async", - "title": "AnalyticsAdminService getProperty Sample", - "origin": "API_DEFINITION", - "description": " Lookup for a single GA Property.", - "canonical": true, - "file": "analytics_admin_service.get_property.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetProperty", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.GetProperty", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1beta.Property", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetProperty", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.GetProperty", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_ListProperties_async", - "title": "AnalyticsAdminService listProperties Sample", - "origin": "API_DEFINITION", - "description": " Returns child Properties under the specified parent Account. Properties will be excluded if the caller does not have access. Soft-deleted (ie: \"trashed\") properties are excluded by default. Returns an empty list if no relevant properties are found.", - "canonical": true, - "file": "analytics_admin_service.list_properties.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 89, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListProperties", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.ListProperties", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "show_deleted", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.analytics.admin.v1beta.ListPropertiesResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ListProperties", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.ListProperties", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateProperty_async", - "title": "AnalyticsAdminService createProperty Sample", - "origin": "API_DEFINITION", - "description": " Creates a Google Analytics property with the specified location and attributes.", - "canonical": true, - "file": "analytics_admin_service.create_property.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateProperty", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.CreateProperty", - "async": true, - "parameters": [ - { - "name": "property", - "type": ".google.analytics.admin.v1beta.Property" - } - ], - "resultType": ".google.analytics.admin.v1beta.Property", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "CreateProperty", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.CreateProperty", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteProperty_async", - "title": "AnalyticsAdminService deleteProperty Sample", - "origin": "API_DEFINITION", - "description": " Marks target Property as soft-deleted (ie: \"trashed\") and returns it. This API does not have a method to restore soft-deleted properties. However, they can be restored using the Trash Can UI. If the properties are not restored before the expiration time, the Property and all child resources (eg: GoogleAdsLinks, Streams, AccessBindings) will be permanently purged. https://support.google.com/analytics/answer/6154772 Returns an error if the target is not found.", - "canonical": true, - "file": "analytics_admin_service.delete_property.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteProperty", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.DeleteProperty", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1beta.Property", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "DeleteProperty", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.DeleteProperty", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateProperty_async", - "title": "AnalyticsAdminService updateProperty Sample", - "origin": "API_DEFINITION", - "description": " Updates a property.", - "canonical": true, - "file": "analytics_admin_service.update_property.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateProperty", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.UpdateProperty", - "async": true, - "parameters": [ - { - "name": "property", - "type": ".google.analytics.admin.v1beta.Property" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.analytics.admin.v1beta.Property", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "UpdateProperty", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.UpdateProperty", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateFirebaseLink_async", - "title": "AnalyticsAdminService createFirebaseLink Sample", - "origin": "API_DEFINITION", - "description": " Creates a FirebaseLink. Properties can have at most one FirebaseLink.", - "canonical": true, - "file": "analytics_admin_service.create_firebase_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateFirebaseLink", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.CreateFirebaseLink", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "firebase_link", - "type": ".google.analytics.admin.v1beta.FirebaseLink" - } - ], - "resultType": ".google.analytics.admin.v1beta.FirebaseLink", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "CreateFirebaseLink", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.CreateFirebaseLink", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteFirebaseLink_async", - "title": "AnalyticsAdminService deleteFirebaseLink Sample", - "origin": "API_DEFINITION", - "description": " Deletes a FirebaseLink on a property", - "canonical": true, - "file": "analytics_admin_service.delete_firebase_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteFirebaseLink", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.DeleteFirebaseLink", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "DeleteFirebaseLink", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.DeleteFirebaseLink", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_ListFirebaseLinks_async", - "title": "AnalyticsAdminService listFirebaseLinks Sample", - "origin": "API_DEFINITION", - "description": " Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink.", - "canonical": true, - "file": "analytics_admin_service.list_firebase_links.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFirebaseLinks", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.ListFirebaseLinks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1beta.ListFirebaseLinksResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ListFirebaseLinks", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.ListFirebaseLinks", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateGoogleAdsLink_async", - "title": "AnalyticsAdminService createGoogleAdsLink Sample", - "origin": "API_DEFINITION", - "description": " Creates a GoogleAdsLink.", - "canonical": true, - "file": "analytics_admin_service.create_google_ads_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateGoogleAdsLink", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.CreateGoogleAdsLink", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "google_ads_link", - "type": ".google.analytics.admin.v1beta.GoogleAdsLink" - } - ], - "resultType": ".google.analytics.admin.v1beta.GoogleAdsLink", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "CreateGoogleAdsLink", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.CreateGoogleAdsLink", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateGoogleAdsLink_async", - "title": "AnalyticsAdminService updateGoogleAdsLink Sample", - "origin": "API_DEFINITION", - "description": " Updates a GoogleAdsLink on a property", - "canonical": true, - "file": "analytics_admin_service.update_google_ads_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateGoogleAdsLink", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.UpdateGoogleAdsLink", - "async": true, - "parameters": [ - { - "name": "google_ads_link", - "type": ".google.analytics.admin.v1beta.GoogleAdsLink" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.analytics.admin.v1beta.GoogleAdsLink", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "UpdateGoogleAdsLink", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.UpdateGoogleAdsLink", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteGoogleAdsLink_async", - "title": "AnalyticsAdminService deleteGoogleAdsLink Sample", - "origin": "API_DEFINITION", - "description": " Deletes a GoogleAdsLink on a property", - "canonical": true, - "file": "analytics_admin_service.delete_google_ads_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteGoogleAdsLink", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.DeleteGoogleAdsLink", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "DeleteGoogleAdsLink", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.DeleteGoogleAdsLink", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_ListGoogleAdsLinks_async", - "title": "AnalyticsAdminService listGoogleAdsLinks Sample", - "origin": "API_DEFINITION", - "description": " Lists GoogleAdsLinks on a property.", - "canonical": true, - "file": "analytics_admin_service.list_google_ads_links.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListGoogleAdsLinks", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.ListGoogleAdsLinks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1beta.ListGoogleAdsLinksResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ListGoogleAdsLinks", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.ListGoogleAdsLinks", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_GetDataSharingSettings_async", - "title": "AnalyticsAdminService getDataSharingSettings Sample", - "origin": "API_DEFINITION", - "description": " Get data sharing settings on an account. Data sharing settings are singletons.", - "canonical": true, - "file": "analytics_admin_service.get_data_sharing_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDataSharingSettings", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.GetDataSharingSettings", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1beta.DataSharingSettings", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetDataSharingSettings", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.GetDataSharingSettings", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_GetMeasurementProtocolSecret_async", - "title": "AnalyticsAdminService getMeasurementProtocolSecret Sample", - "origin": "API_DEFINITION", - "description": " Lookup for a single MeasurementProtocolSecret.", - "canonical": true, - "file": "analytics_admin_service.get_measurement_protocol_secret.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMeasurementProtocolSecret", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.GetMeasurementProtocolSecret", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1beta.MeasurementProtocolSecret", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetMeasurementProtocolSecret", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.GetMeasurementProtocolSecret", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_ListMeasurementProtocolSecrets_async", - "title": "AnalyticsAdminService listMeasurementProtocolSecrets Sample", - "origin": "API_DEFINITION", - "description": " Returns child MeasurementProtocolSecrets under the specified parent Property.", - "canonical": true, - "file": "analytics_admin_service.list_measurement_protocol_secrets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMeasurementProtocolSecrets", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.ListMeasurementProtocolSecrets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ListMeasurementProtocolSecrets", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.ListMeasurementProtocolSecrets", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateMeasurementProtocolSecret_async", - "title": "AnalyticsAdminService createMeasurementProtocolSecret Sample", - "origin": "API_DEFINITION", - "description": " Creates a measurement protocol secret.", - "canonical": true, - "file": "analytics_admin_service.create_measurement_protocol_secret.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateMeasurementProtocolSecret", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.CreateMeasurementProtocolSecret", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "measurement_protocol_secret", - "type": ".google.analytics.admin.v1beta.MeasurementProtocolSecret" - } - ], - "resultType": ".google.analytics.admin.v1beta.MeasurementProtocolSecret", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "CreateMeasurementProtocolSecret", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.CreateMeasurementProtocolSecret", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteMeasurementProtocolSecret_async", - "title": "AnalyticsAdminService deleteMeasurementProtocolSecret Sample", - "origin": "API_DEFINITION", - "description": " Deletes target MeasurementProtocolSecret.", - "canonical": true, - "file": "analytics_admin_service.delete_measurement_protocol_secret.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteMeasurementProtocolSecret", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.DeleteMeasurementProtocolSecret", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "DeleteMeasurementProtocolSecret", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.DeleteMeasurementProtocolSecret", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateMeasurementProtocolSecret_async", - "title": "AnalyticsAdminService updateMeasurementProtocolSecret Sample", - "origin": "API_DEFINITION", - "description": " Updates a measurement protocol secret.", - "canonical": true, - "file": "analytics_admin_service.update_measurement_protocol_secret.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateMeasurementProtocolSecret", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.UpdateMeasurementProtocolSecret", - "async": true, - "parameters": [ - { - "name": "measurement_protocol_secret", - "type": ".google.analytics.admin.v1beta.MeasurementProtocolSecret" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.analytics.admin.v1beta.MeasurementProtocolSecret", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "UpdateMeasurementProtocolSecret", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.UpdateMeasurementProtocolSecret", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_AcknowledgeUserDataCollection_async", - "title": "AnalyticsAdminService acknowledgeUserDataCollection Sample", - "origin": "API_DEFINITION", - "description": " Acknowledges the terms of user data collection for the specified property. This acknowledgement must be completed (either in the Google Analytics UI or through this API) before MeasurementProtocolSecret resources may be created.", - "canonical": true, - "file": "analytics_admin_service.acknowledge_user_data_collection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AcknowledgeUserDataCollection", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.AcknowledgeUserDataCollection", - "async": true, - "parameters": [ - { - "name": "property", - "type": "TYPE_STRING" - }, - { - "name": "acknowledgement", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "AcknowledgeUserDataCollection", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.AcknowledgeUserDataCollection", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_SearchChangeHistoryEvents_async", - "title": "AnalyticsAdminService searchChangeHistoryEvents Sample", - "origin": "API_DEFINITION", - "description": " Searches through all changes to an account or its children given the specified set of filters. Only returns the subset of changes supported by the API. The UI may return additional changes.", - "canonical": true, - "file": "analytics_admin_service.search_change_history_events.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 106, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchChangeHistoryEvents", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.SearchChangeHistoryEvents", - "async": true, - "parameters": [ - { - "name": "account", - "type": "TYPE_STRING" - }, - { - "name": "property", - "type": "TYPE_STRING" - }, - { - "name": "resource_type", - "type": "TYPE_ENUM[]" - }, - { - "name": "action", - "type": "TYPE_ENUM[]" - }, - { - "name": "actor_email", - "type": "TYPE_STRING[]" - }, - { - "name": "earliest_change_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "latest_change_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "SearchChangeHistoryEvents", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.SearchChangeHistoryEvents", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateConversionEvent_async", - "title": "AnalyticsAdminService createConversionEvent Sample", - "origin": "API_DEFINITION", - "description": " Deprecated: Use `CreateKeyEvent` instead. Creates a conversion event with the specified attributes.", - "canonical": true, - "file": "analytics_admin_service.create_conversion_event.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateConversionEvent", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.CreateConversionEvent", - "async": true, - "parameters": [ - { - "name": "conversion_event", - "type": ".google.analytics.admin.v1beta.ConversionEvent" - }, - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1beta.ConversionEvent", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "CreateConversionEvent", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.CreateConversionEvent", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateConversionEvent_async", - "title": "AnalyticsAdminService updateConversionEvent Sample", - "origin": "API_DEFINITION", - "description": " Deprecated: Use `UpdateKeyEvent` instead. Updates a conversion event with the specified attributes.", - "canonical": true, - "file": "analytics_admin_service.update_conversion_event.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateConversionEvent", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.UpdateConversionEvent", - "async": true, - "parameters": [ - { - "name": "conversion_event", - "type": ".google.analytics.admin.v1beta.ConversionEvent" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.analytics.admin.v1beta.ConversionEvent", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "UpdateConversionEvent", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.UpdateConversionEvent", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_GetConversionEvent_async", - "title": "AnalyticsAdminService getConversionEvent Sample", - "origin": "API_DEFINITION", - "description": " Deprecated: Use `GetKeyEvent` instead. Retrieve a single conversion event.", - "canonical": true, - "file": "analytics_admin_service.get_conversion_event.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetConversionEvent", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.GetConversionEvent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1beta.ConversionEvent", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetConversionEvent", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.GetConversionEvent", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteConversionEvent_async", - "title": "AnalyticsAdminService deleteConversionEvent Sample", - "origin": "API_DEFINITION", - "description": " Deprecated: Use `DeleteKeyEvent` instead. Deletes a conversion event in a property.", - "canonical": true, - "file": "analytics_admin_service.delete_conversion_event.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteConversionEvent", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.DeleteConversionEvent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "DeleteConversionEvent", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.DeleteConversionEvent", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_ListConversionEvents_async", - "title": "AnalyticsAdminService listConversionEvents Sample", - "origin": "API_DEFINITION", - "description": " Deprecated: Use `ListKeyEvents` instead. Returns a list of conversion events in the specified parent property. Returns an empty list if no conversion events are found.", - "canonical": true, - "file": "analytics_admin_service.list_conversion_events.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListConversionEvents", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.ListConversionEvents", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1beta.ListConversionEventsResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ListConversionEvents", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.ListConversionEvents", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateKeyEvent_async", - "title": "AnalyticsAdminService createKeyEvent Sample", - "origin": "API_DEFINITION", - "description": " Creates a Key Event.", - "canonical": true, - "file": "analytics_admin_service.create_key_event.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateKeyEvent", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.CreateKeyEvent", - "async": true, - "parameters": [ - { - "name": "key_event", - "type": ".google.analytics.admin.v1beta.KeyEvent" - }, - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1beta.KeyEvent", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "CreateKeyEvent", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.CreateKeyEvent", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateKeyEvent_async", - "title": "AnalyticsAdminService updateKeyEvent Sample", - "origin": "API_DEFINITION", - "description": " Updates a Key Event.", - "canonical": true, - "file": "analytics_admin_service.update_key_event.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateKeyEvent", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.UpdateKeyEvent", - "async": true, - "parameters": [ - { - "name": "key_event", - "type": ".google.analytics.admin.v1beta.KeyEvent" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.analytics.admin.v1beta.KeyEvent", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "UpdateKeyEvent", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.UpdateKeyEvent", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_GetKeyEvent_async", - "title": "AnalyticsAdminService getKeyEvent Sample", - "origin": "API_DEFINITION", - "description": " Retrieve a single Key Event.", - "canonical": true, - "file": "analytics_admin_service.get_key_event.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetKeyEvent", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.GetKeyEvent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1beta.KeyEvent", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetKeyEvent", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.GetKeyEvent", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteKeyEvent_async", - "title": "AnalyticsAdminService deleteKeyEvent Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Key Event.", - "canonical": true, - "file": "analytics_admin_service.delete_key_event.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteKeyEvent", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.DeleteKeyEvent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "DeleteKeyEvent", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.DeleteKeyEvent", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_ListKeyEvents_async", - "title": "AnalyticsAdminService listKeyEvents Sample", - "origin": "API_DEFINITION", - "description": " Returns a list of Key Events in the specified parent property. Returns an empty list if no Key Events are found.", - "canonical": true, - "file": "analytics_admin_service.list_key_events.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListKeyEvents", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.ListKeyEvents", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1beta.ListKeyEventsResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ListKeyEvents", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.ListKeyEvents", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateCustomDimension_async", - "title": "AnalyticsAdminService createCustomDimension Sample", - "origin": "API_DEFINITION", - "description": " Creates a CustomDimension.", - "canonical": true, - "file": "analytics_admin_service.create_custom_dimension.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCustomDimension", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.CreateCustomDimension", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "custom_dimension", - "type": ".google.analytics.admin.v1beta.CustomDimension" - } - ], - "resultType": ".google.analytics.admin.v1beta.CustomDimension", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "CreateCustomDimension", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.CreateCustomDimension", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateCustomDimension_async", - "title": "AnalyticsAdminService updateCustomDimension Sample", - "origin": "API_DEFINITION", - "description": " Updates a CustomDimension on a property.", - "canonical": true, - "file": "analytics_admin_service.update_custom_dimension.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCustomDimension", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.UpdateCustomDimension", - "async": true, - "parameters": [ - { - "name": "custom_dimension", - "type": ".google.analytics.admin.v1beta.CustomDimension" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.analytics.admin.v1beta.CustomDimension", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "UpdateCustomDimension", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.UpdateCustomDimension", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_ListCustomDimensions_async", - "title": "AnalyticsAdminService listCustomDimensions Sample", - "origin": "API_DEFINITION", - "description": " Lists CustomDimensions on a property.", - "canonical": true, - "file": "analytics_admin_service.list_custom_dimensions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCustomDimensions", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.ListCustomDimensions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1beta.ListCustomDimensionsResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ListCustomDimensions", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.ListCustomDimensions", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_ArchiveCustomDimension_async", - "title": "AnalyticsAdminService archiveCustomDimension Sample", - "origin": "API_DEFINITION", - "description": " Archives a CustomDimension on a property.", - "canonical": true, - "file": "analytics_admin_service.archive_custom_dimension.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ArchiveCustomDimension", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.ArchiveCustomDimension", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ArchiveCustomDimension", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.ArchiveCustomDimension", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_GetCustomDimension_async", - "title": "AnalyticsAdminService getCustomDimension Sample", - "origin": "API_DEFINITION", - "description": " Lookup for a single CustomDimension.", - "canonical": true, - "file": "analytics_admin_service.get_custom_dimension.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCustomDimension", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.GetCustomDimension", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1beta.CustomDimension", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetCustomDimension", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.GetCustomDimension", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateCustomMetric_async", - "title": "AnalyticsAdminService createCustomMetric Sample", - "origin": "API_DEFINITION", - "description": " Creates a CustomMetric.", - "canonical": true, - "file": "analytics_admin_service.create_custom_metric.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCustomMetric", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.CreateCustomMetric", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "custom_metric", - "type": ".google.analytics.admin.v1beta.CustomMetric" - } - ], - "resultType": ".google.analytics.admin.v1beta.CustomMetric", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "CreateCustomMetric", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.CreateCustomMetric", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateCustomMetric_async", - "title": "AnalyticsAdminService updateCustomMetric Sample", - "origin": "API_DEFINITION", - "description": " Updates a CustomMetric on a property.", - "canonical": true, - "file": "analytics_admin_service.update_custom_metric.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCustomMetric", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.UpdateCustomMetric", - "async": true, - "parameters": [ - { - "name": "custom_metric", - "type": ".google.analytics.admin.v1beta.CustomMetric" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.analytics.admin.v1beta.CustomMetric", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "UpdateCustomMetric", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.UpdateCustomMetric", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_ListCustomMetrics_async", - "title": "AnalyticsAdminService listCustomMetrics Sample", - "origin": "API_DEFINITION", - "description": " Lists CustomMetrics on a property.", - "canonical": true, - "file": "analytics_admin_service.list_custom_metrics.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCustomMetrics", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.ListCustomMetrics", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1beta.ListCustomMetricsResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ListCustomMetrics", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.ListCustomMetrics", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_ArchiveCustomMetric_async", - "title": "AnalyticsAdminService archiveCustomMetric Sample", - "origin": "API_DEFINITION", - "description": " Archives a CustomMetric on a property.", - "canonical": true, - "file": "analytics_admin_service.archive_custom_metric.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ArchiveCustomMetric", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.ArchiveCustomMetric", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ArchiveCustomMetric", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.ArchiveCustomMetric", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_GetCustomMetric_async", - "title": "AnalyticsAdminService getCustomMetric Sample", - "origin": "API_DEFINITION", - "description": " Lookup for a single CustomMetric.", - "canonical": true, - "file": "analytics_admin_service.get_custom_metric.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCustomMetric", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.GetCustomMetric", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1beta.CustomMetric", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetCustomMetric", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.GetCustomMetric", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_GetDataRetentionSettings_async", - "title": "AnalyticsAdminService getDataRetentionSettings Sample", - "origin": "API_DEFINITION", - "description": " Returns the singleton data retention settings for this property.", - "canonical": true, - "file": "analytics_admin_service.get_data_retention_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDataRetentionSettings", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.GetDataRetentionSettings", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1beta.DataRetentionSettings", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetDataRetentionSettings", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.GetDataRetentionSettings", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateDataRetentionSettings_async", - "title": "AnalyticsAdminService updateDataRetentionSettings Sample", - "origin": "API_DEFINITION", - "description": " Updates the singleton data retention settings for this property.", - "canonical": true, - "file": "analytics_admin_service.update_data_retention_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDataRetentionSettings", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.UpdateDataRetentionSettings", - "async": true, - "parameters": [ - { - "name": "data_retention_settings", - "type": ".google.analytics.admin.v1beta.DataRetentionSettings" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.analytics.admin.v1beta.DataRetentionSettings", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "UpdateDataRetentionSettings", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.UpdateDataRetentionSettings", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_CreateDataStream_async", - "title": "AnalyticsAdminService createDataStream Sample", - "origin": "API_DEFINITION", - "description": " Creates a DataStream.", - "canonical": true, - "file": "analytics_admin_service.create_data_stream.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDataStream", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.CreateDataStream", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "data_stream", - "type": ".google.analytics.admin.v1beta.DataStream" - } - ], - "resultType": ".google.analytics.admin.v1beta.DataStream", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "CreateDataStream", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.CreateDataStream", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_DeleteDataStream_async", - "title": "AnalyticsAdminService deleteDataStream Sample", - "origin": "API_DEFINITION", - "description": " Deletes a DataStream on a property.", - "canonical": true, - "file": "analytics_admin_service.delete_data_stream.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDataStream", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.DeleteDataStream", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "DeleteDataStream", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.DeleteDataStream", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_UpdateDataStream_async", - "title": "AnalyticsAdminService updateDataStream Sample", - "origin": "API_DEFINITION", - "description": " Updates a DataStream on a property.", - "canonical": true, - "file": "analytics_admin_service.update_data_stream.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDataStream", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.UpdateDataStream", - "async": true, - "parameters": [ - { - "name": "data_stream", - "type": ".google.analytics.admin.v1beta.DataStream" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.analytics.admin.v1beta.DataStream", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "UpdateDataStream", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.UpdateDataStream", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_ListDataStreams_async", - "title": "AnalyticsAdminService listDataStreams Sample", - "origin": "API_DEFINITION", - "description": " Lists DataStreams on a property.", - "canonical": true, - "file": "analytics_admin_service.list_data_streams.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDataStreams", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.ListDataStreams", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1beta.ListDataStreamsResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "ListDataStreams", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.ListDataStreams", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_GetDataStream_async", - "title": "AnalyticsAdminService getDataStream Sample", - "origin": "API_DEFINITION", - "description": " Lookup for a single DataStream.", - "canonical": true, - "file": "analytics_admin_service.get_data_stream.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDataStream", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.GetDataStream", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.admin.v1beta.DataStream", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "GetDataStream", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.GetDataStream", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" - } - } - } - }, - { - "regionTag": "analyticsadmin_v1beta_generated_AnalyticsAdminService_RunAccessReport_async", - "title": "AnalyticsAdminService runAccessReport Sample", - "origin": "API_DEFINITION", - "description": " Returns a customized report of data access records. The report provides records of each time a user reads Google Analytics reporting data. Access records are retained for up to 2 years. Data Access Reports can be requested for a property. Reports may be requested for any property, but dimensions that aren't related to quota can only be requested on Google Analytics 360 properties. This method is only available to Administrators. These data access records include GA UI Reporting, GA UI Explorations, GA Data API, and other products like Firebase & Admob that can retrieve data from Google Analytics through a linkage. These records don't include property configuration changes like adding a stream or changing a property's time zone. For configuration change history, see [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents). To give your feedback on this API, complete the [Google Analytics Access Reports feedback](https://docs.google.com/forms/d/e/1FAIpQLSdmEBUrMzAEdiEKk5TV5dEHvDUZDRlgWYdQdAeSdtR4hVjEhw/viewform) form.", - "canonical": true, - "file": "analytics_admin_service.run_access_report.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 146, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RunAccessReport", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.RunAccessReport", - "async": true, - "parameters": [ - { - "name": "entity", - "type": "TYPE_STRING" - }, - { - "name": "dimensions", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "metrics", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "date_ranges", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "dimension_filter", - "type": ".google.analytics.admin.v1beta.AccessFilterExpression" - }, - { - "name": "metric_filter", - "type": ".google.analytics.admin.v1beta.AccessFilterExpression" - }, - { - "name": "offset", - "type": "TYPE_INT64" - }, - { - "name": "limit", - "type": "TYPE_INT64" - }, - { - "name": "time_zone", - "type": "TYPE_STRING" - }, - { - "name": "order_bys", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "return_entity_quota", - "type": "TYPE_BOOL" - }, - { - "name": "include_all_users", - "type": "TYPE_BOOL" - }, - { - "name": "expand_groups", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.analytics.admin.v1beta.RunAccessReportResponse", - "client": { - "shortName": "AnalyticsAdminServiceClient", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminServiceClient" - }, - "method": { - "shortName": "RunAccessReport", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService.RunAccessReport", - "service": { - "shortName": "AnalyticsAdminService", - "fullName": "google.analytics.admin.v1beta.AnalyticsAdminService" - } - } - } - } - ] -} diff --git a/packages/google-analytics-data/samples/generated/v1alpha/snippet_metadata_google.analytics.data.v1alpha.json b/packages/google-analytics-data/samples/generated/v1alpha/snippet_metadata_google.analytics.data.v1alpha.json deleted file mode 100644 index b45ca265fd75..000000000000 --- a/packages/google-analytics-data/samples/generated/v1alpha/snippet_metadata_google.analytics.data.v1alpha.json +++ /dev/null @@ -1,763 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-data", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.analytics.data.v1alpha", - "version": "v1alpha" - } - ] - }, - "snippets": [ - { - "regionTag": "analyticsdata_v1alpha_generated_AlphaAnalyticsData_RunFunnelReport_async", - "title": "AlphaAnalyticsData runFunnelReport Sample", - "origin": "API_DEFINITION", - "description": " Returns a customized funnel report of your Google Analytics event data. The data returned from the API is as a table with columns for the requested dimensions and metrics. Funnel exploration lets you visualize the steps your users take to complete a task and quickly see how well they are succeeding or failing at each step. For example, how do prospects become shoppers and then become buyers? How do one time buyers become repeat buyers? With this information, you can improve inefficient or abandoned customer journeys. To learn more, see [GA4 Funnel Explorations](https://support.google.com/analytics/answer/9327974). This method is introduced at alpha stability with the intention of gathering feedback on syntax and capabilities before entering beta. To give your feedback on this API, complete the [Google Analytics Data API Funnel Reporting Feedback](https://docs.google.com/forms/d/e/1FAIpQLSdwOlQDJAUoBiIgUZZ3S_Lwi8gr7Bb0k1jhvc-DEg7Rol3UjA/viewform).", - "canonical": true, - "file": "alpha_analytics_data.run_funnel_report.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 124, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RunFunnelReport", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.RunFunnelReport", - "async": true, - "parameters": [ - { - "name": "property", - "type": "TYPE_STRING" - }, - { - "name": "date_ranges", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "funnel", - "type": ".google.analytics.data.v1alpha.Funnel" - }, - { - "name": "funnel_breakdown", - "type": ".google.analytics.data.v1alpha.FunnelBreakdown" - }, - { - "name": "funnel_next_action", - "type": ".google.analytics.data.v1alpha.FunnelNextAction" - }, - { - "name": "funnel_visualization_type", - "type": ".google.analytics.data.v1alpha.RunFunnelReportRequest.FunnelVisualizationType" - }, - { - "name": "segments", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "limit", - "type": "TYPE_INT64" - }, - { - "name": "dimension_filter", - "type": ".google.analytics.data.v1alpha.FilterExpression" - }, - { - "name": "return_property_quota", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.analytics.data.v1alpha.RunFunnelReportResponse", - "client": { - "shortName": "AlphaAnalyticsDataClient", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsDataClient" - }, - "method": { - "shortName": "RunFunnelReport", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.RunFunnelReport", - "service": { - "shortName": "AlphaAnalyticsData", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1alpha_generated_AlphaAnalyticsData_CreateAudienceList_async", - "title": "AlphaAnalyticsData createAudienceList Sample", - "origin": "API_DEFINITION", - "description": " Creates an audience list for later retrieval. This method quickly returns the audience list's resource name and initiates a long running asynchronous request to form an audience list. To list the users in an audience list, first create the audience list through this method and then send the audience resource name to the `QueryAudienceList` method. See [Creating an Audience List](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) for an introduction to Audience Lists with examples. An audience list is a snapshot of the users currently in the audience at the time of audience list creation. Creating audience lists for one audience on different days will return different results as users enter and exit the audience. Audiences in Google Analytics 4 allow you to segment your users in the ways that are important to your business. To learn more, see https://support.google.com/analytics/answer/9267572. Audience lists contain the users in each audience. This method is available at beta stability at [audienceExports.create](https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties.audienceExports/create). To give your feedback on this API, complete the [Google Analytics Audience Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.", - "canonical": true, - "file": "alpha_analytics_data.create_audience_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAudienceList", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.CreateAudienceList", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "audience_list", - "type": ".google.analytics.data.v1alpha.AudienceList" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlphaAnalyticsDataClient", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsDataClient" - }, - "method": { - "shortName": "CreateAudienceList", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.CreateAudienceList", - "service": { - "shortName": "AlphaAnalyticsData", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1alpha_generated_AlphaAnalyticsData_QueryAudienceList_async", - "title": "AlphaAnalyticsData queryAudienceList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an audience list of users. After creating an audience, the users are not immediately available for listing. First, a request to `CreateAudienceList` is necessary to create an audience list of users, and then second, this method is used to retrieve the users in the audience list. See [Creating an Audience List](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) for an introduction to Audience Lists with examples. Audiences in Google Analytics 4 allow you to segment your users in the ways that are important to your business. To learn more, see https://support.google.com/analytics/answer/9267572. This method is available at beta stability at [audienceExports.query](https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties.audienceExports/query). To give your feedback on this API, complete the [Google Analytics Audience Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.", - "canonical": true, - "file": "alpha_analytics_data.query_audience_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryAudienceList", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.QueryAudienceList", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "offset", - "type": "TYPE_INT64" - }, - { - "name": "limit", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.analytics.data.v1alpha.QueryAudienceListResponse", - "client": { - "shortName": "AlphaAnalyticsDataClient", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsDataClient" - }, - "method": { - "shortName": "QueryAudienceList", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.QueryAudienceList", - "service": { - "shortName": "AlphaAnalyticsData", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1alpha_generated_AlphaAnalyticsData_GetAudienceList_async", - "title": "AlphaAnalyticsData getAudienceList Sample", - "origin": "API_DEFINITION", - "description": " Gets configuration metadata about a specific audience list. This method can be used to understand an audience list after it has been created. See [Creating an Audience List](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) for an introduction to Audience Lists with examples. This method is available at beta stability at [audienceExports.get](https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties.audienceExports/get). To give your feedback on this API, complete the [Google Analytics Audience Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.", - "canonical": true, - "file": "alpha_analytics_data.get_audience_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAudienceList", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.GetAudienceList", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.data.v1alpha.AudienceList", - "client": { - "shortName": "AlphaAnalyticsDataClient", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsDataClient" - }, - "method": { - "shortName": "GetAudienceList", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.GetAudienceList", - "service": { - "shortName": "AlphaAnalyticsData", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1alpha_generated_AlphaAnalyticsData_ListAudienceLists_async", - "title": "AlphaAnalyticsData listAudienceLists Sample", - "origin": "API_DEFINITION", - "description": " Lists all audience lists for a property. This method can be used for you to find and reuse existing audience lists rather than creating unnecessary new audience lists. The same audience can have multiple audience lists that represent the list of users that were in an audience on different days. See [Creating an Audience List](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) for an introduction to Audience Lists with examples. This method is available at beta stability at [audienceExports.list](https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties.audienceExports/list). To give your feedback on this API, complete the [Google Analytics Audience Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.", - "canonical": true, - "file": "alpha_analytics_data.list_audience_lists.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAudienceLists", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.ListAudienceLists", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.data.v1alpha.ListAudienceListsResponse", - "client": { - "shortName": "AlphaAnalyticsDataClient", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsDataClient" - }, - "method": { - "shortName": "ListAudienceLists", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.ListAudienceLists", - "service": { - "shortName": "AlphaAnalyticsData", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1alpha_generated_AlphaAnalyticsData_CreateRecurringAudienceList_async", - "title": "AlphaAnalyticsData createRecurringAudienceList Sample", - "origin": "API_DEFINITION", - "description": " Creates a recurring audience list. Recurring audience lists produces new audience lists each day. Audience lists are users in an audience at the time of the list's creation. A recurring audience list ensures that you have audience list based on the most recent data available for use each day. If you manually create audience list, you don't know when an audience list based on an additional day's data is available. This recurring audience list automates the creation of an audience list when an additional day's data is available. You will consume fewer quota tokens by using recurring audience list versus manually creating audience list at various times of day trying to guess when an additional day's data is ready. This method is introduced at alpha stability with the intention of gathering feedback on syntax and capabilities before entering beta. To give your feedback on this API, complete the [Google Analytics Audience Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.", - "canonical": true, - "file": "alpha_analytics_data.create_recurring_audience_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateRecurringAudienceList", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.CreateRecurringAudienceList", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "recurring_audience_list", - "type": ".google.analytics.data.v1alpha.RecurringAudienceList" - } - ], - "resultType": ".google.analytics.data.v1alpha.RecurringAudienceList", - "client": { - "shortName": "AlphaAnalyticsDataClient", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsDataClient" - }, - "method": { - "shortName": "CreateRecurringAudienceList", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.CreateRecurringAudienceList", - "service": { - "shortName": "AlphaAnalyticsData", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1alpha_generated_AlphaAnalyticsData_GetRecurringAudienceList_async", - "title": "AlphaAnalyticsData getRecurringAudienceList Sample", - "origin": "API_DEFINITION", - "description": " Gets configuration metadata about a specific recurring audience list. This method can be used to understand a recurring audience list's state after it has been created. For example, a recurring audience list resource will generate audience list instances for each day, and this method can be used to get the resource name of the most recent audience list instance. This method is introduced at alpha stability with the intention of gathering feedback on syntax and capabilities before entering beta. To give your feedback on this API, complete the [Google Analytics Audience Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.", - "canonical": true, - "file": "alpha_analytics_data.get_recurring_audience_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRecurringAudienceList", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.GetRecurringAudienceList", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.data.v1alpha.RecurringAudienceList", - "client": { - "shortName": "AlphaAnalyticsDataClient", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsDataClient" - }, - "method": { - "shortName": "GetRecurringAudienceList", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.GetRecurringAudienceList", - "service": { - "shortName": "AlphaAnalyticsData", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1alpha_generated_AlphaAnalyticsData_ListRecurringAudienceLists_async", - "title": "AlphaAnalyticsData listRecurringAudienceLists Sample", - "origin": "API_DEFINITION", - "description": " Lists all recurring audience lists for a property. This method can be used for you to find and reuse existing recurring audience lists rather than creating unnecessary new recurring audience lists. The same audience can have multiple recurring audience lists that represent different dimension combinations; for example, just the dimension `deviceId` or both the dimensions `deviceId` and `userId`. This method is introduced at alpha stability with the intention of gathering feedback on syntax and capabilities before entering beta. To give your feedback on this API, complete the [Google Analytics Audience Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.", - "canonical": true, - "file": "alpha_analytics_data.list_recurring_audience_lists.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRecurringAudienceLists", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.ListRecurringAudienceLists", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.data.v1alpha.ListRecurringAudienceListsResponse", - "client": { - "shortName": "AlphaAnalyticsDataClient", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsDataClient" - }, - "method": { - "shortName": "ListRecurringAudienceLists", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.ListRecurringAudienceLists", - "service": { - "shortName": "AlphaAnalyticsData", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1alpha_generated_AlphaAnalyticsData_GetPropertyQuotasSnapshot_async", - "title": "AlphaAnalyticsData getPropertyQuotasSnapshot Sample", - "origin": "API_DEFINITION", - "description": " Get all property quotas organized by quota category for a given property. This will charge 1 property quota from the category with the most quota.", - "canonical": true, - "file": "alpha_analytics_data.get_property_quotas_snapshot.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPropertyQuotasSnapshot", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.GetPropertyQuotasSnapshot", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.data.v1alpha.PropertyQuotasSnapshot", - "client": { - "shortName": "AlphaAnalyticsDataClient", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsDataClient" - }, - "method": { - "shortName": "GetPropertyQuotasSnapshot", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.GetPropertyQuotasSnapshot", - "service": { - "shortName": "AlphaAnalyticsData", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1alpha_generated_AlphaAnalyticsData_CreateReportTask_async", - "title": "AlphaAnalyticsData createReportTask Sample", - "origin": "API_DEFINITION", - "description": " Initiates the creation of a report task. This method quickly returns a report task and initiates a long running asynchronous request to form a customized report of your Google Analytics event data. A report task will be retained and available for querying for 72 hours after it has been created. A report task created by one user can be listed and queried by all users who have access to the property.", - "canonical": true, - "file": "alpha_analytics_data.create_report_task.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateReportTask", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.CreateReportTask", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "report_task", - "type": ".google.analytics.data.v1alpha.ReportTask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlphaAnalyticsDataClient", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsDataClient" - }, - "method": { - "shortName": "CreateReportTask", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.CreateReportTask", - "service": { - "shortName": "AlphaAnalyticsData", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1alpha_generated_AlphaAnalyticsData_QueryReportTask_async", - "title": "AlphaAnalyticsData queryReportTask Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a report task's content. After requesting the `CreateReportTask`, you are able to retrieve the report content once the report is ACTIVE. This method will return an error if the report task's state is not `ACTIVE`. A query response will return the tabular row & column values of the report.", - "canonical": true, - "file": "alpha_analytics_data.query_report_task.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryReportTask", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.QueryReportTask", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "offset", - "type": "TYPE_INT64" - }, - { - "name": "limit", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.analytics.data.v1alpha.QueryReportTaskResponse", - "client": { - "shortName": "AlphaAnalyticsDataClient", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsDataClient" - }, - "method": { - "shortName": "QueryReportTask", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.QueryReportTask", - "service": { - "shortName": "AlphaAnalyticsData", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1alpha_generated_AlphaAnalyticsData_GetReportTask_async", - "title": "AlphaAnalyticsData getReportTask Sample", - "origin": "API_DEFINITION", - "description": " Gets report metadata about a specific report task. After creating a report task, use this method to check its processing state or inspect its report definition.", - "canonical": true, - "file": "alpha_analytics_data.get_report_task.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetReportTask", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.GetReportTask", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.data.v1alpha.ReportTask", - "client": { - "shortName": "AlphaAnalyticsDataClient", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsDataClient" - }, - "method": { - "shortName": "GetReportTask", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.GetReportTask", - "service": { - "shortName": "AlphaAnalyticsData", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1alpha_generated_AlphaAnalyticsData_ListReportTasks_async", - "title": "AlphaAnalyticsData listReportTasks Sample", - "origin": "API_DEFINITION", - "description": " Lists all report tasks for a property.", - "canonical": true, - "file": "alpha_analytics_data.list_report_tasks.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListReportTasks", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.ListReportTasks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.data.v1alpha.ListReportTasksResponse", - "client": { - "shortName": "AlphaAnalyticsDataClient", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsDataClient" - }, - "method": { - "shortName": "ListReportTasks", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.ListReportTasks", - "service": { - "shortName": "AlphaAnalyticsData", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1alpha_generated_AlphaAnalyticsData_RunReport_async", - "title": "AlphaAnalyticsData runReport Sample", - "origin": "API_DEFINITION", - "description": " Returns a customized report of your Google Analytics event data. Reports contain statistics derived from data collected by the Google Analytics tracking code. The data returned from the API is as a table with columns for the requested dimensions and metrics. Metrics are individual measurements of user activity on your property, such as active users or event count. Dimensions break down metrics across some common criteria, such as country or event name.", - "canonical": true, - "file": "alpha_analytics_data.run_report.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 164, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RunReport", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.RunReport", - "async": true, - "parameters": [ - { - "name": "property", - "type": "TYPE_STRING" - }, - { - "name": "dimensions", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "metrics", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "date_ranges", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "dimension_filter", - "type": ".google.analytics.data.v1alpha.FilterExpression" - }, - { - "name": "metric_filter", - "type": ".google.analytics.data.v1alpha.FilterExpression" - }, - { - "name": "offset", - "type": "TYPE_INT64" - }, - { - "name": "limit", - "type": "TYPE_INT64" - }, - { - "name": "metric_aggregations", - "type": "TYPE_ENUM[]" - }, - { - "name": "order_bys", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "currency_code", - "type": "TYPE_STRING" - }, - { - "name": "cohort_spec", - "type": ".google.analytics.data.v1alpha.CohortSpec" - }, - { - "name": "keep_empty_rows", - "type": "TYPE_BOOL" - }, - { - "name": "return_property_quota", - "type": "TYPE_BOOL" - }, - { - "name": "comparisons", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "conversion_spec", - "type": ".google.analytics.data.v1alpha.ConversionSpec" - } - ], - "resultType": ".google.analytics.data.v1alpha.RunReportResponse", - "client": { - "shortName": "AlphaAnalyticsDataClient", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsDataClient" - }, - "method": { - "shortName": "RunReport", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.RunReport", - "service": { - "shortName": "AlphaAnalyticsData", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1alpha_generated_AlphaAnalyticsData_GetMetadata_async", - "title": "AlphaAnalyticsData getMetadata Sample", - "origin": "API_DEFINITION", - "description": " Returns metadata for dimensions and metrics available in reporting methods. Used to explore the dimensions and metrics. In this method, a Google Analytics property identifier is specified in the request, and the metadata response includes Custom dimensions and metrics as well as Universal metadata. For example if a custom metric with parameter name `levels_unlocked` is registered to a property, the Metadata response will contain `customEvent:levels_unlocked`. Universal metadata are dimensions and metrics applicable to any property such as `country` and `totalUsers`.", - "canonical": true, - "file": "alpha_analytics_data.get_metadata.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMetadata", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.GetMetadata", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.data.v1alpha.Metadata", - "client": { - "shortName": "AlphaAnalyticsDataClient", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsDataClient" - }, - "method": { - "shortName": "GetMetadata", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData.GetMetadata", - "service": { - "shortName": "AlphaAnalyticsData", - "fullName": "google.analytics.data.v1alpha.AlphaAnalyticsData" - } - } - } - } - ] -} diff --git a/packages/google-analytics-data/samples/generated/v1beta/snippet_metadata_google.analytics.data.v1beta.json b/packages/google-analytics-data/samples/generated/v1beta/snippet_metadata_google.analytics.data.v1beta.json deleted file mode 100644 index ba79913e3173..000000000000 --- a/packages/google-analytics-data/samples/generated/v1beta/snippet_metadata_google.analytics.data.v1beta.json +++ /dev/null @@ -1,639 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-data", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.analytics.data.v1beta", - "version": "v1beta" - } - ] - }, - "snippets": [ - { - "regionTag": "analyticsdata_v1beta_generated_BetaAnalyticsData_RunReport_async", - "title": "BetaAnalyticsData runReport Sample", - "origin": "API_DEFINITION", - "description": " Returns a customized report of your Google Analytics event data. Reports contain statistics derived from data collected by the Google Analytics tracking code. The data returned from the API is as a table with columns for the requested dimensions and metrics. Metrics are individual measurements of user activity on your property, such as active users or event count. Dimensions break down metrics across some common criteria, such as country or event name. For a guide to constructing requests & understanding responses, see [Creating a Report](https://developers.google.com/analytics/devguides/reporting/data/v1/basics).", - "canonical": true, - "file": "beta_analytics_data.run_report.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 154, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RunReport", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.RunReport", - "async": true, - "parameters": [ - { - "name": "property", - "type": "TYPE_STRING" - }, - { - "name": "dimensions", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "metrics", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "date_ranges", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "dimension_filter", - "type": ".google.analytics.data.v1beta.FilterExpression" - }, - { - "name": "metric_filter", - "type": ".google.analytics.data.v1beta.FilterExpression" - }, - { - "name": "offset", - "type": "TYPE_INT64" - }, - { - "name": "limit", - "type": "TYPE_INT64" - }, - { - "name": "metric_aggregations", - "type": "TYPE_ENUM[]" - }, - { - "name": "order_bys", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "currency_code", - "type": "TYPE_STRING" - }, - { - "name": "cohort_spec", - "type": ".google.analytics.data.v1beta.CohortSpec" - }, - { - "name": "keep_empty_rows", - "type": "TYPE_BOOL" - }, - { - "name": "return_property_quota", - "type": "TYPE_BOOL" - }, - { - "name": "comparisons", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.analytics.data.v1beta.RunReportResponse", - "client": { - "shortName": "BetaAnalyticsDataClient", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsDataClient" - }, - "method": { - "shortName": "RunReport", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.RunReport", - "service": { - "shortName": "BetaAnalyticsData", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1beta_generated_BetaAnalyticsData_RunPivotReport_async", - "title": "BetaAnalyticsData runPivotReport Sample", - "origin": "API_DEFINITION", - "description": " Returns a customized pivot report of your Google Analytics event data. Pivot reports are more advanced and expressive formats than regular reports. In a pivot report, dimensions are only visible if they are included in a pivot. Multiple pivots can be specified to further dissect your data.", - "canonical": true, - "file": "beta_analytics_data.run_pivot_report.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 127, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RunPivotReport", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.RunPivotReport", - "async": true, - "parameters": [ - { - "name": "property", - "type": "TYPE_STRING" - }, - { - "name": "dimensions", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "metrics", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "date_ranges", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "pivots", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "dimension_filter", - "type": ".google.analytics.data.v1beta.FilterExpression" - }, - { - "name": "metric_filter", - "type": ".google.analytics.data.v1beta.FilterExpression" - }, - { - "name": "currency_code", - "type": "TYPE_STRING" - }, - { - "name": "cohort_spec", - "type": ".google.analytics.data.v1beta.CohortSpec" - }, - { - "name": "keep_empty_rows", - "type": "TYPE_BOOL" - }, - { - "name": "return_property_quota", - "type": "TYPE_BOOL" - }, - { - "name": "comparisons", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.analytics.data.v1beta.RunPivotReportResponse", - "client": { - "shortName": "BetaAnalyticsDataClient", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsDataClient" - }, - "method": { - "shortName": "RunPivotReport", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.RunPivotReport", - "service": { - "shortName": "BetaAnalyticsData", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1beta_generated_BetaAnalyticsData_BatchRunReports_async", - "title": "BetaAnalyticsData batchRunReports Sample", - "origin": "API_DEFINITION", - "description": " Returns multiple reports in a batch. All reports must be for the same Google Analytics property.", - "canonical": true, - "file": "beta_analytics_data.batch_run_reports.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchRunReports", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.BatchRunReports", - "async": true, - "parameters": [ - { - "name": "property", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.analytics.data.v1beta.BatchRunReportsResponse", - "client": { - "shortName": "BetaAnalyticsDataClient", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsDataClient" - }, - "method": { - "shortName": "BatchRunReports", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.BatchRunReports", - "service": { - "shortName": "BetaAnalyticsData", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1beta_generated_BetaAnalyticsData_BatchRunPivotReports_async", - "title": "BetaAnalyticsData batchRunPivotReports Sample", - "origin": "API_DEFINITION", - "description": " Returns multiple pivot reports in a batch. All reports must be for the same Google Analytics property.", - "canonical": true, - "file": "beta_analytics_data.batch_run_pivot_reports.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchRunPivotReports", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.BatchRunPivotReports", - "async": true, - "parameters": [ - { - "name": "property", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.analytics.data.v1beta.BatchRunPivotReportsResponse", - "client": { - "shortName": "BetaAnalyticsDataClient", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsDataClient" - }, - "method": { - "shortName": "BatchRunPivotReports", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.BatchRunPivotReports", - "service": { - "shortName": "BetaAnalyticsData", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1beta_generated_BetaAnalyticsData_GetMetadata_async", - "title": "BetaAnalyticsData getMetadata Sample", - "origin": "API_DEFINITION", - "description": " Returns metadata for dimensions and metrics available in reporting methods. Used to explore the dimensions and metrics. In this method, a Google Analytics property identifier is specified in the request, and the metadata response includes Custom dimensions and metrics as well as Universal metadata. For example if a custom metric with parameter name `levels_unlocked` is registered to a property, the Metadata response will contain `customEvent:levels_unlocked`. Universal metadata are dimensions and metrics applicable to any property such as `country` and `totalUsers`.", - "canonical": true, - "file": "beta_analytics_data.get_metadata.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMetadata", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.GetMetadata", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.data.v1beta.Metadata", - "client": { - "shortName": "BetaAnalyticsDataClient", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsDataClient" - }, - "method": { - "shortName": "GetMetadata", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.GetMetadata", - "service": { - "shortName": "BetaAnalyticsData", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1beta_generated_BetaAnalyticsData_RunRealtimeReport_async", - "title": "BetaAnalyticsData runRealtimeReport Sample", - "origin": "API_DEFINITION", - "description": " Returns a customized report of realtime event data for your property. Events appear in realtime reports seconds after they have been sent to the Google Analytics. Realtime reports show events and usage data for the periods of time ranging from the present moment to 30 minutes ago (up to 60 minutes for Google Analytics 360 properties). For a guide to constructing realtime requests & understanding responses, see [Creating a Realtime Report](https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-basics).", - "canonical": true, - "file": "beta_analytics_data.run_realtime_report.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 107, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RunRealtimeReport", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.RunRealtimeReport", - "async": true, - "parameters": [ - { - "name": "property", - "type": "TYPE_STRING" - }, - { - "name": "dimensions", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "metrics", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "dimension_filter", - "type": ".google.analytics.data.v1beta.FilterExpression" - }, - { - "name": "metric_filter", - "type": ".google.analytics.data.v1beta.FilterExpression" - }, - { - "name": "limit", - "type": "TYPE_INT64" - }, - { - "name": "metric_aggregations", - "type": "TYPE_ENUM[]" - }, - { - "name": "order_bys", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "return_property_quota", - "type": "TYPE_BOOL" - }, - { - "name": "minute_ranges", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.analytics.data.v1beta.RunRealtimeReportResponse", - "client": { - "shortName": "BetaAnalyticsDataClient", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsDataClient" - }, - "method": { - "shortName": "RunRealtimeReport", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.RunRealtimeReport", - "service": { - "shortName": "BetaAnalyticsData", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1beta_generated_BetaAnalyticsData_CheckCompatibility_async", - "title": "BetaAnalyticsData checkCompatibility Sample", - "origin": "API_DEFINITION", - "description": " This compatibility method lists dimensions and metrics that can be added to a report request and maintain compatibility. This method fails if the request's dimensions and metrics are incompatible. In Google Analytics, reports fail if they request incompatible dimensions and/or metrics; in that case, you will need to remove dimensions and/or metrics from the incompatible report until the report is compatible. The Realtime and Core reports have different compatibility rules. This method checks compatibility for Core reports.", - "canonical": true, - "file": "beta_analytics_data.check_compatibility.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CheckCompatibility", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.CheckCompatibility", - "async": true, - "parameters": [ - { - "name": "property", - "type": "TYPE_STRING" - }, - { - "name": "dimensions", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "metrics", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "dimension_filter", - "type": ".google.analytics.data.v1beta.FilterExpression" - }, - { - "name": "metric_filter", - "type": ".google.analytics.data.v1beta.FilterExpression" - }, - { - "name": "compatibility_filter", - "type": ".google.analytics.data.v1beta.Compatibility" - } - ], - "resultType": ".google.analytics.data.v1beta.CheckCompatibilityResponse", - "client": { - "shortName": "BetaAnalyticsDataClient", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsDataClient" - }, - "method": { - "shortName": "CheckCompatibility", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.CheckCompatibility", - "service": { - "shortName": "BetaAnalyticsData", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1beta_generated_BetaAnalyticsData_CreateAudienceExport_async", - "title": "BetaAnalyticsData createAudienceExport Sample", - "origin": "API_DEFINITION", - "description": " Creates an audience export for later retrieval. This method quickly returns the audience export's resource name and initiates a long running asynchronous request to form an audience export. To export the users in an audience export, first create the audience export through this method and then send the audience resource name to the `QueryAudienceExport` method. See [Creating an Audience Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) for an introduction to Audience Exports with examples. An audience export is a snapshot of the users currently in the audience at the time of audience export creation. Creating audience exports for one audience on different days will return different results as users enter and exit the audience. Audiences in Google Analytics 4 allow you to segment your users in the ways that are important to your business. To learn more, see https://support.google.com/analytics/answer/9267572. Audience exports contain the users in each audience. Audience Export APIs have some methods at alpha and other methods at beta stability. The intention is to advance methods to beta stability after some feedback and adoption. To give your feedback on this API, complete the [Google Analytics Audience Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.", - "canonical": true, - "file": "beta_analytics_data.create_audience_export.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAudienceExport", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.CreateAudienceExport", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "audience_export", - "type": ".google.analytics.data.v1beta.AudienceExport" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BetaAnalyticsDataClient", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsDataClient" - }, - "method": { - "shortName": "CreateAudienceExport", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.CreateAudienceExport", - "service": { - "shortName": "BetaAnalyticsData", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1beta_generated_BetaAnalyticsData_QueryAudienceExport_async", - "title": "BetaAnalyticsData queryAudienceExport Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an audience export of users. After creating an audience, the users are not immediately available for exporting. First, a request to `CreateAudienceExport` is necessary to create an audience export of users, and then second, this method is used to retrieve the users in the audience export. See [Creating an Audience Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) for an introduction to Audience Exports with examples. Audiences in Google Analytics 4 allow you to segment your users in the ways that are important to your business. To learn more, see https://support.google.com/analytics/answer/9267572. Audience Export APIs have some methods at alpha and other methods at beta stability. The intention is to advance methods to beta stability after some feedback and adoption. To give your feedback on this API, complete the [Google Analytics Audience Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.", - "canonical": true, - "file": "beta_analytics_data.query_audience_export.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryAudienceExport", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.QueryAudienceExport", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "offset", - "type": "TYPE_INT64" - }, - { - "name": "limit", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.analytics.data.v1beta.QueryAudienceExportResponse", - "client": { - "shortName": "BetaAnalyticsDataClient", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsDataClient" - }, - "method": { - "shortName": "QueryAudienceExport", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.QueryAudienceExport", - "service": { - "shortName": "BetaAnalyticsData", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1beta_generated_BetaAnalyticsData_GetAudienceExport_async", - "title": "BetaAnalyticsData getAudienceExport Sample", - "origin": "API_DEFINITION", - "description": " Gets configuration metadata about a specific audience export. This method can be used to understand an audience export after it has been created. See [Creating an Audience Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) for an introduction to Audience Exports with examples. Audience Export APIs have some methods at alpha and other methods at beta stability. The intention is to advance methods to beta stability after some feedback and adoption. To give your feedback on this API, complete the [Google Analytics Audience Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.", - "canonical": true, - "file": "beta_analytics_data.get_audience_export.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAudienceExport", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.GetAudienceExport", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.data.v1beta.AudienceExport", - "client": { - "shortName": "BetaAnalyticsDataClient", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsDataClient" - }, - "method": { - "shortName": "GetAudienceExport", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.GetAudienceExport", - "service": { - "shortName": "BetaAnalyticsData", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData" - } - } - } - }, - { - "regionTag": "analyticsdata_v1beta_generated_BetaAnalyticsData_ListAudienceExports_async", - "title": "BetaAnalyticsData listAudienceExports Sample", - "origin": "API_DEFINITION", - "description": " Lists all audience exports for a property. This method can be used for you to find and reuse existing audience exports rather than creating unnecessary new audience exports. The same audience can have multiple audience exports that represent the export of users that were in an audience on different days. See [Creating an Audience Export](https://developers.google.com/analytics/devguides/reporting/data/v1/audience-list-basics) for an introduction to Audience Exports with examples. Audience Export APIs have some methods at alpha and other methods at beta stability. The intention is to advance methods to beta stability after some feedback and adoption. To give your feedback on this API, complete the [Google Analytics Audience Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form.", - "canonical": true, - "file": "beta_analytics_data.list_audience_exports.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAudienceExports", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.ListAudienceExports", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.analytics.data.v1beta.ListAudienceExportsResponse", - "client": { - "shortName": "BetaAnalyticsDataClient", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsDataClient" - }, - "method": { - "shortName": "ListAudienceExports", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData.ListAudienceExports", - "service": { - "shortName": "BetaAnalyticsData", - "fullName": "google.analytics.data.v1beta.BetaAnalyticsData" - } - } - } - } - ] -} diff --git a/packages/google-api-apikeys/samples/generated/v2/snippet_metadata_google.api.apikeys.v2.json b/packages/google-api-apikeys/samples/generated/v2/snippet_metadata_google.api.apikeys.v2.json deleted file mode 100644 index a9368098ad0d..000000000000 --- a/packages/google-api-apikeys/samples/generated/v2/snippet_metadata_google.api.apikeys.v2.json +++ /dev/null @@ -1,363 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-apikeys", - "version": "2.2.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.api.apikeys.v2", - "version": "v2" - } - ] - }, - "snippets": [ - { - "regionTag": "apikeys_v2_generated_ApiKeys_CreateKey_async", - "title": "ApiKeys createKey Sample", - "origin": "API_DEFINITION", - "description": " Creates a new API key. NOTE: Key is a global resource; hence the only supported value for location is `global`.", - "canonical": true, - "file": "api_keys.create_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateKey", - "fullName": "google.api.apikeys.v2.ApiKeys.CreateKey", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "key", - "type": ".google.api.apikeys.v2.Key" - }, - { - "name": "key_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ApiKeysClient", - "fullName": "google.api.apikeys.v2.ApiKeysClient" - }, - "method": { - "shortName": "CreateKey", - "fullName": "google.api.apikeys.v2.ApiKeys.CreateKey", - "service": { - "shortName": "ApiKeys", - "fullName": "google.api.apikeys.v2.ApiKeys" - } - } - } - }, - { - "regionTag": "apikeys_v2_generated_ApiKeys_ListKeys_async", - "title": "ApiKeys listKeys Sample", - "origin": "API_DEFINITION", - "description": " Lists the API keys owned by a project. The key string of the API key isn't included in the response. NOTE: Key is a global resource; hence the only supported value for location is `global`.", - "canonical": true, - "file": "api_keys.list_keys.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListKeys", - "fullName": "google.api.apikeys.v2.ApiKeys.ListKeys", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "show_deleted", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.api.apikeys.v2.ListKeysResponse", - "client": { - "shortName": "ApiKeysClient", - "fullName": "google.api.apikeys.v2.ApiKeysClient" - }, - "method": { - "shortName": "ListKeys", - "fullName": "google.api.apikeys.v2.ApiKeys.ListKeys", - "service": { - "shortName": "ApiKeys", - "fullName": "google.api.apikeys.v2.ApiKeys" - } - } - } - }, - { - "regionTag": "apikeys_v2_generated_ApiKeys_GetKey_async", - "title": "ApiKeys getKey Sample", - "origin": "API_DEFINITION", - "description": " Gets the metadata for an API key. The key string of the API key isn't included in the response. NOTE: Key is a global resource; hence the only supported value for location is `global`.", - "canonical": true, - "file": "api_keys.get_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetKey", - "fullName": "google.api.apikeys.v2.ApiKeys.GetKey", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.api.apikeys.v2.Key", - "client": { - "shortName": "ApiKeysClient", - "fullName": "google.api.apikeys.v2.ApiKeysClient" - }, - "method": { - "shortName": "GetKey", - "fullName": "google.api.apikeys.v2.ApiKeys.GetKey", - "service": { - "shortName": "ApiKeys", - "fullName": "google.api.apikeys.v2.ApiKeys" - } - } - } - }, - { - "regionTag": "apikeys_v2_generated_ApiKeys_GetKeyString_async", - "title": "ApiKeys getKeyString Sample", - "origin": "API_DEFINITION", - "description": " Get the key string for an API key. NOTE: Key is a global resource; hence the only supported value for location is `global`.", - "canonical": true, - "file": "api_keys.get_key_string.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetKeyString", - "fullName": "google.api.apikeys.v2.ApiKeys.GetKeyString", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.api.apikeys.v2.GetKeyStringResponse", - "client": { - "shortName": "ApiKeysClient", - "fullName": "google.api.apikeys.v2.ApiKeysClient" - }, - "method": { - "shortName": "GetKeyString", - "fullName": "google.api.apikeys.v2.ApiKeys.GetKeyString", - "service": { - "shortName": "ApiKeys", - "fullName": "google.api.apikeys.v2.ApiKeys" - } - } - } - }, - { - "regionTag": "apikeys_v2_generated_ApiKeys_UpdateKey_async", - "title": "ApiKeys updateKey Sample", - "origin": "API_DEFINITION", - "description": " Patches the modifiable fields of an API key. The key string of the API key isn't included in the response. NOTE: Key is a global resource; hence the only supported value for location is `global`.", - "canonical": true, - "file": "api_keys.update_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateKey", - "fullName": "google.api.apikeys.v2.ApiKeys.UpdateKey", - "async": true, - "parameters": [ - { - "name": "key", - "type": ".google.api.apikeys.v2.Key" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ApiKeysClient", - "fullName": "google.api.apikeys.v2.ApiKeysClient" - }, - "method": { - "shortName": "UpdateKey", - "fullName": "google.api.apikeys.v2.ApiKeys.UpdateKey", - "service": { - "shortName": "ApiKeys", - "fullName": "google.api.apikeys.v2.ApiKeys" - } - } - } - }, - { - "regionTag": "apikeys_v2_generated_ApiKeys_DeleteKey_async", - "title": "ApiKeys deleteKey Sample", - "origin": "API_DEFINITION", - "description": " Deletes an API key. Deleted key can be retrieved within 30 days of deletion. Afterward, key will be purged from the project. NOTE: Key is a global resource; hence the only supported value for location is `global`.", - "canonical": true, - "file": "api_keys.delete_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteKey", - "fullName": "google.api.apikeys.v2.ApiKeys.DeleteKey", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ApiKeysClient", - "fullName": "google.api.apikeys.v2.ApiKeysClient" - }, - "method": { - "shortName": "DeleteKey", - "fullName": "google.api.apikeys.v2.ApiKeys.DeleteKey", - "service": { - "shortName": "ApiKeys", - "fullName": "google.api.apikeys.v2.ApiKeys" - } - } - } - }, - { - "regionTag": "apikeys_v2_generated_ApiKeys_UndeleteKey_async", - "title": "ApiKeys undeleteKey Sample", - "origin": "API_DEFINITION", - "description": " Undeletes an API key which was deleted within 30 days. NOTE: Key is a global resource; hence the only supported value for location is `global`.", - "canonical": true, - "file": "api_keys.undelete_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UndeleteKey", - "fullName": "google.api.apikeys.v2.ApiKeys.UndeleteKey", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ApiKeysClient", - "fullName": "google.api.apikeys.v2.ApiKeysClient" - }, - "method": { - "shortName": "UndeleteKey", - "fullName": "google.api.apikeys.v2.ApiKeys.UndeleteKey", - "service": { - "shortName": "ApiKeys", - "fullName": "google.api.apikeys.v2.ApiKeys" - } - } - } - }, - { - "regionTag": "apikeys_v2_generated_ApiKeys_LookupKey_async", - "title": "ApiKeys lookupKey Sample", - "origin": "API_DEFINITION", - "description": " Find the parent project and resource name of the API key that matches the key string in the request. If the API key has been purged, resource name will not be set. The service account must have the `apikeys.keys.lookup` permission on the parent project.", - "canonical": true, - "file": "api_keys.lookup_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "LookupKey", - "fullName": "google.api.apikeys.v2.ApiKeys.LookupKey", - "async": true, - "parameters": [ - { - "name": "key_string", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.api.apikeys.v2.LookupKeyResponse", - "client": { - "shortName": "ApiKeysClient", - "fullName": "google.api.apikeys.v2.ApiKeysClient" - }, - "method": { - "shortName": "LookupKey", - "fullName": "google.api.apikeys.v2.ApiKeys.LookupKey", - "service": { - "shortName": "ApiKeys", - "fullName": "google.api.apikeys.v2.ApiKeys" - } - } - } - } - ] -} diff --git a/packages/google-api-cloudquotas/samples/generated/v1/snippet_metadata_google.api.cloudquotas.v1.json b/packages/google-api-cloudquotas/samples/generated/v1/snippet_metadata_google.api.cloudquotas.v1.json deleted file mode 100644 index 86379c255264..000000000000 --- a/packages/google-api-cloudquotas/samples/generated/v1/snippet_metadata_google.api.cloudquotas.v1.json +++ /dev/null @@ -1,307 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-cloudquotas", - "version": "2.3.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.api.cloudquotas.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "cloudquotas_v1_generated_CloudQuotas_ListQuotaInfos_async", - "title": "CloudQuotas listQuotaInfos Sample", - "origin": "API_DEFINITION", - "description": " Lists QuotaInfos of all quotas for a given project, folder or organization.", - "canonical": true, - "file": "cloud_quotas.list_quota_infos.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListQuotaInfos", - "fullName": "google.api.cloudquotas.v1.CloudQuotas.ListQuotaInfos", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.api.cloudquotas.v1.ListQuotaInfosResponse", - "client": { - "shortName": "CloudQuotasClient", - "fullName": "google.api.cloudquotas.v1.CloudQuotasClient" - }, - "method": { - "shortName": "ListQuotaInfos", - "fullName": "google.api.cloudquotas.v1.CloudQuotas.ListQuotaInfos", - "service": { - "shortName": "CloudQuotas", - "fullName": "google.api.cloudquotas.v1.CloudQuotas" - } - } - } - }, - { - "regionTag": "cloudquotas_v1_generated_CloudQuotas_GetQuotaInfo_async", - "title": "CloudQuotas getQuotaInfo Sample", - "origin": "API_DEFINITION", - "description": " Retrieve the QuotaInfo of a quota for a project, folder or organization.", - "canonical": true, - "file": "cloud_quotas.get_quota_info.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetQuotaInfo", - "fullName": "google.api.cloudquotas.v1.CloudQuotas.GetQuotaInfo", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.api.cloudquotas.v1.QuotaInfo", - "client": { - "shortName": "CloudQuotasClient", - "fullName": "google.api.cloudquotas.v1.CloudQuotasClient" - }, - "method": { - "shortName": "GetQuotaInfo", - "fullName": "google.api.cloudquotas.v1.CloudQuotas.GetQuotaInfo", - "service": { - "shortName": "CloudQuotas", - "fullName": "google.api.cloudquotas.v1.CloudQuotas" - } - } - } - }, - { - "regionTag": "cloudquotas_v1_generated_CloudQuotas_ListQuotaPreferences_async", - "title": "CloudQuotas listQuotaPreferences Sample", - "origin": "API_DEFINITION", - "description": " Lists QuotaPreferences in a given project, folder or organization.", - "canonical": true, - "file": "cloud_quotas.list_quota_preferences.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListQuotaPreferences", - "fullName": "google.api.cloudquotas.v1.CloudQuotas.ListQuotaPreferences", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.api.cloudquotas.v1.ListQuotaPreferencesResponse", - "client": { - "shortName": "CloudQuotasClient", - "fullName": "google.api.cloudquotas.v1.CloudQuotasClient" - }, - "method": { - "shortName": "ListQuotaPreferences", - "fullName": "google.api.cloudquotas.v1.CloudQuotas.ListQuotaPreferences", - "service": { - "shortName": "CloudQuotas", - "fullName": "google.api.cloudquotas.v1.CloudQuotas" - } - } - } - }, - { - "regionTag": "cloudquotas_v1_generated_CloudQuotas_GetQuotaPreference_async", - "title": "CloudQuotas getQuotaPreference Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single QuotaPreference.", - "canonical": true, - "file": "cloud_quotas.get_quota_preference.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetQuotaPreference", - "fullName": "google.api.cloudquotas.v1.CloudQuotas.GetQuotaPreference", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.api.cloudquotas.v1.QuotaPreference", - "client": { - "shortName": "CloudQuotasClient", - "fullName": "google.api.cloudquotas.v1.CloudQuotasClient" - }, - "method": { - "shortName": "GetQuotaPreference", - "fullName": "google.api.cloudquotas.v1.CloudQuotas.GetQuotaPreference", - "service": { - "shortName": "CloudQuotas", - "fullName": "google.api.cloudquotas.v1.CloudQuotas" - } - } - } - }, - { - "regionTag": "cloudquotas_v1_generated_CloudQuotas_CreateQuotaPreference_async", - "title": "CloudQuotas createQuotaPreference Sample", - "origin": "API_DEFINITION", - "description": " Creates a new QuotaPreference that declares the desired value for a quota.", - "canonical": true, - "file": "cloud_quotas.create_quota_preference.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateQuotaPreference", - "fullName": "google.api.cloudquotas.v1.CloudQuotas.CreateQuotaPreference", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "quota_preference_id", - "type": "TYPE_STRING" - }, - { - "name": "quota_preference", - "type": ".google.api.cloudquotas.v1.QuotaPreference" - }, - { - "name": "ignore_safety_checks", - "type": "TYPE_ENUM[]" - } - ], - "resultType": ".google.api.cloudquotas.v1.QuotaPreference", - "client": { - "shortName": "CloudQuotasClient", - "fullName": "google.api.cloudquotas.v1.CloudQuotasClient" - }, - "method": { - "shortName": "CreateQuotaPreference", - "fullName": "google.api.cloudquotas.v1.CloudQuotas.CreateQuotaPreference", - "service": { - "shortName": "CloudQuotas", - "fullName": "google.api.cloudquotas.v1.CloudQuotas" - } - } - } - }, - { - "regionTag": "cloudquotas_v1_generated_CloudQuotas_UpdateQuotaPreference_async", - "title": "CloudQuotas updateQuotaPreference Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single QuotaPreference. It can updates the config in any states, not just the ones pending approval.", - "canonical": true, - "file": "cloud_quotas.update_quota_preference.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateQuotaPreference", - "fullName": "google.api.cloudquotas.v1.CloudQuotas.UpdateQuotaPreference", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "quota_preference", - "type": ".google.api.cloudquotas.v1.QuotaPreference" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "ignore_safety_checks", - "type": "TYPE_ENUM[]" - } - ], - "resultType": ".google.api.cloudquotas.v1.QuotaPreference", - "client": { - "shortName": "CloudQuotasClient", - "fullName": "google.api.cloudquotas.v1.CloudQuotasClient" - }, - "method": { - "shortName": "UpdateQuotaPreference", - "fullName": "google.api.cloudquotas.v1.CloudQuotas.UpdateQuotaPreference", - "service": { - "shortName": "CloudQuotas", - "fullName": "google.api.cloudquotas.v1.CloudQuotas" - } - } - } - } - ] -} diff --git a/packages/google-api-cloudquotas/samples/generated/v1beta/snippet_metadata_google.api.cloudquotas.v1beta.json b/packages/google-api-cloudquotas/samples/generated/v1beta/snippet_metadata_google.api.cloudquotas.v1beta.json deleted file mode 100644 index 422129620c13..000000000000 --- a/packages/google-api-cloudquotas/samples/generated/v1beta/snippet_metadata_google.api.cloudquotas.v1beta.json +++ /dev/null @@ -1,395 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-cloudquotas", - "version": "2.3.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.api.cloudquotas.v1beta", - "version": "v1beta" - } - ] - }, - "snippets": [ - { - "regionTag": "cloudquotas_v1beta_generated_CloudQuotas_ListQuotaInfos_async", - "title": "CloudQuotas listQuotaInfos Sample", - "origin": "API_DEFINITION", - "description": " Lists QuotaInfos of all quotas for a given project, folder or organization.", - "canonical": true, - "file": "cloud_quotas.list_quota_infos.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListQuotaInfos", - "fullName": "google.api.cloudquotas.v1beta.CloudQuotas.ListQuotaInfos", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.api.cloudquotas.v1beta.ListQuotaInfosResponse", - "client": { - "shortName": "CloudQuotasClient", - "fullName": "google.api.cloudquotas.v1beta.CloudQuotasClient" - }, - "method": { - "shortName": "ListQuotaInfos", - "fullName": "google.api.cloudquotas.v1beta.CloudQuotas.ListQuotaInfos", - "service": { - "shortName": "CloudQuotas", - "fullName": "google.api.cloudquotas.v1beta.CloudQuotas" - } - } - } - }, - { - "regionTag": "cloudquotas_v1beta_generated_CloudQuotas_GetQuotaInfo_async", - "title": "CloudQuotas getQuotaInfo Sample", - "origin": "API_DEFINITION", - "description": " Retrieve the QuotaInfo of a quota for a project, folder or organization.", - "canonical": true, - "file": "cloud_quotas.get_quota_info.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetQuotaInfo", - "fullName": "google.api.cloudquotas.v1beta.CloudQuotas.GetQuotaInfo", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.api.cloudquotas.v1beta.QuotaInfo", - "client": { - "shortName": "CloudQuotasClient", - "fullName": "google.api.cloudquotas.v1beta.CloudQuotasClient" - }, - "method": { - "shortName": "GetQuotaInfo", - "fullName": "google.api.cloudquotas.v1beta.CloudQuotas.GetQuotaInfo", - "service": { - "shortName": "CloudQuotas", - "fullName": "google.api.cloudquotas.v1beta.CloudQuotas" - } - } - } - }, - { - "regionTag": "cloudquotas_v1beta_generated_CloudQuotas_ListQuotaPreferences_async", - "title": "CloudQuotas listQuotaPreferences Sample", - "origin": "API_DEFINITION", - "description": " Lists QuotaPreferences in a given project, folder or organization.", - "canonical": true, - "file": "cloud_quotas.list_quota_preferences.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListQuotaPreferences", - "fullName": "google.api.cloudquotas.v1beta.CloudQuotas.ListQuotaPreferences", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.api.cloudquotas.v1beta.ListQuotaPreferencesResponse", - "client": { - "shortName": "CloudQuotasClient", - "fullName": "google.api.cloudquotas.v1beta.CloudQuotasClient" - }, - "method": { - "shortName": "ListQuotaPreferences", - "fullName": "google.api.cloudquotas.v1beta.CloudQuotas.ListQuotaPreferences", - "service": { - "shortName": "CloudQuotas", - "fullName": "google.api.cloudquotas.v1beta.CloudQuotas" - } - } - } - }, - { - "regionTag": "cloudquotas_v1beta_generated_CloudQuotas_GetQuotaPreference_async", - "title": "CloudQuotas getQuotaPreference Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single QuotaPreference.", - "canonical": true, - "file": "cloud_quotas.get_quota_preference.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetQuotaPreference", - "fullName": "google.api.cloudquotas.v1beta.CloudQuotas.GetQuotaPreference", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.api.cloudquotas.v1beta.QuotaPreference", - "client": { - "shortName": "CloudQuotasClient", - "fullName": "google.api.cloudquotas.v1beta.CloudQuotasClient" - }, - "method": { - "shortName": "GetQuotaPreference", - "fullName": "google.api.cloudquotas.v1beta.CloudQuotas.GetQuotaPreference", - "service": { - "shortName": "CloudQuotas", - "fullName": "google.api.cloudquotas.v1beta.CloudQuotas" - } - } - } - }, - { - "regionTag": "cloudquotas_v1beta_generated_CloudQuotas_CreateQuotaPreference_async", - "title": "CloudQuotas createQuotaPreference Sample", - "origin": "API_DEFINITION", - "description": " Creates a new QuotaPreference that declares the desired value for a quota.", - "canonical": true, - "file": "cloud_quotas.create_quota_preference.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateQuotaPreference", - "fullName": "google.api.cloudquotas.v1beta.CloudQuotas.CreateQuotaPreference", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "quota_preference_id", - "type": "TYPE_STRING" - }, - { - "name": "quota_preference", - "type": ".google.api.cloudquotas.v1beta.QuotaPreference" - }, - { - "name": "ignore_safety_checks", - "type": "TYPE_ENUM[]" - } - ], - "resultType": ".google.api.cloudquotas.v1beta.QuotaPreference", - "client": { - "shortName": "CloudQuotasClient", - "fullName": "google.api.cloudquotas.v1beta.CloudQuotasClient" - }, - "method": { - "shortName": "CreateQuotaPreference", - "fullName": "google.api.cloudquotas.v1beta.CloudQuotas.CreateQuotaPreference", - "service": { - "shortName": "CloudQuotas", - "fullName": "google.api.cloudquotas.v1beta.CloudQuotas" - } - } - } - }, - { - "regionTag": "cloudquotas_v1beta_generated_CloudQuotas_UpdateQuotaPreference_async", - "title": "CloudQuotas updateQuotaPreference Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single QuotaPreference. It can updates the config in any states, not just the ones pending approval.", - "canonical": true, - "file": "cloud_quotas.update_quota_preference.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateQuotaPreference", - "fullName": "google.api.cloudquotas.v1beta.CloudQuotas.UpdateQuotaPreference", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "quota_preference", - "type": ".google.api.cloudquotas.v1beta.QuotaPreference" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "ignore_safety_checks", - "type": "TYPE_ENUM[]" - } - ], - "resultType": ".google.api.cloudquotas.v1beta.QuotaPreference", - "client": { - "shortName": "CloudQuotasClient", - "fullName": "google.api.cloudquotas.v1beta.CloudQuotasClient" - }, - "method": { - "shortName": "UpdateQuotaPreference", - "fullName": "google.api.cloudquotas.v1beta.CloudQuotas.UpdateQuotaPreference", - "service": { - "shortName": "CloudQuotas", - "fullName": "google.api.cloudquotas.v1beta.CloudQuotas" - } - } - } - }, - { - "regionTag": "cloudquotas_v1beta_generated_QuotaAdjusterSettingsManager_UpdateQuotaAdjusterSettings_async", - "title": "CloudQuotas updateQuotaAdjusterSettings Sample", - "origin": "API_DEFINITION", - "description": " Updates the QuotaAdjusterSettings for the specified resource.", - "canonical": true, - "file": "quota_adjuster_settings_manager.update_quota_adjuster_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateQuotaAdjusterSettings", - "fullName": "google.api.cloudquotas.v1beta.QuotaAdjusterSettingsManager.UpdateQuotaAdjusterSettings", - "async": true, - "parameters": [ - { - "name": "quota_adjuster_settings", - "type": ".google.api.cloudquotas.v1beta.QuotaAdjusterSettings" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.api.cloudquotas.v1beta.QuotaAdjusterSettings", - "client": { - "shortName": "QuotaAdjusterSettingsManagerClient", - "fullName": "google.api.cloudquotas.v1beta.QuotaAdjusterSettingsManagerClient" - }, - "method": { - "shortName": "UpdateQuotaAdjusterSettings", - "fullName": "google.api.cloudquotas.v1beta.QuotaAdjusterSettingsManager.UpdateQuotaAdjusterSettings", - "service": { - "shortName": "QuotaAdjusterSettingsManager", - "fullName": "google.api.cloudquotas.v1beta.QuotaAdjusterSettingsManager" - } - } - } - }, - { - "regionTag": "cloudquotas_v1beta_generated_QuotaAdjusterSettingsManager_GetQuotaAdjusterSettings_async", - "title": "CloudQuotas getQuotaAdjusterSettings Sample", - "origin": "API_DEFINITION", - "description": " Gets the QuotaAdjusterSettings for the specified resource.", - "canonical": true, - "file": "quota_adjuster_settings_manager.get_quota_adjuster_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetQuotaAdjusterSettings", - "fullName": "google.api.cloudquotas.v1beta.QuotaAdjusterSettingsManager.GetQuotaAdjusterSettings", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.api.cloudquotas.v1beta.QuotaAdjusterSettings", - "client": { - "shortName": "QuotaAdjusterSettingsManagerClient", - "fullName": "google.api.cloudquotas.v1beta.QuotaAdjusterSettingsManagerClient" - }, - "method": { - "shortName": "GetQuotaAdjusterSettings", - "fullName": "google.api.cloudquotas.v1beta.QuotaAdjusterSettingsManager.GetQuotaAdjusterSettings", - "service": { - "shortName": "QuotaAdjusterSettingsManager", - "fullName": "google.api.cloudquotas.v1beta.QuotaAdjusterSettingsManager" - } - } - } - } - ] -} diff --git a/packages/google-api-servicecontrol/samples/generated/v1/snippet_metadata_google.api.servicecontrol.v1.json b/packages/google-api-servicecontrol/samples/generated/v1/snippet_metadata_google.api.servicecontrol.v1.json deleted file mode 100644 index 3349c4a831ef..000000000000 --- a/packages/google-api-servicecontrol/samples/generated/v1/snippet_metadata_google.api.servicecontrol.v1.json +++ /dev/null @@ -1,159 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-servicecontrol", - "version": "4.3.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.api.servicecontrol.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "servicecontrol_v1_generated_QuotaController_AllocateQuota_async", - "title": "QuotaController allocateQuota Sample", - "origin": "API_DEFINITION", - "description": " Attempts to allocate quota for the specified consumer. It should be called before the operation is executed. This method requires the `servicemanagement.services.quota` permission on the specified service. For more information, see [Cloud IAM](https://cloud.google.com/iam). **NOTE:** The client **must** fail-open on server errors `INTERNAL`, `UNKNOWN`, `DEADLINE_EXCEEDED`, and `UNAVAILABLE`. To ensure system reliability, the server may inject these errors to prohibit any hard dependency on the quota functionality.", - "canonical": true, - "file": "quota_controller.allocate_quota.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AllocateQuota", - "fullName": "google.api.servicecontrol.v1.QuotaController.AllocateQuota", - "async": true, - "parameters": [ - { - "name": "service_name", - "type": "TYPE_STRING" - }, - { - "name": "allocate_operation", - "type": ".google.api.servicecontrol.v1.QuotaOperation" - }, - { - "name": "service_config_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.api.servicecontrol.v1.AllocateQuotaResponse", - "client": { - "shortName": "QuotaControllerClient", - "fullName": "google.api.servicecontrol.v1.QuotaControllerClient" - }, - "method": { - "shortName": "AllocateQuota", - "fullName": "google.api.servicecontrol.v1.QuotaController.AllocateQuota", - "service": { - "shortName": "QuotaController", - "fullName": "google.api.servicecontrol.v1.QuotaController" - } - } - } - }, - { - "regionTag": "servicecontrol_v1_generated_ServiceController_Check_async", - "title": "QuotaController check Sample", - "origin": "API_DEFINITION", - "description": " Checks whether an operation on a service should be allowed to proceed based on the configuration of the service and related policies. It must be called before the operation is executed. If feasible, the client should cache the check results and reuse them for 60 seconds. In case of any server errors, the client should rely on the cached results for much longer time to avoid outage. WARNING: There is general 60s delay for the configuration and policy propagation, therefore callers MUST NOT depend on the `Check` method having the latest policy information. NOTE: the [CheckRequest][google.api.servicecontrol.v1.CheckRequest] has the size limit (wire-format byte size) of 1MB. This method requires the `servicemanagement.services.check` permission on the specified service. For more information, see [Cloud IAM](https://cloud.google.com/iam).", - "canonical": true, - "file": "service_controller.check.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Check", - "fullName": "google.api.servicecontrol.v1.ServiceController.Check", - "async": true, - "parameters": [ - { - "name": "service_name", - "type": "TYPE_STRING" - }, - { - "name": "operation", - "type": ".google.api.servicecontrol.v1.Operation" - }, - { - "name": "service_config_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.api.servicecontrol.v1.CheckResponse", - "client": { - "shortName": "ServiceControllerClient", - "fullName": "google.api.servicecontrol.v1.ServiceControllerClient" - }, - "method": { - "shortName": "Check", - "fullName": "google.api.servicecontrol.v1.ServiceController.Check", - "service": { - "shortName": "ServiceController", - "fullName": "google.api.servicecontrol.v1.ServiceController" - } - } - } - }, - { - "regionTag": "servicecontrol_v1_generated_ServiceController_Report_async", - "title": "QuotaController report Sample", - "origin": "API_DEFINITION", - "description": " Reports operation results to Google Service Control, such as logs and metrics. It should be called after an operation is completed. If feasible, the client should aggregate reporting data for up to 5 seconds to reduce API traffic. Limiting aggregation to 5 seconds is to reduce data loss during client crashes. Clients should carefully choose the aggregation time window to avoid data loss risk more than 0.01% for business and compliance reasons. NOTE: the [ReportRequest][google.api.servicecontrol.v1.ReportRequest] has the size limit (wire-format byte size) of 1MB. This method requires the `servicemanagement.services.report` permission on the specified service. For more information, see [Google Cloud IAM](https://cloud.google.com/iam).", - "canonical": true, - "file": "service_controller.report.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Report", - "fullName": "google.api.servicecontrol.v1.ServiceController.Report", - "async": true, - "parameters": [ - { - "name": "service_name", - "type": "TYPE_STRING" - }, - { - "name": "operations", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "service_config_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.api.servicecontrol.v1.ReportResponse", - "client": { - "shortName": "ServiceControllerClient", - "fullName": "google.api.servicecontrol.v1.ServiceControllerClient" - }, - "method": { - "shortName": "Report", - "fullName": "google.api.servicecontrol.v1.ServiceController.Report", - "service": { - "shortName": "ServiceController", - "fullName": "google.api.servicecontrol.v1.ServiceController" - } - } - } - } - ] -} diff --git a/packages/google-api-servicecontrol/samples/generated/v2/snippet_metadata_google.api.servicecontrol.v2.json b/packages/google-api-servicecontrol/samples/generated/v2/snippet_metadata_google.api.servicecontrol.v2.json deleted file mode 100644 index c2a8ec0fa359..000000000000 --- a/packages/google-api-servicecontrol/samples/generated/v2/snippet_metadata_google.api.servicecontrol.v2.json +++ /dev/null @@ -1,119 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-servicecontrol", - "version": "4.3.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.api.servicecontrol.v2", - "version": "v2" - } - ] - }, - "snippets": [ - { - "regionTag": "servicecontrol_v2_generated_ServiceController_Check_async", - "title": "ServiceController check Sample", - "origin": "API_DEFINITION", - "description": " This method provides admission control for services that are integrated with [Service Infrastructure](https://cloud.google.com/service-infrastructure). It checks whether an operation should be allowed based on the service configuration and relevant policies. It must be called before the operation is executed. For more information, see [Admission Control](https://cloud.google.com/service-infrastructure/docs/admission-control). NOTE: The admission control has an expected policy propagation delay of 60s. The caller **must** not depend on the most recent policy changes. NOTE: The admission control has a hard limit of 1 referenced resources per call. If an operation refers to more than 1 resources, the caller must call the Check method multiple times. This method requires the `servicemanagement.services.check` permission on the specified service. For more information, see [Service Control API Access Control](https://cloud.google.com/service-infrastructure/docs/service-control/access-control).", - "canonical": true, - "file": "service_controller.check.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Check", - "fullName": "google.api.servicecontrol.v2.ServiceController.Check", - "async": true, - "parameters": [ - { - "name": "service_name", - "type": "TYPE_STRING" - }, - { - "name": "service_config_id", - "type": "TYPE_STRING" - }, - { - "name": "attributes", - "type": ".google.rpc.context.AttributeContext" - }, - { - "name": "resources", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "flags", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.api.servicecontrol.v2.CheckResponse", - "client": { - "shortName": "ServiceControllerClient", - "fullName": "google.api.servicecontrol.v2.ServiceControllerClient" - }, - "method": { - "shortName": "Check", - "fullName": "google.api.servicecontrol.v2.ServiceController.Check", - "service": { - "shortName": "ServiceController", - "fullName": "google.api.servicecontrol.v2.ServiceController" - } - } - } - }, - { - "regionTag": "servicecontrol_v2_generated_ServiceController_Report_async", - "title": "ServiceController report Sample", - "origin": "API_DEFINITION", - "description": " This method provides telemetry reporting for services that are integrated with [Service Infrastructure](https://cloud.google.com/service-infrastructure). It reports a list of operations that have occurred on a service. It must be called after the operations have been executed. For more information, see [Telemetry Reporting](https://cloud.google.com/service-infrastructure/docs/telemetry-reporting). NOTE: The telemetry reporting has a hard limit of 100 operations and 1MB per Report call. This method requires the `servicemanagement.services.report` permission on the specified service. For more information, see [Service Control API Access Control](https://cloud.google.com/service-infrastructure/docs/service-control/access-control).", - "canonical": true, - "file": "service_controller.report.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Report", - "fullName": "google.api.servicecontrol.v2.ServiceController.Report", - "async": true, - "parameters": [ - { - "name": "service_name", - "type": "TYPE_STRING" - }, - { - "name": "service_config_id", - "type": "TYPE_STRING" - }, - { - "name": "operations", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.api.servicecontrol.v2.ReportResponse", - "client": { - "shortName": "ServiceControllerClient", - "fullName": "google.api.servicecontrol.v2.ServiceControllerClient" - }, - "method": { - "shortName": "Report", - "fullName": "google.api.servicecontrol.v2.ServiceController.Report", - "service": { - "shortName": "ServiceController", - "fullName": "google.api.servicecontrol.v2.ServiceController" - } - } - } - } - ] -} diff --git a/packages/google-api-servicemanagement/samples/generated/v1/snippet_metadata_google.api.servicemanagement.v1.json b/packages/google-api-servicemanagement/samples/generated/v1/snippet_metadata_google.api.servicemanagement.v1.json deleted file mode 100644 index e2491d043100..000000000000 --- a/packages/google-api-servicemanagement/samples/generated/v1/snippet_metadata_google.api.servicemanagement.v1.json +++ /dev/null @@ -1,599 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-servicemanagement", - "version": "3.2.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.api.servicemanagement.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "servicemanagement_v1_generated_ServiceManager_ListServices_async", - "title": "ServiceManager listServices Sample", - "origin": "API_DEFINITION", - "description": " Lists managed services. Returns all public services. For authenticated users, also returns all services the calling user has \"servicemanagement.services.get\" permission for.", - "canonical": true, - "file": "service_manager.list_services.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListServices", - "fullName": "google.api.servicemanagement.v1.ServiceManager.ListServices", - "async": true, - "parameters": [ - { - "name": "producer_project_id", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "consumer_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.api.servicemanagement.v1.ListServicesResponse", - "client": { - "shortName": "ServiceManagerClient", - "fullName": "google.api.servicemanagement.v1.ServiceManagerClient" - }, - "method": { - "shortName": "ListServices", - "fullName": "google.api.servicemanagement.v1.ServiceManager.ListServices", - "service": { - "shortName": "ServiceManager", - "fullName": "google.api.servicemanagement.v1.ServiceManager" - } - } - } - }, - { - "regionTag": "servicemanagement_v1_generated_ServiceManager_GetService_async", - "title": "ServiceManager getService Sample", - "origin": "API_DEFINITION", - "description": " Gets a managed service. Authentication is required unless the service is public.", - "canonical": true, - "file": "service_manager.get_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetService", - "fullName": "google.api.servicemanagement.v1.ServiceManager.GetService", - "async": true, - "parameters": [ - { - "name": "service_name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.api.servicemanagement.v1.ManagedService", - "client": { - "shortName": "ServiceManagerClient", - "fullName": "google.api.servicemanagement.v1.ServiceManagerClient" - }, - "method": { - "shortName": "GetService", - "fullName": "google.api.servicemanagement.v1.ServiceManager.GetService", - "service": { - "shortName": "ServiceManager", - "fullName": "google.api.servicemanagement.v1.ServiceManager" - } - } - } - }, - { - "regionTag": "servicemanagement_v1_generated_ServiceManager_CreateService_async", - "title": "ServiceManager createService Sample", - "origin": "API_DEFINITION", - "description": " Creates a new managed service. A managed service is immutable, and is subject to mandatory 30-day data retention. You cannot move a service or recreate it within 30 days after deletion. One producer project can own no more than 500 services. For security and reliability purposes, a production service should be hosted in a dedicated producer project. Operation", - "canonical": true, - "file": "service_manager.create_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateService", - "fullName": "google.api.servicemanagement.v1.ServiceManager.CreateService", - "async": true, - "parameters": [ - { - "name": "service", - "type": ".google.api.servicemanagement.v1.ManagedService" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ServiceManagerClient", - "fullName": "google.api.servicemanagement.v1.ServiceManagerClient" - }, - "method": { - "shortName": "CreateService", - "fullName": "google.api.servicemanagement.v1.ServiceManager.CreateService", - "service": { - "shortName": "ServiceManager", - "fullName": "google.api.servicemanagement.v1.ServiceManager" - } - } - } - }, - { - "regionTag": "servicemanagement_v1_generated_ServiceManager_DeleteService_async", - "title": "ServiceManager deleteService Sample", - "origin": "API_DEFINITION", - "description": " Deletes a managed service. This method will change the service to the `Soft-Delete` state for 30 days. Within this period, service producers may call [UndeleteService][google.api.servicemanagement.v1.ServiceManager.UndeleteService] to restore the service. After 30 days, the service will be permanently deleted. Operation", - "canonical": true, - "file": "service_manager.delete_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteService", - "fullName": "google.api.servicemanagement.v1.ServiceManager.DeleteService", - "async": true, - "parameters": [ - { - "name": "service_name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ServiceManagerClient", - "fullName": "google.api.servicemanagement.v1.ServiceManagerClient" - }, - "method": { - "shortName": "DeleteService", - "fullName": "google.api.servicemanagement.v1.ServiceManager.DeleteService", - "service": { - "shortName": "ServiceManager", - "fullName": "google.api.servicemanagement.v1.ServiceManager" - } - } - } - }, - { - "regionTag": "servicemanagement_v1_generated_ServiceManager_UndeleteService_async", - "title": "ServiceManager undeleteService Sample", - "origin": "API_DEFINITION", - "description": " Revives a previously deleted managed service. The method restores the service using the configuration at the time the service was deleted. The target service must exist and must have been deleted within the last 30 days. Operation", - "canonical": true, - "file": "service_manager.undelete_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UndeleteService", - "fullName": "google.api.servicemanagement.v1.ServiceManager.UndeleteService", - "async": true, - "parameters": [ - { - "name": "service_name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ServiceManagerClient", - "fullName": "google.api.servicemanagement.v1.ServiceManagerClient" - }, - "method": { - "shortName": "UndeleteService", - "fullName": "google.api.servicemanagement.v1.ServiceManager.UndeleteService", - "service": { - "shortName": "ServiceManager", - "fullName": "google.api.servicemanagement.v1.ServiceManager" - } - } - } - }, - { - "regionTag": "servicemanagement_v1_generated_ServiceManager_ListServiceConfigs_async", - "title": "ServiceManager listServiceConfigs Sample", - "origin": "API_DEFINITION", - "description": " Lists the history of the service configuration for a managed service, from the newest to the oldest.", - "canonical": true, - "file": "service_manager.list_service_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListServiceConfigs", - "fullName": "google.api.servicemanagement.v1.ServiceManager.ListServiceConfigs", - "async": true, - "parameters": [ - { - "name": "service_name", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.api.servicemanagement.v1.ListServiceConfigsResponse", - "client": { - "shortName": "ServiceManagerClient", - "fullName": "google.api.servicemanagement.v1.ServiceManagerClient" - }, - "method": { - "shortName": "ListServiceConfigs", - "fullName": "google.api.servicemanagement.v1.ServiceManager.ListServiceConfigs", - "service": { - "shortName": "ServiceManager", - "fullName": "google.api.servicemanagement.v1.ServiceManager" - } - } - } - }, - { - "regionTag": "servicemanagement_v1_generated_ServiceManager_GetServiceConfig_async", - "title": "ServiceManager getServiceConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets a service configuration (version) for a managed service.", - "canonical": true, - "file": "service_manager.get_service_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetServiceConfig", - "fullName": "google.api.servicemanagement.v1.ServiceManager.GetServiceConfig", - "async": true, - "parameters": [ - { - "name": "service_name", - "type": "TYPE_STRING" - }, - { - "name": "config_id", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.api.servicemanagement.v1.GetServiceConfigRequest.ConfigView" - } - ], - "resultType": ".google.api.Service", - "client": { - "shortName": "ServiceManagerClient", - "fullName": "google.api.servicemanagement.v1.ServiceManagerClient" - }, - "method": { - "shortName": "GetServiceConfig", - "fullName": "google.api.servicemanagement.v1.ServiceManager.GetServiceConfig", - "service": { - "shortName": "ServiceManager", - "fullName": "google.api.servicemanagement.v1.ServiceManager" - } - } - } - }, - { - "regionTag": "servicemanagement_v1_generated_ServiceManager_CreateServiceConfig_async", - "title": "ServiceManager createServiceConfig Sample", - "origin": "API_DEFINITION", - "description": " Creates a new service configuration (version) for a managed service. This method only stores the service configuration. To roll out the service configuration to backend systems please call [CreateServiceRollout][google.api.servicemanagement.v1.ServiceManager.CreateServiceRollout]. Only the 100 most recent service configurations and ones referenced by existing rollouts are kept for each service. The rest will be deleted eventually.", - "canonical": true, - "file": "service_manager.create_service_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateServiceConfig", - "fullName": "google.api.servicemanagement.v1.ServiceManager.CreateServiceConfig", - "async": true, - "parameters": [ - { - "name": "service_name", - "type": "TYPE_STRING" - }, - { - "name": "service_config", - "type": ".google.api.Service" - } - ], - "resultType": ".google.api.Service", - "client": { - "shortName": "ServiceManagerClient", - "fullName": "google.api.servicemanagement.v1.ServiceManagerClient" - }, - "method": { - "shortName": "CreateServiceConfig", - "fullName": "google.api.servicemanagement.v1.ServiceManager.CreateServiceConfig", - "service": { - "shortName": "ServiceManager", - "fullName": "google.api.servicemanagement.v1.ServiceManager" - } - } - } - }, - { - "regionTag": "servicemanagement_v1_generated_ServiceManager_SubmitConfigSource_async", - "title": "ServiceManager submitConfigSource Sample", - "origin": "API_DEFINITION", - "description": " Creates a new service configuration (version) for a managed service based on user-supplied configuration source files (for example: OpenAPI Specification). This method stores the source configurations as well as the generated service configuration. To rollout the service configuration to other services, please call [CreateServiceRollout][google.api.servicemanagement.v1.ServiceManager.CreateServiceRollout]. Only the 100 most recent configuration sources and ones referenced by existing service configurtions are kept for each service. The rest will be deleted eventually. Operation", - "canonical": true, - "file": "service_manager.submit_config_source.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SubmitConfigSource", - "fullName": "google.api.servicemanagement.v1.ServiceManager.SubmitConfigSource", - "async": true, - "parameters": [ - { - "name": "service_name", - "type": "TYPE_STRING" - }, - { - "name": "config_source", - "type": ".google.api.servicemanagement.v1.ConfigSource" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ServiceManagerClient", - "fullName": "google.api.servicemanagement.v1.ServiceManagerClient" - }, - "method": { - "shortName": "SubmitConfigSource", - "fullName": "google.api.servicemanagement.v1.ServiceManager.SubmitConfigSource", - "service": { - "shortName": "ServiceManager", - "fullName": "google.api.servicemanagement.v1.ServiceManager" - } - } - } - }, - { - "regionTag": "servicemanagement_v1_generated_ServiceManager_ListServiceRollouts_async", - "title": "ServiceManager listServiceRollouts Sample", - "origin": "API_DEFINITION", - "description": " Lists the history of the service configuration rollouts for a managed service, from the newest to the oldest.", - "canonical": true, - "file": "service_manager.list_service_rollouts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListServiceRollouts", - "fullName": "google.api.servicemanagement.v1.ServiceManager.ListServiceRollouts", - "async": true, - "parameters": [ - { - "name": "service_name", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.api.servicemanagement.v1.ListServiceRolloutsResponse", - "client": { - "shortName": "ServiceManagerClient", - "fullName": "google.api.servicemanagement.v1.ServiceManagerClient" - }, - "method": { - "shortName": "ListServiceRollouts", - "fullName": "google.api.servicemanagement.v1.ServiceManager.ListServiceRollouts", - "service": { - "shortName": "ServiceManager", - "fullName": "google.api.servicemanagement.v1.ServiceManager" - } - } - } - }, - { - "regionTag": "servicemanagement_v1_generated_ServiceManager_GetServiceRollout_async", - "title": "ServiceManager getServiceRollout Sample", - "origin": "API_DEFINITION", - "description": " Gets a service configuration [rollout][google.api.servicemanagement.v1.Rollout].", - "canonical": true, - "file": "service_manager.get_service_rollout.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetServiceRollout", - "fullName": "google.api.servicemanagement.v1.ServiceManager.GetServiceRollout", - "async": true, - "parameters": [ - { - "name": "service_name", - "type": "TYPE_STRING" - }, - { - "name": "rollout_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.api.servicemanagement.v1.Rollout", - "client": { - "shortName": "ServiceManagerClient", - "fullName": "google.api.servicemanagement.v1.ServiceManagerClient" - }, - "method": { - "shortName": "GetServiceRollout", - "fullName": "google.api.servicemanagement.v1.ServiceManager.GetServiceRollout", - "service": { - "shortName": "ServiceManager", - "fullName": "google.api.servicemanagement.v1.ServiceManager" - } - } - } - }, - { - "regionTag": "servicemanagement_v1_generated_ServiceManager_CreateServiceRollout_async", - "title": "ServiceManager createServiceRollout Sample", - "origin": "API_DEFINITION", - "description": " Creates a new service configuration rollout. Based on rollout, the Google Service Management will roll out the service configurations to different backend services. For example, the logging configuration will be pushed to Google Cloud Logging. Please note that any previous pending and running Rollouts and associated Operations will be automatically cancelled so that the latest Rollout will not be blocked by previous Rollouts. Only the 100 most recent (in any state) and the last 10 successful (if not already part of the set of 100 most recent) rollouts are kept for each service. The rest will be deleted eventually. Operation", - "canonical": true, - "file": "service_manager.create_service_rollout.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateServiceRollout", - "fullName": "google.api.servicemanagement.v1.ServiceManager.CreateServiceRollout", - "async": true, - "parameters": [ - { - "name": "service_name", - "type": "TYPE_STRING" - }, - { - "name": "rollout", - "type": ".google.api.servicemanagement.v1.Rollout" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ServiceManagerClient", - "fullName": "google.api.servicemanagement.v1.ServiceManagerClient" - }, - "method": { - "shortName": "CreateServiceRollout", - "fullName": "google.api.servicemanagement.v1.ServiceManager.CreateServiceRollout", - "service": { - "shortName": "ServiceManager", - "fullName": "google.api.servicemanagement.v1.ServiceManager" - } - } - } - }, - { - "regionTag": "servicemanagement_v1_generated_ServiceManager_GenerateConfigReport_async", - "title": "ServiceManager generateConfigReport Sample", - "origin": "API_DEFINITION", - "description": " Generates and returns a report (errors, warnings and changes from existing configurations) associated with GenerateConfigReportRequest.new_value If GenerateConfigReportRequest.old_value is specified, GenerateConfigReportRequest will contain a single ChangeReport based on the comparison between GenerateConfigReportRequest.new_value and GenerateConfigReportRequest.old_value. If GenerateConfigReportRequest.old_value is not specified, this method will compare GenerateConfigReportRequest.new_value with the last pushed service configuration.", - "canonical": true, - "file": "service_manager.generate_config_report.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateConfigReport", - "fullName": "google.api.servicemanagement.v1.ServiceManager.GenerateConfigReport", - "async": true, - "parameters": [ - { - "name": "new_config", - "type": ".google.protobuf.Any" - }, - { - "name": "old_config", - "type": ".google.protobuf.Any" - } - ], - "resultType": ".google.api.servicemanagement.v1.GenerateConfigReportResponse", - "client": { - "shortName": "ServiceManagerClient", - "fullName": "google.api.servicemanagement.v1.ServiceManagerClient" - }, - "method": { - "shortName": "GenerateConfigReport", - "fullName": "google.api.servicemanagement.v1.ServiceManager.GenerateConfigReport", - "service": { - "shortName": "ServiceManager", - "fullName": "google.api.servicemanagement.v1.ServiceManager" - } - } - } - } - ] -} diff --git a/packages/google-api-serviceusage/samples/generated/v1/snippet_metadata_google.api.serviceusage.v1.json b/packages/google-api-serviceusage/samples/generated/v1/snippet_metadata_google.api.serviceusage.v1.json deleted file mode 100644 index 9d1307223374..000000000000 --- a/packages/google-api-serviceusage/samples/generated/v1/snippet_metadata_google.api.serviceusage.v1.json +++ /dev/null @@ -1,283 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-serviceusage", - "version": "4.2.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.api.serviceusage.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "serviceusage_v1_generated_ServiceUsage_EnableService_async", - "title": "ServiceUsage enableService Sample", - "origin": "API_DEFINITION", - "description": " Enable a service so that it can be used with a project.", - "canonical": true, - "file": "service_usage.enable_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "EnableService", - "fullName": "google.api.serviceusage.v1.ServiceUsage.EnableService", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ServiceUsageClient", - "fullName": "google.api.serviceusage.v1.ServiceUsageClient" - }, - "method": { - "shortName": "EnableService", - "fullName": "google.api.serviceusage.v1.ServiceUsage.EnableService", - "service": { - "shortName": "ServiceUsage", - "fullName": "google.api.serviceusage.v1.ServiceUsage" - } - } - } - }, - { - "regionTag": "serviceusage_v1_generated_ServiceUsage_DisableService_async", - "title": "ServiceUsage disableService Sample", - "origin": "API_DEFINITION", - "description": " Disable a service so that it can no longer be used with a project. This prevents unintended usage that may cause unexpected billing charges or security leaks. It is not valid to call the disable method on a service that is not currently enabled. Callers will receive a `FAILED_PRECONDITION` status if the target service is not currently enabled.", - "canonical": true, - "file": "service_usage.disable_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DisableService", - "fullName": "google.api.serviceusage.v1.ServiceUsage.DisableService", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "disable_dependent_services", - "type": "TYPE_BOOL" - }, - { - "name": "check_if_service_has_usage", - "type": ".google.api.serviceusage.v1.DisableServiceRequest.CheckIfServiceHasUsage" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ServiceUsageClient", - "fullName": "google.api.serviceusage.v1.ServiceUsageClient" - }, - "method": { - "shortName": "DisableService", - "fullName": "google.api.serviceusage.v1.ServiceUsage.DisableService", - "service": { - "shortName": "ServiceUsage", - "fullName": "google.api.serviceusage.v1.ServiceUsage" - } - } - } - }, - { - "regionTag": "serviceusage_v1_generated_ServiceUsage_GetService_async", - "title": "ServiceUsage getService Sample", - "origin": "API_DEFINITION", - "description": " Returns the service configuration and enabled state for a given service.", - "canonical": true, - "file": "service_usage.get_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetService", - "fullName": "google.api.serviceusage.v1.ServiceUsage.GetService", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.api.serviceusage.v1.Service", - "client": { - "shortName": "ServiceUsageClient", - "fullName": "google.api.serviceusage.v1.ServiceUsageClient" - }, - "method": { - "shortName": "GetService", - "fullName": "google.api.serviceusage.v1.ServiceUsage.GetService", - "service": { - "shortName": "ServiceUsage", - "fullName": "google.api.serviceusage.v1.ServiceUsage" - } - } - } - }, - { - "regionTag": "serviceusage_v1_generated_ServiceUsage_ListServices_async", - "title": "ServiceUsage listServices Sample", - "origin": "API_DEFINITION", - "description": " List all services available to the specified project, and the current state of those services with respect to the project. The list includes all public services, all services for which the calling user has the `servicemanagement.services.bind` permission, and all services that have already been enabled on the project. The list can be filtered to only include services in a specific state, for example to only include services enabled on the project. WARNING: If you need to query enabled services frequently or across an organization, you should use [Cloud Asset Inventory API](https://cloud.google.com/asset-inventory/docs/apis), which provides higher throughput and richer filtering capability.", - "canonical": true, - "file": "service_usage.list_services.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListServices", - "fullName": "google.api.serviceusage.v1.ServiceUsage.ListServices", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.api.serviceusage.v1.ListServicesResponse", - "client": { - "shortName": "ServiceUsageClient", - "fullName": "google.api.serviceusage.v1.ServiceUsageClient" - }, - "method": { - "shortName": "ListServices", - "fullName": "google.api.serviceusage.v1.ServiceUsage.ListServices", - "service": { - "shortName": "ServiceUsage", - "fullName": "google.api.serviceusage.v1.ServiceUsage" - } - } - } - }, - { - "regionTag": "serviceusage_v1_generated_ServiceUsage_BatchEnableServices_async", - "title": "ServiceUsage batchEnableServices Sample", - "origin": "API_DEFINITION", - "description": " Enable multiple services on a project. The operation is atomic: if enabling any service fails, then the entire batch fails, and no state changes occur. To enable a single service, use the `EnableService` method instead.", - "canonical": true, - "file": "service_usage.batch_enable_services.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchEnableServices", - "fullName": "google.api.serviceusage.v1.ServiceUsage.BatchEnableServices", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "service_ids", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ServiceUsageClient", - "fullName": "google.api.serviceusage.v1.ServiceUsageClient" - }, - "method": { - "shortName": "BatchEnableServices", - "fullName": "google.api.serviceusage.v1.ServiceUsage.BatchEnableServices", - "service": { - "shortName": "ServiceUsage", - "fullName": "google.api.serviceusage.v1.ServiceUsage" - } - } - } - }, - { - "regionTag": "serviceusage_v1_generated_ServiceUsage_BatchGetServices_async", - "title": "ServiceUsage batchGetServices Sample", - "origin": "API_DEFINITION", - "description": " Returns the service configurations and enabled states for a given list of services.", - "canonical": true, - "file": "service_usage.batch_get_services.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchGetServices", - "fullName": "google.api.serviceusage.v1.ServiceUsage.BatchGetServices", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "names", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.api.serviceusage.v1.BatchGetServicesResponse", - "client": { - "shortName": "ServiceUsageClient", - "fullName": "google.api.serviceusage.v1.ServiceUsageClient" - }, - "method": { - "shortName": "BatchGetServices", - "fullName": "google.api.serviceusage.v1.ServiceUsage.BatchGetServices", - "service": { - "shortName": "ServiceUsage", - "fullName": "google.api.serviceusage.v1.ServiceUsage" - } - } - } - } - ] -} diff --git a/packages/google-api-serviceusage/samples/generated/v1beta1/snippet_metadata_google.api.serviceusage.v1beta1.json b/packages/google-api-serviceusage/samples/generated/v1beta1/snippet_metadata_google.api.serviceusage.v1beta1.json deleted file mode 100644 index 6e3cdb2810ed..000000000000 --- a/packages/google-api-serviceusage/samples/generated/v1beta1/snippet_metadata_google.api.serviceusage.v1beta1.json +++ /dev/null @@ -1,923 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-serviceusage", - "version": "4.2.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.api.serviceusage.v1beta1", - "version": "v1beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "serviceusage_v1beta1_generated_ServiceUsage_EnableService_async", - "title": "ServiceUsage enableService Sample", - "origin": "API_DEFINITION", - "description": " Enables a service so that it can be used with a project. Operation response type: `google.protobuf.Empty`", - "canonical": true, - "file": "service_usage.enable_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "EnableService", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsage.EnableService", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ServiceUsageClient", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsageClient" - }, - "method": { - "shortName": "EnableService", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsage.EnableService", - "service": { - "shortName": "ServiceUsage", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsage" - } - } - } - }, - { - "regionTag": "serviceusage_v1beta1_generated_ServiceUsage_DisableService_async", - "title": "ServiceUsage disableService Sample", - "origin": "API_DEFINITION", - "description": " Disables a service so that it can no longer be used with a project. This prevents unintended usage that may cause unexpected billing charges or security leaks. It is not valid to call the disable method on a service that is not currently enabled. Callers will receive a `FAILED_PRECONDITION` status if the target service is not currently enabled. Operation response type: `google.protobuf.Empty`", - "canonical": true, - "file": "service_usage.disable_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DisableService", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsage.DisableService", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ServiceUsageClient", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsageClient" - }, - "method": { - "shortName": "DisableService", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsage.DisableService", - "service": { - "shortName": "ServiceUsage", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsage" - } - } - } - }, - { - "regionTag": "serviceusage_v1beta1_generated_ServiceUsage_GetService_async", - "title": "ServiceUsage getService Sample", - "origin": "API_DEFINITION", - "description": " Returns the service configuration and enabled state for a given service.", - "canonical": true, - "file": "service_usage.get_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetService", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsage.GetService", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.api.serviceusage.v1beta1.Service", - "client": { - "shortName": "ServiceUsageClient", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsageClient" - }, - "method": { - "shortName": "GetService", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsage.GetService", - "service": { - "shortName": "ServiceUsage", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsage" - } - } - } - }, - { - "regionTag": "serviceusage_v1beta1_generated_ServiceUsage_ListServices_async", - "title": "ServiceUsage listServices Sample", - "origin": "API_DEFINITION", - "description": " Lists all services available to the specified project, and the current state of those services with respect to the project. The list includes all public services, all services for which the calling user has the `servicemanagement.services.bind` permission, and all services that have already been enabled on the project. The list can be filtered to only include services in a specific state, for example to only include services enabled on the project.", - "canonical": true, - "file": "service_usage.list_services.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListServices", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsage.ListServices", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.api.serviceusage.v1beta1.ListServicesResponse", - "client": { - "shortName": "ServiceUsageClient", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsageClient" - }, - "method": { - "shortName": "ListServices", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsage.ListServices", - "service": { - "shortName": "ServiceUsage", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsage" - } - } - } - }, - { - "regionTag": "serviceusage_v1beta1_generated_ServiceUsage_BatchEnableServices_async", - "title": "ServiceUsage batchEnableServices Sample", - "origin": "API_DEFINITION", - "description": " Enables multiple services on a project. The operation is atomic: if enabling any service fails, then the entire batch fails, and no state changes occur. Operation response type: `google.protobuf.Empty`", - "canonical": true, - "file": "service_usage.batch_enable_services.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchEnableServices", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsage.BatchEnableServices", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "service_ids", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ServiceUsageClient", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsageClient" - }, - "method": { - "shortName": "BatchEnableServices", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsage.BatchEnableServices", - "service": { - "shortName": "ServiceUsage", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsage" - } - } - } - }, - { - "regionTag": "serviceusage_v1beta1_generated_ServiceUsage_ListConsumerQuotaMetrics_async", - "title": "ServiceUsage listConsumerQuotaMetrics Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a summary of all quota information visible to the service consumer, organized by service metric. Each metric includes information about all of its defined limits. Each limit includes the limit configuration (quota unit, preciseness, default value), the current effective limit value, and all of the overrides applied to the limit.", - "canonical": true, - "file": "service_usage.list_consumer_quota_metrics.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListConsumerQuotaMetrics", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsage.ListConsumerQuotaMetrics", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.api.serviceusage.v1beta1.QuotaView" - } - ], - "resultType": ".google.api.serviceusage.v1beta1.ListConsumerQuotaMetricsResponse", - "client": { - "shortName": "ServiceUsageClient", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsageClient" - }, - "method": { - "shortName": "ListConsumerQuotaMetrics", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsage.ListConsumerQuotaMetrics", - "service": { - "shortName": "ServiceUsage", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsage" - } - } - } - }, - { - "regionTag": "serviceusage_v1beta1_generated_ServiceUsage_GetConsumerQuotaMetric_async", - "title": "ServiceUsage getConsumerQuotaMetric Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a summary of quota information for a specific quota metric", - "canonical": true, - "file": "service_usage.get_consumer_quota_metric.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetConsumerQuotaMetric", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsage.GetConsumerQuotaMetric", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.api.serviceusage.v1beta1.QuotaView" - } - ], - "resultType": ".google.api.serviceusage.v1beta1.ConsumerQuotaMetric", - "client": { - "shortName": "ServiceUsageClient", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsageClient" - }, - "method": { - "shortName": "GetConsumerQuotaMetric", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsage.GetConsumerQuotaMetric", - "service": { - "shortName": "ServiceUsage", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsage" - } - } - } - }, - { - "regionTag": "serviceusage_v1beta1_generated_ServiceUsage_GetConsumerQuotaLimit_async", - "title": "ServiceUsage getConsumerQuotaLimit Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a summary of quota information for a specific quota limit.", - "canonical": true, - "file": "service_usage.get_consumer_quota_limit.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetConsumerQuotaLimit", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsage.GetConsumerQuotaLimit", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.api.serviceusage.v1beta1.QuotaView" - } - ], - "resultType": ".google.api.serviceusage.v1beta1.ConsumerQuotaLimit", - "client": { - "shortName": "ServiceUsageClient", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsageClient" - }, - "method": { - "shortName": "GetConsumerQuotaLimit", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsage.GetConsumerQuotaLimit", - "service": { - "shortName": "ServiceUsage", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsage" - } - } - } - }, - { - "regionTag": "serviceusage_v1beta1_generated_ServiceUsage_CreateAdminOverride_async", - "title": "ServiceUsage createAdminOverride Sample", - "origin": "API_DEFINITION", - "description": " Creates an admin override. An admin override is applied by an administrator of a parent folder or parent organization of the consumer receiving the override. An admin override is intended to limit the amount of quota the consumer can use out of the total quota pool allocated to all children of the folder or organization.", - "canonical": true, - "file": "service_usage.create_admin_override.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAdminOverride", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsage.CreateAdminOverride", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "override", - "type": ".google.api.serviceusage.v1beta1.QuotaOverride" - }, - { - "name": "force", - "type": "TYPE_BOOL" - }, - { - "name": "force_only", - "type": "TYPE_ENUM[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ServiceUsageClient", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsageClient" - }, - "method": { - "shortName": "CreateAdminOverride", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsage.CreateAdminOverride", - "service": { - "shortName": "ServiceUsage", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsage" - } - } - } - }, - { - "regionTag": "serviceusage_v1beta1_generated_ServiceUsage_UpdateAdminOverride_async", - "title": "ServiceUsage updateAdminOverride Sample", - "origin": "API_DEFINITION", - "description": " Updates an admin override.", - "canonical": true, - "file": "service_usage.update_admin_override.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAdminOverride", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsage.UpdateAdminOverride", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "override", - "type": ".google.api.serviceusage.v1beta1.QuotaOverride" - }, - { - "name": "force", - "type": "TYPE_BOOL" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "force_only", - "type": "TYPE_ENUM[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ServiceUsageClient", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsageClient" - }, - "method": { - "shortName": "UpdateAdminOverride", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsage.UpdateAdminOverride", - "service": { - "shortName": "ServiceUsage", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsage" - } - } - } - }, - { - "regionTag": "serviceusage_v1beta1_generated_ServiceUsage_DeleteAdminOverride_async", - "title": "ServiceUsage deleteAdminOverride Sample", - "origin": "API_DEFINITION", - "description": " Deletes an admin override.", - "canonical": true, - "file": "service_usage.delete_admin_override.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAdminOverride", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsage.DeleteAdminOverride", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - }, - { - "name": "force_only", - "type": "TYPE_ENUM[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ServiceUsageClient", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsageClient" - }, - "method": { - "shortName": "DeleteAdminOverride", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsage.DeleteAdminOverride", - "service": { - "shortName": "ServiceUsage", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsage" - } - } - } - }, - { - "regionTag": "serviceusage_v1beta1_generated_ServiceUsage_ListAdminOverrides_async", - "title": "ServiceUsage listAdminOverrides Sample", - "origin": "API_DEFINITION", - "description": " Lists all admin overrides on this limit.", - "canonical": true, - "file": "service_usage.list_admin_overrides.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAdminOverrides", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsage.ListAdminOverrides", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.api.serviceusage.v1beta1.ListAdminOverridesResponse", - "client": { - "shortName": "ServiceUsageClient", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsageClient" - }, - "method": { - "shortName": "ListAdminOverrides", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsage.ListAdminOverrides", - "service": { - "shortName": "ServiceUsage", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsage" - } - } - } - }, - { - "regionTag": "serviceusage_v1beta1_generated_ServiceUsage_ImportAdminOverrides_async", - "title": "ServiceUsage importAdminOverrides Sample", - "origin": "API_DEFINITION", - "description": " Creates or updates multiple admin overrides atomically, all on the same consumer, but on many different metrics or limits. The name field in the quota override message should not be set.", - "canonical": true, - "file": "service_usage.import_admin_overrides.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportAdminOverrides", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsage.ImportAdminOverrides", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "inline_source", - "type": ".google.api.serviceusage.v1beta1.OverrideInlineSource" - }, - { - "name": "force", - "type": "TYPE_BOOL" - }, - { - "name": "force_only", - "type": "TYPE_ENUM[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ServiceUsageClient", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsageClient" - }, - "method": { - "shortName": "ImportAdminOverrides", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsage.ImportAdminOverrides", - "service": { - "shortName": "ServiceUsage", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsage" - } - } - } - }, - { - "regionTag": "serviceusage_v1beta1_generated_ServiceUsage_CreateConsumerOverride_async", - "title": "ServiceUsage createConsumerOverride Sample", - "origin": "API_DEFINITION", - "description": " Creates a consumer override. A consumer override is applied to the consumer on its own authority to limit its own quota usage. Consumer overrides cannot be used to grant more quota than would be allowed by admin overrides, producer overrides, or the default limit of the service.", - "canonical": true, - "file": "service_usage.create_consumer_override.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateConsumerOverride", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsage.CreateConsumerOverride", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "override", - "type": ".google.api.serviceusage.v1beta1.QuotaOverride" - }, - { - "name": "force", - "type": "TYPE_BOOL" - }, - { - "name": "force_only", - "type": "TYPE_ENUM[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ServiceUsageClient", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsageClient" - }, - "method": { - "shortName": "CreateConsumerOverride", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsage.CreateConsumerOverride", - "service": { - "shortName": "ServiceUsage", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsage" - } - } - } - }, - { - "regionTag": "serviceusage_v1beta1_generated_ServiceUsage_UpdateConsumerOverride_async", - "title": "ServiceUsage updateConsumerOverride Sample", - "origin": "API_DEFINITION", - "description": " Updates a consumer override.", - "canonical": true, - "file": "service_usage.update_consumer_override.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateConsumerOverride", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsage.UpdateConsumerOverride", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "override", - "type": ".google.api.serviceusage.v1beta1.QuotaOverride" - }, - { - "name": "force", - "type": "TYPE_BOOL" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "force_only", - "type": "TYPE_ENUM[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ServiceUsageClient", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsageClient" - }, - "method": { - "shortName": "UpdateConsumerOverride", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsage.UpdateConsumerOverride", - "service": { - "shortName": "ServiceUsage", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsage" - } - } - } - }, - { - "regionTag": "serviceusage_v1beta1_generated_ServiceUsage_DeleteConsumerOverride_async", - "title": "ServiceUsage deleteConsumerOverride Sample", - "origin": "API_DEFINITION", - "description": " Deletes a consumer override.", - "canonical": true, - "file": "service_usage.delete_consumer_override.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteConsumerOverride", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsage.DeleteConsumerOverride", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - }, - { - "name": "force_only", - "type": "TYPE_ENUM[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ServiceUsageClient", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsageClient" - }, - "method": { - "shortName": "DeleteConsumerOverride", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsage.DeleteConsumerOverride", - "service": { - "shortName": "ServiceUsage", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsage" - } - } - } - }, - { - "regionTag": "serviceusage_v1beta1_generated_ServiceUsage_ListConsumerOverrides_async", - "title": "ServiceUsage listConsumerOverrides Sample", - "origin": "API_DEFINITION", - "description": " Lists all consumer overrides on this limit.", - "canonical": true, - "file": "service_usage.list_consumer_overrides.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListConsumerOverrides", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsage.ListConsumerOverrides", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.api.serviceusage.v1beta1.ListConsumerOverridesResponse", - "client": { - "shortName": "ServiceUsageClient", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsageClient" - }, - "method": { - "shortName": "ListConsumerOverrides", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsage.ListConsumerOverrides", - "service": { - "shortName": "ServiceUsage", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsage" - } - } - } - }, - { - "regionTag": "serviceusage_v1beta1_generated_ServiceUsage_ImportConsumerOverrides_async", - "title": "ServiceUsage importConsumerOverrides Sample", - "origin": "API_DEFINITION", - "description": " Creates or updates multiple consumer overrides atomically, all on the same consumer, but on many different metrics or limits. The name field in the quota override message should not be set.", - "canonical": true, - "file": "service_usage.import_consumer_overrides.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportConsumerOverrides", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsage.ImportConsumerOverrides", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "inline_source", - "type": ".google.api.serviceusage.v1beta1.OverrideInlineSource" - }, - { - "name": "force", - "type": "TYPE_BOOL" - }, - { - "name": "force_only", - "type": "TYPE_ENUM[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ServiceUsageClient", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsageClient" - }, - "method": { - "shortName": "ImportConsumerOverrides", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsage.ImportConsumerOverrides", - "service": { - "shortName": "ServiceUsage", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsage" - } - } - } - }, - { - "regionTag": "serviceusage_v1beta1_generated_ServiceUsage_GenerateServiceIdentity_async", - "title": "ServiceUsage generateServiceIdentity Sample", - "origin": "API_DEFINITION", - "description": " Generates service identity for service.", - "canonical": true, - "file": "service_usage.generate_service_identity.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateServiceIdentity", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsage.GenerateServiceIdentity", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ServiceUsageClient", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsageClient" - }, - "method": { - "shortName": "GenerateServiceIdentity", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsage.GenerateServiceIdentity", - "service": { - "shortName": "ServiceUsage", - "fullName": "google.api.serviceusage.v1beta1.ServiceUsage" - } - } - } - } - ] -} diff --git a/packages/google-appengine/samples/generated/v1/snippet_metadata_google.appengine.v1.json b/packages/google-appengine/samples/generated/v1/snippet_metadata_google.appengine.v1.json deleted file mode 100644 index 6b6ef26e9480..000000000000 --- a/packages/google-appengine/samples/generated/v1/snippet_metadata_google.appengine.v1.json +++ /dev/null @@ -1,1531 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-appengine", - "version": "4.2.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.appengine.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "appengine_v1_generated_Applications_GetApplication_async", - "title": "Applications getApplication Sample", - "origin": "API_DEFINITION", - "description": " Gets information about an application.", - "canonical": true, - "file": "applications.get_application.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 52, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetApplication", - "fullName": "google.appengine.v1.Applications.GetApplication", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.appengine.v1.Application", - "client": { - "shortName": "ApplicationsClient", - "fullName": "google.appengine.v1.ApplicationsClient" - }, - "method": { - "shortName": "GetApplication", - "fullName": "google.appengine.v1.Applications.GetApplication", - "service": { - "shortName": "Applications", - "fullName": "google.appengine.v1.Applications" - } - } - } - }, - { - "regionTag": "appengine_v1_generated_Applications_CreateApplication_async", - "title": "Applications createApplication Sample", - "origin": "API_DEFINITION", - "description": " Creates an App Engine application for a Google Cloud Platform project. Required fields: * `id` - The ID of the target Cloud Platform project. * *location* - The [region](https://cloud.google.com/appengine/docs/locations) where you want the App Engine application located. For more information about App Engine applications, see [Managing Projects, Applications, and Billing](https://cloud.google.com/appengine/docs/standard/python/console/).", - "canonical": true, - "file": "applications.create_application.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateApplication", - "fullName": "google.appengine.v1.Applications.CreateApplication", - "async": true, - "parameters": [ - { - "name": "application", - "type": ".google.appengine.v1.Application" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ApplicationsClient", - "fullName": "google.appengine.v1.ApplicationsClient" - }, - "method": { - "shortName": "CreateApplication", - "fullName": "google.appengine.v1.Applications.CreateApplication", - "service": { - "shortName": "Applications", - "fullName": "google.appengine.v1.Applications" - } - } - } - }, - { - "regionTag": "appengine_v1_generated_Applications_UpdateApplication_async", - "title": "Applications updateApplication Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified Application resource. You can update the following fields: * `auth_domain` - Google authentication domain for controlling user access to the application. * `default_cookie_expiration` - Cookie expiration policy for the application. * `iap` - Identity-Aware Proxy properties for the application.", - "canonical": true, - "file": "applications.update_application.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateApplication", - "fullName": "google.appengine.v1.Applications.UpdateApplication", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "application", - "type": ".google.appengine.v1.Application" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ApplicationsClient", - "fullName": "google.appengine.v1.ApplicationsClient" - }, - "method": { - "shortName": "UpdateApplication", - "fullName": "google.appengine.v1.Applications.UpdateApplication", - "service": { - "shortName": "Applications", - "fullName": "google.appengine.v1.Applications" - } - } - } - }, - { - "regionTag": "appengine_v1_generated_Applications_RepairApplication_async", - "title": "Applications repairApplication Sample", - "origin": "API_DEFINITION", - "description": " Recreates the required App Engine features for the specified App Engine application, for example a Cloud Storage bucket or App Engine service account. Use this method if you receive an error message about a missing feature, for example, *Error retrieving the App Engine service account*. If you have deleted your App Engine service account, this will not be able to recreate it. Instead, you should attempt to use the IAM undelete API if possible at https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts/undelete?apix_params=%7B\"name\"%3A\"projects%2F-%2FserviceAccounts%2Funique_id\"%2C\"resource\"%3A%7B%7D%7D . If the deletion was recent, the numeric ID can be found in the Cloud Console Activity Log.", - "canonical": true, - "file": "applications.repair_application.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RepairApplication", - "fullName": "google.appengine.v1.Applications.RepairApplication", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ApplicationsClient", - "fullName": "google.appengine.v1.ApplicationsClient" - }, - "method": { - "shortName": "RepairApplication", - "fullName": "google.appengine.v1.Applications.RepairApplication", - "service": { - "shortName": "Applications", - "fullName": "google.appengine.v1.Applications" - } - } - } - }, - { - "regionTag": "appengine_v1_generated_AuthorizedCertificates_ListAuthorizedCertificates_async", - "title": "Applications listAuthorizedCertificates Sample", - "origin": "API_DEFINITION", - "description": " Lists all SSL certificates the user is authorized to administer.", - "canonical": true, - "file": "authorized_certificates.list_authorized_certificates.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAuthorizedCertificates", - "fullName": "google.appengine.v1.AuthorizedCertificates.ListAuthorizedCertificates", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.appengine.v1.AuthorizedCertificateView" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.appengine.v1.ListAuthorizedCertificatesResponse", - "client": { - "shortName": "AuthorizedCertificatesClient", - "fullName": "google.appengine.v1.AuthorizedCertificatesClient" - }, - "method": { - "shortName": "ListAuthorizedCertificates", - "fullName": "google.appengine.v1.AuthorizedCertificates.ListAuthorizedCertificates", - "service": { - "shortName": "AuthorizedCertificates", - "fullName": "google.appengine.v1.AuthorizedCertificates" - } - } - } - }, - { - "regionTag": "appengine_v1_generated_AuthorizedCertificates_GetAuthorizedCertificate_async", - "title": "Applications getAuthorizedCertificate Sample", - "origin": "API_DEFINITION", - "description": " Gets the specified SSL certificate.", - "canonical": true, - "file": "authorized_certificates.get_authorized_certificate.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAuthorizedCertificate", - "fullName": "google.appengine.v1.AuthorizedCertificates.GetAuthorizedCertificate", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.appengine.v1.AuthorizedCertificateView" - } - ], - "resultType": ".google.appengine.v1.AuthorizedCertificate", - "client": { - "shortName": "AuthorizedCertificatesClient", - "fullName": "google.appengine.v1.AuthorizedCertificatesClient" - }, - "method": { - "shortName": "GetAuthorizedCertificate", - "fullName": "google.appengine.v1.AuthorizedCertificates.GetAuthorizedCertificate", - "service": { - "shortName": "AuthorizedCertificates", - "fullName": "google.appengine.v1.AuthorizedCertificates" - } - } - } - }, - { - "regionTag": "appengine_v1_generated_AuthorizedCertificates_CreateAuthorizedCertificate_async", - "title": "Applications createAuthorizedCertificate Sample", - "origin": "API_DEFINITION", - "description": " Uploads the specified SSL certificate.", - "canonical": true, - "file": "authorized_certificates.create_authorized_certificate.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAuthorizedCertificate", - "fullName": "google.appengine.v1.AuthorizedCertificates.CreateAuthorizedCertificate", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "certificate", - "type": ".google.appengine.v1.AuthorizedCertificate" - } - ], - "resultType": ".google.appengine.v1.AuthorizedCertificate", - "client": { - "shortName": "AuthorizedCertificatesClient", - "fullName": "google.appengine.v1.AuthorizedCertificatesClient" - }, - "method": { - "shortName": "CreateAuthorizedCertificate", - "fullName": "google.appengine.v1.AuthorizedCertificates.CreateAuthorizedCertificate", - "service": { - "shortName": "AuthorizedCertificates", - "fullName": "google.appengine.v1.AuthorizedCertificates" - } - } - } - }, - { - "regionTag": "appengine_v1_generated_AuthorizedCertificates_UpdateAuthorizedCertificate_async", - "title": "Applications updateAuthorizedCertificate Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified SSL certificate. To renew a certificate and maintain its existing domain mappings, update `certificate_data` with a new certificate. The new certificate must be applicable to the same domains as the original certificate. The certificate `display_name` may also be updated.", - "canonical": true, - "file": "authorized_certificates.update_authorized_certificate.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAuthorizedCertificate", - "fullName": "google.appengine.v1.AuthorizedCertificates.UpdateAuthorizedCertificate", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "certificate", - "type": ".google.appengine.v1.AuthorizedCertificate" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.appengine.v1.AuthorizedCertificate", - "client": { - "shortName": "AuthorizedCertificatesClient", - "fullName": "google.appengine.v1.AuthorizedCertificatesClient" - }, - "method": { - "shortName": "UpdateAuthorizedCertificate", - "fullName": "google.appengine.v1.AuthorizedCertificates.UpdateAuthorizedCertificate", - "service": { - "shortName": "AuthorizedCertificates", - "fullName": "google.appengine.v1.AuthorizedCertificates" - } - } - } - }, - { - "regionTag": "appengine_v1_generated_AuthorizedCertificates_DeleteAuthorizedCertificate_async", - "title": "Applications deleteAuthorizedCertificate Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified SSL certificate.", - "canonical": true, - "file": "authorized_certificates.delete_authorized_certificate.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAuthorizedCertificate", - "fullName": "google.appengine.v1.AuthorizedCertificates.DeleteAuthorizedCertificate", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AuthorizedCertificatesClient", - "fullName": "google.appengine.v1.AuthorizedCertificatesClient" - }, - "method": { - "shortName": "DeleteAuthorizedCertificate", - "fullName": "google.appengine.v1.AuthorizedCertificates.DeleteAuthorizedCertificate", - "service": { - "shortName": "AuthorizedCertificates", - "fullName": "google.appengine.v1.AuthorizedCertificates" - } - } - } - }, - { - "regionTag": "appengine_v1_generated_AuthorizedDomains_ListAuthorizedDomains_async", - "title": "Applications listAuthorizedDomains Sample", - "origin": "API_DEFINITION", - "description": " Lists all domains the user is authorized to administer.", - "canonical": true, - "file": "authorized_domains.list_authorized_domains.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAuthorizedDomains", - "fullName": "google.appengine.v1.AuthorizedDomains.ListAuthorizedDomains", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.appengine.v1.ListAuthorizedDomainsResponse", - "client": { - "shortName": "AuthorizedDomainsClient", - "fullName": "google.appengine.v1.AuthorizedDomainsClient" - }, - "method": { - "shortName": "ListAuthorizedDomains", - "fullName": "google.appengine.v1.AuthorizedDomains.ListAuthorizedDomains", - "service": { - "shortName": "AuthorizedDomains", - "fullName": "google.appengine.v1.AuthorizedDomains" - } - } - } - }, - { - "regionTag": "appengine_v1_generated_DomainMappings_ListDomainMappings_async", - "title": "Applications listDomainMappings Sample", - "origin": "API_DEFINITION", - "description": " Lists the domain mappings on an application.", - "canonical": true, - "file": "domain_mappings.list_domain_mappings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDomainMappings", - "fullName": "google.appengine.v1.DomainMappings.ListDomainMappings", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.appengine.v1.ListDomainMappingsResponse", - "client": { - "shortName": "DomainMappingsClient", - "fullName": "google.appengine.v1.DomainMappingsClient" - }, - "method": { - "shortName": "ListDomainMappings", - "fullName": "google.appengine.v1.DomainMappings.ListDomainMappings", - "service": { - "shortName": "DomainMappings", - "fullName": "google.appengine.v1.DomainMappings" - } - } - } - }, - { - "regionTag": "appengine_v1_generated_DomainMappings_GetDomainMapping_async", - "title": "Applications getDomainMapping Sample", - "origin": "API_DEFINITION", - "description": " Gets the specified domain mapping.", - "canonical": true, - "file": "domain_mappings.get_domain_mapping.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDomainMapping", - "fullName": "google.appengine.v1.DomainMappings.GetDomainMapping", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.appengine.v1.DomainMapping", - "client": { - "shortName": "DomainMappingsClient", - "fullName": "google.appengine.v1.DomainMappingsClient" - }, - "method": { - "shortName": "GetDomainMapping", - "fullName": "google.appengine.v1.DomainMappings.GetDomainMapping", - "service": { - "shortName": "DomainMappings", - "fullName": "google.appengine.v1.DomainMappings" - } - } - } - }, - { - "regionTag": "appengine_v1_generated_DomainMappings_CreateDomainMapping_async", - "title": "Applications createDomainMapping Sample", - "origin": "API_DEFINITION", - "description": " Maps a domain to an application. A user must be authorized to administer a domain in order to map it to an application. For a list of available authorized domains, see [`AuthorizedDomains.ListAuthorizedDomains`]().", - "canonical": true, - "file": "domain_mappings.create_domain_mapping.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDomainMapping", - "fullName": "google.appengine.v1.DomainMappings.CreateDomainMapping", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "domain_mapping", - "type": ".google.appengine.v1.DomainMapping" - }, - { - "name": "override_strategy", - "type": ".google.appengine.v1.DomainOverrideStrategy" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DomainMappingsClient", - "fullName": "google.appengine.v1.DomainMappingsClient" - }, - "method": { - "shortName": "CreateDomainMapping", - "fullName": "google.appengine.v1.DomainMappings.CreateDomainMapping", - "service": { - "shortName": "DomainMappings", - "fullName": "google.appengine.v1.DomainMappings" - } - } - } - }, - { - "regionTag": "appengine_v1_generated_DomainMappings_UpdateDomainMapping_async", - "title": "Applications updateDomainMapping Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified domain mapping. To map an SSL certificate to a domain mapping, update `certificate_id` to point to an `AuthorizedCertificate` resource. A user must be authorized to administer the associated domain in order to update a `DomainMapping` resource.", - "canonical": true, - "file": "domain_mappings.update_domain_mapping.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDomainMapping", - "fullName": "google.appengine.v1.DomainMappings.UpdateDomainMapping", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "domain_mapping", - "type": ".google.appengine.v1.DomainMapping" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DomainMappingsClient", - "fullName": "google.appengine.v1.DomainMappingsClient" - }, - "method": { - "shortName": "UpdateDomainMapping", - "fullName": "google.appengine.v1.DomainMappings.UpdateDomainMapping", - "service": { - "shortName": "DomainMappings", - "fullName": "google.appengine.v1.DomainMappings" - } - } - } - }, - { - "regionTag": "appengine_v1_generated_DomainMappings_DeleteDomainMapping_async", - "title": "Applications deleteDomainMapping Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified domain mapping. A user must be authorized to administer the associated domain in order to delete a `DomainMapping` resource.", - "canonical": true, - "file": "domain_mappings.delete_domain_mapping.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDomainMapping", - "fullName": "google.appengine.v1.DomainMappings.DeleteDomainMapping", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DomainMappingsClient", - "fullName": "google.appengine.v1.DomainMappingsClient" - }, - "method": { - "shortName": "DeleteDomainMapping", - "fullName": "google.appengine.v1.DomainMappings.DeleteDomainMapping", - "service": { - "shortName": "DomainMappings", - "fullName": "google.appengine.v1.DomainMappings" - } - } - } - }, - { - "regionTag": "appengine_v1_generated_Firewall_ListIngressRules_async", - "title": "Applications listIngressRules Sample", - "origin": "API_DEFINITION", - "description": " Lists the firewall rules of an application.", - "canonical": true, - "file": "firewall.list_ingress_rules.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListIngressRules", - "fullName": "google.appengine.v1.Firewall.ListIngressRules", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "matching_address", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.appengine.v1.ListIngressRulesResponse", - "client": { - "shortName": "FirewallClient", - "fullName": "google.appengine.v1.FirewallClient" - }, - "method": { - "shortName": "ListIngressRules", - "fullName": "google.appengine.v1.Firewall.ListIngressRules", - "service": { - "shortName": "Firewall", - "fullName": "google.appengine.v1.Firewall" - } - } - } - }, - { - "regionTag": "appengine_v1_generated_Firewall_BatchUpdateIngressRules_async", - "title": "Applications batchUpdateIngressRules Sample", - "origin": "API_DEFINITION", - "description": " Replaces the entire firewall ruleset in one bulk operation. This overrides and replaces the rules of an existing firewall with the new rules. If the final rule does not match traffic with the '*' wildcard IP range, then an \"allow all\" rule is explicitly added to the end of the list.", - "canonical": true, - "file": "firewall.batch_update_ingress_rules.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchUpdateIngressRules", - "fullName": "google.appengine.v1.Firewall.BatchUpdateIngressRules", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "ingress_rules", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.appengine.v1.BatchUpdateIngressRulesResponse", - "client": { - "shortName": "FirewallClient", - "fullName": "google.appengine.v1.FirewallClient" - }, - "method": { - "shortName": "BatchUpdateIngressRules", - "fullName": "google.appengine.v1.Firewall.BatchUpdateIngressRules", - "service": { - "shortName": "Firewall", - "fullName": "google.appengine.v1.Firewall" - } - } - } - }, - { - "regionTag": "appengine_v1_generated_Firewall_CreateIngressRule_async", - "title": "Applications createIngressRule Sample", - "origin": "API_DEFINITION", - "description": " Creates a firewall rule for the application.", - "canonical": true, - "file": "firewall.create_ingress_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateIngressRule", - "fullName": "google.appengine.v1.Firewall.CreateIngressRule", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "rule", - "type": ".google.appengine.v1.FirewallRule" - } - ], - "resultType": ".google.appengine.v1.FirewallRule", - "client": { - "shortName": "FirewallClient", - "fullName": "google.appengine.v1.FirewallClient" - }, - "method": { - "shortName": "CreateIngressRule", - "fullName": "google.appengine.v1.Firewall.CreateIngressRule", - "service": { - "shortName": "Firewall", - "fullName": "google.appengine.v1.Firewall" - } - } - } - }, - { - "regionTag": "appengine_v1_generated_Firewall_GetIngressRule_async", - "title": "Applications getIngressRule Sample", - "origin": "API_DEFINITION", - "description": " Gets the specified firewall rule.", - "canonical": true, - "file": "firewall.get_ingress_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIngressRule", - "fullName": "google.appengine.v1.Firewall.GetIngressRule", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.appengine.v1.FirewallRule", - "client": { - "shortName": "FirewallClient", - "fullName": "google.appengine.v1.FirewallClient" - }, - "method": { - "shortName": "GetIngressRule", - "fullName": "google.appengine.v1.Firewall.GetIngressRule", - "service": { - "shortName": "Firewall", - "fullName": "google.appengine.v1.Firewall" - } - } - } - }, - { - "regionTag": "appengine_v1_generated_Firewall_UpdateIngressRule_async", - "title": "Applications updateIngressRule Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified firewall rule.", - "canonical": true, - "file": "firewall.update_ingress_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateIngressRule", - "fullName": "google.appengine.v1.Firewall.UpdateIngressRule", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "rule", - "type": ".google.appengine.v1.FirewallRule" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.appengine.v1.FirewallRule", - "client": { - "shortName": "FirewallClient", - "fullName": "google.appengine.v1.FirewallClient" - }, - "method": { - "shortName": "UpdateIngressRule", - "fullName": "google.appengine.v1.Firewall.UpdateIngressRule", - "service": { - "shortName": "Firewall", - "fullName": "google.appengine.v1.Firewall" - } - } - } - }, - { - "regionTag": "appengine_v1_generated_Firewall_DeleteIngressRule_async", - "title": "Applications deleteIngressRule Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified firewall rule.", - "canonical": true, - "file": "firewall.delete_ingress_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteIngressRule", - "fullName": "google.appengine.v1.Firewall.DeleteIngressRule", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "FirewallClient", - "fullName": "google.appengine.v1.FirewallClient" - }, - "method": { - "shortName": "DeleteIngressRule", - "fullName": "google.appengine.v1.Firewall.DeleteIngressRule", - "service": { - "shortName": "Firewall", - "fullName": "google.appengine.v1.Firewall" - } - } - } - }, - { - "regionTag": "appengine_v1_generated_Instances_ListInstances_async", - "title": "Applications listInstances Sample", - "origin": "API_DEFINITION", - "description": " Lists the instances of a version. Tip: To aggregate details about instances over time, see the [Stackdriver Monitoring API](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/list).", - "canonical": true, - "file": "instances.list_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListInstances", - "fullName": "google.appengine.v1.Instances.ListInstances", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.appengine.v1.ListInstancesResponse", - "client": { - "shortName": "InstancesClient", - "fullName": "google.appengine.v1.InstancesClient" - }, - "method": { - "shortName": "ListInstances", - "fullName": "google.appengine.v1.Instances.ListInstances", - "service": { - "shortName": "Instances", - "fullName": "google.appengine.v1.Instances" - } - } - } - }, - { - "regionTag": "appengine_v1_generated_Instances_GetInstance_async", - "title": "Applications getInstance Sample", - "origin": "API_DEFINITION", - "description": " Gets instance information.", - "canonical": true, - "file": "instances.get_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetInstance", - "fullName": "google.appengine.v1.Instances.GetInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.appengine.v1.Instance", - "client": { - "shortName": "InstancesClient", - "fullName": "google.appengine.v1.InstancesClient" - }, - "method": { - "shortName": "GetInstance", - "fullName": "google.appengine.v1.Instances.GetInstance", - "service": { - "shortName": "Instances", - "fullName": "google.appengine.v1.Instances" - } - } - } - }, - { - "regionTag": "appengine_v1_generated_Instances_DeleteInstance_async", - "title": "Applications deleteInstance Sample", - "origin": "API_DEFINITION", - "description": " Stops a running instance. The instance might be automatically recreated based on the scaling settings of the version. For more information, see \"How Instances are Managed\" ([standard environment](https://cloud.google.com/appengine/docs/standard/python/how-instances-are-managed) | [flexible environment](https://cloud.google.com/appengine/docs/flexible/python/how-instances-are-managed)). To ensure that instances are not re-created and avoid getting billed, you can stop all instances within the target version by changing the serving status of the version to `STOPPED` with the [`apps.services.versions.patch`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions/patch) method.", - "canonical": true, - "file": "instances.delete_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteInstance", - "fullName": "google.appengine.v1.Instances.DeleteInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.appengine.v1.InstancesClient" - }, - "method": { - "shortName": "DeleteInstance", - "fullName": "google.appengine.v1.Instances.DeleteInstance", - "service": { - "shortName": "Instances", - "fullName": "google.appengine.v1.Instances" - } - } - } - }, - { - "regionTag": "appengine_v1_generated_Instances_DebugInstance_async", - "title": "Applications debugInstance Sample", - "origin": "API_DEFINITION", - "description": " Enables debugging on a VM instance. This allows you to use the SSH command to connect to the virtual machine where the instance lives. While in \"debug mode\", the instance continues to serve live traffic. You should delete the instance when you are done debugging and then allow the system to take over and determine if another instance should be started. Only applicable for instances in App Engine flexible environment.", - "canonical": true, - "file": "instances.debug_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DebugInstance", - "fullName": "google.appengine.v1.Instances.DebugInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "ssh_key", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.appengine.v1.InstancesClient" - }, - "method": { - "shortName": "DebugInstance", - "fullName": "google.appengine.v1.Instances.DebugInstance", - "service": { - "shortName": "Instances", - "fullName": "google.appengine.v1.Instances" - } - } - } - }, - { - "regionTag": "appengine_v1_generated_Services_ListServices_async", - "title": "Applications listServices Sample", - "origin": "API_DEFINITION", - "description": " Lists all the services in the application.", - "canonical": true, - "file": "services.list_services.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListServices", - "fullName": "google.appengine.v1.Services.ListServices", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.appengine.v1.ListServicesResponse", - "client": { - "shortName": "ServicesClient", - "fullName": "google.appengine.v1.ServicesClient" - }, - "method": { - "shortName": "ListServices", - "fullName": "google.appengine.v1.Services.ListServices", - "service": { - "shortName": "Services", - "fullName": "google.appengine.v1.Services" - } - } - } - }, - { - "regionTag": "appengine_v1_generated_Services_GetService_async", - "title": "Applications getService Sample", - "origin": "API_DEFINITION", - "description": " Gets the current configuration of the specified service.", - "canonical": true, - "file": "services.get_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 52, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetService", - "fullName": "google.appengine.v1.Services.GetService", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.appengine.v1.Service", - "client": { - "shortName": "ServicesClient", - "fullName": "google.appengine.v1.ServicesClient" - }, - "method": { - "shortName": "GetService", - "fullName": "google.appengine.v1.Services.GetService", - "service": { - "shortName": "Services", - "fullName": "google.appengine.v1.Services" - } - } - } - }, - { - "regionTag": "appengine_v1_generated_Services_UpdateService_async", - "title": "Applications updateService Sample", - "origin": "API_DEFINITION", - "description": " Updates the configuration of the specified service.", - "canonical": true, - "file": "services.update_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateService", - "fullName": "google.appengine.v1.Services.UpdateService", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "service", - "type": ".google.appengine.v1.Service" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "migrate_traffic", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ServicesClient", - "fullName": "google.appengine.v1.ServicesClient" - }, - "method": { - "shortName": "UpdateService", - "fullName": "google.appengine.v1.Services.UpdateService", - "service": { - "shortName": "Services", - "fullName": "google.appengine.v1.Services" - } - } - } - }, - { - "regionTag": "appengine_v1_generated_Services_DeleteService_async", - "title": "Applications deleteService Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified service and all enclosed versions.", - "canonical": true, - "file": "services.delete_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteService", - "fullName": "google.appengine.v1.Services.DeleteService", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ServicesClient", - "fullName": "google.appengine.v1.ServicesClient" - }, - "method": { - "shortName": "DeleteService", - "fullName": "google.appengine.v1.Services.DeleteService", - "service": { - "shortName": "Services", - "fullName": "google.appengine.v1.Services" - } - } - } - }, - { - "regionTag": "appengine_v1_generated_Versions_ListVersions_async", - "title": "Applications listVersions Sample", - "origin": "API_DEFINITION", - "description": " Lists the versions of a service.", - "canonical": true, - "file": "versions.list_versions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListVersions", - "fullName": "google.appengine.v1.Versions.ListVersions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.appengine.v1.VersionView" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.appengine.v1.ListVersionsResponse", - "client": { - "shortName": "VersionsClient", - "fullName": "google.appengine.v1.VersionsClient" - }, - "method": { - "shortName": "ListVersions", - "fullName": "google.appengine.v1.Versions.ListVersions", - "service": { - "shortName": "Versions", - "fullName": "google.appengine.v1.Versions" - } - } - } - }, - { - "regionTag": "appengine_v1_generated_Versions_GetVersion_async", - "title": "Applications getVersion Sample", - "origin": "API_DEFINITION", - "description": " Gets the specified Version resource. By default, only a `BASIC_VIEW` will be returned. Specify the `FULL_VIEW` parameter to get the full resource.", - "canonical": true, - "file": "versions.get_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetVersion", - "fullName": "google.appengine.v1.Versions.GetVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.appengine.v1.VersionView" - } - ], - "resultType": ".google.appengine.v1.Version", - "client": { - "shortName": "VersionsClient", - "fullName": "google.appengine.v1.VersionsClient" - }, - "method": { - "shortName": "GetVersion", - "fullName": "google.appengine.v1.Versions.GetVersion", - "service": { - "shortName": "Versions", - "fullName": "google.appengine.v1.Versions" - } - } - } - }, - { - "regionTag": "appengine_v1_generated_Versions_CreateVersion_async", - "title": "Applications createVersion Sample", - "origin": "API_DEFINITION", - "description": " Deploys code and resource files to a new version.", - "canonical": true, - "file": "versions.create_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateVersion", - "fullName": "google.appengine.v1.Versions.CreateVersion", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "version", - "type": ".google.appengine.v1.Version" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VersionsClient", - "fullName": "google.appengine.v1.VersionsClient" - }, - "method": { - "shortName": "CreateVersion", - "fullName": "google.appengine.v1.Versions.CreateVersion", - "service": { - "shortName": "Versions", - "fullName": "google.appengine.v1.Versions" - } - } - } - }, - { - "regionTag": "appengine_v1_generated_Versions_UpdateVersion_async", - "title": "Applications updateVersion Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified Version resource. You can specify the following fields depending on the App Engine environment and type of scaling that the version resource uses: **Standard environment** * [`instance_class`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.instance_class) *automatic scaling* in the standard environment: * [`automatic_scaling.min_idle_instances`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling) * [`automatic_scaling.max_idle_instances`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling) * [`automaticScaling.standard_scheduler_settings.max_instances`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#StandardSchedulerSettings) * [`automaticScaling.standard_scheduler_settings.min_instances`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#StandardSchedulerSettings) * [`automaticScaling.standard_scheduler_settings.target_cpu_utilization`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#StandardSchedulerSettings) * [`automaticScaling.standard_scheduler_settings.target_throughput_utilization`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#StandardSchedulerSettings) *basic scaling* or *manual scaling* in the standard environment: * [`serving_status`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.serving_status) * [`manual_scaling.instances`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#manualscaling) **Flexible environment** * [`serving_status`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.serving_status) *automatic scaling* in the flexible environment: * [`automatic_scaling.min_total_instances`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling) * [`automatic_scaling.max_total_instances`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling) * [`automatic_scaling.cool_down_period_sec`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling) * [`automatic_scaling.cpu_utilization.target_utilization`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling) *manual scaling* in the flexible environment: * [`manual_scaling.instances`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#manualscaling)", - "canonical": true, - "file": "versions.update_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateVersion", - "fullName": "google.appengine.v1.Versions.UpdateVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "version", - "type": ".google.appengine.v1.Version" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VersionsClient", - "fullName": "google.appengine.v1.VersionsClient" - }, - "method": { - "shortName": "UpdateVersion", - "fullName": "google.appengine.v1.Versions.UpdateVersion", - "service": { - "shortName": "Versions", - "fullName": "google.appengine.v1.Versions" - } - } - } - }, - { - "regionTag": "appengine_v1_generated_Versions_DeleteVersion_async", - "title": "Applications deleteVersion Sample", - "origin": "API_DEFINITION", - "description": " Deletes an existing Version resource.", - "canonical": true, - "file": "versions.delete_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteVersion", - "fullName": "google.appengine.v1.Versions.DeleteVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VersionsClient", - "fullName": "google.appengine.v1.VersionsClient" - }, - "method": { - "shortName": "DeleteVersion", - "fullName": "google.appengine.v1.Versions.DeleteVersion", - "service": { - "shortName": "Versions", - "fullName": "google.appengine.v1.Versions" - } - } - } - } - ] -} diff --git a/packages/google-apps-events-subscriptions/samples/generated/v1/snippet_metadata_google.apps.events.subscriptions.v1.json b/packages/google-apps-events-subscriptions/samples/generated/v1/snippet_metadata_google.apps.events.subscriptions.v1.json deleted file mode 100644 index ce7b9036827d..000000000000 --- a/packages/google-apps-events-subscriptions/samples/generated/v1/snippet_metadata_google.apps.events.subscriptions.v1.json +++ /dev/null @@ -1,287 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-subscriptions", - "version": "0.1.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.apps.events.subscriptions.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "workspaceevents_v1_generated_SubscriptionsService_CreateSubscription_async", - "title": "SubscriptionsService createSubscription Sample", - "origin": "API_DEFINITION", - "description": " Creates a Google Workspace subscription. To learn how to use this method, see [Create a Google Workspace subscription](https://developers.google.com/workspace/events/guides/create-subscription).", - "canonical": true, - "file": "subscriptions_service.create_subscription.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSubscription", - "fullName": "google.apps.events.subscriptions.v1.SubscriptionsService.CreateSubscription", - "async": true, - "parameters": [ - { - "name": "subscription", - "type": ".google.apps.events.subscriptions.v1.Subscription" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SubscriptionsServiceClient", - "fullName": "google.apps.events.subscriptions.v1.SubscriptionsServiceClient" - }, - "method": { - "shortName": "CreateSubscription", - "fullName": "google.apps.events.subscriptions.v1.SubscriptionsService.CreateSubscription", - "service": { - "shortName": "SubscriptionsService", - "fullName": "google.apps.events.subscriptions.v1.SubscriptionsService" - } - } - } - }, - { - "regionTag": "workspaceevents_v1_generated_SubscriptionsService_DeleteSubscription_async", - "title": "SubscriptionsService deleteSubscription Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Google Workspace subscription. To learn how to use this method, see [Delete a Google Workspace subscription](https://developers.google.com/workspace/events/guides/delete-subscription).", - "canonical": true, - "file": "subscriptions_service.delete_subscription.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSubscription", - "fullName": "google.apps.events.subscriptions.v1.SubscriptionsService.DeleteSubscription", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SubscriptionsServiceClient", - "fullName": "google.apps.events.subscriptions.v1.SubscriptionsServiceClient" - }, - "method": { - "shortName": "DeleteSubscription", - "fullName": "google.apps.events.subscriptions.v1.SubscriptionsService.DeleteSubscription", - "service": { - "shortName": "SubscriptionsService", - "fullName": "google.apps.events.subscriptions.v1.SubscriptionsService" - } - } - } - }, - { - "regionTag": "workspaceevents_v1_generated_SubscriptionsService_GetSubscription_async", - "title": "SubscriptionsService getSubscription Sample", - "origin": "API_DEFINITION", - "description": " Gets details about a Google Workspace subscription. To learn how to use this method, see [Get details about a Google Workspace subscription](https://developers.google.com/workspace/events/guides/get-subscription).", - "canonical": true, - "file": "subscriptions_service.get_subscription.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSubscription", - "fullName": "google.apps.events.subscriptions.v1.SubscriptionsService.GetSubscription", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.apps.events.subscriptions.v1.Subscription", - "client": { - "shortName": "SubscriptionsServiceClient", - "fullName": "google.apps.events.subscriptions.v1.SubscriptionsServiceClient" - }, - "method": { - "shortName": "GetSubscription", - "fullName": "google.apps.events.subscriptions.v1.SubscriptionsService.GetSubscription", - "service": { - "shortName": "SubscriptionsService", - "fullName": "google.apps.events.subscriptions.v1.SubscriptionsService" - } - } - } - }, - { - "regionTag": "workspaceevents_v1_generated_SubscriptionsService_ListSubscriptions_async", - "title": "SubscriptionsService listSubscriptions Sample", - "origin": "API_DEFINITION", - "description": " Lists Google Workspace subscriptions. To learn how to use this method, see [List Google Workspace subscriptions](https://developers.google.com/workspace/events/guides/list-subscriptions).", - "canonical": true, - "file": "subscriptions_service.list_subscriptions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 89, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSubscriptions", - "fullName": "google.apps.events.subscriptions.v1.SubscriptionsService.ListSubscriptions", - "async": true, - "parameters": [ - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.apps.events.subscriptions.v1.ListSubscriptionsResponse", - "client": { - "shortName": "SubscriptionsServiceClient", - "fullName": "google.apps.events.subscriptions.v1.SubscriptionsServiceClient" - }, - "method": { - "shortName": "ListSubscriptions", - "fullName": "google.apps.events.subscriptions.v1.SubscriptionsService.ListSubscriptions", - "service": { - "shortName": "SubscriptionsService", - "fullName": "google.apps.events.subscriptions.v1.SubscriptionsService" - } - } - } - }, - { - "regionTag": "workspaceevents_v1_generated_SubscriptionsService_UpdateSubscription_async", - "title": "SubscriptionsService updateSubscription Sample", - "origin": "API_DEFINITION", - "description": " Updates or renews a Google Workspace subscription. To learn how to use this method, see [Update or renew a Google Workspace subscription](https://developers.google.com/workspace/events/guides/update-subscription).", - "canonical": true, - "file": "subscriptions_service.update_subscription.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSubscription", - "fullName": "google.apps.events.subscriptions.v1.SubscriptionsService.UpdateSubscription", - "async": true, - "parameters": [ - { - "name": "subscription", - "type": ".google.apps.events.subscriptions.v1.Subscription" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SubscriptionsServiceClient", - "fullName": "google.apps.events.subscriptions.v1.SubscriptionsServiceClient" - }, - "method": { - "shortName": "UpdateSubscription", - "fullName": "google.apps.events.subscriptions.v1.SubscriptionsService.UpdateSubscription", - "service": { - "shortName": "SubscriptionsService", - "fullName": "google.apps.events.subscriptions.v1.SubscriptionsService" - } - } - } - }, - { - "regionTag": "workspaceevents_v1_generated_SubscriptionsService_ReactivateSubscription_async", - "title": "SubscriptionsService reactivateSubscription Sample", - "origin": "API_DEFINITION", - "description": " Reactivates a suspended Google Workspace subscription. This method resets your subscription's `State` field to `ACTIVE`. Before you use this method, you must fix the error that suspended the subscription. To learn how to use this method, see [Reactivate a Google Workspace subscription](https://developers.google.com/workspace/events/guides/reactivate-subscription).", - "canonical": true, - "file": "subscriptions_service.reactivate_subscription.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReactivateSubscription", - "fullName": "google.apps.events.subscriptions.v1.SubscriptionsService.ReactivateSubscription", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SubscriptionsServiceClient", - "fullName": "google.apps.events.subscriptions.v1.SubscriptionsServiceClient" - }, - "method": { - "shortName": "ReactivateSubscription", - "fullName": "google.apps.events.subscriptions.v1.SubscriptionsService.ReactivateSubscription", - "service": { - "shortName": "SubscriptionsService", - "fullName": "google.apps.events.subscriptions.v1.SubscriptionsService" - } - } - } - } - ] -} diff --git a/packages/google-apps-events-subscriptions/samples/generated/v1beta/snippet_metadata_google.apps.events.subscriptions.v1beta.json b/packages/google-apps-events-subscriptions/samples/generated/v1beta/snippet_metadata_google.apps.events.subscriptions.v1beta.json deleted file mode 100644 index 77b5ea439fd9..000000000000 --- a/packages/google-apps-events-subscriptions/samples/generated/v1beta/snippet_metadata_google.apps.events.subscriptions.v1beta.json +++ /dev/null @@ -1,287 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-subscriptions", - "version": "0.1.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.apps.events.subscriptions.v1beta", - "version": "v1beta" - } - ] - }, - "snippets": [ - { - "regionTag": "workspaceevents_v1beta_generated_SubscriptionsService_CreateSubscription_async", - "title": "SubscriptionsService createSubscription Sample", - "origin": "API_DEFINITION", - "description": " Creates a Google Workspace subscription. To learn how to use this method, see [Create a Google Workspace subscription](https://developers.google.com/workspace/events/guides/create-subscription).", - "canonical": true, - "file": "subscriptions_service.create_subscription.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSubscription", - "fullName": "google.apps.events.subscriptions.v1beta.SubscriptionsService.CreateSubscription", - "async": true, - "parameters": [ - { - "name": "subscription", - "type": ".google.apps.events.subscriptions.v1beta.Subscription" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SubscriptionsServiceClient", - "fullName": "google.apps.events.subscriptions.v1beta.SubscriptionsServiceClient" - }, - "method": { - "shortName": "CreateSubscription", - "fullName": "google.apps.events.subscriptions.v1beta.SubscriptionsService.CreateSubscription", - "service": { - "shortName": "SubscriptionsService", - "fullName": "google.apps.events.subscriptions.v1beta.SubscriptionsService" - } - } - } - }, - { - "regionTag": "workspaceevents_v1beta_generated_SubscriptionsService_DeleteSubscription_async", - "title": "SubscriptionsService deleteSubscription Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Google Workspace subscription. To learn how to use this method, see [Delete a Google Workspace subscription](https://developers.google.com/workspace/events/guides/delete-subscription).", - "canonical": true, - "file": "subscriptions_service.delete_subscription.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSubscription", - "fullName": "google.apps.events.subscriptions.v1beta.SubscriptionsService.DeleteSubscription", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SubscriptionsServiceClient", - "fullName": "google.apps.events.subscriptions.v1beta.SubscriptionsServiceClient" - }, - "method": { - "shortName": "DeleteSubscription", - "fullName": "google.apps.events.subscriptions.v1beta.SubscriptionsService.DeleteSubscription", - "service": { - "shortName": "SubscriptionsService", - "fullName": "google.apps.events.subscriptions.v1beta.SubscriptionsService" - } - } - } - }, - { - "regionTag": "workspaceevents_v1beta_generated_SubscriptionsService_GetSubscription_async", - "title": "SubscriptionsService getSubscription Sample", - "origin": "API_DEFINITION", - "description": " Gets details about a Google Workspace subscription. To learn how to use this method, see [Get details about a Google Workspace subscription](https://developers.google.com/workspace/events/guides/get-subscription).", - "canonical": true, - "file": "subscriptions_service.get_subscription.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSubscription", - "fullName": "google.apps.events.subscriptions.v1beta.SubscriptionsService.GetSubscription", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.apps.events.subscriptions.v1beta.Subscription", - "client": { - "shortName": "SubscriptionsServiceClient", - "fullName": "google.apps.events.subscriptions.v1beta.SubscriptionsServiceClient" - }, - "method": { - "shortName": "GetSubscription", - "fullName": "google.apps.events.subscriptions.v1beta.SubscriptionsService.GetSubscription", - "service": { - "shortName": "SubscriptionsService", - "fullName": "google.apps.events.subscriptions.v1beta.SubscriptionsService" - } - } - } - }, - { - "regionTag": "workspaceevents_v1beta_generated_SubscriptionsService_ListSubscriptions_async", - "title": "SubscriptionsService listSubscriptions Sample", - "origin": "API_DEFINITION", - "description": " Lists Google Workspace subscriptions. To learn how to use this method, see [List Google Workspace subscriptions](https://developers.google.com/workspace/events/guides/list-subscriptions).", - "canonical": true, - "file": "subscriptions_service.list_subscriptions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 89, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSubscriptions", - "fullName": "google.apps.events.subscriptions.v1beta.SubscriptionsService.ListSubscriptions", - "async": true, - "parameters": [ - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.apps.events.subscriptions.v1beta.ListSubscriptionsResponse", - "client": { - "shortName": "SubscriptionsServiceClient", - "fullName": "google.apps.events.subscriptions.v1beta.SubscriptionsServiceClient" - }, - "method": { - "shortName": "ListSubscriptions", - "fullName": "google.apps.events.subscriptions.v1beta.SubscriptionsService.ListSubscriptions", - "service": { - "shortName": "SubscriptionsService", - "fullName": "google.apps.events.subscriptions.v1beta.SubscriptionsService" - } - } - } - }, - { - "regionTag": "workspaceevents_v1beta_generated_SubscriptionsService_UpdateSubscription_async", - "title": "SubscriptionsService updateSubscription Sample", - "origin": "API_DEFINITION", - "description": " Updates or renews a Google Workspace subscription. To learn how to use this method, see [Update or renew a Google Workspace subscription](https://developers.google.com/workspace/events/guides/update-subscription).", - "canonical": true, - "file": "subscriptions_service.update_subscription.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSubscription", - "fullName": "google.apps.events.subscriptions.v1beta.SubscriptionsService.UpdateSubscription", - "async": true, - "parameters": [ - { - "name": "subscription", - "type": ".google.apps.events.subscriptions.v1beta.Subscription" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SubscriptionsServiceClient", - "fullName": "google.apps.events.subscriptions.v1beta.SubscriptionsServiceClient" - }, - "method": { - "shortName": "UpdateSubscription", - "fullName": "google.apps.events.subscriptions.v1beta.SubscriptionsService.UpdateSubscription", - "service": { - "shortName": "SubscriptionsService", - "fullName": "google.apps.events.subscriptions.v1beta.SubscriptionsService" - } - } - } - }, - { - "regionTag": "workspaceevents_v1beta_generated_SubscriptionsService_ReactivateSubscription_async", - "title": "SubscriptionsService reactivateSubscription Sample", - "origin": "API_DEFINITION", - "description": " Reactivates a suspended Google Workspace subscription. This method resets your subscription's `State` field to `ACTIVE`. Before you use this method, you must fix the error that suspended the subscription. This method will ignore or reject any subscription that isn't currently in a suspended state. To learn how to use this method, see [Reactivate a Google Workspace subscription](https://developers.google.com/workspace/events/guides/reactivate-subscription).", - "canonical": true, - "file": "subscriptions_service.reactivate_subscription.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReactivateSubscription", - "fullName": "google.apps.events.subscriptions.v1beta.SubscriptionsService.ReactivateSubscription", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SubscriptionsServiceClient", - "fullName": "google.apps.events.subscriptions.v1beta.SubscriptionsServiceClient" - }, - "method": { - "shortName": "ReactivateSubscription", - "fullName": "google.apps.events.subscriptions.v1beta.SubscriptionsService.ReactivateSubscription", - "service": { - "shortName": "SubscriptionsService", - "fullName": "google.apps.events.subscriptions.v1beta.SubscriptionsService" - } - } - } - } - ] -} diff --git a/packages/google-apps-meet/samples/generated/v2/snippet_metadata_google.apps.meet.v2.json b/packages/google-apps-meet/samples/generated/v2/snippet_metadata_google.apps.meet.v2.json deleted file mode 100644 index 56661a8754b6..000000000000 --- a/packages/google-apps-meet/samples/generated/v2/snippet_metadata_google.apps.meet.v2.json +++ /dev/null @@ -1,715 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-meet", - "version": "0.7.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.apps.meet.v2", - "version": "v2" - } - ] - }, - "snippets": [ - { - "regionTag": "meet_v2_generated_ConferenceRecordsService_GetConferenceRecord_async", - "title": "ConferenceRecordsService getConferenceRecord Sample", - "origin": "API_DEFINITION", - "description": " Gets a conference record by conference ID.", - "canonical": true, - "file": "conference_records_service.get_conference_record.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetConferenceRecord", - "fullName": "google.apps.meet.v2.ConferenceRecordsService.GetConferenceRecord", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.apps.meet.v2.ConferenceRecord", - "client": { - "shortName": "ConferenceRecordsServiceClient", - "fullName": "google.apps.meet.v2.ConferenceRecordsServiceClient" - }, - "method": { - "shortName": "GetConferenceRecord", - "fullName": "google.apps.meet.v2.ConferenceRecordsService.GetConferenceRecord", - "service": { - "shortName": "ConferenceRecordsService", - "fullName": "google.apps.meet.v2.ConferenceRecordsService" - } - } - } - }, - { - "regionTag": "meet_v2_generated_ConferenceRecordsService_ListConferenceRecords_async", - "title": "ConferenceRecordsService listConferenceRecords Sample", - "origin": "API_DEFINITION", - "description": " Lists the conference records. By default, ordered by start time and in descending order.", - "canonical": true, - "file": "conference_records_service.list_conference_records.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListConferenceRecords", - "fullName": "google.apps.meet.v2.ConferenceRecordsService.ListConferenceRecords", - "async": true, - "parameters": [ - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.apps.meet.v2.ListConferenceRecordsResponse", - "client": { - "shortName": "ConferenceRecordsServiceClient", - "fullName": "google.apps.meet.v2.ConferenceRecordsServiceClient" - }, - "method": { - "shortName": "ListConferenceRecords", - "fullName": "google.apps.meet.v2.ConferenceRecordsService.ListConferenceRecords", - "service": { - "shortName": "ConferenceRecordsService", - "fullName": "google.apps.meet.v2.ConferenceRecordsService" - } - } - } - }, - { - "regionTag": "meet_v2_generated_ConferenceRecordsService_GetParticipant_async", - "title": "ConferenceRecordsService getParticipant Sample", - "origin": "API_DEFINITION", - "description": " Gets a participant by participant ID.", - "canonical": true, - "file": "conference_records_service.get_participant.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetParticipant", - "fullName": "google.apps.meet.v2.ConferenceRecordsService.GetParticipant", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.apps.meet.v2.Participant", - "client": { - "shortName": "ConferenceRecordsServiceClient", - "fullName": "google.apps.meet.v2.ConferenceRecordsServiceClient" - }, - "method": { - "shortName": "GetParticipant", - "fullName": "google.apps.meet.v2.ConferenceRecordsService.GetParticipant", - "service": { - "shortName": "ConferenceRecordsService", - "fullName": "google.apps.meet.v2.ConferenceRecordsService" - } - } - } - }, - { - "regionTag": "meet_v2_generated_ConferenceRecordsService_ListParticipants_async", - "title": "ConferenceRecordsService listParticipants Sample", - "origin": "API_DEFINITION", - "description": " Lists the participants in a conference record. By default, ordered by join time and in descending order. This API supports `fields` as standard parameters like every other API. However, when the `fields` request parameter is omitted, this API defaults to `'participants/*, next_page_token'`.", - "canonical": true, - "file": "conference_records_service.list_participants.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListParticipants", - "fullName": "google.apps.meet.v2.ConferenceRecordsService.ListParticipants", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.apps.meet.v2.ListParticipantsResponse", - "client": { - "shortName": "ConferenceRecordsServiceClient", - "fullName": "google.apps.meet.v2.ConferenceRecordsServiceClient" - }, - "method": { - "shortName": "ListParticipants", - "fullName": "google.apps.meet.v2.ConferenceRecordsService.ListParticipants", - "service": { - "shortName": "ConferenceRecordsService", - "fullName": "google.apps.meet.v2.ConferenceRecordsService" - } - } - } - }, - { - "regionTag": "meet_v2_generated_ConferenceRecordsService_GetParticipantSession_async", - "title": "ConferenceRecordsService getParticipantSession Sample", - "origin": "API_DEFINITION", - "description": " Gets a participant session by participant session ID.", - "canonical": true, - "file": "conference_records_service.get_participant_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetParticipantSession", - "fullName": "google.apps.meet.v2.ConferenceRecordsService.GetParticipantSession", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.apps.meet.v2.ParticipantSession", - "client": { - "shortName": "ConferenceRecordsServiceClient", - "fullName": "google.apps.meet.v2.ConferenceRecordsServiceClient" - }, - "method": { - "shortName": "GetParticipantSession", - "fullName": "google.apps.meet.v2.ConferenceRecordsService.GetParticipantSession", - "service": { - "shortName": "ConferenceRecordsService", - "fullName": "google.apps.meet.v2.ConferenceRecordsService" - } - } - } - }, - { - "regionTag": "meet_v2_generated_ConferenceRecordsService_ListParticipantSessions_async", - "title": "ConferenceRecordsService listParticipantSessions Sample", - "origin": "API_DEFINITION", - "description": " Lists the participant sessions of a participant in a conference record. By default, ordered by join time and in descending order. This API supports `fields` as standard parameters like every other API. However, when the `fields` request parameter is omitted this API defaults to `'participantsessions/*, next_page_token'`.", - "canonical": true, - "file": "conference_records_service.list_participant_sessions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListParticipantSessions", - "fullName": "google.apps.meet.v2.ConferenceRecordsService.ListParticipantSessions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.apps.meet.v2.ListParticipantSessionsResponse", - "client": { - "shortName": "ConferenceRecordsServiceClient", - "fullName": "google.apps.meet.v2.ConferenceRecordsServiceClient" - }, - "method": { - "shortName": "ListParticipantSessions", - "fullName": "google.apps.meet.v2.ConferenceRecordsService.ListParticipantSessions", - "service": { - "shortName": "ConferenceRecordsService", - "fullName": "google.apps.meet.v2.ConferenceRecordsService" - } - } - } - }, - { - "regionTag": "meet_v2_generated_ConferenceRecordsService_GetRecording_async", - "title": "ConferenceRecordsService getRecording Sample", - "origin": "API_DEFINITION", - "description": " Gets a recording by recording ID.", - "canonical": true, - "file": "conference_records_service.get_recording.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRecording", - "fullName": "google.apps.meet.v2.ConferenceRecordsService.GetRecording", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.apps.meet.v2.Recording", - "client": { - "shortName": "ConferenceRecordsServiceClient", - "fullName": "google.apps.meet.v2.ConferenceRecordsServiceClient" - }, - "method": { - "shortName": "GetRecording", - "fullName": "google.apps.meet.v2.ConferenceRecordsService.GetRecording", - "service": { - "shortName": "ConferenceRecordsService", - "fullName": "google.apps.meet.v2.ConferenceRecordsService" - } - } - } - }, - { - "regionTag": "meet_v2_generated_ConferenceRecordsService_ListRecordings_async", - "title": "ConferenceRecordsService listRecordings Sample", - "origin": "API_DEFINITION", - "description": " Lists the recording resources from the conference record. By default, ordered by start time and in ascending order.", - "canonical": true, - "file": "conference_records_service.list_recordings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRecordings", - "fullName": "google.apps.meet.v2.ConferenceRecordsService.ListRecordings", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.apps.meet.v2.ListRecordingsResponse", - "client": { - "shortName": "ConferenceRecordsServiceClient", - "fullName": "google.apps.meet.v2.ConferenceRecordsServiceClient" - }, - "method": { - "shortName": "ListRecordings", - "fullName": "google.apps.meet.v2.ConferenceRecordsService.ListRecordings", - "service": { - "shortName": "ConferenceRecordsService", - "fullName": "google.apps.meet.v2.ConferenceRecordsService" - } - } - } - }, - { - "regionTag": "meet_v2_generated_ConferenceRecordsService_GetTranscript_async", - "title": "ConferenceRecordsService getTranscript Sample", - "origin": "API_DEFINITION", - "description": " Gets a transcript by transcript ID.", - "canonical": true, - "file": "conference_records_service.get_transcript.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTranscript", - "fullName": "google.apps.meet.v2.ConferenceRecordsService.GetTranscript", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.apps.meet.v2.Transcript", - "client": { - "shortName": "ConferenceRecordsServiceClient", - "fullName": "google.apps.meet.v2.ConferenceRecordsServiceClient" - }, - "method": { - "shortName": "GetTranscript", - "fullName": "google.apps.meet.v2.ConferenceRecordsService.GetTranscript", - "service": { - "shortName": "ConferenceRecordsService", - "fullName": "google.apps.meet.v2.ConferenceRecordsService" - } - } - } - }, - { - "regionTag": "meet_v2_generated_ConferenceRecordsService_ListTranscripts_async", - "title": "ConferenceRecordsService listTranscripts Sample", - "origin": "API_DEFINITION", - "description": " Lists the set of transcripts from the conference record. By default, ordered by start time and in ascending order.", - "canonical": true, - "file": "conference_records_service.list_transcripts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTranscripts", - "fullName": "google.apps.meet.v2.ConferenceRecordsService.ListTranscripts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.apps.meet.v2.ListTranscriptsResponse", - "client": { - "shortName": "ConferenceRecordsServiceClient", - "fullName": "google.apps.meet.v2.ConferenceRecordsServiceClient" - }, - "method": { - "shortName": "ListTranscripts", - "fullName": "google.apps.meet.v2.ConferenceRecordsService.ListTranscripts", - "service": { - "shortName": "ConferenceRecordsService", - "fullName": "google.apps.meet.v2.ConferenceRecordsService" - } - } - } - }, - { - "regionTag": "meet_v2_generated_ConferenceRecordsService_GetTranscriptEntry_async", - "title": "ConferenceRecordsService getTranscriptEntry Sample", - "origin": "API_DEFINITION", - "description": " Gets a `TranscriptEntry` resource by entry ID. Note: The transcript entries returned by the Google Meet API might not match the transcription found in the Google Docs transcript file. This can occur when the Google Docs transcript file is modified after generation.", - "canonical": true, - "file": "conference_records_service.get_transcript_entry.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTranscriptEntry", - "fullName": "google.apps.meet.v2.ConferenceRecordsService.GetTranscriptEntry", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.apps.meet.v2.TranscriptEntry", - "client": { - "shortName": "ConferenceRecordsServiceClient", - "fullName": "google.apps.meet.v2.ConferenceRecordsServiceClient" - }, - "method": { - "shortName": "GetTranscriptEntry", - "fullName": "google.apps.meet.v2.ConferenceRecordsService.GetTranscriptEntry", - "service": { - "shortName": "ConferenceRecordsService", - "fullName": "google.apps.meet.v2.ConferenceRecordsService" - } - } - } - }, - { - "regionTag": "meet_v2_generated_ConferenceRecordsService_ListTranscriptEntries_async", - "title": "ConferenceRecordsService listTranscriptEntries Sample", - "origin": "API_DEFINITION", - "description": " Lists the structured transcript entries per transcript. By default, ordered by start time and in ascending order. Note: The transcript entries returned by the Google Meet API might not match the transcription found in the Google Docs transcript file. This can occur when the Google Docs transcript file is modified after generation.", - "canonical": true, - "file": "conference_records_service.list_transcript_entries.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTranscriptEntries", - "fullName": "google.apps.meet.v2.ConferenceRecordsService.ListTranscriptEntries", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.apps.meet.v2.ListTranscriptEntriesResponse", - "client": { - "shortName": "ConferenceRecordsServiceClient", - "fullName": "google.apps.meet.v2.ConferenceRecordsServiceClient" - }, - "method": { - "shortName": "ListTranscriptEntries", - "fullName": "google.apps.meet.v2.ConferenceRecordsService.ListTranscriptEntries", - "service": { - "shortName": "ConferenceRecordsService", - "fullName": "google.apps.meet.v2.ConferenceRecordsService" - } - } - } - }, - { - "regionTag": "meet_v2_generated_SpacesService_CreateSpace_async", - "title": "ConferenceRecordsService createSpace Sample", - "origin": "API_DEFINITION", - "description": " Creates a space.", - "canonical": true, - "file": "spaces_service.create_space.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSpace", - "fullName": "google.apps.meet.v2.SpacesService.CreateSpace", - "async": true, - "parameters": [ - { - "name": "space", - "type": ".google.apps.meet.v2.Space" - } - ], - "resultType": ".google.apps.meet.v2.Space", - "client": { - "shortName": "SpacesServiceClient", - "fullName": "google.apps.meet.v2.SpacesServiceClient" - }, - "method": { - "shortName": "CreateSpace", - "fullName": "google.apps.meet.v2.SpacesService.CreateSpace", - "service": { - "shortName": "SpacesService", - "fullName": "google.apps.meet.v2.SpacesService" - } - } - } - }, - { - "regionTag": "meet_v2_generated_SpacesService_GetSpace_async", - "title": "ConferenceRecordsService getSpace Sample", - "origin": "API_DEFINITION", - "description": " Gets details about a meeting space. For an example, see [Get a meeting space](https://developers.google.com/meet/api/guides/meeting-spaces#get-meeting-space).", - "canonical": true, - "file": "spaces_service.get_space.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSpace", - "fullName": "google.apps.meet.v2.SpacesService.GetSpace", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.apps.meet.v2.Space", - "client": { - "shortName": "SpacesServiceClient", - "fullName": "google.apps.meet.v2.SpacesServiceClient" - }, - "method": { - "shortName": "GetSpace", - "fullName": "google.apps.meet.v2.SpacesService.GetSpace", - "service": { - "shortName": "SpacesService", - "fullName": "google.apps.meet.v2.SpacesService" - } - } - } - }, - { - "regionTag": "meet_v2_generated_SpacesService_UpdateSpace_async", - "title": "ConferenceRecordsService updateSpace Sample", - "origin": "API_DEFINITION", - "description": " Updates details about a meeting space. For an example, see [Update a meeting space](https://developers.google.com/meet/api/guides/meeting-spaces#update-meeting-space).", - "canonical": true, - "file": "spaces_service.update_space.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSpace", - "fullName": "google.apps.meet.v2.SpacesService.UpdateSpace", - "async": true, - "parameters": [ - { - "name": "space", - "type": ".google.apps.meet.v2.Space" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.apps.meet.v2.Space", - "client": { - "shortName": "SpacesServiceClient", - "fullName": "google.apps.meet.v2.SpacesServiceClient" - }, - "method": { - "shortName": "UpdateSpace", - "fullName": "google.apps.meet.v2.SpacesService.UpdateSpace", - "service": { - "shortName": "SpacesService", - "fullName": "google.apps.meet.v2.SpacesService" - } - } - } - }, - { - "regionTag": "meet_v2_generated_SpacesService_EndActiveConference_async", - "title": "ConferenceRecordsService endActiveConference Sample", - "origin": "API_DEFINITION", - "description": " Ends an active conference (if there's one). For an example, see [End active conference](https://developers.google.com/meet/api/guides/meeting-spaces#end-active-conference).", - "canonical": true, - "file": "spaces_service.end_active_conference.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "EndActiveConference", - "fullName": "google.apps.meet.v2.SpacesService.EndActiveConference", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "SpacesServiceClient", - "fullName": "google.apps.meet.v2.SpacesServiceClient" - }, - "method": { - "shortName": "EndActiveConference", - "fullName": "google.apps.meet.v2.SpacesService.EndActiveConference", - "service": { - "shortName": "SpacesService", - "fullName": "google.apps.meet.v2.SpacesService" - } - } - } - } - ] -} diff --git a/packages/google-apps-meet/samples/generated/v2beta/snippet_metadata_google.apps.meet.v2beta.json b/packages/google-apps-meet/samples/generated/v2beta/snippet_metadata_google.apps.meet.v2beta.json deleted file mode 100644 index d52deae797f8..000000000000 --- a/packages/google-apps-meet/samples/generated/v2beta/snippet_metadata_google.apps.meet.v2beta.json +++ /dev/null @@ -1,931 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-meet", - "version": "0.7.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.apps.meet.v2beta", - "version": "v2beta" - } - ] - }, - "snippets": [ - { - "regionTag": "meet_v2beta_generated_ConferenceRecordsService_GetConferenceRecord_async", - "title": "ConferenceRecordsService getConferenceRecord Sample", - "origin": "API_DEFINITION", - "description": " Gets a conference record by conference ID.", - "canonical": true, - "file": "conference_records_service.get_conference_record.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetConferenceRecord", - "fullName": "google.apps.meet.v2beta.ConferenceRecordsService.GetConferenceRecord", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.apps.meet.v2beta.ConferenceRecord", - "client": { - "shortName": "ConferenceRecordsServiceClient", - "fullName": "google.apps.meet.v2beta.ConferenceRecordsServiceClient" - }, - "method": { - "shortName": "GetConferenceRecord", - "fullName": "google.apps.meet.v2beta.ConferenceRecordsService.GetConferenceRecord", - "service": { - "shortName": "ConferenceRecordsService", - "fullName": "google.apps.meet.v2beta.ConferenceRecordsService" - } - } - } - }, - { - "regionTag": "meet_v2beta_generated_ConferenceRecordsService_ListConferenceRecords_async", - "title": "ConferenceRecordsService listConferenceRecords Sample", - "origin": "API_DEFINITION", - "description": " Lists the conference records. By default, ordered by start time and in descending order.", - "canonical": true, - "file": "conference_records_service.list_conference_records.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListConferenceRecords", - "fullName": "google.apps.meet.v2beta.ConferenceRecordsService.ListConferenceRecords", - "async": true, - "parameters": [ - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.apps.meet.v2beta.ListConferenceRecordsResponse", - "client": { - "shortName": "ConferenceRecordsServiceClient", - "fullName": "google.apps.meet.v2beta.ConferenceRecordsServiceClient" - }, - "method": { - "shortName": "ListConferenceRecords", - "fullName": "google.apps.meet.v2beta.ConferenceRecordsService.ListConferenceRecords", - "service": { - "shortName": "ConferenceRecordsService", - "fullName": "google.apps.meet.v2beta.ConferenceRecordsService" - } - } - } - }, - { - "regionTag": "meet_v2beta_generated_ConferenceRecordsService_GetParticipant_async", - "title": "ConferenceRecordsService getParticipant Sample", - "origin": "API_DEFINITION", - "description": " Gets a participant by participant ID.", - "canonical": true, - "file": "conference_records_service.get_participant.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetParticipant", - "fullName": "google.apps.meet.v2beta.ConferenceRecordsService.GetParticipant", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.apps.meet.v2beta.Participant", - "client": { - "shortName": "ConferenceRecordsServiceClient", - "fullName": "google.apps.meet.v2beta.ConferenceRecordsServiceClient" - }, - "method": { - "shortName": "GetParticipant", - "fullName": "google.apps.meet.v2beta.ConferenceRecordsService.GetParticipant", - "service": { - "shortName": "ConferenceRecordsService", - "fullName": "google.apps.meet.v2beta.ConferenceRecordsService" - } - } - } - }, - { - "regionTag": "meet_v2beta_generated_ConferenceRecordsService_ListParticipants_async", - "title": "ConferenceRecordsService listParticipants Sample", - "origin": "API_DEFINITION", - "description": " Lists the participants in a conference record. By default, ordered by join time and in descending order. This API supports `fields` as standard parameters like every other API. However, when the `fields` request parameter is omitted, this API defaults to `'participants/*, next_page_token'`.", - "canonical": true, - "file": "conference_records_service.list_participants.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListParticipants", - "fullName": "google.apps.meet.v2beta.ConferenceRecordsService.ListParticipants", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.apps.meet.v2beta.ListParticipantsResponse", - "client": { - "shortName": "ConferenceRecordsServiceClient", - "fullName": "google.apps.meet.v2beta.ConferenceRecordsServiceClient" - }, - "method": { - "shortName": "ListParticipants", - "fullName": "google.apps.meet.v2beta.ConferenceRecordsService.ListParticipants", - "service": { - "shortName": "ConferenceRecordsService", - "fullName": "google.apps.meet.v2beta.ConferenceRecordsService" - } - } - } - }, - { - "regionTag": "meet_v2beta_generated_ConferenceRecordsService_GetParticipantSession_async", - "title": "ConferenceRecordsService getParticipantSession Sample", - "origin": "API_DEFINITION", - "description": " Gets a participant session by participant session ID.", - "canonical": true, - "file": "conference_records_service.get_participant_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetParticipantSession", - "fullName": "google.apps.meet.v2beta.ConferenceRecordsService.GetParticipantSession", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.apps.meet.v2beta.ParticipantSession", - "client": { - "shortName": "ConferenceRecordsServiceClient", - "fullName": "google.apps.meet.v2beta.ConferenceRecordsServiceClient" - }, - "method": { - "shortName": "GetParticipantSession", - "fullName": "google.apps.meet.v2beta.ConferenceRecordsService.GetParticipantSession", - "service": { - "shortName": "ConferenceRecordsService", - "fullName": "google.apps.meet.v2beta.ConferenceRecordsService" - } - } - } - }, - { - "regionTag": "meet_v2beta_generated_ConferenceRecordsService_ListParticipantSessions_async", - "title": "ConferenceRecordsService listParticipantSessions Sample", - "origin": "API_DEFINITION", - "description": " Lists the participant sessions of a participant in a conference record. By default, ordered by join time and in descending order. This API supports `fields` as standard parameters like every other API. However, when the `fields` request parameter is omitted this API defaults to `'participantsessions/*, next_page_token'`.", - "canonical": true, - "file": "conference_records_service.list_participant_sessions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListParticipantSessions", - "fullName": "google.apps.meet.v2beta.ConferenceRecordsService.ListParticipantSessions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.apps.meet.v2beta.ListParticipantSessionsResponse", - "client": { - "shortName": "ConferenceRecordsServiceClient", - "fullName": "google.apps.meet.v2beta.ConferenceRecordsServiceClient" - }, - "method": { - "shortName": "ListParticipantSessions", - "fullName": "google.apps.meet.v2beta.ConferenceRecordsService.ListParticipantSessions", - "service": { - "shortName": "ConferenceRecordsService", - "fullName": "google.apps.meet.v2beta.ConferenceRecordsService" - } - } - } - }, - { - "regionTag": "meet_v2beta_generated_ConferenceRecordsService_GetRecording_async", - "title": "ConferenceRecordsService getRecording Sample", - "origin": "API_DEFINITION", - "description": " Gets a recording by recording ID.", - "canonical": true, - "file": "conference_records_service.get_recording.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRecording", - "fullName": "google.apps.meet.v2beta.ConferenceRecordsService.GetRecording", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.apps.meet.v2beta.Recording", - "client": { - "shortName": "ConferenceRecordsServiceClient", - "fullName": "google.apps.meet.v2beta.ConferenceRecordsServiceClient" - }, - "method": { - "shortName": "GetRecording", - "fullName": "google.apps.meet.v2beta.ConferenceRecordsService.GetRecording", - "service": { - "shortName": "ConferenceRecordsService", - "fullName": "google.apps.meet.v2beta.ConferenceRecordsService" - } - } - } - }, - { - "regionTag": "meet_v2beta_generated_ConferenceRecordsService_ListRecordings_async", - "title": "ConferenceRecordsService listRecordings Sample", - "origin": "API_DEFINITION", - "description": " Lists the recording resources from the conference record. By default, ordered by start time and in ascending order.", - "canonical": true, - "file": "conference_records_service.list_recordings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRecordings", - "fullName": "google.apps.meet.v2beta.ConferenceRecordsService.ListRecordings", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.apps.meet.v2beta.ListRecordingsResponse", - "client": { - "shortName": "ConferenceRecordsServiceClient", - "fullName": "google.apps.meet.v2beta.ConferenceRecordsServiceClient" - }, - "method": { - "shortName": "ListRecordings", - "fullName": "google.apps.meet.v2beta.ConferenceRecordsService.ListRecordings", - "service": { - "shortName": "ConferenceRecordsService", - "fullName": "google.apps.meet.v2beta.ConferenceRecordsService" - } - } - } - }, - { - "regionTag": "meet_v2beta_generated_ConferenceRecordsService_GetTranscript_async", - "title": "ConferenceRecordsService getTranscript Sample", - "origin": "API_DEFINITION", - "description": " Gets a transcript by transcript ID.", - "canonical": true, - "file": "conference_records_service.get_transcript.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTranscript", - "fullName": "google.apps.meet.v2beta.ConferenceRecordsService.GetTranscript", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.apps.meet.v2beta.Transcript", - "client": { - "shortName": "ConferenceRecordsServiceClient", - "fullName": "google.apps.meet.v2beta.ConferenceRecordsServiceClient" - }, - "method": { - "shortName": "GetTranscript", - "fullName": "google.apps.meet.v2beta.ConferenceRecordsService.GetTranscript", - "service": { - "shortName": "ConferenceRecordsService", - "fullName": "google.apps.meet.v2beta.ConferenceRecordsService" - } - } - } - }, - { - "regionTag": "meet_v2beta_generated_ConferenceRecordsService_ListTranscripts_async", - "title": "ConferenceRecordsService listTranscripts Sample", - "origin": "API_DEFINITION", - "description": " Lists the set of transcripts from the conference record. By default, ordered by start time and in ascending order.", - "canonical": true, - "file": "conference_records_service.list_transcripts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTranscripts", - "fullName": "google.apps.meet.v2beta.ConferenceRecordsService.ListTranscripts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.apps.meet.v2beta.ListTranscriptsResponse", - "client": { - "shortName": "ConferenceRecordsServiceClient", - "fullName": "google.apps.meet.v2beta.ConferenceRecordsServiceClient" - }, - "method": { - "shortName": "ListTranscripts", - "fullName": "google.apps.meet.v2beta.ConferenceRecordsService.ListTranscripts", - "service": { - "shortName": "ConferenceRecordsService", - "fullName": "google.apps.meet.v2beta.ConferenceRecordsService" - } - } - } - }, - { - "regionTag": "meet_v2beta_generated_ConferenceRecordsService_GetTranscriptEntry_async", - "title": "ConferenceRecordsService getTranscriptEntry Sample", - "origin": "API_DEFINITION", - "description": " Gets a `TranscriptEntry` resource by entry ID. Note: The transcript entries returned by the Google Meet API might not match the transcription found in the Google Docs transcript file. This can occur when the Google Docs transcript file is modified after generation.", - "canonical": true, - "file": "conference_records_service.get_transcript_entry.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTranscriptEntry", - "fullName": "google.apps.meet.v2beta.ConferenceRecordsService.GetTranscriptEntry", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.apps.meet.v2beta.TranscriptEntry", - "client": { - "shortName": "ConferenceRecordsServiceClient", - "fullName": "google.apps.meet.v2beta.ConferenceRecordsServiceClient" - }, - "method": { - "shortName": "GetTranscriptEntry", - "fullName": "google.apps.meet.v2beta.ConferenceRecordsService.GetTranscriptEntry", - "service": { - "shortName": "ConferenceRecordsService", - "fullName": "google.apps.meet.v2beta.ConferenceRecordsService" - } - } - } - }, - { - "regionTag": "meet_v2beta_generated_ConferenceRecordsService_ListTranscriptEntries_async", - "title": "ConferenceRecordsService listTranscriptEntries Sample", - "origin": "API_DEFINITION", - "description": " Lists the structured transcript entries per transcript. By default, ordered by start time and in ascending order. Note: The transcript entries returned by the Google Meet API might not match the transcription found in the Google Docs transcript file. This can occur when the Google Docs transcript file is modified after generation.", - "canonical": true, - "file": "conference_records_service.list_transcript_entries.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTranscriptEntries", - "fullName": "google.apps.meet.v2beta.ConferenceRecordsService.ListTranscriptEntries", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.apps.meet.v2beta.ListTranscriptEntriesResponse", - "client": { - "shortName": "ConferenceRecordsServiceClient", - "fullName": "google.apps.meet.v2beta.ConferenceRecordsServiceClient" - }, - "method": { - "shortName": "ListTranscriptEntries", - "fullName": "google.apps.meet.v2beta.ConferenceRecordsService.ListTranscriptEntries", - "service": { - "shortName": "ConferenceRecordsService", - "fullName": "google.apps.meet.v2beta.ConferenceRecordsService" - } - } - } - }, - { - "regionTag": "meet_v2beta_generated_SpacesService_CreateSpace_async", - "title": "ConferenceRecordsService createSpace Sample", - "origin": "API_DEFINITION", - "description": " Creates a space.", - "canonical": true, - "file": "spaces_service.create_space.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSpace", - "fullName": "google.apps.meet.v2beta.SpacesService.CreateSpace", - "async": true, - "parameters": [ - { - "name": "space", - "type": ".google.apps.meet.v2beta.Space" - } - ], - "resultType": ".google.apps.meet.v2beta.Space", - "client": { - "shortName": "SpacesServiceClient", - "fullName": "google.apps.meet.v2beta.SpacesServiceClient" - }, - "method": { - "shortName": "CreateSpace", - "fullName": "google.apps.meet.v2beta.SpacesService.CreateSpace", - "service": { - "shortName": "SpacesService", - "fullName": "google.apps.meet.v2beta.SpacesService" - } - } - } - }, - { - "regionTag": "meet_v2beta_generated_SpacesService_GetSpace_async", - "title": "ConferenceRecordsService getSpace Sample", - "origin": "API_DEFINITION", - "description": " Gets details about a meeting space. For an example, see [Get a meeting space](https://developers.google.com/meet/api/guides/meeting-spaces#get-meeting-space).", - "canonical": true, - "file": "spaces_service.get_space.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSpace", - "fullName": "google.apps.meet.v2beta.SpacesService.GetSpace", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.apps.meet.v2beta.Space", - "client": { - "shortName": "SpacesServiceClient", - "fullName": "google.apps.meet.v2beta.SpacesServiceClient" - }, - "method": { - "shortName": "GetSpace", - "fullName": "google.apps.meet.v2beta.SpacesService.GetSpace", - "service": { - "shortName": "SpacesService", - "fullName": "google.apps.meet.v2beta.SpacesService" - } - } - } - }, - { - "regionTag": "meet_v2beta_generated_SpacesService_UpdateSpace_async", - "title": "ConferenceRecordsService updateSpace Sample", - "origin": "API_DEFINITION", - "description": " Updates details about a meeting space. For an example, see [Update a meeting space](https://developers.google.com/meet/api/guides/meeting-spaces#update-meeting-space).", - "canonical": true, - "file": "spaces_service.update_space.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSpace", - "fullName": "google.apps.meet.v2beta.SpacesService.UpdateSpace", - "async": true, - "parameters": [ - { - "name": "space", - "type": ".google.apps.meet.v2beta.Space" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.apps.meet.v2beta.Space", - "client": { - "shortName": "SpacesServiceClient", - "fullName": "google.apps.meet.v2beta.SpacesServiceClient" - }, - "method": { - "shortName": "UpdateSpace", - "fullName": "google.apps.meet.v2beta.SpacesService.UpdateSpace", - "service": { - "shortName": "SpacesService", - "fullName": "google.apps.meet.v2beta.SpacesService" - } - } - } - }, - { - "regionTag": "meet_v2beta_generated_SpacesService_ConnectActiveConference_async", - "title": "ConferenceRecordsService connectActiveConference Sample", - "origin": "API_DEFINITION", - "description": " [Developer Preview](https://developers.google.com/workspace/preview): Broker a WebRTC connection to the active conference of a space. On success, clients must use the resulting SDP (Session Description Protocol) answer to establish a WebRTC connection. Once connected, additional functionality is available across WebRTC data channels. See [Meet Media API overview](https://developers.google.com/meet/media-api/guides/overview) for more details about this connection.", - "canonical": true, - "file": "spaces_service.connect_active_conference.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ConnectActiveConference", - "fullName": "google.apps.meet.v2beta.SpacesService.ConnectActiveConference", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "offer", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.apps.meet.v2beta.ConnectActiveConferenceResponse", - "client": { - "shortName": "SpacesServiceClient", - "fullName": "google.apps.meet.v2beta.SpacesServiceClient" - }, - "method": { - "shortName": "ConnectActiveConference", - "fullName": "google.apps.meet.v2beta.SpacesService.ConnectActiveConference", - "service": { - "shortName": "SpacesService", - "fullName": "google.apps.meet.v2beta.SpacesService" - } - } - } - }, - { - "regionTag": "meet_v2beta_generated_SpacesService_EndActiveConference_async", - "title": "ConferenceRecordsService endActiveConference Sample", - "origin": "API_DEFINITION", - "description": " Ends an active conference (if there's one). For an example, see [End active conference](https://developers.google.com/meet/api/guides/meeting-spaces#end-active-conference).", - "canonical": true, - "file": "spaces_service.end_active_conference.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "EndActiveConference", - "fullName": "google.apps.meet.v2beta.SpacesService.EndActiveConference", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "SpacesServiceClient", - "fullName": "google.apps.meet.v2beta.SpacesServiceClient" - }, - "method": { - "shortName": "EndActiveConference", - "fullName": "google.apps.meet.v2beta.SpacesService.EndActiveConference", - "service": { - "shortName": "SpacesService", - "fullName": "google.apps.meet.v2beta.SpacesService" - } - } - } - }, - { - "regionTag": "meet_v2beta_generated_SpacesService_CreateMember_async", - "title": "ConferenceRecordsService createMember Sample", - "origin": "API_DEFINITION", - "description": " [Developer Preview](https://developers.google.com/workspace/preview): Create a member. This API supports the `fields` parameter in [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters). When the `fields` parameter is omitted, this API response will default to \"name,email,role,user\".", - "canonical": true, - "file": "spaces_service.create_member.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateMember", - "fullName": "google.apps.meet.v2beta.SpacesService.CreateMember", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "member", - "type": ".google.apps.meet.v2beta.Member" - } - ], - "resultType": ".google.apps.meet.v2beta.Member", - "client": { - "shortName": "SpacesServiceClient", - "fullName": "google.apps.meet.v2beta.SpacesServiceClient" - }, - "method": { - "shortName": "CreateMember", - "fullName": "google.apps.meet.v2beta.SpacesService.CreateMember", - "service": { - "shortName": "SpacesService", - "fullName": "google.apps.meet.v2beta.SpacesService" - } - } - } - }, - { - "regionTag": "meet_v2beta_generated_SpacesService_GetMember_async", - "title": "ConferenceRecordsService getMember Sample", - "origin": "API_DEFINITION", - "description": " [Developer Preview](https://developers.google.com/workspace/preview): Get a member. This API supports the `fields` parameter in [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters). When the `fields` parameter is omitted, this API response will default to \"name,email,role,user\".", - "canonical": true, - "file": "spaces_service.get_member.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMember", - "fullName": "google.apps.meet.v2beta.SpacesService.GetMember", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.apps.meet.v2beta.Member", - "client": { - "shortName": "SpacesServiceClient", - "fullName": "google.apps.meet.v2beta.SpacesServiceClient" - }, - "method": { - "shortName": "GetMember", - "fullName": "google.apps.meet.v2beta.SpacesService.GetMember", - "service": { - "shortName": "SpacesService", - "fullName": "google.apps.meet.v2beta.SpacesService" - } - } - } - }, - { - "regionTag": "meet_v2beta_generated_SpacesService_ListMembers_async", - "title": "ConferenceRecordsService listMembers Sample", - "origin": "API_DEFINITION", - "description": " [Developer Preview](https://developers.google.com/workspace/preview): List members. This API supports the `fields` parameter in [SystemParameterContext](https://cloud.google.com/apis/docs/system-parameters). When the `fields` parameter is omitted this API response will default to \"name,email,role,user\".", - "canonical": true, - "file": "spaces_service.list_members.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMembers", - "fullName": "google.apps.meet.v2beta.SpacesService.ListMembers", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.apps.meet.v2beta.ListMembersResponse", - "client": { - "shortName": "SpacesServiceClient", - "fullName": "google.apps.meet.v2beta.SpacesServiceClient" - }, - "method": { - "shortName": "ListMembers", - "fullName": "google.apps.meet.v2beta.SpacesService.ListMembers", - "service": { - "shortName": "SpacesService", - "fullName": "google.apps.meet.v2beta.SpacesService" - } - } - } - }, - { - "regionTag": "meet_v2beta_generated_SpacesService_DeleteMember_async", - "title": "ConferenceRecordsService deleteMember Sample", - "origin": "API_DEFINITION", - "description": " [Developer Preview](https://developers.google.com/workspace/preview): Delete the member who was previously assigned roles in the space.", - "canonical": true, - "file": "spaces_service.delete_member.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteMember", - "fullName": "google.apps.meet.v2beta.SpacesService.DeleteMember", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "SpacesServiceClient", - "fullName": "google.apps.meet.v2beta.SpacesServiceClient" - }, - "method": { - "shortName": "DeleteMember", - "fullName": "google.apps.meet.v2beta.SpacesService.DeleteMember", - "service": { - "shortName": "SpacesService", - "fullName": "google.apps.meet.v2beta.SpacesService" - } - } - } - } - ] -} diff --git a/packages/google-area120-tables/samples/generated/v1alpha1/snippet_metadata_google.area120.tables.v1alpha1.json b/packages/google-area120-tables/samples/generated/v1alpha1/snippet_metadata_google.area120.tables.v1alpha1.json deleted file mode 100644 index ddf609c8d396..000000000000 --- a/packages/google-area120-tables/samples/generated/v1alpha1/snippet_metadata_google.area120.tables.v1alpha1.json +++ /dev/null @@ -1,551 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-tables", - "version": "4.2.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.area120.tables.v1alpha1", - "version": "v1alpha1" - } - ] - }, - "snippets": [ - { - "regionTag": "area120tables_v1alpha1_generated_TablesService_GetTable_async", - "title": "TablesService getTable Sample", - "origin": "API_DEFINITION", - "description": " Gets a table. Returns NOT_FOUND if the table does not exist.", - "canonical": true, - "file": "tables_service.get_table.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTable", - "fullName": "google.area120.tables.v1alpha1.TablesService.GetTable", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.area120.tables.v1alpha1.Table", - "client": { - "shortName": "TablesServiceClient", - "fullName": "google.area120.tables.v1alpha1.TablesServiceClient" - }, - "method": { - "shortName": "GetTable", - "fullName": "google.area120.tables.v1alpha1.TablesService.GetTable", - "service": { - "shortName": "TablesService", - "fullName": "google.area120.tables.v1alpha1.TablesService" - } - } - } - }, - { - "regionTag": "area120tables_v1alpha1_generated_TablesService_ListTables_async", - "title": "TablesService listTables Sample", - "origin": "API_DEFINITION", - "description": " Lists tables for the user.", - "canonical": true, - "file": "tables_service.list_tables.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTables", - "fullName": "google.area120.tables.v1alpha1.TablesService.ListTables", - "async": true, - "parameters": [ - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.area120.tables.v1alpha1.ListTablesResponse", - "client": { - "shortName": "TablesServiceClient", - "fullName": "google.area120.tables.v1alpha1.TablesServiceClient" - }, - "method": { - "shortName": "ListTables", - "fullName": "google.area120.tables.v1alpha1.TablesService.ListTables", - "service": { - "shortName": "TablesService", - "fullName": "google.area120.tables.v1alpha1.TablesService" - } - } - } - }, - { - "regionTag": "area120tables_v1alpha1_generated_TablesService_GetWorkspace_async", - "title": "TablesService getWorkspace Sample", - "origin": "API_DEFINITION", - "description": " Gets a workspace. Returns NOT_FOUND if the workspace does not exist.", - "canonical": true, - "file": "tables_service.get_workspace.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetWorkspace", - "fullName": "google.area120.tables.v1alpha1.TablesService.GetWorkspace", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.area120.tables.v1alpha1.Workspace", - "client": { - "shortName": "TablesServiceClient", - "fullName": "google.area120.tables.v1alpha1.TablesServiceClient" - }, - "method": { - "shortName": "GetWorkspace", - "fullName": "google.area120.tables.v1alpha1.TablesService.GetWorkspace", - "service": { - "shortName": "TablesService", - "fullName": "google.area120.tables.v1alpha1.TablesService" - } - } - } - }, - { - "regionTag": "area120tables_v1alpha1_generated_TablesService_ListWorkspaces_async", - "title": "TablesService listWorkspaces Sample", - "origin": "API_DEFINITION", - "description": " Lists workspaces for the user.", - "canonical": true, - "file": "tables_service.list_workspaces.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListWorkspaces", - "fullName": "google.area120.tables.v1alpha1.TablesService.ListWorkspaces", - "async": true, - "parameters": [ - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.area120.tables.v1alpha1.ListWorkspacesResponse", - "client": { - "shortName": "TablesServiceClient", - "fullName": "google.area120.tables.v1alpha1.TablesServiceClient" - }, - "method": { - "shortName": "ListWorkspaces", - "fullName": "google.area120.tables.v1alpha1.TablesService.ListWorkspaces", - "service": { - "shortName": "TablesService", - "fullName": "google.area120.tables.v1alpha1.TablesService" - } - } - } - }, - { - "regionTag": "area120tables_v1alpha1_generated_TablesService_GetRow_async", - "title": "TablesService getRow Sample", - "origin": "API_DEFINITION", - "description": " Gets a row. Returns NOT_FOUND if the row does not exist in the table.", - "canonical": true, - "file": "tables_service.get_row.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRow", - "fullName": "google.area120.tables.v1alpha1.TablesService.GetRow", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.area120.tables.v1alpha1.View" - } - ], - "resultType": ".google.area120.tables.v1alpha1.Row", - "client": { - "shortName": "TablesServiceClient", - "fullName": "google.area120.tables.v1alpha1.TablesServiceClient" - }, - "method": { - "shortName": "GetRow", - "fullName": "google.area120.tables.v1alpha1.TablesService.GetRow", - "service": { - "shortName": "TablesService", - "fullName": "google.area120.tables.v1alpha1.TablesService" - } - } - } - }, - { - "regionTag": "area120tables_v1alpha1_generated_TablesService_ListRows_async", - "title": "TablesService listRows Sample", - "origin": "API_DEFINITION", - "description": " Lists rows in a table. Returns NOT_FOUND if the table does not exist.", - "canonical": true, - "file": "tables_service.list_rows.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRows", - "fullName": "google.area120.tables.v1alpha1.TablesService.ListRows", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.area120.tables.v1alpha1.View" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.area120.tables.v1alpha1.ListRowsResponse", - "client": { - "shortName": "TablesServiceClient", - "fullName": "google.area120.tables.v1alpha1.TablesServiceClient" - }, - "method": { - "shortName": "ListRows", - "fullName": "google.area120.tables.v1alpha1.TablesService.ListRows", - "service": { - "shortName": "TablesService", - "fullName": "google.area120.tables.v1alpha1.TablesService" - } - } - } - }, - { - "regionTag": "area120tables_v1alpha1_generated_TablesService_CreateRow_async", - "title": "TablesService createRow Sample", - "origin": "API_DEFINITION", - "description": " Creates a row.", - "canonical": true, - "file": "tables_service.create_row.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateRow", - "fullName": "google.area120.tables.v1alpha1.TablesService.CreateRow", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "row", - "type": ".google.area120.tables.v1alpha1.Row" - }, - { - "name": "view", - "type": ".google.area120.tables.v1alpha1.View" - } - ], - "resultType": ".google.area120.tables.v1alpha1.Row", - "client": { - "shortName": "TablesServiceClient", - "fullName": "google.area120.tables.v1alpha1.TablesServiceClient" - }, - "method": { - "shortName": "CreateRow", - "fullName": "google.area120.tables.v1alpha1.TablesService.CreateRow", - "service": { - "shortName": "TablesService", - "fullName": "google.area120.tables.v1alpha1.TablesService" - } - } - } - }, - { - "regionTag": "area120tables_v1alpha1_generated_TablesService_BatchCreateRows_async", - "title": "TablesService batchCreateRows Sample", - "origin": "API_DEFINITION", - "description": " Creates multiple rows.", - "canonical": true, - "file": "tables_service.batch_create_rows.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCreateRows", - "fullName": "google.area120.tables.v1alpha1.TablesService.BatchCreateRows", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.area120.tables.v1alpha1.BatchCreateRowsResponse", - "client": { - "shortName": "TablesServiceClient", - "fullName": "google.area120.tables.v1alpha1.TablesServiceClient" - }, - "method": { - "shortName": "BatchCreateRows", - "fullName": "google.area120.tables.v1alpha1.TablesService.BatchCreateRows", - "service": { - "shortName": "TablesService", - "fullName": "google.area120.tables.v1alpha1.TablesService" - } - } - } - }, - { - "regionTag": "area120tables_v1alpha1_generated_TablesService_UpdateRow_async", - "title": "TablesService updateRow Sample", - "origin": "API_DEFINITION", - "description": " Updates a row.", - "canonical": true, - "file": "tables_service.update_row.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateRow", - "fullName": "google.area120.tables.v1alpha1.TablesService.UpdateRow", - "async": true, - "parameters": [ - { - "name": "row", - "type": ".google.area120.tables.v1alpha1.Row" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "view", - "type": ".google.area120.tables.v1alpha1.View" - } - ], - "resultType": ".google.area120.tables.v1alpha1.Row", - "client": { - "shortName": "TablesServiceClient", - "fullName": "google.area120.tables.v1alpha1.TablesServiceClient" - }, - "method": { - "shortName": "UpdateRow", - "fullName": "google.area120.tables.v1alpha1.TablesService.UpdateRow", - "service": { - "shortName": "TablesService", - "fullName": "google.area120.tables.v1alpha1.TablesService" - } - } - } - }, - { - "regionTag": "area120tables_v1alpha1_generated_TablesService_BatchUpdateRows_async", - "title": "TablesService batchUpdateRows Sample", - "origin": "API_DEFINITION", - "description": " Updates multiple rows.", - "canonical": true, - "file": "tables_service.batch_update_rows.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchUpdateRows", - "fullName": "google.area120.tables.v1alpha1.TablesService.BatchUpdateRows", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.area120.tables.v1alpha1.BatchUpdateRowsResponse", - "client": { - "shortName": "TablesServiceClient", - "fullName": "google.area120.tables.v1alpha1.TablesServiceClient" - }, - "method": { - "shortName": "BatchUpdateRows", - "fullName": "google.area120.tables.v1alpha1.TablesService.BatchUpdateRows", - "service": { - "shortName": "TablesService", - "fullName": "google.area120.tables.v1alpha1.TablesService" - } - } - } - }, - { - "regionTag": "area120tables_v1alpha1_generated_TablesService_DeleteRow_async", - "title": "TablesService deleteRow Sample", - "origin": "API_DEFINITION", - "description": " Deletes a row.", - "canonical": true, - "file": "tables_service.delete_row.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteRow", - "fullName": "google.area120.tables.v1alpha1.TablesService.DeleteRow", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "TablesServiceClient", - "fullName": "google.area120.tables.v1alpha1.TablesServiceClient" - }, - "method": { - "shortName": "DeleteRow", - "fullName": "google.area120.tables.v1alpha1.TablesService.DeleteRow", - "service": { - "shortName": "TablesService", - "fullName": "google.area120.tables.v1alpha1.TablesService" - } - } - } - }, - { - "regionTag": "area120tables_v1alpha1_generated_TablesService_BatchDeleteRows_async", - "title": "TablesService batchDeleteRows Sample", - "origin": "API_DEFINITION", - "description": " Deletes multiple rows.", - "canonical": true, - "file": "tables_service.batch_delete_rows.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchDeleteRows", - "fullName": "google.area120.tables.v1alpha1.TablesService.BatchDeleteRows", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "names", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "TablesServiceClient", - "fullName": "google.area120.tables.v1alpha1.TablesServiceClient" - }, - "method": { - "shortName": "BatchDeleteRows", - "fullName": "google.area120.tables.v1alpha1.TablesService.BatchDeleteRows", - "service": { - "shortName": "TablesService", - "fullName": "google.area120.tables.v1alpha1.TablesService" - } - } - } - } - ] -} diff --git a/packages/google-chat/samples/generated/v1/snippet_metadata_google.chat.v1.json b/packages/google-chat/samples/generated/v1/snippet_metadata_google.chat.v1.json deleted file mode 100644 index d6910bf1a301..000000000000 --- a/packages/google-chat/samples/generated/v1/snippet_metadata_google.chat.v1.json +++ /dev/null @@ -1,1991 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-chat", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.chat.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "chat_v1_generated_ChatService_CreateMessage_async", - "title": "ChatService createMessage Sample", - "origin": "API_DEFINITION", - "description": " Creates a message in a Google Chat space. For an example, see [Send a message](https://developers.google.com/workspace/chat/create-messages). Supports the following types of [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): - [App authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) with the authorization scope: - `https://www.googleapis.com/auth/chat.bot` - [User authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with one of the following authorization scopes: - `https://www.googleapis.com/auth/chat.messages.create` - `https://www.googleapis.com/auth/chat.messages` - `https://www.googleapis.com/auth/chat.import` (import mode spaces only) Chat attributes the message sender differently depending on the type of authentication that you use in your request. The following image shows how Chat attributes a message when you use app authentication. Chat displays the Chat app as the message sender. The content of the message can contain text (`text`), cards (`cardsV2`), and accessory widgets (`accessoryWidgets`). ![Message sent with app authentication](https://developers.google.com/workspace/chat/images/message-app-auth.svg) The following image shows how Chat attributes a message when you use user authentication. Chat displays the user as the message sender and attributes the Chat app to the message by displaying its name. The content of message can only contain text (`text`). ![Message sent with user authentication](https://developers.google.com/workspace/chat/images/message-user-auth.svg) The maximum message size, including the message contents, is 32,000 bytes. For [webhook](https://developers.google.com/workspace/chat/quickstart/webhooks) requests, the response doesn't contain the full message. The response only populates the `name` and `thread.name` fields in addition to the information that was in the request.", - "canonical": true, - "file": "chat_service.create_message.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 96, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateMessage", - "fullName": "google.chat.v1.ChatService.CreateMessage", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "message", - "type": ".google.chat.v1.Message" - }, - { - "name": "thread_key", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "message_reply_option", - "type": ".google.chat.v1.CreateMessageRequest.MessageReplyOption" - }, - { - "name": "message_id", - "type": "TYPE_STRING" - }, - { - "name": "create_message_notification_options", - "type": ".google.chat.v1.CreateMessageNotificationOptions" - } - ], - "resultType": ".google.chat.v1.Message", - "client": { - "shortName": "ChatServiceClient", - "fullName": "google.chat.v1.ChatServiceClient" - }, - "method": { - "shortName": "CreateMessage", - "fullName": "google.chat.v1.ChatService.CreateMessage", - "service": { - "shortName": "ChatService", - "fullName": "google.chat.v1.ChatService" - } - } - } - }, - { - "regionTag": "chat_v1_generated_ChatService_ListMessages_async", - "title": "ChatService listMessages Sample", - "origin": "API_DEFINITION", - "description": " Lists messages in a space that the caller is a member of, including messages from blocked members and spaces. System messages, like those announcing new space members, aren't included. If you list messages from a space with no messages, the response is an empty object. When using a REST/HTTP interface, the response contains an empty JSON object, `{}`. For an example, see [List messages](https://developers.google.com/workspace/chat/api/guides/v1/messages/list). Supports the following types of [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): - [App authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) with [administrator approval](https://support.google.com/a?p=chat-app-auth) with the authorization scope: - `https://www.googleapis.com/auth/chat.app.messages.readonly`. When using this authentication scope, this method only returns public messages in a space. It doesn't include private messages. - [User authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with one of the following authorization scopes: - `https://www.googleapis.com/auth/chat.messages.readonly` - `https://www.googleapis.com/auth/chat.messages` - `https://www.googleapis.com/auth/chat.import` (import mode spaces only)", - "canonical": true, - "file": "chat_service.list_messages.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 116, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMessages", - "fullName": "google.chat.v1.ChatService.ListMessages", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "show_deleted", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.chat.v1.ListMessagesResponse", - "client": { - "shortName": "ChatServiceClient", - "fullName": "google.chat.v1.ChatServiceClient" - }, - "method": { - "shortName": "ListMessages", - "fullName": "google.chat.v1.ChatService.ListMessages", - "service": { - "shortName": "ChatService", - "fullName": "google.chat.v1.ChatService" - } - } - } - }, - { - "regionTag": "chat_v1_generated_ChatService_ListMemberships_async", - "title": "ChatService listMemberships Sample", - "origin": "API_DEFINITION", - "description": " Lists memberships in a space. For an example, see [List users and Google Chat apps in a space](https://developers.google.com/workspace/chat/list-members). Listing memberships with [app authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) lists memberships in spaces that the Chat app has access to, but excludes Chat app memberships, including its own. Listing memberships with [User authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) lists memberships in spaces that the authenticated user has access to. Supports the following types of [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): - [App authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) with one of the following authorization scopes: - `https://www.googleapis.com/auth/chat.bot` - `https://www.googleapis.com/auth/chat.app.memberships` (requires [administrator approval](https://support.google.com/a?p=chat-app-auth)) - [User authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with one of the following authorization scopes: - `https://www.googleapis.com/auth/chat.memberships.readonly` - `https://www.googleapis.com/auth/chat.memberships` - `https://www.googleapis.com/auth/chat.import` (import mode spaces only) - User authentication grants administrator privileges when an administrator account authenticates, `use_admin_access` is `true`, and one of the following authorization scopes is used: - `https://www.googleapis.com/auth/chat.admin.memberships.readonly` - `https://www.googleapis.com/auth/chat.admin.memberships`", - "canonical": true, - "file": "chat_service.list_memberships.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 135, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMemberships", - "fullName": "google.chat.v1.ChatService.ListMemberships", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "show_groups", - "type": "TYPE_BOOL" - }, - { - "name": "show_invited", - "type": "TYPE_BOOL" - }, - { - "name": "use_admin_access", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.chat.v1.ListMembershipsResponse", - "client": { - "shortName": "ChatServiceClient", - "fullName": "google.chat.v1.ChatServiceClient" - }, - "method": { - "shortName": "ListMemberships", - "fullName": "google.chat.v1.ChatService.ListMemberships", - "service": { - "shortName": "ChatService", - "fullName": "google.chat.v1.ChatService" - } - } - } - }, - { - "regionTag": "chat_v1_generated_ChatService_GetMembership_async", - "title": "ChatService getMembership Sample", - "origin": "API_DEFINITION", - "description": " Returns details about a membership. For an example, see [Get details about a user's or Google Chat app's membership](https://developers.google.com/workspace/chat/get-members). Supports the following types of [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): - [App authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) with one of the following authorization scopes: - `https://www.googleapis.com/auth/chat.bot` - `https://www.googleapis.com/auth/chat.app.memberships` (requires [administrator approval](https://support.google.com/a?p=chat-app-auth)) - [User authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with one of the following authorization scopes: - `https://www.googleapis.com/auth/chat.memberships.readonly` - `https://www.googleapis.com/auth/chat.memberships` - User authentication grants administrator privileges when an administrator account authenticates, `use_admin_access` is `true`, and one of the following authorization scopes is used: - `https://www.googleapis.com/auth/chat.admin.memberships.readonly` - `https://www.googleapis.com/auth/chat.admin.memberships`", - "canonical": true, - "file": "chat_service.get_membership.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMembership", - "fullName": "google.chat.v1.ChatService.GetMembership", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "use_admin_access", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.chat.v1.Membership", - "client": { - "shortName": "ChatServiceClient", - "fullName": "google.chat.v1.ChatServiceClient" - }, - "method": { - "shortName": "GetMembership", - "fullName": "google.chat.v1.ChatService.GetMembership", - "service": { - "shortName": "ChatService", - "fullName": "google.chat.v1.ChatService" - } - } - } - }, - { - "regionTag": "chat_v1_generated_ChatService_GetMessage_async", - "title": "ChatService getMessage Sample", - "origin": "API_DEFINITION", - "description": " Returns details about a message. For an example, see [Get details about a message](https://developers.google.com/workspace/chat/get-messages). Supports the following types of [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): - [App authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) with one of the following authorization scopes: - `https://www.googleapis.com/auth/chat.bot`: When using this authorization scope, this method returns details about a message the Chat app has access to, like direct messages and [slash commands](https://developers.google.com/workspace/chat/slash-commands) that invoke the Chat app. - `https://www.googleapis.com/auth/chat.app.messages.readonly` with [administrator approval](https://support.google.com/a?p=chat-app-auth). When using this authentication scope, this method returns details about a public message in a space. - [User authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with one of the following authorization scopes: - `https://www.googleapis.com/auth/chat.messages.readonly` - `https://www.googleapis.com/auth/chat.messages` Note: Might return a message from a blocked member or space.", - "canonical": true, - "file": "chat_service.get_message.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMessage", - "fullName": "google.chat.v1.ChatService.GetMessage", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.chat.v1.Message", - "client": { - "shortName": "ChatServiceClient", - "fullName": "google.chat.v1.ChatServiceClient" - }, - "method": { - "shortName": "GetMessage", - "fullName": "google.chat.v1.ChatService.GetMessage", - "service": { - "shortName": "ChatService", - "fullName": "google.chat.v1.ChatService" - } - } - } - }, - { - "regionTag": "chat_v1_generated_ChatService_UpdateMessage_async", - "title": "ChatService updateMessage Sample", - "origin": "API_DEFINITION", - "description": " Updates a message. There's a difference between the `patch` and `update` methods. The `patch` method uses a `patch` request while the `update` method uses a `put` request. We recommend using the `patch` method. For an example, see [Update a message](https://developers.google.com/workspace/chat/update-messages). Supports the following types of [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): - [App authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) with the authorization scope: - `https://www.googleapis.com/auth/chat.bot` - [User authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with one of the following authorization scopes: - `https://www.googleapis.com/auth/chat.messages` - `https://www.googleapis.com/auth/chat.import` (import mode spaces only) When using app authentication, requests can only update messages created by the calling Chat app.", - "canonical": true, - "file": "chat_service.update_message.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateMessage", - "fullName": "google.chat.v1.ChatService.UpdateMessage", - "async": true, - "parameters": [ - { - "name": "message", - "type": ".google.chat.v1.Message" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.chat.v1.Message", - "client": { - "shortName": "ChatServiceClient", - "fullName": "google.chat.v1.ChatServiceClient" - }, - "method": { - "shortName": "UpdateMessage", - "fullName": "google.chat.v1.ChatService.UpdateMessage", - "service": { - "shortName": "ChatService", - "fullName": "google.chat.v1.ChatService" - } - } - } - }, - { - "regionTag": "chat_v1_generated_ChatService_DeleteMessage_async", - "title": "ChatService deleteMessage Sample", - "origin": "API_DEFINITION", - "description": " Deletes a message. For an example, see [Delete a message](https://developers.google.com/workspace/chat/delete-messages). Supports the following types of [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): - [App authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) with the authorization scope: - `https://www.googleapis.com/auth/chat.bot` - [User authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with one of the following authorization scopes: - `https://www.googleapis.com/auth/chat.messages` - `https://www.googleapis.com/auth/chat.import` (import mode spaces only) When using app authentication, requests can only delete messages created by the calling Chat app.", - "canonical": true, - "file": "chat_service.delete_message.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteMessage", - "fullName": "google.chat.v1.ChatService.DeleteMessage", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ChatServiceClient", - "fullName": "google.chat.v1.ChatServiceClient" - }, - "method": { - "shortName": "DeleteMessage", - "fullName": "google.chat.v1.ChatService.DeleteMessage", - "service": { - "shortName": "ChatService", - "fullName": "google.chat.v1.ChatService" - } - } - } - }, - { - "regionTag": "chat_v1_generated_ChatService_GetAttachment_async", - "title": "ChatService getAttachment Sample", - "origin": "API_DEFINITION", - "description": " Gets the metadata of a message attachment. The attachment data is fetched using the [media API](https://developers.google.com/workspace/chat/api/reference/rest/v1/media/download). For an example, see [Get metadata about a message attachment](https://developers.google.com/workspace/chat/get-media-attachments). Requires [app authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) with the [authorization scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - `https://www.googleapis.com/auth/chat.bot`", - "canonical": true, - "file": "chat_service.get_attachment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAttachment", - "fullName": "google.chat.v1.ChatService.GetAttachment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.chat.v1.Attachment", - "client": { - "shortName": "ChatServiceClient", - "fullName": "google.chat.v1.ChatServiceClient" - }, - "method": { - "shortName": "GetAttachment", - "fullName": "google.chat.v1.ChatService.GetAttachment", - "service": { - "shortName": "ChatService", - "fullName": "google.chat.v1.ChatService" - } - } - } - }, - { - "regionTag": "chat_v1_generated_ChatService_UploadAttachment_async", - "title": "ChatService uploadAttachment Sample", - "origin": "API_DEFINITION", - "description": " Uploads an attachment. For an example, see [Upload media as a file attachment](https://developers.google.com/workspace/chat/upload-media-attachments). Requires user [authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with one of the following [authorization scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - `https://www.googleapis.com/auth/chat.messages.create` - `https://www.googleapis.com/auth/chat.messages` - `https://www.googleapis.com/auth/chat.import` (import mode spaces only) You can upload attachments up to 200 MB. Certain file types aren't supported. For details, see [File types blocked by Google Chat](https://support.google.com/chat/answer/7651457?&co=GENIE.Platform%3DDesktop#File%20types%20blocked%20in%20Google%20Chat).", - "canonical": true, - "file": "chat_service.upload_attachment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UploadAttachment", - "fullName": "google.chat.v1.ChatService.UploadAttachment", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filename", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.chat.v1.UploadAttachmentResponse", - "client": { - "shortName": "ChatServiceClient", - "fullName": "google.chat.v1.ChatServiceClient" - }, - "method": { - "shortName": "UploadAttachment", - "fullName": "google.chat.v1.ChatService.UploadAttachment", - "service": { - "shortName": "ChatService", - "fullName": "google.chat.v1.ChatService" - } - } - } - }, - { - "regionTag": "chat_v1_generated_ChatService_ListSpaces_async", - "title": "ChatService listSpaces Sample", - "origin": "API_DEFINITION", - "description": " Lists spaces the caller is a member of. Group chats and DMs aren't listed until the first message is sent. For an example, see [List spaces](https://developers.google.com/workspace/chat/list-spaces). Supports the following types of [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): - [App authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) with the authorization scope: - `https://www.googleapis.com/auth/chat.bot` - [User authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with one of the following authorization scopes: - `https://www.googleapis.com/auth/chat.spaces.readonly` - `https://www.googleapis.com/auth/chat.spaces` To list all named spaces by Google Workspace organization, use the [`spaces.search()`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/search) method using Workspace administrator privileges instead.", - "canonical": true, - "file": "chat_service.list_spaces.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSpaces", - "fullName": "google.chat.v1.ChatService.ListSpaces", - "async": true, - "parameters": [ - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.chat.v1.ListSpacesResponse", - "client": { - "shortName": "ChatServiceClient", - "fullName": "google.chat.v1.ChatServiceClient" - }, - "method": { - "shortName": "ListSpaces", - "fullName": "google.chat.v1.ChatService.ListSpaces", - "service": { - "shortName": "ChatService", - "fullName": "google.chat.v1.ChatService" - } - } - } - }, - { - "regionTag": "chat_v1_generated_ChatService_SearchSpaces_async", - "title": "ChatService searchSpaces Sample", - "origin": "API_DEFINITION", - "description": " Returns a list of spaces in a Google Workspace organization based on an administrator's search. In the request, set `use_admin_access` to `true`. For an example, see [Search for and manage spaces](https://developers.google.com/workspace/chat/search-manage-admin). Requires [user authentication with administrator privileges](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user#admin-privileges) and one of the following [authorization scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - `https://www.googleapis.com/auth/chat.admin.spaces.readonly` - `https://www.googleapis.com/auth/chat.admin.spaces`", - "canonical": true, - "file": "chat_service.search_spaces.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchSpaces", - "fullName": "google.chat.v1.ChatService.SearchSpaces", - "async": true, - "parameters": [ - { - "name": "use_admin_access", - "type": "TYPE_BOOL" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.chat.v1.SearchSpacesResponse", - "client": { - "shortName": "ChatServiceClient", - "fullName": "google.chat.v1.ChatServiceClient" - }, - "method": { - "shortName": "SearchSpaces", - "fullName": "google.chat.v1.ChatService.SearchSpaces", - "service": { - "shortName": "ChatService", - "fullName": "google.chat.v1.ChatService" - } - } - } - }, - { - "regionTag": "chat_v1_generated_ChatService_GetSpace_async", - "title": "ChatService getSpace Sample", - "origin": "API_DEFINITION", - "description": " Returns details about a space. For an example, see [Get details about a space](https://developers.google.com/workspace/chat/get-spaces). Supports the following types of [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): - [App authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) with one of the following authorization scopes: - `https://www.googleapis.com/auth/chat.bot` - `https://www.googleapis.com/auth/chat.app.spaces` with [administrator approval](https://support.google.com/a?p=chat-app-auth) - [User authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with one of the following authorization scopes: - `https://www.googleapis.com/auth/chat.spaces.readonly` - `https://www.googleapis.com/auth/chat.spaces` - User authentication grants administrator privileges when an administrator account authenticates, `use_admin_access` is `true`, and one of the following authorization scopes is used: - `https://www.googleapis.com/auth/chat.admin.spaces.readonly` - `https://www.googleapis.com/auth/chat.admin.spaces` App authentication has the following limitations: - `space.access_settings` is only populated when using the `chat.app.spaces` scope. - `space.predefind_permission_settings` and `space.permission_settings` are only populated when using the `chat.app.spaces` scope, and only for spaces the app created.", - "canonical": true, - "file": "chat_service.get_space.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSpace", - "fullName": "google.chat.v1.ChatService.GetSpace", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "use_admin_access", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.chat.v1.Space", - "client": { - "shortName": "ChatServiceClient", - "fullName": "google.chat.v1.ChatServiceClient" - }, - "method": { - "shortName": "GetSpace", - "fullName": "google.chat.v1.ChatService.GetSpace", - "service": { - "shortName": "ChatService", - "fullName": "google.chat.v1.ChatService" - } - } - } - }, - { - "regionTag": "chat_v1_generated_ChatService_CreateSpace_async", - "title": "ChatService createSpace Sample", - "origin": "API_DEFINITION", - "description": " Creates a space. Can be used to create a named space, or a group chat in `Import mode`. For an example, see [Create a space](https://developers.google.com/workspace/chat/create-spaces). Supports the following types of [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): - [App authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) with [administrator approval](https://support.google.com/a?p=chat-app-auth) and one of the following authorization scopes: - `https://www.googleapis.com/auth/chat.app.spaces.create` - `https://www.googleapis.com/auth/chat.app.spaces` - [User authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with one of the following authorization scopes: - `https://www.googleapis.com/auth/chat.spaces.create` - `https://www.googleapis.com/auth/chat.spaces` - `https://www.googleapis.com/auth/chat.import` (import mode spaces only) When authenticating as an app, the `space.customer` field must be set in the request. When authenticating as an app, the Chat app is added as a member of the space. However, unlike human authentication, the Chat app is not added as a space manager. By default, the Chat app can be removed from the space by all space members. To allow only space managers to remove the app from a space, set `space.permission_settings.manage_apps` to `managers_allowed`. Space membership upon creation depends on whether the space is created in `Import mode`: * **Import mode:** No members are created. * **All other modes:** The calling user is added as a member. This is: * The app itself when using app authentication. * The human user when using user authentication. If you receive the error message `ALREADY_EXISTS` when creating a space, try a different `displayName`. An existing space within the Google Workspace organization might already use this display name.", - "canonical": true, - "file": "chat_service.create_space.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSpace", - "fullName": "google.chat.v1.ChatService.CreateSpace", - "async": true, - "parameters": [ - { - "name": "space", - "type": ".google.chat.v1.Space" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.chat.v1.Space", - "client": { - "shortName": "ChatServiceClient", - "fullName": "google.chat.v1.ChatServiceClient" - }, - "method": { - "shortName": "CreateSpace", - "fullName": "google.chat.v1.ChatService.CreateSpace", - "service": { - "shortName": "ChatService", - "fullName": "google.chat.v1.ChatService" - } - } - } - }, - { - "regionTag": "chat_v1_generated_ChatService_SetUpSpace_async", - "title": "ChatService setUpSpace Sample", - "origin": "API_DEFINITION", - "description": " Creates a space and adds specified users to it. The calling user is automatically added to the space, and shouldn't be specified as a membership in the request. For an example, see [Set up a space with initial members](https://developers.google.com/workspace/chat/set-up-spaces). To specify the human members to add, add memberships with the appropriate `membership.member.name`. To add a human user, use `users/{user}`, where `{user}` can be the email address for the user. For users in the same Workspace organization `{user}` can also be the `id` for the person from the People API, or the `id` for the user in the Directory API. For example, if the People API Person profile ID for `user@example.com` is `123456789`, you can add the user to the space by setting the `membership.member.name` to `users/user@example.com` or `users/123456789`. To specify the Google groups to add, add memberships with the appropriate `membership.group_member.name`. To add or invite a Google group, use `groups/{group}`, where `{group}` is the `id` for the group from the Cloud Identity Groups API. For example, you can use [Cloud Identity Groups lookup API](https://cloud.google.com/identity/docs/reference/rest/v1/groups/lookup) to retrieve the ID `123456789` for group email `group@example.com`, then you can add the group to the space by setting the `membership.group_member.name` to `groups/123456789`. Group email is not supported, and Google groups can only be added as members in named spaces. For a named space or group chat, if the caller blocks, or is blocked by some members, or doesn't have permission to add some members, then those members aren't added to the created space. To create a direct message (DM) between the calling user and another human user, specify exactly one membership to represent the human user. If one user blocks the other, the request fails and the DM isn't created. To create a DM between the calling user and the calling app, set `Space.singleUserBotDm` to `true` and don't specify any memberships. You can only use this method to set up a DM with the calling app. To add the calling app as a member of a space or an existing DM between two human users, see [Invite or add a user or app to a space](https://developers.google.com/workspace/chat/create-members). If a DM already exists between two users, even when one user blocks the other at the time a request is made, then the existing DM is returned. Spaces with threaded replies aren't supported. If you receive the error message `ALREADY_EXISTS` when setting up a space, try a different `displayName`. An existing space within the Google Workspace organization might already use this display name. Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with one of the following [authorization scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - `https://www.googleapis.com/auth/chat.spaces.create` - `https://www.googleapis.com/auth/chat.spaces`", - "canonical": true, - "file": "chat_service.set_up_space.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 104, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetUpSpace", - "fullName": "google.chat.v1.ChatService.SetUpSpace", - "async": true, - "parameters": [ - { - "name": "space", - "type": ".google.chat.v1.Space" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "memberships", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.chat.v1.Space", - "client": { - "shortName": "ChatServiceClient", - "fullName": "google.chat.v1.ChatServiceClient" - }, - "method": { - "shortName": "SetUpSpace", - "fullName": "google.chat.v1.ChatService.SetUpSpace", - "service": { - "shortName": "ChatService", - "fullName": "google.chat.v1.ChatService" - } - } - } - }, - { - "regionTag": "chat_v1_generated_ChatService_UpdateSpace_async", - "title": "ChatService updateSpace Sample", - "origin": "API_DEFINITION", - "description": " Updates a space. For an example, see [Update a space](https://developers.google.com/workspace/chat/update-spaces). If you're updating the `displayName` field and receive the error message `ALREADY_EXISTS`, try a different display name.. An existing space within the Google Workspace organization might already use this display name. Supports the following types of [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): - [App authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) with [administrator approval](https://support.google.com/a?p=chat-app-auth) and one of the following authorization scopes: - `https://www.googleapis.com/auth/chat.app.spaces` - [User authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with one of the following authorization scopes: - `https://www.googleapis.com/auth/chat.spaces` - `https://www.googleapis.com/auth/chat.import` (import mode spaces only) - User authentication grants administrator privileges when an administrator account authenticates, `use_admin_access` is `true`, and the following authorization scopes is used: - `https://www.googleapis.com/auth/chat.admin.spaces` App authentication has the following limitations: - To update either `space.predefined_permission_settings` or `space.permission_settings`, the app must be the space creator. - Updating the `space.access_settings.audience` is not supported for app authentication.", - "canonical": true, - "file": "chat_service.update_space.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 125, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSpace", - "fullName": "google.chat.v1.ChatService.UpdateSpace", - "async": true, - "parameters": [ - { - "name": "space", - "type": ".google.chat.v1.Space" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "use_admin_access", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.chat.v1.Space", - "client": { - "shortName": "ChatServiceClient", - "fullName": "google.chat.v1.ChatServiceClient" - }, - "method": { - "shortName": "UpdateSpace", - "fullName": "google.chat.v1.ChatService.UpdateSpace", - "service": { - "shortName": "ChatService", - "fullName": "google.chat.v1.ChatService" - } - } - } - }, - { - "regionTag": "chat_v1_generated_ChatService_DeleteSpace_async", - "title": "ChatService deleteSpace Sample", - "origin": "API_DEFINITION", - "description": " Deletes a named space. Always performs a cascading delete, which means that the space's child resources—like messages posted in the space and memberships in the space—are also deleted. For an example, see [Delete a space](https://developers.google.com/workspace/chat/delete-spaces). Supports the following types of [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): - [App authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) with [administrator approval](https://support.google.com/a?p=chat-app-auth) and the authorization scope: - `https://www.googleapis.com/auth/chat.app.delete` (only in spaces the app created) - [User authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with one of the following authorization scopes: - `https://www.googleapis.com/auth/chat.delete` - `https://www.googleapis.com/auth/chat.import` (import mode spaces only) - User authentication grants administrator privileges when an administrator account authenticates, `use_admin_access` is `true`, and the following authorization scope is used: - `https://www.googleapis.com/auth/chat.admin.delete`", - "canonical": true, - "file": "chat_service.delete_space.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSpace", - "fullName": "google.chat.v1.ChatService.DeleteSpace", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "use_admin_access", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ChatServiceClient", - "fullName": "google.chat.v1.ChatServiceClient" - }, - "method": { - "shortName": "DeleteSpace", - "fullName": "google.chat.v1.ChatService.DeleteSpace", - "service": { - "shortName": "ChatService", - "fullName": "google.chat.v1.ChatService" - } - } - } - }, - { - "regionTag": "chat_v1_generated_ChatService_CompleteImportSpace_async", - "title": "ChatService completeImportSpace Sample", - "origin": "API_DEFINITION", - "description": " Completes the [import process](https://developers.google.com/workspace/chat/import-data) for the specified space and makes it visible to users. Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) and domain-wide delegation with the [authorization scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - `https://www.googleapis.com/auth/chat.import` For more information, see [Authorize Google Chat apps to import data](https://developers.google.com/workspace/chat/authorize-import).", - "canonical": true, - "file": "chat_service.complete_import_space.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CompleteImportSpace", - "fullName": "google.chat.v1.ChatService.CompleteImportSpace", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.chat.v1.CompleteImportSpaceResponse", - "client": { - "shortName": "ChatServiceClient", - "fullName": "google.chat.v1.ChatServiceClient" - }, - "method": { - "shortName": "CompleteImportSpace", - "fullName": "google.chat.v1.ChatService.CompleteImportSpace", - "service": { - "shortName": "ChatService", - "fullName": "google.chat.v1.ChatService" - } - } - } - }, - { - "regionTag": "chat_v1_generated_ChatService_FindDirectMessage_async", - "title": "ChatService findDirectMessage Sample", - "origin": "API_DEFINITION", - "description": " Returns the existing direct message with the specified user. If no direct message space is found, returns a `404 NOT_FOUND` error. For an example, see [Find a direct message](/chat/api/guides/v1/spaces/find-direct-message). With [app authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app), returns the direct message space between the specified user and the calling Chat app. With [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), returns the direct message space between the specified user and the authenticated user. Supports the following types of [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): - [App authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) with the authorization scope: - `https://www.googleapis.com/auth/chat.bot` - [User authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with one of the following authorization scopes: - `https://www.googleapis.com/auth/chat.spaces.readonly` - `https://www.googleapis.com/auth/chat.spaces`", - "canonical": true, - "file": "chat_service.find_direct_message.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FindDirectMessage", - "fullName": "google.chat.v1.ChatService.FindDirectMessage", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.chat.v1.Space", - "client": { - "shortName": "ChatServiceClient", - "fullName": "google.chat.v1.ChatServiceClient" - }, - "method": { - "shortName": "FindDirectMessage", - "fullName": "google.chat.v1.ChatService.FindDirectMessage", - "service": { - "shortName": "ChatService", - "fullName": "google.chat.v1.ChatService" - } - } - } - }, - { - "regionTag": "chat_v1_generated_ChatService_FindGroupChats_async", - "title": "ChatService findGroupChats Sample", - "origin": "API_DEFINITION", - "description": " Returns all spaces with `spaceType == GROUP_CHAT`, whose human memberships contain exactly the calling user, and the users specified in `FindGroupChatsRequest.users`. Only members that have joined the conversation are supported. For an example, see [Find group chats](https://developers.google.com/workspace/chat/find-group-chats). If the calling user blocks, or is blocked by, some users, and no spaces with the entire specified set of users are found, this method returns spaces that don't include the blocked or blocking users. The specified set of users must contain only human (non-app) memberships. A request that contains non-human users doesn't return any spaces. Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with one of the following [authorization scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - `https://www.googleapis.com/auth/chat.memberships.readonly` - `https://www.googleapis.com/auth/chat.memberships`", - "canonical": true, - "file": "chat_service.find_group_chats.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 93, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FindGroupChats", - "fullName": "google.chat.v1.ChatService.FindGroupChats", - "async": true, - "parameters": [ - { - "name": "users", - "type": "TYPE_STRING[]" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "space_view", - "type": ".google.chat.v1.SpaceView" - } - ], - "resultType": ".google.chat.v1.FindGroupChatsResponse", - "client": { - "shortName": "ChatServiceClient", - "fullName": "google.chat.v1.ChatServiceClient" - }, - "method": { - "shortName": "FindGroupChats", - "fullName": "google.chat.v1.ChatService.FindGroupChats", - "service": { - "shortName": "ChatService", - "fullName": "google.chat.v1.ChatService" - } - } - } - }, - { - "regionTag": "chat_v1_generated_ChatService_CreateMembership_async", - "title": "ChatService createMembership Sample", - "origin": "API_DEFINITION", - "description": " Creates a membership for the calling Chat app, a user, or a Google Group. Creating memberships for other Chat apps isn't supported. When creating a membership, if the specified member has their auto-accept policy turned off, then they're invited, and must accept the space invitation before joining. Otherwise, creating a membership adds the member directly to the specified space. Supports the following types of [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): - [App authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) with [administrator approval](https://support.google.com/a?p=chat-app-auth) and the authorization scope: - `https://www.googleapis.com/auth/chat.app.memberships` - [User authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with one of the following authorization scopes: - `https://www.googleapis.com/auth/chat.memberships` - `https://www.googleapis.com/auth/chat.memberships.app` (to add the calling app to the space) - `https://www.googleapis.com/auth/chat.import` (import mode spaces only) - User authentication grants administrator privileges when an administrator account authenticates, `use_admin_access` is `true`, and the following authorization scope is used: - `https://www.googleapis.com/auth/chat.admin.memberships` App authentication is not supported for the following use cases: - Inviting users external to the Workspace organization that owns the space. - Adding a Google Group to a space. - Adding a Chat app to a space. For example usage, see: - [Invite or add a user to a space](https://developers.google.com/workspace/chat/create-members#create-user-membership). - [Invite or add a Google Group to a space](https://developers.google.com/workspace/chat/create-members#create-group-membership). - [Add the Chat app to a space](https://developers.google.com/workspace/chat/create-members#create-membership-calling-api).", - "canonical": true, - "file": "chat_service.create_membership.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 100, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateMembership", - "fullName": "google.chat.v1.ChatService.CreateMembership", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "membership", - "type": ".google.chat.v1.Membership" - }, - { - "name": "use_admin_access", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.chat.v1.Membership", - "client": { - "shortName": "ChatServiceClient", - "fullName": "google.chat.v1.ChatServiceClient" - }, - "method": { - "shortName": "CreateMembership", - "fullName": "google.chat.v1.ChatService.CreateMembership", - "service": { - "shortName": "ChatService", - "fullName": "google.chat.v1.ChatService" - } - } - } - }, - { - "regionTag": "chat_v1_generated_ChatService_UpdateMembership_async", - "title": "ChatService updateMembership Sample", - "origin": "API_DEFINITION", - "description": " Updates a membership. For an example, see [Update a user's membership in a space](https://developers.google.com/workspace/chat/update-members). Supports the following types of [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): - [App authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) with [administrator approval](https://support.google.com/a?p=chat-app-auth) and the authorization scope: - `https://www.googleapis.com/auth/chat.app.memberships` (only in spaces the app created) - [User authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with one of the following authorization scopes: - `https://www.googleapis.com/auth/chat.memberships` - `https://www.googleapis.com/auth/chat.import` (import mode spaces only) - User authentication grants administrator privileges when an administrator account authenticates, `use_admin_access` is `true`, and the following authorization scope is used: - `https://www.googleapis.com/auth/chat.admin.memberships`", - "canonical": true, - "file": "chat_service.update_membership.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateMembership", - "fullName": "google.chat.v1.ChatService.UpdateMembership", - "async": true, - "parameters": [ - { - "name": "membership", - "type": ".google.chat.v1.Membership" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "use_admin_access", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.chat.v1.Membership", - "client": { - "shortName": "ChatServiceClient", - "fullName": "google.chat.v1.ChatServiceClient" - }, - "method": { - "shortName": "UpdateMembership", - "fullName": "google.chat.v1.ChatService.UpdateMembership", - "service": { - "shortName": "ChatService", - "fullName": "google.chat.v1.ChatService" - } - } - } - }, - { - "regionTag": "chat_v1_generated_ChatService_DeleteMembership_async", - "title": "ChatService deleteMembership Sample", - "origin": "API_DEFINITION", - "description": " Deletes a membership. For an example, see [Remove a user or a Google Chat app from a space](https://developers.google.com/workspace/chat/delete-members). Supports the following types of [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): - [App authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) with [administrator approval](https://support.google.com/a?p=chat-app-auth) and the authorization scope: - `https://www.googleapis.com/auth/chat.app.memberships` - [User authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with one of the following authorization scopes: - `https://www.googleapis.com/auth/chat.memberships` - `https://www.googleapis.com/auth/chat.memberships.app` (to remove the calling app from the space) - `https://www.googleapis.com/auth/chat.import` (import mode spaces only) - User authentication grants administrator privileges when an administrator account authenticates, `use_admin_access` is `true`, and the following authorization scope is used: - `https://www.googleapis.com/auth/chat.admin.memberships` App authentication is not supported for the following use cases: - Removing a Google Group from a space. - Removing a Chat app from a space. To delete memberships for space managers, the requester must be a space manager. If you're using [app authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) the Chat app must be the space creator.", - "canonical": true, - "file": "chat_service.delete_membership.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteMembership", - "fullName": "google.chat.v1.ChatService.DeleteMembership", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "use_admin_access", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.chat.v1.Membership", - "client": { - "shortName": "ChatServiceClient", - "fullName": "google.chat.v1.ChatServiceClient" - }, - "method": { - "shortName": "DeleteMembership", - "fullName": "google.chat.v1.ChatService.DeleteMembership", - "service": { - "shortName": "ChatService", - "fullName": "google.chat.v1.ChatService" - } - } - } - }, - { - "regionTag": "chat_v1_generated_ChatService_CreateReaction_async", - "title": "ChatService createReaction Sample", - "origin": "API_DEFINITION", - "description": " Creates a reaction and adds it to a message. For an example, see [Add a reaction to a message](https://developers.google.com/workspace/chat/create-reactions). Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with one of the following [authorization scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - `https://www.googleapis.com/auth/chat.messages.reactions.create` - `https://www.googleapis.com/auth/chat.messages.reactions` - `https://www.googleapis.com/auth/chat.messages` - `https://www.googleapis.com/auth/chat.import` (import mode spaces only)", - "canonical": true, - "file": "chat_service.create_reaction.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateReaction", - "fullName": "google.chat.v1.ChatService.CreateReaction", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "reaction", - "type": ".google.chat.v1.Reaction" - } - ], - "resultType": ".google.chat.v1.Reaction", - "client": { - "shortName": "ChatServiceClient", - "fullName": "google.chat.v1.ChatServiceClient" - }, - "method": { - "shortName": "CreateReaction", - "fullName": "google.chat.v1.ChatService.CreateReaction", - "service": { - "shortName": "ChatService", - "fullName": "google.chat.v1.ChatService" - } - } - } - }, - { - "regionTag": "chat_v1_generated_ChatService_ListReactions_async", - "title": "ChatService listReactions Sample", - "origin": "API_DEFINITION", - "description": " Lists reactions to a message. For an example, see [List reactions for a message](https://developers.google.com/workspace/chat/list-reactions). Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with one of the following [authorization scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - `https://www.googleapis.com/auth/chat.messages.reactions.readonly` - `https://www.googleapis.com/auth/chat.messages.reactions` - `https://www.googleapis.com/auth/chat.messages.readonly` - `https://www.googleapis.com/auth/chat.messages`", - "canonical": true, - "file": "chat_service.list_reactions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 107, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListReactions", - "fullName": "google.chat.v1.ChatService.ListReactions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.chat.v1.ListReactionsResponse", - "client": { - "shortName": "ChatServiceClient", - "fullName": "google.chat.v1.ChatServiceClient" - }, - "method": { - "shortName": "ListReactions", - "fullName": "google.chat.v1.ChatService.ListReactions", - "service": { - "shortName": "ChatService", - "fullName": "google.chat.v1.ChatService" - } - } - } - }, - { - "regionTag": "chat_v1_generated_ChatService_DeleteReaction_async", - "title": "ChatService deleteReaction Sample", - "origin": "API_DEFINITION", - "description": " Deletes a reaction to a message. For an example, see [Delete a reaction](https://developers.google.com/workspace/chat/delete-reactions). Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with one of the following [authorization scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - `https://www.googleapis.com/auth/chat.messages.reactions` - `https://www.googleapis.com/auth/chat.messages` - `https://www.googleapis.com/auth/chat.import` (import mode spaces only)", - "canonical": true, - "file": "chat_service.delete_reaction.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteReaction", - "fullName": "google.chat.v1.ChatService.DeleteReaction", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ChatServiceClient", - "fullName": "google.chat.v1.ChatServiceClient" - }, - "method": { - "shortName": "DeleteReaction", - "fullName": "google.chat.v1.ChatService.DeleteReaction", - "service": { - "shortName": "ChatService", - "fullName": "google.chat.v1.ChatService" - } - } - } - }, - { - "regionTag": "chat_v1_generated_ChatService_CreateCustomEmoji_async", - "title": "ChatService createCustomEmoji Sample", - "origin": "API_DEFINITION", - "description": " Creates a custom emoji. Custom emojis are only available for Google Workspace accounts, and the administrator must turn custom emojis on for the organization. For more information, see [Learn about custom emojis in Google Chat](https://support.google.com/chat/answer/12800149) and [Manage custom emoji permissions](https://support.google.com/a/answer/12850085). Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with the [authorization scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - `https://www.googleapis.com/auth/chat.customemojis`", - "canonical": true, - "file": "chat_service.create_custom_emoji.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCustomEmoji", - "fullName": "google.chat.v1.ChatService.CreateCustomEmoji", - "async": true, - "parameters": [ - { - "name": "custom_emoji", - "type": ".google.chat.v1.CustomEmoji" - } - ], - "resultType": ".google.chat.v1.CustomEmoji", - "client": { - "shortName": "ChatServiceClient", - "fullName": "google.chat.v1.ChatServiceClient" - }, - "method": { - "shortName": "CreateCustomEmoji", - "fullName": "google.chat.v1.ChatService.CreateCustomEmoji", - "service": { - "shortName": "ChatService", - "fullName": "google.chat.v1.ChatService" - } - } - } - }, - { - "regionTag": "chat_v1_generated_ChatService_GetCustomEmoji_async", - "title": "ChatService getCustomEmoji Sample", - "origin": "API_DEFINITION", - "description": " Returns details about a custom emoji. Custom emojis are only available for Google Workspace accounts, and the administrator must turn custom emojis on for the organization. For more information, see [Learn about custom emojis in Google Chat](https://support.google.com/chat/answer/12800149) and [Manage custom emoji permissions](https://support.google.com/a/answer/12850085). Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with one of the following [authorization scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - `https://www.googleapis.com/auth/chat.customemojis.readonly` - `https://www.googleapis.com/auth/chat.customemojis`", - "canonical": true, - "file": "chat_service.get_custom_emoji.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCustomEmoji", - "fullName": "google.chat.v1.ChatService.GetCustomEmoji", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.chat.v1.CustomEmoji", - "client": { - "shortName": "ChatServiceClient", - "fullName": "google.chat.v1.ChatServiceClient" - }, - "method": { - "shortName": "GetCustomEmoji", - "fullName": "google.chat.v1.ChatService.GetCustomEmoji", - "service": { - "shortName": "ChatService", - "fullName": "google.chat.v1.ChatService" - } - } - } - }, - { - "regionTag": "chat_v1_generated_ChatService_ListCustomEmojis_async", - "title": "ChatService listCustomEmojis Sample", - "origin": "API_DEFINITION", - "description": " Lists custom emojis visible to the authenticated user. Custom emojis are only available for Google Workspace accounts, and the administrator must turn custom emojis on for the organization. For more information, see [Learn about custom emojis in Google Chat](https://support.google.com/chat/answer/12800149) and [Manage custom emoji permissions](https://support.google.com/a/answer/12850085). Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with one of the following [authorization scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - `https://www.googleapis.com/auth/chat.customemojis.readonly` - `https://www.googleapis.com/auth/chat.customemojis`", - "canonical": true, - "file": "chat_service.list_custom_emojis.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCustomEmojis", - "fullName": "google.chat.v1.ChatService.ListCustomEmojis", - "async": true, - "parameters": [ - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.chat.v1.ListCustomEmojisResponse", - "client": { - "shortName": "ChatServiceClient", - "fullName": "google.chat.v1.ChatServiceClient" - }, - "method": { - "shortName": "ListCustomEmojis", - "fullName": "google.chat.v1.ChatService.ListCustomEmojis", - "service": { - "shortName": "ChatService", - "fullName": "google.chat.v1.ChatService" - } - } - } - }, - { - "regionTag": "chat_v1_generated_ChatService_DeleteCustomEmoji_async", - "title": "ChatService deleteCustomEmoji Sample", - "origin": "API_DEFINITION", - "description": " Deletes a custom emoji. By default, users can only delete custom emoji they created. [Emoji managers](https://support.google.com/a/answer/12850085) assigned by the administrator can delete any custom emoji in the organization. See [Learn about custom emojis in Google Chat](https://support.google.com/chat/answer/12800149). Custom emojis are only available for Google Workspace accounts, and the administrator must turn custom emojis on for the organization. For more information, see [Learn about custom emojis in Google Chat](https://support.google.com/chat/answer/12800149) and [Manage custom emoji permissions](https://support.google.com/a/answer/12850085). Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with the [authorization scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - `https://www.googleapis.com/auth/chat.customemojis`", - "canonical": true, - "file": "chat_service.delete_custom_emoji.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCustomEmoji", - "fullName": "google.chat.v1.ChatService.DeleteCustomEmoji", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ChatServiceClient", - "fullName": "google.chat.v1.ChatServiceClient" - }, - "method": { - "shortName": "DeleteCustomEmoji", - "fullName": "google.chat.v1.ChatService.DeleteCustomEmoji", - "service": { - "shortName": "ChatService", - "fullName": "google.chat.v1.ChatService" - } - } - } - }, - { - "regionTag": "chat_v1_generated_ChatService_GetSpaceReadState_async", - "title": "ChatService getSpaceReadState Sample", - "origin": "API_DEFINITION", - "description": " Returns details about a user's read state within a space, used to identify read and unread messages. For an example, see [Get details about a user's space read state](https://developers.google.com/workspace/chat/get-space-read-state). Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with one of the following [authorization scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - `https://www.googleapis.com/auth/chat.users.readstate.readonly` - `https://www.googleapis.com/auth/chat.users.readstate`", - "canonical": true, - "file": "chat_service.get_space_read_state.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSpaceReadState", - "fullName": "google.chat.v1.ChatService.GetSpaceReadState", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.chat.v1.SpaceReadState", - "client": { - "shortName": "ChatServiceClient", - "fullName": "google.chat.v1.ChatServiceClient" - }, - "method": { - "shortName": "GetSpaceReadState", - "fullName": "google.chat.v1.ChatService.GetSpaceReadState", - "service": { - "shortName": "ChatService", - "fullName": "google.chat.v1.ChatService" - } - } - } - }, - { - "regionTag": "chat_v1_generated_ChatService_UpdateSpaceReadState_async", - "title": "ChatService updateSpaceReadState Sample", - "origin": "API_DEFINITION", - "description": " Updates a user's read state within a space, used to identify read and unread messages. For an example, see [Update a user's space read state](https://developers.google.com/workspace/chat/update-space-read-state). Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with the [authorization scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - `https://www.googleapis.com/auth/chat.users.readstate`", - "canonical": true, - "file": "chat_service.update_space_read_state.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSpaceReadState", - "fullName": "google.chat.v1.ChatService.UpdateSpaceReadState", - "async": true, - "parameters": [ - { - "name": "space_read_state", - "type": ".google.chat.v1.SpaceReadState" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.chat.v1.SpaceReadState", - "client": { - "shortName": "ChatServiceClient", - "fullName": "google.chat.v1.ChatServiceClient" - }, - "method": { - "shortName": "UpdateSpaceReadState", - "fullName": "google.chat.v1.ChatService.UpdateSpaceReadState", - "service": { - "shortName": "ChatService", - "fullName": "google.chat.v1.ChatService" - } - } - } - }, - { - "regionTag": "chat_v1_generated_ChatService_GetThreadReadState_async", - "title": "ChatService getThreadReadState Sample", - "origin": "API_DEFINITION", - "description": " Returns details about a user's read state within a thread, used to identify read and unread messages. For an example, see [Get details about a user's thread read state](https://developers.google.com/workspace/chat/get-thread-read-state). Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with one of the following [authorization scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - `https://www.googleapis.com/auth/chat.users.readstate.readonly` - `https://www.googleapis.com/auth/chat.users.readstate`", - "canonical": true, - "file": "chat_service.get_thread_read_state.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetThreadReadState", - "fullName": "google.chat.v1.ChatService.GetThreadReadState", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.chat.v1.ThreadReadState", - "client": { - "shortName": "ChatServiceClient", - "fullName": "google.chat.v1.ChatServiceClient" - }, - "method": { - "shortName": "GetThreadReadState", - "fullName": "google.chat.v1.ChatService.GetThreadReadState", - "service": { - "shortName": "ChatService", - "fullName": "google.chat.v1.ChatService" - } - } - } - }, - { - "regionTag": "chat_v1_generated_ChatService_GetSpaceEvent_async", - "title": "ChatService getSpaceEvent Sample", - "origin": "API_DEFINITION", - "description": " Returns an event from a Google Chat space. The [event payload](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.oneof_payload) contains the most recent version of the resource that changed. For example, if you request an event about a new message but the message was later updated, the server returns the updated `Message` resource in the event payload. Note: The `permissionSettings` field is not returned in the Space object of the Space event data for this request. Supports the following types of [authentication](https://developers.google.com/workspace/chat/authenticate-authorize) with an [authorization scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes) appropriate for reading the requested data: - [App authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) with [administrator approval](https://support.google.com/a?p=chat-app-auth) with one of the following authorization scopes: - `https://www.googleapis.com/auth/chat.app.spaces` - `https://www.googleapis.com/auth/chat.app.spaces.readonly` - `https://www.googleapis.com/auth/chat.app.messages.readonly` - `https://www.googleapis.com/auth/chat.app.memberships` - `https://www.googleapis.com/auth/chat.app.memberships.readonly` - [User authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with one of the following authorization scopes: - `https://www.googleapis.com/auth/chat.spaces.readonly` - `https://www.googleapis.com/auth/chat.spaces` - `https://www.googleapis.com/auth/chat.messages.readonly` - `https://www.googleapis.com/auth/chat.messages` - `https://www.googleapis.com/auth/chat.messages.reactions.readonly` - `https://www.googleapis.com/auth/chat.messages.reactions` - `https://www.googleapis.com/auth/chat.memberships.readonly` - `https://www.googleapis.com/auth/chat.memberships` To get an event, the authenticated caller must be a member of the space. For an example, see [Get details about an event from a Google Chat space](https://developers.google.com/workspace/chat/get-space-event).", - "canonical": true, - "file": "chat_service.get_space_event.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSpaceEvent", - "fullName": "google.chat.v1.ChatService.GetSpaceEvent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.chat.v1.SpaceEvent", - "client": { - "shortName": "ChatServiceClient", - "fullName": "google.chat.v1.ChatServiceClient" - }, - "method": { - "shortName": "GetSpaceEvent", - "fullName": "google.chat.v1.ChatService.GetSpaceEvent", - "service": { - "shortName": "ChatService", - "fullName": "google.chat.v1.ChatService" - } - } - } - }, - { - "regionTag": "chat_v1_generated_ChatService_ListSpaceEvents_async", - "title": "ChatService listSpaceEvents Sample", - "origin": "API_DEFINITION", - "description": " Lists events from a Google Chat space. For each event, the [payload](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.spaceEvents#SpaceEvent.FIELDS.oneof_payload) contains the most recent version of the Chat resource. For example, if you list events about new space members, the server returns `Membership` resources that contain the latest membership details. If new members were removed during the requested period, the event payload contains an empty `Membership` resource. Supports the following types of [authentication](https://developers.google.com/workspace/chat/authenticate-authorize) with an [authorization scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes) appropriate for reading the requested data: - [App authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) with [administrator approval](https://support.google.com/a?p=chat-app-auth) with one of the following authorization scopes: - `https://www.googleapis.com/auth/chat.app.spaces` - `https://www.googleapis.com/auth/chat.app.spaces.readonly` - `https://www.googleapis.com/auth/chat.app.messages.readonly` - `https://www.googleapis.com/auth/chat.app.memberships` - `https://www.googleapis.com/auth/chat.app.memberships.readonly` - [User authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with one of the following authorization scopes: - `https://www.googleapis.com/auth/chat.spaces.readonly` - `https://www.googleapis.com/auth/chat.spaces` - `https://www.googleapis.com/auth/chat.messages.readonly` - `https://www.googleapis.com/auth/chat.messages` - `https://www.googleapis.com/auth/chat.messages.reactions.readonly` - `https://www.googleapis.com/auth/chat.messages.reactions` - `https://www.googleapis.com/auth/chat.memberships.readonly` - `https://www.googleapis.com/auth/chat.memberships` To list events, the authenticated caller must be a member of the space. For an example, see [List events from a Google Chat space](https://developers.google.com/workspace/chat/list-space-events).", - "canonical": true, - "file": "chat_service.list_space_events.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 119, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSpaceEvents", - "fullName": "google.chat.v1.ChatService.ListSpaceEvents", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.chat.v1.ListSpaceEventsResponse", - "client": { - "shortName": "ChatServiceClient", - "fullName": "google.chat.v1.ChatServiceClient" - }, - "method": { - "shortName": "ListSpaceEvents", - "fullName": "google.chat.v1.ChatService.ListSpaceEvents", - "service": { - "shortName": "ChatService", - "fullName": "google.chat.v1.ChatService" - } - } - } - }, - { - "regionTag": "chat_v1_generated_ChatService_GetSpaceNotificationSetting_async", - "title": "ChatService getSpaceNotificationSetting Sample", - "origin": "API_DEFINITION", - "description": " Gets the space notification setting. For an example, see [Get the caller's space notification setting](https://developers.google.com/workspace/chat/get-space-notification-setting). Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with the [authorization scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - `https://www.googleapis.com/auth/chat.users.spacesettings`", - "canonical": true, - "file": "chat_service.get_space_notification_setting.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSpaceNotificationSetting", - "fullName": "google.chat.v1.ChatService.GetSpaceNotificationSetting", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.chat.v1.SpaceNotificationSetting", - "client": { - "shortName": "ChatServiceClient", - "fullName": "google.chat.v1.ChatServiceClient" - }, - "method": { - "shortName": "GetSpaceNotificationSetting", - "fullName": "google.chat.v1.ChatService.GetSpaceNotificationSetting", - "service": { - "shortName": "ChatService", - "fullName": "google.chat.v1.ChatService" - } - } - } - }, - { - "regionTag": "chat_v1_generated_ChatService_UpdateSpaceNotificationSetting_async", - "title": "ChatService updateSpaceNotificationSetting Sample", - "origin": "API_DEFINITION", - "description": " Updates the space notification setting. For an example, see [Update the caller's space notification setting](https://developers.google.com/workspace/chat/update-space-notification-setting). Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with the [authorization scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - `https://www.googleapis.com/auth/chat.users.spacesettings`", - "canonical": true, - "file": "chat_service.update_space_notification_setting.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSpaceNotificationSetting", - "fullName": "google.chat.v1.ChatService.UpdateSpaceNotificationSetting", - "async": true, - "parameters": [ - { - "name": "space_notification_setting", - "type": ".google.chat.v1.SpaceNotificationSetting" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.chat.v1.SpaceNotificationSetting", - "client": { - "shortName": "ChatServiceClient", - "fullName": "google.chat.v1.ChatServiceClient" - }, - "method": { - "shortName": "UpdateSpaceNotificationSetting", - "fullName": "google.chat.v1.ChatService.UpdateSpaceNotificationSetting", - "service": { - "shortName": "ChatService", - "fullName": "google.chat.v1.ChatService" - } - } - } - }, - { - "regionTag": "chat_v1_generated_ChatService_CreateSection_async", - "title": "ChatService createSection Sample", - "origin": "API_DEFINITION", - "description": " Creates a section in Google Chat. Sections help users group conversations and customize the list of spaces displayed in Chat navigation panel. Only sections of type `CUSTOM_SECTION` can be created. For details, see [Create and organize sections in Google Chat](https://support.google.com/chat/answer/16059854). Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with the [authorization scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - `https://www.googleapis.com/auth/chat.users.sections`", - "canonical": true, - "file": "chat_service.create_section.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSection", - "fullName": "google.chat.v1.ChatService.CreateSection", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "section", - "type": ".google.chat.v1.Section" - } - ], - "resultType": ".google.chat.v1.Section", - "client": { - "shortName": "ChatServiceClient", - "fullName": "google.chat.v1.ChatServiceClient" - }, - "method": { - "shortName": "CreateSection", - "fullName": "google.chat.v1.ChatService.CreateSection", - "service": { - "shortName": "ChatService", - "fullName": "google.chat.v1.ChatService" - } - } - } - }, - { - "regionTag": "chat_v1_generated_ChatService_DeleteSection_async", - "title": "ChatService deleteSection Sample", - "origin": "API_DEFINITION", - "description": " Deletes a section of type `CUSTOM_SECTION`. If the section contains items, such as spaces, the items are moved to Google Chat's default sections and are not deleted. For details, see [Create and organize sections in Google Chat](https://support.google.com/chat/answer/16059854). Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with the [authorization scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - `https://www.googleapis.com/auth/chat.users.sections`", - "canonical": true, - "file": "chat_service.delete_section.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSection", - "fullName": "google.chat.v1.ChatService.DeleteSection", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ChatServiceClient", - "fullName": "google.chat.v1.ChatServiceClient" - }, - "method": { - "shortName": "DeleteSection", - "fullName": "google.chat.v1.ChatService.DeleteSection", - "service": { - "shortName": "ChatService", - "fullName": "google.chat.v1.ChatService" - } - } - } - }, - { - "regionTag": "chat_v1_generated_ChatService_UpdateSection_async", - "title": "ChatService updateSection Sample", - "origin": "API_DEFINITION", - "description": " Updates a section. Only sections of type `CUSTOM_SECTION` can be updated. For details, see [Create and organize sections in Google Chat](https://support.google.com/chat/answer/16059854). Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with the [authorization scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - `https://www.googleapis.com/auth/chat.users.sections`", - "canonical": true, - "file": "chat_service.update_section.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSection", - "fullName": "google.chat.v1.ChatService.UpdateSection", - "async": true, - "parameters": [ - { - "name": "section", - "type": ".google.chat.v1.Section" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.chat.v1.Section", - "client": { - "shortName": "ChatServiceClient", - "fullName": "google.chat.v1.ChatServiceClient" - }, - "method": { - "shortName": "UpdateSection", - "fullName": "google.chat.v1.ChatService.UpdateSection", - "service": { - "shortName": "ChatService", - "fullName": "google.chat.v1.ChatService" - } - } - } - }, - { - "regionTag": "chat_v1_generated_ChatService_ListSections_async", - "title": "ChatService listSections Sample", - "origin": "API_DEFINITION", - "description": " Lists sections available to the Chat user. Sections help users group their conversations and customize the list of spaces displayed in Chat navigation panel. For details, see [Create and organize sections in Google Chat](https://support.google.com/chat/answer/16059854). Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with the [authorization scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - `https://www.googleapis.com/auth/chat.users.sections` - `https://www.googleapis.com/auth/chat.users.sections.readonly`", - "canonical": true, - "file": "chat_service.list_sections.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSections", - "fullName": "google.chat.v1.ChatService.ListSections", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.chat.v1.ListSectionsResponse", - "client": { - "shortName": "ChatServiceClient", - "fullName": "google.chat.v1.ChatServiceClient" - }, - "method": { - "shortName": "ListSections", - "fullName": "google.chat.v1.ChatService.ListSections", - "service": { - "shortName": "ChatService", - "fullName": "google.chat.v1.ChatService" - } - } - } - }, - { - "regionTag": "chat_v1_generated_ChatService_PositionSection_async", - "title": "ChatService positionSection Sample", - "origin": "API_DEFINITION", - "description": " Changes the sort order of a section. For details, see [Create and organize sections in Google Chat](https://support.google.com/chat/answer/16059854). Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with the [authorization scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - `https://www.googleapis.com/auth/chat.users.sections`", - "canonical": true, - "file": "chat_service.position_section.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PositionSection", - "fullName": "google.chat.v1.ChatService.PositionSection", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "sort_order", - "type": "TYPE_INT32" - }, - { - "name": "relative_position", - "type": ".google.chat.v1.PositionSectionRequest.Position" - } - ], - "resultType": ".google.chat.v1.PositionSectionResponse", - "client": { - "shortName": "ChatServiceClient", - "fullName": "google.chat.v1.ChatServiceClient" - }, - "method": { - "shortName": "PositionSection", - "fullName": "google.chat.v1.ChatService.PositionSection", - "service": { - "shortName": "ChatService", - "fullName": "google.chat.v1.ChatService" - } - } - } - }, - { - "regionTag": "chat_v1_generated_ChatService_ListSectionItems_async", - "title": "ChatService listSectionItems Sample", - "origin": "API_DEFINITION", - "description": " Lists items in a section. Only spaces can be section items. For details, see [Create and organize sections in Google Chat](https://support.google.com/chat/answer/16059854). Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with the [authorization scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - `https://www.googleapis.com/auth/chat.users.sections` - `https://www.googleapis.com/auth/chat.users.sections.readonly`", - "canonical": true, - "file": "chat_service.list_section_items.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSectionItems", - "fullName": "google.chat.v1.ChatService.ListSectionItems", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.chat.v1.ListSectionItemsResponse", - "client": { - "shortName": "ChatServiceClient", - "fullName": "google.chat.v1.ChatServiceClient" - }, - "method": { - "shortName": "ListSectionItems", - "fullName": "google.chat.v1.ChatService.ListSectionItems", - "service": { - "shortName": "ChatService", - "fullName": "google.chat.v1.ChatService" - } - } - } - }, - { - "regionTag": "chat_v1_generated_ChatService_MoveSectionItem_async", - "title": "ChatService moveSectionItem Sample", - "origin": "API_DEFINITION", - "description": " Moves an item from one section to another. For example, if a section contains spaces, this method can be used to move a space to a different section. For details, see [Create and organize sections in Google Chat](https://support.google.com/chat/answer/16059854). Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with the [authorization scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): - `https://www.googleapis.com/auth/chat.users.sections`", - "canonical": true, - "file": "chat_service.move_section_item.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "MoveSectionItem", - "fullName": "google.chat.v1.ChatService.MoveSectionItem", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "target_section", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.chat.v1.MoveSectionItemResponse", - "client": { - "shortName": "ChatServiceClient", - "fullName": "google.chat.v1.ChatServiceClient" - }, - "method": { - "shortName": "MoveSectionItem", - "fullName": "google.chat.v1.ChatService.MoveSectionItem", - "service": { - "shortName": "ChatService", - "fullName": "google.chat.v1.ChatService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-accessapproval/samples/generated/v1/snippet_metadata_google.cloud.accessapproval.v1.json b/packages/google-cloud-accessapproval/samples/generated/v1/snippet_metadata_google.cloud.accessapproval.v1.json deleted file mode 100644 index 674b496765a8..000000000000 --- a/packages/google-cloud-accessapproval/samples/generated/v1/snippet_metadata_google.cloud.accessapproval.v1.json +++ /dev/null @@ -1,395 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-accessapproval", - "version": "4.2.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.accessapproval.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "accessapproval_v1_generated_AccessApproval_ListApprovalRequests_async", - "title": "AccessApproval listApprovalRequests Sample", - "origin": "API_DEFINITION", - "description": " Lists approval requests associated with a project, folder, or organization. Approval requests can be filtered by state (pending, active, dismissed). The order is reverse chronological.", - "canonical": true, - "file": "access_approval.list_approval_requests.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListApprovalRequests", - "fullName": "google.cloud.accessapproval.v1.AccessApproval.ListApprovalRequests", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.accessapproval.v1.ListApprovalRequestsResponse", - "client": { - "shortName": "AccessApprovalClient", - "fullName": "google.cloud.accessapproval.v1.AccessApprovalClient" - }, - "method": { - "shortName": "ListApprovalRequests", - "fullName": "google.cloud.accessapproval.v1.AccessApproval.ListApprovalRequests", - "service": { - "shortName": "AccessApproval", - "fullName": "google.cloud.accessapproval.v1.AccessApproval" - } - } - } - }, - { - "regionTag": "accessapproval_v1_generated_AccessApproval_GetApprovalRequest_async", - "title": "AccessApproval getApprovalRequest Sample", - "origin": "API_DEFINITION", - "description": " Gets an approval request. Returns NOT_FOUND if the request does not exist.", - "canonical": true, - "file": "access_approval.get_approval_request.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetApprovalRequest", - "fullName": "google.cloud.accessapproval.v1.AccessApproval.GetApprovalRequest", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.accessapproval.v1.ApprovalRequest", - "client": { - "shortName": "AccessApprovalClient", - "fullName": "google.cloud.accessapproval.v1.AccessApprovalClient" - }, - "method": { - "shortName": "GetApprovalRequest", - "fullName": "google.cloud.accessapproval.v1.AccessApproval.GetApprovalRequest", - "service": { - "shortName": "AccessApproval", - "fullName": "google.cloud.accessapproval.v1.AccessApproval" - } - } - } - }, - { - "regionTag": "accessapproval_v1_generated_AccessApproval_ApproveApprovalRequest_async", - "title": "AccessApproval approveApprovalRequest Sample", - "origin": "API_DEFINITION", - "description": " Approves a request and returns the updated ApprovalRequest. Returns NOT_FOUND if the request does not exist. Returns FAILED_PRECONDITION if the request exists but is not in a pending state.", - "canonical": true, - "file": "access_approval.approve_approval_request.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ApproveApprovalRequest", - "fullName": "google.cloud.accessapproval.v1.AccessApproval.ApproveApprovalRequest", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "expire_time", - "type": ".google.protobuf.Timestamp" - } - ], - "resultType": ".google.cloud.accessapproval.v1.ApprovalRequest", - "client": { - "shortName": "AccessApprovalClient", - "fullName": "google.cloud.accessapproval.v1.AccessApprovalClient" - }, - "method": { - "shortName": "ApproveApprovalRequest", - "fullName": "google.cloud.accessapproval.v1.AccessApproval.ApproveApprovalRequest", - "service": { - "shortName": "AccessApproval", - "fullName": "google.cloud.accessapproval.v1.AccessApproval" - } - } - } - }, - { - "regionTag": "accessapproval_v1_generated_AccessApproval_DismissApprovalRequest_async", - "title": "AccessApproval dismissApprovalRequest Sample", - "origin": "API_DEFINITION", - "description": " Dismisses a request. Returns the updated ApprovalRequest. NOTE: This does not deny access to the resource if another request has been made and approved. It is equivalent in effect to ignoring the request altogether. Returns NOT_FOUND if the request does not exist. Returns FAILED_PRECONDITION if the request exists but is not in a pending state.", - "canonical": true, - "file": "access_approval.dismiss_approval_request.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 52, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DismissApprovalRequest", - "fullName": "google.cloud.accessapproval.v1.AccessApproval.DismissApprovalRequest", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.accessapproval.v1.ApprovalRequest", - "client": { - "shortName": "AccessApprovalClient", - "fullName": "google.cloud.accessapproval.v1.AccessApprovalClient" - }, - "method": { - "shortName": "DismissApprovalRequest", - "fullName": "google.cloud.accessapproval.v1.AccessApproval.DismissApprovalRequest", - "service": { - "shortName": "AccessApproval", - "fullName": "google.cloud.accessapproval.v1.AccessApproval" - } - } - } - }, - { - "regionTag": "accessapproval_v1_generated_AccessApproval_InvalidateApprovalRequest_async", - "title": "AccessApproval invalidateApprovalRequest Sample", - "origin": "API_DEFINITION", - "description": " Invalidates an existing ApprovalRequest. Returns the updated ApprovalRequest. NOTE: This does not deny access to the resource if another request has been made and approved. It only invalidates a single approval. Returns FAILED_PRECONDITION if the request exists but is not in an approved state.", - "canonical": true, - "file": "access_approval.invalidate_approval_request.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 52, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "InvalidateApprovalRequest", - "fullName": "google.cloud.accessapproval.v1.AccessApproval.InvalidateApprovalRequest", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.accessapproval.v1.ApprovalRequest", - "client": { - "shortName": "AccessApprovalClient", - "fullName": "google.cloud.accessapproval.v1.AccessApprovalClient" - }, - "method": { - "shortName": "InvalidateApprovalRequest", - "fullName": "google.cloud.accessapproval.v1.AccessApproval.InvalidateApprovalRequest", - "service": { - "shortName": "AccessApproval", - "fullName": "google.cloud.accessapproval.v1.AccessApproval" - } - } - } - }, - { - "regionTag": "accessapproval_v1_generated_AccessApproval_GetAccessApprovalSettings_async", - "title": "AccessApproval getAccessApprovalSettings Sample", - "origin": "API_DEFINITION", - "description": " Gets the settings associated with a project, folder, or organization.", - "canonical": true, - "file": "access_approval.get_access_approval_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAccessApprovalSettings", - "fullName": "google.cloud.accessapproval.v1.AccessApproval.GetAccessApprovalSettings", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.accessapproval.v1.AccessApprovalSettings", - "client": { - "shortName": "AccessApprovalClient", - "fullName": "google.cloud.accessapproval.v1.AccessApprovalClient" - }, - "method": { - "shortName": "GetAccessApprovalSettings", - "fullName": "google.cloud.accessapproval.v1.AccessApproval.GetAccessApprovalSettings", - "service": { - "shortName": "AccessApproval", - "fullName": "google.cloud.accessapproval.v1.AccessApproval" - } - } - } - }, - { - "regionTag": "accessapproval_v1_generated_AccessApproval_UpdateAccessApprovalSettings_async", - "title": "AccessApproval updateAccessApprovalSettings Sample", - "origin": "API_DEFINITION", - "description": " Updates the settings associated with a project, folder, or organization. Settings to update are determined by the value of field_mask.", - "canonical": true, - "file": "access_approval.update_access_approval_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAccessApprovalSettings", - "fullName": "google.cloud.accessapproval.v1.AccessApproval.UpdateAccessApprovalSettings", - "async": true, - "parameters": [ - { - "name": "settings", - "type": ".google.cloud.accessapproval.v1.AccessApprovalSettings" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.accessapproval.v1.AccessApprovalSettings", - "client": { - "shortName": "AccessApprovalClient", - "fullName": "google.cloud.accessapproval.v1.AccessApprovalClient" - }, - "method": { - "shortName": "UpdateAccessApprovalSettings", - "fullName": "google.cloud.accessapproval.v1.AccessApproval.UpdateAccessApprovalSettings", - "service": { - "shortName": "AccessApproval", - "fullName": "google.cloud.accessapproval.v1.AccessApproval" - } - } - } - }, - { - "regionTag": "accessapproval_v1_generated_AccessApproval_DeleteAccessApprovalSettings_async", - "title": "AccessApproval deleteAccessApprovalSettings Sample", - "origin": "API_DEFINITION", - "description": " Deletes the settings associated with a project, folder, or organization. This will have the effect of disabling Access Approval for the project, folder, or organization, but only if all ancestors also have Access Approval disabled. If Access Approval is enabled at a higher level of the hierarchy, then Access Approval will still be enabled at this level as the settings are inherited.", - "canonical": true, - "file": "access_approval.delete_access_approval_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 52, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAccessApprovalSettings", - "fullName": "google.cloud.accessapproval.v1.AccessApproval.DeleteAccessApprovalSettings", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AccessApprovalClient", - "fullName": "google.cloud.accessapproval.v1.AccessApprovalClient" - }, - "method": { - "shortName": "DeleteAccessApprovalSettings", - "fullName": "google.cloud.accessapproval.v1.AccessApproval.DeleteAccessApprovalSettings", - "service": { - "shortName": "AccessApproval", - "fullName": "google.cloud.accessapproval.v1.AccessApproval" - } - } - } - }, - { - "regionTag": "accessapproval_v1_generated_AccessApproval_GetAccessApprovalServiceAccount_async", - "title": "AccessApproval getAccessApprovalServiceAccount Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the service account that is used by Access Approval to access KMS keys for signing approved approval requests.", - "canonical": true, - "file": "access_approval.get_access_approval_service_account.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 52, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAccessApprovalServiceAccount", - "fullName": "google.cloud.accessapproval.v1.AccessApproval.GetAccessApprovalServiceAccount", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.accessapproval.v1.AccessApprovalServiceAccount", - "client": { - "shortName": "AccessApprovalClient", - "fullName": "google.cloud.accessapproval.v1.AccessApprovalClient" - }, - "method": { - "shortName": "GetAccessApprovalServiceAccount", - "fullName": "google.cloud.accessapproval.v1.AccessApproval.GetAccessApprovalServiceAccount", - "service": { - "shortName": "AccessApproval", - "fullName": "google.cloud.accessapproval.v1.AccessApproval" - } - } - } - } - ] -} diff --git a/packages/google-cloud-advisorynotifications/samples/generated/v1/snippet_metadata_google.cloud.advisorynotifications.v1.json b/packages/google-cloud-advisorynotifications/samples/generated/v1/snippet_metadata_google.cloud.advisorynotifications.v1.json deleted file mode 100644 index 1bc519738208..000000000000 --- a/packages/google-cloud-advisorynotifications/samples/generated/v1/snippet_metadata_google.cloud.advisorynotifications.v1.json +++ /dev/null @@ -1,195 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-advisorynotifications", - "version": "2.2.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.advisorynotifications.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "advisorynotifications_v1_generated_AdvisoryNotificationsService_ListNotifications_async", - "title": "AdvisoryNotificationsService listNotifications Sample", - "origin": "API_DEFINITION", - "description": " Lists notifications under a given parent.", - "canonical": true, - "file": "advisory_notifications_service.list_notifications.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListNotifications", - "fullName": "google.cloud.advisorynotifications.v1.AdvisoryNotificationsService.ListNotifications", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.advisorynotifications.v1.NotificationView" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.advisorynotifications.v1.ListNotificationsResponse", - "client": { - "shortName": "AdvisoryNotificationsServiceClient", - "fullName": "google.cloud.advisorynotifications.v1.AdvisoryNotificationsServiceClient" - }, - "method": { - "shortName": "ListNotifications", - "fullName": "google.cloud.advisorynotifications.v1.AdvisoryNotificationsService.ListNotifications", - "service": { - "shortName": "AdvisoryNotificationsService", - "fullName": "google.cloud.advisorynotifications.v1.AdvisoryNotificationsService" - } - } - } - }, - { - "regionTag": "advisorynotifications_v1_generated_AdvisoryNotificationsService_GetNotification_async", - "title": "AdvisoryNotificationsService getNotification Sample", - "origin": "API_DEFINITION", - "description": " Gets a notification.", - "canonical": true, - "file": "advisory_notifications_service.get_notification.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetNotification", - "fullName": "google.cloud.advisorynotifications.v1.AdvisoryNotificationsService.GetNotification", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.advisorynotifications.v1.Notification", - "client": { - "shortName": "AdvisoryNotificationsServiceClient", - "fullName": "google.cloud.advisorynotifications.v1.AdvisoryNotificationsServiceClient" - }, - "method": { - "shortName": "GetNotification", - "fullName": "google.cloud.advisorynotifications.v1.AdvisoryNotificationsService.GetNotification", - "service": { - "shortName": "AdvisoryNotificationsService", - "fullName": "google.cloud.advisorynotifications.v1.AdvisoryNotificationsService" - } - } - } - }, - { - "regionTag": "advisorynotifications_v1_generated_AdvisoryNotificationsService_GetSettings_async", - "title": "AdvisoryNotificationsService getSettings Sample", - "origin": "API_DEFINITION", - "description": " Get notification settings.", - "canonical": true, - "file": "advisory_notifications_service.get_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSettings", - "fullName": "google.cloud.advisorynotifications.v1.AdvisoryNotificationsService.GetSettings", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.advisorynotifications.v1.Settings", - "client": { - "shortName": "AdvisoryNotificationsServiceClient", - "fullName": "google.cloud.advisorynotifications.v1.AdvisoryNotificationsServiceClient" - }, - "method": { - "shortName": "GetSettings", - "fullName": "google.cloud.advisorynotifications.v1.AdvisoryNotificationsService.GetSettings", - "service": { - "shortName": "AdvisoryNotificationsService", - "fullName": "google.cloud.advisorynotifications.v1.AdvisoryNotificationsService" - } - } - } - }, - { - "regionTag": "advisorynotifications_v1_generated_AdvisoryNotificationsService_UpdateSettings_async", - "title": "AdvisoryNotificationsService updateSettings Sample", - "origin": "API_DEFINITION", - "description": " Update notification settings.", - "canonical": true, - "file": "advisory_notifications_service.update_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSettings", - "fullName": "google.cloud.advisorynotifications.v1.AdvisoryNotificationsService.UpdateSettings", - "async": true, - "parameters": [ - { - "name": "settings", - "type": ".google.cloud.advisorynotifications.v1.Settings" - } - ], - "resultType": ".google.cloud.advisorynotifications.v1.Settings", - "client": { - "shortName": "AdvisoryNotificationsServiceClient", - "fullName": "google.cloud.advisorynotifications.v1.AdvisoryNotificationsServiceClient" - }, - "method": { - "shortName": "UpdateSettings", - "fullName": "google.cloud.advisorynotifications.v1.AdvisoryNotificationsService.UpdateSettings", - "service": { - "shortName": "AdvisoryNotificationsService", - "fullName": "google.cloud.advisorynotifications.v1.AdvisoryNotificationsService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/snippet_metadata_google.cloud.aiplatform.v1.json b/packages/google-cloud-aiplatform/samples/generated/v1/snippet_metadata_google.cloud.aiplatform.v1.json deleted file mode 100644 index 7f045e3fd69f..000000000000 --- a/packages/google-cloud-aiplatform/samples/generated/v1/snippet_metadata_google.cloud.aiplatform.v1.json +++ /dev/null @@ -1,16171 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-aiplatform", - "version": "6.6.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.aiplatform.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "aiplatform_v1_generated_DataFoundryService_GenerateSyntheticData_async", - "title": "DataFoundryService generateSyntheticData Sample", - "origin": "API_DEFINITION", - "description": " Generates synthetic data based on the provided configuration.", - "canonical": true, - "file": "data_foundry_service.generate_synthetic_data.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateSyntheticData", - "fullName": "google.cloud.aiplatform.v1.DataFoundryService.GenerateSyntheticData", - "async": true, - "parameters": [ - { - "name": "task_description", - "type": ".google.cloud.aiplatform.v1.TaskDescriptionStrategy" - }, - { - "name": "location", - "type": "TYPE_STRING" - }, - { - "name": "count", - "type": "TYPE_INT32" - }, - { - "name": "output_field_specs", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "examples", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.aiplatform.v1.GenerateSyntheticDataResponse", - "client": { - "shortName": "DataFoundryServiceClient", - "fullName": "google.cloud.aiplatform.v1.DataFoundryServiceClient" - }, - "method": { - "shortName": "GenerateSyntheticData", - "fullName": "google.cloud.aiplatform.v1.DataFoundryService.GenerateSyntheticData", - "service": { - "shortName": "DataFoundryService", - "fullName": "google.cloud.aiplatform.v1.DataFoundryService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_DatasetService_CreateDataset_async", - "title": "DataFoundryService createDataset Sample", - "origin": "API_DEFINITION", - "description": " Creates a Dataset.", - "canonical": true, - "file": "dataset_service.create_dataset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDataset", - "fullName": "google.cloud.aiplatform.v1.DatasetService.CreateDataset", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "dataset", - "type": ".google.cloud.aiplatform.v1.Dataset" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DatasetServiceClient", - "fullName": "google.cloud.aiplatform.v1.DatasetServiceClient" - }, - "method": { - "shortName": "CreateDataset", - "fullName": "google.cloud.aiplatform.v1.DatasetService.CreateDataset", - "service": { - "shortName": "DatasetService", - "fullName": "google.cloud.aiplatform.v1.DatasetService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_DatasetService_GetDataset_async", - "title": "DataFoundryService getDataset Sample", - "origin": "API_DEFINITION", - "description": " Gets a Dataset.", - "canonical": true, - "file": "dataset_service.get_dataset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDataset", - "fullName": "google.cloud.aiplatform.v1.DatasetService.GetDataset", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1.Dataset", - "client": { - "shortName": "DatasetServiceClient", - "fullName": "google.cloud.aiplatform.v1.DatasetServiceClient" - }, - "method": { - "shortName": "GetDataset", - "fullName": "google.cloud.aiplatform.v1.DatasetService.GetDataset", - "service": { - "shortName": "DatasetService", - "fullName": "google.cloud.aiplatform.v1.DatasetService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_DatasetService_UpdateDataset_async", - "title": "DataFoundryService updateDataset Sample", - "origin": "API_DEFINITION", - "description": " Updates a Dataset.", - "canonical": true, - "file": "dataset_service.update_dataset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDataset", - "fullName": "google.cloud.aiplatform.v1.DatasetService.UpdateDataset", - "async": true, - "parameters": [ - { - "name": "dataset", - "type": ".google.cloud.aiplatform.v1.Dataset" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1.Dataset", - "client": { - "shortName": "DatasetServiceClient", - "fullName": "google.cloud.aiplatform.v1.DatasetServiceClient" - }, - "method": { - "shortName": "UpdateDataset", - "fullName": "google.cloud.aiplatform.v1.DatasetService.UpdateDataset", - "service": { - "shortName": "DatasetService", - "fullName": "google.cloud.aiplatform.v1.DatasetService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_DatasetService_ListDatasets_async", - "title": "DataFoundryService listDatasets Sample", - "origin": "API_DEFINITION", - "description": " Lists Datasets in a Location.", - "canonical": true, - "file": "dataset_service.list_datasets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 91, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDatasets", - "fullName": "google.cloud.aiplatform.v1.DatasetService.ListDatasets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ListDatasetsResponse", - "client": { - "shortName": "DatasetServiceClient", - "fullName": "google.cloud.aiplatform.v1.DatasetServiceClient" - }, - "method": { - "shortName": "ListDatasets", - "fullName": "google.cloud.aiplatform.v1.DatasetService.ListDatasets", - "service": { - "shortName": "DatasetService", - "fullName": "google.cloud.aiplatform.v1.DatasetService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_DatasetService_DeleteDataset_async", - "title": "DataFoundryService deleteDataset Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Dataset.", - "canonical": true, - "file": "dataset_service.delete_dataset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDataset", - "fullName": "google.cloud.aiplatform.v1.DatasetService.DeleteDataset", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DatasetServiceClient", - "fullName": "google.cloud.aiplatform.v1.DatasetServiceClient" - }, - "method": { - "shortName": "DeleteDataset", - "fullName": "google.cloud.aiplatform.v1.DatasetService.DeleteDataset", - "service": { - "shortName": "DatasetService", - "fullName": "google.cloud.aiplatform.v1.DatasetService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_DatasetService_ImportData_async", - "title": "DataFoundryService importData Sample", - "origin": "API_DEFINITION", - "description": " Imports data into a Dataset.", - "canonical": true, - "file": "dataset_service.import_data.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportData", - "fullName": "google.cloud.aiplatform.v1.DatasetService.ImportData", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "import_configs", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DatasetServiceClient", - "fullName": "google.cloud.aiplatform.v1.DatasetServiceClient" - }, - "method": { - "shortName": "ImportData", - "fullName": "google.cloud.aiplatform.v1.DatasetService.ImportData", - "service": { - "shortName": "DatasetService", - "fullName": "google.cloud.aiplatform.v1.DatasetService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_DatasetService_ExportData_async", - "title": "DataFoundryService exportData Sample", - "origin": "API_DEFINITION", - "description": " Exports data from a Dataset.", - "canonical": true, - "file": "dataset_service.export_data.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportData", - "fullName": "google.cloud.aiplatform.v1.DatasetService.ExportData", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "export_config", - "type": ".google.cloud.aiplatform.v1.ExportDataConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DatasetServiceClient", - "fullName": "google.cloud.aiplatform.v1.DatasetServiceClient" - }, - "method": { - "shortName": "ExportData", - "fullName": "google.cloud.aiplatform.v1.DatasetService.ExportData", - "service": { - "shortName": "DatasetService", - "fullName": "google.cloud.aiplatform.v1.DatasetService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_DatasetService_CreateDatasetVersion_async", - "title": "DataFoundryService createDatasetVersion Sample", - "origin": "API_DEFINITION", - "description": " Create a version from a Dataset.", - "canonical": true, - "file": "dataset_service.create_dataset_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDatasetVersion", - "fullName": "google.cloud.aiplatform.v1.DatasetService.CreateDatasetVersion", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "dataset_version", - "type": ".google.cloud.aiplatform.v1.DatasetVersion" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DatasetServiceClient", - "fullName": "google.cloud.aiplatform.v1.DatasetServiceClient" - }, - "method": { - "shortName": "CreateDatasetVersion", - "fullName": "google.cloud.aiplatform.v1.DatasetService.CreateDatasetVersion", - "service": { - "shortName": "DatasetService", - "fullName": "google.cloud.aiplatform.v1.DatasetService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_DatasetService_UpdateDatasetVersion_async", - "title": "DataFoundryService updateDatasetVersion Sample", - "origin": "API_DEFINITION", - "description": " Updates a DatasetVersion.", - "canonical": true, - "file": "dataset_service.update_dataset_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDatasetVersion", - "fullName": "google.cloud.aiplatform.v1.DatasetService.UpdateDatasetVersion", - "async": true, - "parameters": [ - { - "name": "dataset_version", - "type": ".google.cloud.aiplatform.v1.DatasetVersion" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1.DatasetVersion", - "client": { - "shortName": "DatasetServiceClient", - "fullName": "google.cloud.aiplatform.v1.DatasetServiceClient" - }, - "method": { - "shortName": "UpdateDatasetVersion", - "fullName": "google.cloud.aiplatform.v1.DatasetService.UpdateDatasetVersion", - "service": { - "shortName": "DatasetService", - "fullName": "google.cloud.aiplatform.v1.DatasetService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_DatasetService_DeleteDatasetVersion_async", - "title": "DataFoundryService deleteDatasetVersion Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Dataset version.", - "canonical": true, - "file": "dataset_service.delete_dataset_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDatasetVersion", - "fullName": "google.cloud.aiplatform.v1.DatasetService.DeleteDatasetVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DatasetServiceClient", - "fullName": "google.cloud.aiplatform.v1.DatasetServiceClient" - }, - "method": { - "shortName": "DeleteDatasetVersion", - "fullName": "google.cloud.aiplatform.v1.DatasetService.DeleteDatasetVersion", - "service": { - "shortName": "DatasetService", - "fullName": "google.cloud.aiplatform.v1.DatasetService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_DatasetService_GetDatasetVersion_async", - "title": "DataFoundryService getDatasetVersion Sample", - "origin": "API_DEFINITION", - "description": " Gets a Dataset version.", - "canonical": true, - "file": "dataset_service.get_dataset_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDatasetVersion", - "fullName": "google.cloud.aiplatform.v1.DatasetService.GetDatasetVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1.DatasetVersion", - "client": { - "shortName": "DatasetServiceClient", - "fullName": "google.cloud.aiplatform.v1.DatasetServiceClient" - }, - "method": { - "shortName": "GetDatasetVersion", - "fullName": "google.cloud.aiplatform.v1.DatasetService.GetDatasetVersion", - "service": { - "shortName": "DatasetService", - "fullName": "google.cloud.aiplatform.v1.DatasetService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_DatasetService_ListDatasetVersions_async", - "title": "DataFoundryService listDatasetVersions Sample", - "origin": "API_DEFINITION", - "description": " Lists DatasetVersions in a Dataset.", - "canonical": true, - "file": "dataset_service.list_dataset_versions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDatasetVersions", - "fullName": "google.cloud.aiplatform.v1.DatasetService.ListDatasetVersions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ListDatasetVersionsResponse", - "client": { - "shortName": "DatasetServiceClient", - "fullName": "google.cloud.aiplatform.v1.DatasetServiceClient" - }, - "method": { - "shortName": "ListDatasetVersions", - "fullName": "google.cloud.aiplatform.v1.DatasetService.ListDatasetVersions", - "service": { - "shortName": "DatasetService", - "fullName": "google.cloud.aiplatform.v1.DatasetService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_DatasetService_RestoreDatasetVersion_async", - "title": "DataFoundryService restoreDatasetVersion Sample", - "origin": "API_DEFINITION", - "description": " Restores a dataset version.", - "canonical": true, - "file": "dataset_service.restore_dataset_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RestoreDatasetVersion", - "fullName": "google.cloud.aiplatform.v1.DatasetService.RestoreDatasetVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DatasetServiceClient", - "fullName": "google.cloud.aiplatform.v1.DatasetServiceClient" - }, - "method": { - "shortName": "RestoreDatasetVersion", - "fullName": "google.cloud.aiplatform.v1.DatasetService.RestoreDatasetVersion", - "service": { - "shortName": "DatasetService", - "fullName": "google.cloud.aiplatform.v1.DatasetService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_DatasetService_ListDataItems_async", - "title": "DataFoundryService listDataItems Sample", - "origin": "API_DEFINITION", - "description": " Lists DataItems in a Dataset.", - "canonical": true, - "file": "dataset_service.list_data_items.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDataItems", - "fullName": "google.cloud.aiplatform.v1.DatasetService.ListDataItems", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ListDataItemsResponse", - "client": { - "shortName": "DatasetServiceClient", - "fullName": "google.cloud.aiplatform.v1.DatasetServiceClient" - }, - "method": { - "shortName": "ListDataItems", - "fullName": "google.cloud.aiplatform.v1.DatasetService.ListDataItems", - "service": { - "shortName": "DatasetService", - "fullName": "google.cloud.aiplatform.v1.DatasetService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_DatasetService_SearchDataItems_async", - "title": "DataFoundryService searchDataItems Sample", - "origin": "API_DEFINITION", - "description": " Searches DataItems in a Dataset.", - "canonical": true, - "file": "dataset_service.search_data_items.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 137, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchDataItems", - "fullName": "google.cloud.aiplatform.v1.DatasetService.SearchDataItems", - "async": true, - "parameters": [ - { - "name": "order_by_data_item", - "type": "TYPE_STRING" - }, - { - "name": "order_by_annotation", - "type": ".google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation" - }, - { - "name": "dataset", - "type": "TYPE_STRING" - }, - { - "name": "saved_query", - "type": "TYPE_STRING" - }, - { - "name": "data_labeling_job", - "type": "TYPE_STRING" - }, - { - "name": "data_item_filter", - "type": "TYPE_STRING" - }, - { - "name": "annotations_filter", - "type": "TYPE_STRING" - }, - { - "name": "annotation_filters", - "type": "TYPE_STRING[]" - }, - { - "name": "field_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "annotations_limit", - "type": "TYPE_INT32" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.SearchDataItemsResponse", - "client": { - "shortName": "DatasetServiceClient", - "fullName": "google.cloud.aiplatform.v1.DatasetServiceClient" - }, - "method": { - "shortName": "SearchDataItems", - "fullName": "google.cloud.aiplatform.v1.DatasetService.SearchDataItems", - "service": { - "shortName": "DatasetService", - "fullName": "google.cloud.aiplatform.v1.DatasetService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_DatasetService_ListSavedQueries_async", - "title": "DataFoundryService listSavedQueries Sample", - "origin": "API_DEFINITION", - "description": " Lists SavedQueries in a Dataset.", - "canonical": true, - "file": "dataset_service.list_saved_queries.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSavedQueries", - "fullName": "google.cloud.aiplatform.v1.DatasetService.ListSavedQueries", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ListSavedQueriesResponse", - "client": { - "shortName": "DatasetServiceClient", - "fullName": "google.cloud.aiplatform.v1.DatasetServiceClient" - }, - "method": { - "shortName": "ListSavedQueries", - "fullName": "google.cloud.aiplatform.v1.DatasetService.ListSavedQueries", - "service": { - "shortName": "DatasetService", - "fullName": "google.cloud.aiplatform.v1.DatasetService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_DatasetService_DeleteSavedQuery_async", - "title": "DataFoundryService deleteSavedQuery Sample", - "origin": "API_DEFINITION", - "description": " Deletes a SavedQuery.", - "canonical": true, - "file": "dataset_service.delete_saved_query.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSavedQuery", - "fullName": "google.cloud.aiplatform.v1.DatasetService.DeleteSavedQuery", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DatasetServiceClient", - "fullName": "google.cloud.aiplatform.v1.DatasetServiceClient" - }, - "method": { - "shortName": "DeleteSavedQuery", - "fullName": "google.cloud.aiplatform.v1.DatasetService.DeleteSavedQuery", - "service": { - "shortName": "DatasetService", - "fullName": "google.cloud.aiplatform.v1.DatasetService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_DatasetService_GetAnnotationSpec_async", - "title": "DataFoundryService getAnnotationSpec Sample", - "origin": "API_DEFINITION", - "description": " Gets an AnnotationSpec.", - "canonical": true, - "file": "dataset_service.get_annotation_spec.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAnnotationSpec", - "fullName": "google.cloud.aiplatform.v1.DatasetService.GetAnnotationSpec", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1.AnnotationSpec", - "client": { - "shortName": "DatasetServiceClient", - "fullName": "google.cloud.aiplatform.v1.DatasetServiceClient" - }, - "method": { - "shortName": "GetAnnotationSpec", - "fullName": "google.cloud.aiplatform.v1.DatasetService.GetAnnotationSpec", - "service": { - "shortName": "DatasetService", - "fullName": "google.cloud.aiplatform.v1.DatasetService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_DatasetService_ListAnnotations_async", - "title": "DataFoundryService listAnnotations Sample", - "origin": "API_DEFINITION", - "description": " Lists Annotations belongs to a dataitem.", - "canonical": true, - "file": "dataset_service.list_annotations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAnnotations", - "fullName": "google.cloud.aiplatform.v1.DatasetService.ListAnnotations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ListAnnotationsResponse", - "client": { - "shortName": "DatasetServiceClient", - "fullName": "google.cloud.aiplatform.v1.DatasetServiceClient" - }, - "method": { - "shortName": "ListAnnotations", - "fullName": "google.cloud.aiplatform.v1.DatasetService.ListAnnotations", - "service": { - "shortName": "DatasetService", - "fullName": "google.cloud.aiplatform.v1.DatasetService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_DeploymentResourcePoolService_CreateDeploymentResourcePool_async", - "title": "DataFoundryService createDeploymentResourcePool Sample", - "origin": "API_DEFINITION", - "description": " Create a DeploymentResourcePool.", - "canonical": true, - "file": "deployment_resource_pool_service.create_deployment_resource_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDeploymentResourcePool", - "fullName": "google.cloud.aiplatform.v1.DeploymentResourcePoolService.CreateDeploymentResourcePool", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "deployment_resource_pool", - "type": ".google.cloud.aiplatform.v1.DeploymentResourcePool" - }, - { - "name": "deployment_resource_pool_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DeploymentResourcePoolServiceClient", - "fullName": "google.cloud.aiplatform.v1.DeploymentResourcePoolServiceClient" - }, - "method": { - "shortName": "CreateDeploymentResourcePool", - "fullName": "google.cloud.aiplatform.v1.DeploymentResourcePoolService.CreateDeploymentResourcePool", - "service": { - "shortName": "DeploymentResourcePoolService", - "fullName": "google.cloud.aiplatform.v1.DeploymentResourcePoolService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_DeploymentResourcePoolService_GetDeploymentResourcePool_async", - "title": "DataFoundryService getDeploymentResourcePool Sample", - "origin": "API_DEFINITION", - "description": " Get a DeploymentResourcePool.", - "canonical": true, - "file": "deployment_resource_pool_service.get_deployment_resource_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDeploymentResourcePool", - "fullName": "google.cloud.aiplatform.v1.DeploymentResourcePoolService.GetDeploymentResourcePool", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.DeploymentResourcePool", - "client": { - "shortName": "DeploymentResourcePoolServiceClient", - "fullName": "google.cloud.aiplatform.v1.DeploymentResourcePoolServiceClient" - }, - "method": { - "shortName": "GetDeploymentResourcePool", - "fullName": "google.cloud.aiplatform.v1.DeploymentResourcePoolService.GetDeploymentResourcePool", - "service": { - "shortName": "DeploymentResourcePoolService", - "fullName": "google.cloud.aiplatform.v1.DeploymentResourcePoolService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_DeploymentResourcePoolService_ListDeploymentResourcePools_async", - "title": "DataFoundryService listDeploymentResourcePools Sample", - "origin": "API_DEFINITION", - "description": " List DeploymentResourcePools in a location.", - "canonical": true, - "file": "deployment_resource_pool_service.list_deployment_resource_pools.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDeploymentResourcePools", - "fullName": "google.cloud.aiplatform.v1.DeploymentResourcePoolService.ListDeploymentResourcePools", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ListDeploymentResourcePoolsResponse", - "client": { - "shortName": "DeploymentResourcePoolServiceClient", - "fullName": "google.cloud.aiplatform.v1.DeploymentResourcePoolServiceClient" - }, - "method": { - "shortName": "ListDeploymentResourcePools", - "fullName": "google.cloud.aiplatform.v1.DeploymentResourcePoolService.ListDeploymentResourcePools", - "service": { - "shortName": "DeploymentResourcePoolService", - "fullName": "google.cloud.aiplatform.v1.DeploymentResourcePoolService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_DeploymentResourcePoolService_UpdateDeploymentResourcePool_async", - "title": "DataFoundryService updateDeploymentResourcePool Sample", - "origin": "API_DEFINITION", - "description": " Update a DeploymentResourcePool.", - "canonical": true, - "file": "deployment_resource_pool_service.update_deployment_resource_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDeploymentResourcePool", - "fullName": "google.cloud.aiplatform.v1.DeploymentResourcePoolService.UpdateDeploymentResourcePool", - "async": true, - "parameters": [ - { - "name": "deployment_resource_pool", - "type": ".google.cloud.aiplatform.v1.DeploymentResourcePool" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DeploymentResourcePoolServiceClient", - "fullName": "google.cloud.aiplatform.v1.DeploymentResourcePoolServiceClient" - }, - "method": { - "shortName": "UpdateDeploymentResourcePool", - "fullName": "google.cloud.aiplatform.v1.DeploymentResourcePoolService.UpdateDeploymentResourcePool", - "service": { - "shortName": "DeploymentResourcePoolService", - "fullName": "google.cloud.aiplatform.v1.DeploymentResourcePoolService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_DeploymentResourcePoolService_DeleteDeploymentResourcePool_async", - "title": "DataFoundryService deleteDeploymentResourcePool Sample", - "origin": "API_DEFINITION", - "description": " Delete a DeploymentResourcePool.", - "canonical": true, - "file": "deployment_resource_pool_service.delete_deployment_resource_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDeploymentResourcePool", - "fullName": "google.cloud.aiplatform.v1.DeploymentResourcePoolService.DeleteDeploymentResourcePool", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DeploymentResourcePoolServiceClient", - "fullName": "google.cloud.aiplatform.v1.DeploymentResourcePoolServiceClient" - }, - "method": { - "shortName": "DeleteDeploymentResourcePool", - "fullName": "google.cloud.aiplatform.v1.DeploymentResourcePoolService.DeleteDeploymentResourcePool", - "service": { - "shortName": "DeploymentResourcePoolService", - "fullName": "google.cloud.aiplatform.v1.DeploymentResourcePoolService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_DeploymentResourcePoolService_QueryDeployedModels_async", - "title": "DataFoundryService queryDeployedModels Sample", - "origin": "API_DEFINITION", - "description": " List DeployedModels that have been deployed on this DeploymentResourcePool.", - "canonical": true, - "file": "deployment_resource_pool_service.query_deployed_models.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryDeployedModels", - "fullName": "google.cloud.aiplatform.v1.DeploymentResourcePoolService.QueryDeployedModels", - "async": true, - "parameters": [ - { - "name": "deployment_resource_pool", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.QueryDeployedModelsResponse", - "client": { - "shortName": "DeploymentResourcePoolServiceClient", - "fullName": "google.cloud.aiplatform.v1.DeploymentResourcePoolServiceClient" - }, - "method": { - "shortName": "QueryDeployedModels", - "fullName": "google.cloud.aiplatform.v1.DeploymentResourcePoolService.QueryDeployedModels", - "service": { - "shortName": "DeploymentResourcePoolService", - "fullName": "google.cloud.aiplatform.v1.DeploymentResourcePoolService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_EndpointService_CreateEndpoint_async", - "title": "DataFoundryService createEndpoint Sample", - "origin": "API_DEFINITION", - "description": " Creates an Endpoint.", - "canonical": true, - "file": "endpoint_service.create_endpoint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateEndpoint", - "fullName": "google.cloud.aiplatform.v1.EndpointService.CreateEndpoint", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "endpoint", - "type": ".google.cloud.aiplatform.v1.Endpoint" - }, - { - "name": "endpoint_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EndpointServiceClient", - "fullName": "google.cloud.aiplatform.v1.EndpointServiceClient" - }, - "method": { - "shortName": "CreateEndpoint", - "fullName": "google.cloud.aiplatform.v1.EndpointService.CreateEndpoint", - "service": { - "shortName": "EndpointService", - "fullName": "google.cloud.aiplatform.v1.EndpointService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_EndpointService_GetEndpoint_async", - "title": "DataFoundryService getEndpoint Sample", - "origin": "API_DEFINITION", - "description": " Gets an Endpoint.", - "canonical": true, - "file": "endpoint_service.get_endpoint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEndpoint", - "fullName": "google.cloud.aiplatform.v1.EndpointService.GetEndpoint", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.Endpoint", - "client": { - "shortName": "EndpointServiceClient", - "fullName": "google.cloud.aiplatform.v1.EndpointServiceClient" - }, - "method": { - "shortName": "GetEndpoint", - "fullName": "google.cloud.aiplatform.v1.EndpointService.GetEndpoint", - "service": { - "shortName": "EndpointService", - "fullName": "google.cloud.aiplatform.v1.EndpointService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_EndpointService_ListEndpoints_async", - "title": "DataFoundryService listEndpoints Sample", - "origin": "API_DEFINITION", - "description": " Lists Endpoints in a Location.", - "canonical": true, - "file": "endpoint_service.list_endpoints.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 102, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEndpoints", - "fullName": "google.cloud.aiplatform.v1.EndpointService.ListEndpoints", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ListEndpointsResponse", - "client": { - "shortName": "EndpointServiceClient", - "fullName": "google.cloud.aiplatform.v1.EndpointServiceClient" - }, - "method": { - "shortName": "ListEndpoints", - "fullName": "google.cloud.aiplatform.v1.EndpointService.ListEndpoints", - "service": { - "shortName": "EndpointService", - "fullName": "google.cloud.aiplatform.v1.EndpointService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_EndpointService_UpdateEndpoint_async", - "title": "DataFoundryService updateEndpoint Sample", - "origin": "API_DEFINITION", - "description": " Updates an Endpoint.", - "canonical": true, - "file": "endpoint_service.update_endpoint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateEndpoint", - "fullName": "google.cloud.aiplatform.v1.EndpointService.UpdateEndpoint", - "async": true, - "parameters": [ - { - "name": "endpoint", - "type": ".google.cloud.aiplatform.v1.Endpoint" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1.Endpoint", - "client": { - "shortName": "EndpointServiceClient", - "fullName": "google.cloud.aiplatform.v1.EndpointServiceClient" - }, - "method": { - "shortName": "UpdateEndpoint", - "fullName": "google.cloud.aiplatform.v1.EndpointService.UpdateEndpoint", - "service": { - "shortName": "EndpointService", - "fullName": "google.cloud.aiplatform.v1.EndpointService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_EndpointService_UpdateEndpointLongRunning_async", - "title": "DataFoundryService updateEndpointLongRunning Sample", - "origin": "API_DEFINITION", - "description": " Updates an Endpoint with a long running operation.", - "canonical": true, - "file": "endpoint_service.update_endpoint_long_running.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateEndpointLongRunning", - "fullName": "google.cloud.aiplatform.v1.EndpointService.UpdateEndpointLongRunning", - "async": true, - "parameters": [ - { - "name": "endpoint", - "type": ".google.cloud.aiplatform.v1.Endpoint" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EndpointServiceClient", - "fullName": "google.cloud.aiplatform.v1.EndpointServiceClient" - }, - "method": { - "shortName": "UpdateEndpointLongRunning", - "fullName": "google.cloud.aiplatform.v1.EndpointService.UpdateEndpointLongRunning", - "service": { - "shortName": "EndpointService", - "fullName": "google.cloud.aiplatform.v1.EndpointService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_EndpointService_DeleteEndpoint_async", - "title": "DataFoundryService deleteEndpoint Sample", - "origin": "API_DEFINITION", - "description": " Deletes an Endpoint.", - "canonical": true, - "file": "endpoint_service.delete_endpoint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteEndpoint", - "fullName": "google.cloud.aiplatform.v1.EndpointService.DeleteEndpoint", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EndpointServiceClient", - "fullName": "google.cloud.aiplatform.v1.EndpointServiceClient" - }, - "method": { - "shortName": "DeleteEndpoint", - "fullName": "google.cloud.aiplatform.v1.EndpointService.DeleteEndpoint", - "service": { - "shortName": "EndpointService", - "fullName": "google.cloud.aiplatform.v1.EndpointService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_EndpointService_DeployModel_async", - "title": "DataFoundryService deployModel Sample", - "origin": "API_DEFINITION", - "description": " Deploys a Model into this Endpoint, creating a DeployedModel within it.", - "canonical": true, - "file": "endpoint_service.deploy_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeployModel", - "fullName": "google.cloud.aiplatform.v1.EndpointService.DeployModel", - "async": true, - "parameters": [ - { - "name": "endpoint", - "type": "TYPE_STRING" - }, - { - "name": "deployed_model", - "type": ".google.cloud.aiplatform.v1.DeployedModel" - }, - { - "name": "traffic_split", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EndpointServiceClient", - "fullName": "google.cloud.aiplatform.v1.EndpointServiceClient" - }, - "method": { - "shortName": "DeployModel", - "fullName": "google.cloud.aiplatform.v1.EndpointService.DeployModel", - "service": { - "shortName": "EndpointService", - "fullName": "google.cloud.aiplatform.v1.EndpointService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_EndpointService_UndeployModel_async", - "title": "DataFoundryService undeployModel Sample", - "origin": "API_DEFINITION", - "description": " Undeploys a Model from an Endpoint, removing a DeployedModel from it, and freeing all resources it's using.", - "canonical": true, - "file": "endpoint_service.undeploy_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UndeployModel", - "fullName": "google.cloud.aiplatform.v1.EndpointService.UndeployModel", - "async": true, - "parameters": [ - { - "name": "endpoint", - "type": "TYPE_STRING" - }, - { - "name": "deployed_model_id", - "type": "TYPE_STRING" - }, - { - "name": "traffic_split", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EndpointServiceClient", - "fullName": "google.cloud.aiplatform.v1.EndpointServiceClient" - }, - "method": { - "shortName": "UndeployModel", - "fullName": "google.cloud.aiplatform.v1.EndpointService.UndeployModel", - "service": { - "shortName": "EndpointService", - "fullName": "google.cloud.aiplatform.v1.EndpointService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_EndpointService_MutateDeployedModel_async", - "title": "DataFoundryService mutateDeployedModel Sample", - "origin": "API_DEFINITION", - "description": " Updates an existing deployed model. Updatable fields include `min_replica_count`, `max_replica_count`, `required_replica_count`, `autoscaling_metric_specs`, `disable_container_logging` (v1 only), and `enable_container_logging` (v1beta1 only).", - "canonical": true, - "file": "endpoint_service.mutate_deployed_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "MutateDeployedModel", - "fullName": "google.cloud.aiplatform.v1.EndpointService.MutateDeployedModel", - "async": true, - "parameters": [ - { - "name": "endpoint", - "type": "TYPE_STRING" - }, - { - "name": "deployed_model", - "type": ".google.cloud.aiplatform.v1.DeployedModel" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EndpointServiceClient", - "fullName": "google.cloud.aiplatform.v1.EndpointServiceClient" - }, - "method": { - "shortName": "MutateDeployedModel", - "fullName": "google.cloud.aiplatform.v1.EndpointService.MutateDeployedModel", - "service": { - "shortName": "EndpointService", - "fullName": "google.cloud.aiplatform.v1.EndpointService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_EvaluationService_EvaluateInstances_async", - "title": "DataFoundryService evaluateInstances Sample", - "origin": "API_DEFINITION", - "description": " Evaluates instances based on a given metric.", - "canonical": true, - "file": "evaluation_service.evaluate_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 161, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "EvaluateInstances", - "fullName": "google.cloud.aiplatform.v1.EvaluationService.EvaluateInstances", - "async": true, - "parameters": [ - { - "name": "exact_match_input", - "type": ".google.cloud.aiplatform.v1.ExactMatchInput" - }, - { - "name": "bleu_input", - "type": ".google.cloud.aiplatform.v1.BleuInput" - }, - { - "name": "rouge_input", - "type": ".google.cloud.aiplatform.v1.RougeInput" - }, - { - "name": "fluency_input", - "type": ".google.cloud.aiplatform.v1.FluencyInput" - }, - { - "name": "coherence_input", - "type": ".google.cloud.aiplatform.v1.CoherenceInput" - }, - { - "name": "safety_input", - "type": ".google.cloud.aiplatform.v1.SafetyInput" - }, - { - "name": "groundedness_input", - "type": ".google.cloud.aiplatform.v1.GroundednessInput" - }, - { - "name": "fulfillment_input", - "type": ".google.cloud.aiplatform.v1.FulfillmentInput" - }, - { - "name": "summarization_quality_input", - "type": ".google.cloud.aiplatform.v1.SummarizationQualityInput" - }, - { - "name": "pairwise_summarization_quality_input", - "type": ".google.cloud.aiplatform.v1.PairwiseSummarizationQualityInput" - }, - { - "name": "summarization_helpfulness_input", - "type": ".google.cloud.aiplatform.v1.SummarizationHelpfulnessInput" - }, - { - "name": "summarization_verbosity_input", - "type": ".google.cloud.aiplatform.v1.SummarizationVerbosityInput" - }, - { - "name": "question_answering_quality_input", - "type": ".google.cloud.aiplatform.v1.QuestionAnsweringQualityInput" - }, - { - "name": "pairwise_question_answering_quality_input", - "type": ".google.cloud.aiplatform.v1.PairwiseQuestionAnsweringQualityInput" - }, - { - "name": "question_answering_relevance_input", - "type": ".google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInput" - }, - { - "name": "question_answering_helpfulness_input", - "type": ".google.cloud.aiplatform.v1.QuestionAnsweringHelpfulnessInput" - }, - { - "name": "question_answering_correctness_input", - "type": ".google.cloud.aiplatform.v1.QuestionAnsweringCorrectnessInput" - }, - { - "name": "pointwise_metric_input", - "type": ".google.cloud.aiplatform.v1.PointwiseMetricInput" - }, - { - "name": "pairwise_metric_input", - "type": ".google.cloud.aiplatform.v1.PairwiseMetricInput" - }, - { - "name": "tool_call_valid_input", - "type": ".google.cloud.aiplatform.v1.ToolCallValidInput" - }, - { - "name": "tool_name_match_input", - "type": ".google.cloud.aiplatform.v1.ToolNameMatchInput" - }, - { - "name": "tool_parameter_key_match_input", - "type": ".google.cloud.aiplatform.v1.ToolParameterKeyMatchInput" - }, - { - "name": "tool_parameter_kv_match_input", - "type": ".google.cloud.aiplatform.v1.ToolParameterKVMatchInput" - }, - { - "name": "comet_input", - "type": ".google.cloud.aiplatform.v1.CometInput" - }, - { - "name": "metricx_input", - "type": ".google.cloud.aiplatform.v1.MetricxInput" - }, - { - "name": "location", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.EvaluateInstancesResponse", - "client": { - "shortName": "EvaluationServiceClient", - "fullName": "google.cloud.aiplatform.v1.EvaluationServiceClient" - }, - "method": { - "shortName": "EvaluateInstances", - "fullName": "google.cloud.aiplatform.v1.EvaluationService.EvaluateInstances", - "service": { - "shortName": "EvaluationService", - "fullName": "google.cloud.aiplatform.v1.EvaluationService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_FeatureOnlineStoreAdminService_CreateFeatureOnlineStore_async", - "title": "DataFoundryService createFeatureOnlineStore Sample", - "origin": "API_DEFINITION", - "description": " Creates a new FeatureOnlineStore in a given project and location.", - "canonical": true, - "file": "feature_online_store_admin_service.create_feature_online_store.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateFeatureOnlineStore", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.CreateFeatureOnlineStore", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "feature_online_store", - "type": ".google.cloud.aiplatform.v1.FeatureOnlineStore" - }, - { - "name": "feature_online_store_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FeatureOnlineStoreAdminServiceClient", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminServiceClient" - }, - "method": { - "shortName": "CreateFeatureOnlineStore", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.CreateFeatureOnlineStore", - "service": { - "shortName": "FeatureOnlineStoreAdminService", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_FeatureOnlineStoreAdminService_GetFeatureOnlineStore_async", - "title": "DataFoundryService getFeatureOnlineStore Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single FeatureOnlineStore.", - "canonical": true, - "file": "feature_online_store_admin_service.get_feature_online_store.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFeatureOnlineStore", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.GetFeatureOnlineStore", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.FeatureOnlineStore", - "client": { - "shortName": "FeatureOnlineStoreAdminServiceClient", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminServiceClient" - }, - "method": { - "shortName": "GetFeatureOnlineStore", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.GetFeatureOnlineStore", - "service": { - "shortName": "FeatureOnlineStoreAdminService", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_FeatureOnlineStoreAdminService_ListFeatureOnlineStores_async", - "title": "DataFoundryService listFeatureOnlineStores Sample", - "origin": "API_DEFINITION", - "description": " Lists FeatureOnlineStores in a given project and location.", - "canonical": true, - "file": "feature_online_store_admin_service.list_feature_online_stores.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 98, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFeatureOnlineStores", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.ListFeatureOnlineStores", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ListFeatureOnlineStoresResponse", - "client": { - "shortName": "FeatureOnlineStoreAdminServiceClient", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminServiceClient" - }, - "method": { - "shortName": "ListFeatureOnlineStores", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.ListFeatureOnlineStores", - "service": { - "shortName": "FeatureOnlineStoreAdminService", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_FeatureOnlineStoreAdminService_UpdateFeatureOnlineStore_async", - "title": "DataFoundryService updateFeatureOnlineStore Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single FeatureOnlineStore.", - "canonical": true, - "file": "feature_online_store_admin_service.update_feature_online_store.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateFeatureOnlineStore", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.UpdateFeatureOnlineStore", - "async": true, - "parameters": [ - { - "name": "feature_online_store", - "type": ".google.cloud.aiplatform.v1.FeatureOnlineStore" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FeatureOnlineStoreAdminServiceClient", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminServiceClient" - }, - "method": { - "shortName": "UpdateFeatureOnlineStore", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.UpdateFeatureOnlineStore", - "service": { - "shortName": "FeatureOnlineStoreAdminService", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_FeatureOnlineStoreAdminService_DeleteFeatureOnlineStore_async", - "title": "DataFoundryService deleteFeatureOnlineStore Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single FeatureOnlineStore. The FeatureOnlineStore must not contain any FeatureViews.", - "canonical": true, - "file": "feature_online_store_admin_service.delete_feature_online_store.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteFeatureOnlineStore", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.DeleteFeatureOnlineStore", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FeatureOnlineStoreAdminServiceClient", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminServiceClient" - }, - "method": { - "shortName": "DeleteFeatureOnlineStore", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.DeleteFeatureOnlineStore", - "service": { - "shortName": "FeatureOnlineStoreAdminService", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_FeatureOnlineStoreAdminService_CreateFeatureView_async", - "title": "DataFoundryService createFeatureView Sample", - "origin": "API_DEFINITION", - "description": " Creates a new FeatureView in a given FeatureOnlineStore.", - "canonical": true, - "file": "feature_online_store_admin_service.create_feature_view.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateFeatureView", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.CreateFeatureView", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "feature_view", - "type": ".google.cloud.aiplatform.v1.FeatureView" - }, - { - "name": "feature_view_id", - "type": "TYPE_STRING" - }, - { - "name": "run_sync_immediately", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FeatureOnlineStoreAdminServiceClient", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminServiceClient" - }, - "method": { - "shortName": "CreateFeatureView", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.CreateFeatureView", - "service": { - "shortName": "FeatureOnlineStoreAdminService", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_FeatureOnlineStoreAdminService_GetFeatureView_async", - "title": "DataFoundryService getFeatureView Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single FeatureView.", - "canonical": true, - "file": "feature_online_store_admin_service.get_feature_view.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFeatureView", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.GetFeatureView", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.FeatureView", - "client": { - "shortName": "FeatureOnlineStoreAdminServiceClient", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminServiceClient" - }, - "method": { - "shortName": "GetFeatureView", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.GetFeatureView", - "service": { - "shortName": "FeatureOnlineStoreAdminService", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_FeatureOnlineStoreAdminService_ListFeatureViews_async", - "title": "DataFoundryService listFeatureViews Sample", - "origin": "API_DEFINITION", - "description": " Lists FeatureViews in a given FeatureOnlineStore.", - "canonical": true, - "file": "feature_online_store_admin_service.list_feature_views.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 100, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFeatureViews", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.ListFeatureViews", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ListFeatureViewsResponse", - "client": { - "shortName": "FeatureOnlineStoreAdminServiceClient", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminServiceClient" - }, - "method": { - "shortName": "ListFeatureViews", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.ListFeatureViews", - "service": { - "shortName": "FeatureOnlineStoreAdminService", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_FeatureOnlineStoreAdminService_UpdateFeatureView_async", - "title": "DataFoundryService updateFeatureView Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single FeatureView.", - "canonical": true, - "file": "feature_online_store_admin_service.update_feature_view.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateFeatureView", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.UpdateFeatureView", - "async": true, - "parameters": [ - { - "name": "feature_view", - "type": ".google.cloud.aiplatform.v1.FeatureView" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FeatureOnlineStoreAdminServiceClient", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminServiceClient" - }, - "method": { - "shortName": "UpdateFeatureView", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.UpdateFeatureView", - "service": { - "shortName": "FeatureOnlineStoreAdminService", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_FeatureOnlineStoreAdminService_DeleteFeatureView_async", - "title": "DataFoundryService deleteFeatureView Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single FeatureView.", - "canonical": true, - "file": "feature_online_store_admin_service.delete_feature_view.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteFeatureView", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.DeleteFeatureView", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FeatureOnlineStoreAdminServiceClient", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminServiceClient" - }, - "method": { - "shortName": "DeleteFeatureView", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.DeleteFeatureView", - "service": { - "shortName": "FeatureOnlineStoreAdminService", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_FeatureOnlineStoreAdminService_SyncFeatureView_async", - "title": "DataFoundryService syncFeatureView Sample", - "origin": "API_DEFINITION", - "description": " Triggers on-demand sync for the FeatureView.", - "canonical": true, - "file": "feature_online_store_admin_service.sync_feature_view.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SyncFeatureView", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.SyncFeatureView", - "async": true, - "parameters": [ - { - "name": "feature_view", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.SyncFeatureViewResponse", - "client": { - "shortName": "FeatureOnlineStoreAdminServiceClient", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminServiceClient" - }, - "method": { - "shortName": "SyncFeatureView", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.SyncFeatureView", - "service": { - "shortName": "FeatureOnlineStoreAdminService", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_FeatureOnlineStoreAdminService_GetFeatureViewSync_async", - "title": "DataFoundryService getFeatureViewSync Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single FeatureViewSync.", - "canonical": true, - "file": "feature_online_store_admin_service.get_feature_view_sync.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFeatureViewSync", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.GetFeatureViewSync", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.FeatureViewSync", - "client": { - "shortName": "FeatureOnlineStoreAdminServiceClient", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminServiceClient" - }, - "method": { - "shortName": "GetFeatureViewSync", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.GetFeatureViewSync", - "service": { - "shortName": "FeatureOnlineStoreAdminService", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_FeatureOnlineStoreAdminService_ListFeatureViewSyncs_async", - "title": "DataFoundryService listFeatureViewSyncs Sample", - "origin": "API_DEFINITION", - "description": " Lists FeatureViewSyncs in a given FeatureView.", - "canonical": true, - "file": "feature_online_store_admin_service.list_feature_view_syncs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 90, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFeatureViewSyncs", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.ListFeatureViewSyncs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ListFeatureViewSyncsResponse", - "client": { - "shortName": "FeatureOnlineStoreAdminServiceClient", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminServiceClient" - }, - "method": { - "shortName": "ListFeatureViewSyncs", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService.ListFeatureViewSyncs", - "service": { - "shortName": "FeatureOnlineStoreAdminService", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreAdminService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_FeatureOnlineStoreService_FetchFeatureValues_async", - "title": "DataFoundryService fetchFeatureValues Sample", - "origin": "API_DEFINITION", - "description": " Fetch feature values under a FeatureView.", - "canonical": true, - "file": "feature_online_store_service.fetch_feature_values.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchFeatureValues", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreService.FetchFeatureValues", - "async": true, - "parameters": [ - { - "name": "feature_view", - "type": "TYPE_STRING" - }, - { - "name": "data_key", - "type": ".google.cloud.aiplatform.v1.FeatureViewDataKey" - }, - { - "name": "data_format", - "type": ".google.cloud.aiplatform.v1.FeatureViewDataFormat" - } - ], - "resultType": ".google.cloud.aiplatform.v1.FetchFeatureValuesResponse", - "client": { - "shortName": "FeatureOnlineStoreServiceClient", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreServiceClient" - }, - "method": { - "shortName": "FetchFeatureValues", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreService.FetchFeatureValues", - "service": { - "shortName": "FeatureOnlineStoreService", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_FeatureOnlineStoreService_SearchNearestEntities_async", - "title": "DataFoundryService searchNearestEntities Sample", - "origin": "API_DEFINITION", - "description": " Search the nearest entities under a FeatureView. Search only works for indexable feature view; if a feature view isn't indexable, returns Invalid argument response.", - "canonical": true, - "file": "feature_online_store_service.search_nearest_entities.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchNearestEntities", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreService.SearchNearestEntities", - "async": true, - "parameters": [ - { - "name": "feature_view", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": ".google.cloud.aiplatform.v1.NearestNeighborQuery" - }, - { - "name": "return_full_entity", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.aiplatform.v1.SearchNearestEntitiesResponse", - "client": { - "shortName": "FeatureOnlineStoreServiceClient", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreServiceClient" - }, - "method": { - "shortName": "SearchNearestEntities", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreService.SearchNearestEntities", - "service": { - "shortName": "FeatureOnlineStoreService", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_FeatureOnlineStoreService_FeatureViewDirectWrite_async", - "title": "DataFoundryService featureViewDirectWrite Sample", - "origin": "API_DEFINITION", - "description": " Bidirectional streaming RPC to directly write to feature values in a feature view. Requests may not have a one-to-one mapping to responses and responses may be returned out-of-order to reduce latency.", - "canonical": true, - "file": "feature_online_store_service.feature_view_direct_write.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FeatureViewDirectWrite", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreService.FeatureViewDirectWrite", - "async": true, - "parameters": [ - { - "name": "feature_view", - "type": "TYPE_STRING" - }, - { - "name": "data_key_and_feature_values", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.aiplatform.v1.FeatureViewDirectWriteResponse", - "client": { - "shortName": "FeatureOnlineStoreServiceClient", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreServiceClient" - }, - "method": { - "shortName": "FeatureViewDirectWrite", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreService.FeatureViewDirectWrite", - "service": { - "shortName": "FeatureOnlineStoreService", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_FeatureOnlineStoreService_GenerateFetchAccessToken_async", - "title": "DataFoundryService generateFetchAccessToken Sample", - "origin": "API_DEFINITION", - "description": " RPC to generate an access token for the given feature view. FeatureViews under the same FeatureOnlineStore share the same access token.", - "canonical": true, - "file": "feature_online_store_service.generate_fetch_access_token.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateFetchAccessToken", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreService.GenerateFetchAccessToken", - "async": true, - "parameters": [ - { - "name": "feature_view", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.GenerateFetchAccessTokenResponse", - "client": { - "shortName": "FeatureOnlineStoreServiceClient", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreServiceClient" - }, - "method": { - "shortName": "GenerateFetchAccessToken", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreService.GenerateFetchAccessToken", - "service": { - "shortName": "FeatureOnlineStoreService", - "fullName": "google.cloud.aiplatform.v1.FeatureOnlineStoreService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_FeatureRegistryService_CreateFeatureGroup_async", - "title": "DataFoundryService createFeatureGroup Sample", - "origin": "API_DEFINITION", - "description": " Creates a new FeatureGroup in a given project and location.", - "canonical": true, - "file": "feature_registry_service.create_feature_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateFeatureGroup", - "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService.CreateFeatureGroup", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "feature_group", - "type": ".google.cloud.aiplatform.v1.FeatureGroup" - }, - { - "name": "feature_group_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FeatureRegistryServiceClient", - "fullName": "google.cloud.aiplatform.v1.FeatureRegistryServiceClient" - }, - "method": { - "shortName": "CreateFeatureGroup", - "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService.CreateFeatureGroup", - "service": { - "shortName": "FeatureRegistryService", - "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_FeatureRegistryService_GetFeatureGroup_async", - "title": "DataFoundryService getFeatureGroup Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single FeatureGroup.", - "canonical": true, - "file": "feature_registry_service.get_feature_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFeatureGroup", - "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService.GetFeatureGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.FeatureGroup", - "client": { - "shortName": "FeatureRegistryServiceClient", - "fullName": "google.cloud.aiplatform.v1.FeatureRegistryServiceClient" - }, - "method": { - "shortName": "GetFeatureGroup", - "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService.GetFeatureGroup", - "service": { - "shortName": "FeatureRegistryService", - "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_FeatureRegistryService_ListFeatureGroups_async", - "title": "DataFoundryService listFeatureGroups Sample", - "origin": "API_DEFINITION", - "description": " Lists FeatureGroups in a given project and location.", - "canonical": true, - "file": "feature_registry_service.list_feature_groups.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 98, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFeatureGroups", - "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService.ListFeatureGroups", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ListFeatureGroupsResponse", - "client": { - "shortName": "FeatureRegistryServiceClient", - "fullName": "google.cloud.aiplatform.v1.FeatureRegistryServiceClient" - }, - "method": { - "shortName": "ListFeatureGroups", - "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService.ListFeatureGroups", - "service": { - "shortName": "FeatureRegistryService", - "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_FeatureRegistryService_UpdateFeatureGroup_async", - "title": "DataFoundryService updateFeatureGroup Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single FeatureGroup.", - "canonical": true, - "file": "feature_registry_service.update_feature_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateFeatureGroup", - "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService.UpdateFeatureGroup", - "async": true, - "parameters": [ - { - "name": "feature_group", - "type": ".google.cloud.aiplatform.v1.FeatureGroup" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FeatureRegistryServiceClient", - "fullName": "google.cloud.aiplatform.v1.FeatureRegistryServiceClient" - }, - "method": { - "shortName": "UpdateFeatureGroup", - "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService.UpdateFeatureGroup", - "service": { - "shortName": "FeatureRegistryService", - "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_FeatureRegistryService_DeleteFeatureGroup_async", - "title": "DataFoundryService deleteFeatureGroup Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single FeatureGroup.", - "canonical": true, - "file": "feature_registry_service.delete_feature_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteFeatureGroup", - "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService.DeleteFeatureGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FeatureRegistryServiceClient", - "fullName": "google.cloud.aiplatform.v1.FeatureRegistryServiceClient" - }, - "method": { - "shortName": "DeleteFeatureGroup", - "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService.DeleteFeatureGroup", - "service": { - "shortName": "FeatureRegistryService", - "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_FeatureRegistryService_CreateFeature_async", - "title": "DataFoundryService createFeature Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Feature in a given FeatureGroup.", - "canonical": true, - "file": "feature_registry_service.create_feature.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateFeature", - "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService.CreateFeature", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "feature", - "type": ".google.cloud.aiplatform.v1.Feature" - }, - { - "name": "feature_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FeatureRegistryServiceClient", - "fullName": "google.cloud.aiplatform.v1.FeatureRegistryServiceClient" - }, - "method": { - "shortName": "CreateFeature", - "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService.CreateFeature", - "service": { - "shortName": "FeatureRegistryService", - "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_FeatureRegistryService_BatchCreateFeatures_async", - "title": "DataFoundryService batchCreateFeatures Sample", - "origin": "API_DEFINITION", - "description": " Creates a batch of Features in a given FeatureGroup.", - "canonical": true, - "file": "feature_registry_service.batch_create_features.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCreateFeatures", - "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService.BatchCreateFeatures", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FeatureRegistryServiceClient", - "fullName": "google.cloud.aiplatform.v1.FeatureRegistryServiceClient" - }, - "method": { - "shortName": "BatchCreateFeatures", - "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService.BatchCreateFeatures", - "service": { - "shortName": "FeatureRegistryService", - "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_FeatureRegistryService_GetFeature_async", - "title": "DataFoundryService getFeature Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Feature.", - "canonical": true, - "file": "feature_registry_service.get_feature.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFeature", - "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService.GetFeature", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.Feature", - "client": { - "shortName": "FeatureRegistryServiceClient", - "fullName": "google.cloud.aiplatform.v1.FeatureRegistryServiceClient" - }, - "method": { - "shortName": "GetFeature", - "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService.GetFeature", - "service": { - "shortName": "FeatureRegistryService", - "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_FeatureRegistryService_ListFeatures_async", - "title": "DataFoundryService listFeatures Sample", - "origin": "API_DEFINITION", - "description": " Lists Features in a given FeatureGroup.", - "canonical": true, - "file": "feature_registry_service.list_features.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 123, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFeatures", - "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService.ListFeatures", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "latest_stats_count", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ListFeaturesResponse", - "client": { - "shortName": "FeatureRegistryServiceClient", - "fullName": "google.cloud.aiplatform.v1.FeatureRegistryServiceClient" - }, - "method": { - "shortName": "ListFeatures", - "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService.ListFeatures", - "service": { - "shortName": "FeatureRegistryService", - "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_FeatureRegistryService_UpdateFeature_async", - "title": "DataFoundryService updateFeature Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Feature.", - "canonical": true, - "file": "feature_registry_service.update_feature.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateFeature", - "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService.UpdateFeature", - "async": true, - "parameters": [ - { - "name": "feature", - "type": ".google.cloud.aiplatform.v1.Feature" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FeatureRegistryServiceClient", - "fullName": "google.cloud.aiplatform.v1.FeatureRegistryServiceClient" - }, - "method": { - "shortName": "UpdateFeature", - "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService.UpdateFeature", - "service": { - "shortName": "FeatureRegistryService", - "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_FeatureRegistryService_DeleteFeature_async", - "title": "DataFoundryService deleteFeature Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Feature.", - "canonical": true, - "file": "feature_registry_service.delete_feature.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteFeature", - "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService.DeleteFeature", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FeatureRegistryServiceClient", - "fullName": "google.cloud.aiplatform.v1.FeatureRegistryServiceClient" - }, - "method": { - "shortName": "DeleteFeature", - "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService.DeleteFeature", - "service": { - "shortName": "FeatureRegistryService", - "fullName": "google.cloud.aiplatform.v1.FeatureRegistryService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_FeaturestoreOnlineServingService_ReadFeatureValues_async", - "title": "DataFoundryService readFeatureValues Sample", - "origin": "API_DEFINITION", - "description": " Reads Feature values of a specific entity of an EntityType. For reading feature values of multiple entities of an EntityType, please use StreamingReadFeatureValues.", - "canonical": true, - "file": "featurestore_online_serving_service.read_feature_values.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReadFeatureValues", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreOnlineServingService.ReadFeatureValues", - "async": true, - "parameters": [ - { - "name": "entity_type", - "type": "TYPE_STRING" - }, - { - "name": "entity_id", - "type": "TYPE_STRING" - }, - { - "name": "feature_selector", - "type": ".google.cloud.aiplatform.v1.FeatureSelector" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ReadFeatureValuesResponse", - "client": { - "shortName": "FeaturestoreOnlineServingServiceClient", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreOnlineServingServiceClient" - }, - "method": { - "shortName": "ReadFeatureValues", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreOnlineServingService.ReadFeatureValues", - "service": { - "shortName": "FeaturestoreOnlineServingService", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreOnlineServingService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_FeaturestoreOnlineServingService_StreamingReadFeatureValues_async", - "title": "DataFoundryService streamingReadFeatureValues Sample", - "origin": "API_DEFINITION", - "description": " Reads Feature values for multiple entities. Depending on their size, data for different entities may be broken up across multiple responses.", - "canonical": true, - "file": "featurestore_online_serving_service.streaming_read_feature_values.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StreamingReadFeatureValues", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreOnlineServingService.StreamingReadFeatureValues", - "async": true, - "parameters": [ - { - "name": "entity_type", - "type": "TYPE_STRING" - }, - { - "name": "entity_ids", - "type": "TYPE_STRING[]" - }, - { - "name": "feature_selector", - "type": ".google.cloud.aiplatform.v1.FeatureSelector" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ReadFeatureValuesResponse", - "client": { - "shortName": "FeaturestoreOnlineServingServiceClient", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreOnlineServingServiceClient" - }, - "method": { - "shortName": "StreamingReadFeatureValues", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreOnlineServingService.StreamingReadFeatureValues", - "service": { - "shortName": "FeaturestoreOnlineServingService", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreOnlineServingService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_FeaturestoreOnlineServingService_WriteFeatureValues_async", - "title": "DataFoundryService writeFeatureValues Sample", - "origin": "API_DEFINITION", - "description": " Writes Feature values of one or more entities of an EntityType. The Feature values are merged into existing entities if any. The Feature values to be written must have timestamp within the online storage retention.", - "canonical": true, - "file": "featurestore_online_serving_service.write_feature_values.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "WriteFeatureValues", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreOnlineServingService.WriteFeatureValues", - "async": true, - "parameters": [ - { - "name": "entity_type", - "type": "TYPE_STRING" - }, - { - "name": "payloads", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.aiplatform.v1.WriteFeatureValuesResponse", - "client": { - "shortName": "FeaturestoreOnlineServingServiceClient", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreOnlineServingServiceClient" - }, - "method": { - "shortName": "WriteFeatureValues", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreOnlineServingService.WriteFeatureValues", - "service": { - "shortName": "FeaturestoreOnlineServingService", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreOnlineServingService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_FeaturestoreService_CreateFeaturestore_async", - "title": "DataFoundryService createFeaturestore Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Featurestore in a given project and location.", - "canonical": true, - "file": "featurestore_service.create_featurestore.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateFeaturestore", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService.CreateFeaturestore", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "featurestore", - "type": ".google.cloud.aiplatform.v1.Featurestore" - }, - { - "name": "featurestore_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FeaturestoreServiceClient", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreServiceClient" - }, - "method": { - "shortName": "CreateFeaturestore", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService.CreateFeaturestore", - "service": { - "shortName": "FeaturestoreService", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_FeaturestoreService_GetFeaturestore_async", - "title": "DataFoundryService getFeaturestore Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Featurestore.", - "canonical": true, - "file": "featurestore_service.get_featurestore.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFeaturestore", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService.GetFeaturestore", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.Featurestore", - "client": { - "shortName": "FeaturestoreServiceClient", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreServiceClient" - }, - "method": { - "shortName": "GetFeaturestore", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService.GetFeaturestore", - "service": { - "shortName": "FeaturestoreService", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_FeaturestoreService_ListFeaturestores_async", - "title": "DataFoundryService listFeaturestores Sample", - "origin": "API_DEFINITION", - "description": " Lists Featurestores in a given project and location.", - "canonical": true, - "file": "featurestore_service.list_featurestores.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 105, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFeaturestores", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService.ListFeaturestores", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ListFeaturestoresResponse", - "client": { - "shortName": "FeaturestoreServiceClient", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreServiceClient" - }, - "method": { - "shortName": "ListFeaturestores", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService.ListFeaturestores", - "service": { - "shortName": "FeaturestoreService", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_FeaturestoreService_UpdateFeaturestore_async", - "title": "DataFoundryService updateFeaturestore Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Featurestore.", - "canonical": true, - "file": "featurestore_service.update_featurestore.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateFeaturestore", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService.UpdateFeaturestore", - "async": true, - "parameters": [ - { - "name": "featurestore", - "type": ".google.cloud.aiplatform.v1.Featurestore" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FeaturestoreServiceClient", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreServiceClient" - }, - "method": { - "shortName": "UpdateFeaturestore", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService.UpdateFeaturestore", - "service": { - "shortName": "FeaturestoreService", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_FeaturestoreService_DeleteFeaturestore_async", - "title": "DataFoundryService deleteFeaturestore Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Featurestore. The Featurestore must not contain any EntityTypes or `force` must be set to true for the request to succeed.", - "canonical": true, - "file": "featurestore_service.delete_featurestore.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteFeaturestore", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService.DeleteFeaturestore", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FeaturestoreServiceClient", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreServiceClient" - }, - "method": { - "shortName": "DeleteFeaturestore", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService.DeleteFeaturestore", - "service": { - "shortName": "FeaturestoreService", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_FeaturestoreService_CreateEntityType_async", - "title": "DataFoundryService createEntityType Sample", - "origin": "API_DEFINITION", - "description": " Creates a new EntityType in a given Featurestore.", - "canonical": true, - "file": "featurestore_service.create_entity_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateEntityType", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService.CreateEntityType", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "entity_type", - "type": ".google.cloud.aiplatform.v1.EntityType" - }, - { - "name": "entity_type_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FeaturestoreServiceClient", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreServiceClient" - }, - "method": { - "shortName": "CreateEntityType", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService.CreateEntityType", - "service": { - "shortName": "FeaturestoreService", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_FeaturestoreService_GetEntityType_async", - "title": "DataFoundryService getEntityType Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single EntityType.", - "canonical": true, - "file": "featurestore_service.get_entity_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEntityType", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService.GetEntityType", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.EntityType", - "client": { - "shortName": "FeaturestoreServiceClient", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreServiceClient" - }, - "method": { - "shortName": "GetEntityType", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService.GetEntityType", - "service": { - "shortName": "FeaturestoreService", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_FeaturestoreService_ListEntityTypes_async", - "title": "DataFoundryService listEntityTypes Sample", - "origin": "API_DEFINITION", - "description": " Lists EntityTypes in a given Featurestore.", - "canonical": true, - "file": "featurestore_service.list_entity_types.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 104, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEntityTypes", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService.ListEntityTypes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ListEntityTypesResponse", - "client": { - "shortName": "FeaturestoreServiceClient", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreServiceClient" - }, - "method": { - "shortName": "ListEntityTypes", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService.ListEntityTypes", - "service": { - "shortName": "FeaturestoreService", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_FeaturestoreService_UpdateEntityType_async", - "title": "DataFoundryService updateEntityType Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single EntityType.", - "canonical": true, - "file": "featurestore_service.update_entity_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateEntityType", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService.UpdateEntityType", - "async": true, - "parameters": [ - { - "name": "entity_type", - "type": ".google.cloud.aiplatform.v1.EntityType" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1.EntityType", - "client": { - "shortName": "FeaturestoreServiceClient", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreServiceClient" - }, - "method": { - "shortName": "UpdateEntityType", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService.UpdateEntityType", - "service": { - "shortName": "FeaturestoreService", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_FeaturestoreService_DeleteEntityType_async", - "title": "DataFoundryService deleteEntityType Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single EntityType. The EntityType must not have any Features or `force` must be set to true for the request to succeed.", - "canonical": true, - "file": "featurestore_service.delete_entity_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteEntityType", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService.DeleteEntityType", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FeaturestoreServiceClient", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreServiceClient" - }, - "method": { - "shortName": "DeleteEntityType", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService.DeleteEntityType", - "service": { - "shortName": "FeaturestoreService", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_FeaturestoreService_CreateFeature_async", - "title": "DataFoundryService createFeature Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Feature in a given EntityType.", - "canonical": true, - "file": "featurestore_service.create_feature.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateFeature", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService.CreateFeature", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "feature", - "type": ".google.cloud.aiplatform.v1.Feature" - }, - { - "name": "feature_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FeaturestoreServiceClient", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreServiceClient" - }, - "method": { - "shortName": "CreateFeature", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService.CreateFeature", - "service": { - "shortName": "FeaturestoreService", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_FeaturestoreService_BatchCreateFeatures_async", - "title": "DataFoundryService batchCreateFeatures Sample", - "origin": "API_DEFINITION", - "description": " Creates a batch of Features in a given EntityType.", - "canonical": true, - "file": "featurestore_service.batch_create_features.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCreateFeatures", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService.BatchCreateFeatures", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FeaturestoreServiceClient", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreServiceClient" - }, - "method": { - "shortName": "BatchCreateFeatures", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService.BatchCreateFeatures", - "service": { - "shortName": "FeaturestoreService", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_FeaturestoreService_GetFeature_async", - "title": "DataFoundryService getFeature Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Feature.", - "canonical": true, - "file": "featurestore_service.get_feature.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFeature", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService.GetFeature", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.Feature", - "client": { - "shortName": "FeaturestoreServiceClient", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreServiceClient" - }, - "method": { - "shortName": "GetFeature", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService.GetFeature", - "service": { - "shortName": "FeaturestoreService", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_FeaturestoreService_ListFeatures_async", - "title": "DataFoundryService listFeatures Sample", - "origin": "API_DEFINITION", - "description": " Lists Features in a given EntityType.", - "canonical": true, - "file": "featurestore_service.list_features.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 123, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFeatures", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService.ListFeatures", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "latest_stats_count", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ListFeaturesResponse", - "client": { - "shortName": "FeaturestoreServiceClient", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreServiceClient" - }, - "method": { - "shortName": "ListFeatures", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService.ListFeatures", - "service": { - "shortName": "FeaturestoreService", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_FeaturestoreService_UpdateFeature_async", - "title": "DataFoundryService updateFeature Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Feature.", - "canonical": true, - "file": "featurestore_service.update_feature.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateFeature", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService.UpdateFeature", - "async": true, - "parameters": [ - { - "name": "feature", - "type": ".google.cloud.aiplatform.v1.Feature" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1.Feature", - "client": { - "shortName": "FeaturestoreServiceClient", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreServiceClient" - }, - "method": { - "shortName": "UpdateFeature", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService.UpdateFeature", - "service": { - "shortName": "FeaturestoreService", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_FeaturestoreService_DeleteFeature_async", - "title": "DataFoundryService deleteFeature Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Feature.", - "canonical": true, - "file": "featurestore_service.delete_feature.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteFeature", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService.DeleteFeature", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FeaturestoreServiceClient", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreServiceClient" - }, - "method": { - "shortName": "DeleteFeature", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService.DeleteFeature", - "service": { - "shortName": "FeaturestoreService", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_FeaturestoreService_ImportFeatureValues_async", - "title": "DataFoundryService importFeatureValues Sample", - "origin": "API_DEFINITION", - "description": " Imports Feature values into the Featurestore from a source storage. The progress of the import is tracked by the returned operation. The imported features are guaranteed to be visible to subsequent read operations after the operation is marked as successfully done. If an import operation fails, the Feature values returned from reads and exports may be inconsistent. If consistency is required, the caller must retry the same import request again and wait till the new operation returned is marked as successfully done. There are also scenarios where the caller can cause inconsistency. - Source data for import contains multiple distinct Feature values for the same entity ID and timestamp. - Source is modified during an import. This includes adding, updating, or removing source data and/or metadata. Examples of updating metadata include but are not limited to changing storage location, storage class, or retention policy. - Online serving cluster is under-provisioned.", - "canonical": true, - "file": "featurestore_service.import_feature_values.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 106, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportFeatureValues", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService.ImportFeatureValues", - "async": true, - "parameters": [ - { - "name": "avro_source", - "type": ".google.cloud.aiplatform.v1.AvroSource" - }, - { - "name": "bigquery_source", - "type": ".google.cloud.aiplatform.v1.BigQuerySource" - }, - { - "name": "csv_source", - "type": ".google.cloud.aiplatform.v1.CsvSource" - }, - { - "name": "feature_time_field", - "type": "TYPE_STRING" - }, - { - "name": "feature_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "entity_type", - "type": "TYPE_STRING" - }, - { - "name": "entity_id_field", - "type": "TYPE_STRING" - }, - { - "name": "feature_specs", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "disable_online_serving", - "type": "TYPE_BOOL" - }, - { - "name": "worker_count", - "type": "TYPE_INT32" - }, - { - "name": "disable_ingestion_analysis", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FeaturestoreServiceClient", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreServiceClient" - }, - "method": { - "shortName": "ImportFeatureValues", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService.ImportFeatureValues", - "service": { - "shortName": "FeaturestoreService", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_FeaturestoreService_BatchReadFeatureValues_async", - "title": "DataFoundryService batchReadFeatureValues Sample", - "origin": "API_DEFINITION", - "description": " Batch reads Feature values from a Featurestore. This API enables batch reading Feature values, where each read instance in the batch may read Feature values of entities from one or more EntityTypes. Point-in-time correctness is guaranteed for Feature values of each read instance as of each instance's read timestamp.", - "canonical": true, - "file": "featurestore_service.batch_read_feature_values.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 106, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchReadFeatureValues", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService.BatchReadFeatureValues", - "async": true, - "parameters": [ - { - "name": "csv_read_instances", - "type": ".google.cloud.aiplatform.v1.CsvSource" - }, - { - "name": "bigquery_read_instances", - "type": ".google.cloud.aiplatform.v1.BigQuerySource" - }, - { - "name": "featurestore", - "type": "TYPE_STRING" - }, - { - "name": "destination", - "type": ".google.cloud.aiplatform.v1.FeatureValueDestination" - }, - { - "name": "pass_through_fields", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "entity_type_specs", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "start_time", - "type": ".google.protobuf.Timestamp" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FeaturestoreServiceClient", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreServiceClient" - }, - "method": { - "shortName": "BatchReadFeatureValues", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService.BatchReadFeatureValues", - "service": { - "shortName": "FeaturestoreService", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_FeaturestoreService_ExportFeatureValues_async", - "title": "DataFoundryService exportFeatureValues Sample", - "origin": "API_DEFINITION", - "description": " Exports Feature values from all the entities of a target EntityType.", - "canonical": true, - "file": "featurestore_service.export_feature_values.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportFeatureValues", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService.ExportFeatureValues", - "async": true, - "parameters": [ - { - "name": "snapshot_export", - "type": ".google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport" - }, - { - "name": "full_export", - "type": ".google.cloud.aiplatform.v1.ExportFeatureValuesRequest.FullExport" - }, - { - "name": "entity_type", - "type": "TYPE_STRING" - }, - { - "name": "destination", - "type": ".google.cloud.aiplatform.v1.FeatureValueDestination" - }, - { - "name": "feature_selector", - "type": ".google.cloud.aiplatform.v1.FeatureSelector" - }, - { - "name": "settings", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FeaturestoreServiceClient", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreServiceClient" - }, - "method": { - "shortName": "ExportFeatureValues", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService.ExportFeatureValues", - "service": { - "shortName": "FeaturestoreService", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_FeaturestoreService_DeleteFeatureValues_async", - "title": "DataFoundryService deleteFeatureValues Sample", - "origin": "API_DEFINITION", - "description": " Delete Feature values from Featurestore. The progress of the deletion is tracked by the returned operation. The deleted feature values are guaranteed to be invisible to subsequent read operations after the operation is marked as successfully done. If a delete feature values operation fails, the feature values returned from reads and exports may be inconsistent. If consistency is required, the caller must retry the same delete request again and wait till the new operation returned is marked as successfully done.", - "canonical": true, - "file": "featurestore_service.delete_feature_values.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteFeatureValues", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService.DeleteFeatureValues", - "async": true, - "parameters": [ - { - "name": "select_entity", - "type": ".google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectEntity" - }, - { - "name": "select_time_range_and_feature", - "type": ".google.cloud.aiplatform.v1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature" - }, - { - "name": "entity_type", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FeaturestoreServiceClient", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreServiceClient" - }, - "method": { - "shortName": "DeleteFeatureValues", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService.DeleteFeatureValues", - "service": { - "shortName": "FeaturestoreService", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_FeaturestoreService_SearchFeatures_async", - "title": "DataFoundryService searchFeatures Sample", - "origin": "API_DEFINITION", - "description": " Searches Features matching a query in a given project.", - "canonical": true, - "file": "featurestore_service.search_features.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 124, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchFeatures", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService.SearchFeatures", - "async": true, - "parameters": [ - { - "name": "location", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.SearchFeaturesResponse", - "client": { - "shortName": "FeaturestoreServiceClient", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreServiceClient" - }, - "method": { - "shortName": "SearchFeatures", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService.SearchFeatures", - "service": { - "shortName": "FeaturestoreService", - "fullName": "google.cloud.aiplatform.v1.FeaturestoreService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_GenAiCacheService_CreateCachedContent_async", - "title": "DataFoundryService createCachedContent Sample", - "origin": "API_DEFINITION", - "description": " Creates cached content, this call will initialize the cached content in the data storage, and users need to pay for the cache data storage.", - "canonical": true, - "file": "gen_ai_cache_service.create_cached_content.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCachedContent", - "fullName": "google.cloud.aiplatform.v1.GenAiCacheService.CreateCachedContent", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "cached_content", - "type": ".google.cloud.aiplatform.v1.CachedContent" - } - ], - "resultType": ".google.cloud.aiplatform.v1.CachedContent", - "client": { - "shortName": "GenAiCacheServiceClient", - "fullName": "google.cloud.aiplatform.v1.GenAiCacheServiceClient" - }, - "method": { - "shortName": "CreateCachedContent", - "fullName": "google.cloud.aiplatform.v1.GenAiCacheService.CreateCachedContent", - "service": { - "shortName": "GenAiCacheService", - "fullName": "google.cloud.aiplatform.v1.GenAiCacheService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_GenAiCacheService_GetCachedContent_async", - "title": "DataFoundryService getCachedContent Sample", - "origin": "API_DEFINITION", - "description": " Gets cached content configurations", - "canonical": true, - "file": "gen_ai_cache_service.get_cached_content.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCachedContent", - "fullName": "google.cloud.aiplatform.v1.GenAiCacheService.GetCachedContent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.CachedContent", - "client": { - "shortName": "GenAiCacheServiceClient", - "fullName": "google.cloud.aiplatform.v1.GenAiCacheServiceClient" - }, - "method": { - "shortName": "GetCachedContent", - "fullName": "google.cloud.aiplatform.v1.GenAiCacheService.GetCachedContent", - "service": { - "shortName": "GenAiCacheService", - "fullName": "google.cloud.aiplatform.v1.GenAiCacheService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_GenAiCacheService_UpdateCachedContent_async", - "title": "DataFoundryService updateCachedContent Sample", - "origin": "API_DEFINITION", - "description": " Updates cached content configurations", - "canonical": true, - "file": "gen_ai_cache_service.update_cached_content.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCachedContent", - "fullName": "google.cloud.aiplatform.v1.GenAiCacheService.UpdateCachedContent", - "async": true, - "parameters": [ - { - "name": "cached_content", - "type": ".google.cloud.aiplatform.v1.CachedContent" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1.CachedContent", - "client": { - "shortName": "GenAiCacheServiceClient", - "fullName": "google.cloud.aiplatform.v1.GenAiCacheServiceClient" - }, - "method": { - "shortName": "UpdateCachedContent", - "fullName": "google.cloud.aiplatform.v1.GenAiCacheService.UpdateCachedContent", - "service": { - "shortName": "GenAiCacheService", - "fullName": "google.cloud.aiplatform.v1.GenAiCacheService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_GenAiCacheService_DeleteCachedContent_async", - "title": "DataFoundryService deleteCachedContent Sample", - "origin": "API_DEFINITION", - "description": " Deletes cached content", - "canonical": true, - "file": "gen_ai_cache_service.delete_cached_content.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCachedContent", - "fullName": "google.cloud.aiplatform.v1.GenAiCacheService.DeleteCachedContent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "GenAiCacheServiceClient", - "fullName": "google.cloud.aiplatform.v1.GenAiCacheServiceClient" - }, - "method": { - "shortName": "DeleteCachedContent", - "fullName": "google.cloud.aiplatform.v1.GenAiCacheService.DeleteCachedContent", - "service": { - "shortName": "GenAiCacheService", - "fullName": "google.cloud.aiplatform.v1.GenAiCacheService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_GenAiCacheService_ListCachedContents_async", - "title": "DataFoundryService listCachedContents Sample", - "origin": "API_DEFINITION", - "description": " Lists cached contents in a project", - "canonical": true, - "file": "gen_ai_cache_service.list_cached_contents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCachedContents", - "fullName": "google.cloud.aiplatform.v1.GenAiCacheService.ListCachedContents", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ListCachedContentsResponse", - "client": { - "shortName": "GenAiCacheServiceClient", - "fullName": "google.cloud.aiplatform.v1.GenAiCacheServiceClient" - }, - "method": { - "shortName": "ListCachedContents", - "fullName": "google.cloud.aiplatform.v1.GenAiCacheService.ListCachedContents", - "service": { - "shortName": "GenAiCacheService", - "fullName": "google.cloud.aiplatform.v1.GenAiCacheService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_GenAiTuningService_CreateTuningJob_async", - "title": "DataFoundryService createTuningJob Sample", - "origin": "API_DEFINITION", - "description": " Creates a TuningJob. A created TuningJob right away will be attempted to be run.", - "canonical": true, - "file": "gen_ai_tuning_service.create_tuning_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTuningJob", - "fullName": "google.cloud.aiplatform.v1.GenAiTuningService.CreateTuningJob", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "tuning_job", - "type": ".google.cloud.aiplatform.v1.TuningJob" - } - ], - "resultType": ".google.cloud.aiplatform.v1.TuningJob", - "client": { - "shortName": "GenAiTuningServiceClient", - "fullName": "google.cloud.aiplatform.v1.GenAiTuningServiceClient" - }, - "method": { - "shortName": "CreateTuningJob", - "fullName": "google.cloud.aiplatform.v1.GenAiTuningService.CreateTuningJob", - "service": { - "shortName": "GenAiTuningService", - "fullName": "google.cloud.aiplatform.v1.GenAiTuningService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_GenAiTuningService_GetTuningJob_async", - "title": "DataFoundryService getTuningJob Sample", - "origin": "API_DEFINITION", - "description": " Gets a TuningJob.", - "canonical": true, - "file": "gen_ai_tuning_service.get_tuning_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTuningJob", - "fullName": "google.cloud.aiplatform.v1.GenAiTuningService.GetTuningJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.TuningJob", - "client": { - "shortName": "GenAiTuningServiceClient", - "fullName": "google.cloud.aiplatform.v1.GenAiTuningServiceClient" - }, - "method": { - "shortName": "GetTuningJob", - "fullName": "google.cloud.aiplatform.v1.GenAiTuningService.GetTuningJob", - "service": { - "shortName": "GenAiTuningService", - "fullName": "google.cloud.aiplatform.v1.GenAiTuningService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_GenAiTuningService_ListTuningJobs_async", - "title": "DataFoundryService listTuningJobs Sample", - "origin": "API_DEFINITION", - "description": " Lists TuningJobs in a Location.", - "canonical": true, - "file": "gen_ai_tuning_service.list_tuning_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTuningJobs", - "fullName": "google.cloud.aiplatform.v1.GenAiTuningService.ListTuningJobs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ListTuningJobsResponse", - "client": { - "shortName": "GenAiTuningServiceClient", - "fullName": "google.cloud.aiplatform.v1.GenAiTuningServiceClient" - }, - "method": { - "shortName": "ListTuningJobs", - "fullName": "google.cloud.aiplatform.v1.GenAiTuningService.ListTuningJobs", - "service": { - "shortName": "GenAiTuningService", - "fullName": "google.cloud.aiplatform.v1.GenAiTuningService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_GenAiTuningService_CancelTuningJob_async", - "title": "DataFoundryService cancelTuningJob Sample", - "origin": "API_DEFINITION", - "description": " Cancels a TuningJob. Starts asynchronous cancellation on the TuningJob. The server makes a best effort to cancel the job, but success is not guaranteed. Clients can use [GenAiTuningService.GetTuningJob][google.cloud.aiplatform.v1.GenAiTuningService.GetTuningJob] or other methods to check whether the cancellation succeeded or whether the job completed despite cancellation. On successful cancellation, the TuningJob is not deleted; instead it becomes a job with a [TuningJob.error][google.cloud.aiplatform.v1.TuningJob.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`, and [TuningJob.state][google.cloud.aiplatform.v1.TuningJob.state] is set to `CANCELLED`.", - "canonical": true, - "file": "gen_ai_tuning_service.cancel_tuning_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CancelTuningJob", - "fullName": "google.cloud.aiplatform.v1.GenAiTuningService.CancelTuningJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "GenAiTuningServiceClient", - "fullName": "google.cloud.aiplatform.v1.GenAiTuningServiceClient" - }, - "method": { - "shortName": "CancelTuningJob", - "fullName": "google.cloud.aiplatform.v1.GenAiTuningService.CancelTuningJob", - "service": { - "shortName": "GenAiTuningService", - "fullName": "google.cloud.aiplatform.v1.GenAiTuningService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_GenAiTuningService_RebaseTunedModel_async", - "title": "DataFoundryService rebaseTunedModel Sample", - "origin": "API_DEFINITION", - "description": " Rebase a TunedModel.", - "canonical": true, - "file": "gen_ai_tuning_service.rebase_tuned_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RebaseTunedModel", - "fullName": "google.cloud.aiplatform.v1.GenAiTuningService.RebaseTunedModel", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "tuned_model_ref", - "type": ".google.cloud.aiplatform.v1.TunedModelRef" - }, - { - "name": "tuning_job", - "type": ".google.cloud.aiplatform.v1.TuningJob" - }, - { - "name": "artifact_destination", - "type": ".google.cloud.aiplatform.v1.GcsDestination" - }, - { - "name": "deploy_to_same_endpoint", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GenAiTuningServiceClient", - "fullName": "google.cloud.aiplatform.v1.GenAiTuningServiceClient" - }, - "method": { - "shortName": "RebaseTunedModel", - "fullName": "google.cloud.aiplatform.v1.GenAiTuningService.RebaseTunedModel", - "service": { - "shortName": "GenAiTuningService", - "fullName": "google.cloud.aiplatform.v1.GenAiTuningService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_IndexEndpointService_CreateIndexEndpoint_async", - "title": "DataFoundryService createIndexEndpoint Sample", - "origin": "API_DEFINITION", - "description": " Creates an IndexEndpoint.", - "canonical": true, - "file": "index_endpoint_service.create_index_endpoint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateIndexEndpoint", - "fullName": "google.cloud.aiplatform.v1.IndexEndpointService.CreateIndexEndpoint", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "index_endpoint", - "type": ".google.cloud.aiplatform.v1.IndexEndpoint" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "IndexEndpointServiceClient", - "fullName": "google.cloud.aiplatform.v1.IndexEndpointServiceClient" - }, - "method": { - "shortName": "CreateIndexEndpoint", - "fullName": "google.cloud.aiplatform.v1.IndexEndpointService.CreateIndexEndpoint", - "service": { - "shortName": "IndexEndpointService", - "fullName": "google.cloud.aiplatform.v1.IndexEndpointService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_IndexEndpointService_GetIndexEndpoint_async", - "title": "DataFoundryService getIndexEndpoint Sample", - "origin": "API_DEFINITION", - "description": " Gets an IndexEndpoint.", - "canonical": true, - "file": "index_endpoint_service.get_index_endpoint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIndexEndpoint", - "fullName": "google.cloud.aiplatform.v1.IndexEndpointService.GetIndexEndpoint", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.IndexEndpoint", - "client": { - "shortName": "IndexEndpointServiceClient", - "fullName": "google.cloud.aiplatform.v1.IndexEndpointServiceClient" - }, - "method": { - "shortName": "GetIndexEndpoint", - "fullName": "google.cloud.aiplatform.v1.IndexEndpointService.GetIndexEndpoint", - "service": { - "shortName": "IndexEndpointService", - "fullName": "google.cloud.aiplatform.v1.IndexEndpointService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_IndexEndpointService_ListIndexEndpoints_async", - "title": "DataFoundryService listIndexEndpoints Sample", - "origin": "API_DEFINITION", - "description": " Lists IndexEndpoints in a Location.", - "canonical": true, - "file": "index_endpoint_service.list_index_endpoints.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 92, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListIndexEndpoints", - "fullName": "google.cloud.aiplatform.v1.IndexEndpointService.ListIndexEndpoints", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ListIndexEndpointsResponse", - "client": { - "shortName": "IndexEndpointServiceClient", - "fullName": "google.cloud.aiplatform.v1.IndexEndpointServiceClient" - }, - "method": { - "shortName": "ListIndexEndpoints", - "fullName": "google.cloud.aiplatform.v1.IndexEndpointService.ListIndexEndpoints", - "service": { - "shortName": "IndexEndpointService", - "fullName": "google.cloud.aiplatform.v1.IndexEndpointService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_IndexEndpointService_UpdateIndexEndpoint_async", - "title": "DataFoundryService updateIndexEndpoint Sample", - "origin": "API_DEFINITION", - "description": " Updates an IndexEndpoint.", - "canonical": true, - "file": "index_endpoint_service.update_index_endpoint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateIndexEndpoint", - "fullName": "google.cloud.aiplatform.v1.IndexEndpointService.UpdateIndexEndpoint", - "async": true, - "parameters": [ - { - "name": "index_endpoint", - "type": ".google.cloud.aiplatform.v1.IndexEndpoint" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1.IndexEndpoint", - "client": { - "shortName": "IndexEndpointServiceClient", - "fullName": "google.cloud.aiplatform.v1.IndexEndpointServiceClient" - }, - "method": { - "shortName": "UpdateIndexEndpoint", - "fullName": "google.cloud.aiplatform.v1.IndexEndpointService.UpdateIndexEndpoint", - "service": { - "shortName": "IndexEndpointService", - "fullName": "google.cloud.aiplatform.v1.IndexEndpointService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_IndexEndpointService_DeleteIndexEndpoint_async", - "title": "DataFoundryService deleteIndexEndpoint Sample", - "origin": "API_DEFINITION", - "description": " Deletes an IndexEndpoint.", - "canonical": true, - "file": "index_endpoint_service.delete_index_endpoint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteIndexEndpoint", - "fullName": "google.cloud.aiplatform.v1.IndexEndpointService.DeleteIndexEndpoint", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "IndexEndpointServiceClient", - "fullName": "google.cloud.aiplatform.v1.IndexEndpointServiceClient" - }, - "method": { - "shortName": "DeleteIndexEndpoint", - "fullName": "google.cloud.aiplatform.v1.IndexEndpointService.DeleteIndexEndpoint", - "service": { - "shortName": "IndexEndpointService", - "fullName": "google.cloud.aiplatform.v1.IndexEndpointService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_IndexEndpointService_DeployIndex_async", - "title": "DataFoundryService deployIndex Sample", - "origin": "API_DEFINITION", - "description": " Deploys an Index into this IndexEndpoint, creating a DeployedIndex within it. Only non-empty Indexes can be deployed.", - "canonical": true, - "file": "index_endpoint_service.deploy_index.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeployIndex", - "fullName": "google.cloud.aiplatform.v1.IndexEndpointService.DeployIndex", - "async": true, - "parameters": [ - { - "name": "index_endpoint", - "type": "TYPE_STRING" - }, - { - "name": "deployed_index", - "type": ".google.cloud.aiplatform.v1.DeployedIndex" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "IndexEndpointServiceClient", - "fullName": "google.cloud.aiplatform.v1.IndexEndpointServiceClient" - }, - "method": { - "shortName": "DeployIndex", - "fullName": "google.cloud.aiplatform.v1.IndexEndpointService.DeployIndex", - "service": { - "shortName": "IndexEndpointService", - "fullName": "google.cloud.aiplatform.v1.IndexEndpointService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_IndexEndpointService_UndeployIndex_async", - "title": "DataFoundryService undeployIndex Sample", - "origin": "API_DEFINITION", - "description": " Undeploys an Index from an IndexEndpoint, removing a DeployedIndex from it, and freeing all resources it's using.", - "canonical": true, - "file": "index_endpoint_service.undeploy_index.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UndeployIndex", - "fullName": "google.cloud.aiplatform.v1.IndexEndpointService.UndeployIndex", - "async": true, - "parameters": [ - { - "name": "index_endpoint", - "type": "TYPE_STRING" - }, - { - "name": "deployed_index_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "IndexEndpointServiceClient", - "fullName": "google.cloud.aiplatform.v1.IndexEndpointServiceClient" - }, - "method": { - "shortName": "UndeployIndex", - "fullName": "google.cloud.aiplatform.v1.IndexEndpointService.UndeployIndex", - "service": { - "shortName": "IndexEndpointService", - "fullName": "google.cloud.aiplatform.v1.IndexEndpointService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_IndexEndpointService_MutateDeployedIndex_async", - "title": "DataFoundryService mutateDeployedIndex Sample", - "origin": "API_DEFINITION", - "description": " Update an existing DeployedIndex under an IndexEndpoint.", - "canonical": true, - "file": "index_endpoint_service.mutate_deployed_index.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "MutateDeployedIndex", - "fullName": "google.cloud.aiplatform.v1.IndexEndpointService.MutateDeployedIndex", - "async": true, - "parameters": [ - { - "name": "index_endpoint", - "type": "TYPE_STRING" - }, - { - "name": "deployed_index", - "type": ".google.cloud.aiplatform.v1.DeployedIndex" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "IndexEndpointServiceClient", - "fullName": "google.cloud.aiplatform.v1.IndexEndpointServiceClient" - }, - "method": { - "shortName": "MutateDeployedIndex", - "fullName": "google.cloud.aiplatform.v1.IndexEndpointService.MutateDeployedIndex", - "service": { - "shortName": "IndexEndpointService", - "fullName": "google.cloud.aiplatform.v1.IndexEndpointService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_IndexService_CreateIndex_async", - "title": "DataFoundryService createIndex Sample", - "origin": "API_DEFINITION", - "description": " Creates an Index.", - "canonical": true, - "file": "index_service.create_index.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateIndex", - "fullName": "google.cloud.aiplatform.v1.IndexService.CreateIndex", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "index", - "type": ".google.cloud.aiplatform.v1.Index" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "IndexServiceClient", - "fullName": "google.cloud.aiplatform.v1.IndexServiceClient" - }, - "method": { - "shortName": "CreateIndex", - "fullName": "google.cloud.aiplatform.v1.IndexService.CreateIndex", - "service": { - "shortName": "IndexService", - "fullName": "google.cloud.aiplatform.v1.IndexService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_IndexService_GetIndex_async", - "title": "DataFoundryService getIndex Sample", - "origin": "API_DEFINITION", - "description": " Gets an Index.", - "canonical": true, - "file": "index_service.get_index.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIndex", - "fullName": "google.cloud.aiplatform.v1.IndexService.GetIndex", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.Index", - "client": { - "shortName": "IndexServiceClient", - "fullName": "google.cloud.aiplatform.v1.IndexServiceClient" - }, - "method": { - "shortName": "GetIndex", - "fullName": "google.cloud.aiplatform.v1.IndexService.GetIndex", - "service": { - "shortName": "IndexService", - "fullName": "google.cloud.aiplatform.v1.IndexService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_IndexService_ListIndexes_async", - "title": "DataFoundryService listIndexes Sample", - "origin": "API_DEFINITION", - "description": " Lists Indexes in a Location.", - "canonical": true, - "file": "index_service.list_indexes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListIndexes", - "fullName": "google.cloud.aiplatform.v1.IndexService.ListIndexes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ListIndexesResponse", - "client": { - "shortName": "IndexServiceClient", - "fullName": "google.cloud.aiplatform.v1.IndexServiceClient" - }, - "method": { - "shortName": "ListIndexes", - "fullName": "google.cloud.aiplatform.v1.IndexService.ListIndexes", - "service": { - "shortName": "IndexService", - "fullName": "google.cloud.aiplatform.v1.IndexService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_IndexService_UpdateIndex_async", - "title": "DataFoundryService updateIndex Sample", - "origin": "API_DEFINITION", - "description": " Updates an Index.", - "canonical": true, - "file": "index_service.update_index.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateIndex", - "fullName": "google.cloud.aiplatform.v1.IndexService.UpdateIndex", - "async": true, - "parameters": [ - { - "name": "index", - "type": ".google.cloud.aiplatform.v1.Index" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "IndexServiceClient", - "fullName": "google.cloud.aiplatform.v1.IndexServiceClient" - }, - "method": { - "shortName": "UpdateIndex", - "fullName": "google.cloud.aiplatform.v1.IndexService.UpdateIndex", - "service": { - "shortName": "IndexService", - "fullName": "google.cloud.aiplatform.v1.IndexService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_IndexService_DeleteIndex_async", - "title": "DataFoundryService deleteIndex Sample", - "origin": "API_DEFINITION", - "description": " Deletes an Index. An Index can only be deleted when all its [DeployedIndexes][google.cloud.aiplatform.v1.Index.deployed_indexes] had been undeployed.", - "canonical": true, - "file": "index_service.delete_index.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteIndex", - "fullName": "google.cloud.aiplatform.v1.IndexService.DeleteIndex", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "IndexServiceClient", - "fullName": "google.cloud.aiplatform.v1.IndexServiceClient" - }, - "method": { - "shortName": "DeleteIndex", - "fullName": "google.cloud.aiplatform.v1.IndexService.DeleteIndex", - "service": { - "shortName": "IndexService", - "fullName": "google.cloud.aiplatform.v1.IndexService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_IndexService_UpsertDatapoints_async", - "title": "DataFoundryService upsertDatapoints Sample", - "origin": "API_DEFINITION", - "description": " Add/update Datapoints into an Index.", - "canonical": true, - "file": "index_service.upsert_datapoints.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpsertDatapoints", - "fullName": "google.cloud.aiplatform.v1.IndexService.UpsertDatapoints", - "async": true, - "parameters": [ - { - "name": "index", - "type": "TYPE_STRING" - }, - { - "name": "datapoints", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1.UpsertDatapointsResponse", - "client": { - "shortName": "IndexServiceClient", - "fullName": "google.cloud.aiplatform.v1.IndexServiceClient" - }, - "method": { - "shortName": "UpsertDatapoints", - "fullName": "google.cloud.aiplatform.v1.IndexService.UpsertDatapoints", - "service": { - "shortName": "IndexService", - "fullName": "google.cloud.aiplatform.v1.IndexService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_IndexService_RemoveDatapoints_async", - "title": "DataFoundryService removeDatapoints Sample", - "origin": "API_DEFINITION", - "description": " Remove Datapoints from an Index.", - "canonical": true, - "file": "index_service.remove_datapoints.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveDatapoints", - "fullName": "google.cloud.aiplatform.v1.IndexService.RemoveDatapoints", - "async": true, - "parameters": [ - { - "name": "index", - "type": "TYPE_STRING" - }, - { - "name": "datapoint_ids", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.cloud.aiplatform.v1.RemoveDatapointsResponse", - "client": { - "shortName": "IndexServiceClient", - "fullName": "google.cloud.aiplatform.v1.IndexServiceClient" - }, - "method": { - "shortName": "RemoveDatapoints", - "fullName": "google.cloud.aiplatform.v1.IndexService.RemoveDatapoints", - "service": { - "shortName": "IndexService", - "fullName": "google.cloud.aiplatform.v1.IndexService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_JobService_CreateCustomJob_async", - "title": "DataFoundryService createCustomJob Sample", - "origin": "API_DEFINITION", - "description": " Creates a CustomJob. A created CustomJob right away will be attempted to be run.", - "canonical": true, - "file": "job_service.create_custom_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCustomJob", - "fullName": "google.cloud.aiplatform.v1.JobService.CreateCustomJob", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "custom_job", - "type": ".google.cloud.aiplatform.v1.CustomJob" - } - ], - "resultType": ".google.cloud.aiplatform.v1.CustomJob", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1.JobServiceClient" - }, - "method": { - "shortName": "CreateCustomJob", - "fullName": "google.cloud.aiplatform.v1.JobService.CreateCustomJob", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_JobService_GetCustomJob_async", - "title": "DataFoundryService getCustomJob Sample", - "origin": "API_DEFINITION", - "description": " Gets a CustomJob.", - "canonical": true, - "file": "job_service.get_custom_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCustomJob", - "fullName": "google.cloud.aiplatform.v1.JobService.GetCustomJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.CustomJob", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1.JobServiceClient" - }, - "method": { - "shortName": "GetCustomJob", - "fullName": "google.cloud.aiplatform.v1.JobService.GetCustomJob", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_JobService_ListCustomJobs_async", - "title": "DataFoundryService listCustomJobs Sample", - "origin": "API_DEFINITION", - "description": " Lists CustomJobs in a Location.", - "canonical": true, - "file": "job_service.list_custom_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 92, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCustomJobs", - "fullName": "google.cloud.aiplatform.v1.JobService.ListCustomJobs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ListCustomJobsResponse", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1.JobServiceClient" - }, - "method": { - "shortName": "ListCustomJobs", - "fullName": "google.cloud.aiplatform.v1.JobService.ListCustomJobs", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_JobService_DeleteCustomJob_async", - "title": "DataFoundryService deleteCustomJob Sample", - "origin": "API_DEFINITION", - "description": " Deletes a CustomJob.", - "canonical": true, - "file": "job_service.delete_custom_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCustomJob", - "fullName": "google.cloud.aiplatform.v1.JobService.DeleteCustomJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1.JobServiceClient" - }, - "method": { - "shortName": "DeleteCustomJob", - "fullName": "google.cloud.aiplatform.v1.JobService.DeleteCustomJob", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_JobService_CancelCustomJob_async", - "title": "DataFoundryService cancelCustomJob Sample", - "origin": "API_DEFINITION", - "description": " Cancels a CustomJob. Starts asynchronous cancellation on the CustomJob. The server makes a best effort to cancel the job, but success is not guaranteed. Clients can use [JobService.GetCustomJob][google.cloud.aiplatform.v1.JobService.GetCustomJob] or other methods to check whether the cancellation succeeded or whether the job completed despite cancellation. On successful cancellation, the CustomJob is not deleted; instead it becomes a job with a [CustomJob.error][google.cloud.aiplatform.v1.CustomJob.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`, and [CustomJob.state][google.cloud.aiplatform.v1.CustomJob.state] is set to `CANCELLED`.", - "canonical": true, - "file": "job_service.cancel_custom_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CancelCustomJob", - "fullName": "google.cloud.aiplatform.v1.JobService.CancelCustomJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1.JobServiceClient" - }, - "method": { - "shortName": "CancelCustomJob", - "fullName": "google.cloud.aiplatform.v1.JobService.CancelCustomJob", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_JobService_CreateDataLabelingJob_async", - "title": "DataFoundryService createDataLabelingJob Sample", - "origin": "API_DEFINITION", - "description": " Creates a DataLabelingJob.", - "canonical": true, - "file": "job_service.create_data_labeling_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDataLabelingJob", - "fullName": "google.cloud.aiplatform.v1.JobService.CreateDataLabelingJob", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "data_labeling_job", - "type": ".google.cloud.aiplatform.v1.DataLabelingJob" - } - ], - "resultType": ".google.cloud.aiplatform.v1.DataLabelingJob", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1.JobServiceClient" - }, - "method": { - "shortName": "CreateDataLabelingJob", - "fullName": "google.cloud.aiplatform.v1.JobService.CreateDataLabelingJob", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_JobService_GetDataLabelingJob_async", - "title": "DataFoundryService getDataLabelingJob Sample", - "origin": "API_DEFINITION", - "description": " Gets a DataLabelingJob.", - "canonical": true, - "file": "job_service.get_data_labeling_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDataLabelingJob", - "fullName": "google.cloud.aiplatform.v1.JobService.GetDataLabelingJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.DataLabelingJob", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1.JobServiceClient" - }, - "method": { - "shortName": "GetDataLabelingJob", - "fullName": "google.cloud.aiplatform.v1.JobService.GetDataLabelingJob", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_JobService_ListDataLabelingJobs_async", - "title": "DataFoundryService listDataLabelingJobs Sample", - "origin": "API_DEFINITION", - "description": " Lists DataLabelingJobs in a Location.", - "canonical": true, - "file": "job_service.list_data_labeling_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 96, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDataLabelingJobs", - "fullName": "google.cloud.aiplatform.v1.JobService.ListDataLabelingJobs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ListDataLabelingJobsResponse", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1.JobServiceClient" - }, - "method": { - "shortName": "ListDataLabelingJobs", - "fullName": "google.cloud.aiplatform.v1.JobService.ListDataLabelingJobs", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_JobService_DeleteDataLabelingJob_async", - "title": "DataFoundryService deleteDataLabelingJob Sample", - "origin": "API_DEFINITION", - "description": " Deletes a DataLabelingJob.", - "canonical": true, - "file": "job_service.delete_data_labeling_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDataLabelingJob", - "fullName": "google.cloud.aiplatform.v1.JobService.DeleteDataLabelingJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1.JobServiceClient" - }, - "method": { - "shortName": "DeleteDataLabelingJob", - "fullName": "google.cloud.aiplatform.v1.JobService.DeleteDataLabelingJob", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_JobService_CancelDataLabelingJob_async", - "title": "DataFoundryService cancelDataLabelingJob Sample", - "origin": "API_DEFINITION", - "description": " Cancels a DataLabelingJob. Success of cancellation is not guaranteed.", - "canonical": true, - "file": "job_service.cancel_data_labeling_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CancelDataLabelingJob", - "fullName": "google.cloud.aiplatform.v1.JobService.CancelDataLabelingJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1.JobServiceClient" - }, - "method": { - "shortName": "CancelDataLabelingJob", - "fullName": "google.cloud.aiplatform.v1.JobService.CancelDataLabelingJob", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_JobService_CreateHyperparameterTuningJob_async", - "title": "DataFoundryService createHyperparameterTuningJob Sample", - "origin": "API_DEFINITION", - "description": " Creates a HyperparameterTuningJob", - "canonical": true, - "file": "job_service.create_hyperparameter_tuning_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateHyperparameterTuningJob", - "fullName": "google.cloud.aiplatform.v1.JobService.CreateHyperparameterTuningJob", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "hyperparameter_tuning_job", - "type": ".google.cloud.aiplatform.v1.HyperparameterTuningJob" - } - ], - "resultType": ".google.cloud.aiplatform.v1.HyperparameterTuningJob", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1.JobServiceClient" - }, - "method": { - "shortName": "CreateHyperparameterTuningJob", - "fullName": "google.cloud.aiplatform.v1.JobService.CreateHyperparameterTuningJob", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_JobService_GetHyperparameterTuningJob_async", - "title": "DataFoundryService getHyperparameterTuningJob Sample", - "origin": "API_DEFINITION", - "description": " Gets a HyperparameterTuningJob", - "canonical": true, - "file": "job_service.get_hyperparameter_tuning_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetHyperparameterTuningJob", - "fullName": "google.cloud.aiplatform.v1.JobService.GetHyperparameterTuningJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.HyperparameterTuningJob", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1.JobServiceClient" - }, - "method": { - "shortName": "GetHyperparameterTuningJob", - "fullName": "google.cloud.aiplatform.v1.JobService.GetHyperparameterTuningJob", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_JobService_ListHyperparameterTuningJobs_async", - "title": "DataFoundryService listHyperparameterTuningJobs Sample", - "origin": "API_DEFINITION", - "description": " Lists HyperparameterTuningJobs in a Location.", - "canonical": true, - "file": "job_service.list_hyperparameter_tuning_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 93, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListHyperparameterTuningJobs", - "fullName": "google.cloud.aiplatform.v1.JobService.ListHyperparameterTuningJobs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1.JobServiceClient" - }, - "method": { - "shortName": "ListHyperparameterTuningJobs", - "fullName": "google.cloud.aiplatform.v1.JobService.ListHyperparameterTuningJobs", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_JobService_DeleteHyperparameterTuningJob_async", - "title": "DataFoundryService deleteHyperparameterTuningJob Sample", - "origin": "API_DEFINITION", - "description": " Deletes a HyperparameterTuningJob.", - "canonical": true, - "file": "job_service.delete_hyperparameter_tuning_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteHyperparameterTuningJob", - "fullName": "google.cloud.aiplatform.v1.JobService.DeleteHyperparameterTuningJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1.JobServiceClient" - }, - "method": { - "shortName": "DeleteHyperparameterTuningJob", - "fullName": "google.cloud.aiplatform.v1.JobService.DeleteHyperparameterTuningJob", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_JobService_CancelHyperparameterTuningJob_async", - "title": "DataFoundryService cancelHyperparameterTuningJob Sample", - "origin": "API_DEFINITION", - "description": " Cancels a HyperparameterTuningJob. Starts asynchronous cancellation on the HyperparameterTuningJob. The server makes a best effort to cancel the job, but success is not guaranteed. Clients can use [JobService.GetHyperparameterTuningJob][google.cloud.aiplatform.v1.JobService.GetHyperparameterTuningJob] or other methods to check whether the cancellation succeeded or whether the job completed despite cancellation. On successful cancellation, the HyperparameterTuningJob is not deleted; instead it becomes a job with a [HyperparameterTuningJob.error][google.cloud.aiplatform.v1.HyperparameterTuningJob.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`, and [HyperparameterTuningJob.state][google.cloud.aiplatform.v1.HyperparameterTuningJob.state] is set to `CANCELLED`.", - "canonical": true, - "file": "job_service.cancel_hyperparameter_tuning_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CancelHyperparameterTuningJob", - "fullName": "google.cloud.aiplatform.v1.JobService.CancelHyperparameterTuningJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1.JobServiceClient" - }, - "method": { - "shortName": "CancelHyperparameterTuningJob", - "fullName": "google.cloud.aiplatform.v1.JobService.CancelHyperparameterTuningJob", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_JobService_CreateNasJob_async", - "title": "DataFoundryService createNasJob Sample", - "origin": "API_DEFINITION", - "description": " Creates a NasJob", - "canonical": true, - "file": "job_service.create_nas_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateNasJob", - "fullName": "google.cloud.aiplatform.v1.JobService.CreateNasJob", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "nas_job", - "type": ".google.cloud.aiplatform.v1.NasJob" - } - ], - "resultType": ".google.cloud.aiplatform.v1.NasJob", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1.JobServiceClient" - }, - "method": { - "shortName": "CreateNasJob", - "fullName": "google.cloud.aiplatform.v1.JobService.CreateNasJob", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_JobService_GetNasJob_async", - "title": "DataFoundryService getNasJob Sample", - "origin": "API_DEFINITION", - "description": " Gets a NasJob", - "canonical": true, - "file": "job_service.get_nas_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetNasJob", - "fullName": "google.cloud.aiplatform.v1.JobService.GetNasJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.NasJob", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1.JobServiceClient" - }, - "method": { - "shortName": "GetNasJob", - "fullName": "google.cloud.aiplatform.v1.JobService.GetNasJob", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_JobService_ListNasJobs_async", - "title": "DataFoundryService listNasJobs Sample", - "origin": "API_DEFINITION", - "description": " Lists NasJobs in a Location.", - "canonical": true, - "file": "job_service.list_nas_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 92, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListNasJobs", - "fullName": "google.cloud.aiplatform.v1.JobService.ListNasJobs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ListNasJobsResponse", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1.JobServiceClient" - }, - "method": { - "shortName": "ListNasJobs", - "fullName": "google.cloud.aiplatform.v1.JobService.ListNasJobs", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_JobService_DeleteNasJob_async", - "title": "DataFoundryService deleteNasJob Sample", - "origin": "API_DEFINITION", - "description": " Deletes a NasJob.", - "canonical": true, - "file": "job_service.delete_nas_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteNasJob", - "fullName": "google.cloud.aiplatform.v1.JobService.DeleteNasJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1.JobServiceClient" - }, - "method": { - "shortName": "DeleteNasJob", - "fullName": "google.cloud.aiplatform.v1.JobService.DeleteNasJob", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_JobService_CancelNasJob_async", - "title": "DataFoundryService cancelNasJob Sample", - "origin": "API_DEFINITION", - "description": " Cancels a NasJob. Starts asynchronous cancellation on the NasJob. The server makes a best effort to cancel the job, but success is not guaranteed. Clients can use [JobService.GetNasJob][google.cloud.aiplatform.v1.JobService.GetNasJob] or other methods to check whether the cancellation succeeded or whether the job completed despite cancellation. On successful cancellation, the NasJob is not deleted; instead it becomes a job with a [NasJob.error][google.cloud.aiplatform.v1.NasJob.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`, and [NasJob.state][google.cloud.aiplatform.v1.NasJob.state] is set to `CANCELLED`.", - "canonical": true, - "file": "job_service.cancel_nas_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CancelNasJob", - "fullName": "google.cloud.aiplatform.v1.JobService.CancelNasJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1.JobServiceClient" - }, - "method": { - "shortName": "CancelNasJob", - "fullName": "google.cloud.aiplatform.v1.JobService.CancelNasJob", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_JobService_GetNasTrialDetail_async", - "title": "DataFoundryService getNasTrialDetail Sample", - "origin": "API_DEFINITION", - "description": " Gets a NasTrialDetail.", - "canonical": true, - "file": "job_service.get_nas_trial_detail.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetNasTrialDetail", - "fullName": "google.cloud.aiplatform.v1.JobService.GetNasTrialDetail", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.NasTrialDetail", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1.JobServiceClient" - }, - "method": { - "shortName": "GetNasTrialDetail", - "fullName": "google.cloud.aiplatform.v1.JobService.GetNasTrialDetail", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_JobService_ListNasTrialDetails_async", - "title": "DataFoundryService listNasTrialDetails Sample", - "origin": "API_DEFINITION", - "description": " List top NasTrialDetails of a NasJob.", - "canonical": true, - "file": "job_service.list_nas_trial_details.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListNasTrialDetails", - "fullName": "google.cloud.aiplatform.v1.JobService.ListNasTrialDetails", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ListNasTrialDetailsResponse", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1.JobServiceClient" - }, - "method": { - "shortName": "ListNasTrialDetails", - "fullName": "google.cloud.aiplatform.v1.JobService.ListNasTrialDetails", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_JobService_CreateBatchPredictionJob_async", - "title": "DataFoundryService createBatchPredictionJob Sample", - "origin": "API_DEFINITION", - "description": " Creates a BatchPredictionJob. A BatchPredictionJob once created will right away be attempted to start.", - "canonical": true, - "file": "job_service.create_batch_prediction_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateBatchPredictionJob", - "fullName": "google.cloud.aiplatform.v1.JobService.CreateBatchPredictionJob", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "batch_prediction_job", - "type": ".google.cloud.aiplatform.v1.BatchPredictionJob" - } - ], - "resultType": ".google.cloud.aiplatform.v1.BatchPredictionJob", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1.JobServiceClient" - }, - "method": { - "shortName": "CreateBatchPredictionJob", - "fullName": "google.cloud.aiplatform.v1.JobService.CreateBatchPredictionJob", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_JobService_GetBatchPredictionJob_async", - "title": "DataFoundryService getBatchPredictionJob Sample", - "origin": "API_DEFINITION", - "description": " Gets a BatchPredictionJob", - "canonical": true, - "file": "job_service.get_batch_prediction_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBatchPredictionJob", - "fullName": "google.cloud.aiplatform.v1.JobService.GetBatchPredictionJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.BatchPredictionJob", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1.JobServiceClient" - }, - "method": { - "shortName": "GetBatchPredictionJob", - "fullName": "google.cloud.aiplatform.v1.JobService.GetBatchPredictionJob", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_JobService_ListBatchPredictionJobs_async", - "title": "DataFoundryService listBatchPredictionJobs Sample", - "origin": "API_DEFINITION", - "description": " Lists BatchPredictionJobs in a Location.", - "canonical": true, - "file": "job_service.list_batch_prediction_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 93, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBatchPredictionJobs", - "fullName": "google.cloud.aiplatform.v1.JobService.ListBatchPredictionJobs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1.JobServiceClient" - }, - "method": { - "shortName": "ListBatchPredictionJobs", - "fullName": "google.cloud.aiplatform.v1.JobService.ListBatchPredictionJobs", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_JobService_DeleteBatchPredictionJob_async", - "title": "DataFoundryService deleteBatchPredictionJob Sample", - "origin": "API_DEFINITION", - "description": " Deletes a BatchPredictionJob. Can only be called on jobs that already finished.", - "canonical": true, - "file": "job_service.delete_batch_prediction_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteBatchPredictionJob", - "fullName": "google.cloud.aiplatform.v1.JobService.DeleteBatchPredictionJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1.JobServiceClient" - }, - "method": { - "shortName": "DeleteBatchPredictionJob", - "fullName": "google.cloud.aiplatform.v1.JobService.DeleteBatchPredictionJob", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_JobService_CancelBatchPredictionJob_async", - "title": "DataFoundryService cancelBatchPredictionJob Sample", - "origin": "API_DEFINITION", - "description": " Cancels a BatchPredictionJob. Starts asynchronous cancellation on the BatchPredictionJob. The server makes the best effort to cancel the job, but success is not guaranteed. Clients can use [JobService.GetBatchPredictionJob][google.cloud.aiplatform.v1.JobService.GetBatchPredictionJob] or other methods to check whether the cancellation succeeded or whether the job completed despite cancellation. On a successful cancellation, the BatchPredictionJob is not deleted;instead its [BatchPredictionJob.state][google.cloud.aiplatform.v1.BatchPredictionJob.state] is set to `CANCELLED`. Any files already outputted by the job are not deleted.", - "canonical": true, - "file": "job_service.cancel_batch_prediction_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CancelBatchPredictionJob", - "fullName": "google.cloud.aiplatform.v1.JobService.CancelBatchPredictionJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1.JobServiceClient" - }, - "method": { - "shortName": "CancelBatchPredictionJob", - "fullName": "google.cloud.aiplatform.v1.JobService.CancelBatchPredictionJob", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_JobService_CreateModelDeploymentMonitoringJob_async", - "title": "DataFoundryService createModelDeploymentMonitoringJob Sample", - "origin": "API_DEFINITION", - "description": " Creates a ModelDeploymentMonitoringJob. It will run periodically on a configured interval.", - "canonical": true, - "file": "job_service.create_model_deployment_monitoring_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateModelDeploymentMonitoringJob", - "fullName": "google.cloud.aiplatform.v1.JobService.CreateModelDeploymentMonitoringJob", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "model_deployment_monitoring_job", - "type": ".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1.JobServiceClient" - }, - "method": { - "shortName": "CreateModelDeploymentMonitoringJob", - "fullName": "google.cloud.aiplatform.v1.JobService.CreateModelDeploymentMonitoringJob", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_JobService_SearchModelDeploymentMonitoringStatsAnomalies_async", - "title": "DataFoundryService searchModelDeploymentMonitoringStatsAnomalies Sample", - "origin": "API_DEFINITION", - "description": " Searches Model Monitoring Statistics generated within a given time window.", - "canonical": true, - "file": "job_service.search_model_deployment_monitoring_stats_anomalies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 95, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchModelDeploymentMonitoringStatsAnomalies", - "fullName": "google.cloud.aiplatform.v1.JobService.SearchModelDeploymentMonitoringStatsAnomalies", - "async": true, - "parameters": [ - { - "name": "model_deployment_monitoring_job", - "type": "TYPE_STRING" - }, - { - "name": "deployed_model_id", - "type": "TYPE_STRING" - }, - { - "name": "feature_display_name", - "type": "TYPE_STRING" - }, - { - "name": "objectives", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "start_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "end_time", - "type": ".google.protobuf.Timestamp" - } - ], - "resultType": ".google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1.JobServiceClient" - }, - "method": { - "shortName": "SearchModelDeploymentMonitoringStatsAnomalies", - "fullName": "google.cloud.aiplatform.v1.JobService.SearchModelDeploymentMonitoringStatsAnomalies", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_JobService_GetModelDeploymentMonitoringJob_async", - "title": "DataFoundryService getModelDeploymentMonitoringJob Sample", - "origin": "API_DEFINITION", - "description": " Gets a ModelDeploymentMonitoringJob.", - "canonical": true, - "file": "job_service.get_model_deployment_monitoring_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetModelDeploymentMonitoringJob", - "fullName": "google.cloud.aiplatform.v1.JobService.GetModelDeploymentMonitoringJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1.JobServiceClient" - }, - "method": { - "shortName": "GetModelDeploymentMonitoringJob", - "fullName": "google.cloud.aiplatform.v1.JobService.GetModelDeploymentMonitoringJob", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_JobService_ListModelDeploymentMonitoringJobs_async", - "title": "DataFoundryService listModelDeploymentMonitoringJobs Sample", - "origin": "API_DEFINITION", - "description": " Lists ModelDeploymentMonitoringJobs in a Location.", - "canonical": true, - "file": "job_service.list_model_deployment_monitoring_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListModelDeploymentMonitoringJobs", - "fullName": "google.cloud.aiplatform.v1.JobService.ListModelDeploymentMonitoringJobs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1.JobServiceClient" - }, - "method": { - "shortName": "ListModelDeploymentMonitoringJobs", - "fullName": "google.cloud.aiplatform.v1.JobService.ListModelDeploymentMonitoringJobs", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_JobService_UpdateModelDeploymentMonitoringJob_async", - "title": "DataFoundryService updateModelDeploymentMonitoringJob Sample", - "origin": "API_DEFINITION", - "description": " Updates a ModelDeploymentMonitoringJob.", - "canonical": true, - "file": "job_service.update_model_deployment_monitoring_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateModelDeploymentMonitoringJob", - "fullName": "google.cloud.aiplatform.v1.JobService.UpdateModelDeploymentMonitoringJob", - "async": true, - "parameters": [ - { - "name": "model_deployment_monitoring_job", - "type": ".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1.JobServiceClient" - }, - "method": { - "shortName": "UpdateModelDeploymentMonitoringJob", - "fullName": "google.cloud.aiplatform.v1.JobService.UpdateModelDeploymentMonitoringJob", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_JobService_DeleteModelDeploymentMonitoringJob_async", - "title": "DataFoundryService deleteModelDeploymentMonitoringJob Sample", - "origin": "API_DEFINITION", - "description": " Deletes a ModelDeploymentMonitoringJob.", - "canonical": true, - "file": "job_service.delete_model_deployment_monitoring_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteModelDeploymentMonitoringJob", - "fullName": "google.cloud.aiplatform.v1.JobService.DeleteModelDeploymentMonitoringJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1.JobServiceClient" - }, - "method": { - "shortName": "DeleteModelDeploymentMonitoringJob", - "fullName": "google.cloud.aiplatform.v1.JobService.DeleteModelDeploymentMonitoringJob", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_JobService_PauseModelDeploymentMonitoringJob_async", - "title": "DataFoundryService pauseModelDeploymentMonitoringJob Sample", - "origin": "API_DEFINITION", - "description": " Pauses a ModelDeploymentMonitoringJob. If the job is running, the server makes a best effort to cancel the job. Will mark [ModelDeploymentMonitoringJob.state][google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.state] to 'PAUSED'.", - "canonical": true, - "file": "job_service.pause_model_deployment_monitoring_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PauseModelDeploymentMonitoringJob", - "fullName": "google.cloud.aiplatform.v1.JobService.PauseModelDeploymentMonitoringJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1.JobServiceClient" - }, - "method": { - "shortName": "PauseModelDeploymentMonitoringJob", - "fullName": "google.cloud.aiplatform.v1.JobService.PauseModelDeploymentMonitoringJob", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_JobService_ResumeModelDeploymentMonitoringJob_async", - "title": "DataFoundryService resumeModelDeploymentMonitoringJob Sample", - "origin": "API_DEFINITION", - "description": " Resumes a paused ModelDeploymentMonitoringJob. It will start to run from next scheduled time. A deleted ModelDeploymentMonitoringJob can't be resumed.", - "canonical": true, - "file": "job_service.resume_model_deployment_monitoring_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResumeModelDeploymentMonitoringJob", - "fullName": "google.cloud.aiplatform.v1.JobService.ResumeModelDeploymentMonitoringJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1.JobServiceClient" - }, - "method": { - "shortName": "ResumeModelDeploymentMonitoringJob", - "fullName": "google.cloud.aiplatform.v1.JobService.ResumeModelDeploymentMonitoringJob", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_LlmUtilityService_CountTokens_async", - "title": "DataFoundryService countTokens Sample", - "origin": "API_DEFINITION", - "description": " Perform a token counting.", - "canonical": true, - "file": "llm_utility_service.count_tokens.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 89, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CountTokens", - "fullName": "google.cloud.aiplatform.v1.LlmUtilityService.CountTokens", - "async": true, - "parameters": [ - { - "name": "endpoint", - "type": "TYPE_STRING" - }, - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "instances", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "contents", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "system_instruction", - "type": ".google.cloud.aiplatform.v1.Content" - }, - { - "name": "tools", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "generation_config", - "type": ".google.cloud.aiplatform.v1.GenerationConfig" - } - ], - "resultType": ".google.cloud.aiplatform.v1.CountTokensResponse", - "client": { - "shortName": "LlmUtilityServiceClient", - "fullName": "google.cloud.aiplatform.v1.LlmUtilityServiceClient" - }, - "method": { - "shortName": "CountTokens", - "fullName": "google.cloud.aiplatform.v1.LlmUtilityService.CountTokens", - "service": { - "shortName": "LlmUtilityService", - "fullName": "google.cloud.aiplatform.v1.LlmUtilityService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_LlmUtilityService_ComputeTokens_async", - "title": "DataFoundryService computeTokens Sample", - "origin": "API_DEFINITION", - "description": " Return a list of tokens based on the input text.", - "canonical": true, - "file": "llm_utility_service.compute_tokens.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ComputeTokens", - "fullName": "google.cloud.aiplatform.v1.LlmUtilityService.ComputeTokens", - "async": true, - "parameters": [ - { - "name": "endpoint", - "type": "TYPE_STRING" - }, - { - "name": "instances", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "contents", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ComputeTokensResponse", - "client": { - "shortName": "LlmUtilityServiceClient", - "fullName": "google.cloud.aiplatform.v1.LlmUtilityServiceClient" - }, - "method": { - "shortName": "ComputeTokens", - "fullName": "google.cloud.aiplatform.v1.LlmUtilityService.ComputeTokens", - "service": { - "shortName": "LlmUtilityService", - "fullName": "google.cloud.aiplatform.v1.LlmUtilityService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_MatchService_FindNeighbors_async", - "title": "DataFoundryService findNeighbors Sample", - "origin": "API_DEFINITION", - "description": " Finds the nearest neighbors of each vector within the request.", - "canonical": true, - "file": "match_service.find_neighbors.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FindNeighbors", - "fullName": "google.cloud.aiplatform.v1.MatchService.FindNeighbors", - "async": true, - "parameters": [ - { - "name": "index_endpoint", - "type": "TYPE_STRING" - }, - { - "name": "deployed_index_id", - "type": "TYPE_STRING" - }, - { - "name": "queries", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "return_full_datapoint", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.aiplatform.v1.FindNeighborsResponse", - "client": { - "shortName": "MatchServiceClient", - "fullName": "google.cloud.aiplatform.v1.MatchServiceClient" - }, - "method": { - "shortName": "FindNeighbors", - "fullName": "google.cloud.aiplatform.v1.MatchService.FindNeighbors", - "service": { - "shortName": "MatchService", - "fullName": "google.cloud.aiplatform.v1.MatchService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_MatchService_ReadIndexDatapoints_async", - "title": "DataFoundryService readIndexDatapoints Sample", - "origin": "API_DEFINITION", - "description": " Reads the datapoints/vectors of the given IDs. A maximum of 1000 datapoints can be retrieved in a batch.", - "canonical": true, - "file": "match_service.read_index_datapoints.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReadIndexDatapoints", - "fullName": "google.cloud.aiplatform.v1.MatchService.ReadIndexDatapoints", - "async": true, - "parameters": [ - { - "name": "index_endpoint", - "type": "TYPE_STRING" - }, - { - "name": "deployed_index_id", - "type": "TYPE_STRING" - }, - { - "name": "ids", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ReadIndexDatapointsResponse", - "client": { - "shortName": "MatchServiceClient", - "fullName": "google.cloud.aiplatform.v1.MatchServiceClient" - }, - "method": { - "shortName": "ReadIndexDatapoints", - "fullName": "google.cloud.aiplatform.v1.MatchService.ReadIndexDatapoints", - "service": { - "shortName": "MatchService", - "fullName": "google.cloud.aiplatform.v1.MatchService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_MetadataService_CreateMetadataStore_async", - "title": "DataFoundryService createMetadataStore Sample", - "origin": "API_DEFINITION", - "description": " Initializes a MetadataStore, including allocation of resources.", - "canonical": true, - "file": "metadata_service.create_metadata_store.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateMetadataStore", - "fullName": "google.cloud.aiplatform.v1.MetadataService.CreateMetadataStore", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "metadata_store", - "type": ".google.cloud.aiplatform.v1.MetadataStore" - }, - { - "name": "metadata_store_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1.MetadataServiceClient" - }, - "method": { - "shortName": "CreateMetadataStore", - "fullName": "google.cloud.aiplatform.v1.MetadataService.CreateMetadataStore", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_MetadataService_GetMetadataStore_async", - "title": "DataFoundryService getMetadataStore Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a specific MetadataStore.", - "canonical": true, - "file": "metadata_service.get_metadata_store.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMetadataStore", - "fullName": "google.cloud.aiplatform.v1.MetadataService.GetMetadataStore", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.MetadataStore", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1.MetadataServiceClient" - }, - "method": { - "shortName": "GetMetadataStore", - "fullName": "google.cloud.aiplatform.v1.MetadataService.GetMetadataStore", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_MetadataService_ListMetadataStores_async", - "title": "DataFoundryService listMetadataStores Sample", - "origin": "API_DEFINITION", - "description": " Lists MetadataStores for a Location.", - "canonical": true, - "file": "metadata_service.list_metadata_stores.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMetadataStores", - "fullName": "google.cloud.aiplatform.v1.MetadataService.ListMetadataStores", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ListMetadataStoresResponse", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1.MetadataServiceClient" - }, - "method": { - "shortName": "ListMetadataStores", - "fullName": "google.cloud.aiplatform.v1.MetadataService.ListMetadataStores", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_MetadataService_DeleteMetadataStore_async", - "title": "DataFoundryService deleteMetadataStore Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single MetadataStore and all its child resources (Artifacts, Executions, and Contexts).", - "canonical": true, - "file": "metadata_service.delete_metadata_store.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteMetadataStore", - "fullName": "google.cloud.aiplatform.v1.MetadataService.DeleteMetadataStore", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1.MetadataServiceClient" - }, - "method": { - "shortName": "DeleteMetadataStore", - "fullName": "google.cloud.aiplatform.v1.MetadataService.DeleteMetadataStore", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_MetadataService_CreateArtifact_async", - "title": "DataFoundryService createArtifact Sample", - "origin": "API_DEFINITION", - "description": " Creates an Artifact associated with a MetadataStore.", - "canonical": true, - "file": "metadata_service.create_artifact.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateArtifact", - "fullName": "google.cloud.aiplatform.v1.MetadataService.CreateArtifact", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "artifact", - "type": ".google.cloud.aiplatform.v1.Artifact" - }, - { - "name": "artifact_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.Artifact", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1.MetadataServiceClient" - }, - "method": { - "shortName": "CreateArtifact", - "fullName": "google.cloud.aiplatform.v1.MetadataService.CreateArtifact", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_MetadataService_GetArtifact_async", - "title": "DataFoundryService getArtifact Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a specific Artifact.", - "canonical": true, - "file": "metadata_service.get_artifact.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetArtifact", - "fullName": "google.cloud.aiplatform.v1.MetadataService.GetArtifact", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.Artifact", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1.MetadataServiceClient" - }, - "method": { - "shortName": "GetArtifact", - "fullName": "google.cloud.aiplatform.v1.MetadataService.GetArtifact", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_MetadataService_ListArtifacts_async", - "title": "DataFoundryService listArtifacts Sample", - "origin": "API_DEFINITION", - "description": " Lists Artifacts in the MetadataStore.", - "canonical": true, - "file": "metadata_service.list_artifacts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 111, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListArtifacts", - "fullName": "google.cloud.aiplatform.v1.MetadataService.ListArtifacts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ListArtifactsResponse", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1.MetadataServiceClient" - }, - "method": { - "shortName": "ListArtifacts", - "fullName": "google.cloud.aiplatform.v1.MetadataService.ListArtifacts", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_MetadataService_UpdateArtifact_async", - "title": "DataFoundryService updateArtifact Sample", - "origin": "API_DEFINITION", - "description": " Updates a stored Artifact.", - "canonical": true, - "file": "metadata_service.update_artifact.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateArtifact", - "fullName": "google.cloud.aiplatform.v1.MetadataService.UpdateArtifact", - "async": true, - "parameters": [ - { - "name": "artifact", - "type": ".google.cloud.aiplatform.v1.Artifact" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.aiplatform.v1.Artifact", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1.MetadataServiceClient" - }, - "method": { - "shortName": "UpdateArtifact", - "fullName": "google.cloud.aiplatform.v1.MetadataService.UpdateArtifact", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_MetadataService_DeleteArtifact_async", - "title": "DataFoundryService deleteArtifact Sample", - "origin": "API_DEFINITION", - "description": " Deletes an Artifact.", - "canonical": true, - "file": "metadata_service.delete_artifact.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteArtifact", - "fullName": "google.cloud.aiplatform.v1.MetadataService.DeleteArtifact", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1.MetadataServiceClient" - }, - "method": { - "shortName": "DeleteArtifact", - "fullName": "google.cloud.aiplatform.v1.MetadataService.DeleteArtifact", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_MetadataService_PurgeArtifacts_async", - "title": "DataFoundryService purgeArtifacts Sample", - "origin": "API_DEFINITION", - "description": " Purges Artifacts.", - "canonical": true, - "file": "metadata_service.purge_artifacts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PurgeArtifacts", - "fullName": "google.cloud.aiplatform.v1.MetadataService.PurgeArtifacts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1.MetadataServiceClient" - }, - "method": { - "shortName": "PurgeArtifacts", - "fullName": "google.cloud.aiplatform.v1.MetadataService.PurgeArtifacts", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_MetadataService_CreateContext_async", - "title": "DataFoundryService createContext Sample", - "origin": "API_DEFINITION", - "description": " Creates a Context associated with a MetadataStore.", - "canonical": true, - "file": "metadata_service.create_context.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateContext", - "fullName": "google.cloud.aiplatform.v1.MetadataService.CreateContext", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "context", - "type": ".google.cloud.aiplatform.v1.Context" - }, - { - "name": "context_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.Context", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1.MetadataServiceClient" - }, - "method": { - "shortName": "CreateContext", - "fullName": "google.cloud.aiplatform.v1.MetadataService.CreateContext", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_MetadataService_GetContext_async", - "title": "DataFoundryService getContext Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a specific Context.", - "canonical": true, - "file": "metadata_service.get_context.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetContext", - "fullName": "google.cloud.aiplatform.v1.MetadataService.GetContext", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.Context", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1.MetadataServiceClient" - }, - "method": { - "shortName": "GetContext", - "fullName": "google.cloud.aiplatform.v1.MetadataService.GetContext", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_MetadataService_ListContexts_async", - "title": "DataFoundryService listContexts Sample", - "origin": "API_DEFINITION", - "description": " Lists Contexts on the MetadataStore.", - "canonical": true, - "file": "metadata_service.list_contexts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 114, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListContexts", - "fullName": "google.cloud.aiplatform.v1.MetadataService.ListContexts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ListContextsResponse", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1.MetadataServiceClient" - }, - "method": { - "shortName": "ListContexts", - "fullName": "google.cloud.aiplatform.v1.MetadataService.ListContexts", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_MetadataService_UpdateContext_async", - "title": "DataFoundryService updateContext Sample", - "origin": "API_DEFINITION", - "description": " Updates a stored Context.", - "canonical": true, - "file": "metadata_service.update_context.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateContext", - "fullName": "google.cloud.aiplatform.v1.MetadataService.UpdateContext", - "async": true, - "parameters": [ - { - "name": "context", - "type": ".google.cloud.aiplatform.v1.Context" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.aiplatform.v1.Context", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1.MetadataServiceClient" - }, - "method": { - "shortName": "UpdateContext", - "fullName": "google.cloud.aiplatform.v1.MetadataService.UpdateContext", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_MetadataService_DeleteContext_async", - "title": "DataFoundryService deleteContext Sample", - "origin": "API_DEFINITION", - "description": " Deletes a stored Context.", - "canonical": true, - "file": "metadata_service.delete_context.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteContext", - "fullName": "google.cloud.aiplatform.v1.MetadataService.DeleteContext", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1.MetadataServiceClient" - }, - "method": { - "shortName": "DeleteContext", - "fullName": "google.cloud.aiplatform.v1.MetadataService.DeleteContext", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_MetadataService_PurgeContexts_async", - "title": "DataFoundryService purgeContexts Sample", - "origin": "API_DEFINITION", - "description": " Purges Contexts.", - "canonical": true, - "file": "metadata_service.purge_contexts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PurgeContexts", - "fullName": "google.cloud.aiplatform.v1.MetadataService.PurgeContexts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1.MetadataServiceClient" - }, - "method": { - "shortName": "PurgeContexts", - "fullName": "google.cloud.aiplatform.v1.MetadataService.PurgeContexts", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_MetadataService_AddContextArtifactsAndExecutions_async", - "title": "DataFoundryService addContextArtifactsAndExecutions Sample", - "origin": "API_DEFINITION", - "description": " Adds a set of Artifacts and Executions to a Context. If any of the Artifacts or Executions have already been added to a Context, they are simply skipped.", - "canonical": true, - "file": "metadata_service.add_context_artifacts_and_executions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddContextArtifactsAndExecutions", - "fullName": "google.cloud.aiplatform.v1.MetadataService.AddContextArtifactsAndExecutions", - "async": true, - "parameters": [ - { - "name": "context", - "type": "TYPE_STRING" - }, - { - "name": "artifacts", - "type": "TYPE_STRING[]" - }, - { - "name": "executions", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1.MetadataServiceClient" - }, - "method": { - "shortName": "AddContextArtifactsAndExecutions", - "fullName": "google.cloud.aiplatform.v1.MetadataService.AddContextArtifactsAndExecutions", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_MetadataService_AddContextChildren_async", - "title": "DataFoundryService addContextChildren Sample", - "origin": "API_DEFINITION", - "description": " Adds a set of Contexts as children to a parent Context. If any of the child Contexts have already been added to the parent Context, they are simply skipped. If this call would create a cycle or cause any Context to have more than 10 parents, the request will fail with an INVALID_ARGUMENT error.", - "canonical": true, - "file": "metadata_service.add_context_children.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddContextChildren", - "fullName": "google.cloud.aiplatform.v1.MetadataService.AddContextChildren", - "async": true, - "parameters": [ - { - "name": "context", - "type": "TYPE_STRING" - }, - { - "name": "child_contexts", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.cloud.aiplatform.v1.AddContextChildrenResponse", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1.MetadataServiceClient" - }, - "method": { - "shortName": "AddContextChildren", - "fullName": "google.cloud.aiplatform.v1.MetadataService.AddContextChildren", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_MetadataService_RemoveContextChildren_async", - "title": "DataFoundryService removeContextChildren Sample", - "origin": "API_DEFINITION", - "description": " Remove a set of children contexts from a parent Context. If any of the child Contexts were NOT added to the parent Context, they are simply skipped.", - "canonical": true, - "file": "metadata_service.remove_context_children.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveContextChildren", - "fullName": "google.cloud.aiplatform.v1.MetadataService.RemoveContextChildren", - "async": true, - "parameters": [ - { - "name": "context", - "type": "TYPE_STRING" - }, - { - "name": "child_contexts", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.cloud.aiplatform.v1.RemoveContextChildrenResponse", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1.MetadataServiceClient" - }, - "method": { - "shortName": "RemoveContextChildren", - "fullName": "google.cloud.aiplatform.v1.MetadataService.RemoveContextChildren", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_MetadataService_QueryContextLineageSubgraph_async", - "title": "DataFoundryService queryContextLineageSubgraph Sample", - "origin": "API_DEFINITION", - "description": " Retrieves Artifacts and Executions within the specified Context, connected by Event edges and returned as a LineageSubgraph.", - "canonical": true, - "file": "metadata_service.query_context_lineage_subgraph.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryContextLineageSubgraph", - "fullName": "google.cloud.aiplatform.v1.MetadataService.QueryContextLineageSubgraph", - "async": true, - "parameters": [ - { - "name": "context", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.LineageSubgraph", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1.MetadataServiceClient" - }, - "method": { - "shortName": "QueryContextLineageSubgraph", - "fullName": "google.cloud.aiplatform.v1.MetadataService.QueryContextLineageSubgraph", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_MetadataService_CreateExecution_async", - "title": "DataFoundryService createExecution Sample", - "origin": "API_DEFINITION", - "description": " Creates an Execution associated with a MetadataStore.", - "canonical": true, - "file": "metadata_service.create_execution.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateExecution", - "fullName": "google.cloud.aiplatform.v1.MetadataService.CreateExecution", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "execution", - "type": ".google.cloud.aiplatform.v1.Execution" - }, - { - "name": "execution_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.Execution", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1.MetadataServiceClient" - }, - "method": { - "shortName": "CreateExecution", - "fullName": "google.cloud.aiplatform.v1.MetadataService.CreateExecution", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_MetadataService_GetExecution_async", - "title": "DataFoundryService getExecution Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a specific Execution.", - "canonical": true, - "file": "metadata_service.get_execution.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetExecution", - "fullName": "google.cloud.aiplatform.v1.MetadataService.GetExecution", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.Execution", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1.MetadataServiceClient" - }, - "method": { - "shortName": "GetExecution", - "fullName": "google.cloud.aiplatform.v1.MetadataService.GetExecution", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_MetadataService_ListExecutions_async", - "title": "DataFoundryService listExecutions Sample", - "origin": "API_DEFINITION", - "description": " Lists Executions in the MetadataStore.", - "canonical": true, - "file": "metadata_service.list_executions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 111, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListExecutions", - "fullName": "google.cloud.aiplatform.v1.MetadataService.ListExecutions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ListExecutionsResponse", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1.MetadataServiceClient" - }, - "method": { - "shortName": "ListExecutions", - "fullName": "google.cloud.aiplatform.v1.MetadataService.ListExecutions", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_MetadataService_UpdateExecution_async", - "title": "DataFoundryService updateExecution Sample", - "origin": "API_DEFINITION", - "description": " Updates a stored Execution.", - "canonical": true, - "file": "metadata_service.update_execution.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateExecution", - "fullName": "google.cloud.aiplatform.v1.MetadataService.UpdateExecution", - "async": true, - "parameters": [ - { - "name": "execution", - "type": ".google.cloud.aiplatform.v1.Execution" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.aiplatform.v1.Execution", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1.MetadataServiceClient" - }, - "method": { - "shortName": "UpdateExecution", - "fullName": "google.cloud.aiplatform.v1.MetadataService.UpdateExecution", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_MetadataService_DeleteExecution_async", - "title": "DataFoundryService deleteExecution Sample", - "origin": "API_DEFINITION", - "description": " Deletes an Execution.", - "canonical": true, - "file": "metadata_service.delete_execution.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteExecution", - "fullName": "google.cloud.aiplatform.v1.MetadataService.DeleteExecution", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1.MetadataServiceClient" - }, - "method": { - "shortName": "DeleteExecution", - "fullName": "google.cloud.aiplatform.v1.MetadataService.DeleteExecution", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_MetadataService_PurgeExecutions_async", - "title": "DataFoundryService purgeExecutions Sample", - "origin": "API_DEFINITION", - "description": " Purges Executions.", - "canonical": true, - "file": "metadata_service.purge_executions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PurgeExecutions", - "fullName": "google.cloud.aiplatform.v1.MetadataService.PurgeExecutions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1.MetadataServiceClient" - }, - "method": { - "shortName": "PurgeExecutions", - "fullName": "google.cloud.aiplatform.v1.MetadataService.PurgeExecutions", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_MetadataService_AddExecutionEvents_async", - "title": "DataFoundryService addExecutionEvents Sample", - "origin": "API_DEFINITION", - "description": " Adds Events to the specified Execution. An Event indicates whether an Artifact was used as an input or output for an Execution. If an Event already exists between the Execution and the Artifact, the Event is skipped.", - "canonical": true, - "file": "metadata_service.add_execution_events.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddExecutionEvents", - "fullName": "google.cloud.aiplatform.v1.MetadataService.AddExecutionEvents", - "async": true, - "parameters": [ - { - "name": "execution", - "type": "TYPE_STRING" - }, - { - "name": "events", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.aiplatform.v1.AddExecutionEventsResponse", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1.MetadataServiceClient" - }, - "method": { - "shortName": "AddExecutionEvents", - "fullName": "google.cloud.aiplatform.v1.MetadataService.AddExecutionEvents", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_MetadataService_QueryExecutionInputsAndOutputs_async", - "title": "DataFoundryService queryExecutionInputsAndOutputs Sample", - "origin": "API_DEFINITION", - "description": " Obtains the set of input and output Artifacts for this Execution, in the form of LineageSubgraph that also contains the Execution and connecting Events.", - "canonical": true, - "file": "metadata_service.query_execution_inputs_and_outputs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryExecutionInputsAndOutputs", - "fullName": "google.cloud.aiplatform.v1.MetadataService.QueryExecutionInputsAndOutputs", - "async": true, - "parameters": [ - { - "name": "execution", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.LineageSubgraph", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1.MetadataServiceClient" - }, - "method": { - "shortName": "QueryExecutionInputsAndOutputs", - "fullName": "google.cloud.aiplatform.v1.MetadataService.QueryExecutionInputsAndOutputs", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_MetadataService_CreateMetadataSchema_async", - "title": "DataFoundryService createMetadataSchema Sample", - "origin": "API_DEFINITION", - "description": " Creates a MetadataSchema.", - "canonical": true, - "file": "metadata_service.create_metadata_schema.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateMetadataSchema", - "fullName": "google.cloud.aiplatform.v1.MetadataService.CreateMetadataSchema", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "metadata_schema", - "type": ".google.cloud.aiplatform.v1.MetadataSchema" - }, - { - "name": "metadata_schema_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.MetadataSchema", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1.MetadataServiceClient" - }, - "method": { - "shortName": "CreateMetadataSchema", - "fullName": "google.cloud.aiplatform.v1.MetadataService.CreateMetadataSchema", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_MetadataService_GetMetadataSchema_async", - "title": "DataFoundryService getMetadataSchema Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a specific MetadataSchema.", - "canonical": true, - "file": "metadata_service.get_metadata_schema.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMetadataSchema", - "fullName": "google.cloud.aiplatform.v1.MetadataService.GetMetadataSchema", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.MetadataSchema", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1.MetadataServiceClient" - }, - "method": { - "shortName": "GetMetadataSchema", - "fullName": "google.cloud.aiplatform.v1.MetadataService.GetMetadataSchema", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_MetadataService_ListMetadataSchemas_async", - "title": "DataFoundryService listMetadataSchemas Sample", - "origin": "API_DEFINITION", - "description": " Lists MetadataSchemas.", - "canonical": true, - "file": "metadata_service.list_metadata_schemas.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMetadataSchemas", - "fullName": "google.cloud.aiplatform.v1.MetadataService.ListMetadataSchemas", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ListMetadataSchemasResponse", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1.MetadataServiceClient" - }, - "method": { - "shortName": "ListMetadataSchemas", - "fullName": "google.cloud.aiplatform.v1.MetadataService.ListMetadataSchemas", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_MetadataService_QueryArtifactLineageSubgraph_async", - "title": "DataFoundryService queryArtifactLineageSubgraph Sample", - "origin": "API_DEFINITION", - "description": " Retrieves lineage of an Artifact represented through Artifacts and Executions connected by Event edges and returned as a LineageSubgraph.", - "canonical": true, - "file": "metadata_service.query_artifact_lineage_subgraph.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 91, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryArtifactLineageSubgraph", - "fullName": "google.cloud.aiplatform.v1.MetadataService.QueryArtifactLineageSubgraph", - "async": true, - "parameters": [ - { - "name": "artifact", - "type": "TYPE_STRING" - }, - { - "name": "max_hops", - "type": "TYPE_INT32" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.LineageSubgraph", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1.MetadataServiceClient" - }, - "method": { - "shortName": "QueryArtifactLineageSubgraph", - "fullName": "google.cloud.aiplatform.v1.MetadataService.QueryArtifactLineageSubgraph", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_MigrationService_SearchMigratableResources_async", - "title": "DataFoundryService searchMigratableResources Sample", - "origin": "API_DEFINITION", - "description": " Searches all of the resources in automl.googleapis.com, datalabeling.googleapis.com and ml.googleapis.com that can be migrated to Vertex AI's given location.", - "canonical": true, - "file": "migration_service.search_migratable_resources.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchMigratableResources", - "fullName": "google.cloud.aiplatform.v1.MigrationService.SearchMigratableResources", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.SearchMigratableResourcesResponse", - "client": { - "shortName": "MigrationServiceClient", - "fullName": "google.cloud.aiplatform.v1.MigrationServiceClient" - }, - "method": { - "shortName": "SearchMigratableResources", - "fullName": "google.cloud.aiplatform.v1.MigrationService.SearchMigratableResources", - "service": { - "shortName": "MigrationService", - "fullName": "google.cloud.aiplatform.v1.MigrationService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_MigrationService_BatchMigrateResources_async", - "title": "DataFoundryService batchMigrateResources Sample", - "origin": "API_DEFINITION", - "description": " Batch migrates resources from ml.googleapis.com, automl.googleapis.com, and datalabeling.googleapis.com to Vertex AI.", - "canonical": true, - "file": "migration_service.batch_migrate_resources.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchMigrateResources", - "fullName": "google.cloud.aiplatform.v1.MigrationService.BatchMigrateResources", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "migrate_resource_requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MigrationServiceClient", - "fullName": "google.cloud.aiplatform.v1.MigrationServiceClient" - }, - "method": { - "shortName": "BatchMigrateResources", - "fullName": "google.cloud.aiplatform.v1.MigrationService.BatchMigrateResources", - "service": { - "shortName": "MigrationService", - "fullName": "google.cloud.aiplatform.v1.MigrationService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_ModelGardenService_GetPublisherModel_async", - "title": "DataFoundryService getPublisherModel Sample", - "origin": "API_DEFINITION", - "description": " Gets a Model Garden publisher model.", - "canonical": true, - "file": "model_garden_service.get_publisher_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPublisherModel", - "fullName": "google.cloud.aiplatform.v1.ModelGardenService.GetPublisherModel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.aiplatform.v1.PublisherModelView" - }, - { - "name": "is_hugging_face_model", - "type": "TYPE_BOOL" - }, - { - "name": "hugging_face_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.PublisherModel", - "client": { - "shortName": "ModelGardenServiceClient", - "fullName": "google.cloud.aiplatform.v1.ModelGardenServiceClient" - }, - "method": { - "shortName": "GetPublisherModel", - "fullName": "google.cloud.aiplatform.v1.ModelGardenService.GetPublisherModel", - "service": { - "shortName": "ModelGardenService", - "fullName": "google.cloud.aiplatform.v1.ModelGardenService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_ModelGardenService_Deploy_async", - "title": "DataFoundryService deploy Sample", - "origin": "API_DEFINITION", - "description": " Deploys a model to a new endpoint.", - "canonical": true, - "file": "model_garden_service.deploy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Deploy", - "fullName": "google.cloud.aiplatform.v1.ModelGardenService.Deploy", - "async": true, - "parameters": [ - { - "name": "publisher_model_name", - "type": "TYPE_STRING" - }, - { - "name": "hugging_face_model_id", - "type": "TYPE_STRING" - }, - { - "name": "destination", - "type": "TYPE_STRING" - }, - { - "name": "model_config", - "type": ".google.cloud.aiplatform.v1.DeployRequest.ModelConfig" - }, - { - "name": "endpoint_config", - "type": ".google.cloud.aiplatform.v1.DeployRequest.EndpointConfig" - }, - { - "name": "deploy_config", - "type": ".google.cloud.aiplatform.v1.DeployRequest.DeployConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ModelGardenServiceClient", - "fullName": "google.cloud.aiplatform.v1.ModelGardenServiceClient" - }, - "method": { - "shortName": "Deploy", - "fullName": "google.cloud.aiplatform.v1.ModelGardenService.Deploy", - "service": { - "shortName": "ModelGardenService", - "fullName": "google.cloud.aiplatform.v1.ModelGardenService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_ModelService_UploadModel_async", - "title": "DataFoundryService uploadModel Sample", - "origin": "API_DEFINITION", - "description": " Uploads a Model artifact into Vertex AI.", - "canonical": true, - "file": "model_service.upload_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UploadModel", - "fullName": "google.cloud.aiplatform.v1.ModelService.UploadModel", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "parent_model", - "type": "TYPE_STRING" - }, - { - "name": "model_id", - "type": "TYPE_STRING" - }, - { - "name": "model", - "type": ".google.cloud.aiplatform.v1.Model" - }, - { - "name": "service_account", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.aiplatform.v1.ModelServiceClient" - }, - "method": { - "shortName": "UploadModel", - "fullName": "google.cloud.aiplatform.v1.ModelService.UploadModel", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.aiplatform.v1.ModelService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_ModelService_GetModel_async", - "title": "DataFoundryService getModel Sample", - "origin": "API_DEFINITION", - "description": " Gets a Model.", - "canonical": true, - "file": "model_service.get_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetModel", - "fullName": "google.cloud.aiplatform.v1.ModelService.GetModel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.Model", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.aiplatform.v1.ModelServiceClient" - }, - "method": { - "shortName": "GetModel", - "fullName": "google.cloud.aiplatform.v1.ModelService.GetModel", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.aiplatform.v1.ModelService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_ModelService_ListModels_async", - "title": "DataFoundryService listModels Sample", - "origin": "API_DEFINITION", - "description": " Lists Models in a Location.", - "canonical": true, - "file": "model_service.list_models.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 102, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListModels", - "fullName": "google.cloud.aiplatform.v1.ModelService.ListModels", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ListModelsResponse", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.aiplatform.v1.ModelServiceClient" - }, - "method": { - "shortName": "ListModels", - "fullName": "google.cloud.aiplatform.v1.ModelService.ListModels", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.aiplatform.v1.ModelService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_ModelService_ListModelVersions_async", - "title": "DataFoundryService listModelVersions Sample", - "origin": "API_DEFINITION", - "description": " Lists versions of the specified model.", - "canonical": true, - "file": "model_service.list_model_versions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 92, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListModelVersions", - "fullName": "google.cloud.aiplatform.v1.ModelService.ListModelVersions", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ListModelVersionsResponse", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.aiplatform.v1.ModelServiceClient" - }, - "method": { - "shortName": "ListModelVersions", - "fullName": "google.cloud.aiplatform.v1.ModelService.ListModelVersions", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.aiplatform.v1.ModelService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_ModelService_ListModelVersionCheckpoints_async", - "title": "DataFoundryService listModelVersionCheckpoints Sample", - "origin": "API_DEFINITION", - "description": " Lists checkpoints of the specified model version.", - "canonical": true, - "file": "model_service.list_model_version_checkpoints.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListModelVersionCheckpoints", - "fullName": "google.cloud.aiplatform.v1.ModelService.ListModelVersionCheckpoints", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ListModelVersionCheckpointsResponse", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.aiplatform.v1.ModelServiceClient" - }, - "method": { - "shortName": "ListModelVersionCheckpoints", - "fullName": "google.cloud.aiplatform.v1.ModelService.ListModelVersionCheckpoints", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.aiplatform.v1.ModelService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_ModelService_UpdateModel_async", - "title": "DataFoundryService updateModel Sample", - "origin": "API_DEFINITION", - "description": " Updates a Model.", - "canonical": true, - "file": "model_service.update_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateModel", - "fullName": "google.cloud.aiplatform.v1.ModelService.UpdateModel", - "async": true, - "parameters": [ - { - "name": "model", - "type": ".google.cloud.aiplatform.v1.Model" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1.Model", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.aiplatform.v1.ModelServiceClient" - }, - "method": { - "shortName": "UpdateModel", - "fullName": "google.cloud.aiplatform.v1.ModelService.UpdateModel", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.aiplatform.v1.ModelService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_ModelService_UpdateExplanationDataset_async", - "title": "DataFoundryService updateExplanationDataset Sample", - "origin": "API_DEFINITION", - "description": " Incrementally update the dataset used for an examples model.", - "canonical": true, - "file": "model_service.update_explanation_dataset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateExplanationDataset", - "fullName": "google.cloud.aiplatform.v1.ModelService.UpdateExplanationDataset", - "async": true, - "parameters": [ - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "examples", - "type": ".google.cloud.aiplatform.v1.Examples" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.aiplatform.v1.ModelServiceClient" - }, - "method": { - "shortName": "UpdateExplanationDataset", - "fullName": "google.cloud.aiplatform.v1.ModelService.UpdateExplanationDataset", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.aiplatform.v1.ModelService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_ModelService_DeleteModel_async", - "title": "DataFoundryService deleteModel Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Model. A model cannot be deleted if any [Endpoint][google.cloud.aiplatform.v1.Endpoint] resource has a [DeployedModel][google.cloud.aiplatform.v1.DeployedModel] based on the model in its [deployed_models][google.cloud.aiplatform.v1.Endpoint.deployed_models] field.", - "canonical": true, - "file": "model_service.delete_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteModel", - "fullName": "google.cloud.aiplatform.v1.ModelService.DeleteModel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.aiplatform.v1.ModelServiceClient" - }, - "method": { - "shortName": "DeleteModel", - "fullName": "google.cloud.aiplatform.v1.ModelService.DeleteModel", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.aiplatform.v1.ModelService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_ModelService_DeleteModelVersion_async", - "title": "DataFoundryService deleteModelVersion Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Model version. Model version can only be deleted if there are no [DeployedModels][google.cloud.aiplatform.v1.DeployedModel] created from it. Deleting the only version in the Model is not allowed. Use [DeleteModel][google.cloud.aiplatform.v1.ModelService.DeleteModel] for deleting the Model instead.", - "canonical": true, - "file": "model_service.delete_model_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteModelVersion", - "fullName": "google.cloud.aiplatform.v1.ModelService.DeleteModelVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.aiplatform.v1.ModelServiceClient" - }, - "method": { - "shortName": "DeleteModelVersion", - "fullName": "google.cloud.aiplatform.v1.ModelService.DeleteModelVersion", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.aiplatform.v1.ModelService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_ModelService_MergeVersionAliases_async", - "title": "DataFoundryService mergeVersionAliases Sample", - "origin": "API_DEFINITION", - "description": " Merges a set of aliases for a Model version.", - "canonical": true, - "file": "model_service.merge_version_aliases.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "MergeVersionAliases", - "fullName": "google.cloud.aiplatform.v1.ModelService.MergeVersionAliases", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "version_aliases", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.cloud.aiplatform.v1.Model", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.aiplatform.v1.ModelServiceClient" - }, - "method": { - "shortName": "MergeVersionAliases", - "fullName": "google.cloud.aiplatform.v1.ModelService.MergeVersionAliases", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.aiplatform.v1.ModelService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_ModelService_ExportModel_async", - "title": "DataFoundryService exportModel Sample", - "origin": "API_DEFINITION", - "description": " Exports a trained, exportable Model to a location specified by the user. A Model is considered to be exportable if it has at least one [supported export format][google.cloud.aiplatform.v1.Model.supported_export_formats].", - "canonical": true, - "file": "model_service.export_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportModel", - "fullName": "google.cloud.aiplatform.v1.ModelService.ExportModel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "output_config", - "type": ".google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.aiplatform.v1.ModelServiceClient" - }, - "method": { - "shortName": "ExportModel", - "fullName": "google.cloud.aiplatform.v1.ModelService.ExportModel", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.aiplatform.v1.ModelService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_ModelService_CopyModel_async", - "title": "DataFoundryService copyModel Sample", - "origin": "API_DEFINITION", - "description": " Copies an already existing Vertex AI Model into the specified Location. The source Model must exist in the same Project. When copying custom Models, the users themselves are responsible for [Model.metadata][google.cloud.aiplatform.v1.Model.metadata] content to be region-agnostic, as well as making sure that any resources (e.g. files) it depends on remain accessible.", - "canonical": true, - "file": "model_service.copy_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 92, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CopyModel", - "fullName": "google.cloud.aiplatform.v1.ModelService.CopyModel", - "async": true, - "parameters": [ - { - "name": "model_id", - "type": "TYPE_STRING" - }, - { - "name": "parent_model", - "type": "TYPE_STRING" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "source_model", - "type": "TYPE_STRING" - }, - { - "name": "encryption_spec", - "type": ".google.cloud.aiplatform.v1.EncryptionSpec" - }, - { - "name": "custom_service_account", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.aiplatform.v1.ModelServiceClient" - }, - "method": { - "shortName": "CopyModel", - "fullName": "google.cloud.aiplatform.v1.ModelService.CopyModel", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.aiplatform.v1.ModelService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_ModelService_ImportModelEvaluation_async", - "title": "DataFoundryService importModelEvaluation Sample", - "origin": "API_DEFINITION", - "description": " Imports an externally generated ModelEvaluation.", - "canonical": true, - "file": "model_service.import_model_evaluation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportModelEvaluation", - "fullName": "google.cloud.aiplatform.v1.ModelService.ImportModelEvaluation", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "model_evaluation", - "type": ".google.cloud.aiplatform.v1.ModelEvaluation" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ModelEvaluation", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.aiplatform.v1.ModelServiceClient" - }, - "method": { - "shortName": "ImportModelEvaluation", - "fullName": "google.cloud.aiplatform.v1.ModelService.ImportModelEvaluation", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.aiplatform.v1.ModelService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_ModelService_BatchImportModelEvaluationSlices_async", - "title": "DataFoundryService batchImportModelEvaluationSlices Sample", - "origin": "API_DEFINITION", - "description": " Imports a list of externally generated ModelEvaluationSlice.", - "canonical": true, - "file": "model_service.batch_import_model_evaluation_slices.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchImportModelEvaluationSlices", - "fullName": "google.cloud.aiplatform.v1.ModelService.BatchImportModelEvaluationSlices", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "model_evaluation_slices", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.aiplatform.v1.ModelServiceClient" - }, - "method": { - "shortName": "BatchImportModelEvaluationSlices", - "fullName": "google.cloud.aiplatform.v1.ModelService.BatchImportModelEvaluationSlices", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.aiplatform.v1.ModelService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_ModelService_BatchImportEvaluatedAnnotations_async", - "title": "DataFoundryService batchImportEvaluatedAnnotations Sample", - "origin": "API_DEFINITION", - "description": " Imports a list of externally generated EvaluatedAnnotations.", - "canonical": true, - "file": "model_service.batch_import_evaluated_annotations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchImportEvaluatedAnnotations", - "fullName": "google.cloud.aiplatform.v1.ModelService.BatchImportEvaluatedAnnotations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "evaluated_annotations", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.aiplatform.v1.BatchImportEvaluatedAnnotationsResponse", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.aiplatform.v1.ModelServiceClient" - }, - "method": { - "shortName": "BatchImportEvaluatedAnnotations", - "fullName": "google.cloud.aiplatform.v1.ModelService.BatchImportEvaluatedAnnotations", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.aiplatform.v1.ModelService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_ModelService_GetModelEvaluation_async", - "title": "DataFoundryService getModelEvaluation Sample", - "origin": "API_DEFINITION", - "description": " Gets a ModelEvaluation.", - "canonical": true, - "file": "model_service.get_model_evaluation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetModelEvaluation", - "fullName": "google.cloud.aiplatform.v1.ModelService.GetModelEvaluation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ModelEvaluation", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.aiplatform.v1.ModelServiceClient" - }, - "method": { - "shortName": "GetModelEvaluation", - "fullName": "google.cloud.aiplatform.v1.ModelService.GetModelEvaluation", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.aiplatform.v1.ModelService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_ModelService_ListModelEvaluations_async", - "title": "DataFoundryService listModelEvaluations Sample", - "origin": "API_DEFINITION", - "description": " Lists ModelEvaluations in a Model.", - "canonical": true, - "file": "model_service.list_model_evaluations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListModelEvaluations", - "fullName": "google.cloud.aiplatform.v1.ModelService.ListModelEvaluations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ListModelEvaluationsResponse", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.aiplatform.v1.ModelServiceClient" - }, - "method": { - "shortName": "ListModelEvaluations", - "fullName": "google.cloud.aiplatform.v1.ModelService.ListModelEvaluations", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.aiplatform.v1.ModelService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_ModelService_GetModelEvaluationSlice_async", - "title": "DataFoundryService getModelEvaluationSlice Sample", - "origin": "API_DEFINITION", - "description": " Gets a ModelEvaluationSlice.", - "canonical": true, - "file": "model_service.get_model_evaluation_slice.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetModelEvaluationSlice", - "fullName": "google.cloud.aiplatform.v1.ModelService.GetModelEvaluationSlice", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ModelEvaluationSlice", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.aiplatform.v1.ModelServiceClient" - }, - "method": { - "shortName": "GetModelEvaluationSlice", - "fullName": "google.cloud.aiplatform.v1.ModelService.GetModelEvaluationSlice", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.aiplatform.v1.ModelService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_ModelService_ListModelEvaluationSlices_async", - "title": "DataFoundryService listModelEvaluationSlices Sample", - "origin": "API_DEFINITION", - "description": " Lists ModelEvaluationSlices in a ModelEvaluation.", - "canonical": true, - "file": "model_service.list_model_evaluation_slices.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListModelEvaluationSlices", - "fullName": "google.cloud.aiplatform.v1.ModelService.ListModelEvaluationSlices", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.aiplatform.v1.ModelServiceClient" - }, - "method": { - "shortName": "ListModelEvaluationSlices", - "fullName": "google.cloud.aiplatform.v1.ModelService.ListModelEvaluationSlices", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.aiplatform.v1.ModelService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_NotebookService_CreateNotebookRuntimeTemplate_async", - "title": "DataFoundryService createNotebookRuntimeTemplate Sample", - "origin": "API_DEFINITION", - "description": " Creates a NotebookRuntimeTemplate.", - "canonical": true, - "file": "notebook_service.create_notebook_runtime_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateNotebookRuntimeTemplate", - "fullName": "google.cloud.aiplatform.v1.NotebookService.CreateNotebookRuntimeTemplate", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "notebook_runtime_template", - "type": ".google.cloud.aiplatform.v1.NotebookRuntimeTemplate" - }, - { - "name": "notebook_runtime_template_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.aiplatform.v1.NotebookServiceClient" - }, - "method": { - "shortName": "CreateNotebookRuntimeTemplate", - "fullName": "google.cloud.aiplatform.v1.NotebookService.CreateNotebookRuntimeTemplate", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.aiplatform.v1.NotebookService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_NotebookService_GetNotebookRuntimeTemplate_async", - "title": "DataFoundryService getNotebookRuntimeTemplate Sample", - "origin": "API_DEFINITION", - "description": " Gets a NotebookRuntimeTemplate.", - "canonical": true, - "file": "notebook_service.get_notebook_runtime_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetNotebookRuntimeTemplate", - "fullName": "google.cloud.aiplatform.v1.NotebookService.GetNotebookRuntimeTemplate", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.NotebookRuntimeTemplate", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.aiplatform.v1.NotebookServiceClient" - }, - "method": { - "shortName": "GetNotebookRuntimeTemplate", - "fullName": "google.cloud.aiplatform.v1.NotebookService.GetNotebookRuntimeTemplate", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.aiplatform.v1.NotebookService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_NotebookService_ListNotebookRuntimeTemplates_async", - "title": "DataFoundryService listNotebookRuntimeTemplates Sample", - "origin": "API_DEFINITION", - "description": " Lists NotebookRuntimeTemplates in a Location.", - "canonical": true, - "file": "notebook_service.list_notebook_runtime_templates.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 108, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListNotebookRuntimeTemplates", - "fullName": "google.cloud.aiplatform.v1.NotebookService.ListNotebookRuntimeTemplates", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ListNotebookRuntimeTemplatesResponse", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.aiplatform.v1.NotebookServiceClient" - }, - "method": { - "shortName": "ListNotebookRuntimeTemplates", - "fullName": "google.cloud.aiplatform.v1.NotebookService.ListNotebookRuntimeTemplates", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.aiplatform.v1.NotebookService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_NotebookService_DeleteNotebookRuntimeTemplate_async", - "title": "DataFoundryService deleteNotebookRuntimeTemplate Sample", - "origin": "API_DEFINITION", - "description": " Deletes a NotebookRuntimeTemplate.", - "canonical": true, - "file": "notebook_service.delete_notebook_runtime_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteNotebookRuntimeTemplate", - "fullName": "google.cloud.aiplatform.v1.NotebookService.DeleteNotebookRuntimeTemplate", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.aiplatform.v1.NotebookServiceClient" - }, - "method": { - "shortName": "DeleteNotebookRuntimeTemplate", - "fullName": "google.cloud.aiplatform.v1.NotebookService.DeleteNotebookRuntimeTemplate", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.aiplatform.v1.NotebookService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_NotebookService_UpdateNotebookRuntimeTemplate_async", - "title": "DataFoundryService updateNotebookRuntimeTemplate Sample", - "origin": "API_DEFINITION", - "description": " Updates a NotebookRuntimeTemplate.", - "canonical": true, - "file": "notebook_service.update_notebook_runtime_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateNotebookRuntimeTemplate", - "fullName": "google.cloud.aiplatform.v1.NotebookService.UpdateNotebookRuntimeTemplate", - "async": true, - "parameters": [ - { - "name": "notebook_runtime_template", - "type": ".google.cloud.aiplatform.v1.NotebookRuntimeTemplate" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1.NotebookRuntimeTemplate", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.aiplatform.v1.NotebookServiceClient" - }, - "method": { - "shortName": "UpdateNotebookRuntimeTemplate", - "fullName": "google.cloud.aiplatform.v1.NotebookService.UpdateNotebookRuntimeTemplate", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.aiplatform.v1.NotebookService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_NotebookService_AssignNotebookRuntime_async", - "title": "DataFoundryService assignNotebookRuntime Sample", - "origin": "API_DEFINITION", - "description": " Assigns a NotebookRuntime to a user for a particular Notebook file. This method will either returns an existing assignment or generates a new one.", - "canonical": true, - "file": "notebook_service.assign_notebook_runtime.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AssignNotebookRuntime", - "fullName": "google.cloud.aiplatform.v1.NotebookService.AssignNotebookRuntime", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "notebook_runtime_template", - "type": "TYPE_STRING" - }, - { - "name": "notebook_runtime", - "type": ".google.cloud.aiplatform.v1.NotebookRuntime" - }, - { - "name": "notebook_runtime_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.aiplatform.v1.NotebookServiceClient" - }, - "method": { - "shortName": "AssignNotebookRuntime", - "fullName": "google.cloud.aiplatform.v1.NotebookService.AssignNotebookRuntime", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.aiplatform.v1.NotebookService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_NotebookService_GetNotebookRuntime_async", - "title": "DataFoundryService getNotebookRuntime Sample", - "origin": "API_DEFINITION", - "description": " Gets a NotebookRuntime.", - "canonical": true, - "file": "notebook_service.get_notebook_runtime.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetNotebookRuntime", - "fullName": "google.cloud.aiplatform.v1.NotebookService.GetNotebookRuntime", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.NotebookRuntime", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.aiplatform.v1.NotebookServiceClient" - }, - "method": { - "shortName": "GetNotebookRuntime", - "fullName": "google.cloud.aiplatform.v1.NotebookService.GetNotebookRuntime", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.aiplatform.v1.NotebookService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_NotebookService_ListNotebookRuntimes_async", - "title": "DataFoundryService listNotebookRuntimes Sample", - "origin": "API_DEFINITION", - "description": " Lists NotebookRuntimes in a Location.", - "canonical": true, - "file": "notebook_service.list_notebook_runtimes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 53, - "end": 122, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListNotebookRuntimes", - "fullName": "google.cloud.aiplatform.v1.NotebookService.ListNotebookRuntimes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ListNotebookRuntimesResponse", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.aiplatform.v1.NotebookServiceClient" - }, - "method": { - "shortName": "ListNotebookRuntimes", - "fullName": "google.cloud.aiplatform.v1.NotebookService.ListNotebookRuntimes", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.aiplatform.v1.NotebookService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_NotebookService_DeleteNotebookRuntime_async", - "title": "DataFoundryService deleteNotebookRuntime Sample", - "origin": "API_DEFINITION", - "description": " Deletes a NotebookRuntime.", - "canonical": true, - "file": "notebook_service.delete_notebook_runtime.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteNotebookRuntime", - "fullName": "google.cloud.aiplatform.v1.NotebookService.DeleteNotebookRuntime", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.aiplatform.v1.NotebookServiceClient" - }, - "method": { - "shortName": "DeleteNotebookRuntime", - "fullName": "google.cloud.aiplatform.v1.NotebookService.DeleteNotebookRuntime", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.aiplatform.v1.NotebookService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_NotebookService_UpgradeNotebookRuntime_async", - "title": "DataFoundryService upgradeNotebookRuntime Sample", - "origin": "API_DEFINITION", - "description": " Upgrades a NotebookRuntime.", - "canonical": true, - "file": "notebook_service.upgrade_notebook_runtime.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpgradeNotebookRuntime", - "fullName": "google.cloud.aiplatform.v1.NotebookService.UpgradeNotebookRuntime", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.aiplatform.v1.NotebookServiceClient" - }, - "method": { - "shortName": "UpgradeNotebookRuntime", - "fullName": "google.cloud.aiplatform.v1.NotebookService.UpgradeNotebookRuntime", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.aiplatform.v1.NotebookService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_NotebookService_StartNotebookRuntime_async", - "title": "DataFoundryService startNotebookRuntime Sample", - "origin": "API_DEFINITION", - "description": " Starts a NotebookRuntime.", - "canonical": true, - "file": "notebook_service.start_notebook_runtime.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StartNotebookRuntime", - "fullName": "google.cloud.aiplatform.v1.NotebookService.StartNotebookRuntime", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.aiplatform.v1.NotebookServiceClient" - }, - "method": { - "shortName": "StartNotebookRuntime", - "fullName": "google.cloud.aiplatform.v1.NotebookService.StartNotebookRuntime", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.aiplatform.v1.NotebookService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_NotebookService_StopNotebookRuntime_async", - "title": "DataFoundryService stopNotebookRuntime Sample", - "origin": "API_DEFINITION", - "description": " Stops a NotebookRuntime.", - "canonical": true, - "file": "notebook_service.stop_notebook_runtime.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StopNotebookRuntime", - "fullName": "google.cloud.aiplatform.v1.NotebookService.StopNotebookRuntime", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.aiplatform.v1.NotebookServiceClient" - }, - "method": { - "shortName": "StopNotebookRuntime", - "fullName": "google.cloud.aiplatform.v1.NotebookService.StopNotebookRuntime", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.aiplatform.v1.NotebookService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_NotebookService_CreateNotebookExecutionJob_async", - "title": "DataFoundryService createNotebookExecutionJob Sample", - "origin": "API_DEFINITION", - "description": " Creates a NotebookExecutionJob.", - "canonical": true, - "file": "notebook_service.create_notebook_execution_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateNotebookExecutionJob", - "fullName": "google.cloud.aiplatform.v1.NotebookService.CreateNotebookExecutionJob", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "notebook_execution_job", - "type": ".google.cloud.aiplatform.v1.NotebookExecutionJob" - }, - { - "name": "notebook_execution_job_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.aiplatform.v1.NotebookServiceClient" - }, - "method": { - "shortName": "CreateNotebookExecutionJob", - "fullName": "google.cloud.aiplatform.v1.NotebookService.CreateNotebookExecutionJob", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.aiplatform.v1.NotebookService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_NotebookService_GetNotebookExecutionJob_async", - "title": "DataFoundryService getNotebookExecutionJob Sample", - "origin": "API_DEFINITION", - "description": " Gets a NotebookExecutionJob.", - "canonical": true, - "file": "notebook_service.get_notebook_execution_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetNotebookExecutionJob", - "fullName": "google.cloud.aiplatform.v1.NotebookService.GetNotebookExecutionJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.aiplatform.v1.NotebookExecutionJobView" - } - ], - "resultType": ".google.cloud.aiplatform.v1.NotebookExecutionJob", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.aiplatform.v1.NotebookServiceClient" - }, - "method": { - "shortName": "GetNotebookExecutionJob", - "fullName": "google.cloud.aiplatform.v1.NotebookService.GetNotebookExecutionJob", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.aiplatform.v1.NotebookService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_NotebookService_ListNotebookExecutionJobs_async", - "title": "DataFoundryService listNotebookExecutionJobs Sample", - "origin": "API_DEFINITION", - "description": " Lists NotebookExecutionJobs in a Location.", - "canonical": true, - "file": "notebook_service.list_notebook_execution_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 96, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListNotebookExecutionJobs", - "fullName": "google.cloud.aiplatform.v1.NotebookService.ListNotebookExecutionJobs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.aiplatform.v1.NotebookExecutionJobView" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ListNotebookExecutionJobsResponse", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.aiplatform.v1.NotebookServiceClient" - }, - "method": { - "shortName": "ListNotebookExecutionJobs", - "fullName": "google.cloud.aiplatform.v1.NotebookService.ListNotebookExecutionJobs", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.aiplatform.v1.NotebookService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_NotebookService_DeleteNotebookExecutionJob_async", - "title": "DataFoundryService deleteNotebookExecutionJob Sample", - "origin": "API_DEFINITION", - "description": " Deletes a NotebookExecutionJob.", - "canonical": true, - "file": "notebook_service.delete_notebook_execution_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteNotebookExecutionJob", - "fullName": "google.cloud.aiplatform.v1.NotebookService.DeleteNotebookExecutionJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.aiplatform.v1.NotebookServiceClient" - }, - "method": { - "shortName": "DeleteNotebookExecutionJob", - "fullName": "google.cloud.aiplatform.v1.NotebookService.DeleteNotebookExecutionJob", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.aiplatform.v1.NotebookService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_PersistentResourceService_CreatePersistentResource_async", - "title": "DataFoundryService createPersistentResource Sample", - "origin": "API_DEFINITION", - "description": " Creates a PersistentResource.", - "canonical": true, - "file": "persistent_resource_service.create_persistent_resource.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreatePersistentResource", - "fullName": "google.cloud.aiplatform.v1.PersistentResourceService.CreatePersistentResource", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "persistent_resource", - "type": ".google.cloud.aiplatform.v1.PersistentResource" - }, - { - "name": "persistent_resource_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "PersistentResourceServiceClient", - "fullName": "google.cloud.aiplatform.v1.PersistentResourceServiceClient" - }, - "method": { - "shortName": "CreatePersistentResource", - "fullName": "google.cloud.aiplatform.v1.PersistentResourceService.CreatePersistentResource", - "service": { - "shortName": "PersistentResourceService", - "fullName": "google.cloud.aiplatform.v1.PersistentResourceService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_PersistentResourceService_GetPersistentResource_async", - "title": "DataFoundryService getPersistentResource Sample", - "origin": "API_DEFINITION", - "description": " Gets a PersistentResource.", - "canonical": true, - "file": "persistent_resource_service.get_persistent_resource.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPersistentResource", - "fullName": "google.cloud.aiplatform.v1.PersistentResourceService.GetPersistentResource", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.PersistentResource", - "client": { - "shortName": "PersistentResourceServiceClient", - "fullName": "google.cloud.aiplatform.v1.PersistentResourceServiceClient" - }, - "method": { - "shortName": "GetPersistentResource", - "fullName": "google.cloud.aiplatform.v1.PersistentResourceService.GetPersistentResource", - "service": { - "shortName": "PersistentResourceService", - "fullName": "google.cloud.aiplatform.v1.PersistentResourceService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_PersistentResourceService_ListPersistentResources_async", - "title": "DataFoundryService listPersistentResources Sample", - "origin": "API_DEFINITION", - "description": " Lists PersistentResources in a Location.", - "canonical": true, - "file": "persistent_resource_service.list_persistent_resources.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPersistentResources", - "fullName": "google.cloud.aiplatform.v1.PersistentResourceService.ListPersistentResources", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ListPersistentResourcesResponse", - "client": { - "shortName": "PersistentResourceServiceClient", - "fullName": "google.cloud.aiplatform.v1.PersistentResourceServiceClient" - }, - "method": { - "shortName": "ListPersistentResources", - "fullName": "google.cloud.aiplatform.v1.PersistentResourceService.ListPersistentResources", - "service": { - "shortName": "PersistentResourceService", - "fullName": "google.cloud.aiplatform.v1.PersistentResourceService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_PersistentResourceService_DeletePersistentResource_async", - "title": "DataFoundryService deletePersistentResource Sample", - "origin": "API_DEFINITION", - "description": " Deletes a PersistentResource.", - "canonical": true, - "file": "persistent_resource_service.delete_persistent_resource.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePersistentResource", - "fullName": "google.cloud.aiplatform.v1.PersistentResourceService.DeletePersistentResource", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "PersistentResourceServiceClient", - "fullName": "google.cloud.aiplatform.v1.PersistentResourceServiceClient" - }, - "method": { - "shortName": "DeletePersistentResource", - "fullName": "google.cloud.aiplatform.v1.PersistentResourceService.DeletePersistentResource", - "service": { - "shortName": "PersistentResourceService", - "fullName": "google.cloud.aiplatform.v1.PersistentResourceService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_PersistentResourceService_UpdatePersistentResource_async", - "title": "DataFoundryService updatePersistentResource Sample", - "origin": "API_DEFINITION", - "description": " Updates a PersistentResource.", - "canonical": true, - "file": "persistent_resource_service.update_persistent_resource.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdatePersistentResource", - "fullName": "google.cloud.aiplatform.v1.PersistentResourceService.UpdatePersistentResource", - "async": true, - "parameters": [ - { - "name": "persistent_resource", - "type": ".google.cloud.aiplatform.v1.PersistentResource" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "PersistentResourceServiceClient", - "fullName": "google.cloud.aiplatform.v1.PersistentResourceServiceClient" - }, - "method": { - "shortName": "UpdatePersistentResource", - "fullName": "google.cloud.aiplatform.v1.PersistentResourceService.UpdatePersistentResource", - "service": { - "shortName": "PersistentResourceService", - "fullName": "google.cloud.aiplatform.v1.PersistentResourceService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_PersistentResourceService_RebootPersistentResource_async", - "title": "DataFoundryService rebootPersistentResource Sample", - "origin": "API_DEFINITION", - "description": " Reboots a PersistentResource.", - "canonical": true, - "file": "persistent_resource_service.reboot_persistent_resource.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RebootPersistentResource", - "fullName": "google.cloud.aiplatform.v1.PersistentResourceService.RebootPersistentResource", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "PersistentResourceServiceClient", - "fullName": "google.cloud.aiplatform.v1.PersistentResourceServiceClient" - }, - "method": { - "shortName": "RebootPersistentResource", - "fullName": "google.cloud.aiplatform.v1.PersistentResourceService.RebootPersistentResource", - "service": { - "shortName": "PersistentResourceService", - "fullName": "google.cloud.aiplatform.v1.PersistentResourceService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_PipelineService_CreateTrainingPipeline_async", - "title": "DataFoundryService createTrainingPipeline Sample", - "origin": "API_DEFINITION", - "description": " Creates a TrainingPipeline. A created TrainingPipeline right away will be attempted to be run.", - "canonical": true, - "file": "pipeline_service.create_training_pipeline.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTrainingPipeline", - "fullName": "google.cloud.aiplatform.v1.PipelineService.CreateTrainingPipeline", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "training_pipeline", - "type": ".google.cloud.aiplatform.v1.TrainingPipeline" - } - ], - "resultType": ".google.cloud.aiplatform.v1.TrainingPipeline", - "client": { - "shortName": "PipelineServiceClient", - "fullName": "google.cloud.aiplatform.v1.PipelineServiceClient" - }, - "method": { - "shortName": "CreateTrainingPipeline", - "fullName": "google.cloud.aiplatform.v1.PipelineService.CreateTrainingPipeline", - "service": { - "shortName": "PipelineService", - "fullName": "google.cloud.aiplatform.v1.PipelineService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_PipelineService_GetTrainingPipeline_async", - "title": "DataFoundryService getTrainingPipeline Sample", - "origin": "API_DEFINITION", - "description": " Gets a TrainingPipeline.", - "canonical": true, - "file": "pipeline_service.get_training_pipeline.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTrainingPipeline", - "fullName": "google.cloud.aiplatform.v1.PipelineService.GetTrainingPipeline", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.TrainingPipeline", - "client": { - "shortName": "PipelineServiceClient", - "fullName": "google.cloud.aiplatform.v1.PipelineServiceClient" - }, - "method": { - "shortName": "GetTrainingPipeline", - "fullName": "google.cloud.aiplatform.v1.PipelineService.GetTrainingPipeline", - "service": { - "shortName": "PipelineService", - "fullName": "google.cloud.aiplatform.v1.PipelineService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_PipelineService_ListTrainingPipelines_async", - "title": "DataFoundryService listTrainingPipelines Sample", - "origin": "API_DEFINITION", - "description": " Lists TrainingPipelines in a Location.", - "canonical": true, - "file": "pipeline_service.list_training_pipelines.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 92, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTrainingPipelines", - "fullName": "google.cloud.aiplatform.v1.PipelineService.ListTrainingPipelines", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ListTrainingPipelinesResponse", - "client": { - "shortName": "PipelineServiceClient", - "fullName": "google.cloud.aiplatform.v1.PipelineServiceClient" - }, - "method": { - "shortName": "ListTrainingPipelines", - "fullName": "google.cloud.aiplatform.v1.PipelineService.ListTrainingPipelines", - "service": { - "shortName": "PipelineService", - "fullName": "google.cloud.aiplatform.v1.PipelineService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_PipelineService_DeleteTrainingPipeline_async", - "title": "DataFoundryService deleteTrainingPipeline Sample", - "origin": "API_DEFINITION", - "description": " Deletes a TrainingPipeline.", - "canonical": true, - "file": "pipeline_service.delete_training_pipeline.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTrainingPipeline", - "fullName": "google.cloud.aiplatform.v1.PipelineService.DeleteTrainingPipeline", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "PipelineServiceClient", - "fullName": "google.cloud.aiplatform.v1.PipelineServiceClient" - }, - "method": { - "shortName": "DeleteTrainingPipeline", - "fullName": "google.cloud.aiplatform.v1.PipelineService.DeleteTrainingPipeline", - "service": { - "shortName": "PipelineService", - "fullName": "google.cloud.aiplatform.v1.PipelineService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_PipelineService_CancelTrainingPipeline_async", - "title": "DataFoundryService cancelTrainingPipeline Sample", - "origin": "API_DEFINITION", - "description": " Cancels a TrainingPipeline. Starts asynchronous cancellation on the TrainingPipeline. The server makes a best effort to cancel the pipeline, but success is not guaranteed. Clients can use [PipelineService.GetTrainingPipeline][google.cloud.aiplatform.v1.PipelineService.GetTrainingPipeline] or other methods to check whether the cancellation succeeded or whether the pipeline completed despite cancellation. On successful cancellation, the TrainingPipeline is not deleted; instead it becomes a pipeline with a [TrainingPipeline.error][google.cloud.aiplatform.v1.TrainingPipeline.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`, and [TrainingPipeline.state][google.cloud.aiplatform.v1.TrainingPipeline.state] is set to `CANCELLED`.", - "canonical": true, - "file": "pipeline_service.cancel_training_pipeline.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CancelTrainingPipeline", - "fullName": "google.cloud.aiplatform.v1.PipelineService.CancelTrainingPipeline", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "PipelineServiceClient", - "fullName": "google.cloud.aiplatform.v1.PipelineServiceClient" - }, - "method": { - "shortName": "CancelTrainingPipeline", - "fullName": "google.cloud.aiplatform.v1.PipelineService.CancelTrainingPipeline", - "service": { - "shortName": "PipelineService", - "fullName": "google.cloud.aiplatform.v1.PipelineService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_PipelineService_CreatePipelineJob_async", - "title": "DataFoundryService createPipelineJob Sample", - "origin": "API_DEFINITION", - "description": " Creates a PipelineJob. A PipelineJob will run immediately when created.", - "canonical": true, - "file": "pipeline_service.create_pipeline_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreatePipelineJob", - "fullName": "google.cloud.aiplatform.v1.PipelineService.CreatePipelineJob", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "pipeline_job", - "type": ".google.cloud.aiplatform.v1.PipelineJob" - }, - { - "name": "pipeline_job_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.PipelineJob", - "client": { - "shortName": "PipelineServiceClient", - "fullName": "google.cloud.aiplatform.v1.PipelineServiceClient" - }, - "method": { - "shortName": "CreatePipelineJob", - "fullName": "google.cloud.aiplatform.v1.PipelineService.CreatePipelineJob", - "service": { - "shortName": "PipelineService", - "fullName": "google.cloud.aiplatform.v1.PipelineService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_PipelineService_GetPipelineJob_async", - "title": "DataFoundryService getPipelineJob Sample", - "origin": "API_DEFINITION", - "description": " Gets a PipelineJob.", - "canonical": true, - "file": "pipeline_service.get_pipeline_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPipelineJob", - "fullName": "google.cloud.aiplatform.v1.PipelineService.GetPipelineJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.PipelineJob", - "client": { - "shortName": "PipelineServiceClient", - "fullName": "google.cloud.aiplatform.v1.PipelineServiceClient" - }, - "method": { - "shortName": "GetPipelineJob", - "fullName": "google.cloud.aiplatform.v1.PipelineService.GetPipelineJob", - "service": { - "shortName": "PipelineService", - "fullName": "google.cloud.aiplatform.v1.PipelineService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_PipelineService_ListPipelineJobs_async", - "title": "DataFoundryService listPipelineJobs Sample", - "origin": "API_DEFINITION", - "description": " Lists PipelineJobs in a Location.", - "canonical": true, - "file": "pipeline_service.list_pipeline_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 120, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPipelineJobs", - "fullName": "google.cloud.aiplatform.v1.PipelineService.ListPipelineJobs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ListPipelineJobsResponse", - "client": { - "shortName": "PipelineServiceClient", - "fullName": "google.cloud.aiplatform.v1.PipelineServiceClient" - }, - "method": { - "shortName": "ListPipelineJobs", - "fullName": "google.cloud.aiplatform.v1.PipelineService.ListPipelineJobs", - "service": { - "shortName": "PipelineService", - "fullName": "google.cloud.aiplatform.v1.PipelineService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_PipelineService_DeletePipelineJob_async", - "title": "DataFoundryService deletePipelineJob Sample", - "origin": "API_DEFINITION", - "description": " Deletes a PipelineJob.", - "canonical": true, - "file": "pipeline_service.delete_pipeline_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePipelineJob", - "fullName": "google.cloud.aiplatform.v1.PipelineService.DeletePipelineJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "PipelineServiceClient", - "fullName": "google.cloud.aiplatform.v1.PipelineServiceClient" - }, - "method": { - "shortName": "DeletePipelineJob", - "fullName": "google.cloud.aiplatform.v1.PipelineService.DeletePipelineJob", - "service": { - "shortName": "PipelineService", - "fullName": "google.cloud.aiplatform.v1.PipelineService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_PipelineService_BatchDeletePipelineJobs_async", - "title": "DataFoundryService batchDeletePipelineJobs Sample", - "origin": "API_DEFINITION", - "description": " Batch deletes PipelineJobs The Operation is atomic. If it fails, none of the PipelineJobs are deleted. If it succeeds, all of the PipelineJobs are deleted.", - "canonical": true, - "file": "pipeline_service.batch_delete_pipeline_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchDeletePipelineJobs", - "fullName": "google.cloud.aiplatform.v1.PipelineService.BatchDeletePipelineJobs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "names", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "PipelineServiceClient", - "fullName": "google.cloud.aiplatform.v1.PipelineServiceClient" - }, - "method": { - "shortName": "BatchDeletePipelineJobs", - "fullName": "google.cloud.aiplatform.v1.PipelineService.BatchDeletePipelineJobs", - "service": { - "shortName": "PipelineService", - "fullName": "google.cloud.aiplatform.v1.PipelineService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_PipelineService_CancelPipelineJob_async", - "title": "DataFoundryService cancelPipelineJob Sample", - "origin": "API_DEFINITION", - "description": " Cancels a PipelineJob. Starts asynchronous cancellation on the PipelineJob. The server makes a best effort to cancel the pipeline, but success is not guaranteed. Clients can use [PipelineService.GetPipelineJob][google.cloud.aiplatform.v1.PipelineService.GetPipelineJob] or other methods to check whether the cancellation succeeded or whether the pipeline completed despite cancellation. On successful cancellation, the PipelineJob is not deleted; instead it becomes a pipeline with a [PipelineJob.error][google.cloud.aiplatform.v1.PipelineJob.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`, and [PipelineJob.state][google.cloud.aiplatform.v1.PipelineJob.state] is set to `CANCELLED`.", - "canonical": true, - "file": "pipeline_service.cancel_pipeline_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CancelPipelineJob", - "fullName": "google.cloud.aiplatform.v1.PipelineService.CancelPipelineJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "PipelineServiceClient", - "fullName": "google.cloud.aiplatform.v1.PipelineServiceClient" - }, - "method": { - "shortName": "CancelPipelineJob", - "fullName": "google.cloud.aiplatform.v1.PipelineService.CancelPipelineJob", - "service": { - "shortName": "PipelineService", - "fullName": "google.cloud.aiplatform.v1.PipelineService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_PipelineService_BatchCancelPipelineJobs_async", - "title": "DataFoundryService batchCancelPipelineJobs Sample", - "origin": "API_DEFINITION", - "description": " Batch cancel PipelineJobs. Firstly the server will check if all the jobs are in non-terminal states, and skip the jobs that are already terminated. If the operation failed, none of the pipeline jobs are cancelled. The server will poll the states of all the pipeline jobs periodically to check the cancellation status. This operation will return an LRO.", - "canonical": true, - "file": "pipeline_service.batch_cancel_pipeline_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCancelPipelineJobs", - "fullName": "google.cloud.aiplatform.v1.PipelineService.BatchCancelPipelineJobs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "names", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "PipelineServiceClient", - "fullName": "google.cloud.aiplatform.v1.PipelineServiceClient" - }, - "method": { - "shortName": "BatchCancelPipelineJobs", - "fullName": "google.cloud.aiplatform.v1.PipelineService.BatchCancelPipelineJobs", - "service": { - "shortName": "PipelineService", - "fullName": "google.cloud.aiplatform.v1.PipelineService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_PredictionService_Predict_async", - "title": "DataFoundryService predict Sample", - "origin": "API_DEFINITION", - "description": " Perform an online prediction.", - "canonical": true, - "file": "prediction_service.predict.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Predict", - "fullName": "google.cloud.aiplatform.v1.PredictionService.Predict", - "async": true, - "parameters": [ - { - "name": "endpoint", - "type": "TYPE_STRING" - }, - { - "name": "instances", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "parameters", - "type": ".google.protobuf.Value" - }, - { - "name": "labels", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.aiplatform.v1.PredictResponse", - "client": { - "shortName": "PredictionServiceClient", - "fullName": "google.cloud.aiplatform.v1.PredictionServiceClient" - }, - "method": { - "shortName": "Predict", - "fullName": "google.cloud.aiplatform.v1.PredictionService.Predict", - "service": { - "shortName": "PredictionService", - "fullName": "google.cloud.aiplatform.v1.PredictionService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_PredictionService_RawPredict_async", - "title": "DataFoundryService rawPredict Sample", - "origin": "API_DEFINITION", - "description": " Perform an online prediction with an arbitrary HTTP payload. The response includes the following HTTP headers: * `X-Vertex-AI-Endpoint-Id`: ID of the [Endpoint][google.cloud.aiplatform.v1.Endpoint] that served this prediction. * `X-Vertex-AI-Deployed-Model-Id`: ID of the Endpoint's [DeployedModel][google.cloud.aiplatform.v1.DeployedModel] that served this prediction.", - "canonical": true, - "file": "prediction_service.raw_predict.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RawPredict", - "fullName": "google.cloud.aiplatform.v1.PredictionService.RawPredict", - "async": true, - "parameters": [ - { - "name": "endpoint", - "type": "TYPE_STRING" - }, - { - "name": "http_body", - "type": ".google.api.HttpBody" - } - ], - "resultType": ".google.api.HttpBody", - "client": { - "shortName": "PredictionServiceClient", - "fullName": "google.cloud.aiplatform.v1.PredictionServiceClient" - }, - "method": { - "shortName": "RawPredict", - "fullName": "google.cloud.aiplatform.v1.PredictionService.RawPredict", - "service": { - "shortName": "PredictionService", - "fullName": "google.cloud.aiplatform.v1.PredictionService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_PredictionService_StreamRawPredict_async", - "title": "DataFoundryService streamRawPredict Sample", - "origin": "API_DEFINITION", - "description": " Perform a streaming online prediction with an arbitrary HTTP payload.", - "canonical": true, - "file": "prediction_service.stream_raw_predict.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StreamRawPredict", - "fullName": "google.cloud.aiplatform.v1.PredictionService.StreamRawPredict", - "async": true, - "parameters": [ - { - "name": "endpoint", - "type": "TYPE_STRING" - }, - { - "name": "http_body", - "type": ".google.api.HttpBody" - } - ], - "resultType": ".google.api.HttpBody", - "client": { - "shortName": "PredictionServiceClient", - "fullName": "google.cloud.aiplatform.v1.PredictionServiceClient" - }, - "method": { - "shortName": "StreamRawPredict", - "fullName": "google.cloud.aiplatform.v1.PredictionService.StreamRawPredict", - "service": { - "shortName": "PredictionService", - "fullName": "google.cloud.aiplatform.v1.PredictionService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_PredictionService_DirectPredict_async", - "title": "DataFoundryService directPredict Sample", - "origin": "API_DEFINITION", - "description": " Perform an unary online prediction request to a gRPC model server for Vertex first-party products and frameworks.", - "canonical": true, - "file": "prediction_service.direct_predict.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DirectPredict", - "fullName": "google.cloud.aiplatform.v1.PredictionService.DirectPredict", - "async": true, - "parameters": [ - { - "name": "endpoint", - "type": "TYPE_STRING" - }, - { - "name": "inputs", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "parameters", - "type": ".google.cloud.aiplatform.v1.Tensor" - } - ], - "resultType": ".google.cloud.aiplatform.v1.DirectPredictResponse", - "client": { - "shortName": "PredictionServiceClient", - "fullName": "google.cloud.aiplatform.v1.PredictionServiceClient" - }, - "method": { - "shortName": "DirectPredict", - "fullName": "google.cloud.aiplatform.v1.PredictionService.DirectPredict", - "service": { - "shortName": "PredictionService", - "fullName": "google.cloud.aiplatform.v1.PredictionService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_PredictionService_DirectRawPredict_async", - "title": "DataFoundryService directRawPredict Sample", - "origin": "API_DEFINITION", - "description": " Perform an unary online prediction request to a gRPC model server for custom containers.", - "canonical": true, - "file": "prediction_service.direct_raw_predict.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DirectRawPredict", - "fullName": "google.cloud.aiplatform.v1.PredictionService.DirectRawPredict", - "async": true, - "parameters": [ - { - "name": "endpoint", - "type": "TYPE_STRING" - }, - { - "name": "method_name", - "type": "TYPE_STRING" - }, - { - "name": "input", - "type": "TYPE_BYTES" - } - ], - "resultType": ".google.cloud.aiplatform.v1.DirectRawPredictResponse", - "client": { - "shortName": "PredictionServiceClient", - "fullName": "google.cloud.aiplatform.v1.PredictionServiceClient" - }, - "method": { - "shortName": "DirectRawPredict", - "fullName": "google.cloud.aiplatform.v1.PredictionService.DirectRawPredict", - "service": { - "shortName": "PredictionService", - "fullName": "google.cloud.aiplatform.v1.PredictionService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_PredictionService_StreamDirectPredict_async", - "title": "DataFoundryService streamDirectPredict Sample", - "origin": "API_DEFINITION", - "description": " Perform a streaming online prediction request to a gRPC model server for Vertex first-party products and frameworks.", - "canonical": true, - "file": "prediction_service.stream_direct_predict.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StreamDirectPredict", - "fullName": "google.cloud.aiplatform.v1.PredictionService.StreamDirectPredict", - "async": true, - "parameters": [ - { - "name": "endpoint", - "type": "TYPE_STRING" - }, - { - "name": "inputs", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "parameters", - "type": ".google.cloud.aiplatform.v1.Tensor" - } - ], - "resultType": ".google.cloud.aiplatform.v1.StreamDirectPredictResponse", - "client": { - "shortName": "PredictionServiceClient", - "fullName": "google.cloud.aiplatform.v1.PredictionServiceClient" - }, - "method": { - "shortName": "StreamDirectPredict", - "fullName": "google.cloud.aiplatform.v1.PredictionService.StreamDirectPredict", - "service": { - "shortName": "PredictionService", - "fullName": "google.cloud.aiplatform.v1.PredictionService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_PredictionService_StreamDirectRawPredict_async", - "title": "DataFoundryService streamDirectRawPredict Sample", - "origin": "API_DEFINITION", - "description": " Perform a streaming online prediction request to a gRPC model server for custom containers.", - "canonical": true, - "file": "prediction_service.stream_direct_raw_predict.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StreamDirectRawPredict", - "fullName": "google.cloud.aiplatform.v1.PredictionService.StreamDirectRawPredict", - "async": true, - "parameters": [ - { - "name": "endpoint", - "type": "TYPE_STRING" - }, - { - "name": "method_name", - "type": "TYPE_STRING" - }, - { - "name": "input", - "type": "TYPE_BYTES" - } - ], - "resultType": ".google.cloud.aiplatform.v1.StreamDirectRawPredictResponse", - "client": { - "shortName": "PredictionServiceClient", - "fullName": "google.cloud.aiplatform.v1.PredictionServiceClient" - }, - "method": { - "shortName": "StreamDirectRawPredict", - "fullName": "google.cloud.aiplatform.v1.PredictionService.StreamDirectRawPredict", - "service": { - "shortName": "PredictionService", - "fullName": "google.cloud.aiplatform.v1.PredictionService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_PredictionService_StreamingPredict_async", - "title": "DataFoundryService streamingPredict Sample", - "origin": "API_DEFINITION", - "description": " Perform a streaming online prediction request for Vertex first-party products and frameworks.", - "canonical": true, - "file": "prediction_service.streaming_predict.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StreamingPredict", - "fullName": "google.cloud.aiplatform.v1.PredictionService.StreamingPredict", - "async": true, - "parameters": [ - { - "name": "endpoint", - "type": "TYPE_STRING" - }, - { - "name": "inputs", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "parameters", - "type": ".google.cloud.aiplatform.v1.Tensor" - } - ], - "resultType": ".google.cloud.aiplatform.v1.StreamingPredictResponse", - "client": { - "shortName": "PredictionServiceClient", - "fullName": "google.cloud.aiplatform.v1.PredictionServiceClient" - }, - "method": { - "shortName": "StreamingPredict", - "fullName": "google.cloud.aiplatform.v1.PredictionService.StreamingPredict", - "service": { - "shortName": "PredictionService", - "fullName": "google.cloud.aiplatform.v1.PredictionService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_PredictionService_ServerStreamingPredict_async", - "title": "DataFoundryService serverStreamingPredict Sample", - "origin": "API_DEFINITION", - "description": " Perform a server-side streaming online prediction request for Vertex LLM streaming.", - "canonical": true, - "file": "prediction_service.server_streaming_predict.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ServerStreamingPredict", - "fullName": "google.cloud.aiplatform.v1.PredictionService.ServerStreamingPredict", - "async": true, - "parameters": [ - { - "name": "endpoint", - "type": "TYPE_STRING" - }, - { - "name": "inputs", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "parameters", - "type": ".google.cloud.aiplatform.v1.Tensor" - } - ], - "resultType": ".google.cloud.aiplatform.v1.StreamingPredictResponse", - "client": { - "shortName": "PredictionServiceClient", - "fullName": "google.cloud.aiplatform.v1.PredictionServiceClient" - }, - "method": { - "shortName": "ServerStreamingPredict", - "fullName": "google.cloud.aiplatform.v1.PredictionService.ServerStreamingPredict", - "service": { - "shortName": "PredictionService", - "fullName": "google.cloud.aiplatform.v1.PredictionService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_PredictionService_StreamingRawPredict_async", - "title": "DataFoundryService streamingRawPredict Sample", - "origin": "API_DEFINITION", - "description": " Perform a streaming online prediction request through gRPC.", - "canonical": true, - "file": "prediction_service.streaming_raw_predict.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StreamingRawPredict", - "fullName": "google.cloud.aiplatform.v1.PredictionService.StreamingRawPredict", - "async": true, - "parameters": [ - { - "name": "endpoint", - "type": "TYPE_STRING" - }, - { - "name": "method_name", - "type": "TYPE_STRING" - }, - { - "name": "input", - "type": "TYPE_BYTES" - } - ], - "resultType": ".google.cloud.aiplatform.v1.StreamingRawPredictResponse", - "client": { - "shortName": "PredictionServiceClient", - "fullName": "google.cloud.aiplatform.v1.PredictionServiceClient" - }, - "method": { - "shortName": "StreamingRawPredict", - "fullName": "google.cloud.aiplatform.v1.PredictionService.StreamingRawPredict", - "service": { - "shortName": "PredictionService", - "fullName": "google.cloud.aiplatform.v1.PredictionService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_PredictionService_Explain_async", - "title": "DataFoundryService explain Sample", - "origin": "API_DEFINITION", - "description": " Perform an online explanation. If [deployed_model_id][google.cloud.aiplatform.v1.ExplainRequest.deployed_model_id] is specified, the corresponding DeployModel must have [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] populated. If [deployed_model_id][google.cloud.aiplatform.v1.ExplainRequest.deployed_model_id] is not specified, all DeployedModels must have [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] populated.", - "canonical": true, - "file": "prediction_service.explain.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 93, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Explain", - "fullName": "google.cloud.aiplatform.v1.PredictionService.Explain", - "async": true, - "parameters": [ - { - "name": "endpoint", - "type": "TYPE_STRING" - }, - { - "name": "instances", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "parameters", - "type": ".google.protobuf.Value" - }, - { - "name": "explanation_spec_override", - "type": ".google.cloud.aiplatform.v1.ExplanationSpecOverride" - }, - { - "name": "deployed_model_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ExplainResponse", - "client": { - "shortName": "PredictionServiceClient", - "fullName": "google.cloud.aiplatform.v1.PredictionServiceClient" - }, - "method": { - "shortName": "Explain", - "fullName": "google.cloud.aiplatform.v1.PredictionService.Explain", - "service": { - "shortName": "PredictionService", - "fullName": "google.cloud.aiplatform.v1.PredictionService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_PredictionService_GenerateContent_async", - "title": "DataFoundryService generateContent Sample", - "origin": "API_DEFINITION", - "description": " Generate content with multimodal inputs.", - "canonical": true, - "file": "prediction_service.generate_content.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 116, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateContent", - "fullName": "google.cloud.aiplatform.v1.PredictionService.GenerateContent", - "async": true, - "parameters": [ - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "contents", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "system_instruction", - "type": ".google.cloud.aiplatform.v1.Content" - }, - { - "name": "cached_content", - "type": "TYPE_STRING" - }, - { - "name": "tools", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "tool_config", - "type": ".google.cloud.aiplatform.v1.ToolConfig" - }, - { - "name": "labels", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "safety_settings", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "model_armor_config", - "type": ".google.cloud.aiplatform.v1.ModelArmorConfig" - }, - { - "name": "generation_config", - "type": ".google.cloud.aiplatform.v1.GenerationConfig" - } - ], - "resultType": ".google.cloud.aiplatform.v1.GenerateContentResponse", - "client": { - "shortName": "PredictionServiceClient", - "fullName": "google.cloud.aiplatform.v1.PredictionServiceClient" - }, - "method": { - "shortName": "GenerateContent", - "fullName": "google.cloud.aiplatform.v1.PredictionService.GenerateContent", - "service": { - "shortName": "PredictionService", - "fullName": "google.cloud.aiplatform.v1.PredictionService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_PredictionService_StreamGenerateContent_async", - "title": "DataFoundryService streamGenerateContent Sample", - "origin": "API_DEFINITION", - "description": " Generate content with multimodal inputs with streaming support.", - "canonical": true, - "file": "prediction_service.stream_generate_content.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 118, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StreamGenerateContent", - "fullName": "google.cloud.aiplatform.v1.PredictionService.StreamGenerateContent", - "async": true, - "parameters": [ - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "contents", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "system_instruction", - "type": ".google.cloud.aiplatform.v1.Content" - }, - { - "name": "cached_content", - "type": "TYPE_STRING" - }, - { - "name": "tools", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "tool_config", - "type": ".google.cloud.aiplatform.v1.ToolConfig" - }, - { - "name": "labels", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "safety_settings", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "model_armor_config", - "type": ".google.cloud.aiplatform.v1.ModelArmorConfig" - }, - { - "name": "generation_config", - "type": ".google.cloud.aiplatform.v1.GenerationConfig" - } - ], - "resultType": ".google.cloud.aiplatform.v1.GenerateContentResponse", - "client": { - "shortName": "PredictionServiceClient", - "fullName": "google.cloud.aiplatform.v1.PredictionServiceClient" - }, - "method": { - "shortName": "StreamGenerateContent", - "fullName": "google.cloud.aiplatform.v1.PredictionService.StreamGenerateContent", - "service": { - "shortName": "PredictionService", - "fullName": "google.cloud.aiplatform.v1.PredictionService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_PredictionService_EmbedContent_async", - "title": "DataFoundryService embedContent Sample", - "origin": "API_DEFINITION", - "description": " Embed content with multimodal inputs.", - "canonical": true, - "file": "prediction_service.embed_content.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "EmbedContent", - "fullName": "google.cloud.aiplatform.v1.PredictionService.EmbedContent", - "async": true, - "parameters": [ - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "content", - "type": ".google.cloud.aiplatform.v1.Content" - }, - { - "name": "title", - "type": "TYPE_STRING" - }, - { - "name": "task_type", - "type": ".google.cloud.aiplatform.v1.EmbedContentRequest.EmbeddingTaskType" - }, - { - "name": "output_dimensionality", - "type": "TYPE_INT32" - }, - { - "name": "auto_truncate", - "type": "TYPE_BOOL" - }, - { - "name": "embed_content_config", - "type": ".google.cloud.aiplatform.v1.EmbedContentRequest.EmbedContentConfig" - } - ], - "resultType": ".google.cloud.aiplatform.v1.EmbedContentResponse", - "client": { - "shortName": "PredictionServiceClient", - "fullName": "google.cloud.aiplatform.v1.PredictionServiceClient" - }, - "method": { - "shortName": "EmbedContent", - "fullName": "google.cloud.aiplatform.v1.PredictionService.EmbedContent", - "service": { - "shortName": "PredictionService", - "fullName": "google.cloud.aiplatform.v1.PredictionService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_ReasoningEngineExecutionService_QueryReasoningEngine_async", - "title": "DataFoundryService queryReasoningEngine Sample", - "origin": "API_DEFINITION", - "description": " Queries using a reasoning engine.", - "canonical": true, - "file": "reasoning_engine_execution_service.query_reasoning_engine.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryReasoningEngine", - "fullName": "google.cloud.aiplatform.v1.ReasoningEngineExecutionService.QueryReasoningEngine", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "input", - "type": ".google.protobuf.Struct" - }, - { - "name": "class_method", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.QueryReasoningEngineResponse", - "client": { - "shortName": "ReasoningEngineExecutionServiceClient", - "fullName": "google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceClient" - }, - "method": { - "shortName": "QueryReasoningEngine", - "fullName": "google.cloud.aiplatform.v1.ReasoningEngineExecutionService.QueryReasoningEngine", - "service": { - "shortName": "ReasoningEngineExecutionService", - "fullName": "google.cloud.aiplatform.v1.ReasoningEngineExecutionService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_ReasoningEngineExecutionService_StreamQueryReasoningEngine_async", - "title": "DataFoundryService streamQueryReasoningEngine Sample", - "origin": "API_DEFINITION", - "description": " Streams queries using a reasoning engine.", - "canonical": true, - "file": "reasoning_engine_execution_service.stream_query_reasoning_engine.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StreamQueryReasoningEngine", - "fullName": "google.cloud.aiplatform.v1.ReasoningEngineExecutionService.StreamQueryReasoningEngine", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "input", - "type": ".google.protobuf.Struct" - }, - { - "name": "class_method", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.api.HttpBody", - "client": { - "shortName": "ReasoningEngineExecutionServiceClient", - "fullName": "google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceClient" - }, - "method": { - "shortName": "StreamQueryReasoningEngine", - "fullName": "google.cloud.aiplatform.v1.ReasoningEngineExecutionService.StreamQueryReasoningEngine", - "service": { - "shortName": "ReasoningEngineExecutionService", - "fullName": "google.cloud.aiplatform.v1.ReasoningEngineExecutionService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_ReasoningEngineExecutionService_AsyncQueryReasoningEngine_async", - "title": "DataFoundryService asyncQueryReasoningEngine Sample", - "origin": "API_DEFINITION", - "description": " Async query using a reasoning engine.", - "canonical": true, - "file": "reasoning_engine_execution_service.async_query_reasoning_engine.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AsyncQueryReasoningEngine", - "fullName": "google.cloud.aiplatform.v1.ReasoningEngineExecutionService.AsyncQueryReasoningEngine", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "input_gcs_uri", - "type": "TYPE_STRING" - }, - { - "name": "output_gcs_uri", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ReasoningEngineExecutionServiceClient", - "fullName": "google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceClient" - }, - "method": { - "shortName": "AsyncQueryReasoningEngine", - "fullName": "google.cloud.aiplatform.v1.ReasoningEngineExecutionService.AsyncQueryReasoningEngine", - "service": { - "shortName": "ReasoningEngineExecutionService", - "fullName": "google.cloud.aiplatform.v1.ReasoningEngineExecutionService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_ReasoningEngineExecutionService_CancelAsyncQueryReasoningEngine_async", - "title": "DataFoundryService cancelAsyncQueryReasoningEngine Sample", - "origin": "API_DEFINITION", - "description": " Cancels an AsyncQueryReasoningEngine operation.", - "canonical": true, - "file": "reasoning_engine_execution_service.cancel_async_query_reasoning_engine.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CancelAsyncQueryReasoningEngine", - "fullName": "google.cloud.aiplatform.v1.ReasoningEngineExecutionService.CancelAsyncQueryReasoningEngine", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "operation_name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.CancelAsyncQueryReasoningEngineResponse", - "client": { - "shortName": "ReasoningEngineExecutionServiceClient", - "fullName": "google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceClient" - }, - "method": { - "shortName": "CancelAsyncQueryReasoningEngine", - "fullName": "google.cloud.aiplatform.v1.ReasoningEngineExecutionService.CancelAsyncQueryReasoningEngine", - "service": { - "shortName": "ReasoningEngineExecutionService", - "fullName": "google.cloud.aiplatform.v1.ReasoningEngineExecutionService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_ReasoningEngineService_CreateReasoningEngine_async", - "title": "DataFoundryService createReasoningEngine Sample", - "origin": "API_DEFINITION", - "description": " Creates a reasoning engine.", - "canonical": true, - "file": "reasoning_engine_service.create_reasoning_engine.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateReasoningEngine", - "fullName": "google.cloud.aiplatform.v1.ReasoningEngineService.CreateReasoningEngine", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "reasoning_engine", - "type": ".google.cloud.aiplatform.v1.ReasoningEngine" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ReasoningEngineServiceClient", - "fullName": "google.cloud.aiplatform.v1.ReasoningEngineServiceClient" - }, - "method": { - "shortName": "CreateReasoningEngine", - "fullName": "google.cloud.aiplatform.v1.ReasoningEngineService.CreateReasoningEngine", - "service": { - "shortName": "ReasoningEngineService", - "fullName": "google.cloud.aiplatform.v1.ReasoningEngineService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_ReasoningEngineService_GetReasoningEngine_async", - "title": "DataFoundryService getReasoningEngine Sample", - "origin": "API_DEFINITION", - "description": " Gets a reasoning engine.", - "canonical": true, - "file": "reasoning_engine_service.get_reasoning_engine.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetReasoningEngine", - "fullName": "google.cloud.aiplatform.v1.ReasoningEngineService.GetReasoningEngine", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ReasoningEngine", - "client": { - "shortName": "ReasoningEngineServiceClient", - "fullName": "google.cloud.aiplatform.v1.ReasoningEngineServiceClient" - }, - "method": { - "shortName": "GetReasoningEngine", - "fullName": "google.cloud.aiplatform.v1.ReasoningEngineService.GetReasoningEngine", - "service": { - "shortName": "ReasoningEngineService", - "fullName": "google.cloud.aiplatform.v1.ReasoningEngineService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_ReasoningEngineService_ListReasoningEngines_async", - "title": "DataFoundryService listReasoningEngines Sample", - "origin": "API_DEFINITION", - "description": " Lists reasoning engines in a location.", - "canonical": true, - "file": "reasoning_engine_service.list_reasoning_engines.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListReasoningEngines", - "fullName": "google.cloud.aiplatform.v1.ReasoningEngineService.ListReasoningEngines", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ListReasoningEnginesResponse", - "client": { - "shortName": "ReasoningEngineServiceClient", - "fullName": "google.cloud.aiplatform.v1.ReasoningEngineServiceClient" - }, - "method": { - "shortName": "ListReasoningEngines", - "fullName": "google.cloud.aiplatform.v1.ReasoningEngineService.ListReasoningEngines", - "service": { - "shortName": "ReasoningEngineService", - "fullName": "google.cloud.aiplatform.v1.ReasoningEngineService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_ReasoningEngineService_UpdateReasoningEngine_async", - "title": "DataFoundryService updateReasoningEngine Sample", - "origin": "API_DEFINITION", - "description": " Updates a reasoning engine.", - "canonical": true, - "file": "reasoning_engine_service.update_reasoning_engine.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateReasoningEngine", - "fullName": "google.cloud.aiplatform.v1.ReasoningEngineService.UpdateReasoningEngine", - "async": true, - "parameters": [ - { - "name": "reasoning_engine", - "type": ".google.cloud.aiplatform.v1.ReasoningEngine" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ReasoningEngineServiceClient", - "fullName": "google.cloud.aiplatform.v1.ReasoningEngineServiceClient" - }, - "method": { - "shortName": "UpdateReasoningEngine", - "fullName": "google.cloud.aiplatform.v1.ReasoningEngineService.UpdateReasoningEngine", - "service": { - "shortName": "ReasoningEngineService", - "fullName": "google.cloud.aiplatform.v1.ReasoningEngineService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_ReasoningEngineService_DeleteReasoningEngine_async", - "title": "DataFoundryService deleteReasoningEngine Sample", - "origin": "API_DEFINITION", - "description": " Deletes a reasoning engine.", - "canonical": true, - "file": "reasoning_engine_service.delete_reasoning_engine.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteReasoningEngine", - "fullName": "google.cloud.aiplatform.v1.ReasoningEngineService.DeleteReasoningEngine", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ReasoningEngineServiceClient", - "fullName": "google.cloud.aiplatform.v1.ReasoningEngineServiceClient" - }, - "method": { - "shortName": "DeleteReasoningEngine", - "fullName": "google.cloud.aiplatform.v1.ReasoningEngineService.DeleteReasoningEngine", - "service": { - "shortName": "ReasoningEngineService", - "fullName": "google.cloud.aiplatform.v1.ReasoningEngineService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_ScheduleService_CreateSchedule_async", - "title": "DataFoundryService createSchedule Sample", - "origin": "API_DEFINITION", - "description": " Creates a Schedule.", - "canonical": true, - "file": "schedule_service.create_schedule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSchedule", - "fullName": "google.cloud.aiplatform.v1.ScheduleService.CreateSchedule", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "schedule", - "type": ".google.cloud.aiplatform.v1.Schedule" - } - ], - "resultType": ".google.cloud.aiplatform.v1.Schedule", - "client": { - "shortName": "ScheduleServiceClient", - "fullName": "google.cloud.aiplatform.v1.ScheduleServiceClient" - }, - "method": { - "shortName": "CreateSchedule", - "fullName": "google.cloud.aiplatform.v1.ScheduleService.CreateSchedule", - "service": { - "shortName": "ScheduleService", - "fullName": "google.cloud.aiplatform.v1.ScheduleService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_ScheduleService_DeleteSchedule_async", - "title": "DataFoundryService deleteSchedule Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Schedule.", - "canonical": true, - "file": "schedule_service.delete_schedule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSchedule", - "fullName": "google.cloud.aiplatform.v1.ScheduleService.DeleteSchedule", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ScheduleServiceClient", - "fullName": "google.cloud.aiplatform.v1.ScheduleServiceClient" - }, - "method": { - "shortName": "DeleteSchedule", - "fullName": "google.cloud.aiplatform.v1.ScheduleService.DeleteSchedule", - "service": { - "shortName": "ScheduleService", - "fullName": "google.cloud.aiplatform.v1.ScheduleService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_ScheduleService_GetSchedule_async", - "title": "DataFoundryService getSchedule Sample", - "origin": "API_DEFINITION", - "description": " Gets a Schedule.", - "canonical": true, - "file": "schedule_service.get_schedule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSchedule", - "fullName": "google.cloud.aiplatform.v1.ScheduleService.GetSchedule", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.Schedule", - "client": { - "shortName": "ScheduleServiceClient", - "fullName": "google.cloud.aiplatform.v1.ScheduleServiceClient" - }, - "method": { - "shortName": "GetSchedule", - "fullName": "google.cloud.aiplatform.v1.ScheduleService.GetSchedule", - "service": { - "shortName": "ScheduleService", - "fullName": "google.cloud.aiplatform.v1.ScheduleService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_ScheduleService_ListSchedules_async", - "title": "DataFoundryService listSchedules Sample", - "origin": "API_DEFINITION", - "description": " Lists Schedules in a Location.", - "canonical": true, - "file": "schedule_service.list_schedules.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 114, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSchedules", - "fullName": "google.cloud.aiplatform.v1.ScheduleService.ListSchedules", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ListSchedulesResponse", - "client": { - "shortName": "ScheduleServiceClient", - "fullName": "google.cloud.aiplatform.v1.ScheduleServiceClient" - }, - "method": { - "shortName": "ListSchedules", - "fullName": "google.cloud.aiplatform.v1.ScheduleService.ListSchedules", - "service": { - "shortName": "ScheduleService", - "fullName": "google.cloud.aiplatform.v1.ScheduleService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_ScheduleService_PauseSchedule_async", - "title": "DataFoundryService pauseSchedule Sample", - "origin": "API_DEFINITION", - "description": " Pauses a Schedule. Will mark [Schedule.state][google.cloud.aiplatform.v1.Schedule.state] to 'PAUSED'. If the schedule is paused, no new runs will be created. Already created runs will NOT be paused or canceled.", - "canonical": true, - "file": "schedule_service.pause_schedule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PauseSchedule", - "fullName": "google.cloud.aiplatform.v1.ScheduleService.PauseSchedule", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ScheduleServiceClient", - "fullName": "google.cloud.aiplatform.v1.ScheduleServiceClient" - }, - "method": { - "shortName": "PauseSchedule", - "fullName": "google.cloud.aiplatform.v1.ScheduleService.PauseSchedule", - "service": { - "shortName": "ScheduleService", - "fullName": "google.cloud.aiplatform.v1.ScheduleService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_ScheduleService_ResumeSchedule_async", - "title": "DataFoundryService resumeSchedule Sample", - "origin": "API_DEFINITION", - "description": " Resumes a paused Schedule to start scheduling new runs. Will mark [Schedule.state][google.cloud.aiplatform.v1.Schedule.state] to 'ACTIVE'. Only paused Schedule can be resumed. When the Schedule is resumed, new runs will be scheduled starting from the next execution time after the current time based on the time_specification in the Schedule. If [Schedule.catch_up][google.cloud.aiplatform.v1.Schedule.catch_up] is set up true, all missed runs will be scheduled for backfill first.", - "canonical": true, - "file": "schedule_service.resume_schedule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResumeSchedule", - "fullName": "google.cloud.aiplatform.v1.ScheduleService.ResumeSchedule", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "catch_up", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ScheduleServiceClient", - "fullName": "google.cloud.aiplatform.v1.ScheduleServiceClient" - }, - "method": { - "shortName": "ResumeSchedule", - "fullName": "google.cloud.aiplatform.v1.ScheduleService.ResumeSchedule", - "service": { - "shortName": "ScheduleService", - "fullName": "google.cloud.aiplatform.v1.ScheduleService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_ScheduleService_UpdateSchedule_async", - "title": "DataFoundryService updateSchedule Sample", - "origin": "API_DEFINITION", - "description": " Updates an active or paused Schedule. When the Schedule is updated, new runs will be scheduled starting from the updated next execution time after the update time based on the time_specification in the updated Schedule. All unstarted runs before the update time will be skipped while already created runs will NOT be paused or canceled.", - "canonical": true, - "file": "schedule_service.update_schedule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSchedule", - "fullName": "google.cloud.aiplatform.v1.ScheduleService.UpdateSchedule", - "async": true, - "parameters": [ - { - "name": "schedule", - "type": ".google.cloud.aiplatform.v1.Schedule" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1.Schedule", - "client": { - "shortName": "ScheduleServiceClient", - "fullName": "google.cloud.aiplatform.v1.ScheduleServiceClient" - }, - "method": { - "shortName": "UpdateSchedule", - "fullName": "google.cloud.aiplatform.v1.ScheduleService.UpdateSchedule", - "service": { - "shortName": "ScheduleService", - "fullName": "google.cloud.aiplatform.v1.ScheduleService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_SessionService_CreateSession_async", - "title": "DataFoundryService createSession Sample", - "origin": "API_DEFINITION", - "description": " Creates a new [Session][google.cloud.aiplatform.v1.Session].", - "canonical": true, - "file": "session_service.create_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSession", - "fullName": "google.cloud.aiplatform.v1.SessionService.CreateSession", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "session", - "type": ".google.cloud.aiplatform.v1.Session" - }, - { - "name": "session_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SessionServiceClient", - "fullName": "google.cloud.aiplatform.v1.SessionServiceClient" - }, - "method": { - "shortName": "CreateSession", - "fullName": "google.cloud.aiplatform.v1.SessionService.CreateSession", - "service": { - "shortName": "SessionService", - "fullName": "google.cloud.aiplatform.v1.SessionService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_SessionService_GetSession_async", - "title": "DataFoundryService getSession Sample", - "origin": "API_DEFINITION", - "description": " Gets details of the specific [Session][google.cloud.aiplatform.v1.Session].", - "canonical": true, - "file": "session_service.get_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSession", - "fullName": "google.cloud.aiplatform.v1.SessionService.GetSession", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.Session", - "client": { - "shortName": "SessionServiceClient", - "fullName": "google.cloud.aiplatform.v1.SessionServiceClient" - }, - "method": { - "shortName": "GetSession", - "fullName": "google.cloud.aiplatform.v1.SessionService.GetSession", - "service": { - "shortName": "SessionService", - "fullName": "google.cloud.aiplatform.v1.SessionService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_SessionService_ListSessions_async", - "title": "DataFoundryService listSessions Sample", - "origin": "API_DEFINITION", - "description": " Lists [Sessions][google.cloud.aiplatform.v1.Session] in a given reasoning engine.", - "canonical": true, - "file": "session_service.list_sessions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 88, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSessions", - "fullName": "google.cloud.aiplatform.v1.SessionService.ListSessions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ListSessionsResponse", - "client": { - "shortName": "SessionServiceClient", - "fullName": "google.cloud.aiplatform.v1.SessionServiceClient" - }, - "method": { - "shortName": "ListSessions", - "fullName": "google.cloud.aiplatform.v1.SessionService.ListSessions", - "service": { - "shortName": "SessionService", - "fullName": "google.cloud.aiplatform.v1.SessionService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_SessionService_UpdateSession_async", - "title": "DataFoundryService updateSession Sample", - "origin": "API_DEFINITION", - "description": " Updates the specific [Session][google.cloud.aiplatform.v1.Session].", - "canonical": true, - "file": "session_service.update_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSession", - "fullName": "google.cloud.aiplatform.v1.SessionService.UpdateSession", - "async": true, - "parameters": [ - { - "name": "session", - "type": ".google.cloud.aiplatform.v1.Session" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1.Session", - "client": { - "shortName": "SessionServiceClient", - "fullName": "google.cloud.aiplatform.v1.SessionServiceClient" - }, - "method": { - "shortName": "UpdateSession", - "fullName": "google.cloud.aiplatform.v1.SessionService.UpdateSession", - "service": { - "shortName": "SessionService", - "fullName": "google.cloud.aiplatform.v1.SessionService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_SessionService_DeleteSession_async", - "title": "DataFoundryService deleteSession Sample", - "origin": "API_DEFINITION", - "description": " Deletes details of the specific [Session][google.cloud.aiplatform.v1.Session].", - "canonical": true, - "file": "session_service.delete_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSession", - "fullName": "google.cloud.aiplatform.v1.SessionService.DeleteSession", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SessionServiceClient", - "fullName": "google.cloud.aiplatform.v1.SessionServiceClient" - }, - "method": { - "shortName": "DeleteSession", - "fullName": "google.cloud.aiplatform.v1.SessionService.DeleteSession", - "service": { - "shortName": "SessionService", - "fullName": "google.cloud.aiplatform.v1.SessionService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_SessionService_ListEvents_async", - "title": "DataFoundryService listEvents Sample", - "origin": "API_DEFINITION", - "description": " Lists [Events][google.cloud.aiplatform.v1.Event] in a given session.", - "canonical": true, - "file": "session_service.list_events.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEvents", - "fullName": "google.cloud.aiplatform.v1.SessionService.ListEvents", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ListEventsResponse", - "client": { - "shortName": "SessionServiceClient", - "fullName": "google.cloud.aiplatform.v1.SessionServiceClient" - }, - "method": { - "shortName": "ListEvents", - "fullName": "google.cloud.aiplatform.v1.SessionService.ListEvents", - "service": { - "shortName": "SessionService", - "fullName": "google.cloud.aiplatform.v1.SessionService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_SessionService_AppendEvent_async", - "title": "DataFoundryService appendEvent Sample", - "origin": "API_DEFINITION", - "description": " Appends an event to a given session.", - "canonical": true, - "file": "session_service.append_event.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AppendEvent", - "fullName": "google.cloud.aiplatform.v1.SessionService.AppendEvent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "event", - "type": ".google.cloud.aiplatform.v1.SessionEvent" - } - ], - "resultType": ".google.cloud.aiplatform.v1.AppendEventResponse", - "client": { - "shortName": "SessionServiceClient", - "fullName": "google.cloud.aiplatform.v1.SessionServiceClient" - }, - "method": { - "shortName": "AppendEvent", - "fullName": "google.cloud.aiplatform.v1.SessionService.AppendEvent", - "service": { - "shortName": "SessionService", - "fullName": "google.cloud.aiplatform.v1.SessionService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_SpecialistPoolService_CreateSpecialistPool_async", - "title": "DataFoundryService createSpecialistPool Sample", - "origin": "API_DEFINITION", - "description": " Creates a SpecialistPool.", - "canonical": true, - "file": "specialist_pool_service.create_specialist_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSpecialistPool", - "fullName": "google.cloud.aiplatform.v1.SpecialistPoolService.CreateSpecialistPool", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "specialist_pool", - "type": ".google.cloud.aiplatform.v1.SpecialistPool" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SpecialistPoolServiceClient", - "fullName": "google.cloud.aiplatform.v1.SpecialistPoolServiceClient" - }, - "method": { - "shortName": "CreateSpecialistPool", - "fullName": "google.cloud.aiplatform.v1.SpecialistPoolService.CreateSpecialistPool", - "service": { - "shortName": "SpecialistPoolService", - "fullName": "google.cloud.aiplatform.v1.SpecialistPoolService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_SpecialistPoolService_GetSpecialistPool_async", - "title": "DataFoundryService getSpecialistPool Sample", - "origin": "API_DEFINITION", - "description": " Gets a SpecialistPool.", - "canonical": true, - "file": "specialist_pool_service.get_specialist_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSpecialistPool", - "fullName": "google.cloud.aiplatform.v1.SpecialistPoolService.GetSpecialistPool", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.SpecialistPool", - "client": { - "shortName": "SpecialistPoolServiceClient", - "fullName": "google.cloud.aiplatform.v1.SpecialistPoolServiceClient" - }, - "method": { - "shortName": "GetSpecialistPool", - "fullName": "google.cloud.aiplatform.v1.SpecialistPoolService.GetSpecialistPool", - "service": { - "shortName": "SpecialistPoolService", - "fullName": "google.cloud.aiplatform.v1.SpecialistPoolService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_SpecialistPoolService_ListSpecialistPools_async", - "title": "DataFoundryService listSpecialistPools Sample", - "origin": "API_DEFINITION", - "description": " Lists SpecialistPools in a Location.", - "canonical": true, - "file": "specialist_pool_service.list_specialist_pools.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSpecialistPools", - "fullName": "google.cloud.aiplatform.v1.SpecialistPoolService.ListSpecialistPools", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ListSpecialistPoolsResponse", - "client": { - "shortName": "SpecialistPoolServiceClient", - "fullName": "google.cloud.aiplatform.v1.SpecialistPoolServiceClient" - }, - "method": { - "shortName": "ListSpecialistPools", - "fullName": "google.cloud.aiplatform.v1.SpecialistPoolService.ListSpecialistPools", - "service": { - "shortName": "SpecialistPoolService", - "fullName": "google.cloud.aiplatform.v1.SpecialistPoolService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_SpecialistPoolService_DeleteSpecialistPool_async", - "title": "DataFoundryService deleteSpecialistPool Sample", - "origin": "API_DEFINITION", - "description": " Deletes a SpecialistPool as well as all Specialists in the pool.", - "canonical": true, - "file": "specialist_pool_service.delete_specialist_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSpecialistPool", - "fullName": "google.cloud.aiplatform.v1.SpecialistPoolService.DeleteSpecialistPool", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SpecialistPoolServiceClient", - "fullName": "google.cloud.aiplatform.v1.SpecialistPoolServiceClient" - }, - "method": { - "shortName": "DeleteSpecialistPool", - "fullName": "google.cloud.aiplatform.v1.SpecialistPoolService.DeleteSpecialistPool", - "service": { - "shortName": "SpecialistPoolService", - "fullName": "google.cloud.aiplatform.v1.SpecialistPoolService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_SpecialistPoolService_UpdateSpecialistPool_async", - "title": "DataFoundryService updateSpecialistPool Sample", - "origin": "API_DEFINITION", - "description": " Updates a SpecialistPool.", - "canonical": true, - "file": "specialist_pool_service.update_specialist_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSpecialistPool", - "fullName": "google.cloud.aiplatform.v1.SpecialistPoolService.UpdateSpecialistPool", - "async": true, - "parameters": [ - { - "name": "specialist_pool", - "type": ".google.cloud.aiplatform.v1.SpecialistPool" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SpecialistPoolServiceClient", - "fullName": "google.cloud.aiplatform.v1.SpecialistPoolServiceClient" - }, - "method": { - "shortName": "UpdateSpecialistPool", - "fullName": "google.cloud.aiplatform.v1.SpecialistPoolService.UpdateSpecialistPool", - "service": { - "shortName": "SpecialistPoolService", - "fullName": "google.cloud.aiplatform.v1.SpecialistPoolService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_TensorboardService_CreateTensorboard_async", - "title": "DataFoundryService createTensorboard Sample", - "origin": "API_DEFINITION", - "description": " Creates a Tensorboard.", - "canonical": true, - "file": "tensorboard_service.create_tensorboard.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTensorboard", - "fullName": "google.cloud.aiplatform.v1.TensorboardService.CreateTensorboard", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "tensorboard", - "type": ".google.cloud.aiplatform.v1.Tensorboard" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TensorboardServiceClient", - "fullName": "google.cloud.aiplatform.v1.TensorboardServiceClient" - }, - "method": { - "shortName": "CreateTensorboard", - "fullName": "google.cloud.aiplatform.v1.TensorboardService.CreateTensorboard", - "service": { - "shortName": "TensorboardService", - "fullName": "google.cloud.aiplatform.v1.TensorboardService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_TensorboardService_GetTensorboard_async", - "title": "DataFoundryService getTensorboard Sample", - "origin": "API_DEFINITION", - "description": " Gets a Tensorboard.", - "canonical": true, - "file": "tensorboard_service.get_tensorboard.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTensorboard", - "fullName": "google.cloud.aiplatform.v1.TensorboardService.GetTensorboard", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.Tensorboard", - "client": { - "shortName": "TensorboardServiceClient", - "fullName": "google.cloud.aiplatform.v1.TensorboardServiceClient" - }, - "method": { - "shortName": "GetTensorboard", - "fullName": "google.cloud.aiplatform.v1.TensorboardService.GetTensorboard", - "service": { - "shortName": "TensorboardService", - "fullName": "google.cloud.aiplatform.v1.TensorboardService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_TensorboardService_UpdateTensorboard_async", - "title": "DataFoundryService updateTensorboard Sample", - "origin": "API_DEFINITION", - "description": " Updates a Tensorboard.", - "canonical": true, - "file": "tensorboard_service.update_tensorboard.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTensorboard", - "fullName": "google.cloud.aiplatform.v1.TensorboardService.UpdateTensorboard", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "tensorboard", - "type": ".google.cloud.aiplatform.v1.Tensorboard" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TensorboardServiceClient", - "fullName": "google.cloud.aiplatform.v1.TensorboardServiceClient" - }, - "method": { - "shortName": "UpdateTensorboard", - "fullName": "google.cloud.aiplatform.v1.TensorboardService.UpdateTensorboard", - "service": { - "shortName": "TensorboardService", - "fullName": "google.cloud.aiplatform.v1.TensorboardService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_TensorboardService_ListTensorboards_async", - "title": "DataFoundryService listTensorboards Sample", - "origin": "API_DEFINITION", - "description": " Lists Tensorboards in a Location.", - "canonical": true, - "file": "tensorboard_service.list_tensorboards.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTensorboards", - "fullName": "google.cloud.aiplatform.v1.TensorboardService.ListTensorboards", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ListTensorboardsResponse", - "client": { - "shortName": "TensorboardServiceClient", - "fullName": "google.cloud.aiplatform.v1.TensorboardServiceClient" - }, - "method": { - "shortName": "ListTensorboards", - "fullName": "google.cloud.aiplatform.v1.TensorboardService.ListTensorboards", - "service": { - "shortName": "TensorboardService", - "fullName": "google.cloud.aiplatform.v1.TensorboardService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_TensorboardService_DeleteTensorboard_async", - "title": "DataFoundryService deleteTensorboard Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Tensorboard.", - "canonical": true, - "file": "tensorboard_service.delete_tensorboard.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTensorboard", - "fullName": "google.cloud.aiplatform.v1.TensorboardService.DeleteTensorboard", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TensorboardServiceClient", - "fullName": "google.cloud.aiplatform.v1.TensorboardServiceClient" - }, - "method": { - "shortName": "DeleteTensorboard", - "fullName": "google.cloud.aiplatform.v1.TensorboardService.DeleteTensorboard", - "service": { - "shortName": "TensorboardService", - "fullName": "google.cloud.aiplatform.v1.TensorboardService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_TensorboardService_ReadTensorboardUsage_async", - "title": "DataFoundryService readTensorboardUsage Sample", - "origin": "API_DEFINITION", - "description": " Returns a list of monthly active users for a given TensorBoard instance.", - "canonical": true, - "file": "tensorboard_service.read_tensorboard_usage.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReadTensorboardUsage", - "fullName": "google.cloud.aiplatform.v1.TensorboardService.ReadTensorboardUsage", - "async": true, - "parameters": [ - { - "name": "tensorboard", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ReadTensorboardUsageResponse", - "client": { - "shortName": "TensorboardServiceClient", - "fullName": "google.cloud.aiplatform.v1.TensorboardServiceClient" - }, - "method": { - "shortName": "ReadTensorboardUsage", - "fullName": "google.cloud.aiplatform.v1.TensorboardService.ReadTensorboardUsage", - "service": { - "shortName": "TensorboardService", - "fullName": "google.cloud.aiplatform.v1.TensorboardService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_TensorboardService_ReadTensorboardSize_async", - "title": "DataFoundryService readTensorboardSize Sample", - "origin": "API_DEFINITION", - "description": " Returns the storage size for a given TensorBoard instance.", - "canonical": true, - "file": "tensorboard_service.read_tensorboard_size.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReadTensorboardSize", - "fullName": "google.cloud.aiplatform.v1.TensorboardService.ReadTensorboardSize", - "async": true, - "parameters": [ - { - "name": "tensorboard", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ReadTensorboardSizeResponse", - "client": { - "shortName": "TensorboardServiceClient", - "fullName": "google.cloud.aiplatform.v1.TensorboardServiceClient" - }, - "method": { - "shortName": "ReadTensorboardSize", - "fullName": "google.cloud.aiplatform.v1.TensorboardService.ReadTensorboardSize", - "service": { - "shortName": "TensorboardService", - "fullName": "google.cloud.aiplatform.v1.TensorboardService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_TensorboardService_CreateTensorboardExperiment_async", - "title": "DataFoundryService createTensorboardExperiment Sample", - "origin": "API_DEFINITION", - "description": " Creates a TensorboardExperiment.", - "canonical": true, - "file": "tensorboard_service.create_tensorboard_experiment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTensorboardExperiment", - "fullName": "google.cloud.aiplatform.v1.TensorboardService.CreateTensorboardExperiment", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "tensorboard_experiment", - "type": ".google.cloud.aiplatform.v1.TensorboardExperiment" - }, - { - "name": "tensorboard_experiment_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.TensorboardExperiment", - "client": { - "shortName": "TensorboardServiceClient", - "fullName": "google.cloud.aiplatform.v1.TensorboardServiceClient" - }, - "method": { - "shortName": "CreateTensorboardExperiment", - "fullName": "google.cloud.aiplatform.v1.TensorboardService.CreateTensorboardExperiment", - "service": { - "shortName": "TensorboardService", - "fullName": "google.cloud.aiplatform.v1.TensorboardService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_TensorboardService_GetTensorboardExperiment_async", - "title": "DataFoundryService getTensorboardExperiment Sample", - "origin": "API_DEFINITION", - "description": " Gets a TensorboardExperiment.", - "canonical": true, - "file": "tensorboard_service.get_tensorboard_experiment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTensorboardExperiment", - "fullName": "google.cloud.aiplatform.v1.TensorboardService.GetTensorboardExperiment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.TensorboardExperiment", - "client": { - "shortName": "TensorboardServiceClient", - "fullName": "google.cloud.aiplatform.v1.TensorboardServiceClient" - }, - "method": { - "shortName": "GetTensorboardExperiment", - "fullName": "google.cloud.aiplatform.v1.TensorboardService.GetTensorboardExperiment", - "service": { - "shortName": "TensorboardService", - "fullName": "google.cloud.aiplatform.v1.TensorboardService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_TensorboardService_UpdateTensorboardExperiment_async", - "title": "DataFoundryService updateTensorboardExperiment Sample", - "origin": "API_DEFINITION", - "description": " Updates a TensorboardExperiment.", - "canonical": true, - "file": "tensorboard_service.update_tensorboard_experiment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTensorboardExperiment", - "fullName": "google.cloud.aiplatform.v1.TensorboardService.UpdateTensorboardExperiment", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "tensorboard_experiment", - "type": ".google.cloud.aiplatform.v1.TensorboardExperiment" - } - ], - "resultType": ".google.cloud.aiplatform.v1.TensorboardExperiment", - "client": { - "shortName": "TensorboardServiceClient", - "fullName": "google.cloud.aiplatform.v1.TensorboardServiceClient" - }, - "method": { - "shortName": "UpdateTensorboardExperiment", - "fullName": "google.cloud.aiplatform.v1.TensorboardService.UpdateTensorboardExperiment", - "service": { - "shortName": "TensorboardService", - "fullName": "google.cloud.aiplatform.v1.TensorboardService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_TensorboardService_ListTensorboardExperiments_async", - "title": "DataFoundryService listTensorboardExperiments Sample", - "origin": "API_DEFINITION", - "description": " Lists TensorboardExperiments in a Location.", - "canonical": true, - "file": "tensorboard_service.list_tensorboard_experiments.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTensorboardExperiments", - "fullName": "google.cloud.aiplatform.v1.TensorboardService.ListTensorboardExperiments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ListTensorboardExperimentsResponse", - "client": { - "shortName": "TensorboardServiceClient", - "fullName": "google.cloud.aiplatform.v1.TensorboardServiceClient" - }, - "method": { - "shortName": "ListTensorboardExperiments", - "fullName": "google.cloud.aiplatform.v1.TensorboardService.ListTensorboardExperiments", - "service": { - "shortName": "TensorboardService", - "fullName": "google.cloud.aiplatform.v1.TensorboardService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_TensorboardService_DeleteTensorboardExperiment_async", - "title": "DataFoundryService deleteTensorboardExperiment Sample", - "origin": "API_DEFINITION", - "description": " Deletes a TensorboardExperiment.", - "canonical": true, - "file": "tensorboard_service.delete_tensorboard_experiment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTensorboardExperiment", - "fullName": "google.cloud.aiplatform.v1.TensorboardService.DeleteTensorboardExperiment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TensorboardServiceClient", - "fullName": "google.cloud.aiplatform.v1.TensorboardServiceClient" - }, - "method": { - "shortName": "DeleteTensorboardExperiment", - "fullName": "google.cloud.aiplatform.v1.TensorboardService.DeleteTensorboardExperiment", - "service": { - "shortName": "TensorboardService", - "fullName": "google.cloud.aiplatform.v1.TensorboardService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_TensorboardService_CreateTensorboardRun_async", - "title": "DataFoundryService createTensorboardRun Sample", - "origin": "API_DEFINITION", - "description": " Creates a TensorboardRun.", - "canonical": true, - "file": "tensorboard_service.create_tensorboard_run.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTensorboardRun", - "fullName": "google.cloud.aiplatform.v1.TensorboardService.CreateTensorboardRun", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "tensorboard_run", - "type": ".google.cloud.aiplatform.v1.TensorboardRun" - }, - { - "name": "tensorboard_run_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.TensorboardRun", - "client": { - "shortName": "TensorboardServiceClient", - "fullName": "google.cloud.aiplatform.v1.TensorboardServiceClient" - }, - "method": { - "shortName": "CreateTensorboardRun", - "fullName": "google.cloud.aiplatform.v1.TensorboardService.CreateTensorboardRun", - "service": { - "shortName": "TensorboardService", - "fullName": "google.cloud.aiplatform.v1.TensorboardService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_TensorboardService_BatchCreateTensorboardRuns_async", - "title": "DataFoundryService batchCreateTensorboardRuns Sample", - "origin": "API_DEFINITION", - "description": " Batch create TensorboardRuns.", - "canonical": true, - "file": "tensorboard_service.batch_create_tensorboard_runs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCreateTensorboardRuns", - "fullName": "google.cloud.aiplatform.v1.TensorboardService.BatchCreateTensorboardRuns", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.aiplatform.v1.BatchCreateTensorboardRunsResponse", - "client": { - "shortName": "TensorboardServiceClient", - "fullName": "google.cloud.aiplatform.v1.TensorboardServiceClient" - }, - "method": { - "shortName": "BatchCreateTensorboardRuns", - "fullName": "google.cloud.aiplatform.v1.TensorboardService.BatchCreateTensorboardRuns", - "service": { - "shortName": "TensorboardService", - "fullName": "google.cloud.aiplatform.v1.TensorboardService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_TensorboardService_GetTensorboardRun_async", - "title": "DataFoundryService getTensorboardRun Sample", - "origin": "API_DEFINITION", - "description": " Gets a TensorboardRun.", - "canonical": true, - "file": "tensorboard_service.get_tensorboard_run.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTensorboardRun", - "fullName": "google.cloud.aiplatform.v1.TensorboardService.GetTensorboardRun", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.TensorboardRun", - "client": { - "shortName": "TensorboardServiceClient", - "fullName": "google.cloud.aiplatform.v1.TensorboardServiceClient" - }, - "method": { - "shortName": "GetTensorboardRun", - "fullName": "google.cloud.aiplatform.v1.TensorboardService.GetTensorboardRun", - "service": { - "shortName": "TensorboardService", - "fullName": "google.cloud.aiplatform.v1.TensorboardService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_TensorboardService_UpdateTensorboardRun_async", - "title": "DataFoundryService updateTensorboardRun Sample", - "origin": "API_DEFINITION", - "description": " Updates a TensorboardRun.", - "canonical": true, - "file": "tensorboard_service.update_tensorboard_run.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTensorboardRun", - "fullName": "google.cloud.aiplatform.v1.TensorboardService.UpdateTensorboardRun", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "tensorboard_run", - "type": ".google.cloud.aiplatform.v1.TensorboardRun" - } - ], - "resultType": ".google.cloud.aiplatform.v1.TensorboardRun", - "client": { - "shortName": "TensorboardServiceClient", - "fullName": "google.cloud.aiplatform.v1.TensorboardServiceClient" - }, - "method": { - "shortName": "UpdateTensorboardRun", - "fullName": "google.cloud.aiplatform.v1.TensorboardService.UpdateTensorboardRun", - "service": { - "shortName": "TensorboardService", - "fullName": "google.cloud.aiplatform.v1.TensorboardService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_TensorboardService_ListTensorboardRuns_async", - "title": "DataFoundryService listTensorboardRuns Sample", - "origin": "API_DEFINITION", - "description": " Lists TensorboardRuns in a Location.", - "canonical": true, - "file": "tensorboard_service.list_tensorboard_runs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTensorboardRuns", - "fullName": "google.cloud.aiplatform.v1.TensorboardService.ListTensorboardRuns", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ListTensorboardRunsResponse", - "client": { - "shortName": "TensorboardServiceClient", - "fullName": "google.cloud.aiplatform.v1.TensorboardServiceClient" - }, - "method": { - "shortName": "ListTensorboardRuns", - "fullName": "google.cloud.aiplatform.v1.TensorboardService.ListTensorboardRuns", - "service": { - "shortName": "TensorboardService", - "fullName": "google.cloud.aiplatform.v1.TensorboardService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_TensorboardService_DeleteTensorboardRun_async", - "title": "DataFoundryService deleteTensorboardRun Sample", - "origin": "API_DEFINITION", - "description": " Deletes a TensorboardRun.", - "canonical": true, - "file": "tensorboard_service.delete_tensorboard_run.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTensorboardRun", - "fullName": "google.cloud.aiplatform.v1.TensorboardService.DeleteTensorboardRun", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TensorboardServiceClient", - "fullName": "google.cloud.aiplatform.v1.TensorboardServiceClient" - }, - "method": { - "shortName": "DeleteTensorboardRun", - "fullName": "google.cloud.aiplatform.v1.TensorboardService.DeleteTensorboardRun", - "service": { - "shortName": "TensorboardService", - "fullName": "google.cloud.aiplatform.v1.TensorboardService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_TensorboardService_BatchCreateTensorboardTimeSeries_async", - "title": "DataFoundryService batchCreateTensorboardTimeSeries Sample", - "origin": "API_DEFINITION", - "description": " Batch create TensorboardTimeSeries that belong to a TensorboardExperiment.", - "canonical": true, - "file": "tensorboard_service.batch_create_tensorboard_time_series.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCreateTensorboardTimeSeries", - "fullName": "google.cloud.aiplatform.v1.TensorboardService.BatchCreateTensorboardTimeSeries", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesResponse", - "client": { - "shortName": "TensorboardServiceClient", - "fullName": "google.cloud.aiplatform.v1.TensorboardServiceClient" - }, - "method": { - "shortName": "BatchCreateTensorboardTimeSeries", - "fullName": "google.cloud.aiplatform.v1.TensorboardService.BatchCreateTensorboardTimeSeries", - "service": { - "shortName": "TensorboardService", - "fullName": "google.cloud.aiplatform.v1.TensorboardService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_TensorboardService_CreateTensorboardTimeSeries_async", - "title": "DataFoundryService createTensorboardTimeSeries Sample", - "origin": "API_DEFINITION", - "description": " Creates a TensorboardTimeSeries.", - "canonical": true, - "file": "tensorboard_service.create_tensorboard_time_series.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTensorboardTimeSeries", - "fullName": "google.cloud.aiplatform.v1.TensorboardService.CreateTensorboardTimeSeries", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "tensorboard_time_series_id", - "type": "TYPE_STRING" - }, - { - "name": "tensorboard_time_series", - "type": ".google.cloud.aiplatform.v1.TensorboardTimeSeries" - } - ], - "resultType": ".google.cloud.aiplatform.v1.TensorboardTimeSeries", - "client": { - "shortName": "TensorboardServiceClient", - "fullName": "google.cloud.aiplatform.v1.TensorboardServiceClient" - }, - "method": { - "shortName": "CreateTensorboardTimeSeries", - "fullName": "google.cloud.aiplatform.v1.TensorboardService.CreateTensorboardTimeSeries", - "service": { - "shortName": "TensorboardService", - "fullName": "google.cloud.aiplatform.v1.TensorboardService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_TensorboardService_GetTensorboardTimeSeries_async", - "title": "DataFoundryService getTensorboardTimeSeries Sample", - "origin": "API_DEFINITION", - "description": " Gets a TensorboardTimeSeries.", - "canonical": true, - "file": "tensorboard_service.get_tensorboard_time_series.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTensorboardTimeSeries", - "fullName": "google.cloud.aiplatform.v1.TensorboardService.GetTensorboardTimeSeries", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.TensorboardTimeSeries", - "client": { - "shortName": "TensorboardServiceClient", - "fullName": "google.cloud.aiplatform.v1.TensorboardServiceClient" - }, - "method": { - "shortName": "GetTensorboardTimeSeries", - "fullName": "google.cloud.aiplatform.v1.TensorboardService.GetTensorboardTimeSeries", - "service": { - "shortName": "TensorboardService", - "fullName": "google.cloud.aiplatform.v1.TensorboardService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_TensorboardService_UpdateTensorboardTimeSeries_async", - "title": "DataFoundryService updateTensorboardTimeSeries Sample", - "origin": "API_DEFINITION", - "description": " Updates a TensorboardTimeSeries.", - "canonical": true, - "file": "tensorboard_service.update_tensorboard_time_series.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTensorboardTimeSeries", - "fullName": "google.cloud.aiplatform.v1.TensorboardService.UpdateTensorboardTimeSeries", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "tensorboard_time_series", - "type": ".google.cloud.aiplatform.v1.TensorboardTimeSeries" - } - ], - "resultType": ".google.cloud.aiplatform.v1.TensorboardTimeSeries", - "client": { - "shortName": "TensorboardServiceClient", - "fullName": "google.cloud.aiplatform.v1.TensorboardServiceClient" - }, - "method": { - "shortName": "UpdateTensorboardTimeSeries", - "fullName": "google.cloud.aiplatform.v1.TensorboardService.UpdateTensorboardTimeSeries", - "service": { - "shortName": "TensorboardService", - "fullName": "google.cloud.aiplatform.v1.TensorboardService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_TensorboardService_ListTensorboardTimeSeries_async", - "title": "DataFoundryService listTensorboardTimeSeries Sample", - "origin": "API_DEFINITION", - "description": " Lists TensorboardTimeSeries in a Location.", - "canonical": true, - "file": "tensorboard_service.list_tensorboard_time_series.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTensorboardTimeSeries", - "fullName": "google.cloud.aiplatform.v1.TensorboardService.ListTensorboardTimeSeries", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ListTensorboardTimeSeriesResponse", - "client": { - "shortName": "TensorboardServiceClient", - "fullName": "google.cloud.aiplatform.v1.TensorboardServiceClient" - }, - "method": { - "shortName": "ListTensorboardTimeSeries", - "fullName": "google.cloud.aiplatform.v1.TensorboardService.ListTensorboardTimeSeries", - "service": { - "shortName": "TensorboardService", - "fullName": "google.cloud.aiplatform.v1.TensorboardService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_TensorboardService_DeleteTensorboardTimeSeries_async", - "title": "DataFoundryService deleteTensorboardTimeSeries Sample", - "origin": "API_DEFINITION", - "description": " Deletes a TensorboardTimeSeries.", - "canonical": true, - "file": "tensorboard_service.delete_tensorboard_time_series.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTensorboardTimeSeries", - "fullName": "google.cloud.aiplatform.v1.TensorboardService.DeleteTensorboardTimeSeries", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TensorboardServiceClient", - "fullName": "google.cloud.aiplatform.v1.TensorboardServiceClient" - }, - "method": { - "shortName": "DeleteTensorboardTimeSeries", - "fullName": "google.cloud.aiplatform.v1.TensorboardService.DeleteTensorboardTimeSeries", - "service": { - "shortName": "TensorboardService", - "fullName": "google.cloud.aiplatform.v1.TensorboardService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_TensorboardService_BatchReadTensorboardTimeSeriesData_async", - "title": "DataFoundryService batchReadTensorboardTimeSeriesData Sample", - "origin": "API_DEFINITION", - "description": " Reads multiple TensorboardTimeSeries' data. The data point number limit is 1000 for scalars, 100 for tensors and blob references. If the number of data points stored is less than the limit, all data is returned. Otherwise, the number limit of data points is randomly selected from this time series and returned.", - "canonical": true, - "file": "tensorboard_service.batch_read_tensorboard_time_series_data.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchReadTensorboardTimeSeriesData", - "fullName": "google.cloud.aiplatform.v1.TensorboardService.BatchReadTensorboardTimeSeriesData", - "async": true, - "parameters": [ - { - "name": "tensorboard", - "type": "TYPE_STRING" - }, - { - "name": "time_series", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataResponse", - "client": { - "shortName": "TensorboardServiceClient", - "fullName": "google.cloud.aiplatform.v1.TensorboardServiceClient" - }, - "method": { - "shortName": "BatchReadTensorboardTimeSeriesData", - "fullName": "google.cloud.aiplatform.v1.TensorboardService.BatchReadTensorboardTimeSeriesData", - "service": { - "shortName": "TensorboardService", - "fullName": "google.cloud.aiplatform.v1.TensorboardService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_TensorboardService_ReadTensorboardTimeSeriesData_async", - "title": "DataFoundryService readTensorboardTimeSeriesData Sample", - "origin": "API_DEFINITION", - "description": " Reads a TensorboardTimeSeries' data. By default, if the number of data points stored is less than 1000, all data is returned. Otherwise, 1000 data points is randomly selected from this time series and returned. This value can be changed by changing max_data_points, which can't be greater than 10k.", - "canonical": true, - "file": "tensorboard_service.read_tensorboard_time_series_data.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReadTensorboardTimeSeriesData", - "fullName": "google.cloud.aiplatform.v1.TensorboardService.ReadTensorboardTimeSeriesData", - "async": true, - "parameters": [ - { - "name": "tensorboard_time_series", - "type": "TYPE_STRING" - }, - { - "name": "max_data_points", - "type": "TYPE_INT32" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataResponse", - "client": { - "shortName": "TensorboardServiceClient", - "fullName": "google.cloud.aiplatform.v1.TensorboardServiceClient" - }, - "method": { - "shortName": "ReadTensorboardTimeSeriesData", - "fullName": "google.cloud.aiplatform.v1.TensorboardService.ReadTensorboardTimeSeriesData", - "service": { - "shortName": "TensorboardService", - "fullName": "google.cloud.aiplatform.v1.TensorboardService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_TensorboardService_ReadTensorboardBlobData_async", - "title": "DataFoundryService readTensorboardBlobData Sample", - "origin": "API_DEFINITION", - "description": " Gets bytes of TensorboardBlobs. This is to allow reading blob data stored in consumer project's Cloud Storage bucket without users having to obtain Cloud Storage access permission.", - "canonical": true, - "file": "tensorboard_service.read_tensorboard_blob_data.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReadTensorboardBlobData", - "fullName": "google.cloud.aiplatform.v1.TensorboardService.ReadTensorboardBlobData", - "async": true, - "parameters": [ - { - "name": "time_series", - "type": "TYPE_STRING" - }, - { - "name": "blob_ids", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ReadTensorboardBlobDataResponse", - "client": { - "shortName": "TensorboardServiceClient", - "fullName": "google.cloud.aiplatform.v1.TensorboardServiceClient" - }, - "method": { - "shortName": "ReadTensorboardBlobData", - "fullName": "google.cloud.aiplatform.v1.TensorboardService.ReadTensorboardBlobData", - "service": { - "shortName": "TensorboardService", - "fullName": "google.cloud.aiplatform.v1.TensorboardService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_TensorboardService_WriteTensorboardExperimentData_async", - "title": "DataFoundryService writeTensorboardExperimentData Sample", - "origin": "API_DEFINITION", - "description": " Write time series data points of multiple TensorboardTimeSeries in multiple TensorboardRun's. If any data fail to be ingested, an error is returned.", - "canonical": true, - "file": "tensorboard_service.write_tensorboard_experiment_data.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "WriteTensorboardExperimentData", - "fullName": "google.cloud.aiplatform.v1.TensorboardService.WriteTensorboardExperimentData", - "async": true, - "parameters": [ - { - "name": "tensorboard_experiment", - "type": "TYPE_STRING" - }, - { - "name": "write_run_data_requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.aiplatform.v1.WriteTensorboardExperimentDataResponse", - "client": { - "shortName": "TensorboardServiceClient", - "fullName": "google.cloud.aiplatform.v1.TensorboardServiceClient" - }, - "method": { - "shortName": "WriteTensorboardExperimentData", - "fullName": "google.cloud.aiplatform.v1.TensorboardService.WriteTensorboardExperimentData", - "service": { - "shortName": "TensorboardService", - "fullName": "google.cloud.aiplatform.v1.TensorboardService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_TensorboardService_WriteTensorboardRunData_async", - "title": "DataFoundryService writeTensorboardRunData Sample", - "origin": "API_DEFINITION", - "description": " Write time series data points into multiple TensorboardTimeSeries under a TensorboardRun. If any data fail to be ingested, an error is returned.", - "canonical": true, - "file": "tensorboard_service.write_tensorboard_run_data.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "WriteTensorboardRunData", - "fullName": "google.cloud.aiplatform.v1.TensorboardService.WriteTensorboardRunData", - "async": true, - "parameters": [ - { - "name": "tensorboard_run", - "type": "TYPE_STRING" - }, - { - "name": "time_series_data", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.aiplatform.v1.WriteTensorboardRunDataResponse", - "client": { - "shortName": "TensorboardServiceClient", - "fullName": "google.cloud.aiplatform.v1.TensorboardServiceClient" - }, - "method": { - "shortName": "WriteTensorboardRunData", - "fullName": "google.cloud.aiplatform.v1.TensorboardService.WriteTensorboardRunData", - "service": { - "shortName": "TensorboardService", - "fullName": "google.cloud.aiplatform.v1.TensorboardService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_TensorboardService_ExportTensorboardTimeSeriesData_async", - "title": "DataFoundryService exportTensorboardTimeSeriesData Sample", - "origin": "API_DEFINITION", - "description": " Exports a TensorboardTimeSeries' data. Data is returned in paginated responses.", - "canonical": true, - "file": "tensorboard_service.export_tensorboard_time_series_data.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportTensorboardTimeSeriesData", - "fullName": "google.cloud.aiplatform.v1.TensorboardService.ExportTensorboardTimeSeriesData", - "async": true, - "parameters": [ - { - "name": "tensorboard_time_series", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataResponse", - "client": { - "shortName": "TensorboardServiceClient", - "fullName": "google.cloud.aiplatform.v1.TensorboardServiceClient" - }, - "method": { - "shortName": "ExportTensorboardTimeSeriesData", - "fullName": "google.cloud.aiplatform.v1.TensorboardService.ExportTensorboardTimeSeriesData", - "service": { - "shortName": "TensorboardService", - "fullName": "google.cloud.aiplatform.v1.TensorboardService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_VertexRagDataService_CreateRagCorpus_async", - "title": "DataFoundryService createRagCorpus Sample", - "origin": "API_DEFINITION", - "description": " Creates a RagCorpus.", - "canonical": true, - "file": "vertex_rag_data_service.create_rag_corpus.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateRagCorpus", - "fullName": "google.cloud.aiplatform.v1.VertexRagDataService.CreateRagCorpus", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "rag_corpus", - "type": ".google.cloud.aiplatform.v1.RagCorpus" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VertexRagDataServiceClient", - "fullName": "google.cloud.aiplatform.v1.VertexRagDataServiceClient" - }, - "method": { - "shortName": "CreateRagCorpus", - "fullName": "google.cloud.aiplatform.v1.VertexRagDataService.CreateRagCorpus", - "service": { - "shortName": "VertexRagDataService", - "fullName": "google.cloud.aiplatform.v1.VertexRagDataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_VertexRagDataService_UpdateRagCorpus_async", - "title": "DataFoundryService updateRagCorpus Sample", - "origin": "API_DEFINITION", - "description": " Updates a RagCorpus.", - "canonical": true, - "file": "vertex_rag_data_service.update_rag_corpus.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateRagCorpus", - "fullName": "google.cloud.aiplatform.v1.VertexRagDataService.UpdateRagCorpus", - "async": true, - "parameters": [ - { - "name": "rag_corpus", - "type": ".google.cloud.aiplatform.v1.RagCorpus" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VertexRagDataServiceClient", - "fullName": "google.cloud.aiplatform.v1.VertexRagDataServiceClient" - }, - "method": { - "shortName": "UpdateRagCorpus", - "fullName": "google.cloud.aiplatform.v1.VertexRagDataService.UpdateRagCorpus", - "service": { - "shortName": "VertexRagDataService", - "fullName": "google.cloud.aiplatform.v1.VertexRagDataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_VertexRagDataService_GetRagCorpus_async", - "title": "DataFoundryService getRagCorpus Sample", - "origin": "API_DEFINITION", - "description": " Gets a RagCorpus.", - "canonical": true, - "file": "vertex_rag_data_service.get_rag_corpus.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRagCorpus", - "fullName": "google.cloud.aiplatform.v1.VertexRagDataService.GetRagCorpus", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.RagCorpus", - "client": { - "shortName": "VertexRagDataServiceClient", - "fullName": "google.cloud.aiplatform.v1.VertexRagDataServiceClient" - }, - "method": { - "shortName": "GetRagCorpus", - "fullName": "google.cloud.aiplatform.v1.VertexRagDataService.GetRagCorpus", - "service": { - "shortName": "VertexRagDataService", - "fullName": "google.cloud.aiplatform.v1.VertexRagDataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_VertexRagDataService_ListRagCorpora_async", - "title": "DataFoundryService listRagCorpora Sample", - "origin": "API_DEFINITION", - "description": " Lists RagCorpora in a Location.", - "canonical": true, - "file": "vertex_rag_data_service.list_rag_corpora.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRagCorpora", - "fullName": "google.cloud.aiplatform.v1.VertexRagDataService.ListRagCorpora", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ListRagCorporaResponse", - "client": { - "shortName": "VertexRagDataServiceClient", - "fullName": "google.cloud.aiplatform.v1.VertexRagDataServiceClient" - }, - "method": { - "shortName": "ListRagCorpora", - "fullName": "google.cloud.aiplatform.v1.VertexRagDataService.ListRagCorpora", - "service": { - "shortName": "VertexRagDataService", - "fullName": "google.cloud.aiplatform.v1.VertexRagDataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_VertexRagDataService_DeleteRagCorpus_async", - "title": "DataFoundryService deleteRagCorpus Sample", - "origin": "API_DEFINITION", - "description": " Deletes a RagCorpus.", - "canonical": true, - "file": "vertex_rag_data_service.delete_rag_corpus.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteRagCorpus", - "fullName": "google.cloud.aiplatform.v1.VertexRagDataService.DeleteRagCorpus", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VertexRagDataServiceClient", - "fullName": "google.cloud.aiplatform.v1.VertexRagDataServiceClient" - }, - "method": { - "shortName": "DeleteRagCorpus", - "fullName": "google.cloud.aiplatform.v1.VertexRagDataService.DeleteRagCorpus", - "service": { - "shortName": "VertexRagDataService", - "fullName": "google.cloud.aiplatform.v1.VertexRagDataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_VertexRagDataService_UploadRagFile_async", - "title": "DataFoundryService uploadRagFile Sample", - "origin": "API_DEFINITION", - "description": " Upload a file into a RagCorpus.", - "canonical": true, - "file": "vertex_rag_data_service.upload_rag_file.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UploadRagFile", - "fullName": "google.cloud.aiplatform.v1.VertexRagDataService.UploadRagFile", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "rag_file", - "type": ".google.cloud.aiplatform.v1.RagFile" - }, - { - "name": "upload_rag_file_config", - "type": ".google.cloud.aiplatform.v1.UploadRagFileConfig" - } - ], - "resultType": ".google.cloud.aiplatform.v1.UploadRagFileResponse", - "client": { - "shortName": "VertexRagDataServiceClient", - "fullName": "google.cloud.aiplatform.v1.VertexRagDataServiceClient" - }, - "method": { - "shortName": "UploadRagFile", - "fullName": "google.cloud.aiplatform.v1.VertexRagDataService.UploadRagFile", - "service": { - "shortName": "VertexRagDataService", - "fullName": "google.cloud.aiplatform.v1.VertexRagDataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_VertexRagDataService_ImportRagFiles_async", - "title": "DataFoundryService importRagFiles Sample", - "origin": "API_DEFINITION", - "description": " Import files from Google Cloud Storage or Google Drive into a RagCorpus.", - "canonical": true, - "file": "vertex_rag_data_service.import_rag_files.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportRagFiles", - "fullName": "google.cloud.aiplatform.v1.VertexRagDataService.ImportRagFiles", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "import_rag_files_config", - "type": ".google.cloud.aiplatform.v1.ImportRagFilesConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VertexRagDataServiceClient", - "fullName": "google.cloud.aiplatform.v1.VertexRagDataServiceClient" - }, - "method": { - "shortName": "ImportRagFiles", - "fullName": "google.cloud.aiplatform.v1.VertexRagDataService.ImportRagFiles", - "service": { - "shortName": "VertexRagDataService", - "fullName": "google.cloud.aiplatform.v1.VertexRagDataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_VertexRagDataService_GetRagFile_async", - "title": "DataFoundryService getRagFile Sample", - "origin": "API_DEFINITION", - "description": " Gets a RagFile.", - "canonical": true, - "file": "vertex_rag_data_service.get_rag_file.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRagFile", - "fullName": "google.cloud.aiplatform.v1.VertexRagDataService.GetRagFile", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.RagFile", - "client": { - "shortName": "VertexRagDataServiceClient", - "fullName": "google.cloud.aiplatform.v1.VertexRagDataServiceClient" - }, - "method": { - "shortName": "GetRagFile", - "fullName": "google.cloud.aiplatform.v1.VertexRagDataService.GetRagFile", - "service": { - "shortName": "VertexRagDataService", - "fullName": "google.cloud.aiplatform.v1.VertexRagDataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_VertexRagDataService_ListRagFiles_async", - "title": "DataFoundryService listRagFiles Sample", - "origin": "API_DEFINITION", - "description": " Lists RagFiles in a RagCorpus.", - "canonical": true, - "file": "vertex_rag_data_service.list_rag_files.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRagFiles", - "fullName": "google.cloud.aiplatform.v1.VertexRagDataService.ListRagFiles", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ListRagFilesResponse", - "client": { - "shortName": "VertexRagDataServiceClient", - "fullName": "google.cloud.aiplatform.v1.VertexRagDataServiceClient" - }, - "method": { - "shortName": "ListRagFiles", - "fullName": "google.cloud.aiplatform.v1.VertexRagDataService.ListRagFiles", - "service": { - "shortName": "VertexRagDataService", - "fullName": "google.cloud.aiplatform.v1.VertexRagDataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_VertexRagDataService_DeleteRagFile_async", - "title": "DataFoundryService deleteRagFile Sample", - "origin": "API_DEFINITION", - "description": " Deletes a RagFile.", - "canonical": true, - "file": "vertex_rag_data_service.delete_rag_file.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteRagFile", - "fullName": "google.cloud.aiplatform.v1.VertexRagDataService.DeleteRagFile", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VertexRagDataServiceClient", - "fullName": "google.cloud.aiplatform.v1.VertexRagDataServiceClient" - }, - "method": { - "shortName": "DeleteRagFile", - "fullName": "google.cloud.aiplatform.v1.VertexRagDataService.DeleteRagFile", - "service": { - "shortName": "VertexRagDataService", - "fullName": "google.cloud.aiplatform.v1.VertexRagDataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_VertexRagDataService_UpdateRagEngineConfig_async", - "title": "DataFoundryService updateRagEngineConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates a RagEngineConfig.", - "canonical": true, - "file": "vertex_rag_data_service.update_rag_engine_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateRagEngineConfig", - "fullName": "google.cloud.aiplatform.v1.VertexRagDataService.UpdateRagEngineConfig", - "async": true, - "parameters": [ - { - "name": "rag_engine_config", - "type": ".google.cloud.aiplatform.v1.RagEngineConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VertexRagDataServiceClient", - "fullName": "google.cloud.aiplatform.v1.VertexRagDataServiceClient" - }, - "method": { - "shortName": "UpdateRagEngineConfig", - "fullName": "google.cloud.aiplatform.v1.VertexRagDataService.UpdateRagEngineConfig", - "service": { - "shortName": "VertexRagDataService", - "fullName": "google.cloud.aiplatform.v1.VertexRagDataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_VertexRagDataService_GetRagEngineConfig_async", - "title": "DataFoundryService getRagEngineConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets a RagEngineConfig.", - "canonical": true, - "file": "vertex_rag_data_service.get_rag_engine_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRagEngineConfig", - "fullName": "google.cloud.aiplatform.v1.VertexRagDataService.GetRagEngineConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.RagEngineConfig", - "client": { - "shortName": "VertexRagDataServiceClient", - "fullName": "google.cloud.aiplatform.v1.VertexRagDataServiceClient" - }, - "method": { - "shortName": "GetRagEngineConfig", - "fullName": "google.cloud.aiplatform.v1.VertexRagDataService.GetRagEngineConfig", - "service": { - "shortName": "VertexRagDataService", - "fullName": "google.cloud.aiplatform.v1.VertexRagDataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_VertexRagService_RetrieveContexts_async", - "title": "DataFoundryService retrieveContexts Sample", - "origin": "API_DEFINITION", - "description": " Retrieves relevant contexts for a query.", - "canonical": true, - "file": "vertex_rag_service.retrieve_contexts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RetrieveContexts", - "fullName": "google.cloud.aiplatform.v1.VertexRagService.RetrieveContexts", - "async": true, - "parameters": [ - { - "name": "vertex_rag_store", - "type": ".google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": ".google.cloud.aiplatform.v1.RagQuery" - } - ], - "resultType": ".google.cloud.aiplatform.v1.RetrieveContextsResponse", - "client": { - "shortName": "VertexRagServiceClient", - "fullName": "google.cloud.aiplatform.v1.VertexRagServiceClient" - }, - "method": { - "shortName": "RetrieveContexts", - "fullName": "google.cloud.aiplatform.v1.VertexRagService.RetrieveContexts", - "service": { - "shortName": "VertexRagService", - "fullName": "google.cloud.aiplatform.v1.VertexRagService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_VertexRagService_AugmentPrompt_async", - "title": "DataFoundryService augmentPrompt Sample", - "origin": "API_DEFINITION", - "description": " Given an input prompt, it returns augmented prompt from vertex rag store to guide LLM towards generating grounded responses.", - "canonical": true, - "file": "vertex_rag_service.augment_prompt.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AugmentPrompt", - "fullName": "google.cloud.aiplatform.v1.VertexRagService.AugmentPrompt", - "async": true, - "parameters": [ - { - "name": "vertex_rag_store", - "type": ".google.cloud.aiplatform.v1.VertexRagStore" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "contents", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "model", - "type": ".google.cloud.aiplatform.v1.AugmentPromptRequest.Model" - } - ], - "resultType": ".google.cloud.aiplatform.v1.AugmentPromptResponse", - "client": { - "shortName": "VertexRagServiceClient", - "fullName": "google.cloud.aiplatform.v1.VertexRagServiceClient" - }, - "method": { - "shortName": "AugmentPrompt", - "fullName": "google.cloud.aiplatform.v1.VertexRagService.AugmentPrompt", - "service": { - "shortName": "VertexRagService", - "fullName": "google.cloud.aiplatform.v1.VertexRagService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_VertexRagService_CorroborateContent_async", - "title": "DataFoundryService corroborateContent Sample", - "origin": "API_DEFINITION", - "description": " Given an input text, it returns a score that evaluates the factuality of the text. It also extracts and returns claims from the text and provides supporting facts.", - "canonical": true, - "file": "vertex_rag_service.corroborate_content.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CorroborateContent", - "fullName": "google.cloud.aiplatform.v1.VertexRagService.CorroborateContent", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "content", - "type": ".google.cloud.aiplatform.v1.Content" - }, - { - "name": "facts", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "parameters", - "type": ".google.cloud.aiplatform.v1.CorroborateContentRequest.Parameters" - } - ], - "resultType": ".google.cloud.aiplatform.v1.CorroborateContentResponse", - "client": { - "shortName": "VertexRagServiceClient", - "fullName": "google.cloud.aiplatform.v1.VertexRagServiceClient" - }, - "method": { - "shortName": "CorroborateContent", - "fullName": "google.cloud.aiplatform.v1.VertexRagService.CorroborateContent", - "service": { - "shortName": "VertexRagService", - "fullName": "google.cloud.aiplatform.v1.VertexRagService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_VertexRagService_AskContexts_async", - "title": "DataFoundryService askContexts Sample", - "origin": "API_DEFINITION", - "description": " Agentic Retrieval Ask API for RAG.", - "canonical": true, - "file": "vertex_rag_service.ask_contexts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AskContexts", - "fullName": "google.cloud.aiplatform.v1.VertexRagService.AskContexts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": ".google.cloud.aiplatform.v1.RagQuery" - }, - { - "name": "tools", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.aiplatform.v1.AskContextsResponse", - "client": { - "shortName": "VertexRagServiceClient", - "fullName": "google.cloud.aiplatform.v1.VertexRagServiceClient" - }, - "method": { - "shortName": "AskContexts", - "fullName": "google.cloud.aiplatform.v1.VertexRagService.AskContexts", - "service": { - "shortName": "VertexRagService", - "fullName": "google.cloud.aiplatform.v1.VertexRagService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_VertexRagService_AsyncRetrieveContexts_async", - "title": "DataFoundryService asyncRetrieveContexts Sample", - "origin": "API_DEFINITION", - "description": " Asynchronous API to retrieves relevant contexts for a query.", - "canonical": true, - "file": "vertex_rag_service.async_retrieve_contexts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AsyncRetrieveContexts", - "fullName": "google.cloud.aiplatform.v1.VertexRagService.AsyncRetrieveContexts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": ".google.cloud.aiplatform.v1.RagQuery" - }, - { - "name": "tools", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VertexRagServiceClient", - "fullName": "google.cloud.aiplatform.v1.VertexRagServiceClient" - }, - "method": { - "shortName": "AsyncRetrieveContexts", - "fullName": "google.cloud.aiplatform.v1.VertexRagService.AsyncRetrieveContexts", - "service": { - "shortName": "VertexRagService", - "fullName": "google.cloud.aiplatform.v1.VertexRagService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_VizierService_CreateStudy_async", - "title": "DataFoundryService createStudy Sample", - "origin": "API_DEFINITION", - "description": " Creates a Study. A resource name will be generated after creation of the Study.", - "canonical": true, - "file": "vizier_service.create_study.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateStudy", - "fullName": "google.cloud.aiplatform.v1.VizierService.CreateStudy", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "study", - "type": ".google.cloud.aiplatform.v1.Study" - } - ], - "resultType": ".google.cloud.aiplatform.v1.Study", - "client": { - "shortName": "VizierServiceClient", - "fullName": "google.cloud.aiplatform.v1.VizierServiceClient" - }, - "method": { - "shortName": "CreateStudy", - "fullName": "google.cloud.aiplatform.v1.VizierService.CreateStudy", - "service": { - "shortName": "VizierService", - "fullName": "google.cloud.aiplatform.v1.VizierService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_VizierService_GetStudy_async", - "title": "DataFoundryService getStudy Sample", - "origin": "API_DEFINITION", - "description": " Gets a Study by name.", - "canonical": true, - "file": "vizier_service.get_study.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetStudy", - "fullName": "google.cloud.aiplatform.v1.VizierService.GetStudy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.Study", - "client": { - "shortName": "VizierServiceClient", - "fullName": "google.cloud.aiplatform.v1.VizierServiceClient" - }, - "method": { - "shortName": "GetStudy", - "fullName": "google.cloud.aiplatform.v1.VizierService.GetStudy", - "service": { - "shortName": "VizierService", - "fullName": "google.cloud.aiplatform.v1.VizierService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_VizierService_ListStudies_async", - "title": "DataFoundryService listStudies Sample", - "origin": "API_DEFINITION", - "description": " Lists all the studies in a region for an associated project.", - "canonical": true, - "file": "vizier_service.list_studies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListStudies", - "fullName": "google.cloud.aiplatform.v1.VizierService.ListStudies", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ListStudiesResponse", - "client": { - "shortName": "VizierServiceClient", - "fullName": "google.cloud.aiplatform.v1.VizierServiceClient" - }, - "method": { - "shortName": "ListStudies", - "fullName": "google.cloud.aiplatform.v1.VizierService.ListStudies", - "service": { - "shortName": "VizierService", - "fullName": "google.cloud.aiplatform.v1.VizierService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_VizierService_DeleteStudy_async", - "title": "DataFoundryService deleteStudy Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Study.", - "canonical": true, - "file": "vizier_service.delete_study.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteStudy", - "fullName": "google.cloud.aiplatform.v1.VizierService.DeleteStudy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "VizierServiceClient", - "fullName": "google.cloud.aiplatform.v1.VizierServiceClient" - }, - "method": { - "shortName": "DeleteStudy", - "fullName": "google.cloud.aiplatform.v1.VizierService.DeleteStudy", - "service": { - "shortName": "VizierService", - "fullName": "google.cloud.aiplatform.v1.VizierService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_VizierService_LookupStudy_async", - "title": "DataFoundryService lookupStudy Sample", - "origin": "API_DEFINITION", - "description": " Looks a study up using the user-defined display_name field instead of the fully qualified resource name.", - "canonical": true, - "file": "vizier_service.lookup_study.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "LookupStudy", - "fullName": "google.cloud.aiplatform.v1.VizierService.LookupStudy", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "display_name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.Study", - "client": { - "shortName": "VizierServiceClient", - "fullName": "google.cloud.aiplatform.v1.VizierServiceClient" - }, - "method": { - "shortName": "LookupStudy", - "fullName": "google.cloud.aiplatform.v1.VizierService.LookupStudy", - "service": { - "shortName": "VizierService", - "fullName": "google.cloud.aiplatform.v1.VizierService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_VizierService_SuggestTrials_async", - "title": "DataFoundryService suggestTrials Sample", - "origin": "API_DEFINITION", - "description": " Adds one or more Trials to a Study, with parameter values suggested by Vertex AI Vizier. Returns a long-running operation associated with the generation of Trial suggestions. When this long-running operation succeeds, it will contain a [SuggestTrialsResponse][google.cloud.aiplatform.v1.SuggestTrialsResponse].", - "canonical": true, - "file": "vizier_service.suggest_trials.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 105, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SuggestTrials", - "fullName": "google.cloud.aiplatform.v1.VizierService.SuggestTrials", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "suggestion_count", - "type": "TYPE_INT32" - }, - { - "name": "client_id", - "type": "TYPE_STRING" - }, - { - "name": "contexts", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VizierServiceClient", - "fullName": "google.cloud.aiplatform.v1.VizierServiceClient" - }, - "method": { - "shortName": "SuggestTrials", - "fullName": "google.cloud.aiplatform.v1.VizierService.SuggestTrials", - "service": { - "shortName": "VizierService", - "fullName": "google.cloud.aiplatform.v1.VizierService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_VizierService_CreateTrial_async", - "title": "DataFoundryService createTrial Sample", - "origin": "API_DEFINITION", - "description": " Adds a user provided Trial to a Study.", - "canonical": true, - "file": "vizier_service.create_trial.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTrial", - "fullName": "google.cloud.aiplatform.v1.VizierService.CreateTrial", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "trial", - "type": ".google.cloud.aiplatform.v1.Trial" - } - ], - "resultType": ".google.cloud.aiplatform.v1.Trial", - "client": { - "shortName": "VizierServiceClient", - "fullName": "google.cloud.aiplatform.v1.VizierServiceClient" - }, - "method": { - "shortName": "CreateTrial", - "fullName": "google.cloud.aiplatform.v1.VizierService.CreateTrial", - "service": { - "shortName": "VizierService", - "fullName": "google.cloud.aiplatform.v1.VizierService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_VizierService_GetTrial_async", - "title": "DataFoundryService getTrial Sample", - "origin": "API_DEFINITION", - "description": " Gets a Trial.", - "canonical": true, - "file": "vizier_service.get_trial.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTrial", - "fullName": "google.cloud.aiplatform.v1.VizierService.GetTrial", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.Trial", - "client": { - "shortName": "VizierServiceClient", - "fullName": "google.cloud.aiplatform.v1.VizierServiceClient" - }, - "method": { - "shortName": "GetTrial", - "fullName": "google.cloud.aiplatform.v1.VizierService.GetTrial", - "service": { - "shortName": "VizierService", - "fullName": "google.cloud.aiplatform.v1.VizierService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_VizierService_ListTrials_async", - "title": "DataFoundryService listTrials Sample", - "origin": "API_DEFINITION", - "description": " Lists the Trials associated with a Study.", - "canonical": true, - "file": "vizier_service.list_trials.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTrials", - "fullName": "google.cloud.aiplatform.v1.VizierService.ListTrials", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ListTrialsResponse", - "client": { - "shortName": "VizierServiceClient", - "fullName": "google.cloud.aiplatform.v1.VizierServiceClient" - }, - "method": { - "shortName": "ListTrials", - "fullName": "google.cloud.aiplatform.v1.VizierService.ListTrials", - "service": { - "shortName": "VizierService", - "fullName": "google.cloud.aiplatform.v1.VizierService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_VizierService_AddTrialMeasurement_async", - "title": "DataFoundryService addTrialMeasurement Sample", - "origin": "API_DEFINITION", - "description": " Adds a measurement of the objective metrics to a Trial. This measurement is assumed to have been taken before the Trial is complete.", - "canonical": true, - "file": "vizier_service.add_trial_measurement.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddTrialMeasurement", - "fullName": "google.cloud.aiplatform.v1.VizierService.AddTrialMeasurement", - "async": true, - "parameters": [ - { - "name": "trial_name", - "type": "TYPE_STRING" - }, - { - "name": "measurement", - "type": ".google.cloud.aiplatform.v1.Measurement" - } - ], - "resultType": ".google.cloud.aiplatform.v1.Trial", - "client": { - "shortName": "VizierServiceClient", - "fullName": "google.cloud.aiplatform.v1.VizierServiceClient" - }, - "method": { - "shortName": "AddTrialMeasurement", - "fullName": "google.cloud.aiplatform.v1.VizierService.AddTrialMeasurement", - "service": { - "shortName": "VizierService", - "fullName": "google.cloud.aiplatform.v1.VizierService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_VizierService_CompleteTrial_async", - "title": "DataFoundryService completeTrial Sample", - "origin": "API_DEFINITION", - "description": " Marks a Trial as complete.", - "canonical": true, - "file": "vizier_service.complete_trial.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CompleteTrial", - "fullName": "google.cloud.aiplatform.v1.VizierService.CompleteTrial", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "final_measurement", - "type": ".google.cloud.aiplatform.v1.Measurement" - }, - { - "name": "trial_infeasible", - "type": "TYPE_BOOL" - }, - { - "name": "infeasible_reason", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.Trial", - "client": { - "shortName": "VizierServiceClient", - "fullName": "google.cloud.aiplatform.v1.VizierServiceClient" - }, - "method": { - "shortName": "CompleteTrial", - "fullName": "google.cloud.aiplatform.v1.VizierService.CompleteTrial", - "service": { - "shortName": "VizierService", - "fullName": "google.cloud.aiplatform.v1.VizierService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_VizierService_DeleteTrial_async", - "title": "DataFoundryService deleteTrial Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Trial.", - "canonical": true, - "file": "vizier_service.delete_trial.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTrial", - "fullName": "google.cloud.aiplatform.v1.VizierService.DeleteTrial", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "VizierServiceClient", - "fullName": "google.cloud.aiplatform.v1.VizierServiceClient" - }, - "method": { - "shortName": "DeleteTrial", - "fullName": "google.cloud.aiplatform.v1.VizierService.DeleteTrial", - "service": { - "shortName": "VizierService", - "fullName": "google.cloud.aiplatform.v1.VizierService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_VizierService_CheckTrialEarlyStoppingState_async", - "title": "DataFoundryService checkTrialEarlyStoppingState Sample", - "origin": "API_DEFINITION", - "description": " Checks whether a Trial should stop or not. Returns a long-running operation. When the operation is successful, it will contain a [CheckTrialEarlyStoppingStateResponse][google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse].", - "canonical": true, - "file": "vizier_service.check_trial_early_stopping_state.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CheckTrialEarlyStoppingState", - "fullName": "google.cloud.aiplatform.v1.VizierService.CheckTrialEarlyStoppingState", - "async": true, - "parameters": [ - { - "name": "trial_name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VizierServiceClient", - "fullName": "google.cloud.aiplatform.v1.VizierServiceClient" - }, - "method": { - "shortName": "CheckTrialEarlyStoppingState", - "fullName": "google.cloud.aiplatform.v1.VizierService.CheckTrialEarlyStoppingState", - "service": { - "shortName": "VizierService", - "fullName": "google.cloud.aiplatform.v1.VizierService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_VizierService_StopTrial_async", - "title": "DataFoundryService stopTrial Sample", - "origin": "API_DEFINITION", - "description": " Stops a Trial.", - "canonical": true, - "file": "vizier_service.stop_trial.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StopTrial", - "fullName": "google.cloud.aiplatform.v1.VizierService.StopTrial", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.Trial", - "client": { - "shortName": "VizierServiceClient", - "fullName": "google.cloud.aiplatform.v1.VizierServiceClient" - }, - "method": { - "shortName": "StopTrial", - "fullName": "google.cloud.aiplatform.v1.VizierService.StopTrial", - "service": { - "shortName": "VizierService", - "fullName": "google.cloud.aiplatform.v1.VizierService" - } - } - } - }, - { - "regionTag": "aiplatform_v1_generated_VizierService_ListOptimalTrials_async", - "title": "DataFoundryService listOptimalTrials Sample", - "origin": "API_DEFINITION", - "description": " Lists the pareto-optimal Trials for multi-objective Study or the optimal Trials for single-objective Study. The definition of pareto-optimal can be checked in wiki page. https://en.wikipedia.org/wiki/Pareto_efficiency", - "canonical": true, - "file": "vizier_service.list_optimal_trials.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListOptimalTrials", - "fullName": "google.cloud.aiplatform.v1.VizierService.ListOptimalTrials", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1.ListOptimalTrialsResponse", - "client": { - "shortName": "VizierServiceClient", - "fullName": "google.cloud.aiplatform.v1.VizierServiceClient" - }, - "method": { - "shortName": "ListOptimalTrials", - "fullName": "google.cloud.aiplatform.v1.VizierService.ListOptimalTrials", - "service": { - "shortName": "VizierService", - "fullName": "google.cloud.aiplatform.v1.VizierService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/snippet_metadata_google.cloud.aiplatform.v1beta1.json b/packages/google-cloud-aiplatform/samples/generated/v1beta1/snippet_metadata_google.cloud.aiplatform.v1beta1.json deleted file mode 100644 index 80a201310356..000000000000 --- a/packages/google-cloud-aiplatform/samples/generated/v1beta1/snippet_metadata_google.cloud.aiplatform.v1beta1.json +++ /dev/null @@ -1,19935 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-aiplatform", - "version": "6.6.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.aiplatform.v1beta1", - "version": "v1beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "aiplatform_v1beta1_generated_DatasetService_CreateDataset_async", - "title": "DatasetService createDataset Sample", - "origin": "API_DEFINITION", - "description": " Creates a Dataset.", - "canonical": true, - "file": "dataset_service.create_dataset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDataset", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService.CreateDataset", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "dataset", - "type": ".google.cloud.aiplatform.v1beta1.Dataset" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DatasetServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetServiceClient" - }, - "method": { - "shortName": "CreateDataset", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService.CreateDataset", - "service": { - "shortName": "DatasetService", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_DatasetService_GetDataset_async", - "title": "DatasetService getDataset Sample", - "origin": "API_DEFINITION", - "description": " Gets a Dataset.", - "canonical": true, - "file": "dataset_service.get_dataset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDataset", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService.GetDataset", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.Dataset", - "client": { - "shortName": "DatasetServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetServiceClient" - }, - "method": { - "shortName": "GetDataset", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService.GetDataset", - "service": { - "shortName": "DatasetService", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_DatasetService_UpdateDataset_async", - "title": "DatasetService updateDataset Sample", - "origin": "API_DEFINITION", - "description": " Updates a Dataset.", - "canonical": true, - "file": "dataset_service.update_dataset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDataset", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService.UpdateDataset", - "async": true, - "parameters": [ - { - "name": "dataset", - "type": ".google.cloud.aiplatform.v1beta1.Dataset" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.Dataset", - "client": { - "shortName": "DatasetServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetServiceClient" - }, - "method": { - "shortName": "UpdateDataset", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService.UpdateDataset", - "service": { - "shortName": "DatasetService", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_DatasetService_ListDatasets_async", - "title": "DatasetService listDatasets Sample", - "origin": "API_DEFINITION", - "description": " Lists Datasets in a Location.", - "canonical": true, - "file": "dataset_service.list_datasets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 91, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDatasets", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService.ListDatasets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListDatasetsResponse", - "client": { - "shortName": "DatasetServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetServiceClient" - }, - "method": { - "shortName": "ListDatasets", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService.ListDatasets", - "service": { - "shortName": "DatasetService", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_DatasetService_DeleteDataset_async", - "title": "DatasetService deleteDataset Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Dataset.", - "canonical": true, - "file": "dataset_service.delete_dataset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDataset", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService.DeleteDataset", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DatasetServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetServiceClient" - }, - "method": { - "shortName": "DeleteDataset", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService.DeleteDataset", - "service": { - "shortName": "DatasetService", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_DatasetService_ImportData_async", - "title": "DatasetService importData Sample", - "origin": "API_DEFINITION", - "description": " Imports data into a Dataset.", - "canonical": true, - "file": "dataset_service.import_data.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportData", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService.ImportData", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "import_configs", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DatasetServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetServiceClient" - }, - "method": { - "shortName": "ImportData", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService.ImportData", - "service": { - "shortName": "DatasetService", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_DatasetService_ExportData_async", - "title": "DatasetService exportData Sample", - "origin": "API_DEFINITION", - "description": " Exports data from a Dataset.", - "canonical": true, - "file": "dataset_service.export_data.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportData", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService.ExportData", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "export_config", - "type": ".google.cloud.aiplatform.v1beta1.ExportDataConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DatasetServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetServiceClient" - }, - "method": { - "shortName": "ExportData", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService.ExportData", - "service": { - "shortName": "DatasetService", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_DatasetService_CreateDatasetVersion_async", - "title": "DatasetService createDatasetVersion Sample", - "origin": "API_DEFINITION", - "description": " Create a version from a Dataset.", - "canonical": true, - "file": "dataset_service.create_dataset_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDatasetVersion", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService.CreateDatasetVersion", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "dataset_version", - "type": ".google.cloud.aiplatform.v1beta1.DatasetVersion" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DatasetServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetServiceClient" - }, - "method": { - "shortName": "CreateDatasetVersion", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService.CreateDatasetVersion", - "service": { - "shortName": "DatasetService", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_DatasetService_UpdateDatasetVersion_async", - "title": "DatasetService updateDatasetVersion Sample", - "origin": "API_DEFINITION", - "description": " Updates a DatasetVersion.", - "canonical": true, - "file": "dataset_service.update_dataset_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDatasetVersion", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService.UpdateDatasetVersion", - "async": true, - "parameters": [ - { - "name": "dataset_version", - "type": ".google.cloud.aiplatform.v1beta1.DatasetVersion" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.DatasetVersion", - "client": { - "shortName": "DatasetServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetServiceClient" - }, - "method": { - "shortName": "UpdateDatasetVersion", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService.UpdateDatasetVersion", - "service": { - "shortName": "DatasetService", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_DatasetService_DeleteDatasetVersion_async", - "title": "DatasetService deleteDatasetVersion Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Dataset version.", - "canonical": true, - "file": "dataset_service.delete_dataset_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDatasetVersion", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService.DeleteDatasetVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DatasetServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetServiceClient" - }, - "method": { - "shortName": "DeleteDatasetVersion", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService.DeleteDatasetVersion", - "service": { - "shortName": "DatasetService", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_DatasetService_GetDatasetVersion_async", - "title": "DatasetService getDatasetVersion Sample", - "origin": "API_DEFINITION", - "description": " Gets a Dataset version.", - "canonical": true, - "file": "dataset_service.get_dataset_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDatasetVersion", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService.GetDatasetVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.DatasetVersion", - "client": { - "shortName": "DatasetServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetServiceClient" - }, - "method": { - "shortName": "GetDatasetVersion", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService.GetDatasetVersion", - "service": { - "shortName": "DatasetService", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_DatasetService_ListDatasetVersions_async", - "title": "DatasetService listDatasetVersions Sample", - "origin": "API_DEFINITION", - "description": " Lists DatasetVersions in a Dataset.", - "canonical": true, - "file": "dataset_service.list_dataset_versions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDatasetVersions", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService.ListDatasetVersions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListDatasetVersionsResponse", - "client": { - "shortName": "DatasetServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetServiceClient" - }, - "method": { - "shortName": "ListDatasetVersions", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService.ListDatasetVersions", - "service": { - "shortName": "DatasetService", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_DatasetService_RestoreDatasetVersion_async", - "title": "DatasetService restoreDatasetVersion Sample", - "origin": "API_DEFINITION", - "description": " Restores a dataset version.", - "canonical": true, - "file": "dataset_service.restore_dataset_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RestoreDatasetVersion", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService.RestoreDatasetVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DatasetServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetServiceClient" - }, - "method": { - "shortName": "RestoreDatasetVersion", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService.RestoreDatasetVersion", - "service": { - "shortName": "DatasetService", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_DatasetService_ListDataItems_async", - "title": "DatasetService listDataItems Sample", - "origin": "API_DEFINITION", - "description": " Lists DataItems in a Dataset.", - "canonical": true, - "file": "dataset_service.list_data_items.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDataItems", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService.ListDataItems", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListDataItemsResponse", - "client": { - "shortName": "DatasetServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetServiceClient" - }, - "method": { - "shortName": "ListDataItems", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService.ListDataItems", - "service": { - "shortName": "DatasetService", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_DatasetService_SearchDataItems_async", - "title": "DatasetService searchDataItems Sample", - "origin": "API_DEFINITION", - "description": " Searches DataItems in a Dataset.", - "canonical": true, - "file": "dataset_service.search_data_items.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 137, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchDataItems", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService.SearchDataItems", - "async": true, - "parameters": [ - { - "name": "order_by_data_item", - "type": "TYPE_STRING" - }, - { - "name": "order_by_annotation", - "type": ".google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation" - }, - { - "name": "dataset", - "type": "TYPE_STRING" - }, - { - "name": "saved_query", - "type": "TYPE_STRING" - }, - { - "name": "data_labeling_job", - "type": "TYPE_STRING" - }, - { - "name": "data_item_filter", - "type": "TYPE_STRING" - }, - { - "name": "annotations_filter", - "type": "TYPE_STRING" - }, - { - "name": "annotation_filters", - "type": "TYPE_STRING[]" - }, - { - "name": "field_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "annotations_limit", - "type": "TYPE_INT32" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.SearchDataItemsResponse", - "client": { - "shortName": "DatasetServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetServiceClient" - }, - "method": { - "shortName": "SearchDataItems", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService.SearchDataItems", - "service": { - "shortName": "DatasetService", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_DatasetService_ListSavedQueries_async", - "title": "DatasetService listSavedQueries Sample", - "origin": "API_DEFINITION", - "description": " Lists SavedQueries in a Dataset.", - "canonical": true, - "file": "dataset_service.list_saved_queries.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSavedQueries", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService.ListSavedQueries", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse", - "client": { - "shortName": "DatasetServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetServiceClient" - }, - "method": { - "shortName": "ListSavedQueries", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService.ListSavedQueries", - "service": { - "shortName": "DatasetService", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_DatasetService_DeleteSavedQuery_async", - "title": "DatasetService deleteSavedQuery Sample", - "origin": "API_DEFINITION", - "description": " Deletes a SavedQuery.", - "canonical": true, - "file": "dataset_service.delete_saved_query.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSavedQuery", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService.DeleteSavedQuery", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DatasetServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetServiceClient" - }, - "method": { - "shortName": "DeleteSavedQuery", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService.DeleteSavedQuery", - "service": { - "shortName": "DatasetService", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_DatasetService_GetAnnotationSpec_async", - "title": "DatasetService getAnnotationSpec Sample", - "origin": "API_DEFINITION", - "description": " Gets an AnnotationSpec.", - "canonical": true, - "file": "dataset_service.get_annotation_spec.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAnnotationSpec", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService.GetAnnotationSpec", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.AnnotationSpec", - "client": { - "shortName": "DatasetServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetServiceClient" - }, - "method": { - "shortName": "GetAnnotationSpec", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService.GetAnnotationSpec", - "service": { - "shortName": "DatasetService", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_DatasetService_ListAnnotations_async", - "title": "DatasetService listAnnotations Sample", - "origin": "API_DEFINITION", - "description": " Lists Annotations belongs to a dataitem.", - "canonical": true, - "file": "dataset_service.list_annotations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAnnotations", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService.ListAnnotations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListAnnotationsResponse", - "client": { - "shortName": "DatasetServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetServiceClient" - }, - "method": { - "shortName": "ListAnnotations", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService.ListAnnotations", - "service": { - "shortName": "DatasetService", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_DatasetService_AssessData_async", - "title": "DatasetService assessData Sample", - "origin": "API_DEFINITION", - "description": " Assesses the state or validity of the dataset with respect to a given use case.", - "canonical": true, - "file": "dataset_service.assess_data.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AssessData", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService.AssessData", - "async": true, - "parameters": [ - { - "name": "tuning_validation_assessment_config", - "type": ".google.cloud.aiplatform.v1beta1.AssessDataRequest.TuningValidationAssessmentConfig" - }, - { - "name": "tuning_resource_usage_assessment_config", - "type": ".google.cloud.aiplatform.v1beta1.AssessDataRequest.TuningResourceUsageAssessmentConfig" - }, - { - "name": "batch_prediction_validation_assessment_config", - "type": ".google.cloud.aiplatform.v1beta1.AssessDataRequest.BatchPredictionValidationAssessmentConfig" - }, - { - "name": "batch_prediction_resource_usage_assessment_config", - "type": ".google.cloud.aiplatform.v1beta1.AssessDataRequest.BatchPredictionResourceUsageAssessmentConfig" - }, - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "gemini_request_read_config", - "type": ".google.cloud.aiplatform.v1beta1.GeminiRequestReadConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DatasetServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetServiceClient" - }, - "method": { - "shortName": "AssessData", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService.AssessData", - "service": { - "shortName": "DatasetService", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_DatasetService_AssembleData_async", - "title": "DatasetService assembleData Sample", - "origin": "API_DEFINITION", - "description": " Assembles each row of a multimodal dataset and writes the result into a BigQuery table.", - "canonical": true, - "file": "dataset_service.assemble_data.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AssembleData", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService.AssembleData", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "gemini_request_read_config", - "type": ".google.cloud.aiplatform.v1beta1.GeminiRequestReadConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DatasetServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetServiceClient" - }, - "method": { - "shortName": "AssembleData", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService.AssembleData", - "service": { - "shortName": "DatasetService", - "fullName": "google.cloud.aiplatform.v1beta1.DatasetService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_DeploymentResourcePoolService_CreateDeploymentResourcePool_async", - "title": "DatasetService createDeploymentResourcePool Sample", - "origin": "API_DEFINITION", - "description": " Create a DeploymentResourcePool.", - "canonical": true, - "file": "deployment_resource_pool_service.create_deployment_resource_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDeploymentResourcePool", - "fullName": "google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService.CreateDeploymentResourcePool", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "deployment_resource_pool", - "type": ".google.cloud.aiplatform.v1beta1.DeploymentResourcePool" - }, - { - "name": "deployment_resource_pool_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DeploymentResourcePoolServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceClient" - }, - "method": { - "shortName": "CreateDeploymentResourcePool", - "fullName": "google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService.CreateDeploymentResourcePool", - "service": { - "shortName": "DeploymentResourcePoolService", - "fullName": "google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_DeploymentResourcePoolService_GetDeploymentResourcePool_async", - "title": "DatasetService getDeploymentResourcePool Sample", - "origin": "API_DEFINITION", - "description": " Get a DeploymentResourcePool.", - "canonical": true, - "file": "deployment_resource_pool_service.get_deployment_resource_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDeploymentResourcePool", - "fullName": "google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService.GetDeploymentResourcePool", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.DeploymentResourcePool", - "client": { - "shortName": "DeploymentResourcePoolServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceClient" - }, - "method": { - "shortName": "GetDeploymentResourcePool", - "fullName": "google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService.GetDeploymentResourcePool", - "service": { - "shortName": "DeploymentResourcePoolService", - "fullName": "google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_DeploymentResourcePoolService_ListDeploymentResourcePools_async", - "title": "DatasetService listDeploymentResourcePools Sample", - "origin": "API_DEFINITION", - "description": " List DeploymentResourcePools in a location.", - "canonical": true, - "file": "deployment_resource_pool_service.list_deployment_resource_pools.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDeploymentResourcePools", - "fullName": "google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService.ListDeploymentResourcePools", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse", - "client": { - "shortName": "DeploymentResourcePoolServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceClient" - }, - "method": { - "shortName": "ListDeploymentResourcePools", - "fullName": "google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService.ListDeploymentResourcePools", - "service": { - "shortName": "DeploymentResourcePoolService", - "fullName": "google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_DeploymentResourcePoolService_UpdateDeploymentResourcePool_async", - "title": "DatasetService updateDeploymentResourcePool Sample", - "origin": "API_DEFINITION", - "description": " Update a DeploymentResourcePool.", - "canonical": true, - "file": "deployment_resource_pool_service.update_deployment_resource_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDeploymentResourcePool", - "fullName": "google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService.UpdateDeploymentResourcePool", - "async": true, - "parameters": [ - { - "name": "deployment_resource_pool", - "type": ".google.cloud.aiplatform.v1beta1.DeploymentResourcePool" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DeploymentResourcePoolServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceClient" - }, - "method": { - "shortName": "UpdateDeploymentResourcePool", - "fullName": "google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService.UpdateDeploymentResourcePool", - "service": { - "shortName": "DeploymentResourcePoolService", - "fullName": "google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_DeploymentResourcePoolService_DeleteDeploymentResourcePool_async", - "title": "DatasetService deleteDeploymentResourcePool Sample", - "origin": "API_DEFINITION", - "description": " Delete a DeploymentResourcePool.", - "canonical": true, - "file": "deployment_resource_pool_service.delete_deployment_resource_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDeploymentResourcePool", - "fullName": "google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService.DeleteDeploymentResourcePool", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DeploymentResourcePoolServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceClient" - }, - "method": { - "shortName": "DeleteDeploymentResourcePool", - "fullName": "google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService.DeleteDeploymentResourcePool", - "service": { - "shortName": "DeploymentResourcePoolService", - "fullName": "google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_DeploymentResourcePoolService_QueryDeployedModels_async", - "title": "DatasetService queryDeployedModels Sample", - "origin": "API_DEFINITION", - "description": " List DeployedModels that have been deployed on this DeploymentResourcePool.", - "canonical": true, - "file": "deployment_resource_pool_service.query_deployed_models.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryDeployedModels", - "fullName": "google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService.QueryDeployedModels", - "async": true, - "parameters": [ - { - "name": "deployment_resource_pool", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse", - "client": { - "shortName": "DeploymentResourcePoolServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.DeploymentResourcePoolServiceClient" - }, - "method": { - "shortName": "QueryDeployedModels", - "fullName": "google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService.QueryDeployedModels", - "service": { - "shortName": "DeploymentResourcePoolService", - "fullName": "google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_EndpointService_CreateEndpoint_async", - "title": "DatasetService createEndpoint Sample", - "origin": "API_DEFINITION", - "description": " Creates an Endpoint.", - "canonical": true, - "file": "endpoint_service.create_endpoint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateEndpoint", - "fullName": "google.cloud.aiplatform.v1beta1.EndpointService.CreateEndpoint", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "endpoint", - "type": ".google.cloud.aiplatform.v1beta1.Endpoint" - }, - { - "name": "endpoint_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EndpointServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.EndpointServiceClient" - }, - "method": { - "shortName": "CreateEndpoint", - "fullName": "google.cloud.aiplatform.v1beta1.EndpointService.CreateEndpoint", - "service": { - "shortName": "EndpointService", - "fullName": "google.cloud.aiplatform.v1beta1.EndpointService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_EndpointService_GetEndpoint_async", - "title": "DatasetService getEndpoint Sample", - "origin": "API_DEFINITION", - "description": " Gets an Endpoint.", - "canonical": true, - "file": "endpoint_service.get_endpoint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEndpoint", - "fullName": "google.cloud.aiplatform.v1beta1.EndpointService.GetEndpoint", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.Endpoint", - "client": { - "shortName": "EndpointServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.EndpointServiceClient" - }, - "method": { - "shortName": "GetEndpoint", - "fullName": "google.cloud.aiplatform.v1beta1.EndpointService.GetEndpoint", - "service": { - "shortName": "EndpointService", - "fullName": "google.cloud.aiplatform.v1beta1.EndpointService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_EndpointService_ListEndpoints_async", - "title": "DatasetService listEndpoints Sample", - "origin": "API_DEFINITION", - "description": " Lists Endpoints in a Location.", - "canonical": true, - "file": "endpoint_service.list_endpoints.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 92, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEndpoints", - "fullName": "google.cloud.aiplatform.v1beta1.EndpointService.ListEndpoints", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListEndpointsResponse", - "client": { - "shortName": "EndpointServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.EndpointServiceClient" - }, - "method": { - "shortName": "ListEndpoints", - "fullName": "google.cloud.aiplatform.v1beta1.EndpointService.ListEndpoints", - "service": { - "shortName": "EndpointService", - "fullName": "google.cloud.aiplatform.v1beta1.EndpointService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_EndpointService_UpdateEndpoint_async", - "title": "DatasetService updateEndpoint Sample", - "origin": "API_DEFINITION", - "description": " Updates an Endpoint.", - "canonical": true, - "file": "endpoint_service.update_endpoint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateEndpoint", - "fullName": "google.cloud.aiplatform.v1beta1.EndpointService.UpdateEndpoint", - "async": true, - "parameters": [ - { - "name": "endpoint", - "type": ".google.cloud.aiplatform.v1beta1.Endpoint" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.Endpoint", - "client": { - "shortName": "EndpointServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.EndpointServiceClient" - }, - "method": { - "shortName": "UpdateEndpoint", - "fullName": "google.cloud.aiplatform.v1beta1.EndpointService.UpdateEndpoint", - "service": { - "shortName": "EndpointService", - "fullName": "google.cloud.aiplatform.v1beta1.EndpointService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_EndpointService_UpdateEndpointLongRunning_async", - "title": "DatasetService updateEndpointLongRunning Sample", - "origin": "API_DEFINITION", - "description": " Updates an Endpoint with a long running operation.", - "canonical": true, - "file": "endpoint_service.update_endpoint_long_running.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateEndpointLongRunning", - "fullName": "google.cloud.aiplatform.v1beta1.EndpointService.UpdateEndpointLongRunning", - "async": true, - "parameters": [ - { - "name": "endpoint", - "type": ".google.cloud.aiplatform.v1beta1.Endpoint" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EndpointServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.EndpointServiceClient" - }, - "method": { - "shortName": "UpdateEndpointLongRunning", - "fullName": "google.cloud.aiplatform.v1beta1.EndpointService.UpdateEndpointLongRunning", - "service": { - "shortName": "EndpointService", - "fullName": "google.cloud.aiplatform.v1beta1.EndpointService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_EndpointService_DeleteEndpoint_async", - "title": "DatasetService deleteEndpoint Sample", - "origin": "API_DEFINITION", - "description": " Deletes an Endpoint.", - "canonical": true, - "file": "endpoint_service.delete_endpoint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteEndpoint", - "fullName": "google.cloud.aiplatform.v1beta1.EndpointService.DeleteEndpoint", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EndpointServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.EndpointServiceClient" - }, - "method": { - "shortName": "DeleteEndpoint", - "fullName": "google.cloud.aiplatform.v1beta1.EndpointService.DeleteEndpoint", - "service": { - "shortName": "EndpointService", - "fullName": "google.cloud.aiplatform.v1beta1.EndpointService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_EndpointService_DeployModel_async", - "title": "DatasetService deployModel Sample", - "origin": "API_DEFINITION", - "description": " Deploys a Model into this Endpoint, creating a DeployedModel within it.", - "canonical": true, - "file": "endpoint_service.deploy_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeployModel", - "fullName": "google.cloud.aiplatform.v1beta1.EndpointService.DeployModel", - "async": true, - "parameters": [ - { - "name": "endpoint", - "type": "TYPE_STRING" - }, - { - "name": "deployed_model", - "type": ".google.cloud.aiplatform.v1beta1.DeployedModel" - }, - { - "name": "traffic_split", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EndpointServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.EndpointServiceClient" - }, - "method": { - "shortName": "DeployModel", - "fullName": "google.cloud.aiplatform.v1beta1.EndpointService.DeployModel", - "service": { - "shortName": "EndpointService", - "fullName": "google.cloud.aiplatform.v1beta1.EndpointService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_EndpointService_UndeployModel_async", - "title": "DatasetService undeployModel Sample", - "origin": "API_DEFINITION", - "description": " Undeploys a Model from an Endpoint, removing a DeployedModel from it, and freeing all resources it's using.", - "canonical": true, - "file": "endpoint_service.undeploy_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UndeployModel", - "fullName": "google.cloud.aiplatform.v1beta1.EndpointService.UndeployModel", - "async": true, - "parameters": [ - { - "name": "endpoint", - "type": "TYPE_STRING" - }, - { - "name": "deployed_model_id", - "type": "TYPE_STRING" - }, - { - "name": "traffic_split", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EndpointServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.EndpointServiceClient" - }, - "method": { - "shortName": "UndeployModel", - "fullName": "google.cloud.aiplatform.v1beta1.EndpointService.UndeployModel", - "service": { - "shortName": "EndpointService", - "fullName": "google.cloud.aiplatform.v1beta1.EndpointService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_EndpointService_MutateDeployedModel_async", - "title": "DatasetService mutateDeployedModel Sample", - "origin": "API_DEFINITION", - "description": " Updates an existing deployed model. Updatable fields include `min_replica_count`, `max_replica_count`, `required_replica_count`, `autoscaling_metric_specs`, `disable_container_logging` (v1 only), and `enable_container_logging` (v1beta1 only).", - "canonical": true, - "file": "endpoint_service.mutate_deployed_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "MutateDeployedModel", - "fullName": "google.cloud.aiplatform.v1beta1.EndpointService.MutateDeployedModel", - "async": true, - "parameters": [ - { - "name": "endpoint", - "type": "TYPE_STRING" - }, - { - "name": "deployed_model", - "type": ".google.cloud.aiplatform.v1beta1.DeployedModel" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EndpointServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.EndpointServiceClient" - }, - "method": { - "shortName": "MutateDeployedModel", - "fullName": "google.cloud.aiplatform.v1beta1.EndpointService.MutateDeployedModel", - "service": { - "shortName": "EndpointService", - "fullName": "google.cloud.aiplatform.v1beta1.EndpointService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_EndpointService_SetPublisherModelConfig_async", - "title": "DatasetService setPublisherModelConfig Sample", - "origin": "API_DEFINITION", - "description": " Sets (creates or updates) configs of publisher models. For example, sets the request/response logging config.", - "canonical": true, - "file": "endpoint_service.set_publisher_model_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetPublisherModelConfig", - "fullName": "google.cloud.aiplatform.v1beta1.EndpointService.SetPublisherModelConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "publisher_model_config", - "type": ".google.cloud.aiplatform.v1beta1.PublisherModelConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EndpointServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.EndpointServiceClient" - }, - "method": { - "shortName": "SetPublisherModelConfig", - "fullName": "google.cloud.aiplatform.v1beta1.EndpointService.SetPublisherModelConfig", - "service": { - "shortName": "EndpointService", - "fullName": "google.cloud.aiplatform.v1beta1.EndpointService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_EndpointService_FetchPublisherModelConfig_async", - "title": "DatasetService fetchPublisherModelConfig Sample", - "origin": "API_DEFINITION", - "description": " Fetches the configs of publisher models.", - "canonical": true, - "file": "endpoint_service.fetch_publisher_model_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchPublisherModelConfig", - "fullName": "google.cloud.aiplatform.v1beta1.EndpointService.FetchPublisherModelConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.PublisherModelConfig", - "client": { - "shortName": "EndpointServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.EndpointServiceClient" - }, - "method": { - "shortName": "FetchPublisherModelConfig", - "fullName": "google.cloud.aiplatform.v1beta1.EndpointService.FetchPublisherModelConfig", - "service": { - "shortName": "EndpointService", - "fullName": "google.cloud.aiplatform.v1beta1.EndpointService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_EvaluationService_EvaluateInstances_async", - "title": "DatasetService evaluateInstances Sample", - "origin": "API_DEFINITION", - "description": " Evaluates instances based on a given metric.", - "canonical": true, - "file": "evaluation_service.evaluate_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 209, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "EvaluateInstances", - "fullName": "google.cloud.aiplatform.v1beta1.EvaluationService.EvaluateInstances", - "async": true, - "parameters": [ - { - "name": "exact_match_input", - "type": ".google.cloud.aiplatform.v1beta1.ExactMatchInput" - }, - { - "name": "bleu_input", - "type": ".google.cloud.aiplatform.v1beta1.BleuInput" - }, - { - "name": "rouge_input", - "type": ".google.cloud.aiplatform.v1beta1.RougeInput" - }, - { - "name": "fluency_input", - "type": ".google.cloud.aiplatform.v1beta1.FluencyInput" - }, - { - "name": "coherence_input", - "type": ".google.cloud.aiplatform.v1beta1.CoherenceInput" - }, - { - "name": "safety_input", - "type": ".google.cloud.aiplatform.v1beta1.SafetyInput" - }, - { - "name": "groundedness_input", - "type": ".google.cloud.aiplatform.v1beta1.GroundednessInput" - }, - { - "name": "fulfillment_input", - "type": ".google.cloud.aiplatform.v1beta1.FulfillmentInput" - }, - { - "name": "summarization_quality_input", - "type": ".google.cloud.aiplatform.v1beta1.SummarizationQualityInput" - }, - { - "name": "pairwise_summarization_quality_input", - "type": ".google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInput" - }, - { - "name": "summarization_helpfulness_input", - "type": ".google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessInput" - }, - { - "name": "summarization_verbosity_input", - "type": ".google.cloud.aiplatform.v1beta1.SummarizationVerbosityInput" - }, - { - "name": "question_answering_quality_input", - "type": ".google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInput" - }, - { - "name": "pairwise_question_answering_quality_input", - "type": ".google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInput" - }, - { - "name": "question_answering_relevance_input", - "type": ".google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInput" - }, - { - "name": "question_answering_helpfulness_input", - "type": ".google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInput" - }, - { - "name": "question_answering_correctness_input", - "type": ".google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInput" - }, - { - "name": "pointwise_metric_input", - "type": ".google.cloud.aiplatform.v1beta1.PointwiseMetricInput" - }, - { - "name": "pairwise_metric_input", - "type": ".google.cloud.aiplatform.v1beta1.PairwiseMetricInput" - }, - { - "name": "tool_call_valid_input", - "type": ".google.cloud.aiplatform.v1beta1.ToolCallValidInput" - }, - { - "name": "tool_name_match_input", - "type": ".google.cloud.aiplatform.v1beta1.ToolNameMatchInput" - }, - { - "name": "tool_parameter_key_match_input", - "type": ".google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchInput" - }, - { - "name": "tool_parameter_kv_match_input", - "type": ".google.cloud.aiplatform.v1beta1.ToolParameterKVMatchInput" - }, - { - "name": "comet_input", - "type": ".google.cloud.aiplatform.v1beta1.CometInput" - }, - { - "name": "metricx_input", - "type": ".google.cloud.aiplatform.v1beta1.MetricxInput" - }, - { - "name": "trajectory_exact_match_input", - "type": ".google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInput" - }, - { - "name": "trajectory_in_order_match_input", - "type": ".google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInput" - }, - { - "name": "trajectory_any_order_match_input", - "type": ".google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInput" - }, - { - "name": "trajectory_precision_input", - "type": ".google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInput" - }, - { - "name": "trajectory_recall_input", - "type": ".google.cloud.aiplatform.v1beta1.TrajectoryRecallInput" - }, - { - "name": "trajectory_single_tool_use_input", - "type": ".google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInput" - }, - { - "name": "rubric_based_instruction_following_input", - "type": ".google.cloud.aiplatform.v1beta1.RubricBasedInstructionFollowingInput" - }, - { - "name": "location", - "type": "TYPE_STRING" - }, - { - "name": "metrics", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "metric_sources", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "instance", - "type": ".google.cloud.aiplatform.v1beta1.EvaluationInstance" - }, - { - "name": "autorater_config", - "type": ".google.cloud.aiplatform.v1beta1.AutoraterConfig" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.EvaluateInstancesResponse", - "client": { - "shortName": "EvaluationServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.EvaluationServiceClient" - }, - "method": { - "shortName": "EvaluateInstances", - "fullName": "google.cloud.aiplatform.v1beta1.EvaluationService.EvaluateInstances", - "service": { - "shortName": "EvaluationService", - "fullName": "google.cloud.aiplatform.v1beta1.EvaluationService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_EvaluationService_EvaluateDataset_async", - "title": "DatasetService evaluateDataset Sample", - "origin": "API_DEFINITION", - "description": " Evaluates a dataset based on a set of given metrics.", - "canonical": true, - "file": "evaluation_service.evaluate_dataset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "EvaluateDataset", - "fullName": "google.cloud.aiplatform.v1beta1.EvaluationService.EvaluateDataset", - "async": true, - "parameters": [ - { - "name": "location", - "type": "TYPE_STRING" - }, - { - "name": "dataset", - "type": ".google.cloud.aiplatform.v1beta1.EvaluationDataset" - }, - { - "name": "metrics", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "output_config", - "type": ".google.cloud.aiplatform.v1beta1.OutputConfig" - }, - { - "name": "autorater_config", - "type": ".google.cloud.aiplatform.v1beta1.AutoraterConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EvaluationServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.EvaluationServiceClient" - }, - "method": { - "shortName": "EvaluateDataset", - "fullName": "google.cloud.aiplatform.v1beta1.EvaluationService.EvaluateDataset", - "service": { - "shortName": "EvaluationService", - "fullName": "google.cloud.aiplatform.v1beta1.EvaluationService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_EvaluationService_GenerateInstanceRubrics_async", - "title": "DatasetService generateInstanceRubrics Sample", - "origin": "API_DEFINITION", - "description": " Generates rubrics for a given prompt. A rubric represents a single testable criterion for evaluation. One input prompt could have multiple rubrics This RPC allows users to get suggested rubrics based on provided prompt, which can then be reviewed and used for subsequent evaluations.", - "canonical": true, - "file": "evaluation_service.generate_instance_rubrics.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateInstanceRubrics", - "fullName": "google.cloud.aiplatform.v1beta1.EvaluationService.GenerateInstanceRubrics", - "async": true, - "parameters": [ - { - "name": "location", - "type": "TYPE_STRING" - }, - { - "name": "contents", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "predefined_rubric_generation_spec", - "type": ".google.cloud.aiplatform.v1beta1.PredefinedMetricSpec" - }, - { - "name": "rubric_generation_spec", - "type": ".google.cloud.aiplatform.v1beta1.RubricGenerationSpec" - }, - { - "name": "agent_config", - "type": ".google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse", - "client": { - "shortName": "EvaluationServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.EvaluationServiceClient" - }, - "method": { - "shortName": "GenerateInstanceRubrics", - "fullName": "google.cloud.aiplatform.v1beta1.EvaluationService.GenerateInstanceRubrics", - "service": { - "shortName": "EvaluationService", - "fullName": "google.cloud.aiplatform.v1beta1.EvaluationService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ExampleStoreService_CreateExampleStore_async", - "title": "DatasetService createExampleStore Sample", - "origin": "API_DEFINITION", - "description": " Create an ExampleStore.", - "canonical": true, - "file": "example_store_service.create_example_store.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateExampleStore", - "fullName": "google.cloud.aiplatform.v1beta1.ExampleStoreService.CreateExampleStore", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "example_store", - "type": ".google.cloud.aiplatform.v1beta1.ExampleStore" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ExampleStoreServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ExampleStoreServiceClient" - }, - "method": { - "shortName": "CreateExampleStore", - "fullName": "google.cloud.aiplatform.v1beta1.ExampleStoreService.CreateExampleStore", - "service": { - "shortName": "ExampleStoreService", - "fullName": "google.cloud.aiplatform.v1beta1.ExampleStoreService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ExampleStoreService_GetExampleStore_async", - "title": "DatasetService getExampleStore Sample", - "origin": "API_DEFINITION", - "description": " Get an ExampleStore.", - "canonical": true, - "file": "example_store_service.get_example_store.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetExampleStore", - "fullName": "google.cloud.aiplatform.v1beta1.ExampleStoreService.GetExampleStore", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ExampleStore", - "client": { - "shortName": "ExampleStoreServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ExampleStoreServiceClient" - }, - "method": { - "shortName": "GetExampleStore", - "fullName": "google.cloud.aiplatform.v1beta1.ExampleStoreService.GetExampleStore", - "service": { - "shortName": "ExampleStoreService", - "fullName": "google.cloud.aiplatform.v1beta1.ExampleStoreService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ExampleStoreService_UpdateExampleStore_async", - "title": "DatasetService updateExampleStore Sample", - "origin": "API_DEFINITION", - "description": " Update an ExampleStore.", - "canonical": true, - "file": "example_store_service.update_example_store.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateExampleStore", - "fullName": "google.cloud.aiplatform.v1beta1.ExampleStoreService.UpdateExampleStore", - "async": true, - "parameters": [ - { - "name": "example_store", - "type": ".google.cloud.aiplatform.v1beta1.ExampleStore" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ExampleStoreServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ExampleStoreServiceClient" - }, - "method": { - "shortName": "UpdateExampleStore", - "fullName": "google.cloud.aiplatform.v1beta1.ExampleStoreService.UpdateExampleStore", - "service": { - "shortName": "ExampleStoreService", - "fullName": "google.cloud.aiplatform.v1beta1.ExampleStoreService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ExampleStoreService_DeleteExampleStore_async", - "title": "DatasetService deleteExampleStore Sample", - "origin": "API_DEFINITION", - "description": " Delete an ExampleStore.", - "canonical": true, - "file": "example_store_service.delete_example_store.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteExampleStore", - "fullName": "google.cloud.aiplatform.v1beta1.ExampleStoreService.DeleteExampleStore", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ExampleStoreServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ExampleStoreServiceClient" - }, - "method": { - "shortName": "DeleteExampleStore", - "fullName": "google.cloud.aiplatform.v1beta1.ExampleStoreService.DeleteExampleStore", - "service": { - "shortName": "ExampleStoreService", - "fullName": "google.cloud.aiplatform.v1beta1.ExampleStoreService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ExampleStoreService_ListExampleStores_async", - "title": "DatasetService listExampleStores Sample", - "origin": "API_DEFINITION", - "description": " List ExampleStores in a Location.", - "canonical": true, - "file": "example_store_service.list_example_stores.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListExampleStores", - "fullName": "google.cloud.aiplatform.v1beta1.ExampleStoreService.ListExampleStores", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListExampleStoresResponse", - "client": { - "shortName": "ExampleStoreServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ExampleStoreServiceClient" - }, - "method": { - "shortName": "ListExampleStores", - "fullName": "google.cloud.aiplatform.v1beta1.ExampleStoreService.ListExampleStores", - "service": { - "shortName": "ExampleStoreService", - "fullName": "google.cloud.aiplatform.v1beta1.ExampleStoreService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ExampleStoreService_UpsertExamples_async", - "title": "DatasetService upsertExamples Sample", - "origin": "API_DEFINITION", - "description": " Create or update Examples in the Example Store.", - "canonical": true, - "file": "example_store_service.upsert_examples.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpsertExamples", - "fullName": "google.cloud.aiplatform.v1beta1.ExampleStoreService.UpsertExamples", - "async": true, - "parameters": [ - { - "name": "example_store", - "type": "TYPE_STRING" - }, - { - "name": "examples", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "overwrite", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.UpsertExamplesResponse", - "client": { - "shortName": "ExampleStoreServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ExampleStoreServiceClient" - }, - "method": { - "shortName": "UpsertExamples", - "fullName": "google.cloud.aiplatform.v1beta1.ExampleStoreService.UpsertExamples", - "service": { - "shortName": "ExampleStoreService", - "fullName": "google.cloud.aiplatform.v1beta1.ExampleStoreService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ExampleStoreService_RemoveExamples_async", - "title": "DatasetService removeExamples Sample", - "origin": "API_DEFINITION", - "description": " Remove Examples from the Example Store.", - "canonical": true, - "file": "example_store_service.remove_examples.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveExamples", - "fullName": "google.cloud.aiplatform.v1beta1.ExampleStoreService.RemoveExamples", - "async": true, - "parameters": [ - { - "name": "stored_contents_example_filter", - "type": ".google.cloud.aiplatform.v1beta1.StoredContentsExampleFilter" - }, - { - "name": "example_store", - "type": "TYPE_STRING" - }, - { - "name": "example_ids", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.RemoveExamplesResponse", - "client": { - "shortName": "ExampleStoreServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ExampleStoreServiceClient" - }, - "method": { - "shortName": "RemoveExamples", - "fullName": "google.cloud.aiplatform.v1beta1.ExampleStoreService.RemoveExamples", - "service": { - "shortName": "ExampleStoreService", - "fullName": "google.cloud.aiplatform.v1beta1.ExampleStoreService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ExampleStoreService_SearchExamples_async", - "title": "DatasetService searchExamples Sample", - "origin": "API_DEFINITION", - "description": " Search for similar Examples for given selection criteria.", - "canonical": true, - "file": "example_store_service.search_examples.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchExamples", - "fullName": "google.cloud.aiplatform.v1beta1.ExampleStoreService.SearchExamples", - "async": true, - "parameters": [ - { - "name": "stored_contents_example_parameters", - "type": ".google.cloud.aiplatform.v1beta1.StoredContentsExampleParameters" - }, - { - "name": "example_store", - "type": "TYPE_STRING" - }, - { - "name": "top_k", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.SearchExamplesResponse", - "client": { - "shortName": "ExampleStoreServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ExampleStoreServiceClient" - }, - "method": { - "shortName": "SearchExamples", - "fullName": "google.cloud.aiplatform.v1beta1.ExampleStoreService.SearchExamples", - "service": { - "shortName": "ExampleStoreService", - "fullName": "google.cloud.aiplatform.v1beta1.ExampleStoreService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ExampleStoreService_FetchExamples_async", - "title": "DatasetService fetchExamples Sample", - "origin": "API_DEFINITION", - "description": " Get Examples from the Example Store.", - "canonical": true, - "file": "example_store_service.fetch_examples.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchExamples", - "fullName": "google.cloud.aiplatform.v1beta1.ExampleStoreService.FetchExamples", - "async": true, - "parameters": [ - { - "name": "stored_contents_example_filter", - "type": ".google.cloud.aiplatform.v1beta1.StoredContentsExampleFilter" - }, - { - "name": "example_store", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "example_ids", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.FetchExamplesResponse", - "client": { - "shortName": "ExampleStoreServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ExampleStoreServiceClient" - }, - "method": { - "shortName": "FetchExamples", - "fullName": "google.cloud.aiplatform.v1beta1.ExampleStoreService.FetchExamples", - "service": { - "shortName": "ExampleStoreService", - "fullName": "google.cloud.aiplatform.v1beta1.ExampleStoreService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ExtensionExecutionService_ExecuteExtension_async", - "title": "DatasetService executeExtension Sample", - "origin": "API_DEFINITION", - "description": " Executes the request against a given extension.", - "canonical": true, - "file": "extension_execution_service.execute_extension.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExecuteExtension", - "fullName": "google.cloud.aiplatform.v1beta1.ExtensionExecutionService.ExecuteExtension", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "operation_id", - "type": "TYPE_STRING" - }, - { - "name": "operation_params", - "type": ".google.protobuf.Struct" - }, - { - "name": "runtime_auth_config", - "type": ".google.cloud.aiplatform.v1beta1.AuthConfig" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ExecuteExtensionResponse", - "client": { - "shortName": "ExtensionExecutionServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ExtensionExecutionServiceClient" - }, - "method": { - "shortName": "ExecuteExtension", - "fullName": "google.cloud.aiplatform.v1beta1.ExtensionExecutionService.ExecuteExtension", - "service": { - "shortName": "ExtensionExecutionService", - "fullName": "google.cloud.aiplatform.v1beta1.ExtensionExecutionService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ExtensionExecutionService_QueryExtension_async", - "title": "DatasetService queryExtension Sample", - "origin": "API_DEFINITION", - "description": " Queries an extension with a default controller.", - "canonical": true, - "file": "extension_execution_service.query_extension.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryExtension", - "fullName": "google.cloud.aiplatform.v1beta1.ExtensionExecutionService.QueryExtension", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "contents", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.QueryExtensionResponse", - "client": { - "shortName": "ExtensionExecutionServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ExtensionExecutionServiceClient" - }, - "method": { - "shortName": "QueryExtension", - "fullName": "google.cloud.aiplatform.v1beta1.ExtensionExecutionService.QueryExtension", - "service": { - "shortName": "ExtensionExecutionService", - "fullName": "google.cloud.aiplatform.v1beta1.ExtensionExecutionService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ExtensionRegistryService_ImportExtension_async", - "title": "DatasetService importExtension Sample", - "origin": "API_DEFINITION", - "description": " Imports an Extension.", - "canonical": true, - "file": "extension_registry_service.import_extension.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportExtension", - "fullName": "google.cloud.aiplatform.v1beta1.ExtensionRegistryService.ImportExtension", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "extension", - "type": ".google.cloud.aiplatform.v1beta1.Extension" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ExtensionRegistryServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ExtensionRegistryServiceClient" - }, - "method": { - "shortName": "ImportExtension", - "fullName": "google.cloud.aiplatform.v1beta1.ExtensionRegistryService.ImportExtension", - "service": { - "shortName": "ExtensionRegistryService", - "fullName": "google.cloud.aiplatform.v1beta1.ExtensionRegistryService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ExtensionRegistryService_GetExtension_async", - "title": "DatasetService getExtension Sample", - "origin": "API_DEFINITION", - "description": " Gets an Extension.", - "canonical": true, - "file": "extension_registry_service.get_extension.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetExtension", - "fullName": "google.cloud.aiplatform.v1beta1.ExtensionRegistryService.GetExtension", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.Extension", - "client": { - "shortName": "ExtensionRegistryServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ExtensionRegistryServiceClient" - }, - "method": { - "shortName": "GetExtension", - "fullName": "google.cloud.aiplatform.v1beta1.ExtensionRegistryService.GetExtension", - "service": { - "shortName": "ExtensionRegistryService", - "fullName": "google.cloud.aiplatform.v1beta1.ExtensionRegistryService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ExtensionRegistryService_ListExtensions_async", - "title": "DatasetService listExtensions Sample", - "origin": "API_DEFINITION", - "description": " Lists Extensions in a location.", - "canonical": true, - "file": "extension_registry_service.list_extensions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListExtensions", - "fullName": "google.cloud.aiplatform.v1beta1.ExtensionRegistryService.ListExtensions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListExtensionsResponse", - "client": { - "shortName": "ExtensionRegistryServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ExtensionRegistryServiceClient" - }, - "method": { - "shortName": "ListExtensions", - "fullName": "google.cloud.aiplatform.v1beta1.ExtensionRegistryService.ListExtensions", - "service": { - "shortName": "ExtensionRegistryService", - "fullName": "google.cloud.aiplatform.v1beta1.ExtensionRegistryService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ExtensionRegistryService_UpdateExtension_async", - "title": "DatasetService updateExtension Sample", - "origin": "API_DEFINITION", - "description": " Updates an Extension.", - "canonical": true, - "file": "extension_registry_service.update_extension.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateExtension", - "fullName": "google.cloud.aiplatform.v1beta1.ExtensionRegistryService.UpdateExtension", - "async": true, - "parameters": [ - { - "name": "extension", - "type": ".google.cloud.aiplatform.v1beta1.Extension" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.Extension", - "client": { - "shortName": "ExtensionRegistryServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ExtensionRegistryServiceClient" - }, - "method": { - "shortName": "UpdateExtension", - "fullName": "google.cloud.aiplatform.v1beta1.ExtensionRegistryService.UpdateExtension", - "service": { - "shortName": "ExtensionRegistryService", - "fullName": "google.cloud.aiplatform.v1beta1.ExtensionRegistryService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ExtensionRegistryService_DeleteExtension_async", - "title": "DatasetService deleteExtension Sample", - "origin": "API_DEFINITION", - "description": " Deletes an Extension.", - "canonical": true, - "file": "extension_registry_service.delete_extension.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteExtension", - "fullName": "google.cloud.aiplatform.v1beta1.ExtensionRegistryService.DeleteExtension", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ExtensionRegistryServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ExtensionRegistryServiceClient" - }, - "method": { - "shortName": "DeleteExtension", - "fullName": "google.cloud.aiplatform.v1beta1.ExtensionRegistryService.DeleteExtension", - "service": { - "shortName": "ExtensionRegistryService", - "fullName": "google.cloud.aiplatform.v1beta1.ExtensionRegistryService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeatureOnlineStoreAdminService_CreateFeatureOnlineStore_async", - "title": "DatasetService createFeatureOnlineStore Sample", - "origin": "API_DEFINITION", - "description": " Creates a new FeatureOnlineStore in a given project and location.", - "canonical": true, - "file": "feature_online_store_admin_service.create_feature_online_store.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateFeatureOnlineStore", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreAdminService.CreateFeatureOnlineStore", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "feature_online_store", - "type": ".google.cloud.aiplatform.v1beta1.FeatureOnlineStore" - }, - { - "name": "feature_online_store_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FeatureOnlineStoreAdminServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreAdminServiceClient" - }, - "method": { - "shortName": "CreateFeatureOnlineStore", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreAdminService.CreateFeatureOnlineStore", - "service": { - "shortName": "FeatureOnlineStoreAdminService", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreAdminService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeatureOnlineStoreAdminService_GetFeatureOnlineStore_async", - "title": "DatasetService getFeatureOnlineStore Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single FeatureOnlineStore.", - "canonical": true, - "file": "feature_online_store_admin_service.get_feature_online_store.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFeatureOnlineStore", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreAdminService.GetFeatureOnlineStore", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.FeatureOnlineStore", - "client": { - "shortName": "FeatureOnlineStoreAdminServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreAdminServiceClient" - }, - "method": { - "shortName": "GetFeatureOnlineStore", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreAdminService.GetFeatureOnlineStore", - "service": { - "shortName": "FeatureOnlineStoreAdminService", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreAdminService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeatureOnlineStoreAdminService_ListFeatureOnlineStores_async", - "title": "DatasetService listFeatureOnlineStores Sample", - "origin": "API_DEFINITION", - "description": " Lists FeatureOnlineStores in a given project and location.", - "canonical": true, - "file": "feature_online_store_admin_service.list_feature_online_stores.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 98, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFeatureOnlineStores", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreAdminService.ListFeatureOnlineStores", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListFeatureOnlineStoresResponse", - "client": { - "shortName": "FeatureOnlineStoreAdminServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreAdminServiceClient" - }, - "method": { - "shortName": "ListFeatureOnlineStores", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreAdminService.ListFeatureOnlineStores", - "service": { - "shortName": "FeatureOnlineStoreAdminService", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreAdminService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeatureOnlineStoreAdminService_UpdateFeatureOnlineStore_async", - "title": "DatasetService updateFeatureOnlineStore Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single FeatureOnlineStore.", - "canonical": true, - "file": "feature_online_store_admin_service.update_feature_online_store.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateFeatureOnlineStore", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreAdminService.UpdateFeatureOnlineStore", - "async": true, - "parameters": [ - { - "name": "feature_online_store", - "type": ".google.cloud.aiplatform.v1beta1.FeatureOnlineStore" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FeatureOnlineStoreAdminServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreAdminServiceClient" - }, - "method": { - "shortName": "UpdateFeatureOnlineStore", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreAdminService.UpdateFeatureOnlineStore", - "service": { - "shortName": "FeatureOnlineStoreAdminService", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreAdminService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeatureOnlineStoreAdminService_DeleteFeatureOnlineStore_async", - "title": "DatasetService deleteFeatureOnlineStore Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single FeatureOnlineStore. The FeatureOnlineStore must not contain any FeatureViews.", - "canonical": true, - "file": "feature_online_store_admin_service.delete_feature_online_store.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteFeatureOnlineStore", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreAdminService.DeleteFeatureOnlineStore", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FeatureOnlineStoreAdminServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreAdminServiceClient" - }, - "method": { - "shortName": "DeleteFeatureOnlineStore", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreAdminService.DeleteFeatureOnlineStore", - "service": { - "shortName": "FeatureOnlineStoreAdminService", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreAdminService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeatureOnlineStoreAdminService_CreateFeatureView_async", - "title": "DatasetService createFeatureView Sample", - "origin": "API_DEFINITION", - "description": " Creates a new FeatureView in a given FeatureOnlineStore.", - "canonical": true, - "file": "feature_online_store_admin_service.create_feature_view.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateFeatureView", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreAdminService.CreateFeatureView", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "feature_view", - "type": ".google.cloud.aiplatform.v1beta1.FeatureView" - }, - { - "name": "feature_view_id", - "type": "TYPE_STRING" - }, - { - "name": "run_sync_immediately", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FeatureOnlineStoreAdminServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreAdminServiceClient" - }, - "method": { - "shortName": "CreateFeatureView", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreAdminService.CreateFeatureView", - "service": { - "shortName": "FeatureOnlineStoreAdminService", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreAdminService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeatureOnlineStoreAdminService_GetFeatureView_async", - "title": "DatasetService getFeatureView Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single FeatureView.", - "canonical": true, - "file": "feature_online_store_admin_service.get_feature_view.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFeatureView", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreAdminService.GetFeatureView", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.FeatureView", - "client": { - "shortName": "FeatureOnlineStoreAdminServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreAdminServiceClient" - }, - "method": { - "shortName": "GetFeatureView", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreAdminService.GetFeatureView", - "service": { - "shortName": "FeatureOnlineStoreAdminService", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreAdminService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeatureOnlineStoreAdminService_ListFeatureViews_async", - "title": "DatasetService listFeatureViews Sample", - "origin": "API_DEFINITION", - "description": " Lists FeatureViews in a given FeatureOnlineStore.", - "canonical": true, - "file": "feature_online_store_admin_service.list_feature_views.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 100, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFeatureViews", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreAdminService.ListFeatureViews", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListFeatureViewsResponse", - "client": { - "shortName": "FeatureOnlineStoreAdminServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreAdminServiceClient" - }, - "method": { - "shortName": "ListFeatureViews", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreAdminService.ListFeatureViews", - "service": { - "shortName": "FeatureOnlineStoreAdminService", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreAdminService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeatureOnlineStoreAdminService_UpdateFeatureView_async", - "title": "DatasetService updateFeatureView Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single FeatureView.", - "canonical": true, - "file": "feature_online_store_admin_service.update_feature_view.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateFeatureView", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreAdminService.UpdateFeatureView", - "async": true, - "parameters": [ - { - "name": "feature_view", - "type": ".google.cloud.aiplatform.v1beta1.FeatureView" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FeatureOnlineStoreAdminServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreAdminServiceClient" - }, - "method": { - "shortName": "UpdateFeatureView", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreAdminService.UpdateFeatureView", - "service": { - "shortName": "FeatureOnlineStoreAdminService", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreAdminService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeatureOnlineStoreAdminService_DeleteFeatureView_async", - "title": "DatasetService deleteFeatureView Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single FeatureView.", - "canonical": true, - "file": "feature_online_store_admin_service.delete_feature_view.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteFeatureView", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreAdminService.DeleteFeatureView", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FeatureOnlineStoreAdminServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreAdminServiceClient" - }, - "method": { - "shortName": "DeleteFeatureView", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreAdminService.DeleteFeatureView", - "service": { - "shortName": "FeatureOnlineStoreAdminService", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreAdminService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeatureOnlineStoreAdminService_SyncFeatureView_async", - "title": "DatasetService syncFeatureView Sample", - "origin": "API_DEFINITION", - "description": " Triggers on-demand sync for the FeatureView.", - "canonical": true, - "file": "feature_online_store_admin_service.sync_feature_view.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SyncFeatureView", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreAdminService.SyncFeatureView", - "async": true, - "parameters": [ - { - "name": "feature_view", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.SyncFeatureViewResponse", - "client": { - "shortName": "FeatureOnlineStoreAdminServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreAdminServiceClient" - }, - "method": { - "shortName": "SyncFeatureView", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreAdminService.SyncFeatureView", - "service": { - "shortName": "FeatureOnlineStoreAdminService", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreAdminService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeatureOnlineStoreAdminService_GetFeatureViewSync_async", - "title": "DatasetService getFeatureViewSync Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single FeatureViewSync.", - "canonical": true, - "file": "feature_online_store_admin_service.get_feature_view_sync.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFeatureViewSync", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreAdminService.GetFeatureViewSync", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.FeatureViewSync", - "client": { - "shortName": "FeatureOnlineStoreAdminServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreAdminServiceClient" - }, - "method": { - "shortName": "GetFeatureViewSync", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreAdminService.GetFeatureViewSync", - "service": { - "shortName": "FeatureOnlineStoreAdminService", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreAdminService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeatureOnlineStoreAdminService_ListFeatureViewSyncs_async", - "title": "DatasetService listFeatureViewSyncs Sample", - "origin": "API_DEFINITION", - "description": " Lists FeatureViewSyncs in a given FeatureView.", - "canonical": true, - "file": "feature_online_store_admin_service.list_feature_view_syncs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 90, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFeatureViewSyncs", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreAdminService.ListFeatureViewSyncs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListFeatureViewSyncsResponse", - "client": { - "shortName": "FeatureOnlineStoreAdminServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreAdminServiceClient" - }, - "method": { - "shortName": "ListFeatureViewSyncs", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreAdminService.ListFeatureViewSyncs", - "service": { - "shortName": "FeatureOnlineStoreAdminService", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreAdminService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeatureOnlineStoreService_FetchFeatureValues_async", - "title": "DatasetService fetchFeatureValues Sample", - "origin": "API_DEFINITION", - "description": " Fetch feature values under a FeatureView.", - "canonical": true, - "file": "feature_online_store_service.fetch_feature_values.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchFeatureValues", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreService.FetchFeatureValues", - "async": true, - "parameters": [ - { - "name": "id", - "type": "TYPE_STRING" - }, - { - "name": "feature_view", - "type": "TYPE_STRING" - }, - { - "name": "data_key", - "type": ".google.cloud.aiplatform.v1beta1.FeatureViewDataKey" - }, - { - "name": "data_format", - "type": ".google.cloud.aiplatform.v1beta1.FeatureViewDataFormat" - }, - { - "name": "format", - "type": ".google.cloud.aiplatform.v1beta1.FetchFeatureValuesRequest.Format" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.FetchFeatureValuesResponse", - "client": { - "shortName": "FeatureOnlineStoreServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreServiceClient" - }, - "method": { - "shortName": "FetchFeatureValues", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreService.FetchFeatureValues", - "service": { - "shortName": "FeatureOnlineStoreService", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeatureOnlineStoreService_StreamingFetchFeatureValues_async", - "title": "DatasetService streamingFetchFeatureValues Sample", - "origin": "API_DEFINITION", - "description": " Bidirectional streaming RPC to fetch feature values under a FeatureView. Requests may not have a one-to-one mapping to responses and responses may be returned out-of-order to reduce latency.", - "canonical": true, - "file": "feature_online_store_service.streaming_fetch_feature_values.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StreamingFetchFeatureValues", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreService.StreamingFetchFeatureValues", - "async": true, - "parameters": [ - { - "name": "feature_view", - "type": "TYPE_STRING" - }, - { - "name": "data_keys", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "data_format", - "type": ".google.cloud.aiplatform.v1beta1.FeatureViewDataFormat" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.StreamingFetchFeatureValuesResponse", - "client": { - "shortName": "FeatureOnlineStoreServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreServiceClient" - }, - "method": { - "shortName": "StreamingFetchFeatureValues", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreService.StreamingFetchFeatureValues", - "service": { - "shortName": "FeatureOnlineStoreService", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeatureOnlineStoreService_SearchNearestEntities_async", - "title": "DatasetService searchNearestEntities Sample", - "origin": "API_DEFINITION", - "description": " Search the nearest entities under a FeatureView. Search only works for indexable feature view; if a feature view isn't indexable, returns Invalid argument response.", - "canonical": true, - "file": "feature_online_store_service.search_nearest_entities.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchNearestEntities", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreService.SearchNearestEntities", - "async": true, - "parameters": [ - { - "name": "feature_view", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": ".google.cloud.aiplatform.v1beta1.NearestNeighborQuery" - }, - { - "name": "return_full_entity", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.SearchNearestEntitiesResponse", - "client": { - "shortName": "FeatureOnlineStoreServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreServiceClient" - }, - "method": { - "shortName": "SearchNearestEntities", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreService.SearchNearestEntities", - "service": { - "shortName": "FeatureOnlineStoreService", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeatureOnlineStoreService_FeatureViewDirectWrite_async", - "title": "DatasetService featureViewDirectWrite Sample", - "origin": "API_DEFINITION", - "description": " Bidirectional streaming RPC to directly write to feature values in a feature view. Requests may not have a one-to-one mapping to responses and responses may be returned out-of-order to reduce latency.", - "canonical": true, - "file": "feature_online_store_service.feature_view_direct_write.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FeatureViewDirectWrite", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreService.FeatureViewDirectWrite", - "async": true, - "parameters": [ - { - "name": "feature_view", - "type": "TYPE_STRING" - }, - { - "name": "data_key_and_feature_values", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.FeatureViewDirectWriteResponse", - "client": { - "shortName": "FeatureOnlineStoreServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreServiceClient" - }, - "method": { - "shortName": "FeatureViewDirectWrite", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreService.FeatureViewDirectWrite", - "service": { - "shortName": "FeatureOnlineStoreService", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeatureOnlineStoreService_GenerateFetchAccessToken_async", - "title": "DatasetService generateFetchAccessToken Sample", - "origin": "API_DEFINITION", - "description": " RPC to generate an access token for the given feature view. FeatureViews under the same FeatureOnlineStore share the same access token.", - "canonical": true, - "file": "feature_online_store_service.generate_fetch_access_token.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateFetchAccessToken", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreService.GenerateFetchAccessToken", - "async": true, - "parameters": [ - { - "name": "feature_view", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.GenerateFetchAccessTokenResponse", - "client": { - "shortName": "FeatureOnlineStoreServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreServiceClient" - }, - "method": { - "shortName": "GenerateFetchAccessToken", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreService.GenerateFetchAccessToken", - "service": { - "shortName": "FeatureOnlineStoreService", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureOnlineStoreService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeatureRegistryService_CreateFeatureGroup_async", - "title": "DatasetService createFeatureGroup Sample", - "origin": "API_DEFINITION", - "description": " Creates a new FeatureGroup in a given project and location.", - "canonical": true, - "file": "feature_registry_service.create_feature_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateFeatureGroup", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService.CreateFeatureGroup", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "feature_group", - "type": ".google.cloud.aiplatform.v1beta1.FeatureGroup" - }, - { - "name": "feature_group_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FeatureRegistryServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryServiceClient" - }, - "method": { - "shortName": "CreateFeatureGroup", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService.CreateFeatureGroup", - "service": { - "shortName": "FeatureRegistryService", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeatureRegistryService_GetFeatureGroup_async", - "title": "DatasetService getFeatureGroup Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single FeatureGroup.", - "canonical": true, - "file": "feature_registry_service.get_feature_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFeatureGroup", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService.GetFeatureGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.FeatureGroup", - "client": { - "shortName": "FeatureRegistryServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryServiceClient" - }, - "method": { - "shortName": "GetFeatureGroup", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService.GetFeatureGroup", - "service": { - "shortName": "FeatureRegistryService", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeatureRegistryService_ListFeatureGroups_async", - "title": "DatasetService listFeatureGroups Sample", - "origin": "API_DEFINITION", - "description": " Lists FeatureGroups in a given project and location.", - "canonical": true, - "file": "feature_registry_service.list_feature_groups.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 98, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFeatureGroups", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService.ListFeatureGroups", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListFeatureGroupsResponse", - "client": { - "shortName": "FeatureRegistryServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryServiceClient" - }, - "method": { - "shortName": "ListFeatureGroups", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService.ListFeatureGroups", - "service": { - "shortName": "FeatureRegistryService", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeatureRegistryService_UpdateFeatureGroup_async", - "title": "DatasetService updateFeatureGroup Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single FeatureGroup.", - "canonical": true, - "file": "feature_registry_service.update_feature_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateFeatureGroup", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService.UpdateFeatureGroup", - "async": true, - "parameters": [ - { - "name": "feature_group", - "type": ".google.cloud.aiplatform.v1beta1.FeatureGroup" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FeatureRegistryServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryServiceClient" - }, - "method": { - "shortName": "UpdateFeatureGroup", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService.UpdateFeatureGroup", - "service": { - "shortName": "FeatureRegistryService", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeatureRegistryService_DeleteFeatureGroup_async", - "title": "DatasetService deleteFeatureGroup Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single FeatureGroup.", - "canonical": true, - "file": "feature_registry_service.delete_feature_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteFeatureGroup", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService.DeleteFeatureGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FeatureRegistryServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryServiceClient" - }, - "method": { - "shortName": "DeleteFeatureGroup", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService.DeleteFeatureGroup", - "service": { - "shortName": "FeatureRegistryService", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeatureRegistryService_CreateFeature_async", - "title": "DatasetService createFeature Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Feature in a given FeatureGroup.", - "canonical": true, - "file": "feature_registry_service.create_feature.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateFeature", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService.CreateFeature", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "feature", - "type": ".google.cloud.aiplatform.v1beta1.Feature" - }, - { - "name": "feature_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FeatureRegistryServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryServiceClient" - }, - "method": { - "shortName": "CreateFeature", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService.CreateFeature", - "service": { - "shortName": "FeatureRegistryService", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeatureRegistryService_BatchCreateFeatures_async", - "title": "DatasetService batchCreateFeatures Sample", - "origin": "API_DEFINITION", - "description": " Creates a batch of Features in a given FeatureGroup.", - "canonical": true, - "file": "feature_registry_service.batch_create_features.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCreateFeatures", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService.BatchCreateFeatures", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FeatureRegistryServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryServiceClient" - }, - "method": { - "shortName": "BatchCreateFeatures", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService.BatchCreateFeatures", - "service": { - "shortName": "FeatureRegistryService", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeatureRegistryService_GetFeature_async", - "title": "DatasetService getFeature Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Feature.", - "canonical": true, - "file": "feature_registry_service.get_feature.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFeature", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService.GetFeature", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "feature_stats_and_anomaly_spec", - "type": ".google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomalySpec" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.Feature", - "client": { - "shortName": "FeatureRegistryServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryServiceClient" - }, - "method": { - "shortName": "GetFeature", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService.GetFeature", - "service": { - "shortName": "FeatureRegistryService", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeatureRegistryService_ListFeatures_async", - "title": "DatasetService listFeatures Sample", - "origin": "API_DEFINITION", - "description": " Lists Features in a given FeatureGroup.", - "canonical": true, - "file": "feature_registry_service.list_features.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 123, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFeatures", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService.ListFeatures", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "latest_stats_count", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListFeaturesResponse", - "client": { - "shortName": "FeatureRegistryServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryServiceClient" - }, - "method": { - "shortName": "ListFeatures", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService.ListFeatures", - "service": { - "shortName": "FeatureRegistryService", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeatureRegistryService_UpdateFeature_async", - "title": "DatasetService updateFeature Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Feature.", - "canonical": true, - "file": "feature_registry_service.update_feature.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateFeature", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService.UpdateFeature", - "async": true, - "parameters": [ - { - "name": "feature", - "type": ".google.cloud.aiplatform.v1beta1.Feature" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FeatureRegistryServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryServiceClient" - }, - "method": { - "shortName": "UpdateFeature", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService.UpdateFeature", - "service": { - "shortName": "FeatureRegistryService", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeatureRegistryService_DeleteFeature_async", - "title": "DatasetService deleteFeature Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Feature.", - "canonical": true, - "file": "feature_registry_service.delete_feature.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteFeature", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService.DeleteFeature", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FeatureRegistryServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryServiceClient" - }, - "method": { - "shortName": "DeleteFeature", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService.DeleteFeature", - "service": { - "shortName": "FeatureRegistryService", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeatureRegistryService_CreateFeatureMonitor_async", - "title": "DatasetService createFeatureMonitor Sample", - "origin": "API_DEFINITION", - "description": " Creates a new FeatureMonitor in a given project, location and FeatureGroup.", - "canonical": true, - "file": "feature_registry_service.create_feature_monitor.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateFeatureMonitor", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService.CreateFeatureMonitor", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "feature_monitor", - "type": ".google.cloud.aiplatform.v1beta1.FeatureMonitor" - }, - { - "name": "feature_monitor_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FeatureRegistryServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryServiceClient" - }, - "method": { - "shortName": "CreateFeatureMonitor", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService.CreateFeatureMonitor", - "service": { - "shortName": "FeatureRegistryService", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeatureRegistryService_GetFeatureMonitor_async", - "title": "DatasetService getFeatureMonitor Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single FeatureMonitor.", - "canonical": true, - "file": "feature_registry_service.get_feature_monitor.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFeatureMonitor", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService.GetFeatureMonitor", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.FeatureMonitor", - "client": { - "shortName": "FeatureRegistryServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryServiceClient" - }, - "method": { - "shortName": "GetFeatureMonitor", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService.GetFeatureMonitor", - "service": { - "shortName": "FeatureRegistryService", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeatureRegistryService_ListFeatureMonitors_async", - "title": "DatasetService listFeatureMonitors Sample", - "origin": "API_DEFINITION", - "description": " Lists FeatureGroups in a given project and location.", - "canonical": true, - "file": "feature_registry_service.list_feature_monitors.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 97, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFeatureMonitors", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService.ListFeatureMonitors", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListFeatureMonitorsResponse", - "client": { - "shortName": "FeatureRegistryServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryServiceClient" - }, - "method": { - "shortName": "ListFeatureMonitors", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService.ListFeatureMonitors", - "service": { - "shortName": "FeatureRegistryService", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeatureRegistryService_UpdateFeatureMonitor_async", - "title": "DatasetService updateFeatureMonitor Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single FeatureMonitor.", - "canonical": true, - "file": "feature_registry_service.update_feature_monitor.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateFeatureMonitor", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService.UpdateFeatureMonitor", - "async": true, - "parameters": [ - { - "name": "feature_monitor", - "type": ".google.cloud.aiplatform.v1beta1.FeatureMonitor" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FeatureRegistryServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryServiceClient" - }, - "method": { - "shortName": "UpdateFeatureMonitor", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService.UpdateFeatureMonitor", - "service": { - "shortName": "FeatureRegistryService", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeatureRegistryService_DeleteFeatureMonitor_async", - "title": "DatasetService deleteFeatureMonitor Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single FeatureMonitor.", - "canonical": true, - "file": "feature_registry_service.delete_feature_monitor.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteFeatureMonitor", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService.DeleteFeatureMonitor", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FeatureRegistryServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryServiceClient" - }, - "method": { - "shortName": "DeleteFeatureMonitor", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService.DeleteFeatureMonitor", - "service": { - "shortName": "FeatureRegistryService", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeatureRegistryService_CreateFeatureMonitorJob_async", - "title": "DatasetService createFeatureMonitorJob Sample", - "origin": "API_DEFINITION", - "description": " Creates a new feature monitor job.", - "canonical": true, - "file": "feature_registry_service.create_feature_monitor_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateFeatureMonitorJob", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService.CreateFeatureMonitorJob", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "feature_monitor_job", - "type": ".google.cloud.aiplatform.v1beta1.FeatureMonitorJob" - }, - { - "name": "feature_monitor_job_id", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.FeatureMonitorJob", - "client": { - "shortName": "FeatureRegistryServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryServiceClient" - }, - "method": { - "shortName": "CreateFeatureMonitorJob", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService.CreateFeatureMonitorJob", - "service": { - "shortName": "FeatureRegistryService", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeatureRegistryService_GetFeatureMonitorJob_async", - "title": "DatasetService getFeatureMonitorJob Sample", - "origin": "API_DEFINITION", - "description": " Get a feature monitor job.", - "canonical": true, - "file": "feature_registry_service.get_feature_monitor_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFeatureMonitorJob", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService.GetFeatureMonitorJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.FeatureMonitorJob", - "client": { - "shortName": "FeatureRegistryServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryServiceClient" - }, - "method": { - "shortName": "GetFeatureMonitorJob", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService.GetFeatureMonitorJob", - "service": { - "shortName": "FeatureRegistryService", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeatureRegistryService_ListFeatureMonitorJobs_async", - "title": "DatasetService listFeatureMonitorJobs Sample", - "origin": "API_DEFINITION", - "description": " List feature monitor jobs.", - "canonical": true, - "file": "feature_registry_service.list_feature_monitor_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 89, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFeatureMonitorJobs", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService.ListFeatureMonitorJobs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListFeatureMonitorJobsResponse", - "client": { - "shortName": "FeatureRegistryServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryServiceClient" - }, - "method": { - "shortName": "ListFeatureMonitorJobs", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService.ListFeatureMonitorJobs", - "service": { - "shortName": "FeatureRegistryService", - "fullName": "google.cloud.aiplatform.v1beta1.FeatureRegistryService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeaturestoreOnlineServingService_ReadFeatureValues_async", - "title": "DatasetService readFeatureValues Sample", - "origin": "API_DEFINITION", - "description": " Reads Feature values of a specific entity of an EntityType. For reading feature values of multiple entities of an EntityType, please use StreamingReadFeatureValues.", - "canonical": true, - "file": "featurestore_online_serving_service.read_feature_values.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReadFeatureValues", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService.ReadFeatureValues", - "async": true, - "parameters": [ - { - "name": "entity_type", - "type": "TYPE_STRING" - }, - { - "name": "entity_id", - "type": "TYPE_STRING" - }, - { - "name": "feature_selector", - "type": ".google.cloud.aiplatform.v1beta1.FeatureSelector" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse", - "client": { - "shortName": "FeaturestoreOnlineServingServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingServiceClient" - }, - "method": { - "shortName": "ReadFeatureValues", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService.ReadFeatureValues", - "service": { - "shortName": "FeaturestoreOnlineServingService", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeaturestoreOnlineServingService_StreamingReadFeatureValues_async", - "title": "DatasetService streamingReadFeatureValues Sample", - "origin": "API_DEFINITION", - "description": " Reads Feature values for multiple entities. Depending on their size, data for different entities may be broken up across multiple responses.", - "canonical": true, - "file": "featurestore_online_serving_service.streaming_read_feature_values.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StreamingReadFeatureValues", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService.StreamingReadFeatureValues", - "async": true, - "parameters": [ - { - "name": "entity_type", - "type": "TYPE_STRING" - }, - { - "name": "entity_ids", - "type": "TYPE_STRING[]" - }, - { - "name": "feature_selector", - "type": ".google.cloud.aiplatform.v1beta1.FeatureSelector" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse", - "client": { - "shortName": "FeaturestoreOnlineServingServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingServiceClient" - }, - "method": { - "shortName": "StreamingReadFeatureValues", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService.StreamingReadFeatureValues", - "service": { - "shortName": "FeaturestoreOnlineServingService", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeaturestoreOnlineServingService_WriteFeatureValues_async", - "title": "DatasetService writeFeatureValues Sample", - "origin": "API_DEFINITION", - "description": " Writes Feature values of one or more entities of an EntityType. The Feature values are merged into existing entities if any. The Feature values to be written must have timestamp within the online storage retention.", - "canonical": true, - "file": "featurestore_online_serving_service.write_feature_values.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "WriteFeatureValues", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService.WriteFeatureValues", - "async": true, - "parameters": [ - { - "name": "entity_type", - "type": "TYPE_STRING" - }, - { - "name": "payloads", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.WriteFeatureValuesResponse", - "client": { - "shortName": "FeaturestoreOnlineServingServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingServiceClient" - }, - "method": { - "shortName": "WriteFeatureValues", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService.WriteFeatureValues", - "service": { - "shortName": "FeaturestoreOnlineServingService", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeaturestoreService_CreateFeaturestore_async", - "title": "DatasetService createFeaturestore Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Featurestore in a given project and location.", - "canonical": true, - "file": "featurestore_service.create_featurestore.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateFeaturestore", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService.CreateFeaturestore", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "featurestore", - "type": ".google.cloud.aiplatform.v1beta1.Featurestore" - }, - { - "name": "featurestore_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FeaturestoreServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient" - }, - "method": { - "shortName": "CreateFeaturestore", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService.CreateFeaturestore", - "service": { - "shortName": "FeaturestoreService", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeaturestoreService_GetFeaturestore_async", - "title": "DatasetService getFeaturestore Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Featurestore.", - "canonical": true, - "file": "featurestore_service.get_featurestore.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFeaturestore", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService.GetFeaturestore", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.Featurestore", - "client": { - "shortName": "FeaturestoreServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient" - }, - "method": { - "shortName": "GetFeaturestore", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService.GetFeaturestore", - "service": { - "shortName": "FeaturestoreService", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeaturestoreService_ListFeaturestores_async", - "title": "DatasetService listFeaturestores Sample", - "origin": "API_DEFINITION", - "description": " Lists Featurestores in a given project and location.", - "canonical": true, - "file": "featurestore_service.list_featurestores.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 105, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFeaturestores", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeaturestores", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse", - "client": { - "shortName": "FeaturestoreServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient" - }, - "method": { - "shortName": "ListFeaturestores", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeaturestores", - "service": { - "shortName": "FeaturestoreService", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeaturestoreService_UpdateFeaturestore_async", - "title": "DatasetService updateFeaturestore Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Featurestore.", - "canonical": true, - "file": "featurestore_service.update_featurestore.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateFeaturestore", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService.UpdateFeaturestore", - "async": true, - "parameters": [ - { - "name": "featurestore", - "type": ".google.cloud.aiplatform.v1beta1.Featurestore" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FeaturestoreServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient" - }, - "method": { - "shortName": "UpdateFeaturestore", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService.UpdateFeaturestore", - "service": { - "shortName": "FeaturestoreService", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeaturestoreService_DeleteFeaturestore_async", - "title": "DatasetService deleteFeaturestore Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Featurestore. The Featurestore must not contain any EntityTypes or `force` must be set to true for the request to succeed.", - "canonical": true, - "file": "featurestore_service.delete_featurestore.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteFeaturestore", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteFeaturestore", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FeaturestoreServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient" - }, - "method": { - "shortName": "DeleteFeaturestore", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteFeaturestore", - "service": { - "shortName": "FeaturestoreService", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeaturestoreService_CreateEntityType_async", - "title": "DatasetService createEntityType Sample", - "origin": "API_DEFINITION", - "description": " Creates a new EntityType in a given Featurestore.", - "canonical": true, - "file": "featurestore_service.create_entity_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateEntityType", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService.CreateEntityType", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "entity_type", - "type": ".google.cloud.aiplatform.v1beta1.EntityType" - }, - { - "name": "entity_type_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FeaturestoreServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient" - }, - "method": { - "shortName": "CreateEntityType", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService.CreateEntityType", - "service": { - "shortName": "FeaturestoreService", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeaturestoreService_GetEntityType_async", - "title": "DatasetService getEntityType Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single EntityType.", - "canonical": true, - "file": "featurestore_service.get_entity_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEntityType", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService.GetEntityType", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.EntityType", - "client": { - "shortName": "FeaturestoreServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient" - }, - "method": { - "shortName": "GetEntityType", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService.GetEntityType", - "service": { - "shortName": "FeaturestoreService", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeaturestoreService_ListEntityTypes_async", - "title": "DatasetService listEntityTypes Sample", - "origin": "API_DEFINITION", - "description": " Lists EntityTypes in a given Featurestore.", - "canonical": true, - "file": "featurestore_service.list_entity_types.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 104, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEntityTypes", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService.ListEntityTypes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListEntityTypesResponse", - "client": { - "shortName": "FeaturestoreServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient" - }, - "method": { - "shortName": "ListEntityTypes", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService.ListEntityTypes", - "service": { - "shortName": "FeaturestoreService", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeaturestoreService_UpdateEntityType_async", - "title": "DatasetService updateEntityType Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single EntityType.", - "canonical": true, - "file": "featurestore_service.update_entity_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateEntityType", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService.UpdateEntityType", - "async": true, - "parameters": [ - { - "name": "entity_type", - "type": ".google.cloud.aiplatform.v1beta1.EntityType" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.EntityType", - "client": { - "shortName": "FeaturestoreServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient" - }, - "method": { - "shortName": "UpdateEntityType", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService.UpdateEntityType", - "service": { - "shortName": "FeaturestoreService", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeaturestoreService_DeleteEntityType_async", - "title": "DatasetService deleteEntityType Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single EntityType. The EntityType must not have any Features or `force` must be set to true for the request to succeed.", - "canonical": true, - "file": "featurestore_service.delete_entity_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteEntityType", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteEntityType", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FeaturestoreServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient" - }, - "method": { - "shortName": "DeleteEntityType", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteEntityType", - "service": { - "shortName": "FeaturestoreService", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeaturestoreService_CreateFeature_async", - "title": "DatasetService createFeature Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Feature in a given EntityType.", - "canonical": true, - "file": "featurestore_service.create_feature.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateFeature", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService.CreateFeature", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "feature", - "type": ".google.cloud.aiplatform.v1beta1.Feature" - }, - { - "name": "feature_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FeaturestoreServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient" - }, - "method": { - "shortName": "CreateFeature", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService.CreateFeature", - "service": { - "shortName": "FeaturestoreService", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeaturestoreService_BatchCreateFeatures_async", - "title": "DatasetService batchCreateFeatures Sample", - "origin": "API_DEFINITION", - "description": " Creates a batch of Features in a given EntityType.", - "canonical": true, - "file": "featurestore_service.batch_create_features.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCreateFeatures", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService.BatchCreateFeatures", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FeaturestoreServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient" - }, - "method": { - "shortName": "BatchCreateFeatures", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService.BatchCreateFeatures", - "service": { - "shortName": "FeaturestoreService", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeaturestoreService_GetFeature_async", - "title": "DatasetService getFeature Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Feature.", - "canonical": true, - "file": "featurestore_service.get_feature.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFeature", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService.GetFeature", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "feature_stats_and_anomaly_spec", - "type": ".google.cloud.aiplatform.v1beta1.FeatureStatsAndAnomalySpec" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.Feature", - "client": { - "shortName": "FeaturestoreServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient" - }, - "method": { - "shortName": "GetFeature", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService.GetFeature", - "service": { - "shortName": "FeaturestoreService", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeaturestoreService_ListFeatures_async", - "title": "DatasetService listFeatures Sample", - "origin": "API_DEFINITION", - "description": " Lists Features in a given EntityType.", - "canonical": true, - "file": "featurestore_service.list_features.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 123, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFeatures", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeatures", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "latest_stats_count", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListFeaturesResponse", - "client": { - "shortName": "FeaturestoreServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient" - }, - "method": { - "shortName": "ListFeatures", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeatures", - "service": { - "shortName": "FeaturestoreService", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeaturestoreService_UpdateFeature_async", - "title": "DatasetService updateFeature Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Feature.", - "canonical": true, - "file": "featurestore_service.update_feature.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateFeature", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService.UpdateFeature", - "async": true, - "parameters": [ - { - "name": "feature", - "type": ".google.cloud.aiplatform.v1beta1.Feature" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.Feature", - "client": { - "shortName": "FeaturestoreServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient" - }, - "method": { - "shortName": "UpdateFeature", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService.UpdateFeature", - "service": { - "shortName": "FeaturestoreService", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeaturestoreService_DeleteFeature_async", - "title": "DatasetService deleteFeature Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Feature.", - "canonical": true, - "file": "featurestore_service.delete_feature.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteFeature", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteFeature", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FeaturestoreServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient" - }, - "method": { - "shortName": "DeleteFeature", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteFeature", - "service": { - "shortName": "FeaturestoreService", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeaturestoreService_ImportFeatureValues_async", - "title": "DatasetService importFeatureValues Sample", - "origin": "API_DEFINITION", - "description": " Imports Feature values into the Featurestore from a source storage. The progress of the import is tracked by the returned operation. The imported features are guaranteed to be visible to subsequent read operations after the operation is marked as successfully done. If an import operation fails, the Feature values returned from reads and exports may be inconsistent. If consistency is required, the caller must retry the same import request again and wait till the new operation returned is marked as successfully done. There are also scenarios where the caller can cause inconsistency. - Source data for import contains multiple distinct Feature values for the same entity ID and timestamp. - Source is modified during an import. This includes adding, updating, or removing source data and/or metadata. Examples of updating metadata include but are not limited to changing storage location, storage class, or retention policy. - Online serving cluster is under-provisioned.", - "canonical": true, - "file": "featurestore_service.import_feature_values.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 106, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportFeatureValues", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService.ImportFeatureValues", - "async": true, - "parameters": [ - { - "name": "avro_source", - "type": ".google.cloud.aiplatform.v1beta1.AvroSource" - }, - { - "name": "bigquery_source", - "type": ".google.cloud.aiplatform.v1beta1.BigQuerySource" - }, - { - "name": "csv_source", - "type": ".google.cloud.aiplatform.v1beta1.CsvSource" - }, - { - "name": "feature_time_field", - "type": "TYPE_STRING" - }, - { - "name": "feature_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "entity_type", - "type": "TYPE_STRING" - }, - { - "name": "entity_id_field", - "type": "TYPE_STRING" - }, - { - "name": "feature_specs", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "disable_online_serving", - "type": "TYPE_BOOL" - }, - { - "name": "worker_count", - "type": "TYPE_INT32" - }, - { - "name": "disable_ingestion_analysis", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FeaturestoreServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient" - }, - "method": { - "shortName": "ImportFeatureValues", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService.ImportFeatureValues", - "service": { - "shortName": "FeaturestoreService", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeaturestoreService_BatchReadFeatureValues_async", - "title": "DatasetService batchReadFeatureValues Sample", - "origin": "API_DEFINITION", - "description": " Batch reads Feature values from a Featurestore. This API enables batch reading Feature values, where each read instance in the batch may read Feature values of entities from one or more EntityTypes. Point-in-time correctness is guaranteed for Feature values of each read instance as of each instance's read timestamp.", - "canonical": true, - "file": "featurestore_service.batch_read_feature_values.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 106, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchReadFeatureValues", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService.BatchReadFeatureValues", - "async": true, - "parameters": [ - { - "name": "csv_read_instances", - "type": ".google.cloud.aiplatform.v1beta1.CsvSource" - }, - { - "name": "bigquery_read_instances", - "type": ".google.cloud.aiplatform.v1beta1.BigQuerySource" - }, - { - "name": "featurestore", - "type": "TYPE_STRING" - }, - { - "name": "destination", - "type": ".google.cloud.aiplatform.v1beta1.FeatureValueDestination" - }, - { - "name": "pass_through_fields", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "entity_type_specs", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "start_time", - "type": ".google.protobuf.Timestamp" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FeaturestoreServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient" - }, - "method": { - "shortName": "BatchReadFeatureValues", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService.BatchReadFeatureValues", - "service": { - "shortName": "FeaturestoreService", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeaturestoreService_ExportFeatureValues_async", - "title": "DatasetService exportFeatureValues Sample", - "origin": "API_DEFINITION", - "description": " Exports Feature values from all the entities of a target EntityType.", - "canonical": true, - "file": "featurestore_service.export_feature_values.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportFeatureValues", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService.ExportFeatureValues", - "async": true, - "parameters": [ - { - "name": "snapshot_export", - "type": ".google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport" - }, - { - "name": "full_export", - "type": ".google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport" - }, - { - "name": "entity_type", - "type": "TYPE_STRING" - }, - { - "name": "destination", - "type": ".google.cloud.aiplatform.v1beta1.FeatureValueDestination" - }, - { - "name": "feature_selector", - "type": ".google.cloud.aiplatform.v1beta1.FeatureSelector" - }, - { - "name": "settings", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FeaturestoreServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient" - }, - "method": { - "shortName": "ExportFeatureValues", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService.ExportFeatureValues", - "service": { - "shortName": "FeaturestoreService", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeaturestoreService_DeleteFeatureValues_async", - "title": "DatasetService deleteFeatureValues Sample", - "origin": "API_DEFINITION", - "description": " Delete Feature values from Featurestore. The progress of the deletion is tracked by the returned operation. The deleted feature values are guaranteed to be invisible to subsequent read operations after the operation is marked as successfully done. If a delete feature values operation fails, the feature values returned from reads and exports may be inconsistent. If consistency is required, the caller must retry the same delete request again and wait till the new operation returned is marked as successfully done.", - "canonical": true, - "file": "featurestore_service.delete_feature_values.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteFeatureValues", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteFeatureValues", - "async": true, - "parameters": [ - { - "name": "select_entity", - "type": ".google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity" - }, - { - "name": "select_time_range_and_feature", - "type": ".google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature" - }, - { - "name": "entity_type", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FeaturestoreServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient" - }, - "method": { - "shortName": "DeleteFeatureValues", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteFeatureValues", - "service": { - "shortName": "FeaturestoreService", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_FeaturestoreService_SearchFeatures_async", - "title": "DatasetService searchFeatures Sample", - "origin": "API_DEFINITION", - "description": " Searches Features matching a query in a given project.", - "canonical": true, - "file": "featurestore_service.search_features.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 124, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchFeatures", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService.SearchFeatures", - "async": true, - "parameters": [ - { - "name": "location", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.SearchFeaturesResponse", - "client": { - "shortName": "FeaturestoreServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreServiceClient" - }, - "method": { - "shortName": "SearchFeatures", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService.SearchFeatures", - "service": { - "shortName": "FeaturestoreService", - "fullName": "google.cloud.aiplatform.v1beta1.FeaturestoreService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_GenAiCacheService_CreateCachedContent_async", - "title": "DatasetService createCachedContent Sample", - "origin": "API_DEFINITION", - "description": " Creates cached content, this call will initialize the cached content in the data storage, and users need to pay for the cache data storage.", - "canonical": true, - "file": "gen_ai_cache_service.create_cached_content.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCachedContent", - "fullName": "google.cloud.aiplatform.v1beta1.GenAiCacheService.CreateCachedContent", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "cached_content", - "type": ".google.cloud.aiplatform.v1beta1.CachedContent" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.CachedContent", - "client": { - "shortName": "GenAiCacheServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.GenAiCacheServiceClient" - }, - "method": { - "shortName": "CreateCachedContent", - "fullName": "google.cloud.aiplatform.v1beta1.GenAiCacheService.CreateCachedContent", - "service": { - "shortName": "GenAiCacheService", - "fullName": "google.cloud.aiplatform.v1beta1.GenAiCacheService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_GenAiCacheService_GetCachedContent_async", - "title": "DatasetService getCachedContent Sample", - "origin": "API_DEFINITION", - "description": " Gets cached content configurations", - "canonical": true, - "file": "gen_ai_cache_service.get_cached_content.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCachedContent", - "fullName": "google.cloud.aiplatform.v1beta1.GenAiCacheService.GetCachedContent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.CachedContent", - "client": { - "shortName": "GenAiCacheServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.GenAiCacheServiceClient" - }, - "method": { - "shortName": "GetCachedContent", - "fullName": "google.cloud.aiplatform.v1beta1.GenAiCacheService.GetCachedContent", - "service": { - "shortName": "GenAiCacheService", - "fullName": "google.cloud.aiplatform.v1beta1.GenAiCacheService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_GenAiCacheService_UpdateCachedContent_async", - "title": "DatasetService updateCachedContent Sample", - "origin": "API_DEFINITION", - "description": " Updates cached content configurations", - "canonical": true, - "file": "gen_ai_cache_service.update_cached_content.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCachedContent", - "fullName": "google.cloud.aiplatform.v1beta1.GenAiCacheService.UpdateCachedContent", - "async": true, - "parameters": [ - { - "name": "cached_content", - "type": ".google.cloud.aiplatform.v1beta1.CachedContent" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.CachedContent", - "client": { - "shortName": "GenAiCacheServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.GenAiCacheServiceClient" - }, - "method": { - "shortName": "UpdateCachedContent", - "fullName": "google.cloud.aiplatform.v1beta1.GenAiCacheService.UpdateCachedContent", - "service": { - "shortName": "GenAiCacheService", - "fullName": "google.cloud.aiplatform.v1beta1.GenAiCacheService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_GenAiCacheService_DeleteCachedContent_async", - "title": "DatasetService deleteCachedContent Sample", - "origin": "API_DEFINITION", - "description": " Deletes cached content", - "canonical": true, - "file": "gen_ai_cache_service.delete_cached_content.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCachedContent", - "fullName": "google.cloud.aiplatform.v1beta1.GenAiCacheService.DeleteCachedContent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "GenAiCacheServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.GenAiCacheServiceClient" - }, - "method": { - "shortName": "DeleteCachedContent", - "fullName": "google.cloud.aiplatform.v1beta1.GenAiCacheService.DeleteCachedContent", - "service": { - "shortName": "GenAiCacheService", - "fullName": "google.cloud.aiplatform.v1beta1.GenAiCacheService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_GenAiCacheService_ListCachedContents_async", - "title": "DatasetService listCachedContents Sample", - "origin": "API_DEFINITION", - "description": " Lists cached contents in a project", - "canonical": true, - "file": "gen_ai_cache_service.list_cached_contents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCachedContents", - "fullName": "google.cloud.aiplatform.v1beta1.GenAiCacheService.ListCachedContents", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListCachedContentsResponse", - "client": { - "shortName": "GenAiCacheServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.GenAiCacheServiceClient" - }, - "method": { - "shortName": "ListCachedContents", - "fullName": "google.cloud.aiplatform.v1beta1.GenAiCacheService.ListCachedContents", - "service": { - "shortName": "GenAiCacheService", - "fullName": "google.cloud.aiplatform.v1beta1.GenAiCacheService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_GenAiTuningService_CreateTuningJob_async", - "title": "DatasetService createTuningJob Sample", - "origin": "API_DEFINITION", - "description": " Creates a TuningJob. A created TuningJob right away will be attempted to be run.", - "canonical": true, - "file": "gen_ai_tuning_service.create_tuning_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTuningJob", - "fullName": "google.cloud.aiplatform.v1beta1.GenAiTuningService.CreateTuningJob", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "tuning_job", - "type": ".google.cloud.aiplatform.v1beta1.TuningJob" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.TuningJob", - "client": { - "shortName": "GenAiTuningServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.GenAiTuningServiceClient" - }, - "method": { - "shortName": "CreateTuningJob", - "fullName": "google.cloud.aiplatform.v1beta1.GenAiTuningService.CreateTuningJob", - "service": { - "shortName": "GenAiTuningService", - "fullName": "google.cloud.aiplatform.v1beta1.GenAiTuningService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_GenAiTuningService_GetTuningJob_async", - "title": "DatasetService getTuningJob Sample", - "origin": "API_DEFINITION", - "description": " Gets a TuningJob.", - "canonical": true, - "file": "gen_ai_tuning_service.get_tuning_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTuningJob", - "fullName": "google.cloud.aiplatform.v1beta1.GenAiTuningService.GetTuningJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.TuningJob", - "client": { - "shortName": "GenAiTuningServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.GenAiTuningServiceClient" - }, - "method": { - "shortName": "GetTuningJob", - "fullName": "google.cloud.aiplatform.v1beta1.GenAiTuningService.GetTuningJob", - "service": { - "shortName": "GenAiTuningService", - "fullName": "google.cloud.aiplatform.v1beta1.GenAiTuningService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_GenAiTuningService_ListTuningJobs_async", - "title": "DatasetService listTuningJobs Sample", - "origin": "API_DEFINITION", - "description": " Lists TuningJobs in a Location.", - "canonical": true, - "file": "gen_ai_tuning_service.list_tuning_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTuningJobs", - "fullName": "google.cloud.aiplatform.v1beta1.GenAiTuningService.ListTuningJobs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListTuningJobsResponse", - "client": { - "shortName": "GenAiTuningServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.GenAiTuningServiceClient" - }, - "method": { - "shortName": "ListTuningJobs", - "fullName": "google.cloud.aiplatform.v1beta1.GenAiTuningService.ListTuningJobs", - "service": { - "shortName": "GenAiTuningService", - "fullName": "google.cloud.aiplatform.v1beta1.GenAiTuningService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_GenAiTuningService_CancelTuningJob_async", - "title": "DatasetService cancelTuningJob Sample", - "origin": "API_DEFINITION", - "description": " Cancels a TuningJob. Starts asynchronous cancellation on the TuningJob. The server makes a best effort to cancel the job, but success is not guaranteed. Clients can use [GenAiTuningService.GetTuningJob][google.cloud.aiplatform.v1beta1.GenAiTuningService.GetTuningJob] or other methods to check whether the cancellation succeeded or whether the job completed despite cancellation. On successful cancellation, the TuningJob is not deleted; instead it becomes a job with a [TuningJob.error][google.cloud.aiplatform.v1beta1.TuningJob.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`, and [TuningJob.state][google.cloud.aiplatform.v1beta1.TuningJob.state] is set to `CANCELLED`.", - "canonical": true, - "file": "gen_ai_tuning_service.cancel_tuning_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CancelTuningJob", - "fullName": "google.cloud.aiplatform.v1beta1.GenAiTuningService.CancelTuningJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "GenAiTuningServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.GenAiTuningServiceClient" - }, - "method": { - "shortName": "CancelTuningJob", - "fullName": "google.cloud.aiplatform.v1beta1.GenAiTuningService.CancelTuningJob", - "service": { - "shortName": "GenAiTuningService", - "fullName": "google.cloud.aiplatform.v1beta1.GenAiTuningService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_GenAiTuningService_RebaseTunedModel_async", - "title": "DatasetService rebaseTunedModel Sample", - "origin": "API_DEFINITION", - "description": " Rebase a TunedModel. Creates a LongRunningOperation that takes a legacy Tuned GenAI model Reference and creates a TuningJob based on newly available model.", - "canonical": true, - "file": "gen_ai_tuning_service.rebase_tuned_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RebaseTunedModel", - "fullName": "google.cloud.aiplatform.v1beta1.GenAiTuningService.RebaseTunedModel", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "tuned_model_ref", - "type": ".google.cloud.aiplatform.v1beta1.TunedModelRef" - }, - { - "name": "tuning_job", - "type": ".google.cloud.aiplatform.v1beta1.TuningJob" - }, - { - "name": "artifact_destination", - "type": ".google.cloud.aiplatform.v1beta1.GcsDestination" - }, - { - "name": "deploy_to_same_endpoint", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GenAiTuningServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.GenAiTuningServiceClient" - }, - "method": { - "shortName": "RebaseTunedModel", - "fullName": "google.cloud.aiplatform.v1beta1.GenAiTuningService.RebaseTunedModel", - "service": { - "shortName": "GenAiTuningService", - "fullName": "google.cloud.aiplatform.v1beta1.GenAiTuningService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_IndexEndpointService_CreateIndexEndpoint_async", - "title": "DatasetService createIndexEndpoint Sample", - "origin": "API_DEFINITION", - "description": " Creates an IndexEndpoint.", - "canonical": true, - "file": "index_endpoint_service.create_index_endpoint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateIndexEndpoint", - "fullName": "google.cloud.aiplatform.v1beta1.IndexEndpointService.CreateIndexEndpoint", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "index_endpoint", - "type": ".google.cloud.aiplatform.v1beta1.IndexEndpoint" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "IndexEndpointServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.IndexEndpointServiceClient" - }, - "method": { - "shortName": "CreateIndexEndpoint", - "fullName": "google.cloud.aiplatform.v1beta1.IndexEndpointService.CreateIndexEndpoint", - "service": { - "shortName": "IndexEndpointService", - "fullName": "google.cloud.aiplatform.v1beta1.IndexEndpointService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_IndexEndpointService_GetIndexEndpoint_async", - "title": "DatasetService getIndexEndpoint Sample", - "origin": "API_DEFINITION", - "description": " Gets an IndexEndpoint.", - "canonical": true, - "file": "index_endpoint_service.get_index_endpoint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIndexEndpoint", - "fullName": "google.cloud.aiplatform.v1beta1.IndexEndpointService.GetIndexEndpoint", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.IndexEndpoint", - "client": { - "shortName": "IndexEndpointServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.IndexEndpointServiceClient" - }, - "method": { - "shortName": "GetIndexEndpoint", - "fullName": "google.cloud.aiplatform.v1beta1.IndexEndpointService.GetIndexEndpoint", - "service": { - "shortName": "IndexEndpointService", - "fullName": "google.cloud.aiplatform.v1beta1.IndexEndpointService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_IndexEndpointService_ListIndexEndpoints_async", - "title": "DatasetService listIndexEndpoints Sample", - "origin": "API_DEFINITION", - "description": " Lists IndexEndpoints in a Location.", - "canonical": true, - "file": "index_endpoint_service.list_index_endpoints.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 92, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListIndexEndpoints", - "fullName": "google.cloud.aiplatform.v1beta1.IndexEndpointService.ListIndexEndpoints", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse", - "client": { - "shortName": "IndexEndpointServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.IndexEndpointServiceClient" - }, - "method": { - "shortName": "ListIndexEndpoints", - "fullName": "google.cloud.aiplatform.v1beta1.IndexEndpointService.ListIndexEndpoints", - "service": { - "shortName": "IndexEndpointService", - "fullName": "google.cloud.aiplatform.v1beta1.IndexEndpointService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_IndexEndpointService_UpdateIndexEndpoint_async", - "title": "DatasetService updateIndexEndpoint Sample", - "origin": "API_DEFINITION", - "description": " Updates an IndexEndpoint.", - "canonical": true, - "file": "index_endpoint_service.update_index_endpoint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateIndexEndpoint", - "fullName": "google.cloud.aiplatform.v1beta1.IndexEndpointService.UpdateIndexEndpoint", - "async": true, - "parameters": [ - { - "name": "index_endpoint", - "type": ".google.cloud.aiplatform.v1beta1.IndexEndpoint" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.IndexEndpoint", - "client": { - "shortName": "IndexEndpointServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.IndexEndpointServiceClient" - }, - "method": { - "shortName": "UpdateIndexEndpoint", - "fullName": "google.cloud.aiplatform.v1beta1.IndexEndpointService.UpdateIndexEndpoint", - "service": { - "shortName": "IndexEndpointService", - "fullName": "google.cloud.aiplatform.v1beta1.IndexEndpointService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_IndexEndpointService_DeleteIndexEndpoint_async", - "title": "DatasetService deleteIndexEndpoint Sample", - "origin": "API_DEFINITION", - "description": " Deletes an IndexEndpoint.", - "canonical": true, - "file": "index_endpoint_service.delete_index_endpoint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteIndexEndpoint", - "fullName": "google.cloud.aiplatform.v1beta1.IndexEndpointService.DeleteIndexEndpoint", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "IndexEndpointServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.IndexEndpointServiceClient" - }, - "method": { - "shortName": "DeleteIndexEndpoint", - "fullName": "google.cloud.aiplatform.v1beta1.IndexEndpointService.DeleteIndexEndpoint", - "service": { - "shortName": "IndexEndpointService", - "fullName": "google.cloud.aiplatform.v1beta1.IndexEndpointService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_IndexEndpointService_DeployIndex_async", - "title": "DatasetService deployIndex Sample", - "origin": "API_DEFINITION", - "description": " Deploys an Index into this IndexEndpoint, creating a DeployedIndex within it. Only non-empty Indexes can be deployed.", - "canonical": true, - "file": "index_endpoint_service.deploy_index.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeployIndex", - "fullName": "google.cloud.aiplatform.v1beta1.IndexEndpointService.DeployIndex", - "async": true, - "parameters": [ - { - "name": "index_endpoint", - "type": "TYPE_STRING" - }, - { - "name": "deployed_index", - "type": ".google.cloud.aiplatform.v1beta1.DeployedIndex" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "IndexEndpointServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.IndexEndpointServiceClient" - }, - "method": { - "shortName": "DeployIndex", - "fullName": "google.cloud.aiplatform.v1beta1.IndexEndpointService.DeployIndex", - "service": { - "shortName": "IndexEndpointService", - "fullName": "google.cloud.aiplatform.v1beta1.IndexEndpointService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_IndexEndpointService_UndeployIndex_async", - "title": "DatasetService undeployIndex Sample", - "origin": "API_DEFINITION", - "description": " Undeploys an Index from an IndexEndpoint, removing a DeployedIndex from it, and freeing all resources it's using.", - "canonical": true, - "file": "index_endpoint_service.undeploy_index.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UndeployIndex", - "fullName": "google.cloud.aiplatform.v1beta1.IndexEndpointService.UndeployIndex", - "async": true, - "parameters": [ - { - "name": "index_endpoint", - "type": "TYPE_STRING" - }, - { - "name": "deployed_index_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "IndexEndpointServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.IndexEndpointServiceClient" - }, - "method": { - "shortName": "UndeployIndex", - "fullName": "google.cloud.aiplatform.v1beta1.IndexEndpointService.UndeployIndex", - "service": { - "shortName": "IndexEndpointService", - "fullName": "google.cloud.aiplatform.v1beta1.IndexEndpointService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_IndexEndpointService_MutateDeployedIndex_async", - "title": "DatasetService mutateDeployedIndex Sample", - "origin": "API_DEFINITION", - "description": " Update an existing DeployedIndex under an IndexEndpoint.", - "canonical": true, - "file": "index_endpoint_service.mutate_deployed_index.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "MutateDeployedIndex", - "fullName": "google.cloud.aiplatform.v1beta1.IndexEndpointService.MutateDeployedIndex", - "async": true, - "parameters": [ - { - "name": "index_endpoint", - "type": "TYPE_STRING" - }, - { - "name": "deployed_index", - "type": ".google.cloud.aiplatform.v1beta1.DeployedIndex" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "IndexEndpointServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.IndexEndpointServiceClient" - }, - "method": { - "shortName": "MutateDeployedIndex", - "fullName": "google.cloud.aiplatform.v1beta1.IndexEndpointService.MutateDeployedIndex", - "service": { - "shortName": "IndexEndpointService", - "fullName": "google.cloud.aiplatform.v1beta1.IndexEndpointService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_IndexService_CreateIndex_async", - "title": "DatasetService createIndex Sample", - "origin": "API_DEFINITION", - "description": " Creates an Index.", - "canonical": true, - "file": "index_service.create_index.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateIndex", - "fullName": "google.cloud.aiplatform.v1beta1.IndexService.CreateIndex", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "index", - "type": ".google.cloud.aiplatform.v1beta1.Index" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "IndexServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.IndexServiceClient" - }, - "method": { - "shortName": "CreateIndex", - "fullName": "google.cloud.aiplatform.v1beta1.IndexService.CreateIndex", - "service": { - "shortName": "IndexService", - "fullName": "google.cloud.aiplatform.v1beta1.IndexService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_IndexService_GetIndex_async", - "title": "DatasetService getIndex Sample", - "origin": "API_DEFINITION", - "description": " Gets an Index.", - "canonical": true, - "file": "index_service.get_index.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIndex", - "fullName": "google.cloud.aiplatform.v1beta1.IndexService.GetIndex", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.Index", - "client": { - "shortName": "IndexServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.IndexServiceClient" - }, - "method": { - "shortName": "GetIndex", - "fullName": "google.cloud.aiplatform.v1beta1.IndexService.GetIndex", - "service": { - "shortName": "IndexService", - "fullName": "google.cloud.aiplatform.v1beta1.IndexService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_IndexService_ImportIndex_async", - "title": "DatasetService importIndex Sample", - "origin": "API_DEFINITION", - "description": " Imports an Index from an external source (e.g., BigQuery).", - "canonical": true, - "file": "index_service.import_index.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportIndex", - "fullName": "google.cloud.aiplatform.v1beta1.IndexService.ImportIndex", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "is_complete_overwrite", - "type": "TYPE_BOOL" - }, - { - "name": "config", - "type": ".google.cloud.aiplatform.v1beta1.ImportIndexRequest.ConnectorConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "IndexServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.IndexServiceClient" - }, - "method": { - "shortName": "ImportIndex", - "fullName": "google.cloud.aiplatform.v1beta1.IndexService.ImportIndex", - "service": { - "shortName": "IndexService", - "fullName": "google.cloud.aiplatform.v1beta1.IndexService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_IndexService_ListIndexes_async", - "title": "DatasetService listIndexes Sample", - "origin": "API_DEFINITION", - "description": " Lists Indexes in a Location.", - "canonical": true, - "file": "index_service.list_indexes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListIndexes", - "fullName": "google.cloud.aiplatform.v1beta1.IndexService.ListIndexes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListIndexesResponse", - "client": { - "shortName": "IndexServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.IndexServiceClient" - }, - "method": { - "shortName": "ListIndexes", - "fullName": "google.cloud.aiplatform.v1beta1.IndexService.ListIndexes", - "service": { - "shortName": "IndexService", - "fullName": "google.cloud.aiplatform.v1beta1.IndexService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_IndexService_UpdateIndex_async", - "title": "DatasetService updateIndex Sample", - "origin": "API_DEFINITION", - "description": " Updates an Index.", - "canonical": true, - "file": "index_service.update_index.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateIndex", - "fullName": "google.cloud.aiplatform.v1beta1.IndexService.UpdateIndex", - "async": true, - "parameters": [ - { - "name": "index", - "type": ".google.cloud.aiplatform.v1beta1.Index" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "IndexServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.IndexServiceClient" - }, - "method": { - "shortName": "UpdateIndex", - "fullName": "google.cloud.aiplatform.v1beta1.IndexService.UpdateIndex", - "service": { - "shortName": "IndexService", - "fullName": "google.cloud.aiplatform.v1beta1.IndexService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_IndexService_DeleteIndex_async", - "title": "DatasetService deleteIndex Sample", - "origin": "API_DEFINITION", - "description": " Deletes an Index. An Index can only be deleted when all its [DeployedIndexes][google.cloud.aiplatform.v1beta1.Index.deployed_indexes] had been undeployed.", - "canonical": true, - "file": "index_service.delete_index.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteIndex", - "fullName": "google.cloud.aiplatform.v1beta1.IndexService.DeleteIndex", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "IndexServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.IndexServiceClient" - }, - "method": { - "shortName": "DeleteIndex", - "fullName": "google.cloud.aiplatform.v1beta1.IndexService.DeleteIndex", - "service": { - "shortName": "IndexService", - "fullName": "google.cloud.aiplatform.v1beta1.IndexService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_IndexService_UpsertDatapoints_async", - "title": "DatasetService upsertDatapoints Sample", - "origin": "API_DEFINITION", - "description": " Add/update Datapoints into an Index.", - "canonical": true, - "file": "index_service.upsert_datapoints.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpsertDatapoints", - "fullName": "google.cloud.aiplatform.v1beta1.IndexService.UpsertDatapoints", - "async": true, - "parameters": [ - { - "name": "index", - "type": "TYPE_STRING" - }, - { - "name": "datapoints", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse", - "client": { - "shortName": "IndexServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.IndexServiceClient" - }, - "method": { - "shortName": "UpsertDatapoints", - "fullName": "google.cloud.aiplatform.v1beta1.IndexService.UpsertDatapoints", - "service": { - "shortName": "IndexService", - "fullName": "google.cloud.aiplatform.v1beta1.IndexService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_IndexService_RemoveDatapoints_async", - "title": "DatasetService removeDatapoints Sample", - "origin": "API_DEFINITION", - "description": " Remove Datapoints from an Index.", - "canonical": true, - "file": "index_service.remove_datapoints.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveDatapoints", - "fullName": "google.cloud.aiplatform.v1beta1.IndexService.RemoveDatapoints", - "async": true, - "parameters": [ - { - "name": "index", - "type": "TYPE_STRING" - }, - { - "name": "datapoint_ids", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse", - "client": { - "shortName": "IndexServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.IndexServiceClient" - }, - "method": { - "shortName": "RemoveDatapoints", - "fullName": "google.cloud.aiplatform.v1beta1.IndexService.RemoveDatapoints", - "service": { - "shortName": "IndexService", - "fullName": "google.cloud.aiplatform.v1beta1.IndexService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_JobService_CreateCustomJob_async", - "title": "DatasetService createCustomJob Sample", - "origin": "API_DEFINITION", - "description": " Creates a CustomJob. A created CustomJob right away will be attempted to be run.", - "canonical": true, - "file": "job_service.create_custom_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCustomJob", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.CreateCustomJob", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "custom_job", - "type": ".google.cloud.aiplatform.v1beta1.CustomJob" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.CustomJob", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.JobServiceClient" - }, - "method": { - "shortName": "CreateCustomJob", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.CreateCustomJob", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1beta1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_JobService_GetCustomJob_async", - "title": "DatasetService getCustomJob Sample", - "origin": "API_DEFINITION", - "description": " Gets a CustomJob.", - "canonical": true, - "file": "job_service.get_custom_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCustomJob", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.GetCustomJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.CustomJob", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.JobServiceClient" - }, - "method": { - "shortName": "GetCustomJob", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.GetCustomJob", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1beta1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_JobService_ListCustomJobs_async", - "title": "DatasetService listCustomJobs Sample", - "origin": "API_DEFINITION", - "description": " Lists CustomJobs in a Location.", - "canonical": true, - "file": "job_service.list_custom_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 92, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCustomJobs", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.ListCustomJobs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListCustomJobsResponse", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.JobServiceClient" - }, - "method": { - "shortName": "ListCustomJobs", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.ListCustomJobs", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1beta1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_JobService_DeleteCustomJob_async", - "title": "DatasetService deleteCustomJob Sample", - "origin": "API_DEFINITION", - "description": " Deletes a CustomJob.", - "canonical": true, - "file": "job_service.delete_custom_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCustomJob", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.DeleteCustomJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.JobServiceClient" - }, - "method": { - "shortName": "DeleteCustomJob", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.DeleteCustomJob", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1beta1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_JobService_CancelCustomJob_async", - "title": "DatasetService cancelCustomJob Sample", - "origin": "API_DEFINITION", - "description": " Cancels a CustomJob. Starts asynchronous cancellation on the CustomJob. The server makes a best effort to cancel the job, but success is not guaranteed. Clients can use [JobService.GetCustomJob][google.cloud.aiplatform.v1beta1.JobService.GetCustomJob] or other methods to check whether the cancellation succeeded or whether the job completed despite cancellation. On successful cancellation, the CustomJob is not deleted; instead it becomes a job with a [CustomJob.error][google.cloud.aiplatform.v1beta1.CustomJob.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`, and [CustomJob.state][google.cloud.aiplatform.v1beta1.CustomJob.state] is set to `CANCELLED`.", - "canonical": true, - "file": "job_service.cancel_custom_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CancelCustomJob", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.CancelCustomJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.JobServiceClient" - }, - "method": { - "shortName": "CancelCustomJob", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.CancelCustomJob", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1beta1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_JobService_CreateDataLabelingJob_async", - "title": "DatasetService createDataLabelingJob Sample", - "origin": "API_DEFINITION", - "description": " Creates a DataLabelingJob.", - "canonical": true, - "file": "job_service.create_data_labeling_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDataLabelingJob", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.CreateDataLabelingJob", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "data_labeling_job", - "type": ".google.cloud.aiplatform.v1beta1.DataLabelingJob" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.DataLabelingJob", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.JobServiceClient" - }, - "method": { - "shortName": "CreateDataLabelingJob", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.CreateDataLabelingJob", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1beta1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_JobService_GetDataLabelingJob_async", - "title": "DatasetService getDataLabelingJob Sample", - "origin": "API_DEFINITION", - "description": " Gets a DataLabelingJob.", - "canonical": true, - "file": "job_service.get_data_labeling_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDataLabelingJob", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.GetDataLabelingJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.DataLabelingJob", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.JobServiceClient" - }, - "method": { - "shortName": "GetDataLabelingJob", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.GetDataLabelingJob", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1beta1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_JobService_ListDataLabelingJobs_async", - "title": "DatasetService listDataLabelingJobs Sample", - "origin": "API_DEFINITION", - "description": " Lists DataLabelingJobs in a Location.", - "canonical": true, - "file": "job_service.list_data_labeling_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 96, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDataLabelingJobs", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.ListDataLabelingJobs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.JobServiceClient" - }, - "method": { - "shortName": "ListDataLabelingJobs", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.ListDataLabelingJobs", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1beta1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_JobService_DeleteDataLabelingJob_async", - "title": "DatasetService deleteDataLabelingJob Sample", - "origin": "API_DEFINITION", - "description": " Deletes a DataLabelingJob.", - "canonical": true, - "file": "job_service.delete_data_labeling_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDataLabelingJob", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.DeleteDataLabelingJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.JobServiceClient" - }, - "method": { - "shortName": "DeleteDataLabelingJob", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.DeleteDataLabelingJob", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1beta1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_JobService_CancelDataLabelingJob_async", - "title": "DatasetService cancelDataLabelingJob Sample", - "origin": "API_DEFINITION", - "description": " Cancels a DataLabelingJob. Success of cancellation is not guaranteed.", - "canonical": true, - "file": "job_service.cancel_data_labeling_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CancelDataLabelingJob", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.CancelDataLabelingJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.JobServiceClient" - }, - "method": { - "shortName": "CancelDataLabelingJob", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.CancelDataLabelingJob", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1beta1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_JobService_CreateHyperparameterTuningJob_async", - "title": "DatasetService createHyperparameterTuningJob Sample", - "origin": "API_DEFINITION", - "description": " Creates a HyperparameterTuningJob", - "canonical": true, - "file": "job_service.create_hyperparameter_tuning_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateHyperparameterTuningJob", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.CreateHyperparameterTuningJob", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "hyperparameter_tuning_job", - "type": ".google.cloud.aiplatform.v1beta1.HyperparameterTuningJob" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.HyperparameterTuningJob", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.JobServiceClient" - }, - "method": { - "shortName": "CreateHyperparameterTuningJob", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.CreateHyperparameterTuningJob", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1beta1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_JobService_GetHyperparameterTuningJob_async", - "title": "DatasetService getHyperparameterTuningJob Sample", - "origin": "API_DEFINITION", - "description": " Gets a HyperparameterTuningJob", - "canonical": true, - "file": "job_service.get_hyperparameter_tuning_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetHyperparameterTuningJob", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.GetHyperparameterTuningJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.HyperparameterTuningJob", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.JobServiceClient" - }, - "method": { - "shortName": "GetHyperparameterTuningJob", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.GetHyperparameterTuningJob", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1beta1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_JobService_ListHyperparameterTuningJobs_async", - "title": "DatasetService listHyperparameterTuningJobs Sample", - "origin": "API_DEFINITION", - "description": " Lists HyperparameterTuningJobs in a Location.", - "canonical": true, - "file": "job_service.list_hyperparameter_tuning_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 93, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListHyperparameterTuningJobs", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.ListHyperparameterTuningJobs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.JobServiceClient" - }, - "method": { - "shortName": "ListHyperparameterTuningJobs", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.ListHyperparameterTuningJobs", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1beta1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_JobService_DeleteHyperparameterTuningJob_async", - "title": "DatasetService deleteHyperparameterTuningJob Sample", - "origin": "API_DEFINITION", - "description": " Deletes a HyperparameterTuningJob.", - "canonical": true, - "file": "job_service.delete_hyperparameter_tuning_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteHyperparameterTuningJob", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.DeleteHyperparameterTuningJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.JobServiceClient" - }, - "method": { - "shortName": "DeleteHyperparameterTuningJob", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.DeleteHyperparameterTuningJob", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1beta1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_JobService_CancelHyperparameterTuningJob_async", - "title": "DatasetService cancelHyperparameterTuningJob Sample", - "origin": "API_DEFINITION", - "description": " Cancels a HyperparameterTuningJob. Starts asynchronous cancellation on the HyperparameterTuningJob. The server makes a best effort to cancel the job, but success is not guaranteed. Clients can use [JobService.GetHyperparameterTuningJob][google.cloud.aiplatform.v1beta1.JobService.GetHyperparameterTuningJob] or other methods to check whether the cancellation succeeded or whether the job completed despite cancellation. On successful cancellation, the HyperparameterTuningJob is not deleted; instead it becomes a job with a [HyperparameterTuningJob.error][google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`, and [HyperparameterTuningJob.state][google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.state] is set to `CANCELLED`.", - "canonical": true, - "file": "job_service.cancel_hyperparameter_tuning_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CancelHyperparameterTuningJob", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.CancelHyperparameterTuningJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.JobServiceClient" - }, - "method": { - "shortName": "CancelHyperparameterTuningJob", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.CancelHyperparameterTuningJob", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1beta1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_JobService_CreateNasJob_async", - "title": "DatasetService createNasJob Sample", - "origin": "API_DEFINITION", - "description": " Creates a NasJob", - "canonical": true, - "file": "job_service.create_nas_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateNasJob", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.CreateNasJob", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "nas_job", - "type": ".google.cloud.aiplatform.v1beta1.NasJob" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.NasJob", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.JobServiceClient" - }, - "method": { - "shortName": "CreateNasJob", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.CreateNasJob", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1beta1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_JobService_GetNasJob_async", - "title": "DatasetService getNasJob Sample", - "origin": "API_DEFINITION", - "description": " Gets a NasJob", - "canonical": true, - "file": "job_service.get_nas_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetNasJob", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.GetNasJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.NasJob", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.JobServiceClient" - }, - "method": { - "shortName": "GetNasJob", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.GetNasJob", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1beta1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_JobService_ListNasJobs_async", - "title": "DatasetService listNasJobs Sample", - "origin": "API_DEFINITION", - "description": " Lists NasJobs in a Location.", - "canonical": true, - "file": "job_service.list_nas_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 92, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListNasJobs", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.ListNasJobs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListNasJobsResponse", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.JobServiceClient" - }, - "method": { - "shortName": "ListNasJobs", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.ListNasJobs", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1beta1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_JobService_DeleteNasJob_async", - "title": "DatasetService deleteNasJob Sample", - "origin": "API_DEFINITION", - "description": " Deletes a NasJob.", - "canonical": true, - "file": "job_service.delete_nas_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteNasJob", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.DeleteNasJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.JobServiceClient" - }, - "method": { - "shortName": "DeleteNasJob", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.DeleteNasJob", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1beta1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_JobService_CancelNasJob_async", - "title": "DatasetService cancelNasJob Sample", - "origin": "API_DEFINITION", - "description": " Cancels a NasJob. Starts asynchronous cancellation on the NasJob. The server makes a best effort to cancel the job, but success is not guaranteed. Clients can use [JobService.GetNasJob][google.cloud.aiplatform.v1beta1.JobService.GetNasJob] or other methods to check whether the cancellation succeeded or whether the job completed despite cancellation. On successful cancellation, the NasJob is not deleted; instead it becomes a job with a [NasJob.error][google.cloud.aiplatform.v1beta1.NasJob.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`, and [NasJob.state][google.cloud.aiplatform.v1beta1.NasJob.state] is set to `CANCELLED`.", - "canonical": true, - "file": "job_service.cancel_nas_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CancelNasJob", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.CancelNasJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.JobServiceClient" - }, - "method": { - "shortName": "CancelNasJob", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.CancelNasJob", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1beta1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_JobService_GetNasTrialDetail_async", - "title": "DatasetService getNasTrialDetail Sample", - "origin": "API_DEFINITION", - "description": " Gets a NasTrialDetail.", - "canonical": true, - "file": "job_service.get_nas_trial_detail.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetNasTrialDetail", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.GetNasTrialDetail", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.NasTrialDetail", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.JobServiceClient" - }, - "method": { - "shortName": "GetNasTrialDetail", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.GetNasTrialDetail", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1beta1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_JobService_ListNasTrialDetails_async", - "title": "DatasetService listNasTrialDetails Sample", - "origin": "API_DEFINITION", - "description": " List top NasTrialDetails of a NasJob.", - "canonical": true, - "file": "job_service.list_nas_trial_details.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListNasTrialDetails", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.ListNasTrialDetails", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.JobServiceClient" - }, - "method": { - "shortName": "ListNasTrialDetails", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.ListNasTrialDetails", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1beta1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_JobService_CreateBatchPredictionJob_async", - "title": "DatasetService createBatchPredictionJob Sample", - "origin": "API_DEFINITION", - "description": " Creates a BatchPredictionJob. A BatchPredictionJob once created will right away be attempted to start.", - "canonical": true, - "file": "job_service.create_batch_prediction_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateBatchPredictionJob", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.CreateBatchPredictionJob", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "batch_prediction_job", - "type": ".google.cloud.aiplatform.v1beta1.BatchPredictionJob" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.BatchPredictionJob", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.JobServiceClient" - }, - "method": { - "shortName": "CreateBatchPredictionJob", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.CreateBatchPredictionJob", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1beta1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_JobService_GetBatchPredictionJob_async", - "title": "DatasetService getBatchPredictionJob Sample", - "origin": "API_DEFINITION", - "description": " Gets a BatchPredictionJob", - "canonical": true, - "file": "job_service.get_batch_prediction_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBatchPredictionJob", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.GetBatchPredictionJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.BatchPredictionJob", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.JobServiceClient" - }, - "method": { - "shortName": "GetBatchPredictionJob", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.GetBatchPredictionJob", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1beta1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_JobService_ListBatchPredictionJobs_async", - "title": "DatasetService listBatchPredictionJobs Sample", - "origin": "API_DEFINITION", - "description": " Lists BatchPredictionJobs in a Location.", - "canonical": true, - "file": "job_service.list_batch_prediction_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 93, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBatchPredictionJobs", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.ListBatchPredictionJobs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.JobServiceClient" - }, - "method": { - "shortName": "ListBatchPredictionJobs", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.ListBatchPredictionJobs", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1beta1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_JobService_DeleteBatchPredictionJob_async", - "title": "DatasetService deleteBatchPredictionJob Sample", - "origin": "API_DEFINITION", - "description": " Deletes a BatchPredictionJob. Can only be called on jobs that already finished.", - "canonical": true, - "file": "job_service.delete_batch_prediction_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteBatchPredictionJob", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.DeleteBatchPredictionJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.JobServiceClient" - }, - "method": { - "shortName": "DeleteBatchPredictionJob", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.DeleteBatchPredictionJob", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1beta1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_JobService_CancelBatchPredictionJob_async", - "title": "DatasetService cancelBatchPredictionJob Sample", - "origin": "API_DEFINITION", - "description": " Cancels a BatchPredictionJob. Starts asynchronous cancellation on the BatchPredictionJob. The server makes the best effort to cancel the job, but success is not guaranteed. Clients can use [JobService.GetBatchPredictionJob][google.cloud.aiplatform.v1beta1.JobService.GetBatchPredictionJob] or other methods to check whether the cancellation succeeded or whether the job completed despite cancellation. On a successful cancellation, the BatchPredictionJob is not deleted;instead its [BatchPredictionJob.state][google.cloud.aiplatform.v1beta1.BatchPredictionJob.state] is set to `CANCELLED`. Any files already outputted by the job are not deleted.", - "canonical": true, - "file": "job_service.cancel_batch_prediction_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CancelBatchPredictionJob", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.CancelBatchPredictionJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.JobServiceClient" - }, - "method": { - "shortName": "CancelBatchPredictionJob", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.CancelBatchPredictionJob", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1beta1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_JobService_CreateModelDeploymentMonitoringJob_async", - "title": "DatasetService createModelDeploymentMonitoringJob Sample", - "origin": "API_DEFINITION", - "description": " Creates a ModelDeploymentMonitoringJob. It will run periodically on a configured interval.", - "canonical": true, - "file": "job_service.create_model_deployment_monitoring_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateModelDeploymentMonitoringJob", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.CreateModelDeploymentMonitoringJob", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "model_deployment_monitoring_job", - "type": ".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.JobServiceClient" - }, - "method": { - "shortName": "CreateModelDeploymentMonitoringJob", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.CreateModelDeploymentMonitoringJob", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1beta1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_JobService_SearchModelDeploymentMonitoringStatsAnomalies_async", - "title": "DatasetService searchModelDeploymentMonitoringStatsAnomalies Sample", - "origin": "API_DEFINITION", - "description": " Searches Model Monitoring Statistics generated within a given time window.", - "canonical": true, - "file": "job_service.search_model_deployment_monitoring_stats_anomalies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 95, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchModelDeploymentMonitoringStatsAnomalies", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.SearchModelDeploymentMonitoringStatsAnomalies", - "async": true, - "parameters": [ - { - "name": "model_deployment_monitoring_job", - "type": "TYPE_STRING" - }, - { - "name": "deployed_model_id", - "type": "TYPE_STRING" - }, - { - "name": "feature_display_name", - "type": "TYPE_STRING" - }, - { - "name": "objectives", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "start_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "end_time", - "type": ".google.protobuf.Timestamp" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.JobServiceClient" - }, - "method": { - "shortName": "SearchModelDeploymentMonitoringStatsAnomalies", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.SearchModelDeploymentMonitoringStatsAnomalies", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1beta1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_JobService_GetModelDeploymentMonitoringJob_async", - "title": "DatasetService getModelDeploymentMonitoringJob Sample", - "origin": "API_DEFINITION", - "description": " Gets a ModelDeploymentMonitoringJob.", - "canonical": true, - "file": "job_service.get_model_deployment_monitoring_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetModelDeploymentMonitoringJob", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.GetModelDeploymentMonitoringJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.JobServiceClient" - }, - "method": { - "shortName": "GetModelDeploymentMonitoringJob", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.GetModelDeploymentMonitoringJob", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1beta1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_JobService_ListModelDeploymentMonitoringJobs_async", - "title": "DatasetService listModelDeploymentMonitoringJobs Sample", - "origin": "API_DEFINITION", - "description": " Lists ModelDeploymentMonitoringJobs in a Location.", - "canonical": true, - "file": "job_service.list_model_deployment_monitoring_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListModelDeploymentMonitoringJobs", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.ListModelDeploymentMonitoringJobs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.JobServiceClient" - }, - "method": { - "shortName": "ListModelDeploymentMonitoringJobs", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.ListModelDeploymentMonitoringJobs", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1beta1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_JobService_UpdateModelDeploymentMonitoringJob_async", - "title": "DatasetService updateModelDeploymentMonitoringJob Sample", - "origin": "API_DEFINITION", - "description": " Updates a ModelDeploymentMonitoringJob.", - "canonical": true, - "file": "job_service.update_model_deployment_monitoring_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateModelDeploymentMonitoringJob", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.UpdateModelDeploymentMonitoringJob", - "async": true, - "parameters": [ - { - "name": "model_deployment_monitoring_job", - "type": ".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.JobServiceClient" - }, - "method": { - "shortName": "UpdateModelDeploymentMonitoringJob", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.UpdateModelDeploymentMonitoringJob", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1beta1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_JobService_DeleteModelDeploymentMonitoringJob_async", - "title": "DatasetService deleteModelDeploymentMonitoringJob Sample", - "origin": "API_DEFINITION", - "description": " Deletes a ModelDeploymentMonitoringJob.", - "canonical": true, - "file": "job_service.delete_model_deployment_monitoring_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteModelDeploymentMonitoringJob", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.DeleteModelDeploymentMonitoringJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.JobServiceClient" - }, - "method": { - "shortName": "DeleteModelDeploymentMonitoringJob", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.DeleteModelDeploymentMonitoringJob", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1beta1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_JobService_PauseModelDeploymentMonitoringJob_async", - "title": "DatasetService pauseModelDeploymentMonitoringJob Sample", - "origin": "API_DEFINITION", - "description": " Pauses a ModelDeploymentMonitoringJob. If the job is running, the server makes a best effort to cancel the job. Will mark [ModelDeploymentMonitoringJob.state][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.state] to 'PAUSED'.", - "canonical": true, - "file": "job_service.pause_model_deployment_monitoring_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PauseModelDeploymentMonitoringJob", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.PauseModelDeploymentMonitoringJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.JobServiceClient" - }, - "method": { - "shortName": "PauseModelDeploymentMonitoringJob", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.PauseModelDeploymentMonitoringJob", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1beta1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_JobService_ResumeModelDeploymentMonitoringJob_async", - "title": "DatasetService resumeModelDeploymentMonitoringJob Sample", - "origin": "API_DEFINITION", - "description": " Resumes a paused ModelDeploymentMonitoringJob. It will start to run from next scheduled time. A deleted ModelDeploymentMonitoringJob can't be resumed.", - "canonical": true, - "file": "job_service.resume_model_deployment_monitoring_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResumeModelDeploymentMonitoringJob", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.ResumeModelDeploymentMonitoringJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.JobServiceClient" - }, - "method": { - "shortName": "ResumeModelDeploymentMonitoringJob", - "fullName": "google.cloud.aiplatform.v1beta1.JobService.ResumeModelDeploymentMonitoringJob", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.aiplatform.v1beta1.JobService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_LlmUtilityService_ComputeTokens_async", - "title": "DatasetService computeTokens Sample", - "origin": "API_DEFINITION", - "description": " Return a list of tokens based on the input text.", - "canonical": true, - "file": "llm_utility_service.compute_tokens.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ComputeTokens", - "fullName": "google.cloud.aiplatform.v1beta1.LlmUtilityService.ComputeTokens", - "async": true, - "parameters": [ - { - "name": "endpoint", - "type": "TYPE_STRING" - }, - { - "name": "instances", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "contents", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ComputeTokensResponse", - "client": { - "shortName": "LlmUtilityServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.LlmUtilityServiceClient" - }, - "method": { - "shortName": "ComputeTokens", - "fullName": "google.cloud.aiplatform.v1beta1.LlmUtilityService.ComputeTokens", - "service": { - "shortName": "LlmUtilityService", - "fullName": "google.cloud.aiplatform.v1beta1.LlmUtilityService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_MatchService_FindNeighbors_async", - "title": "DatasetService findNeighbors Sample", - "origin": "API_DEFINITION", - "description": " Finds the nearest neighbors of each vector within the request.", - "canonical": true, - "file": "match_service.find_neighbors.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FindNeighbors", - "fullName": "google.cloud.aiplatform.v1beta1.MatchService.FindNeighbors", - "async": true, - "parameters": [ - { - "name": "index_endpoint", - "type": "TYPE_STRING" - }, - { - "name": "deployed_index_id", - "type": "TYPE_STRING" - }, - { - "name": "queries", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "return_full_datapoint", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.FindNeighborsResponse", - "client": { - "shortName": "MatchServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.MatchServiceClient" - }, - "method": { - "shortName": "FindNeighbors", - "fullName": "google.cloud.aiplatform.v1beta1.MatchService.FindNeighbors", - "service": { - "shortName": "MatchService", - "fullName": "google.cloud.aiplatform.v1beta1.MatchService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_MatchService_ReadIndexDatapoints_async", - "title": "DatasetService readIndexDatapoints Sample", - "origin": "API_DEFINITION", - "description": " Reads the datapoints/vectors of the given IDs. A maximum of 1000 datapoints can be retrieved in a batch.", - "canonical": true, - "file": "match_service.read_index_datapoints.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReadIndexDatapoints", - "fullName": "google.cloud.aiplatform.v1beta1.MatchService.ReadIndexDatapoints", - "async": true, - "parameters": [ - { - "name": "index_endpoint", - "type": "TYPE_STRING" - }, - { - "name": "deployed_index_id", - "type": "TYPE_STRING" - }, - { - "name": "ids", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ReadIndexDatapointsResponse", - "client": { - "shortName": "MatchServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.MatchServiceClient" - }, - "method": { - "shortName": "ReadIndexDatapoints", - "fullName": "google.cloud.aiplatform.v1beta1.MatchService.ReadIndexDatapoints", - "service": { - "shortName": "MatchService", - "fullName": "google.cloud.aiplatform.v1beta1.MatchService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_MemoryBankService_CreateMemory_async", - "title": "DatasetService createMemory Sample", - "origin": "API_DEFINITION", - "description": " Create a Memory.", - "canonical": true, - "file": "memory_bank_service.create_memory.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateMemory", - "fullName": "google.cloud.aiplatform.v1beta1.MemoryBankService.CreateMemory", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "memory", - "type": ".google.cloud.aiplatform.v1beta1.Memory" - }, - { - "name": "memory_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MemoryBankServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.MemoryBankServiceClient" - }, - "method": { - "shortName": "CreateMemory", - "fullName": "google.cloud.aiplatform.v1beta1.MemoryBankService.CreateMemory", - "service": { - "shortName": "MemoryBankService", - "fullName": "google.cloud.aiplatform.v1beta1.MemoryBankService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_MemoryBankService_GetMemory_async", - "title": "DatasetService getMemory Sample", - "origin": "API_DEFINITION", - "description": " Get a Memory.", - "canonical": true, - "file": "memory_bank_service.get_memory.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMemory", - "fullName": "google.cloud.aiplatform.v1beta1.MemoryBankService.GetMemory", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.Memory", - "client": { - "shortName": "MemoryBankServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.MemoryBankServiceClient" - }, - "method": { - "shortName": "GetMemory", - "fullName": "google.cloud.aiplatform.v1beta1.MemoryBankService.GetMemory", - "service": { - "shortName": "MemoryBankService", - "fullName": "google.cloud.aiplatform.v1beta1.MemoryBankService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_MemoryBankService_UpdateMemory_async", - "title": "DatasetService updateMemory Sample", - "origin": "API_DEFINITION", - "description": " Update a Memory.", - "canonical": true, - "file": "memory_bank_service.update_memory.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateMemory", - "fullName": "google.cloud.aiplatform.v1beta1.MemoryBankService.UpdateMemory", - "async": true, - "parameters": [ - { - "name": "memory", - "type": ".google.cloud.aiplatform.v1beta1.Memory" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MemoryBankServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.MemoryBankServiceClient" - }, - "method": { - "shortName": "UpdateMemory", - "fullName": "google.cloud.aiplatform.v1beta1.MemoryBankService.UpdateMemory", - "service": { - "shortName": "MemoryBankService", - "fullName": "google.cloud.aiplatform.v1beta1.MemoryBankService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_MemoryBankService_ListMemories_async", - "title": "DatasetService listMemories Sample", - "origin": "API_DEFINITION", - "description": " List Memories.", - "canonical": true, - "file": "memory_bank_service.list_memories.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMemories", - "fullName": "google.cloud.aiplatform.v1beta1.MemoryBankService.ListMemories", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListMemoriesResponse", - "client": { - "shortName": "MemoryBankServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.MemoryBankServiceClient" - }, - "method": { - "shortName": "ListMemories", - "fullName": "google.cloud.aiplatform.v1beta1.MemoryBankService.ListMemories", - "service": { - "shortName": "MemoryBankService", - "fullName": "google.cloud.aiplatform.v1beta1.MemoryBankService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_MemoryBankService_DeleteMemory_async", - "title": "DatasetService deleteMemory Sample", - "origin": "API_DEFINITION", - "description": " Delete a Memory.", - "canonical": true, - "file": "memory_bank_service.delete_memory.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteMemory", - "fullName": "google.cloud.aiplatform.v1beta1.MemoryBankService.DeleteMemory", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MemoryBankServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.MemoryBankServiceClient" - }, - "method": { - "shortName": "DeleteMemory", - "fullName": "google.cloud.aiplatform.v1beta1.MemoryBankService.DeleteMemory", - "service": { - "shortName": "MemoryBankService", - "fullName": "google.cloud.aiplatform.v1beta1.MemoryBankService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_MemoryBankService_GenerateMemories_async", - "title": "DatasetService generateMemories Sample", - "origin": "API_DEFINITION", - "description": " Generate memories.", - "canonical": true, - "file": "memory_bank_service.generate_memories.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateMemories", - "fullName": "google.cloud.aiplatform.v1beta1.MemoryBankService.GenerateMemories", - "async": true, - "parameters": [ - { - "name": "vertex_session_source", - "type": ".google.cloud.aiplatform.v1beta1.GenerateMemoriesRequest.VertexSessionSource" - }, - { - "name": "direct_contents_source", - "type": ".google.cloud.aiplatform.v1beta1.GenerateMemoriesRequest.DirectContentsSource" - }, - { - "name": "direct_memories_source", - "type": ".google.cloud.aiplatform.v1beta1.GenerateMemoriesRequest.DirectMemoriesSource" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "disable_consolidation", - "type": "TYPE_BOOL" - }, - { - "name": "scope", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MemoryBankServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.MemoryBankServiceClient" - }, - "method": { - "shortName": "GenerateMemories", - "fullName": "google.cloud.aiplatform.v1beta1.MemoryBankService.GenerateMemories", - "service": { - "shortName": "MemoryBankService", - "fullName": "google.cloud.aiplatform.v1beta1.MemoryBankService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_MemoryBankService_RetrieveMemories_async", - "title": "DatasetService retrieveMemories Sample", - "origin": "API_DEFINITION", - "description": " Retrieve memories.", - "canonical": true, - "file": "memory_bank_service.retrieve_memories.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RetrieveMemories", - "fullName": "google.cloud.aiplatform.v1beta1.MemoryBankService.RetrieveMemories", - "async": true, - "parameters": [ - { - "name": "similarity_search_params", - "type": ".google.cloud.aiplatform.v1beta1.RetrieveMemoriesRequest.SimilaritySearchParams" - }, - { - "name": "simple_retrieval_params", - "type": ".google.cloud.aiplatform.v1beta1.RetrieveMemoriesRequest.SimpleRetrievalParams" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "scope", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.RetrieveMemoriesResponse", - "client": { - "shortName": "MemoryBankServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.MemoryBankServiceClient" - }, - "method": { - "shortName": "RetrieveMemories", - "fullName": "google.cloud.aiplatform.v1beta1.MemoryBankService.RetrieveMemories", - "service": { - "shortName": "MemoryBankService", - "fullName": "google.cloud.aiplatform.v1beta1.MemoryBankService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_MetadataService_CreateMetadataStore_async", - "title": "DatasetService createMetadataStore Sample", - "origin": "API_DEFINITION", - "description": " Initializes a MetadataStore, including allocation of resources.", - "canonical": true, - "file": "metadata_service.create_metadata_store.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateMetadataStore", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.CreateMetadataStore", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "metadata_store", - "type": ".google.cloud.aiplatform.v1beta1.MetadataStore" - }, - { - "name": "metadata_store_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataServiceClient" - }, - "method": { - "shortName": "CreateMetadataStore", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.CreateMetadataStore", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_MetadataService_GetMetadataStore_async", - "title": "DatasetService getMetadataStore Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a specific MetadataStore.", - "canonical": true, - "file": "metadata_service.get_metadata_store.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMetadataStore", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.GetMetadataStore", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.MetadataStore", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataServiceClient" - }, - "method": { - "shortName": "GetMetadataStore", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.GetMetadataStore", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_MetadataService_ListMetadataStores_async", - "title": "DatasetService listMetadataStores Sample", - "origin": "API_DEFINITION", - "description": " Lists MetadataStores for a Location.", - "canonical": true, - "file": "metadata_service.list_metadata_stores.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMetadataStores", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataStores", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListMetadataStoresResponse", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataServiceClient" - }, - "method": { - "shortName": "ListMetadataStores", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataStores", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_MetadataService_DeleteMetadataStore_async", - "title": "DatasetService deleteMetadataStore Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single MetadataStore and all its child resources (Artifacts, Executions, and Contexts).", - "canonical": true, - "file": "metadata_service.delete_metadata_store.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteMetadataStore", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.DeleteMetadataStore", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataServiceClient" - }, - "method": { - "shortName": "DeleteMetadataStore", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.DeleteMetadataStore", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_MetadataService_CreateArtifact_async", - "title": "DatasetService createArtifact Sample", - "origin": "API_DEFINITION", - "description": " Creates an Artifact associated with a MetadataStore.", - "canonical": true, - "file": "metadata_service.create_artifact.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateArtifact", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.CreateArtifact", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "artifact", - "type": ".google.cloud.aiplatform.v1beta1.Artifact" - }, - { - "name": "artifact_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.Artifact", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataServiceClient" - }, - "method": { - "shortName": "CreateArtifact", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.CreateArtifact", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_MetadataService_GetArtifact_async", - "title": "DatasetService getArtifact Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a specific Artifact.", - "canonical": true, - "file": "metadata_service.get_artifact.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetArtifact", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.GetArtifact", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.Artifact", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataServiceClient" - }, - "method": { - "shortName": "GetArtifact", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.GetArtifact", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_MetadataService_ListArtifacts_async", - "title": "DatasetService listArtifacts Sample", - "origin": "API_DEFINITION", - "description": " Lists Artifacts in the MetadataStore.", - "canonical": true, - "file": "metadata_service.list_artifacts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 111, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListArtifacts", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.ListArtifacts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListArtifactsResponse", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataServiceClient" - }, - "method": { - "shortName": "ListArtifacts", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.ListArtifacts", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_MetadataService_UpdateArtifact_async", - "title": "DatasetService updateArtifact Sample", - "origin": "API_DEFINITION", - "description": " Updates a stored Artifact.", - "canonical": true, - "file": "metadata_service.update_artifact.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateArtifact", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.UpdateArtifact", - "async": true, - "parameters": [ - { - "name": "artifact", - "type": ".google.cloud.aiplatform.v1beta1.Artifact" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.Artifact", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataServiceClient" - }, - "method": { - "shortName": "UpdateArtifact", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.UpdateArtifact", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_MetadataService_DeleteArtifact_async", - "title": "DatasetService deleteArtifact Sample", - "origin": "API_DEFINITION", - "description": " Deletes an Artifact.", - "canonical": true, - "file": "metadata_service.delete_artifact.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteArtifact", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.DeleteArtifact", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataServiceClient" - }, - "method": { - "shortName": "DeleteArtifact", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.DeleteArtifact", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_MetadataService_PurgeArtifacts_async", - "title": "DatasetService purgeArtifacts Sample", - "origin": "API_DEFINITION", - "description": " Purges Artifacts.", - "canonical": true, - "file": "metadata_service.purge_artifacts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PurgeArtifacts", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.PurgeArtifacts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataServiceClient" - }, - "method": { - "shortName": "PurgeArtifacts", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.PurgeArtifacts", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_MetadataService_CreateContext_async", - "title": "DatasetService createContext Sample", - "origin": "API_DEFINITION", - "description": " Creates a Context associated with a MetadataStore.", - "canonical": true, - "file": "metadata_service.create_context.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateContext", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.CreateContext", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "context", - "type": ".google.cloud.aiplatform.v1beta1.Context" - }, - { - "name": "context_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.Context", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataServiceClient" - }, - "method": { - "shortName": "CreateContext", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.CreateContext", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_MetadataService_GetContext_async", - "title": "DatasetService getContext Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a specific Context.", - "canonical": true, - "file": "metadata_service.get_context.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetContext", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.GetContext", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.Context", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataServiceClient" - }, - "method": { - "shortName": "GetContext", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.GetContext", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_MetadataService_ListContexts_async", - "title": "DatasetService listContexts Sample", - "origin": "API_DEFINITION", - "description": " Lists Contexts on the MetadataStore.", - "canonical": true, - "file": "metadata_service.list_contexts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 114, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListContexts", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.ListContexts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListContextsResponse", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataServiceClient" - }, - "method": { - "shortName": "ListContexts", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.ListContexts", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_MetadataService_UpdateContext_async", - "title": "DatasetService updateContext Sample", - "origin": "API_DEFINITION", - "description": " Updates a stored Context.", - "canonical": true, - "file": "metadata_service.update_context.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateContext", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.UpdateContext", - "async": true, - "parameters": [ - { - "name": "context", - "type": ".google.cloud.aiplatform.v1beta1.Context" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.Context", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataServiceClient" - }, - "method": { - "shortName": "UpdateContext", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.UpdateContext", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_MetadataService_DeleteContext_async", - "title": "DatasetService deleteContext Sample", - "origin": "API_DEFINITION", - "description": " Deletes a stored Context.", - "canonical": true, - "file": "metadata_service.delete_context.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteContext", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.DeleteContext", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataServiceClient" - }, - "method": { - "shortName": "DeleteContext", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.DeleteContext", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_MetadataService_PurgeContexts_async", - "title": "DatasetService purgeContexts Sample", - "origin": "API_DEFINITION", - "description": " Purges Contexts.", - "canonical": true, - "file": "metadata_service.purge_contexts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PurgeContexts", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.PurgeContexts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataServiceClient" - }, - "method": { - "shortName": "PurgeContexts", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.PurgeContexts", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_MetadataService_AddContextArtifactsAndExecutions_async", - "title": "DatasetService addContextArtifactsAndExecutions Sample", - "origin": "API_DEFINITION", - "description": " Adds a set of Artifacts and Executions to a Context. If any of the Artifacts or Executions have already been added to a Context, they are simply skipped.", - "canonical": true, - "file": "metadata_service.add_context_artifacts_and_executions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddContextArtifactsAndExecutions", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.AddContextArtifactsAndExecutions", - "async": true, - "parameters": [ - { - "name": "context", - "type": "TYPE_STRING" - }, - { - "name": "artifacts", - "type": "TYPE_STRING[]" - }, - { - "name": "executions", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsResponse", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataServiceClient" - }, - "method": { - "shortName": "AddContextArtifactsAndExecutions", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.AddContextArtifactsAndExecutions", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_MetadataService_AddContextChildren_async", - "title": "DatasetService addContextChildren Sample", - "origin": "API_DEFINITION", - "description": " Adds a set of Contexts as children to a parent Context. If any of the child Contexts have already been added to the parent Context, they are simply skipped. If this call would create a cycle or cause any Context to have more than 10 parents, the request will fail with an INVALID_ARGUMENT error.", - "canonical": true, - "file": "metadata_service.add_context_children.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddContextChildren", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.AddContextChildren", - "async": true, - "parameters": [ - { - "name": "context", - "type": "TYPE_STRING" - }, - { - "name": "child_contexts", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.AddContextChildrenResponse", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataServiceClient" - }, - "method": { - "shortName": "AddContextChildren", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.AddContextChildren", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_MetadataService_RemoveContextChildren_async", - "title": "DatasetService removeContextChildren Sample", - "origin": "API_DEFINITION", - "description": " Remove a set of children contexts from a parent Context. If any of the child Contexts were NOT added to the parent Context, they are simply skipped.", - "canonical": true, - "file": "metadata_service.remove_context_children.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveContextChildren", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.RemoveContextChildren", - "async": true, - "parameters": [ - { - "name": "context", - "type": "TYPE_STRING" - }, - { - "name": "child_contexts", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.RemoveContextChildrenResponse", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataServiceClient" - }, - "method": { - "shortName": "RemoveContextChildren", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.RemoveContextChildren", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_MetadataService_QueryContextLineageSubgraph_async", - "title": "DatasetService queryContextLineageSubgraph Sample", - "origin": "API_DEFINITION", - "description": " Retrieves Artifacts and Executions within the specified Context, connected by Event edges and returned as a LineageSubgraph.", - "canonical": true, - "file": "metadata_service.query_context_lineage_subgraph.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryContextLineageSubgraph", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.QueryContextLineageSubgraph", - "async": true, - "parameters": [ - { - "name": "context", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.LineageSubgraph", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataServiceClient" - }, - "method": { - "shortName": "QueryContextLineageSubgraph", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.QueryContextLineageSubgraph", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_MetadataService_CreateExecution_async", - "title": "DatasetService createExecution Sample", - "origin": "API_DEFINITION", - "description": " Creates an Execution associated with a MetadataStore.", - "canonical": true, - "file": "metadata_service.create_execution.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateExecution", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.CreateExecution", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "execution", - "type": ".google.cloud.aiplatform.v1beta1.Execution" - }, - { - "name": "execution_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.Execution", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataServiceClient" - }, - "method": { - "shortName": "CreateExecution", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.CreateExecution", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_MetadataService_GetExecution_async", - "title": "DatasetService getExecution Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a specific Execution.", - "canonical": true, - "file": "metadata_service.get_execution.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetExecution", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.GetExecution", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.Execution", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataServiceClient" - }, - "method": { - "shortName": "GetExecution", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.GetExecution", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_MetadataService_ListExecutions_async", - "title": "DatasetService listExecutions Sample", - "origin": "API_DEFINITION", - "description": " Lists Executions in the MetadataStore.", - "canonical": true, - "file": "metadata_service.list_executions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 111, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListExecutions", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.ListExecutions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListExecutionsResponse", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataServiceClient" - }, - "method": { - "shortName": "ListExecutions", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.ListExecutions", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_MetadataService_UpdateExecution_async", - "title": "DatasetService updateExecution Sample", - "origin": "API_DEFINITION", - "description": " Updates a stored Execution.", - "canonical": true, - "file": "metadata_service.update_execution.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateExecution", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.UpdateExecution", - "async": true, - "parameters": [ - { - "name": "execution", - "type": ".google.cloud.aiplatform.v1beta1.Execution" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.Execution", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataServiceClient" - }, - "method": { - "shortName": "UpdateExecution", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.UpdateExecution", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_MetadataService_DeleteExecution_async", - "title": "DatasetService deleteExecution Sample", - "origin": "API_DEFINITION", - "description": " Deletes an Execution.", - "canonical": true, - "file": "metadata_service.delete_execution.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteExecution", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.DeleteExecution", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataServiceClient" - }, - "method": { - "shortName": "DeleteExecution", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.DeleteExecution", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_MetadataService_PurgeExecutions_async", - "title": "DatasetService purgeExecutions Sample", - "origin": "API_DEFINITION", - "description": " Purges Executions.", - "canonical": true, - "file": "metadata_service.purge_executions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PurgeExecutions", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.PurgeExecutions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataServiceClient" - }, - "method": { - "shortName": "PurgeExecutions", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.PurgeExecutions", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_MetadataService_AddExecutionEvents_async", - "title": "DatasetService addExecutionEvents Sample", - "origin": "API_DEFINITION", - "description": " Adds Events to the specified Execution. An Event indicates whether an Artifact was used as an input or output for an Execution. If an Event already exists between the Execution and the Artifact, the Event is skipped.", - "canonical": true, - "file": "metadata_service.add_execution_events.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddExecutionEvents", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.AddExecutionEvents", - "async": true, - "parameters": [ - { - "name": "execution", - "type": "TYPE_STRING" - }, - { - "name": "events", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.AddExecutionEventsResponse", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataServiceClient" - }, - "method": { - "shortName": "AddExecutionEvents", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.AddExecutionEvents", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_MetadataService_QueryExecutionInputsAndOutputs_async", - "title": "DatasetService queryExecutionInputsAndOutputs Sample", - "origin": "API_DEFINITION", - "description": " Obtains the set of input and output Artifacts for this Execution, in the form of LineageSubgraph that also contains the Execution and connecting Events.", - "canonical": true, - "file": "metadata_service.query_execution_inputs_and_outputs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryExecutionInputsAndOutputs", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.QueryExecutionInputsAndOutputs", - "async": true, - "parameters": [ - { - "name": "execution", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.LineageSubgraph", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataServiceClient" - }, - "method": { - "shortName": "QueryExecutionInputsAndOutputs", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.QueryExecutionInputsAndOutputs", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_MetadataService_CreateMetadataSchema_async", - "title": "DatasetService createMetadataSchema Sample", - "origin": "API_DEFINITION", - "description": " Creates a MetadataSchema.", - "canonical": true, - "file": "metadata_service.create_metadata_schema.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateMetadataSchema", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.CreateMetadataSchema", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "metadata_schema", - "type": ".google.cloud.aiplatform.v1beta1.MetadataSchema" - }, - { - "name": "metadata_schema_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.MetadataSchema", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataServiceClient" - }, - "method": { - "shortName": "CreateMetadataSchema", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.CreateMetadataSchema", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_MetadataService_GetMetadataSchema_async", - "title": "DatasetService getMetadataSchema Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a specific MetadataSchema.", - "canonical": true, - "file": "metadata_service.get_metadata_schema.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMetadataSchema", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.GetMetadataSchema", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.MetadataSchema", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataServiceClient" - }, - "method": { - "shortName": "GetMetadataSchema", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.GetMetadataSchema", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_MetadataService_ListMetadataSchemas_async", - "title": "DatasetService listMetadataSchemas Sample", - "origin": "API_DEFINITION", - "description": " Lists MetadataSchemas.", - "canonical": true, - "file": "metadata_service.list_metadata_schemas.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMetadataSchemas", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataSchemas", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListMetadataSchemasResponse", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataServiceClient" - }, - "method": { - "shortName": "ListMetadataSchemas", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.ListMetadataSchemas", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_MetadataService_QueryArtifactLineageSubgraph_async", - "title": "DatasetService queryArtifactLineageSubgraph Sample", - "origin": "API_DEFINITION", - "description": " Retrieves lineage of an Artifact represented through Artifacts and Executions connected by Event edges and returned as a LineageSubgraph.", - "canonical": true, - "file": "metadata_service.query_artifact_lineage_subgraph.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 91, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryArtifactLineageSubgraph", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.QueryArtifactLineageSubgraph", - "async": true, - "parameters": [ - { - "name": "artifact", - "type": "TYPE_STRING" - }, - { - "name": "max_hops", - "type": "TYPE_INT32" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.LineageSubgraph", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataServiceClient" - }, - "method": { - "shortName": "QueryArtifactLineageSubgraph", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService.QueryArtifactLineageSubgraph", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.aiplatform.v1beta1.MetadataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_MigrationService_SearchMigratableResources_async", - "title": "DatasetService searchMigratableResources Sample", - "origin": "API_DEFINITION", - "description": " Searches all of the resources in automl.googleapis.com, datalabeling.googleapis.com and ml.googleapis.com that can be migrated to Vertex AI's given location.", - "canonical": true, - "file": "migration_service.search_migratable_resources.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchMigratableResources", - "fullName": "google.cloud.aiplatform.v1beta1.MigrationService.SearchMigratableResources", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.SearchMigratableResourcesResponse", - "client": { - "shortName": "MigrationServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.MigrationServiceClient" - }, - "method": { - "shortName": "SearchMigratableResources", - "fullName": "google.cloud.aiplatform.v1beta1.MigrationService.SearchMigratableResources", - "service": { - "shortName": "MigrationService", - "fullName": "google.cloud.aiplatform.v1beta1.MigrationService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_MigrationService_BatchMigrateResources_async", - "title": "DatasetService batchMigrateResources Sample", - "origin": "API_DEFINITION", - "description": " Batch migrates resources from ml.googleapis.com, automl.googleapis.com, and datalabeling.googleapis.com to Vertex AI.", - "canonical": true, - "file": "migration_service.batch_migrate_resources.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchMigrateResources", - "fullName": "google.cloud.aiplatform.v1beta1.MigrationService.BatchMigrateResources", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "migrate_resource_requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MigrationServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.MigrationServiceClient" - }, - "method": { - "shortName": "BatchMigrateResources", - "fullName": "google.cloud.aiplatform.v1beta1.MigrationService.BatchMigrateResources", - "service": { - "shortName": "MigrationService", - "fullName": "google.cloud.aiplatform.v1beta1.MigrationService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ModelGardenService_GetPublisherModel_async", - "title": "DatasetService getPublisherModel Sample", - "origin": "API_DEFINITION", - "description": " Gets a Model Garden publisher model.", - "canonical": true, - "file": "model_garden_service.get_publisher_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPublisherModel", - "fullName": "google.cloud.aiplatform.v1beta1.ModelGardenService.GetPublisherModel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.aiplatform.v1beta1.PublisherModelView" - }, - { - "name": "is_hugging_face_model", - "type": "TYPE_BOOL" - }, - { - "name": "hugging_face_token", - "type": "TYPE_STRING" - }, - { - "name": "include_equivalent_model_garden_model_deployment_configs", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.PublisherModel", - "client": { - "shortName": "ModelGardenServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ModelGardenServiceClient" - }, - "method": { - "shortName": "GetPublisherModel", - "fullName": "google.cloud.aiplatform.v1beta1.ModelGardenService.GetPublisherModel", - "service": { - "shortName": "ModelGardenService", - "fullName": "google.cloud.aiplatform.v1beta1.ModelGardenService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ModelGardenService_ListPublisherModels_async", - "title": "DatasetService listPublisherModels Sample", - "origin": "API_DEFINITION", - "description": " Lists publisher models in Model Garden.", - "canonical": true, - "file": "model_garden_service.list_publisher_models.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 92, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPublisherModels", - "fullName": "google.cloud.aiplatform.v1beta1.ModelGardenService.ListPublisherModels", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.aiplatform.v1beta1.PublisherModelView" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "list_all_versions", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListPublisherModelsResponse", - "client": { - "shortName": "ModelGardenServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ModelGardenServiceClient" - }, - "method": { - "shortName": "ListPublisherModels", - "fullName": "google.cloud.aiplatform.v1beta1.ModelGardenService.ListPublisherModels", - "service": { - "shortName": "ModelGardenService", - "fullName": "google.cloud.aiplatform.v1beta1.ModelGardenService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ModelGardenService_Deploy_async", - "title": "DatasetService deploy Sample", - "origin": "API_DEFINITION", - "description": " Deploys a model to a new endpoint.", - "canonical": true, - "file": "model_garden_service.deploy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Deploy", - "fullName": "google.cloud.aiplatform.v1beta1.ModelGardenService.Deploy", - "async": true, - "parameters": [ - { - "name": "publisher_model_name", - "type": "TYPE_STRING" - }, - { - "name": "hugging_face_model_id", - "type": "TYPE_STRING" - }, - { - "name": "custom_model", - "type": ".google.cloud.aiplatform.v1beta1.DeployRequest.CustomModel" - }, - { - "name": "destination", - "type": "TYPE_STRING" - }, - { - "name": "model_config", - "type": ".google.cloud.aiplatform.v1beta1.DeployRequest.ModelConfig" - }, - { - "name": "endpoint_config", - "type": ".google.cloud.aiplatform.v1beta1.DeployRequest.EndpointConfig" - }, - { - "name": "deploy_config", - "type": ".google.cloud.aiplatform.v1beta1.DeployRequest.DeployConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ModelGardenServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ModelGardenServiceClient" - }, - "method": { - "shortName": "Deploy", - "fullName": "google.cloud.aiplatform.v1beta1.ModelGardenService.Deploy", - "service": { - "shortName": "ModelGardenService", - "fullName": "google.cloud.aiplatform.v1beta1.ModelGardenService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ModelGardenService_DeployPublisherModel_async", - "title": "DatasetService deployPublisherModel Sample", - "origin": "API_DEFINITION", - "description": " Deploys publisher models.", - "canonical": true, - "file": "model_garden_service.deploy_publisher_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 91, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeployPublisherModel", - "fullName": "google.cloud.aiplatform.v1beta1.ModelGardenService.DeployPublisherModel", - "async": true, - "parameters": [ - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "destination", - "type": "TYPE_STRING" - }, - { - "name": "endpoint_display_name", - "type": "TYPE_STRING" - }, - { - "name": "dedicated_resources", - "type": ".google.cloud.aiplatform.v1beta1.DedicatedResources" - }, - { - "name": "model_display_name", - "type": "TYPE_STRING" - }, - { - "name": "hugging_face_access_token", - "type": "TYPE_STRING" - }, - { - "name": "accept_eula", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ModelGardenServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ModelGardenServiceClient" - }, - "method": { - "shortName": "DeployPublisherModel", - "fullName": "google.cloud.aiplatform.v1beta1.ModelGardenService.DeployPublisherModel", - "service": { - "shortName": "ModelGardenService", - "fullName": "google.cloud.aiplatform.v1beta1.ModelGardenService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ModelGardenService_ExportPublisherModel_async", - "title": "DatasetService exportPublisherModel Sample", - "origin": "API_DEFINITION", - "description": " Exports a publisher model to a user provided Google Cloud Storage bucket.", - "canonical": true, - "file": "model_garden_service.export_publisher_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportPublisherModel", - "fullName": "google.cloud.aiplatform.v1beta1.ModelGardenService.ExportPublisherModel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "destination", - "type": ".google.cloud.aiplatform.v1beta1.GcsDestination" - }, - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ModelGardenServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ModelGardenServiceClient" - }, - "method": { - "shortName": "ExportPublisherModel", - "fullName": "google.cloud.aiplatform.v1beta1.ModelGardenService.ExportPublisherModel", - "service": { - "shortName": "ModelGardenService", - "fullName": "google.cloud.aiplatform.v1beta1.ModelGardenService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ModelGardenService_CheckPublisherModelEulaAcceptance_async", - "title": "DatasetService checkPublisherModelEulaAcceptance Sample", - "origin": "API_DEFINITION", - "description": " Checks the EULA acceptance status of a publisher model.", - "canonical": true, - "file": "model_garden_service.check_publisher_model_eula_acceptance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CheckPublisherModelEulaAcceptance", - "fullName": "google.cloud.aiplatform.v1beta1.ModelGardenService.CheckPublisherModelEulaAcceptance", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "publisher_model", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.PublisherModelEulaAcceptance", - "client": { - "shortName": "ModelGardenServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ModelGardenServiceClient" - }, - "method": { - "shortName": "CheckPublisherModelEulaAcceptance", - "fullName": "google.cloud.aiplatform.v1beta1.ModelGardenService.CheckPublisherModelEulaAcceptance", - "service": { - "shortName": "ModelGardenService", - "fullName": "google.cloud.aiplatform.v1beta1.ModelGardenService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ModelGardenService_AcceptPublisherModelEula_async", - "title": "DatasetService acceptPublisherModelEula Sample", - "origin": "API_DEFINITION", - "description": " Accepts the EULA acceptance status of a publisher model.", - "canonical": true, - "file": "model_garden_service.accept_publisher_model_eula.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AcceptPublisherModelEula", - "fullName": "google.cloud.aiplatform.v1beta1.ModelGardenService.AcceptPublisherModelEula", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "publisher_model", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.PublisherModelEulaAcceptance", - "client": { - "shortName": "ModelGardenServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ModelGardenServiceClient" - }, - "method": { - "shortName": "AcceptPublisherModelEula", - "fullName": "google.cloud.aiplatform.v1beta1.ModelGardenService.AcceptPublisherModelEula", - "service": { - "shortName": "ModelGardenService", - "fullName": "google.cloud.aiplatform.v1beta1.ModelGardenService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ModelMonitoringService_CreateModelMonitor_async", - "title": "DatasetService createModelMonitor Sample", - "origin": "API_DEFINITION", - "description": " Creates a ModelMonitor.", - "canonical": true, - "file": "model_monitoring_service.create_model_monitor.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateModelMonitor", - "fullName": "google.cloud.aiplatform.v1beta1.ModelMonitoringService.CreateModelMonitor", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "model_monitor", - "type": ".google.cloud.aiplatform.v1beta1.ModelMonitor" - }, - { - "name": "model_monitor_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ModelMonitoringServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ModelMonitoringServiceClient" - }, - "method": { - "shortName": "CreateModelMonitor", - "fullName": "google.cloud.aiplatform.v1beta1.ModelMonitoringService.CreateModelMonitor", - "service": { - "shortName": "ModelMonitoringService", - "fullName": "google.cloud.aiplatform.v1beta1.ModelMonitoringService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ModelMonitoringService_UpdateModelMonitor_async", - "title": "DatasetService updateModelMonitor Sample", - "origin": "API_DEFINITION", - "description": " Updates a ModelMonitor.", - "canonical": true, - "file": "model_monitoring_service.update_model_monitor.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateModelMonitor", - "fullName": "google.cloud.aiplatform.v1beta1.ModelMonitoringService.UpdateModelMonitor", - "async": true, - "parameters": [ - { - "name": "model_monitor", - "type": ".google.cloud.aiplatform.v1beta1.ModelMonitor" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ModelMonitoringServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ModelMonitoringServiceClient" - }, - "method": { - "shortName": "UpdateModelMonitor", - "fullName": "google.cloud.aiplatform.v1beta1.ModelMonitoringService.UpdateModelMonitor", - "service": { - "shortName": "ModelMonitoringService", - "fullName": "google.cloud.aiplatform.v1beta1.ModelMonitoringService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ModelMonitoringService_GetModelMonitor_async", - "title": "DatasetService getModelMonitor Sample", - "origin": "API_DEFINITION", - "description": " Gets a ModelMonitor.", - "canonical": true, - "file": "model_monitoring_service.get_model_monitor.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetModelMonitor", - "fullName": "google.cloud.aiplatform.v1beta1.ModelMonitoringService.GetModelMonitor", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ModelMonitor", - "client": { - "shortName": "ModelMonitoringServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ModelMonitoringServiceClient" - }, - "method": { - "shortName": "GetModelMonitor", - "fullName": "google.cloud.aiplatform.v1beta1.ModelMonitoringService.GetModelMonitor", - "service": { - "shortName": "ModelMonitoringService", - "fullName": "google.cloud.aiplatform.v1beta1.ModelMonitoringService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ModelMonitoringService_ListModelMonitors_async", - "title": "DatasetService listModelMonitors Sample", - "origin": "API_DEFINITION", - "description": " Lists ModelMonitors in a Location.", - "canonical": true, - "file": "model_monitoring_service.list_model_monitors.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListModelMonitors", - "fullName": "google.cloud.aiplatform.v1beta1.ModelMonitoringService.ListModelMonitors", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListModelMonitorsResponse", - "client": { - "shortName": "ModelMonitoringServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ModelMonitoringServiceClient" - }, - "method": { - "shortName": "ListModelMonitors", - "fullName": "google.cloud.aiplatform.v1beta1.ModelMonitoringService.ListModelMonitors", - "service": { - "shortName": "ModelMonitoringService", - "fullName": "google.cloud.aiplatform.v1beta1.ModelMonitoringService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ModelMonitoringService_DeleteModelMonitor_async", - "title": "DatasetService deleteModelMonitor Sample", - "origin": "API_DEFINITION", - "description": " Deletes a ModelMonitor.", - "canonical": true, - "file": "model_monitoring_service.delete_model_monitor.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteModelMonitor", - "fullName": "google.cloud.aiplatform.v1beta1.ModelMonitoringService.DeleteModelMonitor", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ModelMonitoringServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ModelMonitoringServiceClient" - }, - "method": { - "shortName": "DeleteModelMonitor", - "fullName": "google.cloud.aiplatform.v1beta1.ModelMonitoringService.DeleteModelMonitor", - "service": { - "shortName": "ModelMonitoringService", - "fullName": "google.cloud.aiplatform.v1beta1.ModelMonitoringService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ModelMonitoringService_CreateModelMonitoringJob_async", - "title": "DatasetService createModelMonitoringJob Sample", - "origin": "API_DEFINITION", - "description": " Creates a ModelMonitoringJob.", - "canonical": true, - "file": "model_monitoring_service.create_model_monitoring_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateModelMonitoringJob", - "fullName": "google.cloud.aiplatform.v1beta1.ModelMonitoringService.CreateModelMonitoringJob", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "model_monitoring_job", - "type": ".google.cloud.aiplatform.v1beta1.ModelMonitoringJob" - }, - { - "name": "model_monitoring_job_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ModelMonitoringJob", - "client": { - "shortName": "ModelMonitoringServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ModelMonitoringServiceClient" - }, - "method": { - "shortName": "CreateModelMonitoringJob", - "fullName": "google.cloud.aiplatform.v1beta1.ModelMonitoringService.CreateModelMonitoringJob", - "service": { - "shortName": "ModelMonitoringService", - "fullName": "google.cloud.aiplatform.v1beta1.ModelMonitoringService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ModelMonitoringService_GetModelMonitoringJob_async", - "title": "DatasetService getModelMonitoringJob Sample", - "origin": "API_DEFINITION", - "description": " Gets a ModelMonitoringJob.", - "canonical": true, - "file": "model_monitoring_service.get_model_monitoring_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetModelMonitoringJob", - "fullName": "google.cloud.aiplatform.v1beta1.ModelMonitoringService.GetModelMonitoringJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ModelMonitoringJob", - "client": { - "shortName": "ModelMonitoringServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ModelMonitoringServiceClient" - }, - "method": { - "shortName": "GetModelMonitoringJob", - "fullName": "google.cloud.aiplatform.v1beta1.ModelMonitoringService.GetModelMonitoringJob", - "service": { - "shortName": "ModelMonitoringService", - "fullName": "google.cloud.aiplatform.v1beta1.ModelMonitoringService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ModelMonitoringService_ListModelMonitoringJobs_async", - "title": "DatasetService listModelMonitoringJobs Sample", - "origin": "API_DEFINITION", - "description": " Lists ModelMonitoringJobs. Callers may choose to read across multiple Monitors as per [AIP-159](https://google.aip.dev/159) by using '-' (the hyphen or dash character) as a wildcard character instead of modelMonitor id in the parent. Format `projects/{project_id}/locations/{location}/moodelMonitors/-/modelMonitoringJobs`", - "canonical": true, - "file": "model_monitoring_service.list_model_monitoring_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListModelMonitoringJobs", - "fullName": "google.cloud.aiplatform.v1beta1.ModelMonitoringService.ListModelMonitoringJobs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListModelMonitoringJobsResponse", - "client": { - "shortName": "ModelMonitoringServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ModelMonitoringServiceClient" - }, - "method": { - "shortName": "ListModelMonitoringJobs", - "fullName": "google.cloud.aiplatform.v1beta1.ModelMonitoringService.ListModelMonitoringJobs", - "service": { - "shortName": "ModelMonitoringService", - "fullName": "google.cloud.aiplatform.v1beta1.ModelMonitoringService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ModelMonitoringService_DeleteModelMonitoringJob_async", - "title": "DatasetService deleteModelMonitoringJob Sample", - "origin": "API_DEFINITION", - "description": " Deletes a ModelMonitoringJob.", - "canonical": true, - "file": "model_monitoring_service.delete_model_monitoring_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteModelMonitoringJob", - "fullName": "google.cloud.aiplatform.v1beta1.ModelMonitoringService.DeleteModelMonitoringJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ModelMonitoringServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ModelMonitoringServiceClient" - }, - "method": { - "shortName": "DeleteModelMonitoringJob", - "fullName": "google.cloud.aiplatform.v1beta1.ModelMonitoringService.DeleteModelMonitoringJob", - "service": { - "shortName": "ModelMonitoringService", - "fullName": "google.cloud.aiplatform.v1beta1.ModelMonitoringService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ModelMonitoringService_SearchModelMonitoringStats_async", - "title": "DatasetService searchModelMonitoringStats Sample", - "origin": "API_DEFINITION", - "description": " Searches Model Monitoring Stats generated within a given time window.", - "canonical": true, - "file": "model_monitoring_service.search_model_monitoring_stats.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchModelMonitoringStats", - "fullName": "google.cloud.aiplatform.v1beta1.ModelMonitoringService.SearchModelMonitoringStats", - "async": true, - "parameters": [ - { - "name": "model_monitor", - "type": "TYPE_STRING" - }, - { - "name": "stats_filter", - "type": ".google.cloud.aiplatform.v1beta1.SearchModelMonitoringStatsFilter" - }, - { - "name": "time_interval", - "type": ".google.type.Interval" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.SearchModelMonitoringStatsResponse", - "client": { - "shortName": "ModelMonitoringServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ModelMonitoringServiceClient" - }, - "method": { - "shortName": "SearchModelMonitoringStats", - "fullName": "google.cloud.aiplatform.v1beta1.ModelMonitoringService.SearchModelMonitoringStats", - "service": { - "shortName": "ModelMonitoringService", - "fullName": "google.cloud.aiplatform.v1beta1.ModelMonitoringService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ModelMonitoringService_SearchModelMonitoringAlerts_async", - "title": "DatasetService searchModelMonitoringAlerts Sample", - "origin": "API_DEFINITION", - "description": " Returns the Model Monitoring alerts.", - "canonical": true, - "file": "model_monitoring_service.search_model_monitoring_alerts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchModelMonitoringAlerts", - "fullName": "google.cloud.aiplatform.v1beta1.ModelMonitoringService.SearchModelMonitoringAlerts", - "async": true, - "parameters": [ - { - "name": "model_monitor", - "type": "TYPE_STRING" - }, - { - "name": "model_monitoring_job", - "type": "TYPE_STRING" - }, - { - "name": "alert_time_interval", - "type": ".google.type.Interval" - }, - { - "name": "stats_name", - "type": "TYPE_STRING" - }, - { - "name": "objective_type", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.SearchModelMonitoringAlertsResponse", - "client": { - "shortName": "ModelMonitoringServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ModelMonitoringServiceClient" - }, - "method": { - "shortName": "SearchModelMonitoringAlerts", - "fullName": "google.cloud.aiplatform.v1beta1.ModelMonitoringService.SearchModelMonitoringAlerts", - "service": { - "shortName": "ModelMonitoringService", - "fullName": "google.cloud.aiplatform.v1beta1.ModelMonitoringService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ModelService_UploadModel_async", - "title": "DatasetService uploadModel Sample", - "origin": "API_DEFINITION", - "description": " Uploads a Model artifact into Vertex AI.", - "canonical": true, - "file": "model_service.upload_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UploadModel", - "fullName": "google.cloud.aiplatform.v1beta1.ModelService.UploadModel", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "parent_model", - "type": "TYPE_STRING" - }, - { - "name": "model_id", - "type": "TYPE_STRING" - }, - { - "name": "model", - "type": ".google.cloud.aiplatform.v1beta1.Model" - }, - { - "name": "service_account", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ModelServiceClient" - }, - "method": { - "shortName": "UploadModel", - "fullName": "google.cloud.aiplatform.v1beta1.ModelService.UploadModel", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.aiplatform.v1beta1.ModelService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ModelService_GetModel_async", - "title": "DatasetService getModel Sample", - "origin": "API_DEFINITION", - "description": " Gets a Model.", - "canonical": true, - "file": "model_service.get_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetModel", - "fullName": "google.cloud.aiplatform.v1beta1.ModelService.GetModel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.Model", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ModelServiceClient" - }, - "method": { - "shortName": "GetModel", - "fullName": "google.cloud.aiplatform.v1beta1.ModelService.GetModel", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.aiplatform.v1beta1.ModelService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ModelService_ListModels_async", - "title": "DatasetService listModels Sample", - "origin": "API_DEFINITION", - "description": " Lists Models in a Location.", - "canonical": true, - "file": "model_service.list_models.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 92, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListModels", - "fullName": "google.cloud.aiplatform.v1beta1.ModelService.ListModels", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListModelsResponse", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ModelServiceClient" - }, - "method": { - "shortName": "ListModels", - "fullName": "google.cloud.aiplatform.v1beta1.ModelService.ListModels", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.aiplatform.v1beta1.ModelService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ModelService_ListModelVersions_async", - "title": "DatasetService listModelVersions Sample", - "origin": "API_DEFINITION", - "description": " Lists versions of the specified model.", - "canonical": true, - "file": "model_service.list_model_versions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 92, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListModelVersions", - "fullName": "google.cloud.aiplatform.v1beta1.ModelService.ListModelVersions", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListModelVersionsResponse", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ModelServiceClient" - }, - "method": { - "shortName": "ListModelVersions", - "fullName": "google.cloud.aiplatform.v1beta1.ModelService.ListModelVersions", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.aiplatform.v1beta1.ModelService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ModelService_ListModelVersionCheckpoints_async", - "title": "DatasetService listModelVersionCheckpoints Sample", - "origin": "API_DEFINITION", - "description": " Lists checkpoints of the specified model version.", - "canonical": true, - "file": "model_service.list_model_version_checkpoints.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListModelVersionCheckpoints", - "fullName": "google.cloud.aiplatform.v1beta1.ModelService.ListModelVersionCheckpoints", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListModelVersionCheckpointsResponse", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ModelServiceClient" - }, - "method": { - "shortName": "ListModelVersionCheckpoints", - "fullName": "google.cloud.aiplatform.v1beta1.ModelService.ListModelVersionCheckpoints", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.aiplatform.v1beta1.ModelService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ModelService_UpdateModel_async", - "title": "DatasetService updateModel Sample", - "origin": "API_DEFINITION", - "description": " Updates a Model.", - "canonical": true, - "file": "model_service.update_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateModel", - "fullName": "google.cloud.aiplatform.v1beta1.ModelService.UpdateModel", - "async": true, - "parameters": [ - { - "name": "model", - "type": ".google.cloud.aiplatform.v1beta1.Model" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.Model", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ModelServiceClient" - }, - "method": { - "shortName": "UpdateModel", - "fullName": "google.cloud.aiplatform.v1beta1.ModelService.UpdateModel", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.aiplatform.v1beta1.ModelService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ModelService_UpdateExplanationDataset_async", - "title": "DatasetService updateExplanationDataset Sample", - "origin": "API_DEFINITION", - "description": " Incrementally update the dataset used for an examples model.", - "canonical": true, - "file": "model_service.update_explanation_dataset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateExplanationDataset", - "fullName": "google.cloud.aiplatform.v1beta1.ModelService.UpdateExplanationDataset", - "async": true, - "parameters": [ - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "examples", - "type": ".google.cloud.aiplatform.v1beta1.Examples" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ModelServiceClient" - }, - "method": { - "shortName": "UpdateExplanationDataset", - "fullName": "google.cloud.aiplatform.v1beta1.ModelService.UpdateExplanationDataset", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.aiplatform.v1beta1.ModelService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ModelService_DeleteModel_async", - "title": "DatasetService deleteModel Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Model. A model cannot be deleted if any [Endpoint][google.cloud.aiplatform.v1beta1.Endpoint] resource has a [DeployedModel][google.cloud.aiplatform.v1beta1.DeployedModel] based on the model in its [deployed_models][google.cloud.aiplatform.v1beta1.Endpoint.deployed_models] field.", - "canonical": true, - "file": "model_service.delete_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteModel", - "fullName": "google.cloud.aiplatform.v1beta1.ModelService.DeleteModel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ModelServiceClient" - }, - "method": { - "shortName": "DeleteModel", - "fullName": "google.cloud.aiplatform.v1beta1.ModelService.DeleteModel", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.aiplatform.v1beta1.ModelService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ModelService_DeleteModelVersion_async", - "title": "DatasetService deleteModelVersion Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Model version. Model version can only be deleted if there are no [DeployedModels][google.cloud.aiplatform.v1beta1.DeployedModel] created from it. Deleting the only version in the Model is not allowed. Use [DeleteModel][google.cloud.aiplatform.v1beta1.ModelService.DeleteModel] for deleting the Model instead.", - "canonical": true, - "file": "model_service.delete_model_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteModelVersion", - "fullName": "google.cloud.aiplatform.v1beta1.ModelService.DeleteModelVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ModelServiceClient" - }, - "method": { - "shortName": "DeleteModelVersion", - "fullName": "google.cloud.aiplatform.v1beta1.ModelService.DeleteModelVersion", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.aiplatform.v1beta1.ModelService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ModelService_MergeVersionAliases_async", - "title": "DatasetService mergeVersionAliases Sample", - "origin": "API_DEFINITION", - "description": " Merges a set of aliases for a Model version.", - "canonical": true, - "file": "model_service.merge_version_aliases.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "MergeVersionAliases", - "fullName": "google.cloud.aiplatform.v1beta1.ModelService.MergeVersionAliases", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "version_aliases", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.Model", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ModelServiceClient" - }, - "method": { - "shortName": "MergeVersionAliases", - "fullName": "google.cloud.aiplatform.v1beta1.ModelService.MergeVersionAliases", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.aiplatform.v1beta1.ModelService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ModelService_ExportModel_async", - "title": "DatasetService exportModel Sample", - "origin": "API_DEFINITION", - "description": " Exports a trained, exportable Model to a location specified by the user. A Model is considered to be exportable if it has at least one [supported export format][google.cloud.aiplatform.v1beta1.Model.supported_export_formats].", - "canonical": true, - "file": "model_service.export_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportModel", - "fullName": "google.cloud.aiplatform.v1beta1.ModelService.ExportModel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "output_config", - "type": ".google.cloud.aiplatform.v1beta1.ExportModelRequest.OutputConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ModelServiceClient" - }, - "method": { - "shortName": "ExportModel", - "fullName": "google.cloud.aiplatform.v1beta1.ModelService.ExportModel", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.aiplatform.v1beta1.ModelService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ModelService_CopyModel_async", - "title": "DatasetService copyModel Sample", - "origin": "API_DEFINITION", - "description": " Copies an already existing Vertex AI Model into the specified Location. The source Model must exist in the same Project. When copying custom Models, the users themselves are responsible for [Model.metadata][google.cloud.aiplatform.v1beta1.Model.metadata] content to be region-agnostic, as well as making sure that any resources (e.g. files) it depends on remain accessible.", - "canonical": true, - "file": "model_service.copy_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 92, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CopyModel", - "fullName": "google.cloud.aiplatform.v1beta1.ModelService.CopyModel", - "async": true, - "parameters": [ - { - "name": "model_id", - "type": "TYPE_STRING" - }, - { - "name": "parent_model", - "type": "TYPE_STRING" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "source_model", - "type": "TYPE_STRING" - }, - { - "name": "encryption_spec", - "type": ".google.cloud.aiplatform.v1beta1.EncryptionSpec" - }, - { - "name": "custom_service_account", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ModelServiceClient" - }, - "method": { - "shortName": "CopyModel", - "fullName": "google.cloud.aiplatform.v1beta1.ModelService.CopyModel", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.aiplatform.v1beta1.ModelService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ModelService_ImportModelEvaluation_async", - "title": "DatasetService importModelEvaluation Sample", - "origin": "API_DEFINITION", - "description": " Imports an externally generated ModelEvaluation.", - "canonical": true, - "file": "model_service.import_model_evaluation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportModelEvaluation", - "fullName": "google.cloud.aiplatform.v1beta1.ModelService.ImportModelEvaluation", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "model_evaluation", - "type": ".google.cloud.aiplatform.v1beta1.ModelEvaluation" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ModelEvaluation", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ModelServiceClient" - }, - "method": { - "shortName": "ImportModelEvaluation", - "fullName": "google.cloud.aiplatform.v1beta1.ModelService.ImportModelEvaluation", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.aiplatform.v1beta1.ModelService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ModelService_BatchImportModelEvaluationSlices_async", - "title": "DatasetService batchImportModelEvaluationSlices Sample", - "origin": "API_DEFINITION", - "description": " Imports a list of externally generated ModelEvaluationSlice.", - "canonical": true, - "file": "model_service.batch_import_model_evaluation_slices.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchImportModelEvaluationSlices", - "fullName": "google.cloud.aiplatform.v1beta1.ModelService.BatchImportModelEvaluationSlices", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "model_evaluation_slices", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ModelServiceClient" - }, - "method": { - "shortName": "BatchImportModelEvaluationSlices", - "fullName": "google.cloud.aiplatform.v1beta1.ModelService.BatchImportModelEvaluationSlices", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.aiplatform.v1beta1.ModelService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ModelService_BatchImportEvaluatedAnnotations_async", - "title": "DatasetService batchImportEvaluatedAnnotations Sample", - "origin": "API_DEFINITION", - "description": " Imports a list of externally generated EvaluatedAnnotations.", - "canonical": true, - "file": "model_service.batch_import_evaluated_annotations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchImportEvaluatedAnnotations", - "fullName": "google.cloud.aiplatform.v1beta1.ModelService.BatchImportEvaluatedAnnotations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "evaluated_annotations", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.BatchImportEvaluatedAnnotationsResponse", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ModelServiceClient" - }, - "method": { - "shortName": "BatchImportEvaluatedAnnotations", - "fullName": "google.cloud.aiplatform.v1beta1.ModelService.BatchImportEvaluatedAnnotations", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.aiplatform.v1beta1.ModelService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ModelService_GetModelEvaluation_async", - "title": "DatasetService getModelEvaluation Sample", - "origin": "API_DEFINITION", - "description": " Gets a ModelEvaluation.", - "canonical": true, - "file": "model_service.get_model_evaluation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetModelEvaluation", - "fullName": "google.cloud.aiplatform.v1beta1.ModelService.GetModelEvaluation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ModelEvaluation", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ModelServiceClient" - }, - "method": { - "shortName": "GetModelEvaluation", - "fullName": "google.cloud.aiplatform.v1beta1.ModelService.GetModelEvaluation", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.aiplatform.v1beta1.ModelService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ModelService_ListModelEvaluations_async", - "title": "DatasetService listModelEvaluations Sample", - "origin": "API_DEFINITION", - "description": " Lists ModelEvaluations in a Model.", - "canonical": true, - "file": "model_service.list_model_evaluations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListModelEvaluations", - "fullName": "google.cloud.aiplatform.v1beta1.ModelService.ListModelEvaluations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListModelEvaluationsResponse", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ModelServiceClient" - }, - "method": { - "shortName": "ListModelEvaluations", - "fullName": "google.cloud.aiplatform.v1beta1.ModelService.ListModelEvaluations", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.aiplatform.v1beta1.ModelService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ModelService_GetModelEvaluationSlice_async", - "title": "DatasetService getModelEvaluationSlice Sample", - "origin": "API_DEFINITION", - "description": " Gets a ModelEvaluationSlice.", - "canonical": true, - "file": "model_service.get_model_evaluation_slice.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetModelEvaluationSlice", - "fullName": "google.cloud.aiplatform.v1beta1.ModelService.GetModelEvaluationSlice", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ModelEvaluationSlice", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ModelServiceClient" - }, - "method": { - "shortName": "GetModelEvaluationSlice", - "fullName": "google.cloud.aiplatform.v1beta1.ModelService.GetModelEvaluationSlice", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.aiplatform.v1beta1.ModelService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ModelService_ListModelEvaluationSlices_async", - "title": "DatasetService listModelEvaluationSlices Sample", - "origin": "API_DEFINITION", - "description": " Lists ModelEvaluationSlices in a ModelEvaluation.", - "canonical": true, - "file": "model_service.list_model_evaluation_slices.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListModelEvaluationSlices", - "fullName": "google.cloud.aiplatform.v1beta1.ModelService.ListModelEvaluationSlices", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListModelEvaluationSlicesResponse", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ModelServiceClient" - }, - "method": { - "shortName": "ListModelEvaluationSlices", - "fullName": "google.cloud.aiplatform.v1beta1.ModelService.ListModelEvaluationSlices", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.aiplatform.v1beta1.ModelService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ModelService_RecommendSpec_async", - "title": "DatasetService recommendSpec Sample", - "origin": "API_DEFINITION", - "description": " Gets a Model's spec recommendations.", - "canonical": true, - "file": "model_service.recommend_spec.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RecommendSpec", - "fullName": "google.cloud.aiplatform.v1beta1.ModelService.RecommendSpec", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "gcs_uri", - "type": "TYPE_STRING" - }, - { - "name": "check_machine_availability", - "type": "TYPE_BOOL" - }, - { - "name": "check_user_quota", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.RecommendSpecResponse", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ModelServiceClient" - }, - "method": { - "shortName": "RecommendSpec", - "fullName": "google.cloud.aiplatform.v1beta1.ModelService.RecommendSpec", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.aiplatform.v1beta1.ModelService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_NotebookService_CreateNotebookRuntimeTemplate_async", - "title": "DatasetService createNotebookRuntimeTemplate Sample", - "origin": "API_DEFINITION", - "description": " Creates a NotebookRuntimeTemplate.", - "canonical": true, - "file": "notebook_service.create_notebook_runtime_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateNotebookRuntimeTemplate", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookService.CreateNotebookRuntimeTemplate", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "notebook_runtime_template", - "type": ".google.cloud.aiplatform.v1beta1.NotebookRuntimeTemplate" - }, - { - "name": "notebook_runtime_template_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookServiceClient" - }, - "method": { - "shortName": "CreateNotebookRuntimeTemplate", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookService.CreateNotebookRuntimeTemplate", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_NotebookService_GetNotebookRuntimeTemplate_async", - "title": "DatasetService getNotebookRuntimeTemplate Sample", - "origin": "API_DEFINITION", - "description": " Gets a NotebookRuntimeTemplate.", - "canonical": true, - "file": "notebook_service.get_notebook_runtime_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetNotebookRuntimeTemplate", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookService.GetNotebookRuntimeTemplate", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.NotebookRuntimeTemplate", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookServiceClient" - }, - "method": { - "shortName": "GetNotebookRuntimeTemplate", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookService.GetNotebookRuntimeTemplate", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_NotebookService_ListNotebookRuntimeTemplates_async", - "title": "DatasetService listNotebookRuntimeTemplates Sample", - "origin": "API_DEFINITION", - "description": " Lists NotebookRuntimeTemplates in a Location.", - "canonical": true, - "file": "notebook_service.list_notebook_runtime_templates.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 108, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListNotebookRuntimeTemplates", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookService.ListNotebookRuntimeTemplates", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListNotebookRuntimeTemplatesResponse", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookServiceClient" - }, - "method": { - "shortName": "ListNotebookRuntimeTemplates", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookService.ListNotebookRuntimeTemplates", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_NotebookService_DeleteNotebookRuntimeTemplate_async", - "title": "DatasetService deleteNotebookRuntimeTemplate Sample", - "origin": "API_DEFINITION", - "description": " Deletes a NotebookRuntimeTemplate.", - "canonical": true, - "file": "notebook_service.delete_notebook_runtime_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteNotebookRuntimeTemplate", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookService.DeleteNotebookRuntimeTemplate", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookServiceClient" - }, - "method": { - "shortName": "DeleteNotebookRuntimeTemplate", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookService.DeleteNotebookRuntimeTemplate", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_NotebookService_UpdateNotebookRuntimeTemplate_async", - "title": "DatasetService updateNotebookRuntimeTemplate Sample", - "origin": "API_DEFINITION", - "description": " Updates a NotebookRuntimeTemplate.", - "canonical": true, - "file": "notebook_service.update_notebook_runtime_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateNotebookRuntimeTemplate", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookService.UpdateNotebookRuntimeTemplate", - "async": true, - "parameters": [ - { - "name": "notebook_runtime_template", - "type": ".google.cloud.aiplatform.v1beta1.NotebookRuntimeTemplate" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.NotebookRuntimeTemplate", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookServiceClient" - }, - "method": { - "shortName": "UpdateNotebookRuntimeTemplate", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookService.UpdateNotebookRuntimeTemplate", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_NotebookService_AssignNotebookRuntime_async", - "title": "DatasetService assignNotebookRuntime Sample", - "origin": "API_DEFINITION", - "description": " Assigns a NotebookRuntime to a user for a particular Notebook file. This method will either returns an existing assignment or generates a new one.", - "canonical": true, - "file": "notebook_service.assign_notebook_runtime.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AssignNotebookRuntime", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookService.AssignNotebookRuntime", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "notebook_runtime_template", - "type": "TYPE_STRING" - }, - { - "name": "notebook_runtime", - "type": ".google.cloud.aiplatform.v1beta1.NotebookRuntime" - }, - { - "name": "notebook_runtime_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookServiceClient" - }, - "method": { - "shortName": "AssignNotebookRuntime", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookService.AssignNotebookRuntime", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_NotebookService_GetNotebookRuntime_async", - "title": "DatasetService getNotebookRuntime Sample", - "origin": "API_DEFINITION", - "description": " Gets a NotebookRuntime.", - "canonical": true, - "file": "notebook_service.get_notebook_runtime.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetNotebookRuntime", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookService.GetNotebookRuntime", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.NotebookRuntime", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookServiceClient" - }, - "method": { - "shortName": "GetNotebookRuntime", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookService.GetNotebookRuntime", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_NotebookService_ListNotebookRuntimes_async", - "title": "DatasetService listNotebookRuntimes Sample", - "origin": "API_DEFINITION", - "description": " Lists NotebookRuntimes in a Location.", - "canonical": true, - "file": "notebook_service.list_notebook_runtimes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 53, - "end": 122, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListNotebookRuntimes", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookService.ListNotebookRuntimes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListNotebookRuntimesResponse", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookServiceClient" - }, - "method": { - "shortName": "ListNotebookRuntimes", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookService.ListNotebookRuntimes", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_NotebookService_DeleteNotebookRuntime_async", - "title": "DatasetService deleteNotebookRuntime Sample", - "origin": "API_DEFINITION", - "description": " Deletes a NotebookRuntime.", - "canonical": true, - "file": "notebook_service.delete_notebook_runtime.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteNotebookRuntime", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookService.DeleteNotebookRuntime", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookServiceClient" - }, - "method": { - "shortName": "DeleteNotebookRuntime", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookService.DeleteNotebookRuntime", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_NotebookService_UpgradeNotebookRuntime_async", - "title": "DatasetService upgradeNotebookRuntime Sample", - "origin": "API_DEFINITION", - "description": " Upgrades a NotebookRuntime.", - "canonical": true, - "file": "notebook_service.upgrade_notebook_runtime.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpgradeNotebookRuntime", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookService.UpgradeNotebookRuntime", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookServiceClient" - }, - "method": { - "shortName": "UpgradeNotebookRuntime", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookService.UpgradeNotebookRuntime", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_NotebookService_StartNotebookRuntime_async", - "title": "DatasetService startNotebookRuntime Sample", - "origin": "API_DEFINITION", - "description": " Starts a NotebookRuntime.", - "canonical": true, - "file": "notebook_service.start_notebook_runtime.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StartNotebookRuntime", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookService.StartNotebookRuntime", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookServiceClient" - }, - "method": { - "shortName": "StartNotebookRuntime", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookService.StartNotebookRuntime", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_NotebookService_StopNotebookRuntime_async", - "title": "DatasetService stopNotebookRuntime Sample", - "origin": "API_DEFINITION", - "description": " Stops a NotebookRuntime.", - "canonical": true, - "file": "notebook_service.stop_notebook_runtime.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StopNotebookRuntime", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookService.StopNotebookRuntime", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookServiceClient" - }, - "method": { - "shortName": "StopNotebookRuntime", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookService.StopNotebookRuntime", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_NotebookService_CreateNotebookExecutionJob_async", - "title": "DatasetService createNotebookExecutionJob Sample", - "origin": "API_DEFINITION", - "description": " Creates a NotebookExecutionJob.", - "canonical": true, - "file": "notebook_service.create_notebook_execution_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateNotebookExecutionJob", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookService.CreateNotebookExecutionJob", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "notebook_execution_job", - "type": ".google.cloud.aiplatform.v1beta1.NotebookExecutionJob" - }, - { - "name": "notebook_execution_job_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookServiceClient" - }, - "method": { - "shortName": "CreateNotebookExecutionJob", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookService.CreateNotebookExecutionJob", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_NotebookService_GetNotebookExecutionJob_async", - "title": "DatasetService getNotebookExecutionJob Sample", - "origin": "API_DEFINITION", - "description": " Gets a NotebookExecutionJob.", - "canonical": true, - "file": "notebook_service.get_notebook_execution_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetNotebookExecutionJob", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookService.GetNotebookExecutionJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.aiplatform.v1beta1.NotebookExecutionJobView" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.NotebookExecutionJob", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookServiceClient" - }, - "method": { - "shortName": "GetNotebookExecutionJob", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookService.GetNotebookExecutionJob", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_NotebookService_ListNotebookExecutionJobs_async", - "title": "DatasetService listNotebookExecutionJobs Sample", - "origin": "API_DEFINITION", - "description": " Lists NotebookExecutionJobs in a Location.", - "canonical": true, - "file": "notebook_service.list_notebook_execution_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 96, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListNotebookExecutionJobs", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookService.ListNotebookExecutionJobs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.aiplatform.v1beta1.NotebookExecutionJobView" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsResponse", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookServiceClient" - }, - "method": { - "shortName": "ListNotebookExecutionJobs", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookService.ListNotebookExecutionJobs", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_NotebookService_DeleteNotebookExecutionJob_async", - "title": "DatasetService deleteNotebookExecutionJob Sample", - "origin": "API_DEFINITION", - "description": " Deletes a NotebookExecutionJob.", - "canonical": true, - "file": "notebook_service.delete_notebook_execution_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteNotebookExecutionJob", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookService.DeleteNotebookExecutionJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookServiceClient" - }, - "method": { - "shortName": "DeleteNotebookExecutionJob", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookService.DeleteNotebookExecutionJob", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.aiplatform.v1beta1.NotebookService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_OnlineEvaluatorService_CreateOnlineEvaluator_async", - "title": "DatasetService createOnlineEvaluator Sample", - "origin": "API_DEFINITION", - "description": " Creates an OnlineEvaluator in the given project and location.", - "canonical": true, - "file": "online_evaluator_service.create_online_evaluator.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateOnlineEvaluator", - "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService.CreateOnlineEvaluator", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "online_evaluator", - "type": ".google.cloud.aiplatform.v1beta1.OnlineEvaluator" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OnlineEvaluatorServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient" - }, - "method": { - "shortName": "CreateOnlineEvaluator", - "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService.CreateOnlineEvaluator", - "service": { - "shortName": "OnlineEvaluatorService", - "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_OnlineEvaluatorService_GetOnlineEvaluator_async", - "title": "DatasetService getOnlineEvaluator Sample", - "origin": "API_DEFINITION", - "description": " Gets details of an OnlineEvaluator.", - "canonical": true, - "file": "online_evaluator_service.get_online_evaluator.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetOnlineEvaluator", - "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService.GetOnlineEvaluator", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.OnlineEvaluator", - "client": { - "shortName": "OnlineEvaluatorServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient" - }, - "method": { - "shortName": "GetOnlineEvaluator", - "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService.GetOnlineEvaluator", - "service": { - "shortName": "OnlineEvaluatorService", - "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_OnlineEvaluatorService_UpdateOnlineEvaluator_async", - "title": "DatasetService updateOnlineEvaluator Sample", - "origin": "API_DEFINITION", - "description": " Updates the fields of an OnlineEvaluator.", - "canonical": true, - "file": "online_evaluator_service.update_online_evaluator.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateOnlineEvaluator", - "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService.UpdateOnlineEvaluator", - "async": true, - "parameters": [ - { - "name": "online_evaluator", - "type": ".google.cloud.aiplatform.v1beta1.OnlineEvaluator" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OnlineEvaluatorServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient" - }, - "method": { - "shortName": "UpdateOnlineEvaluator", - "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService.UpdateOnlineEvaluator", - "service": { - "shortName": "OnlineEvaluatorService", - "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_OnlineEvaluatorService_DeleteOnlineEvaluator_async", - "title": "DatasetService deleteOnlineEvaluator Sample", - "origin": "API_DEFINITION", - "description": " Deletes an OnlineEvaluator.", - "canonical": true, - "file": "online_evaluator_service.delete_online_evaluator.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteOnlineEvaluator", - "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService.DeleteOnlineEvaluator", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OnlineEvaluatorServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient" - }, - "method": { - "shortName": "DeleteOnlineEvaluator", - "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService.DeleteOnlineEvaluator", - "service": { - "shortName": "OnlineEvaluatorService", - "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_OnlineEvaluatorService_ListOnlineEvaluators_async", - "title": "DatasetService listOnlineEvaluators Sample", - "origin": "API_DEFINITION", - "description": " Lists the OnlineEvaluators for the given project and location.", - "canonical": true, - "file": "online_evaluator_service.list_online_evaluators.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 89, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListOnlineEvaluators", - "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService.ListOnlineEvaluators", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse", - "client": { - "shortName": "OnlineEvaluatorServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient" - }, - "method": { - "shortName": "ListOnlineEvaluators", - "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService.ListOnlineEvaluators", - "service": { - "shortName": "OnlineEvaluatorService", - "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_OnlineEvaluatorService_ActivateOnlineEvaluator_async", - "title": "DatasetService activateOnlineEvaluator Sample", - "origin": "API_DEFINITION", - "description": " Activates an OnlineEvaluator.", - "canonical": true, - "file": "online_evaluator_service.activate_online_evaluator.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ActivateOnlineEvaluator", - "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService.ActivateOnlineEvaluator", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OnlineEvaluatorServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient" - }, - "method": { - "shortName": "ActivateOnlineEvaluator", - "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService.ActivateOnlineEvaluator", - "service": { - "shortName": "OnlineEvaluatorService", - "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_OnlineEvaluatorService_SuspendOnlineEvaluator_async", - "title": "DatasetService suspendOnlineEvaluator Sample", - "origin": "API_DEFINITION", - "description": " Suspends an OnlineEvaluator. When an OnlineEvaluator is suspended, it won't run any evaluations until it is activated again.", - "canonical": true, - "file": "online_evaluator_service.suspend_online_evaluator.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SuspendOnlineEvaluator", - "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService.SuspendOnlineEvaluator", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OnlineEvaluatorServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient" - }, - "method": { - "shortName": "SuspendOnlineEvaluator", - "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService.SuspendOnlineEvaluator", - "service": { - "shortName": "OnlineEvaluatorService", - "fullName": "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_PersistentResourceService_CreatePersistentResource_async", - "title": "DatasetService createPersistentResource Sample", - "origin": "API_DEFINITION", - "description": " Creates a PersistentResource.", - "canonical": true, - "file": "persistent_resource_service.create_persistent_resource.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreatePersistentResource", - "fullName": "google.cloud.aiplatform.v1beta1.PersistentResourceService.CreatePersistentResource", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "persistent_resource", - "type": ".google.cloud.aiplatform.v1beta1.PersistentResource" - }, - { - "name": "persistent_resource_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "PersistentResourceServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.PersistentResourceServiceClient" - }, - "method": { - "shortName": "CreatePersistentResource", - "fullName": "google.cloud.aiplatform.v1beta1.PersistentResourceService.CreatePersistentResource", - "service": { - "shortName": "PersistentResourceService", - "fullName": "google.cloud.aiplatform.v1beta1.PersistentResourceService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_PersistentResourceService_GetPersistentResource_async", - "title": "DatasetService getPersistentResource Sample", - "origin": "API_DEFINITION", - "description": " Gets a PersistentResource.", - "canonical": true, - "file": "persistent_resource_service.get_persistent_resource.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPersistentResource", - "fullName": "google.cloud.aiplatform.v1beta1.PersistentResourceService.GetPersistentResource", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.PersistentResource", - "client": { - "shortName": "PersistentResourceServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.PersistentResourceServiceClient" - }, - "method": { - "shortName": "GetPersistentResource", - "fullName": "google.cloud.aiplatform.v1beta1.PersistentResourceService.GetPersistentResource", - "service": { - "shortName": "PersistentResourceService", - "fullName": "google.cloud.aiplatform.v1beta1.PersistentResourceService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_PersistentResourceService_ListPersistentResources_async", - "title": "DatasetService listPersistentResources Sample", - "origin": "API_DEFINITION", - "description": " Lists PersistentResources in a Location.", - "canonical": true, - "file": "persistent_resource_service.list_persistent_resources.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPersistentResources", - "fullName": "google.cloud.aiplatform.v1beta1.PersistentResourceService.ListPersistentResources", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListPersistentResourcesResponse", - "client": { - "shortName": "PersistentResourceServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.PersistentResourceServiceClient" - }, - "method": { - "shortName": "ListPersistentResources", - "fullName": "google.cloud.aiplatform.v1beta1.PersistentResourceService.ListPersistentResources", - "service": { - "shortName": "PersistentResourceService", - "fullName": "google.cloud.aiplatform.v1beta1.PersistentResourceService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_PersistentResourceService_DeletePersistentResource_async", - "title": "DatasetService deletePersistentResource Sample", - "origin": "API_DEFINITION", - "description": " Deletes a PersistentResource.", - "canonical": true, - "file": "persistent_resource_service.delete_persistent_resource.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePersistentResource", - "fullName": "google.cloud.aiplatform.v1beta1.PersistentResourceService.DeletePersistentResource", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "PersistentResourceServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.PersistentResourceServiceClient" - }, - "method": { - "shortName": "DeletePersistentResource", - "fullName": "google.cloud.aiplatform.v1beta1.PersistentResourceService.DeletePersistentResource", - "service": { - "shortName": "PersistentResourceService", - "fullName": "google.cloud.aiplatform.v1beta1.PersistentResourceService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_PersistentResourceService_UpdatePersistentResource_async", - "title": "DatasetService updatePersistentResource Sample", - "origin": "API_DEFINITION", - "description": " Updates a PersistentResource.", - "canonical": true, - "file": "persistent_resource_service.update_persistent_resource.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdatePersistentResource", - "fullName": "google.cloud.aiplatform.v1beta1.PersistentResourceService.UpdatePersistentResource", - "async": true, - "parameters": [ - { - "name": "persistent_resource", - "type": ".google.cloud.aiplatform.v1beta1.PersistentResource" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "PersistentResourceServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.PersistentResourceServiceClient" - }, - "method": { - "shortName": "UpdatePersistentResource", - "fullName": "google.cloud.aiplatform.v1beta1.PersistentResourceService.UpdatePersistentResource", - "service": { - "shortName": "PersistentResourceService", - "fullName": "google.cloud.aiplatform.v1beta1.PersistentResourceService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_PersistentResourceService_RebootPersistentResource_async", - "title": "DatasetService rebootPersistentResource Sample", - "origin": "API_DEFINITION", - "description": " Reboots a PersistentResource.", - "canonical": true, - "file": "persistent_resource_service.reboot_persistent_resource.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RebootPersistentResource", - "fullName": "google.cloud.aiplatform.v1beta1.PersistentResourceService.RebootPersistentResource", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "PersistentResourceServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.PersistentResourceServiceClient" - }, - "method": { - "shortName": "RebootPersistentResource", - "fullName": "google.cloud.aiplatform.v1beta1.PersistentResourceService.RebootPersistentResource", - "service": { - "shortName": "PersistentResourceService", - "fullName": "google.cloud.aiplatform.v1beta1.PersistentResourceService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_PipelineService_CreateTrainingPipeline_async", - "title": "DatasetService createTrainingPipeline Sample", - "origin": "API_DEFINITION", - "description": " Creates a TrainingPipeline. A created TrainingPipeline right away will be attempted to be run.", - "canonical": true, - "file": "pipeline_service.create_training_pipeline.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTrainingPipeline", - "fullName": "google.cloud.aiplatform.v1beta1.PipelineService.CreateTrainingPipeline", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "training_pipeline", - "type": ".google.cloud.aiplatform.v1beta1.TrainingPipeline" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.TrainingPipeline", - "client": { - "shortName": "PipelineServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.PipelineServiceClient" - }, - "method": { - "shortName": "CreateTrainingPipeline", - "fullName": "google.cloud.aiplatform.v1beta1.PipelineService.CreateTrainingPipeline", - "service": { - "shortName": "PipelineService", - "fullName": "google.cloud.aiplatform.v1beta1.PipelineService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_PipelineService_GetTrainingPipeline_async", - "title": "DatasetService getTrainingPipeline Sample", - "origin": "API_DEFINITION", - "description": " Gets a TrainingPipeline.", - "canonical": true, - "file": "pipeline_service.get_training_pipeline.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTrainingPipeline", - "fullName": "google.cloud.aiplatform.v1beta1.PipelineService.GetTrainingPipeline", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.TrainingPipeline", - "client": { - "shortName": "PipelineServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.PipelineServiceClient" - }, - "method": { - "shortName": "GetTrainingPipeline", - "fullName": "google.cloud.aiplatform.v1beta1.PipelineService.GetTrainingPipeline", - "service": { - "shortName": "PipelineService", - "fullName": "google.cloud.aiplatform.v1beta1.PipelineService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_PipelineService_ListTrainingPipelines_async", - "title": "DatasetService listTrainingPipelines Sample", - "origin": "API_DEFINITION", - "description": " Lists TrainingPipelines in a Location.", - "canonical": true, - "file": "pipeline_service.list_training_pipelines.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 92, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTrainingPipelines", - "fullName": "google.cloud.aiplatform.v1beta1.PipelineService.ListTrainingPipelines", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListTrainingPipelinesResponse", - "client": { - "shortName": "PipelineServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.PipelineServiceClient" - }, - "method": { - "shortName": "ListTrainingPipelines", - "fullName": "google.cloud.aiplatform.v1beta1.PipelineService.ListTrainingPipelines", - "service": { - "shortName": "PipelineService", - "fullName": "google.cloud.aiplatform.v1beta1.PipelineService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_PipelineService_DeleteTrainingPipeline_async", - "title": "DatasetService deleteTrainingPipeline Sample", - "origin": "API_DEFINITION", - "description": " Deletes a TrainingPipeline.", - "canonical": true, - "file": "pipeline_service.delete_training_pipeline.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTrainingPipeline", - "fullName": "google.cloud.aiplatform.v1beta1.PipelineService.DeleteTrainingPipeline", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "PipelineServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.PipelineServiceClient" - }, - "method": { - "shortName": "DeleteTrainingPipeline", - "fullName": "google.cloud.aiplatform.v1beta1.PipelineService.DeleteTrainingPipeline", - "service": { - "shortName": "PipelineService", - "fullName": "google.cloud.aiplatform.v1beta1.PipelineService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_PipelineService_CancelTrainingPipeline_async", - "title": "DatasetService cancelTrainingPipeline Sample", - "origin": "API_DEFINITION", - "description": " Cancels a TrainingPipeline. Starts asynchronous cancellation on the TrainingPipeline. The server makes a best effort to cancel the pipeline, but success is not guaranteed. Clients can use [PipelineService.GetTrainingPipeline][google.cloud.aiplatform.v1beta1.PipelineService.GetTrainingPipeline] or other methods to check whether the cancellation succeeded or whether the pipeline completed despite cancellation. On successful cancellation, the TrainingPipeline is not deleted; instead it becomes a pipeline with a [TrainingPipeline.error][google.cloud.aiplatform.v1beta1.TrainingPipeline.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`, and [TrainingPipeline.state][google.cloud.aiplatform.v1beta1.TrainingPipeline.state] is set to `CANCELLED`.", - "canonical": true, - "file": "pipeline_service.cancel_training_pipeline.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CancelTrainingPipeline", - "fullName": "google.cloud.aiplatform.v1beta1.PipelineService.CancelTrainingPipeline", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "PipelineServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.PipelineServiceClient" - }, - "method": { - "shortName": "CancelTrainingPipeline", - "fullName": "google.cloud.aiplatform.v1beta1.PipelineService.CancelTrainingPipeline", - "service": { - "shortName": "PipelineService", - "fullName": "google.cloud.aiplatform.v1beta1.PipelineService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_PipelineService_CreatePipelineJob_async", - "title": "DatasetService createPipelineJob Sample", - "origin": "API_DEFINITION", - "description": " Creates a PipelineJob. A PipelineJob will run immediately when created.", - "canonical": true, - "file": "pipeline_service.create_pipeline_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreatePipelineJob", - "fullName": "google.cloud.aiplatform.v1beta1.PipelineService.CreatePipelineJob", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "pipeline_job", - "type": ".google.cloud.aiplatform.v1beta1.PipelineJob" - }, - { - "name": "pipeline_job_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.PipelineJob", - "client": { - "shortName": "PipelineServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.PipelineServiceClient" - }, - "method": { - "shortName": "CreatePipelineJob", - "fullName": "google.cloud.aiplatform.v1beta1.PipelineService.CreatePipelineJob", - "service": { - "shortName": "PipelineService", - "fullName": "google.cloud.aiplatform.v1beta1.PipelineService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_PipelineService_GetPipelineJob_async", - "title": "DatasetService getPipelineJob Sample", - "origin": "API_DEFINITION", - "description": " Gets a PipelineJob.", - "canonical": true, - "file": "pipeline_service.get_pipeline_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPipelineJob", - "fullName": "google.cloud.aiplatform.v1beta1.PipelineService.GetPipelineJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.PipelineJob", - "client": { - "shortName": "PipelineServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.PipelineServiceClient" - }, - "method": { - "shortName": "GetPipelineJob", - "fullName": "google.cloud.aiplatform.v1beta1.PipelineService.GetPipelineJob", - "service": { - "shortName": "PipelineService", - "fullName": "google.cloud.aiplatform.v1beta1.PipelineService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_PipelineService_ListPipelineJobs_async", - "title": "DatasetService listPipelineJobs Sample", - "origin": "API_DEFINITION", - "description": " Lists PipelineJobs in a Location.", - "canonical": true, - "file": "pipeline_service.list_pipeline_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 120, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPipelineJobs", - "fullName": "google.cloud.aiplatform.v1beta1.PipelineService.ListPipelineJobs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListPipelineJobsResponse", - "client": { - "shortName": "PipelineServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.PipelineServiceClient" - }, - "method": { - "shortName": "ListPipelineJobs", - "fullName": "google.cloud.aiplatform.v1beta1.PipelineService.ListPipelineJobs", - "service": { - "shortName": "PipelineService", - "fullName": "google.cloud.aiplatform.v1beta1.PipelineService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_PipelineService_DeletePipelineJob_async", - "title": "DatasetService deletePipelineJob Sample", - "origin": "API_DEFINITION", - "description": " Deletes a PipelineJob.", - "canonical": true, - "file": "pipeline_service.delete_pipeline_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePipelineJob", - "fullName": "google.cloud.aiplatform.v1beta1.PipelineService.DeletePipelineJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "PipelineServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.PipelineServiceClient" - }, - "method": { - "shortName": "DeletePipelineJob", - "fullName": "google.cloud.aiplatform.v1beta1.PipelineService.DeletePipelineJob", - "service": { - "shortName": "PipelineService", - "fullName": "google.cloud.aiplatform.v1beta1.PipelineService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_PipelineService_BatchDeletePipelineJobs_async", - "title": "DatasetService batchDeletePipelineJobs Sample", - "origin": "API_DEFINITION", - "description": " Batch deletes PipelineJobs The Operation is atomic. If it fails, none of the PipelineJobs are deleted. If it succeeds, all of the PipelineJobs are deleted.", - "canonical": true, - "file": "pipeline_service.batch_delete_pipeline_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchDeletePipelineJobs", - "fullName": "google.cloud.aiplatform.v1beta1.PipelineService.BatchDeletePipelineJobs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "names", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "PipelineServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.PipelineServiceClient" - }, - "method": { - "shortName": "BatchDeletePipelineJobs", - "fullName": "google.cloud.aiplatform.v1beta1.PipelineService.BatchDeletePipelineJobs", - "service": { - "shortName": "PipelineService", - "fullName": "google.cloud.aiplatform.v1beta1.PipelineService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_PipelineService_CancelPipelineJob_async", - "title": "DatasetService cancelPipelineJob Sample", - "origin": "API_DEFINITION", - "description": " Cancels a PipelineJob. Starts asynchronous cancellation on the PipelineJob. The server makes a best effort to cancel the pipeline, but success is not guaranteed. Clients can use [PipelineService.GetPipelineJob][google.cloud.aiplatform.v1beta1.PipelineService.GetPipelineJob] or other methods to check whether the cancellation succeeded or whether the pipeline completed despite cancellation. On successful cancellation, the PipelineJob is not deleted; instead it becomes a pipeline with a [PipelineJob.error][google.cloud.aiplatform.v1beta1.PipelineJob.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`, and [PipelineJob.state][google.cloud.aiplatform.v1beta1.PipelineJob.state] is set to `CANCELLED`.", - "canonical": true, - "file": "pipeline_service.cancel_pipeline_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CancelPipelineJob", - "fullName": "google.cloud.aiplatform.v1beta1.PipelineService.CancelPipelineJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "PipelineServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.PipelineServiceClient" - }, - "method": { - "shortName": "CancelPipelineJob", - "fullName": "google.cloud.aiplatform.v1beta1.PipelineService.CancelPipelineJob", - "service": { - "shortName": "PipelineService", - "fullName": "google.cloud.aiplatform.v1beta1.PipelineService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_PipelineService_BatchCancelPipelineJobs_async", - "title": "DatasetService batchCancelPipelineJobs Sample", - "origin": "API_DEFINITION", - "description": " Batch cancel PipelineJobs. Firstly the server will check if all the jobs are in non-terminal states, and skip the jobs that are already terminated. If the operation failed, none of the pipeline jobs are cancelled. The server will poll the states of all the pipeline jobs periodically to check the cancellation status. This operation will return an LRO.", - "canonical": true, - "file": "pipeline_service.batch_cancel_pipeline_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCancelPipelineJobs", - "fullName": "google.cloud.aiplatform.v1beta1.PipelineService.BatchCancelPipelineJobs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "names", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "PipelineServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.PipelineServiceClient" - }, - "method": { - "shortName": "BatchCancelPipelineJobs", - "fullName": "google.cloud.aiplatform.v1beta1.PipelineService.BatchCancelPipelineJobs", - "service": { - "shortName": "PipelineService", - "fullName": "google.cloud.aiplatform.v1beta1.PipelineService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_PredictionService_Predict_async", - "title": "DatasetService predict Sample", - "origin": "API_DEFINITION", - "description": " Perform an online prediction.", - "canonical": true, - "file": "prediction_service.predict.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Predict", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionService.Predict", - "async": true, - "parameters": [ - { - "name": "endpoint", - "type": "TYPE_STRING" - }, - { - "name": "instances", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "parameters", - "type": ".google.protobuf.Value" - }, - { - "name": "labels", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.PredictResponse", - "client": { - "shortName": "PredictionServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionServiceClient" - }, - "method": { - "shortName": "Predict", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionService.Predict", - "service": { - "shortName": "PredictionService", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_PredictionService_RawPredict_async", - "title": "DatasetService rawPredict Sample", - "origin": "API_DEFINITION", - "description": " Perform an online prediction with an arbitrary HTTP payload. The response includes the following HTTP headers: * `X-Vertex-AI-Endpoint-Id`: ID of the [Endpoint][google.cloud.aiplatform.v1beta1.Endpoint] that served this prediction. * `X-Vertex-AI-Deployed-Model-Id`: ID of the Endpoint's [DeployedModel][google.cloud.aiplatform.v1beta1.DeployedModel] that served this prediction.", - "canonical": true, - "file": "prediction_service.raw_predict.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RawPredict", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionService.RawPredict", - "async": true, - "parameters": [ - { - "name": "endpoint", - "type": "TYPE_STRING" - }, - { - "name": "http_body", - "type": ".google.api.HttpBody" - } - ], - "resultType": ".google.api.HttpBody", - "client": { - "shortName": "PredictionServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionServiceClient" - }, - "method": { - "shortName": "RawPredict", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionService.RawPredict", - "service": { - "shortName": "PredictionService", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_PredictionService_StreamRawPredict_async", - "title": "DatasetService streamRawPredict Sample", - "origin": "API_DEFINITION", - "description": " Perform a streaming online prediction with an arbitrary HTTP payload.", - "canonical": true, - "file": "prediction_service.stream_raw_predict.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StreamRawPredict", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionService.StreamRawPredict", - "async": true, - "parameters": [ - { - "name": "endpoint", - "type": "TYPE_STRING" - }, - { - "name": "http_body", - "type": ".google.api.HttpBody" - } - ], - "resultType": ".google.api.HttpBody", - "client": { - "shortName": "PredictionServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionServiceClient" - }, - "method": { - "shortName": "StreamRawPredict", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionService.StreamRawPredict", - "service": { - "shortName": "PredictionService", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_PredictionService_DirectPredict_async", - "title": "DatasetService directPredict Sample", - "origin": "API_DEFINITION", - "description": " Perform an unary online prediction request to a gRPC model server for Vertex first-party products and frameworks.", - "canonical": true, - "file": "prediction_service.direct_predict.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DirectPredict", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionService.DirectPredict", - "async": true, - "parameters": [ - { - "name": "endpoint", - "type": "TYPE_STRING" - }, - { - "name": "inputs", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "parameters", - "type": ".google.cloud.aiplatform.v1beta1.Tensor" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.DirectPredictResponse", - "client": { - "shortName": "PredictionServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionServiceClient" - }, - "method": { - "shortName": "DirectPredict", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionService.DirectPredict", - "service": { - "shortName": "PredictionService", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_PredictionService_DirectRawPredict_async", - "title": "DatasetService directRawPredict Sample", - "origin": "API_DEFINITION", - "description": " Perform an unary online prediction request to a gRPC model server for custom containers.", - "canonical": true, - "file": "prediction_service.direct_raw_predict.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DirectRawPredict", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionService.DirectRawPredict", - "async": true, - "parameters": [ - { - "name": "endpoint", - "type": "TYPE_STRING" - }, - { - "name": "method_name", - "type": "TYPE_STRING" - }, - { - "name": "input", - "type": "TYPE_BYTES" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.DirectRawPredictResponse", - "client": { - "shortName": "PredictionServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionServiceClient" - }, - "method": { - "shortName": "DirectRawPredict", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionService.DirectRawPredict", - "service": { - "shortName": "PredictionService", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_PredictionService_StreamDirectPredict_async", - "title": "DatasetService streamDirectPredict Sample", - "origin": "API_DEFINITION", - "description": " Perform a streaming online prediction request to a gRPC model server for Vertex first-party products and frameworks.", - "canonical": true, - "file": "prediction_service.stream_direct_predict.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StreamDirectPredict", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionService.StreamDirectPredict", - "async": true, - "parameters": [ - { - "name": "endpoint", - "type": "TYPE_STRING" - }, - { - "name": "inputs", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "parameters", - "type": ".google.cloud.aiplatform.v1beta1.Tensor" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.StreamDirectPredictResponse", - "client": { - "shortName": "PredictionServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionServiceClient" - }, - "method": { - "shortName": "StreamDirectPredict", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionService.StreamDirectPredict", - "service": { - "shortName": "PredictionService", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_PredictionService_StreamDirectRawPredict_async", - "title": "DatasetService streamDirectRawPredict Sample", - "origin": "API_DEFINITION", - "description": " Perform a streaming online prediction request to a gRPC model server for custom containers.", - "canonical": true, - "file": "prediction_service.stream_direct_raw_predict.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StreamDirectRawPredict", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionService.StreamDirectRawPredict", - "async": true, - "parameters": [ - { - "name": "endpoint", - "type": "TYPE_STRING" - }, - { - "name": "method_name", - "type": "TYPE_STRING" - }, - { - "name": "input", - "type": "TYPE_BYTES" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.StreamDirectRawPredictResponse", - "client": { - "shortName": "PredictionServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionServiceClient" - }, - "method": { - "shortName": "StreamDirectRawPredict", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionService.StreamDirectRawPredict", - "service": { - "shortName": "PredictionService", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_PredictionService_StreamingPredict_async", - "title": "DatasetService streamingPredict Sample", - "origin": "API_DEFINITION", - "description": " Perform a streaming online prediction request for Vertex first-party products and frameworks.", - "canonical": true, - "file": "prediction_service.streaming_predict.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StreamingPredict", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionService.StreamingPredict", - "async": true, - "parameters": [ - { - "name": "endpoint", - "type": "TYPE_STRING" - }, - { - "name": "inputs", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "parameters", - "type": ".google.cloud.aiplatform.v1beta1.Tensor" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.StreamingPredictResponse", - "client": { - "shortName": "PredictionServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionServiceClient" - }, - "method": { - "shortName": "StreamingPredict", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionService.StreamingPredict", - "service": { - "shortName": "PredictionService", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_PredictionService_ServerStreamingPredict_async", - "title": "DatasetService serverStreamingPredict Sample", - "origin": "API_DEFINITION", - "description": " Perform a server-side streaming online prediction request for Vertex LLM streaming.", - "canonical": true, - "file": "prediction_service.server_streaming_predict.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ServerStreamingPredict", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionService.ServerStreamingPredict", - "async": true, - "parameters": [ - { - "name": "endpoint", - "type": "TYPE_STRING" - }, - { - "name": "inputs", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "parameters", - "type": ".google.cloud.aiplatform.v1beta1.Tensor" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.StreamingPredictResponse", - "client": { - "shortName": "PredictionServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionServiceClient" - }, - "method": { - "shortName": "ServerStreamingPredict", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionService.ServerStreamingPredict", - "service": { - "shortName": "PredictionService", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_PredictionService_StreamingRawPredict_async", - "title": "DatasetService streamingRawPredict Sample", - "origin": "API_DEFINITION", - "description": " Perform a streaming online prediction request through gRPC.", - "canonical": true, - "file": "prediction_service.streaming_raw_predict.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StreamingRawPredict", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionService.StreamingRawPredict", - "async": true, - "parameters": [ - { - "name": "endpoint", - "type": "TYPE_STRING" - }, - { - "name": "method_name", - "type": "TYPE_STRING" - }, - { - "name": "input", - "type": "TYPE_BYTES" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.StreamingRawPredictResponse", - "client": { - "shortName": "PredictionServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionServiceClient" - }, - "method": { - "shortName": "StreamingRawPredict", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionService.StreamingRawPredict", - "service": { - "shortName": "PredictionService", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_PredictionService_Explain_async", - "title": "DatasetService explain Sample", - "origin": "API_DEFINITION", - "description": " Perform an online explanation. If [deployed_model_id][google.cloud.aiplatform.v1beta1.ExplainRequest.deployed_model_id] is specified, the corresponding DeployModel must have [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] populated. If [deployed_model_id][google.cloud.aiplatform.v1beta1.ExplainRequest.deployed_model_id] is not specified, all DeployedModels must have [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] populated.", - "canonical": true, - "file": "prediction_service.explain.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 103, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Explain", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionService.Explain", - "async": true, - "parameters": [ - { - "name": "endpoint", - "type": "TYPE_STRING" - }, - { - "name": "instances", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "parameters", - "type": ".google.protobuf.Value" - }, - { - "name": "explanation_spec_override", - "type": ".google.cloud.aiplatform.v1beta1.ExplanationSpecOverride" - }, - { - "name": "concurrent_explanation_spec_override", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "deployed_model_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ExplainResponse", - "client": { - "shortName": "PredictionServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionServiceClient" - }, - "method": { - "shortName": "Explain", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionService.Explain", - "service": { - "shortName": "PredictionService", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_PredictionService_CountTokens_async", - "title": "DatasetService countTokens Sample", - "origin": "API_DEFINITION", - "description": " Perform a token counting.", - "canonical": true, - "file": "prediction_service.count_tokens.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 89, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CountTokens", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionService.CountTokens", - "async": true, - "parameters": [ - { - "name": "endpoint", - "type": "TYPE_STRING" - }, - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "instances", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "contents", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "system_instruction", - "type": ".google.cloud.aiplatform.v1beta1.Content" - }, - { - "name": "tools", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "generation_config", - "type": ".google.cloud.aiplatform.v1beta1.GenerationConfig" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.CountTokensResponse", - "client": { - "shortName": "PredictionServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionServiceClient" - }, - "method": { - "shortName": "CountTokens", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionService.CountTokens", - "service": { - "shortName": "PredictionService", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_PredictionService_GenerateContent_async", - "title": "DatasetService generateContent Sample", - "origin": "API_DEFINITION", - "description": " Generate content with multimodal inputs.", - "canonical": true, - "file": "prediction_service.generate_content.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 116, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateContent", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionService.GenerateContent", - "async": true, - "parameters": [ - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "contents", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "system_instruction", - "type": ".google.cloud.aiplatform.v1beta1.Content" - }, - { - "name": "cached_content", - "type": "TYPE_STRING" - }, - { - "name": "tools", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "tool_config", - "type": ".google.cloud.aiplatform.v1beta1.ToolConfig" - }, - { - "name": "labels", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "safety_settings", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "model_armor_config", - "type": ".google.cloud.aiplatform.v1beta1.ModelArmorConfig" - }, - { - "name": "generation_config", - "type": ".google.cloud.aiplatform.v1beta1.GenerationConfig" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.GenerateContentResponse", - "client": { - "shortName": "PredictionServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionServiceClient" - }, - "method": { - "shortName": "GenerateContent", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionService.GenerateContent", - "service": { - "shortName": "PredictionService", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_PredictionService_StreamGenerateContent_async", - "title": "DatasetService streamGenerateContent Sample", - "origin": "API_DEFINITION", - "description": " Generate content with multimodal inputs with streaming support.", - "canonical": true, - "file": "prediction_service.stream_generate_content.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 118, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StreamGenerateContent", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionService.StreamGenerateContent", - "async": true, - "parameters": [ - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "contents", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "system_instruction", - "type": ".google.cloud.aiplatform.v1beta1.Content" - }, - { - "name": "cached_content", - "type": "TYPE_STRING" - }, - { - "name": "tools", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "tool_config", - "type": ".google.cloud.aiplatform.v1beta1.ToolConfig" - }, - { - "name": "labels", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "safety_settings", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "model_armor_config", - "type": ".google.cloud.aiplatform.v1beta1.ModelArmorConfig" - }, - { - "name": "generation_config", - "type": ".google.cloud.aiplatform.v1beta1.GenerationConfig" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.GenerateContentResponse", - "client": { - "shortName": "PredictionServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionServiceClient" - }, - "method": { - "shortName": "StreamGenerateContent", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionService.StreamGenerateContent", - "service": { - "shortName": "PredictionService", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_PredictionService_ChatCompletions_async", - "title": "DatasetService chatCompletions Sample", - "origin": "API_DEFINITION", - "description": " Exposes an OpenAI-compatible endpoint for chat completions.", - "canonical": true, - "file": "prediction_service.chat_completions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ChatCompletions", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionService.ChatCompletions", - "async": true, - "parameters": [ - { - "name": "endpoint", - "type": "TYPE_STRING" - }, - { - "name": "http_body", - "type": ".google.api.HttpBody" - } - ], - "resultType": ".google.api.HttpBody", - "client": { - "shortName": "PredictionServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionServiceClient" - }, - "method": { - "shortName": "ChatCompletions", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionService.ChatCompletions", - "service": { - "shortName": "PredictionService", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_PredictionService_EmbedContent_async", - "title": "DatasetService embedContent Sample", - "origin": "API_DEFINITION", - "description": " Embed content with multimodal inputs.", - "canonical": true, - "file": "prediction_service.embed_content.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "EmbedContent", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionService.EmbedContent", - "async": true, - "parameters": [ - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "content", - "type": ".google.cloud.aiplatform.v1beta1.Content" - }, - { - "name": "title", - "type": "TYPE_STRING" - }, - { - "name": "task_type", - "type": ".google.cloud.aiplatform.v1beta1.EmbedContentRequest.EmbeddingTaskType" - }, - { - "name": "output_dimensionality", - "type": "TYPE_INT32" - }, - { - "name": "auto_truncate", - "type": "TYPE_BOOL" - }, - { - "name": "embed_content_config", - "type": ".google.cloud.aiplatform.v1beta1.EmbedContentRequest.EmbedContentConfig" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.EmbedContentResponse", - "client": { - "shortName": "PredictionServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionServiceClient" - }, - "method": { - "shortName": "EmbedContent", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionService.EmbedContent", - "service": { - "shortName": "PredictionService", - "fullName": "google.cloud.aiplatform.v1beta1.PredictionService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ReasoningEngineExecutionService_QueryReasoningEngine_async", - "title": "DatasetService queryReasoningEngine Sample", - "origin": "API_DEFINITION", - "description": " Queries using a reasoning engine.", - "canonical": true, - "file": "reasoning_engine_execution_service.query_reasoning_engine.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryReasoningEngine", - "fullName": "google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionService.QueryReasoningEngine", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "input", - "type": ".google.protobuf.Struct" - }, - { - "name": "class_method", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.QueryReasoningEngineResponse", - "client": { - "shortName": "ReasoningEngineExecutionServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionServiceClient" - }, - "method": { - "shortName": "QueryReasoningEngine", - "fullName": "google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionService.QueryReasoningEngine", - "service": { - "shortName": "ReasoningEngineExecutionService", - "fullName": "google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ReasoningEngineExecutionService_StreamQueryReasoningEngine_async", - "title": "DatasetService streamQueryReasoningEngine Sample", - "origin": "API_DEFINITION", - "description": " Streams queries using a reasoning engine.", - "canonical": true, - "file": "reasoning_engine_execution_service.stream_query_reasoning_engine.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StreamQueryReasoningEngine", - "fullName": "google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionService.StreamQueryReasoningEngine", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "input", - "type": ".google.protobuf.Struct" - }, - { - "name": "class_method", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.api.HttpBody", - "client": { - "shortName": "ReasoningEngineExecutionServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionServiceClient" - }, - "method": { - "shortName": "StreamQueryReasoningEngine", - "fullName": "google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionService.StreamQueryReasoningEngine", - "service": { - "shortName": "ReasoningEngineExecutionService", - "fullName": "google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ReasoningEngineExecutionService_AsyncQueryReasoningEngine_async", - "title": "DatasetService asyncQueryReasoningEngine Sample", - "origin": "API_DEFINITION", - "description": " Async query using a reasoning engine.", - "canonical": true, - "file": "reasoning_engine_execution_service.async_query_reasoning_engine.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AsyncQueryReasoningEngine", - "fullName": "google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionService.AsyncQueryReasoningEngine", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "input_gcs_uri", - "type": "TYPE_STRING" - }, - { - "name": "output_gcs_uri", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ReasoningEngineExecutionServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionServiceClient" - }, - "method": { - "shortName": "AsyncQueryReasoningEngine", - "fullName": "google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionService.AsyncQueryReasoningEngine", - "service": { - "shortName": "ReasoningEngineExecutionService", - "fullName": "google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ReasoningEngineExecutionService_CancelAsyncQueryReasoningEngine_async", - "title": "DatasetService cancelAsyncQueryReasoningEngine Sample", - "origin": "API_DEFINITION", - "description": " Cancels an AsyncQueryReasoningEngine operation.", - "canonical": true, - "file": "reasoning_engine_execution_service.cancel_async_query_reasoning_engine.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CancelAsyncQueryReasoningEngine", - "fullName": "google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionService.CancelAsyncQueryReasoningEngine", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "operation_name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.CancelAsyncQueryReasoningEngineResponse", - "client": { - "shortName": "ReasoningEngineExecutionServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionServiceClient" - }, - "method": { - "shortName": "CancelAsyncQueryReasoningEngine", - "fullName": "google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionService.CancelAsyncQueryReasoningEngine", - "service": { - "shortName": "ReasoningEngineExecutionService", - "fullName": "google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ReasoningEngineRuntimeRevisionService_GetReasoningEngineRuntimeRevision_async", - "title": "DatasetService getReasoningEngineRuntimeRevision Sample", - "origin": "API_DEFINITION", - "description": " Gets a reasoning engine runtime revision.", - "canonical": true, - "file": "reasoning_engine_runtime_revision_service.get_reasoning_engine_runtime_revision.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetReasoningEngineRuntimeRevision", - "fullName": "google.cloud.aiplatform.v1beta1.ReasoningEngineRuntimeRevisionService.GetReasoningEngineRuntimeRevision", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ReasoningEngineRuntimeRevision", - "client": { - "shortName": "ReasoningEngineRuntimeRevisionServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ReasoningEngineRuntimeRevisionServiceClient" - }, - "method": { - "shortName": "GetReasoningEngineRuntimeRevision", - "fullName": "google.cloud.aiplatform.v1beta1.ReasoningEngineRuntimeRevisionService.GetReasoningEngineRuntimeRevision", - "service": { - "shortName": "ReasoningEngineRuntimeRevisionService", - "fullName": "google.cloud.aiplatform.v1beta1.ReasoningEngineRuntimeRevisionService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ReasoningEngineRuntimeRevisionService_ListReasoningEngineRuntimeRevisions_async", - "title": "DatasetService listReasoningEngineRuntimeRevisions Sample", - "origin": "API_DEFINITION", - "description": " Lists runtime revisions in a reasoning engine.", - "canonical": true, - "file": "reasoning_engine_runtime_revision_service.list_reasoning_engine_runtime_revisions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListReasoningEngineRuntimeRevisions", - "fullName": "google.cloud.aiplatform.v1beta1.ReasoningEngineRuntimeRevisionService.ListReasoningEngineRuntimeRevisions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListReasoningEngineRuntimeRevisionsResponse", - "client": { - "shortName": "ReasoningEngineRuntimeRevisionServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ReasoningEngineRuntimeRevisionServiceClient" - }, - "method": { - "shortName": "ListReasoningEngineRuntimeRevisions", - "fullName": "google.cloud.aiplatform.v1beta1.ReasoningEngineRuntimeRevisionService.ListReasoningEngineRuntimeRevisions", - "service": { - "shortName": "ReasoningEngineRuntimeRevisionService", - "fullName": "google.cloud.aiplatform.v1beta1.ReasoningEngineRuntimeRevisionService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ReasoningEngineRuntimeRevisionService_DeleteReasoningEngineRuntimeRevision_async", - "title": "DatasetService deleteReasoningEngineRuntimeRevision Sample", - "origin": "API_DEFINITION", - "description": " Deletes a reasoning engine revision.", - "canonical": true, - "file": "reasoning_engine_runtime_revision_service.delete_reasoning_engine_runtime_revision.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteReasoningEngineRuntimeRevision", - "fullName": "google.cloud.aiplatform.v1beta1.ReasoningEngineRuntimeRevisionService.DeleteReasoningEngineRuntimeRevision", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ReasoningEngineRuntimeRevisionServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ReasoningEngineRuntimeRevisionServiceClient" - }, - "method": { - "shortName": "DeleteReasoningEngineRuntimeRevision", - "fullName": "google.cloud.aiplatform.v1beta1.ReasoningEngineRuntimeRevisionService.DeleteReasoningEngineRuntimeRevision", - "service": { - "shortName": "ReasoningEngineRuntimeRevisionService", - "fullName": "google.cloud.aiplatform.v1beta1.ReasoningEngineRuntimeRevisionService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ReasoningEngineService_CreateReasoningEngine_async", - "title": "DatasetService createReasoningEngine Sample", - "origin": "API_DEFINITION", - "description": " Creates a reasoning engine.", - "canonical": true, - "file": "reasoning_engine_service.create_reasoning_engine.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateReasoningEngine", - "fullName": "google.cloud.aiplatform.v1beta1.ReasoningEngineService.CreateReasoningEngine", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "reasoning_engine", - "type": ".google.cloud.aiplatform.v1beta1.ReasoningEngine" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ReasoningEngineServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ReasoningEngineServiceClient" - }, - "method": { - "shortName": "CreateReasoningEngine", - "fullName": "google.cloud.aiplatform.v1beta1.ReasoningEngineService.CreateReasoningEngine", - "service": { - "shortName": "ReasoningEngineService", - "fullName": "google.cloud.aiplatform.v1beta1.ReasoningEngineService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ReasoningEngineService_GetReasoningEngine_async", - "title": "DatasetService getReasoningEngine Sample", - "origin": "API_DEFINITION", - "description": " Gets a reasoning engine.", - "canonical": true, - "file": "reasoning_engine_service.get_reasoning_engine.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetReasoningEngine", - "fullName": "google.cloud.aiplatform.v1beta1.ReasoningEngineService.GetReasoningEngine", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ReasoningEngine", - "client": { - "shortName": "ReasoningEngineServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ReasoningEngineServiceClient" - }, - "method": { - "shortName": "GetReasoningEngine", - "fullName": "google.cloud.aiplatform.v1beta1.ReasoningEngineService.GetReasoningEngine", - "service": { - "shortName": "ReasoningEngineService", - "fullName": "google.cloud.aiplatform.v1beta1.ReasoningEngineService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ReasoningEngineService_ListReasoningEngines_async", - "title": "DatasetService listReasoningEngines Sample", - "origin": "API_DEFINITION", - "description": " Lists reasoning engines in a location.", - "canonical": true, - "file": "reasoning_engine_service.list_reasoning_engines.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListReasoningEngines", - "fullName": "google.cloud.aiplatform.v1beta1.ReasoningEngineService.ListReasoningEngines", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListReasoningEnginesResponse", - "client": { - "shortName": "ReasoningEngineServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ReasoningEngineServiceClient" - }, - "method": { - "shortName": "ListReasoningEngines", - "fullName": "google.cloud.aiplatform.v1beta1.ReasoningEngineService.ListReasoningEngines", - "service": { - "shortName": "ReasoningEngineService", - "fullName": "google.cloud.aiplatform.v1beta1.ReasoningEngineService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ReasoningEngineService_UpdateReasoningEngine_async", - "title": "DatasetService updateReasoningEngine Sample", - "origin": "API_DEFINITION", - "description": " Updates a reasoning engine.", - "canonical": true, - "file": "reasoning_engine_service.update_reasoning_engine.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateReasoningEngine", - "fullName": "google.cloud.aiplatform.v1beta1.ReasoningEngineService.UpdateReasoningEngine", - "async": true, - "parameters": [ - { - "name": "reasoning_engine", - "type": ".google.cloud.aiplatform.v1beta1.ReasoningEngine" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ReasoningEngineServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ReasoningEngineServiceClient" - }, - "method": { - "shortName": "UpdateReasoningEngine", - "fullName": "google.cloud.aiplatform.v1beta1.ReasoningEngineService.UpdateReasoningEngine", - "service": { - "shortName": "ReasoningEngineService", - "fullName": "google.cloud.aiplatform.v1beta1.ReasoningEngineService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ReasoningEngineService_DeleteReasoningEngine_async", - "title": "DatasetService deleteReasoningEngine Sample", - "origin": "API_DEFINITION", - "description": " Deletes a reasoning engine.", - "canonical": true, - "file": "reasoning_engine_service.delete_reasoning_engine.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteReasoningEngine", - "fullName": "google.cloud.aiplatform.v1beta1.ReasoningEngineService.DeleteReasoningEngine", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ReasoningEngineServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ReasoningEngineServiceClient" - }, - "method": { - "shortName": "DeleteReasoningEngine", - "fullName": "google.cloud.aiplatform.v1beta1.ReasoningEngineService.DeleteReasoningEngine", - "service": { - "shortName": "ReasoningEngineService", - "fullName": "google.cloud.aiplatform.v1beta1.ReasoningEngineService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ScheduleService_CreateSchedule_async", - "title": "DatasetService createSchedule Sample", - "origin": "API_DEFINITION", - "description": " Creates a Schedule.", - "canonical": true, - "file": "schedule_service.create_schedule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSchedule", - "fullName": "google.cloud.aiplatform.v1beta1.ScheduleService.CreateSchedule", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "schedule", - "type": ".google.cloud.aiplatform.v1beta1.Schedule" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.Schedule", - "client": { - "shortName": "ScheduleServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ScheduleServiceClient" - }, - "method": { - "shortName": "CreateSchedule", - "fullName": "google.cloud.aiplatform.v1beta1.ScheduleService.CreateSchedule", - "service": { - "shortName": "ScheduleService", - "fullName": "google.cloud.aiplatform.v1beta1.ScheduleService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ScheduleService_DeleteSchedule_async", - "title": "DatasetService deleteSchedule Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Schedule.", - "canonical": true, - "file": "schedule_service.delete_schedule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSchedule", - "fullName": "google.cloud.aiplatform.v1beta1.ScheduleService.DeleteSchedule", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ScheduleServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ScheduleServiceClient" - }, - "method": { - "shortName": "DeleteSchedule", - "fullName": "google.cloud.aiplatform.v1beta1.ScheduleService.DeleteSchedule", - "service": { - "shortName": "ScheduleService", - "fullName": "google.cloud.aiplatform.v1beta1.ScheduleService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ScheduleService_GetSchedule_async", - "title": "DatasetService getSchedule Sample", - "origin": "API_DEFINITION", - "description": " Gets a Schedule.", - "canonical": true, - "file": "schedule_service.get_schedule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSchedule", - "fullName": "google.cloud.aiplatform.v1beta1.ScheduleService.GetSchedule", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.Schedule", - "client": { - "shortName": "ScheduleServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ScheduleServiceClient" - }, - "method": { - "shortName": "GetSchedule", - "fullName": "google.cloud.aiplatform.v1beta1.ScheduleService.GetSchedule", - "service": { - "shortName": "ScheduleService", - "fullName": "google.cloud.aiplatform.v1beta1.ScheduleService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ScheduleService_ListSchedules_async", - "title": "DatasetService listSchedules Sample", - "origin": "API_DEFINITION", - "description": " Lists Schedules in a Location.", - "canonical": true, - "file": "schedule_service.list_schedules.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 114, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSchedules", - "fullName": "google.cloud.aiplatform.v1beta1.ScheduleService.ListSchedules", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListSchedulesResponse", - "client": { - "shortName": "ScheduleServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ScheduleServiceClient" - }, - "method": { - "shortName": "ListSchedules", - "fullName": "google.cloud.aiplatform.v1beta1.ScheduleService.ListSchedules", - "service": { - "shortName": "ScheduleService", - "fullName": "google.cloud.aiplatform.v1beta1.ScheduleService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ScheduleService_PauseSchedule_async", - "title": "DatasetService pauseSchedule Sample", - "origin": "API_DEFINITION", - "description": " Pauses a Schedule. Will mark [Schedule.state][google.cloud.aiplatform.v1beta1.Schedule.state] to 'PAUSED'. If the schedule is paused, no new runs will be created. Already created runs will NOT be paused or canceled.", - "canonical": true, - "file": "schedule_service.pause_schedule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PauseSchedule", - "fullName": "google.cloud.aiplatform.v1beta1.ScheduleService.PauseSchedule", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ScheduleServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ScheduleServiceClient" - }, - "method": { - "shortName": "PauseSchedule", - "fullName": "google.cloud.aiplatform.v1beta1.ScheduleService.PauseSchedule", - "service": { - "shortName": "ScheduleService", - "fullName": "google.cloud.aiplatform.v1beta1.ScheduleService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ScheduleService_ResumeSchedule_async", - "title": "DatasetService resumeSchedule Sample", - "origin": "API_DEFINITION", - "description": " Resumes a paused Schedule to start scheduling new runs. Will mark [Schedule.state][google.cloud.aiplatform.v1beta1.Schedule.state] to 'ACTIVE'. Only paused Schedule can be resumed. When the Schedule is resumed, new runs will be scheduled starting from the next execution time after the current time based on the time_specification in the Schedule. If [Schedule.catchUp][] is set up true, all missed runs will be scheduled for backfill first.", - "canonical": true, - "file": "schedule_service.resume_schedule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResumeSchedule", - "fullName": "google.cloud.aiplatform.v1beta1.ScheduleService.ResumeSchedule", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "catch_up", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ScheduleServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ScheduleServiceClient" - }, - "method": { - "shortName": "ResumeSchedule", - "fullName": "google.cloud.aiplatform.v1beta1.ScheduleService.ResumeSchedule", - "service": { - "shortName": "ScheduleService", - "fullName": "google.cloud.aiplatform.v1beta1.ScheduleService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_ScheduleService_UpdateSchedule_async", - "title": "DatasetService updateSchedule Sample", - "origin": "API_DEFINITION", - "description": " Updates an active or paused Schedule. When the Schedule is updated, new runs will be scheduled starting from the updated next execution time after the update time based on the time_specification in the updated Schedule. All unstarted runs before the update time will be skipped while already created runs will NOT be paused or canceled.", - "canonical": true, - "file": "schedule_service.update_schedule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSchedule", - "fullName": "google.cloud.aiplatform.v1beta1.ScheduleService.UpdateSchedule", - "async": true, - "parameters": [ - { - "name": "schedule", - "type": ".google.cloud.aiplatform.v1beta1.Schedule" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.Schedule", - "client": { - "shortName": "ScheduleServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.ScheduleServiceClient" - }, - "method": { - "shortName": "UpdateSchedule", - "fullName": "google.cloud.aiplatform.v1beta1.ScheduleService.UpdateSchedule", - "service": { - "shortName": "ScheduleService", - "fullName": "google.cloud.aiplatform.v1beta1.ScheduleService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_SessionService_CreateSession_async", - "title": "DatasetService createSession Sample", - "origin": "API_DEFINITION", - "description": " Creates a new [Session][google.cloud.aiplatform.v1beta1.Session].", - "canonical": true, - "file": "session_service.create_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSession", - "fullName": "google.cloud.aiplatform.v1beta1.SessionService.CreateSession", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "session", - "type": ".google.cloud.aiplatform.v1beta1.Session" - }, - { - "name": "session_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SessionServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.SessionServiceClient" - }, - "method": { - "shortName": "CreateSession", - "fullName": "google.cloud.aiplatform.v1beta1.SessionService.CreateSession", - "service": { - "shortName": "SessionService", - "fullName": "google.cloud.aiplatform.v1beta1.SessionService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_SessionService_GetSession_async", - "title": "DatasetService getSession Sample", - "origin": "API_DEFINITION", - "description": " Gets details of the specific [Session][google.cloud.aiplatform.v1beta1.Session].", - "canonical": true, - "file": "session_service.get_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSession", - "fullName": "google.cloud.aiplatform.v1beta1.SessionService.GetSession", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.Session", - "client": { - "shortName": "SessionServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.SessionServiceClient" - }, - "method": { - "shortName": "GetSession", - "fullName": "google.cloud.aiplatform.v1beta1.SessionService.GetSession", - "service": { - "shortName": "SessionService", - "fullName": "google.cloud.aiplatform.v1beta1.SessionService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_SessionService_ListSessions_async", - "title": "DatasetService listSessions Sample", - "origin": "API_DEFINITION", - "description": " Lists [Sessions][google.cloud.aiplatform.v1beta1.Session] in a given reasoning engine.", - "canonical": true, - "file": "session_service.list_sessions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 88, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSessions", - "fullName": "google.cloud.aiplatform.v1beta1.SessionService.ListSessions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListSessionsResponse", - "client": { - "shortName": "SessionServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.SessionServiceClient" - }, - "method": { - "shortName": "ListSessions", - "fullName": "google.cloud.aiplatform.v1beta1.SessionService.ListSessions", - "service": { - "shortName": "SessionService", - "fullName": "google.cloud.aiplatform.v1beta1.SessionService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_SessionService_UpdateSession_async", - "title": "DatasetService updateSession Sample", - "origin": "API_DEFINITION", - "description": " Updates the specific [Session][google.cloud.aiplatform.v1beta1.Session].", - "canonical": true, - "file": "session_service.update_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSession", - "fullName": "google.cloud.aiplatform.v1beta1.SessionService.UpdateSession", - "async": true, - "parameters": [ - { - "name": "session", - "type": ".google.cloud.aiplatform.v1beta1.Session" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.Session", - "client": { - "shortName": "SessionServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.SessionServiceClient" - }, - "method": { - "shortName": "UpdateSession", - "fullName": "google.cloud.aiplatform.v1beta1.SessionService.UpdateSession", - "service": { - "shortName": "SessionService", - "fullName": "google.cloud.aiplatform.v1beta1.SessionService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_SessionService_DeleteSession_async", - "title": "DatasetService deleteSession Sample", - "origin": "API_DEFINITION", - "description": " Deletes details of the specific [Session][google.cloud.aiplatform.v1beta1.Session].", - "canonical": true, - "file": "session_service.delete_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSession", - "fullName": "google.cloud.aiplatform.v1beta1.SessionService.DeleteSession", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SessionServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.SessionServiceClient" - }, - "method": { - "shortName": "DeleteSession", - "fullName": "google.cloud.aiplatform.v1beta1.SessionService.DeleteSession", - "service": { - "shortName": "SessionService", - "fullName": "google.cloud.aiplatform.v1beta1.SessionService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_SessionService_ListEvents_async", - "title": "DatasetService listEvents Sample", - "origin": "API_DEFINITION", - "description": " Lists [Events][google.cloud.aiplatform.v1beta1.Event] in a given session.", - "canonical": true, - "file": "session_service.list_events.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEvents", - "fullName": "google.cloud.aiplatform.v1beta1.SessionService.ListEvents", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListEventsResponse", - "client": { - "shortName": "SessionServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.SessionServiceClient" - }, - "method": { - "shortName": "ListEvents", - "fullName": "google.cloud.aiplatform.v1beta1.SessionService.ListEvents", - "service": { - "shortName": "SessionService", - "fullName": "google.cloud.aiplatform.v1beta1.SessionService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_SessionService_AppendEvent_async", - "title": "DatasetService appendEvent Sample", - "origin": "API_DEFINITION", - "description": " Appends an event to a given session.", - "canonical": true, - "file": "session_service.append_event.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AppendEvent", - "fullName": "google.cloud.aiplatform.v1beta1.SessionService.AppendEvent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "event", - "type": ".google.cloud.aiplatform.v1beta1.SessionEvent" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.AppendEventResponse", - "client": { - "shortName": "SessionServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.SessionServiceClient" - }, - "method": { - "shortName": "AppendEvent", - "fullName": "google.cloud.aiplatform.v1beta1.SessionService.AppendEvent", - "service": { - "shortName": "SessionService", - "fullName": "google.cloud.aiplatform.v1beta1.SessionService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_SpecialistPoolService_CreateSpecialistPool_async", - "title": "DatasetService createSpecialistPool Sample", - "origin": "API_DEFINITION", - "description": " Creates a SpecialistPool.", - "canonical": true, - "file": "specialist_pool_service.create_specialist_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSpecialistPool", - "fullName": "google.cloud.aiplatform.v1beta1.SpecialistPoolService.CreateSpecialistPool", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "specialist_pool", - "type": ".google.cloud.aiplatform.v1beta1.SpecialistPool" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SpecialistPoolServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.SpecialistPoolServiceClient" - }, - "method": { - "shortName": "CreateSpecialistPool", - "fullName": "google.cloud.aiplatform.v1beta1.SpecialistPoolService.CreateSpecialistPool", - "service": { - "shortName": "SpecialistPoolService", - "fullName": "google.cloud.aiplatform.v1beta1.SpecialistPoolService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_SpecialistPoolService_GetSpecialistPool_async", - "title": "DatasetService getSpecialistPool Sample", - "origin": "API_DEFINITION", - "description": " Gets a SpecialistPool.", - "canonical": true, - "file": "specialist_pool_service.get_specialist_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSpecialistPool", - "fullName": "google.cloud.aiplatform.v1beta1.SpecialistPoolService.GetSpecialistPool", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.SpecialistPool", - "client": { - "shortName": "SpecialistPoolServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.SpecialistPoolServiceClient" - }, - "method": { - "shortName": "GetSpecialistPool", - "fullName": "google.cloud.aiplatform.v1beta1.SpecialistPoolService.GetSpecialistPool", - "service": { - "shortName": "SpecialistPoolService", - "fullName": "google.cloud.aiplatform.v1beta1.SpecialistPoolService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_SpecialistPoolService_ListSpecialistPools_async", - "title": "DatasetService listSpecialistPools Sample", - "origin": "API_DEFINITION", - "description": " Lists SpecialistPools in a Location.", - "canonical": true, - "file": "specialist_pool_service.list_specialist_pools.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSpecialistPools", - "fullName": "google.cloud.aiplatform.v1beta1.SpecialistPoolService.ListSpecialistPools", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListSpecialistPoolsResponse", - "client": { - "shortName": "SpecialistPoolServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.SpecialistPoolServiceClient" - }, - "method": { - "shortName": "ListSpecialistPools", - "fullName": "google.cloud.aiplatform.v1beta1.SpecialistPoolService.ListSpecialistPools", - "service": { - "shortName": "SpecialistPoolService", - "fullName": "google.cloud.aiplatform.v1beta1.SpecialistPoolService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_SpecialistPoolService_DeleteSpecialistPool_async", - "title": "DatasetService deleteSpecialistPool Sample", - "origin": "API_DEFINITION", - "description": " Deletes a SpecialistPool as well as all Specialists in the pool.", - "canonical": true, - "file": "specialist_pool_service.delete_specialist_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSpecialistPool", - "fullName": "google.cloud.aiplatform.v1beta1.SpecialistPoolService.DeleteSpecialistPool", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SpecialistPoolServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.SpecialistPoolServiceClient" - }, - "method": { - "shortName": "DeleteSpecialistPool", - "fullName": "google.cloud.aiplatform.v1beta1.SpecialistPoolService.DeleteSpecialistPool", - "service": { - "shortName": "SpecialistPoolService", - "fullName": "google.cloud.aiplatform.v1beta1.SpecialistPoolService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_SpecialistPoolService_UpdateSpecialistPool_async", - "title": "DatasetService updateSpecialistPool Sample", - "origin": "API_DEFINITION", - "description": " Updates a SpecialistPool.", - "canonical": true, - "file": "specialist_pool_service.update_specialist_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSpecialistPool", - "fullName": "google.cloud.aiplatform.v1beta1.SpecialistPoolService.UpdateSpecialistPool", - "async": true, - "parameters": [ - { - "name": "specialist_pool", - "type": ".google.cloud.aiplatform.v1beta1.SpecialistPool" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SpecialistPoolServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.SpecialistPoolServiceClient" - }, - "method": { - "shortName": "UpdateSpecialistPool", - "fullName": "google.cloud.aiplatform.v1beta1.SpecialistPoolService.UpdateSpecialistPool", - "service": { - "shortName": "SpecialistPoolService", - "fullName": "google.cloud.aiplatform.v1beta1.SpecialistPoolService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_CreateTensorboard_async", - "title": "DatasetService createTensorboard Sample", - "origin": "API_DEFINITION", - "description": " Creates a Tensorboard.", - "canonical": true, - "file": "tensorboard_service.create_tensorboard.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTensorboard", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboard", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "tensorboard", - "type": ".google.cloud.aiplatform.v1beta1.Tensorboard" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TensorboardServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardServiceClient" - }, - "method": { - "shortName": "CreateTensorboard", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboard", - "service": { - "shortName": "TensorboardService", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_GetTensorboard_async", - "title": "DatasetService getTensorboard Sample", - "origin": "API_DEFINITION", - "description": " Gets a Tensorboard.", - "canonical": true, - "file": "tensorboard_service.get_tensorboard.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTensorboard", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.GetTensorboard", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.Tensorboard", - "client": { - "shortName": "TensorboardServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardServiceClient" - }, - "method": { - "shortName": "GetTensorboard", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.GetTensorboard", - "service": { - "shortName": "TensorboardService", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_UpdateTensorboard_async", - "title": "DatasetService updateTensorboard Sample", - "origin": "API_DEFINITION", - "description": " Updates a Tensorboard.", - "canonical": true, - "file": "tensorboard_service.update_tensorboard.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTensorboard", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.UpdateTensorboard", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "tensorboard", - "type": ".google.cloud.aiplatform.v1beta1.Tensorboard" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TensorboardServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardServiceClient" - }, - "method": { - "shortName": "UpdateTensorboard", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.UpdateTensorboard", - "service": { - "shortName": "TensorboardService", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_ListTensorboards_async", - "title": "DatasetService listTensorboards Sample", - "origin": "API_DEFINITION", - "description": " Lists Tensorboards in a Location.", - "canonical": true, - "file": "tensorboard_service.list_tensorboards.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTensorboards", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboards", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListTensorboardsResponse", - "client": { - "shortName": "TensorboardServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardServiceClient" - }, - "method": { - "shortName": "ListTensorboards", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboards", - "service": { - "shortName": "TensorboardService", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_DeleteTensorboard_async", - "title": "DatasetService deleteTensorboard Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Tensorboard.", - "canonical": true, - "file": "tensorboard_service.delete_tensorboard.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTensorboard", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.DeleteTensorboard", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TensorboardServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardServiceClient" - }, - "method": { - "shortName": "DeleteTensorboard", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.DeleteTensorboard", - "service": { - "shortName": "TensorboardService", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_ReadTensorboardUsage_async", - "title": "DatasetService readTensorboardUsage Sample", - "origin": "API_DEFINITION", - "description": " Returns a list of monthly active users for a given TensorBoard instance.", - "canonical": true, - "file": "tensorboard_service.read_tensorboard_usage.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReadTensorboardUsage", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardUsage", - "async": true, - "parameters": [ - { - "name": "tensorboard", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ReadTensorboardUsageResponse", - "client": { - "shortName": "TensorboardServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardServiceClient" - }, - "method": { - "shortName": "ReadTensorboardUsage", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardUsage", - "service": { - "shortName": "TensorboardService", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_ReadTensorboardSize_async", - "title": "DatasetService readTensorboardSize Sample", - "origin": "API_DEFINITION", - "description": " Returns the storage size for a given TensorBoard instance.", - "canonical": true, - "file": "tensorboard_service.read_tensorboard_size.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReadTensorboardSize", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardSize", - "async": true, - "parameters": [ - { - "name": "tensorboard", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ReadTensorboardSizeResponse", - "client": { - "shortName": "TensorboardServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardServiceClient" - }, - "method": { - "shortName": "ReadTensorboardSize", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardSize", - "service": { - "shortName": "TensorboardService", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_CreateTensorboardExperiment_async", - "title": "DatasetService createTensorboardExperiment Sample", - "origin": "API_DEFINITION", - "description": " Creates a TensorboardExperiment.", - "canonical": true, - "file": "tensorboard_service.create_tensorboard_experiment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTensorboardExperiment", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboardExperiment", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "tensorboard_experiment", - "type": ".google.cloud.aiplatform.v1beta1.TensorboardExperiment" - }, - { - "name": "tensorboard_experiment_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.TensorboardExperiment", - "client": { - "shortName": "TensorboardServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardServiceClient" - }, - "method": { - "shortName": "CreateTensorboardExperiment", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboardExperiment", - "service": { - "shortName": "TensorboardService", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_GetTensorboardExperiment_async", - "title": "DatasetService getTensorboardExperiment Sample", - "origin": "API_DEFINITION", - "description": " Gets a TensorboardExperiment.", - "canonical": true, - "file": "tensorboard_service.get_tensorboard_experiment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTensorboardExperiment", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.GetTensorboardExperiment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.TensorboardExperiment", - "client": { - "shortName": "TensorboardServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardServiceClient" - }, - "method": { - "shortName": "GetTensorboardExperiment", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.GetTensorboardExperiment", - "service": { - "shortName": "TensorboardService", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_UpdateTensorboardExperiment_async", - "title": "DatasetService updateTensorboardExperiment Sample", - "origin": "API_DEFINITION", - "description": " Updates a TensorboardExperiment.", - "canonical": true, - "file": "tensorboard_service.update_tensorboard_experiment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTensorboardExperiment", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.UpdateTensorboardExperiment", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "tensorboard_experiment", - "type": ".google.cloud.aiplatform.v1beta1.TensorboardExperiment" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.TensorboardExperiment", - "client": { - "shortName": "TensorboardServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardServiceClient" - }, - "method": { - "shortName": "UpdateTensorboardExperiment", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.UpdateTensorboardExperiment", - "service": { - "shortName": "TensorboardService", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_ListTensorboardExperiments_async", - "title": "DatasetService listTensorboardExperiments Sample", - "origin": "API_DEFINITION", - "description": " Lists TensorboardExperiments in a Location.", - "canonical": true, - "file": "tensorboard_service.list_tensorboard_experiments.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTensorboardExperiments", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardExperiments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListTensorboardExperimentsResponse", - "client": { - "shortName": "TensorboardServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardServiceClient" - }, - "method": { - "shortName": "ListTensorboardExperiments", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardExperiments", - "service": { - "shortName": "TensorboardService", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_DeleteTensorboardExperiment_async", - "title": "DatasetService deleteTensorboardExperiment Sample", - "origin": "API_DEFINITION", - "description": " Deletes a TensorboardExperiment.", - "canonical": true, - "file": "tensorboard_service.delete_tensorboard_experiment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTensorboardExperiment", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.DeleteTensorboardExperiment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TensorboardServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardServiceClient" - }, - "method": { - "shortName": "DeleteTensorboardExperiment", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.DeleteTensorboardExperiment", - "service": { - "shortName": "TensorboardService", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_CreateTensorboardRun_async", - "title": "DatasetService createTensorboardRun Sample", - "origin": "API_DEFINITION", - "description": " Creates a TensorboardRun.", - "canonical": true, - "file": "tensorboard_service.create_tensorboard_run.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTensorboardRun", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboardRun", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "tensorboard_run", - "type": ".google.cloud.aiplatform.v1beta1.TensorboardRun" - }, - { - "name": "tensorboard_run_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.TensorboardRun", - "client": { - "shortName": "TensorboardServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardServiceClient" - }, - "method": { - "shortName": "CreateTensorboardRun", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboardRun", - "service": { - "shortName": "TensorboardService", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_BatchCreateTensorboardRuns_async", - "title": "DatasetService batchCreateTensorboardRuns Sample", - "origin": "API_DEFINITION", - "description": " Batch create TensorboardRuns.", - "canonical": true, - "file": "tensorboard_service.batch_create_tensorboard_runs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCreateTensorboardRuns", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.BatchCreateTensorboardRuns", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.BatchCreateTensorboardRunsResponse", - "client": { - "shortName": "TensorboardServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardServiceClient" - }, - "method": { - "shortName": "BatchCreateTensorboardRuns", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.BatchCreateTensorboardRuns", - "service": { - "shortName": "TensorboardService", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_GetTensorboardRun_async", - "title": "DatasetService getTensorboardRun Sample", - "origin": "API_DEFINITION", - "description": " Gets a TensorboardRun.", - "canonical": true, - "file": "tensorboard_service.get_tensorboard_run.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTensorboardRun", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.GetTensorboardRun", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.TensorboardRun", - "client": { - "shortName": "TensorboardServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardServiceClient" - }, - "method": { - "shortName": "GetTensorboardRun", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.GetTensorboardRun", - "service": { - "shortName": "TensorboardService", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_UpdateTensorboardRun_async", - "title": "DatasetService updateTensorboardRun Sample", - "origin": "API_DEFINITION", - "description": " Updates a TensorboardRun.", - "canonical": true, - "file": "tensorboard_service.update_tensorboard_run.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTensorboardRun", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.UpdateTensorboardRun", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "tensorboard_run", - "type": ".google.cloud.aiplatform.v1beta1.TensorboardRun" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.TensorboardRun", - "client": { - "shortName": "TensorboardServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardServiceClient" - }, - "method": { - "shortName": "UpdateTensorboardRun", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.UpdateTensorboardRun", - "service": { - "shortName": "TensorboardService", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_ListTensorboardRuns_async", - "title": "DatasetService listTensorboardRuns Sample", - "origin": "API_DEFINITION", - "description": " Lists TensorboardRuns in a Location.", - "canonical": true, - "file": "tensorboard_service.list_tensorboard_runs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTensorboardRuns", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardRuns", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListTensorboardRunsResponse", - "client": { - "shortName": "TensorboardServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardServiceClient" - }, - "method": { - "shortName": "ListTensorboardRuns", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardRuns", - "service": { - "shortName": "TensorboardService", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_DeleteTensorboardRun_async", - "title": "DatasetService deleteTensorboardRun Sample", - "origin": "API_DEFINITION", - "description": " Deletes a TensorboardRun.", - "canonical": true, - "file": "tensorboard_service.delete_tensorboard_run.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTensorboardRun", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.DeleteTensorboardRun", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TensorboardServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardServiceClient" - }, - "method": { - "shortName": "DeleteTensorboardRun", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.DeleteTensorboardRun", - "service": { - "shortName": "TensorboardService", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_BatchCreateTensorboardTimeSeries_async", - "title": "DatasetService batchCreateTensorboardTimeSeries Sample", - "origin": "API_DEFINITION", - "description": " Batch create TensorboardTimeSeries that belong to a TensorboardExperiment.", - "canonical": true, - "file": "tensorboard_service.batch_create_tensorboard_time_series.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCreateTensorboardTimeSeries", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.BatchCreateTensorboardTimeSeries", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.BatchCreateTensorboardTimeSeriesResponse", - "client": { - "shortName": "TensorboardServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardServiceClient" - }, - "method": { - "shortName": "BatchCreateTensorboardTimeSeries", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.BatchCreateTensorboardTimeSeries", - "service": { - "shortName": "TensorboardService", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_CreateTensorboardTimeSeries_async", - "title": "DatasetService createTensorboardTimeSeries Sample", - "origin": "API_DEFINITION", - "description": " Creates a TensorboardTimeSeries.", - "canonical": true, - "file": "tensorboard_service.create_tensorboard_time_series.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTensorboardTimeSeries", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboardTimeSeries", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "tensorboard_time_series_id", - "type": "TYPE_STRING" - }, - { - "name": "tensorboard_time_series", - "type": ".google.cloud.aiplatform.v1beta1.TensorboardTimeSeries" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.TensorboardTimeSeries", - "client": { - "shortName": "TensorboardServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardServiceClient" - }, - "method": { - "shortName": "CreateTensorboardTimeSeries", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.CreateTensorboardTimeSeries", - "service": { - "shortName": "TensorboardService", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_GetTensorboardTimeSeries_async", - "title": "DatasetService getTensorboardTimeSeries Sample", - "origin": "API_DEFINITION", - "description": " Gets a TensorboardTimeSeries.", - "canonical": true, - "file": "tensorboard_service.get_tensorboard_time_series.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTensorboardTimeSeries", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.GetTensorboardTimeSeries", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.TensorboardTimeSeries", - "client": { - "shortName": "TensorboardServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardServiceClient" - }, - "method": { - "shortName": "GetTensorboardTimeSeries", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.GetTensorboardTimeSeries", - "service": { - "shortName": "TensorboardService", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_UpdateTensorboardTimeSeries_async", - "title": "DatasetService updateTensorboardTimeSeries Sample", - "origin": "API_DEFINITION", - "description": " Updates a TensorboardTimeSeries.", - "canonical": true, - "file": "tensorboard_service.update_tensorboard_time_series.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTensorboardTimeSeries", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.UpdateTensorboardTimeSeries", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "tensorboard_time_series", - "type": ".google.cloud.aiplatform.v1beta1.TensorboardTimeSeries" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.TensorboardTimeSeries", - "client": { - "shortName": "TensorboardServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardServiceClient" - }, - "method": { - "shortName": "UpdateTensorboardTimeSeries", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.UpdateTensorboardTimeSeries", - "service": { - "shortName": "TensorboardService", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_ListTensorboardTimeSeries_async", - "title": "DatasetService listTensorboardTimeSeries Sample", - "origin": "API_DEFINITION", - "description": " Lists TensorboardTimeSeries in a Location.", - "canonical": true, - "file": "tensorboard_service.list_tensorboard_time_series.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTensorboardTimeSeries", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardTimeSeries", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListTensorboardTimeSeriesResponse", - "client": { - "shortName": "TensorboardServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardServiceClient" - }, - "method": { - "shortName": "ListTensorboardTimeSeries", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.ListTensorboardTimeSeries", - "service": { - "shortName": "TensorboardService", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_DeleteTensorboardTimeSeries_async", - "title": "DatasetService deleteTensorboardTimeSeries Sample", - "origin": "API_DEFINITION", - "description": " Deletes a TensorboardTimeSeries.", - "canonical": true, - "file": "tensorboard_service.delete_tensorboard_time_series.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTensorboardTimeSeries", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.DeleteTensorboardTimeSeries", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TensorboardServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardServiceClient" - }, - "method": { - "shortName": "DeleteTensorboardTimeSeries", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.DeleteTensorboardTimeSeries", - "service": { - "shortName": "TensorboardService", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_BatchReadTensorboardTimeSeriesData_async", - "title": "DatasetService batchReadTensorboardTimeSeriesData Sample", - "origin": "API_DEFINITION", - "description": " Reads multiple TensorboardTimeSeries' data. The data point number limit is 1000 for scalars, 100 for tensors and blob references. If the number of data points stored is less than the limit, all data is returned. Otherwise, the number limit of data points is randomly selected from this time series and returned.", - "canonical": true, - "file": "tensorboard_service.batch_read_tensorboard_time_series_data.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchReadTensorboardTimeSeriesData", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.BatchReadTensorboardTimeSeriesData", - "async": true, - "parameters": [ - { - "name": "tensorboard", - "type": "TYPE_STRING" - }, - { - "name": "time_series", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.BatchReadTensorboardTimeSeriesDataResponse", - "client": { - "shortName": "TensorboardServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardServiceClient" - }, - "method": { - "shortName": "BatchReadTensorboardTimeSeriesData", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.BatchReadTensorboardTimeSeriesData", - "service": { - "shortName": "TensorboardService", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_ReadTensorboardTimeSeriesData_async", - "title": "DatasetService readTensorboardTimeSeriesData Sample", - "origin": "API_DEFINITION", - "description": " Reads a TensorboardTimeSeries' data. By default, if the number of data points stored is less than 1000, all data is returned. Otherwise, 1000 data points is randomly selected from this time series and returned. This value can be changed by changing max_data_points, which can't be greater than 10k.", - "canonical": true, - "file": "tensorboard_service.read_tensorboard_time_series_data.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReadTensorboardTimeSeriesData", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardTimeSeriesData", - "async": true, - "parameters": [ - { - "name": "tensorboard_time_series", - "type": "TYPE_STRING" - }, - { - "name": "max_data_points", - "type": "TYPE_INT32" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataResponse", - "client": { - "shortName": "TensorboardServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardServiceClient" - }, - "method": { - "shortName": "ReadTensorboardTimeSeriesData", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardTimeSeriesData", - "service": { - "shortName": "TensorboardService", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_ReadTensorboardBlobData_async", - "title": "DatasetService readTensorboardBlobData Sample", - "origin": "API_DEFINITION", - "description": " Gets bytes of TensorboardBlobs. This is to allow reading blob data stored in consumer project's Cloud Storage bucket without users having to obtain Cloud Storage access permission.", - "canonical": true, - "file": "tensorboard_service.read_tensorboard_blob_data.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReadTensorboardBlobData", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardBlobData", - "async": true, - "parameters": [ - { - "name": "time_series", - "type": "TYPE_STRING" - }, - { - "name": "blob_ids", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataResponse", - "client": { - "shortName": "TensorboardServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardServiceClient" - }, - "method": { - "shortName": "ReadTensorboardBlobData", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.ReadTensorboardBlobData", - "service": { - "shortName": "TensorboardService", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_WriteTensorboardExperimentData_async", - "title": "DatasetService writeTensorboardExperimentData Sample", - "origin": "API_DEFINITION", - "description": " Write time series data points of multiple TensorboardTimeSeries in multiple TensorboardRun's. If any data fail to be ingested, an error is returned.", - "canonical": true, - "file": "tensorboard_service.write_tensorboard_experiment_data.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "WriteTensorboardExperimentData", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.WriteTensorboardExperimentData", - "async": true, - "parameters": [ - { - "name": "tensorboard_experiment", - "type": "TYPE_STRING" - }, - { - "name": "write_run_data_requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.WriteTensorboardExperimentDataResponse", - "client": { - "shortName": "TensorboardServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardServiceClient" - }, - "method": { - "shortName": "WriteTensorboardExperimentData", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.WriteTensorboardExperimentData", - "service": { - "shortName": "TensorboardService", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_WriteTensorboardRunData_async", - "title": "DatasetService writeTensorboardRunData Sample", - "origin": "API_DEFINITION", - "description": " Write time series data points into multiple TensorboardTimeSeries under a TensorboardRun. If any data fail to be ingested, an error is returned.", - "canonical": true, - "file": "tensorboard_service.write_tensorboard_run_data.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "WriteTensorboardRunData", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.WriteTensorboardRunData", - "async": true, - "parameters": [ - { - "name": "tensorboard_run", - "type": "TYPE_STRING" - }, - { - "name": "time_series_data", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataResponse", - "client": { - "shortName": "TensorboardServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardServiceClient" - }, - "method": { - "shortName": "WriteTensorboardRunData", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.WriteTensorboardRunData", - "service": { - "shortName": "TensorboardService", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_TensorboardService_ExportTensorboardTimeSeriesData_async", - "title": "DatasetService exportTensorboardTimeSeriesData Sample", - "origin": "API_DEFINITION", - "description": " Exports a TensorboardTimeSeries' data. Data is returned in paginated responses.", - "canonical": true, - "file": "tensorboard_service.export_tensorboard_time_series_data.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportTensorboardTimeSeriesData", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.ExportTensorboardTimeSeriesData", - "async": true, - "parameters": [ - { - "name": "tensorboard_time_series", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ExportTensorboardTimeSeriesDataResponse", - "client": { - "shortName": "TensorboardServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardServiceClient" - }, - "method": { - "shortName": "ExportTensorboardTimeSeriesData", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService.ExportTensorboardTimeSeriesData", - "service": { - "shortName": "TensorboardService", - "fullName": "google.cloud.aiplatform.v1beta1.TensorboardService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_VertexRagDataService_CreateRagCorpus_async", - "title": "DatasetService createRagCorpus Sample", - "origin": "API_DEFINITION", - "description": " Creates a RagCorpus.", - "canonical": true, - "file": "vertex_rag_data_service.create_rag_corpus.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateRagCorpus", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService.CreateRagCorpus", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "rag_corpus", - "type": ".google.cloud.aiplatform.v1beta1.RagCorpus" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VertexRagDataServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataServiceClient" - }, - "method": { - "shortName": "CreateRagCorpus", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService.CreateRagCorpus", - "service": { - "shortName": "VertexRagDataService", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_VertexRagDataService_UpdateRagCorpus_async", - "title": "DatasetService updateRagCorpus Sample", - "origin": "API_DEFINITION", - "description": " Updates a RagCorpus.", - "canonical": true, - "file": "vertex_rag_data_service.update_rag_corpus.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateRagCorpus", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService.UpdateRagCorpus", - "async": true, - "parameters": [ - { - "name": "rag_corpus", - "type": ".google.cloud.aiplatform.v1beta1.RagCorpus" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VertexRagDataServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataServiceClient" - }, - "method": { - "shortName": "UpdateRagCorpus", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService.UpdateRagCorpus", - "service": { - "shortName": "VertexRagDataService", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_VertexRagDataService_GetRagCorpus_async", - "title": "DatasetService getRagCorpus Sample", - "origin": "API_DEFINITION", - "description": " Gets a RagCorpus.", - "canonical": true, - "file": "vertex_rag_data_service.get_rag_corpus.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRagCorpus", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService.GetRagCorpus", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.RagCorpus", - "client": { - "shortName": "VertexRagDataServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataServiceClient" - }, - "method": { - "shortName": "GetRagCorpus", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService.GetRagCorpus", - "service": { - "shortName": "VertexRagDataService", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_VertexRagDataService_ListRagCorpora_async", - "title": "DatasetService listRagCorpora Sample", - "origin": "API_DEFINITION", - "description": " Lists RagCorpora in a Location.", - "canonical": true, - "file": "vertex_rag_data_service.list_rag_corpora.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRagCorpora", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService.ListRagCorpora", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListRagCorporaResponse", - "client": { - "shortName": "VertexRagDataServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataServiceClient" - }, - "method": { - "shortName": "ListRagCorpora", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService.ListRagCorpora", - "service": { - "shortName": "VertexRagDataService", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_VertexRagDataService_DeleteRagCorpus_async", - "title": "DatasetService deleteRagCorpus Sample", - "origin": "API_DEFINITION", - "description": " Deletes a RagCorpus.", - "canonical": true, - "file": "vertex_rag_data_service.delete_rag_corpus.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteRagCorpus", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService.DeleteRagCorpus", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - }, - { - "name": "force_delete", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VertexRagDataServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataServiceClient" - }, - "method": { - "shortName": "DeleteRagCorpus", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService.DeleteRagCorpus", - "service": { - "shortName": "VertexRagDataService", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_VertexRagDataService_UploadRagFile_async", - "title": "DatasetService uploadRagFile Sample", - "origin": "API_DEFINITION", - "description": " Upload a file into a RagCorpus.", - "canonical": true, - "file": "vertex_rag_data_service.upload_rag_file.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UploadRagFile", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService.UploadRagFile", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "rag_file", - "type": ".google.cloud.aiplatform.v1beta1.RagFile" - }, - { - "name": "upload_rag_file_config", - "type": ".google.cloud.aiplatform.v1beta1.UploadRagFileConfig" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.UploadRagFileResponse", - "client": { - "shortName": "VertexRagDataServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataServiceClient" - }, - "method": { - "shortName": "UploadRagFile", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService.UploadRagFile", - "service": { - "shortName": "VertexRagDataService", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_VertexRagDataService_ImportRagFiles_async", - "title": "DatasetService importRagFiles Sample", - "origin": "API_DEFINITION", - "description": " Import files from Google Cloud Storage or Google Drive into a RagCorpus.", - "canonical": true, - "file": "vertex_rag_data_service.import_rag_files.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportRagFiles", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService.ImportRagFiles", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "import_rag_files_config", - "type": ".google.cloud.aiplatform.v1beta1.ImportRagFilesConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VertexRagDataServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataServiceClient" - }, - "method": { - "shortName": "ImportRagFiles", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService.ImportRagFiles", - "service": { - "shortName": "VertexRagDataService", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_VertexRagDataService_GetRagFile_async", - "title": "DatasetService getRagFile Sample", - "origin": "API_DEFINITION", - "description": " Gets a RagFile.", - "canonical": true, - "file": "vertex_rag_data_service.get_rag_file.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRagFile", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService.GetRagFile", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.RagFile", - "client": { - "shortName": "VertexRagDataServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataServiceClient" - }, - "method": { - "shortName": "GetRagFile", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService.GetRagFile", - "service": { - "shortName": "VertexRagDataService", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_VertexRagDataService_ListRagFiles_async", - "title": "DatasetService listRagFiles Sample", - "origin": "API_DEFINITION", - "description": " Lists RagFiles in a RagCorpus.", - "canonical": true, - "file": "vertex_rag_data_service.list_rag_files.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRagFiles", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService.ListRagFiles", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListRagFilesResponse", - "client": { - "shortName": "VertexRagDataServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataServiceClient" - }, - "method": { - "shortName": "ListRagFiles", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService.ListRagFiles", - "service": { - "shortName": "VertexRagDataService", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_VertexRagDataService_DeleteRagFile_async", - "title": "DatasetService deleteRagFile Sample", - "origin": "API_DEFINITION", - "description": " Deletes a RagFile.", - "canonical": true, - "file": "vertex_rag_data_service.delete_rag_file.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteRagFile", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService.DeleteRagFile", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force_delete", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VertexRagDataServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataServiceClient" - }, - "method": { - "shortName": "DeleteRagFile", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService.DeleteRagFile", - "service": { - "shortName": "VertexRagDataService", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_VertexRagDataService_UpdateRagEngineConfig_async", - "title": "DatasetService updateRagEngineConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates a RagEngineConfig.", - "canonical": true, - "file": "vertex_rag_data_service.update_rag_engine_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateRagEngineConfig", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService.UpdateRagEngineConfig", - "async": true, - "parameters": [ - { - "name": "rag_engine_config", - "type": ".google.cloud.aiplatform.v1beta1.RagEngineConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VertexRagDataServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataServiceClient" - }, - "method": { - "shortName": "UpdateRagEngineConfig", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService.UpdateRagEngineConfig", - "service": { - "shortName": "VertexRagDataService", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_VertexRagDataService_GetRagEngineConfig_async", - "title": "DatasetService getRagEngineConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets a RagEngineConfig.", - "canonical": true, - "file": "vertex_rag_data_service.get_rag_engine_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRagEngineConfig", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService.GetRagEngineConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.RagEngineConfig", - "client": { - "shortName": "VertexRagDataServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataServiceClient" - }, - "method": { - "shortName": "GetRagEngineConfig", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService.GetRagEngineConfig", - "service": { - "shortName": "VertexRagDataService", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_VertexRagDataService_CreateRagDataSchema_async", - "title": "DatasetService createRagDataSchema Sample", - "origin": "API_DEFINITION", - "description": " Creates a RagDataSchema.", - "canonical": true, - "file": "vertex_rag_data_service.create_rag_data_schema.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateRagDataSchema", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService.CreateRagDataSchema", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "rag_data_schema", - "type": ".google.cloud.aiplatform.v1beta1.RagDataSchema" - }, - { - "name": "rag_data_schema_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.RagDataSchema", - "client": { - "shortName": "VertexRagDataServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataServiceClient" - }, - "method": { - "shortName": "CreateRagDataSchema", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService.CreateRagDataSchema", - "service": { - "shortName": "VertexRagDataService", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_VertexRagDataService_BatchCreateRagDataSchemas_async", - "title": "DatasetService batchCreateRagDataSchemas Sample", - "origin": "API_DEFINITION", - "description": " Batch Create one or more RagDataSchemas", - "canonical": true, - "file": "vertex_rag_data_service.batch_create_rag_data_schemas.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCreateRagDataSchemas", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService.BatchCreateRagDataSchemas", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VertexRagDataServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataServiceClient" - }, - "method": { - "shortName": "BatchCreateRagDataSchemas", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService.BatchCreateRagDataSchemas", - "service": { - "shortName": "VertexRagDataService", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_VertexRagDataService_GetRagDataSchema_async", - "title": "DatasetService getRagDataSchema Sample", - "origin": "API_DEFINITION", - "description": " Gets a RagDataSchema.", - "canonical": true, - "file": "vertex_rag_data_service.get_rag_data_schema.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRagDataSchema", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService.GetRagDataSchema", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.RagDataSchema", - "client": { - "shortName": "VertexRagDataServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataServiceClient" - }, - "method": { - "shortName": "GetRagDataSchema", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService.GetRagDataSchema", - "service": { - "shortName": "VertexRagDataService", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_VertexRagDataService_ListRagDataSchemas_async", - "title": "DatasetService listRagDataSchemas Sample", - "origin": "API_DEFINITION", - "description": " Lists RagDataSchemas in a Location.", - "canonical": true, - "file": "vertex_rag_data_service.list_rag_data_schemas.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRagDataSchemas", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService.ListRagDataSchemas", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListRagDataSchemasResponse", - "client": { - "shortName": "VertexRagDataServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataServiceClient" - }, - "method": { - "shortName": "ListRagDataSchemas", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService.ListRagDataSchemas", - "service": { - "shortName": "VertexRagDataService", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_VertexRagDataService_DeleteRagDataSchema_async", - "title": "DatasetService deleteRagDataSchema Sample", - "origin": "API_DEFINITION", - "description": " Deletes a RagDataSchema.", - "canonical": true, - "file": "vertex_rag_data_service.delete_rag_data_schema.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteRagDataSchema", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService.DeleteRagDataSchema", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "VertexRagDataServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataServiceClient" - }, - "method": { - "shortName": "DeleteRagDataSchema", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService.DeleteRagDataSchema", - "service": { - "shortName": "VertexRagDataService", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_VertexRagDataService_BatchDeleteRagDataSchemas_async", - "title": "DatasetService batchDeleteRagDataSchemas Sample", - "origin": "API_DEFINITION", - "description": " Batch Deletes one or more RagDataSchemas", - "canonical": true, - "file": "vertex_rag_data_service.batch_delete_rag_data_schemas.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchDeleteRagDataSchemas", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService.BatchDeleteRagDataSchemas", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "names", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VertexRagDataServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataServiceClient" - }, - "method": { - "shortName": "BatchDeleteRagDataSchemas", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService.BatchDeleteRagDataSchemas", - "service": { - "shortName": "VertexRagDataService", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_VertexRagDataService_CreateRagMetadata_async", - "title": "DatasetService createRagMetadata Sample", - "origin": "API_DEFINITION", - "description": " Creates a RagMetadata.", - "canonical": true, - "file": "vertex_rag_data_service.create_rag_metadata.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateRagMetadata", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService.CreateRagMetadata", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "rag_metadata", - "type": ".google.cloud.aiplatform.v1beta1.RagMetadata" - }, - { - "name": "rag_metadata_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.RagMetadata", - "client": { - "shortName": "VertexRagDataServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataServiceClient" - }, - "method": { - "shortName": "CreateRagMetadata", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService.CreateRagMetadata", - "service": { - "shortName": "VertexRagDataService", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_VertexRagDataService_BatchCreateRagMetadata_async", - "title": "DatasetService batchCreateRagMetadata Sample", - "origin": "API_DEFINITION", - "description": " Batch Create one or more RagMetadatas", - "canonical": true, - "file": "vertex_rag_data_service.batch_create_rag_metadata.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCreateRagMetadata", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService.BatchCreateRagMetadata", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VertexRagDataServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataServiceClient" - }, - "method": { - "shortName": "BatchCreateRagMetadata", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService.BatchCreateRagMetadata", - "service": { - "shortName": "VertexRagDataService", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_VertexRagDataService_UpdateRagMetadata_async", - "title": "DatasetService updateRagMetadata Sample", - "origin": "API_DEFINITION", - "description": " Updates a RagMetadata.", - "canonical": true, - "file": "vertex_rag_data_service.update_rag_metadata.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateRagMetadata", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService.UpdateRagMetadata", - "async": true, - "parameters": [ - { - "name": "rag_metadata", - "type": ".google.cloud.aiplatform.v1beta1.RagMetadata" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.RagMetadata", - "client": { - "shortName": "VertexRagDataServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataServiceClient" - }, - "method": { - "shortName": "UpdateRagMetadata", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService.UpdateRagMetadata", - "service": { - "shortName": "VertexRagDataService", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_VertexRagDataService_GetRagMetadata_async", - "title": "DatasetService getRagMetadata Sample", - "origin": "API_DEFINITION", - "description": " Gets a RagMetadata.", - "canonical": true, - "file": "vertex_rag_data_service.get_rag_metadata.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRagMetadata", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService.GetRagMetadata", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.RagMetadata", - "client": { - "shortName": "VertexRagDataServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataServiceClient" - }, - "method": { - "shortName": "GetRagMetadata", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService.GetRagMetadata", - "service": { - "shortName": "VertexRagDataService", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_VertexRagDataService_ListRagMetadata_async", - "title": "DatasetService listRagMetadata Sample", - "origin": "API_DEFINITION", - "description": " Lists RagMetadata in a RagFile.", - "canonical": true, - "file": "vertex_rag_data_service.list_rag_metadata.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRagMetadata", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService.ListRagMetadata", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListRagMetadataResponse", - "client": { - "shortName": "VertexRagDataServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataServiceClient" - }, - "method": { - "shortName": "ListRagMetadata", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService.ListRagMetadata", - "service": { - "shortName": "VertexRagDataService", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_VertexRagDataService_DeleteRagMetadata_async", - "title": "DatasetService deleteRagMetadata Sample", - "origin": "API_DEFINITION", - "description": " Deletes a RagMetadata.", - "canonical": true, - "file": "vertex_rag_data_service.delete_rag_metadata.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteRagMetadata", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService.DeleteRagMetadata", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "VertexRagDataServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataServiceClient" - }, - "method": { - "shortName": "DeleteRagMetadata", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService.DeleteRagMetadata", - "service": { - "shortName": "VertexRagDataService", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_VertexRagDataService_BatchDeleteRagMetadata_async", - "title": "DatasetService batchDeleteRagMetadata Sample", - "origin": "API_DEFINITION", - "description": " Batch Deletes one or more RagMetadata.", - "canonical": true, - "file": "vertex_rag_data_service.batch_delete_rag_metadata.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchDeleteRagMetadata", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService.BatchDeleteRagMetadata", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "names", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VertexRagDataServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataServiceClient" - }, - "method": { - "shortName": "BatchDeleteRagMetadata", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService.BatchDeleteRagMetadata", - "service": { - "shortName": "VertexRagDataService", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagDataService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_VertexRagService_RetrieveContexts_async", - "title": "DatasetService retrieveContexts Sample", - "origin": "API_DEFINITION", - "description": " Retrieves relevant contexts for a query.", - "canonical": true, - "file": "vertex_rag_service.retrieve_contexts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RetrieveContexts", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagService.RetrieveContexts", - "async": true, - "parameters": [ - { - "name": "vertex_rag_store", - "type": ".google.cloud.aiplatform.v1beta1.RetrieveContextsRequest.VertexRagStore" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": ".google.cloud.aiplatform.v1beta1.RagQuery" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.RetrieveContextsResponse", - "client": { - "shortName": "VertexRagServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagServiceClient" - }, - "method": { - "shortName": "RetrieveContexts", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagService.RetrieveContexts", - "service": { - "shortName": "VertexRagService", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_VertexRagService_AugmentPrompt_async", - "title": "DatasetService augmentPrompt Sample", - "origin": "API_DEFINITION", - "description": " Given an input prompt, it returns augmented prompt from vertex rag store to guide LLM towards generating grounded responses.", - "canonical": true, - "file": "vertex_rag_service.augment_prompt.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AugmentPrompt", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagService.AugmentPrompt", - "async": true, - "parameters": [ - { - "name": "vertex_rag_store", - "type": ".google.cloud.aiplatform.v1beta1.VertexRagStore" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "contents", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "model", - "type": ".google.cloud.aiplatform.v1beta1.AugmentPromptRequest.Model" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.AugmentPromptResponse", - "client": { - "shortName": "VertexRagServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagServiceClient" - }, - "method": { - "shortName": "AugmentPrompt", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagService.AugmentPrompt", - "service": { - "shortName": "VertexRagService", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_VertexRagService_CorroborateContent_async", - "title": "DatasetService corroborateContent Sample", - "origin": "API_DEFINITION", - "description": " Given an input text, it returns a score that evaluates the factuality of the text. It also extracts and returns claims from the text and provides supporting facts.", - "canonical": true, - "file": "vertex_rag_service.corroborate_content.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CorroborateContent", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagService.CorroborateContent", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "content", - "type": ".google.cloud.aiplatform.v1beta1.Content" - }, - { - "name": "facts", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "parameters", - "type": ".google.cloud.aiplatform.v1beta1.CorroborateContentRequest.Parameters" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.CorroborateContentResponse", - "client": { - "shortName": "VertexRagServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagServiceClient" - }, - "method": { - "shortName": "CorroborateContent", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagService.CorroborateContent", - "service": { - "shortName": "VertexRagService", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_VertexRagService_AskContexts_async", - "title": "DatasetService askContexts Sample", - "origin": "API_DEFINITION", - "description": " Agentic Retrieval Ask API for RAG.", - "canonical": true, - "file": "vertex_rag_service.ask_contexts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AskContexts", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagService.AskContexts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": ".google.cloud.aiplatform.v1beta1.RagQuery" - }, - { - "name": "tools", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.AskContextsResponse", - "client": { - "shortName": "VertexRagServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagServiceClient" - }, - "method": { - "shortName": "AskContexts", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagService.AskContexts", - "service": { - "shortName": "VertexRagService", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_VertexRagService_AsyncRetrieveContexts_async", - "title": "DatasetService asyncRetrieveContexts Sample", - "origin": "API_DEFINITION", - "description": " Asynchronous API to retrieves relevant contexts for a query.", - "canonical": true, - "file": "vertex_rag_service.async_retrieve_contexts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AsyncRetrieveContexts", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagService.AsyncRetrieveContexts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": ".google.cloud.aiplatform.v1beta1.RagQuery" - }, - { - "name": "tools", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VertexRagServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagServiceClient" - }, - "method": { - "shortName": "AsyncRetrieveContexts", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagService.AsyncRetrieveContexts", - "service": { - "shortName": "VertexRagService", - "fullName": "google.cloud.aiplatform.v1beta1.VertexRagService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_VizierService_CreateStudy_async", - "title": "DatasetService createStudy Sample", - "origin": "API_DEFINITION", - "description": " Creates a Study. A resource name will be generated after creation of the Study.", - "canonical": true, - "file": "vizier_service.create_study.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateStudy", - "fullName": "google.cloud.aiplatform.v1beta1.VizierService.CreateStudy", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "study", - "type": ".google.cloud.aiplatform.v1beta1.Study" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.Study", - "client": { - "shortName": "VizierServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.VizierServiceClient" - }, - "method": { - "shortName": "CreateStudy", - "fullName": "google.cloud.aiplatform.v1beta1.VizierService.CreateStudy", - "service": { - "shortName": "VizierService", - "fullName": "google.cloud.aiplatform.v1beta1.VizierService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_VizierService_GetStudy_async", - "title": "DatasetService getStudy Sample", - "origin": "API_DEFINITION", - "description": " Gets a Study by name.", - "canonical": true, - "file": "vizier_service.get_study.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetStudy", - "fullName": "google.cloud.aiplatform.v1beta1.VizierService.GetStudy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.Study", - "client": { - "shortName": "VizierServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.VizierServiceClient" - }, - "method": { - "shortName": "GetStudy", - "fullName": "google.cloud.aiplatform.v1beta1.VizierService.GetStudy", - "service": { - "shortName": "VizierService", - "fullName": "google.cloud.aiplatform.v1beta1.VizierService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_VizierService_ListStudies_async", - "title": "DatasetService listStudies Sample", - "origin": "API_DEFINITION", - "description": " Lists all the studies in a region for an associated project.", - "canonical": true, - "file": "vizier_service.list_studies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListStudies", - "fullName": "google.cloud.aiplatform.v1beta1.VizierService.ListStudies", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListStudiesResponse", - "client": { - "shortName": "VizierServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.VizierServiceClient" - }, - "method": { - "shortName": "ListStudies", - "fullName": "google.cloud.aiplatform.v1beta1.VizierService.ListStudies", - "service": { - "shortName": "VizierService", - "fullName": "google.cloud.aiplatform.v1beta1.VizierService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_VizierService_DeleteStudy_async", - "title": "DatasetService deleteStudy Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Study.", - "canonical": true, - "file": "vizier_service.delete_study.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteStudy", - "fullName": "google.cloud.aiplatform.v1beta1.VizierService.DeleteStudy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "VizierServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.VizierServiceClient" - }, - "method": { - "shortName": "DeleteStudy", - "fullName": "google.cloud.aiplatform.v1beta1.VizierService.DeleteStudy", - "service": { - "shortName": "VizierService", - "fullName": "google.cloud.aiplatform.v1beta1.VizierService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_VizierService_LookupStudy_async", - "title": "DatasetService lookupStudy Sample", - "origin": "API_DEFINITION", - "description": " Looks a study up using the user-defined display_name field instead of the fully qualified resource name.", - "canonical": true, - "file": "vizier_service.lookup_study.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "LookupStudy", - "fullName": "google.cloud.aiplatform.v1beta1.VizierService.LookupStudy", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "display_name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.Study", - "client": { - "shortName": "VizierServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.VizierServiceClient" - }, - "method": { - "shortName": "LookupStudy", - "fullName": "google.cloud.aiplatform.v1beta1.VizierService.LookupStudy", - "service": { - "shortName": "VizierService", - "fullName": "google.cloud.aiplatform.v1beta1.VizierService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_VizierService_SuggestTrials_async", - "title": "DatasetService suggestTrials Sample", - "origin": "API_DEFINITION", - "description": " Adds one or more Trials to a Study, with parameter values suggested by Vertex AI Vizier. Returns a long-running operation associated with the generation of Trial suggestions. When this long-running operation succeeds, it will contain a [SuggestTrialsResponse][google.cloud.aiplatform.v1beta1.SuggestTrialsResponse].", - "canonical": true, - "file": "vizier_service.suggest_trials.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 105, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SuggestTrials", - "fullName": "google.cloud.aiplatform.v1beta1.VizierService.SuggestTrials", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "suggestion_count", - "type": "TYPE_INT32" - }, - { - "name": "client_id", - "type": "TYPE_STRING" - }, - { - "name": "contexts", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VizierServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.VizierServiceClient" - }, - "method": { - "shortName": "SuggestTrials", - "fullName": "google.cloud.aiplatform.v1beta1.VizierService.SuggestTrials", - "service": { - "shortName": "VizierService", - "fullName": "google.cloud.aiplatform.v1beta1.VizierService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_VizierService_CreateTrial_async", - "title": "DatasetService createTrial Sample", - "origin": "API_DEFINITION", - "description": " Adds a user provided Trial to a Study.", - "canonical": true, - "file": "vizier_service.create_trial.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTrial", - "fullName": "google.cloud.aiplatform.v1beta1.VizierService.CreateTrial", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "trial", - "type": ".google.cloud.aiplatform.v1beta1.Trial" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.Trial", - "client": { - "shortName": "VizierServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.VizierServiceClient" - }, - "method": { - "shortName": "CreateTrial", - "fullName": "google.cloud.aiplatform.v1beta1.VizierService.CreateTrial", - "service": { - "shortName": "VizierService", - "fullName": "google.cloud.aiplatform.v1beta1.VizierService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_VizierService_GetTrial_async", - "title": "DatasetService getTrial Sample", - "origin": "API_DEFINITION", - "description": " Gets a Trial.", - "canonical": true, - "file": "vizier_service.get_trial.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTrial", - "fullName": "google.cloud.aiplatform.v1beta1.VizierService.GetTrial", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.Trial", - "client": { - "shortName": "VizierServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.VizierServiceClient" - }, - "method": { - "shortName": "GetTrial", - "fullName": "google.cloud.aiplatform.v1beta1.VizierService.GetTrial", - "service": { - "shortName": "VizierService", - "fullName": "google.cloud.aiplatform.v1beta1.VizierService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_VizierService_ListTrials_async", - "title": "DatasetService listTrials Sample", - "origin": "API_DEFINITION", - "description": " Lists the Trials associated with a Study.", - "canonical": true, - "file": "vizier_service.list_trials.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTrials", - "fullName": "google.cloud.aiplatform.v1beta1.VizierService.ListTrials", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListTrialsResponse", - "client": { - "shortName": "VizierServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.VizierServiceClient" - }, - "method": { - "shortName": "ListTrials", - "fullName": "google.cloud.aiplatform.v1beta1.VizierService.ListTrials", - "service": { - "shortName": "VizierService", - "fullName": "google.cloud.aiplatform.v1beta1.VizierService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_VizierService_AddTrialMeasurement_async", - "title": "DatasetService addTrialMeasurement Sample", - "origin": "API_DEFINITION", - "description": " Adds a measurement of the objective metrics to a Trial. This measurement is assumed to have been taken before the Trial is complete.", - "canonical": true, - "file": "vizier_service.add_trial_measurement.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddTrialMeasurement", - "fullName": "google.cloud.aiplatform.v1beta1.VizierService.AddTrialMeasurement", - "async": true, - "parameters": [ - { - "name": "trial_name", - "type": "TYPE_STRING" - }, - { - "name": "measurement", - "type": ".google.cloud.aiplatform.v1beta1.Measurement" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.Trial", - "client": { - "shortName": "VizierServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.VizierServiceClient" - }, - "method": { - "shortName": "AddTrialMeasurement", - "fullName": "google.cloud.aiplatform.v1beta1.VizierService.AddTrialMeasurement", - "service": { - "shortName": "VizierService", - "fullName": "google.cloud.aiplatform.v1beta1.VizierService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_VizierService_CompleteTrial_async", - "title": "DatasetService completeTrial Sample", - "origin": "API_DEFINITION", - "description": " Marks a Trial as complete.", - "canonical": true, - "file": "vizier_service.complete_trial.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CompleteTrial", - "fullName": "google.cloud.aiplatform.v1beta1.VizierService.CompleteTrial", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "final_measurement", - "type": ".google.cloud.aiplatform.v1beta1.Measurement" - }, - { - "name": "trial_infeasible", - "type": "TYPE_BOOL" - }, - { - "name": "infeasible_reason", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.Trial", - "client": { - "shortName": "VizierServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.VizierServiceClient" - }, - "method": { - "shortName": "CompleteTrial", - "fullName": "google.cloud.aiplatform.v1beta1.VizierService.CompleteTrial", - "service": { - "shortName": "VizierService", - "fullName": "google.cloud.aiplatform.v1beta1.VizierService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_VizierService_DeleteTrial_async", - "title": "DatasetService deleteTrial Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Trial.", - "canonical": true, - "file": "vizier_service.delete_trial.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTrial", - "fullName": "google.cloud.aiplatform.v1beta1.VizierService.DeleteTrial", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "VizierServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.VizierServiceClient" - }, - "method": { - "shortName": "DeleteTrial", - "fullName": "google.cloud.aiplatform.v1beta1.VizierService.DeleteTrial", - "service": { - "shortName": "VizierService", - "fullName": "google.cloud.aiplatform.v1beta1.VizierService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_VizierService_CheckTrialEarlyStoppingState_async", - "title": "DatasetService checkTrialEarlyStoppingState Sample", - "origin": "API_DEFINITION", - "description": " Checks whether a Trial should stop or not. Returns a long-running operation. When the operation is successful, it will contain a [CheckTrialEarlyStoppingStateResponse][google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateResponse].", - "canonical": true, - "file": "vizier_service.check_trial_early_stopping_state.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CheckTrialEarlyStoppingState", - "fullName": "google.cloud.aiplatform.v1beta1.VizierService.CheckTrialEarlyStoppingState", - "async": true, - "parameters": [ - { - "name": "trial_name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VizierServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.VizierServiceClient" - }, - "method": { - "shortName": "CheckTrialEarlyStoppingState", - "fullName": "google.cloud.aiplatform.v1beta1.VizierService.CheckTrialEarlyStoppingState", - "service": { - "shortName": "VizierService", - "fullName": "google.cloud.aiplatform.v1beta1.VizierService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_VizierService_StopTrial_async", - "title": "DatasetService stopTrial Sample", - "origin": "API_DEFINITION", - "description": " Stops a Trial.", - "canonical": true, - "file": "vizier_service.stop_trial.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StopTrial", - "fullName": "google.cloud.aiplatform.v1beta1.VizierService.StopTrial", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.Trial", - "client": { - "shortName": "VizierServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.VizierServiceClient" - }, - "method": { - "shortName": "StopTrial", - "fullName": "google.cloud.aiplatform.v1beta1.VizierService.StopTrial", - "service": { - "shortName": "VizierService", - "fullName": "google.cloud.aiplatform.v1beta1.VizierService" - } - } - } - }, - { - "regionTag": "aiplatform_v1beta1_generated_VizierService_ListOptimalTrials_async", - "title": "DatasetService listOptimalTrials Sample", - "origin": "API_DEFINITION", - "description": " Lists the pareto-optimal Trials for multi-objective Study or the optimal Trials for single-objective Study. The definition of pareto-optimal can be checked in wiki page. https://en.wikipedia.org/wiki/Pareto_efficiency", - "canonical": true, - "file": "vizier_service.list_optimal_trials.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListOptimalTrials", - "fullName": "google.cloud.aiplatform.v1beta1.VizierService.ListOptimalTrials", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.aiplatform.v1beta1.ListOptimalTrialsResponse", - "client": { - "shortName": "VizierServiceClient", - "fullName": "google.cloud.aiplatform.v1beta1.VizierServiceClient" - }, - "method": { - "shortName": "ListOptimalTrials", - "fullName": "google.cloud.aiplatform.v1beta1.VizierService.ListOptimalTrials", - "service": { - "shortName": "VizierService", - "fullName": "google.cloud.aiplatform.v1beta1.VizierService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-alloydb/samples/generated/v1/snippet_metadata_google.cloud.alloydb.v1.json b/packages/google-cloud-alloydb/samples/generated/v1/snippet_metadata_google.cloud.alloydb.v1.json deleted file mode 100644 index 6c5124258ffe..000000000000 --- a/packages/google-cloud-alloydb/samples/generated/v1/snippet_metadata_google.cloud.alloydb.v1.json +++ /dev/null @@ -1,2027 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-alloydb", - "version": "2.5.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.alloydb.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "alloydb_v1_generated_AlloyDBAdmin_ListClusters_async", - "title": "AlloyDBAdmin listClusters Sample", - "origin": "API_DEFINITION", - "description": " Lists Clusters in a given project and location.", - "canonical": true, - "file": "alloy_d_b_admin.list_clusters.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListClusters", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.ListClusters", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.alloydb.v1.ListClustersResponse", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdminClient" - }, - "method": { - "shortName": "ListClusters", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.ListClusters", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1_generated_AlloyDBAdmin_GetCluster_async", - "title": "AlloyDBAdmin getCluster Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Cluster.", - "canonical": true, - "file": "alloy_d_b_admin.get_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCluster", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.GetCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.alloydb.v1.ClusterView" - } - ], - "resultType": ".google.cloud.alloydb.v1.Cluster", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdminClient" - }, - "method": { - "shortName": "GetCluster", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.GetCluster", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1_generated_AlloyDBAdmin_CreateCluster_async", - "title": "AlloyDBAdmin createCluster Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Cluster in a given project and location.", - "canonical": true, - "file": "alloy_d_b_admin.create_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCluster", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.CreateCluster", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "cluster", - "type": ".google.cloud.alloydb.v1.Cluster" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdminClient" - }, - "method": { - "shortName": "CreateCluster", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.CreateCluster", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1_generated_AlloyDBAdmin_UpdateCluster_async", - "title": "AlloyDBAdmin updateCluster Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Cluster.", - "canonical": true, - "file": "alloy_d_b_admin.update_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCluster", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.UpdateCluster", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "cluster", - "type": ".google.cloud.alloydb.v1.Cluster" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdminClient" - }, - "method": { - "shortName": "UpdateCluster", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.UpdateCluster", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1_generated_AlloyDBAdmin_ExportCluster_async", - "title": "AlloyDBAdmin exportCluster Sample", - "origin": "API_DEFINITION", - "description": " Exports data from the cluster. Imperative only.", - "canonical": true, - "file": "alloy_d_b_admin.export_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportCluster", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.ExportCluster", - "async": true, - "parameters": [ - { - "name": "gcs_destination", - "type": ".google.cloud.alloydb.v1.GcsDestination" - }, - { - "name": "csv_export_options", - "type": ".google.cloud.alloydb.v1.ExportClusterRequest.CsvExportOptions" - }, - { - "name": "sql_export_options", - "type": ".google.cloud.alloydb.v1.ExportClusterRequest.SqlExportOptions" - }, - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "database", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdminClient" - }, - "method": { - "shortName": "ExportCluster", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.ExportCluster", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1_generated_AlloyDBAdmin_ImportCluster_async", - "title": "AlloyDBAdmin importCluster Sample", - "origin": "API_DEFINITION", - "description": " Imports data to the cluster. Imperative only.", - "canonical": true, - "file": "alloy_d_b_admin.import_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportCluster", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.ImportCluster", - "async": true, - "parameters": [ - { - "name": "sql_import_options", - "type": ".google.cloud.alloydb.v1.ImportClusterRequest.SqlImportOptions" - }, - { - "name": "csv_import_options", - "type": ".google.cloud.alloydb.v1.ImportClusterRequest.CsvImportOptions" - }, - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "gcs_uri", - "type": "TYPE_STRING" - }, - { - "name": "database", - "type": "TYPE_STRING" - }, - { - "name": "user", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdminClient" - }, - "method": { - "shortName": "ImportCluster", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.ImportCluster", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1_generated_AlloyDBAdmin_UpgradeCluster_async", - "title": "AlloyDBAdmin upgradeCluster Sample", - "origin": "API_DEFINITION", - "description": " Upgrades a single Cluster. Imperative only.", - "canonical": true, - "file": "alloy_d_b_admin.upgrade_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpgradeCluster", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.UpgradeCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "version", - "type": ".google.cloud.alloydb.v1.DatabaseVersion" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdminClient" - }, - "method": { - "shortName": "UpgradeCluster", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.UpgradeCluster", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1_generated_AlloyDBAdmin_DeleteCluster_async", - "title": "AlloyDBAdmin deleteCluster Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Cluster.", - "canonical": true, - "file": "alloy_d_b_admin.delete_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCluster", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.DeleteCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdminClient" - }, - "method": { - "shortName": "DeleteCluster", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.DeleteCluster", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1_generated_AlloyDBAdmin_PromoteCluster_async", - "title": "AlloyDBAdmin promoteCluster Sample", - "origin": "API_DEFINITION", - "description": " Promotes a SECONDARY cluster. This turns down replication from the PRIMARY cluster and promotes a secondary cluster into its own standalone cluster. Imperative only.", - "canonical": true, - "file": "alloy_d_b_admin.promote_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PromoteCluster", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.PromoteCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdminClient" - }, - "method": { - "shortName": "PromoteCluster", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.PromoteCluster", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1_generated_AlloyDBAdmin_SwitchoverCluster_async", - "title": "AlloyDBAdmin switchoverCluster Sample", - "origin": "API_DEFINITION", - "description": " Switches the roles of PRIMARY and SECONDARY clusters without any data loss. This promotes the SECONDARY cluster to PRIMARY and sets up the original PRIMARY cluster to replicate from this newly promoted cluster.", - "canonical": true, - "file": "alloy_d_b_admin.switchover_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SwitchoverCluster", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.SwitchoverCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdminClient" - }, - "method": { - "shortName": "SwitchoverCluster", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.SwitchoverCluster", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1_generated_AlloyDBAdmin_RestoreCluster_async", - "title": "AlloyDBAdmin restoreCluster Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Cluster in a given project and location, with a volume restored from the provided source, either a backup ID or a point-in-time and a source cluster.", - "canonical": true, - "file": "alloy_d_b_admin.restore_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 94, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RestoreCluster", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.RestoreCluster", - "async": true, - "parameters": [ - { - "name": "backup_source", - "type": ".google.cloud.alloydb.v1.BackupSource" - }, - { - "name": "continuous_backup_source", - "type": ".google.cloud.alloydb.v1.ContinuousBackupSource" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "cluster", - "type": ".google.cloud.alloydb.v1.Cluster" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdminClient" - }, - "method": { - "shortName": "RestoreCluster", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.RestoreCluster", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1_generated_AlloyDBAdmin_CreateSecondaryCluster_async", - "title": "AlloyDBAdmin createSecondaryCluster Sample", - "origin": "API_DEFINITION", - "description": " Creates a cluster of type SECONDARY in the given location using the primary cluster as the source.", - "canonical": true, - "file": "alloy_d_b_admin.create_secondary_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSecondaryCluster", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.CreateSecondaryCluster", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "cluster", - "type": ".google.cloud.alloydb.v1.Cluster" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdminClient" - }, - "method": { - "shortName": "CreateSecondaryCluster", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.CreateSecondaryCluster", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1_generated_AlloyDBAdmin_ListInstances_async", - "title": "AlloyDBAdmin listInstances Sample", - "origin": "API_DEFINITION", - "description": " Lists Instances in a given project and location.", - "canonical": true, - "file": "alloy_d_b_admin.list_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListInstances", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.ListInstances", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.alloydb.v1.ListInstancesResponse", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdminClient" - }, - "method": { - "shortName": "ListInstances", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.ListInstances", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1_generated_AlloyDBAdmin_GetInstance_async", - "title": "AlloyDBAdmin getInstance Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Instance.", - "canonical": true, - "file": "alloy_d_b_admin.get_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetInstance", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.GetInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.alloydb.v1.InstanceView" - } - ], - "resultType": ".google.cloud.alloydb.v1.Instance", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdminClient" - }, - "method": { - "shortName": "GetInstance", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.GetInstance", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1_generated_AlloyDBAdmin_CreateInstance_async", - "title": "AlloyDBAdmin createInstance Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Instance in a given project and location.", - "canonical": true, - "file": "alloy_d_b_admin.create_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateInstance", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.CreateInstance", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "instance_id", - "type": "TYPE_STRING" - }, - { - "name": "instance", - "type": ".google.cloud.alloydb.v1.Instance" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdminClient" - }, - "method": { - "shortName": "CreateInstance", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.CreateInstance", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1_generated_AlloyDBAdmin_CreateSecondaryInstance_async", - "title": "AlloyDBAdmin createSecondaryInstance Sample", - "origin": "API_DEFINITION", - "description": " Creates a new SECONDARY Instance in a given project and location.", - "canonical": true, - "file": "alloy_d_b_admin.create_secondary_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSecondaryInstance", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.CreateSecondaryInstance", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "instance_id", - "type": "TYPE_STRING" - }, - { - "name": "instance", - "type": ".google.cloud.alloydb.v1.Instance" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdminClient" - }, - "method": { - "shortName": "CreateSecondaryInstance", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.CreateSecondaryInstance", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1_generated_AlloyDBAdmin_BatchCreateInstances_async", - "title": "AlloyDBAdmin batchCreateInstances Sample", - "origin": "API_DEFINITION", - "description": " Creates new instances under the given project, location and cluster. There can be only one primary instance in a cluster. If the primary instance exists in the cluster as well as this request, then API will throw an error. The primary instance should exist before any read pool instance is created. If the primary instance is a part of the request payload, then the API will take care of creating instances in the correct order. This method is here to support Google-internal use cases, and is not meant for external customers to consume. Please do not start relying on it; its behavior is subject to change without notice.", - "canonical": true, - "file": "alloy_d_b_admin.batch_create_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCreateInstances", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.BatchCreateInstances", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": ".google.cloud.alloydb.v1.CreateInstanceRequests" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdminClient" - }, - "method": { - "shortName": "BatchCreateInstances", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.BatchCreateInstances", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1_generated_AlloyDBAdmin_UpdateInstance_async", - "title": "AlloyDBAdmin updateInstance Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Instance.", - "canonical": true, - "file": "alloy_d_b_admin.update_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateInstance", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.UpdateInstance", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "instance", - "type": ".google.cloud.alloydb.v1.Instance" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdminClient" - }, - "method": { - "shortName": "UpdateInstance", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.UpdateInstance", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1_generated_AlloyDBAdmin_DeleteInstance_async", - "title": "AlloyDBAdmin deleteInstance Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Instance.", - "canonical": true, - "file": "alloy_d_b_admin.delete_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteInstance", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.DeleteInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdminClient" - }, - "method": { - "shortName": "DeleteInstance", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.DeleteInstance", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1_generated_AlloyDBAdmin_FailoverInstance_async", - "title": "AlloyDBAdmin failoverInstance Sample", - "origin": "API_DEFINITION", - "description": " Forces a Failover for a highly available instance. Failover promotes the HA standby instance as the new primary. Imperative only.", - "canonical": true, - "file": "alloy_d_b_admin.failover_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FailoverInstance", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.FailoverInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdminClient" - }, - "method": { - "shortName": "FailoverInstance", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.FailoverInstance", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1_generated_AlloyDBAdmin_InjectFault_async", - "title": "AlloyDBAdmin injectFault Sample", - "origin": "API_DEFINITION", - "description": " Injects fault in an instance. Imperative only.", - "canonical": true, - "file": "alloy_d_b_admin.inject_fault.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "InjectFault", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.InjectFault", - "async": true, - "parameters": [ - { - "name": "fault_type", - "type": ".google.cloud.alloydb.v1.InjectFaultRequest.FaultType" - }, - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdminClient" - }, - "method": { - "shortName": "InjectFault", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.InjectFault", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1_generated_AlloyDBAdmin_RestartInstance_async", - "title": "AlloyDBAdmin restartInstance Sample", - "origin": "API_DEFINITION", - "description": " Restart an Instance in a cluster. Imperative only.", - "canonical": true, - "file": "alloy_d_b_admin.restart_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RestartInstance", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.RestartInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "node_ids", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdminClient" - }, - "method": { - "shortName": "RestartInstance", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.RestartInstance", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1_generated_AlloyDBAdmin_ExecuteSql_async", - "title": "AlloyDBAdmin executeSql Sample", - "origin": "API_DEFINITION", - "description": " Executes a SQL statement in a database inside an AlloyDB instance.", - "canonical": true, - "file": "alloy_d_b_admin.execute_sql.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExecuteSql", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.ExecuteSql", - "async": true, - "parameters": [ - { - "name": "password", - "type": "TYPE_STRING" - }, - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "database", - "type": "TYPE_STRING" - }, - { - "name": "user", - "type": "TYPE_STRING" - }, - { - "name": "sql_statement", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.alloydb.v1.ExecuteSqlResponse", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdminClient" - }, - "method": { - "shortName": "ExecuteSql", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.ExecuteSql", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1_generated_AlloyDBAdmin_ListBackups_async", - "title": "AlloyDBAdmin listBackups Sample", - "origin": "API_DEFINITION", - "description": " Lists Backups in a given project and location.", - "canonical": true, - "file": "alloy_d_b_admin.list_backups.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBackups", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.ListBackups", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.alloydb.v1.ListBackupsResponse", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdminClient" - }, - "method": { - "shortName": "ListBackups", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.ListBackups", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1_generated_AlloyDBAdmin_GetBackup_async", - "title": "AlloyDBAdmin getBackup Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Backup.", - "canonical": true, - "file": "alloy_d_b_admin.get_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBackup", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.GetBackup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.alloydb.v1.Backup", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdminClient" - }, - "method": { - "shortName": "GetBackup", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.GetBackup", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1_generated_AlloyDBAdmin_CreateBackup_async", - "title": "AlloyDBAdmin createBackup Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Backup in a given project and location.", - "canonical": true, - "file": "alloy_d_b_admin.create_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateBackup", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.CreateBackup", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "backup_id", - "type": "TYPE_STRING" - }, - { - "name": "backup", - "type": ".google.cloud.alloydb.v1.Backup" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdminClient" - }, - "method": { - "shortName": "CreateBackup", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.CreateBackup", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1_generated_AlloyDBAdmin_UpdateBackup_async", - "title": "AlloyDBAdmin updateBackup Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Backup.", - "canonical": true, - "file": "alloy_d_b_admin.update_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateBackup", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.UpdateBackup", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "backup", - "type": ".google.cloud.alloydb.v1.Backup" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdminClient" - }, - "method": { - "shortName": "UpdateBackup", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.UpdateBackup", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1_generated_AlloyDBAdmin_DeleteBackup_async", - "title": "AlloyDBAdmin deleteBackup Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Backup.", - "canonical": true, - "file": "alloy_d_b_admin.delete_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteBackup", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.DeleteBackup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdminClient" - }, - "method": { - "shortName": "DeleteBackup", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.DeleteBackup", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1_generated_AlloyDBAdmin_ListSupportedDatabaseFlags_async", - "title": "AlloyDBAdmin listSupportedDatabaseFlags Sample", - "origin": "API_DEFINITION", - "description": " Lists SupportedDatabaseFlags for a given project and location.", - "canonical": true, - "file": "alloy_d_b_admin.list_supported_database_flags.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSupportedDatabaseFlags", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.ListSupportedDatabaseFlags", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "scope", - "type": ".google.cloud.alloydb.v1.SupportedDatabaseFlag.Scope" - } - ], - "resultType": ".google.cloud.alloydb.v1.ListSupportedDatabaseFlagsResponse", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdminClient" - }, - "method": { - "shortName": "ListSupportedDatabaseFlags", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.ListSupportedDatabaseFlags", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1_generated_AlloyDBAdmin_GenerateClientCertificate_async", - "title": "AlloyDBAdmin generateClientCertificate Sample", - "origin": "API_DEFINITION", - "description": " Generate a client certificate signed by a Cluster CA. The sole purpose of this endpoint is to support AlloyDB connectors and the Auth Proxy client. The endpoint's behavior is subject to change without notice, so do not rely on its behavior remaining constant. Future changes will not break AlloyDB connectors or the Auth Proxy client.", - "canonical": true, - "file": "alloy_d_b_admin.generate_client_certificate.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateClientCertificate", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.GenerateClientCertificate", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "cert_duration", - "type": ".google.protobuf.Duration" - }, - { - "name": "public_key", - "type": "TYPE_STRING" - }, - { - "name": "use_metadata_exchange", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.alloydb.v1.GenerateClientCertificateResponse", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdminClient" - }, - "method": { - "shortName": "GenerateClientCertificate", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.GenerateClientCertificate", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1_generated_AlloyDBAdmin_GetConnectionInfo_async", - "title": "AlloyDBAdmin getConnectionInfo Sample", - "origin": "API_DEFINITION", - "description": " Get instance metadata used for a connection.", - "canonical": true, - "file": "alloy_d_b_admin.get_connection_info.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetConnectionInfo", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.GetConnectionInfo", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.alloydb.v1.ConnectionInfo", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdminClient" - }, - "method": { - "shortName": "GetConnectionInfo", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.GetConnectionInfo", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1_generated_AlloyDBAdmin_ListUsers_async", - "title": "AlloyDBAdmin listUsers Sample", - "origin": "API_DEFINITION", - "description": " Lists Users in a given project and location.", - "canonical": true, - "file": "alloy_d_b_admin.list_users.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListUsers", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.ListUsers", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.alloydb.v1.ListUsersResponse", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdminClient" - }, - "method": { - "shortName": "ListUsers", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.ListUsers", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1_generated_AlloyDBAdmin_GetUser_async", - "title": "AlloyDBAdmin getUser Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single User.", - "canonical": true, - "file": "alloy_d_b_admin.get_user.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetUser", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.GetUser", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.alloydb.v1.User", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdminClient" - }, - "method": { - "shortName": "GetUser", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.GetUser", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1_generated_AlloyDBAdmin_CreateUser_async", - "title": "AlloyDBAdmin createUser Sample", - "origin": "API_DEFINITION", - "description": " Creates a new User in a given project, location, and cluster.", - "canonical": true, - "file": "alloy_d_b_admin.create_user.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateUser", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.CreateUser", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "user_id", - "type": "TYPE_STRING" - }, - { - "name": "user", - "type": ".google.cloud.alloydb.v1.User" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.alloydb.v1.User", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdminClient" - }, - "method": { - "shortName": "CreateUser", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.CreateUser", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1_generated_AlloyDBAdmin_UpdateUser_async", - "title": "AlloyDBAdmin updateUser Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single User.", - "canonical": true, - "file": "alloy_d_b_admin.update_user.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateUser", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.UpdateUser", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "user", - "type": ".google.cloud.alloydb.v1.User" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.alloydb.v1.User", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdminClient" - }, - "method": { - "shortName": "UpdateUser", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.UpdateUser", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1_generated_AlloyDBAdmin_DeleteUser_async", - "title": "AlloyDBAdmin deleteUser Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single User.", - "canonical": true, - "file": "alloy_d_b_admin.delete_user.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteUser", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.DeleteUser", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdminClient" - }, - "method": { - "shortName": "DeleteUser", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.DeleteUser", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1_generated_AlloyDBAdmin_ListDatabases_async", - "title": "AlloyDBAdmin listDatabases Sample", - "origin": "API_DEFINITION", - "description": " Lists Databases in a given project and location.", - "canonical": true, - "file": "alloy_d_b_admin.list_databases.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDatabases", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.ListDatabases", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.alloydb.v1.ListDatabasesResponse", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdminClient" - }, - "method": { - "shortName": "ListDatabases", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin.ListDatabases", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1_generated_AlloyDBCSQLAdmin_RestoreFromCloudSQL_async", - "title": "AlloyDBAdmin restoreFromCloudSQL Sample", - "origin": "API_DEFINITION", - "description": " Restores an AlloyDB cluster from a CloudSQL resource.", - "canonical": true, - "file": "alloy_d_b_c_s_q_l_admin.restore_from_cloud_s_q_l.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RestoreFromCloudSQL", - "fullName": "google.cloud.alloydb.v1.AlloyDBCSQLAdmin.RestoreFromCloudSQL", - "async": true, - "parameters": [ - { - "name": "cloudsql_backup_run_source", - "type": ".google.cloud.alloydb.v1.CloudSQLBackupRunSource" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "cluster", - "type": ".google.cloud.alloydb.v1.Cluster" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBCSQLAdminClient", - "fullName": "google.cloud.alloydb.v1.AlloyDBCSQLAdminClient" - }, - "method": { - "shortName": "RestoreFromCloudSQL", - "fullName": "google.cloud.alloydb.v1.AlloyDBCSQLAdmin.RestoreFromCloudSQL", - "service": { - "shortName": "AlloyDBCSQLAdmin", - "fullName": "google.cloud.alloydb.v1.AlloyDBCSQLAdmin" - } - } - } - } - ] -} diff --git a/packages/google-cloud-alloydb/samples/generated/v1alpha/snippet_metadata_google.cloud.alloydb.v1alpha.json b/packages/google-cloud-alloydb/samples/generated/v1alpha/snippet_metadata_google.cloud.alloydb.v1alpha.json deleted file mode 100644 index 0c4fd06b5755..000000000000 --- a/packages/google-cloud-alloydb/samples/generated/v1alpha/snippet_metadata_google.cloud.alloydb.v1alpha.json +++ /dev/null @@ -1,2079 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-alloydb", - "version": "2.5.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.alloydb.v1alpha", - "version": "v1alpha" - } - ] - }, - "snippets": [ - { - "regionTag": "alloydb_v1alpha_generated_AlloyDBAdmin_ListClusters_async", - "title": "AlloyDBAdmin listClusters Sample", - "origin": "API_DEFINITION", - "description": " Lists Clusters in a given project and location.", - "canonical": true, - "file": "alloy_d_b_admin.list_clusters.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListClusters", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.ListClusters", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.alloydb.v1alpha.ListClustersResponse", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdminClient" - }, - "method": { - "shortName": "ListClusters", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.ListClusters", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1alpha_generated_AlloyDBAdmin_GetCluster_async", - "title": "AlloyDBAdmin getCluster Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Cluster.", - "canonical": true, - "file": "alloy_d_b_admin.get_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCluster", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.GetCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.alloydb.v1alpha.ClusterView" - } - ], - "resultType": ".google.cloud.alloydb.v1alpha.Cluster", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdminClient" - }, - "method": { - "shortName": "GetCluster", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.GetCluster", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1alpha_generated_AlloyDBAdmin_CreateCluster_async", - "title": "AlloyDBAdmin createCluster Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Cluster in a given project and location.", - "canonical": true, - "file": "alloy_d_b_admin.create_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCluster", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.CreateCluster", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "cluster", - "type": ".google.cloud.alloydb.v1alpha.Cluster" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdminClient" - }, - "method": { - "shortName": "CreateCluster", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.CreateCluster", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1alpha_generated_AlloyDBAdmin_UpdateCluster_async", - "title": "AlloyDBAdmin updateCluster Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Cluster.", - "canonical": true, - "file": "alloy_d_b_admin.update_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCluster", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.UpdateCluster", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "cluster", - "type": ".google.cloud.alloydb.v1alpha.Cluster" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdminClient" - }, - "method": { - "shortName": "UpdateCluster", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.UpdateCluster", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1alpha_generated_AlloyDBAdmin_ExportCluster_async", - "title": "AlloyDBAdmin exportCluster Sample", - "origin": "API_DEFINITION", - "description": " Exports data from the cluster. Imperative only.", - "canonical": true, - "file": "alloy_d_b_admin.export_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportCluster", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.ExportCluster", - "async": true, - "parameters": [ - { - "name": "gcs_destination", - "type": ".google.cloud.alloydb.v1alpha.GcsDestination" - }, - { - "name": "csv_export_options", - "type": ".google.cloud.alloydb.v1alpha.ExportClusterRequest.CsvExportOptions" - }, - { - "name": "sql_export_options", - "type": ".google.cloud.alloydb.v1alpha.ExportClusterRequest.SqlExportOptions" - }, - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "database", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdminClient" - }, - "method": { - "shortName": "ExportCluster", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.ExportCluster", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1alpha_generated_AlloyDBAdmin_ImportCluster_async", - "title": "AlloyDBAdmin importCluster Sample", - "origin": "API_DEFINITION", - "description": " Imports data to the cluster. Imperative only.", - "canonical": true, - "file": "alloy_d_b_admin.import_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportCluster", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.ImportCluster", - "async": true, - "parameters": [ - { - "name": "sql_import_options", - "type": ".google.cloud.alloydb.v1alpha.ImportClusterRequest.SqlImportOptions" - }, - { - "name": "csv_import_options", - "type": ".google.cloud.alloydb.v1alpha.ImportClusterRequest.CsvImportOptions" - }, - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "gcs_uri", - "type": "TYPE_STRING" - }, - { - "name": "database", - "type": "TYPE_STRING" - }, - { - "name": "user", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdminClient" - }, - "method": { - "shortName": "ImportCluster", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.ImportCluster", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1alpha_generated_AlloyDBAdmin_UpgradeCluster_async", - "title": "AlloyDBAdmin upgradeCluster Sample", - "origin": "API_DEFINITION", - "description": " Upgrades a single Cluster. Imperative only.", - "canonical": true, - "file": "alloy_d_b_admin.upgrade_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpgradeCluster", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.UpgradeCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "version", - "type": ".google.cloud.alloydb.v1alpha.DatabaseVersion" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdminClient" - }, - "method": { - "shortName": "UpgradeCluster", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.UpgradeCluster", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1alpha_generated_AlloyDBAdmin_DeleteCluster_async", - "title": "AlloyDBAdmin deleteCluster Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Cluster.", - "canonical": true, - "file": "alloy_d_b_admin.delete_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCluster", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.DeleteCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdminClient" - }, - "method": { - "shortName": "DeleteCluster", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.DeleteCluster", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1alpha_generated_AlloyDBAdmin_PromoteCluster_async", - "title": "AlloyDBAdmin promoteCluster Sample", - "origin": "API_DEFINITION", - "description": " Promotes a SECONDARY cluster. This turns down replication from the PRIMARY cluster and promotes a secondary cluster into its own standalone cluster. Imperative only.", - "canonical": true, - "file": "alloy_d_b_admin.promote_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PromoteCluster", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.PromoteCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdminClient" - }, - "method": { - "shortName": "PromoteCluster", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.PromoteCluster", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1alpha_generated_AlloyDBAdmin_SwitchoverCluster_async", - "title": "AlloyDBAdmin switchoverCluster Sample", - "origin": "API_DEFINITION", - "description": " Switches the roles of PRIMARY and SECONDARY clusters without any data loss. This promotes the SECONDARY cluster to PRIMARY and sets up the original PRIMARY cluster to replicate from this newly promoted cluster.", - "canonical": true, - "file": "alloy_d_b_admin.switchover_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SwitchoverCluster", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.SwitchoverCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdminClient" - }, - "method": { - "shortName": "SwitchoverCluster", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.SwitchoverCluster", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1alpha_generated_AlloyDBAdmin_RestoreCluster_async", - "title": "AlloyDBAdmin restoreCluster Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Cluster in a given project and location, with a volume restored from the provided source, either a backup ID or a point-in-time and a source cluster.", - "canonical": true, - "file": "alloy_d_b_admin.restore_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 94, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RestoreCluster", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.RestoreCluster", - "async": true, - "parameters": [ - { - "name": "backup_source", - "type": ".google.cloud.alloydb.v1alpha.BackupSource" - }, - { - "name": "continuous_backup_source", - "type": ".google.cloud.alloydb.v1alpha.ContinuousBackupSource" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "cluster", - "type": ".google.cloud.alloydb.v1alpha.Cluster" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdminClient" - }, - "method": { - "shortName": "RestoreCluster", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.RestoreCluster", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1alpha_generated_AlloyDBAdmin_CreateSecondaryCluster_async", - "title": "AlloyDBAdmin createSecondaryCluster Sample", - "origin": "API_DEFINITION", - "description": " Creates a cluster of type SECONDARY in the given location using the primary cluster as the source.", - "canonical": true, - "file": "alloy_d_b_admin.create_secondary_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSecondaryCluster", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.CreateSecondaryCluster", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "cluster", - "type": ".google.cloud.alloydb.v1alpha.Cluster" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdminClient" - }, - "method": { - "shortName": "CreateSecondaryCluster", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.CreateSecondaryCluster", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1alpha_generated_AlloyDBAdmin_ListInstances_async", - "title": "AlloyDBAdmin listInstances Sample", - "origin": "API_DEFINITION", - "description": " Lists Instances in a given project and location.", - "canonical": true, - "file": "alloy_d_b_admin.list_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListInstances", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.ListInstances", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.alloydb.v1alpha.ListInstancesResponse", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdminClient" - }, - "method": { - "shortName": "ListInstances", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.ListInstances", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1alpha_generated_AlloyDBAdmin_GetInstance_async", - "title": "AlloyDBAdmin getInstance Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Instance.", - "canonical": true, - "file": "alloy_d_b_admin.get_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetInstance", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.GetInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.alloydb.v1alpha.InstanceView" - } - ], - "resultType": ".google.cloud.alloydb.v1alpha.Instance", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdminClient" - }, - "method": { - "shortName": "GetInstance", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.GetInstance", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1alpha_generated_AlloyDBAdmin_CreateInstance_async", - "title": "AlloyDBAdmin createInstance Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Instance in a given project and location.", - "canonical": true, - "file": "alloy_d_b_admin.create_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateInstance", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.CreateInstance", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "instance_id", - "type": "TYPE_STRING" - }, - { - "name": "instance", - "type": ".google.cloud.alloydb.v1alpha.Instance" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdminClient" - }, - "method": { - "shortName": "CreateInstance", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.CreateInstance", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1alpha_generated_AlloyDBAdmin_CreateSecondaryInstance_async", - "title": "AlloyDBAdmin createSecondaryInstance Sample", - "origin": "API_DEFINITION", - "description": " Creates a new SECONDARY Instance in a given project and location.", - "canonical": true, - "file": "alloy_d_b_admin.create_secondary_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSecondaryInstance", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.CreateSecondaryInstance", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "instance_id", - "type": "TYPE_STRING" - }, - { - "name": "instance", - "type": ".google.cloud.alloydb.v1alpha.Instance" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdminClient" - }, - "method": { - "shortName": "CreateSecondaryInstance", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.CreateSecondaryInstance", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1alpha_generated_AlloyDBAdmin_BatchCreateInstances_async", - "title": "AlloyDBAdmin batchCreateInstances Sample", - "origin": "API_DEFINITION", - "description": " Creates new instances under the given project, location and cluster. There can be only one primary instance in a cluster. If the primary instance exists in the cluster as well as this request, then API will throw an error. The primary instance should exist before any read pool instance is created. If the primary instance is a part of the request payload, then the API will take care of creating instances in the correct order. This method is here to support Google-internal use cases, and is not meant for external customers to consume. Please do not start relying on it; its behavior is subject to change without notice.", - "canonical": true, - "file": "alloy_d_b_admin.batch_create_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCreateInstances", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.BatchCreateInstances", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": ".google.cloud.alloydb.v1alpha.CreateInstanceRequests" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdminClient" - }, - "method": { - "shortName": "BatchCreateInstances", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.BatchCreateInstances", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1alpha_generated_AlloyDBAdmin_UpdateInstance_async", - "title": "AlloyDBAdmin updateInstance Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Instance.", - "canonical": true, - "file": "alloy_d_b_admin.update_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateInstance", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.UpdateInstance", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "instance", - "type": ".google.cloud.alloydb.v1alpha.Instance" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdminClient" - }, - "method": { - "shortName": "UpdateInstance", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.UpdateInstance", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1alpha_generated_AlloyDBAdmin_DeleteInstance_async", - "title": "AlloyDBAdmin deleteInstance Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Instance.", - "canonical": true, - "file": "alloy_d_b_admin.delete_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteInstance", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.DeleteInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdminClient" - }, - "method": { - "shortName": "DeleteInstance", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.DeleteInstance", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1alpha_generated_AlloyDBAdmin_FailoverInstance_async", - "title": "AlloyDBAdmin failoverInstance Sample", - "origin": "API_DEFINITION", - "description": " Forces a Failover for a highly available instance. Failover promotes the HA standby instance as the new primary. Imperative only.", - "canonical": true, - "file": "alloy_d_b_admin.failover_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FailoverInstance", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.FailoverInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdminClient" - }, - "method": { - "shortName": "FailoverInstance", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.FailoverInstance", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1alpha_generated_AlloyDBAdmin_InjectFault_async", - "title": "AlloyDBAdmin injectFault Sample", - "origin": "API_DEFINITION", - "description": " Injects fault in an instance. Imperative only.", - "canonical": true, - "file": "alloy_d_b_admin.inject_fault.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "InjectFault", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.InjectFault", - "async": true, - "parameters": [ - { - "name": "fault_type", - "type": ".google.cloud.alloydb.v1alpha.InjectFaultRequest.FaultType" - }, - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdminClient" - }, - "method": { - "shortName": "InjectFault", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.InjectFault", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1alpha_generated_AlloyDBAdmin_RestartInstance_async", - "title": "AlloyDBAdmin restartInstance Sample", - "origin": "API_DEFINITION", - "description": " Restart an Instance in a cluster. Imperative only.", - "canonical": true, - "file": "alloy_d_b_admin.restart_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RestartInstance", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.RestartInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "node_ids", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdminClient" - }, - "method": { - "shortName": "RestartInstance", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.RestartInstance", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1alpha_generated_AlloyDBAdmin_ExecuteSql_async", - "title": "AlloyDBAdmin executeSql Sample", - "origin": "API_DEFINITION", - "description": " Executes a SQL statement in a database inside an AlloyDB instance.", - "canonical": true, - "file": "alloy_d_b_admin.execute_sql.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExecuteSql", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.ExecuteSql", - "async": true, - "parameters": [ - { - "name": "password", - "type": "TYPE_STRING" - }, - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "database", - "type": "TYPE_STRING" - }, - { - "name": "user", - "type": "TYPE_STRING" - }, - { - "name": "sql_statement", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.alloydb.v1alpha.ExecuteSqlResponse", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdminClient" - }, - "method": { - "shortName": "ExecuteSql", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.ExecuteSql", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1alpha_generated_AlloyDBAdmin_ListBackups_async", - "title": "AlloyDBAdmin listBackups Sample", - "origin": "API_DEFINITION", - "description": " Lists Backups in a given project and location.", - "canonical": true, - "file": "alloy_d_b_admin.list_backups.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBackups", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.ListBackups", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.alloydb.v1alpha.ListBackupsResponse", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdminClient" - }, - "method": { - "shortName": "ListBackups", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.ListBackups", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1alpha_generated_AlloyDBAdmin_GetBackup_async", - "title": "AlloyDBAdmin getBackup Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Backup.", - "canonical": true, - "file": "alloy_d_b_admin.get_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBackup", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.GetBackup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.alloydb.v1alpha.Backup", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdminClient" - }, - "method": { - "shortName": "GetBackup", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.GetBackup", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1alpha_generated_AlloyDBAdmin_CreateBackup_async", - "title": "AlloyDBAdmin createBackup Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Backup in a given project and location.", - "canonical": true, - "file": "alloy_d_b_admin.create_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateBackup", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.CreateBackup", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "backup_id", - "type": "TYPE_STRING" - }, - { - "name": "backup", - "type": ".google.cloud.alloydb.v1alpha.Backup" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdminClient" - }, - "method": { - "shortName": "CreateBackup", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.CreateBackup", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1alpha_generated_AlloyDBAdmin_UpdateBackup_async", - "title": "AlloyDBAdmin updateBackup Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Backup.", - "canonical": true, - "file": "alloy_d_b_admin.update_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateBackup", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.UpdateBackup", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "backup", - "type": ".google.cloud.alloydb.v1alpha.Backup" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdminClient" - }, - "method": { - "shortName": "UpdateBackup", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.UpdateBackup", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1alpha_generated_AlloyDBAdmin_DeleteBackup_async", - "title": "AlloyDBAdmin deleteBackup Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Backup.", - "canonical": true, - "file": "alloy_d_b_admin.delete_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteBackup", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.DeleteBackup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdminClient" - }, - "method": { - "shortName": "DeleteBackup", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.DeleteBackup", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1alpha_generated_AlloyDBAdmin_ListSupportedDatabaseFlags_async", - "title": "AlloyDBAdmin listSupportedDatabaseFlags Sample", - "origin": "API_DEFINITION", - "description": " Lists SupportedDatabaseFlags for a given project and location.", - "canonical": true, - "file": "alloy_d_b_admin.list_supported_database_flags.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSupportedDatabaseFlags", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.ListSupportedDatabaseFlags", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "scope", - "type": ".google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.Scope" - } - ], - "resultType": ".google.cloud.alloydb.v1alpha.ListSupportedDatabaseFlagsResponse", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdminClient" - }, - "method": { - "shortName": "ListSupportedDatabaseFlags", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.ListSupportedDatabaseFlags", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1alpha_generated_AlloyDBAdmin_GenerateClientCertificate_async", - "title": "AlloyDBAdmin generateClientCertificate Sample", - "origin": "API_DEFINITION", - "description": " Generate a client certificate signed by a Cluster CA. The sole purpose of this endpoint is to support AlloyDB connectors and the Auth Proxy client. The endpoint's behavior is subject to change without notice, so do not rely on its behavior remaining constant. Future changes will not break AlloyDB connectors or the Auth Proxy client.", - "canonical": true, - "file": "alloy_d_b_admin.generate_client_certificate.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 91, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateClientCertificate", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.GenerateClientCertificate", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "pem_csr", - "type": "TYPE_STRING" - }, - { - "name": "cert_duration", - "type": ".google.protobuf.Duration" - }, - { - "name": "public_key", - "type": "TYPE_STRING" - }, - { - "name": "use_metadata_exchange", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.alloydb.v1alpha.GenerateClientCertificateResponse", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdminClient" - }, - "method": { - "shortName": "GenerateClientCertificate", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.GenerateClientCertificate", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1alpha_generated_AlloyDBAdmin_GetConnectionInfo_async", - "title": "AlloyDBAdmin getConnectionInfo Sample", - "origin": "API_DEFINITION", - "description": " Get instance metadata used for a connection.", - "canonical": true, - "file": "alloy_d_b_admin.get_connection_info.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetConnectionInfo", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.GetConnectionInfo", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.alloydb.v1alpha.ConnectionInfo", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdminClient" - }, - "method": { - "shortName": "GetConnectionInfo", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.GetConnectionInfo", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1alpha_generated_AlloyDBAdmin_ListUsers_async", - "title": "AlloyDBAdmin listUsers Sample", - "origin": "API_DEFINITION", - "description": " Lists Users in a given project and location.", - "canonical": true, - "file": "alloy_d_b_admin.list_users.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListUsers", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.ListUsers", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.alloydb.v1alpha.ListUsersResponse", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdminClient" - }, - "method": { - "shortName": "ListUsers", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.ListUsers", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1alpha_generated_AlloyDBAdmin_GetUser_async", - "title": "AlloyDBAdmin getUser Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single User.", - "canonical": true, - "file": "alloy_d_b_admin.get_user.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetUser", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.GetUser", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.alloydb.v1alpha.User", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdminClient" - }, - "method": { - "shortName": "GetUser", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.GetUser", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1alpha_generated_AlloyDBAdmin_CreateUser_async", - "title": "AlloyDBAdmin createUser Sample", - "origin": "API_DEFINITION", - "description": " Creates a new User in a given project, location, and cluster.", - "canonical": true, - "file": "alloy_d_b_admin.create_user.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateUser", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.CreateUser", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "user_id", - "type": "TYPE_STRING" - }, - { - "name": "user", - "type": ".google.cloud.alloydb.v1alpha.User" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.alloydb.v1alpha.User", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdminClient" - }, - "method": { - "shortName": "CreateUser", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.CreateUser", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1alpha_generated_AlloyDBAdmin_UpdateUser_async", - "title": "AlloyDBAdmin updateUser Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single User.", - "canonical": true, - "file": "alloy_d_b_admin.update_user.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateUser", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.UpdateUser", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "user", - "type": ".google.cloud.alloydb.v1alpha.User" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.alloydb.v1alpha.User", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdminClient" - }, - "method": { - "shortName": "UpdateUser", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.UpdateUser", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1alpha_generated_AlloyDBAdmin_DeleteUser_async", - "title": "AlloyDBAdmin deleteUser Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single User.", - "canonical": true, - "file": "alloy_d_b_admin.delete_user.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteUser", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.DeleteUser", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdminClient" - }, - "method": { - "shortName": "DeleteUser", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.DeleteUser", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1alpha_generated_AlloyDBAdmin_ListDatabases_async", - "title": "AlloyDBAdmin listDatabases Sample", - "origin": "API_DEFINITION", - "description": " Lists Databases in a given project and location.", - "canonical": true, - "file": "alloy_d_b_admin.list_databases.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDatabases", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.ListDatabases", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.alloydb.v1alpha.ListDatabasesResponse", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdminClient" - }, - "method": { - "shortName": "ListDatabases", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.ListDatabases", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1alpha_generated_AlloyDBAdmin_CreateDatabase_async", - "title": "AlloyDBAdmin createDatabase Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Database in a given project, location, and cluster.", - "canonical": true, - "file": "alloy_d_b_admin.create_database.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDatabase", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.CreateDatabase", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "database_id", - "type": "TYPE_STRING" - }, - { - "name": "database", - "type": ".google.cloud.alloydb.v1alpha.Database" - } - ], - "resultType": ".google.cloud.alloydb.v1alpha.Database", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdminClient" - }, - "method": { - "shortName": "CreateDatabase", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin.CreateDatabase", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1alpha_generated_AlloyDBCSQLAdmin_RestoreFromCloudSQL_async", - "title": "AlloyDBAdmin restoreFromCloudSQL Sample", - "origin": "API_DEFINITION", - "description": " Restores an AlloyDB cluster from a CloudSQL resource.", - "canonical": true, - "file": "alloy_d_b_c_s_q_l_admin.restore_from_cloud_s_q_l.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RestoreFromCloudSQL", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBCSQLAdmin.RestoreFromCloudSQL", - "async": true, - "parameters": [ - { - "name": "cloudsql_backup_run_source", - "type": ".google.cloud.alloydb.v1alpha.CloudSQLBackupRunSource" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "cluster", - "type": ".google.cloud.alloydb.v1alpha.Cluster" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBCSQLAdminClient", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBCSQLAdminClient" - }, - "method": { - "shortName": "RestoreFromCloudSQL", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBCSQLAdmin.RestoreFromCloudSQL", - "service": { - "shortName": "AlloyDBCSQLAdmin", - "fullName": "google.cloud.alloydb.v1alpha.AlloyDBCSQLAdmin" - } - } - } - } - ] -} diff --git a/packages/google-cloud-alloydb/samples/generated/v1beta/snippet_metadata_google.cloud.alloydb.v1beta.json b/packages/google-cloud-alloydb/samples/generated/v1beta/snippet_metadata_google.cloud.alloydb.v1beta.json deleted file mode 100644 index 49d6c7c80b06..000000000000 --- a/packages/google-cloud-alloydb/samples/generated/v1beta/snippet_metadata_google.cloud.alloydb.v1beta.json +++ /dev/null @@ -1,2079 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-alloydb", - "version": "2.5.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.alloydb.v1beta", - "version": "v1beta" - } - ] - }, - "snippets": [ - { - "regionTag": "alloydb_v1beta_generated_AlloyDBAdmin_ListClusters_async", - "title": "AlloyDBAdmin listClusters Sample", - "origin": "API_DEFINITION", - "description": " Lists Clusters in a given project and location.", - "canonical": true, - "file": "alloy_d_b_admin.list_clusters.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListClusters", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.ListClusters", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.alloydb.v1beta.ListClustersResponse", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdminClient" - }, - "method": { - "shortName": "ListClusters", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.ListClusters", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1beta_generated_AlloyDBAdmin_GetCluster_async", - "title": "AlloyDBAdmin getCluster Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Cluster.", - "canonical": true, - "file": "alloy_d_b_admin.get_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCluster", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.GetCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.alloydb.v1beta.ClusterView" - } - ], - "resultType": ".google.cloud.alloydb.v1beta.Cluster", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdminClient" - }, - "method": { - "shortName": "GetCluster", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.GetCluster", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1beta_generated_AlloyDBAdmin_CreateCluster_async", - "title": "AlloyDBAdmin createCluster Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Cluster in a given project and location.", - "canonical": true, - "file": "alloy_d_b_admin.create_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCluster", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.CreateCluster", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "cluster", - "type": ".google.cloud.alloydb.v1beta.Cluster" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdminClient" - }, - "method": { - "shortName": "CreateCluster", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.CreateCluster", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1beta_generated_AlloyDBAdmin_UpdateCluster_async", - "title": "AlloyDBAdmin updateCluster Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Cluster.", - "canonical": true, - "file": "alloy_d_b_admin.update_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCluster", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.UpdateCluster", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "cluster", - "type": ".google.cloud.alloydb.v1beta.Cluster" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdminClient" - }, - "method": { - "shortName": "UpdateCluster", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.UpdateCluster", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1beta_generated_AlloyDBAdmin_ExportCluster_async", - "title": "AlloyDBAdmin exportCluster Sample", - "origin": "API_DEFINITION", - "description": " Exports data from the cluster. Imperative only.", - "canonical": true, - "file": "alloy_d_b_admin.export_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportCluster", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.ExportCluster", - "async": true, - "parameters": [ - { - "name": "gcs_destination", - "type": ".google.cloud.alloydb.v1beta.GcsDestination" - }, - { - "name": "csv_export_options", - "type": ".google.cloud.alloydb.v1beta.ExportClusterRequest.CsvExportOptions" - }, - { - "name": "sql_export_options", - "type": ".google.cloud.alloydb.v1beta.ExportClusterRequest.SqlExportOptions" - }, - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "database", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdminClient" - }, - "method": { - "shortName": "ExportCluster", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.ExportCluster", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1beta_generated_AlloyDBAdmin_ImportCluster_async", - "title": "AlloyDBAdmin importCluster Sample", - "origin": "API_DEFINITION", - "description": " Imports data to the cluster. Imperative only.", - "canonical": true, - "file": "alloy_d_b_admin.import_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportCluster", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.ImportCluster", - "async": true, - "parameters": [ - { - "name": "sql_import_options", - "type": ".google.cloud.alloydb.v1beta.ImportClusterRequest.SqlImportOptions" - }, - { - "name": "csv_import_options", - "type": ".google.cloud.alloydb.v1beta.ImportClusterRequest.CsvImportOptions" - }, - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "gcs_uri", - "type": "TYPE_STRING" - }, - { - "name": "database", - "type": "TYPE_STRING" - }, - { - "name": "user", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdminClient" - }, - "method": { - "shortName": "ImportCluster", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.ImportCluster", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1beta_generated_AlloyDBAdmin_UpgradeCluster_async", - "title": "AlloyDBAdmin upgradeCluster Sample", - "origin": "API_DEFINITION", - "description": " Upgrades a single Cluster. Imperative only.", - "canonical": true, - "file": "alloy_d_b_admin.upgrade_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpgradeCluster", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.UpgradeCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "version", - "type": ".google.cloud.alloydb.v1beta.DatabaseVersion" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdminClient" - }, - "method": { - "shortName": "UpgradeCluster", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.UpgradeCluster", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1beta_generated_AlloyDBAdmin_DeleteCluster_async", - "title": "AlloyDBAdmin deleteCluster Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Cluster.", - "canonical": true, - "file": "alloy_d_b_admin.delete_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCluster", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.DeleteCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdminClient" - }, - "method": { - "shortName": "DeleteCluster", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.DeleteCluster", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1beta_generated_AlloyDBAdmin_PromoteCluster_async", - "title": "AlloyDBAdmin promoteCluster Sample", - "origin": "API_DEFINITION", - "description": " Promotes a SECONDARY cluster. This turns down replication from the PRIMARY cluster and promotes a secondary cluster into its own standalone cluster. Imperative only.", - "canonical": true, - "file": "alloy_d_b_admin.promote_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PromoteCluster", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.PromoteCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdminClient" - }, - "method": { - "shortName": "PromoteCluster", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.PromoteCluster", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1beta_generated_AlloyDBAdmin_SwitchoverCluster_async", - "title": "AlloyDBAdmin switchoverCluster Sample", - "origin": "API_DEFINITION", - "description": " Switches the roles of PRIMARY and SECONDARY clusters without any data loss. This promotes the SECONDARY cluster to PRIMARY and sets up the original PRIMARY cluster to replicate from this newly promoted cluster.", - "canonical": true, - "file": "alloy_d_b_admin.switchover_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SwitchoverCluster", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.SwitchoverCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdminClient" - }, - "method": { - "shortName": "SwitchoverCluster", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.SwitchoverCluster", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1beta_generated_AlloyDBAdmin_RestoreCluster_async", - "title": "AlloyDBAdmin restoreCluster Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Cluster in a given project and location, with a volume restored from the provided source, either a backup ID or a point-in-time and a source cluster.", - "canonical": true, - "file": "alloy_d_b_admin.restore_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 94, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RestoreCluster", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.RestoreCluster", - "async": true, - "parameters": [ - { - "name": "backup_source", - "type": ".google.cloud.alloydb.v1beta.BackupSource" - }, - { - "name": "continuous_backup_source", - "type": ".google.cloud.alloydb.v1beta.ContinuousBackupSource" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "cluster", - "type": ".google.cloud.alloydb.v1beta.Cluster" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdminClient" - }, - "method": { - "shortName": "RestoreCluster", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.RestoreCluster", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1beta_generated_AlloyDBAdmin_CreateSecondaryCluster_async", - "title": "AlloyDBAdmin createSecondaryCluster Sample", - "origin": "API_DEFINITION", - "description": " Creates a cluster of type SECONDARY in the given location using the primary cluster as the source.", - "canonical": true, - "file": "alloy_d_b_admin.create_secondary_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSecondaryCluster", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.CreateSecondaryCluster", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "cluster", - "type": ".google.cloud.alloydb.v1beta.Cluster" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdminClient" - }, - "method": { - "shortName": "CreateSecondaryCluster", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.CreateSecondaryCluster", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1beta_generated_AlloyDBAdmin_ListInstances_async", - "title": "AlloyDBAdmin listInstances Sample", - "origin": "API_DEFINITION", - "description": " Lists Instances in a given project and location.", - "canonical": true, - "file": "alloy_d_b_admin.list_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListInstances", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.ListInstances", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.alloydb.v1beta.ListInstancesResponse", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdminClient" - }, - "method": { - "shortName": "ListInstances", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.ListInstances", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1beta_generated_AlloyDBAdmin_GetInstance_async", - "title": "AlloyDBAdmin getInstance Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Instance.", - "canonical": true, - "file": "alloy_d_b_admin.get_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetInstance", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.GetInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.alloydb.v1beta.InstanceView" - } - ], - "resultType": ".google.cloud.alloydb.v1beta.Instance", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdminClient" - }, - "method": { - "shortName": "GetInstance", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.GetInstance", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1beta_generated_AlloyDBAdmin_CreateInstance_async", - "title": "AlloyDBAdmin createInstance Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Instance in a given project and location.", - "canonical": true, - "file": "alloy_d_b_admin.create_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateInstance", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.CreateInstance", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "instance_id", - "type": "TYPE_STRING" - }, - { - "name": "instance", - "type": ".google.cloud.alloydb.v1beta.Instance" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdminClient" - }, - "method": { - "shortName": "CreateInstance", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.CreateInstance", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1beta_generated_AlloyDBAdmin_CreateSecondaryInstance_async", - "title": "AlloyDBAdmin createSecondaryInstance Sample", - "origin": "API_DEFINITION", - "description": " Creates a new SECONDARY Instance in a given project and location.", - "canonical": true, - "file": "alloy_d_b_admin.create_secondary_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSecondaryInstance", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.CreateSecondaryInstance", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "instance_id", - "type": "TYPE_STRING" - }, - { - "name": "instance", - "type": ".google.cloud.alloydb.v1beta.Instance" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdminClient" - }, - "method": { - "shortName": "CreateSecondaryInstance", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.CreateSecondaryInstance", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1beta_generated_AlloyDBAdmin_BatchCreateInstances_async", - "title": "AlloyDBAdmin batchCreateInstances Sample", - "origin": "API_DEFINITION", - "description": " Creates new instances under the given project, location and cluster. There can be only one primary instance in a cluster. If the primary instance exists in the cluster as well as this request, then API will throw an error. The primary instance should exist before any read pool instance is created. If the primary instance is a part of the request payload, then the API will take care of creating instances in the correct order. This method is here to support Google-internal use cases, and is not meant for external customers to consume. Please do not start relying on it; its behavior is subject to change without notice.", - "canonical": true, - "file": "alloy_d_b_admin.batch_create_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCreateInstances", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.BatchCreateInstances", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": ".google.cloud.alloydb.v1beta.CreateInstanceRequests" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdminClient" - }, - "method": { - "shortName": "BatchCreateInstances", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.BatchCreateInstances", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1beta_generated_AlloyDBAdmin_UpdateInstance_async", - "title": "AlloyDBAdmin updateInstance Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Instance.", - "canonical": true, - "file": "alloy_d_b_admin.update_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateInstance", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.UpdateInstance", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "instance", - "type": ".google.cloud.alloydb.v1beta.Instance" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdminClient" - }, - "method": { - "shortName": "UpdateInstance", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.UpdateInstance", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1beta_generated_AlloyDBAdmin_DeleteInstance_async", - "title": "AlloyDBAdmin deleteInstance Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Instance.", - "canonical": true, - "file": "alloy_d_b_admin.delete_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteInstance", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.DeleteInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdminClient" - }, - "method": { - "shortName": "DeleteInstance", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.DeleteInstance", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1beta_generated_AlloyDBAdmin_FailoverInstance_async", - "title": "AlloyDBAdmin failoverInstance Sample", - "origin": "API_DEFINITION", - "description": " Forces a Failover for a highly available instance. Failover promotes the HA standby instance as the new primary. Imperative only.", - "canonical": true, - "file": "alloy_d_b_admin.failover_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FailoverInstance", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.FailoverInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdminClient" - }, - "method": { - "shortName": "FailoverInstance", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.FailoverInstance", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1beta_generated_AlloyDBAdmin_InjectFault_async", - "title": "AlloyDBAdmin injectFault Sample", - "origin": "API_DEFINITION", - "description": " Injects fault in an instance. Imperative only.", - "canonical": true, - "file": "alloy_d_b_admin.inject_fault.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "InjectFault", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.InjectFault", - "async": true, - "parameters": [ - { - "name": "fault_type", - "type": ".google.cloud.alloydb.v1beta.InjectFaultRequest.FaultType" - }, - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdminClient" - }, - "method": { - "shortName": "InjectFault", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.InjectFault", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1beta_generated_AlloyDBAdmin_RestartInstance_async", - "title": "AlloyDBAdmin restartInstance Sample", - "origin": "API_DEFINITION", - "description": " Restart an Instance in a cluster. Imperative only.", - "canonical": true, - "file": "alloy_d_b_admin.restart_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RestartInstance", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.RestartInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "node_ids", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdminClient" - }, - "method": { - "shortName": "RestartInstance", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.RestartInstance", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1beta_generated_AlloyDBAdmin_ExecuteSql_async", - "title": "AlloyDBAdmin executeSql Sample", - "origin": "API_DEFINITION", - "description": " Executes a SQL statement in a database inside an AlloyDB instance.", - "canonical": true, - "file": "alloy_d_b_admin.execute_sql.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExecuteSql", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.ExecuteSql", - "async": true, - "parameters": [ - { - "name": "password", - "type": "TYPE_STRING" - }, - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "database", - "type": "TYPE_STRING" - }, - { - "name": "user", - "type": "TYPE_STRING" - }, - { - "name": "sql_statement", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.alloydb.v1beta.ExecuteSqlResponse", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdminClient" - }, - "method": { - "shortName": "ExecuteSql", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.ExecuteSql", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1beta_generated_AlloyDBAdmin_ListBackups_async", - "title": "AlloyDBAdmin listBackups Sample", - "origin": "API_DEFINITION", - "description": " Lists Backups in a given project and location.", - "canonical": true, - "file": "alloy_d_b_admin.list_backups.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBackups", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.ListBackups", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.alloydb.v1beta.ListBackupsResponse", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdminClient" - }, - "method": { - "shortName": "ListBackups", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.ListBackups", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1beta_generated_AlloyDBAdmin_GetBackup_async", - "title": "AlloyDBAdmin getBackup Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Backup.", - "canonical": true, - "file": "alloy_d_b_admin.get_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBackup", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.GetBackup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.alloydb.v1beta.Backup", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdminClient" - }, - "method": { - "shortName": "GetBackup", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.GetBackup", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1beta_generated_AlloyDBAdmin_CreateBackup_async", - "title": "AlloyDBAdmin createBackup Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Backup in a given project and location.", - "canonical": true, - "file": "alloy_d_b_admin.create_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateBackup", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.CreateBackup", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "backup_id", - "type": "TYPE_STRING" - }, - { - "name": "backup", - "type": ".google.cloud.alloydb.v1beta.Backup" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdminClient" - }, - "method": { - "shortName": "CreateBackup", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.CreateBackup", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1beta_generated_AlloyDBAdmin_UpdateBackup_async", - "title": "AlloyDBAdmin updateBackup Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Backup.", - "canonical": true, - "file": "alloy_d_b_admin.update_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateBackup", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.UpdateBackup", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "backup", - "type": ".google.cloud.alloydb.v1beta.Backup" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdminClient" - }, - "method": { - "shortName": "UpdateBackup", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.UpdateBackup", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1beta_generated_AlloyDBAdmin_DeleteBackup_async", - "title": "AlloyDBAdmin deleteBackup Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Backup.", - "canonical": true, - "file": "alloy_d_b_admin.delete_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteBackup", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.DeleteBackup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdminClient" - }, - "method": { - "shortName": "DeleteBackup", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.DeleteBackup", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1beta_generated_AlloyDBAdmin_ListSupportedDatabaseFlags_async", - "title": "AlloyDBAdmin listSupportedDatabaseFlags Sample", - "origin": "API_DEFINITION", - "description": " Lists SupportedDatabaseFlags for a given project and location.", - "canonical": true, - "file": "alloy_d_b_admin.list_supported_database_flags.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSupportedDatabaseFlags", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.ListSupportedDatabaseFlags", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "scope", - "type": ".google.cloud.alloydb.v1beta.SupportedDatabaseFlag.Scope" - } - ], - "resultType": ".google.cloud.alloydb.v1beta.ListSupportedDatabaseFlagsResponse", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdminClient" - }, - "method": { - "shortName": "ListSupportedDatabaseFlags", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.ListSupportedDatabaseFlags", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1beta_generated_AlloyDBAdmin_GenerateClientCertificate_async", - "title": "AlloyDBAdmin generateClientCertificate Sample", - "origin": "API_DEFINITION", - "description": " Generate a client certificate signed by a Cluster CA. The sole purpose of this endpoint is to support AlloyDB connectors and the Auth Proxy client. The endpoint's behavior is subject to change without notice, so do not rely on its behavior remaining constant. Future changes will not break AlloyDB connectors or the Auth Proxy client.", - "canonical": true, - "file": "alloy_d_b_admin.generate_client_certificate.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 91, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateClientCertificate", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.GenerateClientCertificate", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "pem_csr", - "type": "TYPE_STRING" - }, - { - "name": "cert_duration", - "type": ".google.protobuf.Duration" - }, - { - "name": "public_key", - "type": "TYPE_STRING" - }, - { - "name": "use_metadata_exchange", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.alloydb.v1beta.GenerateClientCertificateResponse", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdminClient" - }, - "method": { - "shortName": "GenerateClientCertificate", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.GenerateClientCertificate", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1beta_generated_AlloyDBAdmin_GetConnectionInfo_async", - "title": "AlloyDBAdmin getConnectionInfo Sample", - "origin": "API_DEFINITION", - "description": " Get instance metadata used for a connection.", - "canonical": true, - "file": "alloy_d_b_admin.get_connection_info.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetConnectionInfo", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.GetConnectionInfo", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.alloydb.v1beta.ConnectionInfo", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdminClient" - }, - "method": { - "shortName": "GetConnectionInfo", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.GetConnectionInfo", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1beta_generated_AlloyDBAdmin_ListUsers_async", - "title": "AlloyDBAdmin listUsers Sample", - "origin": "API_DEFINITION", - "description": " Lists Users in a given project and location.", - "canonical": true, - "file": "alloy_d_b_admin.list_users.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListUsers", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.ListUsers", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.alloydb.v1beta.ListUsersResponse", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdminClient" - }, - "method": { - "shortName": "ListUsers", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.ListUsers", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1beta_generated_AlloyDBAdmin_GetUser_async", - "title": "AlloyDBAdmin getUser Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single User.", - "canonical": true, - "file": "alloy_d_b_admin.get_user.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetUser", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.GetUser", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.alloydb.v1beta.User", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdminClient" - }, - "method": { - "shortName": "GetUser", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.GetUser", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1beta_generated_AlloyDBAdmin_CreateUser_async", - "title": "AlloyDBAdmin createUser Sample", - "origin": "API_DEFINITION", - "description": " Creates a new User in a given project, location, and cluster.", - "canonical": true, - "file": "alloy_d_b_admin.create_user.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateUser", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.CreateUser", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "user_id", - "type": "TYPE_STRING" - }, - { - "name": "user", - "type": ".google.cloud.alloydb.v1beta.User" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.alloydb.v1beta.User", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdminClient" - }, - "method": { - "shortName": "CreateUser", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.CreateUser", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1beta_generated_AlloyDBAdmin_UpdateUser_async", - "title": "AlloyDBAdmin updateUser Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single User.", - "canonical": true, - "file": "alloy_d_b_admin.update_user.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateUser", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.UpdateUser", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "user", - "type": ".google.cloud.alloydb.v1beta.User" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.alloydb.v1beta.User", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdminClient" - }, - "method": { - "shortName": "UpdateUser", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.UpdateUser", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1beta_generated_AlloyDBAdmin_DeleteUser_async", - "title": "AlloyDBAdmin deleteUser Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single User.", - "canonical": true, - "file": "alloy_d_b_admin.delete_user.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteUser", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.DeleteUser", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdminClient" - }, - "method": { - "shortName": "DeleteUser", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.DeleteUser", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1beta_generated_AlloyDBAdmin_ListDatabases_async", - "title": "AlloyDBAdmin listDatabases Sample", - "origin": "API_DEFINITION", - "description": " Lists Databases in a given project and location.", - "canonical": true, - "file": "alloy_d_b_admin.list_databases.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDatabases", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.ListDatabases", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.alloydb.v1beta.ListDatabasesResponse", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdminClient" - }, - "method": { - "shortName": "ListDatabases", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.ListDatabases", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1beta_generated_AlloyDBAdmin_CreateDatabase_async", - "title": "AlloyDBAdmin createDatabase Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Database in a given project, location, and cluster.", - "canonical": true, - "file": "alloy_d_b_admin.create_database.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDatabase", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.CreateDatabase", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "database_id", - "type": "TYPE_STRING" - }, - { - "name": "database", - "type": ".google.cloud.alloydb.v1beta.Database" - } - ], - "resultType": ".google.cloud.alloydb.v1beta.Database", - "client": { - "shortName": "AlloyDBAdminClient", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdminClient" - }, - "method": { - "shortName": "CreateDatabase", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin.CreateDatabase", - "service": { - "shortName": "AlloyDBAdmin", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBAdmin" - } - } - } - }, - { - "regionTag": "alloydb_v1beta_generated_AlloyDBCSQLAdmin_RestoreFromCloudSQL_async", - "title": "AlloyDBAdmin restoreFromCloudSQL Sample", - "origin": "API_DEFINITION", - "description": " Restores an AlloyDB cluster from a CloudSQL resource.", - "canonical": true, - "file": "alloy_d_b_c_s_q_l_admin.restore_from_cloud_s_q_l.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RestoreFromCloudSQL", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBCSQLAdmin.RestoreFromCloudSQL", - "async": true, - "parameters": [ - { - "name": "cloudsql_backup_run_source", - "type": ".google.cloud.alloydb.v1beta.CloudSQLBackupRunSource" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "cluster", - "type": ".google.cloud.alloydb.v1beta.Cluster" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AlloyDBCSQLAdminClient", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBCSQLAdminClient" - }, - "method": { - "shortName": "RestoreFromCloudSQL", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBCSQLAdmin.RestoreFromCloudSQL", - "service": { - "shortName": "AlloyDBCSQLAdmin", - "fullName": "google.cloud.alloydb.v1beta.AlloyDBCSQLAdmin" - } - } - } - } - ] -} diff --git a/packages/google-cloud-apigateway/samples/generated/v1/snippet_metadata_google.cloud.apigateway.v1.json b/packages/google-cloud-apigateway/samples/generated/v1/snippet_metadata_google.cloud.apigateway.v1.json deleted file mode 100644 index 4048d61f4922..000000000000 --- a/packages/google-cloud-apigateway/samples/generated/v1/snippet_metadata_google.cloud.apigateway.v1.json +++ /dev/null @@ -1,703 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-apigateway", - "version": "4.2.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.apigateway.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "apigateway_v1_generated_ApiGatewayService_ListGateways_async", - "title": "ApiGatewayService listGateways Sample", - "origin": "API_DEFINITION", - "description": " Lists Gateways in a given project and location.", - "canonical": true, - "file": "api_gateway_service.list_gateways.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListGateways", - "fullName": "google.cloud.apigateway.v1.ApiGatewayService.ListGateways", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apigateway.v1.ListGatewaysResponse", - "client": { - "shortName": "ApiGatewayServiceClient", - "fullName": "google.cloud.apigateway.v1.ApiGatewayServiceClient" - }, - "method": { - "shortName": "ListGateways", - "fullName": "google.cloud.apigateway.v1.ApiGatewayService.ListGateways", - "service": { - "shortName": "ApiGatewayService", - "fullName": "google.cloud.apigateway.v1.ApiGatewayService" - } - } - } - }, - { - "regionTag": "apigateway_v1_generated_ApiGatewayService_GetGateway_async", - "title": "ApiGatewayService getGateway Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Gateway.", - "canonical": true, - "file": "api_gateway_service.get_gateway.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetGateway", - "fullName": "google.cloud.apigateway.v1.ApiGatewayService.GetGateway", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apigateway.v1.Gateway", - "client": { - "shortName": "ApiGatewayServiceClient", - "fullName": "google.cloud.apigateway.v1.ApiGatewayServiceClient" - }, - "method": { - "shortName": "GetGateway", - "fullName": "google.cloud.apigateway.v1.ApiGatewayService.GetGateway", - "service": { - "shortName": "ApiGatewayService", - "fullName": "google.cloud.apigateway.v1.ApiGatewayService" - } - } - } - }, - { - "regionTag": "apigateway_v1_generated_ApiGatewayService_CreateGateway_async", - "title": "ApiGatewayService createGateway Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Gateway in a given project and location.", - "canonical": true, - "file": "api_gateway_service.create_gateway.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateGateway", - "fullName": "google.cloud.apigateway.v1.ApiGatewayService.CreateGateway", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "gateway_id", - "type": "TYPE_STRING" - }, - { - "name": "gateway", - "type": ".google.cloud.apigateway.v1.Gateway" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ApiGatewayServiceClient", - "fullName": "google.cloud.apigateway.v1.ApiGatewayServiceClient" - }, - "method": { - "shortName": "CreateGateway", - "fullName": "google.cloud.apigateway.v1.ApiGatewayService.CreateGateway", - "service": { - "shortName": "ApiGatewayService", - "fullName": "google.cloud.apigateway.v1.ApiGatewayService" - } - } - } - }, - { - "regionTag": "apigateway_v1_generated_ApiGatewayService_UpdateGateway_async", - "title": "ApiGatewayService updateGateway Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Gateway.", - "canonical": true, - "file": "api_gateway_service.update_gateway.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateGateway", - "fullName": "google.cloud.apigateway.v1.ApiGatewayService.UpdateGateway", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "gateway", - "type": ".google.cloud.apigateway.v1.Gateway" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ApiGatewayServiceClient", - "fullName": "google.cloud.apigateway.v1.ApiGatewayServiceClient" - }, - "method": { - "shortName": "UpdateGateway", - "fullName": "google.cloud.apigateway.v1.ApiGatewayService.UpdateGateway", - "service": { - "shortName": "ApiGatewayService", - "fullName": "google.cloud.apigateway.v1.ApiGatewayService" - } - } - } - }, - { - "regionTag": "apigateway_v1_generated_ApiGatewayService_DeleteGateway_async", - "title": "ApiGatewayService deleteGateway Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Gateway.", - "canonical": true, - "file": "api_gateway_service.delete_gateway.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteGateway", - "fullName": "google.cloud.apigateway.v1.ApiGatewayService.DeleteGateway", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ApiGatewayServiceClient", - "fullName": "google.cloud.apigateway.v1.ApiGatewayServiceClient" - }, - "method": { - "shortName": "DeleteGateway", - "fullName": "google.cloud.apigateway.v1.ApiGatewayService.DeleteGateway", - "service": { - "shortName": "ApiGatewayService", - "fullName": "google.cloud.apigateway.v1.ApiGatewayService" - } - } - } - }, - { - "regionTag": "apigateway_v1_generated_ApiGatewayService_ListApis_async", - "title": "ApiGatewayService listApis Sample", - "origin": "API_DEFINITION", - "description": " Lists Apis in a given project and location.", - "canonical": true, - "file": "api_gateway_service.list_apis.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListApis", - "fullName": "google.cloud.apigateway.v1.ApiGatewayService.ListApis", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apigateway.v1.ListApisResponse", - "client": { - "shortName": "ApiGatewayServiceClient", - "fullName": "google.cloud.apigateway.v1.ApiGatewayServiceClient" - }, - "method": { - "shortName": "ListApis", - "fullName": "google.cloud.apigateway.v1.ApiGatewayService.ListApis", - "service": { - "shortName": "ApiGatewayService", - "fullName": "google.cloud.apigateway.v1.ApiGatewayService" - } - } - } - }, - { - "regionTag": "apigateway_v1_generated_ApiGatewayService_GetApi_async", - "title": "ApiGatewayService getApi Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Api.", - "canonical": true, - "file": "api_gateway_service.get_api.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetApi", - "fullName": "google.cloud.apigateway.v1.ApiGatewayService.GetApi", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apigateway.v1.Api", - "client": { - "shortName": "ApiGatewayServiceClient", - "fullName": "google.cloud.apigateway.v1.ApiGatewayServiceClient" - }, - "method": { - "shortName": "GetApi", - "fullName": "google.cloud.apigateway.v1.ApiGatewayService.GetApi", - "service": { - "shortName": "ApiGatewayService", - "fullName": "google.cloud.apigateway.v1.ApiGatewayService" - } - } - } - }, - { - "regionTag": "apigateway_v1_generated_ApiGatewayService_CreateApi_async", - "title": "ApiGatewayService createApi Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Api in a given project and location.", - "canonical": true, - "file": "api_gateway_service.create_api.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateApi", - "fullName": "google.cloud.apigateway.v1.ApiGatewayService.CreateApi", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "api_id", - "type": "TYPE_STRING" - }, - { - "name": "api", - "type": ".google.cloud.apigateway.v1.Api" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ApiGatewayServiceClient", - "fullName": "google.cloud.apigateway.v1.ApiGatewayServiceClient" - }, - "method": { - "shortName": "CreateApi", - "fullName": "google.cloud.apigateway.v1.ApiGatewayService.CreateApi", - "service": { - "shortName": "ApiGatewayService", - "fullName": "google.cloud.apigateway.v1.ApiGatewayService" - } - } - } - }, - { - "regionTag": "apigateway_v1_generated_ApiGatewayService_UpdateApi_async", - "title": "ApiGatewayService updateApi Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Api.", - "canonical": true, - "file": "api_gateway_service.update_api.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateApi", - "fullName": "google.cloud.apigateway.v1.ApiGatewayService.UpdateApi", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "api", - "type": ".google.cloud.apigateway.v1.Api" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ApiGatewayServiceClient", - "fullName": "google.cloud.apigateway.v1.ApiGatewayServiceClient" - }, - "method": { - "shortName": "UpdateApi", - "fullName": "google.cloud.apigateway.v1.ApiGatewayService.UpdateApi", - "service": { - "shortName": "ApiGatewayService", - "fullName": "google.cloud.apigateway.v1.ApiGatewayService" - } - } - } - }, - { - "regionTag": "apigateway_v1_generated_ApiGatewayService_DeleteApi_async", - "title": "ApiGatewayService deleteApi Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Api.", - "canonical": true, - "file": "api_gateway_service.delete_api.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteApi", - "fullName": "google.cloud.apigateway.v1.ApiGatewayService.DeleteApi", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ApiGatewayServiceClient", - "fullName": "google.cloud.apigateway.v1.ApiGatewayServiceClient" - }, - "method": { - "shortName": "DeleteApi", - "fullName": "google.cloud.apigateway.v1.ApiGatewayService.DeleteApi", - "service": { - "shortName": "ApiGatewayService", - "fullName": "google.cloud.apigateway.v1.ApiGatewayService" - } - } - } - }, - { - "regionTag": "apigateway_v1_generated_ApiGatewayService_ListApiConfigs_async", - "title": "ApiGatewayService listApiConfigs Sample", - "origin": "API_DEFINITION", - "description": " Lists ApiConfigs in a given project and location.", - "canonical": true, - "file": "api_gateway_service.list_api_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListApiConfigs", - "fullName": "google.cloud.apigateway.v1.ApiGatewayService.ListApiConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apigateway.v1.ListApiConfigsResponse", - "client": { - "shortName": "ApiGatewayServiceClient", - "fullName": "google.cloud.apigateway.v1.ApiGatewayServiceClient" - }, - "method": { - "shortName": "ListApiConfigs", - "fullName": "google.cloud.apigateway.v1.ApiGatewayService.ListApiConfigs", - "service": { - "shortName": "ApiGatewayService", - "fullName": "google.cloud.apigateway.v1.ApiGatewayService" - } - } - } - }, - { - "regionTag": "apigateway_v1_generated_ApiGatewayService_GetApiConfig_async", - "title": "ApiGatewayService getApiConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single ApiConfig.", - "canonical": true, - "file": "api_gateway_service.get_api_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetApiConfig", - "fullName": "google.cloud.apigateway.v1.ApiGatewayService.GetApiConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.apigateway.v1.GetApiConfigRequest.ConfigView" - } - ], - "resultType": ".google.cloud.apigateway.v1.ApiConfig", - "client": { - "shortName": "ApiGatewayServiceClient", - "fullName": "google.cloud.apigateway.v1.ApiGatewayServiceClient" - }, - "method": { - "shortName": "GetApiConfig", - "fullName": "google.cloud.apigateway.v1.ApiGatewayService.GetApiConfig", - "service": { - "shortName": "ApiGatewayService", - "fullName": "google.cloud.apigateway.v1.ApiGatewayService" - } - } - } - }, - { - "regionTag": "apigateway_v1_generated_ApiGatewayService_CreateApiConfig_async", - "title": "ApiGatewayService createApiConfig Sample", - "origin": "API_DEFINITION", - "description": " Creates a new ApiConfig in a given project and location.", - "canonical": true, - "file": "api_gateway_service.create_api_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateApiConfig", - "fullName": "google.cloud.apigateway.v1.ApiGatewayService.CreateApiConfig", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "api_config_id", - "type": "TYPE_STRING" - }, - { - "name": "api_config", - "type": ".google.cloud.apigateway.v1.ApiConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ApiGatewayServiceClient", - "fullName": "google.cloud.apigateway.v1.ApiGatewayServiceClient" - }, - "method": { - "shortName": "CreateApiConfig", - "fullName": "google.cloud.apigateway.v1.ApiGatewayService.CreateApiConfig", - "service": { - "shortName": "ApiGatewayService", - "fullName": "google.cloud.apigateway.v1.ApiGatewayService" - } - } - } - }, - { - "regionTag": "apigateway_v1_generated_ApiGatewayService_UpdateApiConfig_async", - "title": "ApiGatewayService updateApiConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single ApiConfig.", - "canonical": true, - "file": "api_gateway_service.update_api_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateApiConfig", - "fullName": "google.cloud.apigateway.v1.ApiGatewayService.UpdateApiConfig", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "api_config", - "type": ".google.cloud.apigateway.v1.ApiConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ApiGatewayServiceClient", - "fullName": "google.cloud.apigateway.v1.ApiGatewayServiceClient" - }, - "method": { - "shortName": "UpdateApiConfig", - "fullName": "google.cloud.apigateway.v1.ApiGatewayService.UpdateApiConfig", - "service": { - "shortName": "ApiGatewayService", - "fullName": "google.cloud.apigateway.v1.ApiGatewayService" - } - } - } - }, - { - "regionTag": "apigateway_v1_generated_ApiGatewayService_DeleteApiConfig_async", - "title": "ApiGatewayService deleteApiConfig Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single ApiConfig.", - "canonical": true, - "file": "api_gateway_service.delete_api_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteApiConfig", - "fullName": "google.cloud.apigateway.v1.ApiGatewayService.DeleteApiConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ApiGatewayServiceClient", - "fullName": "google.cloud.apigateway.v1.ApiGatewayServiceClient" - }, - "method": { - "shortName": "DeleteApiConfig", - "fullName": "google.cloud.apigateway.v1.ApiGatewayService.DeleteApiConfig", - "service": { - "shortName": "ApiGatewayService", - "fullName": "google.cloud.apigateway.v1.ApiGatewayService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-apigeeconnect/samples/generated/v1/snippet_metadata_google.cloud.apigeeconnect.v1.json b/packages/google-cloud-apigeeconnect/samples/generated/v1/snippet_metadata_google.cloud.apigeeconnect.v1.json deleted file mode 100644 index bd5e6529a6ec..000000000000 --- a/packages/google-cloud-apigeeconnect/samples/generated/v1/snippet_metadata_google.cloud.apigeeconnect.v1.json +++ /dev/null @@ -1,127 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-apigeeconnect", - "version": "4.2.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.apigeeconnect.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "apigeeconnect_v1_generated_ConnectionService_ListConnections_async", - "title": "ConnectionService listConnections Sample", - "origin": "API_DEFINITION", - "description": " Lists connections that are currently active for the given Apigee Connect endpoint.", - "canonical": true, - "file": "connection_service.list_connections.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListConnections", - "fullName": "google.cloud.apigeeconnect.v1.ConnectionService.ListConnections", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apigeeconnect.v1.ListConnectionsResponse", - "client": { - "shortName": "ConnectionServiceClient", - "fullName": "google.cloud.apigeeconnect.v1.ConnectionServiceClient" - }, - "method": { - "shortName": "ListConnections", - "fullName": "google.cloud.apigeeconnect.v1.ConnectionService.ListConnections", - "service": { - "shortName": "ConnectionService", - "fullName": "google.cloud.apigeeconnect.v1.ConnectionService" - } - } - } - }, - { - "regionTag": "apigeeconnect_v1_generated_Tether_Egress_async", - "title": "ConnectionService egress Sample", - "origin": "API_DEFINITION", - "description": " Egress streams egress requests and responses. Logically, this is not actually a streaming request, but uses streaming as a mechanism to flip the client-server relationship of gRPC so that the server can act as a client. The listener, the RPC server, accepts connections from the dialer, the RPC client. The listener streams http requests and the dialer streams http responses.", - "canonical": true, - "file": "tether.egress.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Egress", - "fullName": "google.cloud.apigeeconnect.v1.Tether.Egress", - "async": true, - "parameters": [ - { - "name": "id", - "type": "TYPE_STRING" - }, - { - "name": "http_response", - "type": ".google.cloud.apigeeconnect.v1.HttpResponse" - }, - { - "name": "status", - "type": ".google.rpc.Status" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "trace_id", - "type": "TYPE_STRING" - }, - { - "name": "endpoint", - "type": ".google.cloud.apigeeconnect.v1.TetherEndpoint" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apigeeconnect.v1.EgressRequest", - "client": { - "shortName": "TetherClient", - "fullName": "google.cloud.apigeeconnect.v1.TetherClient" - }, - "method": { - "shortName": "Egress", - "fullName": "google.cloud.apigeeconnect.v1.Tether.Egress", - "service": { - "shortName": "Tether", - "fullName": "google.cloud.apigeeconnect.v1.Tether" - } - } - } - } - ] -} diff --git a/packages/google-cloud-apigeeregistry/samples/generated/v1/snippet_metadata_google.cloud.apigeeregistry.v1.json b/packages/google-cloud-apigeeregistry/samples/generated/v1/snippet_metadata_google.cloud.apigeeregistry.v1.json deleted file mode 100644 index 7bb857b93fc8..000000000000 --- a/packages/google-cloud-apigeeregistry/samples/generated/v1/snippet_metadata_google.cloud.apigeeregistry.v1.json +++ /dev/null @@ -1,1723 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-apigeeregistry", - "version": "2.2.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.apigeeregistry.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "apigeeregistry_v1_generated_Provisioning_CreateInstance_async", - "title": "Provisioning createInstance Sample", - "origin": "API_DEFINITION", - "description": " Provisions instance resources for the Registry.", - "canonical": true, - "file": "provisioning.create_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateInstance", - "fullName": "google.cloud.apigeeregistry.v1.Provisioning.CreateInstance", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "instance_id", - "type": "TYPE_STRING" - }, - { - "name": "instance", - "type": ".google.cloud.apigeeregistry.v1.Instance" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ProvisioningClient", - "fullName": "google.cloud.apigeeregistry.v1.ProvisioningClient" - }, - "method": { - "shortName": "CreateInstance", - "fullName": "google.cloud.apigeeregistry.v1.Provisioning.CreateInstance", - "service": { - "shortName": "Provisioning", - "fullName": "google.cloud.apigeeregistry.v1.Provisioning" - } - } - } - }, - { - "regionTag": "apigeeregistry_v1_generated_Provisioning_DeleteInstance_async", - "title": "Provisioning deleteInstance Sample", - "origin": "API_DEFINITION", - "description": " Deletes the Registry instance.", - "canonical": true, - "file": "provisioning.delete_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteInstance", - "fullName": "google.cloud.apigeeregistry.v1.Provisioning.DeleteInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ProvisioningClient", - "fullName": "google.cloud.apigeeregistry.v1.ProvisioningClient" - }, - "method": { - "shortName": "DeleteInstance", - "fullName": "google.cloud.apigeeregistry.v1.Provisioning.DeleteInstance", - "service": { - "shortName": "Provisioning", - "fullName": "google.cloud.apigeeregistry.v1.Provisioning" - } - } - } - }, - { - "regionTag": "apigeeregistry_v1_generated_Provisioning_GetInstance_async", - "title": "Provisioning getInstance Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Instance.", - "canonical": true, - "file": "provisioning.get_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetInstance", - "fullName": "google.cloud.apigeeregistry.v1.Provisioning.GetInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apigeeregistry.v1.Instance", - "client": { - "shortName": "ProvisioningClient", - "fullName": "google.cloud.apigeeregistry.v1.ProvisioningClient" - }, - "method": { - "shortName": "GetInstance", - "fullName": "google.cloud.apigeeregistry.v1.Provisioning.GetInstance", - "service": { - "shortName": "Provisioning", - "fullName": "google.cloud.apigeeregistry.v1.Provisioning" - } - } - } - }, - { - "regionTag": "apigeeregistry_v1_generated_Registry_ListApis_async", - "title": "Provisioning listApis Sample", - "origin": "API_DEFINITION", - "description": " Returns matching APIs.", - "canonical": true, - "file": "registry.list_apis.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListApis", - "fullName": "google.cloud.apigeeregistry.v1.Registry.ListApis", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apigeeregistry.v1.ListApisResponse", - "client": { - "shortName": "RegistryClient", - "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" - }, - "method": { - "shortName": "ListApis", - "fullName": "google.cloud.apigeeregistry.v1.Registry.ListApis", - "service": { - "shortName": "Registry", - "fullName": "google.cloud.apigeeregistry.v1.Registry" - } - } - } - }, - { - "regionTag": "apigeeregistry_v1_generated_Registry_GetApi_async", - "title": "Provisioning getApi Sample", - "origin": "API_DEFINITION", - "description": " Returns a specified API.", - "canonical": true, - "file": "registry.get_api.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetApi", - "fullName": "google.cloud.apigeeregistry.v1.Registry.GetApi", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apigeeregistry.v1.Api", - "client": { - "shortName": "RegistryClient", - "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" - }, - "method": { - "shortName": "GetApi", - "fullName": "google.cloud.apigeeregistry.v1.Registry.GetApi", - "service": { - "shortName": "Registry", - "fullName": "google.cloud.apigeeregistry.v1.Registry" - } - } - } - }, - { - "regionTag": "apigeeregistry_v1_generated_Registry_CreateApi_async", - "title": "Provisioning createApi Sample", - "origin": "API_DEFINITION", - "description": " Creates a specified API.", - "canonical": true, - "file": "registry.create_api.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateApi", - "fullName": "google.cloud.apigeeregistry.v1.Registry.CreateApi", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "api", - "type": ".google.cloud.apigeeregistry.v1.Api" - }, - { - "name": "api_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apigeeregistry.v1.Api", - "client": { - "shortName": "RegistryClient", - "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" - }, - "method": { - "shortName": "CreateApi", - "fullName": "google.cloud.apigeeregistry.v1.Registry.CreateApi", - "service": { - "shortName": "Registry", - "fullName": "google.cloud.apigeeregistry.v1.Registry" - } - } - } - }, - { - "regionTag": "apigeeregistry_v1_generated_Registry_UpdateApi_async", - "title": "Provisioning updateApi Sample", - "origin": "API_DEFINITION", - "description": " Used to modify a specified API.", - "canonical": true, - "file": "registry.update_api.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateApi", - "fullName": "google.cloud.apigeeregistry.v1.Registry.UpdateApi", - "async": true, - "parameters": [ - { - "name": "api", - "type": ".google.cloud.apigeeregistry.v1.Api" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.apigeeregistry.v1.Api", - "client": { - "shortName": "RegistryClient", - "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" - }, - "method": { - "shortName": "UpdateApi", - "fullName": "google.cloud.apigeeregistry.v1.Registry.UpdateApi", - "service": { - "shortName": "Registry", - "fullName": "google.cloud.apigeeregistry.v1.Registry" - } - } - } - }, - { - "regionTag": "apigeeregistry_v1_generated_Registry_DeleteApi_async", - "title": "Provisioning deleteApi Sample", - "origin": "API_DEFINITION", - "description": " Removes a specified API and all of the resources that it owns.", - "canonical": true, - "file": "registry.delete_api.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteApi", - "fullName": "google.cloud.apigeeregistry.v1.Registry.DeleteApi", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "RegistryClient", - "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" - }, - "method": { - "shortName": "DeleteApi", - "fullName": "google.cloud.apigeeregistry.v1.Registry.DeleteApi", - "service": { - "shortName": "Registry", - "fullName": "google.cloud.apigeeregistry.v1.Registry" - } - } - } - }, - { - "regionTag": "apigeeregistry_v1_generated_Registry_ListApiVersions_async", - "title": "Provisioning listApiVersions Sample", - "origin": "API_DEFINITION", - "description": " Returns matching versions.", - "canonical": true, - "file": "registry.list_api_versions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListApiVersions", - "fullName": "google.cloud.apigeeregistry.v1.Registry.ListApiVersions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apigeeregistry.v1.ListApiVersionsResponse", - "client": { - "shortName": "RegistryClient", - "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" - }, - "method": { - "shortName": "ListApiVersions", - "fullName": "google.cloud.apigeeregistry.v1.Registry.ListApiVersions", - "service": { - "shortName": "Registry", - "fullName": "google.cloud.apigeeregistry.v1.Registry" - } - } - } - }, - { - "regionTag": "apigeeregistry_v1_generated_Registry_GetApiVersion_async", - "title": "Provisioning getApiVersion Sample", - "origin": "API_DEFINITION", - "description": " Returns a specified version.", - "canonical": true, - "file": "registry.get_api_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetApiVersion", - "fullName": "google.cloud.apigeeregistry.v1.Registry.GetApiVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apigeeregistry.v1.ApiVersion", - "client": { - "shortName": "RegistryClient", - "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" - }, - "method": { - "shortName": "GetApiVersion", - "fullName": "google.cloud.apigeeregistry.v1.Registry.GetApiVersion", - "service": { - "shortName": "Registry", - "fullName": "google.cloud.apigeeregistry.v1.Registry" - } - } - } - }, - { - "regionTag": "apigeeregistry_v1_generated_Registry_CreateApiVersion_async", - "title": "Provisioning createApiVersion Sample", - "origin": "API_DEFINITION", - "description": " Creates a specified version.", - "canonical": true, - "file": "registry.create_api_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateApiVersion", - "fullName": "google.cloud.apigeeregistry.v1.Registry.CreateApiVersion", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "api_version", - "type": ".google.cloud.apigeeregistry.v1.ApiVersion" - }, - { - "name": "api_version_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apigeeregistry.v1.ApiVersion", - "client": { - "shortName": "RegistryClient", - "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" - }, - "method": { - "shortName": "CreateApiVersion", - "fullName": "google.cloud.apigeeregistry.v1.Registry.CreateApiVersion", - "service": { - "shortName": "Registry", - "fullName": "google.cloud.apigeeregistry.v1.Registry" - } - } - } - }, - { - "regionTag": "apigeeregistry_v1_generated_Registry_UpdateApiVersion_async", - "title": "Provisioning updateApiVersion Sample", - "origin": "API_DEFINITION", - "description": " Used to modify a specified version.", - "canonical": true, - "file": "registry.update_api_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateApiVersion", - "fullName": "google.cloud.apigeeregistry.v1.Registry.UpdateApiVersion", - "async": true, - "parameters": [ - { - "name": "api_version", - "type": ".google.cloud.apigeeregistry.v1.ApiVersion" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.apigeeregistry.v1.ApiVersion", - "client": { - "shortName": "RegistryClient", - "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" - }, - "method": { - "shortName": "UpdateApiVersion", - "fullName": "google.cloud.apigeeregistry.v1.Registry.UpdateApiVersion", - "service": { - "shortName": "Registry", - "fullName": "google.cloud.apigeeregistry.v1.Registry" - } - } - } - }, - { - "regionTag": "apigeeregistry_v1_generated_Registry_DeleteApiVersion_async", - "title": "Provisioning deleteApiVersion Sample", - "origin": "API_DEFINITION", - "description": " Removes a specified version and all of the resources that it owns.", - "canonical": true, - "file": "registry.delete_api_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteApiVersion", - "fullName": "google.cloud.apigeeregistry.v1.Registry.DeleteApiVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "RegistryClient", - "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" - }, - "method": { - "shortName": "DeleteApiVersion", - "fullName": "google.cloud.apigeeregistry.v1.Registry.DeleteApiVersion", - "service": { - "shortName": "Registry", - "fullName": "google.cloud.apigeeregistry.v1.Registry" - } - } - } - }, - { - "regionTag": "apigeeregistry_v1_generated_Registry_ListApiSpecs_async", - "title": "Provisioning listApiSpecs Sample", - "origin": "API_DEFINITION", - "description": " Returns matching specs.", - "canonical": true, - "file": "registry.list_api_specs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListApiSpecs", - "fullName": "google.cloud.apigeeregistry.v1.Registry.ListApiSpecs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apigeeregistry.v1.ListApiSpecsResponse", - "client": { - "shortName": "RegistryClient", - "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" - }, - "method": { - "shortName": "ListApiSpecs", - "fullName": "google.cloud.apigeeregistry.v1.Registry.ListApiSpecs", - "service": { - "shortName": "Registry", - "fullName": "google.cloud.apigeeregistry.v1.Registry" - } - } - } - }, - { - "regionTag": "apigeeregistry_v1_generated_Registry_GetApiSpec_async", - "title": "Provisioning getApiSpec Sample", - "origin": "API_DEFINITION", - "description": " Returns a specified spec.", - "canonical": true, - "file": "registry.get_api_spec.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetApiSpec", - "fullName": "google.cloud.apigeeregistry.v1.Registry.GetApiSpec", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apigeeregistry.v1.ApiSpec", - "client": { - "shortName": "RegistryClient", - "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" - }, - "method": { - "shortName": "GetApiSpec", - "fullName": "google.cloud.apigeeregistry.v1.Registry.GetApiSpec", - "service": { - "shortName": "Registry", - "fullName": "google.cloud.apigeeregistry.v1.Registry" - } - } - } - }, - { - "regionTag": "apigeeregistry_v1_generated_Registry_GetApiSpecContents_async", - "title": "Provisioning getApiSpecContents Sample", - "origin": "API_DEFINITION", - "description": " Returns the contents of a specified spec. If specs are stored with GZip compression, the default behavior is to return the spec uncompressed (the mime_type response field indicates the exact format returned).", - "canonical": true, - "file": "registry.get_api_spec_contents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetApiSpecContents", - "fullName": "google.cloud.apigeeregistry.v1.Registry.GetApiSpecContents", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.api.HttpBody", - "client": { - "shortName": "RegistryClient", - "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" - }, - "method": { - "shortName": "GetApiSpecContents", - "fullName": "google.cloud.apigeeregistry.v1.Registry.GetApiSpecContents", - "service": { - "shortName": "Registry", - "fullName": "google.cloud.apigeeregistry.v1.Registry" - } - } - } - }, - { - "regionTag": "apigeeregistry_v1_generated_Registry_CreateApiSpec_async", - "title": "Provisioning createApiSpec Sample", - "origin": "API_DEFINITION", - "description": " Creates a specified spec.", - "canonical": true, - "file": "registry.create_api_spec.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateApiSpec", - "fullName": "google.cloud.apigeeregistry.v1.Registry.CreateApiSpec", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "api_spec", - "type": ".google.cloud.apigeeregistry.v1.ApiSpec" - }, - { - "name": "api_spec_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apigeeregistry.v1.ApiSpec", - "client": { - "shortName": "RegistryClient", - "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" - }, - "method": { - "shortName": "CreateApiSpec", - "fullName": "google.cloud.apigeeregistry.v1.Registry.CreateApiSpec", - "service": { - "shortName": "Registry", - "fullName": "google.cloud.apigeeregistry.v1.Registry" - } - } - } - }, - { - "regionTag": "apigeeregistry_v1_generated_Registry_UpdateApiSpec_async", - "title": "Provisioning updateApiSpec Sample", - "origin": "API_DEFINITION", - "description": " Used to modify a specified spec.", - "canonical": true, - "file": "registry.update_api_spec.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateApiSpec", - "fullName": "google.cloud.apigeeregistry.v1.Registry.UpdateApiSpec", - "async": true, - "parameters": [ - { - "name": "api_spec", - "type": ".google.cloud.apigeeregistry.v1.ApiSpec" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.apigeeregistry.v1.ApiSpec", - "client": { - "shortName": "RegistryClient", - "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" - }, - "method": { - "shortName": "UpdateApiSpec", - "fullName": "google.cloud.apigeeregistry.v1.Registry.UpdateApiSpec", - "service": { - "shortName": "Registry", - "fullName": "google.cloud.apigeeregistry.v1.Registry" - } - } - } - }, - { - "regionTag": "apigeeregistry_v1_generated_Registry_DeleteApiSpec_async", - "title": "Provisioning deleteApiSpec Sample", - "origin": "API_DEFINITION", - "description": " Removes a specified spec, all revisions, and all child resources (e.g., artifacts).", - "canonical": true, - "file": "registry.delete_api_spec.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteApiSpec", - "fullName": "google.cloud.apigeeregistry.v1.Registry.DeleteApiSpec", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "RegistryClient", - "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" - }, - "method": { - "shortName": "DeleteApiSpec", - "fullName": "google.cloud.apigeeregistry.v1.Registry.DeleteApiSpec", - "service": { - "shortName": "Registry", - "fullName": "google.cloud.apigeeregistry.v1.Registry" - } - } - } - }, - { - "regionTag": "apigeeregistry_v1_generated_Registry_TagApiSpecRevision_async", - "title": "Provisioning tagApiSpecRevision Sample", - "origin": "API_DEFINITION", - "description": " Adds a tag to a specified revision of a spec.", - "canonical": true, - "file": "registry.tag_api_spec_revision.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TagApiSpecRevision", - "fullName": "google.cloud.apigeeregistry.v1.Registry.TagApiSpecRevision", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "tag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apigeeregistry.v1.ApiSpec", - "client": { - "shortName": "RegistryClient", - "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" - }, - "method": { - "shortName": "TagApiSpecRevision", - "fullName": "google.cloud.apigeeregistry.v1.Registry.TagApiSpecRevision", - "service": { - "shortName": "Registry", - "fullName": "google.cloud.apigeeregistry.v1.Registry" - } - } - } - }, - { - "regionTag": "apigeeregistry_v1_generated_Registry_ListApiSpecRevisions_async", - "title": "Provisioning listApiSpecRevisions Sample", - "origin": "API_DEFINITION", - "description": " Lists all revisions of a spec. Revisions are returned in descending order of revision creation time.", - "canonical": true, - "file": "registry.list_api_spec_revisions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListApiSpecRevisions", - "fullName": "google.cloud.apigeeregistry.v1.Registry.ListApiSpecRevisions", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apigeeregistry.v1.ListApiSpecRevisionsResponse", - "client": { - "shortName": "RegistryClient", - "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" - }, - "method": { - "shortName": "ListApiSpecRevisions", - "fullName": "google.cloud.apigeeregistry.v1.Registry.ListApiSpecRevisions", - "service": { - "shortName": "Registry", - "fullName": "google.cloud.apigeeregistry.v1.Registry" - } - } - } - }, - { - "regionTag": "apigeeregistry_v1_generated_Registry_RollbackApiSpec_async", - "title": "Provisioning rollbackApiSpec Sample", - "origin": "API_DEFINITION", - "description": " Sets the current revision to a specified prior revision. Note that this creates a new revision with a new revision ID.", - "canonical": true, - "file": "registry.rollback_api_spec.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RollbackApiSpec", - "fullName": "google.cloud.apigeeregistry.v1.Registry.RollbackApiSpec", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "revision_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apigeeregistry.v1.ApiSpec", - "client": { - "shortName": "RegistryClient", - "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" - }, - "method": { - "shortName": "RollbackApiSpec", - "fullName": "google.cloud.apigeeregistry.v1.Registry.RollbackApiSpec", - "service": { - "shortName": "Registry", - "fullName": "google.cloud.apigeeregistry.v1.Registry" - } - } - } - }, - { - "regionTag": "apigeeregistry_v1_generated_Registry_DeleteApiSpecRevision_async", - "title": "Provisioning deleteApiSpecRevision Sample", - "origin": "API_DEFINITION", - "description": " Deletes a revision of a spec.", - "canonical": true, - "file": "registry.delete_api_spec_revision.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteApiSpecRevision", - "fullName": "google.cloud.apigeeregistry.v1.Registry.DeleteApiSpecRevision", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apigeeregistry.v1.ApiSpec", - "client": { - "shortName": "RegistryClient", - "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" - }, - "method": { - "shortName": "DeleteApiSpecRevision", - "fullName": "google.cloud.apigeeregistry.v1.Registry.DeleteApiSpecRevision", - "service": { - "shortName": "Registry", - "fullName": "google.cloud.apigeeregistry.v1.Registry" - } - } - } - }, - { - "regionTag": "apigeeregistry_v1_generated_Registry_ListApiDeployments_async", - "title": "Provisioning listApiDeployments Sample", - "origin": "API_DEFINITION", - "description": " Returns matching deployments.", - "canonical": true, - "file": "registry.list_api_deployments.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListApiDeployments", - "fullName": "google.cloud.apigeeregistry.v1.Registry.ListApiDeployments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apigeeregistry.v1.ListApiDeploymentsResponse", - "client": { - "shortName": "RegistryClient", - "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" - }, - "method": { - "shortName": "ListApiDeployments", - "fullName": "google.cloud.apigeeregistry.v1.Registry.ListApiDeployments", - "service": { - "shortName": "Registry", - "fullName": "google.cloud.apigeeregistry.v1.Registry" - } - } - } - }, - { - "regionTag": "apigeeregistry_v1_generated_Registry_GetApiDeployment_async", - "title": "Provisioning getApiDeployment Sample", - "origin": "API_DEFINITION", - "description": " Returns a specified deployment.", - "canonical": true, - "file": "registry.get_api_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetApiDeployment", - "fullName": "google.cloud.apigeeregistry.v1.Registry.GetApiDeployment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apigeeregistry.v1.ApiDeployment", - "client": { - "shortName": "RegistryClient", - "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" - }, - "method": { - "shortName": "GetApiDeployment", - "fullName": "google.cloud.apigeeregistry.v1.Registry.GetApiDeployment", - "service": { - "shortName": "Registry", - "fullName": "google.cloud.apigeeregistry.v1.Registry" - } - } - } - }, - { - "regionTag": "apigeeregistry_v1_generated_Registry_CreateApiDeployment_async", - "title": "Provisioning createApiDeployment Sample", - "origin": "API_DEFINITION", - "description": " Creates a specified deployment.", - "canonical": true, - "file": "registry.create_api_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateApiDeployment", - "fullName": "google.cloud.apigeeregistry.v1.Registry.CreateApiDeployment", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "api_deployment", - "type": ".google.cloud.apigeeregistry.v1.ApiDeployment" - }, - { - "name": "api_deployment_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apigeeregistry.v1.ApiDeployment", - "client": { - "shortName": "RegistryClient", - "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" - }, - "method": { - "shortName": "CreateApiDeployment", - "fullName": "google.cloud.apigeeregistry.v1.Registry.CreateApiDeployment", - "service": { - "shortName": "Registry", - "fullName": "google.cloud.apigeeregistry.v1.Registry" - } - } - } - }, - { - "regionTag": "apigeeregistry_v1_generated_Registry_UpdateApiDeployment_async", - "title": "Provisioning updateApiDeployment Sample", - "origin": "API_DEFINITION", - "description": " Used to modify a specified deployment.", - "canonical": true, - "file": "registry.update_api_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateApiDeployment", - "fullName": "google.cloud.apigeeregistry.v1.Registry.UpdateApiDeployment", - "async": true, - "parameters": [ - { - "name": "api_deployment", - "type": ".google.cloud.apigeeregistry.v1.ApiDeployment" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.apigeeregistry.v1.ApiDeployment", - "client": { - "shortName": "RegistryClient", - "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" - }, - "method": { - "shortName": "UpdateApiDeployment", - "fullName": "google.cloud.apigeeregistry.v1.Registry.UpdateApiDeployment", - "service": { - "shortName": "Registry", - "fullName": "google.cloud.apigeeregistry.v1.Registry" - } - } - } - }, - { - "regionTag": "apigeeregistry_v1_generated_Registry_DeleteApiDeployment_async", - "title": "Provisioning deleteApiDeployment Sample", - "origin": "API_DEFINITION", - "description": " Removes a specified deployment, all revisions, and all child resources (e.g., artifacts).", - "canonical": true, - "file": "registry.delete_api_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteApiDeployment", - "fullName": "google.cloud.apigeeregistry.v1.Registry.DeleteApiDeployment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "RegistryClient", - "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" - }, - "method": { - "shortName": "DeleteApiDeployment", - "fullName": "google.cloud.apigeeregistry.v1.Registry.DeleteApiDeployment", - "service": { - "shortName": "Registry", - "fullName": "google.cloud.apigeeregistry.v1.Registry" - } - } - } - }, - { - "regionTag": "apigeeregistry_v1_generated_Registry_TagApiDeploymentRevision_async", - "title": "Provisioning tagApiDeploymentRevision Sample", - "origin": "API_DEFINITION", - "description": " Adds a tag to a specified revision of a deployment.", - "canonical": true, - "file": "registry.tag_api_deployment_revision.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TagApiDeploymentRevision", - "fullName": "google.cloud.apigeeregistry.v1.Registry.TagApiDeploymentRevision", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "tag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apigeeregistry.v1.ApiDeployment", - "client": { - "shortName": "RegistryClient", - "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" - }, - "method": { - "shortName": "TagApiDeploymentRevision", - "fullName": "google.cloud.apigeeregistry.v1.Registry.TagApiDeploymentRevision", - "service": { - "shortName": "Registry", - "fullName": "google.cloud.apigeeregistry.v1.Registry" - } - } - } - }, - { - "regionTag": "apigeeregistry_v1_generated_Registry_ListApiDeploymentRevisions_async", - "title": "Provisioning listApiDeploymentRevisions Sample", - "origin": "API_DEFINITION", - "description": " Lists all revisions of a deployment. Revisions are returned in descending order of revision creation time.", - "canonical": true, - "file": "registry.list_api_deployment_revisions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListApiDeploymentRevisions", - "fullName": "google.cloud.apigeeregistry.v1.Registry.ListApiDeploymentRevisions", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apigeeregistry.v1.ListApiDeploymentRevisionsResponse", - "client": { - "shortName": "RegistryClient", - "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" - }, - "method": { - "shortName": "ListApiDeploymentRevisions", - "fullName": "google.cloud.apigeeregistry.v1.Registry.ListApiDeploymentRevisions", - "service": { - "shortName": "Registry", - "fullName": "google.cloud.apigeeregistry.v1.Registry" - } - } - } - }, - { - "regionTag": "apigeeregistry_v1_generated_Registry_RollbackApiDeployment_async", - "title": "Provisioning rollbackApiDeployment Sample", - "origin": "API_DEFINITION", - "description": " Sets the current revision to a specified prior revision. Note that this creates a new revision with a new revision ID.", - "canonical": true, - "file": "registry.rollback_api_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RollbackApiDeployment", - "fullName": "google.cloud.apigeeregistry.v1.Registry.RollbackApiDeployment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "revision_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apigeeregistry.v1.ApiDeployment", - "client": { - "shortName": "RegistryClient", - "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" - }, - "method": { - "shortName": "RollbackApiDeployment", - "fullName": "google.cloud.apigeeregistry.v1.Registry.RollbackApiDeployment", - "service": { - "shortName": "Registry", - "fullName": "google.cloud.apigeeregistry.v1.Registry" - } - } - } - }, - { - "regionTag": "apigeeregistry_v1_generated_Registry_DeleteApiDeploymentRevision_async", - "title": "Provisioning deleteApiDeploymentRevision Sample", - "origin": "API_DEFINITION", - "description": " Deletes a revision of a deployment.", - "canonical": true, - "file": "registry.delete_api_deployment_revision.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteApiDeploymentRevision", - "fullName": "google.cloud.apigeeregistry.v1.Registry.DeleteApiDeploymentRevision", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apigeeregistry.v1.ApiDeployment", - "client": { - "shortName": "RegistryClient", - "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" - }, - "method": { - "shortName": "DeleteApiDeploymentRevision", - "fullName": "google.cloud.apigeeregistry.v1.Registry.DeleteApiDeploymentRevision", - "service": { - "shortName": "Registry", - "fullName": "google.cloud.apigeeregistry.v1.Registry" - } - } - } - }, - { - "regionTag": "apigeeregistry_v1_generated_Registry_ListArtifacts_async", - "title": "Provisioning listArtifacts Sample", - "origin": "API_DEFINITION", - "description": " Returns matching artifacts.", - "canonical": true, - "file": "registry.list_artifacts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListArtifacts", - "fullName": "google.cloud.apigeeregistry.v1.Registry.ListArtifacts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apigeeregistry.v1.ListArtifactsResponse", - "client": { - "shortName": "RegistryClient", - "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" - }, - "method": { - "shortName": "ListArtifacts", - "fullName": "google.cloud.apigeeregistry.v1.Registry.ListArtifacts", - "service": { - "shortName": "Registry", - "fullName": "google.cloud.apigeeregistry.v1.Registry" - } - } - } - }, - { - "regionTag": "apigeeregistry_v1_generated_Registry_GetArtifact_async", - "title": "Provisioning getArtifact Sample", - "origin": "API_DEFINITION", - "description": " Returns a specified artifact.", - "canonical": true, - "file": "registry.get_artifact.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetArtifact", - "fullName": "google.cloud.apigeeregistry.v1.Registry.GetArtifact", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apigeeregistry.v1.Artifact", - "client": { - "shortName": "RegistryClient", - "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" - }, - "method": { - "shortName": "GetArtifact", - "fullName": "google.cloud.apigeeregistry.v1.Registry.GetArtifact", - "service": { - "shortName": "Registry", - "fullName": "google.cloud.apigeeregistry.v1.Registry" - } - } - } - }, - { - "regionTag": "apigeeregistry_v1_generated_Registry_GetArtifactContents_async", - "title": "Provisioning getArtifactContents Sample", - "origin": "API_DEFINITION", - "description": " Returns the contents of a specified artifact. If artifacts are stored with GZip compression, the default behavior is to return the artifact uncompressed (the mime_type response field indicates the exact format returned).", - "canonical": true, - "file": "registry.get_artifact_contents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetArtifactContents", - "fullName": "google.cloud.apigeeregistry.v1.Registry.GetArtifactContents", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.api.HttpBody", - "client": { - "shortName": "RegistryClient", - "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" - }, - "method": { - "shortName": "GetArtifactContents", - "fullName": "google.cloud.apigeeregistry.v1.Registry.GetArtifactContents", - "service": { - "shortName": "Registry", - "fullName": "google.cloud.apigeeregistry.v1.Registry" - } - } - } - }, - { - "regionTag": "apigeeregistry_v1_generated_Registry_CreateArtifact_async", - "title": "Provisioning createArtifact Sample", - "origin": "API_DEFINITION", - "description": " Creates a specified artifact.", - "canonical": true, - "file": "registry.create_artifact.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateArtifact", - "fullName": "google.cloud.apigeeregistry.v1.Registry.CreateArtifact", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "artifact", - "type": ".google.cloud.apigeeregistry.v1.Artifact" - }, - { - "name": "artifact_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apigeeregistry.v1.Artifact", - "client": { - "shortName": "RegistryClient", - "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" - }, - "method": { - "shortName": "CreateArtifact", - "fullName": "google.cloud.apigeeregistry.v1.Registry.CreateArtifact", - "service": { - "shortName": "Registry", - "fullName": "google.cloud.apigeeregistry.v1.Registry" - } - } - } - }, - { - "regionTag": "apigeeregistry_v1_generated_Registry_ReplaceArtifact_async", - "title": "Provisioning replaceArtifact Sample", - "origin": "API_DEFINITION", - "description": " Used to replace a specified artifact.", - "canonical": true, - "file": "registry.replace_artifact.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReplaceArtifact", - "fullName": "google.cloud.apigeeregistry.v1.Registry.ReplaceArtifact", - "async": true, - "parameters": [ - { - "name": "artifact", - "type": ".google.cloud.apigeeregistry.v1.Artifact" - } - ], - "resultType": ".google.cloud.apigeeregistry.v1.Artifact", - "client": { - "shortName": "RegistryClient", - "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" - }, - "method": { - "shortName": "ReplaceArtifact", - "fullName": "google.cloud.apigeeregistry.v1.Registry.ReplaceArtifact", - "service": { - "shortName": "Registry", - "fullName": "google.cloud.apigeeregistry.v1.Registry" - } - } - } - }, - { - "regionTag": "apigeeregistry_v1_generated_Registry_DeleteArtifact_async", - "title": "Provisioning deleteArtifact Sample", - "origin": "API_DEFINITION", - "description": " Removes a specified artifact.", - "canonical": true, - "file": "registry.delete_artifact.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteArtifact", - "fullName": "google.cloud.apigeeregistry.v1.Registry.DeleteArtifact", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "RegistryClient", - "fullName": "google.cloud.apigeeregistry.v1.RegistryClient" - }, - "method": { - "shortName": "DeleteArtifact", - "fullName": "google.cloud.apigeeregistry.v1.Registry.DeleteArtifact", - "service": { - "shortName": "Registry", - "fullName": "google.cloud.apigeeregistry.v1.Registry" - } - } - } - } - ] -} diff --git a/packages/google-cloud-apihub/samples/generated/v1/snippet_metadata_google.cloud.apihub.v1.json b/packages/google-cloud-apihub/samples/generated/v1/snippet_metadata_google.cloud.apihub.v1.json deleted file mode 100644 index e80ac638bf29..000000000000 --- a/packages/google-cloud-apihub/samples/generated/v1/snippet_metadata_google.cloud.apihub.v1.json +++ /dev/null @@ -1,3719 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-apihub", - "version": "0.5.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.apihub.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "apihub_v1_generated_ApiHub_CreateApi_async", - "title": "ApiHub createApi Sample", - "origin": "API_DEFINITION", - "description": " Create an API resource in the API hub. Once an API resource is created, versions can be added to it.", - "canonical": true, - "file": "api_hub.create_api.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateApi", - "fullName": "google.cloud.apihub.v1.ApiHub.CreateApi", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "api_id", - "type": "TYPE_STRING" - }, - { - "name": "api", - "type": ".google.cloud.apihub.v1.Api" - } - ], - "resultType": ".google.cloud.apihub.v1.Api", - "client": { - "shortName": "ApiHubClient", - "fullName": "google.cloud.apihub.v1.ApiHubClient" - }, - "method": { - "shortName": "CreateApi", - "fullName": "google.cloud.apihub.v1.ApiHub.CreateApi", - "service": { - "shortName": "ApiHub", - "fullName": "google.cloud.apihub.v1.ApiHub" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHub_GetApi_async", - "title": "ApiHub getApi Sample", - "origin": "API_DEFINITION", - "description": " Get API resource details including the API versions contained in it.", - "canonical": true, - "file": "api_hub.get_api.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetApi", - "fullName": "google.cloud.apihub.v1.ApiHub.GetApi", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apihub.v1.Api", - "client": { - "shortName": "ApiHubClient", - "fullName": "google.cloud.apihub.v1.ApiHubClient" - }, - "method": { - "shortName": "GetApi", - "fullName": "google.cloud.apihub.v1.ApiHub.GetApi", - "service": { - "shortName": "ApiHub", - "fullName": "google.cloud.apihub.v1.ApiHub" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHub_ListApis_async", - "title": "ApiHub listApis Sample", - "origin": "API_DEFINITION", - "description": " List API resources in the API hub.", - "canonical": true, - "file": "api_hub.list_apis.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 178, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListApis", - "fullName": "google.cloud.apihub.v1.ApiHub.ListApis", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apihub.v1.ListApisResponse", - "client": { - "shortName": "ApiHubClient", - "fullName": "google.cloud.apihub.v1.ApiHubClient" - }, - "method": { - "shortName": "ListApis", - "fullName": "google.cloud.apihub.v1.ApiHub.ListApis", - "service": { - "shortName": "ApiHub", - "fullName": "google.cloud.apihub.v1.ApiHub" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHub_UpdateApi_async", - "title": "ApiHub updateApi Sample", - "origin": "API_DEFINITION", - "description": " Update an API resource in the API hub. The following fields in the [API][google.cloud.apihub.v1.Api] can be updated: * [display_name][google.cloud.apihub.v1.Api.display_name] * [description][google.cloud.apihub.v1.Api.description] * [owner][google.cloud.apihub.v1.Api.owner] * [documentation][google.cloud.apihub.v1.Api.documentation] * [target_user][google.cloud.apihub.v1.Api.target_user] * [team][google.cloud.apihub.v1.Api.team] * [business_unit][google.cloud.apihub.v1.Api.business_unit] * [maturity_level][google.cloud.apihub.v1.Api.maturity_level] * [api_style][google.cloud.apihub.v1.Api.api_style] * [attributes][google.cloud.apihub.v1.Api.attributes] The [update_mask][google.cloud.apihub.v1.UpdateApiRequest.update_mask] should be used to specify the fields being updated. Updating the owner field requires complete owner message and updates both owner and email fields.", - "canonical": true, - "file": "api_hub.update_api.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateApi", - "fullName": "google.cloud.apihub.v1.ApiHub.UpdateApi", - "async": true, - "parameters": [ - { - "name": "api", - "type": ".google.cloud.apihub.v1.Api" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.apihub.v1.Api", - "client": { - "shortName": "ApiHubClient", - "fullName": "google.cloud.apihub.v1.ApiHubClient" - }, - "method": { - "shortName": "UpdateApi", - "fullName": "google.cloud.apihub.v1.ApiHub.UpdateApi", - "service": { - "shortName": "ApiHub", - "fullName": "google.cloud.apihub.v1.ApiHub" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHub_DeleteApi_async", - "title": "ApiHub deleteApi Sample", - "origin": "API_DEFINITION", - "description": " Delete an API resource in the API hub. API can only be deleted if all underlying versions are deleted.", - "canonical": true, - "file": "api_hub.delete_api.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteApi", - "fullName": "google.cloud.apihub.v1.ApiHub.DeleteApi", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ApiHubClient", - "fullName": "google.cloud.apihub.v1.ApiHubClient" - }, - "method": { - "shortName": "DeleteApi", - "fullName": "google.cloud.apihub.v1.ApiHub.DeleteApi", - "service": { - "shortName": "ApiHub", - "fullName": "google.cloud.apihub.v1.ApiHub" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHub_CreateVersion_async", - "title": "ApiHub createVersion Sample", - "origin": "API_DEFINITION", - "description": " Create an API version for an API resource in the API hub.", - "canonical": true, - "file": "api_hub.create_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateVersion", - "fullName": "google.cloud.apihub.v1.ApiHub.CreateVersion", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "version_id", - "type": "TYPE_STRING" - }, - { - "name": "version", - "type": ".google.cloud.apihub.v1.Version" - } - ], - "resultType": ".google.cloud.apihub.v1.Version", - "client": { - "shortName": "ApiHubClient", - "fullName": "google.cloud.apihub.v1.ApiHubClient" - }, - "method": { - "shortName": "CreateVersion", - "fullName": "google.cloud.apihub.v1.ApiHub.CreateVersion", - "service": { - "shortName": "ApiHub", - "fullName": "google.cloud.apihub.v1.ApiHub" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHub_GetVersion_async", - "title": "ApiHub getVersion Sample", - "origin": "API_DEFINITION", - "description": " Get details about the API version of an API resource. This will include information about the specs and operations present in the API version as well as the deployments linked to it.", - "canonical": true, - "file": "api_hub.get_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetVersion", - "fullName": "google.cloud.apihub.v1.ApiHub.GetVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apihub.v1.Version", - "client": { - "shortName": "ApiHubClient", - "fullName": "google.cloud.apihub.v1.ApiHubClient" - }, - "method": { - "shortName": "GetVersion", - "fullName": "google.cloud.apihub.v1.ApiHub.GetVersion", - "service": { - "shortName": "ApiHub", - "fullName": "google.cloud.apihub.v1.ApiHub" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHub_ListVersions_async", - "title": "ApiHub listVersions Sample", - "origin": "API_DEFINITION", - "description": " List API versions of an API resource in the API hub.", - "canonical": true, - "file": "api_hub.list_versions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 156, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListVersions", - "fullName": "google.cloud.apihub.v1.ApiHub.ListVersions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apihub.v1.ListVersionsResponse", - "client": { - "shortName": "ApiHubClient", - "fullName": "google.cloud.apihub.v1.ApiHubClient" - }, - "method": { - "shortName": "ListVersions", - "fullName": "google.cloud.apihub.v1.ApiHub.ListVersions", - "service": { - "shortName": "ApiHub", - "fullName": "google.cloud.apihub.v1.ApiHub" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHub_UpdateVersion_async", - "title": "ApiHub updateVersion Sample", - "origin": "API_DEFINITION", - "description": " Update API version. The following fields in the [version][google.cloud.apihub.v1.Version] can be updated currently: * [display_name][google.cloud.apihub.v1.Version.display_name] * [description][google.cloud.apihub.v1.Version.description] * [documentation][google.cloud.apihub.v1.Version.documentation] * [deployments][google.cloud.apihub.v1.Version.deployments] * [lifecycle][google.cloud.apihub.v1.Version.lifecycle] * [compliance][google.cloud.apihub.v1.Version.compliance] * [accreditation][google.cloud.apihub.v1.Version.accreditation] * [attributes][google.cloud.apihub.v1.Version.attributes] The [update_mask][google.cloud.apihub.v1.UpdateVersionRequest.update_mask] should be used to specify the fields being updated.", - "canonical": true, - "file": "api_hub.update_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateVersion", - "fullName": "google.cloud.apihub.v1.ApiHub.UpdateVersion", - "async": true, - "parameters": [ - { - "name": "version", - "type": ".google.cloud.apihub.v1.Version" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.apihub.v1.Version", - "client": { - "shortName": "ApiHubClient", - "fullName": "google.cloud.apihub.v1.ApiHubClient" - }, - "method": { - "shortName": "UpdateVersion", - "fullName": "google.cloud.apihub.v1.ApiHub.UpdateVersion", - "service": { - "shortName": "ApiHub", - "fullName": "google.cloud.apihub.v1.ApiHub" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHub_DeleteVersion_async", - "title": "ApiHub deleteVersion Sample", - "origin": "API_DEFINITION", - "description": " Delete an API version. Version can only be deleted if all underlying specs, operations, definitions and linked deployments are deleted.", - "canonical": true, - "file": "api_hub.delete_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteVersion", - "fullName": "google.cloud.apihub.v1.ApiHub.DeleteVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ApiHubClient", - "fullName": "google.cloud.apihub.v1.ApiHubClient" - }, - "method": { - "shortName": "DeleteVersion", - "fullName": "google.cloud.apihub.v1.ApiHub.DeleteVersion", - "service": { - "shortName": "ApiHub", - "fullName": "google.cloud.apihub.v1.ApiHub" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHub_CreateSpec_async", - "title": "ApiHub createSpec Sample", - "origin": "API_DEFINITION", - "description": " Add a spec to an API version in the API hub. Multiple specs can be added to an API version. Note, while adding a spec, at least one of `contents` or `source_uri` must be provided. If `contents` is provided, then `spec_type` must also be provided. On adding a spec with contents to the version, the operations present in it will be added to the version.Note that the file contents in the spec should be of the same type as defined in the `projects/{project}/locations/{location}/attributes/system-spec-type` attribute associated with spec resource. Note that specs of various types can be uploaded, however parsing of details is supported for OpenAPI spec currently. In order to access the information parsed from the spec, use the [GetSpec][google.cloud.apihub.v1.ApiHub.GetSpec] method. In order to access the raw contents for a particular spec, use the [GetSpecContents][google.cloud.apihub.v1.ApiHub.GetSpecContents] method. In order to access the operations parsed from the spec, use the [ListAPIOperations][google.cloud.apihub.v1.ApiHub.ListApiOperations] method.", - "canonical": true, - "file": "api_hub.create_spec.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSpec", - "fullName": "google.cloud.apihub.v1.ApiHub.CreateSpec", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "spec_id", - "type": "TYPE_STRING" - }, - { - "name": "spec", - "type": ".google.cloud.apihub.v1.Spec" - } - ], - "resultType": ".google.cloud.apihub.v1.Spec", - "client": { - "shortName": "ApiHubClient", - "fullName": "google.cloud.apihub.v1.ApiHubClient" - }, - "method": { - "shortName": "CreateSpec", - "fullName": "google.cloud.apihub.v1.ApiHub.CreateSpec", - "service": { - "shortName": "ApiHub", - "fullName": "google.cloud.apihub.v1.ApiHub" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHub_GetSpec_async", - "title": "ApiHub getSpec Sample", - "origin": "API_DEFINITION", - "description": " Get details about the information parsed from a spec. Note that this method does not return the raw spec contents. Use [GetSpecContents][google.cloud.apihub.v1.ApiHub.GetSpecContents] method to retrieve the same.", - "canonical": true, - "file": "api_hub.get_spec.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSpec", - "fullName": "google.cloud.apihub.v1.ApiHub.GetSpec", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apihub.v1.Spec", - "client": { - "shortName": "ApiHubClient", - "fullName": "google.cloud.apihub.v1.ApiHubClient" - }, - "method": { - "shortName": "GetSpec", - "fullName": "google.cloud.apihub.v1.ApiHub.GetSpec", - "service": { - "shortName": "ApiHub", - "fullName": "google.cloud.apihub.v1.ApiHub" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHub_GetSpecContents_async", - "title": "ApiHub getSpecContents Sample", - "origin": "API_DEFINITION", - "description": " Get spec contents.", - "canonical": true, - "file": "api_hub.get_spec_contents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSpecContents", - "fullName": "google.cloud.apihub.v1.ApiHub.GetSpecContents", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apihub.v1.SpecContents", - "client": { - "shortName": "ApiHubClient", - "fullName": "google.cloud.apihub.v1.ApiHubClient" - }, - "method": { - "shortName": "GetSpecContents", - "fullName": "google.cloud.apihub.v1.ApiHub.GetSpecContents", - "service": { - "shortName": "ApiHub", - "fullName": "google.cloud.apihub.v1.ApiHub" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHub_ListSpecs_async", - "title": "ApiHub listSpecs Sample", - "origin": "API_DEFINITION", - "description": " List specs corresponding to a particular API resource.", - "canonical": true, - "file": "api_hub.list_specs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 150, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSpecs", - "fullName": "google.cloud.apihub.v1.ApiHub.ListSpecs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apihub.v1.ListSpecsResponse", - "client": { - "shortName": "ApiHubClient", - "fullName": "google.cloud.apihub.v1.ApiHubClient" - }, - "method": { - "shortName": "ListSpecs", - "fullName": "google.cloud.apihub.v1.ApiHub.ListSpecs", - "service": { - "shortName": "ApiHub", - "fullName": "google.cloud.apihub.v1.ApiHub" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHub_UpdateSpec_async", - "title": "ApiHub updateSpec Sample", - "origin": "API_DEFINITION", - "description": " Update spec. The following fields in the [spec][google.cloud.apihub.v1.Spec] can be updated: * [display_name][google.cloud.apihub.v1.Spec.display_name] * [source_uri][google.cloud.apihub.v1.Spec.source_uri] * [lint_response][google.cloud.apihub.v1.Spec.lint_response] * [attributes][google.cloud.apihub.v1.Spec.attributes] * [contents][google.cloud.apihub.v1.Spec.contents] * [spec_type][google.cloud.apihub.v1.Spec.spec_type] In case of an OAS spec, updating spec contents can lead to: 1. Creation, deletion and update of operations. 2. Creation, deletion and update of definitions. 3. Update of other info parsed out from the new spec. In case of contents or source_uri being present in update mask, spec_type must also be present. Also, spec_type can not be present in update mask if contents or source_uri is not present. The [update_mask][google.cloud.apihub.v1.UpdateSpecRequest.update_mask] should be used to specify the fields being updated.", - "canonical": true, - "file": "api_hub.update_spec.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSpec", - "fullName": "google.cloud.apihub.v1.ApiHub.UpdateSpec", - "async": true, - "parameters": [ - { - "name": "spec", - "type": ".google.cloud.apihub.v1.Spec" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.apihub.v1.Spec", - "client": { - "shortName": "ApiHubClient", - "fullName": "google.cloud.apihub.v1.ApiHubClient" - }, - "method": { - "shortName": "UpdateSpec", - "fullName": "google.cloud.apihub.v1.ApiHub.UpdateSpec", - "service": { - "shortName": "ApiHub", - "fullName": "google.cloud.apihub.v1.ApiHub" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHub_DeleteSpec_async", - "title": "ApiHub deleteSpec Sample", - "origin": "API_DEFINITION", - "description": " Delete a spec. Deleting a spec will also delete the associated operations from the version.", - "canonical": true, - "file": "api_hub.delete_spec.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSpec", - "fullName": "google.cloud.apihub.v1.ApiHub.DeleteSpec", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ApiHubClient", - "fullName": "google.cloud.apihub.v1.ApiHubClient" - }, - "method": { - "shortName": "DeleteSpec", - "fullName": "google.cloud.apihub.v1.ApiHub.DeleteSpec", - "service": { - "shortName": "ApiHub", - "fullName": "google.cloud.apihub.v1.ApiHub" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHub_CreateApiOperation_async", - "title": "ApiHub createApiOperation Sample", - "origin": "API_DEFINITION", - "description": " Create an apiOperation in an API version. An apiOperation can be created only if the version has no apiOperations which were created by parsing a spec.", - "canonical": true, - "file": "api_hub.create_api_operation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateApiOperation", - "fullName": "google.cloud.apihub.v1.ApiHub.CreateApiOperation", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "api_operation_id", - "type": "TYPE_STRING" - }, - { - "name": "api_operation", - "type": ".google.cloud.apihub.v1.ApiOperation" - } - ], - "resultType": ".google.cloud.apihub.v1.ApiOperation", - "client": { - "shortName": "ApiHubClient", - "fullName": "google.cloud.apihub.v1.ApiHubClient" - }, - "method": { - "shortName": "CreateApiOperation", - "fullName": "google.cloud.apihub.v1.ApiHub.CreateApiOperation", - "service": { - "shortName": "ApiHub", - "fullName": "google.cloud.apihub.v1.ApiHub" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHub_GetApiOperation_async", - "title": "ApiHub getApiOperation Sample", - "origin": "API_DEFINITION", - "description": " Get details about a particular operation in API version.", - "canonical": true, - "file": "api_hub.get_api_operation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetApiOperation", - "fullName": "google.cloud.apihub.v1.ApiHub.GetApiOperation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apihub.v1.ApiOperation", - "client": { - "shortName": "ApiHubClient", - "fullName": "google.cloud.apihub.v1.ApiHubClient" - }, - "method": { - "shortName": "GetApiOperation", - "fullName": "google.cloud.apihub.v1.ApiHub.GetApiOperation", - "service": { - "shortName": "ApiHub", - "fullName": "google.cloud.apihub.v1.ApiHub" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHub_ListApiOperations_async", - "title": "ApiHub listApiOperations Sample", - "origin": "API_DEFINITION", - "description": " List operations in an API version.", - "canonical": true, - "file": "api_hub.list_api_operations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 138, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListApiOperations", - "fullName": "google.cloud.apihub.v1.ApiHub.ListApiOperations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apihub.v1.ListApiOperationsResponse", - "client": { - "shortName": "ApiHubClient", - "fullName": "google.cloud.apihub.v1.ApiHubClient" - }, - "method": { - "shortName": "ListApiOperations", - "fullName": "google.cloud.apihub.v1.ApiHub.ListApiOperations", - "service": { - "shortName": "ApiHub", - "fullName": "google.cloud.apihub.v1.ApiHub" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHub_UpdateApiOperation_async", - "title": "ApiHub updateApiOperation Sample", - "origin": "API_DEFINITION", - "description": " Update an operation in an API version. The following fields in the [ApiOperation resource][google.cloud.apihub.v1.ApiOperation] can be updated: * [details.description][ApiOperation.details.description] * [details.documentation][ApiOperation.details.documentation] * [details.http_operation.path][ApiOperation.details.http_operation.path.path] * [details.http_operation.method][ApiOperation.details.http_operation.method] * [details.deprecated][ApiOperation.details.deprecated] * [attributes][google.cloud.apihub.v1.ApiOperation.attributes] The [update_mask][google.cloud.apihub.v1.UpdateApiOperationRequest.update_mask] should be used to specify the fields being updated. An operation can be updated only if the operation was created via [CreateApiOperation][google.cloud.apihub.v1.ApiHub.CreateApiOperation] API. If the operation was created by parsing the spec, then it can be edited by updating the spec.", - "canonical": true, - "file": "api_hub.update_api_operation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateApiOperation", - "fullName": "google.cloud.apihub.v1.ApiHub.UpdateApiOperation", - "async": true, - "parameters": [ - { - "name": "api_operation", - "type": ".google.cloud.apihub.v1.ApiOperation" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.apihub.v1.ApiOperation", - "client": { - "shortName": "ApiHubClient", - "fullName": "google.cloud.apihub.v1.ApiHubClient" - }, - "method": { - "shortName": "UpdateApiOperation", - "fullName": "google.cloud.apihub.v1.ApiHub.UpdateApiOperation", - "service": { - "shortName": "ApiHub", - "fullName": "google.cloud.apihub.v1.ApiHub" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHub_DeleteApiOperation_async", - "title": "ApiHub deleteApiOperation Sample", - "origin": "API_DEFINITION", - "description": " Delete an operation in an API version and we can delete only the operations created via create API. If the operation was created by parsing the spec, then it can be deleted by editing or deleting the spec.", - "canonical": true, - "file": "api_hub.delete_api_operation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteApiOperation", - "fullName": "google.cloud.apihub.v1.ApiHub.DeleteApiOperation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ApiHubClient", - "fullName": "google.cloud.apihub.v1.ApiHubClient" - }, - "method": { - "shortName": "DeleteApiOperation", - "fullName": "google.cloud.apihub.v1.ApiHub.DeleteApiOperation", - "service": { - "shortName": "ApiHub", - "fullName": "google.cloud.apihub.v1.ApiHub" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHub_GetDefinition_async", - "title": "ApiHub getDefinition Sample", - "origin": "API_DEFINITION", - "description": " Get details about a definition in an API version.", - "canonical": true, - "file": "api_hub.get_definition.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDefinition", - "fullName": "google.cloud.apihub.v1.ApiHub.GetDefinition", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apihub.v1.Definition", - "client": { - "shortName": "ApiHubClient", - "fullName": "google.cloud.apihub.v1.ApiHubClient" - }, - "method": { - "shortName": "GetDefinition", - "fullName": "google.cloud.apihub.v1.ApiHub.GetDefinition", - "service": { - "shortName": "ApiHub", - "fullName": "google.cloud.apihub.v1.ApiHub" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHub_CreateDeployment_async", - "title": "ApiHub createDeployment Sample", - "origin": "API_DEFINITION", - "description": " Create a deployment resource in the API hub. Once a deployment resource is created, it can be associated with API versions.", - "canonical": true, - "file": "api_hub.create_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDeployment", - "fullName": "google.cloud.apihub.v1.ApiHub.CreateDeployment", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "deployment_id", - "type": "TYPE_STRING" - }, - { - "name": "deployment", - "type": ".google.cloud.apihub.v1.Deployment" - } - ], - "resultType": ".google.cloud.apihub.v1.Deployment", - "client": { - "shortName": "ApiHubClient", - "fullName": "google.cloud.apihub.v1.ApiHubClient" - }, - "method": { - "shortName": "CreateDeployment", - "fullName": "google.cloud.apihub.v1.ApiHub.CreateDeployment", - "service": { - "shortName": "ApiHub", - "fullName": "google.cloud.apihub.v1.ApiHub" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHub_GetDeployment_async", - "title": "ApiHub getDeployment Sample", - "origin": "API_DEFINITION", - "description": " Get details about a deployment and the API versions linked to it.", - "canonical": true, - "file": "api_hub.get_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDeployment", - "fullName": "google.cloud.apihub.v1.ApiHub.GetDeployment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apihub.v1.Deployment", - "client": { - "shortName": "ApiHubClient", - "fullName": "google.cloud.apihub.v1.ApiHubClient" - }, - "method": { - "shortName": "GetDeployment", - "fullName": "google.cloud.apihub.v1.ApiHub.GetDeployment", - "service": { - "shortName": "ApiHub", - "fullName": "google.cloud.apihub.v1.ApiHub" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHub_ListDeployments_async", - "title": "ApiHub listDeployments Sample", - "origin": "API_DEFINITION", - "description": " List deployment resources in the API hub.", - "canonical": true, - "file": "api_hub.list_deployments.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 166, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDeployments", - "fullName": "google.cloud.apihub.v1.ApiHub.ListDeployments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apihub.v1.ListDeploymentsResponse", - "client": { - "shortName": "ApiHubClient", - "fullName": "google.cloud.apihub.v1.ApiHubClient" - }, - "method": { - "shortName": "ListDeployments", - "fullName": "google.cloud.apihub.v1.ApiHub.ListDeployments", - "service": { - "shortName": "ApiHub", - "fullName": "google.cloud.apihub.v1.ApiHub" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHub_UpdateDeployment_async", - "title": "ApiHub updateDeployment Sample", - "origin": "API_DEFINITION", - "description": " Update a deployment resource in the API hub. The following fields in the [deployment resource][google.cloud.apihub.v1.Deployment] can be updated: * [display_name][google.cloud.apihub.v1.Deployment.display_name] * [description][google.cloud.apihub.v1.Deployment.description] * [documentation][google.cloud.apihub.v1.Deployment.documentation] * [deployment_type][google.cloud.apihub.v1.Deployment.deployment_type] * [resource_uri][google.cloud.apihub.v1.Deployment.resource_uri] * [endpoints][google.cloud.apihub.v1.Deployment.endpoints] * [slo][google.cloud.apihub.v1.Deployment.slo] * [environment][google.cloud.apihub.v1.Deployment.environment] * [attributes][google.cloud.apihub.v1.Deployment.attributes] * [source_project] [google.cloud.apihub.v1.Deployment.source_project] * [source_environment] [google.cloud.apihub.v1.Deployment.source_environment] * [management_url][google.cloud.apihub.v1.Deployment.management_url] * [source_uri][google.cloud.apihub.v1.Deployment.source_uri] The [update_mask][google.cloud.apihub.v1.UpdateDeploymentRequest.update_mask] should be used to specify the fields being updated.", - "canonical": true, - "file": "api_hub.update_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDeployment", - "fullName": "google.cloud.apihub.v1.ApiHub.UpdateDeployment", - "async": true, - "parameters": [ - { - "name": "deployment", - "type": ".google.cloud.apihub.v1.Deployment" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.apihub.v1.Deployment", - "client": { - "shortName": "ApiHubClient", - "fullName": "google.cloud.apihub.v1.ApiHubClient" - }, - "method": { - "shortName": "UpdateDeployment", - "fullName": "google.cloud.apihub.v1.ApiHub.UpdateDeployment", - "service": { - "shortName": "ApiHub", - "fullName": "google.cloud.apihub.v1.ApiHub" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHub_DeleteDeployment_async", - "title": "ApiHub deleteDeployment Sample", - "origin": "API_DEFINITION", - "description": " Delete a deployment resource in the API hub.", - "canonical": true, - "file": "api_hub.delete_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDeployment", - "fullName": "google.cloud.apihub.v1.ApiHub.DeleteDeployment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ApiHubClient", - "fullName": "google.cloud.apihub.v1.ApiHubClient" - }, - "method": { - "shortName": "DeleteDeployment", - "fullName": "google.cloud.apihub.v1.ApiHub.DeleteDeployment", - "service": { - "shortName": "ApiHub", - "fullName": "google.cloud.apihub.v1.ApiHub" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHub_CreateAttribute_async", - "title": "ApiHub createAttribute Sample", - "origin": "API_DEFINITION", - "description": " Create a user defined attribute. Certain pre defined attributes are already created by the API hub. These attributes will have type as `SYSTEM_DEFINED` and can be listed via [ListAttributes][google.cloud.apihub.v1.ApiHub.ListAttributes] method. Allowed values for the same can be updated via [UpdateAttribute][google.cloud.apihub.v1.ApiHub.UpdateAttribute] method.", - "canonical": true, - "file": "api_hub.create_attribute.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAttribute", - "fullName": "google.cloud.apihub.v1.ApiHub.CreateAttribute", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "attribute_id", - "type": "TYPE_STRING" - }, - { - "name": "attribute", - "type": ".google.cloud.apihub.v1.Attribute" - } - ], - "resultType": ".google.cloud.apihub.v1.Attribute", - "client": { - "shortName": "ApiHubClient", - "fullName": "google.cloud.apihub.v1.ApiHubClient" - }, - "method": { - "shortName": "CreateAttribute", - "fullName": "google.cloud.apihub.v1.ApiHub.CreateAttribute", - "service": { - "shortName": "ApiHub", - "fullName": "google.cloud.apihub.v1.ApiHub" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHub_GetAttribute_async", - "title": "ApiHub getAttribute Sample", - "origin": "API_DEFINITION", - "description": " Get details about the attribute.", - "canonical": true, - "file": "api_hub.get_attribute.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAttribute", - "fullName": "google.cloud.apihub.v1.ApiHub.GetAttribute", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apihub.v1.Attribute", - "client": { - "shortName": "ApiHubClient", - "fullName": "google.cloud.apihub.v1.ApiHubClient" - }, - "method": { - "shortName": "GetAttribute", - "fullName": "google.cloud.apihub.v1.ApiHub.GetAttribute", - "service": { - "shortName": "ApiHub", - "fullName": "google.cloud.apihub.v1.ApiHub" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHub_UpdateAttribute_async", - "title": "ApiHub updateAttribute Sample", - "origin": "API_DEFINITION", - "description": " Update the attribute. The following fields in the [Attribute resource][google.cloud.apihub.v1.Attribute] can be updated: * [display_name][google.cloud.apihub.v1.Attribute.display_name] The display name can be updated for user defined attributes only. * [description][google.cloud.apihub.v1.Attribute.description] The description can be updated for user defined attributes only. * [allowed_values][google.cloud.apihub.v1.Attribute.allowed_values] To update the list of allowed values, clients need to use the fetched list of allowed values and add or remove values to or from the same list. The mutable allowed values can be updated for both user defined and System defined attributes. The immutable allowed values cannot be updated or deleted. The updated list of allowed values cannot be empty. If an allowed value that is already used by some resource's attribute is deleted, then the association between the resource and the attribute value will also be deleted. * [cardinality][google.cloud.apihub.v1.Attribute.cardinality] The cardinality can be updated for user defined attributes only. Cardinality can only be increased during an update. The [update_mask][google.cloud.apihub.v1.UpdateAttributeRequest.update_mask] should be used to specify the fields being updated.", - "canonical": true, - "file": "api_hub.update_attribute.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAttribute", - "fullName": "google.cloud.apihub.v1.ApiHub.UpdateAttribute", - "async": true, - "parameters": [ - { - "name": "attribute", - "type": ".google.cloud.apihub.v1.Attribute" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.apihub.v1.Attribute", - "client": { - "shortName": "ApiHubClient", - "fullName": "google.cloud.apihub.v1.ApiHubClient" - }, - "method": { - "shortName": "UpdateAttribute", - "fullName": "google.cloud.apihub.v1.ApiHub.UpdateAttribute", - "service": { - "shortName": "ApiHub", - "fullName": "google.cloud.apihub.v1.ApiHub" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHub_DeleteAttribute_async", - "title": "ApiHub deleteAttribute Sample", - "origin": "API_DEFINITION", - "description": " Delete an attribute. Note: System defined attributes cannot be deleted. All associations of the attribute being deleted with any API hub resource will also get deleted.", - "canonical": true, - "file": "api_hub.delete_attribute.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAttribute", - "fullName": "google.cloud.apihub.v1.ApiHub.DeleteAttribute", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ApiHubClient", - "fullName": "google.cloud.apihub.v1.ApiHubClient" - }, - "method": { - "shortName": "DeleteAttribute", - "fullName": "google.cloud.apihub.v1.ApiHub.DeleteAttribute", - "service": { - "shortName": "ApiHub", - "fullName": "google.cloud.apihub.v1.ApiHub" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHub_ListAttributes_async", - "title": "ApiHub listAttributes Sample", - "origin": "API_DEFINITION", - "description": " List all attributes.", - "canonical": true, - "file": "api_hub.list_attributes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 110, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAttributes", - "fullName": "google.cloud.apihub.v1.ApiHub.ListAttributes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apihub.v1.ListAttributesResponse", - "client": { - "shortName": "ApiHubClient", - "fullName": "google.cloud.apihub.v1.ApiHubClient" - }, - "method": { - "shortName": "ListAttributes", - "fullName": "google.cloud.apihub.v1.ApiHub.ListAttributes", - "service": { - "shortName": "ApiHub", - "fullName": "google.cloud.apihub.v1.ApiHub" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHub_SearchResources_async", - "title": "ApiHub searchResources Sample", - "origin": "API_DEFINITION", - "description": " Search across API-Hub resources.", - "canonical": true, - "file": "api_hub.search_resources.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 100, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchResources", - "fullName": "google.cloud.apihub.v1.ApiHub.SearchResources", - "async": true, - "parameters": [ - { - "name": "location", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apihub.v1.SearchResourcesResponse", - "client": { - "shortName": "ApiHubClient", - "fullName": "google.cloud.apihub.v1.ApiHubClient" - }, - "method": { - "shortName": "SearchResources", - "fullName": "google.cloud.apihub.v1.ApiHub.SearchResources", - "service": { - "shortName": "ApiHub", - "fullName": "google.cloud.apihub.v1.ApiHub" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHub_CreateExternalApi_async", - "title": "ApiHub createExternalApi Sample", - "origin": "API_DEFINITION", - "description": " Create an External API resource in the API hub.", - "canonical": true, - "file": "api_hub.create_external_api.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateExternalApi", - "fullName": "google.cloud.apihub.v1.ApiHub.CreateExternalApi", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "external_api_id", - "type": "TYPE_STRING" - }, - { - "name": "external_api", - "type": ".google.cloud.apihub.v1.ExternalApi" - } - ], - "resultType": ".google.cloud.apihub.v1.ExternalApi", - "client": { - "shortName": "ApiHubClient", - "fullName": "google.cloud.apihub.v1.ApiHubClient" - }, - "method": { - "shortName": "CreateExternalApi", - "fullName": "google.cloud.apihub.v1.ApiHub.CreateExternalApi", - "service": { - "shortName": "ApiHub", - "fullName": "google.cloud.apihub.v1.ApiHub" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHub_GetExternalApi_async", - "title": "ApiHub getExternalApi Sample", - "origin": "API_DEFINITION", - "description": " Get details about an External API resource in the API hub.", - "canonical": true, - "file": "api_hub.get_external_api.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetExternalApi", - "fullName": "google.cloud.apihub.v1.ApiHub.GetExternalApi", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apihub.v1.ExternalApi", - "client": { - "shortName": "ApiHubClient", - "fullName": "google.cloud.apihub.v1.ApiHubClient" - }, - "method": { - "shortName": "GetExternalApi", - "fullName": "google.cloud.apihub.v1.ApiHub.GetExternalApi", - "service": { - "shortName": "ApiHub", - "fullName": "google.cloud.apihub.v1.ApiHub" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHub_UpdateExternalApi_async", - "title": "ApiHub updateExternalApi Sample", - "origin": "API_DEFINITION", - "description": " Update an External API resource in the API hub. The following fields can be updated: * [display_name][google.cloud.apihub.v1.ExternalApi.display_name] * [description][google.cloud.apihub.v1.ExternalApi.description] * [documentation][google.cloud.apihub.v1.ExternalApi.documentation] * [endpoints][google.cloud.apihub.v1.ExternalApi.endpoints] * [paths][google.cloud.apihub.v1.ExternalApi.paths] The [update_mask][google.cloud.apihub.v1.UpdateExternalApiRequest.update_mask] should be used to specify the fields being updated.", - "canonical": true, - "file": "api_hub.update_external_api.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateExternalApi", - "fullName": "google.cloud.apihub.v1.ApiHub.UpdateExternalApi", - "async": true, - "parameters": [ - { - "name": "external_api", - "type": ".google.cloud.apihub.v1.ExternalApi" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.apihub.v1.ExternalApi", - "client": { - "shortName": "ApiHubClient", - "fullName": "google.cloud.apihub.v1.ApiHubClient" - }, - "method": { - "shortName": "UpdateExternalApi", - "fullName": "google.cloud.apihub.v1.ApiHub.UpdateExternalApi", - "service": { - "shortName": "ApiHub", - "fullName": "google.cloud.apihub.v1.ApiHub" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHub_DeleteExternalApi_async", - "title": "ApiHub deleteExternalApi Sample", - "origin": "API_DEFINITION", - "description": " Delete an External API resource in the API hub.", - "canonical": true, - "file": "api_hub.delete_external_api.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteExternalApi", - "fullName": "google.cloud.apihub.v1.ApiHub.DeleteExternalApi", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ApiHubClient", - "fullName": "google.cloud.apihub.v1.ApiHubClient" - }, - "method": { - "shortName": "DeleteExternalApi", - "fullName": "google.cloud.apihub.v1.ApiHub.DeleteExternalApi", - "service": { - "shortName": "ApiHub", - "fullName": "google.cloud.apihub.v1.ApiHub" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHub_ListExternalApis_async", - "title": "ApiHub listExternalApis Sample", - "origin": "API_DEFINITION", - "description": " List External API resources in the API hub.", - "canonical": true, - "file": "api_hub.list_external_apis.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListExternalApis", - "fullName": "google.cloud.apihub.v1.ApiHub.ListExternalApis", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apihub.v1.ListExternalApisResponse", - "client": { - "shortName": "ApiHubClient", - "fullName": "google.cloud.apihub.v1.ApiHubClient" - }, - "method": { - "shortName": "ListExternalApis", - "fullName": "google.cloud.apihub.v1.ApiHub.ListExternalApis", - "service": { - "shortName": "ApiHub", - "fullName": "google.cloud.apihub.v1.ApiHub" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHubCollect_CollectApiData_async", - "title": "ApiHub collectApiData Sample", - "origin": "API_DEFINITION", - "description": " Collect API data from a source and push it to Hub's collect layer.", - "canonical": true, - "file": "api_hub_collect.collect_api_data.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CollectApiData", - "fullName": "google.cloud.apihub.v1.ApiHubCollect.CollectApiData", - "async": true, - "parameters": [ - { - "name": "location", - "type": "TYPE_STRING" - }, - { - "name": "collection_type", - "type": ".google.cloud.apihub.v1.CollectionType" - }, - { - "name": "plugin_instance", - "type": "TYPE_STRING" - }, - { - "name": "action_id", - "type": "TYPE_STRING" - }, - { - "name": "api_data", - "type": ".google.cloud.apihub.v1.ApiData" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ApiHubCollectClient", - "fullName": "google.cloud.apihub.v1.ApiHubCollectClient" - }, - "method": { - "shortName": "CollectApiData", - "fullName": "google.cloud.apihub.v1.ApiHubCollect.CollectApiData", - "service": { - "shortName": "ApiHubCollect", - "fullName": "google.cloud.apihub.v1.ApiHubCollect" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHubCurate_CreateCuration_async", - "title": "ApiHub createCuration Sample", - "origin": "API_DEFINITION", - "description": " Create a curation resource in the API hub. Once a curation resource is created, plugin instances can start using it.", - "canonical": true, - "file": "api_hub_curate.create_curation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCuration", - "fullName": "google.cloud.apihub.v1.ApiHubCurate.CreateCuration", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "curation_id", - "type": "TYPE_STRING" - }, - { - "name": "curation", - "type": ".google.cloud.apihub.v1.Curation" - } - ], - "resultType": ".google.cloud.apihub.v1.Curation", - "client": { - "shortName": "ApiHubCurateClient", - "fullName": "google.cloud.apihub.v1.ApiHubCurateClient" - }, - "method": { - "shortName": "CreateCuration", - "fullName": "google.cloud.apihub.v1.ApiHubCurate.CreateCuration", - "service": { - "shortName": "ApiHubCurate", - "fullName": "google.cloud.apihub.v1.ApiHubCurate" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHubCurate_GetCuration_async", - "title": "ApiHub getCuration Sample", - "origin": "API_DEFINITION", - "description": " Get curation resource details.", - "canonical": true, - "file": "api_hub_curate.get_curation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCuration", - "fullName": "google.cloud.apihub.v1.ApiHubCurate.GetCuration", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apihub.v1.Curation", - "client": { - "shortName": "ApiHubCurateClient", - "fullName": "google.cloud.apihub.v1.ApiHubCurateClient" - }, - "method": { - "shortName": "GetCuration", - "fullName": "google.cloud.apihub.v1.ApiHubCurate.GetCuration", - "service": { - "shortName": "ApiHubCurate", - "fullName": "google.cloud.apihub.v1.ApiHubCurate" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHubCurate_ListCurations_async", - "title": "ApiHub listCurations Sample", - "origin": "API_DEFINITION", - "description": " List curation resources in the API hub.", - "canonical": true, - "file": "api_hub_curate.list_curations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 96, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCurations", - "fullName": "google.cloud.apihub.v1.ApiHubCurate.ListCurations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apihub.v1.ListCurationsResponse", - "client": { - "shortName": "ApiHubCurateClient", - "fullName": "google.cloud.apihub.v1.ApiHubCurateClient" - }, - "method": { - "shortName": "ListCurations", - "fullName": "google.cloud.apihub.v1.ApiHubCurate.ListCurations", - "service": { - "shortName": "ApiHubCurate", - "fullName": "google.cloud.apihub.v1.ApiHubCurate" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHubCurate_UpdateCuration_async", - "title": "ApiHub updateCuration Sample", - "origin": "API_DEFINITION", - "description": " Update a curation resource in the API hub. The following fields in the [curation][google.cloud.apihub.v1.Curation] can be updated: * [display_name][google.cloud.apihub.v1.Curation.display_name] * [description][google.cloud.apihub.v1.Curation.description] The [update_mask][google.cloud.apihub.v1.UpdateApiRequest.update_mask] should be used to specify the fields being updated.", - "canonical": true, - "file": "api_hub_curate.update_curation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCuration", - "fullName": "google.cloud.apihub.v1.ApiHubCurate.UpdateCuration", - "async": true, - "parameters": [ - { - "name": "curation", - "type": ".google.cloud.apihub.v1.Curation" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.apihub.v1.Curation", - "client": { - "shortName": "ApiHubCurateClient", - "fullName": "google.cloud.apihub.v1.ApiHubCurateClient" - }, - "method": { - "shortName": "UpdateCuration", - "fullName": "google.cloud.apihub.v1.ApiHubCurate.UpdateCuration", - "service": { - "shortName": "ApiHubCurate", - "fullName": "google.cloud.apihub.v1.ApiHubCurate" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHubCurate_DeleteCuration_async", - "title": "ApiHub deleteCuration Sample", - "origin": "API_DEFINITION", - "description": " Delete a curation resource in the API hub. A curation can only be deleted if it's not being used by any plugin instance.", - "canonical": true, - "file": "api_hub_curate.delete_curation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCuration", - "fullName": "google.cloud.apihub.v1.ApiHubCurate.DeleteCuration", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ApiHubCurateClient", - "fullName": "google.cloud.apihub.v1.ApiHubCurateClient" - }, - "method": { - "shortName": "DeleteCuration", - "fullName": "google.cloud.apihub.v1.ApiHubCurate.DeleteCuration", - "service": { - "shortName": "ApiHubCurate", - "fullName": "google.cloud.apihub.v1.ApiHubCurate" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHubDependencies_CreateDependency_async", - "title": "ApiHub createDependency Sample", - "origin": "API_DEFINITION", - "description": " Create a dependency between two entities in the API hub.", - "canonical": true, - "file": "api_hub_dependencies.create_dependency.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDependency", - "fullName": "google.cloud.apihub.v1.ApiHubDependencies.CreateDependency", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "dependency_id", - "type": "TYPE_STRING" - }, - { - "name": "dependency", - "type": ".google.cloud.apihub.v1.Dependency" - } - ], - "resultType": ".google.cloud.apihub.v1.Dependency", - "client": { - "shortName": "ApiHubDependenciesClient", - "fullName": "google.cloud.apihub.v1.ApiHubDependenciesClient" - }, - "method": { - "shortName": "CreateDependency", - "fullName": "google.cloud.apihub.v1.ApiHubDependencies.CreateDependency", - "service": { - "shortName": "ApiHubDependencies", - "fullName": "google.cloud.apihub.v1.ApiHubDependencies" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHubDependencies_GetDependency_async", - "title": "ApiHub getDependency Sample", - "origin": "API_DEFINITION", - "description": " Get details about a dependency resource in the API hub.", - "canonical": true, - "file": "api_hub_dependencies.get_dependency.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDependency", - "fullName": "google.cloud.apihub.v1.ApiHubDependencies.GetDependency", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apihub.v1.Dependency", - "client": { - "shortName": "ApiHubDependenciesClient", - "fullName": "google.cloud.apihub.v1.ApiHubDependenciesClient" - }, - "method": { - "shortName": "GetDependency", - "fullName": "google.cloud.apihub.v1.ApiHubDependencies.GetDependency", - "service": { - "shortName": "ApiHubDependencies", - "fullName": "google.cloud.apihub.v1.ApiHubDependencies" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHubDependencies_UpdateDependency_async", - "title": "ApiHub updateDependency Sample", - "origin": "API_DEFINITION", - "description": " Update a dependency based on the [update_mask][google.cloud.apihub.v1.UpdateDependencyRequest.update_mask] provided in the request. The following fields in the [dependency][google.cloud.apihub.v1.Dependency] can be updated: * [description][google.cloud.apihub.v1.Dependency.description]", - "canonical": true, - "file": "api_hub_dependencies.update_dependency.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDependency", - "fullName": "google.cloud.apihub.v1.ApiHubDependencies.UpdateDependency", - "async": true, - "parameters": [ - { - "name": "dependency", - "type": ".google.cloud.apihub.v1.Dependency" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.apihub.v1.Dependency", - "client": { - "shortName": "ApiHubDependenciesClient", - "fullName": "google.cloud.apihub.v1.ApiHubDependenciesClient" - }, - "method": { - "shortName": "UpdateDependency", - "fullName": "google.cloud.apihub.v1.ApiHubDependencies.UpdateDependency", - "service": { - "shortName": "ApiHubDependencies", - "fullName": "google.cloud.apihub.v1.ApiHubDependencies" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHubDependencies_DeleteDependency_async", - "title": "ApiHub deleteDependency Sample", - "origin": "API_DEFINITION", - "description": " Delete the dependency resource.", - "canonical": true, - "file": "api_hub_dependencies.delete_dependency.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDependency", - "fullName": "google.cloud.apihub.v1.ApiHubDependencies.DeleteDependency", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ApiHubDependenciesClient", - "fullName": "google.cloud.apihub.v1.ApiHubDependenciesClient" - }, - "method": { - "shortName": "DeleteDependency", - "fullName": "google.cloud.apihub.v1.ApiHubDependencies.DeleteDependency", - "service": { - "shortName": "ApiHubDependencies", - "fullName": "google.cloud.apihub.v1.ApiHubDependencies" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHubDependencies_ListDependencies_async", - "title": "ApiHub listDependencies Sample", - "origin": "API_DEFINITION", - "description": " List dependencies based on the provided filter and pagination parameters.", - "canonical": true, - "file": "api_hub_dependencies.list_dependencies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 102, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDependencies", - "fullName": "google.cloud.apihub.v1.ApiHubDependencies.ListDependencies", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apihub.v1.ListDependenciesResponse", - "client": { - "shortName": "ApiHubDependenciesClient", - "fullName": "google.cloud.apihub.v1.ApiHubDependenciesClient" - }, - "method": { - "shortName": "ListDependencies", - "fullName": "google.cloud.apihub.v1.ApiHubDependencies.ListDependencies", - "service": { - "shortName": "ApiHubDependencies", - "fullName": "google.cloud.apihub.v1.ApiHubDependencies" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHubDiscovery_ListDiscoveredApiObservations_async", - "title": "ApiHub listDiscoveredApiObservations Sample", - "origin": "API_DEFINITION", - "description": " Lists all the DiscoveredAPIObservations in a given project and location.", - "canonical": true, - "file": "api_hub_discovery.list_discovered_api_observations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDiscoveredApiObservations", - "fullName": "google.cloud.apihub.v1.ApiHubDiscovery.ListDiscoveredApiObservations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apihub.v1.ListDiscoveredApiObservationsResponse", - "client": { - "shortName": "ApiHubDiscoveryClient", - "fullName": "google.cloud.apihub.v1.ApiHubDiscoveryClient" - }, - "method": { - "shortName": "ListDiscoveredApiObservations", - "fullName": "google.cloud.apihub.v1.ApiHubDiscovery.ListDiscoveredApiObservations", - "service": { - "shortName": "ApiHubDiscovery", - "fullName": "google.cloud.apihub.v1.ApiHubDiscovery" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHubDiscovery_GetDiscoveredApiObservation_async", - "title": "ApiHub getDiscoveredApiObservation Sample", - "origin": "API_DEFINITION", - "description": " Gets a DiscoveredAPIObservation in a given project, location and ApiObservation.", - "canonical": true, - "file": "api_hub_discovery.get_discovered_api_observation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDiscoveredApiObservation", - "fullName": "google.cloud.apihub.v1.ApiHubDiscovery.GetDiscoveredApiObservation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apihub.v1.DiscoveredApiObservation", - "client": { - "shortName": "ApiHubDiscoveryClient", - "fullName": "google.cloud.apihub.v1.ApiHubDiscoveryClient" - }, - "method": { - "shortName": "GetDiscoveredApiObservation", - "fullName": "google.cloud.apihub.v1.ApiHubDiscovery.GetDiscoveredApiObservation", - "service": { - "shortName": "ApiHubDiscovery", - "fullName": "google.cloud.apihub.v1.ApiHubDiscovery" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHubDiscovery_ListDiscoveredApiOperations_async", - "title": "ApiHub listDiscoveredApiOperations Sample", - "origin": "API_DEFINITION", - "description": " Lists all the DiscoveredAPIOperations in a given project, location and ApiObservation.", - "canonical": true, - "file": "api_hub_discovery.list_discovered_api_operations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDiscoveredApiOperations", - "fullName": "google.cloud.apihub.v1.ApiHubDiscovery.ListDiscoveredApiOperations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apihub.v1.ListDiscoveredApiOperationsResponse", - "client": { - "shortName": "ApiHubDiscoveryClient", - "fullName": "google.cloud.apihub.v1.ApiHubDiscoveryClient" - }, - "method": { - "shortName": "ListDiscoveredApiOperations", - "fullName": "google.cloud.apihub.v1.ApiHubDiscovery.ListDiscoveredApiOperations", - "service": { - "shortName": "ApiHubDiscovery", - "fullName": "google.cloud.apihub.v1.ApiHubDiscovery" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHubDiscovery_GetDiscoveredApiOperation_async", - "title": "ApiHub getDiscoveredApiOperation Sample", - "origin": "API_DEFINITION", - "description": " Gets a DiscoveredAPIOperation in a given project, location, ApiObservation and ApiOperation.", - "canonical": true, - "file": "api_hub_discovery.get_discovered_api_operation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDiscoveredApiOperation", - "fullName": "google.cloud.apihub.v1.ApiHubDiscovery.GetDiscoveredApiOperation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apihub.v1.DiscoveredApiOperation", - "client": { - "shortName": "ApiHubDiscoveryClient", - "fullName": "google.cloud.apihub.v1.ApiHubDiscoveryClient" - }, - "method": { - "shortName": "GetDiscoveredApiOperation", - "fullName": "google.cloud.apihub.v1.ApiHubDiscovery.GetDiscoveredApiOperation", - "service": { - "shortName": "ApiHubDiscovery", - "fullName": "google.cloud.apihub.v1.ApiHubDiscovery" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHubPlugin_GetPlugin_async", - "title": "ApiHub getPlugin Sample", - "origin": "API_DEFINITION", - "description": " Get an API Hub plugin.", - "canonical": true, - "file": "api_hub_plugin.get_plugin.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPlugin", - "fullName": "google.cloud.apihub.v1.ApiHubPlugin.GetPlugin", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apihub.v1.Plugin", - "client": { - "shortName": "ApiHubPluginClient", - "fullName": "google.cloud.apihub.v1.ApiHubPluginClient" - }, - "method": { - "shortName": "GetPlugin", - "fullName": "google.cloud.apihub.v1.ApiHubPlugin.GetPlugin", - "service": { - "shortName": "ApiHubPlugin", - "fullName": "google.cloud.apihub.v1.ApiHubPlugin" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHubPlugin_EnablePlugin_async", - "title": "ApiHub enablePlugin Sample", - "origin": "API_DEFINITION", - "description": " Enables a plugin. The `state` of the plugin after enabling is `ENABLED`", - "canonical": true, - "file": "api_hub_plugin.enable_plugin.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "EnablePlugin", - "fullName": "google.cloud.apihub.v1.ApiHubPlugin.EnablePlugin", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apihub.v1.Plugin", - "client": { - "shortName": "ApiHubPluginClient", - "fullName": "google.cloud.apihub.v1.ApiHubPluginClient" - }, - "method": { - "shortName": "EnablePlugin", - "fullName": "google.cloud.apihub.v1.ApiHubPlugin.EnablePlugin", - "service": { - "shortName": "ApiHubPlugin", - "fullName": "google.cloud.apihub.v1.ApiHubPlugin" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHubPlugin_DisablePlugin_async", - "title": "ApiHub disablePlugin Sample", - "origin": "API_DEFINITION", - "description": " Disables a plugin. The `state` of the plugin after disabling is `DISABLED`", - "canonical": true, - "file": "api_hub_plugin.disable_plugin.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DisablePlugin", - "fullName": "google.cloud.apihub.v1.ApiHubPlugin.DisablePlugin", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apihub.v1.Plugin", - "client": { - "shortName": "ApiHubPluginClient", - "fullName": "google.cloud.apihub.v1.ApiHubPluginClient" - }, - "method": { - "shortName": "DisablePlugin", - "fullName": "google.cloud.apihub.v1.ApiHubPlugin.DisablePlugin", - "service": { - "shortName": "ApiHubPlugin", - "fullName": "google.cloud.apihub.v1.ApiHubPlugin" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHubPlugin_CreatePlugin_async", - "title": "ApiHub createPlugin Sample", - "origin": "API_DEFINITION", - "description": " Create an API Hub plugin resource in the API hub. Once a plugin is created, it can be used to create plugin instances.", - "canonical": true, - "file": "api_hub_plugin.create_plugin.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreatePlugin", - "fullName": "google.cloud.apihub.v1.ApiHubPlugin.CreatePlugin", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "plugin_id", - "type": "TYPE_STRING" - }, - { - "name": "plugin", - "type": ".google.cloud.apihub.v1.Plugin" - } - ], - "resultType": ".google.cloud.apihub.v1.Plugin", - "client": { - "shortName": "ApiHubPluginClient", - "fullName": "google.cloud.apihub.v1.ApiHubPluginClient" - }, - "method": { - "shortName": "CreatePlugin", - "fullName": "google.cloud.apihub.v1.ApiHubPlugin.CreatePlugin", - "service": { - "shortName": "ApiHubPlugin", - "fullName": "google.cloud.apihub.v1.ApiHubPlugin" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHubPlugin_ListPlugins_async", - "title": "ApiHub listPlugins Sample", - "origin": "API_DEFINITION", - "description": " List all the plugins in a given project and location.", - "canonical": true, - "file": "api_hub_plugin.list_plugins.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 91, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPlugins", - "fullName": "google.cloud.apihub.v1.ApiHubPlugin.ListPlugins", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apihub.v1.ListPluginsResponse", - "client": { - "shortName": "ApiHubPluginClient", - "fullName": "google.cloud.apihub.v1.ApiHubPluginClient" - }, - "method": { - "shortName": "ListPlugins", - "fullName": "google.cloud.apihub.v1.ApiHubPlugin.ListPlugins", - "service": { - "shortName": "ApiHubPlugin", - "fullName": "google.cloud.apihub.v1.ApiHubPlugin" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHubPlugin_DeletePlugin_async", - "title": "ApiHub deletePlugin Sample", - "origin": "API_DEFINITION", - "description": " Delete a Plugin in API hub. Note, only user owned plugins can be deleted via this method.", - "canonical": true, - "file": "api_hub_plugin.delete_plugin.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePlugin", - "fullName": "google.cloud.apihub.v1.ApiHubPlugin.DeletePlugin", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ApiHubPluginClient", - "fullName": "google.cloud.apihub.v1.ApiHubPluginClient" - }, - "method": { - "shortName": "DeletePlugin", - "fullName": "google.cloud.apihub.v1.ApiHubPlugin.DeletePlugin", - "service": { - "shortName": "ApiHubPlugin", - "fullName": "google.cloud.apihub.v1.ApiHubPlugin" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHubPlugin_CreatePluginInstance_async", - "title": "ApiHub createPluginInstance Sample", - "origin": "API_DEFINITION", - "description": " Creates a Plugin instance in the API hub.", - "canonical": true, - "file": "api_hub_plugin.create_plugin_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreatePluginInstance", - "fullName": "google.cloud.apihub.v1.ApiHubPlugin.CreatePluginInstance", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "plugin_instance_id", - "type": "TYPE_STRING" - }, - { - "name": "plugin_instance", - "type": ".google.cloud.apihub.v1.PluginInstance" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ApiHubPluginClient", - "fullName": "google.cloud.apihub.v1.ApiHubPluginClient" - }, - "method": { - "shortName": "CreatePluginInstance", - "fullName": "google.cloud.apihub.v1.ApiHubPlugin.CreatePluginInstance", - "service": { - "shortName": "ApiHubPlugin", - "fullName": "google.cloud.apihub.v1.ApiHubPlugin" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHubPlugin_ExecutePluginInstanceAction_async", - "title": "ApiHub executePluginInstanceAction Sample", - "origin": "API_DEFINITION", - "description": " Executes a plugin instance in the API hub.", - "canonical": true, - "file": "api_hub_plugin.execute_plugin_instance_action.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExecutePluginInstanceAction", - "fullName": "google.cloud.apihub.v1.ApiHubPlugin.ExecutePluginInstanceAction", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "action_execution_detail", - "type": ".google.cloud.apihub.v1.ActionExecutionDetail" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ApiHubPluginClient", - "fullName": "google.cloud.apihub.v1.ApiHubPluginClient" - }, - "method": { - "shortName": "ExecutePluginInstanceAction", - "fullName": "google.cloud.apihub.v1.ApiHubPlugin.ExecutePluginInstanceAction", - "service": { - "shortName": "ApiHubPlugin", - "fullName": "google.cloud.apihub.v1.ApiHubPlugin" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHubPlugin_GetPluginInstance_async", - "title": "ApiHub getPluginInstance Sample", - "origin": "API_DEFINITION", - "description": " Get an API Hub plugin instance.", - "canonical": true, - "file": "api_hub_plugin.get_plugin_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPluginInstance", - "fullName": "google.cloud.apihub.v1.ApiHubPlugin.GetPluginInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apihub.v1.PluginInstance", - "client": { - "shortName": "ApiHubPluginClient", - "fullName": "google.cloud.apihub.v1.ApiHubPluginClient" - }, - "method": { - "shortName": "GetPluginInstance", - "fullName": "google.cloud.apihub.v1.ApiHubPlugin.GetPluginInstance", - "service": { - "shortName": "ApiHubPlugin", - "fullName": "google.cloud.apihub.v1.ApiHubPlugin" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHubPlugin_ListPluginInstances_async", - "title": "ApiHub listPluginInstances Sample", - "origin": "API_DEFINITION", - "description": " List all the plugins in a given project and location. `-` can be used as wildcard value for {plugin_id}", - "canonical": true, - "file": "api_hub_plugin.list_plugin_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 99, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPluginInstances", - "fullName": "google.cloud.apihub.v1.ApiHubPlugin.ListPluginInstances", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apihub.v1.ListPluginInstancesResponse", - "client": { - "shortName": "ApiHubPluginClient", - "fullName": "google.cloud.apihub.v1.ApiHubPluginClient" - }, - "method": { - "shortName": "ListPluginInstances", - "fullName": "google.cloud.apihub.v1.ApiHubPlugin.ListPluginInstances", - "service": { - "shortName": "ApiHubPlugin", - "fullName": "google.cloud.apihub.v1.ApiHubPlugin" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHubPlugin_EnablePluginInstanceAction_async", - "title": "ApiHub enablePluginInstanceAction Sample", - "origin": "API_DEFINITION", - "description": " Enables a plugin instance in the API hub.", - "canonical": true, - "file": "api_hub_plugin.enable_plugin_instance_action.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "EnablePluginInstanceAction", - "fullName": "google.cloud.apihub.v1.ApiHubPlugin.EnablePluginInstanceAction", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "action_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ApiHubPluginClient", - "fullName": "google.cloud.apihub.v1.ApiHubPluginClient" - }, - "method": { - "shortName": "EnablePluginInstanceAction", - "fullName": "google.cloud.apihub.v1.ApiHubPlugin.EnablePluginInstanceAction", - "service": { - "shortName": "ApiHubPlugin", - "fullName": "google.cloud.apihub.v1.ApiHubPlugin" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHubPlugin_DisablePluginInstanceAction_async", - "title": "ApiHub disablePluginInstanceAction Sample", - "origin": "API_DEFINITION", - "description": " Disables a plugin instance in the API hub.", - "canonical": true, - "file": "api_hub_plugin.disable_plugin_instance_action.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DisablePluginInstanceAction", - "fullName": "google.cloud.apihub.v1.ApiHubPlugin.DisablePluginInstanceAction", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "action_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ApiHubPluginClient", - "fullName": "google.cloud.apihub.v1.ApiHubPluginClient" - }, - "method": { - "shortName": "DisablePluginInstanceAction", - "fullName": "google.cloud.apihub.v1.ApiHubPlugin.DisablePluginInstanceAction", - "service": { - "shortName": "ApiHubPlugin", - "fullName": "google.cloud.apihub.v1.ApiHubPlugin" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHubPlugin_UpdatePluginInstance_async", - "title": "ApiHub updatePluginInstance Sample", - "origin": "API_DEFINITION", - "description": " Updates a plugin instance in the API hub. The following fields in the [plugin_instance][google.cloud.apihub.v1.PluginInstance] can be updated currently: * [display_name][google.cloud.apihub.v1.PluginInstance.display_name] * [schedule_cron_expression][PluginInstance.actions.schedule_cron_expression] The [update_mask][google.cloud.apihub.v1.UpdatePluginInstanceRequest.update_mask] should be used to specify the fields being updated. To update the [auth_config][google.cloud.apihub.v1.PluginInstance.auth_config] and [additional_config][google.cloud.apihub.v1.PluginInstance.additional_config] of the plugin instance, use the [ApplyPluginInstanceConfig][google.cloud.apihub.v1.ApiHubPlugin.ApplyPluginInstanceConfig] method.", - "canonical": true, - "file": "api_hub_plugin.update_plugin_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdatePluginInstance", - "fullName": "google.cloud.apihub.v1.ApiHubPlugin.UpdatePluginInstance", - "async": true, - "parameters": [ - { - "name": "plugin_instance", - "type": ".google.cloud.apihub.v1.PluginInstance" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.apihub.v1.PluginInstance", - "client": { - "shortName": "ApiHubPluginClient", - "fullName": "google.cloud.apihub.v1.ApiHubPluginClient" - }, - "method": { - "shortName": "UpdatePluginInstance", - "fullName": "google.cloud.apihub.v1.ApiHubPlugin.UpdatePluginInstance", - "service": { - "shortName": "ApiHubPlugin", - "fullName": "google.cloud.apihub.v1.ApiHubPlugin" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_ApiHubPlugin_DeletePluginInstance_async", - "title": "ApiHub deletePluginInstance Sample", - "origin": "API_DEFINITION", - "description": " Deletes a plugin instance in the API hub.", - "canonical": true, - "file": "api_hub_plugin.delete_plugin_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePluginInstance", - "fullName": "google.cloud.apihub.v1.ApiHubPlugin.DeletePluginInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ApiHubPluginClient", - "fullName": "google.cloud.apihub.v1.ApiHubPluginClient" - }, - "method": { - "shortName": "DeletePluginInstance", - "fullName": "google.cloud.apihub.v1.ApiHubPlugin.DeletePluginInstance", - "service": { - "shortName": "ApiHubPlugin", - "fullName": "google.cloud.apihub.v1.ApiHubPlugin" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_HostProjectRegistrationService_CreateHostProjectRegistration_async", - "title": "ApiHub createHostProjectRegistration Sample", - "origin": "API_DEFINITION", - "description": " Create a host project registration. A Google cloud project can be registered as a host project if it is not attached as a runtime project to another host project. A project can be registered as a host project only once. Subsequent register calls for the same project will fail.", - "canonical": true, - "file": "host_project_registration_service.create_host_project_registration.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateHostProjectRegistration", - "fullName": "google.cloud.apihub.v1.HostProjectRegistrationService.CreateHostProjectRegistration", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "host_project_registration_id", - "type": "TYPE_STRING" - }, - { - "name": "host_project_registration", - "type": ".google.cloud.apihub.v1.HostProjectRegistration" - } - ], - "resultType": ".google.cloud.apihub.v1.HostProjectRegistration", - "client": { - "shortName": "HostProjectRegistrationServiceClient", - "fullName": "google.cloud.apihub.v1.HostProjectRegistrationServiceClient" - }, - "method": { - "shortName": "CreateHostProjectRegistration", - "fullName": "google.cloud.apihub.v1.HostProjectRegistrationService.CreateHostProjectRegistration", - "service": { - "shortName": "HostProjectRegistrationService", - "fullName": "google.cloud.apihub.v1.HostProjectRegistrationService" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_HostProjectRegistrationService_GetHostProjectRegistration_async", - "title": "ApiHub getHostProjectRegistration Sample", - "origin": "API_DEFINITION", - "description": " Get a host project registration.", - "canonical": true, - "file": "host_project_registration_service.get_host_project_registration.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetHostProjectRegistration", - "fullName": "google.cloud.apihub.v1.HostProjectRegistrationService.GetHostProjectRegistration", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apihub.v1.HostProjectRegistration", - "client": { - "shortName": "HostProjectRegistrationServiceClient", - "fullName": "google.cloud.apihub.v1.HostProjectRegistrationServiceClient" - }, - "method": { - "shortName": "GetHostProjectRegistration", - "fullName": "google.cloud.apihub.v1.HostProjectRegistrationService.GetHostProjectRegistration", - "service": { - "shortName": "HostProjectRegistrationService", - "fullName": "google.cloud.apihub.v1.HostProjectRegistrationService" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_HostProjectRegistrationService_ListHostProjectRegistrations_async", - "title": "ApiHub listHostProjectRegistrations Sample", - "origin": "API_DEFINITION", - "description": " Lists host project registrations.", - "canonical": true, - "file": "host_project_registration_service.list_host_project_registrations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 92, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListHostProjectRegistrations", - "fullName": "google.cloud.apihub.v1.HostProjectRegistrationService.ListHostProjectRegistrations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apihub.v1.ListHostProjectRegistrationsResponse", - "client": { - "shortName": "HostProjectRegistrationServiceClient", - "fullName": "google.cloud.apihub.v1.HostProjectRegistrationServiceClient" - }, - "method": { - "shortName": "ListHostProjectRegistrations", - "fullName": "google.cloud.apihub.v1.HostProjectRegistrationService.ListHostProjectRegistrations", - "service": { - "shortName": "HostProjectRegistrationService", - "fullName": "google.cloud.apihub.v1.HostProjectRegistrationService" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_LintingService_GetStyleGuide_async", - "title": "ApiHub getStyleGuide Sample", - "origin": "API_DEFINITION", - "description": " Get the style guide being used for linting.", - "canonical": true, - "file": "linting_service.get_style_guide.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetStyleGuide", - "fullName": "google.cloud.apihub.v1.LintingService.GetStyleGuide", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apihub.v1.StyleGuide", - "client": { - "shortName": "LintingServiceClient", - "fullName": "google.cloud.apihub.v1.LintingServiceClient" - }, - "method": { - "shortName": "GetStyleGuide", - "fullName": "google.cloud.apihub.v1.LintingService.GetStyleGuide", - "service": { - "shortName": "LintingService", - "fullName": "google.cloud.apihub.v1.LintingService" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_LintingService_UpdateStyleGuide_async", - "title": "ApiHub updateStyleGuide Sample", - "origin": "API_DEFINITION", - "description": " Update the styleGuide to be used for liniting in by API hub.", - "canonical": true, - "file": "linting_service.update_style_guide.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateStyleGuide", - "fullName": "google.cloud.apihub.v1.LintingService.UpdateStyleGuide", - "async": true, - "parameters": [ - { - "name": "style_guide", - "type": ".google.cloud.apihub.v1.StyleGuide" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.apihub.v1.StyleGuide", - "client": { - "shortName": "LintingServiceClient", - "fullName": "google.cloud.apihub.v1.LintingServiceClient" - }, - "method": { - "shortName": "UpdateStyleGuide", - "fullName": "google.cloud.apihub.v1.LintingService.UpdateStyleGuide", - "service": { - "shortName": "LintingService", - "fullName": "google.cloud.apihub.v1.LintingService" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_LintingService_GetStyleGuideContents_async", - "title": "ApiHub getStyleGuideContents Sample", - "origin": "API_DEFINITION", - "description": " Get the contents of the style guide.", - "canonical": true, - "file": "linting_service.get_style_guide_contents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetStyleGuideContents", - "fullName": "google.cloud.apihub.v1.LintingService.GetStyleGuideContents", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apihub.v1.StyleGuideContents", - "client": { - "shortName": "LintingServiceClient", - "fullName": "google.cloud.apihub.v1.LintingServiceClient" - }, - "method": { - "shortName": "GetStyleGuideContents", - "fullName": "google.cloud.apihub.v1.LintingService.GetStyleGuideContents", - "service": { - "shortName": "LintingService", - "fullName": "google.cloud.apihub.v1.LintingService" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_LintingService_LintSpec_async", - "title": "ApiHub lintSpec Sample", - "origin": "API_DEFINITION", - "description": " Lints the requested spec and updates the corresponding API Spec with the lint response. This lint response will be available in all subsequent Get and List Spec calls to Core service.", - "canonical": true, - "file": "linting_service.lint_spec.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "LintSpec", - "fullName": "google.cloud.apihub.v1.LintingService.LintSpec", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "LintingServiceClient", - "fullName": "google.cloud.apihub.v1.LintingServiceClient" - }, - "method": { - "shortName": "LintSpec", - "fullName": "google.cloud.apihub.v1.LintingService.LintSpec", - "service": { - "shortName": "LintingService", - "fullName": "google.cloud.apihub.v1.LintingService" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_Provisioning_CreateApiHubInstance_async", - "title": "ApiHub createApiHubInstance Sample", - "origin": "API_DEFINITION", - "description": " Provisions instance resources for the API Hub.", - "canonical": true, - "file": "provisioning.create_api_hub_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateApiHubInstance", - "fullName": "google.cloud.apihub.v1.Provisioning.CreateApiHubInstance", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "api_hub_instance_id", - "type": "TYPE_STRING" - }, - { - "name": "api_hub_instance", - "type": ".google.cloud.apihub.v1.ApiHubInstance" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ProvisioningClient", - "fullName": "google.cloud.apihub.v1.ProvisioningClient" - }, - "method": { - "shortName": "CreateApiHubInstance", - "fullName": "google.cloud.apihub.v1.Provisioning.CreateApiHubInstance", - "service": { - "shortName": "Provisioning", - "fullName": "google.cloud.apihub.v1.Provisioning" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_Provisioning_DeleteApiHubInstance_async", - "title": "ApiHub deleteApiHubInstance Sample", - "origin": "API_DEFINITION", - "description": " Deletes the API hub instance.", - "canonical": true, - "file": "provisioning.delete_api_hub_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteApiHubInstance", - "fullName": "google.cloud.apihub.v1.Provisioning.DeleteApiHubInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ProvisioningClient", - "fullName": "google.cloud.apihub.v1.ProvisioningClient" - }, - "method": { - "shortName": "DeleteApiHubInstance", - "fullName": "google.cloud.apihub.v1.Provisioning.DeleteApiHubInstance", - "service": { - "shortName": "Provisioning", - "fullName": "google.cloud.apihub.v1.Provisioning" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_Provisioning_GetApiHubInstance_async", - "title": "ApiHub getApiHubInstance Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single API Hub instance.", - "canonical": true, - "file": "provisioning.get_api_hub_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetApiHubInstance", - "fullName": "google.cloud.apihub.v1.Provisioning.GetApiHubInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apihub.v1.ApiHubInstance", - "client": { - "shortName": "ProvisioningClient", - "fullName": "google.cloud.apihub.v1.ProvisioningClient" - }, - "method": { - "shortName": "GetApiHubInstance", - "fullName": "google.cloud.apihub.v1.Provisioning.GetApiHubInstance", - "service": { - "shortName": "Provisioning", - "fullName": "google.cloud.apihub.v1.Provisioning" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_Provisioning_LookupApiHubInstance_async", - "title": "ApiHub lookupApiHubInstance Sample", - "origin": "API_DEFINITION", - "description": " Looks up an Api Hub instance in a given GCP project. There will always be only one Api Hub instance for a GCP project across all locations.", - "canonical": true, - "file": "provisioning.lookup_api_hub_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "LookupApiHubInstance", - "fullName": "google.cloud.apihub.v1.Provisioning.LookupApiHubInstance", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apihub.v1.LookupApiHubInstanceResponse", - "client": { - "shortName": "ProvisioningClient", - "fullName": "google.cloud.apihub.v1.ProvisioningClient" - }, - "method": { - "shortName": "LookupApiHubInstance", - "fullName": "google.cloud.apihub.v1.Provisioning.LookupApiHubInstance", - "service": { - "shortName": "Provisioning", - "fullName": "google.cloud.apihub.v1.Provisioning" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_RuntimeProjectAttachmentService_CreateRuntimeProjectAttachment_async", - "title": "ApiHub createRuntimeProjectAttachment Sample", - "origin": "API_DEFINITION", - "description": " Attaches a runtime project to the host project.", - "canonical": true, - "file": "runtime_project_attachment_service.create_runtime_project_attachment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateRuntimeProjectAttachment", - "fullName": "google.cloud.apihub.v1.RuntimeProjectAttachmentService.CreateRuntimeProjectAttachment", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "runtime_project_attachment_id", - "type": "TYPE_STRING" - }, - { - "name": "runtime_project_attachment", - "type": ".google.cloud.apihub.v1.RuntimeProjectAttachment" - } - ], - "resultType": ".google.cloud.apihub.v1.RuntimeProjectAttachment", - "client": { - "shortName": "RuntimeProjectAttachmentServiceClient", - "fullName": "google.cloud.apihub.v1.RuntimeProjectAttachmentServiceClient" - }, - "method": { - "shortName": "CreateRuntimeProjectAttachment", - "fullName": "google.cloud.apihub.v1.RuntimeProjectAttachmentService.CreateRuntimeProjectAttachment", - "service": { - "shortName": "RuntimeProjectAttachmentService", - "fullName": "google.cloud.apihub.v1.RuntimeProjectAttachmentService" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_RuntimeProjectAttachmentService_GetRuntimeProjectAttachment_async", - "title": "ApiHub getRuntimeProjectAttachment Sample", - "origin": "API_DEFINITION", - "description": " Gets a runtime project attachment.", - "canonical": true, - "file": "runtime_project_attachment_service.get_runtime_project_attachment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRuntimeProjectAttachment", - "fullName": "google.cloud.apihub.v1.RuntimeProjectAttachmentService.GetRuntimeProjectAttachment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apihub.v1.RuntimeProjectAttachment", - "client": { - "shortName": "RuntimeProjectAttachmentServiceClient", - "fullName": "google.cloud.apihub.v1.RuntimeProjectAttachmentServiceClient" - }, - "method": { - "shortName": "GetRuntimeProjectAttachment", - "fullName": "google.cloud.apihub.v1.RuntimeProjectAttachmentService.GetRuntimeProjectAttachment", - "service": { - "shortName": "RuntimeProjectAttachmentService", - "fullName": "google.cloud.apihub.v1.RuntimeProjectAttachmentService" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_RuntimeProjectAttachmentService_ListRuntimeProjectAttachments_async", - "title": "ApiHub listRuntimeProjectAttachments Sample", - "origin": "API_DEFINITION", - "description": " List runtime projects attached to the host project.", - "canonical": true, - "file": "runtime_project_attachment_service.list_runtime_project_attachments.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 92, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRuntimeProjectAttachments", - "fullName": "google.cloud.apihub.v1.RuntimeProjectAttachmentService.ListRuntimeProjectAttachments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apihub.v1.ListRuntimeProjectAttachmentsResponse", - "client": { - "shortName": "RuntimeProjectAttachmentServiceClient", - "fullName": "google.cloud.apihub.v1.RuntimeProjectAttachmentServiceClient" - }, - "method": { - "shortName": "ListRuntimeProjectAttachments", - "fullName": "google.cloud.apihub.v1.RuntimeProjectAttachmentService.ListRuntimeProjectAttachments", - "service": { - "shortName": "RuntimeProjectAttachmentService", - "fullName": "google.cloud.apihub.v1.RuntimeProjectAttachmentService" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_RuntimeProjectAttachmentService_DeleteRuntimeProjectAttachment_async", - "title": "ApiHub deleteRuntimeProjectAttachment Sample", - "origin": "API_DEFINITION", - "description": " Delete a runtime project attachment in the API Hub. This call will detach the runtime project from the host project.", - "canonical": true, - "file": "runtime_project_attachment_service.delete_runtime_project_attachment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteRuntimeProjectAttachment", - "fullName": "google.cloud.apihub.v1.RuntimeProjectAttachmentService.DeleteRuntimeProjectAttachment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "RuntimeProjectAttachmentServiceClient", - "fullName": "google.cloud.apihub.v1.RuntimeProjectAttachmentServiceClient" - }, - "method": { - "shortName": "DeleteRuntimeProjectAttachment", - "fullName": "google.cloud.apihub.v1.RuntimeProjectAttachmentService.DeleteRuntimeProjectAttachment", - "service": { - "shortName": "RuntimeProjectAttachmentService", - "fullName": "google.cloud.apihub.v1.RuntimeProjectAttachmentService" - } - } - } - }, - { - "regionTag": "apihub_v1_generated_RuntimeProjectAttachmentService_LookupRuntimeProjectAttachment_async", - "title": "ApiHub lookupRuntimeProjectAttachment Sample", - "origin": "API_DEFINITION", - "description": " Look up a runtime project attachment. This API can be called in the context of any project.", - "canonical": true, - "file": "runtime_project_attachment_service.lookup_runtime_project_attachment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "LookupRuntimeProjectAttachment", - "fullName": "google.cloud.apihub.v1.RuntimeProjectAttachmentService.LookupRuntimeProjectAttachment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apihub.v1.LookupRuntimeProjectAttachmentResponse", - "client": { - "shortName": "RuntimeProjectAttachmentServiceClient", - "fullName": "google.cloud.apihub.v1.RuntimeProjectAttachmentServiceClient" - }, - "method": { - "shortName": "LookupRuntimeProjectAttachment", - "fullName": "google.cloud.apihub.v1.RuntimeProjectAttachmentService.LookupRuntimeProjectAttachment", - "service": { - "shortName": "RuntimeProjectAttachmentService", - "fullName": "google.cloud.apihub.v1.RuntimeProjectAttachmentService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-apiregistry/samples/generated/v1/snippet_metadata_google.cloud.apiregistry.v1.json b/packages/google-cloud-apiregistry/samples/generated/v1/snippet_metadata_google.cloud.apiregistry.v1.json deleted file mode 100644 index 9f5476056956..000000000000 --- a/packages/google-cloud-apiregistry/samples/generated/v1/snippet_metadata_google.cloud.apiregistry.v1.json +++ /dev/null @@ -1,207 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-apiregistry", - "version": "0.2.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.apiregistry.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "cloudapiregistry_v1_generated_CloudApiRegistry_GetMcpServer_async", - "title": "CloudApiRegistry getMcpServer Sample", - "origin": "API_DEFINITION", - "description": " Gets a single McpServer.", - "canonical": true, - "file": "cloud_api_registry.get_mcp_server.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMcpServer", - "fullName": "google.cloud.apiregistry.v1.CloudApiRegistry.GetMcpServer", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apiregistry.v1.McpServer", - "client": { - "shortName": "CloudApiRegistryClient", - "fullName": "google.cloud.apiregistry.v1.CloudApiRegistryClient" - }, - "method": { - "shortName": "GetMcpServer", - "fullName": "google.cloud.apiregistry.v1.CloudApiRegistry.GetMcpServer", - "service": { - "shortName": "CloudApiRegistry", - "fullName": "google.cloud.apiregistry.v1.CloudApiRegistry" - } - } - } - }, - { - "regionTag": "cloudapiregistry_v1_generated_CloudApiRegistry_ListMcpServers_async", - "title": "CloudApiRegistry listMcpServers Sample", - "origin": "API_DEFINITION", - "description": " Lists McpServers in a given Project.", - "canonical": true, - "file": "cloud_api_registry.list_mcp_servers.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMcpServers", - "fullName": "google.cloud.apiregistry.v1.CloudApiRegistry.ListMcpServers", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apiregistry.v1.ListMcpServersResponse", - "client": { - "shortName": "CloudApiRegistryClient", - "fullName": "google.cloud.apiregistry.v1.CloudApiRegistryClient" - }, - "method": { - "shortName": "ListMcpServers", - "fullName": "google.cloud.apiregistry.v1.CloudApiRegistry.ListMcpServers", - "service": { - "shortName": "CloudApiRegistry", - "fullName": "google.cloud.apiregistry.v1.CloudApiRegistry" - } - } - } - }, - { - "regionTag": "cloudapiregistry_v1_generated_CloudApiRegistry_GetMcpTool_async", - "title": "CloudApiRegistry getMcpTool Sample", - "origin": "API_DEFINITION", - "description": " Gets a single McpTool.", - "canonical": true, - "file": "cloud_api_registry.get_mcp_tool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMcpTool", - "fullName": "google.cloud.apiregistry.v1.CloudApiRegistry.GetMcpTool", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apiregistry.v1.McpTool", - "client": { - "shortName": "CloudApiRegistryClient", - "fullName": "google.cloud.apiregistry.v1.CloudApiRegistryClient" - }, - "method": { - "shortName": "GetMcpTool", - "fullName": "google.cloud.apiregistry.v1.CloudApiRegistry.GetMcpTool", - "service": { - "shortName": "CloudApiRegistry", - "fullName": "google.cloud.apiregistry.v1.CloudApiRegistry" - } - } - } - }, - { - "regionTag": "cloudapiregistry_v1_generated_CloudApiRegistry_ListMcpTools_async", - "title": "CloudApiRegistry listMcpTools Sample", - "origin": "API_DEFINITION", - "description": " Lists McpTools in a given McpServer.", - "canonical": true, - "file": "cloud_api_registry.list_mcp_tools.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMcpTools", - "fullName": "google.cloud.apiregistry.v1.CloudApiRegistry.ListMcpTools", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apiregistry.v1.ListMcpToolsResponse", - "client": { - "shortName": "CloudApiRegistryClient", - "fullName": "google.cloud.apiregistry.v1.CloudApiRegistryClient" - }, - "method": { - "shortName": "ListMcpTools", - "fullName": "google.cloud.apiregistry.v1.CloudApiRegistry.ListMcpTools", - "service": { - "shortName": "CloudApiRegistry", - "fullName": "google.cloud.apiregistry.v1.CloudApiRegistry" - } - } - } - } - ] -} diff --git a/packages/google-cloud-apiregistry/samples/generated/v1beta/snippet_metadata_google.cloud.apiregistry.v1beta.json b/packages/google-cloud-apiregistry/samples/generated/v1beta/snippet_metadata_google.cloud.apiregistry.v1beta.json deleted file mode 100644 index b91aea84c836..000000000000 --- a/packages/google-cloud-apiregistry/samples/generated/v1beta/snippet_metadata_google.cloud.apiregistry.v1beta.json +++ /dev/null @@ -1,207 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-apiregistry", - "version": "0.2.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.apiregistry.v1beta", - "version": "v1beta" - } - ] - }, - "snippets": [ - { - "regionTag": "cloudapiregistry_v1beta_generated_CloudApiRegistry_GetMcpServer_async", - "title": "CloudApiRegistry getMcpServer Sample", - "origin": "API_DEFINITION", - "description": " Gets a single McpServer.", - "canonical": true, - "file": "cloud_api_registry.get_mcp_server.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMcpServer", - "fullName": "google.cloud.apiregistry.v1beta.CloudApiRegistry.GetMcpServer", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apiregistry.v1beta.McpServer", - "client": { - "shortName": "CloudApiRegistryClient", - "fullName": "google.cloud.apiregistry.v1beta.CloudApiRegistryClient" - }, - "method": { - "shortName": "GetMcpServer", - "fullName": "google.cloud.apiregistry.v1beta.CloudApiRegistry.GetMcpServer", - "service": { - "shortName": "CloudApiRegistry", - "fullName": "google.cloud.apiregistry.v1beta.CloudApiRegistry" - } - } - } - }, - { - "regionTag": "cloudapiregistry_v1beta_generated_CloudApiRegistry_ListMcpServers_async", - "title": "CloudApiRegistry listMcpServers Sample", - "origin": "API_DEFINITION", - "description": " Lists McpServers in a given Project.", - "canonical": true, - "file": "cloud_api_registry.list_mcp_servers.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMcpServers", - "fullName": "google.cloud.apiregistry.v1beta.CloudApiRegistry.ListMcpServers", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apiregistry.v1beta.ListMcpServersResponse", - "client": { - "shortName": "CloudApiRegistryClient", - "fullName": "google.cloud.apiregistry.v1beta.CloudApiRegistryClient" - }, - "method": { - "shortName": "ListMcpServers", - "fullName": "google.cloud.apiregistry.v1beta.CloudApiRegistry.ListMcpServers", - "service": { - "shortName": "CloudApiRegistry", - "fullName": "google.cloud.apiregistry.v1beta.CloudApiRegistry" - } - } - } - }, - { - "regionTag": "cloudapiregistry_v1beta_generated_CloudApiRegistry_GetMcpTool_async", - "title": "CloudApiRegistry getMcpTool Sample", - "origin": "API_DEFINITION", - "description": " Gets a single McpTool.", - "canonical": true, - "file": "cloud_api_registry.get_mcp_tool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMcpTool", - "fullName": "google.cloud.apiregistry.v1beta.CloudApiRegistry.GetMcpTool", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apiregistry.v1beta.McpTool", - "client": { - "shortName": "CloudApiRegistryClient", - "fullName": "google.cloud.apiregistry.v1beta.CloudApiRegistryClient" - }, - "method": { - "shortName": "GetMcpTool", - "fullName": "google.cloud.apiregistry.v1beta.CloudApiRegistry.GetMcpTool", - "service": { - "shortName": "CloudApiRegistry", - "fullName": "google.cloud.apiregistry.v1beta.CloudApiRegistry" - } - } - } - }, - { - "regionTag": "cloudapiregistry_v1beta_generated_CloudApiRegistry_ListMcpTools_async", - "title": "CloudApiRegistry listMcpTools Sample", - "origin": "API_DEFINITION", - "description": " Lists McpTools in a given McpServer.", - "canonical": true, - "file": "cloud_api_registry.list_mcp_tools.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMcpTools", - "fullName": "google.cloud.apiregistry.v1beta.CloudApiRegistry.ListMcpTools", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apiregistry.v1beta.ListMcpToolsResponse", - "client": { - "shortName": "CloudApiRegistryClient", - "fullName": "google.cloud.apiregistry.v1beta.CloudApiRegistryClient" - }, - "method": { - "shortName": "ListMcpTools", - "fullName": "google.cloud.apiregistry.v1beta.CloudApiRegistry.ListMcpTools", - "service": { - "shortName": "CloudApiRegistry", - "fullName": "google.cloud.apiregistry.v1beta.CloudApiRegistry" - } - } - } - } - ] -} diff --git a/packages/google-cloud-apphub/samples/generated/v1/snippet_metadata_google.cloud.apphub.v1.json b/packages/google-cloud-apphub/samples/generated/v1/snippet_metadata_google.cloud.apphub.v1.json deleted file mode 100644 index ad8edf8069c9..000000000000 --- a/packages/google-cloud-apphub/samples/generated/v1/snippet_metadata_google.cloud.apphub.v1.json +++ /dev/null @@ -1,1287 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-apphub", - "version": "0.6.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.apphub.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "apphub_v1_generated_AppHub_LookupServiceProjectAttachment_async", - "title": "AppHub lookupServiceProjectAttachment Sample", - "origin": "API_DEFINITION", - "description": " Lists a service project attachment for a given service project. You can call this API from any project to find if it is attached to a host project.", - "canonical": true, - "file": "app_hub.lookup_service_project_attachment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "LookupServiceProjectAttachment", - "fullName": "google.cloud.apphub.v1.AppHub.LookupServiceProjectAttachment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apphub.v1.LookupServiceProjectAttachmentResponse", - "client": { - "shortName": "AppHubClient", - "fullName": "google.cloud.apphub.v1.AppHubClient" - }, - "method": { - "shortName": "LookupServiceProjectAttachment", - "fullName": "google.cloud.apphub.v1.AppHub.LookupServiceProjectAttachment", - "service": { - "shortName": "AppHub", - "fullName": "google.cloud.apphub.v1.AppHub" - } - } - } - }, - { - "regionTag": "apphub_v1_generated_AppHub_ListServiceProjectAttachments_async", - "title": "AppHub listServiceProjectAttachments Sample", - "origin": "API_DEFINITION", - "description": " Lists service projects attached to the host project.", - "canonical": true, - "file": "app_hub.list_service_project_attachments.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListServiceProjectAttachments", - "fullName": "google.cloud.apphub.v1.AppHub.ListServiceProjectAttachments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apphub.v1.ListServiceProjectAttachmentsResponse", - "client": { - "shortName": "AppHubClient", - "fullName": "google.cloud.apphub.v1.AppHubClient" - }, - "method": { - "shortName": "ListServiceProjectAttachments", - "fullName": "google.cloud.apphub.v1.AppHub.ListServiceProjectAttachments", - "service": { - "shortName": "AppHub", - "fullName": "google.cloud.apphub.v1.AppHub" - } - } - } - }, - { - "regionTag": "apphub_v1_generated_AppHub_CreateServiceProjectAttachment_async", - "title": "AppHub createServiceProjectAttachment Sample", - "origin": "API_DEFINITION", - "description": " Attaches a service project to the host project.", - "canonical": true, - "file": "app_hub.create_service_project_attachment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateServiceProjectAttachment", - "fullName": "google.cloud.apphub.v1.AppHub.CreateServiceProjectAttachment", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "service_project_attachment_id", - "type": "TYPE_STRING" - }, - { - "name": "service_project_attachment", - "type": ".google.cloud.apphub.v1.ServiceProjectAttachment" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AppHubClient", - "fullName": "google.cloud.apphub.v1.AppHubClient" - }, - "method": { - "shortName": "CreateServiceProjectAttachment", - "fullName": "google.cloud.apphub.v1.AppHub.CreateServiceProjectAttachment", - "service": { - "shortName": "AppHub", - "fullName": "google.cloud.apphub.v1.AppHub" - } - } - } - }, - { - "regionTag": "apphub_v1_generated_AppHub_GetServiceProjectAttachment_async", - "title": "AppHub getServiceProjectAttachment Sample", - "origin": "API_DEFINITION", - "description": " Gets a service project attachment.", - "canonical": true, - "file": "app_hub.get_service_project_attachment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetServiceProjectAttachment", - "fullName": "google.cloud.apphub.v1.AppHub.GetServiceProjectAttachment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apphub.v1.ServiceProjectAttachment", - "client": { - "shortName": "AppHubClient", - "fullName": "google.cloud.apphub.v1.AppHubClient" - }, - "method": { - "shortName": "GetServiceProjectAttachment", - "fullName": "google.cloud.apphub.v1.AppHub.GetServiceProjectAttachment", - "service": { - "shortName": "AppHub", - "fullName": "google.cloud.apphub.v1.AppHub" - } - } - } - }, - { - "regionTag": "apphub_v1_generated_AppHub_DeleteServiceProjectAttachment_async", - "title": "AppHub deleteServiceProjectAttachment Sample", - "origin": "API_DEFINITION", - "description": " Deletes a service project attachment.", - "canonical": true, - "file": "app_hub.delete_service_project_attachment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteServiceProjectAttachment", - "fullName": "google.cloud.apphub.v1.AppHub.DeleteServiceProjectAttachment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AppHubClient", - "fullName": "google.cloud.apphub.v1.AppHubClient" - }, - "method": { - "shortName": "DeleteServiceProjectAttachment", - "fullName": "google.cloud.apphub.v1.AppHub.DeleteServiceProjectAttachment", - "service": { - "shortName": "AppHub", - "fullName": "google.cloud.apphub.v1.AppHub" - } - } - } - }, - { - "regionTag": "apphub_v1_generated_AppHub_DetachServiceProjectAttachment_async", - "title": "AppHub detachServiceProjectAttachment Sample", - "origin": "API_DEFINITION", - "description": " Detaches a service project from a host project. You can call this API from any service project without needing access to the host project that it is attached to.", - "canonical": true, - "file": "app_hub.detach_service_project_attachment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DetachServiceProjectAttachment", - "fullName": "google.cloud.apphub.v1.AppHub.DetachServiceProjectAttachment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apphub.v1.DetachServiceProjectAttachmentResponse", - "client": { - "shortName": "AppHubClient", - "fullName": "google.cloud.apphub.v1.AppHubClient" - }, - "method": { - "shortName": "DetachServiceProjectAttachment", - "fullName": "google.cloud.apphub.v1.AppHub.DetachServiceProjectAttachment", - "service": { - "shortName": "AppHub", - "fullName": "google.cloud.apphub.v1.AppHub" - } - } - } - }, - { - "regionTag": "apphub_v1_generated_AppHub_ListDiscoveredServices_async", - "title": "AppHub listDiscoveredServices Sample", - "origin": "API_DEFINITION", - "description": " Lists Discovered Services that can be added to an Application in a host project and location.", - "canonical": true, - "file": "app_hub.list_discovered_services.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDiscoveredServices", - "fullName": "google.cloud.apphub.v1.AppHub.ListDiscoveredServices", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apphub.v1.ListDiscoveredServicesResponse", - "client": { - "shortName": "AppHubClient", - "fullName": "google.cloud.apphub.v1.AppHubClient" - }, - "method": { - "shortName": "ListDiscoveredServices", - "fullName": "google.cloud.apphub.v1.AppHub.ListDiscoveredServices", - "service": { - "shortName": "AppHub", - "fullName": "google.cloud.apphub.v1.AppHub" - } - } - } - }, - { - "regionTag": "apphub_v1_generated_AppHub_GetDiscoveredService_async", - "title": "AppHub getDiscoveredService Sample", - "origin": "API_DEFINITION", - "description": " Gets a Discovered Service in a host project and location.", - "canonical": true, - "file": "app_hub.get_discovered_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDiscoveredService", - "fullName": "google.cloud.apphub.v1.AppHub.GetDiscoveredService", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apphub.v1.DiscoveredService", - "client": { - "shortName": "AppHubClient", - "fullName": "google.cloud.apphub.v1.AppHubClient" - }, - "method": { - "shortName": "GetDiscoveredService", - "fullName": "google.cloud.apphub.v1.AppHub.GetDiscoveredService", - "service": { - "shortName": "AppHub", - "fullName": "google.cloud.apphub.v1.AppHub" - } - } - } - }, - { - "regionTag": "apphub_v1_generated_AppHub_LookupDiscoveredService_async", - "title": "AppHub lookupDiscoveredService Sample", - "origin": "API_DEFINITION", - "description": " Lists a Discovered Service in a host project and location, with a given resource URI.", - "canonical": true, - "file": "app_hub.lookup_discovered_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "LookupDiscoveredService", - "fullName": "google.cloud.apphub.v1.AppHub.LookupDiscoveredService", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "uri", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apphub.v1.LookupDiscoveredServiceResponse", - "client": { - "shortName": "AppHubClient", - "fullName": "google.cloud.apphub.v1.AppHubClient" - }, - "method": { - "shortName": "LookupDiscoveredService", - "fullName": "google.cloud.apphub.v1.AppHub.LookupDiscoveredService", - "service": { - "shortName": "AppHub", - "fullName": "google.cloud.apphub.v1.AppHub" - } - } - } - }, - { - "regionTag": "apphub_v1_generated_AppHub_ListServices_async", - "title": "AppHub listServices Sample", - "origin": "API_DEFINITION", - "description": " Lists Services in an Application.", - "canonical": true, - "file": "app_hub.list_services.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListServices", - "fullName": "google.cloud.apphub.v1.AppHub.ListServices", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apphub.v1.ListServicesResponse", - "client": { - "shortName": "AppHubClient", - "fullName": "google.cloud.apphub.v1.AppHubClient" - }, - "method": { - "shortName": "ListServices", - "fullName": "google.cloud.apphub.v1.AppHub.ListServices", - "service": { - "shortName": "AppHub", - "fullName": "google.cloud.apphub.v1.AppHub" - } - } - } - }, - { - "regionTag": "apphub_v1_generated_AppHub_CreateService_async", - "title": "AppHub createService Sample", - "origin": "API_DEFINITION", - "description": " Creates a Service in an Application.", - "canonical": true, - "file": "app_hub.create_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateService", - "fullName": "google.cloud.apphub.v1.AppHub.CreateService", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "service_id", - "type": "TYPE_STRING" - }, - { - "name": "service", - "type": ".google.cloud.apphub.v1.Service" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AppHubClient", - "fullName": "google.cloud.apphub.v1.AppHubClient" - }, - "method": { - "shortName": "CreateService", - "fullName": "google.cloud.apphub.v1.AppHub.CreateService", - "service": { - "shortName": "AppHub", - "fullName": "google.cloud.apphub.v1.AppHub" - } - } - } - }, - { - "regionTag": "apphub_v1_generated_AppHub_GetService_async", - "title": "AppHub getService Sample", - "origin": "API_DEFINITION", - "description": " Gets a Service in an Application.", - "canonical": true, - "file": "app_hub.get_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetService", - "fullName": "google.cloud.apphub.v1.AppHub.GetService", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apphub.v1.Service", - "client": { - "shortName": "AppHubClient", - "fullName": "google.cloud.apphub.v1.AppHubClient" - }, - "method": { - "shortName": "GetService", - "fullName": "google.cloud.apphub.v1.AppHub.GetService", - "service": { - "shortName": "AppHub", - "fullName": "google.cloud.apphub.v1.AppHub" - } - } - } - }, - { - "regionTag": "apphub_v1_generated_AppHub_UpdateService_async", - "title": "AppHub updateService Sample", - "origin": "API_DEFINITION", - "description": " Updates a Service in an Application.", - "canonical": true, - "file": "app_hub.update_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateService", - "fullName": "google.cloud.apphub.v1.AppHub.UpdateService", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "service", - "type": ".google.cloud.apphub.v1.Service" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AppHubClient", - "fullName": "google.cloud.apphub.v1.AppHubClient" - }, - "method": { - "shortName": "UpdateService", - "fullName": "google.cloud.apphub.v1.AppHub.UpdateService", - "service": { - "shortName": "AppHub", - "fullName": "google.cloud.apphub.v1.AppHub" - } - } - } - }, - { - "regionTag": "apphub_v1_generated_AppHub_DeleteService_async", - "title": "AppHub deleteService Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Service from an Application.", - "canonical": true, - "file": "app_hub.delete_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteService", - "fullName": "google.cloud.apphub.v1.AppHub.DeleteService", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AppHubClient", - "fullName": "google.cloud.apphub.v1.AppHubClient" - }, - "method": { - "shortName": "DeleteService", - "fullName": "google.cloud.apphub.v1.AppHub.DeleteService", - "service": { - "shortName": "AppHub", - "fullName": "google.cloud.apphub.v1.AppHub" - } - } - } - }, - { - "regionTag": "apphub_v1_generated_AppHub_ListDiscoveredWorkloads_async", - "title": "AppHub listDiscoveredWorkloads Sample", - "origin": "API_DEFINITION", - "description": " Lists Discovered Workloads that can be added to an Application in a host project and location.", - "canonical": true, - "file": "app_hub.list_discovered_workloads.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDiscoveredWorkloads", - "fullName": "google.cloud.apphub.v1.AppHub.ListDiscoveredWorkloads", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apphub.v1.ListDiscoveredWorkloadsResponse", - "client": { - "shortName": "AppHubClient", - "fullName": "google.cloud.apphub.v1.AppHubClient" - }, - "method": { - "shortName": "ListDiscoveredWorkloads", - "fullName": "google.cloud.apphub.v1.AppHub.ListDiscoveredWorkloads", - "service": { - "shortName": "AppHub", - "fullName": "google.cloud.apphub.v1.AppHub" - } - } - } - }, - { - "regionTag": "apphub_v1_generated_AppHub_GetDiscoveredWorkload_async", - "title": "AppHub getDiscoveredWorkload Sample", - "origin": "API_DEFINITION", - "description": " Gets a Discovered Workload in a host project and location.", - "canonical": true, - "file": "app_hub.get_discovered_workload.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDiscoveredWorkload", - "fullName": "google.cloud.apphub.v1.AppHub.GetDiscoveredWorkload", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apphub.v1.DiscoveredWorkload", - "client": { - "shortName": "AppHubClient", - "fullName": "google.cloud.apphub.v1.AppHubClient" - }, - "method": { - "shortName": "GetDiscoveredWorkload", - "fullName": "google.cloud.apphub.v1.AppHub.GetDiscoveredWorkload", - "service": { - "shortName": "AppHub", - "fullName": "google.cloud.apphub.v1.AppHub" - } - } - } - }, - { - "regionTag": "apphub_v1_generated_AppHub_LookupDiscoveredWorkload_async", - "title": "AppHub lookupDiscoveredWorkload Sample", - "origin": "API_DEFINITION", - "description": " Lists a Discovered Workload in a host project and location, with a given resource URI.", - "canonical": true, - "file": "app_hub.lookup_discovered_workload.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "LookupDiscoveredWorkload", - "fullName": "google.cloud.apphub.v1.AppHub.LookupDiscoveredWorkload", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "uri", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apphub.v1.LookupDiscoveredWorkloadResponse", - "client": { - "shortName": "AppHubClient", - "fullName": "google.cloud.apphub.v1.AppHubClient" - }, - "method": { - "shortName": "LookupDiscoveredWorkload", - "fullName": "google.cloud.apphub.v1.AppHub.LookupDiscoveredWorkload", - "service": { - "shortName": "AppHub", - "fullName": "google.cloud.apphub.v1.AppHub" - } - } - } - }, - { - "regionTag": "apphub_v1_generated_AppHub_ListWorkloads_async", - "title": "AppHub listWorkloads Sample", - "origin": "API_DEFINITION", - "description": " Lists Workloads in an Application.", - "canonical": true, - "file": "app_hub.list_workloads.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListWorkloads", - "fullName": "google.cloud.apphub.v1.AppHub.ListWorkloads", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apphub.v1.ListWorkloadsResponse", - "client": { - "shortName": "AppHubClient", - "fullName": "google.cloud.apphub.v1.AppHubClient" - }, - "method": { - "shortName": "ListWorkloads", - "fullName": "google.cloud.apphub.v1.AppHub.ListWorkloads", - "service": { - "shortName": "AppHub", - "fullName": "google.cloud.apphub.v1.AppHub" - } - } - } - }, - { - "regionTag": "apphub_v1_generated_AppHub_CreateWorkload_async", - "title": "AppHub createWorkload Sample", - "origin": "API_DEFINITION", - "description": " Creates a Workload in an Application.", - "canonical": true, - "file": "app_hub.create_workload.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateWorkload", - "fullName": "google.cloud.apphub.v1.AppHub.CreateWorkload", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "workload_id", - "type": "TYPE_STRING" - }, - { - "name": "workload", - "type": ".google.cloud.apphub.v1.Workload" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AppHubClient", - "fullName": "google.cloud.apphub.v1.AppHubClient" - }, - "method": { - "shortName": "CreateWorkload", - "fullName": "google.cloud.apphub.v1.AppHub.CreateWorkload", - "service": { - "shortName": "AppHub", - "fullName": "google.cloud.apphub.v1.AppHub" - } - } - } - }, - { - "regionTag": "apphub_v1_generated_AppHub_GetWorkload_async", - "title": "AppHub getWorkload Sample", - "origin": "API_DEFINITION", - "description": " Gets a Workload in an Application.", - "canonical": true, - "file": "app_hub.get_workload.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetWorkload", - "fullName": "google.cloud.apphub.v1.AppHub.GetWorkload", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apphub.v1.Workload", - "client": { - "shortName": "AppHubClient", - "fullName": "google.cloud.apphub.v1.AppHubClient" - }, - "method": { - "shortName": "GetWorkload", - "fullName": "google.cloud.apphub.v1.AppHub.GetWorkload", - "service": { - "shortName": "AppHub", - "fullName": "google.cloud.apphub.v1.AppHub" - } - } - } - }, - { - "regionTag": "apphub_v1_generated_AppHub_UpdateWorkload_async", - "title": "AppHub updateWorkload Sample", - "origin": "API_DEFINITION", - "description": " Updates a Workload in an Application.", - "canonical": true, - "file": "app_hub.update_workload.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateWorkload", - "fullName": "google.cloud.apphub.v1.AppHub.UpdateWorkload", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "workload", - "type": ".google.cloud.apphub.v1.Workload" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AppHubClient", - "fullName": "google.cloud.apphub.v1.AppHubClient" - }, - "method": { - "shortName": "UpdateWorkload", - "fullName": "google.cloud.apphub.v1.AppHub.UpdateWorkload", - "service": { - "shortName": "AppHub", - "fullName": "google.cloud.apphub.v1.AppHub" - } - } - } - }, - { - "regionTag": "apphub_v1_generated_AppHub_DeleteWorkload_async", - "title": "AppHub deleteWorkload Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Workload from an Application.", - "canonical": true, - "file": "app_hub.delete_workload.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteWorkload", - "fullName": "google.cloud.apphub.v1.AppHub.DeleteWorkload", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AppHubClient", - "fullName": "google.cloud.apphub.v1.AppHubClient" - }, - "method": { - "shortName": "DeleteWorkload", - "fullName": "google.cloud.apphub.v1.AppHub.DeleteWorkload", - "service": { - "shortName": "AppHub", - "fullName": "google.cloud.apphub.v1.AppHub" - } - } - } - }, - { - "regionTag": "apphub_v1_generated_AppHub_ListApplications_async", - "title": "AppHub listApplications Sample", - "origin": "API_DEFINITION", - "description": " Lists Applications in a host project and location.", - "canonical": true, - "file": "app_hub.list_applications.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListApplications", - "fullName": "google.cloud.apphub.v1.AppHub.ListApplications", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apphub.v1.ListApplicationsResponse", - "client": { - "shortName": "AppHubClient", - "fullName": "google.cloud.apphub.v1.AppHubClient" - }, - "method": { - "shortName": "ListApplications", - "fullName": "google.cloud.apphub.v1.AppHub.ListApplications", - "service": { - "shortName": "AppHub", - "fullName": "google.cloud.apphub.v1.AppHub" - } - } - } - }, - { - "regionTag": "apphub_v1_generated_AppHub_CreateApplication_async", - "title": "AppHub createApplication Sample", - "origin": "API_DEFINITION", - "description": " Creates an Application in a host project and location.", - "canonical": true, - "file": "app_hub.create_application.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateApplication", - "fullName": "google.cloud.apphub.v1.AppHub.CreateApplication", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "application_id", - "type": "TYPE_STRING" - }, - { - "name": "application", - "type": ".google.cloud.apphub.v1.Application" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AppHubClient", - "fullName": "google.cloud.apphub.v1.AppHubClient" - }, - "method": { - "shortName": "CreateApplication", - "fullName": "google.cloud.apphub.v1.AppHub.CreateApplication", - "service": { - "shortName": "AppHub", - "fullName": "google.cloud.apphub.v1.AppHub" - } - } - } - }, - { - "regionTag": "apphub_v1_generated_AppHub_GetApplication_async", - "title": "AppHub getApplication Sample", - "origin": "API_DEFINITION", - "description": " Gets an Application in a host project and location.", - "canonical": true, - "file": "app_hub.get_application.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetApplication", - "fullName": "google.cloud.apphub.v1.AppHub.GetApplication", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.apphub.v1.Application", - "client": { - "shortName": "AppHubClient", - "fullName": "google.cloud.apphub.v1.AppHubClient" - }, - "method": { - "shortName": "GetApplication", - "fullName": "google.cloud.apphub.v1.AppHub.GetApplication", - "service": { - "shortName": "AppHub", - "fullName": "google.cloud.apphub.v1.AppHub" - } - } - } - }, - { - "regionTag": "apphub_v1_generated_AppHub_UpdateApplication_async", - "title": "AppHub updateApplication Sample", - "origin": "API_DEFINITION", - "description": " Updates an Application in a host project and location.", - "canonical": true, - "file": "app_hub.update_application.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateApplication", - "fullName": "google.cloud.apphub.v1.AppHub.UpdateApplication", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "application", - "type": ".google.cloud.apphub.v1.Application" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AppHubClient", - "fullName": "google.cloud.apphub.v1.AppHubClient" - }, - "method": { - "shortName": "UpdateApplication", - "fullName": "google.cloud.apphub.v1.AppHub.UpdateApplication", - "service": { - "shortName": "AppHub", - "fullName": "google.cloud.apphub.v1.AppHub" - } - } - } - }, - { - "regionTag": "apphub_v1_generated_AppHub_DeleteApplication_async", - "title": "AppHub deleteApplication Sample", - "origin": "API_DEFINITION", - "description": " Deletes an Application in a host project and location.", - "canonical": true, - "file": "app_hub.delete_application.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteApplication", - "fullName": "google.cloud.apphub.v1.AppHub.DeleteApplication", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AppHubClient", - "fullName": "google.cloud.apphub.v1.AppHubClient" - }, - "method": { - "shortName": "DeleteApplication", - "fullName": "google.cloud.apphub.v1.AppHub.DeleteApplication", - "service": { - "shortName": "AppHub", - "fullName": "google.cloud.apphub.v1.AppHub" - } - } - } - } - ] -} diff --git a/packages/google-cloud-appoptimize/samples/generated/v1beta/snippet_metadata_google.cloud.appoptimize.v1beta.json b/packages/google-cloud-appoptimize/samples/generated/v1beta/snippet_metadata_google.cloud.appoptimize.v1beta.json deleted file mode 100644 index bf6ebbaf641b..000000000000 --- a/packages/google-cloud-appoptimize/samples/generated/v1beta/snippet_metadata_google.cloud.appoptimize.v1beta.json +++ /dev/null @@ -1,243 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-appoptimize", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.appoptimize.v1beta", - "version": "v1beta" - } - ] - }, - "snippets": [ - { - "regionTag": "appoptimize_v1beta_generated_AppOptimize_CreateReport_async", - "title": "AppOptimize createReport Sample", - "origin": "API_DEFINITION", - "description": " Creates a new report. This initiates a long-running operation that, upon completion, results in a report resource. Once the report is created, its results can be read via `ReadReport`.", - "canonical": true, - "file": "app_optimize.create_report.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateReport", - "fullName": "google.cloud.appoptimize.v1beta.AppOptimize.CreateReport", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "report_id", - "type": "TYPE_STRING" - }, - { - "name": "report", - "type": ".google.cloud.appoptimize.v1beta.Report" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AppOptimizeClient", - "fullName": "google.cloud.appoptimize.v1beta.AppOptimizeClient" - }, - "method": { - "shortName": "CreateReport", - "fullName": "google.cloud.appoptimize.v1beta.AppOptimize.CreateReport", - "service": { - "shortName": "AppOptimize", - "fullName": "google.cloud.appoptimize.v1beta.AppOptimize" - } - } - } - }, - { - "regionTag": "appoptimize_v1beta_generated_AppOptimize_GetReport_async", - "title": "AppOptimize getReport Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the details of a report configuration.", - "canonical": true, - "file": "app_optimize.get_report.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetReport", - "fullName": "google.cloud.appoptimize.v1beta.AppOptimize.GetReport", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.appoptimize.v1beta.Report", - "client": { - "shortName": "AppOptimizeClient", - "fullName": "google.cloud.appoptimize.v1beta.AppOptimizeClient" - }, - "method": { - "shortName": "GetReport", - "fullName": "google.cloud.appoptimize.v1beta.AppOptimize.GetReport", - "service": { - "shortName": "AppOptimize", - "fullName": "google.cloud.appoptimize.v1beta.AppOptimize" - } - } - } - }, - { - "regionTag": "appoptimize_v1beta_generated_AppOptimize_ListReports_async", - "title": "AppOptimize listReports Sample", - "origin": "API_DEFINITION", - "description": " Lists reports within a given project.", - "canonical": true, - "file": "app_optimize.list_reports.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListReports", - "fullName": "google.cloud.appoptimize.v1beta.AppOptimize.ListReports", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.appoptimize.v1beta.ListReportsResponse", - "client": { - "shortName": "AppOptimizeClient", - "fullName": "google.cloud.appoptimize.v1beta.AppOptimizeClient" - }, - "method": { - "shortName": "ListReports", - "fullName": "google.cloud.appoptimize.v1beta.AppOptimize.ListReports", - "service": { - "shortName": "AppOptimize", - "fullName": "google.cloud.appoptimize.v1beta.AppOptimize" - } - } - } - }, - { - "regionTag": "appoptimize_v1beta_generated_AppOptimize_DeleteReport_async", - "title": "AppOptimize deleteReport Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified report.", - "canonical": true, - "file": "app_optimize.delete_report.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteReport", - "fullName": "google.cloud.appoptimize.v1beta.AppOptimize.DeleteReport", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AppOptimizeClient", - "fullName": "google.cloud.appoptimize.v1beta.AppOptimizeClient" - }, - "method": { - "shortName": "DeleteReport", - "fullName": "google.cloud.appoptimize.v1beta.AppOptimize.DeleteReport", - "service": { - "shortName": "AppOptimize", - "fullName": "google.cloud.appoptimize.v1beta.AppOptimize" - } - } - } - }, - { - "regionTag": "appoptimize_v1beta_generated_AppOptimize_ReadReport_async", - "title": "AppOptimize readReport Sample", - "origin": "API_DEFINITION", - "description": " Reads data within a specified report.", - "canonical": true, - "file": "app_optimize.read_report.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReadReport", - "fullName": "google.cloud.appoptimize.v1beta.AppOptimize.ReadReport", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.appoptimize.v1beta.ReadReportResponse", - "client": { - "shortName": "AppOptimizeClient", - "fullName": "google.cloud.appoptimize.v1beta.AppOptimizeClient" - }, - "method": { - "shortName": "ReadReport", - "fullName": "google.cloud.appoptimize.v1beta.AppOptimize.ReadReport", - "service": { - "shortName": "AppOptimize", - "fullName": "google.cloud.appoptimize.v1beta.AppOptimize" - } - } - } - } - ] -} diff --git a/packages/google-cloud-asset/samples/generated/v1/snippet_metadata_google.cloud.asset.v1.json b/packages/google-cloud-asset/samples/generated/v1/snippet_metadata_google.cloud.asset.v1.json deleted file mode 100644 index 5eeef789716c..000000000000 --- a/packages/google-cloud-asset/samples/generated/v1/snippet_metadata_google.cloud.asset.v1.json +++ /dev/null @@ -1,1183 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-asset", - "version": "6.3.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.asset.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "cloudasset_v1_generated_AssetService_ExportAssets_async", - "title": "AssetService exportAssets Sample", - "origin": "API_DEFINITION", - "description": " Exports assets with time and resource types to a given Cloud Storage location/BigQuery table. For Cloud Storage location destinations, the output format is newline-delimited JSON. Each line represents a [google.cloud.asset.v1.Asset][google.cloud.asset.v1.Asset] in the JSON format; for BigQuery table destinations, the output table stores the fields in asset Protobuf as columns. This API implements the [google.longrunning.Operation][google.longrunning.Operation] API, which allows you to keep track of the export. We recommend intervals of at least 2 seconds with exponential retry to poll the export operation result. For regular-size resource parent, the export operation usually finishes within 5 minutes.", - "canonical": true, - "file": "asset_service.export_assets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 111, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportAssets", - "fullName": "google.cloud.asset.v1.AssetService.ExportAssets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "read_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "asset_types", - "type": "TYPE_STRING[]" - }, - { - "name": "content_type", - "type": ".google.cloud.asset.v1.ContentType" - }, - { - "name": "output_config", - "type": ".google.cloud.asset.v1.OutputConfig" - }, - { - "name": "relationship_types", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AssetServiceClient", - "fullName": "google.cloud.asset.v1.AssetServiceClient" - }, - "method": { - "shortName": "ExportAssets", - "fullName": "google.cloud.asset.v1.AssetService.ExportAssets", - "service": { - "shortName": "AssetService", - "fullName": "google.cloud.asset.v1.AssetService" - } - } - } - }, - { - "regionTag": "cloudasset_v1_generated_AssetService_ListAssets_async", - "title": "AssetService listAssets Sample", - "origin": "API_DEFINITION", - "description": " Lists assets with time and resource types and returns paged results in response.", - "canonical": true, - "file": "asset_service.list_assets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 118, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAssets", - "fullName": "google.cloud.asset.v1.AssetService.ListAssets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "read_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "asset_types", - "type": "TYPE_STRING[]" - }, - { - "name": "content_type", - "type": ".google.cloud.asset.v1.ContentType" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "relationship_types", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.cloud.asset.v1.ListAssetsResponse", - "client": { - "shortName": "AssetServiceClient", - "fullName": "google.cloud.asset.v1.AssetServiceClient" - }, - "method": { - "shortName": "ListAssets", - "fullName": "google.cloud.asset.v1.AssetService.ListAssets", - "service": { - "shortName": "AssetService", - "fullName": "google.cloud.asset.v1.AssetService" - } - } - } - }, - { - "regionTag": "cloudasset_v1_generated_AssetService_BatchGetAssetsHistory_async", - "title": "AssetService batchGetAssetsHistory Sample", - "origin": "API_DEFINITION", - "description": " Batch gets the update history of assets that overlap a time window. For IAM_POLICY content, this API outputs history when the asset and its attached IAM POLICY both exist. This can create gaps in the output history. Otherwise, this API outputs history with asset in both non-delete or deleted status. If a specified asset does not exist, this API returns an INVALID_ARGUMENT error.", - "canonical": true, - "file": "asset_service.batch_get_assets_history.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 96, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchGetAssetsHistory", - "fullName": "google.cloud.asset.v1.AssetService.BatchGetAssetsHistory", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "asset_names", - "type": "TYPE_STRING[]" - }, - { - "name": "content_type", - "type": ".google.cloud.asset.v1.ContentType" - }, - { - "name": "read_time_window", - "type": ".google.cloud.asset.v1.TimeWindow" - }, - { - "name": "relationship_types", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.cloud.asset.v1.BatchGetAssetsHistoryResponse", - "client": { - "shortName": "AssetServiceClient", - "fullName": "google.cloud.asset.v1.AssetServiceClient" - }, - "method": { - "shortName": "BatchGetAssetsHistory", - "fullName": "google.cloud.asset.v1.AssetService.BatchGetAssetsHistory", - "service": { - "shortName": "AssetService", - "fullName": "google.cloud.asset.v1.AssetService" - } - } - } - }, - { - "regionTag": "cloudasset_v1_generated_AssetService_CreateFeed_async", - "title": "AssetService createFeed Sample", - "origin": "API_DEFINITION", - "description": " Creates a feed in a parent project/folder/organization to listen to its asset updates.", - "canonical": true, - "file": "asset_service.create_feed.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateFeed", - "fullName": "google.cloud.asset.v1.AssetService.CreateFeed", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "feed_id", - "type": "TYPE_STRING" - }, - { - "name": "feed", - "type": ".google.cloud.asset.v1.Feed" - } - ], - "resultType": ".google.cloud.asset.v1.Feed", - "client": { - "shortName": "AssetServiceClient", - "fullName": "google.cloud.asset.v1.AssetServiceClient" - }, - "method": { - "shortName": "CreateFeed", - "fullName": "google.cloud.asset.v1.AssetService.CreateFeed", - "service": { - "shortName": "AssetService", - "fullName": "google.cloud.asset.v1.AssetService" - } - } - } - }, - { - "regionTag": "cloudasset_v1_generated_AssetService_GetFeed_async", - "title": "AssetService getFeed Sample", - "origin": "API_DEFINITION", - "description": " Gets details about an asset feed.", - "canonical": true, - "file": "asset_service.get_feed.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFeed", - "fullName": "google.cloud.asset.v1.AssetService.GetFeed", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.asset.v1.Feed", - "client": { - "shortName": "AssetServiceClient", - "fullName": "google.cloud.asset.v1.AssetServiceClient" - }, - "method": { - "shortName": "GetFeed", - "fullName": "google.cloud.asset.v1.AssetService.GetFeed", - "service": { - "shortName": "AssetService", - "fullName": "google.cloud.asset.v1.AssetService" - } - } - } - }, - { - "regionTag": "cloudasset_v1_generated_AssetService_ListFeeds_async", - "title": "AssetService listFeeds Sample", - "origin": "API_DEFINITION", - "description": " Lists all asset feeds in a parent project/folder/organization.", - "canonical": true, - "file": "asset_service.list_feeds.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFeeds", - "fullName": "google.cloud.asset.v1.AssetService.ListFeeds", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.asset.v1.ListFeedsResponse", - "client": { - "shortName": "AssetServiceClient", - "fullName": "google.cloud.asset.v1.AssetServiceClient" - }, - "method": { - "shortName": "ListFeeds", - "fullName": "google.cloud.asset.v1.AssetService.ListFeeds", - "service": { - "shortName": "AssetService", - "fullName": "google.cloud.asset.v1.AssetService" - } - } - } - }, - { - "regionTag": "cloudasset_v1_generated_AssetService_UpdateFeed_async", - "title": "AssetService updateFeed Sample", - "origin": "API_DEFINITION", - "description": " Updates an asset feed configuration.", - "canonical": true, - "file": "asset_service.update_feed.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateFeed", - "fullName": "google.cloud.asset.v1.AssetService.UpdateFeed", - "async": true, - "parameters": [ - { - "name": "feed", - "type": ".google.cloud.asset.v1.Feed" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.asset.v1.Feed", - "client": { - "shortName": "AssetServiceClient", - "fullName": "google.cloud.asset.v1.AssetServiceClient" - }, - "method": { - "shortName": "UpdateFeed", - "fullName": "google.cloud.asset.v1.AssetService.UpdateFeed", - "service": { - "shortName": "AssetService", - "fullName": "google.cloud.asset.v1.AssetService" - } - } - } - }, - { - "regionTag": "cloudasset_v1_generated_AssetService_DeleteFeed_async", - "title": "AssetService deleteFeed Sample", - "origin": "API_DEFINITION", - "description": " Deletes an asset feed.", - "canonical": true, - "file": "asset_service.delete_feed.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteFeed", - "fullName": "google.cloud.asset.v1.AssetService.DeleteFeed", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AssetServiceClient", - "fullName": "google.cloud.asset.v1.AssetServiceClient" - }, - "method": { - "shortName": "DeleteFeed", - "fullName": "google.cloud.asset.v1.AssetService.DeleteFeed", - "service": { - "shortName": "AssetService", - "fullName": "google.cloud.asset.v1.AssetService" - } - } - } - }, - { - "regionTag": "cloudasset_v1_generated_AssetService_SearchAllResources_async", - "title": "AssetService searchAllResources Sample", - "origin": "API_DEFINITION", - "description": " Searches all Google Cloud resources within the specified scope, such as a project, folder, or organization. The caller must be granted the `cloudasset.assets.searchAllResources` permission on the desired scope, otherwise the request will be rejected.", - "canonical": true, - "file": "asset_service.search_all_resources.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 225, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchAllResources", - "fullName": "google.cloud.asset.v1.AssetService.SearchAllResources", - "async": true, - "parameters": [ - { - "name": "scope", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": "TYPE_STRING" - }, - { - "name": "asset_types", - "type": "TYPE_STRING[]" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.asset.v1.SearchAllResourcesResponse", - "client": { - "shortName": "AssetServiceClient", - "fullName": "google.cloud.asset.v1.AssetServiceClient" - }, - "method": { - "shortName": "SearchAllResources", - "fullName": "google.cloud.asset.v1.AssetService.SearchAllResources", - "service": { - "shortName": "AssetService", - "fullName": "google.cloud.asset.v1.AssetService" - } - } - } - }, - { - "regionTag": "cloudasset_v1_generated_AssetService_SearchAllIamPolicies_async", - "title": "AssetService searchAllIamPolicies Sample", - "origin": "API_DEFINITION", - "description": " Searches all IAM policies within the specified scope, such as a project, folder, or organization. The caller must be granted the `cloudasset.assets.searchAllIamPolicies` permission on the desired scope, otherwise the request will be rejected.", - "canonical": true, - "file": "asset_service.search_all_iam_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 152, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchAllIamPolicies", - "fullName": "google.cloud.asset.v1.AssetService.SearchAllIamPolicies", - "async": true, - "parameters": [ - { - "name": "scope", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "asset_types", - "type": "TYPE_STRING[]" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.asset.v1.SearchAllIamPoliciesResponse", - "client": { - "shortName": "AssetServiceClient", - "fullName": "google.cloud.asset.v1.AssetServiceClient" - }, - "method": { - "shortName": "SearchAllIamPolicies", - "fullName": "google.cloud.asset.v1.AssetService.SearchAllIamPolicies", - "service": { - "shortName": "AssetService", - "fullName": "google.cloud.asset.v1.AssetService" - } - } - } - }, - { - "regionTag": "cloudasset_v1_generated_AssetService_AnalyzeIamPolicy_async", - "title": "AssetService analyzeIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Analyzes IAM policies to answer which identities have what accesses on which resources.", - "canonical": true, - "file": "asset_service.analyze_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AnalyzeIamPolicy", - "fullName": "google.cloud.asset.v1.AssetService.AnalyzeIamPolicy", - "async": true, - "parameters": [ - { - "name": "analysis_query", - "type": ".google.cloud.asset.v1.IamPolicyAnalysisQuery" - }, - { - "name": "saved_analysis_query", - "type": "TYPE_STRING" - }, - { - "name": "execution_timeout", - "type": ".google.protobuf.Duration" - } - ], - "resultType": ".google.cloud.asset.v1.AnalyzeIamPolicyResponse", - "client": { - "shortName": "AssetServiceClient", - "fullName": "google.cloud.asset.v1.AssetServiceClient" - }, - "method": { - "shortName": "AnalyzeIamPolicy", - "fullName": "google.cloud.asset.v1.AssetService.AnalyzeIamPolicy", - "service": { - "shortName": "AssetService", - "fullName": "google.cloud.asset.v1.AssetService" - } - } - } - }, - { - "regionTag": "cloudasset_v1_generated_AssetService_AnalyzeIamPolicyLongrunning_async", - "title": "AssetService analyzeIamPolicyLongrunning Sample", - "origin": "API_DEFINITION", - "description": " Analyzes IAM policies asynchronously to answer which identities have what accesses on which resources, and writes the analysis results to a Google Cloud Storage or a BigQuery destination. For Cloud Storage destination, the output format is the JSON format that represents a [AnalyzeIamPolicyResponse][google.cloud.asset.v1.AnalyzeIamPolicyResponse]. This method implements the [google.longrunning.Operation][google.longrunning.Operation], which allows you to track the operation status. We recommend intervals of at least 2 seconds with exponential backoff retry to poll the operation result. The metadata contains the metadata for the long-running operation.", - "canonical": true, - "file": "asset_service.analyze_iam_policy_longrunning.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AnalyzeIamPolicyLongrunning", - "fullName": "google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning", - "async": true, - "parameters": [ - { - "name": "analysis_query", - "type": ".google.cloud.asset.v1.IamPolicyAnalysisQuery" - }, - { - "name": "saved_analysis_query", - "type": "TYPE_STRING" - }, - { - "name": "output_config", - "type": ".google.cloud.asset.v1.IamPolicyAnalysisOutputConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AssetServiceClient", - "fullName": "google.cloud.asset.v1.AssetServiceClient" - }, - "method": { - "shortName": "AnalyzeIamPolicyLongrunning", - "fullName": "google.cloud.asset.v1.AssetService.AnalyzeIamPolicyLongrunning", - "service": { - "shortName": "AssetService", - "fullName": "google.cloud.asset.v1.AssetService" - } - } - } - }, - { - "regionTag": "cloudasset_v1_generated_AssetService_AnalyzeMove_async", - "title": "AssetService analyzeMove Sample", - "origin": "API_DEFINITION", - "description": " Analyze moving a resource to a specified destination without kicking off the actual move. The analysis is best effort depending on the user's permissions of viewing different hierarchical policies and configurations. The policies and configuration are subject to change before the actual resource migration takes place.", - "canonical": true, - "file": "asset_service.analyze_move.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AnalyzeMove", - "fullName": "google.cloud.asset.v1.AssetService.AnalyzeMove", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "destination_parent", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.asset.v1.AnalyzeMoveRequest.AnalysisView" - } - ], - "resultType": ".google.cloud.asset.v1.AnalyzeMoveResponse", - "client": { - "shortName": "AssetServiceClient", - "fullName": "google.cloud.asset.v1.AssetServiceClient" - }, - "method": { - "shortName": "AnalyzeMove", - "fullName": "google.cloud.asset.v1.AssetService.AnalyzeMove", - "service": { - "shortName": "AssetService", - "fullName": "google.cloud.asset.v1.AssetService" - } - } - } - }, - { - "regionTag": "cloudasset_v1_generated_AssetService_QueryAssets_async", - "title": "AssetService queryAssets Sample", - "origin": "API_DEFINITION", - "description": " Issue a job that queries assets using a SQL statement compatible with [BigQuery SQL](https://cloud.google.com/bigquery/docs/introduction-sql). If the query execution finishes within timeout and there's no pagination, the full query results will be returned in the `QueryAssetsResponse`. Otherwise, full query results can be obtained by issuing extra requests with the `job_reference` from the a previous `QueryAssets` call. Note, the query result has approximately 10 GB limitation enforced by [BigQuery](https://cloud.google.com/bigquery/docs/best-practices-performance-output). Queries return larger results will result in errors.", - "canonical": true, - "file": "asset_service.query_assets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 115, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryAssets", - "fullName": "google.cloud.asset.v1.AssetService.QueryAssets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "statement", - "type": "TYPE_STRING" - }, - { - "name": "job_reference", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "timeout", - "type": ".google.protobuf.Duration" - }, - { - "name": "read_time_window", - "type": ".google.cloud.asset.v1.TimeWindow" - }, - { - "name": "read_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "output_config", - "type": ".google.cloud.asset.v1.QueryAssetsOutputConfig" - } - ], - "resultType": ".google.cloud.asset.v1.QueryAssetsResponse", - "client": { - "shortName": "AssetServiceClient", - "fullName": "google.cloud.asset.v1.AssetServiceClient" - }, - "method": { - "shortName": "QueryAssets", - "fullName": "google.cloud.asset.v1.AssetService.QueryAssets", - "service": { - "shortName": "AssetService", - "fullName": "google.cloud.asset.v1.AssetService" - } - } - } - }, - { - "regionTag": "cloudasset_v1_generated_AssetService_CreateSavedQuery_async", - "title": "AssetService createSavedQuery Sample", - "origin": "API_DEFINITION", - "description": " Creates a saved query in a parent project/folder/organization.", - "canonical": true, - "file": "asset_service.create_saved_query.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSavedQuery", - "fullName": "google.cloud.asset.v1.AssetService.CreateSavedQuery", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "saved_query", - "type": ".google.cloud.asset.v1.SavedQuery" - }, - { - "name": "saved_query_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.asset.v1.SavedQuery", - "client": { - "shortName": "AssetServiceClient", - "fullName": "google.cloud.asset.v1.AssetServiceClient" - }, - "method": { - "shortName": "CreateSavedQuery", - "fullName": "google.cloud.asset.v1.AssetService.CreateSavedQuery", - "service": { - "shortName": "AssetService", - "fullName": "google.cloud.asset.v1.AssetService" - } - } - } - }, - { - "regionTag": "cloudasset_v1_generated_AssetService_GetSavedQuery_async", - "title": "AssetService getSavedQuery Sample", - "origin": "API_DEFINITION", - "description": " Gets details about a saved query.", - "canonical": true, - "file": "asset_service.get_saved_query.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSavedQuery", - "fullName": "google.cloud.asset.v1.AssetService.GetSavedQuery", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.asset.v1.SavedQuery", - "client": { - "shortName": "AssetServiceClient", - "fullName": "google.cloud.asset.v1.AssetServiceClient" - }, - "method": { - "shortName": "GetSavedQuery", - "fullName": "google.cloud.asset.v1.AssetService.GetSavedQuery", - "service": { - "shortName": "AssetService", - "fullName": "google.cloud.asset.v1.AssetService" - } - } - } - }, - { - "regionTag": "cloudasset_v1_generated_AssetService_ListSavedQueries_async", - "title": "AssetService listSavedQueries Sample", - "origin": "API_DEFINITION", - "description": " Lists all saved queries in a parent project/folder/organization.", - "canonical": true, - "file": "asset_service.list_saved_queries.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSavedQueries", - "fullName": "google.cloud.asset.v1.AssetService.ListSavedQueries", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.asset.v1.ListSavedQueriesResponse", - "client": { - "shortName": "AssetServiceClient", - "fullName": "google.cloud.asset.v1.AssetServiceClient" - }, - "method": { - "shortName": "ListSavedQueries", - "fullName": "google.cloud.asset.v1.AssetService.ListSavedQueries", - "service": { - "shortName": "AssetService", - "fullName": "google.cloud.asset.v1.AssetService" - } - } - } - }, - { - "regionTag": "cloudasset_v1_generated_AssetService_UpdateSavedQuery_async", - "title": "AssetService updateSavedQuery Sample", - "origin": "API_DEFINITION", - "description": " Updates a saved query.", - "canonical": true, - "file": "asset_service.update_saved_query.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSavedQuery", - "fullName": "google.cloud.asset.v1.AssetService.UpdateSavedQuery", - "async": true, - "parameters": [ - { - "name": "saved_query", - "type": ".google.cloud.asset.v1.SavedQuery" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.asset.v1.SavedQuery", - "client": { - "shortName": "AssetServiceClient", - "fullName": "google.cloud.asset.v1.AssetServiceClient" - }, - "method": { - "shortName": "UpdateSavedQuery", - "fullName": "google.cloud.asset.v1.AssetService.UpdateSavedQuery", - "service": { - "shortName": "AssetService", - "fullName": "google.cloud.asset.v1.AssetService" - } - } - } - }, - { - "regionTag": "cloudasset_v1_generated_AssetService_DeleteSavedQuery_async", - "title": "AssetService deleteSavedQuery Sample", - "origin": "API_DEFINITION", - "description": " Deletes a saved query.", - "canonical": true, - "file": "asset_service.delete_saved_query.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSavedQuery", - "fullName": "google.cloud.asset.v1.AssetService.DeleteSavedQuery", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AssetServiceClient", - "fullName": "google.cloud.asset.v1.AssetServiceClient" - }, - "method": { - "shortName": "DeleteSavedQuery", - "fullName": "google.cloud.asset.v1.AssetService.DeleteSavedQuery", - "service": { - "shortName": "AssetService", - "fullName": "google.cloud.asset.v1.AssetService" - } - } - } - }, - { - "regionTag": "cloudasset_v1_generated_AssetService_BatchGetEffectiveIamPolicies_async", - "title": "AssetService batchGetEffectiveIamPolicies Sample", - "origin": "API_DEFINITION", - "description": " Gets effective IAM policies for a batch of resources.", - "canonical": true, - "file": "asset_service.batch_get_effective_iam_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchGetEffectiveIamPolicies", - "fullName": "google.cloud.asset.v1.AssetService.BatchGetEffectiveIamPolicies", - "async": true, - "parameters": [ - { - "name": "scope", - "type": "TYPE_STRING" - }, - { - "name": "names", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.cloud.asset.v1.BatchGetEffectiveIamPoliciesResponse", - "client": { - "shortName": "AssetServiceClient", - "fullName": "google.cloud.asset.v1.AssetServiceClient" - }, - "method": { - "shortName": "BatchGetEffectiveIamPolicies", - "fullName": "google.cloud.asset.v1.AssetService.BatchGetEffectiveIamPolicies", - "service": { - "shortName": "AssetService", - "fullName": "google.cloud.asset.v1.AssetService" - } - } - } - }, - { - "regionTag": "cloudasset_v1_generated_AssetService_AnalyzeOrgPolicies_async", - "title": "AssetService analyzeOrgPolicies Sample", - "origin": "API_DEFINITION", - "description": " Analyzes organization policies under a scope.", - "canonical": true, - "file": "asset_service.analyze_org_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AnalyzeOrgPolicies", - "fullName": "google.cloud.asset.v1.AssetService.AnalyzeOrgPolicies", - "async": true, - "parameters": [ - { - "name": "scope", - "type": "TYPE_STRING" - }, - { - "name": "constraint", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.asset.v1.AnalyzeOrgPoliciesResponse", - "client": { - "shortName": "AssetServiceClient", - "fullName": "google.cloud.asset.v1.AssetServiceClient" - }, - "method": { - "shortName": "AnalyzeOrgPolicies", - "fullName": "google.cloud.asset.v1.AssetService.AnalyzeOrgPolicies", - "service": { - "shortName": "AssetService", - "fullName": "google.cloud.asset.v1.AssetService" - } - } - } - }, - { - "regionTag": "cloudasset_v1_generated_AssetService_AnalyzeOrgPolicyGovernedContainers_async", - "title": "AssetService analyzeOrgPolicyGovernedContainers Sample", - "origin": "API_DEFINITION", - "description": " Analyzes organization policies governed containers (projects, folders or organization) under a scope.", - "canonical": true, - "file": "asset_service.analyze_org_policy_governed_containers.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 89, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AnalyzeOrgPolicyGovernedContainers", - "fullName": "google.cloud.asset.v1.AssetService.AnalyzeOrgPolicyGovernedContainers", - "async": true, - "parameters": [ - { - "name": "scope", - "type": "TYPE_STRING" - }, - { - "name": "constraint", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse", - "client": { - "shortName": "AssetServiceClient", - "fullName": "google.cloud.asset.v1.AssetServiceClient" - }, - "method": { - "shortName": "AnalyzeOrgPolicyGovernedContainers", - "fullName": "google.cloud.asset.v1.AssetService.AnalyzeOrgPolicyGovernedContainers", - "service": { - "shortName": "AssetService", - "fullName": "google.cloud.asset.v1.AssetService" - } - } - } - }, - { - "regionTag": "cloudasset_v1_generated_AssetService_AnalyzeOrgPolicyGovernedAssets_async", - "title": "AssetService analyzeOrgPolicyGovernedAssets Sample", - "origin": "API_DEFINITION", - "description": " Analyzes organization policies governed assets (Google Cloud resources or policies) under a scope. This RPC supports custom constraints and the following canned constraints: * constraints/ainotebooks.accessMode * constraints/ainotebooks.disableFileDownloads * constraints/ainotebooks.disableRootAccess * constraints/ainotebooks.disableTerminal * constraints/ainotebooks.environmentOptions * constraints/ainotebooks.requireAutoUpgradeSchedule * constraints/ainotebooks.restrictVpcNetworks * constraints/compute.disableGuestAttributesAccess * constraints/compute.disableInstanceDataAccessApis * constraints/compute.disableNestedVirtualization * constraints/compute.disableSerialPortAccess * constraints/compute.disableSerialPortLogging * constraints/compute.disableVpcExternalIpv6 * constraints/compute.requireOsLogin * constraints/compute.requireShieldedVm * constraints/compute.restrictLoadBalancerCreationForTypes * constraints/compute.restrictProtocolForwardingCreationForTypes * constraints/compute.restrictXpnProjectLienRemoval * constraints/compute.setNewProjectDefaultToZonalDNSOnly * constraints/compute.skipDefaultNetworkCreation * constraints/compute.trustedImageProjects * constraints/compute.vmCanIpForward * constraints/compute.vmExternalIpAccess * constraints/gcp.detailedAuditLoggingMode * constraints/gcp.resourceLocations * constraints/iam.allowedPolicyMemberDomains * constraints/iam.automaticIamGrantsForDefaultServiceAccounts * constraints/iam.disableServiceAccountCreation * constraints/iam.disableServiceAccountKeyCreation * constraints/iam.disableServiceAccountKeyUpload * constraints/iam.restrictCrossProjectServiceAccountLienRemoval * constraints/iam.serviceAccountKeyExpiryHours * constraints/resourcemanager.accessBoundaries * constraints/resourcemanager.allowedExportDestinations * constraints/sql.restrictAuthorizedNetworks * constraints/sql.restrictNoncompliantDiagnosticDataAccess * constraints/sql.restrictNoncompliantResourceCreation * constraints/sql.restrictPublicIp * constraints/storage.publicAccessPrevention * constraints/storage.restrictAuthTypes * constraints/storage.uniformBucketLevelAccess This RPC only returns either resources of types [supported by search APIs](https://cloud.google.com/asset-inventory/docs/supported-asset-types) or IAM policies.", - "canonical": true, - "file": "asset_service.analyze_org_policy_governed_assets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 104, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AnalyzeOrgPolicyGovernedAssets", - "fullName": "google.cloud.asset.v1.AssetService.AnalyzeOrgPolicyGovernedAssets", - "async": true, - "parameters": [ - { - "name": "scope", - "type": "TYPE_STRING" - }, - { - "name": "constraint", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse", - "client": { - "shortName": "AssetServiceClient", - "fullName": "google.cloud.asset.v1.AssetServiceClient" - }, - "method": { - "shortName": "AnalyzeOrgPolicyGovernedAssets", - "fullName": "google.cloud.asset.v1.AssetService.AnalyzeOrgPolicyGovernedAssets", - "service": { - "shortName": "AssetService", - "fullName": "google.cloud.asset.v1.AssetService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-asset/samples/generated/v1p1beta1/snippet_metadata_google.cloud.asset.v1p1beta1.json b/packages/google-cloud-asset/samples/generated/v1p1beta1/snippet_metadata_google.cloud.asset.v1p1beta1.json deleted file mode 100644 index e5100b40e516..000000000000 --- a/packages/google-cloud-asset/samples/generated/v1p1beta1/snippet_metadata_google.cloud.asset.v1p1beta1.json +++ /dev/null @@ -1,127 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-asset", - "version": "6.3.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.asset.v1p1beta1", - "version": "v1p1beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "cloudasset_v1p1beta1_generated_AssetService_SearchAllResources_async", - "title": "AssetService searchAllResources Sample", - "origin": "API_DEFINITION", - "description": " Searches all the resources within a given accessible Resource Manager scope (project/folder/organization). This RPC gives callers especially administrators the ability to search all the resources within a scope, even if they don't have `.get` permission of all the resources. Callers should have `cloudasset.assets.searchAllResources` permission on the requested scope, otherwise the request will be rejected.", - "canonical": true, - "file": "asset_service.search_all_resources.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 91, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchAllResources", - "fullName": "google.cloud.asset.v1p1beta1.AssetService.SearchAllResources", - "async": true, - "parameters": [ - { - "name": "scope", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": "TYPE_STRING" - }, - { - "name": "asset_types", - "type": "TYPE_STRING[]" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.asset.v1p1beta1.SearchAllResourcesResponse", - "client": { - "shortName": "AssetServiceClient", - "fullName": "google.cloud.asset.v1p1beta1.AssetServiceClient" - }, - "method": { - "shortName": "SearchAllResources", - "fullName": "google.cloud.asset.v1p1beta1.AssetService.SearchAllResources", - "service": { - "shortName": "AssetService", - "fullName": "google.cloud.asset.v1p1beta1.AssetService" - } - } - } - }, - { - "regionTag": "cloudasset_v1p1beta1_generated_AssetService_SearchAllIamPolicies_async", - "title": "AssetService searchAllIamPolicies Sample", - "origin": "API_DEFINITION", - "description": " Searches all the IAM policies within a given accessible Resource Manager scope (project/folder/organization). This RPC gives callers especially administrators the ability to search all the IAM policies within a scope, even if they don't have `.getIamPolicy` permission of all the IAM policies. Callers should have `cloudasset.assets.searchAllIamPolicies` permission on the requested scope, otherwise the request will be rejected.", - "canonical": true, - "file": "asset_service.search_all_iam_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchAllIamPolicies", - "fullName": "google.cloud.asset.v1p1beta1.AssetService.SearchAllIamPolicies", - "async": true, - "parameters": [ - { - "name": "scope", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.asset.v1p1beta1.SearchAllIamPoliciesResponse", - "client": { - "shortName": "AssetServiceClient", - "fullName": "google.cloud.asset.v1p1beta1.AssetServiceClient" - }, - "method": { - "shortName": "SearchAllIamPolicies", - "fullName": "google.cloud.asset.v1p1beta1.AssetService.SearchAllIamPolicies", - "service": { - "shortName": "AssetService", - "fullName": "google.cloud.asset.v1p1beta1.AssetService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-asset/samples/generated/v1p2beta1/snippet_metadata_google.cloud.asset.v1p2beta1.json b/packages/google-cloud-asset/samples/generated/v1p2beta1/snippet_metadata_google.cloud.asset.v1p2beta1.json deleted file mode 100644 index 38804ef5197c..000000000000 --- a/packages/google-cloud-asset/samples/generated/v1p2beta1/snippet_metadata_google.cloud.asset.v1p2beta1.json +++ /dev/null @@ -1,227 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-asset", - "version": "6.3.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.asset.v1p2beta1", - "version": "v1p2beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "cloudasset_v1p2beta1_generated_AssetService_CreateFeed_async", - "title": "AssetService createFeed Sample", - "origin": "API_DEFINITION", - "description": " Creates a feed in a parent project/folder/organization to listen to its asset updates.", - "canonical": true, - "file": "asset_service.create_feed.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateFeed", - "fullName": "google.cloud.asset.v1p2beta1.AssetService.CreateFeed", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "feed_id", - "type": "TYPE_STRING" - }, - { - "name": "feed", - "type": ".google.cloud.asset.v1p2beta1.Feed" - } - ], - "resultType": ".google.cloud.asset.v1p2beta1.Feed", - "client": { - "shortName": "AssetServiceClient", - "fullName": "google.cloud.asset.v1p2beta1.AssetServiceClient" - }, - "method": { - "shortName": "CreateFeed", - "fullName": "google.cloud.asset.v1p2beta1.AssetService.CreateFeed", - "service": { - "shortName": "AssetService", - "fullName": "google.cloud.asset.v1p2beta1.AssetService" - } - } - } - }, - { - "regionTag": "cloudasset_v1p2beta1_generated_AssetService_GetFeed_async", - "title": "AssetService getFeed Sample", - "origin": "API_DEFINITION", - "description": " Gets details about an asset feed.", - "canonical": true, - "file": "asset_service.get_feed.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFeed", - "fullName": "google.cloud.asset.v1p2beta1.AssetService.GetFeed", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.asset.v1p2beta1.Feed", - "client": { - "shortName": "AssetServiceClient", - "fullName": "google.cloud.asset.v1p2beta1.AssetServiceClient" - }, - "method": { - "shortName": "GetFeed", - "fullName": "google.cloud.asset.v1p2beta1.AssetService.GetFeed", - "service": { - "shortName": "AssetService", - "fullName": "google.cloud.asset.v1p2beta1.AssetService" - } - } - } - }, - { - "regionTag": "cloudasset_v1p2beta1_generated_AssetService_ListFeeds_async", - "title": "AssetService listFeeds Sample", - "origin": "API_DEFINITION", - "description": " Lists all asset feeds in a parent project/folder/organization.", - "canonical": true, - "file": "asset_service.list_feeds.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFeeds", - "fullName": "google.cloud.asset.v1p2beta1.AssetService.ListFeeds", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.asset.v1p2beta1.ListFeedsResponse", - "client": { - "shortName": "AssetServiceClient", - "fullName": "google.cloud.asset.v1p2beta1.AssetServiceClient" - }, - "method": { - "shortName": "ListFeeds", - "fullName": "google.cloud.asset.v1p2beta1.AssetService.ListFeeds", - "service": { - "shortName": "AssetService", - "fullName": "google.cloud.asset.v1p2beta1.AssetService" - } - } - } - }, - { - "regionTag": "cloudasset_v1p2beta1_generated_AssetService_UpdateFeed_async", - "title": "AssetService updateFeed Sample", - "origin": "API_DEFINITION", - "description": " Updates an asset feed configuration.", - "canonical": true, - "file": "asset_service.update_feed.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateFeed", - "fullName": "google.cloud.asset.v1p2beta1.AssetService.UpdateFeed", - "async": true, - "parameters": [ - { - "name": "feed", - "type": ".google.cloud.asset.v1p2beta1.Feed" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.asset.v1p2beta1.Feed", - "client": { - "shortName": "AssetServiceClient", - "fullName": "google.cloud.asset.v1p2beta1.AssetServiceClient" - }, - "method": { - "shortName": "UpdateFeed", - "fullName": "google.cloud.asset.v1p2beta1.AssetService.UpdateFeed", - "service": { - "shortName": "AssetService", - "fullName": "google.cloud.asset.v1p2beta1.AssetService" - } - } - } - }, - { - "regionTag": "cloudasset_v1p2beta1_generated_AssetService_DeleteFeed_async", - "title": "AssetService deleteFeed Sample", - "origin": "API_DEFINITION", - "description": " Deletes an asset feed.", - "canonical": true, - "file": "asset_service.delete_feed.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteFeed", - "fullName": "google.cloud.asset.v1p2beta1.AssetService.DeleteFeed", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AssetServiceClient", - "fullName": "google.cloud.asset.v1p2beta1.AssetServiceClient" - }, - "method": { - "shortName": "DeleteFeed", - "fullName": "google.cloud.asset.v1p2beta1.AssetService.DeleteFeed", - "service": { - "shortName": "AssetService", - "fullName": "google.cloud.asset.v1p2beta1.AssetService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-asset/samples/generated/v1p5beta1/snippet_metadata_google.cloud.asset.v1p5beta1.json b/packages/google-cloud-asset/samples/generated/v1p5beta1/snippet_metadata_google.cloud.asset.v1p5beta1.json deleted file mode 100644 index 74dc44c14f24..000000000000 --- a/packages/google-cloud-asset/samples/generated/v1p5beta1/snippet_metadata_google.cloud.asset.v1p5beta1.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-asset", - "version": "6.3.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.asset.v1p5beta1", - "version": "v1p5beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "cloudasset_v1p5beta1_generated_AssetService_ListAssets_async", - "title": "AssetService listAssets Sample", - "origin": "API_DEFINITION", - "description": " Lists assets with time and resource types and returns paged results in response.", - "canonical": true, - "file": "asset_service.list_assets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 99, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAssets", - "fullName": "google.cloud.asset.v1p5beta1.AssetService.ListAssets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "read_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "asset_types", - "type": "TYPE_STRING[]" - }, - { - "name": "content_type", - "type": ".google.cloud.asset.v1p5beta1.ContentType" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.asset.v1p5beta1.ListAssetsResponse", - "client": { - "shortName": "AssetServiceClient", - "fullName": "google.cloud.asset.v1p5beta1.AssetServiceClient" - }, - "method": { - "shortName": "ListAssets", - "fullName": "google.cloud.asset.v1p5beta1.AssetService.ListAssets", - "service": { - "shortName": "AssetService", - "fullName": "google.cloud.asset.v1p5beta1.AssetService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-asset/samples/generated/v1p7beta1/snippet_metadata_google.cloud.asset.v1p7beta1.json b/packages/google-cloud-asset/samples/generated/v1p7beta1/snippet_metadata_google.cloud.asset.v1p7beta1.json deleted file mode 100644 index 05e8c2a8d11c..000000000000 --- a/packages/google-cloud-asset/samples/generated/v1p7beta1/snippet_metadata_google.cloud.asset.v1p7beta1.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-asset", - "version": "6.3.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.asset.v1p7beta1", - "version": "v1p7beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "cloudasset_v1p7beta1_generated_AssetService_ExportAssets_async", - "title": "AssetService exportAssets Sample", - "origin": "API_DEFINITION", - "description": " Exports assets with time and resource types to a given Cloud Storage location/BigQuery table. For Cloud Storage location destinations, the output format is newline-delimited JSON. Each line represents a [google.cloud.asset.v1p7beta1.Asset][google.cloud.asset.v1p7beta1.Asset] in the JSON format; for BigQuery table destinations, the output table stores the fields in asset proto as columns. This API implements the [google.longrunning.Operation][google.longrunning.Operation] API , which allows you to keep track of the export. We recommend intervals of at least 2 seconds with exponential retry to poll the export operation result. For regular-size resource parent, the export operation usually finishes within 5 minutes.", - "canonical": true, - "file": "asset_service.export_assets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 106, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportAssets", - "fullName": "google.cloud.asset.v1p7beta1.AssetService.ExportAssets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "read_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "asset_types", - "type": "TYPE_STRING[]" - }, - { - "name": "content_type", - "type": ".google.cloud.asset.v1p7beta1.ContentType" - }, - { - "name": "output_config", - "type": ".google.cloud.asset.v1p7beta1.OutputConfig" - }, - { - "name": "relationship_types", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AssetServiceClient", - "fullName": "google.cloud.asset.v1p7beta1.AssetServiceClient" - }, - "method": { - "shortName": "ExportAssets", - "fullName": "google.cloud.asset.v1p7beta1.AssetService.ExportAssets", - "service": { - "shortName": "AssetService", - "fullName": "google.cloud.asset.v1p7beta1.AssetService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-assuredworkloads/samples/generated/v1/snippet_metadata_google.cloud.assuredworkloads.v1.json b/packages/google-cloud-assuredworkloads/samples/generated/v1/snippet_metadata_google.cloud.assuredworkloads.v1.json deleted file mode 100644 index fa1e1a4a9763..000000000000 --- a/packages/google-cloud-assuredworkloads/samples/generated/v1/snippet_metadata_google.cloud.assuredworkloads.v1.json +++ /dev/null @@ -1,431 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-assuredworkloads", - "version": "5.1.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.assuredworkloads.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "assuredworkloads_v1_generated_AssuredWorkloadsService_CreateWorkload_async", - "title": "AssuredWorkloadsService createWorkload Sample", - "origin": "API_DEFINITION", - "description": " Creates Assured Workload.", - "canonical": true, - "file": "assured_workloads_service.create_workload.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateWorkload", - "fullName": "google.cloud.assuredworkloads.v1.AssuredWorkloadsService.CreateWorkload", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "workload", - "type": ".google.cloud.assuredworkloads.v1.Workload" - }, - { - "name": "external_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AssuredWorkloadsServiceClient", - "fullName": "google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceClient" - }, - "method": { - "shortName": "CreateWorkload", - "fullName": "google.cloud.assuredworkloads.v1.AssuredWorkloadsService.CreateWorkload", - "service": { - "shortName": "AssuredWorkloadsService", - "fullName": "google.cloud.assuredworkloads.v1.AssuredWorkloadsService" - } - } - } - }, - { - "regionTag": "assuredworkloads_v1_generated_AssuredWorkloadsService_UpdateWorkload_async", - "title": "AssuredWorkloadsService updateWorkload Sample", - "origin": "API_DEFINITION", - "description": " Updates an existing workload. Currently allows updating of workload display_name and labels. For force updates don't set etag field in the Workload. Only one update operation per workload can be in progress.", - "canonical": true, - "file": "assured_workloads_service.update_workload.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateWorkload", - "fullName": "google.cloud.assuredworkloads.v1.AssuredWorkloadsService.UpdateWorkload", - "async": true, - "parameters": [ - { - "name": "workload", - "type": ".google.cloud.assuredworkloads.v1.Workload" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.assuredworkloads.v1.Workload", - "client": { - "shortName": "AssuredWorkloadsServiceClient", - "fullName": "google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceClient" - }, - "method": { - "shortName": "UpdateWorkload", - "fullName": "google.cloud.assuredworkloads.v1.AssuredWorkloadsService.UpdateWorkload", - "service": { - "shortName": "AssuredWorkloadsService", - "fullName": "google.cloud.assuredworkloads.v1.AssuredWorkloadsService" - } - } - } - }, - { - "regionTag": "assuredworkloads_v1_generated_AssuredWorkloadsService_RestrictAllowedResources_async", - "title": "AssuredWorkloadsService restrictAllowedResources Sample", - "origin": "API_DEFINITION", - "description": " Restrict the list of resources allowed in the Workload environment. The current list of allowed products can be found at https://cloud.google.com/assured-workloads/docs/supported-products In addition to assuredworkloads.workload.update permission, the user should also have orgpolicy.policy.set permission on the folder resource to use this functionality.", - "canonical": true, - "file": "assured_workloads_service.restrict_allowed_resources.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RestrictAllowedResources", - "fullName": "google.cloud.assuredworkloads.v1.AssuredWorkloadsService.RestrictAllowedResources", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "restriction_type", - "type": ".google.cloud.assuredworkloads.v1.RestrictAllowedResourcesRequest.RestrictionType" - } - ], - "resultType": ".google.cloud.assuredworkloads.v1.RestrictAllowedResourcesResponse", - "client": { - "shortName": "AssuredWorkloadsServiceClient", - "fullName": "google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceClient" - }, - "method": { - "shortName": "RestrictAllowedResources", - "fullName": "google.cloud.assuredworkloads.v1.AssuredWorkloadsService.RestrictAllowedResources", - "service": { - "shortName": "AssuredWorkloadsService", - "fullName": "google.cloud.assuredworkloads.v1.AssuredWorkloadsService" - } - } - } - }, - { - "regionTag": "assuredworkloads_v1_generated_AssuredWorkloadsService_DeleteWorkload_async", - "title": "AssuredWorkloadsService deleteWorkload Sample", - "origin": "API_DEFINITION", - "description": " Deletes the workload. Make sure that workload's direct children are already in a deleted state, otherwise the request will fail with a FAILED_PRECONDITION error.", - "canonical": true, - "file": "assured_workloads_service.delete_workload.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteWorkload", - "fullName": "google.cloud.assuredworkloads.v1.AssuredWorkloadsService.DeleteWorkload", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AssuredWorkloadsServiceClient", - "fullName": "google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceClient" - }, - "method": { - "shortName": "DeleteWorkload", - "fullName": "google.cloud.assuredworkloads.v1.AssuredWorkloadsService.DeleteWorkload", - "service": { - "shortName": "AssuredWorkloadsService", - "fullName": "google.cloud.assuredworkloads.v1.AssuredWorkloadsService" - } - } - } - }, - { - "regionTag": "assuredworkloads_v1_generated_AssuredWorkloadsService_GetWorkload_async", - "title": "AssuredWorkloadsService getWorkload Sample", - "origin": "API_DEFINITION", - "description": " Gets Assured Workload associated with a CRM Node", - "canonical": true, - "file": "assured_workloads_service.get_workload.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetWorkload", - "fullName": "google.cloud.assuredworkloads.v1.AssuredWorkloadsService.GetWorkload", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.assuredworkloads.v1.Workload", - "client": { - "shortName": "AssuredWorkloadsServiceClient", - "fullName": "google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceClient" - }, - "method": { - "shortName": "GetWorkload", - "fullName": "google.cloud.assuredworkloads.v1.AssuredWorkloadsService.GetWorkload", - "service": { - "shortName": "AssuredWorkloadsService", - "fullName": "google.cloud.assuredworkloads.v1.AssuredWorkloadsService" - } - } - } - }, - { - "regionTag": "assuredworkloads_v1_generated_AssuredWorkloadsService_ListWorkloads_async", - "title": "AssuredWorkloadsService listWorkloads Sample", - "origin": "API_DEFINITION", - "description": " Lists Assured Workloads under a CRM Node.", - "canonical": true, - "file": "assured_workloads_service.list_workloads.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListWorkloads", - "fullName": "google.cloud.assuredworkloads.v1.AssuredWorkloadsService.ListWorkloads", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.assuredworkloads.v1.ListWorkloadsResponse", - "client": { - "shortName": "AssuredWorkloadsServiceClient", - "fullName": "google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceClient" - }, - "method": { - "shortName": "ListWorkloads", - "fullName": "google.cloud.assuredworkloads.v1.AssuredWorkloadsService.ListWorkloads", - "service": { - "shortName": "AssuredWorkloadsService", - "fullName": "google.cloud.assuredworkloads.v1.AssuredWorkloadsService" - } - } - } - }, - { - "regionTag": "assuredworkloads_v1_generated_AssuredWorkloadsService_ListViolations_async", - "title": "AssuredWorkloadsService listViolations Sample", - "origin": "API_DEFINITION", - "description": " Lists the Violations in the AssuredWorkload Environment. Callers may also choose to read across multiple Workloads as per [AIP-159](https://google.aip.dev/159) by using '-' (the hyphen or dash character) as a wildcard character instead of workload-id in the parent. Format `organizations/{org_id}/locations/{location}/workloads/-`", - "canonical": true, - "file": "assured_workloads_service.list_violations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListViolations", - "fullName": "google.cloud.assuredworkloads.v1.AssuredWorkloadsService.ListViolations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "interval", - "type": ".google.cloud.assuredworkloads.v1.TimeWindow" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.assuredworkloads.v1.ListViolationsResponse", - "client": { - "shortName": "AssuredWorkloadsServiceClient", - "fullName": "google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceClient" - }, - "method": { - "shortName": "ListViolations", - "fullName": "google.cloud.assuredworkloads.v1.AssuredWorkloadsService.ListViolations", - "service": { - "shortName": "AssuredWorkloadsService", - "fullName": "google.cloud.assuredworkloads.v1.AssuredWorkloadsService" - } - } - } - }, - { - "regionTag": "assuredworkloads_v1_generated_AssuredWorkloadsService_GetViolation_async", - "title": "AssuredWorkloadsService getViolation Sample", - "origin": "API_DEFINITION", - "description": " Retrieves Assured Workload Violation based on ID.", - "canonical": true, - "file": "assured_workloads_service.get_violation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetViolation", - "fullName": "google.cloud.assuredworkloads.v1.AssuredWorkloadsService.GetViolation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.assuredworkloads.v1.Violation", - "client": { - "shortName": "AssuredWorkloadsServiceClient", - "fullName": "google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceClient" - }, - "method": { - "shortName": "GetViolation", - "fullName": "google.cloud.assuredworkloads.v1.AssuredWorkloadsService.GetViolation", - "service": { - "shortName": "AssuredWorkloadsService", - "fullName": "google.cloud.assuredworkloads.v1.AssuredWorkloadsService" - } - } - } - }, - { - "regionTag": "assuredworkloads_v1_generated_AssuredWorkloadsService_AcknowledgeViolation_async", - "title": "AssuredWorkloadsService acknowledgeViolation Sample", - "origin": "API_DEFINITION", - "description": " Acknowledges an existing violation. By acknowledging a violation, users acknowledge the existence of a compliance violation in their workload and decide to ignore it due to a valid business justification. Acknowledgement is a permanent operation and it cannot be reverted.", - "canonical": true, - "file": "assured_workloads_service.acknowledge_violation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AcknowledgeViolation", - "fullName": "google.cloud.assuredworkloads.v1.AssuredWorkloadsService.AcknowledgeViolation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "comment", - "type": "TYPE_STRING" - }, - { - "name": "non_compliant_org_policy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.assuredworkloads.v1.AcknowledgeViolationResponse", - "client": { - "shortName": "AssuredWorkloadsServiceClient", - "fullName": "google.cloud.assuredworkloads.v1.AssuredWorkloadsServiceClient" - }, - "method": { - "shortName": "AcknowledgeViolation", - "fullName": "google.cloud.assuredworkloads.v1.AssuredWorkloadsService.AcknowledgeViolation", - "service": { - "shortName": "AssuredWorkloadsService", - "fullName": "google.cloud.assuredworkloads.v1.AssuredWorkloadsService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-assuredworkloads/samples/generated/v1beta1/snippet_metadata_google.cloud.assuredworkloads.v1beta1.json b/packages/google-cloud-assuredworkloads/samples/generated/v1beta1/snippet_metadata_google.cloud.assuredworkloads.v1beta1.json deleted file mode 100644 index 50a6b8e85ab9..000000000000 --- a/packages/google-cloud-assuredworkloads/samples/generated/v1beta1/snippet_metadata_google.cloud.assuredworkloads.v1beta1.json +++ /dev/null @@ -1,335 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-assuredworkloads", - "version": "5.1.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.assuredworkloads.v1beta1", - "version": "v1beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "assuredworkloads_v1beta1_generated_AssuredWorkloadsService_CreateWorkload_async", - "title": "AssuredWorkloadsService createWorkload Sample", - "origin": "API_DEFINITION", - "description": " Creates Assured Workload.", - "canonical": true, - "file": "assured_workloads_service.create_workload.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateWorkload", - "fullName": "google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsService.CreateWorkload", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "workload", - "type": ".google.cloud.assuredworkloads.v1beta1.Workload" - }, - { - "name": "external_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AssuredWorkloadsServiceClient", - "fullName": "google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient" - }, - "method": { - "shortName": "CreateWorkload", - "fullName": "google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsService.CreateWorkload", - "service": { - "shortName": "AssuredWorkloadsService", - "fullName": "google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsService" - } - } - } - }, - { - "regionTag": "assuredworkloads_v1beta1_generated_AssuredWorkloadsService_UpdateWorkload_async", - "title": "AssuredWorkloadsService updateWorkload Sample", - "origin": "API_DEFINITION", - "description": " Updates an existing workload. Currently allows updating of workload display_name and labels. For force updates don't set etag field in the Workload. Only one update operation per workload can be in progress.", - "canonical": true, - "file": "assured_workloads_service.update_workload.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateWorkload", - "fullName": "google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsService.UpdateWorkload", - "async": true, - "parameters": [ - { - "name": "workload", - "type": ".google.cloud.assuredworkloads.v1beta1.Workload" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.assuredworkloads.v1beta1.Workload", - "client": { - "shortName": "AssuredWorkloadsServiceClient", - "fullName": "google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient" - }, - "method": { - "shortName": "UpdateWorkload", - "fullName": "google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsService.UpdateWorkload", - "service": { - "shortName": "AssuredWorkloadsService", - "fullName": "google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsService" - } - } - } - }, - { - "regionTag": "assuredworkloads_v1beta1_generated_AssuredWorkloadsService_RestrictAllowedResources_async", - "title": "AssuredWorkloadsService restrictAllowedResources Sample", - "origin": "API_DEFINITION", - "description": " Restrict the list of resources allowed in the Workload environment. The current list of allowed products can be found at https://cloud.google.com/assured-workloads/docs/supported-products In addition to assuredworkloads.workload.update permission, the user should also have orgpolicy.policy.set permission on the folder resource to use this functionality.", - "canonical": true, - "file": "assured_workloads_service.restrict_allowed_resources.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RestrictAllowedResources", - "fullName": "google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsService.RestrictAllowedResources", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "restriction_type", - "type": ".google.cloud.assuredworkloads.v1beta1.RestrictAllowedResourcesRequest.RestrictionType" - } - ], - "resultType": ".google.cloud.assuredworkloads.v1beta1.RestrictAllowedResourcesResponse", - "client": { - "shortName": "AssuredWorkloadsServiceClient", - "fullName": "google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient" - }, - "method": { - "shortName": "RestrictAllowedResources", - "fullName": "google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsService.RestrictAllowedResources", - "service": { - "shortName": "AssuredWorkloadsService", - "fullName": "google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsService" - } - } - } - }, - { - "regionTag": "assuredworkloads_v1beta1_generated_AssuredWorkloadsService_DeleteWorkload_async", - "title": "AssuredWorkloadsService deleteWorkload Sample", - "origin": "API_DEFINITION", - "description": " Deletes the workload. Make sure that workload's direct children are already in a deleted state, otherwise the request will fail with a FAILED_PRECONDITION error. In addition to assuredworkloads.workload.delete permission, the user should also have orgpolicy.policy.set permission on the deleted folder to remove Assured Workloads OrgPolicies.", - "canonical": true, - "file": "assured_workloads_service.delete_workload.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteWorkload", - "fullName": "google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsService.DeleteWorkload", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AssuredWorkloadsServiceClient", - "fullName": "google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient" - }, - "method": { - "shortName": "DeleteWorkload", - "fullName": "google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsService.DeleteWorkload", - "service": { - "shortName": "AssuredWorkloadsService", - "fullName": "google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsService" - } - } - } - }, - { - "regionTag": "assuredworkloads_v1beta1_generated_AssuredWorkloadsService_GetWorkload_async", - "title": "AssuredWorkloadsService getWorkload Sample", - "origin": "API_DEFINITION", - "description": " Gets Assured Workload associated with a CRM Node", - "canonical": true, - "file": "assured_workloads_service.get_workload.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetWorkload", - "fullName": "google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsService.GetWorkload", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.assuredworkloads.v1beta1.Workload", - "client": { - "shortName": "AssuredWorkloadsServiceClient", - "fullName": "google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient" - }, - "method": { - "shortName": "GetWorkload", - "fullName": "google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsService.GetWorkload", - "service": { - "shortName": "AssuredWorkloadsService", - "fullName": "google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsService" - } - } - } - }, - { - "regionTag": "assuredworkloads_v1beta1_generated_AssuredWorkloadsService_AnalyzeWorkloadMove_async", - "title": "AssuredWorkloadsService analyzeWorkloadMove Sample", - "origin": "API_DEFINITION", - "description": " Analyze if the source Assured Workloads can be moved to the target Assured Workload", - "canonical": true, - "file": "assured_workloads_service.analyze_workload_move.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AnalyzeWorkloadMove", - "fullName": "google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsService.AnalyzeWorkloadMove", - "async": true, - "parameters": [ - { - "name": "source", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "target", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.assuredworkloads.v1beta1.AnalyzeWorkloadMoveResponse", - "client": { - "shortName": "AssuredWorkloadsServiceClient", - "fullName": "google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient" - }, - "method": { - "shortName": "AnalyzeWorkloadMove", - "fullName": "google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsService.AnalyzeWorkloadMove", - "service": { - "shortName": "AssuredWorkloadsService", - "fullName": "google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsService" - } - } - } - }, - { - "regionTag": "assuredworkloads_v1beta1_generated_AssuredWorkloadsService_ListWorkloads_async", - "title": "AssuredWorkloadsService listWorkloads Sample", - "origin": "API_DEFINITION", - "description": " Lists Assured Workloads under a CRM Node.", - "canonical": true, - "file": "assured_workloads_service.list_workloads.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListWorkloads", - "fullName": "google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsService.ListWorkloads", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse", - "client": { - "shortName": "AssuredWorkloadsServiceClient", - "fullName": "google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient" - }, - "method": { - "shortName": "ListWorkloads", - "fullName": "google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsService.ListWorkloads", - "service": { - "shortName": "AssuredWorkloadsService", - "fullName": "google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-auditmanager/samples/generated/v1/snippet_metadata_google.cloud.auditmanager.v1.json b/packages/google-cloud-auditmanager/samples/generated/v1/snippet_metadata_google.cloud.auditmanager.v1.json deleted file mode 100644 index 985f2e9bddb6..000000000000 --- a/packages/google-cloud-auditmanager/samples/generated/v1/snippet_metadata_google.cloud.auditmanager.v1.json +++ /dev/null @@ -1,391 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-auditmanager", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.auditmanager.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "auditmanager_v1_generated_AuditManager_EnrollResource_async", - "title": "AuditManager enrollResource Sample", - "origin": "API_DEFINITION", - "description": " Enrolls the customer resource(folder/project/organization) to the audit manager service by creating the audit managers Service Agent in customers workload and granting required permissions to the Service Agent. Please note that if enrollment request is made on the already enrolled workload then enrollment is executed overriding the existing set of destinations.", - "canonical": true, - "file": "audit_manager.enroll_resource.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "EnrollResource", - "fullName": "google.cloud.auditmanager.v1.AuditManager.EnrollResource", - "async": true, - "parameters": [ - { - "name": "scope", - "type": "TYPE_STRING" - }, - { - "name": "destinations", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.auditmanager.v1.Enrollment", - "client": { - "shortName": "AuditManagerClient", - "fullName": "google.cloud.auditmanager.v1.AuditManagerClient" - }, - "method": { - "shortName": "EnrollResource", - "fullName": "google.cloud.auditmanager.v1.AuditManager.EnrollResource", - "service": { - "shortName": "AuditManager", - "fullName": "google.cloud.auditmanager.v1.AuditManager" - } - } - } - }, - { - "regionTag": "auditmanager_v1_generated_AuditManager_GenerateAuditScopeReport_async", - "title": "AuditManager generateAuditScopeReport Sample", - "origin": "API_DEFINITION", - "description": " Generates a demo report highlighting different responsibilities (Google/Customer/ shared) required to be fulfilled for the customer's workload to be compliant with the given standard.", - "canonical": true, - "file": "audit_manager.generate_audit_scope_report.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateAuditScopeReport", - "fullName": "google.cloud.auditmanager.v1.AuditManager.GenerateAuditScopeReport", - "async": true, - "parameters": [ - { - "name": "scope", - "type": "TYPE_STRING" - }, - { - "name": "compliance_standard", - "type": "TYPE_STRING" - }, - { - "name": "report_format", - "type": ".google.cloud.auditmanager.v1.GenerateAuditScopeReportRequest.AuditScopeReportFormat" - }, - { - "name": "compliance_framework", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.auditmanager.v1.AuditScopeReport", - "client": { - "shortName": "AuditManagerClient", - "fullName": "google.cloud.auditmanager.v1.AuditManagerClient" - }, - "method": { - "shortName": "GenerateAuditScopeReport", - "fullName": "google.cloud.auditmanager.v1.AuditManager.GenerateAuditScopeReport", - "service": { - "shortName": "AuditManager", - "fullName": "google.cloud.auditmanager.v1.AuditManager" - } - } - } - }, - { - "regionTag": "auditmanager_v1_generated_AuditManager_GenerateAuditReport_async", - "title": "AuditManager generateAuditReport Sample", - "origin": "API_DEFINITION", - "description": " Register the Audit Report generation requests and returns the OperationId using which the customer can track the report generation progress.", - "canonical": true, - "file": "audit_manager.generate_audit_report.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateAuditReport", - "fullName": "google.cloud.auditmanager.v1.AuditManager.GenerateAuditReport", - "async": true, - "parameters": [ - { - "name": "gcs_uri", - "type": "TYPE_STRING" - }, - { - "name": "scope", - "type": "TYPE_STRING" - }, - { - "name": "compliance_standard", - "type": "TYPE_STRING" - }, - { - "name": "report_format", - "type": ".google.cloud.auditmanager.v1.GenerateAuditReportRequest.AuditReportFormat" - }, - { - "name": "compliance_framework", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AuditManagerClient", - "fullName": "google.cloud.auditmanager.v1.AuditManagerClient" - }, - "method": { - "shortName": "GenerateAuditReport", - "fullName": "google.cloud.auditmanager.v1.AuditManager.GenerateAuditReport", - "service": { - "shortName": "AuditManager", - "fullName": "google.cloud.auditmanager.v1.AuditManager" - } - } - } - }, - { - "regionTag": "auditmanager_v1_generated_AuditManager_ListAuditReports_async", - "title": "AuditManager listAuditReports Sample", - "origin": "API_DEFINITION", - "description": " Lists audit reports in the selected parent scope", - "canonical": true, - "file": "audit_manager.list_audit_reports.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAuditReports", - "fullName": "google.cloud.auditmanager.v1.AuditManager.ListAuditReports", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.auditmanager.v1.ListAuditReportsResponse", - "client": { - "shortName": "AuditManagerClient", - "fullName": "google.cloud.auditmanager.v1.AuditManagerClient" - }, - "method": { - "shortName": "ListAuditReports", - "fullName": "google.cloud.auditmanager.v1.AuditManager.ListAuditReports", - "service": { - "shortName": "AuditManager", - "fullName": "google.cloud.auditmanager.v1.AuditManager" - } - } - } - }, - { - "regionTag": "auditmanager_v1_generated_AuditManager_GetAuditReport_async", - "title": "AuditManager getAuditReport Sample", - "origin": "API_DEFINITION", - "description": " Get the overall audit report", - "canonical": true, - "file": "audit_manager.get_audit_report.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAuditReport", - "fullName": "google.cloud.auditmanager.v1.AuditManager.GetAuditReport", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.auditmanager.v1.AuditReport", - "client": { - "shortName": "AuditManagerClient", - "fullName": "google.cloud.auditmanager.v1.AuditManagerClient" - }, - "method": { - "shortName": "GetAuditReport", - "fullName": "google.cloud.auditmanager.v1.AuditManager.GetAuditReport", - "service": { - "shortName": "AuditManager", - "fullName": "google.cloud.auditmanager.v1.AuditManager" - } - } - } - }, - { - "regionTag": "auditmanager_v1_generated_AuditManager_GetResourceEnrollmentStatus_async", - "title": "AuditManager getResourceEnrollmentStatus Sample", - "origin": "API_DEFINITION", - "description": " Get a resource along with its enrollment status.", - "canonical": true, - "file": "audit_manager.get_resource_enrollment_status.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetResourceEnrollmentStatus", - "fullName": "google.cloud.auditmanager.v1.AuditManager.GetResourceEnrollmentStatus", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.auditmanager.v1.ResourceEnrollmentStatus", - "client": { - "shortName": "AuditManagerClient", - "fullName": "google.cloud.auditmanager.v1.AuditManagerClient" - }, - "method": { - "shortName": "GetResourceEnrollmentStatus", - "fullName": "google.cloud.auditmanager.v1.AuditManager.GetResourceEnrollmentStatus", - "service": { - "shortName": "AuditManager", - "fullName": "google.cloud.auditmanager.v1.AuditManager" - } - } - } - }, - { - "regionTag": "auditmanager_v1_generated_AuditManager_ListResourceEnrollmentStatuses_async", - "title": "AuditManager listResourceEnrollmentStatuses Sample", - "origin": "API_DEFINITION", - "description": " Fetches all resources under the parent along with their enrollment.", - "canonical": true, - "file": "audit_manager.list_resource_enrollment_statuses.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListResourceEnrollmentStatuses", - "fullName": "google.cloud.auditmanager.v1.AuditManager.ListResourceEnrollmentStatuses", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.auditmanager.v1.ListResourceEnrollmentStatusesResponse", - "client": { - "shortName": "AuditManagerClient", - "fullName": "google.cloud.auditmanager.v1.AuditManagerClient" - }, - "method": { - "shortName": "ListResourceEnrollmentStatuses", - "fullName": "google.cloud.auditmanager.v1.AuditManager.ListResourceEnrollmentStatuses", - "service": { - "shortName": "AuditManager", - "fullName": "google.cloud.auditmanager.v1.AuditManager" - } - } - } - }, - { - "regionTag": "auditmanager_v1_generated_AuditManager_ListControls_async", - "title": "AuditManager listControls Sample", - "origin": "API_DEFINITION", - "description": " Gets controls needed to be implemented to be compliant to a standard.", - "canonical": true, - "file": "audit_manager.list_controls.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListControls", - "fullName": "google.cloud.auditmanager.v1.AuditManager.ListControls", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.auditmanager.v1.ListControlsResponse", - "client": { - "shortName": "AuditManagerClient", - "fullName": "google.cloud.auditmanager.v1.AuditManagerClient" - }, - "method": { - "shortName": "ListControls", - "fullName": "google.cloud.auditmanager.v1.AuditManager.ListControls", - "service": { - "shortName": "AuditManager", - "fullName": "google.cloud.auditmanager.v1.AuditManager" - } - } - } - } - ] -} diff --git a/packages/google-cloud-automl/samples/generated/v1/snippet_metadata_google.cloud.automl.v1.json b/packages/google-cloud-automl/samples/generated/v1/snippet_metadata_google.cloud.automl.v1.json deleted file mode 100644 index dce196a88cae..000000000000 --- a/packages/google-cloud-automl/samples/generated/v1/snippet_metadata_google.cloud.automl.v1.json +++ /dev/null @@ -1,907 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-automl", - "version": "5.1.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.automl.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "automl_v1_generated_AutoMl_CreateDataset_async", - "title": "automl createDataset Sample", - "origin": "API_DEFINITION", - "description": " Creates a dataset.", - "canonical": true, - "file": "auto_ml.create_dataset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDataset", - "fullName": "google.cloud.automl.v1.AutoMl.CreateDataset", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "dataset", - "type": ".google.cloud.automl.v1.Dataset" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AutoMlClient", - "fullName": "google.cloud.automl.v1.AutoMlClient" - }, - "method": { - "shortName": "CreateDataset", - "fullName": "google.cloud.automl.v1.AutoMl.CreateDataset", - "service": { - "shortName": "AutoMl", - "fullName": "google.cloud.automl.v1.AutoMl" - } - } - } - }, - { - "regionTag": "automl_v1_generated_AutoMl_GetDataset_async", - "title": "automl getDataset Sample", - "origin": "API_DEFINITION", - "description": " Gets a dataset.", - "canonical": true, - "file": "auto_ml.get_dataset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDataset", - "fullName": "google.cloud.automl.v1.AutoMl.GetDataset", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.automl.v1.Dataset", - "client": { - "shortName": "AutoMlClient", - "fullName": "google.cloud.automl.v1.AutoMlClient" - }, - "method": { - "shortName": "GetDataset", - "fullName": "google.cloud.automl.v1.AutoMl.GetDataset", - "service": { - "shortName": "AutoMl", - "fullName": "google.cloud.automl.v1.AutoMl" - } - } - } - }, - { - "regionTag": "automl_v1_generated_AutoMl_ListDatasets_async", - "title": "automl listDatasets Sample", - "origin": "API_DEFINITION", - "description": " Lists datasets in a project.", - "canonical": true, - "file": "auto_ml.list_datasets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDatasets", - "fullName": "google.cloud.automl.v1.AutoMl.ListDatasets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.automl.v1.ListDatasetsResponse", - "client": { - "shortName": "AutoMlClient", - "fullName": "google.cloud.automl.v1.AutoMlClient" - }, - "method": { - "shortName": "ListDatasets", - "fullName": "google.cloud.automl.v1.AutoMl.ListDatasets", - "service": { - "shortName": "AutoMl", - "fullName": "google.cloud.automl.v1.AutoMl" - } - } - } - }, - { - "regionTag": "automl_v1_generated_AutoMl_UpdateDataset_async", - "title": "automl updateDataset Sample", - "origin": "API_DEFINITION", - "description": " Updates a dataset.", - "canonical": true, - "file": "auto_ml.update_dataset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDataset", - "fullName": "google.cloud.automl.v1.AutoMl.UpdateDataset", - "async": true, - "parameters": [ - { - "name": "dataset", - "type": ".google.cloud.automl.v1.Dataset" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.automl.v1.Dataset", - "client": { - "shortName": "AutoMlClient", - "fullName": "google.cloud.automl.v1.AutoMlClient" - }, - "method": { - "shortName": "UpdateDataset", - "fullName": "google.cloud.automl.v1.AutoMl.UpdateDataset", - "service": { - "shortName": "AutoMl", - "fullName": "google.cloud.automl.v1.AutoMl" - } - } - } - }, - { - "regionTag": "automl_v1_generated_AutoMl_DeleteDataset_async", - "title": "automl deleteDataset Sample", - "origin": "API_DEFINITION", - "description": " Deletes a dataset and all of its contents. Returns empty response in the [response][google.longrunning.Operation.response] field when it completes, and `delete_details` in the [metadata][google.longrunning.Operation.metadata] field.", - "canonical": true, - "file": "auto_ml.delete_dataset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDataset", - "fullName": "google.cloud.automl.v1.AutoMl.DeleteDataset", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AutoMlClient", - "fullName": "google.cloud.automl.v1.AutoMlClient" - }, - "method": { - "shortName": "DeleteDataset", - "fullName": "google.cloud.automl.v1.AutoMl.DeleteDataset", - "service": { - "shortName": "AutoMl", - "fullName": "google.cloud.automl.v1.AutoMl" - } - } - } - }, - { - "regionTag": "automl_v1_generated_AutoMl_ImportData_async", - "title": "automl importData Sample", - "origin": "API_DEFINITION", - "description": " Imports data into a dataset. For Tables this method can only be called on an empty Dataset. For Tables: * A [schema_inference_version][google.cloud.automl.v1.InputConfig.params] parameter must be explicitly set. Returns an empty response in the [response][google.longrunning.Operation.response] field when it completes.", - "canonical": true, - "file": "auto_ml.import_data.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportData", - "fullName": "google.cloud.automl.v1.AutoMl.ImportData", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "input_config", - "type": ".google.cloud.automl.v1.InputConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AutoMlClient", - "fullName": "google.cloud.automl.v1.AutoMlClient" - }, - "method": { - "shortName": "ImportData", - "fullName": "google.cloud.automl.v1.AutoMl.ImportData", - "service": { - "shortName": "AutoMl", - "fullName": "google.cloud.automl.v1.AutoMl" - } - } - } - }, - { - "regionTag": "automl_v1_generated_AutoMl_ExportData_async", - "title": "automl exportData Sample", - "origin": "API_DEFINITION", - "description": " Exports dataset's data to the provided output location. Returns an empty response in the [response][google.longrunning.Operation.response] field when it completes.", - "canonical": true, - "file": "auto_ml.export_data.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportData", - "fullName": "google.cloud.automl.v1.AutoMl.ExportData", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "output_config", - "type": ".google.cloud.automl.v1.OutputConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AutoMlClient", - "fullName": "google.cloud.automl.v1.AutoMlClient" - }, - "method": { - "shortName": "ExportData", - "fullName": "google.cloud.automl.v1.AutoMl.ExportData", - "service": { - "shortName": "AutoMl", - "fullName": "google.cloud.automl.v1.AutoMl" - } - } - } - }, - { - "regionTag": "automl_v1_generated_AutoMl_GetAnnotationSpec_async", - "title": "automl getAnnotationSpec Sample", - "origin": "API_DEFINITION", - "description": " Gets an annotation spec.", - "canonical": true, - "file": "auto_ml.get_annotation_spec.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAnnotationSpec", - "fullName": "google.cloud.automl.v1.AutoMl.GetAnnotationSpec", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.automl.v1.AnnotationSpec", - "client": { - "shortName": "AutoMlClient", - "fullName": "google.cloud.automl.v1.AutoMlClient" - }, - "method": { - "shortName": "GetAnnotationSpec", - "fullName": "google.cloud.automl.v1.AutoMl.GetAnnotationSpec", - "service": { - "shortName": "AutoMl", - "fullName": "google.cloud.automl.v1.AutoMl" - } - } - } - }, - { - "regionTag": "automl_v1_generated_AutoMl_CreateModel_async", - "title": "automl createModel Sample", - "origin": "API_DEFINITION", - "description": " Creates a model. Returns a Model in the [response][google.longrunning.Operation.response] field when it completes. When you create a model, several model evaluations are created for it: a global evaluation, and one evaluation for each annotation spec.", - "canonical": true, - "file": "auto_ml.create_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateModel", - "fullName": "google.cloud.automl.v1.AutoMl.CreateModel", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "model", - "type": ".google.cloud.automl.v1.Model" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AutoMlClient", - "fullName": "google.cloud.automl.v1.AutoMlClient" - }, - "method": { - "shortName": "CreateModel", - "fullName": "google.cloud.automl.v1.AutoMl.CreateModel", - "service": { - "shortName": "AutoMl", - "fullName": "google.cloud.automl.v1.AutoMl" - } - } - } - }, - { - "regionTag": "automl_v1_generated_AutoMl_GetModel_async", - "title": "automl getModel Sample", - "origin": "API_DEFINITION", - "description": " Gets a model.", - "canonical": true, - "file": "auto_ml.get_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetModel", - "fullName": "google.cloud.automl.v1.AutoMl.GetModel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.automl.v1.Model", - "client": { - "shortName": "AutoMlClient", - "fullName": "google.cloud.automl.v1.AutoMlClient" - }, - "method": { - "shortName": "GetModel", - "fullName": "google.cloud.automl.v1.AutoMl.GetModel", - "service": { - "shortName": "AutoMl", - "fullName": "google.cloud.automl.v1.AutoMl" - } - } - } - }, - { - "regionTag": "automl_v1_generated_AutoMl_ListModels_async", - "title": "automl listModels Sample", - "origin": "API_DEFINITION", - "description": " Lists models.", - "canonical": true, - "file": "auto_ml.list_models.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListModels", - "fullName": "google.cloud.automl.v1.AutoMl.ListModels", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.automl.v1.ListModelsResponse", - "client": { - "shortName": "AutoMlClient", - "fullName": "google.cloud.automl.v1.AutoMlClient" - }, - "method": { - "shortName": "ListModels", - "fullName": "google.cloud.automl.v1.AutoMl.ListModels", - "service": { - "shortName": "AutoMl", - "fullName": "google.cloud.automl.v1.AutoMl" - } - } - } - }, - { - "regionTag": "automl_v1_generated_AutoMl_DeleteModel_async", - "title": "automl deleteModel Sample", - "origin": "API_DEFINITION", - "description": " Deletes a model. Returns `google.protobuf.Empty` in the [response][google.longrunning.Operation.response] field when it completes, and `delete_details` in the [metadata][google.longrunning.Operation.metadata] field.", - "canonical": true, - "file": "auto_ml.delete_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteModel", - "fullName": "google.cloud.automl.v1.AutoMl.DeleteModel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AutoMlClient", - "fullName": "google.cloud.automl.v1.AutoMlClient" - }, - "method": { - "shortName": "DeleteModel", - "fullName": "google.cloud.automl.v1.AutoMl.DeleteModel", - "service": { - "shortName": "AutoMl", - "fullName": "google.cloud.automl.v1.AutoMl" - } - } - } - }, - { - "regionTag": "automl_v1_generated_AutoMl_UpdateModel_async", - "title": "automl updateModel Sample", - "origin": "API_DEFINITION", - "description": " Updates a model.", - "canonical": true, - "file": "auto_ml.update_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateModel", - "fullName": "google.cloud.automl.v1.AutoMl.UpdateModel", - "async": true, - "parameters": [ - { - "name": "model", - "type": ".google.cloud.automl.v1.Model" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.automl.v1.Model", - "client": { - "shortName": "AutoMlClient", - "fullName": "google.cloud.automl.v1.AutoMlClient" - }, - "method": { - "shortName": "UpdateModel", - "fullName": "google.cloud.automl.v1.AutoMl.UpdateModel", - "service": { - "shortName": "AutoMl", - "fullName": "google.cloud.automl.v1.AutoMl" - } - } - } - }, - { - "regionTag": "automl_v1_generated_AutoMl_DeployModel_async", - "title": "automl deployModel Sample", - "origin": "API_DEFINITION", - "description": " Deploys a model. If a model is already deployed, deploying it with the same parameters has no effect. Deploying with different parametrs (as e.g. changing [node_number][google.cloud.automl.v1p1beta.ImageObjectDetectionModelDeploymentMetadata.node_number]) will reset the deployment state without pausing the model's availability. Only applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage deployment automatically. Returns an empty response in the [response][google.longrunning.Operation.response] field when it completes.", - "canonical": true, - "file": "auto_ml.deploy_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeployModel", - "fullName": "google.cloud.automl.v1.AutoMl.DeployModel", - "async": true, - "parameters": [ - { - "name": "image_object_detection_model_deployment_metadata", - "type": ".google.cloud.automl.v1.ImageObjectDetectionModelDeploymentMetadata" - }, - { - "name": "image_classification_model_deployment_metadata", - "type": ".google.cloud.automl.v1.ImageClassificationModelDeploymentMetadata" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AutoMlClient", - "fullName": "google.cloud.automl.v1.AutoMlClient" - }, - "method": { - "shortName": "DeployModel", - "fullName": "google.cloud.automl.v1.AutoMl.DeployModel", - "service": { - "shortName": "AutoMl", - "fullName": "google.cloud.automl.v1.AutoMl" - } - } - } - }, - { - "regionTag": "automl_v1_generated_AutoMl_UndeployModel_async", - "title": "automl undeployModel Sample", - "origin": "API_DEFINITION", - "description": " Undeploys a model. If the model is not deployed this method has no effect. Only applicable for Text Classification, Image Object Detection and Tables; all other domains manage deployment automatically. Returns an empty response in the [response][google.longrunning.Operation.response] field when it completes.", - "canonical": true, - "file": "auto_ml.undeploy_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UndeployModel", - "fullName": "google.cloud.automl.v1.AutoMl.UndeployModel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AutoMlClient", - "fullName": "google.cloud.automl.v1.AutoMlClient" - }, - "method": { - "shortName": "UndeployModel", - "fullName": "google.cloud.automl.v1.AutoMl.UndeployModel", - "service": { - "shortName": "AutoMl", - "fullName": "google.cloud.automl.v1.AutoMl" - } - } - } - }, - { - "regionTag": "automl_v1_generated_AutoMl_ExportModel_async", - "title": "automl exportModel Sample", - "origin": "API_DEFINITION", - "description": " Exports a trained, \"export-able\", model to a user specified Google Cloud Storage location. A model is considered export-able if and only if it has an export format defined for it in [ModelExportOutputConfig][google.cloud.automl.v1.ModelExportOutputConfig]. Returns an empty response in the [response][google.longrunning.Operation.response] field when it completes.", - "canonical": true, - "file": "auto_ml.export_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportModel", - "fullName": "google.cloud.automl.v1.AutoMl.ExportModel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "output_config", - "type": ".google.cloud.automl.v1.ModelExportOutputConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AutoMlClient", - "fullName": "google.cloud.automl.v1.AutoMlClient" - }, - "method": { - "shortName": "ExportModel", - "fullName": "google.cloud.automl.v1.AutoMl.ExportModel", - "service": { - "shortName": "AutoMl", - "fullName": "google.cloud.automl.v1.AutoMl" - } - } - } - }, - { - "regionTag": "automl_v1_generated_AutoMl_GetModelEvaluation_async", - "title": "automl getModelEvaluation Sample", - "origin": "API_DEFINITION", - "description": " Gets a model evaluation.", - "canonical": true, - "file": "auto_ml.get_model_evaluation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetModelEvaluation", - "fullName": "google.cloud.automl.v1.AutoMl.GetModelEvaluation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.automl.v1.ModelEvaluation", - "client": { - "shortName": "AutoMlClient", - "fullName": "google.cloud.automl.v1.AutoMlClient" - }, - "method": { - "shortName": "GetModelEvaluation", - "fullName": "google.cloud.automl.v1.AutoMl.GetModelEvaluation", - "service": { - "shortName": "AutoMl", - "fullName": "google.cloud.automl.v1.AutoMl" - } - } - } - }, - { - "regionTag": "automl_v1_generated_AutoMl_ListModelEvaluations_async", - "title": "automl listModelEvaluations Sample", - "origin": "API_DEFINITION", - "description": " Lists model evaluations.", - "canonical": true, - "file": "auto_ml.list_model_evaluations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListModelEvaluations", - "fullName": "google.cloud.automl.v1.AutoMl.ListModelEvaluations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.automl.v1.ListModelEvaluationsResponse", - "client": { - "shortName": "AutoMlClient", - "fullName": "google.cloud.automl.v1.AutoMlClient" - }, - "method": { - "shortName": "ListModelEvaluations", - "fullName": "google.cloud.automl.v1.AutoMl.ListModelEvaluations", - "service": { - "shortName": "AutoMl", - "fullName": "google.cloud.automl.v1.AutoMl" - } - } - } - }, - { - "regionTag": "automl_v1_generated_PredictionService_Predict_async", - "title": "automl predict Sample", - "origin": "API_DEFINITION", - "description": " Perform an online prediction. The prediction result is directly returned in the response. Available for following ML scenarios, and their expected request payloads: AutoML Vision Classification * An image in .JPEG, .GIF or .PNG format, image_bytes up to 30MB. AutoML Vision Object Detection * An image in .JPEG, .GIF or .PNG format, image_bytes up to 30MB. AutoML Natural Language Classification * A TextSnippet up to 60,000 characters, UTF-8 encoded or a document in .PDF, .TIF or .TIFF format with size upto 2MB. AutoML Natural Language Entity Extraction * A TextSnippet up to 10,000 characters, UTF-8 NFC encoded or a document in .PDF, .TIF or .TIFF format with size upto 20MB. AutoML Natural Language Sentiment Analysis * A TextSnippet up to 60,000 characters, UTF-8 encoded or a document in .PDF, .TIF or .TIFF format with size upto 2MB. AutoML Translation * A TextSnippet up to 25,000 characters, UTF-8 encoded. AutoML Tables * A row with column values matching the columns of the model, up to 5MB. Not available for FORECASTING `prediction_type`.", - "canonical": true, - "file": "prediction_service.predict.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Predict", - "fullName": "google.cloud.automl.v1.PredictionService.Predict", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "payload", - "type": ".google.cloud.automl.v1.ExamplePayload" - }, - { - "name": "params", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.automl.v1.PredictResponse", - "client": { - "shortName": "PredictionServiceClient", - "fullName": "google.cloud.automl.v1.PredictionServiceClient" - }, - "method": { - "shortName": "Predict", - "fullName": "google.cloud.automl.v1.PredictionService.Predict", - "service": { - "shortName": "PredictionService", - "fullName": "google.cloud.automl.v1.PredictionService" - } - } - } - }, - { - "regionTag": "automl_v1_generated_PredictionService_BatchPredict_async", - "title": "automl batchPredict Sample", - "origin": "API_DEFINITION", - "description": " Perform a batch prediction. Unlike the online [Predict][google.cloud.automl.v1.PredictionService.Predict], batch prediction result won't be immediately available in the response. Instead, a long running operation object is returned. User can poll the operation result via [GetOperation][google.longrunning.Operations.GetOperation] method. Once the operation is done, [BatchPredictResult][google.cloud.automl.v1.BatchPredictResult] is returned in the [response][google.longrunning.Operation.response] field. Available for following ML scenarios: * AutoML Vision Classification * AutoML Vision Object Detection * AutoML Video Intelligence Classification * AutoML Video Intelligence Object Tracking * AutoML Natural Language Classification * AutoML Natural Language Entity Extraction * AutoML Natural Language Sentiment Analysis * AutoML Tables", - "canonical": true, - "file": "prediction_service.batch_predict.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 133, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchPredict", - "fullName": "google.cloud.automl.v1.PredictionService.BatchPredict", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "input_config", - "type": ".google.cloud.automl.v1.BatchPredictInputConfig" - }, - { - "name": "output_config", - "type": ".google.cloud.automl.v1.BatchPredictOutputConfig" - }, - { - "name": "params", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "PredictionServiceClient", - "fullName": "google.cloud.automl.v1.PredictionServiceClient" - }, - "method": { - "shortName": "BatchPredict", - "fullName": "google.cloud.automl.v1.PredictionService.BatchPredict", - "service": { - "shortName": "PredictionService", - "fullName": "google.cloud.automl.v1.PredictionService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-automl/samples/generated/v1beta1/snippet_metadata_google.cloud.automl.v1beta1.json b/packages/google-cloud-automl/samples/generated/v1beta1/snippet_metadata_google.cloud.automl.v1beta1.json deleted file mode 100644 index 0ea57b1b708d..000000000000 --- a/packages/google-cloud-automl/samples/generated/v1beta1/snippet_metadata_google.cloud.automl.v1beta1.json +++ /dev/null @@ -1,1195 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-automl", - "version": "5.1.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.automl.v1beta1", - "version": "v1beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "automl_v1beta1_generated_AutoMl_CreateDataset_async", - "title": "automl createDataset Sample", - "origin": "API_DEFINITION", - "description": " Creates a dataset.", - "canonical": true, - "file": "auto_ml.create_dataset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDataset", - "fullName": "google.cloud.automl.v1beta1.AutoMl.CreateDataset", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "dataset", - "type": ".google.cloud.automl.v1beta1.Dataset" - } - ], - "resultType": ".google.cloud.automl.v1beta1.Dataset", - "client": { - "shortName": "AutoMlClient", - "fullName": "google.cloud.automl.v1beta1.AutoMlClient" - }, - "method": { - "shortName": "CreateDataset", - "fullName": "google.cloud.automl.v1beta1.AutoMl.CreateDataset", - "service": { - "shortName": "AutoMl", - "fullName": "google.cloud.automl.v1beta1.AutoMl" - } - } - } - }, - { - "regionTag": "automl_v1beta1_generated_AutoMl_GetDataset_async", - "title": "automl getDataset Sample", - "origin": "API_DEFINITION", - "description": " Gets a dataset.", - "canonical": true, - "file": "auto_ml.get_dataset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDataset", - "fullName": "google.cloud.automl.v1beta1.AutoMl.GetDataset", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.automl.v1beta1.Dataset", - "client": { - "shortName": "AutoMlClient", - "fullName": "google.cloud.automl.v1beta1.AutoMlClient" - }, - "method": { - "shortName": "GetDataset", - "fullName": "google.cloud.automl.v1beta1.AutoMl.GetDataset", - "service": { - "shortName": "AutoMl", - "fullName": "google.cloud.automl.v1beta1.AutoMl" - } - } - } - }, - { - "regionTag": "automl_v1beta1_generated_AutoMl_ListDatasets_async", - "title": "automl listDatasets Sample", - "origin": "API_DEFINITION", - "description": " Lists datasets in a project.", - "canonical": true, - "file": "auto_ml.list_datasets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDatasets", - "fullName": "google.cloud.automl.v1beta1.AutoMl.ListDatasets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.automl.v1beta1.ListDatasetsResponse", - "client": { - "shortName": "AutoMlClient", - "fullName": "google.cloud.automl.v1beta1.AutoMlClient" - }, - "method": { - "shortName": "ListDatasets", - "fullName": "google.cloud.automl.v1beta1.AutoMl.ListDatasets", - "service": { - "shortName": "AutoMl", - "fullName": "google.cloud.automl.v1beta1.AutoMl" - } - } - } - }, - { - "regionTag": "automl_v1beta1_generated_AutoMl_UpdateDataset_async", - "title": "automl updateDataset Sample", - "origin": "API_DEFINITION", - "description": " Updates a dataset.", - "canonical": true, - "file": "auto_ml.update_dataset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDataset", - "fullName": "google.cloud.automl.v1beta1.AutoMl.UpdateDataset", - "async": true, - "parameters": [ - { - "name": "dataset", - "type": ".google.cloud.automl.v1beta1.Dataset" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.automl.v1beta1.Dataset", - "client": { - "shortName": "AutoMlClient", - "fullName": "google.cloud.automl.v1beta1.AutoMlClient" - }, - "method": { - "shortName": "UpdateDataset", - "fullName": "google.cloud.automl.v1beta1.AutoMl.UpdateDataset", - "service": { - "shortName": "AutoMl", - "fullName": "google.cloud.automl.v1beta1.AutoMl" - } - } - } - }, - { - "regionTag": "automl_v1beta1_generated_AutoMl_DeleteDataset_async", - "title": "automl deleteDataset Sample", - "origin": "API_DEFINITION", - "description": " Deletes a dataset and all of its contents. Returns empty response in the [response][google.longrunning.Operation.response] field when it completes, and `delete_details` in the [metadata][google.longrunning.Operation.metadata] field.", - "canonical": true, - "file": "auto_ml.delete_dataset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDataset", - "fullName": "google.cloud.automl.v1beta1.AutoMl.DeleteDataset", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AutoMlClient", - "fullName": "google.cloud.automl.v1beta1.AutoMlClient" - }, - "method": { - "shortName": "DeleteDataset", - "fullName": "google.cloud.automl.v1beta1.AutoMl.DeleteDataset", - "service": { - "shortName": "AutoMl", - "fullName": "google.cloud.automl.v1beta1.AutoMl" - } - } - } - }, - { - "regionTag": "automl_v1beta1_generated_AutoMl_ImportData_async", - "title": "automl importData Sample", - "origin": "API_DEFINITION", - "description": " Imports data into a dataset. For Tables this method can only be called on an empty Dataset. For Tables: * A [schema_inference_version][google.cloud.automl.v1beta1.InputConfig.params] parameter must be explicitly set. Returns an empty response in the [response][google.longrunning.Operation.response] field when it completes.", - "canonical": true, - "file": "auto_ml.import_data.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportData", - "fullName": "google.cloud.automl.v1beta1.AutoMl.ImportData", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "input_config", - "type": ".google.cloud.automl.v1beta1.InputConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AutoMlClient", - "fullName": "google.cloud.automl.v1beta1.AutoMlClient" - }, - "method": { - "shortName": "ImportData", - "fullName": "google.cloud.automl.v1beta1.AutoMl.ImportData", - "service": { - "shortName": "AutoMl", - "fullName": "google.cloud.automl.v1beta1.AutoMl" - } - } - } - }, - { - "regionTag": "automl_v1beta1_generated_AutoMl_ExportData_async", - "title": "automl exportData Sample", - "origin": "API_DEFINITION", - "description": " Exports dataset's data to the provided output location. Returns an empty response in the [response][google.longrunning.Operation.response] field when it completes.", - "canonical": true, - "file": "auto_ml.export_data.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportData", - "fullName": "google.cloud.automl.v1beta1.AutoMl.ExportData", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "output_config", - "type": ".google.cloud.automl.v1beta1.OutputConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AutoMlClient", - "fullName": "google.cloud.automl.v1beta1.AutoMlClient" - }, - "method": { - "shortName": "ExportData", - "fullName": "google.cloud.automl.v1beta1.AutoMl.ExportData", - "service": { - "shortName": "AutoMl", - "fullName": "google.cloud.automl.v1beta1.AutoMl" - } - } - } - }, - { - "regionTag": "automl_v1beta1_generated_AutoMl_GetAnnotationSpec_async", - "title": "automl getAnnotationSpec Sample", - "origin": "API_DEFINITION", - "description": " Gets an annotation spec.", - "canonical": true, - "file": "auto_ml.get_annotation_spec.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAnnotationSpec", - "fullName": "google.cloud.automl.v1beta1.AutoMl.GetAnnotationSpec", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.automl.v1beta1.AnnotationSpec", - "client": { - "shortName": "AutoMlClient", - "fullName": "google.cloud.automl.v1beta1.AutoMlClient" - }, - "method": { - "shortName": "GetAnnotationSpec", - "fullName": "google.cloud.automl.v1beta1.AutoMl.GetAnnotationSpec", - "service": { - "shortName": "AutoMl", - "fullName": "google.cloud.automl.v1beta1.AutoMl" - } - } - } - }, - { - "regionTag": "automl_v1beta1_generated_AutoMl_GetTableSpec_async", - "title": "automl getTableSpec Sample", - "origin": "API_DEFINITION", - "description": " Gets a table spec.", - "canonical": true, - "file": "auto_ml.get_table_spec.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTableSpec", - "fullName": "google.cloud.automl.v1beta1.AutoMl.GetTableSpec", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "field_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.automl.v1beta1.TableSpec", - "client": { - "shortName": "AutoMlClient", - "fullName": "google.cloud.automl.v1beta1.AutoMlClient" - }, - "method": { - "shortName": "GetTableSpec", - "fullName": "google.cloud.automl.v1beta1.AutoMl.GetTableSpec", - "service": { - "shortName": "AutoMl", - "fullName": "google.cloud.automl.v1beta1.AutoMl" - } - } - } - }, - { - "regionTag": "automl_v1beta1_generated_AutoMl_ListTableSpecs_async", - "title": "automl listTableSpecs Sample", - "origin": "API_DEFINITION", - "description": " Lists table specs in a dataset.", - "canonical": true, - "file": "auto_ml.list_table_specs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTableSpecs", - "fullName": "google.cloud.automl.v1beta1.AutoMl.ListTableSpecs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "field_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.automl.v1beta1.ListTableSpecsResponse", - "client": { - "shortName": "AutoMlClient", - "fullName": "google.cloud.automl.v1beta1.AutoMlClient" - }, - "method": { - "shortName": "ListTableSpecs", - "fullName": "google.cloud.automl.v1beta1.AutoMl.ListTableSpecs", - "service": { - "shortName": "AutoMl", - "fullName": "google.cloud.automl.v1beta1.AutoMl" - } - } - } - }, - { - "regionTag": "automl_v1beta1_generated_AutoMl_UpdateTableSpec_async", - "title": "automl updateTableSpec Sample", - "origin": "API_DEFINITION", - "description": " Updates a table spec.", - "canonical": true, - "file": "auto_ml.update_table_spec.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTableSpec", - "fullName": "google.cloud.automl.v1beta1.AutoMl.UpdateTableSpec", - "async": true, - "parameters": [ - { - "name": "table_spec", - "type": ".google.cloud.automl.v1beta1.TableSpec" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.automl.v1beta1.TableSpec", - "client": { - "shortName": "AutoMlClient", - "fullName": "google.cloud.automl.v1beta1.AutoMlClient" - }, - "method": { - "shortName": "UpdateTableSpec", - "fullName": "google.cloud.automl.v1beta1.AutoMl.UpdateTableSpec", - "service": { - "shortName": "AutoMl", - "fullName": "google.cloud.automl.v1beta1.AutoMl" - } - } - } - }, - { - "regionTag": "automl_v1beta1_generated_AutoMl_GetColumnSpec_async", - "title": "automl getColumnSpec Sample", - "origin": "API_DEFINITION", - "description": " Gets a column spec.", - "canonical": true, - "file": "auto_ml.get_column_spec.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetColumnSpec", - "fullName": "google.cloud.automl.v1beta1.AutoMl.GetColumnSpec", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "field_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.automl.v1beta1.ColumnSpec", - "client": { - "shortName": "AutoMlClient", - "fullName": "google.cloud.automl.v1beta1.AutoMlClient" - }, - "method": { - "shortName": "GetColumnSpec", - "fullName": "google.cloud.automl.v1beta1.AutoMl.GetColumnSpec", - "service": { - "shortName": "AutoMl", - "fullName": "google.cloud.automl.v1beta1.AutoMl" - } - } - } - }, - { - "regionTag": "automl_v1beta1_generated_AutoMl_ListColumnSpecs_async", - "title": "automl listColumnSpecs Sample", - "origin": "API_DEFINITION", - "description": " Lists column specs in a table spec.", - "canonical": true, - "file": "auto_ml.list_column_specs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListColumnSpecs", - "fullName": "google.cloud.automl.v1beta1.AutoMl.ListColumnSpecs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "field_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.automl.v1beta1.ListColumnSpecsResponse", - "client": { - "shortName": "AutoMlClient", - "fullName": "google.cloud.automl.v1beta1.AutoMlClient" - }, - "method": { - "shortName": "ListColumnSpecs", - "fullName": "google.cloud.automl.v1beta1.AutoMl.ListColumnSpecs", - "service": { - "shortName": "AutoMl", - "fullName": "google.cloud.automl.v1beta1.AutoMl" - } - } - } - }, - { - "regionTag": "automl_v1beta1_generated_AutoMl_UpdateColumnSpec_async", - "title": "automl updateColumnSpec Sample", - "origin": "API_DEFINITION", - "description": " Updates a column spec.", - "canonical": true, - "file": "auto_ml.update_column_spec.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateColumnSpec", - "fullName": "google.cloud.automl.v1beta1.AutoMl.UpdateColumnSpec", - "async": true, - "parameters": [ - { - "name": "column_spec", - "type": ".google.cloud.automl.v1beta1.ColumnSpec" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.automl.v1beta1.ColumnSpec", - "client": { - "shortName": "AutoMlClient", - "fullName": "google.cloud.automl.v1beta1.AutoMlClient" - }, - "method": { - "shortName": "UpdateColumnSpec", - "fullName": "google.cloud.automl.v1beta1.AutoMl.UpdateColumnSpec", - "service": { - "shortName": "AutoMl", - "fullName": "google.cloud.automl.v1beta1.AutoMl" - } - } - } - }, - { - "regionTag": "automl_v1beta1_generated_AutoMl_CreateModel_async", - "title": "automl createModel Sample", - "origin": "API_DEFINITION", - "description": " Creates a model. Returns a Model in the [response][google.longrunning.Operation.response] field when it completes. When you create a model, several model evaluations are created for it: a global evaluation, and one evaluation for each annotation spec.", - "canonical": true, - "file": "auto_ml.create_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateModel", - "fullName": "google.cloud.automl.v1beta1.AutoMl.CreateModel", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "model", - "type": ".google.cloud.automl.v1beta1.Model" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AutoMlClient", - "fullName": "google.cloud.automl.v1beta1.AutoMlClient" - }, - "method": { - "shortName": "CreateModel", - "fullName": "google.cloud.automl.v1beta1.AutoMl.CreateModel", - "service": { - "shortName": "AutoMl", - "fullName": "google.cloud.automl.v1beta1.AutoMl" - } - } - } - }, - { - "regionTag": "automl_v1beta1_generated_AutoMl_GetModel_async", - "title": "automl getModel Sample", - "origin": "API_DEFINITION", - "description": " Gets a model.", - "canonical": true, - "file": "auto_ml.get_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetModel", - "fullName": "google.cloud.automl.v1beta1.AutoMl.GetModel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.automl.v1beta1.Model", - "client": { - "shortName": "AutoMlClient", - "fullName": "google.cloud.automl.v1beta1.AutoMlClient" - }, - "method": { - "shortName": "GetModel", - "fullName": "google.cloud.automl.v1beta1.AutoMl.GetModel", - "service": { - "shortName": "AutoMl", - "fullName": "google.cloud.automl.v1beta1.AutoMl" - } - } - } - }, - { - "regionTag": "automl_v1beta1_generated_AutoMl_ListModels_async", - "title": "automl listModels Sample", - "origin": "API_DEFINITION", - "description": " Lists models.", - "canonical": true, - "file": "auto_ml.list_models.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListModels", - "fullName": "google.cloud.automl.v1beta1.AutoMl.ListModels", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.automl.v1beta1.ListModelsResponse", - "client": { - "shortName": "AutoMlClient", - "fullName": "google.cloud.automl.v1beta1.AutoMlClient" - }, - "method": { - "shortName": "ListModels", - "fullName": "google.cloud.automl.v1beta1.AutoMl.ListModels", - "service": { - "shortName": "AutoMl", - "fullName": "google.cloud.automl.v1beta1.AutoMl" - } - } - } - }, - { - "regionTag": "automl_v1beta1_generated_AutoMl_DeleteModel_async", - "title": "automl deleteModel Sample", - "origin": "API_DEFINITION", - "description": " Deletes a model. Returns `google.protobuf.Empty` in the [response][google.longrunning.Operation.response] field when it completes, and `delete_details` in the [metadata][google.longrunning.Operation.metadata] field.", - "canonical": true, - "file": "auto_ml.delete_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteModel", - "fullName": "google.cloud.automl.v1beta1.AutoMl.DeleteModel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AutoMlClient", - "fullName": "google.cloud.automl.v1beta1.AutoMlClient" - }, - "method": { - "shortName": "DeleteModel", - "fullName": "google.cloud.automl.v1beta1.AutoMl.DeleteModel", - "service": { - "shortName": "AutoMl", - "fullName": "google.cloud.automl.v1beta1.AutoMl" - } - } - } - }, - { - "regionTag": "automl_v1beta1_generated_AutoMl_DeployModel_async", - "title": "automl deployModel Sample", - "origin": "API_DEFINITION", - "description": " Deploys a model. If a model is already deployed, deploying it with the same parameters has no effect. Deploying with different parametrs (as e.g. changing [node_number][google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata.node_number]) will reset the deployment state without pausing the model's availability. Only applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage deployment automatically. Returns an empty response in the [response][google.longrunning.Operation.response] field when it completes.", - "canonical": true, - "file": "auto_ml.deploy_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeployModel", - "fullName": "google.cloud.automl.v1beta1.AutoMl.DeployModel", - "async": true, - "parameters": [ - { - "name": "image_object_detection_model_deployment_metadata", - "type": ".google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata" - }, - { - "name": "image_classification_model_deployment_metadata", - "type": ".google.cloud.automl.v1beta1.ImageClassificationModelDeploymentMetadata" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AutoMlClient", - "fullName": "google.cloud.automl.v1beta1.AutoMlClient" - }, - "method": { - "shortName": "DeployModel", - "fullName": "google.cloud.automl.v1beta1.AutoMl.DeployModel", - "service": { - "shortName": "AutoMl", - "fullName": "google.cloud.automl.v1beta1.AutoMl" - } - } - } - }, - { - "regionTag": "automl_v1beta1_generated_AutoMl_UndeployModel_async", - "title": "automl undeployModel Sample", - "origin": "API_DEFINITION", - "description": " Undeploys a model. If the model is not deployed this method has no effect. Only applicable for Text Classification, Image Object Detection and Tables; all other domains manage deployment automatically. Returns an empty response in the [response][google.longrunning.Operation.response] field when it completes.", - "canonical": true, - "file": "auto_ml.undeploy_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UndeployModel", - "fullName": "google.cloud.automl.v1beta1.AutoMl.UndeployModel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AutoMlClient", - "fullName": "google.cloud.automl.v1beta1.AutoMlClient" - }, - "method": { - "shortName": "UndeployModel", - "fullName": "google.cloud.automl.v1beta1.AutoMl.UndeployModel", - "service": { - "shortName": "AutoMl", - "fullName": "google.cloud.automl.v1beta1.AutoMl" - } - } - } - }, - { - "regionTag": "automl_v1beta1_generated_AutoMl_ExportModel_async", - "title": "automl exportModel Sample", - "origin": "API_DEFINITION", - "description": " Exports a trained, \"export-able\", model to a user specified Google Cloud Storage location. A model is considered export-able if and only if it has an export format defined for it in [ModelExportOutputConfig][google.cloud.automl.v1beta1.ModelExportOutputConfig]. Returns an empty response in the [response][google.longrunning.Operation.response] field when it completes.", - "canonical": true, - "file": "auto_ml.export_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportModel", - "fullName": "google.cloud.automl.v1beta1.AutoMl.ExportModel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "output_config", - "type": ".google.cloud.automl.v1beta1.ModelExportOutputConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AutoMlClient", - "fullName": "google.cloud.automl.v1beta1.AutoMlClient" - }, - "method": { - "shortName": "ExportModel", - "fullName": "google.cloud.automl.v1beta1.AutoMl.ExportModel", - "service": { - "shortName": "AutoMl", - "fullName": "google.cloud.automl.v1beta1.AutoMl" - } - } - } - }, - { - "regionTag": "automl_v1beta1_generated_AutoMl_ExportEvaluatedExamples_async", - "title": "automl exportEvaluatedExamples Sample", - "origin": "API_DEFINITION", - "description": " Exports examples on which the model was evaluated (i.e. which were in the TEST set of the dataset the model was created from), together with their ground truth annotations and the annotations created (predicted) by the model. The examples, ground truth and predictions are exported in the state they were at the moment the model was evaluated. This export is available only for 30 days since the model evaluation is created. Currently only available for Tables. Returns an empty response in the [response][google.longrunning.Operation.response] field when it completes.", - "canonical": true, - "file": "auto_ml.export_evaluated_examples.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportEvaluatedExamples", - "fullName": "google.cloud.automl.v1beta1.AutoMl.ExportEvaluatedExamples", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "output_config", - "type": ".google.cloud.automl.v1beta1.ExportEvaluatedExamplesOutputConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AutoMlClient", - "fullName": "google.cloud.automl.v1beta1.AutoMlClient" - }, - "method": { - "shortName": "ExportEvaluatedExamples", - "fullName": "google.cloud.automl.v1beta1.AutoMl.ExportEvaluatedExamples", - "service": { - "shortName": "AutoMl", - "fullName": "google.cloud.automl.v1beta1.AutoMl" - } - } - } - }, - { - "regionTag": "automl_v1beta1_generated_AutoMl_GetModelEvaluation_async", - "title": "automl getModelEvaluation Sample", - "origin": "API_DEFINITION", - "description": " Gets a model evaluation.", - "canonical": true, - "file": "auto_ml.get_model_evaluation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetModelEvaluation", - "fullName": "google.cloud.automl.v1beta1.AutoMl.GetModelEvaluation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.automl.v1beta1.ModelEvaluation", - "client": { - "shortName": "AutoMlClient", - "fullName": "google.cloud.automl.v1beta1.AutoMlClient" - }, - "method": { - "shortName": "GetModelEvaluation", - "fullName": "google.cloud.automl.v1beta1.AutoMl.GetModelEvaluation", - "service": { - "shortName": "AutoMl", - "fullName": "google.cloud.automl.v1beta1.AutoMl" - } - } - } - }, - { - "regionTag": "automl_v1beta1_generated_AutoMl_ListModelEvaluations_async", - "title": "automl listModelEvaluations Sample", - "origin": "API_DEFINITION", - "description": " Lists model evaluations.", - "canonical": true, - "file": "auto_ml.list_model_evaluations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListModelEvaluations", - "fullName": "google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.automl.v1beta1.ListModelEvaluationsResponse", - "client": { - "shortName": "AutoMlClient", - "fullName": "google.cloud.automl.v1beta1.AutoMlClient" - }, - "method": { - "shortName": "ListModelEvaluations", - "fullName": "google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations", - "service": { - "shortName": "AutoMl", - "fullName": "google.cloud.automl.v1beta1.AutoMl" - } - } - } - }, - { - "regionTag": "automl_v1beta1_generated_PredictionService_Predict_async", - "title": "automl predict Sample", - "origin": "API_DEFINITION", - "description": " Perform an online prediction. The prediction result will be directly returned in the response. Available for following ML problems, and their expected request payloads: * Image Classification - Image in .JPEG, .GIF or .PNG format, image_bytes up to 30MB. * Image Object Detection - Image in .JPEG, .GIF or .PNG format, image_bytes up to 30MB. * Text Classification - TextSnippet, content up to 60,000 characters, UTF-8 encoded. * Text Extraction - TextSnippet, content up to 30,000 characters, UTF-8 NFC encoded. * Translation - TextSnippet, content up to 25,000 characters, UTF-8 encoded. * Tables - Row, with column values matching the columns of the model, up to 5MB. Not available for FORECASTING [prediction_type][google.cloud.automl.v1beta1.TablesModelMetadata.prediction_type]. * Text Sentiment - TextSnippet, content up 500 characters, UTF-8 encoded.", - "canonical": true, - "file": "prediction_service.predict.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Predict", - "fullName": "google.cloud.automl.v1beta1.PredictionService.Predict", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "payload", - "type": ".google.cloud.automl.v1beta1.ExamplePayload" - }, - { - "name": "params", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.automl.v1beta1.PredictResponse", - "client": { - "shortName": "PredictionServiceClient", - "fullName": "google.cloud.automl.v1beta1.PredictionServiceClient" - }, - "method": { - "shortName": "Predict", - "fullName": "google.cloud.automl.v1beta1.PredictionService.Predict", - "service": { - "shortName": "PredictionService", - "fullName": "google.cloud.automl.v1beta1.PredictionService" - } - } - } - }, - { - "regionTag": "automl_v1beta1_generated_PredictionService_BatchPredict_async", - "title": "automl batchPredict Sample", - "origin": "API_DEFINITION", - "description": " Perform a batch prediction. Unlike the online [Predict][google.cloud.automl.v1beta1.PredictionService.Predict], batch prediction result won't be immediately available in the response. Instead, a long running operation object is returned. User can poll the operation result via [GetOperation][google.longrunning.Operations.GetOperation] method. Once the operation is done, [BatchPredictResult][google.cloud.automl.v1beta1.BatchPredictResult] is returned in the [response][google.longrunning.Operation.response] field. Available for following ML problems: * Image Classification * Image Object Detection * Video Classification * Video Object Tracking * Text Extraction * Tables", - "canonical": true, - "file": "prediction_service.batch_predict.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 127, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchPredict", - "fullName": "google.cloud.automl.v1beta1.PredictionService.BatchPredict", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "input_config", - "type": ".google.cloud.automl.v1beta1.BatchPredictInputConfig" - }, - { - "name": "output_config", - "type": ".google.cloud.automl.v1beta1.BatchPredictOutputConfig" - }, - { - "name": "params", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "PredictionServiceClient", - "fullName": "google.cloud.automl.v1beta1.PredictionServiceClient" - }, - "method": { - "shortName": "BatchPredict", - "fullName": "google.cloud.automl.v1beta1.PredictionService.BatchPredict", - "service": { - "shortName": "PredictionService", - "fullName": "google.cloud.automl.v1beta1.PredictionService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-backupdr/samples/generated/v1/snippet_metadata_google.cloud.backupdr.v1.json b/packages/google-cloud-backupdr/samples/generated/v1/snippet_metadata_google.cloud.backupdr.v1.json deleted file mode 100644 index 01a1f374d958..000000000000 --- a/packages/google-cloud-backupdr/samples/generated/v1/snippet_metadata_google.cloud.backupdr.v1.json +++ /dev/null @@ -1,1959 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-backupdr", - "version": "0.8.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.backupdr.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "backupdr_v1_generated_BackupDR_ListManagementServers_async", - "title": "BackupDR listManagementServers Sample", - "origin": "API_DEFINITION", - "description": " Lists ManagementServers in a given project and location.", - "canonical": true, - "file": "backup_d_r.list_management_servers.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListManagementServers", - "fullName": "google.cloud.backupdr.v1.BackupDR.ListManagementServers", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.backupdr.v1.ListManagementServersResponse", - "client": { - "shortName": "BackupDRClient", - "fullName": "google.cloud.backupdr.v1.BackupDRClient" - }, - "method": { - "shortName": "ListManagementServers", - "fullName": "google.cloud.backupdr.v1.BackupDR.ListManagementServers", - "service": { - "shortName": "BackupDR", - "fullName": "google.cloud.backupdr.v1.BackupDR" - } - } - } - }, - { - "regionTag": "backupdr_v1_generated_BackupDR_GetManagementServer_async", - "title": "BackupDR getManagementServer Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single ManagementServer.", - "canonical": true, - "file": "backup_d_r.get_management_server.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetManagementServer", - "fullName": "google.cloud.backupdr.v1.BackupDR.GetManagementServer", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.backupdr.v1.ManagementServer", - "client": { - "shortName": "BackupDRClient", - "fullName": "google.cloud.backupdr.v1.BackupDRClient" - }, - "method": { - "shortName": "GetManagementServer", - "fullName": "google.cloud.backupdr.v1.BackupDR.GetManagementServer", - "service": { - "shortName": "BackupDR", - "fullName": "google.cloud.backupdr.v1.BackupDR" - } - } - } - }, - { - "regionTag": "backupdr_v1_generated_BackupDR_CreateManagementServer_async", - "title": "BackupDR createManagementServer Sample", - "origin": "API_DEFINITION", - "description": " Creates a new ManagementServer in a given project and location.", - "canonical": true, - "file": "backup_d_r.create_management_server.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateManagementServer", - "fullName": "google.cloud.backupdr.v1.BackupDR.CreateManagementServer", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "management_server_id", - "type": "TYPE_STRING" - }, - { - "name": "management_server", - "type": ".google.cloud.backupdr.v1.ManagementServer" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BackupDRClient", - "fullName": "google.cloud.backupdr.v1.BackupDRClient" - }, - "method": { - "shortName": "CreateManagementServer", - "fullName": "google.cloud.backupdr.v1.BackupDR.CreateManagementServer", - "service": { - "shortName": "BackupDR", - "fullName": "google.cloud.backupdr.v1.BackupDR" - } - } - } - }, - { - "regionTag": "backupdr_v1_generated_BackupDR_DeleteManagementServer_async", - "title": "BackupDR deleteManagementServer Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single ManagementServer.", - "canonical": true, - "file": "backup_d_r.delete_management_server.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteManagementServer", - "fullName": "google.cloud.backupdr.v1.BackupDR.DeleteManagementServer", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BackupDRClient", - "fullName": "google.cloud.backupdr.v1.BackupDRClient" - }, - "method": { - "shortName": "DeleteManagementServer", - "fullName": "google.cloud.backupdr.v1.BackupDR.DeleteManagementServer", - "service": { - "shortName": "BackupDR", - "fullName": "google.cloud.backupdr.v1.BackupDR" - } - } - } - }, - { - "regionTag": "backupdr_v1_generated_BackupDR_CreateBackupVault_async", - "title": "BackupDR createBackupVault Sample", - "origin": "API_DEFINITION", - "description": " Creates a new BackupVault in a given project and location.", - "canonical": true, - "file": "backup_d_r.create_backup_vault.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateBackupVault", - "fullName": "google.cloud.backupdr.v1.BackupDR.CreateBackupVault", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "backup_vault_id", - "type": "TYPE_STRING" - }, - { - "name": "backup_vault", - "type": ".google.cloud.backupdr.v1.BackupVault" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BackupDRClient", - "fullName": "google.cloud.backupdr.v1.BackupDRClient" - }, - "method": { - "shortName": "CreateBackupVault", - "fullName": "google.cloud.backupdr.v1.BackupDR.CreateBackupVault", - "service": { - "shortName": "BackupDR", - "fullName": "google.cloud.backupdr.v1.BackupDR" - } - } - } - }, - { - "regionTag": "backupdr_v1_generated_BackupDR_ListBackupVaults_async", - "title": "BackupDR listBackupVaults Sample", - "origin": "API_DEFINITION", - "description": " Lists BackupVaults in a given project and location.", - "canonical": true, - "file": "backup_d_r.list_backup_vaults.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBackupVaults", - "fullName": "google.cloud.backupdr.v1.BackupDR.ListBackupVaults", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.backupdr.v1.BackupVaultView" - } - ], - "resultType": ".google.cloud.backupdr.v1.ListBackupVaultsResponse", - "client": { - "shortName": "BackupDRClient", - "fullName": "google.cloud.backupdr.v1.BackupDRClient" - }, - "method": { - "shortName": "ListBackupVaults", - "fullName": "google.cloud.backupdr.v1.BackupDR.ListBackupVaults", - "service": { - "shortName": "BackupDR", - "fullName": "google.cloud.backupdr.v1.BackupDR" - } - } - } - }, - { - "regionTag": "backupdr_v1_generated_BackupDR_FetchUsableBackupVaults_async", - "title": "BackupDR fetchUsableBackupVaults Sample", - "origin": "API_DEFINITION", - "description": " FetchUsableBackupVaults lists usable BackupVaults in a given project and location. Usable BackupVault are the ones that user has backupdr.backupVaults.get permission.", - "canonical": true, - "file": "backup_d_r.fetch_usable_backup_vaults.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchUsableBackupVaults", - "fullName": "google.cloud.backupdr.v1.BackupDR.FetchUsableBackupVaults", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.backupdr.v1.FetchUsableBackupVaultsResponse", - "client": { - "shortName": "BackupDRClient", - "fullName": "google.cloud.backupdr.v1.BackupDRClient" - }, - "method": { - "shortName": "FetchUsableBackupVaults", - "fullName": "google.cloud.backupdr.v1.BackupDR.FetchUsableBackupVaults", - "service": { - "shortName": "BackupDR", - "fullName": "google.cloud.backupdr.v1.BackupDR" - } - } - } - }, - { - "regionTag": "backupdr_v1_generated_BackupDR_GetBackupVault_async", - "title": "BackupDR getBackupVault Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a BackupVault.", - "canonical": true, - "file": "backup_d_r.get_backup_vault.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBackupVault", - "fullName": "google.cloud.backupdr.v1.BackupDR.GetBackupVault", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.backupdr.v1.BackupVaultView" - } - ], - "resultType": ".google.cloud.backupdr.v1.BackupVault", - "client": { - "shortName": "BackupDRClient", - "fullName": "google.cloud.backupdr.v1.BackupDRClient" - }, - "method": { - "shortName": "GetBackupVault", - "fullName": "google.cloud.backupdr.v1.BackupDR.GetBackupVault", - "service": { - "shortName": "BackupDR", - "fullName": "google.cloud.backupdr.v1.BackupDR" - } - } - } - }, - { - "regionTag": "backupdr_v1_generated_BackupDR_UpdateBackupVault_async", - "title": "BackupDR updateBackupVault Sample", - "origin": "API_DEFINITION", - "description": " Updates the settings of a BackupVault.", - "canonical": true, - "file": "backup_d_r.update_backup_vault.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 92, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateBackupVault", - "fullName": "google.cloud.backupdr.v1.BackupDR.UpdateBackupVault", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "backup_vault", - "type": ".google.cloud.backupdr.v1.BackupVault" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "force", - "type": "TYPE_BOOL" - }, - { - "name": "force_update_access_restriction", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BackupDRClient", - "fullName": "google.cloud.backupdr.v1.BackupDRClient" - }, - "method": { - "shortName": "UpdateBackupVault", - "fullName": "google.cloud.backupdr.v1.BackupDR.UpdateBackupVault", - "service": { - "shortName": "BackupDR", - "fullName": "google.cloud.backupdr.v1.BackupDR" - } - } - } - }, - { - "regionTag": "backupdr_v1_generated_BackupDR_DeleteBackupVault_async", - "title": "BackupDR deleteBackupVault Sample", - "origin": "API_DEFINITION", - "description": " Deletes a BackupVault.", - "canonical": true, - "file": "backup_d_r.delete_backup_vault.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 94, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteBackupVault", - "fullName": "google.cloud.backupdr.v1.BackupDR.DeleteBackupVault", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - }, - { - "name": "ignore_backup_plan_references", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BackupDRClient", - "fullName": "google.cloud.backupdr.v1.BackupDRClient" - }, - "method": { - "shortName": "DeleteBackupVault", - "fullName": "google.cloud.backupdr.v1.BackupDR.DeleteBackupVault", - "service": { - "shortName": "BackupDR", - "fullName": "google.cloud.backupdr.v1.BackupDR" - } - } - } - }, - { - "regionTag": "backupdr_v1_generated_BackupDR_ListDataSources_async", - "title": "BackupDR listDataSources Sample", - "origin": "API_DEFINITION", - "description": " Lists DataSources in a given project and location.", - "canonical": true, - "file": "backup_d_r.list_data_sources.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDataSources", - "fullName": "google.cloud.backupdr.v1.BackupDR.ListDataSources", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.backupdr.v1.ListDataSourcesResponse", - "client": { - "shortName": "BackupDRClient", - "fullName": "google.cloud.backupdr.v1.BackupDRClient" - }, - "method": { - "shortName": "ListDataSources", - "fullName": "google.cloud.backupdr.v1.BackupDR.ListDataSources", - "service": { - "shortName": "BackupDR", - "fullName": "google.cloud.backupdr.v1.BackupDR" - } - } - } - }, - { - "regionTag": "backupdr_v1_generated_BackupDR_GetDataSource_async", - "title": "BackupDR getDataSource Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a DataSource.", - "canonical": true, - "file": "backup_d_r.get_data_source.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDataSource", - "fullName": "google.cloud.backupdr.v1.BackupDR.GetDataSource", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.backupdr.v1.DataSource", - "client": { - "shortName": "BackupDRClient", - "fullName": "google.cloud.backupdr.v1.BackupDRClient" - }, - "method": { - "shortName": "GetDataSource", - "fullName": "google.cloud.backupdr.v1.BackupDR.GetDataSource", - "service": { - "shortName": "BackupDR", - "fullName": "google.cloud.backupdr.v1.BackupDR" - } - } - } - }, - { - "regionTag": "backupdr_v1_generated_BackupDR_UpdateDataSource_async", - "title": "BackupDR updateDataSource Sample", - "origin": "API_DEFINITION", - "description": " Updates the settings of a DataSource.", - "canonical": true, - "file": "backup_d_r.update_data_source.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDataSource", - "fullName": "google.cloud.backupdr.v1.BackupDR.UpdateDataSource", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "data_source", - "type": ".google.cloud.backupdr.v1.DataSource" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BackupDRClient", - "fullName": "google.cloud.backupdr.v1.BackupDRClient" - }, - "method": { - "shortName": "UpdateDataSource", - "fullName": "google.cloud.backupdr.v1.BackupDR.UpdateDataSource", - "service": { - "shortName": "BackupDR", - "fullName": "google.cloud.backupdr.v1.BackupDR" - } - } - } - }, - { - "regionTag": "backupdr_v1_generated_BackupDR_ListBackups_async", - "title": "BackupDR listBackups Sample", - "origin": "API_DEFINITION", - "description": " Lists Backups in a given project and location.", - "canonical": true, - "file": "backup_d_r.list_backups.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBackups", - "fullName": "google.cloud.backupdr.v1.BackupDR.ListBackups", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.backupdr.v1.BackupView" - } - ], - "resultType": ".google.cloud.backupdr.v1.ListBackupsResponse", - "client": { - "shortName": "BackupDRClient", - "fullName": "google.cloud.backupdr.v1.BackupDRClient" - }, - "method": { - "shortName": "ListBackups", - "fullName": "google.cloud.backupdr.v1.BackupDR.ListBackups", - "service": { - "shortName": "BackupDR", - "fullName": "google.cloud.backupdr.v1.BackupDR" - } - } - } - }, - { - "regionTag": "backupdr_v1_generated_BackupDR_FetchBackupsForResourceType_async", - "title": "BackupDR fetchBackupsForResourceType Sample", - "origin": "API_DEFINITION", - "description": " Fetch Backups for a given resource type.", - "canonical": true, - "file": "backup_d_r.fetch_backups_for_resource_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 96, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchBackupsForResourceType", - "fullName": "google.cloud.backupdr.v1.BackupDR.FetchBackupsForResourceType", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "resource_type", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.backupdr.v1.BackupView" - } - ], - "resultType": ".google.cloud.backupdr.v1.FetchBackupsForResourceTypeResponse", - "client": { - "shortName": "BackupDRClient", - "fullName": "google.cloud.backupdr.v1.BackupDRClient" - }, - "method": { - "shortName": "FetchBackupsForResourceType", - "fullName": "google.cloud.backupdr.v1.BackupDR.FetchBackupsForResourceType", - "service": { - "shortName": "BackupDR", - "fullName": "google.cloud.backupdr.v1.BackupDR" - } - } - } - }, - { - "regionTag": "backupdr_v1_generated_BackupDR_GetBackup_async", - "title": "BackupDR getBackup Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a Backup.", - "canonical": true, - "file": "backup_d_r.get_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBackup", - "fullName": "google.cloud.backupdr.v1.BackupDR.GetBackup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.backupdr.v1.BackupView" - } - ], - "resultType": ".google.cloud.backupdr.v1.Backup", - "client": { - "shortName": "BackupDRClient", - "fullName": "google.cloud.backupdr.v1.BackupDRClient" - }, - "method": { - "shortName": "GetBackup", - "fullName": "google.cloud.backupdr.v1.BackupDR.GetBackup", - "service": { - "shortName": "BackupDR", - "fullName": "google.cloud.backupdr.v1.BackupDR" - } - } - } - }, - { - "regionTag": "backupdr_v1_generated_BackupDR_UpdateBackup_async", - "title": "BackupDR updateBackup Sample", - "origin": "API_DEFINITION", - "description": " Updates the settings of a Backup.", - "canonical": true, - "file": "backup_d_r.update_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateBackup", - "fullName": "google.cloud.backupdr.v1.BackupDR.UpdateBackup", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "backup", - "type": ".google.cloud.backupdr.v1.Backup" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BackupDRClient", - "fullName": "google.cloud.backupdr.v1.BackupDRClient" - }, - "method": { - "shortName": "UpdateBackup", - "fullName": "google.cloud.backupdr.v1.BackupDR.UpdateBackup", - "service": { - "shortName": "BackupDR", - "fullName": "google.cloud.backupdr.v1.BackupDR" - } - } - } - }, - { - "regionTag": "backupdr_v1_generated_BackupDR_DeleteBackup_async", - "title": "BackupDR deleteBackup Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Backup.", - "canonical": true, - "file": "backup_d_r.delete_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteBackup", - "fullName": "google.cloud.backupdr.v1.BackupDR.DeleteBackup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BackupDRClient", - "fullName": "google.cloud.backupdr.v1.BackupDRClient" - }, - "method": { - "shortName": "DeleteBackup", - "fullName": "google.cloud.backupdr.v1.BackupDR.DeleteBackup", - "service": { - "shortName": "BackupDR", - "fullName": "google.cloud.backupdr.v1.BackupDR" - } - } - } - }, - { - "regionTag": "backupdr_v1_generated_BackupDR_RestoreBackup_async", - "title": "BackupDR restoreBackup Sample", - "origin": "API_DEFINITION", - "description": " Restore from a Backup", - "canonical": true, - "file": "backup_d_r.restore_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 101, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RestoreBackup", - "fullName": "google.cloud.backupdr.v1.BackupDR.RestoreBackup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "compute_instance_target_environment", - "type": ".google.cloud.backupdr.v1.ComputeInstanceTargetEnvironment" - }, - { - "name": "disk_target_environment", - "type": ".google.cloud.backupdr.v1.DiskTargetEnvironment" - }, - { - "name": "region_disk_target_environment", - "type": ".google.cloud.backupdr.v1.RegionDiskTargetEnvironment" - }, - { - "name": "compute_instance_restore_properties", - "type": ".google.cloud.backupdr.v1.ComputeInstanceRestoreProperties" - }, - { - "name": "disk_restore_properties", - "type": ".google.cloud.backupdr.v1.DiskRestoreProperties" - }, - { - "name": "clear_overrides_field_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BackupDRClient", - "fullName": "google.cloud.backupdr.v1.BackupDRClient" - }, - "method": { - "shortName": "RestoreBackup", - "fullName": "google.cloud.backupdr.v1.BackupDR.RestoreBackup", - "service": { - "shortName": "BackupDR", - "fullName": "google.cloud.backupdr.v1.BackupDR" - } - } - } - }, - { - "regionTag": "backupdr_v1_generated_BackupDR_CreateBackupPlan_async", - "title": "BackupDR createBackupPlan Sample", - "origin": "API_DEFINITION", - "description": " Create a BackupPlan", - "canonical": true, - "file": "backup_d_r.create_backup_plan.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateBackupPlan", - "fullName": "google.cloud.backupdr.v1.BackupDR.CreateBackupPlan", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "backup_plan_id", - "type": "TYPE_STRING" - }, - { - "name": "backup_plan", - "type": ".google.cloud.backupdr.v1.BackupPlan" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BackupDRClient", - "fullName": "google.cloud.backupdr.v1.BackupDRClient" - }, - "method": { - "shortName": "CreateBackupPlan", - "fullName": "google.cloud.backupdr.v1.BackupDR.CreateBackupPlan", - "service": { - "shortName": "BackupDR", - "fullName": "google.cloud.backupdr.v1.BackupDR" - } - } - } - }, - { - "regionTag": "backupdr_v1_generated_BackupDR_UpdateBackupPlan_async", - "title": "BackupDR updateBackupPlan Sample", - "origin": "API_DEFINITION", - "description": " Update a BackupPlan.", - "canonical": true, - "file": "backup_d_r.update_backup_plan.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateBackupPlan", - "fullName": "google.cloud.backupdr.v1.BackupDR.UpdateBackupPlan", - "async": true, - "parameters": [ - { - "name": "backup_plan", - "type": ".google.cloud.backupdr.v1.BackupPlan" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BackupDRClient", - "fullName": "google.cloud.backupdr.v1.BackupDRClient" - }, - "method": { - "shortName": "UpdateBackupPlan", - "fullName": "google.cloud.backupdr.v1.BackupDR.UpdateBackupPlan", - "service": { - "shortName": "BackupDR", - "fullName": "google.cloud.backupdr.v1.BackupDR" - } - } - } - }, - { - "regionTag": "backupdr_v1_generated_BackupDR_GetBackupPlan_async", - "title": "BackupDR getBackupPlan Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single BackupPlan.", - "canonical": true, - "file": "backup_d_r.get_backup_plan.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBackupPlan", - "fullName": "google.cloud.backupdr.v1.BackupDR.GetBackupPlan", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.backupdr.v1.BackupPlan", - "client": { - "shortName": "BackupDRClient", - "fullName": "google.cloud.backupdr.v1.BackupDRClient" - }, - "method": { - "shortName": "GetBackupPlan", - "fullName": "google.cloud.backupdr.v1.BackupDR.GetBackupPlan", - "service": { - "shortName": "BackupDR", - "fullName": "google.cloud.backupdr.v1.BackupDR" - } - } - } - }, - { - "regionTag": "backupdr_v1_generated_BackupDR_ListBackupPlans_async", - "title": "BackupDR listBackupPlans Sample", - "origin": "API_DEFINITION", - "description": " Lists BackupPlans in a given project and location.", - "canonical": true, - "file": "backup_d_r.list_backup_plans.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBackupPlans", - "fullName": "google.cloud.backupdr.v1.BackupDR.ListBackupPlans", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.backupdr.v1.ListBackupPlansResponse", - "client": { - "shortName": "BackupDRClient", - "fullName": "google.cloud.backupdr.v1.BackupDRClient" - }, - "method": { - "shortName": "ListBackupPlans", - "fullName": "google.cloud.backupdr.v1.BackupDR.ListBackupPlans", - "service": { - "shortName": "BackupDR", - "fullName": "google.cloud.backupdr.v1.BackupDR" - } - } - } - }, - { - "regionTag": "backupdr_v1_generated_BackupDR_DeleteBackupPlan_async", - "title": "BackupDR deleteBackupPlan Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single BackupPlan.", - "canonical": true, - "file": "backup_d_r.delete_backup_plan.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteBackupPlan", - "fullName": "google.cloud.backupdr.v1.BackupDR.DeleteBackupPlan", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BackupDRClient", - "fullName": "google.cloud.backupdr.v1.BackupDRClient" - }, - "method": { - "shortName": "DeleteBackupPlan", - "fullName": "google.cloud.backupdr.v1.BackupDR.DeleteBackupPlan", - "service": { - "shortName": "BackupDR", - "fullName": "google.cloud.backupdr.v1.BackupDR" - } - } - } - }, - { - "regionTag": "backupdr_v1_generated_BackupDR_GetBackupPlanRevision_async", - "title": "BackupDR getBackupPlanRevision Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single BackupPlanRevision.", - "canonical": true, - "file": "backup_d_r.get_backup_plan_revision.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBackupPlanRevision", - "fullName": "google.cloud.backupdr.v1.BackupDR.GetBackupPlanRevision", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.backupdr.v1.BackupPlanRevision", - "client": { - "shortName": "BackupDRClient", - "fullName": "google.cloud.backupdr.v1.BackupDRClient" - }, - "method": { - "shortName": "GetBackupPlanRevision", - "fullName": "google.cloud.backupdr.v1.BackupDR.GetBackupPlanRevision", - "service": { - "shortName": "BackupDR", - "fullName": "google.cloud.backupdr.v1.BackupDR" - } - } - } - }, - { - "regionTag": "backupdr_v1_generated_BackupDR_ListBackupPlanRevisions_async", - "title": "BackupDR listBackupPlanRevisions Sample", - "origin": "API_DEFINITION", - "description": " Lists BackupPlanRevisions in a given project and location.", - "canonical": true, - "file": "backup_d_r.list_backup_plan_revisions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBackupPlanRevisions", - "fullName": "google.cloud.backupdr.v1.BackupDR.ListBackupPlanRevisions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.backupdr.v1.ListBackupPlanRevisionsResponse", - "client": { - "shortName": "BackupDRClient", - "fullName": "google.cloud.backupdr.v1.BackupDRClient" - }, - "method": { - "shortName": "ListBackupPlanRevisions", - "fullName": "google.cloud.backupdr.v1.BackupDR.ListBackupPlanRevisions", - "service": { - "shortName": "BackupDR", - "fullName": "google.cloud.backupdr.v1.BackupDR" - } - } - } - }, - { - "regionTag": "backupdr_v1_generated_BackupDR_CreateBackupPlanAssociation_async", - "title": "BackupDR createBackupPlanAssociation Sample", - "origin": "API_DEFINITION", - "description": " Create a BackupPlanAssociation", - "canonical": true, - "file": "backup_d_r.create_backup_plan_association.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateBackupPlanAssociation", - "fullName": "google.cloud.backupdr.v1.BackupDR.CreateBackupPlanAssociation", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "backup_plan_association_id", - "type": "TYPE_STRING" - }, - { - "name": "backup_plan_association", - "type": ".google.cloud.backupdr.v1.BackupPlanAssociation" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BackupDRClient", - "fullName": "google.cloud.backupdr.v1.BackupDRClient" - }, - "method": { - "shortName": "CreateBackupPlanAssociation", - "fullName": "google.cloud.backupdr.v1.BackupDR.CreateBackupPlanAssociation", - "service": { - "shortName": "BackupDR", - "fullName": "google.cloud.backupdr.v1.BackupDR" - } - } - } - }, - { - "regionTag": "backupdr_v1_generated_BackupDR_UpdateBackupPlanAssociation_async", - "title": "BackupDR updateBackupPlanAssociation Sample", - "origin": "API_DEFINITION", - "description": " Update a BackupPlanAssociation.", - "canonical": true, - "file": "backup_d_r.update_backup_plan_association.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateBackupPlanAssociation", - "fullName": "google.cloud.backupdr.v1.BackupDR.UpdateBackupPlanAssociation", - "async": true, - "parameters": [ - { - "name": "backup_plan_association", - "type": ".google.cloud.backupdr.v1.BackupPlanAssociation" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BackupDRClient", - "fullName": "google.cloud.backupdr.v1.BackupDRClient" - }, - "method": { - "shortName": "UpdateBackupPlanAssociation", - "fullName": "google.cloud.backupdr.v1.BackupDR.UpdateBackupPlanAssociation", - "service": { - "shortName": "BackupDR", - "fullName": "google.cloud.backupdr.v1.BackupDR" - } - } - } - }, - { - "regionTag": "backupdr_v1_generated_BackupDR_GetBackupPlanAssociation_async", - "title": "BackupDR getBackupPlanAssociation Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single BackupPlanAssociation.", - "canonical": true, - "file": "backup_d_r.get_backup_plan_association.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBackupPlanAssociation", - "fullName": "google.cloud.backupdr.v1.BackupDR.GetBackupPlanAssociation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.backupdr.v1.BackupPlanAssociation", - "client": { - "shortName": "BackupDRClient", - "fullName": "google.cloud.backupdr.v1.BackupDRClient" - }, - "method": { - "shortName": "GetBackupPlanAssociation", - "fullName": "google.cloud.backupdr.v1.BackupDR.GetBackupPlanAssociation", - "service": { - "shortName": "BackupDR", - "fullName": "google.cloud.backupdr.v1.BackupDR" - } - } - } - }, - { - "regionTag": "backupdr_v1_generated_BackupDR_ListBackupPlanAssociations_async", - "title": "BackupDR listBackupPlanAssociations Sample", - "origin": "API_DEFINITION", - "description": " Lists BackupPlanAssociations in a given project and location.", - "canonical": true, - "file": "backup_d_r.list_backup_plan_associations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBackupPlanAssociations", - "fullName": "google.cloud.backupdr.v1.BackupDR.ListBackupPlanAssociations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.backupdr.v1.ListBackupPlanAssociationsResponse", - "client": { - "shortName": "BackupDRClient", - "fullName": "google.cloud.backupdr.v1.BackupDRClient" - }, - "method": { - "shortName": "ListBackupPlanAssociations", - "fullName": "google.cloud.backupdr.v1.BackupDR.ListBackupPlanAssociations", - "service": { - "shortName": "BackupDR", - "fullName": "google.cloud.backupdr.v1.BackupDR" - } - } - } - }, - { - "regionTag": "backupdr_v1_generated_BackupDR_FetchBackupPlanAssociationsForResourceType_async", - "title": "BackupDR fetchBackupPlanAssociationsForResourceType Sample", - "origin": "API_DEFINITION", - "description": " List BackupPlanAssociations for a given resource type.", - "canonical": true, - "file": "backup_d_r.fetch_backup_plan_associations_for_resource_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 97, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchBackupPlanAssociationsForResourceType", - "fullName": "google.cloud.backupdr.v1.BackupDR.FetchBackupPlanAssociationsForResourceType", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "resource_type", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.backupdr.v1.FetchBackupPlanAssociationsForResourceTypeResponse", - "client": { - "shortName": "BackupDRClient", - "fullName": "google.cloud.backupdr.v1.BackupDRClient" - }, - "method": { - "shortName": "FetchBackupPlanAssociationsForResourceType", - "fullName": "google.cloud.backupdr.v1.BackupDR.FetchBackupPlanAssociationsForResourceType", - "service": { - "shortName": "BackupDR", - "fullName": "google.cloud.backupdr.v1.BackupDR" - } - } - } - }, - { - "regionTag": "backupdr_v1_generated_BackupDR_DeleteBackupPlanAssociation_async", - "title": "BackupDR deleteBackupPlanAssociation Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single BackupPlanAssociation.", - "canonical": true, - "file": "backup_d_r.delete_backup_plan_association.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteBackupPlanAssociation", - "fullName": "google.cloud.backupdr.v1.BackupDR.DeleteBackupPlanAssociation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BackupDRClient", - "fullName": "google.cloud.backupdr.v1.BackupDRClient" - }, - "method": { - "shortName": "DeleteBackupPlanAssociation", - "fullName": "google.cloud.backupdr.v1.BackupDR.DeleteBackupPlanAssociation", - "service": { - "shortName": "BackupDR", - "fullName": "google.cloud.backupdr.v1.BackupDR" - } - } - } - }, - { - "regionTag": "backupdr_v1_generated_BackupDR_TriggerBackup_async", - "title": "BackupDR triggerBackup Sample", - "origin": "API_DEFINITION", - "description": " Triggers a new Backup.", - "canonical": true, - "file": "backup_d_r.trigger_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TriggerBackup", - "fullName": "google.cloud.backupdr.v1.BackupDR.TriggerBackup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "rule_id", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BackupDRClient", - "fullName": "google.cloud.backupdr.v1.BackupDRClient" - }, - "method": { - "shortName": "TriggerBackup", - "fullName": "google.cloud.backupdr.v1.BackupDR.TriggerBackup", - "service": { - "shortName": "BackupDR", - "fullName": "google.cloud.backupdr.v1.BackupDR" - } - } - } - }, - { - "regionTag": "backupdr_v1_generated_BackupDR_GetDataSourceReference_async", - "title": "BackupDR getDataSourceReference Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single DataSourceReference.", - "canonical": true, - "file": "backup_d_r.get_data_source_reference.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDataSourceReference", - "fullName": "google.cloud.backupdr.v1.BackupDR.GetDataSourceReference", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.backupdr.v1.DataSourceReference", - "client": { - "shortName": "BackupDRClient", - "fullName": "google.cloud.backupdr.v1.BackupDRClient" - }, - "method": { - "shortName": "GetDataSourceReference", - "fullName": "google.cloud.backupdr.v1.BackupDR.GetDataSourceReference", - "service": { - "shortName": "BackupDR", - "fullName": "google.cloud.backupdr.v1.BackupDR" - } - } - } - }, - { - "regionTag": "backupdr_v1_generated_BackupDR_ListDataSourceReferences_async", - "title": "BackupDR listDataSourceReferences Sample", - "origin": "API_DEFINITION", - "description": " Lists DataSourceReferences for a given project and location.", - "canonical": true, - "file": "backup_d_r.list_data_source_references.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 88, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDataSourceReferences", - "fullName": "google.cloud.backupdr.v1.BackupDR.ListDataSourceReferences", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.backupdr.v1.ListDataSourceReferencesResponse", - "client": { - "shortName": "BackupDRClient", - "fullName": "google.cloud.backupdr.v1.BackupDRClient" - }, - "method": { - "shortName": "ListDataSourceReferences", - "fullName": "google.cloud.backupdr.v1.BackupDR.ListDataSourceReferences", - "service": { - "shortName": "BackupDR", - "fullName": "google.cloud.backupdr.v1.BackupDR" - } - } - } - }, - { - "regionTag": "backupdr_v1_generated_BackupDR_FetchDataSourceReferencesForResourceType_async", - "title": "BackupDR fetchDataSourceReferencesForResourceType Sample", - "origin": "API_DEFINITION", - "description": " Fetch DataSourceReferences for a given project, location and resource type.", - "canonical": true, - "file": "backup_d_r.fetch_data_source_references_for_resource_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 101, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchDataSourceReferencesForResourceType", - "fullName": "google.cloud.backupdr.v1.BackupDR.FetchDataSourceReferencesForResourceType", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "resource_type", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.backupdr.v1.FetchDataSourceReferencesForResourceTypeResponse", - "client": { - "shortName": "BackupDRClient", - "fullName": "google.cloud.backupdr.v1.BackupDRClient" - }, - "method": { - "shortName": "FetchDataSourceReferencesForResourceType", - "fullName": "google.cloud.backupdr.v1.BackupDR.FetchDataSourceReferencesForResourceType", - "service": { - "shortName": "BackupDR", - "fullName": "google.cloud.backupdr.v1.BackupDR" - } - } - } - }, - { - "regionTag": "backupdr_v1_generated_BackupDR_InitializeService_async", - "title": "BackupDR initializeService Sample", - "origin": "API_DEFINITION", - "description": " Initializes the service related config for a project.", - "canonical": true, - "file": "backup_d_r.initialize_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "InitializeService", - "fullName": "google.cloud.backupdr.v1.BackupDR.InitializeService", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "resource_type", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "cloud_sql_instance_initialization_config", - "type": ".google.cloud.backupdr.v1.CloudSqlInstanceInitializationConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BackupDRClient", - "fullName": "google.cloud.backupdr.v1.BackupDRClient" - }, - "method": { - "shortName": "InitializeService", - "fullName": "google.cloud.backupdr.v1.BackupDR.InitializeService", - "service": { - "shortName": "BackupDR", - "fullName": "google.cloud.backupdr.v1.BackupDR" - } - } - } - }, - { - "regionTag": "backupdr_v1_generated_BackupDrProtectionSummary_ListResourceBackupConfigs_async", - "title": "BackupDR listResourceBackupConfigs Sample", - "origin": "API_DEFINITION", - "description": " Lists ResourceBackupConfigs.", - "canonical": true, - "file": "backup_dr_protection_summary.list_resource_backup_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListResourceBackupConfigs", - "fullName": "google.cloud.backupdr.v1.BackupDrProtectionSummary.ListResourceBackupConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.backupdr.v1.ListResourceBackupConfigsResponse", - "client": { - "shortName": "BackupDrProtectionSummaryClient", - "fullName": "google.cloud.backupdr.v1.BackupDrProtectionSummaryClient" - }, - "method": { - "shortName": "ListResourceBackupConfigs", - "fullName": "google.cloud.backupdr.v1.BackupDrProtectionSummary.ListResourceBackupConfigs", - "service": { - "shortName": "BackupDrProtectionSummary", - "fullName": "google.cloud.backupdr.v1.BackupDrProtectionSummary" - } - } - } - } - ] -} diff --git a/packages/google-cloud-baremetalsolution/samples/generated/v2/snippet_metadata_google.cloud.baremetalsolution.v2.json b/packages/google-cloud-baremetalsolution/samples/generated/v2/snippet_metadata_google.cloud.baremetalsolution.v2.json deleted file mode 100644 index 9c89b584a612..000000000000 --- a/packages/google-cloud-baremetalsolution/samples/generated/v2/snippet_metadata_google.cloud.baremetalsolution.v2.json +++ /dev/null @@ -1,1947 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-baremetalsolution", - "version": "2.1.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.baremetalsolution.v2", - "version": "v2" - } - ] - }, - "snippets": [ - { - "regionTag": "baremetalsolution_v2_generated_BareMetalSolution_ListInstances_async", - "title": "BareMetalSolution listInstances Sample", - "origin": "API_DEFINITION", - "description": " List servers in a given project and location.", - "canonical": true, - "file": "bare_metal_solution.list_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListInstances", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.ListInstances", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.baremetalsolution.v2.ListInstancesResponse", - "client": { - "shortName": "BareMetalSolutionClient", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolutionClient" - }, - "method": { - "shortName": "ListInstances", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.ListInstances", - "service": { - "shortName": "BareMetalSolution", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution" - } - } - } - }, - { - "regionTag": "baremetalsolution_v2_generated_BareMetalSolution_GetInstance_async", - "title": "BareMetalSolution getInstance Sample", - "origin": "API_DEFINITION", - "description": " Get details about a single server.", - "canonical": true, - "file": "bare_metal_solution.get_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetInstance", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.GetInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.baremetalsolution.v2.Instance", - "client": { - "shortName": "BareMetalSolutionClient", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolutionClient" - }, - "method": { - "shortName": "GetInstance", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.GetInstance", - "service": { - "shortName": "BareMetalSolution", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution" - } - } - } - }, - { - "regionTag": "baremetalsolution_v2_generated_BareMetalSolution_UpdateInstance_async", - "title": "BareMetalSolution updateInstance Sample", - "origin": "API_DEFINITION", - "description": " Update details of a single server.", - "canonical": true, - "file": "bare_metal_solution.update_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateInstance", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.UpdateInstance", - "async": true, - "parameters": [ - { - "name": "instance", - "type": ".google.cloud.baremetalsolution.v2.Instance" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BareMetalSolutionClient", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolutionClient" - }, - "method": { - "shortName": "UpdateInstance", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.UpdateInstance", - "service": { - "shortName": "BareMetalSolution", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution" - } - } - } - }, - { - "regionTag": "baremetalsolution_v2_generated_BareMetalSolution_RenameInstance_async", - "title": "BareMetalSolution renameInstance Sample", - "origin": "API_DEFINITION", - "description": " RenameInstance sets a new name for an instance. Use with caution, previous names become immediately invalidated.", - "canonical": true, - "file": "bare_metal_solution.rename_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RenameInstance", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.RenameInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "new_instance_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.baremetalsolution.v2.Instance", - "client": { - "shortName": "BareMetalSolutionClient", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolutionClient" - }, - "method": { - "shortName": "RenameInstance", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.RenameInstance", - "service": { - "shortName": "BareMetalSolution", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution" - } - } - } - }, - { - "regionTag": "baremetalsolution_v2_generated_BareMetalSolution_ResetInstance_async", - "title": "BareMetalSolution resetInstance Sample", - "origin": "API_DEFINITION", - "description": " Perform an ungraceful, hard reset on a server. Equivalent to shutting the power off and then turning it back on.", - "canonical": true, - "file": "bare_metal_solution.reset_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResetInstance", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.ResetInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BareMetalSolutionClient", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolutionClient" - }, - "method": { - "shortName": "ResetInstance", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.ResetInstance", - "service": { - "shortName": "BareMetalSolution", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution" - } - } - } - }, - { - "regionTag": "baremetalsolution_v2_generated_BareMetalSolution_StartInstance_async", - "title": "BareMetalSolution startInstance Sample", - "origin": "API_DEFINITION", - "description": " Starts a server that was shutdown.", - "canonical": true, - "file": "bare_metal_solution.start_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StartInstance", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.StartInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BareMetalSolutionClient", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolutionClient" - }, - "method": { - "shortName": "StartInstance", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.StartInstance", - "service": { - "shortName": "BareMetalSolution", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution" - } - } - } - }, - { - "regionTag": "baremetalsolution_v2_generated_BareMetalSolution_StopInstance_async", - "title": "BareMetalSolution stopInstance Sample", - "origin": "API_DEFINITION", - "description": " Stop a running server.", - "canonical": true, - "file": "bare_metal_solution.stop_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StopInstance", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.StopInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BareMetalSolutionClient", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolutionClient" - }, - "method": { - "shortName": "StopInstance", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.StopInstance", - "service": { - "shortName": "BareMetalSolution", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution" - } - } - } - }, - { - "regionTag": "baremetalsolution_v2_generated_BareMetalSolution_EnableInteractiveSerialConsole_async", - "title": "BareMetalSolution enableInteractiveSerialConsole Sample", - "origin": "API_DEFINITION", - "description": " Enable the interactive serial console feature on an instance.", - "canonical": true, - "file": "bare_metal_solution.enable_interactive_serial_console.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "EnableInteractiveSerialConsole", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.EnableInteractiveSerialConsole", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BareMetalSolutionClient", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolutionClient" - }, - "method": { - "shortName": "EnableInteractiveSerialConsole", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.EnableInteractiveSerialConsole", - "service": { - "shortName": "BareMetalSolution", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution" - } - } - } - }, - { - "regionTag": "baremetalsolution_v2_generated_BareMetalSolution_DisableInteractiveSerialConsole_async", - "title": "BareMetalSolution disableInteractiveSerialConsole Sample", - "origin": "API_DEFINITION", - "description": " Disable the interactive serial console feature on an instance.", - "canonical": true, - "file": "bare_metal_solution.disable_interactive_serial_console.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DisableInteractiveSerialConsole", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.DisableInteractiveSerialConsole", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BareMetalSolutionClient", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolutionClient" - }, - "method": { - "shortName": "DisableInteractiveSerialConsole", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.DisableInteractiveSerialConsole", - "service": { - "shortName": "BareMetalSolution", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution" - } - } - } - }, - { - "regionTag": "baremetalsolution_v2_generated_BareMetalSolution_DetachLun_async", - "title": "BareMetalSolution detachLun Sample", - "origin": "API_DEFINITION", - "description": " Detach LUN from Instance.", - "canonical": true, - "file": "bare_metal_solution.detach_lun.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DetachLun", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.DetachLun", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "lun", - "type": "TYPE_STRING" - }, - { - "name": "skip_reboot", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BareMetalSolutionClient", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolutionClient" - }, - "method": { - "shortName": "DetachLun", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.DetachLun", - "service": { - "shortName": "BareMetalSolution", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution" - } - } - } - }, - { - "regionTag": "baremetalsolution_v2_generated_BareMetalSolution_ListSSHKeys_async", - "title": "BareMetalSolution listSSHKeys Sample", - "origin": "API_DEFINITION", - "description": " Lists the public SSH keys registered for the specified project. These SSH keys are used only for the interactive serial console feature.", - "canonical": true, - "file": "bare_metal_solution.list_s_s_h_keys.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSSHKeys", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.ListSSHKeys", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.baremetalsolution.v2.ListSSHKeysResponse", - "client": { - "shortName": "BareMetalSolutionClient", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolutionClient" - }, - "method": { - "shortName": "ListSSHKeys", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.ListSSHKeys", - "service": { - "shortName": "BareMetalSolution", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution" - } - } - } - }, - { - "regionTag": "baremetalsolution_v2_generated_BareMetalSolution_CreateSSHKey_async", - "title": "BareMetalSolution createSSHKey Sample", - "origin": "API_DEFINITION", - "description": " Register a public SSH key in the specified project for use with the interactive serial console feature.", - "canonical": true, - "file": "bare_metal_solution.create_s_s_h_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSSHKey", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.CreateSSHKey", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "ssh_key", - "type": ".google.cloud.baremetalsolution.v2.SSHKey" - }, - { - "name": "ssh_key_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.baremetalsolution.v2.SSHKey", - "client": { - "shortName": "BareMetalSolutionClient", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolutionClient" - }, - "method": { - "shortName": "CreateSSHKey", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.CreateSSHKey", - "service": { - "shortName": "BareMetalSolution", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution" - } - } - } - }, - { - "regionTag": "baremetalsolution_v2_generated_BareMetalSolution_DeleteSSHKey_async", - "title": "BareMetalSolution deleteSSHKey Sample", - "origin": "API_DEFINITION", - "description": " Deletes a public SSH key registered in the specified project.", - "canonical": true, - "file": "bare_metal_solution.delete_s_s_h_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSSHKey", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.DeleteSSHKey", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "BareMetalSolutionClient", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolutionClient" - }, - "method": { - "shortName": "DeleteSSHKey", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.DeleteSSHKey", - "service": { - "shortName": "BareMetalSolution", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution" - } - } - } - }, - { - "regionTag": "baremetalsolution_v2_generated_BareMetalSolution_ListVolumes_async", - "title": "BareMetalSolution listVolumes Sample", - "origin": "API_DEFINITION", - "description": " List storage volumes in a given project and location.", - "canonical": true, - "file": "bare_metal_solution.list_volumes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListVolumes", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.ListVolumes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.baremetalsolution.v2.ListVolumesResponse", - "client": { - "shortName": "BareMetalSolutionClient", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolutionClient" - }, - "method": { - "shortName": "ListVolumes", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.ListVolumes", - "service": { - "shortName": "BareMetalSolution", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution" - } - } - } - }, - { - "regionTag": "baremetalsolution_v2_generated_BareMetalSolution_GetVolume_async", - "title": "BareMetalSolution getVolume Sample", - "origin": "API_DEFINITION", - "description": " Get details of a single storage volume.", - "canonical": true, - "file": "bare_metal_solution.get_volume.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetVolume", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.GetVolume", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.baremetalsolution.v2.Volume", - "client": { - "shortName": "BareMetalSolutionClient", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolutionClient" - }, - "method": { - "shortName": "GetVolume", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.GetVolume", - "service": { - "shortName": "BareMetalSolution", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution" - } - } - } - }, - { - "regionTag": "baremetalsolution_v2_generated_BareMetalSolution_UpdateVolume_async", - "title": "BareMetalSolution updateVolume Sample", - "origin": "API_DEFINITION", - "description": " Update details of a single storage volume.", - "canonical": true, - "file": "bare_metal_solution.update_volume.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateVolume", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.UpdateVolume", - "async": true, - "parameters": [ - { - "name": "volume", - "type": ".google.cloud.baremetalsolution.v2.Volume" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BareMetalSolutionClient", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolutionClient" - }, - "method": { - "shortName": "UpdateVolume", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.UpdateVolume", - "service": { - "shortName": "BareMetalSolution", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution" - } - } - } - }, - { - "regionTag": "baremetalsolution_v2_generated_BareMetalSolution_RenameVolume_async", - "title": "BareMetalSolution renameVolume Sample", - "origin": "API_DEFINITION", - "description": " RenameVolume sets a new name for a volume. Use with caution, previous names become immediately invalidated.", - "canonical": true, - "file": "bare_metal_solution.rename_volume.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RenameVolume", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.RenameVolume", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "new_volume_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.baremetalsolution.v2.Volume", - "client": { - "shortName": "BareMetalSolutionClient", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolutionClient" - }, - "method": { - "shortName": "RenameVolume", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.RenameVolume", - "service": { - "shortName": "BareMetalSolution", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution" - } - } - } - }, - { - "regionTag": "baremetalsolution_v2_generated_BareMetalSolution_EvictVolume_async", - "title": "BareMetalSolution evictVolume Sample", - "origin": "API_DEFINITION", - "description": " Skips volume's cooloff and deletes it now. Volume must be in cooloff state.", - "canonical": true, - "file": "bare_metal_solution.evict_volume.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "EvictVolume", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.EvictVolume", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BareMetalSolutionClient", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolutionClient" - }, - "method": { - "shortName": "EvictVolume", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.EvictVolume", - "service": { - "shortName": "BareMetalSolution", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution" - } - } - } - }, - { - "regionTag": "baremetalsolution_v2_generated_BareMetalSolution_ResizeVolume_async", - "title": "BareMetalSolution resizeVolume Sample", - "origin": "API_DEFINITION", - "description": " Emergency Volume resize.", - "canonical": true, - "file": "bare_metal_solution.resize_volume.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResizeVolume", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.ResizeVolume", - "async": true, - "parameters": [ - { - "name": "volume", - "type": "TYPE_STRING" - }, - { - "name": "size_gib", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BareMetalSolutionClient", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolutionClient" - }, - "method": { - "shortName": "ResizeVolume", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.ResizeVolume", - "service": { - "shortName": "BareMetalSolution", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution" - } - } - } - }, - { - "regionTag": "baremetalsolution_v2_generated_BareMetalSolution_ListNetworks_async", - "title": "BareMetalSolution listNetworks Sample", - "origin": "API_DEFINITION", - "description": " List network in a given project and location.", - "canonical": true, - "file": "bare_metal_solution.list_networks.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListNetworks", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.ListNetworks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.baremetalsolution.v2.ListNetworksResponse", - "client": { - "shortName": "BareMetalSolutionClient", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolutionClient" - }, - "method": { - "shortName": "ListNetworks", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.ListNetworks", - "service": { - "shortName": "BareMetalSolution", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution" - } - } - } - }, - { - "regionTag": "baremetalsolution_v2_generated_BareMetalSolution_ListNetworkUsage_async", - "title": "BareMetalSolution listNetworkUsage Sample", - "origin": "API_DEFINITION", - "description": " List all Networks (and used IPs for each Network) in the vendor account associated with the specified project.", - "canonical": true, - "file": "bare_metal_solution.list_network_usage.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListNetworkUsage", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.ListNetworkUsage", - "async": true, - "parameters": [ - { - "name": "location", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.baremetalsolution.v2.ListNetworkUsageResponse", - "client": { - "shortName": "BareMetalSolutionClient", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolutionClient" - }, - "method": { - "shortName": "ListNetworkUsage", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.ListNetworkUsage", - "service": { - "shortName": "BareMetalSolution", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution" - } - } - } - }, - { - "regionTag": "baremetalsolution_v2_generated_BareMetalSolution_GetNetwork_async", - "title": "BareMetalSolution getNetwork Sample", - "origin": "API_DEFINITION", - "description": " Get details of a single network.", - "canonical": true, - "file": "bare_metal_solution.get_network.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetNetwork", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.GetNetwork", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.baremetalsolution.v2.Network", - "client": { - "shortName": "BareMetalSolutionClient", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolutionClient" - }, - "method": { - "shortName": "GetNetwork", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.GetNetwork", - "service": { - "shortName": "BareMetalSolution", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution" - } - } - } - }, - { - "regionTag": "baremetalsolution_v2_generated_BareMetalSolution_UpdateNetwork_async", - "title": "BareMetalSolution updateNetwork Sample", - "origin": "API_DEFINITION", - "description": " Update details of a single network.", - "canonical": true, - "file": "bare_metal_solution.update_network.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateNetwork", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.UpdateNetwork", - "async": true, - "parameters": [ - { - "name": "network", - "type": ".google.cloud.baremetalsolution.v2.Network" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BareMetalSolutionClient", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolutionClient" - }, - "method": { - "shortName": "UpdateNetwork", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.UpdateNetwork", - "service": { - "shortName": "BareMetalSolution", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution" - } - } - } - }, - { - "regionTag": "baremetalsolution_v2_generated_BareMetalSolution_CreateVolumeSnapshot_async", - "title": "BareMetalSolution createVolumeSnapshot Sample", - "origin": "API_DEFINITION", - "description": " Takes a snapshot of a boot volume. Returns INVALID_ARGUMENT if called for a non-boot volume.", - "canonical": true, - "file": "bare_metal_solution.create_volume_snapshot.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateVolumeSnapshot", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.CreateVolumeSnapshot", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "volume_snapshot", - "type": ".google.cloud.baremetalsolution.v2.VolumeSnapshot" - } - ], - "resultType": ".google.cloud.baremetalsolution.v2.VolumeSnapshot", - "client": { - "shortName": "BareMetalSolutionClient", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolutionClient" - }, - "method": { - "shortName": "CreateVolumeSnapshot", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.CreateVolumeSnapshot", - "service": { - "shortName": "BareMetalSolution", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution" - } - } - } - }, - { - "regionTag": "baremetalsolution_v2_generated_BareMetalSolution_RestoreVolumeSnapshot_async", - "title": "BareMetalSolution restoreVolumeSnapshot Sample", - "origin": "API_DEFINITION", - "description": " Uses the specified snapshot to restore its parent volume. Returns INVALID_ARGUMENT if called for a non-boot volume.", - "canonical": true, - "file": "bare_metal_solution.restore_volume_snapshot.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RestoreVolumeSnapshot", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.RestoreVolumeSnapshot", - "async": true, - "parameters": [ - { - "name": "volume_snapshot", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BareMetalSolutionClient", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolutionClient" - }, - "method": { - "shortName": "RestoreVolumeSnapshot", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.RestoreVolumeSnapshot", - "service": { - "shortName": "BareMetalSolution", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution" - } - } - } - }, - { - "regionTag": "baremetalsolution_v2_generated_BareMetalSolution_DeleteVolumeSnapshot_async", - "title": "BareMetalSolution deleteVolumeSnapshot Sample", - "origin": "API_DEFINITION", - "description": " Deletes a volume snapshot. Returns INVALID_ARGUMENT if called for a non-boot volume.", - "canonical": true, - "file": "bare_metal_solution.delete_volume_snapshot.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteVolumeSnapshot", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.DeleteVolumeSnapshot", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "BareMetalSolutionClient", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolutionClient" - }, - "method": { - "shortName": "DeleteVolumeSnapshot", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.DeleteVolumeSnapshot", - "service": { - "shortName": "BareMetalSolution", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution" - } - } - } - }, - { - "regionTag": "baremetalsolution_v2_generated_BareMetalSolution_GetVolumeSnapshot_async", - "title": "BareMetalSolution getVolumeSnapshot Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified snapshot resource. Returns INVALID_ARGUMENT if called for a non-boot volume.", - "canonical": true, - "file": "bare_metal_solution.get_volume_snapshot.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetVolumeSnapshot", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.GetVolumeSnapshot", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.baremetalsolution.v2.VolumeSnapshot", - "client": { - "shortName": "BareMetalSolutionClient", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolutionClient" - }, - "method": { - "shortName": "GetVolumeSnapshot", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.GetVolumeSnapshot", - "service": { - "shortName": "BareMetalSolution", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution" - } - } - } - }, - { - "regionTag": "baremetalsolution_v2_generated_BareMetalSolution_ListVolumeSnapshots_async", - "title": "BareMetalSolution listVolumeSnapshots Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of snapshots for the specified volume. Returns a response with an empty list of snapshots if called for a non-boot volume.", - "canonical": true, - "file": "bare_metal_solution.list_volume_snapshots.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListVolumeSnapshots", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.ListVolumeSnapshots", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.baremetalsolution.v2.ListVolumeSnapshotsResponse", - "client": { - "shortName": "BareMetalSolutionClient", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolutionClient" - }, - "method": { - "shortName": "ListVolumeSnapshots", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.ListVolumeSnapshots", - "service": { - "shortName": "BareMetalSolution", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution" - } - } - } - }, - { - "regionTag": "baremetalsolution_v2_generated_BareMetalSolution_GetLun_async", - "title": "BareMetalSolution getLun Sample", - "origin": "API_DEFINITION", - "description": " Get details of a single storage logical unit number(LUN).", - "canonical": true, - "file": "bare_metal_solution.get_lun.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetLun", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.GetLun", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.baremetalsolution.v2.Lun", - "client": { - "shortName": "BareMetalSolutionClient", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolutionClient" - }, - "method": { - "shortName": "GetLun", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.GetLun", - "service": { - "shortName": "BareMetalSolution", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution" - } - } - } - }, - { - "regionTag": "baremetalsolution_v2_generated_BareMetalSolution_ListLuns_async", - "title": "BareMetalSolution listLuns Sample", - "origin": "API_DEFINITION", - "description": " List storage volume luns for given storage volume.", - "canonical": true, - "file": "bare_metal_solution.list_luns.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListLuns", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.ListLuns", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.baremetalsolution.v2.ListLunsResponse", - "client": { - "shortName": "BareMetalSolutionClient", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolutionClient" - }, - "method": { - "shortName": "ListLuns", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.ListLuns", - "service": { - "shortName": "BareMetalSolution", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution" - } - } - } - }, - { - "regionTag": "baremetalsolution_v2_generated_BareMetalSolution_EvictLun_async", - "title": "BareMetalSolution evictLun Sample", - "origin": "API_DEFINITION", - "description": " Skips lun's cooloff and deletes it now. Lun must be in cooloff state.", - "canonical": true, - "file": "bare_metal_solution.evict_lun.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "EvictLun", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.EvictLun", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BareMetalSolutionClient", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolutionClient" - }, - "method": { - "shortName": "EvictLun", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.EvictLun", - "service": { - "shortName": "BareMetalSolution", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution" - } - } - } - }, - { - "regionTag": "baremetalsolution_v2_generated_BareMetalSolution_GetNfsShare_async", - "title": "BareMetalSolution getNfsShare Sample", - "origin": "API_DEFINITION", - "description": " Get details of a single NFS share.", - "canonical": true, - "file": "bare_metal_solution.get_nfs_share.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetNfsShare", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.GetNfsShare", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.baremetalsolution.v2.NfsShare", - "client": { - "shortName": "BareMetalSolutionClient", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolutionClient" - }, - "method": { - "shortName": "GetNfsShare", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.GetNfsShare", - "service": { - "shortName": "BareMetalSolution", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution" - } - } - } - }, - { - "regionTag": "baremetalsolution_v2_generated_BareMetalSolution_ListNfsShares_async", - "title": "BareMetalSolution listNfsShares Sample", - "origin": "API_DEFINITION", - "description": " List NFS shares.", - "canonical": true, - "file": "bare_metal_solution.list_nfs_shares.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListNfsShares", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.ListNfsShares", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.baremetalsolution.v2.ListNfsSharesResponse", - "client": { - "shortName": "BareMetalSolutionClient", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolutionClient" - }, - "method": { - "shortName": "ListNfsShares", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.ListNfsShares", - "service": { - "shortName": "BareMetalSolution", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution" - } - } - } - }, - { - "regionTag": "baremetalsolution_v2_generated_BareMetalSolution_UpdateNfsShare_async", - "title": "BareMetalSolution updateNfsShare Sample", - "origin": "API_DEFINITION", - "description": " Update details of a single NFS share.", - "canonical": true, - "file": "bare_metal_solution.update_nfs_share.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateNfsShare", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.UpdateNfsShare", - "async": true, - "parameters": [ - { - "name": "nfs_share", - "type": ".google.cloud.baremetalsolution.v2.NfsShare" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BareMetalSolutionClient", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolutionClient" - }, - "method": { - "shortName": "UpdateNfsShare", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.UpdateNfsShare", - "service": { - "shortName": "BareMetalSolution", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution" - } - } - } - }, - { - "regionTag": "baremetalsolution_v2_generated_BareMetalSolution_CreateNfsShare_async", - "title": "BareMetalSolution createNfsShare Sample", - "origin": "API_DEFINITION", - "description": " Create an NFS share.", - "canonical": true, - "file": "bare_metal_solution.create_nfs_share.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateNfsShare", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.CreateNfsShare", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "nfs_share", - "type": ".google.cloud.baremetalsolution.v2.NfsShare" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BareMetalSolutionClient", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolutionClient" - }, - "method": { - "shortName": "CreateNfsShare", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.CreateNfsShare", - "service": { - "shortName": "BareMetalSolution", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution" - } - } - } - }, - { - "regionTag": "baremetalsolution_v2_generated_BareMetalSolution_RenameNfsShare_async", - "title": "BareMetalSolution renameNfsShare Sample", - "origin": "API_DEFINITION", - "description": " RenameNfsShare sets a new name for an nfsshare. Use with caution, previous names become immediately invalidated.", - "canonical": true, - "file": "bare_metal_solution.rename_nfs_share.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RenameNfsShare", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.RenameNfsShare", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "new_nfsshare_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.baremetalsolution.v2.NfsShare", - "client": { - "shortName": "BareMetalSolutionClient", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolutionClient" - }, - "method": { - "shortName": "RenameNfsShare", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.RenameNfsShare", - "service": { - "shortName": "BareMetalSolution", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution" - } - } - } - }, - { - "regionTag": "baremetalsolution_v2_generated_BareMetalSolution_DeleteNfsShare_async", - "title": "BareMetalSolution deleteNfsShare Sample", - "origin": "API_DEFINITION", - "description": " Delete an NFS share. The underlying volume is automatically deleted.", - "canonical": true, - "file": "bare_metal_solution.delete_nfs_share.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteNfsShare", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.DeleteNfsShare", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BareMetalSolutionClient", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolutionClient" - }, - "method": { - "shortName": "DeleteNfsShare", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.DeleteNfsShare", - "service": { - "shortName": "BareMetalSolution", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution" - } - } - } - }, - { - "regionTag": "baremetalsolution_v2_generated_BareMetalSolution_ListProvisioningQuotas_async", - "title": "BareMetalSolution listProvisioningQuotas Sample", - "origin": "API_DEFINITION", - "description": " List the budget details to provision resources on a given project.", - "canonical": true, - "file": "bare_metal_solution.list_provisioning_quotas.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListProvisioningQuotas", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.ListProvisioningQuotas", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.baremetalsolution.v2.ListProvisioningQuotasResponse", - "client": { - "shortName": "BareMetalSolutionClient", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolutionClient" - }, - "method": { - "shortName": "ListProvisioningQuotas", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.ListProvisioningQuotas", - "service": { - "shortName": "BareMetalSolution", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution" - } - } - } - }, - { - "regionTag": "baremetalsolution_v2_generated_BareMetalSolution_SubmitProvisioningConfig_async", - "title": "BareMetalSolution submitProvisioningConfig Sample", - "origin": "API_DEFINITION", - "description": " Submit a provisiong configuration for a given project.", - "canonical": true, - "file": "bare_metal_solution.submit_provisioning_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SubmitProvisioningConfig", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.SubmitProvisioningConfig", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "provisioning_config", - "type": ".google.cloud.baremetalsolution.v2.ProvisioningConfig" - }, - { - "name": "email", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.baremetalsolution.v2.SubmitProvisioningConfigResponse", - "client": { - "shortName": "BareMetalSolutionClient", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolutionClient" - }, - "method": { - "shortName": "SubmitProvisioningConfig", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.SubmitProvisioningConfig", - "service": { - "shortName": "BareMetalSolution", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution" - } - } - } - }, - { - "regionTag": "baremetalsolution_v2_generated_BareMetalSolution_GetProvisioningConfig_async", - "title": "BareMetalSolution getProvisioningConfig Sample", - "origin": "API_DEFINITION", - "description": " Get ProvisioningConfig by name.", - "canonical": true, - "file": "bare_metal_solution.get_provisioning_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetProvisioningConfig", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.GetProvisioningConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.baremetalsolution.v2.ProvisioningConfig", - "client": { - "shortName": "BareMetalSolutionClient", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolutionClient" - }, - "method": { - "shortName": "GetProvisioningConfig", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.GetProvisioningConfig", - "service": { - "shortName": "BareMetalSolution", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution" - } - } - } - }, - { - "regionTag": "baremetalsolution_v2_generated_BareMetalSolution_CreateProvisioningConfig_async", - "title": "BareMetalSolution createProvisioningConfig Sample", - "origin": "API_DEFINITION", - "description": " Create new ProvisioningConfig.", - "canonical": true, - "file": "bare_metal_solution.create_provisioning_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateProvisioningConfig", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.CreateProvisioningConfig", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "provisioning_config", - "type": ".google.cloud.baremetalsolution.v2.ProvisioningConfig" - }, - { - "name": "email", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.baremetalsolution.v2.ProvisioningConfig", - "client": { - "shortName": "BareMetalSolutionClient", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolutionClient" - }, - "method": { - "shortName": "CreateProvisioningConfig", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.CreateProvisioningConfig", - "service": { - "shortName": "BareMetalSolution", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution" - } - } - } - }, - { - "regionTag": "baremetalsolution_v2_generated_BareMetalSolution_UpdateProvisioningConfig_async", - "title": "BareMetalSolution updateProvisioningConfig Sample", - "origin": "API_DEFINITION", - "description": " Update existing ProvisioningConfig.", - "canonical": true, - "file": "bare_metal_solution.update_provisioning_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateProvisioningConfig", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.UpdateProvisioningConfig", - "async": true, - "parameters": [ - { - "name": "provisioning_config", - "type": ".google.cloud.baremetalsolution.v2.ProvisioningConfig" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "email", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.baremetalsolution.v2.ProvisioningConfig", - "client": { - "shortName": "BareMetalSolutionClient", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolutionClient" - }, - "method": { - "shortName": "UpdateProvisioningConfig", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.UpdateProvisioningConfig", - "service": { - "shortName": "BareMetalSolution", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution" - } - } - } - }, - { - "regionTag": "baremetalsolution_v2_generated_BareMetalSolution_RenameNetwork_async", - "title": "BareMetalSolution renameNetwork Sample", - "origin": "API_DEFINITION", - "description": " RenameNetwork sets a new name for a network. Use with caution, previous names become immediately invalidated.", - "canonical": true, - "file": "bare_metal_solution.rename_network.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RenameNetwork", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.RenameNetwork", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "new_network_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.baremetalsolution.v2.Network", - "client": { - "shortName": "BareMetalSolutionClient", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolutionClient" - }, - "method": { - "shortName": "RenameNetwork", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.RenameNetwork", - "service": { - "shortName": "BareMetalSolution", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution" - } - } - } - }, - { - "regionTag": "baremetalsolution_v2_generated_BareMetalSolution_ListOSImages_async", - "title": "BareMetalSolution listOSImages Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of OS images which are currently approved.", - "canonical": true, - "file": "bare_metal_solution.list_o_s_images.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListOSImages", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.ListOSImages", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.baremetalsolution.v2.ListOSImagesResponse", - "client": { - "shortName": "BareMetalSolutionClient", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolutionClient" - }, - "method": { - "shortName": "ListOSImages", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution.ListOSImages", - "service": { - "shortName": "BareMetalSolution", - "fullName": "google.cloud.baremetalsolution.v2.BareMetalSolution" - } - } - } - } - ] -} diff --git a/packages/google-cloud-batch/samples/generated/v1/snippet_metadata_google.cloud.batch.v1.json b/packages/google-cloud-batch/samples/generated/v1/snippet_metadata_google.cloud.batch.v1.json deleted file mode 100644 index 4242fd75015f..000000000000 --- a/packages/google-cloud-batch/samples/generated/v1/snippet_metadata_google.cloud.batch.v1.json +++ /dev/null @@ -1,347 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-batch", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.batch.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "batch_v1_generated_BatchService_CreateJob_async", - "title": "BatchService createJob Sample", - "origin": "API_DEFINITION", - "description": " Create a Job.", - "canonical": true, - "file": "batch_service.create_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateJob", - "fullName": "google.cloud.batch.v1.BatchService.CreateJob", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "job_id", - "type": "TYPE_STRING" - }, - { - "name": "job", - "type": ".google.cloud.batch.v1.Job" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.batch.v1.Job", - "client": { - "shortName": "BatchServiceClient", - "fullName": "google.cloud.batch.v1.BatchServiceClient" - }, - "method": { - "shortName": "CreateJob", - "fullName": "google.cloud.batch.v1.BatchService.CreateJob", - "service": { - "shortName": "BatchService", - "fullName": "google.cloud.batch.v1.BatchService" - } - } - } - }, - { - "regionTag": "batch_v1_generated_BatchService_GetJob_async", - "title": "BatchService getJob Sample", - "origin": "API_DEFINITION", - "description": " Get a Job specified by its resource name.", - "canonical": true, - "file": "batch_service.get_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetJob", - "fullName": "google.cloud.batch.v1.BatchService.GetJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.batch.v1.Job", - "client": { - "shortName": "BatchServiceClient", - "fullName": "google.cloud.batch.v1.BatchServiceClient" - }, - "method": { - "shortName": "GetJob", - "fullName": "google.cloud.batch.v1.BatchService.GetJob", - "service": { - "shortName": "BatchService", - "fullName": "google.cloud.batch.v1.BatchService" - } - } - } - }, - { - "regionTag": "batch_v1_generated_BatchService_DeleteJob_async", - "title": "BatchService deleteJob Sample", - "origin": "API_DEFINITION", - "description": " Delete a Job.", - "canonical": true, - "file": "batch_service.delete_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteJob", - "fullName": "google.cloud.batch.v1.BatchService.DeleteJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "reason", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BatchServiceClient", - "fullName": "google.cloud.batch.v1.BatchServiceClient" - }, - "method": { - "shortName": "DeleteJob", - "fullName": "google.cloud.batch.v1.BatchService.DeleteJob", - "service": { - "shortName": "BatchService", - "fullName": "google.cloud.batch.v1.BatchService" - } - } - } - }, - { - "regionTag": "batch_v1_generated_BatchService_CancelJob_async", - "title": "BatchService cancelJob Sample", - "origin": "API_DEFINITION", - "description": " Cancel a Job.", - "canonical": true, - "file": "batch_service.cancel_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CancelJob", - "fullName": "google.cloud.batch.v1.BatchService.CancelJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BatchServiceClient", - "fullName": "google.cloud.batch.v1.BatchServiceClient" - }, - "method": { - "shortName": "CancelJob", - "fullName": "google.cloud.batch.v1.BatchService.CancelJob", - "service": { - "shortName": "BatchService", - "fullName": "google.cloud.batch.v1.BatchService" - } - } - } - }, - { - "regionTag": "batch_v1_generated_BatchService_ListJobs_async", - "title": "BatchService listJobs Sample", - "origin": "API_DEFINITION", - "description": " List all Jobs for a project within a region.", - "canonical": true, - "file": "batch_service.list_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListJobs", - "fullName": "google.cloud.batch.v1.BatchService.ListJobs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.batch.v1.ListJobsResponse", - "client": { - "shortName": "BatchServiceClient", - "fullName": "google.cloud.batch.v1.BatchServiceClient" - }, - "method": { - "shortName": "ListJobs", - "fullName": "google.cloud.batch.v1.BatchService.ListJobs", - "service": { - "shortName": "BatchService", - "fullName": "google.cloud.batch.v1.BatchService" - } - } - } - }, - { - "regionTag": "batch_v1_generated_BatchService_GetTask_async", - "title": "BatchService getTask Sample", - "origin": "API_DEFINITION", - "description": " Return a single Task.", - "canonical": true, - "file": "batch_service.get_task.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTask", - "fullName": "google.cloud.batch.v1.BatchService.GetTask", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.batch.v1.Task", - "client": { - "shortName": "BatchServiceClient", - "fullName": "google.cloud.batch.v1.BatchServiceClient" - }, - "method": { - "shortName": "GetTask", - "fullName": "google.cloud.batch.v1.BatchService.GetTask", - "service": { - "shortName": "BatchService", - "fullName": "google.cloud.batch.v1.BatchService" - } - } - } - }, - { - "regionTag": "batch_v1_generated_BatchService_ListTasks_async", - "title": "BatchService listTasks Sample", - "origin": "API_DEFINITION", - "description": " List Tasks associated with a job.", - "canonical": true, - "file": "batch_service.list_tasks.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTasks", - "fullName": "google.cloud.batch.v1.BatchService.ListTasks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.batch.v1.ListTasksResponse", - "client": { - "shortName": "BatchServiceClient", - "fullName": "google.cloud.batch.v1.BatchServiceClient" - }, - "method": { - "shortName": "ListTasks", - "fullName": "google.cloud.batch.v1.BatchService.ListTasks", - "service": { - "shortName": "BatchService", - "fullName": "google.cloud.batch.v1.BatchService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-batch/samples/generated/v1alpha/snippet_metadata_google.cloud.batch.v1alpha.json b/packages/google-cloud-batch/samples/generated/v1alpha/snippet_metadata_google.cloud.batch.v1alpha.json deleted file mode 100644 index a02256ec594f..000000000000 --- a/packages/google-cloud-batch/samples/generated/v1alpha/snippet_metadata_google.cloud.batch.v1alpha.json +++ /dev/null @@ -1,635 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-batch", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.batch.v1alpha", - "version": "v1alpha" - } - ] - }, - "snippets": [ - { - "regionTag": "batch_v1alpha_generated_BatchService_CreateJob_async", - "title": "BatchService createJob Sample", - "origin": "API_DEFINITION", - "description": " Create a Job.", - "canonical": true, - "file": "batch_service.create_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateJob", - "fullName": "google.cloud.batch.v1alpha.BatchService.CreateJob", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "job_id", - "type": "TYPE_STRING" - }, - { - "name": "job", - "type": ".google.cloud.batch.v1alpha.Job" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.batch.v1alpha.Job", - "client": { - "shortName": "BatchServiceClient", - "fullName": "google.cloud.batch.v1alpha.BatchServiceClient" - }, - "method": { - "shortName": "CreateJob", - "fullName": "google.cloud.batch.v1alpha.BatchService.CreateJob", - "service": { - "shortName": "BatchService", - "fullName": "google.cloud.batch.v1alpha.BatchService" - } - } - } - }, - { - "regionTag": "batch_v1alpha_generated_BatchService_GetJob_async", - "title": "BatchService getJob Sample", - "origin": "API_DEFINITION", - "description": " Get a Job specified by its resource name.", - "canonical": true, - "file": "batch_service.get_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetJob", - "fullName": "google.cloud.batch.v1alpha.BatchService.GetJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.batch.v1alpha.Job", - "client": { - "shortName": "BatchServiceClient", - "fullName": "google.cloud.batch.v1alpha.BatchServiceClient" - }, - "method": { - "shortName": "GetJob", - "fullName": "google.cloud.batch.v1alpha.BatchService.GetJob", - "service": { - "shortName": "BatchService", - "fullName": "google.cloud.batch.v1alpha.BatchService" - } - } - } - }, - { - "regionTag": "batch_v1alpha_generated_BatchService_DeleteJob_async", - "title": "BatchService deleteJob Sample", - "origin": "API_DEFINITION", - "description": " Delete a Job.", - "canonical": true, - "file": "batch_service.delete_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteJob", - "fullName": "google.cloud.batch.v1alpha.BatchService.DeleteJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "reason", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BatchServiceClient", - "fullName": "google.cloud.batch.v1alpha.BatchServiceClient" - }, - "method": { - "shortName": "DeleteJob", - "fullName": "google.cloud.batch.v1alpha.BatchService.DeleteJob", - "service": { - "shortName": "BatchService", - "fullName": "google.cloud.batch.v1alpha.BatchService" - } - } - } - }, - { - "regionTag": "batch_v1alpha_generated_BatchService_CancelJob_async", - "title": "BatchService cancelJob Sample", - "origin": "API_DEFINITION", - "description": " Cancel a Job.", - "canonical": true, - "file": "batch_service.cancel_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CancelJob", - "fullName": "google.cloud.batch.v1alpha.BatchService.CancelJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BatchServiceClient", - "fullName": "google.cloud.batch.v1alpha.BatchServiceClient" - }, - "method": { - "shortName": "CancelJob", - "fullName": "google.cloud.batch.v1alpha.BatchService.CancelJob", - "service": { - "shortName": "BatchService", - "fullName": "google.cloud.batch.v1alpha.BatchService" - } - } - } - }, - { - "regionTag": "batch_v1alpha_generated_BatchService_UpdateJob_async", - "title": "BatchService updateJob Sample", - "origin": "API_DEFINITION", - "description": " Update a Job.", - "canonical": true, - "file": "batch_service.update_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateJob", - "fullName": "google.cloud.batch.v1alpha.BatchService.UpdateJob", - "async": true, - "parameters": [ - { - "name": "job", - "type": ".google.cloud.batch.v1alpha.Job" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.batch.v1alpha.Job", - "client": { - "shortName": "BatchServiceClient", - "fullName": "google.cloud.batch.v1alpha.BatchServiceClient" - }, - "method": { - "shortName": "UpdateJob", - "fullName": "google.cloud.batch.v1alpha.BatchService.UpdateJob", - "service": { - "shortName": "BatchService", - "fullName": "google.cloud.batch.v1alpha.BatchService" - } - } - } - }, - { - "regionTag": "batch_v1alpha_generated_BatchService_ListJobs_async", - "title": "BatchService listJobs Sample", - "origin": "API_DEFINITION", - "description": " List all Jobs for a project within a region.", - "canonical": true, - "file": "batch_service.list_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListJobs", - "fullName": "google.cloud.batch.v1alpha.BatchService.ListJobs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.batch.v1alpha.ListJobsResponse", - "client": { - "shortName": "BatchServiceClient", - "fullName": "google.cloud.batch.v1alpha.BatchServiceClient" - }, - "method": { - "shortName": "ListJobs", - "fullName": "google.cloud.batch.v1alpha.BatchService.ListJobs", - "service": { - "shortName": "BatchService", - "fullName": "google.cloud.batch.v1alpha.BatchService" - } - } - } - }, - { - "regionTag": "batch_v1alpha_generated_BatchService_GetTask_async", - "title": "BatchService getTask Sample", - "origin": "API_DEFINITION", - "description": " Return a single Task.", - "canonical": true, - "file": "batch_service.get_task.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTask", - "fullName": "google.cloud.batch.v1alpha.BatchService.GetTask", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.batch.v1alpha.Task", - "client": { - "shortName": "BatchServiceClient", - "fullName": "google.cloud.batch.v1alpha.BatchServiceClient" - }, - "method": { - "shortName": "GetTask", - "fullName": "google.cloud.batch.v1alpha.BatchService.GetTask", - "service": { - "shortName": "BatchService", - "fullName": "google.cloud.batch.v1alpha.BatchService" - } - } - } - }, - { - "regionTag": "batch_v1alpha_generated_BatchService_ListTasks_async", - "title": "BatchService listTasks Sample", - "origin": "API_DEFINITION", - "description": " List Tasks associated with a job.", - "canonical": true, - "file": "batch_service.list_tasks.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTasks", - "fullName": "google.cloud.batch.v1alpha.BatchService.ListTasks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.batch.v1alpha.ListTasksResponse", - "client": { - "shortName": "BatchServiceClient", - "fullName": "google.cloud.batch.v1alpha.BatchServiceClient" - }, - "method": { - "shortName": "ListTasks", - "fullName": "google.cloud.batch.v1alpha.BatchService.ListTasks", - "service": { - "shortName": "BatchService", - "fullName": "google.cloud.batch.v1alpha.BatchService" - } - } - } - }, - { - "regionTag": "batch_v1alpha_generated_BatchService_CreateResourceAllowance_async", - "title": "BatchService createResourceAllowance Sample", - "origin": "API_DEFINITION", - "description": " Create a Resource Allowance.", - "canonical": true, - "file": "batch_service.create_resource_allowance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateResourceAllowance", - "fullName": "google.cloud.batch.v1alpha.BatchService.CreateResourceAllowance", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "resource_allowance_id", - "type": "TYPE_STRING" - }, - { - "name": "resource_allowance", - "type": ".google.cloud.batch.v1alpha.ResourceAllowance" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.batch.v1alpha.ResourceAllowance", - "client": { - "shortName": "BatchServiceClient", - "fullName": "google.cloud.batch.v1alpha.BatchServiceClient" - }, - "method": { - "shortName": "CreateResourceAllowance", - "fullName": "google.cloud.batch.v1alpha.BatchService.CreateResourceAllowance", - "service": { - "shortName": "BatchService", - "fullName": "google.cloud.batch.v1alpha.BatchService" - } - } - } - }, - { - "regionTag": "batch_v1alpha_generated_BatchService_GetResourceAllowance_async", - "title": "BatchService getResourceAllowance Sample", - "origin": "API_DEFINITION", - "description": " Get a ResourceAllowance specified by its resource name.", - "canonical": true, - "file": "batch_service.get_resource_allowance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetResourceAllowance", - "fullName": "google.cloud.batch.v1alpha.BatchService.GetResourceAllowance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.batch.v1alpha.ResourceAllowance", - "client": { - "shortName": "BatchServiceClient", - "fullName": "google.cloud.batch.v1alpha.BatchServiceClient" - }, - "method": { - "shortName": "GetResourceAllowance", - "fullName": "google.cloud.batch.v1alpha.BatchService.GetResourceAllowance", - "service": { - "shortName": "BatchService", - "fullName": "google.cloud.batch.v1alpha.BatchService" - } - } - } - }, - { - "regionTag": "batch_v1alpha_generated_BatchService_DeleteResourceAllowance_async", - "title": "BatchService deleteResourceAllowance Sample", - "origin": "API_DEFINITION", - "description": " Delete a ResourceAllowance.", - "canonical": true, - "file": "batch_service.delete_resource_allowance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteResourceAllowance", - "fullName": "google.cloud.batch.v1alpha.BatchService.DeleteResourceAllowance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "reason", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BatchServiceClient", - "fullName": "google.cloud.batch.v1alpha.BatchServiceClient" - }, - "method": { - "shortName": "DeleteResourceAllowance", - "fullName": "google.cloud.batch.v1alpha.BatchService.DeleteResourceAllowance", - "service": { - "shortName": "BatchService", - "fullName": "google.cloud.batch.v1alpha.BatchService" - } - } - } - }, - { - "regionTag": "batch_v1alpha_generated_BatchService_ListResourceAllowances_async", - "title": "BatchService listResourceAllowances Sample", - "origin": "API_DEFINITION", - "description": " List all ResourceAllowances for a project within a region.", - "canonical": true, - "file": "batch_service.list_resource_allowances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListResourceAllowances", - "fullName": "google.cloud.batch.v1alpha.BatchService.ListResourceAllowances", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.batch.v1alpha.ListResourceAllowancesResponse", - "client": { - "shortName": "BatchServiceClient", - "fullName": "google.cloud.batch.v1alpha.BatchServiceClient" - }, - "method": { - "shortName": "ListResourceAllowances", - "fullName": "google.cloud.batch.v1alpha.BatchService.ListResourceAllowances", - "service": { - "shortName": "BatchService", - "fullName": "google.cloud.batch.v1alpha.BatchService" - } - } - } - }, - { - "regionTag": "batch_v1alpha_generated_BatchService_UpdateResourceAllowance_async", - "title": "BatchService updateResourceAllowance Sample", - "origin": "API_DEFINITION", - "description": " Update a Resource Allowance.", - "canonical": true, - "file": "batch_service.update_resource_allowance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateResourceAllowance", - "fullName": "google.cloud.batch.v1alpha.BatchService.UpdateResourceAllowance", - "async": true, - "parameters": [ - { - "name": "resource_allowance", - "type": ".google.cloud.batch.v1alpha.ResourceAllowance" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.batch.v1alpha.ResourceAllowance", - "client": { - "shortName": "BatchServiceClient", - "fullName": "google.cloud.batch.v1alpha.BatchServiceClient" - }, - "method": { - "shortName": "UpdateResourceAllowance", - "fullName": "google.cloud.batch.v1alpha.BatchService.UpdateResourceAllowance", - "service": { - "shortName": "BatchService", - "fullName": "google.cloud.batch.v1alpha.BatchService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-beyondcorp-appconnections/samples/generated/v1/snippet_metadata_google.cloud.beyondcorp.appconnections.v1.json b/packages/google-cloud-beyondcorp-appconnections/samples/generated/v1/snippet_metadata_google.cloud.beyondcorp.appconnections.v1.json deleted file mode 100644 index e17ab79aeed4..000000000000 --- a/packages/google-cloud-beyondcorp-appconnections/samples/generated/v1/snippet_metadata_google.cloud.beyondcorp.appconnections.v1.json +++ /dev/null @@ -1,323 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-appconnections", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.beyondcorp.appconnections.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "beyondcorp_v1_generated_AppConnectionsService_ListAppConnections_async", - "title": "AppConnectionsService listAppConnections Sample", - "origin": "API_DEFINITION", - "description": " Lists AppConnections in a given project and location.", - "canonical": true, - "file": "app_connections_service.list_app_connections.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAppConnections", - "fullName": "google.cloud.beyondcorp.appconnections.v1.AppConnectionsService.ListAppConnections", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.beyondcorp.appconnections.v1.ListAppConnectionsResponse", - "client": { - "shortName": "AppConnectionsServiceClient", - "fullName": "google.cloud.beyondcorp.appconnections.v1.AppConnectionsServiceClient" - }, - "method": { - "shortName": "ListAppConnections", - "fullName": "google.cloud.beyondcorp.appconnections.v1.AppConnectionsService.ListAppConnections", - "service": { - "shortName": "AppConnectionsService", - "fullName": "google.cloud.beyondcorp.appconnections.v1.AppConnectionsService" - } - } - } - }, - { - "regionTag": "beyondcorp_v1_generated_AppConnectionsService_GetAppConnection_async", - "title": "AppConnectionsService getAppConnection Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single AppConnection.", - "canonical": true, - "file": "app_connections_service.get_app_connection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAppConnection", - "fullName": "google.cloud.beyondcorp.appconnections.v1.AppConnectionsService.GetAppConnection", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.beyondcorp.appconnections.v1.AppConnection", - "client": { - "shortName": "AppConnectionsServiceClient", - "fullName": "google.cloud.beyondcorp.appconnections.v1.AppConnectionsServiceClient" - }, - "method": { - "shortName": "GetAppConnection", - "fullName": "google.cloud.beyondcorp.appconnections.v1.AppConnectionsService.GetAppConnection", - "service": { - "shortName": "AppConnectionsService", - "fullName": "google.cloud.beyondcorp.appconnections.v1.AppConnectionsService" - } - } - } - }, - { - "regionTag": "beyondcorp_v1_generated_AppConnectionsService_CreateAppConnection_async", - "title": "AppConnectionsService createAppConnection Sample", - "origin": "API_DEFINITION", - "description": " Creates a new AppConnection in a given project and location.", - "canonical": true, - "file": "app_connections_service.create_app_connection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAppConnection", - "fullName": "google.cloud.beyondcorp.appconnections.v1.AppConnectionsService.CreateAppConnection", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "app_connection_id", - "type": "TYPE_STRING" - }, - { - "name": "app_connection", - "type": ".google.cloud.beyondcorp.appconnections.v1.AppConnection" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AppConnectionsServiceClient", - "fullName": "google.cloud.beyondcorp.appconnections.v1.AppConnectionsServiceClient" - }, - "method": { - "shortName": "CreateAppConnection", - "fullName": "google.cloud.beyondcorp.appconnections.v1.AppConnectionsService.CreateAppConnection", - "service": { - "shortName": "AppConnectionsService", - "fullName": "google.cloud.beyondcorp.appconnections.v1.AppConnectionsService" - } - } - } - }, - { - "regionTag": "beyondcorp_v1_generated_AppConnectionsService_UpdateAppConnection_async", - "title": "AppConnectionsService updateAppConnection Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single AppConnection.", - "canonical": true, - "file": "app_connections_service.update_app_connection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 89, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAppConnection", - "fullName": "google.cloud.beyondcorp.appconnections.v1.AppConnectionsService.UpdateAppConnection", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "app_connection", - "type": ".google.cloud.beyondcorp.appconnections.v1.AppConnection" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AppConnectionsServiceClient", - "fullName": "google.cloud.beyondcorp.appconnections.v1.AppConnectionsServiceClient" - }, - "method": { - "shortName": "UpdateAppConnection", - "fullName": "google.cloud.beyondcorp.appconnections.v1.AppConnectionsService.UpdateAppConnection", - "service": { - "shortName": "AppConnectionsService", - "fullName": "google.cloud.beyondcorp.appconnections.v1.AppConnectionsService" - } - } - } - }, - { - "regionTag": "beyondcorp_v1_generated_AppConnectionsService_DeleteAppConnection_async", - "title": "AppConnectionsService deleteAppConnection Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single AppConnection.", - "canonical": true, - "file": "app_connections_service.delete_app_connection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAppConnection", - "fullName": "google.cloud.beyondcorp.appconnections.v1.AppConnectionsService.DeleteAppConnection", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AppConnectionsServiceClient", - "fullName": "google.cloud.beyondcorp.appconnections.v1.AppConnectionsServiceClient" - }, - "method": { - "shortName": "DeleteAppConnection", - "fullName": "google.cloud.beyondcorp.appconnections.v1.AppConnectionsService.DeleteAppConnection", - "service": { - "shortName": "AppConnectionsService", - "fullName": "google.cloud.beyondcorp.appconnections.v1.AppConnectionsService" - } - } - } - }, - { - "regionTag": "beyondcorp_v1_generated_AppConnectionsService_ResolveAppConnections_async", - "title": "AppConnectionsService resolveAppConnections Sample", - "origin": "API_DEFINITION", - "description": " Resolves AppConnections details for a given AppConnector. An internal method called by a connector to find AppConnections to connect to.", - "canonical": true, - "file": "app_connections_service.resolve_app_connections.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResolveAppConnections", - "fullName": "google.cloud.beyondcorp.appconnections.v1.AppConnectionsService.ResolveAppConnections", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "app_connector_id", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.beyondcorp.appconnections.v1.ResolveAppConnectionsResponse", - "client": { - "shortName": "AppConnectionsServiceClient", - "fullName": "google.cloud.beyondcorp.appconnections.v1.AppConnectionsServiceClient" - }, - "method": { - "shortName": "ResolveAppConnections", - "fullName": "google.cloud.beyondcorp.appconnections.v1.AppConnectionsService.ResolveAppConnections", - "service": { - "shortName": "AppConnectionsService", - "fullName": "google.cloud.beyondcorp.appconnections.v1.AppConnectionsService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-beyondcorp-appconnectors/samples/generated/v1/snippet_metadata_google.cloud.beyondcorp.appconnectors.v1.json b/packages/google-cloud-beyondcorp-appconnectors/samples/generated/v1/snippet_metadata_google.cloud.beyondcorp.appconnectors.v1.json deleted file mode 100644 index 8e11fa0a6fa0..000000000000 --- a/packages/google-cloud-beyondcorp-appconnectors/samples/generated/v1/snippet_metadata_google.cloud.beyondcorp.appconnectors.v1.json +++ /dev/null @@ -1,319 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-appconnectors", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.beyondcorp.appconnectors.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "beyondcorp_v1_generated_AppConnectorsService_ListAppConnectors_async", - "title": "AppConnectorsService listAppConnectors Sample", - "origin": "API_DEFINITION", - "description": " Lists AppConnectors in a given project and location.", - "canonical": true, - "file": "app_connectors_service.list_app_connectors.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAppConnectors", - "fullName": "google.cloud.beyondcorp.appconnectors.v1.AppConnectorsService.ListAppConnectors", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.beyondcorp.appconnectors.v1.ListAppConnectorsResponse", - "client": { - "shortName": "AppConnectorsServiceClient", - "fullName": "google.cloud.beyondcorp.appconnectors.v1.AppConnectorsServiceClient" - }, - "method": { - "shortName": "ListAppConnectors", - "fullName": "google.cloud.beyondcorp.appconnectors.v1.AppConnectorsService.ListAppConnectors", - "service": { - "shortName": "AppConnectorsService", - "fullName": "google.cloud.beyondcorp.appconnectors.v1.AppConnectorsService" - } - } - } - }, - { - "regionTag": "beyondcorp_v1_generated_AppConnectorsService_GetAppConnector_async", - "title": "AppConnectorsService getAppConnector Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single AppConnector.", - "canonical": true, - "file": "app_connectors_service.get_app_connector.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAppConnector", - "fullName": "google.cloud.beyondcorp.appconnectors.v1.AppConnectorsService.GetAppConnector", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.beyondcorp.appconnectors.v1.AppConnector", - "client": { - "shortName": "AppConnectorsServiceClient", - "fullName": "google.cloud.beyondcorp.appconnectors.v1.AppConnectorsServiceClient" - }, - "method": { - "shortName": "GetAppConnector", - "fullName": "google.cloud.beyondcorp.appconnectors.v1.AppConnectorsService.GetAppConnector", - "service": { - "shortName": "AppConnectorsService", - "fullName": "google.cloud.beyondcorp.appconnectors.v1.AppConnectorsService" - } - } - } - }, - { - "regionTag": "beyondcorp_v1_generated_AppConnectorsService_CreateAppConnector_async", - "title": "AppConnectorsService createAppConnector Sample", - "origin": "API_DEFINITION", - "description": " Creates a new AppConnector in a given project and location.", - "canonical": true, - "file": "app_connectors_service.create_app_connector.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAppConnector", - "fullName": "google.cloud.beyondcorp.appconnectors.v1.AppConnectorsService.CreateAppConnector", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "app_connector_id", - "type": "TYPE_STRING" - }, - { - "name": "app_connector", - "type": ".google.cloud.beyondcorp.appconnectors.v1.AppConnector" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AppConnectorsServiceClient", - "fullName": "google.cloud.beyondcorp.appconnectors.v1.AppConnectorsServiceClient" - }, - "method": { - "shortName": "CreateAppConnector", - "fullName": "google.cloud.beyondcorp.appconnectors.v1.AppConnectorsService.CreateAppConnector", - "service": { - "shortName": "AppConnectorsService", - "fullName": "google.cloud.beyondcorp.appconnectors.v1.AppConnectorsService" - } - } - } - }, - { - "regionTag": "beyondcorp_v1_generated_AppConnectorsService_UpdateAppConnector_async", - "title": "AppConnectorsService updateAppConnector Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single AppConnector.", - "canonical": true, - "file": "app_connectors_service.update_app_connector.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAppConnector", - "fullName": "google.cloud.beyondcorp.appconnectors.v1.AppConnectorsService.UpdateAppConnector", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "app_connector", - "type": ".google.cloud.beyondcorp.appconnectors.v1.AppConnector" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AppConnectorsServiceClient", - "fullName": "google.cloud.beyondcorp.appconnectors.v1.AppConnectorsServiceClient" - }, - "method": { - "shortName": "UpdateAppConnector", - "fullName": "google.cloud.beyondcorp.appconnectors.v1.AppConnectorsService.UpdateAppConnector", - "service": { - "shortName": "AppConnectorsService", - "fullName": "google.cloud.beyondcorp.appconnectors.v1.AppConnectorsService" - } - } - } - }, - { - "regionTag": "beyondcorp_v1_generated_AppConnectorsService_DeleteAppConnector_async", - "title": "AppConnectorsService deleteAppConnector Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single AppConnector.", - "canonical": true, - "file": "app_connectors_service.delete_app_connector.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAppConnector", - "fullName": "google.cloud.beyondcorp.appconnectors.v1.AppConnectorsService.DeleteAppConnector", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AppConnectorsServiceClient", - "fullName": "google.cloud.beyondcorp.appconnectors.v1.AppConnectorsServiceClient" - }, - "method": { - "shortName": "DeleteAppConnector", - "fullName": "google.cloud.beyondcorp.appconnectors.v1.AppConnectorsService.DeleteAppConnector", - "service": { - "shortName": "AppConnectorsService", - "fullName": "google.cloud.beyondcorp.appconnectors.v1.AppConnectorsService" - } - } - } - }, - { - "regionTag": "beyondcorp_v1_generated_AppConnectorsService_ReportStatus_async", - "title": "AppConnectorsService reportStatus Sample", - "origin": "API_DEFINITION", - "description": " Report status for a given connector.", - "canonical": true, - "file": "app_connectors_service.report_status.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReportStatus", - "fullName": "google.cloud.beyondcorp.appconnectors.v1.AppConnectorsService.ReportStatus", - "async": true, - "parameters": [ - { - "name": "app_connector", - "type": "TYPE_STRING" - }, - { - "name": "resource_info", - "type": ".google.cloud.beyondcorp.appconnectors.v1.ResourceInfo" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AppConnectorsServiceClient", - "fullName": "google.cloud.beyondcorp.appconnectors.v1.AppConnectorsServiceClient" - }, - "method": { - "shortName": "ReportStatus", - "fullName": "google.cloud.beyondcorp.appconnectors.v1.AppConnectorsService.ReportStatus", - "service": { - "shortName": "AppConnectorsService", - "fullName": "google.cloud.beyondcorp.appconnectors.v1.AppConnectorsService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-beyondcorp-appgateways/samples/generated/v1/snippet_metadata_google.cloud.beyondcorp.appgateways.v1.json b/packages/google-cloud-beyondcorp-appgateways/samples/generated/v1/snippet_metadata_google.cloud.beyondcorp.appgateways.v1.json deleted file mode 100644 index f4fe6968b813..000000000000 --- a/packages/google-cloud-beyondcorp-appgateways/samples/generated/v1/snippet_metadata_google.cloud.beyondcorp.appgateways.v1.json +++ /dev/null @@ -1,215 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-appgateways", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.beyondcorp.appgateways.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "beyondcorp_v1_generated_AppGatewaysService_ListAppGateways_async", - "title": "AppGatewaysService listAppGateways Sample", - "origin": "API_DEFINITION", - "description": " Lists AppGateways in a given project and location.", - "canonical": true, - "file": "app_gateways_service.list_app_gateways.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAppGateways", - "fullName": "google.cloud.beyondcorp.appgateways.v1.AppGatewaysService.ListAppGateways", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.beyondcorp.appgateways.v1.ListAppGatewaysResponse", - "client": { - "shortName": "AppGatewaysServiceClient", - "fullName": "google.cloud.beyondcorp.appgateways.v1.AppGatewaysServiceClient" - }, - "method": { - "shortName": "ListAppGateways", - "fullName": "google.cloud.beyondcorp.appgateways.v1.AppGatewaysService.ListAppGateways", - "service": { - "shortName": "AppGatewaysService", - "fullName": "google.cloud.beyondcorp.appgateways.v1.AppGatewaysService" - } - } - } - }, - { - "regionTag": "beyondcorp_v1_generated_AppGatewaysService_GetAppGateway_async", - "title": "AppGatewaysService getAppGateway Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single AppGateway.", - "canonical": true, - "file": "app_gateways_service.get_app_gateway.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAppGateway", - "fullName": "google.cloud.beyondcorp.appgateways.v1.AppGatewaysService.GetAppGateway", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.beyondcorp.appgateways.v1.AppGateway", - "client": { - "shortName": "AppGatewaysServiceClient", - "fullName": "google.cloud.beyondcorp.appgateways.v1.AppGatewaysServiceClient" - }, - "method": { - "shortName": "GetAppGateway", - "fullName": "google.cloud.beyondcorp.appgateways.v1.AppGatewaysService.GetAppGateway", - "service": { - "shortName": "AppGatewaysService", - "fullName": "google.cloud.beyondcorp.appgateways.v1.AppGatewaysService" - } - } - } - }, - { - "regionTag": "beyondcorp_v1_generated_AppGatewaysService_CreateAppGateway_async", - "title": "AppGatewaysService createAppGateway Sample", - "origin": "API_DEFINITION", - "description": " Creates a new AppGateway in a given project and location.", - "canonical": true, - "file": "app_gateways_service.create_app_gateway.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAppGateway", - "fullName": "google.cloud.beyondcorp.appgateways.v1.AppGatewaysService.CreateAppGateway", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "app_gateway_id", - "type": "TYPE_STRING" - }, - { - "name": "app_gateway", - "type": ".google.cloud.beyondcorp.appgateways.v1.AppGateway" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AppGatewaysServiceClient", - "fullName": "google.cloud.beyondcorp.appgateways.v1.AppGatewaysServiceClient" - }, - "method": { - "shortName": "CreateAppGateway", - "fullName": "google.cloud.beyondcorp.appgateways.v1.AppGatewaysService.CreateAppGateway", - "service": { - "shortName": "AppGatewaysService", - "fullName": "google.cloud.beyondcorp.appgateways.v1.AppGatewaysService" - } - } - } - }, - { - "regionTag": "beyondcorp_v1_generated_AppGatewaysService_DeleteAppGateway_async", - "title": "AppGatewaysService deleteAppGateway Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single AppGateway.", - "canonical": true, - "file": "app_gateways_service.delete_app_gateway.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAppGateway", - "fullName": "google.cloud.beyondcorp.appgateways.v1.AppGatewaysService.DeleteAppGateway", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AppGatewaysServiceClient", - "fullName": "google.cloud.beyondcorp.appgateways.v1.AppGatewaysServiceClient" - }, - "method": { - "shortName": "DeleteAppGateway", - "fullName": "google.cloud.beyondcorp.appgateways.v1.AppGatewaysService.DeleteAppGateway", - "service": { - "shortName": "AppGatewaysService", - "fullName": "google.cloud.beyondcorp.appgateways.v1.AppGatewaysService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-beyondcorp-clientconnectorservices/samples/generated/v1/snippet_metadata_google.cloud.beyondcorp.clientconnectorservices.v1.json b/packages/google-cloud-beyondcorp-clientconnectorservices/samples/generated/v1/snippet_metadata_google.cloud.beyondcorp.clientconnectorservices.v1.json deleted file mode 100644 index 2ac6789caeb0..000000000000 --- a/packages/google-cloud-beyondcorp-clientconnectorservices/samples/generated/v1/snippet_metadata_google.cloud.beyondcorp.clientconnectorservices.v1.json +++ /dev/null @@ -1,271 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-clientconnectorservices", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.beyondcorp.clientconnectorservices.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "beyondcorp_v1_generated_ClientConnectorServicesService_ListClientConnectorServices_async", - "title": "ClientConnectorServicesService listClientConnectorServices Sample", - "origin": "API_DEFINITION", - "description": " Lists ClientConnectorServices in a given project and location.", - "canonical": true, - "file": "client_connector_services_service.list_client_connector_services.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListClientConnectorServices", - "fullName": "google.cloud.beyondcorp.clientconnectorservices.v1.ClientConnectorServicesService.ListClientConnectorServices", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.beyondcorp.clientconnectorservices.v1.ListClientConnectorServicesResponse", - "client": { - "shortName": "ClientConnectorServicesServiceClient", - "fullName": "google.cloud.beyondcorp.clientconnectorservices.v1.ClientConnectorServicesServiceClient" - }, - "method": { - "shortName": "ListClientConnectorServices", - "fullName": "google.cloud.beyondcorp.clientconnectorservices.v1.ClientConnectorServicesService.ListClientConnectorServices", - "service": { - "shortName": "ClientConnectorServicesService", - "fullName": "google.cloud.beyondcorp.clientconnectorservices.v1.ClientConnectorServicesService" - } - } - } - }, - { - "regionTag": "beyondcorp_v1_generated_ClientConnectorServicesService_GetClientConnectorService_async", - "title": "ClientConnectorServicesService getClientConnectorService Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single ClientConnectorService.", - "canonical": true, - "file": "client_connector_services_service.get_client_connector_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetClientConnectorService", - "fullName": "google.cloud.beyondcorp.clientconnectorservices.v1.ClientConnectorServicesService.GetClientConnectorService", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.beyondcorp.clientconnectorservices.v1.ClientConnectorService", - "client": { - "shortName": "ClientConnectorServicesServiceClient", - "fullName": "google.cloud.beyondcorp.clientconnectorservices.v1.ClientConnectorServicesServiceClient" - }, - "method": { - "shortName": "GetClientConnectorService", - "fullName": "google.cloud.beyondcorp.clientconnectorservices.v1.ClientConnectorServicesService.GetClientConnectorService", - "service": { - "shortName": "ClientConnectorServicesService", - "fullName": "google.cloud.beyondcorp.clientconnectorservices.v1.ClientConnectorServicesService" - } - } - } - }, - { - "regionTag": "beyondcorp_v1_generated_ClientConnectorServicesService_CreateClientConnectorService_async", - "title": "ClientConnectorServicesService createClientConnectorService Sample", - "origin": "API_DEFINITION", - "description": " Creates a new ClientConnectorService in a given project and location.", - "canonical": true, - "file": "client_connector_services_service.create_client_connector_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateClientConnectorService", - "fullName": "google.cloud.beyondcorp.clientconnectorservices.v1.ClientConnectorServicesService.CreateClientConnectorService", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "client_connector_service_id", - "type": "TYPE_STRING" - }, - { - "name": "client_connector_service", - "type": ".google.cloud.beyondcorp.clientconnectorservices.v1.ClientConnectorService" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ClientConnectorServicesServiceClient", - "fullName": "google.cloud.beyondcorp.clientconnectorservices.v1.ClientConnectorServicesServiceClient" - }, - "method": { - "shortName": "CreateClientConnectorService", - "fullName": "google.cloud.beyondcorp.clientconnectorservices.v1.ClientConnectorServicesService.CreateClientConnectorService", - "service": { - "shortName": "ClientConnectorServicesService", - "fullName": "google.cloud.beyondcorp.clientconnectorservices.v1.ClientConnectorServicesService" - } - } - } - }, - { - "regionTag": "beyondcorp_v1_generated_ClientConnectorServicesService_UpdateClientConnectorService_async", - "title": "ClientConnectorServicesService updateClientConnectorService Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single ClientConnectorService.", - "canonical": true, - "file": "client_connector_services_service.update_client_connector_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateClientConnectorService", - "fullName": "google.cloud.beyondcorp.clientconnectorservices.v1.ClientConnectorServicesService.UpdateClientConnectorService", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "client_connector_service", - "type": ".google.cloud.beyondcorp.clientconnectorservices.v1.ClientConnectorService" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ClientConnectorServicesServiceClient", - "fullName": "google.cloud.beyondcorp.clientconnectorservices.v1.ClientConnectorServicesServiceClient" - }, - "method": { - "shortName": "UpdateClientConnectorService", - "fullName": "google.cloud.beyondcorp.clientconnectorservices.v1.ClientConnectorServicesService.UpdateClientConnectorService", - "service": { - "shortName": "ClientConnectorServicesService", - "fullName": "google.cloud.beyondcorp.clientconnectorservices.v1.ClientConnectorServicesService" - } - } - } - }, - { - "regionTag": "beyondcorp_v1_generated_ClientConnectorServicesService_DeleteClientConnectorService_async", - "title": "ClientConnectorServicesService deleteClientConnectorService Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single ClientConnectorService.", - "canonical": true, - "file": "client_connector_services_service.delete_client_connector_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteClientConnectorService", - "fullName": "google.cloud.beyondcorp.clientconnectorservices.v1.ClientConnectorServicesService.DeleteClientConnectorService", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ClientConnectorServicesServiceClient", - "fullName": "google.cloud.beyondcorp.clientconnectorservices.v1.ClientConnectorServicesServiceClient" - }, - "method": { - "shortName": "DeleteClientConnectorService", - "fullName": "google.cloud.beyondcorp.clientconnectorservices.v1.ClientConnectorServicesService.DeleteClientConnectorService", - "service": { - "shortName": "ClientConnectorServicesService", - "fullName": "google.cloud.beyondcorp.clientconnectorservices.v1.ClientConnectorServicesService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-beyondcorp-clientgateways/samples/generated/v1/snippet_metadata_google.cloud.beyondcorp.clientgateways.v1.json b/packages/google-cloud-beyondcorp-clientgateways/samples/generated/v1/snippet_metadata_google.cloud.beyondcorp.clientgateways.v1.json deleted file mode 100644 index da641a8b9813..000000000000 --- a/packages/google-cloud-beyondcorp-clientgateways/samples/generated/v1/snippet_metadata_google.cloud.beyondcorp.clientgateways.v1.json +++ /dev/null @@ -1,215 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-clientgateways", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.beyondcorp.clientgateways.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "beyondcorp_v1_generated_ClientGatewaysService_ListClientGateways_async", - "title": "ClientGatewaysService listClientGateways Sample", - "origin": "API_DEFINITION", - "description": " Lists ClientGateways in a given project and location.", - "canonical": true, - "file": "client_gateways_service.list_client_gateways.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListClientGateways", - "fullName": "google.cloud.beyondcorp.clientgateways.v1.ClientGatewaysService.ListClientGateways", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.beyondcorp.clientgateways.v1.ListClientGatewaysResponse", - "client": { - "shortName": "ClientGatewaysServiceClient", - "fullName": "google.cloud.beyondcorp.clientgateways.v1.ClientGatewaysServiceClient" - }, - "method": { - "shortName": "ListClientGateways", - "fullName": "google.cloud.beyondcorp.clientgateways.v1.ClientGatewaysService.ListClientGateways", - "service": { - "shortName": "ClientGatewaysService", - "fullName": "google.cloud.beyondcorp.clientgateways.v1.ClientGatewaysService" - } - } - } - }, - { - "regionTag": "beyondcorp_v1_generated_ClientGatewaysService_GetClientGateway_async", - "title": "ClientGatewaysService getClientGateway Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single ClientGateway.", - "canonical": true, - "file": "client_gateways_service.get_client_gateway.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetClientGateway", - "fullName": "google.cloud.beyondcorp.clientgateways.v1.ClientGatewaysService.GetClientGateway", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.beyondcorp.clientgateways.v1.ClientGateway", - "client": { - "shortName": "ClientGatewaysServiceClient", - "fullName": "google.cloud.beyondcorp.clientgateways.v1.ClientGatewaysServiceClient" - }, - "method": { - "shortName": "GetClientGateway", - "fullName": "google.cloud.beyondcorp.clientgateways.v1.ClientGatewaysService.GetClientGateway", - "service": { - "shortName": "ClientGatewaysService", - "fullName": "google.cloud.beyondcorp.clientgateways.v1.ClientGatewaysService" - } - } - } - }, - { - "regionTag": "beyondcorp_v1_generated_ClientGatewaysService_CreateClientGateway_async", - "title": "ClientGatewaysService createClientGateway Sample", - "origin": "API_DEFINITION", - "description": " Creates a new ClientGateway in a given project and location.", - "canonical": true, - "file": "client_gateways_service.create_client_gateway.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateClientGateway", - "fullName": "google.cloud.beyondcorp.clientgateways.v1.ClientGatewaysService.CreateClientGateway", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "client_gateway_id", - "type": "TYPE_STRING" - }, - { - "name": "client_gateway", - "type": ".google.cloud.beyondcorp.clientgateways.v1.ClientGateway" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ClientGatewaysServiceClient", - "fullName": "google.cloud.beyondcorp.clientgateways.v1.ClientGatewaysServiceClient" - }, - "method": { - "shortName": "CreateClientGateway", - "fullName": "google.cloud.beyondcorp.clientgateways.v1.ClientGatewaysService.CreateClientGateway", - "service": { - "shortName": "ClientGatewaysService", - "fullName": "google.cloud.beyondcorp.clientgateways.v1.ClientGatewaysService" - } - } - } - }, - { - "regionTag": "beyondcorp_v1_generated_ClientGatewaysService_DeleteClientGateway_async", - "title": "ClientGatewaysService deleteClientGateway Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single ClientGateway.", - "canonical": true, - "file": "client_gateways_service.delete_client_gateway.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteClientGateway", - "fullName": "google.cloud.beyondcorp.clientgateways.v1.ClientGatewaysService.DeleteClientGateway", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ClientGatewaysServiceClient", - "fullName": "google.cloud.beyondcorp.clientgateways.v1.ClientGatewaysServiceClient" - }, - "method": { - "shortName": "DeleteClientGateway", - "fullName": "google.cloud.beyondcorp.clientgateways.v1.ClientGatewaysService.DeleteClientGateway", - "service": { - "shortName": "ClientGatewaysService", - "fullName": "google.cloud.beyondcorp.clientgateways.v1.ClientGatewaysService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-bigquery-analyticshub/samples/generated/v1/snippet_metadata_google.cloud.bigquery.analyticshub.v1.json b/packages/google-cloud-bigquery-analyticshub/samples/generated/v1/snippet_metadata_google.cloud.bigquery.analyticshub.v1.json deleted file mode 100644 index 6d7899cb6a9d..000000000000 --- a/packages/google-cloud-bigquery-analyticshub/samples/generated/v1/snippet_metadata_google.cloud.bigquery.analyticshub.v1.json +++ /dev/null @@ -1,1315 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-analyticshub", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.bigquery.analyticshub.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "analyticshub_v1_generated_AnalyticsHubService_ListDataExchanges_async", - "title": "AnalyticsHubService listDataExchanges Sample", - "origin": "API_DEFINITION", - "description": " Lists all data exchanges in a given project and location.", - "canonical": true, - "file": "analytics_hub_service.list_data_exchanges.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDataExchanges", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.ListDataExchanges", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.analyticshub.v1.ListDataExchangesResponse", - "client": { - "shortName": "AnalyticsHubServiceClient", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient" - }, - "method": { - "shortName": "ListDataExchanges", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.ListDataExchanges", - "service": { - "shortName": "AnalyticsHubService", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService" - } - } - } - }, - { - "regionTag": "analyticshub_v1_generated_AnalyticsHubService_ListOrgDataExchanges_async", - "title": "AnalyticsHubService listOrgDataExchanges Sample", - "origin": "API_DEFINITION", - "description": " Lists all data exchanges from projects in a given organization and location.", - "canonical": true, - "file": "analytics_hub_service.list_org_data_exchanges.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListOrgDataExchanges", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.ListOrgDataExchanges", - "async": true, - "parameters": [ - { - "name": "organization", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.analyticshub.v1.ListOrgDataExchangesResponse", - "client": { - "shortName": "AnalyticsHubServiceClient", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient" - }, - "method": { - "shortName": "ListOrgDataExchanges", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.ListOrgDataExchanges", - "service": { - "shortName": "AnalyticsHubService", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService" - } - } - } - }, - { - "regionTag": "analyticshub_v1_generated_AnalyticsHubService_GetDataExchange_async", - "title": "AnalyticsHubService getDataExchange Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a data exchange.", - "canonical": true, - "file": "analytics_hub_service.get_data_exchange.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDataExchange", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.GetDataExchange", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.analyticshub.v1.DataExchange", - "client": { - "shortName": "AnalyticsHubServiceClient", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient" - }, - "method": { - "shortName": "GetDataExchange", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.GetDataExchange", - "service": { - "shortName": "AnalyticsHubService", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService" - } - } - } - }, - { - "regionTag": "analyticshub_v1_generated_AnalyticsHubService_CreateDataExchange_async", - "title": "AnalyticsHubService createDataExchange Sample", - "origin": "API_DEFINITION", - "description": " Creates a new data exchange.", - "canonical": true, - "file": "analytics_hub_service.create_data_exchange.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDataExchange", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.CreateDataExchange", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "data_exchange_id", - "type": "TYPE_STRING" - }, - { - "name": "data_exchange", - "type": ".google.cloud.bigquery.analyticshub.v1.DataExchange" - } - ], - "resultType": ".google.cloud.bigquery.analyticshub.v1.DataExchange", - "client": { - "shortName": "AnalyticsHubServiceClient", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient" - }, - "method": { - "shortName": "CreateDataExchange", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.CreateDataExchange", - "service": { - "shortName": "AnalyticsHubService", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService" - } - } - } - }, - { - "regionTag": "analyticshub_v1_generated_AnalyticsHubService_UpdateDataExchange_async", - "title": "AnalyticsHubService updateDataExchange Sample", - "origin": "API_DEFINITION", - "description": " Updates an existing data exchange.", - "canonical": true, - "file": "analytics_hub_service.update_data_exchange.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDataExchange", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.UpdateDataExchange", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "data_exchange", - "type": ".google.cloud.bigquery.analyticshub.v1.DataExchange" - } - ], - "resultType": ".google.cloud.bigquery.analyticshub.v1.DataExchange", - "client": { - "shortName": "AnalyticsHubServiceClient", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient" - }, - "method": { - "shortName": "UpdateDataExchange", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.UpdateDataExchange", - "service": { - "shortName": "AnalyticsHubService", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService" - } - } - } - }, - { - "regionTag": "analyticshub_v1_generated_AnalyticsHubService_DeleteDataExchange_async", - "title": "AnalyticsHubService deleteDataExchange Sample", - "origin": "API_DEFINITION", - "description": " Deletes an existing data exchange.", - "canonical": true, - "file": "analytics_hub_service.delete_data_exchange.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDataExchange", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.DeleteDataExchange", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AnalyticsHubServiceClient", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient" - }, - "method": { - "shortName": "DeleteDataExchange", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.DeleteDataExchange", - "service": { - "shortName": "AnalyticsHubService", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService" - } - } - } - }, - { - "regionTag": "analyticshub_v1_generated_AnalyticsHubService_ListListings_async", - "title": "AnalyticsHubService listListings Sample", - "origin": "API_DEFINITION", - "description": " Lists all listings in a given project and location.", - "canonical": true, - "file": "analytics_hub_service.list_listings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListListings", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.ListListings", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.analyticshub.v1.ListListingsResponse", - "client": { - "shortName": "AnalyticsHubServiceClient", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient" - }, - "method": { - "shortName": "ListListings", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.ListListings", - "service": { - "shortName": "AnalyticsHubService", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService" - } - } - } - }, - { - "regionTag": "analyticshub_v1_generated_AnalyticsHubService_GetListing_async", - "title": "AnalyticsHubService getListing Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a listing.", - "canonical": true, - "file": "analytics_hub_service.get_listing.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetListing", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.GetListing", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.analyticshub.v1.Listing", - "client": { - "shortName": "AnalyticsHubServiceClient", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient" - }, - "method": { - "shortName": "GetListing", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.GetListing", - "service": { - "shortName": "AnalyticsHubService", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService" - } - } - } - }, - { - "regionTag": "analyticshub_v1_generated_AnalyticsHubService_CreateListing_async", - "title": "AnalyticsHubService createListing Sample", - "origin": "API_DEFINITION", - "description": " Creates a new listing.", - "canonical": true, - "file": "analytics_hub_service.create_listing.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateListing", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.CreateListing", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "listing_id", - "type": "TYPE_STRING" - }, - { - "name": "listing", - "type": ".google.cloud.bigquery.analyticshub.v1.Listing" - } - ], - "resultType": ".google.cloud.bigquery.analyticshub.v1.Listing", - "client": { - "shortName": "AnalyticsHubServiceClient", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient" - }, - "method": { - "shortName": "CreateListing", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.CreateListing", - "service": { - "shortName": "AnalyticsHubService", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService" - } - } - } - }, - { - "regionTag": "analyticshub_v1_generated_AnalyticsHubService_UpdateListing_async", - "title": "AnalyticsHubService updateListing Sample", - "origin": "API_DEFINITION", - "description": " Updates an existing listing.", - "canonical": true, - "file": "analytics_hub_service.update_listing.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateListing", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.UpdateListing", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "listing", - "type": ".google.cloud.bigquery.analyticshub.v1.Listing" - } - ], - "resultType": ".google.cloud.bigquery.analyticshub.v1.Listing", - "client": { - "shortName": "AnalyticsHubServiceClient", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient" - }, - "method": { - "shortName": "UpdateListing", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.UpdateListing", - "service": { - "shortName": "AnalyticsHubService", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService" - } - } - } - }, - { - "regionTag": "analyticshub_v1_generated_AnalyticsHubService_DeleteListing_async", - "title": "AnalyticsHubService deleteListing Sample", - "origin": "API_DEFINITION", - "description": " Deletes a listing.", - "canonical": true, - "file": "analytics_hub_service.delete_listing.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteListing", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.DeleteListing", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "delete_commercial", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AnalyticsHubServiceClient", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient" - }, - "method": { - "shortName": "DeleteListing", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.DeleteListing", - "service": { - "shortName": "AnalyticsHubService", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService" - } - } - } - }, - { - "regionTag": "analyticshub_v1_generated_AnalyticsHubService_SubscribeListing_async", - "title": "AnalyticsHubService subscribeListing Sample", - "origin": "API_DEFINITION", - "description": " Subscribes to a listing. Currently, with Analytics Hub, you can create listings that reference only BigQuery datasets. Upon subscription to a listing for a BigQuery dataset, Analytics Hub creates a linked dataset in the subscriber's project.", - "canonical": true, - "file": "analytics_hub_service.subscribe_listing.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SubscribeListing", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.SubscribeListing", - "async": true, - "parameters": [ - { - "name": "destination_dataset", - "type": ".google.cloud.bigquery.analyticshub.v1.DestinationDataset" - }, - { - "name": "destination_pubsub_subscription", - "type": ".google.cloud.bigquery.analyticshub.v1.DestinationPubSubSubscription" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.analyticshub.v1.SubscribeListingResponse", - "client": { - "shortName": "AnalyticsHubServiceClient", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient" - }, - "method": { - "shortName": "SubscribeListing", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.SubscribeListing", - "service": { - "shortName": "AnalyticsHubService", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService" - } - } - } - }, - { - "regionTag": "analyticshub_v1_generated_AnalyticsHubService_SubscribeDataExchange_async", - "title": "AnalyticsHubService subscribeDataExchange Sample", - "origin": "API_DEFINITION", - "description": " Creates a Subscription to a Data Clean Room. This is a long-running operation as it will create one or more linked datasets. Throws a Bad Request error if the Data Exchange does not contain any listings.", - "canonical": true, - "file": "analytics_hub_service.subscribe_data_exchange.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SubscribeDataExchange", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.SubscribeDataExchange", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "destination", - "type": "TYPE_STRING" - }, - { - "name": "destination_dataset", - "type": ".google.cloud.bigquery.analyticshub.v1.DestinationDataset" - }, - { - "name": "subscription", - "type": "TYPE_STRING" - }, - { - "name": "subscriber_contact", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AnalyticsHubServiceClient", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient" - }, - "method": { - "shortName": "SubscribeDataExchange", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.SubscribeDataExchange", - "service": { - "shortName": "AnalyticsHubService", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService" - } - } - } - }, - { - "regionTag": "analyticshub_v1_generated_AnalyticsHubService_RefreshSubscription_async", - "title": "AnalyticsHubService refreshSubscription Sample", - "origin": "API_DEFINITION", - "description": " Refreshes a Subscription to a Data Exchange. A Data Exchange can become stale when a publisher adds or removes data. This is a long-running operation as it may create many linked datasets.", - "canonical": true, - "file": "analytics_hub_service.refresh_subscription.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RefreshSubscription", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.RefreshSubscription", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AnalyticsHubServiceClient", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient" - }, - "method": { - "shortName": "RefreshSubscription", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.RefreshSubscription", - "service": { - "shortName": "AnalyticsHubService", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService" - } - } - } - }, - { - "regionTag": "analyticshub_v1_generated_AnalyticsHubService_GetSubscription_async", - "title": "AnalyticsHubService getSubscription Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a Subscription.", - "canonical": true, - "file": "analytics_hub_service.get_subscription.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSubscription", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.GetSubscription", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.analyticshub.v1.Subscription", - "client": { - "shortName": "AnalyticsHubServiceClient", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient" - }, - "method": { - "shortName": "GetSubscription", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.GetSubscription", - "service": { - "shortName": "AnalyticsHubService", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService" - } - } - } - }, - { - "regionTag": "analyticshub_v1_generated_AnalyticsHubService_ListSubscriptions_async", - "title": "AnalyticsHubService listSubscriptions Sample", - "origin": "API_DEFINITION", - "description": " Lists all subscriptions in a given project and location.", - "canonical": true, - "file": "analytics_hub_service.list_subscriptions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSubscriptions", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.ListSubscriptions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.analyticshub.v1.ListSubscriptionsResponse", - "client": { - "shortName": "AnalyticsHubServiceClient", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient" - }, - "method": { - "shortName": "ListSubscriptions", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.ListSubscriptions", - "service": { - "shortName": "AnalyticsHubService", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService" - } - } - } - }, - { - "regionTag": "analyticshub_v1_generated_AnalyticsHubService_ListSharedResourceSubscriptions_async", - "title": "AnalyticsHubService listSharedResourceSubscriptions Sample", - "origin": "API_DEFINITION", - "description": " Lists all subscriptions on a given Data Exchange or Listing.", - "canonical": true, - "file": "analytics_hub_service.list_shared_resource_subscriptions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSharedResourceSubscriptions", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.ListSharedResourceSubscriptions", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "include_deleted_subscriptions", - "type": "TYPE_BOOL" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.analyticshub.v1.ListSharedResourceSubscriptionsResponse", - "client": { - "shortName": "AnalyticsHubServiceClient", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient" - }, - "method": { - "shortName": "ListSharedResourceSubscriptions", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.ListSharedResourceSubscriptions", - "service": { - "shortName": "AnalyticsHubService", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService" - } - } - } - }, - { - "regionTag": "analyticshub_v1_generated_AnalyticsHubService_RevokeSubscription_async", - "title": "AnalyticsHubService revokeSubscription Sample", - "origin": "API_DEFINITION", - "description": " Revokes a given subscription.", - "canonical": true, - "file": "analytics_hub_service.revoke_subscription.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RevokeSubscription", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.RevokeSubscription", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "revoke_commercial", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.bigquery.analyticshub.v1.RevokeSubscriptionResponse", - "client": { - "shortName": "AnalyticsHubServiceClient", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient" - }, - "method": { - "shortName": "RevokeSubscription", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.RevokeSubscription", - "service": { - "shortName": "AnalyticsHubService", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService" - } - } - } - }, - { - "regionTag": "analyticshub_v1_generated_AnalyticsHubService_DeleteSubscription_async", - "title": "AnalyticsHubService deleteSubscription Sample", - "origin": "API_DEFINITION", - "description": " Deletes a subscription.", - "canonical": true, - "file": "analytics_hub_service.delete_subscription.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSubscription", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.DeleteSubscription", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AnalyticsHubServiceClient", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient" - }, - "method": { - "shortName": "DeleteSubscription", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.DeleteSubscription", - "service": { - "shortName": "AnalyticsHubService", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService" - } - } - } - }, - { - "regionTag": "analyticshub_v1_generated_AnalyticsHubService_GetIamPolicy_async", - "title": "AnalyticsHubService getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the IAM policy.", - "canonical": true, - "file": "analytics_hub_service.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": ".google.iam.v1.GetPolicyOptions" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "AnalyticsHubServiceClient", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.GetIamPolicy", - "service": { - "shortName": "AnalyticsHubService", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService" - } - } - } - }, - { - "regionTag": "analyticshub_v1_generated_AnalyticsHubService_SetIamPolicy_async", - "title": "AnalyticsHubService setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the IAM policy.", - "canonical": true, - "file": "analytics_hub_service.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.iam.v1.Policy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "AnalyticsHubServiceClient", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.SetIamPolicy", - "service": { - "shortName": "AnalyticsHubService", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService" - } - } - } - }, - { - "regionTag": "analyticshub_v1_generated_AnalyticsHubService_TestIamPermissions_async", - "title": "AnalyticsHubService testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns the permissions that a caller has.", - "canonical": true, - "file": "analytics_hub_service.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "permissions", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.iam.v1.TestIamPermissionsResponse", - "client": { - "shortName": "AnalyticsHubServiceClient", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.TestIamPermissions", - "service": { - "shortName": "AnalyticsHubService", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService" - } - } - } - }, - { - "regionTag": "analyticshub_v1_generated_AnalyticsHubService_CreateQueryTemplate_async", - "title": "AnalyticsHubService createQueryTemplate Sample", - "origin": "API_DEFINITION", - "description": " Creates a new QueryTemplate", - "canonical": true, - "file": "analytics_hub_service.create_query_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateQueryTemplate", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.CreateQueryTemplate", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "query_template_id", - "type": "TYPE_STRING" - }, - { - "name": "query_template", - "type": ".google.cloud.bigquery.analyticshub.v1.QueryTemplate" - } - ], - "resultType": ".google.cloud.bigquery.analyticshub.v1.QueryTemplate", - "client": { - "shortName": "AnalyticsHubServiceClient", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient" - }, - "method": { - "shortName": "CreateQueryTemplate", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.CreateQueryTemplate", - "service": { - "shortName": "AnalyticsHubService", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService" - } - } - } - }, - { - "regionTag": "analyticshub_v1_generated_AnalyticsHubService_GetQueryTemplate_async", - "title": "AnalyticsHubService getQueryTemplate Sample", - "origin": "API_DEFINITION", - "description": " Gets a QueryTemplate", - "canonical": true, - "file": "analytics_hub_service.get_query_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetQueryTemplate", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.GetQueryTemplate", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.analyticshub.v1.QueryTemplate", - "client": { - "shortName": "AnalyticsHubServiceClient", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient" - }, - "method": { - "shortName": "GetQueryTemplate", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.GetQueryTemplate", - "service": { - "shortName": "AnalyticsHubService", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService" - } - } - } - }, - { - "regionTag": "analyticshub_v1_generated_AnalyticsHubService_ListQueryTemplates_async", - "title": "AnalyticsHubService listQueryTemplates Sample", - "origin": "API_DEFINITION", - "description": " Lists all QueryTemplates in a given project and location.", - "canonical": true, - "file": "analytics_hub_service.list_query_templates.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListQueryTemplates", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.ListQueryTemplates", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.analyticshub.v1.ListQueryTemplatesResponse", - "client": { - "shortName": "AnalyticsHubServiceClient", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient" - }, - "method": { - "shortName": "ListQueryTemplates", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.ListQueryTemplates", - "service": { - "shortName": "AnalyticsHubService", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService" - } - } - } - }, - { - "regionTag": "analyticshub_v1_generated_AnalyticsHubService_UpdateQueryTemplate_async", - "title": "AnalyticsHubService updateQueryTemplate Sample", - "origin": "API_DEFINITION", - "description": " Updates an existing QueryTemplate", - "canonical": true, - "file": "analytics_hub_service.update_query_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateQueryTemplate", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.UpdateQueryTemplate", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "query_template", - "type": ".google.cloud.bigquery.analyticshub.v1.QueryTemplate" - } - ], - "resultType": ".google.cloud.bigquery.analyticshub.v1.QueryTemplate", - "client": { - "shortName": "AnalyticsHubServiceClient", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient" - }, - "method": { - "shortName": "UpdateQueryTemplate", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.UpdateQueryTemplate", - "service": { - "shortName": "AnalyticsHubService", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService" - } - } - } - }, - { - "regionTag": "analyticshub_v1_generated_AnalyticsHubService_DeleteQueryTemplate_async", - "title": "AnalyticsHubService deleteQueryTemplate Sample", - "origin": "API_DEFINITION", - "description": " Deletes a query template.", - "canonical": true, - "file": "analytics_hub_service.delete_query_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteQueryTemplate", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.DeleteQueryTemplate", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AnalyticsHubServiceClient", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient" - }, - "method": { - "shortName": "DeleteQueryTemplate", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.DeleteQueryTemplate", - "service": { - "shortName": "AnalyticsHubService", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService" - } - } - } - }, - { - "regionTag": "analyticshub_v1_generated_AnalyticsHubService_SubmitQueryTemplate_async", - "title": "AnalyticsHubService submitQueryTemplate Sample", - "origin": "API_DEFINITION", - "description": " Submits a query template for approval.", - "canonical": true, - "file": "analytics_hub_service.submit_query_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SubmitQueryTemplate", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.SubmitQueryTemplate", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.analyticshub.v1.QueryTemplate", - "client": { - "shortName": "AnalyticsHubServiceClient", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient" - }, - "method": { - "shortName": "SubmitQueryTemplate", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.SubmitQueryTemplate", - "service": { - "shortName": "AnalyticsHubService", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService" - } - } - } - }, - { - "regionTag": "analyticshub_v1_generated_AnalyticsHubService_ApproveQueryTemplate_async", - "title": "AnalyticsHubService approveQueryTemplate Sample", - "origin": "API_DEFINITION", - "description": " Approves a query template.", - "canonical": true, - "file": "analytics_hub_service.approve_query_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ApproveQueryTemplate", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.ApproveQueryTemplate", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.analyticshub.v1.QueryTemplate", - "client": { - "shortName": "AnalyticsHubServiceClient", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClient" - }, - "method": { - "shortName": "ApproveQueryTemplate", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService.ApproveQueryTemplate", - "service": { - "shortName": "AnalyticsHubService", - "fullName": "google.cloud.bigquery.analyticshub.v1.AnalyticsHubService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-bigquery-connection/samples/generated/v1/snippet_metadata_google.cloud.bigquery.connection.v1.json b/packages/google-cloud-bigquery-connection/samples/generated/v1/snippet_metadata_google.cloud.bigquery.connection.v1.json deleted file mode 100644 index f38c426e5efe..000000000000 --- a/packages/google-cloud-bigquery-connection/samples/generated/v1/snippet_metadata_google.cloud.bigquery.connection.v1.json +++ /dev/null @@ -1,375 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-connection", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.bigquery.connection.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "bigqueryconnection_v1_generated_ConnectionService_CreateConnection_async", - "title": "ConnectionService createConnection Sample", - "origin": "API_DEFINITION", - "description": " Creates a new connection.", - "canonical": true, - "file": "connection_service.create_connection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateConnection", - "fullName": "google.cloud.bigquery.connection.v1.ConnectionService.CreateConnection", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "connection_id", - "type": "TYPE_STRING" - }, - { - "name": "connection", - "type": ".google.cloud.bigquery.connection.v1.Connection" - } - ], - "resultType": ".google.cloud.bigquery.connection.v1.Connection", - "client": { - "shortName": "ConnectionServiceClient", - "fullName": "google.cloud.bigquery.connection.v1.ConnectionServiceClient" - }, - "method": { - "shortName": "CreateConnection", - "fullName": "google.cloud.bigquery.connection.v1.ConnectionService.CreateConnection", - "service": { - "shortName": "ConnectionService", - "fullName": "google.cloud.bigquery.connection.v1.ConnectionService" - } - } - } - }, - { - "regionTag": "bigqueryconnection_v1_generated_ConnectionService_GetConnection_async", - "title": "ConnectionService getConnection Sample", - "origin": "API_DEFINITION", - "description": " Returns specified connection.", - "canonical": true, - "file": "connection_service.get_connection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetConnection", - "fullName": "google.cloud.bigquery.connection.v1.ConnectionService.GetConnection", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.connection.v1.Connection", - "client": { - "shortName": "ConnectionServiceClient", - "fullName": "google.cloud.bigquery.connection.v1.ConnectionServiceClient" - }, - "method": { - "shortName": "GetConnection", - "fullName": "google.cloud.bigquery.connection.v1.ConnectionService.GetConnection", - "service": { - "shortName": "ConnectionService", - "fullName": "google.cloud.bigquery.connection.v1.ConnectionService" - } - } - } - }, - { - "regionTag": "bigqueryconnection_v1_generated_ConnectionService_ListConnections_async", - "title": "ConnectionService listConnections Sample", - "origin": "API_DEFINITION", - "description": " Returns a list of connections in the given project.", - "canonical": true, - "file": "connection_service.list_connections.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListConnections", - "fullName": "google.cloud.bigquery.connection.v1.ConnectionService.ListConnections", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.connection.v1.ListConnectionsResponse", - "client": { - "shortName": "ConnectionServiceClient", - "fullName": "google.cloud.bigquery.connection.v1.ConnectionServiceClient" - }, - "method": { - "shortName": "ListConnections", - "fullName": "google.cloud.bigquery.connection.v1.ConnectionService.ListConnections", - "service": { - "shortName": "ConnectionService", - "fullName": "google.cloud.bigquery.connection.v1.ConnectionService" - } - } - } - }, - { - "regionTag": "bigqueryconnection_v1_generated_ConnectionService_UpdateConnection_async", - "title": "ConnectionService updateConnection Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified connection. For security reasons, also resets credential if connection properties are in the update field mask.", - "canonical": true, - "file": "connection_service.update_connection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateConnection", - "fullName": "google.cloud.bigquery.connection.v1.ConnectionService.UpdateConnection", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "connection", - "type": ".google.cloud.bigquery.connection.v1.Connection" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.bigquery.connection.v1.Connection", - "client": { - "shortName": "ConnectionServiceClient", - "fullName": "google.cloud.bigquery.connection.v1.ConnectionServiceClient" - }, - "method": { - "shortName": "UpdateConnection", - "fullName": "google.cloud.bigquery.connection.v1.ConnectionService.UpdateConnection", - "service": { - "shortName": "ConnectionService", - "fullName": "google.cloud.bigquery.connection.v1.ConnectionService" - } - } - } - }, - { - "regionTag": "bigqueryconnection_v1_generated_ConnectionService_DeleteConnection_async", - "title": "ConnectionService deleteConnection Sample", - "origin": "API_DEFINITION", - "description": " Deletes connection and associated credential.", - "canonical": true, - "file": "connection_service.delete_connection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteConnection", - "fullName": "google.cloud.bigquery.connection.v1.ConnectionService.DeleteConnection", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ConnectionServiceClient", - "fullName": "google.cloud.bigquery.connection.v1.ConnectionServiceClient" - }, - "method": { - "shortName": "DeleteConnection", - "fullName": "google.cloud.bigquery.connection.v1.ConnectionService.DeleteConnection", - "service": { - "shortName": "ConnectionService", - "fullName": "google.cloud.bigquery.connection.v1.ConnectionService" - } - } - } - }, - { - "regionTag": "bigqueryconnection_v1_generated_ConnectionService_GetIamPolicy_async", - "title": "ConnectionService getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", - "canonical": true, - "file": "connection_service.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.bigquery.connection.v1.ConnectionService.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": ".google.iam.v1.GetPolicyOptions" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "ConnectionServiceClient", - "fullName": "google.cloud.bigquery.connection.v1.ConnectionServiceClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.bigquery.connection.v1.ConnectionService.GetIamPolicy", - "service": { - "shortName": "ConnectionService", - "fullName": "google.cloud.bigquery.connection.v1.ConnectionService" - } - } - } - }, - { - "regionTag": "bigqueryconnection_v1_generated_ConnectionService_SetIamPolicy_async", - "title": "ConnectionService setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", - "canonical": true, - "file": "connection_service.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.bigquery.connection.v1.ConnectionService.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.iam.v1.Policy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "ConnectionServiceClient", - "fullName": "google.cloud.bigquery.connection.v1.ConnectionServiceClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.bigquery.connection.v1.ConnectionService.SetIamPolicy", - "service": { - "shortName": "ConnectionService", - "fullName": "google.cloud.bigquery.connection.v1.ConnectionService" - } - } - } - }, - { - "regionTag": "bigqueryconnection_v1_generated_ConnectionService_TestIamPermissions_async", - "title": "ConnectionService testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - "canonical": true, - "file": "connection_service.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.bigquery.connection.v1.ConnectionService.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "permissions", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.iam.v1.TestIamPermissionsResponse", - "client": { - "shortName": "ConnectionServiceClient", - "fullName": "google.cloud.bigquery.connection.v1.ConnectionServiceClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.bigquery.connection.v1.ConnectionService.TestIamPermissions", - "service": { - "shortName": "ConnectionService", - "fullName": "google.cloud.bigquery.connection.v1.ConnectionService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-bigquery-connection/samples/generated/v1beta1/snippet_metadata_google.cloud.bigquery.connection.v1beta1.json b/packages/google-cloud-bigquery-connection/samples/generated/v1beta1/snippet_metadata_google.cloud.bigquery.connection.v1beta1.json deleted file mode 100644 index 2e104c520e0a..000000000000 --- a/packages/google-cloud-bigquery-connection/samples/generated/v1beta1/snippet_metadata_google.cloud.bigquery.connection.v1beta1.json +++ /dev/null @@ -1,419 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-connection", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.bigquery.connection.v1beta1", - "version": "v1beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "bigqueryconnection_v1beta1_generated_ConnectionService_CreateConnection_async", - "title": "ConnectionService createConnection Sample", - "origin": "API_DEFINITION", - "description": " Creates a new connection.", - "canonical": true, - "file": "connection_service.create_connection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateConnection", - "fullName": "google.cloud.bigquery.connection.v1beta1.ConnectionService.CreateConnection", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "connection_id", - "type": "TYPE_STRING" - }, - { - "name": "connection", - "type": ".google.cloud.bigquery.connection.v1beta1.Connection" - } - ], - "resultType": ".google.cloud.bigquery.connection.v1beta1.Connection", - "client": { - "shortName": "ConnectionServiceClient", - "fullName": "google.cloud.bigquery.connection.v1beta1.ConnectionServiceClient" - }, - "method": { - "shortName": "CreateConnection", - "fullName": "google.cloud.bigquery.connection.v1beta1.ConnectionService.CreateConnection", - "service": { - "shortName": "ConnectionService", - "fullName": "google.cloud.bigquery.connection.v1beta1.ConnectionService" - } - } - } - }, - { - "regionTag": "bigqueryconnection_v1beta1_generated_ConnectionService_GetConnection_async", - "title": "ConnectionService getConnection Sample", - "origin": "API_DEFINITION", - "description": " Returns specified connection.", - "canonical": true, - "file": "connection_service.get_connection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetConnection", - "fullName": "google.cloud.bigquery.connection.v1beta1.ConnectionService.GetConnection", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.connection.v1beta1.Connection", - "client": { - "shortName": "ConnectionServiceClient", - "fullName": "google.cloud.bigquery.connection.v1beta1.ConnectionServiceClient" - }, - "method": { - "shortName": "GetConnection", - "fullName": "google.cloud.bigquery.connection.v1beta1.ConnectionService.GetConnection", - "service": { - "shortName": "ConnectionService", - "fullName": "google.cloud.bigquery.connection.v1beta1.ConnectionService" - } - } - } - }, - { - "regionTag": "bigqueryconnection_v1beta1_generated_ConnectionService_ListConnections_async", - "title": "ConnectionService listConnections Sample", - "origin": "API_DEFINITION", - "description": " Returns a list of connections in the given project.", - "canonical": true, - "file": "connection_service.list_connections.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListConnections", - "fullName": "google.cloud.bigquery.connection.v1beta1.ConnectionService.ListConnections", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": ".google.protobuf.UInt32Value" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.connection.v1beta1.ListConnectionsResponse", - "client": { - "shortName": "ConnectionServiceClient", - "fullName": "google.cloud.bigquery.connection.v1beta1.ConnectionServiceClient" - }, - "method": { - "shortName": "ListConnections", - "fullName": "google.cloud.bigquery.connection.v1beta1.ConnectionService.ListConnections", - "service": { - "shortName": "ConnectionService", - "fullName": "google.cloud.bigquery.connection.v1beta1.ConnectionService" - } - } - } - }, - { - "regionTag": "bigqueryconnection_v1beta1_generated_ConnectionService_UpdateConnection_async", - "title": "ConnectionService updateConnection Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified connection. For security reasons, also resets credential if connection properties are in the update field mask.", - "canonical": true, - "file": "connection_service.update_connection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateConnection", - "fullName": "google.cloud.bigquery.connection.v1beta1.ConnectionService.UpdateConnection", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "connection", - "type": ".google.cloud.bigquery.connection.v1beta1.Connection" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.bigquery.connection.v1beta1.Connection", - "client": { - "shortName": "ConnectionServiceClient", - "fullName": "google.cloud.bigquery.connection.v1beta1.ConnectionServiceClient" - }, - "method": { - "shortName": "UpdateConnection", - "fullName": "google.cloud.bigquery.connection.v1beta1.ConnectionService.UpdateConnection", - "service": { - "shortName": "ConnectionService", - "fullName": "google.cloud.bigquery.connection.v1beta1.ConnectionService" - } - } - } - }, - { - "regionTag": "bigqueryconnection_v1beta1_generated_ConnectionService_UpdateConnectionCredential_async", - "title": "ConnectionService updateConnectionCredential Sample", - "origin": "API_DEFINITION", - "description": " Sets the credential for the specified connection.", - "canonical": true, - "file": "connection_service.update_connection_credential.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateConnectionCredential", - "fullName": "google.cloud.bigquery.connection.v1beta1.ConnectionService.UpdateConnectionCredential", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "credential", - "type": ".google.cloud.bigquery.connection.v1beta1.ConnectionCredential" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ConnectionServiceClient", - "fullName": "google.cloud.bigquery.connection.v1beta1.ConnectionServiceClient" - }, - "method": { - "shortName": "UpdateConnectionCredential", - "fullName": "google.cloud.bigquery.connection.v1beta1.ConnectionService.UpdateConnectionCredential", - "service": { - "shortName": "ConnectionService", - "fullName": "google.cloud.bigquery.connection.v1beta1.ConnectionService" - } - } - } - }, - { - "regionTag": "bigqueryconnection_v1beta1_generated_ConnectionService_DeleteConnection_async", - "title": "ConnectionService deleteConnection Sample", - "origin": "API_DEFINITION", - "description": " Deletes connection and associated credential.", - "canonical": true, - "file": "connection_service.delete_connection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteConnection", - "fullName": "google.cloud.bigquery.connection.v1beta1.ConnectionService.DeleteConnection", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ConnectionServiceClient", - "fullName": "google.cloud.bigquery.connection.v1beta1.ConnectionServiceClient" - }, - "method": { - "shortName": "DeleteConnection", - "fullName": "google.cloud.bigquery.connection.v1beta1.ConnectionService.DeleteConnection", - "service": { - "shortName": "ConnectionService", - "fullName": "google.cloud.bigquery.connection.v1beta1.ConnectionService" - } - } - } - }, - { - "regionTag": "bigqueryconnection_v1beta1_generated_ConnectionService_GetIamPolicy_async", - "title": "ConnectionService getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", - "canonical": true, - "file": "connection_service.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.bigquery.connection.v1beta1.ConnectionService.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": ".google.iam.v1.GetPolicyOptions" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "ConnectionServiceClient", - "fullName": "google.cloud.bigquery.connection.v1beta1.ConnectionServiceClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.bigquery.connection.v1beta1.ConnectionService.GetIamPolicy", - "service": { - "shortName": "ConnectionService", - "fullName": "google.cloud.bigquery.connection.v1beta1.ConnectionService" - } - } - } - }, - { - "regionTag": "bigqueryconnection_v1beta1_generated_ConnectionService_SetIamPolicy_async", - "title": "ConnectionService setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", - "canonical": true, - "file": "connection_service.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.bigquery.connection.v1beta1.ConnectionService.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.iam.v1.Policy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "ConnectionServiceClient", - "fullName": "google.cloud.bigquery.connection.v1beta1.ConnectionServiceClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.bigquery.connection.v1beta1.ConnectionService.SetIamPolicy", - "service": { - "shortName": "ConnectionService", - "fullName": "google.cloud.bigquery.connection.v1beta1.ConnectionService" - } - } - } - }, - { - "regionTag": "bigqueryconnection_v1beta1_generated_ConnectionService_TestIamPermissions_async", - "title": "ConnectionService testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - "canonical": true, - "file": "connection_service.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.bigquery.connection.v1beta1.ConnectionService.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "permissions", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.iam.v1.TestIamPermissionsResponse", - "client": { - "shortName": "ConnectionServiceClient", - "fullName": "google.cloud.bigquery.connection.v1beta1.ConnectionServiceClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.bigquery.connection.v1beta1.ConnectionService.TestIamPermissions", - "service": { - "shortName": "ConnectionService", - "fullName": "google.cloud.bigquery.connection.v1beta1.ConnectionService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-bigquery-dataexchange/samples/generated/v1beta1/snippet_metadata_google.cloud.bigquery.dataexchange.v1beta1.json b/packages/google-cloud-bigquery-dataexchange/samples/generated/v1beta1/snippet_metadata_google.cloud.bigquery.dataexchange.v1beta1.json deleted file mode 100644 index ef3b65b550fb..000000000000 --- a/packages/google-cloud-bigquery-dataexchange/samples/generated/v1beta1/snippet_metadata_google.cloud.bigquery.dataexchange.v1beta1.json +++ /dev/null @@ -1,683 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-dataexchange", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.bigquery.dataexchange.v1beta1", - "version": "v1beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "analyticshub_v1beta1_generated_AnalyticsHubService_ListDataExchanges_async", - "title": "AnalyticsHubService listDataExchanges Sample", - "origin": "API_DEFINITION", - "description": " Lists all data exchanges in a given project and location.", - "canonical": true, - "file": "analytics_hub_service.list_data_exchanges.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDataExchanges", - "fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.ListDataExchanges", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.dataexchange.v1beta1.ListDataExchangesResponse", - "client": { - "shortName": "AnalyticsHubServiceClient", - "fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubServiceClient" - }, - "method": { - "shortName": "ListDataExchanges", - "fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.ListDataExchanges", - "service": { - "shortName": "AnalyticsHubService", - "fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService" - } - } - } - }, - { - "regionTag": "analyticshub_v1beta1_generated_AnalyticsHubService_ListOrgDataExchanges_async", - "title": "AnalyticsHubService listOrgDataExchanges Sample", - "origin": "API_DEFINITION", - "description": " Lists all data exchanges from projects in a given organization and location.", - "canonical": true, - "file": "analytics_hub_service.list_org_data_exchanges.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListOrgDataExchanges", - "fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.ListOrgDataExchanges", - "async": true, - "parameters": [ - { - "name": "organization", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.dataexchange.v1beta1.ListOrgDataExchangesResponse", - "client": { - "shortName": "AnalyticsHubServiceClient", - "fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubServiceClient" - }, - "method": { - "shortName": "ListOrgDataExchanges", - "fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.ListOrgDataExchanges", - "service": { - "shortName": "AnalyticsHubService", - "fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService" - } - } - } - }, - { - "regionTag": "analyticshub_v1beta1_generated_AnalyticsHubService_GetDataExchange_async", - "title": "AnalyticsHubService getDataExchange Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a data exchange.", - "canonical": true, - "file": "analytics_hub_service.get_data_exchange.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDataExchange", - "fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.GetDataExchange", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.dataexchange.v1beta1.DataExchange", - "client": { - "shortName": "AnalyticsHubServiceClient", - "fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubServiceClient" - }, - "method": { - "shortName": "GetDataExchange", - "fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.GetDataExchange", - "service": { - "shortName": "AnalyticsHubService", - "fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService" - } - } - } - }, - { - "regionTag": "analyticshub_v1beta1_generated_AnalyticsHubService_CreateDataExchange_async", - "title": "AnalyticsHubService createDataExchange Sample", - "origin": "API_DEFINITION", - "description": " Creates a new data exchange.", - "canonical": true, - "file": "analytics_hub_service.create_data_exchange.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDataExchange", - "fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.CreateDataExchange", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "data_exchange_id", - "type": "TYPE_STRING" - }, - { - "name": "data_exchange", - "type": ".google.cloud.bigquery.dataexchange.v1beta1.DataExchange" - } - ], - "resultType": ".google.cloud.bigquery.dataexchange.v1beta1.DataExchange", - "client": { - "shortName": "AnalyticsHubServiceClient", - "fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubServiceClient" - }, - "method": { - "shortName": "CreateDataExchange", - "fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.CreateDataExchange", - "service": { - "shortName": "AnalyticsHubService", - "fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService" - } - } - } - }, - { - "regionTag": "analyticshub_v1beta1_generated_AnalyticsHubService_UpdateDataExchange_async", - "title": "AnalyticsHubService updateDataExchange Sample", - "origin": "API_DEFINITION", - "description": " Updates an existing data exchange.", - "canonical": true, - "file": "analytics_hub_service.update_data_exchange.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDataExchange", - "fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.UpdateDataExchange", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "data_exchange", - "type": ".google.cloud.bigquery.dataexchange.v1beta1.DataExchange" - } - ], - "resultType": ".google.cloud.bigquery.dataexchange.v1beta1.DataExchange", - "client": { - "shortName": "AnalyticsHubServiceClient", - "fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubServiceClient" - }, - "method": { - "shortName": "UpdateDataExchange", - "fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.UpdateDataExchange", - "service": { - "shortName": "AnalyticsHubService", - "fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService" - } - } - } - }, - { - "regionTag": "analyticshub_v1beta1_generated_AnalyticsHubService_DeleteDataExchange_async", - "title": "AnalyticsHubService deleteDataExchange Sample", - "origin": "API_DEFINITION", - "description": " Deletes an existing data exchange.", - "canonical": true, - "file": "analytics_hub_service.delete_data_exchange.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDataExchange", - "fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.DeleteDataExchange", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AnalyticsHubServiceClient", - "fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubServiceClient" - }, - "method": { - "shortName": "DeleteDataExchange", - "fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.DeleteDataExchange", - "service": { - "shortName": "AnalyticsHubService", - "fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService" - } - } - } - }, - { - "regionTag": "analyticshub_v1beta1_generated_AnalyticsHubService_ListListings_async", - "title": "AnalyticsHubService listListings Sample", - "origin": "API_DEFINITION", - "description": " Lists all listings in a given project and location.", - "canonical": true, - "file": "analytics_hub_service.list_listings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListListings", - "fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.ListListings", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.dataexchange.v1beta1.ListListingsResponse", - "client": { - "shortName": "AnalyticsHubServiceClient", - "fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubServiceClient" - }, - "method": { - "shortName": "ListListings", - "fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.ListListings", - "service": { - "shortName": "AnalyticsHubService", - "fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService" - } - } - } - }, - { - "regionTag": "analyticshub_v1beta1_generated_AnalyticsHubService_GetListing_async", - "title": "AnalyticsHubService getListing Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a listing.", - "canonical": true, - "file": "analytics_hub_service.get_listing.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetListing", - "fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.GetListing", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.dataexchange.v1beta1.Listing", - "client": { - "shortName": "AnalyticsHubServiceClient", - "fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubServiceClient" - }, - "method": { - "shortName": "GetListing", - "fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.GetListing", - "service": { - "shortName": "AnalyticsHubService", - "fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService" - } - } - } - }, - { - "regionTag": "analyticshub_v1beta1_generated_AnalyticsHubService_CreateListing_async", - "title": "AnalyticsHubService createListing Sample", - "origin": "API_DEFINITION", - "description": " Creates a new listing.", - "canonical": true, - "file": "analytics_hub_service.create_listing.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateListing", - "fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.CreateListing", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "listing_id", - "type": "TYPE_STRING" - }, - { - "name": "listing", - "type": ".google.cloud.bigquery.dataexchange.v1beta1.Listing" - } - ], - "resultType": ".google.cloud.bigquery.dataexchange.v1beta1.Listing", - "client": { - "shortName": "AnalyticsHubServiceClient", - "fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubServiceClient" - }, - "method": { - "shortName": "CreateListing", - "fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.CreateListing", - "service": { - "shortName": "AnalyticsHubService", - "fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService" - } - } - } - }, - { - "regionTag": "analyticshub_v1beta1_generated_AnalyticsHubService_UpdateListing_async", - "title": "AnalyticsHubService updateListing Sample", - "origin": "API_DEFINITION", - "description": " Updates an existing listing.", - "canonical": true, - "file": "analytics_hub_service.update_listing.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateListing", - "fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.UpdateListing", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "listing", - "type": ".google.cloud.bigquery.dataexchange.v1beta1.Listing" - } - ], - "resultType": ".google.cloud.bigquery.dataexchange.v1beta1.Listing", - "client": { - "shortName": "AnalyticsHubServiceClient", - "fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubServiceClient" - }, - "method": { - "shortName": "UpdateListing", - "fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.UpdateListing", - "service": { - "shortName": "AnalyticsHubService", - "fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService" - } - } - } - }, - { - "regionTag": "analyticshub_v1beta1_generated_AnalyticsHubService_DeleteListing_async", - "title": "AnalyticsHubService deleteListing Sample", - "origin": "API_DEFINITION", - "description": " Deletes a listing.", - "canonical": true, - "file": "analytics_hub_service.delete_listing.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteListing", - "fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.DeleteListing", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AnalyticsHubServiceClient", - "fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubServiceClient" - }, - "method": { - "shortName": "DeleteListing", - "fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.DeleteListing", - "service": { - "shortName": "AnalyticsHubService", - "fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService" - } - } - } - }, - { - "regionTag": "analyticshub_v1beta1_generated_AnalyticsHubService_SubscribeListing_async", - "title": "AnalyticsHubService subscribeListing Sample", - "origin": "API_DEFINITION", - "description": " Subscribes to a listing. Currently, with Analytics Hub, you can create listings that reference only BigQuery datasets. Upon subscription to a listing for a BigQuery dataset, Analytics Hub creates a linked dataset in the subscriber's project.", - "canonical": true, - "file": "analytics_hub_service.subscribe_listing.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SubscribeListing", - "fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.SubscribeListing", - "async": true, - "parameters": [ - { - "name": "destination_dataset", - "type": ".google.cloud.bigquery.dataexchange.v1beta1.DestinationDataset" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.dataexchange.v1beta1.SubscribeListingResponse", - "client": { - "shortName": "AnalyticsHubServiceClient", - "fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubServiceClient" - }, - "method": { - "shortName": "SubscribeListing", - "fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.SubscribeListing", - "service": { - "shortName": "AnalyticsHubService", - "fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService" - } - } - } - }, - { - "regionTag": "analyticshub_v1beta1_generated_AnalyticsHubService_GetIamPolicy_async", - "title": "AnalyticsHubService getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the IAM policy.", - "canonical": true, - "file": "analytics_hub_service.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": ".google.iam.v1.GetPolicyOptions" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "AnalyticsHubServiceClient", - "fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubServiceClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.GetIamPolicy", - "service": { - "shortName": "AnalyticsHubService", - "fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService" - } - } - } - }, - { - "regionTag": "analyticshub_v1beta1_generated_AnalyticsHubService_SetIamPolicy_async", - "title": "AnalyticsHubService setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the IAM policy.", - "canonical": true, - "file": "analytics_hub_service.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.iam.v1.Policy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "AnalyticsHubServiceClient", - "fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubServiceClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.SetIamPolicy", - "service": { - "shortName": "AnalyticsHubService", - "fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService" - } - } - } - }, - { - "regionTag": "analyticshub_v1beta1_generated_AnalyticsHubService_TestIamPermissions_async", - "title": "AnalyticsHubService testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns the permissions that a caller has.", - "canonical": true, - "file": "analytics_hub_service.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "permissions", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.iam.v1.TestIamPermissionsResponse", - "client": { - "shortName": "AnalyticsHubServiceClient", - "fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubServiceClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService.TestIamPermissions", - "service": { - "shortName": "AnalyticsHubService", - "fullName": "google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-bigquery-datapolicies/samples/generated/v1/snippet_metadata_google.cloud.bigquery.datapolicies.v1.json b/packages/google-cloud-bigquery-datapolicies/samples/generated/v1/snippet_metadata_google.cloud.bigquery.datapolicies.v1.json deleted file mode 100644 index 9c92f7b5b5b7..000000000000 --- a/packages/google-cloud-bigquery-datapolicies/samples/generated/v1/snippet_metadata_google.cloud.bigquery.datapolicies.v1.json +++ /dev/null @@ -1,415 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-datapolicies", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.bigquery.datapolicies.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "bigquerydatapolicy_v1_generated_DataPolicyService_CreateDataPolicy_async", - "title": "DataPolicyService createDataPolicy Sample", - "origin": "API_DEFINITION", - "description": " Creates a new data policy under a project with the given `dataPolicyId` (used as the display name), policy tag, and data policy type.", - "canonical": true, - "file": "data_policy_service.create_data_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDataPolicy", - "fullName": "google.cloud.bigquery.datapolicies.v1.DataPolicyService.CreateDataPolicy", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "data_policy", - "type": ".google.cloud.bigquery.datapolicies.v1.DataPolicy" - } - ], - "resultType": ".google.cloud.bigquery.datapolicies.v1.DataPolicy", - "client": { - "shortName": "DataPolicyServiceClient", - "fullName": "google.cloud.bigquery.datapolicies.v1.DataPolicyServiceClient" - }, - "method": { - "shortName": "CreateDataPolicy", - "fullName": "google.cloud.bigquery.datapolicies.v1.DataPolicyService.CreateDataPolicy", - "service": { - "shortName": "DataPolicyService", - "fullName": "google.cloud.bigquery.datapolicies.v1.DataPolicyService" - } - } - } - }, - { - "regionTag": "bigquerydatapolicy_v1_generated_DataPolicyService_UpdateDataPolicy_async", - "title": "DataPolicyService updateDataPolicy Sample", - "origin": "API_DEFINITION", - "description": " Updates the metadata for an existing data policy. The target data policy can be specified by the resource name.", - "canonical": true, - "file": "data_policy_service.update_data_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDataPolicy", - "fullName": "google.cloud.bigquery.datapolicies.v1.DataPolicyService.UpdateDataPolicy", - "async": true, - "parameters": [ - { - "name": "data_policy", - "type": ".google.cloud.bigquery.datapolicies.v1.DataPolicy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.bigquery.datapolicies.v1.DataPolicy", - "client": { - "shortName": "DataPolicyServiceClient", - "fullName": "google.cloud.bigquery.datapolicies.v1.DataPolicyServiceClient" - }, - "method": { - "shortName": "UpdateDataPolicy", - "fullName": "google.cloud.bigquery.datapolicies.v1.DataPolicyService.UpdateDataPolicy", - "service": { - "shortName": "DataPolicyService", - "fullName": "google.cloud.bigquery.datapolicies.v1.DataPolicyService" - } - } - } - }, - { - "regionTag": "bigquerydatapolicy_v1_generated_DataPolicyService_RenameDataPolicy_async", - "title": "DataPolicyService renameDataPolicy Sample", - "origin": "API_DEFINITION", - "description": " Renames the id (display name) of the specified data policy.", - "canonical": true, - "file": "data_policy_service.rename_data_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RenameDataPolicy", - "fullName": "google.cloud.bigquery.datapolicies.v1.DataPolicyService.RenameDataPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "new_data_policy_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.datapolicies.v1.DataPolicy", - "client": { - "shortName": "DataPolicyServiceClient", - "fullName": "google.cloud.bigquery.datapolicies.v1.DataPolicyServiceClient" - }, - "method": { - "shortName": "RenameDataPolicy", - "fullName": "google.cloud.bigquery.datapolicies.v1.DataPolicyService.RenameDataPolicy", - "service": { - "shortName": "DataPolicyService", - "fullName": "google.cloud.bigquery.datapolicies.v1.DataPolicyService" - } - } - } - }, - { - "regionTag": "bigquerydatapolicy_v1_generated_DataPolicyService_DeleteDataPolicy_async", - "title": "DataPolicyService deleteDataPolicy Sample", - "origin": "API_DEFINITION", - "description": " Deletes the data policy specified by its resource name.", - "canonical": true, - "file": "data_policy_service.delete_data_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDataPolicy", - "fullName": "google.cloud.bigquery.datapolicies.v1.DataPolicyService.DeleteDataPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DataPolicyServiceClient", - "fullName": "google.cloud.bigquery.datapolicies.v1.DataPolicyServiceClient" - }, - "method": { - "shortName": "DeleteDataPolicy", - "fullName": "google.cloud.bigquery.datapolicies.v1.DataPolicyService.DeleteDataPolicy", - "service": { - "shortName": "DataPolicyService", - "fullName": "google.cloud.bigquery.datapolicies.v1.DataPolicyService" - } - } - } - }, - { - "regionTag": "bigquerydatapolicy_v1_generated_DataPolicyService_GetDataPolicy_async", - "title": "DataPolicyService getDataPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the data policy specified by its resource name.", - "canonical": true, - "file": "data_policy_service.get_data_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDataPolicy", - "fullName": "google.cloud.bigquery.datapolicies.v1.DataPolicyService.GetDataPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.datapolicies.v1.DataPolicy", - "client": { - "shortName": "DataPolicyServiceClient", - "fullName": "google.cloud.bigquery.datapolicies.v1.DataPolicyServiceClient" - }, - "method": { - "shortName": "GetDataPolicy", - "fullName": "google.cloud.bigquery.datapolicies.v1.DataPolicyService.GetDataPolicy", - "service": { - "shortName": "DataPolicyService", - "fullName": "google.cloud.bigquery.datapolicies.v1.DataPolicyService" - } - } - } - }, - { - "regionTag": "bigquerydatapolicy_v1_generated_DataPolicyService_ListDataPolicies_async", - "title": "DataPolicyService listDataPolicies Sample", - "origin": "API_DEFINITION", - "description": " List all of the data policies in the specified parent project.", - "canonical": true, - "file": "data_policy_service.list_data_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDataPolicies", - "fullName": "google.cloud.bigquery.datapolicies.v1.DataPolicyService.ListDataPolicies", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.datapolicies.v1.ListDataPoliciesResponse", - "client": { - "shortName": "DataPolicyServiceClient", - "fullName": "google.cloud.bigquery.datapolicies.v1.DataPolicyServiceClient" - }, - "method": { - "shortName": "ListDataPolicies", - "fullName": "google.cloud.bigquery.datapolicies.v1.DataPolicyService.ListDataPolicies", - "service": { - "shortName": "DataPolicyService", - "fullName": "google.cloud.bigquery.datapolicies.v1.DataPolicyService" - } - } - } - }, - { - "regionTag": "bigquerydatapolicy_v1_generated_DataPolicyService_GetIamPolicy_async", - "title": "DataPolicyService getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the IAM policy for the specified data policy.", - "canonical": true, - "file": "data_policy_service.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.bigquery.datapolicies.v1.DataPolicyService.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": ".google.iam.v1.GetPolicyOptions" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "DataPolicyServiceClient", - "fullName": "google.cloud.bigquery.datapolicies.v1.DataPolicyServiceClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.bigquery.datapolicies.v1.DataPolicyService.GetIamPolicy", - "service": { - "shortName": "DataPolicyService", - "fullName": "google.cloud.bigquery.datapolicies.v1.DataPolicyService" - } - } - } - }, - { - "regionTag": "bigquerydatapolicy_v1_generated_DataPolicyService_SetIamPolicy_async", - "title": "DataPolicyService setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the IAM policy for the specified data policy.", - "canonical": true, - "file": "data_policy_service.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.bigquery.datapolicies.v1.DataPolicyService.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.iam.v1.Policy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "DataPolicyServiceClient", - "fullName": "google.cloud.bigquery.datapolicies.v1.DataPolicyServiceClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.bigquery.datapolicies.v1.DataPolicyService.SetIamPolicy", - "service": { - "shortName": "DataPolicyService", - "fullName": "google.cloud.bigquery.datapolicies.v1.DataPolicyService" - } - } - } - }, - { - "regionTag": "bigquerydatapolicy_v1_generated_DataPolicyService_TestIamPermissions_async", - "title": "DataPolicyService testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns the caller's permission on the specified data policy resource.", - "canonical": true, - "file": "data_policy_service.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.bigquery.datapolicies.v1.DataPolicyService.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "permissions", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.iam.v1.TestIamPermissionsResponse", - "client": { - "shortName": "DataPolicyServiceClient", - "fullName": "google.cloud.bigquery.datapolicies.v1.DataPolicyServiceClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.bigquery.datapolicies.v1.DataPolicyService.TestIamPermissions", - "service": { - "shortName": "DataPolicyService", - "fullName": "google.cloud.bigquery.datapolicies.v1.DataPolicyService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-bigquery-datapolicies/samples/generated/v1beta1/snippet_metadata_google.cloud.bigquery.datapolicies.v1beta1.json b/packages/google-cloud-bigquery-datapolicies/samples/generated/v1beta1/snippet_metadata_google.cloud.bigquery.datapolicies.v1beta1.json deleted file mode 100644 index da351e6ec623..000000000000 --- a/packages/google-cloud-bigquery-datapolicies/samples/generated/v1beta1/snippet_metadata_google.cloud.bigquery.datapolicies.v1beta1.json +++ /dev/null @@ -1,367 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-datapolicies", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.bigquery.datapolicies.v1beta1", - "version": "v1beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "bigquerydatapolicy_v1beta1_generated_DataPolicyService_CreateDataPolicy_async", - "title": "DataPolicyService createDataPolicy Sample", - "origin": "API_DEFINITION", - "description": " Creates a new data policy under a project with the given `dataPolicyId` (used as the display name), policy tag, and data policy type.", - "canonical": true, - "file": "data_policy_service.create_data_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDataPolicy", - "fullName": "google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.CreateDataPolicy", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "data_policy", - "type": ".google.cloud.bigquery.datapolicies.v1beta1.DataPolicy" - } - ], - "resultType": ".google.cloud.bigquery.datapolicies.v1beta1.DataPolicy", - "client": { - "shortName": "DataPolicyServiceClient", - "fullName": "google.cloud.bigquery.datapolicies.v1beta1.DataPolicyServiceClient" - }, - "method": { - "shortName": "CreateDataPolicy", - "fullName": "google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.CreateDataPolicy", - "service": { - "shortName": "DataPolicyService", - "fullName": "google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService" - } - } - } - }, - { - "regionTag": "bigquerydatapolicy_v1beta1_generated_DataPolicyService_UpdateDataPolicy_async", - "title": "DataPolicyService updateDataPolicy Sample", - "origin": "API_DEFINITION", - "description": " Updates the metadata for an existing data policy. The target data policy can be specified by the resource name.", - "canonical": true, - "file": "data_policy_service.update_data_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDataPolicy", - "fullName": "google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.UpdateDataPolicy", - "async": true, - "parameters": [ - { - "name": "data_policy", - "type": ".google.cloud.bigquery.datapolicies.v1beta1.DataPolicy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.bigquery.datapolicies.v1beta1.DataPolicy", - "client": { - "shortName": "DataPolicyServiceClient", - "fullName": "google.cloud.bigquery.datapolicies.v1beta1.DataPolicyServiceClient" - }, - "method": { - "shortName": "UpdateDataPolicy", - "fullName": "google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.UpdateDataPolicy", - "service": { - "shortName": "DataPolicyService", - "fullName": "google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService" - } - } - } - }, - { - "regionTag": "bigquerydatapolicy_v1beta1_generated_DataPolicyService_DeleteDataPolicy_async", - "title": "DataPolicyService deleteDataPolicy Sample", - "origin": "API_DEFINITION", - "description": " Deletes the data policy specified by its resource name.", - "canonical": true, - "file": "data_policy_service.delete_data_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDataPolicy", - "fullName": "google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.DeleteDataPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DataPolicyServiceClient", - "fullName": "google.cloud.bigquery.datapolicies.v1beta1.DataPolicyServiceClient" - }, - "method": { - "shortName": "DeleteDataPolicy", - "fullName": "google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.DeleteDataPolicy", - "service": { - "shortName": "DataPolicyService", - "fullName": "google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService" - } - } - } - }, - { - "regionTag": "bigquerydatapolicy_v1beta1_generated_DataPolicyService_GetDataPolicy_async", - "title": "DataPolicyService getDataPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the data policy specified by its resource name.", - "canonical": true, - "file": "data_policy_service.get_data_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDataPolicy", - "fullName": "google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.GetDataPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.datapolicies.v1beta1.DataPolicy", - "client": { - "shortName": "DataPolicyServiceClient", - "fullName": "google.cloud.bigquery.datapolicies.v1beta1.DataPolicyServiceClient" - }, - "method": { - "shortName": "GetDataPolicy", - "fullName": "google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.GetDataPolicy", - "service": { - "shortName": "DataPolicyService", - "fullName": "google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService" - } - } - } - }, - { - "regionTag": "bigquerydatapolicy_v1beta1_generated_DataPolicyService_ListDataPolicies_async", - "title": "DataPolicyService listDataPolicies Sample", - "origin": "API_DEFINITION", - "description": " List all of the data policies in the specified parent project.", - "canonical": true, - "file": "data_policy_service.list_data_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDataPolicies", - "fullName": "google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.ListDataPolicies", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.datapolicies.v1beta1.ListDataPoliciesResponse", - "client": { - "shortName": "DataPolicyServiceClient", - "fullName": "google.cloud.bigquery.datapolicies.v1beta1.DataPolicyServiceClient" - }, - "method": { - "shortName": "ListDataPolicies", - "fullName": "google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.ListDataPolicies", - "service": { - "shortName": "DataPolicyService", - "fullName": "google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService" - } - } - } - }, - { - "regionTag": "bigquerydatapolicy_v1beta1_generated_DataPolicyService_GetIamPolicy_async", - "title": "DataPolicyService getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the IAM policy for the specified data policy.", - "canonical": true, - "file": "data_policy_service.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": ".google.iam.v1.GetPolicyOptions" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "DataPolicyServiceClient", - "fullName": "google.cloud.bigquery.datapolicies.v1beta1.DataPolicyServiceClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.GetIamPolicy", - "service": { - "shortName": "DataPolicyService", - "fullName": "google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService" - } - } - } - }, - { - "regionTag": "bigquerydatapolicy_v1beta1_generated_DataPolicyService_SetIamPolicy_async", - "title": "DataPolicyService setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the IAM policy for the specified data policy.", - "canonical": true, - "file": "data_policy_service.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.iam.v1.Policy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "DataPolicyServiceClient", - "fullName": "google.cloud.bigquery.datapolicies.v1beta1.DataPolicyServiceClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.SetIamPolicy", - "service": { - "shortName": "DataPolicyService", - "fullName": "google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService" - } - } - } - }, - { - "regionTag": "bigquerydatapolicy_v1beta1_generated_DataPolicyService_TestIamPermissions_async", - "title": "DataPolicyService testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns the caller's permission on the specified data policy resource.", - "canonical": true, - "file": "data_policy_service.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "permissions", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.iam.v1.TestIamPermissionsResponse", - "client": { - "shortName": "DataPolicyServiceClient", - "fullName": "google.cloud.bigquery.datapolicies.v1beta1.DataPolicyServiceClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService.TestIamPermissions", - "service": { - "shortName": "DataPolicyService", - "fullName": "google.cloud.bigquery.datapolicies.v1beta1.DataPolicyService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-bigquery-datapolicies/samples/generated/v2/snippet_metadata_google.cloud.bigquery.datapolicies.v2.json b/packages/google-cloud-bigquery-datapolicies/samples/generated/v2/snippet_metadata_google.cloud.bigquery.datapolicies.v2.json deleted file mode 100644 index 455b71dc2ce2..000000000000 --- a/packages/google-cloud-bigquery-datapolicies/samples/generated/v2/snippet_metadata_google.cloud.bigquery.datapolicies.v2.json +++ /dev/null @@ -1,467 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-datapolicies", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.bigquery.datapolicies.v2", - "version": "v2" - } - ] - }, - "snippets": [ - { - "regionTag": "bigquerydatapolicy_v2_generated_DataPolicyService_CreateDataPolicy_async", - "title": "DataPolicyService createDataPolicy Sample", - "origin": "API_DEFINITION", - "description": " Creates a new data policy under a project with the given `data_policy_id` (used as the display name), and data policy type.", - "canonical": true, - "file": "data_policy_service.create_data_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDataPolicy", - "fullName": "google.cloud.bigquery.datapolicies.v2.DataPolicyService.CreateDataPolicy", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "data_policy_id", - "type": "TYPE_STRING" - }, - { - "name": "data_policy", - "type": ".google.cloud.bigquery.datapolicies.v2.DataPolicy" - } - ], - "resultType": ".google.cloud.bigquery.datapolicies.v2.DataPolicy", - "client": { - "shortName": "DataPolicyServiceClient", - "fullName": "google.cloud.bigquery.datapolicies.v2.DataPolicyServiceClient" - }, - "method": { - "shortName": "CreateDataPolicy", - "fullName": "google.cloud.bigquery.datapolicies.v2.DataPolicyService.CreateDataPolicy", - "service": { - "shortName": "DataPolicyService", - "fullName": "google.cloud.bigquery.datapolicies.v2.DataPolicyService" - } - } - } - }, - { - "regionTag": "bigquerydatapolicy_v2_generated_DataPolicyService_AddGrantees_async", - "title": "DataPolicyService addGrantees Sample", - "origin": "API_DEFINITION", - "description": " Adds new grantees to a data policy. The new grantees will be added to the existing grantees. If the request contains a duplicate grantee, the grantee will be ignored. If the request contains a grantee that already exists, the grantee will be ignored.", - "canonical": true, - "file": "data_policy_service.add_grantees.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddGrantees", - "fullName": "google.cloud.bigquery.datapolicies.v2.DataPolicyService.AddGrantees", - "async": true, - "parameters": [ - { - "name": "data_policy", - "type": "TYPE_STRING" - }, - { - "name": "grantees", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.cloud.bigquery.datapolicies.v2.DataPolicy", - "client": { - "shortName": "DataPolicyServiceClient", - "fullName": "google.cloud.bigquery.datapolicies.v2.DataPolicyServiceClient" - }, - "method": { - "shortName": "AddGrantees", - "fullName": "google.cloud.bigquery.datapolicies.v2.DataPolicyService.AddGrantees", - "service": { - "shortName": "DataPolicyService", - "fullName": "google.cloud.bigquery.datapolicies.v2.DataPolicyService" - } - } - } - }, - { - "regionTag": "bigquerydatapolicy_v2_generated_DataPolicyService_RemoveGrantees_async", - "title": "DataPolicyService removeGrantees Sample", - "origin": "API_DEFINITION", - "description": " Removes grantees from a data policy. The grantees will be removed from the existing grantees. If the request contains a grantee that does not exist, the grantee will be ignored.", - "canonical": true, - "file": "data_policy_service.remove_grantees.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveGrantees", - "fullName": "google.cloud.bigquery.datapolicies.v2.DataPolicyService.RemoveGrantees", - "async": true, - "parameters": [ - { - "name": "data_policy", - "type": "TYPE_STRING" - }, - { - "name": "grantees", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.cloud.bigquery.datapolicies.v2.DataPolicy", - "client": { - "shortName": "DataPolicyServiceClient", - "fullName": "google.cloud.bigquery.datapolicies.v2.DataPolicyServiceClient" - }, - "method": { - "shortName": "RemoveGrantees", - "fullName": "google.cloud.bigquery.datapolicies.v2.DataPolicyService.RemoveGrantees", - "service": { - "shortName": "DataPolicyService", - "fullName": "google.cloud.bigquery.datapolicies.v2.DataPolicyService" - } - } - } - }, - { - "regionTag": "bigquerydatapolicy_v2_generated_DataPolicyService_UpdateDataPolicy_async", - "title": "DataPolicyService updateDataPolicy Sample", - "origin": "API_DEFINITION", - "description": " Updates the metadata for an existing data policy. The target data policy can be specified by the resource name.", - "canonical": true, - "file": "data_policy_service.update_data_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDataPolicy", - "fullName": "google.cloud.bigquery.datapolicies.v2.DataPolicyService.UpdateDataPolicy", - "async": true, - "parameters": [ - { - "name": "data_policy", - "type": ".google.cloud.bigquery.datapolicies.v2.DataPolicy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.bigquery.datapolicies.v2.DataPolicy", - "client": { - "shortName": "DataPolicyServiceClient", - "fullName": "google.cloud.bigquery.datapolicies.v2.DataPolicyServiceClient" - }, - "method": { - "shortName": "UpdateDataPolicy", - "fullName": "google.cloud.bigquery.datapolicies.v2.DataPolicyService.UpdateDataPolicy", - "service": { - "shortName": "DataPolicyService", - "fullName": "google.cloud.bigquery.datapolicies.v2.DataPolicyService" - } - } - } - }, - { - "regionTag": "bigquerydatapolicy_v2_generated_DataPolicyService_DeleteDataPolicy_async", - "title": "DataPolicyService deleteDataPolicy Sample", - "origin": "API_DEFINITION", - "description": " Deletes the data policy specified by its resource name.", - "canonical": true, - "file": "data_policy_service.delete_data_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDataPolicy", - "fullName": "google.cloud.bigquery.datapolicies.v2.DataPolicyService.DeleteDataPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DataPolicyServiceClient", - "fullName": "google.cloud.bigquery.datapolicies.v2.DataPolicyServiceClient" - }, - "method": { - "shortName": "DeleteDataPolicy", - "fullName": "google.cloud.bigquery.datapolicies.v2.DataPolicyService.DeleteDataPolicy", - "service": { - "shortName": "DataPolicyService", - "fullName": "google.cloud.bigquery.datapolicies.v2.DataPolicyService" - } - } - } - }, - { - "regionTag": "bigquerydatapolicy_v2_generated_DataPolicyService_GetDataPolicy_async", - "title": "DataPolicyService getDataPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the data policy specified by its resource name.", - "canonical": true, - "file": "data_policy_service.get_data_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDataPolicy", - "fullName": "google.cloud.bigquery.datapolicies.v2.DataPolicyService.GetDataPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.datapolicies.v2.DataPolicy", - "client": { - "shortName": "DataPolicyServiceClient", - "fullName": "google.cloud.bigquery.datapolicies.v2.DataPolicyServiceClient" - }, - "method": { - "shortName": "GetDataPolicy", - "fullName": "google.cloud.bigquery.datapolicies.v2.DataPolicyService.GetDataPolicy", - "service": { - "shortName": "DataPolicyService", - "fullName": "google.cloud.bigquery.datapolicies.v2.DataPolicyService" - } - } - } - }, - { - "regionTag": "bigquerydatapolicy_v2_generated_DataPolicyService_ListDataPolicies_async", - "title": "DataPolicyService listDataPolicies Sample", - "origin": "API_DEFINITION", - "description": " List all of the data policies in the specified parent project.", - "canonical": true, - "file": "data_policy_service.list_data_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDataPolicies", - "fullName": "google.cloud.bigquery.datapolicies.v2.DataPolicyService.ListDataPolicies", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.datapolicies.v2.ListDataPoliciesResponse", - "client": { - "shortName": "DataPolicyServiceClient", - "fullName": "google.cloud.bigquery.datapolicies.v2.DataPolicyServiceClient" - }, - "method": { - "shortName": "ListDataPolicies", - "fullName": "google.cloud.bigquery.datapolicies.v2.DataPolicyService.ListDataPolicies", - "service": { - "shortName": "DataPolicyService", - "fullName": "google.cloud.bigquery.datapolicies.v2.DataPolicyService" - } - } - } - }, - { - "regionTag": "bigquerydatapolicy_v2_generated_DataPolicyService_GetIamPolicy_async", - "title": "DataPolicyService getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the IAM policy for the specified data policy.", - "canonical": true, - "file": "data_policy_service.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.bigquery.datapolicies.v2.DataPolicyService.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": ".google.iam.v1.GetPolicyOptions" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "DataPolicyServiceClient", - "fullName": "google.cloud.bigquery.datapolicies.v2.DataPolicyServiceClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.bigquery.datapolicies.v2.DataPolicyService.GetIamPolicy", - "service": { - "shortName": "DataPolicyService", - "fullName": "google.cloud.bigquery.datapolicies.v2.DataPolicyService" - } - } - } - }, - { - "regionTag": "bigquerydatapolicy_v2_generated_DataPolicyService_SetIamPolicy_async", - "title": "DataPolicyService setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the IAM policy for the specified data policy.", - "canonical": true, - "file": "data_policy_service.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.bigquery.datapolicies.v2.DataPolicyService.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.iam.v1.Policy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "DataPolicyServiceClient", - "fullName": "google.cloud.bigquery.datapolicies.v2.DataPolicyServiceClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.bigquery.datapolicies.v2.DataPolicyService.SetIamPolicy", - "service": { - "shortName": "DataPolicyService", - "fullName": "google.cloud.bigquery.datapolicies.v2.DataPolicyService" - } - } - } - }, - { - "regionTag": "bigquerydatapolicy_v2_generated_DataPolicyService_TestIamPermissions_async", - "title": "DataPolicyService testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns the caller's permission on the specified data policy resource.", - "canonical": true, - "file": "data_policy_service.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.bigquery.datapolicies.v2.DataPolicyService.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "permissions", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.iam.v1.TestIamPermissionsResponse", - "client": { - "shortName": "DataPolicyServiceClient", - "fullName": "google.cloud.bigquery.datapolicies.v2.DataPolicyServiceClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.bigquery.datapolicies.v2.DataPolicyService.TestIamPermissions", - "service": { - "shortName": "DataPolicyService", - "fullName": "google.cloud.bigquery.datapolicies.v2.DataPolicyService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-bigquery-datapolicies/samples/generated/v2beta1/snippet_metadata_google.cloud.bigquery.datapolicies.v2beta1.json b/packages/google-cloud-bigquery-datapolicies/samples/generated/v2beta1/snippet_metadata_google.cloud.bigquery.datapolicies.v2beta1.json deleted file mode 100644 index 4d6c974d3f9b..000000000000 --- a/packages/google-cloud-bigquery-datapolicies/samples/generated/v2beta1/snippet_metadata_google.cloud.bigquery.datapolicies.v2beta1.json +++ /dev/null @@ -1,459 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-datapolicies", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.bigquery.datapolicies.v2beta1", - "version": "v2beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "bigquerydatapolicy_v2beta1_generated_DataPolicyService_CreateDataPolicy_async", - "title": "DataPolicyService createDataPolicy Sample", - "origin": "API_DEFINITION", - "description": " Creates a new data policy under a project with the given `data_policy_id` (used as the display name), and data policy type.", - "canonical": true, - "file": "data_policy_service.create_data_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDataPolicy", - "fullName": "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyService.CreateDataPolicy", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "data_policy_id", - "type": "TYPE_STRING" - }, - { - "name": "data_policy", - "type": ".google.cloud.bigquery.datapolicies.v2beta1.DataPolicy" - } - ], - "resultType": ".google.cloud.bigquery.datapolicies.v2beta1.DataPolicy", - "client": { - "shortName": "DataPolicyServiceClient", - "fullName": "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyServiceClient" - }, - "method": { - "shortName": "CreateDataPolicy", - "fullName": "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyService.CreateDataPolicy", - "service": { - "shortName": "DataPolicyService", - "fullName": "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyService" - } - } - } - }, - { - "regionTag": "bigquerydatapolicy_v2beta1_generated_DataPolicyService_AddGrantees_async", - "title": "DataPolicyService addGrantees Sample", - "origin": "API_DEFINITION", - "description": " Adds new grantees to a data policy. The new grantees will be added to the existing grantees. If the request contains a duplicate grantee, the grantee will be ignored. If the request contains a grantee that already exists, the grantee will be ignored.", - "canonical": true, - "file": "data_policy_service.add_grantees.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddGrantees", - "fullName": "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyService.AddGrantees", - "async": true, - "parameters": [ - { - "name": "data_policy", - "type": "TYPE_STRING" - }, - { - "name": "grantees", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.cloud.bigquery.datapolicies.v2beta1.DataPolicy", - "client": { - "shortName": "DataPolicyServiceClient", - "fullName": "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyServiceClient" - }, - "method": { - "shortName": "AddGrantees", - "fullName": "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyService.AddGrantees", - "service": { - "shortName": "DataPolicyService", - "fullName": "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyService" - } - } - } - }, - { - "regionTag": "bigquerydatapolicy_v2beta1_generated_DataPolicyService_RemoveGrantees_async", - "title": "DataPolicyService removeGrantees Sample", - "origin": "API_DEFINITION", - "description": " Removes grantees from a data policy. The grantees will be removed from the existing grantees. If the request contains a grantee that does not exist, the grantee will be ignored.", - "canonical": true, - "file": "data_policy_service.remove_grantees.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveGrantees", - "fullName": "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyService.RemoveGrantees", - "async": true, - "parameters": [ - { - "name": "data_policy", - "type": "TYPE_STRING" - }, - { - "name": "grantees", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.cloud.bigquery.datapolicies.v2beta1.DataPolicy", - "client": { - "shortName": "DataPolicyServiceClient", - "fullName": "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyServiceClient" - }, - "method": { - "shortName": "RemoveGrantees", - "fullName": "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyService.RemoveGrantees", - "service": { - "shortName": "DataPolicyService", - "fullName": "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyService" - } - } - } - }, - { - "regionTag": "bigquerydatapolicy_v2beta1_generated_DataPolicyService_UpdateDataPolicy_async", - "title": "DataPolicyService updateDataPolicy Sample", - "origin": "API_DEFINITION", - "description": " Updates the metadata for an existing data policy. The target data policy can be specified by the resource name.", - "canonical": true, - "file": "data_policy_service.update_data_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDataPolicy", - "fullName": "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyService.UpdateDataPolicy", - "async": true, - "parameters": [ - { - "name": "data_policy", - "type": ".google.cloud.bigquery.datapolicies.v2beta1.DataPolicy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.bigquery.datapolicies.v2beta1.DataPolicy", - "client": { - "shortName": "DataPolicyServiceClient", - "fullName": "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyServiceClient" - }, - "method": { - "shortName": "UpdateDataPolicy", - "fullName": "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyService.UpdateDataPolicy", - "service": { - "shortName": "DataPolicyService", - "fullName": "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyService" - } - } - } - }, - { - "regionTag": "bigquerydatapolicy_v2beta1_generated_DataPolicyService_DeleteDataPolicy_async", - "title": "DataPolicyService deleteDataPolicy Sample", - "origin": "API_DEFINITION", - "description": " Deletes the data policy specified by its resource name.", - "canonical": true, - "file": "data_policy_service.delete_data_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDataPolicy", - "fullName": "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyService.DeleteDataPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DataPolicyServiceClient", - "fullName": "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyServiceClient" - }, - "method": { - "shortName": "DeleteDataPolicy", - "fullName": "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyService.DeleteDataPolicy", - "service": { - "shortName": "DataPolicyService", - "fullName": "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyService" - } - } - } - }, - { - "regionTag": "bigquerydatapolicy_v2beta1_generated_DataPolicyService_GetDataPolicy_async", - "title": "DataPolicyService getDataPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the data policy specified by its resource name.", - "canonical": true, - "file": "data_policy_service.get_data_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDataPolicy", - "fullName": "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyService.GetDataPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.datapolicies.v2beta1.DataPolicy", - "client": { - "shortName": "DataPolicyServiceClient", - "fullName": "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyServiceClient" - }, - "method": { - "shortName": "GetDataPolicy", - "fullName": "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyService.GetDataPolicy", - "service": { - "shortName": "DataPolicyService", - "fullName": "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyService" - } - } - } - }, - { - "regionTag": "bigquerydatapolicy_v2beta1_generated_DataPolicyService_ListDataPolicies_async", - "title": "DataPolicyService listDataPolicies Sample", - "origin": "API_DEFINITION", - "description": " List all of the data policies in the specified parent project.", - "canonical": true, - "file": "data_policy_service.list_data_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDataPolicies", - "fullName": "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyService.ListDataPolicies", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.datapolicies.v2beta1.ListDataPoliciesResponse", - "client": { - "shortName": "DataPolicyServiceClient", - "fullName": "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyServiceClient" - }, - "method": { - "shortName": "ListDataPolicies", - "fullName": "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyService.ListDataPolicies", - "service": { - "shortName": "DataPolicyService", - "fullName": "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyService" - } - } - } - }, - { - "regionTag": "bigquerydatapolicy_v2beta1_generated_DataPolicyService_GetIamPolicy_async", - "title": "DataPolicyService getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the IAM policy for the specified data policy.", - "canonical": true, - "file": "data_policy_service.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyService.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": ".google.iam.v1.GetPolicyOptions" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "DataPolicyServiceClient", - "fullName": "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyServiceClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyService.GetIamPolicy", - "service": { - "shortName": "DataPolicyService", - "fullName": "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyService" - } - } - } - }, - { - "regionTag": "bigquerydatapolicy_v2beta1_generated_DataPolicyService_SetIamPolicy_async", - "title": "DataPolicyService setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the IAM policy for the specified data policy.", - "canonical": true, - "file": "data_policy_service.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyService.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.iam.v1.Policy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "DataPolicyServiceClient", - "fullName": "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyServiceClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyService.SetIamPolicy", - "service": { - "shortName": "DataPolicyService", - "fullName": "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyService" - } - } - } - }, - { - "regionTag": "bigquerydatapolicy_v2beta1_generated_DataPolicyService_TestIamPermissions_async", - "title": "DataPolicyService testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns the caller's permission on the specified data policy resource.", - "canonical": true, - "file": "data_policy_service.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyService.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "permissions", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.iam.v1.TestIamPermissionsResponse", - "client": { - "shortName": "DataPolicyServiceClient", - "fullName": "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyServiceClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyService.TestIamPermissions", - "service": { - "shortName": "DataPolicyService", - "fullName": "google.cloud.bigquery.datapolicies.v2beta1.DataPolicyService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-bigquery-datatransfer/samples/generated/v1/snippet_metadata_google.cloud.bigquery.datatransfer.v1.json b/packages/google-cloud-bigquery-datatransfer/samples/generated/v1/snippet_metadata_google.cloud.bigquery.datatransfer.v1.json deleted file mode 100644 index 06dee4555ae7..000000000000 --- a/packages/google-cloud-bigquery-datatransfer/samples/generated/v1/snippet_metadata_google.cloud.bigquery.datatransfer.v1.json +++ /dev/null @@ -1,759 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-datatransfer", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.bigquery.datatransfer.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "bigquerydatatransfer_v1_generated_DataTransferService_GetDataSource_async", - "title": "DataTransferService getDataSource Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a supported data source and returns its settings.", - "canonical": true, - "file": "data_transfer_service.get_data_source.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDataSource", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferService.GetDataSource", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.datatransfer.v1.DataSource", - "client": { - "shortName": "DataTransferServiceClient", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferServiceClient" - }, - "method": { - "shortName": "GetDataSource", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferService.GetDataSource", - "service": { - "shortName": "DataTransferService", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferService" - } - } - } - }, - { - "regionTag": "bigquerydatatransfer_v1_generated_DataTransferService_ListDataSources_async", - "title": "DataTransferService listDataSources Sample", - "origin": "API_DEFINITION", - "description": " Lists supported data sources and returns their settings.", - "canonical": true, - "file": "data_transfer_service.list_data_sources.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDataSources", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferService.ListDataSources", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.bigquery.datatransfer.v1.ListDataSourcesResponse", - "client": { - "shortName": "DataTransferServiceClient", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferServiceClient" - }, - "method": { - "shortName": "ListDataSources", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferService.ListDataSources", - "service": { - "shortName": "DataTransferService", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferService" - } - } - } - }, - { - "regionTag": "bigquerydatatransfer_v1_generated_DataTransferService_CreateTransferConfig_async", - "title": "DataTransferService createTransferConfig Sample", - "origin": "API_DEFINITION", - "description": " Creates a new data transfer configuration.", - "canonical": true, - "file": "data_transfer_service.create_transfer_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 90, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTransferConfig", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferService.CreateTransferConfig", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "transfer_config", - "type": ".google.cloud.bigquery.datatransfer.v1.TransferConfig" - }, - { - "name": "authorization_code", - "type": "TYPE_STRING" - }, - { - "name": "version_info", - "type": "TYPE_STRING" - }, - { - "name": "service_account_name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.datatransfer.v1.TransferConfig", - "client": { - "shortName": "DataTransferServiceClient", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferServiceClient" - }, - "method": { - "shortName": "CreateTransferConfig", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferService.CreateTransferConfig", - "service": { - "shortName": "DataTransferService", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferService" - } - } - } - }, - { - "regionTag": "bigquerydatatransfer_v1_generated_DataTransferService_UpdateTransferConfig_async", - "title": "DataTransferService updateTransferConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates a data transfer configuration. All fields must be set, even if they are not updated.", - "canonical": true, - "file": "data_transfer_service.update_transfer_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTransferConfig", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferService.UpdateTransferConfig", - "async": true, - "parameters": [ - { - "name": "transfer_config", - "type": ".google.cloud.bigquery.datatransfer.v1.TransferConfig" - }, - { - "name": "authorization_code", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "version_info", - "type": "TYPE_STRING" - }, - { - "name": "service_account_name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.datatransfer.v1.TransferConfig", - "client": { - "shortName": "DataTransferServiceClient", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferServiceClient" - }, - "method": { - "shortName": "UpdateTransferConfig", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferService.UpdateTransferConfig", - "service": { - "shortName": "DataTransferService", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferService" - } - } - } - }, - { - "regionTag": "bigquerydatatransfer_v1_generated_DataTransferService_DeleteTransferConfig_async", - "title": "DataTransferService deleteTransferConfig Sample", - "origin": "API_DEFINITION", - "description": " Deletes a data transfer configuration, including any associated transfer runs and logs.", - "canonical": true, - "file": "data_transfer_service.delete_transfer_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTransferConfig", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferService.DeleteTransferConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DataTransferServiceClient", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferServiceClient" - }, - "method": { - "shortName": "DeleteTransferConfig", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferService.DeleteTransferConfig", - "service": { - "shortName": "DataTransferService", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferService" - } - } - } - }, - { - "regionTag": "bigquerydatatransfer_v1_generated_DataTransferService_GetTransferConfig_async", - "title": "DataTransferService getTransferConfig Sample", - "origin": "API_DEFINITION", - "description": " Returns information about a data transfer config.", - "canonical": true, - "file": "data_transfer_service.get_transfer_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTransferConfig", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferService.GetTransferConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.datatransfer.v1.TransferConfig", - "client": { - "shortName": "DataTransferServiceClient", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferServiceClient" - }, - "method": { - "shortName": "GetTransferConfig", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferService.GetTransferConfig", - "service": { - "shortName": "DataTransferService", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferService" - } - } - } - }, - { - "regionTag": "bigquerydatatransfer_v1_generated_DataTransferService_ListTransferConfigs_async", - "title": "DataTransferService listTransferConfigs Sample", - "origin": "API_DEFINITION", - "description": " Returns information about all transfer configs owned by a project in the specified location.", - "canonical": true, - "file": "data_transfer_service.list_transfer_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTransferConfigs", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferService.ListTransferConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "data_source_ids", - "type": "TYPE_STRING[]" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.bigquery.datatransfer.v1.ListTransferConfigsResponse", - "client": { - "shortName": "DataTransferServiceClient", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferServiceClient" - }, - "method": { - "shortName": "ListTransferConfigs", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferService.ListTransferConfigs", - "service": { - "shortName": "DataTransferService", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferService" - } - } - } - }, - { - "regionTag": "bigquerydatatransfer_v1_generated_DataTransferService_ScheduleTransferRuns_async", - "title": "DataTransferService scheduleTransferRuns Sample", - "origin": "API_DEFINITION", - "description": " Creates transfer runs for a time range [start_time, end_time]. For each date - or whatever granularity the data source supports - in the range, one transfer run is created. Note that runs are created per UTC time in the time range. DEPRECATED: use StartManualTransferRuns instead.", - "canonical": true, - "file": "data_transfer_service.schedule_transfer_runs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ScheduleTransferRuns", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferService.ScheduleTransferRuns", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "start_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "end_time", - "type": ".google.protobuf.Timestamp" - } - ], - "resultType": ".google.cloud.bigquery.datatransfer.v1.ScheduleTransferRunsResponse", - "client": { - "shortName": "DataTransferServiceClient", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferServiceClient" - }, - "method": { - "shortName": "ScheduleTransferRuns", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferService.ScheduleTransferRuns", - "service": { - "shortName": "DataTransferService", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferService" - } - } - } - }, - { - "regionTag": "bigquerydatatransfer_v1_generated_DataTransferService_StartManualTransferRuns_async", - "title": "DataTransferService startManualTransferRuns Sample", - "origin": "API_DEFINITION", - "description": " Start manual transfer runs to be executed now with schedule_time equal to current time. The transfer runs can be created for a time range where the run_time is between start_time (inclusive) and end_time (exclusive), or for a specific run_time.", - "canonical": true, - "file": "data_transfer_service.start_manual_transfer_runs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StartManualTransferRuns", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferService.StartManualTransferRuns", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requested_time_range", - "type": ".google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsRequest.TimeRange" - }, - { - "name": "requested_run_time", - "type": ".google.protobuf.Timestamp" - } - ], - "resultType": ".google.cloud.bigquery.datatransfer.v1.StartManualTransferRunsResponse", - "client": { - "shortName": "DataTransferServiceClient", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferServiceClient" - }, - "method": { - "shortName": "StartManualTransferRuns", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferService.StartManualTransferRuns", - "service": { - "shortName": "DataTransferService", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferService" - } - } - } - }, - { - "regionTag": "bigquerydatatransfer_v1_generated_DataTransferService_GetTransferRun_async", - "title": "DataTransferService getTransferRun Sample", - "origin": "API_DEFINITION", - "description": " Returns information about the particular transfer run.", - "canonical": true, - "file": "data_transfer_service.get_transfer_run.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTransferRun", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferService.GetTransferRun", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.datatransfer.v1.TransferRun", - "client": { - "shortName": "DataTransferServiceClient", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferServiceClient" - }, - "method": { - "shortName": "GetTransferRun", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferService.GetTransferRun", - "service": { - "shortName": "DataTransferService", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferService" - } - } - } - }, - { - "regionTag": "bigquerydatatransfer_v1_generated_DataTransferService_DeleteTransferRun_async", - "title": "DataTransferService deleteTransferRun Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified transfer run.", - "canonical": true, - "file": "data_transfer_service.delete_transfer_run.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTransferRun", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferService.DeleteTransferRun", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DataTransferServiceClient", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferServiceClient" - }, - "method": { - "shortName": "DeleteTransferRun", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferService.DeleteTransferRun", - "service": { - "shortName": "DataTransferService", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferService" - } - } - } - }, - { - "regionTag": "bigquerydatatransfer_v1_generated_DataTransferService_ListTransferRuns_async", - "title": "DataTransferService listTransferRuns Sample", - "origin": "API_DEFINITION", - "description": " Returns information about running and completed transfer runs.", - "canonical": true, - "file": "data_transfer_service.list_transfer_runs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTransferRuns", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferService.ListTransferRuns", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "states", - "type": "TYPE_ENUM[]" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "run_attempt", - "type": ".google.cloud.bigquery.datatransfer.v1.ListTransferRunsRequest.RunAttempt" - } - ], - "resultType": ".google.cloud.bigquery.datatransfer.v1.ListTransferRunsResponse", - "client": { - "shortName": "DataTransferServiceClient", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferServiceClient" - }, - "method": { - "shortName": "ListTransferRuns", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferService.ListTransferRuns", - "service": { - "shortName": "DataTransferService", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferService" - } - } - } - }, - { - "regionTag": "bigquerydatatransfer_v1_generated_DataTransferService_ListTransferLogs_async", - "title": "DataTransferService listTransferLogs Sample", - "origin": "API_DEFINITION", - "description": " Returns log messages for the transfer run.", - "canonical": true, - "file": "data_transfer_service.list_transfer_logs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTransferLogs", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferService.ListTransferLogs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "message_types", - "type": "TYPE_ENUM[]" - } - ], - "resultType": ".google.cloud.bigquery.datatransfer.v1.ListTransferLogsResponse", - "client": { - "shortName": "DataTransferServiceClient", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferServiceClient" - }, - "method": { - "shortName": "ListTransferLogs", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferService.ListTransferLogs", - "service": { - "shortName": "DataTransferService", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferService" - } - } - } - }, - { - "regionTag": "bigquerydatatransfer_v1_generated_DataTransferService_CheckValidCreds_async", - "title": "DataTransferService checkValidCreds Sample", - "origin": "API_DEFINITION", - "description": " Returns true if valid credentials exist for the given data source and requesting user.", - "canonical": true, - "file": "data_transfer_service.check_valid_creds.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CheckValidCreds", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferService.CheckValidCreds", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.datatransfer.v1.CheckValidCredsResponse", - "client": { - "shortName": "DataTransferServiceClient", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferServiceClient" - }, - "method": { - "shortName": "CheckValidCreds", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferService.CheckValidCreds", - "service": { - "shortName": "DataTransferService", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferService" - } - } - } - }, - { - "regionTag": "bigquerydatatransfer_v1_generated_DataTransferService_EnrollDataSources_async", - "title": "DataTransferService enrollDataSources Sample", - "origin": "API_DEFINITION", - "description": " Enroll data sources in a user project. This allows users to create transfer configurations for these data sources. They will also appear in the ListDataSources RPC and as such, will appear in the [BigQuery UI](https://console.cloud.google.com/bigquery), and the documents can be found in the public guide for [BigQuery Web UI](https://cloud.google.com/bigquery/bigquery-web-ui) and [Data Transfer Service](https://cloud.google.com/bigquery/docs/working-with-transfers).", - "canonical": true, - "file": "data_transfer_service.enroll_data_sources.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "EnrollDataSources", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferService.EnrollDataSources", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "data_source_ids", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DataTransferServiceClient", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferServiceClient" - }, - "method": { - "shortName": "EnrollDataSources", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferService.EnrollDataSources", - "service": { - "shortName": "DataTransferService", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferService" - } - } - } - }, - { - "regionTag": "bigquerydatatransfer_v1_generated_DataTransferService_UnenrollDataSources_async", - "title": "DataTransferService unenrollDataSources Sample", - "origin": "API_DEFINITION", - "description": " Unenroll data sources in a user project. This allows users to remove transfer configurations for these data sources. They will no longer appear in the ListDataSources RPC and will also no longer appear in the [BigQuery UI](https://console.cloud.google.com/bigquery). Data transfers configurations of unenrolled data sources will not be scheduled.", - "canonical": true, - "file": "data_transfer_service.unenroll_data_sources.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UnenrollDataSources", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferService.UnenrollDataSources", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "data_source_ids", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DataTransferServiceClient", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferServiceClient" - }, - "method": { - "shortName": "UnenrollDataSources", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferService.UnenrollDataSources", - "service": { - "shortName": "DataTransferService", - "fullName": "google.cloud.bigquery.datatransfer.v1.DataTransferService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-bigquery-migration/samples/generated/v2/snippet_metadata_google.cloud.bigquery.migration.v2.json b/packages/google-cloud-bigquery-migration/samples/generated/v2/snippet_metadata_google.cloud.bigquery.migration.v2.json deleted file mode 100644 index 81ec8bbe7f6c..000000000000 --- a/packages/google-cloud-bigquery-migration/samples/generated/v2/snippet_metadata_google.cloud.bigquery.migration.v2.json +++ /dev/null @@ -1,335 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-migration", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.bigquery.migration.v2", - "version": "v2" - } - ] - }, - "snippets": [ - { - "regionTag": "bigquerymigration_v2_generated_MigrationService_CreateMigrationWorkflow_async", - "title": "MigrationService createMigrationWorkflow Sample", - "origin": "API_DEFINITION", - "description": " Creates a migration workflow.", - "canonical": true, - "file": "migration_service.create_migration_workflow.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateMigrationWorkflow", - "fullName": "google.cloud.bigquery.migration.v2.MigrationService.CreateMigrationWorkflow", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "migration_workflow", - "type": ".google.cloud.bigquery.migration.v2.MigrationWorkflow" - } - ], - "resultType": ".google.cloud.bigquery.migration.v2.MigrationWorkflow", - "client": { - "shortName": "MigrationServiceClient", - "fullName": "google.cloud.bigquery.migration.v2.MigrationServiceClient" - }, - "method": { - "shortName": "CreateMigrationWorkflow", - "fullName": "google.cloud.bigquery.migration.v2.MigrationService.CreateMigrationWorkflow", - "service": { - "shortName": "MigrationService", - "fullName": "google.cloud.bigquery.migration.v2.MigrationService" - } - } - } - }, - { - "regionTag": "bigquerymigration_v2_generated_MigrationService_GetMigrationWorkflow_async", - "title": "MigrationService getMigrationWorkflow Sample", - "origin": "API_DEFINITION", - "description": " Gets a previously created migration workflow.", - "canonical": true, - "file": "migration_service.get_migration_workflow.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMigrationWorkflow", - "fullName": "google.cloud.bigquery.migration.v2.MigrationService.GetMigrationWorkflow", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.bigquery.migration.v2.MigrationWorkflow", - "client": { - "shortName": "MigrationServiceClient", - "fullName": "google.cloud.bigquery.migration.v2.MigrationServiceClient" - }, - "method": { - "shortName": "GetMigrationWorkflow", - "fullName": "google.cloud.bigquery.migration.v2.MigrationService.GetMigrationWorkflow", - "service": { - "shortName": "MigrationService", - "fullName": "google.cloud.bigquery.migration.v2.MigrationService" - } - } - } - }, - { - "regionTag": "bigquerymigration_v2_generated_MigrationService_ListMigrationWorkflows_async", - "title": "MigrationService listMigrationWorkflows Sample", - "origin": "API_DEFINITION", - "description": " Lists previously created migration workflow.", - "canonical": true, - "file": "migration_service.list_migration_workflows.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMigrationWorkflows", - "fullName": "google.cloud.bigquery.migration.v2.MigrationService.ListMigrationWorkflows", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.migration.v2.ListMigrationWorkflowsResponse", - "client": { - "shortName": "MigrationServiceClient", - "fullName": "google.cloud.bigquery.migration.v2.MigrationServiceClient" - }, - "method": { - "shortName": "ListMigrationWorkflows", - "fullName": "google.cloud.bigquery.migration.v2.MigrationService.ListMigrationWorkflows", - "service": { - "shortName": "MigrationService", - "fullName": "google.cloud.bigquery.migration.v2.MigrationService" - } - } - } - }, - { - "regionTag": "bigquerymigration_v2_generated_MigrationService_DeleteMigrationWorkflow_async", - "title": "MigrationService deleteMigrationWorkflow Sample", - "origin": "API_DEFINITION", - "description": " Deletes a migration workflow by name.", - "canonical": true, - "file": "migration_service.delete_migration_workflow.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteMigrationWorkflow", - "fullName": "google.cloud.bigquery.migration.v2.MigrationService.DeleteMigrationWorkflow", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "MigrationServiceClient", - "fullName": "google.cloud.bigquery.migration.v2.MigrationServiceClient" - }, - "method": { - "shortName": "DeleteMigrationWorkflow", - "fullName": "google.cloud.bigquery.migration.v2.MigrationService.DeleteMigrationWorkflow", - "service": { - "shortName": "MigrationService", - "fullName": "google.cloud.bigquery.migration.v2.MigrationService" - } - } - } - }, - { - "regionTag": "bigquerymigration_v2_generated_MigrationService_StartMigrationWorkflow_async", - "title": "MigrationService startMigrationWorkflow Sample", - "origin": "API_DEFINITION", - "description": " Starts a previously created migration workflow. I.e., the state transitions from DRAFT to RUNNING. This is a no-op if the state is already RUNNING. An error will be signaled if the state is anything other than DRAFT or RUNNING.", - "canonical": true, - "file": "migration_service.start_migration_workflow.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StartMigrationWorkflow", - "fullName": "google.cloud.bigquery.migration.v2.MigrationService.StartMigrationWorkflow", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "MigrationServiceClient", - "fullName": "google.cloud.bigquery.migration.v2.MigrationServiceClient" - }, - "method": { - "shortName": "StartMigrationWorkflow", - "fullName": "google.cloud.bigquery.migration.v2.MigrationService.StartMigrationWorkflow", - "service": { - "shortName": "MigrationService", - "fullName": "google.cloud.bigquery.migration.v2.MigrationService" - } - } - } - }, - { - "regionTag": "bigquerymigration_v2_generated_MigrationService_GetMigrationSubtask_async", - "title": "MigrationService getMigrationSubtask Sample", - "origin": "API_DEFINITION", - "description": " Gets a previously created migration subtask.", - "canonical": true, - "file": "migration_service.get_migration_subtask.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMigrationSubtask", - "fullName": "google.cloud.bigquery.migration.v2.MigrationService.GetMigrationSubtask", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.bigquery.migration.v2.MigrationSubtask", - "client": { - "shortName": "MigrationServiceClient", - "fullName": "google.cloud.bigquery.migration.v2.MigrationServiceClient" - }, - "method": { - "shortName": "GetMigrationSubtask", - "fullName": "google.cloud.bigquery.migration.v2.MigrationService.GetMigrationSubtask", - "service": { - "shortName": "MigrationService", - "fullName": "google.cloud.bigquery.migration.v2.MigrationService" - } - } - } - }, - { - "regionTag": "bigquerymigration_v2_generated_MigrationService_ListMigrationSubtasks_async", - "title": "MigrationService listMigrationSubtasks Sample", - "origin": "API_DEFINITION", - "description": " Lists previously created migration subtasks.", - "canonical": true, - "file": "migration_service.list_migration_subtasks.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMigrationSubtasks", - "fullName": "google.cloud.bigquery.migration.v2.MigrationService.ListMigrationSubtasks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.migration.v2.ListMigrationSubtasksResponse", - "client": { - "shortName": "MigrationServiceClient", - "fullName": "google.cloud.bigquery.migration.v2.MigrationServiceClient" - }, - "method": { - "shortName": "ListMigrationSubtasks", - "fullName": "google.cloud.bigquery.migration.v2.MigrationService.ListMigrationSubtasks", - "service": { - "shortName": "MigrationService", - "fullName": "google.cloud.bigquery.migration.v2.MigrationService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-bigquery-migration/samples/generated/v2alpha/snippet_metadata_google.cloud.bigquery.migration.v2alpha.json b/packages/google-cloud-bigquery-migration/samples/generated/v2alpha/snippet_metadata_google.cloud.bigquery.migration.v2alpha.json deleted file mode 100644 index f47decbc5783..000000000000 --- a/packages/google-cloud-bigquery-migration/samples/generated/v2alpha/snippet_metadata_google.cloud.bigquery.migration.v2alpha.json +++ /dev/null @@ -1,383 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-migration", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.bigquery.migration.v2alpha", - "version": "v2alpha" - } - ] - }, - "snippets": [ - { - "regionTag": "bigquerymigration_v2alpha_generated_MigrationService_CreateMigrationWorkflow_async", - "title": "MigrationService createMigrationWorkflow Sample", - "origin": "API_DEFINITION", - "description": " Creates a migration workflow.", - "canonical": true, - "file": "migration_service.create_migration_workflow.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateMigrationWorkflow", - "fullName": "google.cloud.bigquery.migration.v2alpha.MigrationService.CreateMigrationWorkflow", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "migration_workflow", - "type": ".google.cloud.bigquery.migration.v2alpha.MigrationWorkflow" - } - ], - "resultType": ".google.cloud.bigquery.migration.v2alpha.MigrationWorkflow", - "client": { - "shortName": "MigrationServiceClient", - "fullName": "google.cloud.bigquery.migration.v2alpha.MigrationServiceClient" - }, - "method": { - "shortName": "CreateMigrationWorkflow", - "fullName": "google.cloud.bigquery.migration.v2alpha.MigrationService.CreateMigrationWorkflow", - "service": { - "shortName": "MigrationService", - "fullName": "google.cloud.bigquery.migration.v2alpha.MigrationService" - } - } - } - }, - { - "regionTag": "bigquerymigration_v2alpha_generated_MigrationService_GetMigrationWorkflow_async", - "title": "MigrationService getMigrationWorkflow Sample", - "origin": "API_DEFINITION", - "description": " Gets a previously created migration workflow.", - "canonical": true, - "file": "migration_service.get_migration_workflow.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMigrationWorkflow", - "fullName": "google.cloud.bigquery.migration.v2alpha.MigrationService.GetMigrationWorkflow", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.bigquery.migration.v2alpha.MigrationWorkflow", - "client": { - "shortName": "MigrationServiceClient", - "fullName": "google.cloud.bigquery.migration.v2alpha.MigrationServiceClient" - }, - "method": { - "shortName": "GetMigrationWorkflow", - "fullName": "google.cloud.bigquery.migration.v2alpha.MigrationService.GetMigrationWorkflow", - "service": { - "shortName": "MigrationService", - "fullName": "google.cloud.bigquery.migration.v2alpha.MigrationService" - } - } - } - }, - { - "regionTag": "bigquerymigration_v2alpha_generated_MigrationService_ListMigrationWorkflows_async", - "title": "MigrationService listMigrationWorkflows Sample", - "origin": "API_DEFINITION", - "description": " Lists previously created migration workflow.", - "canonical": true, - "file": "migration_service.list_migration_workflows.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMigrationWorkflows", - "fullName": "google.cloud.bigquery.migration.v2alpha.MigrationService.ListMigrationWorkflows", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.migration.v2alpha.ListMigrationWorkflowsResponse", - "client": { - "shortName": "MigrationServiceClient", - "fullName": "google.cloud.bigquery.migration.v2alpha.MigrationServiceClient" - }, - "method": { - "shortName": "ListMigrationWorkflows", - "fullName": "google.cloud.bigquery.migration.v2alpha.MigrationService.ListMigrationWorkflows", - "service": { - "shortName": "MigrationService", - "fullName": "google.cloud.bigquery.migration.v2alpha.MigrationService" - } - } - } - }, - { - "regionTag": "bigquerymigration_v2alpha_generated_MigrationService_DeleteMigrationWorkflow_async", - "title": "MigrationService deleteMigrationWorkflow Sample", - "origin": "API_DEFINITION", - "description": " Deletes a migration workflow by name.", - "canonical": true, - "file": "migration_service.delete_migration_workflow.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteMigrationWorkflow", - "fullName": "google.cloud.bigquery.migration.v2alpha.MigrationService.DeleteMigrationWorkflow", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "MigrationServiceClient", - "fullName": "google.cloud.bigquery.migration.v2alpha.MigrationServiceClient" - }, - "method": { - "shortName": "DeleteMigrationWorkflow", - "fullName": "google.cloud.bigquery.migration.v2alpha.MigrationService.DeleteMigrationWorkflow", - "service": { - "shortName": "MigrationService", - "fullName": "google.cloud.bigquery.migration.v2alpha.MigrationService" - } - } - } - }, - { - "regionTag": "bigquerymigration_v2alpha_generated_MigrationService_StartMigrationWorkflow_async", - "title": "MigrationService startMigrationWorkflow Sample", - "origin": "API_DEFINITION", - "description": " Starts a previously created migration workflow. I.e., the state transitions from DRAFT to RUNNING. This is a no-op if the state is already RUNNING. An error will be signaled if the state is anything other than DRAFT or RUNNING.", - "canonical": true, - "file": "migration_service.start_migration_workflow.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StartMigrationWorkflow", - "fullName": "google.cloud.bigquery.migration.v2alpha.MigrationService.StartMigrationWorkflow", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "MigrationServiceClient", - "fullName": "google.cloud.bigquery.migration.v2alpha.MigrationServiceClient" - }, - "method": { - "shortName": "StartMigrationWorkflow", - "fullName": "google.cloud.bigquery.migration.v2alpha.MigrationService.StartMigrationWorkflow", - "service": { - "shortName": "MigrationService", - "fullName": "google.cloud.bigquery.migration.v2alpha.MigrationService" - } - } - } - }, - { - "regionTag": "bigquerymigration_v2alpha_generated_MigrationService_GetMigrationSubtask_async", - "title": "MigrationService getMigrationSubtask Sample", - "origin": "API_DEFINITION", - "description": " Gets a previously created migration subtask.", - "canonical": true, - "file": "migration_service.get_migration_subtask.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMigrationSubtask", - "fullName": "google.cloud.bigquery.migration.v2alpha.MigrationService.GetMigrationSubtask", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.bigquery.migration.v2alpha.MigrationSubtask", - "client": { - "shortName": "MigrationServiceClient", - "fullName": "google.cloud.bigquery.migration.v2alpha.MigrationServiceClient" - }, - "method": { - "shortName": "GetMigrationSubtask", - "fullName": "google.cloud.bigquery.migration.v2alpha.MigrationService.GetMigrationSubtask", - "service": { - "shortName": "MigrationService", - "fullName": "google.cloud.bigquery.migration.v2alpha.MigrationService" - } - } - } - }, - { - "regionTag": "bigquerymigration_v2alpha_generated_MigrationService_ListMigrationSubtasks_async", - "title": "MigrationService listMigrationSubtasks Sample", - "origin": "API_DEFINITION", - "description": " Lists previously created migration subtasks.", - "canonical": true, - "file": "migration_service.list_migration_subtasks.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMigrationSubtasks", - "fullName": "google.cloud.bigquery.migration.v2alpha.MigrationService.ListMigrationSubtasks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.migration.v2alpha.ListMigrationSubtasksResponse", - "client": { - "shortName": "MigrationServiceClient", - "fullName": "google.cloud.bigquery.migration.v2alpha.MigrationServiceClient" - }, - "method": { - "shortName": "ListMigrationSubtasks", - "fullName": "google.cloud.bigquery.migration.v2alpha.MigrationService.ListMigrationSubtasks", - "service": { - "shortName": "MigrationService", - "fullName": "google.cloud.bigquery.migration.v2alpha.MigrationService" - } - } - } - }, - { - "regionTag": "bigquerymigration_v2alpha_generated_SqlTranslationService_TranslateQuery_async", - "title": "MigrationService translateQuery Sample", - "origin": "API_DEFINITION", - "description": " Translates input queries from source dialects to GoogleSQL.", - "canonical": true, - "file": "sql_translation_service.translate_query.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TranslateQuery", - "fullName": "google.cloud.bigquery.migration.v2alpha.SqlTranslationService.TranslateQuery", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "source_dialect", - "type": ".google.cloud.bigquery.migration.v2alpha.TranslateQueryRequest.SqlTranslationSourceDialect" - }, - { - "name": "query", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.migration.v2alpha.TranslateQueryResponse", - "client": { - "shortName": "SqlTranslationServiceClient", - "fullName": "google.cloud.bigquery.migration.v2alpha.SqlTranslationServiceClient" - }, - "method": { - "shortName": "TranslateQuery", - "fullName": "google.cloud.bigquery.migration.v2alpha.SqlTranslationService.TranslateQuery", - "service": { - "shortName": "SqlTranslationService", - "fullName": "google.cloud.bigquery.migration.v2alpha.SqlTranslationService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-bigquery-reservation/samples/generated/v1/snippet_metadata_google.cloud.bigquery.reservation.v1.json b/packages/google-cloud-bigquery-reservation/samples/generated/v1/snippet_metadata_google.cloud.bigquery.reservation.v1.json deleted file mode 100644 index 4901d7929377..000000000000 --- a/packages/google-cloud-bigquery-reservation/samples/generated/v1/snippet_metadata_google.cloud.bigquery.reservation.v1.json +++ /dev/null @@ -1,1327 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-reservation", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.bigquery.reservation.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "bigqueryreservation_v1_generated_ReservationService_CreateReservation_async", - "title": "ReservationService createReservation Sample", - "origin": "API_DEFINITION", - "description": " Creates a new reservation resource.", - "canonical": true, - "file": "reservation_service.create_reservation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateReservation", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService.CreateReservation", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "reservation_id", - "type": "TYPE_STRING" - }, - { - "name": "reservation", - "type": ".google.cloud.bigquery.reservation.v1.Reservation" - } - ], - "resultType": ".google.cloud.bigquery.reservation.v1.Reservation", - "client": { - "shortName": "ReservationServiceClient", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationServiceClient" - }, - "method": { - "shortName": "CreateReservation", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService.CreateReservation", - "service": { - "shortName": "ReservationService", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService" - } - } - } - }, - { - "regionTag": "bigqueryreservation_v1_generated_ReservationService_ListReservations_async", - "title": "ReservationService listReservations Sample", - "origin": "API_DEFINITION", - "description": " Lists all the reservations for the project in the specified location.", - "canonical": true, - "file": "reservation_service.list_reservations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListReservations", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService.ListReservations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.reservation.v1.ListReservationsResponse", - "client": { - "shortName": "ReservationServiceClient", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationServiceClient" - }, - "method": { - "shortName": "ListReservations", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService.ListReservations", - "service": { - "shortName": "ReservationService", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService" - } - } - } - }, - { - "regionTag": "bigqueryreservation_v1_generated_ReservationService_GetReservation_async", - "title": "ReservationService getReservation Sample", - "origin": "API_DEFINITION", - "description": " Returns information about the reservation.", - "canonical": true, - "file": "reservation_service.get_reservation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetReservation", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService.GetReservation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.reservation.v1.Reservation", - "client": { - "shortName": "ReservationServiceClient", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationServiceClient" - }, - "method": { - "shortName": "GetReservation", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService.GetReservation", - "service": { - "shortName": "ReservationService", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService" - } - } - } - }, - { - "regionTag": "bigqueryreservation_v1_generated_ReservationService_DeleteReservation_async", - "title": "ReservationService deleteReservation Sample", - "origin": "API_DEFINITION", - "description": " Deletes a reservation. Returns `google.rpc.Code.FAILED_PRECONDITION` when reservation has assignments.", - "canonical": true, - "file": "reservation_service.delete_reservation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteReservation", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService.DeleteReservation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ReservationServiceClient", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationServiceClient" - }, - "method": { - "shortName": "DeleteReservation", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService.DeleteReservation", - "service": { - "shortName": "ReservationService", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService" - } - } - } - }, - { - "regionTag": "bigqueryreservation_v1_generated_ReservationService_UpdateReservation_async", - "title": "ReservationService updateReservation Sample", - "origin": "API_DEFINITION", - "description": " Updates an existing reservation resource.", - "canonical": true, - "file": "reservation_service.update_reservation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateReservation", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService.UpdateReservation", - "async": true, - "parameters": [ - { - "name": "reservation", - "type": ".google.cloud.bigquery.reservation.v1.Reservation" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.bigquery.reservation.v1.Reservation", - "client": { - "shortName": "ReservationServiceClient", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationServiceClient" - }, - "method": { - "shortName": "UpdateReservation", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService.UpdateReservation", - "service": { - "shortName": "ReservationService", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService" - } - } - } - }, - { - "regionTag": "bigqueryreservation_v1_generated_ReservationService_FailoverReservation_async", - "title": "ReservationService failoverReservation Sample", - "origin": "API_DEFINITION", - "description": " Fail over a reservation to the secondary location. The operation should be done in the current secondary location, which will be promoted to the new primary location for the reservation. Attempting to failover a reservation in the current primary location will fail with the error code `google.rpc.Code.FAILED_PRECONDITION`.", - "canonical": true, - "file": "reservation_service.failover_reservation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FailoverReservation", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService.FailoverReservation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "failover_mode", - "type": ".google.cloud.bigquery.reservation.v1.FailoverMode" - } - ], - "resultType": ".google.cloud.bigquery.reservation.v1.Reservation", - "client": { - "shortName": "ReservationServiceClient", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationServiceClient" - }, - "method": { - "shortName": "FailoverReservation", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService.FailoverReservation", - "service": { - "shortName": "ReservationService", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService" - } - } - } - }, - { - "regionTag": "bigqueryreservation_v1_generated_ReservationService_CreateCapacityCommitment_async", - "title": "ReservationService createCapacityCommitment Sample", - "origin": "API_DEFINITION", - "description": " Creates a new capacity commitment resource.", - "canonical": true, - "file": "reservation_service.create_capacity_commitment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCapacityCommitment", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService.CreateCapacityCommitment", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "capacity_commitment", - "type": ".google.cloud.bigquery.reservation.v1.CapacityCommitment" - }, - { - "name": "enforce_single_admin_project_per_org", - "type": "TYPE_BOOL" - }, - { - "name": "capacity_commitment_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.reservation.v1.CapacityCommitment", - "client": { - "shortName": "ReservationServiceClient", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationServiceClient" - }, - "method": { - "shortName": "CreateCapacityCommitment", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService.CreateCapacityCommitment", - "service": { - "shortName": "ReservationService", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService" - } - } - } - }, - { - "regionTag": "bigqueryreservation_v1_generated_ReservationService_ListCapacityCommitments_async", - "title": "ReservationService listCapacityCommitments Sample", - "origin": "API_DEFINITION", - "description": " Lists all the capacity commitments for the admin project.", - "canonical": true, - "file": "reservation_service.list_capacity_commitments.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCapacityCommitments", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService.ListCapacityCommitments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsResponse", - "client": { - "shortName": "ReservationServiceClient", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationServiceClient" - }, - "method": { - "shortName": "ListCapacityCommitments", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService.ListCapacityCommitments", - "service": { - "shortName": "ReservationService", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService" - } - } - } - }, - { - "regionTag": "bigqueryreservation_v1_generated_ReservationService_GetCapacityCommitment_async", - "title": "ReservationService getCapacityCommitment Sample", - "origin": "API_DEFINITION", - "description": " Returns information about the capacity commitment.", - "canonical": true, - "file": "reservation_service.get_capacity_commitment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCapacityCommitment", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService.GetCapacityCommitment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.reservation.v1.CapacityCommitment", - "client": { - "shortName": "ReservationServiceClient", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationServiceClient" - }, - "method": { - "shortName": "GetCapacityCommitment", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService.GetCapacityCommitment", - "service": { - "shortName": "ReservationService", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService" - } - } - } - }, - { - "regionTag": "bigqueryreservation_v1_generated_ReservationService_DeleteCapacityCommitment_async", - "title": "ReservationService deleteCapacityCommitment Sample", - "origin": "API_DEFINITION", - "description": " Deletes a capacity commitment. Attempting to delete capacity commitment before its commitment_end_time will fail with the error code `google.rpc.Code.FAILED_PRECONDITION`.", - "canonical": true, - "file": "reservation_service.delete_capacity_commitment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCapacityCommitment", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService.DeleteCapacityCommitment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ReservationServiceClient", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationServiceClient" - }, - "method": { - "shortName": "DeleteCapacityCommitment", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService.DeleteCapacityCommitment", - "service": { - "shortName": "ReservationService", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService" - } - } - } - }, - { - "regionTag": "bigqueryreservation_v1_generated_ReservationService_UpdateCapacityCommitment_async", - "title": "ReservationService updateCapacityCommitment Sample", - "origin": "API_DEFINITION", - "description": " Updates an existing capacity commitment. Only `plan` and `renewal_plan` fields can be updated. Plan can only be changed to a plan of a longer commitment period. Attempting to change to a plan with shorter commitment period will fail with the error code `google.rpc.Code.FAILED_PRECONDITION`.", - "canonical": true, - "file": "reservation_service.update_capacity_commitment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCapacityCommitment", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService.UpdateCapacityCommitment", - "async": true, - "parameters": [ - { - "name": "capacity_commitment", - "type": ".google.cloud.bigquery.reservation.v1.CapacityCommitment" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.bigquery.reservation.v1.CapacityCommitment", - "client": { - "shortName": "ReservationServiceClient", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationServiceClient" - }, - "method": { - "shortName": "UpdateCapacityCommitment", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService.UpdateCapacityCommitment", - "service": { - "shortName": "ReservationService", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService" - } - } - } - }, - { - "regionTag": "bigqueryreservation_v1_generated_ReservationService_SplitCapacityCommitment_async", - "title": "ReservationService splitCapacityCommitment Sample", - "origin": "API_DEFINITION", - "description": " Splits capacity commitment to two commitments of the same plan and `commitment_end_time`. A common use case is to enable downgrading commitments. For example, in order to downgrade from 10000 slots to 8000, you might split a 10000 capacity commitment into commitments of 2000 and 8000. Then, you delete the first one after the commitment end time passes.", - "canonical": true, - "file": "reservation_service.split_capacity_commitment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SplitCapacityCommitment", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService.SplitCapacityCommitment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "slot_count", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentResponse", - "client": { - "shortName": "ReservationServiceClient", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationServiceClient" - }, - "method": { - "shortName": "SplitCapacityCommitment", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService.SplitCapacityCommitment", - "service": { - "shortName": "ReservationService", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService" - } - } - } - }, - { - "regionTag": "bigqueryreservation_v1_generated_ReservationService_MergeCapacityCommitments_async", - "title": "ReservationService mergeCapacityCommitments Sample", - "origin": "API_DEFINITION", - "description": " Merges capacity commitments of the same plan into a single commitment. The resulting capacity commitment has the greater commitment_end_time out of the to-be-merged capacity commitments. Attempting to merge capacity commitments of different plan will fail with the error code `google.rpc.Code.FAILED_PRECONDITION`.", - "canonical": true, - "file": "reservation_service.merge_capacity_commitments.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "MergeCapacityCommitments", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService.MergeCapacityCommitments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "capacity_commitment_ids", - "type": "TYPE_STRING[]" - }, - { - "name": "capacity_commitment_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.reservation.v1.CapacityCommitment", - "client": { - "shortName": "ReservationServiceClient", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationServiceClient" - }, - "method": { - "shortName": "MergeCapacityCommitments", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService.MergeCapacityCommitments", - "service": { - "shortName": "ReservationService", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService" - } - } - } - }, - { - "regionTag": "bigqueryreservation_v1_generated_ReservationService_CreateAssignment_async", - "title": "ReservationService createAssignment Sample", - "origin": "API_DEFINITION", - "description": " Creates an assignment object which allows the given project to submit jobs of a certain type using slots from the specified reservation. Currently a resource (project, folder, organization) can only have one assignment per each (job_type, location) combination, and that reservation will be used for all jobs of the matching type. Different assignments can be created on different levels of the projects, folders or organization hierarchy. During query execution, the assignment is looked up at the project, folder and organization levels in that order. The first assignment found is applied to the query. When creating assignments, it does not matter if other assignments exist at higher levels. Example: * The organization `organizationA` contains two projects, `project1` and `project2`. * Assignments for all three entities (`organizationA`, `project1`, and `project2`) could all be created and mapped to the same or different reservations. \"None\" assignments represent an absence of the assignment. Projects assigned to None use on-demand pricing. To create a \"None\" assignment, use \"none\" as a reservation_id in the parent. Example parent: `projects/myproject/locations/US/reservations/none`. Returns `google.rpc.Code.PERMISSION_DENIED` if user does not have 'bigquery.admin' permissions on the project using the reservation and the project that owns this reservation. Returns `google.rpc.Code.INVALID_ARGUMENT` when location of the assignment does not match location of the reservation.", - "canonical": true, - "file": "reservation_service.create_assignment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAssignment", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService.CreateAssignment", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "assignment", - "type": ".google.cloud.bigquery.reservation.v1.Assignment" - }, - { - "name": "assignment_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.reservation.v1.Assignment", - "client": { - "shortName": "ReservationServiceClient", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationServiceClient" - }, - "method": { - "shortName": "CreateAssignment", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService.CreateAssignment", - "service": { - "shortName": "ReservationService", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService" - } - } - } - }, - { - "regionTag": "bigqueryreservation_v1_generated_ReservationService_ListAssignments_async", - "title": "ReservationService listAssignments Sample", - "origin": "API_DEFINITION", - "description": " Lists assignments. Only explicitly created assignments will be returned. Example: * Organization `organizationA` contains two projects, `project1` and `project2`. * Reservation `res1` exists and was created previously. * CreateAssignment was used previously to define the following associations between entities and reservations: `` and `` In this example, ListAssignments will just return the above two assignments for reservation `res1`, and no expansion/merge will happen. The wildcard \"-\" can be used for reservations in the request. In that case all assignments belongs to the specified project and location will be listed. **Note** \"-\" cannot be used for projects nor locations.", - "canonical": true, - "file": "reservation_service.list_assignments.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAssignments", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService.ListAssignments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.reservation.v1.ListAssignmentsResponse", - "client": { - "shortName": "ReservationServiceClient", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationServiceClient" - }, - "method": { - "shortName": "ListAssignments", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService.ListAssignments", - "service": { - "shortName": "ReservationService", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService" - } - } - } - }, - { - "regionTag": "bigqueryreservation_v1_generated_ReservationService_DeleteAssignment_async", - "title": "ReservationService deleteAssignment Sample", - "origin": "API_DEFINITION", - "description": " Deletes a assignment. No expansion will happen. Example: * Organization `organizationA` contains two projects, `project1` and `project2`. * Reservation `res1` exists and was created previously. * CreateAssignment was used previously to define the following associations between entities and reservations: `` and `` In this example, deletion of the `` assignment won't affect the other assignment ``. After said deletion, queries from `project1` will still use `res1` while queries from `project2` will switch to use on-demand mode.", - "canonical": true, - "file": "reservation_service.delete_assignment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAssignment", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService.DeleteAssignment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ReservationServiceClient", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationServiceClient" - }, - "method": { - "shortName": "DeleteAssignment", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService.DeleteAssignment", - "service": { - "shortName": "ReservationService", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService" - } - } - } - }, - { - "regionTag": "bigqueryreservation_v1_generated_ReservationService_SearchAssignments_async", - "title": "ReservationService searchAssignments Sample", - "origin": "API_DEFINITION", - "description": " Deprecated: Looks up assignments for a specified resource for a particular region. If the request is about a project: 1. Assignments created on the project will be returned if they exist. 2. Otherwise assignments created on the closest ancestor will be returned. 3. Assignments for different JobTypes will all be returned. The same logic applies if the request is about a folder. If the request is about an organization, then assignments created on the organization will be returned (organization doesn't have ancestors). Comparing to ListAssignments, there are some behavior differences: 1. permission on the assignee will be verified in this API. 2. Hierarchy lookup (project->folder->organization) happens in this API. 3. Parent here is `projects/*/locations/*`, instead of `projects/*/locations/*reservations/*`. **Note** \"-\" cannot be used for projects nor locations.", - "canonical": true, - "file": "reservation_service.search_assignments.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchAssignments", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService.SearchAssignments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.reservation.v1.SearchAssignmentsResponse", - "client": { - "shortName": "ReservationServiceClient", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationServiceClient" - }, - "method": { - "shortName": "SearchAssignments", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService.SearchAssignments", - "service": { - "shortName": "ReservationService", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService" - } - } - } - }, - { - "regionTag": "bigqueryreservation_v1_generated_ReservationService_SearchAllAssignments_async", - "title": "ReservationService searchAllAssignments Sample", - "origin": "API_DEFINITION", - "description": " Looks up assignments for a specified resource for a particular region. If the request is about a project: 1. Assignments created on the project will be returned if they exist. 2. Otherwise assignments created on the closest ancestor will be returned. 3. Assignments for different JobTypes will all be returned. The same logic applies if the request is about a folder. If the request is about an organization, then assignments created on the organization will be returned (organization doesn't have ancestors). Comparing to ListAssignments, there are some behavior differences: 1. permission on the assignee will be verified in this API. 2. Hierarchy lookup (project->folder->organization) happens in this API. 3. Parent here is `projects/*/locations/*`, instead of `projects/*/locations/*reservations/*`.", - "canonical": true, - "file": "reservation_service.search_all_assignments.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchAllAssignments", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService.SearchAllAssignments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.reservation.v1.SearchAllAssignmentsResponse", - "client": { - "shortName": "ReservationServiceClient", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationServiceClient" - }, - "method": { - "shortName": "SearchAllAssignments", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService.SearchAllAssignments", - "service": { - "shortName": "ReservationService", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService" - } - } - } - }, - { - "regionTag": "bigqueryreservation_v1_generated_ReservationService_MoveAssignment_async", - "title": "ReservationService moveAssignment Sample", - "origin": "API_DEFINITION", - "description": " Moves an assignment under a new reservation. This differs from removing an existing assignment and recreating a new one by providing a transactional change that ensures an assignee always has an associated reservation.", - "canonical": true, - "file": "reservation_service.move_assignment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "MoveAssignment", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService.MoveAssignment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "destination_id", - "type": "TYPE_STRING" - }, - { - "name": "assignment_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.reservation.v1.Assignment", - "client": { - "shortName": "ReservationServiceClient", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationServiceClient" - }, - "method": { - "shortName": "MoveAssignment", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService.MoveAssignment", - "service": { - "shortName": "ReservationService", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService" - } - } - } - }, - { - "regionTag": "bigqueryreservation_v1_generated_ReservationService_UpdateAssignment_async", - "title": "ReservationService updateAssignment Sample", - "origin": "API_DEFINITION", - "description": " Updates an existing assignment. Only the `priority` field can be updated.", - "canonical": true, - "file": "reservation_service.update_assignment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAssignment", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService.UpdateAssignment", - "async": true, - "parameters": [ - { - "name": "assignment", - "type": ".google.cloud.bigquery.reservation.v1.Assignment" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.bigquery.reservation.v1.Assignment", - "client": { - "shortName": "ReservationServiceClient", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationServiceClient" - }, - "method": { - "shortName": "UpdateAssignment", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService.UpdateAssignment", - "service": { - "shortName": "ReservationService", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService" - } - } - } - }, - { - "regionTag": "bigqueryreservation_v1_generated_ReservationService_GetBiReservation_async", - "title": "ReservationService getBiReservation Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a BI reservation.", - "canonical": true, - "file": "reservation_service.get_bi_reservation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBiReservation", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService.GetBiReservation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.reservation.v1.BiReservation", - "client": { - "shortName": "ReservationServiceClient", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationServiceClient" - }, - "method": { - "shortName": "GetBiReservation", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService.GetBiReservation", - "service": { - "shortName": "ReservationService", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService" - } - } - } - }, - { - "regionTag": "bigqueryreservation_v1_generated_ReservationService_UpdateBiReservation_async", - "title": "ReservationService updateBiReservation Sample", - "origin": "API_DEFINITION", - "description": " Updates a BI reservation. Only fields specified in the `field_mask` are updated. A singleton BI reservation always exists with default size 0. In order to reserve BI capacity it needs to be updated to an amount greater than 0. In order to release BI capacity reservation size must be set to 0.", - "canonical": true, - "file": "reservation_service.update_bi_reservation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateBiReservation", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService.UpdateBiReservation", - "async": true, - "parameters": [ - { - "name": "bi_reservation", - "type": ".google.cloud.bigquery.reservation.v1.BiReservation" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.bigquery.reservation.v1.BiReservation", - "client": { - "shortName": "ReservationServiceClient", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationServiceClient" - }, - "method": { - "shortName": "UpdateBiReservation", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService.UpdateBiReservation", - "service": { - "shortName": "ReservationService", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService" - } - } - } - }, - { - "regionTag": "bigqueryreservation_v1_generated_ReservationService_GetIamPolicy_async", - "title": "ReservationService getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May return: * A`NOT_FOUND` error if the resource doesn't exist or you don't have the permission to view it. * An empty policy if the resource exists but doesn't have a set policy. Supported resources are: - Reservations - ReservationAssignments To call this method, you must have the following Google IAM permissions: - `bigqueryreservation.reservations.getIamPolicy` to get policies on reservations.", - "canonical": true, - "file": "reservation_service.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": ".google.iam.v1.GetPolicyOptions" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "ReservationServiceClient", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationServiceClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService.GetIamPolicy", - "service": { - "shortName": "ReservationService", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService" - } - } - } - }, - { - "regionTag": "bigqueryreservation_v1_generated_ReservationService_SetIamPolicy_async", - "title": "ReservationService setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets an access control policy for a resource. Replaces any existing policy. Supported resources are: - Reservations To call this method, you must have the following Google IAM permissions: - `bigqueryreservation.reservations.setIamPolicy` to set policies on reservations.", - "canonical": true, - "file": "reservation_service.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.iam.v1.Policy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "ReservationServiceClient", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationServiceClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService.SetIamPolicy", - "service": { - "shortName": "ReservationService", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService" - } - } - } - }, - { - "regionTag": "bigqueryreservation_v1_generated_ReservationService_TestIamPermissions_async", - "title": "ReservationService testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Gets your permissions on a resource. Returns an empty set of permissions if the resource doesn't exist. Supported resources are: - Reservations No Google IAM permissions are required to call this method.", - "canonical": true, - "file": "reservation_service.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "permissions", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.iam.v1.TestIamPermissionsResponse", - "client": { - "shortName": "ReservationServiceClient", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationServiceClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService.TestIamPermissions", - "service": { - "shortName": "ReservationService", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService" - } - } - } - }, - { - "regionTag": "bigqueryreservation_v1_generated_ReservationService_CreateReservationGroup_async", - "title": "ReservationService createReservationGroup Sample", - "origin": "API_DEFINITION", - "description": " Creates a new reservation group.", - "canonical": true, - "file": "reservation_service.create_reservation_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateReservationGroup", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService.CreateReservationGroup", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "reservation_group_id", - "type": "TYPE_STRING" - }, - { - "name": "reservation_group", - "type": ".google.cloud.bigquery.reservation.v1.ReservationGroup" - } - ], - "resultType": ".google.cloud.bigquery.reservation.v1.ReservationGroup", - "client": { - "shortName": "ReservationServiceClient", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationServiceClient" - }, - "method": { - "shortName": "CreateReservationGroup", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService.CreateReservationGroup", - "service": { - "shortName": "ReservationService", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService" - } - } - } - }, - { - "regionTag": "bigqueryreservation_v1_generated_ReservationService_GetReservationGroup_async", - "title": "ReservationService getReservationGroup Sample", - "origin": "API_DEFINITION", - "description": " Returns information about the reservation group.", - "canonical": true, - "file": "reservation_service.get_reservation_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetReservationGroup", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService.GetReservationGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.reservation.v1.ReservationGroup", - "client": { - "shortName": "ReservationServiceClient", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationServiceClient" - }, - "method": { - "shortName": "GetReservationGroup", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService.GetReservationGroup", - "service": { - "shortName": "ReservationService", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService" - } - } - } - }, - { - "regionTag": "bigqueryreservation_v1_generated_ReservationService_DeleteReservationGroup_async", - "title": "ReservationService deleteReservationGroup Sample", - "origin": "API_DEFINITION", - "description": " Deletes a reservation. Returns `google.rpc.Code.FAILED_PRECONDITION` when reservation has assignments.", - "canonical": true, - "file": "reservation_service.delete_reservation_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteReservationGroup", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService.DeleteReservationGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ReservationServiceClient", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationServiceClient" - }, - "method": { - "shortName": "DeleteReservationGroup", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService.DeleteReservationGroup", - "service": { - "shortName": "ReservationService", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService" - } - } - } - }, - { - "regionTag": "bigqueryreservation_v1_generated_ReservationService_ListReservationGroups_async", - "title": "ReservationService listReservationGroups Sample", - "origin": "API_DEFINITION", - "description": " Lists all the reservation groups for the project in the specified location.", - "canonical": true, - "file": "reservation_service.list_reservation_groups.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListReservationGroups", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService.ListReservationGroups", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.bigquery.reservation.v1.ListReservationGroupsResponse", - "client": { - "shortName": "ReservationServiceClient", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationServiceClient" - }, - "method": { - "shortName": "ListReservationGroups", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService.ListReservationGroups", - "service": { - "shortName": "ReservationService", - "fullName": "google.cloud.bigquery.reservation.v1.ReservationService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-billing-budgets/samples/generated/v1/snippet_metadata_google.cloud.billing.budgets.v1.json b/packages/google-cloud-billing-budgets/samples/generated/v1/snippet_metadata_google.cloud.billing.budgets.v1.json deleted file mode 100644 index a51b80853130..000000000000 --- a/packages/google-cloud-billing-budgets/samples/generated/v1/snippet_metadata_google.cloud.billing.budgets.v1.json +++ /dev/null @@ -1,235 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-budgets", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.billing.budgets.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "billingbudgets_v1_generated_BudgetService_CreateBudget_async", - "title": "BudgetService createBudget Sample", - "origin": "API_DEFINITION", - "description": " Creates a new budget. See [Quotas and limits](https://cloud.google.com/billing/quotas) for more information on the limits of the number of budgets you can create.", - "canonical": true, - "file": "budget_service.create_budget.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateBudget", - "fullName": "google.cloud.billing.budgets.v1.BudgetService.CreateBudget", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "budget", - "type": ".google.cloud.billing.budgets.v1.Budget" - } - ], - "resultType": ".google.cloud.billing.budgets.v1.Budget", - "client": { - "shortName": "BudgetServiceClient", - "fullName": "google.cloud.billing.budgets.v1.BudgetServiceClient" - }, - "method": { - "shortName": "CreateBudget", - "fullName": "google.cloud.billing.budgets.v1.BudgetService.CreateBudget", - "service": { - "shortName": "BudgetService", - "fullName": "google.cloud.billing.budgets.v1.BudgetService" - } - } - } - }, - { - "regionTag": "billingbudgets_v1_generated_BudgetService_UpdateBudget_async", - "title": "BudgetService updateBudget Sample", - "origin": "API_DEFINITION", - "description": " Updates a budget and returns the updated budget. WARNING: There are some fields exposed on the Google Cloud Console that aren't available on this API. Budget fields that are not exposed in this API will not be changed by this method.", - "canonical": true, - "file": "budget_service.update_budget.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateBudget", - "fullName": "google.cloud.billing.budgets.v1.BudgetService.UpdateBudget", - "async": true, - "parameters": [ - { - "name": "budget", - "type": ".google.cloud.billing.budgets.v1.Budget" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.billing.budgets.v1.Budget", - "client": { - "shortName": "BudgetServiceClient", - "fullName": "google.cloud.billing.budgets.v1.BudgetServiceClient" - }, - "method": { - "shortName": "UpdateBudget", - "fullName": "google.cloud.billing.budgets.v1.BudgetService.UpdateBudget", - "service": { - "shortName": "BudgetService", - "fullName": "google.cloud.billing.budgets.v1.BudgetService" - } - } - } - }, - { - "regionTag": "billingbudgets_v1_generated_BudgetService_GetBudget_async", - "title": "BudgetService getBudget Sample", - "origin": "API_DEFINITION", - "description": " Returns a budget. WARNING: There are some fields exposed on the Google Cloud Console that aren't available on this API. When reading from the API, you will not see these fields in the return value, though they may have been set in the Cloud Console.", - "canonical": true, - "file": "budget_service.get_budget.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBudget", - "fullName": "google.cloud.billing.budgets.v1.BudgetService.GetBudget", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.billing.budgets.v1.Budget", - "client": { - "shortName": "BudgetServiceClient", - "fullName": "google.cloud.billing.budgets.v1.BudgetServiceClient" - }, - "method": { - "shortName": "GetBudget", - "fullName": "google.cloud.billing.budgets.v1.BudgetService.GetBudget", - "service": { - "shortName": "BudgetService", - "fullName": "google.cloud.billing.budgets.v1.BudgetService" - } - } - } - }, - { - "regionTag": "billingbudgets_v1_generated_BudgetService_ListBudgets_async", - "title": "BudgetService listBudgets Sample", - "origin": "API_DEFINITION", - "description": " Returns a list of budgets for a billing account. WARNING: There are some fields exposed on the Google Cloud Console that aren't available on this API. When reading from the API, you will not see these fields in the return value, though they may have been set in the Cloud Console.", - "canonical": true, - "file": "budget_service.list_budgets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBudgets", - "fullName": "google.cloud.billing.budgets.v1.BudgetService.ListBudgets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "scope", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.billing.budgets.v1.ListBudgetsResponse", - "client": { - "shortName": "BudgetServiceClient", - "fullName": "google.cloud.billing.budgets.v1.BudgetServiceClient" - }, - "method": { - "shortName": "ListBudgets", - "fullName": "google.cloud.billing.budgets.v1.BudgetService.ListBudgets", - "service": { - "shortName": "BudgetService", - "fullName": "google.cloud.billing.budgets.v1.BudgetService" - } - } - } - }, - { - "regionTag": "billingbudgets_v1_generated_BudgetService_DeleteBudget_async", - "title": "BudgetService deleteBudget Sample", - "origin": "API_DEFINITION", - "description": " Deletes a budget. Returns successfully if already deleted.", - "canonical": true, - "file": "budget_service.delete_budget.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteBudget", - "fullName": "google.cloud.billing.budgets.v1.BudgetService.DeleteBudget", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "BudgetServiceClient", - "fullName": "google.cloud.billing.budgets.v1.BudgetServiceClient" - }, - "method": { - "shortName": "DeleteBudget", - "fullName": "google.cloud.billing.budgets.v1.BudgetService.DeleteBudget", - "service": { - "shortName": "BudgetService", - "fullName": "google.cloud.billing.budgets.v1.BudgetService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-billing-budgets/samples/generated/v1beta1/snippet_metadata_google.cloud.billing.budgets.v1beta1.json b/packages/google-cloud-billing-budgets/samples/generated/v1beta1/snippet_metadata_google.cloud.billing.budgets.v1beta1.json deleted file mode 100644 index d36327ec3064..000000000000 --- a/packages/google-cloud-billing-budgets/samples/generated/v1beta1/snippet_metadata_google.cloud.billing.budgets.v1beta1.json +++ /dev/null @@ -1,235 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-budgets", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.billing.budgets.v1beta1", - "version": "v1beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "billingbudgets_v1beta1_generated_BudgetService_CreateBudget_async", - "title": "BudgetService createBudget Sample", - "origin": "API_DEFINITION", - "description": " Creates a new budget. See [Quotas and limits](https://cloud.google.com/billing/quotas) for more information on the limits of the number of budgets you can create.", - "canonical": true, - "file": "budget_service.create_budget.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateBudget", - "fullName": "google.cloud.billing.budgets.v1beta1.BudgetService.CreateBudget", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "budget", - "type": ".google.cloud.billing.budgets.v1beta1.Budget" - } - ], - "resultType": ".google.cloud.billing.budgets.v1beta1.Budget", - "client": { - "shortName": "BudgetServiceClient", - "fullName": "google.cloud.billing.budgets.v1beta1.BudgetServiceClient" - }, - "method": { - "shortName": "CreateBudget", - "fullName": "google.cloud.billing.budgets.v1beta1.BudgetService.CreateBudget", - "service": { - "shortName": "BudgetService", - "fullName": "google.cloud.billing.budgets.v1beta1.BudgetService" - } - } - } - }, - { - "regionTag": "billingbudgets_v1beta1_generated_BudgetService_UpdateBudget_async", - "title": "BudgetService updateBudget Sample", - "origin": "API_DEFINITION", - "description": " Updates a budget and returns the updated budget. WARNING: There are some fields exposed on the Google Cloud Console that aren't available on this API. Budget fields that are not exposed in this API will not be changed by this method.", - "canonical": true, - "file": "budget_service.update_budget.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateBudget", - "fullName": "google.cloud.billing.budgets.v1beta1.BudgetService.UpdateBudget", - "async": true, - "parameters": [ - { - "name": "budget", - "type": ".google.cloud.billing.budgets.v1beta1.Budget" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.billing.budgets.v1beta1.Budget", - "client": { - "shortName": "BudgetServiceClient", - "fullName": "google.cloud.billing.budgets.v1beta1.BudgetServiceClient" - }, - "method": { - "shortName": "UpdateBudget", - "fullName": "google.cloud.billing.budgets.v1beta1.BudgetService.UpdateBudget", - "service": { - "shortName": "BudgetService", - "fullName": "google.cloud.billing.budgets.v1beta1.BudgetService" - } - } - } - }, - { - "regionTag": "billingbudgets_v1beta1_generated_BudgetService_GetBudget_async", - "title": "BudgetService getBudget Sample", - "origin": "API_DEFINITION", - "description": " Returns a budget. WARNING: There are some fields exposed on the Google Cloud Console that aren't available on this API. When reading from the API, you will not see these fields in the return value, though they may have been set in the Cloud Console.", - "canonical": true, - "file": "budget_service.get_budget.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBudget", - "fullName": "google.cloud.billing.budgets.v1beta1.BudgetService.GetBudget", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.billing.budgets.v1beta1.Budget", - "client": { - "shortName": "BudgetServiceClient", - "fullName": "google.cloud.billing.budgets.v1beta1.BudgetServiceClient" - }, - "method": { - "shortName": "GetBudget", - "fullName": "google.cloud.billing.budgets.v1beta1.BudgetService.GetBudget", - "service": { - "shortName": "BudgetService", - "fullName": "google.cloud.billing.budgets.v1beta1.BudgetService" - } - } - } - }, - { - "regionTag": "billingbudgets_v1beta1_generated_BudgetService_ListBudgets_async", - "title": "BudgetService listBudgets Sample", - "origin": "API_DEFINITION", - "description": " Returns a list of budgets for a billing account. WARNING: There are some fields exposed on the Google Cloud Console that aren't available on this API. When reading from the API, you will not see these fields in the return value, though they may have been set in the Cloud Console.", - "canonical": true, - "file": "budget_service.list_budgets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBudgets", - "fullName": "google.cloud.billing.budgets.v1beta1.BudgetService.ListBudgets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "scope", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.billing.budgets.v1beta1.ListBudgetsResponse", - "client": { - "shortName": "BudgetServiceClient", - "fullName": "google.cloud.billing.budgets.v1beta1.BudgetServiceClient" - }, - "method": { - "shortName": "ListBudgets", - "fullName": "google.cloud.billing.budgets.v1beta1.BudgetService.ListBudgets", - "service": { - "shortName": "BudgetService", - "fullName": "google.cloud.billing.budgets.v1beta1.BudgetService" - } - } - } - }, - { - "regionTag": "billingbudgets_v1beta1_generated_BudgetService_DeleteBudget_async", - "title": "BudgetService deleteBudget Sample", - "origin": "API_DEFINITION", - "description": " Deletes a budget. Returns successfully if already deleted.", - "canonical": true, - "file": "budget_service.delete_budget.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteBudget", - "fullName": "google.cloud.billing.budgets.v1beta1.BudgetService.DeleteBudget", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "BudgetServiceClient", - "fullName": "google.cloud.billing.budgets.v1beta1.BudgetServiceClient" - }, - "method": { - "shortName": "DeleteBudget", - "fullName": "google.cloud.billing.budgets.v1beta1.BudgetService.DeleteBudget", - "service": { - "shortName": "BudgetService", - "fullName": "google.cloud.billing.budgets.v1beta1.BudgetService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-billing/samples/generated/v1/snippet_metadata_google.cloud.billing.v1.json b/packages/google-cloud-billing/samples/generated/v1/snippet_metadata_google.cloud.billing.v1.json deleted file mode 100644 index c94e5f254e38..000000000000 --- a/packages/google-cloud-billing/samples/generated/v1/snippet_metadata_google.cloud.billing.v1.json +++ /dev/null @@ -1,615 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-billing", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.billing.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "cloudbilling_v1_generated_CloudBilling_GetBillingAccount_async", - "title": "CloudBilling getBillingAccount Sample", - "origin": "API_DEFINITION", - "description": " Gets information about a billing account. The current authenticated user must be a [viewer of the billing account](https://cloud.google.com/billing/docs/how-to/billing-access).", - "canonical": true, - "file": "cloud_billing.get_billing_account.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBillingAccount", - "fullName": "google.cloud.billing.v1.CloudBilling.GetBillingAccount", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.billing.v1.BillingAccount", - "client": { - "shortName": "CloudBillingClient", - "fullName": "google.cloud.billing.v1.CloudBillingClient" - }, - "method": { - "shortName": "GetBillingAccount", - "fullName": "google.cloud.billing.v1.CloudBilling.GetBillingAccount", - "service": { - "shortName": "CloudBilling", - "fullName": "google.cloud.billing.v1.CloudBilling" - } - } - } - }, - { - "regionTag": "cloudbilling_v1_generated_CloudBilling_ListBillingAccounts_async", - "title": "CloudBilling listBillingAccounts Sample", - "origin": "API_DEFINITION", - "description": " Lists the billing accounts that the current authenticated user has permission to [view](https://cloud.google.com/billing/docs/how-to/billing-access).", - "canonical": true, - "file": "cloud_billing.list_billing_accounts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBillingAccounts", - "fullName": "google.cloud.billing.v1.CloudBilling.ListBillingAccounts", - "async": true, - "parameters": [ - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.billing.v1.ListBillingAccountsResponse", - "client": { - "shortName": "CloudBillingClient", - "fullName": "google.cloud.billing.v1.CloudBillingClient" - }, - "method": { - "shortName": "ListBillingAccounts", - "fullName": "google.cloud.billing.v1.CloudBilling.ListBillingAccounts", - "service": { - "shortName": "CloudBilling", - "fullName": "google.cloud.billing.v1.CloudBilling" - } - } - } - }, - { - "regionTag": "cloudbilling_v1_generated_CloudBilling_UpdateBillingAccount_async", - "title": "CloudBilling updateBillingAccount Sample", - "origin": "API_DEFINITION", - "description": " Updates a billing account's fields. Currently the only field that can be edited is `display_name`. The current authenticated user must have the `billing.accounts.update` IAM permission, which is typically given to the [administrator](https://cloud.google.com/billing/docs/how-to/billing-access) of the billing account.", - "canonical": true, - "file": "cloud_billing.update_billing_account.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateBillingAccount", - "fullName": "google.cloud.billing.v1.CloudBilling.UpdateBillingAccount", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "account", - "type": ".google.cloud.billing.v1.BillingAccount" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.billing.v1.BillingAccount", - "client": { - "shortName": "CloudBillingClient", - "fullName": "google.cloud.billing.v1.CloudBillingClient" - }, - "method": { - "shortName": "UpdateBillingAccount", - "fullName": "google.cloud.billing.v1.CloudBilling.UpdateBillingAccount", - "service": { - "shortName": "CloudBilling", - "fullName": "google.cloud.billing.v1.CloudBilling" - } - } - } - }, - { - "regionTag": "cloudbilling_v1_generated_CloudBilling_CreateBillingAccount_async", - "title": "CloudBilling createBillingAccount Sample", - "origin": "API_DEFINITION", - "description": " This method creates [billing subaccounts](https://cloud.google.com/billing/docs/concepts#subaccounts). Google Cloud resellers should use the Channel Services APIs, [accounts.customers.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers/create) and [accounts.customers.entitlements.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers.entitlements/create). When creating a subaccount, the current authenticated user must have the `billing.accounts.update` IAM permission on the parent account, which is typically given to billing account [administrators](https://cloud.google.com/billing/docs/how-to/billing-access). This method will return an error if the parent account has not been provisioned for subaccounts.", - "canonical": true, - "file": "cloud_billing.create_billing_account.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateBillingAccount", - "fullName": "google.cloud.billing.v1.CloudBilling.CreateBillingAccount", - "async": true, - "parameters": [ - { - "name": "billing_account", - "type": ".google.cloud.billing.v1.BillingAccount" - }, - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.billing.v1.BillingAccount", - "client": { - "shortName": "CloudBillingClient", - "fullName": "google.cloud.billing.v1.CloudBillingClient" - }, - "method": { - "shortName": "CreateBillingAccount", - "fullName": "google.cloud.billing.v1.CloudBilling.CreateBillingAccount", - "service": { - "shortName": "CloudBilling", - "fullName": "google.cloud.billing.v1.CloudBilling" - } - } - } - }, - { - "regionTag": "cloudbilling_v1_generated_CloudBilling_ListProjectBillingInfo_async", - "title": "CloudBilling listProjectBillingInfo Sample", - "origin": "API_DEFINITION", - "description": " Lists the projects associated with a billing account. The current authenticated user must have the `billing.resourceAssociations.list` IAM permission, which is often given to billing account [viewers](https://cloud.google.com/billing/docs/how-to/billing-access).", - "canonical": true, - "file": "cloud_billing.list_project_billing_info.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListProjectBillingInfo", - "fullName": "google.cloud.billing.v1.CloudBilling.ListProjectBillingInfo", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.billing.v1.ListProjectBillingInfoResponse", - "client": { - "shortName": "CloudBillingClient", - "fullName": "google.cloud.billing.v1.CloudBillingClient" - }, - "method": { - "shortName": "ListProjectBillingInfo", - "fullName": "google.cloud.billing.v1.CloudBilling.ListProjectBillingInfo", - "service": { - "shortName": "CloudBilling", - "fullName": "google.cloud.billing.v1.CloudBilling" - } - } - } - }, - { - "regionTag": "cloudbilling_v1_generated_CloudBilling_GetProjectBillingInfo_async", - "title": "CloudBilling getProjectBillingInfo Sample", - "origin": "API_DEFINITION", - "description": " Gets the billing information for a project. The current authenticated user must have the `resourcemanager.projects.get` permission for the project, which can be granted by assigning the [Project Viewer](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles) role.", - "canonical": true, - "file": "cloud_billing.get_project_billing_info.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetProjectBillingInfo", - "fullName": "google.cloud.billing.v1.CloudBilling.GetProjectBillingInfo", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.billing.v1.ProjectBillingInfo", - "client": { - "shortName": "CloudBillingClient", - "fullName": "google.cloud.billing.v1.CloudBillingClient" - }, - "method": { - "shortName": "GetProjectBillingInfo", - "fullName": "google.cloud.billing.v1.CloudBilling.GetProjectBillingInfo", - "service": { - "shortName": "CloudBilling", - "fullName": "google.cloud.billing.v1.CloudBilling" - } - } - } - }, - { - "regionTag": "cloudbilling_v1_generated_CloudBilling_UpdateProjectBillingInfo_async", - "title": "CloudBilling updateProjectBillingInfo Sample", - "origin": "API_DEFINITION", - "description": " Sets or updates the billing account associated with a project. You specify the new billing account by setting the `billing_account_name` in the `ProjectBillingInfo` resource to the resource name of a billing account. Associating a project with an open billing account enables billing on the project and allows charges for resource usage. If the project already had a billing account, this method changes the billing account used for resource usage charges. *Note:* Incurred charges that have not yet been reported in the transaction history of the Google Cloud Console might be billed to the new billing account, even if the charge occurred before the new billing account was assigned to the project. The current authenticated user must have ownership privileges for both the [project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo ) and the [billing account](https://cloud.google.com/billing/docs/how-to/billing-access). You can disable billing on the project by setting the `billing_account_name` field to empty. This action disassociates the current billing account from the project. Any billable activity of your in-use services will stop, and your application could stop functioning as expected. Any unbilled charges to date will be billed to the previously associated account. The current authenticated user must be either an owner of the project or an owner of the billing account for the project. Note that associating a project with a *closed* billing account will have much the same effect as disabling billing on the project: any paid resources used by the project will be shut down. Thus, unless you wish to disable billing, you should always call this method with the name of an *open* billing account.", - "canonical": true, - "file": "cloud_billing.update_project_billing_info.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateProjectBillingInfo", - "fullName": "google.cloud.billing.v1.CloudBilling.UpdateProjectBillingInfo", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "project_billing_info", - "type": ".google.cloud.billing.v1.ProjectBillingInfo" - } - ], - "resultType": ".google.cloud.billing.v1.ProjectBillingInfo", - "client": { - "shortName": "CloudBillingClient", - "fullName": "google.cloud.billing.v1.CloudBillingClient" - }, - "method": { - "shortName": "UpdateProjectBillingInfo", - "fullName": "google.cloud.billing.v1.CloudBilling.UpdateProjectBillingInfo", - "service": { - "shortName": "CloudBilling", - "fullName": "google.cloud.billing.v1.CloudBilling" - } - } - } - }, - { - "regionTag": "cloudbilling_v1_generated_CloudBilling_GetIamPolicy_async", - "title": "CloudBilling getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a billing account. The caller must have the `billing.accounts.getIamPolicy` permission on the account, which is often given to billing account [viewers](https://cloud.google.com/billing/docs/how-to/billing-access).", - "canonical": true, - "file": "cloud_billing.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.billing.v1.CloudBilling.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": ".google.iam.v1.GetPolicyOptions" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "CloudBillingClient", - "fullName": "google.cloud.billing.v1.CloudBillingClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.billing.v1.CloudBilling.GetIamPolicy", - "service": { - "shortName": "CloudBilling", - "fullName": "google.cloud.billing.v1.CloudBilling" - } - } - } - }, - { - "regionTag": "cloudbilling_v1_generated_CloudBilling_SetIamPolicy_async", - "title": "CloudBilling setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy for a billing account. Replaces any existing policy. The caller must have the `billing.accounts.setIamPolicy` permission on the account, which is often given to billing account [administrators](https://cloud.google.com/billing/docs/how-to/billing-access).", - "canonical": true, - "file": "cloud_billing.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.billing.v1.CloudBilling.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.iam.v1.Policy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "CloudBillingClient", - "fullName": "google.cloud.billing.v1.CloudBillingClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.billing.v1.CloudBilling.SetIamPolicy", - "service": { - "shortName": "CloudBilling", - "fullName": "google.cloud.billing.v1.CloudBilling" - } - } - } - }, - { - "regionTag": "cloudbilling_v1_generated_CloudBilling_TestIamPermissions_async", - "title": "CloudBilling testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Tests the access control policy for a billing account. This method takes the resource and a set of permissions as input and returns the subset of the input permissions that the caller is allowed for that resource.", - "canonical": true, - "file": "cloud_billing.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.billing.v1.CloudBilling.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "permissions", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.iam.v1.TestIamPermissionsResponse", - "client": { - "shortName": "CloudBillingClient", - "fullName": "google.cloud.billing.v1.CloudBillingClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.billing.v1.CloudBilling.TestIamPermissions", - "service": { - "shortName": "CloudBilling", - "fullName": "google.cloud.billing.v1.CloudBilling" - } - } - } - }, - { - "regionTag": "cloudbilling_v1_generated_CloudBilling_MoveBillingAccount_async", - "title": "CloudBilling moveBillingAccount Sample", - "origin": "API_DEFINITION", - "description": " Changes which parent organization a billing account belongs to.", - "canonical": true, - "file": "cloud_billing.move_billing_account.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "MoveBillingAccount", - "fullName": "google.cloud.billing.v1.CloudBilling.MoveBillingAccount", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "destination_parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.billing.v1.BillingAccount", - "client": { - "shortName": "CloudBillingClient", - "fullName": "google.cloud.billing.v1.CloudBillingClient" - }, - "method": { - "shortName": "MoveBillingAccount", - "fullName": "google.cloud.billing.v1.CloudBilling.MoveBillingAccount", - "service": { - "shortName": "CloudBilling", - "fullName": "google.cloud.billing.v1.CloudBilling" - } - } - } - }, - { - "regionTag": "cloudbilling_v1_generated_CloudCatalog_ListServices_async", - "title": "CloudBilling listServices Sample", - "origin": "API_DEFINITION", - "description": " Lists all public cloud services.", - "canonical": true, - "file": "cloud_catalog.list_services.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListServices", - "fullName": "google.cloud.billing.v1.CloudCatalog.ListServices", - "async": true, - "parameters": [ - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.billing.v1.ListServicesResponse", - "client": { - "shortName": "CloudCatalogClient", - "fullName": "google.cloud.billing.v1.CloudCatalogClient" - }, - "method": { - "shortName": "ListServices", - "fullName": "google.cloud.billing.v1.CloudCatalog.ListServices", - "service": { - "shortName": "CloudCatalog", - "fullName": "google.cloud.billing.v1.CloudCatalog" - } - } - } - }, - { - "regionTag": "cloudbilling_v1_generated_CloudCatalog_ListSkus_async", - "title": "CloudBilling listSkus Sample", - "origin": "API_DEFINITION", - "description": " Lists all publicly available SKUs for a given cloud service.", - "canonical": true, - "file": "cloud_catalog.list_skus.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 90, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSkus", - "fullName": "google.cloud.billing.v1.CloudCatalog.ListSkus", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "start_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "end_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "currency_code", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.billing.v1.ListSkusResponse", - "client": { - "shortName": "CloudCatalogClient", - "fullName": "google.cloud.billing.v1.CloudCatalogClient" - }, - "method": { - "shortName": "ListSkus", - "fullName": "google.cloud.billing.v1.CloudCatalog.ListSkus", - "service": { - "shortName": "CloudCatalog", - "fullName": "google.cloud.billing.v1.CloudCatalog" - } - } - } - } - ] -} diff --git a/packages/google-cloud-binaryauthorization/samples/generated/v1/snippet_metadata_google.cloud.binaryauthorization.v1.json b/packages/google-cloud-binaryauthorization/samples/generated/v1/snippet_metadata_google.cloud.binaryauthorization.v1.json deleted file mode 100644 index c7c8d4114ffc..000000000000 --- a/packages/google-cloud-binaryauthorization/samples/generated/v1/snippet_metadata_google.cloud.binaryauthorization.v1.json +++ /dev/null @@ -1,403 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-binaryauthorization", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.binaryauthorization.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "binaryauthorization_v1_generated_BinauthzManagementServiceV1_GetPolicy_async", - "title": "BinauthzManagementServiceV1 getPolicy Sample", - "origin": "API_DEFINITION", - "description": " A [policy][google.cloud.binaryauthorization.v1.Policy] specifies the [attestors][google.cloud.binaryauthorization.v1.Attestor] that must attest to a container image, before the project is allowed to deploy that image. There is at most one policy per project. All image admission requests are permitted if a project has no policy. Gets the [policy][google.cloud.binaryauthorization.v1.Policy] for this project. Returns a default [policy][google.cloud.binaryauthorization.v1.Policy] if the project does not have one.", - "canonical": true, - "file": "binauthz_management_service_v1.get_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPolicy", - "fullName": "google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1.GetPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.binaryauthorization.v1.Policy", - "client": { - "shortName": "BinauthzManagementServiceV1Client", - "fullName": "google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1Client" - }, - "method": { - "shortName": "GetPolicy", - "fullName": "google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1.GetPolicy", - "service": { - "shortName": "BinauthzManagementServiceV1", - "fullName": "google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1" - } - } - } - }, - { - "regionTag": "binaryauthorization_v1_generated_BinauthzManagementServiceV1_UpdatePolicy_async", - "title": "BinauthzManagementServiceV1 updatePolicy Sample", - "origin": "API_DEFINITION", - "description": " Creates or updates a project's [policy][google.cloud.binaryauthorization.v1.Policy], and returns a copy of the new [policy][google.cloud.binaryauthorization.v1.Policy]. A policy is always updated as a whole, to avoid race conditions with concurrent policy enforcement (or management!) requests. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT if the request is malformed.", - "canonical": true, - "file": "binauthz_management_service_v1.update_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdatePolicy", - "fullName": "google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1.UpdatePolicy", - "async": true, - "parameters": [ - { - "name": "policy", - "type": ".google.cloud.binaryauthorization.v1.Policy" - } - ], - "resultType": ".google.cloud.binaryauthorization.v1.Policy", - "client": { - "shortName": "BinauthzManagementServiceV1Client", - "fullName": "google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1Client" - }, - "method": { - "shortName": "UpdatePolicy", - "fullName": "google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1.UpdatePolicy", - "service": { - "shortName": "BinauthzManagementServiceV1", - "fullName": "google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1" - } - } - } - }, - { - "regionTag": "binaryauthorization_v1_generated_BinauthzManagementServiceV1_CreateAttestor_async", - "title": "BinauthzManagementServiceV1 createAttestor Sample", - "origin": "API_DEFINITION", - "description": " Creates an [attestor][google.cloud.binaryauthorization.v1.Attestor], and returns a copy of the new [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the [attestor][google.cloud.binaryauthorization.v1.Attestor] already exists.", - "canonical": true, - "file": "binauthz_management_service_v1.create_attestor.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAttestor", - "fullName": "google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1.CreateAttestor", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "attestor_id", - "type": "TYPE_STRING" - }, - { - "name": "attestor", - "type": ".google.cloud.binaryauthorization.v1.Attestor" - } - ], - "resultType": ".google.cloud.binaryauthorization.v1.Attestor", - "client": { - "shortName": "BinauthzManagementServiceV1Client", - "fullName": "google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1Client" - }, - "method": { - "shortName": "CreateAttestor", - "fullName": "google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1.CreateAttestor", - "service": { - "shortName": "BinauthzManagementServiceV1", - "fullName": "google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1" - } - } - } - }, - { - "regionTag": "binaryauthorization_v1_generated_BinauthzManagementServiceV1_GetAttestor_async", - "title": "BinauthzManagementServiceV1 getAttestor Sample", - "origin": "API_DEFINITION", - "description": " Gets an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.", - "canonical": true, - "file": "binauthz_management_service_v1.get_attestor.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAttestor", - "fullName": "google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1.GetAttestor", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.binaryauthorization.v1.Attestor", - "client": { - "shortName": "BinauthzManagementServiceV1Client", - "fullName": "google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1Client" - }, - "method": { - "shortName": "GetAttestor", - "fullName": "google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1.GetAttestor", - "service": { - "shortName": "BinauthzManagementServiceV1", - "fullName": "google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1" - } - } - } - }, - { - "regionTag": "binaryauthorization_v1_generated_BinauthzManagementServiceV1_UpdateAttestor_async", - "title": "BinauthzManagementServiceV1 updateAttestor Sample", - "origin": "API_DEFINITION", - "description": " Updates an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.", - "canonical": true, - "file": "binauthz_management_service_v1.update_attestor.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAttestor", - "fullName": "google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1.UpdateAttestor", - "async": true, - "parameters": [ - { - "name": "attestor", - "type": ".google.cloud.binaryauthorization.v1.Attestor" - } - ], - "resultType": ".google.cloud.binaryauthorization.v1.Attestor", - "client": { - "shortName": "BinauthzManagementServiceV1Client", - "fullName": "google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1Client" - }, - "method": { - "shortName": "UpdateAttestor", - "fullName": "google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1.UpdateAttestor", - "service": { - "shortName": "BinauthzManagementServiceV1", - "fullName": "google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1" - } - } - } - }, - { - "regionTag": "binaryauthorization_v1_generated_BinauthzManagementServiceV1_ListAttestors_async", - "title": "BinauthzManagementServiceV1 listAttestors Sample", - "origin": "API_DEFINITION", - "description": " Lists [attestors][google.cloud.binaryauthorization.v1.Attestor]. Returns INVALID_ARGUMENT if the project does not exist.", - "canonical": true, - "file": "binauthz_management_service_v1.list_attestors.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAttestors", - "fullName": "google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1.ListAttestors", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.binaryauthorization.v1.ListAttestorsResponse", - "client": { - "shortName": "BinauthzManagementServiceV1Client", - "fullName": "google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1Client" - }, - "method": { - "shortName": "ListAttestors", - "fullName": "google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1.ListAttestors", - "service": { - "shortName": "BinauthzManagementServiceV1", - "fullName": "google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1" - } - } - } - }, - { - "regionTag": "binaryauthorization_v1_generated_BinauthzManagementServiceV1_DeleteAttestor_async", - "title": "BinauthzManagementServiceV1 deleteAttestor Sample", - "origin": "API_DEFINITION", - "description": " Deletes an [attestor][google.cloud.binaryauthorization.v1.Attestor]. Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1.Attestor] does not exist.", - "canonical": true, - "file": "binauthz_management_service_v1.delete_attestor.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAttestor", - "fullName": "google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1.DeleteAttestor", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "BinauthzManagementServiceV1Client", - "fullName": "google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1Client" - }, - "method": { - "shortName": "DeleteAttestor", - "fullName": "google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1.DeleteAttestor", - "service": { - "shortName": "BinauthzManagementServiceV1", - "fullName": "google.cloud.binaryauthorization.v1.BinauthzManagementServiceV1" - } - } - } - }, - { - "regionTag": "binaryauthorization_v1_generated_SystemPolicyV1_GetSystemPolicy_async", - "title": "BinauthzManagementServiceV1 getSystemPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the current system policy in the specified location.", - "canonical": true, - "file": "system_policy_v1.get_system_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSystemPolicy", - "fullName": "google.cloud.binaryauthorization.v1.SystemPolicyV1.GetSystemPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.binaryauthorization.v1.Policy", - "client": { - "shortName": "SystemPolicyV1Client", - "fullName": "google.cloud.binaryauthorization.v1.SystemPolicyV1Client" - }, - "method": { - "shortName": "GetSystemPolicy", - "fullName": "google.cloud.binaryauthorization.v1.SystemPolicyV1.GetSystemPolicy", - "service": { - "shortName": "SystemPolicyV1", - "fullName": "google.cloud.binaryauthorization.v1.SystemPolicyV1" - } - } - } - }, - { - "regionTag": "binaryauthorization_v1_generated_ValidationHelperV1_ValidateAttestationOccurrence_async", - "title": "BinauthzManagementServiceV1 validateAttestationOccurrence Sample", - "origin": "API_DEFINITION", - "description": " Returns whether the given Attestation for the given image URI was signed by the given Attestor", - "canonical": true, - "file": "validation_helper_v1.validate_attestation_occurrence.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ValidateAttestationOccurrence", - "fullName": "google.cloud.binaryauthorization.v1.ValidationHelperV1.ValidateAttestationOccurrence", - "async": true, - "parameters": [ - { - "name": "attestor", - "type": "TYPE_STRING" - }, - { - "name": "attestation", - "type": ".grafeas.v1.AttestationOccurrence" - }, - { - "name": "occurrence_note", - "type": "TYPE_STRING" - }, - { - "name": "occurrence_resource_uri", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceResponse", - "client": { - "shortName": "ValidationHelperV1Client", - "fullName": "google.cloud.binaryauthorization.v1.ValidationHelperV1Client" - }, - "method": { - "shortName": "ValidateAttestationOccurrence", - "fullName": "google.cloud.binaryauthorization.v1.ValidationHelperV1.ValidateAttestationOccurrence", - "service": { - "shortName": "ValidationHelperV1", - "fullName": "google.cloud.binaryauthorization.v1.ValidationHelperV1" - } - } - } - } - ] -} diff --git a/packages/google-cloud-binaryauthorization/samples/generated/v1beta1/snippet_metadata_google.cloud.binaryauthorization.v1beta1.json b/packages/google-cloud-binaryauthorization/samples/generated/v1beta1/snippet_metadata_google.cloud.binaryauthorization.v1beta1.json deleted file mode 100644 index 87e67c6c9411..000000000000 --- a/packages/google-cloud-binaryauthorization/samples/generated/v1beta1/snippet_metadata_google.cloud.binaryauthorization.v1beta1.json +++ /dev/null @@ -1,351 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-binaryauthorization", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.binaryauthorization.v1beta1", - "version": "v1beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_GetPolicy_async", - "title": "BinauthzManagementServiceV1Beta1 getPolicy Sample", - "origin": "API_DEFINITION", - "description": " A [policy][google.cloud.binaryauthorization.v1beta1.Policy] specifies the [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] that must attest to a container image, before the project is allowed to deploy that image. There is at most one policy per project. All image admission requests are permitted if a project has no policy. Gets the [policy][google.cloud.binaryauthorization.v1beta1.Policy] for this project. Returns a default [policy][google.cloud.binaryauthorization.v1beta1.Policy] if the project does not have one.", - "canonical": true, - "file": "binauthz_management_service_v1_beta1.get_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPolicy", - "fullName": "google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1.GetPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.binaryauthorization.v1beta1.Policy", - "client": { - "shortName": "BinauthzManagementServiceV1Beta1Client", - "fullName": "google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1Client" - }, - "method": { - "shortName": "GetPolicy", - "fullName": "google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1.GetPolicy", - "service": { - "shortName": "BinauthzManagementServiceV1Beta1", - "fullName": "google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1" - } - } - } - }, - { - "regionTag": "binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_UpdatePolicy_async", - "title": "BinauthzManagementServiceV1Beta1 updatePolicy Sample", - "origin": "API_DEFINITION", - "description": " Creates or updates a project's [policy][google.cloud.binaryauthorization.v1beta1.Policy], and returns a copy of the new [policy][google.cloud.binaryauthorization.v1beta1.Policy]. A policy is always updated as a whole, to avoid race conditions with concurrent policy enforcement (or management!) requests. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT if the request is malformed.", - "canonical": true, - "file": "binauthz_management_service_v1_beta1.update_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdatePolicy", - "fullName": "google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1.UpdatePolicy", - "async": true, - "parameters": [ - { - "name": "policy", - "type": ".google.cloud.binaryauthorization.v1beta1.Policy" - } - ], - "resultType": ".google.cloud.binaryauthorization.v1beta1.Policy", - "client": { - "shortName": "BinauthzManagementServiceV1Beta1Client", - "fullName": "google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1Client" - }, - "method": { - "shortName": "UpdatePolicy", - "fullName": "google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1.UpdatePolicy", - "service": { - "shortName": "BinauthzManagementServiceV1Beta1", - "fullName": "google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1" - } - } - } - }, - { - "regionTag": "binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_CreateAttestor_async", - "title": "BinauthzManagementServiceV1Beta1 createAttestor Sample", - "origin": "API_DEFINITION", - "description": " Creates an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor], and returns a copy of the new [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] already exists.", - "canonical": true, - "file": "binauthz_management_service_v1_beta1.create_attestor.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAttestor", - "fullName": "google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1.CreateAttestor", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "attestor_id", - "type": "TYPE_STRING" - }, - { - "name": "attestor", - "type": ".google.cloud.binaryauthorization.v1beta1.Attestor" - } - ], - "resultType": ".google.cloud.binaryauthorization.v1beta1.Attestor", - "client": { - "shortName": "BinauthzManagementServiceV1Beta1Client", - "fullName": "google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1Client" - }, - "method": { - "shortName": "CreateAttestor", - "fullName": "google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1.CreateAttestor", - "service": { - "shortName": "BinauthzManagementServiceV1Beta1", - "fullName": "google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1" - } - } - } - }, - { - "regionTag": "binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_GetAttestor_async", - "title": "BinauthzManagementServiceV1Beta1 getAttestor Sample", - "origin": "API_DEFINITION", - "description": " Gets an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.", - "canonical": true, - "file": "binauthz_management_service_v1_beta1.get_attestor.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAttestor", - "fullName": "google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1.GetAttestor", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.binaryauthorization.v1beta1.Attestor", - "client": { - "shortName": "BinauthzManagementServiceV1Beta1Client", - "fullName": "google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1Client" - }, - "method": { - "shortName": "GetAttestor", - "fullName": "google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1.GetAttestor", - "service": { - "shortName": "BinauthzManagementServiceV1Beta1", - "fullName": "google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1" - } - } - } - }, - { - "regionTag": "binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_UpdateAttestor_async", - "title": "BinauthzManagementServiceV1Beta1 updateAttestor Sample", - "origin": "API_DEFINITION", - "description": " Updates an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.", - "canonical": true, - "file": "binauthz_management_service_v1_beta1.update_attestor.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAttestor", - "fullName": "google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1.UpdateAttestor", - "async": true, - "parameters": [ - { - "name": "attestor", - "type": ".google.cloud.binaryauthorization.v1beta1.Attestor" - } - ], - "resultType": ".google.cloud.binaryauthorization.v1beta1.Attestor", - "client": { - "shortName": "BinauthzManagementServiceV1Beta1Client", - "fullName": "google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1Client" - }, - "method": { - "shortName": "UpdateAttestor", - "fullName": "google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1.UpdateAttestor", - "service": { - "shortName": "BinauthzManagementServiceV1Beta1", - "fullName": "google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1" - } - } - } - }, - { - "regionTag": "binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_ListAttestors_async", - "title": "BinauthzManagementServiceV1Beta1 listAttestors Sample", - "origin": "API_DEFINITION", - "description": " Lists [attestors][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns INVALID_ARGUMENT if the project does not exist.", - "canonical": true, - "file": "binauthz_management_service_v1_beta1.list_attestors.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAttestors", - "fullName": "google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1.ListAttestors", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.binaryauthorization.v1beta1.ListAttestorsResponse", - "client": { - "shortName": "BinauthzManagementServiceV1Beta1Client", - "fullName": "google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1Client" - }, - "method": { - "shortName": "ListAttestors", - "fullName": "google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1.ListAttestors", - "service": { - "shortName": "BinauthzManagementServiceV1Beta1", - "fullName": "google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1" - } - } - } - }, - { - "regionTag": "binaryauthorization_v1beta1_generated_BinauthzManagementServiceV1Beta1_DeleteAttestor_async", - "title": "BinauthzManagementServiceV1Beta1 deleteAttestor Sample", - "origin": "API_DEFINITION", - "description": " Deletes an [attestor][google.cloud.binaryauthorization.v1beta1.Attestor]. Returns NOT_FOUND if the [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] does not exist.", - "canonical": true, - "file": "binauthz_management_service_v1_beta1.delete_attestor.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAttestor", - "fullName": "google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1.DeleteAttestor", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "BinauthzManagementServiceV1Beta1Client", - "fullName": "google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1Client" - }, - "method": { - "shortName": "DeleteAttestor", - "fullName": "google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1.DeleteAttestor", - "service": { - "shortName": "BinauthzManagementServiceV1Beta1", - "fullName": "google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1" - } - } - } - }, - { - "regionTag": "binaryauthorization_v1beta1_generated_SystemPolicyV1Beta1_GetSystemPolicy_async", - "title": "BinauthzManagementServiceV1Beta1 getSystemPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the current system policy in the specified location.", - "canonical": true, - "file": "system_policy_v1_beta1.get_system_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSystemPolicy", - "fullName": "google.cloud.binaryauthorization.v1beta1.SystemPolicyV1Beta1.GetSystemPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.binaryauthorization.v1beta1.Policy", - "client": { - "shortName": "SystemPolicyV1Beta1Client", - "fullName": "google.cloud.binaryauthorization.v1beta1.SystemPolicyV1Beta1Client" - }, - "method": { - "shortName": "GetSystemPolicy", - "fullName": "google.cloud.binaryauthorization.v1beta1.SystemPolicyV1Beta1.GetSystemPolicy", - "service": { - "shortName": "SystemPolicyV1Beta1", - "fullName": "google.cloud.binaryauthorization.v1beta1.SystemPolicyV1Beta1" - } - } - } - } - ] -} diff --git a/packages/google-cloud-capacityplanner/samples/generated/v1beta/snippet_metadata_google.cloud.capacityplanner.v1beta.json b/packages/google-cloud-capacityplanner/samples/generated/v1beta/snippet_metadata_google.cloud.capacityplanner.v1beta.json deleted file mode 100644 index 613a04ab8520..000000000000 --- a/packages/google-cloud-capacityplanner/samples/generated/v1beta/snippet_metadata_google.cloud.capacityplanner.v1beta.json +++ /dev/null @@ -1,659 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-capacityplanner", - "version": "0.1.2", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.capacityplanner.v1beta", - "version": "v1beta" - } - ] - }, - "snippets": [ - { - "regionTag": "capacityplanner_v1beta_generated_CapacityPlanningService_GetCapacityPlan_async", - "title": "CapacityPlanningService getCapacityPlan Sample", - "origin": "API_DEFINITION", - "description": " Returns information about the capacity plan.", - "canonical": true, - "file": "capacity_planning_service.get_capacity_plan.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCapacityPlan", - "fullName": "google.cloud.capacityplanner.v1beta.CapacityPlanningService.GetCapacityPlan", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.capacityplanner.v1beta.CapacityPlan", - "client": { - "shortName": "CapacityPlanningServiceClient", - "fullName": "google.cloud.capacityplanner.v1beta.CapacityPlanningServiceClient" - }, - "method": { - "shortName": "GetCapacityPlan", - "fullName": "google.cloud.capacityplanner.v1beta.CapacityPlanningService.GetCapacityPlan", - "service": { - "shortName": "CapacityPlanningService", - "fullName": "google.cloud.capacityplanner.v1beta.CapacityPlanningService" - } - } - } - }, - { - "regionTag": "capacityplanner_v1beta_generated_CapacityPlanningService_QueryCapacityPlans_async", - "title": "CapacityPlanningService queryCapacityPlans Sample", - "origin": "API_DEFINITION", - "description": " Returns a list of the capacity plans that are in the parent parameter and match your specified filters. (The maximum list length is limited by the pageSize parameter.)", - "canonical": true, - "file": "capacity_planning_service.query_capacity_plans.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryCapacityPlans", - "fullName": "google.cloud.capacityplanner.v1beta.CapacityPlanningService.QueryCapacityPlans", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "location", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.capacityplanner.v1beta.QueryCapacityPlansResponse", - "client": { - "shortName": "CapacityPlanningServiceClient", - "fullName": "google.cloud.capacityplanner.v1beta.CapacityPlanningServiceClient" - }, - "method": { - "shortName": "QueryCapacityPlans", - "fullName": "google.cloud.capacityplanner.v1beta.CapacityPlanningService.QueryCapacityPlans", - "service": { - "shortName": "CapacityPlanningService", - "fullName": "google.cloud.capacityplanner.v1beta.CapacityPlanningService" - } - } - } - }, - { - "regionTag": "capacityplanner_v1beta_generated_CapacityPlanningService_QueryCapacityPlanInsights_async", - "title": "CapacityPlanningService queryCapacityPlanInsights Sample", - "origin": "API_DEFINITION", - "description": " Query capacity plan insights that are in the parent parameter and match your specified filters.", - "canonical": true, - "file": "capacity_planning_service.query_capacity_plan_insights.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryCapacityPlanInsights", - "fullName": "google.cloud.capacityplanner.v1beta.CapacityPlanningService.QueryCapacityPlanInsights", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "capacity_plan_filters", - "type": ".google.cloud.capacityplanner.v1beta.CapacityPlanFilters" - } - ], - "resultType": ".google.cloud.capacityplanner.v1beta.QueryCapacityPlanInsightsResponse", - "client": { - "shortName": "CapacityPlanningServiceClient", - "fullName": "google.cloud.capacityplanner.v1beta.CapacityPlanningServiceClient" - }, - "method": { - "shortName": "QueryCapacityPlanInsights", - "fullName": "google.cloud.capacityplanner.v1beta.CapacityPlanningService.QueryCapacityPlanInsights", - "service": { - "shortName": "CapacityPlanningService", - "fullName": "google.cloud.capacityplanner.v1beta.CapacityPlanningService" - } - } - } - }, - { - "regionTag": "capacityplanner_v1beta_generated_UsageService_QueryUsageHistories_async", - "title": "CapacityPlanningService queryUsageHistories Sample", - "origin": "API_DEFINITION", - "description": " Returns a list of the usage histories that are in the parent parameter and match your specified filters.", - "canonical": true, - "file": "usage_service.query_usage_histories.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 121, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryUsageHistories", - "fullName": "google.cloud.capacityplanner.v1beta.UsageService.QueryUsageHistories", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "location_level", - "type": ".google.cloud.capacityplanner.v1beta.TimeSeries.LocationType" - }, - { - "name": "is_spot", - "type": "TYPE_BOOL" - }, - { - "name": "machine_family", - "type": "TYPE_STRING" - }, - { - "name": "machine_shape", - "type": ".google.cloud.capacityplanner.v1beta.MachineShape" - }, - { - "name": "disk_type", - "type": "TYPE_STRING" - }, - { - "name": "confidential_mode", - "type": "TYPE_BOOL" - }, - { - "name": "gpu_type", - "type": "TYPE_STRING" - }, - { - "name": "tpu_type", - "type": "TYPE_STRING" - }, - { - "name": "cloud_resource_type", - "type": "TYPE_STRING" - }, - { - "name": "usage_aggregation_method", - "type": ".google.cloud.capacityplanner.v1beta.UsageHistory.AggregationMethod" - }, - { - "name": "start_date", - "type": ".google.type.Date" - }, - { - "name": "end_date", - "type": ".google.type.Date" - } - ], - "resultType": ".google.cloud.capacityplanner.v1beta.QueryUsageHistoriesResponse", - "client": { - "shortName": "UsageServiceClient", - "fullName": "google.cloud.capacityplanner.v1beta.UsageServiceClient" - }, - "method": { - "shortName": "QueryUsageHistories", - "fullName": "google.cloud.capacityplanner.v1beta.UsageService.QueryUsageHistories", - "service": { - "shortName": "UsageService", - "fullName": "google.cloud.capacityplanner.v1beta.UsageService" - } - } - } - }, - { - "regionTag": "capacityplanner_v1beta_generated_UsageService_QueryForecasts_async", - "title": "CapacityPlanningService queryForecasts Sample", - "origin": "API_DEFINITION", - "description": " Returns a list of the forecasts that are in the parent parameter and match your specified filters.", - "canonical": true, - "file": "usage_service.query_forecasts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 113, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryForecasts", - "fullName": "google.cloud.capacityplanner.v1beta.UsageService.QueryForecasts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "machine_family", - "type": "TYPE_STRING" - }, - { - "name": "machine_shape", - "type": ".google.cloud.capacityplanner.v1beta.MachineShape" - }, - { - "name": "disk_type", - "type": "TYPE_STRING" - }, - { - "name": "confidential_mode", - "type": "TYPE_BOOL" - }, - { - "name": "gpu_type", - "type": "TYPE_STRING" - }, - { - "name": "tpu_type", - "type": "TYPE_STRING" - }, - { - "name": "cloud_resource_type", - "type": "TYPE_STRING" - }, - { - "name": "forecast_type", - "type": ".google.cloud.capacityplanner.v1beta.Forecast.ForecastType" - }, - { - "name": "prediction_interval", - "type": ".google.cloud.capacityplanner.v1beta.Forecast.PredictionInterval" - }, - { - "name": "aggregation_method", - "type": ".google.cloud.capacityplanner.v1beta.UsageHistory.AggregationMethod" - } - ], - "resultType": ".google.cloud.capacityplanner.v1beta.QueryForecastsResponse", - "client": { - "shortName": "UsageServiceClient", - "fullName": "google.cloud.capacityplanner.v1beta.UsageServiceClient" - }, - "method": { - "shortName": "QueryForecasts", - "fullName": "google.cloud.capacityplanner.v1beta.UsageService.QueryForecasts", - "service": { - "shortName": "UsageService", - "fullName": "google.cloud.capacityplanner.v1beta.UsageService" - } - } - } - }, - { - "regionTag": "capacityplanner_v1beta_generated_UsageService_QueryReservations_async", - "title": "CapacityPlanningService queryReservations Sample", - "origin": "API_DEFINITION", - "description": " Returns a list of the reservations that are in the parent parameter and match your specified filters.", - "canonical": true, - "file": "usage_service.query_reservations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 122, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryReservations", - "fullName": "google.cloud.capacityplanner.v1beta.UsageService.QueryReservations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "location_level", - "type": ".google.cloud.capacityplanner.v1beta.TimeSeries.LocationType" - }, - { - "name": "machine_family", - "type": "TYPE_STRING" - }, - { - "name": "machine_shape", - "type": ".google.cloud.capacityplanner.v1beta.MachineShape" - }, - { - "name": "gpu_type", - "type": "TYPE_STRING" - }, - { - "name": "cloud_resource_type", - "type": "TYPE_STRING" - }, - { - "name": "reservation_type", - "type": ".google.cloud.capacityplanner.v1beta.QueryReservationsRequest.ReservationType" - }, - { - "name": "share_type", - "type": ".google.cloud.capacityplanner.v1beta.QueryReservationsRequest.ShareType" - }, - { - "name": "ownership_type", - "type": ".google.cloud.capacityplanner.v1beta.QueryReservationsRequest.OwnershipType" - }, - { - "name": "reservation_data_level", - "type": ".google.cloud.capacityplanner.v1beta.QueryReservationsRequest.ReservationDataLevel" - }, - { - "name": "include_unapproved_reservations", - "type": "TYPE_BOOL" - }, - { - "name": "aggregation_method", - "type": ".google.cloud.capacityplanner.v1beta.UsageHistory.AggregationMethod" - }, - { - "name": "start_date", - "type": ".google.type.Date" - }, - { - "name": "end_date", - "type": ".google.type.Date" - } - ], - "resultType": ".google.cloud.capacityplanner.v1beta.QueryReservationsResponse", - "client": { - "shortName": "UsageServiceClient", - "fullName": "google.cloud.capacityplanner.v1beta.UsageServiceClient" - }, - "method": { - "shortName": "QueryReservations", - "fullName": "google.cloud.capacityplanner.v1beta.UsageService.QueryReservations", - "service": { - "shortName": "UsageService", - "fullName": "google.cloud.capacityplanner.v1beta.UsageService" - } - } - } - }, - { - "regionTag": "capacityplanner_v1beta_generated_UsageService_ExportUsageHistories_async", - "title": "CapacityPlanningService exportUsageHistories Sample", - "origin": "API_DEFINITION", - "description": " Exports historical usage data requested by user into either an existing Cloud Storage bucket or a BigQuery table.", - "canonical": true, - "file": "usage_service.export_usage_histories.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 117, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportUsageHistories", - "fullName": "google.cloud.capacityplanner.v1beta.UsageService.ExportUsageHistories", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "is_spot", - "type": "TYPE_BOOL" - }, - { - "name": "machine_family", - "type": "TYPE_STRING" - }, - { - "name": "machine_shape", - "type": ".google.cloud.capacityplanner.v1beta.MachineShape" - }, - { - "name": "disk_type", - "type": "TYPE_STRING" - }, - { - "name": "gpu_type", - "type": "TYPE_STRING" - }, - { - "name": "tpu_type", - "type": "TYPE_STRING" - }, - { - "name": "resource_type", - "type": "TYPE_STRING" - }, - { - "name": "usage_aggregation_method", - "type": ".google.cloud.capacityplanner.v1beta.UsageHistory.AggregationMethod" - }, - { - "name": "start_date", - "type": ".google.type.Date" - }, - { - "name": "end_date", - "type": ".google.type.Date" - }, - { - "name": "output_config", - "type": ".google.cloud.capacityplanner.v1beta.OutputConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "UsageServiceClient", - "fullName": "google.cloud.capacityplanner.v1beta.UsageServiceClient" - }, - "method": { - "shortName": "ExportUsageHistories", - "fullName": "google.cloud.capacityplanner.v1beta.UsageService.ExportUsageHistories", - "service": { - "shortName": "UsageService", - "fullName": "google.cloud.capacityplanner.v1beta.UsageService" - } - } - } - }, - { - "regionTag": "capacityplanner_v1beta_generated_UsageService_ExportForecasts_async", - "title": "CapacityPlanningService exportForecasts Sample", - "origin": "API_DEFINITION", - "description": " Exports forecasted usage data requested by user into either an existing Cloud Storage bucket or a BigQuery table.", - "canonical": true, - "file": "usage_service.export_forecasts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 116, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportForecasts", - "fullName": "google.cloud.capacityplanner.v1beta.UsageService.ExportForecasts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "machine_family", - "type": "TYPE_STRING" - }, - { - "name": "machine_shape", - "type": ".google.cloud.capacityplanner.v1beta.MachineShape" - }, - { - "name": "disk_type", - "type": "TYPE_STRING" - }, - { - "name": "gpu_type", - "type": "TYPE_STRING" - }, - { - "name": "tpu_type", - "type": "TYPE_STRING" - }, - { - "name": "resource_type", - "type": "TYPE_STRING" - }, - { - "name": "prediction_interval", - "type": ".google.cloud.capacityplanner.v1beta.Forecast.PredictionInterval" - }, - { - "name": "aggregation_method", - "type": ".google.cloud.capacityplanner.v1beta.UsageHistory.AggregationMethod" - }, - { - "name": "start_date", - "type": ".google.type.Date" - }, - { - "name": "end_date", - "type": ".google.type.Date" - }, - { - "name": "output_config", - "type": ".google.cloud.capacityplanner.v1beta.OutputConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "UsageServiceClient", - "fullName": "google.cloud.capacityplanner.v1beta.UsageServiceClient" - }, - "method": { - "shortName": "ExportForecasts", - "fullName": "google.cloud.capacityplanner.v1beta.UsageService.ExportForecasts", - "service": { - "shortName": "UsageService", - "fullName": "google.cloud.capacityplanner.v1beta.UsageService" - } - } - } - }, - { - "regionTag": "capacityplanner_v1beta_generated_UsageService_ExportReservationsUsage_async", - "title": "CapacityPlanningService exportReservationsUsage Sample", - "origin": "API_DEFINITION", - "description": " Exports reservations usage data requested by user into either an existing Cloud Storage bucket or a new/existing BigQuery table.", - "canonical": true, - "file": "usage_service.export_reservations_usage.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 109, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportReservationsUsage", - "fullName": "google.cloud.capacityplanner.v1beta.UsageService.ExportReservationsUsage", - "async": true, - "parameters": [ - { - "name": "machine_family", - "type": "TYPE_STRING" - }, - { - "name": "machine_shape", - "type": ".google.cloud.capacityplanner.v1beta.MachineShape" - }, - { - "name": "gpu_type", - "type": "TYPE_STRING" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "location_level", - "type": ".google.cloud.capacityplanner.v1beta.TimeSeries.LocationType" - }, - { - "name": "cloud_resource_type", - "type": "TYPE_STRING" - }, - { - "name": "usage_aggregation_method", - "type": ".google.cloud.capacityplanner.v1beta.UsageHistory.AggregationMethod" - }, - { - "name": "share_type", - "type": ".google.cloud.capacityplanner.v1beta.ExportReservationsUsageRequest.ShareType" - }, - { - "name": "start_date", - "type": ".google.type.Date" - }, - { - "name": "end_date", - "type": ".google.type.Date" - }, - { - "name": "output_config", - "type": ".google.cloud.capacityplanner.v1beta.OutputConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "UsageServiceClient", - "fullName": "google.cloud.capacityplanner.v1beta.UsageServiceClient" - }, - "method": { - "shortName": "ExportReservationsUsage", - "fullName": "google.cloud.capacityplanner.v1beta.UsageService.ExportReservationsUsage", - "service": { - "shortName": "UsageService", - "fullName": "google.cloud.capacityplanner.v1beta.UsageService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-certificatemanager/samples/generated/v1/snippet_metadata_google.cloud.certificatemanager.v1.json b/packages/google-cloud-certificatemanager/samples/generated/v1/snippet_metadata_google.cloud.certificatemanager.v1.json deleted file mode 100644 index 9738c6b61315..000000000000 --- a/packages/google-cloud-certificatemanager/samples/generated/v1/snippet_metadata_google.cloud.certificatemanager.v1.json +++ /dev/null @@ -1,1343 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-certificatemanager", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.certificatemanager.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "certificatemanager_v1_generated_CertificateManager_ListCertificates_async", - "title": "CertificateManager listCertificates Sample", - "origin": "API_DEFINITION", - "description": " Lists Certificates in a given project and location.", - "canonical": true, - "file": "certificate_manager.list_certificates.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCertificates", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager.ListCertificates", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.certificatemanager.v1.ListCertificatesResponse", - "client": { - "shortName": "CertificateManagerClient", - "fullName": "google.cloud.certificatemanager.v1.CertificateManagerClient" - }, - "method": { - "shortName": "ListCertificates", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager.ListCertificates", - "service": { - "shortName": "CertificateManager", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager" - } - } - } - }, - { - "regionTag": "certificatemanager_v1_generated_CertificateManager_GetCertificate_async", - "title": "CertificateManager getCertificate Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Certificate.", - "canonical": true, - "file": "certificate_manager.get_certificate.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCertificate", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager.GetCertificate", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.certificatemanager.v1.Certificate", - "client": { - "shortName": "CertificateManagerClient", - "fullName": "google.cloud.certificatemanager.v1.CertificateManagerClient" - }, - "method": { - "shortName": "GetCertificate", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager.GetCertificate", - "service": { - "shortName": "CertificateManager", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager" - } - } - } - }, - { - "regionTag": "certificatemanager_v1_generated_CertificateManager_CreateCertificate_async", - "title": "CertificateManager createCertificate Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Certificate in a given project and location.", - "canonical": true, - "file": "certificate_manager.create_certificate.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCertificate", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager.CreateCertificate", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "certificate_id", - "type": "TYPE_STRING" - }, - { - "name": "certificate", - "type": ".google.cloud.certificatemanager.v1.Certificate" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CertificateManagerClient", - "fullName": "google.cloud.certificatemanager.v1.CertificateManagerClient" - }, - "method": { - "shortName": "CreateCertificate", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager.CreateCertificate", - "service": { - "shortName": "CertificateManager", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager" - } - } - } - }, - { - "regionTag": "certificatemanager_v1_generated_CertificateManager_UpdateCertificate_async", - "title": "CertificateManager updateCertificate Sample", - "origin": "API_DEFINITION", - "description": " Updates a Certificate.", - "canonical": true, - "file": "certificate_manager.update_certificate.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCertificate", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager.UpdateCertificate", - "async": true, - "parameters": [ - { - "name": "certificate", - "type": ".google.cloud.certificatemanager.v1.Certificate" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CertificateManagerClient", - "fullName": "google.cloud.certificatemanager.v1.CertificateManagerClient" - }, - "method": { - "shortName": "UpdateCertificate", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager.UpdateCertificate", - "service": { - "shortName": "CertificateManager", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager" - } - } - } - }, - { - "regionTag": "certificatemanager_v1_generated_CertificateManager_DeleteCertificate_async", - "title": "CertificateManager deleteCertificate Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Certificate.", - "canonical": true, - "file": "certificate_manager.delete_certificate.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCertificate", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager.DeleteCertificate", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CertificateManagerClient", - "fullName": "google.cloud.certificatemanager.v1.CertificateManagerClient" - }, - "method": { - "shortName": "DeleteCertificate", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager.DeleteCertificate", - "service": { - "shortName": "CertificateManager", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager" - } - } - } - }, - { - "regionTag": "certificatemanager_v1_generated_CertificateManager_ListCertificateMaps_async", - "title": "CertificateManager listCertificateMaps Sample", - "origin": "API_DEFINITION", - "description": " Lists CertificateMaps in a given project and location.", - "canonical": true, - "file": "certificate_manager.list_certificate_maps.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCertificateMaps", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager.ListCertificateMaps", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.certificatemanager.v1.ListCertificateMapsResponse", - "client": { - "shortName": "CertificateManagerClient", - "fullName": "google.cloud.certificatemanager.v1.CertificateManagerClient" - }, - "method": { - "shortName": "ListCertificateMaps", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager.ListCertificateMaps", - "service": { - "shortName": "CertificateManager", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager" - } - } - } - }, - { - "regionTag": "certificatemanager_v1_generated_CertificateManager_GetCertificateMap_async", - "title": "CertificateManager getCertificateMap Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single CertificateMap.", - "canonical": true, - "file": "certificate_manager.get_certificate_map.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCertificateMap", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager.GetCertificateMap", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.certificatemanager.v1.CertificateMap", - "client": { - "shortName": "CertificateManagerClient", - "fullName": "google.cloud.certificatemanager.v1.CertificateManagerClient" - }, - "method": { - "shortName": "GetCertificateMap", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager.GetCertificateMap", - "service": { - "shortName": "CertificateManager", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager" - } - } - } - }, - { - "regionTag": "certificatemanager_v1_generated_CertificateManager_CreateCertificateMap_async", - "title": "CertificateManager createCertificateMap Sample", - "origin": "API_DEFINITION", - "description": " Creates a new CertificateMap in a given project and location.", - "canonical": true, - "file": "certificate_manager.create_certificate_map.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCertificateMap", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager.CreateCertificateMap", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "certificate_map_id", - "type": "TYPE_STRING" - }, - { - "name": "certificate_map", - "type": ".google.cloud.certificatemanager.v1.CertificateMap" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CertificateManagerClient", - "fullName": "google.cloud.certificatemanager.v1.CertificateManagerClient" - }, - "method": { - "shortName": "CreateCertificateMap", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager.CreateCertificateMap", - "service": { - "shortName": "CertificateManager", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager" - } - } - } - }, - { - "regionTag": "certificatemanager_v1_generated_CertificateManager_UpdateCertificateMap_async", - "title": "CertificateManager updateCertificateMap Sample", - "origin": "API_DEFINITION", - "description": " Updates a CertificateMap.", - "canonical": true, - "file": "certificate_manager.update_certificate_map.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCertificateMap", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager.UpdateCertificateMap", - "async": true, - "parameters": [ - { - "name": "certificate_map", - "type": ".google.cloud.certificatemanager.v1.CertificateMap" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CertificateManagerClient", - "fullName": "google.cloud.certificatemanager.v1.CertificateManagerClient" - }, - "method": { - "shortName": "UpdateCertificateMap", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager.UpdateCertificateMap", - "service": { - "shortName": "CertificateManager", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager" - } - } - } - }, - { - "regionTag": "certificatemanager_v1_generated_CertificateManager_DeleteCertificateMap_async", - "title": "CertificateManager deleteCertificateMap Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single CertificateMap. A Certificate Map can't be deleted if it contains Certificate Map Entries. Remove all the entries from the map before calling this method.", - "canonical": true, - "file": "certificate_manager.delete_certificate_map.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCertificateMap", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager.DeleteCertificateMap", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CertificateManagerClient", - "fullName": "google.cloud.certificatemanager.v1.CertificateManagerClient" - }, - "method": { - "shortName": "DeleteCertificateMap", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager.DeleteCertificateMap", - "service": { - "shortName": "CertificateManager", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager" - } - } - } - }, - { - "regionTag": "certificatemanager_v1_generated_CertificateManager_ListCertificateMapEntries_async", - "title": "CertificateManager listCertificateMapEntries Sample", - "origin": "API_DEFINITION", - "description": " Lists CertificateMapEntries in a given project and location.", - "canonical": true, - "file": "certificate_manager.list_certificate_map_entries.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCertificateMapEntries", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager.ListCertificateMapEntries", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.certificatemanager.v1.ListCertificateMapEntriesResponse", - "client": { - "shortName": "CertificateManagerClient", - "fullName": "google.cloud.certificatemanager.v1.CertificateManagerClient" - }, - "method": { - "shortName": "ListCertificateMapEntries", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager.ListCertificateMapEntries", - "service": { - "shortName": "CertificateManager", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager" - } - } - } - }, - { - "regionTag": "certificatemanager_v1_generated_CertificateManager_GetCertificateMapEntry_async", - "title": "CertificateManager getCertificateMapEntry Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single CertificateMapEntry.", - "canonical": true, - "file": "certificate_manager.get_certificate_map_entry.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCertificateMapEntry", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager.GetCertificateMapEntry", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.certificatemanager.v1.CertificateMapEntry", - "client": { - "shortName": "CertificateManagerClient", - "fullName": "google.cloud.certificatemanager.v1.CertificateManagerClient" - }, - "method": { - "shortName": "GetCertificateMapEntry", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager.GetCertificateMapEntry", - "service": { - "shortName": "CertificateManager", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager" - } - } - } - }, - { - "regionTag": "certificatemanager_v1_generated_CertificateManager_CreateCertificateMapEntry_async", - "title": "CertificateManager createCertificateMapEntry Sample", - "origin": "API_DEFINITION", - "description": " Creates a new CertificateMapEntry in a given project and location.", - "canonical": true, - "file": "certificate_manager.create_certificate_map_entry.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCertificateMapEntry", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager.CreateCertificateMapEntry", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "certificate_map_entry_id", - "type": "TYPE_STRING" - }, - { - "name": "certificate_map_entry", - "type": ".google.cloud.certificatemanager.v1.CertificateMapEntry" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CertificateManagerClient", - "fullName": "google.cloud.certificatemanager.v1.CertificateManagerClient" - }, - "method": { - "shortName": "CreateCertificateMapEntry", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager.CreateCertificateMapEntry", - "service": { - "shortName": "CertificateManager", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager" - } - } - } - }, - { - "regionTag": "certificatemanager_v1_generated_CertificateManager_UpdateCertificateMapEntry_async", - "title": "CertificateManager updateCertificateMapEntry Sample", - "origin": "API_DEFINITION", - "description": " Updates a CertificateMapEntry.", - "canonical": true, - "file": "certificate_manager.update_certificate_map_entry.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCertificateMapEntry", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager.UpdateCertificateMapEntry", - "async": true, - "parameters": [ - { - "name": "certificate_map_entry", - "type": ".google.cloud.certificatemanager.v1.CertificateMapEntry" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CertificateManagerClient", - "fullName": "google.cloud.certificatemanager.v1.CertificateManagerClient" - }, - "method": { - "shortName": "UpdateCertificateMapEntry", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager.UpdateCertificateMapEntry", - "service": { - "shortName": "CertificateManager", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager" - } - } - } - }, - { - "regionTag": "certificatemanager_v1_generated_CertificateManager_DeleteCertificateMapEntry_async", - "title": "CertificateManager deleteCertificateMapEntry Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single CertificateMapEntry.", - "canonical": true, - "file": "certificate_manager.delete_certificate_map_entry.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCertificateMapEntry", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager.DeleteCertificateMapEntry", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CertificateManagerClient", - "fullName": "google.cloud.certificatemanager.v1.CertificateManagerClient" - }, - "method": { - "shortName": "DeleteCertificateMapEntry", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager.DeleteCertificateMapEntry", - "service": { - "shortName": "CertificateManager", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager" - } - } - } - }, - { - "regionTag": "certificatemanager_v1_generated_CertificateManager_ListDnsAuthorizations_async", - "title": "CertificateManager listDnsAuthorizations Sample", - "origin": "API_DEFINITION", - "description": " Lists DnsAuthorizations in a given project and location.", - "canonical": true, - "file": "certificate_manager.list_dns_authorizations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDnsAuthorizations", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager.ListDnsAuthorizations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.certificatemanager.v1.ListDnsAuthorizationsResponse", - "client": { - "shortName": "CertificateManagerClient", - "fullName": "google.cloud.certificatemanager.v1.CertificateManagerClient" - }, - "method": { - "shortName": "ListDnsAuthorizations", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager.ListDnsAuthorizations", - "service": { - "shortName": "CertificateManager", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager" - } - } - } - }, - { - "regionTag": "certificatemanager_v1_generated_CertificateManager_GetDnsAuthorization_async", - "title": "CertificateManager getDnsAuthorization Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single DnsAuthorization.", - "canonical": true, - "file": "certificate_manager.get_dns_authorization.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDnsAuthorization", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager.GetDnsAuthorization", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.certificatemanager.v1.DnsAuthorization", - "client": { - "shortName": "CertificateManagerClient", - "fullName": "google.cloud.certificatemanager.v1.CertificateManagerClient" - }, - "method": { - "shortName": "GetDnsAuthorization", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager.GetDnsAuthorization", - "service": { - "shortName": "CertificateManager", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager" - } - } - } - }, - { - "regionTag": "certificatemanager_v1_generated_CertificateManager_CreateDnsAuthorization_async", - "title": "CertificateManager createDnsAuthorization Sample", - "origin": "API_DEFINITION", - "description": " Creates a new DnsAuthorization in a given project and location.", - "canonical": true, - "file": "certificate_manager.create_dns_authorization.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDnsAuthorization", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager.CreateDnsAuthorization", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "dns_authorization_id", - "type": "TYPE_STRING" - }, - { - "name": "dns_authorization", - "type": ".google.cloud.certificatemanager.v1.DnsAuthorization" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CertificateManagerClient", - "fullName": "google.cloud.certificatemanager.v1.CertificateManagerClient" - }, - "method": { - "shortName": "CreateDnsAuthorization", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager.CreateDnsAuthorization", - "service": { - "shortName": "CertificateManager", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager" - } - } - } - }, - { - "regionTag": "certificatemanager_v1_generated_CertificateManager_UpdateDnsAuthorization_async", - "title": "CertificateManager updateDnsAuthorization Sample", - "origin": "API_DEFINITION", - "description": " Updates a DnsAuthorization.", - "canonical": true, - "file": "certificate_manager.update_dns_authorization.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDnsAuthorization", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager.UpdateDnsAuthorization", - "async": true, - "parameters": [ - { - "name": "dns_authorization", - "type": ".google.cloud.certificatemanager.v1.DnsAuthorization" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CertificateManagerClient", - "fullName": "google.cloud.certificatemanager.v1.CertificateManagerClient" - }, - "method": { - "shortName": "UpdateDnsAuthorization", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager.UpdateDnsAuthorization", - "service": { - "shortName": "CertificateManager", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager" - } - } - } - }, - { - "regionTag": "certificatemanager_v1_generated_CertificateManager_DeleteDnsAuthorization_async", - "title": "CertificateManager deleteDnsAuthorization Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single DnsAuthorization.", - "canonical": true, - "file": "certificate_manager.delete_dns_authorization.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDnsAuthorization", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager.DeleteDnsAuthorization", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CertificateManagerClient", - "fullName": "google.cloud.certificatemanager.v1.CertificateManagerClient" - }, - "method": { - "shortName": "DeleteDnsAuthorization", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager.DeleteDnsAuthorization", - "service": { - "shortName": "CertificateManager", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager" - } - } - } - }, - { - "regionTag": "certificatemanager_v1_generated_CertificateManager_ListCertificateIssuanceConfigs_async", - "title": "CertificateManager listCertificateIssuanceConfigs Sample", - "origin": "API_DEFINITION", - "description": " Lists CertificateIssuanceConfigs in a given project and location.", - "canonical": true, - "file": "certificate_manager.list_certificate_issuance_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCertificateIssuanceConfigs", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager.ListCertificateIssuanceConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.certificatemanager.v1.ListCertificateIssuanceConfigsResponse", - "client": { - "shortName": "CertificateManagerClient", - "fullName": "google.cloud.certificatemanager.v1.CertificateManagerClient" - }, - "method": { - "shortName": "ListCertificateIssuanceConfigs", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager.ListCertificateIssuanceConfigs", - "service": { - "shortName": "CertificateManager", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager" - } - } - } - }, - { - "regionTag": "certificatemanager_v1_generated_CertificateManager_GetCertificateIssuanceConfig_async", - "title": "CertificateManager getCertificateIssuanceConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single CertificateIssuanceConfig.", - "canonical": true, - "file": "certificate_manager.get_certificate_issuance_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCertificateIssuanceConfig", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager.GetCertificateIssuanceConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.certificatemanager.v1.CertificateIssuanceConfig", - "client": { - "shortName": "CertificateManagerClient", - "fullName": "google.cloud.certificatemanager.v1.CertificateManagerClient" - }, - "method": { - "shortName": "GetCertificateIssuanceConfig", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager.GetCertificateIssuanceConfig", - "service": { - "shortName": "CertificateManager", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager" - } - } - } - }, - { - "regionTag": "certificatemanager_v1_generated_CertificateManager_CreateCertificateIssuanceConfig_async", - "title": "CertificateManager createCertificateIssuanceConfig Sample", - "origin": "API_DEFINITION", - "description": " Creates a new CertificateIssuanceConfig in a given project and location.", - "canonical": true, - "file": "certificate_manager.create_certificate_issuance_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCertificateIssuanceConfig", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager.CreateCertificateIssuanceConfig", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "certificate_issuance_config_id", - "type": "TYPE_STRING" - }, - { - "name": "certificate_issuance_config", - "type": ".google.cloud.certificatemanager.v1.CertificateIssuanceConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CertificateManagerClient", - "fullName": "google.cloud.certificatemanager.v1.CertificateManagerClient" - }, - "method": { - "shortName": "CreateCertificateIssuanceConfig", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager.CreateCertificateIssuanceConfig", - "service": { - "shortName": "CertificateManager", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager" - } - } - } - }, - { - "regionTag": "certificatemanager_v1_generated_CertificateManager_DeleteCertificateIssuanceConfig_async", - "title": "CertificateManager deleteCertificateIssuanceConfig Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single CertificateIssuanceConfig.", - "canonical": true, - "file": "certificate_manager.delete_certificate_issuance_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCertificateIssuanceConfig", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager.DeleteCertificateIssuanceConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CertificateManagerClient", - "fullName": "google.cloud.certificatemanager.v1.CertificateManagerClient" - }, - "method": { - "shortName": "DeleteCertificateIssuanceConfig", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager.DeleteCertificateIssuanceConfig", - "service": { - "shortName": "CertificateManager", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager" - } - } - } - }, - { - "regionTag": "certificatemanager_v1_generated_CertificateManager_ListTrustConfigs_async", - "title": "CertificateManager listTrustConfigs Sample", - "origin": "API_DEFINITION", - "description": " Lists TrustConfigs in a given project and location.", - "canonical": true, - "file": "certificate_manager.list_trust_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTrustConfigs", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager.ListTrustConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.certificatemanager.v1.ListTrustConfigsResponse", - "client": { - "shortName": "CertificateManagerClient", - "fullName": "google.cloud.certificatemanager.v1.CertificateManagerClient" - }, - "method": { - "shortName": "ListTrustConfigs", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager.ListTrustConfigs", - "service": { - "shortName": "CertificateManager", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager" - } - } - } - }, - { - "regionTag": "certificatemanager_v1_generated_CertificateManager_GetTrustConfig_async", - "title": "CertificateManager getTrustConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single TrustConfig.", - "canonical": true, - "file": "certificate_manager.get_trust_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTrustConfig", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager.GetTrustConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.certificatemanager.v1.TrustConfig", - "client": { - "shortName": "CertificateManagerClient", - "fullName": "google.cloud.certificatemanager.v1.CertificateManagerClient" - }, - "method": { - "shortName": "GetTrustConfig", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager.GetTrustConfig", - "service": { - "shortName": "CertificateManager", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager" - } - } - } - }, - { - "regionTag": "certificatemanager_v1_generated_CertificateManager_CreateTrustConfig_async", - "title": "CertificateManager createTrustConfig Sample", - "origin": "API_DEFINITION", - "description": " Creates a new TrustConfig in a given project and location.", - "canonical": true, - "file": "certificate_manager.create_trust_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTrustConfig", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager.CreateTrustConfig", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "trust_config_id", - "type": "TYPE_STRING" - }, - { - "name": "trust_config", - "type": ".google.cloud.certificatemanager.v1.TrustConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CertificateManagerClient", - "fullName": "google.cloud.certificatemanager.v1.CertificateManagerClient" - }, - "method": { - "shortName": "CreateTrustConfig", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager.CreateTrustConfig", - "service": { - "shortName": "CertificateManager", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager" - } - } - } - }, - { - "regionTag": "certificatemanager_v1_generated_CertificateManager_UpdateTrustConfig_async", - "title": "CertificateManager updateTrustConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates a TrustConfig.", - "canonical": true, - "file": "certificate_manager.update_trust_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTrustConfig", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager.UpdateTrustConfig", - "async": true, - "parameters": [ - { - "name": "trust_config", - "type": ".google.cloud.certificatemanager.v1.TrustConfig" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CertificateManagerClient", - "fullName": "google.cloud.certificatemanager.v1.CertificateManagerClient" - }, - "method": { - "shortName": "UpdateTrustConfig", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager.UpdateTrustConfig", - "service": { - "shortName": "CertificateManager", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager" - } - } - } - }, - { - "regionTag": "certificatemanager_v1_generated_CertificateManager_DeleteTrustConfig_async", - "title": "CertificateManager deleteTrustConfig Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single TrustConfig.", - "canonical": true, - "file": "certificate_manager.delete_trust_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTrustConfig", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager.DeleteTrustConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CertificateManagerClient", - "fullName": "google.cloud.certificatemanager.v1.CertificateManagerClient" - }, - "method": { - "shortName": "DeleteTrustConfig", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager.DeleteTrustConfig", - "service": { - "shortName": "CertificateManager", - "fullName": "google.cloud.certificatemanager.v1.CertificateManager" - } - } - } - } - ] -} diff --git a/packages/google-cloud-ces/samples/generated/v1/snippet_metadata_google.cloud.ces.v1.json b/packages/google-cloud-ces/samples/generated/v1/snippet_metadata_google.cloud.ces.v1.json deleted file mode 100644 index a639897886b8..000000000000 --- a/packages/google-cloud-ces/samples/generated/v1/snippet_metadata_google.cloud.ces.v1.json +++ /dev/null @@ -1,2619 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-ces", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.ces.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "ces_v1_generated_AgentService_ListApps_async", - "title": "AgentService listApps Sample", - "origin": "API_DEFINITION", - "description": " Lists apps in the given project and location.", - "canonical": true, - "file": "agent_service.list_apps.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListApps", - "fullName": "google.cloud.ces.v1.AgentService.ListApps", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.ces.v1.ListAppsResponse", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1.AgentServiceClient" - }, - "method": { - "shortName": "ListApps", - "fullName": "google.cloud.ces.v1.AgentService.ListApps", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1_generated_AgentService_GetApp_async", - "title": "AgentService getApp Sample", - "origin": "API_DEFINITION", - "description": " Gets details of the specified app.", - "canonical": true, - "file": "agent_service.get_app.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetApp", - "fullName": "google.cloud.ces.v1.AgentService.GetApp", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.ces.v1.App", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1.AgentServiceClient" - }, - "method": { - "shortName": "GetApp", - "fullName": "google.cloud.ces.v1.AgentService.GetApp", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1_generated_AgentService_CreateApp_async", - "title": "AgentService createApp Sample", - "origin": "API_DEFINITION", - "description": " Creates a new app in the given project and location.", - "canonical": true, - "file": "agent_service.create_app.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateApp", - "fullName": "google.cloud.ces.v1.AgentService.CreateApp", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "app_id", - "type": "TYPE_STRING" - }, - { - "name": "app", - "type": ".google.cloud.ces.v1.App" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1.AgentServiceClient" - }, - "method": { - "shortName": "CreateApp", - "fullName": "google.cloud.ces.v1.AgentService.CreateApp", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1_generated_AgentService_UpdateApp_async", - "title": "AgentService updateApp Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified app.", - "canonical": true, - "file": "agent_service.update_app.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateApp", - "fullName": "google.cloud.ces.v1.AgentService.UpdateApp", - "async": true, - "parameters": [ - { - "name": "app", - "type": ".google.cloud.ces.v1.App" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.ces.v1.App", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1.AgentServiceClient" - }, - "method": { - "shortName": "UpdateApp", - "fullName": "google.cloud.ces.v1.AgentService.UpdateApp", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1_generated_AgentService_DeleteApp_async", - "title": "AgentService deleteApp Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified app.", - "canonical": true, - "file": "agent_service.delete_app.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteApp", - "fullName": "google.cloud.ces.v1.AgentService.DeleteApp", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1.AgentServiceClient" - }, - "method": { - "shortName": "DeleteApp", - "fullName": "google.cloud.ces.v1.AgentService.DeleteApp", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1_generated_AgentService_ExportApp_async", - "title": "AgentService exportApp Sample", - "origin": "API_DEFINITION", - "description": " Exports the specified app.", - "canonical": true, - "file": "agent_service.export_app.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportApp", - "fullName": "google.cloud.ces.v1.AgentService.ExportApp", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "export_format", - "type": ".google.cloud.ces.v1.ExportAppRequest.ExportFormat" - }, - { - "name": "gcs_uri", - "type": "TYPE_STRING" - }, - { - "name": "app_version", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1.AgentServiceClient" - }, - "method": { - "shortName": "ExportApp", - "fullName": "google.cloud.ces.v1.AgentService.ExportApp", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1_generated_AgentService_ImportApp_async", - "title": "AgentService importApp Sample", - "origin": "API_DEFINITION", - "description": " Imports the specified app.", - "canonical": true, - "file": "agent_service.import_app.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 94, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportApp", - "fullName": "google.cloud.ces.v1.AgentService.ImportApp", - "async": true, - "parameters": [ - { - "name": "gcs_uri", - "type": "TYPE_STRING" - }, - { - "name": "app_content", - "type": "TYPE_BYTES" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "display_name", - "type": "TYPE_STRING" - }, - { - "name": "app_id", - "type": "TYPE_STRING" - }, - { - "name": "import_options", - "type": ".google.cloud.ces.v1.ImportAppRequest.ImportOptions" - }, - { - "name": "ignore_app_lock", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1.AgentServiceClient" - }, - "method": { - "shortName": "ImportApp", - "fullName": "google.cloud.ces.v1.AgentService.ImportApp", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1_generated_AgentService_ListAgents_async", - "title": "AgentService listAgents Sample", - "origin": "API_DEFINITION", - "description": " Lists agents in the given app.", - "canonical": true, - "file": "agent_service.list_agents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAgents", - "fullName": "google.cloud.ces.v1.AgentService.ListAgents", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.ces.v1.ListAgentsResponse", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1.AgentServiceClient" - }, - "method": { - "shortName": "ListAgents", - "fullName": "google.cloud.ces.v1.AgentService.ListAgents", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1_generated_AgentService_GetAgent_async", - "title": "AgentService getAgent Sample", - "origin": "API_DEFINITION", - "description": " Gets details of the specified agent.", - "canonical": true, - "file": "agent_service.get_agent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAgent", - "fullName": "google.cloud.ces.v1.AgentService.GetAgent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.ces.v1.Agent", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1.AgentServiceClient" - }, - "method": { - "shortName": "GetAgent", - "fullName": "google.cloud.ces.v1.AgentService.GetAgent", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1_generated_AgentService_CreateAgent_async", - "title": "AgentService createAgent Sample", - "origin": "API_DEFINITION", - "description": " Creates a new agent in the given app.", - "canonical": true, - "file": "agent_service.create_agent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAgent", - "fullName": "google.cloud.ces.v1.AgentService.CreateAgent", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "agent_id", - "type": "TYPE_STRING" - }, - { - "name": "agent", - "type": ".google.cloud.ces.v1.Agent" - } - ], - "resultType": ".google.cloud.ces.v1.Agent", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1.AgentServiceClient" - }, - "method": { - "shortName": "CreateAgent", - "fullName": "google.cloud.ces.v1.AgentService.CreateAgent", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1_generated_AgentService_UpdateAgent_async", - "title": "AgentService updateAgent Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified agent.", - "canonical": true, - "file": "agent_service.update_agent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAgent", - "fullName": "google.cloud.ces.v1.AgentService.UpdateAgent", - "async": true, - "parameters": [ - { - "name": "agent", - "type": ".google.cloud.ces.v1.Agent" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.ces.v1.Agent", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1.AgentServiceClient" - }, - "method": { - "shortName": "UpdateAgent", - "fullName": "google.cloud.ces.v1.AgentService.UpdateAgent", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1_generated_AgentService_DeleteAgent_async", - "title": "AgentService deleteAgent Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified agent.", - "canonical": true, - "file": "agent_service.delete_agent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAgent", - "fullName": "google.cloud.ces.v1.AgentService.DeleteAgent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1.AgentServiceClient" - }, - "method": { - "shortName": "DeleteAgent", - "fullName": "google.cloud.ces.v1.AgentService.DeleteAgent", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1_generated_AgentService_ListExamples_async", - "title": "AgentService listExamples Sample", - "origin": "API_DEFINITION", - "description": " Lists examples in the given app.", - "canonical": true, - "file": "agent_service.list_examples.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListExamples", - "fullName": "google.cloud.ces.v1.AgentService.ListExamples", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.ces.v1.ListExamplesResponse", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1.AgentServiceClient" - }, - "method": { - "shortName": "ListExamples", - "fullName": "google.cloud.ces.v1.AgentService.ListExamples", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1_generated_AgentService_GetExample_async", - "title": "AgentService getExample Sample", - "origin": "API_DEFINITION", - "description": " Gets details of the specified example.", - "canonical": true, - "file": "agent_service.get_example.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetExample", - "fullName": "google.cloud.ces.v1.AgentService.GetExample", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.ces.v1.Example", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1.AgentServiceClient" - }, - "method": { - "shortName": "GetExample", - "fullName": "google.cloud.ces.v1.AgentService.GetExample", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1_generated_AgentService_CreateExample_async", - "title": "AgentService createExample Sample", - "origin": "API_DEFINITION", - "description": " Creates a new example in the given app.", - "canonical": true, - "file": "agent_service.create_example.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateExample", - "fullName": "google.cloud.ces.v1.AgentService.CreateExample", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "example_id", - "type": "TYPE_STRING" - }, - { - "name": "example", - "type": ".google.cloud.ces.v1.Example" - } - ], - "resultType": ".google.cloud.ces.v1.Example", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1.AgentServiceClient" - }, - "method": { - "shortName": "CreateExample", - "fullName": "google.cloud.ces.v1.AgentService.CreateExample", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1_generated_AgentService_UpdateExample_async", - "title": "AgentService updateExample Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified example.", - "canonical": true, - "file": "agent_service.update_example.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateExample", - "fullName": "google.cloud.ces.v1.AgentService.UpdateExample", - "async": true, - "parameters": [ - { - "name": "example", - "type": ".google.cloud.ces.v1.Example" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.ces.v1.Example", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1.AgentServiceClient" - }, - "method": { - "shortName": "UpdateExample", - "fullName": "google.cloud.ces.v1.AgentService.UpdateExample", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1_generated_AgentService_DeleteExample_async", - "title": "AgentService deleteExample Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified example.", - "canonical": true, - "file": "agent_service.delete_example.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteExample", - "fullName": "google.cloud.ces.v1.AgentService.DeleteExample", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1.AgentServiceClient" - }, - "method": { - "shortName": "DeleteExample", - "fullName": "google.cloud.ces.v1.AgentService.DeleteExample", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1_generated_AgentService_ListTools_async", - "title": "AgentService listTools Sample", - "origin": "API_DEFINITION", - "description": " Lists tools in the given app.", - "canonical": true, - "file": "agent_service.list_tools.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTools", - "fullName": "google.cloud.ces.v1.AgentService.ListTools", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.ces.v1.ListToolsResponse", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1.AgentServiceClient" - }, - "method": { - "shortName": "ListTools", - "fullName": "google.cloud.ces.v1.AgentService.ListTools", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1_generated_AgentService_GetTool_async", - "title": "AgentService getTool Sample", - "origin": "API_DEFINITION", - "description": " Gets details of the specified tool.", - "canonical": true, - "file": "agent_service.get_tool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTool", - "fullName": "google.cloud.ces.v1.AgentService.GetTool", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.ces.v1.Tool", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1.AgentServiceClient" - }, - "method": { - "shortName": "GetTool", - "fullName": "google.cloud.ces.v1.AgentService.GetTool", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1_generated_AgentService_ListConversations_async", - "title": "AgentService listConversations Sample", - "origin": "API_DEFINITION", - "description": " Lists conversations in the given app.", - "canonical": true, - "file": "agent_service.list_conversations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListConversations", - "fullName": "google.cloud.ces.v1.AgentService.ListConversations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "source", - "type": ".google.cloud.ces.v1.Conversation.Source" - }, - { - "name": "sources", - "type": "TYPE_ENUM[]" - } - ], - "resultType": ".google.cloud.ces.v1.ListConversationsResponse", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1.AgentServiceClient" - }, - "method": { - "shortName": "ListConversations", - "fullName": "google.cloud.ces.v1.AgentService.ListConversations", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1_generated_AgentService_GetConversation_async", - "title": "AgentService getConversation Sample", - "origin": "API_DEFINITION", - "description": " Gets details of the specified conversation.", - "canonical": true, - "file": "agent_service.get_conversation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetConversation", - "fullName": "google.cloud.ces.v1.AgentService.GetConversation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "source", - "type": ".google.cloud.ces.v1.Conversation.Source" - } - ], - "resultType": ".google.cloud.ces.v1.Conversation", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1.AgentServiceClient" - }, - "method": { - "shortName": "GetConversation", - "fullName": "google.cloud.ces.v1.AgentService.GetConversation", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1_generated_AgentService_DeleteConversation_async", - "title": "AgentService deleteConversation Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified conversation.", - "canonical": true, - "file": "agent_service.delete_conversation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteConversation", - "fullName": "google.cloud.ces.v1.AgentService.DeleteConversation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "source", - "type": ".google.cloud.ces.v1.Conversation.Source" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1.AgentServiceClient" - }, - "method": { - "shortName": "DeleteConversation", - "fullName": "google.cloud.ces.v1.AgentService.DeleteConversation", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1_generated_AgentService_BatchDeleteConversations_async", - "title": "AgentService batchDeleteConversations Sample", - "origin": "API_DEFINITION", - "description": " Batch deletes the specified conversations.", - "canonical": true, - "file": "agent_service.batch_delete_conversations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchDeleteConversations", - "fullName": "google.cloud.ces.v1.AgentService.BatchDeleteConversations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "conversations", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1.AgentServiceClient" - }, - "method": { - "shortName": "BatchDeleteConversations", - "fullName": "google.cloud.ces.v1.AgentService.BatchDeleteConversations", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1_generated_AgentService_CreateTool_async", - "title": "AgentService createTool Sample", - "origin": "API_DEFINITION", - "description": " Creates a new tool in the given app.", - "canonical": true, - "file": "agent_service.create_tool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTool", - "fullName": "google.cloud.ces.v1.AgentService.CreateTool", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "tool_id", - "type": "TYPE_STRING" - }, - { - "name": "tool", - "type": ".google.cloud.ces.v1.Tool" - } - ], - "resultType": ".google.cloud.ces.v1.Tool", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1.AgentServiceClient" - }, - "method": { - "shortName": "CreateTool", - "fullName": "google.cloud.ces.v1.AgentService.CreateTool", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1_generated_AgentService_UpdateTool_async", - "title": "AgentService updateTool Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified tool.", - "canonical": true, - "file": "agent_service.update_tool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTool", - "fullName": "google.cloud.ces.v1.AgentService.UpdateTool", - "async": true, - "parameters": [ - { - "name": "tool", - "type": ".google.cloud.ces.v1.Tool" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.ces.v1.Tool", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1.AgentServiceClient" - }, - "method": { - "shortName": "UpdateTool", - "fullName": "google.cloud.ces.v1.AgentService.UpdateTool", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1_generated_AgentService_DeleteTool_async", - "title": "AgentService deleteTool Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified tool.", - "canonical": true, - "file": "agent_service.delete_tool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTool", - "fullName": "google.cloud.ces.v1.AgentService.DeleteTool", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1.AgentServiceClient" - }, - "method": { - "shortName": "DeleteTool", - "fullName": "google.cloud.ces.v1.AgentService.DeleteTool", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1_generated_AgentService_ListGuardrails_async", - "title": "AgentService listGuardrails Sample", - "origin": "API_DEFINITION", - "description": " Lists guardrails in the given app.", - "canonical": true, - "file": "agent_service.list_guardrails.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListGuardrails", - "fullName": "google.cloud.ces.v1.AgentService.ListGuardrails", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.ces.v1.ListGuardrailsResponse", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1.AgentServiceClient" - }, - "method": { - "shortName": "ListGuardrails", - "fullName": "google.cloud.ces.v1.AgentService.ListGuardrails", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1_generated_AgentService_GetGuardrail_async", - "title": "AgentService getGuardrail Sample", - "origin": "API_DEFINITION", - "description": " Gets details of the specified guardrail.", - "canonical": true, - "file": "agent_service.get_guardrail.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetGuardrail", - "fullName": "google.cloud.ces.v1.AgentService.GetGuardrail", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.ces.v1.Guardrail", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1.AgentServiceClient" - }, - "method": { - "shortName": "GetGuardrail", - "fullName": "google.cloud.ces.v1.AgentService.GetGuardrail", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1_generated_AgentService_CreateGuardrail_async", - "title": "AgentService createGuardrail Sample", - "origin": "API_DEFINITION", - "description": " Creates a new guardrail in the given app.", - "canonical": true, - "file": "agent_service.create_guardrail.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateGuardrail", - "fullName": "google.cloud.ces.v1.AgentService.CreateGuardrail", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "guardrail_id", - "type": "TYPE_STRING" - }, - { - "name": "guardrail", - "type": ".google.cloud.ces.v1.Guardrail" - } - ], - "resultType": ".google.cloud.ces.v1.Guardrail", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1.AgentServiceClient" - }, - "method": { - "shortName": "CreateGuardrail", - "fullName": "google.cloud.ces.v1.AgentService.CreateGuardrail", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1_generated_AgentService_UpdateGuardrail_async", - "title": "AgentService updateGuardrail Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified guardrail.", - "canonical": true, - "file": "agent_service.update_guardrail.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateGuardrail", - "fullName": "google.cloud.ces.v1.AgentService.UpdateGuardrail", - "async": true, - "parameters": [ - { - "name": "guardrail", - "type": ".google.cloud.ces.v1.Guardrail" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.ces.v1.Guardrail", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1.AgentServiceClient" - }, - "method": { - "shortName": "UpdateGuardrail", - "fullName": "google.cloud.ces.v1.AgentService.UpdateGuardrail", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1_generated_AgentService_DeleteGuardrail_async", - "title": "AgentService deleteGuardrail Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified guardrail.", - "canonical": true, - "file": "agent_service.delete_guardrail.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteGuardrail", - "fullName": "google.cloud.ces.v1.AgentService.DeleteGuardrail", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1.AgentServiceClient" - }, - "method": { - "shortName": "DeleteGuardrail", - "fullName": "google.cloud.ces.v1.AgentService.DeleteGuardrail", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1_generated_AgentService_ListDeployments_async", - "title": "AgentService listDeployments Sample", - "origin": "API_DEFINITION", - "description": " Lists deployments in the given app.", - "canonical": true, - "file": "agent_service.list_deployments.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDeployments", - "fullName": "google.cloud.ces.v1.AgentService.ListDeployments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.ces.v1.ListDeploymentsResponse", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1.AgentServiceClient" - }, - "method": { - "shortName": "ListDeployments", - "fullName": "google.cloud.ces.v1.AgentService.ListDeployments", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1_generated_AgentService_GetDeployment_async", - "title": "AgentService getDeployment Sample", - "origin": "API_DEFINITION", - "description": " Gets details of the specified deployment.", - "canonical": true, - "file": "agent_service.get_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDeployment", - "fullName": "google.cloud.ces.v1.AgentService.GetDeployment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.ces.v1.Deployment", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1.AgentServiceClient" - }, - "method": { - "shortName": "GetDeployment", - "fullName": "google.cloud.ces.v1.AgentService.GetDeployment", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1_generated_AgentService_CreateDeployment_async", - "title": "AgentService createDeployment Sample", - "origin": "API_DEFINITION", - "description": " Creates a new deployment in the given app.", - "canonical": true, - "file": "agent_service.create_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDeployment", - "fullName": "google.cloud.ces.v1.AgentService.CreateDeployment", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "deployment_id", - "type": "TYPE_STRING" - }, - { - "name": "deployment", - "type": ".google.cloud.ces.v1.Deployment" - } - ], - "resultType": ".google.cloud.ces.v1.Deployment", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1.AgentServiceClient" - }, - "method": { - "shortName": "CreateDeployment", - "fullName": "google.cloud.ces.v1.AgentService.CreateDeployment", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1_generated_AgentService_UpdateDeployment_async", - "title": "AgentService updateDeployment Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified deployment.", - "canonical": true, - "file": "agent_service.update_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDeployment", - "fullName": "google.cloud.ces.v1.AgentService.UpdateDeployment", - "async": true, - "parameters": [ - { - "name": "deployment", - "type": ".google.cloud.ces.v1.Deployment" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.ces.v1.Deployment", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1.AgentServiceClient" - }, - "method": { - "shortName": "UpdateDeployment", - "fullName": "google.cloud.ces.v1.AgentService.UpdateDeployment", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1_generated_AgentService_DeleteDeployment_async", - "title": "AgentService deleteDeployment Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified deployment.", - "canonical": true, - "file": "agent_service.delete_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDeployment", - "fullName": "google.cloud.ces.v1.AgentService.DeleteDeployment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1.AgentServiceClient" - }, - "method": { - "shortName": "DeleteDeployment", - "fullName": "google.cloud.ces.v1.AgentService.DeleteDeployment", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1_generated_AgentService_ListToolsets_async", - "title": "AgentService listToolsets Sample", - "origin": "API_DEFINITION", - "description": " Lists toolsets in the given app.", - "canonical": true, - "file": "agent_service.list_toolsets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListToolsets", - "fullName": "google.cloud.ces.v1.AgentService.ListToolsets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.ces.v1.ListToolsetsResponse", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1.AgentServiceClient" - }, - "method": { - "shortName": "ListToolsets", - "fullName": "google.cloud.ces.v1.AgentService.ListToolsets", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1_generated_AgentService_GetToolset_async", - "title": "AgentService getToolset Sample", - "origin": "API_DEFINITION", - "description": " Gets details of the specified toolset.", - "canonical": true, - "file": "agent_service.get_toolset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetToolset", - "fullName": "google.cloud.ces.v1.AgentService.GetToolset", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.ces.v1.Toolset", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1.AgentServiceClient" - }, - "method": { - "shortName": "GetToolset", - "fullName": "google.cloud.ces.v1.AgentService.GetToolset", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1_generated_AgentService_CreateToolset_async", - "title": "AgentService createToolset Sample", - "origin": "API_DEFINITION", - "description": " Creates a new toolset in the given app.", - "canonical": true, - "file": "agent_service.create_toolset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateToolset", - "fullName": "google.cloud.ces.v1.AgentService.CreateToolset", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "toolset_id", - "type": "TYPE_STRING" - }, - { - "name": "toolset", - "type": ".google.cloud.ces.v1.Toolset" - } - ], - "resultType": ".google.cloud.ces.v1.Toolset", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1.AgentServiceClient" - }, - "method": { - "shortName": "CreateToolset", - "fullName": "google.cloud.ces.v1.AgentService.CreateToolset", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1_generated_AgentService_UpdateToolset_async", - "title": "AgentService updateToolset Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified toolset.", - "canonical": true, - "file": "agent_service.update_toolset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateToolset", - "fullName": "google.cloud.ces.v1.AgentService.UpdateToolset", - "async": true, - "parameters": [ - { - "name": "toolset", - "type": ".google.cloud.ces.v1.Toolset" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.ces.v1.Toolset", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1.AgentServiceClient" - }, - "method": { - "shortName": "UpdateToolset", - "fullName": "google.cloud.ces.v1.AgentService.UpdateToolset", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1_generated_AgentService_DeleteToolset_async", - "title": "AgentService deleteToolset Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified toolset.", - "canonical": true, - "file": "agent_service.delete_toolset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteToolset", - "fullName": "google.cloud.ces.v1.AgentService.DeleteToolset", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1.AgentServiceClient" - }, - "method": { - "shortName": "DeleteToolset", - "fullName": "google.cloud.ces.v1.AgentService.DeleteToolset", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1_generated_AgentService_ListAppVersions_async", - "title": "AgentService listAppVersions Sample", - "origin": "API_DEFINITION", - "description": " Lists all app versions in the given app.", - "canonical": true, - "file": "agent_service.list_app_versions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAppVersions", - "fullName": "google.cloud.ces.v1.AgentService.ListAppVersions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.ces.v1.ListAppVersionsResponse", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1.AgentServiceClient" - }, - "method": { - "shortName": "ListAppVersions", - "fullName": "google.cloud.ces.v1.AgentService.ListAppVersions", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1_generated_AgentService_GetAppVersion_async", - "title": "AgentService getAppVersion Sample", - "origin": "API_DEFINITION", - "description": " Gets details of the specified app version.", - "canonical": true, - "file": "agent_service.get_app_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAppVersion", - "fullName": "google.cloud.ces.v1.AgentService.GetAppVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.ces.v1.AppVersion", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1.AgentServiceClient" - }, - "method": { - "shortName": "GetAppVersion", - "fullName": "google.cloud.ces.v1.AgentService.GetAppVersion", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1_generated_AgentService_CreateAppVersion_async", - "title": "AgentService createAppVersion Sample", - "origin": "API_DEFINITION", - "description": " Creates a new app version in the given app.", - "canonical": true, - "file": "agent_service.create_app_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAppVersion", - "fullName": "google.cloud.ces.v1.AgentService.CreateAppVersion", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "app_version_id", - "type": "TYPE_STRING" - }, - { - "name": "app_version", - "type": ".google.cloud.ces.v1.AppVersion" - } - ], - "resultType": ".google.cloud.ces.v1.AppVersion", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1.AgentServiceClient" - }, - "method": { - "shortName": "CreateAppVersion", - "fullName": "google.cloud.ces.v1.AgentService.CreateAppVersion", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1_generated_AgentService_DeleteAppVersion_async", - "title": "AgentService deleteAppVersion Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified app version.", - "canonical": true, - "file": "agent_service.delete_app_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAppVersion", - "fullName": "google.cloud.ces.v1.AgentService.DeleteAppVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1.AgentServiceClient" - }, - "method": { - "shortName": "DeleteAppVersion", - "fullName": "google.cloud.ces.v1.AgentService.DeleteAppVersion", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1_generated_AgentService_RestoreAppVersion_async", - "title": "AgentService restoreAppVersion Sample", - "origin": "API_DEFINITION", - "description": " Restores the specified app version. This will create a new app version from the current draft app and overwrite the current draft with the specified app version.", - "canonical": true, - "file": "agent_service.restore_app_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RestoreAppVersion", - "fullName": "google.cloud.ces.v1.AgentService.RestoreAppVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1.AgentServiceClient" - }, - "method": { - "shortName": "RestoreAppVersion", - "fullName": "google.cloud.ces.v1.AgentService.RestoreAppVersion", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1_generated_AgentService_ListChangelogs_async", - "title": "AgentService listChangelogs Sample", - "origin": "API_DEFINITION", - "description": " Lists the changelogs of the specified app.", - "canonical": true, - "file": "agent_service.list_changelogs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 90, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListChangelogs", - "fullName": "google.cloud.ces.v1.AgentService.ListChangelogs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.ces.v1.ListChangelogsResponse", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1.AgentServiceClient" - }, - "method": { - "shortName": "ListChangelogs", - "fullName": "google.cloud.ces.v1.AgentService.ListChangelogs", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1_generated_AgentService_GetChangelog_async", - "title": "AgentService getChangelog Sample", - "origin": "API_DEFINITION", - "description": " Gets the specified changelog.", - "canonical": true, - "file": "agent_service.get_changelog.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetChangelog", - "fullName": "google.cloud.ces.v1.AgentService.GetChangelog", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.ces.v1.Changelog", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1.AgentServiceClient" - }, - "method": { - "shortName": "GetChangelog", - "fullName": "google.cloud.ces.v1.AgentService.GetChangelog", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1_generated_SessionService_RunSession_async", - "title": "AgentService runSession Sample", - "origin": "API_DEFINITION", - "description": " Initiates a single-turn interaction with the CES agent within a session.", - "canonical": true, - "file": "session_service.run_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RunSession", - "fullName": "google.cloud.ces.v1.SessionService.RunSession", - "async": true, - "parameters": [ - { - "name": "config", - "type": ".google.cloud.ces.v1.SessionConfig" - }, - { - "name": "inputs", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.ces.v1.RunSessionResponse", - "client": { - "shortName": "SessionServiceClient", - "fullName": "google.cloud.ces.v1.SessionServiceClient" - }, - "method": { - "shortName": "RunSession", - "fullName": "google.cloud.ces.v1.SessionService.RunSession", - "service": { - "shortName": "SessionService", - "fullName": "google.cloud.ces.v1.SessionService" - } - } - } - }, - { - "regionTag": "ces_v1_generated_SessionService_StreamRunSession_async", - "title": "AgentService streamRunSession Sample", - "origin": "API_DEFINITION", - "description": " Initiates a single-turn interaction with the CES agent. Uses server-side streaming to deliver incremental results and partial responses as they are generated. By default, complete responses (e.g., messages from callbacks or full LLM responses) are sent to the client as soon as they are available. To enable streaming individual text chunks directly from the model, set [enable_text_streaming][google.cloud.ces.v1.SessionConfig.enable_text_streaming] to true.", - "canonical": true, - "file": "session_service.stream_run_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StreamRunSession", - "fullName": "google.cloud.ces.v1.SessionService.StreamRunSession", - "async": true, - "parameters": [ - { - "name": "config", - "type": ".google.cloud.ces.v1.SessionConfig" - }, - { - "name": "inputs", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.ces.v1.RunSessionResponse", - "client": { - "shortName": "SessionServiceClient", - "fullName": "google.cloud.ces.v1.SessionServiceClient" - }, - "method": { - "shortName": "StreamRunSession", - "fullName": "google.cloud.ces.v1.SessionService.StreamRunSession", - "service": { - "shortName": "SessionService", - "fullName": "google.cloud.ces.v1.SessionService" - } - } - } - }, - { - "regionTag": "ces_v1_generated_SessionService_BidiRunSession_async", - "title": "AgentService bidiRunSession Sample", - "origin": "API_DEFINITION", - "description": " Establishes a bidirectional streaming connection with the CES agent. The agent processes continuous multimodal inputs (e.g., text, audio) and generates real-time multimodal output streams. --- Client Request Stream --- The client streams requests in the following order: 1. Initialization: The first message must contain [SessionConfig][google.cloud.ces.v1.BidiSessionClientMessage.config]. For audio sessions, this should also include [InputAudioConfig][google.cloud.ces.v1.SessionConfig.input_audio_config] and [OutputAudioConfig][google.cloud.ces.v1.SessionConfig.output_audio_config] to define audio processing and synthesis parameters. 2. Interaction: Subsequent messages stream [SessionInput][google.cloud.ces.v1.BidiSessionClientMessage.realtime_input] containing real-time user input data. 3. Termination: The client should half-close the stream when there is no more user input. It should also half-close upon receiving [EndSession][google.cloud.ces.v1.BidiSessionServerMessage.end_session] or [GoAway][google.cloud.ces.v1.BidiSessionServerMessage.go_away] from the agent. --- Server Response Stream --- For each interaction turn, the agent streams messages in the following sequence: 1. Speech Recognition (First N messages): Contains [RecognitionResult][google.cloud.ces.v1.BidiSessionServerMessage.recognition_result] representing the concatenated user speech segments captured so far. This is only populated for audio sessions. 2. Response (Next M messages): Contains [SessionOutput][google.cloud.ces.v1.BidiSessionServerMessage.session_output] delivering the agent's response in various modalities (e.g., text, audio). 3. Turn Completion (Final message of the turn): Contains [SessionOutput][google.cloud.ces.v1.BidiSessionServerMessage.session_output] with [turn_completed][google.cloud.ces.v1.SessionOutput.turn_completed] set to true. This signals the end of the current turn and includes [DiagnosticInfo][google.cloud.ces.v1.SessionOutput.diagnostic_info] with execution details. --- Audio Best Practices --- 1. Streaming: Stream [audio data][google.cloud.ces.v1.SessionInput.audio] **CONTINUOUSLY**, even during silence. Recommended chunk size: 40-120ms (balances latency vs. efficiency). 2. Playback & Interruption: Play [audio responses][google.cloud.ces.v1.SessionOutput.audio] upon receipt. Stop playback immediately if an [InterruptionSignal][google.cloud.ces.v1.BidiSessionServerMessage.interruption_signal] is received (e.g., user barge-in or new agent response).", - "canonical": true, - "file": "session_service.bidi_run_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BidiRunSession", - "fullName": "google.cloud.ces.v1.SessionService.BidiRunSession", - "async": true, - "parameters": [ - { - "name": "config", - "type": ".google.cloud.ces.v1.SessionConfig" - }, - { - "name": "realtime_input", - "type": ".google.cloud.ces.v1.SessionInput" - } - ], - "resultType": ".google.cloud.ces.v1.BidiSessionServerMessage", - "client": { - "shortName": "SessionServiceClient", - "fullName": "google.cloud.ces.v1.SessionServiceClient" - }, - "method": { - "shortName": "BidiRunSession", - "fullName": "google.cloud.ces.v1.SessionService.BidiRunSession", - "service": { - "shortName": "SessionService", - "fullName": "google.cloud.ces.v1.SessionService" - } - } - } - }, - { - "regionTag": "ces_v1_generated_ToolService_ExecuteTool_async", - "title": "AgentService executeTool Sample", - "origin": "API_DEFINITION", - "description": " Executes the given tool with the given arguments.", - "canonical": true, - "file": "tool_service.execute_tool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExecuteTool", - "fullName": "google.cloud.ces.v1.ToolService.ExecuteTool", - "async": true, - "parameters": [ - { - "name": "tool", - "type": "TYPE_STRING" - }, - { - "name": "toolset_tool", - "type": ".google.cloud.ces.v1.ToolsetTool" - }, - { - "name": "variables", - "type": ".google.protobuf.Struct" - }, - { - "name": "context", - "type": ".google.protobuf.Struct" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "args", - "type": ".google.protobuf.Struct" - } - ], - "resultType": ".google.cloud.ces.v1.ExecuteToolResponse", - "client": { - "shortName": "ToolServiceClient", - "fullName": "google.cloud.ces.v1.ToolServiceClient" - }, - "method": { - "shortName": "ExecuteTool", - "fullName": "google.cloud.ces.v1.ToolService.ExecuteTool", - "service": { - "shortName": "ToolService", - "fullName": "google.cloud.ces.v1.ToolService" - } - } - } - }, - { - "regionTag": "ces_v1_generated_ToolService_RetrieveToolSchema_async", - "title": "AgentService retrieveToolSchema Sample", - "origin": "API_DEFINITION", - "description": " Retrieve the schema of the given tool. The schema is computed on the fly for the given instance of the tool.", - "canonical": true, - "file": "tool_service.retrieve_tool_schema.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RetrieveToolSchema", - "fullName": "google.cloud.ces.v1.ToolService.RetrieveToolSchema", - "async": true, - "parameters": [ - { - "name": "tool", - "type": "TYPE_STRING" - }, - { - "name": "toolset_tool", - "type": ".google.cloud.ces.v1.ToolsetTool" - }, - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.ces.v1.RetrieveToolSchemaResponse", - "client": { - "shortName": "ToolServiceClient", - "fullName": "google.cloud.ces.v1.ToolServiceClient" - }, - "method": { - "shortName": "RetrieveToolSchema", - "fullName": "google.cloud.ces.v1.ToolService.RetrieveToolSchema", - "service": { - "shortName": "ToolService", - "fullName": "google.cloud.ces.v1.ToolService" - } - } - } - }, - { - "regionTag": "ces_v1_generated_ToolService_RetrieveTools_async", - "title": "AgentService retrieveTools Sample", - "origin": "API_DEFINITION", - "description": " Retrieve the list of tools included in the specified toolset.", - "canonical": true, - "file": "tool_service.retrieve_tools.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RetrieveTools", - "fullName": "google.cloud.ces.v1.ToolService.RetrieveTools", - "async": true, - "parameters": [ - { - "name": "toolset", - "type": "TYPE_STRING" - }, - { - "name": "tool_ids", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.cloud.ces.v1.RetrieveToolsResponse", - "client": { - "shortName": "ToolServiceClient", - "fullName": "google.cloud.ces.v1.ToolServiceClient" - }, - "method": { - "shortName": "RetrieveTools", - "fullName": "google.cloud.ces.v1.ToolService.RetrieveTools", - "service": { - "shortName": "ToolService", - "fullName": "google.cloud.ces.v1.ToolService" - } - } - } - }, - { - "regionTag": "ces_v1_generated_WidgetService_GenerateChatToken_async", - "title": "AgentService generateChatToken Sample", - "origin": "API_DEFINITION", - "description": " Generates a session scoped token for chat widget to authenticate with Session APIs.", - "canonical": true, - "file": "widget_service.generate_chat_token.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateChatToken", - "fullName": "google.cloud.ces.v1.WidgetService.GenerateChatToken", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "deployment", - "type": "TYPE_STRING" - }, - { - "name": "recaptcha_token", - "type": "TYPE_STRING" - }, - { - "name": "live_handoff_enabled", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.ces.v1.GenerateChatTokenResponse", - "client": { - "shortName": "WidgetServiceClient", - "fullName": "google.cloud.ces.v1.WidgetServiceClient" - }, - "method": { - "shortName": "GenerateChatToken", - "fullName": "google.cloud.ces.v1.WidgetService.GenerateChatToken", - "service": { - "shortName": "WidgetService", - "fullName": "google.cloud.ces.v1.WidgetService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-ces/samples/generated/v1beta/snippet_metadata_google.cloud.ces.v1beta.json b/packages/google-cloud-ces/samples/generated/v1beta/snippet_metadata_google.cloud.ces.v1beta.json deleted file mode 100644 index 989a4ab9228b..000000000000 --- a/packages/google-cloud-ces/samples/generated/v1beta/snippet_metadata_google.cloud.ces.v1beta.json +++ /dev/null @@ -1,4339 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-ces", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.ces.v1beta", - "version": "v1beta" - } - ] - }, - "snippets": [ - { - "regionTag": "ces_v1beta_generated_AgentService_ListApps_async", - "title": "AgentService listApps Sample", - "origin": "API_DEFINITION", - "description": " Lists apps in the given project and location.", - "canonical": true, - "file": "agent_service.list_apps.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListApps", - "fullName": "google.cloud.ces.v1beta.AgentService.ListApps", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.ces.v1beta.ListAppsResponse", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1beta.AgentServiceClient" - }, - "method": { - "shortName": "ListApps", - "fullName": "google.cloud.ces.v1beta.AgentService.ListApps", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1beta.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_AgentService_GetApp_async", - "title": "AgentService getApp Sample", - "origin": "API_DEFINITION", - "description": " Gets details of the specified app.", - "canonical": true, - "file": "agent_service.get_app.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetApp", - "fullName": "google.cloud.ces.v1beta.AgentService.GetApp", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.ces.v1beta.App", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1beta.AgentServiceClient" - }, - "method": { - "shortName": "GetApp", - "fullName": "google.cloud.ces.v1beta.AgentService.GetApp", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1beta.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_AgentService_CreateApp_async", - "title": "AgentService createApp Sample", - "origin": "API_DEFINITION", - "description": " Creates a new app in the given project and location.", - "canonical": true, - "file": "agent_service.create_app.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateApp", - "fullName": "google.cloud.ces.v1beta.AgentService.CreateApp", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "app_id", - "type": "TYPE_STRING" - }, - { - "name": "app", - "type": ".google.cloud.ces.v1beta.App" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1beta.AgentServiceClient" - }, - "method": { - "shortName": "CreateApp", - "fullName": "google.cloud.ces.v1beta.AgentService.CreateApp", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1beta.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_AgentService_UpdateApp_async", - "title": "AgentService updateApp Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified app.", - "canonical": true, - "file": "agent_service.update_app.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateApp", - "fullName": "google.cloud.ces.v1beta.AgentService.UpdateApp", - "async": true, - "parameters": [ - { - "name": "app", - "type": ".google.cloud.ces.v1beta.App" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.ces.v1beta.App", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1beta.AgentServiceClient" - }, - "method": { - "shortName": "UpdateApp", - "fullName": "google.cloud.ces.v1beta.AgentService.UpdateApp", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1beta.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_AgentService_DeleteApp_async", - "title": "AgentService deleteApp Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified app.", - "canonical": true, - "file": "agent_service.delete_app.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteApp", - "fullName": "google.cloud.ces.v1beta.AgentService.DeleteApp", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1beta.AgentServiceClient" - }, - "method": { - "shortName": "DeleteApp", - "fullName": "google.cloud.ces.v1beta.AgentService.DeleteApp", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1beta.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_AgentService_ExportApp_async", - "title": "AgentService exportApp Sample", - "origin": "API_DEFINITION", - "description": " Exports the specified app.", - "canonical": true, - "file": "agent_service.export_app.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportApp", - "fullName": "google.cloud.ces.v1beta.AgentService.ExportApp", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "export_format", - "type": ".google.cloud.ces.v1beta.ExportAppRequest.ExportFormat" - }, - { - "name": "gcs_uri", - "type": "TYPE_STRING" - }, - { - "name": "app_version", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1beta.AgentServiceClient" - }, - "method": { - "shortName": "ExportApp", - "fullName": "google.cloud.ces.v1beta.AgentService.ExportApp", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1beta.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_AgentService_ImportApp_async", - "title": "AgentService importApp Sample", - "origin": "API_DEFINITION", - "description": " Imports the specified app.", - "canonical": true, - "file": "agent_service.import_app.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 94, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportApp", - "fullName": "google.cloud.ces.v1beta.AgentService.ImportApp", - "async": true, - "parameters": [ - { - "name": "gcs_uri", - "type": "TYPE_STRING" - }, - { - "name": "app_content", - "type": "TYPE_BYTES" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "display_name", - "type": "TYPE_STRING" - }, - { - "name": "app_id", - "type": "TYPE_STRING" - }, - { - "name": "import_options", - "type": ".google.cloud.ces.v1beta.ImportAppRequest.ImportOptions" - }, - { - "name": "ignore_app_lock", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1beta.AgentServiceClient" - }, - "method": { - "shortName": "ImportApp", - "fullName": "google.cloud.ces.v1beta.AgentService.ImportApp", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1beta.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_AgentService_GetSecuritySettings_async", - "title": "AgentService getSecuritySettings Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the security settings for the project and location.", - "canonical": true, - "file": "agent_service.get_security_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSecuritySettings", - "fullName": "google.cloud.ces.v1beta.AgentService.GetSecuritySettings", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.ces.v1beta.SecuritySettings", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1beta.AgentServiceClient" - }, - "method": { - "shortName": "GetSecuritySettings", - "fullName": "google.cloud.ces.v1beta.AgentService.GetSecuritySettings", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1beta.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_AgentService_UpdateSecuritySettings_async", - "title": "AgentService updateSecuritySettings Sample", - "origin": "API_DEFINITION", - "description": " Updates the security settings for the project and location.", - "canonical": true, - "file": "agent_service.update_security_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSecuritySettings", - "fullName": "google.cloud.ces.v1beta.AgentService.UpdateSecuritySettings", - "async": true, - "parameters": [ - { - "name": "security_settings", - "type": ".google.cloud.ces.v1beta.SecuritySettings" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.ces.v1beta.SecuritySettings", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1beta.AgentServiceClient" - }, - "method": { - "shortName": "UpdateSecuritySettings", - "fullName": "google.cloud.ces.v1beta.AgentService.UpdateSecuritySettings", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1beta.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_AgentService_ListAgents_async", - "title": "AgentService listAgents Sample", - "origin": "API_DEFINITION", - "description": " Lists agents in the given app.", - "canonical": true, - "file": "agent_service.list_agents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAgents", - "fullName": "google.cloud.ces.v1beta.AgentService.ListAgents", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.ces.v1beta.ListAgentsResponse", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1beta.AgentServiceClient" - }, - "method": { - "shortName": "ListAgents", - "fullName": "google.cloud.ces.v1beta.AgentService.ListAgents", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1beta.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_AgentService_GetAgent_async", - "title": "AgentService getAgent Sample", - "origin": "API_DEFINITION", - "description": " Gets details of the specified agent.", - "canonical": true, - "file": "agent_service.get_agent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAgent", - "fullName": "google.cloud.ces.v1beta.AgentService.GetAgent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.ces.v1beta.Agent", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1beta.AgentServiceClient" - }, - "method": { - "shortName": "GetAgent", - "fullName": "google.cloud.ces.v1beta.AgentService.GetAgent", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1beta.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_AgentService_CreateAgent_async", - "title": "AgentService createAgent Sample", - "origin": "API_DEFINITION", - "description": " Creates a new agent in the given app.", - "canonical": true, - "file": "agent_service.create_agent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAgent", - "fullName": "google.cloud.ces.v1beta.AgentService.CreateAgent", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "agent_id", - "type": "TYPE_STRING" - }, - { - "name": "agent", - "type": ".google.cloud.ces.v1beta.Agent" - } - ], - "resultType": ".google.cloud.ces.v1beta.Agent", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1beta.AgentServiceClient" - }, - "method": { - "shortName": "CreateAgent", - "fullName": "google.cloud.ces.v1beta.AgentService.CreateAgent", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1beta.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_AgentService_UpdateAgent_async", - "title": "AgentService updateAgent Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified agent.", - "canonical": true, - "file": "agent_service.update_agent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAgent", - "fullName": "google.cloud.ces.v1beta.AgentService.UpdateAgent", - "async": true, - "parameters": [ - { - "name": "agent", - "type": ".google.cloud.ces.v1beta.Agent" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.ces.v1beta.Agent", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1beta.AgentServiceClient" - }, - "method": { - "shortName": "UpdateAgent", - "fullName": "google.cloud.ces.v1beta.AgentService.UpdateAgent", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1beta.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_AgentService_DeleteAgent_async", - "title": "AgentService deleteAgent Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified agent.", - "canonical": true, - "file": "agent_service.delete_agent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAgent", - "fullName": "google.cloud.ces.v1beta.AgentService.DeleteAgent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1beta.AgentServiceClient" - }, - "method": { - "shortName": "DeleteAgent", - "fullName": "google.cloud.ces.v1beta.AgentService.DeleteAgent", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1beta.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_AgentService_ListExamples_async", - "title": "AgentService listExamples Sample", - "origin": "API_DEFINITION", - "description": " Lists examples in the given app.", - "canonical": true, - "file": "agent_service.list_examples.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListExamples", - "fullName": "google.cloud.ces.v1beta.AgentService.ListExamples", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.ces.v1beta.ListExamplesResponse", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1beta.AgentServiceClient" - }, - "method": { - "shortName": "ListExamples", - "fullName": "google.cloud.ces.v1beta.AgentService.ListExamples", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1beta.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_AgentService_GetExample_async", - "title": "AgentService getExample Sample", - "origin": "API_DEFINITION", - "description": " Gets details of the specified example.", - "canonical": true, - "file": "agent_service.get_example.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetExample", - "fullName": "google.cloud.ces.v1beta.AgentService.GetExample", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.ces.v1beta.Example", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1beta.AgentServiceClient" - }, - "method": { - "shortName": "GetExample", - "fullName": "google.cloud.ces.v1beta.AgentService.GetExample", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1beta.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_AgentService_CreateExample_async", - "title": "AgentService createExample Sample", - "origin": "API_DEFINITION", - "description": " Creates a new example in the given app.", - "canonical": true, - "file": "agent_service.create_example.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateExample", - "fullName": "google.cloud.ces.v1beta.AgentService.CreateExample", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "example_id", - "type": "TYPE_STRING" - }, - { - "name": "example", - "type": ".google.cloud.ces.v1beta.Example" - } - ], - "resultType": ".google.cloud.ces.v1beta.Example", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1beta.AgentServiceClient" - }, - "method": { - "shortName": "CreateExample", - "fullName": "google.cloud.ces.v1beta.AgentService.CreateExample", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1beta.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_AgentService_UpdateExample_async", - "title": "AgentService updateExample Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified example.", - "canonical": true, - "file": "agent_service.update_example.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateExample", - "fullName": "google.cloud.ces.v1beta.AgentService.UpdateExample", - "async": true, - "parameters": [ - { - "name": "example", - "type": ".google.cloud.ces.v1beta.Example" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.ces.v1beta.Example", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1beta.AgentServiceClient" - }, - "method": { - "shortName": "UpdateExample", - "fullName": "google.cloud.ces.v1beta.AgentService.UpdateExample", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1beta.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_AgentService_DeleteExample_async", - "title": "AgentService deleteExample Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified example.", - "canonical": true, - "file": "agent_service.delete_example.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteExample", - "fullName": "google.cloud.ces.v1beta.AgentService.DeleteExample", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1beta.AgentServiceClient" - }, - "method": { - "shortName": "DeleteExample", - "fullName": "google.cloud.ces.v1beta.AgentService.DeleteExample", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1beta.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_AgentService_ListTools_async", - "title": "AgentService listTools Sample", - "origin": "API_DEFINITION", - "description": " Lists tools in the given app.", - "canonical": true, - "file": "agent_service.list_tools.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTools", - "fullName": "google.cloud.ces.v1beta.AgentService.ListTools", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.ces.v1beta.ListToolsResponse", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1beta.AgentServiceClient" - }, - "method": { - "shortName": "ListTools", - "fullName": "google.cloud.ces.v1beta.AgentService.ListTools", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1beta.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_AgentService_GetTool_async", - "title": "AgentService getTool Sample", - "origin": "API_DEFINITION", - "description": " Gets details of the specified tool.", - "canonical": true, - "file": "agent_service.get_tool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTool", - "fullName": "google.cloud.ces.v1beta.AgentService.GetTool", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.ces.v1beta.Tool", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1beta.AgentServiceClient" - }, - "method": { - "shortName": "GetTool", - "fullName": "google.cloud.ces.v1beta.AgentService.GetTool", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1beta.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_AgentService_ListConversations_async", - "title": "AgentService listConversations Sample", - "origin": "API_DEFINITION", - "description": " Lists conversations in the given app.", - "canonical": true, - "file": "agent_service.list_conversations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListConversations", - "fullName": "google.cloud.ces.v1beta.AgentService.ListConversations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "source", - "type": ".google.cloud.ces.v1beta.Conversation.Source" - }, - { - "name": "sources", - "type": "TYPE_ENUM[]" - } - ], - "resultType": ".google.cloud.ces.v1beta.ListConversationsResponse", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1beta.AgentServiceClient" - }, - "method": { - "shortName": "ListConversations", - "fullName": "google.cloud.ces.v1beta.AgentService.ListConversations", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1beta.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_AgentService_GetConversation_async", - "title": "AgentService getConversation Sample", - "origin": "API_DEFINITION", - "description": " Gets details of the specified conversation.", - "canonical": true, - "file": "agent_service.get_conversation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetConversation", - "fullName": "google.cloud.ces.v1beta.AgentService.GetConversation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "source", - "type": ".google.cloud.ces.v1beta.Conversation.Source" - } - ], - "resultType": ".google.cloud.ces.v1beta.Conversation", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1beta.AgentServiceClient" - }, - "method": { - "shortName": "GetConversation", - "fullName": "google.cloud.ces.v1beta.AgentService.GetConversation", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1beta.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_AgentService_DeleteConversation_async", - "title": "AgentService deleteConversation Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified conversation.", - "canonical": true, - "file": "agent_service.delete_conversation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteConversation", - "fullName": "google.cloud.ces.v1beta.AgentService.DeleteConversation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "source", - "type": ".google.cloud.ces.v1beta.Conversation.Source" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1beta.AgentServiceClient" - }, - "method": { - "shortName": "DeleteConversation", - "fullName": "google.cloud.ces.v1beta.AgentService.DeleteConversation", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1beta.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_AgentService_BatchDeleteConversations_async", - "title": "AgentService batchDeleteConversations Sample", - "origin": "API_DEFINITION", - "description": " Batch deletes the specified conversations.", - "canonical": true, - "file": "agent_service.batch_delete_conversations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchDeleteConversations", - "fullName": "google.cloud.ces.v1beta.AgentService.BatchDeleteConversations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "conversations", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1beta.AgentServiceClient" - }, - "method": { - "shortName": "BatchDeleteConversations", - "fullName": "google.cloud.ces.v1beta.AgentService.BatchDeleteConversations", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1beta.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_AgentService_CreateTool_async", - "title": "AgentService createTool Sample", - "origin": "API_DEFINITION", - "description": " Creates a new tool in the given app.", - "canonical": true, - "file": "agent_service.create_tool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTool", - "fullName": "google.cloud.ces.v1beta.AgentService.CreateTool", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "tool_id", - "type": "TYPE_STRING" - }, - { - "name": "tool", - "type": ".google.cloud.ces.v1beta.Tool" - } - ], - "resultType": ".google.cloud.ces.v1beta.Tool", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1beta.AgentServiceClient" - }, - "method": { - "shortName": "CreateTool", - "fullName": "google.cloud.ces.v1beta.AgentService.CreateTool", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1beta.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_AgentService_UpdateTool_async", - "title": "AgentService updateTool Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified tool.", - "canonical": true, - "file": "agent_service.update_tool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTool", - "fullName": "google.cloud.ces.v1beta.AgentService.UpdateTool", - "async": true, - "parameters": [ - { - "name": "tool", - "type": ".google.cloud.ces.v1beta.Tool" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.ces.v1beta.Tool", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1beta.AgentServiceClient" - }, - "method": { - "shortName": "UpdateTool", - "fullName": "google.cloud.ces.v1beta.AgentService.UpdateTool", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1beta.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_AgentService_DeleteTool_async", - "title": "AgentService deleteTool Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified tool.", - "canonical": true, - "file": "agent_service.delete_tool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTool", - "fullName": "google.cloud.ces.v1beta.AgentService.DeleteTool", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1beta.AgentServiceClient" - }, - "method": { - "shortName": "DeleteTool", - "fullName": "google.cloud.ces.v1beta.AgentService.DeleteTool", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1beta.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_AgentService_ListGuardrails_async", - "title": "AgentService listGuardrails Sample", - "origin": "API_DEFINITION", - "description": " Lists guardrails in the given app.", - "canonical": true, - "file": "agent_service.list_guardrails.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListGuardrails", - "fullName": "google.cloud.ces.v1beta.AgentService.ListGuardrails", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.ces.v1beta.ListGuardrailsResponse", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1beta.AgentServiceClient" - }, - "method": { - "shortName": "ListGuardrails", - "fullName": "google.cloud.ces.v1beta.AgentService.ListGuardrails", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1beta.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_AgentService_GetGuardrail_async", - "title": "AgentService getGuardrail Sample", - "origin": "API_DEFINITION", - "description": " Gets details of the specified guardrail.", - "canonical": true, - "file": "agent_service.get_guardrail.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetGuardrail", - "fullName": "google.cloud.ces.v1beta.AgentService.GetGuardrail", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.ces.v1beta.Guardrail", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1beta.AgentServiceClient" - }, - "method": { - "shortName": "GetGuardrail", - "fullName": "google.cloud.ces.v1beta.AgentService.GetGuardrail", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1beta.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_AgentService_CreateGuardrail_async", - "title": "AgentService createGuardrail Sample", - "origin": "API_DEFINITION", - "description": " Creates a new guardrail in the given app.", - "canonical": true, - "file": "agent_service.create_guardrail.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateGuardrail", - "fullName": "google.cloud.ces.v1beta.AgentService.CreateGuardrail", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "guardrail_id", - "type": "TYPE_STRING" - }, - { - "name": "guardrail", - "type": ".google.cloud.ces.v1beta.Guardrail" - } - ], - "resultType": ".google.cloud.ces.v1beta.Guardrail", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1beta.AgentServiceClient" - }, - "method": { - "shortName": "CreateGuardrail", - "fullName": "google.cloud.ces.v1beta.AgentService.CreateGuardrail", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1beta.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_AgentService_UpdateGuardrail_async", - "title": "AgentService updateGuardrail Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified guardrail.", - "canonical": true, - "file": "agent_service.update_guardrail.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateGuardrail", - "fullName": "google.cloud.ces.v1beta.AgentService.UpdateGuardrail", - "async": true, - "parameters": [ - { - "name": "guardrail", - "type": ".google.cloud.ces.v1beta.Guardrail" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.ces.v1beta.Guardrail", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1beta.AgentServiceClient" - }, - "method": { - "shortName": "UpdateGuardrail", - "fullName": "google.cloud.ces.v1beta.AgentService.UpdateGuardrail", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1beta.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_AgentService_DeleteGuardrail_async", - "title": "AgentService deleteGuardrail Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified guardrail.", - "canonical": true, - "file": "agent_service.delete_guardrail.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteGuardrail", - "fullName": "google.cloud.ces.v1beta.AgentService.DeleteGuardrail", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1beta.AgentServiceClient" - }, - "method": { - "shortName": "DeleteGuardrail", - "fullName": "google.cloud.ces.v1beta.AgentService.DeleteGuardrail", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1beta.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_AgentService_ListDeployments_async", - "title": "AgentService listDeployments Sample", - "origin": "API_DEFINITION", - "description": " Lists deployments in the given app.", - "canonical": true, - "file": "agent_service.list_deployments.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDeployments", - "fullName": "google.cloud.ces.v1beta.AgentService.ListDeployments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.ces.v1beta.ListDeploymentsResponse", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1beta.AgentServiceClient" - }, - "method": { - "shortName": "ListDeployments", - "fullName": "google.cloud.ces.v1beta.AgentService.ListDeployments", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1beta.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_AgentService_GetDeployment_async", - "title": "AgentService getDeployment Sample", - "origin": "API_DEFINITION", - "description": " Gets details of the specified deployment.", - "canonical": true, - "file": "agent_service.get_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDeployment", - "fullName": "google.cloud.ces.v1beta.AgentService.GetDeployment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.ces.v1beta.Deployment", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1beta.AgentServiceClient" - }, - "method": { - "shortName": "GetDeployment", - "fullName": "google.cloud.ces.v1beta.AgentService.GetDeployment", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1beta.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_AgentService_CreateDeployment_async", - "title": "AgentService createDeployment Sample", - "origin": "API_DEFINITION", - "description": " Creates a new deployment in the given app.", - "canonical": true, - "file": "agent_service.create_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDeployment", - "fullName": "google.cloud.ces.v1beta.AgentService.CreateDeployment", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "deployment_id", - "type": "TYPE_STRING" - }, - { - "name": "deployment", - "type": ".google.cloud.ces.v1beta.Deployment" - } - ], - "resultType": ".google.cloud.ces.v1beta.Deployment", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1beta.AgentServiceClient" - }, - "method": { - "shortName": "CreateDeployment", - "fullName": "google.cloud.ces.v1beta.AgentService.CreateDeployment", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1beta.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_AgentService_UpdateDeployment_async", - "title": "AgentService updateDeployment Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified deployment.", - "canonical": true, - "file": "agent_service.update_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDeployment", - "fullName": "google.cloud.ces.v1beta.AgentService.UpdateDeployment", - "async": true, - "parameters": [ - { - "name": "deployment", - "type": ".google.cloud.ces.v1beta.Deployment" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.ces.v1beta.Deployment", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1beta.AgentServiceClient" - }, - "method": { - "shortName": "UpdateDeployment", - "fullName": "google.cloud.ces.v1beta.AgentService.UpdateDeployment", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1beta.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_AgentService_DeleteDeployment_async", - "title": "AgentService deleteDeployment Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified deployment.", - "canonical": true, - "file": "agent_service.delete_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDeployment", - "fullName": "google.cloud.ces.v1beta.AgentService.DeleteDeployment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1beta.AgentServiceClient" - }, - "method": { - "shortName": "DeleteDeployment", - "fullName": "google.cloud.ces.v1beta.AgentService.DeleteDeployment", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1beta.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_AgentService_ListToolsets_async", - "title": "AgentService listToolsets Sample", - "origin": "API_DEFINITION", - "description": " Lists toolsets in the given app.", - "canonical": true, - "file": "agent_service.list_toolsets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListToolsets", - "fullName": "google.cloud.ces.v1beta.AgentService.ListToolsets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.ces.v1beta.ListToolsetsResponse", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1beta.AgentServiceClient" - }, - "method": { - "shortName": "ListToolsets", - "fullName": "google.cloud.ces.v1beta.AgentService.ListToolsets", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1beta.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_AgentService_GetToolset_async", - "title": "AgentService getToolset Sample", - "origin": "API_DEFINITION", - "description": " Gets details of the specified toolset.", - "canonical": true, - "file": "agent_service.get_toolset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetToolset", - "fullName": "google.cloud.ces.v1beta.AgentService.GetToolset", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.ces.v1beta.Toolset", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1beta.AgentServiceClient" - }, - "method": { - "shortName": "GetToolset", - "fullName": "google.cloud.ces.v1beta.AgentService.GetToolset", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1beta.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_AgentService_CreateToolset_async", - "title": "AgentService createToolset Sample", - "origin": "API_DEFINITION", - "description": " Creates a new toolset in the given app.", - "canonical": true, - "file": "agent_service.create_toolset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateToolset", - "fullName": "google.cloud.ces.v1beta.AgentService.CreateToolset", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "toolset_id", - "type": "TYPE_STRING" - }, - { - "name": "toolset", - "type": ".google.cloud.ces.v1beta.Toolset" - } - ], - "resultType": ".google.cloud.ces.v1beta.Toolset", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1beta.AgentServiceClient" - }, - "method": { - "shortName": "CreateToolset", - "fullName": "google.cloud.ces.v1beta.AgentService.CreateToolset", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1beta.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_AgentService_UpdateToolset_async", - "title": "AgentService updateToolset Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified toolset.", - "canonical": true, - "file": "agent_service.update_toolset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateToolset", - "fullName": "google.cloud.ces.v1beta.AgentService.UpdateToolset", - "async": true, - "parameters": [ - { - "name": "toolset", - "type": ".google.cloud.ces.v1beta.Toolset" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.ces.v1beta.Toolset", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1beta.AgentServiceClient" - }, - "method": { - "shortName": "UpdateToolset", - "fullName": "google.cloud.ces.v1beta.AgentService.UpdateToolset", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1beta.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_AgentService_DeleteToolset_async", - "title": "AgentService deleteToolset Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified toolset.", - "canonical": true, - "file": "agent_service.delete_toolset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteToolset", - "fullName": "google.cloud.ces.v1beta.AgentService.DeleteToolset", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1beta.AgentServiceClient" - }, - "method": { - "shortName": "DeleteToolset", - "fullName": "google.cloud.ces.v1beta.AgentService.DeleteToolset", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1beta.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_AgentService_ListAppVersions_async", - "title": "AgentService listAppVersions Sample", - "origin": "API_DEFINITION", - "description": " Lists all app versions in the given app.", - "canonical": true, - "file": "agent_service.list_app_versions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAppVersions", - "fullName": "google.cloud.ces.v1beta.AgentService.ListAppVersions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.ces.v1beta.ListAppVersionsResponse", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1beta.AgentServiceClient" - }, - "method": { - "shortName": "ListAppVersions", - "fullName": "google.cloud.ces.v1beta.AgentService.ListAppVersions", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1beta.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_AgentService_GetAppVersion_async", - "title": "AgentService getAppVersion Sample", - "origin": "API_DEFINITION", - "description": " Gets details of the specified app version.", - "canonical": true, - "file": "agent_service.get_app_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAppVersion", - "fullName": "google.cloud.ces.v1beta.AgentService.GetAppVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.ces.v1beta.AppVersion", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1beta.AgentServiceClient" - }, - "method": { - "shortName": "GetAppVersion", - "fullName": "google.cloud.ces.v1beta.AgentService.GetAppVersion", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1beta.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_AgentService_CreateAppVersion_async", - "title": "AgentService createAppVersion Sample", - "origin": "API_DEFINITION", - "description": " Creates a new app version in the given app.", - "canonical": true, - "file": "agent_service.create_app_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAppVersion", - "fullName": "google.cloud.ces.v1beta.AgentService.CreateAppVersion", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "app_version_id", - "type": "TYPE_STRING" - }, - { - "name": "app_version", - "type": ".google.cloud.ces.v1beta.AppVersion" - } - ], - "resultType": ".google.cloud.ces.v1beta.AppVersion", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1beta.AgentServiceClient" - }, - "method": { - "shortName": "CreateAppVersion", - "fullName": "google.cloud.ces.v1beta.AgentService.CreateAppVersion", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1beta.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_AgentService_DeleteAppVersion_async", - "title": "AgentService deleteAppVersion Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified app version.", - "canonical": true, - "file": "agent_service.delete_app_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAppVersion", - "fullName": "google.cloud.ces.v1beta.AgentService.DeleteAppVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1beta.AgentServiceClient" - }, - "method": { - "shortName": "DeleteAppVersion", - "fullName": "google.cloud.ces.v1beta.AgentService.DeleteAppVersion", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1beta.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_AgentService_RestoreAppVersion_async", - "title": "AgentService restoreAppVersion Sample", - "origin": "API_DEFINITION", - "description": " Restores the specified app version. This will create a new app version from the current draft app and overwrite the current draft with the specified app version.", - "canonical": true, - "file": "agent_service.restore_app_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RestoreAppVersion", - "fullName": "google.cloud.ces.v1beta.AgentService.RestoreAppVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1beta.AgentServiceClient" - }, - "method": { - "shortName": "RestoreAppVersion", - "fullName": "google.cloud.ces.v1beta.AgentService.RestoreAppVersion", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1beta.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_AgentService_GenerateAppResource_async", - "title": "AgentService generateAppResource Sample", - "origin": "API_DEFINITION", - "description": " Generates specific resources (e.g. agent) in the app using LLM assistant.", - "canonical": true, - "file": "agent_service.generate_app_resource.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 97, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateAppResource", - "fullName": "google.cloud.ces.v1beta.AgentService.GenerateAppResource", - "async": true, - "parameters": [ - { - "name": "agent", - "type": ".google.cloud.ces.v1beta.Agent" - }, - { - "name": "tool", - "type": ".google.cloud.ces.v1beta.Tool" - }, - { - "name": "toolset", - "type": ".google.cloud.ces.v1beta.Toolset" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "refine_instructions", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "tool_generation_config", - "type": ".google.cloud.ces.v1beta.GenerateAppResourceRequest.ToolGenerationConfig" - }, - { - "name": "app_generation_config", - "type": ".google.cloud.ces.v1beta.GenerateAppResourceRequest.AppGenerationConfig" - }, - { - "name": "evaluation_generation_config", - "type": ".google.cloud.ces.v1beta.GenerateAppResourceRequest.EvaluationGenerationConfig" - }, - { - "name": "evaluation_personas_generation_config", - "type": ".google.cloud.ces.v1beta.GenerateAppResourceRequest.EvaluationPersonasGenerationConfig" - }, - { - "name": "quality_report_generation_config", - "type": ".google.cloud.ces.v1beta.GenerateAppResourceRequest.QualityReportGenerationConfig" - }, - { - "name": "hill_climbing_fix_config", - "type": ".google.cloud.ces.v1beta.GenerateAppResourceRequest.HillClimbingFixConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1beta.AgentServiceClient" - }, - "method": { - "shortName": "GenerateAppResource", - "fullName": "google.cloud.ces.v1beta.AgentService.GenerateAppResource", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1beta.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_AgentService_ListChangelogs_async", - "title": "AgentService listChangelogs Sample", - "origin": "API_DEFINITION", - "description": " Lists the changelogs of the specified app.", - "canonical": true, - "file": "agent_service.list_changelogs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 90, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListChangelogs", - "fullName": "google.cloud.ces.v1beta.AgentService.ListChangelogs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.ces.v1beta.ListChangelogsResponse", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1beta.AgentServiceClient" - }, - "method": { - "shortName": "ListChangelogs", - "fullName": "google.cloud.ces.v1beta.AgentService.ListChangelogs", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1beta.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_AgentService_GetChangelog_async", - "title": "AgentService getChangelog Sample", - "origin": "API_DEFINITION", - "description": " Gets the specified changelog.", - "canonical": true, - "file": "agent_service.get_changelog.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetChangelog", - "fullName": "google.cloud.ces.v1beta.AgentService.GetChangelog", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.ces.v1beta.Changelog", - "client": { - "shortName": "AgentServiceClient", - "fullName": "google.cloud.ces.v1beta.AgentServiceClient" - }, - "method": { - "shortName": "GetChangelog", - "fullName": "google.cloud.ces.v1beta.AgentService.GetChangelog", - "service": { - "shortName": "AgentService", - "fullName": "google.cloud.ces.v1beta.AgentService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_EvaluationService_RunEvaluation_async", - "title": "AgentService runEvaluation Sample", - "origin": "API_DEFINITION", - "description": " Runs an evaluation of the app.", - "canonical": true, - "file": "evaluation_service.run_evaluation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 114, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RunEvaluation", - "fullName": "google.cloud.ces.v1beta.EvaluationService.RunEvaluation", - "async": true, - "parameters": [ - { - "name": "app", - "type": "TYPE_STRING" - }, - { - "name": "evaluations", - "type": "TYPE_STRING[]" - }, - { - "name": "evaluation_dataset", - "type": "TYPE_STRING" - }, - { - "name": "display_name", - "type": "TYPE_STRING" - }, - { - "name": "app_version", - "type": "TYPE_STRING" - }, - { - "name": "config", - "type": ".google.cloud.ces.v1beta.EvaluationConfig" - }, - { - "name": "run_count", - "type": "TYPE_INT32" - }, - { - "name": "persona_run_configs", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "optimization_config", - "type": ".google.cloud.ces.v1beta.OptimizationConfig" - }, - { - "name": "scheduled_evaluation_run", - "type": "TYPE_STRING" - }, - { - "name": "golden_run_method", - "type": ".google.cloud.ces.v1beta.GoldenRunMethod" - }, - { - "name": "generate_latency_report", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EvaluationServiceClient", - "fullName": "google.cloud.ces.v1beta.EvaluationServiceClient" - }, - "method": { - "shortName": "RunEvaluation", - "fullName": "google.cloud.ces.v1beta.EvaluationService.RunEvaluation", - "service": { - "shortName": "EvaluationService", - "fullName": "google.cloud.ces.v1beta.EvaluationService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_EvaluationService_UploadEvaluationAudio_async", - "title": "AgentService uploadEvaluationAudio Sample", - "origin": "API_DEFINITION", - "description": " Uploads audio for use in Golden Evaluations. Stores the audio in the Cloud Storage bucket defined in 'App.logging_settings.evaluation_audio_recording_config.gcs_bucket' and returns a transcript.", - "canonical": true, - "file": "evaluation_service.upload_evaluation_audio.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UploadEvaluationAudio", - "fullName": "google.cloud.ces.v1beta.EvaluationService.UploadEvaluationAudio", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "audio_content", - "type": "TYPE_BYTES" - }, - { - "name": "previous_audio_gcs_uri", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.ces.v1beta.UploadEvaluationAudioResponse", - "client": { - "shortName": "EvaluationServiceClient", - "fullName": "google.cloud.ces.v1beta.EvaluationServiceClient" - }, - "method": { - "shortName": "UploadEvaluationAudio", - "fullName": "google.cloud.ces.v1beta.EvaluationService.UploadEvaluationAudio", - "service": { - "shortName": "EvaluationService", - "fullName": "google.cloud.ces.v1beta.EvaluationService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_EvaluationService_CreateEvaluation_async", - "title": "AgentService createEvaluation Sample", - "origin": "API_DEFINITION", - "description": " Creates an evaluation.", - "canonical": true, - "file": "evaluation_service.create_evaluation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateEvaluation", - "fullName": "google.cloud.ces.v1beta.EvaluationService.CreateEvaluation", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "evaluation_id", - "type": "TYPE_STRING" - }, - { - "name": "evaluation", - "type": ".google.cloud.ces.v1beta.Evaluation" - } - ], - "resultType": ".google.cloud.ces.v1beta.Evaluation", - "client": { - "shortName": "EvaluationServiceClient", - "fullName": "google.cloud.ces.v1beta.EvaluationServiceClient" - }, - "method": { - "shortName": "CreateEvaluation", - "fullName": "google.cloud.ces.v1beta.EvaluationService.CreateEvaluation", - "service": { - "shortName": "EvaluationService", - "fullName": "google.cloud.ces.v1beta.EvaluationService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_EvaluationService_GenerateEvaluation_async", - "title": "AgentService generateEvaluation Sample", - "origin": "API_DEFINITION", - "description": " Creates a golden evaluation from a conversation.", - "canonical": true, - "file": "evaluation_service.generate_evaluation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateEvaluation", - "fullName": "google.cloud.ces.v1beta.EvaluationService.GenerateEvaluation", - "async": true, - "parameters": [ - { - "name": "conversation", - "type": "TYPE_STRING" - }, - { - "name": "source", - "type": ".google.cloud.ces.v1beta.Conversation.Source" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EvaluationServiceClient", - "fullName": "google.cloud.ces.v1beta.EvaluationServiceClient" - }, - "method": { - "shortName": "GenerateEvaluation", - "fullName": "google.cloud.ces.v1beta.EvaluationService.GenerateEvaluation", - "service": { - "shortName": "EvaluationService", - "fullName": "google.cloud.ces.v1beta.EvaluationService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_EvaluationService_ImportEvaluations_async", - "title": "AgentService importEvaluations Sample", - "origin": "API_DEFINITION", - "description": " Imports evaluations into the app.", - "canonical": true, - "file": "evaluation_service.import_evaluations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportEvaluations", - "fullName": "google.cloud.ces.v1beta.EvaluationService.ImportEvaluations", - "async": true, - "parameters": [ - { - "name": "conversation_list", - "type": ".google.cloud.ces.v1beta.ImportEvaluationsRequest.ConversationList" - }, - { - "name": "gcs_uri", - "type": "TYPE_STRING" - }, - { - "name": "csv_content", - "type": "TYPE_BYTES" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "import_options", - "type": ".google.cloud.ces.v1beta.ImportEvaluationsRequest.ImportOptions" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EvaluationServiceClient", - "fullName": "google.cloud.ces.v1beta.EvaluationServiceClient" - }, - "method": { - "shortName": "ImportEvaluations", - "fullName": "google.cloud.ces.v1beta.EvaluationService.ImportEvaluations", - "service": { - "shortName": "EvaluationService", - "fullName": "google.cloud.ces.v1beta.EvaluationService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_EvaluationService_CreateEvaluationDataset_async", - "title": "AgentService createEvaluationDataset Sample", - "origin": "API_DEFINITION", - "description": " Creates an evaluation dataset.", - "canonical": true, - "file": "evaluation_service.create_evaluation_dataset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateEvaluationDataset", - "fullName": "google.cloud.ces.v1beta.EvaluationService.CreateEvaluationDataset", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "evaluation_dataset_id", - "type": "TYPE_STRING" - }, - { - "name": "evaluation_dataset", - "type": ".google.cloud.ces.v1beta.EvaluationDataset" - } - ], - "resultType": ".google.cloud.ces.v1beta.EvaluationDataset", - "client": { - "shortName": "EvaluationServiceClient", - "fullName": "google.cloud.ces.v1beta.EvaluationServiceClient" - }, - "method": { - "shortName": "CreateEvaluationDataset", - "fullName": "google.cloud.ces.v1beta.EvaluationService.CreateEvaluationDataset", - "service": { - "shortName": "EvaluationService", - "fullName": "google.cloud.ces.v1beta.EvaluationService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_EvaluationService_UpdateEvaluation_async", - "title": "AgentService updateEvaluation Sample", - "origin": "API_DEFINITION", - "description": " Updates an evaluation.", - "canonical": true, - "file": "evaluation_service.update_evaluation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateEvaluation", - "fullName": "google.cloud.ces.v1beta.EvaluationService.UpdateEvaluation", - "async": true, - "parameters": [ - { - "name": "evaluation", - "type": ".google.cloud.ces.v1beta.Evaluation" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.ces.v1beta.Evaluation", - "client": { - "shortName": "EvaluationServiceClient", - "fullName": "google.cloud.ces.v1beta.EvaluationServiceClient" - }, - "method": { - "shortName": "UpdateEvaluation", - "fullName": "google.cloud.ces.v1beta.EvaluationService.UpdateEvaluation", - "service": { - "shortName": "EvaluationService", - "fullName": "google.cloud.ces.v1beta.EvaluationService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_EvaluationService_UpdateEvaluationDataset_async", - "title": "AgentService updateEvaluationDataset Sample", - "origin": "API_DEFINITION", - "description": " Updates an evaluation dataset.", - "canonical": true, - "file": "evaluation_service.update_evaluation_dataset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateEvaluationDataset", - "fullName": "google.cloud.ces.v1beta.EvaluationService.UpdateEvaluationDataset", - "async": true, - "parameters": [ - { - "name": "evaluation_dataset", - "type": ".google.cloud.ces.v1beta.EvaluationDataset" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.ces.v1beta.EvaluationDataset", - "client": { - "shortName": "EvaluationServiceClient", - "fullName": "google.cloud.ces.v1beta.EvaluationServiceClient" - }, - "method": { - "shortName": "UpdateEvaluationDataset", - "fullName": "google.cloud.ces.v1beta.EvaluationService.UpdateEvaluationDataset", - "service": { - "shortName": "EvaluationService", - "fullName": "google.cloud.ces.v1beta.EvaluationService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_EvaluationService_DeleteEvaluation_async", - "title": "AgentService deleteEvaluation Sample", - "origin": "API_DEFINITION", - "description": " Deletes an evaluation.", - "canonical": true, - "file": "evaluation_service.delete_evaluation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteEvaluation", - "fullName": "google.cloud.ces.v1beta.EvaluationService.DeleteEvaluation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "EvaluationServiceClient", - "fullName": "google.cloud.ces.v1beta.EvaluationServiceClient" - }, - "method": { - "shortName": "DeleteEvaluation", - "fullName": "google.cloud.ces.v1beta.EvaluationService.DeleteEvaluation", - "service": { - "shortName": "EvaluationService", - "fullName": "google.cloud.ces.v1beta.EvaluationService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_EvaluationService_DeleteEvaluationResult_async", - "title": "AgentService deleteEvaluationResult Sample", - "origin": "API_DEFINITION", - "description": " Deletes an evaluation result.", - "canonical": true, - "file": "evaluation_service.delete_evaluation_result.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteEvaluationResult", - "fullName": "google.cloud.ces.v1beta.EvaluationService.DeleteEvaluationResult", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "EvaluationServiceClient", - "fullName": "google.cloud.ces.v1beta.EvaluationServiceClient" - }, - "method": { - "shortName": "DeleteEvaluationResult", - "fullName": "google.cloud.ces.v1beta.EvaluationService.DeleteEvaluationResult", - "service": { - "shortName": "EvaluationService", - "fullName": "google.cloud.ces.v1beta.EvaluationService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_EvaluationService_DeleteEvaluationDataset_async", - "title": "AgentService deleteEvaluationDataset Sample", - "origin": "API_DEFINITION", - "description": " Deletes an evaluation dataset.", - "canonical": true, - "file": "evaluation_service.delete_evaluation_dataset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteEvaluationDataset", - "fullName": "google.cloud.ces.v1beta.EvaluationService.DeleteEvaluationDataset", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "EvaluationServiceClient", - "fullName": "google.cloud.ces.v1beta.EvaluationServiceClient" - }, - "method": { - "shortName": "DeleteEvaluationDataset", - "fullName": "google.cloud.ces.v1beta.EvaluationService.DeleteEvaluationDataset", - "service": { - "shortName": "EvaluationService", - "fullName": "google.cloud.ces.v1beta.EvaluationService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_EvaluationService_DeleteEvaluationRun_async", - "title": "AgentService deleteEvaluationRun Sample", - "origin": "API_DEFINITION", - "description": " Deletes an evaluation run.", - "canonical": true, - "file": "evaluation_service.delete_evaluation_run.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteEvaluationRun", - "fullName": "google.cloud.ces.v1beta.EvaluationService.DeleteEvaluationRun", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EvaluationServiceClient", - "fullName": "google.cloud.ces.v1beta.EvaluationServiceClient" - }, - "method": { - "shortName": "DeleteEvaluationRun", - "fullName": "google.cloud.ces.v1beta.EvaluationService.DeleteEvaluationRun", - "service": { - "shortName": "EvaluationService", - "fullName": "google.cloud.ces.v1beta.EvaluationService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_EvaluationService_GetEvaluation_async", - "title": "AgentService getEvaluation Sample", - "origin": "API_DEFINITION", - "description": " Gets details of the specified evaluation.", - "canonical": true, - "file": "evaluation_service.get_evaluation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEvaluation", - "fullName": "google.cloud.ces.v1beta.EvaluationService.GetEvaluation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.ces.v1beta.Evaluation", - "client": { - "shortName": "EvaluationServiceClient", - "fullName": "google.cloud.ces.v1beta.EvaluationServiceClient" - }, - "method": { - "shortName": "GetEvaluation", - "fullName": "google.cloud.ces.v1beta.EvaluationService.GetEvaluation", - "service": { - "shortName": "EvaluationService", - "fullName": "google.cloud.ces.v1beta.EvaluationService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_EvaluationService_GetEvaluationResult_async", - "title": "AgentService getEvaluationResult Sample", - "origin": "API_DEFINITION", - "description": " Gets details of the specified evaluation result.", - "canonical": true, - "file": "evaluation_service.get_evaluation_result.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEvaluationResult", - "fullName": "google.cloud.ces.v1beta.EvaluationService.GetEvaluationResult", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.ces.v1beta.EvaluationResult", - "client": { - "shortName": "EvaluationServiceClient", - "fullName": "google.cloud.ces.v1beta.EvaluationServiceClient" - }, - "method": { - "shortName": "GetEvaluationResult", - "fullName": "google.cloud.ces.v1beta.EvaluationService.GetEvaluationResult", - "service": { - "shortName": "EvaluationService", - "fullName": "google.cloud.ces.v1beta.EvaluationService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_EvaluationService_GetEvaluationDataset_async", - "title": "AgentService getEvaluationDataset Sample", - "origin": "API_DEFINITION", - "description": " Gets details of the specified evaluation dataset.", - "canonical": true, - "file": "evaluation_service.get_evaluation_dataset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEvaluationDataset", - "fullName": "google.cloud.ces.v1beta.EvaluationService.GetEvaluationDataset", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.ces.v1beta.EvaluationDataset", - "client": { - "shortName": "EvaluationServiceClient", - "fullName": "google.cloud.ces.v1beta.EvaluationServiceClient" - }, - "method": { - "shortName": "GetEvaluationDataset", - "fullName": "google.cloud.ces.v1beta.EvaluationService.GetEvaluationDataset", - "service": { - "shortName": "EvaluationService", - "fullName": "google.cloud.ces.v1beta.EvaluationService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_EvaluationService_GetEvaluationRun_async", - "title": "AgentService getEvaluationRun Sample", - "origin": "API_DEFINITION", - "description": " Gets details of the specified evaluation run.", - "canonical": true, - "file": "evaluation_service.get_evaluation_run.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEvaluationRun", - "fullName": "google.cloud.ces.v1beta.EvaluationService.GetEvaluationRun", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.ces.v1beta.EvaluationRun", - "client": { - "shortName": "EvaluationServiceClient", - "fullName": "google.cloud.ces.v1beta.EvaluationServiceClient" - }, - "method": { - "shortName": "GetEvaluationRun", - "fullName": "google.cloud.ces.v1beta.EvaluationService.GetEvaluationRun", - "service": { - "shortName": "EvaluationService", - "fullName": "google.cloud.ces.v1beta.EvaluationService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_EvaluationService_ListEvaluations_async", - "title": "AgentService listEvaluations Sample", - "origin": "API_DEFINITION", - "description": " Lists all evaluations in the given app.", - "canonical": true, - "file": "evaluation_service.list_evaluations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 93, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEvaluations", - "fullName": "google.cloud.ces.v1beta.EvaluationService.ListEvaluations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "evaluation_filter", - "type": "TYPE_STRING" - }, - { - "name": "evaluation_run_filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "last_ten_results", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.ces.v1beta.ListEvaluationsResponse", - "client": { - "shortName": "EvaluationServiceClient", - "fullName": "google.cloud.ces.v1beta.EvaluationServiceClient" - }, - "method": { - "shortName": "ListEvaluations", - "fullName": "google.cloud.ces.v1beta.EvaluationService.ListEvaluations", - "service": { - "shortName": "EvaluationService", - "fullName": "google.cloud.ces.v1beta.EvaluationService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_EvaluationService_ListEvaluationResults_async", - "title": "AgentService listEvaluationResults Sample", - "origin": "API_DEFINITION", - "description": " Lists all evaluation results for a given evaluation.", - "canonical": true, - "file": "evaluation_service.list_evaluation_results.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEvaluationResults", - "fullName": "google.cloud.ces.v1beta.EvaluationService.ListEvaluationResults", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.ces.v1beta.ListEvaluationResultsResponse", - "client": { - "shortName": "EvaluationServiceClient", - "fullName": "google.cloud.ces.v1beta.EvaluationServiceClient" - }, - "method": { - "shortName": "ListEvaluationResults", - "fullName": "google.cloud.ces.v1beta.EvaluationService.ListEvaluationResults", - "service": { - "shortName": "EvaluationService", - "fullName": "google.cloud.ces.v1beta.EvaluationService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_EvaluationService_ListEvaluationDatasets_async", - "title": "AgentService listEvaluationDatasets Sample", - "origin": "API_DEFINITION", - "description": " Lists all evaluation datasets in the given app.", - "canonical": true, - "file": "evaluation_service.list_evaluation_datasets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEvaluationDatasets", - "fullName": "google.cloud.ces.v1beta.EvaluationService.ListEvaluationDatasets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.ces.v1beta.ListEvaluationDatasetsResponse", - "client": { - "shortName": "EvaluationServiceClient", - "fullName": "google.cloud.ces.v1beta.EvaluationServiceClient" - }, - "method": { - "shortName": "ListEvaluationDatasets", - "fullName": "google.cloud.ces.v1beta.EvaluationService.ListEvaluationDatasets", - "service": { - "shortName": "EvaluationService", - "fullName": "google.cloud.ces.v1beta.EvaluationService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_EvaluationService_ListEvaluationRuns_async", - "title": "AgentService listEvaluationRuns Sample", - "origin": "API_DEFINITION", - "description": " Lists all evaluation runs in the given app.", - "canonical": true, - "file": "evaluation_service.list_evaluation_runs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEvaluationRuns", - "fullName": "google.cloud.ces.v1beta.EvaluationService.ListEvaluationRuns", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.ces.v1beta.ListEvaluationRunsResponse", - "client": { - "shortName": "EvaluationServiceClient", - "fullName": "google.cloud.ces.v1beta.EvaluationServiceClient" - }, - "method": { - "shortName": "ListEvaluationRuns", - "fullName": "google.cloud.ces.v1beta.EvaluationService.ListEvaluationRuns", - "service": { - "shortName": "EvaluationService", - "fullName": "google.cloud.ces.v1beta.EvaluationService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_EvaluationService_ListEvaluationExpectations_async", - "title": "AgentService listEvaluationExpectations Sample", - "origin": "API_DEFINITION", - "description": " Lists all evaluation expectations in the given app.", - "canonical": true, - "file": "evaluation_service.list_evaluation_expectations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEvaluationExpectations", - "fullName": "google.cloud.ces.v1beta.EvaluationService.ListEvaluationExpectations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.ces.v1beta.ListEvaluationExpectationsResponse", - "client": { - "shortName": "EvaluationServiceClient", - "fullName": "google.cloud.ces.v1beta.EvaluationServiceClient" - }, - "method": { - "shortName": "ListEvaluationExpectations", - "fullName": "google.cloud.ces.v1beta.EvaluationService.ListEvaluationExpectations", - "service": { - "shortName": "EvaluationService", - "fullName": "google.cloud.ces.v1beta.EvaluationService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_EvaluationService_GetEvaluationExpectation_async", - "title": "AgentService getEvaluationExpectation Sample", - "origin": "API_DEFINITION", - "description": " Gets details of the specified evaluation expectation.", - "canonical": true, - "file": "evaluation_service.get_evaluation_expectation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEvaluationExpectation", - "fullName": "google.cloud.ces.v1beta.EvaluationService.GetEvaluationExpectation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.ces.v1beta.EvaluationExpectation", - "client": { - "shortName": "EvaluationServiceClient", - "fullName": "google.cloud.ces.v1beta.EvaluationServiceClient" - }, - "method": { - "shortName": "GetEvaluationExpectation", - "fullName": "google.cloud.ces.v1beta.EvaluationService.GetEvaluationExpectation", - "service": { - "shortName": "EvaluationService", - "fullName": "google.cloud.ces.v1beta.EvaluationService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_EvaluationService_CreateEvaluationExpectation_async", - "title": "AgentService createEvaluationExpectation Sample", - "origin": "API_DEFINITION", - "description": " Creates an evaluation expectation.", - "canonical": true, - "file": "evaluation_service.create_evaluation_expectation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateEvaluationExpectation", - "fullName": "google.cloud.ces.v1beta.EvaluationService.CreateEvaluationExpectation", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "evaluation_expectation_id", - "type": "TYPE_STRING" - }, - { - "name": "evaluation_expectation", - "type": ".google.cloud.ces.v1beta.EvaluationExpectation" - } - ], - "resultType": ".google.cloud.ces.v1beta.EvaluationExpectation", - "client": { - "shortName": "EvaluationServiceClient", - "fullName": "google.cloud.ces.v1beta.EvaluationServiceClient" - }, - "method": { - "shortName": "CreateEvaluationExpectation", - "fullName": "google.cloud.ces.v1beta.EvaluationService.CreateEvaluationExpectation", - "service": { - "shortName": "EvaluationService", - "fullName": "google.cloud.ces.v1beta.EvaluationService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_EvaluationService_UpdateEvaluationExpectation_async", - "title": "AgentService updateEvaluationExpectation Sample", - "origin": "API_DEFINITION", - "description": " Updates an evaluation expectation.", - "canonical": true, - "file": "evaluation_service.update_evaluation_expectation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateEvaluationExpectation", - "fullName": "google.cloud.ces.v1beta.EvaluationService.UpdateEvaluationExpectation", - "async": true, - "parameters": [ - { - "name": "evaluation_expectation", - "type": ".google.cloud.ces.v1beta.EvaluationExpectation" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.ces.v1beta.EvaluationExpectation", - "client": { - "shortName": "EvaluationServiceClient", - "fullName": "google.cloud.ces.v1beta.EvaluationServiceClient" - }, - "method": { - "shortName": "UpdateEvaluationExpectation", - "fullName": "google.cloud.ces.v1beta.EvaluationService.UpdateEvaluationExpectation", - "service": { - "shortName": "EvaluationService", - "fullName": "google.cloud.ces.v1beta.EvaluationService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_EvaluationService_DeleteEvaluationExpectation_async", - "title": "AgentService deleteEvaluationExpectation Sample", - "origin": "API_DEFINITION", - "description": " Deletes an evaluation expectation.", - "canonical": true, - "file": "evaluation_service.delete_evaluation_expectation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteEvaluationExpectation", - "fullName": "google.cloud.ces.v1beta.EvaluationService.DeleteEvaluationExpectation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "EvaluationServiceClient", - "fullName": "google.cloud.ces.v1beta.EvaluationServiceClient" - }, - "method": { - "shortName": "DeleteEvaluationExpectation", - "fullName": "google.cloud.ces.v1beta.EvaluationService.DeleteEvaluationExpectation", - "service": { - "shortName": "EvaluationService", - "fullName": "google.cloud.ces.v1beta.EvaluationService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_EvaluationService_CreateScheduledEvaluationRun_async", - "title": "AgentService createScheduledEvaluationRun Sample", - "origin": "API_DEFINITION", - "description": " Creates a scheduled evaluation run.", - "canonical": true, - "file": "evaluation_service.create_scheduled_evaluation_run.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateScheduledEvaluationRun", - "fullName": "google.cloud.ces.v1beta.EvaluationService.CreateScheduledEvaluationRun", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "scheduled_evaluation_run_id", - "type": "TYPE_STRING" - }, - { - "name": "scheduled_evaluation_run", - "type": ".google.cloud.ces.v1beta.ScheduledEvaluationRun" - } - ], - "resultType": ".google.cloud.ces.v1beta.ScheduledEvaluationRun", - "client": { - "shortName": "EvaluationServiceClient", - "fullName": "google.cloud.ces.v1beta.EvaluationServiceClient" - }, - "method": { - "shortName": "CreateScheduledEvaluationRun", - "fullName": "google.cloud.ces.v1beta.EvaluationService.CreateScheduledEvaluationRun", - "service": { - "shortName": "EvaluationService", - "fullName": "google.cloud.ces.v1beta.EvaluationService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_EvaluationService_GetScheduledEvaluationRun_async", - "title": "AgentService getScheduledEvaluationRun Sample", - "origin": "API_DEFINITION", - "description": " Gets details of the specified scheduled evaluation run.", - "canonical": true, - "file": "evaluation_service.get_scheduled_evaluation_run.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetScheduledEvaluationRun", - "fullName": "google.cloud.ces.v1beta.EvaluationService.GetScheduledEvaluationRun", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.ces.v1beta.ScheduledEvaluationRun", - "client": { - "shortName": "EvaluationServiceClient", - "fullName": "google.cloud.ces.v1beta.EvaluationServiceClient" - }, - "method": { - "shortName": "GetScheduledEvaluationRun", - "fullName": "google.cloud.ces.v1beta.EvaluationService.GetScheduledEvaluationRun", - "service": { - "shortName": "EvaluationService", - "fullName": "google.cloud.ces.v1beta.EvaluationService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_EvaluationService_ListScheduledEvaluationRuns_async", - "title": "AgentService listScheduledEvaluationRuns Sample", - "origin": "API_DEFINITION", - "description": " Lists all scheduled evaluation runs in the given app.", - "canonical": true, - "file": "evaluation_service.list_scheduled_evaluation_runs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListScheduledEvaluationRuns", - "fullName": "google.cloud.ces.v1beta.EvaluationService.ListScheduledEvaluationRuns", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.ces.v1beta.ListScheduledEvaluationRunsResponse", - "client": { - "shortName": "EvaluationServiceClient", - "fullName": "google.cloud.ces.v1beta.EvaluationServiceClient" - }, - "method": { - "shortName": "ListScheduledEvaluationRuns", - "fullName": "google.cloud.ces.v1beta.EvaluationService.ListScheduledEvaluationRuns", - "service": { - "shortName": "EvaluationService", - "fullName": "google.cloud.ces.v1beta.EvaluationService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_EvaluationService_UpdateScheduledEvaluationRun_async", - "title": "AgentService updateScheduledEvaluationRun Sample", - "origin": "API_DEFINITION", - "description": " Updates a scheduled evaluation run.", - "canonical": true, - "file": "evaluation_service.update_scheduled_evaluation_run.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateScheduledEvaluationRun", - "fullName": "google.cloud.ces.v1beta.EvaluationService.UpdateScheduledEvaluationRun", - "async": true, - "parameters": [ - { - "name": "scheduled_evaluation_run", - "type": ".google.cloud.ces.v1beta.ScheduledEvaluationRun" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.ces.v1beta.ScheduledEvaluationRun", - "client": { - "shortName": "EvaluationServiceClient", - "fullName": "google.cloud.ces.v1beta.EvaluationServiceClient" - }, - "method": { - "shortName": "UpdateScheduledEvaluationRun", - "fullName": "google.cloud.ces.v1beta.EvaluationService.UpdateScheduledEvaluationRun", - "service": { - "shortName": "EvaluationService", - "fullName": "google.cloud.ces.v1beta.EvaluationService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_EvaluationService_DeleteScheduledEvaluationRun_async", - "title": "AgentService deleteScheduledEvaluationRun Sample", - "origin": "API_DEFINITION", - "description": " Deletes a scheduled evaluation run.", - "canonical": true, - "file": "evaluation_service.delete_scheduled_evaluation_run.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteScheduledEvaluationRun", - "fullName": "google.cloud.ces.v1beta.EvaluationService.DeleteScheduledEvaluationRun", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "EvaluationServiceClient", - "fullName": "google.cloud.ces.v1beta.EvaluationServiceClient" - }, - "method": { - "shortName": "DeleteScheduledEvaluationRun", - "fullName": "google.cloud.ces.v1beta.EvaluationService.DeleteScheduledEvaluationRun", - "service": { - "shortName": "EvaluationService", - "fullName": "google.cloud.ces.v1beta.EvaluationService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_EvaluationService_TestPersonaVoice_async", - "title": "AgentService testPersonaVoice Sample", - "origin": "API_DEFINITION", - "description": " Tests the voice of a persona. Also accepts a default persona.", - "canonical": true, - "file": "evaluation_service.test_persona_voice.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestPersonaVoice", - "fullName": "google.cloud.ces.v1beta.EvaluationService.TestPersonaVoice", - "async": true, - "parameters": [ - { - "name": "app", - "type": "TYPE_STRING" - }, - { - "name": "persona_id", - "type": "TYPE_STRING" - }, - { - "name": "text", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.ces.v1beta.TestPersonaVoiceResponse", - "client": { - "shortName": "EvaluationServiceClient", - "fullName": "google.cloud.ces.v1beta.EvaluationServiceClient" - }, - "method": { - "shortName": "TestPersonaVoice", - "fullName": "google.cloud.ces.v1beta.EvaluationService.TestPersonaVoice", - "service": { - "shortName": "EvaluationService", - "fullName": "google.cloud.ces.v1beta.EvaluationService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_EvaluationService_ExportEvaluations_async", - "title": "AgentService exportEvaluations Sample", - "origin": "API_DEFINITION", - "description": " Exports evaluations.", - "canonical": true, - "file": "evaluation_service.export_evaluations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportEvaluations", - "fullName": "google.cloud.ces.v1beta.EvaluationService.ExportEvaluations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "names", - "type": "TYPE_STRING[]" - }, - { - "name": "export_options", - "type": ".google.cloud.ces.v1beta.ExportOptions" - }, - { - "name": "include_evaluation_results", - "type": "TYPE_BOOL" - }, - { - "name": "include_evaluations", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EvaluationServiceClient", - "fullName": "google.cloud.ces.v1beta.EvaluationServiceClient" - }, - "method": { - "shortName": "ExportEvaluations", - "fullName": "google.cloud.ces.v1beta.EvaluationService.ExportEvaluations", - "service": { - "shortName": "EvaluationService", - "fullName": "google.cloud.ces.v1beta.EvaluationService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_SessionService_RunSession_async", - "title": "AgentService runSession Sample", - "origin": "API_DEFINITION", - "description": " Initiates a single-turn interaction with the CES agent within a session.", - "canonical": true, - "file": "session_service.run_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RunSession", - "fullName": "google.cloud.ces.v1beta.SessionService.RunSession", - "async": true, - "parameters": [ - { - "name": "config", - "type": ".google.cloud.ces.v1beta.SessionConfig" - }, - { - "name": "inputs", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.ces.v1beta.RunSessionResponse", - "client": { - "shortName": "SessionServiceClient", - "fullName": "google.cloud.ces.v1beta.SessionServiceClient" - }, - "method": { - "shortName": "RunSession", - "fullName": "google.cloud.ces.v1beta.SessionService.RunSession", - "service": { - "shortName": "SessionService", - "fullName": "google.cloud.ces.v1beta.SessionService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_SessionService_StreamRunSession_async", - "title": "AgentService streamRunSession Sample", - "origin": "API_DEFINITION", - "description": " Initiates a single-turn interaction with the CES agent. Uses server-side streaming to deliver incremental results and partial responses as they are generated. By default, complete responses (e.g., messages from callbacks or full LLM responses) are sent to the client as soon as they are available. To enable streaming individual text chunks directly from the model, set [enable_text_streaming][google.cloud.ces.v1beta.SessionConfig.enable_text_streaming] to true.", - "canonical": true, - "file": "session_service.stream_run_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StreamRunSession", - "fullName": "google.cloud.ces.v1beta.SessionService.StreamRunSession", - "async": true, - "parameters": [ - { - "name": "config", - "type": ".google.cloud.ces.v1beta.SessionConfig" - }, - { - "name": "inputs", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.ces.v1beta.RunSessionResponse", - "client": { - "shortName": "SessionServiceClient", - "fullName": "google.cloud.ces.v1beta.SessionServiceClient" - }, - "method": { - "shortName": "StreamRunSession", - "fullName": "google.cloud.ces.v1beta.SessionService.StreamRunSession", - "service": { - "shortName": "SessionService", - "fullName": "google.cloud.ces.v1beta.SessionService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_SessionService_BidiRunSession_async", - "title": "AgentService bidiRunSession Sample", - "origin": "API_DEFINITION", - "description": " Establishes a bidirectional streaming connection with the CES agent. The agent processes continuous multimodal inputs (e.g., text, audio) and generates real-time multimodal output streams. --- Client Request Stream --- The client streams requests in the following order: 1. Initialization: The first message must contain [SessionConfig][google.cloud.ces.v1beta.BidiSessionClientMessage.config]. For audio sessions, this should also include [InputAudioConfig][google.cloud.ces.v1beta.SessionConfig.input_audio_config] and [OutputAudioConfig][google.cloud.ces.v1beta.SessionConfig.output_audio_config] to define audio processing and synthesis parameters. 2. Interaction: Subsequent messages stream [SessionInput][google.cloud.ces.v1beta.BidiSessionClientMessage.realtime_input] containing real-time user input data. 3. Termination: The client should half-close the stream when there is no more user input. It should also half-close upon receiving [EndSession][google.cloud.ces.v1beta.BidiSessionServerMessage.end_session] or [GoAway][google.cloud.ces.v1beta.BidiSessionServerMessage.go_away] from the agent. --- Server Response Stream --- For each interaction turn, the agent streams messages in the following sequence: 1. Speech Recognition (First N messages): Contains [RecognitionResult][google.cloud.ces.v1beta.BidiSessionServerMessage.recognition_result] representing the concatenated user speech segments captured so far. This is only populated for audio sessions. 2. Response (Next M messages): Contains [SessionOutput][google.cloud.ces.v1beta.BidiSessionServerMessage.session_output] delivering the agent's response in various modalities (e.g., text, audio). 3. Turn Completion (Final message of the turn): Contains [SessionOutput][google.cloud.ces.v1beta.BidiSessionServerMessage.session_output] with [turn_completed][google.cloud.ces.v1beta.SessionOutput.turn_completed] set to true. This signals the end of the current turn and includes [DiagnosticInfo][google.cloud.ces.v1beta.SessionOutput.diagnostic_info] with execution details. --- Audio Best Practices --- 1. Streaming: Stream [audio data][google.cloud.ces.v1beta.SessionInput.audio] **CONTINUOUSLY**, even during silence. Recommended chunk size: 40-120ms (balances latency vs. efficiency). 2. Playback & Interruption: Play [audio responses][google.cloud.ces.v1beta.SessionOutput.audio] upon receipt. Stop playback immediately if an [InterruptionSignal][google.cloud.ces.v1beta.BidiSessionServerMessage.interruption_signal] is received (e.g., user barge-in or new agent response).", - "canonical": true, - "file": "session_service.bidi_run_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BidiRunSession", - "fullName": "google.cloud.ces.v1beta.SessionService.BidiRunSession", - "async": true, - "parameters": [ - { - "name": "config", - "type": ".google.cloud.ces.v1beta.SessionConfig" - }, - { - "name": "realtime_input", - "type": ".google.cloud.ces.v1beta.SessionInput" - } - ], - "resultType": ".google.cloud.ces.v1beta.BidiSessionServerMessage", - "client": { - "shortName": "SessionServiceClient", - "fullName": "google.cloud.ces.v1beta.SessionServiceClient" - }, - "method": { - "shortName": "BidiRunSession", - "fullName": "google.cloud.ces.v1beta.SessionService.BidiRunSession", - "service": { - "shortName": "SessionService", - "fullName": "google.cloud.ces.v1beta.SessionService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_ToolService_ExecuteTool_async", - "title": "AgentService executeTool Sample", - "origin": "API_DEFINITION", - "description": " Executes the given tool with the given arguments.", - "canonical": true, - "file": "tool_service.execute_tool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExecuteTool", - "fullName": "google.cloud.ces.v1beta.ToolService.ExecuteTool", - "async": true, - "parameters": [ - { - "name": "tool", - "type": "TYPE_STRING" - }, - { - "name": "toolset_tool", - "type": ".google.cloud.ces.v1beta.ToolsetTool" - }, - { - "name": "variables", - "type": ".google.protobuf.Struct" - }, - { - "name": "context", - "type": ".google.protobuf.Struct" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "args", - "type": ".google.protobuf.Struct" - }, - { - "name": "mock_config", - "type": ".google.cloud.ces.v1beta.MockConfig" - } - ], - "resultType": ".google.cloud.ces.v1beta.ExecuteToolResponse", - "client": { - "shortName": "ToolServiceClient", - "fullName": "google.cloud.ces.v1beta.ToolServiceClient" - }, - "method": { - "shortName": "ExecuteTool", - "fullName": "google.cloud.ces.v1beta.ToolService.ExecuteTool", - "service": { - "shortName": "ToolService", - "fullName": "google.cloud.ces.v1beta.ToolService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_ToolService_RetrieveToolSchema_async", - "title": "AgentService retrieveToolSchema Sample", - "origin": "API_DEFINITION", - "description": " Retrieve the schema of the given tool. The schema is computed on the fly for the given instance of the tool.", - "canonical": true, - "file": "tool_service.retrieve_tool_schema.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RetrieveToolSchema", - "fullName": "google.cloud.ces.v1beta.ToolService.RetrieveToolSchema", - "async": true, - "parameters": [ - { - "name": "tool", - "type": "TYPE_STRING" - }, - { - "name": "toolset_tool", - "type": ".google.cloud.ces.v1beta.ToolsetTool" - }, - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.ces.v1beta.RetrieveToolSchemaResponse", - "client": { - "shortName": "ToolServiceClient", - "fullName": "google.cloud.ces.v1beta.ToolServiceClient" - }, - "method": { - "shortName": "RetrieveToolSchema", - "fullName": "google.cloud.ces.v1beta.ToolService.RetrieveToolSchema", - "service": { - "shortName": "ToolService", - "fullName": "google.cloud.ces.v1beta.ToolService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_ToolService_RetrieveTools_async", - "title": "AgentService retrieveTools Sample", - "origin": "API_DEFINITION", - "description": " Retrieve the list of tools included in the specified toolset.", - "canonical": true, - "file": "tool_service.retrieve_tools.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RetrieveTools", - "fullName": "google.cloud.ces.v1beta.ToolService.RetrieveTools", - "async": true, - "parameters": [ - { - "name": "toolset", - "type": "TYPE_STRING" - }, - { - "name": "tool_ids", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.cloud.ces.v1beta.RetrieveToolsResponse", - "client": { - "shortName": "ToolServiceClient", - "fullName": "google.cloud.ces.v1beta.ToolServiceClient" - }, - "method": { - "shortName": "RetrieveTools", - "fullName": "google.cloud.ces.v1beta.ToolService.RetrieveTools", - "service": { - "shortName": "ToolService", - "fullName": "google.cloud.ces.v1beta.ToolService" - } - } - } - }, - { - "regionTag": "ces_v1beta_generated_WidgetService_GenerateChatToken_async", - "title": "AgentService generateChatToken Sample", - "origin": "API_DEFINITION", - "description": " Generates a session scoped token for chat widget to authenticate with Session APIs.", - "canonical": true, - "file": "widget_service.generate_chat_token.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateChatToken", - "fullName": "google.cloud.ces.v1beta.WidgetService.GenerateChatToken", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "deployment", - "type": "TYPE_STRING" - }, - { - "name": "recaptcha_token", - "type": "TYPE_STRING" - }, - { - "name": "live_handoff_enabled", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.ces.v1beta.GenerateChatTokenResponse", - "client": { - "shortName": "WidgetServiceClient", - "fullName": "google.cloud.ces.v1beta.WidgetServiceClient" - }, - "method": { - "shortName": "GenerateChatToken", - "fullName": "google.cloud.ces.v1beta.WidgetService.GenerateChatToken", - "service": { - "shortName": "WidgetService", - "fullName": "google.cloud.ces.v1beta.WidgetService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-channel/samples/generated/v1/snippet_metadata_google.cloud.channel.v1.json b/packages/google-cloud-channel/samples/generated/v1/snippet_metadata_google.cloud.channel.v1.json deleted file mode 100644 index 07da0f556cfe..000000000000 --- a/packages/google-cloud-channel/samples/generated/v1/snippet_metadata_google.cloud.channel.v1.json +++ /dev/null @@ -1,2555 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-channel", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.channel.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "cloudchannel_v1_generated_CloudChannelReportsService_RunReportJob_async", - "title": "CloudChannelReportsService runReportJob Sample", - "origin": "API_DEFINITION", - "description": " Begins generation of data for a given report. The report identifier is a UID (for example, `613bf59q`). Possible error codes: * PERMISSION_DENIED: The user doesn't have access to this report. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND: The report identifier was not found. * INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. * UNKNOWN: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. Return value: The ID of a long-running operation. To get the results of the operation, call the GetOperation method of CloudChannelOperationsService. The Operation metadata contains an instance of [OperationMetadata][google.cloud.channel.v1.OperationMetadata]. To get the results of report generation, call [CloudChannelReportsService.FetchReportResults][google.cloud.channel.v1.CloudChannelReportsService.FetchReportResults] with the [RunReportJobResponse.report_job][google.cloud.channel.v1.RunReportJobResponse.report_job]. Deprecated: Please use [Export Channel Services data to BigQuery](https://cloud.google.com/channel/docs/rebilling/export-data-to-bigquery) instead.", - "canonical": true, - "file": "cloud_channel_reports_service.run_report_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RunReportJob", - "fullName": "google.cloud.channel.v1.CloudChannelReportsService.RunReportJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "date_range", - "type": ".google.cloud.channel.v1.DateRange" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudChannelReportsServiceClient", - "fullName": "google.cloud.channel.v1.CloudChannelReportsServiceClient" - }, - "method": { - "shortName": "RunReportJob", - "fullName": "google.cloud.channel.v1.CloudChannelReportsService.RunReportJob", - "service": { - "shortName": "CloudChannelReportsService", - "fullName": "google.cloud.channel.v1.CloudChannelReportsService" - } - } - } - }, - { - "regionTag": "cloudchannel_v1_generated_CloudChannelReportsService_FetchReportResults_async", - "title": "CloudChannelReportsService fetchReportResults Sample", - "origin": "API_DEFINITION", - "description": " Retrieves data generated by [CloudChannelReportsService.RunReportJob][google.cloud.channel.v1.CloudChannelReportsService.RunReportJob]. Deprecated: Please use [Export Channel Services data to BigQuery](https://cloud.google.com/channel/docs/rebilling/export-data-to-bigquery) instead.", - "canonical": true, - "file": "cloud_channel_reports_service.fetch_report_results.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchReportResults", - "fullName": "google.cloud.channel.v1.CloudChannelReportsService.FetchReportResults", - "async": true, - "parameters": [ - { - "name": "report_job", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "partition_keys", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.cloud.channel.v1.FetchReportResultsResponse", - "client": { - "shortName": "CloudChannelReportsServiceClient", - "fullName": "google.cloud.channel.v1.CloudChannelReportsServiceClient" - }, - "method": { - "shortName": "FetchReportResults", - "fullName": "google.cloud.channel.v1.CloudChannelReportsService.FetchReportResults", - "service": { - "shortName": "CloudChannelReportsService", - "fullName": "google.cloud.channel.v1.CloudChannelReportsService" - } - } - } - }, - { - "regionTag": "cloudchannel_v1_generated_CloudChannelReportsService_ListReports_async", - "title": "CloudChannelReportsService listReports Sample", - "origin": "API_DEFINITION", - "description": " Lists the reports that RunReportJob can run. These reports include an ID, a description, and the list of columns that will be in the result. Deprecated: Please use [Export Channel Services data to BigQuery](https://cloud.google.com/channel/docs/rebilling/export-data-to-bigquery) instead.", - "canonical": true, - "file": "cloud_channel_reports_service.list_reports.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListReports", - "fullName": "google.cloud.channel.v1.CloudChannelReportsService.ListReports", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.channel.v1.ListReportsResponse", - "client": { - "shortName": "CloudChannelReportsServiceClient", - "fullName": "google.cloud.channel.v1.CloudChannelReportsServiceClient" - }, - "method": { - "shortName": "ListReports", - "fullName": "google.cloud.channel.v1.CloudChannelReportsService.ListReports", - "service": { - "shortName": "CloudChannelReportsService", - "fullName": "google.cloud.channel.v1.CloudChannelReportsService" - } - } - } - }, - { - "regionTag": "cloudchannel_v1_generated_CloudChannelService_ListCustomers_async", - "title": "CloudChannelReportsService listCustomers Sample", - "origin": "API_DEFINITION", - "description": " List [Customer][google.cloud.channel.v1.Customer]s. Possible error codes: * PERMISSION_DENIED: The reseller account making the request is different from the reseller account in the API request. * INVALID_ARGUMENT: Required request parameters are missing or invalid. Return value: List of [Customer][google.cloud.channel.v1.Customer]s, or an empty list if there are no customers.", - "canonical": true, - "file": "cloud_channel_service.list_customers.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCustomers", - "fullName": "google.cloud.channel.v1.CloudChannelService.ListCustomers", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.channel.v1.ListCustomersResponse", - "client": { - "shortName": "CloudChannelServiceClient", - "fullName": "google.cloud.channel.v1.CloudChannelServiceClient" - }, - "method": { - "shortName": "ListCustomers", - "fullName": "google.cloud.channel.v1.CloudChannelService.ListCustomers", - "service": { - "shortName": "CloudChannelService", - "fullName": "google.cloud.channel.v1.CloudChannelService" - } - } - } - }, - { - "regionTag": "cloudchannel_v1_generated_CloudChannelService_GetCustomer_async", - "title": "CloudChannelReportsService getCustomer Sample", - "origin": "API_DEFINITION", - "description": " Returns the requested [Customer][google.cloud.channel.v1.Customer] resource. Possible error codes: * PERMISSION_DENIED: The reseller account making the request is different from the reseller account in the API request. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND: The customer resource doesn't exist. Usually the result of an invalid name parameter. Return value: The [Customer][google.cloud.channel.v1.Customer] resource.", - "canonical": true, - "file": "cloud_channel_service.get_customer.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCustomer", - "fullName": "google.cloud.channel.v1.CloudChannelService.GetCustomer", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.channel.v1.Customer", - "client": { - "shortName": "CloudChannelServiceClient", - "fullName": "google.cloud.channel.v1.CloudChannelServiceClient" - }, - "method": { - "shortName": "GetCustomer", - "fullName": "google.cloud.channel.v1.CloudChannelService.GetCustomer", - "service": { - "shortName": "CloudChannelService", - "fullName": "google.cloud.channel.v1.CloudChannelService" - } - } - } - }, - { - "regionTag": "cloudchannel_v1_generated_CloudChannelService_CheckCloudIdentityAccountsExist_async", - "title": "CloudChannelReportsService checkCloudIdentityAccountsExist Sample", - "origin": "API_DEFINITION", - "description": " Confirms the existence of Cloud Identity accounts based on the domain and if the Cloud Identity accounts are owned by the reseller. Possible error codes: * PERMISSION_DENIED: The reseller account making the request is different from the reseller account in the API request. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * INVALID_VALUE: Invalid domain value in the request. Return value: A list of [CloudIdentityCustomerAccount][google.cloud.channel.v1.CloudIdentityCustomerAccount] resources for the domain (may be empty) Note: in the v1alpha1 version of the API, a NOT_FOUND error returns if no [CloudIdentityCustomerAccount][google.cloud.channel.v1.CloudIdentityCustomerAccount] resources match the domain.", - "canonical": true, - "file": "cloud_channel_service.check_cloud_identity_accounts_exist.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CheckCloudIdentityAccountsExist", - "fullName": "google.cloud.channel.v1.CloudChannelService.CheckCloudIdentityAccountsExist", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "domain", - "type": "TYPE_STRING" - }, - { - "name": "primary_admin_email", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.channel.v1.CheckCloudIdentityAccountsExistResponse", - "client": { - "shortName": "CloudChannelServiceClient", - "fullName": "google.cloud.channel.v1.CloudChannelServiceClient" - }, - "method": { - "shortName": "CheckCloudIdentityAccountsExist", - "fullName": "google.cloud.channel.v1.CloudChannelService.CheckCloudIdentityAccountsExist", - "service": { - "shortName": "CloudChannelService", - "fullName": "google.cloud.channel.v1.CloudChannelService" - } - } - } - }, - { - "regionTag": "cloudchannel_v1_generated_CloudChannelService_CreateCustomer_async", - "title": "CloudChannelReportsService createCustomer Sample", - "origin": "API_DEFINITION", - "description": " Creates a new [Customer][google.cloud.channel.v1.Customer] resource under the reseller or distributor account. Possible error codes: * PERMISSION_DENIED: * The reseller account making the request is different from the reseller account in the API request. * You are not authorized to create a customer. See https://support.google.com/channelservices/answer/9759265 * INVALID_ARGUMENT: * Required request parameters are missing or invalid. * Domain field value doesn't match the primary email domain. Return value: The newly created [Customer][google.cloud.channel.v1.Customer] resource.", - "canonical": true, - "file": "cloud_channel_service.create_customer.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCustomer", - "fullName": "google.cloud.channel.v1.CloudChannelService.CreateCustomer", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "customer", - "type": ".google.cloud.channel.v1.Customer" - } - ], - "resultType": ".google.cloud.channel.v1.Customer", - "client": { - "shortName": "CloudChannelServiceClient", - "fullName": "google.cloud.channel.v1.CloudChannelServiceClient" - }, - "method": { - "shortName": "CreateCustomer", - "fullName": "google.cloud.channel.v1.CloudChannelService.CreateCustomer", - "service": { - "shortName": "CloudChannelService", - "fullName": "google.cloud.channel.v1.CloudChannelService" - } - } - } - }, - { - "regionTag": "cloudchannel_v1_generated_CloudChannelService_UpdateCustomer_async", - "title": "CloudChannelReportsService updateCustomer Sample", - "origin": "API_DEFINITION", - "description": " Updates an existing [Customer][google.cloud.channel.v1.Customer] resource for the reseller or distributor. Possible error codes: * PERMISSION_DENIED: The reseller account making the request is different from the reseller account in the API request. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND: No [Customer][google.cloud.channel.v1.Customer] resource found for the name in the request. Return value: The updated [Customer][google.cloud.channel.v1.Customer] resource.", - "canonical": true, - "file": "cloud_channel_service.update_customer.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCustomer", - "fullName": "google.cloud.channel.v1.CloudChannelService.UpdateCustomer", - "async": true, - "parameters": [ - { - "name": "customer", - "type": ".google.cloud.channel.v1.Customer" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.channel.v1.Customer", - "client": { - "shortName": "CloudChannelServiceClient", - "fullName": "google.cloud.channel.v1.CloudChannelServiceClient" - }, - "method": { - "shortName": "UpdateCustomer", - "fullName": "google.cloud.channel.v1.CloudChannelService.UpdateCustomer", - "service": { - "shortName": "CloudChannelService", - "fullName": "google.cloud.channel.v1.CloudChannelService" - } - } - } - }, - { - "regionTag": "cloudchannel_v1_generated_CloudChannelService_DeleteCustomer_async", - "title": "CloudChannelReportsService deleteCustomer Sample", - "origin": "API_DEFINITION", - "description": " Deletes the given [Customer][google.cloud.channel.v1.Customer] permanently. Possible error codes: * PERMISSION_DENIED: The account making the request does not own this customer. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * FAILED_PRECONDITION: The customer has existing entitlements. * NOT_FOUND: No [Customer][google.cloud.channel.v1.Customer] resource found for the name in the request.", - "canonical": true, - "file": "cloud_channel_service.delete_customer.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCustomer", - "fullName": "google.cloud.channel.v1.CloudChannelService.DeleteCustomer", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "CloudChannelServiceClient", - "fullName": "google.cloud.channel.v1.CloudChannelServiceClient" - }, - "method": { - "shortName": "DeleteCustomer", - "fullName": "google.cloud.channel.v1.CloudChannelService.DeleteCustomer", - "service": { - "shortName": "CloudChannelService", - "fullName": "google.cloud.channel.v1.CloudChannelService" - } - } - } - }, - { - "regionTag": "cloudchannel_v1_generated_CloudChannelService_ImportCustomer_async", - "title": "CloudChannelReportsService importCustomer Sample", - "origin": "API_DEFINITION", - "description": " Imports a [Customer][google.cloud.channel.v1.Customer] from the Cloud Identity associated with the provided Cloud Identity ID or domain before a TransferEntitlements call. If a linked Customer already exists and overwrite_if_exists is true, it will update that Customer's data. Possible error codes: * PERMISSION_DENIED: * The reseller account making the request is different from the reseller account in the API request. * You are not authorized to import the customer. See https://support.google.com/channelservices/answer/9759265 * NOT_FOUND: Cloud Identity doesn't exist or was deleted. * INVALID_ARGUMENT: Required parameters are missing, or the auth_token is expired or invalid. * ALREADY_EXISTS: A customer already exists and has conflicting critical fields. Requires an overwrite. Return value: The [Customer][google.cloud.channel.v1.Customer].", - "canonical": true, - "file": "cloud_channel_service.import_customer.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 97, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportCustomer", - "fullName": "google.cloud.channel.v1.CloudChannelService.ImportCustomer", - "async": true, - "parameters": [ - { - "name": "domain", - "type": "TYPE_STRING" - }, - { - "name": "cloud_identity_id", - "type": "TYPE_STRING" - }, - { - "name": "primary_admin_email", - "type": "TYPE_STRING" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "auth_token", - "type": "TYPE_STRING" - }, - { - "name": "overwrite_if_exists", - "type": "TYPE_BOOL" - }, - { - "name": "channel_partner_id", - "type": "TYPE_STRING" - }, - { - "name": "customer", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.channel.v1.Customer", - "client": { - "shortName": "CloudChannelServiceClient", - "fullName": "google.cloud.channel.v1.CloudChannelServiceClient" - }, - "method": { - "shortName": "ImportCustomer", - "fullName": "google.cloud.channel.v1.CloudChannelService.ImportCustomer", - "service": { - "shortName": "CloudChannelService", - "fullName": "google.cloud.channel.v1.CloudChannelService" - } - } - } - }, - { - "regionTag": "cloudchannel_v1_generated_CloudChannelService_ProvisionCloudIdentity_async", - "title": "CloudChannelReportsService provisionCloudIdentity Sample", - "origin": "API_DEFINITION", - "description": " Creates a Cloud Identity for the given customer using the customer's information, or the information provided here. Possible error codes: * PERMISSION_DENIED: * The customer doesn't belong to the reseller. * You are not authorized to provision cloud identity id. See https://support.google.com/channelservices/answer/9759265 * INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND: The customer was not found. * ALREADY_EXISTS: The customer's primary email already exists. Retry after changing the customer's primary contact email. * INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. * UNKNOWN: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. Return value: The ID of a long-running operation. To get the results of the operation, call the GetOperation method of CloudChannelOperationsService. The Operation metadata contains an instance of [OperationMetadata][google.cloud.channel.v1.OperationMetadata].", - "canonical": true, - "file": "cloud_channel_service.provision_cloud_identity.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ProvisionCloudIdentity", - "fullName": "google.cloud.channel.v1.CloudChannelService.ProvisionCloudIdentity", - "async": true, - "parameters": [ - { - "name": "customer", - "type": "TYPE_STRING" - }, - { - "name": "cloud_identity_info", - "type": ".google.cloud.channel.v1.CloudIdentityInfo" - }, - { - "name": "user", - "type": ".google.cloud.channel.v1.AdminUser" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudChannelServiceClient", - "fullName": "google.cloud.channel.v1.CloudChannelServiceClient" - }, - "method": { - "shortName": "ProvisionCloudIdentity", - "fullName": "google.cloud.channel.v1.CloudChannelService.ProvisionCloudIdentity", - "service": { - "shortName": "CloudChannelService", - "fullName": "google.cloud.channel.v1.CloudChannelService" - } - } - } - }, - { - "regionTag": "cloudchannel_v1_generated_CloudChannelService_ListEntitlements_async", - "title": "CloudChannelReportsService listEntitlements Sample", - "origin": "API_DEFINITION", - "description": " Lists [Entitlement][google.cloud.channel.v1.Entitlement]s belonging to a customer. Possible error codes: * PERMISSION_DENIED: The customer doesn't belong to the reseller. * INVALID_ARGUMENT: Required request parameters are missing or invalid. Return value: A list of the customer's [Entitlement][google.cloud.channel.v1.Entitlement]s.", - "canonical": true, - "file": "cloud_channel_service.list_entitlements.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEntitlements", - "fullName": "google.cloud.channel.v1.CloudChannelService.ListEntitlements", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.channel.v1.ListEntitlementsResponse", - "client": { - "shortName": "CloudChannelServiceClient", - "fullName": "google.cloud.channel.v1.CloudChannelServiceClient" - }, - "method": { - "shortName": "ListEntitlements", - "fullName": "google.cloud.channel.v1.CloudChannelService.ListEntitlements", - "service": { - "shortName": "CloudChannelService", - "fullName": "google.cloud.channel.v1.CloudChannelService" - } - } - } - }, - { - "regionTag": "cloudchannel_v1_generated_CloudChannelService_ListTransferableSkus_async", - "title": "CloudChannelReportsService listTransferableSkus Sample", - "origin": "API_DEFINITION", - "description": " List [TransferableSku][google.cloud.channel.v1.TransferableSku]s of a customer based on the Cloud Identity ID or Customer Name in the request. Use this method to list the entitlements information of an unowned customer. You should provide the customer's Cloud Identity ID or Customer Name. Possible error codes: * PERMISSION_DENIED: * The customer doesn't belong to the reseller and has no auth token. * The supplied auth token is invalid. * The reseller account making the request is different from the reseller account in the query. * INVALID_ARGUMENT: Required request parameters are missing or invalid. Return value: A list of the customer's [TransferableSku][google.cloud.channel.v1.TransferableSku].", - "canonical": true, - "file": "cloud_channel_service.list_transferable_skus.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 97, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTransferableSkus", - "fullName": "google.cloud.channel.v1.CloudChannelService.ListTransferableSkus", - "async": true, - "parameters": [ - { - "name": "cloud_identity_id", - "type": "TYPE_STRING" - }, - { - "name": "customer_name", - "type": "TYPE_STRING" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "auth_token", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.channel.v1.ListTransferableSkusResponse", - "client": { - "shortName": "CloudChannelServiceClient", - "fullName": "google.cloud.channel.v1.CloudChannelServiceClient" - }, - "method": { - "shortName": "ListTransferableSkus", - "fullName": "google.cloud.channel.v1.CloudChannelService.ListTransferableSkus", - "service": { - "shortName": "CloudChannelService", - "fullName": "google.cloud.channel.v1.CloudChannelService" - } - } - } - }, - { - "regionTag": "cloudchannel_v1_generated_CloudChannelService_ListTransferableOffers_async", - "title": "CloudChannelReportsService listTransferableOffers Sample", - "origin": "API_DEFINITION", - "description": " List [TransferableOffer][google.cloud.channel.v1.TransferableOffer]s of a customer based on Cloud Identity ID or Customer Name in the request. Use this method when a reseller gets the entitlement information of an unowned customer. The reseller should provide the customer's Cloud Identity ID or Customer Name. Possible error codes: * PERMISSION_DENIED: * The customer doesn't belong to the reseller and has no auth token. * The customer provided incorrect reseller information when generating auth token. * The reseller account making the request is different from the reseller account in the query. * The reseller is not authorized to transact on this Product. See https://support.google.com/channelservices/answer/9759265 * INVALID_ARGUMENT: Required request parameters are missing or invalid. Return value: List of [TransferableOffer][google.cloud.channel.v1.TransferableOffer] for the given customer and SKU.", - "canonical": true, - "file": "cloud_channel_service.list_transferable_offers.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 97, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTransferableOffers", - "fullName": "google.cloud.channel.v1.CloudChannelService.ListTransferableOffers", - "async": true, - "parameters": [ - { - "name": "cloud_identity_id", - "type": "TYPE_STRING" - }, - { - "name": "customer_name", - "type": "TYPE_STRING" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "sku", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "billing_account", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.channel.v1.ListTransferableOffersResponse", - "client": { - "shortName": "CloudChannelServiceClient", - "fullName": "google.cloud.channel.v1.CloudChannelServiceClient" - }, - "method": { - "shortName": "ListTransferableOffers", - "fullName": "google.cloud.channel.v1.CloudChannelService.ListTransferableOffers", - "service": { - "shortName": "CloudChannelService", - "fullName": "google.cloud.channel.v1.CloudChannelService" - } - } - } - }, - { - "regionTag": "cloudchannel_v1_generated_CloudChannelService_GetEntitlement_async", - "title": "CloudChannelReportsService getEntitlement Sample", - "origin": "API_DEFINITION", - "description": " Returns the requested [Entitlement][google.cloud.channel.v1.Entitlement] resource. Possible error codes: * PERMISSION_DENIED: The customer doesn't belong to the reseller. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND: The customer entitlement was not found. Return value: The requested [Entitlement][google.cloud.channel.v1.Entitlement] resource.", - "canonical": true, - "file": "cloud_channel_service.get_entitlement.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEntitlement", - "fullName": "google.cloud.channel.v1.CloudChannelService.GetEntitlement", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.channel.v1.Entitlement", - "client": { - "shortName": "CloudChannelServiceClient", - "fullName": "google.cloud.channel.v1.CloudChannelServiceClient" - }, - "method": { - "shortName": "GetEntitlement", - "fullName": "google.cloud.channel.v1.CloudChannelService.GetEntitlement", - "service": { - "shortName": "CloudChannelService", - "fullName": "google.cloud.channel.v1.CloudChannelService" - } - } - } - }, - { - "regionTag": "cloudchannel_v1_generated_CloudChannelService_CreateEntitlement_async", - "title": "CloudChannelReportsService createEntitlement Sample", - "origin": "API_DEFINITION", - "description": " Creates an entitlement for a customer. Possible error codes: * PERMISSION_DENIED: * The customer doesn't belong to the reseller. * The reseller is not authorized to transact on this Product. See https://support.google.com/channelservices/answer/9759265 * INVALID_ARGUMENT: * Required request parameters are missing or invalid. * There is already a customer entitlement for a SKU from the same product family. * INVALID_VALUE: Make sure the OfferId is valid. If it is, contact Google Channel support for further troubleshooting. * NOT_FOUND: The customer or offer resource was not found. * ALREADY_EXISTS: * The SKU was already purchased for the customer. * The customer's primary email already exists. Retry after changing the customer's primary contact email. * CONDITION_NOT_MET or FAILED_PRECONDITION: * The domain required for purchasing a SKU has not been verified. * A pre-requisite SKU required to purchase an Add-On SKU is missing. For example, Google Workspace Business Starter is required to purchase Vault or Drive. * (Developer accounts only) Reseller and resold domain must meet the following naming requirements: * Domain names must start with goog-test. * Domain names must include the reseller domain. * INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. * UNKNOWN: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. Return value: The ID of a long-running operation. To get the results of the operation, call the GetOperation method of CloudChannelOperationsService. The Operation metadata will contain an instance of [OperationMetadata][google.cloud.channel.v1.OperationMetadata].", - "canonical": true, - "file": "cloud_channel_service.create_entitlement.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateEntitlement", - "fullName": "google.cloud.channel.v1.CloudChannelService.CreateEntitlement", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "entitlement", - "type": ".google.cloud.channel.v1.Entitlement" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudChannelServiceClient", - "fullName": "google.cloud.channel.v1.CloudChannelServiceClient" - }, - "method": { - "shortName": "CreateEntitlement", - "fullName": "google.cloud.channel.v1.CloudChannelService.CreateEntitlement", - "service": { - "shortName": "CloudChannelService", - "fullName": "google.cloud.channel.v1.CloudChannelService" - } - } - } - }, - { - "regionTag": "cloudchannel_v1_generated_CloudChannelService_ChangeParameters_async", - "title": "CloudChannelReportsService changeParameters Sample", - "origin": "API_DEFINITION", - "description": " Change parameters of the entitlement. An entitlement update is a long-running operation and it updates the entitlement as a result of fulfillment. Possible error codes: * PERMISSION_DENIED: The customer doesn't belong to the reseller. * INVALID_ARGUMENT: Required request parameters are missing or invalid. For example, the number of seats being changed is greater than the allowed number of max seats, or decreasing seats for a commitment based plan. * NOT_FOUND: Entitlement resource not found. * INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. * UNKNOWN: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. Return value: The ID of a long-running operation. To get the results of the operation, call the GetOperation method of CloudChannelOperationsService. The Operation metadata will contain an instance of [OperationMetadata][google.cloud.channel.v1.OperationMetadata].", - "canonical": true, - "file": "cloud_channel_service.change_parameters.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ChangeParameters", - "fullName": "google.cloud.channel.v1.CloudChannelService.ChangeParameters", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "parameters", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "purchase_order_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudChannelServiceClient", - "fullName": "google.cloud.channel.v1.CloudChannelServiceClient" - }, - "method": { - "shortName": "ChangeParameters", - "fullName": "google.cloud.channel.v1.CloudChannelService.ChangeParameters", - "service": { - "shortName": "CloudChannelService", - "fullName": "google.cloud.channel.v1.CloudChannelService" - } - } - } - }, - { - "regionTag": "cloudchannel_v1_generated_CloudChannelService_ChangeRenewalSettings_async", - "title": "CloudChannelReportsService changeRenewalSettings Sample", - "origin": "API_DEFINITION", - "description": " Updates the renewal settings for an existing customer entitlement. An entitlement update is a long-running operation and it updates the entitlement as a result of fulfillment. Possible error codes: * PERMISSION_DENIED: The customer doesn't belong to the reseller. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND: Entitlement resource not found. * NOT_COMMITMENT_PLAN: Renewal Settings are only applicable for a commitment plan. Can't enable or disable renewals for non-commitment plans. * INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. * UNKNOWN: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. Return value: The ID of a long-running operation. To get the results of the operation, call the GetOperation method of CloudChannelOperationsService. The Operation metadata will contain an instance of [OperationMetadata][google.cloud.channel.v1.OperationMetadata].", - "canonical": true, - "file": "cloud_channel_service.change_renewal_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ChangeRenewalSettings", - "fullName": "google.cloud.channel.v1.CloudChannelService.ChangeRenewalSettings", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "renewal_settings", - "type": ".google.cloud.channel.v1.RenewalSettings" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudChannelServiceClient", - "fullName": "google.cloud.channel.v1.CloudChannelServiceClient" - }, - "method": { - "shortName": "ChangeRenewalSettings", - "fullName": "google.cloud.channel.v1.CloudChannelService.ChangeRenewalSettings", - "service": { - "shortName": "CloudChannelService", - "fullName": "google.cloud.channel.v1.CloudChannelService" - } - } - } - }, - { - "regionTag": "cloudchannel_v1_generated_CloudChannelService_ChangeOffer_async", - "title": "CloudChannelReportsService changeOffer Sample", - "origin": "API_DEFINITION", - "description": " Updates the Offer for an existing customer entitlement. An entitlement update is a long-running operation and it updates the entitlement as a result of fulfillment. Possible error codes: * PERMISSION_DENIED: The customer doesn't belong to the reseller. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND: Offer or Entitlement resource not found. * INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. * UNKNOWN: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. Return value: The ID of a long-running operation. To get the results of the operation, call the GetOperation method of CloudChannelOperationsService. The Operation metadata will contain an instance of [OperationMetadata][google.cloud.channel.v1.OperationMetadata].", - "canonical": true, - "file": "cloud_channel_service.change_offer.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 99, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ChangeOffer", - "fullName": "google.cloud.channel.v1.CloudChannelService.ChangeOffer", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "offer", - "type": "TYPE_STRING" - }, - { - "name": "parameters", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "purchase_order_id", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "billing_account", - "type": "TYPE_STRING" - }, - { - "name": "price_reference_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudChannelServiceClient", - "fullName": "google.cloud.channel.v1.CloudChannelServiceClient" - }, - "method": { - "shortName": "ChangeOffer", - "fullName": "google.cloud.channel.v1.CloudChannelService.ChangeOffer", - "service": { - "shortName": "CloudChannelService", - "fullName": "google.cloud.channel.v1.CloudChannelService" - } - } - } - }, - { - "regionTag": "cloudchannel_v1_generated_CloudChannelService_StartPaidService_async", - "title": "CloudChannelReportsService startPaidService Sample", - "origin": "API_DEFINITION", - "description": " Starts paid service for a trial entitlement. Starts paid service for a trial entitlement immediately. This method is only applicable if a plan is set up for a trial entitlement but has some trial days remaining. Possible error codes: * PERMISSION_DENIED: The customer doesn't belong to the reseller. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND: Entitlement resource not found. * FAILED_PRECONDITION/NOT_IN_TRIAL: This method only works for entitlement on trial plans. * INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. * UNKNOWN: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. Return value: The ID of a long-running operation. To get the results of the operation, call the GetOperation method of CloudChannelOperationsService. The Operation metadata will contain an instance of [OperationMetadata][google.cloud.channel.v1.OperationMetadata].", - "canonical": true, - "file": "cloud_channel_service.start_paid_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StartPaidService", - "fullName": "google.cloud.channel.v1.CloudChannelService.StartPaidService", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudChannelServiceClient", - "fullName": "google.cloud.channel.v1.CloudChannelServiceClient" - }, - "method": { - "shortName": "StartPaidService", - "fullName": "google.cloud.channel.v1.CloudChannelService.StartPaidService", - "service": { - "shortName": "CloudChannelService", - "fullName": "google.cloud.channel.v1.CloudChannelService" - } - } - } - }, - { - "regionTag": "cloudchannel_v1_generated_CloudChannelService_SuspendEntitlement_async", - "title": "CloudChannelReportsService suspendEntitlement Sample", - "origin": "API_DEFINITION", - "description": " Suspends a previously fulfilled entitlement. An entitlement suspension is a long-running operation. Possible error codes: * PERMISSION_DENIED: The customer doesn't belong to the reseller. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND: Entitlement resource not found. * NOT_ACTIVE: Entitlement is not active. * INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. * UNKNOWN: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. Return value: The ID of a long-running operation. To get the results of the operation, call the GetOperation method of CloudChannelOperationsService. The Operation metadata will contain an instance of [OperationMetadata][google.cloud.channel.v1.OperationMetadata].", - "canonical": true, - "file": "cloud_channel_service.suspend_entitlement.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SuspendEntitlement", - "fullName": "google.cloud.channel.v1.CloudChannelService.SuspendEntitlement", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudChannelServiceClient", - "fullName": "google.cloud.channel.v1.CloudChannelServiceClient" - }, - "method": { - "shortName": "SuspendEntitlement", - "fullName": "google.cloud.channel.v1.CloudChannelService.SuspendEntitlement", - "service": { - "shortName": "CloudChannelService", - "fullName": "google.cloud.channel.v1.CloudChannelService" - } - } - } - }, - { - "regionTag": "cloudchannel_v1_generated_CloudChannelService_CancelEntitlement_async", - "title": "CloudChannelReportsService cancelEntitlement Sample", - "origin": "API_DEFINITION", - "description": " Cancels a previously fulfilled entitlement. An entitlement cancellation is a long-running operation. Possible error codes: * PERMISSION_DENIED: The reseller account making the request is different from the reseller account in the API request. * FAILED_PRECONDITION: There are Google Cloud projects linked to the Google Cloud entitlement's Cloud Billing subaccount. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND: Entitlement resource not found. * DELETION_TYPE_NOT_ALLOWED: Cancel is only allowed for Google Workspace add-ons, or entitlements for Google Cloud's development platform. * INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. * UNKNOWN: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. Return value: The ID of a long-running operation. To get the results of the operation, call the GetOperation method of CloudChannelOperationsService. The response will contain google.protobuf.Empty on success. The Operation metadata will contain an instance of [OperationMetadata][google.cloud.channel.v1.OperationMetadata].", - "canonical": true, - "file": "cloud_channel_service.cancel_entitlement.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CancelEntitlement", - "fullName": "google.cloud.channel.v1.CloudChannelService.CancelEntitlement", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudChannelServiceClient", - "fullName": "google.cloud.channel.v1.CloudChannelServiceClient" - }, - "method": { - "shortName": "CancelEntitlement", - "fullName": "google.cloud.channel.v1.CloudChannelService.CancelEntitlement", - "service": { - "shortName": "CloudChannelService", - "fullName": "google.cloud.channel.v1.CloudChannelService" - } - } - } - }, - { - "regionTag": "cloudchannel_v1_generated_CloudChannelService_ActivateEntitlement_async", - "title": "CloudChannelReportsService activateEntitlement Sample", - "origin": "API_DEFINITION", - "description": " Activates a previously suspended entitlement. Entitlements suspended for pending ToS acceptance can't be activated using this method. An entitlement activation is a long-running operation and it updates the state of the customer entitlement. Possible error codes: * PERMISSION_DENIED: The reseller account making the request is different from the reseller account in the API request. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND: Entitlement resource not found. * SUSPENSION_NOT_RESELLER_INITIATED: Can only activate reseller-initiated suspensions and entitlements that have accepted the TOS. * NOT_SUSPENDED: Can only activate suspended entitlements not in an ACTIVE state. * INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. * UNKNOWN: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. Return value: The ID of a long-running operation. To get the results of the operation, call the GetOperation method of CloudChannelOperationsService. The Operation metadata will contain an instance of [OperationMetadata][google.cloud.channel.v1.OperationMetadata].", - "canonical": true, - "file": "cloud_channel_service.activate_entitlement.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ActivateEntitlement", - "fullName": "google.cloud.channel.v1.CloudChannelService.ActivateEntitlement", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudChannelServiceClient", - "fullName": "google.cloud.channel.v1.CloudChannelServiceClient" - }, - "method": { - "shortName": "ActivateEntitlement", - "fullName": "google.cloud.channel.v1.CloudChannelService.ActivateEntitlement", - "service": { - "shortName": "CloudChannelService", - "fullName": "google.cloud.channel.v1.CloudChannelService" - } - } - } - }, - { - "regionTag": "cloudchannel_v1_generated_CloudChannelService_TransferEntitlements_async", - "title": "CloudChannelReportsService transferEntitlements Sample", - "origin": "API_DEFINITION", - "description": " Transfers customer entitlements to new reseller. Possible error codes: * PERMISSION_DENIED: * The customer doesn't belong to the reseller. * The reseller is not authorized to transact on this Product. See https://support.google.com/channelservices/answer/9759265 * INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND: The customer or offer resource was not found. * ALREADY_EXISTS: The SKU was already transferred for the customer. * CONDITION_NOT_MET or FAILED_PRECONDITION: * The SKU requires domain verification to transfer, but the domain is not verified. * An Add-On SKU (example, Vault or Drive) is missing the pre-requisite SKU (example, G Suite Basic). * (Developer accounts only) Reseller and resold domain must meet the following naming requirements: * Domain names must start with goog-test. * Domain names must include the reseller domain. * Specify all transferring entitlements. * INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. * UNKNOWN: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. Return value: The ID of a long-running operation. To get the results of the operation, call the GetOperation method of CloudChannelOperationsService. The Operation metadata will contain an instance of [OperationMetadata][google.cloud.channel.v1.OperationMetadata].", - "canonical": true, - "file": "cloud_channel_service.transfer_entitlements.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TransferEntitlements", - "fullName": "google.cloud.channel.v1.CloudChannelService.TransferEntitlements", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "entitlements", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "auth_token", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudChannelServiceClient", - "fullName": "google.cloud.channel.v1.CloudChannelServiceClient" - }, - "method": { - "shortName": "TransferEntitlements", - "fullName": "google.cloud.channel.v1.CloudChannelService.TransferEntitlements", - "service": { - "shortName": "CloudChannelService", - "fullName": "google.cloud.channel.v1.CloudChannelService" - } - } - } - }, - { - "regionTag": "cloudchannel_v1_generated_CloudChannelService_TransferEntitlementsToGoogle_async", - "title": "CloudChannelReportsService transferEntitlementsToGoogle Sample", - "origin": "API_DEFINITION", - "description": " Transfers customer entitlements from their current reseller to Google. Possible error codes: * PERMISSION_DENIED: The customer doesn't belong to the reseller. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND: The customer or offer resource was not found. * ALREADY_EXISTS: The SKU was already transferred for the customer. * CONDITION_NOT_MET or FAILED_PRECONDITION: * The SKU requires domain verification to transfer, but the domain is not verified. * An Add-On SKU (example, Vault or Drive) is missing the pre-requisite SKU (example, G Suite Basic). * (Developer accounts only) Reseller and resold domain must meet the following naming requirements: * Domain names must start with goog-test. * Domain names must include the reseller domain. * INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. * UNKNOWN: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. Return value: The ID of a long-running operation. To get the results of the operation, call the GetOperation method of CloudChannelOperationsService. The response will contain google.protobuf.Empty on success. The Operation metadata will contain an instance of [OperationMetadata][google.cloud.channel.v1.OperationMetadata].", - "canonical": true, - "file": "cloud_channel_service.transfer_entitlements_to_google.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TransferEntitlementsToGoogle", - "fullName": "google.cloud.channel.v1.CloudChannelService.TransferEntitlementsToGoogle", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "entitlements", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudChannelServiceClient", - "fullName": "google.cloud.channel.v1.CloudChannelServiceClient" - }, - "method": { - "shortName": "TransferEntitlementsToGoogle", - "fullName": "google.cloud.channel.v1.CloudChannelService.TransferEntitlementsToGoogle", - "service": { - "shortName": "CloudChannelService", - "fullName": "google.cloud.channel.v1.CloudChannelService" - } - } - } - }, - { - "regionTag": "cloudchannel_v1_generated_CloudChannelService_ListChannelPartnerLinks_async", - "title": "CloudChannelReportsService listChannelPartnerLinks Sample", - "origin": "API_DEFINITION", - "description": " List [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink]s belonging to a distributor. You must be a distributor to call this method. Possible error codes: * PERMISSION_DENIED: The reseller account making the request is different from the reseller account in the API request. * INVALID_ARGUMENT: Required request parameters are missing or invalid. Return value: The list of the distributor account's [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink] resources.", - "canonical": true, - "file": "cloud_channel_service.list_channel_partner_links.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListChannelPartnerLinks", - "fullName": "google.cloud.channel.v1.CloudChannelService.ListChannelPartnerLinks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.channel.v1.ChannelPartnerLinkView" - } - ], - "resultType": ".google.cloud.channel.v1.ListChannelPartnerLinksResponse", - "client": { - "shortName": "CloudChannelServiceClient", - "fullName": "google.cloud.channel.v1.CloudChannelServiceClient" - }, - "method": { - "shortName": "ListChannelPartnerLinks", - "fullName": "google.cloud.channel.v1.CloudChannelService.ListChannelPartnerLinks", - "service": { - "shortName": "CloudChannelService", - "fullName": "google.cloud.channel.v1.CloudChannelService" - } - } - } - }, - { - "regionTag": "cloudchannel_v1_generated_CloudChannelService_GetChannelPartnerLink_async", - "title": "CloudChannelReportsService getChannelPartnerLink Sample", - "origin": "API_DEFINITION", - "description": " Returns the requested [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink] resource. You must be a distributor to call this method. Possible error codes: * PERMISSION_DENIED: The reseller account making the request is different from the reseller account in the API request. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND: ChannelPartnerLink resource not found because of an invalid channel partner link name. Return value: The [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink] resource.", - "canonical": true, - "file": "cloud_channel_service.get_channel_partner_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetChannelPartnerLink", - "fullName": "google.cloud.channel.v1.CloudChannelService.GetChannelPartnerLink", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.channel.v1.ChannelPartnerLinkView" - } - ], - "resultType": ".google.cloud.channel.v1.ChannelPartnerLink", - "client": { - "shortName": "CloudChannelServiceClient", - "fullName": "google.cloud.channel.v1.CloudChannelServiceClient" - }, - "method": { - "shortName": "GetChannelPartnerLink", - "fullName": "google.cloud.channel.v1.CloudChannelService.GetChannelPartnerLink", - "service": { - "shortName": "CloudChannelService", - "fullName": "google.cloud.channel.v1.CloudChannelService" - } - } - } - }, - { - "regionTag": "cloudchannel_v1_generated_CloudChannelService_CreateChannelPartnerLink_async", - "title": "CloudChannelReportsService createChannelPartnerLink Sample", - "origin": "API_DEFINITION", - "description": " Initiates a channel partner link between a distributor and a reseller, or between resellers in an n-tier reseller channel. Invited partners need to follow the invite_link_uri provided in the response to accept. After accepting the invitation, a link is set up between the two parties. You must be a distributor to call this method. Possible error codes: * PERMISSION_DENIED: The reseller account making the request is different from the reseller account in the API request. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * ALREADY_EXISTS: The ChannelPartnerLink sent in the request already exists. * NOT_FOUND: No Cloud Identity customer exists for provided domain. * INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. * UNKNOWN: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. Return value: The new [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink] resource.", - "canonical": true, - "file": "cloud_channel_service.create_channel_partner_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateChannelPartnerLink", - "fullName": "google.cloud.channel.v1.CloudChannelService.CreateChannelPartnerLink", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "channel_partner_link", - "type": ".google.cloud.channel.v1.ChannelPartnerLink" - } - ], - "resultType": ".google.cloud.channel.v1.ChannelPartnerLink", - "client": { - "shortName": "CloudChannelServiceClient", - "fullName": "google.cloud.channel.v1.CloudChannelServiceClient" - }, - "method": { - "shortName": "CreateChannelPartnerLink", - "fullName": "google.cloud.channel.v1.CloudChannelService.CreateChannelPartnerLink", - "service": { - "shortName": "CloudChannelService", - "fullName": "google.cloud.channel.v1.CloudChannelService" - } - } - } - }, - { - "regionTag": "cloudchannel_v1_generated_CloudChannelService_UpdateChannelPartnerLink_async", - "title": "CloudChannelReportsService updateChannelPartnerLink Sample", - "origin": "API_DEFINITION", - "description": " Updates a channel partner link. Distributors call this method to change a link's status. For example, to suspend a partner link. You must be a distributor to call this method. Possible error codes: * PERMISSION_DENIED: The reseller account making the request is different from the reseller account in the API request. * INVALID_ARGUMENT: * Required request parameters are missing or invalid. * Link state cannot change from invited to active or suspended. * Cannot send reseller_cloud_identity_id, invite_url, or name in update mask. * NOT_FOUND: ChannelPartnerLink resource not found. * INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. * UNKNOWN: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. Return value: The updated [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink] resource.", - "canonical": true, - "file": "cloud_channel_service.update_channel_partner_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateChannelPartnerLink", - "fullName": "google.cloud.channel.v1.CloudChannelService.UpdateChannelPartnerLink", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "channel_partner_link", - "type": ".google.cloud.channel.v1.ChannelPartnerLink" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.channel.v1.ChannelPartnerLink", - "client": { - "shortName": "CloudChannelServiceClient", - "fullName": "google.cloud.channel.v1.CloudChannelServiceClient" - }, - "method": { - "shortName": "UpdateChannelPartnerLink", - "fullName": "google.cloud.channel.v1.CloudChannelService.UpdateChannelPartnerLink", - "service": { - "shortName": "CloudChannelService", - "fullName": "google.cloud.channel.v1.CloudChannelService" - } - } - } - }, - { - "regionTag": "cloudchannel_v1_generated_CloudChannelService_GetCustomerRepricingConfig_async", - "title": "CloudChannelReportsService getCustomerRepricingConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets information about how a Reseller modifies their bill before sending it to a Customer. Possible Error Codes: * PERMISSION_DENIED: If the account making the request and the account being queried are different. * NOT_FOUND: The [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] was not found. * INTERNAL: Any non-user error related to technical issues in the backend. In this case, contact Cloud Channel support. Return Value: If successful, the [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] resource, otherwise returns an error.", - "canonical": true, - "file": "cloud_channel_service.get_customer_repricing_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCustomerRepricingConfig", - "fullName": "google.cloud.channel.v1.CloudChannelService.GetCustomerRepricingConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.channel.v1.CustomerRepricingConfig", - "client": { - "shortName": "CloudChannelServiceClient", - "fullName": "google.cloud.channel.v1.CloudChannelServiceClient" - }, - "method": { - "shortName": "GetCustomerRepricingConfig", - "fullName": "google.cloud.channel.v1.CloudChannelService.GetCustomerRepricingConfig", - "service": { - "shortName": "CloudChannelService", - "fullName": "google.cloud.channel.v1.CloudChannelService" - } - } - } - }, - { - "regionTag": "cloudchannel_v1_generated_CloudChannelService_ListCustomerRepricingConfigs_async", - "title": "CloudChannelReportsService listCustomerRepricingConfigs Sample", - "origin": "API_DEFINITION", - "description": " Lists information about how a Reseller modifies their bill before sending it to a Customer. Possible Error Codes: * PERMISSION_DENIED: If the account making the request and the account being queried are different. * NOT_FOUND: The [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] specified does not exist or is not associated with the given account. * INTERNAL: Any non-user error related to technical issues in the backend. In this case, contact Cloud Channel support. Return Value: If successful, the [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] resources. The data for each resource is displayed in the ascending order of: * Customer ID * [RepricingConfig.EntitlementGranularity.entitlement][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement] * [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month] * [CustomerRepricingConfig.update_time][google.cloud.channel.v1.CustomerRepricingConfig.update_time] If unsuccessful, returns an error.", - "canonical": true, - "file": "cloud_channel_service.list_customer_repricing_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCustomerRepricingConfigs", - "fullName": "google.cloud.channel.v1.CloudChannelService.ListCustomerRepricingConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.channel.v1.ListCustomerRepricingConfigsResponse", - "client": { - "shortName": "CloudChannelServiceClient", - "fullName": "google.cloud.channel.v1.CloudChannelServiceClient" - }, - "method": { - "shortName": "ListCustomerRepricingConfigs", - "fullName": "google.cloud.channel.v1.CloudChannelService.ListCustomerRepricingConfigs", - "service": { - "shortName": "CloudChannelService", - "fullName": "google.cloud.channel.v1.CloudChannelService" - } - } - } - }, - { - "regionTag": "cloudchannel_v1_generated_CloudChannelService_CreateCustomerRepricingConfig_async", - "title": "CloudChannelReportsService createCustomerRepricingConfig Sample", - "origin": "API_DEFINITION", - "description": " Creates a CustomerRepricingConfig. Call this method to set modifications for a specific customer's bill. You can only create configs if the [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month] is a future month. If needed, you can create a config for the current month, with some restrictions. When creating a config for a future month, make sure there are no existing configs for that [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month]. The following restrictions are for creating configs in the current month. * This functionality is reserved for recovering from an erroneous config, and should not be used for regular business cases. * The new config will not modify exports used with other configs. Changes to the config may be immediate, but may take up to 24 hours. * There is a limit of ten configs for any [RepricingConfig.EntitlementGranularity.entitlement][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement], for any [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month]. * The contained [CustomerRepricingConfig.repricing_config][google.cloud.channel.v1.CustomerRepricingConfig.repricing_config] value must be different from the value used in the current config for a [RepricingConfig.EntitlementGranularity.entitlement][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement]. Possible Error Codes: * PERMISSION_DENIED: If the account making the request and the account being queried are different. * INVALID_ARGUMENT: Missing or invalid required parameters in the request. Also displays if the updated config is for the current month or past months. * NOT_FOUND: The [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] specified does not exist or is not associated with the given account. * INTERNAL: Any non-user error related to technical issues in the backend. In this case, contact Cloud Channel support. Return Value: If successful, the updated [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] resource, otherwise returns an error.", - "canonical": true, - "file": "cloud_channel_service.create_customer_repricing_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCustomerRepricingConfig", - "fullName": "google.cloud.channel.v1.CloudChannelService.CreateCustomerRepricingConfig", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "customer_repricing_config", - "type": ".google.cloud.channel.v1.CustomerRepricingConfig" - } - ], - "resultType": ".google.cloud.channel.v1.CustomerRepricingConfig", - "client": { - "shortName": "CloudChannelServiceClient", - "fullName": "google.cloud.channel.v1.CloudChannelServiceClient" - }, - "method": { - "shortName": "CreateCustomerRepricingConfig", - "fullName": "google.cloud.channel.v1.CloudChannelService.CreateCustomerRepricingConfig", - "service": { - "shortName": "CloudChannelService", - "fullName": "google.cloud.channel.v1.CloudChannelService" - } - } - } - }, - { - "regionTag": "cloudchannel_v1_generated_CloudChannelService_UpdateCustomerRepricingConfig_async", - "title": "CloudChannelReportsService updateCustomerRepricingConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates a CustomerRepricingConfig. Call this method to set modifications for a specific customer's bill. This method overwrites the existing CustomerRepricingConfig. You can only update configs if the [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month] is a future month. To make changes to configs for the current month, use [CreateCustomerRepricingConfig][google.cloud.channel.v1.CloudChannelService.CreateCustomerRepricingConfig], taking note of its restrictions. You cannot update the [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month]. When updating a config in the future: * This config must already exist. Possible Error Codes: * PERMISSION_DENIED: If the account making the request and the account being queried are different. * INVALID_ARGUMENT: Missing or invalid required parameters in the request. Also displays if the updated config is for the current month or past months. * NOT_FOUND: The [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] specified does not exist or is not associated with the given account. * INTERNAL: Any non-user error related to technical issues in the backend. In this case, contact Cloud Channel support. Return Value: If successful, the updated [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] resource, otherwise returns an error.", - "canonical": true, - "file": "cloud_channel_service.update_customer_repricing_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCustomerRepricingConfig", - "fullName": "google.cloud.channel.v1.CloudChannelService.UpdateCustomerRepricingConfig", - "async": true, - "parameters": [ - { - "name": "customer_repricing_config", - "type": ".google.cloud.channel.v1.CustomerRepricingConfig" - } - ], - "resultType": ".google.cloud.channel.v1.CustomerRepricingConfig", - "client": { - "shortName": "CloudChannelServiceClient", - "fullName": "google.cloud.channel.v1.CloudChannelServiceClient" - }, - "method": { - "shortName": "UpdateCustomerRepricingConfig", - "fullName": "google.cloud.channel.v1.CloudChannelService.UpdateCustomerRepricingConfig", - "service": { - "shortName": "CloudChannelService", - "fullName": "google.cloud.channel.v1.CloudChannelService" - } - } - } - }, - { - "regionTag": "cloudchannel_v1_generated_CloudChannelService_DeleteCustomerRepricingConfig_async", - "title": "CloudChannelReportsService deleteCustomerRepricingConfig Sample", - "origin": "API_DEFINITION", - "description": " Deletes the given [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] permanently. You can only delete configs if their [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month] is set to a date after the current month. Possible error codes: * PERMISSION_DENIED: The account making the request does not own this customer. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * FAILED_PRECONDITION: The [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] is active or in the past. * NOT_FOUND: No [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] found for the name in the request.", - "canonical": true, - "file": "cloud_channel_service.delete_customer_repricing_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCustomerRepricingConfig", - "fullName": "google.cloud.channel.v1.CloudChannelService.DeleteCustomerRepricingConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "CloudChannelServiceClient", - "fullName": "google.cloud.channel.v1.CloudChannelServiceClient" - }, - "method": { - "shortName": "DeleteCustomerRepricingConfig", - "fullName": "google.cloud.channel.v1.CloudChannelService.DeleteCustomerRepricingConfig", - "service": { - "shortName": "CloudChannelService", - "fullName": "google.cloud.channel.v1.CloudChannelService" - } - } - } - }, - { - "regionTag": "cloudchannel_v1_generated_CloudChannelService_GetChannelPartnerRepricingConfig_async", - "title": "CloudChannelReportsService getChannelPartnerRepricingConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets information about how a Distributor modifies their bill before sending it to a ChannelPartner. Possible Error Codes: * PERMISSION_DENIED: If the account making the request and the account being queried are different. * NOT_FOUND: The [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] was not found. * INTERNAL: Any non-user error related to technical issues in the backend. In this case, contact Cloud Channel support. Return Value: If successful, the [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] resource, otherwise returns an error.", - "canonical": true, - "file": "cloud_channel_service.get_channel_partner_repricing_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetChannelPartnerRepricingConfig", - "fullName": "google.cloud.channel.v1.CloudChannelService.GetChannelPartnerRepricingConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.channel.v1.ChannelPartnerRepricingConfig", - "client": { - "shortName": "CloudChannelServiceClient", - "fullName": "google.cloud.channel.v1.CloudChannelServiceClient" - }, - "method": { - "shortName": "GetChannelPartnerRepricingConfig", - "fullName": "google.cloud.channel.v1.CloudChannelService.GetChannelPartnerRepricingConfig", - "service": { - "shortName": "CloudChannelService", - "fullName": "google.cloud.channel.v1.CloudChannelService" - } - } - } - }, - { - "regionTag": "cloudchannel_v1_generated_CloudChannelService_ListChannelPartnerRepricingConfigs_async", - "title": "CloudChannelReportsService listChannelPartnerRepricingConfigs Sample", - "origin": "API_DEFINITION", - "description": " Lists information about how a Reseller modifies their bill before sending it to a ChannelPartner. Possible Error Codes: * PERMISSION_DENIED: If the account making the request and the account being queried are different. * NOT_FOUND: The [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] specified does not exist or is not associated with the given account. * INTERNAL: Any non-user error related to technical issues in the backend. In this case, contact Cloud Channel support. Return Value: If successful, the [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] resources. The data for each resource is displayed in the ascending order of: * Channel Partner ID * [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month] * [ChannelPartnerRepricingConfig.update_time][google.cloud.channel.v1.ChannelPartnerRepricingConfig.update_time] If unsuccessful, returns an error.", - "canonical": true, - "file": "cloud_channel_service.list_channel_partner_repricing_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListChannelPartnerRepricingConfigs", - "fullName": "google.cloud.channel.v1.CloudChannelService.ListChannelPartnerRepricingConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.channel.v1.ListChannelPartnerRepricingConfigsResponse", - "client": { - "shortName": "CloudChannelServiceClient", - "fullName": "google.cloud.channel.v1.CloudChannelServiceClient" - }, - "method": { - "shortName": "ListChannelPartnerRepricingConfigs", - "fullName": "google.cloud.channel.v1.CloudChannelService.ListChannelPartnerRepricingConfigs", - "service": { - "shortName": "CloudChannelService", - "fullName": "google.cloud.channel.v1.CloudChannelService" - } - } - } - }, - { - "regionTag": "cloudchannel_v1_generated_CloudChannelService_CreateChannelPartnerRepricingConfig_async", - "title": "CloudChannelReportsService createChannelPartnerRepricingConfig Sample", - "origin": "API_DEFINITION", - "description": " Creates a ChannelPartnerRepricingConfig. Call this method to set modifications for a specific ChannelPartner's bill. You can only create configs if the [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month] is a future month. If needed, you can create a config for the current month, with some restrictions. When creating a config for a future month, make sure there are no existing configs for that [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month]. The following restrictions are for creating configs in the current month. * This functionality is reserved for recovering from an erroneous config, and should not be used for regular business cases. * The new config will not modify exports used with other configs. Changes to the config may be immediate, but may take up to 24 hours. * There is a limit of ten configs for any ChannelPartner or [RepricingConfig.EntitlementGranularity.entitlement][google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.entitlement], for any [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month]. * The contained [ChannelPartnerRepricingConfig.repricing_config][google.cloud.channel.v1.ChannelPartnerRepricingConfig.repricing_config] value must be different from the value used in the current config for a ChannelPartner. Possible Error Codes: * PERMISSION_DENIED: If the account making the request and the account being queried are different. * INVALID_ARGUMENT: Missing or invalid required parameters in the request. Also displays if the updated config is for the current month or past months. * NOT_FOUND: The [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] specified does not exist or is not associated with the given account. * INTERNAL: Any non-user error related to technical issues in the backend. In this case, contact Cloud Channel support. Return Value: If successful, the updated [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] resource, otherwise returns an error.", - "canonical": true, - "file": "cloud_channel_service.create_channel_partner_repricing_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateChannelPartnerRepricingConfig", - "fullName": "google.cloud.channel.v1.CloudChannelService.CreateChannelPartnerRepricingConfig", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "channel_partner_repricing_config", - "type": ".google.cloud.channel.v1.ChannelPartnerRepricingConfig" - } - ], - "resultType": ".google.cloud.channel.v1.ChannelPartnerRepricingConfig", - "client": { - "shortName": "CloudChannelServiceClient", - "fullName": "google.cloud.channel.v1.CloudChannelServiceClient" - }, - "method": { - "shortName": "CreateChannelPartnerRepricingConfig", - "fullName": "google.cloud.channel.v1.CloudChannelService.CreateChannelPartnerRepricingConfig", - "service": { - "shortName": "CloudChannelService", - "fullName": "google.cloud.channel.v1.CloudChannelService" - } - } - } - }, - { - "regionTag": "cloudchannel_v1_generated_CloudChannelService_UpdateChannelPartnerRepricingConfig_async", - "title": "CloudChannelReportsService updateChannelPartnerRepricingConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates a ChannelPartnerRepricingConfig. Call this method to set modifications for a specific ChannelPartner's bill. This method overwrites the existing CustomerRepricingConfig. You can only update configs if the [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month] is a future month. To make changes to configs for the current month, use [CreateChannelPartnerRepricingConfig][google.cloud.channel.v1.CloudChannelService.CreateChannelPartnerRepricingConfig], taking note of its restrictions. You cannot update the [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month]. When updating a config in the future: * This config must already exist. Possible Error Codes: * PERMISSION_DENIED: If the account making the request and the account being queried are different. * INVALID_ARGUMENT: Missing or invalid required parameters in the request. Also displays if the updated config is for the current month or past months. * NOT_FOUND: The [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] specified does not exist or is not associated with the given account. * INTERNAL: Any non-user error related to technical issues in the backend. In this case, contact Cloud Channel support. Return Value: If successful, the updated [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] resource, otherwise returns an error.", - "canonical": true, - "file": "cloud_channel_service.update_channel_partner_repricing_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateChannelPartnerRepricingConfig", - "fullName": "google.cloud.channel.v1.CloudChannelService.UpdateChannelPartnerRepricingConfig", - "async": true, - "parameters": [ - { - "name": "channel_partner_repricing_config", - "type": ".google.cloud.channel.v1.ChannelPartnerRepricingConfig" - } - ], - "resultType": ".google.cloud.channel.v1.ChannelPartnerRepricingConfig", - "client": { - "shortName": "CloudChannelServiceClient", - "fullName": "google.cloud.channel.v1.CloudChannelServiceClient" - }, - "method": { - "shortName": "UpdateChannelPartnerRepricingConfig", - "fullName": "google.cloud.channel.v1.CloudChannelService.UpdateChannelPartnerRepricingConfig", - "service": { - "shortName": "CloudChannelService", - "fullName": "google.cloud.channel.v1.CloudChannelService" - } - } - } - }, - { - "regionTag": "cloudchannel_v1_generated_CloudChannelService_DeleteChannelPartnerRepricingConfig_async", - "title": "CloudChannelReportsService deleteChannelPartnerRepricingConfig Sample", - "origin": "API_DEFINITION", - "description": " Deletes the given [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] permanently. You can only delete configs if their [RepricingConfig.effective_invoice_month][google.cloud.channel.v1.RepricingConfig.effective_invoice_month] is set to a date after the current month. Possible error codes: * PERMISSION_DENIED: The account making the request does not own this customer. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * FAILED_PRECONDITION: The [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] is active or in the past. * NOT_FOUND: No [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] found for the name in the request.", - "canonical": true, - "file": "cloud_channel_service.delete_channel_partner_repricing_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteChannelPartnerRepricingConfig", - "fullName": "google.cloud.channel.v1.CloudChannelService.DeleteChannelPartnerRepricingConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "CloudChannelServiceClient", - "fullName": "google.cloud.channel.v1.CloudChannelServiceClient" - }, - "method": { - "shortName": "DeleteChannelPartnerRepricingConfig", - "fullName": "google.cloud.channel.v1.CloudChannelService.DeleteChannelPartnerRepricingConfig", - "service": { - "shortName": "CloudChannelService", - "fullName": "google.cloud.channel.v1.CloudChannelService" - } - } - } - }, - { - "regionTag": "cloudchannel_v1_generated_CloudChannelService_ListSkuGroups_async", - "title": "CloudChannelReportsService listSkuGroups Sample", - "origin": "API_DEFINITION", - "description": " Lists the Rebilling supported SKU groups the account is authorized to sell. Reference: https://cloud.google.com/skus/sku-groups Possible Error Codes: * PERMISSION_DENIED: If the account making the request and the account being queried are different, or the account doesn't exist. * INTERNAL: Any non-user error related to technical issues in the backend. In this case, contact Cloud Channel support. Return Value: If successful, the [SkuGroup][google.cloud.channel.v1.SkuGroup] resources. The data for each resource is displayed in the alphabetical order of SKU group display name. The data for each resource is displayed in the ascending order of [SkuGroup.display_name][google.cloud.channel.v1.SkuGroup.display_name] If unsuccessful, returns an error.", - "canonical": true, - "file": "cloud_channel_service.list_sku_groups.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSkuGroups", - "fullName": "google.cloud.channel.v1.CloudChannelService.ListSkuGroups", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.channel.v1.ListSkuGroupsResponse", - "client": { - "shortName": "CloudChannelServiceClient", - "fullName": "google.cloud.channel.v1.CloudChannelServiceClient" - }, - "method": { - "shortName": "ListSkuGroups", - "fullName": "google.cloud.channel.v1.CloudChannelService.ListSkuGroups", - "service": { - "shortName": "CloudChannelService", - "fullName": "google.cloud.channel.v1.CloudChannelService" - } - } - } - }, - { - "regionTag": "cloudchannel_v1_generated_CloudChannelService_ListSkuGroupBillableSkus_async", - "title": "CloudChannelReportsService listSkuGroupBillableSkus Sample", - "origin": "API_DEFINITION", - "description": " Lists the Billable SKUs in a given SKU group. Possible error codes: PERMISSION_DENIED: If the account making the request and the account being queried for are different, or the account doesn't exist. INVALID_ARGUMENT: Missing or invalid required parameters in the request. INTERNAL: Any non-user error related to technical issue in the backend. In this case, contact cloud channel support. Return Value: If successful, the [BillableSku][google.cloud.channel.v1.BillableSku] resources. The data for each resource is displayed in the ascending order of: * [BillableSku.service_display_name][google.cloud.channel.v1.BillableSku.service_display_name] * [BillableSku.sku_display_name][google.cloud.channel.v1.BillableSku.sku_display_name] If unsuccessful, returns an error.", - "canonical": true, - "file": "cloud_channel_service.list_sku_group_billable_skus.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSkuGroupBillableSkus", - "fullName": "google.cloud.channel.v1.CloudChannelService.ListSkuGroupBillableSkus", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.channel.v1.ListSkuGroupBillableSkusResponse", - "client": { - "shortName": "CloudChannelServiceClient", - "fullName": "google.cloud.channel.v1.CloudChannelServiceClient" - }, - "method": { - "shortName": "ListSkuGroupBillableSkus", - "fullName": "google.cloud.channel.v1.CloudChannelService.ListSkuGroupBillableSkus", - "service": { - "shortName": "CloudChannelService", - "fullName": "google.cloud.channel.v1.CloudChannelService" - } - } - } - }, - { - "regionTag": "cloudchannel_v1_generated_CloudChannelService_LookupOffer_async", - "title": "CloudChannelReportsService lookupOffer Sample", - "origin": "API_DEFINITION", - "description": " Returns the requested [Offer][google.cloud.channel.v1.Offer] resource. Possible error codes: * PERMISSION_DENIED: The entitlement doesn't belong to the reseller. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND: Entitlement or offer was not found. Return value: The [Offer][google.cloud.channel.v1.Offer] resource.", - "canonical": true, - "file": "cloud_channel_service.lookup_offer.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "LookupOffer", - "fullName": "google.cloud.channel.v1.CloudChannelService.LookupOffer", - "async": true, - "parameters": [ - { - "name": "entitlement", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.channel.v1.Offer", - "client": { - "shortName": "CloudChannelServiceClient", - "fullName": "google.cloud.channel.v1.CloudChannelServiceClient" - }, - "method": { - "shortName": "LookupOffer", - "fullName": "google.cloud.channel.v1.CloudChannelService.LookupOffer", - "service": { - "shortName": "CloudChannelService", - "fullName": "google.cloud.channel.v1.CloudChannelService" - } - } - } - }, - { - "regionTag": "cloudchannel_v1_generated_CloudChannelService_ListProducts_async", - "title": "CloudChannelReportsService listProducts Sample", - "origin": "API_DEFINITION", - "description": " Lists the Products the reseller is authorized to sell. Possible error codes: * INVALID_ARGUMENT: Required request parameters are missing or invalid.", - "canonical": true, - "file": "cloud_channel_service.list_products.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListProducts", - "fullName": "google.cloud.channel.v1.CloudChannelService.ListProducts", - "async": true, - "parameters": [ - { - "name": "account", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.channel.v1.ListProductsResponse", - "client": { - "shortName": "CloudChannelServiceClient", - "fullName": "google.cloud.channel.v1.CloudChannelServiceClient" - }, - "method": { - "shortName": "ListProducts", - "fullName": "google.cloud.channel.v1.CloudChannelService.ListProducts", - "service": { - "shortName": "CloudChannelService", - "fullName": "google.cloud.channel.v1.CloudChannelService" - } - } - } - }, - { - "regionTag": "cloudchannel_v1_generated_CloudChannelService_ListSkus_async", - "title": "CloudChannelReportsService listSkus Sample", - "origin": "API_DEFINITION", - "description": " Lists the SKUs for a product the reseller is authorized to sell. Possible error codes: * INVALID_ARGUMENT: Required request parameters are missing or invalid.", - "canonical": true, - "file": "cloud_channel_service.list_skus.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSkus", - "fullName": "google.cloud.channel.v1.CloudChannelService.ListSkus", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "account", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.channel.v1.ListSkusResponse", - "client": { - "shortName": "CloudChannelServiceClient", - "fullName": "google.cloud.channel.v1.CloudChannelServiceClient" - }, - "method": { - "shortName": "ListSkus", - "fullName": "google.cloud.channel.v1.CloudChannelService.ListSkus", - "service": { - "shortName": "CloudChannelService", - "fullName": "google.cloud.channel.v1.CloudChannelService" - } - } - } - }, - { - "regionTag": "cloudchannel_v1_generated_CloudChannelService_ListOffers_async", - "title": "CloudChannelReportsService listOffers Sample", - "origin": "API_DEFINITION", - "description": " Lists the Offers the reseller can sell. Possible error codes: * INVALID_ARGUMENT: Required request parameters are missing or invalid.", - "canonical": true, - "file": "cloud_channel_service.list_offers.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListOffers", - "fullName": "google.cloud.channel.v1.CloudChannelService.ListOffers", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "show_future_offers", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.channel.v1.ListOffersResponse", - "client": { - "shortName": "CloudChannelServiceClient", - "fullName": "google.cloud.channel.v1.CloudChannelServiceClient" - }, - "method": { - "shortName": "ListOffers", - "fullName": "google.cloud.channel.v1.CloudChannelService.ListOffers", - "service": { - "shortName": "CloudChannelService", - "fullName": "google.cloud.channel.v1.CloudChannelService" - } - } - } - }, - { - "regionTag": "cloudchannel_v1_generated_CloudChannelService_ListPurchasableSkus_async", - "title": "CloudChannelReportsService listPurchasableSkus Sample", - "origin": "API_DEFINITION", - "description": " Lists the following: * SKUs that you can purchase for a customer * SKUs that you can upgrade or downgrade for an entitlement. Possible error codes: * PERMISSION_DENIED: The customer doesn't belong to the reseller. * INVALID_ARGUMENT: Required request parameters are missing or invalid.", - "canonical": true, - "file": "cloud_channel_service.list_purchasable_skus.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPurchasableSkus", - "fullName": "google.cloud.channel.v1.CloudChannelService.ListPurchasableSkus", - "async": true, - "parameters": [ - { - "name": "create_entitlement_purchase", - "type": ".google.cloud.channel.v1.ListPurchasableSkusRequest.CreateEntitlementPurchase" - }, - { - "name": "change_offer_purchase", - "type": ".google.cloud.channel.v1.ListPurchasableSkusRequest.ChangeOfferPurchase" - }, - { - "name": "customer", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.channel.v1.ListPurchasableSkusResponse", - "client": { - "shortName": "CloudChannelServiceClient", - "fullName": "google.cloud.channel.v1.CloudChannelServiceClient" - }, - "method": { - "shortName": "ListPurchasableSkus", - "fullName": "google.cloud.channel.v1.CloudChannelService.ListPurchasableSkus", - "service": { - "shortName": "CloudChannelService", - "fullName": "google.cloud.channel.v1.CloudChannelService" - } - } - } - }, - { - "regionTag": "cloudchannel_v1_generated_CloudChannelService_ListPurchasableOffers_async", - "title": "CloudChannelReportsService listPurchasableOffers Sample", - "origin": "API_DEFINITION", - "description": " Lists the following: * Offers that you can purchase for a customer. * Offers that you can change for an entitlement. Possible error codes: * PERMISSION_DENIED: * The customer doesn't belong to the reseller * The reseller is not authorized to transact on this Product. See https://support.google.com/channelservices/answer/9759265 * INVALID_ARGUMENT: Required request parameters are missing or invalid.", - "canonical": true, - "file": "cloud_channel_service.list_purchasable_offers.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPurchasableOffers", - "fullName": "google.cloud.channel.v1.CloudChannelService.ListPurchasableOffers", - "async": true, - "parameters": [ - { - "name": "create_entitlement_purchase", - "type": ".google.cloud.channel.v1.ListPurchasableOffersRequest.CreateEntitlementPurchase" - }, - { - "name": "change_offer_purchase", - "type": ".google.cloud.channel.v1.ListPurchasableOffersRequest.ChangeOfferPurchase" - }, - { - "name": "customer", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.channel.v1.ListPurchasableOffersResponse", - "client": { - "shortName": "CloudChannelServiceClient", - "fullName": "google.cloud.channel.v1.CloudChannelServiceClient" - }, - "method": { - "shortName": "ListPurchasableOffers", - "fullName": "google.cloud.channel.v1.CloudChannelService.ListPurchasableOffers", - "service": { - "shortName": "CloudChannelService", - "fullName": "google.cloud.channel.v1.CloudChannelService" - } - } - } - }, - { - "regionTag": "cloudchannel_v1_generated_CloudChannelService_QueryEligibleBillingAccounts_async", - "title": "CloudChannelReportsService queryEligibleBillingAccounts Sample", - "origin": "API_DEFINITION", - "description": " Lists the billing accounts that are eligible to purchase particular SKUs for a given customer. Possible error codes: * PERMISSION_DENIED: The customer doesn't belong to the reseller. * INVALID_ARGUMENT: Required request parameters are missing or invalid. Return value: Based on the provided list of SKUs, returns a list of SKU groups that must be purchased using the same billing account and the billing accounts eligible to purchase each SKU group.", - "canonical": true, - "file": "cloud_channel_service.query_eligible_billing_accounts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryEligibleBillingAccounts", - "fullName": "google.cloud.channel.v1.CloudChannelService.QueryEligibleBillingAccounts", - "async": true, - "parameters": [ - { - "name": "customer", - "type": "TYPE_STRING" - }, - { - "name": "skus", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.cloud.channel.v1.QueryEligibleBillingAccountsResponse", - "client": { - "shortName": "CloudChannelServiceClient", - "fullName": "google.cloud.channel.v1.CloudChannelServiceClient" - }, - "method": { - "shortName": "QueryEligibleBillingAccounts", - "fullName": "google.cloud.channel.v1.CloudChannelService.QueryEligibleBillingAccounts", - "service": { - "shortName": "CloudChannelService", - "fullName": "google.cloud.channel.v1.CloudChannelService" - } - } - } - }, - { - "regionTag": "cloudchannel_v1_generated_CloudChannelService_RegisterSubscriber_async", - "title": "CloudChannelReportsService registerSubscriber Sample", - "origin": "API_DEFINITION", - "description": " Registers a service account with subscriber privileges on the Pub/Sub topic for this Channel Services account or integrator. After you create a subscriber, you get the events through [SubscriberEvent][google.cloud.channel.v1.SubscriberEvent] Possible error codes: * PERMISSION_DENIED: The reseller account making the request and the provided reseller account are different, or the impersonated user is not a super admin. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. * UNKNOWN: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. Return value: The topic name with the registered service email address.", - "canonical": true, - "file": "cloud_channel_service.register_subscriber.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RegisterSubscriber", - "fullName": "google.cloud.channel.v1.CloudChannelService.RegisterSubscriber", - "async": true, - "parameters": [ - { - "name": "account", - "type": "TYPE_STRING" - }, - { - "name": "service_account", - "type": "TYPE_STRING" - }, - { - "name": "integrator", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.channel.v1.RegisterSubscriberResponse", - "client": { - "shortName": "CloudChannelServiceClient", - "fullName": "google.cloud.channel.v1.CloudChannelServiceClient" - }, - "method": { - "shortName": "RegisterSubscriber", - "fullName": "google.cloud.channel.v1.CloudChannelService.RegisterSubscriber", - "service": { - "shortName": "CloudChannelService", - "fullName": "google.cloud.channel.v1.CloudChannelService" - } - } - } - }, - { - "regionTag": "cloudchannel_v1_generated_CloudChannelService_UnregisterSubscriber_async", - "title": "CloudChannelReportsService unregisterSubscriber Sample", - "origin": "API_DEFINITION", - "description": " Unregisters a service account with subscriber privileges on the Pub/Sub topic created for this Channel Services account or integrator. If there are no service accounts left with subscriber privileges, this deletes the topic. You can call ListSubscribers to check for these accounts. Possible error codes: * PERMISSION_DENIED: The reseller account making the request and the provided reseller account are different, or the impersonated user is not a super admin. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND: The topic resource doesn't exist. * INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. * UNKNOWN: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. Return value: The topic name that unregistered the service email address. Returns a success response if the service email address wasn't registered with the topic.", - "canonical": true, - "file": "cloud_channel_service.unregister_subscriber.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UnregisterSubscriber", - "fullName": "google.cloud.channel.v1.CloudChannelService.UnregisterSubscriber", - "async": true, - "parameters": [ - { - "name": "account", - "type": "TYPE_STRING" - }, - { - "name": "service_account", - "type": "TYPE_STRING" - }, - { - "name": "integrator", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.channel.v1.UnregisterSubscriberResponse", - "client": { - "shortName": "CloudChannelServiceClient", - "fullName": "google.cloud.channel.v1.CloudChannelServiceClient" - }, - "method": { - "shortName": "UnregisterSubscriber", - "fullName": "google.cloud.channel.v1.CloudChannelService.UnregisterSubscriber", - "service": { - "shortName": "CloudChannelService", - "fullName": "google.cloud.channel.v1.CloudChannelService" - } - } - } - }, - { - "regionTag": "cloudchannel_v1_generated_CloudChannelService_ListSubscribers_async", - "title": "CloudChannelReportsService listSubscribers Sample", - "origin": "API_DEFINITION", - "description": " Lists service accounts with subscriber privileges on the Pub/Sub topic created for this Channel Services account or integrator. Possible error codes: * PERMISSION_DENIED: The reseller account making the request and the provided reseller account are different, or the impersonated user is not a super admin. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND: The topic resource doesn't exist. * INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. * UNKNOWN: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. Return value: A list of service email addresses.", - "canonical": true, - "file": "cloud_channel_service.list_subscribers.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSubscribers", - "fullName": "google.cloud.channel.v1.CloudChannelService.ListSubscribers", - "async": true, - "parameters": [ - { - "name": "account", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "integrator", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.channel.v1.ListSubscribersResponse", - "client": { - "shortName": "CloudChannelServiceClient", - "fullName": "google.cloud.channel.v1.CloudChannelServiceClient" - }, - "method": { - "shortName": "ListSubscribers", - "fullName": "google.cloud.channel.v1.CloudChannelService.ListSubscribers", - "service": { - "shortName": "CloudChannelService", - "fullName": "google.cloud.channel.v1.CloudChannelService" - } - } - } - }, - { - "regionTag": "cloudchannel_v1_generated_CloudChannelService_ListEntitlementChanges_async", - "title": "CloudChannelReportsService listEntitlementChanges Sample", - "origin": "API_DEFINITION", - "description": " List entitlement history. Possible error codes: * PERMISSION_DENIED: The reseller account making the request and the provided reseller account are different. * INVALID_ARGUMENT: Missing or invalid required fields in the request. * NOT_FOUND: The parent resource doesn't exist. Usually the result of an invalid name parameter. * INTERNAL: Any non-user error related to a technical issue in the backend. In this case, contact CloudChannel support. * UNKNOWN: Any non-user error related to a technical issue in the backend. In this case, contact Cloud Channel support. Return value: List of [EntitlementChange][google.cloud.channel.v1.EntitlementChange]s.", - "canonical": true, - "file": "cloud_channel_service.list_entitlement_changes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEntitlementChanges", - "fullName": "google.cloud.channel.v1.CloudChannelService.ListEntitlementChanges", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.channel.v1.ListEntitlementChangesResponse", - "client": { - "shortName": "CloudChannelServiceClient", - "fullName": "google.cloud.channel.v1.CloudChannelServiceClient" - }, - "method": { - "shortName": "ListEntitlementChanges", - "fullName": "google.cloud.channel.v1.CloudChannelService.ListEntitlementChanges", - "service": { - "shortName": "CloudChannelService", - "fullName": "google.cloud.channel.v1.CloudChannelService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-chronicle/samples/generated/v1/snippet_metadata_google.cloud.chronicle.v1.json b/packages/google-cloud-chronicle/samples/generated/v1/snippet_metadata_google.cloud.chronicle.v1.json deleted file mode 100644 index 104d489a8c1a..000000000000 --- a/packages/google-cloud-chronicle/samples/generated/v1/snippet_metadata_google.cloud.chronicle.v1.json +++ /dev/null @@ -1,3135 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-chronicle", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.chronicle.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "chronicle_v1_generated_BigQueryExportService_GetBigQueryExport_async", - "title": "BigQueryExportService getBigQueryExport Sample", - "origin": "API_DEFINITION", - "description": " Get the BigQuery export configuration for a Chronicle instance.", - "canonical": true, - "file": "big_query_export_service.get_big_query_export.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBigQueryExport", - "fullName": "google.cloud.chronicle.v1.BigQueryExportService.GetBigQueryExport", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.chronicle.v1.BigQueryExport", - "client": { - "shortName": "BigQueryExportServiceClient", - "fullName": "google.cloud.chronicle.v1.BigQueryExportServiceClient" - }, - "method": { - "shortName": "GetBigQueryExport", - "fullName": "google.cloud.chronicle.v1.BigQueryExportService.GetBigQueryExport", - "service": { - "shortName": "BigQueryExportService", - "fullName": "google.cloud.chronicle.v1.BigQueryExportService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_BigQueryExportService_UpdateBigQueryExport_async", - "title": "BigQueryExportService updateBigQueryExport Sample", - "origin": "API_DEFINITION", - "description": " Update the BigQuery export configuration for a Chronicle instance.", - "canonical": true, - "file": "big_query_export_service.update_big_query_export.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateBigQueryExport", - "fullName": "google.cloud.chronicle.v1.BigQueryExportService.UpdateBigQueryExport", - "async": true, - "parameters": [ - { - "name": "big_query_export", - "type": ".google.cloud.chronicle.v1.BigQueryExport" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.chronicle.v1.BigQueryExport", - "client": { - "shortName": "BigQueryExportServiceClient", - "fullName": "google.cloud.chronicle.v1.BigQueryExportServiceClient" - }, - "method": { - "shortName": "UpdateBigQueryExport", - "fullName": "google.cloud.chronicle.v1.BigQueryExportService.UpdateBigQueryExport", - "service": { - "shortName": "BigQueryExportService", - "fullName": "google.cloud.chronicle.v1.BigQueryExportService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_BigQueryExportService_ProvisionBigQueryExport_async", - "title": "BigQueryExportService provisionBigQueryExport Sample", - "origin": "API_DEFINITION", - "description": " Provision the BigQuery export for a Chronicle instance. This will create {{gcp_name}} resources like {{storage_name}} buckets, BigQuery datasets and set default export settings for each data source.", - "canonical": true, - "file": "big_query_export_service.provision_big_query_export.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ProvisionBigQueryExport", - "fullName": "google.cloud.chronicle.v1.BigQueryExportService.ProvisionBigQueryExport", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.chronicle.v1.BigQueryExport", - "client": { - "shortName": "BigQueryExportServiceClient", - "fullName": "google.cloud.chronicle.v1.BigQueryExportServiceClient" - }, - "method": { - "shortName": "ProvisionBigQueryExport", - "fullName": "google.cloud.chronicle.v1.BigQueryExportService.ProvisionBigQueryExport", - "service": { - "shortName": "BigQueryExportService", - "fullName": "google.cloud.chronicle.v1.BigQueryExportService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_DashboardChartService_GetDashboardChart_async", - "title": "BigQueryExportService getDashboardChart Sample", - "origin": "API_DEFINITION", - "description": " Get a dashboard chart.", - "canonical": true, - "file": "dashboard_chart_service.get_dashboard_chart.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDashboardChart", - "fullName": "google.cloud.chronicle.v1.DashboardChartService.GetDashboardChart", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.chronicle.v1.DashboardChart", - "client": { - "shortName": "DashboardChartServiceClient", - "fullName": "google.cloud.chronicle.v1.DashboardChartServiceClient" - }, - "method": { - "shortName": "GetDashboardChart", - "fullName": "google.cloud.chronicle.v1.DashboardChartService.GetDashboardChart", - "service": { - "shortName": "DashboardChartService", - "fullName": "google.cloud.chronicle.v1.DashboardChartService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_DashboardChartService_BatchGetDashboardCharts_async", - "title": "BigQueryExportService batchGetDashboardCharts Sample", - "origin": "API_DEFINITION", - "description": " Get dashboard charts in batches.", - "canonical": true, - "file": "dashboard_chart_service.batch_get_dashboard_charts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchGetDashboardCharts", - "fullName": "google.cloud.chronicle.v1.DashboardChartService.BatchGetDashboardCharts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "names", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.cloud.chronicle.v1.BatchGetDashboardChartsResponse", - "client": { - "shortName": "DashboardChartServiceClient", - "fullName": "google.cloud.chronicle.v1.DashboardChartServiceClient" - }, - "method": { - "shortName": "BatchGetDashboardCharts", - "fullName": "google.cloud.chronicle.v1.DashboardChartService.BatchGetDashboardCharts", - "service": { - "shortName": "DashboardChartService", - "fullName": "google.cloud.chronicle.v1.DashboardChartService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_DashboardQueryService_GetDashboardQuery_async", - "title": "BigQueryExportService getDashboardQuery Sample", - "origin": "API_DEFINITION", - "description": " Get a dashboard query.", - "canonical": true, - "file": "dashboard_query_service.get_dashboard_query.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDashboardQuery", - "fullName": "google.cloud.chronicle.v1.DashboardQueryService.GetDashboardQuery", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.chronicle.v1.DashboardQuery", - "client": { - "shortName": "DashboardQueryServiceClient", - "fullName": "google.cloud.chronicle.v1.DashboardQueryServiceClient" - }, - "method": { - "shortName": "GetDashboardQuery", - "fullName": "google.cloud.chronicle.v1.DashboardQueryService.GetDashboardQuery", - "service": { - "shortName": "DashboardQueryService", - "fullName": "google.cloud.chronicle.v1.DashboardQueryService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_DashboardQueryService_ExecuteDashboardQuery_async", - "title": "BigQueryExportService executeDashboardQuery Sample", - "origin": "API_DEFINITION", - "description": " Execute a query and return the data.", - "canonical": true, - "file": "dashboard_query_service.execute_dashboard_query.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExecuteDashboardQuery", - "fullName": "google.cloud.chronicle.v1.DashboardQueryService.ExecuteDashboardQuery", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": ".google.cloud.chronicle.v1.DashboardQuery" - }, - { - "name": "filters", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "clear_cache", - "type": "TYPE_BOOL" - }, - { - "name": "use_previous_time_range", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.chronicle.v1.ExecuteDashboardQueryResponse", - "client": { - "shortName": "DashboardQueryServiceClient", - "fullName": "google.cloud.chronicle.v1.DashboardQueryServiceClient" - }, - "method": { - "shortName": "ExecuteDashboardQuery", - "fullName": "google.cloud.chronicle.v1.DashboardQueryService.ExecuteDashboardQuery", - "service": { - "shortName": "DashboardQueryService", - "fullName": "google.cloud.chronicle.v1.DashboardQueryService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_DataAccessControlService_CreateDataAccessLabel_async", - "title": "BigQueryExportService createDataAccessLabel Sample", - "origin": "API_DEFINITION", - "description": " Creates a data access label. Data access labels are applied to incoming event data and selected in data access scopes (another resource), and only users with scopes containing the label can see data with that label. Currently, the data access label resource only includes custom labels, which are labels that correspond to UDM queries over event data.", - "canonical": true, - "file": "data_access_control_service.create_data_access_label.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDataAccessLabel", - "fullName": "google.cloud.chronicle.v1.DataAccessControlService.CreateDataAccessLabel", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "data_access_label", - "type": ".google.cloud.chronicle.v1.DataAccessLabel" - }, - { - "name": "data_access_label_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.chronicle.v1.DataAccessLabel", - "client": { - "shortName": "DataAccessControlServiceClient", - "fullName": "google.cloud.chronicle.v1.DataAccessControlServiceClient" - }, - "method": { - "shortName": "CreateDataAccessLabel", - "fullName": "google.cloud.chronicle.v1.DataAccessControlService.CreateDataAccessLabel", - "service": { - "shortName": "DataAccessControlService", - "fullName": "google.cloud.chronicle.v1.DataAccessControlService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_DataAccessControlService_GetDataAccessLabel_async", - "title": "BigQueryExportService getDataAccessLabel Sample", - "origin": "API_DEFINITION", - "description": " Gets a data access label.", - "canonical": true, - "file": "data_access_control_service.get_data_access_label.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDataAccessLabel", - "fullName": "google.cloud.chronicle.v1.DataAccessControlService.GetDataAccessLabel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.chronicle.v1.DataAccessLabel", - "client": { - "shortName": "DataAccessControlServiceClient", - "fullName": "google.cloud.chronicle.v1.DataAccessControlServiceClient" - }, - "method": { - "shortName": "GetDataAccessLabel", - "fullName": "google.cloud.chronicle.v1.DataAccessControlService.GetDataAccessLabel", - "service": { - "shortName": "DataAccessControlService", - "fullName": "google.cloud.chronicle.v1.DataAccessControlService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_DataAccessControlService_ListDataAccessLabels_async", - "title": "BigQueryExportService listDataAccessLabels Sample", - "origin": "API_DEFINITION", - "description": " Lists all data access labels for the customer.", - "canonical": true, - "file": "data_access_control_service.list_data_access_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDataAccessLabels", - "fullName": "google.cloud.chronicle.v1.DataAccessControlService.ListDataAccessLabels", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.chronicle.v1.ListDataAccessLabelsResponse", - "client": { - "shortName": "DataAccessControlServiceClient", - "fullName": "google.cloud.chronicle.v1.DataAccessControlServiceClient" - }, - "method": { - "shortName": "ListDataAccessLabels", - "fullName": "google.cloud.chronicle.v1.DataAccessControlService.ListDataAccessLabels", - "service": { - "shortName": "DataAccessControlService", - "fullName": "google.cloud.chronicle.v1.DataAccessControlService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_DataAccessControlService_UpdateDataAccessLabel_async", - "title": "BigQueryExportService updateDataAccessLabel Sample", - "origin": "API_DEFINITION", - "description": " Updates a data access label.", - "canonical": true, - "file": "data_access_control_service.update_data_access_label.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDataAccessLabel", - "fullName": "google.cloud.chronicle.v1.DataAccessControlService.UpdateDataAccessLabel", - "async": true, - "parameters": [ - { - "name": "data_access_label", - "type": ".google.cloud.chronicle.v1.DataAccessLabel" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.chronicle.v1.DataAccessLabel", - "client": { - "shortName": "DataAccessControlServiceClient", - "fullName": "google.cloud.chronicle.v1.DataAccessControlServiceClient" - }, - "method": { - "shortName": "UpdateDataAccessLabel", - "fullName": "google.cloud.chronicle.v1.DataAccessControlService.UpdateDataAccessLabel", - "service": { - "shortName": "DataAccessControlService", - "fullName": "google.cloud.chronicle.v1.DataAccessControlService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_DataAccessControlService_DeleteDataAccessLabel_async", - "title": "BigQueryExportService deleteDataAccessLabel Sample", - "origin": "API_DEFINITION", - "description": " Deletes a data access label. When a label is deleted, new data that enters in the system will not receive the label, but the label will not be removed from old data that still refers to it.", - "canonical": true, - "file": "data_access_control_service.delete_data_access_label.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDataAccessLabel", - "fullName": "google.cloud.chronicle.v1.DataAccessControlService.DeleteDataAccessLabel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DataAccessControlServiceClient", - "fullName": "google.cloud.chronicle.v1.DataAccessControlServiceClient" - }, - "method": { - "shortName": "DeleteDataAccessLabel", - "fullName": "google.cloud.chronicle.v1.DataAccessControlService.DeleteDataAccessLabel", - "service": { - "shortName": "DataAccessControlService", - "fullName": "google.cloud.chronicle.v1.DataAccessControlService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_DataAccessControlService_CreateDataAccessScope_async", - "title": "BigQueryExportService createDataAccessScope Sample", - "origin": "API_DEFINITION", - "description": " Creates a data access scope. Data access scope is a combination of allowed and denied labels attached to a permission group. If a scope has allowed labels A and B and denied labels C and D, then the group of people attached to the scope will have permissions to see all events labeled with A or B (or both) and not labeled with either C or D.", - "canonical": true, - "file": "data_access_control_service.create_data_access_scope.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDataAccessScope", - "fullName": "google.cloud.chronicle.v1.DataAccessControlService.CreateDataAccessScope", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "data_access_scope", - "type": ".google.cloud.chronicle.v1.DataAccessScope" - }, - { - "name": "data_access_scope_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.chronicle.v1.DataAccessScope", - "client": { - "shortName": "DataAccessControlServiceClient", - "fullName": "google.cloud.chronicle.v1.DataAccessControlServiceClient" - }, - "method": { - "shortName": "CreateDataAccessScope", - "fullName": "google.cloud.chronicle.v1.DataAccessControlService.CreateDataAccessScope", - "service": { - "shortName": "DataAccessControlService", - "fullName": "google.cloud.chronicle.v1.DataAccessControlService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_DataAccessControlService_GetDataAccessScope_async", - "title": "BigQueryExportService getDataAccessScope Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an existing data access scope.", - "canonical": true, - "file": "data_access_control_service.get_data_access_scope.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDataAccessScope", - "fullName": "google.cloud.chronicle.v1.DataAccessControlService.GetDataAccessScope", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.chronicle.v1.DataAccessScope", - "client": { - "shortName": "DataAccessControlServiceClient", - "fullName": "google.cloud.chronicle.v1.DataAccessControlServiceClient" - }, - "method": { - "shortName": "GetDataAccessScope", - "fullName": "google.cloud.chronicle.v1.DataAccessControlService.GetDataAccessScope", - "service": { - "shortName": "DataAccessControlService", - "fullName": "google.cloud.chronicle.v1.DataAccessControlService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_DataAccessControlService_ListDataAccessScopes_async", - "title": "BigQueryExportService listDataAccessScopes Sample", - "origin": "API_DEFINITION", - "description": " Lists all existing data access scopes for the customer.", - "canonical": true, - "file": "data_access_control_service.list_data_access_scopes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDataAccessScopes", - "fullName": "google.cloud.chronicle.v1.DataAccessControlService.ListDataAccessScopes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.chronicle.v1.ListDataAccessScopesResponse", - "client": { - "shortName": "DataAccessControlServiceClient", - "fullName": "google.cloud.chronicle.v1.DataAccessControlServiceClient" - }, - "method": { - "shortName": "ListDataAccessScopes", - "fullName": "google.cloud.chronicle.v1.DataAccessControlService.ListDataAccessScopes", - "service": { - "shortName": "DataAccessControlService", - "fullName": "google.cloud.chronicle.v1.DataAccessControlService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_DataAccessControlService_UpdateDataAccessScope_async", - "title": "BigQueryExportService updateDataAccessScope Sample", - "origin": "API_DEFINITION", - "description": " Updates a data access scope.", - "canonical": true, - "file": "data_access_control_service.update_data_access_scope.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDataAccessScope", - "fullName": "google.cloud.chronicle.v1.DataAccessControlService.UpdateDataAccessScope", - "async": true, - "parameters": [ - { - "name": "data_access_scope", - "type": ".google.cloud.chronicle.v1.DataAccessScope" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.chronicle.v1.DataAccessScope", - "client": { - "shortName": "DataAccessControlServiceClient", - "fullName": "google.cloud.chronicle.v1.DataAccessControlServiceClient" - }, - "method": { - "shortName": "UpdateDataAccessScope", - "fullName": "google.cloud.chronicle.v1.DataAccessControlService.UpdateDataAccessScope", - "service": { - "shortName": "DataAccessControlService", - "fullName": "google.cloud.chronicle.v1.DataAccessControlService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_DataAccessControlService_DeleteDataAccessScope_async", - "title": "BigQueryExportService deleteDataAccessScope Sample", - "origin": "API_DEFINITION", - "description": " Deletes a data access scope.", - "canonical": true, - "file": "data_access_control_service.delete_data_access_scope.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDataAccessScope", - "fullName": "google.cloud.chronicle.v1.DataAccessControlService.DeleteDataAccessScope", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DataAccessControlServiceClient", - "fullName": "google.cloud.chronicle.v1.DataAccessControlServiceClient" - }, - "method": { - "shortName": "DeleteDataAccessScope", - "fullName": "google.cloud.chronicle.v1.DataAccessControlService.DeleteDataAccessScope", - "service": { - "shortName": "DataAccessControlService", - "fullName": "google.cloud.chronicle.v1.DataAccessControlService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_DataTableService_CreateDataTable_async", - "title": "BigQueryExportService createDataTable Sample", - "origin": "API_DEFINITION", - "description": " Create a new data table.", - "canonical": true, - "file": "data_table_service.create_data_table.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDataTable", - "fullName": "google.cloud.chronicle.v1.DataTableService.CreateDataTable", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "data_table", - "type": ".google.cloud.chronicle.v1.DataTable" - }, - { - "name": "data_table_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.chronicle.v1.DataTable", - "client": { - "shortName": "DataTableServiceClient", - "fullName": "google.cloud.chronicle.v1.DataTableServiceClient" - }, - "method": { - "shortName": "CreateDataTable", - "fullName": "google.cloud.chronicle.v1.DataTableService.CreateDataTable", - "service": { - "shortName": "DataTableService", - "fullName": "google.cloud.chronicle.v1.DataTableService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_DataTableService_ListDataTables_async", - "title": "BigQueryExportService listDataTables Sample", - "origin": "API_DEFINITION", - "description": " List data tables.", - "canonical": true, - "file": "data_table_service.list_data_tables.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDataTables", - "fullName": "google.cloud.chronicle.v1.DataTableService.ListDataTables", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.chronicle.v1.ListDataTablesResponse", - "client": { - "shortName": "DataTableServiceClient", - "fullName": "google.cloud.chronicle.v1.DataTableServiceClient" - }, - "method": { - "shortName": "ListDataTables", - "fullName": "google.cloud.chronicle.v1.DataTableService.ListDataTables", - "service": { - "shortName": "DataTableService", - "fullName": "google.cloud.chronicle.v1.DataTableService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_DataTableService_GetDataTable_async", - "title": "BigQueryExportService getDataTable Sample", - "origin": "API_DEFINITION", - "description": " Get data table info.", - "canonical": true, - "file": "data_table_service.get_data_table.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDataTable", - "fullName": "google.cloud.chronicle.v1.DataTableService.GetDataTable", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.chronicle.v1.DataTable", - "client": { - "shortName": "DataTableServiceClient", - "fullName": "google.cloud.chronicle.v1.DataTableServiceClient" - }, - "method": { - "shortName": "GetDataTable", - "fullName": "google.cloud.chronicle.v1.DataTableService.GetDataTable", - "service": { - "shortName": "DataTableService", - "fullName": "google.cloud.chronicle.v1.DataTableService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_DataTableService_UpdateDataTable_async", - "title": "BigQueryExportService updateDataTable Sample", - "origin": "API_DEFINITION", - "description": " Update data table.", - "canonical": true, - "file": "data_table_service.update_data_table.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDataTable", - "fullName": "google.cloud.chronicle.v1.DataTableService.UpdateDataTable", - "async": true, - "parameters": [ - { - "name": "data_table", - "type": ".google.cloud.chronicle.v1.DataTable" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.chronicle.v1.DataTable", - "client": { - "shortName": "DataTableServiceClient", - "fullName": "google.cloud.chronicle.v1.DataTableServiceClient" - }, - "method": { - "shortName": "UpdateDataTable", - "fullName": "google.cloud.chronicle.v1.DataTableService.UpdateDataTable", - "service": { - "shortName": "DataTableService", - "fullName": "google.cloud.chronicle.v1.DataTableService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_DataTableService_DeleteDataTable_async", - "title": "BigQueryExportService deleteDataTable Sample", - "origin": "API_DEFINITION", - "description": " Delete data table.", - "canonical": true, - "file": "data_table_service.delete_data_table.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDataTable", - "fullName": "google.cloud.chronicle.v1.DataTableService.DeleteDataTable", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DataTableServiceClient", - "fullName": "google.cloud.chronicle.v1.DataTableServiceClient" - }, - "method": { - "shortName": "DeleteDataTable", - "fullName": "google.cloud.chronicle.v1.DataTableService.DeleteDataTable", - "service": { - "shortName": "DataTableService", - "fullName": "google.cloud.chronicle.v1.DataTableService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_DataTableService_CreateDataTableRow_async", - "title": "BigQueryExportService createDataTableRow Sample", - "origin": "API_DEFINITION", - "description": " Create a new data table row.", - "canonical": true, - "file": "data_table_service.create_data_table_row.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDataTableRow", - "fullName": "google.cloud.chronicle.v1.DataTableService.CreateDataTableRow", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "data_table_row", - "type": ".google.cloud.chronicle.v1.DataTableRow" - } - ], - "resultType": ".google.cloud.chronicle.v1.DataTableRow", - "client": { - "shortName": "DataTableServiceClient", - "fullName": "google.cloud.chronicle.v1.DataTableServiceClient" - }, - "method": { - "shortName": "CreateDataTableRow", - "fullName": "google.cloud.chronicle.v1.DataTableService.CreateDataTableRow", - "service": { - "shortName": "DataTableService", - "fullName": "google.cloud.chronicle.v1.DataTableService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_DataTableService_UpdateDataTableRow_async", - "title": "BigQueryExportService updateDataTableRow Sample", - "origin": "API_DEFINITION", - "description": " Update data table row", - "canonical": true, - "file": "data_table_service.update_data_table_row.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDataTableRow", - "fullName": "google.cloud.chronicle.v1.DataTableService.UpdateDataTableRow", - "async": true, - "parameters": [ - { - "name": "data_table_row", - "type": ".google.cloud.chronicle.v1.DataTableRow" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.chronicle.v1.DataTableRow", - "client": { - "shortName": "DataTableServiceClient", - "fullName": "google.cloud.chronicle.v1.DataTableServiceClient" - }, - "method": { - "shortName": "UpdateDataTableRow", - "fullName": "google.cloud.chronicle.v1.DataTableService.UpdateDataTableRow", - "service": { - "shortName": "DataTableService", - "fullName": "google.cloud.chronicle.v1.DataTableService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_DataTableService_ListDataTableRows_async", - "title": "BigQueryExportService listDataTableRows Sample", - "origin": "API_DEFINITION", - "description": " List data table rows.", - "canonical": true, - "file": "data_table_service.list_data_table_rows.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDataTableRows", - "fullName": "google.cloud.chronicle.v1.DataTableService.ListDataTableRows", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.chronicle.v1.ListDataTableRowsResponse", - "client": { - "shortName": "DataTableServiceClient", - "fullName": "google.cloud.chronicle.v1.DataTableServiceClient" - }, - "method": { - "shortName": "ListDataTableRows", - "fullName": "google.cloud.chronicle.v1.DataTableService.ListDataTableRows", - "service": { - "shortName": "DataTableService", - "fullName": "google.cloud.chronicle.v1.DataTableService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_DataTableService_GetDataTableRow_async", - "title": "BigQueryExportService getDataTableRow Sample", - "origin": "API_DEFINITION", - "description": " Get data table row", - "canonical": true, - "file": "data_table_service.get_data_table_row.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDataTableRow", - "fullName": "google.cloud.chronicle.v1.DataTableService.GetDataTableRow", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.chronicle.v1.DataTableRow", - "client": { - "shortName": "DataTableServiceClient", - "fullName": "google.cloud.chronicle.v1.DataTableServiceClient" - }, - "method": { - "shortName": "GetDataTableRow", - "fullName": "google.cloud.chronicle.v1.DataTableService.GetDataTableRow", - "service": { - "shortName": "DataTableService", - "fullName": "google.cloud.chronicle.v1.DataTableService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_DataTableService_DeleteDataTableRow_async", - "title": "BigQueryExportService deleteDataTableRow Sample", - "origin": "API_DEFINITION", - "description": " Delete data table row.", - "canonical": true, - "file": "data_table_service.delete_data_table_row.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDataTableRow", - "fullName": "google.cloud.chronicle.v1.DataTableService.DeleteDataTableRow", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DataTableServiceClient", - "fullName": "google.cloud.chronicle.v1.DataTableServiceClient" - }, - "method": { - "shortName": "DeleteDataTableRow", - "fullName": "google.cloud.chronicle.v1.DataTableService.DeleteDataTableRow", - "service": { - "shortName": "DataTableService", - "fullName": "google.cloud.chronicle.v1.DataTableService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_DataTableService_BulkCreateDataTableRows_async", - "title": "BigQueryExportService bulkCreateDataTableRows Sample", - "origin": "API_DEFINITION", - "description": " Create data table rows in bulk.", - "canonical": true, - "file": "data_table_service.bulk_create_data_table_rows.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BulkCreateDataTableRows", - "fullName": "google.cloud.chronicle.v1.DataTableService.BulkCreateDataTableRows", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.chronicle.v1.BulkCreateDataTableRowsResponse", - "client": { - "shortName": "DataTableServiceClient", - "fullName": "google.cloud.chronicle.v1.DataTableServiceClient" - }, - "method": { - "shortName": "BulkCreateDataTableRows", - "fullName": "google.cloud.chronicle.v1.DataTableService.BulkCreateDataTableRows", - "service": { - "shortName": "DataTableService", - "fullName": "google.cloud.chronicle.v1.DataTableService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_DataTableService_BulkGetDataTableRows_async", - "title": "BigQueryExportService bulkGetDataTableRows Sample", - "origin": "API_DEFINITION", - "description": " Get data table rows in bulk.", - "canonical": true, - "file": "data_table_service.bulk_get_data_table_rows.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BulkGetDataTableRows", - "fullName": "google.cloud.chronicle.v1.DataTableService.BulkGetDataTableRows", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.chronicle.v1.BulkGetDataTableRowsResponse", - "client": { - "shortName": "DataTableServiceClient", - "fullName": "google.cloud.chronicle.v1.DataTableServiceClient" - }, - "method": { - "shortName": "BulkGetDataTableRows", - "fullName": "google.cloud.chronicle.v1.DataTableService.BulkGetDataTableRows", - "service": { - "shortName": "DataTableService", - "fullName": "google.cloud.chronicle.v1.DataTableService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_DataTableService_BulkReplaceDataTableRows_async", - "title": "BigQueryExportService bulkReplaceDataTableRows Sample", - "origin": "API_DEFINITION", - "description": " Replace all existing data table rows with new data table rows.", - "canonical": true, - "file": "data_table_service.bulk_replace_data_table_rows.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BulkReplaceDataTableRows", - "fullName": "google.cloud.chronicle.v1.DataTableService.BulkReplaceDataTableRows", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.chronicle.v1.BulkReplaceDataTableRowsResponse", - "client": { - "shortName": "DataTableServiceClient", - "fullName": "google.cloud.chronicle.v1.DataTableServiceClient" - }, - "method": { - "shortName": "BulkReplaceDataTableRows", - "fullName": "google.cloud.chronicle.v1.DataTableService.BulkReplaceDataTableRows", - "service": { - "shortName": "DataTableService", - "fullName": "google.cloud.chronicle.v1.DataTableService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_DataTableService_BulkUpdateDataTableRows_async", - "title": "BigQueryExportService bulkUpdateDataTableRows Sample", - "origin": "API_DEFINITION", - "description": " Update data table rows in bulk.", - "canonical": true, - "file": "data_table_service.bulk_update_data_table_rows.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BulkUpdateDataTableRows", - "fullName": "google.cloud.chronicle.v1.DataTableService.BulkUpdateDataTableRows", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.chronicle.v1.BulkUpdateDataTableRowsResponse", - "client": { - "shortName": "DataTableServiceClient", - "fullName": "google.cloud.chronicle.v1.DataTableServiceClient" - }, - "method": { - "shortName": "BulkUpdateDataTableRows", - "fullName": "google.cloud.chronicle.v1.DataTableService.BulkUpdateDataTableRows", - "service": { - "shortName": "DataTableService", - "fullName": "google.cloud.chronicle.v1.DataTableService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_DataTableService_GetDataTableOperationErrors_async", - "title": "BigQueryExportService getDataTableOperationErrors Sample", - "origin": "API_DEFINITION", - "description": " Get the error for a data table operation.", - "canonical": true, - "file": "data_table_service.get_data_table_operation_errors.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDataTableOperationErrors", - "fullName": "google.cloud.chronicle.v1.DataTableService.GetDataTableOperationErrors", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.chronicle.v1.DataTableOperationErrors", - "client": { - "shortName": "DataTableServiceClient", - "fullName": "google.cloud.chronicle.v1.DataTableServiceClient" - }, - "method": { - "shortName": "GetDataTableOperationErrors", - "fullName": "google.cloud.chronicle.v1.DataTableService.GetDataTableOperationErrors", - "service": { - "shortName": "DataTableService", - "fullName": "google.cloud.chronicle.v1.DataTableService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_EntityService_GetWatchlist_async", - "title": "BigQueryExportService getWatchlist Sample", - "origin": "API_DEFINITION", - "description": " Gets watchlist details for the given watchlist ID.", - "canonical": true, - "file": "entity_service.get_watchlist.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetWatchlist", - "fullName": "google.cloud.chronicle.v1.EntityService.GetWatchlist", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.chronicle.v1.Watchlist", - "client": { - "shortName": "EntityServiceClient", - "fullName": "google.cloud.chronicle.v1.EntityServiceClient" - }, - "method": { - "shortName": "GetWatchlist", - "fullName": "google.cloud.chronicle.v1.EntityService.GetWatchlist", - "service": { - "shortName": "EntityService", - "fullName": "google.cloud.chronicle.v1.EntityService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_EntityService_ListWatchlists_async", - "title": "BigQueryExportService listWatchlists Sample", - "origin": "API_DEFINITION", - "description": " Lists all watchlists for the given instance.", - "canonical": true, - "file": "entity_service.list_watchlists.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListWatchlists", - "fullName": "google.cloud.chronicle.v1.EntityService.ListWatchlists", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.chronicle.v1.ListWatchlistsResponse", - "client": { - "shortName": "EntityServiceClient", - "fullName": "google.cloud.chronicle.v1.EntityServiceClient" - }, - "method": { - "shortName": "ListWatchlists", - "fullName": "google.cloud.chronicle.v1.EntityService.ListWatchlists", - "service": { - "shortName": "EntityService", - "fullName": "google.cloud.chronicle.v1.EntityService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_EntityService_CreateWatchlist_async", - "title": "BigQueryExportService createWatchlist Sample", - "origin": "API_DEFINITION", - "description": " Creates a watchlist for the given instance. Note that there can be at most 200 watchlists per instance.", - "canonical": true, - "file": "entity_service.create_watchlist.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateWatchlist", - "fullName": "google.cloud.chronicle.v1.EntityService.CreateWatchlist", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "watchlist_id", - "type": "TYPE_STRING" - }, - { - "name": "watchlist", - "type": ".google.cloud.chronicle.v1.Watchlist" - } - ], - "resultType": ".google.cloud.chronicle.v1.Watchlist", - "client": { - "shortName": "EntityServiceClient", - "fullName": "google.cloud.chronicle.v1.EntityServiceClient" - }, - "method": { - "shortName": "CreateWatchlist", - "fullName": "google.cloud.chronicle.v1.EntityService.CreateWatchlist", - "service": { - "shortName": "EntityService", - "fullName": "google.cloud.chronicle.v1.EntityService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_EntityService_UpdateWatchlist_async", - "title": "BigQueryExportService updateWatchlist Sample", - "origin": "API_DEFINITION", - "description": " Updates the watchlist for the given instance.", - "canonical": true, - "file": "entity_service.update_watchlist.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateWatchlist", - "fullName": "google.cloud.chronicle.v1.EntityService.UpdateWatchlist", - "async": true, - "parameters": [ - { - "name": "watchlist", - "type": ".google.cloud.chronicle.v1.Watchlist" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.chronicle.v1.Watchlist", - "client": { - "shortName": "EntityServiceClient", - "fullName": "google.cloud.chronicle.v1.EntityServiceClient" - }, - "method": { - "shortName": "UpdateWatchlist", - "fullName": "google.cloud.chronicle.v1.EntityService.UpdateWatchlist", - "service": { - "shortName": "EntityService", - "fullName": "google.cloud.chronicle.v1.EntityService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_EntityService_DeleteWatchlist_async", - "title": "BigQueryExportService deleteWatchlist Sample", - "origin": "API_DEFINITION", - "description": " Deletes the watchlist for the given instance.", - "canonical": true, - "file": "entity_service.delete_watchlist.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteWatchlist", - "fullName": "google.cloud.chronicle.v1.EntityService.DeleteWatchlist", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "EntityServiceClient", - "fullName": "google.cloud.chronicle.v1.EntityServiceClient" - }, - "method": { - "shortName": "DeleteWatchlist", - "fullName": "google.cloud.chronicle.v1.EntityService.DeleteWatchlist", - "service": { - "shortName": "EntityService", - "fullName": "google.cloud.chronicle.v1.EntityService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_FeaturedContentNativeDashboardService_GetFeaturedContentNativeDashboard_async", - "title": "BigQueryExportService getFeaturedContentNativeDashboard Sample", - "origin": "API_DEFINITION", - "description": " Get a native dashboard featured content.", - "canonical": true, - "file": "featured_content_native_dashboard_service.get_featured_content_native_dashboard.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFeaturedContentNativeDashboard", - "fullName": "google.cloud.chronicle.v1.FeaturedContentNativeDashboardService.GetFeaturedContentNativeDashboard", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.chronicle.v1.FeaturedContentNativeDashboard", - "client": { - "shortName": "FeaturedContentNativeDashboardServiceClient", - "fullName": "google.cloud.chronicle.v1.FeaturedContentNativeDashboardServiceClient" - }, - "method": { - "shortName": "GetFeaturedContentNativeDashboard", - "fullName": "google.cloud.chronicle.v1.FeaturedContentNativeDashboardService.GetFeaturedContentNativeDashboard", - "service": { - "shortName": "FeaturedContentNativeDashboardService", - "fullName": "google.cloud.chronicle.v1.FeaturedContentNativeDashboardService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_FeaturedContentNativeDashboardService_ListFeaturedContentNativeDashboards_async", - "title": "BigQueryExportService listFeaturedContentNativeDashboards Sample", - "origin": "API_DEFINITION", - "description": " List all native dashboards featured content.", - "canonical": true, - "file": "featured_content_native_dashboard_service.list_featured_content_native_dashboards.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 90, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFeaturedContentNativeDashboards", - "fullName": "google.cloud.chronicle.v1.FeaturedContentNativeDashboardService.ListFeaturedContentNativeDashboards", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.chronicle.v1.ListFeaturedContentNativeDashboardsResponse", - "client": { - "shortName": "FeaturedContentNativeDashboardServiceClient", - "fullName": "google.cloud.chronicle.v1.FeaturedContentNativeDashboardServiceClient" - }, - "method": { - "shortName": "ListFeaturedContentNativeDashboards", - "fullName": "google.cloud.chronicle.v1.FeaturedContentNativeDashboardService.ListFeaturedContentNativeDashboards", - "service": { - "shortName": "FeaturedContentNativeDashboardService", - "fullName": "google.cloud.chronicle.v1.FeaturedContentNativeDashboardService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_FeaturedContentNativeDashboardService_InstallFeaturedContentNativeDashboard_async", - "title": "BigQueryExportService installFeaturedContentNativeDashboard Sample", - "origin": "API_DEFINITION", - "description": " Install a native dashboard featured content.", - "canonical": true, - "file": "featured_content_native_dashboard_service.install_featured_content_native_dashboard.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "InstallFeaturedContentNativeDashboard", - "fullName": "google.cloud.chronicle.v1.FeaturedContentNativeDashboardService.InstallFeaturedContentNativeDashboard", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "featured_content_native_dashboard", - "type": ".google.cloud.chronicle.v1.FeaturedContentNativeDashboard" - } - ], - "resultType": ".google.cloud.chronicle.v1.InstallFeaturedContentNativeDashboardResponse", - "client": { - "shortName": "FeaturedContentNativeDashboardServiceClient", - "fullName": "google.cloud.chronicle.v1.FeaturedContentNativeDashboardServiceClient" - }, - "method": { - "shortName": "InstallFeaturedContentNativeDashboard", - "fullName": "google.cloud.chronicle.v1.FeaturedContentNativeDashboardService.InstallFeaturedContentNativeDashboard", - "service": { - "shortName": "FeaturedContentNativeDashboardService", - "fullName": "google.cloud.chronicle.v1.FeaturedContentNativeDashboardService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_InstanceService_GetInstance_async", - "title": "BigQueryExportService getInstance Sample", - "origin": "API_DEFINITION", - "description": " Gets a Instance.", - "canonical": true, - "file": "instance_service.get_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetInstance", - "fullName": "google.cloud.chronicle.v1.InstanceService.GetInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.chronicle.v1.Instance", - "client": { - "shortName": "InstanceServiceClient", - "fullName": "google.cloud.chronicle.v1.InstanceServiceClient" - }, - "method": { - "shortName": "GetInstance", - "fullName": "google.cloud.chronicle.v1.InstanceService.GetInstance", - "service": { - "shortName": "InstanceService", - "fullName": "google.cloud.chronicle.v1.InstanceService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_NativeDashboardService_CreateNativeDashboard_async", - "title": "BigQueryExportService createNativeDashboard Sample", - "origin": "API_DEFINITION", - "description": " Create a dashboard.", - "canonical": true, - "file": "native_dashboard_service.create_native_dashboard.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateNativeDashboard", - "fullName": "google.cloud.chronicle.v1.NativeDashboardService.CreateNativeDashboard", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "native_dashboard", - "type": ".google.cloud.chronicle.v1.NativeDashboard" - } - ], - "resultType": ".google.cloud.chronicle.v1.NativeDashboard", - "client": { - "shortName": "NativeDashboardServiceClient", - "fullName": "google.cloud.chronicle.v1.NativeDashboardServiceClient" - }, - "method": { - "shortName": "CreateNativeDashboard", - "fullName": "google.cloud.chronicle.v1.NativeDashboardService.CreateNativeDashboard", - "service": { - "shortName": "NativeDashboardService", - "fullName": "google.cloud.chronicle.v1.NativeDashboardService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_NativeDashboardService_GetNativeDashboard_async", - "title": "BigQueryExportService getNativeDashboard Sample", - "origin": "API_DEFINITION", - "description": " Get a dashboard.", - "canonical": true, - "file": "native_dashboard_service.get_native_dashboard.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetNativeDashboard", - "fullName": "google.cloud.chronicle.v1.NativeDashboardService.GetNativeDashboard", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.chronicle.v1.NativeDashboardView" - } - ], - "resultType": ".google.cloud.chronicle.v1.NativeDashboard", - "client": { - "shortName": "NativeDashboardServiceClient", - "fullName": "google.cloud.chronicle.v1.NativeDashboardServiceClient" - }, - "method": { - "shortName": "GetNativeDashboard", - "fullName": "google.cloud.chronicle.v1.NativeDashboardService.GetNativeDashboard", - "service": { - "shortName": "NativeDashboardService", - "fullName": "google.cloud.chronicle.v1.NativeDashboardService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_NativeDashboardService_ListNativeDashboards_async", - "title": "BigQueryExportService listNativeDashboards Sample", - "origin": "API_DEFINITION", - "description": " List all dashboards.", - "canonical": true, - "file": "native_dashboard_service.list_native_dashboards.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListNativeDashboards", - "fullName": "google.cloud.chronicle.v1.NativeDashboardService.ListNativeDashboards", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.chronicle.v1.NativeDashboardView" - } - ], - "resultType": ".google.cloud.chronicle.v1.ListNativeDashboardsResponse", - "client": { - "shortName": "NativeDashboardServiceClient", - "fullName": "google.cloud.chronicle.v1.NativeDashboardServiceClient" - }, - "method": { - "shortName": "ListNativeDashboards", - "fullName": "google.cloud.chronicle.v1.NativeDashboardService.ListNativeDashboards", - "service": { - "shortName": "NativeDashboardService", - "fullName": "google.cloud.chronicle.v1.NativeDashboardService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_NativeDashboardService_UpdateNativeDashboard_async", - "title": "BigQueryExportService updateNativeDashboard Sample", - "origin": "API_DEFINITION", - "description": " Update a dashboard.", - "canonical": true, - "file": "native_dashboard_service.update_native_dashboard.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateNativeDashboard", - "fullName": "google.cloud.chronicle.v1.NativeDashboardService.UpdateNativeDashboard", - "async": true, - "parameters": [ - { - "name": "native_dashboard", - "type": ".google.cloud.chronicle.v1.NativeDashboard" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.chronicle.v1.NativeDashboard", - "client": { - "shortName": "NativeDashboardServiceClient", - "fullName": "google.cloud.chronicle.v1.NativeDashboardServiceClient" - }, - "method": { - "shortName": "UpdateNativeDashboard", - "fullName": "google.cloud.chronicle.v1.NativeDashboardService.UpdateNativeDashboard", - "service": { - "shortName": "NativeDashboardService", - "fullName": "google.cloud.chronicle.v1.NativeDashboardService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_NativeDashboardService_DuplicateNativeDashboard_async", - "title": "BigQueryExportService duplicateNativeDashboard Sample", - "origin": "API_DEFINITION", - "description": " Duplicate a dashboard.", - "canonical": true, - "file": "native_dashboard_service.duplicate_native_dashboard.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DuplicateNativeDashboard", - "fullName": "google.cloud.chronicle.v1.NativeDashboardService.DuplicateNativeDashboard", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "native_dashboard", - "type": ".google.cloud.chronicle.v1.NativeDashboard" - } - ], - "resultType": ".google.cloud.chronicle.v1.NativeDashboard", - "client": { - "shortName": "NativeDashboardServiceClient", - "fullName": "google.cloud.chronicle.v1.NativeDashboardServiceClient" - }, - "method": { - "shortName": "DuplicateNativeDashboard", - "fullName": "google.cloud.chronicle.v1.NativeDashboardService.DuplicateNativeDashboard", - "service": { - "shortName": "NativeDashboardService", - "fullName": "google.cloud.chronicle.v1.NativeDashboardService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_NativeDashboardService_DeleteNativeDashboard_async", - "title": "BigQueryExportService deleteNativeDashboard Sample", - "origin": "API_DEFINITION", - "description": " Delete a dashboard.", - "canonical": true, - "file": "native_dashboard_service.delete_native_dashboard.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteNativeDashboard", - "fullName": "google.cloud.chronicle.v1.NativeDashboardService.DeleteNativeDashboard", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "NativeDashboardServiceClient", - "fullName": "google.cloud.chronicle.v1.NativeDashboardServiceClient" - }, - "method": { - "shortName": "DeleteNativeDashboard", - "fullName": "google.cloud.chronicle.v1.NativeDashboardService.DeleteNativeDashboard", - "service": { - "shortName": "NativeDashboardService", - "fullName": "google.cloud.chronicle.v1.NativeDashboardService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_NativeDashboardService_AddChart_async", - "title": "BigQueryExportService addChart Sample", - "origin": "API_DEFINITION", - "description": " Add chart in a dashboard.", - "canonical": true, - "file": "native_dashboard_service.add_chart.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddChart", - "fullName": "google.cloud.chronicle.v1.NativeDashboardService.AddChart", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "dashboard_query", - "type": ".google.cloud.chronicle.v1.DashboardQuery" - }, - { - "name": "dashboard_chart", - "type": ".google.cloud.chronicle.v1.DashboardChart" - }, - { - "name": "chart_layout", - "type": ".google.cloud.chronicle.v1.DashboardDefinition.ChartConfig.ChartLayout" - } - ], - "resultType": ".google.cloud.chronicle.v1.AddChartResponse", - "client": { - "shortName": "NativeDashboardServiceClient", - "fullName": "google.cloud.chronicle.v1.NativeDashboardServiceClient" - }, - "method": { - "shortName": "AddChart", - "fullName": "google.cloud.chronicle.v1.NativeDashboardService.AddChart", - "service": { - "shortName": "NativeDashboardService", - "fullName": "google.cloud.chronicle.v1.NativeDashboardService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_NativeDashboardService_RemoveChart_async", - "title": "BigQueryExportService removeChart Sample", - "origin": "API_DEFINITION", - "description": " Remove chart from a dashboard.", - "canonical": true, - "file": "native_dashboard_service.remove_chart.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveChart", - "fullName": "google.cloud.chronicle.v1.NativeDashboardService.RemoveChart", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "dashboard_chart", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.chronicle.v1.NativeDashboard", - "client": { - "shortName": "NativeDashboardServiceClient", - "fullName": "google.cloud.chronicle.v1.NativeDashboardServiceClient" - }, - "method": { - "shortName": "RemoveChart", - "fullName": "google.cloud.chronicle.v1.NativeDashboardService.RemoveChart", - "service": { - "shortName": "NativeDashboardService", - "fullName": "google.cloud.chronicle.v1.NativeDashboardService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_NativeDashboardService_EditChart_async", - "title": "BigQueryExportService editChart Sample", - "origin": "API_DEFINITION", - "description": " Edit chart in a dashboard.", - "canonical": true, - "file": "native_dashboard_service.edit_chart.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "EditChart", - "fullName": "google.cloud.chronicle.v1.NativeDashboardService.EditChart", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "dashboard_query", - "type": ".google.cloud.chronicle.v1.DashboardQuery" - }, - { - "name": "dashboard_chart", - "type": ".google.cloud.chronicle.v1.DashboardChart" - }, - { - "name": "edit_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "language_features", - "type": "TYPE_ENUM[]" - } - ], - "resultType": ".google.cloud.chronicle.v1.EditChartResponse", - "client": { - "shortName": "NativeDashboardServiceClient", - "fullName": "google.cloud.chronicle.v1.NativeDashboardServiceClient" - }, - "method": { - "shortName": "EditChart", - "fullName": "google.cloud.chronicle.v1.NativeDashboardService.EditChart", - "service": { - "shortName": "NativeDashboardService", - "fullName": "google.cloud.chronicle.v1.NativeDashboardService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_NativeDashboardService_DuplicateChart_async", - "title": "BigQueryExportService duplicateChart Sample", - "origin": "API_DEFINITION", - "description": " Duplicate chart in a dashboard.", - "canonical": true, - "file": "native_dashboard_service.duplicate_chart.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DuplicateChart", - "fullName": "google.cloud.chronicle.v1.NativeDashboardService.DuplicateChart", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "dashboard_chart", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.chronicle.v1.DuplicateChartResponse", - "client": { - "shortName": "NativeDashboardServiceClient", - "fullName": "google.cloud.chronicle.v1.NativeDashboardServiceClient" - }, - "method": { - "shortName": "DuplicateChart", - "fullName": "google.cloud.chronicle.v1.NativeDashboardService.DuplicateChart", - "service": { - "shortName": "NativeDashboardService", - "fullName": "google.cloud.chronicle.v1.NativeDashboardService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_NativeDashboardService_ExportNativeDashboards_async", - "title": "BigQueryExportService exportNativeDashboards Sample", - "origin": "API_DEFINITION", - "description": " Exports the dashboards.", - "canonical": true, - "file": "native_dashboard_service.export_native_dashboards.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportNativeDashboards", - "fullName": "google.cloud.chronicle.v1.NativeDashboardService.ExportNativeDashboards", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "names", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.cloud.chronicle.v1.ExportNativeDashboardsResponse", - "client": { - "shortName": "NativeDashboardServiceClient", - "fullName": "google.cloud.chronicle.v1.NativeDashboardServiceClient" - }, - "method": { - "shortName": "ExportNativeDashboards", - "fullName": "google.cloud.chronicle.v1.NativeDashboardService.ExportNativeDashboards", - "service": { - "shortName": "NativeDashboardService", - "fullName": "google.cloud.chronicle.v1.NativeDashboardService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_NativeDashboardService_ImportNativeDashboards_async", - "title": "BigQueryExportService importNativeDashboards Sample", - "origin": "API_DEFINITION", - "description": " Imports the dashboards.", - "canonical": true, - "file": "native_dashboard_service.import_native_dashboards.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportNativeDashboards", - "fullName": "google.cloud.chronicle.v1.NativeDashboardService.ImportNativeDashboards", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "source", - "type": ".google.cloud.chronicle.v1.ImportNativeDashboardsInlineSource" - } - ], - "resultType": ".google.cloud.chronicle.v1.ImportNativeDashboardsResponse", - "client": { - "shortName": "NativeDashboardServiceClient", - "fullName": "google.cloud.chronicle.v1.NativeDashboardServiceClient" - }, - "method": { - "shortName": "ImportNativeDashboards", - "fullName": "google.cloud.chronicle.v1.NativeDashboardService.ImportNativeDashboards", - "service": { - "shortName": "NativeDashboardService", - "fullName": "google.cloud.chronicle.v1.NativeDashboardService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_ReferenceListService_GetReferenceList_async", - "title": "BigQueryExportService getReferenceList Sample", - "origin": "API_DEFINITION", - "description": " Gets a single reference list.", - "canonical": true, - "file": "reference_list_service.get_reference_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetReferenceList", - "fullName": "google.cloud.chronicle.v1.ReferenceListService.GetReferenceList", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.chronicle.v1.ReferenceListView" - } - ], - "resultType": ".google.cloud.chronicle.v1.ReferenceList", - "client": { - "shortName": "ReferenceListServiceClient", - "fullName": "google.cloud.chronicle.v1.ReferenceListServiceClient" - }, - "method": { - "shortName": "GetReferenceList", - "fullName": "google.cloud.chronicle.v1.ReferenceListService.GetReferenceList", - "service": { - "shortName": "ReferenceListService", - "fullName": "google.cloud.chronicle.v1.ReferenceListService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_ReferenceListService_ListReferenceLists_async", - "title": "BigQueryExportService listReferenceLists Sample", - "origin": "API_DEFINITION", - "description": " Lists a collection of reference lists.", - "canonical": true, - "file": "reference_list_service.list_reference_lists.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListReferenceLists", - "fullName": "google.cloud.chronicle.v1.ReferenceListService.ListReferenceLists", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.chronicle.v1.ReferenceListView" - } - ], - "resultType": ".google.cloud.chronicle.v1.ListReferenceListsResponse", - "client": { - "shortName": "ReferenceListServiceClient", - "fullName": "google.cloud.chronicle.v1.ReferenceListServiceClient" - }, - "method": { - "shortName": "ListReferenceLists", - "fullName": "google.cloud.chronicle.v1.ReferenceListService.ListReferenceLists", - "service": { - "shortName": "ReferenceListService", - "fullName": "google.cloud.chronicle.v1.ReferenceListService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_ReferenceListService_CreateReferenceList_async", - "title": "BigQueryExportService createReferenceList Sample", - "origin": "API_DEFINITION", - "description": " Creates a new reference list.", - "canonical": true, - "file": "reference_list_service.create_reference_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateReferenceList", - "fullName": "google.cloud.chronicle.v1.ReferenceListService.CreateReferenceList", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "reference_list", - "type": ".google.cloud.chronicle.v1.ReferenceList" - }, - { - "name": "reference_list_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.chronicle.v1.ReferenceList", - "client": { - "shortName": "ReferenceListServiceClient", - "fullName": "google.cloud.chronicle.v1.ReferenceListServiceClient" - }, - "method": { - "shortName": "CreateReferenceList", - "fullName": "google.cloud.chronicle.v1.ReferenceListService.CreateReferenceList", - "service": { - "shortName": "ReferenceListService", - "fullName": "google.cloud.chronicle.v1.ReferenceListService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_ReferenceListService_UpdateReferenceList_async", - "title": "BigQueryExportService updateReferenceList Sample", - "origin": "API_DEFINITION", - "description": " Updates an existing reference list.", - "canonical": true, - "file": "reference_list_service.update_reference_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateReferenceList", - "fullName": "google.cloud.chronicle.v1.ReferenceListService.UpdateReferenceList", - "async": true, - "parameters": [ - { - "name": "reference_list", - "type": ".google.cloud.chronicle.v1.ReferenceList" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.chronicle.v1.ReferenceList", - "client": { - "shortName": "ReferenceListServiceClient", - "fullName": "google.cloud.chronicle.v1.ReferenceListServiceClient" - }, - "method": { - "shortName": "UpdateReferenceList", - "fullName": "google.cloud.chronicle.v1.ReferenceListService.UpdateReferenceList", - "service": { - "shortName": "ReferenceListService", - "fullName": "google.cloud.chronicle.v1.ReferenceListService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_RuleService_CreateRule_async", - "title": "BigQueryExportService createRule Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Rule.", - "canonical": true, - "file": "rule_service.create_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateRule", - "fullName": "google.cloud.chronicle.v1.RuleService.CreateRule", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "rule", - "type": ".google.cloud.chronicle.v1.Rule" - } - ], - "resultType": ".google.cloud.chronicle.v1.Rule", - "client": { - "shortName": "RuleServiceClient", - "fullName": "google.cloud.chronicle.v1.RuleServiceClient" - }, - "method": { - "shortName": "CreateRule", - "fullName": "google.cloud.chronicle.v1.RuleService.CreateRule", - "service": { - "shortName": "RuleService", - "fullName": "google.cloud.chronicle.v1.RuleService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_RuleService_GetRule_async", - "title": "BigQueryExportService getRule Sample", - "origin": "API_DEFINITION", - "description": " Gets a Rule.", - "canonical": true, - "file": "rule_service.get_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRule", - "fullName": "google.cloud.chronicle.v1.RuleService.GetRule", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.chronicle.v1.RuleView" - } - ], - "resultType": ".google.cloud.chronicle.v1.Rule", - "client": { - "shortName": "RuleServiceClient", - "fullName": "google.cloud.chronicle.v1.RuleServiceClient" - }, - "method": { - "shortName": "GetRule", - "fullName": "google.cloud.chronicle.v1.RuleService.GetRule", - "service": { - "shortName": "RuleService", - "fullName": "google.cloud.chronicle.v1.RuleService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_RuleService_ListRules_async", - "title": "BigQueryExportService listRules Sample", - "origin": "API_DEFINITION", - "description": " Lists Rules.", - "canonical": true, - "file": "rule_service.list_rules.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRules", - "fullName": "google.cloud.chronicle.v1.RuleService.ListRules", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.chronicle.v1.RuleView" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.chronicle.v1.ListRulesResponse", - "client": { - "shortName": "RuleServiceClient", - "fullName": "google.cloud.chronicle.v1.RuleServiceClient" - }, - "method": { - "shortName": "ListRules", - "fullName": "google.cloud.chronicle.v1.RuleService.ListRules", - "service": { - "shortName": "RuleService", - "fullName": "google.cloud.chronicle.v1.RuleService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_RuleService_UpdateRule_async", - "title": "BigQueryExportService updateRule Sample", - "origin": "API_DEFINITION", - "description": " Updates a Rule.", - "canonical": true, - "file": "rule_service.update_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateRule", - "fullName": "google.cloud.chronicle.v1.RuleService.UpdateRule", - "async": true, - "parameters": [ - { - "name": "rule", - "type": ".google.cloud.chronicle.v1.Rule" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.chronicle.v1.Rule", - "client": { - "shortName": "RuleServiceClient", - "fullName": "google.cloud.chronicle.v1.RuleServiceClient" - }, - "method": { - "shortName": "UpdateRule", - "fullName": "google.cloud.chronicle.v1.RuleService.UpdateRule", - "service": { - "shortName": "RuleService", - "fullName": "google.cloud.chronicle.v1.RuleService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_RuleService_DeleteRule_async", - "title": "BigQueryExportService deleteRule Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Rule.", - "canonical": true, - "file": "rule_service.delete_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteRule", - "fullName": "google.cloud.chronicle.v1.RuleService.DeleteRule", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "RuleServiceClient", - "fullName": "google.cloud.chronicle.v1.RuleServiceClient" - }, - "method": { - "shortName": "DeleteRule", - "fullName": "google.cloud.chronicle.v1.RuleService.DeleteRule", - "service": { - "shortName": "RuleService", - "fullName": "google.cloud.chronicle.v1.RuleService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_RuleService_ListRuleRevisions_async", - "title": "BigQueryExportService listRuleRevisions Sample", - "origin": "API_DEFINITION", - "description": " Lists all revisions of the rule.", - "canonical": true, - "file": "rule_service.list_rule_revisions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRuleRevisions", - "fullName": "google.cloud.chronicle.v1.RuleService.ListRuleRevisions", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.chronicle.v1.RuleView" - } - ], - "resultType": ".google.cloud.chronicle.v1.ListRuleRevisionsResponse", - "client": { - "shortName": "RuleServiceClient", - "fullName": "google.cloud.chronicle.v1.RuleServiceClient" - }, - "method": { - "shortName": "ListRuleRevisions", - "fullName": "google.cloud.chronicle.v1.RuleService.ListRuleRevisions", - "service": { - "shortName": "RuleService", - "fullName": "google.cloud.chronicle.v1.RuleService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_RuleService_CreateRetrohunt_async", - "title": "BigQueryExportService createRetrohunt Sample", - "origin": "API_DEFINITION", - "description": " Create a Retrohunt.", - "canonical": true, - "file": "rule_service.create_retrohunt.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateRetrohunt", - "fullName": "google.cloud.chronicle.v1.RuleService.CreateRetrohunt", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "retrohunt", - "type": ".google.cloud.chronicle.v1.Retrohunt" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "RuleServiceClient", - "fullName": "google.cloud.chronicle.v1.RuleServiceClient" - }, - "method": { - "shortName": "CreateRetrohunt", - "fullName": "google.cloud.chronicle.v1.RuleService.CreateRetrohunt", - "service": { - "shortName": "RuleService", - "fullName": "google.cloud.chronicle.v1.RuleService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_RuleService_GetRetrohunt_async", - "title": "BigQueryExportService getRetrohunt Sample", - "origin": "API_DEFINITION", - "description": " Get a Retrohunt.", - "canonical": true, - "file": "rule_service.get_retrohunt.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRetrohunt", - "fullName": "google.cloud.chronicle.v1.RuleService.GetRetrohunt", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.chronicle.v1.Retrohunt", - "client": { - "shortName": "RuleServiceClient", - "fullName": "google.cloud.chronicle.v1.RuleServiceClient" - }, - "method": { - "shortName": "GetRetrohunt", - "fullName": "google.cloud.chronicle.v1.RuleService.GetRetrohunt", - "service": { - "shortName": "RuleService", - "fullName": "google.cloud.chronicle.v1.RuleService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_RuleService_ListRetrohunts_async", - "title": "BigQueryExportService listRetrohunts Sample", - "origin": "API_DEFINITION", - "description": " List Retrohunts.", - "canonical": true, - "file": "rule_service.list_retrohunts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRetrohunts", - "fullName": "google.cloud.chronicle.v1.RuleService.ListRetrohunts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.chronicle.v1.ListRetrohuntsResponse", - "client": { - "shortName": "RuleServiceClient", - "fullName": "google.cloud.chronicle.v1.RuleServiceClient" - }, - "method": { - "shortName": "ListRetrohunts", - "fullName": "google.cloud.chronicle.v1.RuleService.ListRetrohunts", - "service": { - "shortName": "RuleService", - "fullName": "google.cloud.chronicle.v1.RuleService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_RuleService_GetRuleDeployment_async", - "title": "BigQueryExportService getRuleDeployment Sample", - "origin": "API_DEFINITION", - "description": " Gets a RuleDeployment.", - "canonical": true, - "file": "rule_service.get_rule_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRuleDeployment", - "fullName": "google.cloud.chronicle.v1.RuleService.GetRuleDeployment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.chronicle.v1.RuleDeployment", - "client": { - "shortName": "RuleServiceClient", - "fullName": "google.cloud.chronicle.v1.RuleServiceClient" - }, - "method": { - "shortName": "GetRuleDeployment", - "fullName": "google.cloud.chronicle.v1.RuleService.GetRuleDeployment", - "service": { - "shortName": "RuleService", - "fullName": "google.cloud.chronicle.v1.RuleService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_RuleService_ListRuleDeployments_async", - "title": "BigQueryExportService listRuleDeployments Sample", - "origin": "API_DEFINITION", - "description": " Lists RuleDeployments across all Rules.", - "canonical": true, - "file": "rule_service.list_rule_deployments.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRuleDeployments", - "fullName": "google.cloud.chronicle.v1.RuleService.ListRuleDeployments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.chronicle.v1.ListRuleDeploymentsResponse", - "client": { - "shortName": "RuleServiceClient", - "fullName": "google.cloud.chronicle.v1.RuleServiceClient" - }, - "method": { - "shortName": "ListRuleDeployments", - "fullName": "google.cloud.chronicle.v1.RuleService.ListRuleDeployments", - "service": { - "shortName": "RuleService", - "fullName": "google.cloud.chronicle.v1.RuleService" - } - } - } - }, - { - "regionTag": "chronicle_v1_generated_RuleService_UpdateRuleDeployment_async", - "title": "BigQueryExportService updateRuleDeployment Sample", - "origin": "API_DEFINITION", - "description": " Updates a RuleDeployment. Failures are not necessarily atomic. If there is a request to update multiple fields, and any update to a single field fails, an error will be returned, but other fields may remain successfully updated.", - "canonical": true, - "file": "rule_service.update_rule_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateRuleDeployment", - "fullName": "google.cloud.chronicle.v1.RuleService.UpdateRuleDeployment", - "async": true, - "parameters": [ - { - "name": "rule_deployment", - "type": ".google.cloud.chronicle.v1.RuleDeployment" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.chronicle.v1.RuleDeployment", - "client": { - "shortName": "RuleServiceClient", - "fullName": "google.cloud.chronicle.v1.RuleServiceClient" - }, - "method": { - "shortName": "UpdateRuleDeployment", - "fullName": "google.cloud.chronicle.v1.RuleService.UpdateRuleDeployment", - "service": { - "shortName": "RuleService", - "fullName": "google.cloud.chronicle.v1.RuleService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-cloudcontrolspartner/samples/generated/v1/snippet_metadata_google.cloud.cloudcontrolspartner.v1.json b/packages/google-cloud-cloudcontrolspartner/samples/generated/v1/snippet_metadata_google.cloud.cloudcontrolspartner.v1.json deleted file mode 100644 index 3815e7f77572..000000000000 --- a/packages/google-cloud-cloudcontrolspartner/samples/generated/v1/snippet_metadata_google.cloud.cloudcontrolspartner.v1.json +++ /dev/null @@ -1,615 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-cloudcontrolspartner", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.cloudcontrolspartner.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "cloudcontrolspartner_v1_generated_CloudControlsPartnerCore_GetWorkload_async", - "title": "CloudControlsPartnerCore getWorkload Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single workload", - "canonical": true, - "file": "cloud_controls_partner_core.get_workload.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetWorkload", - "fullName": "google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerCore.GetWorkload", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.cloudcontrolspartner.v1.Workload", - "client": { - "shortName": "CloudControlsPartnerCoreClient", - "fullName": "google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerCoreClient" - }, - "method": { - "shortName": "GetWorkload", - "fullName": "google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerCore.GetWorkload", - "service": { - "shortName": "CloudControlsPartnerCore", - "fullName": "google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerCore" - } - } - } - }, - { - "regionTag": "cloudcontrolspartner_v1_generated_CloudControlsPartnerCore_ListWorkloads_async", - "title": "CloudControlsPartnerCore listWorkloads Sample", - "origin": "API_DEFINITION", - "description": " Lists customer workloads for a given customer org id", - "canonical": true, - "file": "cloud_controls_partner_core.list_workloads.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListWorkloads", - "fullName": "google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerCore.ListWorkloads", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.cloudcontrolspartner.v1.ListWorkloadsResponse", - "client": { - "shortName": "CloudControlsPartnerCoreClient", - "fullName": "google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerCoreClient" - }, - "method": { - "shortName": "ListWorkloads", - "fullName": "google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerCore.ListWorkloads", - "service": { - "shortName": "CloudControlsPartnerCore", - "fullName": "google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerCore" - } - } - } - }, - { - "regionTag": "cloudcontrolspartner_v1_generated_CloudControlsPartnerCore_GetCustomer_async", - "title": "CloudControlsPartnerCore getCustomer Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single customer", - "canonical": true, - "file": "cloud_controls_partner_core.get_customer.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCustomer", - "fullName": "google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerCore.GetCustomer", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.cloudcontrolspartner.v1.Customer", - "client": { - "shortName": "CloudControlsPartnerCoreClient", - "fullName": "google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerCoreClient" - }, - "method": { - "shortName": "GetCustomer", - "fullName": "google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerCore.GetCustomer", - "service": { - "shortName": "CloudControlsPartnerCore", - "fullName": "google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerCore" - } - } - } - }, - { - "regionTag": "cloudcontrolspartner_v1_generated_CloudControlsPartnerCore_ListCustomers_async", - "title": "CloudControlsPartnerCore listCustomers Sample", - "origin": "API_DEFINITION", - "description": " Lists customers of a partner identified by its Google Cloud organization ID", - "canonical": true, - "file": "cloud_controls_partner_core.list_customers.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCustomers", - "fullName": "google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerCore.ListCustomers", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.cloudcontrolspartner.v1.ListCustomersResponse", - "client": { - "shortName": "CloudControlsPartnerCoreClient", - "fullName": "google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerCoreClient" - }, - "method": { - "shortName": "ListCustomers", - "fullName": "google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerCore.ListCustomers", - "service": { - "shortName": "CloudControlsPartnerCore", - "fullName": "google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerCore" - } - } - } - }, - { - "regionTag": "cloudcontrolspartner_v1_generated_CloudControlsPartnerCore_GetEkmConnections_async", - "title": "CloudControlsPartnerCore getEkmConnections Sample", - "origin": "API_DEFINITION", - "description": " Gets the EKM connections associated with a workload", - "canonical": true, - "file": "cloud_controls_partner_core.get_ekm_connections.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEkmConnections", - "fullName": "google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerCore.GetEkmConnections", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.cloudcontrolspartner.v1.EkmConnections", - "client": { - "shortName": "CloudControlsPartnerCoreClient", - "fullName": "google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerCoreClient" - }, - "method": { - "shortName": "GetEkmConnections", - "fullName": "google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerCore.GetEkmConnections", - "service": { - "shortName": "CloudControlsPartnerCore", - "fullName": "google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerCore" - } - } - } - }, - { - "regionTag": "cloudcontrolspartner_v1_generated_CloudControlsPartnerCore_GetPartnerPermissions_async", - "title": "CloudControlsPartnerCore getPartnerPermissions Sample", - "origin": "API_DEFINITION", - "description": " Gets the partner permissions granted for a workload", - "canonical": true, - "file": "cloud_controls_partner_core.get_partner_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPartnerPermissions", - "fullName": "google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerCore.GetPartnerPermissions", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.cloudcontrolspartner.v1.PartnerPermissions", - "client": { - "shortName": "CloudControlsPartnerCoreClient", - "fullName": "google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerCoreClient" - }, - "method": { - "shortName": "GetPartnerPermissions", - "fullName": "google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerCore.GetPartnerPermissions", - "service": { - "shortName": "CloudControlsPartnerCore", - "fullName": "google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerCore" - } - } - } - }, - { - "regionTag": "cloudcontrolspartner_v1_generated_CloudControlsPartnerCore_ListAccessApprovalRequests_async", - "title": "CloudControlsPartnerCore listAccessApprovalRequests Sample", - "origin": "API_DEFINITION", - "description": " Deprecated: Only returns access approval requests directly associated with an assured workload folder.", - "canonical": true, - "file": "cloud_controls_partner_core.list_access_approval_requests.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAccessApprovalRequests", - "fullName": "google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerCore.ListAccessApprovalRequests", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.cloudcontrolspartner.v1.ListAccessApprovalRequestsResponse", - "client": { - "shortName": "CloudControlsPartnerCoreClient", - "fullName": "google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerCoreClient" - }, - "method": { - "shortName": "ListAccessApprovalRequests", - "fullName": "google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerCore.ListAccessApprovalRequests", - "service": { - "shortName": "CloudControlsPartnerCore", - "fullName": "google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerCore" - } - } - } - }, - { - "regionTag": "cloudcontrolspartner_v1_generated_CloudControlsPartnerCore_GetPartner_async", - "title": "CloudControlsPartnerCore getPartner Sample", - "origin": "API_DEFINITION", - "description": " Get details of a Partner.", - "canonical": true, - "file": "cloud_controls_partner_core.get_partner.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPartner", - "fullName": "google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerCore.GetPartner", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.cloudcontrolspartner.v1.Partner", - "client": { - "shortName": "CloudControlsPartnerCoreClient", - "fullName": "google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerCoreClient" - }, - "method": { - "shortName": "GetPartner", - "fullName": "google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerCore.GetPartner", - "service": { - "shortName": "CloudControlsPartnerCore", - "fullName": "google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerCore" - } - } - } - }, - { - "regionTag": "cloudcontrolspartner_v1_generated_CloudControlsPartnerCore_CreateCustomer_async", - "title": "CloudControlsPartnerCore createCustomer Sample", - "origin": "API_DEFINITION", - "description": " Creates a new customer.", - "canonical": true, - "file": "cloud_controls_partner_core.create_customer.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCustomer", - "fullName": "google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerCore.CreateCustomer", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "customer", - "type": ".google.cloud.cloudcontrolspartner.v1.Customer" - }, - { - "name": "customer_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.cloudcontrolspartner.v1.Customer", - "client": { - "shortName": "CloudControlsPartnerCoreClient", - "fullName": "google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerCoreClient" - }, - "method": { - "shortName": "CreateCustomer", - "fullName": "google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerCore.CreateCustomer", - "service": { - "shortName": "CloudControlsPartnerCore", - "fullName": "google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerCore" - } - } - } - }, - { - "regionTag": "cloudcontrolspartner_v1_generated_CloudControlsPartnerCore_UpdateCustomer_async", - "title": "CloudControlsPartnerCore updateCustomer Sample", - "origin": "API_DEFINITION", - "description": " Update details of a single customer", - "canonical": true, - "file": "cloud_controls_partner_core.update_customer.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCustomer", - "fullName": "google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerCore.UpdateCustomer", - "async": true, - "parameters": [ - { - "name": "customer", - "type": ".google.cloud.cloudcontrolspartner.v1.Customer" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.cloudcontrolspartner.v1.Customer", - "client": { - "shortName": "CloudControlsPartnerCoreClient", - "fullName": "google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerCoreClient" - }, - "method": { - "shortName": "UpdateCustomer", - "fullName": "google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerCore.UpdateCustomer", - "service": { - "shortName": "CloudControlsPartnerCore", - "fullName": "google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerCore" - } - } - } - }, - { - "regionTag": "cloudcontrolspartner_v1_generated_CloudControlsPartnerCore_DeleteCustomer_async", - "title": "CloudControlsPartnerCore deleteCustomer Sample", - "origin": "API_DEFINITION", - "description": " Delete details of a single customer", - "canonical": true, - "file": "cloud_controls_partner_core.delete_customer.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCustomer", - "fullName": "google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerCore.DeleteCustomer", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "CloudControlsPartnerCoreClient", - "fullName": "google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerCoreClient" - }, - "method": { - "shortName": "DeleteCustomer", - "fullName": "google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerCore.DeleteCustomer", - "service": { - "shortName": "CloudControlsPartnerCore", - "fullName": "google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerCore" - } - } - } - }, - { - "regionTag": "cloudcontrolspartner_v1_generated_CloudControlsPartnerMonitoring_ListViolations_async", - "title": "CloudControlsPartnerCore listViolations Sample", - "origin": "API_DEFINITION", - "description": " Lists Violations for a workload Callers may also choose to read across multiple Customers or for a single customer as per [AIP-159](https://google.aip.dev/159) by using '-' (the hyphen or dash character) as a wildcard character instead of {customer} & {workload}. Format: `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`", - "canonical": true, - "file": "cloud_controls_partner_monitoring.list_violations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListViolations", - "fullName": "google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerMonitoring.ListViolations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "interval", - "type": ".google.type.Interval" - } - ], - "resultType": ".google.cloud.cloudcontrolspartner.v1.ListViolationsResponse", - "client": { - "shortName": "CloudControlsPartnerMonitoringClient", - "fullName": "google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerMonitoringClient" - }, - "method": { - "shortName": "ListViolations", - "fullName": "google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerMonitoring.ListViolations", - "service": { - "shortName": "CloudControlsPartnerMonitoring", - "fullName": "google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerMonitoring" - } - } - } - }, - { - "regionTag": "cloudcontrolspartner_v1_generated_CloudControlsPartnerMonitoring_GetViolation_async", - "title": "CloudControlsPartnerCore getViolation Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Violation.", - "canonical": true, - "file": "cloud_controls_partner_monitoring.get_violation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetViolation", - "fullName": "google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerMonitoring.GetViolation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.cloudcontrolspartner.v1.Violation", - "client": { - "shortName": "CloudControlsPartnerMonitoringClient", - "fullName": "google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerMonitoringClient" - }, - "method": { - "shortName": "GetViolation", - "fullName": "google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerMonitoring.GetViolation", - "service": { - "shortName": "CloudControlsPartnerMonitoring", - "fullName": "google.cloud.cloudcontrolspartner.v1.CloudControlsPartnerMonitoring" - } - } - } - } - ] -} diff --git a/packages/google-cloud-cloudcontrolspartner/samples/generated/v1beta/snippet_metadata_google.cloud.cloudcontrolspartner.v1beta.json b/packages/google-cloud-cloudcontrolspartner/samples/generated/v1beta/snippet_metadata_google.cloud.cloudcontrolspartner.v1beta.json deleted file mode 100644 index 05c901faa576..000000000000 --- a/packages/google-cloud-cloudcontrolspartner/samples/generated/v1beta/snippet_metadata_google.cloud.cloudcontrolspartner.v1beta.json +++ /dev/null @@ -1,615 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-cloudcontrolspartner", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.cloudcontrolspartner.v1beta", - "version": "v1beta" - } - ] - }, - "snippets": [ - { - "regionTag": "cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_GetWorkload_async", - "title": "CloudControlsPartnerCore getWorkload Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single workload", - "canonical": true, - "file": "cloud_controls_partner_core.get_workload.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetWorkload", - "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore.GetWorkload", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.cloudcontrolspartner.v1beta.Workload", - "client": { - "shortName": "CloudControlsPartnerCoreClient", - "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCoreClient" - }, - "method": { - "shortName": "GetWorkload", - "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore.GetWorkload", - "service": { - "shortName": "CloudControlsPartnerCore", - "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore" - } - } - } - }, - { - "regionTag": "cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_ListWorkloads_async", - "title": "CloudControlsPartnerCore listWorkloads Sample", - "origin": "API_DEFINITION", - "description": " Lists customer workloads for a given customer org id", - "canonical": true, - "file": "cloud_controls_partner_core.list_workloads.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListWorkloads", - "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore.ListWorkloads", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.cloudcontrolspartner.v1beta.ListWorkloadsResponse", - "client": { - "shortName": "CloudControlsPartnerCoreClient", - "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCoreClient" - }, - "method": { - "shortName": "ListWorkloads", - "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore.ListWorkloads", - "service": { - "shortName": "CloudControlsPartnerCore", - "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore" - } - } - } - }, - { - "regionTag": "cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_GetCustomer_async", - "title": "CloudControlsPartnerCore getCustomer Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single customer", - "canonical": true, - "file": "cloud_controls_partner_core.get_customer.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCustomer", - "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore.GetCustomer", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.cloudcontrolspartner.v1beta.Customer", - "client": { - "shortName": "CloudControlsPartnerCoreClient", - "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCoreClient" - }, - "method": { - "shortName": "GetCustomer", - "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore.GetCustomer", - "service": { - "shortName": "CloudControlsPartnerCore", - "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore" - } - } - } - }, - { - "regionTag": "cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_ListCustomers_async", - "title": "CloudControlsPartnerCore listCustomers Sample", - "origin": "API_DEFINITION", - "description": " Lists customers of a partner identified by its Google Cloud organization ID", - "canonical": true, - "file": "cloud_controls_partner_core.list_customers.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCustomers", - "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore.ListCustomers", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.cloudcontrolspartner.v1beta.ListCustomersResponse", - "client": { - "shortName": "CloudControlsPartnerCoreClient", - "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCoreClient" - }, - "method": { - "shortName": "ListCustomers", - "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore.ListCustomers", - "service": { - "shortName": "CloudControlsPartnerCore", - "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore" - } - } - } - }, - { - "regionTag": "cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_GetEkmConnections_async", - "title": "CloudControlsPartnerCore getEkmConnections Sample", - "origin": "API_DEFINITION", - "description": " Gets the EKM connections associated with a workload", - "canonical": true, - "file": "cloud_controls_partner_core.get_ekm_connections.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEkmConnections", - "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore.GetEkmConnections", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.cloudcontrolspartner.v1beta.EkmConnections", - "client": { - "shortName": "CloudControlsPartnerCoreClient", - "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCoreClient" - }, - "method": { - "shortName": "GetEkmConnections", - "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore.GetEkmConnections", - "service": { - "shortName": "CloudControlsPartnerCore", - "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore" - } - } - } - }, - { - "regionTag": "cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_GetPartnerPermissions_async", - "title": "CloudControlsPartnerCore getPartnerPermissions Sample", - "origin": "API_DEFINITION", - "description": " Gets the partner permissions granted for a workload", - "canonical": true, - "file": "cloud_controls_partner_core.get_partner_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPartnerPermissions", - "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore.GetPartnerPermissions", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.cloudcontrolspartner.v1beta.PartnerPermissions", - "client": { - "shortName": "CloudControlsPartnerCoreClient", - "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCoreClient" - }, - "method": { - "shortName": "GetPartnerPermissions", - "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore.GetPartnerPermissions", - "service": { - "shortName": "CloudControlsPartnerCore", - "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore" - } - } - } - }, - { - "regionTag": "cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_ListAccessApprovalRequests_async", - "title": "CloudControlsPartnerCore listAccessApprovalRequests Sample", - "origin": "API_DEFINITION", - "description": " Deprecated: Only returns access approval requests directly associated with an assured workload folder.", - "canonical": true, - "file": "cloud_controls_partner_core.list_access_approval_requests.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAccessApprovalRequests", - "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore.ListAccessApprovalRequests", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.cloudcontrolspartner.v1beta.ListAccessApprovalRequestsResponse", - "client": { - "shortName": "CloudControlsPartnerCoreClient", - "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCoreClient" - }, - "method": { - "shortName": "ListAccessApprovalRequests", - "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore.ListAccessApprovalRequests", - "service": { - "shortName": "CloudControlsPartnerCore", - "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore" - } - } - } - }, - { - "regionTag": "cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_GetPartner_async", - "title": "CloudControlsPartnerCore getPartner Sample", - "origin": "API_DEFINITION", - "description": " Get details of a Partner.", - "canonical": true, - "file": "cloud_controls_partner_core.get_partner.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPartner", - "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore.GetPartner", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.cloudcontrolspartner.v1beta.Partner", - "client": { - "shortName": "CloudControlsPartnerCoreClient", - "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCoreClient" - }, - "method": { - "shortName": "GetPartner", - "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore.GetPartner", - "service": { - "shortName": "CloudControlsPartnerCore", - "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore" - } - } - } - }, - { - "regionTag": "cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_CreateCustomer_async", - "title": "CloudControlsPartnerCore createCustomer Sample", - "origin": "API_DEFINITION", - "description": " Creates a new customer.", - "canonical": true, - "file": "cloud_controls_partner_core.create_customer.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCustomer", - "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore.CreateCustomer", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "customer", - "type": ".google.cloud.cloudcontrolspartner.v1beta.Customer" - }, - { - "name": "customer_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.cloudcontrolspartner.v1beta.Customer", - "client": { - "shortName": "CloudControlsPartnerCoreClient", - "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCoreClient" - }, - "method": { - "shortName": "CreateCustomer", - "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore.CreateCustomer", - "service": { - "shortName": "CloudControlsPartnerCore", - "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore" - } - } - } - }, - { - "regionTag": "cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_UpdateCustomer_async", - "title": "CloudControlsPartnerCore updateCustomer Sample", - "origin": "API_DEFINITION", - "description": " Update details of a single customer", - "canonical": true, - "file": "cloud_controls_partner_core.update_customer.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCustomer", - "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore.UpdateCustomer", - "async": true, - "parameters": [ - { - "name": "customer", - "type": ".google.cloud.cloudcontrolspartner.v1beta.Customer" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.cloudcontrolspartner.v1beta.Customer", - "client": { - "shortName": "CloudControlsPartnerCoreClient", - "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCoreClient" - }, - "method": { - "shortName": "UpdateCustomer", - "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore.UpdateCustomer", - "service": { - "shortName": "CloudControlsPartnerCore", - "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore" - } - } - } - }, - { - "regionTag": "cloudcontrolspartner_v1beta_generated_CloudControlsPartnerCore_DeleteCustomer_async", - "title": "CloudControlsPartnerCore deleteCustomer Sample", - "origin": "API_DEFINITION", - "description": " Delete details of a single customer", - "canonical": true, - "file": "cloud_controls_partner_core.delete_customer.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCustomer", - "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore.DeleteCustomer", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "CloudControlsPartnerCoreClient", - "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCoreClient" - }, - "method": { - "shortName": "DeleteCustomer", - "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore.DeleteCustomer", - "service": { - "shortName": "CloudControlsPartnerCore", - "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerCore" - } - } - } - }, - { - "regionTag": "cloudcontrolspartner_v1beta_generated_CloudControlsPartnerMonitoring_ListViolations_async", - "title": "CloudControlsPartnerCore listViolations Sample", - "origin": "API_DEFINITION", - "description": " Lists Violations for a workload Callers may also choose to read across multiple Customers or for a single customer as per [AIP-159](https://google.aip.dev/159) by using '-' (the hyphen or dash character) as a wildcard character instead of {customer} & {workload}. Format: `organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}`", - "canonical": true, - "file": "cloud_controls_partner_monitoring.list_violations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListViolations", - "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerMonitoring.ListViolations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "interval", - "type": ".google.type.Interval" - } - ], - "resultType": ".google.cloud.cloudcontrolspartner.v1beta.ListViolationsResponse", - "client": { - "shortName": "CloudControlsPartnerMonitoringClient", - "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerMonitoringClient" - }, - "method": { - "shortName": "ListViolations", - "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerMonitoring.ListViolations", - "service": { - "shortName": "CloudControlsPartnerMonitoring", - "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerMonitoring" - } - } - } - }, - { - "regionTag": "cloudcontrolspartner_v1beta_generated_CloudControlsPartnerMonitoring_GetViolation_async", - "title": "CloudControlsPartnerCore getViolation Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Violation.", - "canonical": true, - "file": "cloud_controls_partner_monitoring.get_violation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetViolation", - "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerMonitoring.GetViolation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.cloudcontrolspartner.v1beta.Violation", - "client": { - "shortName": "CloudControlsPartnerMonitoringClient", - "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerMonitoringClient" - }, - "method": { - "shortName": "GetViolation", - "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerMonitoring.GetViolation", - "service": { - "shortName": "CloudControlsPartnerMonitoring", - "fullName": "google.cloud.cloudcontrolspartner.v1beta.CloudControlsPartnerMonitoring" - } - } - } - } - ] -} diff --git a/packages/google-cloud-clouddms/samples/generated/v1/snippet_metadata_google.cloud.clouddms.v1.json b/packages/google-cloud-clouddms/samples/generated/v1/snippet_metadata_google.cloud.clouddms.v1.json deleted file mode 100644 index de4f5debdf80..000000000000 --- a/packages/google-cloud-clouddms/samples/generated/v1/snippet_metadata_google.cloud.clouddms.v1.json +++ /dev/null @@ -1,2015 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-clouddms", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.clouddms.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "datamigration_v1_generated_DataMigrationService_ListMigrationJobs_async", - "title": "DataMigrationService listMigrationJobs Sample", - "origin": "API_DEFINITION", - "description": " Lists migration jobs in a given project and location.", - "canonical": true, - "file": "data_migration_service.list_migration_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMigrationJobs", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.ListMigrationJobs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.clouddms.v1.ListMigrationJobsResponse", - "client": { - "shortName": "DataMigrationServiceClient", - "fullName": "google.cloud.clouddms.v1.DataMigrationServiceClient" - }, - "method": { - "shortName": "ListMigrationJobs", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.ListMigrationJobs", - "service": { - "shortName": "DataMigrationService", - "fullName": "google.cloud.clouddms.v1.DataMigrationService" - } - } - } - }, - { - "regionTag": "datamigration_v1_generated_DataMigrationService_GetMigrationJob_async", - "title": "DataMigrationService getMigrationJob Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single migration job.", - "canonical": true, - "file": "data_migration_service.get_migration_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMigrationJob", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.GetMigrationJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.clouddms.v1.MigrationJob", - "client": { - "shortName": "DataMigrationServiceClient", - "fullName": "google.cloud.clouddms.v1.DataMigrationServiceClient" - }, - "method": { - "shortName": "GetMigrationJob", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.GetMigrationJob", - "service": { - "shortName": "DataMigrationService", - "fullName": "google.cloud.clouddms.v1.DataMigrationService" - } - } - } - }, - { - "regionTag": "datamigration_v1_generated_DataMigrationService_CreateMigrationJob_async", - "title": "DataMigrationService createMigrationJob Sample", - "origin": "API_DEFINITION", - "description": " Creates a new migration job in a given project and location.", - "canonical": true, - "file": "data_migration_service.create_migration_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateMigrationJob", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.CreateMigrationJob", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "migration_job_id", - "type": "TYPE_STRING" - }, - { - "name": "migration_job", - "type": ".google.cloud.clouddms.v1.MigrationJob" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataMigrationServiceClient", - "fullName": "google.cloud.clouddms.v1.DataMigrationServiceClient" - }, - "method": { - "shortName": "CreateMigrationJob", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.CreateMigrationJob", - "service": { - "shortName": "DataMigrationService", - "fullName": "google.cloud.clouddms.v1.DataMigrationService" - } - } - } - }, - { - "regionTag": "datamigration_v1_generated_DataMigrationService_UpdateMigrationJob_async", - "title": "DataMigrationService updateMigrationJob Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single migration job.", - "canonical": true, - "file": "data_migration_service.update_migration_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateMigrationJob", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.UpdateMigrationJob", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "migration_job", - "type": ".google.cloud.clouddms.v1.MigrationJob" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataMigrationServiceClient", - "fullName": "google.cloud.clouddms.v1.DataMigrationServiceClient" - }, - "method": { - "shortName": "UpdateMigrationJob", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.UpdateMigrationJob", - "service": { - "shortName": "DataMigrationService", - "fullName": "google.cloud.clouddms.v1.DataMigrationService" - } - } - } - }, - { - "regionTag": "datamigration_v1_generated_DataMigrationService_DeleteMigrationJob_async", - "title": "DataMigrationService deleteMigrationJob Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single migration job.", - "canonical": true, - "file": "data_migration_service.delete_migration_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteMigrationJob", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.DeleteMigrationJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataMigrationServiceClient", - "fullName": "google.cloud.clouddms.v1.DataMigrationServiceClient" - }, - "method": { - "shortName": "DeleteMigrationJob", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.DeleteMigrationJob", - "service": { - "shortName": "DataMigrationService", - "fullName": "google.cloud.clouddms.v1.DataMigrationService" - } - } - } - }, - { - "regionTag": "datamigration_v1_generated_DataMigrationService_StartMigrationJob_async", - "title": "DataMigrationService startMigrationJob Sample", - "origin": "API_DEFINITION", - "description": " Start an already created migration job.", - "canonical": true, - "file": "data_migration_service.start_migration_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StartMigrationJob", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.StartMigrationJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "skip_validation", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataMigrationServiceClient", - "fullName": "google.cloud.clouddms.v1.DataMigrationServiceClient" - }, - "method": { - "shortName": "StartMigrationJob", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.StartMigrationJob", - "service": { - "shortName": "DataMigrationService", - "fullName": "google.cloud.clouddms.v1.DataMigrationService" - } - } - } - }, - { - "regionTag": "datamigration_v1_generated_DataMigrationService_StopMigrationJob_async", - "title": "DataMigrationService stopMigrationJob Sample", - "origin": "API_DEFINITION", - "description": " Stops a running migration job.", - "canonical": true, - "file": "data_migration_service.stop_migration_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StopMigrationJob", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.StopMigrationJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataMigrationServiceClient", - "fullName": "google.cloud.clouddms.v1.DataMigrationServiceClient" - }, - "method": { - "shortName": "StopMigrationJob", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.StopMigrationJob", - "service": { - "shortName": "DataMigrationService", - "fullName": "google.cloud.clouddms.v1.DataMigrationService" - } - } - } - }, - { - "regionTag": "datamigration_v1_generated_DataMigrationService_ResumeMigrationJob_async", - "title": "DataMigrationService resumeMigrationJob Sample", - "origin": "API_DEFINITION", - "description": " Resume a migration job that is currently stopped and is resumable (was stopped during CDC phase).", - "canonical": true, - "file": "data_migration_service.resume_migration_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResumeMigrationJob", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.ResumeMigrationJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataMigrationServiceClient", - "fullName": "google.cloud.clouddms.v1.DataMigrationServiceClient" - }, - "method": { - "shortName": "ResumeMigrationJob", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.ResumeMigrationJob", - "service": { - "shortName": "DataMigrationService", - "fullName": "google.cloud.clouddms.v1.DataMigrationService" - } - } - } - }, - { - "regionTag": "datamigration_v1_generated_DataMigrationService_PromoteMigrationJob_async", - "title": "DataMigrationService promoteMigrationJob Sample", - "origin": "API_DEFINITION", - "description": " Promote a migration job, stopping replication to the destination and promoting the destination to be a standalone database.", - "canonical": true, - "file": "data_migration_service.promote_migration_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PromoteMigrationJob", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.PromoteMigrationJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataMigrationServiceClient", - "fullName": "google.cloud.clouddms.v1.DataMigrationServiceClient" - }, - "method": { - "shortName": "PromoteMigrationJob", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.PromoteMigrationJob", - "service": { - "shortName": "DataMigrationService", - "fullName": "google.cloud.clouddms.v1.DataMigrationService" - } - } - } - }, - { - "regionTag": "datamigration_v1_generated_DataMigrationService_VerifyMigrationJob_async", - "title": "DataMigrationService verifyMigrationJob Sample", - "origin": "API_DEFINITION", - "description": " Verify a migration job, making sure the destination can reach the source and that all configuration and prerequisites are met.", - "canonical": true, - "file": "data_migration_service.verify_migration_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "VerifyMigrationJob", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.VerifyMigrationJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "migration_job", - "type": ".google.cloud.clouddms.v1.MigrationJob" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataMigrationServiceClient", - "fullName": "google.cloud.clouddms.v1.DataMigrationServiceClient" - }, - "method": { - "shortName": "VerifyMigrationJob", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.VerifyMigrationJob", - "service": { - "shortName": "DataMigrationService", - "fullName": "google.cloud.clouddms.v1.DataMigrationService" - } - } - } - }, - { - "regionTag": "datamigration_v1_generated_DataMigrationService_RestartMigrationJob_async", - "title": "DataMigrationService restartMigrationJob Sample", - "origin": "API_DEFINITION", - "description": " Restart a stopped or failed migration job, resetting the destination instance to its original state and starting the migration process from scratch.", - "canonical": true, - "file": "data_migration_service.restart_migration_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RestartMigrationJob", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.RestartMigrationJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "skip_validation", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataMigrationServiceClient", - "fullName": "google.cloud.clouddms.v1.DataMigrationServiceClient" - }, - "method": { - "shortName": "RestartMigrationJob", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.RestartMigrationJob", - "service": { - "shortName": "DataMigrationService", - "fullName": "google.cloud.clouddms.v1.DataMigrationService" - } - } - } - }, - { - "regionTag": "datamigration_v1_generated_DataMigrationService_GenerateSshScript_async", - "title": "DataMigrationService generateSshScript Sample", - "origin": "API_DEFINITION", - "description": " Generate a SSH configuration script to configure the reverse SSH connectivity.", - "canonical": true, - "file": "data_migration_service.generate_ssh_script.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateSshScript", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.GenerateSshScript", - "async": true, - "parameters": [ - { - "name": "migration_job", - "type": "TYPE_STRING" - }, - { - "name": "vm", - "type": "TYPE_STRING" - }, - { - "name": "vm_creation_config", - "type": ".google.cloud.clouddms.v1.VmCreationConfig" - }, - { - "name": "vm_selection_config", - "type": ".google.cloud.clouddms.v1.VmSelectionConfig" - }, - { - "name": "vm_port", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.clouddms.v1.SshScript", - "client": { - "shortName": "DataMigrationServiceClient", - "fullName": "google.cloud.clouddms.v1.DataMigrationServiceClient" - }, - "method": { - "shortName": "GenerateSshScript", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.GenerateSshScript", - "service": { - "shortName": "DataMigrationService", - "fullName": "google.cloud.clouddms.v1.DataMigrationService" - } - } - } - }, - { - "regionTag": "datamigration_v1_generated_DataMigrationService_GenerateTcpProxyScript_async", - "title": "DataMigrationService generateTcpProxyScript Sample", - "origin": "API_DEFINITION", - "description": " Generate a TCP Proxy configuration script to configure a cloud-hosted VM running a TCP Proxy.", - "canonical": true, - "file": "data_migration_service.generate_tcp_proxy_script.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateTcpProxyScript", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.GenerateTcpProxyScript", - "async": true, - "parameters": [ - { - "name": "migration_job", - "type": "TYPE_STRING" - }, - { - "name": "vm_name", - "type": "TYPE_STRING" - }, - { - "name": "vm_machine_type", - "type": "TYPE_STRING" - }, - { - "name": "vm_zone", - "type": "TYPE_STRING" - }, - { - "name": "vm_subnet", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.clouddms.v1.TcpProxyScript", - "client": { - "shortName": "DataMigrationServiceClient", - "fullName": "google.cloud.clouddms.v1.DataMigrationServiceClient" - }, - "method": { - "shortName": "GenerateTcpProxyScript", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.GenerateTcpProxyScript", - "service": { - "shortName": "DataMigrationService", - "fullName": "google.cloud.clouddms.v1.DataMigrationService" - } - } - } - }, - { - "regionTag": "datamigration_v1_generated_DataMigrationService_ListConnectionProfiles_async", - "title": "DataMigrationService listConnectionProfiles Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of all connection profiles in a given project and location.", - "canonical": true, - "file": "data_migration_service.list_connection_profiles.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListConnectionProfiles", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.ListConnectionProfiles", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.clouddms.v1.ListConnectionProfilesResponse", - "client": { - "shortName": "DataMigrationServiceClient", - "fullName": "google.cloud.clouddms.v1.DataMigrationServiceClient" - }, - "method": { - "shortName": "ListConnectionProfiles", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.ListConnectionProfiles", - "service": { - "shortName": "DataMigrationService", - "fullName": "google.cloud.clouddms.v1.DataMigrationService" - } - } - } - }, - { - "regionTag": "datamigration_v1_generated_DataMigrationService_GetConnectionProfile_async", - "title": "DataMigrationService getConnectionProfile Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single connection profile.", - "canonical": true, - "file": "data_migration_service.get_connection_profile.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetConnectionProfile", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.GetConnectionProfile", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.clouddms.v1.ConnectionProfile", - "client": { - "shortName": "DataMigrationServiceClient", - "fullName": "google.cloud.clouddms.v1.DataMigrationServiceClient" - }, - "method": { - "shortName": "GetConnectionProfile", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.GetConnectionProfile", - "service": { - "shortName": "DataMigrationService", - "fullName": "google.cloud.clouddms.v1.DataMigrationService" - } - } - } - }, - { - "regionTag": "datamigration_v1_generated_DataMigrationService_CreateConnectionProfile_async", - "title": "DataMigrationService createConnectionProfile Sample", - "origin": "API_DEFINITION", - "description": " Creates a new connection profile in a given project and location.", - "canonical": true, - "file": "data_migration_service.create_connection_profile.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateConnectionProfile", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.CreateConnectionProfile", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "connection_profile_id", - "type": "TYPE_STRING" - }, - { - "name": "connection_profile", - "type": ".google.cloud.clouddms.v1.ConnectionProfile" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "skip_validation", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataMigrationServiceClient", - "fullName": "google.cloud.clouddms.v1.DataMigrationServiceClient" - }, - "method": { - "shortName": "CreateConnectionProfile", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.CreateConnectionProfile", - "service": { - "shortName": "DataMigrationService", - "fullName": "google.cloud.clouddms.v1.DataMigrationService" - } - } - } - }, - { - "regionTag": "datamigration_v1_generated_DataMigrationService_UpdateConnectionProfile_async", - "title": "DataMigrationService updateConnectionProfile Sample", - "origin": "API_DEFINITION", - "description": " Update the configuration of a single connection profile.", - "canonical": true, - "file": "data_migration_service.update_connection_profile.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateConnectionProfile", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.UpdateConnectionProfile", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "connection_profile", - "type": ".google.cloud.clouddms.v1.ConnectionProfile" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "skip_validation", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataMigrationServiceClient", - "fullName": "google.cloud.clouddms.v1.DataMigrationServiceClient" - }, - "method": { - "shortName": "UpdateConnectionProfile", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.UpdateConnectionProfile", - "service": { - "shortName": "DataMigrationService", - "fullName": "google.cloud.clouddms.v1.DataMigrationService" - } - } - } - }, - { - "regionTag": "datamigration_v1_generated_DataMigrationService_DeleteConnectionProfile_async", - "title": "DataMigrationService deleteConnectionProfile Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Database Migration Service connection profile. A connection profile can only be deleted if it is not in use by any active migration jobs.", - "canonical": true, - "file": "data_migration_service.delete_connection_profile.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteConnectionProfile", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.DeleteConnectionProfile", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataMigrationServiceClient", - "fullName": "google.cloud.clouddms.v1.DataMigrationServiceClient" - }, - "method": { - "shortName": "DeleteConnectionProfile", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.DeleteConnectionProfile", - "service": { - "shortName": "DataMigrationService", - "fullName": "google.cloud.clouddms.v1.DataMigrationService" - } - } - } - }, - { - "regionTag": "datamigration_v1_generated_DataMigrationService_CreatePrivateConnection_async", - "title": "DataMigrationService createPrivateConnection Sample", - "origin": "API_DEFINITION", - "description": " Creates a new private connection in a given project and location.", - "canonical": true, - "file": "data_migration_service.create_private_connection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreatePrivateConnection", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.CreatePrivateConnection", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "private_connection_id", - "type": "TYPE_STRING" - }, - { - "name": "private_connection", - "type": ".google.cloud.clouddms.v1.PrivateConnection" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "skip_validation", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataMigrationServiceClient", - "fullName": "google.cloud.clouddms.v1.DataMigrationServiceClient" - }, - "method": { - "shortName": "CreatePrivateConnection", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.CreatePrivateConnection", - "service": { - "shortName": "DataMigrationService", - "fullName": "google.cloud.clouddms.v1.DataMigrationService" - } - } - } - }, - { - "regionTag": "datamigration_v1_generated_DataMigrationService_GetPrivateConnection_async", - "title": "DataMigrationService getPrivateConnection Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single private connection.", - "canonical": true, - "file": "data_migration_service.get_private_connection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPrivateConnection", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.GetPrivateConnection", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.clouddms.v1.PrivateConnection", - "client": { - "shortName": "DataMigrationServiceClient", - "fullName": "google.cloud.clouddms.v1.DataMigrationServiceClient" - }, - "method": { - "shortName": "GetPrivateConnection", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.GetPrivateConnection", - "service": { - "shortName": "DataMigrationService", - "fullName": "google.cloud.clouddms.v1.DataMigrationService" - } - } - } - }, - { - "regionTag": "datamigration_v1_generated_DataMigrationService_ListPrivateConnections_async", - "title": "DataMigrationService listPrivateConnections Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of private connections in a given project and location.", - "canonical": true, - "file": "data_migration_service.list_private_connections.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPrivateConnections", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.ListPrivateConnections", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.clouddms.v1.ListPrivateConnectionsResponse", - "client": { - "shortName": "DataMigrationServiceClient", - "fullName": "google.cloud.clouddms.v1.DataMigrationServiceClient" - }, - "method": { - "shortName": "ListPrivateConnections", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.ListPrivateConnections", - "service": { - "shortName": "DataMigrationService", - "fullName": "google.cloud.clouddms.v1.DataMigrationService" - } - } - } - }, - { - "regionTag": "datamigration_v1_generated_DataMigrationService_DeletePrivateConnection_async", - "title": "DataMigrationService deletePrivateConnection Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Database Migration Service private connection.", - "canonical": true, - "file": "data_migration_service.delete_private_connection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePrivateConnection", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.DeletePrivateConnection", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataMigrationServiceClient", - "fullName": "google.cloud.clouddms.v1.DataMigrationServiceClient" - }, - "method": { - "shortName": "DeletePrivateConnection", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.DeletePrivateConnection", - "service": { - "shortName": "DataMigrationService", - "fullName": "google.cloud.clouddms.v1.DataMigrationService" - } - } - } - }, - { - "regionTag": "datamigration_v1_generated_DataMigrationService_GetConversionWorkspace_async", - "title": "DataMigrationService getConversionWorkspace Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single conversion workspace.", - "canonical": true, - "file": "data_migration_service.get_conversion_workspace.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetConversionWorkspace", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.GetConversionWorkspace", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.clouddms.v1.ConversionWorkspace", - "client": { - "shortName": "DataMigrationServiceClient", - "fullName": "google.cloud.clouddms.v1.DataMigrationServiceClient" - }, - "method": { - "shortName": "GetConversionWorkspace", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.GetConversionWorkspace", - "service": { - "shortName": "DataMigrationService", - "fullName": "google.cloud.clouddms.v1.DataMigrationService" - } - } - } - }, - { - "regionTag": "datamigration_v1_generated_DataMigrationService_ListConversionWorkspaces_async", - "title": "DataMigrationService listConversionWorkspaces Sample", - "origin": "API_DEFINITION", - "description": " Lists conversion workspaces in a given project and location.", - "canonical": true, - "file": "data_migration_service.list_conversion_workspaces.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListConversionWorkspaces", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.ListConversionWorkspaces", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.clouddms.v1.ListConversionWorkspacesResponse", - "client": { - "shortName": "DataMigrationServiceClient", - "fullName": "google.cloud.clouddms.v1.DataMigrationServiceClient" - }, - "method": { - "shortName": "ListConversionWorkspaces", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.ListConversionWorkspaces", - "service": { - "shortName": "DataMigrationService", - "fullName": "google.cloud.clouddms.v1.DataMigrationService" - } - } - } - }, - { - "regionTag": "datamigration_v1_generated_DataMigrationService_CreateConversionWorkspace_async", - "title": "DataMigrationService createConversionWorkspace Sample", - "origin": "API_DEFINITION", - "description": " Creates a new conversion workspace in a given project and location.", - "canonical": true, - "file": "data_migration_service.create_conversion_workspace.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateConversionWorkspace", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.CreateConversionWorkspace", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "conversion_workspace_id", - "type": "TYPE_STRING" - }, - { - "name": "conversion_workspace", - "type": ".google.cloud.clouddms.v1.ConversionWorkspace" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataMigrationServiceClient", - "fullName": "google.cloud.clouddms.v1.DataMigrationServiceClient" - }, - "method": { - "shortName": "CreateConversionWorkspace", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.CreateConversionWorkspace", - "service": { - "shortName": "DataMigrationService", - "fullName": "google.cloud.clouddms.v1.DataMigrationService" - } - } - } - }, - { - "regionTag": "datamigration_v1_generated_DataMigrationService_UpdateConversionWorkspace_async", - "title": "DataMigrationService updateConversionWorkspace Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single conversion workspace.", - "canonical": true, - "file": "data_migration_service.update_conversion_workspace.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateConversionWorkspace", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.UpdateConversionWorkspace", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "conversion_workspace", - "type": ".google.cloud.clouddms.v1.ConversionWorkspace" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataMigrationServiceClient", - "fullName": "google.cloud.clouddms.v1.DataMigrationServiceClient" - }, - "method": { - "shortName": "UpdateConversionWorkspace", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.UpdateConversionWorkspace", - "service": { - "shortName": "DataMigrationService", - "fullName": "google.cloud.clouddms.v1.DataMigrationService" - } - } - } - }, - { - "regionTag": "datamigration_v1_generated_DataMigrationService_DeleteConversionWorkspace_async", - "title": "DataMigrationService deleteConversionWorkspace Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single conversion workspace.", - "canonical": true, - "file": "data_migration_service.delete_conversion_workspace.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteConversionWorkspace", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.DeleteConversionWorkspace", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataMigrationServiceClient", - "fullName": "google.cloud.clouddms.v1.DataMigrationServiceClient" - }, - "method": { - "shortName": "DeleteConversionWorkspace", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.DeleteConversionWorkspace", - "service": { - "shortName": "DataMigrationService", - "fullName": "google.cloud.clouddms.v1.DataMigrationService" - } - } - } - }, - { - "regionTag": "datamigration_v1_generated_DataMigrationService_CreateMappingRule_async", - "title": "DataMigrationService createMappingRule Sample", - "origin": "API_DEFINITION", - "description": " Creates a new mapping rule for a given conversion workspace.", - "canonical": true, - "file": "data_migration_service.create_mapping_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateMappingRule", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.CreateMappingRule", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "mapping_rule_id", - "type": "TYPE_STRING" - }, - { - "name": "mapping_rule", - "type": ".google.cloud.clouddms.v1.MappingRule" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.clouddms.v1.MappingRule", - "client": { - "shortName": "DataMigrationServiceClient", - "fullName": "google.cloud.clouddms.v1.DataMigrationServiceClient" - }, - "method": { - "shortName": "CreateMappingRule", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.CreateMappingRule", - "service": { - "shortName": "DataMigrationService", - "fullName": "google.cloud.clouddms.v1.DataMigrationService" - } - } - } - }, - { - "regionTag": "datamigration_v1_generated_DataMigrationService_DeleteMappingRule_async", - "title": "DataMigrationService deleteMappingRule Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single mapping rule.", - "canonical": true, - "file": "data_migration_service.delete_mapping_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteMappingRule", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.DeleteMappingRule", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DataMigrationServiceClient", - "fullName": "google.cloud.clouddms.v1.DataMigrationServiceClient" - }, - "method": { - "shortName": "DeleteMappingRule", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.DeleteMappingRule", - "service": { - "shortName": "DataMigrationService", - "fullName": "google.cloud.clouddms.v1.DataMigrationService" - } - } - } - }, - { - "regionTag": "datamigration_v1_generated_DataMigrationService_ListMappingRules_async", - "title": "DataMigrationService listMappingRules Sample", - "origin": "API_DEFINITION", - "description": " Lists the mapping rules for a specific conversion workspace.", - "canonical": true, - "file": "data_migration_service.list_mapping_rules.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMappingRules", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.ListMappingRules", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.clouddms.v1.ListMappingRulesResponse", - "client": { - "shortName": "DataMigrationServiceClient", - "fullName": "google.cloud.clouddms.v1.DataMigrationServiceClient" - }, - "method": { - "shortName": "ListMappingRules", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.ListMappingRules", - "service": { - "shortName": "DataMigrationService", - "fullName": "google.cloud.clouddms.v1.DataMigrationService" - } - } - } - }, - { - "regionTag": "datamigration_v1_generated_DataMigrationService_GetMappingRule_async", - "title": "DataMigrationService getMappingRule Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a mapping rule.", - "canonical": true, - "file": "data_migration_service.get_mapping_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMappingRule", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.GetMappingRule", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.clouddms.v1.MappingRule", - "client": { - "shortName": "DataMigrationServiceClient", - "fullName": "google.cloud.clouddms.v1.DataMigrationServiceClient" - }, - "method": { - "shortName": "GetMappingRule", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.GetMappingRule", - "service": { - "shortName": "DataMigrationService", - "fullName": "google.cloud.clouddms.v1.DataMigrationService" - } - } - } - }, - { - "regionTag": "datamigration_v1_generated_DataMigrationService_SeedConversionWorkspace_async", - "title": "DataMigrationService seedConversionWorkspace Sample", - "origin": "API_DEFINITION", - "description": " Imports a snapshot of the source database into the conversion workspace.", - "canonical": true, - "file": "data_migration_service.seed_conversion_workspace.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SeedConversionWorkspace", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.SeedConversionWorkspace", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "auto_commit", - "type": "TYPE_BOOL" - }, - { - "name": "source_connection_profile", - "type": "TYPE_STRING" - }, - { - "name": "destination_connection_profile", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataMigrationServiceClient", - "fullName": "google.cloud.clouddms.v1.DataMigrationServiceClient" - }, - "method": { - "shortName": "SeedConversionWorkspace", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.SeedConversionWorkspace", - "service": { - "shortName": "DataMigrationService", - "fullName": "google.cloud.clouddms.v1.DataMigrationService" - } - } - } - }, - { - "regionTag": "datamigration_v1_generated_DataMigrationService_ImportMappingRules_async", - "title": "DataMigrationService importMappingRules Sample", - "origin": "API_DEFINITION", - "description": " Imports the mapping rules for a given conversion workspace. Supports various formats of external rules files.", - "canonical": true, - "file": "data_migration_service.import_mapping_rules.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportMappingRules", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.ImportMappingRules", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "rules_format", - "type": ".google.cloud.clouddms.v1.ImportRulesFileFormat" - }, - { - "name": "rules_files", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "auto_commit", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataMigrationServiceClient", - "fullName": "google.cloud.clouddms.v1.DataMigrationServiceClient" - }, - "method": { - "shortName": "ImportMappingRules", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.ImportMappingRules", - "service": { - "shortName": "DataMigrationService", - "fullName": "google.cloud.clouddms.v1.DataMigrationService" - } - } - } - }, - { - "regionTag": "datamigration_v1_generated_DataMigrationService_ConvertConversionWorkspace_async", - "title": "DataMigrationService convertConversionWorkspace Sample", - "origin": "API_DEFINITION", - "description": " Creates a draft tree schema for the destination database.", - "canonical": true, - "file": "data_migration_service.convert_conversion_workspace.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ConvertConversionWorkspace", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.ConvertConversionWorkspace", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "auto_commit", - "type": "TYPE_BOOL" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "convert_full_path", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataMigrationServiceClient", - "fullName": "google.cloud.clouddms.v1.DataMigrationServiceClient" - }, - "method": { - "shortName": "ConvertConversionWorkspace", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.ConvertConversionWorkspace", - "service": { - "shortName": "DataMigrationService", - "fullName": "google.cloud.clouddms.v1.DataMigrationService" - } - } - } - }, - { - "regionTag": "datamigration_v1_generated_DataMigrationService_CommitConversionWorkspace_async", - "title": "DataMigrationService commitConversionWorkspace Sample", - "origin": "API_DEFINITION", - "description": " Marks all the data in the conversion workspace as committed.", - "canonical": true, - "file": "data_migration_service.commit_conversion_workspace.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CommitConversionWorkspace", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.CommitConversionWorkspace", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "commit_name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataMigrationServiceClient", - "fullName": "google.cloud.clouddms.v1.DataMigrationServiceClient" - }, - "method": { - "shortName": "CommitConversionWorkspace", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.CommitConversionWorkspace", - "service": { - "shortName": "DataMigrationService", - "fullName": "google.cloud.clouddms.v1.DataMigrationService" - } - } - } - }, - { - "regionTag": "datamigration_v1_generated_DataMigrationService_RollbackConversionWorkspace_async", - "title": "DataMigrationService rollbackConversionWorkspace Sample", - "origin": "API_DEFINITION", - "description": " Rolls back a conversion workspace to the last committed snapshot.", - "canonical": true, - "file": "data_migration_service.rollback_conversion_workspace.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RollbackConversionWorkspace", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.RollbackConversionWorkspace", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataMigrationServiceClient", - "fullName": "google.cloud.clouddms.v1.DataMigrationServiceClient" - }, - "method": { - "shortName": "RollbackConversionWorkspace", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.RollbackConversionWorkspace", - "service": { - "shortName": "DataMigrationService", - "fullName": "google.cloud.clouddms.v1.DataMigrationService" - } - } - } - }, - { - "regionTag": "datamigration_v1_generated_DataMigrationService_ApplyConversionWorkspace_async", - "title": "DataMigrationService applyConversionWorkspace Sample", - "origin": "API_DEFINITION", - "description": " Applies draft tree onto a specific destination database.", - "canonical": true, - "file": "data_migration_service.apply_conversion_workspace.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ApplyConversionWorkspace", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.ApplyConversionWorkspace", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "dry_run", - "type": "TYPE_BOOL" - }, - { - "name": "auto_commit", - "type": "TYPE_BOOL" - }, - { - "name": "connection_profile", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataMigrationServiceClient", - "fullName": "google.cloud.clouddms.v1.DataMigrationServiceClient" - }, - "method": { - "shortName": "ApplyConversionWorkspace", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.ApplyConversionWorkspace", - "service": { - "shortName": "DataMigrationService", - "fullName": "google.cloud.clouddms.v1.DataMigrationService" - } - } - } - }, - { - "regionTag": "datamigration_v1_generated_DataMigrationService_DescribeDatabaseEntities_async", - "title": "DataMigrationService describeDatabaseEntities Sample", - "origin": "API_DEFINITION", - "description": " Describes the database entities tree for a specific conversion workspace and a specific tree type. Database entities are not resources like conversion workspaces or mapping rules, and they can't be created, updated or deleted. Instead, they are simple data objects describing the structure of the client database.", - "canonical": true, - "file": "data_migration_service.describe_database_entities.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 95, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DescribeDatabaseEntities", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.DescribeDatabaseEntities", - "async": true, - "parameters": [ - { - "name": "conversion_workspace", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "tree", - "type": ".google.cloud.clouddms.v1.DescribeDatabaseEntitiesRequest.DBTreeType" - }, - { - "name": "uncommitted", - "type": "TYPE_BOOL" - }, - { - "name": "commit_id", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.clouddms.v1.DatabaseEntityView" - } - ], - "resultType": ".google.cloud.clouddms.v1.DescribeDatabaseEntitiesResponse", - "client": { - "shortName": "DataMigrationServiceClient", - "fullName": "google.cloud.clouddms.v1.DataMigrationServiceClient" - }, - "method": { - "shortName": "DescribeDatabaseEntities", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.DescribeDatabaseEntities", - "service": { - "shortName": "DataMigrationService", - "fullName": "google.cloud.clouddms.v1.DataMigrationService" - } - } - } - }, - { - "regionTag": "datamigration_v1_generated_DataMigrationService_SearchBackgroundJobs_async", - "title": "DataMigrationService searchBackgroundJobs Sample", - "origin": "API_DEFINITION", - "description": " Searches/lists the background jobs for a specific conversion workspace. The background jobs are not resources like conversion workspaces or mapping rules, and they can't be created, updated or deleted. Instead, they are a way to expose the data plane jobs log.", - "canonical": true, - "file": "data_migration_service.search_background_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchBackgroundJobs", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.SearchBackgroundJobs", - "async": true, - "parameters": [ - { - "name": "conversion_workspace", - "type": "TYPE_STRING" - }, - { - "name": "return_most_recent_per_job_type", - "type": "TYPE_BOOL" - }, - { - "name": "max_size", - "type": "TYPE_INT32" - }, - { - "name": "completed_until_time", - "type": ".google.protobuf.Timestamp" - } - ], - "resultType": ".google.cloud.clouddms.v1.SearchBackgroundJobsResponse", - "client": { - "shortName": "DataMigrationServiceClient", - "fullName": "google.cloud.clouddms.v1.DataMigrationServiceClient" - }, - "method": { - "shortName": "SearchBackgroundJobs", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.SearchBackgroundJobs", - "service": { - "shortName": "DataMigrationService", - "fullName": "google.cloud.clouddms.v1.DataMigrationService" - } - } - } - }, - { - "regionTag": "datamigration_v1_generated_DataMigrationService_DescribeConversionWorkspaceRevisions_async", - "title": "DataMigrationService describeConversionWorkspaceRevisions Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of committed revisions of a specific conversion workspace.", - "canonical": true, - "file": "data_migration_service.describe_conversion_workspace_revisions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DescribeConversionWorkspaceRevisions", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.DescribeConversionWorkspaceRevisions", - "async": true, - "parameters": [ - { - "name": "conversion_workspace", - "type": "TYPE_STRING" - }, - { - "name": "commit_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.clouddms.v1.DescribeConversionWorkspaceRevisionsResponse", - "client": { - "shortName": "DataMigrationServiceClient", - "fullName": "google.cloud.clouddms.v1.DataMigrationServiceClient" - }, - "method": { - "shortName": "DescribeConversionWorkspaceRevisions", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.DescribeConversionWorkspaceRevisions", - "service": { - "shortName": "DataMigrationService", - "fullName": "google.cloud.clouddms.v1.DataMigrationService" - } - } - } - }, - { - "regionTag": "datamigration_v1_generated_DataMigrationService_FetchStaticIps_async", - "title": "DataMigrationService fetchStaticIps Sample", - "origin": "API_DEFINITION", - "description": " Fetches a set of static IP addresses that need to be allowlisted by the customer when using the static-IP connectivity method.", - "canonical": true, - "file": "data_migration_service.fetch_static_ips.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchStaticIps", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.FetchStaticIps", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.clouddms.v1.FetchStaticIpsResponse", - "client": { - "shortName": "DataMigrationServiceClient", - "fullName": "google.cloud.clouddms.v1.DataMigrationServiceClient" - }, - "method": { - "shortName": "FetchStaticIps", - "fullName": "google.cloud.clouddms.v1.DataMigrationService.FetchStaticIps", - "service": { - "shortName": "DataMigrationService", - "fullName": "google.cloud.clouddms.v1.DataMigrationService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-cloudsecuritycompliance/samples/generated/v1/snippet_metadata_google.cloud.cloudsecuritycompliance.v1.json b/packages/google-cloud-cloudsecuritycompliance/samples/generated/v1/snippet_metadata_google.cloud.cloudsecuritycompliance.v1.json deleted file mode 100644 index c60712c3a159..000000000000 --- a/packages/google-cloud-cloudsecuritycompliance/samples/generated/v1/snippet_metadata_google.cloud.cloudsecuritycompliance.v1.json +++ /dev/null @@ -1,1287 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-cloudsecuritycompliance", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.cloudsecuritycompliance.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "cloudsecuritycompliance_v1_generated_Audit_GenerateFrameworkAuditScopeReport_async", - "title": "Audit generateFrameworkAuditScopeReport Sample", - "origin": "API_DEFINITION", - "description": " Generates an audit scope report for a framework.", - "canonical": true, - "file": "audit.generate_framework_audit_scope_report.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateFrameworkAuditScopeReport", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Audit.GenerateFrameworkAuditScopeReport", - "async": true, - "parameters": [ - { - "name": "scope", - "type": "TYPE_STRING" - }, - { - "name": "report_format", - "type": ".google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportRequest.Format" - }, - { - "name": "compliance_framework", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.cloudsecuritycompliance.v1.GenerateFrameworkAuditScopeReportResponse", - "client": { - "shortName": "AuditClient", - "fullName": "google.cloud.cloudsecuritycompliance.v1.AuditClient" - }, - "method": { - "shortName": "GenerateFrameworkAuditScopeReport", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Audit.GenerateFrameworkAuditScopeReport", - "service": { - "shortName": "Audit", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Audit" - } - } - } - }, - { - "regionTag": "cloudsecuritycompliance_v1_generated_Audit_CreateFrameworkAudit_async", - "title": "Audit createFrameworkAudit Sample", - "origin": "API_DEFINITION", - "description": " Creates an audit scope report for a framework.", - "canonical": true, - "file": "audit.create_framework_audit.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateFrameworkAudit", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Audit.CreateFrameworkAudit", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "framework_audit_id", - "type": "TYPE_STRING" - }, - { - "name": "framework_audit", - "type": ".google.cloud.cloudsecuritycompliance.v1.FrameworkAudit" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AuditClient", - "fullName": "google.cloud.cloudsecuritycompliance.v1.AuditClient" - }, - "method": { - "shortName": "CreateFrameworkAudit", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Audit.CreateFrameworkAudit", - "service": { - "shortName": "Audit", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Audit" - } - } - } - }, - { - "regionTag": "cloudsecuritycompliance_v1_generated_Audit_ListFrameworkAudits_async", - "title": "Audit listFrameworkAudits Sample", - "origin": "API_DEFINITION", - "description": " Lists the framework audits for a given organization, folder, or project.", - "canonical": true, - "file": "audit.list_framework_audits.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFrameworkAudits", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Audit.ListFrameworkAudits", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.cloudsecuritycompliance.v1.ListFrameworkAuditsResponse", - "client": { - "shortName": "AuditClient", - "fullName": "google.cloud.cloudsecuritycompliance.v1.AuditClient" - }, - "method": { - "shortName": "ListFrameworkAudits", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Audit.ListFrameworkAudits", - "service": { - "shortName": "Audit", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Audit" - } - } - } - }, - { - "regionTag": "cloudsecuritycompliance_v1_generated_Audit_GetFrameworkAudit_async", - "title": "Audit getFrameworkAudit Sample", - "origin": "API_DEFINITION", - "description": " Gets the details for a framework audit.", - "canonical": true, - "file": "audit.get_framework_audit.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFrameworkAudit", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Audit.GetFrameworkAudit", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.cloudsecuritycompliance.v1.FrameworkAudit", - "client": { - "shortName": "AuditClient", - "fullName": "google.cloud.cloudsecuritycompliance.v1.AuditClient" - }, - "method": { - "shortName": "GetFrameworkAudit", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Audit.GetFrameworkAudit", - "service": { - "shortName": "Audit", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Audit" - } - } - } - }, - { - "regionTag": "cloudsecuritycompliance_v1_generated_CmEnrollmentService_UpdateCmEnrollment_async", - "title": "Audit updateCmEnrollment Sample", - "origin": "API_DEFINITION", - "description": " Updates the Compliance Manager enrollment for a resource to facilitate an audit. Use this method to enroll a resource in Compliance Manager or to create or update feature-specific configurations.", - "canonical": true, - "file": "cm_enrollment_service.update_cm_enrollment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCmEnrollment", - "fullName": "google.cloud.cloudsecuritycompliance.v1.CmEnrollmentService.UpdateCmEnrollment", - "async": true, - "parameters": [ - { - "name": "cm_enrollment", - "type": ".google.cloud.cloudsecuritycompliance.v1.CmEnrollment" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.cloudsecuritycompliance.v1.CmEnrollment", - "client": { - "shortName": "CmEnrollmentServiceClient", - "fullName": "google.cloud.cloudsecuritycompliance.v1.CmEnrollmentServiceClient" - }, - "method": { - "shortName": "UpdateCmEnrollment", - "fullName": "google.cloud.cloudsecuritycompliance.v1.CmEnrollmentService.UpdateCmEnrollment", - "service": { - "shortName": "CmEnrollmentService", - "fullName": "google.cloud.cloudsecuritycompliance.v1.CmEnrollmentService" - } - } - } - }, - { - "regionTag": "cloudsecuritycompliance_v1_generated_CmEnrollmentService_CalculateEffectiveCmEnrollment_async", - "title": "Audit calculateEffectiveCmEnrollment Sample", - "origin": "API_DEFINITION", - "description": " Calculates the effective Compliance Manager enrollment for a resource. An effective enrollment is either a direct enrollment of a resource (if it exists), or an enrollment of the closest parent of a resource that's enrolled in Compliance Manager.", - "canonical": true, - "file": "cm_enrollment_service.calculate_effective_cm_enrollment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CalculateEffectiveCmEnrollment", - "fullName": "google.cloud.cloudsecuritycompliance.v1.CmEnrollmentService.CalculateEffectiveCmEnrollment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.cloudsecuritycompliance.v1.CalculateEffectiveCmEnrollmentResponse", - "client": { - "shortName": "CmEnrollmentServiceClient", - "fullName": "google.cloud.cloudsecuritycompliance.v1.CmEnrollmentServiceClient" - }, - "method": { - "shortName": "CalculateEffectiveCmEnrollment", - "fullName": "google.cloud.cloudsecuritycompliance.v1.CmEnrollmentService.CalculateEffectiveCmEnrollment", - "service": { - "shortName": "CmEnrollmentService", - "fullName": "google.cloud.cloudsecuritycompliance.v1.CmEnrollmentService" - } - } - } - }, - { - "regionTag": "cloudsecuritycompliance_v1_generated_Config_ListFrameworks_async", - "title": "Audit listFrameworks Sample", - "origin": "API_DEFINITION", - "description": " Lists the frameworks (both built-in and custom) that are available within the parent resource. The latest major version of each framework is returned. This method supports pagination.", - "canonical": true, - "file": "config.list_frameworks.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFrameworks", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Config.ListFrameworks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.cloudsecuritycompliance.v1.ListFrameworksResponse", - "client": { - "shortName": "ConfigClient", - "fullName": "google.cloud.cloudsecuritycompliance.v1.ConfigClient" - }, - "method": { - "shortName": "ListFrameworks", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Config.ListFrameworks", - "service": { - "shortName": "Config", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Config" - } - } - } - }, - { - "regionTag": "cloudsecuritycompliance_v1_generated_Config_GetFramework_async", - "title": "Audit getFramework Sample", - "origin": "API_DEFINITION", - "description": " Gets details about a framework. This method retrieves the latest major version of the framework. To retrieve a specific major version, include `major_revision_id` in the request.", - "canonical": true, - "file": "config.get_framework.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFramework", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Config.GetFramework", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "major_revision_id", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.cloudsecuritycompliance.v1.Framework", - "client": { - "shortName": "ConfigClient", - "fullName": "google.cloud.cloudsecuritycompliance.v1.ConfigClient" - }, - "method": { - "shortName": "GetFramework", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Config.GetFramework", - "service": { - "shortName": "Config", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Config" - } - } - } - }, - { - "regionTag": "cloudsecuritycompliance_v1_generated_Config_CreateFramework_async", - "title": "Audit createFramework Sample", - "origin": "API_DEFINITION", - "description": " Creates a custom framework in a given parent resource. You can't create built-in frameworks because those are managed by Google.", - "canonical": true, - "file": "config.create_framework.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateFramework", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Config.CreateFramework", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "framework_id", - "type": "TYPE_STRING" - }, - { - "name": "framework", - "type": ".google.cloud.cloudsecuritycompliance.v1.Framework" - } - ], - "resultType": ".google.cloud.cloudsecuritycompliance.v1.Framework", - "client": { - "shortName": "ConfigClient", - "fullName": "google.cloud.cloudsecuritycompliance.v1.ConfigClient" - }, - "method": { - "shortName": "CreateFramework", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Config.CreateFramework", - "service": { - "shortName": "Config", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Config" - } - } - } - }, - { - "regionTag": "cloudsecuritycompliance_v1_generated_Config_UpdateFramework_async", - "title": "Audit updateFramework Sample", - "origin": "API_DEFINITION", - "description": " Updates a custom framework. This method allows for partial updates of a framework. Use the `update_mask` to specify which fields to update. Consider the following: - If you provide an `update_mask`, only the fields that are specified in the mask are updated. - If you don't provide an `update_mask`, all the fields that are present in the request's `framework` body are used to overwrite the existing resource. You can only update frameworks with the `CUSTOM` type. A successful update creates a new version of the framework.", - "canonical": true, - "file": "config.update_framework.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateFramework", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Config.UpdateFramework", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "framework", - "type": ".google.cloud.cloudsecuritycompliance.v1.Framework" - }, - { - "name": "major_revision_id", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.cloudsecuritycompliance.v1.Framework", - "client": { - "shortName": "ConfigClient", - "fullName": "google.cloud.cloudsecuritycompliance.v1.ConfigClient" - }, - "method": { - "shortName": "UpdateFramework", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Config.UpdateFramework", - "service": { - "shortName": "Config", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Config" - } - } - } - }, - { - "regionTag": "cloudsecuritycompliance_v1_generated_Config_DeleteFramework_async", - "title": "Audit deleteFramework Sample", - "origin": "API_DEFINITION", - "description": " Deletes a custom framework, including all its major and minor revisions. Consider the following: - You can't delete built-in frameworks. You can only delete frameworks with type `CUSTOM`. - You can't delete frameworks that are deployed to a resource. - You can't restore a deleted framework. This action is permanent.", - "canonical": true, - "file": "config.delete_framework.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteFramework", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Config.DeleteFramework", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ConfigClient", - "fullName": "google.cloud.cloudsecuritycompliance.v1.ConfigClient" - }, - "method": { - "shortName": "DeleteFramework", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Config.DeleteFramework", - "service": { - "shortName": "Config", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Config" - } - } - } - }, - { - "regionTag": "cloudsecuritycompliance_v1_generated_Config_ListCloudControls_async", - "title": "Audit listCloudControls Sample", - "origin": "API_DEFINITION", - "description": " Lists the cloud controls (both built-in and custom) that are available in a given parent resource. The latest major version of each cloud control is returned. This method supports pagination.", - "canonical": true, - "file": "config.list_cloud_controls.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCloudControls", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Config.ListCloudControls", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.cloudsecuritycompliance.v1.ListCloudControlsResponse", - "client": { - "shortName": "ConfigClient", - "fullName": "google.cloud.cloudsecuritycompliance.v1.ConfigClient" - }, - "method": { - "shortName": "ListCloudControls", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Config.ListCloudControls", - "service": { - "shortName": "Config", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Config" - } - } - } - }, - { - "regionTag": "cloudsecuritycompliance_v1_generated_Config_GetCloudControl_async", - "title": "Audit getCloudControl Sample", - "origin": "API_DEFINITION", - "description": " Gets details about a cloud control. This method retrieves the latest major version of a cloud control that you identify by name. By default, the latest major version of the cloud control is returned. To retrieve a specific major version, include `major_revision_id` in the request.", - "canonical": true, - "file": "config.get_cloud_control.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCloudControl", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Config.GetCloudControl", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "major_revision_id", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.cloudsecuritycompliance.v1.CloudControl", - "client": { - "shortName": "ConfigClient", - "fullName": "google.cloud.cloudsecuritycompliance.v1.ConfigClient" - }, - "method": { - "shortName": "GetCloudControl", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Config.GetCloudControl", - "service": { - "shortName": "Config", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Config" - } - } - } - }, - { - "regionTag": "cloudsecuritycompliance_v1_generated_Config_CreateCloudControl_async", - "title": "Audit createCloudControl Sample", - "origin": "API_DEFINITION", - "description": " Creates a custom cloud control in a given parent resource. You can't create built-in cloud controls because those are managed by Google.", - "canonical": true, - "file": "config.create_cloud_control.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCloudControl", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Config.CreateCloudControl", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "cloud_control_id", - "type": "TYPE_STRING" - }, - { - "name": "cloud_control", - "type": ".google.cloud.cloudsecuritycompliance.v1.CloudControl" - } - ], - "resultType": ".google.cloud.cloudsecuritycompliance.v1.CloudControl", - "client": { - "shortName": "ConfigClient", - "fullName": "google.cloud.cloudsecuritycompliance.v1.ConfigClient" - }, - "method": { - "shortName": "CreateCloudControl", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Config.CreateCloudControl", - "service": { - "shortName": "Config", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Config" - } - } - } - }, - { - "regionTag": "cloudsecuritycompliance_v1_generated_Config_UpdateCloudControl_async", - "title": "Audit updateCloudControl Sample", - "origin": "API_DEFINITION", - "description": " Updates a custom cloud control. This method allows for partial updates of a cloud control. Use the `update_mask` to specify which fields to update. Consider the following: - If you provide an `update_mask`, only the fields that are specified in the mask are updated. - If you don't provide an `update_mask`, all the fields that are present in the request's `cloud_control` body are used to overwrite the existing resource. You can only update cloud controls with the `CUSTOM` type. A successful update creates a new version of the cloud control.", - "canonical": true, - "file": "config.update_cloud_control.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCloudControl", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Config.UpdateCloudControl", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "cloud_control", - "type": ".google.cloud.cloudsecuritycompliance.v1.CloudControl" - } - ], - "resultType": ".google.cloud.cloudsecuritycompliance.v1.CloudControl", - "client": { - "shortName": "ConfigClient", - "fullName": "google.cloud.cloudsecuritycompliance.v1.ConfigClient" - }, - "method": { - "shortName": "UpdateCloudControl", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Config.UpdateCloudControl", - "service": { - "shortName": "Config", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Config" - } - } - } - }, - { - "regionTag": "cloudsecuritycompliance_v1_generated_Config_DeleteCloudControl_async", - "title": "Audit deleteCloudControl Sample", - "origin": "API_DEFINITION", - "description": " Deletes a custom cloud control, including all its major and minor revisions. Consider the following: - You can't delete built-in cloud controls. You can only delete cloud controls with type `CUSTOM`. - You can't delete cloud controls if any of the versions are referenced by a framework. - You can't restore a deleted cloud control. This action is permanent.", - "canonical": true, - "file": "config.delete_cloud_control.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCloudControl", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Config.DeleteCloudControl", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ConfigClient", - "fullName": "google.cloud.cloudsecuritycompliance.v1.ConfigClient" - }, - "method": { - "shortName": "DeleteCloudControl", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Config.DeleteCloudControl", - "service": { - "shortName": "Config", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Config" - } - } - } - }, - { - "regionTag": "cloudsecuritycompliance_v1_generated_Deployment_CreateFrameworkDeployment_async", - "title": "Audit createFrameworkDeployment Sample", - "origin": "API_DEFINITION", - "description": " Creates a framework deployment in a given parent resource. A framework deployment lets you assign a particular framework version to an organization, folder, or project so that you can control and monitor those resources using the framework's cloud controls.", - "canonical": true, - "file": "deployment.create_framework_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateFrameworkDeployment", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Deployment.CreateFrameworkDeployment", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "framework_deployment_id", - "type": "TYPE_STRING" - }, - { - "name": "framework_deployment", - "type": ".google.cloud.cloudsecuritycompliance.v1.FrameworkDeployment" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DeploymentClient", - "fullName": "google.cloud.cloudsecuritycompliance.v1.DeploymentClient" - }, - "method": { - "shortName": "CreateFrameworkDeployment", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Deployment.CreateFrameworkDeployment", - "service": { - "shortName": "Deployment", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Deployment" - } - } - } - }, - { - "regionTag": "cloudsecuritycompliance_v1_generated_Deployment_DeleteFrameworkDeployment_async", - "title": "Audit deleteFrameworkDeployment Sample", - "origin": "API_DEFINITION", - "description": " Deletes a framework deployment.", - "canonical": true, - "file": "deployment.delete_framework_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteFrameworkDeployment", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Deployment.DeleteFrameworkDeployment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DeploymentClient", - "fullName": "google.cloud.cloudsecuritycompliance.v1.DeploymentClient" - }, - "method": { - "shortName": "DeleteFrameworkDeployment", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Deployment.DeleteFrameworkDeployment", - "service": { - "shortName": "Deployment", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Deployment" - } - } - } - }, - { - "regionTag": "cloudsecuritycompliance_v1_generated_Deployment_GetFrameworkDeployment_async", - "title": "Audit getFrameworkDeployment Sample", - "origin": "API_DEFINITION", - "description": " Gets details about a framework deployment.", - "canonical": true, - "file": "deployment.get_framework_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFrameworkDeployment", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Deployment.GetFrameworkDeployment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.cloudsecuritycompliance.v1.FrameworkDeployment", - "client": { - "shortName": "DeploymentClient", - "fullName": "google.cloud.cloudsecuritycompliance.v1.DeploymentClient" - }, - "method": { - "shortName": "GetFrameworkDeployment", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Deployment.GetFrameworkDeployment", - "service": { - "shortName": "Deployment", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Deployment" - } - } - } - }, - { - "regionTag": "cloudsecuritycompliance_v1_generated_Deployment_ListFrameworkDeployments_async", - "title": "Audit listFrameworkDeployments Sample", - "origin": "API_DEFINITION", - "description": " Lists the framework deployments in a given parent resource.", - "canonical": true, - "file": "deployment.list_framework_deployments.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFrameworkDeployments", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Deployment.ListFrameworkDeployments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.cloudsecuritycompliance.v1.ListFrameworkDeploymentsResponse", - "client": { - "shortName": "DeploymentClient", - "fullName": "google.cloud.cloudsecuritycompliance.v1.DeploymentClient" - }, - "method": { - "shortName": "ListFrameworkDeployments", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Deployment.ListFrameworkDeployments", - "service": { - "shortName": "Deployment", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Deployment" - } - } - } - }, - { - "regionTag": "cloudsecuritycompliance_v1_generated_Deployment_GetCloudControlDeployment_async", - "title": "Audit getCloudControlDeployment Sample", - "origin": "API_DEFINITION", - "description": " Gets details about a cloud control deployment.", - "canonical": true, - "file": "deployment.get_cloud_control_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCloudControlDeployment", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Deployment.GetCloudControlDeployment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.cloudsecuritycompliance.v1.CloudControlDeployment", - "client": { - "shortName": "DeploymentClient", - "fullName": "google.cloud.cloudsecuritycompliance.v1.DeploymentClient" - }, - "method": { - "shortName": "GetCloudControlDeployment", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Deployment.GetCloudControlDeployment", - "service": { - "shortName": "Deployment", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Deployment" - } - } - } - }, - { - "regionTag": "cloudsecuritycompliance_v1_generated_Deployment_ListCloudControlDeployments_async", - "title": "Audit listCloudControlDeployments Sample", - "origin": "API_DEFINITION", - "description": " Lists the cloud conrol deployments in a given parent resource.", - "canonical": true, - "file": "deployment.list_cloud_control_deployments.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCloudControlDeployments", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Deployment.ListCloudControlDeployments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.cloudsecuritycompliance.v1.ListCloudControlDeploymentsResponse", - "client": { - "shortName": "DeploymentClient", - "fullName": "google.cloud.cloudsecuritycompliance.v1.DeploymentClient" - }, - "method": { - "shortName": "ListCloudControlDeployments", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Deployment.ListCloudControlDeployments", - "service": { - "shortName": "Deployment", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Deployment" - } - } - } - }, - { - "regionTag": "cloudsecuritycompliance_v1_generated_Monitoring_ListFrameworkComplianceSummaries_async", - "title": "Audit listFrameworkComplianceSummaries Sample", - "origin": "API_DEFINITION", - "description": " Lists the framework compliance summary for a given scope.", - "canonical": true, - "file": "monitoring.list_framework_compliance_summaries.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFrameworkComplianceSummaries", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Monitoring.ListFrameworkComplianceSummaries", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummaryView" - } - ], - "resultType": ".google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse", - "client": { - "shortName": "MonitoringClient", - "fullName": "google.cloud.cloudsecuritycompliance.v1.MonitoringClient" - }, - "method": { - "shortName": "ListFrameworkComplianceSummaries", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Monitoring.ListFrameworkComplianceSummaries", - "service": { - "shortName": "Monitoring", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Monitoring" - } - } - } - }, - { - "regionTag": "cloudsecuritycompliance_v1_generated_Monitoring_ListFindingSummaries_async", - "title": "Audit listFindingSummaries Sample", - "origin": "API_DEFINITION", - "description": " Lists the finding summary by category for a given scope.", - "canonical": true, - "file": "monitoring.list_finding_summaries.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFindingSummaries", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Monitoring.ListFindingSummaries", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "end_time", - "type": ".google.protobuf.Timestamp" - } - ], - "resultType": ".google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse", - "client": { - "shortName": "MonitoringClient", - "fullName": "google.cloud.cloudsecuritycompliance.v1.MonitoringClient" - }, - "method": { - "shortName": "ListFindingSummaries", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Monitoring.ListFindingSummaries", - "service": { - "shortName": "Monitoring", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Monitoring" - } - } - } - }, - { - "regionTag": "cloudsecuritycompliance_v1_generated_Monitoring_FetchFrameworkComplianceReport_async", - "title": "Audit fetchFrameworkComplianceReport Sample", - "origin": "API_DEFINITION", - "description": " Fetches the framework compliance report for a given scope.", - "canonical": true, - "file": "monitoring.fetch_framework_compliance_report.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchFrameworkComplianceReport", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Monitoring.FetchFrameworkComplianceReport", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "end_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport", - "client": { - "shortName": "MonitoringClient", - "fullName": "google.cloud.cloudsecuritycompliance.v1.MonitoringClient" - }, - "method": { - "shortName": "FetchFrameworkComplianceReport", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Monitoring.FetchFrameworkComplianceReport", - "service": { - "shortName": "Monitoring", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Monitoring" - } - } - } - }, - { - "regionTag": "cloudsecuritycompliance_v1_generated_Monitoring_ListControlComplianceSummaries_async", - "title": "Audit listControlComplianceSummaries Sample", - "origin": "API_DEFINITION", - "description": " Lists the control compliance summary for a given scope.", - "canonical": true, - "file": "monitoring.list_control_compliance_summaries.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListControlComplianceSummaries", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Monitoring.ListControlComplianceSummaries", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "end_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse", - "client": { - "shortName": "MonitoringClient", - "fullName": "google.cloud.cloudsecuritycompliance.v1.MonitoringClient" - }, - "method": { - "shortName": "ListControlComplianceSummaries", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Monitoring.ListControlComplianceSummaries", - "service": { - "shortName": "Monitoring", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Monitoring" - } - } - } - }, - { - "regionTag": "cloudsecuritycompliance_v1_generated_Monitoring_AggregateFrameworkComplianceReport_async", - "title": "Audit aggregateFrameworkComplianceReport Sample", - "origin": "API_DEFINITION", - "description": " Gets the aggregated compliance report over time for a given scope.", - "canonical": true, - "file": "monitoring.aggregate_framework_compliance_report.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregateFrameworkComplianceReport", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Monitoring.AggregateFrameworkComplianceReport", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "interval", - "type": ".google.type.Interval" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportResponse", - "client": { - "shortName": "MonitoringClient", - "fullName": "google.cloud.cloudsecuritycompliance.v1.MonitoringClient" - }, - "method": { - "shortName": "AggregateFrameworkComplianceReport", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Monitoring.AggregateFrameworkComplianceReport", - "service": { - "shortName": "Monitoring", - "fullName": "google.cloud.cloudsecuritycompliance.v1.Monitoring" - } - } - } - } - ] -} diff --git a/packages/google-cloud-commerce-consumer-procurement/samples/generated/v1/snippet_metadata_google.cloud.commerce.consumer.procurement.v1.json b/packages/google-cloud-commerce-consumer-procurement/samples/generated/v1/snippet_metadata_google.cloud.commerce.consumer.procurement.v1.json deleted file mode 100644 index 25551836e55a..000000000000 --- a/packages/google-cloud-commerce-consumer-procurement/samples/generated/v1/snippet_metadata_google.cloud.commerce.consumer.procurement.v1.json +++ /dev/null @@ -1,479 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-procurement", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.commerce.consumer.procurement.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "cloudcommerceconsumerprocurement_v1_generated_ConsumerProcurementService_PlaceOrder_async", - "title": "ConsumerProcurementService placeOrder Sample", - "origin": "API_DEFINITION", - "description": " Creates a new [Order][google.cloud.commerce.consumer.procurement.v1.Order]. This API only supports GCP spend-based committed use discounts specified by GCP documentation. The returned long-running operation is in-progress until the backend completes the creation of the resource. Once completed, the order is in [OrderState.ORDER_STATE_ACTIVE][google.cloud.commerce.consumer.procurement.v1.OrderState.ORDER_STATE_ACTIVE]. In case of failure, the order resource will be removed.", - "canonical": true, - "file": "consumer_procurement_service.place_order.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PlaceOrder", - "fullName": "google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementService.PlaceOrder", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "display_name", - "type": "TYPE_STRING" - }, - { - "name": "line_item_info", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConsumerProcurementServiceClient", - "fullName": "google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementServiceClient" - }, - "method": { - "shortName": "PlaceOrder", - "fullName": "google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementService.PlaceOrder", - "service": { - "shortName": "ConsumerProcurementService", - "fullName": "google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementService" - } - } - } - }, - { - "regionTag": "cloudcommerceconsumerprocurement_v1_generated_ConsumerProcurementService_GetOrder_async", - "title": "ConsumerProcurementService getOrder Sample", - "origin": "API_DEFINITION", - "description": " Returns the requested [Order][google.cloud.commerce.consumer.procurement.v1.Order] resource.", - "canonical": true, - "file": "consumer_procurement_service.get_order.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetOrder", - "fullName": "google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementService.GetOrder", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.commerce.consumer.procurement.v1.Order", - "client": { - "shortName": "ConsumerProcurementServiceClient", - "fullName": "google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementServiceClient" - }, - "method": { - "shortName": "GetOrder", - "fullName": "google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementService.GetOrder", - "service": { - "shortName": "ConsumerProcurementService", - "fullName": "google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementService" - } - } - } - }, - { - "regionTag": "cloudcommerceconsumerprocurement_v1_generated_ConsumerProcurementService_ListOrders_async", - "title": "ConsumerProcurementService listOrders Sample", - "origin": "API_DEFINITION", - "description": " Lists [Order][google.cloud.commerce.consumer.procurement.v1.Order] resources that the user has access to, within the scope of the parent resource.", - "canonical": true, - "file": "consumer_procurement_service.list_orders.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListOrders", - "fullName": "google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementService.ListOrders", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse", - "client": { - "shortName": "ConsumerProcurementServiceClient", - "fullName": "google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementServiceClient" - }, - "method": { - "shortName": "ListOrders", - "fullName": "google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementService.ListOrders", - "service": { - "shortName": "ConsumerProcurementService", - "fullName": "google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementService" - } - } - } - }, - { - "regionTag": "cloudcommerceconsumerprocurement_v1_generated_ConsumerProcurementService_ModifyOrder_async", - "title": "ConsumerProcurementService modifyOrder Sample", - "origin": "API_DEFINITION", - "description": " Modifies an existing [Order][google.cloud.commerce.consumer.procurement.v1.Order] resource.", - "canonical": true, - "file": "consumer_procurement_service.modify_order.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ModifyOrder", - "fullName": "google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementService.ModifyOrder", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "modifications", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "display_name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConsumerProcurementServiceClient", - "fullName": "google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementServiceClient" - }, - "method": { - "shortName": "ModifyOrder", - "fullName": "google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementService.ModifyOrder", - "service": { - "shortName": "ConsumerProcurementService", - "fullName": "google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementService" - } - } - } - }, - { - "regionTag": "cloudcommerceconsumerprocurement_v1_generated_ConsumerProcurementService_CancelOrder_async", - "title": "ConsumerProcurementService cancelOrder Sample", - "origin": "API_DEFINITION", - "description": " Cancels an existing [Order][google.cloud.commerce.consumer.procurement.v1.Order]. Every product procured in the Order will be cancelled.", - "canonical": true, - "file": "consumer_procurement_service.cancel_order.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CancelOrder", - "fullName": "google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementService.CancelOrder", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - }, - { - "name": "cancellation_policy", - "type": ".google.cloud.commerce.consumer.procurement.v1.CancelOrderRequest.CancellationPolicy" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConsumerProcurementServiceClient", - "fullName": "google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementServiceClient" - }, - "method": { - "shortName": "CancelOrder", - "fullName": "google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementService.CancelOrder", - "service": { - "shortName": "ConsumerProcurementService", - "fullName": "google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementService" - } - } - } - }, - { - "regionTag": "cloudcommerceconsumerprocurement_v1_generated_LicenseManagementService_GetLicensePool_async", - "title": "ConsumerProcurementService getLicensePool Sample", - "origin": "API_DEFINITION", - "description": " Gets the license pool.", - "canonical": true, - "file": "license_management_service.get_license_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetLicensePool", - "fullName": "google.cloud.commerce.consumer.procurement.v1.LicenseManagementService.GetLicensePool", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.commerce.consumer.procurement.v1.LicensePool", - "client": { - "shortName": "LicenseManagementServiceClient", - "fullName": "google.cloud.commerce.consumer.procurement.v1.LicenseManagementServiceClient" - }, - "method": { - "shortName": "GetLicensePool", - "fullName": "google.cloud.commerce.consumer.procurement.v1.LicenseManagementService.GetLicensePool", - "service": { - "shortName": "LicenseManagementService", - "fullName": "google.cloud.commerce.consumer.procurement.v1.LicenseManagementService" - } - } - } - }, - { - "regionTag": "cloudcommerceconsumerprocurement_v1_generated_LicenseManagementService_UpdateLicensePool_async", - "title": "ConsumerProcurementService updateLicensePool Sample", - "origin": "API_DEFINITION", - "description": " Updates the license pool if one exists for this Order.", - "canonical": true, - "file": "license_management_service.update_license_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateLicensePool", - "fullName": "google.cloud.commerce.consumer.procurement.v1.LicenseManagementService.UpdateLicensePool", - "async": true, - "parameters": [ - { - "name": "license_pool", - "type": ".google.cloud.commerce.consumer.procurement.v1.LicensePool" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.commerce.consumer.procurement.v1.LicensePool", - "client": { - "shortName": "LicenseManagementServiceClient", - "fullName": "google.cloud.commerce.consumer.procurement.v1.LicenseManagementServiceClient" - }, - "method": { - "shortName": "UpdateLicensePool", - "fullName": "google.cloud.commerce.consumer.procurement.v1.LicenseManagementService.UpdateLicensePool", - "service": { - "shortName": "LicenseManagementService", - "fullName": "google.cloud.commerce.consumer.procurement.v1.LicenseManagementService" - } - } - } - }, - { - "regionTag": "cloudcommerceconsumerprocurement_v1_generated_LicenseManagementService_Assign_async", - "title": "ConsumerProcurementService assign Sample", - "origin": "API_DEFINITION", - "description": " Assigns a license to a user.", - "canonical": true, - "file": "license_management_service.assign.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Assign", - "fullName": "google.cloud.commerce.consumer.procurement.v1.LicenseManagementService.Assign", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "usernames", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.cloud.commerce.consumer.procurement.v1.AssignResponse", - "client": { - "shortName": "LicenseManagementServiceClient", - "fullName": "google.cloud.commerce.consumer.procurement.v1.LicenseManagementServiceClient" - }, - "method": { - "shortName": "Assign", - "fullName": "google.cloud.commerce.consumer.procurement.v1.LicenseManagementService.Assign", - "service": { - "shortName": "LicenseManagementService", - "fullName": "google.cloud.commerce.consumer.procurement.v1.LicenseManagementService" - } - } - } - }, - { - "regionTag": "cloudcommerceconsumerprocurement_v1_generated_LicenseManagementService_Unassign_async", - "title": "ConsumerProcurementService unassign Sample", - "origin": "API_DEFINITION", - "description": " Unassigns a license from a user.", - "canonical": true, - "file": "license_management_service.unassign.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Unassign", - "fullName": "google.cloud.commerce.consumer.procurement.v1.LicenseManagementService.Unassign", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "usernames", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.cloud.commerce.consumer.procurement.v1.UnassignResponse", - "client": { - "shortName": "LicenseManagementServiceClient", - "fullName": "google.cloud.commerce.consumer.procurement.v1.LicenseManagementServiceClient" - }, - "method": { - "shortName": "Unassign", - "fullName": "google.cloud.commerce.consumer.procurement.v1.LicenseManagementService.Unassign", - "service": { - "shortName": "LicenseManagementService", - "fullName": "google.cloud.commerce.consumer.procurement.v1.LicenseManagementService" - } - } - } - }, - { - "regionTag": "cloudcommerceconsumerprocurement_v1_generated_LicenseManagementService_EnumerateLicensedUsers_async", - "title": "ConsumerProcurementService enumerateLicensedUsers Sample", - "origin": "API_DEFINITION", - "description": " Enumerates all users assigned a license.", - "canonical": true, - "file": "license_management_service.enumerate_licensed_users.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "EnumerateLicensedUsers", - "fullName": "google.cloud.commerce.consumer.procurement.v1.LicenseManagementService.EnumerateLicensedUsers", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.commerce.consumer.procurement.v1.EnumerateLicensedUsersResponse", - "client": { - "shortName": "LicenseManagementServiceClient", - "fullName": "google.cloud.commerce.consumer.procurement.v1.LicenseManagementServiceClient" - }, - "method": { - "shortName": "EnumerateLicensedUsers", - "fullName": "google.cloud.commerce.consumer.procurement.v1.LicenseManagementService.EnumerateLicensedUsers", - "service": { - "shortName": "LicenseManagementService", - "fullName": "google.cloud.commerce.consumer.procurement.v1.LicenseManagementService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-commerce-consumer-procurement/samples/generated/v1alpha1/snippet_metadata_google.cloud.commerce.consumer.procurement.v1alpha1.json b/packages/google-cloud-commerce-consumer-procurement/samples/generated/v1alpha1/snippet_metadata_google.cloud.commerce.consumer.procurement.v1alpha1.json deleted file mode 100644 index f138b1772757..000000000000 --- a/packages/google-cloud-commerce-consumer-procurement/samples/generated/v1alpha1/snippet_metadata_google.cloud.commerce.consumer.procurement.v1alpha1.json +++ /dev/null @@ -1,159 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-procurement", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.commerce.consumer.procurement.v1alpha1", - "version": "v1alpha1" - } - ] - }, - "snippets": [ - { - "regionTag": "cloudcommerceconsumerprocurement_v1alpha1_generated_ConsumerProcurementService_PlaceOrder_async", - "title": "ConsumerProcurementService placeOrder Sample", - "origin": "API_DEFINITION", - "description": " Creates a new [Order][google.cloud.commerce.consumer.procurement.v1alpha1.Order]. This API only supports GCP spend-based committed use discounts specified by GCP documentation. The returned long-running operation is in-progress until the backend completes the creation of the resource. Once completed, the order is in [OrderState.ORDER_STATE_ACTIVE][google.cloud.commerce.consumer.procurement.v1alpha1.OrderState.ORDER_STATE_ACTIVE]. In case of failure, the order resource will be removed.", - "canonical": true, - "file": "consumer_procurement_service.place_order.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PlaceOrder", - "fullName": "google.cloud.commerce.consumer.procurement.v1alpha1.ConsumerProcurementService.PlaceOrder", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "display_name", - "type": "TYPE_STRING" - }, - { - "name": "line_item_info", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConsumerProcurementServiceClient", - "fullName": "google.cloud.commerce.consumer.procurement.v1alpha1.ConsumerProcurementServiceClient" - }, - "method": { - "shortName": "PlaceOrder", - "fullName": "google.cloud.commerce.consumer.procurement.v1alpha1.ConsumerProcurementService.PlaceOrder", - "service": { - "shortName": "ConsumerProcurementService", - "fullName": "google.cloud.commerce.consumer.procurement.v1alpha1.ConsumerProcurementService" - } - } - } - }, - { - "regionTag": "cloudcommerceconsumerprocurement_v1alpha1_generated_ConsumerProcurementService_GetOrder_async", - "title": "ConsumerProcurementService getOrder Sample", - "origin": "API_DEFINITION", - "description": " Returns the requested [Order][google.cloud.commerce.consumer.procurement.v1alpha1.Order] resource.", - "canonical": true, - "file": "consumer_procurement_service.get_order.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetOrder", - "fullName": "google.cloud.commerce.consumer.procurement.v1alpha1.ConsumerProcurementService.GetOrder", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.commerce.consumer.procurement.v1alpha1.Order", - "client": { - "shortName": "ConsumerProcurementServiceClient", - "fullName": "google.cloud.commerce.consumer.procurement.v1alpha1.ConsumerProcurementServiceClient" - }, - "method": { - "shortName": "GetOrder", - "fullName": "google.cloud.commerce.consumer.procurement.v1alpha1.ConsumerProcurementService.GetOrder", - "service": { - "shortName": "ConsumerProcurementService", - "fullName": "google.cloud.commerce.consumer.procurement.v1alpha1.ConsumerProcurementService" - } - } - } - }, - { - "regionTag": "cloudcommerceconsumerprocurement_v1alpha1_generated_ConsumerProcurementService_ListOrders_async", - "title": "ConsumerProcurementService listOrders Sample", - "origin": "API_DEFINITION", - "description": " Lists [Order][google.cloud.commerce.consumer.procurement.v1alpha1.Order] resources that the user has access to, within the scope of the parent resource.", - "canonical": true, - "file": "consumer_procurement_service.list_orders.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListOrders", - "fullName": "google.cloud.commerce.consumer.procurement.v1alpha1.ConsumerProcurementService.ListOrders", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.commerce.consumer.procurement.v1alpha1.ListOrdersResponse", - "client": { - "shortName": "ConsumerProcurementServiceClient", - "fullName": "google.cloud.commerce.consumer.procurement.v1alpha1.ConsumerProcurementServiceClient" - }, - "method": { - "shortName": "ListOrders", - "fullName": "google.cloud.commerce.consumer.procurement.v1alpha1.ConsumerProcurementService.ListOrders", - "service": { - "shortName": "ConsumerProcurementService", - "fullName": "google.cloud.commerce.consumer.procurement.v1alpha1.ConsumerProcurementService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-compute/samples/generated/v1/snippet_metadata_google.cloud.compute.v1.json b/packages/google-cloud-compute/samples/generated/v1/snippet_metadata_google.cloud.compute.v1.json deleted file mode 100644 index 1629ccd0d5ac..000000000000 --- a/packages/google-cloud-compute/samples/generated/v1/snippet_metadata_google.cloud.compute.v1.json +++ /dev/null @@ -1,53003 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-compute", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.compute.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "compute_v1_generated_AcceleratorTypes_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of accelerator types. To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "accelerator_types.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.AcceleratorTypes.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1.AcceleratorTypeAggregatedList", - "client": { - "shortName": "AcceleratorTypesClient", - "fullName": "google.cloud.compute.v1.AcceleratorTypesClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.AcceleratorTypes.AggregatedList", - "service": { - "shortName": "AcceleratorTypes", - "fullName": "google.cloud.compute.v1.AcceleratorTypes" - } - } - } - }, - { - "regionTag": "compute_v1_generated_AcceleratorTypes_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified accelerator type.", - "canonical": true, - "file": "accelerator_types.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.AcceleratorTypes.Get", - "async": true, - "parameters": [ - { - "name": "accelerator_type", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.AcceleratorType", - "client": { - "shortName": "AcceleratorTypesClient", - "fullName": "google.cloud.compute.v1.AcceleratorTypesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.AcceleratorTypes.Get", - "service": { - "shortName": "AcceleratorTypes", - "fullName": "google.cloud.compute.v1.AcceleratorTypes" - } - } - } - }, - { - "regionTag": "compute_v1_generated_AcceleratorTypes_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of accelerator types that are available to the specified project.", - "canonical": true, - "file": "accelerator_types.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.AcceleratorTypes.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.AcceleratorTypeList", - "client": { - "shortName": "AcceleratorTypesClient", - "fullName": "google.cloud.compute.v1.AcceleratorTypesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.AcceleratorTypes.List", - "service": { - "shortName": "AcceleratorTypes", - "fullName": "google.cloud.compute.v1.AcceleratorTypes" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Addresses_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of addresses. To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "addresses.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.Addresses.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1.AddressAggregatedList", - "client": { - "shortName": "AddressesClient", - "fullName": "google.cloud.compute.v1.AddressesClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.Addresses.AggregatedList", - "service": { - "shortName": "Addresses", - "fullName": "google.cloud.compute.v1.Addresses" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Addresses_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified address resource.", - "canonical": true, - "file": "addresses.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.Addresses.Delete", - "async": true, - "parameters": [ - { - "name": "address", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "AddressesClient", - "fullName": "google.cloud.compute.v1.AddressesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.Addresses.Delete", - "service": { - "shortName": "Addresses", - "fullName": "google.cloud.compute.v1.Addresses" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Addresses_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified address resource.", - "canonical": true, - "file": "addresses.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.Addresses.Get", - "async": true, - "parameters": [ - { - "name": "address", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Address", - "client": { - "shortName": "AddressesClient", - "fullName": "google.cloud.compute.v1.AddressesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.Addresses.Get", - "service": { - "shortName": "Addresses", - "fullName": "google.cloud.compute.v1.Addresses" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Addresses_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates an address resource in the specified project by using the data included in the request.", - "canonical": true, - "file": "addresses.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.Addresses.Insert", - "async": true, - "parameters": [ - { - "name": "address_resource", - "type": ".google.cloud.compute.v1.Address" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "AddressesClient", - "fullName": "google.cloud.compute.v1.AddressesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.Addresses.Insert", - "service": { - "shortName": "Addresses", - "fullName": "google.cloud.compute.v1.Addresses" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Addresses_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of addresses contained within the specified region.", - "canonical": true, - "file": "addresses.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.Addresses.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.AddressList", - "client": { - "shortName": "AddressesClient", - "fullName": "google.cloud.compute.v1.AddressesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.Addresses.List", - "service": { - "shortName": "Addresses", - "fullName": "google.cloud.compute.v1.Addresses" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Addresses_Move_async", - "title": "AcceleratorTypes move Sample", - "origin": "API_DEFINITION", - "description": " Moves the specified address resource.", - "canonical": true, - "file": "addresses.move.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Move", - "fullName": "google.cloud.compute.v1.Addresses.Move", - "async": true, - "parameters": [ - { - "name": "address", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_addresses_move_request_resource", - "type": ".google.cloud.compute.v1.RegionAddressesMoveRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "AddressesClient", - "fullName": "google.cloud.compute.v1.AddressesClient" - }, - "method": { - "shortName": "Move", - "fullName": "google.cloud.compute.v1.Addresses.Move", - "service": { - "shortName": "Addresses", - "fullName": "google.cloud.compute.v1.Addresses" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Addresses_SetLabels_async", - "title": "AcceleratorTypes setLabels Sample", - "origin": "API_DEFINITION", - "description": " Sets the labels on an Address. To learn more about labels, read theLabeling Resources documentation.", - "canonical": true, - "file": "addresses.set_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1.Addresses.SetLabels", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_set_labels_request_resource", - "type": ".google.cloud.compute.v1.RegionSetLabelsRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "AddressesClient", - "fullName": "google.cloud.compute.v1.AddressesClient" - }, - "method": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1.Addresses.SetLabels", - "service": { - "shortName": "Addresses", - "fullName": "google.cloud.compute.v1.Addresses" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Addresses_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "addresses.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.Addresses.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", - "client": { - "shortName": "AddressesClient", - "fullName": "google.cloud.compute.v1.AddressesClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.Addresses.TestIamPermissions", - "service": { - "shortName": "Addresses", - "fullName": "google.cloud.compute.v1.Addresses" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Advice_CalendarMode_async", - "title": "AcceleratorTypes calendarMode Sample", - "origin": "API_DEFINITION", - "description": " Advise how, where and when to create the requested amount of instances with specified accelerators, within the specified time and location limits. The method recommends creating future reservations for the requested resources.", - "canonical": true, - "file": "advice.calendar_mode.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CalendarMode", - "fullName": "google.cloud.compute.v1.Advice.CalendarMode", - "async": true, - "parameters": [ - { - "name": "calendar_mode_advice_request_resource", - "type": ".google.cloud.compute.v1.CalendarModeAdviceRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.CalendarModeAdviceResponse", - "client": { - "shortName": "AdviceClient", - "fullName": "google.cloud.compute.v1.AdviceClient" - }, - "method": { - "shortName": "CalendarMode", - "fullName": "google.cloud.compute.v1.Advice.CalendarMode", - "service": { - "shortName": "Advice", - "fullName": "google.cloud.compute.v1.Advice" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Autoscalers_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of autoscalers. To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "autoscalers.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.Autoscalers.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1.AutoscalerAggregatedList", - "client": { - "shortName": "AutoscalersClient", - "fullName": "google.cloud.compute.v1.AutoscalersClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.Autoscalers.AggregatedList", - "service": { - "shortName": "Autoscalers", - "fullName": "google.cloud.compute.v1.Autoscalers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Autoscalers_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified autoscaler.", - "canonical": true, - "file": "autoscalers.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.Autoscalers.Delete", - "async": true, - "parameters": [ - { - "name": "autoscaler", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "AutoscalersClient", - "fullName": "google.cloud.compute.v1.AutoscalersClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.Autoscalers.Delete", - "service": { - "shortName": "Autoscalers", - "fullName": "google.cloud.compute.v1.Autoscalers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Autoscalers_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified autoscaler resource.", - "canonical": true, - "file": "autoscalers.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.Autoscalers.Get", - "async": true, - "parameters": [ - { - "name": "autoscaler", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Autoscaler", - "client": { - "shortName": "AutoscalersClient", - "fullName": "google.cloud.compute.v1.AutoscalersClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.Autoscalers.Get", - "service": { - "shortName": "Autoscalers", - "fullName": "google.cloud.compute.v1.Autoscalers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Autoscalers_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates an autoscaler in the specified project using the data included in the request.", - "canonical": true, - "file": "autoscalers.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.Autoscalers.Insert", - "async": true, - "parameters": [ - { - "name": "autoscaler_resource", - "type": ".google.cloud.compute.v1.Autoscaler" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "AutoscalersClient", - "fullName": "google.cloud.compute.v1.AutoscalersClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.Autoscalers.Insert", - "service": { - "shortName": "Autoscalers", - "fullName": "google.cloud.compute.v1.Autoscalers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Autoscalers_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of autoscalers contained within the specified zone.", - "canonical": true, - "file": "autoscalers.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.Autoscalers.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.AutoscalerList", - "client": { - "shortName": "AutoscalersClient", - "fullName": "google.cloud.compute.v1.AutoscalersClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.Autoscalers.List", - "service": { - "shortName": "Autoscalers", - "fullName": "google.cloud.compute.v1.Autoscalers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Autoscalers_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Updates an autoscaler in the specified project using the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.", - "canonical": true, - "file": "autoscalers.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.Autoscalers.Patch", - "async": true, - "parameters": [ - { - "name": "autoscaler", - "type": "TYPE_STRING" - }, - { - "name": "autoscaler_resource", - "type": ".google.cloud.compute.v1.Autoscaler" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "AutoscalersClient", - "fullName": "google.cloud.compute.v1.AutoscalersClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.Autoscalers.Patch", - "service": { - "shortName": "Autoscalers", - "fullName": "google.cloud.compute.v1.Autoscalers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Autoscalers_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "autoscalers.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.Autoscalers.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1.TestPermissionsRequest" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", - "client": { - "shortName": "AutoscalersClient", - "fullName": "google.cloud.compute.v1.AutoscalersClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.Autoscalers.TestIamPermissions", - "service": { - "shortName": "Autoscalers", - "fullName": "google.cloud.compute.v1.Autoscalers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Autoscalers_Update_async", - "title": "AcceleratorTypes update Sample", - "origin": "API_DEFINITION", - "description": " Updates an autoscaler in the specified project using the data included in the request.", - "canonical": true, - "file": "autoscalers.update.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1.Autoscalers.Update", - "async": true, - "parameters": [ - { - "name": "autoscaler", - "type": "TYPE_STRING" - }, - { - "name": "autoscaler_resource", - "type": ".google.cloud.compute.v1.Autoscaler" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "AutoscalersClient", - "fullName": "google.cloud.compute.v1.AutoscalersClient" - }, - "method": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1.Autoscalers.Update", - "service": { - "shortName": "Autoscalers", - "fullName": "google.cloud.compute.v1.Autoscalers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_BackendBuckets_AddSignedUrlKey_async", - "title": "AcceleratorTypes addSignedUrlKey Sample", - "origin": "API_DEFINITION", - "description": " Adds a key for validating requests with signed URLs for this backend bucket.", - "canonical": true, - "file": "backend_buckets.add_signed_url_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddSignedUrlKey", - "fullName": "google.cloud.compute.v1.BackendBuckets.AddSignedUrlKey", - "async": true, - "parameters": [ - { - "name": "backend_bucket", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "signed_url_key_resource", - "type": ".google.cloud.compute.v1.SignedUrlKey" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "BackendBucketsClient", - "fullName": "google.cloud.compute.v1.BackendBucketsClient" - }, - "method": { - "shortName": "AddSignedUrlKey", - "fullName": "google.cloud.compute.v1.BackendBuckets.AddSignedUrlKey", - "service": { - "shortName": "BackendBuckets", - "fullName": "google.cloud.compute.v1.BackendBuckets" - } - } - } - }, - { - "regionTag": "compute_v1_generated_BackendBuckets_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of all BackendBucket resources, regional and global, available to the specified project. To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "backend_buckets.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.BackendBuckets.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1.BackendBucketAggregatedList", - "client": { - "shortName": "BackendBucketsClient", - "fullName": "google.cloud.compute.v1.BackendBucketsClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.BackendBuckets.AggregatedList", - "service": { - "shortName": "BackendBuckets", - "fullName": "google.cloud.compute.v1.BackendBuckets" - } - } - } - }, - { - "regionTag": "compute_v1_generated_BackendBuckets_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified BackendBucket resource.", - "canonical": true, - "file": "backend_buckets.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.BackendBuckets.Delete", - "async": true, - "parameters": [ - { - "name": "backend_bucket", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "BackendBucketsClient", - "fullName": "google.cloud.compute.v1.BackendBucketsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.BackendBuckets.Delete", - "service": { - "shortName": "BackendBuckets", - "fullName": "google.cloud.compute.v1.BackendBuckets" - } - } - } - }, - { - "regionTag": "compute_v1_generated_BackendBuckets_DeleteSignedUrlKey_async", - "title": "AcceleratorTypes deleteSignedUrlKey Sample", - "origin": "API_DEFINITION", - "description": " Deletes a key for validating requests with signed URLs for this backend bucket.", - "canonical": true, - "file": "backend_buckets.delete_signed_url_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSignedUrlKey", - "fullName": "google.cloud.compute.v1.BackendBuckets.DeleteSignedUrlKey", - "async": true, - "parameters": [ - { - "name": "backend_bucket", - "type": "TYPE_STRING" - }, - { - "name": "key_name", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "BackendBucketsClient", - "fullName": "google.cloud.compute.v1.BackendBucketsClient" - }, - "method": { - "shortName": "DeleteSignedUrlKey", - "fullName": "google.cloud.compute.v1.BackendBuckets.DeleteSignedUrlKey", - "service": { - "shortName": "BackendBuckets", - "fullName": "google.cloud.compute.v1.BackendBuckets" - } - } - } - }, - { - "regionTag": "compute_v1_generated_BackendBuckets_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified BackendBucket resource.", - "canonical": true, - "file": "backend_buckets.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.BackendBuckets.Get", - "async": true, - "parameters": [ - { - "name": "backend_bucket", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.BackendBucket", - "client": { - "shortName": "BackendBucketsClient", - "fullName": "google.cloud.compute.v1.BackendBucketsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.BackendBuckets.Get", - "service": { - "shortName": "BackendBuckets", - "fullName": "google.cloud.compute.v1.BackendBuckets" - } - } - } - }, - { - "regionTag": "compute_v1_generated_BackendBuckets_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "backend_buckets.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.BackendBuckets.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "BackendBucketsClient", - "fullName": "google.cloud.compute.v1.BackendBucketsClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.BackendBuckets.GetIamPolicy", - "service": { - "shortName": "BackendBuckets", - "fullName": "google.cloud.compute.v1.BackendBuckets" - } - } - } - }, - { - "regionTag": "compute_v1_generated_BackendBuckets_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a BackendBucket resource in the specified project using the data included in the request.", - "canonical": true, - "file": "backend_buckets.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.BackendBuckets.Insert", - "async": true, - "parameters": [ - { - "name": "backend_bucket_resource", - "type": ".google.cloud.compute.v1.BackendBucket" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "BackendBucketsClient", - "fullName": "google.cloud.compute.v1.BackendBucketsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.BackendBuckets.Insert", - "service": { - "shortName": "BackendBuckets", - "fullName": "google.cloud.compute.v1.BackendBuckets" - } - } - } - }, - { - "regionTag": "compute_v1_generated_BackendBuckets_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of BackendBucket resources available to the specified project.", - "canonical": true, - "file": "backend_buckets.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.BackendBuckets.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.BackendBucketList", - "client": { - "shortName": "BackendBucketsClient", - "fullName": "google.cloud.compute.v1.BackendBucketsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.BackendBuckets.List", - "service": { - "shortName": "BackendBuckets", - "fullName": "google.cloud.compute.v1.BackendBuckets" - } - } - } - }, - { - "regionTag": "compute_v1_generated_BackendBuckets_ListUsable_async", - "title": "AcceleratorTypes listUsable Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of all usable backend buckets in the specified project.", - "canonical": true, - "file": "backend_buckets.list_usable.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListUsable", - "fullName": "google.cloud.compute.v1.BackendBuckets.ListUsable", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.BackendBucketListUsable", - "client": { - "shortName": "BackendBucketsClient", - "fullName": "google.cloud.compute.v1.BackendBucketsClient" - }, - "method": { - "shortName": "ListUsable", - "fullName": "google.cloud.compute.v1.BackendBuckets.ListUsable", - "service": { - "shortName": "BackendBuckets", - "fullName": "google.cloud.compute.v1.BackendBuckets" - } - } - } - }, - { - "regionTag": "compute_v1_generated_BackendBuckets_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified BackendBucket resource with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.", - "canonical": true, - "file": "backend_buckets.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.BackendBuckets.Patch", - "async": true, - "parameters": [ - { - "name": "backend_bucket", - "type": "TYPE_STRING" - }, - { - "name": "backend_bucket_resource", - "type": ".google.cloud.compute.v1.BackendBucket" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "BackendBucketsClient", - "fullName": "google.cloud.compute.v1.BackendBucketsClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.BackendBuckets.Patch", - "service": { - "shortName": "BackendBuckets", - "fullName": "google.cloud.compute.v1.BackendBuckets" - } - } - } - }, - { - "regionTag": "compute_v1_generated_BackendBuckets_SetEdgeSecurityPolicy_async", - "title": "AcceleratorTypes setEdgeSecurityPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the edge security policy for the specified backend bucket.", - "canonical": true, - "file": "backend_buckets.set_edge_security_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetEdgeSecurityPolicy", - "fullName": "google.cloud.compute.v1.BackendBuckets.SetEdgeSecurityPolicy", - "async": true, - "parameters": [ - { - "name": "backend_bucket", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "security_policy_reference_resource", - "type": ".google.cloud.compute.v1.SecurityPolicyReference" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "BackendBucketsClient", - "fullName": "google.cloud.compute.v1.BackendBucketsClient" - }, - "method": { - "shortName": "SetEdgeSecurityPolicy", - "fullName": "google.cloud.compute.v1.BackendBuckets.SetEdgeSecurityPolicy", - "service": { - "shortName": "BackendBuckets", - "fullName": "google.cloud.compute.v1.BackendBuckets" - } - } - } - }, - { - "regionTag": "compute_v1_generated_BackendBuckets_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "backend_buckets.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.BackendBuckets.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "global_set_policy_request_resource", - "type": ".google.cloud.compute.v1.GlobalSetPolicyRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "BackendBucketsClient", - "fullName": "google.cloud.compute.v1.BackendBucketsClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.BackendBuckets.SetIamPolicy", - "service": { - "shortName": "BackendBuckets", - "fullName": "google.cloud.compute.v1.BackendBuckets" - } - } - } - }, - { - "regionTag": "compute_v1_generated_BackendBuckets_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "backend_buckets.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.BackendBuckets.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", - "client": { - "shortName": "BackendBucketsClient", - "fullName": "google.cloud.compute.v1.BackendBucketsClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.BackendBuckets.TestIamPermissions", - "service": { - "shortName": "BackendBuckets", - "fullName": "google.cloud.compute.v1.BackendBuckets" - } - } - } - }, - { - "regionTag": "compute_v1_generated_BackendBuckets_Update_async", - "title": "AcceleratorTypes update Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified BackendBucket resource with the data included in the request.", - "canonical": true, - "file": "backend_buckets.update.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1.BackendBuckets.Update", - "async": true, - "parameters": [ - { - "name": "backend_bucket", - "type": "TYPE_STRING" - }, - { - "name": "backend_bucket_resource", - "type": ".google.cloud.compute.v1.BackendBucket" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "BackendBucketsClient", - "fullName": "google.cloud.compute.v1.BackendBucketsClient" - }, - "method": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1.BackendBuckets.Update", - "service": { - "shortName": "BackendBuckets", - "fullName": "google.cloud.compute.v1.BackendBuckets" - } - } - } - }, - { - "regionTag": "compute_v1_generated_BackendServices_AddSignedUrlKey_async", - "title": "AcceleratorTypes addSignedUrlKey Sample", - "origin": "API_DEFINITION", - "description": " Adds a key for validating requests with signed URLs for this backend service.", - "canonical": true, - "file": "backend_services.add_signed_url_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddSignedUrlKey", - "fullName": "google.cloud.compute.v1.BackendServices.AddSignedUrlKey", - "async": true, - "parameters": [ - { - "name": "backend_service", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "signed_url_key_resource", - "type": ".google.cloud.compute.v1.SignedUrlKey" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "BackendServicesClient", - "fullName": "google.cloud.compute.v1.BackendServicesClient" - }, - "method": { - "shortName": "AddSignedUrlKey", - "fullName": "google.cloud.compute.v1.BackendServices.AddSignedUrlKey", - "service": { - "shortName": "BackendServices", - "fullName": "google.cloud.compute.v1.BackendServices" - } - } - } - }, - { - "regionTag": "compute_v1_generated_BackendServices_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of all BackendService resources, regional and global, available to the specified project. To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "backend_services.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.BackendServices.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1.BackendServiceAggregatedList", - "client": { - "shortName": "BackendServicesClient", - "fullName": "google.cloud.compute.v1.BackendServicesClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.BackendServices.AggregatedList", - "service": { - "shortName": "BackendServices", - "fullName": "google.cloud.compute.v1.BackendServices" - } - } - } - }, - { - "regionTag": "compute_v1_generated_BackendServices_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified BackendService resource.", - "canonical": true, - "file": "backend_services.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.BackendServices.Delete", - "async": true, - "parameters": [ - { - "name": "backend_service", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "BackendServicesClient", - "fullName": "google.cloud.compute.v1.BackendServicesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.BackendServices.Delete", - "service": { - "shortName": "BackendServices", - "fullName": "google.cloud.compute.v1.BackendServices" - } - } - } - }, - { - "regionTag": "compute_v1_generated_BackendServices_DeleteSignedUrlKey_async", - "title": "AcceleratorTypes deleteSignedUrlKey Sample", - "origin": "API_DEFINITION", - "description": " Deletes a key for validating requests with signed URLs for this backend service.", - "canonical": true, - "file": "backend_services.delete_signed_url_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSignedUrlKey", - "fullName": "google.cloud.compute.v1.BackendServices.DeleteSignedUrlKey", - "async": true, - "parameters": [ - { - "name": "backend_service", - "type": "TYPE_STRING" - }, - { - "name": "key_name", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "BackendServicesClient", - "fullName": "google.cloud.compute.v1.BackendServicesClient" - }, - "method": { - "shortName": "DeleteSignedUrlKey", - "fullName": "google.cloud.compute.v1.BackendServices.DeleteSignedUrlKey", - "service": { - "shortName": "BackendServices", - "fullName": "google.cloud.compute.v1.BackendServices" - } - } - } - }, - { - "regionTag": "compute_v1_generated_BackendServices_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified BackendService resource.", - "canonical": true, - "file": "backend_services.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.BackendServices.Get", - "async": true, - "parameters": [ - { - "name": "backend_service", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.BackendService", - "client": { - "shortName": "BackendServicesClient", - "fullName": "google.cloud.compute.v1.BackendServicesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.BackendServices.Get", - "service": { - "shortName": "BackendServices", - "fullName": "google.cloud.compute.v1.BackendServices" - } - } - } - }, - { - "regionTag": "compute_v1_generated_BackendServices_GetEffectiveSecurityPolicies_async", - "title": "AcceleratorTypes getEffectiveSecurityPolicies Sample", - "origin": "API_DEFINITION", - "description": " Returns effective security policies applied to this backend service.", - "canonical": true, - "file": "backend_services.get_effective_security_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEffectiveSecurityPolicies", - "fullName": "google.cloud.compute.v1.BackendServices.GetEffectiveSecurityPolicies", - "async": true, - "parameters": [ - { - "name": "backend_service", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.GetEffectiveSecurityPoliciesBackendServiceResponse", - "client": { - "shortName": "BackendServicesClient", - "fullName": "google.cloud.compute.v1.BackendServicesClient" - }, - "method": { - "shortName": "GetEffectiveSecurityPolicies", - "fullName": "google.cloud.compute.v1.BackendServices.GetEffectiveSecurityPolicies", - "service": { - "shortName": "BackendServices", - "fullName": "google.cloud.compute.v1.BackendServices" - } - } - } - }, - { - "regionTag": "compute_v1_generated_BackendServices_GetHealth_async", - "title": "AcceleratorTypes getHealth Sample", - "origin": "API_DEFINITION", - "description": " Gets the most recent health check results for this BackendService. Example request body: { \"group\": \"/zones/us-east1-b/instanceGroups/lb-backend-example\" }", - "canonical": true, - "file": "backend_services.get_health.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetHealth", - "fullName": "google.cloud.compute.v1.BackendServices.GetHealth", - "async": true, - "parameters": [ - { - "name": "backend_service", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource_group_reference_resource", - "type": ".google.cloud.compute.v1.ResourceGroupReference" - } - ], - "resultType": ".google.cloud.compute.v1.BackendServiceGroupHealth", - "client": { - "shortName": "BackendServicesClient", - "fullName": "google.cloud.compute.v1.BackendServicesClient" - }, - "method": { - "shortName": "GetHealth", - "fullName": "google.cloud.compute.v1.BackendServices.GetHealth", - "service": { - "shortName": "BackendServices", - "fullName": "google.cloud.compute.v1.BackendServices" - } - } - } - }, - { - "regionTag": "compute_v1_generated_BackendServices_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "backend_services.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.BackendServices.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "BackendServicesClient", - "fullName": "google.cloud.compute.v1.BackendServicesClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.BackendServices.GetIamPolicy", - "service": { - "shortName": "BackendServices", - "fullName": "google.cloud.compute.v1.BackendServices" - } - } - } - }, - { - "regionTag": "compute_v1_generated_BackendServices_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a BackendService resource in the specified project using the data included in the request. For more information, see Backend services overview.", - "canonical": true, - "file": "backend_services.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.BackendServices.Insert", - "async": true, - "parameters": [ - { - "name": "backend_service_resource", - "type": ".google.cloud.compute.v1.BackendService" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "BackendServicesClient", - "fullName": "google.cloud.compute.v1.BackendServicesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.BackendServices.Insert", - "service": { - "shortName": "BackendServices", - "fullName": "google.cloud.compute.v1.BackendServices" - } - } - } - }, - { - "regionTag": "compute_v1_generated_BackendServices_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of BackendService resources available to the specified project.", - "canonical": true, - "file": "backend_services.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.BackendServices.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.BackendServiceList", - "client": { - "shortName": "BackendServicesClient", - "fullName": "google.cloud.compute.v1.BackendServicesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.BackendServices.List", - "service": { - "shortName": "BackendServices", - "fullName": "google.cloud.compute.v1.BackendServices" - } - } - } - }, - { - "regionTag": "compute_v1_generated_BackendServices_ListUsable_async", - "title": "AcceleratorTypes listUsable Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of all usable backend services in the specified project.", - "canonical": true, - "file": "backend_services.list_usable.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListUsable", - "fullName": "google.cloud.compute.v1.BackendServices.ListUsable", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.BackendServiceListUsable", - "client": { - "shortName": "BackendServicesClient", - "fullName": "google.cloud.compute.v1.BackendServicesClient" - }, - "method": { - "shortName": "ListUsable", - "fullName": "google.cloud.compute.v1.BackendServices.ListUsable", - "service": { - "shortName": "BackendServices", - "fullName": "google.cloud.compute.v1.BackendServices" - } - } - } - }, - { - "regionTag": "compute_v1_generated_BackendServices_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patches the specified BackendService resource with the data included in the request. For more information, see Backend services overview. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.", - "canonical": true, - "file": "backend_services.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.BackendServices.Patch", - "async": true, - "parameters": [ - { - "name": "backend_service", - "type": "TYPE_STRING" - }, - { - "name": "backend_service_resource", - "type": ".google.cloud.compute.v1.BackendService" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "BackendServicesClient", - "fullName": "google.cloud.compute.v1.BackendServicesClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.BackendServices.Patch", - "service": { - "shortName": "BackendServices", - "fullName": "google.cloud.compute.v1.BackendServices" - } - } - } - }, - { - "regionTag": "compute_v1_generated_BackendServices_SetEdgeSecurityPolicy_async", - "title": "AcceleratorTypes setEdgeSecurityPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the edge security policy for the specified backend service.", - "canonical": true, - "file": "backend_services.set_edge_security_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetEdgeSecurityPolicy", - "fullName": "google.cloud.compute.v1.BackendServices.SetEdgeSecurityPolicy", - "async": true, - "parameters": [ - { - "name": "backend_service", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "security_policy_reference_resource", - "type": ".google.cloud.compute.v1.SecurityPolicyReference" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "BackendServicesClient", - "fullName": "google.cloud.compute.v1.BackendServicesClient" - }, - "method": { - "shortName": "SetEdgeSecurityPolicy", - "fullName": "google.cloud.compute.v1.BackendServices.SetEdgeSecurityPolicy", - "service": { - "shortName": "BackendServices", - "fullName": "google.cloud.compute.v1.BackendServices" - } - } - } - }, - { - "regionTag": "compute_v1_generated_BackendServices_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "backend_services.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.BackendServices.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "global_set_policy_request_resource", - "type": ".google.cloud.compute.v1.GlobalSetPolicyRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "BackendServicesClient", - "fullName": "google.cloud.compute.v1.BackendServicesClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.BackendServices.SetIamPolicy", - "service": { - "shortName": "BackendServices", - "fullName": "google.cloud.compute.v1.BackendServices" - } - } - } - }, - { - "regionTag": "compute_v1_generated_BackendServices_SetSecurityPolicy_async", - "title": "AcceleratorTypes setSecurityPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the Google Cloud Armor security policy for the specified backend service. For more information, seeGoogle Cloud Armor Overview", - "canonical": true, - "file": "backend_services.set_security_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetSecurityPolicy", - "fullName": "google.cloud.compute.v1.BackendServices.SetSecurityPolicy", - "async": true, - "parameters": [ - { - "name": "backend_service", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "security_policy_reference_resource", - "type": ".google.cloud.compute.v1.SecurityPolicyReference" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "BackendServicesClient", - "fullName": "google.cloud.compute.v1.BackendServicesClient" - }, - "method": { - "shortName": "SetSecurityPolicy", - "fullName": "google.cloud.compute.v1.BackendServices.SetSecurityPolicy", - "service": { - "shortName": "BackendServices", - "fullName": "google.cloud.compute.v1.BackendServices" - } - } - } - }, - { - "regionTag": "compute_v1_generated_BackendServices_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "backend_services.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.BackendServices.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", - "client": { - "shortName": "BackendServicesClient", - "fullName": "google.cloud.compute.v1.BackendServicesClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.BackendServices.TestIamPermissions", - "service": { - "shortName": "BackendServices", - "fullName": "google.cloud.compute.v1.BackendServices" - } - } - } - }, - { - "regionTag": "compute_v1_generated_BackendServices_Update_async", - "title": "AcceleratorTypes update Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified BackendService resource with the data included in the request. For more information, seeBackend services overview.", - "canonical": true, - "file": "backend_services.update.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1.BackendServices.Update", - "async": true, - "parameters": [ - { - "name": "backend_service", - "type": "TYPE_STRING" - }, - { - "name": "backend_service_resource", - "type": ".google.cloud.compute.v1.BackendService" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "BackendServicesClient", - "fullName": "google.cloud.compute.v1.BackendServicesClient" - }, - "method": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1.BackendServices.Update", - "service": { - "shortName": "BackendServices", - "fullName": "google.cloud.compute.v1.BackendServices" - } - } - } - }, - { - "regionTag": "compute_v1_generated_CrossSiteNetworks_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified cross-site network in the given scope.", - "canonical": true, - "file": "cross_site_networks.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.CrossSiteNetworks.Delete", - "async": true, - "parameters": [ - { - "name": "cross_site_network", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "CrossSiteNetworksClient", - "fullName": "google.cloud.compute.v1.CrossSiteNetworksClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.CrossSiteNetworks.Delete", - "service": { - "shortName": "CrossSiteNetworks", - "fullName": "google.cloud.compute.v1.CrossSiteNetworks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_CrossSiteNetworks_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified cross-site network in the given scope.", - "canonical": true, - "file": "cross_site_networks.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.CrossSiteNetworks.Get", - "async": true, - "parameters": [ - { - "name": "cross_site_network", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.CrossSiteNetwork", - "client": { - "shortName": "CrossSiteNetworksClient", - "fullName": "google.cloud.compute.v1.CrossSiteNetworksClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.CrossSiteNetworks.Get", - "service": { - "shortName": "CrossSiteNetworks", - "fullName": "google.cloud.compute.v1.CrossSiteNetworks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_CrossSiteNetworks_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a cross-site network in the specified project in the given scope using the parameters that are included in the request.", - "canonical": true, - "file": "cross_site_networks.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.CrossSiteNetworks.Insert", - "async": true, - "parameters": [ - { - "name": "cross_site_network_resource", - "type": ".google.cloud.compute.v1.CrossSiteNetwork" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "CrossSiteNetworksClient", - "fullName": "google.cloud.compute.v1.CrossSiteNetworksClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.CrossSiteNetworks.Insert", - "service": { - "shortName": "CrossSiteNetworks", - "fullName": "google.cloud.compute.v1.CrossSiteNetworks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_CrossSiteNetworks_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Lists the cross-site networks for a project in the given scope.", - "canonical": true, - "file": "cross_site_networks.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.CrossSiteNetworks.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.CrossSiteNetworkList", - "client": { - "shortName": "CrossSiteNetworksClient", - "fullName": "google.cloud.compute.v1.CrossSiteNetworksClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.CrossSiteNetworks.List", - "service": { - "shortName": "CrossSiteNetworks", - "fullName": "google.cloud.compute.v1.CrossSiteNetworks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_CrossSiteNetworks_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified cross-site network with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.", - "canonical": true, - "file": "cross_site_networks.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.CrossSiteNetworks.Patch", - "async": true, - "parameters": [ - { - "name": "cross_site_network", - "type": "TYPE_STRING" - }, - { - "name": "cross_site_network_resource", - "type": ".google.cloud.compute.v1.CrossSiteNetwork" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "CrossSiteNetworksClient", - "fullName": "google.cloud.compute.v1.CrossSiteNetworksClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.CrossSiteNetworks.Patch", - "service": { - "shortName": "CrossSiteNetworks", - "fullName": "google.cloud.compute.v1.CrossSiteNetworks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Disks_AddResourcePolicies_async", - "title": "AcceleratorTypes addResourcePolicies Sample", - "origin": "API_DEFINITION", - "description": " Adds existing resource policies to a disk. You can only add one policy which will be applied to this disk for scheduling snapshot creation.", - "canonical": true, - "file": "disks.add_resource_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddResourcePolicies", - "fullName": "google.cloud.compute.v1.Disks.AddResourcePolicies", - "async": true, - "parameters": [ - { - "name": "disk", - "type": "TYPE_STRING" - }, - { - "name": "disks_add_resource_policies_request_resource", - "type": ".google.cloud.compute.v1.DisksAddResourcePoliciesRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "DisksClient", - "fullName": "google.cloud.compute.v1.DisksClient" - }, - "method": { - "shortName": "AddResourcePolicies", - "fullName": "google.cloud.compute.v1.Disks.AddResourcePolicies", - "service": { - "shortName": "Disks", - "fullName": "google.cloud.compute.v1.Disks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Disks_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of persistent disks. To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "disks.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.Disks.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1.DiskAggregatedList", - "client": { - "shortName": "DisksClient", - "fullName": "google.cloud.compute.v1.DisksClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.Disks.AggregatedList", - "service": { - "shortName": "Disks", - "fullName": "google.cloud.compute.v1.Disks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Disks_BulkInsert_async", - "title": "AcceleratorTypes bulkInsert Sample", - "origin": "API_DEFINITION", - "description": " Bulk create a set of disks.", - "canonical": true, - "file": "disks.bulk_insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BulkInsert", - "fullName": "google.cloud.compute.v1.Disks.BulkInsert", - "async": true, - "parameters": [ - { - "name": "bulk_insert_disk_resource_resource", - "type": ".google.cloud.compute.v1.BulkInsertDiskResource" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "DisksClient", - "fullName": "google.cloud.compute.v1.DisksClient" - }, - "method": { - "shortName": "BulkInsert", - "fullName": "google.cloud.compute.v1.Disks.BulkInsert", - "service": { - "shortName": "Disks", - "fullName": "google.cloud.compute.v1.Disks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Disks_BulkSetLabels_async", - "title": "AcceleratorTypes bulkSetLabels Sample", - "origin": "API_DEFINITION", - "description": " Sets the labels on many disks at once. To learn more about labels, read theLabeling Resources documentation.", - "canonical": true, - "file": "disks.bulk_set_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BulkSetLabels", - "fullName": "google.cloud.compute.v1.Disks.BulkSetLabels", - "async": true, - "parameters": [ - { - "name": "bulk_zone_set_labels_request_resource", - "type": ".google.cloud.compute.v1.BulkZoneSetLabelsRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "DisksClient", - "fullName": "google.cloud.compute.v1.DisksClient" - }, - "method": { - "shortName": "BulkSetLabels", - "fullName": "google.cloud.compute.v1.Disks.BulkSetLabels", - "service": { - "shortName": "Disks", - "fullName": "google.cloud.compute.v1.Disks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Disks_CreateSnapshot_async", - "title": "AcceleratorTypes createSnapshot Sample", - "origin": "API_DEFINITION", - "description": " Creates a snapshot of a specified persistent disk. For regular snapshot creation, consider using snapshots.insert instead, as that method supports more features, such as creating snapshots in a project different from the source disk project.", - "canonical": true, - "file": "disks.create_snapshot.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSnapshot", - "fullName": "google.cloud.compute.v1.Disks.CreateSnapshot", - "async": true, - "parameters": [ - { - "name": "disk", - "type": "TYPE_STRING" - }, - { - "name": "guest_flush", - "type": "TYPE_BOOL" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "snapshot_resource", - "type": ".google.cloud.compute.v1.Snapshot" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "DisksClient", - "fullName": "google.cloud.compute.v1.DisksClient" - }, - "method": { - "shortName": "CreateSnapshot", - "fullName": "google.cloud.compute.v1.Disks.CreateSnapshot", - "service": { - "shortName": "Disks", - "fullName": "google.cloud.compute.v1.Disks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Disks_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified persistent disk. Deleting a disk removes its data permanently and is irreversible. However, deleting a disk does not delete any snapshots previously made from the disk. You must separatelydelete snapshots.", - "canonical": true, - "file": "disks.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.Disks.Delete", - "async": true, - "parameters": [ - { - "name": "disk", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "DisksClient", - "fullName": "google.cloud.compute.v1.DisksClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.Disks.Delete", - "service": { - "shortName": "Disks", - "fullName": "google.cloud.compute.v1.Disks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Disks_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified persistent disk.", - "canonical": true, - "file": "disks.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.Disks.Get", - "async": true, - "parameters": [ - { - "name": "disk", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Disk", - "client": { - "shortName": "DisksClient", - "fullName": "google.cloud.compute.v1.DisksClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.Disks.Get", - "service": { - "shortName": "Disks", - "fullName": "google.cloud.compute.v1.Disks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Disks_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "disks.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.Disks.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "DisksClient", - "fullName": "google.cloud.compute.v1.DisksClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.Disks.GetIamPolicy", - "service": { - "shortName": "Disks", - "fullName": "google.cloud.compute.v1.Disks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Disks_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a persistent disk in the specified project using the data in the request. You can create a disk from a source (sourceImage, sourceSnapshot, orsourceDisk) or create an empty 500 GB data disk by omitting all properties. You can also create a disk that is larger than the default size by specifying the sizeGb property.", - "canonical": true, - "file": "disks.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.Disks.Insert", - "async": true, - "parameters": [ - { - "name": "disk_resource", - "type": ".google.cloud.compute.v1.Disk" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "source_image", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "DisksClient", - "fullName": "google.cloud.compute.v1.DisksClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.Disks.Insert", - "service": { - "shortName": "Disks", - "fullName": "google.cloud.compute.v1.Disks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Disks_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of persistent disks contained within the specified zone.", - "canonical": true, - "file": "disks.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.Disks.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.DiskList", - "client": { - "shortName": "DisksClient", - "fullName": "google.cloud.compute.v1.DisksClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.Disks.List", - "service": { - "shortName": "Disks", - "fullName": "google.cloud.compute.v1.Disks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Disks_RemoveResourcePolicies_async", - "title": "AcceleratorTypes removeResourcePolicies Sample", - "origin": "API_DEFINITION", - "description": " Removes resource policies from a disk.", - "canonical": true, - "file": "disks.remove_resource_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveResourcePolicies", - "fullName": "google.cloud.compute.v1.Disks.RemoveResourcePolicies", - "async": true, - "parameters": [ - { - "name": "disk", - "type": "TYPE_STRING" - }, - { - "name": "disks_remove_resource_policies_request_resource", - "type": ".google.cloud.compute.v1.DisksRemoveResourcePoliciesRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "DisksClient", - "fullName": "google.cloud.compute.v1.DisksClient" - }, - "method": { - "shortName": "RemoveResourcePolicies", - "fullName": "google.cloud.compute.v1.Disks.RemoveResourcePolicies", - "service": { - "shortName": "Disks", - "fullName": "google.cloud.compute.v1.Disks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Disks_Resize_async", - "title": "AcceleratorTypes resize Sample", - "origin": "API_DEFINITION", - "description": " Resizes the specified persistent disk. You can only increase the size of the disk.", - "canonical": true, - "file": "disks.resize.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Resize", - "fullName": "google.cloud.compute.v1.Disks.Resize", - "async": true, - "parameters": [ - { - "name": "disk", - "type": "TYPE_STRING" - }, - { - "name": "disks_resize_request_resource", - "type": ".google.cloud.compute.v1.DisksResizeRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "DisksClient", - "fullName": "google.cloud.compute.v1.DisksClient" - }, - "method": { - "shortName": "Resize", - "fullName": "google.cloud.compute.v1.Disks.Resize", - "service": { - "shortName": "Disks", - "fullName": "google.cloud.compute.v1.Disks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Disks_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "disks.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.Disks.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "zone_set_policy_request_resource", - "type": ".google.cloud.compute.v1.ZoneSetPolicyRequest" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "DisksClient", - "fullName": "google.cloud.compute.v1.DisksClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.Disks.SetIamPolicy", - "service": { - "shortName": "Disks", - "fullName": "google.cloud.compute.v1.Disks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Disks_SetLabels_async", - "title": "AcceleratorTypes setLabels Sample", - "origin": "API_DEFINITION", - "description": " Sets the labels on a disk. To learn more about labels, read theLabeling Resources documentation.", - "canonical": true, - "file": "disks.set_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1.Disks.SetLabels", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "zone_set_labels_request_resource", - "type": ".google.cloud.compute.v1.ZoneSetLabelsRequest" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "DisksClient", - "fullName": "google.cloud.compute.v1.DisksClient" - }, - "method": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1.Disks.SetLabels", - "service": { - "shortName": "Disks", - "fullName": "google.cloud.compute.v1.Disks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Disks_StartAsyncReplication_async", - "title": "AcceleratorTypes startAsyncReplication Sample", - "origin": "API_DEFINITION", - "description": " Starts asynchronous replication. Must be invoked on the primary disk.", - "canonical": true, - "file": "disks.start_async_replication.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StartAsyncReplication", - "fullName": "google.cloud.compute.v1.Disks.StartAsyncReplication", - "async": true, - "parameters": [ - { - "name": "disk", - "type": "TYPE_STRING" - }, - { - "name": "disks_start_async_replication_request_resource", - "type": ".google.cloud.compute.v1.DisksStartAsyncReplicationRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "DisksClient", - "fullName": "google.cloud.compute.v1.DisksClient" - }, - "method": { - "shortName": "StartAsyncReplication", - "fullName": "google.cloud.compute.v1.Disks.StartAsyncReplication", - "service": { - "shortName": "Disks", - "fullName": "google.cloud.compute.v1.Disks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Disks_StopAsyncReplication_async", - "title": "AcceleratorTypes stopAsyncReplication Sample", - "origin": "API_DEFINITION", - "description": " Stops asynchronous replication. Can be invoked either on the primary or on the secondary disk.", - "canonical": true, - "file": "disks.stop_async_replication.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StopAsyncReplication", - "fullName": "google.cloud.compute.v1.Disks.StopAsyncReplication", - "async": true, - "parameters": [ - { - "name": "disk", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "DisksClient", - "fullName": "google.cloud.compute.v1.DisksClient" - }, - "method": { - "shortName": "StopAsyncReplication", - "fullName": "google.cloud.compute.v1.Disks.StopAsyncReplication", - "service": { - "shortName": "Disks", - "fullName": "google.cloud.compute.v1.Disks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Disks_StopGroupAsyncReplication_async", - "title": "AcceleratorTypes stopGroupAsyncReplication Sample", - "origin": "API_DEFINITION", - "description": " Stops asynchronous replication for a consistency group of disks. Can be invoked either in the primary or secondary scope.", - "canonical": true, - "file": "disks.stop_group_async_replication.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StopGroupAsyncReplication", - "fullName": "google.cloud.compute.v1.Disks.StopGroupAsyncReplication", - "async": true, - "parameters": [ - { - "name": "disks_stop_group_async_replication_resource_resource", - "type": ".google.cloud.compute.v1.DisksStopGroupAsyncReplicationResource" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "DisksClient", - "fullName": "google.cloud.compute.v1.DisksClient" - }, - "method": { - "shortName": "StopGroupAsyncReplication", - "fullName": "google.cloud.compute.v1.Disks.StopGroupAsyncReplication", - "service": { - "shortName": "Disks", - "fullName": "google.cloud.compute.v1.Disks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Disks_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "disks.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.Disks.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1.TestPermissionsRequest" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", - "client": { - "shortName": "DisksClient", - "fullName": "google.cloud.compute.v1.DisksClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.Disks.TestIamPermissions", - "service": { - "shortName": "Disks", - "fullName": "google.cloud.compute.v1.Disks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Disks_Update_async", - "title": "AcceleratorTypes update Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified disk with the data included in the request. The update is performed only on selected fields included as part of update-mask.", - "canonical": true, - "file": "disks.update.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 89, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1.Disks.Update", - "async": true, - "parameters": [ - { - "name": "disk", - "type": "TYPE_STRING" - }, - { - "name": "disk_resource", - "type": ".google.cloud.compute.v1.Disk" - }, - { - "name": "paths", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "DisksClient", - "fullName": "google.cloud.compute.v1.DisksClient" - }, - "method": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1.Disks.Update", - "service": { - "shortName": "Disks", - "fullName": "google.cloud.compute.v1.Disks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Disks_UpdateKmsKey_async", - "title": "AcceleratorTypes updateKmsKey Sample", - "origin": "API_DEFINITION", - "description": " Rotates the customer-managed encryption key to the latest version for the specified persistent disk.", - "canonical": true, - "file": "disks.update_kms_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateKmsKey", - "fullName": "google.cloud.compute.v1.Disks.UpdateKmsKey", - "async": true, - "parameters": [ - { - "name": "disk", - "type": "TYPE_STRING" - }, - { - "name": "disk_update_kms_key_request_resource", - "type": ".google.cloud.compute.v1.DiskUpdateKmsKeyRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "DisksClient", - "fullName": "google.cloud.compute.v1.DisksClient" - }, - "method": { - "shortName": "UpdateKmsKey", - "fullName": "google.cloud.compute.v1.Disks.UpdateKmsKey", - "service": { - "shortName": "Disks", - "fullName": "google.cloud.compute.v1.Disks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_DiskTypes_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of disk types. To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "disk_types.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.DiskTypes.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1.DiskTypeAggregatedList", - "client": { - "shortName": "DiskTypesClient", - "fullName": "google.cloud.compute.v1.DiskTypesClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.DiskTypes.AggregatedList", - "service": { - "shortName": "DiskTypes", - "fullName": "google.cloud.compute.v1.DiskTypes" - } - } - } - }, - { - "regionTag": "compute_v1_generated_DiskTypes_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified disk type.", - "canonical": true, - "file": "disk_types.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.DiskTypes.Get", - "async": true, - "parameters": [ - { - "name": "disk_type", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.DiskType", - "client": { - "shortName": "DiskTypesClient", - "fullName": "google.cloud.compute.v1.DiskTypesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.DiskTypes.Get", - "service": { - "shortName": "DiskTypes", - "fullName": "google.cloud.compute.v1.DiskTypes" - } - } - } - }, - { - "regionTag": "compute_v1_generated_DiskTypes_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of disk types available to the specified project.", - "canonical": true, - "file": "disk_types.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.DiskTypes.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.DiskTypeList", - "client": { - "shortName": "DiskTypesClient", - "fullName": "google.cloud.compute.v1.DiskTypesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.DiskTypes.List", - "service": { - "shortName": "DiskTypes", - "fullName": "google.cloud.compute.v1.DiskTypes" - } - } - } - }, - { - "regionTag": "compute_v1_generated_ExternalVpnGateways_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified externalVpnGateway.", - "canonical": true, - "file": "external_vpn_gateways.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.ExternalVpnGateways.Delete", - "async": true, - "parameters": [ - { - "name": "external_vpn_gateway", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "ExternalVpnGatewaysClient", - "fullName": "google.cloud.compute.v1.ExternalVpnGatewaysClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.ExternalVpnGateways.Delete", - "service": { - "shortName": "ExternalVpnGateways", - "fullName": "google.cloud.compute.v1.ExternalVpnGateways" - } - } - } - }, - { - "regionTag": "compute_v1_generated_ExternalVpnGateways_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified externalVpnGateway. Get a list of available externalVpnGateways by making a list() request.", - "canonical": true, - "file": "external_vpn_gateways.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.ExternalVpnGateways.Get", - "async": true, - "parameters": [ - { - "name": "external_vpn_gateway", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.ExternalVpnGateway", - "client": { - "shortName": "ExternalVpnGatewaysClient", - "fullName": "google.cloud.compute.v1.ExternalVpnGatewaysClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.ExternalVpnGateways.Get", - "service": { - "shortName": "ExternalVpnGateways", - "fullName": "google.cloud.compute.v1.ExternalVpnGateways" - } - } - } - }, - { - "regionTag": "compute_v1_generated_ExternalVpnGateways_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a ExternalVpnGateway in the specified project using the data included in the request.", - "canonical": true, - "file": "external_vpn_gateways.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.ExternalVpnGateways.Insert", - "async": true, - "parameters": [ - { - "name": "external_vpn_gateway_resource", - "type": ".google.cloud.compute.v1.ExternalVpnGateway" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "ExternalVpnGatewaysClient", - "fullName": "google.cloud.compute.v1.ExternalVpnGatewaysClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.ExternalVpnGateways.Insert", - "service": { - "shortName": "ExternalVpnGateways", - "fullName": "google.cloud.compute.v1.ExternalVpnGateways" - } - } - } - }, - { - "regionTag": "compute_v1_generated_ExternalVpnGateways_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of ExternalVpnGateway available to the specified project.", - "canonical": true, - "file": "external_vpn_gateways.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.ExternalVpnGateways.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.ExternalVpnGatewayList", - "client": { - "shortName": "ExternalVpnGatewaysClient", - "fullName": "google.cloud.compute.v1.ExternalVpnGatewaysClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.ExternalVpnGateways.List", - "service": { - "shortName": "ExternalVpnGateways", - "fullName": "google.cloud.compute.v1.ExternalVpnGateways" - } - } - } - }, - { - "regionTag": "compute_v1_generated_ExternalVpnGateways_SetLabels_async", - "title": "AcceleratorTypes setLabels Sample", - "origin": "API_DEFINITION", - "description": " Sets the labels on an ExternalVpnGateway. To learn more about labels, read the Labeling Resources documentation.", - "canonical": true, - "file": "external_vpn_gateways.set_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1.ExternalVpnGateways.SetLabels", - "async": true, - "parameters": [ - { - "name": "global_set_labels_request_resource", - "type": ".google.cloud.compute.v1.GlobalSetLabelsRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "ExternalVpnGatewaysClient", - "fullName": "google.cloud.compute.v1.ExternalVpnGatewaysClient" - }, - "method": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1.ExternalVpnGateways.SetLabels", - "service": { - "shortName": "ExternalVpnGateways", - "fullName": "google.cloud.compute.v1.ExternalVpnGateways" - } - } - } - }, - { - "regionTag": "compute_v1_generated_ExternalVpnGateways_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "external_vpn_gateways.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.ExternalVpnGateways.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", - "client": { - "shortName": "ExternalVpnGatewaysClient", - "fullName": "google.cloud.compute.v1.ExternalVpnGatewaysClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.ExternalVpnGateways.TestIamPermissions", - "service": { - "shortName": "ExternalVpnGateways", - "fullName": "google.cloud.compute.v1.ExternalVpnGateways" - } - } - } - }, - { - "regionTag": "compute_v1_generated_FirewallPolicies_AddAssociation_async", - "title": "AcceleratorTypes addAssociation Sample", - "origin": "API_DEFINITION", - "description": " Inserts an association for the specified firewall policy.", - "canonical": true, - "file": "firewall_policies.add_association.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddAssociation", - "fullName": "google.cloud.compute.v1.FirewallPolicies.AddAssociation", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "firewall_policy_association_resource", - "type": ".google.cloud.compute.v1.FirewallPolicyAssociation" - }, - { - "name": "replace_existing_association", - "type": "TYPE_BOOL" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "FirewallPoliciesClient", - "fullName": "google.cloud.compute.v1.FirewallPoliciesClient" - }, - "method": { - "shortName": "AddAssociation", - "fullName": "google.cloud.compute.v1.FirewallPolicies.AddAssociation", - "service": { - "shortName": "FirewallPolicies", - "fullName": "google.cloud.compute.v1.FirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_FirewallPolicies_AddRule_async", - "title": "AcceleratorTypes addRule Sample", - "origin": "API_DEFINITION", - "description": " Inserts a rule into a firewall policy.", - "canonical": true, - "file": "firewall_policies.add_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddRule", - "fullName": "google.cloud.compute.v1.FirewallPolicies.AddRule", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "firewall_policy_rule_resource", - "type": ".google.cloud.compute.v1.FirewallPolicyRule" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "FirewallPoliciesClient", - "fullName": "google.cloud.compute.v1.FirewallPoliciesClient" - }, - "method": { - "shortName": "AddRule", - "fullName": "google.cloud.compute.v1.FirewallPolicies.AddRule", - "service": { - "shortName": "FirewallPolicies", - "fullName": "google.cloud.compute.v1.FirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_FirewallPolicies_CloneRules_async", - "title": "AcceleratorTypes cloneRules Sample", - "origin": "API_DEFINITION", - "description": " Copies rules to the specified firewall policy.", - "canonical": true, - "file": "firewall_policies.clone_rules.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CloneRules", - "fullName": "google.cloud.compute.v1.FirewallPolicies.CloneRules", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "source_firewall_policy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "FirewallPoliciesClient", - "fullName": "google.cloud.compute.v1.FirewallPoliciesClient" - }, - "method": { - "shortName": "CloneRules", - "fullName": "google.cloud.compute.v1.FirewallPolicies.CloneRules", - "service": { - "shortName": "FirewallPolicies", - "fullName": "google.cloud.compute.v1.FirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_FirewallPolicies_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified policy.", - "canonical": true, - "file": "firewall_policies.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.FirewallPolicies.Delete", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "FirewallPoliciesClient", - "fullName": "google.cloud.compute.v1.FirewallPoliciesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.FirewallPolicies.Delete", - "service": { - "shortName": "FirewallPolicies", - "fullName": "google.cloud.compute.v1.FirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_FirewallPolicies_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified firewall policy.", - "canonical": true, - "file": "firewall_policies.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.FirewallPolicies.Get", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.FirewallPolicy", - "client": { - "shortName": "FirewallPoliciesClient", - "fullName": "google.cloud.compute.v1.FirewallPoliciesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.FirewallPolicies.Get", - "service": { - "shortName": "FirewallPolicies", - "fullName": "google.cloud.compute.v1.FirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_FirewallPolicies_GetAssociation_async", - "title": "AcceleratorTypes getAssociation Sample", - "origin": "API_DEFINITION", - "description": " Gets an association with the specified name.", - "canonical": true, - "file": "firewall_policies.get_association.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAssociation", - "fullName": "google.cloud.compute.v1.FirewallPolicies.GetAssociation", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.FirewallPolicyAssociation", - "client": { - "shortName": "FirewallPoliciesClient", - "fullName": "google.cloud.compute.v1.FirewallPoliciesClient" - }, - "method": { - "shortName": "GetAssociation", - "fullName": "google.cloud.compute.v1.FirewallPolicies.GetAssociation", - "service": { - "shortName": "FirewallPolicies", - "fullName": "google.cloud.compute.v1.FirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_FirewallPolicies_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "firewall_policies.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.FirewallPolicies.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "FirewallPoliciesClient", - "fullName": "google.cloud.compute.v1.FirewallPoliciesClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.FirewallPolicies.GetIamPolicy", - "service": { - "shortName": "FirewallPolicies", - "fullName": "google.cloud.compute.v1.FirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_FirewallPolicies_GetRule_async", - "title": "AcceleratorTypes getRule Sample", - "origin": "API_DEFINITION", - "description": " Gets a rule of the specified priority.", - "canonical": true, - "file": "firewall_policies.get_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRule", - "fullName": "google.cloud.compute.v1.FirewallPolicies.GetRule", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "priority", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.compute.v1.FirewallPolicyRule", - "client": { - "shortName": "FirewallPoliciesClient", - "fullName": "google.cloud.compute.v1.FirewallPoliciesClient" - }, - "method": { - "shortName": "GetRule", - "fullName": "google.cloud.compute.v1.FirewallPolicies.GetRule", - "service": { - "shortName": "FirewallPolicies", - "fullName": "google.cloud.compute.v1.FirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_FirewallPolicies_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a new policy in the specified project using the data included in the request.", - "canonical": true, - "file": "firewall_policies.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.FirewallPolicies.Insert", - "async": true, - "parameters": [ - { - "name": "firewall_policy_resource", - "type": ".google.cloud.compute.v1.FirewallPolicy" - }, - { - "name": "parent_id", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "FirewallPoliciesClient", - "fullName": "google.cloud.compute.v1.FirewallPoliciesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.FirewallPolicies.Insert", - "service": { - "shortName": "FirewallPolicies", - "fullName": "google.cloud.compute.v1.FirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_FirewallPolicies_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Lists all the policies that have been configured for the specified folder or organization.", - "canonical": true, - "file": "firewall_policies.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 141, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.FirewallPolicies.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "parent_id", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.FirewallPolicyList", - "client": { - "shortName": "FirewallPoliciesClient", - "fullName": "google.cloud.compute.v1.FirewallPoliciesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.FirewallPolicies.List", - "service": { - "shortName": "FirewallPolicies", - "fullName": "google.cloud.compute.v1.FirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_FirewallPolicies_ListAssociations_async", - "title": "AcceleratorTypes listAssociations Sample", - "origin": "API_DEFINITION", - "description": " Lists associations of a specified target, i.e., organization or folder.", - "canonical": true, - "file": "firewall_policies.list_associations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAssociations", - "fullName": "google.cloud.compute.v1.FirewallPolicies.ListAssociations", - "async": true, - "parameters": [ - { - "name": "include_inherited_policies", - "type": "TYPE_BOOL" - }, - { - "name": "target_resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.FirewallPoliciesListAssociationsResponse", - "client": { - "shortName": "FirewallPoliciesClient", - "fullName": "google.cloud.compute.v1.FirewallPoliciesClient" - }, - "method": { - "shortName": "ListAssociations", - "fullName": "google.cloud.compute.v1.FirewallPolicies.ListAssociations", - "service": { - "shortName": "FirewallPolicies", - "fullName": "google.cloud.compute.v1.FirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_FirewallPolicies_Move_async", - "title": "AcceleratorTypes move Sample", - "origin": "API_DEFINITION", - "description": " Moves the specified firewall policy.", - "canonical": true, - "file": "firewall_policies.move.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Move", - "fullName": "google.cloud.compute.v1.FirewallPolicies.Move", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "parent_id", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "FirewallPoliciesClient", - "fullName": "google.cloud.compute.v1.FirewallPoliciesClient" - }, - "method": { - "shortName": "Move", - "fullName": "google.cloud.compute.v1.FirewallPolicies.Move", - "service": { - "shortName": "FirewallPolicies", - "fullName": "google.cloud.compute.v1.FirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_FirewallPolicies_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patches the specified policy with the data included in the request.", - "canonical": true, - "file": "firewall_policies.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.FirewallPolicies.Patch", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "firewall_policy_resource", - "type": ".google.cloud.compute.v1.FirewallPolicy" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "FirewallPoliciesClient", - "fullName": "google.cloud.compute.v1.FirewallPoliciesClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.FirewallPolicies.Patch", - "service": { - "shortName": "FirewallPolicies", - "fullName": "google.cloud.compute.v1.FirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_FirewallPolicies_PatchRule_async", - "title": "AcceleratorTypes patchRule Sample", - "origin": "API_DEFINITION", - "description": " Patches a rule of the specified priority.", - "canonical": true, - "file": "firewall_policies.patch_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PatchRule", - "fullName": "google.cloud.compute.v1.FirewallPolicies.PatchRule", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "firewall_policy_rule_resource", - "type": ".google.cloud.compute.v1.FirewallPolicyRule" - }, - { - "name": "priority", - "type": "TYPE_INT32" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "FirewallPoliciesClient", - "fullName": "google.cloud.compute.v1.FirewallPoliciesClient" - }, - "method": { - "shortName": "PatchRule", - "fullName": "google.cloud.compute.v1.FirewallPolicies.PatchRule", - "service": { - "shortName": "FirewallPolicies", - "fullName": "google.cloud.compute.v1.FirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_FirewallPolicies_RemoveAssociation_async", - "title": "AcceleratorTypes removeAssociation Sample", - "origin": "API_DEFINITION", - "description": " Removes an association for the specified firewall policy.", - "canonical": true, - "file": "firewall_policies.remove_association.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveAssociation", - "fullName": "google.cloud.compute.v1.FirewallPolicies.RemoveAssociation", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "FirewallPoliciesClient", - "fullName": "google.cloud.compute.v1.FirewallPoliciesClient" - }, - "method": { - "shortName": "RemoveAssociation", - "fullName": "google.cloud.compute.v1.FirewallPolicies.RemoveAssociation", - "service": { - "shortName": "FirewallPolicies", - "fullName": "google.cloud.compute.v1.FirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_FirewallPolicies_RemoveRule_async", - "title": "AcceleratorTypes removeRule Sample", - "origin": "API_DEFINITION", - "description": " Deletes a rule of the specified priority.", - "canonical": true, - "file": "firewall_policies.remove_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveRule", - "fullName": "google.cloud.compute.v1.FirewallPolicies.RemoveRule", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "priority", - "type": "TYPE_INT32" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "FirewallPoliciesClient", - "fullName": "google.cloud.compute.v1.FirewallPoliciesClient" - }, - "method": { - "shortName": "RemoveRule", - "fullName": "google.cloud.compute.v1.FirewallPolicies.RemoveRule", - "service": { - "shortName": "FirewallPolicies", - "fullName": "google.cloud.compute.v1.FirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_FirewallPolicies_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "firewall_policies.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.FirewallPolicies.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "global_organization_set_policy_request_resource", - "type": ".google.cloud.compute.v1.GlobalOrganizationSetPolicyRequest" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "FirewallPoliciesClient", - "fullName": "google.cloud.compute.v1.FirewallPoliciesClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.FirewallPolicies.SetIamPolicy", - "service": { - "shortName": "FirewallPolicies", - "fullName": "google.cloud.compute.v1.FirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_FirewallPolicies_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "firewall_policies.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.FirewallPolicies.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", - "client": { - "shortName": "FirewallPoliciesClient", - "fullName": "google.cloud.compute.v1.FirewallPoliciesClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.FirewallPolicies.TestIamPermissions", - "service": { - "shortName": "FirewallPolicies", - "fullName": "google.cloud.compute.v1.FirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Firewalls_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified firewall.", - "canonical": true, - "file": "firewalls.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.Firewalls.Delete", - "async": true, - "parameters": [ - { - "name": "firewall", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "FirewallsClient", - "fullName": "google.cloud.compute.v1.FirewallsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.Firewalls.Delete", - "service": { - "shortName": "Firewalls", - "fullName": "google.cloud.compute.v1.Firewalls" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Firewalls_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified firewall.", - "canonical": true, - "file": "firewalls.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.Firewalls.Get", - "async": true, - "parameters": [ - { - "name": "firewall", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Firewall", - "client": { - "shortName": "FirewallsClient", - "fullName": "google.cloud.compute.v1.FirewallsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.Firewalls.Get", - "service": { - "shortName": "Firewalls", - "fullName": "google.cloud.compute.v1.Firewalls" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Firewalls_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a firewall rule in the specified project using the data included in the request.", - "canonical": true, - "file": "firewalls.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.Firewalls.Insert", - "async": true, - "parameters": [ - { - "name": "firewall_resource", - "type": ".google.cloud.compute.v1.Firewall" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "FirewallsClient", - "fullName": "google.cloud.compute.v1.FirewallsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.Firewalls.Insert", - "service": { - "shortName": "Firewalls", - "fullName": "google.cloud.compute.v1.Firewalls" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Firewalls_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of firewall rules available to the specified project.", - "canonical": true, - "file": "firewalls.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.Firewalls.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.FirewallList", - "client": { - "shortName": "FirewallsClient", - "fullName": "google.cloud.compute.v1.FirewallsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.Firewalls.List", - "service": { - "shortName": "Firewalls", - "fullName": "google.cloud.compute.v1.Firewalls" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Firewalls_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified firewall rule with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.", - "canonical": true, - "file": "firewalls.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.Firewalls.Patch", - "async": true, - "parameters": [ - { - "name": "firewall", - "type": "TYPE_STRING" - }, - { - "name": "firewall_resource", - "type": ".google.cloud.compute.v1.Firewall" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "FirewallsClient", - "fullName": "google.cloud.compute.v1.FirewallsClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.Firewalls.Patch", - "service": { - "shortName": "Firewalls", - "fullName": "google.cloud.compute.v1.Firewalls" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Firewalls_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "firewalls.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.Firewalls.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", - "client": { - "shortName": "FirewallsClient", - "fullName": "google.cloud.compute.v1.FirewallsClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.Firewalls.TestIamPermissions", - "service": { - "shortName": "Firewalls", - "fullName": "google.cloud.compute.v1.Firewalls" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Firewalls_Update_async", - "title": "AcceleratorTypes update Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified firewall rule with the data included in the request. Note that all fields will be updated if using PUT, even fields that are not specified. To update individual fields, please use PATCH instead.", - "canonical": true, - "file": "firewalls.update.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1.Firewalls.Update", - "async": true, - "parameters": [ - { - "name": "firewall", - "type": "TYPE_STRING" - }, - { - "name": "firewall_resource", - "type": ".google.cloud.compute.v1.Firewall" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "FirewallsClient", - "fullName": "google.cloud.compute.v1.FirewallsClient" - }, - "method": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1.Firewalls.Update", - "service": { - "shortName": "Firewalls", - "fullName": "google.cloud.compute.v1.Firewalls" - } - } - } - }, - { - "regionTag": "compute_v1_generated_ForwardingRules_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of forwarding rules. To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "forwarding_rules.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.ForwardingRules.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1.ForwardingRuleAggregatedList", - "client": { - "shortName": "ForwardingRulesClient", - "fullName": "google.cloud.compute.v1.ForwardingRulesClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.ForwardingRules.AggregatedList", - "service": { - "shortName": "ForwardingRules", - "fullName": "google.cloud.compute.v1.ForwardingRules" - } - } - } - }, - { - "regionTag": "compute_v1_generated_ForwardingRules_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified ForwardingRule resource.", - "canonical": true, - "file": "forwarding_rules.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.ForwardingRules.Delete", - "async": true, - "parameters": [ - { - "name": "forwarding_rule", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "ForwardingRulesClient", - "fullName": "google.cloud.compute.v1.ForwardingRulesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.ForwardingRules.Delete", - "service": { - "shortName": "ForwardingRules", - "fullName": "google.cloud.compute.v1.ForwardingRules" - } - } - } - }, - { - "regionTag": "compute_v1_generated_ForwardingRules_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified ForwardingRule resource.", - "canonical": true, - "file": "forwarding_rules.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.ForwardingRules.Get", - "async": true, - "parameters": [ - { - "name": "forwarding_rule", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.ForwardingRule", - "client": { - "shortName": "ForwardingRulesClient", - "fullName": "google.cloud.compute.v1.ForwardingRulesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.ForwardingRules.Get", - "service": { - "shortName": "ForwardingRules", - "fullName": "google.cloud.compute.v1.ForwardingRules" - } - } - } - }, - { - "regionTag": "compute_v1_generated_ForwardingRules_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a ForwardingRule resource in the specified project and region using the data included in the request.", - "canonical": true, - "file": "forwarding_rules.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.ForwardingRules.Insert", - "async": true, - "parameters": [ - { - "name": "forwarding_rule_resource", - "type": ".google.cloud.compute.v1.ForwardingRule" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "ForwardingRulesClient", - "fullName": "google.cloud.compute.v1.ForwardingRulesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.ForwardingRules.Insert", - "service": { - "shortName": "ForwardingRules", - "fullName": "google.cloud.compute.v1.ForwardingRules" - } - } - } - }, - { - "regionTag": "compute_v1_generated_ForwardingRules_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of ForwardingRule resources available to the specified project and region.", - "canonical": true, - "file": "forwarding_rules.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.ForwardingRules.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.ForwardingRuleList", - "client": { - "shortName": "ForwardingRulesClient", - "fullName": "google.cloud.compute.v1.ForwardingRulesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.ForwardingRules.List", - "service": { - "shortName": "ForwardingRules", - "fullName": "google.cloud.compute.v1.ForwardingRules" - } - } - } - }, - { - "regionTag": "compute_v1_generated_ForwardingRules_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified forwarding rule with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules. Currently, you can only patch the network_tier field.", - "canonical": true, - "file": "forwarding_rules.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.ForwardingRules.Patch", - "async": true, - "parameters": [ - { - "name": "forwarding_rule", - "type": "TYPE_STRING" - }, - { - "name": "forwarding_rule_resource", - "type": ".google.cloud.compute.v1.ForwardingRule" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "ForwardingRulesClient", - "fullName": "google.cloud.compute.v1.ForwardingRulesClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.ForwardingRules.Patch", - "service": { - "shortName": "ForwardingRules", - "fullName": "google.cloud.compute.v1.ForwardingRules" - } - } - } - }, - { - "regionTag": "compute_v1_generated_ForwardingRules_SetLabels_async", - "title": "AcceleratorTypes setLabels Sample", - "origin": "API_DEFINITION", - "description": " Sets the labels on the specified resource. To learn more about labels, read the Labeling Resources documentation.", - "canonical": true, - "file": "forwarding_rules.set_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1.ForwardingRules.SetLabels", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_set_labels_request_resource", - "type": ".google.cloud.compute.v1.RegionSetLabelsRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "ForwardingRulesClient", - "fullName": "google.cloud.compute.v1.ForwardingRulesClient" - }, - "method": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1.ForwardingRules.SetLabels", - "service": { - "shortName": "ForwardingRules", - "fullName": "google.cloud.compute.v1.ForwardingRules" - } - } - } - }, - { - "regionTag": "compute_v1_generated_ForwardingRules_SetTarget_async", - "title": "AcceleratorTypes setTarget Sample", - "origin": "API_DEFINITION", - "description": " Changes target URL for forwarding rule. The new target should be of the same type as the old target.", - "canonical": true, - "file": "forwarding_rules.set_target.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetTarget", - "fullName": "google.cloud.compute.v1.ForwardingRules.SetTarget", - "async": true, - "parameters": [ - { - "name": "forwarding_rule", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_reference_resource", - "type": ".google.cloud.compute.v1.TargetReference" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "ForwardingRulesClient", - "fullName": "google.cloud.compute.v1.ForwardingRulesClient" - }, - "method": { - "shortName": "SetTarget", - "fullName": "google.cloud.compute.v1.ForwardingRules.SetTarget", - "service": { - "shortName": "ForwardingRules", - "fullName": "google.cloud.compute.v1.ForwardingRules" - } - } - } - }, - { - "regionTag": "compute_v1_generated_FutureReservations_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of future reservations. To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "future_reservations.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.FutureReservations.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1.FutureReservationsAggregatedListResponse", - "client": { - "shortName": "FutureReservationsClient", - "fullName": "google.cloud.compute.v1.FutureReservationsClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.FutureReservations.AggregatedList", - "service": { - "shortName": "FutureReservations", - "fullName": "google.cloud.compute.v1.FutureReservations" - } - } - } - }, - { - "regionTag": "compute_v1_generated_FutureReservations_Cancel_async", - "title": "AcceleratorTypes cancel Sample", - "origin": "API_DEFINITION", - "description": " Cancel the specified future reservation.", - "canonical": true, - "file": "future_reservations.cancel.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Cancel", - "fullName": "google.cloud.compute.v1.FutureReservations.Cancel", - "async": true, - "parameters": [ - { - "name": "future_reservation", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "FutureReservationsClient", - "fullName": "google.cloud.compute.v1.FutureReservationsClient" - }, - "method": { - "shortName": "Cancel", - "fullName": "google.cloud.compute.v1.FutureReservations.Cancel", - "service": { - "shortName": "FutureReservations", - "fullName": "google.cloud.compute.v1.FutureReservations" - } - } - } - }, - { - "regionTag": "compute_v1_generated_FutureReservations_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified future reservation.", - "canonical": true, - "file": "future_reservations.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.FutureReservations.Delete", - "async": true, - "parameters": [ - { - "name": "future_reservation", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "FutureReservationsClient", - "fullName": "google.cloud.compute.v1.FutureReservationsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.FutureReservations.Delete", - "service": { - "shortName": "FutureReservations", - "fullName": "google.cloud.compute.v1.FutureReservations" - } - } - } - }, - { - "regionTag": "compute_v1_generated_FutureReservations_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Retrieves information about the specified future reservation.", - "canonical": true, - "file": "future_reservations.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.FutureReservations.Get", - "async": true, - "parameters": [ - { - "name": "future_reservation", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.FutureReservation", - "client": { - "shortName": "FutureReservationsClient", - "fullName": "google.cloud.compute.v1.FutureReservationsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.FutureReservations.Get", - "service": { - "shortName": "FutureReservations", - "fullName": "google.cloud.compute.v1.FutureReservations" - } - } - } - }, - { - "regionTag": "compute_v1_generated_FutureReservations_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Future Reservation.", - "canonical": true, - "file": "future_reservations.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.FutureReservations.Insert", - "async": true, - "parameters": [ - { - "name": "future_reservation_resource", - "type": ".google.cloud.compute.v1.FutureReservation" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "FutureReservationsClient", - "fullName": "google.cloud.compute.v1.FutureReservationsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.FutureReservations.Insert", - "service": { - "shortName": "FutureReservations", - "fullName": "google.cloud.compute.v1.FutureReservations" - } - } - } - }, - { - "regionTag": "compute_v1_generated_FutureReservations_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " A list of all the future reservations that have been configured for the specified project in specified zone.", - "canonical": true, - "file": "future_reservations.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.FutureReservations.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.FutureReservationsListResponse", - "client": { - "shortName": "FutureReservationsClient", - "fullName": "google.cloud.compute.v1.FutureReservationsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.FutureReservations.List", - "service": { - "shortName": "FutureReservations", - "fullName": "google.cloud.compute.v1.FutureReservations" - } - } - } - }, - { - "regionTag": "compute_v1_generated_FutureReservations_Update_async", - "title": "AcceleratorTypes update Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified future reservation.", - "canonical": true, - "file": "future_reservations.update.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1.FutureReservations.Update", - "async": true, - "parameters": [ - { - "name": "future_reservation", - "type": "TYPE_STRING" - }, - { - "name": "future_reservation_resource", - "type": ".google.cloud.compute.v1.FutureReservation" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "FutureReservationsClient", - "fullName": "google.cloud.compute.v1.FutureReservationsClient" - }, - "method": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1.FutureReservations.Update", - "service": { - "shortName": "FutureReservations", - "fullName": "google.cloud.compute.v1.FutureReservations" - } - } - } - }, - { - "regionTag": "compute_v1_generated_GlobalAddresses_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified address resource.", - "canonical": true, - "file": "global_addresses.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.GlobalAddresses.Delete", - "async": true, - "parameters": [ - { - "name": "address", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "GlobalAddressesClient", - "fullName": "google.cloud.compute.v1.GlobalAddressesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.GlobalAddresses.Delete", - "service": { - "shortName": "GlobalAddresses", - "fullName": "google.cloud.compute.v1.GlobalAddresses" - } - } - } - }, - { - "regionTag": "compute_v1_generated_GlobalAddresses_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified address resource.", - "canonical": true, - "file": "global_addresses.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.GlobalAddresses.Get", - "async": true, - "parameters": [ - { - "name": "address", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Address", - "client": { - "shortName": "GlobalAddressesClient", - "fullName": "google.cloud.compute.v1.GlobalAddressesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.GlobalAddresses.Get", - "service": { - "shortName": "GlobalAddresses", - "fullName": "google.cloud.compute.v1.GlobalAddresses" - } - } - } - }, - { - "regionTag": "compute_v1_generated_GlobalAddresses_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates an address resource in the specified project by using the data included in the request.", - "canonical": true, - "file": "global_addresses.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.GlobalAddresses.Insert", - "async": true, - "parameters": [ - { - "name": "address_resource", - "type": ".google.cloud.compute.v1.Address" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "GlobalAddressesClient", - "fullName": "google.cloud.compute.v1.GlobalAddressesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.GlobalAddresses.Insert", - "service": { - "shortName": "GlobalAddresses", - "fullName": "google.cloud.compute.v1.GlobalAddresses" - } - } - } - }, - { - "regionTag": "compute_v1_generated_GlobalAddresses_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of global addresses.", - "canonical": true, - "file": "global_addresses.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.GlobalAddresses.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.AddressList", - "client": { - "shortName": "GlobalAddressesClient", - "fullName": "google.cloud.compute.v1.GlobalAddressesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.GlobalAddresses.List", - "service": { - "shortName": "GlobalAddresses", - "fullName": "google.cloud.compute.v1.GlobalAddresses" - } - } - } - }, - { - "regionTag": "compute_v1_generated_GlobalAddresses_Move_async", - "title": "AcceleratorTypes move Sample", - "origin": "API_DEFINITION", - "description": " Moves the specified address resource from one project to another project.", - "canonical": true, - "file": "global_addresses.move.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Move", - "fullName": "google.cloud.compute.v1.GlobalAddresses.Move", - "async": true, - "parameters": [ - { - "name": "address", - "type": "TYPE_STRING" - }, - { - "name": "global_addresses_move_request_resource", - "type": ".google.cloud.compute.v1.GlobalAddressesMoveRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "GlobalAddressesClient", - "fullName": "google.cloud.compute.v1.GlobalAddressesClient" - }, - "method": { - "shortName": "Move", - "fullName": "google.cloud.compute.v1.GlobalAddresses.Move", - "service": { - "shortName": "GlobalAddresses", - "fullName": "google.cloud.compute.v1.GlobalAddresses" - } - } - } - }, - { - "regionTag": "compute_v1_generated_GlobalAddresses_SetLabels_async", - "title": "AcceleratorTypes setLabels Sample", - "origin": "API_DEFINITION", - "description": " Sets the labels on a GlobalAddress. To learn more about labels, read theLabeling Resources documentation.", - "canonical": true, - "file": "global_addresses.set_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1.GlobalAddresses.SetLabels", - "async": true, - "parameters": [ - { - "name": "global_set_labels_request_resource", - "type": ".google.cloud.compute.v1.GlobalSetLabelsRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "GlobalAddressesClient", - "fullName": "google.cloud.compute.v1.GlobalAddressesClient" - }, - "method": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1.GlobalAddresses.SetLabels", - "service": { - "shortName": "GlobalAddresses", - "fullName": "google.cloud.compute.v1.GlobalAddresses" - } - } - } - }, - { - "regionTag": "compute_v1_generated_GlobalAddresses_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "global_addresses.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.GlobalAddresses.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", - "client": { - "shortName": "GlobalAddressesClient", - "fullName": "google.cloud.compute.v1.GlobalAddressesClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.GlobalAddresses.TestIamPermissions", - "service": { - "shortName": "GlobalAddresses", - "fullName": "google.cloud.compute.v1.GlobalAddresses" - } - } - } - }, - { - "regionTag": "compute_v1_generated_GlobalForwardingRules_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified GlobalForwardingRule resource.", - "canonical": true, - "file": "global_forwarding_rules.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.GlobalForwardingRules.Delete", - "async": true, - "parameters": [ - { - "name": "forwarding_rule", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "GlobalForwardingRulesClient", - "fullName": "google.cloud.compute.v1.GlobalForwardingRulesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.GlobalForwardingRules.Delete", - "service": { - "shortName": "GlobalForwardingRules", - "fullName": "google.cloud.compute.v1.GlobalForwardingRules" - } - } - } - }, - { - "regionTag": "compute_v1_generated_GlobalForwardingRules_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified GlobalForwardingRule resource. Gets a list of available forwarding rules by making a list() request.", - "canonical": true, - "file": "global_forwarding_rules.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.GlobalForwardingRules.Get", - "async": true, - "parameters": [ - { - "name": "forwarding_rule", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.ForwardingRule", - "client": { - "shortName": "GlobalForwardingRulesClient", - "fullName": "google.cloud.compute.v1.GlobalForwardingRulesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.GlobalForwardingRules.Get", - "service": { - "shortName": "GlobalForwardingRules", - "fullName": "google.cloud.compute.v1.GlobalForwardingRules" - } - } - } - }, - { - "regionTag": "compute_v1_generated_GlobalForwardingRules_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a GlobalForwardingRule resource in the specified project using the data included in the request.", - "canonical": true, - "file": "global_forwarding_rules.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.GlobalForwardingRules.Insert", - "async": true, - "parameters": [ - { - "name": "forwarding_rule_resource", - "type": ".google.cloud.compute.v1.ForwardingRule" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "GlobalForwardingRulesClient", - "fullName": "google.cloud.compute.v1.GlobalForwardingRulesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.GlobalForwardingRules.Insert", - "service": { - "shortName": "GlobalForwardingRules", - "fullName": "google.cloud.compute.v1.GlobalForwardingRules" - } - } - } - }, - { - "regionTag": "compute_v1_generated_GlobalForwardingRules_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of GlobalForwardingRule resources available to the specified project.", - "canonical": true, - "file": "global_forwarding_rules.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.GlobalForwardingRules.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.ForwardingRuleList", - "client": { - "shortName": "GlobalForwardingRulesClient", - "fullName": "google.cloud.compute.v1.GlobalForwardingRulesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.GlobalForwardingRules.List", - "service": { - "shortName": "GlobalForwardingRules", - "fullName": "google.cloud.compute.v1.GlobalForwardingRules" - } - } - } - }, - { - "regionTag": "compute_v1_generated_GlobalForwardingRules_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified forwarding rule with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules. Currently, you can only patch the network_tier field.", - "canonical": true, - "file": "global_forwarding_rules.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.GlobalForwardingRules.Patch", - "async": true, - "parameters": [ - { - "name": "forwarding_rule", - "type": "TYPE_STRING" - }, - { - "name": "forwarding_rule_resource", - "type": ".google.cloud.compute.v1.ForwardingRule" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "GlobalForwardingRulesClient", - "fullName": "google.cloud.compute.v1.GlobalForwardingRulesClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.GlobalForwardingRules.Patch", - "service": { - "shortName": "GlobalForwardingRules", - "fullName": "google.cloud.compute.v1.GlobalForwardingRules" - } - } - } - }, - { - "regionTag": "compute_v1_generated_GlobalForwardingRules_SetLabels_async", - "title": "AcceleratorTypes setLabels Sample", - "origin": "API_DEFINITION", - "description": " Sets the labels on the specified resource. To learn more about labels, read the Labeling resources documentation.", - "canonical": true, - "file": "global_forwarding_rules.set_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1.GlobalForwardingRules.SetLabels", - "async": true, - "parameters": [ - { - "name": "global_set_labels_request_resource", - "type": ".google.cloud.compute.v1.GlobalSetLabelsRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "GlobalForwardingRulesClient", - "fullName": "google.cloud.compute.v1.GlobalForwardingRulesClient" - }, - "method": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1.GlobalForwardingRules.SetLabels", - "service": { - "shortName": "GlobalForwardingRules", - "fullName": "google.cloud.compute.v1.GlobalForwardingRules" - } - } - } - }, - { - "regionTag": "compute_v1_generated_GlobalForwardingRules_SetTarget_async", - "title": "AcceleratorTypes setTarget Sample", - "origin": "API_DEFINITION", - "description": " Changes target URL for the GlobalForwardingRule resource. The new target should be of the same type as the old target.", - "canonical": true, - "file": "global_forwarding_rules.set_target.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetTarget", - "fullName": "google.cloud.compute.v1.GlobalForwardingRules.SetTarget", - "async": true, - "parameters": [ - { - "name": "forwarding_rule", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_reference_resource", - "type": ".google.cloud.compute.v1.TargetReference" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "GlobalForwardingRulesClient", - "fullName": "google.cloud.compute.v1.GlobalForwardingRulesClient" - }, - "method": { - "shortName": "SetTarget", - "fullName": "google.cloud.compute.v1.GlobalForwardingRules.SetTarget", - "service": { - "shortName": "GlobalForwardingRules", - "fullName": "google.cloud.compute.v1.GlobalForwardingRules" - } - } - } - }, - { - "regionTag": "compute_v1_generated_GlobalNetworkEndpointGroups_AttachNetworkEndpoints_async", - "title": "AcceleratorTypes attachNetworkEndpoints Sample", - "origin": "API_DEFINITION", - "description": " Attach a network endpoint to the specified network endpoint group.", - "canonical": true, - "file": "global_network_endpoint_groups.attach_network_endpoints.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AttachNetworkEndpoints", - "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups.AttachNetworkEndpoints", - "async": true, - "parameters": [ - { - "name": "global_network_endpoint_groups_attach_endpoints_request_resource", - "type": ".google.cloud.compute.v1.GlobalNetworkEndpointGroupsAttachEndpointsRequest" - }, - { - "name": "network_endpoint_group", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "GlobalNetworkEndpointGroupsClient", - "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroupsClient" - }, - "method": { - "shortName": "AttachNetworkEndpoints", - "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups.AttachNetworkEndpoints", - "service": { - "shortName": "GlobalNetworkEndpointGroups", - "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_GlobalNetworkEndpointGroups_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified network endpoint group.Note that the NEG cannot be deleted if there are backend services referencing it.", - "canonical": true, - "file": "global_network_endpoint_groups.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups.Delete", - "async": true, - "parameters": [ - { - "name": "network_endpoint_group", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "GlobalNetworkEndpointGroupsClient", - "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroupsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups.Delete", - "service": { - "shortName": "GlobalNetworkEndpointGroups", - "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_GlobalNetworkEndpointGroups_DetachNetworkEndpoints_async", - "title": "AcceleratorTypes detachNetworkEndpoints Sample", - "origin": "API_DEFINITION", - "description": " Detach the network endpoint from the specified network endpoint group.", - "canonical": true, - "file": "global_network_endpoint_groups.detach_network_endpoints.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DetachNetworkEndpoints", - "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups.DetachNetworkEndpoints", - "async": true, - "parameters": [ - { - "name": "global_network_endpoint_groups_detach_endpoints_request_resource", - "type": ".google.cloud.compute.v1.GlobalNetworkEndpointGroupsDetachEndpointsRequest" - }, - { - "name": "network_endpoint_group", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "GlobalNetworkEndpointGroupsClient", - "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroupsClient" - }, - "method": { - "shortName": "DetachNetworkEndpoints", - "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups.DetachNetworkEndpoints", - "service": { - "shortName": "GlobalNetworkEndpointGroups", - "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_GlobalNetworkEndpointGroups_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified network endpoint group.", - "canonical": true, - "file": "global_network_endpoint_groups.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups.Get", - "async": true, - "parameters": [ - { - "name": "network_endpoint_group", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.NetworkEndpointGroup", - "client": { - "shortName": "GlobalNetworkEndpointGroupsClient", - "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroupsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups.Get", - "service": { - "shortName": "GlobalNetworkEndpointGroups", - "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_GlobalNetworkEndpointGroups_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a network endpoint group in the specified project using the parameters that are included in the request. Note: Use the following APIs to manage network endpoint groups: - To manage NEGs with zonal scope (such as zonal NEGs, hybrid connectivity NEGs): zonal API - To manage NEGs with regional scope (such as regional internet NEGs, serverless NEGs, Private Service Connect NEGs): regional API - To manage NEGs with global scope (such as global internet NEGs):global API", - "canonical": true, - "file": "global_network_endpoint_groups.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups.Insert", - "async": true, - "parameters": [ - { - "name": "network_endpoint_group_resource", - "type": ".google.cloud.compute.v1.NetworkEndpointGroup" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "GlobalNetworkEndpointGroupsClient", - "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroupsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups.Insert", - "service": { - "shortName": "GlobalNetworkEndpointGroups", - "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_GlobalNetworkEndpointGroups_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of network endpoint groups that are located in the specified project.", - "canonical": true, - "file": "global_network_endpoint_groups.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.NetworkEndpointGroupList", - "client": { - "shortName": "GlobalNetworkEndpointGroupsClient", - "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroupsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups.List", - "service": { - "shortName": "GlobalNetworkEndpointGroups", - "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_GlobalNetworkEndpointGroups_ListNetworkEndpoints_async", - "title": "AcceleratorTypes listNetworkEndpoints Sample", - "origin": "API_DEFINITION", - "description": " Lists the network endpoints in the specified network endpoint group.", - "canonical": true, - "file": "global_network_endpoint_groups.list_network_endpoints.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 146, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListNetworkEndpoints", - "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups.ListNetworkEndpoints", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "network_endpoint_group", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.NetworkEndpointGroupsListNetworkEndpoints", - "client": { - "shortName": "GlobalNetworkEndpointGroupsClient", - "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroupsClient" - }, - "method": { - "shortName": "ListNetworkEndpoints", - "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups.ListNetworkEndpoints", - "service": { - "shortName": "GlobalNetworkEndpointGroups", - "fullName": "google.cloud.compute.v1.GlobalNetworkEndpointGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_GlobalOperations_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of all operations. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "global_operations.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.GlobalOperations.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1.OperationAggregatedList", - "client": { - "shortName": "GlobalOperationsClient", - "fullName": "google.cloud.compute.v1.GlobalOperationsClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.GlobalOperations.AggregatedList", - "service": { - "shortName": "GlobalOperations", - "fullName": "google.cloud.compute.v1.GlobalOperations" - } - } - } - }, - { - "regionTag": "compute_v1_generated_GlobalOperations_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified Operations resource.", - "canonical": true, - "file": "global_operations.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.GlobalOperations.Delete", - "async": true, - "parameters": [ - { - "name": "operation", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.DeleteGlobalOperationResponse", - "client": { - "shortName": "GlobalOperationsClient", - "fullName": "google.cloud.compute.v1.GlobalOperationsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.GlobalOperations.Delete", - "service": { - "shortName": "GlobalOperations", - "fullName": "google.cloud.compute.v1.GlobalOperations" - } - } - } - }, - { - "regionTag": "compute_v1_generated_GlobalOperations_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified Operations resource.", - "canonical": true, - "file": "global_operations.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.GlobalOperations.Get", - "async": true, - "parameters": [ - { - "name": "operation", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "GlobalOperationsClient", - "fullName": "google.cloud.compute.v1.GlobalOperationsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.GlobalOperations.Get", - "service": { - "shortName": "GlobalOperations", - "fullName": "google.cloud.compute.v1.GlobalOperations" - } - } - } - }, - { - "regionTag": "compute_v1_generated_GlobalOperations_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of Operation resources contained within the specified project.", - "canonical": true, - "file": "global_operations.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.GlobalOperations.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.OperationList", - "client": { - "shortName": "GlobalOperationsClient", - "fullName": "google.cloud.compute.v1.GlobalOperationsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.GlobalOperations.List", - "service": { - "shortName": "GlobalOperations", - "fullName": "google.cloud.compute.v1.GlobalOperations" - } - } - } - }, - { - "regionTag": "compute_v1_generated_GlobalOperations_Wait_async", - "title": "AcceleratorTypes wait Sample", - "origin": "API_DEFINITION", - "description": " Waits for the specified Operation resource to return as `DONE` or for the request to approach the 2 minute deadline, and retrieves the specified Operation resource. This method differs from the `GET` method in that it waits for no more than the default deadline (2 minutes) and then returns the current state of the operation, which might be `DONE` or still in progress. This method is called on a best-effort basis. Specifically: - In uncommon cases, when the server is overloaded, the request might return before the default deadline is reached, or might return after zero seconds. - If the default deadline is reached, there is no guarantee that the operation is actually done when the method returns. Be prepared to retry if the operation is not `DONE`.", - "canonical": true, - "file": "global_operations.wait.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Wait", - "fullName": "google.cloud.compute.v1.GlobalOperations.Wait", - "async": true, - "parameters": [ - { - "name": "operation", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "GlobalOperationsClient", - "fullName": "google.cloud.compute.v1.GlobalOperationsClient" - }, - "method": { - "shortName": "Wait", - "fullName": "google.cloud.compute.v1.GlobalOperations.Wait", - "service": { - "shortName": "GlobalOperations", - "fullName": "google.cloud.compute.v1.GlobalOperations" - } - } - } - }, - { - "regionTag": "compute_v1_generated_GlobalOrganizationOperations_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified Operations resource.", - "canonical": true, - "file": "global_organization_operations.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.GlobalOrganizationOperations.Delete", - "async": true, - "parameters": [ - { - "name": "operation", - "type": "TYPE_STRING" - }, - { - "name": "parent_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.DeleteGlobalOrganizationOperationResponse", - "client": { - "shortName": "GlobalOrganizationOperationsClient", - "fullName": "google.cloud.compute.v1.GlobalOrganizationOperationsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.GlobalOrganizationOperations.Delete", - "service": { - "shortName": "GlobalOrganizationOperations", - "fullName": "google.cloud.compute.v1.GlobalOrganizationOperations" - } - } - } - }, - { - "regionTag": "compute_v1_generated_GlobalOrganizationOperations_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified Operations resource. Gets a list of operations by making a `list()` request.", - "canonical": true, - "file": "global_organization_operations.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.GlobalOrganizationOperations.Get", - "async": true, - "parameters": [ - { - "name": "operation", - "type": "TYPE_STRING" - }, - { - "name": "parent_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "GlobalOrganizationOperationsClient", - "fullName": "google.cloud.compute.v1.GlobalOrganizationOperationsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.GlobalOrganizationOperations.Get", - "service": { - "shortName": "GlobalOrganizationOperations", - "fullName": "google.cloud.compute.v1.GlobalOrganizationOperations" - } - } - } - }, - { - "regionTag": "compute_v1_generated_GlobalOrganizationOperations_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of Operation resources contained within the specified organization.", - "canonical": true, - "file": "global_organization_operations.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 139, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.GlobalOrganizationOperations.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "parent_id", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.OperationList", - "client": { - "shortName": "GlobalOrganizationOperationsClient", - "fullName": "google.cloud.compute.v1.GlobalOrganizationOperationsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.GlobalOrganizationOperations.List", - "service": { - "shortName": "GlobalOrganizationOperations", - "fullName": "google.cloud.compute.v1.GlobalOrganizationOperations" - } - } - } - }, - { - "regionTag": "compute_v1_generated_GlobalPublicDelegatedPrefixes_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified global PublicDelegatedPrefix.", - "canonical": true, - "file": "global_public_delegated_prefixes.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixes.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "public_delegated_prefix", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "GlobalPublicDelegatedPrefixesClient", - "fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixes.Delete", - "service": { - "shortName": "GlobalPublicDelegatedPrefixes", - "fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixes" - } - } - } - }, - { - "regionTag": "compute_v1_generated_GlobalPublicDelegatedPrefixes_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified global PublicDelegatedPrefix resource.", - "canonical": true, - "file": "global_public_delegated_prefixes.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixes.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "public_delegated_prefix", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.PublicDelegatedPrefix", - "client": { - "shortName": "GlobalPublicDelegatedPrefixesClient", - "fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixes.Get", - "service": { - "shortName": "GlobalPublicDelegatedPrefixes", - "fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixes" - } - } - } - }, - { - "regionTag": "compute_v1_generated_GlobalPublicDelegatedPrefixes_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a global PublicDelegatedPrefix in the specified project using the parameters that are included in the request.", - "canonical": true, - "file": "global_public_delegated_prefixes.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixes.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "public_delegated_prefix_resource", - "type": ".google.cloud.compute.v1.PublicDelegatedPrefix" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "GlobalPublicDelegatedPrefixesClient", - "fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixes.Insert", - "service": { - "shortName": "GlobalPublicDelegatedPrefixes", - "fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixes" - } - } - } - }, - { - "regionTag": "compute_v1_generated_GlobalPublicDelegatedPrefixes_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Lists the global PublicDelegatedPrefixes for a project.", - "canonical": true, - "file": "global_public_delegated_prefixes.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixes.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.PublicDelegatedPrefixList", - "client": { - "shortName": "GlobalPublicDelegatedPrefixesClient", - "fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixes.List", - "service": { - "shortName": "GlobalPublicDelegatedPrefixes", - "fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixes" - } - } - } - }, - { - "regionTag": "compute_v1_generated_GlobalPublicDelegatedPrefixes_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patches the specified global PublicDelegatedPrefix resource with the data included in the request. This method supportsPATCH semantics and usesJSON merge patch format and processing rules.", - "canonical": true, - "file": "global_public_delegated_prefixes.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixes.Patch", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "public_delegated_prefix", - "type": "TYPE_STRING" - }, - { - "name": "public_delegated_prefix_resource", - "type": ".google.cloud.compute.v1.PublicDelegatedPrefix" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "GlobalPublicDelegatedPrefixesClient", - "fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixesClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixes.Patch", - "service": { - "shortName": "GlobalPublicDelegatedPrefixes", - "fullName": "google.cloud.compute.v1.GlobalPublicDelegatedPrefixes" - } - } - } - }, - { - "regionTag": "compute_v1_generated_GlobalVmExtensionPolicies_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of all VM Extension Policy resources available to the specified project. To prevent failure, it's recommended that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "global_vm_extension_policies.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.GlobalVmExtensionPolicies.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1.VmExtensionPolicyAggregatedListResponse", - "client": { - "shortName": "GlobalVmExtensionPoliciesClient", - "fullName": "google.cloud.compute.v1.GlobalVmExtensionPoliciesClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.GlobalVmExtensionPolicies.AggregatedList", - "service": { - "shortName": "GlobalVmExtensionPolicies", - "fullName": "google.cloud.compute.v1.GlobalVmExtensionPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_GlobalVmExtensionPolicies_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Purge scoped resources (zonal policies) from a global VM extension policy, and then delete the global VM extension policy. Purge of the scoped resources is a pre-condition of the global VM extension policy deletion. The deletion of the global VM extension policy happens after the purge rollout is done, so it's not a part of the LRO. It's an automatic process that triggers in the backend.", - "canonical": true, - "file": "global_vm_extension_policies.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.GlobalVmExtensionPolicies.Delete", - "async": true, - "parameters": [ - { - "name": "global_vm_extension_policy", - "type": "TYPE_STRING" - }, - { - "name": "global_vm_extension_policy_rollout_operation_rollout_input_resource", - "type": ".google.cloud.compute.v1.GlobalVmExtensionPolicyRolloutOperationRolloutInput" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "GlobalVmExtensionPoliciesClient", - "fullName": "google.cloud.compute.v1.GlobalVmExtensionPoliciesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.GlobalVmExtensionPolicies.Delete", - "service": { - "shortName": "GlobalVmExtensionPolicies", - "fullName": "google.cloud.compute.v1.GlobalVmExtensionPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_GlobalVmExtensionPolicies_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a global VM extension policy.", - "canonical": true, - "file": "global_vm_extension_policies.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.GlobalVmExtensionPolicies.Get", - "async": true, - "parameters": [ - { - "name": "global_vm_extension_policy", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.GlobalVmExtensionPolicy", - "client": { - "shortName": "GlobalVmExtensionPoliciesClient", - "fullName": "google.cloud.compute.v1.GlobalVmExtensionPoliciesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.GlobalVmExtensionPolicies.Get", - "service": { - "shortName": "GlobalVmExtensionPolicies", - "fullName": "google.cloud.compute.v1.GlobalVmExtensionPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_GlobalVmExtensionPolicies_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a new project level GlobalVmExtensionPolicy.", - "canonical": true, - "file": "global_vm_extension_policies.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.GlobalVmExtensionPolicies.Insert", - "async": true, - "parameters": [ - { - "name": "global_vm_extension_policy_resource", - "type": ".google.cloud.compute.v1.GlobalVmExtensionPolicy" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "GlobalVmExtensionPoliciesClient", - "fullName": "google.cloud.compute.v1.GlobalVmExtensionPoliciesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.GlobalVmExtensionPolicies.Insert", - "service": { - "shortName": "GlobalVmExtensionPolicies", - "fullName": "google.cloud.compute.v1.GlobalVmExtensionPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_GlobalVmExtensionPolicies_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Lists global VM extension policies.", - "canonical": true, - "file": "global_vm_extension_policies.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.GlobalVmExtensionPolicies.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.GlobalVmExtensionPolicyList", - "client": { - "shortName": "GlobalVmExtensionPoliciesClient", - "fullName": "google.cloud.compute.v1.GlobalVmExtensionPoliciesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.GlobalVmExtensionPolicies.List", - "service": { - "shortName": "GlobalVmExtensionPolicies", - "fullName": "google.cloud.compute.v1.GlobalVmExtensionPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_GlobalVmExtensionPolicies_Update_async", - "title": "AcceleratorTypes update Sample", - "origin": "API_DEFINITION", - "description": " Updates a global VM extension policy.", - "canonical": true, - "file": "global_vm_extension_policies.update.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1.GlobalVmExtensionPolicies.Update", - "async": true, - "parameters": [ - { - "name": "global_vm_extension_policy", - "type": "TYPE_STRING" - }, - { - "name": "global_vm_extension_policy_resource", - "type": ".google.cloud.compute.v1.GlobalVmExtensionPolicy" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "GlobalVmExtensionPoliciesClient", - "fullName": "google.cloud.compute.v1.GlobalVmExtensionPoliciesClient" - }, - "method": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1.GlobalVmExtensionPolicies.Update", - "service": { - "shortName": "GlobalVmExtensionPolicies", - "fullName": "google.cloud.compute.v1.GlobalVmExtensionPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_HealthChecks_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of all HealthCheck resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "health_checks.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.HealthChecks.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1.HealthChecksAggregatedList", - "client": { - "shortName": "HealthChecksClient", - "fullName": "google.cloud.compute.v1.HealthChecksClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.HealthChecks.AggregatedList", - "service": { - "shortName": "HealthChecks", - "fullName": "google.cloud.compute.v1.HealthChecks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_HealthChecks_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified HealthCheck resource.", - "canonical": true, - "file": "health_checks.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.HealthChecks.Delete", - "async": true, - "parameters": [ - { - "name": "health_check", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "HealthChecksClient", - "fullName": "google.cloud.compute.v1.HealthChecksClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.HealthChecks.Delete", - "service": { - "shortName": "HealthChecks", - "fullName": "google.cloud.compute.v1.HealthChecks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_HealthChecks_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified HealthCheck resource.", - "canonical": true, - "file": "health_checks.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.HealthChecks.Get", - "async": true, - "parameters": [ - { - "name": "health_check", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.HealthCheck", - "client": { - "shortName": "HealthChecksClient", - "fullName": "google.cloud.compute.v1.HealthChecksClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.HealthChecks.Get", - "service": { - "shortName": "HealthChecks", - "fullName": "google.cloud.compute.v1.HealthChecks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_HealthChecks_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a HealthCheck resource in the specified project using the data included in the request.", - "canonical": true, - "file": "health_checks.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.HealthChecks.Insert", - "async": true, - "parameters": [ - { - "name": "health_check_resource", - "type": ".google.cloud.compute.v1.HealthCheck" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "HealthChecksClient", - "fullName": "google.cloud.compute.v1.HealthChecksClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.HealthChecks.Insert", - "service": { - "shortName": "HealthChecks", - "fullName": "google.cloud.compute.v1.HealthChecks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_HealthChecks_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of HealthCheck resources available to the specified project.", - "canonical": true, - "file": "health_checks.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.HealthChecks.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.HealthCheckList", - "client": { - "shortName": "HealthChecksClient", - "fullName": "google.cloud.compute.v1.HealthChecksClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.HealthChecks.List", - "service": { - "shortName": "HealthChecks", - "fullName": "google.cloud.compute.v1.HealthChecks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_HealthChecks_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Updates a HealthCheck resource in the specified project using the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.", - "canonical": true, - "file": "health_checks.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.HealthChecks.Patch", - "async": true, - "parameters": [ - { - "name": "health_check", - "type": "TYPE_STRING" - }, - { - "name": "health_check_resource", - "type": ".google.cloud.compute.v1.HealthCheck" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "HealthChecksClient", - "fullName": "google.cloud.compute.v1.HealthChecksClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.HealthChecks.Patch", - "service": { - "shortName": "HealthChecks", - "fullName": "google.cloud.compute.v1.HealthChecks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_HealthChecks_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "health_checks.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.HealthChecks.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", - "client": { - "shortName": "HealthChecksClient", - "fullName": "google.cloud.compute.v1.HealthChecksClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.HealthChecks.TestIamPermissions", - "service": { - "shortName": "HealthChecks", - "fullName": "google.cloud.compute.v1.HealthChecks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_HealthChecks_Update_async", - "title": "AcceleratorTypes update Sample", - "origin": "API_DEFINITION", - "description": " Updates a HealthCheck resource in the specified project using the data included in the request.", - "canonical": true, - "file": "health_checks.update.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1.HealthChecks.Update", - "async": true, - "parameters": [ - { - "name": "health_check", - "type": "TYPE_STRING" - }, - { - "name": "health_check_resource", - "type": ".google.cloud.compute.v1.HealthCheck" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "HealthChecksClient", - "fullName": "google.cloud.compute.v1.HealthChecksClient" - }, - "method": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1.HealthChecks.Update", - "service": { - "shortName": "HealthChecks", - "fullName": "google.cloud.compute.v1.HealthChecks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_ImageFamilyViews_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the latest image that is part of an image family, is not deprecated and is rolled out in the specified zone.", - "canonical": true, - "file": "image_family_views.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.ImageFamilyViews.Get", - "async": true, - "parameters": [ - { - "name": "family", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.ImageFamilyView", - "client": { - "shortName": "ImageFamilyViewsClient", - "fullName": "google.cloud.compute.v1.ImageFamilyViewsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.ImageFamilyViews.Get", - "service": { - "shortName": "ImageFamilyViews", - "fullName": "google.cloud.compute.v1.ImageFamilyViews" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Images_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified image.", - "canonical": true, - "file": "images.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.Images.Delete", - "async": true, - "parameters": [ - { - "name": "image", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "ImagesClient", - "fullName": "google.cloud.compute.v1.ImagesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.Images.Delete", - "service": { - "shortName": "Images", - "fullName": "google.cloud.compute.v1.Images" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Images_Deprecate_async", - "title": "AcceleratorTypes deprecate Sample", - "origin": "API_DEFINITION", - "description": " Sets the deprecation status of an image. If an empty request body is given, clears the deprecation status instead.", - "canonical": true, - "file": "images.deprecate.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Deprecate", - "fullName": "google.cloud.compute.v1.Images.Deprecate", - "async": true, - "parameters": [ - { - "name": "deprecation_status_resource", - "type": ".google.cloud.compute.v1.DeprecationStatus" - }, - { - "name": "image", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "ImagesClient", - "fullName": "google.cloud.compute.v1.ImagesClient" - }, - "method": { - "shortName": "Deprecate", - "fullName": "google.cloud.compute.v1.Images.Deprecate", - "service": { - "shortName": "Images", - "fullName": "google.cloud.compute.v1.Images" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Images_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified image.", - "canonical": true, - "file": "images.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.Images.Get", - "async": true, - "parameters": [ - { - "name": "image", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Image", - "client": { - "shortName": "ImagesClient", - "fullName": "google.cloud.compute.v1.ImagesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.Images.Get", - "service": { - "shortName": "Images", - "fullName": "google.cloud.compute.v1.Images" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Images_GetFromFamily_async", - "title": "AcceleratorTypes getFromFamily Sample", - "origin": "API_DEFINITION", - "description": " Returns the latest image that is part of an image family and is not deprecated. For more information on image families, seePublic image families documentation.", - "canonical": true, - "file": "images.get_from_family.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFromFamily", - "fullName": "google.cloud.compute.v1.Images.GetFromFamily", - "async": true, - "parameters": [ - { - "name": "family", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Image", - "client": { - "shortName": "ImagesClient", - "fullName": "google.cloud.compute.v1.ImagesClient" - }, - "method": { - "shortName": "GetFromFamily", - "fullName": "google.cloud.compute.v1.Images.GetFromFamily", - "service": { - "shortName": "Images", - "fullName": "google.cloud.compute.v1.Images" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Images_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "images.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.Images.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "ImagesClient", - "fullName": "google.cloud.compute.v1.ImagesClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.Images.GetIamPolicy", - "service": { - "shortName": "Images", - "fullName": "google.cloud.compute.v1.Images" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Images_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates an image in the specified project using the data included in the request.", - "canonical": true, - "file": "images.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.Images.Insert", - "async": true, - "parameters": [ - { - "name": "force_create", - "type": "TYPE_BOOL" - }, - { - "name": "image_resource", - "type": ".google.cloud.compute.v1.Image" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "ImagesClient", - "fullName": "google.cloud.compute.v1.ImagesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.Images.Insert", - "service": { - "shortName": "Images", - "fullName": "google.cloud.compute.v1.Images" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Images_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of custom images available to the specified project. Custom images are images you create that belong to your project. This method does not get any images that belong to other projects, including publicly-available images, like Debian 8. If you want to get a list of publicly-available images, use this method to make a request to the respective image project, such as debian-cloud or windows-cloud.", - "canonical": true, - "file": "images.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.Images.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.ImageList", - "client": { - "shortName": "ImagesClient", - "fullName": "google.cloud.compute.v1.ImagesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.Images.List", - "service": { - "shortName": "Images", - "fullName": "google.cloud.compute.v1.Images" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Images_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patches the specified image with the data included in the request. Only the following fields can be modified: family, description, deprecation status.", - "canonical": true, - "file": "images.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.Images.Patch", - "async": true, - "parameters": [ - { - "name": "image", - "type": "TYPE_STRING" - }, - { - "name": "image_resource", - "type": ".google.cloud.compute.v1.Image" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "ImagesClient", - "fullName": "google.cloud.compute.v1.ImagesClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.Images.Patch", - "service": { - "shortName": "Images", - "fullName": "google.cloud.compute.v1.Images" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Images_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "images.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.Images.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "global_set_policy_request_resource", - "type": ".google.cloud.compute.v1.GlobalSetPolicyRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "ImagesClient", - "fullName": "google.cloud.compute.v1.ImagesClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.Images.SetIamPolicy", - "service": { - "shortName": "Images", - "fullName": "google.cloud.compute.v1.Images" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Images_SetLabels_async", - "title": "AcceleratorTypes setLabels Sample", - "origin": "API_DEFINITION", - "description": " Sets the labels on an image. To learn more about labels, read theLabeling Resources documentation.", - "canonical": true, - "file": "images.set_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1.Images.SetLabels", - "async": true, - "parameters": [ - { - "name": "global_set_labels_request_resource", - "type": ".google.cloud.compute.v1.GlobalSetLabelsRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "ImagesClient", - "fullName": "google.cloud.compute.v1.ImagesClient" - }, - "method": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1.Images.SetLabels", - "service": { - "shortName": "Images", - "fullName": "google.cloud.compute.v1.Images" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Images_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "images.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.Images.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", - "client": { - "shortName": "ImagesClient", - "fullName": "google.cloud.compute.v1.ImagesClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.Images.TestIamPermissions", - "service": { - "shortName": "Images", - "fullName": "google.cloud.compute.v1.Images" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstanceGroupManagerResizeRequests_Cancel_async", - "title": "AcceleratorTypes cancel Sample", - "origin": "API_DEFINITION", - "description": " Cancels the specified resize request and removes it from the queue. Cancelled resize request does no longer wait for the resources to be provisioned. Cancel is only possible for requests that are accepted in the queue.", - "canonical": true, - "file": "instance_group_manager_resize_requests.cancel.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Cancel", - "fullName": "google.cloud.compute.v1.InstanceGroupManagerResizeRequests.Cancel", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "resize_request", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstanceGroupManagerResizeRequestsClient", - "fullName": "google.cloud.compute.v1.InstanceGroupManagerResizeRequestsClient" - }, - "method": { - "shortName": "Cancel", - "fullName": "google.cloud.compute.v1.InstanceGroupManagerResizeRequests.Cancel", - "service": { - "shortName": "InstanceGroupManagerResizeRequests", - "fullName": "google.cloud.compute.v1.InstanceGroupManagerResizeRequests" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstanceGroupManagerResizeRequests_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified, inactive resize request. Requests that are still active cannot be deleted. Deleting request does not delete instances that were provisioned previously.", - "canonical": true, - "file": "instance_group_manager_resize_requests.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.InstanceGroupManagerResizeRequests.Delete", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "resize_request", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstanceGroupManagerResizeRequestsClient", - "fullName": "google.cloud.compute.v1.InstanceGroupManagerResizeRequestsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.InstanceGroupManagerResizeRequests.Delete", - "service": { - "shortName": "InstanceGroupManagerResizeRequests", - "fullName": "google.cloud.compute.v1.InstanceGroupManagerResizeRequests" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstanceGroupManagerResizeRequests_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns all of the details about the specified resize request.", - "canonical": true, - "file": "instance_group_manager_resize_requests.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.InstanceGroupManagerResizeRequests.Get", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resize_request", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.InstanceGroupManagerResizeRequest", - "client": { - "shortName": "InstanceGroupManagerResizeRequestsClient", - "fullName": "google.cloud.compute.v1.InstanceGroupManagerResizeRequestsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.InstanceGroupManagerResizeRequests.Get", - "service": { - "shortName": "InstanceGroupManagerResizeRequests", - "fullName": "google.cloud.compute.v1.InstanceGroupManagerResizeRequests" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstanceGroupManagerResizeRequests_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a new resize request that starts provisioning VMs immediately or queues VM creation.", - "canonical": true, - "file": "instance_group_manager_resize_requests.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.InstanceGroupManagerResizeRequests.Insert", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "instance_group_manager_resize_request_resource", - "type": ".google.cloud.compute.v1.InstanceGroupManagerResizeRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstanceGroupManagerResizeRequestsClient", - "fullName": "google.cloud.compute.v1.InstanceGroupManagerResizeRequestsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.InstanceGroupManagerResizeRequests.Insert", - "service": { - "shortName": "InstanceGroupManagerResizeRequests", - "fullName": "google.cloud.compute.v1.InstanceGroupManagerResizeRequests" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstanceGroupManagerResizeRequests_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of resize requests that are contained in the managed instance group.", - "canonical": true, - "file": "instance_group_manager_resize_requests.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 151, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.InstanceGroupManagerResizeRequests.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.InstanceGroupManagerResizeRequestsListResponse", - "client": { - "shortName": "InstanceGroupManagerResizeRequestsClient", - "fullName": "google.cloud.compute.v1.InstanceGroupManagerResizeRequestsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.InstanceGroupManagerResizeRequests.List", - "service": { - "shortName": "InstanceGroupManagerResizeRequests", - "fullName": "google.cloud.compute.v1.InstanceGroupManagerResizeRequests" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstanceGroupManagers_AbandonInstances_async", - "title": "AcceleratorTypes abandonInstances Sample", - "origin": "API_DEFINITION", - "description": " Flags the specified instances to be removed from the managed instance group. Abandoning an instance does not delete the instance, but it does remove the instance from any target pools that are applied by the managed instance group. This method reduces thetargetSize of the managed instance group by the number of instances that you abandon. This operation is marked asDONE when the action is scheduled even if the instances have not yet been removed from the group. You must separately verify the status of the abandoning action with thelistmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request.", - "canonical": true, - "file": "instance_group_managers.abandon_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AbandonInstances", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.AbandonInstances", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "instance_group_managers_abandon_instances_request_resource", - "type": ".google.cloud.compute.v1.InstanceGroupManagersAbandonInstancesRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1.InstanceGroupManagersClient" - }, - "method": { - "shortName": "AbandonInstances", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.AbandonInstances", - "service": { - "shortName": "InstanceGroupManagers", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstanceGroupManagers_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of managed instance groups and groups them by zone. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "instance_group_managers.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1.InstanceGroupManagerAggregatedList", - "client": { - "shortName": "InstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1.InstanceGroupManagersClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.AggregatedList", - "service": { - "shortName": "InstanceGroupManagers", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstanceGroupManagers_ApplyUpdatesToInstances_async", - "title": "AcceleratorTypes applyUpdatesToInstances Sample", - "origin": "API_DEFINITION", - "description": " Applies changes to selected instances on the managed instance group. This method can be used to apply new overrides and/or new versions.", - "canonical": true, - "file": "instance_group_managers.apply_updates_to_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ApplyUpdatesToInstances", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.ApplyUpdatesToInstances", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "instance_group_managers_apply_updates_request_resource", - "type": ".google.cloud.compute.v1.InstanceGroupManagersApplyUpdatesRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1.InstanceGroupManagersClient" - }, - "method": { - "shortName": "ApplyUpdatesToInstances", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.ApplyUpdatesToInstances", - "service": { - "shortName": "InstanceGroupManagers", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstanceGroupManagers_CreateInstances_async", - "title": "AcceleratorTypes createInstances Sample", - "origin": "API_DEFINITION", - "description": " Creates instances with per-instance configurations in this managed instance group. Instances are created using the current instance template. Thecreate instances operation is marked DONE if thecreateInstances request is successful. The underlying actions take additional time. You must separately verify the status of thecreating or actions with the listmanagedinstances method.", - "canonical": true, - "file": "instance_group_managers.create_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateInstances", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.CreateInstances", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "instance_group_managers_create_instances_request_resource", - "type": ".google.cloud.compute.v1.InstanceGroupManagersCreateInstancesRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1.InstanceGroupManagersClient" - }, - "method": { - "shortName": "CreateInstances", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.CreateInstances", - "service": { - "shortName": "InstanceGroupManagers", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstanceGroupManagers_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified managed instance group and all of the instances in that group. Note that the instance group must not belong to a backend service. Read Deleting an instance group for more information.", - "canonical": true, - "file": "instance_group_managers.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.Delete", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1.InstanceGroupManagersClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.Delete", - "service": { - "shortName": "InstanceGroupManagers", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstanceGroupManagers_DeleteInstances_async", - "title": "AcceleratorTypes deleteInstances Sample", - "origin": "API_DEFINITION", - "description": " Flags the specified instances in the managed instance group for immediate deletion. The instances are also removed from any target pools of which they were a member. This method reduces thetargetSize of the managed instance group by the number of instances that you delete. This operation is marked as DONE when the action is scheduled even if the instances are still being deleted. You must separately verify the status of the deleting action with thelistmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request.", - "canonical": true, - "file": "instance_group_managers.delete_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteInstances", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.DeleteInstances", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "instance_group_managers_delete_instances_request_resource", - "type": ".google.cloud.compute.v1.InstanceGroupManagersDeleteInstancesRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1.InstanceGroupManagersClient" - }, - "method": { - "shortName": "DeleteInstances", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.DeleteInstances", - "service": { - "shortName": "InstanceGroupManagers", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstanceGroupManagers_DeletePerInstanceConfigs_async", - "title": "AcceleratorTypes deletePerInstanceConfigs Sample", - "origin": "API_DEFINITION", - "description": " Deletes selected per-instance configurations for the managed instance group.", - "canonical": true, - "file": "instance_group_managers.delete_per_instance_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePerInstanceConfigs", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.DeletePerInstanceConfigs", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "instance_group_managers_delete_per_instance_configs_req_resource", - "type": ".google.cloud.compute.v1.InstanceGroupManagersDeletePerInstanceConfigsReq" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1.InstanceGroupManagersClient" - }, - "method": { - "shortName": "DeletePerInstanceConfigs", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.DeletePerInstanceConfigs", - "service": { - "shortName": "InstanceGroupManagers", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstanceGroupManagers_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns all of the details about the specified managed instance group.", - "canonical": true, - "file": "instance_group_managers.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.Get", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.InstanceGroupManager", - "client": { - "shortName": "InstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1.InstanceGroupManagersClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.Get", - "service": { - "shortName": "InstanceGroupManagers", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstanceGroupManagers_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a managed instance group using the information that you specify in the request. After the group is created, instances in the group are created using the specified instance template. This operation is marked as DONE when the group is created even if the instances in the group have not yet been created. You must separately verify the status of the individual instances with thelistmanagedinstances method. A managed instance group can have up to 1000 VM instances per group. Please contact Cloud Support if you need an increase in this limit.", - "canonical": true, - "file": "instance_group_managers.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.Insert", - "async": true, - "parameters": [ - { - "name": "instance_group_manager_resource", - "type": ".google.cloud.compute.v1.InstanceGroupManager" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1.InstanceGroupManagersClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.Insert", - "service": { - "shortName": "InstanceGroupManagers", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstanceGroupManagers_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of managed instance groups that are contained within the specified project and zone.", - "canonical": true, - "file": "instance_group_managers.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 146, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.InstanceGroupManagerList", - "client": { - "shortName": "InstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1.InstanceGroupManagersClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.List", - "service": { - "shortName": "InstanceGroupManagers", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstanceGroupManagers_ListErrors_async", - "title": "AcceleratorTypes listErrors Sample", - "origin": "API_DEFINITION", - "description": " Lists all errors thrown by actions on instances for a given managed instance group. The filter and orderBy query parameters are not supported.", - "canonical": true, - "file": "instance_group_managers.list_errors.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListErrors", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.ListErrors", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.InstanceGroupManagersListErrorsResponse", - "client": { - "shortName": "InstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1.InstanceGroupManagersClient" - }, - "method": { - "shortName": "ListErrors", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.ListErrors", - "service": { - "shortName": "InstanceGroupManagers", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstanceGroupManagers_ListManagedInstances_async", - "title": "AcceleratorTypes listManagedInstances Sample", - "origin": "API_DEFINITION", - "description": " Lists all of the instances in the managed instance group. Each instance in the list has a currentAction, which indicates the action that the managed instance group is performing on the instance. For example, if the group is still creating an instance, the currentAction is CREATING. If a previous action failed, the list displays the errors for that failed action. The orderBy query parameter is not supported. The `pageToken` query parameter is supported only if the group's `listManagedInstancesResults` field is set to `PAGINATED`.", - "canonical": true, - "file": "instance_group_managers.list_managed_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 151, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListManagedInstances", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.ListManagedInstances", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.InstanceGroupManagersListManagedInstancesResponse", - "client": { - "shortName": "InstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1.InstanceGroupManagersClient" - }, - "method": { - "shortName": "ListManagedInstances", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.ListManagedInstances", - "service": { - "shortName": "InstanceGroupManagers", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstanceGroupManagers_ListPerInstanceConfigs_async", - "title": "AcceleratorTypes listPerInstanceConfigs Sample", - "origin": "API_DEFINITION", - "description": " Lists all of the per-instance configurations defined for the managed instance group. The orderBy query parameter is not supported.", - "canonical": true, - "file": "instance_group_managers.list_per_instance_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 152, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPerInstanceConfigs", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.ListPerInstanceConfigs", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.InstanceGroupManagersListPerInstanceConfigsResp", - "client": { - "shortName": "InstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1.InstanceGroupManagersClient" - }, - "method": { - "shortName": "ListPerInstanceConfigs", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.ListPerInstanceConfigs", - "service": { - "shortName": "InstanceGroupManagers", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstanceGroupManagers_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Updates a managed instance group using the information that you specify in the request. This operation is marked as DONE when the group is patched even if the instances in the group are still in the process of being patched. You must separately verify the status of the individual instances with thelistManagedInstances method. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules. If you update your group to specify a new template or instance configuration, it's possible that your intended specification for each VM in the group is different from the current state of that VM. To learn how to apply an updated configuration to the VMs in a MIG, seeUpdating instances in a MIG.", - "canonical": true, - "file": "instance_group_managers.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.Patch", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "instance_group_manager_resource", - "type": ".google.cloud.compute.v1.InstanceGroupManager" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1.InstanceGroupManagersClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.Patch", - "service": { - "shortName": "InstanceGroupManagers", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstanceGroupManagers_PatchPerInstanceConfigs_async", - "title": "AcceleratorTypes patchPerInstanceConfigs Sample", - "origin": "API_DEFINITION", - "description": " Inserts or patches per-instance configurations for the managed instance group. perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch.", - "canonical": true, - "file": "instance_group_managers.patch_per_instance_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PatchPerInstanceConfigs", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.PatchPerInstanceConfigs", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "instance_group_managers_patch_per_instance_configs_req_resource", - "type": ".google.cloud.compute.v1.InstanceGroupManagersPatchPerInstanceConfigsReq" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1.InstanceGroupManagersClient" - }, - "method": { - "shortName": "PatchPerInstanceConfigs", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.PatchPerInstanceConfigs", - "service": { - "shortName": "InstanceGroupManagers", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstanceGroupManagers_RecreateInstances_async", - "title": "AcceleratorTypes recreateInstances Sample", - "origin": "API_DEFINITION", - "description": " Flags the specified VM instances in the managed instance group to be immediately recreated. Each instance is recreated using the group's current configuration. This operation is marked as DONE when the flag is set even if the instances have not yet been recreated. You must separately verify the status of each instance by checking itscurrentAction field; for more information, see Checking the status of managed instances. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request.", - "canonical": true, - "file": "instance_group_managers.recreate_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RecreateInstances", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.RecreateInstances", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "instance_group_managers_recreate_instances_request_resource", - "type": ".google.cloud.compute.v1.InstanceGroupManagersRecreateInstancesRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1.InstanceGroupManagersClient" - }, - "method": { - "shortName": "RecreateInstances", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.RecreateInstances", - "service": { - "shortName": "InstanceGroupManagers", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstanceGroupManagers_Resize_async", - "title": "AcceleratorTypes resize Sample", - "origin": "API_DEFINITION", - "description": " Resizes the managed instance group. If you increase the size, the group creates new instances using the current instance template. If you decrease the size, the group deletes instances. The resize operation is markedDONE when the resize actions are scheduled even if the group has not yet added or deleted any instances. You must separately verify the status of the creating or deleting actions with thelistmanagedinstances method. When resizing down, the instance group arbitrarily chooses the order in which VMs are deleted. The group takes into account some VM attributes when making the selection including: + The status of the VM instance. + The health of the VM instance. + The instance template version the VM is based on. + For regional managed instance groups, the location of the VM instance. This list is subject to change. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted.", - "canonical": true, - "file": "instance_group_managers.resize.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Resize", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.Resize", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "size", - "type": "TYPE_INT32" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1.InstanceGroupManagersClient" - }, - "method": { - "shortName": "Resize", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.Resize", - "service": { - "shortName": "InstanceGroupManagers", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstanceGroupManagers_ResumeInstances_async", - "title": "AcceleratorTypes resumeInstances Sample", - "origin": "API_DEFINITION", - "description": " Flags the specified instances in the managed instance group to be resumed. This method increases thetargetSize and decreases the targetSuspendedSize of the managed instance group by the number of instances that you resume. The resumeInstances operation is marked DONE if the resumeInstances request is successful. The underlying actions take additional time. You must separately verify the status of theRESUMING action with thelistmanagedinstances method. In this request, you can only specify instances that are suspended. For example, if an instance was previously suspended using the suspendInstances method, it can be resumed using the resumeInstances method. If a health check is attached to the managed instance group, the specified instances will be verified as healthy after they are resumed. You can specify a maximum of 1000 instances with this method per request.", - "canonical": true, - "file": "instance_group_managers.resume_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResumeInstances", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.ResumeInstances", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "instance_group_managers_resume_instances_request_resource", - "type": ".google.cloud.compute.v1.InstanceGroupManagersResumeInstancesRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1.InstanceGroupManagersClient" - }, - "method": { - "shortName": "ResumeInstances", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.ResumeInstances", - "service": { - "shortName": "InstanceGroupManagers", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstanceGroupManagers_SetInstanceTemplate_async", - "title": "AcceleratorTypes setInstanceTemplate Sample", - "origin": "API_DEFINITION", - "description": " Specifies the instance template to use when creating new instances in this group. The templates for existing instances in the group do not change unless you run recreateInstances, runapplyUpdatesToInstances, or set the group'supdatePolicy.type to PROACTIVE.", - "canonical": true, - "file": "instance_group_managers.set_instance_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetInstanceTemplate", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.SetInstanceTemplate", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "instance_group_managers_set_instance_template_request_resource", - "type": ".google.cloud.compute.v1.InstanceGroupManagersSetInstanceTemplateRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1.InstanceGroupManagersClient" - }, - "method": { - "shortName": "SetInstanceTemplate", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.SetInstanceTemplate", - "service": { - "shortName": "InstanceGroupManagers", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstanceGroupManagers_SetTargetPools_async", - "title": "AcceleratorTypes setTargetPools Sample", - "origin": "API_DEFINITION", - "description": " Modifies the target pools to which all instances in this managed instance group are assigned. The target pools automatically apply to all of the instances in the managed instance group. This operation is markedDONE when you make the request even if the instances have not yet been added to their target pools. The change might take some time to apply to all of the instances in the group depending on the size of the group.", - "canonical": true, - "file": "instance_group_managers.set_target_pools.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetTargetPools", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.SetTargetPools", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "instance_group_managers_set_target_pools_request_resource", - "type": ".google.cloud.compute.v1.InstanceGroupManagersSetTargetPoolsRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1.InstanceGroupManagersClient" - }, - "method": { - "shortName": "SetTargetPools", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.SetTargetPools", - "service": { - "shortName": "InstanceGroupManagers", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstanceGroupManagers_StartInstances_async", - "title": "AcceleratorTypes startInstances Sample", - "origin": "API_DEFINITION", - "description": " Flags the specified instances in the managed instance group to be started. This method increases thetargetSize and decreases the targetStoppedSize of the managed instance group by the number of instances that you start. The startInstances operation is marked DONE if the startInstances request is successful. The underlying actions take additional time. You must separately verify the status of theSTARTING action with thelistmanagedinstances method. In this request, you can only specify instances that are stopped. For example, if an instance was previously stopped using the stopInstances method, it can be started using the startInstances method. If a health check is attached to the managed instance group, the specified instances will be verified as healthy after they are started. You can specify a maximum of 1000 instances with this method per request.", - "canonical": true, - "file": "instance_group_managers.start_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StartInstances", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.StartInstances", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "instance_group_managers_start_instances_request_resource", - "type": ".google.cloud.compute.v1.InstanceGroupManagersStartInstancesRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1.InstanceGroupManagersClient" - }, - "method": { - "shortName": "StartInstances", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.StartInstances", - "service": { - "shortName": "InstanceGroupManagers", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstanceGroupManagers_StopInstances_async", - "title": "AcceleratorTypes stopInstances Sample", - "origin": "API_DEFINITION", - "description": " Flags the specified instances in the managed instance group to be immediately stopped. You can only specify instances that are running in this request. This method reduces thetargetSize and increases the targetStoppedSize of the managed instance group by the number of instances that you stop. The stopInstances operation is marked DONE if the stopInstances request is successful. The underlying actions take additional time. You must separately verify the status of theSTOPPING action with thelistmanagedinstances method. If the standbyPolicy.initialDelaySec field is set, the group delays stopping the instances until initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was created). This delay gives your application time to set itself up and initialize on the instance. If more thaninitialDelaySec seconds have passed sinceinstance.creationTimestamp when this method is called, there will be zero delay. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is stopped. Stopped instances can be started using the startInstances method. You can specify a maximum of 1000 instances with this method per request.", - "canonical": true, - "file": "instance_group_managers.stop_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StopInstances", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.StopInstances", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "instance_group_managers_stop_instances_request_resource", - "type": ".google.cloud.compute.v1.InstanceGroupManagersStopInstancesRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1.InstanceGroupManagersClient" - }, - "method": { - "shortName": "StopInstances", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.StopInstances", - "service": { - "shortName": "InstanceGroupManagers", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstanceGroupManagers_SuspendInstances_async", - "title": "AcceleratorTypes suspendInstances Sample", - "origin": "API_DEFINITION", - "description": " Flags the specified instances in the managed instance group to be immediately suspended. You can only specify instances that are running in this request. This method reduces thetargetSize and increases the targetSuspendedSize of the managed instance group by the number of instances that you suspend. The suspendInstances operation is marked DONE if the suspendInstances request is successful. The underlying actions take additional time. You must separately verify the status of theSUSPENDING action with thelistmanagedinstances method. If the standbyPolicy.initialDelaySec field is set, the group delays suspension of the instances until initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was created). This delay gives your application time to set itself up and initialize on the instance. If more thaninitialDelaySec seconds have passed sinceinstance.creationTimestamp when this method is called, there will be zero delay. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is suspended. Suspended instances can be resumed using the resumeInstances method. You can specify a maximum of 1000 instances with this method per request.", - "canonical": true, - "file": "instance_group_managers.suspend_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SuspendInstances", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.SuspendInstances", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "instance_group_managers_suspend_instances_request_resource", - "type": ".google.cloud.compute.v1.InstanceGroupManagersSuspendInstancesRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1.InstanceGroupManagersClient" - }, - "method": { - "shortName": "SuspendInstances", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.SuspendInstances", - "service": { - "shortName": "InstanceGroupManagers", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstanceGroupManagers_UpdatePerInstanceConfigs_async", - "title": "AcceleratorTypes updatePerInstanceConfigs Sample", - "origin": "API_DEFINITION", - "description": " Inserts or updates per-instance configurations for the managed instance group. perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch.", - "canonical": true, - "file": "instance_group_managers.update_per_instance_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdatePerInstanceConfigs", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.UpdatePerInstanceConfigs", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "instance_group_managers_update_per_instance_configs_req_resource", - "type": ".google.cloud.compute.v1.InstanceGroupManagersUpdatePerInstanceConfigsReq" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1.InstanceGroupManagersClient" - }, - "method": { - "shortName": "UpdatePerInstanceConfigs", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers.UpdatePerInstanceConfigs", - "service": { - "shortName": "InstanceGroupManagers", - "fullName": "google.cloud.compute.v1.InstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstanceGroups_AddInstances_async", - "title": "AcceleratorTypes addInstances Sample", - "origin": "API_DEFINITION", - "description": " Adds a list of instances to the specified instance group. All of the instances in the instance group must be in the same network/subnetwork. Read Adding instances for more information.", - "canonical": true, - "file": "instance_groups.add_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddInstances", - "fullName": "google.cloud.compute.v1.InstanceGroups.AddInstances", - "async": true, - "parameters": [ - { - "name": "instance_group", - "type": "TYPE_STRING" - }, - { - "name": "instance_groups_add_instances_request_resource", - "type": ".google.cloud.compute.v1.InstanceGroupsAddInstancesRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstanceGroupsClient", - "fullName": "google.cloud.compute.v1.InstanceGroupsClient" - }, - "method": { - "shortName": "AddInstances", - "fullName": "google.cloud.compute.v1.InstanceGroups.AddInstances", - "service": { - "shortName": "InstanceGroups", - "fullName": "google.cloud.compute.v1.InstanceGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstanceGroups_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of instance groups and sorts them by zone. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "instance_groups.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.InstanceGroups.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1.InstanceGroupAggregatedList", - "client": { - "shortName": "InstanceGroupsClient", - "fullName": "google.cloud.compute.v1.InstanceGroupsClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.InstanceGroups.AggregatedList", - "service": { - "shortName": "InstanceGroups", - "fullName": "google.cloud.compute.v1.InstanceGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstanceGroups_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified instance group. The instances in the group are not deleted. Note that instance group must not belong to a backend service. Read Deleting an instance group for more information.", - "canonical": true, - "file": "instance_groups.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.InstanceGroups.Delete", - "async": true, - "parameters": [ - { - "name": "instance_group", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstanceGroupsClient", - "fullName": "google.cloud.compute.v1.InstanceGroupsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.InstanceGroups.Delete", - "service": { - "shortName": "InstanceGroups", - "fullName": "google.cloud.compute.v1.InstanceGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstanceGroups_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified zonal instance group. Get a list of available zonal instance groups by making a list() request. For managed instance groups, use theinstanceGroupManagers or regionInstanceGroupManagers methods instead.", - "canonical": true, - "file": "instance_groups.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.InstanceGroups.Get", - "async": true, - "parameters": [ - { - "name": "instance_group", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.InstanceGroup", - "client": { - "shortName": "InstanceGroupsClient", - "fullName": "google.cloud.compute.v1.InstanceGroupsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.InstanceGroups.Get", - "service": { - "shortName": "InstanceGroups", - "fullName": "google.cloud.compute.v1.InstanceGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstanceGroups_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates an instance group in the specified project using the parameters that are included in the request.", - "canonical": true, - "file": "instance_groups.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.InstanceGroups.Insert", - "async": true, - "parameters": [ - { - "name": "instance_group_resource", - "type": ".google.cloud.compute.v1.InstanceGroup" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstanceGroupsClient", - "fullName": "google.cloud.compute.v1.InstanceGroupsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.InstanceGroups.Insert", - "service": { - "shortName": "InstanceGroups", - "fullName": "google.cloud.compute.v1.InstanceGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstanceGroups_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of zonal instance group resources contained within the specified zone. For managed instance groups, use theinstanceGroupManagers or regionInstanceGroupManagers methods instead.", - "canonical": true, - "file": "instance_groups.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 146, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.InstanceGroups.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.InstanceGroupList", - "client": { - "shortName": "InstanceGroupsClient", - "fullName": "google.cloud.compute.v1.InstanceGroupsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.InstanceGroups.List", - "service": { - "shortName": "InstanceGroups", - "fullName": "google.cloud.compute.v1.InstanceGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstanceGroups_ListInstances_async", - "title": "AcceleratorTypes listInstances Sample", - "origin": "API_DEFINITION", - "description": " Lists the instances in the specified instance group. The orderBy query parameter is not supported. The filter query parameter is supported, but only for expressions that use `eq` (equal) or `ne` (not equal) operators.", - "canonical": true, - "file": "instance_groups.list_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 157, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListInstances", - "fullName": "google.cloud.compute.v1.InstanceGroups.ListInstances", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "instance_group", - "type": "TYPE_STRING" - }, - { - "name": "instance_groups_list_instances_request_resource", - "type": ".google.cloud.compute.v1.InstanceGroupsListInstancesRequest" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.InstanceGroupsListInstances", - "client": { - "shortName": "InstanceGroupsClient", - "fullName": "google.cloud.compute.v1.InstanceGroupsClient" - }, - "method": { - "shortName": "ListInstances", - "fullName": "google.cloud.compute.v1.InstanceGroups.ListInstances", - "service": { - "shortName": "InstanceGroups", - "fullName": "google.cloud.compute.v1.InstanceGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstanceGroups_RemoveInstances_async", - "title": "AcceleratorTypes removeInstances Sample", - "origin": "API_DEFINITION", - "description": " Removes one or more instances from the specified instance group, but does not delete those instances. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration before the VM instance is removed or deleted.", - "canonical": true, - "file": "instance_groups.remove_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveInstances", - "fullName": "google.cloud.compute.v1.InstanceGroups.RemoveInstances", - "async": true, - "parameters": [ - { - "name": "instance_group", - "type": "TYPE_STRING" - }, - { - "name": "instance_groups_remove_instances_request_resource", - "type": ".google.cloud.compute.v1.InstanceGroupsRemoveInstancesRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstanceGroupsClient", - "fullName": "google.cloud.compute.v1.InstanceGroupsClient" - }, - "method": { - "shortName": "RemoveInstances", - "fullName": "google.cloud.compute.v1.InstanceGroups.RemoveInstances", - "service": { - "shortName": "InstanceGroups", - "fullName": "google.cloud.compute.v1.InstanceGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstanceGroups_SetNamedPorts_async", - "title": "AcceleratorTypes setNamedPorts Sample", - "origin": "API_DEFINITION", - "description": " Sets the named ports for the specified instance group.", - "canonical": true, - "file": "instance_groups.set_named_ports.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetNamedPorts", - "fullName": "google.cloud.compute.v1.InstanceGroups.SetNamedPorts", - "async": true, - "parameters": [ - { - "name": "instance_group", - "type": "TYPE_STRING" - }, - { - "name": "instance_groups_set_named_ports_request_resource", - "type": ".google.cloud.compute.v1.InstanceGroupsSetNamedPortsRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstanceGroupsClient", - "fullName": "google.cloud.compute.v1.InstanceGroupsClient" - }, - "method": { - "shortName": "SetNamedPorts", - "fullName": "google.cloud.compute.v1.InstanceGroups.SetNamedPorts", - "service": { - "shortName": "InstanceGroups", - "fullName": "google.cloud.compute.v1.InstanceGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstanceGroups_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "instance_groups.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.InstanceGroups.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1.TestPermissionsRequest" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", - "client": { - "shortName": "InstanceGroupsClient", - "fullName": "google.cloud.compute.v1.InstanceGroupsClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.InstanceGroups.TestIamPermissions", - "service": { - "shortName": "InstanceGroups", - "fullName": "google.cloud.compute.v1.InstanceGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Instances_AddAccessConfig_async", - "title": "AcceleratorTypes addAccessConfig Sample", - "origin": "API_DEFINITION", - "description": " Adds an access config to an instance's network interface.", - "canonical": true, - "file": "instances.add_access_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddAccessConfig", - "fullName": "google.cloud.compute.v1.Instances.AddAccessConfig", - "async": true, - "parameters": [ - { - "name": "access_config_resource", - "type": ".google.cloud.compute.v1.AccessConfig" - }, - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "network_interface", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1.InstancesClient" - }, - "method": { - "shortName": "AddAccessConfig", - "fullName": "google.cloud.compute.v1.Instances.AddAccessConfig", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1.Instances" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Instances_AddNetworkInterface_async", - "title": "AcceleratorTypes addNetworkInterface Sample", - "origin": "API_DEFINITION", - "description": " Adds one dynamic network interface to an active instance.", - "canonical": true, - "file": "instances.add_network_interface.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddNetworkInterface", - "fullName": "google.cloud.compute.v1.Instances.AddNetworkInterface", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "network_interface_resource", - "type": ".google.cloud.compute.v1.NetworkInterface" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1.InstancesClient" - }, - "method": { - "shortName": "AddNetworkInterface", - "fullName": "google.cloud.compute.v1.Instances.AddNetworkInterface", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1.Instances" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Instances_AddResourcePolicies_async", - "title": "AcceleratorTypes addResourcePolicies Sample", - "origin": "API_DEFINITION", - "description": " Adds existing resource policies to an instance. You can only add one policy right now which will be applied to this instance for scheduling live migrations.", - "canonical": true, - "file": "instances.add_resource_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddResourcePolicies", - "fullName": "google.cloud.compute.v1.Instances.AddResourcePolicies", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "instances_add_resource_policies_request_resource", - "type": ".google.cloud.compute.v1.InstancesAddResourcePoliciesRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1.InstancesClient" - }, - "method": { - "shortName": "AddResourcePolicies", - "fullName": "google.cloud.compute.v1.Instances.AddResourcePolicies", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1.Instances" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Instances_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of all of the instances in your project across all regions and zones. The performance of this method degrades when a filter is specified on a project that has a very large number of instances. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "instances.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.Instances.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1.InstanceAggregatedList", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1.InstancesClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.Instances.AggregatedList", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1.Instances" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Instances_AttachDisk_async", - "title": "AcceleratorTypes attachDisk Sample", - "origin": "API_DEFINITION", - "description": " Attaches an existing Disk resource to an instance. You must first create the disk before you can attach it. It is not possible to create and attach a disk at the same time. For more information, readAdding a persistent disk to your instance.", - "canonical": true, - "file": "instances.attach_disk.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 88, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AttachDisk", - "fullName": "google.cloud.compute.v1.Instances.AttachDisk", - "async": true, - "parameters": [ - { - "name": "attached_disk_resource", - "type": ".google.cloud.compute.v1.AttachedDisk" - }, - { - "name": "force_attach", - "type": "TYPE_BOOL" - }, - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1.InstancesClient" - }, - "method": { - "shortName": "AttachDisk", - "fullName": "google.cloud.compute.v1.Instances.AttachDisk", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1.Instances" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Instances_BulkInsert_async", - "title": "AcceleratorTypes bulkInsert Sample", - "origin": "API_DEFINITION", - "description": " Creates multiple instances. Count specifies the number of instances to create. For more information, seeAbout bulk creation of VMs.", - "canonical": true, - "file": "instances.bulk_insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BulkInsert", - "fullName": "google.cloud.compute.v1.Instances.BulkInsert", - "async": true, - "parameters": [ - { - "name": "bulk_insert_instance_resource_resource", - "type": ".google.cloud.compute.v1.BulkInsertInstanceResource" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1.InstancesClient" - }, - "method": { - "shortName": "BulkInsert", - "fullName": "google.cloud.compute.v1.Instances.BulkInsert", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1.Instances" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Instances_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified Instance resource. For more information, seeDeleting an instance.", - "canonical": true, - "file": "instances.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.Instances.Delete", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1.InstancesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.Instances.Delete", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1.Instances" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Instances_DeleteAccessConfig_async", - "title": "AcceleratorTypes deleteAccessConfig Sample", - "origin": "API_DEFINITION", - "description": " Deletes an access config from an instance's network interface.", - "canonical": true, - "file": "instances.delete_access_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAccessConfig", - "fullName": "google.cloud.compute.v1.Instances.DeleteAccessConfig", - "async": true, - "parameters": [ - { - "name": "access_config", - "type": "TYPE_STRING" - }, - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "network_interface", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1.InstancesClient" - }, - "method": { - "shortName": "DeleteAccessConfig", - "fullName": "google.cloud.compute.v1.Instances.DeleteAccessConfig", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1.Instances" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Instances_DeleteNetworkInterface_async", - "title": "AcceleratorTypes deleteNetworkInterface Sample", - "origin": "API_DEFINITION", - "description": " Deletes one dynamic network interface from an active instance. InstancesDeleteNetworkInterfaceRequest indicates: - instance from which to delete, using project+zone+resource_id fields; - dynamic network interface to be deleted, using network_interface_name field;", - "canonical": true, - "file": "instances.delete_network_interface.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteNetworkInterface", - "fullName": "google.cloud.compute.v1.Instances.DeleteNetworkInterface", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "network_interface_name", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1.InstancesClient" - }, - "method": { - "shortName": "DeleteNetworkInterface", - "fullName": "google.cloud.compute.v1.Instances.DeleteNetworkInterface", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1.Instances" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Instances_DetachDisk_async", - "title": "AcceleratorTypes detachDisk Sample", - "origin": "API_DEFINITION", - "description": " Detaches a disk from an instance.", - "canonical": true, - "file": "instances.detach_disk.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DetachDisk", - "fullName": "google.cloud.compute.v1.Instances.DetachDisk", - "async": true, - "parameters": [ - { - "name": "device_name", - "type": "TYPE_STRING" - }, - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1.InstancesClient" - }, - "method": { - "shortName": "DetachDisk", - "fullName": "google.cloud.compute.v1.Instances.DetachDisk", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1.Instances" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Instances_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified Instance resource.", - "canonical": true, - "file": "instances.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.Instances.Get", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Instance", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1.InstancesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.Instances.Get", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1.Instances" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Instances_GetEffectiveFirewalls_async", - "title": "AcceleratorTypes getEffectiveFirewalls Sample", - "origin": "API_DEFINITION", - "description": " Returns effective firewalls applied to an interface of the instance.", - "canonical": true, - "file": "instances.get_effective_firewalls.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEffectiveFirewalls", - "fullName": "google.cloud.compute.v1.Instances.GetEffectiveFirewalls", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "network_interface", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.InstancesGetEffectiveFirewallsResponse", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1.InstancesClient" - }, - "method": { - "shortName": "GetEffectiveFirewalls", - "fullName": "google.cloud.compute.v1.Instances.GetEffectiveFirewalls", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1.Instances" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Instances_GetGuestAttributes_async", - "title": "AcceleratorTypes getGuestAttributes Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified guest attributes entry.", - "canonical": true, - "file": "instances.get_guest_attributes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetGuestAttributes", - "fullName": "google.cloud.compute.v1.Instances.GetGuestAttributes", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "query_path", - "type": "TYPE_STRING" - }, - { - "name": "variable_key", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.GuestAttributes", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1.InstancesClient" - }, - "method": { - "shortName": "GetGuestAttributes", - "fullName": "google.cloud.compute.v1.Instances.GetGuestAttributes", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1.Instances" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Instances_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "instances.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.Instances.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1.InstancesClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.Instances.GetIamPolicy", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1.Instances" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Instances_GetScreenshot_async", - "title": "AcceleratorTypes getScreenshot Sample", - "origin": "API_DEFINITION", - "description": " Returns the screenshot from the specified instance.", - "canonical": true, - "file": "instances.get_screenshot.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetScreenshot", - "fullName": "google.cloud.compute.v1.Instances.GetScreenshot", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Screenshot", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1.InstancesClient" - }, - "method": { - "shortName": "GetScreenshot", - "fullName": "google.cloud.compute.v1.Instances.GetScreenshot", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1.Instances" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Instances_GetSerialPortOutput_async", - "title": "AcceleratorTypes getSerialPortOutput Sample", - "origin": "API_DEFINITION", - "description": " Returns the last 1 MB of serial port output from the specified instance.", - "canonical": true, - "file": "instances.get_serial_port_output.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSerialPortOutput", - "fullName": "google.cloud.compute.v1.Instances.GetSerialPortOutput", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "port", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "start", - "type": "TYPE_INT64" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.SerialPortOutput", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1.InstancesClient" - }, - "method": { - "shortName": "GetSerialPortOutput", - "fullName": "google.cloud.compute.v1.Instances.GetSerialPortOutput", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1.Instances" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Instances_GetShieldedInstanceIdentity_async", - "title": "AcceleratorTypes getShieldedInstanceIdentity Sample", - "origin": "API_DEFINITION", - "description": " Returns the Shielded Instance Identity of an instance", - "canonical": true, - "file": "instances.get_shielded_instance_identity.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetShieldedInstanceIdentity", - "fullName": "google.cloud.compute.v1.Instances.GetShieldedInstanceIdentity", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.ShieldedInstanceIdentity", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1.InstancesClient" - }, - "method": { - "shortName": "GetShieldedInstanceIdentity", - "fullName": "google.cloud.compute.v1.Instances.GetShieldedInstanceIdentity", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1.Instances" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Instances_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates an instance resource in the specified project using the data included in the request.", - "canonical": true, - "file": "instances.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 95, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.Instances.Insert", - "async": true, - "parameters": [ - { - "name": "instance_resource", - "type": ".google.cloud.compute.v1.Instance" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "source_instance_template", - "type": "TYPE_STRING" - }, - { - "name": "source_machine_image", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1.InstancesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.Instances.Insert", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1.Instances" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Instances_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of instances contained within the specified zone.", - "canonical": true, - "file": "instances.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.Instances.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.InstanceList", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1.InstancesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.Instances.List", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1.Instances" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Instances_ListReferrers_async", - "title": "AcceleratorTypes listReferrers Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of resources that refer to the VM instance specified in the request. For example, if the VM instance is part of a managed or unmanaged instance group, the referrers list includes the instance group. For more information, readViewing referrers to VM instances.", - "canonical": true, - "file": "instances.list_referrers.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 151, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListReferrers", - "fullName": "google.cloud.compute.v1.Instances.ListReferrers", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.InstanceListReferrers", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1.InstancesClient" - }, - "method": { - "shortName": "ListReferrers", - "fullName": "google.cloud.compute.v1.Instances.ListReferrers", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1.Instances" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Instances_PerformMaintenance_async", - "title": "AcceleratorTypes performMaintenance Sample", - "origin": "API_DEFINITION", - "description": " Perform a manual maintenance on the instance.", - "canonical": true, - "file": "instances.perform_maintenance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PerformMaintenance", - "fullName": "google.cloud.compute.v1.Instances.PerformMaintenance", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1.InstancesClient" - }, - "method": { - "shortName": "PerformMaintenance", - "fullName": "google.cloud.compute.v1.Instances.PerformMaintenance", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1.Instances" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Instances_RemoveResourcePolicies_async", - "title": "AcceleratorTypes removeResourcePolicies Sample", - "origin": "API_DEFINITION", - "description": " Removes resource policies from an instance.", - "canonical": true, - "file": "instances.remove_resource_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveResourcePolicies", - "fullName": "google.cloud.compute.v1.Instances.RemoveResourcePolicies", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "instances_remove_resource_policies_request_resource", - "type": ".google.cloud.compute.v1.InstancesRemoveResourcePoliciesRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1.InstancesClient" - }, - "method": { - "shortName": "RemoveResourcePolicies", - "fullName": "google.cloud.compute.v1.Instances.RemoveResourcePolicies", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1.Instances" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Instances_ReportHostAsFaulty_async", - "title": "AcceleratorTypes reportHostAsFaulty Sample", - "origin": "API_DEFINITION", - "description": " Mark the host as faulty and try to restart the instance on a new host.", - "canonical": true, - "file": "instances.report_host_as_faulty.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReportHostAsFaulty", - "fullName": "google.cloud.compute.v1.Instances.ReportHostAsFaulty", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "instances_report_host_as_faulty_request_resource", - "type": ".google.cloud.compute.v1.InstancesReportHostAsFaultyRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1.InstancesClient" - }, - "method": { - "shortName": "ReportHostAsFaulty", - "fullName": "google.cloud.compute.v1.Instances.ReportHostAsFaulty", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1.Instances" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Instances_Reset_async", - "title": "AcceleratorTypes reset Sample", - "origin": "API_DEFINITION", - "description": " Performs a reset on the instance. This is a hard reset. The VM does not do a graceful shutdown. For more information, seeResetting an instance.", - "canonical": true, - "file": "instances.reset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Reset", - "fullName": "google.cloud.compute.v1.Instances.Reset", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1.InstancesClient" - }, - "method": { - "shortName": "Reset", - "fullName": "google.cloud.compute.v1.Instances.Reset", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1.Instances" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Instances_Resume_async", - "title": "AcceleratorTypes resume Sample", - "origin": "API_DEFINITION", - "description": " Resumes an instance that was suspended using theinstances().suspend method.", - "canonical": true, - "file": "instances.resume.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Resume", - "fullName": "google.cloud.compute.v1.Instances.Resume", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1.InstancesClient" - }, - "method": { - "shortName": "Resume", - "fullName": "google.cloud.compute.v1.Instances.Resume", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1.Instances" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Instances_SendDiagnosticInterrupt_async", - "title": "AcceleratorTypes sendDiagnosticInterrupt Sample", - "origin": "API_DEFINITION", - "description": " Sends diagnostic interrupt to the instance.", - "canonical": true, - "file": "instances.send_diagnostic_interrupt.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SendDiagnosticInterrupt", - "fullName": "google.cloud.compute.v1.Instances.SendDiagnosticInterrupt", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.SendDiagnosticInterruptInstanceResponse", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1.InstancesClient" - }, - "method": { - "shortName": "SendDiagnosticInterrupt", - "fullName": "google.cloud.compute.v1.Instances.SendDiagnosticInterrupt", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1.Instances" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Instances_SetDeletionProtection_async", - "title": "AcceleratorTypes setDeletionProtection Sample", - "origin": "API_DEFINITION", - "description": " Sets deletion protection on the instance.", - "canonical": true, - "file": "instances.set_deletion_protection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetDeletionProtection", - "fullName": "google.cloud.compute.v1.Instances.SetDeletionProtection", - "async": true, - "parameters": [ - { - "name": "deletion_protection", - "type": "TYPE_BOOL" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1.InstancesClient" - }, - "method": { - "shortName": "SetDeletionProtection", - "fullName": "google.cloud.compute.v1.Instances.SetDeletionProtection", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1.Instances" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Instances_SetDiskAutoDelete_async", - "title": "AcceleratorTypes setDiskAutoDelete Sample", - "origin": "API_DEFINITION", - "description": " Sets the auto-delete flag for a disk attached to an instance.", - "canonical": true, - "file": "instances.set_disk_auto_delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 88, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetDiskAutoDelete", - "fullName": "google.cloud.compute.v1.Instances.SetDiskAutoDelete", - "async": true, - "parameters": [ - { - "name": "auto_delete", - "type": "TYPE_BOOL" - }, - { - "name": "device_name", - "type": "TYPE_STRING" - }, - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1.InstancesClient" - }, - "method": { - "shortName": "SetDiskAutoDelete", - "fullName": "google.cloud.compute.v1.Instances.SetDiskAutoDelete", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1.Instances" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Instances_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "instances.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.Instances.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "zone_set_policy_request_resource", - "type": ".google.cloud.compute.v1.ZoneSetPolicyRequest" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1.InstancesClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.Instances.SetIamPolicy", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1.Instances" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Instances_SetLabels_async", - "title": "AcceleratorTypes setLabels Sample", - "origin": "API_DEFINITION", - "description": " Sets labels on an instance. To learn more about labels, read theLabeling Resources documentation.", - "canonical": true, - "file": "instances.set_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1.Instances.SetLabels", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "instances_set_labels_request_resource", - "type": ".google.cloud.compute.v1.InstancesSetLabelsRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1.InstancesClient" - }, - "method": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1.Instances.SetLabels", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1.Instances" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Instances_SetMachineResources_async", - "title": "AcceleratorTypes setMachineResources Sample", - "origin": "API_DEFINITION", - "description": " Changes the number and/or type of accelerator for a stopped instance to the values specified in the request.", - "canonical": true, - "file": "instances.set_machine_resources.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetMachineResources", - "fullName": "google.cloud.compute.v1.Instances.SetMachineResources", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "instances_set_machine_resources_request_resource", - "type": ".google.cloud.compute.v1.InstancesSetMachineResourcesRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1.InstancesClient" - }, - "method": { - "shortName": "SetMachineResources", - "fullName": "google.cloud.compute.v1.Instances.SetMachineResources", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1.Instances" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Instances_SetMachineType_async", - "title": "AcceleratorTypes setMachineType Sample", - "origin": "API_DEFINITION", - "description": " Changes the machine type for a stopped instance to the machine type specified in the request.", - "canonical": true, - "file": "instances.set_machine_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetMachineType", - "fullName": "google.cloud.compute.v1.Instances.SetMachineType", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "instances_set_machine_type_request_resource", - "type": ".google.cloud.compute.v1.InstancesSetMachineTypeRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1.InstancesClient" - }, - "method": { - "shortName": "SetMachineType", - "fullName": "google.cloud.compute.v1.Instances.SetMachineType", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1.Instances" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Instances_SetMetadata_async", - "title": "AcceleratorTypes setMetadata Sample", - "origin": "API_DEFINITION", - "description": " Sets metadata for the specified instance to the data included in the request.", - "canonical": true, - "file": "instances.set_metadata.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetMetadata", - "fullName": "google.cloud.compute.v1.Instances.SetMetadata", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "metadata_resource", - "type": ".google.cloud.compute.v1.Metadata" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1.InstancesClient" - }, - "method": { - "shortName": "SetMetadata", - "fullName": "google.cloud.compute.v1.Instances.SetMetadata", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1.Instances" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Instances_SetMinCpuPlatform_async", - "title": "AcceleratorTypes setMinCpuPlatform Sample", - "origin": "API_DEFINITION", - "description": " Changes the minimum CPU platform that this instance should use. This method can only be called on a stopped instance. For more information, readSpecifying a Minimum CPU Platform.", - "canonical": true, - "file": "instances.set_min_cpu_platform.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetMinCpuPlatform", - "fullName": "google.cloud.compute.v1.Instances.SetMinCpuPlatform", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "instances_set_min_cpu_platform_request_resource", - "type": ".google.cloud.compute.v1.InstancesSetMinCpuPlatformRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1.InstancesClient" - }, - "method": { - "shortName": "SetMinCpuPlatform", - "fullName": "google.cloud.compute.v1.Instances.SetMinCpuPlatform", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1.Instances" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Instances_SetName_async", - "title": "AcceleratorTypes setName Sample", - "origin": "API_DEFINITION", - "description": " Sets name of an instance.", - "canonical": true, - "file": "instances.set_name.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetName", - "fullName": "google.cloud.compute.v1.Instances.SetName", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "instances_set_name_request_resource", - "type": ".google.cloud.compute.v1.InstancesSetNameRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1.InstancesClient" - }, - "method": { - "shortName": "SetName", - "fullName": "google.cloud.compute.v1.Instances.SetName", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1.Instances" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Instances_SetScheduling_async", - "title": "AcceleratorTypes setScheduling Sample", - "origin": "API_DEFINITION", - "description": " Sets an instance's scheduling options. You can only call this method on astopped instance, that is, a VM instance that is in a `TERMINATED` state. SeeInstance Life Cycle for more information on the possible instance states. For more information about setting scheduling options for a VM, seeSet VM host maintenance policy.", - "canonical": true, - "file": "instances.set_scheduling.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetScheduling", - "fullName": "google.cloud.compute.v1.Instances.SetScheduling", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "scheduling_resource", - "type": ".google.cloud.compute.v1.Scheduling" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1.InstancesClient" - }, - "method": { - "shortName": "SetScheduling", - "fullName": "google.cloud.compute.v1.Instances.SetScheduling", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1.Instances" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Instances_SetSecurityPolicy_async", - "title": "AcceleratorTypes setSecurityPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the Google Cloud Armor security policy for the specified instance. For more information, seeGoogle Cloud Armor Overview", - "canonical": true, - "file": "instances.set_security_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetSecurityPolicy", - "fullName": "google.cloud.compute.v1.Instances.SetSecurityPolicy", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "instances_set_security_policy_request_resource", - "type": ".google.cloud.compute.v1.InstancesSetSecurityPolicyRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1.InstancesClient" - }, - "method": { - "shortName": "SetSecurityPolicy", - "fullName": "google.cloud.compute.v1.Instances.SetSecurityPolicy", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1.Instances" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Instances_SetServiceAccount_async", - "title": "AcceleratorTypes setServiceAccount Sample", - "origin": "API_DEFINITION", - "description": " Sets the service account on the instance. For more information, readChanging the service account and access scopes for an instance.", - "canonical": true, - "file": "instances.set_service_account.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetServiceAccount", - "fullName": "google.cloud.compute.v1.Instances.SetServiceAccount", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "instances_set_service_account_request_resource", - "type": ".google.cloud.compute.v1.InstancesSetServiceAccountRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1.InstancesClient" - }, - "method": { - "shortName": "SetServiceAccount", - "fullName": "google.cloud.compute.v1.Instances.SetServiceAccount", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1.Instances" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Instances_SetShieldedInstanceIntegrityPolicy_async", - "title": "AcceleratorTypes setShieldedInstanceIntegrityPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the Shielded Instance integrity policy for an instance. You can only use this method on a running instance. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.", - "canonical": true, - "file": "instances.set_shielded_instance_integrity_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetShieldedInstanceIntegrityPolicy", - "fullName": "google.cloud.compute.v1.Instances.SetShieldedInstanceIntegrityPolicy", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "shielded_instance_integrity_policy_resource", - "type": ".google.cloud.compute.v1.ShieldedInstanceIntegrityPolicy" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1.InstancesClient" - }, - "method": { - "shortName": "SetShieldedInstanceIntegrityPolicy", - "fullName": "google.cloud.compute.v1.Instances.SetShieldedInstanceIntegrityPolicy", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1.Instances" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Instances_SetTags_async", - "title": "AcceleratorTypes setTags Sample", - "origin": "API_DEFINITION", - "description": " Sets network tags for the specified instance to the data included in the request.", - "canonical": true, - "file": "instances.set_tags.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetTags", - "fullName": "google.cloud.compute.v1.Instances.SetTags", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "tags_resource", - "type": ".google.cloud.compute.v1.Tags" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1.InstancesClient" - }, - "method": { - "shortName": "SetTags", - "fullName": "google.cloud.compute.v1.Instances.SetTags", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1.Instances" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Instances_SimulateMaintenanceEvent_async", - "title": "AcceleratorTypes simulateMaintenanceEvent Sample", - "origin": "API_DEFINITION", - "description": " Simulates a host maintenance event on a VM. For more information, see Simulate a host maintenance event.", - "canonical": true, - "file": "instances.simulate_maintenance_event.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SimulateMaintenanceEvent", - "fullName": "google.cloud.compute.v1.Instances.SimulateMaintenanceEvent", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "with_extended_notifications", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1.InstancesClient" - }, - "method": { - "shortName": "SimulateMaintenanceEvent", - "fullName": "google.cloud.compute.v1.Instances.SimulateMaintenanceEvent", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1.Instances" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Instances_Start_async", - "title": "AcceleratorTypes start Sample", - "origin": "API_DEFINITION", - "description": " Starts an instance that was stopped using theinstances().stop method. For more information, seeRestart an instance.", - "canonical": true, - "file": "instances.start.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Start", - "fullName": "google.cloud.compute.v1.Instances.Start", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1.InstancesClient" - }, - "method": { - "shortName": "Start", - "fullName": "google.cloud.compute.v1.Instances.Start", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1.Instances" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Instances_StartWithEncryptionKey_async", - "title": "AcceleratorTypes startWithEncryptionKey Sample", - "origin": "API_DEFINITION", - "description": " Starts an instance that was stopped using theinstances().stop method. For more information, seeRestart an instance.", - "canonical": true, - "file": "instances.start_with_encryption_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StartWithEncryptionKey", - "fullName": "google.cloud.compute.v1.Instances.StartWithEncryptionKey", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "instances_start_with_encryption_key_request_resource", - "type": ".google.cloud.compute.v1.InstancesStartWithEncryptionKeyRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1.InstancesClient" - }, - "method": { - "shortName": "StartWithEncryptionKey", - "fullName": "google.cloud.compute.v1.Instances.StartWithEncryptionKey", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1.Instances" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Instances_Stop_async", - "title": "AcceleratorTypes stop Sample", - "origin": "API_DEFINITION", - "description": " Stops a running instance, shutting it down cleanly, and allows you to restart the instance at a later time. Stopped instances do not incur VM usage charges while they are stopped. However, resources that the VM is using, such as persistent disks and static IP addresses, will continue to be charged until they are deleted. For more information, seeStopping an instance.", - "canonical": true, - "file": "instances.stop.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Stop", - "fullName": "google.cloud.compute.v1.Instances.Stop", - "async": true, - "parameters": [ - { - "name": "discard_local_ssd", - "type": "TYPE_BOOL" - }, - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1.InstancesClient" - }, - "method": { - "shortName": "Stop", - "fullName": "google.cloud.compute.v1.Instances.Stop", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1.Instances" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Instances_Suspend_async", - "title": "AcceleratorTypes suspend Sample", - "origin": "API_DEFINITION", - "description": " This method suspends a running instance, saving its state to persistent storage, and allows you to resume the instance at a later time. Suspended instances have no compute costs (cores or RAM), and incur only storage charges for the saved VM memory and localSSD data. Any charged resources the virtual machine was using, such as persistent disks and static IP addresses, will continue to be charged while the instance is suspended. For more information, see Suspending and resuming an instance.", - "canonical": true, - "file": "instances.suspend.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Suspend", - "fullName": "google.cloud.compute.v1.Instances.Suspend", - "async": true, - "parameters": [ - { - "name": "discard_local_ssd", - "type": "TYPE_BOOL" - }, - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1.InstancesClient" - }, - "method": { - "shortName": "Suspend", - "fullName": "google.cloud.compute.v1.Instances.Suspend", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1.Instances" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Instances_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "instances.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.Instances.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1.TestPermissionsRequest" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1.InstancesClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.Instances.TestIamPermissions", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1.Instances" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Instances_Update_async", - "title": "AcceleratorTypes update Sample", - "origin": "API_DEFINITION", - "description": " Updates an instance only if the necessary resources are available. This method can update only a specific set of instance properties. See Updating a running instance for a list of updatable instance properties.", - "canonical": true, - "file": "instances.update.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 58, - "end": 104, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1.Instances.Update", - "async": true, - "parameters": [ - { - "name": "discard_local_ssd", - "type": "TYPE_BOOL" - }, - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "instance_resource", - "type": ".google.cloud.compute.v1.Instance" - }, - { - "name": "minimal_action", - "type": "TYPE_STRING" - }, - { - "name": "most_disruptive_allowed_action", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1.InstancesClient" - }, - "method": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1.Instances.Update", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1.Instances" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Instances_UpdateAccessConfig_async", - "title": "AcceleratorTypes updateAccessConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified access config from an instance's network interface with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.", - "canonical": true, - "file": "instances.update_access_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAccessConfig", - "fullName": "google.cloud.compute.v1.Instances.UpdateAccessConfig", - "async": true, - "parameters": [ - { - "name": "access_config_resource", - "type": ".google.cloud.compute.v1.AccessConfig" - }, - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "network_interface", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1.InstancesClient" - }, - "method": { - "shortName": "UpdateAccessConfig", - "fullName": "google.cloud.compute.v1.Instances.UpdateAccessConfig", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1.Instances" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Instances_UpdateDisplayDevice_async", - "title": "AcceleratorTypes updateDisplayDevice Sample", - "origin": "API_DEFINITION", - "description": " Updates the Display config for a VM instance. You can only use this method on a stopped VM instance. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.", - "canonical": true, - "file": "instances.update_display_device.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDisplayDevice", - "fullName": "google.cloud.compute.v1.Instances.UpdateDisplayDevice", - "async": true, - "parameters": [ - { - "name": "display_device_resource", - "type": ".google.cloud.compute.v1.DisplayDevice" - }, - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1.InstancesClient" - }, - "method": { - "shortName": "UpdateDisplayDevice", - "fullName": "google.cloud.compute.v1.Instances.UpdateDisplayDevice", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1.Instances" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Instances_UpdateNetworkInterface_async", - "title": "AcceleratorTypes updateNetworkInterface Sample", - "origin": "API_DEFINITION", - "description": " Updates an instance's network interface. This method can only update an interface's alias IP range and attached network. See Modifying alias IP ranges for an existing instance for instructions on changing alias IP ranges. See Migrating a VM between networks for instructions on migrating an interface. This method follows PATCH semantics.", - "canonical": true, - "file": "instances.update_network_interface.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateNetworkInterface", - "fullName": "google.cloud.compute.v1.Instances.UpdateNetworkInterface", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "network_interface", - "type": "TYPE_STRING" - }, - { - "name": "network_interface_resource", - "type": ".google.cloud.compute.v1.NetworkInterface" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1.InstancesClient" - }, - "method": { - "shortName": "UpdateNetworkInterface", - "fullName": "google.cloud.compute.v1.Instances.UpdateNetworkInterface", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1.Instances" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Instances_UpdateShieldedInstanceConfig_async", - "title": "AcceleratorTypes updateShieldedInstanceConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates the Shielded Instance config for an instance. You can only use this method on a stopped instance. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.", - "canonical": true, - "file": "instances.update_shielded_instance_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateShieldedInstanceConfig", - "fullName": "google.cloud.compute.v1.Instances.UpdateShieldedInstanceConfig", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "shielded_instance_config_resource", - "type": ".google.cloud.compute.v1.ShieldedInstanceConfig" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1.InstancesClient" - }, - "method": { - "shortName": "UpdateShieldedInstanceConfig", - "fullName": "google.cloud.compute.v1.Instances.UpdateShieldedInstanceConfig", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1.Instances" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstanceSettingsService_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Get Instance settings.", - "canonical": true, - "file": "instance_settings_service.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.InstanceSettingsService.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.InstanceSettings", - "client": { - "shortName": "InstanceSettingsServiceClient", - "fullName": "google.cloud.compute.v1.InstanceSettingsServiceClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.InstanceSettingsService.Get", - "service": { - "shortName": "InstanceSettingsService", - "fullName": "google.cloud.compute.v1.InstanceSettingsService" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstanceSettingsService_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patch Instance settings", - "canonical": true, - "file": "instance_settings_service.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.InstanceSettingsService.Patch", - "async": true, - "parameters": [ - { - "name": "instance_settings_resource", - "type": ".google.cloud.compute.v1.InstanceSettings" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstanceSettingsServiceClient", - "fullName": "google.cloud.compute.v1.InstanceSettingsServiceClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.InstanceSettingsService.Patch", - "service": { - "shortName": "InstanceSettingsService", - "fullName": "google.cloud.compute.v1.InstanceSettingsService" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstanceTemplates_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of all InstanceTemplates resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "instance_templates.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.InstanceTemplates.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1.InstanceTemplateAggregatedList", - "client": { - "shortName": "InstanceTemplatesClient", - "fullName": "google.cloud.compute.v1.InstanceTemplatesClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.InstanceTemplates.AggregatedList", - "service": { - "shortName": "InstanceTemplates", - "fullName": "google.cloud.compute.v1.InstanceTemplates" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstanceTemplates_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified instance template. Deleting an instance template is permanent and cannot be undone. It is not possible to delete templates that are already in use by a managed instance group.", - "canonical": true, - "file": "instance_templates.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.InstanceTemplates.Delete", - "async": true, - "parameters": [ - { - "name": "instance_template", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstanceTemplatesClient", - "fullName": "google.cloud.compute.v1.InstanceTemplatesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.InstanceTemplates.Delete", - "service": { - "shortName": "InstanceTemplates", - "fullName": "google.cloud.compute.v1.InstanceTemplates" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstanceTemplates_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified instance template.", - "canonical": true, - "file": "instance_templates.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.InstanceTemplates.Get", - "async": true, - "parameters": [ - { - "name": "instance_template", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.InstanceTemplate", - "client": { - "shortName": "InstanceTemplatesClient", - "fullName": "google.cloud.compute.v1.InstanceTemplatesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.InstanceTemplates.Get", - "service": { - "shortName": "InstanceTemplates", - "fullName": "google.cloud.compute.v1.InstanceTemplates" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstanceTemplates_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "instance_templates.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.InstanceTemplates.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "InstanceTemplatesClient", - "fullName": "google.cloud.compute.v1.InstanceTemplatesClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.InstanceTemplates.GetIamPolicy", - "service": { - "shortName": "InstanceTemplates", - "fullName": "google.cloud.compute.v1.InstanceTemplates" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstanceTemplates_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates an instance template in the specified project using the data that is included in the request. If you are creating a new template to update an existing instance group, your new instance template must use the same network or, if applicable, the same subnetwork as the original template.", - "canonical": true, - "file": "instance_templates.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.InstanceTemplates.Insert", - "async": true, - "parameters": [ - { - "name": "instance_template_resource", - "type": ".google.cloud.compute.v1.InstanceTemplate" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstanceTemplatesClient", - "fullName": "google.cloud.compute.v1.InstanceTemplatesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.InstanceTemplates.Insert", - "service": { - "shortName": "InstanceTemplates", - "fullName": "google.cloud.compute.v1.InstanceTemplates" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstanceTemplates_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of instance templates that are contained within the specified project.", - "canonical": true, - "file": "instance_templates.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.InstanceTemplates.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.InstanceTemplateList", - "client": { - "shortName": "InstanceTemplatesClient", - "fullName": "google.cloud.compute.v1.InstanceTemplatesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.InstanceTemplates.List", - "service": { - "shortName": "InstanceTemplates", - "fullName": "google.cloud.compute.v1.InstanceTemplates" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstanceTemplates_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "instance_templates.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.InstanceTemplates.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "global_set_policy_request_resource", - "type": ".google.cloud.compute.v1.GlobalSetPolicyRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "InstanceTemplatesClient", - "fullName": "google.cloud.compute.v1.InstanceTemplatesClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.InstanceTemplates.SetIamPolicy", - "service": { - "shortName": "InstanceTemplates", - "fullName": "google.cloud.compute.v1.InstanceTemplates" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstanceTemplates_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "instance_templates.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.InstanceTemplates.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", - "client": { - "shortName": "InstanceTemplatesClient", - "fullName": "google.cloud.compute.v1.InstanceTemplatesClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.InstanceTemplates.TestIamPermissions", - "service": { - "shortName": "InstanceTemplates", - "fullName": "google.cloud.compute.v1.InstanceTemplates" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstantSnapshotGroups_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " deletes a Zonal InstantSnapshotGroup resource", - "canonical": true, - "file": "instant_snapshot_groups.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.InstantSnapshotGroups.Delete", - "async": true, - "parameters": [ - { - "name": "instant_snapshot_group", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstantSnapshotGroupsClient", - "fullName": "google.cloud.compute.v1.InstantSnapshotGroupsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.InstantSnapshotGroups.Delete", - "service": { - "shortName": "InstantSnapshotGroups", - "fullName": "google.cloud.compute.v1.InstantSnapshotGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstantSnapshotGroups_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " returns the specified InstantSnapshotGroup resource in the specified zone.", - "canonical": true, - "file": "instant_snapshot_groups.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.InstantSnapshotGroups.Get", - "async": true, - "parameters": [ - { - "name": "instant_snapshot_group", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.InstantSnapshotGroup", - "client": { - "shortName": "InstantSnapshotGroupsClient", - "fullName": "google.cloud.compute.v1.InstantSnapshotGroupsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.InstantSnapshotGroups.Get", - "service": { - "shortName": "InstantSnapshotGroups", - "fullName": "google.cloud.compute.v1.InstantSnapshotGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstantSnapshotGroups_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "instant_snapshot_groups.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.InstantSnapshotGroups.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "InstantSnapshotGroupsClient", - "fullName": "google.cloud.compute.v1.InstantSnapshotGroupsClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.InstantSnapshotGroups.GetIamPolicy", - "service": { - "shortName": "InstantSnapshotGroups", - "fullName": "google.cloud.compute.v1.InstantSnapshotGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstantSnapshotGroups_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " inserts a Zonal InstantSnapshotGroup resource", - "canonical": true, - "file": "instant_snapshot_groups.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.InstantSnapshotGroups.Insert", - "async": true, - "parameters": [ - { - "name": "instant_snapshot_group_resource", - "type": ".google.cloud.compute.v1.InstantSnapshotGroup" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "source_consistency_group", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstantSnapshotGroupsClient", - "fullName": "google.cloud.compute.v1.InstantSnapshotGroupsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.InstantSnapshotGroups.Insert", - "service": { - "shortName": "InstantSnapshotGroups", - "fullName": "google.cloud.compute.v1.InstantSnapshotGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstantSnapshotGroups_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " retrieves the list of InstantSnapshotGroup resources contained within the specified zone.", - "canonical": true, - "file": "instant_snapshot_groups.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.InstantSnapshotGroups.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.ListInstantSnapshotGroups", - "client": { - "shortName": "InstantSnapshotGroupsClient", - "fullName": "google.cloud.compute.v1.InstantSnapshotGroupsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.InstantSnapshotGroups.List", - "service": { - "shortName": "InstantSnapshotGroups", - "fullName": "google.cloud.compute.v1.InstantSnapshotGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstantSnapshotGroups_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "instant_snapshot_groups.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.InstantSnapshotGroups.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "zone_set_policy_request_resource", - "type": ".google.cloud.compute.v1.ZoneSetPolicyRequest" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "InstantSnapshotGroupsClient", - "fullName": "google.cloud.compute.v1.InstantSnapshotGroupsClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.InstantSnapshotGroups.SetIamPolicy", - "service": { - "shortName": "InstantSnapshotGroups", - "fullName": "google.cloud.compute.v1.InstantSnapshotGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstantSnapshotGroups_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "instant_snapshot_groups.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.InstantSnapshotGroups.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1.TestPermissionsRequest" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", - "client": { - "shortName": "InstantSnapshotGroupsClient", - "fullName": "google.cloud.compute.v1.InstantSnapshotGroupsClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.InstantSnapshotGroups.TestIamPermissions", - "service": { - "shortName": "InstantSnapshotGroups", - "fullName": "google.cloud.compute.v1.InstantSnapshotGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstantSnapshots_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of instantSnapshots. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "instant_snapshots.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.InstantSnapshots.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1.InstantSnapshotAggregatedList", - "client": { - "shortName": "InstantSnapshotsClient", - "fullName": "google.cloud.compute.v1.InstantSnapshotsClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.InstantSnapshots.AggregatedList", - "service": { - "shortName": "InstantSnapshots", - "fullName": "google.cloud.compute.v1.InstantSnapshots" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstantSnapshots_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified InstantSnapshot resource. Keep in mind that deleting a single instantSnapshot might not necessarily delete all the data on that instantSnapshot. If any data on the instantSnapshot that is marked for deletion is needed for subsequent instantSnapshots, the data will be moved to the next corresponding instantSnapshot. For more information, seeDeleting instantSnapshots.", - "canonical": true, - "file": "instant_snapshots.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.InstantSnapshots.Delete", - "async": true, - "parameters": [ - { - "name": "instant_snapshot", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstantSnapshotsClient", - "fullName": "google.cloud.compute.v1.InstantSnapshotsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.InstantSnapshots.Delete", - "service": { - "shortName": "InstantSnapshots", - "fullName": "google.cloud.compute.v1.InstantSnapshots" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstantSnapshots_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified InstantSnapshot resource in the specified zone.", - "canonical": true, - "file": "instant_snapshots.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.InstantSnapshots.Get", - "async": true, - "parameters": [ - { - "name": "instant_snapshot", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.InstantSnapshot", - "client": { - "shortName": "InstantSnapshotsClient", - "fullName": "google.cloud.compute.v1.InstantSnapshotsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.InstantSnapshots.Get", - "service": { - "shortName": "InstantSnapshots", - "fullName": "google.cloud.compute.v1.InstantSnapshots" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstantSnapshots_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "instant_snapshots.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.InstantSnapshots.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "InstantSnapshotsClient", - "fullName": "google.cloud.compute.v1.InstantSnapshotsClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.InstantSnapshots.GetIamPolicy", - "service": { - "shortName": "InstantSnapshots", - "fullName": "google.cloud.compute.v1.InstantSnapshots" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstantSnapshots_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates an instant snapshot in the specified zone.", - "canonical": true, - "file": "instant_snapshots.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.InstantSnapshots.Insert", - "async": true, - "parameters": [ - { - "name": "instant_snapshot_resource", - "type": ".google.cloud.compute.v1.InstantSnapshot" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstantSnapshotsClient", - "fullName": "google.cloud.compute.v1.InstantSnapshotsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.InstantSnapshots.Insert", - "service": { - "shortName": "InstantSnapshots", - "fullName": "google.cloud.compute.v1.InstantSnapshots" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstantSnapshots_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of InstantSnapshot resources contained within the specified zone.", - "canonical": true, - "file": "instant_snapshots.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.InstantSnapshots.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.InstantSnapshotList", - "client": { - "shortName": "InstantSnapshotsClient", - "fullName": "google.cloud.compute.v1.InstantSnapshotsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.InstantSnapshots.List", - "service": { - "shortName": "InstantSnapshots", - "fullName": "google.cloud.compute.v1.InstantSnapshots" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstantSnapshots_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "instant_snapshots.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.InstantSnapshots.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "zone_set_policy_request_resource", - "type": ".google.cloud.compute.v1.ZoneSetPolicyRequest" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "InstantSnapshotsClient", - "fullName": "google.cloud.compute.v1.InstantSnapshotsClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.InstantSnapshots.SetIamPolicy", - "service": { - "shortName": "InstantSnapshots", - "fullName": "google.cloud.compute.v1.InstantSnapshots" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstantSnapshots_SetLabels_async", - "title": "AcceleratorTypes setLabels Sample", - "origin": "API_DEFINITION", - "description": " Sets the labels on a instantSnapshot in the given zone. To learn more about labels, read the Labeling Resources documentation.", - "canonical": true, - "file": "instant_snapshots.set_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1.InstantSnapshots.SetLabels", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "zone_set_labels_request_resource", - "type": ".google.cloud.compute.v1.ZoneSetLabelsRequest" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InstantSnapshotsClient", - "fullName": "google.cloud.compute.v1.InstantSnapshotsClient" - }, - "method": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1.InstantSnapshots.SetLabels", - "service": { - "shortName": "InstantSnapshots", - "fullName": "google.cloud.compute.v1.InstantSnapshots" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InstantSnapshots_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "instant_snapshots.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.InstantSnapshots.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1.TestPermissionsRequest" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", - "client": { - "shortName": "InstantSnapshotsClient", - "fullName": "google.cloud.compute.v1.InstantSnapshotsClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.InstantSnapshots.TestIamPermissions", - "service": { - "shortName": "InstantSnapshots", - "fullName": "google.cloud.compute.v1.InstantSnapshots" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InterconnectAttachmentGroups_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified InterconnectAttachmentGroup in the given scope", - "canonical": true, - "file": "interconnect_attachment_groups.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups.Delete", - "async": true, - "parameters": [ - { - "name": "interconnect_attachment_group", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InterconnectAttachmentGroupsClient", - "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroupsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups.Delete", - "service": { - "shortName": "InterconnectAttachmentGroups", - "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InterconnectAttachmentGroups_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified InterconnectAttachmentGroup resource in the given scope.", - "canonical": true, - "file": "interconnect_attachment_groups.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups.Get", - "async": true, - "parameters": [ - { - "name": "interconnect_attachment_group", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.InterconnectAttachmentGroup", - "client": { - "shortName": "InterconnectAttachmentGroupsClient", - "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroupsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups.Get", - "service": { - "shortName": "InterconnectAttachmentGroups", - "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InterconnectAttachmentGroups_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "interconnect_attachment_groups.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "InterconnectAttachmentGroupsClient", - "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroupsClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups.GetIamPolicy", - "service": { - "shortName": "InterconnectAttachmentGroups", - "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InterconnectAttachmentGroups_GetOperationalStatus_async", - "title": "AcceleratorTypes getOperationalStatus Sample", - "origin": "API_DEFINITION", - "description": " Returns the InterconnectAttachmentStatuses for the specified InterconnectAttachmentGroup resource.", - "canonical": true, - "file": "interconnect_attachment_groups.get_operational_status.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetOperationalStatus", - "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups.GetOperationalStatus", - "async": true, - "parameters": [ - { - "name": "interconnect_attachment_group", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.InterconnectAttachmentGroupsGetOperationalStatusResponse", - "client": { - "shortName": "InterconnectAttachmentGroupsClient", - "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroupsClient" - }, - "method": { - "shortName": "GetOperationalStatus", - "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups.GetOperationalStatus", - "service": { - "shortName": "InterconnectAttachmentGroups", - "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InterconnectAttachmentGroups_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a InterconnectAttachmentGroup in the specified project in the given scope using the parameters that are included in the request.", - "canonical": true, - "file": "interconnect_attachment_groups.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups.Insert", - "async": true, - "parameters": [ - { - "name": "interconnect_attachment_group_resource", - "type": ".google.cloud.compute.v1.InterconnectAttachmentGroup" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InterconnectAttachmentGroupsClient", - "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroupsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups.Insert", - "service": { - "shortName": "InterconnectAttachmentGroups", - "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InterconnectAttachmentGroups_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Lists the InterconnectAttachmentGroups for a project in the given scope.", - "canonical": true, - "file": "interconnect_attachment_groups.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.InterconnectAttachmentGroupsListResponse", - "client": { - "shortName": "InterconnectAttachmentGroupsClient", - "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroupsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups.List", - "service": { - "shortName": "InterconnectAttachmentGroups", - "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InterconnectAttachmentGroups_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patches the specified InterconnectAttachmentGroup resource with the data included in the request. This method supports PATCH semantics and usesJSON merge patch format and processing rules.", - "canonical": true, - "file": "interconnect_attachment_groups.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups.Patch", - "async": true, - "parameters": [ - { - "name": "interconnect_attachment_group", - "type": "TYPE_STRING" - }, - { - "name": "interconnect_attachment_group_resource", - "type": ".google.cloud.compute.v1.InterconnectAttachmentGroup" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InterconnectAttachmentGroupsClient", - "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroupsClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups.Patch", - "service": { - "shortName": "InterconnectAttachmentGroups", - "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InterconnectAttachmentGroups_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "interconnect_attachment_groups.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "global_set_policy_request_resource", - "type": ".google.cloud.compute.v1.GlobalSetPolicyRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "InterconnectAttachmentGroupsClient", - "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroupsClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups.SetIamPolicy", - "service": { - "shortName": "InterconnectAttachmentGroups", - "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InterconnectAttachmentGroups_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "interconnect_attachment_groups.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", - "client": { - "shortName": "InterconnectAttachmentGroupsClient", - "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroupsClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups.TestIamPermissions", - "service": { - "shortName": "InterconnectAttachmentGroups", - "fullName": "google.cloud.compute.v1.InterconnectAttachmentGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InterconnectAttachments_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of interconnect attachments. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "interconnect_attachments.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.InterconnectAttachments.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1.InterconnectAttachmentAggregatedList", - "client": { - "shortName": "InterconnectAttachmentsClient", - "fullName": "google.cloud.compute.v1.InterconnectAttachmentsClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.InterconnectAttachments.AggregatedList", - "service": { - "shortName": "InterconnectAttachments", - "fullName": "google.cloud.compute.v1.InterconnectAttachments" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InterconnectAttachments_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified interconnect attachment.", - "canonical": true, - "file": "interconnect_attachments.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.InterconnectAttachments.Delete", - "async": true, - "parameters": [ - { - "name": "interconnect_attachment", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InterconnectAttachmentsClient", - "fullName": "google.cloud.compute.v1.InterconnectAttachmentsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.InterconnectAttachments.Delete", - "service": { - "shortName": "InterconnectAttachments", - "fullName": "google.cloud.compute.v1.InterconnectAttachments" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InterconnectAttachments_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified interconnect attachment.", - "canonical": true, - "file": "interconnect_attachments.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.InterconnectAttachments.Get", - "async": true, - "parameters": [ - { - "name": "interconnect_attachment", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.InterconnectAttachment", - "client": { - "shortName": "InterconnectAttachmentsClient", - "fullName": "google.cloud.compute.v1.InterconnectAttachmentsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.InterconnectAttachments.Get", - "service": { - "shortName": "InterconnectAttachments", - "fullName": "google.cloud.compute.v1.InterconnectAttachments" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InterconnectAttachments_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates an InterconnectAttachment in the specified project using the data included in the request.", - "canonical": true, - "file": "interconnect_attachments.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.InterconnectAttachments.Insert", - "async": true, - "parameters": [ - { - "name": "interconnect_attachment_resource", - "type": ".google.cloud.compute.v1.InterconnectAttachment" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InterconnectAttachmentsClient", - "fullName": "google.cloud.compute.v1.InterconnectAttachmentsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.InterconnectAttachments.Insert", - "service": { - "shortName": "InterconnectAttachments", - "fullName": "google.cloud.compute.v1.InterconnectAttachments" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InterconnectAttachments_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of interconnect attachments contained within the specified region.", - "canonical": true, - "file": "interconnect_attachments.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.InterconnectAttachments.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.InterconnectAttachmentList", - "client": { - "shortName": "InterconnectAttachmentsClient", - "fullName": "google.cloud.compute.v1.InterconnectAttachmentsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.InterconnectAttachments.List", - "service": { - "shortName": "InterconnectAttachments", - "fullName": "google.cloud.compute.v1.InterconnectAttachments" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InterconnectAttachments_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified interconnect attachment with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.", - "canonical": true, - "file": "interconnect_attachments.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.InterconnectAttachments.Patch", - "async": true, - "parameters": [ - { - "name": "interconnect_attachment", - "type": "TYPE_STRING" - }, - { - "name": "interconnect_attachment_resource", - "type": ".google.cloud.compute.v1.InterconnectAttachment" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InterconnectAttachmentsClient", - "fullName": "google.cloud.compute.v1.InterconnectAttachmentsClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.InterconnectAttachments.Patch", - "service": { - "shortName": "InterconnectAttachments", - "fullName": "google.cloud.compute.v1.InterconnectAttachments" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InterconnectAttachments_SetLabels_async", - "title": "AcceleratorTypes setLabels Sample", - "origin": "API_DEFINITION", - "description": " Sets the labels on an InterconnectAttachment. To learn more about labels, read the Labeling Resources documentation.", - "canonical": true, - "file": "interconnect_attachments.set_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1.InterconnectAttachments.SetLabels", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_set_labels_request_resource", - "type": ".google.cloud.compute.v1.RegionSetLabelsRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InterconnectAttachmentsClient", - "fullName": "google.cloud.compute.v1.InterconnectAttachmentsClient" - }, - "method": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1.InterconnectAttachments.SetLabels", - "service": { - "shortName": "InterconnectAttachments", - "fullName": "google.cloud.compute.v1.InterconnectAttachments" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InterconnectGroups_CreateMembers_async", - "title": "AcceleratorTypes createMembers Sample", - "origin": "API_DEFINITION", - "description": " Create Interconnects with redundancy by creating them in a specified interconnect group.", - "canonical": true, - "file": "interconnect_groups.create_members.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateMembers", - "fullName": "google.cloud.compute.v1.InterconnectGroups.CreateMembers", - "async": true, - "parameters": [ - { - "name": "interconnect_group", - "type": "TYPE_STRING" - }, - { - "name": "interconnect_groups_create_members_request_resource", - "type": ".google.cloud.compute.v1.InterconnectGroupsCreateMembersRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InterconnectGroupsClient", - "fullName": "google.cloud.compute.v1.InterconnectGroupsClient" - }, - "method": { - "shortName": "CreateMembers", - "fullName": "google.cloud.compute.v1.InterconnectGroups.CreateMembers", - "service": { - "shortName": "InterconnectGroups", - "fullName": "google.cloud.compute.v1.InterconnectGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InterconnectGroups_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified InterconnectGroup in the given scope", - "canonical": true, - "file": "interconnect_groups.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.InterconnectGroups.Delete", - "async": true, - "parameters": [ - { - "name": "interconnect_group", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InterconnectGroupsClient", - "fullName": "google.cloud.compute.v1.InterconnectGroupsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.InterconnectGroups.Delete", - "service": { - "shortName": "InterconnectGroups", - "fullName": "google.cloud.compute.v1.InterconnectGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InterconnectGroups_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified InterconnectGroup resource in the given scope.", - "canonical": true, - "file": "interconnect_groups.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.InterconnectGroups.Get", - "async": true, - "parameters": [ - { - "name": "interconnect_group", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.InterconnectGroup", - "client": { - "shortName": "InterconnectGroupsClient", - "fullName": "google.cloud.compute.v1.InterconnectGroupsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.InterconnectGroups.Get", - "service": { - "shortName": "InterconnectGroups", - "fullName": "google.cloud.compute.v1.InterconnectGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InterconnectGroups_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "interconnect_groups.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.InterconnectGroups.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "InterconnectGroupsClient", - "fullName": "google.cloud.compute.v1.InterconnectGroupsClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.InterconnectGroups.GetIamPolicy", - "service": { - "shortName": "InterconnectGroups", - "fullName": "google.cloud.compute.v1.InterconnectGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InterconnectGroups_GetOperationalStatus_async", - "title": "AcceleratorTypes getOperationalStatus Sample", - "origin": "API_DEFINITION", - "description": " Returns the interconnectStatuses for the specified InterconnectGroup.", - "canonical": true, - "file": "interconnect_groups.get_operational_status.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetOperationalStatus", - "fullName": "google.cloud.compute.v1.InterconnectGroups.GetOperationalStatus", - "async": true, - "parameters": [ - { - "name": "interconnect_group", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.InterconnectGroupsGetOperationalStatusResponse", - "client": { - "shortName": "InterconnectGroupsClient", - "fullName": "google.cloud.compute.v1.InterconnectGroupsClient" - }, - "method": { - "shortName": "GetOperationalStatus", - "fullName": "google.cloud.compute.v1.InterconnectGroups.GetOperationalStatus", - "service": { - "shortName": "InterconnectGroups", - "fullName": "google.cloud.compute.v1.InterconnectGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InterconnectGroups_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a InterconnectGroup in the specified project in the given scope using the parameters that are included in the request.", - "canonical": true, - "file": "interconnect_groups.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.InterconnectGroups.Insert", - "async": true, - "parameters": [ - { - "name": "interconnect_group_resource", - "type": ".google.cloud.compute.v1.InterconnectGroup" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InterconnectGroupsClient", - "fullName": "google.cloud.compute.v1.InterconnectGroupsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.InterconnectGroups.Insert", - "service": { - "shortName": "InterconnectGroups", - "fullName": "google.cloud.compute.v1.InterconnectGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InterconnectGroups_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Lists the InterconnectGroups for a project in the given scope.", - "canonical": true, - "file": "interconnect_groups.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.InterconnectGroups.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.InterconnectGroupsListResponse", - "client": { - "shortName": "InterconnectGroupsClient", - "fullName": "google.cloud.compute.v1.InterconnectGroupsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.InterconnectGroups.List", - "service": { - "shortName": "InterconnectGroups", - "fullName": "google.cloud.compute.v1.InterconnectGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InterconnectGroups_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patches the specified InterconnectGroup resource with the data included in the request. This method supports PATCH semantics and usesJSON merge patch format and processing rules.", - "canonical": true, - "file": "interconnect_groups.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.InterconnectGroups.Patch", - "async": true, - "parameters": [ - { - "name": "interconnect_group", - "type": "TYPE_STRING" - }, - { - "name": "interconnect_group_resource", - "type": ".google.cloud.compute.v1.InterconnectGroup" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InterconnectGroupsClient", - "fullName": "google.cloud.compute.v1.InterconnectGroupsClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.InterconnectGroups.Patch", - "service": { - "shortName": "InterconnectGroups", - "fullName": "google.cloud.compute.v1.InterconnectGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InterconnectGroups_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "interconnect_groups.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.InterconnectGroups.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "global_set_policy_request_resource", - "type": ".google.cloud.compute.v1.GlobalSetPolicyRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "InterconnectGroupsClient", - "fullName": "google.cloud.compute.v1.InterconnectGroupsClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.InterconnectGroups.SetIamPolicy", - "service": { - "shortName": "InterconnectGroups", - "fullName": "google.cloud.compute.v1.InterconnectGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InterconnectGroups_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "interconnect_groups.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.InterconnectGroups.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", - "client": { - "shortName": "InterconnectGroupsClient", - "fullName": "google.cloud.compute.v1.InterconnectGroupsClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.InterconnectGroups.TestIamPermissions", - "service": { - "shortName": "InterconnectGroups", - "fullName": "google.cloud.compute.v1.InterconnectGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InterconnectLocations_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the details for the specified interconnect location. Gets a list of available interconnect locations by making a list() request.", - "canonical": true, - "file": "interconnect_locations.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.InterconnectLocations.Get", - "async": true, - "parameters": [ - { - "name": "interconnect_location", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.InterconnectLocation", - "client": { - "shortName": "InterconnectLocationsClient", - "fullName": "google.cloud.compute.v1.InterconnectLocationsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.InterconnectLocations.Get", - "service": { - "shortName": "InterconnectLocations", - "fullName": "google.cloud.compute.v1.InterconnectLocations" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InterconnectLocations_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of interconnect locations available to the specified project.", - "canonical": true, - "file": "interconnect_locations.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.InterconnectLocations.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.InterconnectLocationList", - "client": { - "shortName": "InterconnectLocationsClient", - "fullName": "google.cloud.compute.v1.InterconnectLocationsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.InterconnectLocations.List", - "service": { - "shortName": "InterconnectLocations", - "fullName": "google.cloud.compute.v1.InterconnectLocations" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InterconnectRemoteLocations_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the details for the specified interconnect remote location. Gets a list of available interconnect remote locations by making alist() request.", - "canonical": true, - "file": "interconnect_remote_locations.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.InterconnectRemoteLocations.Get", - "async": true, - "parameters": [ - { - "name": "interconnect_remote_location", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.InterconnectRemoteLocation", - "client": { - "shortName": "InterconnectRemoteLocationsClient", - "fullName": "google.cloud.compute.v1.InterconnectRemoteLocationsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.InterconnectRemoteLocations.Get", - "service": { - "shortName": "InterconnectRemoteLocations", - "fullName": "google.cloud.compute.v1.InterconnectRemoteLocations" - } - } - } - }, - { - "regionTag": "compute_v1_generated_InterconnectRemoteLocations_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of interconnect remote locations available to the specified project.", - "canonical": true, - "file": "interconnect_remote_locations.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.InterconnectRemoteLocations.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.InterconnectRemoteLocationList", - "client": { - "shortName": "InterconnectRemoteLocationsClient", - "fullName": "google.cloud.compute.v1.InterconnectRemoteLocationsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.InterconnectRemoteLocations.List", - "service": { - "shortName": "InterconnectRemoteLocations", - "fullName": "google.cloud.compute.v1.InterconnectRemoteLocations" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Interconnects_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified Interconnect.", - "canonical": true, - "file": "interconnects.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.Interconnects.Delete", - "async": true, - "parameters": [ - { - "name": "interconnect", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InterconnectsClient", - "fullName": "google.cloud.compute.v1.InterconnectsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.Interconnects.Delete", - "service": { - "shortName": "Interconnects", - "fullName": "google.cloud.compute.v1.Interconnects" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Interconnects_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified Interconnect. Get a list of available Interconnects by making a list() request.", - "canonical": true, - "file": "interconnects.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.Interconnects.Get", - "async": true, - "parameters": [ - { - "name": "interconnect", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Interconnect", - "client": { - "shortName": "InterconnectsClient", - "fullName": "google.cloud.compute.v1.InterconnectsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.Interconnects.Get", - "service": { - "shortName": "Interconnects", - "fullName": "google.cloud.compute.v1.Interconnects" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Interconnects_GetDiagnostics_async", - "title": "AcceleratorTypes getDiagnostics Sample", - "origin": "API_DEFINITION", - "description": " Returns the interconnectDiagnostics for the specified Interconnect. In the event of a global outage, do not use this API to make decisions about where to redirect your network traffic. Unlike a VLAN attachment, which is regional, a Cloud Interconnect connection is a global resource. A global outage can prevent this API from functioning properly.", - "canonical": true, - "file": "interconnects.get_diagnostics.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDiagnostics", - "fullName": "google.cloud.compute.v1.Interconnects.GetDiagnostics", - "async": true, - "parameters": [ - { - "name": "interconnect", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.InterconnectsGetDiagnosticsResponse", - "client": { - "shortName": "InterconnectsClient", - "fullName": "google.cloud.compute.v1.InterconnectsClient" - }, - "method": { - "shortName": "GetDiagnostics", - "fullName": "google.cloud.compute.v1.Interconnects.GetDiagnostics", - "service": { - "shortName": "Interconnects", - "fullName": "google.cloud.compute.v1.Interconnects" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Interconnects_GetMacsecConfig_async", - "title": "AcceleratorTypes getMacsecConfig Sample", - "origin": "API_DEFINITION", - "description": " Returns the interconnectMacsecConfig for the specified Interconnect.", - "canonical": true, - "file": "interconnects.get_macsec_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMacsecConfig", - "fullName": "google.cloud.compute.v1.Interconnects.GetMacsecConfig", - "async": true, - "parameters": [ - { - "name": "interconnect", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.InterconnectsGetMacsecConfigResponse", - "client": { - "shortName": "InterconnectsClient", - "fullName": "google.cloud.compute.v1.InterconnectsClient" - }, - "method": { - "shortName": "GetMacsecConfig", - "fullName": "google.cloud.compute.v1.Interconnects.GetMacsecConfig", - "service": { - "shortName": "Interconnects", - "fullName": "google.cloud.compute.v1.Interconnects" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Interconnects_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates an Interconnect in the specified project using the data included in the request.", - "canonical": true, - "file": "interconnects.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.Interconnects.Insert", - "async": true, - "parameters": [ - { - "name": "interconnect_resource", - "type": ".google.cloud.compute.v1.Interconnect" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InterconnectsClient", - "fullName": "google.cloud.compute.v1.InterconnectsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.Interconnects.Insert", - "service": { - "shortName": "Interconnects", - "fullName": "google.cloud.compute.v1.Interconnects" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Interconnects_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of Interconnects available to the specified project.", - "canonical": true, - "file": "interconnects.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.Interconnects.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.InterconnectList", - "client": { - "shortName": "InterconnectsClient", - "fullName": "google.cloud.compute.v1.InterconnectsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.Interconnects.List", - "service": { - "shortName": "Interconnects", - "fullName": "google.cloud.compute.v1.Interconnects" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Interconnects_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified Interconnect with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.", - "canonical": true, - "file": "interconnects.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.Interconnects.Patch", - "async": true, - "parameters": [ - { - "name": "interconnect", - "type": "TYPE_STRING" - }, - { - "name": "interconnect_resource", - "type": ".google.cloud.compute.v1.Interconnect" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InterconnectsClient", - "fullName": "google.cloud.compute.v1.InterconnectsClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.Interconnects.Patch", - "service": { - "shortName": "Interconnects", - "fullName": "google.cloud.compute.v1.Interconnects" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Interconnects_SetLabels_async", - "title": "AcceleratorTypes setLabels Sample", - "origin": "API_DEFINITION", - "description": " Sets the labels on an Interconnect. To learn more about labels, read the Labeling Resources documentation.", - "canonical": true, - "file": "interconnects.set_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1.Interconnects.SetLabels", - "async": true, - "parameters": [ - { - "name": "global_set_labels_request_resource", - "type": ".google.cloud.compute.v1.GlobalSetLabelsRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "InterconnectsClient", - "fullName": "google.cloud.compute.v1.InterconnectsClient" - }, - "method": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1.Interconnects.SetLabels", - "service": { - "shortName": "Interconnects", - "fullName": "google.cloud.compute.v1.Interconnects" - } - } - } - }, - { - "regionTag": "compute_v1_generated_LicenseCodes_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Return a specified license code. License codes are mirrored across all projects that have permissions to read the License Code. *Caution* This resource is intended for use only by third-party partners who are creatingCloud Marketplace images.", - "canonical": true, - "file": "license_codes.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.LicenseCodes.Get", - "async": true, - "parameters": [ - { - "name": "license_code", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.LicenseCode", - "client": { - "shortName": "LicenseCodesClient", - "fullName": "google.cloud.compute.v1.LicenseCodesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.LicenseCodes.Get", - "service": { - "shortName": "LicenseCodes", - "fullName": "google.cloud.compute.v1.LicenseCodes" - } - } - } - }, - { - "regionTag": "compute_v1_generated_LicenseCodes_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists. *Caution* This resource is intended for use only by third-party partners who are creatingCloud Marketplace images.", - "canonical": true, - "file": "license_codes.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.LicenseCodes.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "LicenseCodesClient", - "fullName": "google.cloud.compute.v1.LicenseCodesClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.LicenseCodes.GetIamPolicy", - "service": { - "shortName": "LicenseCodes", - "fullName": "google.cloud.compute.v1.LicenseCodes" - } - } - } - }, - { - "regionTag": "compute_v1_generated_LicenseCodes_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy. *Caution* This resource is intended for use only by third-party partners who are creatingCloud Marketplace images.", - "canonical": true, - "file": "license_codes.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.LicenseCodes.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "global_set_policy_request_resource", - "type": ".google.cloud.compute.v1.GlobalSetPolicyRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "LicenseCodesClient", - "fullName": "google.cloud.compute.v1.LicenseCodesClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.LicenseCodes.SetIamPolicy", - "service": { - "shortName": "LicenseCodes", - "fullName": "google.cloud.compute.v1.LicenseCodes" - } - } - } - }, - { - "regionTag": "compute_v1_generated_LicenseCodes_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource. *Caution* This resource is intended for use only by third-party partners who are creatingCloud Marketplace images.", - "canonical": true, - "file": "license_codes.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.LicenseCodes.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", - "client": { - "shortName": "LicenseCodesClient", - "fullName": "google.cloud.compute.v1.LicenseCodesClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.LicenseCodes.TestIamPermissions", - "service": { - "shortName": "LicenseCodes", - "fullName": "google.cloud.compute.v1.LicenseCodes" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Licenses_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified license. *Caution* This resource is intended for use only by third-party partners who are creatingCloud Marketplace images.", - "canonical": true, - "file": "licenses.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.Licenses.Delete", - "async": true, - "parameters": [ - { - "name": "license", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "LicensesClient", - "fullName": "google.cloud.compute.v1.LicensesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.Licenses.Delete", - "service": { - "shortName": "Licenses", - "fullName": "google.cloud.compute.v1.Licenses" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Licenses_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified License resource. *Caution* This resource is intended for use only by third-party partners who are creatingCloud Marketplace images.", - "canonical": true, - "file": "licenses.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.Licenses.Get", - "async": true, - "parameters": [ - { - "name": "license", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.License", - "client": { - "shortName": "LicensesClient", - "fullName": "google.cloud.compute.v1.LicensesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.Licenses.Get", - "service": { - "shortName": "Licenses", - "fullName": "google.cloud.compute.v1.Licenses" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Licenses_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists. *Caution* This resource is intended for use only by third-party partners who are creatingCloud Marketplace images.", - "canonical": true, - "file": "licenses.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.Licenses.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "LicensesClient", - "fullName": "google.cloud.compute.v1.LicensesClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.Licenses.GetIamPolicy", - "service": { - "shortName": "Licenses", - "fullName": "google.cloud.compute.v1.Licenses" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Licenses_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Create a License resource in the specified project. *Caution* This resource is intended for use only by third-party partners who are creatingCloud Marketplace images.", - "canonical": true, - "file": "licenses.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.Licenses.Insert", - "async": true, - "parameters": [ - { - "name": "license_resource", - "type": ".google.cloud.compute.v1.License" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "LicensesClient", - "fullName": "google.cloud.compute.v1.LicensesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.Licenses.Insert", - "service": { - "shortName": "Licenses", - "fullName": "google.cloud.compute.v1.Licenses" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Licenses_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of licenses available in the specified project. This method does not get any licenses that belong to other projects, including licenses attached to publicly-available images, like Debian 9. If you want to get a list of publicly-available licenses, use this method to make a request to the respective image project, such as debian-cloud orwindows-cloud. *Caution* This resource is intended for use only by third-party partners who are creatingCloud Marketplace images.", - "canonical": true, - "file": "licenses.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.Licenses.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.LicensesListResponse", - "client": { - "shortName": "LicensesClient", - "fullName": "google.cloud.compute.v1.LicensesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.Licenses.List", - "service": { - "shortName": "Licenses", - "fullName": "google.cloud.compute.v1.Licenses" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Licenses_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy. *Caution* This resource is intended for use only by third-party partners who are creatingCloud Marketplace images.", - "canonical": true, - "file": "licenses.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.Licenses.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "global_set_policy_request_resource", - "type": ".google.cloud.compute.v1.GlobalSetPolicyRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "LicensesClient", - "fullName": "google.cloud.compute.v1.LicensesClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.Licenses.SetIamPolicy", - "service": { - "shortName": "Licenses", - "fullName": "google.cloud.compute.v1.Licenses" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Licenses_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource. *Caution* This resource is intended for use only by third-party partners who are creatingCloud Marketplace images.", - "canonical": true, - "file": "licenses.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.Licenses.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", - "client": { - "shortName": "LicensesClient", - "fullName": "google.cloud.compute.v1.LicensesClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.Licenses.TestIamPermissions", - "service": { - "shortName": "Licenses", - "fullName": "google.cloud.compute.v1.Licenses" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Licenses_Update_async", - "title": "AcceleratorTypes update Sample", - "origin": "API_DEFINITION", - "description": " Updates a License resource in the specified project. *Caution* This resource is intended for use only by third-party partners who are creatingCloud Marketplace images.", - "canonical": true, - "file": "licenses.update.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1.Licenses.Update", - "async": true, - "parameters": [ - { - "name": "license", - "type": "TYPE_STRING" - }, - { - "name": "license_resource", - "type": ".google.cloud.compute.v1.License" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "LicensesClient", - "fullName": "google.cloud.compute.v1.LicensesClient" - }, - "method": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1.Licenses.Update", - "service": { - "shortName": "Licenses", - "fullName": "google.cloud.compute.v1.Licenses" - } - } - } - }, - { - "regionTag": "compute_v1_generated_MachineImages_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified machine image. Deleting a machine image is permanent and cannot be undone.", - "canonical": true, - "file": "machine_images.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.MachineImages.Delete", - "async": true, - "parameters": [ - { - "name": "machine_image", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "MachineImagesClient", - "fullName": "google.cloud.compute.v1.MachineImagesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.MachineImages.Delete", - "service": { - "shortName": "MachineImages", - "fullName": "google.cloud.compute.v1.MachineImages" - } - } - } - }, - { - "regionTag": "compute_v1_generated_MachineImages_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified machine image.", - "canonical": true, - "file": "machine_images.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.MachineImages.Get", - "async": true, - "parameters": [ - { - "name": "machine_image", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.MachineImage", - "client": { - "shortName": "MachineImagesClient", - "fullName": "google.cloud.compute.v1.MachineImagesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.MachineImages.Get", - "service": { - "shortName": "MachineImages", - "fullName": "google.cloud.compute.v1.MachineImages" - } - } - } - }, - { - "regionTag": "compute_v1_generated_MachineImages_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "machine_images.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.MachineImages.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "MachineImagesClient", - "fullName": "google.cloud.compute.v1.MachineImagesClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.MachineImages.GetIamPolicy", - "service": { - "shortName": "MachineImages", - "fullName": "google.cloud.compute.v1.MachineImages" - } - } - } - }, - { - "regionTag": "compute_v1_generated_MachineImages_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a machine image in the specified project using the data that is included in the request. If you are creating a new machine image to update an existing instance, your new machine image should use the same network or, if applicable, the same subnetwork as the original instance.", - "canonical": true, - "file": "machine_images.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.MachineImages.Insert", - "async": true, - "parameters": [ - { - "name": "machine_image_resource", - "type": ".google.cloud.compute.v1.MachineImage" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "source_instance", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "MachineImagesClient", - "fullName": "google.cloud.compute.v1.MachineImagesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.MachineImages.Insert", - "service": { - "shortName": "MachineImages", - "fullName": "google.cloud.compute.v1.MachineImages" - } - } - } - }, - { - "regionTag": "compute_v1_generated_MachineImages_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of machine images that are contained within the specified project.", - "canonical": true, - "file": "machine_images.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.MachineImages.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.MachineImageList", - "client": { - "shortName": "MachineImagesClient", - "fullName": "google.cloud.compute.v1.MachineImagesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.MachineImages.List", - "service": { - "shortName": "MachineImages", - "fullName": "google.cloud.compute.v1.MachineImages" - } - } - } - }, - { - "regionTag": "compute_v1_generated_MachineImages_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "machine_images.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.MachineImages.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "global_set_policy_request_resource", - "type": ".google.cloud.compute.v1.GlobalSetPolicyRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "MachineImagesClient", - "fullName": "google.cloud.compute.v1.MachineImagesClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.MachineImages.SetIamPolicy", - "service": { - "shortName": "MachineImages", - "fullName": "google.cloud.compute.v1.MachineImages" - } - } - } - }, - { - "regionTag": "compute_v1_generated_MachineImages_SetLabels_async", - "title": "AcceleratorTypes setLabels Sample", - "origin": "API_DEFINITION", - "description": " Sets the labels on a machine image. To learn more about labels, read theLabeling Resources documentation.", - "canonical": true, - "file": "machine_images.set_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1.MachineImages.SetLabels", - "async": true, - "parameters": [ - { - "name": "global_set_labels_request_resource", - "type": ".google.cloud.compute.v1.GlobalSetLabelsRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "MachineImagesClient", - "fullName": "google.cloud.compute.v1.MachineImagesClient" - }, - "method": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1.MachineImages.SetLabels", - "service": { - "shortName": "MachineImages", - "fullName": "google.cloud.compute.v1.MachineImages" - } - } - } - }, - { - "regionTag": "compute_v1_generated_MachineImages_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "machine_images.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.MachineImages.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", - "client": { - "shortName": "MachineImagesClient", - "fullName": "google.cloud.compute.v1.MachineImagesClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.MachineImages.TestIamPermissions", - "service": { - "shortName": "MachineImages", - "fullName": "google.cloud.compute.v1.MachineImages" - } - } - } - }, - { - "regionTag": "compute_v1_generated_MachineTypes_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of machine types. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "machine_types.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.MachineTypes.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1.MachineTypeAggregatedList", - "client": { - "shortName": "MachineTypesClient", - "fullName": "google.cloud.compute.v1.MachineTypesClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.MachineTypes.AggregatedList", - "service": { - "shortName": "MachineTypes", - "fullName": "google.cloud.compute.v1.MachineTypes" - } - } - } - }, - { - "regionTag": "compute_v1_generated_MachineTypes_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified machine type.", - "canonical": true, - "file": "machine_types.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.MachineTypes.Get", - "async": true, - "parameters": [ - { - "name": "machine_type", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.MachineType", - "client": { - "shortName": "MachineTypesClient", - "fullName": "google.cloud.compute.v1.MachineTypesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.MachineTypes.Get", - "service": { - "shortName": "MachineTypes", - "fullName": "google.cloud.compute.v1.MachineTypes" - } - } - } - }, - { - "regionTag": "compute_v1_generated_MachineTypes_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of machine types available to the specified project.", - "canonical": true, - "file": "machine_types.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.MachineTypes.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.MachineTypeList", - "client": { - "shortName": "MachineTypesClient", - "fullName": "google.cloud.compute.v1.MachineTypesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.MachineTypes.List", - "service": { - "shortName": "MachineTypes", - "fullName": "google.cloud.compute.v1.MachineTypes" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NetworkAttachments_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of all NetworkAttachment resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "network_attachments.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.NetworkAttachments.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1.NetworkAttachmentAggregatedList", - "client": { - "shortName": "NetworkAttachmentsClient", - "fullName": "google.cloud.compute.v1.NetworkAttachmentsClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.NetworkAttachments.AggregatedList", - "service": { - "shortName": "NetworkAttachments", - "fullName": "google.cloud.compute.v1.NetworkAttachments" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NetworkAttachments_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified NetworkAttachment in the given scope", - "canonical": true, - "file": "network_attachments.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.NetworkAttachments.Delete", - "async": true, - "parameters": [ - { - "name": "network_attachment", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "NetworkAttachmentsClient", - "fullName": "google.cloud.compute.v1.NetworkAttachmentsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.NetworkAttachments.Delete", - "service": { - "shortName": "NetworkAttachments", - "fullName": "google.cloud.compute.v1.NetworkAttachments" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NetworkAttachments_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified NetworkAttachment resource in the given scope.", - "canonical": true, - "file": "network_attachments.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.NetworkAttachments.Get", - "async": true, - "parameters": [ - { - "name": "network_attachment", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.NetworkAttachment", - "client": { - "shortName": "NetworkAttachmentsClient", - "fullName": "google.cloud.compute.v1.NetworkAttachmentsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.NetworkAttachments.Get", - "service": { - "shortName": "NetworkAttachments", - "fullName": "google.cloud.compute.v1.NetworkAttachments" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NetworkAttachments_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "network_attachments.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.NetworkAttachments.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "NetworkAttachmentsClient", - "fullName": "google.cloud.compute.v1.NetworkAttachmentsClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.NetworkAttachments.GetIamPolicy", - "service": { - "shortName": "NetworkAttachments", - "fullName": "google.cloud.compute.v1.NetworkAttachments" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NetworkAttachments_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a NetworkAttachment in the specified project in the given scope using the parameters that are included in the request.", - "canonical": true, - "file": "network_attachments.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.NetworkAttachments.Insert", - "async": true, - "parameters": [ - { - "name": "network_attachment_resource", - "type": ".google.cloud.compute.v1.NetworkAttachment" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "NetworkAttachmentsClient", - "fullName": "google.cloud.compute.v1.NetworkAttachmentsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.NetworkAttachments.Insert", - "service": { - "shortName": "NetworkAttachments", - "fullName": "google.cloud.compute.v1.NetworkAttachments" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NetworkAttachments_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Lists the NetworkAttachments for a project in the given scope.", - "canonical": true, - "file": "network_attachments.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.NetworkAttachments.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.NetworkAttachmentList", - "client": { - "shortName": "NetworkAttachmentsClient", - "fullName": "google.cloud.compute.v1.NetworkAttachmentsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.NetworkAttachments.List", - "service": { - "shortName": "NetworkAttachments", - "fullName": "google.cloud.compute.v1.NetworkAttachments" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NetworkAttachments_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patches the specified NetworkAttachment resource with the data included in the request. This method supports PATCH semantics and usesJSON merge patch format and processing rules.", - "canonical": true, - "file": "network_attachments.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.NetworkAttachments.Patch", - "async": true, - "parameters": [ - { - "name": "network_attachment", - "type": "TYPE_STRING" - }, - { - "name": "network_attachment_resource", - "type": ".google.cloud.compute.v1.NetworkAttachment" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "NetworkAttachmentsClient", - "fullName": "google.cloud.compute.v1.NetworkAttachmentsClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.NetworkAttachments.Patch", - "service": { - "shortName": "NetworkAttachments", - "fullName": "google.cloud.compute.v1.NetworkAttachments" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NetworkAttachments_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "network_attachments.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.NetworkAttachments.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_set_policy_request_resource", - "type": ".google.cloud.compute.v1.RegionSetPolicyRequest" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "NetworkAttachmentsClient", - "fullName": "google.cloud.compute.v1.NetworkAttachmentsClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.NetworkAttachments.SetIamPolicy", - "service": { - "shortName": "NetworkAttachments", - "fullName": "google.cloud.compute.v1.NetworkAttachments" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NetworkAttachments_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "network_attachments.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.NetworkAttachments.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", - "client": { - "shortName": "NetworkAttachmentsClient", - "fullName": "google.cloud.compute.v1.NetworkAttachmentsClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.NetworkAttachments.TestIamPermissions", - "service": { - "shortName": "NetworkAttachments", - "fullName": "google.cloud.compute.v1.NetworkAttachments" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NetworkEdgeSecurityServices_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of all NetworkEdgeSecurityService resources available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "network_edge_security_services.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServices.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1.NetworkEdgeSecurityServiceAggregatedList", - "client": { - "shortName": "NetworkEdgeSecurityServicesClient", - "fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServicesClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServices.AggregatedList", - "service": { - "shortName": "NetworkEdgeSecurityServices", - "fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServices" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NetworkEdgeSecurityServices_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified service.", - "canonical": true, - "file": "network_edge_security_services.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServices.Delete", - "async": true, - "parameters": [ - { - "name": "network_edge_security_service", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "NetworkEdgeSecurityServicesClient", - "fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServicesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServices.Delete", - "service": { - "shortName": "NetworkEdgeSecurityServices", - "fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServices" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NetworkEdgeSecurityServices_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Gets a specified NetworkEdgeSecurityService.", - "canonical": true, - "file": "network_edge_security_services.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServices.Get", - "async": true, - "parameters": [ - { - "name": "network_edge_security_service", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.NetworkEdgeSecurityService", - "client": { - "shortName": "NetworkEdgeSecurityServicesClient", - "fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServicesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServices.Get", - "service": { - "shortName": "NetworkEdgeSecurityServices", - "fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServices" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NetworkEdgeSecurityServices_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a new service in the specified project using the data included in the request.", - "canonical": true, - "file": "network_edge_security_services.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServices.Insert", - "async": true, - "parameters": [ - { - "name": "network_edge_security_service_resource", - "type": ".google.cloud.compute.v1.NetworkEdgeSecurityService" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "NetworkEdgeSecurityServicesClient", - "fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServicesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServices.Insert", - "service": { - "shortName": "NetworkEdgeSecurityServices", - "fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServices" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NetworkEdgeSecurityServices_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patches the specified policy with the data included in the request.", - "canonical": true, - "file": "network_edge_security_services.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 89, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServices.Patch", - "async": true, - "parameters": [ - { - "name": "network_edge_security_service", - "type": "TYPE_STRING" - }, - { - "name": "network_edge_security_service_resource", - "type": ".google.cloud.compute.v1.NetworkEdgeSecurityService" - }, - { - "name": "paths", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "NetworkEdgeSecurityServicesClient", - "fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServicesClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServices.Patch", - "service": { - "shortName": "NetworkEdgeSecurityServices", - "fullName": "google.cloud.compute.v1.NetworkEdgeSecurityServices" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NetworkEndpointGroups_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of network endpoint groups and sorts them by zone. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "network_endpoint_groups.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.NetworkEndpointGroups.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1.NetworkEndpointGroupAggregatedList", - "client": { - "shortName": "NetworkEndpointGroupsClient", - "fullName": "google.cloud.compute.v1.NetworkEndpointGroupsClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.NetworkEndpointGroups.AggregatedList", - "service": { - "shortName": "NetworkEndpointGroups", - "fullName": "google.cloud.compute.v1.NetworkEndpointGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NetworkEndpointGroups_AttachNetworkEndpoints_async", - "title": "AcceleratorTypes attachNetworkEndpoints Sample", - "origin": "API_DEFINITION", - "description": " Attach a list of network endpoints to the specified network endpoint group.", - "canonical": true, - "file": "network_endpoint_groups.attach_network_endpoints.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AttachNetworkEndpoints", - "fullName": "google.cloud.compute.v1.NetworkEndpointGroups.AttachNetworkEndpoints", - "async": true, - "parameters": [ - { - "name": "network_endpoint_group", - "type": "TYPE_STRING" - }, - { - "name": "network_endpoint_groups_attach_endpoints_request_resource", - "type": ".google.cloud.compute.v1.NetworkEndpointGroupsAttachEndpointsRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "NetworkEndpointGroupsClient", - "fullName": "google.cloud.compute.v1.NetworkEndpointGroupsClient" - }, - "method": { - "shortName": "AttachNetworkEndpoints", - "fullName": "google.cloud.compute.v1.NetworkEndpointGroups.AttachNetworkEndpoints", - "service": { - "shortName": "NetworkEndpointGroups", - "fullName": "google.cloud.compute.v1.NetworkEndpointGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NetworkEndpointGroups_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified network endpoint group. The network endpoints in the NEG and the VM instances they belong to are not terminated when the NEG is deleted. Note that the NEG cannot be deleted if there are backend services referencing it.", - "canonical": true, - "file": "network_endpoint_groups.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.NetworkEndpointGroups.Delete", - "async": true, - "parameters": [ - { - "name": "network_endpoint_group", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "NetworkEndpointGroupsClient", - "fullName": "google.cloud.compute.v1.NetworkEndpointGroupsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.NetworkEndpointGroups.Delete", - "service": { - "shortName": "NetworkEndpointGroups", - "fullName": "google.cloud.compute.v1.NetworkEndpointGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NetworkEndpointGroups_DetachNetworkEndpoints_async", - "title": "AcceleratorTypes detachNetworkEndpoints Sample", - "origin": "API_DEFINITION", - "description": " Detach a list of network endpoints from the specified network endpoint group.", - "canonical": true, - "file": "network_endpoint_groups.detach_network_endpoints.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DetachNetworkEndpoints", - "fullName": "google.cloud.compute.v1.NetworkEndpointGroups.DetachNetworkEndpoints", - "async": true, - "parameters": [ - { - "name": "network_endpoint_group", - "type": "TYPE_STRING" - }, - { - "name": "network_endpoint_groups_detach_endpoints_request_resource", - "type": ".google.cloud.compute.v1.NetworkEndpointGroupsDetachEndpointsRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "NetworkEndpointGroupsClient", - "fullName": "google.cloud.compute.v1.NetworkEndpointGroupsClient" - }, - "method": { - "shortName": "DetachNetworkEndpoints", - "fullName": "google.cloud.compute.v1.NetworkEndpointGroups.DetachNetworkEndpoints", - "service": { - "shortName": "NetworkEndpointGroups", - "fullName": "google.cloud.compute.v1.NetworkEndpointGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NetworkEndpointGroups_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified network endpoint group.", - "canonical": true, - "file": "network_endpoint_groups.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.NetworkEndpointGroups.Get", - "async": true, - "parameters": [ - { - "name": "network_endpoint_group", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.NetworkEndpointGroup", - "client": { - "shortName": "NetworkEndpointGroupsClient", - "fullName": "google.cloud.compute.v1.NetworkEndpointGroupsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.NetworkEndpointGroups.Get", - "service": { - "shortName": "NetworkEndpointGroups", - "fullName": "google.cloud.compute.v1.NetworkEndpointGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NetworkEndpointGroups_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a network endpoint group in the specified project using the parameters that are included in the request. Note: Use the following APIs to manage network endpoint groups: - To manage NEGs with zonal scope (such as zonal NEGs, hybrid connectivity NEGs): zonal API - To manage NEGs with regional scope (such as regional internet NEGs, serverless NEGs, Private Service Connect NEGs): regional API - To manage NEGs with global scope (such as global internet NEGs):global API", - "canonical": true, - "file": "network_endpoint_groups.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.NetworkEndpointGroups.Insert", - "async": true, - "parameters": [ - { - "name": "network_endpoint_group_resource", - "type": ".google.cloud.compute.v1.NetworkEndpointGroup" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "NetworkEndpointGroupsClient", - "fullName": "google.cloud.compute.v1.NetworkEndpointGroupsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.NetworkEndpointGroups.Insert", - "service": { - "shortName": "NetworkEndpointGroups", - "fullName": "google.cloud.compute.v1.NetworkEndpointGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NetworkEndpointGroups_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of network endpoint groups that are located in the specified project and zone.", - "canonical": true, - "file": "network_endpoint_groups.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 146, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.NetworkEndpointGroups.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.NetworkEndpointGroupList", - "client": { - "shortName": "NetworkEndpointGroupsClient", - "fullName": "google.cloud.compute.v1.NetworkEndpointGroupsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.NetworkEndpointGroups.List", - "service": { - "shortName": "NetworkEndpointGroups", - "fullName": "google.cloud.compute.v1.NetworkEndpointGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NetworkEndpointGroups_ListNetworkEndpoints_async", - "title": "AcceleratorTypes listNetworkEndpoints Sample", - "origin": "API_DEFINITION", - "description": " Lists the network endpoints in the specified network endpoint group.", - "canonical": true, - "file": "network_endpoint_groups.list_network_endpoints.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 157, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListNetworkEndpoints", - "fullName": "google.cloud.compute.v1.NetworkEndpointGroups.ListNetworkEndpoints", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "network_endpoint_group", - "type": "TYPE_STRING" - }, - { - "name": "network_endpoint_groups_list_endpoints_request_resource", - "type": ".google.cloud.compute.v1.NetworkEndpointGroupsListEndpointsRequest" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.NetworkEndpointGroupsListNetworkEndpoints", - "client": { - "shortName": "NetworkEndpointGroupsClient", - "fullName": "google.cloud.compute.v1.NetworkEndpointGroupsClient" - }, - "method": { - "shortName": "ListNetworkEndpoints", - "fullName": "google.cloud.compute.v1.NetworkEndpointGroups.ListNetworkEndpoints", - "service": { - "shortName": "NetworkEndpointGroups", - "fullName": "google.cloud.compute.v1.NetworkEndpointGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NetworkEndpointGroups_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "network_endpoint_groups.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.NetworkEndpointGroups.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1.TestPermissionsRequest" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", - "client": { - "shortName": "NetworkEndpointGroupsClient", - "fullName": "google.cloud.compute.v1.NetworkEndpointGroupsClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.NetworkEndpointGroups.TestIamPermissions", - "service": { - "shortName": "NetworkEndpointGroups", - "fullName": "google.cloud.compute.v1.NetworkEndpointGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NetworkFirewallPolicies_AddAssociation_async", - "title": "AcceleratorTypes addAssociation Sample", - "origin": "API_DEFINITION", - "description": " Inserts an association for the specified firewall policy.", - "canonical": true, - "file": "network_firewall_policies.add_association.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddAssociation", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.AddAssociation", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "firewall_policy_association_resource", - "type": ".google.cloud.compute.v1.FirewallPolicyAssociation" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "replace_existing_association", - "type": "TYPE_BOOL" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "NetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1.NetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "AddAssociation", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.AddAssociation", - "service": { - "shortName": "NetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NetworkFirewallPolicies_AddPacketMirroringRule_async", - "title": "AcceleratorTypes addPacketMirroringRule Sample", - "origin": "API_DEFINITION", - "description": " Inserts a packet mirroring rule into a firewall policy.", - "canonical": true, - "file": "network_firewall_policies.add_packet_mirroring_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddPacketMirroringRule", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.AddPacketMirroringRule", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "firewall_policy_rule_resource", - "type": ".google.cloud.compute.v1.FirewallPolicyRule" - }, - { - "name": "max_priority", - "type": "TYPE_INT32" - }, - { - "name": "min_priority", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "NetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1.NetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "AddPacketMirroringRule", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.AddPacketMirroringRule", - "service": { - "shortName": "NetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NetworkFirewallPolicies_AddRule_async", - "title": "AcceleratorTypes addRule Sample", - "origin": "API_DEFINITION", - "description": " Inserts a rule into a firewall policy.", - "canonical": true, - "file": "network_firewall_policies.add_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddRule", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.AddRule", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "firewall_policy_rule_resource", - "type": ".google.cloud.compute.v1.FirewallPolicyRule" - }, - { - "name": "max_priority", - "type": "TYPE_INT32" - }, - { - "name": "min_priority", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "NetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1.NetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "AddRule", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.AddRule", - "service": { - "shortName": "NetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NetworkFirewallPolicies_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of network firewall policies, listing network firewall policies from all applicable scopes (global and regional) and grouping the results per scope. To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "network_firewall_policies.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1.NetworkFirewallPolicyAggregatedList", - "client": { - "shortName": "NetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1.NetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.AggregatedList", - "service": { - "shortName": "NetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NetworkFirewallPolicies_CloneRules_async", - "title": "AcceleratorTypes cloneRules Sample", - "origin": "API_DEFINITION", - "description": " Copies rules to the specified firewall policy.", - "canonical": true, - "file": "network_firewall_policies.clone_rules.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CloneRules", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.CloneRules", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "source_firewall_policy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "NetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1.NetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "CloneRules", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.CloneRules", - "service": { - "shortName": "NetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NetworkFirewallPolicies_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified policy.", - "canonical": true, - "file": "network_firewall_policies.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.Delete", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "NetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1.NetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.Delete", - "service": { - "shortName": "NetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NetworkFirewallPolicies_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified network firewall policy.", - "canonical": true, - "file": "network_firewall_policies.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.Get", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.FirewallPolicy", - "client": { - "shortName": "NetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1.NetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.Get", - "service": { - "shortName": "NetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NetworkFirewallPolicies_GetAssociation_async", - "title": "AcceleratorTypes getAssociation Sample", - "origin": "API_DEFINITION", - "description": " Gets an association with the specified name.", - "canonical": true, - "file": "network_firewall_policies.get_association.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAssociation", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.GetAssociation", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.FirewallPolicyAssociation", - "client": { - "shortName": "NetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1.NetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "GetAssociation", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.GetAssociation", - "service": { - "shortName": "NetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NetworkFirewallPolicies_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "network_firewall_policies.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "NetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1.NetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.GetIamPolicy", - "service": { - "shortName": "NetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NetworkFirewallPolicies_GetPacketMirroringRule_async", - "title": "AcceleratorTypes getPacketMirroringRule Sample", - "origin": "API_DEFINITION", - "description": " Gets a packet mirroring rule of the specified priority.", - "canonical": true, - "file": "network_firewall_policies.get_packet_mirroring_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPacketMirroringRule", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.GetPacketMirroringRule", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "priority", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.FirewallPolicyRule", - "client": { - "shortName": "NetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1.NetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "GetPacketMirroringRule", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.GetPacketMirroringRule", - "service": { - "shortName": "NetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NetworkFirewallPolicies_GetRule_async", - "title": "AcceleratorTypes getRule Sample", - "origin": "API_DEFINITION", - "description": " Gets a rule of the specified priority.", - "canonical": true, - "file": "network_firewall_policies.get_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRule", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.GetRule", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "priority", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.FirewallPolicyRule", - "client": { - "shortName": "NetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1.NetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "GetRule", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.GetRule", - "service": { - "shortName": "NetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NetworkFirewallPolicies_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a new policy in the specified project using the data included in the request.", - "canonical": true, - "file": "network_firewall_policies.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.Insert", - "async": true, - "parameters": [ - { - "name": "firewall_policy_resource", - "type": ".google.cloud.compute.v1.FirewallPolicy" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "NetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1.NetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.Insert", - "service": { - "shortName": "NetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NetworkFirewallPolicies_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Lists all the policies that have been configured for the specified project.", - "canonical": true, - "file": "network_firewall_policies.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.FirewallPolicyList", - "client": { - "shortName": "NetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1.NetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.List", - "service": { - "shortName": "NetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NetworkFirewallPolicies_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patches the specified policy with the data included in the request.", - "canonical": true, - "file": "network_firewall_policies.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.Patch", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "firewall_policy_resource", - "type": ".google.cloud.compute.v1.FirewallPolicy" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "NetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1.NetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.Patch", - "service": { - "shortName": "NetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NetworkFirewallPolicies_PatchPacketMirroringRule_async", - "title": "AcceleratorTypes patchPacketMirroringRule Sample", - "origin": "API_DEFINITION", - "description": " Patches a packet mirroring rule of the specified priority.", - "canonical": true, - "file": "network_firewall_policies.patch_packet_mirroring_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PatchPacketMirroringRule", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.PatchPacketMirroringRule", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "firewall_policy_rule_resource", - "type": ".google.cloud.compute.v1.FirewallPolicyRule" - }, - { - "name": "priority", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "NetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1.NetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "PatchPacketMirroringRule", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.PatchPacketMirroringRule", - "service": { - "shortName": "NetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NetworkFirewallPolicies_PatchRule_async", - "title": "AcceleratorTypes patchRule Sample", - "origin": "API_DEFINITION", - "description": " Patches a rule of the specified priority.", - "canonical": true, - "file": "network_firewall_policies.patch_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PatchRule", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.PatchRule", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "firewall_policy_rule_resource", - "type": ".google.cloud.compute.v1.FirewallPolicyRule" - }, - { - "name": "priority", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "NetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1.NetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "PatchRule", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.PatchRule", - "service": { - "shortName": "NetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NetworkFirewallPolicies_RemoveAssociation_async", - "title": "AcceleratorTypes removeAssociation Sample", - "origin": "API_DEFINITION", - "description": " Removes an association for the specified firewall policy.", - "canonical": true, - "file": "network_firewall_policies.remove_association.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveAssociation", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.RemoveAssociation", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "NetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1.NetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "RemoveAssociation", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.RemoveAssociation", - "service": { - "shortName": "NetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NetworkFirewallPolicies_RemovePacketMirroringRule_async", - "title": "AcceleratorTypes removePacketMirroringRule Sample", - "origin": "API_DEFINITION", - "description": " Deletes a packet mirroring rule of the specified priority.", - "canonical": true, - "file": "network_firewall_policies.remove_packet_mirroring_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemovePacketMirroringRule", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.RemovePacketMirroringRule", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "priority", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "NetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1.NetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "RemovePacketMirroringRule", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.RemovePacketMirroringRule", - "service": { - "shortName": "NetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NetworkFirewallPolicies_RemoveRule_async", - "title": "AcceleratorTypes removeRule Sample", - "origin": "API_DEFINITION", - "description": " Deletes a rule of the specified priority.", - "canonical": true, - "file": "network_firewall_policies.remove_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveRule", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.RemoveRule", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "priority", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "NetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1.NetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "RemoveRule", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.RemoveRule", - "service": { - "shortName": "NetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NetworkFirewallPolicies_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "network_firewall_policies.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "global_set_policy_request_resource", - "type": ".google.cloud.compute.v1.GlobalSetPolicyRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "NetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1.NetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.SetIamPolicy", - "service": { - "shortName": "NetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NetworkFirewallPolicies_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "network_firewall_policies.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", - "client": { - "shortName": "NetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1.NetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies.TestIamPermissions", - "service": { - "shortName": "NetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1.NetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NetworkProfiles_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified network profile.", - "canonical": true, - "file": "network_profiles.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.NetworkProfiles.Get", - "async": true, - "parameters": [ - { - "name": "network_profile", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.NetworkProfile", - "client": { - "shortName": "NetworkProfilesClient", - "fullName": "google.cloud.compute.v1.NetworkProfilesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.NetworkProfiles.Get", - "service": { - "shortName": "NetworkProfiles", - "fullName": "google.cloud.compute.v1.NetworkProfiles" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NetworkProfiles_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of network profiles available to the specified project.", - "canonical": true, - "file": "network_profiles.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.NetworkProfiles.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.NetworkProfilesListResponse", - "client": { - "shortName": "NetworkProfilesClient", - "fullName": "google.cloud.compute.v1.NetworkProfilesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.NetworkProfiles.List", - "service": { - "shortName": "NetworkProfiles", - "fullName": "google.cloud.compute.v1.NetworkProfiles" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Networks_AddPeering_async", - "title": "AcceleratorTypes addPeering Sample", - "origin": "API_DEFINITION", - "description": " Adds a peering to the specified network.", - "canonical": true, - "file": "networks.add_peering.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddPeering", - "fullName": "google.cloud.compute.v1.Networks.AddPeering", - "async": true, - "parameters": [ - { - "name": "network", - "type": "TYPE_STRING" - }, - { - "name": "networks_add_peering_request_resource", - "type": ".google.cloud.compute.v1.NetworksAddPeeringRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "NetworksClient", - "fullName": "google.cloud.compute.v1.NetworksClient" - }, - "method": { - "shortName": "AddPeering", - "fullName": "google.cloud.compute.v1.Networks.AddPeering", - "service": { - "shortName": "Networks", - "fullName": "google.cloud.compute.v1.Networks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Networks_CancelRequestRemovePeering_async", - "title": "AcceleratorTypes cancelRequestRemovePeering Sample", - "origin": "API_DEFINITION", - "description": " Cancel requests to remove a peering from the specified network. Applicable only for PeeringConnection with update_strategy=CONSENSUS. Cancels a request to remove a peering from the specified network.", - "canonical": true, - "file": "networks.cancel_request_remove_peering.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CancelRequestRemovePeering", - "fullName": "google.cloud.compute.v1.Networks.CancelRequestRemovePeering", - "async": true, - "parameters": [ - { - "name": "network", - "type": "TYPE_STRING" - }, - { - "name": "networks_cancel_request_remove_peering_request_resource", - "type": ".google.cloud.compute.v1.NetworksCancelRequestRemovePeeringRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "NetworksClient", - "fullName": "google.cloud.compute.v1.NetworksClient" - }, - "method": { - "shortName": "CancelRequestRemovePeering", - "fullName": "google.cloud.compute.v1.Networks.CancelRequestRemovePeering", - "service": { - "shortName": "Networks", - "fullName": "google.cloud.compute.v1.Networks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Networks_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified network.", - "canonical": true, - "file": "networks.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.Networks.Delete", - "async": true, - "parameters": [ - { - "name": "network", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "NetworksClient", - "fullName": "google.cloud.compute.v1.NetworksClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.Networks.Delete", - "service": { - "shortName": "Networks", - "fullName": "google.cloud.compute.v1.Networks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Networks_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified network.", - "canonical": true, - "file": "networks.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.Networks.Get", - "async": true, - "parameters": [ - { - "name": "network", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Network", - "client": { - "shortName": "NetworksClient", - "fullName": "google.cloud.compute.v1.NetworksClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.Networks.Get", - "service": { - "shortName": "Networks", - "fullName": "google.cloud.compute.v1.Networks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Networks_GetEffectiveFirewalls_async", - "title": "AcceleratorTypes getEffectiveFirewalls Sample", - "origin": "API_DEFINITION", - "description": " Returns the effective firewalls on a given network.", - "canonical": true, - "file": "networks.get_effective_firewalls.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEffectiveFirewalls", - "fullName": "google.cloud.compute.v1.Networks.GetEffectiveFirewalls", - "async": true, - "parameters": [ - { - "name": "network", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.NetworksGetEffectiveFirewallsResponse", - "client": { - "shortName": "NetworksClient", - "fullName": "google.cloud.compute.v1.NetworksClient" - }, - "method": { - "shortName": "GetEffectiveFirewalls", - "fullName": "google.cloud.compute.v1.Networks.GetEffectiveFirewalls", - "service": { - "shortName": "Networks", - "fullName": "google.cloud.compute.v1.Networks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Networks_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a network in the specified project using the data included in the request.", - "canonical": true, - "file": "networks.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.Networks.Insert", - "async": true, - "parameters": [ - { - "name": "network_resource", - "type": ".google.cloud.compute.v1.Network" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "NetworksClient", - "fullName": "google.cloud.compute.v1.NetworksClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.Networks.Insert", - "service": { - "shortName": "Networks", - "fullName": "google.cloud.compute.v1.Networks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Networks_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of networks available to the specified project.", - "canonical": true, - "file": "networks.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.Networks.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.NetworkList", - "client": { - "shortName": "NetworksClient", - "fullName": "google.cloud.compute.v1.NetworksClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.Networks.List", - "service": { - "shortName": "Networks", - "fullName": "google.cloud.compute.v1.Networks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Networks_ListPeeringRoutes_async", - "title": "AcceleratorTypes listPeeringRoutes Sample", - "origin": "API_DEFINITION", - "description": " Lists the peering routes exchanged over peering connection.", - "canonical": true, - "file": "networks.list_peering_routes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 159, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPeeringRoutes", - "fullName": "google.cloud.compute.v1.Networks.ListPeeringRoutes", - "async": true, - "parameters": [ - { - "name": "direction", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "network", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "peering_name", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.ExchangedPeeringRoutesList", - "client": { - "shortName": "NetworksClient", - "fullName": "google.cloud.compute.v1.NetworksClient" - }, - "method": { - "shortName": "ListPeeringRoutes", - "fullName": "google.cloud.compute.v1.Networks.ListPeeringRoutes", - "service": { - "shortName": "Networks", - "fullName": "google.cloud.compute.v1.Networks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Networks_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patches the specified network with the data included in the request. Only routingConfig can be modified.", - "canonical": true, - "file": "networks.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.Networks.Patch", - "async": true, - "parameters": [ - { - "name": "network", - "type": "TYPE_STRING" - }, - { - "name": "network_resource", - "type": ".google.cloud.compute.v1.Network" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "NetworksClient", - "fullName": "google.cloud.compute.v1.NetworksClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.Networks.Patch", - "service": { - "shortName": "Networks", - "fullName": "google.cloud.compute.v1.Networks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Networks_RemovePeering_async", - "title": "AcceleratorTypes removePeering Sample", - "origin": "API_DEFINITION", - "description": " Removes a peering from the specified network.", - "canonical": true, - "file": "networks.remove_peering.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemovePeering", - "fullName": "google.cloud.compute.v1.Networks.RemovePeering", - "async": true, - "parameters": [ - { - "name": "network", - "type": "TYPE_STRING" - }, - { - "name": "networks_remove_peering_request_resource", - "type": ".google.cloud.compute.v1.NetworksRemovePeeringRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "NetworksClient", - "fullName": "google.cloud.compute.v1.NetworksClient" - }, - "method": { - "shortName": "RemovePeering", - "fullName": "google.cloud.compute.v1.Networks.RemovePeering", - "service": { - "shortName": "Networks", - "fullName": "google.cloud.compute.v1.Networks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Networks_RequestRemovePeering_async", - "title": "AcceleratorTypes requestRemovePeering Sample", - "origin": "API_DEFINITION", - "description": " Requests to remove a peering from the specified network. Applicable only for PeeringConnection with update_strategy=CONSENSUS.", - "canonical": true, - "file": "networks.request_remove_peering.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RequestRemovePeering", - "fullName": "google.cloud.compute.v1.Networks.RequestRemovePeering", - "async": true, - "parameters": [ - { - "name": "network", - "type": "TYPE_STRING" - }, - { - "name": "networks_request_remove_peering_request_resource", - "type": ".google.cloud.compute.v1.NetworksRequestRemovePeeringRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "NetworksClient", - "fullName": "google.cloud.compute.v1.NetworksClient" - }, - "method": { - "shortName": "RequestRemovePeering", - "fullName": "google.cloud.compute.v1.Networks.RequestRemovePeering", - "service": { - "shortName": "Networks", - "fullName": "google.cloud.compute.v1.Networks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Networks_SwitchToCustomMode_async", - "title": "AcceleratorTypes switchToCustomMode Sample", - "origin": "API_DEFINITION", - "description": " Switches the network mode from auto subnet mode to custom subnet mode.", - "canonical": true, - "file": "networks.switch_to_custom_mode.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SwitchToCustomMode", - "fullName": "google.cloud.compute.v1.Networks.SwitchToCustomMode", - "async": true, - "parameters": [ - { - "name": "network", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "NetworksClient", - "fullName": "google.cloud.compute.v1.NetworksClient" - }, - "method": { - "shortName": "SwitchToCustomMode", - "fullName": "google.cloud.compute.v1.Networks.SwitchToCustomMode", - "service": { - "shortName": "Networks", - "fullName": "google.cloud.compute.v1.Networks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Networks_UpdatePeering_async", - "title": "AcceleratorTypes updatePeering Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified network peering with the data included in the request. You can only modify the NetworkPeering.export_custom_routes field and the NetworkPeering.import_custom_routes field.", - "canonical": true, - "file": "networks.update_peering.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdatePeering", - "fullName": "google.cloud.compute.v1.Networks.UpdatePeering", - "async": true, - "parameters": [ - { - "name": "network", - "type": "TYPE_STRING" - }, - { - "name": "networks_update_peering_request_resource", - "type": ".google.cloud.compute.v1.NetworksUpdatePeeringRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "NetworksClient", - "fullName": "google.cloud.compute.v1.NetworksClient" - }, - "method": { - "shortName": "UpdatePeering", - "fullName": "google.cloud.compute.v1.Networks.UpdatePeering", - "service": { - "shortName": "Networks", - "fullName": "google.cloud.compute.v1.Networks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NodeGroups_AddNodes_async", - "title": "AcceleratorTypes addNodes Sample", - "origin": "API_DEFINITION", - "description": " Adds specified number of nodes to the node group.", - "canonical": true, - "file": "node_groups.add_nodes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddNodes", - "fullName": "google.cloud.compute.v1.NodeGroups.AddNodes", - "async": true, - "parameters": [ - { - "name": "node_group", - "type": "TYPE_STRING" - }, - { - "name": "node_groups_add_nodes_request_resource", - "type": ".google.cloud.compute.v1.NodeGroupsAddNodesRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "NodeGroupsClient", - "fullName": "google.cloud.compute.v1.NodeGroupsClient" - }, - "method": { - "shortName": "AddNodes", - "fullName": "google.cloud.compute.v1.NodeGroups.AddNodes", - "service": { - "shortName": "NodeGroups", - "fullName": "google.cloud.compute.v1.NodeGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NodeGroups_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of node groups. Note: use nodeGroups.listNodes for more details about each group. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "node_groups.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.NodeGroups.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1.NodeGroupAggregatedList", - "client": { - "shortName": "NodeGroupsClient", - "fullName": "google.cloud.compute.v1.NodeGroupsClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.NodeGroups.AggregatedList", - "service": { - "shortName": "NodeGroups", - "fullName": "google.cloud.compute.v1.NodeGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NodeGroups_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified NodeGroup resource.", - "canonical": true, - "file": "node_groups.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.NodeGroups.Delete", - "async": true, - "parameters": [ - { - "name": "node_group", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "NodeGroupsClient", - "fullName": "google.cloud.compute.v1.NodeGroupsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.NodeGroups.Delete", - "service": { - "shortName": "NodeGroups", - "fullName": "google.cloud.compute.v1.NodeGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NodeGroups_DeleteNodes_async", - "title": "AcceleratorTypes deleteNodes Sample", - "origin": "API_DEFINITION", - "description": " Deletes specified nodes from the node group.", - "canonical": true, - "file": "node_groups.delete_nodes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteNodes", - "fullName": "google.cloud.compute.v1.NodeGroups.DeleteNodes", - "async": true, - "parameters": [ - { - "name": "node_group", - "type": "TYPE_STRING" - }, - { - "name": "node_groups_delete_nodes_request_resource", - "type": ".google.cloud.compute.v1.NodeGroupsDeleteNodesRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "NodeGroupsClient", - "fullName": "google.cloud.compute.v1.NodeGroupsClient" - }, - "method": { - "shortName": "DeleteNodes", - "fullName": "google.cloud.compute.v1.NodeGroups.DeleteNodes", - "service": { - "shortName": "NodeGroups", - "fullName": "google.cloud.compute.v1.NodeGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NodeGroups_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified NodeGroup. Get a list of available NodeGroups by making a list() request. Note: the \"nodes\" field should not be used. Use nodeGroups.listNodes instead.", - "canonical": true, - "file": "node_groups.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.NodeGroups.Get", - "async": true, - "parameters": [ - { - "name": "node_group", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.NodeGroup", - "client": { - "shortName": "NodeGroupsClient", - "fullName": "google.cloud.compute.v1.NodeGroupsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.NodeGroups.Get", - "service": { - "shortName": "NodeGroups", - "fullName": "google.cloud.compute.v1.NodeGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NodeGroups_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "node_groups.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.NodeGroups.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "NodeGroupsClient", - "fullName": "google.cloud.compute.v1.NodeGroupsClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.NodeGroups.GetIamPolicy", - "service": { - "shortName": "NodeGroups", - "fullName": "google.cloud.compute.v1.NodeGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NodeGroups_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a NodeGroup resource in the specified project using the data included in the request.", - "canonical": true, - "file": "node_groups.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.NodeGroups.Insert", - "async": true, - "parameters": [ - { - "name": "initial_node_count", - "type": "TYPE_INT32" - }, - { - "name": "node_group_resource", - "type": ".google.cloud.compute.v1.NodeGroup" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "NodeGroupsClient", - "fullName": "google.cloud.compute.v1.NodeGroupsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.NodeGroups.Insert", - "service": { - "shortName": "NodeGroups", - "fullName": "google.cloud.compute.v1.NodeGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NodeGroups_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of node groups available to the specified project. Note: use nodeGroups.listNodes for more details about each group.", - "canonical": true, - "file": "node_groups.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.NodeGroups.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.NodeGroupList", - "client": { - "shortName": "NodeGroupsClient", - "fullName": "google.cloud.compute.v1.NodeGroupsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.NodeGroups.List", - "service": { - "shortName": "NodeGroups", - "fullName": "google.cloud.compute.v1.NodeGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NodeGroups_ListNodes_async", - "title": "AcceleratorTypes listNodes Sample", - "origin": "API_DEFINITION", - "description": " Lists nodes in the node group.", - "canonical": true, - "file": "node_groups.list_nodes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 150, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListNodes", - "fullName": "google.cloud.compute.v1.NodeGroups.ListNodes", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "node_group", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.NodeGroupsListNodes", - "client": { - "shortName": "NodeGroupsClient", - "fullName": "google.cloud.compute.v1.NodeGroupsClient" - }, - "method": { - "shortName": "ListNodes", - "fullName": "google.cloud.compute.v1.NodeGroups.ListNodes", - "service": { - "shortName": "NodeGroups", - "fullName": "google.cloud.compute.v1.NodeGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NodeGroups_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified node group.", - "canonical": true, - "file": "node_groups.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.NodeGroups.Patch", - "async": true, - "parameters": [ - { - "name": "node_group", - "type": "TYPE_STRING" - }, - { - "name": "node_group_resource", - "type": ".google.cloud.compute.v1.NodeGroup" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "NodeGroupsClient", - "fullName": "google.cloud.compute.v1.NodeGroupsClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.NodeGroups.Patch", - "service": { - "shortName": "NodeGroups", - "fullName": "google.cloud.compute.v1.NodeGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NodeGroups_PerformMaintenance_async", - "title": "AcceleratorTypes performMaintenance Sample", - "origin": "API_DEFINITION", - "description": " Perform maintenance on a subset of nodes in the node group.", - "canonical": true, - "file": "node_groups.perform_maintenance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PerformMaintenance", - "fullName": "google.cloud.compute.v1.NodeGroups.PerformMaintenance", - "async": true, - "parameters": [ - { - "name": "node_group", - "type": "TYPE_STRING" - }, - { - "name": "node_groups_perform_maintenance_request_resource", - "type": ".google.cloud.compute.v1.NodeGroupsPerformMaintenanceRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "NodeGroupsClient", - "fullName": "google.cloud.compute.v1.NodeGroupsClient" - }, - "method": { - "shortName": "PerformMaintenance", - "fullName": "google.cloud.compute.v1.NodeGroups.PerformMaintenance", - "service": { - "shortName": "NodeGroups", - "fullName": "google.cloud.compute.v1.NodeGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NodeGroups_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "node_groups.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.NodeGroups.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "zone_set_policy_request_resource", - "type": ".google.cloud.compute.v1.ZoneSetPolicyRequest" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "NodeGroupsClient", - "fullName": "google.cloud.compute.v1.NodeGroupsClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.NodeGroups.SetIamPolicy", - "service": { - "shortName": "NodeGroups", - "fullName": "google.cloud.compute.v1.NodeGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NodeGroups_SetNodeTemplate_async", - "title": "AcceleratorTypes setNodeTemplate Sample", - "origin": "API_DEFINITION", - "description": " Updates the node template of the node group.", - "canonical": true, - "file": "node_groups.set_node_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetNodeTemplate", - "fullName": "google.cloud.compute.v1.NodeGroups.SetNodeTemplate", - "async": true, - "parameters": [ - { - "name": "node_group", - "type": "TYPE_STRING" - }, - { - "name": "node_groups_set_node_template_request_resource", - "type": ".google.cloud.compute.v1.NodeGroupsSetNodeTemplateRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "NodeGroupsClient", - "fullName": "google.cloud.compute.v1.NodeGroupsClient" - }, - "method": { - "shortName": "SetNodeTemplate", - "fullName": "google.cloud.compute.v1.NodeGroups.SetNodeTemplate", - "service": { - "shortName": "NodeGroups", - "fullName": "google.cloud.compute.v1.NodeGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NodeGroups_SimulateMaintenanceEvent_async", - "title": "AcceleratorTypes simulateMaintenanceEvent Sample", - "origin": "API_DEFINITION", - "description": " Simulates maintenance event on specified nodes from the node group.", - "canonical": true, - "file": "node_groups.simulate_maintenance_event.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SimulateMaintenanceEvent", - "fullName": "google.cloud.compute.v1.NodeGroups.SimulateMaintenanceEvent", - "async": true, - "parameters": [ - { - "name": "node_group", - "type": "TYPE_STRING" - }, - { - "name": "node_groups_simulate_maintenance_event_request_resource", - "type": ".google.cloud.compute.v1.NodeGroupsSimulateMaintenanceEventRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "NodeGroupsClient", - "fullName": "google.cloud.compute.v1.NodeGroupsClient" - }, - "method": { - "shortName": "SimulateMaintenanceEvent", - "fullName": "google.cloud.compute.v1.NodeGroups.SimulateMaintenanceEvent", - "service": { - "shortName": "NodeGroups", - "fullName": "google.cloud.compute.v1.NodeGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NodeGroups_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "node_groups.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.NodeGroups.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1.TestPermissionsRequest" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", - "client": { - "shortName": "NodeGroupsClient", - "fullName": "google.cloud.compute.v1.NodeGroupsClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.NodeGroups.TestIamPermissions", - "service": { - "shortName": "NodeGroups", - "fullName": "google.cloud.compute.v1.NodeGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NodeTemplates_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of node templates. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "node_templates.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.NodeTemplates.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1.NodeTemplateAggregatedList", - "client": { - "shortName": "NodeTemplatesClient", - "fullName": "google.cloud.compute.v1.NodeTemplatesClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.NodeTemplates.AggregatedList", - "service": { - "shortName": "NodeTemplates", - "fullName": "google.cloud.compute.v1.NodeTemplates" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NodeTemplates_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified NodeTemplate resource.", - "canonical": true, - "file": "node_templates.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.NodeTemplates.Delete", - "async": true, - "parameters": [ - { - "name": "node_template", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "NodeTemplatesClient", - "fullName": "google.cloud.compute.v1.NodeTemplatesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.NodeTemplates.Delete", - "service": { - "shortName": "NodeTemplates", - "fullName": "google.cloud.compute.v1.NodeTemplates" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NodeTemplates_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified node template.", - "canonical": true, - "file": "node_templates.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.NodeTemplates.Get", - "async": true, - "parameters": [ - { - "name": "node_template", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.NodeTemplate", - "client": { - "shortName": "NodeTemplatesClient", - "fullName": "google.cloud.compute.v1.NodeTemplatesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.NodeTemplates.Get", - "service": { - "shortName": "NodeTemplates", - "fullName": "google.cloud.compute.v1.NodeTemplates" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NodeTemplates_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "node_templates.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.NodeTemplates.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "NodeTemplatesClient", - "fullName": "google.cloud.compute.v1.NodeTemplatesClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.NodeTemplates.GetIamPolicy", - "service": { - "shortName": "NodeTemplates", - "fullName": "google.cloud.compute.v1.NodeTemplates" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NodeTemplates_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a NodeTemplate resource in the specified project using the data included in the request.", - "canonical": true, - "file": "node_templates.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.NodeTemplates.Insert", - "async": true, - "parameters": [ - { - "name": "node_template_resource", - "type": ".google.cloud.compute.v1.NodeTemplate" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "NodeTemplatesClient", - "fullName": "google.cloud.compute.v1.NodeTemplatesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.NodeTemplates.Insert", - "service": { - "shortName": "NodeTemplates", - "fullName": "google.cloud.compute.v1.NodeTemplates" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NodeTemplates_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of node templates available to the specified project.", - "canonical": true, - "file": "node_templates.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.NodeTemplates.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.NodeTemplateList", - "client": { - "shortName": "NodeTemplatesClient", - "fullName": "google.cloud.compute.v1.NodeTemplatesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.NodeTemplates.List", - "service": { - "shortName": "NodeTemplates", - "fullName": "google.cloud.compute.v1.NodeTemplates" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NodeTemplates_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "node_templates.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.NodeTemplates.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_set_policy_request_resource", - "type": ".google.cloud.compute.v1.RegionSetPolicyRequest" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "NodeTemplatesClient", - "fullName": "google.cloud.compute.v1.NodeTemplatesClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.NodeTemplates.SetIamPolicy", - "service": { - "shortName": "NodeTemplates", - "fullName": "google.cloud.compute.v1.NodeTemplates" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NodeTemplates_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "node_templates.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.NodeTemplates.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", - "client": { - "shortName": "NodeTemplatesClient", - "fullName": "google.cloud.compute.v1.NodeTemplatesClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.NodeTemplates.TestIamPermissions", - "service": { - "shortName": "NodeTemplates", - "fullName": "google.cloud.compute.v1.NodeTemplates" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NodeTypes_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of node types. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "node_types.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.NodeTypes.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1.NodeTypeAggregatedList", - "client": { - "shortName": "NodeTypesClient", - "fullName": "google.cloud.compute.v1.NodeTypesClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.NodeTypes.AggregatedList", - "service": { - "shortName": "NodeTypes", - "fullName": "google.cloud.compute.v1.NodeTypes" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NodeTypes_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified node type.", - "canonical": true, - "file": "node_types.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.NodeTypes.Get", - "async": true, - "parameters": [ - { - "name": "node_type", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.NodeType", - "client": { - "shortName": "NodeTypesClient", - "fullName": "google.cloud.compute.v1.NodeTypesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.NodeTypes.Get", - "service": { - "shortName": "NodeTypes", - "fullName": "google.cloud.compute.v1.NodeTypes" - } - } - } - }, - { - "regionTag": "compute_v1_generated_NodeTypes_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of node types available to the specified project.", - "canonical": true, - "file": "node_types.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.NodeTypes.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.NodeTypeList", - "client": { - "shortName": "NodeTypesClient", - "fullName": "google.cloud.compute.v1.NodeTypesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.NodeTypes.List", - "service": { - "shortName": "NodeTypes", - "fullName": "google.cloud.compute.v1.NodeTypes" - } - } - } - }, - { - "regionTag": "compute_v1_generated_OrganizationSecurityPolicies_AddAssociation_async", - "title": "AcceleratorTypes addAssociation Sample", - "origin": "API_DEFINITION", - "description": " Inserts an association for the specified security policy. This has billing implications. Projects in the hierarchy with effective hierarchical security policies will be automatically enrolled into Cloud Armor Enterprise if not already enrolled. Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API were used to modify firewall policies. This usage is now disabled for most organizations. Use firewallPolicies.addAssociation instead.", - "canonical": true, - "file": "organization_security_policies.add_association.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddAssociation", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.AddAssociation", - "async": true, - "parameters": [ - { - "name": "replace_existing_association", - "type": "TYPE_BOOL" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "security_policy", - "type": "TYPE_STRING" - }, - { - "name": "security_policy_association_resource", - "type": ".google.cloud.compute.v1.SecurityPolicyAssociation" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "OrganizationSecurityPoliciesClient", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPoliciesClient" - }, - "method": { - "shortName": "AddAssociation", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.AddAssociation", - "service": { - "shortName": "OrganizationSecurityPolicies", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_OrganizationSecurityPolicies_AddRule_async", - "title": "AcceleratorTypes addRule Sample", - "origin": "API_DEFINITION", - "description": " Inserts a rule into a security policy. Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API were used to modify firewall policies. This usage is now disabled for most organizations. Use firewallPolicies.addRule instead.", - "canonical": true, - "file": "organization_security_policies.add_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddRule", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.AddRule", - "async": true, - "parameters": [ - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "security_policy", - "type": "TYPE_STRING" - }, - { - "name": "security_policy_rule_resource", - "type": ".google.cloud.compute.v1.SecurityPolicyRule" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "OrganizationSecurityPoliciesClient", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPoliciesClient" - }, - "method": { - "shortName": "AddRule", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.AddRule", - "service": { - "shortName": "OrganizationSecurityPolicies", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_OrganizationSecurityPolicies_CopyRules_async", - "title": "AcceleratorTypes copyRules Sample", - "origin": "API_DEFINITION", - "description": " Copies rules to the specified security policy. Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API were used to modify firewall policies. This usage is now disabled for most organizations. Use firewallPolicies.cloneRules instead.", - "canonical": true, - "file": "organization_security_policies.copy_rules.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CopyRules", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.CopyRules", - "async": true, - "parameters": [ - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "security_policy", - "type": "TYPE_STRING" - }, - { - "name": "source_security_policy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "OrganizationSecurityPoliciesClient", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPoliciesClient" - }, - "method": { - "shortName": "CopyRules", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.CopyRules", - "service": { - "shortName": "OrganizationSecurityPolicies", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_OrganizationSecurityPolicies_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified policy. Use this API to remove Cloud Armor policies. Previously, alpha and beta versions of this API were used to remove firewall policies. This usage is now disabled for most organizations. Use firewallPolicies.delete instead.", - "canonical": true, - "file": "organization_security_policies.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.Delete", - "async": true, - "parameters": [ - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "security_policy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "OrganizationSecurityPoliciesClient", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPoliciesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.Delete", - "service": { - "shortName": "OrganizationSecurityPolicies", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_OrganizationSecurityPolicies_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " List all of the ordered rules present in a single specified policy. Use this API to read Cloud Armor policies. Previously, alpha and beta versions of this API were used to read firewall policies. This usage is now disabled for most organizations. Use firewallPolicies.get instead.", - "canonical": true, - "file": "organization_security_policies.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.Get", - "async": true, - "parameters": [ - { - "name": "security_policy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.SecurityPolicy", - "client": { - "shortName": "OrganizationSecurityPoliciesClient", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPoliciesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.Get", - "service": { - "shortName": "OrganizationSecurityPolicies", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_OrganizationSecurityPolicies_GetAssociation_async", - "title": "AcceleratorTypes getAssociation Sample", - "origin": "API_DEFINITION", - "description": " Gets an association with the specified name. Use this API to read Cloud Armor policies. Previously, alpha and beta versions of this API were used to read firewall policies. This usage is now disabled for most organizations. Use firewallPolicies.getAssociation instead.", - "canonical": true, - "file": "organization_security_policies.get_association.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAssociation", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.GetAssociation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "security_policy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.SecurityPolicyAssociation", - "client": { - "shortName": "OrganizationSecurityPoliciesClient", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPoliciesClient" - }, - "method": { - "shortName": "GetAssociation", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.GetAssociation", - "service": { - "shortName": "OrganizationSecurityPolicies", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_OrganizationSecurityPolicies_GetRule_async", - "title": "AcceleratorTypes getRule Sample", - "origin": "API_DEFINITION", - "description": " Gets a rule at the specified priority. Use this API to read Cloud Armor policies. Previously, alpha and beta versions of this API were used to read firewall policies. This usage is now disabled for most organizations. Use firewallPolicies.getRule instead.", - "canonical": true, - "file": "organization_security_policies.get_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRule", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.GetRule", - "async": true, - "parameters": [ - { - "name": "priority", - "type": "TYPE_INT32" - }, - { - "name": "security_policy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.SecurityPolicyRule", - "client": { - "shortName": "OrganizationSecurityPoliciesClient", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPoliciesClient" - }, - "method": { - "shortName": "GetRule", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.GetRule", - "service": { - "shortName": "OrganizationSecurityPolicies", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_OrganizationSecurityPolicies_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a new policy in the specified organization using the data included in the request. Use this API to add Cloud Armor policies. Previously, alpha and beta versions of this API were used to add firewall policies. This usage is now disabled for most organizations. Use firewallPolicies.insert instead.", - "canonical": true, - "file": "organization_security_policies.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.Insert", - "async": true, - "parameters": [ - { - "name": "parent_id", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "security_policy_resource", - "type": ".google.cloud.compute.v1.SecurityPolicy" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "OrganizationSecurityPoliciesClient", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPoliciesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.Insert", - "service": { - "shortName": "OrganizationSecurityPolicies", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_OrganizationSecurityPolicies_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " List all the policies that have been configured for the specified organization. Use this API to read Cloud Armor policies. Previously, alpha and beta versions of this API were used to read firewall policies. This usage is now disabled for most organizations. Use firewallPolicies.list instead.", - "canonical": true, - "file": "organization_security_policies.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 139, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "parent_id", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.SecurityPolicyList", - "client": { - "shortName": "OrganizationSecurityPoliciesClient", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPoliciesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.List", - "service": { - "shortName": "OrganizationSecurityPolicies", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_OrganizationSecurityPolicies_ListAssociations_async", - "title": "AcceleratorTypes listAssociations Sample", - "origin": "API_DEFINITION", - "description": " Lists associations of a specified target, i.e., organization or folder. Use this API to read Cloud Armor policies. Previously, alpha and beta versions of this API were used to read firewall policies. This usage is now disabled for most organizations. Use firewallPolicies.listAssociations instead.", - "canonical": true, - "file": "organization_security_policies.list_associations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAssociations", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.ListAssociations", - "async": true, - "parameters": [ - { - "name": "target_resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.OrganizationSecurityPoliciesListAssociationsResponse", - "client": { - "shortName": "OrganizationSecurityPoliciesClient", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPoliciesClient" - }, - "method": { - "shortName": "ListAssociations", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.ListAssociations", - "service": { - "shortName": "OrganizationSecurityPolicies", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_OrganizationSecurityPolicies_ListPreconfiguredExpressionSets_async", - "title": "AcceleratorTypes listPreconfiguredExpressionSets Sample", - "origin": "API_DEFINITION", - "description": " Gets the current list of preconfigured Web Application Firewall (WAF) expressions.", - "canonical": true, - "file": "organization_security_policies.list_preconfigured_expression_sets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 137, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPreconfiguredExpressionSets", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.ListPreconfiguredExpressionSets", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "parent_id", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.SecurityPoliciesListPreconfiguredExpressionSetsResponse", - "client": { - "shortName": "OrganizationSecurityPoliciesClient", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPoliciesClient" - }, - "method": { - "shortName": "ListPreconfiguredExpressionSets", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.ListPreconfiguredExpressionSets", - "service": { - "shortName": "OrganizationSecurityPolicies", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_OrganizationSecurityPolicies_Move_async", - "title": "AcceleratorTypes move Sample", - "origin": "API_DEFINITION", - "description": " Moves the specified security policy. Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API were used to modify firewall policies. This usage is now disabled for most organizations. Use firewallPolicies.move instead.", - "canonical": true, - "file": "organization_security_policies.move.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Move", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.Move", - "async": true, - "parameters": [ - { - "name": "parent_id", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "security_policy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "OrganizationSecurityPoliciesClient", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPoliciesClient" - }, - "method": { - "shortName": "Move", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.Move", - "service": { - "shortName": "OrganizationSecurityPolicies", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_OrganizationSecurityPolicies_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patches the specified policy with the data included in the request. Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API were used to modify firewall policies. This usage is now disabled for most organizations. Use firewallPolicies.patch instead.", - "canonical": true, - "file": "organization_security_policies.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.Patch", - "async": true, - "parameters": [ - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "security_policy", - "type": "TYPE_STRING" - }, - { - "name": "security_policy_resource", - "type": ".google.cloud.compute.v1.SecurityPolicy" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "OrganizationSecurityPoliciesClient", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPoliciesClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.Patch", - "service": { - "shortName": "OrganizationSecurityPolicies", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_OrganizationSecurityPolicies_PatchRule_async", - "title": "AcceleratorTypes patchRule Sample", - "origin": "API_DEFINITION", - "description": " Patches a rule at the specified priority. Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API were used to modify firewall policies. This usage is now disabled for most organizations. Use firewallPolicies.patchRule instead.", - "canonical": true, - "file": "organization_security_policies.patch_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PatchRule", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.PatchRule", - "async": true, - "parameters": [ - { - "name": "priority", - "type": "TYPE_INT32" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "security_policy", - "type": "TYPE_STRING" - }, - { - "name": "security_policy_rule_resource", - "type": ".google.cloud.compute.v1.SecurityPolicyRule" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "OrganizationSecurityPoliciesClient", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPoliciesClient" - }, - "method": { - "shortName": "PatchRule", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.PatchRule", - "service": { - "shortName": "OrganizationSecurityPolicies", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_OrganizationSecurityPolicies_RemoveAssociation_async", - "title": "AcceleratorTypes removeAssociation Sample", - "origin": "API_DEFINITION", - "description": " Removes an association for the specified security policy. Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API were used to modify firewall policies. This usage is now disabled for most organizations. Use firewallPolicies.removeAssociation instead.", - "canonical": true, - "file": "organization_security_policies.remove_association.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveAssociation", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.RemoveAssociation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "security_policy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "OrganizationSecurityPoliciesClient", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPoliciesClient" - }, - "method": { - "shortName": "RemoveAssociation", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.RemoveAssociation", - "service": { - "shortName": "OrganizationSecurityPolicies", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_OrganizationSecurityPolicies_RemoveRule_async", - "title": "AcceleratorTypes removeRule Sample", - "origin": "API_DEFINITION", - "description": " Deletes a rule at the specified priority. Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API were used to modify firewall policies. This usage is now disabled for most organizations. Use firewallPolicies.removeRule instead.", - "canonical": true, - "file": "organization_security_policies.remove_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveRule", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.RemoveRule", - "async": true, - "parameters": [ - { - "name": "priority", - "type": "TYPE_INT32" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "security_policy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "OrganizationSecurityPoliciesClient", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPoliciesClient" - }, - "method": { - "shortName": "RemoveRule", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies.RemoveRule", - "service": { - "shortName": "OrganizationSecurityPolicies", - "fullName": "google.cloud.compute.v1.OrganizationSecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_PacketMirrorings_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of packetMirrorings. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "packet_mirrorings.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.PacketMirrorings.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1.PacketMirroringAggregatedList", - "client": { - "shortName": "PacketMirroringsClient", - "fullName": "google.cloud.compute.v1.PacketMirroringsClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.PacketMirrorings.AggregatedList", - "service": { - "shortName": "PacketMirrorings", - "fullName": "google.cloud.compute.v1.PacketMirrorings" - } - } - } - }, - { - "regionTag": "compute_v1_generated_PacketMirrorings_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified PacketMirroring resource.", - "canonical": true, - "file": "packet_mirrorings.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.PacketMirrorings.Delete", - "async": true, - "parameters": [ - { - "name": "packet_mirroring", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "PacketMirroringsClient", - "fullName": "google.cloud.compute.v1.PacketMirroringsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.PacketMirrorings.Delete", - "service": { - "shortName": "PacketMirrorings", - "fullName": "google.cloud.compute.v1.PacketMirrorings" - } - } - } - }, - { - "regionTag": "compute_v1_generated_PacketMirrorings_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified PacketMirroring resource.", - "canonical": true, - "file": "packet_mirrorings.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.PacketMirrorings.Get", - "async": true, - "parameters": [ - { - "name": "packet_mirroring", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.PacketMirroring", - "client": { - "shortName": "PacketMirroringsClient", - "fullName": "google.cloud.compute.v1.PacketMirroringsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.PacketMirrorings.Get", - "service": { - "shortName": "PacketMirrorings", - "fullName": "google.cloud.compute.v1.PacketMirrorings" - } - } - } - }, - { - "regionTag": "compute_v1_generated_PacketMirrorings_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a PacketMirroring resource in the specified project and region using the data included in the request.", - "canonical": true, - "file": "packet_mirrorings.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.PacketMirrorings.Insert", - "async": true, - "parameters": [ - { - "name": "packet_mirroring_resource", - "type": ".google.cloud.compute.v1.PacketMirroring" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "PacketMirroringsClient", - "fullName": "google.cloud.compute.v1.PacketMirroringsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.PacketMirrorings.Insert", - "service": { - "shortName": "PacketMirrorings", - "fullName": "google.cloud.compute.v1.PacketMirrorings" - } - } - } - }, - { - "regionTag": "compute_v1_generated_PacketMirrorings_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of PacketMirroring resources available to the specified project and region.", - "canonical": true, - "file": "packet_mirrorings.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.PacketMirrorings.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.PacketMirroringList", - "client": { - "shortName": "PacketMirroringsClient", - "fullName": "google.cloud.compute.v1.PacketMirroringsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.PacketMirrorings.List", - "service": { - "shortName": "PacketMirrorings", - "fullName": "google.cloud.compute.v1.PacketMirrorings" - } - } - } - }, - { - "regionTag": "compute_v1_generated_PacketMirrorings_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patches the specified PacketMirroring resource with the data included in the request. This method supportsPATCH semantics and usesJSON merge patch format and processing rules.", - "canonical": true, - "file": "packet_mirrorings.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.PacketMirrorings.Patch", - "async": true, - "parameters": [ - { - "name": "packet_mirroring", - "type": "TYPE_STRING" - }, - { - "name": "packet_mirroring_resource", - "type": ".google.cloud.compute.v1.PacketMirroring" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "PacketMirroringsClient", - "fullName": "google.cloud.compute.v1.PacketMirroringsClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.PacketMirrorings.Patch", - "service": { - "shortName": "PacketMirrorings", - "fullName": "google.cloud.compute.v1.PacketMirrorings" - } - } - } - }, - { - "regionTag": "compute_v1_generated_PacketMirrorings_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "packet_mirrorings.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.PacketMirrorings.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", - "client": { - "shortName": "PacketMirroringsClient", - "fullName": "google.cloud.compute.v1.PacketMirroringsClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.PacketMirrorings.TestIamPermissions", - "service": { - "shortName": "PacketMirrorings", - "fullName": "google.cloud.compute.v1.PacketMirrorings" - } - } - } - }, - { - "regionTag": "compute_v1_generated_PreviewFeatures_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the details of the given PreviewFeature.", - "canonical": true, - "file": "preview_features.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.PreviewFeatures.Get", - "async": true, - "parameters": [ - { - "name": "preview_feature", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.PreviewFeature", - "client": { - "shortName": "PreviewFeaturesClient", - "fullName": "google.cloud.compute.v1.PreviewFeaturesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.PreviewFeatures.Get", - "service": { - "shortName": "PreviewFeatures", - "fullName": "google.cloud.compute.v1.PreviewFeatures" - } - } - } - }, - { - "regionTag": "compute_v1_generated_PreviewFeatures_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Returns the details of the given PreviewFeature.", - "canonical": true, - "file": "preview_features.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.PreviewFeatures.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.PreviewFeatureList", - "client": { - "shortName": "PreviewFeaturesClient", - "fullName": "google.cloud.compute.v1.PreviewFeaturesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.PreviewFeatures.List", - "service": { - "shortName": "PreviewFeatures", - "fullName": "google.cloud.compute.v1.PreviewFeatures" - } - } - } - }, - { - "regionTag": "compute_v1_generated_PreviewFeatures_Update_async", - "title": "AcceleratorTypes update Sample", - "origin": "API_DEFINITION", - "description": " Patches the given PreviewFeature. This method is used to enable or disable a PreviewFeature.", - "canonical": true, - "file": "preview_features.update.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1.PreviewFeatures.Update", - "async": true, - "parameters": [ - { - "name": "preview_feature", - "type": "TYPE_STRING" - }, - { - "name": "preview_feature_resource", - "type": ".google.cloud.compute.v1.PreviewFeature" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "PreviewFeaturesClient", - "fullName": "google.cloud.compute.v1.PreviewFeaturesClient" - }, - "method": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1.PreviewFeatures.Update", - "service": { - "shortName": "PreviewFeatures", - "fullName": "google.cloud.compute.v1.PreviewFeatures" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Projects_DisableXpnHost_async", - "title": "AcceleratorTypes disableXpnHost Sample", - "origin": "API_DEFINITION", - "description": " Disable this project as a shared VPC host project.", - "canonical": true, - "file": "projects.disable_xpn_host.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DisableXpnHost", - "fullName": "google.cloud.compute.v1.Projects.DisableXpnHost", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "ProjectsClient", - "fullName": "google.cloud.compute.v1.ProjectsClient" - }, - "method": { - "shortName": "DisableXpnHost", - "fullName": "google.cloud.compute.v1.Projects.DisableXpnHost", - "service": { - "shortName": "Projects", - "fullName": "google.cloud.compute.v1.Projects" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Projects_DisableXpnResource_async", - "title": "AcceleratorTypes disableXpnResource Sample", - "origin": "API_DEFINITION", - "description": " Disable a service resource (also known as service project) associated with this host project.", - "canonical": true, - "file": "projects.disable_xpn_resource.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DisableXpnResource", - "fullName": "google.cloud.compute.v1.Projects.DisableXpnResource", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "projects_disable_xpn_resource_request_resource", - "type": ".google.cloud.compute.v1.ProjectsDisableXpnResourceRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "ProjectsClient", - "fullName": "google.cloud.compute.v1.ProjectsClient" - }, - "method": { - "shortName": "DisableXpnResource", - "fullName": "google.cloud.compute.v1.Projects.DisableXpnResource", - "service": { - "shortName": "Projects", - "fullName": "google.cloud.compute.v1.Projects" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Projects_EnableXpnHost_async", - "title": "AcceleratorTypes enableXpnHost Sample", - "origin": "API_DEFINITION", - "description": " Enable this project as a shared VPC host project.", - "canonical": true, - "file": "projects.enable_xpn_host.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "EnableXpnHost", - "fullName": "google.cloud.compute.v1.Projects.EnableXpnHost", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "ProjectsClient", - "fullName": "google.cloud.compute.v1.ProjectsClient" - }, - "method": { - "shortName": "EnableXpnHost", - "fullName": "google.cloud.compute.v1.Projects.EnableXpnHost", - "service": { - "shortName": "Projects", - "fullName": "google.cloud.compute.v1.Projects" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Projects_EnableXpnResource_async", - "title": "AcceleratorTypes enableXpnResource Sample", - "origin": "API_DEFINITION", - "description": " Enable service resource (a.k.a service project) for a host project, so that subnets in the host project can be used by instances in the service project.", - "canonical": true, - "file": "projects.enable_xpn_resource.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "EnableXpnResource", - "fullName": "google.cloud.compute.v1.Projects.EnableXpnResource", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "projects_enable_xpn_resource_request_resource", - "type": ".google.cloud.compute.v1.ProjectsEnableXpnResourceRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "ProjectsClient", - "fullName": "google.cloud.compute.v1.ProjectsClient" - }, - "method": { - "shortName": "EnableXpnResource", - "fullName": "google.cloud.compute.v1.Projects.EnableXpnResource", - "service": { - "shortName": "Projects", - "fullName": "google.cloud.compute.v1.Projects" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Projects_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified Project resource. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the `quotas` field). To exclude one or more fields, set your request's `fields` query parameter to only include the fields you need. For example, to only include the `id` and `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request.", - "canonical": true, - "file": "projects.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.Projects.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Project", - "client": { - "shortName": "ProjectsClient", - "fullName": "google.cloud.compute.v1.ProjectsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.Projects.Get", - "service": { - "shortName": "Projects", - "fullName": "google.cloud.compute.v1.Projects" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Projects_GetXpnHost_async", - "title": "AcceleratorTypes getXpnHost Sample", - "origin": "API_DEFINITION", - "description": " Gets the shared VPC host project that this project links to. May be empty if no link exists.", - "canonical": true, - "file": "projects.get_xpn_host.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetXpnHost", - "fullName": "google.cloud.compute.v1.Projects.GetXpnHost", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Project", - "client": { - "shortName": "ProjectsClient", - "fullName": "google.cloud.compute.v1.ProjectsClient" - }, - "method": { - "shortName": "GetXpnHost", - "fullName": "google.cloud.compute.v1.Projects.GetXpnHost", - "service": { - "shortName": "Projects", - "fullName": "google.cloud.compute.v1.Projects" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Projects_GetXpnResources_async", - "title": "AcceleratorTypes getXpnResources Sample", - "origin": "API_DEFINITION", - "description": " Gets service resources (a.k.a service project) associated with this host project.", - "canonical": true, - "file": "projects.get_xpn_resources.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetXpnResources", - "fullName": "google.cloud.compute.v1.Projects.GetXpnResources", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.ProjectsGetXpnResources", - "client": { - "shortName": "ProjectsClient", - "fullName": "google.cloud.compute.v1.ProjectsClient" - }, - "method": { - "shortName": "GetXpnResources", - "fullName": "google.cloud.compute.v1.Projects.GetXpnResources", - "service": { - "shortName": "Projects", - "fullName": "google.cloud.compute.v1.Projects" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Projects_ListXpnHosts_async", - "title": "AcceleratorTypes listXpnHosts Sample", - "origin": "API_DEFINITION", - "description": " Lists all shared VPC host projects visible to the user in an organization.", - "canonical": true, - "file": "projects.list_xpn_hosts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListXpnHosts", - "fullName": "google.cloud.compute.v1.Projects.ListXpnHosts", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "projects_list_xpn_hosts_request_resource", - "type": ".google.cloud.compute.v1.ProjectsListXpnHostsRequest" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.XpnHostList", - "client": { - "shortName": "ProjectsClient", - "fullName": "google.cloud.compute.v1.ProjectsClient" - }, - "method": { - "shortName": "ListXpnHosts", - "fullName": "google.cloud.compute.v1.Projects.ListXpnHosts", - "service": { - "shortName": "Projects", - "fullName": "google.cloud.compute.v1.Projects" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Projects_MoveDisk_async", - "title": "AcceleratorTypes moveDisk Sample", - "origin": "API_DEFINITION", - "description": " Moves a persistent disk from one zone to another. *Note*: The moveDisk API will be deprecated on September 29, 2026. Starting September 29, 2025, you can't use the moveDisk API on new projects. To move a disk to a different region or zone, follow the steps in [Change the location of a disk](https://cloud.google.com/compute/docs/disks/migrate-to-hyperdisk#migrate-to-hd). Projects that already use the moveDisk API can continue usage until September 29, 2026. Starting November 1, 2025, API responses will include a warning message in the response body about the upcoming deprecation. You can skip the message to continue using the service without interruption.", - "canonical": true, - "file": "projects.move_disk.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "MoveDisk", - "fullName": "google.cloud.compute.v1.Projects.MoveDisk", - "async": true, - "parameters": [ - { - "name": "disk_move_request_resource", - "type": ".google.cloud.compute.v1.DiskMoveRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "ProjectsClient", - "fullName": "google.cloud.compute.v1.ProjectsClient" - }, - "method": { - "shortName": "MoveDisk", - "fullName": "google.cloud.compute.v1.Projects.MoveDisk", - "service": { - "shortName": "Projects", - "fullName": "google.cloud.compute.v1.Projects" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Projects_MoveInstance_async", - "title": "AcceleratorTypes moveInstance Sample", - "origin": "API_DEFINITION", - "description": " Moves an instance and its attached persistent disks from one zone to another. *Note*: Moving VMs or disks by using this method might cause unexpected behavior. For more information, see the [known issue](/compute/docs/troubleshooting/known-issues#moving_vms_or_disks_using_the_moveinstance_api_or_the_causes_unexpected_behavior). [Deprecated] This method is deprecated. See [moving instance across zones](/compute/docs/instances/moving-instance-across-zones) instead.", - "canonical": true, - "file": "projects.move_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "MoveInstance", - "fullName": "google.cloud.compute.v1.Projects.MoveInstance", - "async": true, - "parameters": [ - { - "name": "instance_move_request_resource", - "type": ".google.cloud.compute.v1.InstanceMoveRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "ProjectsClient", - "fullName": "google.cloud.compute.v1.ProjectsClient" - }, - "method": { - "shortName": "MoveInstance", - "fullName": "google.cloud.compute.v1.Projects.MoveInstance", - "service": { - "shortName": "Projects", - "fullName": "google.cloud.compute.v1.Projects" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Projects_SetCloudArmorTier_async", - "title": "AcceleratorTypes setCloudArmorTier Sample", - "origin": "API_DEFINITION", - "description": " Sets the Cloud Armor tier of the project. To set ENTERPRISE or above the billing account of the project must be subscribed to Cloud Armor Enterprise. See Subscribing to Cloud Armor Enterprise for more information.", - "canonical": true, - "file": "projects.set_cloud_armor_tier.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetCloudArmorTier", - "fullName": "google.cloud.compute.v1.Projects.SetCloudArmorTier", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "projects_set_cloud_armor_tier_request_resource", - "type": ".google.cloud.compute.v1.ProjectsSetCloudArmorTierRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "ProjectsClient", - "fullName": "google.cloud.compute.v1.ProjectsClient" - }, - "method": { - "shortName": "SetCloudArmorTier", - "fullName": "google.cloud.compute.v1.Projects.SetCloudArmorTier", - "service": { - "shortName": "Projects", - "fullName": "google.cloud.compute.v1.Projects" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Projects_SetCommonInstanceMetadata_async", - "title": "AcceleratorTypes setCommonInstanceMetadata Sample", - "origin": "API_DEFINITION", - "description": " Sets metadata common to all instances within the specified project using the data included in the request.", - "canonical": true, - "file": "projects.set_common_instance_metadata.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetCommonInstanceMetadata", - "fullName": "google.cloud.compute.v1.Projects.SetCommonInstanceMetadata", - "async": true, - "parameters": [ - { - "name": "metadata_resource", - "type": ".google.cloud.compute.v1.Metadata" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "ProjectsClient", - "fullName": "google.cloud.compute.v1.ProjectsClient" - }, - "method": { - "shortName": "SetCommonInstanceMetadata", - "fullName": "google.cloud.compute.v1.Projects.SetCommonInstanceMetadata", - "service": { - "shortName": "Projects", - "fullName": "google.cloud.compute.v1.Projects" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Projects_SetDefaultNetworkTier_async", - "title": "AcceleratorTypes setDefaultNetworkTier Sample", - "origin": "API_DEFINITION", - "description": " Sets the default network tier of the project. The default network tier is used when an address/forwardingRule/instance is created without specifying the network tier field.", - "canonical": true, - "file": "projects.set_default_network_tier.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetDefaultNetworkTier", - "fullName": "google.cloud.compute.v1.Projects.SetDefaultNetworkTier", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "projects_set_default_network_tier_request_resource", - "type": ".google.cloud.compute.v1.ProjectsSetDefaultNetworkTierRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "ProjectsClient", - "fullName": "google.cloud.compute.v1.ProjectsClient" - }, - "method": { - "shortName": "SetDefaultNetworkTier", - "fullName": "google.cloud.compute.v1.Projects.SetDefaultNetworkTier", - "service": { - "shortName": "Projects", - "fullName": "google.cloud.compute.v1.Projects" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Projects_SetUsageExportBucket_async", - "title": "AcceleratorTypes setUsageExportBucket Sample", - "origin": "API_DEFINITION", - "description": " Enables the usage export feature and sets theusage export bucket where reports are stored. If you provide an empty request body using this method, the usage export feature will be disabled.", - "canonical": true, - "file": "projects.set_usage_export_bucket.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetUsageExportBucket", - "fullName": "google.cloud.compute.v1.Projects.SetUsageExportBucket", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "usage_export_location_resource", - "type": ".google.cloud.compute.v1.UsageExportLocation" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "ProjectsClient", - "fullName": "google.cloud.compute.v1.ProjectsClient" - }, - "method": { - "shortName": "SetUsageExportBucket", - "fullName": "google.cloud.compute.v1.Projects.SetUsageExportBucket", - "service": { - "shortName": "Projects", - "fullName": "google.cloud.compute.v1.Projects" - } - } - } - }, - { - "regionTag": "compute_v1_generated_PublicAdvertisedPrefixes_Announce_async", - "title": "AcceleratorTypes announce Sample", - "origin": "API_DEFINITION", - "description": " Announces the specified PublicAdvertisedPrefix", - "canonical": true, - "file": "public_advertised_prefixes.announce.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Announce", - "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes.Announce", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "public_advertised_prefix", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "PublicAdvertisedPrefixesClient", - "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixesClient" - }, - "method": { - "shortName": "Announce", - "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes.Announce", - "service": { - "shortName": "PublicAdvertisedPrefixes", - "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes" - } - } - } - }, - { - "regionTag": "compute_v1_generated_PublicAdvertisedPrefixes_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified PublicAdvertisedPrefix", - "canonical": true, - "file": "public_advertised_prefixes.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "public_advertised_prefix", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "PublicAdvertisedPrefixesClient", - "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes.Delete", - "service": { - "shortName": "PublicAdvertisedPrefixes", - "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes" - } - } - } - }, - { - "regionTag": "compute_v1_generated_PublicAdvertisedPrefixes_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified PublicAdvertisedPrefix resource.", - "canonical": true, - "file": "public_advertised_prefixes.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "public_advertised_prefix", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.PublicAdvertisedPrefix", - "client": { - "shortName": "PublicAdvertisedPrefixesClient", - "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes.Get", - "service": { - "shortName": "PublicAdvertisedPrefixes", - "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes" - } - } - } - }, - { - "regionTag": "compute_v1_generated_PublicAdvertisedPrefixes_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a PublicAdvertisedPrefix in the specified project using the parameters that are included in the request.", - "canonical": true, - "file": "public_advertised_prefixes.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "public_advertised_prefix_resource", - "type": ".google.cloud.compute.v1.PublicAdvertisedPrefix" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "PublicAdvertisedPrefixesClient", - "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes.Insert", - "service": { - "shortName": "PublicAdvertisedPrefixes", - "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes" - } - } - } - }, - { - "regionTag": "compute_v1_generated_PublicAdvertisedPrefixes_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Lists the PublicAdvertisedPrefixes for a project.", - "canonical": true, - "file": "public_advertised_prefixes.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.PublicAdvertisedPrefixList", - "client": { - "shortName": "PublicAdvertisedPrefixesClient", - "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes.List", - "service": { - "shortName": "PublicAdvertisedPrefixes", - "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes" - } - } - } - }, - { - "regionTag": "compute_v1_generated_PublicAdvertisedPrefixes_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patches the specified Router resource with the data included in the request. This method supportsPATCH semantics and usesJSON merge patch format and processing rules.", - "canonical": true, - "file": "public_advertised_prefixes.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes.Patch", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "public_advertised_prefix", - "type": "TYPE_STRING" - }, - { - "name": "public_advertised_prefix_resource", - "type": ".google.cloud.compute.v1.PublicAdvertisedPrefix" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "PublicAdvertisedPrefixesClient", - "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixesClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes.Patch", - "service": { - "shortName": "PublicAdvertisedPrefixes", - "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes" - } - } - } - }, - { - "regionTag": "compute_v1_generated_PublicAdvertisedPrefixes_Withdraw_async", - "title": "AcceleratorTypes withdraw Sample", - "origin": "API_DEFINITION", - "description": " Withdraws the specified PublicAdvertisedPrefix", - "canonical": true, - "file": "public_advertised_prefixes.withdraw.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Withdraw", - "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes.Withdraw", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "public_advertised_prefix", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "PublicAdvertisedPrefixesClient", - "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixesClient" - }, - "method": { - "shortName": "Withdraw", - "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes.Withdraw", - "service": { - "shortName": "PublicAdvertisedPrefixes", - "fullName": "google.cloud.compute.v1.PublicAdvertisedPrefixes" - } - } - } - }, - { - "regionTag": "compute_v1_generated_PublicDelegatedPrefixes_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Lists all PublicDelegatedPrefix resources owned by the specific project across all scopes. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "public_delegated_prefixes.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1.PublicDelegatedPrefixAggregatedList", - "client": { - "shortName": "PublicDelegatedPrefixesClient", - "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixesClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes.AggregatedList", - "service": { - "shortName": "PublicDelegatedPrefixes", - "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes" - } - } - } - }, - { - "regionTag": "compute_v1_generated_PublicDelegatedPrefixes_Announce_async", - "title": "AcceleratorTypes announce Sample", - "origin": "API_DEFINITION", - "description": " Announces the specified PublicDelegatedPrefix in the given region.", - "canonical": true, - "file": "public_delegated_prefixes.announce.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Announce", - "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes.Announce", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "public_delegated_prefix", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "PublicDelegatedPrefixesClient", - "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixesClient" - }, - "method": { - "shortName": "Announce", - "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes.Announce", - "service": { - "shortName": "PublicDelegatedPrefixes", - "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes" - } - } - } - }, - { - "regionTag": "compute_v1_generated_PublicDelegatedPrefixes_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified PublicDelegatedPrefix in the given region.", - "canonical": true, - "file": "public_delegated_prefixes.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "public_delegated_prefix", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "PublicDelegatedPrefixesClient", - "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes.Delete", - "service": { - "shortName": "PublicDelegatedPrefixes", - "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes" - } - } - } - }, - { - "regionTag": "compute_v1_generated_PublicDelegatedPrefixes_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified PublicDelegatedPrefix resource in the given region.", - "canonical": true, - "file": "public_delegated_prefixes.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "public_delegated_prefix", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.PublicDelegatedPrefix", - "client": { - "shortName": "PublicDelegatedPrefixesClient", - "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes.Get", - "service": { - "shortName": "PublicDelegatedPrefixes", - "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes" - } - } - } - }, - { - "regionTag": "compute_v1_generated_PublicDelegatedPrefixes_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a PublicDelegatedPrefix in the specified project in the given region using the parameters that are included in the request.", - "canonical": true, - "file": "public_delegated_prefixes.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "public_delegated_prefix_resource", - "type": ".google.cloud.compute.v1.PublicDelegatedPrefix" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "PublicDelegatedPrefixesClient", - "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes.Insert", - "service": { - "shortName": "PublicDelegatedPrefixes", - "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes" - } - } - } - }, - { - "regionTag": "compute_v1_generated_PublicDelegatedPrefixes_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Lists the PublicDelegatedPrefixes for a project in the given region.", - "canonical": true, - "file": "public_delegated_prefixes.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.PublicDelegatedPrefixList", - "client": { - "shortName": "PublicDelegatedPrefixesClient", - "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes.List", - "service": { - "shortName": "PublicDelegatedPrefixes", - "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes" - } - } - } - }, - { - "regionTag": "compute_v1_generated_PublicDelegatedPrefixes_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patches the specified PublicDelegatedPrefix resource with the data included in the request. This method supportsPATCH semantics and usesJSON merge patch format and processing rules.", - "canonical": true, - "file": "public_delegated_prefixes.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes.Patch", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "public_delegated_prefix", - "type": "TYPE_STRING" - }, - { - "name": "public_delegated_prefix_resource", - "type": ".google.cloud.compute.v1.PublicDelegatedPrefix" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "PublicDelegatedPrefixesClient", - "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixesClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes.Patch", - "service": { - "shortName": "PublicDelegatedPrefixes", - "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes" - } - } - } - }, - { - "regionTag": "compute_v1_generated_PublicDelegatedPrefixes_Withdraw_async", - "title": "AcceleratorTypes withdraw Sample", - "origin": "API_DEFINITION", - "description": " Withdraws the specified PublicDelegatedPrefix in the given region.", - "canonical": true, - "file": "public_delegated_prefixes.withdraw.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Withdraw", - "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes.Withdraw", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "public_delegated_prefix", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "PublicDelegatedPrefixesClient", - "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixesClient" - }, - "method": { - "shortName": "Withdraw", - "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes.Withdraw", - "service": { - "shortName": "PublicDelegatedPrefixes", - "fullName": "google.cloud.compute.v1.PublicDelegatedPrefixes" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionAutoscalers_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified autoscaler.", - "canonical": true, - "file": "region_autoscalers.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionAutoscalers.Delete", - "async": true, - "parameters": [ - { - "name": "autoscaler", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionAutoscalersClient", - "fullName": "google.cloud.compute.v1.RegionAutoscalersClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionAutoscalers.Delete", - "service": { - "shortName": "RegionAutoscalers", - "fullName": "google.cloud.compute.v1.RegionAutoscalers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionAutoscalers_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified autoscaler.", - "canonical": true, - "file": "region_autoscalers.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionAutoscalers.Get", - "async": true, - "parameters": [ - { - "name": "autoscaler", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Autoscaler", - "client": { - "shortName": "RegionAutoscalersClient", - "fullName": "google.cloud.compute.v1.RegionAutoscalersClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionAutoscalers.Get", - "service": { - "shortName": "RegionAutoscalers", - "fullName": "google.cloud.compute.v1.RegionAutoscalers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionAutoscalers_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates an autoscaler in the specified project using the data included in the request.", - "canonical": true, - "file": "region_autoscalers.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionAutoscalers.Insert", - "async": true, - "parameters": [ - { - "name": "autoscaler_resource", - "type": ".google.cloud.compute.v1.Autoscaler" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionAutoscalersClient", - "fullName": "google.cloud.compute.v1.RegionAutoscalersClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionAutoscalers.Insert", - "service": { - "shortName": "RegionAutoscalers", - "fullName": "google.cloud.compute.v1.RegionAutoscalers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionAutoscalers_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of autoscalers contained within the specified region.", - "canonical": true, - "file": "region_autoscalers.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionAutoscalers.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.RegionAutoscalerList", - "client": { - "shortName": "RegionAutoscalersClient", - "fullName": "google.cloud.compute.v1.RegionAutoscalersClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionAutoscalers.List", - "service": { - "shortName": "RegionAutoscalers", - "fullName": "google.cloud.compute.v1.RegionAutoscalers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionAutoscalers_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Updates an autoscaler in the specified project using the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.", - "canonical": true, - "file": "region_autoscalers.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.RegionAutoscalers.Patch", - "async": true, - "parameters": [ - { - "name": "autoscaler", - "type": "TYPE_STRING" - }, - { - "name": "autoscaler_resource", - "type": ".google.cloud.compute.v1.Autoscaler" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionAutoscalersClient", - "fullName": "google.cloud.compute.v1.RegionAutoscalersClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.RegionAutoscalers.Patch", - "service": { - "shortName": "RegionAutoscalers", - "fullName": "google.cloud.compute.v1.RegionAutoscalers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionAutoscalers_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "region_autoscalers.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.RegionAutoscalers.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", - "client": { - "shortName": "RegionAutoscalersClient", - "fullName": "google.cloud.compute.v1.RegionAutoscalersClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.RegionAutoscalers.TestIamPermissions", - "service": { - "shortName": "RegionAutoscalers", - "fullName": "google.cloud.compute.v1.RegionAutoscalers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionAutoscalers_Update_async", - "title": "AcceleratorTypes update Sample", - "origin": "API_DEFINITION", - "description": " Updates an autoscaler in the specified project using the data included in the request.", - "canonical": true, - "file": "region_autoscalers.update.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1.RegionAutoscalers.Update", - "async": true, - "parameters": [ - { - "name": "autoscaler", - "type": "TYPE_STRING" - }, - { - "name": "autoscaler_resource", - "type": ".google.cloud.compute.v1.Autoscaler" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionAutoscalersClient", - "fullName": "google.cloud.compute.v1.RegionAutoscalersClient" - }, - "method": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1.RegionAutoscalers.Update", - "service": { - "shortName": "RegionAutoscalers", - "fullName": "google.cloud.compute.v1.RegionAutoscalers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionBackendBuckets_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified regional BackendBucket resource.", - "canonical": true, - "file": "region_backend_buckets.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionBackendBuckets.Delete", - "async": true, - "parameters": [ - { - "name": "backend_bucket", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionBackendBucketsClient", - "fullName": "google.cloud.compute.v1.RegionBackendBucketsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionBackendBuckets.Delete", - "service": { - "shortName": "RegionBackendBuckets", - "fullName": "google.cloud.compute.v1.RegionBackendBuckets" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionBackendBuckets_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified regional BackendBucket resource.", - "canonical": true, - "file": "region_backend_buckets.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionBackendBuckets.Get", - "async": true, - "parameters": [ - { - "name": "backend_bucket", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.BackendBucket", - "client": { - "shortName": "RegionBackendBucketsClient", - "fullName": "google.cloud.compute.v1.RegionBackendBucketsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionBackendBuckets.Get", - "service": { - "shortName": "RegionBackendBuckets", - "fullName": "google.cloud.compute.v1.RegionBackendBuckets" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionBackendBuckets_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "region_backend_buckets.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.RegionBackendBuckets.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "RegionBackendBucketsClient", - "fullName": "google.cloud.compute.v1.RegionBackendBucketsClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.RegionBackendBuckets.GetIamPolicy", - "service": { - "shortName": "RegionBackendBuckets", - "fullName": "google.cloud.compute.v1.RegionBackendBuckets" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionBackendBuckets_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a RegionBackendBucket in the specified project in the given scope using the parameters that are included in the request.", - "canonical": true, - "file": "region_backend_buckets.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionBackendBuckets.Insert", - "async": true, - "parameters": [ - { - "name": "backend_bucket_resource", - "type": ".google.cloud.compute.v1.BackendBucket" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionBackendBucketsClient", - "fullName": "google.cloud.compute.v1.RegionBackendBucketsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionBackendBuckets.Insert", - "service": { - "shortName": "RegionBackendBuckets", - "fullName": "google.cloud.compute.v1.RegionBackendBuckets" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionBackendBuckets_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of BackendBucket resources available to the specified project in the given region.", - "canonical": true, - "file": "region_backend_buckets.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionBackendBuckets.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.BackendBucketList", - "client": { - "shortName": "RegionBackendBucketsClient", - "fullName": "google.cloud.compute.v1.RegionBackendBucketsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionBackendBuckets.List", - "service": { - "shortName": "RegionBackendBuckets", - "fullName": "google.cloud.compute.v1.RegionBackendBuckets" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionBackendBuckets_ListUsable_async", - "title": "AcceleratorTypes listUsable Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of all usable backend buckets in the specified project in the given region.", - "canonical": true, - "file": "region_backend_buckets.list_usable.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 146, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListUsable", - "fullName": "google.cloud.compute.v1.RegionBackendBuckets.ListUsable", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.BackendBucketListUsable", - "client": { - "shortName": "RegionBackendBucketsClient", - "fullName": "google.cloud.compute.v1.RegionBackendBucketsClient" - }, - "method": { - "shortName": "ListUsable", - "fullName": "google.cloud.compute.v1.RegionBackendBuckets.ListUsable", - "service": { - "shortName": "RegionBackendBuckets", - "fullName": "google.cloud.compute.v1.RegionBackendBuckets" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionBackendBuckets_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified BackendBucket resource with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.", - "canonical": true, - "file": "region_backend_buckets.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.RegionBackendBuckets.Patch", - "async": true, - "parameters": [ - { - "name": "backend_bucket", - "type": "TYPE_STRING" - }, - { - "name": "backend_bucket_resource", - "type": ".google.cloud.compute.v1.BackendBucket" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionBackendBucketsClient", - "fullName": "google.cloud.compute.v1.RegionBackendBucketsClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.RegionBackendBuckets.Patch", - "service": { - "shortName": "RegionBackendBuckets", - "fullName": "google.cloud.compute.v1.RegionBackendBuckets" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionBackendBuckets_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "region_backend_buckets.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.RegionBackendBuckets.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_set_policy_request_resource", - "type": ".google.cloud.compute.v1.RegionSetPolicyRequest" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "RegionBackendBucketsClient", - "fullName": "google.cloud.compute.v1.RegionBackendBucketsClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.RegionBackendBuckets.SetIamPolicy", - "service": { - "shortName": "RegionBackendBuckets", - "fullName": "google.cloud.compute.v1.RegionBackendBuckets" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionBackendBuckets_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "region_backend_buckets.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.RegionBackendBuckets.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", - "client": { - "shortName": "RegionBackendBucketsClient", - "fullName": "google.cloud.compute.v1.RegionBackendBucketsClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.RegionBackendBuckets.TestIamPermissions", - "service": { - "shortName": "RegionBackendBuckets", - "fullName": "google.cloud.compute.v1.RegionBackendBuckets" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionBackendServices_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified regional BackendService resource.", - "canonical": true, - "file": "region_backend_services.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionBackendServices.Delete", - "async": true, - "parameters": [ - { - "name": "backend_service", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionBackendServicesClient", - "fullName": "google.cloud.compute.v1.RegionBackendServicesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionBackendServices.Delete", - "service": { - "shortName": "RegionBackendServices", - "fullName": "google.cloud.compute.v1.RegionBackendServices" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionBackendServices_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified regional BackendService resource.", - "canonical": true, - "file": "region_backend_services.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionBackendServices.Get", - "async": true, - "parameters": [ - { - "name": "backend_service", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.BackendService", - "client": { - "shortName": "RegionBackendServicesClient", - "fullName": "google.cloud.compute.v1.RegionBackendServicesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionBackendServices.Get", - "service": { - "shortName": "RegionBackendServices", - "fullName": "google.cloud.compute.v1.RegionBackendServices" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionBackendServices_GetHealth_async", - "title": "AcceleratorTypes getHealth Sample", - "origin": "API_DEFINITION", - "description": " Gets the most recent health check results for this regional BackendService.", - "canonical": true, - "file": "region_backend_services.get_health.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetHealth", - "fullName": "google.cloud.compute.v1.RegionBackendServices.GetHealth", - "async": true, - "parameters": [ - { - "name": "backend_service", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource_group_reference_resource", - "type": ".google.cloud.compute.v1.ResourceGroupReference" - } - ], - "resultType": ".google.cloud.compute.v1.BackendServiceGroupHealth", - "client": { - "shortName": "RegionBackendServicesClient", - "fullName": "google.cloud.compute.v1.RegionBackendServicesClient" - }, - "method": { - "shortName": "GetHealth", - "fullName": "google.cloud.compute.v1.RegionBackendServices.GetHealth", - "service": { - "shortName": "RegionBackendServices", - "fullName": "google.cloud.compute.v1.RegionBackendServices" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionBackendServices_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "region_backend_services.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.RegionBackendServices.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "RegionBackendServicesClient", - "fullName": "google.cloud.compute.v1.RegionBackendServicesClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.RegionBackendServices.GetIamPolicy", - "service": { - "shortName": "RegionBackendServices", - "fullName": "google.cloud.compute.v1.RegionBackendServices" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionBackendServices_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a regional BackendService resource in the specified project using the data included in the request. For more information, see Backend services overview.", - "canonical": true, - "file": "region_backend_services.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionBackendServices.Insert", - "async": true, - "parameters": [ - { - "name": "backend_service_resource", - "type": ".google.cloud.compute.v1.BackendService" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionBackendServicesClient", - "fullName": "google.cloud.compute.v1.RegionBackendServicesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionBackendServices.Insert", - "service": { - "shortName": "RegionBackendServices", - "fullName": "google.cloud.compute.v1.RegionBackendServices" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionBackendServices_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of regional BackendService resources available to the specified project in the given region.", - "canonical": true, - "file": "region_backend_services.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionBackendServices.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.BackendServiceList", - "client": { - "shortName": "RegionBackendServicesClient", - "fullName": "google.cloud.compute.v1.RegionBackendServicesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionBackendServices.List", - "service": { - "shortName": "RegionBackendServices", - "fullName": "google.cloud.compute.v1.RegionBackendServices" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionBackendServices_ListUsable_async", - "title": "AcceleratorTypes listUsable Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of all usable backend services in the specified project in the given region.", - "canonical": true, - "file": "region_backend_services.list_usable.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 146, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListUsable", - "fullName": "google.cloud.compute.v1.RegionBackendServices.ListUsable", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.BackendServiceListUsable", - "client": { - "shortName": "RegionBackendServicesClient", - "fullName": "google.cloud.compute.v1.RegionBackendServicesClient" - }, - "method": { - "shortName": "ListUsable", - "fullName": "google.cloud.compute.v1.RegionBackendServices.ListUsable", - "service": { - "shortName": "RegionBackendServices", - "fullName": "google.cloud.compute.v1.RegionBackendServices" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionBackendServices_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified regional BackendService resource with the data included in the request. For more information, see Understanding backend services This method supports PATCH semantics and uses the JSON merge patch format and processing rules.", - "canonical": true, - "file": "region_backend_services.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.RegionBackendServices.Patch", - "async": true, - "parameters": [ - { - "name": "backend_service", - "type": "TYPE_STRING" - }, - { - "name": "backend_service_resource", - "type": ".google.cloud.compute.v1.BackendService" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionBackendServicesClient", - "fullName": "google.cloud.compute.v1.RegionBackendServicesClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.RegionBackendServices.Patch", - "service": { - "shortName": "RegionBackendServices", - "fullName": "google.cloud.compute.v1.RegionBackendServices" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionBackendServices_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "region_backend_services.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.RegionBackendServices.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_set_policy_request_resource", - "type": ".google.cloud.compute.v1.RegionSetPolicyRequest" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "RegionBackendServicesClient", - "fullName": "google.cloud.compute.v1.RegionBackendServicesClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.RegionBackendServices.SetIamPolicy", - "service": { - "shortName": "RegionBackendServices", - "fullName": "google.cloud.compute.v1.RegionBackendServices" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionBackendServices_SetSecurityPolicy_async", - "title": "AcceleratorTypes setSecurityPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the Google Cloud Armor security policy for the specified backend service. For more information, seeGoogle Cloud Armor Overview", - "canonical": true, - "file": "region_backend_services.set_security_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetSecurityPolicy", - "fullName": "google.cloud.compute.v1.RegionBackendServices.SetSecurityPolicy", - "async": true, - "parameters": [ - { - "name": "backend_service", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "security_policy_reference_resource", - "type": ".google.cloud.compute.v1.SecurityPolicyReference" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionBackendServicesClient", - "fullName": "google.cloud.compute.v1.RegionBackendServicesClient" - }, - "method": { - "shortName": "SetSecurityPolicy", - "fullName": "google.cloud.compute.v1.RegionBackendServices.SetSecurityPolicy", - "service": { - "shortName": "RegionBackendServices", - "fullName": "google.cloud.compute.v1.RegionBackendServices" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionBackendServices_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "region_backend_services.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.RegionBackendServices.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", - "client": { - "shortName": "RegionBackendServicesClient", - "fullName": "google.cloud.compute.v1.RegionBackendServicesClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.RegionBackendServices.TestIamPermissions", - "service": { - "shortName": "RegionBackendServices", - "fullName": "google.cloud.compute.v1.RegionBackendServices" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionBackendServices_Update_async", - "title": "AcceleratorTypes update Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified regional BackendService resource with the data included in the request. For more information, see Backend services overview.", - "canonical": true, - "file": "region_backend_services.update.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1.RegionBackendServices.Update", - "async": true, - "parameters": [ - { - "name": "backend_service", - "type": "TYPE_STRING" - }, - { - "name": "backend_service_resource", - "type": ".google.cloud.compute.v1.BackendService" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionBackendServicesClient", - "fullName": "google.cloud.compute.v1.RegionBackendServicesClient" - }, - "method": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1.RegionBackendServices.Update", - "service": { - "shortName": "RegionBackendServices", - "fullName": "google.cloud.compute.v1.RegionBackendServices" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionCommitments_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of commitments by region. To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "region_commitments.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.RegionCommitments.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1.CommitmentAggregatedList", - "client": { - "shortName": "RegionCommitmentsClient", - "fullName": "google.cloud.compute.v1.RegionCommitmentsClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.RegionCommitments.AggregatedList", - "service": { - "shortName": "RegionCommitments", - "fullName": "google.cloud.compute.v1.RegionCommitments" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionCommitments_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified commitment resource.", - "canonical": true, - "file": "region_commitments.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionCommitments.Get", - "async": true, - "parameters": [ - { - "name": "commitment", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Commitment", - "client": { - "shortName": "RegionCommitmentsClient", - "fullName": "google.cloud.compute.v1.RegionCommitmentsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionCommitments.Get", - "service": { - "shortName": "RegionCommitments", - "fullName": "google.cloud.compute.v1.RegionCommitments" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionCommitments_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a commitment in the specified project using the data included in the request.", - "canonical": true, - "file": "region_commitments.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionCommitments.Insert", - "async": true, - "parameters": [ - { - "name": "commitment_resource", - "type": ".google.cloud.compute.v1.Commitment" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionCommitmentsClient", - "fullName": "google.cloud.compute.v1.RegionCommitmentsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionCommitments.Insert", - "service": { - "shortName": "RegionCommitments", - "fullName": "google.cloud.compute.v1.RegionCommitments" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionCommitments_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of commitments contained within the specified region.", - "canonical": true, - "file": "region_commitments.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionCommitments.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.CommitmentList", - "client": { - "shortName": "RegionCommitmentsClient", - "fullName": "google.cloud.compute.v1.RegionCommitmentsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionCommitments.List", - "service": { - "shortName": "RegionCommitments", - "fullName": "google.cloud.compute.v1.RegionCommitments" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionCommitments_Update_async", - "title": "AcceleratorTypes update Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified commitment with the data included in the request. Update is performed only on selected fields included as part of update-mask. Only the following fields can be updated: auto_renew and plan.", - "canonical": true, - "file": "region_commitments.update.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 89, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1.RegionCommitments.Update", - "async": true, - "parameters": [ - { - "name": "commitment", - "type": "TYPE_STRING" - }, - { - "name": "commitment_resource", - "type": ".google.cloud.compute.v1.Commitment" - }, - { - "name": "paths", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionCommitmentsClient", - "fullName": "google.cloud.compute.v1.RegionCommitmentsClient" - }, - "method": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1.RegionCommitments.Update", - "service": { - "shortName": "RegionCommitments", - "fullName": "google.cloud.compute.v1.RegionCommitments" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionCompositeHealthChecks_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of all CompositeHealthCheck resources (all regional) available to the specified project. To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "region_composite_health_checks.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecks.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1.CompositeHealthCheckAggregatedList", - "client": { - "shortName": "RegionCompositeHealthChecksClient", - "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecksClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecks.AggregatedList", - "service": { - "shortName": "RegionCompositeHealthChecks", - "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionCompositeHealthChecks_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified CompositeHealthCheck in the given region", - "canonical": true, - "file": "region_composite_health_checks.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecks.Delete", - "async": true, - "parameters": [ - { - "name": "composite_health_check", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionCompositeHealthChecksClient", - "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecksClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecks.Delete", - "service": { - "shortName": "RegionCompositeHealthChecks", - "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionCompositeHealthChecks_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified CompositeHealthCheck resource in the given region.", - "canonical": true, - "file": "region_composite_health_checks.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecks.Get", - "async": true, - "parameters": [ - { - "name": "composite_health_check", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.CompositeHealthCheck", - "client": { - "shortName": "RegionCompositeHealthChecksClient", - "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecksClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecks.Get", - "service": { - "shortName": "RegionCompositeHealthChecks", - "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionCompositeHealthChecks_GetHealth_async", - "title": "AcceleratorTypes getHealth Sample", - "origin": "API_DEFINITION", - "description": " Gets the most recent health check results for this regional CompositeHealthCheck.", - "canonical": true, - "file": "region_composite_health_checks.get_health.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetHealth", - "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecks.GetHealth", - "async": true, - "parameters": [ - { - "name": "composite_health_check", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.CompositeHealthCheckHealth", - "client": { - "shortName": "RegionCompositeHealthChecksClient", - "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecksClient" - }, - "method": { - "shortName": "GetHealth", - "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecks.GetHealth", - "service": { - "shortName": "RegionCompositeHealthChecks", - "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionCompositeHealthChecks_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Create a CompositeHealthCheck in the specified project in the given region using the parameters that are included in the request.", - "canonical": true, - "file": "region_composite_health_checks.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecks.Insert", - "async": true, - "parameters": [ - { - "name": "composite_health_check_resource", - "type": ".google.cloud.compute.v1.CompositeHealthCheck" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionCompositeHealthChecksClient", - "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecksClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecks.Insert", - "service": { - "shortName": "RegionCompositeHealthChecks", - "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionCompositeHealthChecks_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Lists the CompositeHealthChecks for a project in the given region.", - "canonical": true, - "file": "region_composite_health_checks.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecks.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.CompositeHealthCheckList", - "client": { - "shortName": "RegionCompositeHealthChecksClient", - "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecksClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecks.List", - "service": { - "shortName": "RegionCompositeHealthChecks", - "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionCompositeHealthChecks_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified regional CompositeHealthCheck resource with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.", - "canonical": true, - "file": "region_composite_health_checks.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecks.Patch", - "async": true, - "parameters": [ - { - "name": "composite_health_check", - "type": "TYPE_STRING" - }, - { - "name": "composite_health_check_resource", - "type": ".google.cloud.compute.v1.CompositeHealthCheck" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionCompositeHealthChecksClient", - "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecksClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecks.Patch", - "service": { - "shortName": "RegionCompositeHealthChecks", - "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionCompositeHealthChecks_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "region_composite_health_checks.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecks.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", - "client": { - "shortName": "RegionCompositeHealthChecksClient", - "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecksClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecks.TestIamPermissions", - "service": { - "shortName": "RegionCompositeHealthChecks", - "fullName": "google.cloud.compute.v1.RegionCompositeHealthChecks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionDisks_AddResourcePolicies_async", - "title": "AcceleratorTypes addResourcePolicies Sample", - "origin": "API_DEFINITION", - "description": " Adds existing resource policies to a regional disk. You can only add one policy which will be applied to this disk for scheduling snapshot creation.", - "canonical": true, - "file": "region_disks.add_resource_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddResourcePolicies", - "fullName": "google.cloud.compute.v1.RegionDisks.AddResourcePolicies", - "async": true, - "parameters": [ - { - "name": "disk", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_disks_add_resource_policies_request_resource", - "type": ".google.cloud.compute.v1.RegionDisksAddResourcePoliciesRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionDisksClient", - "fullName": "google.cloud.compute.v1.RegionDisksClient" - }, - "method": { - "shortName": "AddResourcePolicies", - "fullName": "google.cloud.compute.v1.RegionDisks.AddResourcePolicies", - "service": { - "shortName": "RegionDisks", - "fullName": "google.cloud.compute.v1.RegionDisks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionDisks_BulkInsert_async", - "title": "AcceleratorTypes bulkInsert Sample", - "origin": "API_DEFINITION", - "description": " Bulk create a set of disks.", - "canonical": true, - "file": "region_disks.bulk_insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BulkInsert", - "fullName": "google.cloud.compute.v1.RegionDisks.BulkInsert", - "async": true, - "parameters": [ - { - "name": "bulk_insert_disk_resource_resource", - "type": ".google.cloud.compute.v1.BulkInsertDiskResource" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionDisksClient", - "fullName": "google.cloud.compute.v1.RegionDisksClient" - }, - "method": { - "shortName": "BulkInsert", - "fullName": "google.cloud.compute.v1.RegionDisks.BulkInsert", - "service": { - "shortName": "RegionDisks", - "fullName": "google.cloud.compute.v1.RegionDisks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionDisks_CreateSnapshot_async", - "title": "AcceleratorTypes createSnapshot Sample", - "origin": "API_DEFINITION", - "description": " Creates a snapshot of a specified persistent disk. For regular snapshot creation, consider using snapshots.insert instead, as that method supports more features, such as creating snapshots in a project different from the source disk project.", - "canonical": true, - "file": "region_disks.create_snapshot.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSnapshot", - "fullName": "google.cloud.compute.v1.RegionDisks.CreateSnapshot", - "async": true, - "parameters": [ - { - "name": "disk", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "snapshot_resource", - "type": ".google.cloud.compute.v1.Snapshot" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionDisksClient", - "fullName": "google.cloud.compute.v1.RegionDisksClient" - }, - "method": { - "shortName": "CreateSnapshot", - "fullName": "google.cloud.compute.v1.RegionDisks.CreateSnapshot", - "service": { - "shortName": "RegionDisks", - "fullName": "google.cloud.compute.v1.RegionDisks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionDisks_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified regional persistent disk. Deleting a regional disk removes all the replicas of its data permanently and is irreversible. However, deleting a disk does not delete anysnapshots previously made from the disk. You must separatelydelete snapshots.", - "canonical": true, - "file": "region_disks.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionDisks.Delete", - "async": true, - "parameters": [ - { - "name": "disk", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionDisksClient", - "fullName": "google.cloud.compute.v1.RegionDisksClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionDisks.Delete", - "service": { - "shortName": "RegionDisks", - "fullName": "google.cloud.compute.v1.RegionDisks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionDisks_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns a specified regional persistent disk.", - "canonical": true, - "file": "region_disks.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionDisks.Get", - "async": true, - "parameters": [ - { - "name": "disk", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Disk", - "client": { - "shortName": "RegionDisksClient", - "fullName": "google.cloud.compute.v1.RegionDisksClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionDisks.Get", - "service": { - "shortName": "RegionDisks", - "fullName": "google.cloud.compute.v1.RegionDisks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionDisks_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "region_disks.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.RegionDisks.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "RegionDisksClient", - "fullName": "google.cloud.compute.v1.RegionDisksClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.RegionDisks.GetIamPolicy", - "service": { - "shortName": "RegionDisks", - "fullName": "google.cloud.compute.v1.RegionDisks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionDisks_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a persistent regional disk in the specified project using the data included in the request.", - "canonical": true, - "file": "region_disks.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionDisks.Insert", - "async": true, - "parameters": [ - { - "name": "disk_resource", - "type": ".google.cloud.compute.v1.Disk" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "source_image", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionDisksClient", - "fullName": "google.cloud.compute.v1.RegionDisksClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionDisks.Insert", - "service": { - "shortName": "RegionDisks", - "fullName": "google.cloud.compute.v1.RegionDisks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionDisks_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of persistent disks contained within the specified region.", - "canonical": true, - "file": "region_disks.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionDisks.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.DiskList", - "client": { - "shortName": "RegionDisksClient", - "fullName": "google.cloud.compute.v1.RegionDisksClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionDisks.List", - "service": { - "shortName": "RegionDisks", - "fullName": "google.cloud.compute.v1.RegionDisks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionDisks_RemoveResourcePolicies_async", - "title": "AcceleratorTypes removeResourcePolicies Sample", - "origin": "API_DEFINITION", - "description": " Removes resource policies from a regional disk.", - "canonical": true, - "file": "region_disks.remove_resource_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveResourcePolicies", - "fullName": "google.cloud.compute.v1.RegionDisks.RemoveResourcePolicies", - "async": true, - "parameters": [ - { - "name": "disk", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_disks_remove_resource_policies_request_resource", - "type": ".google.cloud.compute.v1.RegionDisksRemoveResourcePoliciesRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionDisksClient", - "fullName": "google.cloud.compute.v1.RegionDisksClient" - }, - "method": { - "shortName": "RemoveResourcePolicies", - "fullName": "google.cloud.compute.v1.RegionDisks.RemoveResourcePolicies", - "service": { - "shortName": "RegionDisks", - "fullName": "google.cloud.compute.v1.RegionDisks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionDisks_Resize_async", - "title": "AcceleratorTypes resize Sample", - "origin": "API_DEFINITION", - "description": " Resizes the specified regional persistent disk.", - "canonical": true, - "file": "region_disks.resize.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Resize", - "fullName": "google.cloud.compute.v1.RegionDisks.Resize", - "async": true, - "parameters": [ - { - "name": "disk", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_disks_resize_request_resource", - "type": ".google.cloud.compute.v1.RegionDisksResizeRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionDisksClient", - "fullName": "google.cloud.compute.v1.RegionDisksClient" - }, - "method": { - "shortName": "Resize", - "fullName": "google.cloud.compute.v1.RegionDisks.Resize", - "service": { - "shortName": "RegionDisks", - "fullName": "google.cloud.compute.v1.RegionDisks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionDisks_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "region_disks.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.RegionDisks.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_set_policy_request_resource", - "type": ".google.cloud.compute.v1.RegionSetPolicyRequest" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "RegionDisksClient", - "fullName": "google.cloud.compute.v1.RegionDisksClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.RegionDisks.SetIamPolicy", - "service": { - "shortName": "RegionDisks", - "fullName": "google.cloud.compute.v1.RegionDisks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionDisks_SetLabels_async", - "title": "AcceleratorTypes setLabels Sample", - "origin": "API_DEFINITION", - "description": " Sets the labels on the target regional disk.", - "canonical": true, - "file": "region_disks.set_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1.RegionDisks.SetLabels", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_set_labels_request_resource", - "type": ".google.cloud.compute.v1.RegionSetLabelsRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionDisksClient", - "fullName": "google.cloud.compute.v1.RegionDisksClient" - }, - "method": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1.RegionDisks.SetLabels", - "service": { - "shortName": "RegionDisks", - "fullName": "google.cloud.compute.v1.RegionDisks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionDisks_StartAsyncReplication_async", - "title": "AcceleratorTypes startAsyncReplication Sample", - "origin": "API_DEFINITION", - "description": " Starts asynchronous replication. Must be invoked on the primary disk.", - "canonical": true, - "file": "region_disks.start_async_replication.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StartAsyncReplication", - "fullName": "google.cloud.compute.v1.RegionDisks.StartAsyncReplication", - "async": true, - "parameters": [ - { - "name": "disk", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_disks_start_async_replication_request_resource", - "type": ".google.cloud.compute.v1.RegionDisksStartAsyncReplicationRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionDisksClient", - "fullName": "google.cloud.compute.v1.RegionDisksClient" - }, - "method": { - "shortName": "StartAsyncReplication", - "fullName": "google.cloud.compute.v1.RegionDisks.StartAsyncReplication", - "service": { - "shortName": "RegionDisks", - "fullName": "google.cloud.compute.v1.RegionDisks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionDisks_StopAsyncReplication_async", - "title": "AcceleratorTypes stopAsyncReplication Sample", - "origin": "API_DEFINITION", - "description": " Stops asynchronous replication. Can be invoked either on the primary or on the secondary disk.", - "canonical": true, - "file": "region_disks.stop_async_replication.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StopAsyncReplication", - "fullName": "google.cloud.compute.v1.RegionDisks.StopAsyncReplication", - "async": true, - "parameters": [ - { - "name": "disk", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionDisksClient", - "fullName": "google.cloud.compute.v1.RegionDisksClient" - }, - "method": { - "shortName": "StopAsyncReplication", - "fullName": "google.cloud.compute.v1.RegionDisks.StopAsyncReplication", - "service": { - "shortName": "RegionDisks", - "fullName": "google.cloud.compute.v1.RegionDisks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionDisks_StopGroupAsyncReplication_async", - "title": "AcceleratorTypes stopGroupAsyncReplication Sample", - "origin": "API_DEFINITION", - "description": " Stops asynchronous replication for a consistency group of disks. Can be invoked either in the primary or secondary scope.", - "canonical": true, - "file": "region_disks.stop_group_async_replication.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StopGroupAsyncReplication", - "fullName": "google.cloud.compute.v1.RegionDisks.StopGroupAsyncReplication", - "async": true, - "parameters": [ - { - "name": "disks_stop_group_async_replication_resource_resource", - "type": ".google.cloud.compute.v1.DisksStopGroupAsyncReplicationResource" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionDisksClient", - "fullName": "google.cloud.compute.v1.RegionDisksClient" - }, - "method": { - "shortName": "StopGroupAsyncReplication", - "fullName": "google.cloud.compute.v1.RegionDisks.StopGroupAsyncReplication", - "service": { - "shortName": "RegionDisks", - "fullName": "google.cloud.compute.v1.RegionDisks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionDisks_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "region_disks.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.RegionDisks.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", - "client": { - "shortName": "RegionDisksClient", - "fullName": "google.cloud.compute.v1.RegionDisksClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.RegionDisks.TestIamPermissions", - "service": { - "shortName": "RegionDisks", - "fullName": "google.cloud.compute.v1.RegionDisks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionDisks_Update_async", - "title": "AcceleratorTypes update Sample", - "origin": "API_DEFINITION", - "description": " Update the specified disk with the data included in the request. Update is performed only on selected fields included as part of update-mask.", - "canonical": true, - "file": "region_disks.update.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 89, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1.RegionDisks.Update", - "async": true, - "parameters": [ - { - "name": "disk", - "type": "TYPE_STRING" - }, - { - "name": "disk_resource", - "type": ".google.cloud.compute.v1.Disk" - }, - { - "name": "paths", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionDisksClient", - "fullName": "google.cloud.compute.v1.RegionDisksClient" - }, - "method": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1.RegionDisks.Update", - "service": { - "shortName": "RegionDisks", - "fullName": "google.cloud.compute.v1.RegionDisks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionDisks_UpdateKmsKey_async", - "title": "AcceleratorTypes updateKmsKey Sample", - "origin": "API_DEFINITION", - "description": " Rotates the customer-managed encryption key to the latest version for the specified persistent disk.", - "canonical": true, - "file": "region_disks.update_kms_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateKmsKey", - "fullName": "google.cloud.compute.v1.RegionDisks.UpdateKmsKey", - "async": true, - "parameters": [ - { - "name": "disk", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_disk_update_kms_key_request_resource", - "type": ".google.cloud.compute.v1.RegionDiskUpdateKmsKeyRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionDisksClient", - "fullName": "google.cloud.compute.v1.RegionDisksClient" - }, - "method": { - "shortName": "UpdateKmsKey", - "fullName": "google.cloud.compute.v1.RegionDisks.UpdateKmsKey", - "service": { - "shortName": "RegionDisks", - "fullName": "google.cloud.compute.v1.RegionDisks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionDiskTypes_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified regional disk type.", - "canonical": true, - "file": "region_disk_types.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionDiskTypes.Get", - "async": true, - "parameters": [ - { - "name": "disk_type", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.DiskType", - "client": { - "shortName": "RegionDiskTypesClient", - "fullName": "google.cloud.compute.v1.RegionDiskTypesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionDiskTypes.Get", - "service": { - "shortName": "RegionDiskTypes", - "fullName": "google.cloud.compute.v1.RegionDiskTypes" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionDiskTypes_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of regional disk types available to the specified project.", - "canonical": true, - "file": "region_disk_types.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionDiskTypes.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.RegionDiskTypeList", - "client": { - "shortName": "RegionDiskTypesClient", - "fullName": "google.cloud.compute.v1.RegionDiskTypesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionDiskTypes.List", - "service": { - "shortName": "RegionDiskTypes", - "fullName": "google.cloud.compute.v1.RegionDiskTypes" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionHealthAggregationPolicies_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of all HealthAggregationPolicy resources, regional and global, available to the specified project. To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "region_health_aggregation_policies.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1.HealthAggregationPolicyAggregatedList", - "client": { - "shortName": "RegionHealthAggregationPoliciesClient", - "fullName": "google.cloud.compute.v1.RegionHealthAggregationPoliciesClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies.AggregatedList", - "service": { - "shortName": "RegionHealthAggregationPolicies", - "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionHealthAggregationPolicies_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified HealthAggregationPolicy in the given region.", - "canonical": true, - "file": "region_health_aggregation_policies.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies.Delete", - "async": true, - "parameters": [ - { - "name": "health_aggregation_policy", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionHealthAggregationPoliciesClient", - "fullName": "google.cloud.compute.v1.RegionHealthAggregationPoliciesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies.Delete", - "service": { - "shortName": "RegionHealthAggregationPolicies", - "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionHealthAggregationPolicies_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified HealthAggregationPolicy resource in the given region.", - "canonical": true, - "file": "region_health_aggregation_policies.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies.Get", - "async": true, - "parameters": [ - { - "name": "health_aggregation_policy", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.HealthAggregationPolicy", - "client": { - "shortName": "RegionHealthAggregationPoliciesClient", - "fullName": "google.cloud.compute.v1.RegionHealthAggregationPoliciesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies.Get", - "service": { - "shortName": "RegionHealthAggregationPolicies", - "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionHealthAggregationPolicies_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Create a HealthAggregationPolicy in the specified project in the given region using the parameters that are included in the request.", - "canonical": true, - "file": "region_health_aggregation_policies.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies.Insert", - "async": true, - "parameters": [ - { - "name": "health_aggregation_policy_resource", - "type": ".google.cloud.compute.v1.HealthAggregationPolicy" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionHealthAggregationPoliciesClient", - "fullName": "google.cloud.compute.v1.RegionHealthAggregationPoliciesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies.Insert", - "service": { - "shortName": "RegionHealthAggregationPolicies", - "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionHealthAggregationPolicies_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Lists the HealthAggregationPolicies for a project in the given region.", - "canonical": true, - "file": "region_health_aggregation_policies.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.HealthAggregationPolicyList", - "client": { - "shortName": "RegionHealthAggregationPoliciesClient", - "fullName": "google.cloud.compute.v1.RegionHealthAggregationPoliciesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies.List", - "service": { - "shortName": "RegionHealthAggregationPolicies", - "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionHealthAggregationPolicies_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified regional HealthAggregationPolicy resource with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.", - "canonical": true, - "file": "region_health_aggregation_policies.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies.Patch", - "async": true, - "parameters": [ - { - "name": "health_aggregation_policy", - "type": "TYPE_STRING" - }, - { - "name": "health_aggregation_policy_resource", - "type": ".google.cloud.compute.v1.HealthAggregationPolicy" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionHealthAggregationPoliciesClient", - "fullName": "google.cloud.compute.v1.RegionHealthAggregationPoliciesClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies.Patch", - "service": { - "shortName": "RegionHealthAggregationPolicies", - "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionHealthAggregationPolicies_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "region_health_aggregation_policies.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", - "client": { - "shortName": "RegionHealthAggregationPoliciesClient", - "fullName": "google.cloud.compute.v1.RegionHealthAggregationPoliciesClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies.TestIamPermissions", - "service": { - "shortName": "RegionHealthAggregationPolicies", - "fullName": "google.cloud.compute.v1.RegionHealthAggregationPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionHealthChecks_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified HealthCheck resource.", - "canonical": true, - "file": "region_health_checks.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionHealthChecks.Delete", - "async": true, - "parameters": [ - { - "name": "health_check", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionHealthChecksClient", - "fullName": "google.cloud.compute.v1.RegionHealthChecksClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionHealthChecks.Delete", - "service": { - "shortName": "RegionHealthChecks", - "fullName": "google.cloud.compute.v1.RegionHealthChecks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionHealthChecks_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified HealthCheck resource.", - "canonical": true, - "file": "region_health_checks.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionHealthChecks.Get", - "async": true, - "parameters": [ - { - "name": "health_check", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.HealthCheck", - "client": { - "shortName": "RegionHealthChecksClient", - "fullName": "google.cloud.compute.v1.RegionHealthChecksClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionHealthChecks.Get", - "service": { - "shortName": "RegionHealthChecks", - "fullName": "google.cloud.compute.v1.RegionHealthChecks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionHealthChecks_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a HealthCheck resource in the specified project using the data included in the request.", - "canonical": true, - "file": "region_health_checks.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionHealthChecks.Insert", - "async": true, - "parameters": [ - { - "name": "health_check_resource", - "type": ".google.cloud.compute.v1.HealthCheck" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionHealthChecksClient", - "fullName": "google.cloud.compute.v1.RegionHealthChecksClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionHealthChecks.Insert", - "service": { - "shortName": "RegionHealthChecks", - "fullName": "google.cloud.compute.v1.RegionHealthChecks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionHealthChecks_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of HealthCheck resources available to the specified project.", - "canonical": true, - "file": "region_health_checks.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionHealthChecks.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.HealthCheckList", - "client": { - "shortName": "RegionHealthChecksClient", - "fullName": "google.cloud.compute.v1.RegionHealthChecksClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionHealthChecks.List", - "service": { - "shortName": "RegionHealthChecks", - "fullName": "google.cloud.compute.v1.RegionHealthChecks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionHealthChecks_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Updates a HealthCheck resource in the specified project using the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.", - "canonical": true, - "file": "region_health_checks.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.RegionHealthChecks.Patch", - "async": true, - "parameters": [ - { - "name": "health_check", - "type": "TYPE_STRING" - }, - { - "name": "health_check_resource", - "type": ".google.cloud.compute.v1.HealthCheck" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionHealthChecksClient", - "fullName": "google.cloud.compute.v1.RegionHealthChecksClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.RegionHealthChecks.Patch", - "service": { - "shortName": "RegionHealthChecks", - "fullName": "google.cloud.compute.v1.RegionHealthChecks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionHealthChecks_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "region_health_checks.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.RegionHealthChecks.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", - "client": { - "shortName": "RegionHealthChecksClient", - "fullName": "google.cloud.compute.v1.RegionHealthChecksClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.RegionHealthChecks.TestIamPermissions", - "service": { - "shortName": "RegionHealthChecks", - "fullName": "google.cloud.compute.v1.RegionHealthChecks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionHealthChecks_Update_async", - "title": "AcceleratorTypes update Sample", - "origin": "API_DEFINITION", - "description": " Updates a HealthCheck resource in the specified project using the data included in the request.", - "canonical": true, - "file": "region_health_checks.update.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1.RegionHealthChecks.Update", - "async": true, - "parameters": [ - { - "name": "health_check", - "type": "TYPE_STRING" - }, - { - "name": "health_check_resource", - "type": ".google.cloud.compute.v1.HealthCheck" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionHealthChecksClient", - "fullName": "google.cloud.compute.v1.RegionHealthChecksClient" - }, - "method": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1.RegionHealthChecks.Update", - "service": { - "shortName": "RegionHealthChecks", - "fullName": "google.cloud.compute.v1.RegionHealthChecks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionHealthCheckServices_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of all HealthCheckService resources, regional and global, available to the specified project. To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "region_health_check_services.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1.HealthCheckServiceAggregatedList", - "client": { - "shortName": "RegionHealthCheckServicesClient", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServicesClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.AggregatedList", - "service": { - "shortName": "RegionHealthCheckServices", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServices" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionHealthCheckServices_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified regional HealthCheckService.", - "canonical": true, - "file": "region_health_check_services.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.Delete", - "async": true, - "parameters": [ - { - "name": "health_check_service", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionHealthCheckServicesClient", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServicesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.Delete", - "service": { - "shortName": "RegionHealthCheckServices", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServices" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionHealthCheckServices_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified regional HealthCheckService resource.", - "canonical": true, - "file": "region_health_check_services.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.Get", - "async": true, - "parameters": [ - { - "name": "health_check_service", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.HealthCheckService", - "client": { - "shortName": "RegionHealthCheckServicesClient", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServicesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.Get", - "service": { - "shortName": "RegionHealthCheckServices", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServices" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionHealthCheckServices_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a regional HealthCheckService resource in the specified project and region using the data included in the request.", - "canonical": true, - "file": "region_health_check_services.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.Insert", - "async": true, - "parameters": [ - { - "name": "health_check_service_resource", - "type": ".google.cloud.compute.v1.HealthCheckService" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionHealthCheckServicesClient", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServicesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.Insert", - "service": { - "shortName": "RegionHealthCheckServices", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServices" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionHealthCheckServices_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Lists all the HealthCheckService resources that have been configured for the specified project in the given region.", - "canonical": true, - "file": "region_health_check_services.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.HealthCheckServicesList", - "client": { - "shortName": "RegionHealthCheckServicesClient", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServicesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.List", - "service": { - "shortName": "RegionHealthCheckServices", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServices" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionHealthCheckServices_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified regional HealthCheckService resource with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.", - "canonical": true, - "file": "region_health_check_services.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.Patch", - "async": true, - "parameters": [ - { - "name": "health_check_service", - "type": "TYPE_STRING" - }, - { - "name": "health_check_service_resource", - "type": ".google.cloud.compute.v1.HealthCheckService" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionHealthCheckServicesClient", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServicesClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.Patch", - "service": { - "shortName": "RegionHealthCheckServices", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServices" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionHealthCheckServices_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "region_health_check_services.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", - "client": { - "shortName": "RegionHealthCheckServicesClient", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServicesClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServices.TestIamPermissions", - "service": { - "shortName": "RegionHealthCheckServices", - "fullName": "google.cloud.compute.v1.RegionHealthCheckServices" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionHealthSources_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of all HealthSource resources (all regional) available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "region_health_sources.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.RegionHealthSources.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1.HealthSourceAggregatedList", - "client": { - "shortName": "RegionHealthSourcesClient", - "fullName": "google.cloud.compute.v1.RegionHealthSourcesClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.RegionHealthSources.AggregatedList", - "service": { - "shortName": "RegionHealthSources", - "fullName": "google.cloud.compute.v1.RegionHealthSources" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionHealthSources_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified HealthSource in the given region", - "canonical": true, - "file": "region_health_sources.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionHealthSources.Delete", - "async": true, - "parameters": [ - { - "name": "health_source", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionHealthSourcesClient", - "fullName": "google.cloud.compute.v1.RegionHealthSourcesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionHealthSources.Delete", - "service": { - "shortName": "RegionHealthSources", - "fullName": "google.cloud.compute.v1.RegionHealthSources" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionHealthSources_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified HealthSource resource in the given region.", - "canonical": true, - "file": "region_health_sources.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionHealthSources.Get", - "async": true, - "parameters": [ - { - "name": "health_source", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.HealthSource", - "client": { - "shortName": "RegionHealthSourcesClient", - "fullName": "google.cloud.compute.v1.RegionHealthSourcesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionHealthSources.Get", - "service": { - "shortName": "RegionHealthSources", - "fullName": "google.cloud.compute.v1.RegionHealthSources" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionHealthSources_GetHealth_async", - "title": "AcceleratorTypes getHealth Sample", - "origin": "API_DEFINITION", - "description": " Gets the most recent health check results for this regional HealthSource.", - "canonical": true, - "file": "region_health_sources.get_health.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetHealth", - "fullName": "google.cloud.compute.v1.RegionHealthSources.GetHealth", - "async": true, - "parameters": [ - { - "name": "health_source", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.HealthSourceHealth", - "client": { - "shortName": "RegionHealthSourcesClient", - "fullName": "google.cloud.compute.v1.RegionHealthSourcesClient" - }, - "method": { - "shortName": "GetHealth", - "fullName": "google.cloud.compute.v1.RegionHealthSources.GetHealth", - "service": { - "shortName": "RegionHealthSources", - "fullName": "google.cloud.compute.v1.RegionHealthSources" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionHealthSources_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Create a HealthSource in the specified project in the given region using the parameters that are included in the request.", - "canonical": true, - "file": "region_health_sources.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionHealthSources.Insert", - "async": true, - "parameters": [ - { - "name": "health_source_resource", - "type": ".google.cloud.compute.v1.HealthSource" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionHealthSourcesClient", - "fullName": "google.cloud.compute.v1.RegionHealthSourcesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionHealthSources.Insert", - "service": { - "shortName": "RegionHealthSources", - "fullName": "google.cloud.compute.v1.RegionHealthSources" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionHealthSources_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Lists the HealthSources for a project in the given region.", - "canonical": true, - "file": "region_health_sources.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionHealthSources.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.HealthSourceList", - "client": { - "shortName": "RegionHealthSourcesClient", - "fullName": "google.cloud.compute.v1.RegionHealthSourcesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionHealthSources.List", - "service": { - "shortName": "RegionHealthSources", - "fullName": "google.cloud.compute.v1.RegionHealthSources" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionHealthSources_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified regional HealthSource resource with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.", - "canonical": true, - "file": "region_health_sources.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.RegionHealthSources.Patch", - "async": true, - "parameters": [ - { - "name": "health_source", - "type": "TYPE_STRING" - }, - { - "name": "health_source_resource", - "type": ".google.cloud.compute.v1.HealthSource" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionHealthSourcesClient", - "fullName": "google.cloud.compute.v1.RegionHealthSourcesClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.RegionHealthSources.Patch", - "service": { - "shortName": "RegionHealthSources", - "fullName": "google.cloud.compute.v1.RegionHealthSources" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionHealthSources_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "region_health_sources.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.RegionHealthSources.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", - "client": { - "shortName": "RegionHealthSourcesClient", - "fullName": "google.cloud.compute.v1.RegionHealthSourcesClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.RegionHealthSources.TestIamPermissions", - "service": { - "shortName": "RegionHealthSources", - "fullName": "google.cloud.compute.v1.RegionHealthSources" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionInstanceGroupManagerResizeRequests_Cancel_async", - "title": "AcceleratorTypes cancel Sample", - "origin": "API_DEFINITION", - "description": " Cancels the specified resize request. Cancelled resize request no longer waits for the resources to be provisioned. Cancel is only possible for requests that are in accepted state.", - "canonical": true, - "file": "region_instance_group_manager_resize_requests.cancel.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Cancel", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests.Cancel", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "resize_request", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionInstanceGroupManagerResizeRequestsClient", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsClient" - }, - "method": { - "shortName": "Cancel", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests.Cancel", - "service": { - "shortName": "RegionInstanceGroupManagerResizeRequests", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionInstanceGroupManagerResizeRequests_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified, inactive resize request. Requests that are still active cannot be deleted. Deleting request does not delete instances that were provisioned previously.", - "canonical": true, - "file": "region_instance_group_manager_resize_requests.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests.Delete", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "resize_request", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionInstanceGroupManagerResizeRequestsClient", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests.Delete", - "service": { - "shortName": "RegionInstanceGroupManagerResizeRequests", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionInstanceGroupManagerResizeRequests_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns all of the details about the specified resize request.", - "canonical": true, - "file": "region_instance_group_manager_resize_requests.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests.Get", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resize_request", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.InstanceGroupManagerResizeRequest", - "client": { - "shortName": "RegionInstanceGroupManagerResizeRequestsClient", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests.Get", - "service": { - "shortName": "RegionInstanceGroupManagerResizeRequests", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionInstanceGroupManagerResizeRequests_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Resize Request that starts provisioning VMs immediately or queues VM creation.", - "canonical": true, - "file": "region_instance_group_manager_resize_requests.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests.Insert", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "instance_group_manager_resize_request_resource", - "type": ".google.cloud.compute.v1.InstanceGroupManagerResizeRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionInstanceGroupManagerResizeRequestsClient", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests.Insert", - "service": { - "shortName": "RegionInstanceGroupManagerResizeRequests", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionInstanceGroupManagerResizeRequests_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of Resize Requests that are contained in the managed instance group.", - "canonical": true, - "file": "region_instance_group_manager_resize_requests.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 151, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsListResponse", - "client": { - "shortName": "RegionInstanceGroupManagerResizeRequestsClient", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequestsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests.List", - "service": { - "shortName": "RegionInstanceGroupManagerResizeRequests", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagerResizeRequests" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_AbandonInstances_async", - "title": "AcceleratorTypes abandonInstances Sample", - "origin": "API_DEFINITION", - "description": " Flags the specified instances to be immediately removed from the managed instance group. Abandoning an instance does not delete the instance, but it does remove the instance from any target pools that are applied by the managed instance group. This method reduces thetargetSize of the managed instance group by the number of instances that you abandon. This operation is marked asDONE when the action is scheduled even if the instances have not yet been removed from the group. You must separately verify the status of the abandoning action with thelistmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request.", - "canonical": true, - "file": "region_instance_group_managers.abandon_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AbandonInstances", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.AbandonInstances", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_instance_group_managers_abandon_instances_request_resource", - "type": ".google.cloud.compute.v1.RegionInstanceGroupManagersAbandonInstancesRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionInstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient" - }, - "method": { - "shortName": "AbandonInstances", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.AbandonInstances", - "service": { - "shortName": "RegionInstanceGroupManagers", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_ApplyUpdatesToInstances_async", - "title": "AcceleratorTypes applyUpdatesToInstances Sample", - "origin": "API_DEFINITION", - "description": " Apply updates to selected instances the managed instance group.", - "canonical": true, - "file": "region_instance_group_managers.apply_updates_to_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ApplyUpdatesToInstances", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.ApplyUpdatesToInstances", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_instance_group_managers_apply_updates_request_resource", - "type": ".google.cloud.compute.v1.RegionInstanceGroupManagersApplyUpdatesRequest" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionInstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient" - }, - "method": { - "shortName": "ApplyUpdatesToInstances", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.ApplyUpdatesToInstances", - "service": { - "shortName": "RegionInstanceGroupManagers", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_CreateInstances_async", - "title": "AcceleratorTypes createInstances Sample", - "origin": "API_DEFINITION", - "description": " Creates instances with per-instance configurations in this regional managed instance group. Instances are created using the current instance template. The create instances operation is marked DONE if the createInstances request is successful. The underlying actions take additional time. You must separately verify the status of thecreating or actions with the listmanagedinstances method.", - "canonical": true, - "file": "region_instance_group_managers.create_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateInstances", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.CreateInstances", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_instance_group_managers_create_instances_request_resource", - "type": ".google.cloud.compute.v1.RegionInstanceGroupManagersCreateInstancesRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionInstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient" - }, - "method": { - "shortName": "CreateInstances", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.CreateInstances", - "service": { - "shortName": "RegionInstanceGroupManagers", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified managed instance group and all of the instances in that group.", - "canonical": true, - "file": "region_instance_group_managers.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.Delete", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionInstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.Delete", - "service": { - "shortName": "RegionInstanceGroupManagers", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_DeleteInstances_async", - "title": "AcceleratorTypes deleteInstances Sample", - "origin": "API_DEFINITION", - "description": " Flags the specified instances in the managed instance group to be immediately deleted. The instances are also removed from any target pools of which they were a member. This method reduces thetargetSize of the managed instance group by the number of instances that you delete. The deleteInstances operation is marked DONE if the deleteInstances request is successful. The underlying actions take additional time. You must separately verify the status of thedeleting action with thelistmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request.", - "canonical": true, - "file": "region_instance_group_managers.delete_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteInstances", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.DeleteInstances", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_instance_group_managers_delete_instances_request_resource", - "type": ".google.cloud.compute.v1.RegionInstanceGroupManagersDeleteInstancesRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionInstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient" - }, - "method": { - "shortName": "DeleteInstances", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.DeleteInstances", - "service": { - "shortName": "RegionInstanceGroupManagers", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_DeletePerInstanceConfigs_async", - "title": "AcceleratorTypes deletePerInstanceConfigs Sample", - "origin": "API_DEFINITION", - "description": " Deletes selected per-instance configurations for the managed instance group.", - "canonical": true, - "file": "region_instance_group_managers.delete_per_instance_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePerInstanceConfigs", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.DeletePerInstanceConfigs", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_instance_group_manager_delete_instance_config_req_resource", - "type": ".google.cloud.compute.v1.RegionInstanceGroupManagerDeleteInstanceConfigReq" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionInstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient" - }, - "method": { - "shortName": "DeletePerInstanceConfigs", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.DeletePerInstanceConfigs", - "service": { - "shortName": "RegionInstanceGroupManagers", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns all of the details about the specified managed instance group.", - "canonical": true, - "file": "region_instance_group_managers.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.Get", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.InstanceGroupManager", - "client": { - "shortName": "RegionInstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.Get", - "service": { - "shortName": "RegionInstanceGroupManagers", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a managed instance group using the information that you specify in the request. After the group is created, instances in the group are created using the specified instance template. This operation is marked as DONE when the group is created even if the instances in the group have not yet been created. You must separately verify the status of the individual instances with thelistmanagedinstances method. A regional managed instance group can contain up to 2000 instances.", - "canonical": true, - "file": "region_instance_group_managers.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.Insert", - "async": true, - "parameters": [ - { - "name": "instance_group_manager_resource", - "type": ".google.cloud.compute.v1.InstanceGroupManager" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionInstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.Insert", - "service": { - "shortName": "RegionInstanceGroupManagers", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of managed instance groups that are contained within the specified region.", - "canonical": true, - "file": "region_instance_group_managers.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.RegionInstanceGroupManagerList", - "client": { - "shortName": "RegionInstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.List", - "service": { - "shortName": "RegionInstanceGroupManagers", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_ListErrors_async", - "title": "AcceleratorTypes listErrors Sample", - "origin": "API_DEFINITION", - "description": " Lists all errors thrown by actions on instances for a given regional managed instance group. The filter andorderBy query parameters are not supported.", - "canonical": true, - "file": "region_instance_group_managers.list_errors.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 154, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListErrors", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.ListErrors", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.RegionInstanceGroupManagersListErrorsResponse", - "client": { - "shortName": "RegionInstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient" - }, - "method": { - "shortName": "ListErrors", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.ListErrors", - "service": { - "shortName": "RegionInstanceGroupManagers", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_ListManagedInstances_async", - "title": "AcceleratorTypes listManagedInstances Sample", - "origin": "API_DEFINITION", - "description": " Lists the instances in the managed instance group and instances that are scheduled to be created. The list includes any current actions that the group has scheduled for its instances. The orderBy query parameter is not supported. The `pageToken` query parameter is supported only if the group's `listManagedInstancesResults` field is set to `PAGINATED`.", - "canonical": true, - "file": "region_instance_group_managers.list_managed_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 150, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListManagedInstances", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.ListManagedInstances", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.RegionInstanceGroupManagersListInstancesResponse", - "client": { - "shortName": "RegionInstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient" - }, - "method": { - "shortName": "ListManagedInstances", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.ListManagedInstances", - "service": { - "shortName": "RegionInstanceGroupManagers", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_ListPerInstanceConfigs_async", - "title": "AcceleratorTypes listPerInstanceConfigs Sample", - "origin": "API_DEFINITION", - "description": " Lists all of the per-instance configurations defined for the managed instance group. The orderBy query parameter is not supported.", - "canonical": true, - "file": "region_instance_group_managers.list_per_instance_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 150, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPerInstanceConfigs", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.ListPerInstanceConfigs", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.RegionInstanceGroupManagersListInstanceConfigsResp", - "client": { - "shortName": "RegionInstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient" - }, - "method": { - "shortName": "ListPerInstanceConfigs", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.ListPerInstanceConfigs", - "service": { - "shortName": "RegionInstanceGroupManagers", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Updates a managed instance group using the information that you specify in the request. This operation is marked as DONE when the group is patched even if the instances in the group are still in the process of being patched. You must separately verify the status of the individual instances with the listmanagedinstances method. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules. If you update your group to specify a new template or instance configuration, it's possible that your intended specification for each VM in the group is different from the current state of that VM. To learn how to apply an updated configuration to the VMs in a MIG, seeUpdating instances in a MIG.", - "canonical": true, - "file": "region_instance_group_managers.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.Patch", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "instance_group_manager_resource", - "type": ".google.cloud.compute.v1.InstanceGroupManager" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionInstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.Patch", - "service": { - "shortName": "RegionInstanceGroupManagers", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_PatchPerInstanceConfigs_async", - "title": "AcceleratorTypes patchPerInstanceConfigs Sample", - "origin": "API_DEFINITION", - "description": " Inserts or patches per-instance configurations for the managed instance group. perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch.", - "canonical": true, - "file": "region_instance_group_managers.patch_per_instance_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PatchPerInstanceConfigs", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.PatchPerInstanceConfigs", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_instance_group_manager_patch_instance_config_req_resource", - "type": ".google.cloud.compute.v1.RegionInstanceGroupManagerPatchInstanceConfigReq" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionInstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient" - }, - "method": { - "shortName": "PatchPerInstanceConfigs", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.PatchPerInstanceConfigs", - "service": { - "shortName": "RegionInstanceGroupManagers", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_RecreateInstances_async", - "title": "AcceleratorTypes recreateInstances Sample", - "origin": "API_DEFINITION", - "description": " Flags the specified VM instances in the managed instance group to be immediately recreated. Each instance is recreated using the group's current configuration. This operation is marked as DONE when the flag is set even if the instances have not yet been recreated. You must separately verify the status of each instance by checking itscurrentAction field; for more information, see Checking the status of managed instances. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request.", - "canonical": true, - "file": "region_instance_group_managers.recreate_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RecreateInstances", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.RecreateInstances", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_instance_group_managers_recreate_request_resource", - "type": ".google.cloud.compute.v1.RegionInstanceGroupManagersRecreateRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionInstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient" - }, - "method": { - "shortName": "RecreateInstances", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.RecreateInstances", - "service": { - "shortName": "RegionInstanceGroupManagers", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_Resize_async", - "title": "AcceleratorTypes resize Sample", - "origin": "API_DEFINITION", - "description": " Changes the intended size of the managed instance group. If you increase the size, the group creates new instances using the current instance template. If you decrease the size, the group deletes one or more instances. The resize operation is marked DONE if theresize request is successful. The underlying actions take additional time. You must separately verify the status of thecreating or deleting actions with thelistmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted.", - "canonical": true, - "file": "region_instance_group_managers.resize.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Resize", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.Resize", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionInstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient" - }, - "method": { - "shortName": "Resize", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.Resize", - "service": { - "shortName": "RegionInstanceGroupManagers", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_ResumeInstances_async", - "title": "AcceleratorTypes resumeInstances Sample", - "origin": "API_DEFINITION", - "description": " Flags the specified instances in the managed instance group to be resumed. This method increases thetargetSize and decreases the targetSuspendedSize of the managed instance group by the number of instances that you resume. The resumeInstances operation is marked DONE if the resumeInstances request is successful. The underlying actions take additional time. You must separately verify the status of theRESUMING action with thelistmanagedinstances method. In this request, you can only specify instances that are suspended. For example, if an instance was previously suspended using the suspendInstances method, it can be resumed using the resumeInstances method. If a health check is attached to the managed instance group, the specified instances will be verified as healthy after they are resumed. You can specify a maximum of 1000 instances with this method per request.", - "canonical": true, - "file": "region_instance_group_managers.resume_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResumeInstances", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.ResumeInstances", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_instance_group_managers_resume_instances_request_resource", - "type": ".google.cloud.compute.v1.RegionInstanceGroupManagersResumeInstancesRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionInstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient" - }, - "method": { - "shortName": "ResumeInstances", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.ResumeInstances", - "service": { - "shortName": "RegionInstanceGroupManagers", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_SetInstanceTemplate_async", - "title": "AcceleratorTypes setInstanceTemplate Sample", - "origin": "API_DEFINITION", - "description": " Sets the instance template to use when creating new instances or recreating instances in this group. Existing instances are not affected.", - "canonical": true, - "file": "region_instance_group_managers.set_instance_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetInstanceTemplate", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.SetInstanceTemplate", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_instance_group_managers_set_template_request_resource", - "type": ".google.cloud.compute.v1.RegionInstanceGroupManagersSetTemplateRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionInstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient" - }, - "method": { - "shortName": "SetInstanceTemplate", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.SetInstanceTemplate", - "service": { - "shortName": "RegionInstanceGroupManagers", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_SetTargetPools_async", - "title": "AcceleratorTypes setTargetPools Sample", - "origin": "API_DEFINITION", - "description": " Modifies the target pools to which all new instances in this group are assigned. Existing instances in the group are not affected.", - "canonical": true, - "file": "region_instance_group_managers.set_target_pools.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetTargetPools", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.SetTargetPools", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_instance_group_managers_set_target_pools_request_resource", - "type": ".google.cloud.compute.v1.RegionInstanceGroupManagersSetTargetPoolsRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionInstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient" - }, - "method": { - "shortName": "SetTargetPools", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.SetTargetPools", - "service": { - "shortName": "RegionInstanceGroupManagers", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_StartInstances_async", - "title": "AcceleratorTypes startInstances Sample", - "origin": "API_DEFINITION", - "description": " Flags the specified instances in the managed instance group to be started. This method increases thetargetSize and decreases the targetStoppedSize of the managed instance group by the number of instances that you start. The startInstances operation is marked DONE if the startInstances request is successful. The underlying actions take additional time. You must separately verify the status of theSTARTING action with thelistmanagedinstances method. In this request, you can only specify instances that are stopped. For example, if an instance was previously stopped using the stopInstances method, it can be started using the startInstances method. If a health check is attached to the managed instance group, the specified instances will be verified as healthy after they are started. You can specify a maximum of 1000 instances with this method per request.", - "canonical": true, - "file": "region_instance_group_managers.start_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StartInstances", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.StartInstances", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_instance_group_managers_start_instances_request_resource", - "type": ".google.cloud.compute.v1.RegionInstanceGroupManagersStartInstancesRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionInstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient" - }, - "method": { - "shortName": "StartInstances", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.StartInstances", - "service": { - "shortName": "RegionInstanceGroupManagers", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_StopInstances_async", - "title": "AcceleratorTypes stopInstances Sample", - "origin": "API_DEFINITION", - "description": " Flags the specified instances in the managed instance group to be immediately stopped. You can only specify instances that are running in this request. This method reduces thetargetSize and increases the targetStoppedSize of the managed instance group by the number of instances that you stop. The stopInstances operation is marked DONE if the stopInstances request is successful. The underlying actions take additional time. You must separately verify the status of theSTOPPING action with thelistmanagedinstances method. If the standbyPolicy.initialDelaySec field is set, the group delays stopping the instances until initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was created). This delay gives your application time to set itself up and initialize on the instance. If more thaninitialDelaySec seconds have passed sinceinstance.creationTimestamp when this method is called, there will be zero delay. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is stopped. Stopped instances can be started using the startInstances method. You can specify a maximum of 1000 instances with this method per request.", - "canonical": true, - "file": "region_instance_group_managers.stop_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StopInstances", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.StopInstances", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_instance_group_managers_stop_instances_request_resource", - "type": ".google.cloud.compute.v1.RegionInstanceGroupManagersStopInstancesRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionInstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient" - }, - "method": { - "shortName": "StopInstances", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.StopInstances", - "service": { - "shortName": "RegionInstanceGroupManagers", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_SuspendInstances_async", - "title": "AcceleratorTypes suspendInstances Sample", - "origin": "API_DEFINITION", - "description": " Flags the specified instances in the managed instance group to be immediately suspended. You can only specify instances that are running in this request. This method reduces thetargetSize and increases the targetSuspendedSize of the managed instance group by the number of instances that you suspend. The suspendInstances operation is marked DONE if the suspendInstances request is successful. The underlying actions take additional time. You must separately verify the status of theSUSPENDING action with thelistmanagedinstances method. If the standbyPolicy.initialDelaySec field is set, the group delays suspension of the instances until initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was created). This delay gives your application time to set itself up and initialize on the instance. If more thaninitialDelaySec seconds have passed sinceinstance.creationTimestamp when this method is called, there will be zero delay. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is suspended. Suspended instances can be resumed using the resumeInstances method. You can specify a maximum of 1000 instances with this method per request.", - "canonical": true, - "file": "region_instance_group_managers.suspend_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SuspendInstances", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.SuspendInstances", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_instance_group_managers_suspend_instances_request_resource", - "type": ".google.cloud.compute.v1.RegionInstanceGroupManagersSuspendInstancesRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionInstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient" - }, - "method": { - "shortName": "SuspendInstances", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.SuspendInstances", - "service": { - "shortName": "RegionInstanceGroupManagers", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionInstanceGroupManagers_UpdatePerInstanceConfigs_async", - "title": "AcceleratorTypes updatePerInstanceConfigs Sample", - "origin": "API_DEFINITION", - "description": " Inserts or updates per-instance configurations for the managed instance group. perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch.", - "canonical": true, - "file": "region_instance_group_managers.update_per_instance_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdatePerInstanceConfigs", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.UpdatePerInstanceConfigs", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_instance_group_manager_update_instance_config_req_resource", - "type": ".google.cloud.compute.v1.RegionInstanceGroupManagerUpdateInstanceConfigReq" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionInstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagersClient" - }, - "method": { - "shortName": "UpdatePerInstanceConfigs", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers.UpdatePerInstanceConfigs", - "service": { - "shortName": "RegionInstanceGroupManagers", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionInstanceGroups_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified instance group resource.", - "canonical": true, - "file": "region_instance_groups.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionInstanceGroups.Get", - "async": true, - "parameters": [ - { - "name": "instance_group", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.InstanceGroup", - "client": { - "shortName": "RegionInstanceGroupsClient", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionInstanceGroups.Get", - "service": { - "shortName": "RegionInstanceGroups", - "fullName": "google.cloud.compute.v1.RegionInstanceGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionInstanceGroups_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of instance group resources contained within the specified region.", - "canonical": true, - "file": "region_instance_groups.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionInstanceGroups.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.RegionInstanceGroupList", - "client": { - "shortName": "RegionInstanceGroupsClient", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionInstanceGroups.List", - "service": { - "shortName": "RegionInstanceGroups", - "fullName": "google.cloud.compute.v1.RegionInstanceGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionInstanceGroups_ListInstances_async", - "title": "AcceleratorTypes listInstances Sample", - "origin": "API_DEFINITION", - "description": " Lists the instances in the specified instance group and displays information about the named ports. Depending on the specified options, this method can list all instances or only the instances that are running. The orderBy query parameter is not supported.", - "canonical": true, - "file": "region_instance_groups.list_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 156, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListInstances", - "fullName": "google.cloud.compute.v1.RegionInstanceGroups.ListInstances", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "instance_group", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_instance_groups_list_instances_request_resource", - "type": ".google.cloud.compute.v1.RegionInstanceGroupsListInstancesRequest" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.RegionInstanceGroupsListInstances", - "client": { - "shortName": "RegionInstanceGroupsClient", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupsClient" - }, - "method": { - "shortName": "ListInstances", - "fullName": "google.cloud.compute.v1.RegionInstanceGroups.ListInstances", - "service": { - "shortName": "RegionInstanceGroups", - "fullName": "google.cloud.compute.v1.RegionInstanceGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionInstanceGroups_SetNamedPorts_async", - "title": "AcceleratorTypes setNamedPorts Sample", - "origin": "API_DEFINITION", - "description": " Sets the named ports for the specified regional instance group.", - "canonical": true, - "file": "region_instance_groups.set_named_ports.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetNamedPorts", - "fullName": "google.cloud.compute.v1.RegionInstanceGroups.SetNamedPorts", - "async": true, - "parameters": [ - { - "name": "instance_group", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_instance_groups_set_named_ports_request_resource", - "type": ".google.cloud.compute.v1.RegionInstanceGroupsSetNamedPortsRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionInstanceGroupsClient", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupsClient" - }, - "method": { - "shortName": "SetNamedPorts", - "fullName": "google.cloud.compute.v1.RegionInstanceGroups.SetNamedPorts", - "service": { - "shortName": "RegionInstanceGroups", - "fullName": "google.cloud.compute.v1.RegionInstanceGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionInstanceGroups_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "region_instance_groups.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.RegionInstanceGroups.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", - "client": { - "shortName": "RegionInstanceGroupsClient", - "fullName": "google.cloud.compute.v1.RegionInstanceGroupsClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.RegionInstanceGroups.TestIamPermissions", - "service": { - "shortName": "RegionInstanceGroups", - "fullName": "google.cloud.compute.v1.RegionInstanceGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionInstances_BulkInsert_async", - "title": "AcceleratorTypes bulkInsert Sample", - "origin": "API_DEFINITION", - "description": " Creates multiple instances in a given region. Count specifies the number of instances to create.", - "canonical": true, - "file": "region_instances.bulk_insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BulkInsert", - "fullName": "google.cloud.compute.v1.RegionInstances.BulkInsert", - "async": true, - "parameters": [ - { - "name": "bulk_insert_instance_resource_resource", - "type": ".google.cloud.compute.v1.BulkInsertInstanceResource" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionInstancesClient", - "fullName": "google.cloud.compute.v1.RegionInstancesClient" - }, - "method": { - "shortName": "BulkInsert", - "fullName": "google.cloud.compute.v1.RegionInstances.BulkInsert", - "service": { - "shortName": "RegionInstances", - "fullName": "google.cloud.compute.v1.RegionInstances" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionInstanceTemplates_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified instance template. Deleting an instance template is permanent and cannot be undone.", - "canonical": true, - "file": "region_instance_templates.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionInstanceTemplates.Delete", - "async": true, - "parameters": [ - { - "name": "instance_template", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionInstanceTemplatesClient", - "fullName": "google.cloud.compute.v1.RegionInstanceTemplatesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionInstanceTemplates.Delete", - "service": { - "shortName": "RegionInstanceTemplates", - "fullName": "google.cloud.compute.v1.RegionInstanceTemplates" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionInstanceTemplates_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified instance template.", - "canonical": true, - "file": "region_instance_templates.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionInstanceTemplates.Get", - "async": true, - "parameters": [ - { - "name": "instance_template", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.InstanceTemplate", - "client": { - "shortName": "RegionInstanceTemplatesClient", - "fullName": "google.cloud.compute.v1.RegionInstanceTemplatesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionInstanceTemplates.Get", - "service": { - "shortName": "RegionInstanceTemplates", - "fullName": "google.cloud.compute.v1.RegionInstanceTemplates" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionInstanceTemplates_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates an instance template in the specified project and region using the global instance template whose URL is included in the request.", - "canonical": true, - "file": "region_instance_templates.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionInstanceTemplates.Insert", - "async": true, - "parameters": [ - { - "name": "instance_template_resource", - "type": ".google.cloud.compute.v1.InstanceTemplate" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionInstanceTemplatesClient", - "fullName": "google.cloud.compute.v1.RegionInstanceTemplatesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionInstanceTemplates.Insert", - "service": { - "shortName": "RegionInstanceTemplates", - "fullName": "google.cloud.compute.v1.RegionInstanceTemplates" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionInstanceTemplates_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of instance templates that are contained within the specified project and region.", - "canonical": true, - "file": "region_instance_templates.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionInstanceTemplates.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.InstanceTemplateList", - "client": { - "shortName": "RegionInstanceTemplatesClient", - "fullName": "google.cloud.compute.v1.RegionInstanceTemplatesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionInstanceTemplates.List", - "service": { - "shortName": "RegionInstanceTemplates", - "fullName": "google.cloud.compute.v1.RegionInstanceTemplates" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionInstantSnapshotGroups_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " deletes a Regional InstantSnapshotGroup resource", - "canonical": true, - "file": "region_instant_snapshot_groups.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionInstantSnapshotGroups.Delete", - "async": true, - "parameters": [ - { - "name": "instant_snapshot_group", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionInstantSnapshotGroupsClient", - "fullName": "google.cloud.compute.v1.RegionInstantSnapshotGroupsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionInstantSnapshotGroups.Delete", - "service": { - "shortName": "RegionInstantSnapshotGroups", - "fullName": "google.cloud.compute.v1.RegionInstantSnapshotGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionInstantSnapshotGroups_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " returns the specified InstantSnapshotGroup resource in the specified region.", - "canonical": true, - "file": "region_instant_snapshot_groups.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionInstantSnapshotGroups.Get", - "async": true, - "parameters": [ - { - "name": "instant_snapshot_group", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.InstantSnapshotGroup", - "client": { - "shortName": "RegionInstantSnapshotGroupsClient", - "fullName": "google.cloud.compute.v1.RegionInstantSnapshotGroupsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionInstantSnapshotGroups.Get", - "service": { - "shortName": "RegionInstantSnapshotGroups", - "fullName": "google.cloud.compute.v1.RegionInstantSnapshotGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionInstantSnapshotGroups_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "region_instant_snapshot_groups.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.RegionInstantSnapshotGroups.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "RegionInstantSnapshotGroupsClient", - "fullName": "google.cloud.compute.v1.RegionInstantSnapshotGroupsClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.RegionInstantSnapshotGroups.GetIamPolicy", - "service": { - "shortName": "RegionInstantSnapshotGroups", - "fullName": "google.cloud.compute.v1.RegionInstantSnapshotGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionInstantSnapshotGroups_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " creates a Regional InstantSnapshotGroup resource", - "canonical": true, - "file": "region_instant_snapshot_groups.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionInstantSnapshotGroups.Insert", - "async": true, - "parameters": [ - { - "name": "instant_snapshot_group_resource", - "type": ".google.cloud.compute.v1.InstantSnapshotGroup" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "source_consistency_group", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionInstantSnapshotGroupsClient", - "fullName": "google.cloud.compute.v1.RegionInstantSnapshotGroupsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionInstantSnapshotGroups.Insert", - "service": { - "shortName": "RegionInstantSnapshotGroups", - "fullName": "google.cloud.compute.v1.RegionInstantSnapshotGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionInstantSnapshotGroups_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " retrieves the list of InstantSnapshotGroup resources contained within the specified region.", - "canonical": true, - "file": "region_instant_snapshot_groups.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionInstantSnapshotGroups.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.ListInstantSnapshotGroups", - "client": { - "shortName": "RegionInstantSnapshotGroupsClient", - "fullName": "google.cloud.compute.v1.RegionInstantSnapshotGroupsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionInstantSnapshotGroups.List", - "service": { - "shortName": "RegionInstantSnapshotGroups", - "fullName": "google.cloud.compute.v1.RegionInstantSnapshotGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionInstantSnapshotGroups_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "region_instant_snapshot_groups.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.RegionInstantSnapshotGroups.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_set_policy_request_resource", - "type": ".google.cloud.compute.v1.RegionSetPolicyRequest" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "RegionInstantSnapshotGroupsClient", - "fullName": "google.cloud.compute.v1.RegionInstantSnapshotGroupsClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.RegionInstantSnapshotGroups.SetIamPolicy", - "service": { - "shortName": "RegionInstantSnapshotGroups", - "fullName": "google.cloud.compute.v1.RegionInstantSnapshotGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionInstantSnapshotGroups_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "region_instant_snapshot_groups.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.RegionInstantSnapshotGroups.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", - "client": { - "shortName": "RegionInstantSnapshotGroupsClient", - "fullName": "google.cloud.compute.v1.RegionInstantSnapshotGroupsClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.RegionInstantSnapshotGroups.TestIamPermissions", - "service": { - "shortName": "RegionInstantSnapshotGroups", - "fullName": "google.cloud.compute.v1.RegionInstantSnapshotGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionInstantSnapshots_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified InstantSnapshot resource. Keep in mind that deleting a single instantSnapshot might not necessarily delete all the data on that instantSnapshot. If any data on the instantSnapshot that is marked for deletion is needed for subsequent instantSnapshots, the data will be moved to the next corresponding instantSnapshot. For more information, seeDeleting instantSnapshots.", - "canonical": true, - "file": "region_instant_snapshots.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionInstantSnapshots.Delete", - "async": true, - "parameters": [ - { - "name": "instant_snapshot", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionInstantSnapshotsClient", - "fullName": "google.cloud.compute.v1.RegionInstantSnapshotsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionInstantSnapshots.Delete", - "service": { - "shortName": "RegionInstantSnapshots", - "fullName": "google.cloud.compute.v1.RegionInstantSnapshots" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionInstantSnapshots_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified InstantSnapshot resource in the specified region.", - "canonical": true, - "file": "region_instant_snapshots.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionInstantSnapshots.Get", - "async": true, - "parameters": [ - { - "name": "instant_snapshot", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.InstantSnapshot", - "client": { - "shortName": "RegionInstantSnapshotsClient", - "fullName": "google.cloud.compute.v1.RegionInstantSnapshotsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionInstantSnapshots.Get", - "service": { - "shortName": "RegionInstantSnapshots", - "fullName": "google.cloud.compute.v1.RegionInstantSnapshots" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionInstantSnapshots_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "region_instant_snapshots.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.RegionInstantSnapshots.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "RegionInstantSnapshotsClient", - "fullName": "google.cloud.compute.v1.RegionInstantSnapshotsClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.RegionInstantSnapshots.GetIamPolicy", - "service": { - "shortName": "RegionInstantSnapshots", - "fullName": "google.cloud.compute.v1.RegionInstantSnapshots" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionInstantSnapshots_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates an instant snapshot in the specified region.", - "canonical": true, - "file": "region_instant_snapshots.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionInstantSnapshots.Insert", - "async": true, - "parameters": [ - { - "name": "instant_snapshot_resource", - "type": ".google.cloud.compute.v1.InstantSnapshot" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionInstantSnapshotsClient", - "fullName": "google.cloud.compute.v1.RegionInstantSnapshotsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionInstantSnapshots.Insert", - "service": { - "shortName": "RegionInstantSnapshots", - "fullName": "google.cloud.compute.v1.RegionInstantSnapshots" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionInstantSnapshots_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of InstantSnapshot resources contained within the specified region.", - "canonical": true, - "file": "region_instant_snapshots.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionInstantSnapshots.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.InstantSnapshotList", - "client": { - "shortName": "RegionInstantSnapshotsClient", - "fullName": "google.cloud.compute.v1.RegionInstantSnapshotsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionInstantSnapshots.List", - "service": { - "shortName": "RegionInstantSnapshots", - "fullName": "google.cloud.compute.v1.RegionInstantSnapshots" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionInstantSnapshots_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "region_instant_snapshots.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.RegionInstantSnapshots.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_set_policy_request_resource", - "type": ".google.cloud.compute.v1.RegionSetPolicyRequest" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "RegionInstantSnapshotsClient", - "fullName": "google.cloud.compute.v1.RegionInstantSnapshotsClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.RegionInstantSnapshots.SetIamPolicy", - "service": { - "shortName": "RegionInstantSnapshots", - "fullName": "google.cloud.compute.v1.RegionInstantSnapshots" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionInstantSnapshots_SetLabels_async", - "title": "AcceleratorTypes setLabels Sample", - "origin": "API_DEFINITION", - "description": " Sets the labels on a instantSnapshot in the given region. To learn more about labels, read the Labeling Resources documentation.", - "canonical": true, - "file": "region_instant_snapshots.set_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1.RegionInstantSnapshots.SetLabels", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_set_labels_request_resource", - "type": ".google.cloud.compute.v1.RegionSetLabelsRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionInstantSnapshotsClient", - "fullName": "google.cloud.compute.v1.RegionInstantSnapshotsClient" - }, - "method": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1.RegionInstantSnapshots.SetLabels", - "service": { - "shortName": "RegionInstantSnapshots", - "fullName": "google.cloud.compute.v1.RegionInstantSnapshots" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionInstantSnapshots_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "region_instant_snapshots.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.RegionInstantSnapshots.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", - "client": { - "shortName": "RegionInstantSnapshotsClient", - "fullName": "google.cloud.compute.v1.RegionInstantSnapshotsClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.RegionInstantSnapshots.TestIamPermissions", - "service": { - "shortName": "RegionInstantSnapshots", - "fullName": "google.cloud.compute.v1.RegionInstantSnapshots" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionNetworkEndpointGroups_AttachNetworkEndpoints_async", - "title": "AcceleratorTypes attachNetworkEndpoints Sample", - "origin": "API_DEFINITION", - "description": " Attach a list of network endpoints to the specified network endpoint group.", - "canonical": true, - "file": "region_network_endpoint_groups.attach_network_endpoints.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AttachNetworkEndpoints", - "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups.AttachNetworkEndpoints", - "async": true, - "parameters": [ - { - "name": "network_endpoint_group", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_network_endpoint_groups_attach_endpoints_request_resource", - "type": ".google.cloud.compute.v1.RegionNetworkEndpointGroupsAttachEndpointsRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionNetworkEndpointGroupsClient", - "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroupsClient" - }, - "method": { - "shortName": "AttachNetworkEndpoints", - "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups.AttachNetworkEndpoints", - "service": { - "shortName": "RegionNetworkEndpointGroups", - "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionNetworkEndpointGroups_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified network endpoint group. Note that the NEG cannot be deleted if it is configured as a backend of a backend service.", - "canonical": true, - "file": "region_network_endpoint_groups.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups.Delete", - "async": true, - "parameters": [ - { - "name": "network_endpoint_group", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionNetworkEndpointGroupsClient", - "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroupsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups.Delete", - "service": { - "shortName": "RegionNetworkEndpointGroups", - "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionNetworkEndpointGroups_DetachNetworkEndpoints_async", - "title": "AcceleratorTypes detachNetworkEndpoints Sample", - "origin": "API_DEFINITION", - "description": " Detach the network endpoint from the specified network endpoint group.", - "canonical": true, - "file": "region_network_endpoint_groups.detach_network_endpoints.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DetachNetworkEndpoints", - "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups.DetachNetworkEndpoints", - "async": true, - "parameters": [ - { - "name": "network_endpoint_group", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_network_endpoint_groups_detach_endpoints_request_resource", - "type": ".google.cloud.compute.v1.RegionNetworkEndpointGroupsDetachEndpointsRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionNetworkEndpointGroupsClient", - "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroupsClient" - }, - "method": { - "shortName": "DetachNetworkEndpoints", - "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups.DetachNetworkEndpoints", - "service": { - "shortName": "RegionNetworkEndpointGroups", - "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionNetworkEndpointGroups_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified network endpoint group.", - "canonical": true, - "file": "region_network_endpoint_groups.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups.Get", - "async": true, - "parameters": [ - { - "name": "network_endpoint_group", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.NetworkEndpointGroup", - "client": { - "shortName": "RegionNetworkEndpointGroupsClient", - "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroupsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups.Get", - "service": { - "shortName": "RegionNetworkEndpointGroups", - "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionNetworkEndpointGroups_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a network endpoint group in the specified project using the parameters that are included in the request. Note: Use the following APIs to manage network endpoint groups: - To manage NEGs with zonal scope (such as zonal NEGs, hybrid connectivity NEGs): zonal API - To manage NEGs with regional scope (such as regional internet NEGs, serverless NEGs, Private Service Connect NEGs): regional API - To manage NEGs with global scope (such as global internet NEGs):global API", - "canonical": true, - "file": "region_network_endpoint_groups.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups.Insert", - "async": true, - "parameters": [ - { - "name": "network_endpoint_group_resource", - "type": ".google.cloud.compute.v1.NetworkEndpointGroup" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionNetworkEndpointGroupsClient", - "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroupsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups.Insert", - "service": { - "shortName": "RegionNetworkEndpointGroups", - "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionNetworkEndpointGroups_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of regional network endpoint groups available to the specified project in the given region.", - "canonical": true, - "file": "region_network_endpoint_groups.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 146, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.NetworkEndpointGroupList", - "client": { - "shortName": "RegionNetworkEndpointGroupsClient", - "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroupsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups.List", - "service": { - "shortName": "RegionNetworkEndpointGroups", - "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionNetworkEndpointGroups_ListNetworkEndpoints_async", - "title": "AcceleratorTypes listNetworkEndpoints Sample", - "origin": "API_DEFINITION", - "description": " Lists the network endpoints in the specified network endpoint group.", - "canonical": true, - "file": "region_network_endpoint_groups.list_network_endpoints.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 152, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListNetworkEndpoints", - "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups.ListNetworkEndpoints", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "network_endpoint_group", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.NetworkEndpointGroupsListNetworkEndpoints", - "client": { - "shortName": "RegionNetworkEndpointGroupsClient", - "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroupsClient" - }, - "method": { - "shortName": "ListNetworkEndpoints", - "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups.ListNetworkEndpoints", - "service": { - "shortName": "RegionNetworkEndpointGroups", - "fullName": "google.cloud.compute.v1.RegionNetworkEndpointGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_AddAssociation_async", - "title": "AcceleratorTypes addAssociation Sample", - "origin": "API_DEFINITION", - "description": " Inserts an association for the specified network firewall policy.", - "canonical": true, - "file": "region_network_firewall_policies.add_association.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 88, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddAssociation", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.AddAssociation", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "firewall_policy_association_resource", - "type": ".google.cloud.compute.v1.FirewallPolicyAssociation" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "replace_existing_association", - "type": "TYPE_BOOL" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionNetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "AddAssociation", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.AddAssociation", - "service": { - "shortName": "RegionNetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_AddRule_async", - "title": "AcceleratorTypes addRule Sample", - "origin": "API_DEFINITION", - "description": " Inserts a rule into a network firewall policy.", - "canonical": true, - "file": "region_network_firewall_policies.add_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 92, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddRule", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.AddRule", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "firewall_policy_rule_resource", - "type": ".google.cloud.compute.v1.FirewallPolicyRule" - }, - { - "name": "max_priority", - "type": "TYPE_INT32" - }, - { - "name": "min_priority", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionNetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "AddRule", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.AddRule", - "service": { - "shortName": "RegionNetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_CloneRules_async", - "title": "AcceleratorTypes cloneRules Sample", - "origin": "API_DEFINITION", - "description": " Copies rules to the specified network firewall policy.", - "canonical": true, - "file": "region_network_firewall_policies.clone_rules.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CloneRules", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.CloneRules", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "source_firewall_policy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionNetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "CloneRules", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.CloneRules", - "service": { - "shortName": "RegionNetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified network firewall policy.", - "canonical": true, - "file": "region_network_firewall_policies.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.Delete", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionNetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.Delete", - "service": { - "shortName": "RegionNetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified network firewall policy.", - "canonical": true, - "file": "region_network_firewall_policies.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.Get", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.FirewallPolicy", - "client": { - "shortName": "RegionNetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.Get", - "service": { - "shortName": "RegionNetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_GetAssociation_async", - "title": "AcceleratorTypes getAssociation Sample", - "origin": "API_DEFINITION", - "description": " Gets an association with the specified name.", - "canonical": true, - "file": "region_network_firewall_policies.get_association.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAssociation", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.GetAssociation", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.FirewallPolicyAssociation", - "client": { - "shortName": "RegionNetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "GetAssociation", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.GetAssociation", - "service": { - "shortName": "RegionNetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_GetEffectiveFirewalls_async", - "title": "AcceleratorTypes getEffectiveFirewalls Sample", - "origin": "API_DEFINITION", - "description": " Returns the effective firewalls on a given network.", - "canonical": true, - "file": "region_network_firewall_policies.get_effective_firewalls.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEffectiveFirewalls", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.GetEffectiveFirewalls", - "async": true, - "parameters": [ - { - "name": "network", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse", - "client": { - "shortName": "RegionNetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "GetEffectiveFirewalls", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.GetEffectiveFirewalls", - "service": { - "shortName": "RegionNetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "region_network_firewall_policies.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "RegionNetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.GetIamPolicy", - "service": { - "shortName": "RegionNetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_GetRule_async", - "title": "AcceleratorTypes getRule Sample", - "origin": "API_DEFINITION", - "description": " Gets a rule of the specified priority.", - "canonical": true, - "file": "region_network_firewall_policies.get_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRule", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.GetRule", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "priority", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.FirewallPolicyRule", - "client": { - "shortName": "RegionNetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "GetRule", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.GetRule", - "service": { - "shortName": "RegionNetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a new network firewall policy in the specified project and region.", - "canonical": true, - "file": "region_network_firewall_policies.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.Insert", - "async": true, - "parameters": [ - { - "name": "firewall_policy_resource", - "type": ".google.cloud.compute.v1.FirewallPolicy" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionNetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.Insert", - "service": { - "shortName": "RegionNetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Lists all the network firewall policies that have been configured for the specified project in the given region.", - "canonical": true, - "file": "region_network_firewall_policies.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.FirewallPolicyList", - "client": { - "shortName": "RegionNetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.List", - "service": { - "shortName": "RegionNetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patches the specified network firewall policy.", - "canonical": true, - "file": "region_network_firewall_policies.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.Patch", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "firewall_policy_resource", - "type": ".google.cloud.compute.v1.FirewallPolicy" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionNetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.Patch", - "service": { - "shortName": "RegionNetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_PatchRule_async", - "title": "AcceleratorTypes patchRule Sample", - "origin": "API_DEFINITION", - "description": " Patches a rule of the specified priority.", - "canonical": true, - "file": "region_network_firewall_policies.patch_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PatchRule", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.PatchRule", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "firewall_policy_rule_resource", - "type": ".google.cloud.compute.v1.FirewallPolicyRule" - }, - { - "name": "priority", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionNetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "PatchRule", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.PatchRule", - "service": { - "shortName": "RegionNetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_RemoveAssociation_async", - "title": "AcceleratorTypes removeAssociation Sample", - "origin": "API_DEFINITION", - "description": " Removes an association for the specified network firewall policy.", - "canonical": true, - "file": "region_network_firewall_policies.remove_association.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveAssociation", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.RemoveAssociation", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionNetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "RemoveAssociation", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.RemoveAssociation", - "service": { - "shortName": "RegionNetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_RemoveRule_async", - "title": "AcceleratorTypes removeRule Sample", - "origin": "API_DEFINITION", - "description": " Deletes a rule of the specified priority.", - "canonical": true, - "file": "region_network_firewall_policies.remove_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveRule", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.RemoveRule", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "priority", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionNetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "RemoveRule", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.RemoveRule", - "service": { - "shortName": "RegionNetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "region_network_firewall_policies.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_set_policy_request_resource", - "type": ".google.cloud.compute.v1.RegionSetPolicyRequest" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "RegionNetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.SetIamPolicy", - "service": { - "shortName": "RegionNetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionNetworkFirewallPolicies_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "region_network_firewall_policies.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", - "client": { - "shortName": "RegionNetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies.TestIamPermissions", - "service": { - "shortName": "RegionNetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1.RegionNetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionNotificationEndpoints_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of all NotificationEndpoint resources, regional and global, available to the specified project.", - "canonical": true, - "file": "region_notification_endpoints.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.RegionNotificationEndpoints.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1.NotificationEndpointAggregatedList", - "client": { - "shortName": "RegionNotificationEndpointsClient", - "fullName": "google.cloud.compute.v1.RegionNotificationEndpointsClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.RegionNotificationEndpoints.AggregatedList", - "service": { - "shortName": "RegionNotificationEndpoints", - "fullName": "google.cloud.compute.v1.RegionNotificationEndpoints" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionNotificationEndpoints_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified NotificationEndpoint in the given region", - "canonical": true, - "file": "region_notification_endpoints.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionNotificationEndpoints.Delete", - "async": true, - "parameters": [ - { - "name": "notification_endpoint", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionNotificationEndpointsClient", - "fullName": "google.cloud.compute.v1.RegionNotificationEndpointsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionNotificationEndpoints.Delete", - "service": { - "shortName": "RegionNotificationEndpoints", - "fullName": "google.cloud.compute.v1.RegionNotificationEndpoints" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionNotificationEndpoints_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified NotificationEndpoint resource in the given region.", - "canonical": true, - "file": "region_notification_endpoints.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionNotificationEndpoints.Get", - "async": true, - "parameters": [ - { - "name": "notification_endpoint", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.NotificationEndpoint", - "client": { - "shortName": "RegionNotificationEndpointsClient", - "fullName": "google.cloud.compute.v1.RegionNotificationEndpointsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionNotificationEndpoints.Get", - "service": { - "shortName": "RegionNotificationEndpoints", - "fullName": "google.cloud.compute.v1.RegionNotificationEndpoints" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionNotificationEndpoints_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Create a NotificationEndpoint in the specified project in the given region using the parameters that are included in the request.", - "canonical": true, - "file": "region_notification_endpoints.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionNotificationEndpoints.Insert", - "async": true, - "parameters": [ - { - "name": "notification_endpoint_resource", - "type": ".google.cloud.compute.v1.NotificationEndpoint" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionNotificationEndpointsClient", - "fullName": "google.cloud.compute.v1.RegionNotificationEndpointsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionNotificationEndpoints.Insert", - "service": { - "shortName": "RegionNotificationEndpoints", - "fullName": "google.cloud.compute.v1.RegionNotificationEndpoints" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionNotificationEndpoints_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Lists the NotificationEndpoints for a project in the given region.", - "canonical": true, - "file": "region_notification_endpoints.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionNotificationEndpoints.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.NotificationEndpointList", - "client": { - "shortName": "RegionNotificationEndpointsClient", - "fullName": "google.cloud.compute.v1.RegionNotificationEndpointsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionNotificationEndpoints.List", - "service": { - "shortName": "RegionNotificationEndpoints", - "fullName": "google.cloud.compute.v1.RegionNotificationEndpoints" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionNotificationEndpoints_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "region_notification_endpoints.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.RegionNotificationEndpoints.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", - "client": { - "shortName": "RegionNotificationEndpointsClient", - "fullName": "google.cloud.compute.v1.RegionNotificationEndpointsClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.RegionNotificationEndpoints.TestIamPermissions", - "service": { - "shortName": "RegionNotificationEndpoints", - "fullName": "google.cloud.compute.v1.RegionNotificationEndpoints" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionOperations_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified region-specific Operations resource.", - "canonical": true, - "file": "region_operations.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionOperations.Delete", - "async": true, - "parameters": [ - { - "name": "operation", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.DeleteRegionOperationResponse", - "client": { - "shortName": "RegionOperationsClient", - "fullName": "google.cloud.compute.v1.RegionOperationsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionOperations.Delete", - "service": { - "shortName": "RegionOperations", - "fullName": "google.cloud.compute.v1.RegionOperations" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionOperations_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified region-specific Operations resource.", - "canonical": true, - "file": "region_operations.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionOperations.Get", - "async": true, - "parameters": [ - { - "name": "operation", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionOperationsClient", - "fullName": "google.cloud.compute.v1.RegionOperationsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionOperations.Get", - "service": { - "shortName": "RegionOperations", - "fullName": "google.cloud.compute.v1.RegionOperations" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionOperations_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of Operation resources contained within the specified region.", - "canonical": true, - "file": "region_operations.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionOperations.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.OperationList", - "client": { - "shortName": "RegionOperationsClient", - "fullName": "google.cloud.compute.v1.RegionOperationsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionOperations.List", - "service": { - "shortName": "RegionOperations", - "fullName": "google.cloud.compute.v1.RegionOperations" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionOperations_Wait_async", - "title": "AcceleratorTypes wait Sample", - "origin": "API_DEFINITION", - "description": " Waits for the specified Operation resource to return as `DONE` or for the request to approach the 2 minute deadline, and retrieves the specified Operation resource. This method differs from the `GET` method in that it waits for no more than the default deadline (2 minutes) and then returns the current state of the operation, which might be `DONE` or still in progress. This method is called on a best-effort basis. Specifically: - In uncommon cases, when the server is overloaded, the request might return before the default deadline is reached, or might return after zero seconds. - If the default deadline is reached, there is no guarantee that the operation is actually done when the method returns. Be prepared to retry if the operation is not `DONE`.", - "canonical": true, - "file": "region_operations.wait.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Wait", - "fullName": "google.cloud.compute.v1.RegionOperations.Wait", - "async": true, - "parameters": [ - { - "name": "operation", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionOperationsClient", - "fullName": "google.cloud.compute.v1.RegionOperationsClient" - }, - "method": { - "shortName": "Wait", - "fullName": "google.cloud.compute.v1.RegionOperations.Wait", - "service": { - "shortName": "RegionOperations", - "fullName": "google.cloud.compute.v1.RegionOperations" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Regions_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified Region resource. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the `quotas` field). To exclude one or more fields, set your request's `fields` query parameter to only include the fields you need. For example, to only include the `id` and `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request. This method fails if the quota information is unavailable for the region and if the organization policy constraint compute.requireBasicQuotaInResponse is enforced. This constraint, when enforced, disables the fail-open behaviour when quota information (the `items.quotas` field) is unavailable for the region. It is recommended to use the default setting for the constraint unless your application requires the fail-closed behaviour for this method.", - "canonical": true, - "file": "regions.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.Regions.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Region", - "client": { - "shortName": "RegionsClient", - "fullName": "google.cloud.compute.v1.RegionsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.Regions.Get", - "service": { - "shortName": "Regions", - "fullName": "google.cloud.compute.v1.Regions" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Regions_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of region resources available to the specified project. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the `items.quotas` field). To exclude one or more fields, set your request's `fields` query parameter to only include the fields you need. For example, to only include the `id` and `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request. This method fails if the quota information is unavailable for the region and if the organization policy constraint compute.requireBasicQuotaInResponse is enforced. This constraint, when enforced, disables the fail-open behaviour when quota information (the `items.quotas` field) is unavailable for the region. It is recommended to use the default setting for the constraint unless your application requires the fail-closed behaviour for this method.", - "canonical": true, - "file": "regions.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.Regions.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.RegionList", - "client": { - "shortName": "RegionsClient", - "fullName": "google.cloud.compute.v1.RegionsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.Regions.List", - "service": { - "shortName": "Regions", - "fullName": "google.cloud.compute.v1.Regions" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionSecurityPolicies_AddRule_async", - "title": "AcceleratorTypes addRule Sample", - "origin": "API_DEFINITION", - "description": " Inserts a rule into a security policy.", - "canonical": true, - "file": "region_security_policies.add_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddRule", - "fullName": "google.cloud.compute.v1.RegionSecurityPolicies.AddRule", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "security_policy", - "type": "TYPE_STRING" - }, - { - "name": "security_policy_rule_resource", - "type": ".google.cloud.compute.v1.SecurityPolicyRule" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionSecurityPoliciesClient", - "fullName": "google.cloud.compute.v1.RegionSecurityPoliciesClient" - }, - "method": { - "shortName": "AddRule", - "fullName": "google.cloud.compute.v1.RegionSecurityPolicies.AddRule", - "service": { - "shortName": "RegionSecurityPolicies", - "fullName": "google.cloud.compute.v1.RegionSecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionSecurityPolicies_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified policy.", - "canonical": true, - "file": "region_security_policies.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionSecurityPolicies.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "security_policy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionSecurityPoliciesClient", - "fullName": "google.cloud.compute.v1.RegionSecurityPoliciesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionSecurityPolicies.Delete", - "service": { - "shortName": "RegionSecurityPolicies", - "fullName": "google.cloud.compute.v1.RegionSecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionSecurityPolicies_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " List all of the ordered rules present in a single specified policy.", - "canonical": true, - "file": "region_security_policies.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionSecurityPolicies.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "security_policy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.SecurityPolicy", - "client": { - "shortName": "RegionSecurityPoliciesClient", - "fullName": "google.cloud.compute.v1.RegionSecurityPoliciesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionSecurityPolicies.Get", - "service": { - "shortName": "RegionSecurityPolicies", - "fullName": "google.cloud.compute.v1.RegionSecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionSecurityPolicies_GetRule_async", - "title": "AcceleratorTypes getRule Sample", - "origin": "API_DEFINITION", - "description": " Gets a rule at the specified priority.", - "canonical": true, - "file": "region_security_policies.get_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRule", - "fullName": "google.cloud.compute.v1.RegionSecurityPolicies.GetRule", - "async": true, - "parameters": [ - { - "name": "priority", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "security_policy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.SecurityPolicyRule", - "client": { - "shortName": "RegionSecurityPoliciesClient", - "fullName": "google.cloud.compute.v1.RegionSecurityPoliciesClient" - }, - "method": { - "shortName": "GetRule", - "fullName": "google.cloud.compute.v1.RegionSecurityPolicies.GetRule", - "service": { - "shortName": "RegionSecurityPolicies", - "fullName": "google.cloud.compute.v1.RegionSecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionSecurityPolicies_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a new policy in the specified project using the data included in the request.", - "canonical": true, - "file": "region_security_policies.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionSecurityPolicies.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "security_policy_resource", - "type": ".google.cloud.compute.v1.SecurityPolicy" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionSecurityPoliciesClient", - "fullName": "google.cloud.compute.v1.RegionSecurityPoliciesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionSecurityPolicies.Insert", - "service": { - "shortName": "RegionSecurityPolicies", - "fullName": "google.cloud.compute.v1.RegionSecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionSecurityPolicies_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " List all the policies that have been configured for the specified project and region.", - "canonical": true, - "file": "region_security_policies.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionSecurityPolicies.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.SecurityPolicyList", - "client": { - "shortName": "RegionSecurityPoliciesClient", - "fullName": "google.cloud.compute.v1.RegionSecurityPoliciesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionSecurityPolicies.List", - "service": { - "shortName": "RegionSecurityPolicies", - "fullName": "google.cloud.compute.v1.RegionSecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionSecurityPolicies_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patches the specified policy with the data included in the request. To clear fields in the policy, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.", - "canonical": true, - "file": "region_security_policies.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.RegionSecurityPolicies.Patch", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "security_policy", - "type": "TYPE_STRING" - }, - { - "name": "security_policy_resource", - "type": ".google.cloud.compute.v1.SecurityPolicy" - }, - { - "name": "update_mask", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionSecurityPoliciesClient", - "fullName": "google.cloud.compute.v1.RegionSecurityPoliciesClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.RegionSecurityPolicies.Patch", - "service": { - "shortName": "RegionSecurityPolicies", - "fullName": "google.cloud.compute.v1.RegionSecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionSecurityPolicies_PatchRule_async", - "title": "AcceleratorTypes patchRule Sample", - "origin": "API_DEFINITION", - "description": " Patches a rule at the specified priority. To clear fields in the rule, leave the fields empty and specify them in the updateMask.", - "canonical": true, - "file": "region_security_policies.patch_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PatchRule", - "fullName": "google.cloud.compute.v1.RegionSecurityPolicies.PatchRule", - "async": true, - "parameters": [ - { - "name": "priority", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "security_policy", - "type": "TYPE_STRING" - }, - { - "name": "security_policy_rule_resource", - "type": ".google.cloud.compute.v1.SecurityPolicyRule" - }, - { - "name": "update_mask", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionSecurityPoliciesClient", - "fullName": "google.cloud.compute.v1.RegionSecurityPoliciesClient" - }, - "method": { - "shortName": "PatchRule", - "fullName": "google.cloud.compute.v1.RegionSecurityPolicies.PatchRule", - "service": { - "shortName": "RegionSecurityPolicies", - "fullName": "google.cloud.compute.v1.RegionSecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionSecurityPolicies_RemoveRule_async", - "title": "AcceleratorTypes removeRule Sample", - "origin": "API_DEFINITION", - "description": " Deletes a rule at the specified priority.", - "canonical": true, - "file": "region_security_policies.remove_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveRule", - "fullName": "google.cloud.compute.v1.RegionSecurityPolicies.RemoveRule", - "async": true, - "parameters": [ - { - "name": "priority", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "security_policy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionSecurityPoliciesClient", - "fullName": "google.cloud.compute.v1.RegionSecurityPoliciesClient" - }, - "method": { - "shortName": "RemoveRule", - "fullName": "google.cloud.compute.v1.RegionSecurityPolicies.RemoveRule", - "service": { - "shortName": "RegionSecurityPolicies", - "fullName": "google.cloud.compute.v1.RegionSecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionSecurityPolicies_SetLabels_async", - "title": "AcceleratorTypes setLabels Sample", - "origin": "API_DEFINITION", - "description": " Sets the labels on a security policy. To learn more about labels, read the Labeling Resources documentation.", - "canonical": true, - "file": "region_security_policies.set_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1.RegionSecurityPolicies.SetLabels", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_set_labels_request_resource", - "type": ".google.cloud.compute.v1.RegionSetLabelsRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionSecurityPoliciesClient", - "fullName": "google.cloud.compute.v1.RegionSecurityPoliciesClient" - }, - "method": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1.RegionSecurityPolicies.SetLabels", - "service": { - "shortName": "RegionSecurityPolicies", - "fullName": "google.cloud.compute.v1.RegionSecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionSnapshots_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified Snapshot resource. Keep in mind that deleting a single snapshot might not necessarily delete all the data on that snapshot. If any data on the snapshot that is marked for deletion is needed for subsequent snapshots, the data will be moved to the next corresponding snapshot. For more information, seeDeleting snapshots.", - "canonical": true, - "file": "region_snapshots.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionSnapshots.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "snapshot", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionSnapshotsClient", - "fullName": "google.cloud.compute.v1.RegionSnapshotsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionSnapshots.Delete", - "service": { - "shortName": "RegionSnapshots", - "fullName": "google.cloud.compute.v1.RegionSnapshots" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionSnapshots_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified Snapshot resource.", - "canonical": true, - "file": "region_snapshots.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionSnapshots.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "snapshot", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Snapshot", - "client": { - "shortName": "RegionSnapshotsClient", - "fullName": "google.cloud.compute.v1.RegionSnapshotsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionSnapshots.Get", - "service": { - "shortName": "RegionSnapshots", - "fullName": "google.cloud.compute.v1.RegionSnapshots" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionSnapshots_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "region_snapshots.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.RegionSnapshots.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "RegionSnapshotsClient", - "fullName": "google.cloud.compute.v1.RegionSnapshotsClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.RegionSnapshots.GetIamPolicy", - "service": { - "shortName": "RegionSnapshots", - "fullName": "google.cloud.compute.v1.RegionSnapshots" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionSnapshots_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a snapshot in the specified region using the data included in the request.", - "canonical": true, - "file": "region_snapshots.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionSnapshots.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "snapshot_resource", - "type": ".google.cloud.compute.v1.Snapshot" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionSnapshotsClient", - "fullName": "google.cloud.compute.v1.RegionSnapshotsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionSnapshots.Insert", - "service": { - "shortName": "RegionSnapshots", - "fullName": "google.cloud.compute.v1.RegionSnapshots" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionSnapshots_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of Snapshot resources contained within the specified region.", - "canonical": true, - "file": "region_snapshots.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionSnapshots.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.SnapshotList", - "client": { - "shortName": "RegionSnapshotsClient", - "fullName": "google.cloud.compute.v1.RegionSnapshotsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionSnapshots.List", - "service": { - "shortName": "RegionSnapshots", - "fullName": "google.cloud.compute.v1.RegionSnapshots" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionSnapshots_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "region_snapshots.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.RegionSnapshots.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_set_policy_request_resource", - "type": ".google.cloud.compute.v1.RegionSetPolicyRequest" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "RegionSnapshotsClient", - "fullName": "google.cloud.compute.v1.RegionSnapshotsClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.RegionSnapshots.SetIamPolicy", - "service": { - "shortName": "RegionSnapshots", - "fullName": "google.cloud.compute.v1.RegionSnapshots" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionSnapshots_SetLabels_async", - "title": "AcceleratorTypes setLabels Sample", - "origin": "API_DEFINITION", - "description": " Sets the labels on a regional snapshot. To learn more about labels, read the Labeling Resources documentation.", - "canonical": true, - "file": "region_snapshots.set_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1.RegionSnapshots.SetLabels", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_set_labels_request_resource", - "type": ".google.cloud.compute.v1.RegionSetLabelsRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionSnapshotsClient", - "fullName": "google.cloud.compute.v1.RegionSnapshotsClient" - }, - "method": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1.RegionSnapshots.SetLabels", - "service": { - "shortName": "RegionSnapshots", - "fullName": "google.cloud.compute.v1.RegionSnapshots" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionSnapshots_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "region_snapshots.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.RegionSnapshots.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", - "client": { - "shortName": "RegionSnapshotsClient", - "fullName": "google.cloud.compute.v1.RegionSnapshotsClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.RegionSnapshots.TestIamPermissions", - "service": { - "shortName": "RegionSnapshots", - "fullName": "google.cloud.compute.v1.RegionSnapshots" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionSnapshots_UpdateKmsKey_async", - "title": "AcceleratorTypes updateKmsKey Sample", - "origin": "API_DEFINITION", - "description": " Rotates the customer-managed encryption key to the latest version for the specified snapshot.", - "canonical": true, - "file": "region_snapshots.update_kms_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateKmsKey", - "fullName": "google.cloud.compute.v1.RegionSnapshots.UpdateKmsKey", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_snapshot_update_kms_key_request_resource", - "type": ".google.cloud.compute.v1.RegionSnapshotUpdateKmsKeyRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "snapshot", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionSnapshotsClient", - "fullName": "google.cloud.compute.v1.RegionSnapshotsClient" - }, - "method": { - "shortName": "UpdateKmsKey", - "fullName": "google.cloud.compute.v1.RegionSnapshots.UpdateKmsKey", - "service": { - "shortName": "RegionSnapshots", - "fullName": "google.cloud.compute.v1.RegionSnapshots" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionSnapshotSettings_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Get region snapshot settings.", - "canonical": true, - "file": "region_snapshot_settings.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionSnapshotSettings.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.SnapshotSettings", - "client": { - "shortName": "RegionSnapshotSettingsClient", - "fullName": "google.cloud.compute.v1.RegionSnapshotSettingsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionSnapshotSettings.Get", - "service": { - "shortName": "RegionSnapshotSettings", - "fullName": "google.cloud.compute.v1.RegionSnapshotSettings" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionSnapshotSettings_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patch region snapshot settings.", - "canonical": true, - "file": "region_snapshot_settings.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.RegionSnapshotSettings.Patch", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "snapshot_settings_resource", - "type": ".google.cloud.compute.v1.SnapshotSettings" - }, - { - "name": "update_mask", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionSnapshotSettingsClient", - "fullName": "google.cloud.compute.v1.RegionSnapshotSettingsClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.RegionSnapshotSettings.Patch", - "service": { - "shortName": "RegionSnapshotSettings", - "fullName": "google.cloud.compute.v1.RegionSnapshotSettings" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionSslCertificates_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified SslCertificate resource in the region.", - "canonical": true, - "file": "region_ssl_certificates.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionSslCertificates.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "ssl_certificate", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionSslCertificatesClient", - "fullName": "google.cloud.compute.v1.RegionSslCertificatesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionSslCertificates.Delete", - "service": { - "shortName": "RegionSslCertificates", - "fullName": "google.cloud.compute.v1.RegionSslCertificates" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionSslCertificates_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified SslCertificate resource in the specified region. Get a list of available SSL certificates by making a list() request.", - "canonical": true, - "file": "region_ssl_certificates.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionSslCertificates.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "ssl_certificate", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.SslCertificate", - "client": { - "shortName": "RegionSslCertificatesClient", - "fullName": "google.cloud.compute.v1.RegionSslCertificatesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionSslCertificates.Get", - "service": { - "shortName": "RegionSslCertificates", - "fullName": "google.cloud.compute.v1.RegionSslCertificates" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionSslCertificates_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a SslCertificate resource in the specified project and region using the data included in the request", - "canonical": true, - "file": "region_ssl_certificates.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionSslCertificates.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "ssl_certificate_resource", - "type": ".google.cloud.compute.v1.SslCertificate" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionSslCertificatesClient", - "fullName": "google.cloud.compute.v1.RegionSslCertificatesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionSslCertificates.Insert", - "service": { - "shortName": "RegionSslCertificates", - "fullName": "google.cloud.compute.v1.RegionSslCertificates" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionSslCertificates_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of SslCertificate resources available to the specified project in the specified region.", - "canonical": true, - "file": "region_ssl_certificates.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionSslCertificates.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.SslCertificateList", - "client": { - "shortName": "RegionSslCertificatesClient", - "fullName": "google.cloud.compute.v1.RegionSslCertificatesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionSslCertificates.List", - "service": { - "shortName": "RegionSslCertificates", - "fullName": "google.cloud.compute.v1.RegionSslCertificates" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionSslPolicies_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified SSL policy. The SSL policy resource can be deleted only if it is not in use by any TargetHttpsProxy or TargetSslProxy resources.", - "canonical": true, - "file": "region_ssl_policies.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionSslPolicies.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "ssl_policy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionSslPoliciesClient", - "fullName": "google.cloud.compute.v1.RegionSslPoliciesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionSslPolicies.Delete", - "service": { - "shortName": "RegionSslPolicies", - "fullName": "google.cloud.compute.v1.RegionSslPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionSslPolicies_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Lists all of the ordered rules present in a single specified policy.", - "canonical": true, - "file": "region_ssl_policies.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionSslPolicies.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "ssl_policy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.SslPolicy", - "client": { - "shortName": "RegionSslPoliciesClient", - "fullName": "google.cloud.compute.v1.RegionSslPoliciesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionSslPolicies.Get", - "service": { - "shortName": "RegionSslPolicies", - "fullName": "google.cloud.compute.v1.RegionSslPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionSslPolicies_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a new policy in the specified project and region using the data included in the request.", - "canonical": true, - "file": "region_ssl_policies.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionSslPolicies.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "ssl_policy_resource", - "type": ".google.cloud.compute.v1.SslPolicy" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionSslPoliciesClient", - "fullName": "google.cloud.compute.v1.RegionSslPoliciesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionSslPolicies.Insert", - "service": { - "shortName": "RegionSslPolicies", - "fullName": "google.cloud.compute.v1.RegionSslPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionSslPolicies_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Lists all the SSL policies that have been configured for the specified project and region.", - "canonical": true, - "file": "region_ssl_policies.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionSslPolicies.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.SslPoliciesList", - "client": { - "shortName": "RegionSslPoliciesClient", - "fullName": "google.cloud.compute.v1.RegionSslPoliciesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionSslPolicies.List", - "service": { - "shortName": "RegionSslPolicies", - "fullName": "google.cloud.compute.v1.RegionSslPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionSslPolicies_ListAvailableFeatures_async", - "title": "AcceleratorTypes listAvailableFeatures Sample", - "origin": "API_DEFINITION", - "description": " Lists all features that can be specified in the SSL policy when using custom profile.", - "canonical": true, - "file": "region_ssl_policies.list_available_features.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 143, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAvailableFeatures", - "fullName": "google.cloud.compute.v1.RegionSslPolicies.ListAvailableFeatures", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.SslPoliciesListAvailableFeaturesResponse", - "client": { - "shortName": "RegionSslPoliciesClient", - "fullName": "google.cloud.compute.v1.RegionSslPoliciesClient" - }, - "method": { - "shortName": "ListAvailableFeatures", - "fullName": "google.cloud.compute.v1.RegionSslPolicies.ListAvailableFeatures", - "service": { - "shortName": "RegionSslPolicies", - "fullName": "google.cloud.compute.v1.RegionSslPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionSslPolicies_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patches the specified SSL policy with the data included in the request.", - "canonical": true, - "file": "region_ssl_policies.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.RegionSslPolicies.Patch", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "ssl_policy", - "type": "TYPE_STRING" - }, - { - "name": "ssl_policy_resource", - "type": ".google.cloud.compute.v1.SslPolicy" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionSslPoliciesClient", - "fullName": "google.cloud.compute.v1.RegionSslPoliciesClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.RegionSslPolicies.Patch", - "service": { - "shortName": "RegionSslPolicies", - "fullName": "google.cloud.compute.v1.RegionSslPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionTargetHttpProxies_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified TargetHttpProxy resource.", - "canonical": true, - "file": "region_target_http_proxies.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionTargetHttpProxies.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_http_proxy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionTargetHttpProxiesClient", - "fullName": "google.cloud.compute.v1.RegionTargetHttpProxiesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionTargetHttpProxies.Delete", - "service": { - "shortName": "RegionTargetHttpProxies", - "fullName": "google.cloud.compute.v1.RegionTargetHttpProxies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionTargetHttpProxies_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified TargetHttpProxy resource in the specified region.", - "canonical": true, - "file": "region_target_http_proxies.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionTargetHttpProxies.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "target_http_proxy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.TargetHttpProxy", - "client": { - "shortName": "RegionTargetHttpProxiesClient", - "fullName": "google.cloud.compute.v1.RegionTargetHttpProxiesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionTargetHttpProxies.Get", - "service": { - "shortName": "RegionTargetHttpProxies", - "fullName": "google.cloud.compute.v1.RegionTargetHttpProxies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionTargetHttpProxies_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a TargetHttpProxy resource in the specified project and region using the data included in the request.", - "canonical": true, - "file": "region_target_http_proxies.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionTargetHttpProxies.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_http_proxy_resource", - "type": ".google.cloud.compute.v1.TargetHttpProxy" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionTargetHttpProxiesClient", - "fullName": "google.cloud.compute.v1.RegionTargetHttpProxiesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionTargetHttpProxies.Insert", - "service": { - "shortName": "RegionTargetHttpProxies", - "fullName": "google.cloud.compute.v1.RegionTargetHttpProxies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionTargetHttpProxies_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of TargetHttpProxy resources available to the specified project in the specified region.", - "canonical": true, - "file": "region_target_http_proxies.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionTargetHttpProxies.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.TargetHttpProxyList", - "client": { - "shortName": "RegionTargetHttpProxiesClient", - "fullName": "google.cloud.compute.v1.RegionTargetHttpProxiesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionTargetHttpProxies.List", - "service": { - "shortName": "RegionTargetHttpProxies", - "fullName": "google.cloud.compute.v1.RegionTargetHttpProxies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionTargetHttpProxies_SetUrlMap_async", - "title": "AcceleratorTypes setUrlMap Sample", - "origin": "API_DEFINITION", - "description": " Changes the URL map for TargetHttpProxy.", - "canonical": true, - "file": "region_target_http_proxies.set_url_map.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetUrlMap", - "fullName": "google.cloud.compute.v1.RegionTargetHttpProxies.SetUrlMap", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_http_proxy", - "type": "TYPE_STRING" - }, - { - "name": "url_map_reference_resource", - "type": ".google.cloud.compute.v1.UrlMapReference" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionTargetHttpProxiesClient", - "fullName": "google.cloud.compute.v1.RegionTargetHttpProxiesClient" - }, - "method": { - "shortName": "SetUrlMap", - "fullName": "google.cloud.compute.v1.RegionTargetHttpProxies.SetUrlMap", - "service": { - "shortName": "RegionTargetHttpProxies", - "fullName": "google.cloud.compute.v1.RegionTargetHttpProxies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionTargetHttpsProxies_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified TargetHttpsProxy resource.", - "canonical": true, - "file": "region_target_https_proxies.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_https_proxy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionTargetHttpsProxiesClient", - "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxiesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies.Delete", - "service": { - "shortName": "RegionTargetHttpsProxies", - "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionTargetHttpsProxies_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified TargetHttpsProxy resource in the specified region.", - "canonical": true, - "file": "region_target_https_proxies.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "target_https_proxy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.TargetHttpsProxy", - "client": { - "shortName": "RegionTargetHttpsProxiesClient", - "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxiesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies.Get", - "service": { - "shortName": "RegionTargetHttpsProxies", - "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionTargetHttpsProxies_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a TargetHttpsProxy resource in the specified project and region using the data included in the request.", - "canonical": true, - "file": "region_target_https_proxies.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_https_proxy_resource", - "type": ".google.cloud.compute.v1.TargetHttpsProxy" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionTargetHttpsProxiesClient", - "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxiesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies.Insert", - "service": { - "shortName": "RegionTargetHttpsProxies", - "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionTargetHttpsProxies_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of TargetHttpsProxy resources available to the specified project in the specified region.", - "canonical": true, - "file": "region_target_https_proxies.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.TargetHttpsProxyList", - "client": { - "shortName": "RegionTargetHttpsProxiesClient", - "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxiesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies.List", - "service": { - "shortName": "RegionTargetHttpsProxies", - "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionTargetHttpsProxies_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patches the specified regional TargetHttpsProxy resource with the data included in the request. This method supports PATCH semantics and usesJSON merge patch format and processing rules.", - "canonical": true, - "file": "region_target_https_proxies.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies.Patch", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_https_proxy", - "type": "TYPE_STRING" - }, - { - "name": "target_https_proxy_resource", - "type": ".google.cloud.compute.v1.TargetHttpsProxy" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionTargetHttpsProxiesClient", - "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxiesClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies.Patch", - "service": { - "shortName": "RegionTargetHttpsProxies", - "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionTargetHttpsProxies_SetSslCertificates_async", - "title": "AcceleratorTypes setSslCertificates Sample", - "origin": "API_DEFINITION", - "description": " Replaces SslCertificates for TargetHttpsProxy.", - "canonical": true, - "file": "region_target_https_proxies.set_ssl_certificates.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetSslCertificates", - "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies.SetSslCertificates", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_target_https_proxies_set_ssl_certificates_request_resource", - "type": ".google.cloud.compute.v1.RegionTargetHttpsProxiesSetSslCertificatesRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_https_proxy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionTargetHttpsProxiesClient", - "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxiesClient" - }, - "method": { - "shortName": "SetSslCertificates", - "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies.SetSslCertificates", - "service": { - "shortName": "RegionTargetHttpsProxies", - "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionTargetHttpsProxies_SetUrlMap_async", - "title": "AcceleratorTypes setUrlMap Sample", - "origin": "API_DEFINITION", - "description": " Changes the URL map for TargetHttpsProxy.", - "canonical": true, - "file": "region_target_https_proxies.set_url_map.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetUrlMap", - "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies.SetUrlMap", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_https_proxy", - "type": "TYPE_STRING" - }, - { - "name": "url_map_reference_resource", - "type": ".google.cloud.compute.v1.UrlMapReference" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionTargetHttpsProxiesClient", - "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxiesClient" - }, - "method": { - "shortName": "SetUrlMap", - "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies.SetUrlMap", - "service": { - "shortName": "RegionTargetHttpsProxies", - "fullName": "google.cloud.compute.v1.RegionTargetHttpsProxies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionTargetTcpProxies_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified TargetTcpProxy resource.", - "canonical": true, - "file": "region_target_tcp_proxies.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionTargetTcpProxies.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_tcp_proxy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionTargetTcpProxiesClient", - "fullName": "google.cloud.compute.v1.RegionTargetTcpProxiesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionTargetTcpProxies.Delete", - "service": { - "shortName": "RegionTargetTcpProxies", - "fullName": "google.cloud.compute.v1.RegionTargetTcpProxies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionTargetTcpProxies_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified TargetTcpProxy resource.", - "canonical": true, - "file": "region_target_tcp_proxies.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionTargetTcpProxies.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "target_tcp_proxy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.TargetTcpProxy", - "client": { - "shortName": "RegionTargetTcpProxiesClient", - "fullName": "google.cloud.compute.v1.RegionTargetTcpProxiesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionTargetTcpProxies.Get", - "service": { - "shortName": "RegionTargetTcpProxies", - "fullName": "google.cloud.compute.v1.RegionTargetTcpProxies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionTargetTcpProxies_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a TargetTcpProxy resource in the specified project and region using the data included in the request.", - "canonical": true, - "file": "region_target_tcp_proxies.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionTargetTcpProxies.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_tcp_proxy_resource", - "type": ".google.cloud.compute.v1.TargetTcpProxy" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionTargetTcpProxiesClient", - "fullName": "google.cloud.compute.v1.RegionTargetTcpProxiesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionTargetTcpProxies.Insert", - "service": { - "shortName": "RegionTargetTcpProxies", - "fullName": "google.cloud.compute.v1.RegionTargetTcpProxies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionTargetTcpProxies_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of TargetTcpProxy resources available to the specified project in a given region.", - "canonical": true, - "file": "region_target_tcp_proxies.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionTargetTcpProxies.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.TargetTcpProxyList", - "client": { - "shortName": "RegionTargetTcpProxiesClient", - "fullName": "google.cloud.compute.v1.RegionTargetTcpProxiesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionTargetTcpProxies.List", - "service": { - "shortName": "RegionTargetTcpProxies", - "fullName": "google.cloud.compute.v1.RegionTargetTcpProxies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionUrlMaps_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified UrlMap resource.", - "canonical": true, - "file": "region_url_maps.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionUrlMaps.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "url_map", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionUrlMapsClient", - "fullName": "google.cloud.compute.v1.RegionUrlMapsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RegionUrlMaps.Delete", - "service": { - "shortName": "RegionUrlMaps", - "fullName": "google.cloud.compute.v1.RegionUrlMaps" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionUrlMaps_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified UrlMap resource.", - "canonical": true, - "file": "region_url_maps.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionUrlMaps.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "url_map", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.UrlMap", - "client": { - "shortName": "RegionUrlMapsClient", - "fullName": "google.cloud.compute.v1.RegionUrlMapsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RegionUrlMaps.Get", - "service": { - "shortName": "RegionUrlMaps", - "fullName": "google.cloud.compute.v1.RegionUrlMaps" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionUrlMaps_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a UrlMap resource in the specified project using the data included in the request.", - "canonical": true, - "file": "region_url_maps.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionUrlMaps.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "url_map_resource", - "type": ".google.cloud.compute.v1.UrlMap" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionUrlMapsClient", - "fullName": "google.cloud.compute.v1.RegionUrlMapsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RegionUrlMaps.Insert", - "service": { - "shortName": "RegionUrlMaps", - "fullName": "google.cloud.compute.v1.RegionUrlMaps" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionUrlMaps_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of UrlMap resources available to the specified project in the specified region.", - "canonical": true, - "file": "region_url_maps.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionUrlMaps.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.UrlMapList", - "client": { - "shortName": "RegionUrlMapsClient", - "fullName": "google.cloud.compute.v1.RegionUrlMapsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionUrlMaps.List", - "service": { - "shortName": "RegionUrlMaps", - "fullName": "google.cloud.compute.v1.RegionUrlMaps" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionUrlMaps_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patches the specified UrlMap resource with the data included in the request. This method supportsPATCH semantics and usesJSON merge patch format and processing rules.", - "canonical": true, - "file": "region_url_maps.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.RegionUrlMaps.Patch", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "url_map", - "type": "TYPE_STRING" - }, - { - "name": "url_map_resource", - "type": ".google.cloud.compute.v1.UrlMap" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionUrlMapsClient", - "fullName": "google.cloud.compute.v1.RegionUrlMapsClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.RegionUrlMaps.Patch", - "service": { - "shortName": "RegionUrlMaps", - "fullName": "google.cloud.compute.v1.RegionUrlMaps" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionUrlMaps_Update_async", - "title": "AcceleratorTypes update Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified UrlMap resource with the data included in the request.", - "canonical": true, - "file": "region_url_maps.update.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1.RegionUrlMaps.Update", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "url_map", - "type": "TYPE_STRING" - }, - { - "name": "url_map_resource", - "type": ".google.cloud.compute.v1.UrlMap" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RegionUrlMapsClient", - "fullName": "google.cloud.compute.v1.RegionUrlMapsClient" - }, - "method": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1.RegionUrlMaps.Update", - "service": { - "shortName": "RegionUrlMaps", - "fullName": "google.cloud.compute.v1.RegionUrlMaps" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionUrlMaps_Validate_async", - "title": "AcceleratorTypes validate Sample", - "origin": "API_DEFINITION", - "description": " Runs static validation for the UrlMap. In particular, the tests of the provided UrlMap will be run. Calling this method does NOT create the UrlMap.", - "canonical": true, - "file": "region_url_maps.validate.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Validate", - "fullName": "google.cloud.compute.v1.RegionUrlMaps.Validate", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_url_maps_validate_request_resource", - "type": ".google.cloud.compute.v1.RegionUrlMapsValidateRequest" - }, - { - "name": "url_map", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.UrlMapsValidateResponse", - "client": { - "shortName": "RegionUrlMapsClient", - "fullName": "google.cloud.compute.v1.RegionUrlMapsClient" - }, - "method": { - "shortName": "Validate", - "fullName": "google.cloud.compute.v1.RegionUrlMaps.Validate", - "service": { - "shortName": "RegionUrlMaps", - "fullName": "google.cloud.compute.v1.RegionUrlMaps" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RegionZones_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of Zone resources under the specific region available to the specified project.", - "canonical": true, - "file": "region_zones.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionZones.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.ZoneList", - "client": { - "shortName": "RegionZonesClient", - "fullName": "google.cloud.compute.v1.RegionZonesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RegionZones.List", - "service": { - "shortName": "RegionZones", - "fullName": "google.cloud.compute.v1.RegionZones" - } - } - } - }, - { - "regionTag": "compute_v1_generated_ReservationBlocks_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Retrieves information about the specified reservation block.", - "canonical": true, - "file": "reservation_blocks.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.ReservationBlocks.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "reservation", - "type": "TYPE_STRING" - }, - { - "name": "reservation_block", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.ReservationBlocksGetResponse", - "client": { - "shortName": "ReservationBlocksClient", - "fullName": "google.cloud.compute.v1.ReservationBlocksClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.ReservationBlocks.Get", - "service": { - "shortName": "ReservationBlocks", - "fullName": "google.cloud.compute.v1.ReservationBlocks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_ReservationBlocks_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "reservation_blocks.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.ReservationBlocks.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "parent_resource", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "ReservationBlocksClient", - "fullName": "google.cloud.compute.v1.ReservationBlocksClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.ReservationBlocks.GetIamPolicy", - "service": { - "shortName": "ReservationBlocks", - "fullName": "google.cloud.compute.v1.ReservationBlocks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_ReservationBlocks_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of reservation blocks under a single reservation.", - "canonical": true, - "file": "reservation_blocks.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 151, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.ReservationBlocks.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "reservation", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.ReservationBlocksListResponse", - "client": { - "shortName": "ReservationBlocksClient", - "fullName": "google.cloud.compute.v1.ReservationBlocksClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.ReservationBlocks.List", - "service": { - "shortName": "ReservationBlocks", - "fullName": "google.cloud.compute.v1.ReservationBlocks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_ReservationBlocks_PerformMaintenance_async", - "title": "AcceleratorTypes performMaintenance Sample", - "origin": "API_DEFINITION", - "description": " Allows customers to perform maintenance on a reservation block", - "canonical": true, - "file": "reservation_blocks.perform_maintenance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 89, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PerformMaintenance", - "fullName": "google.cloud.compute.v1.ReservationBlocks.PerformMaintenance", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "reservation", - "type": "TYPE_STRING" - }, - { - "name": "reservation_block", - "type": "TYPE_STRING" - }, - { - "name": "reservations_blocks_perform_maintenance_request_resource", - "type": ".google.cloud.compute.v1.ReservationsBlocksPerformMaintenanceRequest" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "ReservationBlocksClient", - "fullName": "google.cloud.compute.v1.ReservationBlocksClient" - }, - "method": { - "shortName": "PerformMaintenance", - "fullName": "google.cloud.compute.v1.ReservationBlocks.PerformMaintenance", - "service": { - "shortName": "ReservationBlocks", - "fullName": "google.cloud.compute.v1.ReservationBlocks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_ReservationBlocks_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "reservation_blocks.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.ReservationBlocks.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "parent_resource", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "zone_set_nested_policy_request_resource", - "type": ".google.cloud.compute.v1.ZoneSetNestedPolicyRequest" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "ReservationBlocksClient", - "fullName": "google.cloud.compute.v1.ReservationBlocksClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.ReservationBlocks.SetIamPolicy", - "service": { - "shortName": "ReservationBlocks", - "fullName": "google.cloud.compute.v1.ReservationBlocks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_ReservationBlocks_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "reservation_blocks.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.ReservationBlocks.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "parent_resource", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1.TestPermissionsRequest" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", - "client": { - "shortName": "ReservationBlocksClient", - "fullName": "google.cloud.compute.v1.ReservationBlocksClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.ReservationBlocks.TestIamPermissions", - "service": { - "shortName": "ReservationBlocks", - "fullName": "google.cloud.compute.v1.ReservationBlocks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Reservations_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of reservations. To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "reservations.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.Reservations.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1.ReservationAggregatedList", - "client": { - "shortName": "ReservationsClient", - "fullName": "google.cloud.compute.v1.ReservationsClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.Reservations.AggregatedList", - "service": { - "shortName": "Reservations", - "fullName": "google.cloud.compute.v1.Reservations" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Reservations_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified reservation.", - "canonical": true, - "file": "reservations.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.Reservations.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "reservation", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "ReservationsClient", - "fullName": "google.cloud.compute.v1.ReservationsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.Reservations.Delete", - "service": { - "shortName": "Reservations", - "fullName": "google.cloud.compute.v1.Reservations" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Reservations_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Retrieves information about the specified reservation.", - "canonical": true, - "file": "reservations.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.Reservations.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "reservation", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Reservation", - "client": { - "shortName": "ReservationsClient", - "fullName": "google.cloud.compute.v1.ReservationsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.Reservations.Get", - "service": { - "shortName": "Reservations", - "fullName": "google.cloud.compute.v1.Reservations" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Reservations_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "reservations.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.Reservations.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "ReservationsClient", - "fullName": "google.cloud.compute.v1.ReservationsClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.Reservations.GetIamPolicy", - "service": { - "shortName": "Reservations", - "fullName": "google.cloud.compute.v1.Reservations" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Reservations_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a new reservation. For more information, readReserving zonal resources.", - "canonical": true, - "file": "reservations.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.Reservations.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "reservation_resource", - "type": ".google.cloud.compute.v1.Reservation" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "ReservationsClient", - "fullName": "google.cloud.compute.v1.ReservationsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.Reservations.Insert", - "service": { - "shortName": "Reservations", - "fullName": "google.cloud.compute.v1.Reservations" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Reservations_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " A list of all the reservations that have been configured for the specified project in specified zone.", - "canonical": true, - "file": "reservations.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.Reservations.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.ReservationList", - "client": { - "shortName": "ReservationsClient", - "fullName": "google.cloud.compute.v1.ReservationsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.Reservations.List", - "service": { - "shortName": "Reservations", - "fullName": "google.cloud.compute.v1.Reservations" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Reservations_PerformMaintenance_async", - "title": "AcceleratorTypes performMaintenance Sample", - "origin": "API_DEFINITION", - "description": " Perform maintenance on an extended reservation", - "canonical": true, - "file": "reservations.perform_maintenance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PerformMaintenance", - "fullName": "google.cloud.compute.v1.Reservations.PerformMaintenance", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "reservation", - "type": "TYPE_STRING" - }, - { - "name": "reservations_perform_maintenance_request_resource", - "type": ".google.cloud.compute.v1.ReservationsPerformMaintenanceRequest" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "ReservationsClient", - "fullName": "google.cloud.compute.v1.ReservationsClient" - }, - "method": { - "shortName": "PerformMaintenance", - "fullName": "google.cloud.compute.v1.Reservations.PerformMaintenance", - "service": { - "shortName": "Reservations", - "fullName": "google.cloud.compute.v1.Reservations" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Reservations_Resize_async", - "title": "AcceleratorTypes resize Sample", - "origin": "API_DEFINITION", - "description": " Resizes the reservation (applicable to standalone reservations only). For more information, readModifying reservations.", - "canonical": true, - "file": "reservations.resize.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Resize", - "fullName": "google.cloud.compute.v1.Reservations.Resize", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "reservation", - "type": "TYPE_STRING" - }, - { - "name": "reservations_resize_request_resource", - "type": ".google.cloud.compute.v1.ReservationsResizeRequest" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "ReservationsClient", - "fullName": "google.cloud.compute.v1.ReservationsClient" - }, - "method": { - "shortName": "Resize", - "fullName": "google.cloud.compute.v1.Reservations.Resize", - "service": { - "shortName": "Reservations", - "fullName": "google.cloud.compute.v1.Reservations" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Reservations_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "reservations.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.Reservations.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "zone_set_policy_request_resource", - "type": ".google.cloud.compute.v1.ZoneSetPolicyRequest" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "ReservationsClient", - "fullName": "google.cloud.compute.v1.ReservationsClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.Reservations.SetIamPolicy", - "service": { - "shortName": "Reservations", - "fullName": "google.cloud.compute.v1.Reservations" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Reservations_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "reservations.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.Reservations.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1.TestPermissionsRequest" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", - "client": { - "shortName": "ReservationsClient", - "fullName": "google.cloud.compute.v1.ReservationsClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.Reservations.TestIamPermissions", - "service": { - "shortName": "Reservations", - "fullName": "google.cloud.compute.v1.Reservations" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Reservations_Update_async", - "title": "AcceleratorTypes update Sample", - "origin": "API_DEFINITION", - "description": " Update share settings of the reservation.", - "canonical": true, - "file": "reservations.update.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 89, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1.Reservations.Update", - "async": true, - "parameters": [ - { - "name": "paths", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "reservation", - "type": "TYPE_STRING" - }, - { - "name": "reservation_resource", - "type": ".google.cloud.compute.v1.Reservation" - }, - { - "name": "update_mask", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "ReservationsClient", - "fullName": "google.cloud.compute.v1.ReservationsClient" - }, - "method": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1.Reservations.Update", - "service": { - "shortName": "Reservations", - "fullName": "google.cloud.compute.v1.Reservations" - } - } - } - }, - { - "regionTag": "compute_v1_generated_ReservationSlots_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Retrieves information about the specified reservation slot.", - "canonical": true, - "file": "reservation_slots.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.ReservationSlots.Get", - "async": true, - "parameters": [ - { - "name": "parent_name", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "reservation_slot", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.ReservationSlotsGetResponse", - "client": { - "shortName": "ReservationSlotsClient", - "fullName": "google.cloud.compute.v1.ReservationSlotsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.ReservationSlots.Get", - "service": { - "shortName": "ReservationSlots", - "fullName": "google.cloud.compute.v1.ReservationSlots" - } - } - } - }, - { - "regionTag": "compute_v1_generated_ReservationSlots_GetVersion_async", - "title": "AcceleratorTypes getVersion Sample", - "origin": "API_DEFINITION", - "description": " Allows customers to get SBOM versions of a reservation slot.", - "canonical": true, - "file": "reservation_slots.get_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 89, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetVersion", - "fullName": "google.cloud.compute.v1.ReservationSlots.GetVersion", - "async": true, - "parameters": [ - { - "name": "parent_name", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "reservation_slot", - "type": "TYPE_STRING" - }, - { - "name": "reservation_slots_get_version_request_resource", - "type": ".google.cloud.compute.v1.ReservationSlotsGetVersionRequest" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "ReservationSlotsClient", - "fullName": "google.cloud.compute.v1.ReservationSlotsClient" - }, - "method": { - "shortName": "GetVersion", - "fullName": "google.cloud.compute.v1.ReservationSlots.GetVersion", - "service": { - "shortName": "ReservationSlots", - "fullName": "google.cloud.compute.v1.ReservationSlots" - } - } - } - }, - { - "regionTag": "compute_v1_generated_ReservationSlots_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of reservation slots under a single reservation.", - "canonical": true, - "file": "reservation_slots.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 151, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.ReservationSlots.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "parent_name", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.ReservationSlotsListResponse", - "client": { - "shortName": "ReservationSlotsClient", - "fullName": "google.cloud.compute.v1.ReservationSlotsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.ReservationSlots.List", - "service": { - "shortName": "ReservationSlots", - "fullName": "google.cloud.compute.v1.ReservationSlots" - } - } - } - }, - { - "regionTag": "compute_v1_generated_ReservationSlots_Update_async", - "title": "AcceleratorTypes update Sample", - "origin": "API_DEFINITION", - "description": " Update a reservation slot in the specified sub-block.", - "canonical": true, - "file": "reservation_slots.update.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1.ReservationSlots.Update", - "async": true, - "parameters": [ - { - "name": "parent_name", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "reservation_slot", - "type": "TYPE_STRING" - }, - { - "name": "reservation_slot_resource", - "type": ".google.cloud.compute.v1.ReservationSlot" - }, - { - "name": "update_mask", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "ReservationSlotsClient", - "fullName": "google.cloud.compute.v1.ReservationSlotsClient" - }, - "method": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1.ReservationSlots.Update", - "service": { - "shortName": "ReservationSlots", - "fullName": "google.cloud.compute.v1.ReservationSlots" - } - } - } - }, - { - "regionTag": "compute_v1_generated_ReservationSubBlocks_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Retrieves information about the specified reservation subBlock.", - "canonical": true, - "file": "reservation_sub_blocks.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.ReservationSubBlocks.Get", - "async": true, - "parameters": [ - { - "name": "parent_name", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "reservation_sub_block", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.ReservationSubBlocksGetResponse", - "client": { - "shortName": "ReservationSubBlocksClient", - "fullName": "google.cloud.compute.v1.ReservationSubBlocksClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.ReservationSubBlocks.Get", - "service": { - "shortName": "ReservationSubBlocks", - "fullName": "google.cloud.compute.v1.ReservationSubBlocks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_ReservationSubBlocks_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "reservation_sub_blocks.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.ReservationSubBlocks.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "parent_resource", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "ReservationSubBlocksClient", - "fullName": "google.cloud.compute.v1.ReservationSubBlocksClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.ReservationSubBlocks.GetIamPolicy", - "service": { - "shortName": "ReservationSubBlocks", - "fullName": "google.cloud.compute.v1.ReservationSubBlocks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_ReservationSubBlocks_GetVersion_async", - "title": "AcceleratorTypes getVersion Sample", - "origin": "API_DEFINITION", - "description": " Allows customers to get SBOM versions of a reservation subBlock.", - "canonical": true, - "file": "reservation_sub_blocks.get_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 89, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetVersion", - "fullName": "google.cloud.compute.v1.ReservationSubBlocks.GetVersion", - "async": true, - "parameters": [ - { - "name": "parent_name", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "reservation_sub_block", - "type": "TYPE_STRING" - }, - { - "name": "reservation_sub_blocks_get_version_request_resource", - "type": ".google.cloud.compute.v1.ReservationSubBlocksGetVersionRequest" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "ReservationSubBlocksClient", - "fullName": "google.cloud.compute.v1.ReservationSubBlocksClient" - }, - "method": { - "shortName": "GetVersion", - "fullName": "google.cloud.compute.v1.ReservationSubBlocks.GetVersion", - "service": { - "shortName": "ReservationSubBlocks", - "fullName": "google.cloud.compute.v1.ReservationSubBlocks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_ReservationSubBlocks_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of reservation subBlocks under a single reservation.", - "canonical": true, - "file": "reservation_sub_blocks.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 151, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.ReservationSubBlocks.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "parent_name", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.ReservationSubBlocksListResponse", - "client": { - "shortName": "ReservationSubBlocksClient", - "fullName": "google.cloud.compute.v1.ReservationSubBlocksClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.ReservationSubBlocks.List", - "service": { - "shortName": "ReservationSubBlocks", - "fullName": "google.cloud.compute.v1.ReservationSubBlocks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_ReservationSubBlocks_PerformMaintenance_async", - "title": "AcceleratorTypes performMaintenance Sample", - "origin": "API_DEFINITION", - "description": " Allows customers to perform maintenance on a reservation subBlock", - "canonical": true, - "file": "reservation_sub_blocks.perform_maintenance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PerformMaintenance", - "fullName": "google.cloud.compute.v1.ReservationSubBlocks.PerformMaintenance", - "async": true, - "parameters": [ - { - "name": "parent_name", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "reservation_sub_block", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "ReservationSubBlocksClient", - "fullName": "google.cloud.compute.v1.ReservationSubBlocksClient" - }, - "method": { - "shortName": "PerformMaintenance", - "fullName": "google.cloud.compute.v1.ReservationSubBlocks.PerformMaintenance", - "service": { - "shortName": "ReservationSubBlocks", - "fullName": "google.cloud.compute.v1.ReservationSubBlocks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_ReservationSubBlocks_ReportFaulty_async", - "title": "AcceleratorTypes reportFaulty Sample", - "origin": "API_DEFINITION", - "description": " Allows customers to report a faulty subBlock.", - "canonical": true, - "file": "reservation_sub_blocks.report_faulty.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 89, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReportFaulty", - "fullName": "google.cloud.compute.v1.ReservationSubBlocks.ReportFaulty", - "async": true, - "parameters": [ - { - "name": "parent_name", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "reservation_sub_block", - "type": "TYPE_STRING" - }, - { - "name": "reservation_sub_blocks_report_faulty_request_resource", - "type": ".google.cloud.compute.v1.ReservationSubBlocksReportFaultyRequest" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "ReservationSubBlocksClient", - "fullName": "google.cloud.compute.v1.ReservationSubBlocksClient" - }, - "method": { - "shortName": "ReportFaulty", - "fullName": "google.cloud.compute.v1.ReservationSubBlocks.ReportFaulty", - "service": { - "shortName": "ReservationSubBlocks", - "fullName": "google.cloud.compute.v1.ReservationSubBlocks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_ReservationSubBlocks_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "reservation_sub_blocks.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.ReservationSubBlocks.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "parent_resource", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "zone_set_nested_policy_request_resource", - "type": ".google.cloud.compute.v1.ZoneSetNestedPolicyRequest" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "ReservationSubBlocksClient", - "fullName": "google.cloud.compute.v1.ReservationSubBlocksClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.ReservationSubBlocks.SetIamPolicy", - "service": { - "shortName": "ReservationSubBlocks", - "fullName": "google.cloud.compute.v1.ReservationSubBlocks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_ReservationSubBlocks_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "reservation_sub_blocks.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.ReservationSubBlocks.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "parent_resource", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1.TestPermissionsRequest" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", - "client": { - "shortName": "ReservationSubBlocksClient", - "fullName": "google.cloud.compute.v1.ReservationSubBlocksClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.ReservationSubBlocks.TestIamPermissions", - "service": { - "shortName": "ReservationSubBlocks", - "fullName": "google.cloud.compute.v1.ReservationSubBlocks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_ResourcePolicies_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of resource policies. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "resource_policies.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.ResourcePolicies.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1.ResourcePolicyAggregatedList", - "client": { - "shortName": "ResourcePoliciesClient", - "fullName": "google.cloud.compute.v1.ResourcePoliciesClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.ResourcePolicies.AggregatedList", - "service": { - "shortName": "ResourcePolicies", - "fullName": "google.cloud.compute.v1.ResourcePolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_ResourcePolicies_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified resource policy.", - "canonical": true, - "file": "resource_policies.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.ResourcePolicies.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "resource_policy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "ResourcePoliciesClient", - "fullName": "google.cloud.compute.v1.ResourcePoliciesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.ResourcePolicies.Delete", - "service": { - "shortName": "ResourcePolicies", - "fullName": "google.cloud.compute.v1.ResourcePolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_ResourcePolicies_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Retrieves all information of the specified resource policy.", - "canonical": true, - "file": "resource_policies.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.ResourcePolicies.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource_policy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.ResourcePolicy", - "client": { - "shortName": "ResourcePoliciesClient", - "fullName": "google.cloud.compute.v1.ResourcePoliciesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.ResourcePolicies.Get", - "service": { - "shortName": "ResourcePolicies", - "fullName": "google.cloud.compute.v1.ResourcePolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_ResourcePolicies_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "resource_policies.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.ResourcePolicies.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "ResourcePoliciesClient", - "fullName": "google.cloud.compute.v1.ResourcePoliciesClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.ResourcePolicies.GetIamPolicy", - "service": { - "shortName": "ResourcePolicies", - "fullName": "google.cloud.compute.v1.ResourcePolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_ResourcePolicies_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a new resource policy.", - "canonical": true, - "file": "resource_policies.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.ResourcePolicies.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "resource_policy_resource", - "type": ".google.cloud.compute.v1.ResourcePolicy" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "ResourcePoliciesClient", - "fullName": "google.cloud.compute.v1.ResourcePoliciesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.ResourcePolicies.Insert", - "service": { - "shortName": "ResourcePolicies", - "fullName": "google.cloud.compute.v1.ResourcePolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_ResourcePolicies_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " A list all the resource policies that have been configured for the specified project in specified region.", - "canonical": true, - "file": "resource_policies.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.ResourcePolicies.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.ResourcePolicyList", - "client": { - "shortName": "ResourcePoliciesClient", - "fullName": "google.cloud.compute.v1.ResourcePoliciesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.ResourcePolicies.List", - "service": { - "shortName": "ResourcePolicies", - "fullName": "google.cloud.compute.v1.ResourcePolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_ResourcePolicies_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Modify the specified resource policy.", - "canonical": true, - "file": "resource_policies.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.ResourcePolicies.Patch", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "resource_policy", - "type": "TYPE_STRING" - }, - { - "name": "resource_policy_resource", - "type": ".google.cloud.compute.v1.ResourcePolicy" - }, - { - "name": "update_mask", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "ResourcePoliciesClient", - "fullName": "google.cloud.compute.v1.ResourcePoliciesClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.ResourcePolicies.Patch", - "service": { - "shortName": "ResourcePolicies", - "fullName": "google.cloud.compute.v1.ResourcePolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_ResourcePolicies_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "resource_policies.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.ResourcePolicies.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_set_policy_request_resource", - "type": ".google.cloud.compute.v1.RegionSetPolicyRequest" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "ResourcePoliciesClient", - "fullName": "google.cloud.compute.v1.ResourcePoliciesClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.ResourcePolicies.SetIamPolicy", - "service": { - "shortName": "ResourcePolicies", - "fullName": "google.cloud.compute.v1.ResourcePolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_ResourcePolicies_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "resource_policies.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.ResourcePolicies.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", - "client": { - "shortName": "ResourcePoliciesClient", - "fullName": "google.cloud.compute.v1.ResourcePoliciesClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.ResourcePolicies.TestIamPermissions", - "service": { - "shortName": "ResourcePolicies", - "fullName": "google.cloud.compute.v1.ResourcePolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RolloutPlans_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes a RolloutPlan.", - "canonical": true, - "file": "rollout_plans.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RolloutPlans.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "rollout_plan", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RolloutPlansClient", - "fullName": "google.cloud.compute.v1.RolloutPlansClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.RolloutPlans.Delete", - "service": { - "shortName": "RolloutPlans", - "fullName": "google.cloud.compute.v1.RolloutPlans" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RolloutPlans_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single project-scoped RolloutPlan.", - "canonical": true, - "file": "rollout_plans.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RolloutPlans.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "rollout_plan", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.RolloutPlan", - "client": { - "shortName": "RolloutPlansClient", - "fullName": "google.cloud.compute.v1.RolloutPlansClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.RolloutPlans.Get", - "service": { - "shortName": "RolloutPlans", - "fullName": "google.cloud.compute.v1.RolloutPlans" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RolloutPlans_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a new RolloutPlan in a given project and location.", - "canonical": true, - "file": "rollout_plans.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RolloutPlans.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "rollout_plan_resource", - "type": ".google.cloud.compute.v1.RolloutPlan" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RolloutPlansClient", - "fullName": "google.cloud.compute.v1.RolloutPlansClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.RolloutPlans.Insert", - "service": { - "shortName": "RolloutPlans", - "fullName": "google.cloud.compute.v1.RolloutPlans" - } - } - } - }, - { - "regionTag": "compute_v1_generated_RolloutPlans_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Lists RolloutPlans in a given project and location.", - "canonical": true, - "file": "rollout_plans.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RolloutPlans.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.RolloutPlansListResponse", - "client": { - "shortName": "RolloutPlansClient", - "fullName": "google.cloud.compute.v1.RolloutPlansClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.RolloutPlans.List", - "service": { - "shortName": "RolloutPlans", - "fullName": "google.cloud.compute.v1.RolloutPlans" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Rollouts_Cancel_async", - "title": "AcceleratorTypes cancel Sample", - "origin": "API_DEFINITION", - "description": " Cancels a Rollout.", - "canonical": true, - "file": "rollouts.cancel.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Cancel", - "fullName": "google.cloud.compute.v1.Rollouts.Cancel", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "rollback", - "type": "TYPE_BOOL" - }, - { - "name": "rollout", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RolloutsClient", - "fullName": "google.cloud.compute.v1.RolloutsClient" - }, - "method": { - "shortName": "Cancel", - "fullName": "google.cloud.compute.v1.Rollouts.Cancel", - "service": { - "shortName": "Rollouts", - "fullName": "google.cloud.compute.v1.Rollouts" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Rollouts_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Rollout.", - "canonical": true, - "file": "rollouts.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.Rollouts.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "rollout", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RolloutsClient", - "fullName": "google.cloud.compute.v1.RolloutsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.Rollouts.Delete", - "service": { - "shortName": "Rollouts", - "fullName": "google.cloud.compute.v1.Rollouts" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Rollouts_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single project-scoped Rollout.", - "canonical": true, - "file": "rollouts.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.Rollouts.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "rollout", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Rollout", - "client": { - "shortName": "RolloutsClient", - "fullName": "google.cloud.compute.v1.RolloutsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.Rollouts.Get", - "service": { - "shortName": "Rollouts", - "fullName": "google.cloud.compute.v1.Rollouts" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Rollouts_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Lists Rollouts in a given project and location.", - "canonical": true, - "file": "rollouts.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.Rollouts.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.RolloutsListResponse", - "client": { - "shortName": "RolloutsClient", - "fullName": "google.cloud.compute.v1.RolloutsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.Rollouts.List", - "service": { - "shortName": "Rollouts", - "fullName": "google.cloud.compute.v1.Rollouts" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Routers_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of routers. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "routers.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.Routers.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1.RouterAggregatedList", - "client": { - "shortName": "RoutersClient", - "fullName": "google.cloud.compute.v1.RoutersClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.Routers.AggregatedList", - "service": { - "shortName": "Routers", - "fullName": "google.cloud.compute.v1.Routers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Routers_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified Router resource.", - "canonical": true, - "file": "routers.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.Routers.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "router", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RoutersClient", - "fullName": "google.cloud.compute.v1.RoutersClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.Routers.Delete", - "service": { - "shortName": "Routers", - "fullName": "google.cloud.compute.v1.Routers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Routers_DeleteRoutePolicy_async", - "title": "AcceleratorTypes deleteRoutePolicy Sample", - "origin": "API_DEFINITION", - "description": " Deletes Route Policy", - "canonical": true, - "file": "routers.delete_route_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteRoutePolicy", - "fullName": "google.cloud.compute.v1.Routers.DeleteRoutePolicy", - "async": true, - "parameters": [ - { - "name": "policy", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "router", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RoutersClient", - "fullName": "google.cloud.compute.v1.RoutersClient" - }, - "method": { - "shortName": "DeleteRoutePolicy", - "fullName": "google.cloud.compute.v1.Routers.DeleteRoutePolicy", - "service": { - "shortName": "Routers", - "fullName": "google.cloud.compute.v1.Routers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Routers_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified Router resource.", - "canonical": true, - "file": "routers.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.Routers.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "router", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Router", - "client": { - "shortName": "RoutersClient", - "fullName": "google.cloud.compute.v1.RoutersClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.Routers.Get", - "service": { - "shortName": "Routers", - "fullName": "google.cloud.compute.v1.Routers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Routers_GetNatIpInfo_async", - "title": "AcceleratorTypes getNatIpInfo Sample", - "origin": "API_DEFINITION", - "description": " Retrieves runtime NAT IP information.", - "canonical": true, - "file": "routers.get_nat_ip_info.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetNatIpInfo", - "fullName": "google.cloud.compute.v1.Routers.GetNatIpInfo", - "async": true, - "parameters": [ - { - "name": "nat_name", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "router", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.NatIpInfoResponse", - "client": { - "shortName": "RoutersClient", - "fullName": "google.cloud.compute.v1.RoutersClient" - }, - "method": { - "shortName": "GetNatIpInfo", - "fullName": "google.cloud.compute.v1.Routers.GetNatIpInfo", - "service": { - "shortName": "Routers", - "fullName": "google.cloud.compute.v1.Routers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Routers_GetNatMappingInfo_async", - "title": "AcceleratorTypes getNatMappingInfo Sample", - "origin": "API_DEFINITION", - "description": " Retrieves runtime Nat mapping information of VM endpoints.", - "canonical": true, - "file": "routers.get_nat_mapping_info.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 157, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetNatMappingInfo", - "fullName": "google.cloud.compute.v1.Routers.GetNatMappingInfo", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "nat_name", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "router", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.VmEndpointNatMappingsList", - "client": { - "shortName": "RoutersClient", - "fullName": "google.cloud.compute.v1.RoutersClient" - }, - "method": { - "shortName": "GetNatMappingInfo", - "fullName": "google.cloud.compute.v1.Routers.GetNatMappingInfo", - "service": { - "shortName": "Routers", - "fullName": "google.cloud.compute.v1.Routers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Routers_GetRoutePolicy_async", - "title": "AcceleratorTypes getRoutePolicy Sample", - "origin": "API_DEFINITION", - "description": " Returns specified Route Policy", - "canonical": true, - "file": "routers.get_route_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRoutePolicy", - "fullName": "google.cloud.compute.v1.Routers.GetRoutePolicy", - "async": true, - "parameters": [ - { - "name": "policy", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "router", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.RoutersGetRoutePolicyResponse", - "client": { - "shortName": "RoutersClient", - "fullName": "google.cloud.compute.v1.RoutersClient" - }, - "method": { - "shortName": "GetRoutePolicy", - "fullName": "google.cloud.compute.v1.Routers.GetRoutePolicy", - "service": { - "shortName": "Routers", - "fullName": "google.cloud.compute.v1.Routers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Routers_GetRouterStatus_async", - "title": "AcceleratorTypes getRouterStatus Sample", - "origin": "API_DEFINITION", - "description": " Retrieves runtime information of the specified router.", - "canonical": true, - "file": "routers.get_router_status.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRouterStatus", - "fullName": "google.cloud.compute.v1.Routers.GetRouterStatus", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "router", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.RouterStatusResponse", - "client": { - "shortName": "RoutersClient", - "fullName": "google.cloud.compute.v1.RoutersClient" - }, - "method": { - "shortName": "GetRouterStatus", - "fullName": "google.cloud.compute.v1.Routers.GetRouterStatus", - "service": { - "shortName": "Routers", - "fullName": "google.cloud.compute.v1.Routers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Routers_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a Router resource in the specified project and region using the data included in the request.", - "canonical": true, - "file": "routers.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.Routers.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "router_resource", - "type": ".google.cloud.compute.v1.Router" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RoutersClient", - "fullName": "google.cloud.compute.v1.RoutersClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.Routers.Insert", - "service": { - "shortName": "Routers", - "fullName": "google.cloud.compute.v1.Routers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Routers_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of Router resources available to the specified project.", - "canonical": true, - "file": "routers.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.Routers.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.RouterList", - "client": { - "shortName": "RoutersClient", - "fullName": "google.cloud.compute.v1.RoutersClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.Routers.List", - "service": { - "shortName": "Routers", - "fullName": "google.cloud.compute.v1.Routers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Routers_ListBgpRoutes_async", - "title": "AcceleratorTypes listBgpRoutes Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of router bgp routes available to the specified project.", - "canonical": true, - "file": "routers.list_bgp_routes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 176, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBgpRoutes", - "fullName": "google.cloud.compute.v1.Routers.ListBgpRoutes", - "async": true, - "parameters": [ - { - "name": "address_family", - "type": "TYPE_STRING" - }, - { - "name": "destination_prefix", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "peer", - "type": "TYPE_STRING" - }, - { - "name": "policy_applied", - "type": "TYPE_BOOL" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "route_type", - "type": "TYPE_STRING" - }, - { - "name": "router", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.RoutersListBgpRoutes", - "client": { - "shortName": "RoutersClient", - "fullName": "google.cloud.compute.v1.RoutersClient" - }, - "method": { - "shortName": "ListBgpRoutes", - "fullName": "google.cloud.compute.v1.Routers.ListBgpRoutes", - "service": { - "shortName": "Routers", - "fullName": "google.cloud.compute.v1.Routers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Routers_ListRoutePolicies_async", - "title": "AcceleratorTypes listRoutePolicies Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of router route policy subresources available to the specified project.", - "canonical": true, - "file": "routers.list_route_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 151, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRoutePolicies", - "fullName": "google.cloud.compute.v1.Routers.ListRoutePolicies", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "router", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.RoutersListRoutePolicies", - "client": { - "shortName": "RoutersClient", - "fullName": "google.cloud.compute.v1.RoutersClient" - }, - "method": { - "shortName": "ListRoutePolicies", - "fullName": "google.cloud.compute.v1.Routers.ListRoutePolicies", - "service": { - "shortName": "Routers", - "fullName": "google.cloud.compute.v1.Routers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Routers_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patches the specified Router resource with the data included in the request. This method supportsPATCH semantics and usesJSON merge patch format and processing rules.", - "canonical": true, - "file": "routers.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.Routers.Patch", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "router", - "type": "TYPE_STRING" - }, - { - "name": "router_resource", - "type": ".google.cloud.compute.v1.Router" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RoutersClient", - "fullName": "google.cloud.compute.v1.RoutersClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.Routers.Patch", - "service": { - "shortName": "Routers", - "fullName": "google.cloud.compute.v1.Routers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Routers_PatchRoutePolicy_async", - "title": "AcceleratorTypes patchRoutePolicy Sample", - "origin": "API_DEFINITION", - "description": " Patches Route Policy", - "canonical": true, - "file": "routers.patch_route_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PatchRoutePolicy", - "fullName": "google.cloud.compute.v1.Routers.PatchRoutePolicy", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "route_policy_resource", - "type": ".google.cloud.compute.v1.RoutePolicy" - }, - { - "name": "router", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RoutersClient", - "fullName": "google.cloud.compute.v1.RoutersClient" - }, - "method": { - "shortName": "PatchRoutePolicy", - "fullName": "google.cloud.compute.v1.Routers.PatchRoutePolicy", - "service": { - "shortName": "Routers", - "fullName": "google.cloud.compute.v1.Routers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Routers_Preview_async", - "title": "AcceleratorTypes preview Sample", - "origin": "API_DEFINITION", - "description": " Preview fields auto-generated during router create andupdate operations. Calling this method does NOT create or update the router.", - "canonical": true, - "file": "routers.preview.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Preview", - "fullName": "google.cloud.compute.v1.Routers.Preview", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "router", - "type": "TYPE_STRING" - }, - { - "name": "router_resource", - "type": ".google.cloud.compute.v1.Router" - } - ], - "resultType": ".google.cloud.compute.v1.RoutersPreviewResponse", - "client": { - "shortName": "RoutersClient", - "fullName": "google.cloud.compute.v1.RoutersClient" - }, - "method": { - "shortName": "Preview", - "fullName": "google.cloud.compute.v1.Routers.Preview", - "service": { - "shortName": "Routers", - "fullName": "google.cloud.compute.v1.Routers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Routers_Update_async", - "title": "AcceleratorTypes update Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified Router resource with the data included in the request. This method conforms toPUT semantics, which requests that the state of the target resource be created or replaced with the state defined by the representation enclosed in the request message payload.", - "canonical": true, - "file": "routers.update.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1.Routers.Update", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "router", - "type": "TYPE_STRING" - }, - { - "name": "router_resource", - "type": ".google.cloud.compute.v1.Router" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RoutersClient", - "fullName": "google.cloud.compute.v1.RoutersClient" - }, - "method": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1.Routers.Update", - "service": { - "shortName": "Routers", - "fullName": "google.cloud.compute.v1.Routers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Routers_UpdateRoutePolicy_async", - "title": "AcceleratorTypes updateRoutePolicy Sample", - "origin": "API_DEFINITION", - "description": " Updates or creates new Route Policy", - "canonical": true, - "file": "routers.update_route_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateRoutePolicy", - "fullName": "google.cloud.compute.v1.Routers.UpdateRoutePolicy", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "route_policy_resource", - "type": ".google.cloud.compute.v1.RoutePolicy" - }, - { - "name": "router", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RoutersClient", - "fullName": "google.cloud.compute.v1.RoutersClient" - }, - "method": { - "shortName": "UpdateRoutePolicy", - "fullName": "google.cloud.compute.v1.Routers.UpdateRoutePolicy", - "service": { - "shortName": "Routers", - "fullName": "google.cloud.compute.v1.Routers" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Routes_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified Route resource.", - "canonical": true, - "file": "routes.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.Routes.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "route", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RoutesClient", - "fullName": "google.cloud.compute.v1.RoutesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.Routes.Delete", - "service": { - "shortName": "Routes", - "fullName": "google.cloud.compute.v1.Routes" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Routes_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified Route resource.", - "canonical": true, - "file": "routes.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.Routes.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "route", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Route", - "client": { - "shortName": "RoutesClient", - "fullName": "google.cloud.compute.v1.RoutesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.Routes.Get", - "service": { - "shortName": "Routes", - "fullName": "google.cloud.compute.v1.Routes" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Routes_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a Route resource in the specified project using the data included in the request.", - "canonical": true, - "file": "routes.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.Routes.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "route_resource", - "type": ".google.cloud.compute.v1.Route" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "RoutesClient", - "fullName": "google.cloud.compute.v1.RoutesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.Routes.Insert", - "service": { - "shortName": "Routes", - "fullName": "google.cloud.compute.v1.Routes" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Routes_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of Route resources available to the specified project.", - "canonical": true, - "file": "routes.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.Routes.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.RouteList", - "client": { - "shortName": "RoutesClient", - "fullName": "google.cloud.compute.v1.RoutesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.Routes.List", - "service": { - "shortName": "Routes", - "fullName": "google.cloud.compute.v1.Routes" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Routes_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "routes.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.Routes.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", - "client": { - "shortName": "RoutesClient", - "fullName": "google.cloud.compute.v1.RoutesClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.Routes.TestIamPermissions", - "service": { - "shortName": "Routes", - "fullName": "google.cloud.compute.v1.Routes" - } - } - } - }, - { - "regionTag": "compute_v1_generated_SecurityPolicies_AddRule_async", - "title": "AcceleratorTypes addRule Sample", - "origin": "API_DEFINITION", - "description": " Inserts a rule into a security policy.", - "canonical": true, - "file": "security_policies.add_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddRule", - "fullName": "google.cloud.compute.v1.SecurityPolicies.AddRule", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "security_policy", - "type": "TYPE_STRING" - }, - { - "name": "security_policy_rule_resource", - "type": ".google.cloud.compute.v1.SecurityPolicyRule" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "SecurityPoliciesClient", - "fullName": "google.cloud.compute.v1.SecurityPoliciesClient" - }, - "method": { - "shortName": "AddRule", - "fullName": "google.cloud.compute.v1.SecurityPolicies.AddRule", - "service": { - "shortName": "SecurityPolicies", - "fullName": "google.cloud.compute.v1.SecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_SecurityPolicies_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of all SecurityPolicy resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "security_policies.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.SecurityPolicies.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1.SecurityPoliciesAggregatedList", - "client": { - "shortName": "SecurityPoliciesClient", - "fullName": "google.cloud.compute.v1.SecurityPoliciesClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.SecurityPolicies.AggregatedList", - "service": { - "shortName": "SecurityPolicies", - "fullName": "google.cloud.compute.v1.SecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_SecurityPolicies_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified policy.", - "canonical": true, - "file": "security_policies.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.SecurityPolicies.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "security_policy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "SecurityPoliciesClient", - "fullName": "google.cloud.compute.v1.SecurityPoliciesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.SecurityPolicies.Delete", - "service": { - "shortName": "SecurityPolicies", - "fullName": "google.cloud.compute.v1.SecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_SecurityPolicies_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " List all of the ordered rules present in a single specified policy.", - "canonical": true, - "file": "security_policies.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.SecurityPolicies.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "security_policy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.SecurityPolicy", - "client": { - "shortName": "SecurityPoliciesClient", - "fullName": "google.cloud.compute.v1.SecurityPoliciesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.SecurityPolicies.Get", - "service": { - "shortName": "SecurityPolicies", - "fullName": "google.cloud.compute.v1.SecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_SecurityPolicies_GetRule_async", - "title": "AcceleratorTypes getRule Sample", - "origin": "API_DEFINITION", - "description": " Gets a rule at the specified priority.", - "canonical": true, - "file": "security_policies.get_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRule", - "fullName": "google.cloud.compute.v1.SecurityPolicies.GetRule", - "async": true, - "parameters": [ - { - "name": "priority", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "security_policy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.SecurityPolicyRule", - "client": { - "shortName": "SecurityPoliciesClient", - "fullName": "google.cloud.compute.v1.SecurityPoliciesClient" - }, - "method": { - "shortName": "GetRule", - "fullName": "google.cloud.compute.v1.SecurityPolicies.GetRule", - "service": { - "shortName": "SecurityPolicies", - "fullName": "google.cloud.compute.v1.SecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_SecurityPolicies_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a new policy in the specified project using the data included in the request.", - "canonical": true, - "file": "security_policies.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.SecurityPolicies.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "security_policy_resource", - "type": ".google.cloud.compute.v1.SecurityPolicy" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "SecurityPoliciesClient", - "fullName": "google.cloud.compute.v1.SecurityPoliciesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.SecurityPolicies.Insert", - "service": { - "shortName": "SecurityPolicies", - "fullName": "google.cloud.compute.v1.SecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_SecurityPolicies_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " List all the policies that have been configured for the specified project.", - "canonical": true, - "file": "security_policies.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.SecurityPolicies.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.SecurityPolicyList", - "client": { - "shortName": "SecurityPoliciesClient", - "fullName": "google.cloud.compute.v1.SecurityPoliciesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.SecurityPolicies.List", - "service": { - "shortName": "SecurityPolicies", - "fullName": "google.cloud.compute.v1.SecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_SecurityPolicies_ListPreconfiguredExpressionSets_async", - "title": "AcceleratorTypes listPreconfiguredExpressionSets Sample", - "origin": "API_DEFINITION", - "description": " Gets the current list of preconfigured Web Application Firewall (WAF) expressions.", - "canonical": true, - "file": "security_policies.list_preconfigured_expression_sets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 138, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPreconfiguredExpressionSets", - "fullName": "google.cloud.compute.v1.SecurityPolicies.ListPreconfiguredExpressionSets", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.SecurityPoliciesListPreconfiguredExpressionSetsResponse", - "client": { - "shortName": "SecurityPoliciesClient", - "fullName": "google.cloud.compute.v1.SecurityPoliciesClient" - }, - "method": { - "shortName": "ListPreconfiguredExpressionSets", - "fullName": "google.cloud.compute.v1.SecurityPolicies.ListPreconfiguredExpressionSets", - "service": { - "shortName": "SecurityPolicies", - "fullName": "google.cloud.compute.v1.SecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_SecurityPolicies_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patches the specified policy with the data included in the request. To clear fields in the policy, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.", - "canonical": true, - "file": "security_policies.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.SecurityPolicies.Patch", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "security_policy", - "type": "TYPE_STRING" - }, - { - "name": "security_policy_resource", - "type": ".google.cloud.compute.v1.SecurityPolicy" - }, - { - "name": "update_mask", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "SecurityPoliciesClient", - "fullName": "google.cloud.compute.v1.SecurityPoliciesClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.SecurityPolicies.Patch", - "service": { - "shortName": "SecurityPolicies", - "fullName": "google.cloud.compute.v1.SecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_SecurityPolicies_PatchRule_async", - "title": "AcceleratorTypes patchRule Sample", - "origin": "API_DEFINITION", - "description": " Patches a rule at the specified priority. To clear fields in the rule, leave the fields empty and specify them in the updateMask.", - "canonical": true, - "file": "security_policies.patch_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PatchRule", - "fullName": "google.cloud.compute.v1.SecurityPolicies.PatchRule", - "async": true, - "parameters": [ - { - "name": "priority", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "security_policy", - "type": "TYPE_STRING" - }, - { - "name": "security_policy_rule_resource", - "type": ".google.cloud.compute.v1.SecurityPolicyRule" - }, - { - "name": "update_mask", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "SecurityPoliciesClient", - "fullName": "google.cloud.compute.v1.SecurityPoliciesClient" - }, - "method": { - "shortName": "PatchRule", - "fullName": "google.cloud.compute.v1.SecurityPolicies.PatchRule", - "service": { - "shortName": "SecurityPolicies", - "fullName": "google.cloud.compute.v1.SecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_SecurityPolicies_RemoveRule_async", - "title": "AcceleratorTypes removeRule Sample", - "origin": "API_DEFINITION", - "description": " Deletes a rule at the specified priority.", - "canonical": true, - "file": "security_policies.remove_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveRule", - "fullName": "google.cloud.compute.v1.SecurityPolicies.RemoveRule", - "async": true, - "parameters": [ - { - "name": "priority", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "security_policy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "SecurityPoliciesClient", - "fullName": "google.cloud.compute.v1.SecurityPoliciesClient" - }, - "method": { - "shortName": "RemoveRule", - "fullName": "google.cloud.compute.v1.SecurityPolicies.RemoveRule", - "service": { - "shortName": "SecurityPolicies", - "fullName": "google.cloud.compute.v1.SecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_SecurityPolicies_SetLabels_async", - "title": "AcceleratorTypes setLabels Sample", - "origin": "API_DEFINITION", - "description": " Sets the labels on a security policy. To learn more about labels, read the Labeling Resources documentation.", - "canonical": true, - "file": "security_policies.set_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1.SecurityPolicies.SetLabels", - "async": true, - "parameters": [ - { - "name": "global_set_labels_request_resource", - "type": ".google.cloud.compute.v1.GlobalSetLabelsRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "SecurityPoliciesClient", - "fullName": "google.cloud.compute.v1.SecurityPoliciesClient" - }, - "method": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1.SecurityPolicies.SetLabels", - "service": { - "shortName": "SecurityPolicies", - "fullName": "google.cloud.compute.v1.SecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_ServiceAttachments_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of all ServiceAttachment resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "service_attachments.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.ServiceAttachments.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1.ServiceAttachmentAggregatedList", - "client": { - "shortName": "ServiceAttachmentsClient", - "fullName": "google.cloud.compute.v1.ServiceAttachmentsClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.ServiceAttachments.AggregatedList", - "service": { - "shortName": "ServiceAttachments", - "fullName": "google.cloud.compute.v1.ServiceAttachments" - } - } - } - }, - { - "regionTag": "compute_v1_generated_ServiceAttachments_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified ServiceAttachment in the given scope", - "canonical": true, - "file": "service_attachments.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.ServiceAttachments.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "service_attachment", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "ServiceAttachmentsClient", - "fullName": "google.cloud.compute.v1.ServiceAttachmentsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.ServiceAttachments.Delete", - "service": { - "shortName": "ServiceAttachments", - "fullName": "google.cloud.compute.v1.ServiceAttachments" - } - } - } - }, - { - "regionTag": "compute_v1_generated_ServiceAttachments_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified ServiceAttachment resource in the given scope.", - "canonical": true, - "file": "service_attachments.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.ServiceAttachments.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "service_attachment", - "type": "TYPE_STRING" - }, - { - "name": "show_nat_ips", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.ServiceAttachment", - "client": { - "shortName": "ServiceAttachmentsClient", - "fullName": "google.cloud.compute.v1.ServiceAttachmentsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.ServiceAttachments.Get", - "service": { - "shortName": "ServiceAttachments", - "fullName": "google.cloud.compute.v1.ServiceAttachments" - } - } - } - }, - { - "regionTag": "compute_v1_generated_ServiceAttachments_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "service_attachments.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.ServiceAttachments.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "ServiceAttachmentsClient", - "fullName": "google.cloud.compute.v1.ServiceAttachmentsClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.ServiceAttachments.GetIamPolicy", - "service": { - "shortName": "ServiceAttachments", - "fullName": "google.cloud.compute.v1.ServiceAttachments" - } - } - } - }, - { - "regionTag": "compute_v1_generated_ServiceAttachments_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a ServiceAttachment in the specified project in the given scope using the parameters that are included in the request.", - "canonical": true, - "file": "service_attachments.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.ServiceAttachments.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "service_attachment_resource", - "type": ".google.cloud.compute.v1.ServiceAttachment" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "ServiceAttachmentsClient", - "fullName": "google.cloud.compute.v1.ServiceAttachmentsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.ServiceAttachments.Insert", - "service": { - "shortName": "ServiceAttachments", - "fullName": "google.cloud.compute.v1.ServiceAttachments" - } - } - } - }, - { - "regionTag": "compute_v1_generated_ServiceAttachments_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Lists the ServiceAttachments for a project in the given scope.", - "canonical": true, - "file": "service_attachments.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.ServiceAttachments.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.ServiceAttachmentList", - "client": { - "shortName": "ServiceAttachmentsClient", - "fullName": "google.cloud.compute.v1.ServiceAttachmentsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.ServiceAttachments.List", - "service": { - "shortName": "ServiceAttachments", - "fullName": "google.cloud.compute.v1.ServiceAttachments" - } - } - } - }, - { - "regionTag": "compute_v1_generated_ServiceAttachments_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patches the specified ServiceAttachment resource with the data included in the request. This method supports PATCH semantics and usesJSON merge patch format and processing rules.", - "canonical": true, - "file": "service_attachments.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.ServiceAttachments.Patch", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "service_attachment", - "type": "TYPE_STRING" - }, - { - "name": "service_attachment_resource", - "type": ".google.cloud.compute.v1.ServiceAttachment" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "ServiceAttachmentsClient", - "fullName": "google.cloud.compute.v1.ServiceAttachmentsClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.ServiceAttachments.Patch", - "service": { - "shortName": "ServiceAttachments", - "fullName": "google.cloud.compute.v1.ServiceAttachments" - } - } - } - }, - { - "regionTag": "compute_v1_generated_ServiceAttachments_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "service_attachments.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.ServiceAttachments.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_set_policy_request_resource", - "type": ".google.cloud.compute.v1.RegionSetPolicyRequest" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "ServiceAttachmentsClient", - "fullName": "google.cloud.compute.v1.ServiceAttachmentsClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.ServiceAttachments.SetIamPolicy", - "service": { - "shortName": "ServiceAttachments", - "fullName": "google.cloud.compute.v1.ServiceAttachments" - } - } - } - }, - { - "regionTag": "compute_v1_generated_ServiceAttachments_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "service_attachments.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.ServiceAttachments.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", - "client": { - "shortName": "ServiceAttachmentsClient", - "fullName": "google.cloud.compute.v1.ServiceAttachmentsClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.ServiceAttachments.TestIamPermissions", - "service": { - "shortName": "ServiceAttachments", - "fullName": "google.cloud.compute.v1.ServiceAttachments" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Snapshots_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified Snapshot resource. Keep in mind that deleting a single snapshot might not necessarily delete all the data on that snapshot. If any data on the snapshot that is marked for deletion is needed for subsequent snapshots, the data will be moved to the next corresponding snapshot. For more information, seeDeleting snapshots.", - "canonical": true, - "file": "snapshots.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.Snapshots.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "snapshot", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "SnapshotsClient", - "fullName": "google.cloud.compute.v1.SnapshotsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.Snapshots.Delete", - "service": { - "shortName": "Snapshots", - "fullName": "google.cloud.compute.v1.Snapshots" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Snapshots_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified Snapshot resource.", - "canonical": true, - "file": "snapshots.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.Snapshots.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "snapshot", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Snapshot", - "client": { - "shortName": "SnapshotsClient", - "fullName": "google.cloud.compute.v1.SnapshotsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.Snapshots.Get", - "service": { - "shortName": "Snapshots", - "fullName": "google.cloud.compute.v1.Snapshots" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Snapshots_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "snapshots.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.Snapshots.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "SnapshotsClient", - "fullName": "google.cloud.compute.v1.SnapshotsClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.Snapshots.GetIamPolicy", - "service": { - "shortName": "Snapshots", - "fullName": "google.cloud.compute.v1.Snapshots" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Snapshots_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a snapshot in the specified project using the data included in the request. For regular snapshot creation, consider using this method instead of disks.createSnapshot, as this method supports more features, such as creating snapshots in a project different from the source disk project.", - "canonical": true, - "file": "snapshots.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.Snapshots.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "snapshot_resource", - "type": ".google.cloud.compute.v1.Snapshot" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "SnapshotsClient", - "fullName": "google.cloud.compute.v1.SnapshotsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.Snapshots.Insert", - "service": { - "shortName": "Snapshots", - "fullName": "google.cloud.compute.v1.Snapshots" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Snapshots_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of Snapshot resources contained within the specified project.", - "canonical": true, - "file": "snapshots.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.Snapshots.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.SnapshotList", - "client": { - "shortName": "SnapshotsClient", - "fullName": "google.cloud.compute.v1.SnapshotsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.Snapshots.List", - "service": { - "shortName": "Snapshots", - "fullName": "google.cloud.compute.v1.Snapshots" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Snapshots_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "snapshots.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.Snapshots.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "global_set_policy_request_resource", - "type": ".google.cloud.compute.v1.GlobalSetPolicyRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "SnapshotsClient", - "fullName": "google.cloud.compute.v1.SnapshotsClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.Snapshots.SetIamPolicy", - "service": { - "shortName": "Snapshots", - "fullName": "google.cloud.compute.v1.Snapshots" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Snapshots_SetLabels_async", - "title": "AcceleratorTypes setLabels Sample", - "origin": "API_DEFINITION", - "description": " Sets the labels on a snapshot. To learn more about labels, read theLabeling Resources documentation.", - "canonical": true, - "file": "snapshots.set_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1.Snapshots.SetLabels", - "async": true, - "parameters": [ - { - "name": "global_set_labels_request_resource", - "type": ".google.cloud.compute.v1.GlobalSetLabelsRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "SnapshotsClient", - "fullName": "google.cloud.compute.v1.SnapshotsClient" - }, - "method": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1.Snapshots.SetLabels", - "service": { - "shortName": "Snapshots", - "fullName": "google.cloud.compute.v1.Snapshots" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Snapshots_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "snapshots.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.Snapshots.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", - "client": { - "shortName": "SnapshotsClient", - "fullName": "google.cloud.compute.v1.SnapshotsClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.Snapshots.TestIamPermissions", - "service": { - "shortName": "Snapshots", - "fullName": "google.cloud.compute.v1.Snapshots" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Snapshots_UpdateKmsKey_async", - "title": "AcceleratorTypes updateKmsKey Sample", - "origin": "API_DEFINITION", - "description": " Rotates the customer-managed encryption key to the latest version for the specified snapshot.", - "canonical": true, - "file": "snapshots.update_kms_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateKmsKey", - "fullName": "google.cloud.compute.v1.Snapshots.UpdateKmsKey", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "snapshot", - "type": "TYPE_STRING" - }, - { - "name": "snapshot_update_kms_key_request_resource", - "type": ".google.cloud.compute.v1.SnapshotUpdateKmsKeyRequest" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "SnapshotsClient", - "fullName": "google.cloud.compute.v1.SnapshotsClient" - }, - "method": { - "shortName": "UpdateKmsKey", - "fullName": "google.cloud.compute.v1.Snapshots.UpdateKmsKey", - "service": { - "shortName": "Snapshots", - "fullName": "google.cloud.compute.v1.Snapshots" - } - } - } - }, - { - "regionTag": "compute_v1_generated_SnapshotSettingsService_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Get snapshot settings.", - "canonical": true, - "file": "snapshot_settings_service.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.SnapshotSettingsService.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.SnapshotSettings", - "client": { - "shortName": "SnapshotSettingsServiceClient", - "fullName": "google.cloud.compute.v1.SnapshotSettingsServiceClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.SnapshotSettingsService.Get", - "service": { - "shortName": "SnapshotSettingsService", - "fullName": "google.cloud.compute.v1.SnapshotSettingsService" - } - } - } - }, - { - "regionTag": "compute_v1_generated_SnapshotSettingsService_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patch snapshot settings.", - "canonical": true, - "file": "snapshot_settings_service.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.SnapshotSettingsService.Patch", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "snapshot_settings_resource", - "type": ".google.cloud.compute.v1.SnapshotSettings" - }, - { - "name": "update_mask", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "SnapshotSettingsServiceClient", - "fullName": "google.cloud.compute.v1.SnapshotSettingsServiceClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.SnapshotSettingsService.Patch", - "service": { - "shortName": "SnapshotSettingsService", - "fullName": "google.cloud.compute.v1.SnapshotSettingsService" - } - } - } - }, - { - "regionTag": "compute_v1_generated_SslCertificates_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of all SslCertificate resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "ssl_certificates.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.SslCertificates.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1.SslCertificateAggregatedList", - "client": { - "shortName": "SslCertificatesClient", - "fullName": "google.cloud.compute.v1.SslCertificatesClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.SslCertificates.AggregatedList", - "service": { - "shortName": "SslCertificates", - "fullName": "google.cloud.compute.v1.SslCertificates" - } - } - } - }, - { - "regionTag": "compute_v1_generated_SslCertificates_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified SslCertificate resource.", - "canonical": true, - "file": "ssl_certificates.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.SslCertificates.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "ssl_certificate", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "SslCertificatesClient", - "fullName": "google.cloud.compute.v1.SslCertificatesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.SslCertificates.Delete", - "service": { - "shortName": "SslCertificates", - "fullName": "google.cloud.compute.v1.SslCertificates" - } - } - } - }, - { - "regionTag": "compute_v1_generated_SslCertificates_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified SslCertificate resource.", - "canonical": true, - "file": "ssl_certificates.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.SslCertificates.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "ssl_certificate", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.SslCertificate", - "client": { - "shortName": "SslCertificatesClient", - "fullName": "google.cloud.compute.v1.SslCertificatesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.SslCertificates.Get", - "service": { - "shortName": "SslCertificates", - "fullName": "google.cloud.compute.v1.SslCertificates" - } - } - } - }, - { - "regionTag": "compute_v1_generated_SslCertificates_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a SslCertificate resource in the specified project using the data included in the request.", - "canonical": true, - "file": "ssl_certificates.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.SslCertificates.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "ssl_certificate_resource", - "type": ".google.cloud.compute.v1.SslCertificate" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "SslCertificatesClient", - "fullName": "google.cloud.compute.v1.SslCertificatesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.SslCertificates.Insert", - "service": { - "shortName": "SslCertificates", - "fullName": "google.cloud.compute.v1.SslCertificates" - } - } - } - }, - { - "regionTag": "compute_v1_generated_SslCertificates_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of SslCertificate resources available to the specified project.", - "canonical": true, - "file": "ssl_certificates.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.SslCertificates.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.SslCertificateList", - "client": { - "shortName": "SslCertificatesClient", - "fullName": "google.cloud.compute.v1.SslCertificatesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.SslCertificates.List", - "service": { - "shortName": "SslCertificates", - "fullName": "google.cloud.compute.v1.SslCertificates" - } - } - } - }, - { - "regionTag": "compute_v1_generated_SslPolicies_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of all SslPolicy resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "ssl_policies.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.SslPolicies.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1.SslPoliciesAggregatedList", - "client": { - "shortName": "SslPoliciesClient", - "fullName": "google.cloud.compute.v1.SslPoliciesClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.SslPolicies.AggregatedList", - "service": { - "shortName": "SslPolicies", - "fullName": "google.cloud.compute.v1.SslPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_SslPolicies_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified SSL policy. The SSL policy resource can be deleted only if it is not in use by any TargetHttpsProxy or TargetSslProxy resources.", - "canonical": true, - "file": "ssl_policies.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.SslPolicies.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "ssl_policy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "SslPoliciesClient", - "fullName": "google.cloud.compute.v1.SslPoliciesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.SslPolicies.Delete", - "service": { - "shortName": "SslPolicies", - "fullName": "google.cloud.compute.v1.SslPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_SslPolicies_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Lists all of the ordered rules present in a single specified policy.", - "canonical": true, - "file": "ssl_policies.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.SslPolicies.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "ssl_policy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.SslPolicy", - "client": { - "shortName": "SslPoliciesClient", - "fullName": "google.cloud.compute.v1.SslPoliciesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.SslPolicies.Get", - "service": { - "shortName": "SslPolicies", - "fullName": "google.cloud.compute.v1.SslPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_SslPolicies_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified SSL policy resource.", - "canonical": true, - "file": "ssl_policies.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.SslPolicies.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "ssl_policy_resource", - "type": ".google.cloud.compute.v1.SslPolicy" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "SslPoliciesClient", - "fullName": "google.cloud.compute.v1.SslPoliciesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.SslPolicies.Insert", - "service": { - "shortName": "SslPolicies", - "fullName": "google.cloud.compute.v1.SslPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_SslPolicies_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Lists all the SSL policies that have been configured for the specified project.", - "canonical": true, - "file": "ssl_policies.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.SslPolicies.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.SslPoliciesList", - "client": { - "shortName": "SslPoliciesClient", - "fullName": "google.cloud.compute.v1.SslPoliciesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.SslPolicies.List", - "service": { - "shortName": "SslPolicies", - "fullName": "google.cloud.compute.v1.SslPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_SslPolicies_ListAvailableFeatures_async", - "title": "AcceleratorTypes listAvailableFeatures Sample", - "origin": "API_DEFINITION", - "description": " Lists all features that can be specified in the SSL policy when using custom profile.", - "canonical": true, - "file": "ssl_policies.list_available_features.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 138, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAvailableFeatures", - "fullName": "google.cloud.compute.v1.SslPolicies.ListAvailableFeatures", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.SslPoliciesListAvailableFeaturesResponse", - "client": { - "shortName": "SslPoliciesClient", - "fullName": "google.cloud.compute.v1.SslPoliciesClient" - }, - "method": { - "shortName": "ListAvailableFeatures", - "fullName": "google.cloud.compute.v1.SslPolicies.ListAvailableFeatures", - "service": { - "shortName": "SslPolicies", - "fullName": "google.cloud.compute.v1.SslPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_SslPolicies_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patches the specified SSL policy with the data included in the request.", - "canonical": true, - "file": "ssl_policies.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.SslPolicies.Patch", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "ssl_policy", - "type": "TYPE_STRING" - }, - { - "name": "ssl_policy_resource", - "type": ".google.cloud.compute.v1.SslPolicy" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "SslPoliciesClient", - "fullName": "google.cloud.compute.v1.SslPoliciesClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.SslPolicies.Patch", - "service": { - "shortName": "SslPolicies", - "fullName": "google.cloud.compute.v1.SslPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_StoragePools_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of storage pools. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "storage_pools.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.StoragePools.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1.StoragePoolAggregatedList", - "client": { - "shortName": "StoragePoolsClient", - "fullName": "google.cloud.compute.v1.StoragePoolsClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.StoragePools.AggregatedList", - "service": { - "shortName": "StoragePools", - "fullName": "google.cloud.compute.v1.StoragePools" - } - } - } - }, - { - "regionTag": "compute_v1_generated_StoragePools_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified storage pool. Deleting a storagePool removes its data permanently and is irreversible. However, deleting a storagePool does not delete any snapshots previously made from the storagePool. You must separately delete snapshots.", - "canonical": true, - "file": "storage_pools.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.StoragePools.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "storage_pool", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "StoragePoolsClient", - "fullName": "google.cloud.compute.v1.StoragePoolsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.StoragePools.Delete", - "service": { - "shortName": "StoragePools", - "fullName": "google.cloud.compute.v1.StoragePools" - } - } - } - }, - { - "regionTag": "compute_v1_generated_StoragePools_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns a specified storage pool. Gets a list of available storage pools by making a list() request.", - "canonical": true, - "file": "storage_pools.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.StoragePools.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "storage_pool", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.StoragePool", - "client": { - "shortName": "StoragePoolsClient", - "fullName": "google.cloud.compute.v1.StoragePoolsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.StoragePools.Get", - "service": { - "shortName": "StoragePools", - "fullName": "google.cloud.compute.v1.StoragePools" - } - } - } - }, - { - "regionTag": "compute_v1_generated_StoragePools_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "storage_pools.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.StoragePools.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "StoragePoolsClient", - "fullName": "google.cloud.compute.v1.StoragePoolsClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.StoragePools.GetIamPolicy", - "service": { - "shortName": "StoragePools", - "fullName": "google.cloud.compute.v1.StoragePools" - } - } - } - }, - { - "regionTag": "compute_v1_generated_StoragePools_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a storage pool in the specified project using the data in the request.", - "canonical": true, - "file": "storage_pools.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.StoragePools.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "storage_pool_resource", - "type": ".google.cloud.compute.v1.StoragePool" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "StoragePoolsClient", - "fullName": "google.cloud.compute.v1.StoragePoolsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.StoragePools.Insert", - "service": { - "shortName": "StoragePools", - "fullName": "google.cloud.compute.v1.StoragePools" - } - } - } - }, - { - "regionTag": "compute_v1_generated_StoragePools_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of storage pools contained within the specified zone.", - "canonical": true, - "file": "storage_pools.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.StoragePools.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.StoragePoolList", - "client": { - "shortName": "StoragePoolsClient", - "fullName": "google.cloud.compute.v1.StoragePoolsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.StoragePools.List", - "service": { - "shortName": "StoragePools", - "fullName": "google.cloud.compute.v1.StoragePools" - } - } - } - }, - { - "regionTag": "compute_v1_generated_StoragePools_ListDisks_async", - "title": "AcceleratorTypes listDisks Sample", - "origin": "API_DEFINITION", - "description": " Lists the disks in a specified storage pool.", - "canonical": true, - "file": "storage_pools.list_disks.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 150, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDisks", - "fullName": "google.cloud.compute.v1.StoragePools.ListDisks", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "storage_pool", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.StoragePoolListDisks", - "client": { - "shortName": "StoragePoolsClient", - "fullName": "google.cloud.compute.v1.StoragePoolsClient" - }, - "method": { - "shortName": "ListDisks", - "fullName": "google.cloud.compute.v1.StoragePools.ListDisks", - "service": { - "shortName": "StoragePools", - "fullName": "google.cloud.compute.v1.StoragePools" - } - } - } - }, - { - "regionTag": "compute_v1_generated_StoragePools_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "storage_pools.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.StoragePools.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "zone_set_policy_request_resource", - "type": ".google.cloud.compute.v1.ZoneSetPolicyRequest" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "StoragePoolsClient", - "fullName": "google.cloud.compute.v1.StoragePoolsClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.StoragePools.SetIamPolicy", - "service": { - "shortName": "StoragePools", - "fullName": "google.cloud.compute.v1.StoragePools" - } - } - } - }, - { - "regionTag": "compute_v1_generated_StoragePools_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "storage_pools.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.StoragePools.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1.TestPermissionsRequest" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", - "client": { - "shortName": "StoragePoolsClient", - "fullName": "google.cloud.compute.v1.StoragePoolsClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.StoragePools.TestIamPermissions", - "service": { - "shortName": "StoragePools", - "fullName": "google.cloud.compute.v1.StoragePools" - } - } - } - }, - { - "regionTag": "compute_v1_generated_StoragePools_Update_async", - "title": "AcceleratorTypes update Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified storagePool with the data included in the request. The update is performed only on selected fields included as part of update-mask. Only the following fields can be modified: pool_provisioned_capacity_gb, pool_provisioned_iops and pool_provisioned_throughput.", - "canonical": true, - "file": "storage_pools.update.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1.StoragePools.Update", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "storage_pool", - "type": "TYPE_STRING" - }, - { - "name": "storage_pool_resource", - "type": ".google.cloud.compute.v1.StoragePool" - }, - { - "name": "update_mask", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "StoragePoolsClient", - "fullName": "google.cloud.compute.v1.StoragePoolsClient" - }, - "method": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1.StoragePools.Update", - "service": { - "shortName": "StoragePools", - "fullName": "google.cloud.compute.v1.StoragePools" - } - } - } - }, - { - "regionTag": "compute_v1_generated_StoragePoolTypes_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of storage pool types. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "storage_pool_types.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.StoragePoolTypes.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1.StoragePoolTypeAggregatedList", - "client": { - "shortName": "StoragePoolTypesClient", - "fullName": "google.cloud.compute.v1.StoragePoolTypesClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.StoragePoolTypes.AggregatedList", - "service": { - "shortName": "StoragePoolTypes", - "fullName": "google.cloud.compute.v1.StoragePoolTypes" - } - } - } - }, - { - "regionTag": "compute_v1_generated_StoragePoolTypes_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified storage pool type.", - "canonical": true, - "file": "storage_pool_types.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.StoragePoolTypes.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "storage_pool_type", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.StoragePoolType", - "client": { - "shortName": "StoragePoolTypesClient", - "fullName": "google.cloud.compute.v1.StoragePoolTypesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.StoragePoolTypes.Get", - "service": { - "shortName": "StoragePoolTypes", - "fullName": "google.cloud.compute.v1.StoragePoolTypes" - } - } - } - }, - { - "regionTag": "compute_v1_generated_StoragePoolTypes_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of storage pool types available to the specified project.", - "canonical": true, - "file": "storage_pool_types.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.StoragePoolTypes.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.StoragePoolTypeList", - "client": { - "shortName": "StoragePoolTypesClient", - "fullName": "google.cloud.compute.v1.StoragePoolTypesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.StoragePoolTypes.List", - "service": { - "shortName": "StoragePoolTypes", - "fullName": "google.cloud.compute.v1.StoragePoolTypes" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Subnetworks_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of subnetworks. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "subnetworks.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 163, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.Subnetworks.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - }, - { - "name": "views", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.SubnetworkAggregatedList", - "client": { - "shortName": "SubnetworksClient", - "fullName": "google.cloud.compute.v1.SubnetworksClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.Subnetworks.AggregatedList", - "service": { - "shortName": "Subnetworks", - "fullName": "google.cloud.compute.v1.Subnetworks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Subnetworks_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified subnetwork.", - "canonical": true, - "file": "subnetworks.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.Subnetworks.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "subnetwork", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "SubnetworksClient", - "fullName": "google.cloud.compute.v1.SubnetworksClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.Subnetworks.Delete", - "service": { - "shortName": "Subnetworks", - "fullName": "google.cloud.compute.v1.Subnetworks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Subnetworks_ExpandIpCidrRange_async", - "title": "AcceleratorTypes expandIpCidrRange Sample", - "origin": "API_DEFINITION", - "description": " Expands the IP CIDR range of the subnetwork to a specified value.", - "canonical": true, - "file": "subnetworks.expand_ip_cidr_range.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExpandIpCidrRange", - "fullName": "google.cloud.compute.v1.Subnetworks.ExpandIpCidrRange", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "subnetwork", - "type": "TYPE_STRING" - }, - { - "name": "subnetworks_expand_ip_cidr_range_request_resource", - "type": ".google.cloud.compute.v1.SubnetworksExpandIpCidrRangeRequest" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "SubnetworksClient", - "fullName": "google.cloud.compute.v1.SubnetworksClient" - }, - "method": { - "shortName": "ExpandIpCidrRange", - "fullName": "google.cloud.compute.v1.Subnetworks.ExpandIpCidrRange", - "service": { - "shortName": "Subnetworks", - "fullName": "google.cloud.compute.v1.Subnetworks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Subnetworks_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified subnetwork.", - "canonical": true, - "file": "subnetworks.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.Subnetworks.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "subnetwork", - "type": "TYPE_STRING" - }, - { - "name": "views", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Subnetwork", - "client": { - "shortName": "SubnetworksClient", - "fullName": "google.cloud.compute.v1.SubnetworksClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.Subnetworks.Get", - "service": { - "shortName": "Subnetworks", - "fullName": "google.cloud.compute.v1.Subnetworks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Subnetworks_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "subnetworks.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.Subnetworks.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "SubnetworksClient", - "fullName": "google.cloud.compute.v1.SubnetworksClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1.Subnetworks.GetIamPolicy", - "service": { - "shortName": "Subnetworks", - "fullName": "google.cloud.compute.v1.Subnetworks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Subnetworks_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a subnetwork in the specified project using the data included in the request.", - "canonical": true, - "file": "subnetworks.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.Subnetworks.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "subnetwork_resource", - "type": ".google.cloud.compute.v1.Subnetwork" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "SubnetworksClient", - "fullName": "google.cloud.compute.v1.SubnetworksClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.Subnetworks.Insert", - "service": { - "shortName": "Subnetworks", - "fullName": "google.cloud.compute.v1.Subnetworks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Subnetworks_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of subnetworks available to the specified project.", - "canonical": true, - "file": "subnetworks.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 153, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.Subnetworks.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "views", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.SubnetworkList", - "client": { - "shortName": "SubnetworksClient", - "fullName": "google.cloud.compute.v1.SubnetworksClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.Subnetworks.List", - "service": { - "shortName": "Subnetworks", - "fullName": "google.cloud.compute.v1.Subnetworks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Subnetworks_ListUsable_async", - "title": "AcceleratorTypes listUsable Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of all usable subnetworks in the project.", - "canonical": true, - "file": "subnetworks.list_usable.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 146, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListUsable", - "fullName": "google.cloud.compute.v1.Subnetworks.ListUsable", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.UsableSubnetworksAggregatedList", - "client": { - "shortName": "SubnetworksClient", - "fullName": "google.cloud.compute.v1.SubnetworksClient" - }, - "method": { - "shortName": "ListUsable", - "fullName": "google.cloud.compute.v1.Subnetworks.ListUsable", - "service": { - "shortName": "Subnetworks", - "fullName": "google.cloud.compute.v1.Subnetworks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Subnetworks_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patches the specified subnetwork with the data included in the request. Only certain fields can be updated with a patch request as indicated in the field descriptions. You must specify the current fingerprint of the subnetwork resource being patched.", - "canonical": true, - "file": "subnetworks.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 94, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.Subnetworks.Patch", - "async": true, - "parameters": [ - { - "name": "drain_timeout_seconds", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "subnetwork", - "type": "TYPE_STRING" - }, - { - "name": "subnetwork_resource", - "type": ".google.cloud.compute.v1.Subnetwork" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "SubnetworksClient", - "fullName": "google.cloud.compute.v1.SubnetworksClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.Subnetworks.Patch", - "service": { - "shortName": "Subnetworks", - "fullName": "google.cloud.compute.v1.Subnetworks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Subnetworks_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "subnetworks.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.Subnetworks.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_set_policy_request_resource", - "type": ".google.cloud.compute.v1.RegionSetPolicyRequest" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Policy", - "client": { - "shortName": "SubnetworksClient", - "fullName": "google.cloud.compute.v1.SubnetworksClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1.Subnetworks.SetIamPolicy", - "service": { - "shortName": "Subnetworks", - "fullName": "google.cloud.compute.v1.Subnetworks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Subnetworks_SetPrivateIpGoogleAccess_async", - "title": "AcceleratorTypes setPrivateIpGoogleAccess Sample", - "origin": "API_DEFINITION", - "description": " Set whether VMs in this subnet can access Google services without assigning external IP addresses through Private Google Access.", - "canonical": true, - "file": "subnetworks.set_private_ip_google_access.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetPrivateIpGoogleAccess", - "fullName": "google.cloud.compute.v1.Subnetworks.SetPrivateIpGoogleAccess", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "subnetwork", - "type": "TYPE_STRING" - }, - { - "name": "subnetworks_set_private_ip_google_access_request_resource", - "type": ".google.cloud.compute.v1.SubnetworksSetPrivateIpGoogleAccessRequest" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "SubnetworksClient", - "fullName": "google.cloud.compute.v1.SubnetworksClient" - }, - "method": { - "shortName": "SetPrivateIpGoogleAccess", - "fullName": "google.cloud.compute.v1.Subnetworks.SetPrivateIpGoogleAccess", - "service": { - "shortName": "Subnetworks", - "fullName": "google.cloud.compute.v1.Subnetworks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Subnetworks_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "subnetworks.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.Subnetworks.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", - "client": { - "shortName": "SubnetworksClient", - "fullName": "google.cloud.compute.v1.SubnetworksClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.Subnetworks.TestIamPermissions", - "service": { - "shortName": "Subnetworks", - "fullName": "google.cloud.compute.v1.Subnetworks" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetGrpcProxies_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified TargetGrpcProxy in the given scope", - "canonical": true, - "file": "target_grpc_proxies.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.TargetGrpcProxies.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_grpc_proxy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "TargetGrpcProxiesClient", - "fullName": "google.cloud.compute.v1.TargetGrpcProxiesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.TargetGrpcProxies.Delete", - "service": { - "shortName": "TargetGrpcProxies", - "fullName": "google.cloud.compute.v1.TargetGrpcProxies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetGrpcProxies_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified TargetGrpcProxy resource in the given scope.", - "canonical": true, - "file": "target_grpc_proxies.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.TargetGrpcProxies.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "target_grpc_proxy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.TargetGrpcProxy", - "client": { - "shortName": "TargetGrpcProxiesClient", - "fullName": "google.cloud.compute.v1.TargetGrpcProxiesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.TargetGrpcProxies.Get", - "service": { - "shortName": "TargetGrpcProxies", - "fullName": "google.cloud.compute.v1.TargetGrpcProxies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetGrpcProxies_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a TargetGrpcProxy in the specified project in the given scope using the parameters that are included in the request.", - "canonical": true, - "file": "target_grpc_proxies.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.TargetGrpcProxies.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_grpc_proxy_resource", - "type": ".google.cloud.compute.v1.TargetGrpcProxy" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "TargetGrpcProxiesClient", - "fullName": "google.cloud.compute.v1.TargetGrpcProxiesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.TargetGrpcProxies.Insert", - "service": { - "shortName": "TargetGrpcProxies", - "fullName": "google.cloud.compute.v1.TargetGrpcProxies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetGrpcProxies_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Lists the TargetGrpcProxies for a project in the given scope.", - "canonical": true, - "file": "target_grpc_proxies.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.TargetGrpcProxies.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.TargetGrpcProxyList", - "client": { - "shortName": "TargetGrpcProxiesClient", - "fullName": "google.cloud.compute.v1.TargetGrpcProxiesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.TargetGrpcProxies.List", - "service": { - "shortName": "TargetGrpcProxies", - "fullName": "google.cloud.compute.v1.TargetGrpcProxies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetGrpcProxies_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patches the specified TargetGrpcProxy resource with the data included in the request. This method supports PATCH semantics and usesJSON merge patch format and processing rules.", - "canonical": true, - "file": "target_grpc_proxies.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.TargetGrpcProxies.Patch", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_grpc_proxy", - "type": "TYPE_STRING" - }, - { - "name": "target_grpc_proxy_resource", - "type": ".google.cloud.compute.v1.TargetGrpcProxy" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "TargetGrpcProxiesClient", - "fullName": "google.cloud.compute.v1.TargetGrpcProxiesClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.TargetGrpcProxies.Patch", - "service": { - "shortName": "TargetGrpcProxies", - "fullName": "google.cloud.compute.v1.TargetGrpcProxies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetHttpProxies_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of all TargetHttpProxy resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "target_http_proxies.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.TargetHttpProxies.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1.TargetHttpProxyAggregatedList", - "client": { - "shortName": "TargetHttpProxiesClient", - "fullName": "google.cloud.compute.v1.TargetHttpProxiesClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.TargetHttpProxies.AggregatedList", - "service": { - "shortName": "TargetHttpProxies", - "fullName": "google.cloud.compute.v1.TargetHttpProxies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetHttpProxies_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified TargetHttpProxy resource.", - "canonical": true, - "file": "target_http_proxies.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.TargetHttpProxies.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_http_proxy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "TargetHttpProxiesClient", - "fullName": "google.cloud.compute.v1.TargetHttpProxiesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.TargetHttpProxies.Delete", - "service": { - "shortName": "TargetHttpProxies", - "fullName": "google.cloud.compute.v1.TargetHttpProxies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetHttpProxies_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified TargetHttpProxy resource.", - "canonical": true, - "file": "target_http_proxies.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.TargetHttpProxies.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "target_http_proxy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.TargetHttpProxy", - "client": { - "shortName": "TargetHttpProxiesClient", - "fullName": "google.cloud.compute.v1.TargetHttpProxiesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.TargetHttpProxies.Get", - "service": { - "shortName": "TargetHttpProxies", - "fullName": "google.cloud.compute.v1.TargetHttpProxies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetHttpProxies_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a TargetHttpProxy resource in the specified project using the data included in the request.", - "canonical": true, - "file": "target_http_proxies.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.TargetHttpProxies.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_http_proxy_resource", - "type": ".google.cloud.compute.v1.TargetHttpProxy" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "TargetHttpProxiesClient", - "fullName": "google.cloud.compute.v1.TargetHttpProxiesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.TargetHttpProxies.Insert", - "service": { - "shortName": "TargetHttpProxies", - "fullName": "google.cloud.compute.v1.TargetHttpProxies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetHttpProxies_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of TargetHttpProxy resources available to the specified project.", - "canonical": true, - "file": "target_http_proxies.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.TargetHttpProxies.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.TargetHttpProxyList", - "client": { - "shortName": "TargetHttpProxiesClient", - "fullName": "google.cloud.compute.v1.TargetHttpProxiesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.TargetHttpProxies.List", - "service": { - "shortName": "TargetHttpProxies", - "fullName": "google.cloud.compute.v1.TargetHttpProxies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetHttpProxies_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patches the specified TargetHttpProxy resource with the data included in the request. This method supports PATCH semantics and usesJSON merge patch format and processing rules.", - "canonical": true, - "file": "target_http_proxies.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.TargetHttpProxies.Patch", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_http_proxy", - "type": "TYPE_STRING" - }, - { - "name": "target_http_proxy_resource", - "type": ".google.cloud.compute.v1.TargetHttpProxy" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "TargetHttpProxiesClient", - "fullName": "google.cloud.compute.v1.TargetHttpProxiesClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.TargetHttpProxies.Patch", - "service": { - "shortName": "TargetHttpProxies", - "fullName": "google.cloud.compute.v1.TargetHttpProxies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetHttpProxies_SetUrlMap_async", - "title": "AcceleratorTypes setUrlMap Sample", - "origin": "API_DEFINITION", - "description": " Changes the URL map for TargetHttpProxy.", - "canonical": true, - "file": "target_http_proxies.set_url_map.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetUrlMap", - "fullName": "google.cloud.compute.v1.TargetHttpProxies.SetUrlMap", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_http_proxy", - "type": "TYPE_STRING" - }, - { - "name": "url_map_reference_resource", - "type": ".google.cloud.compute.v1.UrlMapReference" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "TargetHttpProxiesClient", - "fullName": "google.cloud.compute.v1.TargetHttpProxiesClient" - }, - "method": { - "shortName": "SetUrlMap", - "fullName": "google.cloud.compute.v1.TargetHttpProxies.SetUrlMap", - "service": { - "shortName": "TargetHttpProxies", - "fullName": "google.cloud.compute.v1.TargetHttpProxies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetHttpsProxies_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of all TargetHttpsProxy resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "target_https_proxies.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.TargetHttpsProxies.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1.TargetHttpsProxyAggregatedList", - "client": { - "shortName": "TargetHttpsProxiesClient", - "fullName": "google.cloud.compute.v1.TargetHttpsProxiesClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.TargetHttpsProxies.AggregatedList", - "service": { - "shortName": "TargetHttpsProxies", - "fullName": "google.cloud.compute.v1.TargetHttpsProxies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetHttpsProxies_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified TargetHttpsProxy resource.", - "canonical": true, - "file": "target_https_proxies.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.TargetHttpsProxies.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_https_proxy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "TargetHttpsProxiesClient", - "fullName": "google.cloud.compute.v1.TargetHttpsProxiesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.TargetHttpsProxies.Delete", - "service": { - "shortName": "TargetHttpsProxies", - "fullName": "google.cloud.compute.v1.TargetHttpsProxies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetHttpsProxies_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified TargetHttpsProxy resource.", - "canonical": true, - "file": "target_https_proxies.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.TargetHttpsProxies.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "target_https_proxy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.TargetHttpsProxy", - "client": { - "shortName": "TargetHttpsProxiesClient", - "fullName": "google.cloud.compute.v1.TargetHttpsProxiesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.TargetHttpsProxies.Get", - "service": { - "shortName": "TargetHttpsProxies", - "fullName": "google.cloud.compute.v1.TargetHttpsProxies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetHttpsProxies_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a TargetHttpsProxy resource in the specified project using the data included in the request.", - "canonical": true, - "file": "target_https_proxies.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.TargetHttpsProxies.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_https_proxy_resource", - "type": ".google.cloud.compute.v1.TargetHttpsProxy" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "TargetHttpsProxiesClient", - "fullName": "google.cloud.compute.v1.TargetHttpsProxiesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.TargetHttpsProxies.Insert", - "service": { - "shortName": "TargetHttpsProxies", - "fullName": "google.cloud.compute.v1.TargetHttpsProxies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetHttpsProxies_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of TargetHttpsProxy resources available to the specified project.", - "canonical": true, - "file": "target_https_proxies.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.TargetHttpsProxies.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.TargetHttpsProxyList", - "client": { - "shortName": "TargetHttpsProxiesClient", - "fullName": "google.cloud.compute.v1.TargetHttpsProxiesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.TargetHttpsProxies.List", - "service": { - "shortName": "TargetHttpsProxies", - "fullName": "google.cloud.compute.v1.TargetHttpsProxies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetHttpsProxies_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patches the specified TargetHttpsProxy resource with the data included in the request. This method supports PATCH semantics and usesJSON merge patch format and processing rules.", - "canonical": true, - "file": "target_https_proxies.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.TargetHttpsProxies.Patch", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_https_proxy", - "type": "TYPE_STRING" - }, - { - "name": "target_https_proxy_resource", - "type": ".google.cloud.compute.v1.TargetHttpsProxy" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "TargetHttpsProxiesClient", - "fullName": "google.cloud.compute.v1.TargetHttpsProxiesClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.TargetHttpsProxies.Patch", - "service": { - "shortName": "TargetHttpsProxies", - "fullName": "google.cloud.compute.v1.TargetHttpsProxies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetHttpsProxies_SetCertificateMap_async", - "title": "AcceleratorTypes setCertificateMap Sample", - "origin": "API_DEFINITION", - "description": " Changes the Certificate Map for TargetHttpsProxy.", - "canonical": true, - "file": "target_https_proxies.set_certificate_map.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetCertificateMap", - "fullName": "google.cloud.compute.v1.TargetHttpsProxies.SetCertificateMap", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_https_proxies_set_certificate_map_request_resource", - "type": ".google.cloud.compute.v1.TargetHttpsProxiesSetCertificateMapRequest" - }, - { - "name": "target_https_proxy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "TargetHttpsProxiesClient", - "fullName": "google.cloud.compute.v1.TargetHttpsProxiesClient" - }, - "method": { - "shortName": "SetCertificateMap", - "fullName": "google.cloud.compute.v1.TargetHttpsProxies.SetCertificateMap", - "service": { - "shortName": "TargetHttpsProxies", - "fullName": "google.cloud.compute.v1.TargetHttpsProxies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetHttpsProxies_SetQuicOverride_async", - "title": "AcceleratorTypes setQuicOverride Sample", - "origin": "API_DEFINITION", - "description": " Sets the QUIC override policy for TargetHttpsProxy.", - "canonical": true, - "file": "target_https_proxies.set_quic_override.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetQuicOverride", - "fullName": "google.cloud.compute.v1.TargetHttpsProxies.SetQuicOverride", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_https_proxies_set_quic_override_request_resource", - "type": ".google.cloud.compute.v1.TargetHttpsProxiesSetQuicOverrideRequest" - }, - { - "name": "target_https_proxy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "TargetHttpsProxiesClient", - "fullName": "google.cloud.compute.v1.TargetHttpsProxiesClient" - }, - "method": { - "shortName": "SetQuicOverride", - "fullName": "google.cloud.compute.v1.TargetHttpsProxies.SetQuicOverride", - "service": { - "shortName": "TargetHttpsProxies", - "fullName": "google.cloud.compute.v1.TargetHttpsProxies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetHttpsProxies_SetSslCertificates_async", - "title": "AcceleratorTypes setSslCertificates Sample", - "origin": "API_DEFINITION", - "description": " Replaces SslCertificates for TargetHttpsProxy.", - "canonical": true, - "file": "target_https_proxies.set_ssl_certificates.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetSslCertificates", - "fullName": "google.cloud.compute.v1.TargetHttpsProxies.SetSslCertificates", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_https_proxies_set_ssl_certificates_request_resource", - "type": ".google.cloud.compute.v1.TargetHttpsProxiesSetSslCertificatesRequest" - }, - { - "name": "target_https_proxy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "TargetHttpsProxiesClient", - "fullName": "google.cloud.compute.v1.TargetHttpsProxiesClient" - }, - "method": { - "shortName": "SetSslCertificates", - "fullName": "google.cloud.compute.v1.TargetHttpsProxies.SetSslCertificates", - "service": { - "shortName": "TargetHttpsProxies", - "fullName": "google.cloud.compute.v1.TargetHttpsProxies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetHttpsProxies_SetSslPolicy_async", - "title": "AcceleratorTypes setSslPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the SSL policy for TargetHttpsProxy. The SSL policy specifies the server-side support for SSL features. This affects connections between clients and the HTTPS proxy load balancer. They do not affect the connection between the load balancer and the backends.", - "canonical": true, - "file": "target_https_proxies.set_ssl_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetSslPolicy", - "fullName": "google.cloud.compute.v1.TargetHttpsProxies.SetSslPolicy", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "ssl_policy_reference_resource", - "type": ".google.cloud.compute.v1.SslPolicyReference" - }, - { - "name": "target_https_proxy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "TargetHttpsProxiesClient", - "fullName": "google.cloud.compute.v1.TargetHttpsProxiesClient" - }, - "method": { - "shortName": "SetSslPolicy", - "fullName": "google.cloud.compute.v1.TargetHttpsProxies.SetSslPolicy", - "service": { - "shortName": "TargetHttpsProxies", - "fullName": "google.cloud.compute.v1.TargetHttpsProxies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetHttpsProxies_SetUrlMap_async", - "title": "AcceleratorTypes setUrlMap Sample", - "origin": "API_DEFINITION", - "description": " Changes the URL map for TargetHttpsProxy.", - "canonical": true, - "file": "target_https_proxies.set_url_map.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetUrlMap", - "fullName": "google.cloud.compute.v1.TargetHttpsProxies.SetUrlMap", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_https_proxy", - "type": "TYPE_STRING" - }, - { - "name": "url_map_reference_resource", - "type": ".google.cloud.compute.v1.UrlMapReference" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "TargetHttpsProxiesClient", - "fullName": "google.cloud.compute.v1.TargetHttpsProxiesClient" - }, - "method": { - "shortName": "SetUrlMap", - "fullName": "google.cloud.compute.v1.TargetHttpsProxies.SetUrlMap", - "service": { - "shortName": "TargetHttpsProxies", - "fullName": "google.cloud.compute.v1.TargetHttpsProxies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetInstances_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of target instances. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "target_instances.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.TargetInstances.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1.TargetInstanceAggregatedList", - "client": { - "shortName": "TargetInstancesClient", - "fullName": "google.cloud.compute.v1.TargetInstancesClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.TargetInstances.AggregatedList", - "service": { - "shortName": "TargetInstances", - "fullName": "google.cloud.compute.v1.TargetInstances" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetInstances_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified TargetInstance resource.", - "canonical": true, - "file": "target_instances.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.TargetInstances.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_instance", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "TargetInstancesClient", - "fullName": "google.cloud.compute.v1.TargetInstancesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.TargetInstances.Delete", - "service": { - "shortName": "TargetInstances", - "fullName": "google.cloud.compute.v1.TargetInstances" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetInstances_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified TargetInstance resource.", - "canonical": true, - "file": "target_instances.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.TargetInstances.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "target_instance", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.TargetInstance", - "client": { - "shortName": "TargetInstancesClient", - "fullName": "google.cloud.compute.v1.TargetInstancesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.TargetInstances.Get", - "service": { - "shortName": "TargetInstances", - "fullName": "google.cloud.compute.v1.TargetInstances" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetInstances_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a TargetInstance resource in the specified project and zone using the data included in the request.", - "canonical": true, - "file": "target_instances.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.TargetInstances.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_instance_resource", - "type": ".google.cloud.compute.v1.TargetInstance" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "TargetInstancesClient", - "fullName": "google.cloud.compute.v1.TargetInstancesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.TargetInstances.Insert", - "service": { - "shortName": "TargetInstances", - "fullName": "google.cloud.compute.v1.TargetInstances" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetInstances_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of TargetInstance resources available to the specified project and zone.", - "canonical": true, - "file": "target_instances.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.TargetInstances.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.TargetInstanceList", - "client": { - "shortName": "TargetInstancesClient", - "fullName": "google.cloud.compute.v1.TargetInstancesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.TargetInstances.List", - "service": { - "shortName": "TargetInstances", - "fullName": "google.cloud.compute.v1.TargetInstances" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetInstances_SetSecurityPolicy_async", - "title": "AcceleratorTypes setSecurityPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the Google Cloud Armor security policy for the specified target instance. For more information, seeGoogle Cloud Armor Overview", - "canonical": true, - "file": "target_instances.set_security_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetSecurityPolicy", - "fullName": "google.cloud.compute.v1.TargetInstances.SetSecurityPolicy", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "security_policy_reference_resource", - "type": ".google.cloud.compute.v1.SecurityPolicyReference" - }, - { - "name": "target_instance", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "TargetInstancesClient", - "fullName": "google.cloud.compute.v1.TargetInstancesClient" - }, - "method": { - "shortName": "SetSecurityPolicy", - "fullName": "google.cloud.compute.v1.TargetInstances.SetSecurityPolicy", - "service": { - "shortName": "TargetInstances", - "fullName": "google.cloud.compute.v1.TargetInstances" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetInstances_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "target_instances.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.TargetInstances.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1.TestPermissionsRequest" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", - "client": { - "shortName": "TargetInstancesClient", - "fullName": "google.cloud.compute.v1.TargetInstancesClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.TargetInstances.TestIamPermissions", - "service": { - "shortName": "TargetInstances", - "fullName": "google.cloud.compute.v1.TargetInstances" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetPools_AddHealthCheck_async", - "title": "AcceleratorTypes addHealthCheck Sample", - "origin": "API_DEFINITION", - "description": " Adds health check URLs to a target pool.", - "canonical": true, - "file": "target_pools.add_health_check.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddHealthCheck", - "fullName": "google.cloud.compute.v1.TargetPools.AddHealthCheck", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_pool", - "type": "TYPE_STRING" - }, - { - "name": "target_pools_add_health_check_request_resource", - "type": ".google.cloud.compute.v1.TargetPoolsAddHealthCheckRequest" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "TargetPoolsClient", - "fullName": "google.cloud.compute.v1.TargetPoolsClient" - }, - "method": { - "shortName": "AddHealthCheck", - "fullName": "google.cloud.compute.v1.TargetPools.AddHealthCheck", - "service": { - "shortName": "TargetPools", - "fullName": "google.cloud.compute.v1.TargetPools" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetPools_AddInstance_async", - "title": "AcceleratorTypes addInstance Sample", - "origin": "API_DEFINITION", - "description": " Adds an instance to a target pool.", - "canonical": true, - "file": "target_pools.add_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddInstance", - "fullName": "google.cloud.compute.v1.TargetPools.AddInstance", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_pool", - "type": "TYPE_STRING" - }, - { - "name": "target_pools_add_instance_request_resource", - "type": ".google.cloud.compute.v1.TargetPoolsAddInstanceRequest" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "TargetPoolsClient", - "fullName": "google.cloud.compute.v1.TargetPoolsClient" - }, - "method": { - "shortName": "AddInstance", - "fullName": "google.cloud.compute.v1.TargetPools.AddInstance", - "service": { - "shortName": "TargetPools", - "fullName": "google.cloud.compute.v1.TargetPools" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetPools_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of target pools. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "target_pools.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.TargetPools.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1.TargetPoolAggregatedList", - "client": { - "shortName": "TargetPoolsClient", - "fullName": "google.cloud.compute.v1.TargetPoolsClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.TargetPools.AggregatedList", - "service": { - "shortName": "TargetPools", - "fullName": "google.cloud.compute.v1.TargetPools" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetPools_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified target pool.", - "canonical": true, - "file": "target_pools.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.TargetPools.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_pool", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "TargetPoolsClient", - "fullName": "google.cloud.compute.v1.TargetPoolsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.TargetPools.Delete", - "service": { - "shortName": "TargetPools", - "fullName": "google.cloud.compute.v1.TargetPools" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetPools_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified target pool.", - "canonical": true, - "file": "target_pools.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.TargetPools.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "target_pool", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.TargetPool", - "client": { - "shortName": "TargetPoolsClient", - "fullName": "google.cloud.compute.v1.TargetPoolsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.TargetPools.Get", - "service": { - "shortName": "TargetPools", - "fullName": "google.cloud.compute.v1.TargetPools" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetPools_GetHealth_async", - "title": "AcceleratorTypes getHealth Sample", - "origin": "API_DEFINITION", - "description": " Gets the most recent health check results for each IP for the instance that is referenced by the given target pool.", - "canonical": true, - "file": "target_pools.get_health.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetHealth", - "fullName": "google.cloud.compute.v1.TargetPools.GetHealth", - "async": true, - "parameters": [ - { - "name": "instance_reference_resource", - "type": ".google.cloud.compute.v1.InstanceReference" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "target_pool", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.TargetPoolInstanceHealth", - "client": { - "shortName": "TargetPoolsClient", - "fullName": "google.cloud.compute.v1.TargetPoolsClient" - }, - "method": { - "shortName": "GetHealth", - "fullName": "google.cloud.compute.v1.TargetPools.GetHealth", - "service": { - "shortName": "TargetPools", - "fullName": "google.cloud.compute.v1.TargetPools" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetPools_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a target pool in the specified project and region using the data included in the request.", - "canonical": true, - "file": "target_pools.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.TargetPools.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_pool_resource", - "type": ".google.cloud.compute.v1.TargetPool" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "TargetPoolsClient", - "fullName": "google.cloud.compute.v1.TargetPoolsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.TargetPools.Insert", - "service": { - "shortName": "TargetPools", - "fullName": "google.cloud.compute.v1.TargetPools" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetPools_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of target pools available to the specified project and region.", - "canonical": true, - "file": "target_pools.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.TargetPools.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.TargetPoolList", - "client": { - "shortName": "TargetPoolsClient", - "fullName": "google.cloud.compute.v1.TargetPoolsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.TargetPools.List", - "service": { - "shortName": "TargetPools", - "fullName": "google.cloud.compute.v1.TargetPools" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetPools_RemoveHealthCheck_async", - "title": "AcceleratorTypes removeHealthCheck Sample", - "origin": "API_DEFINITION", - "description": " Removes health check URL from a target pool.", - "canonical": true, - "file": "target_pools.remove_health_check.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveHealthCheck", - "fullName": "google.cloud.compute.v1.TargetPools.RemoveHealthCheck", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_pool", - "type": "TYPE_STRING" - }, - { - "name": "target_pools_remove_health_check_request_resource", - "type": ".google.cloud.compute.v1.TargetPoolsRemoveHealthCheckRequest" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "TargetPoolsClient", - "fullName": "google.cloud.compute.v1.TargetPoolsClient" - }, - "method": { - "shortName": "RemoveHealthCheck", - "fullName": "google.cloud.compute.v1.TargetPools.RemoveHealthCheck", - "service": { - "shortName": "TargetPools", - "fullName": "google.cloud.compute.v1.TargetPools" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetPools_RemoveInstance_async", - "title": "AcceleratorTypes removeInstance Sample", - "origin": "API_DEFINITION", - "description": " Removes instance URL from a target pool.", - "canonical": true, - "file": "target_pools.remove_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveInstance", - "fullName": "google.cloud.compute.v1.TargetPools.RemoveInstance", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_pool", - "type": "TYPE_STRING" - }, - { - "name": "target_pools_remove_instance_request_resource", - "type": ".google.cloud.compute.v1.TargetPoolsRemoveInstanceRequest" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "TargetPoolsClient", - "fullName": "google.cloud.compute.v1.TargetPoolsClient" - }, - "method": { - "shortName": "RemoveInstance", - "fullName": "google.cloud.compute.v1.TargetPools.RemoveInstance", - "service": { - "shortName": "TargetPools", - "fullName": "google.cloud.compute.v1.TargetPools" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetPools_SetBackup_async", - "title": "AcceleratorTypes setBackup Sample", - "origin": "API_DEFINITION", - "description": " Changes a backup target pool's configurations.", - "canonical": true, - "file": "target_pools.set_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetBackup", - "fullName": "google.cloud.compute.v1.TargetPools.SetBackup", - "async": true, - "parameters": [ - { - "name": "failover_ratio", - "type": "TYPE_FLOAT" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_pool", - "type": "TYPE_STRING" - }, - { - "name": "target_reference_resource", - "type": ".google.cloud.compute.v1.TargetReference" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "TargetPoolsClient", - "fullName": "google.cloud.compute.v1.TargetPoolsClient" - }, - "method": { - "shortName": "SetBackup", - "fullName": "google.cloud.compute.v1.TargetPools.SetBackup", - "service": { - "shortName": "TargetPools", - "fullName": "google.cloud.compute.v1.TargetPools" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetPools_SetSecurityPolicy_async", - "title": "AcceleratorTypes setSecurityPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the Google Cloud Armor security policy for the specified target pool. For more information, seeGoogle Cloud Armor Overview", - "canonical": true, - "file": "target_pools.set_security_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetSecurityPolicy", - "fullName": "google.cloud.compute.v1.TargetPools.SetSecurityPolicy", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "security_policy_reference_resource", - "type": ".google.cloud.compute.v1.SecurityPolicyReference" - }, - { - "name": "target_pool", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "TargetPoolsClient", - "fullName": "google.cloud.compute.v1.TargetPoolsClient" - }, - "method": { - "shortName": "SetSecurityPolicy", - "fullName": "google.cloud.compute.v1.TargetPools.SetSecurityPolicy", - "service": { - "shortName": "TargetPools", - "fullName": "google.cloud.compute.v1.TargetPools" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetPools_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "target_pools.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.TargetPools.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", - "client": { - "shortName": "TargetPoolsClient", - "fullName": "google.cloud.compute.v1.TargetPoolsClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.TargetPools.TestIamPermissions", - "service": { - "shortName": "TargetPools", - "fullName": "google.cloud.compute.v1.TargetPools" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetSslProxies_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified TargetSslProxy resource.", - "canonical": true, - "file": "target_ssl_proxies.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.TargetSslProxies.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_ssl_proxy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "TargetSslProxiesClient", - "fullName": "google.cloud.compute.v1.TargetSslProxiesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.TargetSslProxies.Delete", - "service": { - "shortName": "TargetSslProxies", - "fullName": "google.cloud.compute.v1.TargetSslProxies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetSslProxies_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified TargetSslProxy resource.", - "canonical": true, - "file": "target_ssl_proxies.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.TargetSslProxies.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "target_ssl_proxy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.TargetSslProxy", - "client": { - "shortName": "TargetSslProxiesClient", - "fullName": "google.cloud.compute.v1.TargetSslProxiesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.TargetSslProxies.Get", - "service": { - "shortName": "TargetSslProxies", - "fullName": "google.cloud.compute.v1.TargetSslProxies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetSslProxies_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a TargetSslProxy resource in the specified project using the data included in the request.", - "canonical": true, - "file": "target_ssl_proxies.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.TargetSslProxies.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_ssl_proxy_resource", - "type": ".google.cloud.compute.v1.TargetSslProxy" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "TargetSslProxiesClient", - "fullName": "google.cloud.compute.v1.TargetSslProxiesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.TargetSslProxies.Insert", - "service": { - "shortName": "TargetSslProxies", - "fullName": "google.cloud.compute.v1.TargetSslProxies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetSslProxies_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of TargetSslProxy resources available to the specified project.", - "canonical": true, - "file": "target_ssl_proxies.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.TargetSslProxies.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.TargetSslProxyList", - "client": { - "shortName": "TargetSslProxiesClient", - "fullName": "google.cloud.compute.v1.TargetSslProxiesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.TargetSslProxies.List", - "service": { - "shortName": "TargetSslProxies", - "fullName": "google.cloud.compute.v1.TargetSslProxies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetSslProxies_SetBackendService_async", - "title": "AcceleratorTypes setBackendService Sample", - "origin": "API_DEFINITION", - "description": " Changes the BackendService for TargetSslProxy.", - "canonical": true, - "file": "target_ssl_proxies.set_backend_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetBackendService", - "fullName": "google.cloud.compute.v1.TargetSslProxies.SetBackendService", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_ssl_proxies_set_backend_service_request_resource", - "type": ".google.cloud.compute.v1.TargetSslProxiesSetBackendServiceRequest" - }, - { - "name": "target_ssl_proxy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "TargetSslProxiesClient", - "fullName": "google.cloud.compute.v1.TargetSslProxiesClient" - }, - "method": { - "shortName": "SetBackendService", - "fullName": "google.cloud.compute.v1.TargetSslProxies.SetBackendService", - "service": { - "shortName": "TargetSslProxies", - "fullName": "google.cloud.compute.v1.TargetSslProxies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetSslProxies_SetCertificateMap_async", - "title": "AcceleratorTypes setCertificateMap Sample", - "origin": "API_DEFINITION", - "description": " Changes the Certificate Map for TargetSslProxy.", - "canonical": true, - "file": "target_ssl_proxies.set_certificate_map.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetCertificateMap", - "fullName": "google.cloud.compute.v1.TargetSslProxies.SetCertificateMap", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_ssl_proxies_set_certificate_map_request_resource", - "type": ".google.cloud.compute.v1.TargetSslProxiesSetCertificateMapRequest" - }, - { - "name": "target_ssl_proxy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "TargetSslProxiesClient", - "fullName": "google.cloud.compute.v1.TargetSslProxiesClient" - }, - "method": { - "shortName": "SetCertificateMap", - "fullName": "google.cloud.compute.v1.TargetSslProxies.SetCertificateMap", - "service": { - "shortName": "TargetSslProxies", - "fullName": "google.cloud.compute.v1.TargetSslProxies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetSslProxies_SetProxyHeader_async", - "title": "AcceleratorTypes setProxyHeader Sample", - "origin": "API_DEFINITION", - "description": " Changes the ProxyHeaderType for TargetSslProxy.", - "canonical": true, - "file": "target_ssl_proxies.set_proxy_header.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetProxyHeader", - "fullName": "google.cloud.compute.v1.TargetSslProxies.SetProxyHeader", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_ssl_proxies_set_proxy_header_request_resource", - "type": ".google.cloud.compute.v1.TargetSslProxiesSetProxyHeaderRequest" - }, - { - "name": "target_ssl_proxy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "TargetSslProxiesClient", - "fullName": "google.cloud.compute.v1.TargetSslProxiesClient" - }, - "method": { - "shortName": "SetProxyHeader", - "fullName": "google.cloud.compute.v1.TargetSslProxies.SetProxyHeader", - "service": { - "shortName": "TargetSslProxies", - "fullName": "google.cloud.compute.v1.TargetSslProxies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetSslProxies_SetSslCertificates_async", - "title": "AcceleratorTypes setSslCertificates Sample", - "origin": "API_DEFINITION", - "description": " Changes SslCertificates for TargetSslProxy.", - "canonical": true, - "file": "target_ssl_proxies.set_ssl_certificates.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetSslCertificates", - "fullName": "google.cloud.compute.v1.TargetSslProxies.SetSslCertificates", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_ssl_proxies_set_ssl_certificates_request_resource", - "type": ".google.cloud.compute.v1.TargetSslProxiesSetSslCertificatesRequest" - }, - { - "name": "target_ssl_proxy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "TargetSslProxiesClient", - "fullName": "google.cloud.compute.v1.TargetSslProxiesClient" - }, - "method": { - "shortName": "SetSslCertificates", - "fullName": "google.cloud.compute.v1.TargetSslProxies.SetSslCertificates", - "service": { - "shortName": "TargetSslProxies", - "fullName": "google.cloud.compute.v1.TargetSslProxies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetSslProxies_SetSslPolicy_async", - "title": "AcceleratorTypes setSslPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the SSL policy for TargetSslProxy. The SSL policy specifies the server-side support for SSL features. This affects connections between clients and the load balancer. They do not affect the connection between the load balancer and the backends.", - "canonical": true, - "file": "target_ssl_proxies.set_ssl_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetSslPolicy", - "fullName": "google.cloud.compute.v1.TargetSslProxies.SetSslPolicy", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "ssl_policy_reference_resource", - "type": ".google.cloud.compute.v1.SslPolicyReference" - }, - { - "name": "target_ssl_proxy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "TargetSslProxiesClient", - "fullName": "google.cloud.compute.v1.TargetSslProxiesClient" - }, - "method": { - "shortName": "SetSslPolicy", - "fullName": "google.cloud.compute.v1.TargetSslProxies.SetSslPolicy", - "service": { - "shortName": "TargetSslProxies", - "fullName": "google.cloud.compute.v1.TargetSslProxies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetSslProxies_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "target_ssl_proxies.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.TargetSslProxies.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", - "client": { - "shortName": "TargetSslProxiesClient", - "fullName": "google.cloud.compute.v1.TargetSslProxiesClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.TargetSslProxies.TestIamPermissions", - "service": { - "shortName": "TargetSslProxies", - "fullName": "google.cloud.compute.v1.TargetSslProxies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetTcpProxies_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of all TargetTcpProxy resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "target_tcp_proxies.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.TargetTcpProxies.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1.TargetTcpProxyAggregatedList", - "client": { - "shortName": "TargetTcpProxiesClient", - "fullName": "google.cloud.compute.v1.TargetTcpProxiesClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.TargetTcpProxies.AggregatedList", - "service": { - "shortName": "TargetTcpProxies", - "fullName": "google.cloud.compute.v1.TargetTcpProxies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetTcpProxies_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified TargetTcpProxy resource.", - "canonical": true, - "file": "target_tcp_proxies.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.TargetTcpProxies.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_tcp_proxy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "TargetTcpProxiesClient", - "fullName": "google.cloud.compute.v1.TargetTcpProxiesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.TargetTcpProxies.Delete", - "service": { - "shortName": "TargetTcpProxies", - "fullName": "google.cloud.compute.v1.TargetTcpProxies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetTcpProxies_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified TargetTcpProxy resource.", - "canonical": true, - "file": "target_tcp_proxies.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.TargetTcpProxies.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "target_tcp_proxy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.TargetTcpProxy", - "client": { - "shortName": "TargetTcpProxiesClient", - "fullName": "google.cloud.compute.v1.TargetTcpProxiesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.TargetTcpProxies.Get", - "service": { - "shortName": "TargetTcpProxies", - "fullName": "google.cloud.compute.v1.TargetTcpProxies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetTcpProxies_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a TargetTcpProxy resource in the specified project using the data included in the request.", - "canonical": true, - "file": "target_tcp_proxies.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.TargetTcpProxies.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_tcp_proxy_resource", - "type": ".google.cloud.compute.v1.TargetTcpProxy" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "TargetTcpProxiesClient", - "fullName": "google.cloud.compute.v1.TargetTcpProxiesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.TargetTcpProxies.Insert", - "service": { - "shortName": "TargetTcpProxies", - "fullName": "google.cloud.compute.v1.TargetTcpProxies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetTcpProxies_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of TargetTcpProxy resources available to the specified project.", - "canonical": true, - "file": "target_tcp_proxies.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.TargetTcpProxies.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.TargetTcpProxyList", - "client": { - "shortName": "TargetTcpProxiesClient", - "fullName": "google.cloud.compute.v1.TargetTcpProxiesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.TargetTcpProxies.List", - "service": { - "shortName": "TargetTcpProxies", - "fullName": "google.cloud.compute.v1.TargetTcpProxies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetTcpProxies_SetBackendService_async", - "title": "AcceleratorTypes setBackendService Sample", - "origin": "API_DEFINITION", - "description": " Changes the BackendService for TargetTcpProxy.", - "canonical": true, - "file": "target_tcp_proxies.set_backend_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetBackendService", - "fullName": "google.cloud.compute.v1.TargetTcpProxies.SetBackendService", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_tcp_proxies_set_backend_service_request_resource", - "type": ".google.cloud.compute.v1.TargetTcpProxiesSetBackendServiceRequest" - }, - { - "name": "target_tcp_proxy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "TargetTcpProxiesClient", - "fullName": "google.cloud.compute.v1.TargetTcpProxiesClient" - }, - "method": { - "shortName": "SetBackendService", - "fullName": "google.cloud.compute.v1.TargetTcpProxies.SetBackendService", - "service": { - "shortName": "TargetTcpProxies", - "fullName": "google.cloud.compute.v1.TargetTcpProxies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetTcpProxies_SetProxyHeader_async", - "title": "AcceleratorTypes setProxyHeader Sample", - "origin": "API_DEFINITION", - "description": " Changes the ProxyHeaderType for TargetTcpProxy.", - "canonical": true, - "file": "target_tcp_proxies.set_proxy_header.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetProxyHeader", - "fullName": "google.cloud.compute.v1.TargetTcpProxies.SetProxyHeader", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_tcp_proxies_set_proxy_header_request_resource", - "type": ".google.cloud.compute.v1.TargetTcpProxiesSetProxyHeaderRequest" - }, - { - "name": "target_tcp_proxy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "TargetTcpProxiesClient", - "fullName": "google.cloud.compute.v1.TargetTcpProxiesClient" - }, - "method": { - "shortName": "SetProxyHeader", - "fullName": "google.cloud.compute.v1.TargetTcpProxies.SetProxyHeader", - "service": { - "shortName": "TargetTcpProxies", - "fullName": "google.cloud.compute.v1.TargetTcpProxies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetTcpProxies_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "target_tcp_proxies.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.TargetTcpProxies.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", - "client": { - "shortName": "TargetTcpProxiesClient", - "fullName": "google.cloud.compute.v1.TargetTcpProxiesClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.TargetTcpProxies.TestIamPermissions", - "service": { - "shortName": "TargetTcpProxies", - "fullName": "google.cloud.compute.v1.TargetTcpProxies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetVpnGateways_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of target VPN gateways. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "target_vpn_gateways.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.TargetVpnGateways.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1.TargetVpnGatewayAggregatedList", - "client": { - "shortName": "TargetVpnGatewaysClient", - "fullName": "google.cloud.compute.v1.TargetVpnGatewaysClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.TargetVpnGateways.AggregatedList", - "service": { - "shortName": "TargetVpnGateways", - "fullName": "google.cloud.compute.v1.TargetVpnGateways" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetVpnGateways_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified target VPN gateway.", - "canonical": true, - "file": "target_vpn_gateways.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.TargetVpnGateways.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_vpn_gateway", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "TargetVpnGatewaysClient", - "fullName": "google.cloud.compute.v1.TargetVpnGatewaysClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.TargetVpnGateways.Delete", - "service": { - "shortName": "TargetVpnGateways", - "fullName": "google.cloud.compute.v1.TargetVpnGateways" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetVpnGateways_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified target VPN gateway.", - "canonical": true, - "file": "target_vpn_gateways.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.TargetVpnGateways.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "target_vpn_gateway", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.TargetVpnGateway", - "client": { - "shortName": "TargetVpnGatewaysClient", - "fullName": "google.cloud.compute.v1.TargetVpnGatewaysClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.TargetVpnGateways.Get", - "service": { - "shortName": "TargetVpnGateways", - "fullName": "google.cloud.compute.v1.TargetVpnGateways" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetVpnGateways_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a target VPN gateway in the specified project and region using the data included in the request.", - "canonical": true, - "file": "target_vpn_gateways.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.TargetVpnGateways.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_vpn_gateway_resource", - "type": ".google.cloud.compute.v1.TargetVpnGateway" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "TargetVpnGatewaysClient", - "fullName": "google.cloud.compute.v1.TargetVpnGatewaysClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.TargetVpnGateways.Insert", - "service": { - "shortName": "TargetVpnGateways", - "fullName": "google.cloud.compute.v1.TargetVpnGateways" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetVpnGateways_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of target VPN gateways available to the specified project and region.", - "canonical": true, - "file": "target_vpn_gateways.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.TargetVpnGateways.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.TargetVpnGatewayList", - "client": { - "shortName": "TargetVpnGatewaysClient", - "fullName": "google.cloud.compute.v1.TargetVpnGatewaysClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.TargetVpnGateways.List", - "service": { - "shortName": "TargetVpnGateways", - "fullName": "google.cloud.compute.v1.TargetVpnGateways" - } - } - } - }, - { - "regionTag": "compute_v1_generated_TargetVpnGateways_SetLabels_async", - "title": "AcceleratorTypes setLabels Sample", - "origin": "API_DEFINITION", - "description": " Sets the labels on a TargetVpnGateway. To learn more about labels, read theLabeling Resources documentation.", - "canonical": true, - "file": "target_vpn_gateways.set_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1.TargetVpnGateways.SetLabels", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_set_labels_request_resource", - "type": ".google.cloud.compute.v1.RegionSetLabelsRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "TargetVpnGatewaysClient", - "fullName": "google.cloud.compute.v1.TargetVpnGatewaysClient" - }, - "method": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1.TargetVpnGateways.SetLabels", - "service": { - "shortName": "TargetVpnGateways", - "fullName": "google.cloud.compute.v1.TargetVpnGateways" - } - } - } - }, - { - "regionTag": "compute_v1_generated_UrlMaps_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of all UrlMap resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "url_maps.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.UrlMaps.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1.UrlMapsAggregatedList", - "client": { - "shortName": "UrlMapsClient", - "fullName": "google.cloud.compute.v1.UrlMapsClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.UrlMaps.AggregatedList", - "service": { - "shortName": "UrlMaps", - "fullName": "google.cloud.compute.v1.UrlMaps" - } - } - } - }, - { - "regionTag": "compute_v1_generated_UrlMaps_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified UrlMap resource.", - "canonical": true, - "file": "url_maps.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.UrlMaps.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "url_map", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "UrlMapsClient", - "fullName": "google.cloud.compute.v1.UrlMapsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.UrlMaps.Delete", - "service": { - "shortName": "UrlMaps", - "fullName": "google.cloud.compute.v1.UrlMaps" - } - } - } - }, - { - "regionTag": "compute_v1_generated_UrlMaps_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified UrlMap resource.", - "canonical": true, - "file": "url_maps.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.UrlMaps.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "url_map", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.UrlMap", - "client": { - "shortName": "UrlMapsClient", - "fullName": "google.cloud.compute.v1.UrlMapsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.UrlMaps.Get", - "service": { - "shortName": "UrlMaps", - "fullName": "google.cloud.compute.v1.UrlMaps" - } - } - } - }, - { - "regionTag": "compute_v1_generated_UrlMaps_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a UrlMap resource in the specified project using the data included in the request.", - "canonical": true, - "file": "url_maps.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.UrlMaps.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "url_map_resource", - "type": ".google.cloud.compute.v1.UrlMap" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "UrlMapsClient", - "fullName": "google.cloud.compute.v1.UrlMapsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.UrlMaps.Insert", - "service": { - "shortName": "UrlMaps", - "fullName": "google.cloud.compute.v1.UrlMaps" - } - } - } - }, - { - "regionTag": "compute_v1_generated_UrlMaps_InvalidateCache_async", - "title": "AcceleratorTypes invalidateCache Sample", - "origin": "API_DEFINITION", - "description": " Initiates a cache invalidation operation, invalidating the specified path, scoped to the specified UrlMap. For more information, see [Invalidating cached content](/cdn/docs/invalidating-cached-content).", - "canonical": true, - "file": "url_maps.invalidate_cache.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "InvalidateCache", - "fullName": "google.cloud.compute.v1.UrlMaps.InvalidateCache", - "async": true, - "parameters": [ - { - "name": "cache_invalidation_rule_resource", - "type": ".google.cloud.compute.v1.CacheInvalidationRule" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "url_map", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "UrlMapsClient", - "fullName": "google.cloud.compute.v1.UrlMapsClient" - }, - "method": { - "shortName": "InvalidateCache", - "fullName": "google.cloud.compute.v1.UrlMaps.InvalidateCache", - "service": { - "shortName": "UrlMaps", - "fullName": "google.cloud.compute.v1.UrlMaps" - } - } - } - }, - { - "regionTag": "compute_v1_generated_UrlMaps_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of UrlMap resources available to the specified project.", - "canonical": true, - "file": "url_maps.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.UrlMaps.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.UrlMapList", - "client": { - "shortName": "UrlMapsClient", - "fullName": "google.cloud.compute.v1.UrlMapsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.UrlMaps.List", - "service": { - "shortName": "UrlMaps", - "fullName": "google.cloud.compute.v1.UrlMaps" - } - } - } - }, - { - "regionTag": "compute_v1_generated_UrlMaps_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patches the specified UrlMap resource with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.", - "canonical": true, - "file": "url_maps.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.UrlMaps.Patch", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "url_map", - "type": "TYPE_STRING" - }, - { - "name": "url_map_resource", - "type": ".google.cloud.compute.v1.UrlMap" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "UrlMapsClient", - "fullName": "google.cloud.compute.v1.UrlMapsClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.UrlMaps.Patch", - "service": { - "shortName": "UrlMaps", - "fullName": "google.cloud.compute.v1.UrlMaps" - } - } - } - }, - { - "regionTag": "compute_v1_generated_UrlMaps_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "url_maps.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.UrlMaps.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", - "client": { - "shortName": "UrlMapsClient", - "fullName": "google.cloud.compute.v1.UrlMapsClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.UrlMaps.TestIamPermissions", - "service": { - "shortName": "UrlMaps", - "fullName": "google.cloud.compute.v1.UrlMaps" - } - } - } - }, - { - "regionTag": "compute_v1_generated_UrlMaps_Update_async", - "title": "AcceleratorTypes update Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified UrlMap resource with the data included in the request.", - "canonical": true, - "file": "url_maps.update.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1.UrlMaps.Update", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "url_map", - "type": "TYPE_STRING" - }, - { - "name": "url_map_resource", - "type": ".google.cloud.compute.v1.UrlMap" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "UrlMapsClient", - "fullName": "google.cloud.compute.v1.UrlMapsClient" - }, - "method": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1.UrlMaps.Update", - "service": { - "shortName": "UrlMaps", - "fullName": "google.cloud.compute.v1.UrlMaps" - } - } - } - }, - { - "regionTag": "compute_v1_generated_UrlMaps_Validate_async", - "title": "AcceleratorTypes validate Sample", - "origin": "API_DEFINITION", - "description": " Runs static validation for the UrlMap. In particular, the tests of the provided UrlMap will be run. Calling this method does NOT create the UrlMap.", - "canonical": true, - "file": "url_maps.validate.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Validate", - "fullName": "google.cloud.compute.v1.UrlMaps.Validate", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "url_map", - "type": "TYPE_STRING" - }, - { - "name": "url_maps_validate_request_resource", - "type": ".google.cloud.compute.v1.UrlMapsValidateRequest" - } - ], - "resultType": ".google.cloud.compute.v1.UrlMapsValidateResponse", - "client": { - "shortName": "UrlMapsClient", - "fullName": "google.cloud.compute.v1.UrlMapsClient" - }, - "method": { - "shortName": "Validate", - "fullName": "google.cloud.compute.v1.UrlMaps.Validate", - "service": { - "shortName": "UrlMaps", - "fullName": "google.cloud.compute.v1.UrlMaps" - } - } - } - }, - { - "regionTag": "compute_v1_generated_VpnGateways_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of VPN gateways. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "vpn_gateways.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.VpnGateways.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1.VpnGatewayAggregatedList", - "client": { - "shortName": "VpnGatewaysClient", - "fullName": "google.cloud.compute.v1.VpnGatewaysClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.VpnGateways.AggregatedList", - "service": { - "shortName": "VpnGateways", - "fullName": "google.cloud.compute.v1.VpnGateways" - } - } - } - }, - { - "regionTag": "compute_v1_generated_VpnGateways_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified VPN gateway.", - "canonical": true, - "file": "vpn_gateways.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.VpnGateways.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "vpn_gateway", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "VpnGatewaysClient", - "fullName": "google.cloud.compute.v1.VpnGatewaysClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.VpnGateways.Delete", - "service": { - "shortName": "VpnGateways", - "fullName": "google.cloud.compute.v1.VpnGateways" - } - } - } - }, - { - "regionTag": "compute_v1_generated_VpnGateways_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified VPN gateway.", - "canonical": true, - "file": "vpn_gateways.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.VpnGateways.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "vpn_gateway", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.VpnGateway", - "client": { - "shortName": "VpnGatewaysClient", - "fullName": "google.cloud.compute.v1.VpnGatewaysClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.VpnGateways.Get", - "service": { - "shortName": "VpnGateways", - "fullName": "google.cloud.compute.v1.VpnGateways" - } - } - } - }, - { - "regionTag": "compute_v1_generated_VpnGateways_GetStatus_async", - "title": "AcceleratorTypes getStatus Sample", - "origin": "API_DEFINITION", - "description": " Returns the status for the specified VPN gateway.", - "canonical": true, - "file": "vpn_gateways.get_status.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetStatus", - "fullName": "google.cloud.compute.v1.VpnGateways.GetStatus", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "vpn_gateway", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.VpnGatewaysGetStatusResponse", - "client": { - "shortName": "VpnGatewaysClient", - "fullName": "google.cloud.compute.v1.VpnGatewaysClient" - }, - "method": { - "shortName": "GetStatus", - "fullName": "google.cloud.compute.v1.VpnGateways.GetStatus", - "service": { - "shortName": "VpnGateways", - "fullName": "google.cloud.compute.v1.VpnGateways" - } - } - } - }, - { - "regionTag": "compute_v1_generated_VpnGateways_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a VPN gateway in the specified project and region using the data included in the request.", - "canonical": true, - "file": "vpn_gateways.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.VpnGateways.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "vpn_gateway_resource", - "type": ".google.cloud.compute.v1.VpnGateway" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "VpnGatewaysClient", - "fullName": "google.cloud.compute.v1.VpnGatewaysClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.VpnGateways.Insert", - "service": { - "shortName": "VpnGateways", - "fullName": "google.cloud.compute.v1.VpnGateways" - } - } - } - }, - { - "regionTag": "compute_v1_generated_VpnGateways_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of VPN gateways available to the specified project and region.", - "canonical": true, - "file": "vpn_gateways.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.VpnGateways.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.VpnGatewayList", - "client": { - "shortName": "VpnGatewaysClient", - "fullName": "google.cloud.compute.v1.VpnGatewaysClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.VpnGateways.List", - "service": { - "shortName": "VpnGateways", - "fullName": "google.cloud.compute.v1.VpnGateways" - } - } - } - }, - { - "regionTag": "compute_v1_generated_VpnGateways_SetLabels_async", - "title": "AcceleratorTypes setLabels Sample", - "origin": "API_DEFINITION", - "description": " Sets the labels on a VpnGateway. To learn more about labels, read theLabeling Resources documentation.", - "canonical": true, - "file": "vpn_gateways.set_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1.VpnGateways.SetLabels", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_set_labels_request_resource", - "type": ".google.cloud.compute.v1.RegionSetLabelsRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "VpnGatewaysClient", - "fullName": "google.cloud.compute.v1.VpnGatewaysClient" - }, - "method": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1.VpnGateways.SetLabels", - "service": { - "shortName": "VpnGateways", - "fullName": "google.cloud.compute.v1.VpnGateways" - } - } - } - }, - { - "regionTag": "compute_v1_generated_VpnGateways_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "vpn_gateways.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.VpnGateways.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1.TestPermissionsResponse", - "client": { - "shortName": "VpnGatewaysClient", - "fullName": "google.cloud.compute.v1.VpnGatewaysClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1.VpnGateways.TestIamPermissions", - "service": { - "shortName": "VpnGateways", - "fullName": "google.cloud.compute.v1.VpnGateways" - } - } - } - }, - { - "regionTag": "compute_v1_generated_VpnTunnels_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of VPN tunnels. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "vpn_tunnels.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.VpnTunnels.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1.VpnTunnelAggregatedList", - "client": { - "shortName": "VpnTunnelsClient", - "fullName": "google.cloud.compute.v1.VpnTunnelsClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1.VpnTunnels.AggregatedList", - "service": { - "shortName": "VpnTunnels", - "fullName": "google.cloud.compute.v1.VpnTunnels" - } - } - } - }, - { - "regionTag": "compute_v1_generated_VpnTunnels_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified VpnTunnel resource.", - "canonical": true, - "file": "vpn_tunnels.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.VpnTunnels.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "vpn_tunnel", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "VpnTunnelsClient", - "fullName": "google.cloud.compute.v1.VpnTunnelsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.VpnTunnels.Delete", - "service": { - "shortName": "VpnTunnels", - "fullName": "google.cloud.compute.v1.VpnTunnels" - } - } - } - }, - { - "regionTag": "compute_v1_generated_VpnTunnels_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified VpnTunnel resource.", - "canonical": true, - "file": "vpn_tunnels.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.VpnTunnels.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "vpn_tunnel", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.VpnTunnel", - "client": { - "shortName": "VpnTunnelsClient", - "fullName": "google.cloud.compute.v1.VpnTunnelsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.VpnTunnels.Get", - "service": { - "shortName": "VpnTunnels", - "fullName": "google.cloud.compute.v1.VpnTunnels" - } - } - } - }, - { - "regionTag": "compute_v1_generated_VpnTunnels_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a VpnTunnel resource in the specified project and region using the data included in the request.", - "canonical": true, - "file": "vpn_tunnels.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.VpnTunnels.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "vpn_tunnel_resource", - "type": ".google.cloud.compute.v1.VpnTunnel" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "VpnTunnelsClient", - "fullName": "google.cloud.compute.v1.VpnTunnelsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.VpnTunnels.Insert", - "service": { - "shortName": "VpnTunnels", - "fullName": "google.cloud.compute.v1.VpnTunnels" - } - } - } - }, - { - "regionTag": "compute_v1_generated_VpnTunnels_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of VpnTunnel resources contained in the specified project and region.", - "canonical": true, - "file": "vpn_tunnels.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.VpnTunnels.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.VpnTunnelList", - "client": { - "shortName": "VpnTunnelsClient", - "fullName": "google.cloud.compute.v1.VpnTunnelsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.VpnTunnels.List", - "service": { - "shortName": "VpnTunnels", - "fullName": "google.cloud.compute.v1.VpnTunnels" - } - } - } - }, - { - "regionTag": "compute_v1_generated_VpnTunnels_SetLabels_async", - "title": "AcceleratorTypes setLabels Sample", - "origin": "API_DEFINITION", - "description": " Sets the labels on a VpnTunnel. To learn more about labels, read theLabeling Resources documentation.", - "canonical": true, - "file": "vpn_tunnels.set_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1.VpnTunnels.SetLabels", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_set_labels_request_resource", - "type": ".google.cloud.compute.v1.RegionSetLabelsRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "VpnTunnelsClient", - "fullName": "google.cloud.compute.v1.VpnTunnelsClient" - }, - "method": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1.VpnTunnels.SetLabels", - "service": { - "shortName": "VpnTunnels", - "fullName": "google.cloud.compute.v1.VpnTunnels" - } - } - } - }, - { - "regionTag": "compute_v1_generated_WireGroups_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified wire group in the given scope.", - "canonical": true, - "file": "wire_groups.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.WireGroups.Delete", - "async": true, - "parameters": [ - { - "name": "cross_site_network", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "wire_group", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "WireGroupsClient", - "fullName": "google.cloud.compute.v1.WireGroupsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.WireGroups.Delete", - "service": { - "shortName": "WireGroups", - "fullName": "google.cloud.compute.v1.WireGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_WireGroups_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Gets the specified wire group resource in the given scope.", - "canonical": true, - "file": "wire_groups.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.WireGroups.Get", - "async": true, - "parameters": [ - { - "name": "cross_site_network", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "wire_group", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.WireGroup", - "client": { - "shortName": "WireGroupsClient", - "fullName": "google.cloud.compute.v1.WireGroupsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.WireGroups.Get", - "service": { - "shortName": "WireGroups", - "fullName": "google.cloud.compute.v1.WireGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_WireGroups_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a wire group in the specified project in the given scope using the parameters that are included in the request.", - "canonical": true, - "file": "wire_groups.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.WireGroups.Insert", - "async": true, - "parameters": [ - { - "name": "cross_site_network", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "wire_group_resource", - "type": ".google.cloud.compute.v1.WireGroup" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "WireGroupsClient", - "fullName": "google.cloud.compute.v1.WireGroupsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.WireGroups.Insert", - "service": { - "shortName": "WireGroups", - "fullName": "google.cloud.compute.v1.WireGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_WireGroups_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Lists the wire groups for a project in the given scope.", - "canonical": true, - "file": "wire_groups.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 144, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.WireGroups.List", - "async": true, - "parameters": [ - { - "name": "cross_site_network", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.WireGroupList", - "client": { - "shortName": "WireGroupsClient", - "fullName": "google.cloud.compute.v1.WireGroupsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.WireGroups.List", - "service": { - "shortName": "WireGroups", - "fullName": "google.cloud.compute.v1.WireGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_WireGroups_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified wire group resource with the data included in the request. This method supportsPATCH semantics and usesJSON merge patch format and processing rules.", - "canonical": true, - "file": "wire_groups.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 90, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.WireGroups.Patch", - "async": true, - "parameters": [ - { - "name": "cross_site_network", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "wire_group", - "type": "TYPE_STRING" - }, - { - "name": "wire_group_resource", - "type": ".google.cloud.compute.v1.WireGroup" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "WireGroupsClient", - "fullName": "google.cloud.compute.v1.WireGroupsClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1.WireGroups.Patch", - "service": { - "shortName": "WireGroups", - "fullName": "google.cloud.compute.v1.WireGroups" - } - } - } - }, - { - "regionTag": "compute_v1_generated_ZoneOperations_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified zone-specific Operations resource.", - "canonical": true, - "file": "zone_operations.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.ZoneOperations.Delete", - "async": true, - "parameters": [ - { - "name": "operation", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.DeleteZoneOperationResponse", - "client": { - "shortName": "ZoneOperationsClient", - "fullName": "google.cloud.compute.v1.ZoneOperationsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.ZoneOperations.Delete", - "service": { - "shortName": "ZoneOperations", - "fullName": "google.cloud.compute.v1.ZoneOperations" - } - } - } - }, - { - "regionTag": "compute_v1_generated_ZoneOperations_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified zone-specific Operations resource.", - "canonical": true, - "file": "zone_operations.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.ZoneOperations.Get", - "async": true, - "parameters": [ - { - "name": "operation", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "ZoneOperationsClient", - "fullName": "google.cloud.compute.v1.ZoneOperationsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.ZoneOperations.Get", - "service": { - "shortName": "ZoneOperations", - "fullName": "google.cloud.compute.v1.ZoneOperations" - } - } - } - }, - { - "regionTag": "compute_v1_generated_ZoneOperations_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of Operation resources contained within the specified zone.", - "canonical": true, - "file": "zone_operations.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.ZoneOperations.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.OperationList", - "client": { - "shortName": "ZoneOperationsClient", - "fullName": "google.cloud.compute.v1.ZoneOperationsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.ZoneOperations.List", - "service": { - "shortName": "ZoneOperations", - "fullName": "google.cloud.compute.v1.ZoneOperations" - } - } - } - }, - { - "regionTag": "compute_v1_generated_ZoneOperations_Wait_async", - "title": "AcceleratorTypes wait Sample", - "origin": "API_DEFINITION", - "description": " Waits for the specified Operation resource to return as `DONE` or for the request to approach the 2 minute deadline, and retrieves the specified Operation resource. This method waits for no more than the 2 minutes and then returns the current state of the operation, which might be `DONE` or still in progress. This method is called on a best-effort basis. Specifically: - In uncommon cases, when the server is overloaded, the request might return before the default deadline is reached, or might return after zero seconds. - If the default deadline is reached, there is no guarantee that the operation is actually done when the method returns. Be prepared to retry if the operation is not `DONE`.", - "canonical": true, - "file": "zone_operations.wait.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Wait", - "fullName": "google.cloud.compute.v1.ZoneOperations.Wait", - "async": true, - "parameters": [ - { - "name": "operation", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "ZoneOperationsClient", - "fullName": "google.cloud.compute.v1.ZoneOperationsClient" - }, - "method": { - "shortName": "Wait", - "fullName": "google.cloud.compute.v1.ZoneOperations.Wait", - "service": { - "shortName": "ZoneOperations", - "fullName": "google.cloud.compute.v1.ZoneOperations" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Zones_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified Zone resource.", - "canonical": true, - "file": "zones.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.Zones.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Zone", - "client": { - "shortName": "ZonesClient", - "fullName": "google.cloud.compute.v1.ZonesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.Zones.Get", - "service": { - "shortName": "Zones", - "fullName": "google.cloud.compute.v1.Zones" - } - } - } - }, - { - "regionTag": "compute_v1_generated_Zones_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of Zone resources available to the specified project.", - "canonical": true, - "file": "zones.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.Zones.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1.ZoneList", - "client": { - "shortName": "ZonesClient", - "fullName": "google.cloud.compute.v1.ZonesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.Zones.List", - "service": { - "shortName": "Zones", - "fullName": "google.cloud.compute.v1.Zones" - } - } - } - }, - { - "regionTag": "compute_v1_generated_ZoneVmExtensionPolicies_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes a specified zone VM extension policy within a project.", - "canonical": true, - "file": "zone_vm_extension_policies.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.ZoneVmExtensionPolicies.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "vm_extension_policy", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "ZoneVmExtensionPoliciesClient", - "fullName": "google.cloud.compute.v1.ZoneVmExtensionPoliciesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1.ZoneVmExtensionPolicies.Delete", - "service": { - "shortName": "ZoneVmExtensionPolicies", - "fullName": "google.cloud.compute.v1.ZoneVmExtensionPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_ZoneVmExtensionPolicies_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Retrieves details of a specific zone VM extension policy within a project.", - "canonical": true, - "file": "zone_vm_extension_policies.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.ZoneVmExtensionPolicies.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "vm_extension_policy", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.VmExtensionPolicy", - "client": { - "shortName": "ZoneVmExtensionPoliciesClient", - "fullName": "google.cloud.compute.v1.ZoneVmExtensionPoliciesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1.ZoneVmExtensionPolicies.Get", - "service": { - "shortName": "ZoneVmExtensionPolicies", - "fullName": "google.cloud.compute.v1.ZoneVmExtensionPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_ZoneVmExtensionPolicies_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a new zone-level VM extension policy within a project.", - "canonical": true, - "file": "zone_vm_extension_policies.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.ZoneVmExtensionPolicies.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "vm_extension_policy_resource", - "type": ".google.cloud.compute.v1.VmExtensionPolicy" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "ZoneVmExtensionPoliciesClient", - "fullName": "google.cloud.compute.v1.ZoneVmExtensionPoliciesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1.ZoneVmExtensionPolicies.Insert", - "service": { - "shortName": "ZoneVmExtensionPolicies", - "fullName": "google.cloud.compute.v1.ZoneVmExtensionPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_ZoneVmExtensionPolicies_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Lists all VM extension policies within a specific zone for a project.", - "canonical": true, - "file": "zone_vm_extension_policies.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.ZoneVmExtensionPolicies.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.VmExtensionPolicyList", - "client": { - "shortName": "ZoneVmExtensionPoliciesClient", - "fullName": "google.cloud.compute.v1.ZoneVmExtensionPoliciesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1.ZoneVmExtensionPolicies.List", - "service": { - "shortName": "ZoneVmExtensionPolicies", - "fullName": "google.cloud.compute.v1.ZoneVmExtensionPolicies" - } - } - } - }, - { - "regionTag": "compute_v1_generated_ZoneVmExtensionPolicies_Update_async", - "title": "AcceleratorTypes update Sample", - "origin": "API_DEFINITION", - "description": " Modifies an existing zone VM extension policy within a project.", - "canonical": true, - "file": "zone_vm_extension_policies.update.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1.ZoneVmExtensionPolicies.Update", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "vm_extension_policy", - "type": "TYPE_STRING" - }, - { - "name": "vm_extension_policy_resource", - "type": ".google.cloud.compute.v1.VmExtensionPolicy" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1.Operation", - "client": { - "shortName": "ZoneVmExtensionPoliciesClient", - "fullName": "google.cloud.compute.v1.ZoneVmExtensionPoliciesClient" - }, - "method": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1.ZoneVmExtensionPolicies.Update", - "service": { - "shortName": "ZoneVmExtensionPolicies", - "fullName": "google.cloud.compute.v1.ZoneVmExtensionPolicies" - } - } - } - } - ] -} diff --git a/packages/google-cloud-compute/samples/generated/v1beta/snippet_metadata_google.cloud.compute.v1beta.json b/packages/google-cloud-compute/samples/generated/v1beta/snippet_metadata_google.cloud.compute.v1beta.json deleted file mode 100644 index 2ddf3d8be010..000000000000 --- a/packages/google-cloud-compute/samples/generated/v1beta/snippet_metadata_google.cloud.compute.v1beta.json +++ /dev/null @@ -1,57491 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-compute", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.compute.v1beta", - "version": "v1beta" - } - ] - }, - "snippets": [ - { - "regionTag": "compute_v1beta_generated_AcceleratorTypes_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of accelerator types. To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "accelerator_types.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.AcceleratorTypes.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1beta.AcceleratorTypeAggregatedList", - "client": { - "shortName": "AcceleratorTypesClient", - "fullName": "google.cloud.compute.v1beta.AcceleratorTypesClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.AcceleratorTypes.AggregatedList", - "service": { - "shortName": "AcceleratorTypes", - "fullName": "google.cloud.compute.v1beta.AcceleratorTypes" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_AcceleratorTypes_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified accelerator type.", - "canonical": true, - "file": "accelerator_types.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.AcceleratorTypes.Get", - "async": true, - "parameters": [ - { - "name": "accelerator_type", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.AcceleratorType", - "client": { - "shortName": "AcceleratorTypesClient", - "fullName": "google.cloud.compute.v1beta.AcceleratorTypesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.AcceleratorTypes.Get", - "service": { - "shortName": "AcceleratorTypes", - "fullName": "google.cloud.compute.v1beta.AcceleratorTypes" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_AcceleratorTypes_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of accelerator types that are available to the specified project.", - "canonical": true, - "file": "accelerator_types.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.AcceleratorTypes.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.AcceleratorTypeList", - "client": { - "shortName": "AcceleratorTypesClient", - "fullName": "google.cloud.compute.v1beta.AcceleratorTypesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.AcceleratorTypes.List", - "service": { - "shortName": "AcceleratorTypes", - "fullName": "google.cloud.compute.v1beta.AcceleratorTypes" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Addresses_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of addresses. To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "addresses.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.Addresses.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1beta.AddressAggregatedList", - "client": { - "shortName": "AddressesClient", - "fullName": "google.cloud.compute.v1beta.AddressesClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.Addresses.AggregatedList", - "service": { - "shortName": "Addresses", - "fullName": "google.cloud.compute.v1beta.Addresses" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Addresses_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified address resource.", - "canonical": true, - "file": "addresses.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.Addresses.Delete", - "async": true, - "parameters": [ - { - "name": "address", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "AddressesClient", - "fullName": "google.cloud.compute.v1beta.AddressesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.Addresses.Delete", - "service": { - "shortName": "Addresses", - "fullName": "google.cloud.compute.v1beta.Addresses" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Addresses_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified address resource.", - "canonical": true, - "file": "addresses.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.Addresses.Get", - "async": true, - "parameters": [ - { - "name": "address", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Address", - "client": { - "shortName": "AddressesClient", - "fullName": "google.cloud.compute.v1beta.AddressesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.Addresses.Get", - "service": { - "shortName": "Addresses", - "fullName": "google.cloud.compute.v1beta.Addresses" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Addresses_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates an address resource in the specified project by using the data included in the request.", - "canonical": true, - "file": "addresses.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.Addresses.Insert", - "async": true, - "parameters": [ - { - "name": "address_resource", - "type": ".google.cloud.compute.v1beta.Address" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "AddressesClient", - "fullName": "google.cloud.compute.v1beta.AddressesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.Addresses.Insert", - "service": { - "shortName": "Addresses", - "fullName": "google.cloud.compute.v1beta.Addresses" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Addresses_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of addresses contained within the specified region.", - "canonical": true, - "file": "addresses.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.Addresses.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.AddressList", - "client": { - "shortName": "AddressesClient", - "fullName": "google.cloud.compute.v1beta.AddressesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.Addresses.List", - "service": { - "shortName": "Addresses", - "fullName": "google.cloud.compute.v1beta.Addresses" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Addresses_Move_async", - "title": "AcceleratorTypes move Sample", - "origin": "API_DEFINITION", - "description": " Moves the specified address resource.", - "canonical": true, - "file": "addresses.move.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Move", - "fullName": "google.cloud.compute.v1beta.Addresses.Move", - "async": true, - "parameters": [ - { - "name": "address", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_addresses_move_request_resource", - "type": ".google.cloud.compute.v1beta.RegionAddressesMoveRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "AddressesClient", - "fullName": "google.cloud.compute.v1beta.AddressesClient" - }, - "method": { - "shortName": "Move", - "fullName": "google.cloud.compute.v1beta.Addresses.Move", - "service": { - "shortName": "Addresses", - "fullName": "google.cloud.compute.v1beta.Addresses" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Addresses_SetLabels_async", - "title": "AcceleratorTypes setLabels Sample", - "origin": "API_DEFINITION", - "description": " Sets the labels on an Address. To learn more about labels, read theLabeling Resources documentation.", - "canonical": true, - "file": "addresses.set_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1beta.Addresses.SetLabels", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_set_labels_request_resource", - "type": ".google.cloud.compute.v1beta.RegionSetLabelsRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "AddressesClient", - "fullName": "google.cloud.compute.v1beta.AddressesClient" - }, - "method": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1beta.Addresses.SetLabels", - "service": { - "shortName": "Addresses", - "fullName": "google.cloud.compute.v1beta.Addresses" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Addresses_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "addresses.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.Addresses.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "AddressesClient", - "fullName": "google.cloud.compute.v1beta.AddressesClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.Addresses.TestIamPermissions", - "service": { - "shortName": "Addresses", - "fullName": "google.cloud.compute.v1beta.Addresses" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Advice_CalendarMode_async", - "title": "AcceleratorTypes calendarMode Sample", - "origin": "API_DEFINITION", - "description": " Advise how, where and when to create the requested amount of instances with specified accelerators, within the specified time and location limits. The method recommends creating future reservations for the requested resources.", - "canonical": true, - "file": "advice.calendar_mode.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CalendarMode", - "fullName": "google.cloud.compute.v1beta.Advice.CalendarMode", - "async": true, - "parameters": [ - { - "name": "calendar_mode_advice_request_resource", - "type": ".google.cloud.compute.v1beta.CalendarModeAdviceRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.CalendarModeAdviceResponse", - "client": { - "shortName": "AdviceClient", - "fullName": "google.cloud.compute.v1beta.AdviceClient" - }, - "method": { - "shortName": "CalendarMode", - "fullName": "google.cloud.compute.v1beta.Advice.CalendarMode", - "service": { - "shortName": "Advice", - "fullName": "google.cloud.compute.v1beta.Advice" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Advice_Capacity_async", - "title": "AcceleratorTypes capacity Sample", - "origin": "API_DEFINITION", - "description": " Advice on making real-time decisions (such as choosing zone or machine types) during deployment to maximize your chances of obtaining capacity.", - "canonical": true, - "file": "advice.capacity.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Capacity", - "fullName": "google.cloud.compute.v1beta.Advice.Capacity", - "async": true, - "parameters": [ - { - "name": "capacity_advice_request_resource", - "type": ".google.cloud.compute.v1beta.CapacityAdviceRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.CapacityAdviceResponse", - "client": { - "shortName": "AdviceClient", - "fullName": "google.cloud.compute.v1beta.AdviceClient" - }, - "method": { - "shortName": "Capacity", - "fullName": "google.cloud.compute.v1beta.Advice.Capacity", - "service": { - "shortName": "Advice", - "fullName": "google.cloud.compute.v1beta.Advice" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Advice_CapacityHistory_async", - "title": "AcceleratorTypes capacityHistory Sample", - "origin": "API_DEFINITION", - "description": " Gets the capacity history.", - "canonical": true, - "file": "advice.capacity_history.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CapacityHistory", - "fullName": "google.cloud.compute.v1beta.Advice.CapacityHistory", - "async": true, - "parameters": [ - { - "name": "capacity_history_request_resource", - "type": ".google.cloud.compute.v1beta.CapacityHistoryRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.CapacityHistoryResponse", - "client": { - "shortName": "AdviceClient", - "fullName": "google.cloud.compute.v1beta.AdviceClient" - }, - "method": { - "shortName": "CapacityHistory", - "fullName": "google.cloud.compute.v1beta.Advice.CapacityHistory", - "service": { - "shortName": "Advice", - "fullName": "google.cloud.compute.v1beta.Advice" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Autoscalers_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of autoscalers. To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "autoscalers.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.Autoscalers.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1beta.AutoscalerAggregatedList", - "client": { - "shortName": "AutoscalersClient", - "fullName": "google.cloud.compute.v1beta.AutoscalersClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.Autoscalers.AggregatedList", - "service": { - "shortName": "Autoscalers", - "fullName": "google.cloud.compute.v1beta.Autoscalers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Autoscalers_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified autoscaler.", - "canonical": true, - "file": "autoscalers.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.Autoscalers.Delete", - "async": true, - "parameters": [ - { - "name": "autoscaler", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "AutoscalersClient", - "fullName": "google.cloud.compute.v1beta.AutoscalersClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.Autoscalers.Delete", - "service": { - "shortName": "Autoscalers", - "fullName": "google.cloud.compute.v1beta.Autoscalers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Autoscalers_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified autoscaler resource.", - "canonical": true, - "file": "autoscalers.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.Autoscalers.Get", - "async": true, - "parameters": [ - { - "name": "autoscaler", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Autoscaler", - "client": { - "shortName": "AutoscalersClient", - "fullName": "google.cloud.compute.v1beta.AutoscalersClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.Autoscalers.Get", - "service": { - "shortName": "Autoscalers", - "fullName": "google.cloud.compute.v1beta.Autoscalers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Autoscalers_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates an autoscaler in the specified project using the data included in the request.", - "canonical": true, - "file": "autoscalers.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.Autoscalers.Insert", - "async": true, - "parameters": [ - { - "name": "autoscaler_resource", - "type": ".google.cloud.compute.v1beta.Autoscaler" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "AutoscalersClient", - "fullName": "google.cloud.compute.v1beta.AutoscalersClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.Autoscalers.Insert", - "service": { - "shortName": "Autoscalers", - "fullName": "google.cloud.compute.v1beta.Autoscalers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Autoscalers_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of autoscalers contained within the specified zone.", - "canonical": true, - "file": "autoscalers.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.Autoscalers.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.AutoscalerList", - "client": { - "shortName": "AutoscalersClient", - "fullName": "google.cloud.compute.v1beta.AutoscalersClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.Autoscalers.List", - "service": { - "shortName": "Autoscalers", - "fullName": "google.cloud.compute.v1beta.Autoscalers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Autoscalers_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Updates an autoscaler in the specified project using the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.", - "canonical": true, - "file": "autoscalers.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.Autoscalers.Patch", - "async": true, - "parameters": [ - { - "name": "autoscaler", - "type": "TYPE_STRING" - }, - { - "name": "autoscaler_resource", - "type": ".google.cloud.compute.v1beta.Autoscaler" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "AutoscalersClient", - "fullName": "google.cloud.compute.v1beta.AutoscalersClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.Autoscalers.Patch", - "service": { - "shortName": "Autoscalers", - "fullName": "google.cloud.compute.v1beta.Autoscalers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Autoscalers_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "autoscalers.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.Autoscalers.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "AutoscalersClient", - "fullName": "google.cloud.compute.v1beta.AutoscalersClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.Autoscalers.TestIamPermissions", - "service": { - "shortName": "Autoscalers", - "fullName": "google.cloud.compute.v1beta.Autoscalers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Autoscalers_Update_async", - "title": "AcceleratorTypes update Sample", - "origin": "API_DEFINITION", - "description": " Updates an autoscaler in the specified project using the data included in the request.", - "canonical": true, - "file": "autoscalers.update.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1beta.Autoscalers.Update", - "async": true, - "parameters": [ - { - "name": "autoscaler", - "type": "TYPE_STRING" - }, - { - "name": "autoscaler_resource", - "type": ".google.cloud.compute.v1beta.Autoscaler" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "AutoscalersClient", - "fullName": "google.cloud.compute.v1beta.AutoscalersClient" - }, - "method": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1beta.Autoscalers.Update", - "service": { - "shortName": "Autoscalers", - "fullName": "google.cloud.compute.v1beta.Autoscalers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_BackendBuckets_AddSignedUrlKey_async", - "title": "AcceleratorTypes addSignedUrlKey Sample", - "origin": "API_DEFINITION", - "description": " Adds a key for validating requests with signed URLs for this backend bucket.", - "canonical": true, - "file": "backend_buckets.add_signed_url_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddSignedUrlKey", - "fullName": "google.cloud.compute.v1beta.BackendBuckets.AddSignedUrlKey", - "async": true, - "parameters": [ - { - "name": "backend_bucket", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "signed_url_key_resource", - "type": ".google.cloud.compute.v1beta.SignedUrlKey" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "BackendBucketsClient", - "fullName": "google.cloud.compute.v1beta.BackendBucketsClient" - }, - "method": { - "shortName": "AddSignedUrlKey", - "fullName": "google.cloud.compute.v1beta.BackendBuckets.AddSignedUrlKey", - "service": { - "shortName": "BackendBuckets", - "fullName": "google.cloud.compute.v1beta.BackendBuckets" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_BackendBuckets_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of all BackendBucket resources, regional and global, available to the specified project. To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "backend_buckets.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.BackendBuckets.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1beta.BackendBucketAggregatedList", - "client": { - "shortName": "BackendBucketsClient", - "fullName": "google.cloud.compute.v1beta.BackendBucketsClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.BackendBuckets.AggregatedList", - "service": { - "shortName": "BackendBuckets", - "fullName": "google.cloud.compute.v1beta.BackendBuckets" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_BackendBuckets_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified BackendBucket resource.", - "canonical": true, - "file": "backend_buckets.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.BackendBuckets.Delete", - "async": true, - "parameters": [ - { - "name": "backend_bucket", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "BackendBucketsClient", - "fullName": "google.cloud.compute.v1beta.BackendBucketsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.BackendBuckets.Delete", - "service": { - "shortName": "BackendBuckets", - "fullName": "google.cloud.compute.v1beta.BackendBuckets" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_BackendBuckets_DeleteSignedUrlKey_async", - "title": "AcceleratorTypes deleteSignedUrlKey Sample", - "origin": "API_DEFINITION", - "description": " Deletes a key for validating requests with signed URLs for this backend bucket.", - "canonical": true, - "file": "backend_buckets.delete_signed_url_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSignedUrlKey", - "fullName": "google.cloud.compute.v1beta.BackendBuckets.DeleteSignedUrlKey", - "async": true, - "parameters": [ - { - "name": "backend_bucket", - "type": "TYPE_STRING" - }, - { - "name": "key_name", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "BackendBucketsClient", - "fullName": "google.cloud.compute.v1beta.BackendBucketsClient" - }, - "method": { - "shortName": "DeleteSignedUrlKey", - "fullName": "google.cloud.compute.v1beta.BackendBuckets.DeleteSignedUrlKey", - "service": { - "shortName": "BackendBuckets", - "fullName": "google.cloud.compute.v1beta.BackendBuckets" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_BackendBuckets_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified BackendBucket resource.", - "canonical": true, - "file": "backend_buckets.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.BackendBuckets.Get", - "async": true, - "parameters": [ - { - "name": "backend_bucket", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.BackendBucket", - "client": { - "shortName": "BackendBucketsClient", - "fullName": "google.cloud.compute.v1beta.BackendBucketsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.BackendBuckets.Get", - "service": { - "shortName": "BackendBuckets", - "fullName": "google.cloud.compute.v1beta.BackendBuckets" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_BackendBuckets_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "backend_buckets.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.BackendBuckets.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "BackendBucketsClient", - "fullName": "google.cloud.compute.v1beta.BackendBucketsClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.BackendBuckets.GetIamPolicy", - "service": { - "shortName": "BackendBuckets", - "fullName": "google.cloud.compute.v1beta.BackendBuckets" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_BackendBuckets_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a BackendBucket resource in the specified project using the data included in the request.", - "canonical": true, - "file": "backend_buckets.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.BackendBuckets.Insert", - "async": true, - "parameters": [ - { - "name": "backend_bucket_resource", - "type": ".google.cloud.compute.v1beta.BackendBucket" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "BackendBucketsClient", - "fullName": "google.cloud.compute.v1beta.BackendBucketsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.BackendBuckets.Insert", - "service": { - "shortName": "BackendBuckets", - "fullName": "google.cloud.compute.v1beta.BackendBuckets" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_BackendBuckets_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of BackendBucket resources available to the specified project.", - "canonical": true, - "file": "backend_buckets.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.BackendBuckets.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.BackendBucketList", - "client": { - "shortName": "BackendBucketsClient", - "fullName": "google.cloud.compute.v1beta.BackendBucketsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.BackendBuckets.List", - "service": { - "shortName": "BackendBuckets", - "fullName": "google.cloud.compute.v1beta.BackendBuckets" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_BackendBuckets_ListUsable_async", - "title": "AcceleratorTypes listUsable Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of all usable backend buckets in the specified project.", - "canonical": true, - "file": "backend_buckets.list_usable.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListUsable", - "fullName": "google.cloud.compute.v1beta.BackendBuckets.ListUsable", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.BackendBucketListUsable", - "client": { - "shortName": "BackendBucketsClient", - "fullName": "google.cloud.compute.v1beta.BackendBucketsClient" - }, - "method": { - "shortName": "ListUsable", - "fullName": "google.cloud.compute.v1beta.BackendBuckets.ListUsable", - "service": { - "shortName": "BackendBuckets", - "fullName": "google.cloud.compute.v1beta.BackendBuckets" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_BackendBuckets_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified BackendBucket resource with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.", - "canonical": true, - "file": "backend_buckets.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.BackendBuckets.Patch", - "async": true, - "parameters": [ - { - "name": "backend_bucket", - "type": "TYPE_STRING" - }, - { - "name": "backend_bucket_resource", - "type": ".google.cloud.compute.v1beta.BackendBucket" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "BackendBucketsClient", - "fullName": "google.cloud.compute.v1beta.BackendBucketsClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.BackendBuckets.Patch", - "service": { - "shortName": "BackendBuckets", - "fullName": "google.cloud.compute.v1beta.BackendBuckets" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_BackendBuckets_SetEdgeSecurityPolicy_async", - "title": "AcceleratorTypes setEdgeSecurityPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the edge security policy for the specified backend bucket.", - "canonical": true, - "file": "backend_buckets.set_edge_security_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetEdgeSecurityPolicy", - "fullName": "google.cloud.compute.v1beta.BackendBuckets.SetEdgeSecurityPolicy", - "async": true, - "parameters": [ - { - "name": "backend_bucket", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "security_policy_reference_resource", - "type": ".google.cloud.compute.v1beta.SecurityPolicyReference" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "BackendBucketsClient", - "fullName": "google.cloud.compute.v1beta.BackendBucketsClient" - }, - "method": { - "shortName": "SetEdgeSecurityPolicy", - "fullName": "google.cloud.compute.v1beta.BackendBuckets.SetEdgeSecurityPolicy", - "service": { - "shortName": "BackendBuckets", - "fullName": "google.cloud.compute.v1beta.BackendBuckets" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_BackendBuckets_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "backend_buckets.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.BackendBuckets.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "global_set_policy_request_resource", - "type": ".google.cloud.compute.v1beta.GlobalSetPolicyRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "BackendBucketsClient", - "fullName": "google.cloud.compute.v1beta.BackendBucketsClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.BackendBuckets.SetIamPolicy", - "service": { - "shortName": "BackendBuckets", - "fullName": "google.cloud.compute.v1beta.BackendBuckets" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_BackendBuckets_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "backend_buckets.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.BackendBuckets.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "BackendBucketsClient", - "fullName": "google.cloud.compute.v1beta.BackendBucketsClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.BackendBuckets.TestIamPermissions", - "service": { - "shortName": "BackendBuckets", - "fullName": "google.cloud.compute.v1beta.BackendBuckets" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_BackendBuckets_Update_async", - "title": "AcceleratorTypes update Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified BackendBucket resource with the data included in the request.", - "canonical": true, - "file": "backend_buckets.update.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1beta.BackendBuckets.Update", - "async": true, - "parameters": [ - { - "name": "backend_bucket", - "type": "TYPE_STRING" - }, - { - "name": "backend_bucket_resource", - "type": ".google.cloud.compute.v1beta.BackendBucket" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "BackendBucketsClient", - "fullName": "google.cloud.compute.v1beta.BackendBucketsClient" - }, - "method": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1beta.BackendBuckets.Update", - "service": { - "shortName": "BackendBuckets", - "fullName": "google.cloud.compute.v1beta.BackendBuckets" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_BackendServices_AddSignedUrlKey_async", - "title": "AcceleratorTypes addSignedUrlKey Sample", - "origin": "API_DEFINITION", - "description": " Adds a key for validating requests with signed URLs for this backend service.", - "canonical": true, - "file": "backend_services.add_signed_url_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddSignedUrlKey", - "fullName": "google.cloud.compute.v1beta.BackendServices.AddSignedUrlKey", - "async": true, - "parameters": [ - { - "name": "backend_service", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "signed_url_key_resource", - "type": ".google.cloud.compute.v1beta.SignedUrlKey" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "BackendServicesClient", - "fullName": "google.cloud.compute.v1beta.BackendServicesClient" - }, - "method": { - "shortName": "AddSignedUrlKey", - "fullName": "google.cloud.compute.v1beta.BackendServices.AddSignedUrlKey", - "service": { - "shortName": "BackendServices", - "fullName": "google.cloud.compute.v1beta.BackendServices" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_BackendServices_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of all BackendService resources, regional and global, available to the specified project. To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "backend_services.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.BackendServices.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1beta.BackendServiceAggregatedList", - "client": { - "shortName": "BackendServicesClient", - "fullName": "google.cloud.compute.v1beta.BackendServicesClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.BackendServices.AggregatedList", - "service": { - "shortName": "BackendServices", - "fullName": "google.cloud.compute.v1beta.BackendServices" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_BackendServices_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified BackendService resource.", - "canonical": true, - "file": "backend_services.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.BackendServices.Delete", - "async": true, - "parameters": [ - { - "name": "backend_service", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "BackendServicesClient", - "fullName": "google.cloud.compute.v1beta.BackendServicesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.BackendServices.Delete", - "service": { - "shortName": "BackendServices", - "fullName": "google.cloud.compute.v1beta.BackendServices" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_BackendServices_DeleteSignedUrlKey_async", - "title": "AcceleratorTypes deleteSignedUrlKey Sample", - "origin": "API_DEFINITION", - "description": " Deletes a key for validating requests with signed URLs for this backend service.", - "canonical": true, - "file": "backend_services.delete_signed_url_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSignedUrlKey", - "fullName": "google.cloud.compute.v1beta.BackendServices.DeleteSignedUrlKey", - "async": true, - "parameters": [ - { - "name": "backend_service", - "type": "TYPE_STRING" - }, - { - "name": "key_name", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "BackendServicesClient", - "fullName": "google.cloud.compute.v1beta.BackendServicesClient" - }, - "method": { - "shortName": "DeleteSignedUrlKey", - "fullName": "google.cloud.compute.v1beta.BackendServices.DeleteSignedUrlKey", - "service": { - "shortName": "BackendServices", - "fullName": "google.cloud.compute.v1beta.BackendServices" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_BackendServices_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified BackendService resource.", - "canonical": true, - "file": "backend_services.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.BackendServices.Get", - "async": true, - "parameters": [ - { - "name": "backend_service", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.BackendService", - "client": { - "shortName": "BackendServicesClient", - "fullName": "google.cloud.compute.v1beta.BackendServicesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.BackendServices.Get", - "service": { - "shortName": "BackendServices", - "fullName": "google.cloud.compute.v1beta.BackendServices" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_BackendServices_GetEffectiveSecurityPolicies_async", - "title": "AcceleratorTypes getEffectiveSecurityPolicies Sample", - "origin": "API_DEFINITION", - "description": " Returns effective security policies applied to this backend service.", - "canonical": true, - "file": "backend_services.get_effective_security_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEffectiveSecurityPolicies", - "fullName": "google.cloud.compute.v1beta.BackendServices.GetEffectiveSecurityPolicies", - "async": true, - "parameters": [ - { - "name": "backend_service", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.BackendServicesGetEffectiveSecurityPoliciesResponse", - "client": { - "shortName": "BackendServicesClient", - "fullName": "google.cloud.compute.v1beta.BackendServicesClient" - }, - "method": { - "shortName": "GetEffectiveSecurityPolicies", - "fullName": "google.cloud.compute.v1beta.BackendServices.GetEffectiveSecurityPolicies", - "service": { - "shortName": "BackendServices", - "fullName": "google.cloud.compute.v1beta.BackendServices" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_BackendServices_GetHealth_async", - "title": "AcceleratorTypes getHealth Sample", - "origin": "API_DEFINITION", - "description": " Gets the most recent health check results for this BackendService. Example request body: { \"group\": \"/zones/us-east1-b/instanceGroups/lb-backend-example\" }", - "canonical": true, - "file": "backend_services.get_health.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetHealth", - "fullName": "google.cloud.compute.v1beta.BackendServices.GetHealth", - "async": true, - "parameters": [ - { - "name": "backend_service", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource_group_reference_resource", - "type": ".google.cloud.compute.v1beta.ResourceGroupReference" - } - ], - "resultType": ".google.cloud.compute.v1beta.BackendServiceGroupHealth", - "client": { - "shortName": "BackendServicesClient", - "fullName": "google.cloud.compute.v1beta.BackendServicesClient" - }, - "method": { - "shortName": "GetHealth", - "fullName": "google.cloud.compute.v1beta.BackendServices.GetHealth", - "service": { - "shortName": "BackendServices", - "fullName": "google.cloud.compute.v1beta.BackendServices" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_BackendServices_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "backend_services.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.BackendServices.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "BackendServicesClient", - "fullName": "google.cloud.compute.v1beta.BackendServicesClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.BackendServices.GetIamPolicy", - "service": { - "shortName": "BackendServices", - "fullName": "google.cloud.compute.v1beta.BackendServices" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_BackendServices_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a BackendService resource in the specified project using the data included in the request. For more information, see Backend services overview.", - "canonical": true, - "file": "backend_services.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.BackendServices.Insert", - "async": true, - "parameters": [ - { - "name": "backend_service_resource", - "type": ".google.cloud.compute.v1beta.BackendService" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "BackendServicesClient", - "fullName": "google.cloud.compute.v1beta.BackendServicesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.BackendServices.Insert", - "service": { - "shortName": "BackendServices", - "fullName": "google.cloud.compute.v1beta.BackendServices" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_BackendServices_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of BackendService resources available to the specified project.", - "canonical": true, - "file": "backend_services.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.BackendServices.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.BackendServiceList", - "client": { - "shortName": "BackendServicesClient", - "fullName": "google.cloud.compute.v1beta.BackendServicesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.BackendServices.List", - "service": { - "shortName": "BackendServices", - "fullName": "google.cloud.compute.v1beta.BackendServices" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_BackendServices_ListUsable_async", - "title": "AcceleratorTypes listUsable Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of all usable backend services in the specified project.", - "canonical": true, - "file": "backend_services.list_usable.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListUsable", - "fullName": "google.cloud.compute.v1beta.BackendServices.ListUsable", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.BackendServiceListUsable", - "client": { - "shortName": "BackendServicesClient", - "fullName": "google.cloud.compute.v1beta.BackendServicesClient" - }, - "method": { - "shortName": "ListUsable", - "fullName": "google.cloud.compute.v1beta.BackendServices.ListUsable", - "service": { - "shortName": "BackendServices", - "fullName": "google.cloud.compute.v1beta.BackendServices" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_BackendServices_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patches the specified BackendService resource with the data included in the request. For more information, see Backend services overview. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.", - "canonical": true, - "file": "backend_services.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.BackendServices.Patch", - "async": true, - "parameters": [ - { - "name": "backend_service", - "type": "TYPE_STRING" - }, - { - "name": "backend_service_resource", - "type": ".google.cloud.compute.v1beta.BackendService" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "BackendServicesClient", - "fullName": "google.cloud.compute.v1beta.BackendServicesClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.BackendServices.Patch", - "service": { - "shortName": "BackendServices", - "fullName": "google.cloud.compute.v1beta.BackendServices" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_BackendServices_SetEdgeSecurityPolicy_async", - "title": "AcceleratorTypes setEdgeSecurityPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the edge security policy for the specified backend service.", - "canonical": true, - "file": "backend_services.set_edge_security_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetEdgeSecurityPolicy", - "fullName": "google.cloud.compute.v1beta.BackendServices.SetEdgeSecurityPolicy", - "async": true, - "parameters": [ - { - "name": "backend_service", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "security_policy_reference_resource", - "type": ".google.cloud.compute.v1beta.SecurityPolicyReference" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "BackendServicesClient", - "fullName": "google.cloud.compute.v1beta.BackendServicesClient" - }, - "method": { - "shortName": "SetEdgeSecurityPolicy", - "fullName": "google.cloud.compute.v1beta.BackendServices.SetEdgeSecurityPolicy", - "service": { - "shortName": "BackendServices", - "fullName": "google.cloud.compute.v1beta.BackendServices" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_BackendServices_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "backend_services.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.BackendServices.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "global_set_policy_request_resource", - "type": ".google.cloud.compute.v1beta.GlobalSetPolicyRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "BackendServicesClient", - "fullName": "google.cloud.compute.v1beta.BackendServicesClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.BackendServices.SetIamPolicy", - "service": { - "shortName": "BackendServices", - "fullName": "google.cloud.compute.v1beta.BackendServices" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_BackendServices_SetSecurityPolicy_async", - "title": "AcceleratorTypes setSecurityPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the Google Cloud Armor security policy for the specified backend service. For more information, seeGoogle Cloud Armor Overview", - "canonical": true, - "file": "backend_services.set_security_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetSecurityPolicy", - "fullName": "google.cloud.compute.v1beta.BackendServices.SetSecurityPolicy", - "async": true, - "parameters": [ - { - "name": "backend_service", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "security_policy_reference_resource", - "type": ".google.cloud.compute.v1beta.SecurityPolicyReference" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "BackendServicesClient", - "fullName": "google.cloud.compute.v1beta.BackendServicesClient" - }, - "method": { - "shortName": "SetSecurityPolicy", - "fullName": "google.cloud.compute.v1beta.BackendServices.SetSecurityPolicy", - "service": { - "shortName": "BackendServices", - "fullName": "google.cloud.compute.v1beta.BackendServices" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_BackendServices_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "backend_services.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.BackendServices.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "BackendServicesClient", - "fullName": "google.cloud.compute.v1beta.BackendServicesClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.BackendServices.TestIamPermissions", - "service": { - "shortName": "BackendServices", - "fullName": "google.cloud.compute.v1beta.BackendServices" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_BackendServices_Update_async", - "title": "AcceleratorTypes update Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified BackendService resource with the data included in the request. For more information, seeBackend services overview.", - "canonical": true, - "file": "backend_services.update.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1beta.BackendServices.Update", - "async": true, - "parameters": [ - { - "name": "backend_service", - "type": "TYPE_STRING" - }, - { - "name": "backend_service_resource", - "type": ".google.cloud.compute.v1beta.BackendService" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "BackendServicesClient", - "fullName": "google.cloud.compute.v1beta.BackendServicesClient" - }, - "method": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1beta.BackendServices.Update", - "service": { - "shortName": "BackendServices", - "fullName": "google.cloud.compute.v1beta.BackendServices" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_CrossSiteNetworks_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified cross-site network in the given scope.", - "canonical": true, - "file": "cross_site_networks.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.CrossSiteNetworks.Delete", - "async": true, - "parameters": [ - { - "name": "cross_site_network", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "CrossSiteNetworksClient", - "fullName": "google.cloud.compute.v1beta.CrossSiteNetworksClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.CrossSiteNetworks.Delete", - "service": { - "shortName": "CrossSiteNetworks", - "fullName": "google.cloud.compute.v1beta.CrossSiteNetworks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_CrossSiteNetworks_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified cross-site network in the given scope.", - "canonical": true, - "file": "cross_site_networks.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.CrossSiteNetworks.Get", - "async": true, - "parameters": [ - { - "name": "cross_site_network", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.CrossSiteNetwork", - "client": { - "shortName": "CrossSiteNetworksClient", - "fullName": "google.cloud.compute.v1beta.CrossSiteNetworksClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.CrossSiteNetworks.Get", - "service": { - "shortName": "CrossSiteNetworks", - "fullName": "google.cloud.compute.v1beta.CrossSiteNetworks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_CrossSiteNetworks_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a cross-site network in the specified project in the given scope using the parameters that are included in the request.", - "canonical": true, - "file": "cross_site_networks.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.CrossSiteNetworks.Insert", - "async": true, - "parameters": [ - { - "name": "cross_site_network_resource", - "type": ".google.cloud.compute.v1beta.CrossSiteNetwork" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "CrossSiteNetworksClient", - "fullName": "google.cloud.compute.v1beta.CrossSiteNetworksClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.CrossSiteNetworks.Insert", - "service": { - "shortName": "CrossSiteNetworks", - "fullName": "google.cloud.compute.v1beta.CrossSiteNetworks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_CrossSiteNetworks_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Lists the cross-site networks for a project in the given scope.", - "canonical": true, - "file": "cross_site_networks.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.CrossSiteNetworks.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.CrossSiteNetworkList", - "client": { - "shortName": "CrossSiteNetworksClient", - "fullName": "google.cloud.compute.v1beta.CrossSiteNetworksClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.CrossSiteNetworks.List", - "service": { - "shortName": "CrossSiteNetworks", - "fullName": "google.cloud.compute.v1beta.CrossSiteNetworks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_CrossSiteNetworks_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified cross-site network with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.", - "canonical": true, - "file": "cross_site_networks.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.CrossSiteNetworks.Patch", - "async": true, - "parameters": [ - { - "name": "cross_site_network", - "type": "TYPE_STRING" - }, - { - "name": "cross_site_network_resource", - "type": ".google.cloud.compute.v1beta.CrossSiteNetwork" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "CrossSiteNetworksClient", - "fullName": "google.cloud.compute.v1beta.CrossSiteNetworksClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.CrossSiteNetworks.Patch", - "service": { - "shortName": "CrossSiteNetworks", - "fullName": "google.cloud.compute.v1beta.CrossSiteNetworks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Disks_AddResourcePolicies_async", - "title": "AcceleratorTypes addResourcePolicies Sample", - "origin": "API_DEFINITION", - "description": " Adds existing resource policies to a disk. You can only add one policy which will be applied to this disk for scheduling snapshot creation.", - "canonical": true, - "file": "disks.add_resource_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddResourcePolicies", - "fullName": "google.cloud.compute.v1beta.Disks.AddResourcePolicies", - "async": true, - "parameters": [ - { - "name": "disk", - "type": "TYPE_STRING" - }, - { - "name": "disks_add_resource_policies_request_resource", - "type": ".google.cloud.compute.v1beta.DisksAddResourcePoliciesRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "DisksClient", - "fullName": "google.cloud.compute.v1beta.DisksClient" - }, - "method": { - "shortName": "AddResourcePolicies", - "fullName": "google.cloud.compute.v1beta.Disks.AddResourcePolicies", - "service": { - "shortName": "Disks", - "fullName": "google.cloud.compute.v1beta.Disks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Disks_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of persistent disks. To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "disks.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.Disks.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1beta.DiskAggregatedList", - "client": { - "shortName": "DisksClient", - "fullName": "google.cloud.compute.v1beta.DisksClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.Disks.AggregatedList", - "service": { - "shortName": "Disks", - "fullName": "google.cloud.compute.v1beta.Disks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Disks_BulkInsert_async", - "title": "AcceleratorTypes bulkInsert Sample", - "origin": "API_DEFINITION", - "description": " Bulk create a set of disks.", - "canonical": true, - "file": "disks.bulk_insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BulkInsert", - "fullName": "google.cloud.compute.v1beta.Disks.BulkInsert", - "async": true, - "parameters": [ - { - "name": "bulk_insert_disk_resource_resource", - "type": ".google.cloud.compute.v1beta.BulkInsertDiskResource" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "DisksClient", - "fullName": "google.cloud.compute.v1beta.DisksClient" - }, - "method": { - "shortName": "BulkInsert", - "fullName": "google.cloud.compute.v1beta.Disks.BulkInsert", - "service": { - "shortName": "Disks", - "fullName": "google.cloud.compute.v1beta.Disks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Disks_BulkSetLabels_async", - "title": "AcceleratorTypes bulkSetLabels Sample", - "origin": "API_DEFINITION", - "description": " Sets the labels on many disks at once. To learn more about labels, read theLabeling Resources documentation.", - "canonical": true, - "file": "disks.bulk_set_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BulkSetLabels", - "fullName": "google.cloud.compute.v1beta.Disks.BulkSetLabels", - "async": true, - "parameters": [ - { - "name": "bulk_zone_set_labels_request_resource", - "type": ".google.cloud.compute.v1beta.BulkZoneSetLabelsRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "DisksClient", - "fullName": "google.cloud.compute.v1beta.DisksClient" - }, - "method": { - "shortName": "BulkSetLabels", - "fullName": "google.cloud.compute.v1beta.Disks.BulkSetLabels", - "service": { - "shortName": "Disks", - "fullName": "google.cloud.compute.v1beta.Disks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Disks_CreateSnapshot_async", - "title": "AcceleratorTypes createSnapshot Sample", - "origin": "API_DEFINITION", - "description": " Creates a snapshot of a specified persistent disk. For regular snapshot creation, consider using snapshots.insert instead, as that method supports more features, such as creating snapshots in a project different from the source disk project.", - "canonical": true, - "file": "disks.create_snapshot.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSnapshot", - "fullName": "google.cloud.compute.v1beta.Disks.CreateSnapshot", - "async": true, - "parameters": [ - { - "name": "disk", - "type": "TYPE_STRING" - }, - { - "name": "guest_flush", - "type": "TYPE_BOOL" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "snapshot_resource", - "type": ".google.cloud.compute.v1beta.Snapshot" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "DisksClient", - "fullName": "google.cloud.compute.v1beta.DisksClient" - }, - "method": { - "shortName": "CreateSnapshot", - "fullName": "google.cloud.compute.v1beta.Disks.CreateSnapshot", - "service": { - "shortName": "Disks", - "fullName": "google.cloud.compute.v1beta.Disks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Disks_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified persistent disk. Deleting a disk removes its data permanently and is irreversible. However, deleting a disk does not delete any snapshots previously made from the disk. You must separatelydelete snapshots.", - "canonical": true, - "file": "disks.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.Disks.Delete", - "async": true, - "parameters": [ - { - "name": "disk", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "DisksClient", - "fullName": "google.cloud.compute.v1beta.DisksClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.Disks.Delete", - "service": { - "shortName": "Disks", - "fullName": "google.cloud.compute.v1beta.Disks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Disks_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified persistent disk.", - "canonical": true, - "file": "disks.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.Disks.Get", - "async": true, - "parameters": [ - { - "name": "disk", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Disk", - "client": { - "shortName": "DisksClient", - "fullName": "google.cloud.compute.v1beta.DisksClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.Disks.Get", - "service": { - "shortName": "Disks", - "fullName": "google.cloud.compute.v1beta.Disks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Disks_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "disks.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.Disks.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "DisksClient", - "fullName": "google.cloud.compute.v1beta.DisksClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.Disks.GetIamPolicy", - "service": { - "shortName": "Disks", - "fullName": "google.cloud.compute.v1beta.Disks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Disks_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a persistent disk in the specified project using the data in the request. You can create a disk from a source (sourceImage, sourceSnapshot, orsourceDisk) or create an empty 500 GB data disk by omitting all properties. You can also create a disk that is larger than the default size by specifying the sizeGb property.", - "canonical": true, - "file": "disks.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.Disks.Insert", - "async": true, - "parameters": [ - { - "name": "disk_resource", - "type": ".google.cloud.compute.v1beta.Disk" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "source_image", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "DisksClient", - "fullName": "google.cloud.compute.v1beta.DisksClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.Disks.Insert", - "service": { - "shortName": "Disks", - "fullName": "google.cloud.compute.v1beta.Disks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Disks_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of persistent disks contained within the specified zone.", - "canonical": true, - "file": "disks.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.Disks.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.DiskList", - "client": { - "shortName": "DisksClient", - "fullName": "google.cloud.compute.v1beta.DisksClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.Disks.List", - "service": { - "shortName": "Disks", - "fullName": "google.cloud.compute.v1beta.Disks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Disks_RemoveResourcePolicies_async", - "title": "AcceleratorTypes removeResourcePolicies Sample", - "origin": "API_DEFINITION", - "description": " Removes resource policies from a disk.", - "canonical": true, - "file": "disks.remove_resource_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveResourcePolicies", - "fullName": "google.cloud.compute.v1beta.Disks.RemoveResourcePolicies", - "async": true, - "parameters": [ - { - "name": "disk", - "type": "TYPE_STRING" - }, - { - "name": "disks_remove_resource_policies_request_resource", - "type": ".google.cloud.compute.v1beta.DisksRemoveResourcePoliciesRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "DisksClient", - "fullName": "google.cloud.compute.v1beta.DisksClient" - }, - "method": { - "shortName": "RemoveResourcePolicies", - "fullName": "google.cloud.compute.v1beta.Disks.RemoveResourcePolicies", - "service": { - "shortName": "Disks", - "fullName": "google.cloud.compute.v1beta.Disks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Disks_Resize_async", - "title": "AcceleratorTypes resize Sample", - "origin": "API_DEFINITION", - "description": " Resizes the specified persistent disk. You can only increase the size of the disk.", - "canonical": true, - "file": "disks.resize.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Resize", - "fullName": "google.cloud.compute.v1beta.Disks.Resize", - "async": true, - "parameters": [ - { - "name": "disk", - "type": "TYPE_STRING" - }, - { - "name": "disks_resize_request_resource", - "type": ".google.cloud.compute.v1beta.DisksResizeRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "DisksClient", - "fullName": "google.cloud.compute.v1beta.DisksClient" - }, - "method": { - "shortName": "Resize", - "fullName": "google.cloud.compute.v1beta.Disks.Resize", - "service": { - "shortName": "Disks", - "fullName": "google.cloud.compute.v1beta.Disks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Disks_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "disks.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.Disks.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "zone_set_policy_request_resource", - "type": ".google.cloud.compute.v1beta.ZoneSetPolicyRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "DisksClient", - "fullName": "google.cloud.compute.v1beta.DisksClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.Disks.SetIamPolicy", - "service": { - "shortName": "Disks", - "fullName": "google.cloud.compute.v1beta.Disks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Disks_SetLabels_async", - "title": "AcceleratorTypes setLabels Sample", - "origin": "API_DEFINITION", - "description": " Sets the labels on a disk. To learn more about labels, read theLabeling Resources documentation.", - "canonical": true, - "file": "disks.set_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1beta.Disks.SetLabels", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "zone_set_labels_request_resource", - "type": ".google.cloud.compute.v1beta.ZoneSetLabelsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "DisksClient", - "fullName": "google.cloud.compute.v1beta.DisksClient" - }, - "method": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1beta.Disks.SetLabels", - "service": { - "shortName": "Disks", - "fullName": "google.cloud.compute.v1beta.Disks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Disks_StartAsyncReplication_async", - "title": "AcceleratorTypes startAsyncReplication Sample", - "origin": "API_DEFINITION", - "description": " Starts asynchronous replication. Must be invoked on the primary disk.", - "canonical": true, - "file": "disks.start_async_replication.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StartAsyncReplication", - "fullName": "google.cloud.compute.v1beta.Disks.StartAsyncReplication", - "async": true, - "parameters": [ - { - "name": "disk", - "type": "TYPE_STRING" - }, - { - "name": "disks_start_async_replication_request_resource", - "type": ".google.cloud.compute.v1beta.DisksStartAsyncReplicationRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "DisksClient", - "fullName": "google.cloud.compute.v1beta.DisksClient" - }, - "method": { - "shortName": "StartAsyncReplication", - "fullName": "google.cloud.compute.v1beta.Disks.StartAsyncReplication", - "service": { - "shortName": "Disks", - "fullName": "google.cloud.compute.v1beta.Disks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Disks_StopAsyncReplication_async", - "title": "AcceleratorTypes stopAsyncReplication Sample", - "origin": "API_DEFINITION", - "description": " Stops asynchronous replication. Can be invoked either on the primary or on the secondary disk.", - "canonical": true, - "file": "disks.stop_async_replication.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StopAsyncReplication", - "fullName": "google.cloud.compute.v1beta.Disks.StopAsyncReplication", - "async": true, - "parameters": [ - { - "name": "disk", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "DisksClient", - "fullName": "google.cloud.compute.v1beta.DisksClient" - }, - "method": { - "shortName": "StopAsyncReplication", - "fullName": "google.cloud.compute.v1beta.Disks.StopAsyncReplication", - "service": { - "shortName": "Disks", - "fullName": "google.cloud.compute.v1beta.Disks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Disks_StopGroupAsyncReplication_async", - "title": "AcceleratorTypes stopGroupAsyncReplication Sample", - "origin": "API_DEFINITION", - "description": " Stops asynchronous replication for a consistency group of disks. Can be invoked either in the primary or secondary scope.", - "canonical": true, - "file": "disks.stop_group_async_replication.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StopGroupAsyncReplication", - "fullName": "google.cloud.compute.v1beta.Disks.StopGroupAsyncReplication", - "async": true, - "parameters": [ - { - "name": "disks_stop_group_async_replication_resource_resource", - "type": ".google.cloud.compute.v1beta.DisksStopGroupAsyncReplicationResource" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "DisksClient", - "fullName": "google.cloud.compute.v1beta.DisksClient" - }, - "method": { - "shortName": "StopGroupAsyncReplication", - "fullName": "google.cloud.compute.v1beta.Disks.StopGroupAsyncReplication", - "service": { - "shortName": "Disks", - "fullName": "google.cloud.compute.v1beta.Disks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Disks_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "disks.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.Disks.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "DisksClient", - "fullName": "google.cloud.compute.v1beta.DisksClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.Disks.TestIamPermissions", - "service": { - "shortName": "Disks", - "fullName": "google.cloud.compute.v1beta.Disks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Disks_Update_async", - "title": "AcceleratorTypes update Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified disk with the data included in the request. The update is performed only on selected fields included as part of update-mask.", - "canonical": true, - "file": "disks.update.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 89, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1beta.Disks.Update", - "async": true, - "parameters": [ - { - "name": "disk", - "type": "TYPE_STRING" - }, - { - "name": "disk_resource", - "type": ".google.cloud.compute.v1beta.Disk" - }, - { - "name": "paths", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "DisksClient", - "fullName": "google.cloud.compute.v1beta.DisksClient" - }, - "method": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1beta.Disks.Update", - "service": { - "shortName": "Disks", - "fullName": "google.cloud.compute.v1beta.Disks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Disks_UpdateKmsKey_async", - "title": "AcceleratorTypes updateKmsKey Sample", - "origin": "API_DEFINITION", - "description": " Rotates the customer-managed encryption key to the latest version for the specified persistent disk.", - "canonical": true, - "file": "disks.update_kms_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateKmsKey", - "fullName": "google.cloud.compute.v1beta.Disks.UpdateKmsKey", - "async": true, - "parameters": [ - { - "name": "disk", - "type": "TYPE_STRING" - }, - { - "name": "disk_update_kms_key_request_resource", - "type": ".google.cloud.compute.v1beta.DiskUpdateKmsKeyRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "DisksClient", - "fullName": "google.cloud.compute.v1beta.DisksClient" - }, - "method": { - "shortName": "UpdateKmsKey", - "fullName": "google.cloud.compute.v1beta.Disks.UpdateKmsKey", - "service": { - "shortName": "Disks", - "fullName": "google.cloud.compute.v1beta.Disks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_DiskSettingsService_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Get Zonal Disk Settings.", - "canonical": true, - "file": "disk_settings_service.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.DiskSettingsService.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.DiskSettings", - "client": { - "shortName": "DiskSettingsServiceClient", - "fullName": "google.cloud.compute.v1beta.DiskSettingsServiceClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.DiskSettingsService.Get", - "service": { - "shortName": "DiskSettingsService", - "fullName": "google.cloud.compute.v1beta.DiskSettingsService" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_DiskSettingsService_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patch Zonal Disk Settings", - "canonical": true, - "file": "disk_settings_service.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.DiskSettingsService.Patch", - "async": true, - "parameters": [ - { - "name": "disk_settings_resource", - "type": ".google.cloud.compute.v1beta.DiskSettings" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "DiskSettingsServiceClient", - "fullName": "google.cloud.compute.v1beta.DiskSettingsServiceClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.DiskSettingsService.Patch", - "service": { - "shortName": "DiskSettingsService", - "fullName": "google.cloud.compute.v1beta.DiskSettingsService" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_DiskTypes_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of disk types. To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "disk_types.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.DiskTypes.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1beta.DiskTypeAggregatedList", - "client": { - "shortName": "DiskTypesClient", - "fullName": "google.cloud.compute.v1beta.DiskTypesClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.DiskTypes.AggregatedList", - "service": { - "shortName": "DiskTypes", - "fullName": "google.cloud.compute.v1beta.DiskTypes" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_DiskTypes_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified disk type.", - "canonical": true, - "file": "disk_types.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.DiskTypes.Get", - "async": true, - "parameters": [ - { - "name": "disk_type", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.DiskType", - "client": { - "shortName": "DiskTypesClient", - "fullName": "google.cloud.compute.v1beta.DiskTypesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.DiskTypes.Get", - "service": { - "shortName": "DiskTypes", - "fullName": "google.cloud.compute.v1beta.DiskTypes" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_DiskTypes_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of disk types available to the specified project.", - "canonical": true, - "file": "disk_types.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.DiskTypes.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.DiskTypeList", - "client": { - "shortName": "DiskTypesClient", - "fullName": "google.cloud.compute.v1beta.DiskTypesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.DiskTypes.List", - "service": { - "shortName": "DiskTypes", - "fullName": "google.cloud.compute.v1beta.DiskTypes" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ExternalVpnGateways_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified externalVpnGateway.", - "canonical": true, - "file": "external_vpn_gateways.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.ExternalVpnGateways.Delete", - "async": true, - "parameters": [ - { - "name": "external_vpn_gateway", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "ExternalVpnGatewaysClient", - "fullName": "google.cloud.compute.v1beta.ExternalVpnGatewaysClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.ExternalVpnGateways.Delete", - "service": { - "shortName": "ExternalVpnGateways", - "fullName": "google.cloud.compute.v1beta.ExternalVpnGateways" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ExternalVpnGateways_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified externalVpnGateway. Get a list of available externalVpnGateways by making a list() request.", - "canonical": true, - "file": "external_vpn_gateways.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.ExternalVpnGateways.Get", - "async": true, - "parameters": [ - { - "name": "external_vpn_gateway", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.ExternalVpnGateway", - "client": { - "shortName": "ExternalVpnGatewaysClient", - "fullName": "google.cloud.compute.v1beta.ExternalVpnGatewaysClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.ExternalVpnGateways.Get", - "service": { - "shortName": "ExternalVpnGateways", - "fullName": "google.cloud.compute.v1beta.ExternalVpnGateways" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ExternalVpnGateways_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a ExternalVpnGateway in the specified project using the data included in the request.", - "canonical": true, - "file": "external_vpn_gateways.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.ExternalVpnGateways.Insert", - "async": true, - "parameters": [ - { - "name": "external_vpn_gateway_resource", - "type": ".google.cloud.compute.v1beta.ExternalVpnGateway" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "ExternalVpnGatewaysClient", - "fullName": "google.cloud.compute.v1beta.ExternalVpnGatewaysClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.ExternalVpnGateways.Insert", - "service": { - "shortName": "ExternalVpnGateways", - "fullName": "google.cloud.compute.v1beta.ExternalVpnGateways" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ExternalVpnGateways_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of ExternalVpnGateway available to the specified project.", - "canonical": true, - "file": "external_vpn_gateways.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.ExternalVpnGateways.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.ExternalVpnGatewayList", - "client": { - "shortName": "ExternalVpnGatewaysClient", - "fullName": "google.cloud.compute.v1beta.ExternalVpnGatewaysClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.ExternalVpnGateways.List", - "service": { - "shortName": "ExternalVpnGateways", - "fullName": "google.cloud.compute.v1beta.ExternalVpnGateways" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ExternalVpnGateways_SetLabels_async", - "title": "AcceleratorTypes setLabels Sample", - "origin": "API_DEFINITION", - "description": " Sets the labels on an ExternalVpnGateway. To learn more about labels, read the Labeling Resources documentation.", - "canonical": true, - "file": "external_vpn_gateways.set_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1beta.ExternalVpnGateways.SetLabels", - "async": true, - "parameters": [ - { - "name": "global_set_labels_request_resource", - "type": ".google.cloud.compute.v1beta.GlobalSetLabelsRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "ExternalVpnGatewaysClient", - "fullName": "google.cloud.compute.v1beta.ExternalVpnGatewaysClient" - }, - "method": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1beta.ExternalVpnGateways.SetLabels", - "service": { - "shortName": "ExternalVpnGateways", - "fullName": "google.cloud.compute.v1beta.ExternalVpnGateways" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ExternalVpnGateways_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "external_vpn_gateways.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.ExternalVpnGateways.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "ExternalVpnGatewaysClient", - "fullName": "google.cloud.compute.v1beta.ExternalVpnGatewaysClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.ExternalVpnGateways.TestIamPermissions", - "service": { - "shortName": "ExternalVpnGateways", - "fullName": "google.cloud.compute.v1beta.ExternalVpnGateways" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_FirewallPolicies_AddAssociation_async", - "title": "AcceleratorTypes addAssociation Sample", - "origin": "API_DEFINITION", - "description": " Inserts an association for the specified firewall policy.", - "canonical": true, - "file": "firewall_policies.add_association.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddAssociation", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies.AddAssociation", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "firewall_policy_association_resource", - "type": ".google.cloud.compute.v1beta.FirewallPolicyAssociation" - }, - { - "name": "replace_existing_association", - "type": "TYPE_BOOL" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "FirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.FirewallPoliciesClient" - }, - "method": { - "shortName": "AddAssociation", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies.AddAssociation", - "service": { - "shortName": "FirewallPolicies", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_FirewallPolicies_AddPacketMirroringRule_async", - "title": "AcceleratorTypes addPacketMirroringRule Sample", - "origin": "API_DEFINITION", - "description": " Inserts a packet mirroring rule into a firewall policy.", - "canonical": true, - "file": "firewall_policies.add_packet_mirroring_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddPacketMirroringRule", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies.AddPacketMirroringRule", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "firewall_policy_rule_resource", - "type": ".google.cloud.compute.v1beta.FirewallPolicyRule" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "FirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.FirewallPoliciesClient" - }, - "method": { - "shortName": "AddPacketMirroringRule", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies.AddPacketMirroringRule", - "service": { - "shortName": "FirewallPolicies", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_FirewallPolicies_AddRule_async", - "title": "AcceleratorTypes addRule Sample", - "origin": "API_DEFINITION", - "description": " Inserts a rule into a firewall policy.", - "canonical": true, - "file": "firewall_policies.add_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddRule", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies.AddRule", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "firewall_policy_rule_resource", - "type": ".google.cloud.compute.v1beta.FirewallPolicyRule" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "FirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.FirewallPoliciesClient" - }, - "method": { - "shortName": "AddRule", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies.AddRule", - "service": { - "shortName": "FirewallPolicies", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_FirewallPolicies_CloneRules_async", - "title": "AcceleratorTypes cloneRules Sample", - "origin": "API_DEFINITION", - "description": " Copies rules to the specified firewall policy.", - "canonical": true, - "file": "firewall_policies.clone_rules.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CloneRules", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies.CloneRules", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "source_firewall_policy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "FirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.FirewallPoliciesClient" - }, - "method": { - "shortName": "CloneRules", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies.CloneRules", - "service": { - "shortName": "FirewallPolicies", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_FirewallPolicies_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified policy.", - "canonical": true, - "file": "firewall_policies.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies.Delete", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "FirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.FirewallPoliciesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies.Delete", - "service": { - "shortName": "FirewallPolicies", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_FirewallPolicies_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified firewall policy.", - "canonical": true, - "file": "firewall_policies.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies.Get", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.FirewallPolicy", - "client": { - "shortName": "FirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.FirewallPoliciesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies.Get", - "service": { - "shortName": "FirewallPolicies", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_FirewallPolicies_GetAssociation_async", - "title": "AcceleratorTypes getAssociation Sample", - "origin": "API_DEFINITION", - "description": " Gets an association with the specified name.", - "canonical": true, - "file": "firewall_policies.get_association.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAssociation", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies.GetAssociation", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.FirewallPolicyAssociation", - "client": { - "shortName": "FirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.FirewallPoliciesClient" - }, - "method": { - "shortName": "GetAssociation", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies.GetAssociation", - "service": { - "shortName": "FirewallPolicies", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_FirewallPolicies_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "firewall_policies.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "FirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.FirewallPoliciesClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies.GetIamPolicy", - "service": { - "shortName": "FirewallPolicies", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_FirewallPolicies_GetPacketMirroringRule_async", - "title": "AcceleratorTypes getPacketMirroringRule Sample", - "origin": "API_DEFINITION", - "description": " Gets a packet mirroring rule of the specified priority.", - "canonical": true, - "file": "firewall_policies.get_packet_mirroring_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPacketMirroringRule", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies.GetPacketMirroringRule", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "priority", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.compute.v1beta.FirewallPolicyRule", - "client": { - "shortName": "FirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.FirewallPoliciesClient" - }, - "method": { - "shortName": "GetPacketMirroringRule", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies.GetPacketMirroringRule", - "service": { - "shortName": "FirewallPolicies", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_FirewallPolicies_GetRule_async", - "title": "AcceleratorTypes getRule Sample", - "origin": "API_DEFINITION", - "description": " Gets a rule of the specified priority.", - "canonical": true, - "file": "firewall_policies.get_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRule", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies.GetRule", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "priority", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.compute.v1beta.FirewallPolicyRule", - "client": { - "shortName": "FirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.FirewallPoliciesClient" - }, - "method": { - "shortName": "GetRule", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies.GetRule", - "service": { - "shortName": "FirewallPolicies", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_FirewallPolicies_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a new policy in the specified project using the data included in the request.", - "canonical": true, - "file": "firewall_policies.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies.Insert", - "async": true, - "parameters": [ - { - "name": "firewall_policy_resource", - "type": ".google.cloud.compute.v1beta.FirewallPolicy" - }, - { - "name": "parent_id", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "FirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.FirewallPoliciesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies.Insert", - "service": { - "shortName": "FirewallPolicies", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_FirewallPolicies_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Lists all the policies that have been configured for the specified folder or organization.", - "canonical": true, - "file": "firewall_policies.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 141, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "parent_id", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.FirewallPolicyList", - "client": { - "shortName": "FirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.FirewallPoliciesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies.List", - "service": { - "shortName": "FirewallPolicies", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_FirewallPolicies_ListAssociations_async", - "title": "AcceleratorTypes listAssociations Sample", - "origin": "API_DEFINITION", - "description": " Lists associations of a specified target, i.e., organization or folder.", - "canonical": true, - "file": "firewall_policies.list_associations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAssociations", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies.ListAssociations", - "async": true, - "parameters": [ - { - "name": "include_inherited_policies", - "type": "TYPE_BOOL" - }, - { - "name": "target_resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.FirewallPoliciesListAssociationsResponse", - "client": { - "shortName": "FirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.FirewallPoliciesClient" - }, - "method": { - "shortName": "ListAssociations", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies.ListAssociations", - "service": { - "shortName": "FirewallPolicies", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_FirewallPolicies_Move_async", - "title": "AcceleratorTypes move Sample", - "origin": "API_DEFINITION", - "description": " Moves the specified firewall policy.", - "canonical": true, - "file": "firewall_policies.move.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Move", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies.Move", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "parent_id", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "FirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.FirewallPoliciesClient" - }, - "method": { - "shortName": "Move", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies.Move", - "service": { - "shortName": "FirewallPolicies", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_FirewallPolicies_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patches the specified policy with the data included in the request.", - "canonical": true, - "file": "firewall_policies.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies.Patch", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "firewall_policy_resource", - "type": ".google.cloud.compute.v1beta.FirewallPolicy" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "FirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.FirewallPoliciesClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies.Patch", - "service": { - "shortName": "FirewallPolicies", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_FirewallPolicies_PatchPacketMirroringRule_async", - "title": "AcceleratorTypes patchPacketMirroringRule Sample", - "origin": "API_DEFINITION", - "description": " Patches a packet mirroring rule of the specified priority.", - "canonical": true, - "file": "firewall_policies.patch_packet_mirroring_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PatchPacketMirroringRule", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies.PatchPacketMirroringRule", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "firewall_policy_rule_resource", - "type": ".google.cloud.compute.v1beta.FirewallPolicyRule" - }, - { - "name": "priority", - "type": "TYPE_INT32" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "FirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.FirewallPoliciesClient" - }, - "method": { - "shortName": "PatchPacketMirroringRule", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies.PatchPacketMirroringRule", - "service": { - "shortName": "FirewallPolicies", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_FirewallPolicies_PatchRule_async", - "title": "AcceleratorTypes patchRule Sample", - "origin": "API_DEFINITION", - "description": " Patches a rule of the specified priority.", - "canonical": true, - "file": "firewall_policies.patch_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PatchRule", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies.PatchRule", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "firewall_policy_rule_resource", - "type": ".google.cloud.compute.v1beta.FirewallPolicyRule" - }, - { - "name": "priority", - "type": "TYPE_INT32" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "FirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.FirewallPoliciesClient" - }, - "method": { - "shortName": "PatchRule", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies.PatchRule", - "service": { - "shortName": "FirewallPolicies", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_FirewallPolicies_RemoveAssociation_async", - "title": "AcceleratorTypes removeAssociation Sample", - "origin": "API_DEFINITION", - "description": " Removes an association for the specified firewall policy.", - "canonical": true, - "file": "firewall_policies.remove_association.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveAssociation", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies.RemoveAssociation", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "FirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.FirewallPoliciesClient" - }, - "method": { - "shortName": "RemoveAssociation", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies.RemoveAssociation", - "service": { - "shortName": "FirewallPolicies", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_FirewallPolicies_RemovePacketMirroringRule_async", - "title": "AcceleratorTypes removePacketMirroringRule Sample", - "origin": "API_DEFINITION", - "description": " Deletes a packet mirroring rule of the specified priority.", - "canonical": true, - "file": "firewall_policies.remove_packet_mirroring_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemovePacketMirroringRule", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies.RemovePacketMirroringRule", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "priority", - "type": "TYPE_INT32" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "FirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.FirewallPoliciesClient" - }, - "method": { - "shortName": "RemovePacketMirroringRule", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies.RemovePacketMirroringRule", - "service": { - "shortName": "FirewallPolicies", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_FirewallPolicies_RemoveRule_async", - "title": "AcceleratorTypes removeRule Sample", - "origin": "API_DEFINITION", - "description": " Deletes a rule of the specified priority.", - "canonical": true, - "file": "firewall_policies.remove_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveRule", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies.RemoveRule", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "priority", - "type": "TYPE_INT32" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "FirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.FirewallPoliciesClient" - }, - "method": { - "shortName": "RemoveRule", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies.RemoveRule", - "service": { - "shortName": "FirewallPolicies", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_FirewallPolicies_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "firewall_policies.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "global_organization_set_policy_request_resource", - "type": ".google.cloud.compute.v1beta.GlobalOrganizationSetPolicyRequest" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "FirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.FirewallPoliciesClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies.SetIamPolicy", - "service": { - "shortName": "FirewallPolicies", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_FirewallPolicies_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "firewall_policies.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "FirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.FirewallPoliciesClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies.TestIamPermissions", - "service": { - "shortName": "FirewallPolicies", - "fullName": "google.cloud.compute.v1beta.FirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Firewalls_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified firewall.", - "canonical": true, - "file": "firewalls.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.Firewalls.Delete", - "async": true, - "parameters": [ - { - "name": "firewall", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "FirewallsClient", - "fullName": "google.cloud.compute.v1beta.FirewallsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.Firewalls.Delete", - "service": { - "shortName": "Firewalls", - "fullName": "google.cloud.compute.v1beta.Firewalls" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Firewalls_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified firewall.", - "canonical": true, - "file": "firewalls.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.Firewalls.Get", - "async": true, - "parameters": [ - { - "name": "firewall", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Firewall", - "client": { - "shortName": "FirewallsClient", - "fullName": "google.cloud.compute.v1beta.FirewallsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.Firewalls.Get", - "service": { - "shortName": "Firewalls", - "fullName": "google.cloud.compute.v1beta.Firewalls" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Firewalls_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a firewall rule in the specified project using the data included in the request.", - "canonical": true, - "file": "firewalls.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.Firewalls.Insert", - "async": true, - "parameters": [ - { - "name": "firewall_resource", - "type": ".google.cloud.compute.v1beta.Firewall" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "FirewallsClient", - "fullName": "google.cloud.compute.v1beta.FirewallsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.Firewalls.Insert", - "service": { - "shortName": "Firewalls", - "fullName": "google.cloud.compute.v1beta.Firewalls" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Firewalls_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of firewall rules available to the specified project.", - "canonical": true, - "file": "firewalls.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.Firewalls.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.FirewallList", - "client": { - "shortName": "FirewallsClient", - "fullName": "google.cloud.compute.v1beta.FirewallsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.Firewalls.List", - "service": { - "shortName": "Firewalls", - "fullName": "google.cloud.compute.v1beta.Firewalls" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Firewalls_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified firewall rule with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.", - "canonical": true, - "file": "firewalls.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.Firewalls.Patch", - "async": true, - "parameters": [ - { - "name": "firewall", - "type": "TYPE_STRING" - }, - { - "name": "firewall_resource", - "type": ".google.cloud.compute.v1beta.Firewall" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "FirewallsClient", - "fullName": "google.cloud.compute.v1beta.FirewallsClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.Firewalls.Patch", - "service": { - "shortName": "Firewalls", - "fullName": "google.cloud.compute.v1beta.Firewalls" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Firewalls_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "firewalls.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.Firewalls.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "FirewallsClient", - "fullName": "google.cloud.compute.v1beta.FirewallsClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.Firewalls.TestIamPermissions", - "service": { - "shortName": "Firewalls", - "fullName": "google.cloud.compute.v1beta.Firewalls" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Firewalls_Update_async", - "title": "AcceleratorTypes update Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified firewall rule with the data included in the request. Note that all fields will be updated if using PUT, even fields that are not specified. To update individual fields, please use PATCH instead.", - "canonical": true, - "file": "firewalls.update.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1beta.Firewalls.Update", - "async": true, - "parameters": [ - { - "name": "firewall", - "type": "TYPE_STRING" - }, - { - "name": "firewall_resource", - "type": ".google.cloud.compute.v1beta.Firewall" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "FirewallsClient", - "fullName": "google.cloud.compute.v1beta.FirewallsClient" - }, - "method": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1beta.Firewalls.Update", - "service": { - "shortName": "Firewalls", - "fullName": "google.cloud.compute.v1beta.Firewalls" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ForwardingRules_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of forwarding rules. To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "forwarding_rules.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.ForwardingRules.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1beta.ForwardingRuleAggregatedList", - "client": { - "shortName": "ForwardingRulesClient", - "fullName": "google.cloud.compute.v1beta.ForwardingRulesClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.ForwardingRules.AggregatedList", - "service": { - "shortName": "ForwardingRules", - "fullName": "google.cloud.compute.v1beta.ForwardingRules" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ForwardingRules_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified ForwardingRule resource.", - "canonical": true, - "file": "forwarding_rules.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.ForwardingRules.Delete", - "async": true, - "parameters": [ - { - "name": "forwarding_rule", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "ForwardingRulesClient", - "fullName": "google.cloud.compute.v1beta.ForwardingRulesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.ForwardingRules.Delete", - "service": { - "shortName": "ForwardingRules", - "fullName": "google.cloud.compute.v1beta.ForwardingRules" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ForwardingRules_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified ForwardingRule resource.", - "canonical": true, - "file": "forwarding_rules.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.ForwardingRules.Get", - "async": true, - "parameters": [ - { - "name": "forwarding_rule", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.ForwardingRule", - "client": { - "shortName": "ForwardingRulesClient", - "fullName": "google.cloud.compute.v1beta.ForwardingRulesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.ForwardingRules.Get", - "service": { - "shortName": "ForwardingRules", - "fullName": "google.cloud.compute.v1beta.ForwardingRules" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ForwardingRules_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a ForwardingRule resource in the specified project and region using the data included in the request.", - "canonical": true, - "file": "forwarding_rules.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.ForwardingRules.Insert", - "async": true, - "parameters": [ - { - "name": "forwarding_rule_resource", - "type": ".google.cloud.compute.v1beta.ForwardingRule" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "ForwardingRulesClient", - "fullName": "google.cloud.compute.v1beta.ForwardingRulesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.ForwardingRules.Insert", - "service": { - "shortName": "ForwardingRules", - "fullName": "google.cloud.compute.v1beta.ForwardingRules" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ForwardingRules_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of ForwardingRule resources available to the specified project and region.", - "canonical": true, - "file": "forwarding_rules.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.ForwardingRules.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.ForwardingRuleList", - "client": { - "shortName": "ForwardingRulesClient", - "fullName": "google.cloud.compute.v1beta.ForwardingRulesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.ForwardingRules.List", - "service": { - "shortName": "ForwardingRules", - "fullName": "google.cloud.compute.v1beta.ForwardingRules" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ForwardingRules_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified forwarding rule with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules. Currently, you can only patch the network_tier field.", - "canonical": true, - "file": "forwarding_rules.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.ForwardingRules.Patch", - "async": true, - "parameters": [ - { - "name": "forwarding_rule", - "type": "TYPE_STRING" - }, - { - "name": "forwarding_rule_resource", - "type": ".google.cloud.compute.v1beta.ForwardingRule" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "ForwardingRulesClient", - "fullName": "google.cloud.compute.v1beta.ForwardingRulesClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.ForwardingRules.Patch", - "service": { - "shortName": "ForwardingRules", - "fullName": "google.cloud.compute.v1beta.ForwardingRules" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ForwardingRules_SetLabels_async", - "title": "AcceleratorTypes setLabels Sample", - "origin": "API_DEFINITION", - "description": " Sets the labels on the specified resource. To learn more about labels, read the Labeling Resources documentation.", - "canonical": true, - "file": "forwarding_rules.set_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1beta.ForwardingRules.SetLabels", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_set_labels_request_resource", - "type": ".google.cloud.compute.v1beta.RegionSetLabelsRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "ForwardingRulesClient", - "fullName": "google.cloud.compute.v1beta.ForwardingRulesClient" - }, - "method": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1beta.ForwardingRules.SetLabels", - "service": { - "shortName": "ForwardingRules", - "fullName": "google.cloud.compute.v1beta.ForwardingRules" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ForwardingRules_SetTarget_async", - "title": "AcceleratorTypes setTarget Sample", - "origin": "API_DEFINITION", - "description": " Changes target URL for forwarding rule. The new target should be of the same type as the old target.", - "canonical": true, - "file": "forwarding_rules.set_target.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetTarget", - "fullName": "google.cloud.compute.v1beta.ForwardingRules.SetTarget", - "async": true, - "parameters": [ - { - "name": "forwarding_rule", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_reference_resource", - "type": ".google.cloud.compute.v1beta.TargetReference" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "ForwardingRulesClient", - "fullName": "google.cloud.compute.v1beta.ForwardingRulesClient" - }, - "method": { - "shortName": "SetTarget", - "fullName": "google.cloud.compute.v1beta.ForwardingRules.SetTarget", - "service": { - "shortName": "ForwardingRules", - "fullName": "google.cloud.compute.v1beta.ForwardingRules" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ForwardingRules_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "forwarding_rules.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.ForwardingRules.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "ForwardingRulesClient", - "fullName": "google.cloud.compute.v1beta.ForwardingRulesClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.ForwardingRules.TestIamPermissions", - "service": { - "shortName": "ForwardingRules", - "fullName": "google.cloud.compute.v1beta.ForwardingRules" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_FutureReservations_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of future reservations. To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "future_reservations.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.FutureReservations.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1beta.FutureReservationsAggregatedListResponse", - "client": { - "shortName": "FutureReservationsClient", - "fullName": "google.cloud.compute.v1beta.FutureReservationsClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.FutureReservations.AggregatedList", - "service": { - "shortName": "FutureReservations", - "fullName": "google.cloud.compute.v1beta.FutureReservations" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_FutureReservations_Cancel_async", - "title": "AcceleratorTypes cancel Sample", - "origin": "API_DEFINITION", - "description": " Cancel the specified future reservation.", - "canonical": true, - "file": "future_reservations.cancel.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Cancel", - "fullName": "google.cloud.compute.v1beta.FutureReservations.Cancel", - "async": true, - "parameters": [ - { - "name": "future_reservation", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "FutureReservationsClient", - "fullName": "google.cloud.compute.v1beta.FutureReservationsClient" - }, - "method": { - "shortName": "Cancel", - "fullName": "google.cloud.compute.v1beta.FutureReservations.Cancel", - "service": { - "shortName": "FutureReservations", - "fullName": "google.cloud.compute.v1beta.FutureReservations" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_FutureReservations_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified future reservation.", - "canonical": true, - "file": "future_reservations.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.FutureReservations.Delete", - "async": true, - "parameters": [ - { - "name": "future_reservation", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "FutureReservationsClient", - "fullName": "google.cloud.compute.v1beta.FutureReservationsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.FutureReservations.Delete", - "service": { - "shortName": "FutureReservations", - "fullName": "google.cloud.compute.v1beta.FutureReservations" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_FutureReservations_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Retrieves information about the specified future reservation.", - "canonical": true, - "file": "future_reservations.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.FutureReservations.Get", - "async": true, - "parameters": [ - { - "name": "future_reservation", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.FutureReservation", - "client": { - "shortName": "FutureReservationsClient", - "fullName": "google.cloud.compute.v1beta.FutureReservationsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.FutureReservations.Get", - "service": { - "shortName": "FutureReservations", - "fullName": "google.cloud.compute.v1beta.FutureReservations" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_FutureReservations_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Future Reservation.", - "canonical": true, - "file": "future_reservations.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.FutureReservations.Insert", - "async": true, - "parameters": [ - { - "name": "future_reservation_resource", - "type": ".google.cloud.compute.v1beta.FutureReservation" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "FutureReservationsClient", - "fullName": "google.cloud.compute.v1beta.FutureReservationsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.FutureReservations.Insert", - "service": { - "shortName": "FutureReservations", - "fullName": "google.cloud.compute.v1beta.FutureReservations" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_FutureReservations_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " A list of all the future reservations that have been configured for the specified project in specified zone.", - "canonical": true, - "file": "future_reservations.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.FutureReservations.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.FutureReservationsListResponse", - "client": { - "shortName": "FutureReservationsClient", - "fullName": "google.cloud.compute.v1beta.FutureReservationsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.FutureReservations.List", - "service": { - "shortName": "FutureReservations", - "fullName": "google.cloud.compute.v1beta.FutureReservations" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_FutureReservations_Update_async", - "title": "AcceleratorTypes update Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified future reservation.", - "canonical": true, - "file": "future_reservations.update.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1beta.FutureReservations.Update", - "async": true, - "parameters": [ - { - "name": "future_reservation", - "type": "TYPE_STRING" - }, - { - "name": "future_reservation_resource", - "type": ".google.cloud.compute.v1beta.FutureReservation" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "FutureReservationsClient", - "fullName": "google.cloud.compute.v1beta.FutureReservationsClient" - }, - "method": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1beta.FutureReservations.Update", - "service": { - "shortName": "FutureReservations", - "fullName": "google.cloud.compute.v1beta.FutureReservations" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_GlobalAddresses_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified address resource.", - "canonical": true, - "file": "global_addresses.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.GlobalAddresses.Delete", - "async": true, - "parameters": [ - { - "name": "address", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "GlobalAddressesClient", - "fullName": "google.cloud.compute.v1beta.GlobalAddressesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.GlobalAddresses.Delete", - "service": { - "shortName": "GlobalAddresses", - "fullName": "google.cloud.compute.v1beta.GlobalAddresses" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_GlobalAddresses_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified address resource.", - "canonical": true, - "file": "global_addresses.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.GlobalAddresses.Get", - "async": true, - "parameters": [ - { - "name": "address", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Address", - "client": { - "shortName": "GlobalAddressesClient", - "fullName": "google.cloud.compute.v1beta.GlobalAddressesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.GlobalAddresses.Get", - "service": { - "shortName": "GlobalAddresses", - "fullName": "google.cloud.compute.v1beta.GlobalAddresses" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_GlobalAddresses_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates an address resource in the specified project by using the data included in the request.", - "canonical": true, - "file": "global_addresses.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.GlobalAddresses.Insert", - "async": true, - "parameters": [ - { - "name": "address_resource", - "type": ".google.cloud.compute.v1beta.Address" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "GlobalAddressesClient", - "fullName": "google.cloud.compute.v1beta.GlobalAddressesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.GlobalAddresses.Insert", - "service": { - "shortName": "GlobalAddresses", - "fullName": "google.cloud.compute.v1beta.GlobalAddresses" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_GlobalAddresses_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of global addresses.", - "canonical": true, - "file": "global_addresses.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.GlobalAddresses.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.AddressList", - "client": { - "shortName": "GlobalAddressesClient", - "fullName": "google.cloud.compute.v1beta.GlobalAddressesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.GlobalAddresses.List", - "service": { - "shortName": "GlobalAddresses", - "fullName": "google.cloud.compute.v1beta.GlobalAddresses" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_GlobalAddresses_Move_async", - "title": "AcceleratorTypes move Sample", - "origin": "API_DEFINITION", - "description": " Moves the specified address resource from one project to another project.", - "canonical": true, - "file": "global_addresses.move.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Move", - "fullName": "google.cloud.compute.v1beta.GlobalAddresses.Move", - "async": true, - "parameters": [ - { - "name": "address", - "type": "TYPE_STRING" - }, - { - "name": "global_addresses_move_request_resource", - "type": ".google.cloud.compute.v1beta.GlobalAddressesMoveRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "GlobalAddressesClient", - "fullName": "google.cloud.compute.v1beta.GlobalAddressesClient" - }, - "method": { - "shortName": "Move", - "fullName": "google.cloud.compute.v1beta.GlobalAddresses.Move", - "service": { - "shortName": "GlobalAddresses", - "fullName": "google.cloud.compute.v1beta.GlobalAddresses" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_GlobalAddresses_SetLabels_async", - "title": "AcceleratorTypes setLabels Sample", - "origin": "API_DEFINITION", - "description": " Sets the labels on a GlobalAddress. To learn more about labels, read theLabeling Resources documentation.", - "canonical": true, - "file": "global_addresses.set_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1beta.GlobalAddresses.SetLabels", - "async": true, - "parameters": [ - { - "name": "global_set_labels_request_resource", - "type": ".google.cloud.compute.v1beta.GlobalSetLabelsRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "GlobalAddressesClient", - "fullName": "google.cloud.compute.v1beta.GlobalAddressesClient" - }, - "method": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1beta.GlobalAddresses.SetLabels", - "service": { - "shortName": "GlobalAddresses", - "fullName": "google.cloud.compute.v1beta.GlobalAddresses" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_GlobalAddresses_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "global_addresses.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.GlobalAddresses.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "GlobalAddressesClient", - "fullName": "google.cloud.compute.v1beta.GlobalAddressesClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.GlobalAddresses.TestIamPermissions", - "service": { - "shortName": "GlobalAddresses", - "fullName": "google.cloud.compute.v1beta.GlobalAddresses" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_GlobalForwardingRules_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified GlobalForwardingRule resource.", - "canonical": true, - "file": "global_forwarding_rules.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.GlobalForwardingRules.Delete", - "async": true, - "parameters": [ - { - "name": "forwarding_rule", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "GlobalForwardingRulesClient", - "fullName": "google.cloud.compute.v1beta.GlobalForwardingRulesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.GlobalForwardingRules.Delete", - "service": { - "shortName": "GlobalForwardingRules", - "fullName": "google.cloud.compute.v1beta.GlobalForwardingRules" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_GlobalForwardingRules_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified GlobalForwardingRule resource. Gets a list of available forwarding rules by making a list() request.", - "canonical": true, - "file": "global_forwarding_rules.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.GlobalForwardingRules.Get", - "async": true, - "parameters": [ - { - "name": "forwarding_rule", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.ForwardingRule", - "client": { - "shortName": "GlobalForwardingRulesClient", - "fullName": "google.cloud.compute.v1beta.GlobalForwardingRulesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.GlobalForwardingRules.Get", - "service": { - "shortName": "GlobalForwardingRules", - "fullName": "google.cloud.compute.v1beta.GlobalForwardingRules" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_GlobalForwardingRules_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a GlobalForwardingRule resource in the specified project using the data included in the request.", - "canonical": true, - "file": "global_forwarding_rules.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.GlobalForwardingRules.Insert", - "async": true, - "parameters": [ - { - "name": "forwarding_rule_resource", - "type": ".google.cloud.compute.v1beta.ForwardingRule" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "GlobalForwardingRulesClient", - "fullName": "google.cloud.compute.v1beta.GlobalForwardingRulesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.GlobalForwardingRules.Insert", - "service": { - "shortName": "GlobalForwardingRules", - "fullName": "google.cloud.compute.v1beta.GlobalForwardingRules" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_GlobalForwardingRules_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of GlobalForwardingRule resources available to the specified project.", - "canonical": true, - "file": "global_forwarding_rules.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.GlobalForwardingRules.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.ForwardingRuleList", - "client": { - "shortName": "GlobalForwardingRulesClient", - "fullName": "google.cloud.compute.v1beta.GlobalForwardingRulesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.GlobalForwardingRules.List", - "service": { - "shortName": "GlobalForwardingRules", - "fullName": "google.cloud.compute.v1beta.GlobalForwardingRules" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_GlobalForwardingRules_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified forwarding rule with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules. Currently, you can only patch the network_tier field.", - "canonical": true, - "file": "global_forwarding_rules.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.GlobalForwardingRules.Patch", - "async": true, - "parameters": [ - { - "name": "forwarding_rule", - "type": "TYPE_STRING" - }, - { - "name": "forwarding_rule_resource", - "type": ".google.cloud.compute.v1beta.ForwardingRule" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "GlobalForwardingRulesClient", - "fullName": "google.cloud.compute.v1beta.GlobalForwardingRulesClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.GlobalForwardingRules.Patch", - "service": { - "shortName": "GlobalForwardingRules", - "fullName": "google.cloud.compute.v1beta.GlobalForwardingRules" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_GlobalForwardingRules_SetLabels_async", - "title": "AcceleratorTypes setLabels Sample", - "origin": "API_DEFINITION", - "description": " Sets the labels on the specified resource. To learn more about labels, read the Labeling resources documentation.", - "canonical": true, - "file": "global_forwarding_rules.set_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1beta.GlobalForwardingRules.SetLabels", - "async": true, - "parameters": [ - { - "name": "global_set_labels_request_resource", - "type": ".google.cloud.compute.v1beta.GlobalSetLabelsRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "GlobalForwardingRulesClient", - "fullName": "google.cloud.compute.v1beta.GlobalForwardingRulesClient" - }, - "method": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1beta.GlobalForwardingRules.SetLabels", - "service": { - "shortName": "GlobalForwardingRules", - "fullName": "google.cloud.compute.v1beta.GlobalForwardingRules" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_GlobalForwardingRules_SetTarget_async", - "title": "AcceleratorTypes setTarget Sample", - "origin": "API_DEFINITION", - "description": " Changes target URL for the GlobalForwardingRule resource. The new target should be of the same type as the old target.", - "canonical": true, - "file": "global_forwarding_rules.set_target.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetTarget", - "fullName": "google.cloud.compute.v1beta.GlobalForwardingRules.SetTarget", - "async": true, - "parameters": [ - { - "name": "forwarding_rule", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_reference_resource", - "type": ".google.cloud.compute.v1beta.TargetReference" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "GlobalForwardingRulesClient", - "fullName": "google.cloud.compute.v1beta.GlobalForwardingRulesClient" - }, - "method": { - "shortName": "SetTarget", - "fullName": "google.cloud.compute.v1beta.GlobalForwardingRules.SetTarget", - "service": { - "shortName": "GlobalForwardingRules", - "fullName": "google.cloud.compute.v1beta.GlobalForwardingRules" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_GlobalForwardingRules_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "global_forwarding_rules.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.GlobalForwardingRules.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "GlobalForwardingRulesClient", - "fullName": "google.cloud.compute.v1beta.GlobalForwardingRulesClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.GlobalForwardingRules.TestIamPermissions", - "service": { - "shortName": "GlobalForwardingRules", - "fullName": "google.cloud.compute.v1beta.GlobalForwardingRules" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_GlobalNetworkEndpointGroups_AttachNetworkEndpoints_async", - "title": "AcceleratorTypes attachNetworkEndpoints Sample", - "origin": "API_DEFINITION", - "description": " Attach a network endpoint to the specified network endpoint group.", - "canonical": true, - "file": "global_network_endpoint_groups.attach_network_endpoints.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AttachNetworkEndpoints", - "fullName": "google.cloud.compute.v1beta.GlobalNetworkEndpointGroups.AttachNetworkEndpoints", - "async": true, - "parameters": [ - { - "name": "global_network_endpoint_groups_attach_endpoints_request_resource", - "type": ".google.cloud.compute.v1beta.GlobalNetworkEndpointGroupsAttachEndpointsRequest" - }, - { - "name": "network_endpoint_group", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "GlobalNetworkEndpointGroupsClient", - "fullName": "google.cloud.compute.v1beta.GlobalNetworkEndpointGroupsClient" - }, - "method": { - "shortName": "AttachNetworkEndpoints", - "fullName": "google.cloud.compute.v1beta.GlobalNetworkEndpointGroups.AttachNetworkEndpoints", - "service": { - "shortName": "GlobalNetworkEndpointGroups", - "fullName": "google.cloud.compute.v1beta.GlobalNetworkEndpointGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_GlobalNetworkEndpointGroups_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified network endpoint group.Note that the NEG cannot be deleted if there are backend services referencing it.", - "canonical": true, - "file": "global_network_endpoint_groups.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.GlobalNetworkEndpointGroups.Delete", - "async": true, - "parameters": [ - { - "name": "network_endpoint_group", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "GlobalNetworkEndpointGroupsClient", - "fullName": "google.cloud.compute.v1beta.GlobalNetworkEndpointGroupsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.GlobalNetworkEndpointGroups.Delete", - "service": { - "shortName": "GlobalNetworkEndpointGroups", - "fullName": "google.cloud.compute.v1beta.GlobalNetworkEndpointGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_GlobalNetworkEndpointGroups_DetachNetworkEndpoints_async", - "title": "AcceleratorTypes detachNetworkEndpoints Sample", - "origin": "API_DEFINITION", - "description": " Detach the network endpoint from the specified network endpoint group.", - "canonical": true, - "file": "global_network_endpoint_groups.detach_network_endpoints.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DetachNetworkEndpoints", - "fullName": "google.cloud.compute.v1beta.GlobalNetworkEndpointGroups.DetachNetworkEndpoints", - "async": true, - "parameters": [ - { - "name": "global_network_endpoint_groups_detach_endpoints_request_resource", - "type": ".google.cloud.compute.v1beta.GlobalNetworkEndpointGroupsDetachEndpointsRequest" - }, - { - "name": "network_endpoint_group", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "GlobalNetworkEndpointGroupsClient", - "fullName": "google.cloud.compute.v1beta.GlobalNetworkEndpointGroupsClient" - }, - "method": { - "shortName": "DetachNetworkEndpoints", - "fullName": "google.cloud.compute.v1beta.GlobalNetworkEndpointGroups.DetachNetworkEndpoints", - "service": { - "shortName": "GlobalNetworkEndpointGroups", - "fullName": "google.cloud.compute.v1beta.GlobalNetworkEndpointGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_GlobalNetworkEndpointGroups_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified network endpoint group.", - "canonical": true, - "file": "global_network_endpoint_groups.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.GlobalNetworkEndpointGroups.Get", - "async": true, - "parameters": [ - { - "name": "network_endpoint_group", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.NetworkEndpointGroup", - "client": { - "shortName": "GlobalNetworkEndpointGroupsClient", - "fullName": "google.cloud.compute.v1beta.GlobalNetworkEndpointGroupsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.GlobalNetworkEndpointGroups.Get", - "service": { - "shortName": "GlobalNetworkEndpointGroups", - "fullName": "google.cloud.compute.v1beta.GlobalNetworkEndpointGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_GlobalNetworkEndpointGroups_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a network endpoint group in the specified project using the parameters that are included in the request. Note: Use the following APIs to manage network endpoint groups: - To manage NEGs with zonal scope (such as zonal NEGs, hybrid connectivity NEGs): zonal API - To manage NEGs with regional scope (such as regional internet NEGs, serverless NEGs, Private Service Connect NEGs): regional API - To manage NEGs with global scope (such as global internet NEGs):global API", - "canonical": true, - "file": "global_network_endpoint_groups.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.GlobalNetworkEndpointGroups.Insert", - "async": true, - "parameters": [ - { - "name": "network_endpoint_group_resource", - "type": ".google.cloud.compute.v1beta.NetworkEndpointGroup" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "GlobalNetworkEndpointGroupsClient", - "fullName": "google.cloud.compute.v1beta.GlobalNetworkEndpointGroupsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.GlobalNetworkEndpointGroups.Insert", - "service": { - "shortName": "GlobalNetworkEndpointGroups", - "fullName": "google.cloud.compute.v1beta.GlobalNetworkEndpointGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_GlobalNetworkEndpointGroups_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of network endpoint groups that are located in the specified project.", - "canonical": true, - "file": "global_network_endpoint_groups.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.GlobalNetworkEndpointGroups.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.NetworkEndpointGroupList", - "client": { - "shortName": "GlobalNetworkEndpointGroupsClient", - "fullName": "google.cloud.compute.v1beta.GlobalNetworkEndpointGroupsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.GlobalNetworkEndpointGroups.List", - "service": { - "shortName": "GlobalNetworkEndpointGroups", - "fullName": "google.cloud.compute.v1beta.GlobalNetworkEndpointGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_GlobalNetworkEndpointGroups_ListNetworkEndpoints_async", - "title": "AcceleratorTypes listNetworkEndpoints Sample", - "origin": "API_DEFINITION", - "description": " Lists the network endpoints in the specified network endpoint group.", - "canonical": true, - "file": "global_network_endpoint_groups.list_network_endpoints.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 146, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListNetworkEndpoints", - "fullName": "google.cloud.compute.v1beta.GlobalNetworkEndpointGroups.ListNetworkEndpoints", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "network_endpoint_group", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.NetworkEndpointGroupsListNetworkEndpoints", - "client": { - "shortName": "GlobalNetworkEndpointGroupsClient", - "fullName": "google.cloud.compute.v1beta.GlobalNetworkEndpointGroupsClient" - }, - "method": { - "shortName": "ListNetworkEndpoints", - "fullName": "google.cloud.compute.v1beta.GlobalNetworkEndpointGroups.ListNetworkEndpoints", - "service": { - "shortName": "GlobalNetworkEndpointGroups", - "fullName": "google.cloud.compute.v1beta.GlobalNetworkEndpointGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_GlobalOperations_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of all operations. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "global_operations.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.GlobalOperations.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1beta.OperationAggregatedList", - "client": { - "shortName": "GlobalOperationsClient", - "fullName": "google.cloud.compute.v1beta.GlobalOperationsClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.GlobalOperations.AggregatedList", - "service": { - "shortName": "GlobalOperations", - "fullName": "google.cloud.compute.v1beta.GlobalOperations" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_GlobalOperations_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified Operations resource.", - "canonical": true, - "file": "global_operations.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.GlobalOperations.Delete", - "async": true, - "parameters": [ - { - "name": "operation", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.DeleteGlobalOperationResponse", - "client": { - "shortName": "GlobalOperationsClient", - "fullName": "google.cloud.compute.v1beta.GlobalOperationsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.GlobalOperations.Delete", - "service": { - "shortName": "GlobalOperations", - "fullName": "google.cloud.compute.v1beta.GlobalOperations" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_GlobalOperations_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified Operations resource.", - "canonical": true, - "file": "global_operations.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.GlobalOperations.Get", - "async": true, - "parameters": [ - { - "name": "operation", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "GlobalOperationsClient", - "fullName": "google.cloud.compute.v1beta.GlobalOperationsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.GlobalOperations.Get", - "service": { - "shortName": "GlobalOperations", - "fullName": "google.cloud.compute.v1beta.GlobalOperations" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_GlobalOperations_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of Operation resources contained within the specified project.", - "canonical": true, - "file": "global_operations.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.GlobalOperations.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.OperationList", - "client": { - "shortName": "GlobalOperationsClient", - "fullName": "google.cloud.compute.v1beta.GlobalOperationsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.GlobalOperations.List", - "service": { - "shortName": "GlobalOperations", - "fullName": "google.cloud.compute.v1beta.GlobalOperations" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_GlobalOperations_Wait_async", - "title": "AcceleratorTypes wait Sample", - "origin": "API_DEFINITION", - "description": " Waits for the specified Operation resource to return as `DONE` or for the request to approach the 2 minute deadline, and retrieves the specified Operation resource. This method differs from the `GET` method in that it waits for no more than the default deadline (2 minutes) and then returns the current state of the operation, which might be `DONE` or still in progress. This method is called on a best-effort basis. Specifically: - In uncommon cases, when the server is overloaded, the request might return before the default deadline is reached, or might return after zero seconds. - If the default deadline is reached, there is no guarantee that the operation is actually done when the method returns. Be prepared to retry if the operation is not `DONE`.", - "canonical": true, - "file": "global_operations.wait.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Wait", - "fullName": "google.cloud.compute.v1beta.GlobalOperations.Wait", - "async": true, - "parameters": [ - { - "name": "operation", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "GlobalOperationsClient", - "fullName": "google.cloud.compute.v1beta.GlobalOperationsClient" - }, - "method": { - "shortName": "Wait", - "fullName": "google.cloud.compute.v1beta.GlobalOperations.Wait", - "service": { - "shortName": "GlobalOperations", - "fullName": "google.cloud.compute.v1beta.GlobalOperations" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_GlobalOrganizationOperations_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified Operations resource.", - "canonical": true, - "file": "global_organization_operations.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.GlobalOrganizationOperations.Delete", - "async": true, - "parameters": [ - { - "name": "operation", - "type": "TYPE_STRING" - }, - { - "name": "parent_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.DeleteGlobalOrganizationOperationResponse", - "client": { - "shortName": "GlobalOrganizationOperationsClient", - "fullName": "google.cloud.compute.v1beta.GlobalOrganizationOperationsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.GlobalOrganizationOperations.Delete", - "service": { - "shortName": "GlobalOrganizationOperations", - "fullName": "google.cloud.compute.v1beta.GlobalOrganizationOperations" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_GlobalOrganizationOperations_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified Operations resource. Gets a list of operations by making a `list()` request.", - "canonical": true, - "file": "global_organization_operations.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.GlobalOrganizationOperations.Get", - "async": true, - "parameters": [ - { - "name": "operation", - "type": "TYPE_STRING" - }, - { - "name": "parent_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "GlobalOrganizationOperationsClient", - "fullName": "google.cloud.compute.v1beta.GlobalOrganizationOperationsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.GlobalOrganizationOperations.Get", - "service": { - "shortName": "GlobalOrganizationOperations", - "fullName": "google.cloud.compute.v1beta.GlobalOrganizationOperations" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_GlobalOrganizationOperations_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of Operation resources contained within the specified organization.", - "canonical": true, - "file": "global_organization_operations.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 139, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.GlobalOrganizationOperations.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "parent_id", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.OperationList", - "client": { - "shortName": "GlobalOrganizationOperationsClient", - "fullName": "google.cloud.compute.v1beta.GlobalOrganizationOperationsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.GlobalOrganizationOperations.List", - "service": { - "shortName": "GlobalOrganizationOperations", - "fullName": "google.cloud.compute.v1beta.GlobalOrganizationOperations" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_GlobalPublicDelegatedPrefixes_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified global PublicDelegatedPrefix.", - "canonical": true, - "file": "global_public_delegated_prefixes.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.GlobalPublicDelegatedPrefixes.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "public_delegated_prefix", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "GlobalPublicDelegatedPrefixesClient", - "fullName": "google.cloud.compute.v1beta.GlobalPublicDelegatedPrefixesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.GlobalPublicDelegatedPrefixes.Delete", - "service": { - "shortName": "GlobalPublicDelegatedPrefixes", - "fullName": "google.cloud.compute.v1beta.GlobalPublicDelegatedPrefixes" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_GlobalPublicDelegatedPrefixes_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified global PublicDelegatedPrefix resource.", - "canonical": true, - "file": "global_public_delegated_prefixes.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.GlobalPublicDelegatedPrefixes.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "public_delegated_prefix", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.PublicDelegatedPrefix", - "client": { - "shortName": "GlobalPublicDelegatedPrefixesClient", - "fullName": "google.cloud.compute.v1beta.GlobalPublicDelegatedPrefixesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.GlobalPublicDelegatedPrefixes.Get", - "service": { - "shortName": "GlobalPublicDelegatedPrefixes", - "fullName": "google.cloud.compute.v1beta.GlobalPublicDelegatedPrefixes" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_GlobalPublicDelegatedPrefixes_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a global PublicDelegatedPrefix in the specified project using the parameters that are included in the request.", - "canonical": true, - "file": "global_public_delegated_prefixes.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.GlobalPublicDelegatedPrefixes.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "public_delegated_prefix_resource", - "type": ".google.cloud.compute.v1beta.PublicDelegatedPrefix" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "GlobalPublicDelegatedPrefixesClient", - "fullName": "google.cloud.compute.v1beta.GlobalPublicDelegatedPrefixesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.GlobalPublicDelegatedPrefixes.Insert", - "service": { - "shortName": "GlobalPublicDelegatedPrefixes", - "fullName": "google.cloud.compute.v1beta.GlobalPublicDelegatedPrefixes" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_GlobalPublicDelegatedPrefixes_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Lists the global PublicDelegatedPrefixes for a project.", - "canonical": true, - "file": "global_public_delegated_prefixes.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.GlobalPublicDelegatedPrefixes.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.PublicDelegatedPrefixList", - "client": { - "shortName": "GlobalPublicDelegatedPrefixesClient", - "fullName": "google.cloud.compute.v1beta.GlobalPublicDelegatedPrefixesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.GlobalPublicDelegatedPrefixes.List", - "service": { - "shortName": "GlobalPublicDelegatedPrefixes", - "fullName": "google.cloud.compute.v1beta.GlobalPublicDelegatedPrefixes" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_GlobalPublicDelegatedPrefixes_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patches the specified global PublicDelegatedPrefix resource with the data included in the request. This method supportsPATCH semantics and usesJSON merge patch format and processing rules.", - "canonical": true, - "file": "global_public_delegated_prefixes.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.GlobalPublicDelegatedPrefixes.Patch", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "public_delegated_prefix", - "type": "TYPE_STRING" - }, - { - "name": "public_delegated_prefix_resource", - "type": ".google.cloud.compute.v1beta.PublicDelegatedPrefix" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "GlobalPublicDelegatedPrefixesClient", - "fullName": "google.cloud.compute.v1beta.GlobalPublicDelegatedPrefixesClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.GlobalPublicDelegatedPrefixes.Patch", - "service": { - "shortName": "GlobalPublicDelegatedPrefixes", - "fullName": "google.cloud.compute.v1beta.GlobalPublicDelegatedPrefixes" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_GlobalVmExtensionPolicies_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of all VM Extension Policy resources available to the specified project. To prevent failure, it's recommended that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "global_vm_extension_policies.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.GlobalVmExtensionPolicies.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1beta.VmExtensionPolicyAggregatedListResponse", - "client": { - "shortName": "GlobalVmExtensionPoliciesClient", - "fullName": "google.cloud.compute.v1beta.GlobalVmExtensionPoliciesClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.GlobalVmExtensionPolicies.AggregatedList", - "service": { - "shortName": "GlobalVmExtensionPolicies", - "fullName": "google.cloud.compute.v1beta.GlobalVmExtensionPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_GlobalVmExtensionPolicies_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Purge scoped resources (zonal policies) from a global VM extension policy, and then delete the global VM extension policy. Purge of the scoped resources is a pre-condition of the global VM extension policy deletion. The deletion of the global VM extension policy happens after the purge rollout is done, so it's not a part of the LRO. It's an automatic process that triggers in the backend.", - "canonical": true, - "file": "global_vm_extension_policies.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.GlobalVmExtensionPolicies.Delete", - "async": true, - "parameters": [ - { - "name": "global_vm_extension_policy", - "type": "TYPE_STRING" - }, - { - "name": "global_vm_extension_policy_rollout_operation_rollout_input_resource", - "type": ".google.cloud.compute.v1beta.GlobalVmExtensionPolicyRolloutOperationRolloutInput" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "GlobalVmExtensionPoliciesClient", - "fullName": "google.cloud.compute.v1beta.GlobalVmExtensionPoliciesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.GlobalVmExtensionPolicies.Delete", - "service": { - "shortName": "GlobalVmExtensionPolicies", - "fullName": "google.cloud.compute.v1beta.GlobalVmExtensionPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_GlobalVmExtensionPolicies_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a global VM extension policy.", - "canonical": true, - "file": "global_vm_extension_policies.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.GlobalVmExtensionPolicies.Get", - "async": true, - "parameters": [ - { - "name": "global_vm_extension_policy", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.GlobalVmExtensionPolicy", - "client": { - "shortName": "GlobalVmExtensionPoliciesClient", - "fullName": "google.cloud.compute.v1beta.GlobalVmExtensionPoliciesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.GlobalVmExtensionPolicies.Get", - "service": { - "shortName": "GlobalVmExtensionPolicies", - "fullName": "google.cloud.compute.v1beta.GlobalVmExtensionPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_GlobalVmExtensionPolicies_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a new project level GlobalVmExtensionPolicy.", - "canonical": true, - "file": "global_vm_extension_policies.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.GlobalVmExtensionPolicies.Insert", - "async": true, - "parameters": [ - { - "name": "global_vm_extension_policy_resource", - "type": ".google.cloud.compute.v1beta.GlobalVmExtensionPolicy" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "GlobalVmExtensionPoliciesClient", - "fullName": "google.cloud.compute.v1beta.GlobalVmExtensionPoliciesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.GlobalVmExtensionPolicies.Insert", - "service": { - "shortName": "GlobalVmExtensionPolicies", - "fullName": "google.cloud.compute.v1beta.GlobalVmExtensionPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_GlobalVmExtensionPolicies_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Lists global VM extension policies.", - "canonical": true, - "file": "global_vm_extension_policies.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.GlobalVmExtensionPolicies.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.GlobalVmExtensionPolicyList", - "client": { - "shortName": "GlobalVmExtensionPoliciesClient", - "fullName": "google.cloud.compute.v1beta.GlobalVmExtensionPoliciesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.GlobalVmExtensionPolicies.List", - "service": { - "shortName": "GlobalVmExtensionPolicies", - "fullName": "google.cloud.compute.v1beta.GlobalVmExtensionPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_GlobalVmExtensionPolicies_Update_async", - "title": "AcceleratorTypes update Sample", - "origin": "API_DEFINITION", - "description": " Updates a global VM extension policy.", - "canonical": true, - "file": "global_vm_extension_policies.update.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1beta.GlobalVmExtensionPolicies.Update", - "async": true, - "parameters": [ - { - "name": "global_vm_extension_policy", - "type": "TYPE_STRING" - }, - { - "name": "global_vm_extension_policy_resource", - "type": ".google.cloud.compute.v1beta.GlobalVmExtensionPolicy" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "GlobalVmExtensionPoliciesClient", - "fullName": "google.cloud.compute.v1beta.GlobalVmExtensionPoliciesClient" - }, - "method": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1beta.GlobalVmExtensionPolicies.Update", - "service": { - "shortName": "GlobalVmExtensionPolicies", - "fullName": "google.cloud.compute.v1beta.GlobalVmExtensionPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_HealthChecks_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of all HealthCheck resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "health_checks.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.HealthChecks.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1beta.HealthChecksAggregatedList", - "client": { - "shortName": "HealthChecksClient", - "fullName": "google.cloud.compute.v1beta.HealthChecksClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.HealthChecks.AggregatedList", - "service": { - "shortName": "HealthChecks", - "fullName": "google.cloud.compute.v1beta.HealthChecks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_HealthChecks_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified HealthCheck resource.", - "canonical": true, - "file": "health_checks.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.HealthChecks.Delete", - "async": true, - "parameters": [ - { - "name": "health_check", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "HealthChecksClient", - "fullName": "google.cloud.compute.v1beta.HealthChecksClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.HealthChecks.Delete", - "service": { - "shortName": "HealthChecks", - "fullName": "google.cloud.compute.v1beta.HealthChecks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_HealthChecks_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified HealthCheck resource.", - "canonical": true, - "file": "health_checks.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.HealthChecks.Get", - "async": true, - "parameters": [ - { - "name": "health_check", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.HealthCheck", - "client": { - "shortName": "HealthChecksClient", - "fullName": "google.cloud.compute.v1beta.HealthChecksClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.HealthChecks.Get", - "service": { - "shortName": "HealthChecks", - "fullName": "google.cloud.compute.v1beta.HealthChecks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_HealthChecks_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a HealthCheck resource in the specified project using the data included in the request.", - "canonical": true, - "file": "health_checks.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.HealthChecks.Insert", - "async": true, - "parameters": [ - { - "name": "health_check_resource", - "type": ".google.cloud.compute.v1beta.HealthCheck" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "HealthChecksClient", - "fullName": "google.cloud.compute.v1beta.HealthChecksClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.HealthChecks.Insert", - "service": { - "shortName": "HealthChecks", - "fullName": "google.cloud.compute.v1beta.HealthChecks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_HealthChecks_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of HealthCheck resources available to the specified project.", - "canonical": true, - "file": "health_checks.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.HealthChecks.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.HealthCheckList", - "client": { - "shortName": "HealthChecksClient", - "fullName": "google.cloud.compute.v1beta.HealthChecksClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.HealthChecks.List", - "service": { - "shortName": "HealthChecks", - "fullName": "google.cloud.compute.v1beta.HealthChecks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_HealthChecks_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Updates a HealthCheck resource in the specified project using the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.", - "canonical": true, - "file": "health_checks.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.HealthChecks.Patch", - "async": true, - "parameters": [ - { - "name": "health_check", - "type": "TYPE_STRING" - }, - { - "name": "health_check_resource", - "type": ".google.cloud.compute.v1beta.HealthCheck" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "HealthChecksClient", - "fullName": "google.cloud.compute.v1beta.HealthChecksClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.HealthChecks.Patch", - "service": { - "shortName": "HealthChecks", - "fullName": "google.cloud.compute.v1beta.HealthChecks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_HealthChecks_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "health_checks.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.HealthChecks.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "HealthChecksClient", - "fullName": "google.cloud.compute.v1beta.HealthChecksClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.HealthChecks.TestIamPermissions", - "service": { - "shortName": "HealthChecks", - "fullName": "google.cloud.compute.v1beta.HealthChecks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_HealthChecks_Update_async", - "title": "AcceleratorTypes update Sample", - "origin": "API_DEFINITION", - "description": " Updates a HealthCheck resource in the specified project using the data included in the request.", - "canonical": true, - "file": "health_checks.update.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1beta.HealthChecks.Update", - "async": true, - "parameters": [ - { - "name": "health_check", - "type": "TYPE_STRING" - }, - { - "name": "health_check_resource", - "type": ".google.cloud.compute.v1beta.HealthCheck" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "HealthChecksClient", - "fullName": "google.cloud.compute.v1beta.HealthChecksClient" - }, - "method": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1beta.HealthChecks.Update", - "service": { - "shortName": "HealthChecks", - "fullName": "google.cloud.compute.v1beta.HealthChecks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ImageFamilyViews_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the latest image that is part of an image family, is not deprecated and is rolled out in the specified zone.", - "canonical": true, - "file": "image_family_views.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.ImageFamilyViews.Get", - "async": true, - "parameters": [ - { - "name": "family", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.ImageFamilyView", - "client": { - "shortName": "ImageFamilyViewsClient", - "fullName": "google.cloud.compute.v1beta.ImageFamilyViewsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.ImageFamilyViews.Get", - "service": { - "shortName": "ImageFamilyViews", - "fullName": "google.cloud.compute.v1beta.ImageFamilyViews" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Images_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified image.", - "canonical": true, - "file": "images.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.Images.Delete", - "async": true, - "parameters": [ - { - "name": "image", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "ImagesClient", - "fullName": "google.cloud.compute.v1beta.ImagesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.Images.Delete", - "service": { - "shortName": "Images", - "fullName": "google.cloud.compute.v1beta.Images" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Images_Deprecate_async", - "title": "AcceleratorTypes deprecate Sample", - "origin": "API_DEFINITION", - "description": " Sets the deprecation status of an image. If an empty request body is given, clears the deprecation status instead.", - "canonical": true, - "file": "images.deprecate.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Deprecate", - "fullName": "google.cloud.compute.v1beta.Images.Deprecate", - "async": true, - "parameters": [ - { - "name": "deprecation_status_resource", - "type": ".google.cloud.compute.v1beta.DeprecationStatus" - }, - { - "name": "image", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "ImagesClient", - "fullName": "google.cloud.compute.v1beta.ImagesClient" - }, - "method": { - "shortName": "Deprecate", - "fullName": "google.cloud.compute.v1beta.Images.Deprecate", - "service": { - "shortName": "Images", - "fullName": "google.cloud.compute.v1beta.Images" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Images_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified image.", - "canonical": true, - "file": "images.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.Images.Get", - "async": true, - "parameters": [ - { - "name": "image", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Image", - "client": { - "shortName": "ImagesClient", - "fullName": "google.cloud.compute.v1beta.ImagesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.Images.Get", - "service": { - "shortName": "Images", - "fullName": "google.cloud.compute.v1beta.Images" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Images_GetFromFamily_async", - "title": "AcceleratorTypes getFromFamily Sample", - "origin": "API_DEFINITION", - "description": " Returns the latest image that is part of an image family and is not deprecated. For more information on image families, seePublic image families documentation.", - "canonical": true, - "file": "images.get_from_family.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFromFamily", - "fullName": "google.cloud.compute.v1beta.Images.GetFromFamily", - "async": true, - "parameters": [ - { - "name": "family", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Image", - "client": { - "shortName": "ImagesClient", - "fullName": "google.cloud.compute.v1beta.ImagesClient" - }, - "method": { - "shortName": "GetFromFamily", - "fullName": "google.cloud.compute.v1beta.Images.GetFromFamily", - "service": { - "shortName": "Images", - "fullName": "google.cloud.compute.v1beta.Images" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Images_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "images.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.Images.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "ImagesClient", - "fullName": "google.cloud.compute.v1beta.ImagesClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.Images.GetIamPolicy", - "service": { - "shortName": "Images", - "fullName": "google.cloud.compute.v1beta.Images" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Images_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates an image in the specified project using the data included in the request.", - "canonical": true, - "file": "images.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.Images.Insert", - "async": true, - "parameters": [ - { - "name": "force_create", - "type": "TYPE_BOOL" - }, - { - "name": "image_resource", - "type": ".google.cloud.compute.v1beta.Image" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "ImagesClient", - "fullName": "google.cloud.compute.v1beta.ImagesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.Images.Insert", - "service": { - "shortName": "Images", - "fullName": "google.cloud.compute.v1beta.Images" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Images_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of custom images available to the specified project. Custom images are images you create that belong to your project. This method does not get any images that belong to other projects, including publicly-available images, like Debian 8. If you want to get a list of publicly-available images, use this method to make a request to the respective image project, such as debian-cloud or windows-cloud.", - "canonical": true, - "file": "images.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 144, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.Images.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.ImageList", - "client": { - "shortName": "ImagesClient", - "fullName": "google.cloud.compute.v1beta.ImagesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.Images.List", - "service": { - "shortName": "Images", - "fullName": "google.cloud.compute.v1beta.Images" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Images_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patches the specified image with the data included in the request. Only the following fields can be modified: family, description, deprecation status.", - "canonical": true, - "file": "images.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.Images.Patch", - "async": true, - "parameters": [ - { - "name": "image", - "type": "TYPE_STRING" - }, - { - "name": "image_resource", - "type": ".google.cloud.compute.v1beta.Image" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "ImagesClient", - "fullName": "google.cloud.compute.v1beta.ImagesClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.Images.Patch", - "service": { - "shortName": "Images", - "fullName": "google.cloud.compute.v1beta.Images" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Images_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "images.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.Images.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "global_set_policy_request_resource", - "type": ".google.cloud.compute.v1beta.GlobalSetPolicyRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "ImagesClient", - "fullName": "google.cloud.compute.v1beta.ImagesClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.Images.SetIamPolicy", - "service": { - "shortName": "Images", - "fullName": "google.cloud.compute.v1beta.Images" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Images_SetLabels_async", - "title": "AcceleratorTypes setLabels Sample", - "origin": "API_DEFINITION", - "description": " Sets the labels on an image. To learn more about labels, read theLabeling Resources documentation.", - "canonical": true, - "file": "images.set_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1beta.Images.SetLabels", - "async": true, - "parameters": [ - { - "name": "global_set_labels_request_resource", - "type": ".google.cloud.compute.v1beta.GlobalSetLabelsRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "ImagesClient", - "fullName": "google.cloud.compute.v1beta.ImagesClient" - }, - "method": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1beta.Images.SetLabels", - "service": { - "shortName": "Images", - "fullName": "google.cloud.compute.v1beta.Images" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Images_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "images.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.Images.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "ImagesClient", - "fullName": "google.cloud.compute.v1beta.ImagesClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.Images.TestIamPermissions", - "service": { - "shortName": "Images", - "fullName": "google.cloud.compute.v1beta.Images" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstanceGroupManagerResizeRequests_Cancel_async", - "title": "AcceleratorTypes cancel Sample", - "origin": "API_DEFINITION", - "description": " Cancels the specified resize request and removes it from the queue. Cancelled resize request does no longer wait for the resources to be provisioned. Cancel is only possible for requests that are accepted in the queue.", - "canonical": true, - "file": "instance_group_manager_resize_requests.cancel.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Cancel", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagerResizeRequests.Cancel", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "resize_request", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstanceGroupManagerResizeRequestsClient", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagerResizeRequestsClient" - }, - "method": { - "shortName": "Cancel", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagerResizeRequests.Cancel", - "service": { - "shortName": "InstanceGroupManagerResizeRequests", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagerResizeRequests" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstanceGroupManagerResizeRequests_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified, inactive resize request. Requests that are still active cannot be deleted. Deleting request does not delete instances that were provisioned previously.", - "canonical": true, - "file": "instance_group_manager_resize_requests.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagerResizeRequests.Delete", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "resize_request", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstanceGroupManagerResizeRequestsClient", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagerResizeRequestsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagerResizeRequests.Delete", - "service": { - "shortName": "InstanceGroupManagerResizeRequests", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagerResizeRequests" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstanceGroupManagerResizeRequests_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns all of the details about the specified resize request.", - "canonical": true, - "file": "instance_group_manager_resize_requests.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagerResizeRequests.Get", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resize_request", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.InstanceGroupManagerResizeRequest", - "client": { - "shortName": "InstanceGroupManagerResizeRequestsClient", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagerResizeRequestsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagerResizeRequests.Get", - "service": { - "shortName": "InstanceGroupManagerResizeRequests", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagerResizeRequests" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstanceGroupManagerResizeRequests_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a new resize request that starts provisioning VMs immediately or queues VM creation.", - "canonical": true, - "file": "instance_group_manager_resize_requests.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagerResizeRequests.Insert", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "instance_group_manager_resize_request_resource", - "type": ".google.cloud.compute.v1beta.InstanceGroupManagerResizeRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstanceGroupManagerResizeRequestsClient", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagerResizeRequestsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagerResizeRequests.Insert", - "service": { - "shortName": "InstanceGroupManagerResizeRequests", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagerResizeRequests" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstanceGroupManagerResizeRequests_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of resize requests that are contained in the managed instance group.", - "canonical": true, - "file": "instance_group_manager_resize_requests.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 151, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagerResizeRequests.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.InstanceGroupManagerResizeRequestsListResponse", - "client": { - "shortName": "InstanceGroupManagerResizeRequestsClient", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagerResizeRequestsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagerResizeRequests.List", - "service": { - "shortName": "InstanceGroupManagerResizeRequests", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagerResizeRequests" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstanceGroupManagers_AbandonInstances_async", - "title": "AcceleratorTypes abandonInstances Sample", - "origin": "API_DEFINITION", - "description": " Flags the specified instances to be removed from the managed instance group. Abandoning an instance does not delete the instance, but it does remove the instance from any target pools that are applied by the managed instance group. This method reduces thetargetSize of the managed instance group by the number of instances that you abandon. This operation is marked asDONE when the action is scheduled even if the instances have not yet been removed from the group. You must separately verify the status of the abandoning action with thelistmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request.", - "canonical": true, - "file": "instance_group_managers.abandon_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AbandonInstances", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.AbandonInstances", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "instance_group_managers_abandon_instances_request_resource", - "type": ".google.cloud.compute.v1beta.InstanceGroupManagersAbandonInstancesRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagersClient" - }, - "method": { - "shortName": "AbandonInstances", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.AbandonInstances", - "service": { - "shortName": "InstanceGroupManagers", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstanceGroupManagers_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of managed instance groups and groups them by zone. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "instance_group_managers.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1beta.InstanceGroupManagerAggregatedList", - "client": { - "shortName": "InstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagersClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.AggregatedList", - "service": { - "shortName": "InstanceGroupManagers", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstanceGroupManagers_ApplyUpdatesToInstances_async", - "title": "AcceleratorTypes applyUpdatesToInstances Sample", - "origin": "API_DEFINITION", - "description": " Applies changes to selected instances on the managed instance group. This method can be used to apply new overrides and/or new versions.", - "canonical": true, - "file": "instance_group_managers.apply_updates_to_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ApplyUpdatesToInstances", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.ApplyUpdatesToInstances", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "instance_group_managers_apply_updates_request_resource", - "type": ".google.cloud.compute.v1beta.InstanceGroupManagersApplyUpdatesRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagersClient" - }, - "method": { - "shortName": "ApplyUpdatesToInstances", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.ApplyUpdatesToInstances", - "service": { - "shortName": "InstanceGroupManagers", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstanceGroupManagers_ConfigureAcceleratorTopologies_async", - "title": "AcceleratorTypes configureAcceleratorTopologies Sample", - "origin": "API_DEFINITION", - "description": " Updates the accelerator topologies configuration.", - "canonical": true, - "file": "instance_group_managers.configure_accelerator_topologies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ConfigureAcceleratorTopologies", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.ConfigureAcceleratorTopologies", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "instance_group_managers_configure_accelerator_topologies_request_resource", - "type": ".google.cloud.compute.v1beta.InstanceGroupManagersConfigureAcceleratorTopologiesRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagersClient" - }, - "method": { - "shortName": "ConfigureAcceleratorTopologies", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.ConfigureAcceleratorTopologies", - "service": { - "shortName": "InstanceGroupManagers", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstanceGroupManagers_CreateInstances_async", - "title": "AcceleratorTypes createInstances Sample", - "origin": "API_DEFINITION", - "description": " Creates instances with per-instance configurations in this managed instance group. Instances are created using the current instance template. Thecreate instances operation is marked DONE if thecreateInstances request is successful. The underlying actions take additional time. You must separately verify the status of thecreating or actions with the listmanagedinstances method.", - "canonical": true, - "file": "instance_group_managers.create_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateInstances", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.CreateInstances", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "instance_group_managers_create_instances_request_resource", - "type": ".google.cloud.compute.v1beta.InstanceGroupManagersCreateInstancesRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagersClient" - }, - "method": { - "shortName": "CreateInstances", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.CreateInstances", - "service": { - "shortName": "InstanceGroupManagers", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstanceGroupManagers_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified managed instance group and all of the instances in that group. Note that the instance group must not belong to a backend service. Read Deleting an instance group for more information.", - "canonical": true, - "file": "instance_group_managers.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.Delete", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "no_graceful_shutdown", - "type": "TYPE_BOOL" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagersClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.Delete", - "service": { - "shortName": "InstanceGroupManagers", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstanceGroupManagers_DeleteInstances_async", - "title": "AcceleratorTypes deleteInstances Sample", - "origin": "API_DEFINITION", - "description": " Flags the specified instances in the managed instance group for immediate deletion. The instances are also removed from any target pools of which they were a member. This method reduces thetargetSize of the managed instance group by the number of instances that you delete. This operation is marked as DONE when the action is scheduled even if the instances are still being deleted. You must separately verify the status of the deleting action with thelistmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request.", - "canonical": true, - "file": "instance_group_managers.delete_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 88, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteInstances", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.DeleteInstances", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "instance_group_managers_delete_instances_request_resource", - "type": ".google.cloud.compute.v1beta.InstanceGroupManagersDeleteInstancesRequest" - }, - { - "name": "no_graceful_shutdown", - "type": "TYPE_BOOL" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagersClient" - }, - "method": { - "shortName": "DeleteInstances", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.DeleteInstances", - "service": { - "shortName": "InstanceGroupManagers", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstanceGroupManagers_DeletePerInstanceConfigs_async", - "title": "AcceleratorTypes deletePerInstanceConfigs Sample", - "origin": "API_DEFINITION", - "description": " Deletes selected per-instance configurations for the managed instance group.", - "canonical": true, - "file": "instance_group_managers.delete_per_instance_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePerInstanceConfigs", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.DeletePerInstanceConfigs", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "instance_group_managers_delete_per_instance_configs_req_resource", - "type": ".google.cloud.compute.v1beta.InstanceGroupManagersDeletePerInstanceConfigsReq" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagersClient" - }, - "method": { - "shortName": "DeletePerInstanceConfigs", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.DeletePerInstanceConfigs", - "service": { - "shortName": "InstanceGroupManagers", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstanceGroupManagers_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns all of the details about the specified managed instance group.", - "canonical": true, - "file": "instance_group_managers.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.Get", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.InstanceGroupManager", - "client": { - "shortName": "InstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagersClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.Get", - "service": { - "shortName": "InstanceGroupManagers", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstanceGroupManagers_GetAvailableAcceleratorTopologies_async", - "title": "AcceleratorTypes getAvailableAcceleratorTopologies Sample", - "origin": "API_DEFINITION", - "description": " Returns information about available accelerator topologies for a given MIG.", - "canonical": true, - "file": "instance_group_managers.get_available_accelerator_topologies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAvailableAcceleratorTopologies", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.GetAvailableAcceleratorTopologies", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse", - "client": { - "shortName": "InstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagersClient" - }, - "method": { - "shortName": "GetAvailableAcceleratorTopologies", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.GetAvailableAcceleratorTopologies", - "service": { - "shortName": "InstanceGroupManagers", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstanceGroupManagers_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a managed instance group using the information that you specify in the request. After the group is created, instances in the group are created using the specified instance template. This operation is marked as DONE when the group is created even if the instances in the group have not yet been created. You must separately verify the status of the individual instances with thelistmanagedinstances method. A managed instance group can have up to 1000 VM instances per group. Please contact Cloud Support if you need an increase in this limit.", - "canonical": true, - "file": "instance_group_managers.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.Insert", - "async": true, - "parameters": [ - { - "name": "instance_group_manager_resource", - "type": ".google.cloud.compute.v1beta.InstanceGroupManager" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagersClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.Insert", - "service": { - "shortName": "InstanceGroupManagers", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstanceGroupManagers_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of managed instance groups that are contained within the specified project and zone.", - "canonical": true, - "file": "instance_group_managers.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 146, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.InstanceGroupManagerList", - "client": { - "shortName": "InstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagersClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.List", - "service": { - "shortName": "InstanceGroupManagers", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstanceGroupManagers_ListErrors_async", - "title": "AcceleratorTypes listErrors Sample", - "origin": "API_DEFINITION", - "description": " Lists all errors thrown by actions on instances for a given managed instance group. The filter and orderBy query parameters are not supported.", - "canonical": true, - "file": "instance_group_managers.list_errors.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListErrors", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.ListErrors", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.InstanceGroupManagersListErrorsResponse", - "client": { - "shortName": "InstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagersClient" - }, - "method": { - "shortName": "ListErrors", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.ListErrors", - "service": { - "shortName": "InstanceGroupManagers", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstanceGroupManagers_ListManagedInstances_async", - "title": "AcceleratorTypes listManagedInstances Sample", - "origin": "API_DEFINITION", - "description": " Lists all of the instances in the managed instance group. Each instance in the list has a currentAction, which indicates the action that the managed instance group is performing on the instance. For example, if the group is still creating an instance, the currentAction is CREATING. If a previous action failed, the list displays the errors for that failed action. The orderBy query parameter is not supported. The `pageToken` query parameter is supported only if the group's `listManagedInstancesResults` field is set to `PAGINATED`.", - "canonical": true, - "file": "instance_group_managers.list_managed_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 151, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListManagedInstances", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.ListManagedInstances", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.InstanceGroupManagersListManagedInstancesResponse", - "client": { - "shortName": "InstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagersClient" - }, - "method": { - "shortName": "ListManagedInstances", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.ListManagedInstances", - "service": { - "shortName": "InstanceGroupManagers", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstanceGroupManagers_ListPerInstanceConfigs_async", - "title": "AcceleratorTypes listPerInstanceConfigs Sample", - "origin": "API_DEFINITION", - "description": " Lists all of the per-instance configurations defined for the managed instance group. The orderBy query parameter is not supported.", - "canonical": true, - "file": "instance_group_managers.list_per_instance_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 152, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPerInstanceConfigs", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.ListPerInstanceConfigs", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.InstanceGroupManagersListPerInstanceConfigsResp", - "client": { - "shortName": "InstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagersClient" - }, - "method": { - "shortName": "ListPerInstanceConfigs", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.ListPerInstanceConfigs", - "service": { - "shortName": "InstanceGroupManagers", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstanceGroupManagers_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Updates a managed instance group using the information that you specify in the request. This operation is marked as DONE when the group is patched even if the instances in the group are still in the process of being patched. You must separately verify the status of the individual instances with thelistManagedInstances method. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules. If you update your group to specify a new template or instance configuration, it's possible that your intended specification for each VM in the group is different from the current state of that VM. To learn how to apply an updated configuration to the VMs in a MIG, seeUpdating instances in a MIG.", - "canonical": true, - "file": "instance_group_managers.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.Patch", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "instance_group_manager_resource", - "type": ".google.cloud.compute.v1beta.InstanceGroupManager" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagersClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.Patch", - "service": { - "shortName": "InstanceGroupManagers", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstanceGroupManagers_PatchPerInstanceConfigs_async", - "title": "AcceleratorTypes patchPerInstanceConfigs Sample", - "origin": "API_DEFINITION", - "description": " Inserts or patches per-instance configurations for the managed instance group. perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch.", - "canonical": true, - "file": "instance_group_managers.patch_per_instance_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PatchPerInstanceConfigs", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.PatchPerInstanceConfigs", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "instance_group_managers_patch_per_instance_configs_req_resource", - "type": ".google.cloud.compute.v1beta.InstanceGroupManagersPatchPerInstanceConfigsReq" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagersClient" - }, - "method": { - "shortName": "PatchPerInstanceConfigs", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.PatchPerInstanceConfigs", - "service": { - "shortName": "InstanceGroupManagers", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstanceGroupManagers_RecreateInstances_async", - "title": "AcceleratorTypes recreateInstances Sample", - "origin": "API_DEFINITION", - "description": " Flags the specified VM instances in the managed instance group to be immediately recreated. Each instance is recreated using the group's current configuration. This operation is marked as DONE when the flag is set even if the instances have not yet been recreated. You must separately verify the status of each instance by checking itscurrentAction field; for more information, see Checking the status of managed instances. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request.", - "canonical": true, - "file": "instance_group_managers.recreate_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 88, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RecreateInstances", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.RecreateInstances", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "instance_group_managers_recreate_instances_request_resource", - "type": ".google.cloud.compute.v1beta.InstanceGroupManagersRecreateInstancesRequest" - }, - { - "name": "no_graceful_shutdown", - "type": "TYPE_BOOL" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagersClient" - }, - "method": { - "shortName": "RecreateInstances", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.RecreateInstances", - "service": { - "shortName": "InstanceGroupManagers", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstanceGroupManagers_Resize_async", - "title": "AcceleratorTypes resize Sample", - "origin": "API_DEFINITION", - "description": " Resizes the managed instance group. If you increase the size, the group creates new instances using the current instance template. If you decrease the size, the group deletes instances. The resize operation is markedDONE when the resize actions are scheduled even if the group has not yet added or deleted any instances. You must separately verify the status of the creating or deleting actions with thelistmanagedinstances method. When resizing down, the instance group arbitrarily chooses the order in which VMs are deleted. The group takes into account some VM attributes when making the selection including: + The status of the VM instance. + The health of the VM instance. + The instance template version the VM is based on. + For regional managed instance groups, the location of the VM instance. This list is subject to change. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted.", - "canonical": true, - "file": "instance_group_managers.resize.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Resize", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.Resize", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "size", - "type": "TYPE_INT32" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagersClient" - }, - "method": { - "shortName": "Resize", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.Resize", - "service": { - "shortName": "InstanceGroupManagers", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstanceGroupManagers_ResizeAdvanced_async", - "title": "AcceleratorTypes resizeAdvanced Sample", - "origin": "API_DEFINITION", - "description": " Resizes the managed instance group with advanced configuration options like disabling creation retries. This is an extended version of theresize method. If you increase the size of the instance group, the group creates new instances using the current instance template. If you decrease the size, the group deletes instances. The resize operation is markedDONE when the resize actions are scheduled even if the group has not yet added or deleted any instances. You must separately verify the status of the creating,creatingWithoutRetries, or deleting actions with the get orlistmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted.", - "canonical": true, - "file": "instance_group_managers.resize_advanced.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResizeAdvanced", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.ResizeAdvanced", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "instance_group_managers_resize_advanced_request_resource", - "type": ".google.cloud.compute.v1beta.InstanceGroupManagersResizeAdvancedRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagersClient" - }, - "method": { - "shortName": "ResizeAdvanced", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.ResizeAdvanced", - "service": { - "shortName": "InstanceGroupManagers", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstanceGroupManagers_ResumeInstances_async", - "title": "AcceleratorTypes resumeInstances Sample", - "origin": "API_DEFINITION", - "description": " Flags the specified instances in the managed instance group to be resumed. This method increases thetargetSize and decreases the targetSuspendedSize of the managed instance group by the number of instances that you resume. The resumeInstances operation is marked DONE if the resumeInstances request is successful. The underlying actions take additional time. You must separately verify the status of theRESUMING action with thelistmanagedinstances method. In this request, you can only specify instances that are suspended. For example, if an instance was previously suspended using the suspendInstances method, it can be resumed using the resumeInstances method. If a health check is attached to the managed instance group, the specified instances will be verified as healthy after they are resumed. You can specify a maximum of 1000 instances with this method per request.", - "canonical": true, - "file": "instance_group_managers.resume_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResumeInstances", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.ResumeInstances", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "instance_group_managers_resume_instances_request_resource", - "type": ".google.cloud.compute.v1beta.InstanceGroupManagersResumeInstancesRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagersClient" - }, - "method": { - "shortName": "ResumeInstances", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.ResumeInstances", - "service": { - "shortName": "InstanceGroupManagers", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstanceGroupManagers_SetAutoHealingPolicies_async", - "title": "AcceleratorTypes setAutoHealingPolicies Sample", - "origin": "API_DEFINITION", - "description": " Motifies the autohealing policy for the instances in this managed instance group. [Deprecated] This method is deprecated. UseinstanceGroupManagers.patch instead.", - "canonical": true, - "file": "instance_group_managers.set_auto_healing_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetAutoHealingPolicies", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.SetAutoHealingPolicies", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "instance_group_managers_set_auto_healing_request_resource", - "type": ".google.cloud.compute.v1beta.InstanceGroupManagersSetAutoHealingRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagersClient" - }, - "method": { - "shortName": "SetAutoHealingPolicies", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.SetAutoHealingPolicies", - "service": { - "shortName": "InstanceGroupManagers", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstanceGroupManagers_SetInstanceTemplate_async", - "title": "AcceleratorTypes setInstanceTemplate Sample", - "origin": "API_DEFINITION", - "description": " Specifies the instance template to use when creating new instances in this group. The templates for existing instances in the group do not change unless you run recreateInstances, runapplyUpdatesToInstances, or set the group'supdatePolicy.type to PROACTIVE.", - "canonical": true, - "file": "instance_group_managers.set_instance_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetInstanceTemplate", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.SetInstanceTemplate", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "instance_group_managers_set_instance_template_request_resource", - "type": ".google.cloud.compute.v1beta.InstanceGroupManagersSetInstanceTemplateRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagersClient" - }, - "method": { - "shortName": "SetInstanceTemplate", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.SetInstanceTemplate", - "service": { - "shortName": "InstanceGroupManagers", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstanceGroupManagers_SetTargetPools_async", - "title": "AcceleratorTypes setTargetPools Sample", - "origin": "API_DEFINITION", - "description": " Modifies the target pools to which all instances in this managed instance group are assigned. The target pools automatically apply to all of the instances in the managed instance group. This operation is markedDONE when you make the request even if the instances have not yet been added to their target pools. The change might take some time to apply to all of the instances in the group depending on the size of the group.", - "canonical": true, - "file": "instance_group_managers.set_target_pools.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetTargetPools", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.SetTargetPools", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "instance_group_managers_set_target_pools_request_resource", - "type": ".google.cloud.compute.v1beta.InstanceGroupManagersSetTargetPoolsRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagersClient" - }, - "method": { - "shortName": "SetTargetPools", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.SetTargetPools", - "service": { - "shortName": "InstanceGroupManagers", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstanceGroupManagers_StartInstances_async", - "title": "AcceleratorTypes startInstances Sample", - "origin": "API_DEFINITION", - "description": " Flags the specified instances in the managed instance group to be started. This method increases thetargetSize and decreases the targetStoppedSize of the managed instance group by the number of instances that you start. The startInstances operation is marked DONE if the startInstances request is successful. The underlying actions take additional time. You must separately verify the status of theSTARTING action with thelistmanagedinstances method. In this request, you can only specify instances that are stopped. For example, if an instance was previously stopped using the stopInstances method, it can be started using the startInstances method. If a health check is attached to the managed instance group, the specified instances will be verified as healthy after they are started. You can specify a maximum of 1000 instances with this method per request.", - "canonical": true, - "file": "instance_group_managers.start_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StartInstances", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.StartInstances", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "instance_group_managers_start_instances_request_resource", - "type": ".google.cloud.compute.v1beta.InstanceGroupManagersStartInstancesRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagersClient" - }, - "method": { - "shortName": "StartInstances", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.StartInstances", - "service": { - "shortName": "InstanceGroupManagers", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstanceGroupManagers_StopInstances_async", - "title": "AcceleratorTypes stopInstances Sample", - "origin": "API_DEFINITION", - "description": " Flags the specified instances in the managed instance group to be immediately stopped. You can only specify instances that are running in this request. This method reduces thetargetSize and increases the targetStoppedSize of the managed instance group by the number of instances that you stop. The stopInstances operation is marked DONE if the stopInstances request is successful. The underlying actions take additional time. You must separately verify the status of theSTOPPING action with thelistmanagedinstances method. If the standbyPolicy.initialDelaySec field is set, the group delays stopping the instances until initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was created). This delay gives your application time to set itself up and initialize on the instance. If more thaninitialDelaySec seconds have passed sinceinstance.creationTimestamp when this method is called, there will be zero delay. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is stopped. Stopped instances can be started using the startInstances method. You can specify a maximum of 1000 instances with this method per request.", - "canonical": true, - "file": "instance_group_managers.stop_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 88, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StopInstances", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.StopInstances", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "instance_group_managers_stop_instances_request_resource", - "type": ".google.cloud.compute.v1beta.InstanceGroupManagersStopInstancesRequest" - }, - { - "name": "no_graceful_shutdown", - "type": "TYPE_BOOL" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagersClient" - }, - "method": { - "shortName": "StopInstances", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.StopInstances", - "service": { - "shortName": "InstanceGroupManagers", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstanceGroupManagers_SuspendInstances_async", - "title": "AcceleratorTypes suspendInstances Sample", - "origin": "API_DEFINITION", - "description": " Flags the specified instances in the managed instance group to be immediately suspended. You can only specify instances that are running in this request. This method reduces thetargetSize and increases the targetSuspendedSize of the managed instance group by the number of instances that you suspend. The suspendInstances operation is marked DONE if the suspendInstances request is successful. The underlying actions take additional time. You must separately verify the status of theSUSPENDING action with thelistmanagedinstances method. If the standbyPolicy.initialDelaySec field is set, the group delays suspension of the instances until initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was created). This delay gives your application time to set itself up and initialize on the instance. If more thaninitialDelaySec seconds have passed sinceinstance.creationTimestamp when this method is called, there will be zero delay. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is suspended. Suspended instances can be resumed using the resumeInstances method. You can specify a maximum of 1000 instances with this method per request.", - "canonical": true, - "file": "instance_group_managers.suspend_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SuspendInstances", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.SuspendInstances", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "instance_group_managers_suspend_instances_request_resource", - "type": ".google.cloud.compute.v1beta.InstanceGroupManagersSuspendInstancesRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagersClient" - }, - "method": { - "shortName": "SuspendInstances", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.SuspendInstances", - "service": { - "shortName": "InstanceGroupManagers", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstanceGroupManagers_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "instance_group_managers.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "InstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagersClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.TestIamPermissions", - "service": { - "shortName": "InstanceGroupManagers", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstanceGroupManagers_Update_async", - "title": "AcceleratorTypes update Sample", - "origin": "API_DEFINITION", - "description": " Updates a managed instance group using the information that you specify in the request. This operation is marked as DONE when the group is updated even if the instances in the group have not yet been updated. You must separately verify the status of the individual instances with thelistManagedInstances method. If you update your group to specify a new template or instance configuration, it's possible that your intended specification for each VM in the group is different from the current state of that VM. To learn how to apply an updated configuration to the VMs in a MIG, seeUpdating instances in a MIG.", - "canonical": true, - "file": "instance_group_managers.update.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.Update", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "instance_group_manager_resource", - "type": ".google.cloud.compute.v1beta.InstanceGroupManager" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagersClient" - }, - "method": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.Update", - "service": { - "shortName": "InstanceGroupManagers", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstanceGroupManagers_UpdatePerInstanceConfigs_async", - "title": "AcceleratorTypes updatePerInstanceConfigs Sample", - "origin": "API_DEFINITION", - "description": " Inserts or updates per-instance configurations for the managed instance group. perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch.", - "canonical": true, - "file": "instance_group_managers.update_per_instance_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdatePerInstanceConfigs", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.UpdatePerInstanceConfigs", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "instance_group_managers_update_per_instance_configs_req_resource", - "type": ".google.cloud.compute.v1beta.InstanceGroupManagersUpdatePerInstanceConfigsReq" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagersClient" - }, - "method": { - "shortName": "UpdatePerInstanceConfigs", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers.UpdatePerInstanceConfigs", - "service": { - "shortName": "InstanceGroupManagers", - "fullName": "google.cloud.compute.v1beta.InstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstanceGroups_AddInstances_async", - "title": "AcceleratorTypes addInstances Sample", - "origin": "API_DEFINITION", - "description": " Adds a list of instances to the specified instance group. All of the instances in the instance group must be in the same network/subnetwork. Read Adding instances for more information.", - "canonical": true, - "file": "instance_groups.add_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddInstances", - "fullName": "google.cloud.compute.v1beta.InstanceGroups.AddInstances", - "async": true, - "parameters": [ - { - "name": "instance_group", - "type": "TYPE_STRING" - }, - { - "name": "instance_groups_add_instances_request_resource", - "type": ".google.cloud.compute.v1beta.InstanceGroupsAddInstancesRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstanceGroupsClient", - "fullName": "google.cloud.compute.v1beta.InstanceGroupsClient" - }, - "method": { - "shortName": "AddInstances", - "fullName": "google.cloud.compute.v1beta.InstanceGroups.AddInstances", - "service": { - "shortName": "InstanceGroups", - "fullName": "google.cloud.compute.v1beta.InstanceGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstanceGroups_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of instance groups and sorts them by zone. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "instance_groups.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.InstanceGroups.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1beta.InstanceGroupAggregatedList", - "client": { - "shortName": "InstanceGroupsClient", - "fullName": "google.cloud.compute.v1beta.InstanceGroupsClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.InstanceGroups.AggregatedList", - "service": { - "shortName": "InstanceGroups", - "fullName": "google.cloud.compute.v1beta.InstanceGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstanceGroups_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified instance group. The instances in the group are not deleted. Note that instance group must not belong to a backend service. Read Deleting an instance group for more information.", - "canonical": true, - "file": "instance_groups.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.InstanceGroups.Delete", - "async": true, - "parameters": [ - { - "name": "instance_group", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstanceGroupsClient", - "fullName": "google.cloud.compute.v1beta.InstanceGroupsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.InstanceGroups.Delete", - "service": { - "shortName": "InstanceGroups", - "fullName": "google.cloud.compute.v1beta.InstanceGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstanceGroups_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified zonal instance group. Get a list of available zonal instance groups by making a list() request. For managed instance groups, use theinstanceGroupManagers or regionInstanceGroupManagers methods instead.", - "canonical": true, - "file": "instance_groups.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.InstanceGroups.Get", - "async": true, - "parameters": [ - { - "name": "instance_group", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.InstanceGroup", - "client": { - "shortName": "InstanceGroupsClient", - "fullName": "google.cloud.compute.v1beta.InstanceGroupsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.InstanceGroups.Get", - "service": { - "shortName": "InstanceGroups", - "fullName": "google.cloud.compute.v1beta.InstanceGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstanceGroups_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates an instance group in the specified project using the parameters that are included in the request.", - "canonical": true, - "file": "instance_groups.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.InstanceGroups.Insert", - "async": true, - "parameters": [ - { - "name": "instance_group_resource", - "type": ".google.cloud.compute.v1beta.InstanceGroup" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstanceGroupsClient", - "fullName": "google.cloud.compute.v1beta.InstanceGroupsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.InstanceGroups.Insert", - "service": { - "shortName": "InstanceGroups", - "fullName": "google.cloud.compute.v1beta.InstanceGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstanceGroups_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of zonal instance group resources contained within the specified zone. For managed instance groups, use theinstanceGroupManagers or regionInstanceGroupManagers methods instead.", - "canonical": true, - "file": "instance_groups.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 146, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.InstanceGroups.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.InstanceGroupList", - "client": { - "shortName": "InstanceGroupsClient", - "fullName": "google.cloud.compute.v1beta.InstanceGroupsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.InstanceGroups.List", - "service": { - "shortName": "InstanceGroups", - "fullName": "google.cloud.compute.v1beta.InstanceGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstanceGroups_ListInstances_async", - "title": "AcceleratorTypes listInstances Sample", - "origin": "API_DEFINITION", - "description": " Lists the instances in the specified instance group. The orderBy query parameter is not supported. The filter query parameter is supported, but only for expressions that use `eq` (equal) or `ne` (not equal) operators.", - "canonical": true, - "file": "instance_groups.list_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 157, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListInstances", - "fullName": "google.cloud.compute.v1beta.InstanceGroups.ListInstances", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "instance_group", - "type": "TYPE_STRING" - }, - { - "name": "instance_groups_list_instances_request_resource", - "type": ".google.cloud.compute.v1beta.InstanceGroupsListInstancesRequest" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.InstanceGroupsListInstances", - "client": { - "shortName": "InstanceGroupsClient", - "fullName": "google.cloud.compute.v1beta.InstanceGroupsClient" - }, - "method": { - "shortName": "ListInstances", - "fullName": "google.cloud.compute.v1beta.InstanceGroups.ListInstances", - "service": { - "shortName": "InstanceGroups", - "fullName": "google.cloud.compute.v1beta.InstanceGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstanceGroups_RemoveInstances_async", - "title": "AcceleratorTypes removeInstances Sample", - "origin": "API_DEFINITION", - "description": " Removes one or more instances from the specified instance group, but does not delete those instances. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration before the VM instance is removed or deleted.", - "canonical": true, - "file": "instance_groups.remove_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveInstances", - "fullName": "google.cloud.compute.v1beta.InstanceGroups.RemoveInstances", - "async": true, - "parameters": [ - { - "name": "instance_group", - "type": "TYPE_STRING" - }, - { - "name": "instance_groups_remove_instances_request_resource", - "type": ".google.cloud.compute.v1beta.InstanceGroupsRemoveInstancesRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstanceGroupsClient", - "fullName": "google.cloud.compute.v1beta.InstanceGroupsClient" - }, - "method": { - "shortName": "RemoveInstances", - "fullName": "google.cloud.compute.v1beta.InstanceGroups.RemoveInstances", - "service": { - "shortName": "InstanceGroups", - "fullName": "google.cloud.compute.v1beta.InstanceGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstanceGroups_SetNamedPorts_async", - "title": "AcceleratorTypes setNamedPorts Sample", - "origin": "API_DEFINITION", - "description": " Sets the named ports for the specified instance group.", - "canonical": true, - "file": "instance_groups.set_named_ports.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetNamedPorts", - "fullName": "google.cloud.compute.v1beta.InstanceGroups.SetNamedPorts", - "async": true, - "parameters": [ - { - "name": "instance_group", - "type": "TYPE_STRING" - }, - { - "name": "instance_groups_set_named_ports_request_resource", - "type": ".google.cloud.compute.v1beta.InstanceGroupsSetNamedPortsRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstanceGroupsClient", - "fullName": "google.cloud.compute.v1beta.InstanceGroupsClient" - }, - "method": { - "shortName": "SetNamedPorts", - "fullName": "google.cloud.compute.v1beta.InstanceGroups.SetNamedPorts", - "service": { - "shortName": "InstanceGroups", - "fullName": "google.cloud.compute.v1beta.InstanceGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstanceGroups_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "instance_groups.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.InstanceGroups.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "InstanceGroupsClient", - "fullName": "google.cloud.compute.v1beta.InstanceGroupsClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.InstanceGroups.TestIamPermissions", - "service": { - "shortName": "InstanceGroups", - "fullName": "google.cloud.compute.v1beta.InstanceGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Instances_AddAccessConfig_async", - "title": "AcceleratorTypes addAccessConfig Sample", - "origin": "API_DEFINITION", - "description": " Adds an access config to an instance's network interface.", - "canonical": true, - "file": "instances.add_access_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddAccessConfig", - "fullName": "google.cloud.compute.v1beta.Instances.AddAccessConfig", - "async": true, - "parameters": [ - { - "name": "access_config_resource", - "type": ".google.cloud.compute.v1beta.AccessConfig" - }, - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "network_interface", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1beta.InstancesClient" - }, - "method": { - "shortName": "AddAccessConfig", - "fullName": "google.cloud.compute.v1beta.Instances.AddAccessConfig", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1beta.Instances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Instances_AddNetworkInterface_async", - "title": "AcceleratorTypes addNetworkInterface Sample", - "origin": "API_DEFINITION", - "description": " Adds one dynamic network interface to an active instance.", - "canonical": true, - "file": "instances.add_network_interface.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddNetworkInterface", - "fullName": "google.cloud.compute.v1beta.Instances.AddNetworkInterface", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "network_interface_resource", - "type": ".google.cloud.compute.v1beta.NetworkInterface" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1beta.InstancesClient" - }, - "method": { - "shortName": "AddNetworkInterface", - "fullName": "google.cloud.compute.v1beta.Instances.AddNetworkInterface", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1beta.Instances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Instances_AddResourcePolicies_async", - "title": "AcceleratorTypes addResourcePolicies Sample", - "origin": "API_DEFINITION", - "description": " Adds existing resource policies to an instance. You can only add one policy right now which will be applied to this instance for scheduling live migrations.", - "canonical": true, - "file": "instances.add_resource_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddResourcePolicies", - "fullName": "google.cloud.compute.v1beta.Instances.AddResourcePolicies", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "instances_add_resource_policies_request_resource", - "type": ".google.cloud.compute.v1beta.InstancesAddResourcePoliciesRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1beta.InstancesClient" - }, - "method": { - "shortName": "AddResourcePolicies", - "fullName": "google.cloud.compute.v1beta.Instances.AddResourcePolicies", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1beta.Instances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Instances_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of all of the instances in your project across all regions and zones. The performance of this method degrades when a filter is specified on a project that has a very large number of instances. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "instances.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.Instances.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1beta.InstanceAggregatedList", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1beta.InstancesClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.Instances.AggregatedList", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1beta.Instances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Instances_AttachDisk_async", - "title": "AcceleratorTypes attachDisk Sample", - "origin": "API_DEFINITION", - "description": " Attaches an existing Disk resource to an instance. You must first create the disk before you can attach it. It is not possible to create and attach a disk at the same time. For more information, readAdding a persistent disk to your instance.", - "canonical": true, - "file": "instances.attach_disk.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 88, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AttachDisk", - "fullName": "google.cloud.compute.v1beta.Instances.AttachDisk", - "async": true, - "parameters": [ - { - "name": "attached_disk_resource", - "type": ".google.cloud.compute.v1beta.AttachedDisk" - }, - { - "name": "force_attach", - "type": "TYPE_BOOL" - }, - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1beta.InstancesClient" - }, - "method": { - "shortName": "AttachDisk", - "fullName": "google.cloud.compute.v1beta.Instances.AttachDisk", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1beta.Instances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Instances_BulkInsert_async", - "title": "AcceleratorTypes bulkInsert Sample", - "origin": "API_DEFINITION", - "description": " Creates multiple instances. Count specifies the number of instances to create. For more information, seeAbout bulk creation of VMs.", - "canonical": true, - "file": "instances.bulk_insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BulkInsert", - "fullName": "google.cloud.compute.v1beta.Instances.BulkInsert", - "async": true, - "parameters": [ - { - "name": "bulk_insert_instance_resource_resource", - "type": ".google.cloud.compute.v1beta.BulkInsertInstanceResource" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1beta.InstancesClient" - }, - "method": { - "shortName": "BulkInsert", - "fullName": "google.cloud.compute.v1beta.Instances.BulkInsert", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1beta.Instances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Instances_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified Instance resource. For more information, seeDeleting an instance.", - "canonical": true, - "file": "instances.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.Instances.Delete", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "no_graceful_shutdown", - "type": "TYPE_BOOL" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1beta.InstancesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.Instances.Delete", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1beta.Instances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Instances_DeleteAccessConfig_async", - "title": "AcceleratorTypes deleteAccessConfig Sample", - "origin": "API_DEFINITION", - "description": " Deletes an access config from an instance's network interface.", - "canonical": true, - "file": "instances.delete_access_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAccessConfig", - "fullName": "google.cloud.compute.v1beta.Instances.DeleteAccessConfig", - "async": true, - "parameters": [ - { - "name": "access_config", - "type": "TYPE_STRING" - }, - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "network_interface", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1beta.InstancesClient" - }, - "method": { - "shortName": "DeleteAccessConfig", - "fullName": "google.cloud.compute.v1beta.Instances.DeleteAccessConfig", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1beta.Instances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Instances_DeleteNetworkInterface_async", - "title": "AcceleratorTypes deleteNetworkInterface Sample", - "origin": "API_DEFINITION", - "description": " Deletes one dynamic network interface from an active instance. InstancesDeleteNetworkInterfaceRequest indicates: - instance from which to delete, using project+zone+resource_id fields; - dynamic network interface to be deleted, using network_interface_name field;", - "canonical": true, - "file": "instances.delete_network_interface.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteNetworkInterface", - "fullName": "google.cloud.compute.v1beta.Instances.DeleteNetworkInterface", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "network_interface_name", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1beta.InstancesClient" - }, - "method": { - "shortName": "DeleteNetworkInterface", - "fullName": "google.cloud.compute.v1beta.Instances.DeleteNetworkInterface", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1beta.Instances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Instances_DetachDisk_async", - "title": "AcceleratorTypes detachDisk Sample", - "origin": "API_DEFINITION", - "description": " Detaches a disk from an instance.", - "canonical": true, - "file": "instances.detach_disk.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DetachDisk", - "fullName": "google.cloud.compute.v1beta.Instances.DetachDisk", - "async": true, - "parameters": [ - { - "name": "device_name", - "type": "TYPE_STRING" - }, - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1beta.InstancesClient" - }, - "method": { - "shortName": "DetachDisk", - "fullName": "google.cloud.compute.v1beta.Instances.DetachDisk", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1beta.Instances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Instances_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified Instance resource.", - "canonical": true, - "file": "instances.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.Instances.Get", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Instance", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1beta.InstancesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.Instances.Get", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1beta.Instances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Instances_GetEffectiveFirewalls_async", - "title": "AcceleratorTypes getEffectiveFirewalls Sample", - "origin": "API_DEFINITION", - "description": " Returns effective firewalls applied to an interface of the instance.", - "canonical": true, - "file": "instances.get_effective_firewalls.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEffectiveFirewalls", - "fullName": "google.cloud.compute.v1beta.Instances.GetEffectiveFirewalls", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "network_interface", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.InstancesGetEffectiveFirewallsResponse", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1beta.InstancesClient" - }, - "method": { - "shortName": "GetEffectiveFirewalls", - "fullName": "google.cloud.compute.v1beta.Instances.GetEffectiveFirewalls", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1beta.Instances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Instances_GetGuestAttributes_async", - "title": "AcceleratorTypes getGuestAttributes Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified guest attributes entry.", - "canonical": true, - "file": "instances.get_guest_attributes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetGuestAttributes", - "fullName": "google.cloud.compute.v1beta.Instances.GetGuestAttributes", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "query_path", - "type": "TYPE_STRING" - }, - { - "name": "variable_key", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.GuestAttributes", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1beta.InstancesClient" - }, - "method": { - "shortName": "GetGuestAttributes", - "fullName": "google.cloud.compute.v1beta.Instances.GetGuestAttributes", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1beta.Instances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Instances_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "instances.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.Instances.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1beta.InstancesClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.Instances.GetIamPolicy", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1beta.Instances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Instances_GetPartnerMetadata_async", - "title": "AcceleratorTypes getPartnerMetadata Sample", - "origin": "API_DEFINITION", - "description": " Gets partner metadata of the specified instance and namespaces.", - "canonical": true, - "file": "instances.get_partner_metadata.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPartnerMetadata", - "fullName": "google.cloud.compute.v1beta.Instances.GetPartnerMetadata", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "namespaces", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.PartnerMetadata", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1beta.InstancesClient" - }, - "method": { - "shortName": "GetPartnerMetadata", - "fullName": "google.cloud.compute.v1beta.Instances.GetPartnerMetadata", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1beta.Instances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Instances_GetScreenshot_async", - "title": "AcceleratorTypes getScreenshot Sample", - "origin": "API_DEFINITION", - "description": " Returns the screenshot from the specified instance.", - "canonical": true, - "file": "instances.get_screenshot.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetScreenshot", - "fullName": "google.cloud.compute.v1beta.Instances.GetScreenshot", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Screenshot", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1beta.InstancesClient" - }, - "method": { - "shortName": "GetScreenshot", - "fullName": "google.cloud.compute.v1beta.Instances.GetScreenshot", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1beta.Instances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Instances_GetSerialPortOutput_async", - "title": "AcceleratorTypes getSerialPortOutput Sample", - "origin": "API_DEFINITION", - "description": " Returns the last 1 MB of serial port output from the specified instance.", - "canonical": true, - "file": "instances.get_serial_port_output.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSerialPortOutput", - "fullName": "google.cloud.compute.v1beta.Instances.GetSerialPortOutput", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "port", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "start", - "type": "TYPE_INT64" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.SerialPortOutput", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1beta.InstancesClient" - }, - "method": { - "shortName": "GetSerialPortOutput", - "fullName": "google.cloud.compute.v1beta.Instances.GetSerialPortOutput", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1beta.Instances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Instances_GetShieldedInstanceIdentity_async", - "title": "AcceleratorTypes getShieldedInstanceIdentity Sample", - "origin": "API_DEFINITION", - "description": " Returns the Shielded Instance Identity of an instance", - "canonical": true, - "file": "instances.get_shielded_instance_identity.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetShieldedInstanceIdentity", - "fullName": "google.cloud.compute.v1beta.Instances.GetShieldedInstanceIdentity", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.ShieldedInstanceIdentity", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1beta.InstancesClient" - }, - "method": { - "shortName": "GetShieldedInstanceIdentity", - "fullName": "google.cloud.compute.v1beta.Instances.GetShieldedInstanceIdentity", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1beta.Instances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Instances_GetShieldedVmIdentity_async", - "title": "AcceleratorTypes getShieldedVmIdentity Sample", - "origin": "API_DEFINITION", - "description": " Returns the Shielded VM Identity of an instance", - "canonical": true, - "file": "instances.get_shielded_vm_identity.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetShieldedVmIdentity", - "fullName": "google.cloud.compute.v1beta.Instances.GetShieldedVmIdentity", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.ShieldedVmIdentity", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1beta.InstancesClient" - }, - "method": { - "shortName": "GetShieldedVmIdentity", - "fullName": "google.cloud.compute.v1beta.Instances.GetShieldedVmIdentity", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1beta.Instances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Instances_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates an instance resource in the specified project using the data included in the request.", - "canonical": true, - "file": "instances.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 95, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.Instances.Insert", - "async": true, - "parameters": [ - { - "name": "instance_resource", - "type": ".google.cloud.compute.v1beta.Instance" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "source_instance_template", - "type": "TYPE_STRING" - }, - { - "name": "source_machine_image", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1beta.InstancesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.Instances.Insert", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1beta.Instances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Instances_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of instances contained within the specified zone.", - "canonical": true, - "file": "instances.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 150, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.Instances.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "view", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.InstanceList", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1beta.InstancesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.Instances.List", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1beta.Instances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Instances_ListReferrers_async", - "title": "AcceleratorTypes listReferrers Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of resources that refer to the VM instance specified in the request. For example, if the VM instance is part of a managed or unmanaged instance group, the referrers list includes the instance group. For more information, readViewing referrers to VM instances.", - "canonical": true, - "file": "instances.list_referrers.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 151, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListReferrers", - "fullName": "google.cloud.compute.v1beta.Instances.ListReferrers", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.InstanceListReferrers", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1beta.InstancesClient" - }, - "method": { - "shortName": "ListReferrers", - "fullName": "google.cloud.compute.v1beta.Instances.ListReferrers", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1beta.Instances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Instances_PatchPartnerMetadata_async", - "title": "AcceleratorTypes patchPartnerMetadata Sample", - "origin": "API_DEFINITION", - "description": " Patches partner metadata of the specified instance.", - "canonical": true, - "file": "instances.patch_partner_metadata.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PatchPartnerMetadata", - "fullName": "google.cloud.compute.v1beta.Instances.PatchPartnerMetadata", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "partner_metadata_resource", - "type": ".google.cloud.compute.v1beta.PartnerMetadata" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1beta.InstancesClient" - }, - "method": { - "shortName": "PatchPartnerMetadata", - "fullName": "google.cloud.compute.v1beta.Instances.PatchPartnerMetadata", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1beta.Instances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Instances_PerformMaintenance_async", - "title": "AcceleratorTypes performMaintenance Sample", - "origin": "API_DEFINITION", - "description": " Perform a manual maintenance on the instance.", - "canonical": true, - "file": "instances.perform_maintenance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PerformMaintenance", - "fullName": "google.cloud.compute.v1beta.Instances.PerformMaintenance", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1beta.InstancesClient" - }, - "method": { - "shortName": "PerformMaintenance", - "fullName": "google.cloud.compute.v1beta.Instances.PerformMaintenance", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1beta.Instances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Instances_RemoveResourcePolicies_async", - "title": "AcceleratorTypes removeResourcePolicies Sample", - "origin": "API_DEFINITION", - "description": " Removes resource policies from an instance.", - "canonical": true, - "file": "instances.remove_resource_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveResourcePolicies", - "fullName": "google.cloud.compute.v1beta.Instances.RemoveResourcePolicies", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "instances_remove_resource_policies_request_resource", - "type": ".google.cloud.compute.v1beta.InstancesRemoveResourcePoliciesRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1beta.InstancesClient" - }, - "method": { - "shortName": "RemoveResourcePolicies", - "fullName": "google.cloud.compute.v1beta.Instances.RemoveResourcePolicies", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1beta.Instances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Instances_ReportHostAsFaulty_async", - "title": "AcceleratorTypes reportHostAsFaulty Sample", - "origin": "API_DEFINITION", - "description": " Mark the host as faulty and try to restart the instance on a new host.", - "canonical": true, - "file": "instances.report_host_as_faulty.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReportHostAsFaulty", - "fullName": "google.cloud.compute.v1beta.Instances.ReportHostAsFaulty", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "instances_report_host_as_faulty_request_resource", - "type": ".google.cloud.compute.v1beta.InstancesReportHostAsFaultyRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1beta.InstancesClient" - }, - "method": { - "shortName": "ReportHostAsFaulty", - "fullName": "google.cloud.compute.v1beta.Instances.ReportHostAsFaulty", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1beta.Instances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Instances_Reset_async", - "title": "AcceleratorTypes reset Sample", - "origin": "API_DEFINITION", - "description": " Performs a reset on the instance. This is a hard reset. The VM does not do a graceful shutdown. For more information, seeResetting an instance.", - "canonical": true, - "file": "instances.reset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Reset", - "fullName": "google.cloud.compute.v1beta.Instances.Reset", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1beta.InstancesClient" - }, - "method": { - "shortName": "Reset", - "fullName": "google.cloud.compute.v1beta.Instances.Reset", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1beta.Instances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Instances_Resume_async", - "title": "AcceleratorTypes resume Sample", - "origin": "API_DEFINITION", - "description": " Resumes an instance that was suspended using theinstances().suspend method.", - "canonical": true, - "file": "instances.resume.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Resume", - "fullName": "google.cloud.compute.v1beta.Instances.Resume", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "instances_resume_request_resource", - "type": ".google.cloud.compute.v1beta.InstancesResumeRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1beta.InstancesClient" - }, - "method": { - "shortName": "Resume", - "fullName": "google.cloud.compute.v1beta.Instances.Resume", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1beta.Instances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Instances_SendDiagnosticInterrupt_async", - "title": "AcceleratorTypes sendDiagnosticInterrupt Sample", - "origin": "API_DEFINITION", - "description": " Sends diagnostic interrupt to the instance.", - "canonical": true, - "file": "instances.send_diagnostic_interrupt.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SendDiagnosticInterrupt", - "fullName": "google.cloud.compute.v1beta.Instances.SendDiagnosticInterrupt", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.SendDiagnosticInterruptInstanceResponse", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1beta.InstancesClient" - }, - "method": { - "shortName": "SendDiagnosticInterrupt", - "fullName": "google.cloud.compute.v1beta.Instances.SendDiagnosticInterrupt", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1beta.Instances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Instances_SetDeletionProtection_async", - "title": "AcceleratorTypes setDeletionProtection Sample", - "origin": "API_DEFINITION", - "description": " Sets deletion protection on the instance.", - "canonical": true, - "file": "instances.set_deletion_protection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetDeletionProtection", - "fullName": "google.cloud.compute.v1beta.Instances.SetDeletionProtection", - "async": true, - "parameters": [ - { - "name": "deletion_protection", - "type": "TYPE_BOOL" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1beta.InstancesClient" - }, - "method": { - "shortName": "SetDeletionProtection", - "fullName": "google.cloud.compute.v1beta.Instances.SetDeletionProtection", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1beta.Instances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Instances_SetDiskAutoDelete_async", - "title": "AcceleratorTypes setDiskAutoDelete Sample", - "origin": "API_DEFINITION", - "description": " Sets the auto-delete flag for a disk attached to an instance.", - "canonical": true, - "file": "instances.set_disk_auto_delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 88, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetDiskAutoDelete", - "fullName": "google.cloud.compute.v1beta.Instances.SetDiskAutoDelete", - "async": true, - "parameters": [ - { - "name": "auto_delete", - "type": "TYPE_BOOL" - }, - { - "name": "device_name", - "type": "TYPE_STRING" - }, - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1beta.InstancesClient" - }, - "method": { - "shortName": "SetDiskAutoDelete", - "fullName": "google.cloud.compute.v1beta.Instances.SetDiskAutoDelete", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1beta.Instances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Instances_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "instances.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.Instances.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "zone_set_policy_request_resource", - "type": ".google.cloud.compute.v1beta.ZoneSetPolicyRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1beta.InstancesClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.Instances.SetIamPolicy", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1beta.Instances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Instances_SetLabels_async", - "title": "AcceleratorTypes setLabels Sample", - "origin": "API_DEFINITION", - "description": " Sets labels on an instance. To learn more about labels, read theLabeling Resources documentation.", - "canonical": true, - "file": "instances.set_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1beta.Instances.SetLabels", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "instances_set_labels_request_resource", - "type": ".google.cloud.compute.v1beta.InstancesSetLabelsRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1beta.InstancesClient" - }, - "method": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1beta.Instances.SetLabels", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1beta.Instances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Instances_SetMachineResources_async", - "title": "AcceleratorTypes setMachineResources Sample", - "origin": "API_DEFINITION", - "description": " Changes the number and/or type of accelerator for a stopped instance to the values specified in the request.", - "canonical": true, - "file": "instances.set_machine_resources.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetMachineResources", - "fullName": "google.cloud.compute.v1beta.Instances.SetMachineResources", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "instances_set_machine_resources_request_resource", - "type": ".google.cloud.compute.v1beta.InstancesSetMachineResourcesRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1beta.InstancesClient" - }, - "method": { - "shortName": "SetMachineResources", - "fullName": "google.cloud.compute.v1beta.Instances.SetMachineResources", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1beta.Instances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Instances_SetMachineType_async", - "title": "AcceleratorTypes setMachineType Sample", - "origin": "API_DEFINITION", - "description": " Changes the machine type for a stopped instance to the machine type specified in the request.", - "canonical": true, - "file": "instances.set_machine_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetMachineType", - "fullName": "google.cloud.compute.v1beta.Instances.SetMachineType", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "instances_set_machine_type_request_resource", - "type": ".google.cloud.compute.v1beta.InstancesSetMachineTypeRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1beta.InstancesClient" - }, - "method": { - "shortName": "SetMachineType", - "fullName": "google.cloud.compute.v1beta.Instances.SetMachineType", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1beta.Instances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Instances_SetMetadata_async", - "title": "AcceleratorTypes setMetadata Sample", - "origin": "API_DEFINITION", - "description": " Sets metadata for the specified instance to the data included in the request.", - "canonical": true, - "file": "instances.set_metadata.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetMetadata", - "fullName": "google.cloud.compute.v1beta.Instances.SetMetadata", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "metadata_resource", - "type": ".google.cloud.compute.v1beta.Metadata" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1beta.InstancesClient" - }, - "method": { - "shortName": "SetMetadata", - "fullName": "google.cloud.compute.v1beta.Instances.SetMetadata", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1beta.Instances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Instances_SetMinCpuPlatform_async", - "title": "AcceleratorTypes setMinCpuPlatform Sample", - "origin": "API_DEFINITION", - "description": " Changes the minimum CPU platform that this instance should use. This method can only be called on a stopped instance. For more information, readSpecifying a Minimum CPU Platform.", - "canonical": true, - "file": "instances.set_min_cpu_platform.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetMinCpuPlatform", - "fullName": "google.cloud.compute.v1beta.Instances.SetMinCpuPlatform", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "instances_set_min_cpu_platform_request_resource", - "type": ".google.cloud.compute.v1beta.InstancesSetMinCpuPlatformRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1beta.InstancesClient" - }, - "method": { - "shortName": "SetMinCpuPlatform", - "fullName": "google.cloud.compute.v1beta.Instances.SetMinCpuPlatform", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1beta.Instances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Instances_SetName_async", - "title": "AcceleratorTypes setName Sample", - "origin": "API_DEFINITION", - "description": " Sets name of an instance.", - "canonical": true, - "file": "instances.set_name.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetName", - "fullName": "google.cloud.compute.v1beta.Instances.SetName", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "instances_set_name_request_resource", - "type": ".google.cloud.compute.v1beta.InstancesSetNameRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1beta.InstancesClient" - }, - "method": { - "shortName": "SetName", - "fullName": "google.cloud.compute.v1beta.Instances.SetName", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1beta.Instances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Instances_SetScheduling_async", - "title": "AcceleratorTypes setScheduling Sample", - "origin": "API_DEFINITION", - "description": " Sets an instance's scheduling options. You can only call this method on astopped instance, that is, a VM instance that is in a `TERMINATED` state. SeeInstance Life Cycle for more information on the possible instance states. For more information about setting scheduling options for a VM, seeSet VM host maintenance policy.", - "canonical": true, - "file": "instances.set_scheduling.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetScheduling", - "fullName": "google.cloud.compute.v1beta.Instances.SetScheduling", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "scheduling_resource", - "type": ".google.cloud.compute.v1beta.Scheduling" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1beta.InstancesClient" - }, - "method": { - "shortName": "SetScheduling", - "fullName": "google.cloud.compute.v1beta.Instances.SetScheduling", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1beta.Instances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Instances_SetSecurityPolicy_async", - "title": "AcceleratorTypes setSecurityPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the Google Cloud Armor security policy for the specified instance. For more information, seeGoogle Cloud Armor Overview", - "canonical": true, - "file": "instances.set_security_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetSecurityPolicy", - "fullName": "google.cloud.compute.v1beta.Instances.SetSecurityPolicy", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "instances_set_security_policy_request_resource", - "type": ".google.cloud.compute.v1beta.InstancesSetSecurityPolicyRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1beta.InstancesClient" - }, - "method": { - "shortName": "SetSecurityPolicy", - "fullName": "google.cloud.compute.v1beta.Instances.SetSecurityPolicy", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1beta.Instances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Instances_SetServiceAccount_async", - "title": "AcceleratorTypes setServiceAccount Sample", - "origin": "API_DEFINITION", - "description": " Sets the service account on the instance. For more information, readChanging the service account and access scopes for an instance.", - "canonical": true, - "file": "instances.set_service_account.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetServiceAccount", - "fullName": "google.cloud.compute.v1beta.Instances.SetServiceAccount", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "instances_set_service_account_request_resource", - "type": ".google.cloud.compute.v1beta.InstancesSetServiceAccountRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1beta.InstancesClient" - }, - "method": { - "shortName": "SetServiceAccount", - "fullName": "google.cloud.compute.v1beta.Instances.SetServiceAccount", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1beta.Instances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Instances_SetShieldedInstanceIntegrityPolicy_async", - "title": "AcceleratorTypes setShieldedInstanceIntegrityPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the Shielded Instance integrity policy for an instance. You can only use this method on a running instance. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.", - "canonical": true, - "file": "instances.set_shielded_instance_integrity_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetShieldedInstanceIntegrityPolicy", - "fullName": "google.cloud.compute.v1beta.Instances.SetShieldedInstanceIntegrityPolicy", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "shielded_instance_integrity_policy_resource", - "type": ".google.cloud.compute.v1beta.ShieldedInstanceIntegrityPolicy" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1beta.InstancesClient" - }, - "method": { - "shortName": "SetShieldedInstanceIntegrityPolicy", - "fullName": "google.cloud.compute.v1beta.Instances.SetShieldedInstanceIntegrityPolicy", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1beta.Instances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Instances_SetShieldedVmIntegrityPolicy_async", - "title": "AcceleratorTypes setShieldedVmIntegrityPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the Shielded VM integrity policy for a VM instance. You can only use this method on a running VM instance. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.", - "canonical": true, - "file": "instances.set_shielded_vm_integrity_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetShieldedVmIntegrityPolicy", - "fullName": "google.cloud.compute.v1beta.Instances.SetShieldedVmIntegrityPolicy", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "shielded_vm_integrity_policy_resource", - "type": ".google.cloud.compute.v1beta.ShieldedVmIntegrityPolicy" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1beta.InstancesClient" - }, - "method": { - "shortName": "SetShieldedVmIntegrityPolicy", - "fullName": "google.cloud.compute.v1beta.Instances.SetShieldedVmIntegrityPolicy", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1beta.Instances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Instances_SetTags_async", - "title": "AcceleratorTypes setTags Sample", - "origin": "API_DEFINITION", - "description": " Sets network tags for the specified instance to the data included in the request.", - "canonical": true, - "file": "instances.set_tags.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetTags", - "fullName": "google.cloud.compute.v1beta.Instances.SetTags", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "tags_resource", - "type": ".google.cloud.compute.v1beta.Tags" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1beta.InstancesClient" - }, - "method": { - "shortName": "SetTags", - "fullName": "google.cloud.compute.v1beta.Instances.SetTags", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1beta.Instances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Instances_SimulateMaintenanceEvent_async", - "title": "AcceleratorTypes simulateMaintenanceEvent Sample", - "origin": "API_DEFINITION", - "description": " Simulates a host maintenance event on a VM. For more information, see Simulate a host maintenance event.", - "canonical": true, - "file": "instances.simulate_maintenance_event.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SimulateMaintenanceEvent", - "fullName": "google.cloud.compute.v1beta.Instances.SimulateMaintenanceEvent", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "with_extended_notifications", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1beta.InstancesClient" - }, - "method": { - "shortName": "SimulateMaintenanceEvent", - "fullName": "google.cloud.compute.v1beta.Instances.SimulateMaintenanceEvent", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1beta.Instances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Instances_Start_async", - "title": "AcceleratorTypes start Sample", - "origin": "API_DEFINITION", - "description": " Starts an instance that was stopped using theinstances().stop method. For more information, seeRestart an instance.", - "canonical": true, - "file": "instances.start.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Start", - "fullName": "google.cloud.compute.v1beta.Instances.Start", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1beta.InstancesClient" - }, - "method": { - "shortName": "Start", - "fullName": "google.cloud.compute.v1beta.Instances.Start", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1beta.Instances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Instances_StartWithEncryptionKey_async", - "title": "AcceleratorTypes startWithEncryptionKey Sample", - "origin": "API_DEFINITION", - "description": " Starts an instance that was stopped using theinstances().stop method. For more information, seeRestart an instance.", - "canonical": true, - "file": "instances.start_with_encryption_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StartWithEncryptionKey", - "fullName": "google.cloud.compute.v1beta.Instances.StartWithEncryptionKey", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "instances_start_with_encryption_key_request_resource", - "type": ".google.cloud.compute.v1beta.InstancesStartWithEncryptionKeyRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1beta.InstancesClient" - }, - "method": { - "shortName": "StartWithEncryptionKey", - "fullName": "google.cloud.compute.v1beta.Instances.StartWithEncryptionKey", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1beta.Instances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Instances_Stop_async", - "title": "AcceleratorTypes stop Sample", - "origin": "API_DEFINITION", - "description": " Stops a running instance, shutting it down cleanly, and allows you to restart the instance at a later time. Stopped instances do not incur VM usage charges while they are stopped. However, resources that the VM is using, such as persistent disks and static IP addresses, will continue to be charged until they are deleted. For more information, seeStopping an instance.", - "canonical": true, - "file": "instances.stop.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Stop", - "fullName": "google.cloud.compute.v1beta.Instances.Stop", - "async": true, - "parameters": [ - { - "name": "discard_local_ssd", - "type": "TYPE_BOOL" - }, - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "no_graceful_shutdown", - "type": "TYPE_BOOL" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1beta.InstancesClient" - }, - "method": { - "shortName": "Stop", - "fullName": "google.cloud.compute.v1beta.Instances.Stop", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1beta.Instances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Instances_Suspend_async", - "title": "AcceleratorTypes suspend Sample", - "origin": "API_DEFINITION", - "description": " This method suspends a running instance, saving its state to persistent storage, and allows you to resume the instance at a later time. Suspended instances have no compute costs (cores or RAM), and incur only storage charges for the saved VM memory and localSSD data. Any charged resources the virtual machine was using, such as persistent disks and static IP addresses, will continue to be charged while the instance is suspended. For more information, see Suspending and resuming an instance.", - "canonical": true, - "file": "instances.suspend.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Suspend", - "fullName": "google.cloud.compute.v1beta.Instances.Suspend", - "async": true, - "parameters": [ - { - "name": "discard_local_ssd", - "type": "TYPE_BOOL" - }, - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1beta.InstancesClient" - }, - "method": { - "shortName": "Suspend", - "fullName": "google.cloud.compute.v1beta.Instances.Suspend", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1beta.Instances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Instances_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "instances.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.Instances.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1beta.InstancesClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.Instances.TestIamPermissions", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1beta.Instances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Instances_Update_async", - "title": "AcceleratorTypes update Sample", - "origin": "API_DEFINITION", - "description": " Updates an instance only if the necessary resources are available. This method can update only a specific set of instance properties. See Updating a running instance for a list of updatable instance properties.", - "canonical": true, - "file": "instances.update.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 58, - "end": 104, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1beta.Instances.Update", - "async": true, - "parameters": [ - { - "name": "discard_local_ssd", - "type": "TYPE_BOOL" - }, - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "instance_resource", - "type": ".google.cloud.compute.v1beta.Instance" - }, - { - "name": "minimal_action", - "type": "TYPE_STRING" - }, - { - "name": "most_disruptive_allowed_action", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1beta.InstancesClient" - }, - "method": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1beta.Instances.Update", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1beta.Instances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Instances_UpdateAccessConfig_async", - "title": "AcceleratorTypes updateAccessConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified access config from an instance's network interface with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.", - "canonical": true, - "file": "instances.update_access_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAccessConfig", - "fullName": "google.cloud.compute.v1beta.Instances.UpdateAccessConfig", - "async": true, - "parameters": [ - { - "name": "access_config_resource", - "type": ".google.cloud.compute.v1beta.AccessConfig" - }, - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "network_interface", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1beta.InstancesClient" - }, - "method": { - "shortName": "UpdateAccessConfig", - "fullName": "google.cloud.compute.v1beta.Instances.UpdateAccessConfig", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1beta.Instances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Instances_UpdateDisplayDevice_async", - "title": "AcceleratorTypes updateDisplayDevice Sample", - "origin": "API_DEFINITION", - "description": " Updates the Display config for a VM instance. You can only use this method on a stopped VM instance. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.", - "canonical": true, - "file": "instances.update_display_device.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDisplayDevice", - "fullName": "google.cloud.compute.v1beta.Instances.UpdateDisplayDevice", - "async": true, - "parameters": [ - { - "name": "display_device_resource", - "type": ".google.cloud.compute.v1beta.DisplayDevice" - }, - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1beta.InstancesClient" - }, - "method": { - "shortName": "UpdateDisplayDevice", - "fullName": "google.cloud.compute.v1beta.Instances.UpdateDisplayDevice", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1beta.Instances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Instances_UpdateNetworkInterface_async", - "title": "AcceleratorTypes updateNetworkInterface Sample", - "origin": "API_DEFINITION", - "description": " Updates an instance's network interface. This method can only update an interface's alias IP range and attached network. See Modifying alias IP ranges for an existing instance for instructions on changing alias IP ranges. See Migrating a VM between networks for instructions on migrating an interface. This method follows PATCH semantics.", - "canonical": true, - "file": "instances.update_network_interface.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateNetworkInterface", - "fullName": "google.cloud.compute.v1beta.Instances.UpdateNetworkInterface", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "network_interface", - "type": "TYPE_STRING" - }, - { - "name": "network_interface_resource", - "type": ".google.cloud.compute.v1beta.NetworkInterface" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1beta.InstancesClient" - }, - "method": { - "shortName": "UpdateNetworkInterface", - "fullName": "google.cloud.compute.v1beta.Instances.UpdateNetworkInterface", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1beta.Instances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Instances_UpdateShieldedInstanceConfig_async", - "title": "AcceleratorTypes updateShieldedInstanceConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates the Shielded Instance config for an instance. You can only use this method on a stopped instance. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.", - "canonical": true, - "file": "instances.update_shielded_instance_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateShieldedInstanceConfig", - "fullName": "google.cloud.compute.v1beta.Instances.UpdateShieldedInstanceConfig", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "shielded_instance_config_resource", - "type": ".google.cloud.compute.v1beta.ShieldedInstanceConfig" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1beta.InstancesClient" - }, - "method": { - "shortName": "UpdateShieldedInstanceConfig", - "fullName": "google.cloud.compute.v1beta.Instances.UpdateShieldedInstanceConfig", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1beta.Instances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Instances_UpdateShieldedVmConfig_async", - "title": "AcceleratorTypes updateShieldedVmConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates the Shielded VM config for a VM instance. You can only use this method on a stopped VM instance. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.", - "canonical": true, - "file": "instances.update_shielded_vm_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateShieldedVmConfig", - "fullName": "google.cloud.compute.v1beta.Instances.UpdateShieldedVmConfig", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "shielded_vm_config_resource", - "type": ".google.cloud.compute.v1beta.ShieldedVmConfig" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.compute.v1beta.InstancesClient" - }, - "method": { - "shortName": "UpdateShieldedVmConfig", - "fullName": "google.cloud.compute.v1beta.Instances.UpdateShieldedVmConfig", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.compute.v1beta.Instances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstanceSettingsService_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Get Instance settings.", - "canonical": true, - "file": "instance_settings_service.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.InstanceSettingsService.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.InstanceSettings", - "client": { - "shortName": "InstanceSettingsServiceClient", - "fullName": "google.cloud.compute.v1beta.InstanceSettingsServiceClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.InstanceSettingsService.Get", - "service": { - "shortName": "InstanceSettingsService", - "fullName": "google.cloud.compute.v1beta.InstanceSettingsService" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstanceSettingsService_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patch Instance settings", - "canonical": true, - "file": "instance_settings_service.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.InstanceSettingsService.Patch", - "async": true, - "parameters": [ - { - "name": "instance_settings_resource", - "type": ".google.cloud.compute.v1beta.InstanceSettings" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstanceSettingsServiceClient", - "fullName": "google.cloud.compute.v1beta.InstanceSettingsServiceClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.InstanceSettingsService.Patch", - "service": { - "shortName": "InstanceSettingsService", - "fullName": "google.cloud.compute.v1beta.InstanceSettingsService" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstanceTemplates_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of all InstanceTemplates resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "instance_templates.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.InstanceTemplates.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1beta.InstanceTemplateAggregatedList", - "client": { - "shortName": "InstanceTemplatesClient", - "fullName": "google.cloud.compute.v1beta.InstanceTemplatesClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.InstanceTemplates.AggregatedList", - "service": { - "shortName": "InstanceTemplates", - "fullName": "google.cloud.compute.v1beta.InstanceTemplates" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstanceTemplates_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified instance template. Deleting an instance template is permanent and cannot be undone. It is not possible to delete templates that are already in use by a managed instance group.", - "canonical": true, - "file": "instance_templates.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.InstanceTemplates.Delete", - "async": true, - "parameters": [ - { - "name": "instance_template", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstanceTemplatesClient", - "fullName": "google.cloud.compute.v1beta.InstanceTemplatesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.InstanceTemplates.Delete", - "service": { - "shortName": "InstanceTemplates", - "fullName": "google.cloud.compute.v1beta.InstanceTemplates" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstanceTemplates_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified instance template.", - "canonical": true, - "file": "instance_templates.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.InstanceTemplates.Get", - "async": true, - "parameters": [ - { - "name": "instance_template", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.InstanceTemplate", - "client": { - "shortName": "InstanceTemplatesClient", - "fullName": "google.cloud.compute.v1beta.InstanceTemplatesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.InstanceTemplates.Get", - "service": { - "shortName": "InstanceTemplates", - "fullName": "google.cloud.compute.v1beta.InstanceTemplates" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstanceTemplates_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "instance_templates.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.InstanceTemplates.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "InstanceTemplatesClient", - "fullName": "google.cloud.compute.v1beta.InstanceTemplatesClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.InstanceTemplates.GetIamPolicy", - "service": { - "shortName": "InstanceTemplates", - "fullName": "google.cloud.compute.v1beta.InstanceTemplates" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstanceTemplates_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates an instance template in the specified project using the data that is included in the request. If you are creating a new template to update an existing instance group, your new instance template must use the same network or, if applicable, the same subnetwork as the original template.", - "canonical": true, - "file": "instance_templates.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.InstanceTemplates.Insert", - "async": true, - "parameters": [ - { - "name": "instance_template_resource", - "type": ".google.cloud.compute.v1beta.InstanceTemplate" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstanceTemplatesClient", - "fullName": "google.cloud.compute.v1beta.InstanceTemplatesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.InstanceTemplates.Insert", - "service": { - "shortName": "InstanceTemplates", - "fullName": "google.cloud.compute.v1beta.InstanceTemplates" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstanceTemplates_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of instance templates that are contained within the specified project.", - "canonical": true, - "file": "instance_templates.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.InstanceTemplates.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "view", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.InstanceTemplateList", - "client": { - "shortName": "InstanceTemplatesClient", - "fullName": "google.cloud.compute.v1beta.InstanceTemplatesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.InstanceTemplates.List", - "service": { - "shortName": "InstanceTemplates", - "fullName": "google.cloud.compute.v1beta.InstanceTemplates" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstanceTemplates_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "instance_templates.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.InstanceTemplates.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "global_set_policy_request_resource", - "type": ".google.cloud.compute.v1beta.GlobalSetPolicyRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "InstanceTemplatesClient", - "fullName": "google.cloud.compute.v1beta.InstanceTemplatesClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.InstanceTemplates.SetIamPolicy", - "service": { - "shortName": "InstanceTemplates", - "fullName": "google.cloud.compute.v1beta.InstanceTemplates" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstanceTemplates_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "instance_templates.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.InstanceTemplates.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "InstanceTemplatesClient", - "fullName": "google.cloud.compute.v1beta.InstanceTemplatesClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.InstanceTemplates.TestIamPermissions", - "service": { - "shortName": "InstanceTemplates", - "fullName": "google.cloud.compute.v1beta.InstanceTemplates" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstantSnapshotGroups_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " deletes a Zonal InstantSnapshotGroup resource", - "canonical": true, - "file": "instant_snapshot_groups.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.InstantSnapshotGroups.Delete", - "async": true, - "parameters": [ - { - "name": "instant_snapshot_group", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstantSnapshotGroupsClient", - "fullName": "google.cloud.compute.v1beta.InstantSnapshotGroupsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.InstantSnapshotGroups.Delete", - "service": { - "shortName": "InstantSnapshotGroups", - "fullName": "google.cloud.compute.v1beta.InstantSnapshotGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstantSnapshotGroups_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " returns the specified InstantSnapshotGroup resource in the specified zone.", - "canonical": true, - "file": "instant_snapshot_groups.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.InstantSnapshotGroups.Get", - "async": true, - "parameters": [ - { - "name": "instant_snapshot_group", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.InstantSnapshotGroup", - "client": { - "shortName": "InstantSnapshotGroupsClient", - "fullName": "google.cloud.compute.v1beta.InstantSnapshotGroupsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.InstantSnapshotGroups.Get", - "service": { - "shortName": "InstantSnapshotGroups", - "fullName": "google.cloud.compute.v1beta.InstantSnapshotGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstantSnapshotGroups_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "instant_snapshot_groups.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.InstantSnapshotGroups.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "InstantSnapshotGroupsClient", - "fullName": "google.cloud.compute.v1beta.InstantSnapshotGroupsClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.InstantSnapshotGroups.GetIamPolicy", - "service": { - "shortName": "InstantSnapshotGroups", - "fullName": "google.cloud.compute.v1beta.InstantSnapshotGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstantSnapshotGroups_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " inserts a Zonal InstantSnapshotGroup resource", - "canonical": true, - "file": "instant_snapshot_groups.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.InstantSnapshotGroups.Insert", - "async": true, - "parameters": [ - { - "name": "instant_snapshot_group_resource", - "type": ".google.cloud.compute.v1beta.InstantSnapshotGroup" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "source_consistency_group", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstantSnapshotGroupsClient", - "fullName": "google.cloud.compute.v1beta.InstantSnapshotGroupsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.InstantSnapshotGroups.Insert", - "service": { - "shortName": "InstantSnapshotGroups", - "fullName": "google.cloud.compute.v1beta.InstantSnapshotGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstantSnapshotGroups_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " retrieves the list of InstantSnapshotGroup resources contained within the specified zone.", - "canonical": true, - "file": "instant_snapshot_groups.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.InstantSnapshotGroups.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.ListInstantSnapshotGroups", - "client": { - "shortName": "InstantSnapshotGroupsClient", - "fullName": "google.cloud.compute.v1beta.InstantSnapshotGroupsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.InstantSnapshotGroups.List", - "service": { - "shortName": "InstantSnapshotGroups", - "fullName": "google.cloud.compute.v1beta.InstantSnapshotGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstantSnapshotGroups_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "instant_snapshot_groups.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.InstantSnapshotGroups.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "zone_set_policy_request_resource", - "type": ".google.cloud.compute.v1beta.ZoneSetPolicyRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "InstantSnapshotGroupsClient", - "fullName": "google.cloud.compute.v1beta.InstantSnapshotGroupsClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.InstantSnapshotGroups.SetIamPolicy", - "service": { - "shortName": "InstantSnapshotGroups", - "fullName": "google.cloud.compute.v1beta.InstantSnapshotGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstantSnapshotGroups_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "instant_snapshot_groups.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.InstantSnapshotGroups.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "InstantSnapshotGroupsClient", - "fullName": "google.cloud.compute.v1beta.InstantSnapshotGroupsClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.InstantSnapshotGroups.TestIamPermissions", - "service": { - "shortName": "InstantSnapshotGroups", - "fullName": "google.cloud.compute.v1beta.InstantSnapshotGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstantSnapshots_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of instantSnapshots. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "instant_snapshots.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.InstantSnapshots.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1beta.InstantSnapshotAggregatedList", - "client": { - "shortName": "InstantSnapshotsClient", - "fullName": "google.cloud.compute.v1beta.InstantSnapshotsClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.InstantSnapshots.AggregatedList", - "service": { - "shortName": "InstantSnapshots", - "fullName": "google.cloud.compute.v1beta.InstantSnapshots" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstantSnapshots_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified InstantSnapshot resource. Keep in mind that deleting a single instantSnapshot might not necessarily delete all the data on that instantSnapshot. If any data on the instantSnapshot that is marked for deletion is needed for subsequent instantSnapshots, the data will be moved to the next corresponding instantSnapshot. For more information, seeDeleting instantSnapshots.", - "canonical": true, - "file": "instant_snapshots.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.InstantSnapshots.Delete", - "async": true, - "parameters": [ - { - "name": "instant_snapshot", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstantSnapshotsClient", - "fullName": "google.cloud.compute.v1beta.InstantSnapshotsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.InstantSnapshots.Delete", - "service": { - "shortName": "InstantSnapshots", - "fullName": "google.cloud.compute.v1beta.InstantSnapshots" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstantSnapshots_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified InstantSnapshot resource in the specified zone.", - "canonical": true, - "file": "instant_snapshots.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.InstantSnapshots.Get", - "async": true, - "parameters": [ - { - "name": "instant_snapshot", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.InstantSnapshot", - "client": { - "shortName": "InstantSnapshotsClient", - "fullName": "google.cloud.compute.v1beta.InstantSnapshotsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.InstantSnapshots.Get", - "service": { - "shortName": "InstantSnapshots", - "fullName": "google.cloud.compute.v1beta.InstantSnapshots" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstantSnapshots_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "instant_snapshots.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.InstantSnapshots.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "InstantSnapshotsClient", - "fullName": "google.cloud.compute.v1beta.InstantSnapshotsClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.InstantSnapshots.GetIamPolicy", - "service": { - "shortName": "InstantSnapshots", - "fullName": "google.cloud.compute.v1beta.InstantSnapshots" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstantSnapshots_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates an instant snapshot in the specified zone.", - "canonical": true, - "file": "instant_snapshots.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.InstantSnapshots.Insert", - "async": true, - "parameters": [ - { - "name": "instant_snapshot_resource", - "type": ".google.cloud.compute.v1beta.InstantSnapshot" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstantSnapshotsClient", - "fullName": "google.cloud.compute.v1beta.InstantSnapshotsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.InstantSnapshots.Insert", - "service": { - "shortName": "InstantSnapshots", - "fullName": "google.cloud.compute.v1beta.InstantSnapshots" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstantSnapshots_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of InstantSnapshot resources contained within the specified zone.", - "canonical": true, - "file": "instant_snapshots.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.InstantSnapshots.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.InstantSnapshotList", - "client": { - "shortName": "InstantSnapshotsClient", - "fullName": "google.cloud.compute.v1beta.InstantSnapshotsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.InstantSnapshots.List", - "service": { - "shortName": "InstantSnapshots", - "fullName": "google.cloud.compute.v1beta.InstantSnapshots" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstantSnapshots_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "instant_snapshots.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.InstantSnapshots.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "zone_set_policy_request_resource", - "type": ".google.cloud.compute.v1beta.ZoneSetPolicyRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "InstantSnapshotsClient", - "fullName": "google.cloud.compute.v1beta.InstantSnapshotsClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.InstantSnapshots.SetIamPolicy", - "service": { - "shortName": "InstantSnapshots", - "fullName": "google.cloud.compute.v1beta.InstantSnapshots" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstantSnapshots_SetLabels_async", - "title": "AcceleratorTypes setLabels Sample", - "origin": "API_DEFINITION", - "description": " Sets the labels on a instantSnapshot in the given zone. To learn more about labels, read the Labeling Resources documentation.", - "canonical": true, - "file": "instant_snapshots.set_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1beta.InstantSnapshots.SetLabels", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "zone_set_labels_request_resource", - "type": ".google.cloud.compute.v1beta.ZoneSetLabelsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InstantSnapshotsClient", - "fullName": "google.cloud.compute.v1beta.InstantSnapshotsClient" - }, - "method": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1beta.InstantSnapshots.SetLabels", - "service": { - "shortName": "InstantSnapshots", - "fullName": "google.cloud.compute.v1beta.InstantSnapshots" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InstantSnapshots_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "instant_snapshots.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.InstantSnapshots.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "InstantSnapshotsClient", - "fullName": "google.cloud.compute.v1beta.InstantSnapshotsClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.InstantSnapshots.TestIamPermissions", - "service": { - "shortName": "InstantSnapshots", - "fullName": "google.cloud.compute.v1beta.InstantSnapshots" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InterconnectAttachmentGroups_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified InterconnectAttachmentGroup in the given scope", - "canonical": true, - "file": "interconnect_attachment_groups.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachmentGroups.Delete", - "async": true, - "parameters": [ - { - "name": "interconnect_attachment_group", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InterconnectAttachmentGroupsClient", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachmentGroupsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachmentGroups.Delete", - "service": { - "shortName": "InterconnectAttachmentGroups", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachmentGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InterconnectAttachmentGroups_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified InterconnectAttachmentGroup resource in the given scope.", - "canonical": true, - "file": "interconnect_attachment_groups.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachmentGroups.Get", - "async": true, - "parameters": [ - { - "name": "interconnect_attachment_group", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.InterconnectAttachmentGroup", - "client": { - "shortName": "InterconnectAttachmentGroupsClient", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachmentGroupsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachmentGroups.Get", - "service": { - "shortName": "InterconnectAttachmentGroups", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachmentGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InterconnectAttachmentGroups_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "interconnect_attachment_groups.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachmentGroups.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "InterconnectAttachmentGroupsClient", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachmentGroupsClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachmentGroups.GetIamPolicy", - "service": { - "shortName": "InterconnectAttachmentGroups", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachmentGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InterconnectAttachmentGroups_GetOperationalStatus_async", - "title": "AcceleratorTypes getOperationalStatus Sample", - "origin": "API_DEFINITION", - "description": " Returns the InterconnectAttachmentStatuses for the specified InterconnectAttachmentGroup resource.", - "canonical": true, - "file": "interconnect_attachment_groups.get_operational_status.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetOperationalStatus", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachmentGroups.GetOperationalStatus", - "async": true, - "parameters": [ - { - "name": "interconnect_attachment_group", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.InterconnectAttachmentGroupsGetOperationalStatusResponse", - "client": { - "shortName": "InterconnectAttachmentGroupsClient", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachmentGroupsClient" - }, - "method": { - "shortName": "GetOperationalStatus", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachmentGroups.GetOperationalStatus", - "service": { - "shortName": "InterconnectAttachmentGroups", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachmentGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InterconnectAttachmentGroups_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a InterconnectAttachmentGroup in the specified project in the given scope using the parameters that are included in the request.", - "canonical": true, - "file": "interconnect_attachment_groups.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachmentGroups.Insert", - "async": true, - "parameters": [ - { - "name": "interconnect_attachment_group_resource", - "type": ".google.cloud.compute.v1beta.InterconnectAttachmentGroup" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InterconnectAttachmentGroupsClient", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachmentGroupsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachmentGroups.Insert", - "service": { - "shortName": "InterconnectAttachmentGroups", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachmentGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InterconnectAttachmentGroups_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Lists the InterconnectAttachmentGroups for a project in the given scope.", - "canonical": true, - "file": "interconnect_attachment_groups.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachmentGroups.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.InterconnectAttachmentGroupsListResponse", - "client": { - "shortName": "InterconnectAttachmentGroupsClient", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachmentGroupsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachmentGroups.List", - "service": { - "shortName": "InterconnectAttachmentGroups", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachmentGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InterconnectAttachmentGroups_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patches the specified InterconnectAttachmentGroup resource with the data included in the request. This method supports PATCH semantics and usesJSON merge patch format and processing rules.", - "canonical": true, - "file": "interconnect_attachment_groups.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachmentGroups.Patch", - "async": true, - "parameters": [ - { - "name": "interconnect_attachment_group", - "type": "TYPE_STRING" - }, - { - "name": "interconnect_attachment_group_resource", - "type": ".google.cloud.compute.v1beta.InterconnectAttachmentGroup" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InterconnectAttachmentGroupsClient", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachmentGroupsClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachmentGroups.Patch", - "service": { - "shortName": "InterconnectAttachmentGroups", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachmentGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InterconnectAttachmentGroups_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "interconnect_attachment_groups.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachmentGroups.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "global_set_policy_request_resource", - "type": ".google.cloud.compute.v1beta.GlobalSetPolicyRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "InterconnectAttachmentGroupsClient", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachmentGroupsClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachmentGroups.SetIamPolicy", - "service": { - "shortName": "InterconnectAttachmentGroups", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachmentGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InterconnectAttachmentGroups_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "interconnect_attachment_groups.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachmentGroups.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "InterconnectAttachmentGroupsClient", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachmentGroupsClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachmentGroups.TestIamPermissions", - "service": { - "shortName": "InterconnectAttachmentGroups", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachmentGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InterconnectAttachments_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of interconnect attachments. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "interconnect_attachments.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachments.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1beta.InterconnectAttachmentAggregatedList", - "client": { - "shortName": "InterconnectAttachmentsClient", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachmentsClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachments.AggregatedList", - "service": { - "shortName": "InterconnectAttachments", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachments" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InterconnectAttachments_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified interconnect attachment.", - "canonical": true, - "file": "interconnect_attachments.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachments.Delete", - "async": true, - "parameters": [ - { - "name": "interconnect_attachment", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InterconnectAttachmentsClient", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachmentsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachments.Delete", - "service": { - "shortName": "InterconnectAttachments", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachments" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InterconnectAttachments_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified interconnect attachment.", - "canonical": true, - "file": "interconnect_attachments.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachments.Get", - "async": true, - "parameters": [ - { - "name": "interconnect_attachment", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.InterconnectAttachment", - "client": { - "shortName": "InterconnectAttachmentsClient", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachmentsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachments.Get", - "service": { - "shortName": "InterconnectAttachments", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachments" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InterconnectAttachments_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates an InterconnectAttachment in the specified project using the data included in the request.", - "canonical": true, - "file": "interconnect_attachments.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachments.Insert", - "async": true, - "parameters": [ - { - "name": "interconnect_attachment_resource", - "type": ".google.cloud.compute.v1beta.InterconnectAttachment" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InterconnectAttachmentsClient", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachmentsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachments.Insert", - "service": { - "shortName": "InterconnectAttachments", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachments" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InterconnectAttachments_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of interconnect attachments contained within the specified region.", - "canonical": true, - "file": "interconnect_attachments.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachments.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.InterconnectAttachmentList", - "client": { - "shortName": "InterconnectAttachmentsClient", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachmentsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachments.List", - "service": { - "shortName": "InterconnectAttachments", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachments" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InterconnectAttachments_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified interconnect attachment with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.", - "canonical": true, - "file": "interconnect_attachments.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachments.Patch", - "async": true, - "parameters": [ - { - "name": "interconnect_attachment", - "type": "TYPE_STRING" - }, - { - "name": "interconnect_attachment_resource", - "type": ".google.cloud.compute.v1beta.InterconnectAttachment" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InterconnectAttachmentsClient", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachmentsClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachments.Patch", - "service": { - "shortName": "InterconnectAttachments", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachments" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InterconnectAttachments_SetLabels_async", - "title": "AcceleratorTypes setLabels Sample", - "origin": "API_DEFINITION", - "description": " Sets the labels on an InterconnectAttachment. To learn more about labels, read the Labeling Resources documentation.", - "canonical": true, - "file": "interconnect_attachments.set_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachments.SetLabels", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_set_labels_request_resource", - "type": ".google.cloud.compute.v1beta.RegionSetLabelsRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InterconnectAttachmentsClient", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachmentsClient" - }, - "method": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachments.SetLabels", - "service": { - "shortName": "InterconnectAttachments", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachments" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InterconnectAttachments_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "interconnect_attachments.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachments.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "InterconnectAttachmentsClient", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachmentsClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachments.TestIamPermissions", - "service": { - "shortName": "InterconnectAttachments", - "fullName": "google.cloud.compute.v1beta.InterconnectAttachments" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InterconnectGroups_CreateMembers_async", - "title": "AcceleratorTypes createMembers Sample", - "origin": "API_DEFINITION", - "description": " Create Interconnects with redundancy by creating them in a specified interconnect group.", - "canonical": true, - "file": "interconnect_groups.create_members.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateMembers", - "fullName": "google.cloud.compute.v1beta.InterconnectGroups.CreateMembers", - "async": true, - "parameters": [ - { - "name": "interconnect_group", - "type": "TYPE_STRING" - }, - { - "name": "interconnect_groups_create_members_request_resource", - "type": ".google.cloud.compute.v1beta.InterconnectGroupsCreateMembersRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InterconnectGroupsClient", - "fullName": "google.cloud.compute.v1beta.InterconnectGroupsClient" - }, - "method": { - "shortName": "CreateMembers", - "fullName": "google.cloud.compute.v1beta.InterconnectGroups.CreateMembers", - "service": { - "shortName": "InterconnectGroups", - "fullName": "google.cloud.compute.v1beta.InterconnectGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InterconnectGroups_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified InterconnectGroup in the given scope", - "canonical": true, - "file": "interconnect_groups.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.InterconnectGroups.Delete", - "async": true, - "parameters": [ - { - "name": "interconnect_group", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InterconnectGroupsClient", - "fullName": "google.cloud.compute.v1beta.InterconnectGroupsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.InterconnectGroups.Delete", - "service": { - "shortName": "InterconnectGroups", - "fullName": "google.cloud.compute.v1beta.InterconnectGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InterconnectGroups_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified InterconnectGroup resource in the given scope.", - "canonical": true, - "file": "interconnect_groups.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.InterconnectGroups.Get", - "async": true, - "parameters": [ - { - "name": "interconnect_group", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.InterconnectGroup", - "client": { - "shortName": "InterconnectGroupsClient", - "fullName": "google.cloud.compute.v1beta.InterconnectGroupsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.InterconnectGroups.Get", - "service": { - "shortName": "InterconnectGroups", - "fullName": "google.cloud.compute.v1beta.InterconnectGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InterconnectGroups_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "interconnect_groups.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.InterconnectGroups.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "InterconnectGroupsClient", - "fullName": "google.cloud.compute.v1beta.InterconnectGroupsClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.InterconnectGroups.GetIamPolicy", - "service": { - "shortName": "InterconnectGroups", - "fullName": "google.cloud.compute.v1beta.InterconnectGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InterconnectGroups_GetOperationalStatus_async", - "title": "AcceleratorTypes getOperationalStatus Sample", - "origin": "API_DEFINITION", - "description": " Returns the interconnectStatuses for the specified InterconnectGroup.", - "canonical": true, - "file": "interconnect_groups.get_operational_status.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetOperationalStatus", - "fullName": "google.cloud.compute.v1beta.InterconnectGroups.GetOperationalStatus", - "async": true, - "parameters": [ - { - "name": "interconnect_group", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.InterconnectGroupsGetOperationalStatusResponse", - "client": { - "shortName": "InterconnectGroupsClient", - "fullName": "google.cloud.compute.v1beta.InterconnectGroupsClient" - }, - "method": { - "shortName": "GetOperationalStatus", - "fullName": "google.cloud.compute.v1beta.InterconnectGroups.GetOperationalStatus", - "service": { - "shortName": "InterconnectGroups", - "fullName": "google.cloud.compute.v1beta.InterconnectGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InterconnectGroups_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a InterconnectGroup in the specified project in the given scope using the parameters that are included in the request.", - "canonical": true, - "file": "interconnect_groups.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.InterconnectGroups.Insert", - "async": true, - "parameters": [ - { - "name": "interconnect_group_resource", - "type": ".google.cloud.compute.v1beta.InterconnectGroup" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InterconnectGroupsClient", - "fullName": "google.cloud.compute.v1beta.InterconnectGroupsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.InterconnectGroups.Insert", - "service": { - "shortName": "InterconnectGroups", - "fullName": "google.cloud.compute.v1beta.InterconnectGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InterconnectGroups_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Lists the InterconnectGroups for a project in the given scope.", - "canonical": true, - "file": "interconnect_groups.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.InterconnectGroups.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.InterconnectGroupsListResponse", - "client": { - "shortName": "InterconnectGroupsClient", - "fullName": "google.cloud.compute.v1beta.InterconnectGroupsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.InterconnectGroups.List", - "service": { - "shortName": "InterconnectGroups", - "fullName": "google.cloud.compute.v1beta.InterconnectGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InterconnectGroups_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patches the specified InterconnectGroup resource with the data included in the request. This method supports PATCH semantics and usesJSON merge patch format and processing rules.", - "canonical": true, - "file": "interconnect_groups.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.InterconnectGroups.Patch", - "async": true, - "parameters": [ - { - "name": "interconnect_group", - "type": "TYPE_STRING" - }, - { - "name": "interconnect_group_resource", - "type": ".google.cloud.compute.v1beta.InterconnectGroup" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InterconnectGroupsClient", - "fullName": "google.cloud.compute.v1beta.InterconnectGroupsClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.InterconnectGroups.Patch", - "service": { - "shortName": "InterconnectGroups", - "fullName": "google.cloud.compute.v1beta.InterconnectGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InterconnectGroups_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "interconnect_groups.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.InterconnectGroups.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "global_set_policy_request_resource", - "type": ".google.cloud.compute.v1beta.GlobalSetPolicyRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "InterconnectGroupsClient", - "fullName": "google.cloud.compute.v1beta.InterconnectGroupsClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.InterconnectGroups.SetIamPolicy", - "service": { - "shortName": "InterconnectGroups", - "fullName": "google.cloud.compute.v1beta.InterconnectGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InterconnectGroups_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "interconnect_groups.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.InterconnectGroups.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "InterconnectGroupsClient", - "fullName": "google.cloud.compute.v1beta.InterconnectGroupsClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.InterconnectGroups.TestIamPermissions", - "service": { - "shortName": "InterconnectGroups", - "fullName": "google.cloud.compute.v1beta.InterconnectGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InterconnectLocations_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the details for the specified interconnect location. Gets a list of available interconnect locations by making a list() request.", - "canonical": true, - "file": "interconnect_locations.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.InterconnectLocations.Get", - "async": true, - "parameters": [ - { - "name": "interconnect_location", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.InterconnectLocation", - "client": { - "shortName": "InterconnectLocationsClient", - "fullName": "google.cloud.compute.v1beta.InterconnectLocationsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.InterconnectLocations.Get", - "service": { - "shortName": "InterconnectLocations", - "fullName": "google.cloud.compute.v1beta.InterconnectLocations" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InterconnectLocations_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of interconnect locations available to the specified project.", - "canonical": true, - "file": "interconnect_locations.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.InterconnectLocations.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.InterconnectLocationList", - "client": { - "shortName": "InterconnectLocationsClient", - "fullName": "google.cloud.compute.v1beta.InterconnectLocationsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.InterconnectLocations.List", - "service": { - "shortName": "InterconnectLocations", - "fullName": "google.cloud.compute.v1beta.InterconnectLocations" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InterconnectRemoteLocations_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the details for the specified interconnect remote location. Gets a list of available interconnect remote locations by making alist() request.", - "canonical": true, - "file": "interconnect_remote_locations.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.InterconnectRemoteLocations.Get", - "async": true, - "parameters": [ - { - "name": "interconnect_remote_location", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.InterconnectRemoteLocation", - "client": { - "shortName": "InterconnectRemoteLocationsClient", - "fullName": "google.cloud.compute.v1beta.InterconnectRemoteLocationsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.InterconnectRemoteLocations.Get", - "service": { - "shortName": "InterconnectRemoteLocations", - "fullName": "google.cloud.compute.v1beta.InterconnectRemoteLocations" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_InterconnectRemoteLocations_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of interconnect remote locations available to the specified project.", - "canonical": true, - "file": "interconnect_remote_locations.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.InterconnectRemoteLocations.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.InterconnectRemoteLocationList", - "client": { - "shortName": "InterconnectRemoteLocationsClient", - "fullName": "google.cloud.compute.v1beta.InterconnectRemoteLocationsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.InterconnectRemoteLocations.List", - "service": { - "shortName": "InterconnectRemoteLocations", - "fullName": "google.cloud.compute.v1beta.InterconnectRemoteLocations" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Interconnects_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified Interconnect.", - "canonical": true, - "file": "interconnects.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.Interconnects.Delete", - "async": true, - "parameters": [ - { - "name": "interconnect", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InterconnectsClient", - "fullName": "google.cloud.compute.v1beta.InterconnectsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.Interconnects.Delete", - "service": { - "shortName": "Interconnects", - "fullName": "google.cloud.compute.v1beta.Interconnects" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Interconnects_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified Interconnect. Get a list of available Interconnects by making a list() request.", - "canonical": true, - "file": "interconnects.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.Interconnects.Get", - "async": true, - "parameters": [ - { - "name": "interconnect", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Interconnect", - "client": { - "shortName": "InterconnectsClient", - "fullName": "google.cloud.compute.v1beta.InterconnectsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.Interconnects.Get", - "service": { - "shortName": "Interconnects", - "fullName": "google.cloud.compute.v1beta.Interconnects" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Interconnects_GetDiagnostics_async", - "title": "AcceleratorTypes getDiagnostics Sample", - "origin": "API_DEFINITION", - "description": " Returns the interconnectDiagnostics for the specified Interconnect. In the event of a global outage, do not use this API to make decisions about where to redirect your network traffic. Unlike a VLAN attachment, which is regional, a Cloud Interconnect connection is a global resource. A global outage can prevent this API from functioning properly.", - "canonical": true, - "file": "interconnects.get_diagnostics.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDiagnostics", - "fullName": "google.cloud.compute.v1beta.Interconnects.GetDiagnostics", - "async": true, - "parameters": [ - { - "name": "interconnect", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.InterconnectsGetDiagnosticsResponse", - "client": { - "shortName": "InterconnectsClient", - "fullName": "google.cloud.compute.v1beta.InterconnectsClient" - }, - "method": { - "shortName": "GetDiagnostics", - "fullName": "google.cloud.compute.v1beta.Interconnects.GetDiagnostics", - "service": { - "shortName": "Interconnects", - "fullName": "google.cloud.compute.v1beta.Interconnects" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Interconnects_GetMacsecConfig_async", - "title": "AcceleratorTypes getMacsecConfig Sample", - "origin": "API_DEFINITION", - "description": " Returns the interconnectMacsecConfig for the specified Interconnect.", - "canonical": true, - "file": "interconnects.get_macsec_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMacsecConfig", - "fullName": "google.cloud.compute.v1beta.Interconnects.GetMacsecConfig", - "async": true, - "parameters": [ - { - "name": "interconnect", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.InterconnectsGetMacsecConfigResponse", - "client": { - "shortName": "InterconnectsClient", - "fullName": "google.cloud.compute.v1beta.InterconnectsClient" - }, - "method": { - "shortName": "GetMacsecConfig", - "fullName": "google.cloud.compute.v1beta.Interconnects.GetMacsecConfig", - "service": { - "shortName": "Interconnects", - "fullName": "google.cloud.compute.v1beta.Interconnects" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Interconnects_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates an Interconnect in the specified project using the data included in the request.", - "canonical": true, - "file": "interconnects.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.Interconnects.Insert", - "async": true, - "parameters": [ - { - "name": "interconnect_resource", - "type": ".google.cloud.compute.v1beta.Interconnect" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InterconnectsClient", - "fullName": "google.cloud.compute.v1beta.InterconnectsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.Interconnects.Insert", - "service": { - "shortName": "Interconnects", - "fullName": "google.cloud.compute.v1beta.Interconnects" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Interconnects_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of Interconnects available to the specified project.", - "canonical": true, - "file": "interconnects.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.Interconnects.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.InterconnectList", - "client": { - "shortName": "InterconnectsClient", - "fullName": "google.cloud.compute.v1beta.InterconnectsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.Interconnects.List", - "service": { - "shortName": "Interconnects", - "fullName": "google.cloud.compute.v1beta.Interconnects" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Interconnects_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified Interconnect with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.", - "canonical": true, - "file": "interconnects.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.Interconnects.Patch", - "async": true, - "parameters": [ - { - "name": "interconnect", - "type": "TYPE_STRING" - }, - { - "name": "interconnect_resource", - "type": ".google.cloud.compute.v1beta.Interconnect" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InterconnectsClient", - "fullName": "google.cloud.compute.v1beta.InterconnectsClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.Interconnects.Patch", - "service": { - "shortName": "Interconnects", - "fullName": "google.cloud.compute.v1beta.Interconnects" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Interconnects_SetLabels_async", - "title": "AcceleratorTypes setLabels Sample", - "origin": "API_DEFINITION", - "description": " Sets the labels on an Interconnect. To learn more about labels, read the Labeling Resources documentation.", - "canonical": true, - "file": "interconnects.set_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1beta.Interconnects.SetLabels", - "async": true, - "parameters": [ - { - "name": "global_set_labels_request_resource", - "type": ".google.cloud.compute.v1beta.GlobalSetLabelsRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "InterconnectsClient", - "fullName": "google.cloud.compute.v1beta.InterconnectsClient" - }, - "method": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1beta.Interconnects.SetLabels", - "service": { - "shortName": "Interconnects", - "fullName": "google.cloud.compute.v1beta.Interconnects" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Interconnects_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "interconnects.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.Interconnects.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "InterconnectsClient", - "fullName": "google.cloud.compute.v1beta.InterconnectsClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.Interconnects.TestIamPermissions", - "service": { - "shortName": "Interconnects", - "fullName": "google.cloud.compute.v1beta.Interconnects" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_LicenseCodes_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Return a specified license code. License codes are mirrored across all projects that have permissions to read the License Code. *Caution* This resource is intended for use only by third-party partners who are creatingCloud Marketplace images.", - "canonical": true, - "file": "license_codes.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.LicenseCodes.Get", - "async": true, - "parameters": [ - { - "name": "license_code", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.LicenseCode", - "client": { - "shortName": "LicenseCodesClient", - "fullName": "google.cloud.compute.v1beta.LicenseCodesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.LicenseCodes.Get", - "service": { - "shortName": "LicenseCodes", - "fullName": "google.cloud.compute.v1beta.LicenseCodes" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_LicenseCodes_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists. *Caution* This resource is intended for use only by third-party partners who are creatingCloud Marketplace images.", - "canonical": true, - "file": "license_codes.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.LicenseCodes.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "LicenseCodesClient", - "fullName": "google.cloud.compute.v1beta.LicenseCodesClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.LicenseCodes.GetIamPolicy", - "service": { - "shortName": "LicenseCodes", - "fullName": "google.cloud.compute.v1beta.LicenseCodes" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_LicenseCodes_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy. *Caution* This resource is intended for use only by third-party partners who are creatingCloud Marketplace images.", - "canonical": true, - "file": "license_codes.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.LicenseCodes.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "global_set_policy_request_resource", - "type": ".google.cloud.compute.v1beta.GlobalSetPolicyRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "LicenseCodesClient", - "fullName": "google.cloud.compute.v1beta.LicenseCodesClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.LicenseCodes.SetIamPolicy", - "service": { - "shortName": "LicenseCodes", - "fullName": "google.cloud.compute.v1beta.LicenseCodes" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_LicenseCodes_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource. *Caution* This resource is intended for use only by third-party partners who are creatingCloud Marketplace images.", - "canonical": true, - "file": "license_codes.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.LicenseCodes.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "LicenseCodesClient", - "fullName": "google.cloud.compute.v1beta.LicenseCodesClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.LicenseCodes.TestIamPermissions", - "service": { - "shortName": "LicenseCodes", - "fullName": "google.cloud.compute.v1beta.LicenseCodes" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Licenses_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified license. *Caution* This resource is intended for use only by third-party partners who are creatingCloud Marketplace images.", - "canonical": true, - "file": "licenses.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.Licenses.Delete", - "async": true, - "parameters": [ - { - "name": "license", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "LicensesClient", - "fullName": "google.cloud.compute.v1beta.LicensesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.Licenses.Delete", - "service": { - "shortName": "Licenses", - "fullName": "google.cloud.compute.v1beta.Licenses" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Licenses_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified License resource. *Caution* This resource is intended for use only by third-party partners who are creatingCloud Marketplace images.", - "canonical": true, - "file": "licenses.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.Licenses.Get", - "async": true, - "parameters": [ - { - "name": "license", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.License", - "client": { - "shortName": "LicensesClient", - "fullName": "google.cloud.compute.v1beta.LicensesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.Licenses.Get", - "service": { - "shortName": "Licenses", - "fullName": "google.cloud.compute.v1beta.Licenses" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Licenses_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists. *Caution* This resource is intended for use only by third-party partners who are creatingCloud Marketplace images.", - "canonical": true, - "file": "licenses.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.Licenses.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "LicensesClient", - "fullName": "google.cloud.compute.v1beta.LicensesClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.Licenses.GetIamPolicy", - "service": { - "shortName": "Licenses", - "fullName": "google.cloud.compute.v1beta.Licenses" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Licenses_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Create a License resource in the specified project. *Caution* This resource is intended for use only by third-party partners who are creatingCloud Marketplace images.", - "canonical": true, - "file": "licenses.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.Licenses.Insert", - "async": true, - "parameters": [ - { - "name": "license_resource", - "type": ".google.cloud.compute.v1beta.License" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "LicensesClient", - "fullName": "google.cloud.compute.v1beta.LicensesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.Licenses.Insert", - "service": { - "shortName": "Licenses", - "fullName": "google.cloud.compute.v1beta.Licenses" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Licenses_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of licenses available in the specified project. This method does not get any licenses that belong to other projects, including licenses attached to publicly-available images, like Debian 9. If you want to get a list of publicly-available licenses, use this method to make a request to the respective image project, such as debian-cloud orwindows-cloud. *Caution* This resource is intended for use only by third-party partners who are creatingCloud Marketplace images.", - "canonical": true, - "file": "licenses.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.Licenses.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.LicensesListResponse", - "client": { - "shortName": "LicensesClient", - "fullName": "google.cloud.compute.v1beta.LicensesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.Licenses.List", - "service": { - "shortName": "Licenses", - "fullName": "google.cloud.compute.v1beta.Licenses" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Licenses_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy. *Caution* This resource is intended for use only by third-party partners who are creatingCloud Marketplace images.", - "canonical": true, - "file": "licenses.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.Licenses.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "global_set_policy_request_resource", - "type": ".google.cloud.compute.v1beta.GlobalSetPolicyRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "LicensesClient", - "fullName": "google.cloud.compute.v1beta.LicensesClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.Licenses.SetIamPolicy", - "service": { - "shortName": "Licenses", - "fullName": "google.cloud.compute.v1beta.Licenses" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Licenses_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource. *Caution* This resource is intended for use only by third-party partners who are creatingCloud Marketplace images.", - "canonical": true, - "file": "licenses.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.Licenses.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "LicensesClient", - "fullName": "google.cloud.compute.v1beta.LicensesClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.Licenses.TestIamPermissions", - "service": { - "shortName": "Licenses", - "fullName": "google.cloud.compute.v1beta.Licenses" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Licenses_Update_async", - "title": "AcceleratorTypes update Sample", - "origin": "API_DEFINITION", - "description": " Updates a License resource in the specified project. *Caution* This resource is intended for use only by third-party partners who are creatingCloud Marketplace images.", - "canonical": true, - "file": "licenses.update.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1beta.Licenses.Update", - "async": true, - "parameters": [ - { - "name": "license", - "type": "TYPE_STRING" - }, - { - "name": "license_resource", - "type": ".google.cloud.compute.v1beta.License" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "LicensesClient", - "fullName": "google.cloud.compute.v1beta.LicensesClient" - }, - "method": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1beta.Licenses.Update", - "service": { - "shortName": "Licenses", - "fullName": "google.cloud.compute.v1beta.Licenses" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_MachineImages_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified machine image. Deleting a machine image is permanent and cannot be undone.", - "canonical": true, - "file": "machine_images.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.MachineImages.Delete", - "async": true, - "parameters": [ - { - "name": "machine_image", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "MachineImagesClient", - "fullName": "google.cloud.compute.v1beta.MachineImagesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.MachineImages.Delete", - "service": { - "shortName": "MachineImages", - "fullName": "google.cloud.compute.v1beta.MachineImages" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_MachineImages_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified machine image.", - "canonical": true, - "file": "machine_images.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.MachineImages.Get", - "async": true, - "parameters": [ - { - "name": "machine_image", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.MachineImage", - "client": { - "shortName": "MachineImagesClient", - "fullName": "google.cloud.compute.v1beta.MachineImagesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.MachineImages.Get", - "service": { - "shortName": "MachineImages", - "fullName": "google.cloud.compute.v1beta.MachineImages" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_MachineImages_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "machine_images.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.MachineImages.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "MachineImagesClient", - "fullName": "google.cloud.compute.v1beta.MachineImagesClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.MachineImages.GetIamPolicy", - "service": { - "shortName": "MachineImages", - "fullName": "google.cloud.compute.v1beta.MachineImages" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_MachineImages_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a machine image in the specified project using the data that is included in the request. If you are creating a new machine image to update an existing instance, your new machine image should use the same network or, if applicable, the same subnetwork as the original instance.", - "canonical": true, - "file": "machine_images.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.MachineImages.Insert", - "async": true, - "parameters": [ - { - "name": "machine_image_resource", - "type": ".google.cloud.compute.v1beta.MachineImage" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "source_instance", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "MachineImagesClient", - "fullName": "google.cloud.compute.v1beta.MachineImagesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.MachineImages.Insert", - "service": { - "shortName": "MachineImages", - "fullName": "google.cloud.compute.v1beta.MachineImages" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_MachineImages_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of machine images that are contained within the specified project.", - "canonical": true, - "file": "machine_images.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.MachineImages.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.MachineImageList", - "client": { - "shortName": "MachineImagesClient", - "fullName": "google.cloud.compute.v1beta.MachineImagesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.MachineImages.List", - "service": { - "shortName": "MachineImages", - "fullName": "google.cloud.compute.v1beta.MachineImages" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_MachineImages_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "machine_images.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.MachineImages.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "global_set_policy_request_resource", - "type": ".google.cloud.compute.v1beta.GlobalSetPolicyRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "MachineImagesClient", - "fullName": "google.cloud.compute.v1beta.MachineImagesClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.MachineImages.SetIamPolicy", - "service": { - "shortName": "MachineImages", - "fullName": "google.cloud.compute.v1beta.MachineImages" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_MachineImages_SetLabels_async", - "title": "AcceleratorTypes setLabels Sample", - "origin": "API_DEFINITION", - "description": " Sets the labels on a machine image. To learn more about labels, read theLabeling Resources documentation.", - "canonical": true, - "file": "machine_images.set_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1beta.MachineImages.SetLabels", - "async": true, - "parameters": [ - { - "name": "global_set_labels_request_resource", - "type": ".google.cloud.compute.v1beta.GlobalSetLabelsRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "MachineImagesClient", - "fullName": "google.cloud.compute.v1beta.MachineImagesClient" - }, - "method": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1beta.MachineImages.SetLabels", - "service": { - "shortName": "MachineImages", - "fullName": "google.cloud.compute.v1beta.MachineImages" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_MachineImages_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "machine_images.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.MachineImages.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "MachineImagesClient", - "fullName": "google.cloud.compute.v1beta.MachineImagesClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.MachineImages.TestIamPermissions", - "service": { - "shortName": "MachineImages", - "fullName": "google.cloud.compute.v1beta.MachineImages" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_MachineTypes_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of machine types. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "machine_types.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.MachineTypes.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1beta.MachineTypeAggregatedList", - "client": { - "shortName": "MachineTypesClient", - "fullName": "google.cloud.compute.v1beta.MachineTypesClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.MachineTypes.AggregatedList", - "service": { - "shortName": "MachineTypes", - "fullName": "google.cloud.compute.v1beta.MachineTypes" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_MachineTypes_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified machine type.", - "canonical": true, - "file": "machine_types.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.MachineTypes.Get", - "async": true, - "parameters": [ - { - "name": "machine_type", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.MachineType", - "client": { - "shortName": "MachineTypesClient", - "fullName": "google.cloud.compute.v1beta.MachineTypesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.MachineTypes.Get", - "service": { - "shortName": "MachineTypes", - "fullName": "google.cloud.compute.v1beta.MachineTypes" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_MachineTypes_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of machine types available to the specified project.", - "canonical": true, - "file": "machine_types.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.MachineTypes.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.MachineTypeList", - "client": { - "shortName": "MachineTypesClient", - "fullName": "google.cloud.compute.v1beta.MachineTypesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.MachineTypes.List", - "service": { - "shortName": "MachineTypes", - "fullName": "google.cloud.compute.v1beta.MachineTypes" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NetworkAttachments_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of all NetworkAttachment resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "network_attachments.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.NetworkAttachments.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1beta.NetworkAttachmentAggregatedList", - "client": { - "shortName": "NetworkAttachmentsClient", - "fullName": "google.cloud.compute.v1beta.NetworkAttachmentsClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.NetworkAttachments.AggregatedList", - "service": { - "shortName": "NetworkAttachments", - "fullName": "google.cloud.compute.v1beta.NetworkAttachments" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NetworkAttachments_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified NetworkAttachment in the given scope", - "canonical": true, - "file": "network_attachments.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.NetworkAttachments.Delete", - "async": true, - "parameters": [ - { - "name": "network_attachment", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "NetworkAttachmentsClient", - "fullName": "google.cloud.compute.v1beta.NetworkAttachmentsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.NetworkAttachments.Delete", - "service": { - "shortName": "NetworkAttachments", - "fullName": "google.cloud.compute.v1beta.NetworkAttachments" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NetworkAttachments_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified NetworkAttachment resource in the given scope.", - "canonical": true, - "file": "network_attachments.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.NetworkAttachments.Get", - "async": true, - "parameters": [ - { - "name": "network_attachment", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.NetworkAttachment", - "client": { - "shortName": "NetworkAttachmentsClient", - "fullName": "google.cloud.compute.v1beta.NetworkAttachmentsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.NetworkAttachments.Get", - "service": { - "shortName": "NetworkAttachments", - "fullName": "google.cloud.compute.v1beta.NetworkAttachments" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NetworkAttachments_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "network_attachments.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.NetworkAttachments.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "NetworkAttachmentsClient", - "fullName": "google.cloud.compute.v1beta.NetworkAttachmentsClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.NetworkAttachments.GetIamPolicy", - "service": { - "shortName": "NetworkAttachments", - "fullName": "google.cloud.compute.v1beta.NetworkAttachments" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NetworkAttachments_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a NetworkAttachment in the specified project in the given scope using the parameters that are included in the request.", - "canonical": true, - "file": "network_attachments.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.NetworkAttachments.Insert", - "async": true, - "parameters": [ - { - "name": "network_attachment_resource", - "type": ".google.cloud.compute.v1beta.NetworkAttachment" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "NetworkAttachmentsClient", - "fullName": "google.cloud.compute.v1beta.NetworkAttachmentsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.NetworkAttachments.Insert", - "service": { - "shortName": "NetworkAttachments", - "fullName": "google.cloud.compute.v1beta.NetworkAttachments" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NetworkAttachments_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Lists the NetworkAttachments for a project in the given scope.", - "canonical": true, - "file": "network_attachments.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.NetworkAttachments.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.NetworkAttachmentList", - "client": { - "shortName": "NetworkAttachmentsClient", - "fullName": "google.cloud.compute.v1beta.NetworkAttachmentsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.NetworkAttachments.List", - "service": { - "shortName": "NetworkAttachments", - "fullName": "google.cloud.compute.v1beta.NetworkAttachments" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NetworkAttachments_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patches the specified NetworkAttachment resource with the data included in the request. This method supports PATCH semantics and usesJSON merge patch format and processing rules.", - "canonical": true, - "file": "network_attachments.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.NetworkAttachments.Patch", - "async": true, - "parameters": [ - { - "name": "network_attachment", - "type": "TYPE_STRING" - }, - { - "name": "network_attachment_resource", - "type": ".google.cloud.compute.v1beta.NetworkAttachment" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "NetworkAttachmentsClient", - "fullName": "google.cloud.compute.v1beta.NetworkAttachmentsClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.NetworkAttachments.Patch", - "service": { - "shortName": "NetworkAttachments", - "fullName": "google.cloud.compute.v1beta.NetworkAttachments" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NetworkAttachments_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "network_attachments.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.NetworkAttachments.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_set_policy_request_resource", - "type": ".google.cloud.compute.v1beta.RegionSetPolicyRequest" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "NetworkAttachmentsClient", - "fullName": "google.cloud.compute.v1beta.NetworkAttachmentsClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.NetworkAttachments.SetIamPolicy", - "service": { - "shortName": "NetworkAttachments", - "fullName": "google.cloud.compute.v1beta.NetworkAttachments" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NetworkAttachments_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "network_attachments.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.NetworkAttachments.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "NetworkAttachmentsClient", - "fullName": "google.cloud.compute.v1beta.NetworkAttachmentsClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.NetworkAttachments.TestIamPermissions", - "service": { - "shortName": "NetworkAttachments", - "fullName": "google.cloud.compute.v1beta.NetworkAttachments" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NetworkEdgeSecurityServices_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of all NetworkEdgeSecurityService resources available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "network_edge_security_services.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.NetworkEdgeSecurityServices.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1beta.NetworkEdgeSecurityServiceAggregatedList", - "client": { - "shortName": "NetworkEdgeSecurityServicesClient", - "fullName": "google.cloud.compute.v1beta.NetworkEdgeSecurityServicesClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.NetworkEdgeSecurityServices.AggregatedList", - "service": { - "shortName": "NetworkEdgeSecurityServices", - "fullName": "google.cloud.compute.v1beta.NetworkEdgeSecurityServices" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NetworkEdgeSecurityServices_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified service.", - "canonical": true, - "file": "network_edge_security_services.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.NetworkEdgeSecurityServices.Delete", - "async": true, - "parameters": [ - { - "name": "network_edge_security_service", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "NetworkEdgeSecurityServicesClient", - "fullName": "google.cloud.compute.v1beta.NetworkEdgeSecurityServicesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.NetworkEdgeSecurityServices.Delete", - "service": { - "shortName": "NetworkEdgeSecurityServices", - "fullName": "google.cloud.compute.v1beta.NetworkEdgeSecurityServices" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NetworkEdgeSecurityServices_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Gets a specified NetworkEdgeSecurityService.", - "canonical": true, - "file": "network_edge_security_services.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.NetworkEdgeSecurityServices.Get", - "async": true, - "parameters": [ - { - "name": "network_edge_security_service", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.NetworkEdgeSecurityService", - "client": { - "shortName": "NetworkEdgeSecurityServicesClient", - "fullName": "google.cloud.compute.v1beta.NetworkEdgeSecurityServicesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.NetworkEdgeSecurityServices.Get", - "service": { - "shortName": "NetworkEdgeSecurityServices", - "fullName": "google.cloud.compute.v1beta.NetworkEdgeSecurityServices" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NetworkEdgeSecurityServices_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a new service in the specified project using the data included in the request.", - "canonical": true, - "file": "network_edge_security_services.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.NetworkEdgeSecurityServices.Insert", - "async": true, - "parameters": [ - { - "name": "network_edge_security_service_resource", - "type": ".google.cloud.compute.v1beta.NetworkEdgeSecurityService" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "NetworkEdgeSecurityServicesClient", - "fullName": "google.cloud.compute.v1beta.NetworkEdgeSecurityServicesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.NetworkEdgeSecurityServices.Insert", - "service": { - "shortName": "NetworkEdgeSecurityServices", - "fullName": "google.cloud.compute.v1beta.NetworkEdgeSecurityServices" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NetworkEdgeSecurityServices_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patches the specified policy with the data included in the request.", - "canonical": true, - "file": "network_edge_security_services.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 89, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.NetworkEdgeSecurityServices.Patch", - "async": true, - "parameters": [ - { - "name": "network_edge_security_service", - "type": "TYPE_STRING" - }, - { - "name": "network_edge_security_service_resource", - "type": ".google.cloud.compute.v1beta.NetworkEdgeSecurityService" - }, - { - "name": "paths", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "NetworkEdgeSecurityServicesClient", - "fullName": "google.cloud.compute.v1beta.NetworkEdgeSecurityServicesClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.NetworkEdgeSecurityServices.Patch", - "service": { - "shortName": "NetworkEdgeSecurityServices", - "fullName": "google.cloud.compute.v1beta.NetworkEdgeSecurityServices" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NetworkEndpointGroups_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of network endpoint groups and sorts them by zone. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "network_endpoint_groups.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.NetworkEndpointGroups.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1beta.NetworkEndpointGroupAggregatedList", - "client": { - "shortName": "NetworkEndpointGroupsClient", - "fullName": "google.cloud.compute.v1beta.NetworkEndpointGroupsClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.NetworkEndpointGroups.AggregatedList", - "service": { - "shortName": "NetworkEndpointGroups", - "fullName": "google.cloud.compute.v1beta.NetworkEndpointGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NetworkEndpointGroups_AttachNetworkEndpoints_async", - "title": "AcceleratorTypes attachNetworkEndpoints Sample", - "origin": "API_DEFINITION", - "description": " Attach a list of network endpoints to the specified network endpoint group.", - "canonical": true, - "file": "network_endpoint_groups.attach_network_endpoints.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AttachNetworkEndpoints", - "fullName": "google.cloud.compute.v1beta.NetworkEndpointGroups.AttachNetworkEndpoints", - "async": true, - "parameters": [ - { - "name": "network_endpoint_group", - "type": "TYPE_STRING" - }, - { - "name": "network_endpoint_groups_attach_endpoints_request_resource", - "type": ".google.cloud.compute.v1beta.NetworkEndpointGroupsAttachEndpointsRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "NetworkEndpointGroupsClient", - "fullName": "google.cloud.compute.v1beta.NetworkEndpointGroupsClient" - }, - "method": { - "shortName": "AttachNetworkEndpoints", - "fullName": "google.cloud.compute.v1beta.NetworkEndpointGroups.AttachNetworkEndpoints", - "service": { - "shortName": "NetworkEndpointGroups", - "fullName": "google.cloud.compute.v1beta.NetworkEndpointGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NetworkEndpointGroups_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified network endpoint group. The network endpoints in the NEG and the VM instances they belong to are not terminated when the NEG is deleted. Note that the NEG cannot be deleted if there are backend services referencing it.", - "canonical": true, - "file": "network_endpoint_groups.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.NetworkEndpointGroups.Delete", - "async": true, - "parameters": [ - { - "name": "network_endpoint_group", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "NetworkEndpointGroupsClient", - "fullName": "google.cloud.compute.v1beta.NetworkEndpointGroupsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.NetworkEndpointGroups.Delete", - "service": { - "shortName": "NetworkEndpointGroups", - "fullName": "google.cloud.compute.v1beta.NetworkEndpointGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NetworkEndpointGroups_DetachNetworkEndpoints_async", - "title": "AcceleratorTypes detachNetworkEndpoints Sample", - "origin": "API_DEFINITION", - "description": " Detach a list of network endpoints from the specified network endpoint group.", - "canonical": true, - "file": "network_endpoint_groups.detach_network_endpoints.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DetachNetworkEndpoints", - "fullName": "google.cloud.compute.v1beta.NetworkEndpointGroups.DetachNetworkEndpoints", - "async": true, - "parameters": [ - { - "name": "network_endpoint_group", - "type": "TYPE_STRING" - }, - { - "name": "network_endpoint_groups_detach_endpoints_request_resource", - "type": ".google.cloud.compute.v1beta.NetworkEndpointGroupsDetachEndpointsRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "NetworkEndpointGroupsClient", - "fullName": "google.cloud.compute.v1beta.NetworkEndpointGroupsClient" - }, - "method": { - "shortName": "DetachNetworkEndpoints", - "fullName": "google.cloud.compute.v1beta.NetworkEndpointGroups.DetachNetworkEndpoints", - "service": { - "shortName": "NetworkEndpointGroups", - "fullName": "google.cloud.compute.v1beta.NetworkEndpointGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NetworkEndpointGroups_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified network endpoint group.", - "canonical": true, - "file": "network_endpoint_groups.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.NetworkEndpointGroups.Get", - "async": true, - "parameters": [ - { - "name": "network_endpoint_group", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.NetworkEndpointGroup", - "client": { - "shortName": "NetworkEndpointGroupsClient", - "fullName": "google.cloud.compute.v1beta.NetworkEndpointGroupsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.NetworkEndpointGroups.Get", - "service": { - "shortName": "NetworkEndpointGroups", - "fullName": "google.cloud.compute.v1beta.NetworkEndpointGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NetworkEndpointGroups_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a network endpoint group in the specified project using the parameters that are included in the request. Note: Use the following APIs to manage network endpoint groups: - To manage NEGs with zonal scope (such as zonal NEGs, hybrid connectivity NEGs): zonal API - To manage NEGs with regional scope (such as regional internet NEGs, serverless NEGs, Private Service Connect NEGs): regional API - To manage NEGs with global scope (such as global internet NEGs):global API", - "canonical": true, - "file": "network_endpoint_groups.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.NetworkEndpointGroups.Insert", - "async": true, - "parameters": [ - { - "name": "network_endpoint_group_resource", - "type": ".google.cloud.compute.v1beta.NetworkEndpointGroup" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "NetworkEndpointGroupsClient", - "fullName": "google.cloud.compute.v1beta.NetworkEndpointGroupsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.NetworkEndpointGroups.Insert", - "service": { - "shortName": "NetworkEndpointGroups", - "fullName": "google.cloud.compute.v1beta.NetworkEndpointGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NetworkEndpointGroups_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of network endpoint groups that are located in the specified project and zone.", - "canonical": true, - "file": "network_endpoint_groups.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 146, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.NetworkEndpointGroups.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.NetworkEndpointGroupList", - "client": { - "shortName": "NetworkEndpointGroupsClient", - "fullName": "google.cloud.compute.v1beta.NetworkEndpointGroupsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.NetworkEndpointGroups.List", - "service": { - "shortName": "NetworkEndpointGroups", - "fullName": "google.cloud.compute.v1beta.NetworkEndpointGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NetworkEndpointGroups_ListNetworkEndpoints_async", - "title": "AcceleratorTypes listNetworkEndpoints Sample", - "origin": "API_DEFINITION", - "description": " Lists the network endpoints in the specified network endpoint group.", - "canonical": true, - "file": "network_endpoint_groups.list_network_endpoints.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 157, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListNetworkEndpoints", - "fullName": "google.cloud.compute.v1beta.NetworkEndpointGroups.ListNetworkEndpoints", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "network_endpoint_group", - "type": "TYPE_STRING" - }, - { - "name": "network_endpoint_groups_list_endpoints_request_resource", - "type": ".google.cloud.compute.v1beta.NetworkEndpointGroupsListEndpointsRequest" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.NetworkEndpointGroupsListNetworkEndpoints", - "client": { - "shortName": "NetworkEndpointGroupsClient", - "fullName": "google.cloud.compute.v1beta.NetworkEndpointGroupsClient" - }, - "method": { - "shortName": "ListNetworkEndpoints", - "fullName": "google.cloud.compute.v1beta.NetworkEndpointGroups.ListNetworkEndpoints", - "service": { - "shortName": "NetworkEndpointGroups", - "fullName": "google.cloud.compute.v1beta.NetworkEndpointGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NetworkEndpointGroups_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "network_endpoint_groups.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.NetworkEndpointGroups.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "NetworkEndpointGroupsClient", - "fullName": "google.cloud.compute.v1beta.NetworkEndpointGroupsClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.NetworkEndpointGroups.TestIamPermissions", - "service": { - "shortName": "NetworkEndpointGroups", - "fullName": "google.cloud.compute.v1beta.NetworkEndpointGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NetworkFirewallPolicies_AddAssociation_async", - "title": "AcceleratorTypes addAssociation Sample", - "origin": "API_DEFINITION", - "description": " Inserts an association for the specified firewall policy.", - "canonical": true, - "file": "network_firewall_policies.add_association.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddAssociation", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies.AddAssociation", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "firewall_policy_association_resource", - "type": ".google.cloud.compute.v1beta.FirewallPolicyAssociation" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "replace_existing_association", - "type": "TYPE_BOOL" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "NetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "AddAssociation", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies.AddAssociation", - "service": { - "shortName": "NetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NetworkFirewallPolicies_AddPacketMirroringRule_async", - "title": "AcceleratorTypes addPacketMirroringRule Sample", - "origin": "API_DEFINITION", - "description": " Inserts a packet mirroring rule into a firewall policy.", - "canonical": true, - "file": "network_firewall_policies.add_packet_mirroring_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddPacketMirroringRule", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies.AddPacketMirroringRule", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "firewall_policy_rule_resource", - "type": ".google.cloud.compute.v1beta.FirewallPolicyRule" - }, - { - "name": "max_priority", - "type": "TYPE_INT32" - }, - { - "name": "min_priority", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "NetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "AddPacketMirroringRule", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies.AddPacketMirroringRule", - "service": { - "shortName": "NetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NetworkFirewallPolicies_AddRule_async", - "title": "AcceleratorTypes addRule Sample", - "origin": "API_DEFINITION", - "description": " Inserts a rule into a firewall policy.", - "canonical": true, - "file": "network_firewall_policies.add_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddRule", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies.AddRule", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "firewall_policy_rule_resource", - "type": ".google.cloud.compute.v1beta.FirewallPolicyRule" - }, - { - "name": "max_priority", - "type": "TYPE_INT32" - }, - { - "name": "min_priority", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "NetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "AddRule", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies.AddRule", - "service": { - "shortName": "NetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NetworkFirewallPolicies_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of network firewall policies, listing network firewall policies from all applicable scopes (global and regional) and grouping the results per scope. To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "network_firewall_policies.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1beta.NetworkFirewallPolicyAggregatedList", - "client": { - "shortName": "NetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies.AggregatedList", - "service": { - "shortName": "NetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NetworkFirewallPolicies_CloneRules_async", - "title": "AcceleratorTypes cloneRules Sample", - "origin": "API_DEFINITION", - "description": " Copies rules to the specified firewall policy.", - "canonical": true, - "file": "network_firewall_policies.clone_rules.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CloneRules", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies.CloneRules", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "source_firewall_policy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "NetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "CloneRules", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies.CloneRules", - "service": { - "shortName": "NetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NetworkFirewallPolicies_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified policy.", - "canonical": true, - "file": "network_firewall_policies.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies.Delete", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "NetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies.Delete", - "service": { - "shortName": "NetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NetworkFirewallPolicies_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified network firewall policy.", - "canonical": true, - "file": "network_firewall_policies.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies.Get", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.FirewallPolicy", - "client": { - "shortName": "NetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies.Get", - "service": { - "shortName": "NetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NetworkFirewallPolicies_GetAssociation_async", - "title": "AcceleratorTypes getAssociation Sample", - "origin": "API_DEFINITION", - "description": " Gets an association with the specified name.", - "canonical": true, - "file": "network_firewall_policies.get_association.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAssociation", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies.GetAssociation", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.FirewallPolicyAssociation", - "client": { - "shortName": "NetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "GetAssociation", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies.GetAssociation", - "service": { - "shortName": "NetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NetworkFirewallPolicies_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "network_firewall_policies.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "NetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies.GetIamPolicy", - "service": { - "shortName": "NetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NetworkFirewallPolicies_GetPacketMirroringRule_async", - "title": "AcceleratorTypes getPacketMirroringRule Sample", - "origin": "API_DEFINITION", - "description": " Gets a packet mirroring rule of the specified priority.", - "canonical": true, - "file": "network_firewall_policies.get_packet_mirroring_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPacketMirroringRule", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies.GetPacketMirroringRule", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "priority", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.FirewallPolicyRule", - "client": { - "shortName": "NetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "GetPacketMirroringRule", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies.GetPacketMirroringRule", - "service": { - "shortName": "NetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NetworkFirewallPolicies_GetRule_async", - "title": "AcceleratorTypes getRule Sample", - "origin": "API_DEFINITION", - "description": " Gets a rule of the specified priority.", - "canonical": true, - "file": "network_firewall_policies.get_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRule", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies.GetRule", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "priority", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.FirewallPolicyRule", - "client": { - "shortName": "NetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "GetRule", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies.GetRule", - "service": { - "shortName": "NetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NetworkFirewallPolicies_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a new policy in the specified project using the data included in the request.", - "canonical": true, - "file": "network_firewall_policies.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies.Insert", - "async": true, - "parameters": [ - { - "name": "firewall_policy_resource", - "type": ".google.cloud.compute.v1beta.FirewallPolicy" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "NetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies.Insert", - "service": { - "shortName": "NetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NetworkFirewallPolicies_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Lists all the policies that have been configured for the specified project.", - "canonical": true, - "file": "network_firewall_policies.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.FirewallPolicyList", - "client": { - "shortName": "NetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies.List", - "service": { - "shortName": "NetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NetworkFirewallPolicies_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patches the specified policy with the data included in the request.", - "canonical": true, - "file": "network_firewall_policies.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies.Patch", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "firewall_policy_resource", - "type": ".google.cloud.compute.v1beta.FirewallPolicy" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "NetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies.Patch", - "service": { - "shortName": "NetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NetworkFirewallPolicies_PatchPacketMirroringRule_async", - "title": "AcceleratorTypes patchPacketMirroringRule Sample", - "origin": "API_DEFINITION", - "description": " Patches a packet mirroring rule of the specified priority.", - "canonical": true, - "file": "network_firewall_policies.patch_packet_mirroring_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PatchPacketMirroringRule", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies.PatchPacketMirroringRule", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "firewall_policy_rule_resource", - "type": ".google.cloud.compute.v1beta.FirewallPolicyRule" - }, - { - "name": "priority", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "NetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "PatchPacketMirroringRule", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies.PatchPacketMirroringRule", - "service": { - "shortName": "NetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NetworkFirewallPolicies_PatchRule_async", - "title": "AcceleratorTypes patchRule Sample", - "origin": "API_DEFINITION", - "description": " Patches a rule of the specified priority.", - "canonical": true, - "file": "network_firewall_policies.patch_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PatchRule", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies.PatchRule", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "firewall_policy_rule_resource", - "type": ".google.cloud.compute.v1beta.FirewallPolicyRule" - }, - { - "name": "priority", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "NetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "PatchRule", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies.PatchRule", - "service": { - "shortName": "NetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NetworkFirewallPolicies_RemoveAssociation_async", - "title": "AcceleratorTypes removeAssociation Sample", - "origin": "API_DEFINITION", - "description": " Removes an association for the specified firewall policy.", - "canonical": true, - "file": "network_firewall_policies.remove_association.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveAssociation", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies.RemoveAssociation", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "NetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "RemoveAssociation", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies.RemoveAssociation", - "service": { - "shortName": "NetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NetworkFirewallPolicies_RemovePacketMirroringRule_async", - "title": "AcceleratorTypes removePacketMirroringRule Sample", - "origin": "API_DEFINITION", - "description": " Deletes a packet mirroring rule of the specified priority.", - "canonical": true, - "file": "network_firewall_policies.remove_packet_mirroring_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemovePacketMirroringRule", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies.RemovePacketMirroringRule", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "priority", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "NetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "RemovePacketMirroringRule", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies.RemovePacketMirroringRule", - "service": { - "shortName": "NetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NetworkFirewallPolicies_RemoveRule_async", - "title": "AcceleratorTypes removeRule Sample", - "origin": "API_DEFINITION", - "description": " Deletes a rule of the specified priority.", - "canonical": true, - "file": "network_firewall_policies.remove_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveRule", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies.RemoveRule", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "priority", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "NetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "RemoveRule", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies.RemoveRule", - "service": { - "shortName": "NetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NetworkFirewallPolicies_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "network_firewall_policies.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "global_set_policy_request_resource", - "type": ".google.cloud.compute.v1beta.GlobalSetPolicyRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "NetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies.SetIamPolicy", - "service": { - "shortName": "NetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NetworkFirewallPolicies_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "network_firewall_policies.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "NetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies.TestIamPermissions", - "service": { - "shortName": "NetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1beta.NetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NetworkProfiles_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified network profile.", - "canonical": true, - "file": "network_profiles.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.NetworkProfiles.Get", - "async": true, - "parameters": [ - { - "name": "network_profile", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.NetworkProfile", - "client": { - "shortName": "NetworkProfilesClient", - "fullName": "google.cloud.compute.v1beta.NetworkProfilesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.NetworkProfiles.Get", - "service": { - "shortName": "NetworkProfiles", - "fullName": "google.cloud.compute.v1beta.NetworkProfiles" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NetworkProfiles_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of network profiles available to the specified project.", - "canonical": true, - "file": "network_profiles.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.NetworkProfiles.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.NetworkProfilesListResponse", - "client": { - "shortName": "NetworkProfilesClient", - "fullName": "google.cloud.compute.v1beta.NetworkProfilesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.NetworkProfiles.List", - "service": { - "shortName": "NetworkProfiles", - "fullName": "google.cloud.compute.v1beta.NetworkProfiles" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Networks_AddPeering_async", - "title": "AcceleratorTypes addPeering Sample", - "origin": "API_DEFINITION", - "description": " Adds a peering to the specified network.", - "canonical": true, - "file": "networks.add_peering.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddPeering", - "fullName": "google.cloud.compute.v1beta.Networks.AddPeering", - "async": true, - "parameters": [ - { - "name": "network", - "type": "TYPE_STRING" - }, - { - "name": "networks_add_peering_request_resource", - "type": ".google.cloud.compute.v1beta.NetworksAddPeeringRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "NetworksClient", - "fullName": "google.cloud.compute.v1beta.NetworksClient" - }, - "method": { - "shortName": "AddPeering", - "fullName": "google.cloud.compute.v1beta.Networks.AddPeering", - "service": { - "shortName": "Networks", - "fullName": "google.cloud.compute.v1beta.Networks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Networks_CancelRequestRemovePeering_async", - "title": "AcceleratorTypes cancelRequestRemovePeering Sample", - "origin": "API_DEFINITION", - "description": " Cancel requests to remove a peering from the specified network. Applicable only for PeeringConnection with update_strategy=CONSENSUS. Cancels a request to remove a peering from the specified network.", - "canonical": true, - "file": "networks.cancel_request_remove_peering.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CancelRequestRemovePeering", - "fullName": "google.cloud.compute.v1beta.Networks.CancelRequestRemovePeering", - "async": true, - "parameters": [ - { - "name": "network", - "type": "TYPE_STRING" - }, - { - "name": "networks_cancel_request_remove_peering_request_resource", - "type": ".google.cloud.compute.v1beta.NetworksCancelRequestRemovePeeringRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "NetworksClient", - "fullName": "google.cloud.compute.v1beta.NetworksClient" - }, - "method": { - "shortName": "CancelRequestRemovePeering", - "fullName": "google.cloud.compute.v1beta.Networks.CancelRequestRemovePeering", - "service": { - "shortName": "Networks", - "fullName": "google.cloud.compute.v1beta.Networks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Networks_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified network.", - "canonical": true, - "file": "networks.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.Networks.Delete", - "async": true, - "parameters": [ - { - "name": "network", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "NetworksClient", - "fullName": "google.cloud.compute.v1beta.NetworksClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.Networks.Delete", - "service": { - "shortName": "Networks", - "fullName": "google.cloud.compute.v1beta.Networks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Networks_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified network.", - "canonical": true, - "file": "networks.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.Networks.Get", - "async": true, - "parameters": [ - { - "name": "network", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Network", - "client": { - "shortName": "NetworksClient", - "fullName": "google.cloud.compute.v1beta.NetworksClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.Networks.Get", - "service": { - "shortName": "Networks", - "fullName": "google.cloud.compute.v1beta.Networks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Networks_GetEffectiveFirewalls_async", - "title": "AcceleratorTypes getEffectiveFirewalls Sample", - "origin": "API_DEFINITION", - "description": " Returns the effective firewalls on a given network.", - "canonical": true, - "file": "networks.get_effective_firewalls.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEffectiveFirewalls", - "fullName": "google.cloud.compute.v1beta.Networks.GetEffectiveFirewalls", - "async": true, - "parameters": [ - { - "name": "network", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.NetworksGetEffectiveFirewallsResponse", - "client": { - "shortName": "NetworksClient", - "fullName": "google.cloud.compute.v1beta.NetworksClient" - }, - "method": { - "shortName": "GetEffectiveFirewalls", - "fullName": "google.cloud.compute.v1beta.Networks.GetEffectiveFirewalls", - "service": { - "shortName": "Networks", - "fullName": "google.cloud.compute.v1beta.Networks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Networks_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a network in the specified project using the data included in the request.", - "canonical": true, - "file": "networks.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.Networks.Insert", - "async": true, - "parameters": [ - { - "name": "network_resource", - "type": ".google.cloud.compute.v1beta.Network" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "NetworksClient", - "fullName": "google.cloud.compute.v1beta.NetworksClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.Networks.Insert", - "service": { - "shortName": "Networks", - "fullName": "google.cloud.compute.v1beta.Networks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Networks_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of networks available to the specified project.", - "canonical": true, - "file": "networks.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.Networks.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.NetworkList", - "client": { - "shortName": "NetworksClient", - "fullName": "google.cloud.compute.v1beta.NetworksClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.Networks.List", - "service": { - "shortName": "Networks", - "fullName": "google.cloud.compute.v1beta.Networks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Networks_ListPeeringRoutes_async", - "title": "AcceleratorTypes listPeeringRoutes Sample", - "origin": "API_DEFINITION", - "description": " Lists the peering routes exchanged over peering connection.", - "canonical": true, - "file": "networks.list_peering_routes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 159, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPeeringRoutes", - "fullName": "google.cloud.compute.v1beta.Networks.ListPeeringRoutes", - "async": true, - "parameters": [ - { - "name": "direction", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "network", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "peering_name", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.ExchangedPeeringRoutesList", - "client": { - "shortName": "NetworksClient", - "fullName": "google.cloud.compute.v1beta.NetworksClient" - }, - "method": { - "shortName": "ListPeeringRoutes", - "fullName": "google.cloud.compute.v1beta.Networks.ListPeeringRoutes", - "service": { - "shortName": "Networks", - "fullName": "google.cloud.compute.v1beta.Networks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Networks_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patches the specified network with the data included in the request. Only routingConfig can be modified.", - "canonical": true, - "file": "networks.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.Networks.Patch", - "async": true, - "parameters": [ - { - "name": "network", - "type": "TYPE_STRING" - }, - { - "name": "network_resource", - "type": ".google.cloud.compute.v1beta.Network" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "NetworksClient", - "fullName": "google.cloud.compute.v1beta.NetworksClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.Networks.Patch", - "service": { - "shortName": "Networks", - "fullName": "google.cloud.compute.v1beta.Networks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Networks_RemovePeering_async", - "title": "AcceleratorTypes removePeering Sample", - "origin": "API_DEFINITION", - "description": " Removes a peering from the specified network.", - "canonical": true, - "file": "networks.remove_peering.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemovePeering", - "fullName": "google.cloud.compute.v1beta.Networks.RemovePeering", - "async": true, - "parameters": [ - { - "name": "network", - "type": "TYPE_STRING" - }, - { - "name": "networks_remove_peering_request_resource", - "type": ".google.cloud.compute.v1beta.NetworksRemovePeeringRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "NetworksClient", - "fullName": "google.cloud.compute.v1beta.NetworksClient" - }, - "method": { - "shortName": "RemovePeering", - "fullName": "google.cloud.compute.v1beta.Networks.RemovePeering", - "service": { - "shortName": "Networks", - "fullName": "google.cloud.compute.v1beta.Networks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Networks_RequestRemovePeering_async", - "title": "AcceleratorTypes requestRemovePeering Sample", - "origin": "API_DEFINITION", - "description": " Requests to remove a peering from the specified network. Applicable only for PeeringConnection with update_strategy=CONSENSUS.", - "canonical": true, - "file": "networks.request_remove_peering.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RequestRemovePeering", - "fullName": "google.cloud.compute.v1beta.Networks.RequestRemovePeering", - "async": true, - "parameters": [ - { - "name": "network", - "type": "TYPE_STRING" - }, - { - "name": "networks_request_remove_peering_request_resource", - "type": ".google.cloud.compute.v1beta.NetworksRequestRemovePeeringRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "NetworksClient", - "fullName": "google.cloud.compute.v1beta.NetworksClient" - }, - "method": { - "shortName": "RequestRemovePeering", - "fullName": "google.cloud.compute.v1beta.Networks.RequestRemovePeering", - "service": { - "shortName": "Networks", - "fullName": "google.cloud.compute.v1beta.Networks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Networks_SwitchToCustomMode_async", - "title": "AcceleratorTypes switchToCustomMode Sample", - "origin": "API_DEFINITION", - "description": " Switches the network mode from auto subnet mode to custom subnet mode.", - "canonical": true, - "file": "networks.switch_to_custom_mode.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SwitchToCustomMode", - "fullName": "google.cloud.compute.v1beta.Networks.SwitchToCustomMode", - "async": true, - "parameters": [ - { - "name": "network", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "NetworksClient", - "fullName": "google.cloud.compute.v1beta.NetworksClient" - }, - "method": { - "shortName": "SwitchToCustomMode", - "fullName": "google.cloud.compute.v1beta.Networks.SwitchToCustomMode", - "service": { - "shortName": "Networks", - "fullName": "google.cloud.compute.v1beta.Networks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Networks_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "networks.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.Networks.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "NetworksClient", - "fullName": "google.cloud.compute.v1beta.NetworksClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.Networks.TestIamPermissions", - "service": { - "shortName": "Networks", - "fullName": "google.cloud.compute.v1beta.Networks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Networks_UpdatePeering_async", - "title": "AcceleratorTypes updatePeering Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified network peering with the data included in the request. You can only modify the NetworkPeering.export_custom_routes field and the NetworkPeering.import_custom_routes field.", - "canonical": true, - "file": "networks.update_peering.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdatePeering", - "fullName": "google.cloud.compute.v1beta.Networks.UpdatePeering", - "async": true, - "parameters": [ - { - "name": "network", - "type": "TYPE_STRING" - }, - { - "name": "networks_update_peering_request_resource", - "type": ".google.cloud.compute.v1beta.NetworksUpdatePeeringRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "NetworksClient", - "fullName": "google.cloud.compute.v1beta.NetworksClient" - }, - "method": { - "shortName": "UpdatePeering", - "fullName": "google.cloud.compute.v1beta.Networks.UpdatePeering", - "service": { - "shortName": "Networks", - "fullName": "google.cloud.compute.v1beta.Networks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NodeGroups_AddNodes_async", - "title": "AcceleratorTypes addNodes Sample", - "origin": "API_DEFINITION", - "description": " Adds specified number of nodes to the node group.", - "canonical": true, - "file": "node_groups.add_nodes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddNodes", - "fullName": "google.cloud.compute.v1beta.NodeGroups.AddNodes", - "async": true, - "parameters": [ - { - "name": "node_group", - "type": "TYPE_STRING" - }, - { - "name": "node_groups_add_nodes_request_resource", - "type": ".google.cloud.compute.v1beta.NodeGroupsAddNodesRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "NodeGroupsClient", - "fullName": "google.cloud.compute.v1beta.NodeGroupsClient" - }, - "method": { - "shortName": "AddNodes", - "fullName": "google.cloud.compute.v1beta.NodeGroups.AddNodes", - "service": { - "shortName": "NodeGroups", - "fullName": "google.cloud.compute.v1beta.NodeGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NodeGroups_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of node groups. Note: use nodeGroups.listNodes for more details about each group. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "node_groups.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.NodeGroups.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1beta.NodeGroupAggregatedList", - "client": { - "shortName": "NodeGroupsClient", - "fullName": "google.cloud.compute.v1beta.NodeGroupsClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.NodeGroups.AggregatedList", - "service": { - "shortName": "NodeGroups", - "fullName": "google.cloud.compute.v1beta.NodeGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NodeGroups_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified NodeGroup resource.", - "canonical": true, - "file": "node_groups.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.NodeGroups.Delete", - "async": true, - "parameters": [ - { - "name": "node_group", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "NodeGroupsClient", - "fullName": "google.cloud.compute.v1beta.NodeGroupsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.NodeGroups.Delete", - "service": { - "shortName": "NodeGroups", - "fullName": "google.cloud.compute.v1beta.NodeGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NodeGroups_DeleteNodes_async", - "title": "AcceleratorTypes deleteNodes Sample", - "origin": "API_DEFINITION", - "description": " Deletes specified nodes from the node group.", - "canonical": true, - "file": "node_groups.delete_nodes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteNodes", - "fullName": "google.cloud.compute.v1beta.NodeGroups.DeleteNodes", - "async": true, - "parameters": [ - { - "name": "node_group", - "type": "TYPE_STRING" - }, - { - "name": "node_groups_delete_nodes_request_resource", - "type": ".google.cloud.compute.v1beta.NodeGroupsDeleteNodesRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "NodeGroupsClient", - "fullName": "google.cloud.compute.v1beta.NodeGroupsClient" - }, - "method": { - "shortName": "DeleteNodes", - "fullName": "google.cloud.compute.v1beta.NodeGroups.DeleteNodes", - "service": { - "shortName": "NodeGroups", - "fullName": "google.cloud.compute.v1beta.NodeGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NodeGroups_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified NodeGroup. Get a list of available NodeGroups by making a list() request. Note: the \"nodes\" field should not be used. Use nodeGroups.listNodes instead.", - "canonical": true, - "file": "node_groups.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.NodeGroups.Get", - "async": true, - "parameters": [ - { - "name": "node_group", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.NodeGroup", - "client": { - "shortName": "NodeGroupsClient", - "fullName": "google.cloud.compute.v1beta.NodeGroupsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.NodeGroups.Get", - "service": { - "shortName": "NodeGroups", - "fullName": "google.cloud.compute.v1beta.NodeGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NodeGroups_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "node_groups.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.NodeGroups.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "NodeGroupsClient", - "fullName": "google.cloud.compute.v1beta.NodeGroupsClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.NodeGroups.GetIamPolicy", - "service": { - "shortName": "NodeGroups", - "fullName": "google.cloud.compute.v1beta.NodeGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NodeGroups_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a NodeGroup resource in the specified project using the data included in the request.", - "canonical": true, - "file": "node_groups.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.NodeGroups.Insert", - "async": true, - "parameters": [ - { - "name": "initial_node_count", - "type": "TYPE_INT32" - }, - { - "name": "node_group_resource", - "type": ".google.cloud.compute.v1beta.NodeGroup" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "NodeGroupsClient", - "fullName": "google.cloud.compute.v1beta.NodeGroupsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.NodeGroups.Insert", - "service": { - "shortName": "NodeGroups", - "fullName": "google.cloud.compute.v1beta.NodeGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NodeGroups_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of node groups available to the specified project. Note: use nodeGroups.listNodes for more details about each group.", - "canonical": true, - "file": "node_groups.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.NodeGroups.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.NodeGroupList", - "client": { - "shortName": "NodeGroupsClient", - "fullName": "google.cloud.compute.v1beta.NodeGroupsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.NodeGroups.List", - "service": { - "shortName": "NodeGroups", - "fullName": "google.cloud.compute.v1beta.NodeGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NodeGroups_ListNodes_async", - "title": "AcceleratorTypes listNodes Sample", - "origin": "API_DEFINITION", - "description": " Lists nodes in the node group.", - "canonical": true, - "file": "node_groups.list_nodes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 150, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListNodes", - "fullName": "google.cloud.compute.v1beta.NodeGroups.ListNodes", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "node_group", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.NodeGroupsListNodes", - "client": { - "shortName": "NodeGroupsClient", - "fullName": "google.cloud.compute.v1beta.NodeGroupsClient" - }, - "method": { - "shortName": "ListNodes", - "fullName": "google.cloud.compute.v1beta.NodeGroups.ListNodes", - "service": { - "shortName": "NodeGroups", - "fullName": "google.cloud.compute.v1beta.NodeGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NodeGroups_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified node group.", - "canonical": true, - "file": "node_groups.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.NodeGroups.Patch", - "async": true, - "parameters": [ - { - "name": "node_group", - "type": "TYPE_STRING" - }, - { - "name": "node_group_resource", - "type": ".google.cloud.compute.v1beta.NodeGroup" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "NodeGroupsClient", - "fullName": "google.cloud.compute.v1beta.NodeGroupsClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.NodeGroups.Patch", - "service": { - "shortName": "NodeGroups", - "fullName": "google.cloud.compute.v1beta.NodeGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NodeGroups_PerformMaintenance_async", - "title": "AcceleratorTypes performMaintenance Sample", - "origin": "API_DEFINITION", - "description": " Perform maintenance on a subset of nodes in the node group.", - "canonical": true, - "file": "node_groups.perform_maintenance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PerformMaintenance", - "fullName": "google.cloud.compute.v1beta.NodeGroups.PerformMaintenance", - "async": true, - "parameters": [ - { - "name": "node_group", - "type": "TYPE_STRING" - }, - { - "name": "node_groups_perform_maintenance_request_resource", - "type": ".google.cloud.compute.v1beta.NodeGroupsPerformMaintenanceRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "NodeGroupsClient", - "fullName": "google.cloud.compute.v1beta.NodeGroupsClient" - }, - "method": { - "shortName": "PerformMaintenance", - "fullName": "google.cloud.compute.v1beta.NodeGroups.PerformMaintenance", - "service": { - "shortName": "NodeGroups", - "fullName": "google.cloud.compute.v1beta.NodeGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NodeGroups_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "node_groups.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.NodeGroups.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "zone_set_policy_request_resource", - "type": ".google.cloud.compute.v1beta.ZoneSetPolicyRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "NodeGroupsClient", - "fullName": "google.cloud.compute.v1beta.NodeGroupsClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.NodeGroups.SetIamPolicy", - "service": { - "shortName": "NodeGroups", - "fullName": "google.cloud.compute.v1beta.NodeGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NodeGroups_SetNodeTemplate_async", - "title": "AcceleratorTypes setNodeTemplate Sample", - "origin": "API_DEFINITION", - "description": " Updates the node template of the node group.", - "canonical": true, - "file": "node_groups.set_node_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetNodeTemplate", - "fullName": "google.cloud.compute.v1beta.NodeGroups.SetNodeTemplate", - "async": true, - "parameters": [ - { - "name": "node_group", - "type": "TYPE_STRING" - }, - { - "name": "node_groups_set_node_template_request_resource", - "type": ".google.cloud.compute.v1beta.NodeGroupsSetNodeTemplateRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "NodeGroupsClient", - "fullName": "google.cloud.compute.v1beta.NodeGroupsClient" - }, - "method": { - "shortName": "SetNodeTemplate", - "fullName": "google.cloud.compute.v1beta.NodeGroups.SetNodeTemplate", - "service": { - "shortName": "NodeGroups", - "fullName": "google.cloud.compute.v1beta.NodeGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NodeGroups_SimulateMaintenanceEvent_async", - "title": "AcceleratorTypes simulateMaintenanceEvent Sample", - "origin": "API_DEFINITION", - "description": " Simulates maintenance event on specified nodes from the node group.", - "canonical": true, - "file": "node_groups.simulate_maintenance_event.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SimulateMaintenanceEvent", - "fullName": "google.cloud.compute.v1beta.NodeGroups.SimulateMaintenanceEvent", - "async": true, - "parameters": [ - { - "name": "node_group", - "type": "TYPE_STRING" - }, - { - "name": "node_groups_simulate_maintenance_event_request_resource", - "type": ".google.cloud.compute.v1beta.NodeGroupsSimulateMaintenanceEventRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "NodeGroupsClient", - "fullName": "google.cloud.compute.v1beta.NodeGroupsClient" - }, - "method": { - "shortName": "SimulateMaintenanceEvent", - "fullName": "google.cloud.compute.v1beta.NodeGroups.SimulateMaintenanceEvent", - "service": { - "shortName": "NodeGroups", - "fullName": "google.cloud.compute.v1beta.NodeGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NodeGroups_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "node_groups.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.NodeGroups.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "NodeGroupsClient", - "fullName": "google.cloud.compute.v1beta.NodeGroupsClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.NodeGroups.TestIamPermissions", - "service": { - "shortName": "NodeGroups", - "fullName": "google.cloud.compute.v1beta.NodeGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NodeTemplates_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of node templates. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "node_templates.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.NodeTemplates.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1beta.NodeTemplateAggregatedList", - "client": { - "shortName": "NodeTemplatesClient", - "fullName": "google.cloud.compute.v1beta.NodeTemplatesClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.NodeTemplates.AggregatedList", - "service": { - "shortName": "NodeTemplates", - "fullName": "google.cloud.compute.v1beta.NodeTemplates" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NodeTemplates_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified NodeTemplate resource.", - "canonical": true, - "file": "node_templates.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.NodeTemplates.Delete", - "async": true, - "parameters": [ - { - "name": "node_template", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "NodeTemplatesClient", - "fullName": "google.cloud.compute.v1beta.NodeTemplatesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.NodeTemplates.Delete", - "service": { - "shortName": "NodeTemplates", - "fullName": "google.cloud.compute.v1beta.NodeTemplates" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NodeTemplates_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified node template.", - "canonical": true, - "file": "node_templates.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.NodeTemplates.Get", - "async": true, - "parameters": [ - { - "name": "node_template", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.NodeTemplate", - "client": { - "shortName": "NodeTemplatesClient", - "fullName": "google.cloud.compute.v1beta.NodeTemplatesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.NodeTemplates.Get", - "service": { - "shortName": "NodeTemplates", - "fullName": "google.cloud.compute.v1beta.NodeTemplates" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NodeTemplates_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "node_templates.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.NodeTemplates.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "NodeTemplatesClient", - "fullName": "google.cloud.compute.v1beta.NodeTemplatesClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.NodeTemplates.GetIamPolicy", - "service": { - "shortName": "NodeTemplates", - "fullName": "google.cloud.compute.v1beta.NodeTemplates" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NodeTemplates_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a NodeTemplate resource in the specified project using the data included in the request.", - "canonical": true, - "file": "node_templates.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.NodeTemplates.Insert", - "async": true, - "parameters": [ - { - "name": "node_template_resource", - "type": ".google.cloud.compute.v1beta.NodeTemplate" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "NodeTemplatesClient", - "fullName": "google.cloud.compute.v1beta.NodeTemplatesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.NodeTemplates.Insert", - "service": { - "shortName": "NodeTemplates", - "fullName": "google.cloud.compute.v1beta.NodeTemplates" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NodeTemplates_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of node templates available to the specified project.", - "canonical": true, - "file": "node_templates.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.NodeTemplates.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.NodeTemplateList", - "client": { - "shortName": "NodeTemplatesClient", - "fullName": "google.cloud.compute.v1beta.NodeTemplatesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.NodeTemplates.List", - "service": { - "shortName": "NodeTemplates", - "fullName": "google.cloud.compute.v1beta.NodeTemplates" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NodeTemplates_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "node_templates.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.NodeTemplates.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_set_policy_request_resource", - "type": ".google.cloud.compute.v1beta.RegionSetPolicyRequest" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "NodeTemplatesClient", - "fullName": "google.cloud.compute.v1beta.NodeTemplatesClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.NodeTemplates.SetIamPolicy", - "service": { - "shortName": "NodeTemplates", - "fullName": "google.cloud.compute.v1beta.NodeTemplates" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NodeTemplates_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "node_templates.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.NodeTemplates.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "NodeTemplatesClient", - "fullName": "google.cloud.compute.v1beta.NodeTemplatesClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.NodeTemplates.TestIamPermissions", - "service": { - "shortName": "NodeTemplates", - "fullName": "google.cloud.compute.v1beta.NodeTemplates" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NodeTypes_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of node types. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "node_types.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.NodeTypes.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1beta.NodeTypeAggregatedList", - "client": { - "shortName": "NodeTypesClient", - "fullName": "google.cloud.compute.v1beta.NodeTypesClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.NodeTypes.AggregatedList", - "service": { - "shortName": "NodeTypes", - "fullName": "google.cloud.compute.v1beta.NodeTypes" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NodeTypes_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified node type.", - "canonical": true, - "file": "node_types.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.NodeTypes.Get", - "async": true, - "parameters": [ - { - "name": "node_type", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.NodeType", - "client": { - "shortName": "NodeTypesClient", - "fullName": "google.cloud.compute.v1beta.NodeTypesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.NodeTypes.Get", - "service": { - "shortName": "NodeTypes", - "fullName": "google.cloud.compute.v1beta.NodeTypes" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_NodeTypes_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of node types available to the specified project.", - "canonical": true, - "file": "node_types.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.NodeTypes.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.NodeTypeList", - "client": { - "shortName": "NodeTypesClient", - "fullName": "google.cloud.compute.v1beta.NodeTypesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.NodeTypes.List", - "service": { - "shortName": "NodeTypes", - "fullName": "google.cloud.compute.v1beta.NodeTypes" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_OrganizationSecurityPolicies_AddAssociation_async", - "title": "AcceleratorTypes addAssociation Sample", - "origin": "API_DEFINITION", - "description": " Inserts an association for the specified security policy. This has billing implications. Projects in the hierarchy with effective hierarchical security policies will be automatically enrolled into Cloud Armor Enterprise if not already enrolled. Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API were used to modify firewall policies. This usage is now disabled for most organizations. Use firewallPolicies.addAssociation instead.", - "canonical": true, - "file": "organization_security_policies.add_association.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddAssociation", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPolicies.AddAssociation", - "async": true, - "parameters": [ - { - "name": "replace_existing_association", - "type": "TYPE_BOOL" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "security_policy", - "type": "TYPE_STRING" - }, - { - "name": "security_policy_association_resource", - "type": ".google.cloud.compute.v1beta.SecurityPolicyAssociation" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "OrganizationSecurityPoliciesClient", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPoliciesClient" - }, - "method": { - "shortName": "AddAssociation", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPolicies.AddAssociation", - "service": { - "shortName": "OrganizationSecurityPolicies", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_OrganizationSecurityPolicies_AddRule_async", - "title": "AcceleratorTypes addRule Sample", - "origin": "API_DEFINITION", - "description": " Inserts a rule into a security policy. Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API were used to modify firewall policies. This usage is now disabled for most organizations. Use firewallPolicies.addRule instead.", - "canonical": true, - "file": "organization_security_policies.add_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddRule", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPolicies.AddRule", - "async": true, - "parameters": [ - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "security_policy", - "type": "TYPE_STRING" - }, - { - "name": "security_policy_rule_resource", - "type": ".google.cloud.compute.v1beta.SecurityPolicyRule" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "OrganizationSecurityPoliciesClient", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPoliciesClient" - }, - "method": { - "shortName": "AddRule", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPolicies.AddRule", - "service": { - "shortName": "OrganizationSecurityPolicies", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_OrganizationSecurityPolicies_CopyRules_async", - "title": "AcceleratorTypes copyRules Sample", - "origin": "API_DEFINITION", - "description": " Copies rules to the specified security policy. Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API were used to modify firewall policies. This usage is now disabled for most organizations. Use firewallPolicies.cloneRules instead.", - "canonical": true, - "file": "organization_security_policies.copy_rules.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CopyRules", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPolicies.CopyRules", - "async": true, - "parameters": [ - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "security_policy", - "type": "TYPE_STRING" - }, - { - "name": "source_security_policy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "OrganizationSecurityPoliciesClient", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPoliciesClient" - }, - "method": { - "shortName": "CopyRules", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPolicies.CopyRules", - "service": { - "shortName": "OrganizationSecurityPolicies", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_OrganizationSecurityPolicies_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified policy. Use this API to remove Cloud Armor policies. Previously, alpha and beta versions of this API were used to remove firewall policies. This usage is now disabled for most organizations. Use firewallPolicies.delete instead.", - "canonical": true, - "file": "organization_security_policies.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPolicies.Delete", - "async": true, - "parameters": [ - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "security_policy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "OrganizationSecurityPoliciesClient", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPoliciesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPolicies.Delete", - "service": { - "shortName": "OrganizationSecurityPolicies", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_OrganizationSecurityPolicies_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " List all of the ordered rules present in a single specified policy. Use this API to read Cloud Armor policies. Previously, alpha and beta versions of this API were used to read firewall policies. This usage is now disabled for most organizations. Use firewallPolicies.get instead.", - "canonical": true, - "file": "organization_security_policies.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPolicies.Get", - "async": true, - "parameters": [ - { - "name": "security_policy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.SecurityPolicy", - "client": { - "shortName": "OrganizationSecurityPoliciesClient", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPoliciesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPolicies.Get", - "service": { - "shortName": "OrganizationSecurityPolicies", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_OrganizationSecurityPolicies_GetAssociation_async", - "title": "AcceleratorTypes getAssociation Sample", - "origin": "API_DEFINITION", - "description": " Gets an association with the specified name. Use this API to read Cloud Armor policies. Previously, alpha and beta versions of this API were used to read firewall policies. This usage is now disabled for most organizations. Use firewallPolicies.getAssociation instead.", - "canonical": true, - "file": "organization_security_policies.get_association.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAssociation", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPolicies.GetAssociation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "security_policy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.SecurityPolicyAssociation", - "client": { - "shortName": "OrganizationSecurityPoliciesClient", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPoliciesClient" - }, - "method": { - "shortName": "GetAssociation", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPolicies.GetAssociation", - "service": { - "shortName": "OrganizationSecurityPolicies", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_OrganizationSecurityPolicies_GetRule_async", - "title": "AcceleratorTypes getRule Sample", - "origin": "API_DEFINITION", - "description": " Gets a rule at the specified priority. Use this API to read Cloud Armor policies. Previously, alpha and beta versions of this API were used to read firewall policies. This usage is now disabled for most organizations. Use firewallPolicies.getRule instead.", - "canonical": true, - "file": "organization_security_policies.get_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRule", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPolicies.GetRule", - "async": true, - "parameters": [ - { - "name": "priority", - "type": "TYPE_INT32" - }, - { - "name": "security_policy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.SecurityPolicyRule", - "client": { - "shortName": "OrganizationSecurityPoliciesClient", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPoliciesClient" - }, - "method": { - "shortName": "GetRule", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPolicies.GetRule", - "service": { - "shortName": "OrganizationSecurityPolicies", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_OrganizationSecurityPolicies_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a new policy in the specified organization using the data included in the request. Use this API to add Cloud Armor policies. Previously, alpha and beta versions of this API were used to add firewall policies. This usage is now disabled for most organizations. Use firewallPolicies.insert instead.", - "canonical": true, - "file": "organization_security_policies.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPolicies.Insert", - "async": true, - "parameters": [ - { - "name": "parent_id", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "security_policy_resource", - "type": ".google.cloud.compute.v1beta.SecurityPolicy" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "OrganizationSecurityPoliciesClient", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPoliciesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPolicies.Insert", - "service": { - "shortName": "OrganizationSecurityPolicies", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_OrganizationSecurityPolicies_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " List all the policies that have been configured for the specified organization. Use this API to read Cloud Armor policies. Previously, alpha and beta versions of this API were used to read firewall policies. This usage is now disabled for most organizations. Use firewallPolicies.list instead.", - "canonical": true, - "file": "organization_security_policies.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 139, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPolicies.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "parent_id", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.SecurityPolicyList", - "client": { - "shortName": "OrganizationSecurityPoliciesClient", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPoliciesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPolicies.List", - "service": { - "shortName": "OrganizationSecurityPolicies", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_OrganizationSecurityPolicies_ListAssociations_async", - "title": "AcceleratorTypes listAssociations Sample", - "origin": "API_DEFINITION", - "description": " Lists associations of a specified target, i.e., organization or folder. Use this API to read Cloud Armor policies. Previously, alpha and beta versions of this API were used to read firewall policies. This usage is now disabled for most organizations. Use firewallPolicies.listAssociations instead.", - "canonical": true, - "file": "organization_security_policies.list_associations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAssociations", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPolicies.ListAssociations", - "async": true, - "parameters": [ - { - "name": "target_resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.OrganizationSecurityPoliciesListAssociationsResponse", - "client": { - "shortName": "OrganizationSecurityPoliciesClient", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPoliciesClient" - }, - "method": { - "shortName": "ListAssociations", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPolicies.ListAssociations", - "service": { - "shortName": "OrganizationSecurityPolicies", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_OrganizationSecurityPolicies_ListPreconfiguredExpressionSets_async", - "title": "AcceleratorTypes listPreconfiguredExpressionSets Sample", - "origin": "API_DEFINITION", - "description": " Gets the current list of preconfigured Web Application Firewall (WAF) expressions.", - "canonical": true, - "file": "organization_security_policies.list_preconfigured_expression_sets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 137, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPreconfiguredExpressionSets", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPolicies.ListPreconfiguredExpressionSets", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "parent_id", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.SecurityPoliciesListPreconfiguredExpressionSetsResponse", - "client": { - "shortName": "OrganizationSecurityPoliciesClient", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPoliciesClient" - }, - "method": { - "shortName": "ListPreconfiguredExpressionSets", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPolicies.ListPreconfiguredExpressionSets", - "service": { - "shortName": "OrganizationSecurityPolicies", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_OrganizationSecurityPolicies_Move_async", - "title": "AcceleratorTypes move Sample", - "origin": "API_DEFINITION", - "description": " Moves the specified security policy. Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API were used to modify firewall policies. This usage is now disabled for most organizations. Use firewallPolicies.move instead.", - "canonical": true, - "file": "organization_security_policies.move.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Move", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPolicies.Move", - "async": true, - "parameters": [ - { - "name": "parent_id", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "security_policy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "OrganizationSecurityPoliciesClient", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPoliciesClient" - }, - "method": { - "shortName": "Move", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPolicies.Move", - "service": { - "shortName": "OrganizationSecurityPolicies", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_OrganizationSecurityPolicies_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patches the specified policy with the data included in the request. Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API were used to modify firewall policies. This usage is now disabled for most organizations. Use firewallPolicies.patch instead.", - "canonical": true, - "file": "organization_security_policies.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPolicies.Patch", - "async": true, - "parameters": [ - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "security_policy", - "type": "TYPE_STRING" - }, - { - "name": "security_policy_resource", - "type": ".google.cloud.compute.v1beta.SecurityPolicy" - }, - { - "name": "update_mask", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "OrganizationSecurityPoliciesClient", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPoliciesClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPolicies.Patch", - "service": { - "shortName": "OrganizationSecurityPolicies", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_OrganizationSecurityPolicies_PatchRule_async", - "title": "AcceleratorTypes patchRule Sample", - "origin": "API_DEFINITION", - "description": " Patches a rule at the specified priority. Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API were used to modify firewall policies. This usage is now disabled for most organizations. Use firewallPolicies.patchRule instead.", - "canonical": true, - "file": "organization_security_policies.patch_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PatchRule", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPolicies.PatchRule", - "async": true, - "parameters": [ - { - "name": "priority", - "type": "TYPE_INT32" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "security_policy", - "type": "TYPE_STRING" - }, - { - "name": "security_policy_rule_resource", - "type": ".google.cloud.compute.v1beta.SecurityPolicyRule" - }, - { - "name": "update_mask", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "OrganizationSecurityPoliciesClient", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPoliciesClient" - }, - "method": { - "shortName": "PatchRule", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPolicies.PatchRule", - "service": { - "shortName": "OrganizationSecurityPolicies", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_OrganizationSecurityPolicies_RemoveAssociation_async", - "title": "AcceleratorTypes removeAssociation Sample", - "origin": "API_DEFINITION", - "description": " Removes an association for the specified security policy. Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API were used to modify firewall policies. This usage is now disabled for most organizations. Use firewallPolicies.removeAssociation instead.", - "canonical": true, - "file": "organization_security_policies.remove_association.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveAssociation", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPolicies.RemoveAssociation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "security_policy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "OrganizationSecurityPoliciesClient", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPoliciesClient" - }, - "method": { - "shortName": "RemoveAssociation", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPolicies.RemoveAssociation", - "service": { - "shortName": "OrganizationSecurityPolicies", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_OrganizationSecurityPolicies_RemoveRule_async", - "title": "AcceleratorTypes removeRule Sample", - "origin": "API_DEFINITION", - "description": " Deletes a rule at the specified priority. Use this API to modify Cloud Armor policies. Previously, alpha and beta versions of this API were used to modify firewall policies. This usage is now disabled for most organizations. Use firewallPolicies.removeRule instead.", - "canonical": true, - "file": "organization_security_policies.remove_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveRule", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPolicies.RemoveRule", - "async": true, - "parameters": [ - { - "name": "priority", - "type": "TYPE_INT32" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "security_policy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "OrganizationSecurityPoliciesClient", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPoliciesClient" - }, - "method": { - "shortName": "RemoveRule", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPolicies.RemoveRule", - "service": { - "shortName": "OrganizationSecurityPolicies", - "fullName": "google.cloud.compute.v1beta.OrganizationSecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_PacketMirrorings_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of packetMirrorings. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "packet_mirrorings.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.PacketMirrorings.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1beta.PacketMirroringAggregatedList", - "client": { - "shortName": "PacketMirroringsClient", - "fullName": "google.cloud.compute.v1beta.PacketMirroringsClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.PacketMirrorings.AggregatedList", - "service": { - "shortName": "PacketMirrorings", - "fullName": "google.cloud.compute.v1beta.PacketMirrorings" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_PacketMirrorings_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified PacketMirroring resource.", - "canonical": true, - "file": "packet_mirrorings.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.PacketMirrorings.Delete", - "async": true, - "parameters": [ - { - "name": "packet_mirroring", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "PacketMirroringsClient", - "fullName": "google.cloud.compute.v1beta.PacketMirroringsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.PacketMirrorings.Delete", - "service": { - "shortName": "PacketMirrorings", - "fullName": "google.cloud.compute.v1beta.PacketMirrorings" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_PacketMirrorings_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified PacketMirroring resource.", - "canonical": true, - "file": "packet_mirrorings.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.PacketMirrorings.Get", - "async": true, - "parameters": [ - { - "name": "packet_mirroring", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.PacketMirroring", - "client": { - "shortName": "PacketMirroringsClient", - "fullName": "google.cloud.compute.v1beta.PacketMirroringsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.PacketMirrorings.Get", - "service": { - "shortName": "PacketMirrorings", - "fullName": "google.cloud.compute.v1beta.PacketMirrorings" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_PacketMirrorings_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a PacketMirroring resource in the specified project and region using the data included in the request.", - "canonical": true, - "file": "packet_mirrorings.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.PacketMirrorings.Insert", - "async": true, - "parameters": [ - { - "name": "packet_mirroring_resource", - "type": ".google.cloud.compute.v1beta.PacketMirroring" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "PacketMirroringsClient", - "fullName": "google.cloud.compute.v1beta.PacketMirroringsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.PacketMirrorings.Insert", - "service": { - "shortName": "PacketMirrorings", - "fullName": "google.cloud.compute.v1beta.PacketMirrorings" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_PacketMirrorings_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of PacketMirroring resources available to the specified project and region.", - "canonical": true, - "file": "packet_mirrorings.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.PacketMirrorings.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.PacketMirroringList", - "client": { - "shortName": "PacketMirroringsClient", - "fullName": "google.cloud.compute.v1beta.PacketMirroringsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.PacketMirrorings.List", - "service": { - "shortName": "PacketMirrorings", - "fullName": "google.cloud.compute.v1beta.PacketMirrorings" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_PacketMirrorings_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patches the specified PacketMirroring resource with the data included in the request. This method supportsPATCH semantics and usesJSON merge patch format and processing rules.", - "canonical": true, - "file": "packet_mirrorings.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.PacketMirrorings.Patch", - "async": true, - "parameters": [ - { - "name": "packet_mirroring", - "type": "TYPE_STRING" - }, - { - "name": "packet_mirroring_resource", - "type": ".google.cloud.compute.v1beta.PacketMirroring" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "PacketMirroringsClient", - "fullName": "google.cloud.compute.v1beta.PacketMirroringsClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.PacketMirrorings.Patch", - "service": { - "shortName": "PacketMirrorings", - "fullName": "google.cloud.compute.v1beta.PacketMirrorings" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_PacketMirrorings_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "packet_mirrorings.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.PacketMirrorings.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "PacketMirroringsClient", - "fullName": "google.cloud.compute.v1beta.PacketMirroringsClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.PacketMirrorings.TestIamPermissions", - "service": { - "shortName": "PacketMirrorings", - "fullName": "google.cloud.compute.v1beta.PacketMirrorings" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_PreviewFeatures_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the details of the given PreviewFeature.", - "canonical": true, - "file": "preview_features.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.PreviewFeatures.Get", - "async": true, - "parameters": [ - { - "name": "preview_feature", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.PreviewFeature", - "client": { - "shortName": "PreviewFeaturesClient", - "fullName": "google.cloud.compute.v1beta.PreviewFeaturesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.PreviewFeatures.Get", - "service": { - "shortName": "PreviewFeatures", - "fullName": "google.cloud.compute.v1beta.PreviewFeatures" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_PreviewFeatures_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Returns the details of the given PreviewFeature.", - "canonical": true, - "file": "preview_features.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.PreviewFeatures.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.PreviewFeatureList", - "client": { - "shortName": "PreviewFeaturesClient", - "fullName": "google.cloud.compute.v1beta.PreviewFeaturesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.PreviewFeatures.List", - "service": { - "shortName": "PreviewFeatures", - "fullName": "google.cloud.compute.v1beta.PreviewFeatures" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_PreviewFeatures_Update_async", - "title": "AcceleratorTypes update Sample", - "origin": "API_DEFINITION", - "description": " Patches the given PreviewFeature. This method is used to enable or disable a PreviewFeature.", - "canonical": true, - "file": "preview_features.update.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1beta.PreviewFeatures.Update", - "async": true, - "parameters": [ - { - "name": "preview_feature", - "type": "TYPE_STRING" - }, - { - "name": "preview_feature_resource", - "type": ".google.cloud.compute.v1beta.PreviewFeature" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "PreviewFeaturesClient", - "fullName": "google.cloud.compute.v1beta.PreviewFeaturesClient" - }, - "method": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1beta.PreviewFeatures.Update", - "service": { - "shortName": "PreviewFeatures", - "fullName": "google.cloud.compute.v1beta.PreviewFeatures" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Projects_DisableXpnHost_async", - "title": "AcceleratorTypes disableXpnHost Sample", - "origin": "API_DEFINITION", - "description": " Disable this project as a shared VPC host project.", - "canonical": true, - "file": "projects.disable_xpn_host.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DisableXpnHost", - "fullName": "google.cloud.compute.v1beta.Projects.DisableXpnHost", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "ProjectsClient", - "fullName": "google.cloud.compute.v1beta.ProjectsClient" - }, - "method": { - "shortName": "DisableXpnHost", - "fullName": "google.cloud.compute.v1beta.Projects.DisableXpnHost", - "service": { - "shortName": "Projects", - "fullName": "google.cloud.compute.v1beta.Projects" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Projects_DisableXpnResource_async", - "title": "AcceleratorTypes disableXpnResource Sample", - "origin": "API_DEFINITION", - "description": " Disable a service resource (also known as service project) associated with this host project.", - "canonical": true, - "file": "projects.disable_xpn_resource.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DisableXpnResource", - "fullName": "google.cloud.compute.v1beta.Projects.DisableXpnResource", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "projects_disable_xpn_resource_request_resource", - "type": ".google.cloud.compute.v1beta.ProjectsDisableXpnResourceRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "ProjectsClient", - "fullName": "google.cloud.compute.v1beta.ProjectsClient" - }, - "method": { - "shortName": "DisableXpnResource", - "fullName": "google.cloud.compute.v1beta.Projects.DisableXpnResource", - "service": { - "shortName": "Projects", - "fullName": "google.cloud.compute.v1beta.Projects" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Projects_EnableXpnHost_async", - "title": "AcceleratorTypes enableXpnHost Sample", - "origin": "API_DEFINITION", - "description": " Enable this project as a shared VPC host project.", - "canonical": true, - "file": "projects.enable_xpn_host.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "EnableXpnHost", - "fullName": "google.cloud.compute.v1beta.Projects.EnableXpnHost", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "ProjectsClient", - "fullName": "google.cloud.compute.v1beta.ProjectsClient" - }, - "method": { - "shortName": "EnableXpnHost", - "fullName": "google.cloud.compute.v1beta.Projects.EnableXpnHost", - "service": { - "shortName": "Projects", - "fullName": "google.cloud.compute.v1beta.Projects" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Projects_EnableXpnResource_async", - "title": "AcceleratorTypes enableXpnResource Sample", - "origin": "API_DEFINITION", - "description": " Enable service resource (a.k.a service project) for a host project, so that subnets in the host project can be used by instances in the service project.", - "canonical": true, - "file": "projects.enable_xpn_resource.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "EnableXpnResource", - "fullName": "google.cloud.compute.v1beta.Projects.EnableXpnResource", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "projects_enable_xpn_resource_request_resource", - "type": ".google.cloud.compute.v1beta.ProjectsEnableXpnResourceRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "ProjectsClient", - "fullName": "google.cloud.compute.v1beta.ProjectsClient" - }, - "method": { - "shortName": "EnableXpnResource", - "fullName": "google.cloud.compute.v1beta.Projects.EnableXpnResource", - "service": { - "shortName": "Projects", - "fullName": "google.cloud.compute.v1beta.Projects" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Projects_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified Project resource. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the `quotas` field). To exclude one or more fields, set your request's `fields` query parameter to only include the fields you need. For example, to only include the `id` and `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request.", - "canonical": true, - "file": "projects.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.Projects.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Project", - "client": { - "shortName": "ProjectsClient", - "fullName": "google.cloud.compute.v1beta.ProjectsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.Projects.Get", - "service": { - "shortName": "Projects", - "fullName": "google.cloud.compute.v1beta.Projects" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Projects_GetXpnHost_async", - "title": "AcceleratorTypes getXpnHost Sample", - "origin": "API_DEFINITION", - "description": " Gets the shared VPC host project that this project links to. May be empty if no link exists.", - "canonical": true, - "file": "projects.get_xpn_host.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetXpnHost", - "fullName": "google.cloud.compute.v1beta.Projects.GetXpnHost", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Project", - "client": { - "shortName": "ProjectsClient", - "fullName": "google.cloud.compute.v1beta.ProjectsClient" - }, - "method": { - "shortName": "GetXpnHost", - "fullName": "google.cloud.compute.v1beta.Projects.GetXpnHost", - "service": { - "shortName": "Projects", - "fullName": "google.cloud.compute.v1beta.Projects" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Projects_GetXpnResources_async", - "title": "AcceleratorTypes getXpnResources Sample", - "origin": "API_DEFINITION", - "description": " Gets service resources (a.k.a service project) associated with this host project.", - "canonical": true, - "file": "projects.get_xpn_resources.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetXpnResources", - "fullName": "google.cloud.compute.v1beta.Projects.GetXpnResources", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.ProjectsGetXpnResources", - "client": { - "shortName": "ProjectsClient", - "fullName": "google.cloud.compute.v1beta.ProjectsClient" - }, - "method": { - "shortName": "GetXpnResources", - "fullName": "google.cloud.compute.v1beta.Projects.GetXpnResources", - "service": { - "shortName": "Projects", - "fullName": "google.cloud.compute.v1beta.Projects" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Projects_ListXpnHosts_async", - "title": "AcceleratorTypes listXpnHosts Sample", - "origin": "API_DEFINITION", - "description": " Lists all shared VPC host projects visible to the user in an organization.", - "canonical": true, - "file": "projects.list_xpn_hosts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListXpnHosts", - "fullName": "google.cloud.compute.v1beta.Projects.ListXpnHosts", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "projects_list_xpn_hosts_request_resource", - "type": ".google.cloud.compute.v1beta.ProjectsListXpnHostsRequest" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.XpnHostList", - "client": { - "shortName": "ProjectsClient", - "fullName": "google.cloud.compute.v1beta.ProjectsClient" - }, - "method": { - "shortName": "ListXpnHosts", - "fullName": "google.cloud.compute.v1beta.Projects.ListXpnHosts", - "service": { - "shortName": "Projects", - "fullName": "google.cloud.compute.v1beta.Projects" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Projects_MoveDisk_async", - "title": "AcceleratorTypes moveDisk Sample", - "origin": "API_DEFINITION", - "description": " Moves a persistent disk from one zone to another. *Note*: The moveDisk API will be deprecated on September 29, 2026. Starting September 29, 2025, you can't use the moveDisk API on new projects. To move a disk to a different region or zone, follow the steps in [Change the location of a disk](https://cloud.google.com/compute/docs/disks/migrate-to-hyperdisk#migrate-to-hd). Projects that already use the moveDisk API can continue usage until September 29, 2026. Starting November 1, 2025, API responses will include a warning message in the response body about the upcoming deprecation. You can skip the message to continue using the service without interruption.", - "canonical": true, - "file": "projects.move_disk.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "MoveDisk", - "fullName": "google.cloud.compute.v1beta.Projects.MoveDisk", - "async": true, - "parameters": [ - { - "name": "disk_move_request_resource", - "type": ".google.cloud.compute.v1beta.DiskMoveRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "ProjectsClient", - "fullName": "google.cloud.compute.v1beta.ProjectsClient" - }, - "method": { - "shortName": "MoveDisk", - "fullName": "google.cloud.compute.v1beta.Projects.MoveDisk", - "service": { - "shortName": "Projects", - "fullName": "google.cloud.compute.v1beta.Projects" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Projects_MoveInstance_async", - "title": "AcceleratorTypes moveInstance Sample", - "origin": "API_DEFINITION", - "description": " Moves an instance and its attached persistent disks from one zone to another. *Note*: Moving VMs or disks by using this method might cause unexpected behavior. For more information, see the [known issue](/compute/docs/troubleshooting/known-issues#moving_vms_or_disks_using_the_moveinstance_api_or_the_causes_unexpected_behavior). [Deprecated] This method is deprecated. See [moving instance across zones](/compute/docs/instances/moving-instance-across-zones) instead.", - "canonical": true, - "file": "projects.move_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "MoveInstance", - "fullName": "google.cloud.compute.v1beta.Projects.MoveInstance", - "async": true, - "parameters": [ - { - "name": "instance_move_request_resource", - "type": ".google.cloud.compute.v1beta.InstanceMoveRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "ProjectsClient", - "fullName": "google.cloud.compute.v1beta.ProjectsClient" - }, - "method": { - "shortName": "MoveInstance", - "fullName": "google.cloud.compute.v1beta.Projects.MoveInstance", - "service": { - "shortName": "Projects", - "fullName": "google.cloud.compute.v1beta.Projects" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Projects_SetCloudArmorTier_async", - "title": "AcceleratorTypes setCloudArmorTier Sample", - "origin": "API_DEFINITION", - "description": " Sets the Cloud Armor tier of the project. To set ENTERPRISE or above the billing account of the project must be subscribed to Cloud Armor Enterprise. See Subscribing to Cloud Armor Enterprise for more information.", - "canonical": true, - "file": "projects.set_cloud_armor_tier.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetCloudArmorTier", - "fullName": "google.cloud.compute.v1beta.Projects.SetCloudArmorTier", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "projects_set_cloud_armor_tier_request_resource", - "type": ".google.cloud.compute.v1beta.ProjectsSetCloudArmorTierRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "ProjectsClient", - "fullName": "google.cloud.compute.v1beta.ProjectsClient" - }, - "method": { - "shortName": "SetCloudArmorTier", - "fullName": "google.cloud.compute.v1beta.Projects.SetCloudArmorTier", - "service": { - "shortName": "Projects", - "fullName": "google.cloud.compute.v1beta.Projects" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Projects_SetCommonInstanceMetadata_async", - "title": "AcceleratorTypes setCommonInstanceMetadata Sample", - "origin": "API_DEFINITION", - "description": " Sets metadata common to all instances within the specified project using the data included in the request.", - "canonical": true, - "file": "projects.set_common_instance_metadata.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetCommonInstanceMetadata", - "fullName": "google.cloud.compute.v1beta.Projects.SetCommonInstanceMetadata", - "async": true, - "parameters": [ - { - "name": "metadata_resource", - "type": ".google.cloud.compute.v1beta.Metadata" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "ProjectsClient", - "fullName": "google.cloud.compute.v1beta.ProjectsClient" - }, - "method": { - "shortName": "SetCommonInstanceMetadata", - "fullName": "google.cloud.compute.v1beta.Projects.SetCommonInstanceMetadata", - "service": { - "shortName": "Projects", - "fullName": "google.cloud.compute.v1beta.Projects" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Projects_SetDefaultNetworkTier_async", - "title": "AcceleratorTypes setDefaultNetworkTier Sample", - "origin": "API_DEFINITION", - "description": " Sets the default network tier of the project. The default network tier is used when an address/forwardingRule/instance is created without specifying the network tier field.", - "canonical": true, - "file": "projects.set_default_network_tier.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetDefaultNetworkTier", - "fullName": "google.cloud.compute.v1beta.Projects.SetDefaultNetworkTier", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "projects_set_default_network_tier_request_resource", - "type": ".google.cloud.compute.v1beta.ProjectsSetDefaultNetworkTierRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "ProjectsClient", - "fullName": "google.cloud.compute.v1beta.ProjectsClient" - }, - "method": { - "shortName": "SetDefaultNetworkTier", - "fullName": "google.cloud.compute.v1beta.Projects.SetDefaultNetworkTier", - "service": { - "shortName": "Projects", - "fullName": "google.cloud.compute.v1beta.Projects" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Projects_SetManagedProtectionTier_async", - "title": "AcceleratorTypes setManagedProtectionTier Sample", - "origin": "API_DEFINITION", - "description": " Sets the Cloud Armor Managed Protection (CAMP) tier of the project. To set PLUS or above the billing account of the project must be subscribed to Managed Protection Plus. See Subscribing to Managed Protection Plus for more information.", - "canonical": true, - "file": "projects.set_managed_protection_tier.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetManagedProtectionTier", - "fullName": "google.cloud.compute.v1beta.Projects.SetManagedProtectionTier", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "projects_set_managed_protection_tier_request_resource", - "type": ".google.cloud.compute.v1beta.ProjectsSetManagedProtectionTierRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "ProjectsClient", - "fullName": "google.cloud.compute.v1beta.ProjectsClient" - }, - "method": { - "shortName": "SetManagedProtectionTier", - "fullName": "google.cloud.compute.v1beta.Projects.SetManagedProtectionTier", - "service": { - "shortName": "Projects", - "fullName": "google.cloud.compute.v1beta.Projects" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Projects_SetUsageExportBucket_async", - "title": "AcceleratorTypes setUsageExportBucket Sample", - "origin": "API_DEFINITION", - "description": " Enables the usage export feature and sets theusage export bucket where reports are stored. If you provide an empty request body using this method, the usage export feature will be disabled.", - "canonical": true, - "file": "projects.set_usage_export_bucket.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetUsageExportBucket", - "fullName": "google.cloud.compute.v1beta.Projects.SetUsageExportBucket", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "usage_export_location_resource", - "type": ".google.cloud.compute.v1beta.UsageExportLocation" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "ProjectsClient", - "fullName": "google.cloud.compute.v1beta.ProjectsClient" - }, - "method": { - "shortName": "SetUsageExportBucket", - "fullName": "google.cloud.compute.v1beta.Projects.SetUsageExportBucket", - "service": { - "shortName": "Projects", - "fullName": "google.cloud.compute.v1beta.Projects" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_PublicAdvertisedPrefixes_Announce_async", - "title": "AcceleratorTypes announce Sample", - "origin": "API_DEFINITION", - "description": " Announces the specified PublicAdvertisedPrefix", - "canonical": true, - "file": "public_advertised_prefixes.announce.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Announce", - "fullName": "google.cloud.compute.v1beta.PublicAdvertisedPrefixes.Announce", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "public_advertised_prefix", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "PublicAdvertisedPrefixesClient", - "fullName": "google.cloud.compute.v1beta.PublicAdvertisedPrefixesClient" - }, - "method": { - "shortName": "Announce", - "fullName": "google.cloud.compute.v1beta.PublicAdvertisedPrefixes.Announce", - "service": { - "shortName": "PublicAdvertisedPrefixes", - "fullName": "google.cloud.compute.v1beta.PublicAdvertisedPrefixes" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_PublicAdvertisedPrefixes_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified PublicAdvertisedPrefix", - "canonical": true, - "file": "public_advertised_prefixes.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.PublicAdvertisedPrefixes.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "public_advertised_prefix", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "PublicAdvertisedPrefixesClient", - "fullName": "google.cloud.compute.v1beta.PublicAdvertisedPrefixesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.PublicAdvertisedPrefixes.Delete", - "service": { - "shortName": "PublicAdvertisedPrefixes", - "fullName": "google.cloud.compute.v1beta.PublicAdvertisedPrefixes" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_PublicAdvertisedPrefixes_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified PublicAdvertisedPrefix resource.", - "canonical": true, - "file": "public_advertised_prefixes.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.PublicAdvertisedPrefixes.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "public_advertised_prefix", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.PublicAdvertisedPrefix", - "client": { - "shortName": "PublicAdvertisedPrefixesClient", - "fullName": "google.cloud.compute.v1beta.PublicAdvertisedPrefixesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.PublicAdvertisedPrefixes.Get", - "service": { - "shortName": "PublicAdvertisedPrefixes", - "fullName": "google.cloud.compute.v1beta.PublicAdvertisedPrefixes" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_PublicAdvertisedPrefixes_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a PublicAdvertisedPrefix in the specified project using the parameters that are included in the request.", - "canonical": true, - "file": "public_advertised_prefixes.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.PublicAdvertisedPrefixes.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "public_advertised_prefix_resource", - "type": ".google.cloud.compute.v1beta.PublicAdvertisedPrefix" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "PublicAdvertisedPrefixesClient", - "fullName": "google.cloud.compute.v1beta.PublicAdvertisedPrefixesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.PublicAdvertisedPrefixes.Insert", - "service": { - "shortName": "PublicAdvertisedPrefixes", - "fullName": "google.cloud.compute.v1beta.PublicAdvertisedPrefixes" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_PublicAdvertisedPrefixes_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Lists the PublicAdvertisedPrefixes for a project.", - "canonical": true, - "file": "public_advertised_prefixes.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.PublicAdvertisedPrefixes.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.PublicAdvertisedPrefixList", - "client": { - "shortName": "PublicAdvertisedPrefixesClient", - "fullName": "google.cloud.compute.v1beta.PublicAdvertisedPrefixesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.PublicAdvertisedPrefixes.List", - "service": { - "shortName": "PublicAdvertisedPrefixes", - "fullName": "google.cloud.compute.v1beta.PublicAdvertisedPrefixes" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_PublicAdvertisedPrefixes_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patches the specified Router resource with the data included in the request. This method supportsPATCH semantics and usesJSON merge patch format and processing rules.", - "canonical": true, - "file": "public_advertised_prefixes.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.PublicAdvertisedPrefixes.Patch", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "public_advertised_prefix", - "type": "TYPE_STRING" - }, - { - "name": "public_advertised_prefix_resource", - "type": ".google.cloud.compute.v1beta.PublicAdvertisedPrefix" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "PublicAdvertisedPrefixesClient", - "fullName": "google.cloud.compute.v1beta.PublicAdvertisedPrefixesClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.PublicAdvertisedPrefixes.Patch", - "service": { - "shortName": "PublicAdvertisedPrefixes", - "fullName": "google.cloud.compute.v1beta.PublicAdvertisedPrefixes" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_PublicAdvertisedPrefixes_Withdraw_async", - "title": "AcceleratorTypes withdraw Sample", - "origin": "API_DEFINITION", - "description": " Withdraws the specified PublicAdvertisedPrefix", - "canonical": true, - "file": "public_advertised_prefixes.withdraw.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Withdraw", - "fullName": "google.cloud.compute.v1beta.PublicAdvertisedPrefixes.Withdraw", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "public_advertised_prefix", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "PublicAdvertisedPrefixesClient", - "fullName": "google.cloud.compute.v1beta.PublicAdvertisedPrefixesClient" - }, - "method": { - "shortName": "Withdraw", - "fullName": "google.cloud.compute.v1beta.PublicAdvertisedPrefixes.Withdraw", - "service": { - "shortName": "PublicAdvertisedPrefixes", - "fullName": "google.cloud.compute.v1beta.PublicAdvertisedPrefixes" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_PublicDelegatedPrefixes_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Lists all PublicDelegatedPrefix resources owned by the specific project across all scopes. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "public_delegated_prefixes.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.PublicDelegatedPrefixes.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1beta.PublicDelegatedPrefixAggregatedList", - "client": { - "shortName": "PublicDelegatedPrefixesClient", - "fullName": "google.cloud.compute.v1beta.PublicDelegatedPrefixesClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.PublicDelegatedPrefixes.AggregatedList", - "service": { - "shortName": "PublicDelegatedPrefixes", - "fullName": "google.cloud.compute.v1beta.PublicDelegatedPrefixes" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_PublicDelegatedPrefixes_Announce_async", - "title": "AcceleratorTypes announce Sample", - "origin": "API_DEFINITION", - "description": " Announces the specified PublicDelegatedPrefix in the given region.", - "canonical": true, - "file": "public_delegated_prefixes.announce.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Announce", - "fullName": "google.cloud.compute.v1beta.PublicDelegatedPrefixes.Announce", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "public_delegated_prefix", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "PublicDelegatedPrefixesClient", - "fullName": "google.cloud.compute.v1beta.PublicDelegatedPrefixesClient" - }, - "method": { - "shortName": "Announce", - "fullName": "google.cloud.compute.v1beta.PublicDelegatedPrefixes.Announce", - "service": { - "shortName": "PublicDelegatedPrefixes", - "fullName": "google.cloud.compute.v1beta.PublicDelegatedPrefixes" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_PublicDelegatedPrefixes_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified PublicDelegatedPrefix in the given region.", - "canonical": true, - "file": "public_delegated_prefixes.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.PublicDelegatedPrefixes.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "public_delegated_prefix", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "PublicDelegatedPrefixesClient", - "fullName": "google.cloud.compute.v1beta.PublicDelegatedPrefixesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.PublicDelegatedPrefixes.Delete", - "service": { - "shortName": "PublicDelegatedPrefixes", - "fullName": "google.cloud.compute.v1beta.PublicDelegatedPrefixes" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_PublicDelegatedPrefixes_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified PublicDelegatedPrefix resource in the given region.", - "canonical": true, - "file": "public_delegated_prefixes.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.PublicDelegatedPrefixes.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "public_delegated_prefix", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.PublicDelegatedPrefix", - "client": { - "shortName": "PublicDelegatedPrefixesClient", - "fullName": "google.cloud.compute.v1beta.PublicDelegatedPrefixesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.PublicDelegatedPrefixes.Get", - "service": { - "shortName": "PublicDelegatedPrefixes", - "fullName": "google.cloud.compute.v1beta.PublicDelegatedPrefixes" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_PublicDelegatedPrefixes_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a PublicDelegatedPrefix in the specified project in the given region using the parameters that are included in the request.", - "canonical": true, - "file": "public_delegated_prefixes.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.PublicDelegatedPrefixes.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "public_delegated_prefix_resource", - "type": ".google.cloud.compute.v1beta.PublicDelegatedPrefix" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "PublicDelegatedPrefixesClient", - "fullName": "google.cloud.compute.v1beta.PublicDelegatedPrefixesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.PublicDelegatedPrefixes.Insert", - "service": { - "shortName": "PublicDelegatedPrefixes", - "fullName": "google.cloud.compute.v1beta.PublicDelegatedPrefixes" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_PublicDelegatedPrefixes_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Lists the PublicDelegatedPrefixes for a project in the given region.", - "canonical": true, - "file": "public_delegated_prefixes.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.PublicDelegatedPrefixes.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.PublicDelegatedPrefixList", - "client": { - "shortName": "PublicDelegatedPrefixesClient", - "fullName": "google.cloud.compute.v1beta.PublicDelegatedPrefixesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.PublicDelegatedPrefixes.List", - "service": { - "shortName": "PublicDelegatedPrefixes", - "fullName": "google.cloud.compute.v1beta.PublicDelegatedPrefixes" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_PublicDelegatedPrefixes_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patches the specified PublicDelegatedPrefix resource with the data included in the request. This method supportsPATCH semantics and usesJSON merge patch format and processing rules.", - "canonical": true, - "file": "public_delegated_prefixes.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.PublicDelegatedPrefixes.Patch", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "public_delegated_prefix", - "type": "TYPE_STRING" - }, - { - "name": "public_delegated_prefix_resource", - "type": ".google.cloud.compute.v1beta.PublicDelegatedPrefix" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "PublicDelegatedPrefixesClient", - "fullName": "google.cloud.compute.v1beta.PublicDelegatedPrefixesClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.PublicDelegatedPrefixes.Patch", - "service": { - "shortName": "PublicDelegatedPrefixes", - "fullName": "google.cloud.compute.v1beta.PublicDelegatedPrefixes" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_PublicDelegatedPrefixes_Withdraw_async", - "title": "AcceleratorTypes withdraw Sample", - "origin": "API_DEFINITION", - "description": " Withdraws the specified PublicDelegatedPrefix in the given region.", - "canonical": true, - "file": "public_delegated_prefixes.withdraw.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Withdraw", - "fullName": "google.cloud.compute.v1beta.PublicDelegatedPrefixes.Withdraw", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "public_delegated_prefix", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "PublicDelegatedPrefixesClient", - "fullName": "google.cloud.compute.v1beta.PublicDelegatedPrefixesClient" - }, - "method": { - "shortName": "Withdraw", - "fullName": "google.cloud.compute.v1beta.PublicDelegatedPrefixes.Withdraw", - "service": { - "shortName": "PublicDelegatedPrefixes", - "fullName": "google.cloud.compute.v1beta.PublicDelegatedPrefixes" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionAutoscalers_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified autoscaler.", - "canonical": true, - "file": "region_autoscalers.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.RegionAutoscalers.Delete", - "async": true, - "parameters": [ - { - "name": "autoscaler", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionAutoscalersClient", - "fullName": "google.cloud.compute.v1beta.RegionAutoscalersClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.RegionAutoscalers.Delete", - "service": { - "shortName": "RegionAutoscalers", - "fullName": "google.cloud.compute.v1beta.RegionAutoscalers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionAutoscalers_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified autoscaler.", - "canonical": true, - "file": "region_autoscalers.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionAutoscalers.Get", - "async": true, - "parameters": [ - { - "name": "autoscaler", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Autoscaler", - "client": { - "shortName": "RegionAutoscalersClient", - "fullName": "google.cloud.compute.v1beta.RegionAutoscalersClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionAutoscalers.Get", - "service": { - "shortName": "RegionAutoscalers", - "fullName": "google.cloud.compute.v1beta.RegionAutoscalers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionAutoscalers_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates an autoscaler in the specified project using the data included in the request.", - "canonical": true, - "file": "region_autoscalers.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RegionAutoscalers.Insert", - "async": true, - "parameters": [ - { - "name": "autoscaler_resource", - "type": ".google.cloud.compute.v1beta.Autoscaler" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionAutoscalersClient", - "fullName": "google.cloud.compute.v1beta.RegionAutoscalersClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RegionAutoscalers.Insert", - "service": { - "shortName": "RegionAutoscalers", - "fullName": "google.cloud.compute.v1beta.RegionAutoscalers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionAutoscalers_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of autoscalers contained within the specified region.", - "canonical": true, - "file": "region_autoscalers.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionAutoscalers.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.RegionAutoscalerList", - "client": { - "shortName": "RegionAutoscalersClient", - "fullName": "google.cloud.compute.v1beta.RegionAutoscalersClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionAutoscalers.List", - "service": { - "shortName": "RegionAutoscalers", - "fullName": "google.cloud.compute.v1beta.RegionAutoscalers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionAutoscalers_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Updates an autoscaler in the specified project using the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.", - "canonical": true, - "file": "region_autoscalers.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.RegionAutoscalers.Patch", - "async": true, - "parameters": [ - { - "name": "autoscaler", - "type": "TYPE_STRING" - }, - { - "name": "autoscaler_resource", - "type": ".google.cloud.compute.v1beta.Autoscaler" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionAutoscalersClient", - "fullName": "google.cloud.compute.v1beta.RegionAutoscalersClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.RegionAutoscalers.Patch", - "service": { - "shortName": "RegionAutoscalers", - "fullName": "google.cloud.compute.v1beta.RegionAutoscalers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionAutoscalers_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "region_autoscalers.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.RegionAutoscalers.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "RegionAutoscalersClient", - "fullName": "google.cloud.compute.v1beta.RegionAutoscalersClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.RegionAutoscalers.TestIamPermissions", - "service": { - "shortName": "RegionAutoscalers", - "fullName": "google.cloud.compute.v1beta.RegionAutoscalers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionAutoscalers_Update_async", - "title": "AcceleratorTypes update Sample", - "origin": "API_DEFINITION", - "description": " Updates an autoscaler in the specified project using the data included in the request.", - "canonical": true, - "file": "region_autoscalers.update.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1beta.RegionAutoscalers.Update", - "async": true, - "parameters": [ - { - "name": "autoscaler", - "type": "TYPE_STRING" - }, - { - "name": "autoscaler_resource", - "type": ".google.cloud.compute.v1beta.Autoscaler" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionAutoscalersClient", - "fullName": "google.cloud.compute.v1beta.RegionAutoscalersClient" - }, - "method": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1beta.RegionAutoscalers.Update", - "service": { - "shortName": "RegionAutoscalers", - "fullName": "google.cloud.compute.v1beta.RegionAutoscalers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionBackendBuckets_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified regional BackendBucket resource.", - "canonical": true, - "file": "region_backend_buckets.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.RegionBackendBuckets.Delete", - "async": true, - "parameters": [ - { - "name": "backend_bucket", - "type": "TYPE_STRING" - }, - { - "name": "force_delete", - "type": "TYPE_BOOL" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionBackendBucketsClient", - "fullName": "google.cloud.compute.v1beta.RegionBackendBucketsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.RegionBackendBuckets.Delete", - "service": { - "shortName": "RegionBackendBuckets", - "fullName": "google.cloud.compute.v1beta.RegionBackendBuckets" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionBackendBuckets_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified regional BackendBucket resource.", - "canonical": true, - "file": "region_backend_buckets.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionBackendBuckets.Get", - "async": true, - "parameters": [ - { - "name": "backend_bucket", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.BackendBucket", - "client": { - "shortName": "RegionBackendBucketsClient", - "fullName": "google.cloud.compute.v1beta.RegionBackendBucketsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionBackendBuckets.Get", - "service": { - "shortName": "RegionBackendBuckets", - "fullName": "google.cloud.compute.v1beta.RegionBackendBuckets" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionBackendBuckets_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "region_backend_buckets.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.RegionBackendBuckets.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "RegionBackendBucketsClient", - "fullName": "google.cloud.compute.v1beta.RegionBackendBucketsClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.RegionBackendBuckets.GetIamPolicy", - "service": { - "shortName": "RegionBackendBuckets", - "fullName": "google.cloud.compute.v1beta.RegionBackendBuckets" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionBackendBuckets_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a RegionBackendBucket in the specified project in the given scope using the parameters that are included in the request.", - "canonical": true, - "file": "region_backend_buckets.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RegionBackendBuckets.Insert", - "async": true, - "parameters": [ - { - "name": "backend_bucket_resource", - "type": ".google.cloud.compute.v1beta.BackendBucket" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionBackendBucketsClient", - "fullName": "google.cloud.compute.v1beta.RegionBackendBucketsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RegionBackendBuckets.Insert", - "service": { - "shortName": "RegionBackendBuckets", - "fullName": "google.cloud.compute.v1beta.RegionBackendBuckets" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionBackendBuckets_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of BackendBucket resources available to the specified project in the given region.", - "canonical": true, - "file": "region_backend_buckets.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionBackendBuckets.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.BackendBucketList", - "client": { - "shortName": "RegionBackendBucketsClient", - "fullName": "google.cloud.compute.v1beta.RegionBackendBucketsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionBackendBuckets.List", - "service": { - "shortName": "RegionBackendBuckets", - "fullName": "google.cloud.compute.v1beta.RegionBackendBuckets" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionBackendBuckets_ListUsable_async", - "title": "AcceleratorTypes listUsable Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of all usable backend buckets in the specified project in the given region.", - "canonical": true, - "file": "region_backend_buckets.list_usable.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 146, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListUsable", - "fullName": "google.cloud.compute.v1beta.RegionBackendBuckets.ListUsable", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.BackendBucketListUsable", - "client": { - "shortName": "RegionBackendBucketsClient", - "fullName": "google.cloud.compute.v1beta.RegionBackendBucketsClient" - }, - "method": { - "shortName": "ListUsable", - "fullName": "google.cloud.compute.v1beta.RegionBackendBuckets.ListUsable", - "service": { - "shortName": "RegionBackendBuckets", - "fullName": "google.cloud.compute.v1beta.RegionBackendBuckets" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionBackendBuckets_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified BackendBucket resource with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.", - "canonical": true, - "file": "region_backend_buckets.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.RegionBackendBuckets.Patch", - "async": true, - "parameters": [ - { - "name": "backend_bucket", - "type": "TYPE_STRING" - }, - { - "name": "backend_bucket_resource", - "type": ".google.cloud.compute.v1beta.BackendBucket" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionBackendBucketsClient", - "fullName": "google.cloud.compute.v1beta.RegionBackendBucketsClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.RegionBackendBuckets.Patch", - "service": { - "shortName": "RegionBackendBuckets", - "fullName": "google.cloud.compute.v1beta.RegionBackendBuckets" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionBackendBuckets_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "region_backend_buckets.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.RegionBackendBuckets.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_set_policy_request_resource", - "type": ".google.cloud.compute.v1beta.RegionSetPolicyRequest" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "RegionBackendBucketsClient", - "fullName": "google.cloud.compute.v1beta.RegionBackendBucketsClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.RegionBackendBuckets.SetIamPolicy", - "service": { - "shortName": "RegionBackendBuckets", - "fullName": "google.cloud.compute.v1beta.RegionBackendBuckets" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionBackendBuckets_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "region_backend_buckets.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.RegionBackendBuckets.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "RegionBackendBucketsClient", - "fullName": "google.cloud.compute.v1beta.RegionBackendBucketsClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.RegionBackendBuckets.TestIamPermissions", - "service": { - "shortName": "RegionBackendBuckets", - "fullName": "google.cloud.compute.v1beta.RegionBackendBuckets" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionBackendServices_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified regional BackendService resource.", - "canonical": true, - "file": "region_backend_services.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices.Delete", - "async": true, - "parameters": [ - { - "name": "backend_service", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionBackendServicesClient", - "fullName": "google.cloud.compute.v1beta.RegionBackendServicesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices.Delete", - "service": { - "shortName": "RegionBackendServices", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionBackendServices_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified regional BackendService resource.", - "canonical": true, - "file": "region_backend_services.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices.Get", - "async": true, - "parameters": [ - { - "name": "backend_service", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.BackendService", - "client": { - "shortName": "RegionBackendServicesClient", - "fullName": "google.cloud.compute.v1beta.RegionBackendServicesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices.Get", - "service": { - "shortName": "RegionBackendServices", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionBackendServices_GetHealth_async", - "title": "AcceleratorTypes getHealth Sample", - "origin": "API_DEFINITION", - "description": " Gets the most recent health check results for this regional BackendService.", - "canonical": true, - "file": "region_backend_services.get_health.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetHealth", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices.GetHealth", - "async": true, - "parameters": [ - { - "name": "backend_service", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource_group_reference_resource", - "type": ".google.cloud.compute.v1beta.ResourceGroupReference" - } - ], - "resultType": ".google.cloud.compute.v1beta.BackendServiceGroupHealth", - "client": { - "shortName": "RegionBackendServicesClient", - "fullName": "google.cloud.compute.v1beta.RegionBackendServicesClient" - }, - "method": { - "shortName": "GetHealth", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices.GetHealth", - "service": { - "shortName": "RegionBackendServices", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionBackendServices_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "region_backend_services.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "RegionBackendServicesClient", - "fullName": "google.cloud.compute.v1beta.RegionBackendServicesClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices.GetIamPolicy", - "service": { - "shortName": "RegionBackendServices", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionBackendServices_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a regional BackendService resource in the specified project using the data included in the request. For more information, see Backend services overview.", - "canonical": true, - "file": "region_backend_services.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices.Insert", - "async": true, - "parameters": [ - { - "name": "backend_service_resource", - "type": ".google.cloud.compute.v1beta.BackendService" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionBackendServicesClient", - "fullName": "google.cloud.compute.v1beta.RegionBackendServicesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices.Insert", - "service": { - "shortName": "RegionBackendServices", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionBackendServices_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of regional BackendService resources available to the specified project in the given region.", - "canonical": true, - "file": "region_backend_services.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.BackendServiceList", - "client": { - "shortName": "RegionBackendServicesClient", - "fullName": "google.cloud.compute.v1beta.RegionBackendServicesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices.List", - "service": { - "shortName": "RegionBackendServices", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionBackendServices_ListUsable_async", - "title": "AcceleratorTypes listUsable Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of all usable backend services in the specified project in the given region.", - "canonical": true, - "file": "region_backend_services.list_usable.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 146, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListUsable", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices.ListUsable", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.BackendServiceListUsable", - "client": { - "shortName": "RegionBackendServicesClient", - "fullName": "google.cloud.compute.v1beta.RegionBackendServicesClient" - }, - "method": { - "shortName": "ListUsable", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices.ListUsable", - "service": { - "shortName": "RegionBackendServices", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionBackendServices_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified regional BackendService resource with the data included in the request. For more information, see Understanding backend services This method supports PATCH semantics and uses the JSON merge patch format and processing rules.", - "canonical": true, - "file": "region_backend_services.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices.Patch", - "async": true, - "parameters": [ - { - "name": "backend_service", - "type": "TYPE_STRING" - }, - { - "name": "backend_service_resource", - "type": ".google.cloud.compute.v1beta.BackendService" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionBackendServicesClient", - "fullName": "google.cloud.compute.v1beta.RegionBackendServicesClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices.Patch", - "service": { - "shortName": "RegionBackendServices", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionBackendServices_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "region_backend_services.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_set_policy_request_resource", - "type": ".google.cloud.compute.v1beta.RegionSetPolicyRequest" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "RegionBackendServicesClient", - "fullName": "google.cloud.compute.v1beta.RegionBackendServicesClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices.SetIamPolicy", - "service": { - "shortName": "RegionBackendServices", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionBackendServices_SetSecurityPolicy_async", - "title": "AcceleratorTypes setSecurityPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the Google Cloud Armor security policy for the specified backend service. For more information, seeGoogle Cloud Armor Overview", - "canonical": true, - "file": "region_backend_services.set_security_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetSecurityPolicy", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices.SetSecurityPolicy", - "async": true, - "parameters": [ - { - "name": "backend_service", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "security_policy_reference_resource", - "type": ".google.cloud.compute.v1beta.SecurityPolicyReference" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionBackendServicesClient", - "fullName": "google.cloud.compute.v1beta.RegionBackendServicesClient" - }, - "method": { - "shortName": "SetSecurityPolicy", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices.SetSecurityPolicy", - "service": { - "shortName": "RegionBackendServices", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionBackendServices_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "region_backend_services.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "RegionBackendServicesClient", - "fullName": "google.cloud.compute.v1beta.RegionBackendServicesClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices.TestIamPermissions", - "service": { - "shortName": "RegionBackendServices", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionBackendServices_Update_async", - "title": "AcceleratorTypes update Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified regional BackendService resource with the data included in the request. For more information, see Backend services overview.", - "canonical": true, - "file": "region_backend_services.update.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices.Update", - "async": true, - "parameters": [ - { - "name": "backend_service", - "type": "TYPE_STRING" - }, - { - "name": "backend_service_resource", - "type": ".google.cloud.compute.v1beta.BackendService" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionBackendServicesClient", - "fullName": "google.cloud.compute.v1beta.RegionBackendServicesClient" - }, - "method": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices.Update", - "service": { - "shortName": "RegionBackendServices", - "fullName": "google.cloud.compute.v1beta.RegionBackendServices" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionCommitments_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of commitments by region. To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "region_commitments.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.RegionCommitments.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1beta.CommitmentAggregatedList", - "client": { - "shortName": "RegionCommitmentsClient", - "fullName": "google.cloud.compute.v1beta.RegionCommitmentsClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.RegionCommitments.AggregatedList", - "service": { - "shortName": "RegionCommitments", - "fullName": "google.cloud.compute.v1beta.RegionCommitments" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionCommitments_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified commitment resource.", - "canonical": true, - "file": "region_commitments.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionCommitments.Get", - "async": true, - "parameters": [ - { - "name": "commitment", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Commitment", - "client": { - "shortName": "RegionCommitmentsClient", - "fullName": "google.cloud.compute.v1beta.RegionCommitmentsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionCommitments.Get", - "service": { - "shortName": "RegionCommitments", - "fullName": "google.cloud.compute.v1beta.RegionCommitments" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionCommitments_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a commitment in the specified project using the data included in the request.", - "canonical": true, - "file": "region_commitments.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RegionCommitments.Insert", - "async": true, - "parameters": [ - { - "name": "commitment_resource", - "type": ".google.cloud.compute.v1beta.Commitment" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionCommitmentsClient", - "fullName": "google.cloud.compute.v1beta.RegionCommitmentsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RegionCommitments.Insert", - "service": { - "shortName": "RegionCommitments", - "fullName": "google.cloud.compute.v1beta.RegionCommitments" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionCommitments_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of commitments contained within the specified region.", - "canonical": true, - "file": "region_commitments.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionCommitments.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.CommitmentList", - "client": { - "shortName": "RegionCommitmentsClient", - "fullName": "google.cloud.compute.v1beta.RegionCommitmentsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionCommitments.List", - "service": { - "shortName": "RegionCommitments", - "fullName": "google.cloud.compute.v1beta.RegionCommitments" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionCommitments_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "region_commitments.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.RegionCommitments.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "RegionCommitmentsClient", - "fullName": "google.cloud.compute.v1beta.RegionCommitmentsClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.RegionCommitments.TestIamPermissions", - "service": { - "shortName": "RegionCommitments", - "fullName": "google.cloud.compute.v1beta.RegionCommitments" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionCommitments_Update_async", - "title": "AcceleratorTypes update Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified commitment with the data included in the request. Update is performed only on selected fields included as part of update-mask. Only the following fields can be updated: auto_renew and plan.", - "canonical": true, - "file": "region_commitments.update.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 89, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1beta.RegionCommitments.Update", - "async": true, - "parameters": [ - { - "name": "commitment", - "type": "TYPE_STRING" - }, - { - "name": "commitment_resource", - "type": ".google.cloud.compute.v1beta.Commitment" - }, - { - "name": "paths", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionCommitmentsClient", - "fullName": "google.cloud.compute.v1beta.RegionCommitmentsClient" - }, - "method": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1beta.RegionCommitments.Update", - "service": { - "shortName": "RegionCommitments", - "fullName": "google.cloud.compute.v1beta.RegionCommitments" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionCommitments_UpdateReservations_async", - "title": "AcceleratorTypes updateReservations Sample", - "origin": "API_DEFINITION", - "description": " Transfers GPUs or Local SSD disks between reservations that are attached to the same commitment.", - "canonical": true, - "file": "region_commitments.update_reservations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateReservations", - "fullName": "google.cloud.compute.v1beta.RegionCommitments.UpdateReservations", - "async": true, - "parameters": [ - { - "name": "commitment", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_commitments_update_reservations_request_resource", - "type": ".google.cloud.compute.v1beta.RegionCommitmentsUpdateReservationsRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionCommitmentsClient", - "fullName": "google.cloud.compute.v1beta.RegionCommitmentsClient" - }, - "method": { - "shortName": "UpdateReservations", - "fullName": "google.cloud.compute.v1beta.RegionCommitments.UpdateReservations", - "service": { - "shortName": "RegionCommitments", - "fullName": "google.cloud.compute.v1beta.RegionCommitments" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionCompositeHealthChecks_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of all CompositeHealthCheck resources (all regional) available to the specified project. To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "region_composite_health_checks.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecks.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1beta.CompositeHealthCheckAggregatedList", - "client": { - "shortName": "RegionCompositeHealthChecksClient", - "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecksClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecks.AggregatedList", - "service": { - "shortName": "RegionCompositeHealthChecks", - "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionCompositeHealthChecks_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified CompositeHealthCheck in the given region", - "canonical": true, - "file": "region_composite_health_checks.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecks.Delete", - "async": true, - "parameters": [ - { - "name": "composite_health_check", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionCompositeHealthChecksClient", - "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecksClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecks.Delete", - "service": { - "shortName": "RegionCompositeHealthChecks", - "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionCompositeHealthChecks_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified CompositeHealthCheck resource in the given region.", - "canonical": true, - "file": "region_composite_health_checks.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecks.Get", - "async": true, - "parameters": [ - { - "name": "composite_health_check", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.CompositeHealthCheck", - "client": { - "shortName": "RegionCompositeHealthChecksClient", - "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecksClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecks.Get", - "service": { - "shortName": "RegionCompositeHealthChecks", - "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionCompositeHealthChecks_GetHealth_async", - "title": "AcceleratorTypes getHealth Sample", - "origin": "API_DEFINITION", - "description": " Gets the most recent health check results for this regional CompositeHealthCheck.", - "canonical": true, - "file": "region_composite_health_checks.get_health.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetHealth", - "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecks.GetHealth", - "async": true, - "parameters": [ - { - "name": "composite_health_check", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.CompositeHealthCheckHealth", - "client": { - "shortName": "RegionCompositeHealthChecksClient", - "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecksClient" - }, - "method": { - "shortName": "GetHealth", - "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecks.GetHealth", - "service": { - "shortName": "RegionCompositeHealthChecks", - "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionCompositeHealthChecks_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Create a CompositeHealthCheck in the specified project in the given region using the parameters that are included in the request.", - "canonical": true, - "file": "region_composite_health_checks.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecks.Insert", - "async": true, - "parameters": [ - { - "name": "composite_health_check_resource", - "type": ".google.cloud.compute.v1beta.CompositeHealthCheck" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionCompositeHealthChecksClient", - "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecksClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecks.Insert", - "service": { - "shortName": "RegionCompositeHealthChecks", - "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionCompositeHealthChecks_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Lists the CompositeHealthChecks for a project in the given region.", - "canonical": true, - "file": "region_composite_health_checks.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecks.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.CompositeHealthCheckList", - "client": { - "shortName": "RegionCompositeHealthChecksClient", - "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecksClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecks.List", - "service": { - "shortName": "RegionCompositeHealthChecks", - "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionCompositeHealthChecks_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified regional CompositeHealthCheck resource with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.", - "canonical": true, - "file": "region_composite_health_checks.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecks.Patch", - "async": true, - "parameters": [ - { - "name": "composite_health_check", - "type": "TYPE_STRING" - }, - { - "name": "composite_health_check_resource", - "type": ".google.cloud.compute.v1beta.CompositeHealthCheck" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionCompositeHealthChecksClient", - "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecksClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecks.Patch", - "service": { - "shortName": "RegionCompositeHealthChecks", - "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionCompositeHealthChecks_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "region_composite_health_checks.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecks.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "RegionCompositeHealthChecksClient", - "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecksClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecks.TestIamPermissions", - "service": { - "shortName": "RegionCompositeHealthChecks", - "fullName": "google.cloud.compute.v1beta.RegionCompositeHealthChecks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionDisks_AddResourcePolicies_async", - "title": "AcceleratorTypes addResourcePolicies Sample", - "origin": "API_DEFINITION", - "description": " Adds existing resource policies to a regional disk. You can only add one policy which will be applied to this disk for scheduling snapshot creation.", - "canonical": true, - "file": "region_disks.add_resource_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddResourcePolicies", - "fullName": "google.cloud.compute.v1beta.RegionDisks.AddResourcePolicies", - "async": true, - "parameters": [ - { - "name": "disk", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_disks_add_resource_policies_request_resource", - "type": ".google.cloud.compute.v1beta.RegionDisksAddResourcePoliciesRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionDisksClient", - "fullName": "google.cloud.compute.v1beta.RegionDisksClient" - }, - "method": { - "shortName": "AddResourcePolicies", - "fullName": "google.cloud.compute.v1beta.RegionDisks.AddResourcePolicies", - "service": { - "shortName": "RegionDisks", - "fullName": "google.cloud.compute.v1beta.RegionDisks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionDisks_BulkInsert_async", - "title": "AcceleratorTypes bulkInsert Sample", - "origin": "API_DEFINITION", - "description": " Bulk create a set of disks.", - "canonical": true, - "file": "region_disks.bulk_insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BulkInsert", - "fullName": "google.cloud.compute.v1beta.RegionDisks.BulkInsert", - "async": true, - "parameters": [ - { - "name": "bulk_insert_disk_resource_resource", - "type": ".google.cloud.compute.v1beta.BulkInsertDiskResource" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionDisksClient", - "fullName": "google.cloud.compute.v1beta.RegionDisksClient" - }, - "method": { - "shortName": "BulkInsert", - "fullName": "google.cloud.compute.v1beta.RegionDisks.BulkInsert", - "service": { - "shortName": "RegionDisks", - "fullName": "google.cloud.compute.v1beta.RegionDisks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionDisks_CreateSnapshot_async", - "title": "AcceleratorTypes createSnapshot Sample", - "origin": "API_DEFINITION", - "description": " Creates a snapshot of a specified persistent disk. For regular snapshot creation, consider using snapshots.insert instead, as that method supports more features, such as creating snapshots in a project different from the source disk project.", - "canonical": true, - "file": "region_disks.create_snapshot.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSnapshot", - "fullName": "google.cloud.compute.v1beta.RegionDisks.CreateSnapshot", - "async": true, - "parameters": [ - { - "name": "disk", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "snapshot_resource", - "type": ".google.cloud.compute.v1beta.Snapshot" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionDisksClient", - "fullName": "google.cloud.compute.v1beta.RegionDisksClient" - }, - "method": { - "shortName": "CreateSnapshot", - "fullName": "google.cloud.compute.v1beta.RegionDisks.CreateSnapshot", - "service": { - "shortName": "RegionDisks", - "fullName": "google.cloud.compute.v1beta.RegionDisks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionDisks_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified regional persistent disk. Deleting a regional disk removes all the replicas of its data permanently and is irreversible. However, deleting a disk does not delete anysnapshots previously made from the disk. You must separatelydelete snapshots.", - "canonical": true, - "file": "region_disks.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.RegionDisks.Delete", - "async": true, - "parameters": [ - { - "name": "disk", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionDisksClient", - "fullName": "google.cloud.compute.v1beta.RegionDisksClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.RegionDisks.Delete", - "service": { - "shortName": "RegionDisks", - "fullName": "google.cloud.compute.v1beta.RegionDisks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionDisks_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns a specified regional persistent disk.", - "canonical": true, - "file": "region_disks.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionDisks.Get", - "async": true, - "parameters": [ - { - "name": "disk", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Disk", - "client": { - "shortName": "RegionDisksClient", - "fullName": "google.cloud.compute.v1beta.RegionDisksClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionDisks.Get", - "service": { - "shortName": "RegionDisks", - "fullName": "google.cloud.compute.v1beta.RegionDisks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionDisks_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "region_disks.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.RegionDisks.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "RegionDisksClient", - "fullName": "google.cloud.compute.v1beta.RegionDisksClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.RegionDisks.GetIamPolicy", - "service": { - "shortName": "RegionDisks", - "fullName": "google.cloud.compute.v1beta.RegionDisks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionDisks_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a persistent regional disk in the specified project using the data included in the request.", - "canonical": true, - "file": "region_disks.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RegionDisks.Insert", - "async": true, - "parameters": [ - { - "name": "disk_resource", - "type": ".google.cloud.compute.v1beta.Disk" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "source_image", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionDisksClient", - "fullName": "google.cloud.compute.v1beta.RegionDisksClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RegionDisks.Insert", - "service": { - "shortName": "RegionDisks", - "fullName": "google.cloud.compute.v1beta.RegionDisks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionDisks_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of persistent disks contained within the specified region.", - "canonical": true, - "file": "region_disks.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionDisks.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.DiskList", - "client": { - "shortName": "RegionDisksClient", - "fullName": "google.cloud.compute.v1beta.RegionDisksClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionDisks.List", - "service": { - "shortName": "RegionDisks", - "fullName": "google.cloud.compute.v1beta.RegionDisks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionDisks_RemoveResourcePolicies_async", - "title": "AcceleratorTypes removeResourcePolicies Sample", - "origin": "API_DEFINITION", - "description": " Removes resource policies from a regional disk.", - "canonical": true, - "file": "region_disks.remove_resource_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveResourcePolicies", - "fullName": "google.cloud.compute.v1beta.RegionDisks.RemoveResourcePolicies", - "async": true, - "parameters": [ - { - "name": "disk", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_disks_remove_resource_policies_request_resource", - "type": ".google.cloud.compute.v1beta.RegionDisksRemoveResourcePoliciesRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionDisksClient", - "fullName": "google.cloud.compute.v1beta.RegionDisksClient" - }, - "method": { - "shortName": "RemoveResourcePolicies", - "fullName": "google.cloud.compute.v1beta.RegionDisks.RemoveResourcePolicies", - "service": { - "shortName": "RegionDisks", - "fullName": "google.cloud.compute.v1beta.RegionDisks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionDisks_Resize_async", - "title": "AcceleratorTypes resize Sample", - "origin": "API_DEFINITION", - "description": " Resizes the specified regional persistent disk.", - "canonical": true, - "file": "region_disks.resize.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Resize", - "fullName": "google.cloud.compute.v1beta.RegionDisks.Resize", - "async": true, - "parameters": [ - { - "name": "disk", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_disks_resize_request_resource", - "type": ".google.cloud.compute.v1beta.RegionDisksResizeRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionDisksClient", - "fullName": "google.cloud.compute.v1beta.RegionDisksClient" - }, - "method": { - "shortName": "Resize", - "fullName": "google.cloud.compute.v1beta.RegionDisks.Resize", - "service": { - "shortName": "RegionDisks", - "fullName": "google.cloud.compute.v1beta.RegionDisks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionDisks_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "region_disks.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.RegionDisks.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_set_policy_request_resource", - "type": ".google.cloud.compute.v1beta.RegionSetPolicyRequest" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "RegionDisksClient", - "fullName": "google.cloud.compute.v1beta.RegionDisksClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.RegionDisks.SetIamPolicy", - "service": { - "shortName": "RegionDisks", - "fullName": "google.cloud.compute.v1beta.RegionDisks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionDisks_SetLabels_async", - "title": "AcceleratorTypes setLabels Sample", - "origin": "API_DEFINITION", - "description": " Sets the labels on the target regional disk.", - "canonical": true, - "file": "region_disks.set_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1beta.RegionDisks.SetLabels", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_set_labels_request_resource", - "type": ".google.cloud.compute.v1beta.RegionSetLabelsRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionDisksClient", - "fullName": "google.cloud.compute.v1beta.RegionDisksClient" - }, - "method": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1beta.RegionDisks.SetLabels", - "service": { - "shortName": "RegionDisks", - "fullName": "google.cloud.compute.v1beta.RegionDisks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionDisks_StartAsyncReplication_async", - "title": "AcceleratorTypes startAsyncReplication Sample", - "origin": "API_DEFINITION", - "description": " Starts asynchronous replication. Must be invoked on the primary disk.", - "canonical": true, - "file": "region_disks.start_async_replication.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StartAsyncReplication", - "fullName": "google.cloud.compute.v1beta.RegionDisks.StartAsyncReplication", - "async": true, - "parameters": [ - { - "name": "disk", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_disks_start_async_replication_request_resource", - "type": ".google.cloud.compute.v1beta.RegionDisksStartAsyncReplicationRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionDisksClient", - "fullName": "google.cloud.compute.v1beta.RegionDisksClient" - }, - "method": { - "shortName": "StartAsyncReplication", - "fullName": "google.cloud.compute.v1beta.RegionDisks.StartAsyncReplication", - "service": { - "shortName": "RegionDisks", - "fullName": "google.cloud.compute.v1beta.RegionDisks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionDisks_StopAsyncReplication_async", - "title": "AcceleratorTypes stopAsyncReplication Sample", - "origin": "API_DEFINITION", - "description": " Stops asynchronous replication. Can be invoked either on the primary or on the secondary disk.", - "canonical": true, - "file": "region_disks.stop_async_replication.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StopAsyncReplication", - "fullName": "google.cloud.compute.v1beta.RegionDisks.StopAsyncReplication", - "async": true, - "parameters": [ - { - "name": "disk", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionDisksClient", - "fullName": "google.cloud.compute.v1beta.RegionDisksClient" - }, - "method": { - "shortName": "StopAsyncReplication", - "fullName": "google.cloud.compute.v1beta.RegionDisks.StopAsyncReplication", - "service": { - "shortName": "RegionDisks", - "fullName": "google.cloud.compute.v1beta.RegionDisks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionDisks_StopGroupAsyncReplication_async", - "title": "AcceleratorTypes stopGroupAsyncReplication Sample", - "origin": "API_DEFINITION", - "description": " Stops asynchronous replication for a consistency group of disks. Can be invoked either in the primary or secondary scope.", - "canonical": true, - "file": "region_disks.stop_group_async_replication.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StopGroupAsyncReplication", - "fullName": "google.cloud.compute.v1beta.RegionDisks.StopGroupAsyncReplication", - "async": true, - "parameters": [ - { - "name": "disks_stop_group_async_replication_resource_resource", - "type": ".google.cloud.compute.v1beta.DisksStopGroupAsyncReplicationResource" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionDisksClient", - "fullName": "google.cloud.compute.v1beta.RegionDisksClient" - }, - "method": { - "shortName": "StopGroupAsyncReplication", - "fullName": "google.cloud.compute.v1beta.RegionDisks.StopGroupAsyncReplication", - "service": { - "shortName": "RegionDisks", - "fullName": "google.cloud.compute.v1beta.RegionDisks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionDisks_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "region_disks.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.RegionDisks.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "RegionDisksClient", - "fullName": "google.cloud.compute.v1beta.RegionDisksClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.RegionDisks.TestIamPermissions", - "service": { - "shortName": "RegionDisks", - "fullName": "google.cloud.compute.v1beta.RegionDisks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionDisks_Update_async", - "title": "AcceleratorTypes update Sample", - "origin": "API_DEFINITION", - "description": " Update the specified disk with the data included in the request. Update is performed only on selected fields included as part of update-mask.", - "canonical": true, - "file": "region_disks.update.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 89, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1beta.RegionDisks.Update", - "async": true, - "parameters": [ - { - "name": "disk", - "type": "TYPE_STRING" - }, - { - "name": "disk_resource", - "type": ".google.cloud.compute.v1beta.Disk" - }, - { - "name": "paths", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionDisksClient", - "fullName": "google.cloud.compute.v1beta.RegionDisksClient" - }, - "method": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1beta.RegionDisks.Update", - "service": { - "shortName": "RegionDisks", - "fullName": "google.cloud.compute.v1beta.RegionDisks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionDisks_UpdateKmsKey_async", - "title": "AcceleratorTypes updateKmsKey Sample", - "origin": "API_DEFINITION", - "description": " Rotates the customer-managed encryption key to the latest version for the specified persistent disk.", - "canonical": true, - "file": "region_disks.update_kms_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateKmsKey", - "fullName": "google.cloud.compute.v1beta.RegionDisks.UpdateKmsKey", - "async": true, - "parameters": [ - { - "name": "disk", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_disk_update_kms_key_request_resource", - "type": ".google.cloud.compute.v1beta.RegionDiskUpdateKmsKeyRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionDisksClient", - "fullName": "google.cloud.compute.v1beta.RegionDisksClient" - }, - "method": { - "shortName": "UpdateKmsKey", - "fullName": "google.cloud.compute.v1beta.RegionDisks.UpdateKmsKey", - "service": { - "shortName": "RegionDisks", - "fullName": "google.cloud.compute.v1beta.RegionDisks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionDiskSettings_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Get Regional Disk Settings.", - "canonical": true, - "file": "region_disk_settings.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionDiskSettings.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.DiskSettings", - "client": { - "shortName": "RegionDiskSettingsClient", - "fullName": "google.cloud.compute.v1beta.RegionDiskSettingsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionDiskSettings.Get", - "service": { - "shortName": "RegionDiskSettings", - "fullName": "google.cloud.compute.v1beta.RegionDiskSettings" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionDiskSettings_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patch Regional Disk Settings", - "canonical": true, - "file": "region_disk_settings.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.RegionDiskSettings.Patch", - "async": true, - "parameters": [ - { - "name": "disk_settings_resource", - "type": ".google.cloud.compute.v1beta.DiskSettings" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionDiskSettingsClient", - "fullName": "google.cloud.compute.v1beta.RegionDiskSettingsClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.RegionDiskSettings.Patch", - "service": { - "shortName": "RegionDiskSettings", - "fullName": "google.cloud.compute.v1beta.RegionDiskSettings" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionDiskTypes_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified regional disk type.", - "canonical": true, - "file": "region_disk_types.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionDiskTypes.Get", - "async": true, - "parameters": [ - { - "name": "disk_type", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.DiskType", - "client": { - "shortName": "RegionDiskTypesClient", - "fullName": "google.cloud.compute.v1beta.RegionDiskTypesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionDiskTypes.Get", - "service": { - "shortName": "RegionDiskTypes", - "fullName": "google.cloud.compute.v1beta.RegionDiskTypes" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionDiskTypes_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of regional disk types available to the specified project.", - "canonical": true, - "file": "region_disk_types.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionDiskTypes.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.RegionDiskTypeList", - "client": { - "shortName": "RegionDiskTypesClient", - "fullName": "google.cloud.compute.v1beta.RegionDiskTypesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionDiskTypes.List", - "service": { - "shortName": "RegionDiskTypes", - "fullName": "google.cloud.compute.v1beta.RegionDiskTypes" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionHealthAggregationPolicies_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of all HealthAggregationPolicy resources, regional and global, available to the specified project. To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "region_health_aggregation_policies.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.RegionHealthAggregationPolicies.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1beta.HealthAggregationPolicyAggregatedList", - "client": { - "shortName": "RegionHealthAggregationPoliciesClient", - "fullName": "google.cloud.compute.v1beta.RegionHealthAggregationPoliciesClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.RegionHealthAggregationPolicies.AggregatedList", - "service": { - "shortName": "RegionHealthAggregationPolicies", - "fullName": "google.cloud.compute.v1beta.RegionHealthAggregationPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionHealthAggregationPolicies_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified HealthAggregationPolicy in the given region.", - "canonical": true, - "file": "region_health_aggregation_policies.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.RegionHealthAggregationPolicies.Delete", - "async": true, - "parameters": [ - { - "name": "health_aggregation_policy", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionHealthAggregationPoliciesClient", - "fullName": "google.cloud.compute.v1beta.RegionHealthAggregationPoliciesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.RegionHealthAggregationPolicies.Delete", - "service": { - "shortName": "RegionHealthAggregationPolicies", - "fullName": "google.cloud.compute.v1beta.RegionHealthAggregationPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionHealthAggregationPolicies_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified HealthAggregationPolicy resource in the given region.", - "canonical": true, - "file": "region_health_aggregation_policies.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionHealthAggregationPolicies.Get", - "async": true, - "parameters": [ - { - "name": "health_aggregation_policy", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.HealthAggregationPolicy", - "client": { - "shortName": "RegionHealthAggregationPoliciesClient", - "fullName": "google.cloud.compute.v1beta.RegionHealthAggregationPoliciesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionHealthAggregationPolicies.Get", - "service": { - "shortName": "RegionHealthAggregationPolicies", - "fullName": "google.cloud.compute.v1beta.RegionHealthAggregationPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionHealthAggregationPolicies_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Create a HealthAggregationPolicy in the specified project in the given region using the parameters that are included in the request.", - "canonical": true, - "file": "region_health_aggregation_policies.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RegionHealthAggregationPolicies.Insert", - "async": true, - "parameters": [ - { - "name": "health_aggregation_policy_resource", - "type": ".google.cloud.compute.v1beta.HealthAggregationPolicy" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionHealthAggregationPoliciesClient", - "fullName": "google.cloud.compute.v1beta.RegionHealthAggregationPoliciesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RegionHealthAggregationPolicies.Insert", - "service": { - "shortName": "RegionHealthAggregationPolicies", - "fullName": "google.cloud.compute.v1beta.RegionHealthAggregationPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionHealthAggregationPolicies_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Lists the HealthAggregationPolicies for a project in the given region.", - "canonical": true, - "file": "region_health_aggregation_policies.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionHealthAggregationPolicies.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.HealthAggregationPolicyList", - "client": { - "shortName": "RegionHealthAggregationPoliciesClient", - "fullName": "google.cloud.compute.v1beta.RegionHealthAggregationPoliciesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionHealthAggregationPolicies.List", - "service": { - "shortName": "RegionHealthAggregationPolicies", - "fullName": "google.cloud.compute.v1beta.RegionHealthAggregationPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionHealthAggregationPolicies_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified regional HealthAggregationPolicy resource with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.", - "canonical": true, - "file": "region_health_aggregation_policies.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.RegionHealthAggregationPolicies.Patch", - "async": true, - "parameters": [ - { - "name": "health_aggregation_policy", - "type": "TYPE_STRING" - }, - { - "name": "health_aggregation_policy_resource", - "type": ".google.cloud.compute.v1beta.HealthAggregationPolicy" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionHealthAggregationPoliciesClient", - "fullName": "google.cloud.compute.v1beta.RegionHealthAggregationPoliciesClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.RegionHealthAggregationPolicies.Patch", - "service": { - "shortName": "RegionHealthAggregationPolicies", - "fullName": "google.cloud.compute.v1beta.RegionHealthAggregationPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionHealthAggregationPolicies_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "region_health_aggregation_policies.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.RegionHealthAggregationPolicies.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "RegionHealthAggregationPoliciesClient", - "fullName": "google.cloud.compute.v1beta.RegionHealthAggregationPoliciesClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.RegionHealthAggregationPolicies.TestIamPermissions", - "service": { - "shortName": "RegionHealthAggregationPolicies", - "fullName": "google.cloud.compute.v1beta.RegionHealthAggregationPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionHealthChecks_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified HealthCheck resource.", - "canonical": true, - "file": "region_health_checks.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.RegionHealthChecks.Delete", - "async": true, - "parameters": [ - { - "name": "health_check", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionHealthChecksClient", - "fullName": "google.cloud.compute.v1beta.RegionHealthChecksClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.RegionHealthChecks.Delete", - "service": { - "shortName": "RegionHealthChecks", - "fullName": "google.cloud.compute.v1beta.RegionHealthChecks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionHealthChecks_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified HealthCheck resource.", - "canonical": true, - "file": "region_health_checks.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionHealthChecks.Get", - "async": true, - "parameters": [ - { - "name": "health_check", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.HealthCheck", - "client": { - "shortName": "RegionHealthChecksClient", - "fullName": "google.cloud.compute.v1beta.RegionHealthChecksClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionHealthChecks.Get", - "service": { - "shortName": "RegionHealthChecks", - "fullName": "google.cloud.compute.v1beta.RegionHealthChecks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionHealthChecks_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a HealthCheck resource in the specified project using the data included in the request.", - "canonical": true, - "file": "region_health_checks.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RegionHealthChecks.Insert", - "async": true, - "parameters": [ - { - "name": "health_check_resource", - "type": ".google.cloud.compute.v1beta.HealthCheck" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionHealthChecksClient", - "fullName": "google.cloud.compute.v1beta.RegionHealthChecksClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RegionHealthChecks.Insert", - "service": { - "shortName": "RegionHealthChecks", - "fullName": "google.cloud.compute.v1beta.RegionHealthChecks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionHealthChecks_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of HealthCheck resources available to the specified project.", - "canonical": true, - "file": "region_health_checks.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionHealthChecks.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.HealthCheckList", - "client": { - "shortName": "RegionHealthChecksClient", - "fullName": "google.cloud.compute.v1beta.RegionHealthChecksClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionHealthChecks.List", - "service": { - "shortName": "RegionHealthChecks", - "fullName": "google.cloud.compute.v1beta.RegionHealthChecks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionHealthChecks_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Updates a HealthCheck resource in the specified project using the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.", - "canonical": true, - "file": "region_health_checks.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.RegionHealthChecks.Patch", - "async": true, - "parameters": [ - { - "name": "health_check", - "type": "TYPE_STRING" - }, - { - "name": "health_check_resource", - "type": ".google.cloud.compute.v1beta.HealthCheck" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionHealthChecksClient", - "fullName": "google.cloud.compute.v1beta.RegionHealthChecksClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.RegionHealthChecks.Patch", - "service": { - "shortName": "RegionHealthChecks", - "fullName": "google.cloud.compute.v1beta.RegionHealthChecks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionHealthChecks_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "region_health_checks.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.RegionHealthChecks.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "RegionHealthChecksClient", - "fullName": "google.cloud.compute.v1beta.RegionHealthChecksClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.RegionHealthChecks.TestIamPermissions", - "service": { - "shortName": "RegionHealthChecks", - "fullName": "google.cloud.compute.v1beta.RegionHealthChecks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionHealthChecks_Update_async", - "title": "AcceleratorTypes update Sample", - "origin": "API_DEFINITION", - "description": " Updates a HealthCheck resource in the specified project using the data included in the request.", - "canonical": true, - "file": "region_health_checks.update.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1beta.RegionHealthChecks.Update", - "async": true, - "parameters": [ - { - "name": "health_check", - "type": "TYPE_STRING" - }, - { - "name": "health_check_resource", - "type": ".google.cloud.compute.v1beta.HealthCheck" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionHealthChecksClient", - "fullName": "google.cloud.compute.v1beta.RegionHealthChecksClient" - }, - "method": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1beta.RegionHealthChecks.Update", - "service": { - "shortName": "RegionHealthChecks", - "fullName": "google.cloud.compute.v1beta.RegionHealthChecks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionHealthCheckServices_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of all HealthCheckService resources, regional and global, available to the specified project. To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "region_health_check_services.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.RegionHealthCheckServices.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1beta.HealthCheckServiceAggregatedList", - "client": { - "shortName": "RegionHealthCheckServicesClient", - "fullName": "google.cloud.compute.v1beta.RegionHealthCheckServicesClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.RegionHealthCheckServices.AggregatedList", - "service": { - "shortName": "RegionHealthCheckServices", - "fullName": "google.cloud.compute.v1beta.RegionHealthCheckServices" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionHealthCheckServices_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified regional HealthCheckService.", - "canonical": true, - "file": "region_health_check_services.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.RegionHealthCheckServices.Delete", - "async": true, - "parameters": [ - { - "name": "health_check_service", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionHealthCheckServicesClient", - "fullName": "google.cloud.compute.v1beta.RegionHealthCheckServicesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.RegionHealthCheckServices.Delete", - "service": { - "shortName": "RegionHealthCheckServices", - "fullName": "google.cloud.compute.v1beta.RegionHealthCheckServices" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionHealthCheckServices_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified regional HealthCheckService resource.", - "canonical": true, - "file": "region_health_check_services.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionHealthCheckServices.Get", - "async": true, - "parameters": [ - { - "name": "health_check_service", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.HealthCheckService", - "client": { - "shortName": "RegionHealthCheckServicesClient", - "fullName": "google.cloud.compute.v1beta.RegionHealthCheckServicesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionHealthCheckServices.Get", - "service": { - "shortName": "RegionHealthCheckServices", - "fullName": "google.cloud.compute.v1beta.RegionHealthCheckServices" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionHealthCheckServices_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a regional HealthCheckService resource in the specified project and region using the data included in the request.", - "canonical": true, - "file": "region_health_check_services.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RegionHealthCheckServices.Insert", - "async": true, - "parameters": [ - { - "name": "health_check_service_resource", - "type": ".google.cloud.compute.v1beta.HealthCheckService" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionHealthCheckServicesClient", - "fullName": "google.cloud.compute.v1beta.RegionHealthCheckServicesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RegionHealthCheckServices.Insert", - "service": { - "shortName": "RegionHealthCheckServices", - "fullName": "google.cloud.compute.v1beta.RegionHealthCheckServices" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionHealthCheckServices_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Lists all the HealthCheckService resources that have been configured for the specified project in the given region.", - "canonical": true, - "file": "region_health_check_services.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionHealthCheckServices.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.HealthCheckServicesList", - "client": { - "shortName": "RegionHealthCheckServicesClient", - "fullName": "google.cloud.compute.v1beta.RegionHealthCheckServicesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionHealthCheckServices.List", - "service": { - "shortName": "RegionHealthCheckServices", - "fullName": "google.cloud.compute.v1beta.RegionHealthCheckServices" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionHealthCheckServices_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified regional HealthCheckService resource with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.", - "canonical": true, - "file": "region_health_check_services.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.RegionHealthCheckServices.Patch", - "async": true, - "parameters": [ - { - "name": "health_check_service", - "type": "TYPE_STRING" - }, - { - "name": "health_check_service_resource", - "type": ".google.cloud.compute.v1beta.HealthCheckService" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionHealthCheckServicesClient", - "fullName": "google.cloud.compute.v1beta.RegionHealthCheckServicesClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.RegionHealthCheckServices.Patch", - "service": { - "shortName": "RegionHealthCheckServices", - "fullName": "google.cloud.compute.v1beta.RegionHealthCheckServices" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionHealthCheckServices_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "region_health_check_services.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.RegionHealthCheckServices.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "RegionHealthCheckServicesClient", - "fullName": "google.cloud.compute.v1beta.RegionHealthCheckServicesClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.RegionHealthCheckServices.TestIamPermissions", - "service": { - "shortName": "RegionHealthCheckServices", - "fullName": "google.cloud.compute.v1beta.RegionHealthCheckServices" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionHealthSources_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of all HealthSource resources (all regional) available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "region_health_sources.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.RegionHealthSources.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1beta.HealthSourceAggregatedList", - "client": { - "shortName": "RegionHealthSourcesClient", - "fullName": "google.cloud.compute.v1beta.RegionHealthSourcesClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.RegionHealthSources.AggregatedList", - "service": { - "shortName": "RegionHealthSources", - "fullName": "google.cloud.compute.v1beta.RegionHealthSources" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionHealthSources_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified HealthSource in the given region", - "canonical": true, - "file": "region_health_sources.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.RegionHealthSources.Delete", - "async": true, - "parameters": [ - { - "name": "health_source", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionHealthSourcesClient", - "fullName": "google.cloud.compute.v1beta.RegionHealthSourcesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.RegionHealthSources.Delete", - "service": { - "shortName": "RegionHealthSources", - "fullName": "google.cloud.compute.v1beta.RegionHealthSources" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionHealthSources_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified HealthSource resource in the given region.", - "canonical": true, - "file": "region_health_sources.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionHealthSources.Get", - "async": true, - "parameters": [ - { - "name": "health_source", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.HealthSource", - "client": { - "shortName": "RegionHealthSourcesClient", - "fullName": "google.cloud.compute.v1beta.RegionHealthSourcesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionHealthSources.Get", - "service": { - "shortName": "RegionHealthSources", - "fullName": "google.cloud.compute.v1beta.RegionHealthSources" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionHealthSources_GetHealth_async", - "title": "AcceleratorTypes getHealth Sample", - "origin": "API_DEFINITION", - "description": " Gets the most recent health check results for this regional HealthSource.", - "canonical": true, - "file": "region_health_sources.get_health.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetHealth", - "fullName": "google.cloud.compute.v1beta.RegionHealthSources.GetHealth", - "async": true, - "parameters": [ - { - "name": "health_source", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.HealthSourceHealth", - "client": { - "shortName": "RegionHealthSourcesClient", - "fullName": "google.cloud.compute.v1beta.RegionHealthSourcesClient" - }, - "method": { - "shortName": "GetHealth", - "fullName": "google.cloud.compute.v1beta.RegionHealthSources.GetHealth", - "service": { - "shortName": "RegionHealthSources", - "fullName": "google.cloud.compute.v1beta.RegionHealthSources" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionHealthSources_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Create a HealthSource in the specified project in the given region using the parameters that are included in the request.", - "canonical": true, - "file": "region_health_sources.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RegionHealthSources.Insert", - "async": true, - "parameters": [ - { - "name": "health_source_resource", - "type": ".google.cloud.compute.v1beta.HealthSource" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionHealthSourcesClient", - "fullName": "google.cloud.compute.v1beta.RegionHealthSourcesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RegionHealthSources.Insert", - "service": { - "shortName": "RegionHealthSources", - "fullName": "google.cloud.compute.v1beta.RegionHealthSources" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionHealthSources_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Lists the HealthSources for a project in the given region.", - "canonical": true, - "file": "region_health_sources.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionHealthSources.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.HealthSourceList", - "client": { - "shortName": "RegionHealthSourcesClient", - "fullName": "google.cloud.compute.v1beta.RegionHealthSourcesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionHealthSources.List", - "service": { - "shortName": "RegionHealthSources", - "fullName": "google.cloud.compute.v1beta.RegionHealthSources" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionHealthSources_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified regional HealthSource resource with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.", - "canonical": true, - "file": "region_health_sources.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.RegionHealthSources.Patch", - "async": true, - "parameters": [ - { - "name": "health_source", - "type": "TYPE_STRING" - }, - { - "name": "health_source_resource", - "type": ".google.cloud.compute.v1beta.HealthSource" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionHealthSourcesClient", - "fullName": "google.cloud.compute.v1beta.RegionHealthSourcesClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.RegionHealthSources.Patch", - "service": { - "shortName": "RegionHealthSources", - "fullName": "google.cloud.compute.v1beta.RegionHealthSources" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionHealthSources_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "region_health_sources.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.RegionHealthSources.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "RegionHealthSourcesClient", - "fullName": "google.cloud.compute.v1beta.RegionHealthSourcesClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.RegionHealthSources.TestIamPermissions", - "service": { - "shortName": "RegionHealthSources", - "fullName": "google.cloud.compute.v1beta.RegionHealthSources" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionInstanceGroupManagerResizeRequests_Cancel_async", - "title": "AcceleratorTypes cancel Sample", - "origin": "API_DEFINITION", - "description": " Cancels the specified resize request. Cancelled resize request no longer waits for the resources to be provisioned. Cancel is only possible for requests that are in accepted state.", - "canonical": true, - "file": "region_instance_group_manager_resize_requests.cancel.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Cancel", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagerResizeRequests.Cancel", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "resize_request", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionInstanceGroupManagerResizeRequestsClient", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagerResizeRequestsClient" - }, - "method": { - "shortName": "Cancel", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagerResizeRequests.Cancel", - "service": { - "shortName": "RegionInstanceGroupManagerResizeRequests", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagerResizeRequests" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionInstanceGroupManagerResizeRequests_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified, inactive resize request. Requests that are still active cannot be deleted. Deleting request does not delete instances that were provisioned previously.", - "canonical": true, - "file": "region_instance_group_manager_resize_requests.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagerResizeRequests.Delete", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "resize_request", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionInstanceGroupManagerResizeRequestsClient", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagerResizeRequestsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagerResizeRequests.Delete", - "service": { - "shortName": "RegionInstanceGroupManagerResizeRequests", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagerResizeRequests" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionInstanceGroupManagerResizeRequests_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns all of the details about the specified resize request.", - "canonical": true, - "file": "region_instance_group_manager_resize_requests.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagerResizeRequests.Get", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resize_request", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.InstanceGroupManagerResizeRequest", - "client": { - "shortName": "RegionInstanceGroupManagerResizeRequestsClient", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagerResizeRequestsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagerResizeRequests.Get", - "service": { - "shortName": "RegionInstanceGroupManagerResizeRequests", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagerResizeRequests" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionInstanceGroupManagerResizeRequests_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Resize Request that starts provisioning VMs immediately or queues VM creation.", - "canonical": true, - "file": "region_instance_group_manager_resize_requests.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagerResizeRequests.Insert", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "instance_group_manager_resize_request_resource", - "type": ".google.cloud.compute.v1beta.InstanceGroupManagerResizeRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionInstanceGroupManagerResizeRequestsClient", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagerResizeRequestsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagerResizeRequests.Insert", - "service": { - "shortName": "RegionInstanceGroupManagerResizeRequests", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagerResizeRequests" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionInstanceGroupManagerResizeRequests_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of Resize Requests that are contained in the managed instance group.", - "canonical": true, - "file": "region_instance_group_manager_resize_requests.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 151, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagerResizeRequests.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.RegionInstanceGroupManagerResizeRequestsListResponse", - "client": { - "shortName": "RegionInstanceGroupManagerResizeRequestsClient", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagerResizeRequestsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagerResizeRequests.List", - "service": { - "shortName": "RegionInstanceGroupManagerResizeRequests", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagerResizeRequests" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionInstanceGroupManagers_AbandonInstances_async", - "title": "AcceleratorTypes abandonInstances Sample", - "origin": "API_DEFINITION", - "description": " Flags the specified instances to be immediately removed from the managed instance group. Abandoning an instance does not delete the instance, but it does remove the instance from any target pools that are applied by the managed instance group. This method reduces thetargetSize of the managed instance group by the number of instances that you abandon. This operation is marked asDONE when the action is scheduled even if the instances have not yet been removed from the group. You must separately verify the status of the abandoning action with thelistmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request.", - "canonical": true, - "file": "region_instance_group_managers.abandon_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AbandonInstances", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers.AbandonInstances", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_instance_group_managers_abandon_instances_request_resource", - "type": ".google.cloud.compute.v1beta.RegionInstanceGroupManagersAbandonInstancesRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionInstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagersClient" - }, - "method": { - "shortName": "AbandonInstances", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers.AbandonInstances", - "service": { - "shortName": "RegionInstanceGroupManagers", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionInstanceGroupManagers_AdoptInstances_async", - "title": "AcceleratorTypes adoptInstances Sample", - "origin": "API_DEFINITION", - "description": " Flags the specified instances to be adopted to the managed instance group. Adopting an instance does not change the instance status, but it adds the instance to any target pools that are applied by the managed instance group. This method increases the targetSize of the managed instance group by the number of instances that you adopt. This operation is marked as DONE when the action is scheduled even if the instances have not been adopted to the group yet. You must separately verify the status of the adopting action with the listManagedInstances method.", - "canonical": true, - "file": "region_instance_group_managers.adopt_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AdoptInstances", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers.AdoptInstances", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_instance_group_managers_adopt_instances_request_resource", - "type": ".google.cloud.compute.v1beta.RegionInstanceGroupManagersAdoptInstancesRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionInstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagersClient" - }, - "method": { - "shortName": "AdoptInstances", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers.AdoptInstances", - "service": { - "shortName": "RegionInstanceGroupManagers", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionInstanceGroupManagers_ApplyUpdatesToInstances_async", - "title": "AcceleratorTypes applyUpdatesToInstances Sample", - "origin": "API_DEFINITION", - "description": " Apply updates to selected instances the managed instance group.", - "canonical": true, - "file": "region_instance_group_managers.apply_updates_to_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ApplyUpdatesToInstances", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers.ApplyUpdatesToInstances", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_instance_group_managers_apply_updates_request_resource", - "type": ".google.cloud.compute.v1beta.RegionInstanceGroupManagersApplyUpdatesRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionInstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagersClient" - }, - "method": { - "shortName": "ApplyUpdatesToInstances", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers.ApplyUpdatesToInstances", - "service": { - "shortName": "RegionInstanceGroupManagers", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionInstanceGroupManagers_CreateInstances_async", - "title": "AcceleratorTypes createInstances Sample", - "origin": "API_DEFINITION", - "description": " Creates instances with per-instance configurations in this regional managed instance group. Instances are created using the current instance template. The create instances operation is marked DONE if the createInstances request is successful. The underlying actions take additional time. You must separately verify the status of thecreating or actions with the listmanagedinstances method.", - "canonical": true, - "file": "region_instance_group_managers.create_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateInstances", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers.CreateInstances", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_instance_group_managers_create_instances_request_resource", - "type": ".google.cloud.compute.v1beta.RegionInstanceGroupManagersCreateInstancesRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionInstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagersClient" - }, - "method": { - "shortName": "CreateInstances", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers.CreateInstances", - "service": { - "shortName": "RegionInstanceGroupManagers", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionInstanceGroupManagers_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified managed instance group and all of the instances in that group.", - "canonical": true, - "file": "region_instance_group_managers.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers.Delete", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "no_graceful_shutdown", - "type": "TYPE_BOOL" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionInstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagersClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers.Delete", - "service": { - "shortName": "RegionInstanceGroupManagers", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionInstanceGroupManagers_DeleteInstances_async", - "title": "AcceleratorTypes deleteInstances Sample", - "origin": "API_DEFINITION", - "description": " Flags the specified instances in the managed instance group to be immediately deleted. The instances are also removed from any target pools of which they were a member. This method reduces thetargetSize of the managed instance group by the number of instances that you delete. The deleteInstances operation is marked DONE if the deleteInstances request is successful. The underlying actions take additional time. You must separately verify the status of thedeleting action with thelistmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request.", - "canonical": true, - "file": "region_instance_group_managers.delete_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteInstances", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers.DeleteInstances", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "no_graceful_shutdown", - "type": "TYPE_BOOL" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_instance_group_managers_delete_instances_request_resource", - "type": ".google.cloud.compute.v1beta.RegionInstanceGroupManagersDeleteInstancesRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionInstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagersClient" - }, - "method": { - "shortName": "DeleteInstances", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers.DeleteInstances", - "service": { - "shortName": "RegionInstanceGroupManagers", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionInstanceGroupManagers_DeletePerInstanceConfigs_async", - "title": "AcceleratorTypes deletePerInstanceConfigs Sample", - "origin": "API_DEFINITION", - "description": " Deletes selected per-instance configurations for the managed instance group.", - "canonical": true, - "file": "region_instance_group_managers.delete_per_instance_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePerInstanceConfigs", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers.DeletePerInstanceConfigs", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_instance_group_manager_delete_instance_config_req_resource", - "type": ".google.cloud.compute.v1beta.RegionInstanceGroupManagerDeleteInstanceConfigReq" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionInstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagersClient" - }, - "method": { - "shortName": "DeletePerInstanceConfigs", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers.DeletePerInstanceConfigs", - "service": { - "shortName": "RegionInstanceGroupManagers", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionInstanceGroupManagers_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns all of the details about the specified managed instance group.", - "canonical": true, - "file": "region_instance_group_managers.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers.Get", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.InstanceGroupManager", - "client": { - "shortName": "RegionInstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagersClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers.Get", - "service": { - "shortName": "RegionInstanceGroupManagers", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionInstanceGroupManagers_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a managed instance group using the information that you specify in the request. After the group is created, instances in the group are created using the specified instance template. This operation is marked as DONE when the group is created even if the instances in the group have not yet been created. You must separately verify the status of the individual instances with thelistmanagedinstances method. A regional managed instance group can contain up to 2000 instances.", - "canonical": true, - "file": "region_instance_group_managers.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers.Insert", - "async": true, - "parameters": [ - { - "name": "instance_group_manager_resource", - "type": ".google.cloud.compute.v1beta.InstanceGroupManager" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionInstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagersClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers.Insert", - "service": { - "shortName": "RegionInstanceGroupManagers", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionInstanceGroupManagers_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of managed instance groups that are contained within the specified region.", - "canonical": true, - "file": "region_instance_group_managers.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.RegionInstanceGroupManagerList", - "client": { - "shortName": "RegionInstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagersClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers.List", - "service": { - "shortName": "RegionInstanceGroupManagers", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionInstanceGroupManagers_ListErrors_async", - "title": "AcceleratorTypes listErrors Sample", - "origin": "API_DEFINITION", - "description": " Lists all errors thrown by actions on instances for a given regional managed instance group. The filter andorderBy query parameters are not supported.", - "canonical": true, - "file": "region_instance_group_managers.list_errors.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 154, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListErrors", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers.ListErrors", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.RegionInstanceGroupManagersListErrorsResponse", - "client": { - "shortName": "RegionInstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagersClient" - }, - "method": { - "shortName": "ListErrors", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers.ListErrors", - "service": { - "shortName": "RegionInstanceGroupManagers", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionInstanceGroupManagers_ListManagedInstances_async", - "title": "AcceleratorTypes listManagedInstances Sample", - "origin": "API_DEFINITION", - "description": " Lists the instances in the managed instance group and instances that are scheduled to be created. The list includes any current actions that the group has scheduled for its instances. The orderBy query parameter is not supported. The `pageToken` query parameter is supported only if the group's `listManagedInstancesResults` field is set to `PAGINATED`.", - "canonical": true, - "file": "region_instance_group_managers.list_managed_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 150, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListManagedInstances", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers.ListManagedInstances", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.RegionInstanceGroupManagersListInstancesResponse", - "client": { - "shortName": "RegionInstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagersClient" - }, - "method": { - "shortName": "ListManagedInstances", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers.ListManagedInstances", - "service": { - "shortName": "RegionInstanceGroupManagers", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionInstanceGroupManagers_ListPerInstanceConfigs_async", - "title": "AcceleratorTypes listPerInstanceConfigs Sample", - "origin": "API_DEFINITION", - "description": " Lists all of the per-instance configurations defined for the managed instance group. The orderBy query parameter is not supported.", - "canonical": true, - "file": "region_instance_group_managers.list_per_instance_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 150, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPerInstanceConfigs", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers.ListPerInstanceConfigs", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.RegionInstanceGroupManagersListInstanceConfigsResp", - "client": { - "shortName": "RegionInstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagersClient" - }, - "method": { - "shortName": "ListPerInstanceConfigs", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers.ListPerInstanceConfigs", - "service": { - "shortName": "RegionInstanceGroupManagers", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionInstanceGroupManagers_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Updates a managed instance group using the information that you specify in the request. This operation is marked as DONE when the group is patched even if the instances in the group are still in the process of being patched. You must separately verify the status of the individual instances with the listmanagedinstances method. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules. If you update your group to specify a new template or instance configuration, it's possible that your intended specification for each VM in the group is different from the current state of that VM. To learn how to apply an updated configuration to the VMs in a MIG, seeUpdating instances in a MIG.", - "canonical": true, - "file": "region_instance_group_managers.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers.Patch", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "instance_group_manager_resource", - "type": ".google.cloud.compute.v1beta.InstanceGroupManager" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionInstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagersClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers.Patch", - "service": { - "shortName": "RegionInstanceGroupManagers", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionInstanceGroupManagers_PatchPerInstanceConfigs_async", - "title": "AcceleratorTypes patchPerInstanceConfigs Sample", - "origin": "API_DEFINITION", - "description": " Inserts or patches per-instance configurations for the managed instance group. perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch.", - "canonical": true, - "file": "region_instance_group_managers.patch_per_instance_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PatchPerInstanceConfigs", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers.PatchPerInstanceConfigs", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_instance_group_manager_patch_instance_config_req_resource", - "type": ".google.cloud.compute.v1beta.RegionInstanceGroupManagerPatchInstanceConfigReq" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionInstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagersClient" - }, - "method": { - "shortName": "PatchPerInstanceConfigs", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers.PatchPerInstanceConfigs", - "service": { - "shortName": "RegionInstanceGroupManagers", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionInstanceGroupManagers_RecreateInstances_async", - "title": "AcceleratorTypes recreateInstances Sample", - "origin": "API_DEFINITION", - "description": " Flags the specified VM instances in the managed instance group to be immediately recreated. Each instance is recreated using the group's current configuration. This operation is marked as DONE when the flag is set even if the instances have not yet been recreated. You must separately verify the status of each instance by checking itscurrentAction field; for more information, see Checking the status of managed instances. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted. You can specify a maximum of 1000 instances with this method per request.", - "canonical": true, - "file": "region_instance_group_managers.recreate_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RecreateInstances", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers.RecreateInstances", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "no_graceful_shutdown", - "type": "TYPE_BOOL" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_instance_group_managers_recreate_request_resource", - "type": ".google.cloud.compute.v1beta.RegionInstanceGroupManagersRecreateRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionInstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagersClient" - }, - "method": { - "shortName": "RecreateInstances", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers.RecreateInstances", - "service": { - "shortName": "RegionInstanceGroupManagers", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionInstanceGroupManagers_Resize_async", - "title": "AcceleratorTypes resize Sample", - "origin": "API_DEFINITION", - "description": " Changes the intended size of the managed instance group. If you increase the size, the group creates new instances using the current instance template. If you decrease the size, the group deletes one or more instances. The resize operation is marked DONE if theresize request is successful. The underlying actions take additional time. You must separately verify the status of thecreating or deleting actions with thelistmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted.", - "canonical": true, - "file": "region_instance_group_managers.resize.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Resize", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers.Resize", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionInstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagersClient" - }, - "method": { - "shortName": "Resize", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers.Resize", - "service": { - "shortName": "RegionInstanceGroupManagers", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionInstanceGroupManagers_ResizeAdvanced_async", - "title": "AcceleratorTypes resizeAdvanced Sample", - "origin": "API_DEFINITION", - "description": " Resizes the regional managed instance group with advanced configuration options like disabling creation retries. This is an extended version of theresize method. If you increase the size, the group creates new instances using the current instance template. If you decrease the size, the group deletes one or more instances. The resize operation is marked DONE if theresize request is successful. The underlying actions take additional time. You must separately verify the status of thecreating or deleting actions with the get orlistmanagedinstances method. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted.", - "canonical": true, - "file": "region_instance_group_managers.resize_advanced.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResizeAdvanced", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers.ResizeAdvanced", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_instance_group_managers_resize_advanced_request_resource", - "type": ".google.cloud.compute.v1beta.RegionInstanceGroupManagersResizeAdvancedRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionInstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagersClient" - }, - "method": { - "shortName": "ResizeAdvanced", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers.ResizeAdvanced", - "service": { - "shortName": "RegionInstanceGroupManagers", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionInstanceGroupManagers_ResumeInstances_async", - "title": "AcceleratorTypes resumeInstances Sample", - "origin": "API_DEFINITION", - "description": " Flags the specified instances in the managed instance group to be resumed. This method increases thetargetSize and decreases the targetSuspendedSize of the managed instance group by the number of instances that you resume. The resumeInstances operation is marked DONE if the resumeInstances request is successful. The underlying actions take additional time. You must separately verify the status of theRESUMING action with thelistmanagedinstances method. In this request, you can only specify instances that are suspended. For example, if an instance was previously suspended using the suspendInstances method, it can be resumed using the resumeInstances method. If a health check is attached to the managed instance group, the specified instances will be verified as healthy after they are resumed. You can specify a maximum of 1000 instances with this method per request.", - "canonical": true, - "file": "region_instance_group_managers.resume_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResumeInstances", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers.ResumeInstances", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_instance_group_managers_resume_instances_request_resource", - "type": ".google.cloud.compute.v1beta.RegionInstanceGroupManagersResumeInstancesRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionInstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagersClient" - }, - "method": { - "shortName": "ResumeInstances", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers.ResumeInstances", - "service": { - "shortName": "RegionInstanceGroupManagers", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionInstanceGroupManagers_SetAutoHealingPolicies_async", - "title": "AcceleratorTypes setAutoHealingPolicies Sample", - "origin": "API_DEFINITION", - "description": " Modifies the autohealing policy for the instances in this managed instance group. [Deprecated] This method is deprecated. UseregionInstanceGroupManagers.patch instead.", - "canonical": true, - "file": "region_instance_group_managers.set_auto_healing_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetAutoHealingPolicies", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers.SetAutoHealingPolicies", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_instance_group_managers_set_auto_healing_request_resource", - "type": ".google.cloud.compute.v1beta.RegionInstanceGroupManagersSetAutoHealingRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionInstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagersClient" - }, - "method": { - "shortName": "SetAutoHealingPolicies", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers.SetAutoHealingPolicies", - "service": { - "shortName": "RegionInstanceGroupManagers", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionInstanceGroupManagers_SetInstanceTemplate_async", - "title": "AcceleratorTypes setInstanceTemplate Sample", - "origin": "API_DEFINITION", - "description": " Sets the instance template to use when creating new instances or recreating instances in this group. Existing instances are not affected.", - "canonical": true, - "file": "region_instance_group_managers.set_instance_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetInstanceTemplate", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers.SetInstanceTemplate", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_instance_group_managers_set_template_request_resource", - "type": ".google.cloud.compute.v1beta.RegionInstanceGroupManagersSetTemplateRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionInstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagersClient" - }, - "method": { - "shortName": "SetInstanceTemplate", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers.SetInstanceTemplate", - "service": { - "shortName": "RegionInstanceGroupManagers", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionInstanceGroupManagers_SetTargetPools_async", - "title": "AcceleratorTypes setTargetPools Sample", - "origin": "API_DEFINITION", - "description": " Modifies the target pools to which all new instances in this group are assigned. Existing instances in the group are not affected.", - "canonical": true, - "file": "region_instance_group_managers.set_target_pools.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetTargetPools", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers.SetTargetPools", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_instance_group_managers_set_target_pools_request_resource", - "type": ".google.cloud.compute.v1beta.RegionInstanceGroupManagersSetTargetPoolsRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionInstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagersClient" - }, - "method": { - "shortName": "SetTargetPools", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers.SetTargetPools", - "service": { - "shortName": "RegionInstanceGroupManagers", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionInstanceGroupManagers_StartInstances_async", - "title": "AcceleratorTypes startInstances Sample", - "origin": "API_DEFINITION", - "description": " Flags the specified instances in the managed instance group to be started. This method increases thetargetSize and decreases the targetStoppedSize of the managed instance group by the number of instances that you start. The startInstances operation is marked DONE if the startInstances request is successful. The underlying actions take additional time. You must separately verify the status of theSTARTING action with thelistmanagedinstances method. In this request, you can only specify instances that are stopped. For example, if an instance was previously stopped using the stopInstances method, it can be started using the startInstances method. If a health check is attached to the managed instance group, the specified instances will be verified as healthy after they are started. You can specify a maximum of 1000 instances with this method per request.", - "canonical": true, - "file": "region_instance_group_managers.start_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StartInstances", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers.StartInstances", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_instance_group_managers_start_instances_request_resource", - "type": ".google.cloud.compute.v1beta.RegionInstanceGroupManagersStartInstancesRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionInstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagersClient" - }, - "method": { - "shortName": "StartInstances", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers.StartInstances", - "service": { - "shortName": "RegionInstanceGroupManagers", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionInstanceGroupManagers_StopInstances_async", - "title": "AcceleratorTypes stopInstances Sample", - "origin": "API_DEFINITION", - "description": " Flags the specified instances in the managed instance group to be immediately stopped. You can only specify instances that are running in this request. This method reduces thetargetSize and increases the targetStoppedSize of the managed instance group by the number of instances that you stop. The stopInstances operation is marked DONE if the stopInstances request is successful. The underlying actions take additional time. You must separately verify the status of theSTOPPING action with thelistmanagedinstances method. If the standbyPolicy.initialDelaySec field is set, the group delays stopping the instances until initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was created). This delay gives your application time to set itself up and initialize on the instance. If more thaninitialDelaySec seconds have passed sinceinstance.creationTimestamp when this method is called, there will be zero delay. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is stopped. Stopped instances can be started using the startInstances method. You can specify a maximum of 1000 instances with this method per request.", - "canonical": true, - "file": "region_instance_group_managers.stop_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StopInstances", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers.StopInstances", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "no_graceful_shutdown", - "type": "TYPE_BOOL" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_instance_group_managers_stop_instances_request_resource", - "type": ".google.cloud.compute.v1beta.RegionInstanceGroupManagersStopInstancesRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionInstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagersClient" - }, - "method": { - "shortName": "StopInstances", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers.StopInstances", - "service": { - "shortName": "RegionInstanceGroupManagers", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionInstanceGroupManagers_SuspendInstances_async", - "title": "AcceleratorTypes suspendInstances Sample", - "origin": "API_DEFINITION", - "description": " Flags the specified instances in the managed instance group to be immediately suspended. You can only specify instances that are running in this request. This method reduces thetargetSize and increases the targetSuspendedSize of the managed instance group by the number of instances that you suspend. The suspendInstances operation is marked DONE if the suspendInstances request is successful. The underlying actions take additional time. You must separately verify the status of theSUSPENDING action with thelistmanagedinstances method. If the standbyPolicy.initialDelaySec field is set, the group delays suspension of the instances until initialDelaySec have passed from instance.creationTimestamp (that is, when the instance was created). This delay gives your application time to set itself up and initialize on the instance. If more thaninitialDelaySec seconds have passed sinceinstance.creationTimestamp when this method is called, there will be zero delay. If the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is suspended. Suspended instances can be resumed using the resumeInstances method. You can specify a maximum of 1000 instances with this method per request.", - "canonical": true, - "file": "region_instance_group_managers.suspend_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SuspendInstances", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers.SuspendInstances", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_instance_group_managers_suspend_instances_request_resource", - "type": ".google.cloud.compute.v1beta.RegionInstanceGroupManagersSuspendInstancesRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionInstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagersClient" - }, - "method": { - "shortName": "SuspendInstances", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers.SuspendInstances", - "service": { - "shortName": "RegionInstanceGroupManagers", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionInstanceGroupManagers_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "region_instance_group_managers.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "RegionInstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagersClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers.TestIamPermissions", - "service": { - "shortName": "RegionInstanceGroupManagers", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionInstanceGroupManagers_Update_async", - "title": "AcceleratorTypes update Sample", - "origin": "API_DEFINITION", - "description": " Updates a managed instance group using the information that you specify in the request. This operation is marked as DONE when the group is updated even if the instances in the group have not yet been updated. You must separately verify the status of the individual instances with thelistmanagedinstances method. If you update your group to specify a new template or instance configuration, it's possible that your intended specification for each VM in the group is different from the current state of that VM. To learn how to apply an updated configuration to the VMs in a MIG, seeUpdating instances in a MIG.", - "canonical": true, - "file": "region_instance_group_managers.update.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers.Update", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "instance_group_manager_resource", - "type": ".google.cloud.compute.v1beta.InstanceGroupManager" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionInstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagersClient" - }, - "method": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers.Update", - "service": { - "shortName": "RegionInstanceGroupManagers", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionInstanceGroupManagers_UpdatePerInstanceConfigs_async", - "title": "AcceleratorTypes updatePerInstanceConfigs Sample", - "origin": "API_DEFINITION", - "description": " Inserts or updates per-instance configurations for the managed instance group. perInstanceConfig.name serves as a key used to distinguish whether to perform insert or patch.", - "canonical": true, - "file": "region_instance_group_managers.update_per_instance_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdatePerInstanceConfigs", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers.UpdatePerInstanceConfigs", - "async": true, - "parameters": [ - { - "name": "instance_group_manager", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_instance_group_manager_update_instance_config_req_resource", - "type": ".google.cloud.compute.v1beta.RegionInstanceGroupManagerUpdateInstanceConfigReq" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionInstanceGroupManagersClient", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagersClient" - }, - "method": { - "shortName": "UpdatePerInstanceConfigs", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers.UpdatePerInstanceConfigs", - "service": { - "shortName": "RegionInstanceGroupManagers", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupManagers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionInstanceGroups_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified instance group resource.", - "canonical": true, - "file": "region_instance_groups.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroups.Get", - "async": true, - "parameters": [ - { - "name": "instance_group", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.InstanceGroup", - "client": { - "shortName": "RegionInstanceGroupsClient", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroups.Get", - "service": { - "shortName": "RegionInstanceGroups", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionInstanceGroups_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of instance group resources contained within the specified region.", - "canonical": true, - "file": "region_instance_groups.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroups.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.RegionInstanceGroupList", - "client": { - "shortName": "RegionInstanceGroupsClient", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroups.List", - "service": { - "shortName": "RegionInstanceGroups", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionInstanceGroups_ListInstances_async", - "title": "AcceleratorTypes listInstances Sample", - "origin": "API_DEFINITION", - "description": " Lists the instances in the specified instance group and displays information about the named ports. Depending on the specified options, this method can list all instances or only the instances that are running. The orderBy query parameter is not supported.", - "canonical": true, - "file": "region_instance_groups.list_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 156, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListInstances", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroups.ListInstances", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "instance_group", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_instance_groups_list_instances_request_resource", - "type": ".google.cloud.compute.v1beta.RegionInstanceGroupsListInstancesRequest" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.RegionInstanceGroupsListInstances", - "client": { - "shortName": "RegionInstanceGroupsClient", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupsClient" - }, - "method": { - "shortName": "ListInstances", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroups.ListInstances", - "service": { - "shortName": "RegionInstanceGroups", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionInstanceGroups_SetNamedPorts_async", - "title": "AcceleratorTypes setNamedPorts Sample", - "origin": "API_DEFINITION", - "description": " Sets the named ports for the specified regional instance group.", - "canonical": true, - "file": "region_instance_groups.set_named_ports.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetNamedPorts", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroups.SetNamedPorts", - "async": true, - "parameters": [ - { - "name": "instance_group", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_instance_groups_set_named_ports_request_resource", - "type": ".google.cloud.compute.v1beta.RegionInstanceGroupsSetNamedPortsRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionInstanceGroupsClient", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupsClient" - }, - "method": { - "shortName": "SetNamedPorts", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroups.SetNamedPorts", - "service": { - "shortName": "RegionInstanceGroups", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionInstanceGroups_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "region_instance_groups.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroups.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "RegionInstanceGroupsClient", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroupsClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroups.TestIamPermissions", - "service": { - "shortName": "RegionInstanceGroups", - "fullName": "google.cloud.compute.v1beta.RegionInstanceGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionInstances_BulkInsert_async", - "title": "AcceleratorTypes bulkInsert Sample", - "origin": "API_DEFINITION", - "description": " Creates multiple instances in a given region. Count specifies the number of instances to create.", - "canonical": true, - "file": "region_instances.bulk_insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BulkInsert", - "fullName": "google.cloud.compute.v1beta.RegionInstances.BulkInsert", - "async": true, - "parameters": [ - { - "name": "bulk_insert_instance_resource_resource", - "type": ".google.cloud.compute.v1beta.BulkInsertInstanceResource" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionInstancesClient", - "fullName": "google.cloud.compute.v1beta.RegionInstancesClient" - }, - "method": { - "shortName": "BulkInsert", - "fullName": "google.cloud.compute.v1beta.RegionInstances.BulkInsert", - "service": { - "shortName": "RegionInstances", - "fullName": "google.cloud.compute.v1beta.RegionInstances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionInstanceTemplates_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified instance template. Deleting an instance template is permanent and cannot be undone.", - "canonical": true, - "file": "region_instance_templates.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.RegionInstanceTemplates.Delete", - "async": true, - "parameters": [ - { - "name": "instance_template", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionInstanceTemplatesClient", - "fullName": "google.cloud.compute.v1beta.RegionInstanceTemplatesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.RegionInstanceTemplates.Delete", - "service": { - "shortName": "RegionInstanceTemplates", - "fullName": "google.cloud.compute.v1beta.RegionInstanceTemplates" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionInstanceTemplates_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified instance template.", - "canonical": true, - "file": "region_instance_templates.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionInstanceTemplates.Get", - "async": true, - "parameters": [ - { - "name": "instance_template", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.InstanceTemplate", - "client": { - "shortName": "RegionInstanceTemplatesClient", - "fullName": "google.cloud.compute.v1beta.RegionInstanceTemplatesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionInstanceTemplates.Get", - "service": { - "shortName": "RegionInstanceTemplates", - "fullName": "google.cloud.compute.v1beta.RegionInstanceTemplates" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionInstanceTemplates_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates an instance template in the specified project and region using the global instance template whose URL is included in the request.", - "canonical": true, - "file": "region_instance_templates.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RegionInstanceTemplates.Insert", - "async": true, - "parameters": [ - { - "name": "instance_template_resource", - "type": ".google.cloud.compute.v1beta.InstanceTemplate" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionInstanceTemplatesClient", - "fullName": "google.cloud.compute.v1beta.RegionInstanceTemplatesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RegionInstanceTemplates.Insert", - "service": { - "shortName": "RegionInstanceTemplates", - "fullName": "google.cloud.compute.v1beta.RegionInstanceTemplates" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionInstanceTemplates_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of instance templates that are contained within the specified project and region.", - "canonical": true, - "file": "region_instance_templates.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 150, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionInstanceTemplates.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "view", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.InstanceTemplateList", - "client": { - "shortName": "RegionInstanceTemplatesClient", - "fullName": "google.cloud.compute.v1beta.RegionInstanceTemplatesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionInstanceTemplates.List", - "service": { - "shortName": "RegionInstanceTemplates", - "fullName": "google.cloud.compute.v1beta.RegionInstanceTemplates" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionInstantSnapshotGroups_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " deletes a Regional InstantSnapshotGroup resource", - "canonical": true, - "file": "region_instant_snapshot_groups.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotGroups.Delete", - "async": true, - "parameters": [ - { - "name": "instant_snapshot_group", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionInstantSnapshotGroupsClient", - "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotGroupsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotGroups.Delete", - "service": { - "shortName": "RegionInstantSnapshotGroups", - "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionInstantSnapshotGroups_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " returns the specified InstantSnapshotGroup resource in the specified region.", - "canonical": true, - "file": "region_instant_snapshot_groups.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotGroups.Get", - "async": true, - "parameters": [ - { - "name": "instant_snapshot_group", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.InstantSnapshotGroup", - "client": { - "shortName": "RegionInstantSnapshotGroupsClient", - "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotGroupsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotGroups.Get", - "service": { - "shortName": "RegionInstantSnapshotGroups", - "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionInstantSnapshotGroups_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "region_instant_snapshot_groups.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotGroups.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "RegionInstantSnapshotGroupsClient", - "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotGroupsClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotGroups.GetIamPolicy", - "service": { - "shortName": "RegionInstantSnapshotGroups", - "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionInstantSnapshotGroups_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " creates a Regional InstantSnapshotGroup resource", - "canonical": true, - "file": "region_instant_snapshot_groups.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotGroups.Insert", - "async": true, - "parameters": [ - { - "name": "instant_snapshot_group_resource", - "type": ".google.cloud.compute.v1beta.InstantSnapshotGroup" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "source_consistency_group", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionInstantSnapshotGroupsClient", - "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotGroupsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotGroups.Insert", - "service": { - "shortName": "RegionInstantSnapshotGroups", - "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionInstantSnapshotGroups_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " retrieves the list of InstantSnapshotGroup resources contained within the specified region.", - "canonical": true, - "file": "region_instant_snapshot_groups.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotGroups.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.ListInstantSnapshotGroups", - "client": { - "shortName": "RegionInstantSnapshotGroupsClient", - "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotGroupsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotGroups.List", - "service": { - "shortName": "RegionInstantSnapshotGroups", - "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionInstantSnapshotGroups_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "region_instant_snapshot_groups.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotGroups.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_set_policy_request_resource", - "type": ".google.cloud.compute.v1beta.RegionSetPolicyRequest" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "RegionInstantSnapshotGroupsClient", - "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotGroupsClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotGroups.SetIamPolicy", - "service": { - "shortName": "RegionInstantSnapshotGroups", - "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionInstantSnapshotGroups_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "region_instant_snapshot_groups.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotGroups.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "RegionInstantSnapshotGroupsClient", - "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotGroupsClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotGroups.TestIamPermissions", - "service": { - "shortName": "RegionInstantSnapshotGroups", - "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionInstantSnapshots_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified InstantSnapshot resource. Keep in mind that deleting a single instantSnapshot might not necessarily delete all the data on that instantSnapshot. If any data on the instantSnapshot that is marked for deletion is needed for subsequent instantSnapshots, the data will be moved to the next corresponding instantSnapshot. For more information, seeDeleting instantSnapshots.", - "canonical": true, - "file": "region_instant_snapshots.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshots.Delete", - "async": true, - "parameters": [ - { - "name": "instant_snapshot", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionInstantSnapshotsClient", - "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshots.Delete", - "service": { - "shortName": "RegionInstantSnapshots", - "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshots" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionInstantSnapshots_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified InstantSnapshot resource in the specified region.", - "canonical": true, - "file": "region_instant_snapshots.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshots.Get", - "async": true, - "parameters": [ - { - "name": "instant_snapshot", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.InstantSnapshot", - "client": { - "shortName": "RegionInstantSnapshotsClient", - "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshots.Get", - "service": { - "shortName": "RegionInstantSnapshots", - "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshots" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionInstantSnapshots_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "region_instant_snapshots.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshots.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "RegionInstantSnapshotsClient", - "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotsClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshots.GetIamPolicy", - "service": { - "shortName": "RegionInstantSnapshots", - "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshots" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionInstantSnapshots_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates an instant snapshot in the specified region.", - "canonical": true, - "file": "region_instant_snapshots.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshots.Insert", - "async": true, - "parameters": [ - { - "name": "instant_snapshot_resource", - "type": ".google.cloud.compute.v1beta.InstantSnapshot" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionInstantSnapshotsClient", - "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshots.Insert", - "service": { - "shortName": "RegionInstantSnapshots", - "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshots" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionInstantSnapshots_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of InstantSnapshot resources contained within the specified region.", - "canonical": true, - "file": "region_instant_snapshots.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshots.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.InstantSnapshotList", - "client": { - "shortName": "RegionInstantSnapshotsClient", - "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshots.List", - "service": { - "shortName": "RegionInstantSnapshots", - "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshots" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionInstantSnapshots_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "region_instant_snapshots.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshots.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_set_policy_request_resource", - "type": ".google.cloud.compute.v1beta.RegionSetPolicyRequest" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "RegionInstantSnapshotsClient", - "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotsClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshots.SetIamPolicy", - "service": { - "shortName": "RegionInstantSnapshots", - "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshots" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionInstantSnapshots_SetLabels_async", - "title": "AcceleratorTypes setLabels Sample", - "origin": "API_DEFINITION", - "description": " Sets the labels on a instantSnapshot in the given region. To learn more about labels, read the Labeling Resources documentation.", - "canonical": true, - "file": "region_instant_snapshots.set_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshots.SetLabels", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_set_labels_request_resource", - "type": ".google.cloud.compute.v1beta.RegionSetLabelsRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionInstantSnapshotsClient", - "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotsClient" - }, - "method": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshots.SetLabels", - "service": { - "shortName": "RegionInstantSnapshots", - "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshots" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionInstantSnapshots_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "region_instant_snapshots.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshots.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "RegionInstantSnapshotsClient", - "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshotsClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshots.TestIamPermissions", - "service": { - "shortName": "RegionInstantSnapshots", - "fullName": "google.cloud.compute.v1beta.RegionInstantSnapshots" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionMultiMigMembers_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Retrieves information about the specified multi-MIG member.", - "canonical": true, - "file": "region_multi_mig_members.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionMultiMigMembers.Get", - "async": true, - "parameters": [ - { - "name": "multi_mig", - "type": "TYPE_STRING" - }, - { - "name": "multi_mig_member", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.MultiMigMember", - "client": { - "shortName": "RegionMultiMigMembersClient", - "fullName": "google.cloud.compute.v1beta.RegionMultiMigMembersClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionMultiMigMembers.Get", - "service": { - "shortName": "RegionMultiMigMembers", - "fullName": "google.cloud.compute.v1beta.RegionMultiMigMembers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionMultiMigMembers_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of members of a specific multi-MIG.", - "canonical": true, - "file": "region_multi_mig_members.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 151, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionMultiMigMembers.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "multi_mig", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.MultiMigMemberList", - "client": { - "shortName": "RegionMultiMigMembersClient", - "fullName": "google.cloud.compute.v1beta.RegionMultiMigMembersClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionMultiMigMembers.List", - "service": { - "shortName": "RegionMultiMigMembers", - "fullName": "google.cloud.compute.v1beta.RegionMultiMigMembers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionMultiMigs_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes a multi-MIG in the specified project.", - "canonical": true, - "file": "region_multi_migs.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.RegionMultiMigs.Delete", - "async": true, - "parameters": [ - { - "name": "multi_mig", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionMultiMigsClient", - "fullName": "google.cloud.compute.v1beta.RegionMultiMigsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.RegionMultiMigs.Delete", - "service": { - "shortName": "RegionMultiMigs", - "fullName": "google.cloud.compute.v1beta.RegionMultiMigs" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionMultiMigs_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns all the details of a specific multi-MIG.", - "canonical": true, - "file": "region_multi_migs.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionMultiMigs.Get", - "async": true, - "parameters": [ - { - "name": "multi_mig", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.MultiMig", - "client": { - "shortName": "RegionMultiMigsClient", - "fullName": "google.cloud.compute.v1beta.RegionMultiMigsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionMultiMigs.Get", - "service": { - "shortName": "RegionMultiMigs", - "fullName": "google.cloud.compute.v1beta.RegionMultiMigs" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionMultiMigs_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a multi-MIG in the specified project.", - "canonical": true, - "file": "region_multi_migs.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RegionMultiMigs.Insert", - "async": true, - "parameters": [ - { - "name": "multi_mig_resource", - "type": ".google.cloud.compute.v1beta.MultiMig" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionMultiMigsClient", - "fullName": "google.cloud.compute.v1beta.RegionMultiMigsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RegionMultiMigs.Insert", - "service": { - "shortName": "RegionMultiMigs", - "fullName": "google.cloud.compute.v1beta.RegionMultiMigs" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionMultiMigs_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of multi-MIGs in a project and region.", - "canonical": true, - "file": "region_multi_migs.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionMultiMigs.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.MultiMigsList", - "client": { - "shortName": "RegionMultiMigsClient", - "fullName": "google.cloud.compute.v1beta.RegionMultiMigsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionMultiMigs.List", - "service": { - "shortName": "RegionMultiMigs", - "fullName": "google.cloud.compute.v1beta.RegionMultiMigs" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionNetworkEndpointGroups_AttachNetworkEndpoints_async", - "title": "AcceleratorTypes attachNetworkEndpoints Sample", - "origin": "API_DEFINITION", - "description": " Attach a list of network endpoints to the specified network endpoint group.", - "canonical": true, - "file": "region_network_endpoint_groups.attach_network_endpoints.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AttachNetworkEndpoints", - "fullName": "google.cloud.compute.v1beta.RegionNetworkEndpointGroups.AttachNetworkEndpoints", - "async": true, - "parameters": [ - { - "name": "network_endpoint_group", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_network_endpoint_groups_attach_endpoints_request_resource", - "type": ".google.cloud.compute.v1beta.RegionNetworkEndpointGroupsAttachEndpointsRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionNetworkEndpointGroupsClient", - "fullName": "google.cloud.compute.v1beta.RegionNetworkEndpointGroupsClient" - }, - "method": { - "shortName": "AttachNetworkEndpoints", - "fullName": "google.cloud.compute.v1beta.RegionNetworkEndpointGroups.AttachNetworkEndpoints", - "service": { - "shortName": "RegionNetworkEndpointGroups", - "fullName": "google.cloud.compute.v1beta.RegionNetworkEndpointGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionNetworkEndpointGroups_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified network endpoint group. Note that the NEG cannot be deleted if it is configured as a backend of a backend service.", - "canonical": true, - "file": "region_network_endpoint_groups.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.RegionNetworkEndpointGroups.Delete", - "async": true, - "parameters": [ - { - "name": "network_endpoint_group", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionNetworkEndpointGroupsClient", - "fullName": "google.cloud.compute.v1beta.RegionNetworkEndpointGroupsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.RegionNetworkEndpointGroups.Delete", - "service": { - "shortName": "RegionNetworkEndpointGroups", - "fullName": "google.cloud.compute.v1beta.RegionNetworkEndpointGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionNetworkEndpointGroups_DetachNetworkEndpoints_async", - "title": "AcceleratorTypes detachNetworkEndpoints Sample", - "origin": "API_DEFINITION", - "description": " Detach the network endpoint from the specified network endpoint group.", - "canonical": true, - "file": "region_network_endpoint_groups.detach_network_endpoints.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DetachNetworkEndpoints", - "fullName": "google.cloud.compute.v1beta.RegionNetworkEndpointGroups.DetachNetworkEndpoints", - "async": true, - "parameters": [ - { - "name": "network_endpoint_group", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_network_endpoint_groups_detach_endpoints_request_resource", - "type": ".google.cloud.compute.v1beta.RegionNetworkEndpointGroupsDetachEndpointsRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionNetworkEndpointGroupsClient", - "fullName": "google.cloud.compute.v1beta.RegionNetworkEndpointGroupsClient" - }, - "method": { - "shortName": "DetachNetworkEndpoints", - "fullName": "google.cloud.compute.v1beta.RegionNetworkEndpointGroups.DetachNetworkEndpoints", - "service": { - "shortName": "RegionNetworkEndpointGroups", - "fullName": "google.cloud.compute.v1beta.RegionNetworkEndpointGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionNetworkEndpointGroups_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified network endpoint group.", - "canonical": true, - "file": "region_network_endpoint_groups.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionNetworkEndpointGroups.Get", - "async": true, - "parameters": [ - { - "name": "network_endpoint_group", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.NetworkEndpointGroup", - "client": { - "shortName": "RegionNetworkEndpointGroupsClient", - "fullName": "google.cloud.compute.v1beta.RegionNetworkEndpointGroupsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionNetworkEndpointGroups.Get", - "service": { - "shortName": "RegionNetworkEndpointGroups", - "fullName": "google.cloud.compute.v1beta.RegionNetworkEndpointGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionNetworkEndpointGroups_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a network endpoint group in the specified project using the parameters that are included in the request. Note: Use the following APIs to manage network endpoint groups: - To manage NEGs with zonal scope (such as zonal NEGs, hybrid connectivity NEGs): zonal API - To manage NEGs with regional scope (such as regional internet NEGs, serverless NEGs, Private Service Connect NEGs): regional API - To manage NEGs with global scope (such as global internet NEGs):global API", - "canonical": true, - "file": "region_network_endpoint_groups.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RegionNetworkEndpointGroups.Insert", - "async": true, - "parameters": [ - { - "name": "network_endpoint_group_resource", - "type": ".google.cloud.compute.v1beta.NetworkEndpointGroup" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionNetworkEndpointGroupsClient", - "fullName": "google.cloud.compute.v1beta.RegionNetworkEndpointGroupsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RegionNetworkEndpointGroups.Insert", - "service": { - "shortName": "RegionNetworkEndpointGroups", - "fullName": "google.cloud.compute.v1beta.RegionNetworkEndpointGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionNetworkEndpointGroups_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of regional network endpoint groups available to the specified project in the given region.", - "canonical": true, - "file": "region_network_endpoint_groups.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 146, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionNetworkEndpointGroups.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.NetworkEndpointGroupList", - "client": { - "shortName": "RegionNetworkEndpointGroupsClient", - "fullName": "google.cloud.compute.v1beta.RegionNetworkEndpointGroupsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionNetworkEndpointGroups.List", - "service": { - "shortName": "RegionNetworkEndpointGroups", - "fullName": "google.cloud.compute.v1beta.RegionNetworkEndpointGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionNetworkEndpointGroups_ListNetworkEndpoints_async", - "title": "AcceleratorTypes listNetworkEndpoints Sample", - "origin": "API_DEFINITION", - "description": " Lists the network endpoints in the specified network endpoint group.", - "canonical": true, - "file": "region_network_endpoint_groups.list_network_endpoints.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 152, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListNetworkEndpoints", - "fullName": "google.cloud.compute.v1beta.RegionNetworkEndpointGroups.ListNetworkEndpoints", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "network_endpoint_group", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.NetworkEndpointGroupsListNetworkEndpoints", - "client": { - "shortName": "RegionNetworkEndpointGroupsClient", - "fullName": "google.cloud.compute.v1beta.RegionNetworkEndpointGroupsClient" - }, - "method": { - "shortName": "ListNetworkEndpoints", - "fullName": "google.cloud.compute.v1beta.RegionNetworkEndpointGroups.ListNetworkEndpoints", - "service": { - "shortName": "RegionNetworkEndpointGroups", - "fullName": "google.cloud.compute.v1beta.RegionNetworkEndpointGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionNetworkFirewallPolicies_AddAssociation_async", - "title": "AcceleratorTypes addAssociation Sample", - "origin": "API_DEFINITION", - "description": " Inserts an association for the specified network firewall policy.", - "canonical": true, - "file": "region_network_firewall_policies.add_association.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 94, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddAssociation", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPolicies.AddAssociation", - "async": true, - "parameters": [ - { - "name": "associated_policy_to_be_replaced", - "type": "TYPE_STRING" - }, - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "firewall_policy_association_resource", - "type": ".google.cloud.compute.v1beta.FirewallPolicyAssociation" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "replace_existing_association", - "type": "TYPE_BOOL" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionNetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "AddAssociation", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPolicies.AddAssociation", - "service": { - "shortName": "RegionNetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionNetworkFirewallPolicies_AddRule_async", - "title": "AcceleratorTypes addRule Sample", - "origin": "API_DEFINITION", - "description": " Inserts a rule into a network firewall policy.", - "canonical": true, - "file": "region_network_firewall_policies.add_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 92, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddRule", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPolicies.AddRule", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "firewall_policy_rule_resource", - "type": ".google.cloud.compute.v1beta.FirewallPolicyRule" - }, - { - "name": "max_priority", - "type": "TYPE_INT32" - }, - { - "name": "min_priority", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionNetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "AddRule", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPolicies.AddRule", - "service": { - "shortName": "RegionNetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionNetworkFirewallPolicies_CloneRules_async", - "title": "AcceleratorTypes cloneRules Sample", - "origin": "API_DEFINITION", - "description": " Copies rules to the specified network firewall policy.", - "canonical": true, - "file": "region_network_firewall_policies.clone_rules.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CloneRules", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPolicies.CloneRules", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "source_firewall_policy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionNetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "CloneRules", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPolicies.CloneRules", - "service": { - "shortName": "RegionNetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionNetworkFirewallPolicies_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified network firewall policy.", - "canonical": true, - "file": "region_network_firewall_policies.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPolicies.Delete", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionNetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPolicies.Delete", - "service": { - "shortName": "RegionNetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionNetworkFirewallPolicies_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified network firewall policy.", - "canonical": true, - "file": "region_network_firewall_policies.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPolicies.Get", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.FirewallPolicy", - "client": { - "shortName": "RegionNetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPolicies.Get", - "service": { - "shortName": "RegionNetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionNetworkFirewallPolicies_GetAssociation_async", - "title": "AcceleratorTypes getAssociation Sample", - "origin": "API_DEFINITION", - "description": " Gets an association with the specified name.", - "canonical": true, - "file": "region_network_firewall_policies.get_association.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAssociation", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPolicies.GetAssociation", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.FirewallPolicyAssociation", - "client": { - "shortName": "RegionNetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "GetAssociation", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPolicies.GetAssociation", - "service": { - "shortName": "RegionNetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionNetworkFirewallPolicies_GetEffectiveFirewalls_async", - "title": "AcceleratorTypes getEffectiveFirewalls Sample", - "origin": "API_DEFINITION", - "description": " Returns the effective firewalls on a given network.", - "canonical": true, - "file": "region_network_firewall_policies.get_effective_firewalls.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEffectiveFirewalls", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPolicies.GetEffectiveFirewalls", - "async": true, - "parameters": [ - { - "name": "network", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse", - "client": { - "shortName": "RegionNetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "GetEffectiveFirewalls", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPolicies.GetEffectiveFirewalls", - "service": { - "shortName": "RegionNetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionNetworkFirewallPolicies_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "region_network_firewall_policies.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPolicies.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "RegionNetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPolicies.GetIamPolicy", - "service": { - "shortName": "RegionNetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionNetworkFirewallPolicies_GetRule_async", - "title": "AcceleratorTypes getRule Sample", - "origin": "API_DEFINITION", - "description": " Gets a rule of the specified priority.", - "canonical": true, - "file": "region_network_firewall_policies.get_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRule", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPolicies.GetRule", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "priority", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.FirewallPolicyRule", - "client": { - "shortName": "RegionNetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "GetRule", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPolicies.GetRule", - "service": { - "shortName": "RegionNetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionNetworkFirewallPolicies_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a new network firewall policy in the specified project and region.", - "canonical": true, - "file": "region_network_firewall_policies.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPolicies.Insert", - "async": true, - "parameters": [ - { - "name": "firewall_policy_resource", - "type": ".google.cloud.compute.v1beta.FirewallPolicy" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionNetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPolicies.Insert", - "service": { - "shortName": "RegionNetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionNetworkFirewallPolicies_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Lists all the network firewall policies that have been configured for the specified project in the given region.", - "canonical": true, - "file": "region_network_firewall_policies.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPolicies.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.FirewallPolicyList", - "client": { - "shortName": "RegionNetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPolicies.List", - "service": { - "shortName": "RegionNetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionNetworkFirewallPolicies_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patches the specified network firewall policy.", - "canonical": true, - "file": "region_network_firewall_policies.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPolicies.Patch", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "firewall_policy_resource", - "type": ".google.cloud.compute.v1beta.FirewallPolicy" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionNetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPolicies.Patch", - "service": { - "shortName": "RegionNetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionNetworkFirewallPolicies_PatchAssociation_async", - "title": "AcceleratorTypes patchAssociation Sample", - "origin": "API_DEFINITION", - "description": " Updates an association for the specified network firewall policy.", - "canonical": true, - "file": "region_network_firewall_policies.patch_association.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PatchAssociation", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPolicies.PatchAssociation", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "firewall_policy_association_resource", - "type": ".google.cloud.compute.v1beta.FirewallPolicyAssociation" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionNetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "PatchAssociation", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPolicies.PatchAssociation", - "service": { - "shortName": "RegionNetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionNetworkFirewallPolicies_PatchRule_async", - "title": "AcceleratorTypes patchRule Sample", - "origin": "API_DEFINITION", - "description": " Patches a rule of the specified priority.", - "canonical": true, - "file": "region_network_firewall_policies.patch_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PatchRule", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPolicies.PatchRule", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "firewall_policy_rule_resource", - "type": ".google.cloud.compute.v1beta.FirewallPolicyRule" - }, - { - "name": "priority", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionNetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "PatchRule", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPolicies.PatchRule", - "service": { - "shortName": "RegionNetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionNetworkFirewallPolicies_RemoveAssociation_async", - "title": "AcceleratorTypes removeAssociation Sample", - "origin": "API_DEFINITION", - "description": " Removes an association for the specified network firewall policy.", - "canonical": true, - "file": "region_network_firewall_policies.remove_association.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveAssociation", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPolicies.RemoveAssociation", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionNetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "RemoveAssociation", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPolicies.RemoveAssociation", - "service": { - "shortName": "RegionNetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionNetworkFirewallPolicies_RemoveRule_async", - "title": "AcceleratorTypes removeRule Sample", - "origin": "API_DEFINITION", - "description": " Deletes a rule of the specified priority.", - "canonical": true, - "file": "region_network_firewall_policies.remove_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveRule", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPolicies.RemoveRule", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": "TYPE_STRING" - }, - { - "name": "priority", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionNetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "RemoveRule", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPolicies.RemoveRule", - "service": { - "shortName": "RegionNetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionNetworkFirewallPolicies_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "region_network_firewall_policies.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPolicies.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_set_policy_request_resource", - "type": ".google.cloud.compute.v1beta.RegionSetPolicyRequest" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "RegionNetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPolicies.SetIamPolicy", - "service": { - "shortName": "RegionNetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionNetworkFirewallPolicies_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "region_network_firewall_policies.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPolicies.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "RegionNetworkFirewallPoliciesClient", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPoliciesClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPolicies.TestIamPermissions", - "service": { - "shortName": "RegionNetworkFirewallPolicies", - "fullName": "google.cloud.compute.v1beta.RegionNetworkFirewallPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionNetworkPolicies_AddAssociation_async", - "title": "AcceleratorTypes addAssociation Sample", - "origin": "API_DEFINITION", - "description": " Inserts an association for the specified network policy.", - "canonical": true, - "file": "region_network_policies.add_association.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddAssociation", - "fullName": "google.cloud.compute.v1beta.RegionNetworkPolicies.AddAssociation", - "async": true, - "parameters": [ - { - "name": "network_policy", - "type": "TYPE_STRING" - }, - { - "name": "network_policy_association_resource", - "type": ".google.cloud.compute.v1beta.NetworkPolicyAssociation" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionNetworkPoliciesClient", - "fullName": "google.cloud.compute.v1beta.RegionNetworkPoliciesClient" - }, - "method": { - "shortName": "AddAssociation", - "fullName": "google.cloud.compute.v1beta.RegionNetworkPolicies.AddAssociation", - "service": { - "shortName": "RegionNetworkPolicies", - "fullName": "google.cloud.compute.v1beta.RegionNetworkPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionNetworkPolicies_AddTrafficClassificationRule_async", - "title": "AcceleratorTypes addTrafficClassificationRule Sample", - "origin": "API_DEFINITION", - "description": " Inserts a rule into a network policy.", - "canonical": true, - "file": "region_network_policies.add_traffic_classification_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddTrafficClassificationRule", - "fullName": "google.cloud.compute.v1beta.RegionNetworkPolicies.AddTrafficClassificationRule", - "async": true, - "parameters": [ - { - "name": "network_policy", - "type": "TYPE_STRING" - }, - { - "name": "network_policy_traffic_classification_rule_resource", - "type": ".google.cloud.compute.v1beta.NetworkPolicyTrafficClassificationRule" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionNetworkPoliciesClient", - "fullName": "google.cloud.compute.v1beta.RegionNetworkPoliciesClient" - }, - "method": { - "shortName": "AddTrafficClassificationRule", - "fullName": "google.cloud.compute.v1beta.RegionNetworkPolicies.AddTrafficClassificationRule", - "service": { - "shortName": "RegionNetworkPolicies", - "fullName": "google.cloud.compute.v1beta.RegionNetworkPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionNetworkPolicies_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of network policies. To prevent failure, it's recommended that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "region_network_policies.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.RegionNetworkPolicies.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1beta.NetworkPolicyAggregatedList", - "client": { - "shortName": "RegionNetworkPoliciesClient", - "fullName": "google.cloud.compute.v1beta.RegionNetworkPoliciesClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.RegionNetworkPolicies.AggregatedList", - "service": { - "shortName": "RegionNetworkPolicies", - "fullName": "google.cloud.compute.v1beta.RegionNetworkPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionNetworkPolicies_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified policy.", - "canonical": true, - "file": "region_network_policies.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.RegionNetworkPolicies.Delete", - "async": true, - "parameters": [ - { - "name": "network_policy", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionNetworkPoliciesClient", - "fullName": "google.cloud.compute.v1beta.RegionNetworkPoliciesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.RegionNetworkPolicies.Delete", - "service": { - "shortName": "RegionNetworkPolicies", - "fullName": "google.cloud.compute.v1beta.RegionNetworkPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionNetworkPolicies_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified network policy.", - "canonical": true, - "file": "region_network_policies.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionNetworkPolicies.Get", - "async": true, - "parameters": [ - { - "name": "network_policy", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.NetworkPolicy", - "client": { - "shortName": "RegionNetworkPoliciesClient", - "fullName": "google.cloud.compute.v1beta.RegionNetworkPoliciesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionNetworkPolicies.Get", - "service": { - "shortName": "RegionNetworkPolicies", - "fullName": "google.cloud.compute.v1beta.RegionNetworkPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionNetworkPolicies_GetAssociation_async", - "title": "AcceleratorTypes getAssociation Sample", - "origin": "API_DEFINITION", - "description": " Gets an association with the specified name.", - "canonical": true, - "file": "region_network_policies.get_association.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAssociation", - "fullName": "google.cloud.compute.v1beta.RegionNetworkPolicies.GetAssociation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "network_policy", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.NetworkPolicyAssociation", - "client": { - "shortName": "RegionNetworkPoliciesClient", - "fullName": "google.cloud.compute.v1beta.RegionNetworkPoliciesClient" - }, - "method": { - "shortName": "GetAssociation", - "fullName": "google.cloud.compute.v1beta.RegionNetworkPolicies.GetAssociation", - "service": { - "shortName": "RegionNetworkPolicies", - "fullName": "google.cloud.compute.v1beta.RegionNetworkPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionNetworkPolicies_GetTrafficClassificationRule_async", - "title": "AcceleratorTypes getTrafficClassificationRule Sample", - "origin": "API_DEFINITION", - "description": " Gets a rule of the specified priority.", - "canonical": true, - "file": "region_network_policies.get_traffic_classification_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTrafficClassificationRule", - "fullName": "google.cloud.compute.v1beta.RegionNetworkPolicies.GetTrafficClassificationRule", - "async": true, - "parameters": [ - { - "name": "network_policy", - "type": "TYPE_STRING" - }, - { - "name": "priority", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.NetworkPolicyTrafficClassificationRule", - "client": { - "shortName": "RegionNetworkPoliciesClient", - "fullName": "google.cloud.compute.v1beta.RegionNetworkPoliciesClient" - }, - "method": { - "shortName": "GetTrafficClassificationRule", - "fullName": "google.cloud.compute.v1beta.RegionNetworkPolicies.GetTrafficClassificationRule", - "service": { - "shortName": "RegionNetworkPolicies", - "fullName": "google.cloud.compute.v1beta.RegionNetworkPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionNetworkPolicies_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a new policy in the specified project using the data included in the request.", - "canonical": true, - "file": "region_network_policies.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RegionNetworkPolicies.Insert", - "async": true, - "parameters": [ - { - "name": "network_policy_resource", - "type": ".google.cloud.compute.v1beta.NetworkPolicy" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionNetworkPoliciesClient", - "fullName": "google.cloud.compute.v1beta.RegionNetworkPoliciesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RegionNetworkPolicies.Insert", - "service": { - "shortName": "RegionNetworkPolicies", - "fullName": "google.cloud.compute.v1beta.RegionNetworkPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionNetworkPolicies_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Lists all the policies that have been configured for the specified project in the given region.", - "canonical": true, - "file": "region_network_policies.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionNetworkPolicies.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.NetworkPolicyList", - "client": { - "shortName": "RegionNetworkPoliciesClient", - "fullName": "google.cloud.compute.v1beta.RegionNetworkPoliciesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionNetworkPolicies.List", - "service": { - "shortName": "RegionNetworkPolicies", - "fullName": "google.cloud.compute.v1beta.RegionNetworkPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionNetworkPolicies_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patches the specified policy with the data included in the request.", - "canonical": true, - "file": "region_network_policies.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.RegionNetworkPolicies.Patch", - "async": true, - "parameters": [ - { - "name": "network_policy", - "type": "TYPE_STRING" - }, - { - "name": "network_policy_resource", - "type": ".google.cloud.compute.v1beta.NetworkPolicy" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionNetworkPoliciesClient", - "fullName": "google.cloud.compute.v1beta.RegionNetworkPoliciesClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.RegionNetworkPolicies.Patch", - "service": { - "shortName": "RegionNetworkPolicies", - "fullName": "google.cloud.compute.v1beta.RegionNetworkPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionNetworkPolicies_PatchTrafficClassificationRule_async", - "title": "AcceleratorTypes patchTrafficClassificationRule Sample", - "origin": "API_DEFINITION", - "description": " Patches a rule of the specified priority.", - "canonical": true, - "file": "region_network_policies.patch_traffic_classification_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PatchTrafficClassificationRule", - "fullName": "google.cloud.compute.v1beta.RegionNetworkPolicies.PatchTrafficClassificationRule", - "async": true, - "parameters": [ - { - "name": "network_policy", - "type": "TYPE_STRING" - }, - { - "name": "network_policy_traffic_classification_rule_resource", - "type": ".google.cloud.compute.v1beta.NetworkPolicyTrafficClassificationRule" - }, - { - "name": "priority", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionNetworkPoliciesClient", - "fullName": "google.cloud.compute.v1beta.RegionNetworkPoliciesClient" - }, - "method": { - "shortName": "PatchTrafficClassificationRule", - "fullName": "google.cloud.compute.v1beta.RegionNetworkPolicies.PatchTrafficClassificationRule", - "service": { - "shortName": "RegionNetworkPolicies", - "fullName": "google.cloud.compute.v1beta.RegionNetworkPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionNetworkPolicies_RemoveAssociation_async", - "title": "AcceleratorTypes removeAssociation Sample", - "origin": "API_DEFINITION", - "description": " Removes an association for the specified network policy.", - "canonical": true, - "file": "region_network_policies.remove_association.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveAssociation", - "fullName": "google.cloud.compute.v1beta.RegionNetworkPolicies.RemoveAssociation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "network_policy", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionNetworkPoliciesClient", - "fullName": "google.cloud.compute.v1beta.RegionNetworkPoliciesClient" - }, - "method": { - "shortName": "RemoveAssociation", - "fullName": "google.cloud.compute.v1beta.RegionNetworkPolicies.RemoveAssociation", - "service": { - "shortName": "RegionNetworkPolicies", - "fullName": "google.cloud.compute.v1beta.RegionNetworkPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionNetworkPolicies_RemoveTrafficClassificationRule_async", - "title": "AcceleratorTypes removeTrafficClassificationRule Sample", - "origin": "API_DEFINITION", - "description": " Deletes a rule of the specified priority.", - "canonical": true, - "file": "region_network_policies.remove_traffic_classification_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveTrafficClassificationRule", - "fullName": "google.cloud.compute.v1beta.RegionNetworkPolicies.RemoveTrafficClassificationRule", - "async": true, - "parameters": [ - { - "name": "network_policy", - "type": "TYPE_STRING" - }, - { - "name": "priority", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionNetworkPoliciesClient", - "fullName": "google.cloud.compute.v1beta.RegionNetworkPoliciesClient" - }, - "method": { - "shortName": "RemoveTrafficClassificationRule", - "fullName": "google.cloud.compute.v1beta.RegionNetworkPolicies.RemoveTrafficClassificationRule", - "service": { - "shortName": "RegionNetworkPolicies", - "fullName": "google.cloud.compute.v1beta.RegionNetworkPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionNotificationEndpoints_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of all NotificationEndpoint resources, regional and global, available to the specified project.", - "canonical": true, - "file": "region_notification_endpoints.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.RegionNotificationEndpoints.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1beta.NotificationEndpointAggregatedList", - "client": { - "shortName": "RegionNotificationEndpointsClient", - "fullName": "google.cloud.compute.v1beta.RegionNotificationEndpointsClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.RegionNotificationEndpoints.AggregatedList", - "service": { - "shortName": "RegionNotificationEndpoints", - "fullName": "google.cloud.compute.v1beta.RegionNotificationEndpoints" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionNotificationEndpoints_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified NotificationEndpoint in the given region", - "canonical": true, - "file": "region_notification_endpoints.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.RegionNotificationEndpoints.Delete", - "async": true, - "parameters": [ - { - "name": "notification_endpoint", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionNotificationEndpointsClient", - "fullName": "google.cloud.compute.v1beta.RegionNotificationEndpointsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.RegionNotificationEndpoints.Delete", - "service": { - "shortName": "RegionNotificationEndpoints", - "fullName": "google.cloud.compute.v1beta.RegionNotificationEndpoints" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionNotificationEndpoints_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified NotificationEndpoint resource in the given region.", - "canonical": true, - "file": "region_notification_endpoints.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionNotificationEndpoints.Get", - "async": true, - "parameters": [ - { - "name": "notification_endpoint", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.NotificationEndpoint", - "client": { - "shortName": "RegionNotificationEndpointsClient", - "fullName": "google.cloud.compute.v1beta.RegionNotificationEndpointsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionNotificationEndpoints.Get", - "service": { - "shortName": "RegionNotificationEndpoints", - "fullName": "google.cloud.compute.v1beta.RegionNotificationEndpoints" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionNotificationEndpoints_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Create a NotificationEndpoint in the specified project in the given region using the parameters that are included in the request.", - "canonical": true, - "file": "region_notification_endpoints.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RegionNotificationEndpoints.Insert", - "async": true, - "parameters": [ - { - "name": "notification_endpoint_resource", - "type": ".google.cloud.compute.v1beta.NotificationEndpoint" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionNotificationEndpointsClient", - "fullName": "google.cloud.compute.v1beta.RegionNotificationEndpointsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RegionNotificationEndpoints.Insert", - "service": { - "shortName": "RegionNotificationEndpoints", - "fullName": "google.cloud.compute.v1beta.RegionNotificationEndpoints" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionNotificationEndpoints_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Lists the NotificationEndpoints for a project in the given region.", - "canonical": true, - "file": "region_notification_endpoints.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionNotificationEndpoints.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.NotificationEndpointList", - "client": { - "shortName": "RegionNotificationEndpointsClient", - "fullName": "google.cloud.compute.v1beta.RegionNotificationEndpointsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionNotificationEndpoints.List", - "service": { - "shortName": "RegionNotificationEndpoints", - "fullName": "google.cloud.compute.v1beta.RegionNotificationEndpoints" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionNotificationEndpoints_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "region_notification_endpoints.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.RegionNotificationEndpoints.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "RegionNotificationEndpointsClient", - "fullName": "google.cloud.compute.v1beta.RegionNotificationEndpointsClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.RegionNotificationEndpoints.TestIamPermissions", - "service": { - "shortName": "RegionNotificationEndpoints", - "fullName": "google.cloud.compute.v1beta.RegionNotificationEndpoints" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionOperations_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified region-specific Operations resource.", - "canonical": true, - "file": "region_operations.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.RegionOperations.Delete", - "async": true, - "parameters": [ - { - "name": "operation", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.DeleteRegionOperationResponse", - "client": { - "shortName": "RegionOperationsClient", - "fullName": "google.cloud.compute.v1beta.RegionOperationsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.RegionOperations.Delete", - "service": { - "shortName": "RegionOperations", - "fullName": "google.cloud.compute.v1beta.RegionOperations" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionOperations_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified region-specific Operations resource.", - "canonical": true, - "file": "region_operations.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionOperations.Get", - "async": true, - "parameters": [ - { - "name": "operation", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionOperationsClient", - "fullName": "google.cloud.compute.v1beta.RegionOperationsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionOperations.Get", - "service": { - "shortName": "RegionOperations", - "fullName": "google.cloud.compute.v1beta.RegionOperations" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionOperations_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of Operation resources contained within the specified region.", - "canonical": true, - "file": "region_operations.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionOperations.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.OperationList", - "client": { - "shortName": "RegionOperationsClient", - "fullName": "google.cloud.compute.v1beta.RegionOperationsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionOperations.List", - "service": { - "shortName": "RegionOperations", - "fullName": "google.cloud.compute.v1beta.RegionOperations" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionOperations_Wait_async", - "title": "AcceleratorTypes wait Sample", - "origin": "API_DEFINITION", - "description": " Waits for the specified Operation resource to return as `DONE` or for the request to approach the 2 minute deadline, and retrieves the specified Operation resource. This method differs from the `GET` method in that it waits for no more than the default deadline (2 minutes) and then returns the current state of the operation, which might be `DONE` or still in progress. This method is called on a best-effort basis. Specifically: - In uncommon cases, when the server is overloaded, the request might return before the default deadline is reached, or might return after zero seconds. - If the default deadline is reached, there is no guarantee that the operation is actually done when the method returns. Be prepared to retry if the operation is not `DONE`.", - "canonical": true, - "file": "region_operations.wait.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Wait", - "fullName": "google.cloud.compute.v1beta.RegionOperations.Wait", - "async": true, - "parameters": [ - { - "name": "operation", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionOperationsClient", - "fullName": "google.cloud.compute.v1beta.RegionOperationsClient" - }, - "method": { - "shortName": "Wait", - "fullName": "google.cloud.compute.v1beta.RegionOperations.Wait", - "service": { - "shortName": "RegionOperations", - "fullName": "google.cloud.compute.v1beta.RegionOperations" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Regions_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified Region resource. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the `quotas` field). To exclude one or more fields, set your request's `fields` query parameter to only include the fields you need. For example, to only include the `id` and `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request. This method fails if the quota information is unavailable for the region and if the organization policy constraint compute.requireBasicQuotaInResponse is enforced. This constraint, when enforced, disables the fail-open behaviour when quota information (the `items.quotas` field) is unavailable for the region. It is recommended to use the default setting for the constraint unless your application requires the fail-closed behaviour for this method.", - "canonical": true, - "file": "regions.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.Regions.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Region", - "client": { - "shortName": "RegionsClient", - "fullName": "google.cloud.compute.v1beta.RegionsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.Regions.Get", - "service": { - "shortName": "Regions", - "fullName": "google.cloud.compute.v1beta.Regions" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Regions_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of region resources available to the specified project. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field mask. This practice is especially recommended for unused quota information (the `items.quotas` field). To exclude one or more fields, set your request's `fields` query parameter to only include the fields you need. For example, to only include the `id` and `selfLink` fields, add the query parameter `?fields=id,selfLink` to your request. This method fails if the quota information is unavailable for the region and if the organization policy constraint compute.requireBasicQuotaInResponse is enforced. This constraint, when enforced, disables the fail-open behaviour when quota information (the `items.quotas` field) is unavailable for the region. It is recommended to use the default setting for the constraint unless your application requires the fail-closed behaviour for this method.", - "canonical": true, - "file": "regions.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.Regions.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.RegionList", - "client": { - "shortName": "RegionsClient", - "fullName": "google.cloud.compute.v1beta.RegionsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.Regions.List", - "service": { - "shortName": "Regions", - "fullName": "google.cloud.compute.v1beta.Regions" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionSecurityPolicies_AddRule_async", - "title": "AcceleratorTypes addRule Sample", - "origin": "API_DEFINITION", - "description": " Inserts a rule into a security policy.", - "canonical": true, - "file": "region_security_policies.add_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddRule", - "fullName": "google.cloud.compute.v1beta.RegionSecurityPolicies.AddRule", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "security_policy", - "type": "TYPE_STRING" - }, - { - "name": "security_policy_rule_resource", - "type": ".google.cloud.compute.v1beta.SecurityPolicyRule" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionSecurityPoliciesClient", - "fullName": "google.cloud.compute.v1beta.RegionSecurityPoliciesClient" - }, - "method": { - "shortName": "AddRule", - "fullName": "google.cloud.compute.v1beta.RegionSecurityPolicies.AddRule", - "service": { - "shortName": "RegionSecurityPolicies", - "fullName": "google.cloud.compute.v1beta.RegionSecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionSecurityPolicies_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified policy.", - "canonical": true, - "file": "region_security_policies.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.RegionSecurityPolicies.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "security_policy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionSecurityPoliciesClient", - "fullName": "google.cloud.compute.v1beta.RegionSecurityPoliciesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.RegionSecurityPolicies.Delete", - "service": { - "shortName": "RegionSecurityPolicies", - "fullName": "google.cloud.compute.v1beta.RegionSecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionSecurityPolicies_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " List all of the ordered rules present in a single specified policy.", - "canonical": true, - "file": "region_security_policies.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionSecurityPolicies.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "security_policy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.SecurityPolicy", - "client": { - "shortName": "RegionSecurityPoliciesClient", - "fullName": "google.cloud.compute.v1beta.RegionSecurityPoliciesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionSecurityPolicies.Get", - "service": { - "shortName": "RegionSecurityPolicies", - "fullName": "google.cloud.compute.v1beta.RegionSecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionSecurityPolicies_GetRule_async", - "title": "AcceleratorTypes getRule Sample", - "origin": "API_DEFINITION", - "description": " Gets a rule at the specified priority.", - "canonical": true, - "file": "region_security_policies.get_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRule", - "fullName": "google.cloud.compute.v1beta.RegionSecurityPolicies.GetRule", - "async": true, - "parameters": [ - { - "name": "priority", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "security_policy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.SecurityPolicyRule", - "client": { - "shortName": "RegionSecurityPoliciesClient", - "fullName": "google.cloud.compute.v1beta.RegionSecurityPoliciesClient" - }, - "method": { - "shortName": "GetRule", - "fullName": "google.cloud.compute.v1beta.RegionSecurityPolicies.GetRule", - "service": { - "shortName": "RegionSecurityPolicies", - "fullName": "google.cloud.compute.v1beta.RegionSecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionSecurityPolicies_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a new policy in the specified project using the data included in the request.", - "canonical": true, - "file": "region_security_policies.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RegionSecurityPolicies.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "security_policy_resource", - "type": ".google.cloud.compute.v1beta.SecurityPolicy" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionSecurityPoliciesClient", - "fullName": "google.cloud.compute.v1beta.RegionSecurityPoliciesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RegionSecurityPolicies.Insert", - "service": { - "shortName": "RegionSecurityPolicies", - "fullName": "google.cloud.compute.v1beta.RegionSecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionSecurityPolicies_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " List all the policies that have been configured for the specified project and region.", - "canonical": true, - "file": "region_security_policies.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionSecurityPolicies.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.SecurityPolicyList", - "client": { - "shortName": "RegionSecurityPoliciesClient", - "fullName": "google.cloud.compute.v1beta.RegionSecurityPoliciesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionSecurityPolicies.List", - "service": { - "shortName": "RegionSecurityPolicies", - "fullName": "google.cloud.compute.v1beta.RegionSecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionSecurityPolicies_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patches the specified policy with the data included in the request. To clear fields in the policy, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.", - "canonical": true, - "file": "region_security_policies.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.RegionSecurityPolicies.Patch", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "security_policy", - "type": "TYPE_STRING" - }, - { - "name": "security_policy_resource", - "type": ".google.cloud.compute.v1beta.SecurityPolicy" - }, - { - "name": "update_mask", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionSecurityPoliciesClient", - "fullName": "google.cloud.compute.v1beta.RegionSecurityPoliciesClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.RegionSecurityPolicies.Patch", - "service": { - "shortName": "RegionSecurityPolicies", - "fullName": "google.cloud.compute.v1beta.RegionSecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionSecurityPolicies_PatchRule_async", - "title": "AcceleratorTypes patchRule Sample", - "origin": "API_DEFINITION", - "description": " Patches a rule at the specified priority. To clear fields in the rule, leave the fields empty and specify them in the updateMask.", - "canonical": true, - "file": "region_security_policies.patch_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PatchRule", - "fullName": "google.cloud.compute.v1beta.RegionSecurityPolicies.PatchRule", - "async": true, - "parameters": [ - { - "name": "priority", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "security_policy", - "type": "TYPE_STRING" - }, - { - "name": "security_policy_rule_resource", - "type": ".google.cloud.compute.v1beta.SecurityPolicyRule" - }, - { - "name": "update_mask", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionSecurityPoliciesClient", - "fullName": "google.cloud.compute.v1beta.RegionSecurityPoliciesClient" - }, - "method": { - "shortName": "PatchRule", - "fullName": "google.cloud.compute.v1beta.RegionSecurityPolicies.PatchRule", - "service": { - "shortName": "RegionSecurityPolicies", - "fullName": "google.cloud.compute.v1beta.RegionSecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionSecurityPolicies_RemoveRule_async", - "title": "AcceleratorTypes removeRule Sample", - "origin": "API_DEFINITION", - "description": " Deletes a rule at the specified priority.", - "canonical": true, - "file": "region_security_policies.remove_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveRule", - "fullName": "google.cloud.compute.v1beta.RegionSecurityPolicies.RemoveRule", - "async": true, - "parameters": [ - { - "name": "priority", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "security_policy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionSecurityPoliciesClient", - "fullName": "google.cloud.compute.v1beta.RegionSecurityPoliciesClient" - }, - "method": { - "shortName": "RemoveRule", - "fullName": "google.cloud.compute.v1beta.RegionSecurityPolicies.RemoveRule", - "service": { - "shortName": "RegionSecurityPolicies", - "fullName": "google.cloud.compute.v1beta.RegionSecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionSecurityPolicies_SetLabels_async", - "title": "AcceleratorTypes setLabels Sample", - "origin": "API_DEFINITION", - "description": " Sets the labels on a security policy. To learn more about labels, read the Labeling Resources documentation.", - "canonical": true, - "file": "region_security_policies.set_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1beta.RegionSecurityPolicies.SetLabels", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_set_labels_request_resource", - "type": ".google.cloud.compute.v1beta.RegionSetLabelsRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionSecurityPoliciesClient", - "fullName": "google.cloud.compute.v1beta.RegionSecurityPoliciesClient" - }, - "method": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1beta.RegionSecurityPolicies.SetLabels", - "service": { - "shortName": "RegionSecurityPolicies", - "fullName": "google.cloud.compute.v1beta.RegionSecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionSnapshots_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified Snapshot resource. Keep in mind that deleting a single snapshot might not necessarily delete all the data on that snapshot. If any data on the snapshot that is marked for deletion is needed for subsequent snapshots, the data will be moved to the next corresponding snapshot. For more information, seeDeleting snapshots.", - "canonical": true, - "file": "region_snapshots.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.RegionSnapshots.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "snapshot", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionSnapshotsClient", - "fullName": "google.cloud.compute.v1beta.RegionSnapshotsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.RegionSnapshots.Delete", - "service": { - "shortName": "RegionSnapshots", - "fullName": "google.cloud.compute.v1beta.RegionSnapshots" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionSnapshots_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified Snapshot resource.", - "canonical": true, - "file": "region_snapshots.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionSnapshots.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "snapshot", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Snapshot", - "client": { - "shortName": "RegionSnapshotsClient", - "fullName": "google.cloud.compute.v1beta.RegionSnapshotsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionSnapshots.Get", - "service": { - "shortName": "RegionSnapshots", - "fullName": "google.cloud.compute.v1beta.RegionSnapshots" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionSnapshots_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "region_snapshots.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.RegionSnapshots.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "RegionSnapshotsClient", - "fullName": "google.cloud.compute.v1beta.RegionSnapshotsClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.RegionSnapshots.GetIamPolicy", - "service": { - "shortName": "RegionSnapshots", - "fullName": "google.cloud.compute.v1beta.RegionSnapshots" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionSnapshots_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a snapshot in the specified region using the data included in the request.", - "canonical": true, - "file": "region_snapshots.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RegionSnapshots.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "snapshot_resource", - "type": ".google.cloud.compute.v1beta.Snapshot" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionSnapshotsClient", - "fullName": "google.cloud.compute.v1beta.RegionSnapshotsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RegionSnapshots.Insert", - "service": { - "shortName": "RegionSnapshots", - "fullName": "google.cloud.compute.v1beta.RegionSnapshots" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionSnapshots_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of Snapshot resources contained within the specified region.", - "canonical": true, - "file": "region_snapshots.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionSnapshots.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.SnapshotList", - "client": { - "shortName": "RegionSnapshotsClient", - "fullName": "google.cloud.compute.v1beta.RegionSnapshotsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionSnapshots.List", - "service": { - "shortName": "RegionSnapshots", - "fullName": "google.cloud.compute.v1beta.RegionSnapshots" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionSnapshots_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "region_snapshots.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.RegionSnapshots.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_set_policy_request_resource", - "type": ".google.cloud.compute.v1beta.RegionSetPolicyRequest" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "RegionSnapshotsClient", - "fullName": "google.cloud.compute.v1beta.RegionSnapshotsClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.RegionSnapshots.SetIamPolicy", - "service": { - "shortName": "RegionSnapshots", - "fullName": "google.cloud.compute.v1beta.RegionSnapshots" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionSnapshots_SetLabels_async", - "title": "AcceleratorTypes setLabels Sample", - "origin": "API_DEFINITION", - "description": " Sets the labels on a regional snapshot. To learn more about labels, read the Labeling Resources documentation.", - "canonical": true, - "file": "region_snapshots.set_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1beta.RegionSnapshots.SetLabels", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_set_labels_request_resource", - "type": ".google.cloud.compute.v1beta.RegionSetLabelsRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionSnapshotsClient", - "fullName": "google.cloud.compute.v1beta.RegionSnapshotsClient" - }, - "method": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1beta.RegionSnapshots.SetLabels", - "service": { - "shortName": "RegionSnapshots", - "fullName": "google.cloud.compute.v1beta.RegionSnapshots" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionSnapshots_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "region_snapshots.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.RegionSnapshots.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "RegionSnapshotsClient", - "fullName": "google.cloud.compute.v1beta.RegionSnapshotsClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.RegionSnapshots.TestIamPermissions", - "service": { - "shortName": "RegionSnapshots", - "fullName": "google.cloud.compute.v1beta.RegionSnapshots" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionSnapshots_UpdateKmsKey_async", - "title": "AcceleratorTypes updateKmsKey Sample", - "origin": "API_DEFINITION", - "description": " Rotates the customer-managed encryption key to the latest version for the specified snapshot.", - "canonical": true, - "file": "region_snapshots.update_kms_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateKmsKey", - "fullName": "google.cloud.compute.v1beta.RegionSnapshots.UpdateKmsKey", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_snapshot_update_kms_key_request_resource", - "type": ".google.cloud.compute.v1beta.RegionSnapshotUpdateKmsKeyRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "snapshot", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionSnapshotsClient", - "fullName": "google.cloud.compute.v1beta.RegionSnapshotsClient" - }, - "method": { - "shortName": "UpdateKmsKey", - "fullName": "google.cloud.compute.v1beta.RegionSnapshots.UpdateKmsKey", - "service": { - "shortName": "RegionSnapshots", - "fullName": "google.cloud.compute.v1beta.RegionSnapshots" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionSnapshotSettings_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Get region snapshot settings.", - "canonical": true, - "file": "region_snapshot_settings.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionSnapshotSettings.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.SnapshotSettings", - "client": { - "shortName": "RegionSnapshotSettingsClient", - "fullName": "google.cloud.compute.v1beta.RegionSnapshotSettingsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionSnapshotSettings.Get", - "service": { - "shortName": "RegionSnapshotSettings", - "fullName": "google.cloud.compute.v1beta.RegionSnapshotSettings" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionSnapshotSettings_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patch region snapshot settings.", - "canonical": true, - "file": "region_snapshot_settings.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.RegionSnapshotSettings.Patch", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "snapshot_settings_resource", - "type": ".google.cloud.compute.v1beta.SnapshotSettings" - }, - { - "name": "update_mask", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionSnapshotSettingsClient", - "fullName": "google.cloud.compute.v1beta.RegionSnapshotSettingsClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.RegionSnapshotSettings.Patch", - "service": { - "shortName": "RegionSnapshotSettings", - "fullName": "google.cloud.compute.v1beta.RegionSnapshotSettings" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionSslCertificates_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified SslCertificate resource in the region.", - "canonical": true, - "file": "region_ssl_certificates.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.RegionSslCertificates.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "ssl_certificate", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionSslCertificatesClient", - "fullName": "google.cloud.compute.v1beta.RegionSslCertificatesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.RegionSslCertificates.Delete", - "service": { - "shortName": "RegionSslCertificates", - "fullName": "google.cloud.compute.v1beta.RegionSslCertificates" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionSslCertificates_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified SslCertificate resource in the specified region. Get a list of available SSL certificates by making a list() request.", - "canonical": true, - "file": "region_ssl_certificates.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionSslCertificates.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "ssl_certificate", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.SslCertificate", - "client": { - "shortName": "RegionSslCertificatesClient", - "fullName": "google.cloud.compute.v1beta.RegionSslCertificatesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionSslCertificates.Get", - "service": { - "shortName": "RegionSslCertificates", - "fullName": "google.cloud.compute.v1beta.RegionSslCertificates" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionSslCertificates_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a SslCertificate resource in the specified project and region using the data included in the request", - "canonical": true, - "file": "region_ssl_certificates.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RegionSslCertificates.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "ssl_certificate_resource", - "type": ".google.cloud.compute.v1beta.SslCertificate" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionSslCertificatesClient", - "fullName": "google.cloud.compute.v1beta.RegionSslCertificatesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RegionSslCertificates.Insert", - "service": { - "shortName": "RegionSslCertificates", - "fullName": "google.cloud.compute.v1beta.RegionSslCertificates" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionSslCertificates_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of SslCertificate resources available to the specified project in the specified region.", - "canonical": true, - "file": "region_ssl_certificates.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionSslCertificates.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.SslCertificateList", - "client": { - "shortName": "RegionSslCertificatesClient", - "fullName": "google.cloud.compute.v1beta.RegionSslCertificatesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionSslCertificates.List", - "service": { - "shortName": "RegionSslCertificates", - "fullName": "google.cloud.compute.v1beta.RegionSslCertificates" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionSslCertificates_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource and region.", - "canonical": true, - "file": "region_ssl_certificates.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.RegionSslCertificates.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "RegionSslCertificatesClient", - "fullName": "google.cloud.compute.v1beta.RegionSslCertificatesClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.RegionSslCertificates.TestIamPermissions", - "service": { - "shortName": "RegionSslCertificates", - "fullName": "google.cloud.compute.v1beta.RegionSslCertificates" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionSslPolicies_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified SSL policy. The SSL policy resource can be deleted only if it is not in use by any TargetHttpsProxy or TargetSslProxy resources.", - "canonical": true, - "file": "region_ssl_policies.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.RegionSslPolicies.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "ssl_policy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionSslPoliciesClient", - "fullName": "google.cloud.compute.v1beta.RegionSslPoliciesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.RegionSslPolicies.Delete", - "service": { - "shortName": "RegionSslPolicies", - "fullName": "google.cloud.compute.v1beta.RegionSslPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionSslPolicies_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Lists all of the ordered rules present in a single specified policy.", - "canonical": true, - "file": "region_ssl_policies.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionSslPolicies.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "ssl_policy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.SslPolicy", - "client": { - "shortName": "RegionSslPoliciesClient", - "fullName": "google.cloud.compute.v1beta.RegionSslPoliciesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionSslPolicies.Get", - "service": { - "shortName": "RegionSslPolicies", - "fullName": "google.cloud.compute.v1beta.RegionSslPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionSslPolicies_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a new policy in the specified project and region using the data included in the request.", - "canonical": true, - "file": "region_ssl_policies.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RegionSslPolicies.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "ssl_policy_resource", - "type": ".google.cloud.compute.v1beta.SslPolicy" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionSslPoliciesClient", - "fullName": "google.cloud.compute.v1beta.RegionSslPoliciesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RegionSslPolicies.Insert", - "service": { - "shortName": "RegionSslPolicies", - "fullName": "google.cloud.compute.v1beta.RegionSslPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionSslPolicies_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Lists all the SSL policies that have been configured for the specified project and region.", - "canonical": true, - "file": "region_ssl_policies.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionSslPolicies.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.SslPoliciesList", - "client": { - "shortName": "RegionSslPoliciesClient", - "fullName": "google.cloud.compute.v1beta.RegionSslPoliciesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionSslPolicies.List", - "service": { - "shortName": "RegionSslPolicies", - "fullName": "google.cloud.compute.v1beta.RegionSslPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionSslPolicies_ListAvailableFeatures_async", - "title": "AcceleratorTypes listAvailableFeatures Sample", - "origin": "API_DEFINITION", - "description": " Lists all features that can be specified in the SSL policy when using custom profile.", - "canonical": true, - "file": "region_ssl_policies.list_available_features.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 143, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAvailableFeatures", - "fullName": "google.cloud.compute.v1beta.RegionSslPolicies.ListAvailableFeatures", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.SslPoliciesListAvailableFeaturesResponse", - "client": { - "shortName": "RegionSslPoliciesClient", - "fullName": "google.cloud.compute.v1beta.RegionSslPoliciesClient" - }, - "method": { - "shortName": "ListAvailableFeatures", - "fullName": "google.cloud.compute.v1beta.RegionSslPolicies.ListAvailableFeatures", - "service": { - "shortName": "RegionSslPolicies", - "fullName": "google.cloud.compute.v1beta.RegionSslPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionSslPolicies_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patches the specified SSL policy with the data included in the request.", - "canonical": true, - "file": "region_ssl_policies.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.RegionSslPolicies.Patch", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "ssl_policy", - "type": "TYPE_STRING" - }, - { - "name": "ssl_policy_resource", - "type": ".google.cloud.compute.v1beta.SslPolicy" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionSslPoliciesClient", - "fullName": "google.cloud.compute.v1beta.RegionSslPoliciesClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.RegionSslPolicies.Patch", - "service": { - "shortName": "RegionSslPolicies", - "fullName": "google.cloud.compute.v1beta.RegionSslPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionSslPolicies_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "region_ssl_policies.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.RegionSslPolicies.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "RegionSslPoliciesClient", - "fullName": "google.cloud.compute.v1beta.RegionSslPoliciesClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.RegionSslPolicies.TestIamPermissions", - "service": { - "shortName": "RegionSslPolicies", - "fullName": "google.cloud.compute.v1beta.RegionSslPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionTargetHttpProxies_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified TargetHttpProxy resource.", - "canonical": true, - "file": "region_target_http_proxies.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.RegionTargetHttpProxies.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_http_proxy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionTargetHttpProxiesClient", - "fullName": "google.cloud.compute.v1beta.RegionTargetHttpProxiesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.RegionTargetHttpProxies.Delete", - "service": { - "shortName": "RegionTargetHttpProxies", - "fullName": "google.cloud.compute.v1beta.RegionTargetHttpProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionTargetHttpProxies_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified TargetHttpProxy resource in the specified region.", - "canonical": true, - "file": "region_target_http_proxies.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionTargetHttpProxies.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "target_http_proxy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.TargetHttpProxy", - "client": { - "shortName": "RegionTargetHttpProxiesClient", - "fullName": "google.cloud.compute.v1beta.RegionTargetHttpProxiesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionTargetHttpProxies.Get", - "service": { - "shortName": "RegionTargetHttpProxies", - "fullName": "google.cloud.compute.v1beta.RegionTargetHttpProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionTargetHttpProxies_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a TargetHttpProxy resource in the specified project and region using the data included in the request.", - "canonical": true, - "file": "region_target_http_proxies.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RegionTargetHttpProxies.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_http_proxy_resource", - "type": ".google.cloud.compute.v1beta.TargetHttpProxy" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionTargetHttpProxiesClient", - "fullName": "google.cloud.compute.v1beta.RegionTargetHttpProxiesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RegionTargetHttpProxies.Insert", - "service": { - "shortName": "RegionTargetHttpProxies", - "fullName": "google.cloud.compute.v1beta.RegionTargetHttpProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionTargetHttpProxies_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of TargetHttpProxy resources available to the specified project in the specified region.", - "canonical": true, - "file": "region_target_http_proxies.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionTargetHttpProxies.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.TargetHttpProxyList", - "client": { - "shortName": "RegionTargetHttpProxiesClient", - "fullName": "google.cloud.compute.v1beta.RegionTargetHttpProxiesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionTargetHttpProxies.List", - "service": { - "shortName": "RegionTargetHttpProxies", - "fullName": "google.cloud.compute.v1beta.RegionTargetHttpProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionTargetHttpProxies_SetUrlMap_async", - "title": "AcceleratorTypes setUrlMap Sample", - "origin": "API_DEFINITION", - "description": " Changes the URL map for TargetHttpProxy.", - "canonical": true, - "file": "region_target_http_proxies.set_url_map.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetUrlMap", - "fullName": "google.cloud.compute.v1beta.RegionTargetHttpProxies.SetUrlMap", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_http_proxy", - "type": "TYPE_STRING" - }, - { - "name": "url_map_reference_resource", - "type": ".google.cloud.compute.v1beta.UrlMapReference" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionTargetHttpProxiesClient", - "fullName": "google.cloud.compute.v1beta.RegionTargetHttpProxiesClient" - }, - "method": { - "shortName": "SetUrlMap", - "fullName": "google.cloud.compute.v1beta.RegionTargetHttpProxies.SetUrlMap", - "service": { - "shortName": "RegionTargetHttpProxies", - "fullName": "google.cloud.compute.v1beta.RegionTargetHttpProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionTargetHttpProxies_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "region_target_http_proxies.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.RegionTargetHttpProxies.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "RegionTargetHttpProxiesClient", - "fullName": "google.cloud.compute.v1beta.RegionTargetHttpProxiesClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.RegionTargetHttpProxies.TestIamPermissions", - "service": { - "shortName": "RegionTargetHttpProxies", - "fullName": "google.cloud.compute.v1beta.RegionTargetHttpProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionTargetHttpsProxies_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified TargetHttpsProxy resource.", - "canonical": true, - "file": "region_target_https_proxies.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.RegionTargetHttpsProxies.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_https_proxy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionTargetHttpsProxiesClient", - "fullName": "google.cloud.compute.v1beta.RegionTargetHttpsProxiesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.RegionTargetHttpsProxies.Delete", - "service": { - "shortName": "RegionTargetHttpsProxies", - "fullName": "google.cloud.compute.v1beta.RegionTargetHttpsProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionTargetHttpsProxies_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified TargetHttpsProxy resource in the specified region.", - "canonical": true, - "file": "region_target_https_proxies.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionTargetHttpsProxies.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "target_https_proxy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.TargetHttpsProxy", - "client": { - "shortName": "RegionTargetHttpsProxiesClient", - "fullName": "google.cloud.compute.v1beta.RegionTargetHttpsProxiesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionTargetHttpsProxies.Get", - "service": { - "shortName": "RegionTargetHttpsProxies", - "fullName": "google.cloud.compute.v1beta.RegionTargetHttpsProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionTargetHttpsProxies_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a TargetHttpsProxy resource in the specified project and region using the data included in the request.", - "canonical": true, - "file": "region_target_https_proxies.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RegionTargetHttpsProxies.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_https_proxy_resource", - "type": ".google.cloud.compute.v1beta.TargetHttpsProxy" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionTargetHttpsProxiesClient", - "fullName": "google.cloud.compute.v1beta.RegionTargetHttpsProxiesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RegionTargetHttpsProxies.Insert", - "service": { - "shortName": "RegionTargetHttpsProxies", - "fullName": "google.cloud.compute.v1beta.RegionTargetHttpsProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionTargetHttpsProxies_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of TargetHttpsProxy resources available to the specified project in the specified region.", - "canonical": true, - "file": "region_target_https_proxies.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionTargetHttpsProxies.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.TargetHttpsProxyList", - "client": { - "shortName": "RegionTargetHttpsProxiesClient", - "fullName": "google.cloud.compute.v1beta.RegionTargetHttpsProxiesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionTargetHttpsProxies.List", - "service": { - "shortName": "RegionTargetHttpsProxies", - "fullName": "google.cloud.compute.v1beta.RegionTargetHttpsProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionTargetHttpsProxies_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patches the specified regional TargetHttpsProxy resource with the data included in the request. This method supports PATCH semantics and usesJSON merge patch format and processing rules.", - "canonical": true, - "file": "region_target_https_proxies.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.RegionTargetHttpsProxies.Patch", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_https_proxy", - "type": "TYPE_STRING" - }, - { - "name": "target_https_proxy_resource", - "type": ".google.cloud.compute.v1beta.TargetHttpsProxy" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionTargetHttpsProxiesClient", - "fullName": "google.cloud.compute.v1beta.RegionTargetHttpsProxiesClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.RegionTargetHttpsProxies.Patch", - "service": { - "shortName": "RegionTargetHttpsProxies", - "fullName": "google.cloud.compute.v1beta.RegionTargetHttpsProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionTargetHttpsProxies_SetSslCertificates_async", - "title": "AcceleratorTypes setSslCertificates Sample", - "origin": "API_DEFINITION", - "description": " Replaces SslCertificates for TargetHttpsProxy.", - "canonical": true, - "file": "region_target_https_proxies.set_ssl_certificates.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetSslCertificates", - "fullName": "google.cloud.compute.v1beta.RegionTargetHttpsProxies.SetSslCertificates", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_target_https_proxies_set_ssl_certificates_request_resource", - "type": ".google.cloud.compute.v1beta.RegionTargetHttpsProxiesSetSslCertificatesRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_https_proxy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionTargetHttpsProxiesClient", - "fullName": "google.cloud.compute.v1beta.RegionTargetHttpsProxiesClient" - }, - "method": { - "shortName": "SetSslCertificates", - "fullName": "google.cloud.compute.v1beta.RegionTargetHttpsProxies.SetSslCertificates", - "service": { - "shortName": "RegionTargetHttpsProxies", - "fullName": "google.cloud.compute.v1beta.RegionTargetHttpsProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionTargetHttpsProxies_SetUrlMap_async", - "title": "AcceleratorTypes setUrlMap Sample", - "origin": "API_DEFINITION", - "description": " Changes the URL map for TargetHttpsProxy.", - "canonical": true, - "file": "region_target_https_proxies.set_url_map.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetUrlMap", - "fullName": "google.cloud.compute.v1beta.RegionTargetHttpsProxies.SetUrlMap", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_https_proxy", - "type": "TYPE_STRING" - }, - { - "name": "url_map_reference_resource", - "type": ".google.cloud.compute.v1beta.UrlMapReference" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionTargetHttpsProxiesClient", - "fullName": "google.cloud.compute.v1beta.RegionTargetHttpsProxiesClient" - }, - "method": { - "shortName": "SetUrlMap", - "fullName": "google.cloud.compute.v1beta.RegionTargetHttpsProxies.SetUrlMap", - "service": { - "shortName": "RegionTargetHttpsProxies", - "fullName": "google.cloud.compute.v1beta.RegionTargetHttpsProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionTargetHttpsProxies_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "region_target_https_proxies.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.RegionTargetHttpsProxies.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "RegionTargetHttpsProxiesClient", - "fullName": "google.cloud.compute.v1beta.RegionTargetHttpsProxiesClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.RegionTargetHttpsProxies.TestIamPermissions", - "service": { - "shortName": "RegionTargetHttpsProxies", - "fullName": "google.cloud.compute.v1beta.RegionTargetHttpsProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionTargetTcpProxies_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified TargetTcpProxy resource.", - "canonical": true, - "file": "region_target_tcp_proxies.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.RegionTargetTcpProxies.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_tcp_proxy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionTargetTcpProxiesClient", - "fullName": "google.cloud.compute.v1beta.RegionTargetTcpProxiesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.RegionTargetTcpProxies.Delete", - "service": { - "shortName": "RegionTargetTcpProxies", - "fullName": "google.cloud.compute.v1beta.RegionTargetTcpProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionTargetTcpProxies_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified TargetTcpProxy resource.", - "canonical": true, - "file": "region_target_tcp_proxies.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionTargetTcpProxies.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "target_tcp_proxy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.TargetTcpProxy", - "client": { - "shortName": "RegionTargetTcpProxiesClient", - "fullName": "google.cloud.compute.v1beta.RegionTargetTcpProxiesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionTargetTcpProxies.Get", - "service": { - "shortName": "RegionTargetTcpProxies", - "fullName": "google.cloud.compute.v1beta.RegionTargetTcpProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionTargetTcpProxies_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a TargetTcpProxy resource in the specified project and region using the data included in the request.", - "canonical": true, - "file": "region_target_tcp_proxies.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RegionTargetTcpProxies.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_tcp_proxy_resource", - "type": ".google.cloud.compute.v1beta.TargetTcpProxy" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionTargetTcpProxiesClient", - "fullName": "google.cloud.compute.v1beta.RegionTargetTcpProxiesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RegionTargetTcpProxies.Insert", - "service": { - "shortName": "RegionTargetTcpProxies", - "fullName": "google.cloud.compute.v1beta.RegionTargetTcpProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionTargetTcpProxies_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of TargetTcpProxy resources available to the specified project in a given region.", - "canonical": true, - "file": "region_target_tcp_proxies.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionTargetTcpProxies.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.TargetTcpProxyList", - "client": { - "shortName": "RegionTargetTcpProxiesClient", - "fullName": "google.cloud.compute.v1beta.RegionTargetTcpProxiesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionTargetTcpProxies.List", - "service": { - "shortName": "RegionTargetTcpProxies", - "fullName": "google.cloud.compute.v1beta.RegionTargetTcpProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionTargetTcpProxies_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "region_target_tcp_proxies.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.RegionTargetTcpProxies.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "RegionTargetTcpProxiesClient", - "fullName": "google.cloud.compute.v1beta.RegionTargetTcpProxiesClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.RegionTargetTcpProxies.TestIamPermissions", - "service": { - "shortName": "RegionTargetTcpProxies", - "fullName": "google.cloud.compute.v1beta.RegionTargetTcpProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionUrlMaps_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified UrlMap resource.", - "canonical": true, - "file": "region_url_maps.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.RegionUrlMaps.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "url_map", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionUrlMapsClient", - "fullName": "google.cloud.compute.v1beta.RegionUrlMapsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.RegionUrlMaps.Delete", - "service": { - "shortName": "RegionUrlMaps", - "fullName": "google.cloud.compute.v1beta.RegionUrlMaps" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionUrlMaps_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified UrlMap resource.", - "canonical": true, - "file": "region_url_maps.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionUrlMaps.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "url_map", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.UrlMap", - "client": { - "shortName": "RegionUrlMapsClient", - "fullName": "google.cloud.compute.v1beta.RegionUrlMapsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RegionUrlMaps.Get", - "service": { - "shortName": "RegionUrlMaps", - "fullName": "google.cloud.compute.v1beta.RegionUrlMaps" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionUrlMaps_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a UrlMap resource in the specified project using the data included in the request.", - "canonical": true, - "file": "region_url_maps.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RegionUrlMaps.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "url_map_resource", - "type": ".google.cloud.compute.v1beta.UrlMap" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionUrlMapsClient", - "fullName": "google.cloud.compute.v1beta.RegionUrlMapsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RegionUrlMaps.Insert", - "service": { - "shortName": "RegionUrlMaps", - "fullName": "google.cloud.compute.v1beta.RegionUrlMaps" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionUrlMaps_InvalidateCache_async", - "title": "AcceleratorTypes invalidateCache Sample", - "origin": "API_DEFINITION", - "description": " Initiates a cache invalidation operation, invalidating the specified path, scoped to the specified UrlMap. For more information, see [Invalidating cached content](/cdn/docs/invalidating-cached-content).", - "canonical": true, - "file": "region_url_maps.invalidate_cache.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "InvalidateCache", - "fullName": "google.cloud.compute.v1beta.RegionUrlMaps.InvalidateCache", - "async": true, - "parameters": [ - { - "name": "cache_invalidation_rule_resource", - "type": ".google.cloud.compute.v1beta.CacheInvalidationRule" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "url_map", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionUrlMapsClient", - "fullName": "google.cloud.compute.v1beta.RegionUrlMapsClient" - }, - "method": { - "shortName": "InvalidateCache", - "fullName": "google.cloud.compute.v1beta.RegionUrlMaps.InvalidateCache", - "service": { - "shortName": "RegionUrlMaps", - "fullName": "google.cloud.compute.v1beta.RegionUrlMaps" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionUrlMaps_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of UrlMap resources available to the specified project in the specified region.", - "canonical": true, - "file": "region_url_maps.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionUrlMaps.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.UrlMapList", - "client": { - "shortName": "RegionUrlMapsClient", - "fullName": "google.cloud.compute.v1beta.RegionUrlMapsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionUrlMaps.List", - "service": { - "shortName": "RegionUrlMaps", - "fullName": "google.cloud.compute.v1beta.RegionUrlMaps" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionUrlMaps_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patches the specified UrlMap resource with the data included in the request. This method supportsPATCH semantics and usesJSON merge patch format and processing rules.", - "canonical": true, - "file": "region_url_maps.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.RegionUrlMaps.Patch", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "url_map", - "type": "TYPE_STRING" - }, - { - "name": "url_map_resource", - "type": ".google.cloud.compute.v1beta.UrlMap" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionUrlMapsClient", - "fullName": "google.cloud.compute.v1beta.RegionUrlMapsClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.RegionUrlMaps.Patch", - "service": { - "shortName": "RegionUrlMaps", - "fullName": "google.cloud.compute.v1beta.RegionUrlMaps" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionUrlMaps_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "region_url_maps.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.RegionUrlMaps.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "RegionUrlMapsClient", - "fullName": "google.cloud.compute.v1beta.RegionUrlMapsClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.RegionUrlMaps.TestIamPermissions", - "service": { - "shortName": "RegionUrlMaps", - "fullName": "google.cloud.compute.v1beta.RegionUrlMaps" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionUrlMaps_Update_async", - "title": "AcceleratorTypes update Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified UrlMap resource with the data included in the request.", - "canonical": true, - "file": "region_url_maps.update.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1beta.RegionUrlMaps.Update", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "url_map", - "type": "TYPE_STRING" - }, - { - "name": "url_map_resource", - "type": ".google.cloud.compute.v1beta.UrlMap" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RegionUrlMapsClient", - "fullName": "google.cloud.compute.v1beta.RegionUrlMapsClient" - }, - "method": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1beta.RegionUrlMaps.Update", - "service": { - "shortName": "RegionUrlMaps", - "fullName": "google.cloud.compute.v1beta.RegionUrlMaps" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionUrlMaps_Validate_async", - "title": "AcceleratorTypes validate Sample", - "origin": "API_DEFINITION", - "description": " Runs static validation for the UrlMap. In particular, the tests of the provided UrlMap will be run. Calling this method does NOT create the UrlMap.", - "canonical": true, - "file": "region_url_maps.validate.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Validate", - "fullName": "google.cloud.compute.v1beta.RegionUrlMaps.Validate", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_url_maps_validate_request_resource", - "type": ".google.cloud.compute.v1beta.RegionUrlMapsValidateRequest" - }, - { - "name": "url_map", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.UrlMapsValidateResponse", - "client": { - "shortName": "RegionUrlMapsClient", - "fullName": "google.cloud.compute.v1beta.RegionUrlMapsClient" - }, - "method": { - "shortName": "Validate", - "fullName": "google.cloud.compute.v1beta.RegionUrlMaps.Validate", - "service": { - "shortName": "RegionUrlMaps", - "fullName": "google.cloud.compute.v1beta.RegionUrlMaps" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RegionZones_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of Zone resources under the specific region available to the specified project.", - "canonical": true, - "file": "region_zones.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionZones.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.ZoneList", - "client": { - "shortName": "RegionZonesClient", - "fullName": "google.cloud.compute.v1beta.RegionZonesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RegionZones.List", - "service": { - "shortName": "RegionZones", - "fullName": "google.cloud.compute.v1beta.RegionZones" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ReservationBlocks_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Retrieves information about the specified reservation block.", - "canonical": true, - "file": "reservation_blocks.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.ReservationBlocks.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "reservation", - "type": "TYPE_STRING" - }, - { - "name": "reservation_block", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.ReservationBlocksGetResponse", - "client": { - "shortName": "ReservationBlocksClient", - "fullName": "google.cloud.compute.v1beta.ReservationBlocksClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.ReservationBlocks.Get", - "service": { - "shortName": "ReservationBlocks", - "fullName": "google.cloud.compute.v1beta.ReservationBlocks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ReservationBlocks_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "reservation_blocks.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.ReservationBlocks.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "parent_resource", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "ReservationBlocksClient", - "fullName": "google.cloud.compute.v1beta.ReservationBlocksClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.ReservationBlocks.GetIamPolicy", - "service": { - "shortName": "ReservationBlocks", - "fullName": "google.cloud.compute.v1beta.ReservationBlocks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ReservationBlocks_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of reservation blocks under a single reservation.", - "canonical": true, - "file": "reservation_blocks.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 151, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.ReservationBlocks.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "reservation", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.ReservationBlocksListResponse", - "client": { - "shortName": "ReservationBlocksClient", - "fullName": "google.cloud.compute.v1beta.ReservationBlocksClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.ReservationBlocks.List", - "service": { - "shortName": "ReservationBlocks", - "fullName": "google.cloud.compute.v1beta.ReservationBlocks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ReservationBlocks_PerformMaintenance_async", - "title": "AcceleratorTypes performMaintenance Sample", - "origin": "API_DEFINITION", - "description": " Allows customers to perform maintenance on a reservation block", - "canonical": true, - "file": "reservation_blocks.perform_maintenance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 89, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PerformMaintenance", - "fullName": "google.cloud.compute.v1beta.ReservationBlocks.PerformMaintenance", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "reservation", - "type": "TYPE_STRING" - }, - { - "name": "reservation_block", - "type": "TYPE_STRING" - }, - { - "name": "reservations_blocks_perform_maintenance_request_resource", - "type": ".google.cloud.compute.v1beta.ReservationsBlocksPerformMaintenanceRequest" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "ReservationBlocksClient", - "fullName": "google.cloud.compute.v1beta.ReservationBlocksClient" - }, - "method": { - "shortName": "PerformMaintenance", - "fullName": "google.cloud.compute.v1beta.ReservationBlocks.PerformMaintenance", - "service": { - "shortName": "ReservationBlocks", - "fullName": "google.cloud.compute.v1beta.ReservationBlocks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ReservationBlocks_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "reservation_blocks.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.ReservationBlocks.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "parent_resource", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "zone_set_nested_policy_request_resource", - "type": ".google.cloud.compute.v1beta.ZoneSetNestedPolicyRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "ReservationBlocksClient", - "fullName": "google.cloud.compute.v1beta.ReservationBlocksClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.ReservationBlocks.SetIamPolicy", - "service": { - "shortName": "ReservationBlocks", - "fullName": "google.cloud.compute.v1beta.ReservationBlocks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ReservationBlocks_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "reservation_blocks.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.ReservationBlocks.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "parent_resource", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "ReservationBlocksClient", - "fullName": "google.cloud.compute.v1beta.ReservationBlocksClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.ReservationBlocks.TestIamPermissions", - "service": { - "shortName": "ReservationBlocks", - "fullName": "google.cloud.compute.v1beta.ReservationBlocks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Reservations_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of reservations. To prevent failure, it is recommended that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "reservations.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.Reservations.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1beta.ReservationAggregatedList", - "client": { - "shortName": "ReservationsClient", - "fullName": "google.cloud.compute.v1beta.ReservationsClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.Reservations.AggregatedList", - "service": { - "shortName": "Reservations", - "fullName": "google.cloud.compute.v1beta.Reservations" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Reservations_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified reservation.", - "canonical": true, - "file": "reservations.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.Reservations.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "reservation", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "ReservationsClient", - "fullName": "google.cloud.compute.v1beta.ReservationsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.Reservations.Delete", - "service": { - "shortName": "Reservations", - "fullName": "google.cloud.compute.v1beta.Reservations" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Reservations_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Retrieves information about the specified reservation.", - "canonical": true, - "file": "reservations.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.Reservations.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "reservation", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Reservation", - "client": { - "shortName": "ReservationsClient", - "fullName": "google.cloud.compute.v1beta.ReservationsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.Reservations.Get", - "service": { - "shortName": "Reservations", - "fullName": "google.cloud.compute.v1beta.Reservations" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Reservations_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "reservations.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.Reservations.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "ReservationsClient", - "fullName": "google.cloud.compute.v1beta.ReservationsClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.Reservations.GetIamPolicy", - "service": { - "shortName": "Reservations", - "fullName": "google.cloud.compute.v1beta.Reservations" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Reservations_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a new reservation. For more information, readReserving zonal resources.", - "canonical": true, - "file": "reservations.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.Reservations.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "reservation_resource", - "type": ".google.cloud.compute.v1beta.Reservation" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "ReservationsClient", - "fullName": "google.cloud.compute.v1beta.ReservationsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.Reservations.Insert", - "service": { - "shortName": "Reservations", - "fullName": "google.cloud.compute.v1beta.Reservations" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Reservations_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " A list of all the reservations that have been configured for the specified project in specified zone.", - "canonical": true, - "file": "reservations.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.Reservations.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.ReservationList", - "client": { - "shortName": "ReservationsClient", - "fullName": "google.cloud.compute.v1beta.ReservationsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.Reservations.List", - "service": { - "shortName": "Reservations", - "fullName": "google.cloud.compute.v1beta.Reservations" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Reservations_PerformMaintenance_async", - "title": "AcceleratorTypes performMaintenance Sample", - "origin": "API_DEFINITION", - "description": " Perform maintenance on an extended reservation", - "canonical": true, - "file": "reservations.perform_maintenance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PerformMaintenance", - "fullName": "google.cloud.compute.v1beta.Reservations.PerformMaintenance", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "reservation", - "type": "TYPE_STRING" - }, - { - "name": "reservations_perform_maintenance_request_resource", - "type": ".google.cloud.compute.v1beta.ReservationsPerformMaintenanceRequest" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "ReservationsClient", - "fullName": "google.cloud.compute.v1beta.ReservationsClient" - }, - "method": { - "shortName": "PerformMaintenance", - "fullName": "google.cloud.compute.v1beta.Reservations.PerformMaintenance", - "service": { - "shortName": "Reservations", - "fullName": "google.cloud.compute.v1beta.Reservations" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Reservations_Resize_async", - "title": "AcceleratorTypes resize Sample", - "origin": "API_DEFINITION", - "description": " Resizes the reservation (applicable to standalone reservations only). For more information, readModifying reservations.", - "canonical": true, - "file": "reservations.resize.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Resize", - "fullName": "google.cloud.compute.v1beta.Reservations.Resize", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "reservation", - "type": "TYPE_STRING" - }, - { - "name": "reservations_resize_request_resource", - "type": ".google.cloud.compute.v1beta.ReservationsResizeRequest" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "ReservationsClient", - "fullName": "google.cloud.compute.v1beta.ReservationsClient" - }, - "method": { - "shortName": "Resize", - "fullName": "google.cloud.compute.v1beta.Reservations.Resize", - "service": { - "shortName": "Reservations", - "fullName": "google.cloud.compute.v1beta.Reservations" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Reservations_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "reservations.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.Reservations.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "zone_set_policy_request_resource", - "type": ".google.cloud.compute.v1beta.ZoneSetPolicyRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "ReservationsClient", - "fullName": "google.cloud.compute.v1beta.ReservationsClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.Reservations.SetIamPolicy", - "service": { - "shortName": "Reservations", - "fullName": "google.cloud.compute.v1beta.Reservations" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Reservations_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "reservations.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.Reservations.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "ReservationsClient", - "fullName": "google.cloud.compute.v1beta.ReservationsClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.Reservations.TestIamPermissions", - "service": { - "shortName": "Reservations", - "fullName": "google.cloud.compute.v1beta.Reservations" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Reservations_Update_async", - "title": "AcceleratorTypes update Sample", - "origin": "API_DEFINITION", - "description": " Update share settings of the reservation.", - "canonical": true, - "file": "reservations.update.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 89, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1beta.Reservations.Update", - "async": true, - "parameters": [ - { - "name": "paths", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "reservation", - "type": "TYPE_STRING" - }, - { - "name": "reservation_resource", - "type": ".google.cloud.compute.v1beta.Reservation" - }, - { - "name": "update_mask", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "ReservationsClient", - "fullName": "google.cloud.compute.v1beta.ReservationsClient" - }, - "method": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1beta.Reservations.Update", - "service": { - "shortName": "Reservations", - "fullName": "google.cloud.compute.v1beta.Reservations" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ReservationSlots_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Retrieves information about the specified reservation slot.", - "canonical": true, - "file": "reservation_slots.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.ReservationSlots.Get", - "async": true, - "parameters": [ - { - "name": "parent_name", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "reservation_slot", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.ReservationSlotsGetResponse", - "client": { - "shortName": "ReservationSlotsClient", - "fullName": "google.cloud.compute.v1beta.ReservationSlotsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.ReservationSlots.Get", - "service": { - "shortName": "ReservationSlots", - "fullName": "google.cloud.compute.v1beta.ReservationSlots" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ReservationSlots_GetVersion_async", - "title": "AcceleratorTypes getVersion Sample", - "origin": "API_DEFINITION", - "description": " Allows customers to get SBOM versions of a reservation slot.", - "canonical": true, - "file": "reservation_slots.get_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 89, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetVersion", - "fullName": "google.cloud.compute.v1beta.ReservationSlots.GetVersion", - "async": true, - "parameters": [ - { - "name": "parent_name", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "reservation_slot", - "type": "TYPE_STRING" - }, - { - "name": "reservation_slots_get_version_request_resource", - "type": ".google.cloud.compute.v1beta.ReservationSlotsGetVersionRequest" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "ReservationSlotsClient", - "fullName": "google.cloud.compute.v1beta.ReservationSlotsClient" - }, - "method": { - "shortName": "GetVersion", - "fullName": "google.cloud.compute.v1beta.ReservationSlots.GetVersion", - "service": { - "shortName": "ReservationSlots", - "fullName": "google.cloud.compute.v1beta.ReservationSlots" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ReservationSlots_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of reservation slots under a single reservation.", - "canonical": true, - "file": "reservation_slots.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 151, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.ReservationSlots.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "parent_name", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.ReservationSlotsListResponse", - "client": { - "shortName": "ReservationSlotsClient", - "fullName": "google.cloud.compute.v1beta.ReservationSlotsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.ReservationSlots.List", - "service": { - "shortName": "ReservationSlots", - "fullName": "google.cloud.compute.v1beta.ReservationSlots" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ReservationSlots_Update_async", - "title": "AcceleratorTypes update Sample", - "origin": "API_DEFINITION", - "description": " Update a reservation slot in the specified sub-block.", - "canonical": true, - "file": "reservation_slots.update.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1beta.ReservationSlots.Update", - "async": true, - "parameters": [ - { - "name": "parent_name", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "reservation_slot", - "type": "TYPE_STRING" - }, - { - "name": "reservation_slot_resource", - "type": ".google.cloud.compute.v1beta.ReservationSlot" - }, - { - "name": "update_mask", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "ReservationSlotsClient", - "fullName": "google.cloud.compute.v1beta.ReservationSlotsClient" - }, - "method": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1beta.ReservationSlots.Update", - "service": { - "shortName": "ReservationSlots", - "fullName": "google.cloud.compute.v1beta.ReservationSlots" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ReservationSubBlocks_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Retrieves information about the specified reservation subBlock.", - "canonical": true, - "file": "reservation_sub_blocks.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.ReservationSubBlocks.Get", - "async": true, - "parameters": [ - { - "name": "parent_name", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "reservation_sub_block", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.ReservationSubBlocksGetResponse", - "client": { - "shortName": "ReservationSubBlocksClient", - "fullName": "google.cloud.compute.v1beta.ReservationSubBlocksClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.ReservationSubBlocks.Get", - "service": { - "shortName": "ReservationSubBlocks", - "fullName": "google.cloud.compute.v1beta.ReservationSubBlocks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ReservationSubBlocks_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "reservation_sub_blocks.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.ReservationSubBlocks.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "parent_resource", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "ReservationSubBlocksClient", - "fullName": "google.cloud.compute.v1beta.ReservationSubBlocksClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.ReservationSubBlocks.GetIamPolicy", - "service": { - "shortName": "ReservationSubBlocks", - "fullName": "google.cloud.compute.v1beta.ReservationSubBlocks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ReservationSubBlocks_GetVersion_async", - "title": "AcceleratorTypes getVersion Sample", - "origin": "API_DEFINITION", - "description": " Allows customers to get SBOM versions of a reservation subBlock.", - "canonical": true, - "file": "reservation_sub_blocks.get_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 89, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetVersion", - "fullName": "google.cloud.compute.v1beta.ReservationSubBlocks.GetVersion", - "async": true, - "parameters": [ - { - "name": "parent_name", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "reservation_sub_block", - "type": "TYPE_STRING" - }, - { - "name": "reservation_sub_blocks_get_version_request_resource", - "type": ".google.cloud.compute.v1beta.ReservationSubBlocksGetVersionRequest" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "ReservationSubBlocksClient", - "fullName": "google.cloud.compute.v1beta.ReservationSubBlocksClient" - }, - "method": { - "shortName": "GetVersion", - "fullName": "google.cloud.compute.v1beta.ReservationSubBlocks.GetVersion", - "service": { - "shortName": "ReservationSubBlocks", - "fullName": "google.cloud.compute.v1beta.ReservationSubBlocks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ReservationSubBlocks_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of reservation subBlocks under a single reservation.", - "canonical": true, - "file": "reservation_sub_blocks.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 151, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.ReservationSubBlocks.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "parent_name", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.ReservationSubBlocksListResponse", - "client": { - "shortName": "ReservationSubBlocksClient", - "fullName": "google.cloud.compute.v1beta.ReservationSubBlocksClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.ReservationSubBlocks.List", - "service": { - "shortName": "ReservationSubBlocks", - "fullName": "google.cloud.compute.v1beta.ReservationSubBlocks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ReservationSubBlocks_PerformMaintenance_async", - "title": "AcceleratorTypes performMaintenance Sample", - "origin": "API_DEFINITION", - "description": " Allows customers to perform maintenance on a reservation subBlock", - "canonical": true, - "file": "reservation_sub_blocks.perform_maintenance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PerformMaintenance", - "fullName": "google.cloud.compute.v1beta.ReservationSubBlocks.PerformMaintenance", - "async": true, - "parameters": [ - { - "name": "parent_name", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "reservation_sub_block", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "ReservationSubBlocksClient", - "fullName": "google.cloud.compute.v1beta.ReservationSubBlocksClient" - }, - "method": { - "shortName": "PerformMaintenance", - "fullName": "google.cloud.compute.v1beta.ReservationSubBlocks.PerformMaintenance", - "service": { - "shortName": "ReservationSubBlocks", - "fullName": "google.cloud.compute.v1beta.ReservationSubBlocks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ReservationSubBlocks_ReportFaulty_async", - "title": "AcceleratorTypes reportFaulty Sample", - "origin": "API_DEFINITION", - "description": " Allows customers to report a faulty subBlock.", - "canonical": true, - "file": "reservation_sub_blocks.report_faulty.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 89, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReportFaulty", - "fullName": "google.cloud.compute.v1beta.ReservationSubBlocks.ReportFaulty", - "async": true, - "parameters": [ - { - "name": "parent_name", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "reservation_sub_block", - "type": "TYPE_STRING" - }, - { - "name": "reservation_sub_blocks_report_faulty_request_resource", - "type": ".google.cloud.compute.v1beta.ReservationSubBlocksReportFaultyRequest" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "ReservationSubBlocksClient", - "fullName": "google.cloud.compute.v1beta.ReservationSubBlocksClient" - }, - "method": { - "shortName": "ReportFaulty", - "fullName": "google.cloud.compute.v1beta.ReservationSubBlocks.ReportFaulty", - "service": { - "shortName": "ReservationSubBlocks", - "fullName": "google.cloud.compute.v1beta.ReservationSubBlocks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ReservationSubBlocks_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "reservation_sub_blocks.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.ReservationSubBlocks.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "parent_resource", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "zone_set_nested_policy_request_resource", - "type": ".google.cloud.compute.v1beta.ZoneSetNestedPolicyRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "ReservationSubBlocksClient", - "fullName": "google.cloud.compute.v1beta.ReservationSubBlocksClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.ReservationSubBlocks.SetIamPolicy", - "service": { - "shortName": "ReservationSubBlocks", - "fullName": "google.cloud.compute.v1beta.ReservationSubBlocks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ReservationSubBlocks_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "reservation_sub_blocks.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.ReservationSubBlocks.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "parent_resource", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "ReservationSubBlocksClient", - "fullName": "google.cloud.compute.v1beta.ReservationSubBlocksClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.ReservationSubBlocks.TestIamPermissions", - "service": { - "shortName": "ReservationSubBlocks", - "fullName": "google.cloud.compute.v1beta.ReservationSubBlocks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ResourcePolicies_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of resource policies. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "resource_policies.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.ResourcePolicies.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1beta.ResourcePolicyAggregatedList", - "client": { - "shortName": "ResourcePoliciesClient", - "fullName": "google.cloud.compute.v1beta.ResourcePoliciesClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.ResourcePolicies.AggregatedList", - "service": { - "shortName": "ResourcePolicies", - "fullName": "google.cloud.compute.v1beta.ResourcePolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ResourcePolicies_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified resource policy.", - "canonical": true, - "file": "resource_policies.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.ResourcePolicies.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "resource_policy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "ResourcePoliciesClient", - "fullName": "google.cloud.compute.v1beta.ResourcePoliciesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.ResourcePolicies.Delete", - "service": { - "shortName": "ResourcePolicies", - "fullName": "google.cloud.compute.v1beta.ResourcePolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ResourcePolicies_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Retrieves all information of the specified resource policy.", - "canonical": true, - "file": "resource_policies.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.ResourcePolicies.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource_policy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.ResourcePolicy", - "client": { - "shortName": "ResourcePoliciesClient", - "fullName": "google.cloud.compute.v1beta.ResourcePoliciesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.ResourcePolicies.Get", - "service": { - "shortName": "ResourcePolicies", - "fullName": "google.cloud.compute.v1beta.ResourcePolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ResourcePolicies_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "resource_policies.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.ResourcePolicies.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "ResourcePoliciesClient", - "fullName": "google.cloud.compute.v1beta.ResourcePoliciesClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.ResourcePolicies.GetIamPolicy", - "service": { - "shortName": "ResourcePolicies", - "fullName": "google.cloud.compute.v1beta.ResourcePolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ResourcePolicies_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a new resource policy.", - "canonical": true, - "file": "resource_policies.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.ResourcePolicies.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "resource_policy_resource", - "type": ".google.cloud.compute.v1beta.ResourcePolicy" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "ResourcePoliciesClient", - "fullName": "google.cloud.compute.v1beta.ResourcePoliciesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.ResourcePolicies.Insert", - "service": { - "shortName": "ResourcePolicies", - "fullName": "google.cloud.compute.v1beta.ResourcePolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ResourcePolicies_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " A list all the resource policies that have been configured for the specified project in specified region.", - "canonical": true, - "file": "resource_policies.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.ResourcePolicies.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.ResourcePolicyList", - "client": { - "shortName": "ResourcePoliciesClient", - "fullName": "google.cloud.compute.v1beta.ResourcePoliciesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.ResourcePolicies.List", - "service": { - "shortName": "ResourcePolicies", - "fullName": "google.cloud.compute.v1beta.ResourcePolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ResourcePolicies_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Modify the specified resource policy.", - "canonical": true, - "file": "resource_policies.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.ResourcePolicies.Patch", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "resource_policy", - "type": "TYPE_STRING" - }, - { - "name": "resource_policy_resource", - "type": ".google.cloud.compute.v1beta.ResourcePolicy" - }, - { - "name": "update_mask", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "ResourcePoliciesClient", - "fullName": "google.cloud.compute.v1beta.ResourcePoliciesClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.ResourcePolicies.Patch", - "service": { - "shortName": "ResourcePolicies", - "fullName": "google.cloud.compute.v1beta.ResourcePolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ResourcePolicies_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "resource_policies.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.ResourcePolicies.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_set_policy_request_resource", - "type": ".google.cloud.compute.v1beta.RegionSetPolicyRequest" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "ResourcePoliciesClient", - "fullName": "google.cloud.compute.v1beta.ResourcePoliciesClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.ResourcePolicies.SetIamPolicy", - "service": { - "shortName": "ResourcePolicies", - "fullName": "google.cloud.compute.v1beta.ResourcePolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ResourcePolicies_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "resource_policies.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.ResourcePolicies.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "ResourcePoliciesClient", - "fullName": "google.cloud.compute.v1beta.ResourcePoliciesClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.ResourcePolicies.TestIamPermissions", - "service": { - "shortName": "ResourcePolicies", - "fullName": "google.cloud.compute.v1beta.ResourcePolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RolloutPlans_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes a RolloutPlan.", - "canonical": true, - "file": "rollout_plans.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.RolloutPlans.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "rollout_plan", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RolloutPlansClient", - "fullName": "google.cloud.compute.v1beta.RolloutPlansClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.RolloutPlans.Delete", - "service": { - "shortName": "RolloutPlans", - "fullName": "google.cloud.compute.v1beta.RolloutPlans" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RolloutPlans_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single project-scoped RolloutPlan.", - "canonical": true, - "file": "rollout_plans.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RolloutPlans.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "rollout_plan", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.RolloutPlan", - "client": { - "shortName": "RolloutPlansClient", - "fullName": "google.cloud.compute.v1beta.RolloutPlansClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.RolloutPlans.Get", - "service": { - "shortName": "RolloutPlans", - "fullName": "google.cloud.compute.v1beta.RolloutPlans" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RolloutPlans_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a new RolloutPlan in a given project and location.", - "canonical": true, - "file": "rollout_plans.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RolloutPlans.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "rollout_plan_resource", - "type": ".google.cloud.compute.v1beta.RolloutPlan" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RolloutPlansClient", - "fullName": "google.cloud.compute.v1beta.RolloutPlansClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.RolloutPlans.Insert", - "service": { - "shortName": "RolloutPlans", - "fullName": "google.cloud.compute.v1beta.RolloutPlans" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_RolloutPlans_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Lists RolloutPlans in a given project and location.", - "canonical": true, - "file": "rollout_plans.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RolloutPlans.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.RolloutPlansListResponse", - "client": { - "shortName": "RolloutPlansClient", - "fullName": "google.cloud.compute.v1beta.RolloutPlansClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.RolloutPlans.List", - "service": { - "shortName": "RolloutPlans", - "fullName": "google.cloud.compute.v1beta.RolloutPlans" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Rollouts_Cancel_async", - "title": "AcceleratorTypes cancel Sample", - "origin": "API_DEFINITION", - "description": " Cancels a Rollout.", - "canonical": true, - "file": "rollouts.cancel.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Cancel", - "fullName": "google.cloud.compute.v1beta.Rollouts.Cancel", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "rollback", - "type": "TYPE_BOOL" - }, - { - "name": "rollout", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RolloutsClient", - "fullName": "google.cloud.compute.v1beta.RolloutsClient" - }, - "method": { - "shortName": "Cancel", - "fullName": "google.cloud.compute.v1beta.Rollouts.Cancel", - "service": { - "shortName": "Rollouts", - "fullName": "google.cloud.compute.v1beta.Rollouts" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Rollouts_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Rollout.", - "canonical": true, - "file": "rollouts.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.Rollouts.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "rollout", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RolloutsClient", - "fullName": "google.cloud.compute.v1beta.RolloutsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.Rollouts.Delete", - "service": { - "shortName": "Rollouts", - "fullName": "google.cloud.compute.v1beta.Rollouts" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Rollouts_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single project-scoped Rollout.", - "canonical": true, - "file": "rollouts.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.Rollouts.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "rollout", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Rollout", - "client": { - "shortName": "RolloutsClient", - "fullName": "google.cloud.compute.v1beta.RolloutsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.Rollouts.Get", - "service": { - "shortName": "Rollouts", - "fullName": "google.cloud.compute.v1beta.Rollouts" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Rollouts_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Lists Rollouts in a given project and location.", - "canonical": true, - "file": "rollouts.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.Rollouts.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.RolloutsListResponse", - "client": { - "shortName": "RolloutsClient", - "fullName": "google.cloud.compute.v1beta.RolloutsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.Rollouts.List", - "service": { - "shortName": "Rollouts", - "fullName": "google.cloud.compute.v1beta.Rollouts" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Routers_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of routers. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "routers.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.Routers.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1beta.RouterAggregatedList", - "client": { - "shortName": "RoutersClient", - "fullName": "google.cloud.compute.v1beta.RoutersClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.Routers.AggregatedList", - "service": { - "shortName": "Routers", - "fullName": "google.cloud.compute.v1beta.Routers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Routers_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified Router resource.", - "canonical": true, - "file": "routers.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.Routers.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "router", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RoutersClient", - "fullName": "google.cloud.compute.v1beta.RoutersClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.Routers.Delete", - "service": { - "shortName": "Routers", - "fullName": "google.cloud.compute.v1beta.Routers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Routers_DeleteNamedSet_async", - "title": "AcceleratorTypes deleteNamedSet Sample", - "origin": "API_DEFINITION", - "description": " Deletes Named Set", - "canonical": true, - "file": "routers.delete_named_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteNamedSet", - "fullName": "google.cloud.compute.v1beta.Routers.DeleteNamedSet", - "async": true, - "parameters": [ - { - "name": "named_set", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "router", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RoutersClient", - "fullName": "google.cloud.compute.v1beta.RoutersClient" - }, - "method": { - "shortName": "DeleteNamedSet", - "fullName": "google.cloud.compute.v1beta.Routers.DeleteNamedSet", - "service": { - "shortName": "Routers", - "fullName": "google.cloud.compute.v1beta.Routers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Routers_DeleteRoutePolicy_async", - "title": "AcceleratorTypes deleteRoutePolicy Sample", - "origin": "API_DEFINITION", - "description": " Deletes Route Policy", - "canonical": true, - "file": "routers.delete_route_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteRoutePolicy", - "fullName": "google.cloud.compute.v1beta.Routers.DeleteRoutePolicy", - "async": true, - "parameters": [ - { - "name": "policy", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "router", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RoutersClient", - "fullName": "google.cloud.compute.v1beta.RoutersClient" - }, - "method": { - "shortName": "DeleteRoutePolicy", - "fullName": "google.cloud.compute.v1beta.Routers.DeleteRoutePolicy", - "service": { - "shortName": "Routers", - "fullName": "google.cloud.compute.v1beta.Routers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Routers_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified Router resource.", - "canonical": true, - "file": "routers.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.Routers.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "router", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Router", - "client": { - "shortName": "RoutersClient", - "fullName": "google.cloud.compute.v1beta.RoutersClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.Routers.Get", - "service": { - "shortName": "Routers", - "fullName": "google.cloud.compute.v1beta.Routers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Routers_GetNamedSet_async", - "title": "AcceleratorTypes getNamedSet Sample", - "origin": "API_DEFINITION", - "description": " Returns specified Named Set", - "canonical": true, - "file": "routers.get_named_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetNamedSet", - "fullName": "google.cloud.compute.v1beta.Routers.GetNamedSet", - "async": true, - "parameters": [ - { - "name": "named_set", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "router", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.RoutersGetNamedSetResponse", - "client": { - "shortName": "RoutersClient", - "fullName": "google.cloud.compute.v1beta.RoutersClient" - }, - "method": { - "shortName": "GetNamedSet", - "fullName": "google.cloud.compute.v1beta.Routers.GetNamedSet", - "service": { - "shortName": "Routers", - "fullName": "google.cloud.compute.v1beta.Routers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Routers_GetNatIpInfo_async", - "title": "AcceleratorTypes getNatIpInfo Sample", - "origin": "API_DEFINITION", - "description": " Retrieves runtime NAT IP information.", - "canonical": true, - "file": "routers.get_nat_ip_info.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetNatIpInfo", - "fullName": "google.cloud.compute.v1beta.Routers.GetNatIpInfo", - "async": true, - "parameters": [ - { - "name": "nat_name", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "router", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.NatIpInfoResponse", - "client": { - "shortName": "RoutersClient", - "fullName": "google.cloud.compute.v1beta.RoutersClient" - }, - "method": { - "shortName": "GetNatIpInfo", - "fullName": "google.cloud.compute.v1beta.Routers.GetNatIpInfo", - "service": { - "shortName": "Routers", - "fullName": "google.cloud.compute.v1beta.Routers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Routers_GetNatMappingInfo_async", - "title": "AcceleratorTypes getNatMappingInfo Sample", - "origin": "API_DEFINITION", - "description": " Retrieves runtime Nat mapping information of VM endpoints.", - "canonical": true, - "file": "routers.get_nat_mapping_info.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 157, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetNatMappingInfo", - "fullName": "google.cloud.compute.v1beta.Routers.GetNatMappingInfo", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "nat_name", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "router", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.VmEndpointNatMappingsList", - "client": { - "shortName": "RoutersClient", - "fullName": "google.cloud.compute.v1beta.RoutersClient" - }, - "method": { - "shortName": "GetNatMappingInfo", - "fullName": "google.cloud.compute.v1beta.Routers.GetNatMappingInfo", - "service": { - "shortName": "Routers", - "fullName": "google.cloud.compute.v1beta.Routers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Routers_GetRoutePolicy_async", - "title": "AcceleratorTypes getRoutePolicy Sample", - "origin": "API_DEFINITION", - "description": " Returns specified Route Policy", - "canonical": true, - "file": "routers.get_route_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRoutePolicy", - "fullName": "google.cloud.compute.v1beta.Routers.GetRoutePolicy", - "async": true, - "parameters": [ - { - "name": "policy", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "router", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.RoutersGetRoutePolicyResponse", - "client": { - "shortName": "RoutersClient", - "fullName": "google.cloud.compute.v1beta.RoutersClient" - }, - "method": { - "shortName": "GetRoutePolicy", - "fullName": "google.cloud.compute.v1beta.Routers.GetRoutePolicy", - "service": { - "shortName": "Routers", - "fullName": "google.cloud.compute.v1beta.Routers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Routers_GetRouterStatus_async", - "title": "AcceleratorTypes getRouterStatus Sample", - "origin": "API_DEFINITION", - "description": " Retrieves runtime information of the specified router.", - "canonical": true, - "file": "routers.get_router_status.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRouterStatus", - "fullName": "google.cloud.compute.v1beta.Routers.GetRouterStatus", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "router", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.RouterStatusResponse", - "client": { - "shortName": "RoutersClient", - "fullName": "google.cloud.compute.v1beta.RoutersClient" - }, - "method": { - "shortName": "GetRouterStatus", - "fullName": "google.cloud.compute.v1beta.Routers.GetRouterStatus", - "service": { - "shortName": "Routers", - "fullName": "google.cloud.compute.v1beta.Routers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Routers_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a Router resource in the specified project and region using the data included in the request.", - "canonical": true, - "file": "routers.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.Routers.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "router_resource", - "type": ".google.cloud.compute.v1beta.Router" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RoutersClient", - "fullName": "google.cloud.compute.v1beta.RoutersClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.Routers.Insert", - "service": { - "shortName": "Routers", - "fullName": "google.cloud.compute.v1beta.Routers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Routers_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of Router resources available to the specified project.", - "canonical": true, - "file": "routers.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.Routers.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.RouterList", - "client": { - "shortName": "RoutersClient", - "fullName": "google.cloud.compute.v1beta.RoutersClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.Routers.List", - "service": { - "shortName": "Routers", - "fullName": "google.cloud.compute.v1beta.Routers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Routers_ListBgpRoutes_async", - "title": "AcceleratorTypes listBgpRoutes Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of router bgp routes available to the specified project.", - "canonical": true, - "file": "routers.list_bgp_routes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 176, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBgpRoutes", - "fullName": "google.cloud.compute.v1beta.Routers.ListBgpRoutes", - "async": true, - "parameters": [ - { - "name": "address_family", - "type": "TYPE_STRING" - }, - { - "name": "destination_prefix", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "peer", - "type": "TYPE_STRING" - }, - { - "name": "policy_applied", - "type": "TYPE_BOOL" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "route_type", - "type": "TYPE_STRING" - }, - { - "name": "router", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.RoutersListBgpRoutes", - "client": { - "shortName": "RoutersClient", - "fullName": "google.cloud.compute.v1beta.RoutersClient" - }, - "method": { - "shortName": "ListBgpRoutes", - "fullName": "google.cloud.compute.v1beta.Routers.ListBgpRoutes", - "service": { - "shortName": "Routers", - "fullName": "google.cloud.compute.v1beta.Routers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Routers_ListNamedSets_async", - "title": "AcceleratorTypes listNamedSets Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of router named set subresources available to the specified project.", - "canonical": true, - "file": "routers.list_named_sets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 151, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListNamedSets", - "fullName": "google.cloud.compute.v1beta.Routers.ListNamedSets", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "router", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.RoutersListNamedSets", - "client": { - "shortName": "RoutersClient", - "fullName": "google.cloud.compute.v1beta.RoutersClient" - }, - "method": { - "shortName": "ListNamedSets", - "fullName": "google.cloud.compute.v1beta.Routers.ListNamedSets", - "service": { - "shortName": "Routers", - "fullName": "google.cloud.compute.v1beta.Routers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Routers_ListRoutePolicies_async", - "title": "AcceleratorTypes listRoutePolicies Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of router route policy subresources available to the specified project.", - "canonical": true, - "file": "routers.list_route_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 151, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRoutePolicies", - "fullName": "google.cloud.compute.v1beta.Routers.ListRoutePolicies", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "router", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.RoutersListRoutePolicies", - "client": { - "shortName": "RoutersClient", - "fullName": "google.cloud.compute.v1beta.RoutersClient" - }, - "method": { - "shortName": "ListRoutePolicies", - "fullName": "google.cloud.compute.v1beta.Routers.ListRoutePolicies", - "service": { - "shortName": "Routers", - "fullName": "google.cloud.compute.v1beta.Routers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Routers_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patches the specified Router resource with the data included in the request. This method supportsPATCH semantics and usesJSON merge patch format and processing rules.", - "canonical": true, - "file": "routers.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.Routers.Patch", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "router", - "type": "TYPE_STRING" - }, - { - "name": "router_resource", - "type": ".google.cloud.compute.v1beta.Router" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RoutersClient", - "fullName": "google.cloud.compute.v1beta.RoutersClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.Routers.Patch", - "service": { - "shortName": "Routers", - "fullName": "google.cloud.compute.v1beta.Routers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Routers_PatchNamedSet_async", - "title": "AcceleratorTypes patchNamedSet Sample", - "origin": "API_DEFINITION", - "description": " Patches Named Set", - "canonical": true, - "file": "routers.patch_named_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PatchNamedSet", - "fullName": "google.cloud.compute.v1beta.Routers.PatchNamedSet", - "async": true, - "parameters": [ - { - "name": "named_set_resource", - "type": ".google.cloud.compute.v1beta.NamedSet" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "router", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RoutersClient", - "fullName": "google.cloud.compute.v1beta.RoutersClient" - }, - "method": { - "shortName": "PatchNamedSet", - "fullName": "google.cloud.compute.v1beta.Routers.PatchNamedSet", - "service": { - "shortName": "Routers", - "fullName": "google.cloud.compute.v1beta.Routers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Routers_PatchRoutePolicy_async", - "title": "AcceleratorTypes patchRoutePolicy Sample", - "origin": "API_DEFINITION", - "description": " Patches Route Policy", - "canonical": true, - "file": "routers.patch_route_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PatchRoutePolicy", - "fullName": "google.cloud.compute.v1beta.Routers.PatchRoutePolicy", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "route_policy_resource", - "type": ".google.cloud.compute.v1beta.RoutePolicy" - }, - { - "name": "router", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RoutersClient", - "fullName": "google.cloud.compute.v1beta.RoutersClient" - }, - "method": { - "shortName": "PatchRoutePolicy", - "fullName": "google.cloud.compute.v1beta.Routers.PatchRoutePolicy", - "service": { - "shortName": "Routers", - "fullName": "google.cloud.compute.v1beta.Routers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Routers_Preview_async", - "title": "AcceleratorTypes preview Sample", - "origin": "API_DEFINITION", - "description": " Preview fields auto-generated during router create andupdate operations. Calling this method does NOT create or update the router.", - "canonical": true, - "file": "routers.preview.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Preview", - "fullName": "google.cloud.compute.v1beta.Routers.Preview", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "router", - "type": "TYPE_STRING" - }, - { - "name": "router_resource", - "type": ".google.cloud.compute.v1beta.Router" - } - ], - "resultType": ".google.cloud.compute.v1beta.RoutersPreviewResponse", - "client": { - "shortName": "RoutersClient", - "fullName": "google.cloud.compute.v1beta.RoutersClient" - }, - "method": { - "shortName": "Preview", - "fullName": "google.cloud.compute.v1beta.Routers.Preview", - "service": { - "shortName": "Routers", - "fullName": "google.cloud.compute.v1beta.Routers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Routers_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "routers.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.Routers.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "RoutersClient", - "fullName": "google.cloud.compute.v1beta.RoutersClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.Routers.TestIamPermissions", - "service": { - "shortName": "Routers", - "fullName": "google.cloud.compute.v1beta.Routers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Routers_Update_async", - "title": "AcceleratorTypes update Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified Router resource with the data included in the request. This method conforms toPUT semantics, which requests that the state of the target resource be created or replaced with the state defined by the representation enclosed in the request message payload.", - "canonical": true, - "file": "routers.update.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1beta.Routers.Update", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "router", - "type": "TYPE_STRING" - }, - { - "name": "router_resource", - "type": ".google.cloud.compute.v1beta.Router" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RoutersClient", - "fullName": "google.cloud.compute.v1beta.RoutersClient" - }, - "method": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1beta.Routers.Update", - "service": { - "shortName": "Routers", - "fullName": "google.cloud.compute.v1beta.Routers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Routers_UpdateNamedSet_async", - "title": "AcceleratorTypes updateNamedSet Sample", - "origin": "API_DEFINITION", - "description": " Updates or creates new Named Set", - "canonical": true, - "file": "routers.update_named_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateNamedSet", - "fullName": "google.cloud.compute.v1beta.Routers.UpdateNamedSet", - "async": true, - "parameters": [ - { - "name": "named_set_resource", - "type": ".google.cloud.compute.v1beta.NamedSet" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "router", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RoutersClient", - "fullName": "google.cloud.compute.v1beta.RoutersClient" - }, - "method": { - "shortName": "UpdateNamedSet", - "fullName": "google.cloud.compute.v1beta.Routers.UpdateNamedSet", - "service": { - "shortName": "Routers", - "fullName": "google.cloud.compute.v1beta.Routers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Routers_UpdateRoutePolicy_async", - "title": "AcceleratorTypes updateRoutePolicy Sample", - "origin": "API_DEFINITION", - "description": " Updates or creates new Route Policy", - "canonical": true, - "file": "routers.update_route_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateRoutePolicy", - "fullName": "google.cloud.compute.v1beta.Routers.UpdateRoutePolicy", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "route_policy_resource", - "type": ".google.cloud.compute.v1beta.RoutePolicy" - }, - { - "name": "router", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RoutersClient", - "fullName": "google.cloud.compute.v1beta.RoutersClient" - }, - "method": { - "shortName": "UpdateRoutePolicy", - "fullName": "google.cloud.compute.v1beta.Routers.UpdateRoutePolicy", - "service": { - "shortName": "Routers", - "fullName": "google.cloud.compute.v1beta.Routers" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Routes_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified Route resource.", - "canonical": true, - "file": "routes.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.Routes.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "route", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RoutesClient", - "fullName": "google.cloud.compute.v1beta.RoutesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.Routes.Delete", - "service": { - "shortName": "Routes", - "fullName": "google.cloud.compute.v1beta.Routes" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Routes_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified Route resource.", - "canonical": true, - "file": "routes.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.Routes.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "route", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Route", - "client": { - "shortName": "RoutesClient", - "fullName": "google.cloud.compute.v1beta.RoutesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.Routes.Get", - "service": { - "shortName": "Routes", - "fullName": "google.cloud.compute.v1beta.Routes" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Routes_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a Route resource in the specified project using the data included in the request.", - "canonical": true, - "file": "routes.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.Routes.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "route_resource", - "type": ".google.cloud.compute.v1beta.Route" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "RoutesClient", - "fullName": "google.cloud.compute.v1beta.RoutesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.Routes.Insert", - "service": { - "shortName": "Routes", - "fullName": "google.cloud.compute.v1beta.Routes" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Routes_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of Route resources available to the specified project.", - "canonical": true, - "file": "routes.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.Routes.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.RouteList", - "client": { - "shortName": "RoutesClient", - "fullName": "google.cloud.compute.v1beta.RoutesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.Routes.List", - "service": { - "shortName": "Routes", - "fullName": "google.cloud.compute.v1beta.Routes" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Routes_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "routes.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.Routes.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "RoutesClient", - "fullName": "google.cloud.compute.v1beta.RoutesClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.Routes.TestIamPermissions", - "service": { - "shortName": "Routes", - "fullName": "google.cloud.compute.v1beta.Routes" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_SecurityPolicies_AddRule_async", - "title": "AcceleratorTypes addRule Sample", - "origin": "API_DEFINITION", - "description": " Inserts a rule into a security policy.", - "canonical": true, - "file": "security_policies.add_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddRule", - "fullName": "google.cloud.compute.v1beta.SecurityPolicies.AddRule", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "security_policy", - "type": "TYPE_STRING" - }, - { - "name": "security_policy_rule_resource", - "type": ".google.cloud.compute.v1beta.SecurityPolicyRule" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "SecurityPoliciesClient", - "fullName": "google.cloud.compute.v1beta.SecurityPoliciesClient" - }, - "method": { - "shortName": "AddRule", - "fullName": "google.cloud.compute.v1beta.SecurityPolicies.AddRule", - "service": { - "shortName": "SecurityPolicies", - "fullName": "google.cloud.compute.v1beta.SecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_SecurityPolicies_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of all SecurityPolicy resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "security_policies.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.SecurityPolicies.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1beta.SecurityPoliciesAggregatedList", - "client": { - "shortName": "SecurityPoliciesClient", - "fullName": "google.cloud.compute.v1beta.SecurityPoliciesClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.SecurityPolicies.AggregatedList", - "service": { - "shortName": "SecurityPolicies", - "fullName": "google.cloud.compute.v1beta.SecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_SecurityPolicies_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified policy.", - "canonical": true, - "file": "security_policies.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.SecurityPolicies.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "security_policy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "SecurityPoliciesClient", - "fullName": "google.cloud.compute.v1beta.SecurityPoliciesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.SecurityPolicies.Delete", - "service": { - "shortName": "SecurityPolicies", - "fullName": "google.cloud.compute.v1beta.SecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_SecurityPolicies_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " List all of the ordered rules present in a single specified policy.", - "canonical": true, - "file": "security_policies.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.SecurityPolicies.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "security_policy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.SecurityPolicy", - "client": { - "shortName": "SecurityPoliciesClient", - "fullName": "google.cloud.compute.v1beta.SecurityPoliciesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.SecurityPolicies.Get", - "service": { - "shortName": "SecurityPolicies", - "fullName": "google.cloud.compute.v1beta.SecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_SecurityPolicies_GetRule_async", - "title": "AcceleratorTypes getRule Sample", - "origin": "API_DEFINITION", - "description": " Gets a rule at the specified priority.", - "canonical": true, - "file": "security_policies.get_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRule", - "fullName": "google.cloud.compute.v1beta.SecurityPolicies.GetRule", - "async": true, - "parameters": [ - { - "name": "priority", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "security_policy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.SecurityPolicyRule", - "client": { - "shortName": "SecurityPoliciesClient", - "fullName": "google.cloud.compute.v1beta.SecurityPoliciesClient" - }, - "method": { - "shortName": "GetRule", - "fullName": "google.cloud.compute.v1beta.SecurityPolicies.GetRule", - "service": { - "shortName": "SecurityPolicies", - "fullName": "google.cloud.compute.v1beta.SecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_SecurityPolicies_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a new policy in the specified project using the data included in the request.", - "canonical": true, - "file": "security_policies.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.SecurityPolicies.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "security_policy_resource", - "type": ".google.cloud.compute.v1beta.SecurityPolicy" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "SecurityPoliciesClient", - "fullName": "google.cloud.compute.v1beta.SecurityPoliciesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.SecurityPolicies.Insert", - "service": { - "shortName": "SecurityPolicies", - "fullName": "google.cloud.compute.v1beta.SecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_SecurityPolicies_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " List all the policies that have been configured for the specified project.", - "canonical": true, - "file": "security_policies.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.SecurityPolicies.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.SecurityPolicyList", - "client": { - "shortName": "SecurityPoliciesClient", - "fullName": "google.cloud.compute.v1beta.SecurityPoliciesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.SecurityPolicies.List", - "service": { - "shortName": "SecurityPolicies", - "fullName": "google.cloud.compute.v1beta.SecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_SecurityPolicies_ListPreconfiguredExpressionSets_async", - "title": "AcceleratorTypes listPreconfiguredExpressionSets Sample", - "origin": "API_DEFINITION", - "description": " Gets the current list of preconfigured Web Application Firewall (WAF) expressions.", - "canonical": true, - "file": "security_policies.list_preconfigured_expression_sets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 138, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPreconfiguredExpressionSets", - "fullName": "google.cloud.compute.v1beta.SecurityPolicies.ListPreconfiguredExpressionSets", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.SecurityPoliciesListPreconfiguredExpressionSetsResponse", - "client": { - "shortName": "SecurityPoliciesClient", - "fullName": "google.cloud.compute.v1beta.SecurityPoliciesClient" - }, - "method": { - "shortName": "ListPreconfiguredExpressionSets", - "fullName": "google.cloud.compute.v1beta.SecurityPolicies.ListPreconfiguredExpressionSets", - "service": { - "shortName": "SecurityPolicies", - "fullName": "google.cloud.compute.v1beta.SecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_SecurityPolicies_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patches the specified policy with the data included in the request. To clear fields in the policy, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.", - "canonical": true, - "file": "security_policies.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.SecurityPolicies.Patch", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "security_policy", - "type": "TYPE_STRING" - }, - { - "name": "security_policy_resource", - "type": ".google.cloud.compute.v1beta.SecurityPolicy" - }, - { - "name": "update_mask", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "SecurityPoliciesClient", - "fullName": "google.cloud.compute.v1beta.SecurityPoliciesClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.SecurityPolicies.Patch", - "service": { - "shortName": "SecurityPolicies", - "fullName": "google.cloud.compute.v1beta.SecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_SecurityPolicies_PatchRule_async", - "title": "AcceleratorTypes patchRule Sample", - "origin": "API_DEFINITION", - "description": " Patches a rule at the specified priority. To clear fields in the rule, leave the fields empty and specify them in the updateMask.", - "canonical": true, - "file": "security_policies.patch_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PatchRule", - "fullName": "google.cloud.compute.v1beta.SecurityPolicies.PatchRule", - "async": true, - "parameters": [ - { - "name": "priority", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "security_policy", - "type": "TYPE_STRING" - }, - { - "name": "security_policy_rule_resource", - "type": ".google.cloud.compute.v1beta.SecurityPolicyRule" - }, - { - "name": "update_mask", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "SecurityPoliciesClient", - "fullName": "google.cloud.compute.v1beta.SecurityPoliciesClient" - }, - "method": { - "shortName": "PatchRule", - "fullName": "google.cloud.compute.v1beta.SecurityPolicies.PatchRule", - "service": { - "shortName": "SecurityPolicies", - "fullName": "google.cloud.compute.v1beta.SecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_SecurityPolicies_RemoveRule_async", - "title": "AcceleratorTypes removeRule Sample", - "origin": "API_DEFINITION", - "description": " Deletes a rule at the specified priority.", - "canonical": true, - "file": "security_policies.remove_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveRule", - "fullName": "google.cloud.compute.v1beta.SecurityPolicies.RemoveRule", - "async": true, - "parameters": [ - { - "name": "priority", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "security_policy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "SecurityPoliciesClient", - "fullName": "google.cloud.compute.v1beta.SecurityPoliciesClient" - }, - "method": { - "shortName": "RemoveRule", - "fullName": "google.cloud.compute.v1beta.SecurityPolicies.RemoveRule", - "service": { - "shortName": "SecurityPolicies", - "fullName": "google.cloud.compute.v1beta.SecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_SecurityPolicies_SetLabels_async", - "title": "AcceleratorTypes setLabels Sample", - "origin": "API_DEFINITION", - "description": " Sets the labels on a security policy. To learn more about labels, read the Labeling Resources documentation.", - "canonical": true, - "file": "security_policies.set_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1beta.SecurityPolicies.SetLabels", - "async": true, - "parameters": [ - { - "name": "global_set_labels_request_resource", - "type": ".google.cloud.compute.v1beta.GlobalSetLabelsRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "SecurityPoliciesClient", - "fullName": "google.cloud.compute.v1beta.SecurityPoliciesClient" - }, - "method": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1beta.SecurityPolicies.SetLabels", - "service": { - "shortName": "SecurityPolicies", - "fullName": "google.cloud.compute.v1beta.SecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_SecurityPolicies_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "security_policies.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.SecurityPolicies.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "SecurityPoliciesClient", - "fullName": "google.cloud.compute.v1beta.SecurityPoliciesClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.SecurityPolicies.TestIamPermissions", - "service": { - "shortName": "SecurityPolicies", - "fullName": "google.cloud.compute.v1beta.SecurityPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ServiceAttachments_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of all ServiceAttachment resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "service_attachments.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.ServiceAttachments.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1beta.ServiceAttachmentAggregatedList", - "client": { - "shortName": "ServiceAttachmentsClient", - "fullName": "google.cloud.compute.v1beta.ServiceAttachmentsClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.ServiceAttachments.AggregatedList", - "service": { - "shortName": "ServiceAttachments", - "fullName": "google.cloud.compute.v1beta.ServiceAttachments" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ServiceAttachments_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified ServiceAttachment in the given scope", - "canonical": true, - "file": "service_attachments.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.ServiceAttachments.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "service_attachment", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "ServiceAttachmentsClient", - "fullName": "google.cloud.compute.v1beta.ServiceAttachmentsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.ServiceAttachments.Delete", - "service": { - "shortName": "ServiceAttachments", - "fullName": "google.cloud.compute.v1beta.ServiceAttachments" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ServiceAttachments_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified ServiceAttachment resource in the given scope.", - "canonical": true, - "file": "service_attachments.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.ServiceAttachments.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "service_attachment", - "type": "TYPE_STRING" - }, - { - "name": "show_nat_ips", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.ServiceAttachment", - "client": { - "shortName": "ServiceAttachmentsClient", - "fullName": "google.cloud.compute.v1beta.ServiceAttachmentsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.ServiceAttachments.Get", - "service": { - "shortName": "ServiceAttachments", - "fullName": "google.cloud.compute.v1beta.ServiceAttachments" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ServiceAttachments_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "service_attachments.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.ServiceAttachments.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "ServiceAttachmentsClient", - "fullName": "google.cloud.compute.v1beta.ServiceAttachmentsClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.ServiceAttachments.GetIamPolicy", - "service": { - "shortName": "ServiceAttachments", - "fullName": "google.cloud.compute.v1beta.ServiceAttachments" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ServiceAttachments_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a ServiceAttachment in the specified project in the given scope using the parameters that are included in the request.", - "canonical": true, - "file": "service_attachments.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.ServiceAttachments.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "service_attachment_resource", - "type": ".google.cloud.compute.v1beta.ServiceAttachment" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "ServiceAttachmentsClient", - "fullName": "google.cloud.compute.v1beta.ServiceAttachmentsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.ServiceAttachments.Insert", - "service": { - "shortName": "ServiceAttachments", - "fullName": "google.cloud.compute.v1beta.ServiceAttachments" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ServiceAttachments_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Lists the ServiceAttachments for a project in the given scope.", - "canonical": true, - "file": "service_attachments.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.ServiceAttachments.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.ServiceAttachmentList", - "client": { - "shortName": "ServiceAttachmentsClient", - "fullName": "google.cloud.compute.v1beta.ServiceAttachmentsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.ServiceAttachments.List", - "service": { - "shortName": "ServiceAttachments", - "fullName": "google.cloud.compute.v1beta.ServiceAttachments" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ServiceAttachments_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patches the specified ServiceAttachment resource with the data included in the request. This method supports PATCH semantics and usesJSON merge patch format and processing rules.", - "canonical": true, - "file": "service_attachments.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.ServiceAttachments.Patch", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "service_attachment", - "type": "TYPE_STRING" - }, - { - "name": "service_attachment_resource", - "type": ".google.cloud.compute.v1beta.ServiceAttachment" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "ServiceAttachmentsClient", - "fullName": "google.cloud.compute.v1beta.ServiceAttachmentsClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.ServiceAttachments.Patch", - "service": { - "shortName": "ServiceAttachments", - "fullName": "google.cloud.compute.v1beta.ServiceAttachments" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ServiceAttachments_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "service_attachments.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.ServiceAttachments.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_set_policy_request_resource", - "type": ".google.cloud.compute.v1beta.RegionSetPolicyRequest" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "ServiceAttachmentsClient", - "fullName": "google.cloud.compute.v1beta.ServiceAttachmentsClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.ServiceAttachments.SetIamPolicy", - "service": { - "shortName": "ServiceAttachments", - "fullName": "google.cloud.compute.v1beta.ServiceAttachments" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ServiceAttachments_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "service_attachments.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.ServiceAttachments.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "ServiceAttachmentsClient", - "fullName": "google.cloud.compute.v1beta.ServiceAttachmentsClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.ServiceAttachments.TestIamPermissions", - "service": { - "shortName": "ServiceAttachments", - "fullName": "google.cloud.compute.v1beta.ServiceAttachments" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_SnapshotGroups_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified SnapshotGroup resource", - "canonical": true, - "file": "snapshot_groups.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.SnapshotGroups.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "snapshot_group", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "SnapshotGroupsClient", - "fullName": "google.cloud.compute.v1beta.SnapshotGroupsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.SnapshotGroups.Delete", - "service": { - "shortName": "SnapshotGroups", - "fullName": "google.cloud.compute.v1beta.SnapshotGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_SnapshotGroups_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " returns the specified SnapshotGroup resource.", - "canonical": true, - "file": "snapshot_groups.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.SnapshotGroups.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "snapshot_group", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.SnapshotGroup", - "client": { - "shortName": "SnapshotGroupsClient", - "fullName": "google.cloud.compute.v1beta.SnapshotGroupsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.SnapshotGroups.Get", - "service": { - "shortName": "SnapshotGroups", - "fullName": "google.cloud.compute.v1beta.SnapshotGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_SnapshotGroups_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "snapshot_groups.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.SnapshotGroups.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "SnapshotGroupsClient", - "fullName": "google.cloud.compute.v1beta.SnapshotGroupsClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.SnapshotGroups.GetIamPolicy", - "service": { - "shortName": "SnapshotGroups", - "fullName": "google.cloud.compute.v1beta.SnapshotGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_SnapshotGroups_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a snapshot group in the specified project using the data included in the request.", - "canonical": true, - "file": "snapshot_groups.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.SnapshotGroups.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "snapshot_group_resource", - "type": ".google.cloud.compute.v1beta.SnapshotGroup" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "SnapshotGroupsClient", - "fullName": "google.cloud.compute.v1beta.SnapshotGroupsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.SnapshotGroups.Insert", - "service": { - "shortName": "SnapshotGroups", - "fullName": "google.cloud.compute.v1beta.SnapshotGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_SnapshotGroups_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " retrieves the list of SnapshotGroup resources contained within the specified project.", - "canonical": true, - "file": "snapshot_groups.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.SnapshotGroups.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.ListSnapshotGroups", - "client": { - "shortName": "SnapshotGroupsClient", - "fullName": "google.cloud.compute.v1beta.SnapshotGroupsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.SnapshotGroups.List", - "service": { - "shortName": "SnapshotGroups", - "fullName": "google.cloud.compute.v1beta.SnapshotGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_SnapshotGroups_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "snapshot_groups.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.SnapshotGroups.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "global_set_policy_request_resource", - "type": ".google.cloud.compute.v1beta.GlobalSetPolicyRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "SnapshotGroupsClient", - "fullName": "google.cloud.compute.v1beta.SnapshotGroupsClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.SnapshotGroups.SetIamPolicy", - "service": { - "shortName": "SnapshotGroups", - "fullName": "google.cloud.compute.v1beta.SnapshotGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_SnapshotGroups_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "snapshot_groups.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.SnapshotGroups.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "SnapshotGroupsClient", - "fullName": "google.cloud.compute.v1beta.SnapshotGroupsClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.SnapshotGroups.TestIamPermissions", - "service": { - "shortName": "SnapshotGroups", - "fullName": "google.cloud.compute.v1beta.SnapshotGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Snapshots_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of all of the snapshots in your project across all regions and global scope. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "snapshots.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.Snapshots.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1beta.SnapshotAggregatedList", - "client": { - "shortName": "SnapshotsClient", - "fullName": "google.cloud.compute.v1beta.SnapshotsClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.Snapshots.AggregatedList", - "service": { - "shortName": "Snapshots", - "fullName": "google.cloud.compute.v1beta.Snapshots" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Snapshots_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified Snapshot resource. Keep in mind that deleting a single snapshot might not necessarily delete all the data on that snapshot. If any data on the snapshot that is marked for deletion is needed for subsequent snapshots, the data will be moved to the next corresponding snapshot. For more information, seeDeleting snapshots.", - "canonical": true, - "file": "snapshots.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.Snapshots.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "snapshot", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "SnapshotsClient", - "fullName": "google.cloud.compute.v1beta.SnapshotsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.Snapshots.Delete", - "service": { - "shortName": "Snapshots", - "fullName": "google.cloud.compute.v1beta.Snapshots" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Snapshots_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified Snapshot resource.", - "canonical": true, - "file": "snapshots.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.Snapshots.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "snapshot", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Snapshot", - "client": { - "shortName": "SnapshotsClient", - "fullName": "google.cloud.compute.v1beta.SnapshotsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.Snapshots.Get", - "service": { - "shortName": "Snapshots", - "fullName": "google.cloud.compute.v1beta.Snapshots" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Snapshots_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "snapshots.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.Snapshots.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "SnapshotsClient", - "fullName": "google.cloud.compute.v1beta.SnapshotsClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.Snapshots.GetIamPolicy", - "service": { - "shortName": "Snapshots", - "fullName": "google.cloud.compute.v1beta.Snapshots" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Snapshots_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a snapshot in the specified project using the data included in the request. For regular snapshot creation, consider using this method instead of disks.createSnapshot, as this method supports more features, such as creating snapshots in a project different from the source disk project.", - "canonical": true, - "file": "snapshots.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.Snapshots.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "snapshot_resource", - "type": ".google.cloud.compute.v1beta.Snapshot" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "SnapshotsClient", - "fullName": "google.cloud.compute.v1beta.SnapshotsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.Snapshots.Insert", - "service": { - "shortName": "Snapshots", - "fullName": "google.cloud.compute.v1beta.Snapshots" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Snapshots_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of Snapshot resources contained within the specified project.", - "canonical": true, - "file": "snapshots.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.Snapshots.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.SnapshotList", - "client": { - "shortName": "SnapshotsClient", - "fullName": "google.cloud.compute.v1beta.SnapshotsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.Snapshots.List", - "service": { - "shortName": "Snapshots", - "fullName": "google.cloud.compute.v1beta.Snapshots" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Snapshots_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "snapshots.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.Snapshots.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "global_set_policy_request_resource", - "type": ".google.cloud.compute.v1beta.GlobalSetPolicyRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "SnapshotsClient", - "fullName": "google.cloud.compute.v1beta.SnapshotsClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.Snapshots.SetIamPolicy", - "service": { - "shortName": "Snapshots", - "fullName": "google.cloud.compute.v1beta.Snapshots" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Snapshots_SetLabels_async", - "title": "AcceleratorTypes setLabels Sample", - "origin": "API_DEFINITION", - "description": " Sets the labels on a snapshot. To learn more about labels, read theLabeling Resources documentation.", - "canonical": true, - "file": "snapshots.set_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1beta.Snapshots.SetLabels", - "async": true, - "parameters": [ - { - "name": "global_set_labels_request_resource", - "type": ".google.cloud.compute.v1beta.GlobalSetLabelsRequest" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "SnapshotsClient", - "fullName": "google.cloud.compute.v1beta.SnapshotsClient" - }, - "method": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1beta.Snapshots.SetLabels", - "service": { - "shortName": "Snapshots", - "fullName": "google.cloud.compute.v1beta.Snapshots" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Snapshots_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "snapshots.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.Snapshots.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "SnapshotsClient", - "fullName": "google.cloud.compute.v1beta.SnapshotsClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.Snapshots.TestIamPermissions", - "service": { - "shortName": "Snapshots", - "fullName": "google.cloud.compute.v1beta.Snapshots" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Snapshots_UpdateKmsKey_async", - "title": "AcceleratorTypes updateKmsKey Sample", - "origin": "API_DEFINITION", - "description": " Rotates the customer-managed encryption key to the latest version for the specified snapshot.", - "canonical": true, - "file": "snapshots.update_kms_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateKmsKey", - "fullName": "google.cloud.compute.v1beta.Snapshots.UpdateKmsKey", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "snapshot", - "type": "TYPE_STRING" - }, - { - "name": "snapshot_update_kms_key_request_resource", - "type": ".google.cloud.compute.v1beta.SnapshotUpdateKmsKeyRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "SnapshotsClient", - "fullName": "google.cloud.compute.v1beta.SnapshotsClient" - }, - "method": { - "shortName": "UpdateKmsKey", - "fullName": "google.cloud.compute.v1beta.Snapshots.UpdateKmsKey", - "service": { - "shortName": "Snapshots", - "fullName": "google.cloud.compute.v1beta.Snapshots" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_SnapshotSettingsService_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Get snapshot settings.", - "canonical": true, - "file": "snapshot_settings_service.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.SnapshotSettingsService.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.SnapshotSettings", - "client": { - "shortName": "SnapshotSettingsServiceClient", - "fullName": "google.cloud.compute.v1beta.SnapshotSettingsServiceClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.SnapshotSettingsService.Get", - "service": { - "shortName": "SnapshotSettingsService", - "fullName": "google.cloud.compute.v1beta.SnapshotSettingsService" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_SnapshotSettingsService_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patch snapshot settings.", - "canonical": true, - "file": "snapshot_settings_service.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.SnapshotSettingsService.Patch", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "snapshot_settings_resource", - "type": ".google.cloud.compute.v1beta.SnapshotSettings" - }, - { - "name": "update_mask", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "SnapshotSettingsServiceClient", - "fullName": "google.cloud.compute.v1beta.SnapshotSettingsServiceClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.SnapshotSettingsService.Patch", - "service": { - "shortName": "SnapshotSettingsService", - "fullName": "google.cloud.compute.v1beta.SnapshotSettingsService" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_SslCertificates_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of all SslCertificate resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "ssl_certificates.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.SslCertificates.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1beta.SslCertificateAggregatedList", - "client": { - "shortName": "SslCertificatesClient", - "fullName": "google.cloud.compute.v1beta.SslCertificatesClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.SslCertificates.AggregatedList", - "service": { - "shortName": "SslCertificates", - "fullName": "google.cloud.compute.v1beta.SslCertificates" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_SslCertificates_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified SslCertificate resource.", - "canonical": true, - "file": "ssl_certificates.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.SslCertificates.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "ssl_certificate", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "SslCertificatesClient", - "fullName": "google.cloud.compute.v1beta.SslCertificatesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.SslCertificates.Delete", - "service": { - "shortName": "SslCertificates", - "fullName": "google.cloud.compute.v1beta.SslCertificates" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_SslCertificates_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified SslCertificate resource.", - "canonical": true, - "file": "ssl_certificates.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.SslCertificates.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "ssl_certificate", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.SslCertificate", - "client": { - "shortName": "SslCertificatesClient", - "fullName": "google.cloud.compute.v1beta.SslCertificatesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.SslCertificates.Get", - "service": { - "shortName": "SslCertificates", - "fullName": "google.cloud.compute.v1beta.SslCertificates" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_SslCertificates_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a SslCertificate resource in the specified project using the data included in the request.", - "canonical": true, - "file": "ssl_certificates.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.SslCertificates.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "ssl_certificate_resource", - "type": ".google.cloud.compute.v1beta.SslCertificate" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "SslCertificatesClient", - "fullName": "google.cloud.compute.v1beta.SslCertificatesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.SslCertificates.Insert", - "service": { - "shortName": "SslCertificates", - "fullName": "google.cloud.compute.v1beta.SslCertificates" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_SslCertificates_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of SslCertificate resources available to the specified project.", - "canonical": true, - "file": "ssl_certificates.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.SslCertificates.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.SslCertificateList", - "client": { - "shortName": "SslCertificatesClient", - "fullName": "google.cloud.compute.v1beta.SslCertificatesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.SslCertificates.List", - "service": { - "shortName": "SslCertificates", - "fullName": "google.cloud.compute.v1beta.SslCertificates" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_SslCertificates_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "ssl_certificates.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.SslCertificates.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "SslCertificatesClient", - "fullName": "google.cloud.compute.v1beta.SslCertificatesClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.SslCertificates.TestIamPermissions", - "service": { - "shortName": "SslCertificates", - "fullName": "google.cloud.compute.v1beta.SslCertificates" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_SslPolicies_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of all SslPolicy resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "ssl_policies.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.SslPolicies.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1beta.SslPoliciesAggregatedList", - "client": { - "shortName": "SslPoliciesClient", - "fullName": "google.cloud.compute.v1beta.SslPoliciesClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.SslPolicies.AggregatedList", - "service": { - "shortName": "SslPolicies", - "fullName": "google.cloud.compute.v1beta.SslPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_SslPolicies_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified SSL policy. The SSL policy resource can be deleted only if it is not in use by any TargetHttpsProxy or TargetSslProxy resources.", - "canonical": true, - "file": "ssl_policies.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.SslPolicies.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "ssl_policy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "SslPoliciesClient", - "fullName": "google.cloud.compute.v1beta.SslPoliciesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.SslPolicies.Delete", - "service": { - "shortName": "SslPolicies", - "fullName": "google.cloud.compute.v1beta.SslPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_SslPolicies_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Lists all of the ordered rules present in a single specified policy.", - "canonical": true, - "file": "ssl_policies.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.SslPolicies.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "ssl_policy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.SslPolicy", - "client": { - "shortName": "SslPoliciesClient", - "fullName": "google.cloud.compute.v1beta.SslPoliciesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.SslPolicies.Get", - "service": { - "shortName": "SslPolicies", - "fullName": "google.cloud.compute.v1beta.SslPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_SslPolicies_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified SSL policy resource.", - "canonical": true, - "file": "ssl_policies.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.SslPolicies.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "ssl_policy_resource", - "type": ".google.cloud.compute.v1beta.SslPolicy" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "SslPoliciesClient", - "fullName": "google.cloud.compute.v1beta.SslPoliciesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.SslPolicies.Insert", - "service": { - "shortName": "SslPolicies", - "fullName": "google.cloud.compute.v1beta.SslPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_SslPolicies_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Lists all the SSL policies that have been configured for the specified project.", - "canonical": true, - "file": "ssl_policies.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.SslPolicies.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.SslPoliciesList", - "client": { - "shortName": "SslPoliciesClient", - "fullName": "google.cloud.compute.v1beta.SslPoliciesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.SslPolicies.List", - "service": { - "shortName": "SslPolicies", - "fullName": "google.cloud.compute.v1beta.SslPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_SslPolicies_ListAvailableFeatures_async", - "title": "AcceleratorTypes listAvailableFeatures Sample", - "origin": "API_DEFINITION", - "description": " Lists all features that can be specified in the SSL policy when using custom profile.", - "canonical": true, - "file": "ssl_policies.list_available_features.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 138, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAvailableFeatures", - "fullName": "google.cloud.compute.v1beta.SslPolicies.ListAvailableFeatures", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.SslPoliciesListAvailableFeaturesResponse", - "client": { - "shortName": "SslPoliciesClient", - "fullName": "google.cloud.compute.v1beta.SslPoliciesClient" - }, - "method": { - "shortName": "ListAvailableFeatures", - "fullName": "google.cloud.compute.v1beta.SslPolicies.ListAvailableFeatures", - "service": { - "shortName": "SslPolicies", - "fullName": "google.cloud.compute.v1beta.SslPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_SslPolicies_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patches the specified SSL policy with the data included in the request.", - "canonical": true, - "file": "ssl_policies.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.SslPolicies.Patch", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "ssl_policy", - "type": "TYPE_STRING" - }, - { - "name": "ssl_policy_resource", - "type": ".google.cloud.compute.v1beta.SslPolicy" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "SslPoliciesClient", - "fullName": "google.cloud.compute.v1beta.SslPoliciesClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.SslPolicies.Patch", - "service": { - "shortName": "SslPolicies", - "fullName": "google.cloud.compute.v1beta.SslPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_SslPolicies_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "ssl_policies.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.SslPolicies.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "SslPoliciesClient", - "fullName": "google.cloud.compute.v1beta.SslPoliciesClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.SslPolicies.TestIamPermissions", - "service": { - "shortName": "SslPolicies", - "fullName": "google.cloud.compute.v1beta.SslPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_StoragePools_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of storage pools. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "storage_pools.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.StoragePools.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1beta.StoragePoolAggregatedList", - "client": { - "shortName": "StoragePoolsClient", - "fullName": "google.cloud.compute.v1beta.StoragePoolsClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.StoragePools.AggregatedList", - "service": { - "shortName": "StoragePools", - "fullName": "google.cloud.compute.v1beta.StoragePools" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_StoragePools_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified storage pool. Deleting a storagePool removes its data permanently and is irreversible. However, deleting a storagePool does not delete any snapshots previously made from the storagePool. You must separately delete snapshots.", - "canonical": true, - "file": "storage_pools.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.StoragePools.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "storage_pool", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "StoragePoolsClient", - "fullName": "google.cloud.compute.v1beta.StoragePoolsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.StoragePools.Delete", - "service": { - "shortName": "StoragePools", - "fullName": "google.cloud.compute.v1beta.StoragePools" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_StoragePools_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns a specified storage pool. Gets a list of available storage pools by making a list() request.", - "canonical": true, - "file": "storage_pools.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.StoragePools.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "storage_pool", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.StoragePool", - "client": { - "shortName": "StoragePoolsClient", - "fullName": "google.cloud.compute.v1beta.StoragePoolsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.StoragePools.Get", - "service": { - "shortName": "StoragePools", - "fullName": "google.cloud.compute.v1beta.StoragePools" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_StoragePools_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "storage_pools.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.StoragePools.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "StoragePoolsClient", - "fullName": "google.cloud.compute.v1beta.StoragePoolsClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.StoragePools.GetIamPolicy", - "service": { - "shortName": "StoragePools", - "fullName": "google.cloud.compute.v1beta.StoragePools" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_StoragePools_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a storage pool in the specified project using the data in the request.", - "canonical": true, - "file": "storage_pools.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.StoragePools.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "storage_pool_resource", - "type": ".google.cloud.compute.v1beta.StoragePool" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "StoragePoolsClient", - "fullName": "google.cloud.compute.v1beta.StoragePoolsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.StoragePools.Insert", - "service": { - "shortName": "StoragePools", - "fullName": "google.cloud.compute.v1beta.StoragePools" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_StoragePools_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of storage pools contained within the specified zone.", - "canonical": true, - "file": "storage_pools.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.StoragePools.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.StoragePoolList", - "client": { - "shortName": "StoragePoolsClient", - "fullName": "google.cloud.compute.v1beta.StoragePoolsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.StoragePools.List", - "service": { - "shortName": "StoragePools", - "fullName": "google.cloud.compute.v1beta.StoragePools" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_StoragePools_ListDisks_async", - "title": "AcceleratorTypes listDisks Sample", - "origin": "API_DEFINITION", - "description": " Lists the disks in a specified storage pool.", - "canonical": true, - "file": "storage_pools.list_disks.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 150, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDisks", - "fullName": "google.cloud.compute.v1beta.StoragePools.ListDisks", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "storage_pool", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.StoragePoolListDisks", - "client": { - "shortName": "StoragePoolsClient", - "fullName": "google.cloud.compute.v1beta.StoragePoolsClient" - }, - "method": { - "shortName": "ListDisks", - "fullName": "google.cloud.compute.v1beta.StoragePools.ListDisks", - "service": { - "shortName": "StoragePools", - "fullName": "google.cloud.compute.v1beta.StoragePools" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_StoragePools_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "storage_pools.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.StoragePools.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "zone_set_policy_request_resource", - "type": ".google.cloud.compute.v1beta.ZoneSetPolicyRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "StoragePoolsClient", - "fullName": "google.cloud.compute.v1beta.StoragePoolsClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.StoragePools.SetIamPolicy", - "service": { - "shortName": "StoragePools", - "fullName": "google.cloud.compute.v1beta.StoragePools" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_StoragePools_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "storage_pools.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.StoragePools.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "StoragePoolsClient", - "fullName": "google.cloud.compute.v1beta.StoragePoolsClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.StoragePools.TestIamPermissions", - "service": { - "shortName": "StoragePools", - "fullName": "google.cloud.compute.v1beta.StoragePools" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_StoragePools_Update_async", - "title": "AcceleratorTypes update Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified storagePool with the data included in the request. The update is performed only on selected fields included as part of update-mask. Only the following fields can be modified: pool_provisioned_capacity_gb, pool_provisioned_iops and pool_provisioned_throughput.", - "canonical": true, - "file": "storage_pools.update.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1beta.StoragePools.Update", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "storage_pool", - "type": "TYPE_STRING" - }, - { - "name": "storage_pool_resource", - "type": ".google.cloud.compute.v1beta.StoragePool" - }, - { - "name": "update_mask", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "StoragePoolsClient", - "fullName": "google.cloud.compute.v1beta.StoragePoolsClient" - }, - "method": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1beta.StoragePools.Update", - "service": { - "shortName": "StoragePools", - "fullName": "google.cloud.compute.v1beta.StoragePools" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_StoragePoolTypes_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of storage pool types. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "storage_pool_types.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.StoragePoolTypes.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1beta.StoragePoolTypeAggregatedList", - "client": { - "shortName": "StoragePoolTypesClient", - "fullName": "google.cloud.compute.v1beta.StoragePoolTypesClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.StoragePoolTypes.AggregatedList", - "service": { - "shortName": "StoragePoolTypes", - "fullName": "google.cloud.compute.v1beta.StoragePoolTypes" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_StoragePoolTypes_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified storage pool type.", - "canonical": true, - "file": "storage_pool_types.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.StoragePoolTypes.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "storage_pool_type", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.StoragePoolType", - "client": { - "shortName": "StoragePoolTypesClient", - "fullName": "google.cloud.compute.v1beta.StoragePoolTypesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.StoragePoolTypes.Get", - "service": { - "shortName": "StoragePoolTypes", - "fullName": "google.cloud.compute.v1beta.StoragePoolTypes" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_StoragePoolTypes_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of storage pool types available to the specified project.", - "canonical": true, - "file": "storage_pool_types.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.StoragePoolTypes.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.StoragePoolTypeList", - "client": { - "shortName": "StoragePoolTypesClient", - "fullName": "google.cloud.compute.v1beta.StoragePoolTypesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.StoragePoolTypes.List", - "service": { - "shortName": "StoragePoolTypes", - "fullName": "google.cloud.compute.v1beta.StoragePoolTypes" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Subnetworks_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of subnetworks. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "subnetworks.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 163, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.Subnetworks.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - }, - { - "name": "views", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.SubnetworkAggregatedList", - "client": { - "shortName": "SubnetworksClient", - "fullName": "google.cloud.compute.v1beta.SubnetworksClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.Subnetworks.AggregatedList", - "service": { - "shortName": "Subnetworks", - "fullName": "google.cloud.compute.v1beta.Subnetworks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Subnetworks_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified subnetwork.", - "canonical": true, - "file": "subnetworks.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.Subnetworks.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "subnetwork", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "SubnetworksClient", - "fullName": "google.cloud.compute.v1beta.SubnetworksClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.Subnetworks.Delete", - "service": { - "shortName": "Subnetworks", - "fullName": "google.cloud.compute.v1beta.Subnetworks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Subnetworks_ExpandIpCidrRange_async", - "title": "AcceleratorTypes expandIpCidrRange Sample", - "origin": "API_DEFINITION", - "description": " Expands the IP CIDR range of the subnetwork to a specified value.", - "canonical": true, - "file": "subnetworks.expand_ip_cidr_range.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExpandIpCidrRange", - "fullName": "google.cloud.compute.v1beta.Subnetworks.ExpandIpCidrRange", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "subnetwork", - "type": "TYPE_STRING" - }, - { - "name": "subnetworks_expand_ip_cidr_range_request_resource", - "type": ".google.cloud.compute.v1beta.SubnetworksExpandIpCidrRangeRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "SubnetworksClient", - "fullName": "google.cloud.compute.v1beta.SubnetworksClient" - }, - "method": { - "shortName": "ExpandIpCidrRange", - "fullName": "google.cloud.compute.v1beta.Subnetworks.ExpandIpCidrRange", - "service": { - "shortName": "Subnetworks", - "fullName": "google.cloud.compute.v1beta.Subnetworks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Subnetworks_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified subnetwork.", - "canonical": true, - "file": "subnetworks.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.Subnetworks.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "subnetwork", - "type": "TYPE_STRING" - }, - { - "name": "views", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Subnetwork", - "client": { - "shortName": "SubnetworksClient", - "fullName": "google.cloud.compute.v1beta.SubnetworksClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.Subnetworks.Get", - "service": { - "shortName": "Subnetworks", - "fullName": "google.cloud.compute.v1beta.Subnetworks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Subnetworks_GetIamPolicy_async", - "title": "AcceleratorTypes getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May be empty if no such policy or resource exists.", - "canonical": true, - "file": "subnetworks.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.Subnetworks.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "options_requested_policy_version", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "SubnetworksClient", - "fullName": "google.cloud.compute.v1beta.SubnetworksClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.compute.v1beta.Subnetworks.GetIamPolicy", - "service": { - "shortName": "Subnetworks", - "fullName": "google.cloud.compute.v1beta.Subnetworks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Subnetworks_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a subnetwork in the specified project using the data included in the request.", - "canonical": true, - "file": "subnetworks.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.Subnetworks.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "subnetwork_resource", - "type": ".google.cloud.compute.v1beta.Subnetwork" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "SubnetworksClient", - "fullName": "google.cloud.compute.v1beta.SubnetworksClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.Subnetworks.Insert", - "service": { - "shortName": "Subnetworks", - "fullName": "google.cloud.compute.v1beta.Subnetworks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Subnetworks_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of subnetworks available to the specified project.", - "canonical": true, - "file": "subnetworks.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 153, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.Subnetworks.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "views", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.SubnetworkList", - "client": { - "shortName": "SubnetworksClient", - "fullName": "google.cloud.compute.v1beta.SubnetworksClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.Subnetworks.List", - "service": { - "shortName": "Subnetworks", - "fullName": "google.cloud.compute.v1beta.Subnetworks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Subnetworks_ListUsable_async", - "title": "AcceleratorTypes listUsable Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of all usable subnetworks in the project.", - "canonical": true, - "file": "subnetworks.list_usable.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 146, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListUsable", - "fullName": "google.cloud.compute.v1beta.Subnetworks.ListUsable", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.UsableSubnetworksAggregatedList", - "client": { - "shortName": "SubnetworksClient", - "fullName": "google.cloud.compute.v1beta.SubnetworksClient" - }, - "method": { - "shortName": "ListUsable", - "fullName": "google.cloud.compute.v1beta.Subnetworks.ListUsable", - "service": { - "shortName": "Subnetworks", - "fullName": "google.cloud.compute.v1beta.Subnetworks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Subnetworks_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patches the specified subnetwork with the data included in the request. Only certain fields can be updated with a patch request as indicated in the field descriptions. You must specify the current fingerprint of the subnetwork resource being patched.", - "canonical": true, - "file": "subnetworks.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 94, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.Subnetworks.Patch", - "async": true, - "parameters": [ - { - "name": "drain_timeout_seconds", - "type": "TYPE_INT32" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "subnetwork", - "type": "TYPE_STRING" - }, - { - "name": "subnetwork_resource", - "type": ".google.cloud.compute.v1beta.Subnetwork" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "SubnetworksClient", - "fullName": "google.cloud.compute.v1beta.SubnetworksClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.Subnetworks.Patch", - "service": { - "shortName": "Subnetworks", - "fullName": "google.cloud.compute.v1beta.Subnetworks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Subnetworks_SetIamPolicy_async", - "title": "AcceleratorTypes setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "subnetworks.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.Subnetworks.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_set_policy_request_resource", - "type": ".google.cloud.compute.v1beta.RegionSetPolicyRequest" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Policy", - "client": { - "shortName": "SubnetworksClient", - "fullName": "google.cloud.compute.v1beta.SubnetworksClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.compute.v1beta.Subnetworks.SetIamPolicy", - "service": { - "shortName": "Subnetworks", - "fullName": "google.cloud.compute.v1beta.Subnetworks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Subnetworks_SetPrivateIpGoogleAccess_async", - "title": "AcceleratorTypes setPrivateIpGoogleAccess Sample", - "origin": "API_DEFINITION", - "description": " Set whether VMs in this subnet can access Google services without assigning external IP addresses through Private Google Access.", - "canonical": true, - "file": "subnetworks.set_private_ip_google_access.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetPrivateIpGoogleAccess", - "fullName": "google.cloud.compute.v1beta.Subnetworks.SetPrivateIpGoogleAccess", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "subnetwork", - "type": "TYPE_STRING" - }, - { - "name": "subnetworks_set_private_ip_google_access_request_resource", - "type": ".google.cloud.compute.v1beta.SubnetworksSetPrivateIpGoogleAccessRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "SubnetworksClient", - "fullName": "google.cloud.compute.v1beta.SubnetworksClient" - }, - "method": { - "shortName": "SetPrivateIpGoogleAccess", - "fullName": "google.cloud.compute.v1beta.Subnetworks.SetPrivateIpGoogleAccess", - "service": { - "shortName": "Subnetworks", - "fullName": "google.cloud.compute.v1beta.Subnetworks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Subnetworks_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "subnetworks.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.Subnetworks.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "SubnetworksClient", - "fullName": "google.cloud.compute.v1beta.SubnetworksClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.Subnetworks.TestIamPermissions", - "service": { - "shortName": "Subnetworks", - "fullName": "google.cloud.compute.v1beta.Subnetworks" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetGrpcProxies_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified TargetGrpcProxy in the given scope", - "canonical": true, - "file": "target_grpc_proxies.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.TargetGrpcProxies.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_grpc_proxy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "TargetGrpcProxiesClient", - "fullName": "google.cloud.compute.v1beta.TargetGrpcProxiesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.TargetGrpcProxies.Delete", - "service": { - "shortName": "TargetGrpcProxies", - "fullName": "google.cloud.compute.v1beta.TargetGrpcProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetGrpcProxies_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified TargetGrpcProxy resource in the given scope.", - "canonical": true, - "file": "target_grpc_proxies.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.TargetGrpcProxies.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "target_grpc_proxy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.TargetGrpcProxy", - "client": { - "shortName": "TargetGrpcProxiesClient", - "fullName": "google.cloud.compute.v1beta.TargetGrpcProxiesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.TargetGrpcProxies.Get", - "service": { - "shortName": "TargetGrpcProxies", - "fullName": "google.cloud.compute.v1beta.TargetGrpcProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetGrpcProxies_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a TargetGrpcProxy in the specified project in the given scope using the parameters that are included in the request.", - "canonical": true, - "file": "target_grpc_proxies.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.TargetGrpcProxies.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_grpc_proxy_resource", - "type": ".google.cloud.compute.v1beta.TargetGrpcProxy" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "TargetGrpcProxiesClient", - "fullName": "google.cloud.compute.v1beta.TargetGrpcProxiesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.TargetGrpcProxies.Insert", - "service": { - "shortName": "TargetGrpcProxies", - "fullName": "google.cloud.compute.v1beta.TargetGrpcProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetGrpcProxies_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Lists the TargetGrpcProxies for a project in the given scope.", - "canonical": true, - "file": "target_grpc_proxies.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.TargetGrpcProxies.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.TargetGrpcProxyList", - "client": { - "shortName": "TargetGrpcProxiesClient", - "fullName": "google.cloud.compute.v1beta.TargetGrpcProxiesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.TargetGrpcProxies.List", - "service": { - "shortName": "TargetGrpcProxies", - "fullName": "google.cloud.compute.v1beta.TargetGrpcProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetGrpcProxies_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patches the specified TargetGrpcProxy resource with the data included in the request. This method supports PATCH semantics and usesJSON merge patch format and processing rules.", - "canonical": true, - "file": "target_grpc_proxies.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.TargetGrpcProxies.Patch", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_grpc_proxy", - "type": "TYPE_STRING" - }, - { - "name": "target_grpc_proxy_resource", - "type": ".google.cloud.compute.v1beta.TargetGrpcProxy" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "TargetGrpcProxiesClient", - "fullName": "google.cloud.compute.v1beta.TargetGrpcProxiesClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.TargetGrpcProxies.Patch", - "service": { - "shortName": "TargetGrpcProxies", - "fullName": "google.cloud.compute.v1beta.TargetGrpcProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetGrpcProxies_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "target_grpc_proxies.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.TargetGrpcProxies.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "TargetGrpcProxiesClient", - "fullName": "google.cloud.compute.v1beta.TargetGrpcProxiesClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.TargetGrpcProxies.TestIamPermissions", - "service": { - "shortName": "TargetGrpcProxies", - "fullName": "google.cloud.compute.v1beta.TargetGrpcProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetHttpProxies_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of all TargetHttpProxy resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "target_http_proxies.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.TargetHttpProxies.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1beta.TargetHttpProxyAggregatedList", - "client": { - "shortName": "TargetHttpProxiesClient", - "fullName": "google.cloud.compute.v1beta.TargetHttpProxiesClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.TargetHttpProxies.AggregatedList", - "service": { - "shortName": "TargetHttpProxies", - "fullName": "google.cloud.compute.v1beta.TargetHttpProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetHttpProxies_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified TargetHttpProxy resource.", - "canonical": true, - "file": "target_http_proxies.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.TargetHttpProxies.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_http_proxy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "TargetHttpProxiesClient", - "fullName": "google.cloud.compute.v1beta.TargetHttpProxiesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.TargetHttpProxies.Delete", - "service": { - "shortName": "TargetHttpProxies", - "fullName": "google.cloud.compute.v1beta.TargetHttpProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetHttpProxies_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified TargetHttpProxy resource.", - "canonical": true, - "file": "target_http_proxies.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.TargetHttpProxies.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "target_http_proxy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.TargetHttpProxy", - "client": { - "shortName": "TargetHttpProxiesClient", - "fullName": "google.cloud.compute.v1beta.TargetHttpProxiesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.TargetHttpProxies.Get", - "service": { - "shortName": "TargetHttpProxies", - "fullName": "google.cloud.compute.v1beta.TargetHttpProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetHttpProxies_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a TargetHttpProxy resource in the specified project using the data included in the request.", - "canonical": true, - "file": "target_http_proxies.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.TargetHttpProxies.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_http_proxy_resource", - "type": ".google.cloud.compute.v1beta.TargetHttpProxy" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "TargetHttpProxiesClient", - "fullName": "google.cloud.compute.v1beta.TargetHttpProxiesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.TargetHttpProxies.Insert", - "service": { - "shortName": "TargetHttpProxies", - "fullName": "google.cloud.compute.v1beta.TargetHttpProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetHttpProxies_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of TargetHttpProxy resources available to the specified project.", - "canonical": true, - "file": "target_http_proxies.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.TargetHttpProxies.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.TargetHttpProxyList", - "client": { - "shortName": "TargetHttpProxiesClient", - "fullName": "google.cloud.compute.v1beta.TargetHttpProxiesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.TargetHttpProxies.List", - "service": { - "shortName": "TargetHttpProxies", - "fullName": "google.cloud.compute.v1beta.TargetHttpProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetHttpProxies_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patches the specified TargetHttpProxy resource with the data included in the request. This method supports PATCH semantics and usesJSON merge patch format and processing rules.", - "canonical": true, - "file": "target_http_proxies.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.TargetHttpProxies.Patch", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_http_proxy", - "type": "TYPE_STRING" - }, - { - "name": "target_http_proxy_resource", - "type": ".google.cloud.compute.v1beta.TargetHttpProxy" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "TargetHttpProxiesClient", - "fullName": "google.cloud.compute.v1beta.TargetHttpProxiesClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.TargetHttpProxies.Patch", - "service": { - "shortName": "TargetHttpProxies", - "fullName": "google.cloud.compute.v1beta.TargetHttpProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetHttpProxies_SetUrlMap_async", - "title": "AcceleratorTypes setUrlMap Sample", - "origin": "API_DEFINITION", - "description": " Changes the URL map for TargetHttpProxy.", - "canonical": true, - "file": "target_http_proxies.set_url_map.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetUrlMap", - "fullName": "google.cloud.compute.v1beta.TargetHttpProxies.SetUrlMap", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_http_proxy", - "type": "TYPE_STRING" - }, - { - "name": "url_map_reference_resource", - "type": ".google.cloud.compute.v1beta.UrlMapReference" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "TargetHttpProxiesClient", - "fullName": "google.cloud.compute.v1beta.TargetHttpProxiesClient" - }, - "method": { - "shortName": "SetUrlMap", - "fullName": "google.cloud.compute.v1beta.TargetHttpProxies.SetUrlMap", - "service": { - "shortName": "TargetHttpProxies", - "fullName": "google.cloud.compute.v1beta.TargetHttpProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetHttpProxies_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "target_http_proxies.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.TargetHttpProxies.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "TargetHttpProxiesClient", - "fullName": "google.cloud.compute.v1beta.TargetHttpProxiesClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.TargetHttpProxies.TestIamPermissions", - "service": { - "shortName": "TargetHttpProxies", - "fullName": "google.cloud.compute.v1beta.TargetHttpProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetHttpsProxies_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of all TargetHttpsProxy resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "target_https_proxies.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.TargetHttpsProxies.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1beta.TargetHttpsProxyAggregatedList", - "client": { - "shortName": "TargetHttpsProxiesClient", - "fullName": "google.cloud.compute.v1beta.TargetHttpsProxiesClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.TargetHttpsProxies.AggregatedList", - "service": { - "shortName": "TargetHttpsProxies", - "fullName": "google.cloud.compute.v1beta.TargetHttpsProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetHttpsProxies_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified TargetHttpsProxy resource.", - "canonical": true, - "file": "target_https_proxies.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.TargetHttpsProxies.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_https_proxy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "TargetHttpsProxiesClient", - "fullName": "google.cloud.compute.v1beta.TargetHttpsProxiesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.TargetHttpsProxies.Delete", - "service": { - "shortName": "TargetHttpsProxies", - "fullName": "google.cloud.compute.v1beta.TargetHttpsProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetHttpsProxies_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified TargetHttpsProxy resource.", - "canonical": true, - "file": "target_https_proxies.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.TargetHttpsProxies.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "target_https_proxy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.TargetHttpsProxy", - "client": { - "shortName": "TargetHttpsProxiesClient", - "fullName": "google.cloud.compute.v1beta.TargetHttpsProxiesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.TargetHttpsProxies.Get", - "service": { - "shortName": "TargetHttpsProxies", - "fullName": "google.cloud.compute.v1beta.TargetHttpsProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetHttpsProxies_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a TargetHttpsProxy resource in the specified project using the data included in the request.", - "canonical": true, - "file": "target_https_proxies.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.TargetHttpsProxies.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_https_proxy_resource", - "type": ".google.cloud.compute.v1beta.TargetHttpsProxy" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "TargetHttpsProxiesClient", - "fullName": "google.cloud.compute.v1beta.TargetHttpsProxiesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.TargetHttpsProxies.Insert", - "service": { - "shortName": "TargetHttpsProxies", - "fullName": "google.cloud.compute.v1beta.TargetHttpsProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetHttpsProxies_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of TargetHttpsProxy resources available to the specified project.", - "canonical": true, - "file": "target_https_proxies.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.TargetHttpsProxies.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.TargetHttpsProxyList", - "client": { - "shortName": "TargetHttpsProxiesClient", - "fullName": "google.cloud.compute.v1beta.TargetHttpsProxiesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.TargetHttpsProxies.List", - "service": { - "shortName": "TargetHttpsProxies", - "fullName": "google.cloud.compute.v1beta.TargetHttpsProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetHttpsProxies_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patches the specified TargetHttpsProxy resource with the data included in the request. This method supports PATCH semantics and usesJSON merge patch format and processing rules.", - "canonical": true, - "file": "target_https_proxies.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.TargetHttpsProxies.Patch", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_https_proxy", - "type": "TYPE_STRING" - }, - { - "name": "target_https_proxy_resource", - "type": ".google.cloud.compute.v1beta.TargetHttpsProxy" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "TargetHttpsProxiesClient", - "fullName": "google.cloud.compute.v1beta.TargetHttpsProxiesClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.TargetHttpsProxies.Patch", - "service": { - "shortName": "TargetHttpsProxies", - "fullName": "google.cloud.compute.v1beta.TargetHttpsProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetHttpsProxies_SetCertificateMap_async", - "title": "AcceleratorTypes setCertificateMap Sample", - "origin": "API_DEFINITION", - "description": " Changes the Certificate Map for TargetHttpsProxy.", - "canonical": true, - "file": "target_https_proxies.set_certificate_map.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetCertificateMap", - "fullName": "google.cloud.compute.v1beta.TargetHttpsProxies.SetCertificateMap", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_https_proxies_set_certificate_map_request_resource", - "type": ".google.cloud.compute.v1beta.TargetHttpsProxiesSetCertificateMapRequest" - }, - { - "name": "target_https_proxy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "TargetHttpsProxiesClient", - "fullName": "google.cloud.compute.v1beta.TargetHttpsProxiesClient" - }, - "method": { - "shortName": "SetCertificateMap", - "fullName": "google.cloud.compute.v1beta.TargetHttpsProxies.SetCertificateMap", - "service": { - "shortName": "TargetHttpsProxies", - "fullName": "google.cloud.compute.v1beta.TargetHttpsProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetHttpsProxies_SetQuicOverride_async", - "title": "AcceleratorTypes setQuicOverride Sample", - "origin": "API_DEFINITION", - "description": " Sets the QUIC override policy for TargetHttpsProxy.", - "canonical": true, - "file": "target_https_proxies.set_quic_override.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetQuicOverride", - "fullName": "google.cloud.compute.v1beta.TargetHttpsProxies.SetQuicOverride", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_https_proxies_set_quic_override_request_resource", - "type": ".google.cloud.compute.v1beta.TargetHttpsProxiesSetQuicOverrideRequest" - }, - { - "name": "target_https_proxy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "TargetHttpsProxiesClient", - "fullName": "google.cloud.compute.v1beta.TargetHttpsProxiesClient" - }, - "method": { - "shortName": "SetQuicOverride", - "fullName": "google.cloud.compute.v1beta.TargetHttpsProxies.SetQuicOverride", - "service": { - "shortName": "TargetHttpsProxies", - "fullName": "google.cloud.compute.v1beta.TargetHttpsProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetHttpsProxies_SetSslCertificates_async", - "title": "AcceleratorTypes setSslCertificates Sample", - "origin": "API_DEFINITION", - "description": " Replaces SslCertificates for TargetHttpsProxy.", - "canonical": true, - "file": "target_https_proxies.set_ssl_certificates.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetSslCertificates", - "fullName": "google.cloud.compute.v1beta.TargetHttpsProxies.SetSslCertificates", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_https_proxies_set_ssl_certificates_request_resource", - "type": ".google.cloud.compute.v1beta.TargetHttpsProxiesSetSslCertificatesRequest" - }, - { - "name": "target_https_proxy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "TargetHttpsProxiesClient", - "fullName": "google.cloud.compute.v1beta.TargetHttpsProxiesClient" - }, - "method": { - "shortName": "SetSslCertificates", - "fullName": "google.cloud.compute.v1beta.TargetHttpsProxies.SetSslCertificates", - "service": { - "shortName": "TargetHttpsProxies", - "fullName": "google.cloud.compute.v1beta.TargetHttpsProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetHttpsProxies_SetSslPolicy_async", - "title": "AcceleratorTypes setSslPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the SSL policy for TargetHttpsProxy. The SSL policy specifies the server-side support for SSL features. This affects connections between clients and the HTTPS proxy load balancer. They do not affect the connection between the load balancer and the backends.", - "canonical": true, - "file": "target_https_proxies.set_ssl_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetSslPolicy", - "fullName": "google.cloud.compute.v1beta.TargetHttpsProxies.SetSslPolicy", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "ssl_policy_reference_resource", - "type": ".google.cloud.compute.v1beta.SslPolicyReference" - }, - { - "name": "target_https_proxy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "TargetHttpsProxiesClient", - "fullName": "google.cloud.compute.v1beta.TargetHttpsProxiesClient" - }, - "method": { - "shortName": "SetSslPolicy", - "fullName": "google.cloud.compute.v1beta.TargetHttpsProxies.SetSslPolicy", - "service": { - "shortName": "TargetHttpsProxies", - "fullName": "google.cloud.compute.v1beta.TargetHttpsProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetHttpsProxies_SetUrlMap_async", - "title": "AcceleratorTypes setUrlMap Sample", - "origin": "API_DEFINITION", - "description": " Changes the URL map for TargetHttpsProxy.", - "canonical": true, - "file": "target_https_proxies.set_url_map.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetUrlMap", - "fullName": "google.cloud.compute.v1beta.TargetHttpsProxies.SetUrlMap", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_https_proxy", - "type": "TYPE_STRING" - }, - { - "name": "url_map_reference_resource", - "type": ".google.cloud.compute.v1beta.UrlMapReference" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "TargetHttpsProxiesClient", - "fullName": "google.cloud.compute.v1beta.TargetHttpsProxiesClient" - }, - "method": { - "shortName": "SetUrlMap", - "fullName": "google.cloud.compute.v1beta.TargetHttpsProxies.SetUrlMap", - "service": { - "shortName": "TargetHttpsProxies", - "fullName": "google.cloud.compute.v1beta.TargetHttpsProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetHttpsProxies_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "target_https_proxies.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.TargetHttpsProxies.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "TargetHttpsProxiesClient", - "fullName": "google.cloud.compute.v1beta.TargetHttpsProxiesClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.TargetHttpsProxies.TestIamPermissions", - "service": { - "shortName": "TargetHttpsProxies", - "fullName": "google.cloud.compute.v1beta.TargetHttpsProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetInstances_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of target instances. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "target_instances.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.TargetInstances.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1beta.TargetInstanceAggregatedList", - "client": { - "shortName": "TargetInstancesClient", - "fullName": "google.cloud.compute.v1beta.TargetInstancesClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.TargetInstances.AggregatedList", - "service": { - "shortName": "TargetInstances", - "fullName": "google.cloud.compute.v1beta.TargetInstances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetInstances_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified TargetInstance resource.", - "canonical": true, - "file": "target_instances.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.TargetInstances.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_instance", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "TargetInstancesClient", - "fullName": "google.cloud.compute.v1beta.TargetInstancesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.TargetInstances.Delete", - "service": { - "shortName": "TargetInstances", - "fullName": "google.cloud.compute.v1beta.TargetInstances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetInstances_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified TargetInstance resource.", - "canonical": true, - "file": "target_instances.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.TargetInstances.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "target_instance", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.TargetInstance", - "client": { - "shortName": "TargetInstancesClient", - "fullName": "google.cloud.compute.v1beta.TargetInstancesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.TargetInstances.Get", - "service": { - "shortName": "TargetInstances", - "fullName": "google.cloud.compute.v1beta.TargetInstances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetInstances_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a TargetInstance resource in the specified project and zone using the data included in the request.", - "canonical": true, - "file": "target_instances.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.TargetInstances.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_instance_resource", - "type": ".google.cloud.compute.v1beta.TargetInstance" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "TargetInstancesClient", - "fullName": "google.cloud.compute.v1beta.TargetInstancesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.TargetInstances.Insert", - "service": { - "shortName": "TargetInstances", - "fullName": "google.cloud.compute.v1beta.TargetInstances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetInstances_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of TargetInstance resources available to the specified project and zone.", - "canonical": true, - "file": "target_instances.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.TargetInstances.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.TargetInstanceList", - "client": { - "shortName": "TargetInstancesClient", - "fullName": "google.cloud.compute.v1beta.TargetInstancesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.TargetInstances.List", - "service": { - "shortName": "TargetInstances", - "fullName": "google.cloud.compute.v1beta.TargetInstances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetInstances_SetSecurityPolicy_async", - "title": "AcceleratorTypes setSecurityPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the Google Cloud Armor security policy for the specified target instance. For more information, seeGoogle Cloud Armor Overview", - "canonical": true, - "file": "target_instances.set_security_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetSecurityPolicy", - "fullName": "google.cloud.compute.v1beta.TargetInstances.SetSecurityPolicy", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "security_policy_reference_resource", - "type": ".google.cloud.compute.v1beta.SecurityPolicyReference" - }, - { - "name": "target_instance", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "TargetInstancesClient", - "fullName": "google.cloud.compute.v1beta.TargetInstancesClient" - }, - "method": { - "shortName": "SetSecurityPolicy", - "fullName": "google.cloud.compute.v1beta.TargetInstances.SetSecurityPolicy", - "service": { - "shortName": "TargetInstances", - "fullName": "google.cloud.compute.v1beta.TargetInstances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetInstances_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "target_instances.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.TargetInstances.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "TargetInstancesClient", - "fullName": "google.cloud.compute.v1beta.TargetInstancesClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.TargetInstances.TestIamPermissions", - "service": { - "shortName": "TargetInstances", - "fullName": "google.cloud.compute.v1beta.TargetInstances" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetPools_AddHealthCheck_async", - "title": "AcceleratorTypes addHealthCheck Sample", - "origin": "API_DEFINITION", - "description": " Adds health check URLs to a target pool.", - "canonical": true, - "file": "target_pools.add_health_check.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddHealthCheck", - "fullName": "google.cloud.compute.v1beta.TargetPools.AddHealthCheck", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_pool", - "type": "TYPE_STRING" - }, - { - "name": "target_pools_add_health_check_request_resource", - "type": ".google.cloud.compute.v1beta.TargetPoolsAddHealthCheckRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "TargetPoolsClient", - "fullName": "google.cloud.compute.v1beta.TargetPoolsClient" - }, - "method": { - "shortName": "AddHealthCheck", - "fullName": "google.cloud.compute.v1beta.TargetPools.AddHealthCheck", - "service": { - "shortName": "TargetPools", - "fullName": "google.cloud.compute.v1beta.TargetPools" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetPools_AddInstance_async", - "title": "AcceleratorTypes addInstance Sample", - "origin": "API_DEFINITION", - "description": " Adds an instance to a target pool.", - "canonical": true, - "file": "target_pools.add_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddInstance", - "fullName": "google.cloud.compute.v1beta.TargetPools.AddInstance", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_pool", - "type": "TYPE_STRING" - }, - { - "name": "target_pools_add_instance_request_resource", - "type": ".google.cloud.compute.v1beta.TargetPoolsAddInstanceRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "TargetPoolsClient", - "fullName": "google.cloud.compute.v1beta.TargetPoolsClient" - }, - "method": { - "shortName": "AddInstance", - "fullName": "google.cloud.compute.v1beta.TargetPools.AddInstance", - "service": { - "shortName": "TargetPools", - "fullName": "google.cloud.compute.v1beta.TargetPools" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetPools_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of target pools. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "target_pools.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.TargetPools.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1beta.TargetPoolAggregatedList", - "client": { - "shortName": "TargetPoolsClient", - "fullName": "google.cloud.compute.v1beta.TargetPoolsClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.TargetPools.AggregatedList", - "service": { - "shortName": "TargetPools", - "fullName": "google.cloud.compute.v1beta.TargetPools" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetPools_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified target pool.", - "canonical": true, - "file": "target_pools.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.TargetPools.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_pool", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "TargetPoolsClient", - "fullName": "google.cloud.compute.v1beta.TargetPoolsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.TargetPools.Delete", - "service": { - "shortName": "TargetPools", - "fullName": "google.cloud.compute.v1beta.TargetPools" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetPools_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified target pool.", - "canonical": true, - "file": "target_pools.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.TargetPools.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "target_pool", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.TargetPool", - "client": { - "shortName": "TargetPoolsClient", - "fullName": "google.cloud.compute.v1beta.TargetPoolsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.TargetPools.Get", - "service": { - "shortName": "TargetPools", - "fullName": "google.cloud.compute.v1beta.TargetPools" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetPools_GetHealth_async", - "title": "AcceleratorTypes getHealth Sample", - "origin": "API_DEFINITION", - "description": " Gets the most recent health check results for each IP for the instance that is referenced by the given target pool.", - "canonical": true, - "file": "target_pools.get_health.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetHealth", - "fullName": "google.cloud.compute.v1beta.TargetPools.GetHealth", - "async": true, - "parameters": [ - { - "name": "instance_reference_resource", - "type": ".google.cloud.compute.v1beta.InstanceReference" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "target_pool", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.TargetPoolInstanceHealth", - "client": { - "shortName": "TargetPoolsClient", - "fullName": "google.cloud.compute.v1beta.TargetPoolsClient" - }, - "method": { - "shortName": "GetHealth", - "fullName": "google.cloud.compute.v1beta.TargetPools.GetHealth", - "service": { - "shortName": "TargetPools", - "fullName": "google.cloud.compute.v1beta.TargetPools" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetPools_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a target pool in the specified project and region using the data included in the request.", - "canonical": true, - "file": "target_pools.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.TargetPools.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_pool_resource", - "type": ".google.cloud.compute.v1beta.TargetPool" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "TargetPoolsClient", - "fullName": "google.cloud.compute.v1beta.TargetPoolsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.TargetPools.Insert", - "service": { - "shortName": "TargetPools", - "fullName": "google.cloud.compute.v1beta.TargetPools" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetPools_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of target pools available to the specified project and region.", - "canonical": true, - "file": "target_pools.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.TargetPools.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.TargetPoolList", - "client": { - "shortName": "TargetPoolsClient", - "fullName": "google.cloud.compute.v1beta.TargetPoolsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.TargetPools.List", - "service": { - "shortName": "TargetPools", - "fullName": "google.cloud.compute.v1beta.TargetPools" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetPools_RemoveHealthCheck_async", - "title": "AcceleratorTypes removeHealthCheck Sample", - "origin": "API_DEFINITION", - "description": " Removes health check URL from a target pool.", - "canonical": true, - "file": "target_pools.remove_health_check.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveHealthCheck", - "fullName": "google.cloud.compute.v1beta.TargetPools.RemoveHealthCheck", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_pool", - "type": "TYPE_STRING" - }, - { - "name": "target_pools_remove_health_check_request_resource", - "type": ".google.cloud.compute.v1beta.TargetPoolsRemoveHealthCheckRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "TargetPoolsClient", - "fullName": "google.cloud.compute.v1beta.TargetPoolsClient" - }, - "method": { - "shortName": "RemoveHealthCheck", - "fullName": "google.cloud.compute.v1beta.TargetPools.RemoveHealthCheck", - "service": { - "shortName": "TargetPools", - "fullName": "google.cloud.compute.v1beta.TargetPools" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetPools_RemoveInstance_async", - "title": "AcceleratorTypes removeInstance Sample", - "origin": "API_DEFINITION", - "description": " Removes instance URL from a target pool.", - "canonical": true, - "file": "target_pools.remove_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveInstance", - "fullName": "google.cloud.compute.v1beta.TargetPools.RemoveInstance", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_pool", - "type": "TYPE_STRING" - }, - { - "name": "target_pools_remove_instance_request_resource", - "type": ".google.cloud.compute.v1beta.TargetPoolsRemoveInstanceRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "TargetPoolsClient", - "fullName": "google.cloud.compute.v1beta.TargetPoolsClient" - }, - "method": { - "shortName": "RemoveInstance", - "fullName": "google.cloud.compute.v1beta.TargetPools.RemoveInstance", - "service": { - "shortName": "TargetPools", - "fullName": "google.cloud.compute.v1beta.TargetPools" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetPools_SetBackup_async", - "title": "AcceleratorTypes setBackup Sample", - "origin": "API_DEFINITION", - "description": " Changes a backup target pool's configurations.", - "canonical": true, - "file": "target_pools.set_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetBackup", - "fullName": "google.cloud.compute.v1beta.TargetPools.SetBackup", - "async": true, - "parameters": [ - { - "name": "failover_ratio", - "type": "TYPE_FLOAT" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_pool", - "type": "TYPE_STRING" - }, - { - "name": "target_reference_resource", - "type": ".google.cloud.compute.v1beta.TargetReference" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "TargetPoolsClient", - "fullName": "google.cloud.compute.v1beta.TargetPoolsClient" - }, - "method": { - "shortName": "SetBackup", - "fullName": "google.cloud.compute.v1beta.TargetPools.SetBackup", - "service": { - "shortName": "TargetPools", - "fullName": "google.cloud.compute.v1beta.TargetPools" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetPools_SetSecurityPolicy_async", - "title": "AcceleratorTypes setSecurityPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the Google Cloud Armor security policy for the specified target pool. For more information, seeGoogle Cloud Armor Overview", - "canonical": true, - "file": "target_pools.set_security_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetSecurityPolicy", - "fullName": "google.cloud.compute.v1beta.TargetPools.SetSecurityPolicy", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "security_policy_reference_resource", - "type": ".google.cloud.compute.v1beta.SecurityPolicyReference" - }, - { - "name": "target_pool", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "TargetPoolsClient", - "fullName": "google.cloud.compute.v1beta.TargetPoolsClient" - }, - "method": { - "shortName": "SetSecurityPolicy", - "fullName": "google.cloud.compute.v1beta.TargetPools.SetSecurityPolicy", - "service": { - "shortName": "TargetPools", - "fullName": "google.cloud.compute.v1beta.TargetPools" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetPools_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "target_pools.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.TargetPools.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "TargetPoolsClient", - "fullName": "google.cloud.compute.v1beta.TargetPoolsClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.TargetPools.TestIamPermissions", - "service": { - "shortName": "TargetPools", - "fullName": "google.cloud.compute.v1beta.TargetPools" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetSslProxies_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified TargetSslProxy resource.", - "canonical": true, - "file": "target_ssl_proxies.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.TargetSslProxies.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_ssl_proxy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "TargetSslProxiesClient", - "fullName": "google.cloud.compute.v1beta.TargetSslProxiesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.TargetSslProxies.Delete", - "service": { - "shortName": "TargetSslProxies", - "fullName": "google.cloud.compute.v1beta.TargetSslProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetSslProxies_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified TargetSslProxy resource.", - "canonical": true, - "file": "target_ssl_proxies.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.TargetSslProxies.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "target_ssl_proxy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.TargetSslProxy", - "client": { - "shortName": "TargetSslProxiesClient", - "fullName": "google.cloud.compute.v1beta.TargetSslProxiesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.TargetSslProxies.Get", - "service": { - "shortName": "TargetSslProxies", - "fullName": "google.cloud.compute.v1beta.TargetSslProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetSslProxies_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a TargetSslProxy resource in the specified project using the data included in the request.", - "canonical": true, - "file": "target_ssl_proxies.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.TargetSslProxies.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_ssl_proxy_resource", - "type": ".google.cloud.compute.v1beta.TargetSslProxy" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "TargetSslProxiesClient", - "fullName": "google.cloud.compute.v1beta.TargetSslProxiesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.TargetSslProxies.Insert", - "service": { - "shortName": "TargetSslProxies", - "fullName": "google.cloud.compute.v1beta.TargetSslProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetSslProxies_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of TargetSslProxy resources available to the specified project.", - "canonical": true, - "file": "target_ssl_proxies.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.TargetSslProxies.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.TargetSslProxyList", - "client": { - "shortName": "TargetSslProxiesClient", - "fullName": "google.cloud.compute.v1beta.TargetSslProxiesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.TargetSslProxies.List", - "service": { - "shortName": "TargetSslProxies", - "fullName": "google.cloud.compute.v1beta.TargetSslProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetSslProxies_SetBackendService_async", - "title": "AcceleratorTypes setBackendService Sample", - "origin": "API_DEFINITION", - "description": " Changes the BackendService for TargetSslProxy.", - "canonical": true, - "file": "target_ssl_proxies.set_backend_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetBackendService", - "fullName": "google.cloud.compute.v1beta.TargetSslProxies.SetBackendService", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_ssl_proxies_set_backend_service_request_resource", - "type": ".google.cloud.compute.v1beta.TargetSslProxiesSetBackendServiceRequest" - }, - { - "name": "target_ssl_proxy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "TargetSslProxiesClient", - "fullName": "google.cloud.compute.v1beta.TargetSslProxiesClient" - }, - "method": { - "shortName": "SetBackendService", - "fullName": "google.cloud.compute.v1beta.TargetSslProxies.SetBackendService", - "service": { - "shortName": "TargetSslProxies", - "fullName": "google.cloud.compute.v1beta.TargetSslProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetSslProxies_SetCertificateMap_async", - "title": "AcceleratorTypes setCertificateMap Sample", - "origin": "API_DEFINITION", - "description": " Changes the Certificate Map for TargetSslProxy.", - "canonical": true, - "file": "target_ssl_proxies.set_certificate_map.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetCertificateMap", - "fullName": "google.cloud.compute.v1beta.TargetSslProxies.SetCertificateMap", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_ssl_proxies_set_certificate_map_request_resource", - "type": ".google.cloud.compute.v1beta.TargetSslProxiesSetCertificateMapRequest" - }, - { - "name": "target_ssl_proxy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "TargetSslProxiesClient", - "fullName": "google.cloud.compute.v1beta.TargetSslProxiesClient" - }, - "method": { - "shortName": "SetCertificateMap", - "fullName": "google.cloud.compute.v1beta.TargetSslProxies.SetCertificateMap", - "service": { - "shortName": "TargetSslProxies", - "fullName": "google.cloud.compute.v1beta.TargetSslProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetSslProxies_SetProxyHeader_async", - "title": "AcceleratorTypes setProxyHeader Sample", - "origin": "API_DEFINITION", - "description": " Changes the ProxyHeaderType for TargetSslProxy.", - "canonical": true, - "file": "target_ssl_proxies.set_proxy_header.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetProxyHeader", - "fullName": "google.cloud.compute.v1beta.TargetSslProxies.SetProxyHeader", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_ssl_proxies_set_proxy_header_request_resource", - "type": ".google.cloud.compute.v1beta.TargetSslProxiesSetProxyHeaderRequest" - }, - { - "name": "target_ssl_proxy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "TargetSslProxiesClient", - "fullName": "google.cloud.compute.v1beta.TargetSslProxiesClient" - }, - "method": { - "shortName": "SetProxyHeader", - "fullName": "google.cloud.compute.v1beta.TargetSslProxies.SetProxyHeader", - "service": { - "shortName": "TargetSslProxies", - "fullName": "google.cloud.compute.v1beta.TargetSslProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetSslProxies_SetSslCertificates_async", - "title": "AcceleratorTypes setSslCertificates Sample", - "origin": "API_DEFINITION", - "description": " Changes SslCertificates for TargetSslProxy.", - "canonical": true, - "file": "target_ssl_proxies.set_ssl_certificates.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetSslCertificates", - "fullName": "google.cloud.compute.v1beta.TargetSslProxies.SetSslCertificates", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_ssl_proxies_set_ssl_certificates_request_resource", - "type": ".google.cloud.compute.v1beta.TargetSslProxiesSetSslCertificatesRequest" - }, - { - "name": "target_ssl_proxy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "TargetSslProxiesClient", - "fullName": "google.cloud.compute.v1beta.TargetSslProxiesClient" - }, - "method": { - "shortName": "SetSslCertificates", - "fullName": "google.cloud.compute.v1beta.TargetSslProxies.SetSslCertificates", - "service": { - "shortName": "TargetSslProxies", - "fullName": "google.cloud.compute.v1beta.TargetSslProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetSslProxies_SetSslPolicy_async", - "title": "AcceleratorTypes setSslPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the SSL policy for TargetSslProxy. The SSL policy specifies the server-side support for SSL features. This affects connections between clients and the load balancer. They do not affect the connection between the load balancer and the backends.", - "canonical": true, - "file": "target_ssl_proxies.set_ssl_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetSslPolicy", - "fullName": "google.cloud.compute.v1beta.TargetSslProxies.SetSslPolicy", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "ssl_policy_reference_resource", - "type": ".google.cloud.compute.v1beta.SslPolicyReference" - }, - { - "name": "target_ssl_proxy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "TargetSslProxiesClient", - "fullName": "google.cloud.compute.v1beta.TargetSslProxiesClient" - }, - "method": { - "shortName": "SetSslPolicy", - "fullName": "google.cloud.compute.v1beta.TargetSslProxies.SetSslPolicy", - "service": { - "shortName": "TargetSslProxies", - "fullName": "google.cloud.compute.v1beta.TargetSslProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetSslProxies_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "target_ssl_proxies.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.TargetSslProxies.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "TargetSslProxiesClient", - "fullName": "google.cloud.compute.v1beta.TargetSslProxiesClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.TargetSslProxies.TestIamPermissions", - "service": { - "shortName": "TargetSslProxies", - "fullName": "google.cloud.compute.v1beta.TargetSslProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetTcpProxies_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of all TargetTcpProxy resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "target_tcp_proxies.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.TargetTcpProxies.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1beta.TargetTcpProxyAggregatedList", - "client": { - "shortName": "TargetTcpProxiesClient", - "fullName": "google.cloud.compute.v1beta.TargetTcpProxiesClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.TargetTcpProxies.AggregatedList", - "service": { - "shortName": "TargetTcpProxies", - "fullName": "google.cloud.compute.v1beta.TargetTcpProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetTcpProxies_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified TargetTcpProxy resource.", - "canonical": true, - "file": "target_tcp_proxies.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.TargetTcpProxies.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_tcp_proxy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "TargetTcpProxiesClient", - "fullName": "google.cloud.compute.v1beta.TargetTcpProxiesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.TargetTcpProxies.Delete", - "service": { - "shortName": "TargetTcpProxies", - "fullName": "google.cloud.compute.v1beta.TargetTcpProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetTcpProxies_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified TargetTcpProxy resource.", - "canonical": true, - "file": "target_tcp_proxies.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.TargetTcpProxies.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "target_tcp_proxy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.TargetTcpProxy", - "client": { - "shortName": "TargetTcpProxiesClient", - "fullName": "google.cloud.compute.v1beta.TargetTcpProxiesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.TargetTcpProxies.Get", - "service": { - "shortName": "TargetTcpProxies", - "fullName": "google.cloud.compute.v1beta.TargetTcpProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetTcpProxies_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a TargetTcpProxy resource in the specified project using the data included in the request.", - "canonical": true, - "file": "target_tcp_proxies.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.TargetTcpProxies.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_tcp_proxy_resource", - "type": ".google.cloud.compute.v1beta.TargetTcpProxy" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "TargetTcpProxiesClient", - "fullName": "google.cloud.compute.v1beta.TargetTcpProxiesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.TargetTcpProxies.Insert", - "service": { - "shortName": "TargetTcpProxies", - "fullName": "google.cloud.compute.v1beta.TargetTcpProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetTcpProxies_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of TargetTcpProxy resources available to the specified project.", - "canonical": true, - "file": "target_tcp_proxies.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.TargetTcpProxies.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.TargetTcpProxyList", - "client": { - "shortName": "TargetTcpProxiesClient", - "fullName": "google.cloud.compute.v1beta.TargetTcpProxiesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.TargetTcpProxies.List", - "service": { - "shortName": "TargetTcpProxies", - "fullName": "google.cloud.compute.v1beta.TargetTcpProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetTcpProxies_SetBackendService_async", - "title": "AcceleratorTypes setBackendService Sample", - "origin": "API_DEFINITION", - "description": " Changes the BackendService for TargetTcpProxy.", - "canonical": true, - "file": "target_tcp_proxies.set_backend_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetBackendService", - "fullName": "google.cloud.compute.v1beta.TargetTcpProxies.SetBackendService", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_tcp_proxies_set_backend_service_request_resource", - "type": ".google.cloud.compute.v1beta.TargetTcpProxiesSetBackendServiceRequest" - }, - { - "name": "target_tcp_proxy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "TargetTcpProxiesClient", - "fullName": "google.cloud.compute.v1beta.TargetTcpProxiesClient" - }, - "method": { - "shortName": "SetBackendService", - "fullName": "google.cloud.compute.v1beta.TargetTcpProxies.SetBackendService", - "service": { - "shortName": "TargetTcpProxies", - "fullName": "google.cloud.compute.v1beta.TargetTcpProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetTcpProxies_SetProxyHeader_async", - "title": "AcceleratorTypes setProxyHeader Sample", - "origin": "API_DEFINITION", - "description": " Changes the ProxyHeaderType for TargetTcpProxy.", - "canonical": true, - "file": "target_tcp_proxies.set_proxy_header.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetProxyHeader", - "fullName": "google.cloud.compute.v1beta.TargetTcpProxies.SetProxyHeader", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_tcp_proxies_set_proxy_header_request_resource", - "type": ".google.cloud.compute.v1beta.TargetTcpProxiesSetProxyHeaderRequest" - }, - { - "name": "target_tcp_proxy", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "TargetTcpProxiesClient", - "fullName": "google.cloud.compute.v1beta.TargetTcpProxiesClient" - }, - "method": { - "shortName": "SetProxyHeader", - "fullName": "google.cloud.compute.v1beta.TargetTcpProxies.SetProxyHeader", - "service": { - "shortName": "TargetTcpProxies", - "fullName": "google.cloud.compute.v1beta.TargetTcpProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetTcpProxies_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "target_tcp_proxies.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.TargetTcpProxies.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "TargetTcpProxiesClient", - "fullName": "google.cloud.compute.v1beta.TargetTcpProxiesClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.TargetTcpProxies.TestIamPermissions", - "service": { - "shortName": "TargetTcpProxies", - "fullName": "google.cloud.compute.v1beta.TargetTcpProxies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetVpnGateways_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of target VPN gateways. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "target_vpn_gateways.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.TargetVpnGateways.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1beta.TargetVpnGatewayAggregatedList", - "client": { - "shortName": "TargetVpnGatewaysClient", - "fullName": "google.cloud.compute.v1beta.TargetVpnGatewaysClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.TargetVpnGateways.AggregatedList", - "service": { - "shortName": "TargetVpnGateways", - "fullName": "google.cloud.compute.v1beta.TargetVpnGateways" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetVpnGateways_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified target VPN gateway.", - "canonical": true, - "file": "target_vpn_gateways.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.TargetVpnGateways.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_vpn_gateway", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "TargetVpnGatewaysClient", - "fullName": "google.cloud.compute.v1beta.TargetVpnGatewaysClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.TargetVpnGateways.Delete", - "service": { - "shortName": "TargetVpnGateways", - "fullName": "google.cloud.compute.v1beta.TargetVpnGateways" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetVpnGateways_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified target VPN gateway.", - "canonical": true, - "file": "target_vpn_gateways.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.TargetVpnGateways.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "target_vpn_gateway", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.TargetVpnGateway", - "client": { - "shortName": "TargetVpnGatewaysClient", - "fullName": "google.cloud.compute.v1beta.TargetVpnGatewaysClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.TargetVpnGateways.Get", - "service": { - "shortName": "TargetVpnGateways", - "fullName": "google.cloud.compute.v1beta.TargetVpnGateways" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetVpnGateways_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a target VPN gateway in the specified project and region using the data included in the request.", - "canonical": true, - "file": "target_vpn_gateways.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.TargetVpnGateways.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "target_vpn_gateway_resource", - "type": ".google.cloud.compute.v1beta.TargetVpnGateway" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "TargetVpnGatewaysClient", - "fullName": "google.cloud.compute.v1beta.TargetVpnGatewaysClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.TargetVpnGateways.Insert", - "service": { - "shortName": "TargetVpnGateways", - "fullName": "google.cloud.compute.v1beta.TargetVpnGateways" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetVpnGateways_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of target VPN gateways available to the specified project and region.", - "canonical": true, - "file": "target_vpn_gateways.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.TargetVpnGateways.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.TargetVpnGatewayList", - "client": { - "shortName": "TargetVpnGatewaysClient", - "fullName": "google.cloud.compute.v1beta.TargetVpnGatewaysClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.TargetVpnGateways.List", - "service": { - "shortName": "TargetVpnGateways", - "fullName": "google.cloud.compute.v1beta.TargetVpnGateways" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetVpnGateways_SetLabels_async", - "title": "AcceleratorTypes setLabels Sample", - "origin": "API_DEFINITION", - "description": " Sets the labels on a TargetVpnGateway. To learn more about labels, read theLabeling Resources documentation.", - "canonical": true, - "file": "target_vpn_gateways.set_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1beta.TargetVpnGateways.SetLabels", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_set_labels_request_resource", - "type": ".google.cloud.compute.v1beta.RegionSetLabelsRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "TargetVpnGatewaysClient", - "fullName": "google.cloud.compute.v1beta.TargetVpnGatewaysClient" - }, - "method": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1beta.TargetVpnGateways.SetLabels", - "service": { - "shortName": "TargetVpnGateways", - "fullName": "google.cloud.compute.v1beta.TargetVpnGateways" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_TargetVpnGateways_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "target_vpn_gateways.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.TargetVpnGateways.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "TargetVpnGatewaysClient", - "fullName": "google.cloud.compute.v1beta.TargetVpnGatewaysClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.TargetVpnGateways.TestIamPermissions", - "service": { - "shortName": "TargetVpnGateways", - "fullName": "google.cloud.compute.v1beta.TargetVpnGateways" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_UrlMaps_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of all UrlMap resources, regional and global, available to the specified project. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "url_maps.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.UrlMaps.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1beta.UrlMapsAggregatedList", - "client": { - "shortName": "UrlMapsClient", - "fullName": "google.cloud.compute.v1beta.UrlMapsClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.UrlMaps.AggregatedList", - "service": { - "shortName": "UrlMaps", - "fullName": "google.cloud.compute.v1beta.UrlMaps" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_UrlMaps_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified UrlMap resource.", - "canonical": true, - "file": "url_maps.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.UrlMaps.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "url_map", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "UrlMapsClient", - "fullName": "google.cloud.compute.v1beta.UrlMapsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.UrlMaps.Delete", - "service": { - "shortName": "UrlMaps", - "fullName": "google.cloud.compute.v1beta.UrlMaps" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_UrlMaps_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified UrlMap resource.", - "canonical": true, - "file": "url_maps.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.UrlMaps.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "url_map", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.UrlMap", - "client": { - "shortName": "UrlMapsClient", - "fullName": "google.cloud.compute.v1beta.UrlMapsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.UrlMaps.Get", - "service": { - "shortName": "UrlMaps", - "fullName": "google.cloud.compute.v1beta.UrlMaps" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_UrlMaps_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a UrlMap resource in the specified project using the data included in the request.", - "canonical": true, - "file": "url_maps.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.UrlMaps.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "url_map_resource", - "type": ".google.cloud.compute.v1beta.UrlMap" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "UrlMapsClient", - "fullName": "google.cloud.compute.v1beta.UrlMapsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.UrlMaps.Insert", - "service": { - "shortName": "UrlMaps", - "fullName": "google.cloud.compute.v1beta.UrlMaps" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_UrlMaps_InvalidateCache_async", - "title": "AcceleratorTypes invalidateCache Sample", - "origin": "API_DEFINITION", - "description": " Initiates a cache invalidation operation, invalidating the specified path, scoped to the specified UrlMap. For more information, see [Invalidating cached content](/cdn/docs/invalidating-cached-content).", - "canonical": true, - "file": "url_maps.invalidate_cache.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "InvalidateCache", - "fullName": "google.cloud.compute.v1beta.UrlMaps.InvalidateCache", - "async": true, - "parameters": [ - { - "name": "cache_invalidation_rule_resource", - "type": ".google.cloud.compute.v1beta.CacheInvalidationRule" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "url_map", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "UrlMapsClient", - "fullName": "google.cloud.compute.v1beta.UrlMapsClient" - }, - "method": { - "shortName": "InvalidateCache", - "fullName": "google.cloud.compute.v1beta.UrlMaps.InvalidateCache", - "service": { - "shortName": "UrlMaps", - "fullName": "google.cloud.compute.v1beta.UrlMaps" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_UrlMaps_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of UrlMap resources available to the specified project.", - "canonical": true, - "file": "url_maps.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.UrlMaps.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.UrlMapList", - "client": { - "shortName": "UrlMapsClient", - "fullName": "google.cloud.compute.v1beta.UrlMapsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.UrlMaps.List", - "service": { - "shortName": "UrlMaps", - "fullName": "google.cloud.compute.v1beta.UrlMaps" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_UrlMaps_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Patches the specified UrlMap resource with the data included in the request. This method supportsPATCH semantics and uses theJSON merge patch format and processing rules.", - "canonical": true, - "file": "url_maps.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.UrlMaps.Patch", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "url_map", - "type": "TYPE_STRING" - }, - { - "name": "url_map_resource", - "type": ".google.cloud.compute.v1beta.UrlMap" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "UrlMapsClient", - "fullName": "google.cloud.compute.v1beta.UrlMapsClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.UrlMaps.Patch", - "service": { - "shortName": "UrlMaps", - "fullName": "google.cloud.compute.v1beta.UrlMaps" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_UrlMaps_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "url_maps.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.UrlMaps.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "UrlMapsClient", - "fullName": "google.cloud.compute.v1beta.UrlMapsClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.UrlMaps.TestIamPermissions", - "service": { - "shortName": "UrlMaps", - "fullName": "google.cloud.compute.v1beta.UrlMaps" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_UrlMaps_Update_async", - "title": "AcceleratorTypes update Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified UrlMap resource with the data included in the request.", - "canonical": true, - "file": "url_maps.update.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1beta.UrlMaps.Update", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "url_map", - "type": "TYPE_STRING" - }, - { - "name": "url_map_resource", - "type": ".google.cloud.compute.v1beta.UrlMap" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "UrlMapsClient", - "fullName": "google.cloud.compute.v1beta.UrlMapsClient" - }, - "method": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1beta.UrlMaps.Update", - "service": { - "shortName": "UrlMaps", - "fullName": "google.cloud.compute.v1beta.UrlMaps" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_UrlMaps_Validate_async", - "title": "AcceleratorTypes validate Sample", - "origin": "API_DEFINITION", - "description": " Runs static validation for the UrlMap. In particular, the tests of the provided UrlMap will be run. Calling this method does NOT create the UrlMap.", - "canonical": true, - "file": "url_maps.validate.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Validate", - "fullName": "google.cloud.compute.v1beta.UrlMaps.Validate", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "url_map", - "type": "TYPE_STRING" - }, - { - "name": "url_maps_validate_request_resource", - "type": ".google.cloud.compute.v1beta.UrlMapsValidateRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.UrlMapsValidateResponse", - "client": { - "shortName": "UrlMapsClient", - "fullName": "google.cloud.compute.v1beta.UrlMapsClient" - }, - "method": { - "shortName": "Validate", - "fullName": "google.cloud.compute.v1beta.UrlMaps.Validate", - "service": { - "shortName": "UrlMaps", - "fullName": "google.cloud.compute.v1beta.UrlMaps" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_VpnGateways_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of VPN gateways. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "vpn_gateways.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.VpnGateways.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1beta.VpnGatewayAggregatedList", - "client": { - "shortName": "VpnGatewaysClient", - "fullName": "google.cloud.compute.v1beta.VpnGatewaysClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.VpnGateways.AggregatedList", - "service": { - "shortName": "VpnGateways", - "fullName": "google.cloud.compute.v1beta.VpnGateways" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_VpnGateways_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified VPN gateway.", - "canonical": true, - "file": "vpn_gateways.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.VpnGateways.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "vpn_gateway", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "VpnGatewaysClient", - "fullName": "google.cloud.compute.v1beta.VpnGatewaysClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.VpnGateways.Delete", - "service": { - "shortName": "VpnGateways", - "fullName": "google.cloud.compute.v1beta.VpnGateways" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_VpnGateways_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified VPN gateway.", - "canonical": true, - "file": "vpn_gateways.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.VpnGateways.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "vpn_gateway", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.VpnGateway", - "client": { - "shortName": "VpnGatewaysClient", - "fullName": "google.cloud.compute.v1beta.VpnGatewaysClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.VpnGateways.Get", - "service": { - "shortName": "VpnGateways", - "fullName": "google.cloud.compute.v1beta.VpnGateways" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_VpnGateways_GetStatus_async", - "title": "AcceleratorTypes getStatus Sample", - "origin": "API_DEFINITION", - "description": " Returns the status for the specified VPN gateway.", - "canonical": true, - "file": "vpn_gateways.get_status.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetStatus", - "fullName": "google.cloud.compute.v1beta.VpnGateways.GetStatus", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "vpn_gateway", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.VpnGatewaysGetStatusResponse", - "client": { - "shortName": "VpnGatewaysClient", - "fullName": "google.cloud.compute.v1beta.VpnGatewaysClient" - }, - "method": { - "shortName": "GetStatus", - "fullName": "google.cloud.compute.v1beta.VpnGateways.GetStatus", - "service": { - "shortName": "VpnGateways", - "fullName": "google.cloud.compute.v1beta.VpnGateways" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_VpnGateways_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a VPN gateway in the specified project and region using the data included in the request.", - "canonical": true, - "file": "vpn_gateways.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.VpnGateways.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "vpn_gateway_resource", - "type": ".google.cloud.compute.v1beta.VpnGateway" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "VpnGatewaysClient", - "fullName": "google.cloud.compute.v1beta.VpnGatewaysClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.VpnGateways.Insert", - "service": { - "shortName": "VpnGateways", - "fullName": "google.cloud.compute.v1beta.VpnGateways" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_VpnGateways_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of VPN gateways available to the specified project and region.", - "canonical": true, - "file": "vpn_gateways.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.VpnGateways.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.VpnGatewayList", - "client": { - "shortName": "VpnGatewaysClient", - "fullName": "google.cloud.compute.v1beta.VpnGatewaysClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.VpnGateways.List", - "service": { - "shortName": "VpnGateways", - "fullName": "google.cloud.compute.v1beta.VpnGateways" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_VpnGateways_SetLabels_async", - "title": "AcceleratorTypes setLabels Sample", - "origin": "API_DEFINITION", - "description": " Sets the labels on a VpnGateway. To learn more about labels, read theLabeling Resources documentation.", - "canonical": true, - "file": "vpn_gateways.set_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1beta.VpnGateways.SetLabels", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_set_labels_request_resource", - "type": ".google.cloud.compute.v1beta.RegionSetLabelsRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "VpnGatewaysClient", - "fullName": "google.cloud.compute.v1beta.VpnGatewaysClient" - }, - "method": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1beta.VpnGateways.SetLabels", - "service": { - "shortName": "VpnGateways", - "fullName": "google.cloud.compute.v1beta.VpnGateways" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_VpnGateways_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "vpn_gateways.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.VpnGateways.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "VpnGatewaysClient", - "fullName": "google.cloud.compute.v1beta.VpnGatewaysClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.VpnGateways.TestIamPermissions", - "service": { - "shortName": "VpnGateways", - "fullName": "google.cloud.compute.v1beta.VpnGateways" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_VpnTunnels_AggregatedList_async", - "title": "AcceleratorTypes aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of VPN tunnels. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.", - "canonical": true, - "file": "vpn_tunnels.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 155, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.VpnTunnels.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "service_project_number", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.compute.v1beta.VpnTunnelAggregatedList", - "client": { - "shortName": "VpnTunnelsClient", - "fullName": "google.cloud.compute.v1beta.VpnTunnelsClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1beta.VpnTunnels.AggregatedList", - "service": { - "shortName": "VpnTunnels", - "fullName": "google.cloud.compute.v1beta.VpnTunnels" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_VpnTunnels_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified VpnTunnel resource.", - "canonical": true, - "file": "vpn_tunnels.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.VpnTunnels.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "vpn_tunnel", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "VpnTunnelsClient", - "fullName": "google.cloud.compute.v1beta.VpnTunnelsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.VpnTunnels.Delete", - "service": { - "shortName": "VpnTunnels", - "fullName": "google.cloud.compute.v1beta.VpnTunnels" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_VpnTunnels_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified VpnTunnel resource.", - "canonical": true, - "file": "vpn_tunnels.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.VpnTunnels.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "vpn_tunnel", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.VpnTunnel", - "client": { - "shortName": "VpnTunnelsClient", - "fullName": "google.cloud.compute.v1beta.VpnTunnelsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.VpnTunnels.Get", - "service": { - "shortName": "VpnTunnels", - "fullName": "google.cloud.compute.v1beta.VpnTunnels" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_VpnTunnels_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a VpnTunnel resource in the specified project and region using the data included in the request.", - "canonical": true, - "file": "vpn_tunnels.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.VpnTunnels.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "vpn_tunnel_resource", - "type": ".google.cloud.compute.v1beta.VpnTunnel" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "VpnTunnelsClient", - "fullName": "google.cloud.compute.v1beta.VpnTunnelsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.VpnTunnels.Insert", - "service": { - "shortName": "VpnTunnels", - "fullName": "google.cloud.compute.v1beta.VpnTunnels" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_VpnTunnels_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of VpnTunnel resources contained in the specified project and region.", - "canonical": true, - "file": "vpn_tunnels.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.VpnTunnels.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.VpnTunnelList", - "client": { - "shortName": "VpnTunnelsClient", - "fullName": "google.cloud.compute.v1beta.VpnTunnelsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.VpnTunnels.List", - "service": { - "shortName": "VpnTunnels", - "fullName": "google.cloud.compute.v1beta.VpnTunnels" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_VpnTunnels_SetLabels_async", - "title": "AcceleratorTypes setLabels Sample", - "origin": "API_DEFINITION", - "description": " Sets the labels on a VpnTunnel. To learn more about labels, read theLabeling Resources documentation.", - "canonical": true, - "file": "vpn_tunnels.set_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1beta.VpnTunnels.SetLabels", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "region_set_labels_request_resource", - "type": ".google.cloud.compute.v1beta.RegionSetLabelsRequest" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "VpnTunnelsClient", - "fullName": "google.cloud.compute.v1beta.VpnTunnelsClient" - }, - "method": { - "shortName": "SetLabels", - "fullName": "google.cloud.compute.v1beta.VpnTunnels.SetLabels", - "service": { - "shortName": "VpnTunnels", - "fullName": "google.cloud.compute.v1beta.VpnTunnels" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_VpnTunnels_TestIamPermissions_async", - "title": "AcceleratorTypes testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource.", - "canonical": true, - "file": "vpn_tunnels.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.VpnTunnels.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "test_permissions_request_resource", - "type": ".google.cloud.compute.v1beta.TestPermissionsRequest" - } - ], - "resultType": ".google.cloud.compute.v1beta.TestPermissionsResponse", - "client": { - "shortName": "VpnTunnelsClient", - "fullName": "google.cloud.compute.v1beta.VpnTunnelsClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.compute.v1beta.VpnTunnels.TestIamPermissions", - "service": { - "shortName": "VpnTunnels", - "fullName": "google.cloud.compute.v1beta.VpnTunnels" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_WireGroups_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified wire group in the given scope.", - "canonical": true, - "file": "wire_groups.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.WireGroups.Delete", - "async": true, - "parameters": [ - { - "name": "cross_site_network", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "wire_group", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "WireGroupsClient", - "fullName": "google.cloud.compute.v1beta.WireGroupsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.WireGroups.Delete", - "service": { - "shortName": "WireGroups", - "fullName": "google.cloud.compute.v1beta.WireGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_WireGroups_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Gets the specified wire group resource in the given scope.", - "canonical": true, - "file": "wire_groups.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.WireGroups.Get", - "async": true, - "parameters": [ - { - "name": "cross_site_network", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "wire_group", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.WireGroup", - "client": { - "shortName": "WireGroupsClient", - "fullName": "google.cloud.compute.v1beta.WireGroupsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.WireGroups.Get", - "service": { - "shortName": "WireGroups", - "fullName": "google.cloud.compute.v1beta.WireGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_WireGroups_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a wire group in the specified project in the given scope using the parameters that are included in the request.", - "canonical": true, - "file": "wire_groups.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.WireGroups.Insert", - "async": true, - "parameters": [ - { - "name": "cross_site_network", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "wire_group_resource", - "type": ".google.cloud.compute.v1beta.WireGroup" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "WireGroupsClient", - "fullName": "google.cloud.compute.v1beta.WireGroupsClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.WireGroups.Insert", - "service": { - "shortName": "WireGroups", - "fullName": "google.cloud.compute.v1beta.WireGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_WireGroups_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Lists the wire groups for a project in the given scope.", - "canonical": true, - "file": "wire_groups.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 144, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.WireGroups.List", - "async": true, - "parameters": [ - { - "name": "cross_site_network", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.WireGroupList", - "client": { - "shortName": "WireGroupsClient", - "fullName": "google.cloud.compute.v1beta.WireGroupsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.WireGroups.List", - "service": { - "shortName": "WireGroups", - "fullName": "google.cloud.compute.v1beta.WireGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_WireGroups_Patch_async", - "title": "AcceleratorTypes patch Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified wire group resource with the data included in the request. This method supportsPATCH semantics and usesJSON merge patch format and processing rules.", - "canonical": true, - "file": "wire_groups.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 90, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.WireGroups.Patch", - "async": true, - "parameters": [ - { - "name": "cross_site_network", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "wire_group", - "type": "TYPE_STRING" - }, - { - "name": "wire_group_resource", - "type": ".google.cloud.compute.v1beta.WireGroup" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "WireGroupsClient", - "fullName": "google.cloud.compute.v1beta.WireGroupsClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.compute.v1beta.WireGroups.Patch", - "service": { - "shortName": "WireGroups", - "fullName": "google.cloud.compute.v1beta.WireGroups" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ZoneOperations_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified zone-specific Operations resource.", - "canonical": true, - "file": "zone_operations.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.ZoneOperations.Delete", - "async": true, - "parameters": [ - { - "name": "operation", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.DeleteZoneOperationResponse", - "client": { - "shortName": "ZoneOperationsClient", - "fullName": "google.cloud.compute.v1beta.ZoneOperationsClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.ZoneOperations.Delete", - "service": { - "shortName": "ZoneOperations", - "fullName": "google.cloud.compute.v1beta.ZoneOperations" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ZoneOperations_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified zone-specific Operations resource.", - "canonical": true, - "file": "zone_operations.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.ZoneOperations.Get", - "async": true, - "parameters": [ - { - "name": "operation", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "ZoneOperationsClient", - "fullName": "google.cloud.compute.v1beta.ZoneOperationsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.ZoneOperations.Get", - "service": { - "shortName": "ZoneOperations", - "fullName": "google.cloud.compute.v1beta.ZoneOperations" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ZoneOperations_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of Operation resources contained within the specified zone.", - "canonical": true, - "file": "zone_operations.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.ZoneOperations.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.OperationList", - "client": { - "shortName": "ZoneOperationsClient", - "fullName": "google.cloud.compute.v1beta.ZoneOperationsClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.ZoneOperations.List", - "service": { - "shortName": "ZoneOperations", - "fullName": "google.cloud.compute.v1beta.ZoneOperations" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ZoneOperations_Wait_async", - "title": "AcceleratorTypes wait Sample", - "origin": "API_DEFINITION", - "description": " Waits for the specified Operation resource to return as `DONE` or for the request to approach the 2 minute deadline, and retrieves the specified Operation resource. This method waits for no more than the 2 minutes and then returns the current state of the operation, which might be `DONE` or still in progress. This method is called on a best-effort basis. Specifically: - In uncommon cases, when the server is overloaded, the request might return before the default deadline is reached, or might return after zero seconds. - If the default deadline is reached, there is no guarantee that the operation is actually done when the method returns. Be prepared to retry if the operation is not `DONE`.", - "canonical": true, - "file": "zone_operations.wait.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Wait", - "fullName": "google.cloud.compute.v1beta.ZoneOperations.Wait", - "async": true, - "parameters": [ - { - "name": "operation", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "ZoneOperationsClient", - "fullName": "google.cloud.compute.v1beta.ZoneOperationsClient" - }, - "method": { - "shortName": "Wait", - "fullName": "google.cloud.compute.v1beta.ZoneOperations.Wait", - "service": { - "shortName": "ZoneOperations", - "fullName": "google.cloud.compute.v1beta.ZoneOperations" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Zones_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified Zone resource.", - "canonical": true, - "file": "zones.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.Zones.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Zone", - "client": { - "shortName": "ZonesClient", - "fullName": "google.cloud.compute.v1beta.ZonesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.Zones.Get", - "service": { - "shortName": "Zones", - "fullName": "google.cloud.compute.v1beta.Zones" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_Zones_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of Zone resources available to the specified project.", - "canonical": true, - "file": "zones.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.Zones.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.compute.v1beta.ZoneList", - "client": { - "shortName": "ZonesClient", - "fullName": "google.cloud.compute.v1beta.ZonesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.Zones.List", - "service": { - "shortName": "Zones", - "fullName": "google.cloud.compute.v1beta.Zones" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ZoneVmExtensionPolicies_Delete_async", - "title": "AcceleratorTypes delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes a specified zone VM extension policy within a project.", - "canonical": true, - "file": "zone_vm_extension_policies.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.ZoneVmExtensionPolicies.Delete", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "vm_extension_policy", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "ZoneVmExtensionPoliciesClient", - "fullName": "google.cloud.compute.v1beta.ZoneVmExtensionPoliciesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1beta.ZoneVmExtensionPolicies.Delete", - "service": { - "shortName": "ZoneVmExtensionPolicies", - "fullName": "google.cloud.compute.v1beta.ZoneVmExtensionPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ZoneVmExtensionPolicies_Get_async", - "title": "AcceleratorTypes get Sample", - "origin": "API_DEFINITION", - "description": " Retrieves details of a specific zone VM extension policy within a project.", - "canonical": true, - "file": "zone_vm_extension_policies.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.ZoneVmExtensionPolicies.Get", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "vm_extension_policy", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.VmExtensionPolicy", - "client": { - "shortName": "ZoneVmExtensionPoliciesClient", - "fullName": "google.cloud.compute.v1beta.ZoneVmExtensionPoliciesClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1beta.ZoneVmExtensionPolicies.Get", - "service": { - "shortName": "ZoneVmExtensionPolicies", - "fullName": "google.cloud.compute.v1beta.ZoneVmExtensionPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ZoneVmExtensionPolicies_Insert_async", - "title": "AcceleratorTypes insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a new zone-level VM extension policy within a project.", - "canonical": true, - "file": "zone_vm_extension_policies.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.ZoneVmExtensionPolicies.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "vm_extension_policy_resource", - "type": ".google.cloud.compute.v1beta.VmExtensionPolicy" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "ZoneVmExtensionPoliciesClient", - "fullName": "google.cloud.compute.v1beta.ZoneVmExtensionPoliciesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1beta.ZoneVmExtensionPolicies.Insert", - "service": { - "shortName": "ZoneVmExtensionPolicies", - "fullName": "google.cloud.compute.v1beta.ZoneVmExtensionPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ZoneVmExtensionPolicies_List_async", - "title": "AcceleratorTypes list Sample", - "origin": "API_DEFINITION", - "description": " Lists all VM extension policies within a specific zone for a project.", - "canonical": true, - "file": "zone_vm_extension_policies.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 145, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.ZoneVmExtensionPolicies.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.VmExtensionPolicyList", - "client": { - "shortName": "ZoneVmExtensionPoliciesClient", - "fullName": "google.cloud.compute.v1beta.ZoneVmExtensionPoliciesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1beta.ZoneVmExtensionPolicies.List", - "service": { - "shortName": "ZoneVmExtensionPolicies", - "fullName": "google.cloud.compute.v1beta.ZoneVmExtensionPolicies" - } - } - } - }, - { - "regionTag": "compute_v1beta_generated_ZoneVmExtensionPolicies_Update_async", - "title": "AcceleratorTypes update Sample", - "origin": "API_DEFINITION", - "description": " Modifies an existing zone VM extension policy within a project.", - "canonical": true, - "file": "zone_vm_extension_policies.update.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1beta.ZoneVmExtensionPolicies.Update", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "vm_extension_policy", - "type": "TYPE_STRING" - }, - { - "name": "vm_extension_policy_resource", - "type": ".google.cloud.compute.v1beta.VmExtensionPolicy" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1beta.Operation", - "client": { - "shortName": "ZoneVmExtensionPoliciesClient", - "fullName": "google.cloud.compute.v1beta.ZoneVmExtensionPoliciesClient" - }, - "method": { - "shortName": "Update", - "fullName": "google.cloud.compute.v1beta.ZoneVmExtensionPolicies.Update", - "service": { - "shortName": "ZoneVmExtensionPolicies", - "fullName": "google.cloud.compute.v1beta.ZoneVmExtensionPolicies" - } - } - } - } - ] -} diff --git a/packages/google-cloud-compute/samples/generated/v1small/snippet_metadata_google.cloud.compute.v1small.json b/packages/google-cloud-compute/samples/generated/v1small/snippet_metadata_google.cloud.compute.v1small.json deleted file mode 100644 index 8ab2078f221d..000000000000 --- a/packages/google-cloud-compute/samples/generated/v1small/snippet_metadata_google.cloud.compute.v1small.json +++ /dev/null @@ -1,335 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-compute", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.compute.v1small", - "version": "v1small" - } - ] - }, - "snippets": [ - { - "regionTag": "compute_v1small_generated_Addresses_AggregatedList_async", - "title": "Addresses aggregatedList Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an aggregated list of addresses.", - "canonical": true, - "file": "addresses.aggregated_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1small.Addresses.AggregatedList", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "include_all_scopes", - "type": "TYPE_BOOL" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1small.AddressAggregatedList", - "client": { - "shortName": "AddressesClient", - "fullName": "google.cloud.compute.v1small.AddressesClient" - }, - "method": { - "shortName": "AggregatedList", - "fullName": "google.cloud.compute.v1small.Addresses.AggregatedList", - "service": { - "shortName": "Addresses", - "fullName": "google.cloud.compute.v1small.Addresses" - } - } - } - }, - { - "regionTag": "compute_v1small_generated_Addresses_Delete_async", - "title": "Addresses delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified address resource.", - "canonical": true, - "file": "addresses.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1small.Addresses.Delete", - "async": true, - "parameters": [ - { - "name": "address", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1small.Operation", - "client": { - "shortName": "AddressesClient", - "fullName": "google.cloud.compute.v1small.AddressesClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.compute.v1small.Addresses.Delete", - "service": { - "shortName": "Addresses", - "fullName": "google.cloud.compute.v1small.Addresses" - } - } - } - }, - { - "regionTag": "compute_v1small_generated_Addresses_Insert_async", - "title": "Addresses insert Sample", - "origin": "API_DEFINITION", - "description": " Creates an address resource in the specified project by using the data included in the request.", - "canonical": true, - "file": "addresses.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1small.Addresses.Insert", - "async": true, - "parameters": [ - { - "name": "address_resource", - "type": ".google.cloud.compute.v1small.Address" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1small.Operation", - "client": { - "shortName": "AddressesClient", - "fullName": "google.cloud.compute.v1small.AddressesClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.compute.v1small.Addresses.Insert", - "service": { - "shortName": "Addresses", - "fullName": "google.cloud.compute.v1small.Addresses" - } - } - } - }, - { - "regionTag": "compute_v1small_generated_Addresses_List_async", - "title": "Addresses list Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of addresses contained within the specified region.", - "canonical": true, - "file": "addresses.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.compute.v1small.Addresses.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1small.AddressList", - "client": { - "shortName": "AddressesClient", - "fullName": "google.cloud.compute.v1small.AddressesClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.compute.v1small.Addresses.List", - "service": { - "shortName": "Addresses", - "fullName": "google.cloud.compute.v1small.Addresses" - } - } - } - }, - { - "regionTag": "compute_v1small_generated_RegionOperations_Get_async", - "title": "Addresses get Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified region-specific Operations resource.", - "canonical": true, - "file": "region_operations.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1small.RegionOperations.Get", - "async": true, - "parameters": [ - { - "name": "operation", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1small.Operation", - "client": { - "shortName": "RegionOperationsClient", - "fullName": "google.cloud.compute.v1small.RegionOperationsClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.compute.v1small.RegionOperations.Get", - "service": { - "shortName": "RegionOperations", - "fullName": "google.cloud.compute.v1small.RegionOperations" - } - } - } - }, - { - "regionTag": "compute_v1small_generated_RegionOperations_Wait_async", - "title": "Addresses wait Sample", - "origin": "API_DEFINITION", - "description": " Waits for the specified Operation resource to return as `DONE` or for the request to approach the 2 minute deadline, and retrieves the specified Operation resource. This method differs from the `GET` method in that it waits for no more than the default deadline (2 minutes) and then returns the current state of the operation, which might be `DONE` or still in progress. This method is called on a best-effort basis. Specifically: - In uncommon cases, when the server is overloaded, the request might return before the default deadline is reached, or might return after zero seconds. - If the default deadline is reached, there is no guarantee that the operation is actually done when the method returns. Be prepared to retry if the operation is not `DONE`.", - "canonical": true, - "file": "region_operations.wait.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Wait", - "fullName": "google.cloud.compute.v1small.RegionOperations.Wait", - "async": true, - "parameters": [ - { - "name": "operation", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.compute.v1small.Operation", - "client": { - "shortName": "RegionOperationsClient", - "fullName": "google.cloud.compute.v1small.RegionOperationsClient" - }, - "method": { - "shortName": "Wait", - "fullName": "google.cloud.compute.v1small.RegionOperations.Wait", - "service": { - "shortName": "RegionOperations", - "fullName": "google.cloud.compute.v1small.RegionOperations" - } - } - } - } - ] -} diff --git a/packages/google-cloud-confidentialcomputing/samples/generated/v1/snippet_metadata_google.cloud.confidentialcomputing.v1.json b/packages/google-cloud-confidentialcomputing/samples/generated/v1/snippet_metadata_google.cloud.confidentialcomputing.v1.json deleted file mode 100644 index 72a2b702579c..000000000000 --- a/packages/google-cloud-confidentialcomputing/samples/generated/v1/snippet_metadata_google.cloud.confidentialcomputing.v1.json +++ /dev/null @@ -1,247 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-confidentialcomputing", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.confidentialcomputing.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "confidentialcomputing_v1_generated_ConfidentialComputing_CreateChallenge_async", - "title": "ConfidentialComputing createChallenge Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Challenge in a given project and location.", - "canonical": true, - "file": "confidential_computing.create_challenge.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateChallenge", - "fullName": "google.cloud.confidentialcomputing.v1.ConfidentialComputing.CreateChallenge", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "challenge", - "type": ".google.cloud.confidentialcomputing.v1.Challenge" - } - ], - "resultType": ".google.cloud.confidentialcomputing.v1.Challenge", - "client": { - "shortName": "ConfidentialComputingClient", - "fullName": "google.cloud.confidentialcomputing.v1.ConfidentialComputingClient" - }, - "method": { - "shortName": "CreateChallenge", - "fullName": "google.cloud.confidentialcomputing.v1.ConfidentialComputing.CreateChallenge", - "service": { - "shortName": "ConfidentialComputing", - "fullName": "google.cloud.confidentialcomputing.v1.ConfidentialComputing" - } - } - } - }, - { - "regionTag": "confidentialcomputing_v1_generated_ConfidentialComputing_VerifyAttestation_async", - "title": "ConfidentialComputing verifyAttestation Sample", - "origin": "API_DEFINITION", - "description": " Verifies the provided attestation info, returning a signed attestation token.", - "canonical": true, - "file": "confidential_computing.verify_attestation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 92, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "VerifyAttestation", - "fullName": "google.cloud.confidentialcomputing.v1.ConfidentialComputing.VerifyAttestation", - "async": true, - "parameters": [ - { - "name": "td_ccel", - "type": ".google.cloud.confidentialcomputing.v1.TdxCcelAttestation" - }, - { - "name": "sev_snp_attestation", - "type": ".google.cloud.confidentialcomputing.v1.SevSnpAttestation" - }, - { - "name": "nvidia_attestation", - "type": ".google.cloud.confidentialcomputing.v1.NvidiaAttestation" - }, - { - "name": "challenge", - "type": "TYPE_STRING" - }, - { - "name": "gcp_credentials", - "type": ".google.cloud.confidentialcomputing.v1.GcpCredentials" - }, - { - "name": "tpm_attestation", - "type": ".google.cloud.confidentialcomputing.v1.TpmAttestation" - }, - { - "name": "confidential_space_info", - "type": ".google.cloud.confidentialcomputing.v1.ConfidentialSpaceInfo" - }, - { - "name": "token_options", - "type": ".google.cloud.confidentialcomputing.v1.TokenOptions" - }, - { - "name": "attester", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.confidentialcomputing.v1.VerifyAttestationResponse", - "client": { - "shortName": "ConfidentialComputingClient", - "fullName": "google.cloud.confidentialcomputing.v1.ConfidentialComputingClient" - }, - "method": { - "shortName": "VerifyAttestation", - "fullName": "google.cloud.confidentialcomputing.v1.ConfidentialComputing.VerifyAttestation", - "service": { - "shortName": "ConfidentialComputing", - "fullName": "google.cloud.confidentialcomputing.v1.ConfidentialComputing" - } - } - } - }, - { - "regionTag": "confidentialcomputing_v1_generated_ConfidentialComputing_VerifyConfidentialSpace_async", - "title": "ConfidentialComputing verifyConfidentialSpace Sample", - "origin": "API_DEFINITION", - "description": " Verifies whether the provided attestation info is valid, returning a signed attestation token if so.", - "canonical": true, - "file": "confidential_computing.verify_confidential_space.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 91, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "VerifyConfidentialSpace", - "fullName": "google.cloud.confidentialcomputing.v1.ConfidentialComputing.VerifyConfidentialSpace", - "async": true, - "parameters": [ - { - "name": "td_ccel", - "type": ".google.cloud.confidentialcomputing.v1.TdxCcelAttestation" - }, - { - "name": "tpm_attestation", - "type": ".google.cloud.confidentialcomputing.v1.TpmAttestation" - }, - { - "name": "challenge", - "type": "TYPE_STRING" - }, - { - "name": "gcp_credentials", - "type": ".google.cloud.confidentialcomputing.v1.GcpCredentials" - }, - { - "name": "signed_entities", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "gce_shielded_identity", - "type": ".google.cloud.confidentialcomputing.v1.GceShieldedIdentity" - }, - { - "name": "options", - "type": ".google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceRequest.ConfidentialSpaceOptions" - }, - { - "name": "nvidia_attestation", - "type": ".google.cloud.confidentialcomputing.v1.NvidiaAttestation" - } - ], - "resultType": ".google.cloud.confidentialcomputing.v1.VerifyConfidentialSpaceResponse", - "client": { - "shortName": "ConfidentialComputingClient", - "fullName": "google.cloud.confidentialcomputing.v1.ConfidentialComputingClient" - }, - "method": { - "shortName": "VerifyConfidentialSpace", - "fullName": "google.cloud.confidentialcomputing.v1.ConfidentialComputing.VerifyConfidentialSpace", - "service": { - "shortName": "ConfidentialComputing", - "fullName": "google.cloud.confidentialcomputing.v1.ConfidentialComputing" - } - } - } - }, - { - "regionTag": "confidentialcomputing_v1_generated_ConfidentialComputing_VerifyConfidentialGke_async", - "title": "ConfidentialComputing verifyConfidentialGke Sample", - "origin": "API_DEFINITION", - "description": " Verifies the provided Confidential GKE attestation info, returning a signed OIDC token.", - "canonical": true, - "file": "confidential_computing.verify_confidential_gke.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "VerifyConfidentialGke", - "fullName": "google.cloud.confidentialcomputing.v1.ConfidentialComputing.VerifyConfidentialGke", - "async": true, - "parameters": [ - { - "name": "tpm_attestation", - "type": ".google.cloud.confidentialcomputing.v1.TpmAttestation" - }, - { - "name": "challenge", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": ".google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeRequest.ConfidentialGkeOptions" - } - ], - "resultType": ".google.cloud.confidentialcomputing.v1.VerifyConfidentialGkeResponse", - "client": { - "shortName": "ConfidentialComputingClient", - "fullName": "google.cloud.confidentialcomputing.v1.ConfidentialComputingClient" - }, - "method": { - "shortName": "VerifyConfidentialGke", - "fullName": "google.cloud.confidentialcomputing.v1.ConfidentialComputing.VerifyConfidentialGke", - "service": { - "shortName": "ConfidentialComputing", - "fullName": "google.cloud.confidentialcomputing.v1.ConfidentialComputing" - } - } - } - } - ] -} diff --git a/packages/google-cloud-confidentialcomputing/samples/generated/v1alpha1/snippet_metadata_google.cloud.confidentialcomputing.v1alpha1.json b/packages/google-cloud-confidentialcomputing/samples/generated/v1alpha1/snippet_metadata_google.cloud.confidentialcomputing.v1alpha1.json deleted file mode 100644 index c174597fe0ed..000000000000 --- a/packages/google-cloud-confidentialcomputing/samples/generated/v1alpha1/snippet_metadata_google.cloud.confidentialcomputing.v1alpha1.json +++ /dev/null @@ -1,107 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-confidentialcomputing", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.confidentialcomputing.v1alpha1", - "version": "v1alpha1" - } - ] - }, - "snippets": [ - { - "regionTag": "confidentialcomputing_v1alpha1_generated_ConfidentialComputing_CreateChallenge_async", - "title": "ConfidentialComputing createChallenge Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Challenge in a given project and location.", - "canonical": true, - "file": "confidential_computing.create_challenge.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateChallenge", - "fullName": "google.cloud.confidentialcomputing.v1alpha1.ConfidentialComputing.CreateChallenge", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "challenge", - "type": ".google.cloud.confidentialcomputing.v1alpha1.Challenge" - } - ], - "resultType": ".google.cloud.confidentialcomputing.v1alpha1.Challenge", - "client": { - "shortName": "ConfidentialComputingClient", - "fullName": "google.cloud.confidentialcomputing.v1alpha1.ConfidentialComputingClient" - }, - "method": { - "shortName": "CreateChallenge", - "fullName": "google.cloud.confidentialcomputing.v1alpha1.ConfidentialComputing.CreateChallenge", - "service": { - "shortName": "ConfidentialComputing", - "fullName": "google.cloud.confidentialcomputing.v1alpha1.ConfidentialComputing" - } - } - } - }, - { - "regionTag": "confidentialcomputing_v1alpha1_generated_ConfidentialComputing_VerifyAttestation_async", - "title": "ConfidentialComputing verifyAttestation Sample", - "origin": "API_DEFINITION", - "description": " Verifies the provided attestation info, returning a signed OIDC token.", - "canonical": true, - "file": "confidential_computing.verify_attestation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "VerifyAttestation", - "fullName": "google.cloud.confidentialcomputing.v1alpha1.ConfidentialComputing.VerifyAttestation", - "async": true, - "parameters": [ - { - "name": "challenge", - "type": "TYPE_STRING" - }, - { - "name": "gcp_credentials", - "type": ".google.cloud.confidentialcomputing.v1alpha1.GcpCredentials" - }, - { - "name": "tpm_attestation", - "type": ".google.cloud.confidentialcomputing.v1alpha1.TpmAttestation" - } - ], - "resultType": ".google.cloud.confidentialcomputing.v1alpha1.VerifyAttestationResponse", - "client": { - "shortName": "ConfidentialComputingClient", - "fullName": "google.cloud.confidentialcomputing.v1alpha1.ConfidentialComputingClient" - }, - "method": { - "shortName": "VerifyAttestation", - "fullName": "google.cloud.confidentialcomputing.v1alpha1.ConfidentialComputing.VerifyAttestation", - "service": { - "shortName": "ConfidentialComputing", - "fullName": "google.cloud.confidentialcomputing.v1alpha1.ConfidentialComputing" - } - } - } - } - ] -} diff --git a/packages/google-cloud-config/samples/generated/v1/snippet_metadata_google.cloud.config.v1.json b/packages/google-cloud-config/samples/generated/v1/snippet_metadata_google.cloud.config.v1.json deleted file mode 100644 index e0170cbda834..000000000000 --- a/packages/google-cloud-config/samples/generated/v1/snippet_metadata_google.cloud.config.v1.json +++ /dev/null @@ -1,1787 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-config", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.config.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "config_v1_generated_Config_ListDeployments_async", - "title": "Config listDeployments Sample", - "origin": "API_DEFINITION", - "description": " Lists [Deployment][google.cloud.config.v1.Deployment]s in a given project and location.", - "canonical": true, - "file": "config.list_deployments.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 93, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDeployments", - "fullName": "google.cloud.config.v1.Config.ListDeployments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.config.v1.ListDeploymentsResponse", - "client": { - "shortName": "ConfigClient", - "fullName": "google.cloud.config.v1.ConfigClient" - }, - "method": { - "shortName": "ListDeployments", - "fullName": "google.cloud.config.v1.Config.ListDeployments", - "service": { - "shortName": "Config", - "fullName": "google.cloud.config.v1.Config" - } - } - } - }, - { - "regionTag": "config_v1_generated_Config_GetDeployment_async", - "title": "Config getDeployment Sample", - "origin": "API_DEFINITION", - "description": " Gets details about a [Deployment][google.cloud.config.v1.Deployment].", - "canonical": true, - "file": "config.get_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDeployment", - "fullName": "google.cloud.config.v1.Config.GetDeployment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.config.v1.Deployment", - "client": { - "shortName": "ConfigClient", - "fullName": "google.cloud.config.v1.ConfigClient" - }, - "method": { - "shortName": "GetDeployment", - "fullName": "google.cloud.config.v1.Config.GetDeployment", - "service": { - "shortName": "Config", - "fullName": "google.cloud.config.v1.Config" - } - } - } - }, - { - "regionTag": "config_v1_generated_Config_CreateDeployment_async", - "title": "Config createDeployment Sample", - "origin": "API_DEFINITION", - "description": " Creates a [Deployment][google.cloud.config.v1.Deployment].", - "canonical": true, - "file": "config.create_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDeployment", - "fullName": "google.cloud.config.v1.Config.CreateDeployment", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "deployment_id", - "type": "TYPE_STRING" - }, - { - "name": "deployment", - "type": ".google.cloud.config.v1.Deployment" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigClient", - "fullName": "google.cloud.config.v1.ConfigClient" - }, - "method": { - "shortName": "CreateDeployment", - "fullName": "google.cloud.config.v1.Config.CreateDeployment", - "service": { - "shortName": "Config", - "fullName": "google.cloud.config.v1.Config" - } - } - } - }, - { - "regionTag": "config_v1_generated_Config_UpdateDeployment_async", - "title": "Config updateDeployment Sample", - "origin": "API_DEFINITION", - "description": " Updates a [Deployment][google.cloud.config.v1.Deployment].", - "canonical": true, - "file": "config.update_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDeployment", - "fullName": "google.cloud.config.v1.Config.UpdateDeployment", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "deployment", - "type": ".google.cloud.config.v1.Deployment" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigClient", - "fullName": "google.cloud.config.v1.ConfigClient" - }, - "method": { - "shortName": "UpdateDeployment", - "fullName": "google.cloud.config.v1.Config.UpdateDeployment", - "service": { - "shortName": "Config", - "fullName": "google.cloud.config.v1.Config" - } - } - } - }, - { - "regionTag": "config_v1_generated_Config_DeleteDeployment_async", - "title": "Config deleteDeployment Sample", - "origin": "API_DEFINITION", - "description": " Deletes a [Deployment][google.cloud.config.v1.Deployment].", - "canonical": true, - "file": "config.delete_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDeployment", - "fullName": "google.cloud.config.v1.Config.DeleteDeployment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - }, - { - "name": "delete_policy", - "type": ".google.cloud.config.v1.DeleteDeploymentRequest.DeletePolicy" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigClient", - "fullName": "google.cloud.config.v1.ConfigClient" - }, - "method": { - "shortName": "DeleteDeployment", - "fullName": "google.cloud.config.v1.Config.DeleteDeployment", - "service": { - "shortName": "Config", - "fullName": "google.cloud.config.v1.Config" - } - } - } - }, - { - "regionTag": "config_v1_generated_Config_ListRevisions_async", - "title": "Config listRevisions Sample", - "origin": "API_DEFINITION", - "description": " Lists [Revision][google.cloud.config.v1.Revision]s of a deployment.", - "canonical": true, - "file": "config.list_revisions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 93, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRevisions", - "fullName": "google.cloud.config.v1.Config.ListRevisions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.config.v1.ListRevisionsResponse", - "client": { - "shortName": "ConfigClient", - "fullName": "google.cloud.config.v1.ConfigClient" - }, - "method": { - "shortName": "ListRevisions", - "fullName": "google.cloud.config.v1.Config.ListRevisions", - "service": { - "shortName": "Config", - "fullName": "google.cloud.config.v1.Config" - } - } - } - }, - { - "regionTag": "config_v1_generated_Config_GetRevision_async", - "title": "Config getRevision Sample", - "origin": "API_DEFINITION", - "description": " Gets details about a [Revision][google.cloud.config.v1.Revision].", - "canonical": true, - "file": "config.get_revision.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRevision", - "fullName": "google.cloud.config.v1.Config.GetRevision", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.config.v1.Revision", - "client": { - "shortName": "ConfigClient", - "fullName": "google.cloud.config.v1.ConfigClient" - }, - "method": { - "shortName": "GetRevision", - "fullName": "google.cloud.config.v1.Config.GetRevision", - "service": { - "shortName": "Config", - "fullName": "google.cloud.config.v1.Config" - } - } - } - }, - { - "regionTag": "config_v1_generated_Config_GetResource_async", - "title": "Config getResource Sample", - "origin": "API_DEFINITION", - "description": " Gets details about a [Resource][google.cloud.config.v1.Resource] deployed by Infra Manager.", - "canonical": true, - "file": "config.get_resource.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetResource", - "fullName": "google.cloud.config.v1.Config.GetResource", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.config.v1.Resource", - "client": { - "shortName": "ConfigClient", - "fullName": "google.cloud.config.v1.ConfigClient" - }, - "method": { - "shortName": "GetResource", - "fullName": "google.cloud.config.v1.Config.GetResource", - "service": { - "shortName": "Config", - "fullName": "google.cloud.config.v1.Config" - } - } - } - }, - { - "regionTag": "config_v1_generated_Config_ListResources_async", - "title": "Config listResources Sample", - "origin": "API_DEFINITION", - "description": " Lists [Resources][google.cloud.config.v1.Resource] in a given revision.", - "canonical": true, - "file": "config.list_resources.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListResources", - "fullName": "google.cloud.config.v1.Config.ListResources", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.config.v1.ListResourcesResponse", - "client": { - "shortName": "ConfigClient", - "fullName": "google.cloud.config.v1.ConfigClient" - }, - "method": { - "shortName": "ListResources", - "fullName": "google.cloud.config.v1.Config.ListResources", - "service": { - "shortName": "Config", - "fullName": "google.cloud.config.v1.Config" - } - } - } - }, - { - "regionTag": "config_v1_generated_Config_ExportDeploymentStatefile_async", - "title": "Config exportDeploymentStatefile Sample", - "origin": "API_DEFINITION", - "description": " Exports Terraform state file from a given deployment.", - "canonical": true, - "file": "config.export_deployment_statefile.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportDeploymentStatefile", - "fullName": "google.cloud.config.v1.Config.ExportDeploymentStatefile", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "draft", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.config.v1.Statefile", - "client": { - "shortName": "ConfigClient", - "fullName": "google.cloud.config.v1.ConfigClient" - }, - "method": { - "shortName": "ExportDeploymentStatefile", - "fullName": "google.cloud.config.v1.Config.ExportDeploymentStatefile", - "service": { - "shortName": "Config", - "fullName": "google.cloud.config.v1.Config" - } - } - } - }, - { - "regionTag": "config_v1_generated_Config_ExportRevisionStatefile_async", - "title": "Config exportRevisionStatefile Sample", - "origin": "API_DEFINITION", - "description": " Exports Terraform state file from a given revision.", - "canonical": true, - "file": "config.export_revision_statefile.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportRevisionStatefile", - "fullName": "google.cloud.config.v1.Config.ExportRevisionStatefile", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.config.v1.Statefile", - "client": { - "shortName": "ConfigClient", - "fullName": "google.cloud.config.v1.ConfigClient" - }, - "method": { - "shortName": "ExportRevisionStatefile", - "fullName": "google.cloud.config.v1.Config.ExportRevisionStatefile", - "service": { - "shortName": "Config", - "fullName": "google.cloud.config.v1.Config" - } - } - } - }, - { - "regionTag": "config_v1_generated_Config_ImportStatefile_async", - "title": "Config importStatefile Sample", - "origin": "API_DEFINITION", - "description": " Imports Terraform state file in a given deployment. The state file does not take effect until the Deployment has been unlocked.", - "canonical": true, - "file": "config.import_statefile.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportStatefile", - "fullName": "google.cloud.config.v1.Config.ImportStatefile", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "lock_id", - "type": "TYPE_INT64" - }, - { - "name": "skip_draft", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.config.v1.Statefile", - "client": { - "shortName": "ConfigClient", - "fullName": "google.cloud.config.v1.ConfigClient" - }, - "method": { - "shortName": "ImportStatefile", - "fullName": "google.cloud.config.v1.Config.ImportStatefile", - "service": { - "shortName": "Config", - "fullName": "google.cloud.config.v1.Config" - } - } - } - }, - { - "regionTag": "config_v1_generated_Config_DeleteStatefile_async", - "title": "Config deleteStatefile Sample", - "origin": "API_DEFINITION", - "description": " Deletes Terraform state file in a given deployment.", - "canonical": true, - "file": "config.delete_statefile.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteStatefile", - "fullName": "google.cloud.config.v1.Config.DeleteStatefile", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "lock_id", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ConfigClient", - "fullName": "google.cloud.config.v1.ConfigClient" - }, - "method": { - "shortName": "DeleteStatefile", - "fullName": "google.cloud.config.v1.Config.DeleteStatefile", - "service": { - "shortName": "Config", - "fullName": "google.cloud.config.v1.Config" - } - } - } - }, - { - "regionTag": "config_v1_generated_Config_LockDeployment_async", - "title": "Config lockDeployment Sample", - "origin": "API_DEFINITION", - "description": " Locks a deployment.", - "canonical": true, - "file": "config.lock_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "LockDeployment", - "fullName": "google.cloud.config.v1.Config.LockDeployment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigClient", - "fullName": "google.cloud.config.v1.ConfigClient" - }, - "method": { - "shortName": "LockDeployment", - "fullName": "google.cloud.config.v1.Config.LockDeployment", - "service": { - "shortName": "Config", - "fullName": "google.cloud.config.v1.Config" - } - } - } - }, - { - "regionTag": "config_v1_generated_Config_UnlockDeployment_async", - "title": "Config unlockDeployment Sample", - "origin": "API_DEFINITION", - "description": " Unlocks a locked deployment.", - "canonical": true, - "file": "config.unlock_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UnlockDeployment", - "fullName": "google.cloud.config.v1.Config.UnlockDeployment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "lock_id", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigClient", - "fullName": "google.cloud.config.v1.ConfigClient" - }, - "method": { - "shortName": "UnlockDeployment", - "fullName": "google.cloud.config.v1.Config.UnlockDeployment", - "service": { - "shortName": "Config", - "fullName": "google.cloud.config.v1.Config" - } - } - } - }, - { - "regionTag": "config_v1_generated_Config_ExportLockInfo_async", - "title": "Config exportLockInfo Sample", - "origin": "API_DEFINITION", - "description": " Exports the lock info on a locked deployment.", - "canonical": true, - "file": "config.export_lock_info.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportLockInfo", - "fullName": "google.cloud.config.v1.Config.ExportLockInfo", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.config.v1.LockInfo", - "client": { - "shortName": "ConfigClient", - "fullName": "google.cloud.config.v1.ConfigClient" - }, - "method": { - "shortName": "ExportLockInfo", - "fullName": "google.cloud.config.v1.Config.ExportLockInfo", - "service": { - "shortName": "Config", - "fullName": "google.cloud.config.v1.Config" - } - } - } - }, - { - "regionTag": "config_v1_generated_Config_CreatePreview_async", - "title": "Config createPreview Sample", - "origin": "API_DEFINITION", - "description": " Creates a [Preview][google.cloud.config.v1.Preview].", - "canonical": true, - "file": "config.create_preview.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreatePreview", - "fullName": "google.cloud.config.v1.Config.CreatePreview", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "preview_id", - "type": "TYPE_STRING" - }, - { - "name": "preview", - "type": ".google.cloud.config.v1.Preview" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigClient", - "fullName": "google.cloud.config.v1.ConfigClient" - }, - "method": { - "shortName": "CreatePreview", - "fullName": "google.cloud.config.v1.Config.CreatePreview", - "service": { - "shortName": "Config", - "fullName": "google.cloud.config.v1.Config" - } - } - } - }, - { - "regionTag": "config_v1_generated_Config_GetPreview_async", - "title": "Config getPreview Sample", - "origin": "API_DEFINITION", - "description": " Gets details about a [Preview][google.cloud.config.v1.Preview].", - "canonical": true, - "file": "config.get_preview.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPreview", - "fullName": "google.cloud.config.v1.Config.GetPreview", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.config.v1.Preview", - "client": { - "shortName": "ConfigClient", - "fullName": "google.cloud.config.v1.ConfigClient" - }, - "method": { - "shortName": "GetPreview", - "fullName": "google.cloud.config.v1.Config.GetPreview", - "service": { - "shortName": "Config", - "fullName": "google.cloud.config.v1.Config" - } - } - } - }, - { - "regionTag": "config_v1_generated_Config_ListPreviews_async", - "title": "Config listPreviews Sample", - "origin": "API_DEFINITION", - "description": " Lists [Preview][google.cloud.config.v1.Preview]s in a given project and location.", - "canonical": true, - "file": "config.list_previews.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 93, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPreviews", - "fullName": "google.cloud.config.v1.Config.ListPreviews", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.config.v1.ListPreviewsResponse", - "client": { - "shortName": "ConfigClient", - "fullName": "google.cloud.config.v1.ConfigClient" - }, - "method": { - "shortName": "ListPreviews", - "fullName": "google.cloud.config.v1.Config.ListPreviews", - "service": { - "shortName": "Config", - "fullName": "google.cloud.config.v1.Config" - } - } - } - }, - { - "regionTag": "config_v1_generated_Config_DeletePreview_async", - "title": "Config deletePreview Sample", - "origin": "API_DEFINITION", - "description": " Deletes a [Preview][google.cloud.config.v1.Preview].", - "canonical": true, - "file": "config.delete_preview.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePreview", - "fullName": "google.cloud.config.v1.Config.DeletePreview", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigClient", - "fullName": "google.cloud.config.v1.ConfigClient" - }, - "method": { - "shortName": "DeletePreview", - "fullName": "google.cloud.config.v1.Config.DeletePreview", - "service": { - "shortName": "Config", - "fullName": "google.cloud.config.v1.Config" - } - } - } - }, - { - "regionTag": "config_v1_generated_Config_ExportPreviewResult_async", - "title": "Config exportPreviewResult Sample", - "origin": "API_DEFINITION", - "description": " Export [Preview][google.cloud.config.v1.Preview] results.", - "canonical": true, - "file": "config.export_preview_result.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportPreviewResult", - "fullName": "google.cloud.config.v1.Config.ExportPreviewResult", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.config.v1.ExportPreviewResultResponse", - "client": { - "shortName": "ConfigClient", - "fullName": "google.cloud.config.v1.ConfigClient" - }, - "method": { - "shortName": "ExportPreviewResult", - "fullName": "google.cloud.config.v1.Config.ExportPreviewResult", - "service": { - "shortName": "Config", - "fullName": "google.cloud.config.v1.Config" - } - } - } - }, - { - "regionTag": "config_v1_generated_Config_ListTerraformVersions_async", - "title": "Config listTerraformVersions Sample", - "origin": "API_DEFINITION", - "description": " Lists [TerraformVersion][google.cloud.config.v1.TerraformVersion]s in a given project and location.", - "canonical": true, - "file": "config.list_terraform_versions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTerraformVersions", - "fullName": "google.cloud.config.v1.Config.ListTerraformVersions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.config.v1.ListTerraformVersionsResponse", - "client": { - "shortName": "ConfigClient", - "fullName": "google.cloud.config.v1.ConfigClient" - }, - "method": { - "shortName": "ListTerraformVersions", - "fullName": "google.cloud.config.v1.Config.ListTerraformVersions", - "service": { - "shortName": "Config", - "fullName": "google.cloud.config.v1.Config" - } - } - } - }, - { - "regionTag": "config_v1_generated_Config_GetTerraformVersion_async", - "title": "Config getTerraformVersion Sample", - "origin": "API_DEFINITION", - "description": " Gets details about a [TerraformVersion][google.cloud.config.v1.TerraformVersion].", - "canonical": true, - "file": "config.get_terraform_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTerraformVersion", - "fullName": "google.cloud.config.v1.Config.GetTerraformVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.config.v1.TerraformVersion", - "client": { - "shortName": "ConfigClient", - "fullName": "google.cloud.config.v1.ConfigClient" - }, - "method": { - "shortName": "GetTerraformVersion", - "fullName": "google.cloud.config.v1.Config.GetTerraformVersion", - "service": { - "shortName": "Config", - "fullName": "google.cloud.config.v1.Config" - } - } - } - }, - { - "regionTag": "config_v1_generated_Config_ListResourceChanges_async", - "title": "Config listResourceChanges Sample", - "origin": "API_DEFINITION", - "description": " Lists ResourceChanges for a given preview.", - "canonical": true, - "file": "config.list_resource_changes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 89, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListResourceChanges", - "fullName": "google.cloud.config.v1.Config.ListResourceChanges", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.config.v1.ListResourceChangesResponse", - "client": { - "shortName": "ConfigClient", - "fullName": "google.cloud.config.v1.ConfigClient" - }, - "method": { - "shortName": "ListResourceChanges", - "fullName": "google.cloud.config.v1.Config.ListResourceChanges", - "service": { - "shortName": "Config", - "fullName": "google.cloud.config.v1.Config" - } - } - } - }, - { - "regionTag": "config_v1_generated_Config_GetResourceChange_async", - "title": "Config getResourceChange Sample", - "origin": "API_DEFINITION", - "description": " Get a ResourceChange for a given preview.", - "canonical": true, - "file": "config.get_resource_change.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetResourceChange", - "fullName": "google.cloud.config.v1.Config.GetResourceChange", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.config.v1.ResourceChange", - "client": { - "shortName": "ConfigClient", - "fullName": "google.cloud.config.v1.ConfigClient" - }, - "method": { - "shortName": "GetResourceChange", - "fullName": "google.cloud.config.v1.Config.GetResourceChange", - "service": { - "shortName": "Config", - "fullName": "google.cloud.config.v1.Config" - } - } - } - }, - { - "regionTag": "config_v1_generated_Config_ListResourceDrifts_async", - "title": "Config listResourceDrifts Sample", - "origin": "API_DEFINITION", - "description": " List ResourceDrifts for a given preview.", - "canonical": true, - "file": "config.list_resource_drifts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 89, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListResourceDrifts", - "fullName": "google.cloud.config.v1.Config.ListResourceDrifts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.config.v1.ListResourceDriftsResponse", - "client": { - "shortName": "ConfigClient", - "fullName": "google.cloud.config.v1.ConfigClient" - }, - "method": { - "shortName": "ListResourceDrifts", - "fullName": "google.cloud.config.v1.Config.ListResourceDrifts", - "service": { - "shortName": "Config", - "fullName": "google.cloud.config.v1.Config" - } - } - } - }, - { - "regionTag": "config_v1_generated_Config_GetResourceDrift_async", - "title": "Config getResourceDrift Sample", - "origin": "API_DEFINITION", - "description": " Get a ResourceDrift for a given preview.", - "canonical": true, - "file": "config.get_resource_drift.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetResourceDrift", - "fullName": "google.cloud.config.v1.Config.GetResourceDrift", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.config.v1.ResourceDrift", - "client": { - "shortName": "ConfigClient", - "fullName": "google.cloud.config.v1.ConfigClient" - }, - "method": { - "shortName": "GetResourceDrift", - "fullName": "google.cloud.config.v1.Config.GetResourceDrift", - "service": { - "shortName": "Config", - "fullName": "google.cloud.config.v1.Config" - } - } - } - }, - { - "regionTag": "config_v1_generated_Config_GetAutoMigrationConfig_async", - "title": "Config getAutoMigrationConfig Sample", - "origin": "API_DEFINITION", - "description": " Get the AutoMigrationConfig for a given project and location.", - "canonical": true, - "file": "config.get_auto_migration_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAutoMigrationConfig", - "fullName": "google.cloud.config.v1.Config.GetAutoMigrationConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.config.v1.AutoMigrationConfig", - "client": { - "shortName": "ConfigClient", - "fullName": "google.cloud.config.v1.ConfigClient" - }, - "method": { - "shortName": "GetAutoMigrationConfig", - "fullName": "google.cloud.config.v1.Config.GetAutoMigrationConfig", - "service": { - "shortName": "Config", - "fullName": "google.cloud.config.v1.Config" - } - } - } - }, - { - "regionTag": "config_v1_generated_Config_UpdateAutoMigrationConfig_async", - "title": "Config updateAutoMigrationConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates the AutoMigrationConfig for a given project and location.", - "canonical": true, - "file": "config.update_auto_migration_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAutoMigrationConfig", - "fullName": "google.cloud.config.v1.Config.UpdateAutoMigrationConfig", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "auto_migration_config", - "type": ".google.cloud.config.v1.AutoMigrationConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigClient", - "fullName": "google.cloud.config.v1.ConfigClient" - }, - "method": { - "shortName": "UpdateAutoMigrationConfig", - "fullName": "google.cloud.config.v1.Config.UpdateAutoMigrationConfig", - "service": { - "shortName": "Config", - "fullName": "google.cloud.config.v1.Config" - } - } - } - }, - { - "regionTag": "config_v1_generated_Config_GetDeploymentGroup_async", - "title": "Config getDeploymentGroup Sample", - "origin": "API_DEFINITION", - "description": " Get a DeploymentGroup for a given project and location.", - "canonical": true, - "file": "config.get_deployment_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDeploymentGroup", - "fullName": "google.cloud.config.v1.Config.GetDeploymentGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.config.v1.DeploymentGroup", - "client": { - "shortName": "ConfigClient", - "fullName": "google.cloud.config.v1.ConfigClient" - }, - "method": { - "shortName": "GetDeploymentGroup", - "fullName": "google.cloud.config.v1.Config.GetDeploymentGroup", - "service": { - "shortName": "Config", - "fullName": "google.cloud.config.v1.Config" - } - } - } - }, - { - "regionTag": "config_v1_generated_Config_CreateDeploymentGroup_async", - "title": "Config createDeploymentGroup Sample", - "origin": "API_DEFINITION", - "description": " Creates a [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] The newly created DeploymentGroup will be in the `CREATING` state and can be retrieved via Get and List calls.", - "canonical": true, - "file": "config.create_deployment_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDeploymentGroup", - "fullName": "google.cloud.config.v1.Config.CreateDeploymentGroup", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "deployment_group_id", - "type": "TYPE_STRING" - }, - { - "name": "deployment_group", - "type": ".google.cloud.config.v1.DeploymentGroup" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigClient", - "fullName": "google.cloud.config.v1.ConfigClient" - }, - "method": { - "shortName": "CreateDeploymentGroup", - "fullName": "google.cloud.config.v1.Config.CreateDeploymentGroup", - "service": { - "shortName": "Config", - "fullName": "google.cloud.config.v1.Config" - } - } - } - }, - { - "regionTag": "config_v1_generated_Config_UpdateDeploymentGroup_async", - "title": "Config updateDeploymentGroup Sample", - "origin": "API_DEFINITION", - "description": " Updates a [DeploymentGroup][google.cloud.config.v1.DeploymentGroup]", - "canonical": true, - "file": "config.update_deployment_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDeploymentGroup", - "fullName": "google.cloud.config.v1.Config.UpdateDeploymentGroup", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "deployment_group", - "type": ".google.cloud.config.v1.DeploymentGroup" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigClient", - "fullName": "google.cloud.config.v1.ConfigClient" - }, - "method": { - "shortName": "UpdateDeploymentGroup", - "fullName": "google.cloud.config.v1.Config.UpdateDeploymentGroup", - "service": { - "shortName": "Config", - "fullName": "google.cloud.config.v1.Config" - } - } - } - }, - { - "regionTag": "config_v1_generated_Config_DeleteDeploymentGroup_async", - "title": "Config deleteDeploymentGroup Sample", - "origin": "API_DEFINITION", - "description": " Deletes a [DeploymentGroup][google.cloud.config.v1.DeploymentGroup]", - "canonical": true, - "file": "config.delete_deployment_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDeploymentGroup", - "fullName": "google.cloud.config.v1.Config.DeleteDeploymentGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - }, - { - "name": "deployment_reference_policy", - "type": ".google.cloud.config.v1.DeleteDeploymentGroupRequest.DeploymentReferencePolicy" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigClient", - "fullName": "google.cloud.config.v1.ConfigClient" - }, - "method": { - "shortName": "DeleteDeploymentGroup", - "fullName": "google.cloud.config.v1.Config.DeleteDeploymentGroup", - "service": { - "shortName": "Config", - "fullName": "google.cloud.config.v1.Config" - } - } - } - }, - { - "regionTag": "config_v1_generated_Config_ListDeploymentGroups_async", - "title": "Config listDeploymentGroups Sample", - "origin": "API_DEFINITION", - "description": " List DeploymentGroups for a given project and location.", - "canonical": true, - "file": "config.list_deployment_groups.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 94, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDeploymentGroups", - "fullName": "google.cloud.config.v1.Config.ListDeploymentGroups", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.config.v1.ListDeploymentGroupsResponse", - "client": { - "shortName": "ConfigClient", - "fullName": "google.cloud.config.v1.ConfigClient" - }, - "method": { - "shortName": "ListDeploymentGroups", - "fullName": "google.cloud.config.v1.Config.ListDeploymentGroups", - "service": { - "shortName": "Config", - "fullName": "google.cloud.config.v1.Config" - } - } - } - }, - { - "regionTag": "config_v1_generated_Config_ProvisionDeploymentGroup_async", - "title": "Config provisionDeploymentGroup Sample", - "origin": "API_DEFINITION", - "description": " Provisions a deployment group. NOTE: As a first step of this operation, Infra Manager will automatically delete any Deployments that were part of the *last successful* [DeploymentGroupRevision][google.cloud.config.v1.DeploymentGroupRevision] but are *no longer* included in the *current* [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] definition (e.g., following an `UpdateDeploymentGroup` call), along with their actuated resources.", - "canonical": true, - "file": "config.provision_deployment_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ProvisionDeploymentGroup", - "fullName": "google.cloud.config.v1.Config.ProvisionDeploymentGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "deployment_specs", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigClient", - "fullName": "google.cloud.config.v1.ConfigClient" - }, - "method": { - "shortName": "ProvisionDeploymentGroup", - "fullName": "google.cloud.config.v1.Config.ProvisionDeploymentGroup", - "service": { - "shortName": "Config", - "fullName": "google.cloud.config.v1.Config" - } - } - } - }, - { - "regionTag": "config_v1_generated_Config_DeprovisionDeploymentGroup_async", - "title": "Config deprovisionDeploymentGroup Sample", - "origin": "API_DEFINITION", - "description": " Deprovisions a deployment group. NOTE: As a first step of this operation, Infra Manager will automatically delete any Deployments that were part of the *last successful* [DeploymentGroupRevision][google.cloud.config.v1.DeploymentGroupRevision] but are *no longer* included in the *current* [DeploymentGroup][google.cloud.config.v1.DeploymentGroup] definition (e.g., following an `UpdateDeploymentGroup` call), along with their actuated resources.", - "canonical": true, - "file": "config.deprovision_deployment_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeprovisionDeploymentGroup", - "fullName": "google.cloud.config.v1.Config.DeprovisionDeploymentGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - }, - { - "name": "delete_policy", - "type": ".google.cloud.config.v1.DeleteDeploymentRequest.DeletePolicy" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigClient", - "fullName": "google.cloud.config.v1.ConfigClient" - }, - "method": { - "shortName": "DeprovisionDeploymentGroup", - "fullName": "google.cloud.config.v1.Config.DeprovisionDeploymentGroup", - "service": { - "shortName": "Config", - "fullName": "google.cloud.config.v1.Config" - } - } - } - }, - { - "regionTag": "config_v1_generated_Config_GetDeploymentGroupRevision_async", - "title": "Config getDeploymentGroupRevision Sample", - "origin": "API_DEFINITION", - "description": " Gets details about a [DeploymentGroupRevision][google.cloud.config.v1.DeploymentGroupRevision].", - "canonical": true, - "file": "config.get_deployment_group_revision.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDeploymentGroupRevision", - "fullName": "google.cloud.config.v1.Config.GetDeploymentGroupRevision", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.config.v1.DeploymentGroupRevision", - "client": { - "shortName": "ConfigClient", - "fullName": "google.cloud.config.v1.ConfigClient" - }, - "method": { - "shortName": "GetDeploymentGroupRevision", - "fullName": "google.cloud.config.v1.Config.GetDeploymentGroupRevision", - "service": { - "shortName": "Config", - "fullName": "google.cloud.config.v1.Config" - } - } - } - }, - { - "regionTag": "config_v1_generated_Config_ListDeploymentGroupRevisions_async", - "title": "Config listDeploymentGroupRevisions Sample", - "origin": "API_DEFINITION", - "description": " Lists [DeploymentGroupRevision][google.cloud.config.v1.DeploymentGroupRevision]s in a given [DeploymentGroup][google.cloud.config.v1.DeploymentGroup].", - "canonical": true, - "file": "config.list_deployment_group_revisions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDeploymentGroupRevisions", - "fullName": "google.cloud.config.v1.Config.ListDeploymentGroupRevisions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.config.v1.ListDeploymentGroupRevisionsResponse", - "client": { - "shortName": "ConfigClient", - "fullName": "google.cloud.config.v1.ConfigClient" - }, - "method": { - "shortName": "ListDeploymentGroupRevisions", - "fullName": "google.cloud.config.v1.Config.ListDeploymentGroupRevisions", - "service": { - "shortName": "Config", - "fullName": "google.cloud.config.v1.Config" - } - } - } - } - ] -} diff --git a/packages/google-cloud-configdelivery/samples/generated/v1/snippet_metadata_google.cloud.configdelivery.v1.json b/packages/google-cloud-configdelivery/samples/generated/v1/snippet_metadata_google.cloud.configdelivery.v1.json deleted file mode 100644 index e2b60400341a..000000000000 --- a/packages/google-cloud-configdelivery/samples/generated/v1/snippet_metadata_google.cloud.configdelivery.v1.json +++ /dev/null @@ -1,1219 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-configdelivery", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.configdelivery.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "configdelivery_v1_generated_ConfigDelivery_ListResourceBundles_async", - "title": "ConfigDelivery listResourceBundles Sample", - "origin": "API_DEFINITION", - "description": " Lists ResourceBundles in a given project and location.", - "canonical": true, - "file": "config_delivery.list_resource_bundles.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListResourceBundles", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery.ListResourceBundles", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.configdelivery.v1.ListResourceBundlesResponse", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1.ConfigDeliveryClient" - }, - "method": { - "shortName": "ListResourceBundles", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery.ListResourceBundles", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1_generated_ConfigDelivery_GetResourceBundle_async", - "title": "ConfigDelivery getResourceBundle Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single ResourceBundle.", - "canonical": true, - "file": "config_delivery.get_resource_bundle.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetResourceBundle", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery.GetResourceBundle", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.configdelivery.v1.ResourceBundle", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1.ConfigDeliveryClient" - }, - "method": { - "shortName": "GetResourceBundle", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery.GetResourceBundle", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1_generated_ConfigDelivery_CreateResourceBundle_async", - "title": "ConfigDelivery createResourceBundle Sample", - "origin": "API_DEFINITION", - "description": " Creates a new ResourceBundle in a given project and location.", - "canonical": true, - "file": "config_delivery.create_resource_bundle.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateResourceBundle", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery.CreateResourceBundle", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "resource_bundle_id", - "type": "TYPE_STRING" - }, - { - "name": "resource_bundle", - "type": ".google.cloud.configdelivery.v1.ResourceBundle" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1.ConfigDeliveryClient" - }, - "method": { - "shortName": "CreateResourceBundle", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery.CreateResourceBundle", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1_generated_ConfigDelivery_UpdateResourceBundle_async", - "title": "ConfigDelivery updateResourceBundle Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single ResourceBundle.", - "canonical": true, - "file": "config_delivery.update_resource_bundle.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateResourceBundle", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery.UpdateResourceBundle", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "resource_bundle", - "type": ".google.cloud.configdelivery.v1.ResourceBundle" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1.ConfigDeliveryClient" - }, - "method": { - "shortName": "UpdateResourceBundle", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery.UpdateResourceBundle", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1_generated_ConfigDelivery_DeleteResourceBundle_async", - "title": "ConfigDelivery deleteResourceBundle Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single ResourceBundle.", - "canonical": true, - "file": "config_delivery.delete_resource_bundle.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteResourceBundle", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery.DeleteResourceBundle", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1.ConfigDeliveryClient" - }, - "method": { - "shortName": "DeleteResourceBundle", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery.DeleteResourceBundle", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1_generated_ConfigDelivery_ListFleetPackages_async", - "title": "ConfigDelivery listFleetPackages Sample", - "origin": "API_DEFINITION", - "description": " Lists FleetPackages in a given project and location.", - "canonical": true, - "file": "config_delivery.list_fleet_packages.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFleetPackages", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery.ListFleetPackages", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.configdelivery.v1.ListFleetPackagesResponse", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1.ConfigDeliveryClient" - }, - "method": { - "shortName": "ListFleetPackages", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery.ListFleetPackages", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1_generated_ConfigDelivery_GetFleetPackage_async", - "title": "ConfigDelivery getFleetPackage Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single FleetPackage.", - "canonical": true, - "file": "config_delivery.get_fleet_package.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFleetPackage", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery.GetFleetPackage", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.configdelivery.v1.FleetPackage", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1.ConfigDeliveryClient" - }, - "method": { - "shortName": "GetFleetPackage", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery.GetFleetPackage", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1_generated_ConfigDelivery_CreateFleetPackage_async", - "title": "ConfigDelivery createFleetPackage Sample", - "origin": "API_DEFINITION", - "description": " Creates a new FleetPackage in a given project and location.", - "canonical": true, - "file": "config_delivery.create_fleet_package.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateFleetPackage", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery.CreateFleetPackage", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "fleet_package_id", - "type": "TYPE_STRING" - }, - { - "name": "fleet_package", - "type": ".google.cloud.configdelivery.v1.FleetPackage" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1.ConfigDeliveryClient" - }, - "method": { - "shortName": "CreateFleetPackage", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery.CreateFleetPackage", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1_generated_ConfigDelivery_UpdateFleetPackage_async", - "title": "ConfigDelivery updateFleetPackage Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single FleetPackage.", - "canonical": true, - "file": "config_delivery.update_fleet_package.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateFleetPackage", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery.UpdateFleetPackage", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "fleet_package", - "type": ".google.cloud.configdelivery.v1.FleetPackage" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1.ConfigDeliveryClient" - }, - "method": { - "shortName": "UpdateFleetPackage", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery.UpdateFleetPackage", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1_generated_ConfigDelivery_DeleteFleetPackage_async", - "title": "ConfigDelivery deleteFleetPackage Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single FleetPackage.", - "canonical": true, - "file": "config_delivery.delete_fleet_package.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteFleetPackage", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery.DeleteFleetPackage", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1.ConfigDeliveryClient" - }, - "method": { - "shortName": "DeleteFleetPackage", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery.DeleteFleetPackage", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1_generated_ConfigDelivery_ListReleases_async", - "title": "ConfigDelivery listReleases Sample", - "origin": "API_DEFINITION", - "description": " Lists Releases in a given project and location.", - "canonical": true, - "file": "config_delivery.list_releases.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListReleases", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery.ListReleases", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.configdelivery.v1.ListReleasesResponse", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1.ConfigDeliveryClient" - }, - "method": { - "shortName": "ListReleases", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery.ListReleases", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1_generated_ConfigDelivery_GetRelease_async", - "title": "ConfigDelivery getRelease Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Release.", - "canonical": true, - "file": "config_delivery.get_release.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRelease", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery.GetRelease", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.configdelivery.v1.Release", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1.ConfigDeliveryClient" - }, - "method": { - "shortName": "GetRelease", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery.GetRelease", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1_generated_ConfigDelivery_CreateRelease_async", - "title": "ConfigDelivery createRelease Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Release in a given project, location and resource bundle.", - "canonical": true, - "file": "config_delivery.create_release.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateRelease", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery.CreateRelease", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "release_id", - "type": "TYPE_STRING" - }, - { - "name": "release", - "type": ".google.cloud.configdelivery.v1.Release" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1.ConfigDeliveryClient" - }, - "method": { - "shortName": "CreateRelease", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery.CreateRelease", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1_generated_ConfigDelivery_UpdateRelease_async", - "title": "ConfigDelivery updateRelease Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Release.", - "canonical": true, - "file": "config_delivery.update_release.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateRelease", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery.UpdateRelease", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "release", - "type": ".google.cloud.configdelivery.v1.Release" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1.ConfigDeliveryClient" - }, - "method": { - "shortName": "UpdateRelease", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery.UpdateRelease", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1_generated_ConfigDelivery_DeleteRelease_async", - "title": "ConfigDelivery deleteRelease Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Release.", - "canonical": true, - "file": "config_delivery.delete_release.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteRelease", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery.DeleteRelease", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1.ConfigDeliveryClient" - }, - "method": { - "shortName": "DeleteRelease", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery.DeleteRelease", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1_generated_ConfigDelivery_ListVariants_async", - "title": "ConfigDelivery listVariants Sample", - "origin": "API_DEFINITION", - "description": " Lists Variants in a given project and location.", - "canonical": true, - "file": "config_delivery.list_variants.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListVariants", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery.ListVariants", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.configdelivery.v1.ListVariantsResponse", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1.ConfigDeliveryClient" - }, - "method": { - "shortName": "ListVariants", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery.ListVariants", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1_generated_ConfigDelivery_GetVariant_async", - "title": "ConfigDelivery getVariant Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Variant.", - "canonical": true, - "file": "config_delivery.get_variant.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetVariant", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery.GetVariant", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.configdelivery.v1.Variant", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1.ConfigDeliveryClient" - }, - "method": { - "shortName": "GetVariant", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery.GetVariant", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1_generated_ConfigDelivery_CreateVariant_async", - "title": "ConfigDelivery createVariant Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Variant in a given project, location, resource bundle, and release.", - "canonical": true, - "file": "config_delivery.create_variant.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateVariant", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery.CreateVariant", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "variant_id", - "type": "TYPE_STRING" - }, - { - "name": "variant", - "type": ".google.cloud.configdelivery.v1.Variant" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1.ConfigDeliveryClient" - }, - "method": { - "shortName": "CreateVariant", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery.CreateVariant", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1_generated_ConfigDelivery_UpdateVariant_async", - "title": "ConfigDelivery updateVariant Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Variant.", - "canonical": true, - "file": "config_delivery.update_variant.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateVariant", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery.UpdateVariant", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "variant", - "type": ".google.cloud.configdelivery.v1.Variant" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1.ConfigDeliveryClient" - }, - "method": { - "shortName": "UpdateVariant", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery.UpdateVariant", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1_generated_ConfigDelivery_DeleteVariant_async", - "title": "ConfigDelivery deleteVariant Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Variant.", - "canonical": true, - "file": "config_delivery.delete_variant.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteVariant", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery.DeleteVariant", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1.ConfigDeliveryClient" - }, - "method": { - "shortName": "DeleteVariant", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery.DeleteVariant", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1_generated_ConfigDelivery_ListRollouts_async", - "title": "ConfigDelivery listRollouts Sample", - "origin": "API_DEFINITION", - "description": " Lists Rollouts in a given project, location, and Fleet Package.", - "canonical": true, - "file": "config_delivery.list_rollouts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRollouts", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery.ListRollouts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.configdelivery.v1.ListRolloutsResponse", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1.ConfigDeliveryClient" - }, - "method": { - "shortName": "ListRollouts", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery.ListRollouts", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1_generated_ConfigDelivery_GetRollout_async", - "title": "ConfigDelivery getRollout Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Rollout.", - "canonical": true, - "file": "config_delivery.get_rollout.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRollout", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery.GetRollout", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.configdelivery.v1.Rollout", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1.ConfigDeliveryClient" - }, - "method": { - "shortName": "GetRollout", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery.GetRollout", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1_generated_ConfigDelivery_SuspendRollout_async", - "title": "ConfigDelivery suspendRollout Sample", - "origin": "API_DEFINITION", - "description": " Suspend a Rollout.", - "canonical": true, - "file": "config_delivery.suspend_rollout.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SuspendRollout", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery.SuspendRollout", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "reason", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1.ConfigDeliveryClient" - }, - "method": { - "shortName": "SuspendRollout", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery.SuspendRollout", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1_generated_ConfigDelivery_ResumeRollout_async", - "title": "ConfigDelivery resumeRollout Sample", - "origin": "API_DEFINITION", - "description": " Resume a Rollout.", - "canonical": true, - "file": "config_delivery.resume_rollout.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResumeRollout", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery.ResumeRollout", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "reason", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1.ConfigDeliveryClient" - }, - "method": { - "shortName": "ResumeRollout", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery.ResumeRollout", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1_generated_ConfigDelivery_AbortRollout_async", - "title": "ConfigDelivery abortRollout Sample", - "origin": "API_DEFINITION", - "description": " Abort a Rollout.", - "canonical": true, - "file": "config_delivery.abort_rollout.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AbortRollout", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery.AbortRollout", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "reason", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1.ConfigDeliveryClient" - }, - "method": { - "shortName": "AbortRollout", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery.AbortRollout", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1.ConfigDelivery" - } - } - } - } - ] -} diff --git a/packages/google-cloud-configdelivery/samples/generated/v1alpha/snippet_metadata_google.cloud.configdelivery.v1alpha.json b/packages/google-cloud-configdelivery/samples/generated/v1alpha/snippet_metadata_google.cloud.configdelivery.v1alpha.json deleted file mode 100644 index 8360c7f6ca05..000000000000 --- a/packages/google-cloud-configdelivery/samples/generated/v1alpha/snippet_metadata_google.cloud.configdelivery.v1alpha.json +++ /dev/null @@ -1,1219 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-configdelivery", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.configdelivery.v1alpha", - "version": "v1alpha" - } - ] - }, - "snippets": [ - { - "regionTag": "configdelivery_v1alpha_generated_ConfigDelivery_ListResourceBundles_async", - "title": "ConfigDelivery listResourceBundles Sample", - "origin": "API_DEFINITION", - "description": " Lists ResourceBundles in a given project and location.", - "canonical": true, - "file": "config_delivery.list_resource_bundles.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListResourceBundles", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery.ListResourceBundles", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.configdelivery.v1alpha.ListResourceBundlesResponse", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDeliveryClient" - }, - "method": { - "shortName": "ListResourceBundles", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery.ListResourceBundles", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1alpha_generated_ConfigDelivery_GetResourceBundle_async", - "title": "ConfigDelivery getResourceBundle Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single ResourceBundle.", - "canonical": true, - "file": "config_delivery.get_resource_bundle.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetResourceBundle", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery.GetResourceBundle", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.configdelivery.v1alpha.ResourceBundle", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDeliveryClient" - }, - "method": { - "shortName": "GetResourceBundle", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery.GetResourceBundle", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1alpha_generated_ConfigDelivery_CreateResourceBundle_async", - "title": "ConfigDelivery createResourceBundle Sample", - "origin": "API_DEFINITION", - "description": " Creates a new ResourceBundle in a given project and location.", - "canonical": true, - "file": "config_delivery.create_resource_bundle.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateResourceBundle", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery.CreateResourceBundle", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "resource_bundle_id", - "type": "TYPE_STRING" - }, - { - "name": "resource_bundle", - "type": ".google.cloud.configdelivery.v1alpha.ResourceBundle" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDeliveryClient" - }, - "method": { - "shortName": "CreateResourceBundle", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery.CreateResourceBundle", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1alpha_generated_ConfigDelivery_UpdateResourceBundle_async", - "title": "ConfigDelivery updateResourceBundle Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single ResourceBundle.", - "canonical": true, - "file": "config_delivery.update_resource_bundle.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateResourceBundle", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery.UpdateResourceBundle", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "resource_bundle", - "type": ".google.cloud.configdelivery.v1alpha.ResourceBundle" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDeliveryClient" - }, - "method": { - "shortName": "UpdateResourceBundle", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery.UpdateResourceBundle", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1alpha_generated_ConfigDelivery_DeleteResourceBundle_async", - "title": "ConfigDelivery deleteResourceBundle Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single ResourceBundle.", - "canonical": true, - "file": "config_delivery.delete_resource_bundle.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteResourceBundle", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery.DeleteResourceBundle", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDeliveryClient" - }, - "method": { - "shortName": "DeleteResourceBundle", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery.DeleteResourceBundle", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1alpha_generated_ConfigDelivery_ListFleetPackages_async", - "title": "ConfigDelivery listFleetPackages Sample", - "origin": "API_DEFINITION", - "description": " Lists FleetPackages in a given project and location.", - "canonical": true, - "file": "config_delivery.list_fleet_packages.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFleetPackages", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery.ListFleetPackages", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.configdelivery.v1alpha.ListFleetPackagesResponse", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDeliveryClient" - }, - "method": { - "shortName": "ListFleetPackages", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery.ListFleetPackages", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1alpha_generated_ConfigDelivery_GetFleetPackage_async", - "title": "ConfigDelivery getFleetPackage Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single FleetPackage.", - "canonical": true, - "file": "config_delivery.get_fleet_package.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFleetPackage", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery.GetFleetPackage", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.configdelivery.v1alpha.FleetPackage", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDeliveryClient" - }, - "method": { - "shortName": "GetFleetPackage", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery.GetFleetPackage", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1alpha_generated_ConfigDelivery_CreateFleetPackage_async", - "title": "ConfigDelivery createFleetPackage Sample", - "origin": "API_DEFINITION", - "description": " Creates a new FleetPackage in a given project and location.", - "canonical": true, - "file": "config_delivery.create_fleet_package.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateFleetPackage", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery.CreateFleetPackage", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "fleet_package_id", - "type": "TYPE_STRING" - }, - { - "name": "fleet_package", - "type": ".google.cloud.configdelivery.v1alpha.FleetPackage" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDeliveryClient" - }, - "method": { - "shortName": "CreateFleetPackage", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery.CreateFleetPackage", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1alpha_generated_ConfigDelivery_UpdateFleetPackage_async", - "title": "ConfigDelivery updateFleetPackage Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single FleetPackage.", - "canonical": true, - "file": "config_delivery.update_fleet_package.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateFleetPackage", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery.UpdateFleetPackage", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "fleet_package", - "type": ".google.cloud.configdelivery.v1alpha.FleetPackage" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDeliveryClient" - }, - "method": { - "shortName": "UpdateFleetPackage", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery.UpdateFleetPackage", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1alpha_generated_ConfigDelivery_DeleteFleetPackage_async", - "title": "ConfigDelivery deleteFleetPackage Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single FleetPackage.", - "canonical": true, - "file": "config_delivery.delete_fleet_package.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteFleetPackage", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery.DeleteFleetPackage", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDeliveryClient" - }, - "method": { - "shortName": "DeleteFleetPackage", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery.DeleteFleetPackage", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1alpha_generated_ConfigDelivery_ListReleases_async", - "title": "ConfigDelivery listReleases Sample", - "origin": "API_DEFINITION", - "description": " Lists Releases in a given project and location.", - "canonical": true, - "file": "config_delivery.list_releases.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListReleases", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery.ListReleases", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.configdelivery.v1alpha.ListReleasesResponse", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDeliveryClient" - }, - "method": { - "shortName": "ListReleases", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery.ListReleases", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1alpha_generated_ConfigDelivery_GetRelease_async", - "title": "ConfigDelivery getRelease Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Release.", - "canonical": true, - "file": "config_delivery.get_release.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRelease", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery.GetRelease", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.configdelivery.v1alpha.Release", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDeliveryClient" - }, - "method": { - "shortName": "GetRelease", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery.GetRelease", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1alpha_generated_ConfigDelivery_CreateRelease_async", - "title": "ConfigDelivery createRelease Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Release in a given project, location and resource bundle.", - "canonical": true, - "file": "config_delivery.create_release.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateRelease", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery.CreateRelease", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "release_id", - "type": "TYPE_STRING" - }, - { - "name": "release", - "type": ".google.cloud.configdelivery.v1alpha.Release" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDeliveryClient" - }, - "method": { - "shortName": "CreateRelease", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery.CreateRelease", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1alpha_generated_ConfigDelivery_UpdateRelease_async", - "title": "ConfigDelivery updateRelease Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Release.", - "canonical": true, - "file": "config_delivery.update_release.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateRelease", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery.UpdateRelease", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "release", - "type": ".google.cloud.configdelivery.v1alpha.Release" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDeliveryClient" - }, - "method": { - "shortName": "UpdateRelease", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery.UpdateRelease", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1alpha_generated_ConfigDelivery_DeleteRelease_async", - "title": "ConfigDelivery deleteRelease Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Release.", - "canonical": true, - "file": "config_delivery.delete_release.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteRelease", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery.DeleteRelease", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDeliveryClient" - }, - "method": { - "shortName": "DeleteRelease", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery.DeleteRelease", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1alpha_generated_ConfigDelivery_ListVariants_async", - "title": "ConfigDelivery listVariants Sample", - "origin": "API_DEFINITION", - "description": " Lists Variants in a given project and location.", - "canonical": true, - "file": "config_delivery.list_variants.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListVariants", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery.ListVariants", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.configdelivery.v1alpha.ListVariantsResponse", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDeliveryClient" - }, - "method": { - "shortName": "ListVariants", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery.ListVariants", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1alpha_generated_ConfigDelivery_GetVariant_async", - "title": "ConfigDelivery getVariant Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Variant.", - "canonical": true, - "file": "config_delivery.get_variant.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetVariant", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery.GetVariant", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.configdelivery.v1alpha.Variant", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDeliveryClient" - }, - "method": { - "shortName": "GetVariant", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery.GetVariant", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1alpha_generated_ConfigDelivery_CreateVariant_async", - "title": "ConfigDelivery createVariant Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Variant in a given project, location, resource bundle, and release.", - "canonical": true, - "file": "config_delivery.create_variant.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateVariant", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery.CreateVariant", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "variant_id", - "type": "TYPE_STRING" - }, - { - "name": "variant", - "type": ".google.cloud.configdelivery.v1alpha.Variant" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDeliveryClient" - }, - "method": { - "shortName": "CreateVariant", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery.CreateVariant", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1alpha_generated_ConfigDelivery_UpdateVariant_async", - "title": "ConfigDelivery updateVariant Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Variant.", - "canonical": true, - "file": "config_delivery.update_variant.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateVariant", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery.UpdateVariant", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "variant", - "type": ".google.cloud.configdelivery.v1alpha.Variant" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDeliveryClient" - }, - "method": { - "shortName": "UpdateVariant", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery.UpdateVariant", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1alpha_generated_ConfigDelivery_DeleteVariant_async", - "title": "ConfigDelivery deleteVariant Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Variant.", - "canonical": true, - "file": "config_delivery.delete_variant.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteVariant", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery.DeleteVariant", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDeliveryClient" - }, - "method": { - "shortName": "DeleteVariant", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery.DeleteVariant", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1alpha_generated_ConfigDelivery_ListRollouts_async", - "title": "ConfigDelivery listRollouts Sample", - "origin": "API_DEFINITION", - "description": " Lists Rollouts in a given project, location, and Fleet Package.", - "canonical": true, - "file": "config_delivery.list_rollouts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRollouts", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery.ListRollouts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.configdelivery.v1alpha.ListRolloutsResponse", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDeliveryClient" - }, - "method": { - "shortName": "ListRollouts", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery.ListRollouts", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1alpha_generated_ConfigDelivery_GetRollout_async", - "title": "ConfigDelivery getRollout Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Rollout.", - "canonical": true, - "file": "config_delivery.get_rollout.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRollout", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery.GetRollout", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.configdelivery.v1alpha.Rollout", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDeliveryClient" - }, - "method": { - "shortName": "GetRollout", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery.GetRollout", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1alpha_generated_ConfigDelivery_SuspendRollout_async", - "title": "ConfigDelivery suspendRollout Sample", - "origin": "API_DEFINITION", - "description": " Suspend a Rollout.", - "canonical": true, - "file": "config_delivery.suspend_rollout.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SuspendRollout", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery.SuspendRollout", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "reason", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDeliveryClient" - }, - "method": { - "shortName": "SuspendRollout", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery.SuspendRollout", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1alpha_generated_ConfigDelivery_ResumeRollout_async", - "title": "ConfigDelivery resumeRollout Sample", - "origin": "API_DEFINITION", - "description": " Resume a Rollout.", - "canonical": true, - "file": "config_delivery.resume_rollout.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResumeRollout", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery.ResumeRollout", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "reason", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDeliveryClient" - }, - "method": { - "shortName": "ResumeRollout", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery.ResumeRollout", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1alpha_generated_ConfigDelivery_AbortRollout_async", - "title": "ConfigDelivery abortRollout Sample", - "origin": "API_DEFINITION", - "description": " Abort a Rollout.", - "canonical": true, - "file": "config_delivery.abort_rollout.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AbortRollout", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery.AbortRollout", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "reason", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDeliveryClient" - }, - "method": { - "shortName": "AbortRollout", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery.AbortRollout", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1alpha.ConfigDelivery" - } - } - } - } - ] -} diff --git a/packages/google-cloud-configdelivery/samples/generated/v1beta/snippet_metadata_google.cloud.configdelivery.v1beta.json b/packages/google-cloud-configdelivery/samples/generated/v1beta/snippet_metadata_google.cloud.configdelivery.v1beta.json deleted file mode 100644 index 53d6885d8ea7..000000000000 --- a/packages/google-cloud-configdelivery/samples/generated/v1beta/snippet_metadata_google.cloud.configdelivery.v1beta.json +++ /dev/null @@ -1,1219 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-configdelivery", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.configdelivery.v1beta", - "version": "v1beta" - } - ] - }, - "snippets": [ - { - "regionTag": "configdelivery_v1beta_generated_ConfigDelivery_ListResourceBundles_async", - "title": "ConfigDelivery listResourceBundles Sample", - "origin": "API_DEFINITION", - "description": " Lists ResourceBundles in a given project and location.", - "canonical": true, - "file": "config_delivery.list_resource_bundles.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListResourceBundles", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery.ListResourceBundles", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.configdelivery.v1beta.ListResourceBundlesResponse", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDeliveryClient" - }, - "method": { - "shortName": "ListResourceBundles", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery.ListResourceBundles", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1beta_generated_ConfigDelivery_GetResourceBundle_async", - "title": "ConfigDelivery getResourceBundle Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single ResourceBundle.", - "canonical": true, - "file": "config_delivery.get_resource_bundle.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetResourceBundle", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery.GetResourceBundle", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.configdelivery.v1beta.ResourceBundle", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDeliveryClient" - }, - "method": { - "shortName": "GetResourceBundle", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery.GetResourceBundle", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1beta_generated_ConfigDelivery_CreateResourceBundle_async", - "title": "ConfigDelivery createResourceBundle Sample", - "origin": "API_DEFINITION", - "description": " Creates a new ResourceBundle in a given project and location.", - "canonical": true, - "file": "config_delivery.create_resource_bundle.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateResourceBundle", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery.CreateResourceBundle", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "resource_bundle_id", - "type": "TYPE_STRING" - }, - { - "name": "resource_bundle", - "type": ".google.cloud.configdelivery.v1beta.ResourceBundle" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDeliveryClient" - }, - "method": { - "shortName": "CreateResourceBundle", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery.CreateResourceBundle", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1beta_generated_ConfigDelivery_UpdateResourceBundle_async", - "title": "ConfigDelivery updateResourceBundle Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single ResourceBundle.", - "canonical": true, - "file": "config_delivery.update_resource_bundle.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateResourceBundle", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery.UpdateResourceBundle", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "resource_bundle", - "type": ".google.cloud.configdelivery.v1beta.ResourceBundle" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDeliveryClient" - }, - "method": { - "shortName": "UpdateResourceBundle", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery.UpdateResourceBundle", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1beta_generated_ConfigDelivery_DeleteResourceBundle_async", - "title": "ConfigDelivery deleteResourceBundle Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single ResourceBundle.", - "canonical": true, - "file": "config_delivery.delete_resource_bundle.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteResourceBundle", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery.DeleteResourceBundle", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDeliveryClient" - }, - "method": { - "shortName": "DeleteResourceBundle", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery.DeleteResourceBundle", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1beta_generated_ConfigDelivery_ListFleetPackages_async", - "title": "ConfigDelivery listFleetPackages Sample", - "origin": "API_DEFINITION", - "description": " Lists FleetPackages in a given project and location.", - "canonical": true, - "file": "config_delivery.list_fleet_packages.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFleetPackages", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery.ListFleetPackages", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.configdelivery.v1beta.ListFleetPackagesResponse", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDeliveryClient" - }, - "method": { - "shortName": "ListFleetPackages", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery.ListFleetPackages", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1beta_generated_ConfigDelivery_GetFleetPackage_async", - "title": "ConfigDelivery getFleetPackage Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single FleetPackage.", - "canonical": true, - "file": "config_delivery.get_fleet_package.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFleetPackage", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery.GetFleetPackage", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.configdelivery.v1beta.FleetPackage", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDeliveryClient" - }, - "method": { - "shortName": "GetFleetPackage", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery.GetFleetPackage", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1beta_generated_ConfigDelivery_CreateFleetPackage_async", - "title": "ConfigDelivery createFleetPackage Sample", - "origin": "API_DEFINITION", - "description": " Creates a new FleetPackage in a given project and location.", - "canonical": true, - "file": "config_delivery.create_fleet_package.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateFleetPackage", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery.CreateFleetPackage", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "fleet_package_id", - "type": "TYPE_STRING" - }, - { - "name": "fleet_package", - "type": ".google.cloud.configdelivery.v1beta.FleetPackage" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDeliveryClient" - }, - "method": { - "shortName": "CreateFleetPackage", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery.CreateFleetPackage", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1beta_generated_ConfigDelivery_UpdateFleetPackage_async", - "title": "ConfigDelivery updateFleetPackage Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single FleetPackage.", - "canonical": true, - "file": "config_delivery.update_fleet_package.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateFleetPackage", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery.UpdateFleetPackage", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "fleet_package", - "type": ".google.cloud.configdelivery.v1beta.FleetPackage" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDeliveryClient" - }, - "method": { - "shortName": "UpdateFleetPackage", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery.UpdateFleetPackage", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1beta_generated_ConfigDelivery_DeleteFleetPackage_async", - "title": "ConfigDelivery deleteFleetPackage Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single FleetPackage.", - "canonical": true, - "file": "config_delivery.delete_fleet_package.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteFleetPackage", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery.DeleteFleetPackage", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDeliveryClient" - }, - "method": { - "shortName": "DeleteFleetPackage", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery.DeleteFleetPackage", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1beta_generated_ConfigDelivery_ListReleases_async", - "title": "ConfigDelivery listReleases Sample", - "origin": "API_DEFINITION", - "description": " Lists Releases in a given project and location.", - "canonical": true, - "file": "config_delivery.list_releases.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListReleases", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery.ListReleases", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.configdelivery.v1beta.ListReleasesResponse", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDeliveryClient" - }, - "method": { - "shortName": "ListReleases", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery.ListReleases", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1beta_generated_ConfigDelivery_GetRelease_async", - "title": "ConfigDelivery getRelease Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Release.", - "canonical": true, - "file": "config_delivery.get_release.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRelease", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery.GetRelease", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.configdelivery.v1beta.Release", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDeliveryClient" - }, - "method": { - "shortName": "GetRelease", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery.GetRelease", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1beta_generated_ConfigDelivery_CreateRelease_async", - "title": "ConfigDelivery createRelease Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Release in a given project, location and resource bundle.", - "canonical": true, - "file": "config_delivery.create_release.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateRelease", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery.CreateRelease", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "release_id", - "type": "TYPE_STRING" - }, - { - "name": "release", - "type": ".google.cloud.configdelivery.v1beta.Release" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDeliveryClient" - }, - "method": { - "shortName": "CreateRelease", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery.CreateRelease", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1beta_generated_ConfigDelivery_UpdateRelease_async", - "title": "ConfigDelivery updateRelease Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Release.", - "canonical": true, - "file": "config_delivery.update_release.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateRelease", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery.UpdateRelease", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "release", - "type": ".google.cloud.configdelivery.v1beta.Release" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDeliveryClient" - }, - "method": { - "shortName": "UpdateRelease", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery.UpdateRelease", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1beta_generated_ConfigDelivery_DeleteRelease_async", - "title": "ConfigDelivery deleteRelease Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Release.", - "canonical": true, - "file": "config_delivery.delete_release.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteRelease", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery.DeleteRelease", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDeliveryClient" - }, - "method": { - "shortName": "DeleteRelease", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery.DeleteRelease", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1beta_generated_ConfigDelivery_ListVariants_async", - "title": "ConfigDelivery listVariants Sample", - "origin": "API_DEFINITION", - "description": " Lists Variants in a given project and location.", - "canonical": true, - "file": "config_delivery.list_variants.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListVariants", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery.ListVariants", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.configdelivery.v1beta.ListVariantsResponse", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDeliveryClient" - }, - "method": { - "shortName": "ListVariants", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery.ListVariants", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1beta_generated_ConfigDelivery_GetVariant_async", - "title": "ConfigDelivery getVariant Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Variant.", - "canonical": true, - "file": "config_delivery.get_variant.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetVariant", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery.GetVariant", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.configdelivery.v1beta.Variant", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDeliveryClient" - }, - "method": { - "shortName": "GetVariant", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery.GetVariant", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1beta_generated_ConfigDelivery_CreateVariant_async", - "title": "ConfigDelivery createVariant Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Variant in a given project, location, resource bundle, and release.", - "canonical": true, - "file": "config_delivery.create_variant.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateVariant", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery.CreateVariant", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "variant_id", - "type": "TYPE_STRING" - }, - { - "name": "variant", - "type": ".google.cloud.configdelivery.v1beta.Variant" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDeliveryClient" - }, - "method": { - "shortName": "CreateVariant", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery.CreateVariant", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1beta_generated_ConfigDelivery_UpdateVariant_async", - "title": "ConfigDelivery updateVariant Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Variant.", - "canonical": true, - "file": "config_delivery.update_variant.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateVariant", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery.UpdateVariant", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "variant", - "type": ".google.cloud.configdelivery.v1beta.Variant" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDeliveryClient" - }, - "method": { - "shortName": "UpdateVariant", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery.UpdateVariant", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1beta_generated_ConfigDelivery_DeleteVariant_async", - "title": "ConfigDelivery deleteVariant Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Variant.", - "canonical": true, - "file": "config_delivery.delete_variant.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteVariant", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery.DeleteVariant", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDeliveryClient" - }, - "method": { - "shortName": "DeleteVariant", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery.DeleteVariant", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1beta_generated_ConfigDelivery_ListRollouts_async", - "title": "ConfigDelivery listRollouts Sample", - "origin": "API_DEFINITION", - "description": " Lists Rollouts in a given project, location, and Fleet Package.", - "canonical": true, - "file": "config_delivery.list_rollouts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRollouts", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery.ListRollouts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.configdelivery.v1beta.ListRolloutsResponse", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDeliveryClient" - }, - "method": { - "shortName": "ListRollouts", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery.ListRollouts", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1beta_generated_ConfigDelivery_GetRollout_async", - "title": "ConfigDelivery getRollout Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Rollout.", - "canonical": true, - "file": "config_delivery.get_rollout.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRollout", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery.GetRollout", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.configdelivery.v1beta.Rollout", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDeliveryClient" - }, - "method": { - "shortName": "GetRollout", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery.GetRollout", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1beta_generated_ConfigDelivery_SuspendRollout_async", - "title": "ConfigDelivery suspendRollout Sample", - "origin": "API_DEFINITION", - "description": " Suspend a Rollout.", - "canonical": true, - "file": "config_delivery.suspend_rollout.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SuspendRollout", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery.SuspendRollout", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "reason", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDeliveryClient" - }, - "method": { - "shortName": "SuspendRollout", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery.SuspendRollout", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1beta_generated_ConfigDelivery_ResumeRollout_async", - "title": "ConfigDelivery resumeRollout Sample", - "origin": "API_DEFINITION", - "description": " Resume a Rollout.", - "canonical": true, - "file": "config_delivery.resume_rollout.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResumeRollout", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery.ResumeRollout", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "reason", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDeliveryClient" - }, - "method": { - "shortName": "ResumeRollout", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery.ResumeRollout", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery" - } - } - } - }, - { - "regionTag": "configdelivery_v1beta_generated_ConfigDelivery_AbortRollout_async", - "title": "ConfigDelivery abortRollout Sample", - "origin": "API_DEFINITION", - "description": " Abort a Rollout.", - "canonical": true, - "file": "config_delivery.abort_rollout.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AbortRollout", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery.AbortRollout", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "reason", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConfigDeliveryClient", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDeliveryClient" - }, - "method": { - "shortName": "AbortRollout", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery.AbortRollout", - "service": { - "shortName": "ConfigDelivery", - "fullName": "google.cloud.configdelivery.v1beta.ConfigDelivery" - } - } - } - } - ] -} diff --git a/packages/google-cloud-connectors/samples/generated/v1/snippet_metadata_google.cloud.connectors.v1.json b/packages/google-cloud-connectors/samples/generated/v1/snippet_metadata_google.cloud.connectors.v1.json deleted file mode 100644 index 60be0aefa3de..000000000000 --- a/packages/google-cloud-connectors/samples/generated/v1/snippet_metadata_google.cloud.connectors.v1.json +++ /dev/null @@ -1,787 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-connectors", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.connectors.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "connectors_v1_generated_Connectors_ListConnections_async", - "title": "Connectors listConnections Sample", - "origin": "API_DEFINITION", - "description": " Lists Connections in a given project and location.", - "canonical": true, - "file": "connectors.list_connections.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListConnections", - "fullName": "google.cloud.connectors.v1.Connectors.ListConnections", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.connectors.v1.ConnectionView" - } - ], - "resultType": ".google.cloud.connectors.v1.ListConnectionsResponse", - "client": { - "shortName": "ConnectorsClient", - "fullName": "google.cloud.connectors.v1.ConnectorsClient" - }, - "method": { - "shortName": "ListConnections", - "fullName": "google.cloud.connectors.v1.Connectors.ListConnections", - "service": { - "shortName": "Connectors", - "fullName": "google.cloud.connectors.v1.Connectors" - } - } - } - }, - { - "regionTag": "connectors_v1_generated_Connectors_GetConnection_async", - "title": "Connectors getConnection Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Connection.", - "canonical": true, - "file": "connectors.get_connection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetConnection", - "fullName": "google.cloud.connectors.v1.Connectors.GetConnection", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.connectors.v1.ConnectionView" - } - ], - "resultType": ".google.cloud.connectors.v1.Connection", - "client": { - "shortName": "ConnectorsClient", - "fullName": "google.cloud.connectors.v1.ConnectorsClient" - }, - "method": { - "shortName": "GetConnection", - "fullName": "google.cloud.connectors.v1.Connectors.GetConnection", - "service": { - "shortName": "Connectors", - "fullName": "google.cloud.connectors.v1.Connectors" - } - } - } - }, - { - "regionTag": "connectors_v1_generated_Connectors_CreateConnection_async", - "title": "Connectors createConnection Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Connection in a given project and location.", - "canonical": true, - "file": "connectors.create_connection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateConnection", - "fullName": "google.cloud.connectors.v1.Connectors.CreateConnection", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "connection_id", - "type": "TYPE_STRING" - }, - { - "name": "connection", - "type": ".google.cloud.connectors.v1.Connection" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConnectorsClient", - "fullName": "google.cloud.connectors.v1.ConnectorsClient" - }, - "method": { - "shortName": "CreateConnection", - "fullName": "google.cloud.connectors.v1.Connectors.CreateConnection", - "service": { - "shortName": "Connectors", - "fullName": "google.cloud.connectors.v1.Connectors" - } - } - } - }, - { - "regionTag": "connectors_v1_generated_Connectors_UpdateConnection_async", - "title": "Connectors updateConnection Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Connection.", - "canonical": true, - "file": "connectors.update_connection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateConnection", - "fullName": "google.cloud.connectors.v1.Connectors.UpdateConnection", - "async": true, - "parameters": [ - { - "name": "connection", - "type": ".google.cloud.connectors.v1.Connection" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConnectorsClient", - "fullName": "google.cloud.connectors.v1.ConnectorsClient" - }, - "method": { - "shortName": "UpdateConnection", - "fullName": "google.cloud.connectors.v1.Connectors.UpdateConnection", - "service": { - "shortName": "Connectors", - "fullName": "google.cloud.connectors.v1.Connectors" - } - } - } - }, - { - "regionTag": "connectors_v1_generated_Connectors_DeleteConnection_async", - "title": "Connectors deleteConnection Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Connection.", - "canonical": true, - "file": "connectors.delete_connection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteConnection", - "fullName": "google.cloud.connectors.v1.Connectors.DeleteConnection", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConnectorsClient", - "fullName": "google.cloud.connectors.v1.ConnectorsClient" - }, - "method": { - "shortName": "DeleteConnection", - "fullName": "google.cloud.connectors.v1.Connectors.DeleteConnection", - "service": { - "shortName": "Connectors", - "fullName": "google.cloud.connectors.v1.Connectors" - } - } - } - }, - { - "regionTag": "connectors_v1_generated_Connectors_ListProviders_async", - "title": "Connectors listProviders Sample", - "origin": "API_DEFINITION", - "description": " Lists Providers in a given project and location.", - "canonical": true, - "file": "connectors.list_providers.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListProviders", - "fullName": "google.cloud.connectors.v1.Connectors.ListProviders", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.connectors.v1.ListProvidersResponse", - "client": { - "shortName": "ConnectorsClient", - "fullName": "google.cloud.connectors.v1.ConnectorsClient" - }, - "method": { - "shortName": "ListProviders", - "fullName": "google.cloud.connectors.v1.Connectors.ListProviders", - "service": { - "shortName": "Connectors", - "fullName": "google.cloud.connectors.v1.Connectors" - } - } - } - }, - { - "regionTag": "connectors_v1_generated_Connectors_GetProvider_async", - "title": "Connectors getProvider Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a provider.", - "canonical": true, - "file": "connectors.get_provider.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetProvider", - "fullName": "google.cloud.connectors.v1.Connectors.GetProvider", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.connectors.v1.Provider", - "client": { - "shortName": "ConnectorsClient", - "fullName": "google.cloud.connectors.v1.ConnectorsClient" - }, - "method": { - "shortName": "GetProvider", - "fullName": "google.cloud.connectors.v1.Connectors.GetProvider", - "service": { - "shortName": "Connectors", - "fullName": "google.cloud.connectors.v1.Connectors" - } - } - } - }, - { - "regionTag": "connectors_v1_generated_Connectors_ListConnectors_async", - "title": "Connectors listConnectors Sample", - "origin": "API_DEFINITION", - "description": " Lists Connectors in a given project and location.", - "canonical": true, - "file": "connectors.list_connectors.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListConnectors", - "fullName": "google.cloud.connectors.v1.Connectors.ListConnectors", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.connectors.v1.ListConnectorsResponse", - "client": { - "shortName": "ConnectorsClient", - "fullName": "google.cloud.connectors.v1.ConnectorsClient" - }, - "method": { - "shortName": "ListConnectors", - "fullName": "google.cloud.connectors.v1.Connectors.ListConnectors", - "service": { - "shortName": "Connectors", - "fullName": "google.cloud.connectors.v1.Connectors" - } - } - } - }, - { - "regionTag": "connectors_v1_generated_Connectors_GetConnector_async", - "title": "Connectors getConnector Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Connector.", - "canonical": true, - "file": "connectors.get_connector.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetConnector", - "fullName": "google.cloud.connectors.v1.Connectors.GetConnector", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.connectors.v1.Connector", - "client": { - "shortName": "ConnectorsClient", - "fullName": "google.cloud.connectors.v1.ConnectorsClient" - }, - "method": { - "shortName": "GetConnector", - "fullName": "google.cloud.connectors.v1.Connectors.GetConnector", - "service": { - "shortName": "Connectors", - "fullName": "google.cloud.connectors.v1.Connectors" - } - } - } - }, - { - "regionTag": "connectors_v1_generated_Connectors_ListConnectorVersions_async", - "title": "Connectors listConnectorVersions Sample", - "origin": "API_DEFINITION", - "description": " Lists Connector Versions in a given project and location.", - "canonical": true, - "file": "connectors.list_connector_versions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListConnectorVersions", - "fullName": "google.cloud.connectors.v1.Connectors.ListConnectorVersions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.connectors.v1.ConnectorVersionView" - } - ], - "resultType": ".google.cloud.connectors.v1.ListConnectorVersionsResponse", - "client": { - "shortName": "ConnectorsClient", - "fullName": "google.cloud.connectors.v1.ConnectorsClient" - }, - "method": { - "shortName": "ListConnectorVersions", - "fullName": "google.cloud.connectors.v1.Connectors.ListConnectorVersions", - "service": { - "shortName": "Connectors", - "fullName": "google.cloud.connectors.v1.Connectors" - } - } - } - }, - { - "regionTag": "connectors_v1_generated_Connectors_GetConnectorVersion_async", - "title": "Connectors getConnectorVersion Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single connector version.", - "canonical": true, - "file": "connectors.get_connector_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetConnectorVersion", - "fullName": "google.cloud.connectors.v1.Connectors.GetConnectorVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.connectors.v1.ConnectorVersionView" - } - ], - "resultType": ".google.cloud.connectors.v1.ConnectorVersion", - "client": { - "shortName": "ConnectorsClient", - "fullName": "google.cloud.connectors.v1.ConnectorsClient" - }, - "method": { - "shortName": "GetConnectorVersion", - "fullName": "google.cloud.connectors.v1.Connectors.GetConnectorVersion", - "service": { - "shortName": "Connectors", - "fullName": "google.cloud.connectors.v1.Connectors" - } - } - } - }, - { - "regionTag": "connectors_v1_generated_Connectors_GetConnectionSchemaMetadata_async", - "title": "Connectors getConnectionSchemaMetadata Sample", - "origin": "API_DEFINITION", - "description": " Gets schema metadata of a connection. SchemaMetadata is a singleton resource for each connection.", - "canonical": true, - "file": "connectors.get_connection_schema_metadata.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetConnectionSchemaMetadata", - "fullName": "google.cloud.connectors.v1.Connectors.GetConnectionSchemaMetadata", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.connectors.v1.ConnectionSchemaMetadata", - "client": { - "shortName": "ConnectorsClient", - "fullName": "google.cloud.connectors.v1.ConnectorsClient" - }, - "method": { - "shortName": "GetConnectionSchemaMetadata", - "fullName": "google.cloud.connectors.v1.Connectors.GetConnectionSchemaMetadata", - "service": { - "shortName": "Connectors", - "fullName": "google.cloud.connectors.v1.Connectors" - } - } - } - }, - { - "regionTag": "connectors_v1_generated_Connectors_RefreshConnectionSchemaMetadata_async", - "title": "Connectors refreshConnectionSchemaMetadata Sample", - "origin": "API_DEFINITION", - "description": " Refresh runtime schema of a connection.", - "canonical": true, - "file": "connectors.refresh_connection_schema_metadata.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RefreshConnectionSchemaMetadata", - "fullName": "google.cloud.connectors.v1.Connectors.RefreshConnectionSchemaMetadata", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConnectorsClient", - "fullName": "google.cloud.connectors.v1.ConnectorsClient" - }, - "method": { - "shortName": "RefreshConnectionSchemaMetadata", - "fullName": "google.cloud.connectors.v1.Connectors.RefreshConnectionSchemaMetadata", - "service": { - "shortName": "Connectors", - "fullName": "google.cloud.connectors.v1.Connectors" - } - } - } - }, - { - "regionTag": "connectors_v1_generated_Connectors_ListRuntimeEntitySchemas_async", - "title": "Connectors listRuntimeEntitySchemas Sample", - "origin": "API_DEFINITION", - "description": " List schema of a runtime entities filtered by entity name.", - "canonical": true, - "file": "connectors.list_runtime_entity_schemas.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRuntimeEntitySchemas", - "fullName": "google.cloud.connectors.v1.Connectors.ListRuntimeEntitySchemas", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.connectors.v1.ListRuntimeEntitySchemasResponse", - "client": { - "shortName": "ConnectorsClient", - "fullName": "google.cloud.connectors.v1.ConnectorsClient" - }, - "method": { - "shortName": "ListRuntimeEntitySchemas", - "fullName": "google.cloud.connectors.v1.Connectors.ListRuntimeEntitySchemas", - "service": { - "shortName": "Connectors", - "fullName": "google.cloud.connectors.v1.Connectors" - } - } - } - }, - { - "regionTag": "connectors_v1_generated_Connectors_ListRuntimeActionSchemas_async", - "title": "Connectors listRuntimeActionSchemas Sample", - "origin": "API_DEFINITION", - "description": " List schema of a runtime actions filtered by action name.", - "canonical": true, - "file": "connectors.list_runtime_action_schemas.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRuntimeActionSchemas", - "fullName": "google.cloud.connectors.v1.Connectors.ListRuntimeActionSchemas", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.connectors.v1.ListRuntimeActionSchemasResponse", - "client": { - "shortName": "ConnectorsClient", - "fullName": "google.cloud.connectors.v1.ConnectorsClient" - }, - "method": { - "shortName": "ListRuntimeActionSchemas", - "fullName": "google.cloud.connectors.v1.Connectors.ListRuntimeActionSchemas", - "service": { - "shortName": "Connectors", - "fullName": "google.cloud.connectors.v1.Connectors" - } - } - } - }, - { - "regionTag": "connectors_v1_generated_Connectors_GetRuntimeConfig_async", - "title": "Connectors getRuntimeConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets the runtimeConfig of a location. RuntimeConfig is a singleton resource for each location.", - "canonical": true, - "file": "connectors.get_runtime_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRuntimeConfig", - "fullName": "google.cloud.connectors.v1.Connectors.GetRuntimeConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.connectors.v1.RuntimeConfig", - "client": { - "shortName": "ConnectorsClient", - "fullName": "google.cloud.connectors.v1.ConnectorsClient" - }, - "method": { - "shortName": "GetRuntimeConfig", - "fullName": "google.cloud.connectors.v1.Connectors.GetRuntimeConfig", - "service": { - "shortName": "Connectors", - "fullName": "google.cloud.connectors.v1.Connectors" - } - } - } - }, - { - "regionTag": "connectors_v1_generated_Connectors_GetGlobalSettings_async", - "title": "Connectors getGlobalSettings Sample", - "origin": "API_DEFINITION", - "description": " GetGlobalSettings gets settings of a project. GlobalSettings is a singleton resource.", - "canonical": true, - "file": "connectors.get_global_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetGlobalSettings", - "fullName": "google.cloud.connectors.v1.Connectors.GetGlobalSettings", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.connectors.v1.Settings", - "client": { - "shortName": "ConnectorsClient", - "fullName": "google.cloud.connectors.v1.ConnectorsClient" - }, - "method": { - "shortName": "GetGlobalSettings", - "fullName": "google.cloud.connectors.v1.Connectors.GetGlobalSettings", - "service": { - "shortName": "Connectors", - "fullName": "google.cloud.connectors.v1.Connectors" - } - } - } - } - ] -} diff --git a/packages/google-cloud-contactcenterinsights/samples/generated/v1/snippet_metadata_google.cloud.contactcenterinsights.v1.json b/packages/google-cloud-contactcenterinsights/samples/generated/v1/snippet_metadata_google.cloud.contactcenterinsights.v1.json deleted file mode 100644 index 07c6f59dd226..000000000000 --- a/packages/google-cloud-contactcenterinsights/samples/generated/v1/snippet_metadata_google.cloud.contactcenterinsights.v1.json +++ /dev/null @@ -1,3355 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-contactcenterinsights", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.contactcenterinsights.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CreateConversation_async", - "title": "ContactCenterInsights createConversation Sample", - "origin": "API_DEFINITION", - "description": " Creates a conversation. Note that this method does not support audio transcription or redaction. Use `conversations.upload` instead.", - "canonical": true, - "file": "contact_center_insights.create_conversation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateConversation", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.CreateConversation", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "conversation", - "type": ".google.cloud.contactcenterinsights.v1.Conversation" - }, - { - "name": "conversation_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.contactcenterinsights.v1.Conversation", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "CreateConversation", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.CreateConversation", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UploadConversation_async", - "title": "ContactCenterInsights uploadConversation Sample", - "origin": "API_DEFINITION", - "description": " Create a long-running conversation upload operation. This method differs from `CreateConversation` by allowing audio transcription and optional DLP redaction.", - "canonical": true, - "file": "contact_center_insights.upload_conversation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UploadConversation", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.UploadConversation", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "conversation", - "type": ".google.cloud.contactcenterinsights.v1.Conversation" - }, - { - "name": "conversation_id", - "type": "TYPE_STRING" - }, - { - "name": "redaction_config", - "type": ".google.cloud.contactcenterinsights.v1.RedactionConfig" - }, - { - "name": "speech_config", - "type": ".google.cloud.contactcenterinsights.v1.SpeechConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "UploadConversation", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.UploadConversation", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UpdateConversation_async", - "title": "ContactCenterInsights updateConversation Sample", - "origin": "API_DEFINITION", - "description": " Updates a conversation.", - "canonical": true, - "file": "contact_center_insights.update_conversation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateConversation", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.UpdateConversation", - "async": true, - "parameters": [ - { - "name": "conversation", - "type": ".google.cloud.contactcenterinsights.v1.Conversation" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.contactcenterinsights.v1.Conversation", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "UpdateConversation", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.UpdateConversation", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetConversation_async", - "title": "ContactCenterInsights getConversation Sample", - "origin": "API_DEFINITION", - "description": " Gets a conversation.", - "canonical": true, - "file": "contact_center_insights.get_conversation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetConversation", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.GetConversation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.contactcenterinsights.v1.ConversationView" - } - ], - "resultType": ".google.cloud.contactcenterinsights.v1.Conversation", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "GetConversation", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.GetConversation", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ListConversations_async", - "title": "ContactCenterInsights listConversations Sample", - "origin": "API_DEFINITION", - "description": " Lists conversations.", - "canonical": true, - "file": "contact_center_insights.list_conversations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 93, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListConversations", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.ListConversations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.contactcenterinsights.v1.ConversationView" - } - ], - "resultType": ".google.cloud.contactcenterinsights.v1.ListConversationsResponse", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "ListConversations", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.ListConversations", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeleteConversation_async", - "title": "ContactCenterInsights deleteConversation Sample", - "origin": "API_DEFINITION", - "description": " Deletes a conversation.", - "canonical": true, - "file": "contact_center_insights.delete_conversation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteConversation", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.DeleteConversation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "DeleteConversation", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.DeleteConversation", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CreateAnalysis_async", - "title": "ContactCenterInsights createAnalysis Sample", - "origin": "API_DEFINITION", - "description": " Creates an analysis. The long running operation is done when the analysis has completed.", - "canonical": true, - "file": "contact_center_insights.create_analysis.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAnalysis", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.CreateAnalysis", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "analysis", - "type": ".google.cloud.contactcenterinsights.v1.Analysis" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "CreateAnalysis", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.CreateAnalysis", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetAnalysis_async", - "title": "ContactCenterInsights getAnalysis Sample", - "origin": "API_DEFINITION", - "description": " Gets an analysis.", - "canonical": true, - "file": "contact_center_insights.get_analysis.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAnalysis", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.GetAnalysis", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.contactcenterinsights.v1.Analysis", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "GetAnalysis", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.GetAnalysis", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ListAnalyses_async", - "title": "ContactCenterInsights listAnalyses Sample", - "origin": "API_DEFINITION", - "description": " Lists analyses.", - "canonical": true, - "file": "contact_center_insights.list_analyses.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAnalyses", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.ListAnalyses", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.contactcenterinsights.v1.ListAnalysesResponse", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "ListAnalyses", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.ListAnalyses", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeleteAnalysis_async", - "title": "ContactCenterInsights deleteAnalysis Sample", - "origin": "API_DEFINITION", - "description": " Deletes an analysis.", - "canonical": true, - "file": "contact_center_insights.delete_analysis.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAnalysis", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.DeleteAnalysis", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "DeleteAnalysis", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.DeleteAnalysis", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_BulkAnalyzeConversations_async", - "title": "ContactCenterInsights bulkAnalyzeConversations Sample", - "origin": "API_DEFINITION", - "description": " Analyzes multiple conversations in a single request.", - "canonical": true, - "file": "contact_center_insights.bulk_analyze_conversations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BulkAnalyzeConversations", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.BulkAnalyzeConversations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "analysis_percentage", - "type": "TYPE_FLOAT" - }, - { - "name": "annotator_selector", - "type": ".google.cloud.contactcenterinsights.v1.AnnotatorSelector" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "BulkAnalyzeConversations", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.BulkAnalyzeConversations", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_BulkDeleteConversations_async", - "title": "ContactCenterInsights bulkDeleteConversations Sample", - "origin": "API_DEFINITION", - "description": " Deletes multiple conversations in a single request.", - "canonical": true, - "file": "contact_center_insights.bulk_delete_conversations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BulkDeleteConversations", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.BulkDeleteConversations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_delete_count", - "type": "TYPE_INT32" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "BulkDeleteConversations", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.BulkDeleteConversations", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_IngestConversations_async", - "title": "ContactCenterInsights ingestConversations Sample", - "origin": "API_DEFINITION", - "description": " Imports conversations and processes them according to the user's configuration.", - "canonical": true, - "file": "contact_center_insights.ingest_conversations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "IngestConversations", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.IngestConversations", - "async": true, - "parameters": [ - { - "name": "gcs_source", - "type": ".google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource" - }, - { - "name": "transcript_object_config", - "type": ".google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "conversation_config", - "type": ".google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig" - }, - { - "name": "redaction_config", - "type": ".google.cloud.contactcenterinsights.v1.RedactionConfig" - }, - { - "name": "speech_config", - "type": ".google.cloud.contactcenterinsights.v1.SpeechConfig" - }, - { - "name": "sample_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "IngestConversations", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.IngestConversations", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ExportInsightsData_async", - "title": "ContactCenterInsights exportInsightsData Sample", - "origin": "API_DEFINITION", - "description": " Export insights data to a destination defined in the request body.", - "canonical": true, - "file": "contact_center_insights.export_insights_data.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportInsightsData", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.ExportInsightsData", - "async": true, - "parameters": [ - { - "name": "big_query_destination", - "type": ".google.cloud.contactcenterinsights.v1.ExportInsightsDataRequest.BigQueryDestination" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "kms_key", - "type": "TYPE_STRING" - }, - { - "name": "write_disposition", - "type": ".google.cloud.contactcenterinsights.v1.ExportInsightsDataRequest.WriteDisposition" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "ExportInsightsData", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.ExportInsightsData", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CreateIssueModel_async", - "title": "ContactCenterInsights createIssueModel Sample", - "origin": "API_DEFINITION", - "description": " Creates an issue model.", - "canonical": true, - "file": "contact_center_insights.create_issue_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateIssueModel", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.CreateIssueModel", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "issue_model", - "type": ".google.cloud.contactcenterinsights.v1.IssueModel" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "CreateIssueModel", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.CreateIssueModel", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UpdateIssueModel_async", - "title": "ContactCenterInsights updateIssueModel Sample", - "origin": "API_DEFINITION", - "description": " Updates an issue model.", - "canonical": true, - "file": "contact_center_insights.update_issue_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateIssueModel", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.UpdateIssueModel", - "async": true, - "parameters": [ - { - "name": "issue_model", - "type": ".google.cloud.contactcenterinsights.v1.IssueModel" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.contactcenterinsights.v1.IssueModel", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "UpdateIssueModel", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.UpdateIssueModel", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetIssueModel_async", - "title": "ContactCenterInsights getIssueModel Sample", - "origin": "API_DEFINITION", - "description": " Gets an issue model.", - "canonical": true, - "file": "contact_center_insights.get_issue_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIssueModel", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.GetIssueModel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.contactcenterinsights.v1.IssueModel", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "GetIssueModel", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.GetIssueModel", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ListIssueModels_async", - "title": "ContactCenterInsights listIssueModels Sample", - "origin": "API_DEFINITION", - "description": " Lists issue models.", - "canonical": true, - "file": "contact_center_insights.list_issue_models.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListIssueModels", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.ListIssueModels", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.contactcenterinsights.v1.ListIssueModelsResponse", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "ListIssueModels", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.ListIssueModels", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeleteIssueModel_async", - "title": "ContactCenterInsights deleteIssueModel Sample", - "origin": "API_DEFINITION", - "description": " Deletes an issue model.", - "canonical": true, - "file": "contact_center_insights.delete_issue_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteIssueModel", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.DeleteIssueModel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "DeleteIssueModel", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.DeleteIssueModel", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeployIssueModel_async", - "title": "ContactCenterInsights deployIssueModel Sample", - "origin": "API_DEFINITION", - "description": " Deploys an issue model. Returns an error if a model is already deployed. An issue model can only be used in analysis after it has been deployed.", - "canonical": true, - "file": "contact_center_insights.deploy_issue_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeployIssueModel", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.DeployIssueModel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "DeployIssueModel", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.DeployIssueModel", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UndeployIssueModel_async", - "title": "ContactCenterInsights undeployIssueModel Sample", - "origin": "API_DEFINITION", - "description": " Undeploys an issue model. An issue model can not be used in analysis after it has been undeployed.", - "canonical": true, - "file": "contact_center_insights.undeploy_issue_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UndeployIssueModel", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.UndeployIssueModel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "UndeployIssueModel", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.UndeployIssueModel", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ExportIssueModel_async", - "title": "ContactCenterInsights exportIssueModel Sample", - "origin": "API_DEFINITION", - "description": " Exports an issue model to the provided destination.", - "canonical": true, - "file": "contact_center_insights.export_issue_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportIssueModel", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.ExportIssueModel", - "async": true, - "parameters": [ - { - "name": "gcs_destination", - "type": ".google.cloud.contactcenterinsights.v1.ExportIssueModelRequest.GcsDestination" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "ExportIssueModel", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.ExportIssueModel", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ImportIssueModel_async", - "title": "ContactCenterInsights importIssueModel Sample", - "origin": "API_DEFINITION", - "description": " Imports an issue model from a Cloud Storage bucket.", - "canonical": true, - "file": "contact_center_insights.import_issue_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportIssueModel", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.ImportIssueModel", - "async": true, - "parameters": [ - { - "name": "gcs_source", - "type": ".google.cloud.contactcenterinsights.v1.ImportIssueModelRequest.GcsSource" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "create_new_model", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "ImportIssueModel", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.ImportIssueModel", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetIssue_async", - "title": "ContactCenterInsights getIssue Sample", - "origin": "API_DEFINITION", - "description": " Gets an issue.", - "canonical": true, - "file": "contact_center_insights.get_issue.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIssue", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.GetIssue", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.contactcenterinsights.v1.Issue", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "GetIssue", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.GetIssue", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ListIssues_async", - "title": "ContactCenterInsights listIssues Sample", - "origin": "API_DEFINITION", - "description": " Lists issues.", - "canonical": true, - "file": "contact_center_insights.list_issues.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListIssues", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.ListIssues", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.contactcenterinsights.v1.ListIssuesResponse", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "ListIssues", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.ListIssues", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UpdateIssue_async", - "title": "ContactCenterInsights updateIssue Sample", - "origin": "API_DEFINITION", - "description": " Updates an issue.", - "canonical": true, - "file": "contact_center_insights.update_issue.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateIssue", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.UpdateIssue", - "async": true, - "parameters": [ - { - "name": "issue", - "type": ".google.cloud.contactcenterinsights.v1.Issue" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.contactcenterinsights.v1.Issue", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "UpdateIssue", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.UpdateIssue", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeleteIssue_async", - "title": "ContactCenterInsights deleteIssue Sample", - "origin": "API_DEFINITION", - "description": " Deletes an issue.", - "canonical": true, - "file": "contact_center_insights.delete_issue.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteIssue", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.DeleteIssue", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "DeleteIssue", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.DeleteIssue", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CalculateIssueModelStats_async", - "title": "ContactCenterInsights calculateIssueModelStats Sample", - "origin": "API_DEFINITION", - "description": " Gets an issue model's statistics.", - "canonical": true, - "file": "contact_center_insights.calculate_issue_model_stats.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CalculateIssueModelStats", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.CalculateIssueModelStats", - "async": true, - "parameters": [ - { - "name": "issue_model", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.contactcenterinsights.v1.CalculateIssueModelStatsResponse", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "CalculateIssueModelStats", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.CalculateIssueModelStats", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CreatePhraseMatcher_async", - "title": "ContactCenterInsights createPhraseMatcher Sample", - "origin": "API_DEFINITION", - "description": " Creates a phrase matcher.", - "canonical": true, - "file": "contact_center_insights.create_phrase_matcher.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreatePhraseMatcher", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.CreatePhraseMatcher", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "phrase_matcher", - "type": ".google.cloud.contactcenterinsights.v1.PhraseMatcher" - } - ], - "resultType": ".google.cloud.contactcenterinsights.v1.PhraseMatcher", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "CreatePhraseMatcher", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.CreatePhraseMatcher", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetPhraseMatcher_async", - "title": "ContactCenterInsights getPhraseMatcher Sample", - "origin": "API_DEFINITION", - "description": " Gets a phrase matcher.", - "canonical": true, - "file": "contact_center_insights.get_phrase_matcher.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPhraseMatcher", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.GetPhraseMatcher", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.contactcenterinsights.v1.PhraseMatcher", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "GetPhraseMatcher", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.GetPhraseMatcher", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ListPhraseMatchers_async", - "title": "ContactCenterInsights listPhraseMatchers Sample", - "origin": "API_DEFINITION", - "description": " Lists phrase matchers.", - "canonical": true, - "file": "contact_center_insights.list_phrase_matchers.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPhraseMatchers", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.ListPhraseMatchers", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.contactcenterinsights.v1.ListPhraseMatchersResponse", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "ListPhraseMatchers", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.ListPhraseMatchers", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeletePhraseMatcher_async", - "title": "ContactCenterInsights deletePhraseMatcher Sample", - "origin": "API_DEFINITION", - "description": " Deletes a phrase matcher.", - "canonical": true, - "file": "contact_center_insights.delete_phrase_matcher.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePhraseMatcher", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.DeletePhraseMatcher", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "DeletePhraseMatcher", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.DeletePhraseMatcher", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UpdatePhraseMatcher_async", - "title": "ContactCenterInsights updatePhraseMatcher Sample", - "origin": "API_DEFINITION", - "description": " Updates a phrase matcher.", - "canonical": true, - "file": "contact_center_insights.update_phrase_matcher.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdatePhraseMatcher", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.UpdatePhraseMatcher", - "async": true, - "parameters": [ - { - "name": "phrase_matcher", - "type": ".google.cloud.contactcenterinsights.v1.PhraseMatcher" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.contactcenterinsights.v1.PhraseMatcher", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "UpdatePhraseMatcher", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.UpdatePhraseMatcher", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CalculateStats_async", - "title": "ContactCenterInsights calculateStats Sample", - "origin": "API_DEFINITION", - "description": " Gets conversation statistics.", - "canonical": true, - "file": "contact_center_insights.calculate_stats.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CalculateStats", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.CalculateStats", - "async": true, - "parameters": [ - { - "name": "location", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.contactcenterinsights.v1.CalculateStatsResponse", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "CalculateStats", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.CalculateStats", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetSettings_async", - "title": "ContactCenterInsights getSettings Sample", - "origin": "API_DEFINITION", - "description": " Gets project-level settings.", - "canonical": true, - "file": "contact_center_insights.get_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSettings", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.GetSettings", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.contactcenterinsights.v1.Settings", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "GetSettings", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.GetSettings", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UpdateSettings_async", - "title": "ContactCenterInsights updateSettings Sample", - "origin": "API_DEFINITION", - "description": " Updates project-level settings.", - "canonical": true, - "file": "contact_center_insights.update_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSettings", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.UpdateSettings", - "async": true, - "parameters": [ - { - "name": "settings", - "type": ".google.cloud.contactcenterinsights.v1.Settings" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.contactcenterinsights.v1.Settings", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "UpdateSettings", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.UpdateSettings", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CreateAnalysisRule_async", - "title": "ContactCenterInsights createAnalysisRule Sample", - "origin": "API_DEFINITION", - "description": " Creates a analysis rule.", - "canonical": true, - "file": "contact_center_insights.create_analysis_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAnalysisRule", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.CreateAnalysisRule", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "analysis_rule", - "type": ".google.cloud.contactcenterinsights.v1.AnalysisRule" - } - ], - "resultType": ".google.cloud.contactcenterinsights.v1.AnalysisRule", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "CreateAnalysisRule", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.CreateAnalysisRule", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetAnalysisRule_async", - "title": "ContactCenterInsights getAnalysisRule Sample", - "origin": "API_DEFINITION", - "description": " Get a analysis rule.", - "canonical": true, - "file": "contact_center_insights.get_analysis_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAnalysisRule", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.GetAnalysisRule", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.contactcenterinsights.v1.AnalysisRule", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "GetAnalysisRule", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.GetAnalysisRule", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ListAnalysisRules_async", - "title": "ContactCenterInsights listAnalysisRules Sample", - "origin": "API_DEFINITION", - "description": " Lists analysis rules.", - "canonical": true, - "file": "contact_center_insights.list_analysis_rules.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAnalysisRules", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.ListAnalysisRules", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.contactcenterinsights.v1.ListAnalysisRulesResponse", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "ListAnalysisRules", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.ListAnalysisRules", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UpdateAnalysisRule_async", - "title": "ContactCenterInsights updateAnalysisRule Sample", - "origin": "API_DEFINITION", - "description": " Updates a analysis rule.", - "canonical": true, - "file": "contact_center_insights.update_analysis_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAnalysisRule", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.UpdateAnalysisRule", - "async": true, - "parameters": [ - { - "name": "analysis_rule", - "type": ".google.cloud.contactcenterinsights.v1.AnalysisRule" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.contactcenterinsights.v1.AnalysisRule", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "UpdateAnalysisRule", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.UpdateAnalysisRule", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeleteAnalysisRule_async", - "title": "ContactCenterInsights deleteAnalysisRule Sample", - "origin": "API_DEFINITION", - "description": " Deletes a analysis rule.", - "canonical": true, - "file": "contact_center_insights.delete_analysis_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAnalysisRule", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.DeleteAnalysisRule", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "DeleteAnalysisRule", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.DeleteAnalysisRule", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetEncryptionSpec_async", - "title": "ContactCenterInsights getEncryptionSpec Sample", - "origin": "API_DEFINITION", - "description": " Gets location-level encryption key specification.", - "canonical": true, - "file": "contact_center_insights.get_encryption_spec.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEncryptionSpec", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.GetEncryptionSpec", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.contactcenterinsights.v1.EncryptionSpec", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "GetEncryptionSpec", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.GetEncryptionSpec", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_InitializeEncryptionSpec_async", - "title": "ContactCenterInsights initializeEncryptionSpec Sample", - "origin": "API_DEFINITION", - "description": " Initializes a location-level encryption key specification. An error will result if the location has resources already created before the initialization. After the encryption specification is initialized at a location, it is immutable and all newly created resources under the location will be encrypted with the existing specification.", - "canonical": true, - "file": "contact_center_insights.initialize_encryption_spec.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "InitializeEncryptionSpec", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.InitializeEncryptionSpec", - "async": true, - "parameters": [ - { - "name": "encryption_spec", - "type": ".google.cloud.contactcenterinsights.v1.EncryptionSpec" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "InitializeEncryptionSpec", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.InitializeEncryptionSpec", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CreateView_async", - "title": "ContactCenterInsights createView Sample", - "origin": "API_DEFINITION", - "description": " Creates a view.", - "canonical": true, - "file": "contact_center_insights.create_view.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateView", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.CreateView", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.contactcenterinsights.v1.View" - } - ], - "resultType": ".google.cloud.contactcenterinsights.v1.View", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "CreateView", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.CreateView", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetView_async", - "title": "ContactCenterInsights getView Sample", - "origin": "API_DEFINITION", - "description": " Gets a view.", - "canonical": true, - "file": "contact_center_insights.get_view.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetView", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.GetView", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.contactcenterinsights.v1.View", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "GetView", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.GetView", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ListViews_async", - "title": "ContactCenterInsights listViews Sample", - "origin": "API_DEFINITION", - "description": " Lists views.", - "canonical": true, - "file": "contact_center_insights.list_views.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListViews", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.ListViews", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.contactcenterinsights.v1.ListViewsResponse", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "ListViews", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.ListViews", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UpdateView_async", - "title": "ContactCenterInsights updateView Sample", - "origin": "API_DEFINITION", - "description": " Updates a view.", - "canonical": true, - "file": "contact_center_insights.update_view.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateView", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.UpdateView", - "async": true, - "parameters": [ - { - "name": "view", - "type": ".google.cloud.contactcenterinsights.v1.View" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.contactcenterinsights.v1.View", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "UpdateView", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.UpdateView", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeleteView_async", - "title": "ContactCenterInsights deleteView Sample", - "origin": "API_DEFINITION", - "description": " Deletes a view.", - "canonical": true, - "file": "contact_center_insights.delete_view.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteView", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.DeleteView", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "DeleteView", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.DeleteView", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_QueryMetrics_async", - "title": "ContactCenterInsights queryMetrics Sample", - "origin": "API_DEFINITION", - "description": " Query metrics.", - "canonical": true, - "file": "contact_center_insights.query_metrics.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryMetrics", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.QueryMetrics", - "async": true, - "parameters": [ - { - "name": "location", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "time_granularity", - "type": ".google.cloud.contactcenterinsights.v1.QueryMetricsRequest.TimeGranularity" - }, - { - "name": "dimensions", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "measure_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "QueryMetrics", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.QueryMetrics", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CreateQaQuestion_async", - "title": "ContactCenterInsights createQaQuestion Sample", - "origin": "API_DEFINITION", - "description": " Create a QaQuestion.", - "canonical": true, - "file": "contact_center_insights.create_qa_question.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateQaQuestion", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.CreateQaQuestion", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "qa_question", - "type": ".google.cloud.contactcenterinsights.v1.QaQuestion" - }, - { - "name": "qa_question_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.contactcenterinsights.v1.QaQuestion", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "CreateQaQuestion", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.CreateQaQuestion", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetQaQuestion_async", - "title": "ContactCenterInsights getQaQuestion Sample", - "origin": "API_DEFINITION", - "description": " Gets a QaQuestion.", - "canonical": true, - "file": "contact_center_insights.get_qa_question.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetQaQuestion", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.GetQaQuestion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.contactcenterinsights.v1.QaQuestion", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "GetQaQuestion", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.GetQaQuestion", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UpdateQaQuestion_async", - "title": "ContactCenterInsights updateQaQuestion Sample", - "origin": "API_DEFINITION", - "description": " Updates a QaQuestion.", - "canonical": true, - "file": "contact_center_insights.update_qa_question.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateQaQuestion", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.UpdateQaQuestion", - "async": true, - "parameters": [ - { - "name": "qa_question", - "type": ".google.cloud.contactcenterinsights.v1.QaQuestion" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.contactcenterinsights.v1.QaQuestion", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "UpdateQaQuestion", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.UpdateQaQuestion", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeleteQaQuestion_async", - "title": "ContactCenterInsights deleteQaQuestion Sample", - "origin": "API_DEFINITION", - "description": " Deletes a QaQuestion.", - "canonical": true, - "file": "contact_center_insights.delete_qa_question.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteQaQuestion", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.DeleteQaQuestion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "DeleteQaQuestion", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.DeleteQaQuestion", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ListQaQuestions_async", - "title": "ContactCenterInsights listQaQuestions Sample", - "origin": "API_DEFINITION", - "description": " Lists QaQuestions.", - "canonical": true, - "file": "contact_center_insights.list_qa_questions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListQaQuestions", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.ListQaQuestions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.contactcenterinsights.v1.ListQaQuestionsResponse", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "ListQaQuestions", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.ListQaQuestions", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CreateQaScorecard_async", - "title": "ContactCenterInsights createQaScorecard Sample", - "origin": "API_DEFINITION", - "description": " Create a QaScorecard.", - "canonical": true, - "file": "contact_center_insights.create_qa_scorecard.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateQaScorecard", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.CreateQaScorecard", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "qa_scorecard", - "type": ".google.cloud.contactcenterinsights.v1.QaScorecard" - }, - { - "name": "qa_scorecard_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.contactcenterinsights.v1.QaScorecard", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "CreateQaScorecard", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.CreateQaScorecard", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetQaScorecard_async", - "title": "ContactCenterInsights getQaScorecard Sample", - "origin": "API_DEFINITION", - "description": " Gets a QaScorecard.", - "canonical": true, - "file": "contact_center_insights.get_qa_scorecard.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetQaScorecard", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.GetQaScorecard", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.contactcenterinsights.v1.QaScorecard", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "GetQaScorecard", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.GetQaScorecard", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UpdateQaScorecard_async", - "title": "ContactCenterInsights updateQaScorecard Sample", - "origin": "API_DEFINITION", - "description": " Updates a QaScorecard.", - "canonical": true, - "file": "contact_center_insights.update_qa_scorecard.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateQaScorecard", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.UpdateQaScorecard", - "async": true, - "parameters": [ - { - "name": "qa_scorecard", - "type": ".google.cloud.contactcenterinsights.v1.QaScorecard" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.contactcenterinsights.v1.QaScorecard", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "UpdateQaScorecard", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.UpdateQaScorecard", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeleteQaScorecard_async", - "title": "ContactCenterInsights deleteQaScorecard Sample", - "origin": "API_DEFINITION", - "description": " Deletes a QaScorecard.", - "canonical": true, - "file": "contact_center_insights.delete_qa_scorecard.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteQaScorecard", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.DeleteQaScorecard", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "DeleteQaScorecard", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.DeleteQaScorecard", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ListQaScorecards_async", - "title": "ContactCenterInsights listQaScorecards Sample", - "origin": "API_DEFINITION", - "description": " Lists QaScorecards.", - "canonical": true, - "file": "contact_center_insights.list_qa_scorecards.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListQaScorecards", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.ListQaScorecards", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.contactcenterinsights.v1.ListQaScorecardsResponse", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "ListQaScorecards", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.ListQaScorecards", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CreateQaScorecardRevision_async", - "title": "ContactCenterInsights createQaScorecardRevision Sample", - "origin": "API_DEFINITION", - "description": " Creates a QaScorecardRevision.", - "canonical": true, - "file": "contact_center_insights.create_qa_scorecard_revision.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateQaScorecardRevision", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.CreateQaScorecardRevision", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "qa_scorecard_revision", - "type": ".google.cloud.contactcenterinsights.v1.QaScorecardRevision" - }, - { - "name": "qa_scorecard_revision_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.contactcenterinsights.v1.QaScorecardRevision", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "CreateQaScorecardRevision", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.CreateQaScorecardRevision", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetQaScorecardRevision_async", - "title": "ContactCenterInsights getQaScorecardRevision Sample", - "origin": "API_DEFINITION", - "description": " Gets a QaScorecardRevision.", - "canonical": true, - "file": "contact_center_insights.get_qa_scorecard_revision.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetQaScorecardRevision", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.GetQaScorecardRevision", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.contactcenterinsights.v1.QaScorecardRevision", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "GetQaScorecardRevision", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.GetQaScorecardRevision", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_TuneQaScorecardRevision_async", - "title": "ContactCenterInsights tuneQaScorecardRevision Sample", - "origin": "API_DEFINITION", - "description": " Fine tune one or more QaModels.", - "canonical": true, - "file": "contact_center_insights.tune_qa_scorecard_revision.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TuneQaScorecardRevision", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.TuneQaScorecardRevision", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "TuneQaScorecardRevision", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.TuneQaScorecardRevision", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeployQaScorecardRevision_async", - "title": "ContactCenterInsights deployQaScorecardRevision Sample", - "origin": "API_DEFINITION", - "description": " Deploy a QaScorecardRevision.", - "canonical": true, - "file": "contact_center_insights.deploy_qa_scorecard_revision.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeployQaScorecardRevision", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.DeployQaScorecardRevision", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.contactcenterinsights.v1.QaScorecardRevision", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "DeployQaScorecardRevision", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.DeployQaScorecardRevision", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UndeployQaScorecardRevision_async", - "title": "ContactCenterInsights undeployQaScorecardRevision Sample", - "origin": "API_DEFINITION", - "description": " Undeploy a QaScorecardRevision.", - "canonical": true, - "file": "contact_center_insights.undeploy_qa_scorecard_revision.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UndeployQaScorecardRevision", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.UndeployQaScorecardRevision", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.contactcenterinsights.v1.QaScorecardRevision", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "UndeployQaScorecardRevision", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.UndeployQaScorecardRevision", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeleteQaScorecardRevision_async", - "title": "ContactCenterInsights deleteQaScorecardRevision Sample", - "origin": "API_DEFINITION", - "description": " Deletes a QaScorecardRevision.", - "canonical": true, - "file": "contact_center_insights.delete_qa_scorecard_revision.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteQaScorecardRevision", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.DeleteQaScorecardRevision", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "DeleteQaScorecardRevision", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.DeleteQaScorecardRevision", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ListQaScorecardRevisions_async", - "title": "ContactCenterInsights listQaScorecardRevisions Sample", - "origin": "API_DEFINITION", - "description": " Lists all revisions under the parent QaScorecard.", - "canonical": true, - "file": "contact_center_insights.list_qa_scorecard_revisions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListQaScorecardRevisions", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.ListQaScorecardRevisions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.contactcenterinsights.v1.ListQaScorecardRevisionsResponse", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "ListQaScorecardRevisions", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.ListQaScorecardRevisions", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_CreateFeedbackLabel_async", - "title": "ContactCenterInsights createFeedbackLabel Sample", - "origin": "API_DEFINITION", - "description": " Create feedback label.", - "canonical": true, - "file": "contact_center_insights.create_feedback_label.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateFeedbackLabel", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.CreateFeedbackLabel", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "feedback_label_id", - "type": "TYPE_STRING" - }, - { - "name": "feedback_label", - "type": ".google.cloud.contactcenterinsights.v1.FeedbackLabel" - } - ], - "resultType": ".google.cloud.contactcenterinsights.v1.FeedbackLabel", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "CreateFeedbackLabel", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.CreateFeedbackLabel", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ListFeedbackLabels_async", - "title": "ContactCenterInsights listFeedbackLabels Sample", - "origin": "API_DEFINITION", - "description": " List feedback labels.", - "canonical": true, - "file": "contact_center_insights.list_feedback_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFeedbackLabels", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.ListFeedbackLabels", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.contactcenterinsights.v1.ListFeedbackLabelsResponse", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "ListFeedbackLabels", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.ListFeedbackLabels", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_GetFeedbackLabel_async", - "title": "ContactCenterInsights getFeedbackLabel Sample", - "origin": "API_DEFINITION", - "description": " Get feedback label.", - "canonical": true, - "file": "contact_center_insights.get_feedback_label.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFeedbackLabel", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.GetFeedbackLabel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.contactcenterinsights.v1.FeedbackLabel", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "GetFeedbackLabel", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.GetFeedbackLabel", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_UpdateFeedbackLabel_async", - "title": "ContactCenterInsights updateFeedbackLabel Sample", - "origin": "API_DEFINITION", - "description": " Update feedback label.", - "canonical": true, - "file": "contact_center_insights.update_feedback_label.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateFeedbackLabel", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.UpdateFeedbackLabel", - "async": true, - "parameters": [ - { - "name": "feedback_label", - "type": ".google.cloud.contactcenterinsights.v1.FeedbackLabel" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.contactcenterinsights.v1.FeedbackLabel", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "UpdateFeedbackLabel", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.UpdateFeedbackLabel", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_DeleteFeedbackLabel_async", - "title": "ContactCenterInsights deleteFeedbackLabel Sample", - "origin": "API_DEFINITION", - "description": " Delete feedback label.", - "canonical": true, - "file": "contact_center_insights.delete_feedback_label.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteFeedbackLabel", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.DeleteFeedbackLabel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "DeleteFeedbackLabel", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.DeleteFeedbackLabel", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_ListAllFeedbackLabels_async", - "title": "ContactCenterInsights listAllFeedbackLabels Sample", - "origin": "API_DEFINITION", - "description": " List all feedback labels by project number.", - "canonical": true, - "file": "contact_center_insights.list_all_feedback_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAllFeedbackLabels", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.ListAllFeedbackLabels", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.contactcenterinsights.v1.ListAllFeedbackLabelsResponse", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "ListAllFeedbackLabels", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.ListAllFeedbackLabels", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_BulkUploadFeedbackLabels_async", - "title": "ContactCenterInsights bulkUploadFeedbackLabels Sample", - "origin": "API_DEFINITION", - "description": " Upload feedback labels in bulk.", - "canonical": true, - "file": "contact_center_insights.bulk_upload_feedback_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BulkUploadFeedbackLabels", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.BulkUploadFeedbackLabels", - "async": true, - "parameters": [ - { - "name": "gcs_source", - "type": ".google.cloud.contactcenterinsights.v1.BulkUploadFeedbackLabelsRequest.GcsSource" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "BulkUploadFeedbackLabels", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.BulkUploadFeedbackLabels", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - }, - { - "regionTag": "contactcenterinsights_v1_generated_ContactCenterInsights_BulkDownloadFeedbackLabels_async", - "title": "ContactCenterInsights bulkDownloadFeedbackLabels Sample", - "origin": "API_DEFINITION", - "description": " Download feedback labels in bulk.", - "canonical": true, - "file": "contact_center_insights.bulk_download_feedback_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 95, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BulkDownloadFeedbackLabels", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.BulkDownloadFeedbackLabels", - "async": true, - "parameters": [ - { - "name": "gcs_destination", - "type": ".google.cloud.contactcenterinsights.v1.BulkDownloadFeedbackLabelsRequest.GcsDestination" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_download_count", - "type": "TYPE_INT32" - }, - { - "name": "feedback_label_type", - "type": ".google.cloud.contactcenterinsights.v1.BulkDownloadFeedbackLabelsRequest.FeedbackLabelType" - }, - { - "name": "conversation_filter", - "type": "TYPE_STRING" - }, - { - "name": "template_qa_scorecard_id", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ContactCenterInsightsClient", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient" - }, - "method": { - "shortName": "BulkDownloadFeedbackLabels", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights.BulkDownloadFeedbackLabels", - "service": { - "shortName": "ContactCenterInsights", - "fullName": "google.cloud.contactcenterinsights.v1.ContactCenterInsights" - } - } - } - } - ] -} diff --git a/packages/google-cloud-contentwarehouse/samples/generated/v1/snippet_metadata_google.cloud.contentwarehouse.v1.json b/packages/google-cloud-contentwarehouse/samples/generated/v1/snippet_metadata_google.cloud.contentwarehouse.v1.json deleted file mode 100644 index 52a33abeeea8..000000000000 --- a/packages/google-cloud-contentwarehouse/samples/generated/v1/snippet_metadata_google.cloud.contentwarehouse.v1.json +++ /dev/null @@ -1,1343 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-contentwarehouse", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.contentwarehouse.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "contentwarehouse_v1_generated_DocumentLinkService_ListLinkedTargets_async", - "title": "DocumentLinkService listLinkedTargets Sample", - "origin": "API_DEFINITION", - "description": " Return all target document-links from the document.", - "canonical": true, - "file": "document_link_service.list_linked_targets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListLinkedTargets", - "fullName": "google.cloud.contentwarehouse.v1.DocumentLinkService.ListLinkedTargets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "request_metadata", - "type": ".google.cloud.contentwarehouse.v1.RequestMetadata" - } - ], - "resultType": ".google.cloud.contentwarehouse.v1.ListLinkedTargetsResponse", - "client": { - "shortName": "DocumentLinkServiceClient", - "fullName": "google.cloud.contentwarehouse.v1.DocumentLinkServiceClient" - }, - "method": { - "shortName": "ListLinkedTargets", - "fullName": "google.cloud.contentwarehouse.v1.DocumentLinkService.ListLinkedTargets", - "service": { - "shortName": "DocumentLinkService", - "fullName": "google.cloud.contentwarehouse.v1.DocumentLinkService" - } - } - } - }, - { - "regionTag": "contentwarehouse_v1_generated_DocumentLinkService_ListLinkedSources_async", - "title": "DocumentLinkService listLinkedSources Sample", - "origin": "API_DEFINITION", - "description": " Return all source document-links from the document.", - "canonical": true, - "file": "document_link_service.list_linked_sources.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListLinkedSources", - "fullName": "google.cloud.contentwarehouse.v1.DocumentLinkService.ListLinkedSources", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "request_metadata", - "type": ".google.cloud.contentwarehouse.v1.RequestMetadata" - } - ], - "resultType": ".google.cloud.contentwarehouse.v1.ListLinkedSourcesResponse", - "client": { - "shortName": "DocumentLinkServiceClient", - "fullName": "google.cloud.contentwarehouse.v1.DocumentLinkServiceClient" - }, - "method": { - "shortName": "ListLinkedSources", - "fullName": "google.cloud.contentwarehouse.v1.DocumentLinkService.ListLinkedSources", - "service": { - "shortName": "DocumentLinkService", - "fullName": "google.cloud.contentwarehouse.v1.DocumentLinkService" - } - } - } - }, - { - "regionTag": "contentwarehouse_v1_generated_DocumentLinkService_CreateDocumentLink_async", - "title": "DocumentLinkService createDocumentLink Sample", - "origin": "API_DEFINITION", - "description": " Create a link between a source document and a target document.", - "canonical": true, - "file": "document_link_service.create_document_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDocumentLink", - "fullName": "google.cloud.contentwarehouse.v1.DocumentLinkService.CreateDocumentLink", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "document_link", - "type": ".google.cloud.contentwarehouse.v1.DocumentLink" - }, - { - "name": "request_metadata", - "type": ".google.cloud.contentwarehouse.v1.RequestMetadata" - } - ], - "resultType": ".google.cloud.contentwarehouse.v1.DocumentLink", - "client": { - "shortName": "DocumentLinkServiceClient", - "fullName": "google.cloud.contentwarehouse.v1.DocumentLinkServiceClient" - }, - "method": { - "shortName": "CreateDocumentLink", - "fullName": "google.cloud.contentwarehouse.v1.DocumentLinkService.CreateDocumentLink", - "service": { - "shortName": "DocumentLinkService", - "fullName": "google.cloud.contentwarehouse.v1.DocumentLinkService" - } - } - } - }, - { - "regionTag": "contentwarehouse_v1_generated_DocumentLinkService_DeleteDocumentLink_async", - "title": "DocumentLinkService deleteDocumentLink Sample", - "origin": "API_DEFINITION", - "description": " Remove the link between the source and target documents.", - "canonical": true, - "file": "document_link_service.delete_document_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDocumentLink", - "fullName": "google.cloud.contentwarehouse.v1.DocumentLinkService.DeleteDocumentLink", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_metadata", - "type": ".google.cloud.contentwarehouse.v1.RequestMetadata" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DocumentLinkServiceClient", - "fullName": "google.cloud.contentwarehouse.v1.DocumentLinkServiceClient" - }, - "method": { - "shortName": "DeleteDocumentLink", - "fullName": "google.cloud.contentwarehouse.v1.DocumentLinkService.DeleteDocumentLink", - "service": { - "shortName": "DocumentLinkService", - "fullName": "google.cloud.contentwarehouse.v1.DocumentLinkService" - } - } - } - }, - { - "regionTag": "contentwarehouse_v1_generated_DocumentSchemaService_CreateDocumentSchema_async", - "title": "DocumentLinkService createDocumentSchema Sample", - "origin": "API_DEFINITION", - "description": " Creates a document schema.", - "canonical": true, - "file": "document_schema_service.create_document_schema.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDocumentSchema", - "fullName": "google.cloud.contentwarehouse.v1.DocumentSchemaService.CreateDocumentSchema", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "document_schema", - "type": ".google.cloud.contentwarehouse.v1.DocumentSchema" - } - ], - "resultType": ".google.cloud.contentwarehouse.v1.DocumentSchema", - "client": { - "shortName": "DocumentSchemaServiceClient", - "fullName": "google.cloud.contentwarehouse.v1.DocumentSchemaServiceClient" - }, - "method": { - "shortName": "CreateDocumentSchema", - "fullName": "google.cloud.contentwarehouse.v1.DocumentSchemaService.CreateDocumentSchema", - "service": { - "shortName": "DocumentSchemaService", - "fullName": "google.cloud.contentwarehouse.v1.DocumentSchemaService" - } - } - } - }, - { - "regionTag": "contentwarehouse_v1_generated_DocumentSchemaService_UpdateDocumentSchema_async", - "title": "DocumentLinkService updateDocumentSchema Sample", - "origin": "API_DEFINITION", - "description": " Updates a Document Schema. Returns INVALID_ARGUMENT if the name of the Document Schema is non-empty and does not equal the existing name. Supports only appending new properties, adding new ENUM possible values, and updating the [EnumTypeOptions.validation_check_disabled][google.cloud.contentwarehouse.v1.EnumTypeOptions.validation_check_disabled] flag for ENUM possible values. Updating existing properties will result into INVALID_ARGUMENT.", - "canonical": true, - "file": "document_schema_service.update_document_schema.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDocumentSchema", - "fullName": "google.cloud.contentwarehouse.v1.DocumentSchemaService.UpdateDocumentSchema", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "document_schema", - "type": ".google.cloud.contentwarehouse.v1.DocumentSchema" - } - ], - "resultType": ".google.cloud.contentwarehouse.v1.DocumentSchema", - "client": { - "shortName": "DocumentSchemaServiceClient", - "fullName": "google.cloud.contentwarehouse.v1.DocumentSchemaServiceClient" - }, - "method": { - "shortName": "UpdateDocumentSchema", - "fullName": "google.cloud.contentwarehouse.v1.DocumentSchemaService.UpdateDocumentSchema", - "service": { - "shortName": "DocumentSchemaService", - "fullName": "google.cloud.contentwarehouse.v1.DocumentSchemaService" - } - } - } - }, - { - "regionTag": "contentwarehouse_v1_generated_DocumentSchemaService_GetDocumentSchema_async", - "title": "DocumentLinkService getDocumentSchema Sample", - "origin": "API_DEFINITION", - "description": " Gets a document schema. Returns NOT_FOUND if the document schema does not exist.", - "canonical": true, - "file": "document_schema_service.get_document_schema.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDocumentSchema", - "fullName": "google.cloud.contentwarehouse.v1.DocumentSchemaService.GetDocumentSchema", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.contentwarehouse.v1.DocumentSchema", - "client": { - "shortName": "DocumentSchemaServiceClient", - "fullName": "google.cloud.contentwarehouse.v1.DocumentSchemaServiceClient" - }, - "method": { - "shortName": "GetDocumentSchema", - "fullName": "google.cloud.contentwarehouse.v1.DocumentSchemaService.GetDocumentSchema", - "service": { - "shortName": "DocumentSchemaService", - "fullName": "google.cloud.contentwarehouse.v1.DocumentSchemaService" - } - } - } - }, - { - "regionTag": "contentwarehouse_v1_generated_DocumentSchemaService_DeleteDocumentSchema_async", - "title": "DocumentLinkService deleteDocumentSchema Sample", - "origin": "API_DEFINITION", - "description": " Deletes a document schema. Returns NOT_FOUND if the document schema does not exist. Returns BAD_REQUEST if the document schema has documents depending on it.", - "canonical": true, - "file": "document_schema_service.delete_document_schema.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDocumentSchema", - "fullName": "google.cloud.contentwarehouse.v1.DocumentSchemaService.DeleteDocumentSchema", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DocumentSchemaServiceClient", - "fullName": "google.cloud.contentwarehouse.v1.DocumentSchemaServiceClient" - }, - "method": { - "shortName": "DeleteDocumentSchema", - "fullName": "google.cloud.contentwarehouse.v1.DocumentSchemaService.DeleteDocumentSchema", - "service": { - "shortName": "DocumentSchemaService", - "fullName": "google.cloud.contentwarehouse.v1.DocumentSchemaService" - } - } - } - }, - { - "regionTag": "contentwarehouse_v1_generated_DocumentSchemaService_ListDocumentSchemas_async", - "title": "DocumentLinkService listDocumentSchemas Sample", - "origin": "API_DEFINITION", - "description": " Lists document schemas.", - "canonical": true, - "file": "document_schema_service.list_document_schemas.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDocumentSchemas", - "fullName": "google.cloud.contentwarehouse.v1.DocumentSchemaService.ListDocumentSchemas", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.contentwarehouse.v1.ListDocumentSchemasResponse", - "client": { - "shortName": "DocumentSchemaServiceClient", - "fullName": "google.cloud.contentwarehouse.v1.DocumentSchemaServiceClient" - }, - "method": { - "shortName": "ListDocumentSchemas", - "fullName": "google.cloud.contentwarehouse.v1.DocumentSchemaService.ListDocumentSchemas", - "service": { - "shortName": "DocumentSchemaService", - "fullName": "google.cloud.contentwarehouse.v1.DocumentSchemaService" - } - } - } - }, - { - "regionTag": "contentwarehouse_v1_generated_DocumentService_CreateDocument_async", - "title": "DocumentLinkService createDocument Sample", - "origin": "API_DEFINITION", - "description": " Creates a document.", - "canonical": true, - "file": "document_service.create_document.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDocument", - "fullName": "google.cloud.contentwarehouse.v1.DocumentService.CreateDocument", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "document", - "type": ".google.cloud.contentwarehouse.v1.Document" - }, - { - "name": "request_metadata", - "type": ".google.cloud.contentwarehouse.v1.RequestMetadata" - }, - { - "name": "policy", - "type": ".google.iam.v1.Policy" - }, - { - "name": "cloud_ai_document_option", - "type": ".google.cloud.contentwarehouse.v1.CloudAIDocumentOption" - }, - { - "name": "create_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.contentwarehouse.v1.CreateDocumentResponse", - "client": { - "shortName": "DocumentServiceClient", - "fullName": "google.cloud.contentwarehouse.v1.DocumentServiceClient" - }, - "method": { - "shortName": "CreateDocument", - "fullName": "google.cloud.contentwarehouse.v1.DocumentService.CreateDocument", - "service": { - "shortName": "DocumentService", - "fullName": "google.cloud.contentwarehouse.v1.DocumentService" - } - } - } - }, - { - "regionTag": "contentwarehouse_v1_generated_DocumentService_GetDocument_async", - "title": "DocumentLinkService getDocument Sample", - "origin": "API_DEFINITION", - "description": " Gets a document. Returns NOT_FOUND if the document does not exist.", - "canonical": true, - "file": "document_service.get_document.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDocument", - "fullName": "google.cloud.contentwarehouse.v1.DocumentService.GetDocument", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_metadata", - "type": ".google.cloud.contentwarehouse.v1.RequestMetadata" - } - ], - "resultType": ".google.cloud.contentwarehouse.v1.Document", - "client": { - "shortName": "DocumentServiceClient", - "fullName": "google.cloud.contentwarehouse.v1.DocumentServiceClient" - }, - "method": { - "shortName": "GetDocument", - "fullName": "google.cloud.contentwarehouse.v1.DocumentService.GetDocument", - "service": { - "shortName": "DocumentService", - "fullName": "google.cloud.contentwarehouse.v1.DocumentService" - } - } - } - }, - { - "regionTag": "contentwarehouse_v1_generated_DocumentService_UpdateDocument_async", - "title": "DocumentLinkService updateDocument Sample", - "origin": "API_DEFINITION", - "description": " Updates a document. Returns INVALID_ARGUMENT if the name of the document is non-empty and does not equal the existing name.", - "canonical": true, - "file": "document_service.update_document.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDocument", - "fullName": "google.cloud.contentwarehouse.v1.DocumentService.UpdateDocument", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "document", - "type": ".google.cloud.contentwarehouse.v1.Document" - }, - { - "name": "request_metadata", - "type": ".google.cloud.contentwarehouse.v1.RequestMetadata" - }, - { - "name": "cloud_ai_document_option", - "type": ".google.cloud.contentwarehouse.v1.CloudAIDocumentOption" - }, - { - "name": "update_options", - "type": ".google.cloud.contentwarehouse.v1.UpdateOptions" - } - ], - "resultType": ".google.cloud.contentwarehouse.v1.UpdateDocumentResponse", - "client": { - "shortName": "DocumentServiceClient", - "fullName": "google.cloud.contentwarehouse.v1.DocumentServiceClient" - }, - "method": { - "shortName": "UpdateDocument", - "fullName": "google.cloud.contentwarehouse.v1.DocumentService.UpdateDocument", - "service": { - "shortName": "DocumentService", - "fullName": "google.cloud.contentwarehouse.v1.DocumentService" - } - } - } - }, - { - "regionTag": "contentwarehouse_v1_generated_DocumentService_DeleteDocument_async", - "title": "DocumentLinkService deleteDocument Sample", - "origin": "API_DEFINITION", - "description": " Deletes a document. Returns NOT_FOUND if the document does not exist.", - "canonical": true, - "file": "document_service.delete_document.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDocument", - "fullName": "google.cloud.contentwarehouse.v1.DocumentService.DeleteDocument", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_metadata", - "type": ".google.cloud.contentwarehouse.v1.RequestMetadata" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DocumentServiceClient", - "fullName": "google.cloud.contentwarehouse.v1.DocumentServiceClient" - }, - "method": { - "shortName": "DeleteDocument", - "fullName": "google.cloud.contentwarehouse.v1.DocumentService.DeleteDocument", - "service": { - "shortName": "DocumentService", - "fullName": "google.cloud.contentwarehouse.v1.DocumentService" - } - } - } - }, - { - "regionTag": "contentwarehouse_v1_generated_DocumentService_SearchDocuments_async", - "title": "DocumentLinkService searchDocuments Sample", - "origin": "API_DEFINITION", - "description": " Searches for documents using provided [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest]. This call only returns documents that the caller has permission to search against.", - "canonical": true, - "file": "document_service.search_documents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 156, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchDocuments", - "fullName": "google.cloud.contentwarehouse.v1.DocumentService.SearchDocuments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "request_metadata", - "type": ".google.cloud.contentwarehouse.v1.RequestMetadata" - }, - { - "name": "document_query", - "type": ".google.cloud.contentwarehouse.v1.DocumentQuery" - }, - { - "name": "offset", - "type": "TYPE_INT32" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "histogram_queries", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "require_total_size", - "type": "TYPE_BOOL" - }, - { - "name": "total_result_size", - "type": ".google.cloud.contentwarehouse.v1.SearchDocumentsRequest.TotalResultSize" - }, - { - "name": "qa_size_limit", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.contentwarehouse.v1.SearchDocumentsResponse", - "client": { - "shortName": "DocumentServiceClient", - "fullName": "google.cloud.contentwarehouse.v1.DocumentServiceClient" - }, - "method": { - "shortName": "SearchDocuments", - "fullName": "google.cloud.contentwarehouse.v1.DocumentService.SearchDocuments", - "service": { - "shortName": "DocumentService", - "fullName": "google.cloud.contentwarehouse.v1.DocumentService" - } - } - } - }, - { - "regionTag": "contentwarehouse_v1_generated_DocumentService_LockDocument_async", - "title": "DocumentLinkService lockDocument Sample", - "origin": "API_DEFINITION", - "description": " Lock the document so the document cannot be updated by other users.", - "canonical": true, - "file": "document_service.lock_document.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "LockDocument", - "fullName": "google.cloud.contentwarehouse.v1.DocumentService.LockDocument", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "collection_id", - "type": "TYPE_STRING" - }, - { - "name": "locking_user", - "type": ".google.cloud.contentwarehouse.v1.UserInfo" - } - ], - "resultType": ".google.cloud.contentwarehouse.v1.Document", - "client": { - "shortName": "DocumentServiceClient", - "fullName": "google.cloud.contentwarehouse.v1.DocumentServiceClient" - }, - "method": { - "shortName": "LockDocument", - "fullName": "google.cloud.contentwarehouse.v1.DocumentService.LockDocument", - "service": { - "shortName": "DocumentService", - "fullName": "google.cloud.contentwarehouse.v1.DocumentService" - } - } - } - }, - { - "regionTag": "contentwarehouse_v1_generated_DocumentService_FetchAcl_async", - "title": "DocumentLinkService fetchAcl Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. Returns NOT_FOUND error if the resource does not exist. Returns an empty policy if the resource exists but does not have a policy set.", - "canonical": true, - "file": "document_service.fetch_acl.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchAcl", - "fullName": "google.cloud.contentwarehouse.v1.DocumentService.FetchAcl", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "request_metadata", - "type": ".google.cloud.contentwarehouse.v1.RequestMetadata" - }, - { - "name": "project_owner", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.contentwarehouse.v1.FetchAclResponse", - "client": { - "shortName": "DocumentServiceClient", - "fullName": "google.cloud.contentwarehouse.v1.DocumentServiceClient" - }, - "method": { - "shortName": "FetchAcl", - "fullName": "google.cloud.contentwarehouse.v1.DocumentService.FetchAcl", - "service": { - "shortName": "DocumentService", - "fullName": "google.cloud.contentwarehouse.v1.DocumentService" - } - } - } - }, - { - "regionTag": "contentwarehouse_v1_generated_DocumentService_SetAcl_async", - "title": "DocumentLinkService setAcl Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy for a resource. Replaces any existing policy.", - "canonical": true, - "file": "document_service.set_acl.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetAcl", - "fullName": "google.cloud.contentwarehouse.v1.DocumentService.SetAcl", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.iam.v1.Policy" - }, - { - "name": "request_metadata", - "type": ".google.cloud.contentwarehouse.v1.RequestMetadata" - }, - { - "name": "project_owner", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.contentwarehouse.v1.SetAclResponse", - "client": { - "shortName": "DocumentServiceClient", - "fullName": "google.cloud.contentwarehouse.v1.DocumentServiceClient" - }, - "method": { - "shortName": "SetAcl", - "fullName": "google.cloud.contentwarehouse.v1.DocumentService.SetAcl", - "service": { - "shortName": "DocumentService", - "fullName": "google.cloud.contentwarehouse.v1.DocumentService" - } - } - } - }, - { - "regionTag": "contentwarehouse_v1_generated_PipelineService_RunPipeline_async", - "title": "DocumentLinkService runPipeline Sample", - "origin": "API_DEFINITION", - "description": " Run a predefined pipeline.", - "canonical": true, - "file": "pipeline_service.run_pipeline.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RunPipeline", - "fullName": "google.cloud.contentwarehouse.v1.PipelineService.RunPipeline", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "gcs_ingest_pipeline", - "type": ".google.cloud.contentwarehouse.v1.GcsIngestPipeline" - }, - { - "name": "gcs_ingest_with_doc_ai_processors_pipeline", - "type": ".google.cloud.contentwarehouse.v1.GcsIngestWithDocAiProcessorsPipeline" - }, - { - "name": "export_cdw_pipeline", - "type": ".google.cloud.contentwarehouse.v1.ExportToCdwPipeline" - }, - { - "name": "process_with_doc_ai_pipeline", - "type": ".google.cloud.contentwarehouse.v1.ProcessWithDocAiPipeline" - }, - { - "name": "request_metadata", - "type": ".google.cloud.contentwarehouse.v1.RequestMetadata" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "PipelineServiceClient", - "fullName": "google.cloud.contentwarehouse.v1.PipelineServiceClient" - }, - "method": { - "shortName": "RunPipeline", - "fullName": "google.cloud.contentwarehouse.v1.PipelineService.RunPipeline", - "service": { - "shortName": "PipelineService", - "fullName": "google.cloud.contentwarehouse.v1.PipelineService" - } - } - } - }, - { - "regionTag": "contentwarehouse_v1_generated_RuleSetService_CreateRuleSet_async", - "title": "DocumentLinkService createRuleSet Sample", - "origin": "API_DEFINITION", - "description": " Creates a ruleset.", - "canonical": true, - "file": "rule_set_service.create_rule_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateRuleSet", - "fullName": "google.cloud.contentwarehouse.v1.RuleSetService.CreateRuleSet", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "rule_set", - "type": ".google.cloud.contentwarehouse.v1.RuleSet" - } - ], - "resultType": ".google.cloud.contentwarehouse.v1.RuleSet", - "client": { - "shortName": "RuleSetServiceClient", - "fullName": "google.cloud.contentwarehouse.v1.RuleSetServiceClient" - }, - "method": { - "shortName": "CreateRuleSet", - "fullName": "google.cloud.contentwarehouse.v1.RuleSetService.CreateRuleSet", - "service": { - "shortName": "RuleSetService", - "fullName": "google.cloud.contentwarehouse.v1.RuleSetService" - } - } - } - }, - { - "regionTag": "contentwarehouse_v1_generated_RuleSetService_GetRuleSet_async", - "title": "DocumentLinkService getRuleSet Sample", - "origin": "API_DEFINITION", - "description": " Gets a ruleset. Returns NOT_FOUND if the ruleset does not exist.", - "canonical": true, - "file": "rule_set_service.get_rule_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRuleSet", - "fullName": "google.cloud.contentwarehouse.v1.RuleSetService.GetRuleSet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.contentwarehouse.v1.RuleSet", - "client": { - "shortName": "RuleSetServiceClient", - "fullName": "google.cloud.contentwarehouse.v1.RuleSetServiceClient" - }, - "method": { - "shortName": "GetRuleSet", - "fullName": "google.cloud.contentwarehouse.v1.RuleSetService.GetRuleSet", - "service": { - "shortName": "RuleSetService", - "fullName": "google.cloud.contentwarehouse.v1.RuleSetService" - } - } - } - }, - { - "regionTag": "contentwarehouse_v1_generated_RuleSetService_UpdateRuleSet_async", - "title": "DocumentLinkService updateRuleSet Sample", - "origin": "API_DEFINITION", - "description": " Updates a ruleset. Returns INVALID_ARGUMENT if the name of the ruleset is non-empty and does not equal the existing name.", - "canonical": true, - "file": "rule_set_service.update_rule_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateRuleSet", - "fullName": "google.cloud.contentwarehouse.v1.RuleSetService.UpdateRuleSet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "rule_set", - "type": ".google.cloud.contentwarehouse.v1.RuleSet" - } - ], - "resultType": ".google.cloud.contentwarehouse.v1.RuleSet", - "client": { - "shortName": "RuleSetServiceClient", - "fullName": "google.cloud.contentwarehouse.v1.RuleSetServiceClient" - }, - "method": { - "shortName": "UpdateRuleSet", - "fullName": "google.cloud.contentwarehouse.v1.RuleSetService.UpdateRuleSet", - "service": { - "shortName": "RuleSetService", - "fullName": "google.cloud.contentwarehouse.v1.RuleSetService" - } - } - } - }, - { - "regionTag": "contentwarehouse_v1_generated_RuleSetService_DeleteRuleSet_async", - "title": "DocumentLinkService deleteRuleSet Sample", - "origin": "API_DEFINITION", - "description": " Deletes a ruleset. Returns NOT_FOUND if the document does not exist.", - "canonical": true, - "file": "rule_set_service.delete_rule_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteRuleSet", - "fullName": "google.cloud.contentwarehouse.v1.RuleSetService.DeleteRuleSet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "RuleSetServiceClient", - "fullName": "google.cloud.contentwarehouse.v1.RuleSetServiceClient" - }, - "method": { - "shortName": "DeleteRuleSet", - "fullName": "google.cloud.contentwarehouse.v1.RuleSetService.DeleteRuleSet", - "service": { - "shortName": "RuleSetService", - "fullName": "google.cloud.contentwarehouse.v1.RuleSetService" - } - } - } - }, - { - "regionTag": "contentwarehouse_v1_generated_RuleSetService_ListRuleSets_async", - "title": "DocumentLinkService listRuleSets Sample", - "origin": "API_DEFINITION", - "description": " Lists rulesets.", - "canonical": true, - "file": "rule_set_service.list_rule_sets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRuleSets", - "fullName": "google.cloud.contentwarehouse.v1.RuleSetService.ListRuleSets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.contentwarehouse.v1.ListRuleSetsResponse", - "client": { - "shortName": "RuleSetServiceClient", - "fullName": "google.cloud.contentwarehouse.v1.RuleSetServiceClient" - }, - "method": { - "shortName": "ListRuleSets", - "fullName": "google.cloud.contentwarehouse.v1.RuleSetService.ListRuleSets", - "service": { - "shortName": "RuleSetService", - "fullName": "google.cloud.contentwarehouse.v1.RuleSetService" - } - } - } - }, - { - "regionTag": "contentwarehouse_v1_generated_SynonymSetService_CreateSynonymSet_async", - "title": "DocumentLinkService createSynonymSet Sample", - "origin": "API_DEFINITION", - "description": " Creates a SynonymSet for a single context. Throws an ALREADY_EXISTS exception if a synonymset already exists for the context.", - "canonical": true, - "file": "synonym_set_service.create_synonym_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSynonymSet", - "fullName": "google.cloud.contentwarehouse.v1.SynonymSetService.CreateSynonymSet", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "synonym_set", - "type": ".google.cloud.contentwarehouse.v1.SynonymSet" - } - ], - "resultType": ".google.cloud.contentwarehouse.v1.SynonymSet", - "client": { - "shortName": "SynonymSetServiceClient", - "fullName": "google.cloud.contentwarehouse.v1.SynonymSetServiceClient" - }, - "method": { - "shortName": "CreateSynonymSet", - "fullName": "google.cloud.contentwarehouse.v1.SynonymSetService.CreateSynonymSet", - "service": { - "shortName": "SynonymSetService", - "fullName": "google.cloud.contentwarehouse.v1.SynonymSetService" - } - } - } - }, - { - "regionTag": "contentwarehouse_v1_generated_SynonymSetService_GetSynonymSet_async", - "title": "DocumentLinkService getSynonymSet Sample", - "origin": "API_DEFINITION", - "description": " Gets a SynonymSet for a particular context. Throws a NOT_FOUND exception if the Synonymset does not exist", - "canonical": true, - "file": "synonym_set_service.get_synonym_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSynonymSet", - "fullName": "google.cloud.contentwarehouse.v1.SynonymSetService.GetSynonymSet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.contentwarehouse.v1.SynonymSet", - "client": { - "shortName": "SynonymSetServiceClient", - "fullName": "google.cloud.contentwarehouse.v1.SynonymSetServiceClient" - }, - "method": { - "shortName": "GetSynonymSet", - "fullName": "google.cloud.contentwarehouse.v1.SynonymSetService.GetSynonymSet", - "service": { - "shortName": "SynonymSetService", - "fullName": "google.cloud.contentwarehouse.v1.SynonymSetService" - } - } - } - }, - { - "regionTag": "contentwarehouse_v1_generated_SynonymSetService_UpdateSynonymSet_async", - "title": "DocumentLinkService updateSynonymSet Sample", - "origin": "API_DEFINITION", - "description": " Remove the existing SynonymSet for the context and replaces it with a new one. Throws a NOT_FOUND exception if the SynonymSet is not found.", - "canonical": true, - "file": "synonym_set_service.update_synonym_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSynonymSet", - "fullName": "google.cloud.contentwarehouse.v1.SynonymSetService.UpdateSynonymSet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "synonym_set", - "type": ".google.cloud.contentwarehouse.v1.SynonymSet" - } - ], - "resultType": ".google.cloud.contentwarehouse.v1.SynonymSet", - "client": { - "shortName": "SynonymSetServiceClient", - "fullName": "google.cloud.contentwarehouse.v1.SynonymSetServiceClient" - }, - "method": { - "shortName": "UpdateSynonymSet", - "fullName": "google.cloud.contentwarehouse.v1.SynonymSetService.UpdateSynonymSet", - "service": { - "shortName": "SynonymSetService", - "fullName": "google.cloud.contentwarehouse.v1.SynonymSetService" - } - } - } - }, - { - "regionTag": "contentwarehouse_v1_generated_SynonymSetService_DeleteSynonymSet_async", - "title": "DocumentLinkService deleteSynonymSet Sample", - "origin": "API_DEFINITION", - "description": " Deletes a SynonymSet for a given context. Throws a NOT_FOUND exception if the SynonymSet is not found.", - "canonical": true, - "file": "synonym_set_service.delete_synonym_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSynonymSet", - "fullName": "google.cloud.contentwarehouse.v1.SynonymSetService.DeleteSynonymSet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "SynonymSetServiceClient", - "fullName": "google.cloud.contentwarehouse.v1.SynonymSetServiceClient" - }, - "method": { - "shortName": "DeleteSynonymSet", - "fullName": "google.cloud.contentwarehouse.v1.SynonymSetService.DeleteSynonymSet", - "service": { - "shortName": "SynonymSetService", - "fullName": "google.cloud.contentwarehouse.v1.SynonymSetService" - } - } - } - }, - { - "regionTag": "contentwarehouse_v1_generated_SynonymSetService_ListSynonymSets_async", - "title": "DocumentLinkService listSynonymSets Sample", - "origin": "API_DEFINITION", - "description": " Returns all SynonymSets (for all contexts) for the specified location.", - "canonical": true, - "file": "synonym_set_service.list_synonym_sets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSynonymSets", - "fullName": "google.cloud.contentwarehouse.v1.SynonymSetService.ListSynonymSets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.contentwarehouse.v1.ListSynonymSetsResponse", - "client": { - "shortName": "SynonymSetServiceClient", - "fullName": "google.cloud.contentwarehouse.v1.SynonymSetServiceClient" - }, - "method": { - "shortName": "ListSynonymSets", - "fullName": "google.cloud.contentwarehouse.v1.SynonymSetService.ListSynonymSets", - "service": { - "shortName": "SynonymSetService", - "fullName": "google.cloud.contentwarehouse.v1.SynonymSetService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-databasecenter/samples/generated/v1beta/snippet_metadata_google.cloud.databasecenter.v1beta.json b/packages/google-cloud-databasecenter/samples/generated/v1beta/snippet_metadata_google.cloud.databasecenter.v1beta.json deleted file mode 100644 index fdc3e977ef3a..000000000000 --- a/packages/google-cloud-databasecenter/samples/generated/v1beta/snippet_metadata_google.cloud.databasecenter.v1beta.json +++ /dev/null @@ -1,359 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-databasecenter", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.databasecenter.v1beta", - "version": "v1beta" - } - ] - }, - "snippets": [ - { - "regionTag": "databasecenter_v1beta_generated_DatabaseCenter_QueryProducts_async", - "title": "DatabaseCenter queryProducts Sample", - "origin": "API_DEFINITION", - "description": " QueryProducts provides a list of all possible products which can be used to filter database resources.", - "canonical": true, - "file": "database_center.query_products.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryProducts", - "fullName": "google.cloud.databasecenter.v1beta.DatabaseCenter.QueryProducts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.databasecenter.v1beta.QueryProductsResponse", - "client": { - "shortName": "DatabaseCenterClient", - "fullName": "google.cloud.databasecenter.v1beta.DatabaseCenterClient" - }, - "method": { - "shortName": "QueryProducts", - "fullName": "google.cloud.databasecenter.v1beta.DatabaseCenter.QueryProducts", - "service": { - "shortName": "DatabaseCenter", - "fullName": "google.cloud.databasecenter.v1beta.DatabaseCenter" - } - } - } - }, - { - "regionTag": "databasecenter_v1beta_generated_DatabaseCenter_AggregateFleet_async", - "title": "DatabaseCenter aggregateFleet Sample", - "origin": "API_DEFINITION", - "description": " AggregateFleet provides statistics about the fleet grouped by various fields.", - "canonical": true, - "file": "database_center.aggregate_fleet.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 135, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregateFleet", - "fullName": "google.cloud.databasecenter.v1beta.DatabaseCenter.AggregateFleet", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "group_by", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "baseline_date", - "type": ".google.type.Date" - } - ], - "resultType": ".google.cloud.databasecenter.v1beta.AggregateFleetResponse", - "client": { - "shortName": "DatabaseCenterClient", - "fullName": "google.cloud.databasecenter.v1beta.DatabaseCenterClient" - }, - "method": { - "shortName": "AggregateFleet", - "fullName": "google.cloud.databasecenter.v1beta.DatabaseCenter.AggregateFleet", - "service": { - "shortName": "DatabaseCenter", - "fullName": "google.cloud.databasecenter.v1beta.DatabaseCenter" - } - } - } - }, - { - "regionTag": "databasecenter_v1beta_generated_DatabaseCenter_QueryDatabaseResourceGroups_async", - "title": "DatabaseCenter queryDatabaseResourceGroups Sample", - "origin": "API_DEFINITION", - "description": " QueryDatabaseResourceGroups returns paginated results of database groups.", - "canonical": true, - "file": "database_center.query_database_resource_groups.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 153, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryDatabaseResourceGroups", - "fullName": "google.cloud.databasecenter.v1beta.DatabaseCenter.QueryDatabaseResourceGroups", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "signal_type_groups", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "signal_filters", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.databasecenter.v1beta.QueryDatabaseResourceGroupsResponse", - "client": { - "shortName": "DatabaseCenterClient", - "fullName": "google.cloud.databasecenter.v1beta.DatabaseCenterClient" - }, - "method": { - "shortName": "QueryDatabaseResourceGroups", - "fullName": "google.cloud.databasecenter.v1beta.DatabaseCenter.QueryDatabaseResourceGroups", - "service": { - "shortName": "DatabaseCenter", - "fullName": "google.cloud.databasecenter.v1beta.DatabaseCenter" - } - } - } - }, - { - "regionTag": "databasecenter_v1beta_generated_DatabaseCenter_AggregateIssueStats_async", - "title": "DatabaseCenter aggregateIssueStats Sample", - "origin": "API_DEFINITION", - "description": " AggregateIssueStats provides database resource issues statistics.", - "canonical": true, - "file": "database_center.aggregate_issue_stats.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregateIssueStats", - "fullName": "google.cloud.databasecenter.v1beta.DatabaseCenter.AggregateIssueStats", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "signal_type_groups", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "baseline_date", - "type": ".google.type.Date" - } - ], - "resultType": ".google.cloud.databasecenter.v1beta.AggregateIssueStatsResponse", - "client": { - "shortName": "DatabaseCenterClient", - "fullName": "google.cloud.databasecenter.v1beta.DatabaseCenterClient" - }, - "method": { - "shortName": "AggregateIssueStats", - "fullName": "google.cloud.databasecenter.v1beta.DatabaseCenter.AggregateIssueStats", - "service": { - "shortName": "DatabaseCenter", - "fullName": "google.cloud.databasecenter.v1beta.DatabaseCenter" - } - } - } - }, - { - "regionTag": "databasecenter_v1beta_generated_DatabaseCenter_AggregateQueryStats_async", - "title": "DatabaseCenter aggregateQueryStats Sample", - "origin": "API_DEFINITION", - "description": " AggregateQueryStats provides database resource query execution statistics.", - "canonical": true, - "file": "database_center.aggregate_query_stats.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 104, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregateQueryStats", - "fullName": "google.cloud.databasecenter.v1beta.DatabaseCenter.AggregateQueryStats", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.databasecenter.v1beta.AggregateQueryStatsResponse", - "client": { - "shortName": "DatabaseCenterClient", - "fullName": "google.cloud.databasecenter.v1beta.DatabaseCenterClient" - }, - "method": { - "shortName": "AggregateQueryStats", - "fullName": "google.cloud.databasecenter.v1beta.DatabaseCenter.AggregateQueryStats", - "service": { - "shortName": "DatabaseCenter", - "fullName": "google.cloud.databasecenter.v1beta.DatabaseCenter" - } - } - } - }, - { - "regionTag": "databasecenter_v1beta_generated_DatabaseCenter_QueryIssues_async", - "title": "DatabaseCenter queryIssues Sample", - "origin": "API_DEFINITION", - "description": " QueryIssues provides a list of issues and recommendations that a user has access to and that are within the requested scope.", - "canonical": true, - "file": "database_center.query_issues.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 100, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryIssues", - "fullName": "google.cloud.databasecenter.v1beta.DatabaseCenter.QueryIssues", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "signal_products_filters", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.databasecenter.v1beta.QueryIssuesResponse", - "client": { - "shortName": "DatabaseCenterClient", - "fullName": "google.cloud.databasecenter.v1beta.DatabaseCenterClient" - }, - "method": { - "shortName": "QueryIssues", - "fullName": "google.cloud.databasecenter.v1beta.DatabaseCenter.QueryIssues", - "service": { - "shortName": "DatabaseCenter", - "fullName": "google.cloud.databasecenter.v1beta.DatabaseCenter" - } - } - } - } - ] -} diff --git a/packages/google-cloud-datacatalog-lineage-configmanagement/samples/generated/v1/snippet_metadata_google.cloud.datacatalog.lineage.configmanagement.v1.json b/packages/google-cloud-datacatalog-lineage-configmanagement/samples/generated/v1/snippet_metadata_google.cloud.datacatalog.lineage.configmanagement.v1.json deleted file mode 100644 index 7ae260d00704..000000000000 --- a/packages/google-cloud-datacatalog-lineage-configmanagement/samples/generated/v1/snippet_metadata_google.cloud.datacatalog.lineage.configmanagement.v1.json +++ /dev/null @@ -1,95 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-configmanagement", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.datacatalog.lineage.configmanagement.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "datalineage_v1_generated_ConfigManagementService_GetConfig_async", - "title": "ConfigManagementService getConfig Sample", - "origin": "API_DEFINITION", - "description": " Get the Config for a given resource.", - "canonical": true, - "file": "config_management_service.get_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetConfig", - "fullName": "google.cloud.datacatalog.lineage.configmanagement.v1.ConfigManagementService.GetConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datacatalog.lineage.configmanagement.v1.Config", - "client": { - "shortName": "ConfigManagementServiceClient", - "fullName": "google.cloud.datacatalog.lineage.configmanagement.v1.ConfigManagementServiceClient" - }, - "method": { - "shortName": "GetConfig", - "fullName": "google.cloud.datacatalog.lineage.configmanagement.v1.ConfigManagementService.GetConfig", - "service": { - "shortName": "ConfigManagementService", - "fullName": "google.cloud.datacatalog.lineage.configmanagement.v1.ConfigManagementService" - } - } - } - }, - { - "regionTag": "datalineage_v1_generated_ConfigManagementService_UpdateConfig_async", - "title": "ConfigManagementService updateConfig Sample", - "origin": "API_DEFINITION", - "description": " Update the Config for a given resource.", - "canonical": true, - "file": "config_management_service.update_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateConfig", - "fullName": "google.cloud.datacatalog.lineage.configmanagement.v1.ConfigManagementService.UpdateConfig", - "async": true, - "parameters": [ - { - "name": "config", - "type": ".google.cloud.datacatalog.lineage.configmanagement.v1.Config" - } - ], - "resultType": ".google.cloud.datacatalog.lineage.configmanagement.v1.Config", - "client": { - "shortName": "ConfigManagementServiceClient", - "fullName": "google.cloud.datacatalog.lineage.configmanagement.v1.ConfigManagementServiceClient" - }, - "method": { - "shortName": "UpdateConfig", - "fullName": "google.cloud.datacatalog.lineage.configmanagement.v1.ConfigManagementService.UpdateConfig", - "service": { - "shortName": "ConfigManagementService", - "fullName": "google.cloud.datacatalog.lineage.configmanagement.v1.ConfigManagementService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-datacatalog-lineage/samples/generated/v1/snippet_metadata_google.cloud.datacatalog.lineage.v1.json b/packages/google-cloud-datacatalog-lineage/samples/generated/v1/snippet_metadata_google.cloud.datacatalog.lineage.v1.json deleted file mode 100644 index 2d45c360c3e7..000000000000 --- a/packages/google-cloud-datacatalog-lineage/samples/generated/v1/snippet_metadata_google.cloud.datacatalog.lineage.v1.json +++ /dev/null @@ -1,879 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-lineage", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.datacatalog.lineage.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "datalineage_v1_generated_Lineage_ProcessOpenLineageRunEvent_async", - "title": "Lineage processOpenLineageRunEvent Sample", - "origin": "API_DEFINITION", - "description": " Creates new lineage events together with their parents: process and run. Updates the process and run if they already exist. Mapped from Open Lineage specification: https://github.com/OpenLineage/OpenLineage/blob/main/spec/OpenLineage.json.", - "canonical": true, - "file": "lineage.process_open_lineage_run_event.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ProcessOpenLineageRunEvent", - "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.ProcessOpenLineageRunEvent", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "open_lineage", - "type": ".google.protobuf.Struct" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datacatalog.lineage.v1.ProcessOpenLineageRunEventResponse", - "client": { - "shortName": "LineageClient", - "fullName": "google.cloud.datacatalog.lineage.v1.LineageClient" - }, - "method": { - "shortName": "ProcessOpenLineageRunEvent", - "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.ProcessOpenLineageRunEvent", - "service": { - "shortName": "Lineage", - "fullName": "google.cloud.datacatalog.lineage.v1.Lineage" - } - } - } - }, - { - "regionTag": "datalineage_v1_generated_Lineage_CreateProcess_async", - "title": "Lineage createProcess Sample", - "origin": "API_DEFINITION", - "description": " Creates a new process.", - "canonical": true, - "file": "lineage.create_process.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateProcess", - "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.CreateProcess", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "process", - "type": ".google.cloud.datacatalog.lineage.v1.Process" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datacatalog.lineage.v1.Process", - "client": { - "shortName": "LineageClient", - "fullName": "google.cloud.datacatalog.lineage.v1.LineageClient" - }, - "method": { - "shortName": "CreateProcess", - "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.CreateProcess", - "service": { - "shortName": "Lineage", - "fullName": "google.cloud.datacatalog.lineage.v1.Lineage" - } - } - } - }, - { - "regionTag": "datalineage_v1_generated_Lineage_UpdateProcess_async", - "title": "Lineage updateProcess Sample", - "origin": "API_DEFINITION", - "description": " Updates a process.", - "canonical": true, - "file": "lineage.update_process.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateProcess", - "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.UpdateProcess", - "async": true, - "parameters": [ - { - "name": "process", - "type": ".google.cloud.datacatalog.lineage.v1.Process" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datacatalog.lineage.v1.Process", - "client": { - "shortName": "LineageClient", - "fullName": "google.cloud.datacatalog.lineage.v1.LineageClient" - }, - "method": { - "shortName": "UpdateProcess", - "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.UpdateProcess", - "service": { - "shortName": "Lineage", - "fullName": "google.cloud.datacatalog.lineage.v1.Lineage" - } - } - } - }, - { - "regionTag": "datalineage_v1_generated_Lineage_GetProcess_async", - "title": "Lineage getProcess Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of the specified process.", - "canonical": true, - "file": "lineage.get_process.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetProcess", - "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.GetProcess", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datacatalog.lineage.v1.Process", - "client": { - "shortName": "LineageClient", - "fullName": "google.cloud.datacatalog.lineage.v1.LineageClient" - }, - "method": { - "shortName": "GetProcess", - "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.GetProcess", - "service": { - "shortName": "Lineage", - "fullName": "google.cloud.datacatalog.lineage.v1.Lineage" - } - } - } - }, - { - "regionTag": "datalineage_v1_generated_Lineage_ListProcesses_async", - "title": "Lineage listProcesses Sample", - "origin": "API_DEFINITION", - "description": " List processes in the given project and location. List order is descending by insertion time.", - "canonical": true, - "file": "lineage.list_processes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListProcesses", - "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.ListProcesses", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datacatalog.lineage.v1.ListProcessesResponse", - "client": { - "shortName": "LineageClient", - "fullName": "google.cloud.datacatalog.lineage.v1.LineageClient" - }, - "method": { - "shortName": "ListProcesses", - "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.ListProcesses", - "service": { - "shortName": "Lineage", - "fullName": "google.cloud.datacatalog.lineage.v1.Lineage" - } - } - } - }, - { - "regionTag": "datalineage_v1_generated_Lineage_DeleteProcess_async", - "title": "Lineage deleteProcess Sample", - "origin": "API_DEFINITION", - "description": " Deletes the process with the specified name.", - "canonical": true, - "file": "lineage.delete_process.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteProcess", - "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.DeleteProcess", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "LineageClient", - "fullName": "google.cloud.datacatalog.lineage.v1.LineageClient" - }, - "method": { - "shortName": "DeleteProcess", - "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.DeleteProcess", - "service": { - "shortName": "Lineage", - "fullName": "google.cloud.datacatalog.lineage.v1.Lineage" - } - } - } - }, - { - "regionTag": "datalineage_v1_generated_Lineage_CreateRun_async", - "title": "Lineage createRun Sample", - "origin": "API_DEFINITION", - "description": " Creates a new run.", - "canonical": true, - "file": "lineage.create_run.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateRun", - "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.CreateRun", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "run", - "type": ".google.cloud.datacatalog.lineage.v1.Run" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datacatalog.lineage.v1.Run", - "client": { - "shortName": "LineageClient", - "fullName": "google.cloud.datacatalog.lineage.v1.LineageClient" - }, - "method": { - "shortName": "CreateRun", - "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.CreateRun", - "service": { - "shortName": "Lineage", - "fullName": "google.cloud.datacatalog.lineage.v1.Lineage" - } - } - } - }, - { - "regionTag": "datalineage_v1_generated_Lineage_UpdateRun_async", - "title": "Lineage updateRun Sample", - "origin": "API_DEFINITION", - "description": " Updates a run.", - "canonical": true, - "file": "lineage.update_run.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateRun", - "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.UpdateRun", - "async": true, - "parameters": [ - { - "name": "run", - "type": ".google.cloud.datacatalog.lineage.v1.Run" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.datacatalog.lineage.v1.Run", - "client": { - "shortName": "LineageClient", - "fullName": "google.cloud.datacatalog.lineage.v1.LineageClient" - }, - "method": { - "shortName": "UpdateRun", - "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.UpdateRun", - "service": { - "shortName": "Lineage", - "fullName": "google.cloud.datacatalog.lineage.v1.Lineage" - } - } - } - }, - { - "regionTag": "datalineage_v1_generated_Lineage_GetRun_async", - "title": "Lineage getRun Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of the specified run.", - "canonical": true, - "file": "lineage.get_run.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRun", - "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.GetRun", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datacatalog.lineage.v1.Run", - "client": { - "shortName": "LineageClient", - "fullName": "google.cloud.datacatalog.lineage.v1.LineageClient" - }, - "method": { - "shortName": "GetRun", - "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.GetRun", - "service": { - "shortName": "Lineage", - "fullName": "google.cloud.datacatalog.lineage.v1.Lineage" - } - } - } - }, - { - "regionTag": "datalineage_v1_generated_Lineage_ListRuns_async", - "title": "Lineage listRuns Sample", - "origin": "API_DEFINITION", - "description": " Lists runs in the given project and location. List order is descending by `start_time`.", - "canonical": true, - "file": "lineage.list_runs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRuns", - "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.ListRuns", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datacatalog.lineage.v1.ListRunsResponse", - "client": { - "shortName": "LineageClient", - "fullName": "google.cloud.datacatalog.lineage.v1.LineageClient" - }, - "method": { - "shortName": "ListRuns", - "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.ListRuns", - "service": { - "shortName": "Lineage", - "fullName": "google.cloud.datacatalog.lineage.v1.Lineage" - } - } - } - }, - { - "regionTag": "datalineage_v1_generated_Lineage_DeleteRun_async", - "title": "Lineage deleteRun Sample", - "origin": "API_DEFINITION", - "description": " Deletes the run with the specified name.", - "canonical": true, - "file": "lineage.delete_run.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteRun", - "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.DeleteRun", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "LineageClient", - "fullName": "google.cloud.datacatalog.lineage.v1.LineageClient" - }, - "method": { - "shortName": "DeleteRun", - "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.DeleteRun", - "service": { - "shortName": "Lineage", - "fullName": "google.cloud.datacatalog.lineage.v1.Lineage" - } - } - } - }, - { - "regionTag": "datalineage_v1_generated_Lineage_CreateLineageEvent_async", - "title": "Lineage createLineageEvent Sample", - "origin": "API_DEFINITION", - "description": " Creates a new lineage event.", - "canonical": true, - "file": "lineage.create_lineage_event.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateLineageEvent", - "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.CreateLineageEvent", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "lineage_event", - "type": ".google.cloud.datacatalog.lineage.v1.LineageEvent" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datacatalog.lineage.v1.LineageEvent", - "client": { - "shortName": "LineageClient", - "fullName": "google.cloud.datacatalog.lineage.v1.LineageClient" - }, - "method": { - "shortName": "CreateLineageEvent", - "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.CreateLineageEvent", - "service": { - "shortName": "Lineage", - "fullName": "google.cloud.datacatalog.lineage.v1.Lineage" - } - } - } - }, - { - "regionTag": "datalineage_v1_generated_Lineage_GetLineageEvent_async", - "title": "Lineage getLineageEvent Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a specified lineage event.", - "canonical": true, - "file": "lineage.get_lineage_event.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetLineageEvent", - "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.GetLineageEvent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datacatalog.lineage.v1.LineageEvent", - "client": { - "shortName": "LineageClient", - "fullName": "google.cloud.datacatalog.lineage.v1.LineageClient" - }, - "method": { - "shortName": "GetLineageEvent", - "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.GetLineageEvent", - "service": { - "shortName": "Lineage", - "fullName": "google.cloud.datacatalog.lineage.v1.Lineage" - } - } - } - }, - { - "regionTag": "datalineage_v1_generated_Lineage_ListLineageEvents_async", - "title": "Lineage listLineageEvents Sample", - "origin": "API_DEFINITION", - "description": " Lists lineage events in the given project and location. The list order is not defined.", - "canonical": true, - "file": "lineage.list_lineage_events.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListLineageEvents", - "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.ListLineageEvents", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datacatalog.lineage.v1.ListLineageEventsResponse", - "client": { - "shortName": "LineageClient", - "fullName": "google.cloud.datacatalog.lineage.v1.LineageClient" - }, - "method": { - "shortName": "ListLineageEvents", - "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.ListLineageEvents", - "service": { - "shortName": "Lineage", - "fullName": "google.cloud.datacatalog.lineage.v1.Lineage" - } - } - } - }, - { - "regionTag": "datalineage_v1_generated_Lineage_DeleteLineageEvent_async", - "title": "Lineage deleteLineageEvent Sample", - "origin": "API_DEFINITION", - "description": " Deletes the lineage event with the specified name.", - "canonical": true, - "file": "lineage.delete_lineage_event.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteLineageEvent", - "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.DeleteLineageEvent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "LineageClient", - "fullName": "google.cloud.datacatalog.lineage.v1.LineageClient" - }, - "method": { - "shortName": "DeleteLineageEvent", - "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.DeleteLineageEvent", - "service": { - "shortName": "Lineage", - "fullName": "google.cloud.datacatalog.lineage.v1.Lineage" - } - } - } - }, - { - "regionTag": "datalineage_v1_generated_Lineage_SearchLinks_async", - "title": "Lineage searchLinks Sample", - "origin": "API_DEFINITION", - "description": " Retrieve a list of links connected to a specific asset. Links represent the data flow between **source** (upstream) and **target** (downstream) assets in transformation pipelines. Links are stored in the same project as the Lineage Events that create them. You can retrieve links in every project where you have the `datalineage.events.get` permission. The project provided in the URL is used for Billing and Quota.", - "canonical": true, - "file": "lineage.search_links.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 100, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchLinks", - "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.SearchLinks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "source", - "type": ".google.cloud.datacatalog.lineage.v1.EntityReference" - }, - { - "name": "target", - "type": ".google.cloud.datacatalog.lineage.v1.EntityReference" - }, - { - "name": "sources", - "type": ".google.cloud.datacatalog.lineage.v1.MultipleEntityReference" - }, - { - "name": "targets", - "type": ".google.cloud.datacatalog.lineage.v1.MultipleEntityReference" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datacatalog.lineage.v1.SearchLinksResponse", - "client": { - "shortName": "LineageClient", - "fullName": "google.cloud.datacatalog.lineage.v1.LineageClient" - }, - "method": { - "shortName": "SearchLinks", - "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.SearchLinks", - "service": { - "shortName": "Lineage", - "fullName": "google.cloud.datacatalog.lineage.v1.Lineage" - } - } - } - }, - { - "regionTag": "datalineage_v1_generated_Lineage_BatchSearchLinkProcesses_async", - "title": "Lineage batchSearchLinkProcesses Sample", - "origin": "API_DEFINITION", - "description": " Retrieve information about LineageProcesses associated with specific links. LineageProcesses are transformation pipelines that result in data flowing from **source** to **target** assets. Links between assets represent this operation. If you have specific link names, you can use this method to verify which LineageProcesses contribute to creating those links. See the [SearchLinks][google.cloud.datacatalog.lineage.v1.Lineage.SearchLinks] method for more information on how to retrieve link name. You can retrieve the LineageProcess information in every project where you have the `datalineage.events.get` permission. The project provided in the URL is used for Billing and Quota.", - "canonical": true, - "file": "lineage.batch_search_link_processes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchSearchLinkProcesses", - "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.BatchSearchLinkProcesses", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "links", - "type": "TYPE_STRING[]" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datacatalog.lineage.v1.BatchSearchLinkProcessesResponse", - "client": { - "shortName": "LineageClient", - "fullName": "google.cloud.datacatalog.lineage.v1.LineageClient" - }, - "method": { - "shortName": "BatchSearchLinkProcesses", - "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.BatchSearchLinkProcesses", - "service": { - "shortName": "Lineage", - "fullName": "google.cloud.datacatalog.lineage.v1.Lineage" - } - } - } - }, - { - "regionTag": "datalineage_v1_generated_Lineage_SearchLineageStreaming_async", - "title": "Lineage searchLineageStreaming Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a streaming response of lineage links connected to the requested assets by performing a breadth-first search in the given direction. Links represent the data flow between **source** (upstream) and **target** (downstream) assets in transformation pipelines. Links are stored in the same project as the Lineage Events that create them. This method retrieves links from all valid locations provided in the request. This method supports Column-Level Lineage (CLL) along with wildcard support to retrieve all CLL for an Entity FQN. Following permissions are required to retrieve links: * `datalineage.events.get` permission for the project where the link is stored for entity-level lineage. * `datalineage.events.getFields` permission for the project where the link is stored for column-level lineage. This method also returns processes that created the links if explicitly requested by setting [max_process_per_link](google.cloud.datacatalog.lineage.v1.SearchLineageStreamingRequest.limits.max_process_per_link) is non-zero and full process details are requested via `links.processes.process` in the [FieldMask](https://developers.google.com/workspace/docs/api/how-tos/field-masks#read_with_a_field_mask). Permission required to retrieve processes: * `datalineage.processes.get` permission for the project where the process is stored.", - "canonical": true, - "file": "lineage.search_lineage_streaming.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchLineageStreaming", - "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.SearchLineageStreaming", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "locations", - "type": "TYPE_STRING[]" - }, - { - "name": "root_criteria", - "type": ".google.cloud.datacatalog.lineage.v1.SearchLineageStreamingRequest.RootCriteria" - }, - { - "name": "direction", - "type": ".google.cloud.datacatalog.lineage.v1.SearchLineageStreamingRequest.SearchDirection" - }, - { - "name": "filters", - "type": ".google.cloud.datacatalog.lineage.v1.SearchLineageStreamingRequest.SearchFilters" - }, - { - "name": "limits", - "type": ".google.cloud.datacatalog.lineage.v1.SearchLineageStreamingRequest.SearchLimits" - } - ], - "resultType": ".google.cloud.datacatalog.lineage.v1.SearchLineageStreamingResponse", - "client": { - "shortName": "LineageClient", - "fullName": "google.cloud.datacatalog.lineage.v1.LineageClient" - }, - "method": { - "shortName": "SearchLineageStreaming", - "fullName": "google.cloud.datacatalog.lineage.v1.Lineage.SearchLineageStreaming", - "service": { - "shortName": "Lineage", - "fullName": "google.cloud.datacatalog.lineage.v1.Lineage" - } - } - } - } - ] -} diff --git a/packages/google-cloud-datacatalog/samples/generated/v1/snippet_metadata_google.cloud.datacatalog.v1.json b/packages/google-cloud-datacatalog/samples/generated/v1/snippet_metadata_google.cloud.datacatalog.v1.json deleted file mode 100644 index b896bb69f032..000000000000 --- a/packages/google-cloud-datacatalog/samples/generated/v1/snippet_metadata_google.cloud.datacatalog.v1.json +++ /dev/null @@ -1,2407 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-datacatalog", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.datacatalog.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "datacatalog_v1_generated_DataCatalog_SearchCatalog_async", - "title": "DataCatalog searchCatalog Sample", - "origin": "API_DEFINITION", - "description": " Searches Data Catalog for multiple resources like entries and tags that match a query. This is a [Custom Method] (https://cloud.google.com/apis/design/custom_methods) that doesn't return all information on a resource, only its ID and high level fields. To get more information, you can subsequently call specific get methods. Note: Data Catalog search queries don't guarantee full recall. Results that match your query might not be returned, even in subsequent result pages. Additionally, returned (and not returned) results can vary if you repeat search queries. For more information, see [Data Catalog search syntax] (https://cloud.google.com/data-catalog/docs/how-to/search-reference).", - "canonical": true, - "file": "data_catalog.search_catalog.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 110, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchCatalog", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.SearchCatalog", - "async": true, - "parameters": [ - { - "name": "scope", - "type": ".google.cloud.datacatalog.v1.SearchCatalogRequest.Scope" - }, - { - "name": "query", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "admin_search", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.datacatalog.v1.SearchCatalogResponse", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1.DataCatalogClient" - }, - "method": { - "shortName": "SearchCatalog", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.SearchCatalog", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1_generated_DataCatalog_CreateEntryGroup_async", - "title": "DataCatalog createEntryGroup Sample", - "origin": "API_DEFINITION", - "description": " Creates an entry group. An entry group contains logically related entries together with [Cloud Identity and Access Management](/data-catalog/docs/concepts/iam) policies. These policies specify users who can create, edit, and view entries within entry groups. Data Catalog automatically creates entry groups with names that start with the `@` symbol for the following resources: * BigQuery entries (`@bigquery`) * Pub/Sub topics (`@pubsub`) * Dataproc Metastore services (`@dataproc_metastore_{SERVICE_NAME_HASH}`) You can create your own entry groups for Cloud Storage fileset entries and custom entries together with the corresponding IAM policies. User-created entry groups can't contain the `@` symbol, it is reserved for automatically created groups. Entry groups, like entries, can be searched. A maximum of 10,000 entry groups may be created per organization across all locations. You must enable the Data Catalog API in the project identified by the `parent` parameter. For more information, see [Data Catalog resource project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).", - "canonical": true, - "file": "data_catalog.create_entry_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateEntryGroup", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.CreateEntryGroup", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "entry_group_id", - "type": "TYPE_STRING" - }, - { - "name": "entry_group", - "type": ".google.cloud.datacatalog.v1.EntryGroup" - } - ], - "resultType": ".google.cloud.datacatalog.v1.EntryGroup", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1.DataCatalogClient" - }, - "method": { - "shortName": "CreateEntryGroup", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.CreateEntryGroup", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1_generated_DataCatalog_GetEntryGroup_async", - "title": "DataCatalog getEntryGroup Sample", - "origin": "API_DEFINITION", - "description": " Gets an entry group.", - "canonical": true, - "file": "data_catalog.get_entry_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEntryGroup", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.GetEntryGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.datacatalog.v1.EntryGroup", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1.DataCatalogClient" - }, - "method": { - "shortName": "GetEntryGroup", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.GetEntryGroup", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1_generated_DataCatalog_UpdateEntryGroup_async", - "title": "DataCatalog updateEntryGroup Sample", - "origin": "API_DEFINITION", - "description": " Updates an entry group. You must enable the Data Catalog API in the project identified by the `entry_group.name` parameter. For more information, see [Data Catalog resource project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).", - "canonical": true, - "file": "data_catalog.update_entry_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateEntryGroup", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.UpdateEntryGroup", - "async": true, - "parameters": [ - { - "name": "entry_group", - "type": ".google.cloud.datacatalog.v1.EntryGroup" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.datacatalog.v1.EntryGroup", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1.DataCatalogClient" - }, - "method": { - "shortName": "UpdateEntryGroup", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.UpdateEntryGroup", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1_generated_DataCatalog_DeleteEntryGroup_async", - "title": "DataCatalog deleteEntryGroup Sample", - "origin": "API_DEFINITION", - "description": " Deletes an entry group. You must enable the Data Catalog API in the project identified by the `name` parameter. For more information, see [Data Catalog resource project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).", - "canonical": true, - "file": "data_catalog.delete_entry_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteEntryGroup", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.DeleteEntryGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1.DataCatalogClient" - }, - "method": { - "shortName": "DeleteEntryGroup", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.DeleteEntryGroup", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1_generated_DataCatalog_ListEntryGroups_async", - "title": "DataCatalog listEntryGroups Sample", - "origin": "API_DEFINITION", - "description": " Lists entry groups.", - "canonical": true, - "file": "data_catalog.list_entry_groups.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEntryGroups", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.ListEntryGroups", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datacatalog.v1.ListEntryGroupsResponse", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1.DataCatalogClient" - }, - "method": { - "shortName": "ListEntryGroups", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.ListEntryGroups", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1_generated_DataCatalog_CreateEntry_async", - "title": "DataCatalog createEntry Sample", - "origin": "API_DEFINITION", - "description": " Creates an entry. You can create entries only with 'FILESET', 'CLUSTER', 'DATA_STREAM', or custom types. Data Catalog automatically creates entries with other types during metadata ingestion from integrated systems. You must enable the Data Catalog API in the project identified by the `parent` parameter. For more information, see [Data Catalog resource project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). An entry group can have a maximum of 100,000 entries.", - "canonical": true, - "file": "data_catalog.create_entry.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateEntry", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.CreateEntry", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "entry_id", - "type": "TYPE_STRING" - }, - { - "name": "entry", - "type": ".google.cloud.datacatalog.v1.Entry" - } - ], - "resultType": ".google.cloud.datacatalog.v1.Entry", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1.DataCatalogClient" - }, - "method": { - "shortName": "CreateEntry", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.CreateEntry", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1_generated_DataCatalog_UpdateEntry_async", - "title": "DataCatalog updateEntry Sample", - "origin": "API_DEFINITION", - "description": " Updates an existing entry. You must enable the Data Catalog API in the project identified by the `entry.name` parameter. For more information, see [Data Catalog resource project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).", - "canonical": true, - "file": "data_catalog.update_entry.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateEntry", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.UpdateEntry", - "async": true, - "parameters": [ - { - "name": "entry", - "type": ".google.cloud.datacatalog.v1.Entry" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.datacatalog.v1.Entry", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1.DataCatalogClient" - }, - "method": { - "shortName": "UpdateEntry", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.UpdateEntry", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1_generated_DataCatalog_DeleteEntry_async", - "title": "DataCatalog deleteEntry Sample", - "origin": "API_DEFINITION", - "description": " Deletes an existing entry. You can delete only the entries created by the [CreateEntry][google.cloud.datacatalog.v1.DataCatalog.CreateEntry] method. You must enable the Data Catalog API in the project identified by the `name` parameter. For more information, see [Data Catalog resource project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).", - "canonical": true, - "file": "data_catalog.delete_entry.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteEntry", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.DeleteEntry", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1.DataCatalogClient" - }, - "method": { - "shortName": "DeleteEntry", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.DeleteEntry", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1_generated_DataCatalog_GetEntry_async", - "title": "DataCatalog getEntry Sample", - "origin": "API_DEFINITION", - "description": " Gets an entry.", - "canonical": true, - "file": "data_catalog.get_entry.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEntry", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.GetEntry", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datacatalog.v1.Entry", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1.DataCatalogClient" - }, - "method": { - "shortName": "GetEntry", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.GetEntry", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1_generated_DataCatalog_LookupEntry_async", - "title": "DataCatalog lookupEntry Sample", - "origin": "API_DEFINITION", - "description": " Gets an entry by its target resource name. The resource name comes from the source Google Cloud Platform service.", - "canonical": true, - "file": "data_catalog.lookup_entry.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 95, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "LookupEntry", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.LookupEntry", - "async": true, - "parameters": [ - { - "name": "linked_resource", - "type": "TYPE_STRING" - }, - { - "name": "sql_resource", - "type": "TYPE_STRING" - }, - { - "name": "fully_qualified_name", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "location", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datacatalog.v1.Entry", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1.DataCatalogClient" - }, - "method": { - "shortName": "LookupEntry", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.LookupEntry", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1_generated_DataCatalog_ListEntries_async", - "title": "DataCatalog listEntries Sample", - "origin": "API_DEFINITION", - "description": " Lists entries. Note: Currently, this method can list only custom entries. To get a list of both custom and automatically created entries, use [SearchCatalog][google.cloud.datacatalog.v1.DataCatalog.SearchCatalog].", - "canonical": true, - "file": "data_catalog.list_entries.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEntries", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.ListEntries", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.datacatalog.v1.ListEntriesResponse", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1.DataCatalogClient" - }, - "method": { - "shortName": "ListEntries", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.ListEntries", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1_generated_DataCatalog_ModifyEntryOverview_async", - "title": "DataCatalog modifyEntryOverview Sample", - "origin": "API_DEFINITION", - "description": " Modifies entry overview, part of the business context of an [Entry][google.cloud.datacatalog.v1.Entry]. To call this method, you must have the `datacatalog.entries.updateOverview` IAM permission on the corresponding project.", - "canonical": true, - "file": "data_catalog.modify_entry_overview.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ModifyEntryOverview", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.ModifyEntryOverview", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "entry_overview", - "type": ".google.cloud.datacatalog.v1.EntryOverview" - } - ], - "resultType": ".google.cloud.datacatalog.v1.EntryOverview", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1.DataCatalogClient" - }, - "method": { - "shortName": "ModifyEntryOverview", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.ModifyEntryOverview", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1_generated_DataCatalog_ModifyEntryContacts_async", - "title": "DataCatalog modifyEntryContacts Sample", - "origin": "API_DEFINITION", - "description": " Modifies contacts, part of the business context of an [Entry][google.cloud.datacatalog.v1.Entry]. To call this method, you must have the `datacatalog.entries.updateContacts` IAM permission on the corresponding project.", - "canonical": true, - "file": "data_catalog.modify_entry_contacts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ModifyEntryContacts", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.ModifyEntryContacts", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "contacts", - "type": ".google.cloud.datacatalog.v1.Contacts" - } - ], - "resultType": ".google.cloud.datacatalog.v1.Contacts", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1.DataCatalogClient" - }, - "method": { - "shortName": "ModifyEntryContacts", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.ModifyEntryContacts", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1_generated_DataCatalog_CreateTagTemplate_async", - "title": "DataCatalog createTagTemplate Sample", - "origin": "API_DEFINITION", - "description": " Creates a tag template. You must enable the Data Catalog API in the project identified by the `parent` parameter. For more information, see [Data Catalog resource project] (https://cloud.google.com/data-catalog/docs/concepts/resource-project).", - "canonical": true, - "file": "data_catalog.create_tag_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTagTemplate", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.CreateTagTemplate", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "tag_template_id", - "type": "TYPE_STRING" - }, - { - "name": "tag_template", - "type": ".google.cloud.datacatalog.v1.TagTemplate" - } - ], - "resultType": ".google.cloud.datacatalog.v1.TagTemplate", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1.DataCatalogClient" - }, - "method": { - "shortName": "CreateTagTemplate", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.CreateTagTemplate", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1_generated_DataCatalog_GetTagTemplate_async", - "title": "DataCatalog getTagTemplate Sample", - "origin": "API_DEFINITION", - "description": " Gets a tag template.", - "canonical": true, - "file": "data_catalog.get_tag_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTagTemplate", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.GetTagTemplate", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datacatalog.v1.TagTemplate", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1.DataCatalogClient" - }, - "method": { - "shortName": "GetTagTemplate", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.GetTagTemplate", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1_generated_DataCatalog_UpdateTagTemplate_async", - "title": "DataCatalog updateTagTemplate Sample", - "origin": "API_DEFINITION", - "description": " Updates a tag template. You can't update template fields with this method. These fields are separate resources with their own create, update, and delete methods. You must enable the Data Catalog API in the project identified by the `tag_template.name` parameter. For more information, see [Data Catalog resource project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).", - "canonical": true, - "file": "data_catalog.update_tag_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTagTemplate", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.UpdateTagTemplate", - "async": true, - "parameters": [ - { - "name": "tag_template", - "type": ".google.cloud.datacatalog.v1.TagTemplate" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.datacatalog.v1.TagTemplate", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1.DataCatalogClient" - }, - "method": { - "shortName": "UpdateTagTemplate", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.UpdateTagTemplate", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1_generated_DataCatalog_DeleteTagTemplate_async", - "title": "DataCatalog deleteTagTemplate Sample", - "origin": "API_DEFINITION", - "description": " Deletes a tag template and all tags that use it. You must enable the Data Catalog API in the project identified by the `name` parameter. For more information, see [Data Catalog resource project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).", - "canonical": true, - "file": "data_catalog.delete_tag_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTagTemplate", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.DeleteTagTemplate", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1.DataCatalogClient" - }, - "method": { - "shortName": "DeleteTagTemplate", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.DeleteTagTemplate", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1_generated_DataCatalog_CreateTagTemplateField_async", - "title": "DataCatalog createTagTemplateField Sample", - "origin": "API_DEFINITION", - "description": " Creates a field in a tag template. You must enable the Data Catalog API in the project identified by the `parent` parameter. For more information, see [Data Catalog resource project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).", - "canonical": true, - "file": "data_catalog.create_tag_template_field.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTagTemplateField", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.CreateTagTemplateField", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "tag_template_field_id", - "type": "TYPE_STRING" - }, - { - "name": "tag_template_field", - "type": ".google.cloud.datacatalog.v1.TagTemplateField" - } - ], - "resultType": ".google.cloud.datacatalog.v1.TagTemplateField", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1.DataCatalogClient" - }, - "method": { - "shortName": "CreateTagTemplateField", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.CreateTagTemplateField", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1_generated_DataCatalog_UpdateTagTemplateField_async", - "title": "DataCatalog updateTagTemplateField Sample", - "origin": "API_DEFINITION", - "description": " Updates a field in a tag template. You can't update the field type with this method. You must enable the Data Catalog API in the project identified by the `name` parameter. For more information, see [Data Catalog resource project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).", - "canonical": true, - "file": "data_catalog.update_tag_template_field.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTagTemplateField", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.UpdateTagTemplateField", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "tag_template_field", - "type": ".google.cloud.datacatalog.v1.TagTemplateField" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.datacatalog.v1.TagTemplateField", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1.DataCatalogClient" - }, - "method": { - "shortName": "UpdateTagTemplateField", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.UpdateTagTemplateField", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1_generated_DataCatalog_RenameTagTemplateField_async", - "title": "DataCatalog renameTagTemplateField Sample", - "origin": "API_DEFINITION", - "description": " Renames a field in a tag template. You must enable the Data Catalog API in the project identified by the `name` parameter. For more information, see [Data Catalog resource project] (https://cloud.google.com/data-catalog/docs/concepts/resource-project).", - "canonical": true, - "file": "data_catalog.rename_tag_template_field.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RenameTagTemplateField", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.RenameTagTemplateField", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "new_tag_template_field_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datacatalog.v1.TagTemplateField", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1.DataCatalogClient" - }, - "method": { - "shortName": "RenameTagTemplateField", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.RenameTagTemplateField", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1_generated_DataCatalog_RenameTagTemplateFieldEnumValue_async", - "title": "DataCatalog renameTagTemplateFieldEnumValue Sample", - "origin": "API_DEFINITION", - "description": " Renames an enum value in a tag template. Within a single enum field, enum values must be unique.", - "canonical": true, - "file": "data_catalog.rename_tag_template_field_enum_value.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RenameTagTemplateFieldEnumValue", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.RenameTagTemplateFieldEnumValue", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "new_enum_value_display_name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datacatalog.v1.TagTemplateField", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1.DataCatalogClient" - }, - "method": { - "shortName": "RenameTagTemplateFieldEnumValue", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.RenameTagTemplateFieldEnumValue", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1_generated_DataCatalog_DeleteTagTemplateField_async", - "title": "DataCatalog deleteTagTemplateField Sample", - "origin": "API_DEFINITION", - "description": " Deletes a field in a tag template and all uses of this field from the tags based on this template. You must enable the Data Catalog API in the project identified by the `name` parameter. For more information, see [Data Catalog resource project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).", - "canonical": true, - "file": "data_catalog.delete_tag_template_field.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTagTemplateField", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.DeleteTagTemplateField", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1.DataCatalogClient" - }, - "method": { - "shortName": "DeleteTagTemplateField", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.DeleteTagTemplateField", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1_generated_DataCatalog_CreateTag_async", - "title": "DataCatalog createTag Sample", - "origin": "API_DEFINITION", - "description": " Creates a tag and assigns it to: * An [Entry][google.cloud.datacatalog.v1.Entry] if the method name is `projects.locations.entryGroups.entries.tags.create`. * Or [EntryGroup][google.cloud.datacatalog.v1.EntryGroup]if the method name is `projects.locations.entryGroups.tags.create`. Note: The project identified by the `parent` parameter for the [tag] (https://cloud.google.com/data-catalog/docs/reference/rest/v1/projects.locations.entryGroups.entries.tags/create#path-parameters) and the [tag template] (https://cloud.google.com/data-catalog/docs/reference/rest/v1/projects.locations.tagTemplates/create#path-parameters) used to create the tag must be in the same organization.", - "canonical": true, - "file": "data_catalog.create_tag.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTag", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.CreateTag", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "tag", - "type": ".google.cloud.datacatalog.v1.Tag" - } - ], - "resultType": ".google.cloud.datacatalog.v1.Tag", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1.DataCatalogClient" - }, - "method": { - "shortName": "CreateTag", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.CreateTag", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1_generated_DataCatalog_UpdateTag_async", - "title": "DataCatalog updateTag Sample", - "origin": "API_DEFINITION", - "description": " Updates an existing tag.", - "canonical": true, - "file": "data_catalog.update_tag.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTag", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.UpdateTag", - "async": true, - "parameters": [ - { - "name": "tag", - "type": ".google.cloud.datacatalog.v1.Tag" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.datacatalog.v1.Tag", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1.DataCatalogClient" - }, - "method": { - "shortName": "UpdateTag", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.UpdateTag", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1_generated_DataCatalog_DeleteTag_async", - "title": "DataCatalog deleteTag Sample", - "origin": "API_DEFINITION", - "description": " Deletes a tag.", - "canonical": true, - "file": "data_catalog.delete_tag.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTag", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.DeleteTag", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1.DataCatalogClient" - }, - "method": { - "shortName": "DeleteTag", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.DeleteTag", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1_generated_DataCatalog_ListTags_async", - "title": "DataCatalog listTags Sample", - "origin": "API_DEFINITION", - "description": " Lists tags assigned to an [Entry][google.cloud.datacatalog.v1.Entry]. The [columns][google.cloud.datacatalog.v1.Tag.column] in the response are lowercased.", - "canonical": true, - "file": "data_catalog.list_tags.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTags", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.ListTags", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datacatalog.v1.ListTagsResponse", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1.DataCatalogClient" - }, - "method": { - "shortName": "ListTags", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.ListTags", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1_generated_DataCatalog_ReconcileTags_async", - "title": "DataCatalog reconcileTags Sample", - "origin": "API_DEFINITION", - "description": " `ReconcileTags` creates or updates a list of tags on the entry. If the [ReconcileTagsRequest.force_delete_missing][google.cloud.datacatalog.v1.ReconcileTagsRequest.force_delete_missing] parameter is set, the operation deletes tags not included in the input tag list. `ReconcileTags` returns a [long-running operation] [google.longrunning.Operation] resource that can be queried with [Operations.GetOperation][google.longrunning.Operations.GetOperation] to return [ReconcileTagsMetadata] [google.cloud.datacatalog.v1.ReconcileTagsMetadata] and a [ReconcileTagsResponse] [google.cloud.datacatalog.v1.ReconcileTagsResponse] message.", - "canonical": true, - "file": "data_catalog.reconcile_tags.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReconcileTags", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.ReconcileTags", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "tag_template", - "type": "TYPE_STRING" - }, - { - "name": "force_delete_missing", - "type": "TYPE_BOOL" - }, - { - "name": "tags", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1.DataCatalogClient" - }, - "method": { - "shortName": "ReconcileTags", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.ReconcileTags", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1_generated_DataCatalog_StarEntry_async", - "title": "DataCatalog starEntry Sample", - "origin": "API_DEFINITION", - "description": " Marks an [Entry][google.cloud.datacatalog.v1.Entry] as starred by the current user. Starring information is private to each user.", - "canonical": true, - "file": "data_catalog.star_entry.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StarEntry", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.StarEntry", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datacatalog.v1.StarEntryResponse", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1.DataCatalogClient" - }, - "method": { - "shortName": "StarEntry", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.StarEntry", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1_generated_DataCatalog_UnstarEntry_async", - "title": "DataCatalog unstarEntry Sample", - "origin": "API_DEFINITION", - "description": " Marks an [Entry][google.cloud.datacatalog.v1.Entry] as NOT starred by the current user. Starring information is private to each user.", - "canonical": true, - "file": "data_catalog.unstar_entry.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UnstarEntry", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.UnstarEntry", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datacatalog.v1.UnstarEntryResponse", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1.DataCatalogClient" - }, - "method": { - "shortName": "UnstarEntry", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.UnstarEntry", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1_generated_DataCatalog_SetIamPolicy_async", - "title": "DataCatalog setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets an access control policy for a resource. Replaces any existing policy. Supported resources are: - Tag templates - Entry groups Note: This method sets policies only within Data Catalog and can't be used to manage policies in BigQuery, Pub/Sub, Dataproc Metastore, and any external Google Cloud Platform resources synced with the Data Catalog. To call this method, you must have the following Google IAM permissions: - `datacatalog.tagTemplates.setIamPolicy` to set policies on tag templates. - `datacatalog.entryGroups.setIamPolicy` to set policies on entry groups.", - "canonical": true, - "file": "data_catalog.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.iam.v1.Policy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1.DataCatalogClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.SetIamPolicy", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1_generated_DataCatalog_GetIamPolicy_async", - "title": "DataCatalog getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. May return: * A`NOT_FOUND` error if the resource doesn't exist or you don't have the permission to view it. * An empty policy if the resource exists but doesn't have a set policy. Supported resources are: - Tag templates - Entry groups Note: This method doesn't get policies from Google Cloud Platform resources ingested into Data Catalog. To call this method, you must have the following Google IAM permissions: - `datacatalog.tagTemplates.getIamPolicy` to get policies on tag templates. - `datacatalog.entryGroups.getIamPolicy` to get policies on entry groups.", - "canonical": true, - "file": "data_catalog.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": ".google.iam.v1.GetPolicyOptions" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1.DataCatalogClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.GetIamPolicy", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1_generated_DataCatalog_TestIamPermissions_async", - "title": "DataCatalog testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Gets your permissions on a resource. Returns an empty set of permissions if the resource doesn't exist. Supported resources are: - Tag templates - Entry groups Note: This method gets policies only within Data Catalog and can't be used to get policies from BigQuery, Pub/Sub, Dataproc Metastore, and any external Google Cloud Platform resources ingested into Data Catalog. No Google IAM permissions are required to call this method.", - "canonical": true, - "file": "data_catalog.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "permissions", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.iam.v1.TestIamPermissionsResponse", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1.DataCatalogClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.TestIamPermissions", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1_generated_DataCatalog_ImportEntries_async", - "title": "DataCatalog importEntries Sample", - "origin": "API_DEFINITION", - "description": " Imports entries from a source, such as data previously dumped into a Cloud Storage bucket, into Data Catalog. Import of entries is a sync operation that reconciles the state of the third-party system with the Data Catalog. `ImportEntries` accepts source data snapshots of a third-party system. Snapshot should be delivered as a .wire or base65-encoded .txt file containing a sequence of Protocol Buffer messages of [DumpItem][google.cloud.datacatalog.v1.DumpItem] type. `ImportEntries` returns a [long-running operation] [google.longrunning.Operation] resource that can be queried with [Operations.GetOperation][google.longrunning.Operations.GetOperation] to return [ImportEntriesMetadata][google.cloud.datacatalog.v1.ImportEntriesMetadata] and an [ImportEntriesResponse][google.cloud.datacatalog.v1.ImportEntriesResponse] message.", - "canonical": true, - "file": "data_catalog.import_entries.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportEntries", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.ImportEntries", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "gcs_bucket_path", - "type": "TYPE_STRING" - }, - { - "name": "job_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1.DataCatalogClient" - }, - "method": { - "shortName": "ImportEntries", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.ImportEntries", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1_generated_DataCatalog_SetConfig_async", - "title": "DataCatalog setConfig Sample", - "origin": "API_DEFINITION", - "description": " Sets the configuration related to the migration to Dataplex for an organization or project.", - "canonical": true, - "file": "data_catalog.set_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetConfig", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.SetConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "tag_template_migration", - "type": ".google.cloud.datacatalog.v1.TagTemplateMigration" - }, - { - "name": "catalog_ui_experience", - "type": ".google.cloud.datacatalog.v1.CatalogUIExperience" - } - ], - "resultType": ".google.cloud.datacatalog.v1.MigrationConfig", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1.DataCatalogClient" - }, - "method": { - "shortName": "SetConfig", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.SetConfig", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1_generated_DataCatalog_RetrieveConfig_async", - "title": "DataCatalog retrieveConfig Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the configuration related to the migration from Data Catalog to Dataplex for a specific organization, including all the projects under it which have a separate configuration set.", - "canonical": true, - "file": "data_catalog.retrieve_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RetrieveConfig", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.RetrieveConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datacatalog.v1.OrganizationConfig", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1.DataCatalogClient" - }, - "method": { - "shortName": "RetrieveConfig", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.RetrieveConfig", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1_generated_DataCatalog_RetrieveEffectiveConfig_async", - "title": "DataCatalog retrieveEffectiveConfig Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the effective configuration related to the migration from Data Catalog to Dataplex for a specific organization or project. If there is no specific configuration set for the resource, the setting is checked hierarchicahlly through the ancestors of the resource, starting from the resource itself.", - "canonical": true, - "file": "data_catalog.retrieve_effective_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RetrieveEffectiveConfig", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.RetrieveEffectiveConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datacatalog.v1.MigrationConfig", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1.DataCatalogClient" - }, - "method": { - "shortName": "RetrieveEffectiveConfig", - "fullName": "google.cloud.datacatalog.v1.DataCatalog.RetrieveEffectiveConfig", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1_generated_PolicyTagManager_CreateTaxonomy_async", - "title": "DataCatalog createTaxonomy Sample", - "origin": "API_DEFINITION", - "description": " Creates a taxonomy in a specified project. The taxonomy is initially empty, that is, it doesn't contain policy tags.", - "canonical": true, - "file": "policy_tag_manager.create_taxonomy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTaxonomy", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManager.CreateTaxonomy", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "taxonomy", - "type": ".google.cloud.datacatalog.v1.Taxonomy" - } - ], - "resultType": ".google.cloud.datacatalog.v1.Taxonomy", - "client": { - "shortName": "PolicyTagManagerClient", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManagerClient" - }, - "method": { - "shortName": "CreateTaxonomy", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManager.CreateTaxonomy", - "service": { - "shortName": "PolicyTagManager", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManager" - } - } - } - }, - { - "regionTag": "datacatalog_v1_generated_PolicyTagManager_DeleteTaxonomy_async", - "title": "DataCatalog deleteTaxonomy Sample", - "origin": "API_DEFINITION", - "description": " Deletes a taxonomy, including all policy tags in this taxonomy, their associated policies, and the policy tags references from BigQuery columns.", - "canonical": true, - "file": "policy_tag_manager.delete_taxonomy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTaxonomy", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManager.DeleteTaxonomy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "PolicyTagManagerClient", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManagerClient" - }, - "method": { - "shortName": "DeleteTaxonomy", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManager.DeleteTaxonomy", - "service": { - "shortName": "PolicyTagManager", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManager" - } - } - } - }, - { - "regionTag": "datacatalog_v1_generated_PolicyTagManager_UpdateTaxonomy_async", - "title": "DataCatalog updateTaxonomy Sample", - "origin": "API_DEFINITION", - "description": " Updates a taxonomy, including its display name, description, and activated policy types.", - "canonical": true, - "file": "policy_tag_manager.update_taxonomy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTaxonomy", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManager.UpdateTaxonomy", - "async": true, - "parameters": [ - { - "name": "taxonomy", - "type": ".google.cloud.datacatalog.v1.Taxonomy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.datacatalog.v1.Taxonomy", - "client": { - "shortName": "PolicyTagManagerClient", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManagerClient" - }, - "method": { - "shortName": "UpdateTaxonomy", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManager.UpdateTaxonomy", - "service": { - "shortName": "PolicyTagManager", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManager" - } - } - } - }, - { - "regionTag": "datacatalog_v1_generated_PolicyTagManager_ListTaxonomies_async", - "title": "DataCatalog listTaxonomies Sample", - "origin": "API_DEFINITION", - "description": " Lists all taxonomies in a project in a particular location that you have a permission to view.", - "canonical": true, - "file": "policy_tag_manager.list_taxonomies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTaxonomies", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManager.ListTaxonomies", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datacatalog.v1.ListTaxonomiesResponse", - "client": { - "shortName": "PolicyTagManagerClient", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManagerClient" - }, - "method": { - "shortName": "ListTaxonomies", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManager.ListTaxonomies", - "service": { - "shortName": "PolicyTagManager", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManager" - } - } - } - }, - { - "regionTag": "datacatalog_v1_generated_PolicyTagManager_GetTaxonomy_async", - "title": "DataCatalog getTaxonomy Sample", - "origin": "API_DEFINITION", - "description": " Gets a taxonomy.", - "canonical": true, - "file": "policy_tag_manager.get_taxonomy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTaxonomy", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManager.GetTaxonomy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datacatalog.v1.Taxonomy", - "client": { - "shortName": "PolicyTagManagerClient", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManagerClient" - }, - "method": { - "shortName": "GetTaxonomy", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManager.GetTaxonomy", - "service": { - "shortName": "PolicyTagManager", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManager" - } - } - } - }, - { - "regionTag": "datacatalog_v1_generated_PolicyTagManager_CreatePolicyTag_async", - "title": "DataCatalog createPolicyTag Sample", - "origin": "API_DEFINITION", - "description": " Creates a policy tag in a taxonomy.", - "canonical": true, - "file": "policy_tag_manager.create_policy_tag.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreatePolicyTag", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManager.CreatePolicyTag", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "policy_tag", - "type": ".google.cloud.datacatalog.v1.PolicyTag" - } - ], - "resultType": ".google.cloud.datacatalog.v1.PolicyTag", - "client": { - "shortName": "PolicyTagManagerClient", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManagerClient" - }, - "method": { - "shortName": "CreatePolicyTag", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManager.CreatePolicyTag", - "service": { - "shortName": "PolicyTagManager", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManager" - } - } - } - }, - { - "regionTag": "datacatalog_v1_generated_PolicyTagManager_DeletePolicyTag_async", - "title": "DataCatalog deletePolicyTag Sample", - "origin": "API_DEFINITION", - "description": " Deletes a policy tag together with the following: * All of its descendant policy tags, if any * Policies associated with the policy tag and its descendants * References from BigQuery table schema of the policy tag and its descendants", - "canonical": true, - "file": "policy_tag_manager.delete_policy_tag.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePolicyTag", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManager.DeletePolicyTag", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "PolicyTagManagerClient", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManagerClient" - }, - "method": { - "shortName": "DeletePolicyTag", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManager.DeletePolicyTag", - "service": { - "shortName": "PolicyTagManager", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManager" - } - } - } - }, - { - "regionTag": "datacatalog_v1_generated_PolicyTagManager_UpdatePolicyTag_async", - "title": "DataCatalog updatePolicyTag Sample", - "origin": "API_DEFINITION", - "description": " Updates a policy tag, including its display name, description, and parent policy tag.", - "canonical": true, - "file": "policy_tag_manager.update_policy_tag.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdatePolicyTag", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManager.UpdatePolicyTag", - "async": true, - "parameters": [ - { - "name": "policy_tag", - "type": ".google.cloud.datacatalog.v1.PolicyTag" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.datacatalog.v1.PolicyTag", - "client": { - "shortName": "PolicyTagManagerClient", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManagerClient" - }, - "method": { - "shortName": "UpdatePolicyTag", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManager.UpdatePolicyTag", - "service": { - "shortName": "PolicyTagManager", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManager" - } - } - } - }, - { - "regionTag": "datacatalog_v1_generated_PolicyTagManager_ListPolicyTags_async", - "title": "DataCatalog listPolicyTags Sample", - "origin": "API_DEFINITION", - "description": " Lists all policy tags in a taxonomy.", - "canonical": true, - "file": "policy_tag_manager.list_policy_tags.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPolicyTags", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManager.ListPolicyTags", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datacatalog.v1.ListPolicyTagsResponse", - "client": { - "shortName": "PolicyTagManagerClient", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManagerClient" - }, - "method": { - "shortName": "ListPolicyTags", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManager.ListPolicyTags", - "service": { - "shortName": "PolicyTagManager", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManager" - } - } - } - }, - { - "regionTag": "datacatalog_v1_generated_PolicyTagManager_GetPolicyTag_async", - "title": "DataCatalog getPolicyTag Sample", - "origin": "API_DEFINITION", - "description": " Gets a policy tag.", - "canonical": true, - "file": "policy_tag_manager.get_policy_tag.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPolicyTag", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManager.GetPolicyTag", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datacatalog.v1.PolicyTag", - "client": { - "shortName": "PolicyTagManagerClient", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManagerClient" - }, - "method": { - "shortName": "GetPolicyTag", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManager.GetPolicyTag", - "service": { - "shortName": "PolicyTagManager", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManager" - } - } - } - }, - { - "regionTag": "datacatalog_v1_generated_PolicyTagManager_GetIamPolicy_async", - "title": "DataCatalog getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the IAM policy for a policy tag or a taxonomy.", - "canonical": true, - "file": "policy_tag_manager.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManager.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": ".google.iam.v1.GetPolicyOptions" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "PolicyTagManagerClient", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManagerClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManager.GetIamPolicy", - "service": { - "shortName": "PolicyTagManager", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManager" - } - } - } - }, - { - "regionTag": "datacatalog_v1_generated_PolicyTagManager_SetIamPolicy_async", - "title": "DataCatalog setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the IAM policy for a policy tag or a taxonomy.", - "canonical": true, - "file": "policy_tag_manager.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManager.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.iam.v1.Policy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "PolicyTagManagerClient", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManagerClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManager.SetIamPolicy", - "service": { - "shortName": "PolicyTagManager", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManager" - } - } - } - }, - { - "regionTag": "datacatalog_v1_generated_PolicyTagManager_TestIamPermissions_async", - "title": "DataCatalog testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns your permissions on a specified policy tag or taxonomy.", - "canonical": true, - "file": "policy_tag_manager.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManager.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "permissions", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.iam.v1.TestIamPermissionsResponse", - "client": { - "shortName": "PolicyTagManagerClient", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManagerClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManager.TestIamPermissions", - "service": { - "shortName": "PolicyTagManager", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManager" - } - } - } - }, - { - "regionTag": "datacatalog_v1_generated_PolicyTagManagerSerialization_ReplaceTaxonomy_async", - "title": "DataCatalog replaceTaxonomy Sample", - "origin": "API_DEFINITION", - "description": " Replaces (updates) a taxonomy and all its policy tags. The taxonomy and its entire hierarchy of policy tags must be represented literally by `SerializedTaxonomy` and the nested `SerializedPolicyTag` messages. This operation automatically does the following: - Deletes the existing policy tags that are missing from the `SerializedPolicyTag`. - Creates policy tags that don't have resource names. They are considered new. - Updates policy tags with valid resources names accordingly.", - "canonical": true, - "file": "policy_tag_manager_serialization.replace_taxonomy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReplaceTaxonomy", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManagerSerialization.ReplaceTaxonomy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "serialized_taxonomy", - "type": ".google.cloud.datacatalog.v1.SerializedTaxonomy" - } - ], - "resultType": ".google.cloud.datacatalog.v1.Taxonomy", - "client": { - "shortName": "PolicyTagManagerSerializationClient", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManagerSerializationClient" - }, - "method": { - "shortName": "ReplaceTaxonomy", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManagerSerialization.ReplaceTaxonomy", - "service": { - "shortName": "PolicyTagManagerSerialization", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManagerSerialization" - } - } - } - }, - { - "regionTag": "datacatalog_v1_generated_PolicyTagManagerSerialization_ImportTaxonomies_async", - "title": "DataCatalog importTaxonomies Sample", - "origin": "API_DEFINITION", - "description": " Creates new taxonomies (including their policy tags) in a given project by importing from inlined or cross-regional sources. For a cross-regional source, new taxonomies are created by copying from a source in another region. For an inlined source, taxonomies and policy tags are created in bulk using nested protocol buffer structures.", - "canonical": true, - "file": "policy_tag_manager_serialization.import_taxonomies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportTaxonomies", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManagerSerialization.ImportTaxonomies", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "inline_source", - "type": ".google.cloud.datacatalog.v1.InlineSource" - }, - { - "name": "cross_regional_source", - "type": ".google.cloud.datacatalog.v1.CrossRegionalSource" - } - ], - "resultType": ".google.cloud.datacatalog.v1.ImportTaxonomiesResponse", - "client": { - "shortName": "PolicyTagManagerSerializationClient", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManagerSerializationClient" - }, - "method": { - "shortName": "ImportTaxonomies", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManagerSerialization.ImportTaxonomies", - "service": { - "shortName": "PolicyTagManagerSerialization", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManagerSerialization" - } - } - } - }, - { - "regionTag": "datacatalog_v1_generated_PolicyTagManagerSerialization_ExportTaxonomies_async", - "title": "DataCatalog exportTaxonomies Sample", - "origin": "API_DEFINITION", - "description": " Exports taxonomies in the requested type and returns them, including their policy tags. The requested taxonomies must belong to the same project. This method generates `SerializedTaxonomy` protocol buffers with nested policy tags that can be used as input for `ImportTaxonomies` calls.", - "canonical": true, - "file": "policy_tag_manager_serialization.export_taxonomies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportTaxonomies", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManagerSerialization.ExportTaxonomies", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "taxonomies", - "type": "TYPE_STRING[]" - }, - { - "name": "serialized_taxonomies", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.datacatalog.v1.ExportTaxonomiesResponse", - "client": { - "shortName": "PolicyTagManagerSerializationClient", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManagerSerializationClient" - }, - "method": { - "shortName": "ExportTaxonomies", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManagerSerialization.ExportTaxonomies", - "service": { - "shortName": "PolicyTagManagerSerialization", - "fullName": "google.cloud.datacatalog.v1.PolicyTagManagerSerialization" - } - } - } - } - ] -} diff --git a/packages/google-cloud-datacatalog/samples/generated/v1beta1/snippet_metadata_google.cloud.datacatalog.v1beta1.json b/packages/google-cloud-datacatalog/samples/generated/v1beta1/snippet_metadata_google.cloud.datacatalog.v1beta1.json deleted file mode 100644 index 5b339ed9fcae..000000000000 --- a/packages/google-cloud-datacatalog/samples/generated/v1beta1/snippet_metadata_google.cloud.datacatalog.v1beta1.json +++ /dev/null @@ -1,1947 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-datacatalog", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.datacatalog.v1beta1", - "version": "v1beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "datacatalog_v1beta1_generated_DataCatalog_SearchCatalog_async", - "title": "DataCatalog searchCatalog Sample", - "origin": "API_DEFINITION", - "description": " Searches Data Catalog for multiple resources like entries, tags that match a query. This is a custom method (https://cloud.google.com/apis/design/custom_methods) and does not return the complete resource, only the resource identifier and high level fields. Clients can subsequently call `Get` methods. Note that Data Catalog search queries do not guarantee full recall. Query results that match your query may not be returned, even in subsequent result pages. Also note that results returned (and not returned) can vary across repeated search queries. See [Data Catalog Search Syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference) for more information.", - "canonical": true, - "file": "data_catalog.search_catalog.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 95, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchCatalog", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog.SearchCatalog", - "async": true, - "parameters": [ - { - "name": "scope", - "type": ".google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope" - }, - { - "name": "query", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datacatalog.v1beta1.SearchCatalogResponse", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalogClient" - }, - "method": { - "shortName": "SearchCatalog", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog.SearchCatalog", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1beta1_generated_DataCatalog_CreateEntryGroup_async", - "title": "DataCatalog createEntryGroup Sample", - "origin": "API_DEFINITION", - "description": " A maximum of 10,000 entry groups may be created per organization across all locations. Users should enable the Data Catalog API in the project identified by the `parent` parameter (see [Data Catalog Resource Project] (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information).", - "canonical": true, - "file": "data_catalog.create_entry_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateEntryGroup", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog.CreateEntryGroup", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "entry_group_id", - "type": "TYPE_STRING" - }, - { - "name": "entry_group", - "type": ".google.cloud.datacatalog.v1beta1.EntryGroup" - } - ], - "resultType": ".google.cloud.datacatalog.v1beta1.EntryGroup", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalogClient" - }, - "method": { - "shortName": "CreateEntryGroup", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog.CreateEntryGroup", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1beta1_generated_DataCatalog_UpdateEntryGroup_async", - "title": "DataCatalog updateEntryGroup Sample", - "origin": "API_DEFINITION", - "description": " Updates an EntryGroup. The user should enable the Data Catalog API in the project identified by the `entry_group.name` parameter (see [Data Catalog Resource Project] (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information).", - "canonical": true, - "file": "data_catalog.update_entry_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateEntryGroup", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog.UpdateEntryGroup", - "async": true, - "parameters": [ - { - "name": "entry_group", - "type": ".google.cloud.datacatalog.v1beta1.EntryGroup" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.datacatalog.v1beta1.EntryGroup", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalogClient" - }, - "method": { - "shortName": "UpdateEntryGroup", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog.UpdateEntryGroup", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1beta1_generated_DataCatalog_GetEntryGroup_async", - "title": "DataCatalog getEntryGroup Sample", - "origin": "API_DEFINITION", - "description": " Gets an EntryGroup.", - "canonical": true, - "file": "data_catalog.get_entry_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEntryGroup", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog.GetEntryGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.datacatalog.v1beta1.EntryGroup", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalogClient" - }, - "method": { - "shortName": "GetEntryGroup", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog.GetEntryGroup", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1beta1_generated_DataCatalog_DeleteEntryGroup_async", - "title": "DataCatalog deleteEntryGroup Sample", - "origin": "API_DEFINITION", - "description": " Deletes an EntryGroup. Only entry groups that do not contain entries can be deleted. Users should enable the Data Catalog API in the project identified by the `name` parameter (see [Data Catalog Resource Project] (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information).", - "canonical": true, - "file": "data_catalog.delete_entry_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteEntryGroup", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog.DeleteEntryGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalogClient" - }, - "method": { - "shortName": "DeleteEntryGroup", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog.DeleteEntryGroup", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1beta1_generated_DataCatalog_ListEntryGroups_async", - "title": "DataCatalog listEntryGroups Sample", - "origin": "API_DEFINITION", - "description": " Lists entry groups.", - "canonical": true, - "file": "data_catalog.list_entry_groups.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEntryGroups", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog.ListEntryGroups", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalogClient" - }, - "method": { - "shortName": "ListEntryGroups", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog.ListEntryGroups", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1beta1_generated_DataCatalog_CreateEntry_async", - "title": "DataCatalog createEntry Sample", - "origin": "API_DEFINITION", - "description": " Creates an entry. Only entries of 'FILESET' type or user-specified type can be created. Users should enable the Data Catalog API in the project identified by the `parent` parameter (see [Data Catalog Resource Project] (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information). A maximum of 100,000 entries may be created per entry group.", - "canonical": true, - "file": "data_catalog.create_entry.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateEntry", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog.CreateEntry", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "entry_id", - "type": "TYPE_STRING" - }, - { - "name": "entry", - "type": ".google.cloud.datacatalog.v1beta1.Entry" - } - ], - "resultType": ".google.cloud.datacatalog.v1beta1.Entry", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalogClient" - }, - "method": { - "shortName": "CreateEntry", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog.CreateEntry", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1beta1_generated_DataCatalog_UpdateEntry_async", - "title": "DataCatalog updateEntry Sample", - "origin": "API_DEFINITION", - "description": " Updates an existing entry. Users should enable the Data Catalog API in the project identified by the `entry.name` parameter (see [Data Catalog Resource Project] (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information).", - "canonical": true, - "file": "data_catalog.update_entry.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateEntry", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog.UpdateEntry", - "async": true, - "parameters": [ - { - "name": "entry", - "type": ".google.cloud.datacatalog.v1beta1.Entry" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.datacatalog.v1beta1.Entry", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalogClient" - }, - "method": { - "shortName": "UpdateEntry", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog.UpdateEntry", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1beta1_generated_DataCatalog_DeleteEntry_async", - "title": "DataCatalog deleteEntry Sample", - "origin": "API_DEFINITION", - "description": " Deletes an existing entry. Only entries created through [CreateEntry][google.cloud.datacatalog.v1beta1.DataCatalog.CreateEntry] method can be deleted. Users should enable the Data Catalog API in the project identified by the `name` parameter (see [Data Catalog Resource Project] (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information).", - "canonical": true, - "file": "data_catalog.delete_entry.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteEntry", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog.DeleteEntry", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalogClient" - }, - "method": { - "shortName": "DeleteEntry", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog.DeleteEntry", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1beta1_generated_DataCatalog_GetEntry_async", - "title": "DataCatalog getEntry Sample", - "origin": "API_DEFINITION", - "description": " Gets an entry.", - "canonical": true, - "file": "data_catalog.get_entry.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEntry", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog.GetEntry", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datacatalog.v1beta1.Entry", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalogClient" - }, - "method": { - "shortName": "GetEntry", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog.GetEntry", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1beta1_generated_DataCatalog_LookupEntry_async", - "title": "DataCatalog lookupEntry Sample", - "origin": "API_DEFINITION", - "description": " Get an entry by target resource name. This method allows clients to use the resource name from the source Google Cloud Platform service to get the Data Catalog Entry.", - "canonical": true, - "file": "data_catalog.lookup_entry.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "LookupEntry", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog.LookupEntry", - "async": true, - "parameters": [ - { - "name": "linked_resource", - "type": "TYPE_STRING" - }, - { - "name": "sql_resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datacatalog.v1beta1.Entry", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalogClient" - }, - "method": { - "shortName": "LookupEntry", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog.LookupEntry", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1beta1_generated_DataCatalog_ListEntries_async", - "title": "DataCatalog listEntries Sample", - "origin": "API_DEFINITION", - "description": " Lists entries.", - "canonical": true, - "file": "data_catalog.list_entries.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEntries", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog.ListEntries", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.datacatalog.v1beta1.ListEntriesResponse", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalogClient" - }, - "method": { - "shortName": "ListEntries", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog.ListEntries", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1beta1_generated_DataCatalog_CreateTagTemplate_async", - "title": "DataCatalog createTagTemplate Sample", - "origin": "API_DEFINITION", - "description": " Creates a tag template. The user should enable the Data Catalog API in the project identified by the `parent` parameter (see [Data Catalog Resource Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information).", - "canonical": true, - "file": "data_catalog.create_tag_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTagTemplate", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog.CreateTagTemplate", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "tag_template_id", - "type": "TYPE_STRING" - }, - { - "name": "tag_template", - "type": ".google.cloud.datacatalog.v1beta1.TagTemplate" - } - ], - "resultType": ".google.cloud.datacatalog.v1beta1.TagTemplate", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalogClient" - }, - "method": { - "shortName": "CreateTagTemplate", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog.CreateTagTemplate", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1beta1_generated_DataCatalog_GetTagTemplate_async", - "title": "DataCatalog getTagTemplate Sample", - "origin": "API_DEFINITION", - "description": " Gets a tag template.", - "canonical": true, - "file": "data_catalog.get_tag_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTagTemplate", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog.GetTagTemplate", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datacatalog.v1beta1.TagTemplate", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalogClient" - }, - "method": { - "shortName": "GetTagTemplate", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog.GetTagTemplate", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1beta1_generated_DataCatalog_UpdateTagTemplate_async", - "title": "DataCatalog updateTagTemplate Sample", - "origin": "API_DEFINITION", - "description": " Updates a tag template. This method cannot be used to update the fields of a template. The tag template fields are represented as separate resources and should be updated using their own create/update/delete methods. Users should enable the Data Catalog API in the project identified by the `tag_template.name` parameter (see [Data Catalog Resource Project] (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information).", - "canonical": true, - "file": "data_catalog.update_tag_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTagTemplate", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog.UpdateTagTemplate", - "async": true, - "parameters": [ - { - "name": "tag_template", - "type": ".google.cloud.datacatalog.v1beta1.TagTemplate" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.datacatalog.v1beta1.TagTemplate", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalogClient" - }, - "method": { - "shortName": "UpdateTagTemplate", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog.UpdateTagTemplate", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1beta1_generated_DataCatalog_DeleteTagTemplate_async", - "title": "DataCatalog deleteTagTemplate Sample", - "origin": "API_DEFINITION", - "description": " Deletes a tag template and all tags using the template. Users should enable the Data Catalog API in the project identified by the `name` parameter (see [Data Catalog Resource Project] (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information).", - "canonical": true, - "file": "data_catalog.delete_tag_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTagTemplate", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog.DeleteTagTemplate", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalogClient" - }, - "method": { - "shortName": "DeleteTagTemplate", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog.DeleteTagTemplate", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1beta1_generated_DataCatalog_CreateTagTemplateField_async", - "title": "DataCatalog createTagTemplateField Sample", - "origin": "API_DEFINITION", - "description": " Creates a field in a tag template. The user should enable the Data Catalog API in the project identified by the `parent` parameter (see [Data Catalog Resource Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information).", - "canonical": true, - "file": "data_catalog.create_tag_template_field.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTagTemplateField", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog.CreateTagTemplateField", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "tag_template_field_id", - "type": "TYPE_STRING" - }, - { - "name": "tag_template_field", - "type": ".google.cloud.datacatalog.v1beta1.TagTemplateField" - } - ], - "resultType": ".google.cloud.datacatalog.v1beta1.TagTemplateField", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalogClient" - }, - "method": { - "shortName": "CreateTagTemplateField", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog.CreateTagTemplateField", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1beta1_generated_DataCatalog_UpdateTagTemplateField_async", - "title": "DataCatalog updateTagTemplateField Sample", - "origin": "API_DEFINITION", - "description": " Updates a field in a tag template. This method cannot be used to update the field type. Users should enable the Data Catalog API in the project identified by the `name` parameter (see [Data Catalog Resource Project] (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information).", - "canonical": true, - "file": "data_catalog.update_tag_template_field.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTagTemplateField", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog.UpdateTagTemplateField", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "tag_template_field", - "type": ".google.cloud.datacatalog.v1beta1.TagTemplateField" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.datacatalog.v1beta1.TagTemplateField", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalogClient" - }, - "method": { - "shortName": "UpdateTagTemplateField", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog.UpdateTagTemplateField", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1beta1_generated_DataCatalog_RenameTagTemplateField_async", - "title": "DataCatalog renameTagTemplateField Sample", - "origin": "API_DEFINITION", - "description": " Renames a field in a tag template. The user should enable the Data Catalog API in the project identified by the `name` parameter (see [Data Catalog Resource Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information).", - "canonical": true, - "file": "data_catalog.rename_tag_template_field.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RenameTagTemplateField", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog.RenameTagTemplateField", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "new_tag_template_field_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datacatalog.v1beta1.TagTemplateField", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalogClient" - }, - "method": { - "shortName": "RenameTagTemplateField", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog.RenameTagTemplateField", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1beta1_generated_DataCatalog_RenameTagTemplateFieldEnumValue_async", - "title": "DataCatalog renameTagTemplateFieldEnumValue Sample", - "origin": "API_DEFINITION", - "description": " Renames an enum value in a tag template. The enum values have to be unique within one enum field. Thus, an enum value cannot be renamed with a name used in any other enum value within the same enum field.", - "canonical": true, - "file": "data_catalog.rename_tag_template_field_enum_value.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RenameTagTemplateFieldEnumValue", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog.RenameTagTemplateFieldEnumValue", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "new_enum_value_display_name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datacatalog.v1beta1.TagTemplateField", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalogClient" - }, - "method": { - "shortName": "RenameTagTemplateFieldEnumValue", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog.RenameTagTemplateFieldEnumValue", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1beta1_generated_DataCatalog_DeleteTagTemplateField_async", - "title": "DataCatalog deleteTagTemplateField Sample", - "origin": "API_DEFINITION", - "description": " Deletes a field in a tag template and all uses of that field. Users should enable the Data Catalog API in the project identified by the `name` parameter (see [Data Catalog Resource Project] (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information).", - "canonical": true, - "file": "data_catalog.delete_tag_template_field.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTagTemplateField", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog.DeleteTagTemplateField", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalogClient" - }, - "method": { - "shortName": "DeleteTagTemplateField", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog.DeleteTagTemplateField", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1beta1_generated_DataCatalog_CreateTag_async", - "title": "DataCatalog createTag Sample", - "origin": "API_DEFINITION", - "description": " Creates a tag on an [Entry][google.cloud.datacatalog.v1beta1.Entry]. Note: The project identified by the `parent` parameter for the [tag](https://cloud.google.com/data-catalog/docs/reference/rest/v1beta1/projects.locations.entryGroups.entries.tags/create#path-parameters) and the [tag template](https://cloud.google.com/data-catalog/docs/reference/rest/v1beta1/projects.locations.tagTemplates/create#path-parameters) used to create the tag must be from the same organization.", - "canonical": true, - "file": "data_catalog.create_tag.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTag", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog.CreateTag", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "tag", - "type": ".google.cloud.datacatalog.v1beta1.Tag" - } - ], - "resultType": ".google.cloud.datacatalog.v1beta1.Tag", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalogClient" - }, - "method": { - "shortName": "CreateTag", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog.CreateTag", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1beta1_generated_DataCatalog_UpdateTag_async", - "title": "DataCatalog updateTag Sample", - "origin": "API_DEFINITION", - "description": " Updates an existing tag.", - "canonical": true, - "file": "data_catalog.update_tag.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTag", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog.UpdateTag", - "async": true, - "parameters": [ - { - "name": "tag", - "type": ".google.cloud.datacatalog.v1beta1.Tag" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.datacatalog.v1beta1.Tag", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalogClient" - }, - "method": { - "shortName": "UpdateTag", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog.UpdateTag", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1beta1_generated_DataCatalog_DeleteTag_async", - "title": "DataCatalog deleteTag Sample", - "origin": "API_DEFINITION", - "description": " Deletes a tag.", - "canonical": true, - "file": "data_catalog.delete_tag.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTag", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog.DeleteTag", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalogClient" - }, - "method": { - "shortName": "DeleteTag", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog.DeleteTag", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1beta1_generated_DataCatalog_ListTags_async", - "title": "DataCatalog listTags Sample", - "origin": "API_DEFINITION", - "description": " Lists tags assigned to an [Entry][google.cloud.datacatalog.v1beta1.Entry]. The [columns][google.cloud.datacatalog.v1beta1.Tag.column] in the response are lowercased.", - "canonical": true, - "file": "data_catalog.list_tags.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTags", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog.ListTags", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datacatalog.v1beta1.ListTagsResponse", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalogClient" - }, - "method": { - "shortName": "ListTags", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog.ListTags", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1beta1_generated_DataCatalog_SetIamPolicy_async", - "title": "DataCatalog setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy for a resource. Replaces any existing policy. Supported resources are: - Tag templates. - Entries. - Entry groups. Note, this method cannot be used to manage policies for BigQuery, Pub/Sub and any external Google Cloud Platform resources synced to Data Catalog. Callers must have following Google IAM permission - `datacatalog.tagTemplates.setIamPolicy` to set policies on tag templates. - `datacatalog.entries.setIamPolicy` to set policies on entries. - `datacatalog.entryGroups.setIamPolicy` to set policies on entry groups.", - "canonical": true, - "file": "data_catalog.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.iam.v1.Policy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalogClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog.SetIamPolicy", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1beta1_generated_DataCatalog_GetIamPolicy_async", - "title": "DataCatalog getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. A `NOT_FOUND` error is returned if the resource does not exist. An empty policy is returned if the resource exists but does not have a policy set on it. Supported resources are: - Tag templates. - Entries. - Entry groups. Note, this method cannot be used to manage policies for BigQuery, Pub/Sub and any external Google Cloud Platform resources synced to Data Catalog. Callers must have following Google IAM permission - `datacatalog.tagTemplates.getIamPolicy` to get policies on tag templates. - `datacatalog.entries.getIamPolicy` to get policies on entries. - `datacatalog.entryGroups.getIamPolicy` to get policies on entry groups.", - "canonical": true, - "file": "data_catalog.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": ".google.iam.v1.GetPolicyOptions" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalogClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog.GetIamPolicy", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1beta1_generated_DataCatalog_TestIamPermissions_async", - "title": "DataCatalog testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns the caller's permissions on a resource. If the resource does not exist, an empty set of permissions is returned (We don't return a `NOT_FOUND` error). Supported resources are: - Tag templates. - Entries. - Entry groups. Note, this method cannot be used to manage policies for BigQuery, Pub/Sub and any external Google Cloud Platform resources synced to Data Catalog. A caller is not required to have Google IAM permission to make this request.", - "canonical": true, - "file": "data_catalog.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "permissions", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.iam.v1.TestIamPermissionsResponse", - "client": { - "shortName": "DataCatalogClient", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalogClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog.TestIamPermissions", - "service": { - "shortName": "DataCatalog", - "fullName": "google.cloud.datacatalog.v1beta1.DataCatalog" - } - } - } - }, - { - "regionTag": "datacatalog_v1beta1_generated_PolicyTagManager_CreateTaxonomy_async", - "title": "DataCatalog createTaxonomy Sample", - "origin": "API_DEFINITION", - "description": " Creates a taxonomy in the specified project.", - "canonical": true, - "file": "policy_tag_manager.create_taxonomy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTaxonomy", - "fullName": "google.cloud.datacatalog.v1beta1.PolicyTagManager.CreateTaxonomy", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "taxonomy", - "type": ".google.cloud.datacatalog.v1beta1.Taxonomy" - } - ], - "resultType": ".google.cloud.datacatalog.v1beta1.Taxonomy", - "client": { - "shortName": "PolicyTagManagerClient", - "fullName": "google.cloud.datacatalog.v1beta1.PolicyTagManagerClient" - }, - "method": { - "shortName": "CreateTaxonomy", - "fullName": "google.cloud.datacatalog.v1beta1.PolicyTagManager.CreateTaxonomy", - "service": { - "shortName": "PolicyTagManager", - "fullName": "google.cloud.datacatalog.v1beta1.PolicyTagManager" - } - } - } - }, - { - "regionTag": "datacatalog_v1beta1_generated_PolicyTagManager_DeleteTaxonomy_async", - "title": "DataCatalog deleteTaxonomy Sample", - "origin": "API_DEFINITION", - "description": " Deletes a taxonomy. This operation will also delete all policy tags in this taxonomy along with their associated policies.", - "canonical": true, - "file": "policy_tag_manager.delete_taxonomy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTaxonomy", - "fullName": "google.cloud.datacatalog.v1beta1.PolicyTagManager.DeleteTaxonomy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "PolicyTagManagerClient", - "fullName": "google.cloud.datacatalog.v1beta1.PolicyTagManagerClient" - }, - "method": { - "shortName": "DeleteTaxonomy", - "fullName": "google.cloud.datacatalog.v1beta1.PolicyTagManager.DeleteTaxonomy", - "service": { - "shortName": "PolicyTagManager", - "fullName": "google.cloud.datacatalog.v1beta1.PolicyTagManager" - } - } - } - }, - { - "regionTag": "datacatalog_v1beta1_generated_PolicyTagManager_UpdateTaxonomy_async", - "title": "DataCatalog updateTaxonomy Sample", - "origin": "API_DEFINITION", - "description": " Updates a taxonomy.", - "canonical": true, - "file": "policy_tag_manager.update_taxonomy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTaxonomy", - "fullName": "google.cloud.datacatalog.v1beta1.PolicyTagManager.UpdateTaxonomy", - "async": true, - "parameters": [ - { - "name": "taxonomy", - "type": ".google.cloud.datacatalog.v1beta1.Taxonomy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.datacatalog.v1beta1.Taxonomy", - "client": { - "shortName": "PolicyTagManagerClient", - "fullName": "google.cloud.datacatalog.v1beta1.PolicyTagManagerClient" - }, - "method": { - "shortName": "UpdateTaxonomy", - "fullName": "google.cloud.datacatalog.v1beta1.PolicyTagManager.UpdateTaxonomy", - "service": { - "shortName": "PolicyTagManager", - "fullName": "google.cloud.datacatalog.v1beta1.PolicyTagManager" - } - } - } - }, - { - "regionTag": "datacatalog_v1beta1_generated_PolicyTagManager_ListTaxonomies_async", - "title": "DataCatalog listTaxonomies Sample", - "origin": "API_DEFINITION", - "description": " Lists all taxonomies in a project in a particular location that the caller has permission to view.", - "canonical": true, - "file": "policy_tag_manager.list_taxonomies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTaxonomies", - "fullName": "google.cloud.datacatalog.v1beta1.PolicyTagManager.ListTaxonomies", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse", - "client": { - "shortName": "PolicyTagManagerClient", - "fullName": "google.cloud.datacatalog.v1beta1.PolicyTagManagerClient" - }, - "method": { - "shortName": "ListTaxonomies", - "fullName": "google.cloud.datacatalog.v1beta1.PolicyTagManager.ListTaxonomies", - "service": { - "shortName": "PolicyTagManager", - "fullName": "google.cloud.datacatalog.v1beta1.PolicyTagManager" - } - } - } - }, - { - "regionTag": "datacatalog_v1beta1_generated_PolicyTagManager_GetTaxonomy_async", - "title": "DataCatalog getTaxonomy Sample", - "origin": "API_DEFINITION", - "description": " Gets a taxonomy.", - "canonical": true, - "file": "policy_tag_manager.get_taxonomy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTaxonomy", - "fullName": "google.cloud.datacatalog.v1beta1.PolicyTagManager.GetTaxonomy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datacatalog.v1beta1.Taxonomy", - "client": { - "shortName": "PolicyTagManagerClient", - "fullName": "google.cloud.datacatalog.v1beta1.PolicyTagManagerClient" - }, - "method": { - "shortName": "GetTaxonomy", - "fullName": "google.cloud.datacatalog.v1beta1.PolicyTagManager.GetTaxonomy", - "service": { - "shortName": "PolicyTagManager", - "fullName": "google.cloud.datacatalog.v1beta1.PolicyTagManager" - } - } - } - }, - { - "regionTag": "datacatalog_v1beta1_generated_PolicyTagManager_CreatePolicyTag_async", - "title": "DataCatalog createPolicyTag Sample", - "origin": "API_DEFINITION", - "description": " Creates a policy tag in the specified taxonomy.", - "canonical": true, - "file": "policy_tag_manager.create_policy_tag.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreatePolicyTag", - "fullName": "google.cloud.datacatalog.v1beta1.PolicyTagManager.CreatePolicyTag", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "policy_tag", - "type": ".google.cloud.datacatalog.v1beta1.PolicyTag" - } - ], - "resultType": ".google.cloud.datacatalog.v1beta1.PolicyTag", - "client": { - "shortName": "PolicyTagManagerClient", - "fullName": "google.cloud.datacatalog.v1beta1.PolicyTagManagerClient" - }, - "method": { - "shortName": "CreatePolicyTag", - "fullName": "google.cloud.datacatalog.v1beta1.PolicyTagManager.CreatePolicyTag", - "service": { - "shortName": "PolicyTagManager", - "fullName": "google.cloud.datacatalog.v1beta1.PolicyTagManager" - } - } - } - }, - { - "regionTag": "datacatalog_v1beta1_generated_PolicyTagManager_DeletePolicyTag_async", - "title": "DataCatalog deletePolicyTag Sample", - "origin": "API_DEFINITION", - "description": " Deletes a policy tag. Also deletes all of its descendant policy tags.", - "canonical": true, - "file": "policy_tag_manager.delete_policy_tag.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePolicyTag", - "fullName": "google.cloud.datacatalog.v1beta1.PolicyTagManager.DeletePolicyTag", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "PolicyTagManagerClient", - "fullName": "google.cloud.datacatalog.v1beta1.PolicyTagManagerClient" - }, - "method": { - "shortName": "DeletePolicyTag", - "fullName": "google.cloud.datacatalog.v1beta1.PolicyTagManager.DeletePolicyTag", - "service": { - "shortName": "PolicyTagManager", - "fullName": "google.cloud.datacatalog.v1beta1.PolicyTagManager" - } - } - } - }, - { - "regionTag": "datacatalog_v1beta1_generated_PolicyTagManager_UpdatePolicyTag_async", - "title": "DataCatalog updatePolicyTag Sample", - "origin": "API_DEFINITION", - "description": " Updates a policy tag.", - "canonical": true, - "file": "policy_tag_manager.update_policy_tag.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdatePolicyTag", - "fullName": "google.cloud.datacatalog.v1beta1.PolicyTagManager.UpdatePolicyTag", - "async": true, - "parameters": [ - { - "name": "policy_tag", - "type": ".google.cloud.datacatalog.v1beta1.PolicyTag" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.datacatalog.v1beta1.PolicyTag", - "client": { - "shortName": "PolicyTagManagerClient", - "fullName": "google.cloud.datacatalog.v1beta1.PolicyTagManagerClient" - }, - "method": { - "shortName": "UpdatePolicyTag", - "fullName": "google.cloud.datacatalog.v1beta1.PolicyTagManager.UpdatePolicyTag", - "service": { - "shortName": "PolicyTagManager", - "fullName": "google.cloud.datacatalog.v1beta1.PolicyTagManager" - } - } - } - }, - { - "regionTag": "datacatalog_v1beta1_generated_PolicyTagManager_ListPolicyTags_async", - "title": "DataCatalog listPolicyTags Sample", - "origin": "API_DEFINITION", - "description": " Lists all policy tags in a taxonomy.", - "canonical": true, - "file": "policy_tag_manager.list_policy_tags.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPolicyTags", - "fullName": "google.cloud.datacatalog.v1beta1.PolicyTagManager.ListPolicyTags", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse", - "client": { - "shortName": "PolicyTagManagerClient", - "fullName": "google.cloud.datacatalog.v1beta1.PolicyTagManagerClient" - }, - "method": { - "shortName": "ListPolicyTags", - "fullName": "google.cloud.datacatalog.v1beta1.PolicyTagManager.ListPolicyTags", - "service": { - "shortName": "PolicyTagManager", - "fullName": "google.cloud.datacatalog.v1beta1.PolicyTagManager" - } - } - } - }, - { - "regionTag": "datacatalog_v1beta1_generated_PolicyTagManager_GetPolicyTag_async", - "title": "DataCatalog getPolicyTag Sample", - "origin": "API_DEFINITION", - "description": " Gets a policy tag.", - "canonical": true, - "file": "policy_tag_manager.get_policy_tag.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPolicyTag", - "fullName": "google.cloud.datacatalog.v1beta1.PolicyTagManager.GetPolicyTag", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datacatalog.v1beta1.PolicyTag", - "client": { - "shortName": "PolicyTagManagerClient", - "fullName": "google.cloud.datacatalog.v1beta1.PolicyTagManagerClient" - }, - "method": { - "shortName": "GetPolicyTag", - "fullName": "google.cloud.datacatalog.v1beta1.PolicyTagManager.GetPolicyTag", - "service": { - "shortName": "PolicyTagManager", - "fullName": "google.cloud.datacatalog.v1beta1.PolicyTagManager" - } - } - } - }, - { - "regionTag": "datacatalog_v1beta1_generated_PolicyTagManager_GetIamPolicy_async", - "title": "DataCatalog getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the IAM policy for a taxonomy or a policy tag.", - "canonical": true, - "file": "policy_tag_manager.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.datacatalog.v1beta1.PolicyTagManager.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": ".google.iam.v1.GetPolicyOptions" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "PolicyTagManagerClient", - "fullName": "google.cloud.datacatalog.v1beta1.PolicyTagManagerClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.datacatalog.v1beta1.PolicyTagManager.GetIamPolicy", - "service": { - "shortName": "PolicyTagManager", - "fullName": "google.cloud.datacatalog.v1beta1.PolicyTagManager" - } - } - } - }, - { - "regionTag": "datacatalog_v1beta1_generated_PolicyTagManager_SetIamPolicy_async", - "title": "DataCatalog setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the IAM policy for a taxonomy or a policy tag.", - "canonical": true, - "file": "policy_tag_manager.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.datacatalog.v1beta1.PolicyTagManager.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.iam.v1.Policy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "PolicyTagManagerClient", - "fullName": "google.cloud.datacatalog.v1beta1.PolicyTagManagerClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.datacatalog.v1beta1.PolicyTagManager.SetIamPolicy", - "service": { - "shortName": "PolicyTagManager", - "fullName": "google.cloud.datacatalog.v1beta1.PolicyTagManager" - } - } - } - }, - { - "regionTag": "datacatalog_v1beta1_generated_PolicyTagManager_TestIamPermissions_async", - "title": "DataCatalog testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns the permissions that a caller has on the specified taxonomy or policy tag.", - "canonical": true, - "file": "policy_tag_manager.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.datacatalog.v1beta1.PolicyTagManager.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "permissions", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.iam.v1.TestIamPermissionsResponse", - "client": { - "shortName": "PolicyTagManagerClient", - "fullName": "google.cloud.datacatalog.v1beta1.PolicyTagManagerClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.datacatalog.v1beta1.PolicyTagManager.TestIamPermissions", - "service": { - "shortName": "PolicyTagManager", - "fullName": "google.cloud.datacatalog.v1beta1.PolicyTagManager" - } - } - } - }, - { - "regionTag": "datacatalog_v1beta1_generated_PolicyTagManagerSerialization_ImportTaxonomies_async", - "title": "DataCatalog importTaxonomies Sample", - "origin": "API_DEFINITION", - "description": " Imports all taxonomies and their policy tags to a project as new taxonomies. This method provides a bulk taxonomy / policy tag creation using nested proto structure.", - "canonical": true, - "file": "policy_tag_manager_serialization.import_taxonomies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportTaxonomies", - "fullName": "google.cloud.datacatalog.v1beta1.PolicyTagManagerSerialization.ImportTaxonomies", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "inline_source", - "type": ".google.cloud.datacatalog.v1beta1.InlineSource" - } - ], - "resultType": ".google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse", - "client": { - "shortName": "PolicyTagManagerSerializationClient", - "fullName": "google.cloud.datacatalog.v1beta1.PolicyTagManagerSerializationClient" - }, - "method": { - "shortName": "ImportTaxonomies", - "fullName": "google.cloud.datacatalog.v1beta1.PolicyTagManagerSerialization.ImportTaxonomies", - "service": { - "shortName": "PolicyTagManagerSerialization", - "fullName": "google.cloud.datacatalog.v1beta1.PolicyTagManagerSerialization" - } - } - } - }, - { - "regionTag": "datacatalog_v1beta1_generated_PolicyTagManagerSerialization_ExportTaxonomies_async", - "title": "DataCatalog exportTaxonomies Sample", - "origin": "API_DEFINITION", - "description": " Exports all taxonomies and their policy tags in a project. This method generates SerializedTaxonomy protos with nested policy tags that can be used as an input for future ImportTaxonomies calls.", - "canonical": true, - "file": "policy_tag_manager_serialization.export_taxonomies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportTaxonomies", - "fullName": "google.cloud.datacatalog.v1beta1.PolicyTagManagerSerialization.ExportTaxonomies", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "taxonomies", - "type": "TYPE_STRING[]" - }, - { - "name": "serialized_taxonomies", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse", - "client": { - "shortName": "PolicyTagManagerSerializationClient", - "fullName": "google.cloud.datacatalog.v1beta1.PolicyTagManagerSerializationClient" - }, - "method": { - "shortName": "ExportTaxonomies", - "fullName": "google.cloud.datacatalog.v1beta1.PolicyTagManagerSerialization.ExportTaxonomies", - "service": { - "shortName": "PolicyTagManagerSerialization", - "fullName": "google.cloud.datacatalog.v1beta1.PolicyTagManagerSerialization" - } - } - } - } - ] -} diff --git a/packages/google-cloud-dataform/samples/generated/v1/snippet_metadata_google.cloud.dataform.v1.json b/packages/google-cloud-dataform/samples/generated/v1/snippet_metadata_google.cloud.dataform.v1.json deleted file mode 100644 index 8a243e9a6ee7..000000000000 --- a/packages/google-cloud-dataform/samples/generated/v1/snippet_metadata_google.cloud.dataform.v1.json +++ /dev/null @@ -1,3363 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-dataform", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.dataform.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "dataform_v1_generated_Dataform_GetTeamFolder_async", - "title": "Dataform getTeamFolder Sample", - "origin": "API_DEFINITION", - "description": " Fetches a single TeamFolder.", - "canonical": true, - "file": "dataform.get_team_folder.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTeamFolder", - "fullName": "google.cloud.dataform.v1.Dataform.GetTeamFolder", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1.TeamFolder", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "GetTeamFolder", - "fullName": "google.cloud.dataform.v1.Dataform.GetTeamFolder", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_CreateTeamFolder_async", - "title": "Dataform createTeamFolder Sample", - "origin": "API_DEFINITION", - "description": " Creates a new TeamFolder in a given project and location.", - "canonical": true, - "file": "dataform.create_team_folder.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTeamFolder", - "fullName": "google.cloud.dataform.v1.Dataform.CreateTeamFolder", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "team_folder", - "type": ".google.cloud.dataform.v1.TeamFolder" - } - ], - "resultType": ".google.cloud.dataform.v1.TeamFolder", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "CreateTeamFolder", - "fullName": "google.cloud.dataform.v1.Dataform.CreateTeamFolder", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_UpdateTeamFolder_async", - "title": "Dataform updateTeamFolder Sample", - "origin": "API_DEFINITION", - "description": " Updates a single TeamFolder.", - "canonical": true, - "file": "dataform.update_team_folder.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTeamFolder", - "fullName": "google.cloud.dataform.v1.Dataform.UpdateTeamFolder", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "team_folder", - "type": ".google.cloud.dataform.v1.TeamFolder" - } - ], - "resultType": ".google.cloud.dataform.v1.TeamFolder", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "UpdateTeamFolder", - "fullName": "google.cloud.dataform.v1.Dataform.UpdateTeamFolder", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_DeleteTeamFolder_async", - "title": "Dataform deleteTeamFolder Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single TeamFolder.", - "canonical": true, - "file": "dataform.delete_team_folder.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTeamFolder", - "fullName": "google.cloud.dataform.v1.Dataform.DeleteTeamFolder", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "DeleteTeamFolder", - "fullName": "google.cloud.dataform.v1.Dataform.DeleteTeamFolder", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_DeleteTeamFolderTree_async", - "title": "Dataform deleteTeamFolderTree Sample", - "origin": "API_DEFINITION", - "description": " Deletes a TeamFolder with its contents (Folders, Repositories, Workspaces, ReleaseConfigs, and WorkflowConfigs).", - "canonical": true, - "file": "dataform.delete_team_folder_tree.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTeamFolderTree", - "fullName": "google.cloud.dataform.v1.Dataform.DeleteTeamFolderTree", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "DeleteTeamFolderTree", - "fullName": "google.cloud.dataform.v1.Dataform.DeleteTeamFolderTree", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_QueryTeamFolderContents_async", - "title": "Dataform queryTeamFolderContents Sample", - "origin": "API_DEFINITION", - "description": " Returns the contents of a given TeamFolder.", - "canonical": true, - "file": "dataform.query_team_folder_contents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryTeamFolderContents", - "fullName": "google.cloud.dataform.v1.Dataform.QueryTeamFolderContents", - "async": true, - "parameters": [ - { - "name": "team_folder", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1.QueryTeamFolderContentsResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "QueryTeamFolderContents", - "fullName": "google.cloud.dataform.v1.Dataform.QueryTeamFolderContents", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_SearchTeamFolders_async", - "title": "Dataform searchTeamFolders Sample", - "origin": "API_DEFINITION", - "description": " Returns all TeamFolders in a given location that the caller has access to and match the provided filter.", - "canonical": true, - "file": "dataform.search_team_folders.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchTeamFolders", - "fullName": "google.cloud.dataform.v1.Dataform.SearchTeamFolders", - "async": true, - "parameters": [ - { - "name": "location", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1.SearchTeamFoldersResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "SearchTeamFolders", - "fullName": "google.cloud.dataform.v1.Dataform.SearchTeamFolders", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_GetFolder_async", - "title": "Dataform getFolder Sample", - "origin": "API_DEFINITION", - "description": " Fetches a single Folder.", - "canonical": true, - "file": "dataform.get_folder.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFolder", - "fullName": "google.cloud.dataform.v1.Dataform.GetFolder", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1.Folder", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "GetFolder", - "fullName": "google.cloud.dataform.v1.Dataform.GetFolder", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_CreateFolder_async", - "title": "Dataform createFolder Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Folder in a given project and location.", - "canonical": true, - "file": "dataform.create_folder.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateFolder", - "fullName": "google.cloud.dataform.v1.Dataform.CreateFolder", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "folder", - "type": ".google.cloud.dataform.v1.Folder" - } - ], - "resultType": ".google.cloud.dataform.v1.Folder", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "CreateFolder", - "fullName": "google.cloud.dataform.v1.Dataform.CreateFolder", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_UpdateFolder_async", - "title": "Dataform updateFolder Sample", - "origin": "API_DEFINITION", - "description": " Updates a single Folder.", - "canonical": true, - "file": "dataform.update_folder.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateFolder", - "fullName": "google.cloud.dataform.v1.Dataform.UpdateFolder", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "folder", - "type": ".google.cloud.dataform.v1.Folder" - } - ], - "resultType": ".google.cloud.dataform.v1.Folder", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "UpdateFolder", - "fullName": "google.cloud.dataform.v1.Dataform.UpdateFolder", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_DeleteFolder_async", - "title": "Dataform deleteFolder Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Folder.", - "canonical": true, - "file": "dataform.delete_folder.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteFolder", - "fullName": "google.cloud.dataform.v1.Dataform.DeleteFolder", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "DeleteFolder", - "fullName": "google.cloud.dataform.v1.Dataform.DeleteFolder", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_DeleteFolderTree_async", - "title": "Dataform deleteFolderTree Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Folder with its contents (Folders, Repositories, Workspaces, ReleaseConfigs, and WorkflowConfigs).", - "canonical": true, - "file": "dataform.delete_folder_tree.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteFolderTree", - "fullName": "google.cloud.dataform.v1.Dataform.DeleteFolderTree", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "DeleteFolderTree", - "fullName": "google.cloud.dataform.v1.Dataform.DeleteFolderTree", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_QueryFolderContents_async", - "title": "Dataform queryFolderContents Sample", - "origin": "API_DEFINITION", - "description": " Returns the contents of a given Folder.", - "canonical": true, - "file": "dataform.query_folder_contents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryFolderContents", - "fullName": "google.cloud.dataform.v1.Dataform.QueryFolderContents", - "async": true, - "parameters": [ - { - "name": "folder", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1.QueryFolderContentsResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "QueryFolderContents", - "fullName": "google.cloud.dataform.v1.Dataform.QueryFolderContents", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_QueryUserRootContents_async", - "title": "Dataform queryUserRootContents Sample", - "origin": "API_DEFINITION", - "description": " Returns the contents of a caller's root folder in a given location. The root folder contains all resources that are created by the user and not contained in any other folder.", - "canonical": true, - "file": "dataform.query_user_root_contents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryUserRootContents", - "fullName": "google.cloud.dataform.v1.Dataform.QueryUserRootContents", - "async": true, - "parameters": [ - { - "name": "location", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1.QueryUserRootContentsResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "QueryUserRootContents", - "fullName": "google.cloud.dataform.v1.Dataform.QueryUserRootContents", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_MoveFolder_async", - "title": "Dataform moveFolder Sample", - "origin": "API_DEFINITION", - "description": " Moves a Folder to a new Folder, TeamFolder, or the root location.", - "canonical": true, - "file": "dataform.move_folder.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "MoveFolder", - "fullName": "google.cloud.dataform.v1.Dataform.MoveFolder", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "destination_containing_folder", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "MoveFolder", - "fullName": "google.cloud.dataform.v1.Dataform.MoveFolder", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_ListRepositories_async", - "title": "Dataform listRepositories Sample", - "origin": "API_DEFINITION", - "description": " Lists Repositories in a given project and location. **Note:** *This method can return repositories not shown in the [Dataform UI](https://console.cloud.google.com/bigquery/dataform)*.", - "canonical": true, - "file": "dataform.list_repositories.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRepositories", - "fullName": "google.cloud.dataform.v1.Dataform.ListRepositories", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1.ListRepositoriesResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "ListRepositories", - "fullName": "google.cloud.dataform.v1.Dataform.ListRepositories", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_GetRepository_async", - "title": "Dataform getRepository Sample", - "origin": "API_DEFINITION", - "description": " Fetches a single Repository.", - "canonical": true, - "file": "dataform.get_repository.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRepository", - "fullName": "google.cloud.dataform.v1.Dataform.GetRepository", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1.Repository", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "GetRepository", - "fullName": "google.cloud.dataform.v1.Dataform.GetRepository", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_CreateRepository_async", - "title": "Dataform createRepository Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Repository in a given project and location.", - "canonical": true, - "file": "dataform.create_repository.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateRepository", - "fullName": "google.cloud.dataform.v1.Dataform.CreateRepository", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "repository", - "type": ".google.cloud.dataform.v1.Repository" - }, - { - "name": "repository_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1.Repository", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "CreateRepository", - "fullName": "google.cloud.dataform.v1.Dataform.CreateRepository", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_UpdateRepository_async", - "title": "Dataform updateRepository Sample", - "origin": "API_DEFINITION", - "description": " Updates a single Repository. **Note:** *This method does not fully implement [AIP/134](https://google.aip.dev/134). The wildcard entry (\\*) is treated as a bad request, and when the `field_mask` is omitted, the request is treated as a full update on all modifiable fields.*", - "canonical": true, - "file": "dataform.update_repository.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateRepository", - "fullName": "google.cloud.dataform.v1.Dataform.UpdateRepository", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "repository", - "type": ".google.cloud.dataform.v1.Repository" - } - ], - "resultType": ".google.cloud.dataform.v1.Repository", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "UpdateRepository", - "fullName": "google.cloud.dataform.v1.Dataform.UpdateRepository", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_DeleteRepository_async", - "title": "Dataform deleteRepository Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Repository.", - "canonical": true, - "file": "dataform.delete_repository.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteRepository", - "fullName": "google.cloud.dataform.v1.Dataform.DeleteRepository", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "DeleteRepository", - "fullName": "google.cloud.dataform.v1.Dataform.DeleteRepository", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_MoveRepository_async", - "title": "Dataform moveRepository Sample", - "origin": "API_DEFINITION", - "description": " Moves a Repository to a new location.", - "canonical": true, - "file": "dataform.move_repository.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "MoveRepository", - "fullName": "google.cloud.dataform.v1.Dataform.MoveRepository", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "destination_containing_folder", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "MoveRepository", - "fullName": "google.cloud.dataform.v1.Dataform.MoveRepository", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_CommitRepositoryChanges_async", - "title": "Dataform commitRepositoryChanges Sample", - "origin": "API_DEFINITION", - "description": " Applies a Git commit to a Repository. The Repository must not have a value for `git_remote_settings.url`.", - "canonical": true, - "file": "dataform.commit_repository_changes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CommitRepositoryChanges", - "fullName": "google.cloud.dataform.v1.Dataform.CommitRepositoryChanges", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "commit_metadata", - "type": ".google.cloud.dataform.v1.CommitMetadata" - }, - { - "name": "required_head_commit_sha", - "type": "TYPE_STRING" - }, - { - "name": "file_operations", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.dataform.v1.CommitRepositoryChangesResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "CommitRepositoryChanges", - "fullName": "google.cloud.dataform.v1.Dataform.CommitRepositoryChanges", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_ReadRepositoryFile_async", - "title": "Dataform readRepositoryFile Sample", - "origin": "API_DEFINITION", - "description": " Returns the contents of a file (inside a Repository). The Repository must not have a value for `git_remote_settings.url`.", - "canonical": true, - "file": "dataform.read_repository_file.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReadRepositoryFile", - "fullName": "google.cloud.dataform.v1.Dataform.ReadRepositoryFile", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "commit_sha", - "type": "TYPE_STRING" - }, - { - "name": "path", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1.ReadRepositoryFileResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "ReadRepositoryFile", - "fullName": "google.cloud.dataform.v1.Dataform.ReadRepositoryFile", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_QueryRepositoryDirectoryContents_async", - "title": "Dataform queryRepositoryDirectoryContents Sample", - "origin": "API_DEFINITION", - "description": " Returns the contents of a given Repository directory. The Repository must not have a value for `git_remote_settings.url`.", - "canonical": true, - "file": "dataform.query_repository_directory_contents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryRepositoryDirectoryContents", - "fullName": "google.cloud.dataform.v1.Dataform.QueryRepositoryDirectoryContents", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "commit_sha", - "type": "TYPE_STRING" - }, - { - "name": "path", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1.QueryRepositoryDirectoryContentsResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "QueryRepositoryDirectoryContents", - "fullName": "google.cloud.dataform.v1.Dataform.QueryRepositoryDirectoryContents", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_FetchRepositoryHistory_async", - "title": "Dataform fetchRepositoryHistory Sample", - "origin": "API_DEFINITION", - "description": " Fetches a Repository's history of commits. The Repository must not have a value for `git_remote_settings.url`.", - "canonical": true, - "file": "dataform.fetch_repository_history.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchRepositoryHistory", - "fullName": "google.cloud.dataform.v1.Dataform.FetchRepositoryHistory", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1.FetchRepositoryHistoryResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "FetchRepositoryHistory", - "fullName": "google.cloud.dataform.v1.Dataform.FetchRepositoryHistory", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_ComputeRepositoryAccessTokenStatus_async", - "title": "Dataform computeRepositoryAccessTokenStatus Sample", - "origin": "API_DEFINITION", - "description": " Computes a Repository's Git access token status.", - "canonical": true, - "file": "dataform.compute_repository_access_token_status.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ComputeRepositoryAccessTokenStatus", - "fullName": "google.cloud.dataform.v1.Dataform.ComputeRepositoryAccessTokenStatus", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1.ComputeRepositoryAccessTokenStatusResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "ComputeRepositoryAccessTokenStatus", - "fullName": "google.cloud.dataform.v1.Dataform.ComputeRepositoryAccessTokenStatus", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_FetchRemoteBranches_async", - "title": "Dataform fetchRemoteBranches Sample", - "origin": "API_DEFINITION", - "description": " Fetches a Repository's remote branches.", - "canonical": true, - "file": "dataform.fetch_remote_branches.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchRemoteBranches", - "fullName": "google.cloud.dataform.v1.Dataform.FetchRemoteBranches", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1.FetchRemoteBranchesResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "FetchRemoteBranches", - "fullName": "google.cloud.dataform.v1.Dataform.FetchRemoteBranches", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_ListWorkspaces_async", - "title": "Dataform listWorkspaces Sample", - "origin": "API_DEFINITION", - "description": " Lists Workspaces in a given Repository.", - "canonical": true, - "file": "dataform.list_workspaces.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListWorkspaces", - "fullName": "google.cloud.dataform.v1.Dataform.ListWorkspaces", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1.ListWorkspacesResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "ListWorkspaces", - "fullName": "google.cloud.dataform.v1.Dataform.ListWorkspaces", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_GetWorkspace_async", - "title": "Dataform getWorkspace Sample", - "origin": "API_DEFINITION", - "description": " Fetches a single Workspace.", - "canonical": true, - "file": "dataform.get_workspace.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetWorkspace", - "fullName": "google.cloud.dataform.v1.Dataform.GetWorkspace", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1.Workspace", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "GetWorkspace", - "fullName": "google.cloud.dataform.v1.Dataform.GetWorkspace", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_CreateWorkspace_async", - "title": "Dataform createWorkspace Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Workspace in a given Repository.", - "canonical": true, - "file": "dataform.create_workspace.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateWorkspace", - "fullName": "google.cloud.dataform.v1.Dataform.CreateWorkspace", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "workspace", - "type": ".google.cloud.dataform.v1.Workspace" - }, - { - "name": "workspace_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1.Workspace", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "CreateWorkspace", - "fullName": "google.cloud.dataform.v1.Dataform.CreateWorkspace", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_DeleteWorkspace_async", - "title": "Dataform deleteWorkspace Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Workspace.", - "canonical": true, - "file": "dataform.delete_workspace.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteWorkspace", - "fullName": "google.cloud.dataform.v1.Dataform.DeleteWorkspace", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "DeleteWorkspace", - "fullName": "google.cloud.dataform.v1.Dataform.DeleteWorkspace", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_InstallNpmPackages_async", - "title": "Dataform installNpmPackages Sample", - "origin": "API_DEFINITION", - "description": " Installs dependency NPM packages (inside a Workspace).", - "canonical": true, - "file": "dataform.install_npm_packages.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "InstallNpmPackages", - "fullName": "google.cloud.dataform.v1.Dataform.InstallNpmPackages", - "async": true, - "parameters": [ - { - "name": "workspace", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1.InstallNpmPackagesResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "InstallNpmPackages", - "fullName": "google.cloud.dataform.v1.Dataform.InstallNpmPackages", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_PullGitCommits_async", - "title": "Dataform pullGitCommits Sample", - "origin": "API_DEFINITION", - "description": " Pulls Git commits from the Repository's remote into a Workspace.", - "canonical": true, - "file": "dataform.pull_git_commits.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PullGitCommits", - "fullName": "google.cloud.dataform.v1.Dataform.PullGitCommits", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "remote_branch", - "type": "TYPE_STRING" - }, - { - "name": "author", - "type": ".google.cloud.dataform.v1.CommitAuthor" - } - ], - "resultType": ".google.cloud.dataform.v1.PullGitCommitsResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "PullGitCommits", - "fullName": "google.cloud.dataform.v1.Dataform.PullGitCommits", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_PushGitCommits_async", - "title": "Dataform pushGitCommits Sample", - "origin": "API_DEFINITION", - "description": " Pushes Git commits from a Workspace to the Repository's remote.", - "canonical": true, - "file": "dataform.push_git_commits.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PushGitCommits", - "fullName": "google.cloud.dataform.v1.Dataform.PushGitCommits", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "remote_branch", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1.PushGitCommitsResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "PushGitCommits", - "fullName": "google.cloud.dataform.v1.Dataform.PushGitCommits", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_FetchFileGitStatuses_async", - "title": "Dataform fetchFileGitStatuses Sample", - "origin": "API_DEFINITION", - "description": " Fetches Git statuses for the files in a Workspace.", - "canonical": true, - "file": "dataform.fetch_file_git_statuses.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchFileGitStatuses", - "fullName": "google.cloud.dataform.v1.Dataform.FetchFileGitStatuses", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1.FetchFileGitStatusesResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "FetchFileGitStatuses", - "fullName": "google.cloud.dataform.v1.Dataform.FetchFileGitStatuses", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_FetchGitAheadBehind_async", - "title": "Dataform fetchGitAheadBehind Sample", - "origin": "API_DEFINITION", - "description": " Fetches Git ahead/behind against a remote branch.", - "canonical": true, - "file": "dataform.fetch_git_ahead_behind.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchGitAheadBehind", - "fullName": "google.cloud.dataform.v1.Dataform.FetchGitAheadBehind", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "remote_branch", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1.FetchGitAheadBehindResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "FetchGitAheadBehind", - "fullName": "google.cloud.dataform.v1.Dataform.FetchGitAheadBehind", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_CommitWorkspaceChanges_async", - "title": "Dataform commitWorkspaceChanges Sample", - "origin": "API_DEFINITION", - "description": " Applies a Git commit for uncommitted files in a Workspace.", - "canonical": true, - "file": "dataform.commit_workspace_changes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CommitWorkspaceChanges", - "fullName": "google.cloud.dataform.v1.Dataform.CommitWorkspaceChanges", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "author", - "type": ".google.cloud.dataform.v1.CommitAuthor" - }, - { - "name": "commit_message", - "type": "TYPE_STRING" - }, - { - "name": "paths", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.cloud.dataform.v1.CommitWorkspaceChangesResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "CommitWorkspaceChanges", - "fullName": "google.cloud.dataform.v1.Dataform.CommitWorkspaceChanges", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_ResetWorkspaceChanges_async", - "title": "Dataform resetWorkspaceChanges Sample", - "origin": "API_DEFINITION", - "description": " Performs a Git reset for uncommitted files in a Workspace.", - "canonical": true, - "file": "dataform.reset_workspace_changes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResetWorkspaceChanges", - "fullName": "google.cloud.dataform.v1.Dataform.ResetWorkspaceChanges", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "paths", - "type": "TYPE_STRING[]" - }, - { - "name": "clean", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.dataform.v1.ResetWorkspaceChangesResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "ResetWorkspaceChanges", - "fullName": "google.cloud.dataform.v1.Dataform.ResetWorkspaceChanges", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_FetchFileDiff_async", - "title": "Dataform fetchFileDiff Sample", - "origin": "API_DEFINITION", - "description": " Fetches Git diff for an uncommitted file in a Workspace.", - "canonical": true, - "file": "dataform.fetch_file_diff.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchFileDiff", - "fullName": "google.cloud.dataform.v1.Dataform.FetchFileDiff", - "async": true, - "parameters": [ - { - "name": "workspace", - "type": "TYPE_STRING" - }, - { - "name": "path", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1.FetchFileDiffResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "FetchFileDiff", - "fullName": "google.cloud.dataform.v1.Dataform.FetchFileDiff", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_QueryDirectoryContents_async", - "title": "Dataform queryDirectoryContents Sample", - "origin": "API_DEFINITION", - "description": " Returns the contents of a given Workspace directory.", - "canonical": true, - "file": "dataform.query_directory_contents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryDirectoryContents", - "fullName": "google.cloud.dataform.v1.Dataform.QueryDirectoryContents", - "async": true, - "parameters": [ - { - "name": "workspace", - "type": "TYPE_STRING" - }, - { - "name": "path", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.dataform.v1.DirectoryContentsView" - } - ], - "resultType": ".google.cloud.dataform.v1.QueryDirectoryContentsResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "QueryDirectoryContents", - "fullName": "google.cloud.dataform.v1.Dataform.QueryDirectoryContents", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_SearchFiles_async", - "title": "Dataform searchFiles Sample", - "origin": "API_DEFINITION", - "description": " Finds the contents of a given Workspace directory by filter.", - "canonical": true, - "file": "dataform.search_files.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchFiles", - "fullName": "google.cloud.dataform.v1.Dataform.SearchFiles", - "async": true, - "parameters": [ - { - "name": "workspace", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1.SearchFilesResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "SearchFiles", - "fullName": "google.cloud.dataform.v1.Dataform.SearchFiles", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_MakeDirectory_async", - "title": "Dataform makeDirectory Sample", - "origin": "API_DEFINITION", - "description": " Creates a directory inside a Workspace.", - "canonical": true, - "file": "dataform.make_directory.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "MakeDirectory", - "fullName": "google.cloud.dataform.v1.Dataform.MakeDirectory", - "async": true, - "parameters": [ - { - "name": "workspace", - "type": "TYPE_STRING" - }, - { - "name": "path", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1.MakeDirectoryResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "MakeDirectory", - "fullName": "google.cloud.dataform.v1.Dataform.MakeDirectory", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_RemoveDirectory_async", - "title": "Dataform removeDirectory Sample", - "origin": "API_DEFINITION", - "description": " Deletes a directory (inside a Workspace) and all of its contents.", - "canonical": true, - "file": "dataform.remove_directory.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveDirectory", - "fullName": "google.cloud.dataform.v1.Dataform.RemoveDirectory", - "async": true, - "parameters": [ - { - "name": "workspace", - "type": "TYPE_STRING" - }, - { - "name": "path", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1.RemoveDirectoryResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "RemoveDirectory", - "fullName": "google.cloud.dataform.v1.Dataform.RemoveDirectory", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_MoveDirectory_async", - "title": "Dataform moveDirectory Sample", - "origin": "API_DEFINITION", - "description": " Moves a directory (inside a Workspace), and all of its contents, to a new location.", - "canonical": true, - "file": "dataform.move_directory.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "MoveDirectory", - "fullName": "google.cloud.dataform.v1.Dataform.MoveDirectory", - "async": true, - "parameters": [ - { - "name": "workspace", - "type": "TYPE_STRING" - }, - { - "name": "path", - "type": "TYPE_STRING" - }, - { - "name": "new_path", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1.MoveDirectoryResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "MoveDirectory", - "fullName": "google.cloud.dataform.v1.Dataform.MoveDirectory", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_ReadFile_async", - "title": "Dataform readFile Sample", - "origin": "API_DEFINITION", - "description": " Returns the contents of a file (inside a Workspace).", - "canonical": true, - "file": "dataform.read_file.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReadFile", - "fullName": "google.cloud.dataform.v1.Dataform.ReadFile", - "async": true, - "parameters": [ - { - "name": "workspace", - "type": "TYPE_STRING" - }, - { - "name": "path", - "type": "TYPE_STRING" - }, - { - "name": "revision", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1.ReadFileResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "ReadFile", - "fullName": "google.cloud.dataform.v1.Dataform.ReadFile", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_RemoveFile_async", - "title": "Dataform removeFile Sample", - "origin": "API_DEFINITION", - "description": " Deletes a file (inside a Workspace).", - "canonical": true, - "file": "dataform.remove_file.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveFile", - "fullName": "google.cloud.dataform.v1.Dataform.RemoveFile", - "async": true, - "parameters": [ - { - "name": "workspace", - "type": "TYPE_STRING" - }, - { - "name": "path", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1.RemoveFileResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "RemoveFile", - "fullName": "google.cloud.dataform.v1.Dataform.RemoveFile", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_MoveFile_async", - "title": "Dataform moveFile Sample", - "origin": "API_DEFINITION", - "description": " Moves a file (inside a Workspace) to a new location.", - "canonical": true, - "file": "dataform.move_file.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "MoveFile", - "fullName": "google.cloud.dataform.v1.Dataform.MoveFile", - "async": true, - "parameters": [ - { - "name": "workspace", - "type": "TYPE_STRING" - }, - { - "name": "path", - "type": "TYPE_STRING" - }, - { - "name": "new_path", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1.MoveFileResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "MoveFile", - "fullName": "google.cloud.dataform.v1.Dataform.MoveFile", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_WriteFile_async", - "title": "Dataform writeFile Sample", - "origin": "API_DEFINITION", - "description": " Writes to a file (inside a Workspace).", - "canonical": true, - "file": "dataform.write_file.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "WriteFile", - "fullName": "google.cloud.dataform.v1.Dataform.WriteFile", - "async": true, - "parameters": [ - { - "name": "workspace", - "type": "TYPE_STRING" - }, - { - "name": "path", - "type": "TYPE_STRING" - }, - { - "name": "contents", - "type": "TYPE_BYTES" - } - ], - "resultType": ".google.cloud.dataform.v1.WriteFileResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "WriteFile", - "fullName": "google.cloud.dataform.v1.Dataform.WriteFile", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_ListReleaseConfigs_async", - "title": "Dataform listReleaseConfigs Sample", - "origin": "API_DEFINITION", - "description": " Lists ReleaseConfigs in a given Repository.", - "canonical": true, - "file": "dataform.list_release_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListReleaseConfigs", - "fullName": "google.cloud.dataform.v1.Dataform.ListReleaseConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1.ListReleaseConfigsResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "ListReleaseConfigs", - "fullName": "google.cloud.dataform.v1.Dataform.ListReleaseConfigs", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_GetReleaseConfig_async", - "title": "Dataform getReleaseConfig Sample", - "origin": "API_DEFINITION", - "description": " Fetches a single ReleaseConfig.", - "canonical": true, - "file": "dataform.get_release_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetReleaseConfig", - "fullName": "google.cloud.dataform.v1.Dataform.GetReleaseConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1.ReleaseConfig", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "GetReleaseConfig", - "fullName": "google.cloud.dataform.v1.Dataform.GetReleaseConfig", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_CreateReleaseConfig_async", - "title": "Dataform createReleaseConfig Sample", - "origin": "API_DEFINITION", - "description": " Creates a new ReleaseConfig in a given Repository.", - "canonical": true, - "file": "dataform.create_release_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateReleaseConfig", - "fullName": "google.cloud.dataform.v1.Dataform.CreateReleaseConfig", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "release_config", - "type": ".google.cloud.dataform.v1.ReleaseConfig" - }, - { - "name": "release_config_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1.ReleaseConfig", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "CreateReleaseConfig", - "fullName": "google.cloud.dataform.v1.Dataform.CreateReleaseConfig", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_UpdateReleaseConfig_async", - "title": "Dataform updateReleaseConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates a single ReleaseConfig. **Note:** *This method does not fully implement [AIP/134](https://google.aip.dev/134). The wildcard entry (\\*) is treated as a bad request, and when the `field_mask` is omitted, the request is treated as a full update on all modifiable fields.*", - "canonical": true, - "file": "dataform.update_release_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateReleaseConfig", - "fullName": "google.cloud.dataform.v1.Dataform.UpdateReleaseConfig", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "release_config", - "type": ".google.cloud.dataform.v1.ReleaseConfig" - } - ], - "resultType": ".google.cloud.dataform.v1.ReleaseConfig", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "UpdateReleaseConfig", - "fullName": "google.cloud.dataform.v1.Dataform.UpdateReleaseConfig", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_DeleteReleaseConfig_async", - "title": "Dataform deleteReleaseConfig Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single ReleaseConfig.", - "canonical": true, - "file": "dataform.delete_release_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteReleaseConfig", - "fullName": "google.cloud.dataform.v1.Dataform.DeleteReleaseConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "DeleteReleaseConfig", - "fullName": "google.cloud.dataform.v1.Dataform.DeleteReleaseConfig", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_ListCompilationResults_async", - "title": "Dataform listCompilationResults Sample", - "origin": "API_DEFINITION", - "description": " Lists CompilationResults in a given Repository.", - "canonical": true, - "file": "dataform.list_compilation_results.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCompilationResults", - "fullName": "google.cloud.dataform.v1.Dataform.ListCompilationResults", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1.ListCompilationResultsResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "ListCompilationResults", - "fullName": "google.cloud.dataform.v1.Dataform.ListCompilationResults", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_GetCompilationResult_async", - "title": "Dataform getCompilationResult Sample", - "origin": "API_DEFINITION", - "description": " Fetches a single CompilationResult.", - "canonical": true, - "file": "dataform.get_compilation_result.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCompilationResult", - "fullName": "google.cloud.dataform.v1.Dataform.GetCompilationResult", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1.CompilationResult", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "GetCompilationResult", - "fullName": "google.cloud.dataform.v1.Dataform.GetCompilationResult", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_CreateCompilationResult_async", - "title": "Dataform createCompilationResult Sample", - "origin": "API_DEFINITION", - "description": " Creates a new CompilationResult in a given project and location.", - "canonical": true, - "file": "dataform.create_compilation_result.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCompilationResult", - "fullName": "google.cloud.dataform.v1.Dataform.CreateCompilationResult", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "compilation_result", - "type": ".google.cloud.dataform.v1.CompilationResult" - } - ], - "resultType": ".google.cloud.dataform.v1.CompilationResult", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "CreateCompilationResult", - "fullName": "google.cloud.dataform.v1.Dataform.CreateCompilationResult", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_QueryCompilationResultActions_async", - "title": "Dataform queryCompilationResultActions Sample", - "origin": "API_DEFINITION", - "description": " Returns CompilationResultActions in a given CompilationResult.", - "canonical": true, - "file": "dataform.query_compilation_result_actions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryCompilationResultActions", - "fullName": "google.cloud.dataform.v1.Dataform.QueryCompilationResultActions", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1.QueryCompilationResultActionsResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "QueryCompilationResultActions", - "fullName": "google.cloud.dataform.v1.Dataform.QueryCompilationResultActions", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_ListWorkflowConfigs_async", - "title": "Dataform listWorkflowConfigs Sample", - "origin": "API_DEFINITION", - "description": " Lists WorkflowConfigs in a given Repository.", - "canonical": true, - "file": "dataform.list_workflow_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListWorkflowConfigs", - "fullName": "google.cloud.dataform.v1.Dataform.ListWorkflowConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1.ListWorkflowConfigsResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "ListWorkflowConfigs", - "fullName": "google.cloud.dataform.v1.Dataform.ListWorkflowConfigs", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_GetWorkflowConfig_async", - "title": "Dataform getWorkflowConfig Sample", - "origin": "API_DEFINITION", - "description": " Fetches a single WorkflowConfig.", - "canonical": true, - "file": "dataform.get_workflow_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetWorkflowConfig", - "fullName": "google.cloud.dataform.v1.Dataform.GetWorkflowConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1.WorkflowConfig", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "GetWorkflowConfig", - "fullName": "google.cloud.dataform.v1.Dataform.GetWorkflowConfig", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_CreateWorkflowConfig_async", - "title": "Dataform createWorkflowConfig Sample", - "origin": "API_DEFINITION", - "description": " Creates a new WorkflowConfig in a given Repository.", - "canonical": true, - "file": "dataform.create_workflow_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateWorkflowConfig", - "fullName": "google.cloud.dataform.v1.Dataform.CreateWorkflowConfig", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "workflow_config", - "type": ".google.cloud.dataform.v1.WorkflowConfig" - }, - { - "name": "workflow_config_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1.WorkflowConfig", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "CreateWorkflowConfig", - "fullName": "google.cloud.dataform.v1.Dataform.CreateWorkflowConfig", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_UpdateWorkflowConfig_async", - "title": "Dataform updateWorkflowConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates a single WorkflowConfig. **Note:** *This method does not fully implement [AIP/134](https://google.aip.dev/134). The wildcard entry (\\*) is treated as a bad request, and when the `field_mask` is omitted, the request is treated as a full update on all modifiable fields.*", - "canonical": true, - "file": "dataform.update_workflow_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateWorkflowConfig", - "fullName": "google.cloud.dataform.v1.Dataform.UpdateWorkflowConfig", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "workflow_config", - "type": ".google.cloud.dataform.v1.WorkflowConfig" - } - ], - "resultType": ".google.cloud.dataform.v1.WorkflowConfig", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "UpdateWorkflowConfig", - "fullName": "google.cloud.dataform.v1.Dataform.UpdateWorkflowConfig", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_DeleteWorkflowConfig_async", - "title": "Dataform deleteWorkflowConfig Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single WorkflowConfig.", - "canonical": true, - "file": "dataform.delete_workflow_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteWorkflowConfig", - "fullName": "google.cloud.dataform.v1.Dataform.DeleteWorkflowConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "DeleteWorkflowConfig", - "fullName": "google.cloud.dataform.v1.Dataform.DeleteWorkflowConfig", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_ListWorkflowInvocations_async", - "title": "Dataform listWorkflowInvocations Sample", - "origin": "API_DEFINITION", - "description": " Lists WorkflowInvocations in a given Repository.", - "canonical": true, - "file": "dataform.list_workflow_invocations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListWorkflowInvocations", - "fullName": "google.cloud.dataform.v1.Dataform.ListWorkflowInvocations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1.ListWorkflowInvocationsResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "ListWorkflowInvocations", - "fullName": "google.cloud.dataform.v1.Dataform.ListWorkflowInvocations", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_GetWorkflowInvocation_async", - "title": "Dataform getWorkflowInvocation Sample", - "origin": "API_DEFINITION", - "description": " Fetches a single WorkflowInvocation.", - "canonical": true, - "file": "dataform.get_workflow_invocation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetWorkflowInvocation", - "fullName": "google.cloud.dataform.v1.Dataform.GetWorkflowInvocation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1.WorkflowInvocation", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "GetWorkflowInvocation", - "fullName": "google.cloud.dataform.v1.Dataform.GetWorkflowInvocation", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_CreateWorkflowInvocation_async", - "title": "Dataform createWorkflowInvocation Sample", - "origin": "API_DEFINITION", - "description": " Creates a new WorkflowInvocation in a given Repository.", - "canonical": true, - "file": "dataform.create_workflow_invocation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateWorkflowInvocation", - "fullName": "google.cloud.dataform.v1.Dataform.CreateWorkflowInvocation", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "workflow_invocation", - "type": ".google.cloud.dataform.v1.WorkflowInvocation" - } - ], - "resultType": ".google.cloud.dataform.v1.WorkflowInvocation", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "CreateWorkflowInvocation", - "fullName": "google.cloud.dataform.v1.Dataform.CreateWorkflowInvocation", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_DeleteWorkflowInvocation_async", - "title": "Dataform deleteWorkflowInvocation Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single WorkflowInvocation.", - "canonical": true, - "file": "dataform.delete_workflow_invocation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteWorkflowInvocation", - "fullName": "google.cloud.dataform.v1.Dataform.DeleteWorkflowInvocation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "DeleteWorkflowInvocation", - "fullName": "google.cloud.dataform.v1.Dataform.DeleteWorkflowInvocation", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_CancelWorkflowInvocation_async", - "title": "Dataform cancelWorkflowInvocation Sample", - "origin": "API_DEFINITION", - "description": " Requests cancellation of a running WorkflowInvocation.", - "canonical": true, - "file": "dataform.cancel_workflow_invocation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CancelWorkflowInvocation", - "fullName": "google.cloud.dataform.v1.Dataform.CancelWorkflowInvocation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1.CancelWorkflowInvocationResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "CancelWorkflowInvocation", - "fullName": "google.cloud.dataform.v1.Dataform.CancelWorkflowInvocation", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_QueryWorkflowInvocationActions_async", - "title": "Dataform queryWorkflowInvocationActions Sample", - "origin": "API_DEFINITION", - "description": " Returns WorkflowInvocationActions in a given WorkflowInvocation.", - "canonical": true, - "file": "dataform.query_workflow_invocation_actions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryWorkflowInvocationActions", - "fullName": "google.cloud.dataform.v1.Dataform.QueryWorkflowInvocationActions", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1.QueryWorkflowInvocationActionsResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "QueryWorkflowInvocationActions", - "fullName": "google.cloud.dataform.v1.Dataform.QueryWorkflowInvocationActions", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_GetConfig_async", - "title": "Dataform getConfig Sample", - "origin": "API_DEFINITION", - "description": " Get default config for a given project and location.", - "canonical": true, - "file": "dataform.get_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetConfig", - "fullName": "google.cloud.dataform.v1.Dataform.GetConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1.Config", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "GetConfig", - "fullName": "google.cloud.dataform.v1.Dataform.GetConfig", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_UpdateConfig_async", - "title": "Dataform updateConfig Sample", - "origin": "API_DEFINITION", - "description": " Update default config for a given project and location. **Note:** *This method does not fully implement [AIP/134](https://google.aip.dev/134). The wildcard entry (\\*) is treated as a bad request, and when the `field_mask` is omitted, the request is treated as a full update on all modifiable fields.*", - "canonical": true, - "file": "dataform.update_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateConfig", - "fullName": "google.cloud.dataform.v1.Dataform.UpdateConfig", - "async": true, - "parameters": [ - { - "name": "config", - "type": ".google.cloud.dataform.v1.Config" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dataform.v1.Config", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "UpdateConfig", - "fullName": "google.cloud.dataform.v1.Dataform.UpdateConfig", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_GetIamPolicy_async", - "title": "Dataform getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", - "canonical": true, - "file": "dataform.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.dataform.v1.Dataform.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": ".google.iam.v1.GetPolicyOptions" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.dataform.v1.Dataform.GetIamPolicy", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_SetIamPolicy_async", - "title": "Dataform setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", - "canonical": true, - "file": "dataform.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.dataform.v1.Dataform.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.iam.v1.Policy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.dataform.v1.Dataform.SetIamPolicy", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1_generated_Dataform_TestIamPermissions_async", - "title": "Dataform testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - "canonical": true, - "file": "dataform.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.dataform.v1.Dataform.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "permissions", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.iam.v1.TestIamPermissionsResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1.DataformClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.dataform.v1.Dataform.TestIamPermissions", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1.Dataform" - } - } - } - } - ] -} diff --git a/packages/google-cloud-dataform/samples/generated/v1beta1/snippet_metadata_google.cloud.dataform.v1beta1.json b/packages/google-cloud-dataform/samples/generated/v1beta1/snippet_metadata_google.cloud.dataform.v1beta1.json deleted file mode 100644 index cdd2cd513727..000000000000 --- a/packages/google-cloud-dataform/samples/generated/v1beta1/snippet_metadata_google.cloud.dataform.v1beta1.json +++ /dev/null @@ -1,3279 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-dataform", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.dataform.v1beta1", - "version": "v1beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "dataform_v1beta1_generated_Dataform_GetTeamFolder_async", - "title": "Dataform getTeamFolder Sample", - "origin": "API_DEFINITION", - "description": " Fetches a single TeamFolder.", - "canonical": true, - "file": "dataform.get_team_folder.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTeamFolder", - "fullName": "google.cloud.dataform.v1beta1.Dataform.GetTeamFolder", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1beta1.TeamFolder", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "GetTeamFolder", - "fullName": "google.cloud.dataform.v1beta1.Dataform.GetTeamFolder", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_CreateTeamFolder_async", - "title": "Dataform createTeamFolder Sample", - "origin": "API_DEFINITION", - "description": " Creates a new TeamFolder in a given project and location.", - "canonical": true, - "file": "dataform.create_team_folder.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTeamFolder", - "fullName": "google.cloud.dataform.v1beta1.Dataform.CreateTeamFolder", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "team_folder", - "type": ".google.cloud.dataform.v1beta1.TeamFolder" - }, - { - "name": "team_folder_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1beta1.TeamFolder", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "CreateTeamFolder", - "fullName": "google.cloud.dataform.v1beta1.Dataform.CreateTeamFolder", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_UpdateTeamFolder_async", - "title": "Dataform updateTeamFolder Sample", - "origin": "API_DEFINITION", - "description": " Updates a single TeamFolder.", - "canonical": true, - "file": "dataform.update_team_folder.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTeamFolder", - "fullName": "google.cloud.dataform.v1beta1.Dataform.UpdateTeamFolder", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "team_folder", - "type": ".google.cloud.dataform.v1beta1.TeamFolder" - } - ], - "resultType": ".google.cloud.dataform.v1beta1.TeamFolder", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "UpdateTeamFolder", - "fullName": "google.cloud.dataform.v1beta1.Dataform.UpdateTeamFolder", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_DeleteTeamFolder_async", - "title": "Dataform deleteTeamFolder Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single TeamFolder.", - "canonical": true, - "file": "dataform.delete_team_folder.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTeamFolder", - "fullName": "google.cloud.dataform.v1beta1.Dataform.DeleteTeamFolder", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "DeleteTeamFolder", - "fullName": "google.cloud.dataform.v1beta1.Dataform.DeleteTeamFolder", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_QueryTeamFolderContents_async", - "title": "Dataform queryTeamFolderContents Sample", - "origin": "API_DEFINITION", - "description": " Returns the contents of a given TeamFolder.", - "canonical": true, - "file": "dataform.query_team_folder_contents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryTeamFolderContents", - "fullName": "google.cloud.dataform.v1beta1.Dataform.QueryTeamFolderContents", - "async": true, - "parameters": [ - { - "name": "team_folder", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "QueryTeamFolderContents", - "fullName": "google.cloud.dataform.v1beta1.Dataform.QueryTeamFolderContents", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_SearchTeamFolders_async", - "title": "Dataform searchTeamFolders Sample", - "origin": "API_DEFINITION", - "description": " Returns all TeamFolders in a given location that the caller has access to and match the provided filter.", - "canonical": true, - "file": "dataform.search_team_folders.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchTeamFolders", - "fullName": "google.cloud.dataform.v1beta1.Dataform.SearchTeamFolders", - "async": true, - "parameters": [ - { - "name": "location", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1beta1.SearchTeamFoldersResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "SearchTeamFolders", - "fullName": "google.cloud.dataform.v1beta1.Dataform.SearchTeamFolders", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_GetFolder_async", - "title": "Dataform getFolder Sample", - "origin": "API_DEFINITION", - "description": " Fetches a single Folder.", - "canonical": true, - "file": "dataform.get_folder.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFolder", - "fullName": "google.cloud.dataform.v1beta1.Dataform.GetFolder", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1beta1.Folder", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "GetFolder", - "fullName": "google.cloud.dataform.v1beta1.Dataform.GetFolder", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_CreateFolder_async", - "title": "Dataform createFolder Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Folder in a given project and location.", - "canonical": true, - "file": "dataform.create_folder.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateFolder", - "fullName": "google.cloud.dataform.v1beta1.Dataform.CreateFolder", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "folder", - "type": ".google.cloud.dataform.v1beta1.Folder" - }, - { - "name": "folder_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1beta1.Folder", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "CreateFolder", - "fullName": "google.cloud.dataform.v1beta1.Dataform.CreateFolder", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_UpdateFolder_async", - "title": "Dataform updateFolder Sample", - "origin": "API_DEFINITION", - "description": " Updates a single Folder.", - "canonical": true, - "file": "dataform.update_folder.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateFolder", - "fullName": "google.cloud.dataform.v1beta1.Dataform.UpdateFolder", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "folder", - "type": ".google.cloud.dataform.v1beta1.Folder" - } - ], - "resultType": ".google.cloud.dataform.v1beta1.Folder", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "UpdateFolder", - "fullName": "google.cloud.dataform.v1beta1.Dataform.UpdateFolder", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_DeleteFolder_async", - "title": "Dataform deleteFolder Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Folder.", - "canonical": true, - "file": "dataform.delete_folder.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteFolder", - "fullName": "google.cloud.dataform.v1beta1.Dataform.DeleteFolder", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "DeleteFolder", - "fullName": "google.cloud.dataform.v1beta1.Dataform.DeleteFolder", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_QueryFolderContents_async", - "title": "Dataform queryFolderContents Sample", - "origin": "API_DEFINITION", - "description": " Returns the contents of a given Folder.", - "canonical": true, - "file": "dataform.query_folder_contents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryFolderContents", - "fullName": "google.cloud.dataform.v1beta1.Dataform.QueryFolderContents", - "async": true, - "parameters": [ - { - "name": "folder", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1beta1.QueryFolderContentsResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "QueryFolderContents", - "fullName": "google.cloud.dataform.v1beta1.Dataform.QueryFolderContents", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_QueryUserRootContents_async", - "title": "Dataform queryUserRootContents Sample", - "origin": "API_DEFINITION", - "description": " Returns the contents of a caller's root folder in a given location. The root folder contains all resources that are created by the user and not contained in any other folder.", - "canonical": true, - "file": "dataform.query_user_root_contents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryUserRootContents", - "fullName": "google.cloud.dataform.v1beta1.Dataform.QueryUserRootContents", - "async": true, - "parameters": [ - { - "name": "location", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1beta1.QueryUserRootContentsResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "QueryUserRootContents", - "fullName": "google.cloud.dataform.v1beta1.Dataform.QueryUserRootContents", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_MoveFolder_async", - "title": "Dataform moveFolder Sample", - "origin": "API_DEFINITION", - "description": " Moves a Folder to a new Folder, TeamFolder, or the root location.", - "canonical": true, - "file": "dataform.move_folder.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "MoveFolder", - "fullName": "google.cloud.dataform.v1beta1.Dataform.MoveFolder", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "destination_containing_folder", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "MoveFolder", - "fullName": "google.cloud.dataform.v1beta1.Dataform.MoveFolder", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_ListRepositories_async", - "title": "Dataform listRepositories Sample", - "origin": "API_DEFINITION", - "description": " Lists Repositories in a given project and location. **Note:** *This method can return repositories not shown in the [Dataform UI](https://console.cloud.google.com/bigquery/dataform)*.", - "canonical": true, - "file": "dataform.list_repositories.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRepositories", - "fullName": "google.cloud.dataform.v1beta1.Dataform.ListRepositories", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1beta1.ListRepositoriesResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "ListRepositories", - "fullName": "google.cloud.dataform.v1beta1.Dataform.ListRepositories", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_GetRepository_async", - "title": "Dataform getRepository Sample", - "origin": "API_DEFINITION", - "description": " Fetches a single Repository.", - "canonical": true, - "file": "dataform.get_repository.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRepository", - "fullName": "google.cloud.dataform.v1beta1.Dataform.GetRepository", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1beta1.Repository", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "GetRepository", - "fullName": "google.cloud.dataform.v1beta1.Dataform.GetRepository", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_CreateRepository_async", - "title": "Dataform createRepository Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Repository in a given project and location.", - "canonical": true, - "file": "dataform.create_repository.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateRepository", - "fullName": "google.cloud.dataform.v1beta1.Dataform.CreateRepository", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "repository", - "type": ".google.cloud.dataform.v1beta1.Repository" - }, - { - "name": "repository_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1beta1.Repository", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "CreateRepository", - "fullName": "google.cloud.dataform.v1beta1.Dataform.CreateRepository", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_UpdateRepository_async", - "title": "Dataform updateRepository Sample", - "origin": "API_DEFINITION", - "description": " Updates a single Repository. **Note:** *This method does not fully implement [AIP/134](https://google.aip.dev/134). The wildcard entry (\\*) is treated as a bad request, and when the `field_mask` is omitted, the request is treated as a full update on all modifiable fields.*", - "canonical": true, - "file": "dataform.update_repository.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateRepository", - "fullName": "google.cloud.dataform.v1beta1.Dataform.UpdateRepository", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "repository", - "type": ".google.cloud.dataform.v1beta1.Repository" - } - ], - "resultType": ".google.cloud.dataform.v1beta1.Repository", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "UpdateRepository", - "fullName": "google.cloud.dataform.v1beta1.Dataform.UpdateRepository", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_DeleteRepository_async", - "title": "Dataform deleteRepository Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Repository.", - "canonical": true, - "file": "dataform.delete_repository.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteRepository", - "fullName": "google.cloud.dataform.v1beta1.Dataform.DeleteRepository", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "DeleteRepository", - "fullName": "google.cloud.dataform.v1beta1.Dataform.DeleteRepository", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_MoveRepository_async", - "title": "Dataform moveRepository Sample", - "origin": "API_DEFINITION", - "description": " Moves a Repository to a new location.", - "canonical": true, - "file": "dataform.move_repository.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "MoveRepository", - "fullName": "google.cloud.dataform.v1beta1.Dataform.MoveRepository", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "destination_containing_folder", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "MoveRepository", - "fullName": "google.cloud.dataform.v1beta1.Dataform.MoveRepository", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_CommitRepositoryChanges_async", - "title": "Dataform commitRepositoryChanges Sample", - "origin": "API_DEFINITION", - "description": " Applies a Git commit to a Repository. The Repository must not have a value for `git_remote_settings.url`.", - "canonical": true, - "file": "dataform.commit_repository_changes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CommitRepositoryChanges", - "fullName": "google.cloud.dataform.v1beta1.Dataform.CommitRepositoryChanges", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "commit_metadata", - "type": ".google.cloud.dataform.v1beta1.CommitMetadata" - }, - { - "name": "required_head_commit_sha", - "type": "TYPE_STRING" - }, - { - "name": "file_operations", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.dataform.v1beta1.CommitRepositoryChangesResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "CommitRepositoryChanges", - "fullName": "google.cloud.dataform.v1beta1.Dataform.CommitRepositoryChanges", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_ReadRepositoryFile_async", - "title": "Dataform readRepositoryFile Sample", - "origin": "API_DEFINITION", - "description": " Returns the contents of a file (inside a Repository). The Repository must not have a value for `git_remote_settings.url`.", - "canonical": true, - "file": "dataform.read_repository_file.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReadRepositoryFile", - "fullName": "google.cloud.dataform.v1beta1.Dataform.ReadRepositoryFile", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "commit_sha", - "type": "TYPE_STRING" - }, - { - "name": "path", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1beta1.ReadRepositoryFileResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "ReadRepositoryFile", - "fullName": "google.cloud.dataform.v1beta1.Dataform.ReadRepositoryFile", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_QueryRepositoryDirectoryContents_async", - "title": "Dataform queryRepositoryDirectoryContents Sample", - "origin": "API_DEFINITION", - "description": " Returns the contents of a given Repository directory. The Repository must not have a value for `git_remote_settings.url`.", - "canonical": true, - "file": "dataform.query_repository_directory_contents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryRepositoryDirectoryContents", - "fullName": "google.cloud.dataform.v1beta1.Dataform.QueryRepositoryDirectoryContents", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "commit_sha", - "type": "TYPE_STRING" - }, - { - "name": "path", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1beta1.QueryRepositoryDirectoryContentsResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "QueryRepositoryDirectoryContents", - "fullName": "google.cloud.dataform.v1beta1.Dataform.QueryRepositoryDirectoryContents", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_FetchRepositoryHistory_async", - "title": "Dataform fetchRepositoryHistory Sample", - "origin": "API_DEFINITION", - "description": " Fetches a Repository's history of commits. The Repository must not have a value for `git_remote_settings.url`.", - "canonical": true, - "file": "dataform.fetch_repository_history.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchRepositoryHistory", - "fullName": "google.cloud.dataform.v1beta1.Dataform.FetchRepositoryHistory", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1beta1.FetchRepositoryHistoryResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "FetchRepositoryHistory", - "fullName": "google.cloud.dataform.v1beta1.Dataform.FetchRepositoryHistory", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_ComputeRepositoryAccessTokenStatus_async", - "title": "Dataform computeRepositoryAccessTokenStatus Sample", - "origin": "API_DEFINITION", - "description": " Computes a Repository's Git access token status.", - "canonical": true, - "file": "dataform.compute_repository_access_token_status.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ComputeRepositoryAccessTokenStatus", - "fullName": "google.cloud.dataform.v1beta1.Dataform.ComputeRepositoryAccessTokenStatus", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1beta1.ComputeRepositoryAccessTokenStatusResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "ComputeRepositoryAccessTokenStatus", - "fullName": "google.cloud.dataform.v1beta1.Dataform.ComputeRepositoryAccessTokenStatus", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_FetchRemoteBranches_async", - "title": "Dataform fetchRemoteBranches Sample", - "origin": "API_DEFINITION", - "description": " Fetches a Repository's remote branches.", - "canonical": true, - "file": "dataform.fetch_remote_branches.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchRemoteBranches", - "fullName": "google.cloud.dataform.v1beta1.Dataform.FetchRemoteBranches", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1beta1.FetchRemoteBranchesResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "FetchRemoteBranches", - "fullName": "google.cloud.dataform.v1beta1.Dataform.FetchRemoteBranches", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_ListWorkspaces_async", - "title": "Dataform listWorkspaces Sample", - "origin": "API_DEFINITION", - "description": " Lists Workspaces in a given Repository.", - "canonical": true, - "file": "dataform.list_workspaces.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListWorkspaces", - "fullName": "google.cloud.dataform.v1beta1.Dataform.ListWorkspaces", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1beta1.ListWorkspacesResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "ListWorkspaces", - "fullName": "google.cloud.dataform.v1beta1.Dataform.ListWorkspaces", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_GetWorkspace_async", - "title": "Dataform getWorkspace Sample", - "origin": "API_DEFINITION", - "description": " Fetches a single Workspace.", - "canonical": true, - "file": "dataform.get_workspace.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetWorkspace", - "fullName": "google.cloud.dataform.v1beta1.Dataform.GetWorkspace", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1beta1.Workspace", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "GetWorkspace", - "fullName": "google.cloud.dataform.v1beta1.Dataform.GetWorkspace", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_CreateWorkspace_async", - "title": "Dataform createWorkspace Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Workspace in a given Repository.", - "canonical": true, - "file": "dataform.create_workspace.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateWorkspace", - "fullName": "google.cloud.dataform.v1beta1.Dataform.CreateWorkspace", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "workspace", - "type": ".google.cloud.dataform.v1beta1.Workspace" - }, - { - "name": "workspace_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1beta1.Workspace", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "CreateWorkspace", - "fullName": "google.cloud.dataform.v1beta1.Dataform.CreateWorkspace", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_DeleteWorkspace_async", - "title": "Dataform deleteWorkspace Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Workspace.", - "canonical": true, - "file": "dataform.delete_workspace.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteWorkspace", - "fullName": "google.cloud.dataform.v1beta1.Dataform.DeleteWorkspace", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "DeleteWorkspace", - "fullName": "google.cloud.dataform.v1beta1.Dataform.DeleteWorkspace", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_InstallNpmPackages_async", - "title": "Dataform installNpmPackages Sample", - "origin": "API_DEFINITION", - "description": " Installs dependency NPM packages (inside a Workspace).", - "canonical": true, - "file": "dataform.install_npm_packages.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "InstallNpmPackages", - "fullName": "google.cloud.dataform.v1beta1.Dataform.InstallNpmPackages", - "async": true, - "parameters": [ - { - "name": "workspace", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1beta1.InstallNpmPackagesResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "InstallNpmPackages", - "fullName": "google.cloud.dataform.v1beta1.Dataform.InstallNpmPackages", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_PullGitCommits_async", - "title": "Dataform pullGitCommits Sample", - "origin": "API_DEFINITION", - "description": " Pulls Git commits from the Repository's remote into a Workspace.", - "canonical": true, - "file": "dataform.pull_git_commits.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PullGitCommits", - "fullName": "google.cloud.dataform.v1beta1.Dataform.PullGitCommits", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "remote_branch", - "type": "TYPE_STRING" - }, - { - "name": "author", - "type": ".google.cloud.dataform.v1beta1.CommitAuthor" - } - ], - "resultType": ".google.cloud.dataform.v1beta1.PullGitCommitsResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "PullGitCommits", - "fullName": "google.cloud.dataform.v1beta1.Dataform.PullGitCommits", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_PushGitCommits_async", - "title": "Dataform pushGitCommits Sample", - "origin": "API_DEFINITION", - "description": " Pushes Git commits from a Workspace to the Repository's remote.", - "canonical": true, - "file": "dataform.push_git_commits.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PushGitCommits", - "fullName": "google.cloud.dataform.v1beta1.Dataform.PushGitCommits", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "remote_branch", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1beta1.PushGitCommitsResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "PushGitCommits", - "fullName": "google.cloud.dataform.v1beta1.Dataform.PushGitCommits", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_FetchFileGitStatuses_async", - "title": "Dataform fetchFileGitStatuses Sample", - "origin": "API_DEFINITION", - "description": " Fetches Git statuses for the files in a Workspace.", - "canonical": true, - "file": "dataform.fetch_file_git_statuses.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchFileGitStatuses", - "fullName": "google.cloud.dataform.v1beta1.Dataform.FetchFileGitStatuses", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1beta1.FetchFileGitStatusesResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "FetchFileGitStatuses", - "fullName": "google.cloud.dataform.v1beta1.Dataform.FetchFileGitStatuses", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_FetchGitAheadBehind_async", - "title": "Dataform fetchGitAheadBehind Sample", - "origin": "API_DEFINITION", - "description": " Fetches Git ahead/behind against a remote branch.", - "canonical": true, - "file": "dataform.fetch_git_ahead_behind.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchGitAheadBehind", - "fullName": "google.cloud.dataform.v1beta1.Dataform.FetchGitAheadBehind", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "remote_branch", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1beta1.FetchGitAheadBehindResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "FetchGitAheadBehind", - "fullName": "google.cloud.dataform.v1beta1.Dataform.FetchGitAheadBehind", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_CommitWorkspaceChanges_async", - "title": "Dataform commitWorkspaceChanges Sample", - "origin": "API_DEFINITION", - "description": " Applies a Git commit for uncommitted files in a Workspace.", - "canonical": true, - "file": "dataform.commit_workspace_changes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CommitWorkspaceChanges", - "fullName": "google.cloud.dataform.v1beta1.Dataform.CommitWorkspaceChanges", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "author", - "type": ".google.cloud.dataform.v1beta1.CommitAuthor" - }, - { - "name": "commit_message", - "type": "TYPE_STRING" - }, - { - "name": "paths", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.cloud.dataform.v1beta1.CommitWorkspaceChangesResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "CommitWorkspaceChanges", - "fullName": "google.cloud.dataform.v1beta1.Dataform.CommitWorkspaceChanges", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_ResetWorkspaceChanges_async", - "title": "Dataform resetWorkspaceChanges Sample", - "origin": "API_DEFINITION", - "description": " Performs a Git reset for uncommitted files in a Workspace.", - "canonical": true, - "file": "dataform.reset_workspace_changes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResetWorkspaceChanges", - "fullName": "google.cloud.dataform.v1beta1.Dataform.ResetWorkspaceChanges", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "paths", - "type": "TYPE_STRING[]" - }, - { - "name": "clean", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.dataform.v1beta1.ResetWorkspaceChangesResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "ResetWorkspaceChanges", - "fullName": "google.cloud.dataform.v1beta1.Dataform.ResetWorkspaceChanges", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_FetchFileDiff_async", - "title": "Dataform fetchFileDiff Sample", - "origin": "API_DEFINITION", - "description": " Fetches Git diff for an uncommitted file in a Workspace.", - "canonical": true, - "file": "dataform.fetch_file_diff.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchFileDiff", - "fullName": "google.cloud.dataform.v1beta1.Dataform.FetchFileDiff", - "async": true, - "parameters": [ - { - "name": "workspace", - "type": "TYPE_STRING" - }, - { - "name": "path", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1beta1.FetchFileDiffResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "FetchFileDiff", - "fullName": "google.cloud.dataform.v1beta1.Dataform.FetchFileDiff", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_QueryDirectoryContents_async", - "title": "Dataform queryDirectoryContents Sample", - "origin": "API_DEFINITION", - "description": " Returns the contents of a given Workspace directory.", - "canonical": true, - "file": "dataform.query_directory_contents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryDirectoryContents", - "fullName": "google.cloud.dataform.v1beta1.Dataform.QueryDirectoryContents", - "async": true, - "parameters": [ - { - "name": "workspace", - "type": "TYPE_STRING" - }, - { - "name": "path", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "QueryDirectoryContents", - "fullName": "google.cloud.dataform.v1beta1.Dataform.QueryDirectoryContents", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_SearchFiles_async", - "title": "Dataform searchFiles Sample", - "origin": "API_DEFINITION", - "description": " Finds the contents of a given Workspace directory by filter.", - "canonical": true, - "file": "dataform.search_files.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchFiles", - "fullName": "google.cloud.dataform.v1beta1.Dataform.SearchFiles", - "async": true, - "parameters": [ - { - "name": "workspace", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1beta1.SearchFilesResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "SearchFiles", - "fullName": "google.cloud.dataform.v1beta1.Dataform.SearchFiles", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_MakeDirectory_async", - "title": "Dataform makeDirectory Sample", - "origin": "API_DEFINITION", - "description": " Creates a directory inside a Workspace.", - "canonical": true, - "file": "dataform.make_directory.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "MakeDirectory", - "fullName": "google.cloud.dataform.v1beta1.Dataform.MakeDirectory", - "async": true, - "parameters": [ - { - "name": "workspace", - "type": "TYPE_STRING" - }, - { - "name": "path", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1beta1.MakeDirectoryResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "MakeDirectory", - "fullName": "google.cloud.dataform.v1beta1.Dataform.MakeDirectory", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_RemoveDirectory_async", - "title": "Dataform removeDirectory Sample", - "origin": "API_DEFINITION", - "description": " Deletes a directory (inside a Workspace) and all of its contents.", - "canonical": true, - "file": "dataform.remove_directory.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveDirectory", - "fullName": "google.cloud.dataform.v1beta1.Dataform.RemoveDirectory", - "async": true, - "parameters": [ - { - "name": "workspace", - "type": "TYPE_STRING" - }, - { - "name": "path", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1beta1.RemoveDirectoryResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "RemoveDirectory", - "fullName": "google.cloud.dataform.v1beta1.Dataform.RemoveDirectory", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_MoveDirectory_async", - "title": "Dataform moveDirectory Sample", - "origin": "API_DEFINITION", - "description": " Moves a directory (inside a Workspace), and all of its contents, to a new location.", - "canonical": true, - "file": "dataform.move_directory.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "MoveDirectory", - "fullName": "google.cloud.dataform.v1beta1.Dataform.MoveDirectory", - "async": true, - "parameters": [ - { - "name": "workspace", - "type": "TYPE_STRING" - }, - { - "name": "path", - "type": "TYPE_STRING" - }, - { - "name": "new_path", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1beta1.MoveDirectoryResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "MoveDirectory", - "fullName": "google.cloud.dataform.v1beta1.Dataform.MoveDirectory", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_ReadFile_async", - "title": "Dataform readFile Sample", - "origin": "API_DEFINITION", - "description": " Returns the contents of a file (inside a Workspace).", - "canonical": true, - "file": "dataform.read_file.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReadFile", - "fullName": "google.cloud.dataform.v1beta1.Dataform.ReadFile", - "async": true, - "parameters": [ - { - "name": "workspace", - "type": "TYPE_STRING" - }, - { - "name": "path", - "type": "TYPE_STRING" - }, - { - "name": "revision", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1beta1.ReadFileResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "ReadFile", - "fullName": "google.cloud.dataform.v1beta1.Dataform.ReadFile", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_RemoveFile_async", - "title": "Dataform removeFile Sample", - "origin": "API_DEFINITION", - "description": " Deletes a file (inside a Workspace).", - "canonical": true, - "file": "dataform.remove_file.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveFile", - "fullName": "google.cloud.dataform.v1beta1.Dataform.RemoveFile", - "async": true, - "parameters": [ - { - "name": "workspace", - "type": "TYPE_STRING" - }, - { - "name": "path", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1beta1.RemoveFileResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "RemoveFile", - "fullName": "google.cloud.dataform.v1beta1.Dataform.RemoveFile", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_MoveFile_async", - "title": "Dataform moveFile Sample", - "origin": "API_DEFINITION", - "description": " Moves a file (inside a Workspace) to a new location.", - "canonical": true, - "file": "dataform.move_file.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "MoveFile", - "fullName": "google.cloud.dataform.v1beta1.Dataform.MoveFile", - "async": true, - "parameters": [ - { - "name": "workspace", - "type": "TYPE_STRING" - }, - { - "name": "path", - "type": "TYPE_STRING" - }, - { - "name": "new_path", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1beta1.MoveFileResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "MoveFile", - "fullName": "google.cloud.dataform.v1beta1.Dataform.MoveFile", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_WriteFile_async", - "title": "Dataform writeFile Sample", - "origin": "API_DEFINITION", - "description": " Writes to a file (inside a Workspace).", - "canonical": true, - "file": "dataform.write_file.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "WriteFile", - "fullName": "google.cloud.dataform.v1beta1.Dataform.WriteFile", - "async": true, - "parameters": [ - { - "name": "workspace", - "type": "TYPE_STRING" - }, - { - "name": "path", - "type": "TYPE_STRING" - }, - { - "name": "contents", - "type": "TYPE_BYTES" - } - ], - "resultType": ".google.cloud.dataform.v1beta1.WriteFileResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "WriteFile", - "fullName": "google.cloud.dataform.v1beta1.Dataform.WriteFile", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_ListReleaseConfigs_async", - "title": "Dataform listReleaseConfigs Sample", - "origin": "API_DEFINITION", - "description": " Lists ReleaseConfigs in a given Repository.", - "canonical": true, - "file": "dataform.list_release_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListReleaseConfigs", - "fullName": "google.cloud.dataform.v1beta1.Dataform.ListReleaseConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1beta1.ListReleaseConfigsResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "ListReleaseConfigs", - "fullName": "google.cloud.dataform.v1beta1.Dataform.ListReleaseConfigs", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_GetReleaseConfig_async", - "title": "Dataform getReleaseConfig Sample", - "origin": "API_DEFINITION", - "description": " Fetches a single ReleaseConfig.", - "canonical": true, - "file": "dataform.get_release_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetReleaseConfig", - "fullName": "google.cloud.dataform.v1beta1.Dataform.GetReleaseConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1beta1.ReleaseConfig", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "GetReleaseConfig", - "fullName": "google.cloud.dataform.v1beta1.Dataform.GetReleaseConfig", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_CreateReleaseConfig_async", - "title": "Dataform createReleaseConfig Sample", - "origin": "API_DEFINITION", - "description": " Creates a new ReleaseConfig in a given Repository.", - "canonical": true, - "file": "dataform.create_release_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateReleaseConfig", - "fullName": "google.cloud.dataform.v1beta1.Dataform.CreateReleaseConfig", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "release_config", - "type": ".google.cloud.dataform.v1beta1.ReleaseConfig" - }, - { - "name": "release_config_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1beta1.ReleaseConfig", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "CreateReleaseConfig", - "fullName": "google.cloud.dataform.v1beta1.Dataform.CreateReleaseConfig", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_UpdateReleaseConfig_async", - "title": "Dataform updateReleaseConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates a single ReleaseConfig. **Note:** *This method does not fully implement [AIP/134](https://google.aip.dev/134). The wildcard entry (\\*) is treated as a bad request, and when the `field_mask` is omitted, the request is treated as a full update on all modifiable fields.*", - "canonical": true, - "file": "dataform.update_release_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateReleaseConfig", - "fullName": "google.cloud.dataform.v1beta1.Dataform.UpdateReleaseConfig", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "release_config", - "type": ".google.cloud.dataform.v1beta1.ReleaseConfig" - } - ], - "resultType": ".google.cloud.dataform.v1beta1.ReleaseConfig", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "UpdateReleaseConfig", - "fullName": "google.cloud.dataform.v1beta1.Dataform.UpdateReleaseConfig", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_DeleteReleaseConfig_async", - "title": "Dataform deleteReleaseConfig Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single ReleaseConfig.", - "canonical": true, - "file": "dataform.delete_release_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteReleaseConfig", - "fullName": "google.cloud.dataform.v1beta1.Dataform.DeleteReleaseConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "DeleteReleaseConfig", - "fullName": "google.cloud.dataform.v1beta1.Dataform.DeleteReleaseConfig", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_ListCompilationResults_async", - "title": "Dataform listCompilationResults Sample", - "origin": "API_DEFINITION", - "description": " Lists CompilationResults in a given Repository.", - "canonical": true, - "file": "dataform.list_compilation_results.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCompilationResults", - "fullName": "google.cloud.dataform.v1beta1.Dataform.ListCompilationResults", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1beta1.ListCompilationResultsResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "ListCompilationResults", - "fullName": "google.cloud.dataform.v1beta1.Dataform.ListCompilationResults", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_GetCompilationResult_async", - "title": "Dataform getCompilationResult Sample", - "origin": "API_DEFINITION", - "description": " Fetches a single CompilationResult.", - "canonical": true, - "file": "dataform.get_compilation_result.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCompilationResult", - "fullName": "google.cloud.dataform.v1beta1.Dataform.GetCompilationResult", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1beta1.CompilationResult", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "GetCompilationResult", - "fullName": "google.cloud.dataform.v1beta1.Dataform.GetCompilationResult", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_CreateCompilationResult_async", - "title": "Dataform createCompilationResult Sample", - "origin": "API_DEFINITION", - "description": " Creates a new CompilationResult in a given project and location.", - "canonical": true, - "file": "dataform.create_compilation_result.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCompilationResult", - "fullName": "google.cloud.dataform.v1beta1.Dataform.CreateCompilationResult", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "compilation_result", - "type": ".google.cloud.dataform.v1beta1.CompilationResult" - } - ], - "resultType": ".google.cloud.dataform.v1beta1.CompilationResult", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "CreateCompilationResult", - "fullName": "google.cloud.dataform.v1beta1.Dataform.CreateCompilationResult", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_QueryCompilationResultActions_async", - "title": "Dataform queryCompilationResultActions Sample", - "origin": "API_DEFINITION", - "description": " Returns CompilationResultActions in a given CompilationResult.", - "canonical": true, - "file": "dataform.query_compilation_result_actions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryCompilationResultActions", - "fullName": "google.cloud.dataform.v1beta1.Dataform.QueryCompilationResultActions", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1beta1.QueryCompilationResultActionsResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "QueryCompilationResultActions", - "fullName": "google.cloud.dataform.v1beta1.Dataform.QueryCompilationResultActions", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_ListWorkflowConfigs_async", - "title": "Dataform listWorkflowConfigs Sample", - "origin": "API_DEFINITION", - "description": " Lists WorkflowConfigs in a given Repository.", - "canonical": true, - "file": "dataform.list_workflow_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListWorkflowConfigs", - "fullName": "google.cloud.dataform.v1beta1.Dataform.ListWorkflowConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1beta1.ListWorkflowConfigsResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "ListWorkflowConfigs", - "fullName": "google.cloud.dataform.v1beta1.Dataform.ListWorkflowConfigs", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_GetWorkflowConfig_async", - "title": "Dataform getWorkflowConfig Sample", - "origin": "API_DEFINITION", - "description": " Fetches a single WorkflowConfig.", - "canonical": true, - "file": "dataform.get_workflow_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetWorkflowConfig", - "fullName": "google.cloud.dataform.v1beta1.Dataform.GetWorkflowConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1beta1.WorkflowConfig", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "GetWorkflowConfig", - "fullName": "google.cloud.dataform.v1beta1.Dataform.GetWorkflowConfig", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_CreateWorkflowConfig_async", - "title": "Dataform createWorkflowConfig Sample", - "origin": "API_DEFINITION", - "description": " Creates a new WorkflowConfig in a given Repository.", - "canonical": true, - "file": "dataform.create_workflow_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateWorkflowConfig", - "fullName": "google.cloud.dataform.v1beta1.Dataform.CreateWorkflowConfig", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "workflow_config", - "type": ".google.cloud.dataform.v1beta1.WorkflowConfig" - }, - { - "name": "workflow_config_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1beta1.WorkflowConfig", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "CreateWorkflowConfig", - "fullName": "google.cloud.dataform.v1beta1.Dataform.CreateWorkflowConfig", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_UpdateWorkflowConfig_async", - "title": "Dataform updateWorkflowConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates a single WorkflowConfig. **Note:** *This method does not fully implement [AIP/134](https://google.aip.dev/134). The wildcard entry (\\*) is treated as a bad request, and when the `field_mask` is omitted, the request is treated as a full update on all modifiable fields.*", - "canonical": true, - "file": "dataform.update_workflow_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateWorkflowConfig", - "fullName": "google.cloud.dataform.v1beta1.Dataform.UpdateWorkflowConfig", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "workflow_config", - "type": ".google.cloud.dataform.v1beta1.WorkflowConfig" - } - ], - "resultType": ".google.cloud.dataform.v1beta1.WorkflowConfig", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "UpdateWorkflowConfig", - "fullName": "google.cloud.dataform.v1beta1.Dataform.UpdateWorkflowConfig", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_DeleteWorkflowConfig_async", - "title": "Dataform deleteWorkflowConfig Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single WorkflowConfig.", - "canonical": true, - "file": "dataform.delete_workflow_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteWorkflowConfig", - "fullName": "google.cloud.dataform.v1beta1.Dataform.DeleteWorkflowConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "DeleteWorkflowConfig", - "fullName": "google.cloud.dataform.v1beta1.Dataform.DeleteWorkflowConfig", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_ListWorkflowInvocations_async", - "title": "Dataform listWorkflowInvocations Sample", - "origin": "API_DEFINITION", - "description": " Lists WorkflowInvocations in a given Repository.", - "canonical": true, - "file": "dataform.list_workflow_invocations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListWorkflowInvocations", - "fullName": "google.cloud.dataform.v1beta1.Dataform.ListWorkflowInvocations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1beta1.ListWorkflowInvocationsResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "ListWorkflowInvocations", - "fullName": "google.cloud.dataform.v1beta1.Dataform.ListWorkflowInvocations", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_GetWorkflowInvocation_async", - "title": "Dataform getWorkflowInvocation Sample", - "origin": "API_DEFINITION", - "description": " Fetches a single WorkflowInvocation.", - "canonical": true, - "file": "dataform.get_workflow_invocation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetWorkflowInvocation", - "fullName": "google.cloud.dataform.v1beta1.Dataform.GetWorkflowInvocation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1beta1.WorkflowInvocation", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "GetWorkflowInvocation", - "fullName": "google.cloud.dataform.v1beta1.Dataform.GetWorkflowInvocation", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_CreateWorkflowInvocation_async", - "title": "Dataform createWorkflowInvocation Sample", - "origin": "API_DEFINITION", - "description": " Creates a new WorkflowInvocation in a given Repository.", - "canonical": true, - "file": "dataform.create_workflow_invocation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateWorkflowInvocation", - "fullName": "google.cloud.dataform.v1beta1.Dataform.CreateWorkflowInvocation", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "workflow_invocation", - "type": ".google.cloud.dataform.v1beta1.WorkflowInvocation" - } - ], - "resultType": ".google.cloud.dataform.v1beta1.WorkflowInvocation", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "CreateWorkflowInvocation", - "fullName": "google.cloud.dataform.v1beta1.Dataform.CreateWorkflowInvocation", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_DeleteWorkflowInvocation_async", - "title": "Dataform deleteWorkflowInvocation Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single WorkflowInvocation.", - "canonical": true, - "file": "dataform.delete_workflow_invocation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteWorkflowInvocation", - "fullName": "google.cloud.dataform.v1beta1.Dataform.DeleteWorkflowInvocation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "DeleteWorkflowInvocation", - "fullName": "google.cloud.dataform.v1beta1.Dataform.DeleteWorkflowInvocation", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_CancelWorkflowInvocation_async", - "title": "Dataform cancelWorkflowInvocation Sample", - "origin": "API_DEFINITION", - "description": " Requests cancellation of a running WorkflowInvocation.", - "canonical": true, - "file": "dataform.cancel_workflow_invocation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CancelWorkflowInvocation", - "fullName": "google.cloud.dataform.v1beta1.Dataform.CancelWorkflowInvocation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1beta1.CancelWorkflowInvocationResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "CancelWorkflowInvocation", - "fullName": "google.cloud.dataform.v1beta1.Dataform.CancelWorkflowInvocation", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_QueryWorkflowInvocationActions_async", - "title": "Dataform queryWorkflowInvocationActions Sample", - "origin": "API_DEFINITION", - "description": " Returns WorkflowInvocationActions in a given WorkflowInvocation.", - "canonical": true, - "file": "dataform.query_workflow_invocation_actions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryWorkflowInvocationActions", - "fullName": "google.cloud.dataform.v1beta1.Dataform.QueryWorkflowInvocationActions", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1beta1.QueryWorkflowInvocationActionsResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "QueryWorkflowInvocationActions", - "fullName": "google.cloud.dataform.v1beta1.Dataform.QueryWorkflowInvocationActions", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_GetConfig_async", - "title": "Dataform getConfig Sample", - "origin": "API_DEFINITION", - "description": " Get default config for a given project and location.", - "canonical": true, - "file": "dataform.get_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetConfig", - "fullName": "google.cloud.dataform.v1beta1.Dataform.GetConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataform.v1beta1.Config", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "GetConfig", - "fullName": "google.cloud.dataform.v1beta1.Dataform.GetConfig", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_UpdateConfig_async", - "title": "Dataform updateConfig Sample", - "origin": "API_DEFINITION", - "description": " Update default config for a given project and location. **Note:** *This method does not fully implement [AIP/134](https://google.aip.dev/134). The wildcard entry (\\*) is treated as a bad request, and when the `field_mask` is omitted, the request is treated as a full update on all modifiable fields.*", - "canonical": true, - "file": "dataform.update_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateConfig", - "fullName": "google.cloud.dataform.v1beta1.Dataform.UpdateConfig", - "async": true, - "parameters": [ - { - "name": "config", - "type": ".google.cloud.dataform.v1beta1.Config" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dataform.v1beta1.Config", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "UpdateConfig", - "fullName": "google.cloud.dataform.v1beta1.Dataform.UpdateConfig", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_GetIamPolicy_async", - "title": "Dataform getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", - "canonical": true, - "file": "dataform.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.dataform.v1beta1.Dataform.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": ".google.iam.v1.GetPolicyOptions" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.dataform.v1beta1.Dataform.GetIamPolicy", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_SetIamPolicy_async", - "title": "Dataform setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", - "canonical": true, - "file": "dataform.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.dataform.v1beta1.Dataform.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.iam.v1.Policy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.dataform.v1beta1.Dataform.SetIamPolicy", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - }, - { - "regionTag": "dataform_v1beta1_generated_Dataform_TestIamPermissions_async", - "title": "Dataform testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - "canonical": true, - "file": "dataform.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.dataform.v1beta1.Dataform.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "permissions", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.iam.v1.TestIamPermissionsResponse", - "client": { - "shortName": "DataformClient", - "fullName": "google.cloud.dataform.v1beta1.DataformClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.dataform.v1beta1.Dataform.TestIamPermissions", - "service": { - "shortName": "Dataform", - "fullName": "google.cloud.dataform.v1beta1.Dataform" - } - } - } - } - ] -} diff --git a/packages/google-cloud-datafusion/samples/generated/v1/snippet_metadata_google.cloud.datafusion.v1.json b/packages/google-cloud-datafusion/samples/generated/v1/snippet_metadata_google.cloud.datafusion.v1.json deleted file mode 100644 index 637a9ce21456..000000000000 --- a/packages/google-cloud-datafusion/samples/generated/v1/snippet_metadata_google.cloud.datafusion.v1.json +++ /dev/null @@ -1,335 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-datafusion", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.datafusion.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "datafusion_v1_generated_DataFusion_ListAvailableVersions_async", - "title": "DataFusion listAvailableVersions Sample", - "origin": "API_DEFINITION", - "description": " Lists possible versions for Data Fusion instances in the specified project and location.", - "canonical": true, - "file": "data_fusion.list_available_versions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAvailableVersions", - "fullName": "google.cloud.datafusion.v1.DataFusion.ListAvailableVersions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "latest_patch_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.datafusion.v1.ListAvailableVersionsResponse", - "client": { - "shortName": "DataFusionClient", - "fullName": "google.cloud.datafusion.v1.DataFusionClient" - }, - "method": { - "shortName": "ListAvailableVersions", - "fullName": "google.cloud.datafusion.v1.DataFusion.ListAvailableVersions", - "service": { - "shortName": "DataFusion", - "fullName": "google.cloud.datafusion.v1.DataFusion" - } - } - } - }, - { - "regionTag": "datafusion_v1_generated_DataFusion_ListInstances_async", - "title": "DataFusion listInstances Sample", - "origin": "API_DEFINITION", - "description": " Lists Data Fusion instances in the specified project and location.", - "canonical": true, - "file": "data_fusion.list_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListInstances", - "fullName": "google.cloud.datafusion.v1.DataFusion.ListInstances", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datafusion.v1.ListInstancesResponse", - "client": { - "shortName": "DataFusionClient", - "fullName": "google.cloud.datafusion.v1.DataFusionClient" - }, - "method": { - "shortName": "ListInstances", - "fullName": "google.cloud.datafusion.v1.DataFusion.ListInstances", - "service": { - "shortName": "DataFusion", - "fullName": "google.cloud.datafusion.v1.DataFusion" - } - } - } - }, - { - "regionTag": "datafusion_v1_generated_DataFusion_GetInstance_async", - "title": "DataFusion getInstance Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Data Fusion instance.", - "canonical": true, - "file": "data_fusion.get_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetInstance", - "fullName": "google.cloud.datafusion.v1.DataFusion.GetInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datafusion.v1.Instance", - "client": { - "shortName": "DataFusionClient", - "fullName": "google.cloud.datafusion.v1.DataFusionClient" - }, - "method": { - "shortName": "GetInstance", - "fullName": "google.cloud.datafusion.v1.DataFusion.GetInstance", - "service": { - "shortName": "DataFusion", - "fullName": "google.cloud.datafusion.v1.DataFusion" - } - } - } - }, - { - "regionTag": "datafusion_v1_generated_DataFusion_CreateInstance_async", - "title": "DataFusion createInstance Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Data Fusion instance in the specified project and location.", - "canonical": true, - "file": "data_fusion.create_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateInstance", - "fullName": "google.cloud.datafusion.v1.DataFusion.CreateInstance", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "instance_id", - "type": "TYPE_STRING" - }, - { - "name": "instance", - "type": ".google.cloud.datafusion.v1.Instance" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataFusionClient", - "fullName": "google.cloud.datafusion.v1.DataFusionClient" - }, - "method": { - "shortName": "CreateInstance", - "fullName": "google.cloud.datafusion.v1.DataFusion.CreateInstance", - "service": { - "shortName": "DataFusion", - "fullName": "google.cloud.datafusion.v1.DataFusion" - } - } - } - }, - { - "regionTag": "datafusion_v1_generated_DataFusion_DeleteInstance_async", - "title": "DataFusion deleteInstance Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Date Fusion instance.", - "canonical": true, - "file": "data_fusion.delete_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteInstance", - "fullName": "google.cloud.datafusion.v1.DataFusion.DeleteInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataFusionClient", - "fullName": "google.cloud.datafusion.v1.DataFusionClient" - }, - "method": { - "shortName": "DeleteInstance", - "fullName": "google.cloud.datafusion.v1.DataFusion.DeleteInstance", - "service": { - "shortName": "DataFusion", - "fullName": "google.cloud.datafusion.v1.DataFusion" - } - } - } - }, - { - "regionTag": "datafusion_v1_generated_DataFusion_UpdateInstance_async", - "title": "DataFusion updateInstance Sample", - "origin": "API_DEFINITION", - "description": " Updates a single Data Fusion instance.", - "canonical": true, - "file": "data_fusion.update_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateInstance", - "fullName": "google.cloud.datafusion.v1.DataFusion.UpdateInstance", - "async": true, - "parameters": [ - { - "name": "instance", - "type": ".google.cloud.datafusion.v1.Instance" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataFusionClient", - "fullName": "google.cloud.datafusion.v1.DataFusionClient" - }, - "method": { - "shortName": "UpdateInstance", - "fullName": "google.cloud.datafusion.v1.DataFusion.UpdateInstance", - "service": { - "shortName": "DataFusion", - "fullName": "google.cloud.datafusion.v1.DataFusion" - } - } - } - }, - { - "regionTag": "datafusion_v1_generated_DataFusion_RestartInstance_async", - "title": "DataFusion restartInstance Sample", - "origin": "API_DEFINITION", - "description": " Restart a single Data Fusion instance. At the end of an operation instance is fully restarted.", - "canonical": true, - "file": "data_fusion.restart_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RestartInstance", - "fullName": "google.cloud.datafusion.v1.DataFusion.RestartInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataFusionClient", - "fullName": "google.cloud.datafusion.v1.DataFusionClient" - }, - "method": { - "shortName": "RestartInstance", - "fullName": "google.cloud.datafusion.v1.DataFusion.RestartInstance", - "service": { - "shortName": "DataFusion", - "fullName": "google.cloud.datafusion.v1.DataFusion" - } - } - } - } - ] -} diff --git a/packages/google-cloud-datafusion/samples/generated/v1beta1/snippet_metadata_google.cloud.datafusion.v1beta1.json b/packages/google-cloud-datafusion/samples/generated/v1beta1/snippet_metadata_google.cloud.datafusion.v1beta1.json deleted file mode 100644 index 8f8a165899c3..000000000000 --- a/packages/google-cloud-datafusion/samples/generated/v1beta1/snippet_metadata_google.cloud.datafusion.v1beta1.json +++ /dev/null @@ -1,603 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-datafusion", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.datafusion.v1beta1", - "version": "v1beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "datafusion_v1beta1_generated_DataFusion_ListAvailableVersions_async", - "title": "DataFusion listAvailableVersions Sample", - "origin": "API_DEFINITION", - "description": " Lists possible versions for Data Fusion instances in the specified project and location.", - "canonical": true, - "file": "data_fusion.list_available_versions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAvailableVersions", - "fullName": "google.cloud.datafusion.v1beta1.DataFusion.ListAvailableVersions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "latest_patch_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.datafusion.v1beta1.ListAvailableVersionsResponse", - "client": { - "shortName": "DataFusionClient", - "fullName": "google.cloud.datafusion.v1beta1.DataFusionClient" - }, - "method": { - "shortName": "ListAvailableVersions", - "fullName": "google.cloud.datafusion.v1beta1.DataFusion.ListAvailableVersions", - "service": { - "shortName": "DataFusion", - "fullName": "google.cloud.datafusion.v1beta1.DataFusion" - } - } - } - }, - { - "regionTag": "datafusion_v1beta1_generated_DataFusion_ListInstances_async", - "title": "DataFusion listInstances Sample", - "origin": "API_DEFINITION", - "description": " Lists Data Fusion instances in the specified project and location.", - "canonical": true, - "file": "data_fusion.list_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListInstances", - "fullName": "google.cloud.datafusion.v1beta1.DataFusion.ListInstances", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datafusion.v1beta1.ListInstancesResponse", - "client": { - "shortName": "DataFusionClient", - "fullName": "google.cloud.datafusion.v1beta1.DataFusionClient" - }, - "method": { - "shortName": "ListInstances", - "fullName": "google.cloud.datafusion.v1beta1.DataFusion.ListInstances", - "service": { - "shortName": "DataFusion", - "fullName": "google.cloud.datafusion.v1beta1.DataFusion" - } - } - } - }, - { - "regionTag": "datafusion_v1beta1_generated_DataFusion_GetInstance_async", - "title": "DataFusion getInstance Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Data Fusion instance.", - "canonical": true, - "file": "data_fusion.get_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetInstance", - "fullName": "google.cloud.datafusion.v1beta1.DataFusion.GetInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datafusion.v1beta1.Instance", - "client": { - "shortName": "DataFusionClient", - "fullName": "google.cloud.datafusion.v1beta1.DataFusionClient" - }, - "method": { - "shortName": "GetInstance", - "fullName": "google.cloud.datafusion.v1beta1.DataFusion.GetInstance", - "service": { - "shortName": "DataFusion", - "fullName": "google.cloud.datafusion.v1beta1.DataFusion" - } - } - } - }, - { - "regionTag": "datafusion_v1beta1_generated_DataFusion_CreateInstance_async", - "title": "DataFusion createInstance Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Data Fusion instance in the specified project and location.", - "canonical": true, - "file": "data_fusion.create_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateInstance", - "fullName": "google.cloud.datafusion.v1beta1.DataFusion.CreateInstance", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "instance_id", - "type": "TYPE_STRING" - }, - { - "name": "instance", - "type": ".google.cloud.datafusion.v1beta1.Instance" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataFusionClient", - "fullName": "google.cloud.datafusion.v1beta1.DataFusionClient" - }, - "method": { - "shortName": "CreateInstance", - "fullName": "google.cloud.datafusion.v1beta1.DataFusion.CreateInstance", - "service": { - "shortName": "DataFusion", - "fullName": "google.cloud.datafusion.v1beta1.DataFusion" - } - } - } - }, - { - "regionTag": "datafusion_v1beta1_generated_DataFusion_DeleteInstance_async", - "title": "DataFusion deleteInstance Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Data Fusion instance.", - "canonical": true, - "file": "data_fusion.delete_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteInstance", - "fullName": "google.cloud.datafusion.v1beta1.DataFusion.DeleteInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataFusionClient", - "fullName": "google.cloud.datafusion.v1beta1.DataFusionClient" - }, - "method": { - "shortName": "DeleteInstance", - "fullName": "google.cloud.datafusion.v1beta1.DataFusion.DeleteInstance", - "service": { - "shortName": "DataFusion", - "fullName": "google.cloud.datafusion.v1beta1.DataFusion" - } - } - } - }, - { - "regionTag": "datafusion_v1beta1_generated_DataFusion_UpdateInstance_async", - "title": "DataFusion updateInstance Sample", - "origin": "API_DEFINITION", - "description": " Updates a single Data Fusion instance.", - "canonical": true, - "file": "data_fusion.update_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateInstance", - "fullName": "google.cloud.datafusion.v1beta1.DataFusion.UpdateInstance", - "async": true, - "parameters": [ - { - "name": "instance", - "type": ".google.cloud.datafusion.v1beta1.Instance" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataFusionClient", - "fullName": "google.cloud.datafusion.v1beta1.DataFusionClient" - }, - "method": { - "shortName": "UpdateInstance", - "fullName": "google.cloud.datafusion.v1beta1.DataFusion.UpdateInstance", - "service": { - "shortName": "DataFusion", - "fullName": "google.cloud.datafusion.v1beta1.DataFusion" - } - } - } - }, - { - "regionTag": "datafusion_v1beta1_generated_DataFusion_RestartInstance_async", - "title": "DataFusion restartInstance Sample", - "origin": "API_DEFINITION", - "description": " Restart a single Data Fusion instance. At the end of an operation instance is fully restarted.", - "canonical": true, - "file": "data_fusion.restart_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RestartInstance", - "fullName": "google.cloud.datafusion.v1beta1.DataFusion.RestartInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataFusionClient", - "fullName": "google.cloud.datafusion.v1beta1.DataFusionClient" - }, - "method": { - "shortName": "RestartInstance", - "fullName": "google.cloud.datafusion.v1beta1.DataFusion.RestartInstance", - "service": { - "shortName": "DataFusion", - "fullName": "google.cloud.datafusion.v1beta1.DataFusion" - } - } - } - }, - { - "regionTag": "datafusion_v1beta1_generated_DataFusion_UpgradeInstance_async", - "title": "DataFusion upgradeInstance Sample", - "origin": "API_DEFINITION", - "description": " Upgrade a single Data Fusion instance. At the end of an operation instance is fully upgraded.", - "canonical": true, - "file": "data_fusion.upgrade_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpgradeInstance", - "fullName": "google.cloud.datafusion.v1beta1.DataFusion.UpgradeInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataFusionClient", - "fullName": "google.cloud.datafusion.v1beta1.DataFusionClient" - }, - "method": { - "shortName": "UpgradeInstance", - "fullName": "google.cloud.datafusion.v1beta1.DataFusion.UpgradeInstance", - "service": { - "shortName": "DataFusion", - "fullName": "google.cloud.datafusion.v1beta1.DataFusion" - } - } - } - }, - { - "regionTag": "datafusion_v1beta1_generated_DataFusion_RemoveIamPolicy_async", - "title": "DataFusion removeIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Remove IAM policy that is currently set on the given resource.", - "canonical": true, - "file": "data_fusion.remove_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveIamPolicy", - "fullName": "google.cloud.datafusion.v1beta1.DataFusion.RemoveIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datafusion.v1beta1.RemoveIamPolicyResponse", - "client": { - "shortName": "DataFusionClient", - "fullName": "google.cloud.datafusion.v1beta1.DataFusionClient" - }, - "method": { - "shortName": "RemoveIamPolicy", - "fullName": "google.cloud.datafusion.v1beta1.DataFusion.RemoveIamPolicy", - "service": { - "shortName": "DataFusion", - "fullName": "google.cloud.datafusion.v1beta1.DataFusion" - } - } - } - }, - { - "regionTag": "datafusion_v1beta1_generated_DataFusion_ListNamespaces_async", - "title": "DataFusion listNamespaces Sample", - "origin": "API_DEFINITION", - "description": " List namespaces in a given instance", - "canonical": true, - "file": "data_fusion.list_namespaces.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListNamespaces", - "fullName": "google.cloud.datafusion.v1beta1.DataFusion.ListNamespaces", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.datafusion.v1beta1.NamespaceView" - } - ], - "resultType": ".google.cloud.datafusion.v1beta1.ListNamespacesResponse", - "client": { - "shortName": "DataFusionClient", - "fullName": "google.cloud.datafusion.v1beta1.DataFusionClient" - }, - "method": { - "shortName": "ListNamespaces", - "fullName": "google.cloud.datafusion.v1beta1.DataFusion.ListNamespaces", - "service": { - "shortName": "DataFusion", - "fullName": "google.cloud.datafusion.v1beta1.DataFusion" - } - } - } - }, - { - "regionTag": "datafusion_v1beta1_generated_DataFusion_AddDnsPeering_async", - "title": "DataFusion addDnsPeering Sample", - "origin": "API_DEFINITION", - "description": " Add DNS peering on the given resource.", - "canonical": true, - "file": "data_fusion.add_dns_peering.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddDnsPeering", - "fullName": "google.cloud.datafusion.v1beta1.DataFusion.AddDnsPeering", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "dns_peering", - "type": ".google.cloud.datafusion.v1beta1.DnsPeering" - } - ], - "resultType": ".google.cloud.datafusion.v1beta1.AddDnsPeeringResponse", - "client": { - "shortName": "DataFusionClient", - "fullName": "google.cloud.datafusion.v1beta1.DataFusionClient" - }, - "method": { - "shortName": "AddDnsPeering", - "fullName": "google.cloud.datafusion.v1beta1.DataFusion.AddDnsPeering", - "service": { - "shortName": "DataFusion", - "fullName": "google.cloud.datafusion.v1beta1.DataFusion" - } - } - } - }, - { - "regionTag": "datafusion_v1beta1_generated_DataFusion_RemoveDnsPeering_async", - "title": "DataFusion removeDnsPeering Sample", - "origin": "API_DEFINITION", - "description": " Remove DNS peering on the given resource.", - "canonical": true, - "file": "data_fusion.remove_dns_peering.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveDnsPeering", - "fullName": "google.cloud.datafusion.v1beta1.DataFusion.RemoveDnsPeering", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datafusion.v1beta1.RemoveDnsPeeringResponse", - "client": { - "shortName": "DataFusionClient", - "fullName": "google.cloud.datafusion.v1beta1.DataFusionClient" - }, - "method": { - "shortName": "RemoveDnsPeering", - "fullName": "google.cloud.datafusion.v1beta1.DataFusion.RemoveDnsPeering", - "service": { - "shortName": "DataFusion", - "fullName": "google.cloud.datafusion.v1beta1.DataFusion" - } - } - } - }, - { - "regionTag": "datafusion_v1beta1_generated_DataFusion_ListDnsPeerings_async", - "title": "DataFusion listDnsPeerings Sample", - "origin": "API_DEFINITION", - "description": " List DNS peering for a given resource.", - "canonical": true, - "file": "data_fusion.list_dns_peerings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDnsPeerings", - "fullName": "google.cloud.datafusion.v1beta1.DataFusion.ListDnsPeerings", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datafusion.v1beta1.ListDnsPeeringsResponse", - "client": { - "shortName": "DataFusionClient", - "fullName": "google.cloud.datafusion.v1beta1.DataFusionClient" - }, - "method": { - "shortName": "ListDnsPeerings", - "fullName": "google.cloud.datafusion.v1beta1.DataFusion.ListDnsPeerings", - "service": { - "shortName": "DataFusion", - "fullName": "google.cloud.datafusion.v1beta1.DataFusion" - } - } - } - } - ] -} diff --git a/packages/google-cloud-datalabeling/samples/generated/v1beta1/snippet_metadata_google.cloud.datalabeling.v1beta1.json b/packages/google-cloud-datalabeling/samples/generated/v1beta1/snippet_metadata_google.cloud.datalabeling.v1beta1.json deleted file mode 100644 index 02e6d29ff8ed..000000000000 --- a/packages/google-cloud-datalabeling/samples/generated/v1beta1/snippet_metadata_google.cloud.datalabeling.v1beta1.json +++ /dev/null @@ -1,1591 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-datalabeling", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.datalabeling.v1beta1", - "version": "v1beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_CreateDataset_async", - "title": "datalabeling createDataset Sample", - "origin": "API_DEFINITION", - "description": " Creates dataset. If success return a Dataset resource.", - "canonical": true, - "file": "data_labeling_service.create_dataset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDataset", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.CreateDataset", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "dataset", - "type": ".google.cloud.datalabeling.v1beta1.Dataset" - } - ], - "resultType": ".google.cloud.datalabeling.v1beta1.Dataset", - "client": { - "shortName": "DataLabelingServiceClient", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingServiceClient" - }, - "method": { - "shortName": "CreateDataset", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.CreateDataset", - "service": { - "shortName": "DataLabelingService", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService" - } - } - } - }, - { - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetDataset_async", - "title": "datalabeling getDataset Sample", - "origin": "API_DEFINITION", - "description": " Gets dataset by resource name.", - "canonical": true, - "file": "data_labeling_service.get_dataset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDataset", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.GetDataset", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datalabeling.v1beta1.Dataset", - "client": { - "shortName": "DataLabelingServiceClient", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingServiceClient" - }, - "method": { - "shortName": "GetDataset", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.GetDataset", - "service": { - "shortName": "DataLabelingService", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService" - } - } - } - }, - { - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListDatasets_async", - "title": "datalabeling listDatasets Sample", - "origin": "API_DEFINITION", - "description": " Lists datasets under a project. Pagination is supported.", - "canonical": true, - "file": "data_labeling_service.list_datasets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDatasets", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.ListDatasets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datalabeling.v1beta1.ListDatasetsResponse", - "client": { - "shortName": "DataLabelingServiceClient", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingServiceClient" - }, - "method": { - "shortName": "ListDatasets", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.ListDatasets", - "service": { - "shortName": "DataLabelingService", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService" - } - } - } - }, - { - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_DeleteDataset_async", - "title": "datalabeling deleteDataset Sample", - "origin": "API_DEFINITION", - "description": " Deletes a dataset by resource name.", - "canonical": true, - "file": "data_labeling_service.delete_dataset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDataset", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.DeleteDataset", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DataLabelingServiceClient", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingServiceClient" - }, - "method": { - "shortName": "DeleteDataset", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.DeleteDataset", - "service": { - "shortName": "DataLabelingService", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService" - } - } - } - }, - { - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ImportData_async", - "title": "datalabeling importData Sample", - "origin": "API_DEFINITION", - "description": " Imports data into dataset based on source locations defined in request. It can be called multiple times for the same dataset. Each dataset can only have one long running operation running on it. For example, no labeling task (also long running operation) can be started while importing is still ongoing. Vice versa.", - "canonical": true, - "file": "data_labeling_service.import_data.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportData", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.ImportData", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "input_config", - "type": ".google.cloud.datalabeling.v1beta1.InputConfig" - }, - { - "name": "user_email_address", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataLabelingServiceClient", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingServiceClient" - }, - "method": { - "shortName": "ImportData", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.ImportData", - "service": { - "shortName": "DataLabelingService", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService" - } - } - } - }, - { - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ExportData_async", - "title": "datalabeling exportData Sample", - "origin": "API_DEFINITION", - "description": " Exports data and annotations from dataset.", - "canonical": true, - "file": "data_labeling_service.export_data.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportData", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.ExportData", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "annotated_dataset", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "output_config", - "type": ".google.cloud.datalabeling.v1beta1.OutputConfig" - }, - { - "name": "user_email_address", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataLabelingServiceClient", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingServiceClient" - }, - "method": { - "shortName": "ExportData", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.ExportData", - "service": { - "shortName": "DataLabelingService", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService" - } - } - } - }, - { - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetDataItem_async", - "title": "datalabeling getDataItem Sample", - "origin": "API_DEFINITION", - "description": " Gets a data item in a dataset by resource name. This API can be called after data are imported into dataset.", - "canonical": true, - "file": "data_labeling_service.get_data_item.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDataItem", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.GetDataItem", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datalabeling.v1beta1.DataItem", - "client": { - "shortName": "DataLabelingServiceClient", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingServiceClient" - }, - "method": { - "shortName": "GetDataItem", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.GetDataItem", - "service": { - "shortName": "DataLabelingService", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService" - } - } - } - }, - { - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListDataItems_async", - "title": "datalabeling listDataItems Sample", - "origin": "API_DEFINITION", - "description": " Lists data items in a dataset. This API can be called after data are imported into dataset. Pagination is supported.", - "canonical": true, - "file": "data_labeling_service.list_data_items.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDataItems", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.ListDataItems", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datalabeling.v1beta1.ListDataItemsResponse", - "client": { - "shortName": "DataLabelingServiceClient", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingServiceClient" - }, - "method": { - "shortName": "ListDataItems", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.ListDataItems", - "service": { - "shortName": "DataLabelingService", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService" - } - } - } - }, - { - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetAnnotatedDataset_async", - "title": "datalabeling getAnnotatedDataset Sample", - "origin": "API_DEFINITION", - "description": " Gets an annotated dataset by resource name.", - "canonical": true, - "file": "data_labeling_service.get_annotated_dataset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAnnotatedDataset", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.GetAnnotatedDataset", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datalabeling.v1beta1.AnnotatedDataset", - "client": { - "shortName": "DataLabelingServiceClient", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingServiceClient" - }, - "method": { - "shortName": "GetAnnotatedDataset", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.GetAnnotatedDataset", - "service": { - "shortName": "DataLabelingService", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService" - } - } - } - }, - { - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListAnnotatedDatasets_async", - "title": "datalabeling listAnnotatedDatasets Sample", - "origin": "API_DEFINITION", - "description": " Lists annotated datasets for a dataset. Pagination is supported.", - "canonical": true, - "file": "data_labeling_service.list_annotated_datasets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAnnotatedDatasets", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.ListAnnotatedDatasets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse", - "client": { - "shortName": "DataLabelingServiceClient", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingServiceClient" - }, - "method": { - "shortName": "ListAnnotatedDatasets", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.ListAnnotatedDatasets", - "service": { - "shortName": "DataLabelingService", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService" - } - } - } - }, - { - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_DeleteAnnotatedDataset_async", - "title": "datalabeling deleteAnnotatedDataset Sample", - "origin": "API_DEFINITION", - "description": " Deletes an annotated dataset by resource name.", - "canonical": true, - "file": "data_labeling_service.delete_annotated_dataset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAnnotatedDataset", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.DeleteAnnotatedDataset", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DataLabelingServiceClient", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingServiceClient" - }, - "method": { - "shortName": "DeleteAnnotatedDataset", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.DeleteAnnotatedDataset", - "service": { - "shortName": "DataLabelingService", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService" - } - } - } - }, - { - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_LabelImage_async", - "title": "datalabeling labelImage Sample", - "origin": "API_DEFINITION", - "description": " Starts a labeling task for image. The type of image labeling task is configured by feature in the request.", - "canonical": true, - "file": "data_labeling_service.label_image.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 89, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "LabelImage", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.LabelImage", - "async": true, - "parameters": [ - { - "name": "image_classification_config", - "type": ".google.cloud.datalabeling.v1beta1.ImageClassificationConfig" - }, - { - "name": "bounding_poly_config", - "type": ".google.cloud.datalabeling.v1beta1.BoundingPolyConfig" - }, - { - "name": "polyline_config", - "type": ".google.cloud.datalabeling.v1beta1.PolylineConfig" - }, - { - "name": "segmentation_config", - "type": ".google.cloud.datalabeling.v1beta1.SegmentationConfig" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "basic_config", - "type": ".google.cloud.datalabeling.v1beta1.HumanAnnotationConfig" - }, - { - "name": "feature", - "type": ".google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataLabelingServiceClient", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingServiceClient" - }, - "method": { - "shortName": "LabelImage", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.LabelImage", - "service": { - "shortName": "DataLabelingService", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService" - } - } - } - }, - { - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_LabelVideo_async", - "title": "datalabeling labelVideo Sample", - "origin": "API_DEFINITION", - "description": " Starts a labeling task for video. The type of video labeling task is configured by feature in the request.", - "canonical": true, - "file": "data_labeling_service.label_video.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 89, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "LabelVideo", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.LabelVideo", - "async": true, - "parameters": [ - { - "name": "video_classification_config", - "type": ".google.cloud.datalabeling.v1beta1.VideoClassificationConfig" - }, - { - "name": "object_detection_config", - "type": ".google.cloud.datalabeling.v1beta1.ObjectDetectionConfig" - }, - { - "name": "object_tracking_config", - "type": ".google.cloud.datalabeling.v1beta1.ObjectTrackingConfig" - }, - { - "name": "event_config", - "type": ".google.cloud.datalabeling.v1beta1.EventConfig" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "basic_config", - "type": ".google.cloud.datalabeling.v1beta1.HumanAnnotationConfig" - }, - { - "name": "feature", - "type": ".google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataLabelingServiceClient", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingServiceClient" - }, - "method": { - "shortName": "LabelVideo", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.LabelVideo", - "service": { - "shortName": "DataLabelingService", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService" - } - } - } - }, - { - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_LabelText_async", - "title": "datalabeling labelText Sample", - "origin": "API_DEFINITION", - "description": " Starts a labeling task for text. The type of text labeling task is configured by feature in the request.", - "canonical": true, - "file": "data_labeling_service.label_text.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "LabelText", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.LabelText", - "async": true, - "parameters": [ - { - "name": "text_classification_config", - "type": ".google.cloud.datalabeling.v1beta1.TextClassificationConfig" - }, - { - "name": "text_entity_extraction_config", - "type": ".google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "basic_config", - "type": ".google.cloud.datalabeling.v1beta1.HumanAnnotationConfig" - }, - { - "name": "feature", - "type": ".google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataLabelingServiceClient", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingServiceClient" - }, - "method": { - "shortName": "LabelText", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.LabelText", - "service": { - "shortName": "DataLabelingService", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService" - } - } - } - }, - { - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetExample_async", - "title": "datalabeling getExample Sample", - "origin": "API_DEFINITION", - "description": " Gets an example by resource name, including both data and annotation.", - "canonical": true, - "file": "data_labeling_service.get_example.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetExample", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.GetExample", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datalabeling.v1beta1.Example", - "client": { - "shortName": "DataLabelingServiceClient", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingServiceClient" - }, - "method": { - "shortName": "GetExample", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.GetExample", - "service": { - "shortName": "DataLabelingService", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService" - } - } - } - }, - { - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListExamples_async", - "title": "datalabeling listExamples Sample", - "origin": "API_DEFINITION", - "description": " Lists examples in an annotated dataset. Pagination is supported.", - "canonical": true, - "file": "data_labeling_service.list_examples.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListExamples", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.ListExamples", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datalabeling.v1beta1.ListExamplesResponse", - "client": { - "shortName": "DataLabelingServiceClient", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingServiceClient" - }, - "method": { - "shortName": "ListExamples", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.ListExamples", - "service": { - "shortName": "DataLabelingService", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService" - } - } - } - }, - { - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_CreateAnnotationSpecSet_async", - "title": "datalabeling createAnnotationSpecSet Sample", - "origin": "API_DEFINITION", - "description": " Creates an annotation spec set by providing a set of labels.", - "canonical": true, - "file": "data_labeling_service.create_annotation_spec_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAnnotationSpecSet", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.CreateAnnotationSpecSet", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "annotation_spec_set", - "type": ".google.cloud.datalabeling.v1beta1.AnnotationSpecSet" - } - ], - "resultType": ".google.cloud.datalabeling.v1beta1.AnnotationSpecSet", - "client": { - "shortName": "DataLabelingServiceClient", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingServiceClient" - }, - "method": { - "shortName": "CreateAnnotationSpecSet", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.CreateAnnotationSpecSet", - "service": { - "shortName": "DataLabelingService", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService" - } - } - } - }, - { - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetAnnotationSpecSet_async", - "title": "datalabeling getAnnotationSpecSet Sample", - "origin": "API_DEFINITION", - "description": " Gets an annotation spec set by resource name.", - "canonical": true, - "file": "data_labeling_service.get_annotation_spec_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAnnotationSpecSet", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.GetAnnotationSpecSet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datalabeling.v1beta1.AnnotationSpecSet", - "client": { - "shortName": "DataLabelingServiceClient", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingServiceClient" - }, - "method": { - "shortName": "GetAnnotationSpecSet", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.GetAnnotationSpecSet", - "service": { - "shortName": "DataLabelingService", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService" - } - } - } - }, - { - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListAnnotationSpecSets_async", - "title": "datalabeling listAnnotationSpecSets Sample", - "origin": "API_DEFINITION", - "description": " Lists annotation spec sets for a project. Pagination is supported.", - "canonical": true, - "file": "data_labeling_service.list_annotation_spec_sets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAnnotationSpecSets", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.ListAnnotationSpecSets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse", - "client": { - "shortName": "DataLabelingServiceClient", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingServiceClient" - }, - "method": { - "shortName": "ListAnnotationSpecSets", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.ListAnnotationSpecSets", - "service": { - "shortName": "DataLabelingService", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService" - } - } - } - }, - { - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_DeleteAnnotationSpecSet_async", - "title": "datalabeling deleteAnnotationSpecSet Sample", - "origin": "API_DEFINITION", - "description": " Deletes an annotation spec set by resource name.", - "canonical": true, - "file": "data_labeling_service.delete_annotation_spec_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAnnotationSpecSet", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.DeleteAnnotationSpecSet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DataLabelingServiceClient", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingServiceClient" - }, - "method": { - "shortName": "DeleteAnnotationSpecSet", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.DeleteAnnotationSpecSet", - "service": { - "shortName": "DataLabelingService", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService" - } - } - } - }, - { - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_CreateInstruction_async", - "title": "datalabeling createInstruction Sample", - "origin": "API_DEFINITION", - "description": " Creates an instruction for how data should be labeled.", - "canonical": true, - "file": "data_labeling_service.create_instruction.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateInstruction", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.CreateInstruction", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "instruction", - "type": ".google.cloud.datalabeling.v1beta1.Instruction" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataLabelingServiceClient", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingServiceClient" - }, - "method": { - "shortName": "CreateInstruction", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.CreateInstruction", - "service": { - "shortName": "DataLabelingService", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService" - } - } - } - }, - { - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetInstruction_async", - "title": "datalabeling getInstruction Sample", - "origin": "API_DEFINITION", - "description": " Gets an instruction by resource name.", - "canonical": true, - "file": "data_labeling_service.get_instruction.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetInstruction", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.GetInstruction", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datalabeling.v1beta1.Instruction", - "client": { - "shortName": "DataLabelingServiceClient", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingServiceClient" - }, - "method": { - "shortName": "GetInstruction", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.GetInstruction", - "service": { - "shortName": "DataLabelingService", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService" - } - } - } - }, - { - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListInstructions_async", - "title": "datalabeling listInstructions Sample", - "origin": "API_DEFINITION", - "description": " Lists instructions for a project. Pagination is supported.", - "canonical": true, - "file": "data_labeling_service.list_instructions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListInstructions", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.ListInstructions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datalabeling.v1beta1.ListInstructionsResponse", - "client": { - "shortName": "DataLabelingServiceClient", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingServiceClient" - }, - "method": { - "shortName": "ListInstructions", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.ListInstructions", - "service": { - "shortName": "DataLabelingService", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService" - } - } - } - }, - { - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_DeleteInstruction_async", - "title": "datalabeling deleteInstruction Sample", - "origin": "API_DEFINITION", - "description": " Deletes an instruction object by resource name.", - "canonical": true, - "file": "data_labeling_service.delete_instruction.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteInstruction", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.DeleteInstruction", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DataLabelingServiceClient", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingServiceClient" - }, - "method": { - "shortName": "DeleteInstruction", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.DeleteInstruction", - "service": { - "shortName": "DataLabelingService", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService" - } - } - } - }, - { - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetEvaluation_async", - "title": "datalabeling getEvaluation Sample", - "origin": "API_DEFINITION", - "description": " Gets an evaluation by resource name (to search, use [projects.evaluations.search][google.cloud.datalabeling.v1beta1.DataLabelingService.SearchEvaluations]).", - "canonical": true, - "file": "data_labeling_service.get_evaluation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEvaluation", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.GetEvaluation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datalabeling.v1beta1.Evaluation", - "client": { - "shortName": "DataLabelingServiceClient", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingServiceClient" - }, - "method": { - "shortName": "GetEvaluation", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.GetEvaluation", - "service": { - "shortName": "DataLabelingService", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService" - } - } - } - }, - { - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_SearchEvaluations_async", - "title": "datalabeling searchEvaluations Sample", - "origin": "API_DEFINITION", - "description": " Searches [evaluations][google.cloud.datalabeling.v1beta1.Evaluation] within a project.", - "canonical": true, - "file": "data_labeling_service.search_evaluations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 101, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchEvaluations", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.SearchEvaluations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse", - "client": { - "shortName": "DataLabelingServiceClient", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingServiceClient" - }, - "method": { - "shortName": "SearchEvaluations", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.SearchEvaluations", - "service": { - "shortName": "DataLabelingService", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService" - } - } - } - }, - { - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_SearchExampleComparisons_async", - "title": "datalabeling searchExampleComparisons Sample", - "origin": "API_DEFINITION", - "description": " Searches example comparisons from an evaluation. The return format is a list of example comparisons that show ground truth and prediction(s) for a single input. Search by providing an evaluation ID.", - "canonical": true, - "file": "data_labeling_service.search_example_comparisons.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchExampleComparisons", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.SearchExampleComparisons", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse", - "client": { - "shortName": "DataLabelingServiceClient", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingServiceClient" - }, - "method": { - "shortName": "SearchExampleComparisons", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.SearchExampleComparisons", - "service": { - "shortName": "DataLabelingService", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService" - } - } - } - }, - { - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_CreateEvaluationJob_async", - "title": "datalabeling createEvaluationJob Sample", - "origin": "API_DEFINITION", - "description": " Creates an evaluation job.", - "canonical": true, - "file": "data_labeling_service.create_evaluation_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateEvaluationJob", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.CreateEvaluationJob", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "job", - "type": ".google.cloud.datalabeling.v1beta1.EvaluationJob" - } - ], - "resultType": ".google.cloud.datalabeling.v1beta1.EvaluationJob", - "client": { - "shortName": "DataLabelingServiceClient", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingServiceClient" - }, - "method": { - "shortName": "CreateEvaluationJob", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.CreateEvaluationJob", - "service": { - "shortName": "DataLabelingService", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService" - } - } - } - }, - { - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_UpdateEvaluationJob_async", - "title": "datalabeling updateEvaluationJob Sample", - "origin": "API_DEFINITION", - "description": " Updates an evaluation job. You can only update certain fields of the job's [EvaluationJobConfig][google.cloud.datalabeling.v1beta1.EvaluationJobConfig]: `humanAnnotationConfig.instruction`, `exampleCount`, and `exampleSamplePercentage`. If you want to change any other aspect of the evaluation job, you must delete the job and create a new one.", - "canonical": true, - "file": "data_labeling_service.update_evaluation_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateEvaluationJob", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.UpdateEvaluationJob", - "async": true, - "parameters": [ - { - "name": "evaluation_job", - "type": ".google.cloud.datalabeling.v1beta1.EvaluationJob" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.datalabeling.v1beta1.EvaluationJob", - "client": { - "shortName": "DataLabelingServiceClient", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingServiceClient" - }, - "method": { - "shortName": "UpdateEvaluationJob", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.UpdateEvaluationJob", - "service": { - "shortName": "DataLabelingService", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService" - } - } - } - }, - { - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_GetEvaluationJob_async", - "title": "datalabeling getEvaluationJob Sample", - "origin": "API_DEFINITION", - "description": " Gets an evaluation job by resource name.", - "canonical": true, - "file": "data_labeling_service.get_evaluation_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEvaluationJob", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.GetEvaluationJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datalabeling.v1beta1.EvaluationJob", - "client": { - "shortName": "DataLabelingServiceClient", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingServiceClient" - }, - "method": { - "shortName": "GetEvaluationJob", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.GetEvaluationJob", - "service": { - "shortName": "DataLabelingService", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService" - } - } - } - }, - { - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_PauseEvaluationJob_async", - "title": "datalabeling pauseEvaluationJob Sample", - "origin": "API_DEFINITION", - "description": " Pauses an evaluation job. Pausing an evaluation job that is already in a `PAUSED` state is a no-op.", - "canonical": true, - "file": "data_labeling_service.pause_evaluation_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PauseEvaluationJob", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.PauseEvaluationJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DataLabelingServiceClient", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingServiceClient" - }, - "method": { - "shortName": "PauseEvaluationJob", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.PauseEvaluationJob", - "service": { - "shortName": "DataLabelingService", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService" - } - } - } - }, - { - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ResumeEvaluationJob_async", - "title": "datalabeling resumeEvaluationJob Sample", - "origin": "API_DEFINITION", - "description": " Resumes a paused evaluation job. A deleted evaluation job can't be resumed. Resuming a running or scheduled evaluation job is a no-op.", - "canonical": true, - "file": "data_labeling_service.resume_evaluation_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResumeEvaluationJob", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.ResumeEvaluationJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DataLabelingServiceClient", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingServiceClient" - }, - "method": { - "shortName": "ResumeEvaluationJob", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.ResumeEvaluationJob", - "service": { - "shortName": "DataLabelingService", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService" - } - } - } - }, - { - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_DeleteEvaluationJob_async", - "title": "datalabeling deleteEvaluationJob Sample", - "origin": "API_DEFINITION", - "description": " Stops and deletes an evaluation job.", - "canonical": true, - "file": "data_labeling_service.delete_evaluation_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteEvaluationJob", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.DeleteEvaluationJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DataLabelingServiceClient", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingServiceClient" - }, - "method": { - "shortName": "DeleteEvaluationJob", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.DeleteEvaluationJob", - "service": { - "shortName": "DataLabelingService", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService" - } - } - } - }, - { - "regionTag": "datalabeling_v1beta1_generated_DataLabelingService_ListEvaluationJobs_async", - "title": "datalabeling listEvaluationJobs Sample", - "origin": "API_DEFINITION", - "description": " Lists all evaluation jobs within a project with possible filters. Pagination is supported.", - "canonical": true, - "file": "data_labeling_service.list_evaluation_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEvaluationJobs", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.ListEvaluationJobs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse", - "client": { - "shortName": "DataLabelingServiceClient", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingServiceClient" - }, - "method": { - "shortName": "ListEvaluationJobs", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService.ListEvaluationJobs", - "service": { - "shortName": "DataLabelingService", - "fullName": "google.cloud.datalabeling.v1beta1.DataLabelingService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-dataplex/samples/generated/v1/snippet_metadata_google.cloud.dataplex.v1.json b/packages/google-cloud-dataplex/samples/generated/v1/snippet_metadata_google.cloud.dataplex.v1.json deleted file mode 100644 index e508b2932b7b..000000000000 --- a/packages/google-cloud-dataplex/samples/generated/v1/snippet_metadata_google.cloud.dataplex.v1.json +++ /dev/null @@ -1,6199 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-dataplex", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.dataplex.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "dataplex_v1_generated_BusinessGlossaryService_CreateGlossary_async", - "title": "BusinessGlossaryService createGlossary Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Glossary resource.", - "canonical": true, - "file": "business_glossary_service.create_glossary.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateGlossary", - "fullName": "google.cloud.dataplex.v1.BusinessGlossaryService.CreateGlossary", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "glossary_id", - "type": "TYPE_STRING" - }, - { - "name": "glossary", - "type": ".google.cloud.dataplex.v1.Glossary" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BusinessGlossaryServiceClient", - "fullName": "google.cloud.dataplex.v1.BusinessGlossaryServiceClient" - }, - "method": { - "shortName": "CreateGlossary", - "fullName": "google.cloud.dataplex.v1.BusinessGlossaryService.CreateGlossary", - "service": { - "shortName": "BusinessGlossaryService", - "fullName": "google.cloud.dataplex.v1.BusinessGlossaryService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_BusinessGlossaryService_UpdateGlossary_async", - "title": "BusinessGlossaryService updateGlossary Sample", - "origin": "API_DEFINITION", - "description": " Updates a Glossary resource.", - "canonical": true, - "file": "business_glossary_service.update_glossary.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateGlossary", - "fullName": "google.cloud.dataplex.v1.BusinessGlossaryService.UpdateGlossary", - "async": true, - "parameters": [ - { - "name": "glossary", - "type": ".google.cloud.dataplex.v1.Glossary" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BusinessGlossaryServiceClient", - "fullName": "google.cloud.dataplex.v1.BusinessGlossaryServiceClient" - }, - "method": { - "shortName": "UpdateGlossary", - "fullName": "google.cloud.dataplex.v1.BusinessGlossaryService.UpdateGlossary", - "service": { - "shortName": "BusinessGlossaryService", - "fullName": "google.cloud.dataplex.v1.BusinessGlossaryService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_BusinessGlossaryService_DeleteGlossary_async", - "title": "BusinessGlossaryService deleteGlossary Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Glossary resource. All the categories and terms within the Glossary must be deleted before the Glossary can be deleted.", - "canonical": true, - "file": "business_glossary_service.delete_glossary.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteGlossary", - "fullName": "google.cloud.dataplex.v1.BusinessGlossaryService.DeleteGlossary", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BusinessGlossaryServiceClient", - "fullName": "google.cloud.dataplex.v1.BusinessGlossaryServiceClient" - }, - "method": { - "shortName": "DeleteGlossary", - "fullName": "google.cloud.dataplex.v1.BusinessGlossaryService.DeleteGlossary", - "service": { - "shortName": "BusinessGlossaryService", - "fullName": "google.cloud.dataplex.v1.BusinessGlossaryService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_BusinessGlossaryService_GetGlossary_async", - "title": "BusinessGlossaryService getGlossary Sample", - "origin": "API_DEFINITION", - "description": " Gets a Glossary resource.", - "canonical": true, - "file": "business_glossary_service.get_glossary.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetGlossary", - "fullName": "google.cloud.dataplex.v1.BusinessGlossaryService.GetGlossary", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataplex.v1.Glossary", - "client": { - "shortName": "BusinessGlossaryServiceClient", - "fullName": "google.cloud.dataplex.v1.BusinessGlossaryServiceClient" - }, - "method": { - "shortName": "GetGlossary", - "fullName": "google.cloud.dataplex.v1.BusinessGlossaryService.GetGlossary", - "service": { - "shortName": "BusinessGlossaryService", - "fullName": "google.cloud.dataplex.v1.BusinessGlossaryService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_BusinessGlossaryService_ListGlossaries_async", - "title": "BusinessGlossaryService listGlossaries Sample", - "origin": "API_DEFINITION", - "description": " Lists Glossary resources in a project and location.", - "canonical": true, - "file": "business_glossary_service.list_glossaries.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListGlossaries", - "fullName": "google.cloud.dataplex.v1.BusinessGlossaryService.ListGlossaries", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataplex.v1.ListGlossariesResponse", - "client": { - "shortName": "BusinessGlossaryServiceClient", - "fullName": "google.cloud.dataplex.v1.BusinessGlossaryServiceClient" - }, - "method": { - "shortName": "ListGlossaries", - "fullName": "google.cloud.dataplex.v1.BusinessGlossaryService.ListGlossaries", - "service": { - "shortName": "BusinessGlossaryService", - "fullName": "google.cloud.dataplex.v1.BusinessGlossaryService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_BusinessGlossaryService_CreateGlossaryCategory_async", - "title": "BusinessGlossaryService createGlossaryCategory Sample", - "origin": "API_DEFINITION", - "description": " Creates a new GlossaryCategory resource.", - "canonical": true, - "file": "business_glossary_service.create_glossary_category.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateGlossaryCategory", - "fullName": "google.cloud.dataplex.v1.BusinessGlossaryService.CreateGlossaryCategory", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "category_id", - "type": "TYPE_STRING" - }, - { - "name": "category", - "type": ".google.cloud.dataplex.v1.GlossaryCategory" - } - ], - "resultType": ".google.cloud.dataplex.v1.GlossaryCategory", - "client": { - "shortName": "BusinessGlossaryServiceClient", - "fullName": "google.cloud.dataplex.v1.BusinessGlossaryServiceClient" - }, - "method": { - "shortName": "CreateGlossaryCategory", - "fullName": "google.cloud.dataplex.v1.BusinessGlossaryService.CreateGlossaryCategory", - "service": { - "shortName": "BusinessGlossaryService", - "fullName": "google.cloud.dataplex.v1.BusinessGlossaryService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_BusinessGlossaryService_UpdateGlossaryCategory_async", - "title": "BusinessGlossaryService updateGlossaryCategory Sample", - "origin": "API_DEFINITION", - "description": " Updates a GlossaryCategory resource.", - "canonical": true, - "file": "business_glossary_service.update_glossary_category.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateGlossaryCategory", - "fullName": "google.cloud.dataplex.v1.BusinessGlossaryService.UpdateGlossaryCategory", - "async": true, - "parameters": [ - { - "name": "category", - "type": ".google.cloud.dataplex.v1.GlossaryCategory" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dataplex.v1.GlossaryCategory", - "client": { - "shortName": "BusinessGlossaryServiceClient", - "fullName": "google.cloud.dataplex.v1.BusinessGlossaryServiceClient" - }, - "method": { - "shortName": "UpdateGlossaryCategory", - "fullName": "google.cloud.dataplex.v1.BusinessGlossaryService.UpdateGlossaryCategory", - "service": { - "shortName": "BusinessGlossaryService", - "fullName": "google.cloud.dataplex.v1.BusinessGlossaryService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_BusinessGlossaryService_DeleteGlossaryCategory_async", - "title": "BusinessGlossaryService deleteGlossaryCategory Sample", - "origin": "API_DEFINITION", - "description": " Deletes a GlossaryCategory resource. All the GlossaryCategories and GlossaryTerms nested directly under the specified GlossaryCategory will be moved one level up to the parent in the hierarchy.", - "canonical": true, - "file": "business_glossary_service.delete_glossary_category.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteGlossaryCategory", - "fullName": "google.cloud.dataplex.v1.BusinessGlossaryService.DeleteGlossaryCategory", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "BusinessGlossaryServiceClient", - "fullName": "google.cloud.dataplex.v1.BusinessGlossaryServiceClient" - }, - "method": { - "shortName": "DeleteGlossaryCategory", - "fullName": "google.cloud.dataplex.v1.BusinessGlossaryService.DeleteGlossaryCategory", - "service": { - "shortName": "BusinessGlossaryService", - "fullName": "google.cloud.dataplex.v1.BusinessGlossaryService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_BusinessGlossaryService_GetGlossaryCategory_async", - "title": "BusinessGlossaryService getGlossaryCategory Sample", - "origin": "API_DEFINITION", - "description": " Gets a GlossaryCategory resource.", - "canonical": true, - "file": "business_glossary_service.get_glossary_category.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetGlossaryCategory", - "fullName": "google.cloud.dataplex.v1.BusinessGlossaryService.GetGlossaryCategory", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataplex.v1.GlossaryCategory", - "client": { - "shortName": "BusinessGlossaryServiceClient", - "fullName": "google.cloud.dataplex.v1.BusinessGlossaryServiceClient" - }, - "method": { - "shortName": "GetGlossaryCategory", - "fullName": "google.cloud.dataplex.v1.BusinessGlossaryService.GetGlossaryCategory", - "service": { - "shortName": "BusinessGlossaryService", - "fullName": "google.cloud.dataplex.v1.BusinessGlossaryService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_BusinessGlossaryService_ListGlossaryCategories_async", - "title": "BusinessGlossaryService listGlossaryCategories Sample", - "origin": "API_DEFINITION", - "description": " Lists GlossaryCategory resources in a Glossary.", - "canonical": true, - "file": "business_glossary_service.list_glossary_categories.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 91, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListGlossaryCategories", - "fullName": "google.cloud.dataplex.v1.BusinessGlossaryService.ListGlossaryCategories", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataplex.v1.ListGlossaryCategoriesResponse", - "client": { - "shortName": "BusinessGlossaryServiceClient", - "fullName": "google.cloud.dataplex.v1.BusinessGlossaryServiceClient" - }, - "method": { - "shortName": "ListGlossaryCategories", - "fullName": "google.cloud.dataplex.v1.BusinessGlossaryService.ListGlossaryCategories", - "service": { - "shortName": "BusinessGlossaryService", - "fullName": "google.cloud.dataplex.v1.BusinessGlossaryService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_BusinessGlossaryService_CreateGlossaryTerm_async", - "title": "BusinessGlossaryService createGlossaryTerm Sample", - "origin": "API_DEFINITION", - "description": " Creates a new GlossaryTerm resource.", - "canonical": true, - "file": "business_glossary_service.create_glossary_term.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateGlossaryTerm", - "fullName": "google.cloud.dataplex.v1.BusinessGlossaryService.CreateGlossaryTerm", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "term_id", - "type": "TYPE_STRING" - }, - { - "name": "term", - "type": ".google.cloud.dataplex.v1.GlossaryTerm" - } - ], - "resultType": ".google.cloud.dataplex.v1.GlossaryTerm", - "client": { - "shortName": "BusinessGlossaryServiceClient", - "fullName": "google.cloud.dataplex.v1.BusinessGlossaryServiceClient" - }, - "method": { - "shortName": "CreateGlossaryTerm", - "fullName": "google.cloud.dataplex.v1.BusinessGlossaryService.CreateGlossaryTerm", - "service": { - "shortName": "BusinessGlossaryService", - "fullName": "google.cloud.dataplex.v1.BusinessGlossaryService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_BusinessGlossaryService_UpdateGlossaryTerm_async", - "title": "BusinessGlossaryService updateGlossaryTerm Sample", - "origin": "API_DEFINITION", - "description": " Updates a GlossaryTerm resource.", - "canonical": true, - "file": "business_glossary_service.update_glossary_term.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateGlossaryTerm", - "fullName": "google.cloud.dataplex.v1.BusinessGlossaryService.UpdateGlossaryTerm", - "async": true, - "parameters": [ - { - "name": "term", - "type": ".google.cloud.dataplex.v1.GlossaryTerm" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dataplex.v1.GlossaryTerm", - "client": { - "shortName": "BusinessGlossaryServiceClient", - "fullName": "google.cloud.dataplex.v1.BusinessGlossaryServiceClient" - }, - "method": { - "shortName": "UpdateGlossaryTerm", - "fullName": "google.cloud.dataplex.v1.BusinessGlossaryService.UpdateGlossaryTerm", - "service": { - "shortName": "BusinessGlossaryService", - "fullName": "google.cloud.dataplex.v1.BusinessGlossaryService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_BusinessGlossaryService_DeleteGlossaryTerm_async", - "title": "BusinessGlossaryService deleteGlossaryTerm Sample", - "origin": "API_DEFINITION", - "description": " Deletes a GlossaryTerm resource.", - "canonical": true, - "file": "business_glossary_service.delete_glossary_term.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteGlossaryTerm", - "fullName": "google.cloud.dataplex.v1.BusinessGlossaryService.DeleteGlossaryTerm", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "BusinessGlossaryServiceClient", - "fullName": "google.cloud.dataplex.v1.BusinessGlossaryServiceClient" - }, - "method": { - "shortName": "DeleteGlossaryTerm", - "fullName": "google.cloud.dataplex.v1.BusinessGlossaryService.DeleteGlossaryTerm", - "service": { - "shortName": "BusinessGlossaryService", - "fullName": "google.cloud.dataplex.v1.BusinessGlossaryService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_BusinessGlossaryService_GetGlossaryTerm_async", - "title": "BusinessGlossaryService getGlossaryTerm Sample", - "origin": "API_DEFINITION", - "description": " Gets a GlossaryTerm resource.", - "canonical": true, - "file": "business_glossary_service.get_glossary_term.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetGlossaryTerm", - "fullName": "google.cloud.dataplex.v1.BusinessGlossaryService.GetGlossaryTerm", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataplex.v1.GlossaryTerm", - "client": { - "shortName": "BusinessGlossaryServiceClient", - "fullName": "google.cloud.dataplex.v1.BusinessGlossaryServiceClient" - }, - "method": { - "shortName": "GetGlossaryTerm", - "fullName": "google.cloud.dataplex.v1.BusinessGlossaryService.GetGlossaryTerm", - "service": { - "shortName": "BusinessGlossaryService", - "fullName": "google.cloud.dataplex.v1.BusinessGlossaryService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_BusinessGlossaryService_ListGlossaryTerms_async", - "title": "BusinessGlossaryService listGlossaryTerms Sample", - "origin": "API_DEFINITION", - "description": " Lists GlossaryTerm resources in a Glossary.", - "canonical": true, - "file": "business_glossary_service.list_glossary_terms.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 91, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListGlossaryTerms", - "fullName": "google.cloud.dataplex.v1.BusinessGlossaryService.ListGlossaryTerms", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataplex.v1.ListGlossaryTermsResponse", - "client": { - "shortName": "BusinessGlossaryServiceClient", - "fullName": "google.cloud.dataplex.v1.BusinessGlossaryServiceClient" - }, - "method": { - "shortName": "ListGlossaryTerms", - "fullName": "google.cloud.dataplex.v1.BusinessGlossaryService.ListGlossaryTerms", - "service": { - "shortName": "BusinessGlossaryService", - "fullName": "google.cloud.dataplex.v1.BusinessGlossaryService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_CatalogService_CreateEntryType_async", - "title": "BusinessGlossaryService createEntryType Sample", - "origin": "API_DEFINITION", - "description": " Creates an EntryType.", - "canonical": true, - "file": "catalog_service.create_entry_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateEntryType", - "fullName": "google.cloud.dataplex.v1.CatalogService.CreateEntryType", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "entry_type_id", - "type": "TYPE_STRING" - }, - { - "name": "entry_type", - "type": ".google.cloud.dataplex.v1.EntryType" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.dataplex.v1.CatalogServiceClient" - }, - "method": { - "shortName": "CreateEntryType", - "fullName": "google.cloud.dataplex.v1.CatalogService.CreateEntryType", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.dataplex.v1.CatalogService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_CatalogService_UpdateEntryType_async", - "title": "BusinessGlossaryService updateEntryType Sample", - "origin": "API_DEFINITION", - "description": " Updates an EntryType.", - "canonical": true, - "file": "catalog_service.update_entry_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateEntryType", - "fullName": "google.cloud.dataplex.v1.CatalogService.UpdateEntryType", - "async": true, - "parameters": [ - { - "name": "entry_type", - "type": ".google.cloud.dataplex.v1.EntryType" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.dataplex.v1.CatalogServiceClient" - }, - "method": { - "shortName": "UpdateEntryType", - "fullName": "google.cloud.dataplex.v1.CatalogService.UpdateEntryType", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.dataplex.v1.CatalogService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_CatalogService_DeleteEntryType_async", - "title": "BusinessGlossaryService deleteEntryType Sample", - "origin": "API_DEFINITION", - "description": " Deletes an EntryType.", - "canonical": true, - "file": "catalog_service.delete_entry_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteEntryType", - "fullName": "google.cloud.dataplex.v1.CatalogService.DeleteEntryType", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.dataplex.v1.CatalogServiceClient" - }, - "method": { - "shortName": "DeleteEntryType", - "fullName": "google.cloud.dataplex.v1.CatalogService.DeleteEntryType", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.dataplex.v1.CatalogService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_CatalogService_ListEntryTypes_async", - "title": "BusinessGlossaryService listEntryTypes Sample", - "origin": "API_DEFINITION", - "description": " Lists EntryType resources in a project and location.", - "canonical": true, - "file": "catalog_service.list_entry_types.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEntryTypes", - "fullName": "google.cloud.dataplex.v1.CatalogService.ListEntryTypes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataplex.v1.ListEntryTypesResponse", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.dataplex.v1.CatalogServiceClient" - }, - "method": { - "shortName": "ListEntryTypes", - "fullName": "google.cloud.dataplex.v1.CatalogService.ListEntryTypes", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.dataplex.v1.CatalogService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_CatalogService_GetEntryType_async", - "title": "BusinessGlossaryService getEntryType Sample", - "origin": "API_DEFINITION", - "description": " Gets an EntryType.", - "canonical": true, - "file": "catalog_service.get_entry_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEntryType", - "fullName": "google.cloud.dataplex.v1.CatalogService.GetEntryType", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataplex.v1.EntryType", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.dataplex.v1.CatalogServiceClient" - }, - "method": { - "shortName": "GetEntryType", - "fullName": "google.cloud.dataplex.v1.CatalogService.GetEntryType", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.dataplex.v1.CatalogService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_CatalogService_CreateAspectType_async", - "title": "BusinessGlossaryService createAspectType Sample", - "origin": "API_DEFINITION", - "description": " Creates an AspectType.", - "canonical": true, - "file": "catalog_service.create_aspect_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAspectType", - "fullName": "google.cloud.dataplex.v1.CatalogService.CreateAspectType", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "aspect_type_id", - "type": "TYPE_STRING" - }, - { - "name": "aspect_type", - "type": ".google.cloud.dataplex.v1.AspectType" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.dataplex.v1.CatalogServiceClient" - }, - "method": { - "shortName": "CreateAspectType", - "fullName": "google.cloud.dataplex.v1.CatalogService.CreateAspectType", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.dataplex.v1.CatalogService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_CatalogService_UpdateAspectType_async", - "title": "BusinessGlossaryService updateAspectType Sample", - "origin": "API_DEFINITION", - "description": " Updates an AspectType.", - "canonical": true, - "file": "catalog_service.update_aspect_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAspectType", - "fullName": "google.cloud.dataplex.v1.CatalogService.UpdateAspectType", - "async": true, - "parameters": [ - { - "name": "aspect_type", - "type": ".google.cloud.dataplex.v1.AspectType" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.dataplex.v1.CatalogServiceClient" - }, - "method": { - "shortName": "UpdateAspectType", - "fullName": "google.cloud.dataplex.v1.CatalogService.UpdateAspectType", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.dataplex.v1.CatalogService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_CatalogService_DeleteAspectType_async", - "title": "BusinessGlossaryService deleteAspectType Sample", - "origin": "API_DEFINITION", - "description": " Deletes an AspectType.", - "canonical": true, - "file": "catalog_service.delete_aspect_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAspectType", - "fullName": "google.cloud.dataplex.v1.CatalogService.DeleteAspectType", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.dataplex.v1.CatalogServiceClient" - }, - "method": { - "shortName": "DeleteAspectType", - "fullName": "google.cloud.dataplex.v1.CatalogService.DeleteAspectType", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.dataplex.v1.CatalogService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_CatalogService_ListAspectTypes_async", - "title": "BusinessGlossaryService listAspectTypes Sample", - "origin": "API_DEFINITION", - "description": " Lists AspectType resources in a project and location.", - "canonical": true, - "file": "catalog_service.list_aspect_types.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAspectTypes", - "fullName": "google.cloud.dataplex.v1.CatalogService.ListAspectTypes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataplex.v1.ListAspectTypesResponse", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.dataplex.v1.CatalogServiceClient" - }, - "method": { - "shortName": "ListAspectTypes", - "fullName": "google.cloud.dataplex.v1.CatalogService.ListAspectTypes", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.dataplex.v1.CatalogService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_CatalogService_GetAspectType_async", - "title": "BusinessGlossaryService getAspectType Sample", - "origin": "API_DEFINITION", - "description": " Gets an AspectType.", - "canonical": true, - "file": "catalog_service.get_aspect_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAspectType", - "fullName": "google.cloud.dataplex.v1.CatalogService.GetAspectType", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataplex.v1.AspectType", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.dataplex.v1.CatalogServiceClient" - }, - "method": { - "shortName": "GetAspectType", - "fullName": "google.cloud.dataplex.v1.CatalogService.GetAspectType", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.dataplex.v1.CatalogService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_CatalogService_CreateEntryGroup_async", - "title": "BusinessGlossaryService createEntryGroup Sample", - "origin": "API_DEFINITION", - "description": " Creates an EntryGroup.", - "canonical": true, - "file": "catalog_service.create_entry_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateEntryGroup", - "fullName": "google.cloud.dataplex.v1.CatalogService.CreateEntryGroup", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "entry_group_id", - "type": "TYPE_STRING" - }, - { - "name": "entry_group", - "type": ".google.cloud.dataplex.v1.EntryGroup" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.dataplex.v1.CatalogServiceClient" - }, - "method": { - "shortName": "CreateEntryGroup", - "fullName": "google.cloud.dataplex.v1.CatalogService.CreateEntryGroup", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.dataplex.v1.CatalogService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_CatalogService_UpdateEntryGroup_async", - "title": "BusinessGlossaryService updateEntryGroup Sample", - "origin": "API_DEFINITION", - "description": " Updates an EntryGroup.", - "canonical": true, - "file": "catalog_service.update_entry_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateEntryGroup", - "fullName": "google.cloud.dataplex.v1.CatalogService.UpdateEntryGroup", - "async": true, - "parameters": [ - { - "name": "entry_group", - "type": ".google.cloud.dataplex.v1.EntryGroup" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.dataplex.v1.CatalogServiceClient" - }, - "method": { - "shortName": "UpdateEntryGroup", - "fullName": "google.cloud.dataplex.v1.CatalogService.UpdateEntryGroup", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.dataplex.v1.CatalogService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_CatalogService_DeleteEntryGroup_async", - "title": "BusinessGlossaryService deleteEntryGroup Sample", - "origin": "API_DEFINITION", - "description": " Deletes an EntryGroup.", - "canonical": true, - "file": "catalog_service.delete_entry_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteEntryGroup", - "fullName": "google.cloud.dataplex.v1.CatalogService.DeleteEntryGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.dataplex.v1.CatalogServiceClient" - }, - "method": { - "shortName": "DeleteEntryGroup", - "fullName": "google.cloud.dataplex.v1.CatalogService.DeleteEntryGroup", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.dataplex.v1.CatalogService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_CatalogService_ListEntryGroups_async", - "title": "BusinessGlossaryService listEntryGroups Sample", - "origin": "API_DEFINITION", - "description": " Lists EntryGroup resources in a project and location.", - "canonical": true, - "file": "catalog_service.list_entry_groups.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEntryGroups", - "fullName": "google.cloud.dataplex.v1.CatalogService.ListEntryGroups", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataplex.v1.ListEntryGroupsResponse", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.dataplex.v1.CatalogServiceClient" - }, - "method": { - "shortName": "ListEntryGroups", - "fullName": "google.cloud.dataplex.v1.CatalogService.ListEntryGroups", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.dataplex.v1.CatalogService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_CatalogService_GetEntryGroup_async", - "title": "BusinessGlossaryService getEntryGroup Sample", - "origin": "API_DEFINITION", - "description": " Gets an EntryGroup.", - "canonical": true, - "file": "catalog_service.get_entry_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEntryGroup", - "fullName": "google.cloud.dataplex.v1.CatalogService.GetEntryGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataplex.v1.EntryGroup", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.dataplex.v1.CatalogServiceClient" - }, - "method": { - "shortName": "GetEntryGroup", - "fullName": "google.cloud.dataplex.v1.CatalogService.GetEntryGroup", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.dataplex.v1.CatalogService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_CatalogService_CreateEntry_async", - "title": "BusinessGlossaryService createEntry Sample", - "origin": "API_DEFINITION", - "description": " Creates an Entry.", - "canonical": true, - "file": "catalog_service.create_entry.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateEntry", - "fullName": "google.cloud.dataplex.v1.CatalogService.CreateEntry", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "entry_id", - "type": "TYPE_STRING" - }, - { - "name": "entry", - "type": ".google.cloud.dataplex.v1.Entry" - } - ], - "resultType": ".google.cloud.dataplex.v1.Entry", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.dataplex.v1.CatalogServiceClient" - }, - "method": { - "shortName": "CreateEntry", - "fullName": "google.cloud.dataplex.v1.CatalogService.CreateEntry", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.dataplex.v1.CatalogService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_CatalogService_UpdateEntry_async", - "title": "BusinessGlossaryService updateEntry Sample", - "origin": "API_DEFINITION", - "description": " Updates an Entry.", - "canonical": true, - "file": "catalog_service.update_entry.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 89, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateEntry", - "fullName": "google.cloud.dataplex.v1.CatalogService.UpdateEntry", - "async": true, - "parameters": [ - { - "name": "entry", - "type": ".google.cloud.dataplex.v1.Entry" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - }, - { - "name": "delete_missing_aspects", - "type": "TYPE_BOOL" - }, - { - "name": "aspect_keys", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.cloud.dataplex.v1.Entry", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.dataplex.v1.CatalogServiceClient" - }, - "method": { - "shortName": "UpdateEntry", - "fullName": "google.cloud.dataplex.v1.CatalogService.UpdateEntry", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.dataplex.v1.CatalogService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_CatalogService_DeleteEntry_async", - "title": "BusinessGlossaryService deleteEntry Sample", - "origin": "API_DEFINITION", - "description": " Deletes an Entry.", - "canonical": true, - "file": "catalog_service.delete_entry.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteEntry", - "fullName": "google.cloud.dataplex.v1.CatalogService.DeleteEntry", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataplex.v1.Entry", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.dataplex.v1.CatalogServiceClient" - }, - "method": { - "shortName": "DeleteEntry", - "fullName": "google.cloud.dataplex.v1.CatalogService.DeleteEntry", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.dataplex.v1.CatalogService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_CatalogService_ListEntries_async", - "title": "BusinessGlossaryService listEntries Sample", - "origin": "API_DEFINITION", - "description": " Lists Entries within an EntryGroup.", - "canonical": true, - "file": "catalog_service.list_entries.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 89, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEntries", - "fullName": "google.cloud.dataplex.v1.CatalogService.ListEntries", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataplex.v1.ListEntriesResponse", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.dataplex.v1.CatalogServiceClient" - }, - "method": { - "shortName": "ListEntries", - "fullName": "google.cloud.dataplex.v1.CatalogService.ListEntries", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.dataplex.v1.CatalogService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_CatalogService_GetEntry_async", - "title": "BusinessGlossaryService getEntry Sample", - "origin": "API_DEFINITION", - "description": " Gets an Entry.", - "canonical": true, - "file": "catalog_service.get_entry.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEntry", - "fullName": "google.cloud.dataplex.v1.CatalogService.GetEntry", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.dataplex.v1.EntryView" - }, - { - "name": "aspect_types", - "type": "TYPE_STRING[]" - }, - { - "name": "paths", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.cloud.dataplex.v1.Entry", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.dataplex.v1.CatalogServiceClient" - }, - "method": { - "shortName": "GetEntry", - "fullName": "google.cloud.dataplex.v1.CatalogService.GetEntry", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.dataplex.v1.CatalogService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_CatalogService_LookupEntry_async", - "title": "BusinessGlossaryService lookupEntry Sample", - "origin": "API_DEFINITION", - "description": " Looks up an entry by name using the permission on the source system.", - "canonical": true, - "file": "catalog_service.lookup_entry.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "LookupEntry", - "fullName": "google.cloud.dataplex.v1.CatalogService.LookupEntry", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.dataplex.v1.EntryView" - }, - { - "name": "aspect_types", - "type": "TYPE_STRING[]" - }, - { - "name": "paths", - "type": "TYPE_STRING[]" - }, - { - "name": "entry", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataplex.v1.Entry", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.dataplex.v1.CatalogServiceClient" - }, - "method": { - "shortName": "LookupEntry", - "fullName": "google.cloud.dataplex.v1.CatalogService.LookupEntry", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.dataplex.v1.CatalogService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_CatalogService_ModifyEntry_async", - "title": "BusinessGlossaryService modifyEntry Sample", - "origin": "API_DEFINITION", - "description": " Modifies an entry using the permission on the source system.", - "canonical": true, - "file": "catalog_service.modify_entry.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 89, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ModifyEntry", - "fullName": "google.cloud.dataplex.v1.CatalogService.ModifyEntry", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "entry", - "type": ".google.cloud.dataplex.v1.Entry" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "delete_missing_aspects", - "type": "TYPE_BOOL" - }, - { - "name": "aspect_keys", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.cloud.dataplex.v1.Entry", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.dataplex.v1.CatalogServiceClient" - }, - "method": { - "shortName": "ModifyEntry", - "fullName": "google.cloud.dataplex.v1.CatalogService.ModifyEntry", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.dataplex.v1.CatalogService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_CatalogService_SearchEntries_async", - "title": "BusinessGlossaryService searchEntries Sample", - "origin": "API_DEFINITION", - "description": " Searches for Entries matching the given query and scope.", - "canonical": true, - "file": "catalog_service.search_entries.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 94, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchEntries", - "fullName": "google.cloud.dataplex.v1.CatalogService.SearchEntries", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "scope", - "type": "TYPE_STRING" - }, - { - "name": "semantic_search", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.dataplex.v1.SearchEntriesResponse", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.dataplex.v1.CatalogServiceClient" - }, - "method": { - "shortName": "SearchEntries", - "fullName": "google.cloud.dataplex.v1.CatalogService.SearchEntries", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.dataplex.v1.CatalogService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_CatalogService_CreateMetadataJob_async", - "title": "BusinessGlossaryService createMetadataJob Sample", - "origin": "API_DEFINITION", - "description": " Creates a metadata job. For example, use a metadata job to import metadata from a third-party system into Dataplex Universal Catalog.", - "canonical": true, - "file": "catalog_service.create_metadata_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateMetadataJob", - "fullName": "google.cloud.dataplex.v1.CatalogService.CreateMetadataJob", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "metadata_job", - "type": ".google.cloud.dataplex.v1.MetadataJob" - }, - { - "name": "metadata_job_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.dataplex.v1.CatalogServiceClient" - }, - "method": { - "shortName": "CreateMetadataJob", - "fullName": "google.cloud.dataplex.v1.CatalogService.CreateMetadataJob", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.dataplex.v1.CatalogService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_CatalogService_GetMetadataJob_async", - "title": "BusinessGlossaryService getMetadataJob Sample", - "origin": "API_DEFINITION", - "description": " Gets a metadata job.", - "canonical": true, - "file": "catalog_service.get_metadata_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMetadataJob", - "fullName": "google.cloud.dataplex.v1.CatalogService.GetMetadataJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataplex.v1.MetadataJob", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.dataplex.v1.CatalogServiceClient" - }, - "method": { - "shortName": "GetMetadataJob", - "fullName": "google.cloud.dataplex.v1.CatalogService.GetMetadataJob", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.dataplex.v1.CatalogService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_CatalogService_ListMetadataJobs_async", - "title": "BusinessGlossaryService listMetadataJobs Sample", - "origin": "API_DEFINITION", - "description": " Lists metadata jobs.", - "canonical": true, - "file": "catalog_service.list_metadata_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMetadataJobs", - "fullName": "google.cloud.dataplex.v1.CatalogService.ListMetadataJobs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataplex.v1.ListMetadataJobsResponse", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.dataplex.v1.CatalogServiceClient" - }, - "method": { - "shortName": "ListMetadataJobs", - "fullName": "google.cloud.dataplex.v1.CatalogService.ListMetadataJobs", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.dataplex.v1.CatalogService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_CatalogService_CancelMetadataJob_async", - "title": "BusinessGlossaryService cancelMetadataJob Sample", - "origin": "API_DEFINITION", - "description": " Cancels a metadata job. If you cancel a metadata import job that is in progress, the changes in the job might be partially applied. We recommend that you reset the state of the entry groups in your project by running another metadata job that reverts the changes from the canceled job.", - "canonical": true, - "file": "catalog_service.cancel_metadata_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CancelMetadataJob", - "fullName": "google.cloud.dataplex.v1.CatalogService.CancelMetadataJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.dataplex.v1.CatalogServiceClient" - }, - "method": { - "shortName": "CancelMetadataJob", - "fullName": "google.cloud.dataplex.v1.CatalogService.CancelMetadataJob", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.dataplex.v1.CatalogService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_CatalogService_CreateEntryLink_async", - "title": "BusinessGlossaryService createEntryLink Sample", - "origin": "API_DEFINITION", - "description": " Creates an Entry Link.", - "canonical": true, - "file": "catalog_service.create_entry_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateEntryLink", - "fullName": "google.cloud.dataplex.v1.CatalogService.CreateEntryLink", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "entry_link_id", - "type": "TYPE_STRING" - }, - { - "name": "entry_link", - "type": ".google.cloud.dataplex.v1.EntryLink" - } - ], - "resultType": ".google.cloud.dataplex.v1.EntryLink", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.dataplex.v1.CatalogServiceClient" - }, - "method": { - "shortName": "CreateEntryLink", - "fullName": "google.cloud.dataplex.v1.CatalogService.CreateEntryLink", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.dataplex.v1.CatalogService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_CatalogService_UpdateEntryLink_async", - "title": "BusinessGlossaryService updateEntryLink Sample", - "origin": "API_DEFINITION", - "description": " Updates an Entry Link.", - "canonical": true, - "file": "catalog_service.update_entry_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateEntryLink", - "fullName": "google.cloud.dataplex.v1.CatalogService.UpdateEntryLink", - "async": true, - "parameters": [ - { - "name": "entry_link", - "type": ".google.cloud.dataplex.v1.EntryLink" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - }, - { - "name": "aspect_keys", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.cloud.dataplex.v1.EntryLink", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.dataplex.v1.CatalogServiceClient" - }, - "method": { - "shortName": "UpdateEntryLink", - "fullName": "google.cloud.dataplex.v1.CatalogService.UpdateEntryLink", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.dataplex.v1.CatalogService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_CatalogService_DeleteEntryLink_async", - "title": "BusinessGlossaryService deleteEntryLink Sample", - "origin": "API_DEFINITION", - "description": " Deletes an Entry Link.", - "canonical": true, - "file": "catalog_service.delete_entry_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteEntryLink", - "fullName": "google.cloud.dataplex.v1.CatalogService.DeleteEntryLink", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataplex.v1.EntryLink", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.dataplex.v1.CatalogServiceClient" - }, - "method": { - "shortName": "DeleteEntryLink", - "fullName": "google.cloud.dataplex.v1.CatalogService.DeleteEntryLink", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.dataplex.v1.CatalogService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_CatalogService_LookupEntryLinks_async", - "title": "BusinessGlossaryService lookupEntryLinks Sample", - "origin": "API_DEFINITION", - "description": " Looks up Entry Links referencing the specified Entry.", - "canonical": true, - "file": "catalog_service.lookup_entry_links.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "LookupEntryLinks", - "fullName": "google.cloud.dataplex.v1.CatalogService.LookupEntryLinks", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "entry", - "type": "TYPE_STRING" - }, - { - "name": "entry_mode", - "type": ".google.cloud.dataplex.v1.LookupEntryLinksRequest.EntryMode" - }, - { - "name": "entry_link_types", - "type": "TYPE_STRING[]" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataplex.v1.LookupEntryLinksResponse", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.dataplex.v1.CatalogServiceClient" - }, - "method": { - "shortName": "LookupEntryLinks", - "fullName": "google.cloud.dataplex.v1.CatalogService.LookupEntryLinks", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.dataplex.v1.CatalogService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_CatalogService_LookupContext_async", - "title": "BusinessGlossaryService lookupContext Sample", - "origin": "API_DEFINITION", - "description": " Looks up LLM Context for the specified resources.", - "canonical": true, - "file": "catalog_service.lookup_context.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "LookupContext", - "fullName": "google.cloud.dataplex.v1.CatalogService.LookupContext", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "resources", - "type": "TYPE_STRING[]" - }, - { - "name": "context", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.dataplex.v1.LookupContextResponse", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.dataplex.v1.CatalogServiceClient" - }, - "method": { - "shortName": "LookupContext", - "fullName": "google.cloud.dataplex.v1.CatalogService.LookupContext", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.dataplex.v1.CatalogService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_CatalogService_GetEntryLink_async", - "title": "BusinessGlossaryService getEntryLink Sample", - "origin": "API_DEFINITION", - "description": " Gets an Entry Link.", - "canonical": true, - "file": "catalog_service.get_entry_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEntryLink", - "fullName": "google.cloud.dataplex.v1.CatalogService.GetEntryLink", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataplex.v1.EntryLink", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.dataplex.v1.CatalogServiceClient" - }, - "method": { - "shortName": "GetEntryLink", - "fullName": "google.cloud.dataplex.v1.CatalogService.GetEntryLink", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.dataplex.v1.CatalogService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_CatalogService_CreateMetadataFeed_async", - "title": "BusinessGlossaryService createMetadataFeed Sample", - "origin": "API_DEFINITION", - "description": " Creates a MetadataFeed.", - "canonical": true, - "file": "catalog_service.create_metadata_feed.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateMetadataFeed", - "fullName": "google.cloud.dataplex.v1.CatalogService.CreateMetadataFeed", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "metadata_feed", - "type": ".google.cloud.dataplex.v1.MetadataFeed" - }, - { - "name": "metadata_feed_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.dataplex.v1.CatalogServiceClient" - }, - "method": { - "shortName": "CreateMetadataFeed", - "fullName": "google.cloud.dataplex.v1.CatalogService.CreateMetadataFeed", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.dataplex.v1.CatalogService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_CatalogService_GetMetadataFeed_async", - "title": "BusinessGlossaryService getMetadataFeed Sample", - "origin": "API_DEFINITION", - "description": " Gets a MetadataFeed.", - "canonical": true, - "file": "catalog_service.get_metadata_feed.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMetadataFeed", - "fullName": "google.cloud.dataplex.v1.CatalogService.GetMetadataFeed", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataplex.v1.MetadataFeed", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.dataplex.v1.CatalogServiceClient" - }, - "method": { - "shortName": "GetMetadataFeed", - "fullName": "google.cloud.dataplex.v1.CatalogService.GetMetadataFeed", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.dataplex.v1.CatalogService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_CatalogService_ListMetadataFeeds_async", - "title": "BusinessGlossaryService listMetadataFeeds Sample", - "origin": "API_DEFINITION", - "description": " Retrieve a list of MetadataFeeds.", - "canonical": true, - "file": "catalog_service.list_metadata_feeds.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMetadataFeeds", - "fullName": "google.cloud.dataplex.v1.CatalogService.ListMetadataFeeds", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataplex.v1.ListMetadataFeedsResponse", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.dataplex.v1.CatalogServiceClient" - }, - "method": { - "shortName": "ListMetadataFeeds", - "fullName": "google.cloud.dataplex.v1.CatalogService.ListMetadataFeeds", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.dataplex.v1.CatalogService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_CatalogService_DeleteMetadataFeed_async", - "title": "BusinessGlossaryService deleteMetadataFeed Sample", - "origin": "API_DEFINITION", - "description": " Deletes a MetadataFeed.", - "canonical": true, - "file": "catalog_service.delete_metadata_feed.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteMetadataFeed", - "fullName": "google.cloud.dataplex.v1.CatalogService.DeleteMetadataFeed", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.dataplex.v1.CatalogServiceClient" - }, - "method": { - "shortName": "DeleteMetadataFeed", - "fullName": "google.cloud.dataplex.v1.CatalogService.DeleteMetadataFeed", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.dataplex.v1.CatalogService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_CatalogService_UpdateMetadataFeed_async", - "title": "BusinessGlossaryService updateMetadataFeed Sample", - "origin": "API_DEFINITION", - "description": " Updates a MetadataFeed.", - "canonical": true, - "file": "catalog_service.update_metadata_feed.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateMetadataFeed", - "fullName": "google.cloud.dataplex.v1.CatalogService.UpdateMetadataFeed", - "async": true, - "parameters": [ - { - "name": "metadata_feed", - "type": ".google.cloud.dataplex.v1.MetadataFeed" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.dataplex.v1.CatalogServiceClient" - }, - "method": { - "shortName": "UpdateMetadataFeed", - "fullName": "google.cloud.dataplex.v1.CatalogService.UpdateMetadataFeed", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.dataplex.v1.CatalogService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_CmekService_CreateEncryptionConfig_async", - "title": "BusinessGlossaryService createEncryptionConfig Sample", - "origin": "API_DEFINITION", - "description": " Create an EncryptionConfig.", - "canonical": true, - "file": "cmek_service.create_encryption_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateEncryptionConfig", - "fullName": "google.cloud.dataplex.v1.CmekService.CreateEncryptionConfig", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "encryption_config_id", - "type": "TYPE_STRING" - }, - { - "name": "encryption_config", - "type": ".google.cloud.dataplex.v1.EncryptionConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CmekServiceClient", - "fullName": "google.cloud.dataplex.v1.CmekServiceClient" - }, - "method": { - "shortName": "CreateEncryptionConfig", - "fullName": "google.cloud.dataplex.v1.CmekService.CreateEncryptionConfig", - "service": { - "shortName": "CmekService", - "fullName": "google.cloud.dataplex.v1.CmekService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_CmekService_UpdateEncryptionConfig_async", - "title": "BusinessGlossaryService updateEncryptionConfig Sample", - "origin": "API_DEFINITION", - "description": " Update an EncryptionConfig.", - "canonical": true, - "file": "cmek_service.update_encryption_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateEncryptionConfig", - "fullName": "google.cloud.dataplex.v1.CmekService.UpdateEncryptionConfig", - "async": true, - "parameters": [ - { - "name": "encryption_config", - "type": ".google.cloud.dataplex.v1.EncryptionConfig" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CmekServiceClient", - "fullName": "google.cloud.dataplex.v1.CmekServiceClient" - }, - "method": { - "shortName": "UpdateEncryptionConfig", - "fullName": "google.cloud.dataplex.v1.CmekService.UpdateEncryptionConfig", - "service": { - "shortName": "CmekService", - "fullName": "google.cloud.dataplex.v1.CmekService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_CmekService_DeleteEncryptionConfig_async", - "title": "BusinessGlossaryService deleteEncryptionConfig Sample", - "origin": "API_DEFINITION", - "description": " Delete an EncryptionConfig.", - "canonical": true, - "file": "cmek_service.delete_encryption_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteEncryptionConfig", - "fullName": "google.cloud.dataplex.v1.CmekService.DeleteEncryptionConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CmekServiceClient", - "fullName": "google.cloud.dataplex.v1.CmekServiceClient" - }, - "method": { - "shortName": "DeleteEncryptionConfig", - "fullName": "google.cloud.dataplex.v1.CmekService.DeleteEncryptionConfig", - "service": { - "shortName": "CmekService", - "fullName": "google.cloud.dataplex.v1.CmekService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_CmekService_ListEncryptionConfigs_async", - "title": "BusinessGlossaryService listEncryptionConfigs Sample", - "origin": "API_DEFINITION", - "description": " List EncryptionConfigs.", - "canonical": true, - "file": "cmek_service.list_encryption_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 91, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEncryptionConfigs", - "fullName": "google.cloud.dataplex.v1.CmekService.ListEncryptionConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataplex.v1.ListEncryptionConfigsResponse", - "client": { - "shortName": "CmekServiceClient", - "fullName": "google.cloud.dataplex.v1.CmekServiceClient" - }, - "method": { - "shortName": "ListEncryptionConfigs", - "fullName": "google.cloud.dataplex.v1.CmekService.ListEncryptionConfigs", - "service": { - "shortName": "CmekService", - "fullName": "google.cloud.dataplex.v1.CmekService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_CmekService_GetEncryptionConfig_async", - "title": "BusinessGlossaryService getEncryptionConfig Sample", - "origin": "API_DEFINITION", - "description": " Get an EncryptionConfig.", - "canonical": true, - "file": "cmek_service.get_encryption_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEncryptionConfig", - "fullName": "google.cloud.dataplex.v1.CmekService.GetEncryptionConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataplex.v1.EncryptionConfig", - "client": { - "shortName": "CmekServiceClient", - "fullName": "google.cloud.dataplex.v1.CmekServiceClient" - }, - "method": { - "shortName": "GetEncryptionConfig", - "fullName": "google.cloud.dataplex.v1.CmekService.GetEncryptionConfig", - "service": { - "shortName": "CmekService", - "fullName": "google.cloud.dataplex.v1.CmekService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataplexService_CreateLake_async", - "title": "BusinessGlossaryService createLake Sample", - "origin": "API_DEFINITION", - "description": " Creates a lake resource.", - "canonical": true, - "file": "dataplex_service.create_lake.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateLake", - "fullName": "google.cloud.dataplex.v1.DataplexService.CreateLake", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "lake_id", - "type": "TYPE_STRING" - }, - { - "name": "lake", - "type": ".google.cloud.dataplex.v1.Lake" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataplexServiceClient", - "fullName": "google.cloud.dataplex.v1.DataplexServiceClient" - }, - "method": { - "shortName": "CreateLake", - "fullName": "google.cloud.dataplex.v1.DataplexService.CreateLake", - "service": { - "shortName": "DataplexService", - "fullName": "google.cloud.dataplex.v1.DataplexService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataplexService_UpdateLake_async", - "title": "BusinessGlossaryService updateLake Sample", - "origin": "API_DEFINITION", - "description": " Updates a lake resource.", - "canonical": true, - "file": "dataplex_service.update_lake.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateLake", - "fullName": "google.cloud.dataplex.v1.DataplexService.UpdateLake", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "lake", - "type": ".google.cloud.dataplex.v1.Lake" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataplexServiceClient", - "fullName": "google.cloud.dataplex.v1.DataplexServiceClient" - }, - "method": { - "shortName": "UpdateLake", - "fullName": "google.cloud.dataplex.v1.DataplexService.UpdateLake", - "service": { - "shortName": "DataplexService", - "fullName": "google.cloud.dataplex.v1.DataplexService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataplexService_DeleteLake_async", - "title": "BusinessGlossaryService deleteLake Sample", - "origin": "API_DEFINITION", - "description": " Deletes a lake resource. All zones within the lake must be deleted before the lake can be deleted.", - "canonical": true, - "file": "dataplex_service.delete_lake.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteLake", - "fullName": "google.cloud.dataplex.v1.DataplexService.DeleteLake", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataplexServiceClient", - "fullName": "google.cloud.dataplex.v1.DataplexServiceClient" - }, - "method": { - "shortName": "DeleteLake", - "fullName": "google.cloud.dataplex.v1.DataplexService.DeleteLake", - "service": { - "shortName": "DataplexService", - "fullName": "google.cloud.dataplex.v1.DataplexService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataplexService_ListLakes_async", - "title": "BusinessGlossaryService listLakes Sample", - "origin": "API_DEFINITION", - "description": " Lists lake resources in a project and location.", - "canonical": true, - "file": "dataplex_service.list_lakes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListLakes", - "fullName": "google.cloud.dataplex.v1.DataplexService.ListLakes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataplex.v1.ListLakesResponse", - "client": { - "shortName": "DataplexServiceClient", - "fullName": "google.cloud.dataplex.v1.DataplexServiceClient" - }, - "method": { - "shortName": "ListLakes", - "fullName": "google.cloud.dataplex.v1.DataplexService.ListLakes", - "service": { - "shortName": "DataplexService", - "fullName": "google.cloud.dataplex.v1.DataplexService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataplexService_GetLake_async", - "title": "BusinessGlossaryService getLake Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a lake resource.", - "canonical": true, - "file": "dataplex_service.get_lake.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetLake", - "fullName": "google.cloud.dataplex.v1.DataplexService.GetLake", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataplex.v1.Lake", - "client": { - "shortName": "DataplexServiceClient", - "fullName": "google.cloud.dataplex.v1.DataplexServiceClient" - }, - "method": { - "shortName": "GetLake", - "fullName": "google.cloud.dataplex.v1.DataplexService.GetLake", - "service": { - "shortName": "DataplexService", - "fullName": "google.cloud.dataplex.v1.DataplexService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataplexService_ListLakeActions_async", - "title": "BusinessGlossaryService listLakeActions Sample", - "origin": "API_DEFINITION", - "description": " Lists action resources in a lake.", - "canonical": true, - "file": "dataplex_service.list_lake_actions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListLakeActions", - "fullName": "google.cloud.dataplex.v1.DataplexService.ListLakeActions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataplex.v1.ListActionsResponse", - "client": { - "shortName": "DataplexServiceClient", - "fullName": "google.cloud.dataplex.v1.DataplexServiceClient" - }, - "method": { - "shortName": "ListLakeActions", - "fullName": "google.cloud.dataplex.v1.DataplexService.ListLakeActions", - "service": { - "shortName": "DataplexService", - "fullName": "google.cloud.dataplex.v1.DataplexService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataplexService_CreateZone_async", - "title": "BusinessGlossaryService createZone Sample", - "origin": "API_DEFINITION", - "description": " Creates a zone resource within a lake.", - "canonical": true, - "file": "dataplex_service.create_zone.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateZone", - "fullName": "google.cloud.dataplex.v1.DataplexService.CreateZone", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "zone_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": ".google.cloud.dataplex.v1.Zone" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataplexServiceClient", - "fullName": "google.cloud.dataplex.v1.DataplexServiceClient" - }, - "method": { - "shortName": "CreateZone", - "fullName": "google.cloud.dataplex.v1.DataplexService.CreateZone", - "service": { - "shortName": "DataplexService", - "fullName": "google.cloud.dataplex.v1.DataplexService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataplexService_UpdateZone_async", - "title": "BusinessGlossaryService updateZone Sample", - "origin": "API_DEFINITION", - "description": " Updates a zone resource.", - "canonical": true, - "file": "dataplex_service.update_zone.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateZone", - "fullName": "google.cloud.dataplex.v1.DataplexService.UpdateZone", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "zone", - "type": ".google.cloud.dataplex.v1.Zone" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataplexServiceClient", - "fullName": "google.cloud.dataplex.v1.DataplexServiceClient" - }, - "method": { - "shortName": "UpdateZone", - "fullName": "google.cloud.dataplex.v1.DataplexService.UpdateZone", - "service": { - "shortName": "DataplexService", - "fullName": "google.cloud.dataplex.v1.DataplexService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataplexService_DeleteZone_async", - "title": "BusinessGlossaryService deleteZone Sample", - "origin": "API_DEFINITION", - "description": " Deletes a zone resource. All assets within a zone must be deleted before the zone can be deleted.", - "canonical": true, - "file": "dataplex_service.delete_zone.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteZone", - "fullName": "google.cloud.dataplex.v1.DataplexService.DeleteZone", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataplexServiceClient", - "fullName": "google.cloud.dataplex.v1.DataplexServiceClient" - }, - "method": { - "shortName": "DeleteZone", - "fullName": "google.cloud.dataplex.v1.DataplexService.DeleteZone", - "service": { - "shortName": "DataplexService", - "fullName": "google.cloud.dataplex.v1.DataplexService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataplexService_ListZones_async", - "title": "BusinessGlossaryService listZones Sample", - "origin": "API_DEFINITION", - "description": " Lists zone resources in a lake.", - "canonical": true, - "file": "dataplex_service.list_zones.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListZones", - "fullName": "google.cloud.dataplex.v1.DataplexService.ListZones", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataplex.v1.ListZonesResponse", - "client": { - "shortName": "DataplexServiceClient", - "fullName": "google.cloud.dataplex.v1.DataplexServiceClient" - }, - "method": { - "shortName": "ListZones", - "fullName": "google.cloud.dataplex.v1.DataplexService.ListZones", - "service": { - "shortName": "DataplexService", - "fullName": "google.cloud.dataplex.v1.DataplexService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataplexService_GetZone_async", - "title": "BusinessGlossaryService getZone Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a zone resource.", - "canonical": true, - "file": "dataplex_service.get_zone.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetZone", - "fullName": "google.cloud.dataplex.v1.DataplexService.GetZone", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataplex.v1.Zone", - "client": { - "shortName": "DataplexServiceClient", - "fullName": "google.cloud.dataplex.v1.DataplexServiceClient" - }, - "method": { - "shortName": "GetZone", - "fullName": "google.cloud.dataplex.v1.DataplexService.GetZone", - "service": { - "shortName": "DataplexService", - "fullName": "google.cloud.dataplex.v1.DataplexService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataplexService_ListZoneActions_async", - "title": "BusinessGlossaryService listZoneActions Sample", - "origin": "API_DEFINITION", - "description": " Lists action resources in a zone.", - "canonical": true, - "file": "dataplex_service.list_zone_actions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListZoneActions", - "fullName": "google.cloud.dataplex.v1.DataplexService.ListZoneActions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataplex.v1.ListActionsResponse", - "client": { - "shortName": "DataplexServiceClient", - "fullName": "google.cloud.dataplex.v1.DataplexServiceClient" - }, - "method": { - "shortName": "ListZoneActions", - "fullName": "google.cloud.dataplex.v1.DataplexService.ListZoneActions", - "service": { - "shortName": "DataplexService", - "fullName": "google.cloud.dataplex.v1.DataplexService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataplexService_CreateAsset_async", - "title": "BusinessGlossaryService createAsset Sample", - "origin": "API_DEFINITION", - "description": " Creates an asset resource.", - "canonical": true, - "file": "dataplex_service.create_asset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAsset", - "fullName": "google.cloud.dataplex.v1.DataplexService.CreateAsset", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "asset_id", - "type": "TYPE_STRING" - }, - { - "name": "asset", - "type": ".google.cloud.dataplex.v1.Asset" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataplexServiceClient", - "fullName": "google.cloud.dataplex.v1.DataplexServiceClient" - }, - "method": { - "shortName": "CreateAsset", - "fullName": "google.cloud.dataplex.v1.DataplexService.CreateAsset", - "service": { - "shortName": "DataplexService", - "fullName": "google.cloud.dataplex.v1.DataplexService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataplexService_UpdateAsset_async", - "title": "BusinessGlossaryService updateAsset Sample", - "origin": "API_DEFINITION", - "description": " Updates an asset resource.", - "canonical": true, - "file": "dataplex_service.update_asset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAsset", - "fullName": "google.cloud.dataplex.v1.DataplexService.UpdateAsset", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "asset", - "type": ".google.cloud.dataplex.v1.Asset" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataplexServiceClient", - "fullName": "google.cloud.dataplex.v1.DataplexServiceClient" - }, - "method": { - "shortName": "UpdateAsset", - "fullName": "google.cloud.dataplex.v1.DataplexService.UpdateAsset", - "service": { - "shortName": "DataplexService", - "fullName": "google.cloud.dataplex.v1.DataplexService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataplexService_DeleteAsset_async", - "title": "BusinessGlossaryService deleteAsset Sample", - "origin": "API_DEFINITION", - "description": " Deletes an asset resource. The referenced storage resource is detached (default) or deleted based on the associated Lifecycle policy.", - "canonical": true, - "file": "dataplex_service.delete_asset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAsset", - "fullName": "google.cloud.dataplex.v1.DataplexService.DeleteAsset", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataplexServiceClient", - "fullName": "google.cloud.dataplex.v1.DataplexServiceClient" - }, - "method": { - "shortName": "DeleteAsset", - "fullName": "google.cloud.dataplex.v1.DataplexService.DeleteAsset", - "service": { - "shortName": "DataplexService", - "fullName": "google.cloud.dataplex.v1.DataplexService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataplexService_ListAssets_async", - "title": "BusinessGlossaryService listAssets Sample", - "origin": "API_DEFINITION", - "description": " Lists asset resources in a zone.", - "canonical": true, - "file": "dataplex_service.list_assets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAssets", - "fullName": "google.cloud.dataplex.v1.DataplexService.ListAssets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataplex.v1.ListAssetsResponse", - "client": { - "shortName": "DataplexServiceClient", - "fullName": "google.cloud.dataplex.v1.DataplexServiceClient" - }, - "method": { - "shortName": "ListAssets", - "fullName": "google.cloud.dataplex.v1.DataplexService.ListAssets", - "service": { - "shortName": "DataplexService", - "fullName": "google.cloud.dataplex.v1.DataplexService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataplexService_GetAsset_async", - "title": "BusinessGlossaryService getAsset Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an asset resource.", - "canonical": true, - "file": "dataplex_service.get_asset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAsset", - "fullName": "google.cloud.dataplex.v1.DataplexService.GetAsset", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataplex.v1.Asset", - "client": { - "shortName": "DataplexServiceClient", - "fullName": "google.cloud.dataplex.v1.DataplexServiceClient" - }, - "method": { - "shortName": "GetAsset", - "fullName": "google.cloud.dataplex.v1.DataplexService.GetAsset", - "service": { - "shortName": "DataplexService", - "fullName": "google.cloud.dataplex.v1.DataplexService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataplexService_ListAssetActions_async", - "title": "BusinessGlossaryService listAssetActions Sample", - "origin": "API_DEFINITION", - "description": " Lists action resources in an asset.", - "canonical": true, - "file": "dataplex_service.list_asset_actions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAssetActions", - "fullName": "google.cloud.dataplex.v1.DataplexService.ListAssetActions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataplex.v1.ListActionsResponse", - "client": { - "shortName": "DataplexServiceClient", - "fullName": "google.cloud.dataplex.v1.DataplexServiceClient" - }, - "method": { - "shortName": "ListAssetActions", - "fullName": "google.cloud.dataplex.v1.DataplexService.ListAssetActions", - "service": { - "shortName": "DataplexService", - "fullName": "google.cloud.dataplex.v1.DataplexService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataplexService_CreateTask_async", - "title": "BusinessGlossaryService createTask Sample", - "origin": "API_DEFINITION", - "description": " Creates a task resource within a lake.", - "canonical": true, - "file": "dataplex_service.create_task.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTask", - "fullName": "google.cloud.dataplex.v1.DataplexService.CreateTask", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "task_id", - "type": "TYPE_STRING" - }, - { - "name": "task", - "type": ".google.cloud.dataplex.v1.Task" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataplexServiceClient", - "fullName": "google.cloud.dataplex.v1.DataplexServiceClient" - }, - "method": { - "shortName": "CreateTask", - "fullName": "google.cloud.dataplex.v1.DataplexService.CreateTask", - "service": { - "shortName": "DataplexService", - "fullName": "google.cloud.dataplex.v1.DataplexService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataplexService_UpdateTask_async", - "title": "BusinessGlossaryService updateTask Sample", - "origin": "API_DEFINITION", - "description": " Update the task resource.", - "canonical": true, - "file": "dataplex_service.update_task.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTask", - "fullName": "google.cloud.dataplex.v1.DataplexService.UpdateTask", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "task", - "type": ".google.cloud.dataplex.v1.Task" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataplexServiceClient", - "fullName": "google.cloud.dataplex.v1.DataplexServiceClient" - }, - "method": { - "shortName": "UpdateTask", - "fullName": "google.cloud.dataplex.v1.DataplexService.UpdateTask", - "service": { - "shortName": "DataplexService", - "fullName": "google.cloud.dataplex.v1.DataplexService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataplexService_DeleteTask_async", - "title": "BusinessGlossaryService deleteTask Sample", - "origin": "API_DEFINITION", - "description": " Delete the task resource.", - "canonical": true, - "file": "dataplex_service.delete_task.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTask", - "fullName": "google.cloud.dataplex.v1.DataplexService.DeleteTask", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataplexServiceClient", - "fullName": "google.cloud.dataplex.v1.DataplexServiceClient" - }, - "method": { - "shortName": "DeleteTask", - "fullName": "google.cloud.dataplex.v1.DataplexService.DeleteTask", - "service": { - "shortName": "DataplexService", - "fullName": "google.cloud.dataplex.v1.DataplexService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataplexService_ListTasks_async", - "title": "BusinessGlossaryService listTasks Sample", - "origin": "API_DEFINITION", - "description": " Lists tasks under the given lake.", - "canonical": true, - "file": "dataplex_service.list_tasks.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTasks", - "fullName": "google.cloud.dataplex.v1.DataplexService.ListTasks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataplex.v1.ListTasksResponse", - "client": { - "shortName": "DataplexServiceClient", - "fullName": "google.cloud.dataplex.v1.DataplexServiceClient" - }, - "method": { - "shortName": "ListTasks", - "fullName": "google.cloud.dataplex.v1.DataplexService.ListTasks", - "service": { - "shortName": "DataplexService", - "fullName": "google.cloud.dataplex.v1.DataplexService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataplexService_GetTask_async", - "title": "BusinessGlossaryService getTask Sample", - "origin": "API_DEFINITION", - "description": " Get task resource.", - "canonical": true, - "file": "dataplex_service.get_task.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTask", - "fullName": "google.cloud.dataplex.v1.DataplexService.GetTask", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataplex.v1.Task", - "client": { - "shortName": "DataplexServiceClient", - "fullName": "google.cloud.dataplex.v1.DataplexServiceClient" - }, - "method": { - "shortName": "GetTask", - "fullName": "google.cloud.dataplex.v1.DataplexService.GetTask", - "service": { - "shortName": "DataplexService", - "fullName": "google.cloud.dataplex.v1.DataplexService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataplexService_ListJobs_async", - "title": "BusinessGlossaryService listJobs Sample", - "origin": "API_DEFINITION", - "description": " Lists Jobs under the given task.", - "canonical": true, - "file": "dataplex_service.list_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListJobs", - "fullName": "google.cloud.dataplex.v1.DataplexService.ListJobs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataplex.v1.ListJobsResponse", - "client": { - "shortName": "DataplexServiceClient", - "fullName": "google.cloud.dataplex.v1.DataplexServiceClient" - }, - "method": { - "shortName": "ListJobs", - "fullName": "google.cloud.dataplex.v1.DataplexService.ListJobs", - "service": { - "shortName": "DataplexService", - "fullName": "google.cloud.dataplex.v1.DataplexService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataplexService_RunTask_async", - "title": "BusinessGlossaryService runTask Sample", - "origin": "API_DEFINITION", - "description": " Run an on demand execution of a Task.", - "canonical": true, - "file": "dataplex_service.run_task.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RunTask", - "fullName": "google.cloud.dataplex.v1.DataplexService.RunTask", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "labels", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "args", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.dataplex.v1.RunTaskResponse", - "client": { - "shortName": "DataplexServiceClient", - "fullName": "google.cloud.dataplex.v1.DataplexServiceClient" - }, - "method": { - "shortName": "RunTask", - "fullName": "google.cloud.dataplex.v1.DataplexService.RunTask", - "service": { - "shortName": "DataplexService", - "fullName": "google.cloud.dataplex.v1.DataplexService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataplexService_GetJob_async", - "title": "BusinessGlossaryService getJob Sample", - "origin": "API_DEFINITION", - "description": " Get job resource.", - "canonical": true, - "file": "dataplex_service.get_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetJob", - "fullName": "google.cloud.dataplex.v1.DataplexService.GetJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataplex.v1.Job", - "client": { - "shortName": "DataplexServiceClient", - "fullName": "google.cloud.dataplex.v1.DataplexServiceClient" - }, - "method": { - "shortName": "GetJob", - "fullName": "google.cloud.dataplex.v1.DataplexService.GetJob", - "service": { - "shortName": "DataplexService", - "fullName": "google.cloud.dataplex.v1.DataplexService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataplexService_CancelJob_async", - "title": "BusinessGlossaryService cancelJob Sample", - "origin": "API_DEFINITION", - "description": " Cancel jobs running for the task resource.", - "canonical": true, - "file": "dataplex_service.cancel_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CancelJob", - "fullName": "google.cloud.dataplex.v1.DataplexService.CancelJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DataplexServiceClient", - "fullName": "google.cloud.dataplex.v1.DataplexServiceClient" - }, - "method": { - "shortName": "CancelJob", - "fullName": "google.cloud.dataplex.v1.DataplexService.CancelJob", - "service": { - "shortName": "DataplexService", - "fullName": "google.cloud.dataplex.v1.DataplexService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataProductService_CreateDataProduct_async", - "title": "BusinessGlossaryService createDataProduct Sample", - "origin": "API_DEFINITION", - "description": " Creates a data product.", - "canonical": true, - "file": "data_product_service.create_data_product.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDataProduct", - "fullName": "google.cloud.dataplex.v1.DataProductService.CreateDataProduct", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "data_product_id", - "type": "TYPE_STRING" - }, - { - "name": "data_product", - "type": ".google.cloud.dataplex.v1.DataProduct" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataProductServiceClient", - "fullName": "google.cloud.dataplex.v1.DataProductServiceClient" - }, - "method": { - "shortName": "CreateDataProduct", - "fullName": "google.cloud.dataplex.v1.DataProductService.CreateDataProduct", - "service": { - "shortName": "DataProductService", - "fullName": "google.cloud.dataplex.v1.DataProductService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataProductService_DeleteDataProduct_async", - "title": "BusinessGlossaryService deleteDataProduct Sample", - "origin": "API_DEFINITION", - "description": " Deletes a data product. The deletion will fail if the data product is not empty (i.e. contains at least one data asset).", - "canonical": true, - "file": "data_product_service.delete_data_product.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDataProduct", - "fullName": "google.cloud.dataplex.v1.DataProductService.DeleteDataProduct", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataProductServiceClient", - "fullName": "google.cloud.dataplex.v1.DataProductServiceClient" - }, - "method": { - "shortName": "DeleteDataProduct", - "fullName": "google.cloud.dataplex.v1.DataProductService.DeleteDataProduct", - "service": { - "shortName": "DataProductService", - "fullName": "google.cloud.dataplex.v1.DataProductService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataProductService_GetDataProduct_async", - "title": "BusinessGlossaryService getDataProduct Sample", - "origin": "API_DEFINITION", - "description": " Gets a data product.", - "canonical": true, - "file": "data_product_service.get_data_product.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDataProduct", - "fullName": "google.cloud.dataplex.v1.DataProductService.GetDataProduct", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataplex.v1.DataProduct", - "client": { - "shortName": "DataProductServiceClient", - "fullName": "google.cloud.dataplex.v1.DataProductServiceClient" - }, - "method": { - "shortName": "GetDataProduct", - "fullName": "google.cloud.dataplex.v1.DataProductService.GetDataProduct", - "service": { - "shortName": "DataProductService", - "fullName": "google.cloud.dataplex.v1.DataProductService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataProductService_ListDataProducts_async", - "title": "BusinessGlossaryService listDataProducts Sample", - "origin": "API_DEFINITION", - "description": " Lists data products for a given project.", - "canonical": true, - "file": "data_product_service.list_data_products.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDataProducts", - "fullName": "google.cloud.dataplex.v1.DataProductService.ListDataProducts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataplex.v1.ListDataProductsResponse", - "client": { - "shortName": "DataProductServiceClient", - "fullName": "google.cloud.dataplex.v1.DataProductServiceClient" - }, - "method": { - "shortName": "ListDataProducts", - "fullName": "google.cloud.dataplex.v1.DataProductService.ListDataProducts", - "service": { - "shortName": "DataProductService", - "fullName": "google.cloud.dataplex.v1.DataProductService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataProductService_UpdateDataProduct_async", - "title": "BusinessGlossaryService updateDataProduct Sample", - "origin": "API_DEFINITION", - "description": " Updates a data product.", - "canonical": true, - "file": "data_product_service.update_data_product.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDataProduct", - "fullName": "google.cloud.dataplex.v1.DataProductService.UpdateDataProduct", - "async": true, - "parameters": [ - { - "name": "data_product", - "type": ".google.cloud.dataplex.v1.DataProduct" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataProductServiceClient", - "fullName": "google.cloud.dataplex.v1.DataProductServiceClient" - }, - "method": { - "shortName": "UpdateDataProduct", - "fullName": "google.cloud.dataplex.v1.DataProductService.UpdateDataProduct", - "service": { - "shortName": "DataProductService", - "fullName": "google.cloud.dataplex.v1.DataProductService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataProductService_RequestDataProductAccess_async", - "title": "BusinessGlossaryService requestDataProductAccess Sample", - "origin": "API_DEFINITION", - "description": " Requests access to a data product. This will trigger an access approval workflow, and the requester will need to wait for the approval to be granted before they will be able to access the data product assets.", - "canonical": true, - "file": "data_product_service.request_data_product_access.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RequestDataProductAccess", - "fullName": "google.cloud.dataplex.v1.DataProductService.RequestDataProductAccess", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "change_request", - "type": ".google.cloud.dataplex.v1.ChangeRequest" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.dataplex.v1.RequestDataProductAccessResponse", - "client": { - "shortName": "DataProductServiceClient", - "fullName": "google.cloud.dataplex.v1.DataProductServiceClient" - }, - "method": { - "shortName": "RequestDataProductAccess", - "fullName": "google.cloud.dataplex.v1.DataProductService.RequestDataProductAccess", - "service": { - "shortName": "DataProductService", - "fullName": "google.cloud.dataplex.v1.DataProductService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataProductService_CreateDataAsset_async", - "title": "BusinessGlossaryService createDataAsset Sample", - "origin": "API_DEFINITION", - "description": " Creates a data asset.", - "canonical": true, - "file": "data_product_service.create_data_asset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDataAsset", - "fullName": "google.cloud.dataplex.v1.DataProductService.CreateDataAsset", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "data_asset_id", - "type": "TYPE_STRING" - }, - { - "name": "data_asset", - "type": ".google.cloud.dataplex.v1.DataAsset" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataProductServiceClient", - "fullName": "google.cloud.dataplex.v1.DataProductServiceClient" - }, - "method": { - "shortName": "CreateDataAsset", - "fullName": "google.cloud.dataplex.v1.DataProductService.CreateDataAsset", - "service": { - "shortName": "DataProductService", - "fullName": "google.cloud.dataplex.v1.DataProductService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataProductService_UpdateDataAsset_async", - "title": "BusinessGlossaryService updateDataAsset Sample", - "origin": "API_DEFINITION", - "description": " Updates a data asset.", - "canonical": true, - "file": "data_product_service.update_data_asset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDataAsset", - "fullName": "google.cloud.dataplex.v1.DataProductService.UpdateDataAsset", - "async": true, - "parameters": [ - { - "name": "data_asset", - "type": ".google.cloud.dataplex.v1.DataAsset" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataProductServiceClient", - "fullName": "google.cloud.dataplex.v1.DataProductServiceClient" - }, - "method": { - "shortName": "UpdateDataAsset", - "fullName": "google.cloud.dataplex.v1.DataProductService.UpdateDataAsset", - "service": { - "shortName": "DataProductService", - "fullName": "google.cloud.dataplex.v1.DataProductService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataProductService_DeleteDataAsset_async", - "title": "BusinessGlossaryService deleteDataAsset Sample", - "origin": "API_DEFINITION", - "description": " Deletes a data asset.", - "canonical": true, - "file": "data_product_service.delete_data_asset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDataAsset", - "fullName": "google.cloud.dataplex.v1.DataProductService.DeleteDataAsset", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataProductServiceClient", - "fullName": "google.cloud.dataplex.v1.DataProductServiceClient" - }, - "method": { - "shortName": "DeleteDataAsset", - "fullName": "google.cloud.dataplex.v1.DataProductService.DeleteDataAsset", - "service": { - "shortName": "DataProductService", - "fullName": "google.cloud.dataplex.v1.DataProductService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataProductService_GetDataAsset_async", - "title": "BusinessGlossaryService getDataAsset Sample", - "origin": "API_DEFINITION", - "description": " Gets a data asset.", - "canonical": true, - "file": "data_product_service.get_data_asset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDataAsset", - "fullName": "google.cloud.dataplex.v1.DataProductService.GetDataAsset", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataplex.v1.DataAsset", - "client": { - "shortName": "DataProductServiceClient", - "fullName": "google.cloud.dataplex.v1.DataProductServiceClient" - }, - "method": { - "shortName": "GetDataAsset", - "fullName": "google.cloud.dataplex.v1.DataProductService.GetDataAsset", - "service": { - "shortName": "DataProductService", - "fullName": "google.cloud.dataplex.v1.DataProductService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataProductService_ListDataAssets_async", - "title": "BusinessGlossaryService listDataAssets Sample", - "origin": "API_DEFINITION", - "description": " Lists data assets for a given data product.", - "canonical": true, - "file": "data_product_service.list_data_assets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDataAssets", - "fullName": "google.cloud.dataplex.v1.DataProductService.ListDataAssets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataplex.v1.ListDataAssetsResponse", - "client": { - "shortName": "DataProductServiceClient", - "fullName": "google.cloud.dataplex.v1.DataProductServiceClient" - }, - "method": { - "shortName": "ListDataAssets", - "fullName": "google.cloud.dataplex.v1.DataProductService.ListDataAssets", - "service": { - "shortName": "DataProductService", - "fullName": "google.cloud.dataplex.v1.DataProductService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataScanService_CreateDataScan_async", - "title": "BusinessGlossaryService createDataScan Sample", - "origin": "API_DEFINITION", - "description": " Creates a DataScan resource.", - "canonical": true, - "file": "data_scan_service.create_data_scan.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDataScan", - "fullName": "google.cloud.dataplex.v1.DataScanService.CreateDataScan", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "data_scan", - "type": ".google.cloud.dataplex.v1.DataScan" - }, - { - "name": "data_scan_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataScanServiceClient", - "fullName": "google.cloud.dataplex.v1.DataScanServiceClient" - }, - "method": { - "shortName": "CreateDataScan", - "fullName": "google.cloud.dataplex.v1.DataScanService.CreateDataScan", - "service": { - "shortName": "DataScanService", - "fullName": "google.cloud.dataplex.v1.DataScanService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataScanService_UpdateDataScan_async", - "title": "BusinessGlossaryService updateDataScan Sample", - "origin": "API_DEFINITION", - "description": " Updates a DataScan resource.", - "canonical": true, - "file": "data_scan_service.update_data_scan.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDataScan", - "fullName": "google.cloud.dataplex.v1.DataScanService.UpdateDataScan", - "async": true, - "parameters": [ - { - "name": "data_scan", - "type": ".google.cloud.dataplex.v1.DataScan" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataScanServiceClient", - "fullName": "google.cloud.dataplex.v1.DataScanServiceClient" - }, - "method": { - "shortName": "UpdateDataScan", - "fullName": "google.cloud.dataplex.v1.DataScanService.UpdateDataScan", - "service": { - "shortName": "DataScanService", - "fullName": "google.cloud.dataplex.v1.DataScanService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataScanService_DeleteDataScan_async", - "title": "BusinessGlossaryService deleteDataScan Sample", - "origin": "API_DEFINITION", - "description": " Deletes a DataScan resource.", - "canonical": true, - "file": "data_scan_service.delete_data_scan.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDataScan", - "fullName": "google.cloud.dataplex.v1.DataScanService.DeleteDataScan", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataScanServiceClient", - "fullName": "google.cloud.dataplex.v1.DataScanServiceClient" - }, - "method": { - "shortName": "DeleteDataScan", - "fullName": "google.cloud.dataplex.v1.DataScanService.DeleteDataScan", - "service": { - "shortName": "DataScanService", - "fullName": "google.cloud.dataplex.v1.DataScanService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataScanService_GetDataScan_async", - "title": "BusinessGlossaryService getDataScan Sample", - "origin": "API_DEFINITION", - "description": " Gets a DataScan resource.", - "canonical": true, - "file": "data_scan_service.get_data_scan.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDataScan", - "fullName": "google.cloud.dataplex.v1.DataScanService.GetDataScan", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.dataplex.v1.GetDataScanRequest.DataScanView" - } - ], - "resultType": ".google.cloud.dataplex.v1.DataScan", - "client": { - "shortName": "DataScanServiceClient", - "fullName": "google.cloud.dataplex.v1.DataScanServiceClient" - }, - "method": { - "shortName": "GetDataScan", - "fullName": "google.cloud.dataplex.v1.DataScanService.GetDataScan", - "service": { - "shortName": "DataScanService", - "fullName": "google.cloud.dataplex.v1.DataScanService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataScanService_ListDataScans_async", - "title": "BusinessGlossaryService listDataScans Sample", - "origin": "API_DEFINITION", - "description": " Lists DataScans.", - "canonical": true, - "file": "data_scan_service.list_data_scans.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDataScans", - "fullName": "google.cloud.dataplex.v1.DataScanService.ListDataScans", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataplex.v1.ListDataScansResponse", - "client": { - "shortName": "DataScanServiceClient", - "fullName": "google.cloud.dataplex.v1.DataScanServiceClient" - }, - "method": { - "shortName": "ListDataScans", - "fullName": "google.cloud.dataplex.v1.DataScanService.ListDataScans", - "service": { - "shortName": "DataScanService", - "fullName": "google.cloud.dataplex.v1.DataScanService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataScanService_RunDataScan_async", - "title": "BusinessGlossaryService runDataScan Sample", - "origin": "API_DEFINITION", - "description": " Runs an on-demand execution of a DataScan", - "canonical": true, - "file": "data_scan_service.run_data_scan.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RunDataScan", - "fullName": "google.cloud.dataplex.v1.DataScanService.RunDataScan", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataplex.v1.RunDataScanResponse", - "client": { - "shortName": "DataScanServiceClient", - "fullName": "google.cloud.dataplex.v1.DataScanServiceClient" - }, - "method": { - "shortName": "RunDataScan", - "fullName": "google.cloud.dataplex.v1.DataScanService.RunDataScan", - "service": { - "shortName": "DataScanService", - "fullName": "google.cloud.dataplex.v1.DataScanService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataScanService_GetDataScanJob_async", - "title": "BusinessGlossaryService getDataScanJob Sample", - "origin": "API_DEFINITION", - "description": " Gets a DataScanJob resource.", - "canonical": true, - "file": "data_scan_service.get_data_scan_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDataScanJob", - "fullName": "google.cloud.dataplex.v1.DataScanService.GetDataScanJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.dataplex.v1.GetDataScanJobRequest.DataScanJobView" - } - ], - "resultType": ".google.cloud.dataplex.v1.DataScanJob", - "client": { - "shortName": "DataScanServiceClient", - "fullName": "google.cloud.dataplex.v1.DataScanServiceClient" - }, - "method": { - "shortName": "GetDataScanJob", - "fullName": "google.cloud.dataplex.v1.DataScanService.GetDataScanJob", - "service": { - "shortName": "DataScanService", - "fullName": "google.cloud.dataplex.v1.DataScanService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataScanService_ListDataScanJobs_async", - "title": "BusinessGlossaryService listDataScanJobs Sample", - "origin": "API_DEFINITION", - "description": " Lists DataScanJobs under the given DataScan.", - "canonical": true, - "file": "data_scan_service.list_data_scan_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDataScanJobs", - "fullName": "google.cloud.dataplex.v1.DataScanService.ListDataScanJobs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataplex.v1.ListDataScanJobsResponse", - "client": { - "shortName": "DataScanServiceClient", - "fullName": "google.cloud.dataplex.v1.DataScanServiceClient" - }, - "method": { - "shortName": "ListDataScanJobs", - "fullName": "google.cloud.dataplex.v1.DataScanService.ListDataScanJobs", - "service": { - "shortName": "DataScanService", - "fullName": "google.cloud.dataplex.v1.DataScanService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataScanService_CancelDataScanJob_async", - "title": "BusinessGlossaryService cancelDataScanJob Sample", - "origin": "API_DEFINITION", - "description": " Cancels a running/pending DataScan job.", - "canonical": true, - "file": "data_scan_service.cancel_data_scan_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CancelDataScanJob", - "fullName": "google.cloud.dataplex.v1.DataScanService.CancelDataScanJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataplex.v1.CancelDataScanJobResponse", - "client": { - "shortName": "DataScanServiceClient", - "fullName": "google.cloud.dataplex.v1.DataScanServiceClient" - }, - "method": { - "shortName": "CancelDataScanJob", - "fullName": "google.cloud.dataplex.v1.DataScanService.CancelDataScanJob", - "service": { - "shortName": "DataScanService", - "fullName": "google.cloud.dataplex.v1.DataScanService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataScanService_GenerateDataQualityRules_async", - "title": "BusinessGlossaryService generateDataQualityRules Sample", - "origin": "API_DEFINITION", - "description": " Generates recommended data quality rules based on the results of a data profiling scan. Use the recommendations to build rules for a data quality scan.", - "canonical": true, - "file": "data_scan_service.generate_data_quality_rules.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateDataQualityRules", - "fullName": "google.cloud.dataplex.v1.DataScanService.GenerateDataQualityRules", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataplex.v1.GenerateDataQualityRulesResponse", - "client": { - "shortName": "DataScanServiceClient", - "fullName": "google.cloud.dataplex.v1.DataScanServiceClient" - }, - "method": { - "shortName": "GenerateDataQualityRules", - "fullName": "google.cloud.dataplex.v1.DataScanService.GenerateDataQualityRules", - "service": { - "shortName": "DataScanService", - "fullName": "google.cloud.dataplex.v1.DataScanService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataTaxonomyService_CreateDataTaxonomy_async", - "title": "BusinessGlossaryService createDataTaxonomy Sample", - "origin": "API_DEFINITION", - "description": " Create a DataTaxonomy resource.", - "canonical": true, - "file": "data_taxonomy_service.create_data_taxonomy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDataTaxonomy", - "fullName": "google.cloud.dataplex.v1.DataTaxonomyService.CreateDataTaxonomy", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "data_taxonomy_id", - "type": "TYPE_STRING" - }, - { - "name": "data_taxonomy", - "type": ".google.cloud.dataplex.v1.DataTaxonomy" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataTaxonomyServiceClient", - "fullName": "google.cloud.dataplex.v1.DataTaxonomyServiceClient" - }, - "method": { - "shortName": "CreateDataTaxonomy", - "fullName": "google.cloud.dataplex.v1.DataTaxonomyService.CreateDataTaxonomy", - "service": { - "shortName": "DataTaxonomyService", - "fullName": "google.cloud.dataplex.v1.DataTaxonomyService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataTaxonomyService_UpdateDataTaxonomy_async", - "title": "BusinessGlossaryService updateDataTaxonomy Sample", - "origin": "API_DEFINITION", - "description": " Updates a DataTaxonomy resource.", - "canonical": true, - "file": "data_taxonomy_service.update_data_taxonomy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDataTaxonomy", - "fullName": "google.cloud.dataplex.v1.DataTaxonomyService.UpdateDataTaxonomy", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "data_taxonomy", - "type": ".google.cloud.dataplex.v1.DataTaxonomy" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataTaxonomyServiceClient", - "fullName": "google.cloud.dataplex.v1.DataTaxonomyServiceClient" - }, - "method": { - "shortName": "UpdateDataTaxonomy", - "fullName": "google.cloud.dataplex.v1.DataTaxonomyService.UpdateDataTaxonomy", - "service": { - "shortName": "DataTaxonomyService", - "fullName": "google.cloud.dataplex.v1.DataTaxonomyService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataTaxonomyService_DeleteDataTaxonomy_async", - "title": "BusinessGlossaryService deleteDataTaxonomy Sample", - "origin": "API_DEFINITION", - "description": " Deletes a DataTaxonomy resource. All attributes within the DataTaxonomy must be deleted before the DataTaxonomy can be deleted.", - "canonical": true, - "file": "data_taxonomy_service.delete_data_taxonomy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDataTaxonomy", - "fullName": "google.cloud.dataplex.v1.DataTaxonomyService.DeleteDataTaxonomy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataTaxonomyServiceClient", - "fullName": "google.cloud.dataplex.v1.DataTaxonomyServiceClient" - }, - "method": { - "shortName": "DeleteDataTaxonomy", - "fullName": "google.cloud.dataplex.v1.DataTaxonomyService.DeleteDataTaxonomy", - "service": { - "shortName": "DataTaxonomyService", - "fullName": "google.cloud.dataplex.v1.DataTaxonomyService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataTaxonomyService_ListDataTaxonomies_async", - "title": "BusinessGlossaryService listDataTaxonomies Sample", - "origin": "API_DEFINITION", - "description": " Lists DataTaxonomy resources in a project and location.", - "canonical": true, - "file": "data_taxonomy_service.list_data_taxonomies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDataTaxonomies", - "fullName": "google.cloud.dataplex.v1.DataTaxonomyService.ListDataTaxonomies", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataplex.v1.ListDataTaxonomiesResponse", - "client": { - "shortName": "DataTaxonomyServiceClient", - "fullName": "google.cloud.dataplex.v1.DataTaxonomyServiceClient" - }, - "method": { - "shortName": "ListDataTaxonomies", - "fullName": "google.cloud.dataplex.v1.DataTaxonomyService.ListDataTaxonomies", - "service": { - "shortName": "DataTaxonomyService", - "fullName": "google.cloud.dataplex.v1.DataTaxonomyService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataTaxonomyService_GetDataTaxonomy_async", - "title": "BusinessGlossaryService getDataTaxonomy Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a DataTaxonomy resource.", - "canonical": true, - "file": "data_taxonomy_service.get_data_taxonomy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 52, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDataTaxonomy", - "fullName": "google.cloud.dataplex.v1.DataTaxonomyService.GetDataTaxonomy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataplex.v1.DataTaxonomy", - "client": { - "shortName": "DataTaxonomyServiceClient", - "fullName": "google.cloud.dataplex.v1.DataTaxonomyServiceClient" - }, - "method": { - "shortName": "GetDataTaxonomy", - "fullName": "google.cloud.dataplex.v1.DataTaxonomyService.GetDataTaxonomy", - "service": { - "shortName": "DataTaxonomyService", - "fullName": "google.cloud.dataplex.v1.DataTaxonomyService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataTaxonomyService_CreateDataAttributeBinding_async", - "title": "BusinessGlossaryService createDataAttributeBinding Sample", - "origin": "API_DEFINITION", - "description": " Create a DataAttributeBinding resource.", - "canonical": true, - "file": "data_taxonomy_service.create_data_attribute_binding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDataAttributeBinding", - "fullName": "google.cloud.dataplex.v1.DataTaxonomyService.CreateDataAttributeBinding", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "data_attribute_binding_id", - "type": "TYPE_STRING" - }, - { - "name": "data_attribute_binding", - "type": ".google.cloud.dataplex.v1.DataAttributeBinding" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataTaxonomyServiceClient", - "fullName": "google.cloud.dataplex.v1.DataTaxonomyServiceClient" - }, - "method": { - "shortName": "CreateDataAttributeBinding", - "fullName": "google.cloud.dataplex.v1.DataTaxonomyService.CreateDataAttributeBinding", - "service": { - "shortName": "DataTaxonomyService", - "fullName": "google.cloud.dataplex.v1.DataTaxonomyService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataTaxonomyService_UpdateDataAttributeBinding_async", - "title": "BusinessGlossaryService updateDataAttributeBinding Sample", - "origin": "API_DEFINITION", - "description": " Updates a DataAttributeBinding resource.", - "canonical": true, - "file": "data_taxonomy_service.update_data_attribute_binding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDataAttributeBinding", - "fullName": "google.cloud.dataplex.v1.DataTaxonomyService.UpdateDataAttributeBinding", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "data_attribute_binding", - "type": ".google.cloud.dataplex.v1.DataAttributeBinding" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataTaxonomyServiceClient", - "fullName": "google.cloud.dataplex.v1.DataTaxonomyServiceClient" - }, - "method": { - "shortName": "UpdateDataAttributeBinding", - "fullName": "google.cloud.dataplex.v1.DataTaxonomyService.UpdateDataAttributeBinding", - "service": { - "shortName": "DataTaxonomyService", - "fullName": "google.cloud.dataplex.v1.DataTaxonomyService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataTaxonomyService_DeleteDataAttributeBinding_async", - "title": "BusinessGlossaryService deleteDataAttributeBinding Sample", - "origin": "API_DEFINITION", - "description": " Deletes a DataAttributeBinding resource. All attributes within the DataAttributeBinding must be deleted before the DataAttributeBinding can be deleted.", - "canonical": true, - "file": "data_taxonomy_service.delete_data_attribute_binding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDataAttributeBinding", - "fullName": "google.cloud.dataplex.v1.DataTaxonomyService.DeleteDataAttributeBinding", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataTaxonomyServiceClient", - "fullName": "google.cloud.dataplex.v1.DataTaxonomyServiceClient" - }, - "method": { - "shortName": "DeleteDataAttributeBinding", - "fullName": "google.cloud.dataplex.v1.DataTaxonomyService.DeleteDataAttributeBinding", - "service": { - "shortName": "DataTaxonomyService", - "fullName": "google.cloud.dataplex.v1.DataTaxonomyService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataTaxonomyService_ListDataAttributeBindings_async", - "title": "BusinessGlossaryService listDataAttributeBindings Sample", - "origin": "API_DEFINITION", - "description": " Lists DataAttributeBinding resources in a project and location.", - "canonical": true, - "file": "data_taxonomy_service.list_data_attribute_bindings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDataAttributeBindings", - "fullName": "google.cloud.dataplex.v1.DataTaxonomyService.ListDataAttributeBindings", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataplex.v1.ListDataAttributeBindingsResponse", - "client": { - "shortName": "DataTaxonomyServiceClient", - "fullName": "google.cloud.dataplex.v1.DataTaxonomyServiceClient" - }, - "method": { - "shortName": "ListDataAttributeBindings", - "fullName": "google.cloud.dataplex.v1.DataTaxonomyService.ListDataAttributeBindings", - "service": { - "shortName": "DataTaxonomyService", - "fullName": "google.cloud.dataplex.v1.DataTaxonomyService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataTaxonomyService_GetDataAttributeBinding_async", - "title": "BusinessGlossaryService getDataAttributeBinding Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a DataAttributeBinding resource.", - "canonical": true, - "file": "data_taxonomy_service.get_data_attribute_binding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDataAttributeBinding", - "fullName": "google.cloud.dataplex.v1.DataTaxonomyService.GetDataAttributeBinding", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataplex.v1.DataAttributeBinding", - "client": { - "shortName": "DataTaxonomyServiceClient", - "fullName": "google.cloud.dataplex.v1.DataTaxonomyServiceClient" - }, - "method": { - "shortName": "GetDataAttributeBinding", - "fullName": "google.cloud.dataplex.v1.DataTaxonomyService.GetDataAttributeBinding", - "service": { - "shortName": "DataTaxonomyService", - "fullName": "google.cloud.dataplex.v1.DataTaxonomyService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataTaxonomyService_CreateDataAttribute_async", - "title": "BusinessGlossaryService createDataAttribute Sample", - "origin": "API_DEFINITION", - "description": " Create a DataAttribute resource.", - "canonical": true, - "file": "data_taxonomy_service.create_data_attribute.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDataAttribute", - "fullName": "google.cloud.dataplex.v1.DataTaxonomyService.CreateDataAttribute", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "data_attribute_id", - "type": "TYPE_STRING" - }, - { - "name": "data_attribute", - "type": ".google.cloud.dataplex.v1.DataAttribute" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataTaxonomyServiceClient", - "fullName": "google.cloud.dataplex.v1.DataTaxonomyServiceClient" - }, - "method": { - "shortName": "CreateDataAttribute", - "fullName": "google.cloud.dataplex.v1.DataTaxonomyService.CreateDataAttribute", - "service": { - "shortName": "DataTaxonomyService", - "fullName": "google.cloud.dataplex.v1.DataTaxonomyService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataTaxonomyService_UpdateDataAttribute_async", - "title": "BusinessGlossaryService updateDataAttribute Sample", - "origin": "API_DEFINITION", - "description": " Updates a DataAttribute resource.", - "canonical": true, - "file": "data_taxonomy_service.update_data_attribute.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDataAttribute", - "fullName": "google.cloud.dataplex.v1.DataTaxonomyService.UpdateDataAttribute", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "data_attribute", - "type": ".google.cloud.dataplex.v1.DataAttribute" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataTaxonomyServiceClient", - "fullName": "google.cloud.dataplex.v1.DataTaxonomyServiceClient" - }, - "method": { - "shortName": "UpdateDataAttribute", - "fullName": "google.cloud.dataplex.v1.DataTaxonomyService.UpdateDataAttribute", - "service": { - "shortName": "DataTaxonomyService", - "fullName": "google.cloud.dataplex.v1.DataTaxonomyService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataTaxonomyService_DeleteDataAttribute_async", - "title": "BusinessGlossaryService deleteDataAttribute Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Data Attribute resource.", - "canonical": true, - "file": "data_taxonomy_service.delete_data_attribute.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDataAttribute", - "fullName": "google.cloud.dataplex.v1.DataTaxonomyService.DeleteDataAttribute", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataTaxonomyServiceClient", - "fullName": "google.cloud.dataplex.v1.DataTaxonomyServiceClient" - }, - "method": { - "shortName": "DeleteDataAttribute", - "fullName": "google.cloud.dataplex.v1.DataTaxonomyService.DeleteDataAttribute", - "service": { - "shortName": "DataTaxonomyService", - "fullName": "google.cloud.dataplex.v1.DataTaxonomyService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataTaxonomyService_ListDataAttributes_async", - "title": "BusinessGlossaryService listDataAttributes Sample", - "origin": "API_DEFINITION", - "description": " Lists Data Attribute resources in a DataTaxonomy.", - "canonical": true, - "file": "data_taxonomy_service.list_data_attributes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDataAttributes", - "fullName": "google.cloud.dataplex.v1.DataTaxonomyService.ListDataAttributes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataplex.v1.ListDataAttributesResponse", - "client": { - "shortName": "DataTaxonomyServiceClient", - "fullName": "google.cloud.dataplex.v1.DataTaxonomyServiceClient" - }, - "method": { - "shortName": "ListDataAttributes", - "fullName": "google.cloud.dataplex.v1.DataTaxonomyService.ListDataAttributes", - "service": { - "shortName": "DataTaxonomyService", - "fullName": "google.cloud.dataplex.v1.DataTaxonomyService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_DataTaxonomyService_GetDataAttribute_async", - "title": "BusinessGlossaryService getDataAttribute Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a Data Attribute resource.", - "canonical": true, - "file": "data_taxonomy_service.get_data_attribute.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDataAttribute", - "fullName": "google.cloud.dataplex.v1.DataTaxonomyService.GetDataAttribute", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataplex.v1.DataAttribute", - "client": { - "shortName": "DataTaxonomyServiceClient", - "fullName": "google.cloud.dataplex.v1.DataTaxonomyServiceClient" - }, - "method": { - "shortName": "GetDataAttribute", - "fullName": "google.cloud.dataplex.v1.DataTaxonomyService.GetDataAttribute", - "service": { - "shortName": "DataTaxonomyService", - "fullName": "google.cloud.dataplex.v1.DataTaxonomyService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_MetadataService_CreateEntity_async", - "title": "BusinessGlossaryService createEntity Sample", - "origin": "API_DEFINITION", - "description": " Create a metadata entity.", - "canonical": true, - "file": "metadata_service.create_entity.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateEntity", - "fullName": "google.cloud.dataplex.v1.MetadataService.CreateEntity", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "entity", - "type": ".google.cloud.dataplex.v1.Entity" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.dataplex.v1.Entity", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.dataplex.v1.MetadataServiceClient" - }, - "method": { - "shortName": "CreateEntity", - "fullName": "google.cloud.dataplex.v1.MetadataService.CreateEntity", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.dataplex.v1.MetadataService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_MetadataService_UpdateEntity_async", - "title": "BusinessGlossaryService updateEntity Sample", - "origin": "API_DEFINITION", - "description": " Update a metadata entity. Only supports full resource update.", - "canonical": true, - "file": "metadata_service.update_entity.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateEntity", - "fullName": "google.cloud.dataplex.v1.MetadataService.UpdateEntity", - "async": true, - "parameters": [ - { - "name": "entity", - "type": ".google.cloud.dataplex.v1.Entity" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.dataplex.v1.Entity", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.dataplex.v1.MetadataServiceClient" - }, - "method": { - "shortName": "UpdateEntity", - "fullName": "google.cloud.dataplex.v1.MetadataService.UpdateEntity", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.dataplex.v1.MetadataService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_MetadataService_DeleteEntity_async", - "title": "BusinessGlossaryService deleteEntity Sample", - "origin": "API_DEFINITION", - "description": " Delete a metadata entity.", - "canonical": true, - "file": "metadata_service.delete_entity.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteEntity", - "fullName": "google.cloud.dataplex.v1.MetadataService.DeleteEntity", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.dataplex.v1.MetadataServiceClient" - }, - "method": { - "shortName": "DeleteEntity", - "fullName": "google.cloud.dataplex.v1.MetadataService.DeleteEntity", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.dataplex.v1.MetadataService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_MetadataService_GetEntity_async", - "title": "BusinessGlossaryService getEntity Sample", - "origin": "API_DEFINITION", - "description": " Get a metadata entity.", - "canonical": true, - "file": "metadata_service.get_entity.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEntity", - "fullName": "google.cloud.dataplex.v1.MetadataService.GetEntity", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.dataplex.v1.GetEntityRequest.EntityView" - } - ], - "resultType": ".google.cloud.dataplex.v1.Entity", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.dataplex.v1.MetadataServiceClient" - }, - "method": { - "shortName": "GetEntity", - "fullName": "google.cloud.dataplex.v1.MetadataService.GetEntity", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.dataplex.v1.MetadataService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_MetadataService_ListEntities_async", - "title": "BusinessGlossaryService listEntities Sample", - "origin": "API_DEFINITION", - "description": " List metadata entities in a zone.", - "canonical": true, - "file": "metadata_service.list_entities.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEntities", - "fullName": "google.cloud.dataplex.v1.MetadataService.ListEntities", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.dataplex.v1.ListEntitiesRequest.EntityView" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataplex.v1.ListEntitiesResponse", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.dataplex.v1.MetadataServiceClient" - }, - "method": { - "shortName": "ListEntities", - "fullName": "google.cloud.dataplex.v1.MetadataService.ListEntities", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.dataplex.v1.MetadataService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_MetadataService_CreatePartition_async", - "title": "BusinessGlossaryService createPartition Sample", - "origin": "API_DEFINITION", - "description": " Create a metadata partition.", - "canonical": true, - "file": "metadata_service.create_partition.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreatePartition", - "fullName": "google.cloud.dataplex.v1.MetadataService.CreatePartition", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "partition", - "type": ".google.cloud.dataplex.v1.Partition" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.dataplex.v1.Partition", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.dataplex.v1.MetadataServiceClient" - }, - "method": { - "shortName": "CreatePartition", - "fullName": "google.cloud.dataplex.v1.MetadataService.CreatePartition", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.dataplex.v1.MetadataService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_MetadataService_DeletePartition_async", - "title": "BusinessGlossaryService deletePartition Sample", - "origin": "API_DEFINITION", - "description": " Delete a metadata partition.", - "canonical": true, - "file": "metadata_service.delete_partition.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePartition", - "fullName": "google.cloud.dataplex.v1.MetadataService.DeletePartition", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.dataplex.v1.MetadataServiceClient" - }, - "method": { - "shortName": "DeletePartition", - "fullName": "google.cloud.dataplex.v1.MetadataService.DeletePartition", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.dataplex.v1.MetadataService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_MetadataService_GetPartition_async", - "title": "BusinessGlossaryService getPartition Sample", - "origin": "API_DEFINITION", - "description": " Get a metadata partition of an entity.", - "canonical": true, - "file": "metadata_service.get_partition.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPartition", - "fullName": "google.cloud.dataplex.v1.MetadataService.GetPartition", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataplex.v1.Partition", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.dataplex.v1.MetadataServiceClient" - }, - "method": { - "shortName": "GetPartition", - "fullName": "google.cloud.dataplex.v1.MetadataService.GetPartition", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.dataplex.v1.MetadataService" - } - } - } - }, - { - "regionTag": "dataplex_v1_generated_MetadataService_ListPartitions_async", - "title": "BusinessGlossaryService listPartitions Sample", - "origin": "API_DEFINITION", - "description": " List metadata partitions of an entity.", - "canonical": true, - "file": "metadata_service.list_partitions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 88, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPartitions", - "fullName": "google.cloud.dataplex.v1.MetadataService.ListPartitions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataplex.v1.ListPartitionsResponse", - "client": { - "shortName": "MetadataServiceClient", - "fullName": "google.cloud.dataplex.v1.MetadataServiceClient" - }, - "method": { - "shortName": "ListPartitions", - "fullName": "google.cloud.dataplex.v1.MetadataService.ListPartitions", - "service": { - "shortName": "MetadataService", - "fullName": "google.cloud.dataplex.v1.MetadataService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-dataproc/samples/generated/v1/snippet_metadata_google.cloud.dataproc.v1.json b/packages/google-cloud-dataproc/samples/generated/v1/snippet_metadata_google.cloud.dataproc.v1.json deleted file mode 100644 index 29722db4111e..000000000000 --- a/packages/google-cloud-dataproc/samples/generated/v1/snippet_metadata_google.cloud.dataproc.v1.json +++ /dev/null @@ -1,2155 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-dataproc", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.dataproc.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "dataproc_v1_generated_AutoscalingPolicyService_CreateAutoscalingPolicy_async", - "title": "dataproc createAutoscalingPolicy Sample", - "origin": "API_DEFINITION", - "description": " Creates new autoscaling policy.", - "canonical": true, - "file": "autoscaling_policy_service.create_autoscaling_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAutoscalingPolicy", - "fullName": "google.cloud.dataproc.v1.AutoscalingPolicyService.CreateAutoscalingPolicy", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.cloud.dataproc.v1.AutoscalingPolicy" - } - ], - "resultType": ".google.cloud.dataproc.v1.AutoscalingPolicy", - "client": { - "shortName": "AutoscalingPolicyServiceClient", - "fullName": "google.cloud.dataproc.v1.AutoscalingPolicyServiceClient" - }, - "method": { - "shortName": "CreateAutoscalingPolicy", - "fullName": "google.cloud.dataproc.v1.AutoscalingPolicyService.CreateAutoscalingPolicy", - "service": { - "shortName": "AutoscalingPolicyService", - "fullName": "google.cloud.dataproc.v1.AutoscalingPolicyService" - } - } - } - }, - { - "regionTag": "dataproc_v1_generated_AutoscalingPolicyService_UpdateAutoscalingPolicy_async", - "title": "dataproc updateAutoscalingPolicy Sample", - "origin": "API_DEFINITION", - "description": " Updates (replaces) autoscaling policy. Disabled check for update_mask, because all updates will be full replacements.", - "canonical": true, - "file": "autoscaling_policy_service.update_autoscaling_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAutoscalingPolicy", - "fullName": "google.cloud.dataproc.v1.AutoscalingPolicyService.UpdateAutoscalingPolicy", - "async": true, - "parameters": [ - { - "name": "policy", - "type": ".google.cloud.dataproc.v1.AutoscalingPolicy" - } - ], - "resultType": ".google.cloud.dataproc.v1.AutoscalingPolicy", - "client": { - "shortName": "AutoscalingPolicyServiceClient", - "fullName": "google.cloud.dataproc.v1.AutoscalingPolicyServiceClient" - }, - "method": { - "shortName": "UpdateAutoscalingPolicy", - "fullName": "google.cloud.dataproc.v1.AutoscalingPolicyService.UpdateAutoscalingPolicy", - "service": { - "shortName": "AutoscalingPolicyService", - "fullName": "google.cloud.dataproc.v1.AutoscalingPolicyService" - } - } - } - }, - { - "regionTag": "dataproc_v1_generated_AutoscalingPolicyService_GetAutoscalingPolicy_async", - "title": "dataproc getAutoscalingPolicy Sample", - "origin": "API_DEFINITION", - "description": " Retrieves autoscaling policy.", - "canonical": true, - "file": "autoscaling_policy_service.get_autoscaling_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAutoscalingPolicy", - "fullName": "google.cloud.dataproc.v1.AutoscalingPolicyService.GetAutoscalingPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataproc.v1.AutoscalingPolicy", - "client": { - "shortName": "AutoscalingPolicyServiceClient", - "fullName": "google.cloud.dataproc.v1.AutoscalingPolicyServiceClient" - }, - "method": { - "shortName": "GetAutoscalingPolicy", - "fullName": "google.cloud.dataproc.v1.AutoscalingPolicyService.GetAutoscalingPolicy", - "service": { - "shortName": "AutoscalingPolicyService", - "fullName": "google.cloud.dataproc.v1.AutoscalingPolicyService" - } - } - } - }, - { - "regionTag": "dataproc_v1_generated_AutoscalingPolicyService_ListAutoscalingPolicies_async", - "title": "dataproc listAutoscalingPolicies Sample", - "origin": "API_DEFINITION", - "description": " Lists autoscaling policies in the project.", - "canonical": true, - "file": "autoscaling_policy_service.list_autoscaling_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAutoscalingPolicies", - "fullName": "google.cloud.dataproc.v1.AutoscalingPolicyService.ListAutoscalingPolicies", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataproc.v1.ListAutoscalingPoliciesResponse", - "client": { - "shortName": "AutoscalingPolicyServiceClient", - "fullName": "google.cloud.dataproc.v1.AutoscalingPolicyServiceClient" - }, - "method": { - "shortName": "ListAutoscalingPolicies", - "fullName": "google.cloud.dataproc.v1.AutoscalingPolicyService.ListAutoscalingPolicies", - "service": { - "shortName": "AutoscalingPolicyService", - "fullName": "google.cloud.dataproc.v1.AutoscalingPolicyService" - } - } - } - }, - { - "regionTag": "dataproc_v1_generated_AutoscalingPolicyService_DeleteAutoscalingPolicy_async", - "title": "dataproc deleteAutoscalingPolicy Sample", - "origin": "API_DEFINITION", - "description": " Deletes an autoscaling policy. It is an error to delete an autoscaling policy that is in use by one or more clusters.", - "canonical": true, - "file": "autoscaling_policy_service.delete_autoscaling_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAutoscalingPolicy", - "fullName": "google.cloud.dataproc.v1.AutoscalingPolicyService.DeleteAutoscalingPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AutoscalingPolicyServiceClient", - "fullName": "google.cloud.dataproc.v1.AutoscalingPolicyServiceClient" - }, - "method": { - "shortName": "DeleteAutoscalingPolicy", - "fullName": "google.cloud.dataproc.v1.AutoscalingPolicyService.DeleteAutoscalingPolicy", - "service": { - "shortName": "AutoscalingPolicyService", - "fullName": "google.cloud.dataproc.v1.AutoscalingPolicyService" - } - } - } - }, - { - "regionTag": "dataproc_v1_generated_BatchController_CreateBatch_async", - "title": "dataproc createBatch Sample", - "origin": "API_DEFINITION", - "description": " Creates a batch workload that executes asynchronously.", - "canonical": true, - "file": "batch_controller.create_batch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateBatch", - "fullName": "google.cloud.dataproc.v1.BatchController.CreateBatch", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "batch", - "type": ".google.cloud.dataproc.v1.Batch" - }, - { - "name": "batch_id", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BatchControllerClient", - "fullName": "google.cloud.dataproc.v1.BatchControllerClient" - }, - "method": { - "shortName": "CreateBatch", - "fullName": "google.cloud.dataproc.v1.BatchController.CreateBatch", - "service": { - "shortName": "BatchController", - "fullName": "google.cloud.dataproc.v1.BatchController" - } - } - } - }, - { - "regionTag": "dataproc_v1_generated_BatchController_GetBatch_async", - "title": "dataproc getBatch Sample", - "origin": "API_DEFINITION", - "description": " Gets the batch workload resource representation.", - "canonical": true, - "file": "batch_controller.get_batch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBatch", - "fullName": "google.cloud.dataproc.v1.BatchController.GetBatch", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataproc.v1.Batch", - "client": { - "shortName": "BatchControllerClient", - "fullName": "google.cloud.dataproc.v1.BatchControllerClient" - }, - "method": { - "shortName": "GetBatch", - "fullName": "google.cloud.dataproc.v1.BatchController.GetBatch", - "service": { - "shortName": "BatchController", - "fullName": "google.cloud.dataproc.v1.BatchController" - } - } - } - }, - { - "regionTag": "dataproc_v1_generated_BatchController_ListBatches_async", - "title": "dataproc listBatches Sample", - "origin": "API_DEFINITION", - "description": " Lists batch workloads.", - "canonical": true, - "file": "batch_controller.list_batches.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 88, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBatches", - "fullName": "google.cloud.dataproc.v1.BatchController.ListBatches", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataproc.v1.ListBatchesResponse", - "client": { - "shortName": "BatchControllerClient", - "fullName": "google.cloud.dataproc.v1.BatchControllerClient" - }, - "method": { - "shortName": "ListBatches", - "fullName": "google.cloud.dataproc.v1.BatchController.ListBatches", - "service": { - "shortName": "BatchController", - "fullName": "google.cloud.dataproc.v1.BatchController" - } - } - } - }, - { - "regionTag": "dataproc_v1_generated_BatchController_DeleteBatch_async", - "title": "dataproc deleteBatch Sample", - "origin": "API_DEFINITION", - "description": " Deletes the batch workload resource. If the batch is not in a `CANCELLED`, `SUCCEEDED` or `FAILED` [`State`][google.cloud.dataproc.v1.Batch.State], the delete operation fails and the response returns `FAILED_PRECONDITION`.", - "canonical": true, - "file": "batch_controller.delete_batch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteBatch", - "fullName": "google.cloud.dataproc.v1.BatchController.DeleteBatch", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "BatchControllerClient", - "fullName": "google.cloud.dataproc.v1.BatchControllerClient" - }, - "method": { - "shortName": "DeleteBatch", - "fullName": "google.cloud.dataproc.v1.BatchController.DeleteBatch", - "service": { - "shortName": "BatchController", - "fullName": "google.cloud.dataproc.v1.BatchController" - } - } - } - }, - { - "regionTag": "dataproc_v1_generated_ClusterController_CreateCluster_async", - "title": "dataproc createCluster Sample", - "origin": "API_DEFINITION", - "description": " Creates a cluster in a project. The returned [Operation.metadata][google.longrunning.Operation.metadata] will be [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).", - "canonical": true, - "file": "cluster_controller.create_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCluster", - "fullName": "google.cloud.dataproc.v1.ClusterController.CreateCluster", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "cluster", - "type": ".google.cloud.dataproc.v1.Cluster" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "action_on_failed_primary_workers", - "type": ".google.cloud.dataproc.v1.FailureAction" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ClusterControllerClient", - "fullName": "google.cloud.dataproc.v1.ClusterControllerClient" - }, - "method": { - "shortName": "CreateCluster", - "fullName": "google.cloud.dataproc.v1.ClusterController.CreateCluster", - "service": { - "shortName": "ClusterController", - "fullName": "google.cloud.dataproc.v1.ClusterController" - } - } - } - }, - { - "regionTag": "dataproc_v1_generated_ClusterController_UpdateCluster_async", - "title": "dataproc updateCluster Sample", - "origin": "API_DEFINITION", - "description": " Updates a cluster in a project. The returned [Operation.metadata][google.longrunning.Operation.metadata] will be [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). The cluster must be in a [`RUNNING`][google.cloud.dataproc.v1.ClusterStatus.State] state or an error is returned.", - "canonical": true, - "file": "cluster_controller.update_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 146, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCluster", - "fullName": "google.cloud.dataproc.v1.ClusterController.UpdateCluster", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "cluster_name", - "type": "TYPE_STRING" - }, - { - "name": "cluster", - "type": ".google.cloud.dataproc.v1.Cluster" - }, - { - "name": "graceful_decommission_timeout", - "type": ".google.protobuf.Duration" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ClusterControllerClient", - "fullName": "google.cloud.dataproc.v1.ClusterControllerClient" - }, - "method": { - "shortName": "UpdateCluster", - "fullName": "google.cloud.dataproc.v1.ClusterController.UpdateCluster", - "service": { - "shortName": "ClusterController", - "fullName": "google.cloud.dataproc.v1.ClusterController" - } - } - } - }, - { - "regionTag": "dataproc_v1_generated_ClusterController_StopCluster_async", - "title": "dataproc stopCluster Sample", - "origin": "API_DEFINITION", - "description": " Stops a cluster in a project.", - "canonical": true, - "file": "cluster_controller.stop_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StopCluster", - "fullName": "google.cloud.dataproc.v1.ClusterController.StopCluster", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "cluster_name", - "type": "TYPE_STRING" - }, - { - "name": "cluster_uuid", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ClusterControllerClient", - "fullName": "google.cloud.dataproc.v1.ClusterControllerClient" - }, - "method": { - "shortName": "StopCluster", - "fullName": "google.cloud.dataproc.v1.ClusterController.StopCluster", - "service": { - "shortName": "ClusterController", - "fullName": "google.cloud.dataproc.v1.ClusterController" - } - } - } - }, - { - "regionTag": "dataproc_v1_generated_ClusterController_StartCluster_async", - "title": "dataproc startCluster Sample", - "origin": "API_DEFINITION", - "description": " Starts a cluster in a project.", - "canonical": true, - "file": "cluster_controller.start_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StartCluster", - "fullName": "google.cloud.dataproc.v1.ClusterController.StartCluster", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "cluster_name", - "type": "TYPE_STRING" - }, - { - "name": "cluster_uuid", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ClusterControllerClient", - "fullName": "google.cloud.dataproc.v1.ClusterControllerClient" - }, - "method": { - "shortName": "StartCluster", - "fullName": "google.cloud.dataproc.v1.ClusterController.StartCluster", - "service": { - "shortName": "ClusterController", - "fullName": "google.cloud.dataproc.v1.ClusterController" - } - } - } - }, - { - "regionTag": "dataproc_v1_generated_ClusterController_DeleteCluster_async", - "title": "dataproc deleteCluster Sample", - "origin": "API_DEFINITION", - "description": " Deletes a cluster in a project. The returned [Operation.metadata][google.longrunning.Operation.metadata] will be [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).", - "canonical": true, - "file": "cluster_controller.delete_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCluster", - "fullName": "google.cloud.dataproc.v1.ClusterController.DeleteCluster", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "cluster_name", - "type": "TYPE_STRING" - }, - { - "name": "cluster_uuid", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ClusterControllerClient", - "fullName": "google.cloud.dataproc.v1.ClusterControllerClient" - }, - "method": { - "shortName": "DeleteCluster", - "fullName": "google.cloud.dataproc.v1.ClusterController.DeleteCluster", - "service": { - "shortName": "ClusterController", - "fullName": "google.cloud.dataproc.v1.ClusterController" - } - } - } - }, - { - "regionTag": "dataproc_v1_generated_ClusterController_GetCluster_async", - "title": "dataproc getCluster Sample", - "origin": "API_DEFINITION", - "description": " Gets the resource representation for a cluster in a project.", - "canonical": true, - "file": "cluster_controller.get_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCluster", - "fullName": "google.cloud.dataproc.v1.ClusterController.GetCluster", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "cluster_name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataproc.v1.Cluster", - "client": { - "shortName": "ClusterControllerClient", - "fullName": "google.cloud.dataproc.v1.ClusterControllerClient" - }, - "method": { - "shortName": "GetCluster", - "fullName": "google.cloud.dataproc.v1.ClusterController.GetCluster", - "service": { - "shortName": "ClusterController", - "fullName": "google.cloud.dataproc.v1.ClusterController" - } - } - } - }, - { - "regionTag": "dataproc_v1_generated_ClusterController_ListClusters_async", - "title": "dataproc listClusters Sample", - "origin": "API_DEFINITION", - "description": " Lists all regions/{region}/clusters in a project alphabetically.", - "canonical": true, - "file": "cluster_controller.list_clusters.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListClusters", - "fullName": "google.cloud.dataproc.v1.ClusterController.ListClusters", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataproc.v1.ListClustersResponse", - "client": { - "shortName": "ClusterControllerClient", - "fullName": "google.cloud.dataproc.v1.ClusterControllerClient" - }, - "method": { - "shortName": "ListClusters", - "fullName": "google.cloud.dataproc.v1.ClusterController.ListClusters", - "service": { - "shortName": "ClusterController", - "fullName": "google.cloud.dataproc.v1.ClusterController" - } - } - } - }, - { - "regionTag": "dataproc_v1_generated_ClusterController_DiagnoseCluster_async", - "title": "dataproc diagnoseCluster Sample", - "origin": "API_DEFINITION", - "description": " Gets cluster diagnostic information. The returned [Operation.metadata][google.longrunning.Operation.metadata] will be [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata). After the operation completes, [Operation.response][google.longrunning.Operation.response] contains [DiagnoseClusterResults](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#diagnoseclusterresults).", - "canonical": true, - "file": "cluster_controller.diagnose_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 91, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DiagnoseCluster", - "fullName": "google.cloud.dataproc.v1.ClusterController.DiagnoseCluster", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "cluster_name", - "type": "TYPE_STRING" - }, - { - "name": "tarball_gcs_dir", - "type": "TYPE_STRING" - }, - { - "name": "tarball_access", - "type": ".google.cloud.dataproc.v1.DiagnoseClusterRequest.TarballAccess" - }, - { - "name": "diagnosis_interval", - "type": ".google.type.Interval" - }, - { - "name": "jobs", - "type": "TYPE_STRING[]" - }, - { - "name": "yarn_application_ids", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ClusterControllerClient", - "fullName": "google.cloud.dataproc.v1.ClusterControllerClient" - }, - "method": { - "shortName": "DiagnoseCluster", - "fullName": "google.cloud.dataproc.v1.ClusterController.DiagnoseCluster", - "service": { - "shortName": "ClusterController", - "fullName": "google.cloud.dataproc.v1.ClusterController" - } - } - } - }, - { - "regionTag": "dataproc_v1_generated_JobController_SubmitJob_async", - "title": "dataproc submitJob Sample", - "origin": "API_DEFINITION", - "description": " Submits a job to a cluster.", - "canonical": true, - "file": "job_controller.submit_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SubmitJob", - "fullName": "google.cloud.dataproc.v1.JobController.SubmitJob", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "job", - "type": ".google.cloud.dataproc.v1.Job" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataproc.v1.Job", - "client": { - "shortName": "JobControllerClient", - "fullName": "google.cloud.dataproc.v1.JobControllerClient" - }, - "method": { - "shortName": "SubmitJob", - "fullName": "google.cloud.dataproc.v1.JobController.SubmitJob", - "service": { - "shortName": "JobController", - "fullName": "google.cloud.dataproc.v1.JobController" - } - } - } - }, - { - "regionTag": "dataproc_v1_generated_JobController_SubmitJobAsOperation_async", - "title": "dataproc submitJobAsOperation Sample", - "origin": "API_DEFINITION", - "description": " Submits job to a cluster.", - "canonical": true, - "file": "job_controller.submit_job_as_operation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SubmitJobAsOperation", - "fullName": "google.cloud.dataproc.v1.JobController.SubmitJobAsOperation", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "job", - "type": ".google.cloud.dataproc.v1.Job" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "JobControllerClient", - "fullName": "google.cloud.dataproc.v1.JobControllerClient" - }, - "method": { - "shortName": "SubmitJobAsOperation", - "fullName": "google.cloud.dataproc.v1.JobController.SubmitJobAsOperation", - "service": { - "shortName": "JobController", - "fullName": "google.cloud.dataproc.v1.JobController" - } - } - } - }, - { - "regionTag": "dataproc_v1_generated_JobController_GetJob_async", - "title": "dataproc getJob Sample", - "origin": "API_DEFINITION", - "description": " Gets the resource representation for a job in a project.", - "canonical": true, - "file": "job_controller.get_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetJob", - "fullName": "google.cloud.dataproc.v1.JobController.GetJob", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "job_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataproc.v1.Job", - "client": { - "shortName": "JobControllerClient", - "fullName": "google.cloud.dataproc.v1.JobControllerClient" - }, - "method": { - "shortName": "GetJob", - "fullName": "google.cloud.dataproc.v1.JobController.GetJob", - "service": { - "shortName": "JobController", - "fullName": "google.cloud.dataproc.v1.JobController" - } - } - } - }, - { - "regionTag": "dataproc_v1_generated_JobController_ListJobs_async", - "title": "dataproc listJobs Sample", - "origin": "API_DEFINITION", - "description": " Lists regions/{region}/jobs in a project.", - "canonical": true, - "file": "job_controller.list_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 94, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListJobs", - "fullName": "google.cloud.dataproc.v1.JobController.ListJobs", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "cluster_name", - "type": "TYPE_STRING" - }, - { - "name": "job_state_matcher", - "type": ".google.cloud.dataproc.v1.ListJobsRequest.JobStateMatcher" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataproc.v1.ListJobsResponse", - "client": { - "shortName": "JobControllerClient", - "fullName": "google.cloud.dataproc.v1.JobControllerClient" - }, - "method": { - "shortName": "ListJobs", - "fullName": "google.cloud.dataproc.v1.JobController.ListJobs", - "service": { - "shortName": "JobController", - "fullName": "google.cloud.dataproc.v1.JobController" - } - } - } - }, - { - "regionTag": "dataproc_v1_generated_JobController_UpdateJob_async", - "title": "dataproc updateJob Sample", - "origin": "API_DEFINITION", - "description": " Updates a job in a project.", - "canonical": true, - "file": "job_controller.update_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateJob", - "fullName": "google.cloud.dataproc.v1.JobController.UpdateJob", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "job_id", - "type": "TYPE_STRING" - }, - { - "name": "job", - "type": ".google.cloud.dataproc.v1.Job" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dataproc.v1.Job", - "client": { - "shortName": "JobControllerClient", - "fullName": "google.cloud.dataproc.v1.JobControllerClient" - }, - "method": { - "shortName": "UpdateJob", - "fullName": "google.cloud.dataproc.v1.JobController.UpdateJob", - "service": { - "shortName": "JobController", - "fullName": "google.cloud.dataproc.v1.JobController" - } - } - } - }, - { - "regionTag": "dataproc_v1_generated_JobController_CancelJob_async", - "title": "dataproc cancelJob Sample", - "origin": "API_DEFINITION", - "description": " Starts a job cancellation request. To access the job resource after cancellation, call [regions/{region}/jobs.list](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/list) or [regions/{region}/jobs.get](https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs/get).", - "canonical": true, - "file": "job_controller.cancel_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CancelJob", - "fullName": "google.cloud.dataproc.v1.JobController.CancelJob", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "job_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataproc.v1.Job", - "client": { - "shortName": "JobControllerClient", - "fullName": "google.cloud.dataproc.v1.JobControllerClient" - }, - "method": { - "shortName": "CancelJob", - "fullName": "google.cloud.dataproc.v1.JobController.CancelJob", - "service": { - "shortName": "JobController", - "fullName": "google.cloud.dataproc.v1.JobController" - } - } - } - }, - { - "regionTag": "dataproc_v1_generated_JobController_DeleteJob_async", - "title": "dataproc deleteJob Sample", - "origin": "API_DEFINITION", - "description": " Deletes the job from the project. If the job is active, the delete fails, and the response returns `FAILED_PRECONDITION`.", - "canonical": true, - "file": "job_controller.delete_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteJob", - "fullName": "google.cloud.dataproc.v1.JobController.DeleteJob", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": "TYPE_STRING" - }, - { - "name": "job_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "JobControllerClient", - "fullName": "google.cloud.dataproc.v1.JobControllerClient" - }, - "method": { - "shortName": "DeleteJob", - "fullName": "google.cloud.dataproc.v1.JobController.DeleteJob", - "service": { - "shortName": "JobController", - "fullName": "google.cloud.dataproc.v1.JobController" - } - } - } - }, - { - "regionTag": "dataproc_v1_generated_NodeGroupController_CreateNodeGroup_async", - "title": "dataproc createNodeGroup Sample", - "origin": "API_DEFINITION", - "description": " Creates a node group in a cluster. The returned [Operation.metadata][google.longrunning.Operation.metadata] is [NodeGroupOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#nodegroupoperationmetadata).", - "canonical": true, - "file": "node_group_controller.create_node_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateNodeGroup", - "fullName": "google.cloud.dataproc.v1.NodeGroupController.CreateNodeGroup", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "node_group", - "type": ".google.cloud.dataproc.v1.NodeGroup" - }, - { - "name": "node_group_id", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NodeGroupControllerClient", - "fullName": "google.cloud.dataproc.v1.NodeGroupControllerClient" - }, - "method": { - "shortName": "CreateNodeGroup", - "fullName": "google.cloud.dataproc.v1.NodeGroupController.CreateNodeGroup", - "service": { - "shortName": "NodeGroupController", - "fullName": "google.cloud.dataproc.v1.NodeGroupController" - } - } - } - }, - { - "regionTag": "dataproc_v1_generated_NodeGroupController_ResizeNodeGroup_async", - "title": "dataproc resizeNodeGroup Sample", - "origin": "API_DEFINITION", - "description": " Resizes a node group in a cluster. The returned [Operation.metadata][google.longrunning.Operation.metadata] is [NodeGroupOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#nodegroupoperationmetadata).", - "canonical": true, - "file": "node_group_controller.resize_node_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 90, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResizeNodeGroup", - "fullName": "google.cloud.dataproc.v1.NodeGroupController.ResizeNodeGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "size", - "type": "TYPE_INT32" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "graceful_decommission_timeout", - "type": ".google.protobuf.Duration" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NodeGroupControllerClient", - "fullName": "google.cloud.dataproc.v1.NodeGroupControllerClient" - }, - "method": { - "shortName": "ResizeNodeGroup", - "fullName": "google.cloud.dataproc.v1.NodeGroupController.ResizeNodeGroup", - "service": { - "shortName": "NodeGroupController", - "fullName": "google.cloud.dataproc.v1.NodeGroupController" - } - } - } - }, - { - "regionTag": "dataproc_v1_generated_NodeGroupController_GetNodeGroup_async", - "title": "dataproc getNodeGroup Sample", - "origin": "API_DEFINITION", - "description": " Gets the resource representation for a node group in a cluster.", - "canonical": true, - "file": "node_group_controller.get_node_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetNodeGroup", - "fullName": "google.cloud.dataproc.v1.NodeGroupController.GetNodeGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataproc.v1.NodeGroup", - "client": { - "shortName": "NodeGroupControllerClient", - "fullName": "google.cloud.dataproc.v1.NodeGroupControllerClient" - }, - "method": { - "shortName": "GetNodeGroup", - "fullName": "google.cloud.dataproc.v1.NodeGroupController.GetNodeGroup", - "service": { - "shortName": "NodeGroupController", - "fullName": "google.cloud.dataproc.v1.NodeGroupController" - } - } - } - }, - { - "regionTag": "dataproc_v1_generated_SessionController_CreateSession_async", - "title": "dataproc createSession Sample", - "origin": "API_DEFINITION", - "description": " Create an interactive session asynchronously.", - "canonical": true, - "file": "session_controller.create_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSession", - "fullName": "google.cloud.dataproc.v1.SessionController.CreateSession", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "session", - "type": ".google.cloud.dataproc.v1.Session" - }, - { - "name": "session_id", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SessionControllerClient", - "fullName": "google.cloud.dataproc.v1.SessionControllerClient" - }, - "method": { - "shortName": "CreateSession", - "fullName": "google.cloud.dataproc.v1.SessionController.CreateSession", - "service": { - "shortName": "SessionController", - "fullName": "google.cloud.dataproc.v1.SessionController" - } - } - } - }, - { - "regionTag": "dataproc_v1_generated_SessionController_GetSession_async", - "title": "dataproc getSession Sample", - "origin": "API_DEFINITION", - "description": " Gets the resource representation for an interactive session.", - "canonical": true, - "file": "session_controller.get_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSession", - "fullName": "google.cloud.dataproc.v1.SessionController.GetSession", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataproc.v1.Session", - "client": { - "shortName": "SessionControllerClient", - "fullName": "google.cloud.dataproc.v1.SessionControllerClient" - }, - "method": { - "shortName": "GetSession", - "fullName": "google.cloud.dataproc.v1.SessionController.GetSession", - "service": { - "shortName": "SessionController", - "fullName": "google.cloud.dataproc.v1.SessionController" - } - } - } - }, - { - "regionTag": "dataproc_v1_generated_SessionController_ListSessions_async", - "title": "dataproc listSessions Sample", - "origin": "API_DEFINITION", - "description": " Lists interactive sessions.", - "canonical": true, - "file": "session_controller.list_sessions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSessions", - "fullName": "google.cloud.dataproc.v1.SessionController.ListSessions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataproc.v1.ListSessionsResponse", - "client": { - "shortName": "SessionControllerClient", - "fullName": "google.cloud.dataproc.v1.SessionControllerClient" - }, - "method": { - "shortName": "ListSessions", - "fullName": "google.cloud.dataproc.v1.SessionController.ListSessions", - "service": { - "shortName": "SessionController", - "fullName": "google.cloud.dataproc.v1.SessionController" - } - } - } - }, - { - "regionTag": "dataproc_v1_generated_SessionController_TerminateSession_async", - "title": "dataproc terminateSession Sample", - "origin": "API_DEFINITION", - "description": " Terminates the interactive session.", - "canonical": true, - "file": "session_controller.terminate_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TerminateSession", - "fullName": "google.cloud.dataproc.v1.SessionController.TerminateSession", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SessionControllerClient", - "fullName": "google.cloud.dataproc.v1.SessionControllerClient" - }, - "method": { - "shortName": "TerminateSession", - "fullName": "google.cloud.dataproc.v1.SessionController.TerminateSession", - "service": { - "shortName": "SessionController", - "fullName": "google.cloud.dataproc.v1.SessionController" - } - } - } - }, - { - "regionTag": "dataproc_v1_generated_SessionController_DeleteSession_async", - "title": "dataproc deleteSession Sample", - "origin": "API_DEFINITION", - "description": " Deletes the interactive session resource. If the session is not in terminal state, it is terminated, and then deleted.", - "canonical": true, - "file": "session_controller.delete_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSession", - "fullName": "google.cloud.dataproc.v1.SessionController.DeleteSession", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SessionControllerClient", - "fullName": "google.cloud.dataproc.v1.SessionControllerClient" - }, - "method": { - "shortName": "DeleteSession", - "fullName": "google.cloud.dataproc.v1.SessionController.DeleteSession", - "service": { - "shortName": "SessionController", - "fullName": "google.cloud.dataproc.v1.SessionController" - } - } - } - }, - { - "regionTag": "dataproc_v1_generated_SessionTemplateController_CreateSessionTemplate_async", - "title": "dataproc createSessionTemplate Sample", - "origin": "API_DEFINITION", - "description": " Create a session template synchronously.", - "canonical": true, - "file": "session_template_controller.create_session_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSessionTemplate", - "fullName": "google.cloud.dataproc.v1.SessionTemplateController.CreateSessionTemplate", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "session_template", - "type": ".google.cloud.dataproc.v1.SessionTemplate" - } - ], - "resultType": ".google.cloud.dataproc.v1.SessionTemplate", - "client": { - "shortName": "SessionTemplateControllerClient", - "fullName": "google.cloud.dataproc.v1.SessionTemplateControllerClient" - }, - "method": { - "shortName": "CreateSessionTemplate", - "fullName": "google.cloud.dataproc.v1.SessionTemplateController.CreateSessionTemplate", - "service": { - "shortName": "SessionTemplateController", - "fullName": "google.cloud.dataproc.v1.SessionTemplateController" - } - } - } - }, - { - "regionTag": "dataproc_v1_generated_SessionTemplateController_UpdateSessionTemplate_async", - "title": "dataproc updateSessionTemplate Sample", - "origin": "API_DEFINITION", - "description": " Updates the session template synchronously.", - "canonical": true, - "file": "session_template_controller.update_session_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSessionTemplate", - "fullName": "google.cloud.dataproc.v1.SessionTemplateController.UpdateSessionTemplate", - "async": true, - "parameters": [ - { - "name": "session_template", - "type": ".google.cloud.dataproc.v1.SessionTemplate" - } - ], - "resultType": ".google.cloud.dataproc.v1.SessionTemplate", - "client": { - "shortName": "SessionTemplateControllerClient", - "fullName": "google.cloud.dataproc.v1.SessionTemplateControllerClient" - }, - "method": { - "shortName": "UpdateSessionTemplate", - "fullName": "google.cloud.dataproc.v1.SessionTemplateController.UpdateSessionTemplate", - "service": { - "shortName": "SessionTemplateController", - "fullName": "google.cloud.dataproc.v1.SessionTemplateController" - } - } - } - }, - { - "regionTag": "dataproc_v1_generated_SessionTemplateController_GetSessionTemplate_async", - "title": "dataproc getSessionTemplate Sample", - "origin": "API_DEFINITION", - "description": " Gets the resource representation for a session template.", - "canonical": true, - "file": "session_template_controller.get_session_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSessionTemplate", - "fullName": "google.cloud.dataproc.v1.SessionTemplateController.GetSessionTemplate", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataproc.v1.SessionTemplate", - "client": { - "shortName": "SessionTemplateControllerClient", - "fullName": "google.cloud.dataproc.v1.SessionTemplateControllerClient" - }, - "method": { - "shortName": "GetSessionTemplate", - "fullName": "google.cloud.dataproc.v1.SessionTemplateController.GetSessionTemplate", - "service": { - "shortName": "SessionTemplateController", - "fullName": "google.cloud.dataproc.v1.SessionTemplateController" - } - } - } - }, - { - "regionTag": "dataproc_v1_generated_SessionTemplateController_ListSessionTemplates_async", - "title": "dataproc listSessionTemplates Sample", - "origin": "API_DEFINITION", - "description": " Lists session templates.", - "canonical": true, - "file": "session_template_controller.list_session_templates.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSessionTemplates", - "fullName": "google.cloud.dataproc.v1.SessionTemplateController.ListSessionTemplates", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataproc.v1.ListSessionTemplatesResponse", - "client": { - "shortName": "SessionTemplateControllerClient", - "fullName": "google.cloud.dataproc.v1.SessionTemplateControllerClient" - }, - "method": { - "shortName": "ListSessionTemplates", - "fullName": "google.cloud.dataproc.v1.SessionTemplateController.ListSessionTemplates", - "service": { - "shortName": "SessionTemplateController", - "fullName": "google.cloud.dataproc.v1.SessionTemplateController" - } - } - } - }, - { - "regionTag": "dataproc_v1_generated_SessionTemplateController_DeleteSessionTemplate_async", - "title": "dataproc deleteSessionTemplate Sample", - "origin": "API_DEFINITION", - "description": " Deletes a session template.", - "canonical": true, - "file": "session_template_controller.delete_session_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSessionTemplate", - "fullName": "google.cloud.dataproc.v1.SessionTemplateController.DeleteSessionTemplate", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "SessionTemplateControllerClient", - "fullName": "google.cloud.dataproc.v1.SessionTemplateControllerClient" - }, - "method": { - "shortName": "DeleteSessionTemplate", - "fullName": "google.cloud.dataproc.v1.SessionTemplateController.DeleteSessionTemplate", - "service": { - "shortName": "SessionTemplateController", - "fullName": "google.cloud.dataproc.v1.SessionTemplateController" - } - } - } - }, - { - "regionTag": "dataproc_v1_generated_WorkflowTemplateService_CreateWorkflowTemplate_async", - "title": "dataproc createWorkflowTemplate Sample", - "origin": "API_DEFINITION", - "description": " Creates new workflow template.", - "canonical": true, - "file": "workflow_template_service.create_workflow_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateWorkflowTemplate", - "fullName": "google.cloud.dataproc.v1.WorkflowTemplateService.CreateWorkflowTemplate", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "template", - "type": ".google.cloud.dataproc.v1.WorkflowTemplate" - } - ], - "resultType": ".google.cloud.dataproc.v1.WorkflowTemplate", - "client": { - "shortName": "WorkflowTemplateServiceClient", - "fullName": "google.cloud.dataproc.v1.WorkflowTemplateServiceClient" - }, - "method": { - "shortName": "CreateWorkflowTemplate", - "fullName": "google.cloud.dataproc.v1.WorkflowTemplateService.CreateWorkflowTemplate", - "service": { - "shortName": "WorkflowTemplateService", - "fullName": "google.cloud.dataproc.v1.WorkflowTemplateService" - } - } - } - }, - { - "regionTag": "dataproc_v1_generated_WorkflowTemplateService_GetWorkflowTemplate_async", - "title": "dataproc getWorkflowTemplate Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the latest workflow template. Can retrieve previously instantiated template by specifying optional version parameter.", - "canonical": true, - "file": "workflow_template_service.get_workflow_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetWorkflowTemplate", - "fullName": "google.cloud.dataproc.v1.WorkflowTemplateService.GetWorkflowTemplate", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "version", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.dataproc.v1.WorkflowTemplate", - "client": { - "shortName": "WorkflowTemplateServiceClient", - "fullName": "google.cloud.dataproc.v1.WorkflowTemplateServiceClient" - }, - "method": { - "shortName": "GetWorkflowTemplate", - "fullName": "google.cloud.dataproc.v1.WorkflowTemplateService.GetWorkflowTemplate", - "service": { - "shortName": "WorkflowTemplateService", - "fullName": "google.cloud.dataproc.v1.WorkflowTemplateService" - } - } - } - }, - { - "regionTag": "dataproc_v1_generated_WorkflowTemplateService_InstantiateWorkflowTemplate_async", - "title": "dataproc instantiateWorkflowTemplate Sample", - "origin": "API_DEFINITION", - "description": " Instantiates a template and begins execution. The returned Operation can be used to track execution of workflow by polling [operations.get][google.longrunning.Operations.GetOperation]. The Operation will complete when entire workflow is finished. The running workflow can be aborted via [operations.cancel][google.longrunning.Operations.CancelOperation]. This will cause any inflight jobs to be cancelled and workflow-owned clusters to be deleted. The [Operation.metadata][google.longrunning.Operation.metadata] will be [WorkflowMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata). Also see [Using WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata). On successful completion, [Operation.response][google.longrunning.Operation.response] will be [Empty][google.protobuf.Empty].", - "canonical": true, - "file": "workflow_template_service.instantiate_workflow_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "InstantiateWorkflowTemplate", - "fullName": "google.cloud.dataproc.v1.WorkflowTemplateService.InstantiateWorkflowTemplate", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "version", - "type": "TYPE_INT32" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "parameters", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkflowTemplateServiceClient", - "fullName": "google.cloud.dataproc.v1.WorkflowTemplateServiceClient" - }, - "method": { - "shortName": "InstantiateWorkflowTemplate", - "fullName": "google.cloud.dataproc.v1.WorkflowTemplateService.InstantiateWorkflowTemplate", - "service": { - "shortName": "WorkflowTemplateService", - "fullName": "google.cloud.dataproc.v1.WorkflowTemplateService" - } - } - } - }, - { - "regionTag": "dataproc_v1_generated_WorkflowTemplateService_InstantiateInlineWorkflowTemplate_async", - "title": "dataproc instantiateInlineWorkflowTemplate Sample", - "origin": "API_DEFINITION", - "description": " Instantiates a template and begins execution. This method is equivalent to executing the sequence [CreateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.CreateWorkflowTemplate], [InstantiateWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.InstantiateWorkflowTemplate], [DeleteWorkflowTemplate][google.cloud.dataproc.v1.WorkflowTemplateService.DeleteWorkflowTemplate]. The returned Operation can be used to track execution of workflow by polling [operations.get][google.longrunning.Operations.GetOperation]. The Operation will complete when entire workflow is finished. The running workflow can be aborted via [operations.cancel][google.longrunning.Operations.CancelOperation]. This will cause any inflight jobs to be cancelled and workflow-owned clusters to be deleted. The [Operation.metadata][google.longrunning.Operation.metadata] will be [WorkflowMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#workflowmetadata). Also see [Using WorkflowMetadata](https://cloud.google.com/dataproc/docs/concepts/workflows/debugging#using_workflowmetadata). On successful completion, [Operation.response][google.longrunning.Operation.response] will be [Empty][google.protobuf.Empty].", - "canonical": true, - "file": "workflow_template_service.instantiate_inline_workflow_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "InstantiateInlineWorkflowTemplate", - "fullName": "google.cloud.dataproc.v1.WorkflowTemplateService.InstantiateInlineWorkflowTemplate", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "template", - "type": ".google.cloud.dataproc.v1.WorkflowTemplate" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkflowTemplateServiceClient", - "fullName": "google.cloud.dataproc.v1.WorkflowTemplateServiceClient" - }, - "method": { - "shortName": "InstantiateInlineWorkflowTemplate", - "fullName": "google.cloud.dataproc.v1.WorkflowTemplateService.InstantiateInlineWorkflowTemplate", - "service": { - "shortName": "WorkflowTemplateService", - "fullName": "google.cloud.dataproc.v1.WorkflowTemplateService" - } - } - } - }, - { - "regionTag": "dataproc_v1_generated_WorkflowTemplateService_UpdateWorkflowTemplate_async", - "title": "dataproc updateWorkflowTemplate Sample", - "origin": "API_DEFINITION", - "description": " Updates (replaces) workflow template. The updated template must contain version that matches the current server version.", - "canonical": true, - "file": "workflow_template_service.update_workflow_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateWorkflowTemplate", - "fullName": "google.cloud.dataproc.v1.WorkflowTemplateService.UpdateWorkflowTemplate", - "async": true, - "parameters": [ - { - "name": "template", - "type": ".google.cloud.dataproc.v1.WorkflowTemplate" - } - ], - "resultType": ".google.cloud.dataproc.v1.WorkflowTemplate", - "client": { - "shortName": "WorkflowTemplateServiceClient", - "fullName": "google.cloud.dataproc.v1.WorkflowTemplateServiceClient" - }, - "method": { - "shortName": "UpdateWorkflowTemplate", - "fullName": "google.cloud.dataproc.v1.WorkflowTemplateService.UpdateWorkflowTemplate", - "service": { - "shortName": "WorkflowTemplateService", - "fullName": "google.cloud.dataproc.v1.WorkflowTemplateService" - } - } - } - }, - { - "regionTag": "dataproc_v1_generated_WorkflowTemplateService_ListWorkflowTemplates_async", - "title": "dataproc listWorkflowTemplates Sample", - "origin": "API_DEFINITION", - "description": " Lists workflows that match the specified filter in the request.", - "canonical": true, - "file": "workflow_template_service.list_workflow_templates.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListWorkflowTemplates", - "fullName": "google.cloud.dataproc.v1.WorkflowTemplateService.ListWorkflowTemplates", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataproc.v1.ListWorkflowTemplatesResponse", - "client": { - "shortName": "WorkflowTemplateServiceClient", - "fullName": "google.cloud.dataproc.v1.WorkflowTemplateServiceClient" - }, - "method": { - "shortName": "ListWorkflowTemplates", - "fullName": "google.cloud.dataproc.v1.WorkflowTemplateService.ListWorkflowTemplates", - "service": { - "shortName": "WorkflowTemplateService", - "fullName": "google.cloud.dataproc.v1.WorkflowTemplateService" - } - } - } - }, - { - "regionTag": "dataproc_v1_generated_WorkflowTemplateService_DeleteWorkflowTemplate_async", - "title": "dataproc deleteWorkflowTemplate Sample", - "origin": "API_DEFINITION", - "description": " Deletes a workflow template. It does not cancel in-progress workflows.", - "canonical": true, - "file": "workflow_template_service.delete_workflow_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteWorkflowTemplate", - "fullName": "google.cloud.dataproc.v1.WorkflowTemplateService.DeleteWorkflowTemplate", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "version", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "WorkflowTemplateServiceClient", - "fullName": "google.cloud.dataproc.v1.WorkflowTemplateServiceClient" - }, - "method": { - "shortName": "DeleteWorkflowTemplate", - "fullName": "google.cloud.dataproc.v1.WorkflowTemplateService.DeleteWorkflowTemplate", - "service": { - "shortName": "WorkflowTemplateService", - "fullName": "google.cloud.dataproc.v1.WorkflowTemplateService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-dataqna/samples/generated/v1alpha/snippet_metadata_google.cloud.dataqna.v1alpha.json b/packages/google-cloud-dataqna/samples/generated/v1alpha/snippet_metadata_google.cloud.dataqna.v1alpha.json deleted file mode 100644 index 406246961f27..000000000000 --- a/packages/google-cloud-dataqna/samples/generated/v1alpha/snippet_metadata_google.cloud.dataqna.v1alpha.json +++ /dev/null @@ -1,283 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-dataqna", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.dataqna.v1alpha", - "version": "v1alpha" - } - ] - }, - "snippets": [ - { - "regionTag": "dataqna_v1alpha_generated_AutoSuggestionService_SuggestQueries_async", - "title": "AutoSuggestionService suggestQueries Sample", - "origin": "API_DEFINITION", - "description": " Gets a list of suggestions based on a prefix string. AutoSuggestion tolerance should be less than 1 second.", - "canonical": true, - "file": "auto_suggestion_service.suggest_queries.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SuggestQueries", - "fullName": "google.cloud.dataqna.v1alpha.AutoSuggestionService.SuggestQueries", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "scopes", - "type": "TYPE_STRING[]" - }, - { - "name": "query", - "type": "TYPE_STRING" - }, - { - "name": "suggestion_types", - "type": "TYPE_ENUM[]" - } - ], - "resultType": ".google.cloud.dataqna.v1alpha.SuggestQueriesResponse", - "client": { - "shortName": "AutoSuggestionServiceClient", - "fullName": "google.cloud.dataqna.v1alpha.AutoSuggestionServiceClient" - }, - "method": { - "shortName": "SuggestQueries", - "fullName": "google.cloud.dataqna.v1alpha.AutoSuggestionService.SuggestQueries", - "service": { - "shortName": "AutoSuggestionService", - "fullName": "google.cloud.dataqna.v1alpha.AutoSuggestionService" - } - } - } - }, - { - "regionTag": "dataqna_v1alpha_generated_QuestionService_GetQuestion_async", - "title": "AutoSuggestionService getQuestion Sample", - "origin": "API_DEFINITION", - "description": " Gets a previously created question.", - "canonical": true, - "file": "question_service.get_question.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetQuestion", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService.GetQuestion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dataqna.v1alpha.Question", - "client": { - "shortName": "QuestionServiceClient", - "fullName": "google.cloud.dataqna.v1alpha.QuestionServiceClient" - }, - "method": { - "shortName": "GetQuestion", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService.GetQuestion", - "service": { - "shortName": "QuestionService", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService" - } - } - } - }, - { - "regionTag": "dataqna_v1alpha_generated_QuestionService_CreateQuestion_async", - "title": "AutoSuggestionService createQuestion Sample", - "origin": "API_DEFINITION", - "description": " Creates a question.", - "canonical": true, - "file": "question_service.create_question.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateQuestion", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService.CreateQuestion", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "question", - "type": ".google.cloud.dataqna.v1alpha.Question" - } - ], - "resultType": ".google.cloud.dataqna.v1alpha.Question", - "client": { - "shortName": "QuestionServiceClient", - "fullName": "google.cloud.dataqna.v1alpha.QuestionServiceClient" - }, - "method": { - "shortName": "CreateQuestion", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService.CreateQuestion", - "service": { - "shortName": "QuestionService", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService" - } - } - } - }, - { - "regionTag": "dataqna_v1alpha_generated_QuestionService_ExecuteQuestion_async", - "title": "AutoSuggestionService executeQuestion Sample", - "origin": "API_DEFINITION", - "description": " Executes an interpretation.", - "canonical": true, - "file": "question_service.execute_question.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExecuteQuestion", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService.ExecuteQuestion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "interpretation_index", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.dataqna.v1alpha.Question", - "client": { - "shortName": "QuestionServiceClient", - "fullName": "google.cloud.dataqna.v1alpha.QuestionServiceClient" - }, - "method": { - "shortName": "ExecuteQuestion", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService.ExecuteQuestion", - "service": { - "shortName": "QuestionService", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService" - } - } - } - }, - { - "regionTag": "dataqna_v1alpha_generated_QuestionService_GetUserFeedback_async", - "title": "AutoSuggestionService getUserFeedback Sample", - "origin": "API_DEFINITION", - "description": " Gets previously created user feedback.", - "canonical": true, - "file": "question_service.get_user_feedback.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetUserFeedback", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService.GetUserFeedback", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dataqna.v1alpha.UserFeedback", - "client": { - "shortName": "QuestionServiceClient", - "fullName": "google.cloud.dataqna.v1alpha.QuestionServiceClient" - }, - "method": { - "shortName": "GetUserFeedback", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService.GetUserFeedback", - "service": { - "shortName": "QuestionService", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService" - } - } - } - }, - { - "regionTag": "dataqna_v1alpha_generated_QuestionService_UpdateUserFeedback_async", - "title": "AutoSuggestionService updateUserFeedback Sample", - "origin": "API_DEFINITION", - "description": " Updates user feedback. This creates user feedback if there was none before (upsert).", - "canonical": true, - "file": "question_service.update_user_feedback.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateUserFeedback", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService.UpdateUserFeedback", - "async": true, - "parameters": [ - { - "name": "user_feedback", - "type": ".google.cloud.dataqna.v1alpha.UserFeedback" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dataqna.v1alpha.UserFeedback", - "client": { - "shortName": "QuestionServiceClient", - "fullName": "google.cloud.dataqna.v1alpha.QuestionServiceClient" - }, - "method": { - "shortName": "UpdateUserFeedback", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService.UpdateUserFeedback", - "service": { - "shortName": "QuestionService", - "fullName": "google.cloud.dataqna.v1alpha.QuestionService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-datastream/samples/generated/v1/snippet_metadata_google.cloud.datastream.v1.json b/packages/google-cloud-datastream/samples/generated/v1/snippet_metadata_google.cloud.datastream.v1.json deleted file mode 100644 index 6d53eb6c9ec7..000000000000 --- a/packages/google-cloud-datastream/samples/generated/v1/snippet_metadata_google.cloud.datastream.v1.json +++ /dev/null @@ -1,1311 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-datastream", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.datastream.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "datastream_v1_generated_Datastream_ListConnectionProfiles_async", - "title": "Datastream listConnectionProfiles Sample", - "origin": "API_DEFINITION", - "description": " Use this method to list connection profiles created in a project and location.", - "canonical": true, - "file": "datastream.list_connection_profiles.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListConnectionProfiles", - "fullName": "google.cloud.datastream.v1.Datastream.ListConnectionProfiles", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datastream.v1.ListConnectionProfilesResponse", - "client": { - "shortName": "DatastreamClient", - "fullName": "google.cloud.datastream.v1.DatastreamClient" - }, - "method": { - "shortName": "ListConnectionProfiles", - "fullName": "google.cloud.datastream.v1.Datastream.ListConnectionProfiles", - "service": { - "shortName": "Datastream", - "fullName": "google.cloud.datastream.v1.Datastream" - } - } - } - }, - { - "regionTag": "datastream_v1_generated_Datastream_GetConnectionProfile_async", - "title": "Datastream getConnectionProfile Sample", - "origin": "API_DEFINITION", - "description": " Use this method to get details about a connection profile.", - "canonical": true, - "file": "datastream.get_connection_profile.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetConnectionProfile", - "fullName": "google.cloud.datastream.v1.Datastream.GetConnectionProfile", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datastream.v1.ConnectionProfile", - "client": { - "shortName": "DatastreamClient", - "fullName": "google.cloud.datastream.v1.DatastreamClient" - }, - "method": { - "shortName": "GetConnectionProfile", - "fullName": "google.cloud.datastream.v1.Datastream.GetConnectionProfile", - "service": { - "shortName": "Datastream", - "fullName": "google.cloud.datastream.v1.Datastream" - } - } - } - }, - { - "regionTag": "datastream_v1_generated_Datastream_CreateConnectionProfile_async", - "title": "Datastream createConnectionProfile Sample", - "origin": "API_DEFINITION", - "description": " Use this method to create a connection profile in a project and location.", - "canonical": true, - "file": "datastream.create_connection_profile.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateConnectionProfile", - "fullName": "google.cloud.datastream.v1.Datastream.CreateConnectionProfile", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "connection_profile_id", - "type": "TYPE_STRING" - }, - { - "name": "connection_profile", - "type": ".google.cloud.datastream.v1.ConnectionProfile" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DatastreamClient", - "fullName": "google.cloud.datastream.v1.DatastreamClient" - }, - "method": { - "shortName": "CreateConnectionProfile", - "fullName": "google.cloud.datastream.v1.Datastream.CreateConnectionProfile", - "service": { - "shortName": "Datastream", - "fullName": "google.cloud.datastream.v1.Datastream" - } - } - } - }, - { - "regionTag": "datastream_v1_generated_Datastream_UpdateConnectionProfile_async", - "title": "Datastream updateConnectionProfile Sample", - "origin": "API_DEFINITION", - "description": " Use this method to update the parameters of a connection profile.", - "canonical": true, - "file": "datastream.update_connection_profile.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateConnectionProfile", - "fullName": "google.cloud.datastream.v1.Datastream.UpdateConnectionProfile", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "connection_profile", - "type": ".google.cloud.datastream.v1.ConnectionProfile" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DatastreamClient", - "fullName": "google.cloud.datastream.v1.DatastreamClient" - }, - "method": { - "shortName": "UpdateConnectionProfile", - "fullName": "google.cloud.datastream.v1.Datastream.UpdateConnectionProfile", - "service": { - "shortName": "Datastream", - "fullName": "google.cloud.datastream.v1.Datastream" - } - } - } - }, - { - "regionTag": "datastream_v1_generated_Datastream_DeleteConnectionProfile_async", - "title": "Datastream deleteConnectionProfile Sample", - "origin": "API_DEFINITION", - "description": " Use this method to delete a connection profile.", - "canonical": true, - "file": "datastream.delete_connection_profile.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteConnectionProfile", - "fullName": "google.cloud.datastream.v1.Datastream.DeleteConnectionProfile", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DatastreamClient", - "fullName": "google.cloud.datastream.v1.DatastreamClient" - }, - "method": { - "shortName": "DeleteConnectionProfile", - "fullName": "google.cloud.datastream.v1.Datastream.DeleteConnectionProfile", - "service": { - "shortName": "Datastream", - "fullName": "google.cloud.datastream.v1.Datastream" - } - } - } - }, - { - "regionTag": "datastream_v1_generated_Datastream_DiscoverConnectionProfile_async", - "title": "Datastream discoverConnectionProfile Sample", - "origin": "API_DEFINITION", - "description": " Use this method to discover a connection profile. The discover API call exposes the data objects and metadata belonging to the profile. Typically, a request returns children data objects of a parent data object that's optionally supplied in the request.", - "canonical": true, - "file": "datastream.discover_connection_profile.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 95, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DiscoverConnectionProfile", - "fullName": "google.cloud.datastream.v1.Datastream.DiscoverConnectionProfile", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "connection_profile", - "type": ".google.cloud.datastream.v1.ConnectionProfile" - }, - { - "name": "connection_profile_name", - "type": "TYPE_STRING" - }, - { - "name": "full_hierarchy", - "type": "TYPE_BOOL" - }, - { - "name": "hierarchy_depth", - "type": "TYPE_INT32" - }, - { - "name": "oracle_rdbms", - "type": ".google.cloud.datastream.v1.OracleRdbms" - }, - { - "name": "mysql_rdbms", - "type": ".google.cloud.datastream.v1.MysqlRdbms" - }, - { - "name": "postgresql_rdbms", - "type": ".google.cloud.datastream.v1.PostgresqlRdbms" - }, - { - "name": "sql_server_rdbms", - "type": ".google.cloud.datastream.v1.SqlServerRdbms" - }, - { - "name": "salesforce_org", - "type": ".google.cloud.datastream.v1.SalesforceOrg" - }, - { - "name": "mongodb_cluster", - "type": ".google.cloud.datastream.v1.MongodbCluster" - } - ], - "resultType": ".google.cloud.datastream.v1.DiscoverConnectionProfileResponse", - "client": { - "shortName": "DatastreamClient", - "fullName": "google.cloud.datastream.v1.DatastreamClient" - }, - "method": { - "shortName": "DiscoverConnectionProfile", - "fullName": "google.cloud.datastream.v1.Datastream.DiscoverConnectionProfile", - "service": { - "shortName": "Datastream", - "fullName": "google.cloud.datastream.v1.Datastream" - } - } - } - }, - { - "regionTag": "datastream_v1_generated_Datastream_ListStreams_async", - "title": "Datastream listStreams Sample", - "origin": "API_DEFINITION", - "description": " Use this method to list streams in a project and location.", - "canonical": true, - "file": "datastream.list_streams.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListStreams", - "fullName": "google.cloud.datastream.v1.Datastream.ListStreams", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datastream.v1.ListStreamsResponse", - "client": { - "shortName": "DatastreamClient", - "fullName": "google.cloud.datastream.v1.DatastreamClient" - }, - "method": { - "shortName": "ListStreams", - "fullName": "google.cloud.datastream.v1.Datastream.ListStreams", - "service": { - "shortName": "Datastream", - "fullName": "google.cloud.datastream.v1.Datastream" - } - } - } - }, - { - "regionTag": "datastream_v1_generated_Datastream_GetStream_async", - "title": "Datastream getStream Sample", - "origin": "API_DEFINITION", - "description": " Use this method to get details about a stream.", - "canonical": true, - "file": "datastream.get_stream.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetStream", - "fullName": "google.cloud.datastream.v1.Datastream.GetStream", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datastream.v1.Stream", - "client": { - "shortName": "DatastreamClient", - "fullName": "google.cloud.datastream.v1.DatastreamClient" - }, - "method": { - "shortName": "GetStream", - "fullName": "google.cloud.datastream.v1.Datastream.GetStream", - "service": { - "shortName": "Datastream", - "fullName": "google.cloud.datastream.v1.Datastream" - } - } - } - }, - { - "regionTag": "datastream_v1_generated_Datastream_CreateStream_async", - "title": "Datastream createStream Sample", - "origin": "API_DEFINITION", - "description": " Use this method to create a stream.", - "canonical": true, - "file": "datastream.create_stream.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateStream", - "fullName": "google.cloud.datastream.v1.Datastream.CreateStream", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "stream_id", - "type": "TYPE_STRING" - }, - { - "name": "stream", - "type": ".google.cloud.datastream.v1.Stream" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DatastreamClient", - "fullName": "google.cloud.datastream.v1.DatastreamClient" - }, - "method": { - "shortName": "CreateStream", - "fullName": "google.cloud.datastream.v1.Datastream.CreateStream", - "service": { - "shortName": "Datastream", - "fullName": "google.cloud.datastream.v1.Datastream" - } - } - } - }, - { - "regionTag": "datastream_v1_generated_Datastream_UpdateStream_async", - "title": "Datastream updateStream Sample", - "origin": "API_DEFINITION", - "description": " Use this method to update the configuration of a stream.", - "canonical": true, - "file": "datastream.update_stream.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateStream", - "fullName": "google.cloud.datastream.v1.Datastream.UpdateStream", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "stream", - "type": ".google.cloud.datastream.v1.Stream" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DatastreamClient", - "fullName": "google.cloud.datastream.v1.DatastreamClient" - }, - "method": { - "shortName": "UpdateStream", - "fullName": "google.cloud.datastream.v1.Datastream.UpdateStream", - "service": { - "shortName": "Datastream", - "fullName": "google.cloud.datastream.v1.Datastream" - } - } - } - }, - { - "regionTag": "datastream_v1_generated_Datastream_DeleteStream_async", - "title": "Datastream deleteStream Sample", - "origin": "API_DEFINITION", - "description": " Use this method to delete a stream.", - "canonical": true, - "file": "datastream.delete_stream.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteStream", - "fullName": "google.cloud.datastream.v1.Datastream.DeleteStream", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DatastreamClient", - "fullName": "google.cloud.datastream.v1.DatastreamClient" - }, - "method": { - "shortName": "DeleteStream", - "fullName": "google.cloud.datastream.v1.Datastream.DeleteStream", - "service": { - "shortName": "Datastream", - "fullName": "google.cloud.datastream.v1.Datastream" - } - } - } - }, - { - "regionTag": "datastream_v1_generated_Datastream_RunStream_async", - "title": "Datastream runStream Sample", - "origin": "API_DEFINITION", - "description": " Use this method to start, resume or recover a stream with a non default CDC strategy.", - "canonical": true, - "file": "datastream.run_stream.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RunStream", - "fullName": "google.cloud.datastream.v1.Datastream.RunStream", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "cdc_strategy", - "type": ".google.cloud.datastream.v1.CdcStrategy" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DatastreamClient", - "fullName": "google.cloud.datastream.v1.DatastreamClient" - }, - "method": { - "shortName": "RunStream", - "fullName": "google.cloud.datastream.v1.Datastream.RunStream", - "service": { - "shortName": "Datastream", - "fullName": "google.cloud.datastream.v1.Datastream" - } - } - } - }, - { - "regionTag": "datastream_v1_generated_Datastream_GetStreamObject_async", - "title": "Datastream getStreamObject Sample", - "origin": "API_DEFINITION", - "description": " Use this method to get details about a stream object.", - "canonical": true, - "file": "datastream.get_stream_object.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetStreamObject", - "fullName": "google.cloud.datastream.v1.Datastream.GetStreamObject", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datastream.v1.StreamObject", - "client": { - "shortName": "DatastreamClient", - "fullName": "google.cloud.datastream.v1.DatastreamClient" - }, - "method": { - "shortName": "GetStreamObject", - "fullName": "google.cloud.datastream.v1.Datastream.GetStreamObject", - "service": { - "shortName": "Datastream", - "fullName": "google.cloud.datastream.v1.Datastream" - } - } - } - }, - { - "regionTag": "datastream_v1_generated_Datastream_LookupStreamObject_async", - "title": "Datastream lookupStreamObject Sample", - "origin": "API_DEFINITION", - "description": " Use this method to look up a stream object by its source object identifier.", - "canonical": true, - "file": "datastream.lookup_stream_object.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "LookupStreamObject", - "fullName": "google.cloud.datastream.v1.Datastream.LookupStreamObject", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "source_object_identifier", - "type": ".google.cloud.datastream.v1.SourceObjectIdentifier" - } - ], - "resultType": ".google.cloud.datastream.v1.StreamObject", - "client": { - "shortName": "DatastreamClient", - "fullName": "google.cloud.datastream.v1.DatastreamClient" - }, - "method": { - "shortName": "LookupStreamObject", - "fullName": "google.cloud.datastream.v1.Datastream.LookupStreamObject", - "service": { - "shortName": "Datastream", - "fullName": "google.cloud.datastream.v1.Datastream" - } - } - } - }, - { - "regionTag": "datastream_v1_generated_Datastream_ListStreamObjects_async", - "title": "Datastream listStreamObjects Sample", - "origin": "API_DEFINITION", - "description": " Use this method to list the objects of a specific stream.", - "canonical": true, - "file": "datastream.list_stream_objects.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListStreamObjects", - "fullName": "google.cloud.datastream.v1.Datastream.ListStreamObjects", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datastream.v1.ListStreamObjectsResponse", - "client": { - "shortName": "DatastreamClient", - "fullName": "google.cloud.datastream.v1.DatastreamClient" - }, - "method": { - "shortName": "ListStreamObjects", - "fullName": "google.cloud.datastream.v1.Datastream.ListStreamObjects", - "service": { - "shortName": "Datastream", - "fullName": "google.cloud.datastream.v1.Datastream" - } - } - } - }, - { - "regionTag": "datastream_v1_generated_Datastream_StartBackfillJob_async", - "title": "Datastream startBackfillJob Sample", - "origin": "API_DEFINITION", - "description": " Use this method to start a backfill job for the specified stream object.", - "canonical": true, - "file": "datastream.start_backfill_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StartBackfillJob", - "fullName": "google.cloud.datastream.v1.Datastream.StartBackfillJob", - "async": true, - "parameters": [ - { - "name": "object", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datastream.v1.StartBackfillJobResponse", - "client": { - "shortName": "DatastreamClient", - "fullName": "google.cloud.datastream.v1.DatastreamClient" - }, - "method": { - "shortName": "StartBackfillJob", - "fullName": "google.cloud.datastream.v1.Datastream.StartBackfillJob", - "service": { - "shortName": "Datastream", - "fullName": "google.cloud.datastream.v1.Datastream" - } - } - } - }, - { - "regionTag": "datastream_v1_generated_Datastream_StopBackfillJob_async", - "title": "Datastream stopBackfillJob Sample", - "origin": "API_DEFINITION", - "description": " Use this method to stop a backfill job for the specified stream object.", - "canonical": true, - "file": "datastream.stop_backfill_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StopBackfillJob", - "fullName": "google.cloud.datastream.v1.Datastream.StopBackfillJob", - "async": true, - "parameters": [ - { - "name": "object", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datastream.v1.StopBackfillJobResponse", - "client": { - "shortName": "DatastreamClient", - "fullName": "google.cloud.datastream.v1.DatastreamClient" - }, - "method": { - "shortName": "StopBackfillJob", - "fullName": "google.cloud.datastream.v1.Datastream.StopBackfillJob", - "service": { - "shortName": "Datastream", - "fullName": "google.cloud.datastream.v1.Datastream" - } - } - } - }, - { - "regionTag": "datastream_v1_generated_Datastream_FetchStaticIps_async", - "title": "Datastream fetchStaticIps Sample", - "origin": "API_DEFINITION", - "description": " The FetchStaticIps API call exposes the static IP addresses used by Datastream.", - "canonical": true, - "file": "datastream.fetch_static_ips.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchStaticIps", - "fullName": "google.cloud.datastream.v1.Datastream.FetchStaticIps", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datastream.v1.FetchStaticIpsResponse", - "client": { - "shortName": "DatastreamClient", - "fullName": "google.cloud.datastream.v1.DatastreamClient" - }, - "method": { - "shortName": "FetchStaticIps", - "fullName": "google.cloud.datastream.v1.Datastream.FetchStaticIps", - "service": { - "shortName": "Datastream", - "fullName": "google.cloud.datastream.v1.Datastream" - } - } - } - }, - { - "regionTag": "datastream_v1_generated_Datastream_CreatePrivateConnection_async", - "title": "Datastream createPrivateConnection Sample", - "origin": "API_DEFINITION", - "description": " Use this method to create a private connectivity configuration.", - "canonical": true, - "file": "datastream.create_private_connection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 88, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreatePrivateConnection", - "fullName": "google.cloud.datastream.v1.Datastream.CreatePrivateConnection", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "private_connection_id", - "type": "TYPE_STRING" - }, - { - "name": "private_connection", - "type": ".google.cloud.datastream.v1.PrivateConnection" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DatastreamClient", - "fullName": "google.cloud.datastream.v1.DatastreamClient" - }, - "method": { - "shortName": "CreatePrivateConnection", - "fullName": "google.cloud.datastream.v1.Datastream.CreatePrivateConnection", - "service": { - "shortName": "Datastream", - "fullName": "google.cloud.datastream.v1.Datastream" - } - } - } - }, - { - "regionTag": "datastream_v1_generated_Datastream_GetPrivateConnection_async", - "title": "Datastream getPrivateConnection Sample", - "origin": "API_DEFINITION", - "description": " Use this method to get details about a private connectivity configuration.", - "canonical": true, - "file": "datastream.get_private_connection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPrivateConnection", - "fullName": "google.cloud.datastream.v1.Datastream.GetPrivateConnection", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datastream.v1.PrivateConnection", - "client": { - "shortName": "DatastreamClient", - "fullName": "google.cloud.datastream.v1.DatastreamClient" - }, - "method": { - "shortName": "GetPrivateConnection", - "fullName": "google.cloud.datastream.v1.Datastream.GetPrivateConnection", - "service": { - "shortName": "Datastream", - "fullName": "google.cloud.datastream.v1.Datastream" - } - } - } - }, - { - "regionTag": "datastream_v1_generated_Datastream_ListPrivateConnections_async", - "title": "Datastream listPrivateConnections Sample", - "origin": "API_DEFINITION", - "description": " Use this method to list private connectivity configurations in a project and location.", - "canonical": true, - "file": "datastream.list_private_connections.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPrivateConnections", - "fullName": "google.cloud.datastream.v1.Datastream.ListPrivateConnections", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datastream.v1.ListPrivateConnectionsResponse", - "client": { - "shortName": "DatastreamClient", - "fullName": "google.cloud.datastream.v1.DatastreamClient" - }, - "method": { - "shortName": "ListPrivateConnections", - "fullName": "google.cloud.datastream.v1.Datastream.ListPrivateConnections", - "service": { - "shortName": "Datastream", - "fullName": "google.cloud.datastream.v1.Datastream" - } - } - } - }, - { - "regionTag": "datastream_v1_generated_Datastream_DeletePrivateConnection_async", - "title": "Datastream deletePrivateConnection Sample", - "origin": "API_DEFINITION", - "description": " Use this method to delete a private connectivity configuration.", - "canonical": true, - "file": "datastream.delete_private_connection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePrivateConnection", - "fullName": "google.cloud.datastream.v1.Datastream.DeletePrivateConnection", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DatastreamClient", - "fullName": "google.cloud.datastream.v1.DatastreamClient" - }, - "method": { - "shortName": "DeletePrivateConnection", - "fullName": "google.cloud.datastream.v1.Datastream.DeletePrivateConnection", - "service": { - "shortName": "Datastream", - "fullName": "google.cloud.datastream.v1.Datastream" - } - } - } - }, - { - "regionTag": "datastream_v1_generated_Datastream_CreateRoute_async", - "title": "Datastream createRoute Sample", - "origin": "API_DEFINITION", - "description": " Use this method to create a route for a private connectivity configuration in a project and location.", - "canonical": true, - "file": "datastream.create_route.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateRoute", - "fullName": "google.cloud.datastream.v1.Datastream.CreateRoute", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "route_id", - "type": "TYPE_STRING" - }, - { - "name": "route", - "type": ".google.cloud.datastream.v1.Route" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DatastreamClient", - "fullName": "google.cloud.datastream.v1.DatastreamClient" - }, - "method": { - "shortName": "CreateRoute", - "fullName": "google.cloud.datastream.v1.Datastream.CreateRoute", - "service": { - "shortName": "Datastream", - "fullName": "google.cloud.datastream.v1.Datastream" - } - } - } - }, - { - "regionTag": "datastream_v1_generated_Datastream_GetRoute_async", - "title": "Datastream getRoute Sample", - "origin": "API_DEFINITION", - "description": " Use this method to get details about a route.", - "canonical": true, - "file": "datastream.get_route.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRoute", - "fullName": "google.cloud.datastream.v1.Datastream.GetRoute", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datastream.v1.Route", - "client": { - "shortName": "DatastreamClient", - "fullName": "google.cloud.datastream.v1.DatastreamClient" - }, - "method": { - "shortName": "GetRoute", - "fullName": "google.cloud.datastream.v1.Datastream.GetRoute", - "service": { - "shortName": "Datastream", - "fullName": "google.cloud.datastream.v1.Datastream" - } - } - } - }, - { - "regionTag": "datastream_v1_generated_Datastream_ListRoutes_async", - "title": "Datastream listRoutes Sample", - "origin": "API_DEFINITION", - "description": " Use this method to list routes created for a private connectivity configuration in a project and location.", - "canonical": true, - "file": "datastream.list_routes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRoutes", - "fullName": "google.cloud.datastream.v1.Datastream.ListRoutes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datastream.v1.ListRoutesResponse", - "client": { - "shortName": "DatastreamClient", - "fullName": "google.cloud.datastream.v1.DatastreamClient" - }, - "method": { - "shortName": "ListRoutes", - "fullName": "google.cloud.datastream.v1.Datastream.ListRoutes", - "service": { - "shortName": "Datastream", - "fullName": "google.cloud.datastream.v1.Datastream" - } - } - } - }, - { - "regionTag": "datastream_v1_generated_Datastream_DeleteRoute_async", - "title": "Datastream deleteRoute Sample", - "origin": "API_DEFINITION", - "description": " Use this method to delete a route.", - "canonical": true, - "file": "datastream.delete_route.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteRoute", - "fullName": "google.cloud.datastream.v1.Datastream.DeleteRoute", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DatastreamClient", - "fullName": "google.cloud.datastream.v1.DatastreamClient" - }, - "method": { - "shortName": "DeleteRoute", - "fullName": "google.cloud.datastream.v1.Datastream.DeleteRoute", - "service": { - "shortName": "Datastream", - "fullName": "google.cloud.datastream.v1.Datastream" - } - } - } - } - ] -} diff --git a/packages/google-cloud-datastream/samples/generated/v1alpha1/snippet_metadata_google.cloud.datastream.v1alpha1.json b/packages/google-cloud-datastream/samples/generated/v1alpha1/snippet_metadata_google.cloud.datastream.v1alpha1.json deleted file mode 100644 index 60024d25853a..000000000000 --- a/packages/google-cloud-datastream/samples/generated/v1alpha1/snippet_metadata_google.cloud.datastream.v1alpha1.json +++ /dev/null @@ -1,1051 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-datastream", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.datastream.v1alpha1", - "version": "v1alpha1" - } - ] - }, - "snippets": [ - { - "regionTag": "datastream_v1alpha1_generated_Datastream_ListConnectionProfiles_async", - "title": "Datastream listConnectionProfiles Sample", - "origin": "API_DEFINITION", - "description": " Use this method to list connection profiles created in a project and location.", - "canonical": true, - "file": "datastream.list_connection_profiles.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListConnectionProfiles", - "fullName": "google.cloud.datastream.v1alpha1.Datastream.ListConnectionProfiles", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse", - "client": { - "shortName": "DatastreamClient", - "fullName": "google.cloud.datastream.v1alpha1.DatastreamClient" - }, - "method": { - "shortName": "ListConnectionProfiles", - "fullName": "google.cloud.datastream.v1alpha1.Datastream.ListConnectionProfiles", - "service": { - "shortName": "Datastream", - "fullName": "google.cloud.datastream.v1alpha1.Datastream" - } - } - } - }, - { - "regionTag": "datastream_v1alpha1_generated_Datastream_GetConnectionProfile_async", - "title": "Datastream getConnectionProfile Sample", - "origin": "API_DEFINITION", - "description": " Use this method to get details about a connection profile.", - "canonical": true, - "file": "datastream.get_connection_profile.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetConnectionProfile", - "fullName": "google.cloud.datastream.v1alpha1.Datastream.GetConnectionProfile", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datastream.v1alpha1.ConnectionProfile", - "client": { - "shortName": "DatastreamClient", - "fullName": "google.cloud.datastream.v1alpha1.DatastreamClient" - }, - "method": { - "shortName": "GetConnectionProfile", - "fullName": "google.cloud.datastream.v1alpha1.Datastream.GetConnectionProfile", - "service": { - "shortName": "Datastream", - "fullName": "google.cloud.datastream.v1alpha1.Datastream" - } - } - } - }, - { - "regionTag": "datastream_v1alpha1_generated_Datastream_CreateConnectionProfile_async", - "title": "Datastream createConnectionProfile Sample", - "origin": "API_DEFINITION", - "description": " Use this method to create a connection profile in a project and location.", - "canonical": true, - "file": "datastream.create_connection_profile.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateConnectionProfile", - "fullName": "google.cloud.datastream.v1alpha1.Datastream.CreateConnectionProfile", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "connection_profile_id", - "type": "TYPE_STRING" - }, - { - "name": "connection_profile", - "type": ".google.cloud.datastream.v1alpha1.ConnectionProfile" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DatastreamClient", - "fullName": "google.cloud.datastream.v1alpha1.DatastreamClient" - }, - "method": { - "shortName": "CreateConnectionProfile", - "fullName": "google.cloud.datastream.v1alpha1.Datastream.CreateConnectionProfile", - "service": { - "shortName": "Datastream", - "fullName": "google.cloud.datastream.v1alpha1.Datastream" - } - } - } - }, - { - "regionTag": "datastream_v1alpha1_generated_Datastream_UpdateConnectionProfile_async", - "title": "Datastream updateConnectionProfile Sample", - "origin": "API_DEFINITION", - "description": " Use this method to update the parameters of a connection profile.", - "canonical": true, - "file": "datastream.update_connection_profile.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateConnectionProfile", - "fullName": "google.cloud.datastream.v1alpha1.Datastream.UpdateConnectionProfile", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "connection_profile", - "type": ".google.cloud.datastream.v1alpha1.ConnectionProfile" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DatastreamClient", - "fullName": "google.cloud.datastream.v1alpha1.DatastreamClient" - }, - "method": { - "shortName": "UpdateConnectionProfile", - "fullName": "google.cloud.datastream.v1alpha1.Datastream.UpdateConnectionProfile", - "service": { - "shortName": "Datastream", - "fullName": "google.cloud.datastream.v1alpha1.Datastream" - } - } - } - }, - { - "regionTag": "datastream_v1alpha1_generated_Datastream_DeleteConnectionProfile_async", - "title": "Datastream deleteConnectionProfile Sample", - "origin": "API_DEFINITION", - "description": " Use this method to delete a connection profile..", - "canonical": true, - "file": "datastream.delete_connection_profile.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteConnectionProfile", - "fullName": "google.cloud.datastream.v1alpha1.Datastream.DeleteConnectionProfile", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DatastreamClient", - "fullName": "google.cloud.datastream.v1alpha1.DatastreamClient" - }, - "method": { - "shortName": "DeleteConnectionProfile", - "fullName": "google.cloud.datastream.v1alpha1.Datastream.DeleteConnectionProfile", - "service": { - "shortName": "Datastream", - "fullName": "google.cloud.datastream.v1alpha1.Datastream" - } - } - } - }, - { - "regionTag": "datastream_v1alpha1_generated_Datastream_DiscoverConnectionProfile_async", - "title": "Datastream discoverConnectionProfile Sample", - "origin": "API_DEFINITION", - "description": " Use this method to discover a connection profile. The discover API call exposes the data objects and metadata belonging to the profile. Typically, a request returns children data objects under a parent data object that's optionally supplied in the request.", - "canonical": true, - "file": "datastream.discover_connection_profile.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DiscoverConnectionProfile", - "fullName": "google.cloud.datastream.v1alpha1.Datastream.DiscoverConnectionProfile", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "connection_profile", - "type": ".google.cloud.datastream.v1alpha1.ConnectionProfile" - }, - { - "name": "connection_profile_name", - "type": "TYPE_STRING" - }, - { - "name": "recursive", - "type": "TYPE_BOOL" - }, - { - "name": "recursion_depth", - "type": "TYPE_INT32" - }, - { - "name": "oracle_rdbms", - "type": ".google.cloud.datastream.v1alpha1.OracleRdbms" - }, - { - "name": "mysql_rdbms", - "type": ".google.cloud.datastream.v1alpha1.MysqlRdbms" - } - ], - "resultType": ".google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse", - "client": { - "shortName": "DatastreamClient", - "fullName": "google.cloud.datastream.v1alpha1.DatastreamClient" - }, - "method": { - "shortName": "DiscoverConnectionProfile", - "fullName": "google.cloud.datastream.v1alpha1.Datastream.DiscoverConnectionProfile", - "service": { - "shortName": "Datastream", - "fullName": "google.cloud.datastream.v1alpha1.Datastream" - } - } - } - }, - { - "regionTag": "datastream_v1alpha1_generated_Datastream_ListStreams_async", - "title": "Datastream listStreams Sample", - "origin": "API_DEFINITION", - "description": " Use this method to list streams in a project and location.", - "canonical": true, - "file": "datastream.list_streams.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListStreams", - "fullName": "google.cloud.datastream.v1alpha1.Datastream.ListStreams", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datastream.v1alpha1.ListStreamsResponse", - "client": { - "shortName": "DatastreamClient", - "fullName": "google.cloud.datastream.v1alpha1.DatastreamClient" - }, - "method": { - "shortName": "ListStreams", - "fullName": "google.cloud.datastream.v1alpha1.Datastream.ListStreams", - "service": { - "shortName": "Datastream", - "fullName": "google.cloud.datastream.v1alpha1.Datastream" - } - } - } - }, - { - "regionTag": "datastream_v1alpha1_generated_Datastream_GetStream_async", - "title": "Datastream getStream Sample", - "origin": "API_DEFINITION", - "description": " Use this method to get details about a stream.", - "canonical": true, - "file": "datastream.get_stream.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetStream", - "fullName": "google.cloud.datastream.v1alpha1.Datastream.GetStream", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datastream.v1alpha1.Stream", - "client": { - "shortName": "DatastreamClient", - "fullName": "google.cloud.datastream.v1alpha1.DatastreamClient" - }, - "method": { - "shortName": "GetStream", - "fullName": "google.cloud.datastream.v1alpha1.Datastream.GetStream", - "service": { - "shortName": "Datastream", - "fullName": "google.cloud.datastream.v1alpha1.Datastream" - } - } - } - }, - { - "regionTag": "datastream_v1alpha1_generated_Datastream_CreateStream_async", - "title": "Datastream createStream Sample", - "origin": "API_DEFINITION", - "description": " Use this method to create a stream.", - "canonical": true, - "file": "datastream.create_stream.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateStream", - "fullName": "google.cloud.datastream.v1alpha1.Datastream.CreateStream", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "stream_id", - "type": "TYPE_STRING" - }, - { - "name": "stream", - "type": ".google.cloud.datastream.v1alpha1.Stream" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DatastreamClient", - "fullName": "google.cloud.datastream.v1alpha1.DatastreamClient" - }, - "method": { - "shortName": "CreateStream", - "fullName": "google.cloud.datastream.v1alpha1.Datastream.CreateStream", - "service": { - "shortName": "Datastream", - "fullName": "google.cloud.datastream.v1alpha1.Datastream" - } - } - } - }, - { - "regionTag": "datastream_v1alpha1_generated_Datastream_UpdateStream_async", - "title": "Datastream updateStream Sample", - "origin": "API_DEFINITION", - "description": " Use this method to update the configuration of a stream.", - "canonical": true, - "file": "datastream.update_stream.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateStream", - "fullName": "google.cloud.datastream.v1alpha1.Datastream.UpdateStream", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "stream", - "type": ".google.cloud.datastream.v1alpha1.Stream" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DatastreamClient", - "fullName": "google.cloud.datastream.v1alpha1.DatastreamClient" - }, - "method": { - "shortName": "UpdateStream", - "fullName": "google.cloud.datastream.v1alpha1.Datastream.UpdateStream", - "service": { - "shortName": "Datastream", - "fullName": "google.cloud.datastream.v1alpha1.Datastream" - } - } - } - }, - { - "regionTag": "datastream_v1alpha1_generated_Datastream_DeleteStream_async", - "title": "Datastream deleteStream Sample", - "origin": "API_DEFINITION", - "description": " Use this method to delete a stream.", - "canonical": true, - "file": "datastream.delete_stream.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteStream", - "fullName": "google.cloud.datastream.v1alpha1.Datastream.DeleteStream", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DatastreamClient", - "fullName": "google.cloud.datastream.v1alpha1.DatastreamClient" - }, - "method": { - "shortName": "DeleteStream", - "fullName": "google.cloud.datastream.v1alpha1.Datastream.DeleteStream", - "service": { - "shortName": "Datastream", - "fullName": "google.cloud.datastream.v1alpha1.Datastream" - } - } - } - }, - { - "regionTag": "datastream_v1alpha1_generated_Datastream_FetchErrors_async", - "title": "Datastream fetchErrors Sample", - "origin": "API_DEFINITION", - "description": " Use this method to fetch any errors associated with a stream.", - "canonical": true, - "file": "datastream.fetch_errors.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchErrors", - "fullName": "google.cloud.datastream.v1alpha1.Datastream.FetchErrors", - "async": true, - "parameters": [ - { - "name": "stream", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DatastreamClient", - "fullName": "google.cloud.datastream.v1alpha1.DatastreamClient" - }, - "method": { - "shortName": "FetchErrors", - "fullName": "google.cloud.datastream.v1alpha1.Datastream.FetchErrors", - "service": { - "shortName": "Datastream", - "fullName": "google.cloud.datastream.v1alpha1.Datastream" - } - } - } - }, - { - "regionTag": "datastream_v1alpha1_generated_Datastream_FetchStaticIps_async", - "title": "Datastream fetchStaticIps Sample", - "origin": "API_DEFINITION", - "description": " The FetchStaticIps API call exposes the static ips used by Datastream. Typically, a request returns children data objects under a parent data object that's optionally supplied in the request.", - "canonical": true, - "file": "datastream.fetch_static_ips.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchStaticIps", - "fullName": "google.cloud.datastream.v1alpha1.Datastream.FetchStaticIps", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datastream.v1alpha1.FetchStaticIpsResponse", - "client": { - "shortName": "DatastreamClient", - "fullName": "google.cloud.datastream.v1alpha1.DatastreamClient" - }, - "method": { - "shortName": "FetchStaticIps", - "fullName": "google.cloud.datastream.v1alpha1.Datastream.FetchStaticIps", - "service": { - "shortName": "Datastream", - "fullName": "google.cloud.datastream.v1alpha1.Datastream" - } - } - } - }, - { - "regionTag": "datastream_v1alpha1_generated_Datastream_CreatePrivateConnection_async", - "title": "Datastream createPrivateConnection Sample", - "origin": "API_DEFINITION", - "description": " Use this method to create a private connectivity configuration.", - "canonical": true, - "file": "datastream.create_private_connection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreatePrivateConnection", - "fullName": "google.cloud.datastream.v1alpha1.Datastream.CreatePrivateConnection", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "private_connection_id", - "type": "TYPE_STRING" - }, - { - "name": "private_connection", - "type": ".google.cloud.datastream.v1alpha1.PrivateConnection" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DatastreamClient", - "fullName": "google.cloud.datastream.v1alpha1.DatastreamClient" - }, - "method": { - "shortName": "CreatePrivateConnection", - "fullName": "google.cloud.datastream.v1alpha1.Datastream.CreatePrivateConnection", - "service": { - "shortName": "Datastream", - "fullName": "google.cloud.datastream.v1alpha1.Datastream" - } - } - } - }, - { - "regionTag": "datastream_v1alpha1_generated_Datastream_GetPrivateConnection_async", - "title": "Datastream getPrivateConnection Sample", - "origin": "API_DEFINITION", - "description": " Use this method to get details about a private connectivity configuration.", - "canonical": true, - "file": "datastream.get_private_connection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPrivateConnection", - "fullName": "google.cloud.datastream.v1alpha1.Datastream.GetPrivateConnection", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datastream.v1alpha1.PrivateConnection", - "client": { - "shortName": "DatastreamClient", - "fullName": "google.cloud.datastream.v1alpha1.DatastreamClient" - }, - "method": { - "shortName": "GetPrivateConnection", - "fullName": "google.cloud.datastream.v1alpha1.Datastream.GetPrivateConnection", - "service": { - "shortName": "Datastream", - "fullName": "google.cloud.datastream.v1alpha1.Datastream" - } - } - } - }, - { - "regionTag": "datastream_v1alpha1_generated_Datastream_ListPrivateConnections_async", - "title": "Datastream listPrivateConnections Sample", - "origin": "API_DEFINITION", - "description": " Use this method to list private connectivity configurations in a project and location.", - "canonical": true, - "file": "datastream.list_private_connections.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPrivateConnections", - "fullName": "google.cloud.datastream.v1alpha1.Datastream.ListPrivateConnections", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse", - "client": { - "shortName": "DatastreamClient", - "fullName": "google.cloud.datastream.v1alpha1.DatastreamClient" - }, - "method": { - "shortName": "ListPrivateConnections", - "fullName": "google.cloud.datastream.v1alpha1.Datastream.ListPrivateConnections", - "service": { - "shortName": "Datastream", - "fullName": "google.cloud.datastream.v1alpha1.Datastream" - } - } - } - }, - { - "regionTag": "datastream_v1alpha1_generated_Datastream_DeletePrivateConnection_async", - "title": "Datastream deletePrivateConnection Sample", - "origin": "API_DEFINITION", - "description": " Use this method to delete a private connectivity configuration.", - "canonical": true, - "file": "datastream.delete_private_connection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePrivateConnection", - "fullName": "google.cloud.datastream.v1alpha1.Datastream.DeletePrivateConnection", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DatastreamClient", - "fullName": "google.cloud.datastream.v1alpha1.DatastreamClient" - }, - "method": { - "shortName": "DeletePrivateConnection", - "fullName": "google.cloud.datastream.v1alpha1.Datastream.DeletePrivateConnection", - "service": { - "shortName": "Datastream", - "fullName": "google.cloud.datastream.v1alpha1.Datastream" - } - } - } - }, - { - "regionTag": "datastream_v1alpha1_generated_Datastream_CreateRoute_async", - "title": "Datastream createRoute Sample", - "origin": "API_DEFINITION", - "description": " Use this method to create a route for a private connectivity in a project and location.", - "canonical": true, - "file": "datastream.create_route.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateRoute", - "fullName": "google.cloud.datastream.v1alpha1.Datastream.CreateRoute", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "route_id", - "type": "TYPE_STRING" - }, - { - "name": "route", - "type": ".google.cloud.datastream.v1alpha1.Route" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DatastreamClient", - "fullName": "google.cloud.datastream.v1alpha1.DatastreamClient" - }, - "method": { - "shortName": "CreateRoute", - "fullName": "google.cloud.datastream.v1alpha1.Datastream.CreateRoute", - "service": { - "shortName": "Datastream", - "fullName": "google.cloud.datastream.v1alpha1.Datastream" - } - } - } - }, - { - "regionTag": "datastream_v1alpha1_generated_Datastream_GetRoute_async", - "title": "Datastream getRoute Sample", - "origin": "API_DEFINITION", - "description": " Use this method to get details about a route.", - "canonical": true, - "file": "datastream.get_route.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRoute", - "fullName": "google.cloud.datastream.v1alpha1.Datastream.GetRoute", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datastream.v1alpha1.Route", - "client": { - "shortName": "DatastreamClient", - "fullName": "google.cloud.datastream.v1alpha1.DatastreamClient" - }, - "method": { - "shortName": "GetRoute", - "fullName": "google.cloud.datastream.v1alpha1.Datastream.GetRoute", - "service": { - "shortName": "Datastream", - "fullName": "google.cloud.datastream.v1alpha1.Datastream" - } - } - } - }, - { - "regionTag": "datastream_v1alpha1_generated_Datastream_ListRoutes_async", - "title": "Datastream listRoutes Sample", - "origin": "API_DEFINITION", - "description": " Use this method to list routes created for a private connectivity in a project and location.", - "canonical": true, - "file": "datastream.list_routes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRoutes", - "fullName": "google.cloud.datastream.v1alpha1.Datastream.ListRoutes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.datastream.v1alpha1.ListRoutesResponse", - "client": { - "shortName": "DatastreamClient", - "fullName": "google.cloud.datastream.v1alpha1.DatastreamClient" - }, - "method": { - "shortName": "ListRoutes", - "fullName": "google.cloud.datastream.v1alpha1.Datastream.ListRoutes", - "service": { - "shortName": "Datastream", - "fullName": "google.cloud.datastream.v1alpha1.Datastream" - } - } - } - }, - { - "regionTag": "datastream_v1alpha1_generated_Datastream_DeleteRoute_async", - "title": "Datastream deleteRoute Sample", - "origin": "API_DEFINITION", - "description": " Use this method to delete a route.", - "canonical": true, - "file": "datastream.delete_route.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteRoute", - "fullName": "google.cloud.datastream.v1alpha1.Datastream.DeleteRoute", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DatastreamClient", - "fullName": "google.cloud.datastream.v1alpha1.DatastreamClient" - }, - "method": { - "shortName": "DeleteRoute", - "fullName": "google.cloud.datastream.v1alpha1.Datastream.DeleteRoute", - "service": { - "shortName": "Datastream", - "fullName": "google.cloud.datastream.v1alpha1.Datastream" - } - } - } - } - ] -} diff --git a/packages/google-cloud-deploy/samples/generated/v1/snippet_metadata_google.cloud.deploy.v1.json b/packages/google-cloud-deploy/samples/generated/v1/snippet_metadata_google.cloud.deploy.v1.json deleted file mode 100644 index 07ce970672fc..000000000000 --- a/packages/google-cloud-deploy/samples/generated/v1/snippet_metadata_google.cloud.deploy.v1.json +++ /dev/null @@ -1,2323 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-deploy", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.deploy.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "clouddeploy_v1_generated_CloudDeploy_ListDeliveryPipelines_async", - "title": "CloudDeploy listDeliveryPipelines Sample", - "origin": "API_DEFINITION", - "description": " Lists DeliveryPipelines in a given project and location.", - "canonical": true, - "file": "cloud_deploy.list_delivery_pipelines.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDeliveryPipelines", - "fullName": "google.cloud.deploy.v1.CloudDeploy.ListDeliveryPipelines", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.deploy.v1.ListDeliveryPipelinesResponse", - "client": { - "shortName": "CloudDeployClient", - "fullName": "google.cloud.deploy.v1.CloudDeployClient" - }, - "method": { - "shortName": "ListDeliveryPipelines", - "fullName": "google.cloud.deploy.v1.CloudDeploy.ListDeliveryPipelines", - "service": { - "shortName": "CloudDeploy", - "fullName": "google.cloud.deploy.v1.CloudDeploy" - } - } - } - }, - { - "regionTag": "clouddeploy_v1_generated_CloudDeploy_GetDeliveryPipeline_async", - "title": "CloudDeploy getDeliveryPipeline Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single DeliveryPipeline.", - "canonical": true, - "file": "cloud_deploy.get_delivery_pipeline.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDeliveryPipeline", - "fullName": "google.cloud.deploy.v1.CloudDeploy.GetDeliveryPipeline", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.deploy.v1.DeliveryPipeline", - "client": { - "shortName": "CloudDeployClient", - "fullName": "google.cloud.deploy.v1.CloudDeployClient" - }, - "method": { - "shortName": "GetDeliveryPipeline", - "fullName": "google.cloud.deploy.v1.CloudDeploy.GetDeliveryPipeline", - "service": { - "shortName": "CloudDeploy", - "fullName": "google.cloud.deploy.v1.CloudDeploy" - } - } - } - }, - { - "regionTag": "clouddeploy_v1_generated_CloudDeploy_CreateDeliveryPipeline_async", - "title": "CloudDeploy createDeliveryPipeline Sample", - "origin": "API_DEFINITION", - "description": " Creates a new DeliveryPipeline in a given project and location.", - "canonical": true, - "file": "cloud_deploy.create_delivery_pipeline.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDeliveryPipeline", - "fullName": "google.cloud.deploy.v1.CloudDeploy.CreateDeliveryPipeline", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "delivery_pipeline_id", - "type": "TYPE_STRING" - }, - { - "name": "delivery_pipeline", - "type": ".google.cloud.deploy.v1.DeliveryPipeline" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudDeployClient", - "fullName": "google.cloud.deploy.v1.CloudDeployClient" - }, - "method": { - "shortName": "CreateDeliveryPipeline", - "fullName": "google.cloud.deploy.v1.CloudDeploy.CreateDeliveryPipeline", - "service": { - "shortName": "CloudDeploy", - "fullName": "google.cloud.deploy.v1.CloudDeploy" - } - } - } - }, - { - "regionTag": "clouddeploy_v1_generated_CloudDeploy_UpdateDeliveryPipeline_async", - "title": "CloudDeploy updateDeliveryPipeline Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single DeliveryPipeline.", - "canonical": true, - "file": "cloud_deploy.update_delivery_pipeline.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDeliveryPipeline", - "fullName": "google.cloud.deploy.v1.CloudDeploy.UpdateDeliveryPipeline", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "delivery_pipeline", - "type": ".google.cloud.deploy.v1.DeliveryPipeline" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudDeployClient", - "fullName": "google.cloud.deploy.v1.CloudDeployClient" - }, - "method": { - "shortName": "UpdateDeliveryPipeline", - "fullName": "google.cloud.deploy.v1.CloudDeploy.UpdateDeliveryPipeline", - "service": { - "shortName": "CloudDeploy", - "fullName": "google.cloud.deploy.v1.CloudDeploy" - } - } - } - }, - { - "regionTag": "clouddeploy_v1_generated_CloudDeploy_DeleteDeliveryPipeline_async", - "title": "CloudDeploy deleteDeliveryPipeline Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single DeliveryPipeline.", - "canonical": true, - "file": "cloud_deploy.delete_delivery_pipeline.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 91, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDeliveryPipeline", - "fullName": "google.cloud.deploy.v1.CloudDeploy.DeleteDeliveryPipeline", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "force", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudDeployClient", - "fullName": "google.cloud.deploy.v1.CloudDeployClient" - }, - "method": { - "shortName": "DeleteDeliveryPipeline", - "fullName": "google.cloud.deploy.v1.CloudDeploy.DeleteDeliveryPipeline", - "service": { - "shortName": "CloudDeploy", - "fullName": "google.cloud.deploy.v1.CloudDeploy" - } - } - } - }, - { - "regionTag": "clouddeploy_v1_generated_CloudDeploy_ListTargets_async", - "title": "CloudDeploy listTargets Sample", - "origin": "API_DEFINITION", - "description": " Lists Targets in a given project and location.", - "canonical": true, - "file": "cloud_deploy.list_targets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTargets", - "fullName": "google.cloud.deploy.v1.CloudDeploy.ListTargets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.deploy.v1.ListTargetsResponse", - "client": { - "shortName": "CloudDeployClient", - "fullName": "google.cloud.deploy.v1.CloudDeployClient" - }, - "method": { - "shortName": "ListTargets", - "fullName": "google.cloud.deploy.v1.CloudDeploy.ListTargets", - "service": { - "shortName": "CloudDeploy", - "fullName": "google.cloud.deploy.v1.CloudDeploy" - } - } - } - }, - { - "regionTag": "clouddeploy_v1_generated_CloudDeploy_RollbackTarget_async", - "title": "CloudDeploy rollbackTarget Sample", - "origin": "API_DEFINITION", - "description": " Creates a `Rollout` to roll back the specified target.", - "canonical": true, - "file": "cloud_deploy.rollback_target.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 90, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RollbackTarget", - "fullName": "google.cloud.deploy.v1.CloudDeploy.RollbackTarget", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "target_id", - "type": "TYPE_STRING" - }, - { - "name": "rollout_id", - "type": "TYPE_STRING" - }, - { - "name": "release_id", - "type": "TYPE_STRING" - }, - { - "name": "rollout_to_roll_back", - "type": "TYPE_STRING" - }, - { - "name": "rollback_config", - "type": ".google.cloud.deploy.v1.RollbackTargetConfig" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "override_deploy_policy", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.cloud.deploy.v1.RollbackTargetResponse", - "client": { - "shortName": "CloudDeployClient", - "fullName": "google.cloud.deploy.v1.CloudDeployClient" - }, - "method": { - "shortName": "RollbackTarget", - "fullName": "google.cloud.deploy.v1.CloudDeploy.RollbackTarget", - "service": { - "shortName": "CloudDeploy", - "fullName": "google.cloud.deploy.v1.CloudDeploy" - } - } - } - }, - { - "regionTag": "clouddeploy_v1_generated_CloudDeploy_GetTarget_async", - "title": "CloudDeploy getTarget Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Target.", - "canonical": true, - "file": "cloud_deploy.get_target.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTarget", - "fullName": "google.cloud.deploy.v1.CloudDeploy.GetTarget", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.deploy.v1.Target", - "client": { - "shortName": "CloudDeployClient", - "fullName": "google.cloud.deploy.v1.CloudDeployClient" - }, - "method": { - "shortName": "GetTarget", - "fullName": "google.cloud.deploy.v1.CloudDeploy.GetTarget", - "service": { - "shortName": "CloudDeploy", - "fullName": "google.cloud.deploy.v1.CloudDeploy" - } - } - } - }, - { - "regionTag": "clouddeploy_v1_generated_CloudDeploy_CreateTarget_async", - "title": "CloudDeploy createTarget Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Target in a given project and location.", - "canonical": true, - "file": "cloud_deploy.create_target.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTarget", - "fullName": "google.cloud.deploy.v1.CloudDeploy.CreateTarget", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "target_id", - "type": "TYPE_STRING" - }, - { - "name": "target", - "type": ".google.cloud.deploy.v1.Target" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudDeployClient", - "fullName": "google.cloud.deploy.v1.CloudDeployClient" - }, - "method": { - "shortName": "CreateTarget", - "fullName": "google.cloud.deploy.v1.CloudDeploy.CreateTarget", - "service": { - "shortName": "CloudDeploy", - "fullName": "google.cloud.deploy.v1.CloudDeploy" - } - } - } - }, - { - "regionTag": "clouddeploy_v1_generated_CloudDeploy_UpdateTarget_async", - "title": "CloudDeploy updateTarget Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Target.", - "canonical": true, - "file": "cloud_deploy.update_target.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTarget", - "fullName": "google.cloud.deploy.v1.CloudDeploy.UpdateTarget", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "target", - "type": ".google.cloud.deploy.v1.Target" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudDeployClient", - "fullName": "google.cloud.deploy.v1.CloudDeployClient" - }, - "method": { - "shortName": "UpdateTarget", - "fullName": "google.cloud.deploy.v1.CloudDeploy.UpdateTarget", - "service": { - "shortName": "CloudDeploy", - "fullName": "google.cloud.deploy.v1.CloudDeploy" - } - } - } - }, - { - "regionTag": "clouddeploy_v1_generated_CloudDeploy_DeleteTarget_async", - "title": "CloudDeploy deleteTarget Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Target.", - "canonical": true, - "file": "cloud_deploy.delete_target.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTarget", - "fullName": "google.cloud.deploy.v1.CloudDeploy.DeleteTarget", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudDeployClient", - "fullName": "google.cloud.deploy.v1.CloudDeployClient" - }, - "method": { - "shortName": "DeleteTarget", - "fullName": "google.cloud.deploy.v1.CloudDeploy.DeleteTarget", - "service": { - "shortName": "CloudDeploy", - "fullName": "google.cloud.deploy.v1.CloudDeploy" - } - } - } - }, - { - "regionTag": "clouddeploy_v1_generated_CloudDeploy_ListCustomTargetTypes_async", - "title": "CloudDeploy listCustomTargetTypes Sample", - "origin": "API_DEFINITION", - "description": " Lists CustomTargetTypes in a given project and location.", - "canonical": true, - "file": "cloud_deploy.list_custom_target_types.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCustomTargetTypes", - "fullName": "google.cloud.deploy.v1.CloudDeploy.ListCustomTargetTypes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.deploy.v1.ListCustomTargetTypesResponse", - "client": { - "shortName": "CloudDeployClient", - "fullName": "google.cloud.deploy.v1.CloudDeployClient" - }, - "method": { - "shortName": "ListCustomTargetTypes", - "fullName": "google.cloud.deploy.v1.CloudDeploy.ListCustomTargetTypes", - "service": { - "shortName": "CloudDeploy", - "fullName": "google.cloud.deploy.v1.CloudDeploy" - } - } - } - }, - { - "regionTag": "clouddeploy_v1_generated_CloudDeploy_GetCustomTargetType_async", - "title": "CloudDeploy getCustomTargetType Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single CustomTargetType.", - "canonical": true, - "file": "cloud_deploy.get_custom_target_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCustomTargetType", - "fullName": "google.cloud.deploy.v1.CloudDeploy.GetCustomTargetType", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.deploy.v1.CustomTargetType", - "client": { - "shortName": "CloudDeployClient", - "fullName": "google.cloud.deploy.v1.CloudDeployClient" - }, - "method": { - "shortName": "GetCustomTargetType", - "fullName": "google.cloud.deploy.v1.CloudDeploy.GetCustomTargetType", - "service": { - "shortName": "CloudDeploy", - "fullName": "google.cloud.deploy.v1.CloudDeploy" - } - } - } - }, - { - "regionTag": "clouddeploy_v1_generated_CloudDeploy_CreateCustomTargetType_async", - "title": "CloudDeploy createCustomTargetType Sample", - "origin": "API_DEFINITION", - "description": " Creates a new CustomTargetType in a given project and location.", - "canonical": true, - "file": "cloud_deploy.create_custom_target_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCustomTargetType", - "fullName": "google.cloud.deploy.v1.CloudDeploy.CreateCustomTargetType", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "custom_target_type_id", - "type": "TYPE_STRING" - }, - { - "name": "custom_target_type", - "type": ".google.cloud.deploy.v1.CustomTargetType" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudDeployClient", - "fullName": "google.cloud.deploy.v1.CloudDeployClient" - }, - "method": { - "shortName": "CreateCustomTargetType", - "fullName": "google.cloud.deploy.v1.CloudDeploy.CreateCustomTargetType", - "service": { - "shortName": "CloudDeploy", - "fullName": "google.cloud.deploy.v1.CloudDeploy" - } - } - } - }, - { - "regionTag": "clouddeploy_v1_generated_CloudDeploy_UpdateCustomTargetType_async", - "title": "CloudDeploy updateCustomTargetType Sample", - "origin": "API_DEFINITION", - "description": " Updates a single CustomTargetType.", - "canonical": true, - "file": "cloud_deploy.update_custom_target_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCustomTargetType", - "fullName": "google.cloud.deploy.v1.CloudDeploy.UpdateCustomTargetType", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "custom_target_type", - "type": ".google.cloud.deploy.v1.CustomTargetType" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudDeployClient", - "fullName": "google.cloud.deploy.v1.CloudDeployClient" - }, - "method": { - "shortName": "UpdateCustomTargetType", - "fullName": "google.cloud.deploy.v1.CloudDeploy.UpdateCustomTargetType", - "service": { - "shortName": "CloudDeploy", - "fullName": "google.cloud.deploy.v1.CloudDeploy" - } - } - } - }, - { - "regionTag": "clouddeploy_v1_generated_CloudDeploy_DeleteCustomTargetType_async", - "title": "CloudDeploy deleteCustomTargetType Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single CustomTargetType.", - "canonical": true, - "file": "cloud_deploy.delete_custom_target_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCustomTargetType", - "fullName": "google.cloud.deploy.v1.CloudDeploy.DeleteCustomTargetType", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudDeployClient", - "fullName": "google.cloud.deploy.v1.CloudDeployClient" - }, - "method": { - "shortName": "DeleteCustomTargetType", - "fullName": "google.cloud.deploy.v1.CloudDeploy.DeleteCustomTargetType", - "service": { - "shortName": "CloudDeploy", - "fullName": "google.cloud.deploy.v1.CloudDeploy" - } - } - } - }, - { - "regionTag": "clouddeploy_v1_generated_CloudDeploy_ListReleases_async", - "title": "CloudDeploy listReleases Sample", - "origin": "API_DEFINITION", - "description": " Lists Releases in a given project and location.", - "canonical": true, - "file": "cloud_deploy.list_releases.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListReleases", - "fullName": "google.cloud.deploy.v1.CloudDeploy.ListReleases", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.deploy.v1.ListReleasesResponse", - "client": { - "shortName": "CloudDeployClient", - "fullName": "google.cloud.deploy.v1.CloudDeployClient" - }, - "method": { - "shortName": "ListReleases", - "fullName": "google.cloud.deploy.v1.CloudDeploy.ListReleases", - "service": { - "shortName": "CloudDeploy", - "fullName": "google.cloud.deploy.v1.CloudDeploy" - } - } - } - }, - { - "regionTag": "clouddeploy_v1_generated_CloudDeploy_GetRelease_async", - "title": "CloudDeploy getRelease Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Release.", - "canonical": true, - "file": "cloud_deploy.get_release.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRelease", - "fullName": "google.cloud.deploy.v1.CloudDeploy.GetRelease", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.deploy.v1.Release", - "client": { - "shortName": "CloudDeployClient", - "fullName": "google.cloud.deploy.v1.CloudDeployClient" - }, - "method": { - "shortName": "GetRelease", - "fullName": "google.cloud.deploy.v1.CloudDeploy.GetRelease", - "service": { - "shortName": "CloudDeploy", - "fullName": "google.cloud.deploy.v1.CloudDeploy" - } - } - } - }, - { - "regionTag": "clouddeploy_v1_generated_CloudDeploy_CreateRelease_async", - "title": "CloudDeploy createRelease Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Release in a given project and location.", - "canonical": true, - "file": "cloud_deploy.create_release.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 90, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateRelease", - "fullName": "google.cloud.deploy.v1.CloudDeploy.CreateRelease", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "release_id", - "type": "TYPE_STRING" - }, - { - "name": "release", - "type": ".google.cloud.deploy.v1.Release" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "override_deploy_policy", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudDeployClient", - "fullName": "google.cloud.deploy.v1.CloudDeployClient" - }, - "method": { - "shortName": "CreateRelease", - "fullName": "google.cloud.deploy.v1.CloudDeploy.CreateRelease", - "service": { - "shortName": "CloudDeploy", - "fullName": "google.cloud.deploy.v1.CloudDeploy" - } - } - } - }, - { - "regionTag": "clouddeploy_v1_generated_CloudDeploy_AbandonRelease_async", - "title": "CloudDeploy abandonRelease Sample", - "origin": "API_DEFINITION", - "description": " Abandons a Release in the Delivery Pipeline.", - "canonical": true, - "file": "cloud_deploy.abandon_release.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AbandonRelease", - "fullName": "google.cloud.deploy.v1.CloudDeploy.AbandonRelease", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.deploy.v1.AbandonReleaseResponse", - "client": { - "shortName": "CloudDeployClient", - "fullName": "google.cloud.deploy.v1.CloudDeployClient" - }, - "method": { - "shortName": "AbandonRelease", - "fullName": "google.cloud.deploy.v1.CloudDeploy.AbandonRelease", - "service": { - "shortName": "CloudDeploy", - "fullName": "google.cloud.deploy.v1.CloudDeploy" - } - } - } - }, - { - "regionTag": "clouddeploy_v1_generated_CloudDeploy_CreateDeployPolicy_async", - "title": "CloudDeploy createDeployPolicy Sample", - "origin": "API_DEFINITION", - "description": " Creates a new DeployPolicy in a given project and location.", - "canonical": true, - "file": "cloud_deploy.create_deploy_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDeployPolicy", - "fullName": "google.cloud.deploy.v1.CloudDeploy.CreateDeployPolicy", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "deploy_policy_id", - "type": "TYPE_STRING" - }, - { - "name": "deploy_policy", - "type": ".google.cloud.deploy.v1.DeployPolicy" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudDeployClient", - "fullName": "google.cloud.deploy.v1.CloudDeployClient" - }, - "method": { - "shortName": "CreateDeployPolicy", - "fullName": "google.cloud.deploy.v1.CloudDeploy.CreateDeployPolicy", - "service": { - "shortName": "CloudDeploy", - "fullName": "google.cloud.deploy.v1.CloudDeploy" - } - } - } - }, - { - "regionTag": "clouddeploy_v1_generated_CloudDeploy_UpdateDeployPolicy_async", - "title": "CloudDeploy updateDeployPolicy Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single DeployPolicy.", - "canonical": true, - "file": "cloud_deploy.update_deploy_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDeployPolicy", - "fullName": "google.cloud.deploy.v1.CloudDeploy.UpdateDeployPolicy", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "deploy_policy", - "type": ".google.cloud.deploy.v1.DeployPolicy" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudDeployClient", - "fullName": "google.cloud.deploy.v1.CloudDeployClient" - }, - "method": { - "shortName": "UpdateDeployPolicy", - "fullName": "google.cloud.deploy.v1.CloudDeploy.UpdateDeployPolicy", - "service": { - "shortName": "CloudDeploy", - "fullName": "google.cloud.deploy.v1.CloudDeploy" - } - } - } - }, - { - "regionTag": "clouddeploy_v1_generated_CloudDeploy_DeleteDeployPolicy_async", - "title": "CloudDeploy deleteDeployPolicy Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single DeployPolicy.", - "canonical": true, - "file": "cloud_deploy.delete_deploy_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDeployPolicy", - "fullName": "google.cloud.deploy.v1.CloudDeploy.DeleteDeployPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudDeployClient", - "fullName": "google.cloud.deploy.v1.CloudDeployClient" - }, - "method": { - "shortName": "DeleteDeployPolicy", - "fullName": "google.cloud.deploy.v1.CloudDeploy.DeleteDeployPolicy", - "service": { - "shortName": "CloudDeploy", - "fullName": "google.cloud.deploy.v1.CloudDeploy" - } - } - } - }, - { - "regionTag": "clouddeploy_v1_generated_CloudDeploy_ListDeployPolicies_async", - "title": "CloudDeploy listDeployPolicies Sample", - "origin": "API_DEFINITION", - "description": " Lists DeployPolicies in a given project and location.", - "canonical": true, - "file": "cloud_deploy.list_deploy_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDeployPolicies", - "fullName": "google.cloud.deploy.v1.CloudDeploy.ListDeployPolicies", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.deploy.v1.ListDeployPoliciesResponse", - "client": { - "shortName": "CloudDeployClient", - "fullName": "google.cloud.deploy.v1.CloudDeployClient" - }, - "method": { - "shortName": "ListDeployPolicies", - "fullName": "google.cloud.deploy.v1.CloudDeploy.ListDeployPolicies", - "service": { - "shortName": "CloudDeploy", - "fullName": "google.cloud.deploy.v1.CloudDeploy" - } - } - } - }, - { - "regionTag": "clouddeploy_v1_generated_CloudDeploy_GetDeployPolicy_async", - "title": "CloudDeploy getDeployPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single DeployPolicy.", - "canonical": true, - "file": "cloud_deploy.get_deploy_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDeployPolicy", - "fullName": "google.cloud.deploy.v1.CloudDeploy.GetDeployPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.deploy.v1.DeployPolicy", - "client": { - "shortName": "CloudDeployClient", - "fullName": "google.cloud.deploy.v1.CloudDeployClient" - }, - "method": { - "shortName": "GetDeployPolicy", - "fullName": "google.cloud.deploy.v1.CloudDeploy.GetDeployPolicy", - "service": { - "shortName": "CloudDeploy", - "fullName": "google.cloud.deploy.v1.CloudDeploy" - } - } - } - }, - { - "regionTag": "clouddeploy_v1_generated_CloudDeploy_ApproveRollout_async", - "title": "CloudDeploy approveRollout Sample", - "origin": "API_DEFINITION", - "description": " Approves a Rollout.", - "canonical": true, - "file": "cloud_deploy.approve_rollout.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ApproveRollout", - "fullName": "google.cloud.deploy.v1.CloudDeploy.ApproveRollout", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "approved", - "type": "TYPE_BOOL" - }, - { - "name": "override_deploy_policy", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.cloud.deploy.v1.ApproveRolloutResponse", - "client": { - "shortName": "CloudDeployClient", - "fullName": "google.cloud.deploy.v1.CloudDeployClient" - }, - "method": { - "shortName": "ApproveRollout", - "fullName": "google.cloud.deploy.v1.CloudDeploy.ApproveRollout", - "service": { - "shortName": "CloudDeploy", - "fullName": "google.cloud.deploy.v1.CloudDeploy" - } - } - } - }, - { - "regionTag": "clouddeploy_v1_generated_CloudDeploy_AdvanceRollout_async", - "title": "CloudDeploy advanceRollout Sample", - "origin": "API_DEFINITION", - "description": " Advances a Rollout in a given project and location.", - "canonical": true, - "file": "cloud_deploy.advance_rollout.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AdvanceRollout", - "fullName": "google.cloud.deploy.v1.CloudDeploy.AdvanceRollout", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "phase_id", - "type": "TYPE_STRING" - }, - { - "name": "override_deploy_policy", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.cloud.deploy.v1.AdvanceRolloutResponse", - "client": { - "shortName": "CloudDeployClient", - "fullName": "google.cloud.deploy.v1.CloudDeployClient" - }, - "method": { - "shortName": "AdvanceRollout", - "fullName": "google.cloud.deploy.v1.CloudDeploy.AdvanceRollout", - "service": { - "shortName": "CloudDeploy", - "fullName": "google.cloud.deploy.v1.CloudDeploy" - } - } - } - }, - { - "regionTag": "clouddeploy_v1_generated_CloudDeploy_CancelRollout_async", - "title": "CloudDeploy cancelRollout Sample", - "origin": "API_DEFINITION", - "description": " Cancels a Rollout in a given project and location.", - "canonical": true, - "file": "cloud_deploy.cancel_rollout.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CancelRollout", - "fullName": "google.cloud.deploy.v1.CloudDeploy.CancelRollout", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "override_deploy_policy", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.cloud.deploy.v1.CancelRolloutResponse", - "client": { - "shortName": "CloudDeployClient", - "fullName": "google.cloud.deploy.v1.CloudDeployClient" - }, - "method": { - "shortName": "CancelRollout", - "fullName": "google.cloud.deploy.v1.CloudDeploy.CancelRollout", - "service": { - "shortName": "CloudDeploy", - "fullName": "google.cloud.deploy.v1.CloudDeploy" - } - } - } - }, - { - "regionTag": "clouddeploy_v1_generated_CloudDeploy_ListRollouts_async", - "title": "CloudDeploy listRollouts Sample", - "origin": "API_DEFINITION", - "description": " Lists Rollouts in a given project and location.", - "canonical": true, - "file": "cloud_deploy.list_rollouts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRollouts", - "fullName": "google.cloud.deploy.v1.CloudDeploy.ListRollouts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.deploy.v1.ListRolloutsResponse", - "client": { - "shortName": "CloudDeployClient", - "fullName": "google.cloud.deploy.v1.CloudDeployClient" - }, - "method": { - "shortName": "ListRollouts", - "fullName": "google.cloud.deploy.v1.CloudDeploy.ListRollouts", - "service": { - "shortName": "CloudDeploy", - "fullName": "google.cloud.deploy.v1.CloudDeploy" - } - } - } - }, - { - "regionTag": "clouddeploy_v1_generated_CloudDeploy_GetRollout_async", - "title": "CloudDeploy getRollout Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Rollout.", - "canonical": true, - "file": "cloud_deploy.get_rollout.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRollout", - "fullName": "google.cloud.deploy.v1.CloudDeploy.GetRollout", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.deploy.v1.Rollout", - "client": { - "shortName": "CloudDeployClient", - "fullName": "google.cloud.deploy.v1.CloudDeployClient" - }, - "method": { - "shortName": "GetRollout", - "fullName": "google.cloud.deploy.v1.CloudDeploy.GetRollout", - "service": { - "shortName": "CloudDeploy", - "fullName": "google.cloud.deploy.v1.CloudDeploy" - } - } - } - }, - { - "regionTag": "clouddeploy_v1_generated_CloudDeploy_CreateRollout_async", - "title": "CloudDeploy createRollout Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Rollout in a given project and location.", - "canonical": true, - "file": "cloud_deploy.create_rollout.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 95, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateRollout", - "fullName": "google.cloud.deploy.v1.CloudDeploy.CreateRollout", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "rollout_id", - "type": "TYPE_STRING" - }, - { - "name": "rollout", - "type": ".google.cloud.deploy.v1.Rollout" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "override_deploy_policy", - "type": "TYPE_STRING[]" - }, - { - "name": "starting_phase_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudDeployClient", - "fullName": "google.cloud.deploy.v1.CloudDeployClient" - }, - "method": { - "shortName": "CreateRollout", - "fullName": "google.cloud.deploy.v1.CloudDeploy.CreateRollout", - "service": { - "shortName": "CloudDeploy", - "fullName": "google.cloud.deploy.v1.CloudDeploy" - } - } - } - }, - { - "regionTag": "clouddeploy_v1_generated_CloudDeploy_IgnoreJob_async", - "title": "CloudDeploy ignoreJob Sample", - "origin": "API_DEFINITION", - "description": " Ignores the specified Job in a Rollout.", - "canonical": true, - "file": "cloud_deploy.ignore_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "IgnoreJob", - "fullName": "google.cloud.deploy.v1.CloudDeploy.IgnoreJob", - "async": true, - "parameters": [ - { - "name": "rollout", - "type": "TYPE_STRING" - }, - { - "name": "phase_id", - "type": "TYPE_STRING" - }, - { - "name": "job_id", - "type": "TYPE_STRING" - }, - { - "name": "override_deploy_policy", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.cloud.deploy.v1.IgnoreJobResponse", - "client": { - "shortName": "CloudDeployClient", - "fullName": "google.cloud.deploy.v1.CloudDeployClient" - }, - "method": { - "shortName": "IgnoreJob", - "fullName": "google.cloud.deploy.v1.CloudDeploy.IgnoreJob", - "service": { - "shortName": "CloudDeploy", - "fullName": "google.cloud.deploy.v1.CloudDeploy" - } - } - } - }, - { - "regionTag": "clouddeploy_v1_generated_CloudDeploy_RetryJob_async", - "title": "CloudDeploy retryJob Sample", - "origin": "API_DEFINITION", - "description": " Retries the specified Job in a Rollout.", - "canonical": true, - "file": "cloud_deploy.retry_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RetryJob", - "fullName": "google.cloud.deploy.v1.CloudDeploy.RetryJob", - "async": true, - "parameters": [ - { - "name": "rollout", - "type": "TYPE_STRING" - }, - { - "name": "phase_id", - "type": "TYPE_STRING" - }, - { - "name": "job_id", - "type": "TYPE_STRING" - }, - { - "name": "override_deploy_policy", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.cloud.deploy.v1.RetryJobResponse", - "client": { - "shortName": "CloudDeployClient", - "fullName": "google.cloud.deploy.v1.CloudDeployClient" - }, - "method": { - "shortName": "RetryJob", - "fullName": "google.cloud.deploy.v1.CloudDeploy.RetryJob", - "service": { - "shortName": "CloudDeploy", - "fullName": "google.cloud.deploy.v1.CloudDeploy" - } - } - } - }, - { - "regionTag": "clouddeploy_v1_generated_CloudDeploy_ListJobRuns_async", - "title": "CloudDeploy listJobRuns Sample", - "origin": "API_DEFINITION", - "description": " Lists JobRuns in a given project and location.", - "canonical": true, - "file": "cloud_deploy.list_job_runs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListJobRuns", - "fullName": "google.cloud.deploy.v1.CloudDeploy.ListJobRuns", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.deploy.v1.ListJobRunsResponse", - "client": { - "shortName": "CloudDeployClient", - "fullName": "google.cloud.deploy.v1.CloudDeployClient" - }, - "method": { - "shortName": "ListJobRuns", - "fullName": "google.cloud.deploy.v1.CloudDeploy.ListJobRuns", - "service": { - "shortName": "CloudDeploy", - "fullName": "google.cloud.deploy.v1.CloudDeploy" - } - } - } - }, - { - "regionTag": "clouddeploy_v1_generated_CloudDeploy_GetJobRun_async", - "title": "CloudDeploy getJobRun Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single JobRun.", - "canonical": true, - "file": "cloud_deploy.get_job_run.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetJobRun", - "fullName": "google.cloud.deploy.v1.CloudDeploy.GetJobRun", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.deploy.v1.JobRun", - "client": { - "shortName": "CloudDeployClient", - "fullName": "google.cloud.deploy.v1.CloudDeployClient" - }, - "method": { - "shortName": "GetJobRun", - "fullName": "google.cloud.deploy.v1.CloudDeploy.GetJobRun", - "service": { - "shortName": "CloudDeploy", - "fullName": "google.cloud.deploy.v1.CloudDeploy" - } - } - } - }, - { - "regionTag": "clouddeploy_v1_generated_CloudDeploy_TerminateJobRun_async", - "title": "CloudDeploy terminateJobRun Sample", - "origin": "API_DEFINITION", - "description": " Terminates a Job Run in a given project and location.", - "canonical": true, - "file": "cloud_deploy.terminate_job_run.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TerminateJobRun", - "fullName": "google.cloud.deploy.v1.CloudDeploy.TerminateJobRun", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "override_deploy_policy", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.cloud.deploy.v1.TerminateJobRunResponse", - "client": { - "shortName": "CloudDeployClient", - "fullName": "google.cloud.deploy.v1.CloudDeployClient" - }, - "method": { - "shortName": "TerminateJobRun", - "fullName": "google.cloud.deploy.v1.CloudDeploy.TerminateJobRun", - "service": { - "shortName": "CloudDeploy", - "fullName": "google.cloud.deploy.v1.CloudDeploy" - } - } - } - }, - { - "regionTag": "clouddeploy_v1_generated_CloudDeploy_GetConfig_async", - "title": "CloudDeploy getConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets the configuration for a location.", - "canonical": true, - "file": "cloud_deploy.get_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetConfig", - "fullName": "google.cloud.deploy.v1.CloudDeploy.GetConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.deploy.v1.Config", - "client": { - "shortName": "CloudDeployClient", - "fullName": "google.cloud.deploy.v1.CloudDeployClient" - }, - "method": { - "shortName": "GetConfig", - "fullName": "google.cloud.deploy.v1.CloudDeploy.GetConfig", - "service": { - "shortName": "CloudDeploy", - "fullName": "google.cloud.deploy.v1.CloudDeploy" - } - } - } - }, - { - "regionTag": "clouddeploy_v1_generated_CloudDeploy_CreateAutomation_async", - "title": "CloudDeploy createAutomation Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Automation in a given project and location.", - "canonical": true, - "file": "cloud_deploy.create_automation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAutomation", - "fullName": "google.cloud.deploy.v1.CloudDeploy.CreateAutomation", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "automation_id", - "type": "TYPE_STRING" - }, - { - "name": "automation", - "type": ".google.cloud.deploy.v1.Automation" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudDeployClient", - "fullName": "google.cloud.deploy.v1.CloudDeployClient" - }, - "method": { - "shortName": "CreateAutomation", - "fullName": "google.cloud.deploy.v1.CloudDeploy.CreateAutomation", - "service": { - "shortName": "CloudDeploy", - "fullName": "google.cloud.deploy.v1.CloudDeploy" - } - } - } - }, - { - "regionTag": "clouddeploy_v1_generated_CloudDeploy_UpdateAutomation_async", - "title": "CloudDeploy updateAutomation Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Automation resource.", - "canonical": true, - "file": "cloud_deploy.update_automation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAutomation", - "fullName": "google.cloud.deploy.v1.CloudDeploy.UpdateAutomation", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "automation", - "type": ".google.cloud.deploy.v1.Automation" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudDeployClient", - "fullName": "google.cloud.deploy.v1.CloudDeployClient" - }, - "method": { - "shortName": "UpdateAutomation", - "fullName": "google.cloud.deploy.v1.CloudDeploy.UpdateAutomation", - "service": { - "shortName": "CloudDeploy", - "fullName": "google.cloud.deploy.v1.CloudDeploy" - } - } - } - }, - { - "regionTag": "clouddeploy_v1_generated_CloudDeploy_DeleteAutomation_async", - "title": "CloudDeploy deleteAutomation Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Automation resource.", - "canonical": true, - "file": "cloud_deploy.delete_automation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAutomation", - "fullName": "google.cloud.deploy.v1.CloudDeploy.DeleteAutomation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudDeployClient", - "fullName": "google.cloud.deploy.v1.CloudDeployClient" - }, - "method": { - "shortName": "DeleteAutomation", - "fullName": "google.cloud.deploy.v1.CloudDeploy.DeleteAutomation", - "service": { - "shortName": "CloudDeploy", - "fullName": "google.cloud.deploy.v1.CloudDeploy" - } - } - } - }, - { - "regionTag": "clouddeploy_v1_generated_CloudDeploy_GetAutomation_async", - "title": "CloudDeploy getAutomation Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Automation.", - "canonical": true, - "file": "cloud_deploy.get_automation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAutomation", - "fullName": "google.cloud.deploy.v1.CloudDeploy.GetAutomation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.deploy.v1.Automation", - "client": { - "shortName": "CloudDeployClient", - "fullName": "google.cloud.deploy.v1.CloudDeployClient" - }, - "method": { - "shortName": "GetAutomation", - "fullName": "google.cloud.deploy.v1.CloudDeploy.GetAutomation", - "service": { - "shortName": "CloudDeploy", - "fullName": "google.cloud.deploy.v1.CloudDeploy" - } - } - } - }, - { - "regionTag": "clouddeploy_v1_generated_CloudDeploy_ListAutomations_async", - "title": "CloudDeploy listAutomations Sample", - "origin": "API_DEFINITION", - "description": " Lists Automations in a given project and location.", - "canonical": true, - "file": "cloud_deploy.list_automations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAutomations", - "fullName": "google.cloud.deploy.v1.CloudDeploy.ListAutomations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.deploy.v1.ListAutomationsResponse", - "client": { - "shortName": "CloudDeployClient", - "fullName": "google.cloud.deploy.v1.CloudDeployClient" - }, - "method": { - "shortName": "ListAutomations", - "fullName": "google.cloud.deploy.v1.CloudDeploy.ListAutomations", - "service": { - "shortName": "CloudDeploy", - "fullName": "google.cloud.deploy.v1.CloudDeploy" - } - } - } - }, - { - "regionTag": "clouddeploy_v1_generated_CloudDeploy_GetAutomationRun_async", - "title": "CloudDeploy getAutomationRun Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single AutomationRun.", - "canonical": true, - "file": "cloud_deploy.get_automation_run.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAutomationRun", - "fullName": "google.cloud.deploy.v1.CloudDeploy.GetAutomationRun", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.deploy.v1.AutomationRun", - "client": { - "shortName": "CloudDeployClient", - "fullName": "google.cloud.deploy.v1.CloudDeployClient" - }, - "method": { - "shortName": "GetAutomationRun", - "fullName": "google.cloud.deploy.v1.CloudDeploy.GetAutomationRun", - "service": { - "shortName": "CloudDeploy", - "fullName": "google.cloud.deploy.v1.CloudDeploy" - } - } - } - }, - { - "regionTag": "clouddeploy_v1_generated_CloudDeploy_ListAutomationRuns_async", - "title": "CloudDeploy listAutomationRuns Sample", - "origin": "API_DEFINITION", - "description": " Lists AutomationRuns in a given project and location.", - "canonical": true, - "file": "cloud_deploy.list_automation_runs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAutomationRuns", - "fullName": "google.cloud.deploy.v1.CloudDeploy.ListAutomationRuns", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.deploy.v1.ListAutomationRunsResponse", - "client": { - "shortName": "CloudDeployClient", - "fullName": "google.cloud.deploy.v1.CloudDeployClient" - }, - "method": { - "shortName": "ListAutomationRuns", - "fullName": "google.cloud.deploy.v1.CloudDeploy.ListAutomationRuns", - "service": { - "shortName": "CloudDeploy", - "fullName": "google.cloud.deploy.v1.CloudDeploy" - } - } - } - }, - { - "regionTag": "clouddeploy_v1_generated_CloudDeploy_CancelAutomationRun_async", - "title": "CloudDeploy cancelAutomationRun Sample", - "origin": "API_DEFINITION", - "description": " Cancels an AutomationRun. The `state` of the `AutomationRun` after cancelling is `CANCELLED`. `CancelAutomationRun` can be called on AutomationRun in the state `IN_PROGRESS` and `PENDING`; AutomationRun in a different state returns an `FAILED_PRECONDITION` error.", - "canonical": true, - "file": "cloud_deploy.cancel_automation_run.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CancelAutomationRun", - "fullName": "google.cloud.deploy.v1.CloudDeploy.CancelAutomationRun", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.deploy.v1.CancelAutomationRunResponse", - "client": { - "shortName": "CloudDeployClient", - "fullName": "google.cloud.deploy.v1.CloudDeployClient" - }, - "method": { - "shortName": "CancelAutomationRun", - "fullName": "google.cloud.deploy.v1.CloudDeploy.CancelAutomationRun", - "service": { - "shortName": "CloudDeploy", - "fullName": "google.cloud.deploy.v1.CloudDeploy" - } - } - } - } - ] -} diff --git a/packages/google-cloud-developerconnect/samples/generated/v1/snippet_metadata_google.cloud.developerconnect.v1.json b/packages/google-cloud-developerconnect/samples/generated/v1/snippet_metadata_google.cloud.developerconnect.v1.json deleted file mode 100644 index a5b05cd88687..000000000000 --- a/packages/google-cloud-developerconnect/samples/generated/v1/snippet_metadata_google.cloud.developerconnect.v1.json +++ /dev/null @@ -1,1623 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-developerconnect", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.developerconnect.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "developerconnect_v1_generated_DeveloperConnect_ListConnections_async", - "title": "DeveloperConnect listConnections Sample", - "origin": "API_DEFINITION", - "description": " Lists Connections in a given project and location.", - "canonical": true, - "file": "developer_connect.list_connections.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListConnections", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect.ListConnections", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.developerconnect.v1.ListConnectionsResponse", - "client": { - "shortName": "DeveloperConnectClient", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnectClient" - }, - "method": { - "shortName": "ListConnections", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect.ListConnections", - "service": { - "shortName": "DeveloperConnect", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect" - } - } - } - }, - { - "regionTag": "developerconnect_v1_generated_DeveloperConnect_GetConnection_async", - "title": "DeveloperConnect getConnection Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Connection.", - "canonical": true, - "file": "developer_connect.get_connection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetConnection", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect.GetConnection", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.developerconnect.v1.Connection", - "client": { - "shortName": "DeveloperConnectClient", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnectClient" - }, - "method": { - "shortName": "GetConnection", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect.GetConnection", - "service": { - "shortName": "DeveloperConnect", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect" - } - } - } - }, - { - "regionTag": "developerconnect_v1_generated_DeveloperConnect_CreateConnection_async", - "title": "DeveloperConnect createConnection Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Connection in a given project and location.", - "canonical": true, - "file": "developer_connect.create_connection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateConnection", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect.CreateConnection", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "connection_id", - "type": "TYPE_STRING" - }, - { - "name": "connection", - "type": ".google.cloud.developerconnect.v1.Connection" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DeveloperConnectClient", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnectClient" - }, - "method": { - "shortName": "CreateConnection", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect.CreateConnection", - "service": { - "shortName": "DeveloperConnect", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect" - } - } - } - }, - { - "regionTag": "developerconnect_v1_generated_DeveloperConnect_UpdateConnection_async", - "title": "DeveloperConnect updateConnection Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Connection.", - "canonical": true, - "file": "developer_connect.update_connection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 89, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateConnection", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect.UpdateConnection", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "connection", - "type": ".google.cloud.developerconnect.v1.Connection" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DeveloperConnectClient", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnectClient" - }, - "method": { - "shortName": "UpdateConnection", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect.UpdateConnection", - "service": { - "shortName": "DeveloperConnect", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect" - } - } - } - }, - { - "regionTag": "developerconnect_v1_generated_DeveloperConnect_DeleteConnection_async", - "title": "DeveloperConnect deleteConnection Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Connection.", - "canonical": true, - "file": "developer_connect.delete_connection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteConnection", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect.DeleteConnection", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DeveloperConnectClient", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnectClient" - }, - "method": { - "shortName": "DeleteConnection", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect.DeleteConnection", - "service": { - "shortName": "DeveloperConnect", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect" - } - } - } - }, - { - "regionTag": "developerconnect_v1_generated_DeveloperConnect_CreateGitRepositoryLink_async", - "title": "DeveloperConnect createGitRepositoryLink Sample", - "origin": "API_DEFINITION", - "description": " Creates a GitRepositoryLink. Upon linking a Git Repository, Developer Connect will configure the Git Repository to send webhook events to Developer Connect. Connections that use Firebase GitHub Application will have events forwarded to the Firebase service. Connections that use Gemini Code Assist will have events forwarded to Gemini Code Assist service. All other Connections will have events forwarded to Cloud Build.", - "canonical": true, - "file": "developer_connect.create_git_repository_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateGitRepositoryLink", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect.CreateGitRepositoryLink", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "git_repository_link", - "type": ".google.cloud.developerconnect.v1.GitRepositoryLink" - }, - { - "name": "git_repository_link_id", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DeveloperConnectClient", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnectClient" - }, - "method": { - "shortName": "CreateGitRepositoryLink", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect.CreateGitRepositoryLink", - "service": { - "shortName": "DeveloperConnect", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect" - } - } - } - }, - { - "regionTag": "developerconnect_v1_generated_DeveloperConnect_DeleteGitRepositoryLink_async", - "title": "DeveloperConnect deleteGitRepositoryLink Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single GitRepositoryLink.", - "canonical": true, - "file": "developer_connect.delete_git_repository_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteGitRepositoryLink", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect.DeleteGitRepositoryLink", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DeveloperConnectClient", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnectClient" - }, - "method": { - "shortName": "DeleteGitRepositoryLink", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect.DeleteGitRepositoryLink", - "service": { - "shortName": "DeveloperConnect", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect" - } - } - } - }, - { - "regionTag": "developerconnect_v1_generated_DeveloperConnect_ListGitRepositoryLinks_async", - "title": "DeveloperConnect listGitRepositoryLinks Sample", - "origin": "API_DEFINITION", - "description": " Lists GitRepositoryLinks in a given project, location, and connection.", - "canonical": true, - "file": "developer_connect.list_git_repository_links.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListGitRepositoryLinks", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect.ListGitRepositoryLinks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.developerconnect.v1.ListGitRepositoryLinksResponse", - "client": { - "shortName": "DeveloperConnectClient", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnectClient" - }, - "method": { - "shortName": "ListGitRepositoryLinks", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect.ListGitRepositoryLinks", - "service": { - "shortName": "DeveloperConnect", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect" - } - } - } - }, - { - "regionTag": "developerconnect_v1_generated_DeveloperConnect_GetGitRepositoryLink_async", - "title": "DeveloperConnect getGitRepositoryLink Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single GitRepositoryLink.", - "canonical": true, - "file": "developer_connect.get_git_repository_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetGitRepositoryLink", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect.GetGitRepositoryLink", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.developerconnect.v1.GitRepositoryLink", - "client": { - "shortName": "DeveloperConnectClient", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnectClient" - }, - "method": { - "shortName": "GetGitRepositoryLink", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect.GetGitRepositoryLink", - "service": { - "shortName": "DeveloperConnect", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect" - } - } - } - }, - { - "regionTag": "developerconnect_v1_generated_DeveloperConnect_FetchReadWriteToken_async", - "title": "DeveloperConnect fetchReadWriteToken Sample", - "origin": "API_DEFINITION", - "description": " Fetches read/write token of a given gitRepositoryLink.", - "canonical": true, - "file": "developer_connect.fetch_read_write_token.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchReadWriteToken", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect.FetchReadWriteToken", - "async": true, - "parameters": [ - { - "name": "git_repository_link", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.developerconnect.v1.FetchReadWriteTokenResponse", - "client": { - "shortName": "DeveloperConnectClient", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnectClient" - }, - "method": { - "shortName": "FetchReadWriteToken", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect.FetchReadWriteToken", - "service": { - "shortName": "DeveloperConnect", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect" - } - } - } - }, - { - "regionTag": "developerconnect_v1_generated_DeveloperConnect_FetchReadToken_async", - "title": "DeveloperConnect fetchReadToken Sample", - "origin": "API_DEFINITION", - "description": " Fetches read token of a given gitRepositoryLink.", - "canonical": true, - "file": "developer_connect.fetch_read_token.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchReadToken", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect.FetchReadToken", - "async": true, - "parameters": [ - { - "name": "git_repository_link", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.developerconnect.v1.FetchReadTokenResponse", - "client": { - "shortName": "DeveloperConnectClient", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnectClient" - }, - "method": { - "shortName": "FetchReadToken", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect.FetchReadToken", - "service": { - "shortName": "DeveloperConnect", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect" - } - } - } - }, - { - "regionTag": "developerconnect_v1_generated_DeveloperConnect_FetchLinkableGitRepositories_async", - "title": "DeveloperConnect fetchLinkableGitRepositories Sample", - "origin": "API_DEFINITION", - "description": " FetchLinkableGitRepositories returns a list of git repositories from an SCM that are available to be added to a Connection.", - "canonical": true, - "file": "developer_connect.fetch_linkable_git_repositories.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchLinkableGitRepositories", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect.FetchLinkableGitRepositories", - "async": true, - "parameters": [ - { - "name": "connection", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.developerconnect.v1.FetchLinkableGitRepositoriesResponse", - "client": { - "shortName": "DeveloperConnectClient", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnectClient" - }, - "method": { - "shortName": "FetchLinkableGitRepositories", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect.FetchLinkableGitRepositories", - "service": { - "shortName": "DeveloperConnect", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect" - } - } - } - }, - { - "regionTag": "developerconnect_v1_generated_DeveloperConnect_FetchGitHubInstallations_async", - "title": "DeveloperConnect fetchGitHubInstallations Sample", - "origin": "API_DEFINITION", - "description": " FetchGitHubInstallations returns the list of GitHub Installations that are available to be added to a Connection. For github.com, only installations accessible to the authorizer token are returned. For GitHub Enterprise, all installations are returned.", - "canonical": true, - "file": "developer_connect.fetch_git_hub_installations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchGitHubInstallations", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect.FetchGitHubInstallations", - "async": true, - "parameters": [ - { - "name": "connection", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.developerconnect.v1.FetchGitHubInstallationsResponse", - "client": { - "shortName": "DeveloperConnectClient", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnectClient" - }, - "method": { - "shortName": "FetchGitHubInstallations", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect.FetchGitHubInstallations", - "service": { - "shortName": "DeveloperConnect", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect" - } - } - } - }, - { - "regionTag": "developerconnect_v1_generated_DeveloperConnect_FetchGitRefs_async", - "title": "DeveloperConnect fetchGitRefs Sample", - "origin": "API_DEFINITION", - "description": " Fetch the list of branches or tags for a given repository.", - "canonical": true, - "file": "developer_connect.fetch_git_refs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchGitRefs", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect.FetchGitRefs", - "async": true, - "parameters": [ - { - "name": "git_repository_link", - "type": "TYPE_STRING" - }, - { - "name": "ref_type", - "type": ".google.cloud.developerconnect.v1.FetchGitRefsRequest.RefType" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.developerconnect.v1.FetchGitRefsResponse", - "client": { - "shortName": "DeveloperConnectClient", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnectClient" - }, - "method": { - "shortName": "FetchGitRefs", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect.FetchGitRefs", - "service": { - "shortName": "DeveloperConnect", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect" - } - } - } - }, - { - "regionTag": "developerconnect_v1_generated_DeveloperConnect_ListAccountConnectors_async", - "title": "DeveloperConnect listAccountConnectors Sample", - "origin": "API_DEFINITION", - "description": " Lists AccountConnectors in a given project and location.", - "canonical": true, - "file": "developer_connect.list_account_connectors.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAccountConnectors", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect.ListAccountConnectors", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.developerconnect.v1.ListAccountConnectorsResponse", - "client": { - "shortName": "DeveloperConnectClient", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnectClient" - }, - "method": { - "shortName": "ListAccountConnectors", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect.ListAccountConnectors", - "service": { - "shortName": "DeveloperConnect", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect" - } - } - } - }, - { - "regionTag": "developerconnect_v1_generated_DeveloperConnect_GetAccountConnector_async", - "title": "DeveloperConnect getAccountConnector Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single AccountConnector.", - "canonical": true, - "file": "developer_connect.get_account_connector.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAccountConnector", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect.GetAccountConnector", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.developerconnect.v1.AccountConnector", - "client": { - "shortName": "DeveloperConnectClient", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnectClient" - }, - "method": { - "shortName": "GetAccountConnector", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect.GetAccountConnector", - "service": { - "shortName": "DeveloperConnect", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect" - } - } - } - }, - { - "regionTag": "developerconnect_v1_generated_DeveloperConnect_CreateAccountConnector_async", - "title": "DeveloperConnect createAccountConnector Sample", - "origin": "API_DEFINITION", - "description": " Creates a new AccountConnector in a given project and location.", - "canonical": true, - "file": "developer_connect.create_account_connector.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAccountConnector", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect.CreateAccountConnector", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "account_connector_id", - "type": "TYPE_STRING" - }, - { - "name": "account_connector", - "type": ".google.cloud.developerconnect.v1.AccountConnector" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DeveloperConnectClient", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnectClient" - }, - "method": { - "shortName": "CreateAccountConnector", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect.CreateAccountConnector", - "service": { - "shortName": "DeveloperConnect", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect" - } - } - } - }, - { - "regionTag": "developerconnect_v1_generated_DeveloperConnect_UpdateAccountConnector_async", - "title": "DeveloperConnect updateAccountConnector Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single AccountConnector.", - "canonical": true, - "file": "developer_connect.update_account_connector.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAccountConnector", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect.UpdateAccountConnector", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "account_connector", - "type": ".google.cloud.developerconnect.v1.AccountConnector" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DeveloperConnectClient", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnectClient" - }, - "method": { - "shortName": "UpdateAccountConnector", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect.UpdateAccountConnector", - "service": { - "shortName": "DeveloperConnect", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect" - } - } - } - }, - { - "regionTag": "developerconnect_v1_generated_DeveloperConnect_DeleteAccountConnector_async", - "title": "DeveloperConnect deleteAccountConnector Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single AccountConnector.", - "canonical": true, - "file": "developer_connect.delete_account_connector.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAccountConnector", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect.DeleteAccountConnector", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DeveloperConnectClient", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnectClient" - }, - "method": { - "shortName": "DeleteAccountConnector", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect.DeleteAccountConnector", - "service": { - "shortName": "DeveloperConnect", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect" - } - } - } - }, - { - "regionTag": "developerconnect_v1_generated_DeveloperConnect_FetchAccessToken_async", - "title": "DeveloperConnect fetchAccessToken Sample", - "origin": "API_DEFINITION", - "description": " Fetches OAuth access token based on end user credentials.", - "canonical": true, - "file": "developer_connect.fetch_access_token.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchAccessToken", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect.FetchAccessToken", - "async": true, - "parameters": [ - { - "name": "account_connector", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.developerconnect.v1.FetchAccessTokenResponse", - "client": { - "shortName": "DeveloperConnectClient", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnectClient" - }, - "method": { - "shortName": "FetchAccessToken", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect.FetchAccessToken", - "service": { - "shortName": "DeveloperConnect", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect" - } - } - } - }, - { - "regionTag": "developerconnect_v1_generated_DeveloperConnect_ListUsers_async", - "title": "DeveloperConnect listUsers Sample", - "origin": "API_DEFINITION", - "description": " Lists Users in a given project, location, and account_connector.", - "canonical": true, - "file": "developer_connect.list_users.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListUsers", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect.ListUsers", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.developerconnect.v1.ListUsersResponse", - "client": { - "shortName": "DeveloperConnectClient", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnectClient" - }, - "method": { - "shortName": "ListUsers", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect.ListUsers", - "service": { - "shortName": "DeveloperConnect", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect" - } - } - } - }, - { - "regionTag": "developerconnect_v1_generated_DeveloperConnect_DeleteUser_async", - "title": "DeveloperConnect deleteUser Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single User.", - "canonical": true, - "file": "developer_connect.delete_user.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteUser", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect.DeleteUser", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DeveloperConnectClient", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnectClient" - }, - "method": { - "shortName": "DeleteUser", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect.DeleteUser", - "service": { - "shortName": "DeveloperConnect", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect" - } - } - } - }, - { - "regionTag": "developerconnect_v1_generated_DeveloperConnect_FetchSelf_async", - "title": "DeveloperConnect fetchSelf Sample", - "origin": "API_DEFINITION", - "description": " Fetch the User based on the user credentials.", - "canonical": true, - "file": "developer_connect.fetch_self.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchSelf", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect.FetchSelf", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.developerconnect.v1.User", - "client": { - "shortName": "DeveloperConnectClient", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnectClient" - }, - "method": { - "shortName": "FetchSelf", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect.FetchSelf", - "service": { - "shortName": "DeveloperConnect", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect" - } - } - } - }, - { - "regionTag": "developerconnect_v1_generated_DeveloperConnect_DeleteSelf_async", - "title": "DeveloperConnect deleteSelf Sample", - "origin": "API_DEFINITION", - "description": " Delete the User based on the user credentials.", - "canonical": true, - "file": "developer_connect.delete_self.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSelf", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect.DeleteSelf", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DeveloperConnectClient", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnectClient" - }, - "method": { - "shortName": "DeleteSelf", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect.DeleteSelf", - "service": { - "shortName": "DeveloperConnect", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect" - } - } - } - }, - { - "regionTag": "developerconnect_v1_generated_DeveloperConnect_StartOAuth_async", - "title": "DeveloperConnect startOAuth Sample", - "origin": "API_DEFINITION", - "description": " Starts OAuth flow for an account connector.", - "canonical": true, - "file": "developer_connect.start_o_auth.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StartOAuth", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect.StartOAuth", - "async": true, - "parameters": [ - { - "name": "account_connector", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.developerconnect.v1.StartOAuthResponse", - "client": { - "shortName": "DeveloperConnectClient", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnectClient" - }, - "method": { - "shortName": "StartOAuth", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect.StartOAuth", - "service": { - "shortName": "DeveloperConnect", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect" - } - } - } - }, - { - "regionTag": "developerconnect_v1_generated_DeveloperConnect_FinishOAuth_async", - "title": "DeveloperConnect finishOAuth Sample", - "origin": "API_DEFINITION", - "description": " Finishes OAuth flow for an account connector.", - "canonical": true, - "file": "developer_connect.finish_o_auth.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FinishOAuth", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect.FinishOAuth", - "async": true, - "parameters": [ - { - "name": "oauth_params", - "type": ".google.cloud.developerconnect.v1.FinishOAuthRequest.OAuthParams" - }, - { - "name": "google_oauth_params", - "type": ".google.cloud.developerconnect.v1.FinishOAuthRequest.GoogleOAuthParams" - }, - { - "name": "account_connector", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.developerconnect.v1.FinishOAuthResponse", - "client": { - "shortName": "DeveloperConnectClient", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnectClient" - }, - "method": { - "shortName": "FinishOAuth", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect.FinishOAuth", - "service": { - "shortName": "DeveloperConnect", - "fullName": "google.cloud.developerconnect.v1.DeveloperConnect" - } - } - } - }, - { - "regionTag": "developerconnect_v1_generated_InsightsConfigService_ListInsightsConfigs_async", - "title": "DeveloperConnect listInsightsConfigs Sample", - "origin": "API_DEFINITION", - "description": " Lists InsightsConfigs in a given project and location.", - "canonical": true, - "file": "insights_config_service.list_insights_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListInsightsConfigs", - "fullName": "google.cloud.developerconnect.v1.InsightsConfigService.ListInsightsConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.developerconnect.v1.ListInsightsConfigsResponse", - "client": { - "shortName": "InsightsConfigServiceClient", - "fullName": "google.cloud.developerconnect.v1.InsightsConfigServiceClient" - }, - "method": { - "shortName": "ListInsightsConfigs", - "fullName": "google.cloud.developerconnect.v1.InsightsConfigService.ListInsightsConfigs", - "service": { - "shortName": "InsightsConfigService", - "fullName": "google.cloud.developerconnect.v1.InsightsConfigService" - } - } - } - }, - { - "regionTag": "developerconnect_v1_generated_InsightsConfigService_CreateInsightsConfig_async", - "title": "DeveloperConnect createInsightsConfig Sample", - "origin": "API_DEFINITION", - "description": " Creates a new InsightsConfig in a given project and location.", - "canonical": true, - "file": "insights_config_service.create_insights_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateInsightsConfig", - "fullName": "google.cloud.developerconnect.v1.InsightsConfigService.CreateInsightsConfig", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "insights_config_id", - "type": "TYPE_STRING" - }, - { - "name": "insights_config", - "type": ".google.cloud.developerconnect.v1.InsightsConfig" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "InsightsConfigServiceClient", - "fullName": "google.cloud.developerconnect.v1.InsightsConfigServiceClient" - }, - "method": { - "shortName": "CreateInsightsConfig", - "fullName": "google.cloud.developerconnect.v1.InsightsConfigService.CreateInsightsConfig", - "service": { - "shortName": "InsightsConfigService", - "fullName": "google.cloud.developerconnect.v1.InsightsConfigService" - } - } - } - }, - { - "regionTag": "developerconnect_v1_generated_InsightsConfigService_GetInsightsConfig_async", - "title": "DeveloperConnect getInsightsConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Insight.", - "canonical": true, - "file": "insights_config_service.get_insights_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetInsightsConfig", - "fullName": "google.cloud.developerconnect.v1.InsightsConfigService.GetInsightsConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.developerconnect.v1.InsightsConfig", - "client": { - "shortName": "InsightsConfigServiceClient", - "fullName": "google.cloud.developerconnect.v1.InsightsConfigServiceClient" - }, - "method": { - "shortName": "GetInsightsConfig", - "fullName": "google.cloud.developerconnect.v1.InsightsConfigService.GetInsightsConfig", - "service": { - "shortName": "InsightsConfigService", - "fullName": "google.cloud.developerconnect.v1.InsightsConfigService" - } - } - } - }, - { - "regionTag": "developerconnect_v1_generated_InsightsConfigService_UpdateInsightsConfig_async", - "title": "DeveloperConnect updateInsightsConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single InsightsConfig.", - "canonical": true, - "file": "insights_config_service.update_insights_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateInsightsConfig", - "fullName": "google.cloud.developerconnect.v1.InsightsConfigService.UpdateInsightsConfig", - "async": true, - "parameters": [ - { - "name": "insights_config", - "type": ".google.cloud.developerconnect.v1.InsightsConfig" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "InsightsConfigServiceClient", - "fullName": "google.cloud.developerconnect.v1.InsightsConfigServiceClient" - }, - "method": { - "shortName": "UpdateInsightsConfig", - "fullName": "google.cloud.developerconnect.v1.InsightsConfigService.UpdateInsightsConfig", - "service": { - "shortName": "InsightsConfigService", - "fullName": "google.cloud.developerconnect.v1.InsightsConfigService" - } - } - } - }, - { - "regionTag": "developerconnect_v1_generated_InsightsConfigService_DeleteInsightsConfig_async", - "title": "DeveloperConnect deleteInsightsConfig Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Insight.", - "canonical": true, - "file": "insights_config_service.delete_insights_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteInsightsConfig", - "fullName": "google.cloud.developerconnect.v1.InsightsConfigService.DeleteInsightsConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "InsightsConfigServiceClient", - "fullName": "google.cloud.developerconnect.v1.InsightsConfigServiceClient" - }, - "method": { - "shortName": "DeleteInsightsConfig", - "fullName": "google.cloud.developerconnect.v1.InsightsConfigService.DeleteInsightsConfig", - "service": { - "shortName": "InsightsConfigService", - "fullName": "google.cloud.developerconnect.v1.InsightsConfigService" - } - } - } - }, - { - "regionTag": "developerconnect_v1_generated_InsightsConfigService_GetDeploymentEvent_async", - "title": "DeveloperConnect getDeploymentEvent Sample", - "origin": "API_DEFINITION", - "description": " Gets a single Deployment Event.", - "canonical": true, - "file": "insights_config_service.get_deployment_event.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDeploymentEvent", - "fullName": "google.cloud.developerconnect.v1.InsightsConfigService.GetDeploymentEvent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.developerconnect.v1.DeploymentEvent", - "client": { - "shortName": "InsightsConfigServiceClient", - "fullName": "google.cloud.developerconnect.v1.InsightsConfigServiceClient" - }, - "method": { - "shortName": "GetDeploymentEvent", - "fullName": "google.cloud.developerconnect.v1.InsightsConfigService.GetDeploymentEvent", - "service": { - "shortName": "InsightsConfigService", - "fullName": "google.cloud.developerconnect.v1.InsightsConfigService" - } - } - } - }, - { - "regionTag": "developerconnect_v1_generated_InsightsConfigService_ListDeploymentEvents_async", - "title": "DeveloperConnect listDeploymentEvents Sample", - "origin": "API_DEFINITION", - "description": " Lists Deployment Events in a given insights config.", - "canonical": true, - "file": "insights_config_service.list_deployment_events.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDeploymentEvents", - "fullName": "google.cloud.developerconnect.v1.InsightsConfigService.ListDeploymentEvents", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.developerconnect.v1.ListDeploymentEventsResponse", - "client": { - "shortName": "InsightsConfigServiceClient", - "fullName": "google.cloud.developerconnect.v1.InsightsConfigServiceClient" - }, - "method": { - "shortName": "ListDeploymentEvents", - "fullName": "google.cloud.developerconnect.v1.InsightsConfigService.ListDeploymentEvents", - "service": { - "shortName": "InsightsConfigService", - "fullName": "google.cloud.developerconnect.v1.InsightsConfigService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-devicestreaming/samples/generated/v1/snippet_metadata_google.cloud.devicestreaming.v1.json b/packages/google-cloud-devicestreaming/samples/generated/v1/snippet_metadata_google.cloud.devicestreaming.v1.json deleted file mode 100644 index bebdcba01dd3..000000000000 --- a/packages/google-cloud-devicestreaming/samples/generated/v1/snippet_metadata_google.cloud.devicestreaming.v1.json +++ /dev/null @@ -1,283 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-devicestreaming", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.devicestreaming.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "devicestreaming_v1_generated_DirectAccessService_CreateDeviceSession_async", - "title": "DirectAccessService createDeviceSession Sample", - "origin": "API_DEFINITION", - "description": " Creates a DeviceSession.", - "canonical": true, - "file": "direct_access_service.create_device_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDeviceSession", - "fullName": "google.cloud.devicestreaming.v1.DirectAccessService.CreateDeviceSession", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "device_session", - "type": ".google.cloud.devicestreaming.v1.DeviceSession" - }, - { - "name": "device_session_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.devicestreaming.v1.DeviceSession", - "client": { - "shortName": "DirectAccessServiceClient", - "fullName": "google.cloud.devicestreaming.v1.DirectAccessServiceClient" - }, - "method": { - "shortName": "CreateDeviceSession", - "fullName": "google.cloud.devicestreaming.v1.DirectAccessService.CreateDeviceSession", - "service": { - "shortName": "DirectAccessService", - "fullName": "google.cloud.devicestreaming.v1.DirectAccessService" - } - } - } - }, - { - "regionTag": "devicestreaming_v1_generated_DirectAccessService_ListDeviceSessions_async", - "title": "DirectAccessService listDeviceSessions Sample", - "origin": "API_DEFINITION", - "description": " Lists DeviceSessions owned by the project user.", - "canonical": true, - "file": "direct_access_service.list_device_sessions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDeviceSessions", - "fullName": "google.cloud.devicestreaming.v1.DirectAccessService.ListDeviceSessions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.devicestreaming.v1.ListDeviceSessionsResponse", - "client": { - "shortName": "DirectAccessServiceClient", - "fullName": "google.cloud.devicestreaming.v1.DirectAccessServiceClient" - }, - "method": { - "shortName": "ListDeviceSessions", - "fullName": "google.cloud.devicestreaming.v1.DirectAccessService.ListDeviceSessions", - "service": { - "shortName": "DirectAccessService", - "fullName": "google.cloud.devicestreaming.v1.DirectAccessService" - } - } - } - }, - { - "regionTag": "devicestreaming_v1_generated_DirectAccessService_GetDeviceSession_async", - "title": "DirectAccessService getDeviceSession Sample", - "origin": "API_DEFINITION", - "description": " Gets a DeviceSession, which documents the allocation status and whether the device is allocated. Clients making requests from this API must poll GetDeviceSession.", - "canonical": true, - "file": "direct_access_service.get_device_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDeviceSession", - "fullName": "google.cloud.devicestreaming.v1.DirectAccessService.GetDeviceSession", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.devicestreaming.v1.DeviceSession", - "client": { - "shortName": "DirectAccessServiceClient", - "fullName": "google.cloud.devicestreaming.v1.DirectAccessServiceClient" - }, - "method": { - "shortName": "GetDeviceSession", - "fullName": "google.cloud.devicestreaming.v1.DirectAccessService.GetDeviceSession", - "service": { - "shortName": "DirectAccessService", - "fullName": "google.cloud.devicestreaming.v1.DirectAccessService" - } - } - } - }, - { - "regionTag": "devicestreaming_v1_generated_DirectAccessService_CancelDeviceSession_async", - "title": "DirectAccessService cancelDeviceSession Sample", - "origin": "API_DEFINITION", - "description": " Cancel a DeviceSession. This RPC changes the DeviceSession to state FINISHED and terminates all connections. Canceled sessions are not deleted and can be retrieved or listed by the user until they expire based on the 28 day deletion policy.", - "canonical": true, - "file": "direct_access_service.cancel_device_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CancelDeviceSession", - "fullName": "google.cloud.devicestreaming.v1.DirectAccessService.CancelDeviceSession", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DirectAccessServiceClient", - "fullName": "google.cloud.devicestreaming.v1.DirectAccessServiceClient" - }, - "method": { - "shortName": "CancelDeviceSession", - "fullName": "google.cloud.devicestreaming.v1.DirectAccessService.CancelDeviceSession", - "service": { - "shortName": "DirectAccessService", - "fullName": "google.cloud.devicestreaming.v1.DirectAccessService" - } - } - } - }, - { - "regionTag": "devicestreaming_v1_generated_DirectAccessService_UpdateDeviceSession_async", - "title": "DirectAccessService updateDeviceSession Sample", - "origin": "API_DEFINITION", - "description": " Updates the current DeviceSession to the fields described by the update_mask.", - "canonical": true, - "file": "direct_access_service.update_device_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDeviceSession", - "fullName": "google.cloud.devicestreaming.v1.DirectAccessService.UpdateDeviceSession", - "async": true, - "parameters": [ - { - "name": "device_session", - "type": ".google.cloud.devicestreaming.v1.DeviceSession" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.devicestreaming.v1.DeviceSession", - "client": { - "shortName": "DirectAccessServiceClient", - "fullName": "google.cloud.devicestreaming.v1.DirectAccessServiceClient" - }, - "method": { - "shortName": "UpdateDeviceSession", - "fullName": "google.cloud.devicestreaming.v1.DirectAccessService.UpdateDeviceSession", - "service": { - "shortName": "DirectAccessService", - "fullName": "google.cloud.devicestreaming.v1.DirectAccessService" - } - } - } - }, - { - "regionTag": "devicestreaming_v1_generated_DirectAccessService_AdbConnect_async", - "title": "DirectAccessService adbConnect Sample", - "origin": "API_DEFINITION", - "description": " Exposes an ADB connection if the device supports ADB. gRPC headers are used to authenticate the Connect RPC, as well as associate to a particular DeviceSession. In particular, the user must specify the \"X-Omnilab-Session-Name\" header.", - "canonical": true, - "file": "direct_access_service.adb_connect.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AdbConnect", - "fullName": "google.cloud.devicestreaming.v1.DirectAccessService.AdbConnect", - "async": true, - "parameters": [ - { - "name": "open", - "type": ".google.cloud.devicestreaming.v1.Open" - }, - { - "name": "stream_data", - "type": ".google.cloud.devicestreaming.v1.StreamData" - } - ], - "resultType": ".google.cloud.devicestreaming.v1.DeviceMessage", - "client": { - "shortName": "DirectAccessServiceClient", - "fullName": "google.cloud.devicestreaming.v1.DirectAccessServiceClient" - }, - "method": { - "shortName": "AdbConnect", - "fullName": "google.cloud.devicestreaming.v1.DirectAccessService.AdbConnect", - "service": { - "shortName": "DirectAccessService", - "fullName": "google.cloud.devicestreaming.v1.DirectAccessService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/snippet_metadata_google.cloud.dialogflow.cx.v3.json b/packages/google-cloud-dialogflow-cx/samples/generated/v3/snippet_metadata_google.cloud.dialogflow.cx.v3.json deleted file mode 100644 index 1361921df49f..000000000000 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/snippet_metadata_google.cloud.dialogflow.cx.v3.json +++ /dev/null @@ -1,6291 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-cx", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.dialogflow.cx.v3", - "version": "v3" - } - ] - }, - "snippets": [ - { - "regionTag": "dialogflow_v3_generated_Agents_ListAgents_async", - "title": "Agents listAgents Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of all agents in the specified location.", - "canonical": true, - "file": "agents.list_agents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAgents", - "fullName": "google.cloud.dialogflow.cx.v3.Agents.ListAgents", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.ListAgentsResponse", - "client": { - "shortName": "AgentsClient", - "fullName": "google.cloud.dialogflow.cx.v3.AgentsClient" - }, - "method": { - "shortName": "ListAgents", - "fullName": "google.cloud.dialogflow.cx.v3.Agents.ListAgents", - "service": { - "shortName": "Agents", - "fullName": "google.cloud.dialogflow.cx.v3.Agents" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Agents_GetAgent_async", - "title": "Agents getAgent Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified agent.", - "canonical": true, - "file": "agents.get_agent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAgent", - "fullName": "google.cloud.dialogflow.cx.v3.Agents.GetAgent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.Agent", - "client": { - "shortName": "AgentsClient", - "fullName": "google.cloud.dialogflow.cx.v3.AgentsClient" - }, - "method": { - "shortName": "GetAgent", - "fullName": "google.cloud.dialogflow.cx.v3.Agents.GetAgent", - "service": { - "shortName": "Agents", - "fullName": "google.cloud.dialogflow.cx.v3.Agents" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Agents_CreateAgent_async", - "title": "Agents createAgent Sample", - "origin": "API_DEFINITION", - "description": " Creates an agent in the specified location. Note: You should always train flows prior to sending them queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).", - "canonical": true, - "file": "agents.create_agent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAgent", - "fullName": "google.cloud.dialogflow.cx.v3.Agents.CreateAgent", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "agent", - "type": ".google.cloud.dialogflow.cx.v3.Agent" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.Agent", - "client": { - "shortName": "AgentsClient", - "fullName": "google.cloud.dialogflow.cx.v3.AgentsClient" - }, - "method": { - "shortName": "CreateAgent", - "fullName": "google.cloud.dialogflow.cx.v3.Agents.CreateAgent", - "service": { - "shortName": "Agents", - "fullName": "google.cloud.dialogflow.cx.v3.Agents" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Agents_UpdateAgent_async", - "title": "Agents updateAgent Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified agent. Note: You should always train flows prior to sending them queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).", - "canonical": true, - "file": "agents.update_agent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAgent", - "fullName": "google.cloud.dialogflow.cx.v3.Agents.UpdateAgent", - "async": true, - "parameters": [ - { - "name": "agent", - "type": ".google.cloud.dialogflow.cx.v3.Agent" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.Agent", - "client": { - "shortName": "AgentsClient", - "fullName": "google.cloud.dialogflow.cx.v3.AgentsClient" - }, - "method": { - "shortName": "UpdateAgent", - "fullName": "google.cloud.dialogflow.cx.v3.Agents.UpdateAgent", - "service": { - "shortName": "Agents", - "fullName": "google.cloud.dialogflow.cx.v3.Agents" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Agents_DeleteAgent_async", - "title": "Agents deleteAgent Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified agent.", - "canonical": true, - "file": "agents.delete_agent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAgent", - "fullName": "google.cloud.dialogflow.cx.v3.Agents.DeleteAgent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AgentsClient", - "fullName": "google.cloud.dialogflow.cx.v3.AgentsClient" - }, - "method": { - "shortName": "DeleteAgent", - "fullName": "google.cloud.dialogflow.cx.v3.Agents.DeleteAgent", - "service": { - "shortName": "Agents", - "fullName": "google.cloud.dialogflow.cx.v3.Agents" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Agents_ExportAgent_async", - "title": "Agents exportAgent Sample", - "origin": "API_DEFINITION", - "description": " Exports the specified agent to a binary file. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: [ExportAgentResponse][google.cloud.dialogflow.cx.v3.ExportAgentResponse]", - "canonical": true, - "file": "agents.export_agent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportAgent", - "fullName": "google.cloud.dialogflow.cx.v3.Agents.ExportAgent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "agent_uri", - "type": "TYPE_STRING" - }, - { - "name": "data_format", - "type": ".google.cloud.dialogflow.cx.v3.ExportAgentRequest.DataFormat" - }, - { - "name": "environment", - "type": "TYPE_STRING" - }, - { - "name": "git_destination", - "type": ".google.cloud.dialogflow.cx.v3.ExportAgentRequest.GitDestination" - }, - { - "name": "include_bigquery_export_settings", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AgentsClient", - "fullName": "google.cloud.dialogflow.cx.v3.AgentsClient" - }, - "method": { - "shortName": "ExportAgent", - "fullName": "google.cloud.dialogflow.cx.v3.Agents.ExportAgent", - "service": { - "shortName": "Agents", - "fullName": "google.cloud.dialogflow.cx.v3.Agents" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Agents_RestoreAgent_async", - "title": "Agents restoreAgent Sample", - "origin": "API_DEFINITION", - "description": " Restores the specified agent from a binary file. Replaces the current agent with a new one. Note that all existing resources in agent (e.g. intents, entity types, flows) will be removed. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) Note: You should always train flows prior to sending them queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).", - "canonical": true, - "file": "agents.restore_agent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RestoreAgent", - "fullName": "google.cloud.dialogflow.cx.v3.Agents.RestoreAgent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "agent_uri", - "type": "TYPE_STRING" - }, - { - "name": "agent_content", - "type": "TYPE_BYTES" - }, - { - "name": "git_source", - "type": ".google.cloud.dialogflow.cx.v3.RestoreAgentRequest.GitSource" - }, - { - "name": "restore_option", - "type": ".google.cloud.dialogflow.cx.v3.RestoreAgentRequest.RestoreOption" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AgentsClient", - "fullName": "google.cloud.dialogflow.cx.v3.AgentsClient" - }, - "method": { - "shortName": "RestoreAgent", - "fullName": "google.cloud.dialogflow.cx.v3.Agents.RestoreAgent", - "service": { - "shortName": "Agents", - "fullName": "google.cloud.dialogflow.cx.v3.Agents" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Agents_ValidateAgent_async", - "title": "Agents validateAgent Sample", - "origin": "API_DEFINITION", - "description": " Validates the specified agent and creates or updates validation results. The agent in draft version is validated. Please call this API after the training is completed to get the complete validation results.", - "canonical": true, - "file": "agents.validate_agent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ValidateAgent", - "fullName": "google.cloud.dialogflow.cx.v3.Agents.ValidateAgent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.AgentValidationResult", - "client": { - "shortName": "AgentsClient", - "fullName": "google.cloud.dialogflow.cx.v3.AgentsClient" - }, - "method": { - "shortName": "ValidateAgent", - "fullName": "google.cloud.dialogflow.cx.v3.Agents.ValidateAgent", - "service": { - "shortName": "Agents", - "fullName": "google.cloud.dialogflow.cx.v3.Agents" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Agents_GetAgentValidationResult_async", - "title": "Agents getAgentValidationResult Sample", - "origin": "API_DEFINITION", - "description": " Gets the latest agent validation result. Agent validation is performed when ValidateAgent is called.", - "canonical": true, - "file": "agents.get_agent_validation_result.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAgentValidationResult", - "fullName": "google.cloud.dialogflow.cx.v3.Agents.GetAgentValidationResult", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.AgentValidationResult", - "client": { - "shortName": "AgentsClient", - "fullName": "google.cloud.dialogflow.cx.v3.AgentsClient" - }, - "method": { - "shortName": "GetAgentValidationResult", - "fullName": "google.cloud.dialogflow.cx.v3.Agents.GetAgentValidationResult", - "service": { - "shortName": "Agents", - "fullName": "google.cloud.dialogflow.cx.v3.Agents" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Agents_GetGenerativeSettings_async", - "title": "Agents getGenerativeSettings Sample", - "origin": "API_DEFINITION", - "description": " Gets the generative settings for the agent.", - "canonical": true, - "file": "agents.get_generative_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetGenerativeSettings", - "fullName": "google.cloud.dialogflow.cx.v3.Agents.GetGenerativeSettings", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.GenerativeSettings", - "client": { - "shortName": "AgentsClient", - "fullName": "google.cloud.dialogflow.cx.v3.AgentsClient" - }, - "method": { - "shortName": "GetGenerativeSettings", - "fullName": "google.cloud.dialogflow.cx.v3.Agents.GetGenerativeSettings", - "service": { - "shortName": "Agents", - "fullName": "google.cloud.dialogflow.cx.v3.Agents" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Agents_UpdateGenerativeSettings_async", - "title": "Agents updateGenerativeSettings Sample", - "origin": "API_DEFINITION", - "description": " Updates the generative settings for the agent.", - "canonical": true, - "file": "agents.update_generative_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateGenerativeSettings", - "fullName": "google.cloud.dialogflow.cx.v3.Agents.UpdateGenerativeSettings", - "async": true, - "parameters": [ - { - "name": "generative_settings", - "type": ".google.cloud.dialogflow.cx.v3.GenerativeSettings" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.GenerativeSettings", - "client": { - "shortName": "AgentsClient", - "fullName": "google.cloud.dialogflow.cx.v3.AgentsClient" - }, - "method": { - "shortName": "UpdateGenerativeSettings", - "fullName": "google.cloud.dialogflow.cx.v3.Agents.UpdateGenerativeSettings", - "service": { - "shortName": "Agents", - "fullName": "google.cloud.dialogflow.cx.v3.Agents" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Changelogs_ListChangelogs_async", - "title": "Agents listChangelogs Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of Changelogs.", - "canonical": true, - "file": "changelogs.list_changelogs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 88, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListChangelogs", - "fullName": "google.cloud.dialogflow.cx.v3.Changelogs.ListChangelogs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.ListChangelogsResponse", - "client": { - "shortName": "ChangelogsClient", - "fullName": "google.cloud.dialogflow.cx.v3.ChangelogsClient" - }, - "method": { - "shortName": "ListChangelogs", - "fullName": "google.cloud.dialogflow.cx.v3.Changelogs.ListChangelogs", - "service": { - "shortName": "Changelogs", - "fullName": "google.cloud.dialogflow.cx.v3.Changelogs" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Changelogs_GetChangelog_async", - "title": "Agents getChangelog Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified Changelog.", - "canonical": true, - "file": "changelogs.get_changelog.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetChangelog", - "fullName": "google.cloud.dialogflow.cx.v3.Changelogs.GetChangelog", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.Changelog", - "client": { - "shortName": "ChangelogsClient", - "fullName": "google.cloud.dialogflow.cx.v3.ChangelogsClient" - }, - "method": { - "shortName": "GetChangelog", - "fullName": "google.cloud.dialogflow.cx.v3.Changelogs.GetChangelog", - "service": { - "shortName": "Changelogs", - "fullName": "google.cloud.dialogflow.cx.v3.Changelogs" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Deployments_ListDeployments_async", - "title": "Agents listDeployments Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of all deployments in the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].", - "canonical": true, - "file": "deployments.list_deployments.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDeployments", - "fullName": "google.cloud.dialogflow.cx.v3.Deployments.ListDeployments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.ListDeploymentsResponse", - "client": { - "shortName": "DeploymentsClient", - "fullName": "google.cloud.dialogflow.cx.v3.DeploymentsClient" - }, - "method": { - "shortName": "ListDeployments", - "fullName": "google.cloud.dialogflow.cx.v3.Deployments.ListDeployments", - "service": { - "shortName": "Deployments", - "fullName": "google.cloud.dialogflow.cx.v3.Deployments" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Deployments_GetDeployment_async", - "title": "Agents getDeployment Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified [Deployment][google.cloud.dialogflow.cx.v3.Deployment].", - "canonical": true, - "file": "deployments.get_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDeployment", - "fullName": "google.cloud.dialogflow.cx.v3.Deployments.GetDeployment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.Deployment", - "client": { - "shortName": "DeploymentsClient", - "fullName": "google.cloud.dialogflow.cx.v3.DeploymentsClient" - }, - "method": { - "shortName": "GetDeployment", - "fullName": "google.cloud.dialogflow.cx.v3.Deployments.GetDeployment", - "service": { - "shortName": "Deployments", - "fullName": "google.cloud.dialogflow.cx.v3.Deployments" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_EntityTypes_GetEntityType_async", - "title": "Agents getEntityType Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified entity type.", - "canonical": true, - "file": "entity_types.get_entity_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEntityType", - "fullName": "google.cloud.dialogflow.cx.v3.EntityTypes.GetEntityType", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.EntityType", - "client": { - "shortName": "EntityTypesClient", - "fullName": "google.cloud.dialogflow.cx.v3.EntityTypesClient" - }, - "method": { - "shortName": "GetEntityType", - "fullName": "google.cloud.dialogflow.cx.v3.EntityTypes.GetEntityType", - "service": { - "shortName": "EntityTypes", - "fullName": "google.cloud.dialogflow.cx.v3.EntityTypes" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_EntityTypes_CreateEntityType_async", - "title": "Agents createEntityType Sample", - "origin": "API_DEFINITION", - "description": " Creates an entity type in the specified agent. Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).", - "canonical": true, - "file": "entity_types.create_entity_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateEntityType", - "fullName": "google.cloud.dialogflow.cx.v3.EntityTypes.CreateEntityType", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "entity_type", - "type": ".google.cloud.dialogflow.cx.v3.EntityType" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.EntityType", - "client": { - "shortName": "EntityTypesClient", - "fullName": "google.cloud.dialogflow.cx.v3.EntityTypesClient" - }, - "method": { - "shortName": "CreateEntityType", - "fullName": "google.cloud.dialogflow.cx.v3.EntityTypes.CreateEntityType", - "service": { - "shortName": "EntityTypes", - "fullName": "google.cloud.dialogflow.cx.v3.EntityTypes" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_EntityTypes_UpdateEntityType_async", - "title": "Agents updateEntityType Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified entity type. Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).", - "canonical": true, - "file": "entity_types.update_entity_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateEntityType", - "fullName": "google.cloud.dialogflow.cx.v3.EntityTypes.UpdateEntityType", - "async": true, - "parameters": [ - { - "name": "entity_type", - "type": ".google.cloud.dialogflow.cx.v3.EntityType" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.EntityType", - "client": { - "shortName": "EntityTypesClient", - "fullName": "google.cloud.dialogflow.cx.v3.EntityTypesClient" - }, - "method": { - "shortName": "UpdateEntityType", - "fullName": "google.cloud.dialogflow.cx.v3.EntityTypes.UpdateEntityType", - "service": { - "shortName": "EntityTypes", - "fullName": "google.cloud.dialogflow.cx.v3.EntityTypes" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_EntityTypes_DeleteEntityType_async", - "title": "Agents deleteEntityType Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified entity type. Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).", - "canonical": true, - "file": "entity_types.delete_entity_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteEntityType", - "fullName": "google.cloud.dialogflow.cx.v3.EntityTypes.DeleteEntityType", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "EntityTypesClient", - "fullName": "google.cloud.dialogflow.cx.v3.EntityTypesClient" - }, - "method": { - "shortName": "DeleteEntityType", - "fullName": "google.cloud.dialogflow.cx.v3.EntityTypes.DeleteEntityType", - "service": { - "shortName": "EntityTypes", - "fullName": "google.cloud.dialogflow.cx.v3.EntityTypes" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_EntityTypes_ListEntityTypes_async", - "title": "Agents listEntityTypes Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of all entity types in the specified agent.", - "canonical": true, - "file": "entity_types.list_entity_types.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEntityTypes", - "fullName": "google.cloud.dialogflow.cx.v3.EntityTypes.ListEntityTypes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.ListEntityTypesResponse", - "client": { - "shortName": "EntityTypesClient", - "fullName": "google.cloud.dialogflow.cx.v3.EntityTypesClient" - }, - "method": { - "shortName": "ListEntityTypes", - "fullName": "google.cloud.dialogflow.cx.v3.EntityTypes.ListEntityTypes", - "service": { - "shortName": "EntityTypes", - "fullName": "google.cloud.dialogflow.cx.v3.EntityTypes" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_EntityTypes_ExportEntityTypes_async", - "title": "Agents exportEntityTypes Sample", - "origin": "API_DEFINITION", - "description": " Exports the selected entity types.", - "canonical": true, - "file": "entity_types.export_entity_types.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 96, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportEntityTypes", - "fullName": "google.cloud.dialogflow.cx.v3.EntityTypes.ExportEntityTypes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "entity_types", - "type": "TYPE_STRING[]" - }, - { - "name": "entity_types_uri", - "type": "TYPE_STRING" - }, - { - "name": "entity_types_content_inline", - "type": "TYPE_BOOL" - }, - { - "name": "data_format", - "type": ".google.cloud.dialogflow.cx.v3.ExportEntityTypesRequest.DataFormat" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EntityTypesClient", - "fullName": "google.cloud.dialogflow.cx.v3.EntityTypesClient" - }, - "method": { - "shortName": "ExportEntityTypes", - "fullName": "google.cloud.dialogflow.cx.v3.EntityTypes.ExportEntityTypes", - "service": { - "shortName": "EntityTypes", - "fullName": "google.cloud.dialogflow.cx.v3.EntityTypes" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_EntityTypes_ImportEntityTypes_async", - "title": "Agents importEntityTypes Sample", - "origin": "API_DEFINITION", - "description": " Imports the specified entitytypes into the agent.", - "canonical": true, - "file": "entity_types.import_entity_types.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportEntityTypes", - "fullName": "google.cloud.dialogflow.cx.v3.EntityTypes.ImportEntityTypes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "entity_types_uri", - "type": "TYPE_STRING" - }, - { - "name": "entity_types_content", - "type": ".google.cloud.dialogflow.cx.v3.InlineSource" - }, - { - "name": "merge_option", - "type": ".google.cloud.dialogflow.cx.v3.ImportEntityTypesRequest.MergeOption" - }, - { - "name": "target_entity_type", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EntityTypesClient", - "fullName": "google.cloud.dialogflow.cx.v3.EntityTypesClient" - }, - "method": { - "shortName": "ImportEntityTypes", - "fullName": "google.cloud.dialogflow.cx.v3.EntityTypes.ImportEntityTypes", - "service": { - "shortName": "EntityTypes", - "fullName": "google.cloud.dialogflow.cx.v3.EntityTypes" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Environments_ListEnvironments_async", - "title": "Agents listEnvironments Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of all environments in the specified [Agent][google.cloud.dialogflow.cx.v3.Agent].", - "canonical": true, - "file": "environments.list_environments.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEnvironments", - "fullName": "google.cloud.dialogflow.cx.v3.Environments.ListEnvironments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.dialogflow.cx.v3.EnvironmentsClient" - }, - "method": { - "shortName": "ListEnvironments", - "fullName": "google.cloud.dialogflow.cx.v3.Environments.ListEnvironments", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.dialogflow.cx.v3.Environments" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Environments_GetEnvironment_async", - "title": "Agents getEnvironment Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].", - "canonical": true, - "file": "environments.get_environment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEnvironment", - "fullName": "google.cloud.dialogflow.cx.v3.Environments.GetEnvironment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.Environment", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.dialogflow.cx.v3.EnvironmentsClient" - }, - "method": { - "shortName": "GetEnvironment", - "fullName": "google.cloud.dialogflow.cx.v3.Environments.GetEnvironment", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.dialogflow.cx.v3.Environments" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Environments_CreateEnvironment_async", - "title": "Agents createEnvironment Sample", - "origin": "API_DEFINITION", - "description": " Creates an [Environment][google.cloud.dialogflow.cx.v3.Environment] in the specified [Agent][google.cloud.dialogflow.cx.v3.Agent]. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: [Environment][google.cloud.dialogflow.cx.v3.Environment]", - "canonical": true, - "file": "environments.create_environment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateEnvironment", - "fullName": "google.cloud.dialogflow.cx.v3.Environments.CreateEnvironment", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "environment", - "type": ".google.cloud.dialogflow.cx.v3.Environment" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.dialogflow.cx.v3.EnvironmentsClient" - }, - "method": { - "shortName": "CreateEnvironment", - "fullName": "google.cloud.dialogflow.cx.v3.Environments.CreateEnvironment", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.dialogflow.cx.v3.Environments" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Environments_UpdateEnvironment_async", - "title": "Agents updateEnvironment Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified [Environment][google.cloud.dialogflow.cx.v3.Environment]. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: [Environment][google.cloud.dialogflow.cx.v3.Environment]", - "canonical": true, - "file": "environments.update_environment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateEnvironment", - "fullName": "google.cloud.dialogflow.cx.v3.Environments.UpdateEnvironment", - "async": true, - "parameters": [ - { - "name": "environment", - "type": ".google.cloud.dialogflow.cx.v3.Environment" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.dialogflow.cx.v3.EnvironmentsClient" - }, - "method": { - "shortName": "UpdateEnvironment", - "fullName": "google.cloud.dialogflow.cx.v3.Environments.UpdateEnvironment", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.dialogflow.cx.v3.Environments" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Environments_DeleteEnvironment_async", - "title": "Agents deleteEnvironment Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].", - "canonical": true, - "file": "environments.delete_environment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteEnvironment", - "fullName": "google.cloud.dialogflow.cx.v3.Environments.DeleteEnvironment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.dialogflow.cx.v3.EnvironmentsClient" - }, - "method": { - "shortName": "DeleteEnvironment", - "fullName": "google.cloud.dialogflow.cx.v3.Environments.DeleteEnvironment", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.dialogflow.cx.v3.Environments" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Environments_LookupEnvironmentHistory_async", - "title": "Agents lookupEnvironmentHistory Sample", - "origin": "API_DEFINITION", - "description": " Looks up the history of the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].", - "canonical": true, - "file": "environments.lookup_environment_history.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "LookupEnvironmentHistory", - "fullName": "google.cloud.dialogflow.cx.v3.Environments.LookupEnvironmentHistory", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.dialogflow.cx.v3.EnvironmentsClient" - }, - "method": { - "shortName": "LookupEnvironmentHistory", - "fullName": "google.cloud.dialogflow.cx.v3.Environments.LookupEnvironmentHistory", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.dialogflow.cx.v3.Environments" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Environments_RunContinuousTest_async", - "title": "Agents runContinuousTest Sample", - "origin": "API_DEFINITION", - "description": " Kicks off a continuous test under the specified [Environment][google.cloud.dialogflow.cx.v3.Environment]. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: [RunContinuousTestMetadata][google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata] - `response`: [RunContinuousTestResponse][google.cloud.dialogflow.cx.v3.RunContinuousTestResponse]", - "canonical": true, - "file": "environments.run_continuous_test.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RunContinuousTest", - "fullName": "google.cloud.dialogflow.cx.v3.Environments.RunContinuousTest", - "async": true, - "parameters": [ - { - "name": "environment", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.dialogflow.cx.v3.EnvironmentsClient" - }, - "method": { - "shortName": "RunContinuousTest", - "fullName": "google.cloud.dialogflow.cx.v3.Environments.RunContinuousTest", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.dialogflow.cx.v3.Environments" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Environments_ListContinuousTestResults_async", - "title": "Agents listContinuousTestResults Sample", - "origin": "API_DEFINITION", - "description": " Fetches a list of continuous test results for a given environment.", - "canonical": true, - "file": "environments.list_continuous_test_results.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListContinuousTestResults", - "fullName": "google.cloud.dialogflow.cx.v3.Environments.ListContinuousTestResults", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.dialogflow.cx.v3.EnvironmentsClient" - }, - "method": { - "shortName": "ListContinuousTestResults", - "fullName": "google.cloud.dialogflow.cx.v3.Environments.ListContinuousTestResults", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.dialogflow.cx.v3.Environments" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Environments_DeployFlow_async", - "title": "Agents deployFlow Sample", - "origin": "API_DEFINITION", - "description": " Deploys a flow to the specified [Environment][google.cloud.dialogflow.cx.v3.Environment]. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: [DeployFlowMetadata][google.cloud.dialogflow.cx.v3.DeployFlowMetadata] - `response`: [DeployFlowResponse][google.cloud.dialogflow.cx.v3.DeployFlowResponse]", - "canonical": true, - "file": "environments.deploy_flow.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeployFlow", - "fullName": "google.cloud.dialogflow.cx.v3.Environments.DeployFlow", - "async": true, - "parameters": [ - { - "name": "environment", - "type": "TYPE_STRING" - }, - { - "name": "flow_version", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.dialogflow.cx.v3.EnvironmentsClient" - }, - "method": { - "shortName": "DeployFlow", - "fullName": "google.cloud.dialogflow.cx.v3.Environments.DeployFlow", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.dialogflow.cx.v3.Environments" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Examples_CreateExample_async", - "title": "Agents createExample Sample", - "origin": "API_DEFINITION", - "description": " Creates an example in the specified playbook.", - "canonical": true, - "file": "examples.create_example.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateExample", - "fullName": "google.cloud.dialogflow.cx.v3.Examples.CreateExample", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "example", - "type": ".google.cloud.dialogflow.cx.v3.Example" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.Example", - "client": { - "shortName": "ExamplesClient", - "fullName": "google.cloud.dialogflow.cx.v3.ExamplesClient" - }, - "method": { - "shortName": "CreateExample", - "fullName": "google.cloud.dialogflow.cx.v3.Examples.CreateExample", - "service": { - "shortName": "Examples", - "fullName": "google.cloud.dialogflow.cx.v3.Examples" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Examples_DeleteExample_async", - "title": "Agents deleteExample Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified example.", - "canonical": true, - "file": "examples.delete_example.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteExample", - "fullName": "google.cloud.dialogflow.cx.v3.Examples.DeleteExample", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ExamplesClient", - "fullName": "google.cloud.dialogflow.cx.v3.ExamplesClient" - }, - "method": { - "shortName": "DeleteExample", - "fullName": "google.cloud.dialogflow.cx.v3.Examples.DeleteExample", - "service": { - "shortName": "Examples", - "fullName": "google.cloud.dialogflow.cx.v3.Examples" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Examples_ListExamples_async", - "title": "Agents listExamples Sample", - "origin": "API_DEFINITION", - "description": " Returns a list of examples in the specified playbook.", - "canonical": true, - "file": "examples.list_examples.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListExamples", - "fullName": "google.cloud.dialogflow.cx.v3.Examples.ListExamples", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.ListExamplesResponse", - "client": { - "shortName": "ExamplesClient", - "fullName": "google.cloud.dialogflow.cx.v3.ExamplesClient" - }, - "method": { - "shortName": "ListExamples", - "fullName": "google.cloud.dialogflow.cx.v3.Examples.ListExamples", - "service": { - "shortName": "Examples", - "fullName": "google.cloud.dialogflow.cx.v3.Examples" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Examples_GetExample_async", - "title": "Agents getExample Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified example.", - "canonical": true, - "file": "examples.get_example.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetExample", - "fullName": "google.cloud.dialogflow.cx.v3.Examples.GetExample", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.Example", - "client": { - "shortName": "ExamplesClient", - "fullName": "google.cloud.dialogflow.cx.v3.ExamplesClient" - }, - "method": { - "shortName": "GetExample", - "fullName": "google.cloud.dialogflow.cx.v3.Examples.GetExample", - "service": { - "shortName": "Examples", - "fullName": "google.cloud.dialogflow.cx.v3.Examples" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Examples_UpdateExample_async", - "title": "Agents updateExample Sample", - "origin": "API_DEFINITION", - "description": " Update the specified example.", - "canonical": true, - "file": "examples.update_example.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateExample", - "fullName": "google.cloud.dialogflow.cx.v3.Examples.UpdateExample", - "async": true, - "parameters": [ - { - "name": "example", - "type": ".google.cloud.dialogflow.cx.v3.Example" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.Example", - "client": { - "shortName": "ExamplesClient", - "fullName": "google.cloud.dialogflow.cx.v3.ExamplesClient" - }, - "method": { - "shortName": "UpdateExample", - "fullName": "google.cloud.dialogflow.cx.v3.Examples.UpdateExample", - "service": { - "shortName": "Examples", - "fullName": "google.cloud.dialogflow.cx.v3.Examples" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Experiments_ListExperiments_async", - "title": "Agents listExperiments Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of all experiments in the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].", - "canonical": true, - "file": "experiments.list_experiments.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListExperiments", - "fullName": "google.cloud.dialogflow.cx.v3.Experiments.ListExperiments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.ListExperimentsResponse", - "client": { - "shortName": "ExperimentsClient", - "fullName": "google.cloud.dialogflow.cx.v3.ExperimentsClient" - }, - "method": { - "shortName": "ListExperiments", - "fullName": "google.cloud.dialogflow.cx.v3.Experiments.ListExperiments", - "service": { - "shortName": "Experiments", - "fullName": "google.cloud.dialogflow.cx.v3.Experiments" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Experiments_GetExperiment_async", - "title": "Agents getExperiment Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified [Experiment][google.cloud.dialogflow.cx.v3.Experiment].", - "canonical": true, - "file": "experiments.get_experiment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetExperiment", - "fullName": "google.cloud.dialogflow.cx.v3.Experiments.GetExperiment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.Experiment", - "client": { - "shortName": "ExperimentsClient", - "fullName": "google.cloud.dialogflow.cx.v3.ExperimentsClient" - }, - "method": { - "shortName": "GetExperiment", - "fullName": "google.cloud.dialogflow.cx.v3.Experiments.GetExperiment", - "service": { - "shortName": "Experiments", - "fullName": "google.cloud.dialogflow.cx.v3.Experiments" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Experiments_CreateExperiment_async", - "title": "Agents createExperiment Sample", - "origin": "API_DEFINITION", - "description": " Creates an [Experiment][google.cloud.dialogflow.cx.v3.Experiment] in the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].", - "canonical": true, - "file": "experiments.create_experiment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateExperiment", - "fullName": "google.cloud.dialogflow.cx.v3.Experiments.CreateExperiment", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "experiment", - "type": ".google.cloud.dialogflow.cx.v3.Experiment" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.Experiment", - "client": { - "shortName": "ExperimentsClient", - "fullName": "google.cloud.dialogflow.cx.v3.ExperimentsClient" - }, - "method": { - "shortName": "CreateExperiment", - "fullName": "google.cloud.dialogflow.cx.v3.Experiments.CreateExperiment", - "service": { - "shortName": "Experiments", - "fullName": "google.cloud.dialogflow.cx.v3.Experiments" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Experiments_UpdateExperiment_async", - "title": "Agents updateExperiment Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified [Experiment][google.cloud.dialogflow.cx.v3.Experiment].", - "canonical": true, - "file": "experiments.update_experiment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateExperiment", - "fullName": "google.cloud.dialogflow.cx.v3.Experiments.UpdateExperiment", - "async": true, - "parameters": [ - { - "name": "experiment", - "type": ".google.cloud.dialogflow.cx.v3.Experiment" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.Experiment", - "client": { - "shortName": "ExperimentsClient", - "fullName": "google.cloud.dialogflow.cx.v3.ExperimentsClient" - }, - "method": { - "shortName": "UpdateExperiment", - "fullName": "google.cloud.dialogflow.cx.v3.Experiments.UpdateExperiment", - "service": { - "shortName": "Experiments", - "fullName": "google.cloud.dialogflow.cx.v3.Experiments" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Experiments_DeleteExperiment_async", - "title": "Agents deleteExperiment Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified [Experiment][google.cloud.dialogflow.cx.v3.Experiment].", - "canonical": true, - "file": "experiments.delete_experiment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteExperiment", - "fullName": "google.cloud.dialogflow.cx.v3.Experiments.DeleteExperiment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ExperimentsClient", - "fullName": "google.cloud.dialogflow.cx.v3.ExperimentsClient" - }, - "method": { - "shortName": "DeleteExperiment", - "fullName": "google.cloud.dialogflow.cx.v3.Experiments.DeleteExperiment", - "service": { - "shortName": "Experiments", - "fullName": "google.cloud.dialogflow.cx.v3.Experiments" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Experiments_StartExperiment_async", - "title": "Agents startExperiment Sample", - "origin": "API_DEFINITION", - "description": " Starts the specified [Experiment][google.cloud.dialogflow.cx.v3.Experiment]. This rpc only changes the state of experiment from PENDING to RUNNING.", - "canonical": true, - "file": "experiments.start_experiment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StartExperiment", - "fullName": "google.cloud.dialogflow.cx.v3.Experiments.StartExperiment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.Experiment", - "client": { - "shortName": "ExperimentsClient", - "fullName": "google.cloud.dialogflow.cx.v3.ExperimentsClient" - }, - "method": { - "shortName": "StartExperiment", - "fullName": "google.cloud.dialogflow.cx.v3.Experiments.StartExperiment", - "service": { - "shortName": "Experiments", - "fullName": "google.cloud.dialogflow.cx.v3.Experiments" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Experiments_StopExperiment_async", - "title": "Agents stopExperiment Sample", - "origin": "API_DEFINITION", - "description": " Stops the specified [Experiment][google.cloud.dialogflow.cx.v3.Experiment]. This rpc only changes the state of experiment from RUNNING to DONE.", - "canonical": true, - "file": "experiments.stop_experiment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StopExperiment", - "fullName": "google.cloud.dialogflow.cx.v3.Experiments.StopExperiment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.Experiment", - "client": { - "shortName": "ExperimentsClient", - "fullName": "google.cloud.dialogflow.cx.v3.ExperimentsClient" - }, - "method": { - "shortName": "StopExperiment", - "fullName": "google.cloud.dialogflow.cx.v3.Experiments.StopExperiment", - "service": { - "shortName": "Experiments", - "fullName": "google.cloud.dialogflow.cx.v3.Experiments" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Flows_CreateFlow_async", - "title": "Agents createFlow Sample", - "origin": "API_DEFINITION", - "description": " Creates a flow in the specified agent. Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).", - "canonical": true, - "file": "flows.create_flow.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateFlow", - "fullName": "google.cloud.dialogflow.cx.v3.Flows.CreateFlow", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "flow", - "type": ".google.cloud.dialogflow.cx.v3.Flow" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.Flow", - "client": { - "shortName": "FlowsClient", - "fullName": "google.cloud.dialogflow.cx.v3.FlowsClient" - }, - "method": { - "shortName": "CreateFlow", - "fullName": "google.cloud.dialogflow.cx.v3.Flows.CreateFlow", - "service": { - "shortName": "Flows", - "fullName": "google.cloud.dialogflow.cx.v3.Flows" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Flows_DeleteFlow_async", - "title": "Agents deleteFlow Sample", - "origin": "API_DEFINITION", - "description": " Deletes a specified flow.", - "canonical": true, - "file": "flows.delete_flow.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteFlow", - "fullName": "google.cloud.dialogflow.cx.v3.Flows.DeleteFlow", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "FlowsClient", - "fullName": "google.cloud.dialogflow.cx.v3.FlowsClient" - }, - "method": { - "shortName": "DeleteFlow", - "fullName": "google.cloud.dialogflow.cx.v3.Flows.DeleteFlow", - "service": { - "shortName": "Flows", - "fullName": "google.cloud.dialogflow.cx.v3.Flows" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Flows_ListFlows_async", - "title": "Agents listFlows Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of all flows in the specified agent.", - "canonical": true, - "file": "flows.list_flows.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFlows", - "fullName": "google.cloud.dialogflow.cx.v3.Flows.ListFlows", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.ListFlowsResponse", - "client": { - "shortName": "FlowsClient", - "fullName": "google.cloud.dialogflow.cx.v3.FlowsClient" - }, - "method": { - "shortName": "ListFlows", - "fullName": "google.cloud.dialogflow.cx.v3.Flows.ListFlows", - "service": { - "shortName": "Flows", - "fullName": "google.cloud.dialogflow.cx.v3.Flows" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Flows_GetFlow_async", - "title": "Agents getFlow Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified flow.", - "canonical": true, - "file": "flows.get_flow.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFlow", - "fullName": "google.cloud.dialogflow.cx.v3.Flows.GetFlow", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.Flow", - "client": { - "shortName": "FlowsClient", - "fullName": "google.cloud.dialogflow.cx.v3.FlowsClient" - }, - "method": { - "shortName": "GetFlow", - "fullName": "google.cloud.dialogflow.cx.v3.Flows.GetFlow", - "service": { - "shortName": "Flows", - "fullName": "google.cloud.dialogflow.cx.v3.Flows" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Flows_UpdateFlow_async", - "title": "Agents updateFlow Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified flow. Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).", - "canonical": true, - "file": "flows.update_flow.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateFlow", - "fullName": "google.cloud.dialogflow.cx.v3.Flows.UpdateFlow", - "async": true, - "parameters": [ - { - "name": "flow", - "type": ".google.cloud.dialogflow.cx.v3.Flow" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.Flow", - "client": { - "shortName": "FlowsClient", - "fullName": "google.cloud.dialogflow.cx.v3.FlowsClient" - }, - "method": { - "shortName": "UpdateFlow", - "fullName": "google.cloud.dialogflow.cx.v3.Flows.UpdateFlow", - "service": { - "shortName": "Flows", - "fullName": "google.cloud.dialogflow.cx.v3.Flows" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Flows_TrainFlow_async", - "title": "Agents trainFlow Sample", - "origin": "API_DEFINITION", - "description": " Trains the specified flow. Note that only the flow in 'draft' environment is trained. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).", - "canonical": true, - "file": "flows.train_flow.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TrainFlow", - "fullName": "google.cloud.dialogflow.cx.v3.Flows.TrainFlow", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FlowsClient", - "fullName": "google.cloud.dialogflow.cx.v3.FlowsClient" - }, - "method": { - "shortName": "TrainFlow", - "fullName": "google.cloud.dialogflow.cx.v3.Flows.TrainFlow", - "service": { - "shortName": "Flows", - "fullName": "google.cloud.dialogflow.cx.v3.Flows" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Flows_ValidateFlow_async", - "title": "Agents validateFlow Sample", - "origin": "API_DEFINITION", - "description": " Validates the specified flow and creates or updates validation results. Please call this API after the training is completed to get the complete validation results.", - "canonical": true, - "file": "flows.validate_flow.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ValidateFlow", - "fullName": "google.cloud.dialogflow.cx.v3.Flows.ValidateFlow", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.FlowValidationResult", - "client": { - "shortName": "FlowsClient", - "fullName": "google.cloud.dialogflow.cx.v3.FlowsClient" - }, - "method": { - "shortName": "ValidateFlow", - "fullName": "google.cloud.dialogflow.cx.v3.Flows.ValidateFlow", - "service": { - "shortName": "Flows", - "fullName": "google.cloud.dialogflow.cx.v3.Flows" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Flows_GetFlowValidationResult_async", - "title": "Agents getFlowValidationResult Sample", - "origin": "API_DEFINITION", - "description": " Gets the latest flow validation result. Flow validation is performed when ValidateFlow is called.", - "canonical": true, - "file": "flows.get_flow_validation_result.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFlowValidationResult", - "fullName": "google.cloud.dialogflow.cx.v3.Flows.GetFlowValidationResult", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.FlowValidationResult", - "client": { - "shortName": "FlowsClient", - "fullName": "google.cloud.dialogflow.cx.v3.FlowsClient" - }, - "method": { - "shortName": "GetFlowValidationResult", - "fullName": "google.cloud.dialogflow.cx.v3.Flows.GetFlowValidationResult", - "service": { - "shortName": "Flows", - "fullName": "google.cloud.dialogflow.cx.v3.Flows" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Flows_ImportFlow_async", - "title": "Agents importFlow Sample", - "origin": "API_DEFINITION", - "description": " Imports the specified flow to the specified agent from a binary file. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: [ImportFlowResponse][google.cloud.dialogflow.cx.v3.ImportFlowResponse] Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).", - "canonical": true, - "file": "flows.import_flow.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportFlow", - "fullName": "google.cloud.dialogflow.cx.v3.Flows.ImportFlow", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "flow_uri", - "type": "TYPE_STRING" - }, - { - "name": "flow_content", - "type": "TYPE_BYTES" - }, - { - "name": "import_option", - "type": ".google.cloud.dialogflow.cx.v3.ImportFlowRequest.ImportOption" - }, - { - "name": "flow_import_strategy", - "type": ".google.cloud.dialogflow.cx.v3.FlowImportStrategy" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FlowsClient", - "fullName": "google.cloud.dialogflow.cx.v3.FlowsClient" - }, - "method": { - "shortName": "ImportFlow", - "fullName": "google.cloud.dialogflow.cx.v3.Flows.ImportFlow", - "service": { - "shortName": "Flows", - "fullName": "google.cloud.dialogflow.cx.v3.Flows" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Flows_ExportFlow_async", - "title": "Agents exportFlow Sample", - "origin": "API_DEFINITION", - "description": " Exports the specified flow to a binary file. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: [ExportFlowResponse][google.cloud.dialogflow.cx.v3.ExportFlowResponse] Note that resources (e.g. intents, entities, webhooks) that the flow references will also be exported.", - "canonical": true, - "file": "flows.export_flow.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportFlow", - "fullName": "google.cloud.dialogflow.cx.v3.Flows.ExportFlow", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "flow_uri", - "type": "TYPE_STRING" - }, - { - "name": "include_referenced_flows", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FlowsClient", - "fullName": "google.cloud.dialogflow.cx.v3.FlowsClient" - }, - "method": { - "shortName": "ExportFlow", - "fullName": "google.cloud.dialogflow.cx.v3.Flows.ExportFlow", - "service": { - "shortName": "Flows", - "fullName": "google.cloud.dialogflow.cx.v3.Flows" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Generators_ListGenerators_async", - "title": "Agents listGenerators Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of all generators in the specified agent.", - "canonical": true, - "file": "generators.list_generators.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListGenerators", - "fullName": "google.cloud.dialogflow.cx.v3.Generators.ListGenerators", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.ListGeneratorsResponse", - "client": { - "shortName": "GeneratorsClient", - "fullName": "google.cloud.dialogflow.cx.v3.GeneratorsClient" - }, - "method": { - "shortName": "ListGenerators", - "fullName": "google.cloud.dialogflow.cx.v3.Generators.ListGenerators", - "service": { - "shortName": "Generators", - "fullName": "google.cloud.dialogflow.cx.v3.Generators" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Generators_GetGenerator_async", - "title": "Agents getGenerator Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified generator.", - "canonical": true, - "file": "generators.get_generator.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetGenerator", - "fullName": "google.cloud.dialogflow.cx.v3.Generators.GetGenerator", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.Generator", - "client": { - "shortName": "GeneratorsClient", - "fullName": "google.cloud.dialogflow.cx.v3.GeneratorsClient" - }, - "method": { - "shortName": "GetGenerator", - "fullName": "google.cloud.dialogflow.cx.v3.Generators.GetGenerator", - "service": { - "shortName": "Generators", - "fullName": "google.cloud.dialogflow.cx.v3.Generators" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Generators_CreateGenerator_async", - "title": "Agents createGenerator Sample", - "origin": "API_DEFINITION", - "description": " Creates a generator in the specified agent.", - "canonical": true, - "file": "generators.create_generator.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateGenerator", - "fullName": "google.cloud.dialogflow.cx.v3.Generators.CreateGenerator", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "generator", - "type": ".google.cloud.dialogflow.cx.v3.Generator" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.Generator", - "client": { - "shortName": "GeneratorsClient", - "fullName": "google.cloud.dialogflow.cx.v3.GeneratorsClient" - }, - "method": { - "shortName": "CreateGenerator", - "fullName": "google.cloud.dialogflow.cx.v3.Generators.CreateGenerator", - "service": { - "shortName": "Generators", - "fullName": "google.cloud.dialogflow.cx.v3.Generators" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Generators_UpdateGenerator_async", - "title": "Agents updateGenerator Sample", - "origin": "API_DEFINITION", - "description": " Update the specified generator.", - "canonical": true, - "file": "generators.update_generator.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateGenerator", - "fullName": "google.cloud.dialogflow.cx.v3.Generators.UpdateGenerator", - "async": true, - "parameters": [ - { - "name": "generator", - "type": ".google.cloud.dialogflow.cx.v3.Generator" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.Generator", - "client": { - "shortName": "GeneratorsClient", - "fullName": "google.cloud.dialogflow.cx.v3.GeneratorsClient" - }, - "method": { - "shortName": "UpdateGenerator", - "fullName": "google.cloud.dialogflow.cx.v3.Generators.UpdateGenerator", - "service": { - "shortName": "Generators", - "fullName": "google.cloud.dialogflow.cx.v3.Generators" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Generators_DeleteGenerator_async", - "title": "Agents deleteGenerator Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified generators.", - "canonical": true, - "file": "generators.delete_generator.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteGenerator", - "fullName": "google.cloud.dialogflow.cx.v3.Generators.DeleteGenerator", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "GeneratorsClient", - "fullName": "google.cloud.dialogflow.cx.v3.GeneratorsClient" - }, - "method": { - "shortName": "DeleteGenerator", - "fullName": "google.cloud.dialogflow.cx.v3.Generators.DeleteGenerator", - "service": { - "shortName": "Generators", - "fullName": "google.cloud.dialogflow.cx.v3.Generators" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Intents_ListIntents_async", - "title": "Agents listIntents Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of all intents in the specified agent.", - "canonical": true, - "file": "intents.list_intents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListIntents", - "fullName": "google.cloud.dialogflow.cx.v3.Intents.ListIntents", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "intent_view", - "type": ".google.cloud.dialogflow.cx.v3.IntentView" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.ListIntentsResponse", - "client": { - "shortName": "IntentsClient", - "fullName": "google.cloud.dialogflow.cx.v3.IntentsClient" - }, - "method": { - "shortName": "ListIntents", - "fullName": "google.cloud.dialogflow.cx.v3.Intents.ListIntents", - "service": { - "shortName": "Intents", - "fullName": "google.cloud.dialogflow.cx.v3.Intents" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Intents_GetIntent_async", - "title": "Agents getIntent Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified intent.", - "canonical": true, - "file": "intents.get_intent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIntent", - "fullName": "google.cloud.dialogflow.cx.v3.Intents.GetIntent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.Intent", - "client": { - "shortName": "IntentsClient", - "fullName": "google.cloud.dialogflow.cx.v3.IntentsClient" - }, - "method": { - "shortName": "GetIntent", - "fullName": "google.cloud.dialogflow.cx.v3.Intents.GetIntent", - "service": { - "shortName": "Intents", - "fullName": "google.cloud.dialogflow.cx.v3.Intents" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Intents_CreateIntent_async", - "title": "Agents createIntent Sample", - "origin": "API_DEFINITION", - "description": " Creates an intent in the specified agent. Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).", - "canonical": true, - "file": "intents.create_intent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateIntent", - "fullName": "google.cloud.dialogflow.cx.v3.Intents.CreateIntent", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "intent", - "type": ".google.cloud.dialogflow.cx.v3.Intent" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.Intent", - "client": { - "shortName": "IntentsClient", - "fullName": "google.cloud.dialogflow.cx.v3.IntentsClient" - }, - "method": { - "shortName": "CreateIntent", - "fullName": "google.cloud.dialogflow.cx.v3.Intents.CreateIntent", - "service": { - "shortName": "Intents", - "fullName": "google.cloud.dialogflow.cx.v3.Intents" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Intents_UpdateIntent_async", - "title": "Agents updateIntent Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified intent. Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).", - "canonical": true, - "file": "intents.update_intent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateIntent", - "fullName": "google.cloud.dialogflow.cx.v3.Intents.UpdateIntent", - "async": true, - "parameters": [ - { - "name": "intent", - "type": ".google.cloud.dialogflow.cx.v3.Intent" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.Intent", - "client": { - "shortName": "IntentsClient", - "fullName": "google.cloud.dialogflow.cx.v3.IntentsClient" - }, - "method": { - "shortName": "UpdateIntent", - "fullName": "google.cloud.dialogflow.cx.v3.Intents.UpdateIntent", - "service": { - "shortName": "Intents", - "fullName": "google.cloud.dialogflow.cx.v3.Intents" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Intents_DeleteIntent_async", - "title": "Agents deleteIntent Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified intent. Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).", - "canonical": true, - "file": "intents.delete_intent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteIntent", - "fullName": "google.cloud.dialogflow.cx.v3.Intents.DeleteIntent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "IntentsClient", - "fullName": "google.cloud.dialogflow.cx.v3.IntentsClient" - }, - "method": { - "shortName": "DeleteIntent", - "fullName": "google.cloud.dialogflow.cx.v3.Intents.DeleteIntent", - "service": { - "shortName": "Intents", - "fullName": "google.cloud.dialogflow.cx.v3.Intents" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Intents_ImportIntents_async", - "title": "Agents importIntents Sample", - "origin": "API_DEFINITION", - "description": " Imports the specified intents into the agent. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: [ImportIntentsMetadata][google.cloud.dialogflow.cx.v3.ImportIntentsMetadata] - `response`: [ImportIntentsResponse][google.cloud.dialogflow.cx.v3.ImportIntentsResponse]", - "canonical": true, - "file": "intents.import_intents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportIntents", - "fullName": "google.cloud.dialogflow.cx.v3.Intents.ImportIntents", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "intents_uri", - "type": "TYPE_STRING" - }, - { - "name": "intents_content", - "type": ".google.cloud.dialogflow.cx.v3.InlineSource" - }, - { - "name": "merge_option", - "type": ".google.cloud.dialogflow.cx.v3.ImportIntentsRequest.MergeOption" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "IntentsClient", - "fullName": "google.cloud.dialogflow.cx.v3.IntentsClient" - }, - "method": { - "shortName": "ImportIntents", - "fullName": "google.cloud.dialogflow.cx.v3.Intents.ImportIntents", - "service": { - "shortName": "Intents", - "fullName": "google.cloud.dialogflow.cx.v3.Intents" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Intents_ExportIntents_async", - "title": "Agents exportIntents Sample", - "origin": "API_DEFINITION", - "description": " Exports the selected intents. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: [ExportIntentsMetadata][google.cloud.dialogflow.cx.v3.ExportIntentsMetadata] - `response`: [ExportIntentsResponse][google.cloud.dialogflow.cx.v3.ExportIntentsResponse]", - "canonical": true, - "file": "intents.export_intents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportIntents", - "fullName": "google.cloud.dialogflow.cx.v3.Intents.ExportIntents", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "intents", - "type": "TYPE_STRING[]" - }, - { - "name": "intents_uri", - "type": "TYPE_STRING" - }, - { - "name": "intents_content_inline", - "type": "TYPE_BOOL" - }, - { - "name": "data_format", - "type": ".google.cloud.dialogflow.cx.v3.ExportIntentsRequest.DataFormat" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "IntentsClient", - "fullName": "google.cloud.dialogflow.cx.v3.IntentsClient" - }, - "method": { - "shortName": "ExportIntents", - "fullName": "google.cloud.dialogflow.cx.v3.Intents.ExportIntents", - "service": { - "shortName": "Intents", - "fullName": "google.cloud.dialogflow.cx.v3.Intents" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Pages_ListPages_async", - "title": "Agents listPages Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of all pages in the specified flow.", - "canonical": true, - "file": "pages.list_pages.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 88, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPages", - "fullName": "google.cloud.dialogflow.cx.v3.Pages.ListPages", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.ListPagesResponse", - "client": { - "shortName": "PagesClient", - "fullName": "google.cloud.dialogflow.cx.v3.PagesClient" - }, - "method": { - "shortName": "ListPages", - "fullName": "google.cloud.dialogflow.cx.v3.Pages.ListPages", - "service": { - "shortName": "Pages", - "fullName": "google.cloud.dialogflow.cx.v3.Pages" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Pages_GetPage_async", - "title": "Agents getPage Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified page.", - "canonical": true, - "file": "pages.get_page.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPage", - "fullName": "google.cloud.dialogflow.cx.v3.Pages.GetPage", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.Page", - "client": { - "shortName": "PagesClient", - "fullName": "google.cloud.dialogflow.cx.v3.PagesClient" - }, - "method": { - "shortName": "GetPage", - "fullName": "google.cloud.dialogflow.cx.v3.Pages.GetPage", - "service": { - "shortName": "Pages", - "fullName": "google.cloud.dialogflow.cx.v3.Pages" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Pages_CreatePage_async", - "title": "Agents createPage Sample", - "origin": "API_DEFINITION", - "description": " Creates a page in the specified flow. Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).", - "canonical": true, - "file": "pages.create_page.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreatePage", - "fullName": "google.cloud.dialogflow.cx.v3.Pages.CreatePage", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page", - "type": ".google.cloud.dialogflow.cx.v3.Page" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.Page", - "client": { - "shortName": "PagesClient", - "fullName": "google.cloud.dialogflow.cx.v3.PagesClient" - }, - "method": { - "shortName": "CreatePage", - "fullName": "google.cloud.dialogflow.cx.v3.Pages.CreatePage", - "service": { - "shortName": "Pages", - "fullName": "google.cloud.dialogflow.cx.v3.Pages" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Pages_UpdatePage_async", - "title": "Agents updatePage Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified page. Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).", - "canonical": true, - "file": "pages.update_page.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdatePage", - "fullName": "google.cloud.dialogflow.cx.v3.Pages.UpdatePage", - "async": true, - "parameters": [ - { - "name": "page", - "type": ".google.cloud.dialogflow.cx.v3.Page" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.Page", - "client": { - "shortName": "PagesClient", - "fullName": "google.cloud.dialogflow.cx.v3.PagesClient" - }, - "method": { - "shortName": "UpdatePage", - "fullName": "google.cloud.dialogflow.cx.v3.Pages.UpdatePage", - "service": { - "shortName": "Pages", - "fullName": "google.cloud.dialogflow.cx.v3.Pages" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Pages_DeletePage_async", - "title": "Agents deletePage Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified page. Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).", - "canonical": true, - "file": "pages.delete_page.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePage", - "fullName": "google.cloud.dialogflow.cx.v3.Pages.DeletePage", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "PagesClient", - "fullName": "google.cloud.dialogflow.cx.v3.PagesClient" - }, - "method": { - "shortName": "DeletePage", - "fullName": "google.cloud.dialogflow.cx.v3.Pages.DeletePage", - "service": { - "shortName": "Pages", - "fullName": "google.cloud.dialogflow.cx.v3.Pages" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Playbooks_CreatePlaybook_async", - "title": "Agents createPlaybook Sample", - "origin": "API_DEFINITION", - "description": " Creates a playbook in a specified agent.", - "canonical": true, - "file": "playbooks.create_playbook.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreatePlaybook", - "fullName": "google.cloud.dialogflow.cx.v3.Playbooks.CreatePlaybook", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "playbook", - "type": ".google.cloud.dialogflow.cx.v3.Playbook" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.Playbook", - "client": { - "shortName": "PlaybooksClient", - "fullName": "google.cloud.dialogflow.cx.v3.PlaybooksClient" - }, - "method": { - "shortName": "CreatePlaybook", - "fullName": "google.cloud.dialogflow.cx.v3.Playbooks.CreatePlaybook", - "service": { - "shortName": "Playbooks", - "fullName": "google.cloud.dialogflow.cx.v3.Playbooks" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Playbooks_DeletePlaybook_async", - "title": "Agents deletePlaybook Sample", - "origin": "API_DEFINITION", - "description": " Deletes a specified playbook.", - "canonical": true, - "file": "playbooks.delete_playbook.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePlaybook", - "fullName": "google.cloud.dialogflow.cx.v3.Playbooks.DeletePlaybook", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "PlaybooksClient", - "fullName": "google.cloud.dialogflow.cx.v3.PlaybooksClient" - }, - "method": { - "shortName": "DeletePlaybook", - "fullName": "google.cloud.dialogflow.cx.v3.Playbooks.DeletePlaybook", - "service": { - "shortName": "Playbooks", - "fullName": "google.cloud.dialogflow.cx.v3.Playbooks" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Playbooks_ListPlaybooks_async", - "title": "Agents listPlaybooks Sample", - "origin": "API_DEFINITION", - "description": " Returns a list of playbooks in the specified agent.", - "canonical": true, - "file": "playbooks.list_playbooks.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPlaybooks", - "fullName": "google.cloud.dialogflow.cx.v3.Playbooks.ListPlaybooks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.ListPlaybooksResponse", - "client": { - "shortName": "PlaybooksClient", - "fullName": "google.cloud.dialogflow.cx.v3.PlaybooksClient" - }, - "method": { - "shortName": "ListPlaybooks", - "fullName": "google.cloud.dialogflow.cx.v3.Playbooks.ListPlaybooks", - "service": { - "shortName": "Playbooks", - "fullName": "google.cloud.dialogflow.cx.v3.Playbooks" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Playbooks_GetPlaybook_async", - "title": "Agents getPlaybook Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified Playbook.", - "canonical": true, - "file": "playbooks.get_playbook.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPlaybook", - "fullName": "google.cloud.dialogflow.cx.v3.Playbooks.GetPlaybook", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.Playbook", - "client": { - "shortName": "PlaybooksClient", - "fullName": "google.cloud.dialogflow.cx.v3.PlaybooksClient" - }, - "method": { - "shortName": "GetPlaybook", - "fullName": "google.cloud.dialogflow.cx.v3.Playbooks.GetPlaybook", - "service": { - "shortName": "Playbooks", - "fullName": "google.cloud.dialogflow.cx.v3.Playbooks" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Playbooks_ExportPlaybook_async", - "title": "Agents exportPlaybook Sample", - "origin": "API_DEFINITION", - "description": " Exports the specified playbook to a binary file. Note that resources (e.g. examples, tools) that the playbook references will also be exported.", - "canonical": true, - "file": "playbooks.export_playbook.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportPlaybook", - "fullName": "google.cloud.dialogflow.cx.v3.Playbooks.ExportPlaybook", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "playbook_uri", - "type": "TYPE_STRING" - }, - { - "name": "data_format", - "type": ".google.cloud.dialogflow.cx.v3.ExportPlaybookRequest.DataFormat" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "PlaybooksClient", - "fullName": "google.cloud.dialogflow.cx.v3.PlaybooksClient" - }, - "method": { - "shortName": "ExportPlaybook", - "fullName": "google.cloud.dialogflow.cx.v3.Playbooks.ExportPlaybook", - "service": { - "shortName": "Playbooks", - "fullName": "google.cloud.dialogflow.cx.v3.Playbooks" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Playbooks_ImportPlaybook_async", - "title": "Agents importPlaybook Sample", - "origin": "API_DEFINITION", - "description": " Imports the specified playbook to the specified agent from a binary file.", - "canonical": true, - "file": "playbooks.import_playbook.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportPlaybook", - "fullName": "google.cloud.dialogflow.cx.v3.Playbooks.ImportPlaybook", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "playbook_uri", - "type": "TYPE_STRING" - }, - { - "name": "playbook_content", - "type": "TYPE_BYTES" - }, - { - "name": "import_strategy", - "type": ".google.cloud.dialogflow.cx.v3.PlaybookImportStrategy" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "PlaybooksClient", - "fullName": "google.cloud.dialogflow.cx.v3.PlaybooksClient" - }, - "method": { - "shortName": "ImportPlaybook", - "fullName": "google.cloud.dialogflow.cx.v3.Playbooks.ImportPlaybook", - "service": { - "shortName": "Playbooks", - "fullName": "google.cloud.dialogflow.cx.v3.Playbooks" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Playbooks_UpdatePlaybook_async", - "title": "Agents updatePlaybook Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified Playbook.", - "canonical": true, - "file": "playbooks.update_playbook.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdatePlaybook", - "fullName": "google.cloud.dialogflow.cx.v3.Playbooks.UpdatePlaybook", - "async": true, - "parameters": [ - { - "name": "playbook", - "type": ".google.cloud.dialogflow.cx.v3.Playbook" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.Playbook", - "client": { - "shortName": "PlaybooksClient", - "fullName": "google.cloud.dialogflow.cx.v3.PlaybooksClient" - }, - "method": { - "shortName": "UpdatePlaybook", - "fullName": "google.cloud.dialogflow.cx.v3.Playbooks.UpdatePlaybook", - "service": { - "shortName": "Playbooks", - "fullName": "google.cloud.dialogflow.cx.v3.Playbooks" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Playbooks_CreatePlaybookVersion_async", - "title": "Agents createPlaybookVersion Sample", - "origin": "API_DEFINITION", - "description": " Creates a version for the specified Playbook.", - "canonical": true, - "file": "playbooks.create_playbook_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreatePlaybookVersion", - "fullName": "google.cloud.dialogflow.cx.v3.Playbooks.CreatePlaybookVersion", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "playbook_version", - "type": ".google.cloud.dialogflow.cx.v3.PlaybookVersion" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.PlaybookVersion", - "client": { - "shortName": "PlaybooksClient", - "fullName": "google.cloud.dialogflow.cx.v3.PlaybooksClient" - }, - "method": { - "shortName": "CreatePlaybookVersion", - "fullName": "google.cloud.dialogflow.cx.v3.Playbooks.CreatePlaybookVersion", - "service": { - "shortName": "Playbooks", - "fullName": "google.cloud.dialogflow.cx.v3.Playbooks" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Playbooks_GetPlaybookVersion_async", - "title": "Agents getPlaybookVersion Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified version of the Playbook.", - "canonical": true, - "file": "playbooks.get_playbook_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPlaybookVersion", - "fullName": "google.cloud.dialogflow.cx.v3.Playbooks.GetPlaybookVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.PlaybookVersion", - "client": { - "shortName": "PlaybooksClient", - "fullName": "google.cloud.dialogflow.cx.v3.PlaybooksClient" - }, - "method": { - "shortName": "GetPlaybookVersion", - "fullName": "google.cloud.dialogflow.cx.v3.Playbooks.GetPlaybookVersion", - "service": { - "shortName": "Playbooks", - "fullName": "google.cloud.dialogflow.cx.v3.Playbooks" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Playbooks_RestorePlaybookVersion_async", - "title": "Agents restorePlaybookVersion Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified version of the Playbook and stores it as the current playbook draft, returning the playbook with resources updated.", - "canonical": true, - "file": "playbooks.restore_playbook_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RestorePlaybookVersion", - "fullName": "google.cloud.dialogflow.cx.v3.Playbooks.RestorePlaybookVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.RestorePlaybookVersionResponse", - "client": { - "shortName": "PlaybooksClient", - "fullName": "google.cloud.dialogflow.cx.v3.PlaybooksClient" - }, - "method": { - "shortName": "RestorePlaybookVersion", - "fullName": "google.cloud.dialogflow.cx.v3.Playbooks.RestorePlaybookVersion", - "service": { - "shortName": "Playbooks", - "fullName": "google.cloud.dialogflow.cx.v3.Playbooks" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Playbooks_ListPlaybookVersions_async", - "title": "Agents listPlaybookVersions Sample", - "origin": "API_DEFINITION", - "description": " Lists versions for the specified Playbook.", - "canonical": true, - "file": "playbooks.list_playbook_versions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPlaybookVersions", - "fullName": "google.cloud.dialogflow.cx.v3.Playbooks.ListPlaybookVersions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.ListPlaybookVersionsResponse", - "client": { - "shortName": "PlaybooksClient", - "fullName": "google.cloud.dialogflow.cx.v3.PlaybooksClient" - }, - "method": { - "shortName": "ListPlaybookVersions", - "fullName": "google.cloud.dialogflow.cx.v3.Playbooks.ListPlaybookVersions", - "service": { - "shortName": "Playbooks", - "fullName": "google.cloud.dialogflow.cx.v3.Playbooks" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Playbooks_DeletePlaybookVersion_async", - "title": "Agents deletePlaybookVersion Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified version of the Playbook.", - "canonical": true, - "file": "playbooks.delete_playbook_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePlaybookVersion", - "fullName": "google.cloud.dialogflow.cx.v3.Playbooks.DeletePlaybookVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "PlaybooksClient", - "fullName": "google.cloud.dialogflow.cx.v3.PlaybooksClient" - }, - "method": { - "shortName": "DeletePlaybookVersion", - "fullName": "google.cloud.dialogflow.cx.v3.Playbooks.DeletePlaybookVersion", - "service": { - "shortName": "Playbooks", - "fullName": "google.cloud.dialogflow.cx.v3.Playbooks" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_SecuritySettingsService_CreateSecuritySettings_async", - "title": "Agents createSecuritySettings Sample", - "origin": "API_DEFINITION", - "description": " Create security settings in the specified location.", - "canonical": true, - "file": "security_settings_service.create_security_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSecuritySettings", - "fullName": "google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettings", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "security_settings", - "type": ".google.cloud.dialogflow.cx.v3.SecuritySettings" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.SecuritySettings", - "client": { - "shortName": "SecuritySettingsServiceClient", - "fullName": "google.cloud.dialogflow.cx.v3.SecuritySettingsServiceClient" - }, - "method": { - "shortName": "CreateSecuritySettings", - "fullName": "google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettings", - "service": { - "shortName": "SecuritySettingsService", - "fullName": "google.cloud.dialogflow.cx.v3.SecuritySettingsService" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_SecuritySettingsService_GetSecuritySettings_async", - "title": "Agents getSecuritySettings Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings]. The returned settings may be stale by up to 1 minute.", - "canonical": true, - "file": "security_settings_service.get_security_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSecuritySettings", - "fullName": "google.cloud.dialogflow.cx.v3.SecuritySettingsService.GetSecuritySettings", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.SecuritySettings", - "client": { - "shortName": "SecuritySettingsServiceClient", - "fullName": "google.cloud.dialogflow.cx.v3.SecuritySettingsServiceClient" - }, - "method": { - "shortName": "GetSecuritySettings", - "fullName": "google.cloud.dialogflow.cx.v3.SecuritySettingsService.GetSecuritySettings", - "service": { - "shortName": "SecuritySettingsService", - "fullName": "google.cloud.dialogflow.cx.v3.SecuritySettingsService" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_SecuritySettingsService_UpdateSecuritySettings_async", - "title": "Agents updateSecuritySettings Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings].", - "canonical": true, - "file": "security_settings_service.update_security_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSecuritySettings", - "fullName": "google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings", - "async": true, - "parameters": [ - { - "name": "security_settings", - "type": ".google.cloud.dialogflow.cx.v3.SecuritySettings" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.SecuritySettings", - "client": { - "shortName": "SecuritySettingsServiceClient", - "fullName": "google.cloud.dialogflow.cx.v3.SecuritySettingsServiceClient" - }, - "method": { - "shortName": "UpdateSecuritySettings", - "fullName": "google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings", - "service": { - "shortName": "SecuritySettingsService", - "fullName": "google.cloud.dialogflow.cx.v3.SecuritySettingsService" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_SecuritySettingsService_ListSecuritySettings_async", - "title": "Agents listSecuritySettings Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of all security settings in the specified location.", - "canonical": true, - "file": "security_settings_service.list_security_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSecuritySettings", - "fullName": "google.cloud.dialogflow.cx.v3.SecuritySettingsService.ListSecuritySettings", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse", - "client": { - "shortName": "SecuritySettingsServiceClient", - "fullName": "google.cloud.dialogflow.cx.v3.SecuritySettingsServiceClient" - }, - "method": { - "shortName": "ListSecuritySettings", - "fullName": "google.cloud.dialogflow.cx.v3.SecuritySettingsService.ListSecuritySettings", - "service": { - "shortName": "SecuritySettingsService", - "fullName": "google.cloud.dialogflow.cx.v3.SecuritySettingsService" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_SecuritySettingsService_DeleteSecuritySettings_async", - "title": "Agents deleteSecuritySettings Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings].", - "canonical": true, - "file": "security_settings_service.delete_security_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSecuritySettings", - "fullName": "google.cloud.dialogflow.cx.v3.SecuritySettingsService.DeleteSecuritySettings", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "SecuritySettingsServiceClient", - "fullName": "google.cloud.dialogflow.cx.v3.SecuritySettingsServiceClient" - }, - "method": { - "shortName": "DeleteSecuritySettings", - "fullName": "google.cloud.dialogflow.cx.v3.SecuritySettingsService.DeleteSecuritySettings", - "service": { - "shortName": "SecuritySettingsService", - "fullName": "google.cloud.dialogflow.cx.v3.SecuritySettingsService" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_SessionEntityTypes_ListSessionEntityTypes_async", - "title": "Agents listSessionEntityTypes Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of all session entity types in the specified session.", - "canonical": true, - "file": "session_entity_types.list_session_entity_types.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSessionEntityTypes", - "fullName": "google.cloud.dialogflow.cx.v3.SessionEntityTypes.ListSessionEntityTypes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse", - "client": { - "shortName": "SessionEntityTypesClient", - "fullName": "google.cloud.dialogflow.cx.v3.SessionEntityTypesClient" - }, - "method": { - "shortName": "ListSessionEntityTypes", - "fullName": "google.cloud.dialogflow.cx.v3.SessionEntityTypes.ListSessionEntityTypes", - "service": { - "shortName": "SessionEntityTypes", - "fullName": "google.cloud.dialogflow.cx.v3.SessionEntityTypes" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_SessionEntityTypes_GetSessionEntityType_async", - "title": "Agents getSessionEntityType Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified session entity type.", - "canonical": true, - "file": "session_entity_types.get_session_entity_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSessionEntityType", - "fullName": "google.cloud.dialogflow.cx.v3.SessionEntityTypes.GetSessionEntityType", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.SessionEntityType", - "client": { - "shortName": "SessionEntityTypesClient", - "fullName": "google.cloud.dialogflow.cx.v3.SessionEntityTypesClient" - }, - "method": { - "shortName": "GetSessionEntityType", - "fullName": "google.cloud.dialogflow.cx.v3.SessionEntityTypes.GetSessionEntityType", - "service": { - "shortName": "SessionEntityTypes", - "fullName": "google.cloud.dialogflow.cx.v3.SessionEntityTypes" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_SessionEntityTypes_CreateSessionEntityType_async", - "title": "Agents createSessionEntityType Sample", - "origin": "API_DEFINITION", - "description": " Creates a session entity type.", - "canonical": true, - "file": "session_entity_types.create_session_entity_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSessionEntityType", - "fullName": "google.cloud.dialogflow.cx.v3.SessionEntityTypes.CreateSessionEntityType", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "session_entity_type", - "type": ".google.cloud.dialogflow.cx.v3.SessionEntityType" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.SessionEntityType", - "client": { - "shortName": "SessionEntityTypesClient", - "fullName": "google.cloud.dialogflow.cx.v3.SessionEntityTypesClient" - }, - "method": { - "shortName": "CreateSessionEntityType", - "fullName": "google.cloud.dialogflow.cx.v3.SessionEntityTypes.CreateSessionEntityType", - "service": { - "shortName": "SessionEntityTypes", - "fullName": "google.cloud.dialogflow.cx.v3.SessionEntityTypes" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_SessionEntityTypes_UpdateSessionEntityType_async", - "title": "Agents updateSessionEntityType Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified session entity type.", - "canonical": true, - "file": "session_entity_types.update_session_entity_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSessionEntityType", - "fullName": "google.cloud.dialogflow.cx.v3.SessionEntityTypes.UpdateSessionEntityType", - "async": true, - "parameters": [ - { - "name": "session_entity_type", - "type": ".google.cloud.dialogflow.cx.v3.SessionEntityType" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.SessionEntityType", - "client": { - "shortName": "SessionEntityTypesClient", - "fullName": "google.cloud.dialogflow.cx.v3.SessionEntityTypesClient" - }, - "method": { - "shortName": "UpdateSessionEntityType", - "fullName": "google.cloud.dialogflow.cx.v3.SessionEntityTypes.UpdateSessionEntityType", - "service": { - "shortName": "SessionEntityTypes", - "fullName": "google.cloud.dialogflow.cx.v3.SessionEntityTypes" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_SessionEntityTypes_DeleteSessionEntityType_async", - "title": "Agents deleteSessionEntityType Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified session entity type.", - "canonical": true, - "file": "session_entity_types.delete_session_entity_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSessionEntityType", - "fullName": "google.cloud.dialogflow.cx.v3.SessionEntityTypes.DeleteSessionEntityType", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "SessionEntityTypesClient", - "fullName": "google.cloud.dialogflow.cx.v3.SessionEntityTypesClient" - }, - "method": { - "shortName": "DeleteSessionEntityType", - "fullName": "google.cloud.dialogflow.cx.v3.SessionEntityTypes.DeleteSessionEntityType", - "service": { - "shortName": "SessionEntityTypes", - "fullName": "google.cloud.dialogflow.cx.v3.SessionEntityTypes" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Sessions_DetectIntent_async", - "title": "Agents detectIntent Sample", - "origin": "API_DEFINITION", - "description": " Processes a natural language query and returns structured, actionable data as a result. This method is not idempotent, because it may cause session entity types to be updated, which in turn might affect results of future queries. Note: Always use agent versions for production traffic. See [Versions and environments](https://cloud.google.com/dialogflow/cx/docs/concept/version).", - "canonical": true, - "file": "sessions.detect_intent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DetectIntent", - "fullName": "google.cloud.dialogflow.cx.v3.Sessions.DetectIntent", - "async": true, - "parameters": [ - { - "name": "session", - "type": "TYPE_STRING" - }, - { - "name": "query_params", - "type": ".google.cloud.dialogflow.cx.v3.QueryParameters" - }, - { - "name": "query_input", - "type": ".google.cloud.dialogflow.cx.v3.QueryInput" - }, - { - "name": "output_audio_config", - "type": ".google.cloud.dialogflow.cx.v3.OutputAudioConfig" - }, - { - "name": "response_view", - "type": ".google.cloud.dialogflow.cx.v3.DetectIntentResponseView" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.DetectIntentResponse", - "client": { - "shortName": "SessionsClient", - "fullName": "google.cloud.dialogflow.cx.v3.SessionsClient" - }, - "method": { - "shortName": "DetectIntent", - "fullName": "google.cloud.dialogflow.cx.v3.Sessions.DetectIntent", - "service": { - "shortName": "Sessions", - "fullName": "google.cloud.dialogflow.cx.v3.Sessions" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Sessions_ServerStreamingDetectIntent_async", - "title": "Agents serverStreamingDetectIntent Sample", - "origin": "API_DEFINITION", - "description": " Processes a natural language query and returns structured, actionable data as a result through server-side streaming. Server-side streaming allows Dialogflow to send [partial responses](https://cloud.google.com/dialogflow/cx/docs/concept/fulfillment#partial-response) earlier in a single request.", - "canonical": true, - "file": "sessions.server_streaming_detect_intent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 88, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ServerStreamingDetectIntent", - "fullName": "google.cloud.dialogflow.cx.v3.Sessions.ServerStreamingDetectIntent", - "async": true, - "parameters": [ - { - "name": "session", - "type": "TYPE_STRING" - }, - { - "name": "query_params", - "type": ".google.cloud.dialogflow.cx.v3.QueryParameters" - }, - { - "name": "query_input", - "type": ".google.cloud.dialogflow.cx.v3.QueryInput" - }, - { - "name": "output_audio_config", - "type": ".google.cloud.dialogflow.cx.v3.OutputAudioConfig" - }, - { - "name": "response_view", - "type": ".google.cloud.dialogflow.cx.v3.DetectIntentResponseView" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.DetectIntentResponse", - "client": { - "shortName": "SessionsClient", - "fullName": "google.cloud.dialogflow.cx.v3.SessionsClient" - }, - "method": { - "shortName": "ServerStreamingDetectIntent", - "fullName": "google.cloud.dialogflow.cx.v3.Sessions.ServerStreamingDetectIntent", - "service": { - "shortName": "Sessions", - "fullName": "google.cloud.dialogflow.cx.v3.Sessions" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Sessions_StreamingDetectIntent_async", - "title": "Agents streamingDetectIntent Sample", - "origin": "API_DEFINITION", - "description": " Processes a natural language query in audio format in a streaming fashion and returns structured, actionable data as a result. This method is only available via the gRPC API (not REST). Note: Always use agent versions for production traffic. See [Versions and environments](https://cloud.google.com/dialogflow/cx/docs/concept/version).", - "canonical": true, - "file": "sessions.streaming_detect_intent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 101, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StreamingDetectIntent", - "fullName": "google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent", - "async": true, - "parameters": [ - { - "name": "session", - "type": "TYPE_STRING" - }, - { - "name": "query_params", - "type": ".google.cloud.dialogflow.cx.v3.QueryParameters" - }, - { - "name": "query_input", - "type": ".google.cloud.dialogflow.cx.v3.QueryInput" - }, - { - "name": "output_audio_config", - "type": ".google.cloud.dialogflow.cx.v3.OutputAudioConfig" - }, - { - "name": "enable_partial_response", - "type": "TYPE_BOOL" - }, - { - "name": "enable_debugging_info", - "type": "TYPE_BOOL" - }, - { - "name": "response_view", - "type": ".google.cloud.dialogflow.cx.v3.DetectIntentResponseView" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse", - "client": { - "shortName": "SessionsClient", - "fullName": "google.cloud.dialogflow.cx.v3.SessionsClient" - }, - "method": { - "shortName": "StreamingDetectIntent", - "fullName": "google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent", - "service": { - "shortName": "Sessions", - "fullName": "google.cloud.dialogflow.cx.v3.Sessions" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Sessions_MatchIntent_async", - "title": "Agents matchIntent Sample", - "origin": "API_DEFINITION", - "description": " Returns preliminary intent match results, doesn't change the session status.", - "canonical": true, - "file": "sessions.match_intent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "MatchIntent", - "fullName": "google.cloud.dialogflow.cx.v3.Sessions.MatchIntent", - "async": true, - "parameters": [ - { - "name": "session", - "type": "TYPE_STRING" - }, - { - "name": "query_params", - "type": ".google.cloud.dialogflow.cx.v3.QueryParameters" - }, - { - "name": "query_input", - "type": ".google.cloud.dialogflow.cx.v3.QueryInput" - }, - { - "name": "persist_parameter_changes", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.MatchIntentResponse", - "client": { - "shortName": "SessionsClient", - "fullName": "google.cloud.dialogflow.cx.v3.SessionsClient" - }, - "method": { - "shortName": "MatchIntent", - "fullName": "google.cloud.dialogflow.cx.v3.Sessions.MatchIntent", - "service": { - "shortName": "Sessions", - "fullName": "google.cloud.dialogflow.cx.v3.Sessions" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Sessions_FulfillIntent_async", - "title": "Agents fulfillIntent Sample", - "origin": "API_DEFINITION", - "description": " Fulfills a matched intent returned by [MatchIntent][google.cloud.dialogflow.cx.v3.Sessions.MatchIntent]. Must be called after [MatchIntent][google.cloud.dialogflow.cx.v3.Sessions.MatchIntent], with input from [MatchIntentResponse][google.cloud.dialogflow.cx.v3.MatchIntentResponse]. Otherwise, the behavior is undefined.", - "canonical": true, - "file": "sessions.fulfill_intent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FulfillIntent", - "fullName": "google.cloud.dialogflow.cx.v3.Sessions.FulfillIntent", - "async": true, - "parameters": [ - { - "name": "match_intent_request", - "type": ".google.cloud.dialogflow.cx.v3.MatchIntentRequest" - }, - { - "name": "match", - "type": ".google.cloud.dialogflow.cx.v3.Match" - }, - { - "name": "output_audio_config", - "type": ".google.cloud.dialogflow.cx.v3.OutputAudioConfig" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.FulfillIntentResponse", - "client": { - "shortName": "SessionsClient", - "fullName": "google.cloud.dialogflow.cx.v3.SessionsClient" - }, - "method": { - "shortName": "FulfillIntent", - "fullName": "google.cloud.dialogflow.cx.v3.Sessions.FulfillIntent", - "service": { - "shortName": "Sessions", - "fullName": "google.cloud.dialogflow.cx.v3.Sessions" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Sessions_SubmitAnswerFeedback_async", - "title": "Agents submitAnswerFeedback Sample", - "origin": "API_DEFINITION", - "description": " Updates the feedback received from the user for a single turn of the bot response.", - "canonical": true, - "file": "sessions.submit_answer_feedback.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SubmitAnswerFeedback", - "fullName": "google.cloud.dialogflow.cx.v3.Sessions.SubmitAnswerFeedback", - "async": true, - "parameters": [ - { - "name": "session", - "type": "TYPE_STRING" - }, - { - "name": "response_id", - "type": "TYPE_STRING" - }, - { - "name": "answer_feedback", - "type": ".google.cloud.dialogflow.cx.v3.AnswerFeedback" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.AnswerFeedback", - "client": { - "shortName": "SessionsClient", - "fullName": "google.cloud.dialogflow.cx.v3.SessionsClient" - }, - "method": { - "shortName": "SubmitAnswerFeedback", - "fullName": "google.cloud.dialogflow.cx.v3.Sessions.SubmitAnswerFeedback", - "service": { - "shortName": "Sessions", - "fullName": "google.cloud.dialogflow.cx.v3.Sessions" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_TestCases_ListTestCases_async", - "title": "Agents listTestCases Sample", - "origin": "API_DEFINITION", - "description": " Fetches a list of test cases for a given agent.", - "canonical": true, - "file": "test_cases.list_test_cases.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTestCases", - "fullName": "google.cloud.dialogflow.cx.v3.TestCases.ListTestCases", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.dialogflow.cx.v3.ListTestCasesRequest.TestCaseView" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.ListTestCasesResponse", - "client": { - "shortName": "TestCasesClient", - "fullName": "google.cloud.dialogflow.cx.v3.TestCasesClient" - }, - "method": { - "shortName": "ListTestCases", - "fullName": "google.cloud.dialogflow.cx.v3.TestCases.ListTestCases", - "service": { - "shortName": "TestCases", - "fullName": "google.cloud.dialogflow.cx.v3.TestCases" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_TestCases_BatchDeleteTestCases_async", - "title": "Agents batchDeleteTestCases Sample", - "origin": "API_DEFINITION", - "description": " Batch deletes test cases.", - "canonical": true, - "file": "test_cases.batch_delete_test_cases.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchDeleteTestCases", - "fullName": "google.cloud.dialogflow.cx.v3.TestCases.BatchDeleteTestCases", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "names", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "TestCasesClient", - "fullName": "google.cloud.dialogflow.cx.v3.TestCasesClient" - }, - "method": { - "shortName": "BatchDeleteTestCases", - "fullName": "google.cloud.dialogflow.cx.v3.TestCases.BatchDeleteTestCases", - "service": { - "shortName": "TestCases", - "fullName": "google.cloud.dialogflow.cx.v3.TestCases" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_TestCases_GetTestCase_async", - "title": "Agents getTestCase Sample", - "origin": "API_DEFINITION", - "description": " Gets a test case.", - "canonical": true, - "file": "test_cases.get_test_case.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTestCase", - "fullName": "google.cloud.dialogflow.cx.v3.TestCases.GetTestCase", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.TestCase", - "client": { - "shortName": "TestCasesClient", - "fullName": "google.cloud.dialogflow.cx.v3.TestCasesClient" - }, - "method": { - "shortName": "GetTestCase", - "fullName": "google.cloud.dialogflow.cx.v3.TestCases.GetTestCase", - "service": { - "shortName": "TestCases", - "fullName": "google.cloud.dialogflow.cx.v3.TestCases" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_TestCases_CreateTestCase_async", - "title": "Agents createTestCase Sample", - "origin": "API_DEFINITION", - "description": " Creates a test case for the given agent.", - "canonical": true, - "file": "test_cases.create_test_case.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTestCase", - "fullName": "google.cloud.dialogflow.cx.v3.TestCases.CreateTestCase", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "test_case", - "type": ".google.cloud.dialogflow.cx.v3.TestCase" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.TestCase", - "client": { - "shortName": "TestCasesClient", - "fullName": "google.cloud.dialogflow.cx.v3.TestCasesClient" - }, - "method": { - "shortName": "CreateTestCase", - "fullName": "google.cloud.dialogflow.cx.v3.TestCases.CreateTestCase", - "service": { - "shortName": "TestCases", - "fullName": "google.cloud.dialogflow.cx.v3.TestCases" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_TestCases_UpdateTestCase_async", - "title": "Agents updateTestCase Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified test case.", - "canonical": true, - "file": "test_cases.update_test_case.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTestCase", - "fullName": "google.cloud.dialogflow.cx.v3.TestCases.UpdateTestCase", - "async": true, - "parameters": [ - { - "name": "test_case", - "type": ".google.cloud.dialogflow.cx.v3.TestCase" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.TestCase", - "client": { - "shortName": "TestCasesClient", - "fullName": "google.cloud.dialogflow.cx.v3.TestCasesClient" - }, - "method": { - "shortName": "UpdateTestCase", - "fullName": "google.cloud.dialogflow.cx.v3.TestCases.UpdateTestCase", - "service": { - "shortName": "TestCases", - "fullName": "google.cloud.dialogflow.cx.v3.TestCases" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_TestCases_RunTestCase_async", - "title": "Agents runTestCase Sample", - "origin": "API_DEFINITION", - "description": " Kicks off a test case run. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: [RunTestCaseMetadata][google.cloud.dialogflow.cx.v3.RunTestCaseMetadata] - `response`: [RunTestCaseResponse][google.cloud.dialogflow.cx.v3.RunTestCaseResponse]", - "canonical": true, - "file": "test_cases.run_test_case.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RunTestCase", - "fullName": "google.cloud.dialogflow.cx.v3.TestCases.RunTestCase", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "environment", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TestCasesClient", - "fullName": "google.cloud.dialogflow.cx.v3.TestCasesClient" - }, - "method": { - "shortName": "RunTestCase", - "fullName": "google.cloud.dialogflow.cx.v3.TestCases.RunTestCase", - "service": { - "shortName": "TestCases", - "fullName": "google.cloud.dialogflow.cx.v3.TestCases" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_TestCases_BatchRunTestCases_async", - "title": "Agents batchRunTestCases Sample", - "origin": "API_DEFINITION", - "description": " Kicks off a batch run of test cases. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: [BatchRunTestCasesMetadata][google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata] - `response`: [BatchRunTestCasesResponse][google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse]", - "canonical": true, - "file": "test_cases.batch_run_test_cases.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchRunTestCases", - "fullName": "google.cloud.dialogflow.cx.v3.TestCases.BatchRunTestCases", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "environment", - "type": "TYPE_STRING" - }, - { - "name": "test_cases", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TestCasesClient", - "fullName": "google.cloud.dialogflow.cx.v3.TestCasesClient" - }, - "method": { - "shortName": "BatchRunTestCases", - "fullName": "google.cloud.dialogflow.cx.v3.TestCases.BatchRunTestCases", - "service": { - "shortName": "TestCases", - "fullName": "google.cloud.dialogflow.cx.v3.TestCases" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_TestCases_CalculateCoverage_async", - "title": "Agents calculateCoverage Sample", - "origin": "API_DEFINITION", - "description": " Calculates the test coverage for an agent.", - "canonical": true, - "file": "test_cases.calculate_coverage.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CalculateCoverage", - "fullName": "google.cloud.dialogflow.cx.v3.TestCases.CalculateCoverage", - "async": true, - "parameters": [ - { - "name": "agent", - "type": "TYPE_STRING" - }, - { - "name": "type", - "type": ".google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.CoverageType" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.CalculateCoverageResponse", - "client": { - "shortName": "TestCasesClient", - "fullName": "google.cloud.dialogflow.cx.v3.TestCasesClient" - }, - "method": { - "shortName": "CalculateCoverage", - "fullName": "google.cloud.dialogflow.cx.v3.TestCases.CalculateCoverage", - "service": { - "shortName": "TestCases", - "fullName": "google.cloud.dialogflow.cx.v3.TestCases" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_TestCases_ImportTestCases_async", - "title": "Agents importTestCases Sample", - "origin": "API_DEFINITION", - "description": " Imports the test cases from a Cloud Storage bucket or a local file. It always creates new test cases and won't overwrite any existing ones. The provided ID in the imported test case is neglected. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: [ImportTestCasesMetadata][google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata] - `response`: [ImportTestCasesResponse][google.cloud.dialogflow.cx.v3.ImportTestCasesResponse]", - "canonical": true, - "file": "test_cases.import_test_cases.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportTestCases", - "fullName": "google.cloud.dialogflow.cx.v3.TestCases.ImportTestCases", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "gcs_uri", - "type": "TYPE_STRING" - }, - { - "name": "content", - "type": "TYPE_BYTES" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TestCasesClient", - "fullName": "google.cloud.dialogflow.cx.v3.TestCasesClient" - }, - "method": { - "shortName": "ImportTestCases", - "fullName": "google.cloud.dialogflow.cx.v3.TestCases.ImportTestCases", - "service": { - "shortName": "TestCases", - "fullName": "google.cloud.dialogflow.cx.v3.TestCases" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_TestCases_ExportTestCases_async", - "title": "Agents exportTestCases Sample", - "origin": "API_DEFINITION", - "description": " Exports the test cases under the agent to a Cloud Storage bucket or a local file. Filter can be applied to export a subset of test cases. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: [ExportTestCasesMetadata][google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata] - `response`: [ExportTestCasesResponse][google.cloud.dialogflow.cx.v3.ExportTestCasesResponse]", - "canonical": true, - "file": "test_cases.export_test_cases.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportTestCases", - "fullName": "google.cloud.dialogflow.cx.v3.TestCases.ExportTestCases", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "gcs_uri", - "type": "TYPE_STRING" - }, - { - "name": "data_format", - "type": ".google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.DataFormat" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TestCasesClient", - "fullName": "google.cloud.dialogflow.cx.v3.TestCasesClient" - }, - "method": { - "shortName": "ExportTestCases", - "fullName": "google.cloud.dialogflow.cx.v3.TestCases.ExportTestCases", - "service": { - "shortName": "TestCases", - "fullName": "google.cloud.dialogflow.cx.v3.TestCases" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_TestCases_ListTestCaseResults_async", - "title": "Agents listTestCaseResults Sample", - "origin": "API_DEFINITION", - "description": " Fetches the list of run results for the given test case. A maximum of 100 results are kept for each test case.", - "canonical": true, - "file": "test_cases.list_test_case_results.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 90, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTestCaseResults", - "fullName": "google.cloud.dialogflow.cx.v3.TestCases.ListTestCaseResults", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse", - "client": { - "shortName": "TestCasesClient", - "fullName": "google.cloud.dialogflow.cx.v3.TestCasesClient" - }, - "method": { - "shortName": "ListTestCaseResults", - "fullName": "google.cloud.dialogflow.cx.v3.TestCases.ListTestCaseResults", - "service": { - "shortName": "TestCases", - "fullName": "google.cloud.dialogflow.cx.v3.TestCases" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_TestCases_GetTestCaseResult_async", - "title": "Agents getTestCaseResult Sample", - "origin": "API_DEFINITION", - "description": " Gets a test case result.", - "canonical": true, - "file": "test_cases.get_test_case_result.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTestCaseResult", - "fullName": "google.cloud.dialogflow.cx.v3.TestCases.GetTestCaseResult", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.TestCaseResult", - "client": { - "shortName": "TestCasesClient", - "fullName": "google.cloud.dialogflow.cx.v3.TestCasesClient" - }, - "method": { - "shortName": "GetTestCaseResult", - "fullName": "google.cloud.dialogflow.cx.v3.TestCases.GetTestCaseResult", - "service": { - "shortName": "TestCases", - "fullName": "google.cloud.dialogflow.cx.v3.TestCases" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Tools_CreateTool_async", - "title": "Agents createTool Sample", - "origin": "API_DEFINITION", - "description": " Creates a [Tool][google.cloud.dialogflow.cx.v3.Tool] in the specified agent.", - "canonical": true, - "file": "tools.create_tool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTool", - "fullName": "google.cloud.dialogflow.cx.v3.Tools.CreateTool", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "tool", - "type": ".google.cloud.dialogflow.cx.v3.Tool" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.Tool", - "client": { - "shortName": "ToolsClient", - "fullName": "google.cloud.dialogflow.cx.v3.ToolsClient" - }, - "method": { - "shortName": "CreateTool", - "fullName": "google.cloud.dialogflow.cx.v3.Tools.CreateTool", - "service": { - "shortName": "Tools", - "fullName": "google.cloud.dialogflow.cx.v3.Tools" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Tools_ListTools_async", - "title": "Agents listTools Sample", - "origin": "API_DEFINITION", - "description": " Returns a list of [Tools][google.cloud.dialogflow.cx.v3.Tool] in the specified agent.", - "canonical": true, - "file": "tools.list_tools.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTools", - "fullName": "google.cloud.dialogflow.cx.v3.Tools.ListTools", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.ListToolsResponse", - "client": { - "shortName": "ToolsClient", - "fullName": "google.cloud.dialogflow.cx.v3.ToolsClient" - }, - "method": { - "shortName": "ListTools", - "fullName": "google.cloud.dialogflow.cx.v3.Tools.ListTools", - "service": { - "shortName": "Tools", - "fullName": "google.cloud.dialogflow.cx.v3.Tools" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Tools_GetTool_async", - "title": "Agents getTool Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified [Tool][google.cloud.dialogflow.cx.v3.Tool].", - "canonical": true, - "file": "tools.get_tool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTool", - "fullName": "google.cloud.dialogflow.cx.v3.Tools.GetTool", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.Tool", - "client": { - "shortName": "ToolsClient", - "fullName": "google.cloud.dialogflow.cx.v3.ToolsClient" - }, - "method": { - "shortName": "GetTool", - "fullName": "google.cloud.dialogflow.cx.v3.Tools.GetTool", - "service": { - "shortName": "Tools", - "fullName": "google.cloud.dialogflow.cx.v3.Tools" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Tools_UpdateTool_async", - "title": "Agents updateTool Sample", - "origin": "API_DEFINITION", - "description": " Update the specified [Tool][google.cloud.dialogflow.cx.v3.Tool].", - "canonical": true, - "file": "tools.update_tool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTool", - "fullName": "google.cloud.dialogflow.cx.v3.Tools.UpdateTool", - "async": true, - "parameters": [ - { - "name": "tool", - "type": ".google.cloud.dialogflow.cx.v3.Tool" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.Tool", - "client": { - "shortName": "ToolsClient", - "fullName": "google.cloud.dialogflow.cx.v3.ToolsClient" - }, - "method": { - "shortName": "UpdateTool", - "fullName": "google.cloud.dialogflow.cx.v3.Tools.UpdateTool", - "service": { - "shortName": "Tools", - "fullName": "google.cloud.dialogflow.cx.v3.Tools" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Tools_DeleteTool_async", - "title": "Agents deleteTool Sample", - "origin": "API_DEFINITION", - "description": " Deletes a specified [Tool][google.cloud.dialogflow.cx.v3.Tool].", - "canonical": true, - "file": "tools.delete_tool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTool", - "fullName": "google.cloud.dialogflow.cx.v3.Tools.DeleteTool", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ToolsClient", - "fullName": "google.cloud.dialogflow.cx.v3.ToolsClient" - }, - "method": { - "shortName": "DeleteTool", - "fullName": "google.cloud.dialogflow.cx.v3.Tools.DeleteTool", - "service": { - "shortName": "Tools", - "fullName": "google.cloud.dialogflow.cx.v3.Tools" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Tools_ListToolVersions_async", - "title": "Agents listToolVersions Sample", - "origin": "API_DEFINITION", - "description": " List versions of the specified [Tool][google.cloud.dialogflow.cx.v3.Tool].", - "canonical": true, - "file": "tools.list_tool_versions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListToolVersions", - "fullName": "google.cloud.dialogflow.cx.v3.Tools.ListToolVersions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.ListToolVersionsResponse", - "client": { - "shortName": "ToolsClient", - "fullName": "google.cloud.dialogflow.cx.v3.ToolsClient" - }, - "method": { - "shortName": "ListToolVersions", - "fullName": "google.cloud.dialogflow.cx.v3.Tools.ListToolVersions", - "service": { - "shortName": "Tools", - "fullName": "google.cloud.dialogflow.cx.v3.Tools" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Tools_CreateToolVersion_async", - "title": "Agents createToolVersion Sample", - "origin": "API_DEFINITION", - "description": " Creates a version for the specified [Tool][google.cloud.dialogflow.cx.v3.Tool].", - "canonical": true, - "file": "tools.create_tool_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateToolVersion", - "fullName": "google.cloud.dialogflow.cx.v3.Tools.CreateToolVersion", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "tool_version", - "type": ".google.cloud.dialogflow.cx.v3.ToolVersion" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.ToolVersion", - "client": { - "shortName": "ToolsClient", - "fullName": "google.cloud.dialogflow.cx.v3.ToolsClient" - }, - "method": { - "shortName": "CreateToolVersion", - "fullName": "google.cloud.dialogflow.cx.v3.Tools.CreateToolVersion", - "service": { - "shortName": "Tools", - "fullName": "google.cloud.dialogflow.cx.v3.Tools" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Tools_GetToolVersion_async", - "title": "Agents getToolVersion Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified version of the [Tool][google.cloud.dialogflow.cx.v3.Tool].", - "canonical": true, - "file": "tools.get_tool_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetToolVersion", - "fullName": "google.cloud.dialogflow.cx.v3.Tools.GetToolVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.ToolVersion", - "client": { - "shortName": "ToolsClient", - "fullName": "google.cloud.dialogflow.cx.v3.ToolsClient" - }, - "method": { - "shortName": "GetToolVersion", - "fullName": "google.cloud.dialogflow.cx.v3.Tools.GetToolVersion", - "service": { - "shortName": "Tools", - "fullName": "google.cloud.dialogflow.cx.v3.Tools" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Tools_DeleteToolVersion_async", - "title": "Agents deleteToolVersion Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified version of the [Tool][google.cloud.dialogflow.cx.v3.Tool].", - "canonical": true, - "file": "tools.delete_tool_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteToolVersion", - "fullName": "google.cloud.dialogflow.cx.v3.Tools.DeleteToolVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ToolsClient", - "fullName": "google.cloud.dialogflow.cx.v3.ToolsClient" - }, - "method": { - "shortName": "DeleteToolVersion", - "fullName": "google.cloud.dialogflow.cx.v3.Tools.DeleteToolVersion", - "service": { - "shortName": "Tools", - "fullName": "google.cloud.dialogflow.cx.v3.Tools" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Tools_RestoreToolVersion_async", - "title": "Agents restoreToolVersion Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified version of the Tool and stores it as the current tool draft, returning the tool with resources updated.", - "canonical": true, - "file": "tools.restore_tool_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RestoreToolVersion", - "fullName": "google.cloud.dialogflow.cx.v3.Tools.RestoreToolVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.RestoreToolVersionResponse", - "client": { - "shortName": "ToolsClient", - "fullName": "google.cloud.dialogflow.cx.v3.ToolsClient" - }, - "method": { - "shortName": "RestoreToolVersion", - "fullName": "google.cloud.dialogflow.cx.v3.Tools.RestoreToolVersion", - "service": { - "shortName": "Tools", - "fullName": "google.cloud.dialogflow.cx.v3.Tools" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_TransitionRouteGroups_ListTransitionRouteGroups_async", - "title": "Agents listTransitionRouteGroups Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of all transition route groups in the specified flow.", - "canonical": true, - "file": "transition_route_groups.list_transition_route_groups.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTransitionRouteGroups", - "fullName": "google.cloud.dialogflow.cx.v3.TransitionRouteGroups.ListTransitionRouteGroups", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse", - "client": { - "shortName": "TransitionRouteGroupsClient", - "fullName": "google.cloud.dialogflow.cx.v3.TransitionRouteGroupsClient" - }, - "method": { - "shortName": "ListTransitionRouteGroups", - "fullName": "google.cloud.dialogflow.cx.v3.TransitionRouteGroups.ListTransitionRouteGroups", - "service": { - "shortName": "TransitionRouteGroups", - "fullName": "google.cloud.dialogflow.cx.v3.TransitionRouteGroups" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_TransitionRouteGroups_GetTransitionRouteGroup_async", - "title": "Agents getTransitionRouteGroup Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].", - "canonical": true, - "file": "transition_route_groups.get_transition_route_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTransitionRouteGroup", - "fullName": "google.cloud.dialogflow.cx.v3.TransitionRouteGroups.GetTransitionRouteGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.TransitionRouteGroup", - "client": { - "shortName": "TransitionRouteGroupsClient", - "fullName": "google.cloud.dialogflow.cx.v3.TransitionRouteGroupsClient" - }, - "method": { - "shortName": "GetTransitionRouteGroup", - "fullName": "google.cloud.dialogflow.cx.v3.TransitionRouteGroups.GetTransitionRouteGroup", - "service": { - "shortName": "TransitionRouteGroups", - "fullName": "google.cloud.dialogflow.cx.v3.TransitionRouteGroups" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_TransitionRouteGroups_CreateTransitionRouteGroup_async", - "title": "Agents createTransitionRouteGroup Sample", - "origin": "API_DEFINITION", - "description": " Creates an [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] in the specified flow. Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).", - "canonical": true, - "file": "transition_route_groups.create_transition_route_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTransitionRouteGroup", - "fullName": "google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroup", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "transition_route_group", - "type": ".google.cloud.dialogflow.cx.v3.TransitionRouteGroup" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.TransitionRouteGroup", - "client": { - "shortName": "TransitionRouteGroupsClient", - "fullName": "google.cloud.dialogflow.cx.v3.TransitionRouteGroupsClient" - }, - "method": { - "shortName": "CreateTransitionRouteGroup", - "fullName": "google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroup", - "service": { - "shortName": "TransitionRouteGroups", - "fullName": "google.cloud.dialogflow.cx.v3.TransitionRouteGroups" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_TransitionRouteGroups_UpdateTransitionRouteGroup_async", - "title": "Agents updateTransitionRouteGroup Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]. Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).", - "canonical": true, - "file": "transition_route_groups.update_transition_route_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTransitionRouteGroup", - "fullName": "google.cloud.dialogflow.cx.v3.TransitionRouteGroups.UpdateTransitionRouteGroup", - "async": true, - "parameters": [ - { - "name": "transition_route_group", - "type": ".google.cloud.dialogflow.cx.v3.TransitionRouteGroup" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.TransitionRouteGroup", - "client": { - "shortName": "TransitionRouteGroupsClient", - "fullName": "google.cloud.dialogflow.cx.v3.TransitionRouteGroupsClient" - }, - "method": { - "shortName": "UpdateTransitionRouteGroup", - "fullName": "google.cloud.dialogflow.cx.v3.TransitionRouteGroups.UpdateTransitionRouteGroup", - "service": { - "shortName": "TransitionRouteGroups", - "fullName": "google.cloud.dialogflow.cx.v3.TransitionRouteGroups" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_TransitionRouteGroups_DeleteTransitionRouteGroup_async", - "title": "Agents deleteTransitionRouteGroup Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]. Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).", - "canonical": true, - "file": "transition_route_groups.delete_transition_route_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTransitionRouteGroup", - "fullName": "google.cloud.dialogflow.cx.v3.TransitionRouteGroups.DeleteTransitionRouteGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "TransitionRouteGroupsClient", - "fullName": "google.cloud.dialogflow.cx.v3.TransitionRouteGroupsClient" - }, - "method": { - "shortName": "DeleteTransitionRouteGroup", - "fullName": "google.cloud.dialogflow.cx.v3.TransitionRouteGroups.DeleteTransitionRouteGroup", - "service": { - "shortName": "TransitionRouteGroups", - "fullName": "google.cloud.dialogflow.cx.v3.TransitionRouteGroups" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Versions_ListVersions_async", - "title": "Agents listVersions Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of all versions in the specified [Flow][google.cloud.dialogflow.cx.v3.Flow].", - "canonical": true, - "file": "versions.list_versions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListVersions", - "fullName": "google.cloud.dialogflow.cx.v3.Versions.ListVersions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.ListVersionsResponse", - "client": { - "shortName": "VersionsClient", - "fullName": "google.cloud.dialogflow.cx.v3.VersionsClient" - }, - "method": { - "shortName": "ListVersions", - "fullName": "google.cloud.dialogflow.cx.v3.Versions.ListVersions", - "service": { - "shortName": "Versions", - "fullName": "google.cloud.dialogflow.cx.v3.Versions" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Versions_GetVersion_async", - "title": "Agents getVersion Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified [Version][google.cloud.dialogflow.cx.v3.Version].", - "canonical": true, - "file": "versions.get_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetVersion", - "fullName": "google.cloud.dialogflow.cx.v3.Versions.GetVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.Version", - "client": { - "shortName": "VersionsClient", - "fullName": "google.cloud.dialogflow.cx.v3.VersionsClient" - }, - "method": { - "shortName": "GetVersion", - "fullName": "google.cloud.dialogflow.cx.v3.Versions.GetVersion", - "service": { - "shortName": "Versions", - "fullName": "google.cloud.dialogflow.cx.v3.Versions" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Versions_CreateVersion_async", - "title": "Agents createVersion Sample", - "origin": "API_DEFINITION", - "description": " Creates a [Version][google.cloud.dialogflow.cx.v3.Version] in the specified [Flow][google.cloud.dialogflow.cx.v3.Flow]. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: [CreateVersionOperationMetadata][google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata] - `response`: [Version][google.cloud.dialogflow.cx.v3.Version]", - "canonical": true, - "file": "versions.create_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateVersion", - "fullName": "google.cloud.dialogflow.cx.v3.Versions.CreateVersion", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "version", - "type": ".google.cloud.dialogflow.cx.v3.Version" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VersionsClient", - "fullName": "google.cloud.dialogflow.cx.v3.VersionsClient" - }, - "method": { - "shortName": "CreateVersion", - "fullName": "google.cloud.dialogflow.cx.v3.Versions.CreateVersion", - "service": { - "shortName": "Versions", - "fullName": "google.cloud.dialogflow.cx.v3.Versions" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Versions_UpdateVersion_async", - "title": "Agents updateVersion Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified [Version][google.cloud.dialogflow.cx.v3.Version].", - "canonical": true, - "file": "versions.update_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateVersion", - "fullName": "google.cloud.dialogflow.cx.v3.Versions.UpdateVersion", - "async": true, - "parameters": [ - { - "name": "version", - "type": ".google.cloud.dialogflow.cx.v3.Version" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.Version", - "client": { - "shortName": "VersionsClient", - "fullName": "google.cloud.dialogflow.cx.v3.VersionsClient" - }, - "method": { - "shortName": "UpdateVersion", - "fullName": "google.cloud.dialogflow.cx.v3.Versions.UpdateVersion", - "service": { - "shortName": "Versions", - "fullName": "google.cloud.dialogflow.cx.v3.Versions" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Versions_DeleteVersion_async", - "title": "Agents deleteVersion Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified [Version][google.cloud.dialogflow.cx.v3.Version].", - "canonical": true, - "file": "versions.delete_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteVersion", - "fullName": "google.cloud.dialogflow.cx.v3.Versions.DeleteVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "VersionsClient", - "fullName": "google.cloud.dialogflow.cx.v3.VersionsClient" - }, - "method": { - "shortName": "DeleteVersion", - "fullName": "google.cloud.dialogflow.cx.v3.Versions.DeleteVersion", - "service": { - "shortName": "Versions", - "fullName": "google.cloud.dialogflow.cx.v3.Versions" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Versions_LoadVersion_async", - "title": "Agents loadVersion Sample", - "origin": "API_DEFINITION", - "description": " Loads resources in the specified version to the draft flow. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)", - "canonical": true, - "file": "versions.load_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "LoadVersion", - "fullName": "google.cloud.dialogflow.cx.v3.Versions.LoadVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "allow_override_agent_resources", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VersionsClient", - "fullName": "google.cloud.dialogflow.cx.v3.VersionsClient" - }, - "method": { - "shortName": "LoadVersion", - "fullName": "google.cloud.dialogflow.cx.v3.Versions.LoadVersion", - "service": { - "shortName": "Versions", - "fullName": "google.cloud.dialogflow.cx.v3.Versions" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Versions_CompareVersions_async", - "title": "Agents compareVersions Sample", - "origin": "API_DEFINITION", - "description": " Compares the specified base version with target version.", - "canonical": true, - "file": "versions.compare_versions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CompareVersions", - "fullName": "google.cloud.dialogflow.cx.v3.Versions.CompareVersions", - "async": true, - "parameters": [ - { - "name": "base_version", - "type": "TYPE_STRING" - }, - { - "name": "target_version", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.CompareVersionsResponse", - "client": { - "shortName": "VersionsClient", - "fullName": "google.cloud.dialogflow.cx.v3.VersionsClient" - }, - "method": { - "shortName": "CompareVersions", - "fullName": "google.cloud.dialogflow.cx.v3.Versions.CompareVersions", - "service": { - "shortName": "Versions", - "fullName": "google.cloud.dialogflow.cx.v3.Versions" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Webhooks_ListWebhooks_async", - "title": "Agents listWebhooks Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of all webhooks in the specified agent.", - "canonical": true, - "file": "webhooks.list_webhooks.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListWebhooks", - "fullName": "google.cloud.dialogflow.cx.v3.Webhooks.ListWebhooks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.ListWebhooksResponse", - "client": { - "shortName": "WebhooksClient", - "fullName": "google.cloud.dialogflow.cx.v3.WebhooksClient" - }, - "method": { - "shortName": "ListWebhooks", - "fullName": "google.cloud.dialogflow.cx.v3.Webhooks.ListWebhooks", - "service": { - "shortName": "Webhooks", - "fullName": "google.cloud.dialogflow.cx.v3.Webhooks" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Webhooks_GetWebhook_async", - "title": "Agents getWebhook Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified webhook.", - "canonical": true, - "file": "webhooks.get_webhook.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetWebhook", - "fullName": "google.cloud.dialogflow.cx.v3.Webhooks.GetWebhook", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.Webhook", - "client": { - "shortName": "WebhooksClient", - "fullName": "google.cloud.dialogflow.cx.v3.WebhooksClient" - }, - "method": { - "shortName": "GetWebhook", - "fullName": "google.cloud.dialogflow.cx.v3.Webhooks.GetWebhook", - "service": { - "shortName": "Webhooks", - "fullName": "google.cloud.dialogflow.cx.v3.Webhooks" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Webhooks_CreateWebhook_async", - "title": "Agents createWebhook Sample", - "origin": "API_DEFINITION", - "description": " Creates a webhook in the specified agent.", - "canonical": true, - "file": "webhooks.create_webhook.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateWebhook", - "fullName": "google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhook", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "webhook", - "type": ".google.cloud.dialogflow.cx.v3.Webhook" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.Webhook", - "client": { - "shortName": "WebhooksClient", - "fullName": "google.cloud.dialogflow.cx.v3.WebhooksClient" - }, - "method": { - "shortName": "CreateWebhook", - "fullName": "google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhook", - "service": { - "shortName": "Webhooks", - "fullName": "google.cloud.dialogflow.cx.v3.Webhooks" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Webhooks_UpdateWebhook_async", - "title": "Agents updateWebhook Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified webhook.", - "canonical": true, - "file": "webhooks.update_webhook.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateWebhook", - "fullName": "google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook", - "async": true, - "parameters": [ - { - "name": "webhook", - "type": ".google.cloud.dialogflow.cx.v3.Webhook" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3.Webhook", - "client": { - "shortName": "WebhooksClient", - "fullName": "google.cloud.dialogflow.cx.v3.WebhooksClient" - }, - "method": { - "shortName": "UpdateWebhook", - "fullName": "google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook", - "service": { - "shortName": "Webhooks", - "fullName": "google.cloud.dialogflow.cx.v3.Webhooks" - } - } - } - }, - { - "regionTag": "dialogflow_v3_generated_Webhooks_DeleteWebhook_async", - "title": "Agents deleteWebhook Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified webhook.", - "canonical": true, - "file": "webhooks.delete_webhook.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteWebhook", - "fullName": "google.cloud.dialogflow.cx.v3.Webhooks.DeleteWebhook", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "WebhooksClient", - "fullName": "google.cloud.dialogflow.cx.v3.WebhooksClient" - }, - "method": { - "shortName": "DeleteWebhook", - "fullName": "google.cloud.dialogflow.cx.v3.Webhooks.DeleteWebhook", - "service": { - "shortName": "Webhooks", - "fullName": "google.cloud.dialogflow.cx.v3.Webhooks" - } - } - } - } - ] -} diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/snippet_metadata_google.cloud.dialogflow.cx.v3beta1.json b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/snippet_metadata_google.cloud.dialogflow.cx.v3beta1.json deleted file mode 100644 index 2515b4a8826b..000000000000 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/snippet_metadata_google.cloud.dialogflow.cx.v3beta1.json +++ /dev/null @@ -1,6479 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-cx", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.dialogflow.cx.v3beta1", - "version": "v3beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "dialogflow_v3beta1_generated_Agents_ListAgents_async", - "title": "Agents listAgents Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of all agents in the specified location.", - "canonical": true, - "file": "agents.list_agents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAgents", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Agents.ListAgents", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse", - "client": { - "shortName": "AgentsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.AgentsClient" - }, - "method": { - "shortName": "ListAgents", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Agents.ListAgents", - "service": { - "shortName": "Agents", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Agents" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Agents_GetAgent_async", - "title": "Agents getAgent Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified agent.", - "canonical": true, - "file": "agents.get_agent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAgent", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Agents.GetAgent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.Agent", - "client": { - "shortName": "AgentsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.AgentsClient" - }, - "method": { - "shortName": "GetAgent", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Agents.GetAgent", - "service": { - "shortName": "Agents", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Agents" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Agents_CreateAgent_async", - "title": "Agents createAgent Sample", - "origin": "API_DEFINITION", - "description": " Creates an agent in the specified location. Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).", - "canonical": true, - "file": "agents.create_agent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAgent", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Agents.CreateAgent", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "agent", - "type": ".google.cloud.dialogflow.cx.v3beta1.Agent" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.Agent", - "client": { - "shortName": "AgentsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.AgentsClient" - }, - "method": { - "shortName": "CreateAgent", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Agents.CreateAgent", - "service": { - "shortName": "Agents", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Agents" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Agents_UpdateAgent_async", - "title": "Agents updateAgent Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified agent. Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).", - "canonical": true, - "file": "agents.update_agent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAgent", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Agents.UpdateAgent", - "async": true, - "parameters": [ - { - "name": "agent", - "type": ".google.cloud.dialogflow.cx.v3beta1.Agent" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.Agent", - "client": { - "shortName": "AgentsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.AgentsClient" - }, - "method": { - "shortName": "UpdateAgent", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Agents.UpdateAgent", - "service": { - "shortName": "Agents", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Agents" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Agents_DeleteAgent_async", - "title": "Agents deleteAgent Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified agent.", - "canonical": true, - "file": "agents.delete_agent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAgent", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Agents.DeleteAgent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AgentsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.AgentsClient" - }, - "method": { - "shortName": "DeleteAgent", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Agents.DeleteAgent", - "service": { - "shortName": "Agents", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Agents" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Agents_ExportAgent_async", - "title": "Agents exportAgent Sample", - "origin": "API_DEFINITION", - "description": " Exports the specified agent to a binary file. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: [ExportAgentResponse][google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse]", - "canonical": true, - "file": "agents.export_agent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportAgent", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Agents.ExportAgent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "agent_uri", - "type": "TYPE_STRING" - }, - { - "name": "data_format", - "type": ".google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.DataFormat" - }, - { - "name": "environment", - "type": "TYPE_STRING" - }, - { - "name": "git_destination", - "type": ".google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination" - }, - { - "name": "include_bigquery_export_settings", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AgentsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.AgentsClient" - }, - "method": { - "shortName": "ExportAgent", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Agents.ExportAgent", - "service": { - "shortName": "Agents", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Agents" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Agents_RestoreAgent_async", - "title": "Agents restoreAgent Sample", - "origin": "API_DEFINITION", - "description": " Restores the specified agent from a binary file. Replaces the current agent with a new one. Note that all existing resources in agent (e.g. intents, entity types, flows) will be removed. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).", - "canonical": true, - "file": "agents.restore_agent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RestoreAgent", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Agents.RestoreAgent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "agent_uri", - "type": "TYPE_STRING" - }, - { - "name": "agent_content", - "type": "TYPE_BYTES" - }, - { - "name": "git_source", - "type": ".google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.GitSource" - }, - { - "name": "restore_option", - "type": ".google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.RestoreOption" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AgentsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.AgentsClient" - }, - "method": { - "shortName": "RestoreAgent", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Agents.RestoreAgent", - "service": { - "shortName": "Agents", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Agents" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Agents_ValidateAgent_async", - "title": "Agents validateAgent Sample", - "origin": "API_DEFINITION", - "description": " Validates the specified agent and creates or updates validation results. The agent in draft version is validated. Please call this API after the training is completed to get the complete validation results.", - "canonical": true, - "file": "agents.validate_agent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ValidateAgent", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Agents.ValidateAgent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.AgentValidationResult", - "client": { - "shortName": "AgentsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.AgentsClient" - }, - "method": { - "shortName": "ValidateAgent", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Agents.ValidateAgent", - "service": { - "shortName": "Agents", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Agents" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Agents_GetAgentValidationResult_async", - "title": "Agents getAgentValidationResult Sample", - "origin": "API_DEFINITION", - "description": " Gets the latest agent validation result. Agent validation is performed when ValidateAgent is called.", - "canonical": true, - "file": "agents.get_agent_validation_result.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAgentValidationResult", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Agents.GetAgentValidationResult", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.AgentValidationResult", - "client": { - "shortName": "AgentsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.AgentsClient" - }, - "method": { - "shortName": "GetAgentValidationResult", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Agents.GetAgentValidationResult", - "service": { - "shortName": "Agents", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Agents" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Agents_GetGenerativeSettings_async", - "title": "Agents getGenerativeSettings Sample", - "origin": "API_DEFINITION", - "description": " Gets the generative settings for the agent.", - "canonical": true, - "file": "agents.get_generative_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetGenerativeSettings", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Agents.GetGenerativeSettings", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.GenerativeSettings", - "client": { - "shortName": "AgentsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.AgentsClient" - }, - "method": { - "shortName": "GetGenerativeSettings", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Agents.GetGenerativeSettings", - "service": { - "shortName": "Agents", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Agents" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Agents_UpdateGenerativeSettings_async", - "title": "Agents updateGenerativeSettings Sample", - "origin": "API_DEFINITION", - "description": " Updates the generative settings for the agent.", - "canonical": true, - "file": "agents.update_generative_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateGenerativeSettings", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Agents.UpdateGenerativeSettings", - "async": true, - "parameters": [ - { - "name": "generative_settings", - "type": ".google.cloud.dialogflow.cx.v3beta1.GenerativeSettings" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.GenerativeSettings", - "client": { - "shortName": "AgentsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.AgentsClient" - }, - "method": { - "shortName": "UpdateGenerativeSettings", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Agents.UpdateGenerativeSettings", - "service": { - "shortName": "Agents", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Agents" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Changelogs_ListChangelogs_async", - "title": "Agents listChangelogs Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of Changelogs.", - "canonical": true, - "file": "changelogs.list_changelogs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 88, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListChangelogs", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Changelogs.ListChangelogs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse", - "client": { - "shortName": "ChangelogsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.ChangelogsClient" - }, - "method": { - "shortName": "ListChangelogs", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Changelogs.ListChangelogs", - "service": { - "shortName": "Changelogs", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Changelogs" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Changelogs_GetChangelog_async", - "title": "Agents getChangelog Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified Changelog.", - "canonical": true, - "file": "changelogs.get_changelog.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetChangelog", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Changelogs.GetChangelog", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.Changelog", - "client": { - "shortName": "ChangelogsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.ChangelogsClient" - }, - "method": { - "shortName": "GetChangelog", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Changelogs.GetChangelog", - "service": { - "shortName": "Changelogs", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Changelogs" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_ConversationHistory_ListConversations_async", - "title": "Agents listConversations Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of all conversations.", - "canonical": true, - "file": "conversation_history.list_conversations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListConversations", - "fullName": "google.cloud.dialogflow.cx.v3beta1.ConversationHistory.ListConversations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.ListConversationsResponse", - "client": { - "shortName": "ConversationHistoryClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.ConversationHistoryClient" - }, - "method": { - "shortName": "ListConversations", - "fullName": "google.cloud.dialogflow.cx.v3beta1.ConversationHistory.ListConversations", - "service": { - "shortName": "ConversationHistory", - "fullName": "google.cloud.dialogflow.cx.v3beta1.ConversationHistory" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_ConversationHistory_GetConversation_async", - "title": "Agents getConversation Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified conversation.", - "canonical": true, - "file": "conversation_history.get_conversation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetConversation", - "fullName": "google.cloud.dialogflow.cx.v3beta1.ConversationHistory.GetConversation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.Conversation", - "client": { - "shortName": "ConversationHistoryClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.ConversationHistoryClient" - }, - "method": { - "shortName": "GetConversation", - "fullName": "google.cloud.dialogflow.cx.v3beta1.ConversationHistory.GetConversation", - "service": { - "shortName": "ConversationHistory", - "fullName": "google.cloud.dialogflow.cx.v3beta1.ConversationHistory" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_ConversationHistory_DeleteConversation_async", - "title": "Agents deleteConversation Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified conversation.", - "canonical": true, - "file": "conversation_history.delete_conversation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteConversation", - "fullName": "google.cloud.dialogflow.cx.v3beta1.ConversationHistory.DeleteConversation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ConversationHistoryClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.ConversationHistoryClient" - }, - "method": { - "shortName": "DeleteConversation", - "fullName": "google.cloud.dialogflow.cx.v3beta1.ConversationHistory.DeleteConversation", - "service": { - "shortName": "ConversationHistory", - "fullName": "google.cloud.dialogflow.cx.v3beta1.ConversationHistory" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Deployments_ListDeployments_async", - "title": "Agents listDeployments Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of all deployments in the specified [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].", - "canonical": true, - "file": "deployments.list_deployments.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDeployments", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Deployments.ListDeployments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse", - "client": { - "shortName": "DeploymentsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.DeploymentsClient" - }, - "method": { - "shortName": "ListDeployments", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Deployments.ListDeployments", - "service": { - "shortName": "Deployments", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Deployments" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Deployments_GetDeployment_async", - "title": "Agents getDeployment Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified [Deployment][google.cloud.dialogflow.cx.v3beta1.Deployment].", - "canonical": true, - "file": "deployments.get_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDeployment", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Deployments.GetDeployment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.Deployment", - "client": { - "shortName": "DeploymentsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.DeploymentsClient" - }, - "method": { - "shortName": "GetDeployment", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Deployments.GetDeployment", - "service": { - "shortName": "Deployments", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Deployments" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_EntityTypes_GetEntityType_async", - "title": "Agents getEntityType Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified entity type.", - "canonical": true, - "file": "entity_types.get_entity_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEntityType", - "fullName": "google.cloud.dialogflow.cx.v3beta1.EntityTypes.GetEntityType", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.EntityType", - "client": { - "shortName": "EntityTypesClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.EntityTypesClient" - }, - "method": { - "shortName": "GetEntityType", - "fullName": "google.cloud.dialogflow.cx.v3beta1.EntityTypes.GetEntityType", - "service": { - "shortName": "EntityTypes", - "fullName": "google.cloud.dialogflow.cx.v3beta1.EntityTypes" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_EntityTypes_CreateEntityType_async", - "title": "Agents createEntityType Sample", - "origin": "API_DEFINITION", - "description": " Creates an entity type in the specified agent.", - "canonical": true, - "file": "entity_types.create_entity_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateEntityType", - "fullName": "google.cloud.dialogflow.cx.v3beta1.EntityTypes.CreateEntityType", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "entity_type", - "type": ".google.cloud.dialogflow.cx.v3beta1.EntityType" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.EntityType", - "client": { - "shortName": "EntityTypesClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.EntityTypesClient" - }, - "method": { - "shortName": "CreateEntityType", - "fullName": "google.cloud.dialogflow.cx.v3beta1.EntityTypes.CreateEntityType", - "service": { - "shortName": "EntityTypes", - "fullName": "google.cloud.dialogflow.cx.v3beta1.EntityTypes" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_EntityTypes_UpdateEntityType_async", - "title": "Agents updateEntityType Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified entity type. Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).", - "canonical": true, - "file": "entity_types.update_entity_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateEntityType", - "fullName": "google.cloud.dialogflow.cx.v3beta1.EntityTypes.UpdateEntityType", - "async": true, - "parameters": [ - { - "name": "entity_type", - "type": ".google.cloud.dialogflow.cx.v3beta1.EntityType" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.EntityType", - "client": { - "shortName": "EntityTypesClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.EntityTypesClient" - }, - "method": { - "shortName": "UpdateEntityType", - "fullName": "google.cloud.dialogflow.cx.v3beta1.EntityTypes.UpdateEntityType", - "service": { - "shortName": "EntityTypes", - "fullName": "google.cloud.dialogflow.cx.v3beta1.EntityTypes" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_EntityTypes_DeleteEntityType_async", - "title": "Agents deleteEntityType Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified entity type. Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).", - "canonical": true, - "file": "entity_types.delete_entity_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteEntityType", - "fullName": "google.cloud.dialogflow.cx.v3beta1.EntityTypes.DeleteEntityType", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "EntityTypesClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.EntityTypesClient" - }, - "method": { - "shortName": "DeleteEntityType", - "fullName": "google.cloud.dialogflow.cx.v3beta1.EntityTypes.DeleteEntityType", - "service": { - "shortName": "EntityTypes", - "fullName": "google.cloud.dialogflow.cx.v3beta1.EntityTypes" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_EntityTypes_ListEntityTypes_async", - "title": "Agents listEntityTypes Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of all entity types in the specified agent.", - "canonical": true, - "file": "entity_types.list_entity_types.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEntityTypes", - "fullName": "google.cloud.dialogflow.cx.v3beta1.EntityTypes.ListEntityTypes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse", - "client": { - "shortName": "EntityTypesClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.EntityTypesClient" - }, - "method": { - "shortName": "ListEntityTypes", - "fullName": "google.cloud.dialogflow.cx.v3beta1.EntityTypes.ListEntityTypes", - "service": { - "shortName": "EntityTypes", - "fullName": "google.cloud.dialogflow.cx.v3beta1.EntityTypes" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_EntityTypes_ExportEntityTypes_async", - "title": "Agents exportEntityTypes Sample", - "origin": "API_DEFINITION", - "description": " Exports the selected entity types.", - "canonical": true, - "file": "entity_types.export_entity_types.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 96, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportEntityTypes", - "fullName": "google.cloud.dialogflow.cx.v3beta1.EntityTypes.ExportEntityTypes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "entity_types", - "type": "TYPE_STRING[]" - }, - { - "name": "entity_types_uri", - "type": "TYPE_STRING" - }, - { - "name": "entity_types_content_inline", - "type": "TYPE_BOOL" - }, - { - "name": "data_format", - "type": ".google.cloud.dialogflow.cx.v3beta1.ExportEntityTypesRequest.DataFormat" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EntityTypesClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.EntityTypesClient" - }, - "method": { - "shortName": "ExportEntityTypes", - "fullName": "google.cloud.dialogflow.cx.v3beta1.EntityTypes.ExportEntityTypes", - "service": { - "shortName": "EntityTypes", - "fullName": "google.cloud.dialogflow.cx.v3beta1.EntityTypes" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_EntityTypes_ImportEntityTypes_async", - "title": "Agents importEntityTypes Sample", - "origin": "API_DEFINITION", - "description": " Imports the specified entitytypes into the agent.", - "canonical": true, - "file": "entity_types.import_entity_types.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportEntityTypes", - "fullName": "google.cloud.dialogflow.cx.v3beta1.EntityTypes.ImportEntityTypes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "entity_types_uri", - "type": "TYPE_STRING" - }, - { - "name": "entity_types_content", - "type": ".google.cloud.dialogflow.cx.v3beta1.InlineSource" - }, - { - "name": "merge_option", - "type": ".google.cloud.dialogflow.cx.v3beta1.ImportEntityTypesRequest.MergeOption" - }, - { - "name": "target_entity_type", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EntityTypesClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.EntityTypesClient" - }, - "method": { - "shortName": "ImportEntityTypes", - "fullName": "google.cloud.dialogflow.cx.v3beta1.EntityTypes.ImportEntityTypes", - "service": { - "shortName": "EntityTypes", - "fullName": "google.cloud.dialogflow.cx.v3beta1.EntityTypes" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Environments_ListEnvironments_async", - "title": "Agents listEnvironments Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of all environments in the specified [Agent][google.cloud.dialogflow.cx.v3beta1.Agent].", - "canonical": true, - "file": "environments.list_environments.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEnvironments", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Environments.ListEnvironments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.EnvironmentsClient" - }, - "method": { - "shortName": "ListEnvironments", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Environments.ListEnvironments", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Environments" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Environments_GetEnvironment_async", - "title": "Agents getEnvironment Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].", - "canonical": true, - "file": "environments.get_environment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEnvironment", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Environments.GetEnvironment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.Environment", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.EnvironmentsClient" - }, - "method": { - "shortName": "GetEnvironment", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Environments.GetEnvironment", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Environments" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Environments_CreateEnvironment_async", - "title": "Agents createEnvironment Sample", - "origin": "API_DEFINITION", - "description": " Creates an [Environment][google.cloud.dialogflow.cx.v3beta1.Environment] in the specified [Agent][google.cloud.dialogflow.cx.v3beta1.Agent]. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: [Environment][google.cloud.dialogflow.cx.v3beta1.Environment]", - "canonical": true, - "file": "environments.create_environment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateEnvironment", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Environments.CreateEnvironment", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "environment", - "type": ".google.cloud.dialogflow.cx.v3beta1.Environment" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.EnvironmentsClient" - }, - "method": { - "shortName": "CreateEnvironment", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Environments.CreateEnvironment", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Environments" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Environments_UpdateEnvironment_async", - "title": "Agents updateEnvironment Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified [Environment][google.cloud.dialogflow.cx.v3beta1.Environment]. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: [Environment][google.cloud.dialogflow.cx.v3beta1.Environment]", - "canonical": true, - "file": "environments.update_environment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateEnvironment", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Environments.UpdateEnvironment", - "async": true, - "parameters": [ - { - "name": "environment", - "type": ".google.cloud.dialogflow.cx.v3beta1.Environment" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.EnvironmentsClient" - }, - "method": { - "shortName": "UpdateEnvironment", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Environments.UpdateEnvironment", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Environments" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Environments_DeleteEnvironment_async", - "title": "Agents deleteEnvironment Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].", - "canonical": true, - "file": "environments.delete_environment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteEnvironment", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Environments.DeleteEnvironment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.EnvironmentsClient" - }, - "method": { - "shortName": "DeleteEnvironment", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Environments.DeleteEnvironment", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Environments" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Environments_LookupEnvironmentHistory_async", - "title": "Agents lookupEnvironmentHistory Sample", - "origin": "API_DEFINITION", - "description": " Looks up the history of the specified [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].", - "canonical": true, - "file": "environments.lookup_environment_history.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "LookupEnvironmentHistory", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Environments.LookupEnvironmentHistory", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.EnvironmentsClient" - }, - "method": { - "shortName": "LookupEnvironmentHistory", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Environments.LookupEnvironmentHistory", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Environments" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Environments_RunContinuousTest_async", - "title": "Agents runContinuousTest Sample", - "origin": "API_DEFINITION", - "description": " Kicks off a continuous test under the specified [Environment][google.cloud.dialogflow.cx.v3beta1.Environment]. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: [RunContinuousTestMetadata][google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata] - `response`: [RunContinuousTestResponse][google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse]", - "canonical": true, - "file": "environments.run_continuous_test.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RunContinuousTest", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Environments.RunContinuousTest", - "async": true, - "parameters": [ - { - "name": "environment", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.EnvironmentsClient" - }, - "method": { - "shortName": "RunContinuousTest", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Environments.RunContinuousTest", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Environments" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Environments_ListContinuousTestResults_async", - "title": "Agents listContinuousTestResults Sample", - "origin": "API_DEFINITION", - "description": " Fetches a list of continuous test results for a given environment.", - "canonical": true, - "file": "environments.list_continuous_test_results.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListContinuousTestResults", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Environments.ListContinuousTestResults", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.EnvironmentsClient" - }, - "method": { - "shortName": "ListContinuousTestResults", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Environments.ListContinuousTestResults", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Environments" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Environments_DeployFlow_async", - "title": "Agents deployFlow Sample", - "origin": "API_DEFINITION", - "description": " Deploys a flow to the specified [Environment][google.cloud.dialogflow.cx.v3beta1.Environment]. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: [DeployFlowMetadata][google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata] - `response`: [DeployFlowResponse][google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse]", - "canonical": true, - "file": "environments.deploy_flow.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeployFlow", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Environments.DeployFlow", - "async": true, - "parameters": [ - { - "name": "environment", - "type": "TYPE_STRING" - }, - { - "name": "flow_version", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.EnvironmentsClient" - }, - "method": { - "shortName": "DeployFlow", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Environments.DeployFlow", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Environments" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Examples_CreateExample_async", - "title": "Agents createExample Sample", - "origin": "API_DEFINITION", - "description": " Creates an example in the specified playbook.", - "canonical": true, - "file": "examples.create_example.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateExample", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Examples.CreateExample", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "example", - "type": ".google.cloud.dialogflow.cx.v3beta1.Example" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.Example", - "client": { - "shortName": "ExamplesClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.ExamplesClient" - }, - "method": { - "shortName": "CreateExample", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Examples.CreateExample", - "service": { - "shortName": "Examples", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Examples" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Examples_DeleteExample_async", - "title": "Agents deleteExample Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified example.", - "canonical": true, - "file": "examples.delete_example.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteExample", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Examples.DeleteExample", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ExamplesClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.ExamplesClient" - }, - "method": { - "shortName": "DeleteExample", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Examples.DeleteExample", - "service": { - "shortName": "Examples", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Examples" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Examples_ListExamples_async", - "title": "Agents listExamples Sample", - "origin": "API_DEFINITION", - "description": " Returns a list of examples in the specified playbook.", - "canonical": true, - "file": "examples.list_examples.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListExamples", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Examples.ListExamples", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.ListExamplesResponse", - "client": { - "shortName": "ExamplesClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.ExamplesClient" - }, - "method": { - "shortName": "ListExamples", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Examples.ListExamples", - "service": { - "shortName": "Examples", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Examples" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Examples_GetExample_async", - "title": "Agents getExample Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified example.", - "canonical": true, - "file": "examples.get_example.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetExample", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Examples.GetExample", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.Example", - "client": { - "shortName": "ExamplesClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.ExamplesClient" - }, - "method": { - "shortName": "GetExample", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Examples.GetExample", - "service": { - "shortName": "Examples", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Examples" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Examples_UpdateExample_async", - "title": "Agents updateExample Sample", - "origin": "API_DEFINITION", - "description": " Update the specified example.", - "canonical": true, - "file": "examples.update_example.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateExample", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Examples.UpdateExample", - "async": true, - "parameters": [ - { - "name": "example", - "type": ".google.cloud.dialogflow.cx.v3beta1.Example" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.Example", - "client": { - "shortName": "ExamplesClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.ExamplesClient" - }, - "method": { - "shortName": "UpdateExample", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Examples.UpdateExample", - "service": { - "shortName": "Examples", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Examples" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Experiments_ListExperiments_async", - "title": "Agents listExperiments Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of all experiments in the specified [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].", - "canonical": true, - "file": "experiments.list_experiments.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListExperiments", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Experiments.ListExperiments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse", - "client": { - "shortName": "ExperimentsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.ExperimentsClient" - }, - "method": { - "shortName": "ListExperiments", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Experiments.ListExperiments", - "service": { - "shortName": "Experiments", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Experiments" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Experiments_GetExperiment_async", - "title": "Agents getExperiment Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified [Experiment][google.cloud.dialogflow.cx.v3beta1.Experiment].", - "canonical": true, - "file": "experiments.get_experiment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetExperiment", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Experiments.GetExperiment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.Experiment", - "client": { - "shortName": "ExperimentsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.ExperimentsClient" - }, - "method": { - "shortName": "GetExperiment", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Experiments.GetExperiment", - "service": { - "shortName": "Experiments", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Experiments" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Experiments_CreateExperiment_async", - "title": "Agents createExperiment Sample", - "origin": "API_DEFINITION", - "description": " Creates an [Experiment][google.cloud.dialogflow.cx.v3beta1.Experiment] in the specified [Environment][google.cloud.dialogflow.cx.v3beta1.Environment].", - "canonical": true, - "file": "experiments.create_experiment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateExperiment", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Experiments.CreateExperiment", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "experiment", - "type": ".google.cloud.dialogflow.cx.v3beta1.Experiment" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.Experiment", - "client": { - "shortName": "ExperimentsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.ExperimentsClient" - }, - "method": { - "shortName": "CreateExperiment", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Experiments.CreateExperiment", - "service": { - "shortName": "Experiments", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Experiments" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Experiments_UpdateExperiment_async", - "title": "Agents updateExperiment Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified [Experiment][google.cloud.dialogflow.cx.v3beta1.Experiment].", - "canonical": true, - "file": "experiments.update_experiment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateExperiment", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Experiments.UpdateExperiment", - "async": true, - "parameters": [ - { - "name": "experiment", - "type": ".google.cloud.dialogflow.cx.v3beta1.Experiment" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.Experiment", - "client": { - "shortName": "ExperimentsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.ExperimentsClient" - }, - "method": { - "shortName": "UpdateExperiment", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Experiments.UpdateExperiment", - "service": { - "shortName": "Experiments", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Experiments" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Experiments_DeleteExperiment_async", - "title": "Agents deleteExperiment Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified [Experiment][google.cloud.dialogflow.cx.v3beta1.Experiment].", - "canonical": true, - "file": "experiments.delete_experiment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteExperiment", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Experiments.DeleteExperiment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ExperimentsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.ExperimentsClient" - }, - "method": { - "shortName": "DeleteExperiment", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Experiments.DeleteExperiment", - "service": { - "shortName": "Experiments", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Experiments" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Experiments_StartExperiment_async", - "title": "Agents startExperiment Sample", - "origin": "API_DEFINITION", - "description": " Starts the specified [Experiment][google.cloud.dialogflow.cx.v3beta1.Experiment]. This rpc only changes the state of experiment from PENDING to RUNNING.", - "canonical": true, - "file": "experiments.start_experiment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StartExperiment", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Experiments.StartExperiment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.Experiment", - "client": { - "shortName": "ExperimentsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.ExperimentsClient" - }, - "method": { - "shortName": "StartExperiment", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Experiments.StartExperiment", - "service": { - "shortName": "Experiments", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Experiments" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Experiments_StopExperiment_async", - "title": "Agents stopExperiment Sample", - "origin": "API_DEFINITION", - "description": " Stops the specified [Experiment][google.cloud.dialogflow.cx.v3beta1.Experiment]. This rpc only changes the state of experiment from RUNNING to DONE.", - "canonical": true, - "file": "experiments.stop_experiment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StopExperiment", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Experiments.StopExperiment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.Experiment", - "client": { - "shortName": "ExperimentsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.ExperimentsClient" - }, - "method": { - "shortName": "StopExperiment", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Experiments.StopExperiment", - "service": { - "shortName": "Experiments", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Experiments" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Flows_CreateFlow_async", - "title": "Agents createFlow Sample", - "origin": "API_DEFINITION", - "description": " Creates a flow in the specified agent. Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).", - "canonical": true, - "file": "flows.create_flow.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateFlow", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Flows.CreateFlow", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "flow", - "type": ".google.cloud.dialogflow.cx.v3beta1.Flow" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.Flow", - "client": { - "shortName": "FlowsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.FlowsClient" - }, - "method": { - "shortName": "CreateFlow", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Flows.CreateFlow", - "service": { - "shortName": "Flows", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Flows" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Flows_DeleteFlow_async", - "title": "Agents deleteFlow Sample", - "origin": "API_DEFINITION", - "description": " Deletes a specified flow.", - "canonical": true, - "file": "flows.delete_flow.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteFlow", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Flows.DeleteFlow", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "FlowsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.FlowsClient" - }, - "method": { - "shortName": "DeleteFlow", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Flows.DeleteFlow", - "service": { - "shortName": "Flows", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Flows" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Flows_ListFlows_async", - "title": "Agents listFlows Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of all flows in the specified agent.", - "canonical": true, - "file": "flows.list_flows.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFlows", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Flows.ListFlows", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse", - "client": { - "shortName": "FlowsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.FlowsClient" - }, - "method": { - "shortName": "ListFlows", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Flows.ListFlows", - "service": { - "shortName": "Flows", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Flows" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Flows_GetFlow_async", - "title": "Agents getFlow Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified flow.", - "canonical": true, - "file": "flows.get_flow.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFlow", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Flows.GetFlow", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.Flow", - "client": { - "shortName": "FlowsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.FlowsClient" - }, - "method": { - "shortName": "GetFlow", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Flows.GetFlow", - "service": { - "shortName": "Flows", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Flows" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Flows_UpdateFlow_async", - "title": "Agents updateFlow Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified flow. Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).", - "canonical": true, - "file": "flows.update_flow.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateFlow", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Flows.UpdateFlow", - "async": true, - "parameters": [ - { - "name": "flow", - "type": ".google.cloud.dialogflow.cx.v3beta1.Flow" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.Flow", - "client": { - "shortName": "FlowsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.FlowsClient" - }, - "method": { - "shortName": "UpdateFlow", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Flows.UpdateFlow", - "service": { - "shortName": "Flows", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Flows" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Flows_TrainFlow_async", - "title": "Agents trainFlow Sample", - "origin": "API_DEFINITION", - "description": " Trains the specified flow. Note that only the flow in 'draft' environment is trained. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).", - "canonical": true, - "file": "flows.train_flow.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TrainFlow", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Flows.TrainFlow", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FlowsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.FlowsClient" - }, - "method": { - "shortName": "TrainFlow", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Flows.TrainFlow", - "service": { - "shortName": "Flows", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Flows" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Flows_ValidateFlow_async", - "title": "Agents validateFlow Sample", - "origin": "API_DEFINITION", - "description": " Validates the specified flow and creates or updates validation results. Please call this API after the training is completed to get the complete validation results.", - "canonical": true, - "file": "flows.validate_flow.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ValidateFlow", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Flows.ValidateFlow", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.FlowValidationResult", - "client": { - "shortName": "FlowsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.FlowsClient" - }, - "method": { - "shortName": "ValidateFlow", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Flows.ValidateFlow", - "service": { - "shortName": "Flows", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Flows" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Flows_GetFlowValidationResult_async", - "title": "Agents getFlowValidationResult Sample", - "origin": "API_DEFINITION", - "description": " Gets the latest flow validation result. Flow validation is performed when ValidateFlow is called.", - "canonical": true, - "file": "flows.get_flow_validation_result.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFlowValidationResult", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Flows.GetFlowValidationResult", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.FlowValidationResult", - "client": { - "shortName": "FlowsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.FlowsClient" - }, - "method": { - "shortName": "GetFlowValidationResult", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Flows.GetFlowValidationResult", - "service": { - "shortName": "Flows", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Flows" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Flows_ImportFlow_async", - "title": "Agents importFlow Sample", - "origin": "API_DEFINITION", - "description": " Imports the specified flow to the specified agent from a binary file. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: [ImportFlowResponse][google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse] Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).", - "canonical": true, - "file": "flows.import_flow.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportFlow", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Flows.ImportFlow", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "flow_uri", - "type": "TYPE_STRING" - }, - { - "name": "flow_content", - "type": "TYPE_BYTES" - }, - { - "name": "import_option", - "type": ".google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption" - }, - { - "name": "flow_import_strategy", - "type": ".google.cloud.dialogflow.cx.v3beta1.FlowImportStrategy" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FlowsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.FlowsClient" - }, - "method": { - "shortName": "ImportFlow", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Flows.ImportFlow", - "service": { - "shortName": "Flows", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Flows" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Flows_ExportFlow_async", - "title": "Agents exportFlow Sample", - "origin": "API_DEFINITION", - "description": " Exports the specified flow to a binary file. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: [ExportFlowResponse][google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse] Note that resources (e.g. intents, entities, webhooks) that the flow references will also be exported.", - "canonical": true, - "file": "flows.export_flow.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportFlow", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Flows.ExportFlow", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "flow_uri", - "type": "TYPE_STRING" - }, - { - "name": "include_referenced_flows", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FlowsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.FlowsClient" - }, - "method": { - "shortName": "ExportFlow", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Flows.ExportFlow", - "service": { - "shortName": "Flows", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Flows" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Generators_ListGenerators_async", - "title": "Agents listGenerators Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of all generators in the specified agent.", - "canonical": true, - "file": "generators.list_generators.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListGenerators", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Generators.ListGenerators", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.ListGeneratorsResponse", - "client": { - "shortName": "GeneratorsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.GeneratorsClient" - }, - "method": { - "shortName": "ListGenerators", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Generators.ListGenerators", - "service": { - "shortName": "Generators", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Generators" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Generators_GetGenerator_async", - "title": "Agents getGenerator Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified generator.", - "canonical": true, - "file": "generators.get_generator.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetGenerator", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Generators.GetGenerator", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.Generator", - "client": { - "shortName": "GeneratorsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.GeneratorsClient" - }, - "method": { - "shortName": "GetGenerator", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Generators.GetGenerator", - "service": { - "shortName": "Generators", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Generators" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Generators_CreateGenerator_async", - "title": "Agents createGenerator Sample", - "origin": "API_DEFINITION", - "description": " Creates a generator in the specified agent.", - "canonical": true, - "file": "generators.create_generator.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateGenerator", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Generators.CreateGenerator", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "generator", - "type": ".google.cloud.dialogflow.cx.v3beta1.Generator" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.Generator", - "client": { - "shortName": "GeneratorsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.GeneratorsClient" - }, - "method": { - "shortName": "CreateGenerator", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Generators.CreateGenerator", - "service": { - "shortName": "Generators", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Generators" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Generators_UpdateGenerator_async", - "title": "Agents updateGenerator Sample", - "origin": "API_DEFINITION", - "description": " Update the specified generator.", - "canonical": true, - "file": "generators.update_generator.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateGenerator", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Generators.UpdateGenerator", - "async": true, - "parameters": [ - { - "name": "generator", - "type": ".google.cloud.dialogflow.cx.v3beta1.Generator" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.Generator", - "client": { - "shortName": "GeneratorsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.GeneratorsClient" - }, - "method": { - "shortName": "UpdateGenerator", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Generators.UpdateGenerator", - "service": { - "shortName": "Generators", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Generators" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Generators_DeleteGenerator_async", - "title": "Agents deleteGenerator Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified generators.", - "canonical": true, - "file": "generators.delete_generator.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteGenerator", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Generators.DeleteGenerator", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "GeneratorsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.GeneratorsClient" - }, - "method": { - "shortName": "DeleteGenerator", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Generators.DeleteGenerator", - "service": { - "shortName": "Generators", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Generators" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Intents_ListIntents_async", - "title": "Agents listIntents Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of all intents in the specified agent.", - "canonical": true, - "file": "intents.list_intents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListIntents", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Intents.ListIntents", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "intent_view", - "type": ".google.cloud.dialogflow.cx.v3beta1.IntentView" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse", - "client": { - "shortName": "IntentsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.IntentsClient" - }, - "method": { - "shortName": "ListIntents", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Intents.ListIntents", - "service": { - "shortName": "Intents", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Intents" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Intents_GetIntent_async", - "title": "Agents getIntent Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified intent.", - "canonical": true, - "file": "intents.get_intent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIntent", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Intents.GetIntent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.Intent", - "client": { - "shortName": "IntentsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.IntentsClient" - }, - "method": { - "shortName": "GetIntent", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Intents.GetIntent", - "service": { - "shortName": "Intents", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Intents" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Intents_CreateIntent_async", - "title": "Agents createIntent Sample", - "origin": "API_DEFINITION", - "description": " Creates an intent in the specified agent. Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).", - "canonical": true, - "file": "intents.create_intent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateIntent", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Intents.CreateIntent", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "intent", - "type": ".google.cloud.dialogflow.cx.v3beta1.Intent" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.Intent", - "client": { - "shortName": "IntentsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.IntentsClient" - }, - "method": { - "shortName": "CreateIntent", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Intents.CreateIntent", - "service": { - "shortName": "Intents", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Intents" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Intents_UpdateIntent_async", - "title": "Agents updateIntent Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified intent. Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).", - "canonical": true, - "file": "intents.update_intent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateIntent", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Intents.UpdateIntent", - "async": true, - "parameters": [ - { - "name": "intent", - "type": ".google.cloud.dialogflow.cx.v3beta1.Intent" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.Intent", - "client": { - "shortName": "IntentsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.IntentsClient" - }, - "method": { - "shortName": "UpdateIntent", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Intents.UpdateIntent", - "service": { - "shortName": "Intents", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Intents" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Intents_DeleteIntent_async", - "title": "Agents deleteIntent Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified intent. Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).", - "canonical": true, - "file": "intents.delete_intent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteIntent", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Intents.DeleteIntent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "IntentsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.IntentsClient" - }, - "method": { - "shortName": "DeleteIntent", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Intents.DeleteIntent", - "service": { - "shortName": "Intents", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Intents" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Intents_ImportIntents_async", - "title": "Agents importIntents Sample", - "origin": "API_DEFINITION", - "description": " Imports the specified intents into the agent. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: [ImportIntentsMetadata][google.cloud.dialogflow.cx.v3beta1.ImportIntentsMetadata] - `response`: [ImportIntentsResponse][google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse]", - "canonical": true, - "file": "intents.import_intents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportIntents", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Intents.ImportIntents", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "intents_uri", - "type": "TYPE_STRING" - }, - { - "name": "intents_content", - "type": ".google.cloud.dialogflow.cx.v3beta1.InlineSource" - }, - { - "name": "merge_option", - "type": ".google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest.MergeOption" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "IntentsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.IntentsClient" - }, - "method": { - "shortName": "ImportIntents", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Intents.ImportIntents", - "service": { - "shortName": "Intents", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Intents" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Intents_ExportIntents_async", - "title": "Agents exportIntents Sample", - "origin": "API_DEFINITION", - "description": " Exports the selected intents. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: [ExportIntentsMetadata][google.cloud.dialogflow.cx.v3beta1.ExportIntentsMetadata] - `response`: [ExportIntentsResponse][google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse]", - "canonical": true, - "file": "intents.export_intents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportIntents", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Intents.ExportIntents", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "intents", - "type": "TYPE_STRING[]" - }, - { - "name": "intents_uri", - "type": "TYPE_STRING" - }, - { - "name": "intents_content_inline", - "type": "TYPE_BOOL" - }, - { - "name": "data_format", - "type": ".google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest.DataFormat" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "IntentsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.IntentsClient" - }, - "method": { - "shortName": "ExportIntents", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Intents.ExportIntents", - "service": { - "shortName": "Intents", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Intents" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Pages_ListPages_async", - "title": "Agents listPages Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of all pages in the specified flow.", - "canonical": true, - "file": "pages.list_pages.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 88, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPages", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Pages.ListPages", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.ListPagesResponse", - "client": { - "shortName": "PagesClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.PagesClient" - }, - "method": { - "shortName": "ListPages", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Pages.ListPages", - "service": { - "shortName": "Pages", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Pages" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Pages_GetPage_async", - "title": "Agents getPage Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified page.", - "canonical": true, - "file": "pages.get_page.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPage", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Pages.GetPage", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.Page", - "client": { - "shortName": "PagesClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.PagesClient" - }, - "method": { - "shortName": "GetPage", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Pages.GetPage", - "service": { - "shortName": "Pages", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Pages" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Pages_CreatePage_async", - "title": "Agents createPage Sample", - "origin": "API_DEFINITION", - "description": " Creates a page in the specified flow.", - "canonical": true, - "file": "pages.create_page.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreatePage", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Pages.CreatePage", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page", - "type": ".google.cloud.dialogflow.cx.v3beta1.Page" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.Page", - "client": { - "shortName": "PagesClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.PagesClient" - }, - "method": { - "shortName": "CreatePage", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Pages.CreatePage", - "service": { - "shortName": "Pages", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Pages" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Pages_UpdatePage_async", - "title": "Agents updatePage Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified page.", - "canonical": true, - "file": "pages.update_page.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdatePage", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Pages.UpdatePage", - "async": true, - "parameters": [ - { - "name": "page", - "type": ".google.cloud.dialogflow.cx.v3beta1.Page" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.Page", - "client": { - "shortName": "PagesClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.PagesClient" - }, - "method": { - "shortName": "UpdatePage", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Pages.UpdatePage", - "service": { - "shortName": "Pages", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Pages" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Pages_DeletePage_async", - "title": "Agents deletePage Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified page.", - "canonical": true, - "file": "pages.delete_page.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePage", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Pages.DeletePage", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "PagesClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.PagesClient" - }, - "method": { - "shortName": "DeletePage", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Pages.DeletePage", - "service": { - "shortName": "Pages", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Pages" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Playbooks_CreatePlaybook_async", - "title": "Agents createPlaybook Sample", - "origin": "API_DEFINITION", - "description": " Creates a playbook in a specified agent.", - "canonical": true, - "file": "playbooks.create_playbook.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreatePlaybook", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Playbooks.CreatePlaybook", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "playbook", - "type": ".google.cloud.dialogflow.cx.v3beta1.Playbook" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.Playbook", - "client": { - "shortName": "PlaybooksClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.PlaybooksClient" - }, - "method": { - "shortName": "CreatePlaybook", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Playbooks.CreatePlaybook", - "service": { - "shortName": "Playbooks", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Playbooks" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Playbooks_DeletePlaybook_async", - "title": "Agents deletePlaybook Sample", - "origin": "API_DEFINITION", - "description": " Deletes a specified playbook.", - "canonical": true, - "file": "playbooks.delete_playbook.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePlaybook", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Playbooks.DeletePlaybook", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "PlaybooksClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.PlaybooksClient" - }, - "method": { - "shortName": "DeletePlaybook", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Playbooks.DeletePlaybook", - "service": { - "shortName": "Playbooks", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Playbooks" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Playbooks_ListPlaybooks_async", - "title": "Agents listPlaybooks Sample", - "origin": "API_DEFINITION", - "description": " Returns a list of playbooks in the specified agent.", - "canonical": true, - "file": "playbooks.list_playbooks.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPlaybooks", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Playbooks.ListPlaybooks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.ListPlaybooksResponse", - "client": { - "shortName": "PlaybooksClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.PlaybooksClient" - }, - "method": { - "shortName": "ListPlaybooks", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Playbooks.ListPlaybooks", - "service": { - "shortName": "Playbooks", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Playbooks" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Playbooks_GetPlaybook_async", - "title": "Agents getPlaybook Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified Playbook.", - "canonical": true, - "file": "playbooks.get_playbook.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPlaybook", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Playbooks.GetPlaybook", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.Playbook", - "client": { - "shortName": "PlaybooksClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.PlaybooksClient" - }, - "method": { - "shortName": "GetPlaybook", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Playbooks.GetPlaybook", - "service": { - "shortName": "Playbooks", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Playbooks" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Playbooks_ExportPlaybook_async", - "title": "Agents exportPlaybook Sample", - "origin": "API_DEFINITION", - "description": " Exports the specified playbook to a binary file. Note that resources (e.g. examples, tools) that the playbook references will also be exported.", - "canonical": true, - "file": "playbooks.export_playbook.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportPlaybook", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Playbooks.ExportPlaybook", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "playbook_uri", - "type": "TYPE_STRING" - }, - { - "name": "data_format", - "type": ".google.cloud.dialogflow.cx.v3beta1.ExportPlaybookRequest.DataFormat" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "PlaybooksClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.PlaybooksClient" - }, - "method": { - "shortName": "ExportPlaybook", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Playbooks.ExportPlaybook", - "service": { - "shortName": "Playbooks", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Playbooks" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Playbooks_ImportPlaybook_async", - "title": "Agents importPlaybook Sample", - "origin": "API_DEFINITION", - "description": " Imports the specified playbook to the specified agent from a binary file.", - "canonical": true, - "file": "playbooks.import_playbook.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportPlaybook", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Playbooks.ImportPlaybook", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "playbook_uri", - "type": "TYPE_STRING" - }, - { - "name": "playbook_content", - "type": "TYPE_BYTES" - }, - { - "name": "import_strategy", - "type": ".google.cloud.dialogflow.cx.v3beta1.PlaybookImportStrategy" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "PlaybooksClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.PlaybooksClient" - }, - "method": { - "shortName": "ImportPlaybook", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Playbooks.ImportPlaybook", - "service": { - "shortName": "Playbooks", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Playbooks" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Playbooks_UpdatePlaybook_async", - "title": "Agents updatePlaybook Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified Playbook.", - "canonical": true, - "file": "playbooks.update_playbook.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdatePlaybook", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Playbooks.UpdatePlaybook", - "async": true, - "parameters": [ - { - "name": "playbook", - "type": ".google.cloud.dialogflow.cx.v3beta1.Playbook" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.Playbook", - "client": { - "shortName": "PlaybooksClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.PlaybooksClient" - }, - "method": { - "shortName": "UpdatePlaybook", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Playbooks.UpdatePlaybook", - "service": { - "shortName": "Playbooks", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Playbooks" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Playbooks_CreatePlaybookVersion_async", - "title": "Agents createPlaybookVersion Sample", - "origin": "API_DEFINITION", - "description": " Creates a version for the specified Playbook.", - "canonical": true, - "file": "playbooks.create_playbook_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreatePlaybookVersion", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Playbooks.CreatePlaybookVersion", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "playbook_version", - "type": ".google.cloud.dialogflow.cx.v3beta1.PlaybookVersion" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.PlaybookVersion", - "client": { - "shortName": "PlaybooksClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.PlaybooksClient" - }, - "method": { - "shortName": "CreatePlaybookVersion", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Playbooks.CreatePlaybookVersion", - "service": { - "shortName": "Playbooks", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Playbooks" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Playbooks_GetPlaybookVersion_async", - "title": "Agents getPlaybookVersion Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified version of the Playbook.", - "canonical": true, - "file": "playbooks.get_playbook_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPlaybookVersion", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Playbooks.GetPlaybookVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.PlaybookVersion", - "client": { - "shortName": "PlaybooksClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.PlaybooksClient" - }, - "method": { - "shortName": "GetPlaybookVersion", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Playbooks.GetPlaybookVersion", - "service": { - "shortName": "Playbooks", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Playbooks" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Playbooks_RestorePlaybookVersion_async", - "title": "Agents restorePlaybookVersion Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified version of the Playbook and stores it as the current playbook draft, returning the playbook with resources updated.", - "canonical": true, - "file": "playbooks.restore_playbook_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RestorePlaybookVersion", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Playbooks.RestorePlaybookVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.RestorePlaybookVersionResponse", - "client": { - "shortName": "PlaybooksClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.PlaybooksClient" - }, - "method": { - "shortName": "RestorePlaybookVersion", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Playbooks.RestorePlaybookVersion", - "service": { - "shortName": "Playbooks", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Playbooks" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Playbooks_ListPlaybookVersions_async", - "title": "Agents listPlaybookVersions Sample", - "origin": "API_DEFINITION", - "description": " Lists versions for the specified Playbook.", - "canonical": true, - "file": "playbooks.list_playbook_versions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPlaybookVersions", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Playbooks.ListPlaybookVersions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.ListPlaybookVersionsResponse", - "client": { - "shortName": "PlaybooksClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.PlaybooksClient" - }, - "method": { - "shortName": "ListPlaybookVersions", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Playbooks.ListPlaybookVersions", - "service": { - "shortName": "Playbooks", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Playbooks" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Playbooks_DeletePlaybookVersion_async", - "title": "Agents deletePlaybookVersion Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified version of the Playbook.", - "canonical": true, - "file": "playbooks.delete_playbook_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePlaybookVersion", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Playbooks.DeletePlaybookVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "PlaybooksClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.PlaybooksClient" - }, - "method": { - "shortName": "DeletePlaybookVersion", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Playbooks.DeletePlaybookVersion", - "service": { - "shortName": "Playbooks", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Playbooks" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_SecuritySettingsService_CreateSecuritySettings_async", - "title": "Agents createSecuritySettings Sample", - "origin": "API_DEFINITION", - "description": " Create security settings in the specified location.", - "canonical": true, - "file": "security_settings_service.create_security_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSecuritySettings", - "fullName": "google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService.CreateSecuritySettings", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "security_settings", - "type": ".google.cloud.dialogflow.cx.v3beta1.SecuritySettings" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.SecuritySettings", - "client": { - "shortName": "SecuritySettingsServiceClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.SecuritySettingsServiceClient" - }, - "method": { - "shortName": "CreateSecuritySettings", - "fullName": "google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService.CreateSecuritySettings", - "service": { - "shortName": "SecuritySettingsService", - "fullName": "google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_SecuritySettingsService_GetSecuritySettings_async", - "title": "Agents getSecuritySettings Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified [SecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettings]. The returned settings may be stale by up to 1 minute.", - "canonical": true, - "file": "security_settings_service.get_security_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSecuritySettings", - "fullName": "google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService.GetSecuritySettings", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.SecuritySettings", - "client": { - "shortName": "SecuritySettingsServiceClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.SecuritySettingsServiceClient" - }, - "method": { - "shortName": "GetSecuritySettings", - "fullName": "google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService.GetSecuritySettings", - "service": { - "shortName": "SecuritySettingsService", - "fullName": "google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_SecuritySettingsService_UpdateSecuritySettings_async", - "title": "Agents updateSecuritySettings Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified [SecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettings].", - "canonical": true, - "file": "security_settings_service.update_security_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSecuritySettings", - "fullName": "google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService.UpdateSecuritySettings", - "async": true, - "parameters": [ - { - "name": "security_settings", - "type": ".google.cloud.dialogflow.cx.v3beta1.SecuritySettings" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.SecuritySettings", - "client": { - "shortName": "SecuritySettingsServiceClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.SecuritySettingsServiceClient" - }, - "method": { - "shortName": "UpdateSecuritySettings", - "fullName": "google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService.UpdateSecuritySettings", - "service": { - "shortName": "SecuritySettingsService", - "fullName": "google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_SecuritySettingsService_ListSecuritySettings_async", - "title": "Agents listSecuritySettings Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of all security settings in the specified location.", - "canonical": true, - "file": "security_settings_service.list_security_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSecuritySettings", - "fullName": "google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService.ListSecuritySettings", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse", - "client": { - "shortName": "SecuritySettingsServiceClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.SecuritySettingsServiceClient" - }, - "method": { - "shortName": "ListSecuritySettings", - "fullName": "google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService.ListSecuritySettings", - "service": { - "shortName": "SecuritySettingsService", - "fullName": "google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_SecuritySettingsService_DeleteSecuritySettings_async", - "title": "Agents deleteSecuritySettings Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified [SecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettings].", - "canonical": true, - "file": "security_settings_service.delete_security_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSecuritySettings", - "fullName": "google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService.DeleteSecuritySettings", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "SecuritySettingsServiceClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.SecuritySettingsServiceClient" - }, - "method": { - "shortName": "DeleteSecuritySettings", - "fullName": "google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService.DeleteSecuritySettings", - "service": { - "shortName": "SecuritySettingsService", - "fullName": "google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_SessionEntityTypes_ListSessionEntityTypes_async", - "title": "Agents listSessionEntityTypes Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of all session entity types in the specified session.", - "canonical": true, - "file": "session_entity_types.list_session_entity_types.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSessionEntityTypes", - "fullName": "google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.ListSessionEntityTypes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse", - "client": { - "shortName": "SessionEntityTypesClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.SessionEntityTypesClient" - }, - "method": { - "shortName": "ListSessionEntityTypes", - "fullName": "google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.ListSessionEntityTypes", - "service": { - "shortName": "SessionEntityTypes", - "fullName": "google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_SessionEntityTypes_GetSessionEntityType_async", - "title": "Agents getSessionEntityType Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified session entity type.", - "canonical": true, - "file": "session_entity_types.get_session_entity_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSessionEntityType", - "fullName": "google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.GetSessionEntityType", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.SessionEntityType", - "client": { - "shortName": "SessionEntityTypesClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.SessionEntityTypesClient" - }, - "method": { - "shortName": "GetSessionEntityType", - "fullName": "google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.GetSessionEntityType", - "service": { - "shortName": "SessionEntityTypes", - "fullName": "google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_SessionEntityTypes_CreateSessionEntityType_async", - "title": "Agents createSessionEntityType Sample", - "origin": "API_DEFINITION", - "description": " Creates a session entity type.", - "canonical": true, - "file": "session_entity_types.create_session_entity_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSessionEntityType", - "fullName": "google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.CreateSessionEntityType", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "session_entity_type", - "type": ".google.cloud.dialogflow.cx.v3beta1.SessionEntityType" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.SessionEntityType", - "client": { - "shortName": "SessionEntityTypesClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.SessionEntityTypesClient" - }, - "method": { - "shortName": "CreateSessionEntityType", - "fullName": "google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.CreateSessionEntityType", - "service": { - "shortName": "SessionEntityTypes", - "fullName": "google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_SessionEntityTypes_UpdateSessionEntityType_async", - "title": "Agents updateSessionEntityType Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified session entity type.", - "canonical": true, - "file": "session_entity_types.update_session_entity_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSessionEntityType", - "fullName": "google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.UpdateSessionEntityType", - "async": true, - "parameters": [ - { - "name": "session_entity_type", - "type": ".google.cloud.dialogflow.cx.v3beta1.SessionEntityType" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.SessionEntityType", - "client": { - "shortName": "SessionEntityTypesClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.SessionEntityTypesClient" - }, - "method": { - "shortName": "UpdateSessionEntityType", - "fullName": "google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.UpdateSessionEntityType", - "service": { - "shortName": "SessionEntityTypes", - "fullName": "google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_SessionEntityTypes_DeleteSessionEntityType_async", - "title": "Agents deleteSessionEntityType Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified session entity type.", - "canonical": true, - "file": "session_entity_types.delete_session_entity_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSessionEntityType", - "fullName": "google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.DeleteSessionEntityType", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "SessionEntityTypesClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.SessionEntityTypesClient" - }, - "method": { - "shortName": "DeleteSessionEntityType", - "fullName": "google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes.DeleteSessionEntityType", - "service": { - "shortName": "SessionEntityTypes", - "fullName": "google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Sessions_DetectIntent_async", - "title": "Agents detectIntent Sample", - "origin": "API_DEFINITION", - "description": " Processes a natural language query and returns structured, actionable data as a result. This method is not idempotent, because it may cause session entity types to be updated, which in turn might affect results of future queries. Note: Always use agent versions for production traffic. See [Versions and environments](https://cloud.google.com/dialogflow/cx/docs/concept/version).", - "canonical": true, - "file": "sessions.detect_intent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DetectIntent", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Sessions.DetectIntent", - "async": true, - "parameters": [ - { - "name": "session", - "type": "TYPE_STRING" - }, - { - "name": "query_params", - "type": ".google.cloud.dialogflow.cx.v3beta1.QueryParameters" - }, - { - "name": "query_input", - "type": ".google.cloud.dialogflow.cx.v3beta1.QueryInput" - }, - { - "name": "output_audio_config", - "type": ".google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig" - }, - { - "name": "response_view", - "type": ".google.cloud.dialogflow.cx.v3beta1.DetectIntentResponseView" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse", - "client": { - "shortName": "SessionsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.SessionsClient" - }, - "method": { - "shortName": "DetectIntent", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Sessions.DetectIntent", - "service": { - "shortName": "Sessions", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Sessions" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Sessions_ServerStreamingDetectIntent_async", - "title": "Agents serverStreamingDetectIntent Sample", - "origin": "API_DEFINITION", - "description": " Processes a natural language query and returns structured, actionable data as a result through server-side streaming. Server-side streaming allows Dialogflow to send [partial responses](https://cloud.google.com/dialogflow/cx/docs/concept/fulfillment#partial-response) earlier in a single request.", - "canonical": true, - "file": "sessions.server_streaming_detect_intent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 88, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ServerStreamingDetectIntent", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Sessions.ServerStreamingDetectIntent", - "async": true, - "parameters": [ - { - "name": "session", - "type": "TYPE_STRING" - }, - { - "name": "query_params", - "type": ".google.cloud.dialogflow.cx.v3beta1.QueryParameters" - }, - { - "name": "query_input", - "type": ".google.cloud.dialogflow.cx.v3beta1.QueryInput" - }, - { - "name": "output_audio_config", - "type": ".google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig" - }, - { - "name": "response_view", - "type": ".google.cloud.dialogflow.cx.v3beta1.DetectIntentResponseView" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse", - "client": { - "shortName": "SessionsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.SessionsClient" - }, - "method": { - "shortName": "ServerStreamingDetectIntent", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Sessions.ServerStreamingDetectIntent", - "service": { - "shortName": "Sessions", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Sessions" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Sessions_StreamingDetectIntent_async", - "title": "Agents streamingDetectIntent Sample", - "origin": "API_DEFINITION", - "description": " Processes a natural language query in audio format in a streaming fashion and returns structured, actionable data as a result. This method is only available via the gRPC API (not REST). Note: Always use agent versions for production traffic. See [Versions and environments](https://cloud.google.com/dialogflow/cx/docs/concept/version).", - "canonical": true, - "file": "sessions.streaming_detect_intent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 101, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StreamingDetectIntent", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Sessions.StreamingDetectIntent", - "async": true, - "parameters": [ - { - "name": "session", - "type": "TYPE_STRING" - }, - { - "name": "query_params", - "type": ".google.cloud.dialogflow.cx.v3beta1.QueryParameters" - }, - { - "name": "query_input", - "type": ".google.cloud.dialogflow.cx.v3beta1.QueryInput" - }, - { - "name": "output_audio_config", - "type": ".google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig" - }, - { - "name": "enable_partial_response", - "type": "TYPE_BOOL" - }, - { - "name": "enable_debugging_info", - "type": "TYPE_BOOL" - }, - { - "name": "response_view", - "type": ".google.cloud.dialogflow.cx.v3beta1.DetectIntentResponseView" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse", - "client": { - "shortName": "SessionsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.SessionsClient" - }, - "method": { - "shortName": "StreamingDetectIntent", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Sessions.StreamingDetectIntent", - "service": { - "shortName": "Sessions", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Sessions" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Sessions_MatchIntent_async", - "title": "Agents matchIntent Sample", - "origin": "API_DEFINITION", - "description": " Returns preliminary intent match results, doesn't change the session status.", - "canonical": true, - "file": "sessions.match_intent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "MatchIntent", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Sessions.MatchIntent", - "async": true, - "parameters": [ - { - "name": "session", - "type": "TYPE_STRING" - }, - { - "name": "query_params", - "type": ".google.cloud.dialogflow.cx.v3beta1.QueryParameters" - }, - { - "name": "query_input", - "type": ".google.cloud.dialogflow.cx.v3beta1.QueryInput" - }, - { - "name": "persist_parameter_changes", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse", - "client": { - "shortName": "SessionsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.SessionsClient" - }, - "method": { - "shortName": "MatchIntent", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Sessions.MatchIntent", - "service": { - "shortName": "Sessions", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Sessions" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Sessions_FulfillIntent_async", - "title": "Agents fulfillIntent Sample", - "origin": "API_DEFINITION", - "description": " Fulfills a matched intent returned by [MatchIntent][google.cloud.dialogflow.cx.v3beta1.Sessions.MatchIntent]. Must be called after [MatchIntent][google.cloud.dialogflow.cx.v3beta1.Sessions.MatchIntent], with input from [MatchIntentResponse][google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse]. Otherwise, the behavior is undefined.", - "canonical": true, - "file": "sessions.fulfill_intent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FulfillIntent", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Sessions.FulfillIntent", - "async": true, - "parameters": [ - { - "name": "match_intent_request", - "type": ".google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest" - }, - { - "name": "match", - "type": ".google.cloud.dialogflow.cx.v3beta1.Match" - }, - { - "name": "output_audio_config", - "type": ".google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse", - "client": { - "shortName": "SessionsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.SessionsClient" - }, - "method": { - "shortName": "FulfillIntent", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Sessions.FulfillIntent", - "service": { - "shortName": "Sessions", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Sessions" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Sessions_SubmitAnswerFeedback_async", - "title": "Agents submitAnswerFeedback Sample", - "origin": "API_DEFINITION", - "description": " Updates the feedback received from the user for a single turn of the bot response.", - "canonical": true, - "file": "sessions.submit_answer_feedback.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SubmitAnswerFeedback", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Sessions.SubmitAnswerFeedback", - "async": true, - "parameters": [ - { - "name": "session", - "type": "TYPE_STRING" - }, - { - "name": "response_id", - "type": "TYPE_STRING" - }, - { - "name": "answer_feedback", - "type": ".google.cloud.dialogflow.cx.v3beta1.AnswerFeedback" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.AnswerFeedback", - "client": { - "shortName": "SessionsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.SessionsClient" - }, - "method": { - "shortName": "SubmitAnswerFeedback", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Sessions.SubmitAnswerFeedback", - "service": { - "shortName": "Sessions", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Sessions" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_TestCases_ListTestCases_async", - "title": "Agents listTestCases Sample", - "origin": "API_DEFINITION", - "description": " Fetches a list of test cases for a given agent.", - "canonical": true, - "file": "test_cases.list_test_cases.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTestCases", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TestCases.ListTestCases", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.TestCaseView" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse", - "client": { - "shortName": "TestCasesClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TestCasesClient" - }, - "method": { - "shortName": "ListTestCases", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TestCases.ListTestCases", - "service": { - "shortName": "TestCases", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TestCases" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_TestCases_BatchDeleteTestCases_async", - "title": "Agents batchDeleteTestCases Sample", - "origin": "API_DEFINITION", - "description": " Batch deletes test cases.", - "canonical": true, - "file": "test_cases.batch_delete_test_cases.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchDeleteTestCases", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TestCases.BatchDeleteTestCases", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "names", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "TestCasesClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TestCasesClient" - }, - "method": { - "shortName": "BatchDeleteTestCases", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TestCases.BatchDeleteTestCases", - "service": { - "shortName": "TestCases", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TestCases" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_TestCases_GetTestCase_async", - "title": "Agents getTestCase Sample", - "origin": "API_DEFINITION", - "description": " Gets a test case.", - "canonical": true, - "file": "test_cases.get_test_case.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTestCase", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TestCases.GetTestCase", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.TestCase", - "client": { - "shortName": "TestCasesClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TestCasesClient" - }, - "method": { - "shortName": "GetTestCase", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TestCases.GetTestCase", - "service": { - "shortName": "TestCases", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TestCases" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_TestCases_CreateTestCase_async", - "title": "Agents createTestCase Sample", - "origin": "API_DEFINITION", - "description": " Creates a test case for the given agent.", - "canonical": true, - "file": "test_cases.create_test_case.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTestCase", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TestCases.CreateTestCase", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "test_case", - "type": ".google.cloud.dialogflow.cx.v3beta1.TestCase" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.TestCase", - "client": { - "shortName": "TestCasesClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TestCasesClient" - }, - "method": { - "shortName": "CreateTestCase", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TestCases.CreateTestCase", - "service": { - "shortName": "TestCases", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TestCases" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_TestCases_UpdateTestCase_async", - "title": "Agents updateTestCase Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified test case.", - "canonical": true, - "file": "test_cases.update_test_case.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTestCase", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TestCases.UpdateTestCase", - "async": true, - "parameters": [ - { - "name": "test_case", - "type": ".google.cloud.dialogflow.cx.v3beta1.TestCase" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.TestCase", - "client": { - "shortName": "TestCasesClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TestCasesClient" - }, - "method": { - "shortName": "UpdateTestCase", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TestCases.UpdateTestCase", - "service": { - "shortName": "TestCases", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TestCases" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_TestCases_RunTestCase_async", - "title": "Agents runTestCase Sample", - "origin": "API_DEFINITION", - "description": " Kicks off a test case run. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: [RunTestCaseMetadata][google.cloud.dialogflow.cx.v3beta1.RunTestCaseMetadata] - `response`: [RunTestCaseResponse][google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse]", - "canonical": true, - "file": "test_cases.run_test_case.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RunTestCase", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TestCases.RunTestCase", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "environment", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TestCasesClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TestCasesClient" - }, - "method": { - "shortName": "RunTestCase", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TestCases.RunTestCase", - "service": { - "shortName": "TestCases", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TestCases" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_TestCases_BatchRunTestCases_async", - "title": "Agents batchRunTestCases Sample", - "origin": "API_DEFINITION", - "description": " Kicks off a batch run of test cases. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: [BatchRunTestCasesMetadata][google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata] - `response`: [BatchRunTestCasesResponse][google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse]", - "canonical": true, - "file": "test_cases.batch_run_test_cases.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchRunTestCases", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TestCases.BatchRunTestCases", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "environment", - "type": "TYPE_STRING" - }, - { - "name": "test_cases", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TestCasesClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TestCasesClient" - }, - "method": { - "shortName": "BatchRunTestCases", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TestCases.BatchRunTestCases", - "service": { - "shortName": "TestCases", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TestCases" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_TestCases_CalculateCoverage_async", - "title": "Agents calculateCoverage Sample", - "origin": "API_DEFINITION", - "description": " Calculates the test coverage for an agent.", - "canonical": true, - "file": "test_cases.calculate_coverage.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CalculateCoverage", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TestCases.CalculateCoverage", - "async": true, - "parameters": [ - { - "name": "agent", - "type": "TYPE_STRING" - }, - { - "name": "type", - "type": ".google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.CoverageType" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse", - "client": { - "shortName": "TestCasesClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TestCasesClient" - }, - "method": { - "shortName": "CalculateCoverage", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TestCases.CalculateCoverage", - "service": { - "shortName": "TestCases", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TestCases" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_TestCases_ImportTestCases_async", - "title": "Agents importTestCases Sample", - "origin": "API_DEFINITION", - "description": " Imports the test cases from a Cloud Storage bucket or a local file. It always creates new test cases and won't overwrite any existing ones. The provided ID in the imported test case is neglected. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: [ImportTestCasesMetadata][google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata] - `response`: [ImportTestCasesResponse][google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse]", - "canonical": true, - "file": "test_cases.import_test_cases.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportTestCases", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TestCases.ImportTestCases", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "gcs_uri", - "type": "TYPE_STRING" - }, - { - "name": "content", - "type": "TYPE_BYTES" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TestCasesClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TestCasesClient" - }, - "method": { - "shortName": "ImportTestCases", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TestCases.ImportTestCases", - "service": { - "shortName": "TestCases", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TestCases" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_TestCases_ExportTestCases_async", - "title": "Agents exportTestCases Sample", - "origin": "API_DEFINITION", - "description": " Exports the test cases under the agent to a Cloud Storage bucket or a local file. Filter can be applied to export a subset of test cases. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: [ExportTestCasesMetadata][google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata] - `response`: [ExportTestCasesResponse][google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse]", - "canonical": true, - "file": "test_cases.export_test_cases.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportTestCases", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TestCases.ExportTestCases", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "gcs_uri", - "type": "TYPE_STRING" - }, - { - "name": "data_format", - "type": ".google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.DataFormat" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TestCasesClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TestCasesClient" - }, - "method": { - "shortName": "ExportTestCases", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TestCases.ExportTestCases", - "service": { - "shortName": "TestCases", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TestCases" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_TestCases_ListTestCaseResults_async", - "title": "Agents listTestCaseResults Sample", - "origin": "API_DEFINITION", - "description": " Fetches the list of run results for the given test case. A maximum of 100 results are kept for each test case.", - "canonical": true, - "file": "test_cases.list_test_case_results.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 90, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTestCaseResults", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TestCases.ListTestCaseResults", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse", - "client": { - "shortName": "TestCasesClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TestCasesClient" - }, - "method": { - "shortName": "ListTestCaseResults", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TestCases.ListTestCaseResults", - "service": { - "shortName": "TestCases", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TestCases" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_TestCases_GetTestCaseResult_async", - "title": "Agents getTestCaseResult Sample", - "origin": "API_DEFINITION", - "description": " Gets a test case result.", - "canonical": true, - "file": "test_cases.get_test_case_result.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTestCaseResult", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TestCases.GetTestCaseResult", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.TestCaseResult", - "client": { - "shortName": "TestCasesClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TestCasesClient" - }, - "method": { - "shortName": "GetTestCaseResult", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TestCases.GetTestCaseResult", - "service": { - "shortName": "TestCases", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TestCases" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Tools_CreateTool_async", - "title": "Agents createTool Sample", - "origin": "API_DEFINITION", - "description": " Creates a [Tool][google.cloud.dialogflow.cx.v3beta1.Tool] in the specified agent.", - "canonical": true, - "file": "tools.create_tool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTool", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Tools.CreateTool", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "tool", - "type": ".google.cloud.dialogflow.cx.v3beta1.Tool" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.Tool", - "client": { - "shortName": "ToolsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.ToolsClient" - }, - "method": { - "shortName": "CreateTool", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Tools.CreateTool", - "service": { - "shortName": "Tools", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Tools" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Tools_ListTools_async", - "title": "Agents listTools Sample", - "origin": "API_DEFINITION", - "description": " Returns a list of [Tools][google.cloud.dialogflow.cx.v3beta1.Tool] in the specified agent.", - "canonical": true, - "file": "tools.list_tools.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTools", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Tools.ListTools", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.ListToolsResponse", - "client": { - "shortName": "ToolsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.ToolsClient" - }, - "method": { - "shortName": "ListTools", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Tools.ListTools", - "service": { - "shortName": "Tools", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Tools" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Tools_ExportTools_async", - "title": "Agents exportTools Sample", - "origin": "API_DEFINITION", - "description": " Exports the selected tools.", - "canonical": true, - "file": "tools.export_tools.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportTools", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Tools.ExportTools", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "tools", - "type": "TYPE_STRING[]" - }, - { - "name": "tools_uri", - "type": "TYPE_STRING" - }, - { - "name": "tools_content_inline", - "type": "TYPE_BOOL" - }, - { - "name": "data_format", - "type": ".google.cloud.dialogflow.cx.v3beta1.ExportToolsRequest.DataFormat" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ToolsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.ToolsClient" - }, - "method": { - "shortName": "ExportTools", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Tools.ExportTools", - "service": { - "shortName": "Tools", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Tools" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Tools_GetTool_async", - "title": "Agents getTool Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified [Tool][google.cloud.dialogflow.cx.v3beta1.Tool].", - "canonical": true, - "file": "tools.get_tool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTool", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Tools.GetTool", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.Tool", - "client": { - "shortName": "ToolsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.ToolsClient" - }, - "method": { - "shortName": "GetTool", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Tools.GetTool", - "service": { - "shortName": "Tools", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Tools" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Tools_UpdateTool_async", - "title": "Agents updateTool Sample", - "origin": "API_DEFINITION", - "description": " Update the specified [Tool][google.cloud.dialogflow.cx.v3beta1.Tool].", - "canonical": true, - "file": "tools.update_tool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTool", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Tools.UpdateTool", - "async": true, - "parameters": [ - { - "name": "tool", - "type": ".google.cloud.dialogflow.cx.v3beta1.Tool" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.Tool", - "client": { - "shortName": "ToolsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.ToolsClient" - }, - "method": { - "shortName": "UpdateTool", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Tools.UpdateTool", - "service": { - "shortName": "Tools", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Tools" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Tools_DeleteTool_async", - "title": "Agents deleteTool Sample", - "origin": "API_DEFINITION", - "description": " Deletes a specified [Tool][google.cloud.dialogflow.cx.v3beta1.Tool].", - "canonical": true, - "file": "tools.delete_tool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTool", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Tools.DeleteTool", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ToolsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.ToolsClient" - }, - "method": { - "shortName": "DeleteTool", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Tools.DeleteTool", - "service": { - "shortName": "Tools", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Tools" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Tools_ListToolVersions_async", - "title": "Agents listToolVersions Sample", - "origin": "API_DEFINITION", - "description": " List versions of the specified [Tool][google.cloud.dialogflow.cx.v3beta1.Tool].", - "canonical": true, - "file": "tools.list_tool_versions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListToolVersions", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Tools.ListToolVersions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.ListToolVersionsResponse", - "client": { - "shortName": "ToolsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.ToolsClient" - }, - "method": { - "shortName": "ListToolVersions", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Tools.ListToolVersions", - "service": { - "shortName": "Tools", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Tools" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Tools_CreateToolVersion_async", - "title": "Agents createToolVersion Sample", - "origin": "API_DEFINITION", - "description": " Creates a version for the specified [Tool][google.cloud.dialogflow.cx.v3beta1.Tool].", - "canonical": true, - "file": "tools.create_tool_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateToolVersion", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Tools.CreateToolVersion", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "tool_version", - "type": ".google.cloud.dialogflow.cx.v3beta1.ToolVersion" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.ToolVersion", - "client": { - "shortName": "ToolsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.ToolsClient" - }, - "method": { - "shortName": "CreateToolVersion", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Tools.CreateToolVersion", - "service": { - "shortName": "Tools", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Tools" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Tools_GetToolVersion_async", - "title": "Agents getToolVersion Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified version of the [Tool][google.cloud.dialogflow.cx.v3beta1.Tool].", - "canonical": true, - "file": "tools.get_tool_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetToolVersion", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Tools.GetToolVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.ToolVersion", - "client": { - "shortName": "ToolsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.ToolsClient" - }, - "method": { - "shortName": "GetToolVersion", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Tools.GetToolVersion", - "service": { - "shortName": "Tools", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Tools" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Tools_DeleteToolVersion_async", - "title": "Agents deleteToolVersion Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified version of the [Tool][google.cloud.dialogflow.cx.v3beta1.Tool].", - "canonical": true, - "file": "tools.delete_tool_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteToolVersion", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Tools.DeleteToolVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ToolsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.ToolsClient" - }, - "method": { - "shortName": "DeleteToolVersion", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Tools.DeleteToolVersion", - "service": { - "shortName": "Tools", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Tools" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Tools_RestoreToolVersion_async", - "title": "Agents restoreToolVersion Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified version of the Tool and stores it as the current tool draft, returning the tool with resources updated.", - "canonical": true, - "file": "tools.restore_tool_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RestoreToolVersion", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Tools.RestoreToolVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.RestoreToolVersionResponse", - "client": { - "shortName": "ToolsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.ToolsClient" - }, - "method": { - "shortName": "RestoreToolVersion", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Tools.RestoreToolVersion", - "service": { - "shortName": "Tools", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Tools" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_TransitionRouteGroups_ListTransitionRouteGroups_async", - "title": "Agents listTransitionRouteGroups Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of all transition route groups in the specified flow.", - "canonical": true, - "file": "transition_route_groups.list_transition_route_groups.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTransitionRouteGroups", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.ListTransitionRouteGroups", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse", - "client": { - "shortName": "TransitionRouteGroupsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupsClient" - }, - "method": { - "shortName": "ListTransitionRouteGroups", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.ListTransitionRouteGroups", - "service": { - "shortName": "TransitionRouteGroups", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_TransitionRouteGroups_GetTransitionRouteGroup_async", - "title": "Agents getTransitionRouteGroup Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified [TransitionRouteGroup][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup].", - "canonical": true, - "file": "transition_route_groups.get_transition_route_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTransitionRouteGroup", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.GetTransitionRouteGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup", - "client": { - "shortName": "TransitionRouteGroupsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupsClient" - }, - "method": { - "shortName": "GetTransitionRouteGroup", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.GetTransitionRouteGroup", - "service": { - "shortName": "TransitionRouteGroups", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_TransitionRouteGroups_CreateTransitionRouteGroup_async", - "title": "Agents createTransitionRouteGroup Sample", - "origin": "API_DEFINITION", - "description": " Creates an [TransitionRouteGroup][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup] in the specified flow. Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).", - "canonical": true, - "file": "transition_route_groups.create_transition_route_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTransitionRouteGroup", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.CreateTransitionRouteGroup", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "transition_route_group", - "type": ".google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup", - "client": { - "shortName": "TransitionRouteGroupsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupsClient" - }, - "method": { - "shortName": "CreateTransitionRouteGroup", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.CreateTransitionRouteGroup", - "service": { - "shortName": "TransitionRouteGroups", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_TransitionRouteGroups_UpdateTransitionRouteGroup_async", - "title": "Agents updateTransitionRouteGroup Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified [TransitionRouteGroup][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup]. Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).", - "canonical": true, - "file": "transition_route_groups.update_transition_route_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTransitionRouteGroup", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.UpdateTransitionRouteGroup", - "async": true, - "parameters": [ - { - "name": "transition_route_group", - "type": ".google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup", - "client": { - "shortName": "TransitionRouteGroupsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupsClient" - }, - "method": { - "shortName": "UpdateTransitionRouteGroup", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.UpdateTransitionRouteGroup", - "service": { - "shortName": "TransitionRouteGroups", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_TransitionRouteGroups_DeleteTransitionRouteGroup_async", - "title": "Agents deleteTransitionRouteGroup Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified [TransitionRouteGroup][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup]. Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).", - "canonical": true, - "file": "transition_route_groups.delete_transition_route_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTransitionRouteGroup", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.DeleteTransitionRouteGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "TransitionRouteGroupsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupsClient" - }, - "method": { - "shortName": "DeleteTransitionRouteGroup", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.DeleteTransitionRouteGroup", - "service": { - "shortName": "TransitionRouteGroups", - "fullName": "google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Versions_ListVersions_async", - "title": "Agents listVersions Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of all versions in the specified [Flow][google.cloud.dialogflow.cx.v3beta1.Flow].", - "canonical": true, - "file": "versions.list_versions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListVersions", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Versions.ListVersions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse", - "client": { - "shortName": "VersionsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.VersionsClient" - }, - "method": { - "shortName": "ListVersions", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Versions.ListVersions", - "service": { - "shortName": "Versions", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Versions" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Versions_GetVersion_async", - "title": "Agents getVersion Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified [Version][google.cloud.dialogflow.cx.v3beta1.Version].", - "canonical": true, - "file": "versions.get_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetVersion", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Versions.GetVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.Version", - "client": { - "shortName": "VersionsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.VersionsClient" - }, - "method": { - "shortName": "GetVersion", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Versions.GetVersion", - "service": { - "shortName": "Versions", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Versions" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Versions_CreateVersion_async", - "title": "Agents createVersion Sample", - "origin": "API_DEFINITION", - "description": " Creates a [Version][google.cloud.dialogflow.cx.v3beta1.Version] in the specified [Flow][google.cloud.dialogflow.cx.v3beta1.Flow]. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: [CreateVersionOperationMetadata][google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata] - `response`: [Version][google.cloud.dialogflow.cx.v3beta1.Version]", - "canonical": true, - "file": "versions.create_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateVersion", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Versions.CreateVersion", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "version", - "type": ".google.cloud.dialogflow.cx.v3beta1.Version" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VersionsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.VersionsClient" - }, - "method": { - "shortName": "CreateVersion", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Versions.CreateVersion", - "service": { - "shortName": "Versions", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Versions" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Versions_UpdateVersion_async", - "title": "Agents updateVersion Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified [Version][google.cloud.dialogflow.cx.v3beta1.Version].", - "canonical": true, - "file": "versions.update_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateVersion", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Versions.UpdateVersion", - "async": true, - "parameters": [ - { - "name": "version", - "type": ".google.cloud.dialogflow.cx.v3beta1.Version" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.Version", - "client": { - "shortName": "VersionsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.VersionsClient" - }, - "method": { - "shortName": "UpdateVersion", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Versions.UpdateVersion", - "service": { - "shortName": "Versions", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Versions" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Versions_DeleteVersion_async", - "title": "Agents deleteVersion Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified [Version][google.cloud.dialogflow.cx.v3beta1.Version].", - "canonical": true, - "file": "versions.delete_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteVersion", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Versions.DeleteVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "VersionsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.VersionsClient" - }, - "method": { - "shortName": "DeleteVersion", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Versions.DeleteVersion", - "service": { - "shortName": "Versions", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Versions" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Versions_LoadVersion_async", - "title": "Agents loadVersion Sample", - "origin": "API_DEFINITION", - "description": " Loads resources in the specified version to the draft flow. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)", - "canonical": true, - "file": "versions.load_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "LoadVersion", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Versions.LoadVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "allow_override_agent_resources", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VersionsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.VersionsClient" - }, - "method": { - "shortName": "LoadVersion", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Versions.LoadVersion", - "service": { - "shortName": "Versions", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Versions" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Versions_CompareVersions_async", - "title": "Agents compareVersions Sample", - "origin": "API_DEFINITION", - "description": " Compares the specified base version with target version.", - "canonical": true, - "file": "versions.compare_versions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CompareVersions", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Versions.CompareVersions", - "async": true, - "parameters": [ - { - "name": "base_version", - "type": "TYPE_STRING" - }, - { - "name": "target_version", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse", - "client": { - "shortName": "VersionsClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.VersionsClient" - }, - "method": { - "shortName": "CompareVersions", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Versions.CompareVersions", - "service": { - "shortName": "Versions", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Versions" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Webhooks_ListWebhooks_async", - "title": "Agents listWebhooks Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of all webhooks in the specified agent.", - "canonical": true, - "file": "webhooks.list_webhooks.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListWebhooks", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Webhooks.ListWebhooks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse", - "client": { - "shortName": "WebhooksClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.WebhooksClient" - }, - "method": { - "shortName": "ListWebhooks", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Webhooks.ListWebhooks", - "service": { - "shortName": "Webhooks", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Webhooks" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Webhooks_GetWebhook_async", - "title": "Agents getWebhook Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified webhook.", - "canonical": true, - "file": "webhooks.get_webhook.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetWebhook", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Webhooks.GetWebhook", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.Webhook", - "client": { - "shortName": "WebhooksClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.WebhooksClient" - }, - "method": { - "shortName": "GetWebhook", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Webhooks.GetWebhook", - "service": { - "shortName": "Webhooks", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Webhooks" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Webhooks_CreateWebhook_async", - "title": "Agents createWebhook Sample", - "origin": "API_DEFINITION", - "description": " Creates a webhook in the specified agent.", - "canonical": true, - "file": "webhooks.create_webhook.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateWebhook", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Webhooks.CreateWebhook", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "webhook", - "type": ".google.cloud.dialogflow.cx.v3beta1.Webhook" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.Webhook", - "client": { - "shortName": "WebhooksClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.WebhooksClient" - }, - "method": { - "shortName": "CreateWebhook", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Webhooks.CreateWebhook", - "service": { - "shortName": "Webhooks", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Webhooks" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Webhooks_UpdateWebhook_async", - "title": "Agents updateWebhook Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified webhook.", - "canonical": true, - "file": "webhooks.update_webhook.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateWebhook", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Webhooks.UpdateWebhook", - "async": true, - "parameters": [ - { - "name": "webhook", - "type": ".google.cloud.dialogflow.cx.v3beta1.Webhook" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dialogflow.cx.v3beta1.Webhook", - "client": { - "shortName": "WebhooksClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.WebhooksClient" - }, - "method": { - "shortName": "UpdateWebhook", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Webhooks.UpdateWebhook", - "service": { - "shortName": "Webhooks", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Webhooks" - } - } - } - }, - { - "regionTag": "dialogflow_v3beta1_generated_Webhooks_DeleteWebhook_async", - "title": "Agents deleteWebhook Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified webhook.", - "canonical": true, - "file": "webhooks.delete_webhook.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteWebhook", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Webhooks.DeleteWebhook", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "WebhooksClient", - "fullName": "google.cloud.dialogflow.cx.v3beta1.WebhooksClient" - }, - "method": { - "shortName": "DeleteWebhook", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Webhooks.DeleteWebhook", - "service": { - "shortName": "Webhooks", - "fullName": "google.cloud.dialogflow.cx.v3beta1.Webhooks" - } - } - } - } - ] -} diff --git a/packages/google-cloud-dialogflow/samples/generated/v2/snippet_metadata_google.cloud.dialogflow.v2.json b/packages/google-cloud-dialogflow/samples/generated/v2/snippet_metadata_google.cloud.dialogflow.v2.json deleted file mode 100644 index 82ef2483b7fa..000000000000 --- a/packages/google-cloud-dialogflow/samples/generated/v2/snippet_metadata_google.cloud.dialogflow.v2.json +++ /dev/null @@ -1,6051 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-dialogflow", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.dialogflow.v2", - "version": "v2" - } - ] - }, - "snippets": [ - { - "regionTag": "dialogflow_v2_generated_Agents_GetAgent_async", - "title": "dialogflow getAgent Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified agent.", - "canonical": true, - "file": "agents.get_agent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAgent", - "fullName": "google.cloud.dialogflow.v2.Agents.GetAgent", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2.Agent", - "client": { - "shortName": "AgentsClient", - "fullName": "google.cloud.dialogflow.v2.AgentsClient" - }, - "method": { - "shortName": "GetAgent", - "fullName": "google.cloud.dialogflow.v2.Agents.GetAgent", - "service": { - "shortName": "Agents", - "fullName": "google.cloud.dialogflow.v2.Agents" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Agents_SetAgent_async", - "title": "dialogflow setAgent Sample", - "origin": "API_DEFINITION", - "description": " Creates/updates the specified agent. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).", - "canonical": true, - "file": "agents.set_agent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetAgent", - "fullName": "google.cloud.dialogflow.v2.Agents.SetAgent", - "async": true, - "parameters": [ - { - "name": "agent", - "type": ".google.cloud.dialogflow.v2.Agent" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dialogflow.v2.Agent", - "client": { - "shortName": "AgentsClient", - "fullName": "google.cloud.dialogflow.v2.AgentsClient" - }, - "method": { - "shortName": "SetAgent", - "fullName": "google.cloud.dialogflow.v2.Agents.SetAgent", - "service": { - "shortName": "Agents", - "fullName": "google.cloud.dialogflow.v2.Agents" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Agents_DeleteAgent_async", - "title": "dialogflow deleteAgent Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified agent.", - "canonical": true, - "file": "agents.delete_agent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAgent", - "fullName": "google.cloud.dialogflow.v2.Agents.DeleteAgent", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AgentsClient", - "fullName": "google.cloud.dialogflow.v2.AgentsClient" - }, - "method": { - "shortName": "DeleteAgent", - "fullName": "google.cloud.dialogflow.v2.Agents.DeleteAgent", - "service": { - "shortName": "Agents", - "fullName": "google.cloud.dialogflow.v2.Agents" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Agents_SearchAgents_async", - "title": "dialogflow searchAgents Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of agents. Since there is at most one conversational agent per project, this method is useful primarily for listing all agents across projects the caller has access to. One can achieve that with a wildcard project collection id \"-\". Refer to [List Sub-Collections](https://cloud.google.com/apis/design/design_patterns#list_sub-collections).", - "canonical": true, - "file": "agents.search_agents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchAgents", - "fullName": "google.cloud.dialogflow.v2.Agents.SearchAgents", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2.SearchAgentsResponse", - "client": { - "shortName": "AgentsClient", - "fullName": "google.cloud.dialogflow.v2.AgentsClient" - }, - "method": { - "shortName": "SearchAgents", - "fullName": "google.cloud.dialogflow.v2.Agents.SearchAgents", - "service": { - "shortName": "Agents", - "fullName": "google.cloud.dialogflow.v2.Agents" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Agents_TrainAgent_async", - "title": "dialogflow trainAgent Sample", - "origin": "API_DEFINITION", - "description": " Trains the specified agent. This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: - `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).", - "canonical": true, - "file": "agents.train_agent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TrainAgent", - "fullName": "google.cloud.dialogflow.v2.Agents.TrainAgent", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AgentsClient", - "fullName": "google.cloud.dialogflow.v2.AgentsClient" - }, - "method": { - "shortName": "TrainAgent", - "fullName": "google.cloud.dialogflow.v2.Agents.TrainAgent", - "service": { - "shortName": "Agents", - "fullName": "google.cloud.dialogflow.v2.Agents" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Agents_ExportAgent_async", - "title": "dialogflow exportAgent Sample", - "origin": "API_DEFINITION", - "description": " Exports the specified agent to a ZIP file. This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: - `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: [ExportAgentResponse][google.cloud.dialogflow.v2.ExportAgentResponse]", - "canonical": true, - "file": "agents.export_agent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportAgent", - "fullName": "google.cloud.dialogflow.v2.Agents.ExportAgent", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "agent_uri", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AgentsClient", - "fullName": "google.cloud.dialogflow.v2.AgentsClient" - }, - "method": { - "shortName": "ExportAgent", - "fullName": "google.cloud.dialogflow.v2.Agents.ExportAgent", - "service": { - "shortName": "Agents", - "fullName": "google.cloud.dialogflow.v2.Agents" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Agents_ImportAgent_async", - "title": "dialogflow importAgent Sample", - "origin": "API_DEFINITION", - "description": " Imports the specified agent from a ZIP file. Uploads new intents and entity types without deleting the existing ones. Intents and entity types with the same name are replaced with the new versions from [ImportAgentRequest][google.cloud.dialogflow.v2.ImportAgentRequest]. After the import, the imported draft agent will be trained automatically (unless disabled in agent settings). However, once the import is done, training may not be completed yet. Please call [TrainAgent][google.cloud.dialogflow.v2.Agents.TrainAgent] and wait for the operation it returns in order to train explicitly. This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: - `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) The operation only tracks when importing is complete, not when it is done training. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).", - "canonical": true, - "file": "agents.import_agent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportAgent", - "fullName": "google.cloud.dialogflow.v2.Agents.ImportAgent", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "agent_uri", - "type": "TYPE_STRING" - }, - { - "name": "agent_content", - "type": "TYPE_BYTES" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AgentsClient", - "fullName": "google.cloud.dialogflow.v2.AgentsClient" - }, - "method": { - "shortName": "ImportAgent", - "fullName": "google.cloud.dialogflow.v2.Agents.ImportAgent", - "service": { - "shortName": "Agents", - "fullName": "google.cloud.dialogflow.v2.Agents" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Agents_RestoreAgent_async", - "title": "dialogflow restoreAgent Sample", - "origin": "API_DEFINITION", - "description": " Restores the specified agent from a ZIP file. Replaces the current agent version with a new one. All the intents and entity types in the older version are deleted. After the restore, the restored draft agent will be trained automatically (unless disabled in agent settings). However, once the restore is done, training may not be completed yet. Please call [TrainAgent][google.cloud.dialogflow.v2.Agents.TrainAgent] and wait for the operation it returns in order to train explicitly. This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: - `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) The operation only tracks when restoring is complete, not when it is done training. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).", - "canonical": true, - "file": "agents.restore_agent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RestoreAgent", - "fullName": "google.cloud.dialogflow.v2.Agents.RestoreAgent", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "agent_uri", - "type": "TYPE_STRING" - }, - { - "name": "agent_content", - "type": "TYPE_BYTES" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AgentsClient", - "fullName": "google.cloud.dialogflow.v2.AgentsClient" - }, - "method": { - "shortName": "RestoreAgent", - "fullName": "google.cloud.dialogflow.v2.Agents.RestoreAgent", - "service": { - "shortName": "Agents", - "fullName": "google.cloud.dialogflow.v2.Agents" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Agents_GetValidationResult_async", - "title": "dialogflow getValidationResult Sample", - "origin": "API_DEFINITION", - "description": " Gets agent validation result. Agent validation is performed during training time and is updated automatically when training is completed.", - "canonical": true, - "file": "agents.get_validation_result.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetValidationResult", - "fullName": "google.cloud.dialogflow.v2.Agents.GetValidationResult", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2.ValidationResult", - "client": { - "shortName": "AgentsClient", - "fullName": "google.cloud.dialogflow.v2.AgentsClient" - }, - "method": { - "shortName": "GetValidationResult", - "fullName": "google.cloud.dialogflow.v2.Agents.GetValidationResult", - "service": { - "shortName": "Agents", - "fullName": "google.cloud.dialogflow.v2.Agents" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_AnswerRecords_ListAnswerRecords_async", - "title": "dialogflow listAnswerRecords Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of all answer records in the specified project in reverse chronological order.", - "canonical": true, - "file": "answer_records.list_answer_records.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAnswerRecords", - "fullName": "google.cloud.dialogflow.v2.AnswerRecords.ListAnswerRecords", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2.ListAnswerRecordsResponse", - "client": { - "shortName": "AnswerRecordsClient", - "fullName": "google.cloud.dialogflow.v2.AnswerRecordsClient" - }, - "method": { - "shortName": "ListAnswerRecords", - "fullName": "google.cloud.dialogflow.v2.AnswerRecords.ListAnswerRecords", - "service": { - "shortName": "AnswerRecords", - "fullName": "google.cloud.dialogflow.v2.AnswerRecords" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_AnswerRecords_UpdateAnswerRecord_async", - "title": "dialogflow updateAnswerRecord Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified answer record.", - "canonical": true, - "file": "answer_records.update_answer_record.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAnswerRecord", - "fullName": "google.cloud.dialogflow.v2.AnswerRecords.UpdateAnswerRecord", - "async": true, - "parameters": [ - { - "name": "answer_record", - "type": ".google.cloud.dialogflow.v2.AnswerRecord" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dialogflow.v2.AnswerRecord", - "client": { - "shortName": "AnswerRecordsClient", - "fullName": "google.cloud.dialogflow.v2.AnswerRecordsClient" - }, - "method": { - "shortName": "UpdateAnswerRecord", - "fullName": "google.cloud.dialogflow.v2.AnswerRecords.UpdateAnswerRecord", - "service": { - "shortName": "AnswerRecords", - "fullName": "google.cloud.dialogflow.v2.AnswerRecords" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Contexts_ListContexts_async", - "title": "dialogflow listContexts Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of all contexts in the specified session.", - "canonical": true, - "file": "contexts.list_contexts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListContexts", - "fullName": "google.cloud.dialogflow.v2.Contexts.ListContexts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2.ListContextsResponse", - "client": { - "shortName": "ContextsClient", - "fullName": "google.cloud.dialogflow.v2.ContextsClient" - }, - "method": { - "shortName": "ListContexts", - "fullName": "google.cloud.dialogflow.v2.Contexts.ListContexts", - "service": { - "shortName": "Contexts", - "fullName": "google.cloud.dialogflow.v2.Contexts" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Contexts_GetContext_async", - "title": "dialogflow getContext Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified context.", - "canonical": true, - "file": "contexts.get_context.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetContext", - "fullName": "google.cloud.dialogflow.v2.Contexts.GetContext", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2.Context", - "client": { - "shortName": "ContextsClient", - "fullName": "google.cloud.dialogflow.v2.ContextsClient" - }, - "method": { - "shortName": "GetContext", - "fullName": "google.cloud.dialogflow.v2.Contexts.GetContext", - "service": { - "shortName": "Contexts", - "fullName": "google.cloud.dialogflow.v2.Contexts" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Contexts_CreateContext_async", - "title": "dialogflow createContext Sample", - "origin": "API_DEFINITION", - "description": " Creates a context. If the specified context already exists, overrides the context.", - "canonical": true, - "file": "contexts.create_context.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateContext", - "fullName": "google.cloud.dialogflow.v2.Contexts.CreateContext", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "context", - "type": ".google.cloud.dialogflow.v2.Context" - } - ], - "resultType": ".google.cloud.dialogflow.v2.Context", - "client": { - "shortName": "ContextsClient", - "fullName": "google.cloud.dialogflow.v2.ContextsClient" - }, - "method": { - "shortName": "CreateContext", - "fullName": "google.cloud.dialogflow.v2.Contexts.CreateContext", - "service": { - "shortName": "Contexts", - "fullName": "google.cloud.dialogflow.v2.Contexts" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Contexts_UpdateContext_async", - "title": "dialogflow updateContext Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified context.", - "canonical": true, - "file": "contexts.update_context.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateContext", - "fullName": "google.cloud.dialogflow.v2.Contexts.UpdateContext", - "async": true, - "parameters": [ - { - "name": "context", - "type": ".google.cloud.dialogflow.v2.Context" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dialogflow.v2.Context", - "client": { - "shortName": "ContextsClient", - "fullName": "google.cloud.dialogflow.v2.ContextsClient" - }, - "method": { - "shortName": "UpdateContext", - "fullName": "google.cloud.dialogflow.v2.Contexts.UpdateContext", - "service": { - "shortName": "Contexts", - "fullName": "google.cloud.dialogflow.v2.Contexts" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Contexts_DeleteContext_async", - "title": "dialogflow deleteContext Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified context.", - "canonical": true, - "file": "contexts.delete_context.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteContext", - "fullName": "google.cloud.dialogflow.v2.Contexts.DeleteContext", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ContextsClient", - "fullName": "google.cloud.dialogflow.v2.ContextsClient" - }, - "method": { - "shortName": "DeleteContext", - "fullName": "google.cloud.dialogflow.v2.Contexts.DeleteContext", - "service": { - "shortName": "Contexts", - "fullName": "google.cloud.dialogflow.v2.Contexts" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Contexts_DeleteAllContexts_async", - "title": "dialogflow deleteAllContexts Sample", - "origin": "API_DEFINITION", - "description": " Deletes all active contexts in the specified session.", - "canonical": true, - "file": "contexts.delete_all_contexts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAllContexts", - "fullName": "google.cloud.dialogflow.v2.Contexts.DeleteAllContexts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ContextsClient", - "fullName": "google.cloud.dialogflow.v2.ContextsClient" - }, - "method": { - "shortName": "DeleteAllContexts", - "fullName": "google.cloud.dialogflow.v2.Contexts.DeleteAllContexts", - "service": { - "shortName": "Contexts", - "fullName": "google.cloud.dialogflow.v2.Contexts" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_ConversationDatasets_CreateConversationDataset_async", - "title": "dialogflow createConversationDataset Sample", - "origin": "API_DEFINITION", - "description": " Creates a new conversation dataset. This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: - `metadata`: [CreateConversationDatasetOperationMetadata][google.cloud.dialogflow.v2.CreateConversationDatasetOperationMetadata] - `response`: [ConversationDataset][google.cloud.dialogflow.v2.ConversationDataset]", - "canonical": true, - "file": "conversation_datasets.create_conversation_dataset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateConversationDataset", - "fullName": "google.cloud.dialogflow.v2.ConversationDatasets.CreateConversationDataset", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "conversation_dataset", - "type": ".google.cloud.dialogflow.v2.ConversationDataset" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConversationDatasetsClient", - "fullName": "google.cloud.dialogflow.v2.ConversationDatasetsClient" - }, - "method": { - "shortName": "CreateConversationDataset", - "fullName": "google.cloud.dialogflow.v2.ConversationDatasets.CreateConversationDataset", - "service": { - "shortName": "ConversationDatasets", - "fullName": "google.cloud.dialogflow.v2.ConversationDatasets" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_ConversationDatasets_GetConversationDataset_async", - "title": "dialogflow getConversationDataset Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified conversation dataset.", - "canonical": true, - "file": "conversation_datasets.get_conversation_dataset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetConversationDataset", - "fullName": "google.cloud.dialogflow.v2.ConversationDatasets.GetConversationDataset", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2.ConversationDataset", - "client": { - "shortName": "ConversationDatasetsClient", - "fullName": "google.cloud.dialogflow.v2.ConversationDatasetsClient" - }, - "method": { - "shortName": "GetConversationDataset", - "fullName": "google.cloud.dialogflow.v2.ConversationDatasets.GetConversationDataset", - "service": { - "shortName": "ConversationDatasets", - "fullName": "google.cloud.dialogflow.v2.ConversationDatasets" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_ConversationDatasets_ListConversationDatasets_async", - "title": "dialogflow listConversationDatasets Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of all conversation datasets in the specified project and location.", - "canonical": true, - "file": "conversation_datasets.list_conversation_datasets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListConversationDatasets", - "fullName": "google.cloud.dialogflow.v2.ConversationDatasets.ListConversationDatasets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2.ListConversationDatasetsResponse", - "client": { - "shortName": "ConversationDatasetsClient", - "fullName": "google.cloud.dialogflow.v2.ConversationDatasetsClient" - }, - "method": { - "shortName": "ListConversationDatasets", - "fullName": "google.cloud.dialogflow.v2.ConversationDatasets.ListConversationDatasets", - "service": { - "shortName": "ConversationDatasets", - "fullName": "google.cloud.dialogflow.v2.ConversationDatasets" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_ConversationDatasets_DeleteConversationDataset_async", - "title": "dialogflow deleteConversationDataset Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified conversation dataset. This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: - `metadata`: [DeleteConversationDatasetOperationMetadata][google.cloud.dialogflow.v2.DeleteConversationDatasetOperationMetadata] - `response`: An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)", - "canonical": true, - "file": "conversation_datasets.delete_conversation_dataset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteConversationDataset", - "fullName": "google.cloud.dialogflow.v2.ConversationDatasets.DeleteConversationDataset", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConversationDatasetsClient", - "fullName": "google.cloud.dialogflow.v2.ConversationDatasetsClient" - }, - "method": { - "shortName": "DeleteConversationDataset", - "fullName": "google.cloud.dialogflow.v2.ConversationDatasets.DeleteConversationDataset", - "service": { - "shortName": "ConversationDatasets", - "fullName": "google.cloud.dialogflow.v2.ConversationDatasets" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_ConversationDatasets_ImportConversationData_async", - "title": "dialogflow importConversationData Sample", - "origin": "API_DEFINITION", - "description": " Import data into the specified conversation dataset. Note that it is not allowed to import data to a conversation dataset that already has data in it. This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: - `metadata`: [ImportConversationDataOperationMetadata][google.cloud.dialogflow.v2.ImportConversationDataOperationMetadata] - `response`: [ImportConversationDataOperationResponse][google.cloud.dialogflow.v2.ImportConversationDataOperationResponse]", - "canonical": true, - "file": "conversation_datasets.import_conversation_data.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportConversationData", - "fullName": "google.cloud.dialogflow.v2.ConversationDatasets.ImportConversationData", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "input_config", - "type": ".google.cloud.dialogflow.v2.InputConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConversationDatasetsClient", - "fullName": "google.cloud.dialogflow.v2.ConversationDatasetsClient" - }, - "method": { - "shortName": "ImportConversationData", - "fullName": "google.cloud.dialogflow.v2.ConversationDatasets.ImportConversationData", - "service": { - "shortName": "ConversationDatasets", - "fullName": "google.cloud.dialogflow.v2.ConversationDatasets" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_ConversationModels_CreateConversationModel_async", - "title": "dialogflow createConversationModel Sample", - "origin": "API_DEFINITION", - "description": " Creates a model. This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: - `metadata`: [CreateConversationModelOperationMetadata][google.cloud.dialogflow.v2.CreateConversationModelOperationMetadata] - `response`: [ConversationModel][google.cloud.dialogflow.v2.ConversationModel]", - "canonical": true, - "file": "conversation_models.create_conversation_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateConversationModel", - "fullName": "google.cloud.dialogflow.v2.ConversationModels.CreateConversationModel", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "conversation_model", - "type": ".google.cloud.dialogflow.v2.ConversationModel" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConversationModelsClient", - "fullName": "google.cloud.dialogflow.v2.ConversationModelsClient" - }, - "method": { - "shortName": "CreateConversationModel", - "fullName": "google.cloud.dialogflow.v2.ConversationModels.CreateConversationModel", - "service": { - "shortName": "ConversationModels", - "fullName": "google.cloud.dialogflow.v2.ConversationModels" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_ConversationModels_GetConversationModel_async", - "title": "dialogflow getConversationModel Sample", - "origin": "API_DEFINITION", - "description": " Gets conversation model.", - "canonical": true, - "file": "conversation_models.get_conversation_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetConversationModel", - "fullName": "google.cloud.dialogflow.v2.ConversationModels.GetConversationModel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2.ConversationModel", - "client": { - "shortName": "ConversationModelsClient", - "fullName": "google.cloud.dialogflow.v2.ConversationModelsClient" - }, - "method": { - "shortName": "GetConversationModel", - "fullName": "google.cloud.dialogflow.v2.ConversationModels.GetConversationModel", - "service": { - "shortName": "ConversationModels", - "fullName": "google.cloud.dialogflow.v2.ConversationModels" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_ConversationModels_ListConversationModels_async", - "title": "dialogflow listConversationModels Sample", - "origin": "API_DEFINITION", - "description": " Lists conversation models.", - "canonical": true, - "file": "conversation_models.list_conversation_models.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListConversationModels", - "fullName": "google.cloud.dialogflow.v2.ConversationModels.ListConversationModels", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2.ListConversationModelsResponse", - "client": { - "shortName": "ConversationModelsClient", - "fullName": "google.cloud.dialogflow.v2.ConversationModelsClient" - }, - "method": { - "shortName": "ListConversationModels", - "fullName": "google.cloud.dialogflow.v2.ConversationModels.ListConversationModels", - "service": { - "shortName": "ConversationModels", - "fullName": "google.cloud.dialogflow.v2.ConversationModels" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_ConversationModels_DeleteConversationModel_async", - "title": "dialogflow deleteConversationModel Sample", - "origin": "API_DEFINITION", - "description": " Deletes a model. This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: - `metadata`: [DeleteConversationModelOperationMetadata][google.cloud.dialogflow.v2.DeleteConversationModelOperationMetadata] - `response`: An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)", - "canonical": true, - "file": "conversation_models.delete_conversation_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteConversationModel", - "fullName": "google.cloud.dialogflow.v2.ConversationModels.DeleteConversationModel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConversationModelsClient", - "fullName": "google.cloud.dialogflow.v2.ConversationModelsClient" - }, - "method": { - "shortName": "DeleteConversationModel", - "fullName": "google.cloud.dialogflow.v2.ConversationModels.DeleteConversationModel", - "service": { - "shortName": "ConversationModels", - "fullName": "google.cloud.dialogflow.v2.ConversationModels" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_ConversationModels_DeployConversationModel_async", - "title": "dialogflow deployConversationModel Sample", - "origin": "API_DEFINITION", - "description": " Deploys a model. If a model is already deployed, deploying it has no effect. A model can only serve prediction requests after it gets deployed. For article suggestion, custom model will not be used unless it is deployed. This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: - `metadata`: [DeployConversationModelOperationMetadata][google.cloud.dialogflow.v2.DeployConversationModelOperationMetadata] - `response`: An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)", - "canonical": true, - "file": "conversation_models.deploy_conversation_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeployConversationModel", - "fullName": "google.cloud.dialogflow.v2.ConversationModels.DeployConversationModel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConversationModelsClient", - "fullName": "google.cloud.dialogflow.v2.ConversationModelsClient" - }, - "method": { - "shortName": "DeployConversationModel", - "fullName": "google.cloud.dialogflow.v2.ConversationModels.DeployConversationModel", - "service": { - "shortName": "ConversationModels", - "fullName": "google.cloud.dialogflow.v2.ConversationModels" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_ConversationModels_UndeployConversationModel_async", - "title": "dialogflow undeployConversationModel Sample", - "origin": "API_DEFINITION", - "description": " Undeploys a model. If the model is not deployed this method has no effect. If the model is currently being used: - For article suggestion, article suggestion will fallback to the default model if model is undeployed. This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: - `metadata`: [UndeployConversationModelOperationMetadata][google.cloud.dialogflow.v2.UndeployConversationModelOperationMetadata] - `response`: An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)", - "canonical": true, - "file": "conversation_models.undeploy_conversation_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UndeployConversationModel", - "fullName": "google.cloud.dialogflow.v2.ConversationModels.UndeployConversationModel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConversationModelsClient", - "fullName": "google.cloud.dialogflow.v2.ConversationModelsClient" - }, - "method": { - "shortName": "UndeployConversationModel", - "fullName": "google.cloud.dialogflow.v2.ConversationModels.UndeployConversationModel", - "service": { - "shortName": "ConversationModels", - "fullName": "google.cloud.dialogflow.v2.ConversationModels" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_ConversationModels_GetConversationModelEvaluation_async", - "title": "dialogflow getConversationModelEvaluation Sample", - "origin": "API_DEFINITION", - "description": " Gets an evaluation of conversation model.", - "canonical": true, - "file": "conversation_models.get_conversation_model_evaluation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetConversationModelEvaluation", - "fullName": "google.cloud.dialogflow.v2.ConversationModels.GetConversationModelEvaluation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2.ConversationModelEvaluation", - "client": { - "shortName": "ConversationModelsClient", - "fullName": "google.cloud.dialogflow.v2.ConversationModelsClient" - }, - "method": { - "shortName": "GetConversationModelEvaluation", - "fullName": "google.cloud.dialogflow.v2.ConversationModels.GetConversationModelEvaluation", - "service": { - "shortName": "ConversationModels", - "fullName": "google.cloud.dialogflow.v2.ConversationModels" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_ConversationModels_ListConversationModelEvaluations_async", - "title": "dialogflow listConversationModelEvaluations Sample", - "origin": "API_DEFINITION", - "description": " Lists evaluations of a conversation model.", - "canonical": true, - "file": "conversation_models.list_conversation_model_evaluations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListConversationModelEvaluations", - "fullName": "google.cloud.dialogflow.v2.ConversationModels.ListConversationModelEvaluations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2.ListConversationModelEvaluationsResponse", - "client": { - "shortName": "ConversationModelsClient", - "fullName": "google.cloud.dialogflow.v2.ConversationModelsClient" - }, - "method": { - "shortName": "ListConversationModelEvaluations", - "fullName": "google.cloud.dialogflow.v2.ConversationModels.ListConversationModelEvaluations", - "service": { - "shortName": "ConversationModels", - "fullName": "google.cloud.dialogflow.v2.ConversationModels" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_ConversationModels_CreateConversationModelEvaluation_async", - "title": "dialogflow createConversationModelEvaluation Sample", - "origin": "API_DEFINITION", - "description": " Creates evaluation of a conversation model.", - "canonical": true, - "file": "conversation_models.create_conversation_model_evaluation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateConversationModelEvaluation", - "fullName": "google.cloud.dialogflow.v2.ConversationModels.CreateConversationModelEvaluation", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "conversation_model_evaluation", - "type": ".google.cloud.dialogflow.v2.ConversationModelEvaluation" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConversationModelsClient", - "fullName": "google.cloud.dialogflow.v2.ConversationModelsClient" - }, - "method": { - "shortName": "CreateConversationModelEvaluation", - "fullName": "google.cloud.dialogflow.v2.ConversationModels.CreateConversationModelEvaluation", - "service": { - "shortName": "ConversationModels", - "fullName": "google.cloud.dialogflow.v2.ConversationModels" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_ConversationProfiles_ListConversationProfiles_async", - "title": "dialogflow listConversationProfiles Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of all conversation profiles in the specified project.", - "canonical": true, - "file": "conversation_profiles.list_conversation_profiles.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListConversationProfiles", - "fullName": "google.cloud.dialogflow.v2.ConversationProfiles.ListConversationProfiles", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2.ListConversationProfilesResponse", - "client": { - "shortName": "ConversationProfilesClient", - "fullName": "google.cloud.dialogflow.v2.ConversationProfilesClient" - }, - "method": { - "shortName": "ListConversationProfiles", - "fullName": "google.cloud.dialogflow.v2.ConversationProfiles.ListConversationProfiles", - "service": { - "shortName": "ConversationProfiles", - "fullName": "google.cloud.dialogflow.v2.ConversationProfiles" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_ConversationProfiles_GetConversationProfile_async", - "title": "dialogflow getConversationProfile Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified conversation profile.", - "canonical": true, - "file": "conversation_profiles.get_conversation_profile.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetConversationProfile", - "fullName": "google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2.ConversationProfile", - "client": { - "shortName": "ConversationProfilesClient", - "fullName": "google.cloud.dialogflow.v2.ConversationProfilesClient" - }, - "method": { - "shortName": "GetConversationProfile", - "fullName": "google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile", - "service": { - "shortName": "ConversationProfiles", - "fullName": "google.cloud.dialogflow.v2.ConversationProfiles" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_ConversationProfiles_CreateConversationProfile_async", - "title": "dialogflow createConversationProfile Sample", - "origin": "API_DEFINITION", - "description": " Creates a conversation profile in the specified project. [ConversationProfile.create_time][google.cloud.dialogflow.v2.ConversationProfile.create_time] and [ConversationProfile.update_time][google.cloud.dialogflow.v2.ConversationProfile.update_time] aren't populated in the response. You can retrieve them via [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API.", - "canonical": true, - "file": "conversation_profiles.create_conversation_profile.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateConversationProfile", - "fullName": "google.cloud.dialogflow.v2.ConversationProfiles.CreateConversationProfile", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "conversation_profile", - "type": ".google.cloud.dialogflow.v2.ConversationProfile" - } - ], - "resultType": ".google.cloud.dialogflow.v2.ConversationProfile", - "client": { - "shortName": "ConversationProfilesClient", - "fullName": "google.cloud.dialogflow.v2.ConversationProfilesClient" - }, - "method": { - "shortName": "CreateConversationProfile", - "fullName": "google.cloud.dialogflow.v2.ConversationProfiles.CreateConversationProfile", - "service": { - "shortName": "ConversationProfiles", - "fullName": "google.cloud.dialogflow.v2.ConversationProfiles" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_ConversationProfiles_UpdateConversationProfile_async", - "title": "dialogflow updateConversationProfile Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified conversation profile. [ConversationProfile.create_time][google.cloud.dialogflow.v2.ConversationProfile.create_time] and [ConversationProfile.update_time][google.cloud.dialogflow.v2.ConversationProfile.update_time] aren't populated in the response. You can retrieve them via [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API.", - "canonical": true, - "file": "conversation_profiles.update_conversation_profile.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateConversationProfile", - "fullName": "google.cloud.dialogflow.v2.ConversationProfiles.UpdateConversationProfile", - "async": true, - "parameters": [ - { - "name": "conversation_profile", - "type": ".google.cloud.dialogflow.v2.ConversationProfile" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dialogflow.v2.ConversationProfile", - "client": { - "shortName": "ConversationProfilesClient", - "fullName": "google.cloud.dialogflow.v2.ConversationProfilesClient" - }, - "method": { - "shortName": "UpdateConversationProfile", - "fullName": "google.cloud.dialogflow.v2.ConversationProfiles.UpdateConversationProfile", - "service": { - "shortName": "ConversationProfiles", - "fullName": "google.cloud.dialogflow.v2.ConversationProfiles" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_ConversationProfiles_DeleteConversationProfile_async", - "title": "dialogflow deleteConversationProfile Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified conversation profile.", - "canonical": true, - "file": "conversation_profiles.delete_conversation_profile.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteConversationProfile", - "fullName": "google.cloud.dialogflow.v2.ConversationProfiles.DeleteConversationProfile", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ConversationProfilesClient", - "fullName": "google.cloud.dialogflow.v2.ConversationProfilesClient" - }, - "method": { - "shortName": "DeleteConversationProfile", - "fullName": "google.cloud.dialogflow.v2.ConversationProfiles.DeleteConversationProfile", - "service": { - "shortName": "ConversationProfiles", - "fullName": "google.cloud.dialogflow.v2.ConversationProfiles" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_ConversationProfiles_SetSuggestionFeatureConfig_async", - "title": "dialogflow setSuggestionFeatureConfig Sample", - "origin": "API_DEFINITION", - "description": " Adds or updates a suggestion feature in a conversation profile. If the conversation profile contains the type of suggestion feature for the participant role, it will update it. Otherwise it will insert the suggestion feature. This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: - `metadata`: [SetSuggestionFeatureConfigOperationMetadata][google.cloud.dialogflow.v2.SetSuggestionFeatureConfigOperationMetadata] - `response`: [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile] If a long running operation to add or update suggestion feature config for the same conversation profile, participant role and suggestion feature type exists, please cancel the existing long running operation before sending such request, otherwise the request will be rejected.", - "canonical": true, - "file": "conversation_profiles.set_suggestion_feature_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetSuggestionFeatureConfig", - "fullName": "google.cloud.dialogflow.v2.ConversationProfiles.SetSuggestionFeatureConfig", - "async": true, - "parameters": [ - { - "name": "conversation_profile", - "type": "TYPE_STRING" - }, - { - "name": "participant_role", - "type": ".google.cloud.dialogflow.v2.Participant.Role" - }, - { - "name": "suggestion_feature_config", - "type": ".google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionFeatureConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConversationProfilesClient", - "fullName": "google.cloud.dialogflow.v2.ConversationProfilesClient" - }, - "method": { - "shortName": "SetSuggestionFeatureConfig", - "fullName": "google.cloud.dialogflow.v2.ConversationProfiles.SetSuggestionFeatureConfig", - "service": { - "shortName": "ConversationProfiles", - "fullName": "google.cloud.dialogflow.v2.ConversationProfiles" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_ConversationProfiles_ClearSuggestionFeatureConfig_async", - "title": "dialogflow clearSuggestionFeatureConfig Sample", - "origin": "API_DEFINITION", - "description": " Clears a suggestion feature from a conversation profile for the given participant role. This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: - `metadata`: [ClearSuggestionFeatureConfigOperationMetadata][google.cloud.dialogflow.v2.ClearSuggestionFeatureConfigOperationMetadata] - `response`: [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile]", - "canonical": true, - "file": "conversation_profiles.clear_suggestion_feature_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ClearSuggestionFeatureConfig", - "fullName": "google.cloud.dialogflow.v2.ConversationProfiles.ClearSuggestionFeatureConfig", - "async": true, - "parameters": [ - { - "name": "conversation_profile", - "type": "TYPE_STRING" - }, - { - "name": "participant_role", - "type": ".google.cloud.dialogflow.v2.Participant.Role" - }, - { - "name": "suggestion_feature_type", - "type": ".google.cloud.dialogflow.v2.SuggestionFeature.Type" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConversationProfilesClient", - "fullName": "google.cloud.dialogflow.v2.ConversationProfilesClient" - }, - "method": { - "shortName": "ClearSuggestionFeatureConfig", - "fullName": "google.cloud.dialogflow.v2.ConversationProfiles.ClearSuggestionFeatureConfig", - "service": { - "shortName": "ConversationProfiles", - "fullName": "google.cloud.dialogflow.v2.ConversationProfiles" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Conversations_CreateConversation_async", - "title": "dialogflow createConversation Sample", - "origin": "API_DEFINITION", - "description": " Creates a new conversation. Conversations are auto-completed after 24 hours. Conversation Lifecycle: There are two stages during a conversation: Automated Agent Stage and Assist Stage. For Automated Agent Stage, there will be a dialogflow agent responding to user queries. For Assist Stage, there's no dialogflow agent responding to user queries. But we will provide suggestions which are generated from conversation. If [Conversation.conversation_profile][google.cloud.dialogflow.v2.Conversation.conversation_profile] is configured for a dialogflow agent, conversation will start from `Automated Agent Stage`, otherwise, it will start from `Assist Stage`. And during `Automated Agent Stage`, once an [Intent][google.cloud.dialogflow.v2.Intent] with [Intent.live_agent_handoff][google.cloud.dialogflow.v2.Intent.live_agent_handoff] is triggered, conversation will transfer to Assist Stage.", - "canonical": true, - "file": "conversations.create_conversation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateConversation", - "fullName": "google.cloud.dialogflow.v2.Conversations.CreateConversation", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "conversation", - "type": ".google.cloud.dialogflow.v2.Conversation" - }, - { - "name": "conversation_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2.Conversation", - "client": { - "shortName": "ConversationsClient", - "fullName": "google.cloud.dialogflow.v2.ConversationsClient" - }, - "method": { - "shortName": "CreateConversation", - "fullName": "google.cloud.dialogflow.v2.Conversations.CreateConversation", - "service": { - "shortName": "Conversations", - "fullName": "google.cloud.dialogflow.v2.Conversations" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Conversations_ListConversations_async", - "title": "dialogflow listConversations Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of all conversations in the specified project.", - "canonical": true, - "file": "conversations.list_conversations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListConversations", - "fullName": "google.cloud.dialogflow.v2.Conversations.ListConversations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2.ListConversationsResponse", - "client": { - "shortName": "ConversationsClient", - "fullName": "google.cloud.dialogflow.v2.ConversationsClient" - }, - "method": { - "shortName": "ListConversations", - "fullName": "google.cloud.dialogflow.v2.Conversations.ListConversations", - "service": { - "shortName": "Conversations", - "fullName": "google.cloud.dialogflow.v2.Conversations" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Conversations_GetConversation_async", - "title": "dialogflow getConversation Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specific conversation.", - "canonical": true, - "file": "conversations.get_conversation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetConversation", - "fullName": "google.cloud.dialogflow.v2.Conversations.GetConversation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2.Conversation", - "client": { - "shortName": "ConversationsClient", - "fullName": "google.cloud.dialogflow.v2.ConversationsClient" - }, - "method": { - "shortName": "GetConversation", - "fullName": "google.cloud.dialogflow.v2.Conversations.GetConversation", - "service": { - "shortName": "Conversations", - "fullName": "google.cloud.dialogflow.v2.Conversations" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Conversations_CompleteConversation_async", - "title": "dialogflow completeConversation Sample", - "origin": "API_DEFINITION", - "description": " Completes the specified conversation. Finished conversations are purged from the database after 30 days.", - "canonical": true, - "file": "conversations.complete_conversation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CompleteConversation", - "fullName": "google.cloud.dialogflow.v2.Conversations.CompleteConversation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2.Conversation", - "client": { - "shortName": "ConversationsClient", - "fullName": "google.cloud.dialogflow.v2.ConversationsClient" - }, - "method": { - "shortName": "CompleteConversation", - "fullName": "google.cloud.dialogflow.v2.Conversations.CompleteConversation", - "service": { - "shortName": "Conversations", - "fullName": "google.cloud.dialogflow.v2.Conversations" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Conversations_IngestContextReferences_async", - "title": "dialogflow ingestContextReferences Sample", - "origin": "API_DEFINITION", - "description": " Data ingestion API. Ingests context references for an existing conversation.", - "canonical": true, - "file": "conversations.ingest_context_references.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "IngestContextReferences", - "fullName": "google.cloud.dialogflow.v2.Conversations.IngestContextReferences", - "async": true, - "parameters": [ - { - "name": "conversation", - "type": "TYPE_STRING" - }, - { - "name": "context_references", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.dialogflow.v2.IngestContextReferencesResponse", - "client": { - "shortName": "ConversationsClient", - "fullName": "google.cloud.dialogflow.v2.ConversationsClient" - }, - "method": { - "shortName": "IngestContextReferences", - "fullName": "google.cloud.dialogflow.v2.Conversations.IngestContextReferences", - "service": { - "shortName": "Conversations", - "fullName": "google.cloud.dialogflow.v2.Conversations" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Conversations_ListMessages_async", - "title": "dialogflow listMessages Sample", - "origin": "API_DEFINITION", - "description": " Lists messages that belong to a given conversation. `messages` are ordered by `create_time` in descending order. To fetch updates without duplication, send request with filter `create_time_epoch_microseconds > [first item's create_time of previous request]` and empty page_token.", - "canonical": true, - "file": "conversations.list_messages.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMessages", - "fullName": "google.cloud.dialogflow.v2.Conversations.ListMessages", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2.ListMessagesResponse", - "client": { - "shortName": "ConversationsClient", - "fullName": "google.cloud.dialogflow.v2.ConversationsClient" - }, - "method": { - "shortName": "ListMessages", - "fullName": "google.cloud.dialogflow.v2.Conversations.ListMessages", - "service": { - "shortName": "Conversations", - "fullName": "google.cloud.dialogflow.v2.Conversations" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Conversations_SuggestConversationSummary_async", - "title": "dialogflow suggestConversationSummary Sample", - "origin": "API_DEFINITION", - "description": " Suggests summary for a conversation based on specific historical messages. The range of the messages to be used for summary can be specified in the request.", - "canonical": true, - "file": "conversations.suggest_conversation_summary.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SuggestConversationSummary", - "fullName": "google.cloud.dialogflow.v2.Conversations.SuggestConversationSummary", - "async": true, - "parameters": [ - { - "name": "conversation", - "type": "TYPE_STRING" - }, - { - "name": "latest_message", - "type": "TYPE_STRING" - }, - { - "name": "context_size", - "type": "TYPE_INT32" - }, - { - "name": "assist_query_params", - "type": ".google.cloud.dialogflow.v2.AssistQueryParameters" - } - ], - "resultType": ".google.cloud.dialogflow.v2.SuggestConversationSummaryResponse", - "client": { - "shortName": "ConversationsClient", - "fullName": "google.cloud.dialogflow.v2.ConversationsClient" - }, - "method": { - "shortName": "SuggestConversationSummary", - "fullName": "google.cloud.dialogflow.v2.Conversations.SuggestConversationSummary", - "service": { - "shortName": "Conversations", - "fullName": "google.cloud.dialogflow.v2.Conversations" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Conversations_GenerateStatelessSummary_async", - "title": "dialogflow generateStatelessSummary Sample", - "origin": "API_DEFINITION", - "description": " Generates and returns a summary for a conversation that does not have a resource created for it.", - "canonical": true, - "file": "conversations.generate_stateless_summary.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateStatelessSummary", - "fullName": "google.cloud.dialogflow.v2.Conversations.GenerateStatelessSummary", - "async": true, - "parameters": [ - { - "name": "stateless_conversation", - "type": ".google.cloud.dialogflow.v2.GenerateStatelessSummaryRequest.MinimalConversation" - }, - { - "name": "conversation_profile", - "type": ".google.cloud.dialogflow.v2.ConversationProfile" - }, - { - "name": "latest_message", - "type": "TYPE_STRING" - }, - { - "name": "max_context_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.dialogflow.v2.GenerateStatelessSummaryResponse", - "client": { - "shortName": "ConversationsClient", - "fullName": "google.cloud.dialogflow.v2.ConversationsClient" - }, - "method": { - "shortName": "GenerateStatelessSummary", - "fullName": "google.cloud.dialogflow.v2.Conversations.GenerateStatelessSummary", - "service": { - "shortName": "Conversations", - "fullName": "google.cloud.dialogflow.v2.Conversations" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Conversations_GenerateStatelessSuggestion_async", - "title": "dialogflow generateStatelessSuggestion Sample", - "origin": "API_DEFINITION", - "description": " Generates and returns a suggestion for a conversation that does not have a resource created for it.", - "canonical": true, - "file": "conversations.generate_stateless_suggestion.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 90, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateStatelessSuggestion", - "fullName": "google.cloud.dialogflow.v2.Conversations.GenerateStatelessSuggestion", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "generator", - "type": ".google.cloud.dialogflow.v2.Generator" - }, - { - "name": "generator_name", - "type": "TYPE_STRING" - }, - { - "name": "context_references", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "conversation_context", - "type": ".google.cloud.dialogflow.v2.ConversationContext" - }, - { - "name": "trigger_events", - "type": "TYPE_ENUM[]" - }, - { - "name": "security_settings", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2.GenerateStatelessSuggestionResponse", - "client": { - "shortName": "ConversationsClient", - "fullName": "google.cloud.dialogflow.v2.ConversationsClient" - }, - "method": { - "shortName": "GenerateStatelessSuggestion", - "fullName": "google.cloud.dialogflow.v2.Conversations.GenerateStatelessSuggestion", - "service": { - "shortName": "Conversations", - "fullName": "google.cloud.dialogflow.v2.Conversations" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Conversations_SearchKnowledge_async", - "title": "dialogflow searchKnowledge Sample", - "origin": "API_DEFINITION", - "description": " Get answers for the given query based on knowledge documents.", - "canonical": true, - "file": "conversations.search_knowledge.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 120, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchKnowledge", - "fullName": "google.cloud.dialogflow.v2.Conversations.SearchKnowledge", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": ".google.cloud.dialogflow.v2.TextInput" - }, - { - "name": "conversation_profile", - "type": "TYPE_STRING" - }, - { - "name": "session_id", - "type": "TYPE_STRING" - }, - { - "name": "conversation", - "type": "TYPE_STRING" - }, - { - "name": "latest_message", - "type": "TYPE_STRING" - }, - { - "name": "query_source", - "type": ".google.cloud.dialogflow.v2.SearchKnowledgeRequest.QuerySource" - }, - { - "name": "end_user_metadata", - "type": ".google.protobuf.Struct" - }, - { - "name": "search_config", - "type": ".google.cloud.dialogflow.v2.SearchKnowledgeRequest.SearchConfig" - }, - { - "name": "exact_search", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.dialogflow.v2.SearchKnowledgeResponse", - "client": { - "shortName": "ConversationsClient", - "fullName": "google.cloud.dialogflow.v2.ConversationsClient" - }, - "method": { - "shortName": "SearchKnowledge", - "fullName": "google.cloud.dialogflow.v2.Conversations.SearchKnowledge", - "service": { - "shortName": "Conversations", - "fullName": "google.cloud.dialogflow.v2.Conversations" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Conversations_GenerateSuggestions_async", - "title": "dialogflow generateSuggestions Sample", - "origin": "API_DEFINITION", - "description": " Generates all the suggestions using generators configured in the conversation profile. A generator is used only if its trigger event is matched.", - "canonical": true, - "file": "conversations.generate_suggestions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateSuggestions", - "fullName": "google.cloud.dialogflow.v2.Conversations.GenerateSuggestions", - "async": true, - "parameters": [ - { - "name": "conversation", - "type": "TYPE_STRING" - }, - { - "name": "latest_message", - "type": "TYPE_STRING" - }, - { - "name": "trigger_events", - "type": "TYPE_ENUM[]" - } - ], - "resultType": ".google.cloud.dialogflow.v2.GenerateSuggestionsResponse", - "client": { - "shortName": "ConversationsClient", - "fullName": "google.cloud.dialogflow.v2.ConversationsClient" - }, - "method": { - "shortName": "GenerateSuggestions", - "fullName": "google.cloud.dialogflow.v2.Conversations.GenerateSuggestions", - "service": { - "shortName": "Conversations", - "fullName": "google.cloud.dialogflow.v2.Conversations" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Documents_ListDocuments_async", - "title": "dialogflow listDocuments Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of all documents of the knowledge base.", - "canonical": true, - "file": "documents.list_documents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDocuments", - "fullName": "google.cloud.dialogflow.v2.Documents.ListDocuments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2.ListDocumentsResponse", - "client": { - "shortName": "DocumentsClient", - "fullName": "google.cloud.dialogflow.v2.DocumentsClient" - }, - "method": { - "shortName": "ListDocuments", - "fullName": "google.cloud.dialogflow.v2.Documents.ListDocuments", - "service": { - "shortName": "Documents", - "fullName": "google.cloud.dialogflow.v2.Documents" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Documents_GetDocument_async", - "title": "dialogflow getDocument Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified document.", - "canonical": true, - "file": "documents.get_document.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDocument", - "fullName": "google.cloud.dialogflow.v2.Documents.GetDocument", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2.Document", - "client": { - "shortName": "DocumentsClient", - "fullName": "google.cloud.dialogflow.v2.DocumentsClient" - }, - "method": { - "shortName": "GetDocument", - "fullName": "google.cloud.dialogflow.v2.Documents.GetDocument", - "service": { - "shortName": "Documents", - "fullName": "google.cloud.dialogflow.v2.Documents" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Documents_CreateDocument_async", - "title": "dialogflow createDocument Sample", - "origin": "API_DEFINITION", - "description": " Creates a new document. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata] - `response`: [Document][google.cloud.dialogflow.v2.Document]", - "canonical": true, - "file": "documents.create_document.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDocument", - "fullName": "google.cloud.dialogflow.v2.Documents.CreateDocument", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "document", - "type": ".google.cloud.dialogflow.v2.Document" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DocumentsClient", - "fullName": "google.cloud.dialogflow.v2.DocumentsClient" - }, - "method": { - "shortName": "CreateDocument", - "fullName": "google.cloud.dialogflow.v2.Documents.CreateDocument", - "service": { - "shortName": "Documents", - "fullName": "google.cloud.dialogflow.v2.Documents" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Documents_ImportDocuments_async", - "title": "dialogflow importDocuments Sample", - "origin": "API_DEFINITION", - "description": " Creates documents by importing data from external sources. Dialogflow supports up to 350 documents in each request. If you try to import more, Dialogflow will return an error. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata] - `response`: [ImportDocumentsResponse][google.cloud.dialogflow.v2.ImportDocumentsResponse]", - "canonical": true, - "file": "documents.import_documents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportDocuments", - "fullName": "google.cloud.dialogflow.v2.Documents.ImportDocuments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "gcs_source", - "type": ".google.cloud.dialogflow.v2.GcsSources" - }, - { - "name": "document_template", - "type": ".google.cloud.dialogflow.v2.ImportDocumentTemplate" - }, - { - "name": "import_gcs_custom_metadata", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DocumentsClient", - "fullName": "google.cloud.dialogflow.v2.DocumentsClient" - }, - "method": { - "shortName": "ImportDocuments", - "fullName": "google.cloud.dialogflow.v2.Documents.ImportDocuments", - "service": { - "shortName": "Documents", - "fullName": "google.cloud.dialogflow.v2.Documents" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Documents_DeleteDocument_async", - "title": "dialogflow deleteDocument Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified document. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata] - `response`: An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)", - "canonical": true, - "file": "documents.delete_document.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDocument", - "fullName": "google.cloud.dialogflow.v2.Documents.DeleteDocument", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DocumentsClient", - "fullName": "google.cloud.dialogflow.v2.DocumentsClient" - }, - "method": { - "shortName": "DeleteDocument", - "fullName": "google.cloud.dialogflow.v2.Documents.DeleteDocument", - "service": { - "shortName": "Documents", - "fullName": "google.cloud.dialogflow.v2.Documents" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Documents_UpdateDocument_async", - "title": "dialogflow updateDocument Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified document. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata] - `response`: [Document][google.cloud.dialogflow.v2.Document]", - "canonical": true, - "file": "documents.update_document.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDocument", - "fullName": "google.cloud.dialogflow.v2.Documents.UpdateDocument", - "async": true, - "parameters": [ - { - "name": "document", - "type": ".google.cloud.dialogflow.v2.Document" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DocumentsClient", - "fullName": "google.cloud.dialogflow.v2.DocumentsClient" - }, - "method": { - "shortName": "UpdateDocument", - "fullName": "google.cloud.dialogflow.v2.Documents.UpdateDocument", - "service": { - "shortName": "Documents", - "fullName": "google.cloud.dialogflow.v2.Documents" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Documents_ReloadDocument_async", - "title": "dialogflow reloadDocument Sample", - "origin": "API_DEFINITION", - "description": " Reloads the specified document from its specified source, content_uri or content. The previously loaded content of the document will be deleted. Note: Even when the content of the document has not changed, there still may be side effects because of internal implementation changes. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata] - `response`: [Document][google.cloud.dialogflow.v2.Document] Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; only use `projects.knowledgeBases.documents`.", - "canonical": true, - "file": "documents.reload_document.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReloadDocument", - "fullName": "google.cloud.dialogflow.v2.Documents.ReloadDocument", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "content_uri", - "type": "TYPE_STRING" - }, - { - "name": "import_gcs_custom_metadata", - "type": "TYPE_BOOL" - }, - { - "name": "smart_messaging_partial_update", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DocumentsClient", - "fullName": "google.cloud.dialogflow.v2.DocumentsClient" - }, - "method": { - "shortName": "ReloadDocument", - "fullName": "google.cloud.dialogflow.v2.Documents.ReloadDocument", - "service": { - "shortName": "Documents", - "fullName": "google.cloud.dialogflow.v2.Documents" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Documents_ExportDocument_async", - "title": "dialogflow exportDocument Sample", - "origin": "API_DEFINITION", - "description": " Exports a smart messaging candidate document into the specified destination. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2.KnowledgeOperationMetadata] - `response`: [Document][google.cloud.dialogflow.v2.Document]", - "canonical": true, - "file": "documents.export_document.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportDocument", - "fullName": "google.cloud.dialogflow.v2.Documents.ExportDocument", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "gcs_destination", - "type": ".google.cloud.dialogflow.v2.GcsDestination" - }, - { - "name": "export_full_content", - "type": "TYPE_BOOL" - }, - { - "name": "smart_messaging_partial_update", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DocumentsClient", - "fullName": "google.cloud.dialogflow.v2.DocumentsClient" - }, - "method": { - "shortName": "ExportDocument", - "fullName": "google.cloud.dialogflow.v2.Documents.ExportDocument", - "service": { - "shortName": "Documents", - "fullName": "google.cloud.dialogflow.v2.Documents" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_EncryptionSpecService_GetEncryptionSpec_async", - "title": "dialogflow getEncryptionSpec Sample", - "origin": "API_DEFINITION", - "description": " Gets location-level encryption key specification.", - "canonical": true, - "file": "encryption_spec_service.get_encryption_spec.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEncryptionSpec", - "fullName": "google.cloud.dialogflow.v2.EncryptionSpecService.GetEncryptionSpec", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2.EncryptionSpec", - "client": { - "shortName": "EncryptionSpecServiceClient", - "fullName": "google.cloud.dialogflow.v2.EncryptionSpecServiceClient" - }, - "method": { - "shortName": "GetEncryptionSpec", - "fullName": "google.cloud.dialogflow.v2.EncryptionSpecService.GetEncryptionSpec", - "service": { - "shortName": "EncryptionSpecService", - "fullName": "google.cloud.dialogflow.v2.EncryptionSpecService" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_EncryptionSpecService_InitializeEncryptionSpec_async", - "title": "dialogflow initializeEncryptionSpec Sample", - "origin": "API_DEFINITION", - "description": " Initializes a location-level encryption key specification. An error will be thrown if the location has resources already created before the initialization. Once the encryption specification is initialized at a location, it is immutable and all newly created resources under the location will be encrypted with the existing specification.", - "canonical": true, - "file": "encryption_spec_service.initialize_encryption_spec.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "InitializeEncryptionSpec", - "fullName": "google.cloud.dialogflow.v2.EncryptionSpecService.InitializeEncryptionSpec", - "async": true, - "parameters": [ - { - "name": "encryption_spec", - "type": ".google.cloud.dialogflow.v2.EncryptionSpec" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EncryptionSpecServiceClient", - "fullName": "google.cloud.dialogflow.v2.EncryptionSpecServiceClient" - }, - "method": { - "shortName": "InitializeEncryptionSpec", - "fullName": "google.cloud.dialogflow.v2.EncryptionSpecService.InitializeEncryptionSpec", - "service": { - "shortName": "EncryptionSpecService", - "fullName": "google.cloud.dialogflow.v2.EncryptionSpecService" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_EntityTypes_ListEntityTypes_async", - "title": "dialogflow listEntityTypes Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of all entity types in the specified agent.", - "canonical": true, - "file": "entity_types.list_entity_types.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEntityTypes", - "fullName": "google.cloud.dialogflow.v2.EntityTypes.ListEntityTypes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2.ListEntityTypesResponse", - "client": { - "shortName": "EntityTypesClient", - "fullName": "google.cloud.dialogflow.v2.EntityTypesClient" - }, - "method": { - "shortName": "ListEntityTypes", - "fullName": "google.cloud.dialogflow.v2.EntityTypes.ListEntityTypes", - "service": { - "shortName": "EntityTypes", - "fullName": "google.cloud.dialogflow.v2.EntityTypes" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_EntityTypes_GetEntityType_async", - "title": "dialogflow getEntityType Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified entity type.", - "canonical": true, - "file": "entity_types.get_entity_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEntityType", - "fullName": "google.cloud.dialogflow.v2.EntityTypes.GetEntityType", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2.EntityType", - "client": { - "shortName": "EntityTypesClient", - "fullName": "google.cloud.dialogflow.v2.EntityTypesClient" - }, - "method": { - "shortName": "GetEntityType", - "fullName": "google.cloud.dialogflow.v2.EntityTypes.GetEntityType", - "service": { - "shortName": "EntityTypes", - "fullName": "google.cloud.dialogflow.v2.EntityTypes" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_EntityTypes_CreateEntityType_async", - "title": "dialogflow createEntityType Sample", - "origin": "API_DEFINITION", - "description": " Creates an entity type in the specified agent. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).", - "canonical": true, - "file": "entity_types.create_entity_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateEntityType", - "fullName": "google.cloud.dialogflow.v2.EntityTypes.CreateEntityType", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "entity_type", - "type": ".google.cloud.dialogflow.v2.EntityType" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2.EntityType", - "client": { - "shortName": "EntityTypesClient", - "fullName": "google.cloud.dialogflow.v2.EntityTypesClient" - }, - "method": { - "shortName": "CreateEntityType", - "fullName": "google.cloud.dialogflow.v2.EntityTypes.CreateEntityType", - "service": { - "shortName": "EntityTypes", - "fullName": "google.cloud.dialogflow.v2.EntityTypes" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_EntityTypes_UpdateEntityType_async", - "title": "dialogflow updateEntityType Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified entity type. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).", - "canonical": true, - "file": "entity_types.update_entity_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateEntityType", - "fullName": "google.cloud.dialogflow.v2.EntityTypes.UpdateEntityType", - "async": true, - "parameters": [ - { - "name": "entity_type", - "type": ".google.cloud.dialogflow.v2.EntityType" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dialogflow.v2.EntityType", - "client": { - "shortName": "EntityTypesClient", - "fullName": "google.cloud.dialogflow.v2.EntityTypesClient" - }, - "method": { - "shortName": "UpdateEntityType", - "fullName": "google.cloud.dialogflow.v2.EntityTypes.UpdateEntityType", - "service": { - "shortName": "EntityTypes", - "fullName": "google.cloud.dialogflow.v2.EntityTypes" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_EntityTypes_DeleteEntityType_async", - "title": "dialogflow deleteEntityType Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified entity type. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).", - "canonical": true, - "file": "entity_types.delete_entity_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteEntityType", - "fullName": "google.cloud.dialogflow.v2.EntityTypes.DeleteEntityType", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "EntityTypesClient", - "fullName": "google.cloud.dialogflow.v2.EntityTypesClient" - }, - "method": { - "shortName": "DeleteEntityType", - "fullName": "google.cloud.dialogflow.v2.EntityTypes.DeleteEntityType", - "service": { - "shortName": "EntityTypes", - "fullName": "google.cloud.dialogflow.v2.EntityTypes" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_EntityTypes_BatchUpdateEntityTypes_async", - "title": "dialogflow batchUpdateEntityTypes Sample", - "origin": "API_DEFINITION", - "description": " Updates/Creates multiple entity types in the specified agent. This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: - `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: [BatchUpdateEntityTypesResponse][google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse] Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).", - "canonical": true, - "file": "entity_types.batch_update_entity_types.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchUpdateEntityTypes", - "fullName": "google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "entity_type_batch_uri", - "type": "TYPE_STRING" - }, - { - "name": "entity_type_batch_inline", - "type": ".google.cloud.dialogflow.v2.EntityTypeBatch" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EntityTypesClient", - "fullName": "google.cloud.dialogflow.v2.EntityTypesClient" - }, - "method": { - "shortName": "BatchUpdateEntityTypes", - "fullName": "google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes", - "service": { - "shortName": "EntityTypes", - "fullName": "google.cloud.dialogflow.v2.EntityTypes" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_EntityTypes_BatchDeleteEntityTypes_async", - "title": "dialogflow batchDeleteEntityTypes Sample", - "origin": "API_DEFINITION", - "description": " Deletes entity types in the specified agent. This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: - `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).", - "canonical": true, - "file": "entity_types.batch_delete_entity_types.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchDeleteEntityTypes", - "fullName": "google.cloud.dialogflow.v2.EntityTypes.BatchDeleteEntityTypes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "entity_type_names", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EntityTypesClient", - "fullName": "google.cloud.dialogflow.v2.EntityTypesClient" - }, - "method": { - "shortName": "BatchDeleteEntityTypes", - "fullName": "google.cloud.dialogflow.v2.EntityTypes.BatchDeleteEntityTypes", - "service": { - "shortName": "EntityTypes", - "fullName": "google.cloud.dialogflow.v2.EntityTypes" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_EntityTypes_BatchCreateEntities_async", - "title": "dialogflow batchCreateEntities Sample", - "origin": "API_DEFINITION", - "description": " Creates multiple new entities in the specified entity type. This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: - `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).", - "canonical": true, - "file": "entity_types.batch_create_entities.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCreateEntities", - "fullName": "google.cloud.dialogflow.v2.EntityTypes.BatchCreateEntities", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "entities", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EntityTypesClient", - "fullName": "google.cloud.dialogflow.v2.EntityTypesClient" - }, - "method": { - "shortName": "BatchCreateEntities", - "fullName": "google.cloud.dialogflow.v2.EntityTypes.BatchCreateEntities", - "service": { - "shortName": "EntityTypes", - "fullName": "google.cloud.dialogflow.v2.EntityTypes" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_EntityTypes_BatchUpdateEntities_async", - "title": "dialogflow batchUpdateEntities Sample", - "origin": "API_DEFINITION", - "description": " Updates or creates multiple entities in the specified entity type. This method does not affect entities in the entity type that aren't explicitly specified in the request. This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: - `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).", - "canonical": true, - "file": "entity_types.batch_update_entities.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchUpdateEntities", - "fullName": "google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntities", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "entities", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EntityTypesClient", - "fullName": "google.cloud.dialogflow.v2.EntityTypesClient" - }, - "method": { - "shortName": "BatchUpdateEntities", - "fullName": "google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntities", - "service": { - "shortName": "EntityTypes", - "fullName": "google.cloud.dialogflow.v2.EntityTypes" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_EntityTypes_BatchDeleteEntities_async", - "title": "dialogflow batchDeleteEntities Sample", - "origin": "API_DEFINITION", - "description": " Deletes entities in the specified entity type. This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: - `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).", - "canonical": true, - "file": "entity_types.batch_delete_entities.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchDeleteEntities", - "fullName": "google.cloud.dialogflow.v2.EntityTypes.BatchDeleteEntities", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "entity_values", - "type": "TYPE_STRING[]" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EntityTypesClient", - "fullName": "google.cloud.dialogflow.v2.EntityTypesClient" - }, - "method": { - "shortName": "BatchDeleteEntities", - "fullName": "google.cloud.dialogflow.v2.EntityTypes.BatchDeleteEntities", - "service": { - "shortName": "EntityTypes", - "fullName": "google.cloud.dialogflow.v2.EntityTypes" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Environments_ListEnvironments_async", - "title": "dialogflow listEnvironments Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of all non-default environments of the specified agent.", - "canonical": true, - "file": "environments.list_environments.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEnvironments", - "fullName": "google.cloud.dialogflow.v2.Environments.ListEnvironments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2.ListEnvironmentsResponse", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.dialogflow.v2.EnvironmentsClient" - }, - "method": { - "shortName": "ListEnvironments", - "fullName": "google.cloud.dialogflow.v2.Environments.ListEnvironments", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.dialogflow.v2.Environments" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Environments_GetEnvironment_async", - "title": "dialogflow getEnvironment Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified agent environment.", - "canonical": true, - "file": "environments.get_environment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEnvironment", - "fullName": "google.cloud.dialogflow.v2.Environments.GetEnvironment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2.Environment", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.dialogflow.v2.EnvironmentsClient" - }, - "method": { - "shortName": "GetEnvironment", - "fullName": "google.cloud.dialogflow.v2.Environments.GetEnvironment", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.dialogflow.v2.Environments" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Environments_CreateEnvironment_async", - "title": "dialogflow createEnvironment Sample", - "origin": "API_DEFINITION", - "description": " Creates an agent environment.", - "canonical": true, - "file": "environments.create_environment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateEnvironment", - "fullName": "google.cloud.dialogflow.v2.Environments.CreateEnvironment", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "environment", - "type": ".google.cloud.dialogflow.v2.Environment" - }, - { - "name": "environment_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2.Environment", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.dialogflow.v2.EnvironmentsClient" - }, - "method": { - "shortName": "CreateEnvironment", - "fullName": "google.cloud.dialogflow.v2.Environments.CreateEnvironment", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.dialogflow.v2.Environments" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Environments_UpdateEnvironment_async", - "title": "dialogflow updateEnvironment Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified agent environment. This method allows you to deploy new agent versions into the environment. When an environment is pointed to a new agent version by setting `environment.agent_version`, the environment is temporarily set to the `LOADING` state. During that time, the environment continues serving the previous version of the agent. After the new agent version is done loading, the environment is set back to the `RUNNING` state. You can use \"-\" as Environment ID in environment name to update an agent version in the default environment. WARNING: this will negate all recent changes to the draft agent and can't be undone. You may want to save the draft agent to a version before calling this method.", - "canonical": true, - "file": "environments.update_environment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateEnvironment", - "fullName": "google.cloud.dialogflow.v2.Environments.UpdateEnvironment", - "async": true, - "parameters": [ - { - "name": "environment", - "type": ".google.cloud.dialogflow.v2.Environment" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "allow_load_to_draft_and_discard_changes", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.dialogflow.v2.Environment", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.dialogflow.v2.EnvironmentsClient" - }, - "method": { - "shortName": "UpdateEnvironment", - "fullName": "google.cloud.dialogflow.v2.Environments.UpdateEnvironment", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.dialogflow.v2.Environments" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Environments_DeleteEnvironment_async", - "title": "dialogflow deleteEnvironment Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified agent environment.", - "canonical": true, - "file": "environments.delete_environment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteEnvironment", - "fullName": "google.cloud.dialogflow.v2.Environments.DeleteEnvironment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.dialogflow.v2.EnvironmentsClient" - }, - "method": { - "shortName": "DeleteEnvironment", - "fullName": "google.cloud.dialogflow.v2.Environments.DeleteEnvironment", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.dialogflow.v2.Environments" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Environments_GetEnvironmentHistory_async", - "title": "dialogflow getEnvironmentHistory Sample", - "origin": "API_DEFINITION", - "description": " Gets the history of the specified environment.", - "canonical": true, - "file": "environments.get_environment_history.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEnvironmentHistory", - "fullName": "google.cloud.dialogflow.v2.Environments.GetEnvironmentHistory", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2.EnvironmentHistory", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.dialogflow.v2.EnvironmentsClient" - }, - "method": { - "shortName": "GetEnvironmentHistory", - "fullName": "google.cloud.dialogflow.v2.Environments.GetEnvironmentHistory", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.dialogflow.v2.Environments" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Fulfillments_GetFulfillment_async", - "title": "dialogflow getFulfillment Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the fulfillment.", - "canonical": true, - "file": "fulfillments.get_fulfillment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFulfillment", - "fullName": "google.cloud.dialogflow.v2.Fulfillments.GetFulfillment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2.Fulfillment", - "client": { - "shortName": "FulfillmentsClient", - "fullName": "google.cloud.dialogflow.v2.FulfillmentsClient" - }, - "method": { - "shortName": "GetFulfillment", - "fullName": "google.cloud.dialogflow.v2.Fulfillments.GetFulfillment", - "service": { - "shortName": "Fulfillments", - "fullName": "google.cloud.dialogflow.v2.Fulfillments" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Fulfillments_UpdateFulfillment_async", - "title": "dialogflow updateFulfillment Sample", - "origin": "API_DEFINITION", - "description": " Updates the fulfillment.", - "canonical": true, - "file": "fulfillments.update_fulfillment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateFulfillment", - "fullName": "google.cloud.dialogflow.v2.Fulfillments.UpdateFulfillment", - "async": true, - "parameters": [ - { - "name": "fulfillment", - "type": ".google.cloud.dialogflow.v2.Fulfillment" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dialogflow.v2.Fulfillment", - "client": { - "shortName": "FulfillmentsClient", - "fullName": "google.cloud.dialogflow.v2.FulfillmentsClient" - }, - "method": { - "shortName": "UpdateFulfillment", - "fullName": "google.cloud.dialogflow.v2.Fulfillments.UpdateFulfillment", - "service": { - "shortName": "Fulfillments", - "fullName": "google.cloud.dialogflow.v2.Fulfillments" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_GeneratorEvaluations_CreateGeneratorEvaluation_async", - "title": "dialogflow createGeneratorEvaluation Sample", - "origin": "API_DEFINITION", - "description": " Creates evaluation of a generator.", - "canonical": true, - "file": "generator_evaluations.create_generator_evaluation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateGeneratorEvaluation", - "fullName": "google.cloud.dialogflow.v2.GeneratorEvaluations.CreateGeneratorEvaluation", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "generator_evaluation", - "type": ".google.cloud.dialogflow.v2.GeneratorEvaluation" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GeneratorEvaluationsClient", - "fullName": "google.cloud.dialogflow.v2.GeneratorEvaluationsClient" - }, - "method": { - "shortName": "CreateGeneratorEvaluation", - "fullName": "google.cloud.dialogflow.v2.GeneratorEvaluations.CreateGeneratorEvaluation", - "service": { - "shortName": "GeneratorEvaluations", - "fullName": "google.cloud.dialogflow.v2.GeneratorEvaluations" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_GeneratorEvaluations_GetGeneratorEvaluation_async", - "title": "dialogflow getGeneratorEvaluation Sample", - "origin": "API_DEFINITION", - "description": " Gets an evaluation of generator.", - "canonical": true, - "file": "generator_evaluations.get_generator_evaluation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetGeneratorEvaluation", - "fullName": "google.cloud.dialogflow.v2.GeneratorEvaluations.GetGeneratorEvaluation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2.GeneratorEvaluation", - "client": { - "shortName": "GeneratorEvaluationsClient", - "fullName": "google.cloud.dialogflow.v2.GeneratorEvaluationsClient" - }, - "method": { - "shortName": "GetGeneratorEvaluation", - "fullName": "google.cloud.dialogflow.v2.GeneratorEvaluations.GetGeneratorEvaluation", - "service": { - "shortName": "GeneratorEvaluations", - "fullName": "google.cloud.dialogflow.v2.GeneratorEvaluations" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_GeneratorEvaluations_ListGeneratorEvaluations_async", - "title": "dialogflow listGeneratorEvaluations Sample", - "origin": "API_DEFINITION", - "description": " Lists evaluations of generator.", - "canonical": true, - "file": "generator_evaluations.list_generator_evaluations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListGeneratorEvaluations", - "fullName": "google.cloud.dialogflow.v2.GeneratorEvaluations.ListGeneratorEvaluations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2.ListGeneratorEvaluationsResponse", - "client": { - "shortName": "GeneratorEvaluationsClient", - "fullName": "google.cloud.dialogflow.v2.GeneratorEvaluationsClient" - }, - "method": { - "shortName": "ListGeneratorEvaluations", - "fullName": "google.cloud.dialogflow.v2.GeneratorEvaluations.ListGeneratorEvaluations", - "service": { - "shortName": "GeneratorEvaluations", - "fullName": "google.cloud.dialogflow.v2.GeneratorEvaluations" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_GeneratorEvaluations_DeleteGeneratorEvaluation_async", - "title": "dialogflow deleteGeneratorEvaluation Sample", - "origin": "API_DEFINITION", - "description": " Deletes an evaluation of generator.", - "canonical": true, - "file": "generator_evaluations.delete_generator_evaluation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteGeneratorEvaluation", - "fullName": "google.cloud.dialogflow.v2.GeneratorEvaluations.DeleteGeneratorEvaluation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "GeneratorEvaluationsClient", - "fullName": "google.cloud.dialogflow.v2.GeneratorEvaluationsClient" - }, - "method": { - "shortName": "DeleteGeneratorEvaluation", - "fullName": "google.cloud.dialogflow.v2.GeneratorEvaluations.DeleteGeneratorEvaluation", - "service": { - "shortName": "GeneratorEvaluations", - "fullName": "google.cloud.dialogflow.v2.GeneratorEvaluations" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Generators_CreateGenerator_async", - "title": "dialogflow createGenerator Sample", - "origin": "API_DEFINITION", - "description": " Creates a generator.", - "canonical": true, - "file": "generators.create_generator.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateGenerator", - "fullName": "google.cloud.dialogflow.v2.Generators.CreateGenerator", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "generator", - "type": ".google.cloud.dialogflow.v2.Generator" - }, - { - "name": "generator_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2.Generator", - "client": { - "shortName": "GeneratorsClient", - "fullName": "google.cloud.dialogflow.v2.GeneratorsClient" - }, - "method": { - "shortName": "CreateGenerator", - "fullName": "google.cloud.dialogflow.v2.Generators.CreateGenerator", - "service": { - "shortName": "Generators", - "fullName": "google.cloud.dialogflow.v2.Generators" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Generators_GetGenerator_async", - "title": "dialogflow getGenerator Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a generator.", - "canonical": true, - "file": "generators.get_generator.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetGenerator", - "fullName": "google.cloud.dialogflow.v2.Generators.GetGenerator", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2.Generator", - "client": { - "shortName": "GeneratorsClient", - "fullName": "google.cloud.dialogflow.v2.GeneratorsClient" - }, - "method": { - "shortName": "GetGenerator", - "fullName": "google.cloud.dialogflow.v2.Generators.GetGenerator", - "service": { - "shortName": "Generators", - "fullName": "google.cloud.dialogflow.v2.Generators" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Generators_ListGenerators_async", - "title": "dialogflow listGenerators Sample", - "origin": "API_DEFINITION", - "description": " Lists generators.", - "canonical": true, - "file": "generators.list_generators.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListGenerators", - "fullName": "google.cloud.dialogflow.v2.Generators.ListGenerators", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2.ListGeneratorsResponse", - "client": { - "shortName": "GeneratorsClient", - "fullName": "google.cloud.dialogflow.v2.GeneratorsClient" - }, - "method": { - "shortName": "ListGenerators", - "fullName": "google.cloud.dialogflow.v2.Generators.ListGenerators", - "service": { - "shortName": "Generators", - "fullName": "google.cloud.dialogflow.v2.Generators" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Generators_DeleteGenerator_async", - "title": "dialogflow deleteGenerator Sample", - "origin": "API_DEFINITION", - "description": " Deletes a generator.", - "canonical": true, - "file": "generators.delete_generator.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteGenerator", - "fullName": "google.cloud.dialogflow.v2.Generators.DeleteGenerator", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "GeneratorsClient", - "fullName": "google.cloud.dialogflow.v2.GeneratorsClient" - }, - "method": { - "shortName": "DeleteGenerator", - "fullName": "google.cloud.dialogflow.v2.Generators.DeleteGenerator", - "service": { - "shortName": "Generators", - "fullName": "google.cloud.dialogflow.v2.Generators" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Generators_UpdateGenerator_async", - "title": "dialogflow updateGenerator Sample", - "origin": "API_DEFINITION", - "description": " Updates a generator.", - "canonical": true, - "file": "generators.update_generator.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateGenerator", - "fullName": "google.cloud.dialogflow.v2.Generators.UpdateGenerator", - "async": true, - "parameters": [ - { - "name": "generator", - "type": ".google.cloud.dialogflow.v2.Generator" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dialogflow.v2.Generator", - "client": { - "shortName": "GeneratorsClient", - "fullName": "google.cloud.dialogflow.v2.GeneratorsClient" - }, - "method": { - "shortName": "UpdateGenerator", - "fullName": "google.cloud.dialogflow.v2.Generators.UpdateGenerator", - "service": { - "shortName": "Generators", - "fullName": "google.cloud.dialogflow.v2.Generators" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Intents_ListIntents_async", - "title": "dialogflow listIntents Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of all intents in the specified agent.", - "canonical": true, - "file": "intents.list_intents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListIntents", - "fullName": "google.cloud.dialogflow.v2.Intents.ListIntents", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "intent_view", - "type": ".google.cloud.dialogflow.v2.IntentView" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2.ListIntentsResponse", - "client": { - "shortName": "IntentsClient", - "fullName": "google.cloud.dialogflow.v2.IntentsClient" - }, - "method": { - "shortName": "ListIntents", - "fullName": "google.cloud.dialogflow.v2.Intents.ListIntents", - "service": { - "shortName": "Intents", - "fullName": "google.cloud.dialogflow.v2.Intents" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Intents_GetIntent_async", - "title": "dialogflow getIntent Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified intent.", - "canonical": true, - "file": "intents.get_intent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIntent", - "fullName": "google.cloud.dialogflow.v2.Intents.GetIntent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "intent_view", - "type": ".google.cloud.dialogflow.v2.IntentView" - } - ], - "resultType": ".google.cloud.dialogflow.v2.Intent", - "client": { - "shortName": "IntentsClient", - "fullName": "google.cloud.dialogflow.v2.IntentsClient" - }, - "method": { - "shortName": "GetIntent", - "fullName": "google.cloud.dialogflow.v2.Intents.GetIntent", - "service": { - "shortName": "Intents", - "fullName": "google.cloud.dialogflow.v2.Intents" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Intents_CreateIntent_async", - "title": "dialogflow createIntent Sample", - "origin": "API_DEFINITION", - "description": " Creates an intent in the specified agent. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).", - "canonical": true, - "file": "intents.create_intent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateIntent", - "fullName": "google.cloud.dialogflow.v2.Intents.CreateIntent", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "intent", - "type": ".google.cloud.dialogflow.v2.Intent" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "intent_view", - "type": ".google.cloud.dialogflow.v2.IntentView" - } - ], - "resultType": ".google.cloud.dialogflow.v2.Intent", - "client": { - "shortName": "IntentsClient", - "fullName": "google.cloud.dialogflow.v2.IntentsClient" - }, - "method": { - "shortName": "CreateIntent", - "fullName": "google.cloud.dialogflow.v2.Intents.CreateIntent", - "service": { - "shortName": "Intents", - "fullName": "google.cloud.dialogflow.v2.Intents" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Intents_UpdateIntent_async", - "title": "dialogflow updateIntent Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified intent. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).", - "canonical": true, - "file": "intents.update_intent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateIntent", - "fullName": "google.cloud.dialogflow.v2.Intents.UpdateIntent", - "async": true, - "parameters": [ - { - "name": "intent", - "type": ".google.cloud.dialogflow.v2.Intent" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "intent_view", - "type": ".google.cloud.dialogflow.v2.IntentView" - } - ], - "resultType": ".google.cloud.dialogflow.v2.Intent", - "client": { - "shortName": "IntentsClient", - "fullName": "google.cloud.dialogflow.v2.IntentsClient" - }, - "method": { - "shortName": "UpdateIntent", - "fullName": "google.cloud.dialogflow.v2.Intents.UpdateIntent", - "service": { - "shortName": "Intents", - "fullName": "google.cloud.dialogflow.v2.Intents" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Intents_DeleteIntent_async", - "title": "dialogflow deleteIntent Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified intent and its direct or indirect followup intents. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).", - "canonical": true, - "file": "intents.delete_intent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteIntent", - "fullName": "google.cloud.dialogflow.v2.Intents.DeleteIntent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "IntentsClient", - "fullName": "google.cloud.dialogflow.v2.IntentsClient" - }, - "method": { - "shortName": "DeleteIntent", - "fullName": "google.cloud.dialogflow.v2.Intents.DeleteIntent", - "service": { - "shortName": "Intents", - "fullName": "google.cloud.dialogflow.v2.Intents" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Intents_BatchUpdateIntents_async", - "title": "dialogflow batchUpdateIntents Sample", - "origin": "API_DEFINITION", - "description": " Updates/Creates multiple intents in the specified agent. This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: - `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: [BatchUpdateIntentsResponse][google.cloud.dialogflow.v2.BatchUpdateIntentsResponse] Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).", - "canonical": true, - "file": "intents.batch_update_intents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchUpdateIntents", - "fullName": "google.cloud.dialogflow.v2.Intents.BatchUpdateIntents", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "intent_batch_uri", - "type": "TYPE_STRING" - }, - { - "name": "intent_batch_inline", - "type": ".google.cloud.dialogflow.v2.IntentBatch" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "intent_view", - "type": ".google.cloud.dialogflow.v2.IntentView" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "IntentsClient", - "fullName": "google.cloud.dialogflow.v2.IntentsClient" - }, - "method": { - "shortName": "BatchUpdateIntents", - "fullName": "google.cloud.dialogflow.v2.Intents.BatchUpdateIntents", - "service": { - "shortName": "Intents", - "fullName": "google.cloud.dialogflow.v2.Intents" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Intents_BatchDeleteIntents_async", - "title": "dialogflow batchDeleteIntents Sample", - "origin": "API_DEFINITION", - "description": " Deletes intents in the specified agent. This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: - `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).", - "canonical": true, - "file": "intents.batch_delete_intents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchDeleteIntents", - "fullName": "google.cloud.dialogflow.v2.Intents.BatchDeleteIntents", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "intents", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "IntentsClient", - "fullName": "google.cloud.dialogflow.v2.IntentsClient" - }, - "method": { - "shortName": "BatchDeleteIntents", - "fullName": "google.cloud.dialogflow.v2.Intents.BatchDeleteIntents", - "service": { - "shortName": "Intents", - "fullName": "google.cloud.dialogflow.v2.Intents" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_KnowledgeBases_ListKnowledgeBases_async", - "title": "dialogflow listKnowledgeBases Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of all knowledge bases of the specified agent.", - "canonical": true, - "file": "knowledge_bases.list_knowledge_bases.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListKnowledgeBases", - "fullName": "google.cloud.dialogflow.v2.KnowledgeBases.ListKnowledgeBases", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2.ListKnowledgeBasesResponse", - "client": { - "shortName": "KnowledgeBasesClient", - "fullName": "google.cloud.dialogflow.v2.KnowledgeBasesClient" - }, - "method": { - "shortName": "ListKnowledgeBases", - "fullName": "google.cloud.dialogflow.v2.KnowledgeBases.ListKnowledgeBases", - "service": { - "shortName": "KnowledgeBases", - "fullName": "google.cloud.dialogflow.v2.KnowledgeBases" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_KnowledgeBases_GetKnowledgeBase_async", - "title": "dialogflow getKnowledgeBase Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified knowledge base.", - "canonical": true, - "file": "knowledge_bases.get_knowledge_base.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetKnowledgeBase", - "fullName": "google.cloud.dialogflow.v2.KnowledgeBases.GetKnowledgeBase", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2.KnowledgeBase", - "client": { - "shortName": "KnowledgeBasesClient", - "fullName": "google.cloud.dialogflow.v2.KnowledgeBasesClient" - }, - "method": { - "shortName": "GetKnowledgeBase", - "fullName": "google.cloud.dialogflow.v2.KnowledgeBases.GetKnowledgeBase", - "service": { - "shortName": "KnowledgeBases", - "fullName": "google.cloud.dialogflow.v2.KnowledgeBases" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_KnowledgeBases_CreateKnowledgeBase_async", - "title": "dialogflow createKnowledgeBase Sample", - "origin": "API_DEFINITION", - "description": " Creates a knowledge base.", - "canonical": true, - "file": "knowledge_bases.create_knowledge_base.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateKnowledgeBase", - "fullName": "google.cloud.dialogflow.v2.KnowledgeBases.CreateKnowledgeBase", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "knowledge_base", - "type": ".google.cloud.dialogflow.v2.KnowledgeBase" - } - ], - "resultType": ".google.cloud.dialogflow.v2.KnowledgeBase", - "client": { - "shortName": "KnowledgeBasesClient", - "fullName": "google.cloud.dialogflow.v2.KnowledgeBasesClient" - }, - "method": { - "shortName": "CreateKnowledgeBase", - "fullName": "google.cloud.dialogflow.v2.KnowledgeBases.CreateKnowledgeBase", - "service": { - "shortName": "KnowledgeBases", - "fullName": "google.cloud.dialogflow.v2.KnowledgeBases" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_KnowledgeBases_DeleteKnowledgeBase_async", - "title": "dialogflow deleteKnowledgeBase Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified knowledge base.", - "canonical": true, - "file": "knowledge_bases.delete_knowledge_base.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteKnowledgeBase", - "fullName": "google.cloud.dialogflow.v2.KnowledgeBases.DeleteKnowledgeBase", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "KnowledgeBasesClient", - "fullName": "google.cloud.dialogflow.v2.KnowledgeBasesClient" - }, - "method": { - "shortName": "DeleteKnowledgeBase", - "fullName": "google.cloud.dialogflow.v2.KnowledgeBases.DeleteKnowledgeBase", - "service": { - "shortName": "KnowledgeBases", - "fullName": "google.cloud.dialogflow.v2.KnowledgeBases" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_KnowledgeBases_UpdateKnowledgeBase_async", - "title": "dialogflow updateKnowledgeBase Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified knowledge base.", - "canonical": true, - "file": "knowledge_bases.update_knowledge_base.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateKnowledgeBase", - "fullName": "google.cloud.dialogflow.v2.KnowledgeBases.UpdateKnowledgeBase", - "async": true, - "parameters": [ - { - "name": "knowledge_base", - "type": ".google.cloud.dialogflow.v2.KnowledgeBase" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dialogflow.v2.KnowledgeBase", - "client": { - "shortName": "KnowledgeBasesClient", - "fullName": "google.cloud.dialogflow.v2.KnowledgeBasesClient" - }, - "method": { - "shortName": "UpdateKnowledgeBase", - "fullName": "google.cloud.dialogflow.v2.KnowledgeBases.UpdateKnowledgeBase", - "service": { - "shortName": "KnowledgeBases", - "fullName": "google.cloud.dialogflow.v2.KnowledgeBases" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Participants_CreateParticipant_async", - "title": "dialogflow createParticipant Sample", - "origin": "API_DEFINITION", - "description": " Creates a new participant in a conversation.", - "canonical": true, - "file": "participants.create_participant.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateParticipant", - "fullName": "google.cloud.dialogflow.v2.Participants.CreateParticipant", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "participant", - "type": ".google.cloud.dialogflow.v2.Participant" - } - ], - "resultType": ".google.cloud.dialogflow.v2.Participant", - "client": { - "shortName": "ParticipantsClient", - "fullName": "google.cloud.dialogflow.v2.ParticipantsClient" - }, - "method": { - "shortName": "CreateParticipant", - "fullName": "google.cloud.dialogflow.v2.Participants.CreateParticipant", - "service": { - "shortName": "Participants", - "fullName": "google.cloud.dialogflow.v2.Participants" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Participants_GetParticipant_async", - "title": "dialogflow getParticipant Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a conversation participant.", - "canonical": true, - "file": "participants.get_participant.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetParticipant", - "fullName": "google.cloud.dialogflow.v2.Participants.GetParticipant", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2.Participant", - "client": { - "shortName": "ParticipantsClient", - "fullName": "google.cloud.dialogflow.v2.ParticipantsClient" - }, - "method": { - "shortName": "GetParticipant", - "fullName": "google.cloud.dialogflow.v2.Participants.GetParticipant", - "service": { - "shortName": "Participants", - "fullName": "google.cloud.dialogflow.v2.Participants" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Participants_ListParticipants_async", - "title": "dialogflow listParticipants Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of all participants in the specified conversation.", - "canonical": true, - "file": "participants.list_participants.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListParticipants", - "fullName": "google.cloud.dialogflow.v2.Participants.ListParticipants", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2.ListParticipantsResponse", - "client": { - "shortName": "ParticipantsClient", - "fullName": "google.cloud.dialogflow.v2.ParticipantsClient" - }, - "method": { - "shortName": "ListParticipants", - "fullName": "google.cloud.dialogflow.v2.Participants.ListParticipants", - "service": { - "shortName": "Participants", - "fullName": "google.cloud.dialogflow.v2.Participants" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Participants_UpdateParticipant_async", - "title": "dialogflow updateParticipant Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified participant.", - "canonical": true, - "file": "participants.update_participant.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateParticipant", - "fullName": "google.cloud.dialogflow.v2.Participants.UpdateParticipant", - "async": true, - "parameters": [ - { - "name": "participant", - "type": ".google.cloud.dialogflow.v2.Participant" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dialogflow.v2.Participant", - "client": { - "shortName": "ParticipantsClient", - "fullName": "google.cloud.dialogflow.v2.ParticipantsClient" - }, - "method": { - "shortName": "UpdateParticipant", - "fullName": "google.cloud.dialogflow.v2.Participants.UpdateParticipant", - "service": { - "shortName": "Participants", - "fullName": "google.cloud.dialogflow.v2.Participants" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Participants_AnalyzeContent_async", - "title": "dialogflow analyzeContent Sample", - "origin": "API_DEFINITION", - "description": " Adds a text (chat, for example), or audio (phone recording, for example) message from a participant into the conversation. Note: Always use agent versions for production traffic sent to virtual agents. See [Versions and environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).", - "canonical": true, - "file": "participants.analyze_content.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 101, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AnalyzeContent", - "fullName": "google.cloud.dialogflow.v2.Participants.AnalyzeContent", - "async": true, - "parameters": [ - { - "name": "participant", - "type": "TYPE_STRING" - }, - { - "name": "text_input", - "type": ".google.cloud.dialogflow.v2.TextInput" - }, - { - "name": "audio_input", - "type": ".google.cloud.dialogflow.v2.AudioInput" - }, - { - "name": "event_input", - "type": ".google.cloud.dialogflow.v2.EventInput" - }, - { - "name": "suggestion_input", - "type": ".google.cloud.dialogflow.v2.SuggestionInput" - }, - { - "name": "reply_audio_config", - "type": ".google.cloud.dialogflow.v2.OutputAudioConfig" - }, - { - "name": "query_params", - "type": ".google.cloud.dialogflow.v2.QueryParameters" - }, - { - "name": "assist_query_params", - "type": ".google.cloud.dialogflow.v2.AssistQueryParameters" - }, - { - "name": "cx_parameters", - "type": ".google.protobuf.Struct" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2.AnalyzeContentResponse", - "client": { - "shortName": "ParticipantsClient", - "fullName": "google.cloud.dialogflow.v2.ParticipantsClient" - }, - "method": { - "shortName": "AnalyzeContent", - "fullName": "google.cloud.dialogflow.v2.Participants.AnalyzeContent", - "service": { - "shortName": "Participants", - "fullName": "google.cloud.dialogflow.v2.Participants" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Participants_StreamingAnalyzeContent_async", - "title": "dialogflow streamingAnalyzeContent Sample", - "origin": "API_DEFINITION", - "description": " Adds a text (chat, for example), or audio (phone recording, for example) message from a participant into the conversation. Note: This method is only available through the gRPC API (not REST). The top-level message sent to the client by the server is `StreamingAnalyzeContentResponse`. Multiple response messages can be returned in order. The first one or more messages contain the `recognition_result` field. Each result represents a more complete transcript of what the user said. The next message contains the `reply_text` field and potentially the `reply_audio` field. The message can also contain the `automated_agent_reply` field. Note: Always use agent versions for production traffic sent to virtual agents. See [Versions and environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).", - "canonical": true, - "file": "participants.streaming_analyze_content.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 147, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StreamingAnalyzeContent", - "fullName": "google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent", - "async": true, - "parameters": [ - { - "name": "participant", - "type": "TYPE_STRING" - }, - { - "name": "audio_config", - "type": ".google.cloud.dialogflow.v2.InputAudioConfig" - }, - { - "name": "text_config", - "type": ".google.cloud.dialogflow.v2.InputTextConfig" - }, - { - "name": "reply_audio_config", - "type": ".google.cloud.dialogflow.v2.OutputAudioConfig" - }, - { - "name": "input_audio", - "type": "TYPE_BYTES" - }, - { - "name": "input_text", - "type": "TYPE_STRING" - }, - { - "name": "input_dtmf", - "type": ".google.cloud.dialogflow.v2.TelephonyDtmfEvents" - }, - { - "name": "query_params", - "type": ".google.cloud.dialogflow.v2.QueryParameters" - }, - { - "name": "assist_query_params", - "type": ".google.cloud.dialogflow.v2.AssistQueryParameters" - }, - { - "name": "cx_parameters", - "type": ".google.protobuf.Struct" - }, - { - "name": "enable_extended_streaming", - "type": "TYPE_BOOL" - }, - { - "name": "enable_partial_automated_agent_reply", - "type": "TYPE_BOOL" - }, - { - "name": "output_multiple_utterances", - "type": "TYPE_BOOL" - }, - { - "name": "enable_debugging_info", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.dialogflow.v2.StreamingAnalyzeContentResponse", - "client": { - "shortName": "ParticipantsClient", - "fullName": "google.cloud.dialogflow.v2.ParticipantsClient" - }, - "method": { - "shortName": "StreamingAnalyzeContent", - "fullName": "google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent", - "service": { - "shortName": "Participants", - "fullName": "google.cloud.dialogflow.v2.Participants" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Participants_SuggestArticles_async", - "title": "dialogflow suggestArticles Sample", - "origin": "API_DEFINITION", - "description": " Gets suggested articles for a participant based on specific historical messages.", - "canonical": true, - "file": "participants.suggest_articles.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SuggestArticles", - "fullName": "google.cloud.dialogflow.v2.Participants.SuggestArticles", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "latest_message", - "type": "TYPE_STRING" - }, - { - "name": "context_size", - "type": "TYPE_INT32" - }, - { - "name": "assist_query_params", - "type": ".google.cloud.dialogflow.v2.AssistQueryParameters" - } - ], - "resultType": ".google.cloud.dialogflow.v2.SuggestArticlesResponse", - "client": { - "shortName": "ParticipantsClient", - "fullName": "google.cloud.dialogflow.v2.ParticipantsClient" - }, - "method": { - "shortName": "SuggestArticles", - "fullName": "google.cloud.dialogflow.v2.Participants.SuggestArticles", - "service": { - "shortName": "Participants", - "fullName": "google.cloud.dialogflow.v2.Participants" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Participants_SuggestFaqAnswers_async", - "title": "dialogflow suggestFaqAnswers Sample", - "origin": "API_DEFINITION", - "description": " Gets suggested faq answers for a participant based on specific historical messages.", - "canonical": true, - "file": "participants.suggest_faq_answers.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SuggestFaqAnswers", - "fullName": "google.cloud.dialogflow.v2.Participants.SuggestFaqAnswers", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "latest_message", - "type": "TYPE_STRING" - }, - { - "name": "context_size", - "type": "TYPE_INT32" - }, - { - "name": "assist_query_params", - "type": ".google.cloud.dialogflow.v2.AssistQueryParameters" - } - ], - "resultType": ".google.cloud.dialogflow.v2.SuggestFaqAnswersResponse", - "client": { - "shortName": "ParticipantsClient", - "fullName": "google.cloud.dialogflow.v2.ParticipantsClient" - }, - "method": { - "shortName": "SuggestFaqAnswers", - "fullName": "google.cloud.dialogflow.v2.Participants.SuggestFaqAnswers", - "service": { - "shortName": "Participants", - "fullName": "google.cloud.dialogflow.v2.Participants" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Participants_SuggestSmartReplies_async", - "title": "dialogflow suggestSmartReplies Sample", - "origin": "API_DEFINITION", - "description": " Gets smart replies for a participant based on specific historical messages.", - "canonical": true, - "file": "participants.suggest_smart_replies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SuggestSmartReplies", - "fullName": "google.cloud.dialogflow.v2.Participants.SuggestSmartReplies", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "current_text_input", - "type": ".google.cloud.dialogflow.v2.TextInput" - }, - { - "name": "latest_message", - "type": "TYPE_STRING" - }, - { - "name": "context_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.dialogflow.v2.SuggestSmartRepliesResponse", - "client": { - "shortName": "ParticipantsClient", - "fullName": "google.cloud.dialogflow.v2.ParticipantsClient" - }, - "method": { - "shortName": "SuggestSmartReplies", - "fullName": "google.cloud.dialogflow.v2.Participants.SuggestSmartReplies", - "service": { - "shortName": "Participants", - "fullName": "google.cloud.dialogflow.v2.Participants" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Participants_SuggestKnowledgeAssist_async", - "title": "dialogflow suggestKnowledgeAssist Sample", - "origin": "API_DEFINITION", - "description": " Gets knowledge assist suggestions based on historical messages.", - "canonical": true, - "file": "participants.suggest_knowledge_assist.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SuggestKnowledgeAssist", - "fullName": "google.cloud.dialogflow.v2.Participants.SuggestKnowledgeAssist", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "latest_message", - "type": "TYPE_STRING" - }, - { - "name": "context_size", - "type": "TYPE_INT32" - }, - { - "name": "previous_suggested_query", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2.SuggestKnowledgeAssistResponse", - "client": { - "shortName": "ParticipantsClient", - "fullName": "google.cloud.dialogflow.v2.ParticipantsClient" - }, - "method": { - "shortName": "SuggestKnowledgeAssist", - "fullName": "google.cloud.dialogflow.v2.Participants.SuggestKnowledgeAssist", - "service": { - "shortName": "Participants", - "fullName": "google.cloud.dialogflow.v2.Participants" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_SessionEntityTypes_ListSessionEntityTypes_async", - "title": "dialogflow listSessionEntityTypes Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of all session entity types in the specified session. This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.", - "canonical": true, - "file": "session_entity_types.list_session_entity_types.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSessionEntityTypes", - "fullName": "google.cloud.dialogflow.v2.SessionEntityTypes.ListSessionEntityTypes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2.ListSessionEntityTypesResponse", - "client": { - "shortName": "SessionEntityTypesClient", - "fullName": "google.cloud.dialogflow.v2.SessionEntityTypesClient" - }, - "method": { - "shortName": "ListSessionEntityTypes", - "fullName": "google.cloud.dialogflow.v2.SessionEntityTypes.ListSessionEntityTypes", - "service": { - "shortName": "SessionEntityTypes", - "fullName": "google.cloud.dialogflow.v2.SessionEntityTypes" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_SessionEntityTypes_GetSessionEntityType_async", - "title": "dialogflow getSessionEntityType Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified session entity type. This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.", - "canonical": true, - "file": "session_entity_types.get_session_entity_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSessionEntityType", - "fullName": "google.cloud.dialogflow.v2.SessionEntityTypes.GetSessionEntityType", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2.SessionEntityType", - "client": { - "shortName": "SessionEntityTypesClient", - "fullName": "google.cloud.dialogflow.v2.SessionEntityTypesClient" - }, - "method": { - "shortName": "GetSessionEntityType", - "fullName": "google.cloud.dialogflow.v2.SessionEntityTypes.GetSessionEntityType", - "service": { - "shortName": "SessionEntityTypes", - "fullName": "google.cloud.dialogflow.v2.SessionEntityTypes" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_SessionEntityTypes_CreateSessionEntityType_async", - "title": "dialogflow createSessionEntityType Sample", - "origin": "API_DEFINITION", - "description": " Creates a session entity type. If the specified session entity type already exists, overrides the session entity type. This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.", - "canonical": true, - "file": "session_entity_types.create_session_entity_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSessionEntityType", - "fullName": "google.cloud.dialogflow.v2.SessionEntityTypes.CreateSessionEntityType", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "session_entity_type", - "type": ".google.cloud.dialogflow.v2.SessionEntityType" - } - ], - "resultType": ".google.cloud.dialogflow.v2.SessionEntityType", - "client": { - "shortName": "SessionEntityTypesClient", - "fullName": "google.cloud.dialogflow.v2.SessionEntityTypesClient" - }, - "method": { - "shortName": "CreateSessionEntityType", - "fullName": "google.cloud.dialogflow.v2.SessionEntityTypes.CreateSessionEntityType", - "service": { - "shortName": "SessionEntityTypes", - "fullName": "google.cloud.dialogflow.v2.SessionEntityTypes" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_SessionEntityTypes_UpdateSessionEntityType_async", - "title": "dialogflow updateSessionEntityType Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified session entity type. This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.", - "canonical": true, - "file": "session_entity_types.update_session_entity_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSessionEntityType", - "fullName": "google.cloud.dialogflow.v2.SessionEntityTypes.UpdateSessionEntityType", - "async": true, - "parameters": [ - { - "name": "session_entity_type", - "type": ".google.cloud.dialogflow.v2.SessionEntityType" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dialogflow.v2.SessionEntityType", - "client": { - "shortName": "SessionEntityTypesClient", - "fullName": "google.cloud.dialogflow.v2.SessionEntityTypesClient" - }, - "method": { - "shortName": "UpdateSessionEntityType", - "fullName": "google.cloud.dialogflow.v2.SessionEntityTypes.UpdateSessionEntityType", - "service": { - "shortName": "SessionEntityTypes", - "fullName": "google.cloud.dialogflow.v2.SessionEntityTypes" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_SessionEntityTypes_DeleteSessionEntityType_async", - "title": "dialogflow deleteSessionEntityType Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified session entity type. This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.", - "canonical": true, - "file": "session_entity_types.delete_session_entity_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSessionEntityType", - "fullName": "google.cloud.dialogflow.v2.SessionEntityTypes.DeleteSessionEntityType", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "SessionEntityTypesClient", - "fullName": "google.cloud.dialogflow.v2.SessionEntityTypesClient" - }, - "method": { - "shortName": "DeleteSessionEntityType", - "fullName": "google.cloud.dialogflow.v2.SessionEntityTypes.DeleteSessionEntityType", - "service": { - "shortName": "SessionEntityTypes", - "fullName": "google.cloud.dialogflow.v2.SessionEntityTypes" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Sessions_DetectIntent_async", - "title": "dialogflow detectIntent Sample", - "origin": "API_DEFINITION", - "description": " Processes a natural language query and returns structured, actionable data as a result. This method is not idempotent, because it may cause contexts and session entity types to be updated, which in turn might affect results of future queries. If you might use [Agent Assist](https://cloud.google.com/dialogflow/docs/#aa) or other CCAI products now or in the future, consider using [AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent] instead of `DetectIntent`. `AnalyzeContent` has additional functionality for Agent Assist and other CCAI products. Note: Always use agent versions for production traffic. See [Versions and environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).", - "canonical": true, - "file": "sessions.detect_intent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 102, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DetectIntent", - "fullName": "google.cloud.dialogflow.v2.Sessions.DetectIntent", - "async": true, - "parameters": [ - { - "name": "session", - "type": "TYPE_STRING" - }, - { - "name": "query_params", - "type": ".google.cloud.dialogflow.v2.QueryParameters" - }, - { - "name": "query_input", - "type": ".google.cloud.dialogflow.v2.QueryInput" - }, - { - "name": "output_audio_config", - "type": ".google.cloud.dialogflow.v2.OutputAudioConfig" - }, - { - "name": "output_audio_config_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "input_audio", - "type": "TYPE_BYTES" - } - ], - "resultType": ".google.cloud.dialogflow.v2.DetectIntentResponse", - "client": { - "shortName": "SessionsClient", - "fullName": "google.cloud.dialogflow.v2.SessionsClient" - }, - "method": { - "shortName": "DetectIntent", - "fullName": "google.cloud.dialogflow.v2.Sessions.DetectIntent", - "service": { - "shortName": "Sessions", - "fullName": "google.cloud.dialogflow.v2.Sessions" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Sessions_StreamingDetectIntent_async", - "title": "dialogflow streamingDetectIntent Sample", - "origin": "API_DEFINITION", - "description": " Processes a natural language query in audio format in a streaming fashion and returns structured, actionable data as a result. This method is only available via the gRPC API (not REST). If you might use [Agent Assist](https://cloud.google.com/dialogflow/docs/#aa) or other CCAI products now or in the future, consider using [StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent] instead of `StreamingDetectIntent`. `StreamingAnalyzeContent` has additional functionality for Agent Assist and other CCAI products. Note: Always use agent versions for production traffic. See [Versions and environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).", - "canonical": true, - "file": "sessions.streaming_detect_intent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 122, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StreamingDetectIntent", - "fullName": "google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent", - "async": true, - "parameters": [ - { - "name": "session", - "type": "TYPE_STRING" - }, - { - "name": "query_params", - "type": ".google.cloud.dialogflow.v2.QueryParameters" - }, - { - "name": "query_input", - "type": ".google.cloud.dialogflow.v2.QueryInput" - }, - { - "name": "single_utterance", - "type": "TYPE_BOOL" - }, - { - "name": "output_audio_config", - "type": ".google.cloud.dialogflow.v2.OutputAudioConfig" - }, - { - "name": "output_audio_config_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "input_audio", - "type": "TYPE_BYTES" - }, - { - "name": "enable_debugging_info", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.dialogflow.v2.StreamingDetectIntentResponse", - "client": { - "shortName": "SessionsClient", - "fullName": "google.cloud.dialogflow.v2.SessionsClient" - }, - "method": { - "shortName": "StreamingDetectIntent", - "fullName": "google.cloud.dialogflow.v2.Sessions.StreamingDetectIntent", - "service": { - "shortName": "Sessions", - "fullName": "google.cloud.dialogflow.v2.Sessions" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_SipTrunks_CreateSipTrunk_async", - "title": "dialogflow createSipTrunk Sample", - "origin": "API_DEFINITION", - "description": " Creates a SipTrunk for a specified location.", - "canonical": true, - "file": "sip_trunks.create_sip_trunk.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSipTrunk", - "fullName": "google.cloud.dialogflow.v2.SipTrunks.CreateSipTrunk", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "sip_trunk", - "type": ".google.cloud.dialogflow.v2.SipTrunk" - } - ], - "resultType": ".google.cloud.dialogflow.v2.SipTrunk", - "client": { - "shortName": "SipTrunksClient", - "fullName": "google.cloud.dialogflow.v2.SipTrunksClient" - }, - "method": { - "shortName": "CreateSipTrunk", - "fullName": "google.cloud.dialogflow.v2.SipTrunks.CreateSipTrunk", - "service": { - "shortName": "SipTrunks", - "fullName": "google.cloud.dialogflow.v2.SipTrunks" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_SipTrunks_DeleteSipTrunk_async", - "title": "dialogflow deleteSipTrunk Sample", - "origin": "API_DEFINITION", - "description": " Deletes a specified SipTrunk.", - "canonical": true, - "file": "sip_trunks.delete_sip_trunk.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSipTrunk", - "fullName": "google.cloud.dialogflow.v2.SipTrunks.DeleteSipTrunk", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "SipTrunksClient", - "fullName": "google.cloud.dialogflow.v2.SipTrunksClient" - }, - "method": { - "shortName": "DeleteSipTrunk", - "fullName": "google.cloud.dialogflow.v2.SipTrunks.DeleteSipTrunk", - "service": { - "shortName": "SipTrunks", - "fullName": "google.cloud.dialogflow.v2.SipTrunks" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_SipTrunks_ListSipTrunks_async", - "title": "dialogflow listSipTrunks Sample", - "origin": "API_DEFINITION", - "description": " Returns a list of SipTrunks in the specified location.", - "canonical": true, - "file": "sip_trunks.list_sip_trunks.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSipTrunks", - "fullName": "google.cloud.dialogflow.v2.SipTrunks.ListSipTrunks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2.ListSipTrunksResponse", - "client": { - "shortName": "SipTrunksClient", - "fullName": "google.cloud.dialogflow.v2.SipTrunksClient" - }, - "method": { - "shortName": "ListSipTrunks", - "fullName": "google.cloud.dialogflow.v2.SipTrunks.ListSipTrunks", - "service": { - "shortName": "SipTrunks", - "fullName": "google.cloud.dialogflow.v2.SipTrunks" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_SipTrunks_GetSipTrunk_async", - "title": "dialogflow getSipTrunk Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified SipTrunk.", - "canonical": true, - "file": "sip_trunks.get_sip_trunk.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSipTrunk", - "fullName": "google.cloud.dialogflow.v2.SipTrunks.GetSipTrunk", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2.SipTrunk", - "client": { - "shortName": "SipTrunksClient", - "fullName": "google.cloud.dialogflow.v2.SipTrunksClient" - }, - "method": { - "shortName": "GetSipTrunk", - "fullName": "google.cloud.dialogflow.v2.SipTrunks.GetSipTrunk", - "service": { - "shortName": "SipTrunks", - "fullName": "google.cloud.dialogflow.v2.SipTrunks" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_SipTrunks_UpdateSipTrunk_async", - "title": "dialogflow updateSipTrunk Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified SipTrunk.", - "canonical": true, - "file": "sip_trunks.update_sip_trunk.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSipTrunk", - "fullName": "google.cloud.dialogflow.v2.SipTrunks.UpdateSipTrunk", - "async": true, - "parameters": [ - { - "name": "sip_trunk", - "type": ".google.cloud.dialogflow.v2.SipTrunk" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dialogflow.v2.SipTrunk", - "client": { - "shortName": "SipTrunksClient", - "fullName": "google.cloud.dialogflow.v2.SipTrunksClient" - }, - "method": { - "shortName": "UpdateSipTrunk", - "fullName": "google.cloud.dialogflow.v2.SipTrunks.UpdateSipTrunk", - "service": { - "shortName": "SipTrunks", - "fullName": "google.cloud.dialogflow.v2.SipTrunks" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Tools_CreateTool_async", - "title": "dialogflow createTool Sample", - "origin": "API_DEFINITION", - "description": " Creates a tool.", - "canonical": true, - "file": "tools.create_tool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTool", - "fullName": "google.cloud.dialogflow.v2.Tools.CreateTool", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "tool", - "type": ".google.cloud.dialogflow.v2.Tool" - }, - { - "name": "tool_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2.Tool", - "client": { - "shortName": "ToolsClient", - "fullName": "google.cloud.dialogflow.v2.ToolsClient" - }, - "method": { - "shortName": "CreateTool", - "fullName": "google.cloud.dialogflow.v2.Tools.CreateTool", - "service": { - "shortName": "Tools", - "fullName": "google.cloud.dialogflow.v2.Tools" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Tools_GetTool_async", - "title": "dialogflow getTool Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a tool.", - "canonical": true, - "file": "tools.get_tool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTool", - "fullName": "google.cloud.dialogflow.v2.Tools.GetTool", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2.Tool", - "client": { - "shortName": "ToolsClient", - "fullName": "google.cloud.dialogflow.v2.ToolsClient" - }, - "method": { - "shortName": "GetTool", - "fullName": "google.cloud.dialogflow.v2.Tools.GetTool", - "service": { - "shortName": "Tools", - "fullName": "google.cloud.dialogflow.v2.Tools" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Tools_ListTools_async", - "title": "dialogflow listTools Sample", - "origin": "API_DEFINITION", - "description": " Lists tools.", - "canonical": true, - "file": "tools.list_tools.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTools", - "fullName": "google.cloud.dialogflow.v2.Tools.ListTools", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2.ListToolsResponse", - "client": { - "shortName": "ToolsClient", - "fullName": "google.cloud.dialogflow.v2.ToolsClient" - }, - "method": { - "shortName": "ListTools", - "fullName": "google.cloud.dialogflow.v2.Tools.ListTools", - "service": { - "shortName": "Tools", - "fullName": "google.cloud.dialogflow.v2.Tools" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Tools_DeleteTool_async", - "title": "dialogflow deleteTool Sample", - "origin": "API_DEFINITION", - "description": " Deletes a tool.", - "canonical": true, - "file": "tools.delete_tool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTool", - "fullName": "google.cloud.dialogflow.v2.Tools.DeleteTool", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ToolsClient", - "fullName": "google.cloud.dialogflow.v2.ToolsClient" - }, - "method": { - "shortName": "DeleteTool", - "fullName": "google.cloud.dialogflow.v2.Tools.DeleteTool", - "service": { - "shortName": "Tools", - "fullName": "google.cloud.dialogflow.v2.Tools" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Tools_UpdateTool_async", - "title": "dialogflow updateTool Sample", - "origin": "API_DEFINITION", - "description": " Updates a tool.", - "canonical": true, - "file": "tools.update_tool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTool", - "fullName": "google.cloud.dialogflow.v2.Tools.UpdateTool", - "async": true, - "parameters": [ - { - "name": "tool", - "type": ".google.cloud.dialogflow.v2.Tool" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dialogflow.v2.Tool", - "client": { - "shortName": "ToolsClient", - "fullName": "google.cloud.dialogflow.v2.ToolsClient" - }, - "method": { - "shortName": "UpdateTool", - "fullName": "google.cloud.dialogflow.v2.Tools.UpdateTool", - "service": { - "shortName": "Tools", - "fullName": "google.cloud.dialogflow.v2.Tools" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Versions_ListVersions_async", - "title": "dialogflow listVersions Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of all versions of the specified agent.", - "canonical": true, - "file": "versions.list_versions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListVersions", - "fullName": "google.cloud.dialogflow.v2.Versions.ListVersions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2.ListVersionsResponse", - "client": { - "shortName": "VersionsClient", - "fullName": "google.cloud.dialogflow.v2.VersionsClient" - }, - "method": { - "shortName": "ListVersions", - "fullName": "google.cloud.dialogflow.v2.Versions.ListVersions", - "service": { - "shortName": "Versions", - "fullName": "google.cloud.dialogflow.v2.Versions" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Versions_GetVersion_async", - "title": "dialogflow getVersion Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified agent version.", - "canonical": true, - "file": "versions.get_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetVersion", - "fullName": "google.cloud.dialogflow.v2.Versions.GetVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2.Version", - "client": { - "shortName": "VersionsClient", - "fullName": "google.cloud.dialogflow.v2.VersionsClient" - }, - "method": { - "shortName": "GetVersion", - "fullName": "google.cloud.dialogflow.v2.Versions.GetVersion", - "service": { - "shortName": "Versions", - "fullName": "google.cloud.dialogflow.v2.Versions" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Versions_CreateVersion_async", - "title": "dialogflow createVersion Sample", - "origin": "API_DEFINITION", - "description": " Creates an agent version. The new version points to the agent instance in the \"default\" environment.", - "canonical": true, - "file": "versions.create_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateVersion", - "fullName": "google.cloud.dialogflow.v2.Versions.CreateVersion", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "version", - "type": ".google.cloud.dialogflow.v2.Version" - } - ], - "resultType": ".google.cloud.dialogflow.v2.Version", - "client": { - "shortName": "VersionsClient", - "fullName": "google.cloud.dialogflow.v2.VersionsClient" - }, - "method": { - "shortName": "CreateVersion", - "fullName": "google.cloud.dialogflow.v2.Versions.CreateVersion", - "service": { - "shortName": "Versions", - "fullName": "google.cloud.dialogflow.v2.Versions" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Versions_UpdateVersion_async", - "title": "dialogflow updateVersion Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified agent version. Note that this method does not allow you to update the state of the agent the given version points to. It allows you to update only mutable properties of the version resource.", - "canonical": true, - "file": "versions.update_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateVersion", - "fullName": "google.cloud.dialogflow.v2.Versions.UpdateVersion", - "async": true, - "parameters": [ - { - "name": "version", - "type": ".google.cloud.dialogflow.v2.Version" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dialogflow.v2.Version", - "client": { - "shortName": "VersionsClient", - "fullName": "google.cloud.dialogflow.v2.VersionsClient" - }, - "method": { - "shortName": "UpdateVersion", - "fullName": "google.cloud.dialogflow.v2.Versions.UpdateVersion", - "service": { - "shortName": "Versions", - "fullName": "google.cloud.dialogflow.v2.Versions" - } - } - } - }, - { - "regionTag": "dialogflow_v2_generated_Versions_DeleteVersion_async", - "title": "dialogflow deleteVersion Sample", - "origin": "API_DEFINITION", - "description": " Delete the specified agent version.", - "canonical": true, - "file": "versions.delete_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteVersion", - "fullName": "google.cloud.dialogflow.v2.Versions.DeleteVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "VersionsClient", - "fullName": "google.cloud.dialogflow.v2.VersionsClient" - }, - "method": { - "shortName": "DeleteVersion", - "fullName": "google.cloud.dialogflow.v2.Versions.DeleteVersion", - "service": { - "shortName": "Versions", - "fullName": "google.cloud.dialogflow.v2.Versions" - } - } - } - } - ] -} diff --git a/packages/google-cloud-dialogflow/samples/generated/v2beta1/snippet_metadata_google.cloud.dialogflow.v2beta1.json b/packages/google-cloud-dialogflow/samples/generated/v2beta1/snippet_metadata_google.cloud.dialogflow.v2beta1.json deleted file mode 100644 index 488d4fbe216a..000000000000 --- a/packages/google-cloud-dialogflow/samples/generated/v2beta1/snippet_metadata_google.cloud.dialogflow.v2beta1.json +++ /dev/null @@ -1,5827 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-dialogflow", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.dialogflow.v2beta1", - "version": "v2beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "dialogflow_v2beta1_generated_Agents_GetAgent_async", - "title": "dialogflow getAgent Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified agent.", - "canonical": true, - "file": "agents.get_agent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAgent", - "fullName": "google.cloud.dialogflow.v2beta1.Agents.GetAgent", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.Agent", - "client": { - "shortName": "AgentsClient", - "fullName": "google.cloud.dialogflow.v2beta1.AgentsClient" - }, - "method": { - "shortName": "GetAgent", - "fullName": "google.cloud.dialogflow.v2beta1.Agents.GetAgent", - "service": { - "shortName": "Agents", - "fullName": "google.cloud.dialogflow.v2beta1.Agents" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Agents_SetAgent_async", - "title": "dialogflow setAgent Sample", - "origin": "API_DEFINITION", - "description": " Creates/updates the specified agent. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).", - "canonical": true, - "file": "agents.set_agent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetAgent", - "fullName": "google.cloud.dialogflow.v2beta1.Agents.SetAgent", - "async": true, - "parameters": [ - { - "name": "agent", - "type": ".google.cloud.dialogflow.v2beta1.Agent" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.Agent", - "client": { - "shortName": "AgentsClient", - "fullName": "google.cloud.dialogflow.v2beta1.AgentsClient" - }, - "method": { - "shortName": "SetAgent", - "fullName": "google.cloud.dialogflow.v2beta1.Agents.SetAgent", - "service": { - "shortName": "Agents", - "fullName": "google.cloud.dialogflow.v2beta1.Agents" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Agents_DeleteAgent_async", - "title": "dialogflow deleteAgent Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified agent.", - "canonical": true, - "file": "agents.delete_agent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAgent", - "fullName": "google.cloud.dialogflow.v2beta1.Agents.DeleteAgent", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AgentsClient", - "fullName": "google.cloud.dialogflow.v2beta1.AgentsClient" - }, - "method": { - "shortName": "DeleteAgent", - "fullName": "google.cloud.dialogflow.v2beta1.Agents.DeleteAgent", - "service": { - "shortName": "Agents", - "fullName": "google.cloud.dialogflow.v2beta1.Agents" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Agents_SearchAgents_async", - "title": "dialogflow searchAgents Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of agents. Since there is at most one conversational agent per project, this method is useful primarily for listing all agents across projects the caller has access to. One can achieve that with a wildcard project collection id \"-\". Refer to [List Sub-Collections](https://cloud.google.com/apis/design/design_patterns#list_sub-collections).", - "canonical": true, - "file": "agents.search_agents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchAgents", - "fullName": "google.cloud.dialogflow.v2beta1.Agents.SearchAgents", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.SearchAgentsResponse", - "client": { - "shortName": "AgentsClient", - "fullName": "google.cloud.dialogflow.v2beta1.AgentsClient" - }, - "method": { - "shortName": "SearchAgents", - "fullName": "google.cloud.dialogflow.v2beta1.Agents.SearchAgents", - "service": { - "shortName": "Agents", - "fullName": "google.cloud.dialogflow.v2beta1.Agents" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Agents_TrainAgent_async", - "title": "dialogflow trainAgent Sample", - "origin": "API_DEFINITION", - "description": " Trains the specified agent. This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: - `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).", - "canonical": true, - "file": "agents.train_agent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TrainAgent", - "fullName": "google.cloud.dialogflow.v2beta1.Agents.TrainAgent", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AgentsClient", - "fullName": "google.cloud.dialogflow.v2beta1.AgentsClient" - }, - "method": { - "shortName": "TrainAgent", - "fullName": "google.cloud.dialogflow.v2beta1.Agents.TrainAgent", - "service": { - "shortName": "Agents", - "fullName": "google.cloud.dialogflow.v2beta1.Agents" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Agents_ExportAgent_async", - "title": "dialogflow exportAgent Sample", - "origin": "API_DEFINITION", - "description": " Exports the specified agent to a ZIP file. This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: - `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: [ExportAgentResponse][google.cloud.dialogflow.v2beta1.ExportAgentResponse]", - "canonical": true, - "file": "agents.export_agent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportAgent", - "fullName": "google.cloud.dialogflow.v2beta1.Agents.ExportAgent", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "agent_uri", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AgentsClient", - "fullName": "google.cloud.dialogflow.v2beta1.AgentsClient" - }, - "method": { - "shortName": "ExportAgent", - "fullName": "google.cloud.dialogflow.v2beta1.Agents.ExportAgent", - "service": { - "shortName": "Agents", - "fullName": "google.cloud.dialogflow.v2beta1.Agents" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Agents_ImportAgent_async", - "title": "dialogflow importAgent Sample", - "origin": "API_DEFINITION", - "description": " Imports the specified agent from a ZIP file. Uploads new intents and entity types without deleting the existing ones. Intents and entity types with the same name are replaced with the new versions from [ImportAgentRequest][google.cloud.dialogflow.v2beta1.ImportAgentRequest]. After the import, the imported draft agent will be trained automatically (unless disabled in agent settings). However, once the import is done, training may not be completed yet. Please call [TrainAgent][google.cloud.dialogflow.v2beta1.Agents.TrainAgent] and wait for the operation it returns in order to train explicitly. This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: - `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) The operation only tracks when importing is complete, not when it is done training. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).", - "canonical": true, - "file": "agents.import_agent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportAgent", - "fullName": "google.cloud.dialogflow.v2beta1.Agents.ImportAgent", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "agent_uri", - "type": "TYPE_STRING" - }, - { - "name": "agent_content", - "type": "TYPE_BYTES" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AgentsClient", - "fullName": "google.cloud.dialogflow.v2beta1.AgentsClient" - }, - "method": { - "shortName": "ImportAgent", - "fullName": "google.cloud.dialogflow.v2beta1.Agents.ImportAgent", - "service": { - "shortName": "Agents", - "fullName": "google.cloud.dialogflow.v2beta1.Agents" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Agents_RestoreAgent_async", - "title": "dialogflow restoreAgent Sample", - "origin": "API_DEFINITION", - "description": " Restores the specified agent from a ZIP file. Replaces the current agent version with a new one. All the intents and entity types in the older version are deleted. After the restore, the restored draft agent will be trained automatically (unless disabled in agent settings). However, once the restore is done, training may not be completed yet. Please call [TrainAgent][google.cloud.dialogflow.v2beta1.Agents.TrainAgent] and wait for the operation it returns in order to train explicitly. This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: - `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) The operation only tracks when restoring is complete, not when it is done training. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).", - "canonical": true, - "file": "agents.restore_agent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RestoreAgent", - "fullName": "google.cloud.dialogflow.v2beta1.Agents.RestoreAgent", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "agent_uri", - "type": "TYPE_STRING" - }, - { - "name": "agent_content", - "type": "TYPE_BYTES" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AgentsClient", - "fullName": "google.cloud.dialogflow.v2beta1.AgentsClient" - }, - "method": { - "shortName": "RestoreAgent", - "fullName": "google.cloud.dialogflow.v2beta1.Agents.RestoreAgent", - "service": { - "shortName": "Agents", - "fullName": "google.cloud.dialogflow.v2beta1.Agents" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Agents_GetValidationResult_async", - "title": "dialogflow getValidationResult Sample", - "origin": "API_DEFINITION", - "description": " Gets agent validation result. Agent validation is performed during training time and is updated automatically when training is completed.", - "canonical": true, - "file": "agents.get_validation_result.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetValidationResult", - "fullName": "google.cloud.dialogflow.v2beta1.Agents.GetValidationResult", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.ValidationResult", - "client": { - "shortName": "AgentsClient", - "fullName": "google.cloud.dialogflow.v2beta1.AgentsClient" - }, - "method": { - "shortName": "GetValidationResult", - "fullName": "google.cloud.dialogflow.v2beta1.Agents.GetValidationResult", - "service": { - "shortName": "Agents", - "fullName": "google.cloud.dialogflow.v2beta1.Agents" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_AnswerRecords_GetAnswerRecord_async", - "title": "dialogflow getAnswerRecord Sample", - "origin": "API_DEFINITION", - "description": " Deprecated. Retrieves a specific answer record.", - "canonical": true, - "file": "answer_records.get_answer_record.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAnswerRecord", - "fullName": "google.cloud.dialogflow.v2beta1.AnswerRecords.GetAnswerRecord", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.AnswerRecord", - "client": { - "shortName": "AnswerRecordsClient", - "fullName": "google.cloud.dialogflow.v2beta1.AnswerRecordsClient" - }, - "method": { - "shortName": "GetAnswerRecord", - "fullName": "google.cloud.dialogflow.v2beta1.AnswerRecords.GetAnswerRecord", - "service": { - "shortName": "AnswerRecords", - "fullName": "google.cloud.dialogflow.v2beta1.AnswerRecords" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_AnswerRecords_ListAnswerRecords_async", - "title": "dialogflow listAnswerRecords Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of all answer records in the specified project in reverse chronological order.", - "canonical": true, - "file": "answer_records.list_answer_records.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAnswerRecords", - "fullName": "google.cloud.dialogflow.v2beta1.AnswerRecords.ListAnswerRecords", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.ListAnswerRecordsResponse", - "client": { - "shortName": "AnswerRecordsClient", - "fullName": "google.cloud.dialogflow.v2beta1.AnswerRecordsClient" - }, - "method": { - "shortName": "ListAnswerRecords", - "fullName": "google.cloud.dialogflow.v2beta1.AnswerRecords.ListAnswerRecords", - "service": { - "shortName": "AnswerRecords", - "fullName": "google.cloud.dialogflow.v2beta1.AnswerRecords" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_AnswerRecords_UpdateAnswerRecord_async", - "title": "dialogflow updateAnswerRecord Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified answer record.", - "canonical": true, - "file": "answer_records.update_answer_record.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAnswerRecord", - "fullName": "google.cloud.dialogflow.v2beta1.AnswerRecords.UpdateAnswerRecord", - "async": true, - "parameters": [ - { - "name": "answer_record", - "type": ".google.cloud.dialogflow.v2beta1.AnswerRecord" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.AnswerRecord", - "client": { - "shortName": "AnswerRecordsClient", - "fullName": "google.cloud.dialogflow.v2beta1.AnswerRecordsClient" - }, - "method": { - "shortName": "UpdateAnswerRecord", - "fullName": "google.cloud.dialogflow.v2beta1.AnswerRecords.UpdateAnswerRecord", - "service": { - "shortName": "AnswerRecords", - "fullName": "google.cloud.dialogflow.v2beta1.AnswerRecords" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Contexts_ListContexts_async", - "title": "dialogflow listContexts Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of all contexts in the specified session.", - "canonical": true, - "file": "contexts.list_contexts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListContexts", - "fullName": "google.cloud.dialogflow.v2beta1.Contexts.ListContexts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.ListContextsResponse", - "client": { - "shortName": "ContextsClient", - "fullName": "google.cloud.dialogflow.v2beta1.ContextsClient" - }, - "method": { - "shortName": "ListContexts", - "fullName": "google.cloud.dialogflow.v2beta1.Contexts.ListContexts", - "service": { - "shortName": "Contexts", - "fullName": "google.cloud.dialogflow.v2beta1.Contexts" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Contexts_GetContext_async", - "title": "dialogflow getContext Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified context.", - "canonical": true, - "file": "contexts.get_context.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetContext", - "fullName": "google.cloud.dialogflow.v2beta1.Contexts.GetContext", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.Context", - "client": { - "shortName": "ContextsClient", - "fullName": "google.cloud.dialogflow.v2beta1.ContextsClient" - }, - "method": { - "shortName": "GetContext", - "fullName": "google.cloud.dialogflow.v2beta1.Contexts.GetContext", - "service": { - "shortName": "Contexts", - "fullName": "google.cloud.dialogflow.v2beta1.Contexts" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Contexts_CreateContext_async", - "title": "dialogflow createContext Sample", - "origin": "API_DEFINITION", - "description": " Creates a context. If the specified context already exists, overrides the context.", - "canonical": true, - "file": "contexts.create_context.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateContext", - "fullName": "google.cloud.dialogflow.v2beta1.Contexts.CreateContext", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "context", - "type": ".google.cloud.dialogflow.v2beta1.Context" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.Context", - "client": { - "shortName": "ContextsClient", - "fullName": "google.cloud.dialogflow.v2beta1.ContextsClient" - }, - "method": { - "shortName": "CreateContext", - "fullName": "google.cloud.dialogflow.v2beta1.Contexts.CreateContext", - "service": { - "shortName": "Contexts", - "fullName": "google.cloud.dialogflow.v2beta1.Contexts" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Contexts_UpdateContext_async", - "title": "dialogflow updateContext Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified context.", - "canonical": true, - "file": "contexts.update_context.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateContext", - "fullName": "google.cloud.dialogflow.v2beta1.Contexts.UpdateContext", - "async": true, - "parameters": [ - { - "name": "context", - "type": ".google.cloud.dialogflow.v2beta1.Context" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.Context", - "client": { - "shortName": "ContextsClient", - "fullName": "google.cloud.dialogflow.v2beta1.ContextsClient" - }, - "method": { - "shortName": "UpdateContext", - "fullName": "google.cloud.dialogflow.v2beta1.Contexts.UpdateContext", - "service": { - "shortName": "Contexts", - "fullName": "google.cloud.dialogflow.v2beta1.Contexts" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Contexts_DeleteContext_async", - "title": "dialogflow deleteContext Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified context.", - "canonical": true, - "file": "contexts.delete_context.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteContext", - "fullName": "google.cloud.dialogflow.v2beta1.Contexts.DeleteContext", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ContextsClient", - "fullName": "google.cloud.dialogflow.v2beta1.ContextsClient" - }, - "method": { - "shortName": "DeleteContext", - "fullName": "google.cloud.dialogflow.v2beta1.Contexts.DeleteContext", - "service": { - "shortName": "Contexts", - "fullName": "google.cloud.dialogflow.v2beta1.Contexts" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Contexts_DeleteAllContexts_async", - "title": "dialogflow deleteAllContexts Sample", - "origin": "API_DEFINITION", - "description": " Deletes all active contexts in the specified session.", - "canonical": true, - "file": "contexts.delete_all_contexts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAllContexts", - "fullName": "google.cloud.dialogflow.v2beta1.Contexts.DeleteAllContexts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ContextsClient", - "fullName": "google.cloud.dialogflow.v2beta1.ContextsClient" - }, - "method": { - "shortName": "DeleteAllContexts", - "fullName": "google.cloud.dialogflow.v2beta1.Contexts.DeleteAllContexts", - "service": { - "shortName": "Contexts", - "fullName": "google.cloud.dialogflow.v2beta1.Contexts" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_ConversationProfiles_ListConversationProfiles_async", - "title": "dialogflow listConversationProfiles Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of all conversation profiles in the specified project.", - "canonical": true, - "file": "conversation_profiles.list_conversation_profiles.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListConversationProfiles", - "fullName": "google.cloud.dialogflow.v2beta1.ConversationProfiles.ListConversationProfiles", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.ListConversationProfilesResponse", - "client": { - "shortName": "ConversationProfilesClient", - "fullName": "google.cloud.dialogflow.v2beta1.ConversationProfilesClient" - }, - "method": { - "shortName": "ListConversationProfiles", - "fullName": "google.cloud.dialogflow.v2beta1.ConversationProfiles.ListConversationProfiles", - "service": { - "shortName": "ConversationProfiles", - "fullName": "google.cloud.dialogflow.v2beta1.ConversationProfiles" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_ConversationProfiles_GetConversationProfile_async", - "title": "dialogflow getConversationProfile Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified conversation profile.", - "canonical": true, - "file": "conversation_profiles.get_conversation_profile.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetConversationProfile", - "fullName": "google.cloud.dialogflow.v2beta1.ConversationProfiles.GetConversationProfile", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.ConversationProfile", - "client": { - "shortName": "ConversationProfilesClient", - "fullName": "google.cloud.dialogflow.v2beta1.ConversationProfilesClient" - }, - "method": { - "shortName": "GetConversationProfile", - "fullName": "google.cloud.dialogflow.v2beta1.ConversationProfiles.GetConversationProfile", - "service": { - "shortName": "ConversationProfiles", - "fullName": "google.cloud.dialogflow.v2beta1.ConversationProfiles" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_ConversationProfiles_CreateConversationProfile_async", - "title": "dialogflow createConversationProfile Sample", - "origin": "API_DEFINITION", - "description": " Creates a conversation profile in the specified project. [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] aren't populated in the response. You can retrieve them via [GetConversationProfile][google.cloud.dialogflow.v2beta1.ConversationProfiles.GetConversationProfile] API.", - "canonical": true, - "file": "conversation_profiles.create_conversation_profile.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateConversationProfile", - "fullName": "google.cloud.dialogflow.v2beta1.ConversationProfiles.CreateConversationProfile", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "conversation_profile", - "type": ".google.cloud.dialogflow.v2beta1.ConversationProfile" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.ConversationProfile", - "client": { - "shortName": "ConversationProfilesClient", - "fullName": "google.cloud.dialogflow.v2beta1.ConversationProfilesClient" - }, - "method": { - "shortName": "CreateConversationProfile", - "fullName": "google.cloud.dialogflow.v2beta1.ConversationProfiles.CreateConversationProfile", - "service": { - "shortName": "ConversationProfiles", - "fullName": "google.cloud.dialogflow.v2beta1.ConversationProfiles" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_ConversationProfiles_UpdateConversationProfile_async", - "title": "dialogflow updateConversationProfile Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified conversation profile. [ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] aren't populated in the response. You can retrieve them via [GetConversationProfile][google.cloud.dialogflow.v2beta1.ConversationProfiles.GetConversationProfile] API.", - "canonical": true, - "file": "conversation_profiles.update_conversation_profile.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateConversationProfile", - "fullName": "google.cloud.dialogflow.v2beta1.ConversationProfiles.UpdateConversationProfile", - "async": true, - "parameters": [ - { - "name": "conversation_profile", - "type": ".google.cloud.dialogflow.v2beta1.ConversationProfile" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.ConversationProfile", - "client": { - "shortName": "ConversationProfilesClient", - "fullName": "google.cloud.dialogflow.v2beta1.ConversationProfilesClient" - }, - "method": { - "shortName": "UpdateConversationProfile", - "fullName": "google.cloud.dialogflow.v2beta1.ConversationProfiles.UpdateConversationProfile", - "service": { - "shortName": "ConversationProfiles", - "fullName": "google.cloud.dialogflow.v2beta1.ConversationProfiles" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_ConversationProfiles_DeleteConversationProfile_async", - "title": "dialogflow deleteConversationProfile Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified conversation profile.", - "canonical": true, - "file": "conversation_profiles.delete_conversation_profile.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteConversationProfile", - "fullName": "google.cloud.dialogflow.v2beta1.ConversationProfiles.DeleteConversationProfile", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ConversationProfilesClient", - "fullName": "google.cloud.dialogflow.v2beta1.ConversationProfilesClient" - }, - "method": { - "shortName": "DeleteConversationProfile", - "fullName": "google.cloud.dialogflow.v2beta1.ConversationProfiles.DeleteConversationProfile", - "service": { - "shortName": "ConversationProfiles", - "fullName": "google.cloud.dialogflow.v2beta1.ConversationProfiles" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_ConversationProfiles_SetSuggestionFeatureConfig_async", - "title": "dialogflow setSuggestionFeatureConfig Sample", - "origin": "API_DEFINITION", - "description": " Adds or updates a suggestion feature in a conversation profile. If the conversation profile contains the type of suggestion feature for the participant role, it will update it. Otherwise it will insert the suggestion feature. This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: - `metadata`: [SetSuggestionFeatureConfigOperationMetadata][google.cloud.dialogflow.v2beta1.SetSuggestionFeatureConfigOperationMetadata] - `response`: [ConversationProfile][google.cloud.dialogflow.v2beta1.ConversationProfile] If a long running operation to add or update suggestion feature config for the same conversation profile, participant role and suggestion feature type exists, please cancel the existing long running operation before sending such request, otherwise the request will be rejected.", - "canonical": true, - "file": "conversation_profiles.set_suggestion_feature_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetSuggestionFeatureConfig", - "fullName": "google.cloud.dialogflow.v2beta1.ConversationProfiles.SetSuggestionFeatureConfig", - "async": true, - "parameters": [ - { - "name": "conversation_profile", - "type": "TYPE_STRING" - }, - { - "name": "participant_role", - "type": ".google.cloud.dialogflow.v2beta1.Participant.Role" - }, - { - "name": "suggestion_feature_config", - "type": ".google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionFeatureConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConversationProfilesClient", - "fullName": "google.cloud.dialogflow.v2beta1.ConversationProfilesClient" - }, - "method": { - "shortName": "SetSuggestionFeatureConfig", - "fullName": "google.cloud.dialogflow.v2beta1.ConversationProfiles.SetSuggestionFeatureConfig", - "service": { - "shortName": "ConversationProfiles", - "fullName": "google.cloud.dialogflow.v2beta1.ConversationProfiles" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_ConversationProfiles_ClearSuggestionFeatureConfig_async", - "title": "dialogflow clearSuggestionFeatureConfig Sample", - "origin": "API_DEFINITION", - "description": " Clears a suggestion feature from a conversation profile for the given participant role. This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: - `metadata`: [ClearSuggestionFeatureConfigOperationMetadata][google.cloud.dialogflow.v2beta1.ClearSuggestionFeatureConfigOperationMetadata] - `response`: [ConversationProfile][google.cloud.dialogflow.v2beta1.ConversationProfile]", - "canonical": true, - "file": "conversation_profiles.clear_suggestion_feature_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ClearSuggestionFeatureConfig", - "fullName": "google.cloud.dialogflow.v2beta1.ConversationProfiles.ClearSuggestionFeatureConfig", - "async": true, - "parameters": [ - { - "name": "conversation_profile", - "type": "TYPE_STRING" - }, - { - "name": "participant_role", - "type": ".google.cloud.dialogflow.v2beta1.Participant.Role" - }, - { - "name": "suggestion_feature_type", - "type": ".google.cloud.dialogflow.v2beta1.SuggestionFeature.Type" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ConversationProfilesClient", - "fullName": "google.cloud.dialogflow.v2beta1.ConversationProfilesClient" - }, - "method": { - "shortName": "ClearSuggestionFeatureConfig", - "fullName": "google.cloud.dialogflow.v2beta1.ConversationProfiles.ClearSuggestionFeatureConfig", - "service": { - "shortName": "ConversationProfiles", - "fullName": "google.cloud.dialogflow.v2beta1.ConversationProfiles" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Conversations_CreateConversation_async", - "title": "dialogflow createConversation Sample", - "origin": "API_DEFINITION", - "description": " Creates a new conversation. Conversations are auto-completed after 24 hours. Conversation Lifecycle: There are two stages during a conversation: Automated Agent Stage and Assist Stage. For Automated Agent Stage, there will be a dialogflow agent responding to user queries. For Assist Stage, there's no dialogflow agent responding to user queries. But we will provide suggestions which are generated from conversation. If [Conversation.conversation_profile][google.cloud.dialogflow.v2beta1.Conversation.conversation_profile] is configured for a dialogflow agent, conversation will start from `Automated Agent Stage`, otherwise, it will start from `Assist Stage`. And during `Automated Agent Stage`, once an [Intent][google.cloud.dialogflow.v2beta1.Intent] with [Intent.live_agent_handoff][google.cloud.dialogflow.v2beta1.Intent.live_agent_handoff] is triggered, conversation will transfer to Assist Stage.", - "canonical": true, - "file": "conversations.create_conversation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateConversation", - "fullName": "google.cloud.dialogflow.v2beta1.Conversations.CreateConversation", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "conversation", - "type": ".google.cloud.dialogflow.v2beta1.Conversation" - }, - { - "name": "conversation_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.Conversation", - "client": { - "shortName": "ConversationsClient", - "fullName": "google.cloud.dialogflow.v2beta1.ConversationsClient" - }, - "method": { - "shortName": "CreateConversation", - "fullName": "google.cloud.dialogflow.v2beta1.Conversations.CreateConversation", - "service": { - "shortName": "Conversations", - "fullName": "google.cloud.dialogflow.v2beta1.Conversations" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Conversations_ListConversations_async", - "title": "dialogflow listConversations Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of all conversations in the specified project.", - "canonical": true, - "file": "conversations.list_conversations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListConversations", - "fullName": "google.cloud.dialogflow.v2beta1.Conversations.ListConversations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.ListConversationsResponse", - "client": { - "shortName": "ConversationsClient", - "fullName": "google.cloud.dialogflow.v2beta1.ConversationsClient" - }, - "method": { - "shortName": "ListConversations", - "fullName": "google.cloud.dialogflow.v2beta1.Conversations.ListConversations", - "service": { - "shortName": "Conversations", - "fullName": "google.cloud.dialogflow.v2beta1.Conversations" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Conversations_GetConversation_async", - "title": "dialogflow getConversation Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specific conversation.", - "canonical": true, - "file": "conversations.get_conversation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetConversation", - "fullName": "google.cloud.dialogflow.v2beta1.Conversations.GetConversation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.Conversation", - "client": { - "shortName": "ConversationsClient", - "fullName": "google.cloud.dialogflow.v2beta1.ConversationsClient" - }, - "method": { - "shortName": "GetConversation", - "fullName": "google.cloud.dialogflow.v2beta1.Conversations.GetConversation", - "service": { - "shortName": "Conversations", - "fullName": "google.cloud.dialogflow.v2beta1.Conversations" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Conversations_CompleteConversation_async", - "title": "dialogflow completeConversation Sample", - "origin": "API_DEFINITION", - "description": " Completes the specified conversation. Finished conversations are purged from the database after 30 days.", - "canonical": true, - "file": "conversations.complete_conversation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CompleteConversation", - "fullName": "google.cloud.dialogflow.v2beta1.Conversations.CompleteConversation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.Conversation", - "client": { - "shortName": "ConversationsClient", - "fullName": "google.cloud.dialogflow.v2beta1.ConversationsClient" - }, - "method": { - "shortName": "CompleteConversation", - "fullName": "google.cloud.dialogflow.v2beta1.Conversations.CompleteConversation", - "service": { - "shortName": "Conversations", - "fullName": "google.cloud.dialogflow.v2beta1.Conversations" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Conversations_IngestContextReferences_async", - "title": "dialogflow ingestContextReferences Sample", - "origin": "API_DEFINITION", - "description": " Data ingestion API. Ingests context references for an existing conversation.", - "canonical": true, - "file": "conversations.ingest_context_references.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "IngestContextReferences", - "fullName": "google.cloud.dialogflow.v2beta1.Conversations.IngestContextReferences", - "async": true, - "parameters": [ - { - "name": "conversation", - "type": "TYPE_STRING" - }, - { - "name": "context_references", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.IngestContextReferencesResponse", - "client": { - "shortName": "ConversationsClient", - "fullName": "google.cloud.dialogflow.v2beta1.ConversationsClient" - }, - "method": { - "shortName": "IngestContextReferences", - "fullName": "google.cloud.dialogflow.v2beta1.Conversations.IngestContextReferences", - "service": { - "shortName": "Conversations", - "fullName": "google.cloud.dialogflow.v2beta1.Conversations" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Conversations_BatchCreateMessages_async", - "title": "dialogflow batchCreateMessages Sample", - "origin": "API_DEFINITION", - "description": " Batch ingests messages to conversation. Customers can use this RPC to ingest historical messages to conversation.", - "canonical": true, - "file": "conversations.batch_create_messages.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCreateMessages", - "fullName": "google.cloud.dialogflow.v2beta1.Conversations.BatchCreateMessages", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.BatchCreateMessagesResponse", - "client": { - "shortName": "ConversationsClient", - "fullName": "google.cloud.dialogflow.v2beta1.ConversationsClient" - }, - "method": { - "shortName": "BatchCreateMessages", - "fullName": "google.cloud.dialogflow.v2beta1.Conversations.BatchCreateMessages", - "service": { - "shortName": "Conversations", - "fullName": "google.cloud.dialogflow.v2beta1.Conversations" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Conversations_ListMessages_async", - "title": "dialogflow listMessages Sample", - "origin": "API_DEFINITION", - "description": " Lists messages that belong to a given conversation. `messages` are ordered by `create_time` in descending order. To fetch updates without duplication, send request with filter `create_time_epoch_microseconds > [first item's create_time of previous request]` and empty page_token.", - "canonical": true, - "file": "conversations.list_messages.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMessages", - "fullName": "google.cloud.dialogflow.v2beta1.Conversations.ListMessages", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.ListMessagesResponse", - "client": { - "shortName": "ConversationsClient", - "fullName": "google.cloud.dialogflow.v2beta1.ConversationsClient" - }, - "method": { - "shortName": "ListMessages", - "fullName": "google.cloud.dialogflow.v2beta1.Conversations.ListMessages", - "service": { - "shortName": "Conversations", - "fullName": "google.cloud.dialogflow.v2beta1.Conversations" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Conversations_SuggestConversationSummary_async", - "title": "dialogflow suggestConversationSummary Sample", - "origin": "API_DEFINITION", - "description": " Suggest summary for a conversation based on specific historical messages. The range of the messages to be used for summary can be specified in the request.", - "canonical": true, - "file": "conversations.suggest_conversation_summary.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SuggestConversationSummary", - "fullName": "google.cloud.dialogflow.v2beta1.Conversations.SuggestConversationSummary", - "async": true, - "parameters": [ - { - "name": "conversation", - "type": "TYPE_STRING" - }, - { - "name": "latest_message", - "type": "TYPE_STRING" - }, - { - "name": "context_size", - "type": "TYPE_INT32" - }, - { - "name": "assist_query_params", - "type": ".google.cloud.dialogflow.v2beta1.AssistQueryParameters" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.SuggestConversationSummaryResponse", - "client": { - "shortName": "ConversationsClient", - "fullName": "google.cloud.dialogflow.v2beta1.ConversationsClient" - }, - "method": { - "shortName": "SuggestConversationSummary", - "fullName": "google.cloud.dialogflow.v2beta1.Conversations.SuggestConversationSummary", - "service": { - "shortName": "Conversations", - "fullName": "google.cloud.dialogflow.v2beta1.Conversations" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Conversations_GenerateStatelessSummary_async", - "title": "dialogflow generateStatelessSummary Sample", - "origin": "API_DEFINITION", - "description": " Generates and returns a summary for a conversation that does not have a resource created for it.", - "canonical": true, - "file": "conversations.generate_stateless_summary.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateStatelessSummary", - "fullName": "google.cloud.dialogflow.v2beta1.Conversations.GenerateStatelessSummary", - "async": true, - "parameters": [ - { - "name": "stateless_conversation", - "type": ".google.cloud.dialogflow.v2beta1.GenerateStatelessSummaryRequest.MinimalConversation" - }, - { - "name": "conversation_profile", - "type": ".google.cloud.dialogflow.v2beta1.ConversationProfile" - }, - { - "name": "latest_message", - "type": "TYPE_STRING" - }, - { - "name": "max_context_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.GenerateStatelessSummaryResponse", - "client": { - "shortName": "ConversationsClient", - "fullName": "google.cloud.dialogflow.v2beta1.ConversationsClient" - }, - "method": { - "shortName": "GenerateStatelessSummary", - "fullName": "google.cloud.dialogflow.v2beta1.Conversations.GenerateStatelessSummary", - "service": { - "shortName": "Conversations", - "fullName": "google.cloud.dialogflow.v2beta1.Conversations" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Conversations_GenerateStatelessSuggestion_async", - "title": "dialogflow generateStatelessSuggestion Sample", - "origin": "API_DEFINITION", - "description": " Generates and returns a suggestion for a conversation that does not have a resource created for it.", - "canonical": true, - "file": "conversations.generate_stateless_suggestion.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 90, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateStatelessSuggestion", - "fullName": "google.cloud.dialogflow.v2beta1.Conversations.GenerateStatelessSuggestion", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "generator", - "type": ".google.cloud.dialogflow.v2beta1.Generator" - }, - { - "name": "generator_name", - "type": "TYPE_STRING" - }, - { - "name": "context_references", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "conversation_context", - "type": ".google.cloud.dialogflow.v2beta1.ConversationContext" - }, - { - "name": "trigger_events", - "type": "TYPE_ENUM[]" - }, - { - "name": "security_settings", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.GenerateStatelessSuggestionResponse", - "client": { - "shortName": "ConversationsClient", - "fullName": "google.cloud.dialogflow.v2beta1.ConversationsClient" - }, - "method": { - "shortName": "GenerateStatelessSuggestion", - "fullName": "google.cloud.dialogflow.v2beta1.Conversations.GenerateStatelessSuggestion", - "service": { - "shortName": "Conversations", - "fullName": "google.cloud.dialogflow.v2beta1.Conversations" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Conversations_SearchKnowledge_async", - "title": "dialogflow searchKnowledge Sample", - "origin": "API_DEFINITION", - "description": " Get answers for the given query based on knowledge documents.", - "canonical": true, - "file": "conversations.search_knowledge.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 120, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchKnowledge", - "fullName": "google.cloud.dialogflow.v2beta1.Conversations.SearchKnowledge", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": ".google.cloud.dialogflow.v2beta1.TextInput" - }, - { - "name": "conversation_profile", - "type": "TYPE_STRING" - }, - { - "name": "session_id", - "type": "TYPE_STRING" - }, - { - "name": "conversation", - "type": "TYPE_STRING" - }, - { - "name": "latest_message", - "type": "TYPE_STRING" - }, - { - "name": "query_source", - "type": ".google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest.QuerySource" - }, - { - "name": "end_user_metadata", - "type": ".google.protobuf.Struct" - }, - { - "name": "search_config", - "type": ".google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest.SearchConfig" - }, - { - "name": "exact_search", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.SearchKnowledgeResponse", - "client": { - "shortName": "ConversationsClient", - "fullName": "google.cloud.dialogflow.v2beta1.ConversationsClient" - }, - "method": { - "shortName": "SearchKnowledge", - "fullName": "google.cloud.dialogflow.v2beta1.Conversations.SearchKnowledge", - "service": { - "shortName": "Conversations", - "fullName": "google.cloud.dialogflow.v2beta1.Conversations" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Conversations_GenerateSuggestions_async", - "title": "dialogflow generateSuggestions Sample", - "origin": "API_DEFINITION", - "description": " Generates all the suggestions using generators configured in the conversation profile. A generator is used only if its trigger event is matched.", - "canonical": true, - "file": "conversations.generate_suggestions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateSuggestions", - "fullName": "google.cloud.dialogflow.v2beta1.Conversations.GenerateSuggestions", - "async": true, - "parameters": [ - { - "name": "conversation", - "type": "TYPE_STRING" - }, - { - "name": "latest_message", - "type": "TYPE_STRING" - }, - { - "name": "trigger_events", - "type": "TYPE_ENUM[]" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.GenerateSuggestionsResponse", - "client": { - "shortName": "ConversationsClient", - "fullName": "google.cloud.dialogflow.v2beta1.ConversationsClient" - }, - "method": { - "shortName": "GenerateSuggestions", - "fullName": "google.cloud.dialogflow.v2beta1.Conversations.GenerateSuggestions", - "service": { - "shortName": "Conversations", - "fullName": "google.cloud.dialogflow.v2beta1.Conversations" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Documents_ListDocuments_async", - "title": "dialogflow listDocuments Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of all documents of the knowledge base. Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; only use `projects.knowledgeBases.documents`.", - "canonical": true, - "file": "documents.list_documents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDocuments", - "fullName": "google.cloud.dialogflow.v2beta1.Documents.ListDocuments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.ListDocumentsResponse", - "client": { - "shortName": "DocumentsClient", - "fullName": "google.cloud.dialogflow.v2beta1.DocumentsClient" - }, - "method": { - "shortName": "ListDocuments", - "fullName": "google.cloud.dialogflow.v2beta1.Documents.ListDocuments", - "service": { - "shortName": "Documents", - "fullName": "google.cloud.dialogflow.v2beta1.Documents" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Documents_GetDocument_async", - "title": "dialogflow getDocument Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified document. Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; only use `projects.knowledgeBases.documents`.", - "canonical": true, - "file": "documents.get_document.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDocument", - "fullName": "google.cloud.dialogflow.v2beta1.Documents.GetDocument", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.Document", - "client": { - "shortName": "DocumentsClient", - "fullName": "google.cloud.dialogflow.v2beta1.DocumentsClient" - }, - "method": { - "shortName": "GetDocument", - "fullName": "google.cloud.dialogflow.v2beta1.Documents.GetDocument", - "service": { - "shortName": "Documents", - "fullName": "google.cloud.dialogflow.v2beta1.Documents" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Documents_CreateDocument_async", - "title": "dialogflow createDocument Sample", - "origin": "API_DEFINITION", - "description": " Creates a new document. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata] - `response`: [Document][google.cloud.dialogflow.v2beta1.Document] Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; only use `projects.knowledgeBases.documents`.", - "canonical": true, - "file": "documents.create_document.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDocument", - "fullName": "google.cloud.dialogflow.v2beta1.Documents.CreateDocument", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "document", - "type": ".google.cloud.dialogflow.v2beta1.Document" - }, - { - "name": "import_gcs_custom_metadata", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DocumentsClient", - "fullName": "google.cloud.dialogflow.v2beta1.DocumentsClient" - }, - "method": { - "shortName": "CreateDocument", - "fullName": "google.cloud.dialogflow.v2beta1.Documents.CreateDocument", - "service": { - "shortName": "Documents", - "fullName": "google.cloud.dialogflow.v2beta1.Documents" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Documents_ImportDocuments_async", - "title": "dialogflow importDocuments Sample", - "origin": "API_DEFINITION", - "description": " Create documents by importing data from external sources. Dialogflow supports up to 350 documents in each request. If you try to import more, Dialogflow will return an error. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata] - `response`: [ImportDocumentsResponse][google.cloud.dialogflow.v2beta1.ImportDocumentsResponse]", - "canonical": true, - "file": "documents.import_documents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportDocuments", - "fullName": "google.cloud.dialogflow.v2beta1.Documents.ImportDocuments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "gcs_source", - "type": ".google.cloud.dialogflow.v2beta1.GcsSources" - }, - { - "name": "document_template", - "type": ".google.cloud.dialogflow.v2beta1.ImportDocumentTemplate" - }, - { - "name": "import_gcs_custom_metadata", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DocumentsClient", - "fullName": "google.cloud.dialogflow.v2beta1.DocumentsClient" - }, - "method": { - "shortName": "ImportDocuments", - "fullName": "google.cloud.dialogflow.v2beta1.Documents.ImportDocuments", - "service": { - "shortName": "Documents", - "fullName": "google.cloud.dialogflow.v2beta1.Documents" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Documents_DeleteDocument_async", - "title": "dialogflow deleteDocument Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified document. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata] - `response`: An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; only use `projects.knowledgeBases.documents`.", - "canonical": true, - "file": "documents.delete_document.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDocument", - "fullName": "google.cloud.dialogflow.v2beta1.Documents.DeleteDocument", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DocumentsClient", - "fullName": "google.cloud.dialogflow.v2beta1.DocumentsClient" - }, - "method": { - "shortName": "DeleteDocument", - "fullName": "google.cloud.dialogflow.v2beta1.Documents.DeleteDocument", - "service": { - "shortName": "Documents", - "fullName": "google.cloud.dialogflow.v2beta1.Documents" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Documents_UpdateDocument_async", - "title": "dialogflow updateDocument Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified document. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata] - `response`: [Document][google.cloud.dialogflow.v2beta1.Document] Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; only use `projects.knowledgeBases.documents`.", - "canonical": true, - "file": "documents.update_document.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDocument", - "fullName": "google.cloud.dialogflow.v2beta1.Documents.UpdateDocument", - "async": true, - "parameters": [ - { - "name": "document", - "type": ".google.cloud.dialogflow.v2beta1.Document" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DocumentsClient", - "fullName": "google.cloud.dialogflow.v2beta1.DocumentsClient" - }, - "method": { - "shortName": "UpdateDocument", - "fullName": "google.cloud.dialogflow.v2beta1.Documents.UpdateDocument", - "service": { - "shortName": "Documents", - "fullName": "google.cloud.dialogflow.v2beta1.Documents" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Documents_ReloadDocument_async", - "title": "dialogflow reloadDocument Sample", - "origin": "API_DEFINITION", - "description": " Reloads the specified document from its specified source, content_uri or content. The previously loaded content of the document will be deleted. Note: Even when the content of the document has not changed, there still may be side effects because of internal implementation changes. Note: If the document source is Google Cloud Storage URI, its metadata will be replaced with the custom metadata from Google Cloud Storage if the `import_gcs_custom_metadata` field is set to true in the request. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: [KnowledgeOperationMetadata][google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata] - `response`: [Document][google.cloud.dialogflow.v2beta1.Document] Note: The `projects.agent.knowledgeBases.documents` resource is deprecated; only use `projects.knowledgeBases.documents`.", - "canonical": true, - "file": "documents.reload_document.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReloadDocument", - "fullName": "google.cloud.dialogflow.v2beta1.Documents.ReloadDocument", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "gcs_source", - "type": ".google.cloud.dialogflow.v2beta1.GcsSource" - }, - { - "name": "import_gcs_custom_metadata", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DocumentsClient", - "fullName": "google.cloud.dialogflow.v2beta1.DocumentsClient" - }, - "method": { - "shortName": "ReloadDocument", - "fullName": "google.cloud.dialogflow.v2beta1.Documents.ReloadDocument", - "service": { - "shortName": "Documents", - "fullName": "google.cloud.dialogflow.v2beta1.Documents" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_EncryptionSpecService_GetEncryptionSpec_async", - "title": "dialogflow getEncryptionSpec Sample", - "origin": "API_DEFINITION", - "description": " Gets location-level encryption key specification.", - "canonical": true, - "file": "encryption_spec_service.get_encryption_spec.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEncryptionSpec", - "fullName": "google.cloud.dialogflow.v2beta1.EncryptionSpecService.GetEncryptionSpec", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.EncryptionSpec", - "client": { - "shortName": "EncryptionSpecServiceClient", - "fullName": "google.cloud.dialogflow.v2beta1.EncryptionSpecServiceClient" - }, - "method": { - "shortName": "GetEncryptionSpec", - "fullName": "google.cloud.dialogflow.v2beta1.EncryptionSpecService.GetEncryptionSpec", - "service": { - "shortName": "EncryptionSpecService", - "fullName": "google.cloud.dialogflow.v2beta1.EncryptionSpecService" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_EncryptionSpecService_InitializeEncryptionSpec_async", - "title": "dialogflow initializeEncryptionSpec Sample", - "origin": "API_DEFINITION", - "description": " Initializes a location-level encryption key specification. An error will be thrown if the location has resources already created before the initialization. Once the encryption specification is initialized at a location, it is immutable and all newly created resources under the location will be encrypted with the existing specification.", - "canonical": true, - "file": "encryption_spec_service.initialize_encryption_spec.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "InitializeEncryptionSpec", - "fullName": "google.cloud.dialogflow.v2beta1.EncryptionSpecService.InitializeEncryptionSpec", - "async": true, - "parameters": [ - { - "name": "encryption_spec", - "type": ".google.cloud.dialogflow.v2beta1.EncryptionSpec" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EncryptionSpecServiceClient", - "fullName": "google.cloud.dialogflow.v2beta1.EncryptionSpecServiceClient" - }, - "method": { - "shortName": "InitializeEncryptionSpec", - "fullName": "google.cloud.dialogflow.v2beta1.EncryptionSpecService.InitializeEncryptionSpec", - "service": { - "shortName": "EncryptionSpecService", - "fullName": "google.cloud.dialogflow.v2beta1.EncryptionSpecService" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_EntityTypes_ListEntityTypes_async", - "title": "dialogflow listEntityTypes Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of all entity types in the specified agent.", - "canonical": true, - "file": "entity_types.list_entity_types.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEntityTypes", - "fullName": "google.cloud.dialogflow.v2beta1.EntityTypes.ListEntityTypes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.ListEntityTypesResponse", - "client": { - "shortName": "EntityTypesClient", - "fullName": "google.cloud.dialogflow.v2beta1.EntityTypesClient" - }, - "method": { - "shortName": "ListEntityTypes", - "fullName": "google.cloud.dialogflow.v2beta1.EntityTypes.ListEntityTypes", - "service": { - "shortName": "EntityTypes", - "fullName": "google.cloud.dialogflow.v2beta1.EntityTypes" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_EntityTypes_GetEntityType_async", - "title": "dialogflow getEntityType Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified entity type.", - "canonical": true, - "file": "entity_types.get_entity_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEntityType", - "fullName": "google.cloud.dialogflow.v2beta1.EntityTypes.GetEntityType", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.EntityType", - "client": { - "shortName": "EntityTypesClient", - "fullName": "google.cloud.dialogflow.v2beta1.EntityTypesClient" - }, - "method": { - "shortName": "GetEntityType", - "fullName": "google.cloud.dialogflow.v2beta1.EntityTypes.GetEntityType", - "service": { - "shortName": "EntityTypes", - "fullName": "google.cloud.dialogflow.v2beta1.EntityTypes" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_EntityTypes_CreateEntityType_async", - "title": "dialogflow createEntityType Sample", - "origin": "API_DEFINITION", - "description": " Creates an entity type in the specified agent. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).", - "canonical": true, - "file": "entity_types.create_entity_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateEntityType", - "fullName": "google.cloud.dialogflow.v2beta1.EntityTypes.CreateEntityType", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "entity_type", - "type": ".google.cloud.dialogflow.v2beta1.EntityType" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.EntityType", - "client": { - "shortName": "EntityTypesClient", - "fullName": "google.cloud.dialogflow.v2beta1.EntityTypesClient" - }, - "method": { - "shortName": "CreateEntityType", - "fullName": "google.cloud.dialogflow.v2beta1.EntityTypes.CreateEntityType", - "service": { - "shortName": "EntityTypes", - "fullName": "google.cloud.dialogflow.v2beta1.EntityTypes" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_EntityTypes_UpdateEntityType_async", - "title": "dialogflow updateEntityType Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified entity type. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).", - "canonical": true, - "file": "entity_types.update_entity_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateEntityType", - "fullName": "google.cloud.dialogflow.v2beta1.EntityTypes.UpdateEntityType", - "async": true, - "parameters": [ - { - "name": "entity_type", - "type": ".google.cloud.dialogflow.v2beta1.EntityType" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.EntityType", - "client": { - "shortName": "EntityTypesClient", - "fullName": "google.cloud.dialogflow.v2beta1.EntityTypesClient" - }, - "method": { - "shortName": "UpdateEntityType", - "fullName": "google.cloud.dialogflow.v2beta1.EntityTypes.UpdateEntityType", - "service": { - "shortName": "EntityTypes", - "fullName": "google.cloud.dialogflow.v2beta1.EntityTypes" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_EntityTypes_DeleteEntityType_async", - "title": "dialogflow deleteEntityType Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified entity type. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).", - "canonical": true, - "file": "entity_types.delete_entity_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteEntityType", - "fullName": "google.cloud.dialogflow.v2beta1.EntityTypes.DeleteEntityType", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "EntityTypesClient", - "fullName": "google.cloud.dialogflow.v2beta1.EntityTypesClient" - }, - "method": { - "shortName": "DeleteEntityType", - "fullName": "google.cloud.dialogflow.v2beta1.EntityTypes.DeleteEntityType", - "service": { - "shortName": "EntityTypes", - "fullName": "google.cloud.dialogflow.v2beta1.EntityTypes" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_EntityTypes_BatchUpdateEntityTypes_async", - "title": "dialogflow batchUpdateEntityTypes Sample", - "origin": "API_DEFINITION", - "description": " Updates/Creates multiple entity types in the specified agent. This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: - `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: [BatchUpdateEntityTypesResponse][google.cloud.dialogflow.v2beta1.BatchUpdateEntityTypesResponse] Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).", - "canonical": true, - "file": "entity_types.batch_update_entity_types.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchUpdateEntityTypes", - "fullName": "google.cloud.dialogflow.v2beta1.EntityTypes.BatchUpdateEntityTypes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "entity_type_batch_uri", - "type": "TYPE_STRING" - }, - { - "name": "entity_type_batch_inline", - "type": ".google.cloud.dialogflow.v2beta1.EntityTypeBatch" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EntityTypesClient", - "fullName": "google.cloud.dialogflow.v2beta1.EntityTypesClient" - }, - "method": { - "shortName": "BatchUpdateEntityTypes", - "fullName": "google.cloud.dialogflow.v2beta1.EntityTypes.BatchUpdateEntityTypes", - "service": { - "shortName": "EntityTypes", - "fullName": "google.cloud.dialogflow.v2beta1.EntityTypes" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_EntityTypes_BatchDeleteEntityTypes_async", - "title": "dialogflow batchDeleteEntityTypes Sample", - "origin": "API_DEFINITION", - "description": " Deletes entity types in the specified agent. This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: - `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).", - "canonical": true, - "file": "entity_types.batch_delete_entity_types.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchDeleteEntityTypes", - "fullName": "google.cloud.dialogflow.v2beta1.EntityTypes.BatchDeleteEntityTypes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "entity_type_names", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EntityTypesClient", - "fullName": "google.cloud.dialogflow.v2beta1.EntityTypesClient" - }, - "method": { - "shortName": "BatchDeleteEntityTypes", - "fullName": "google.cloud.dialogflow.v2beta1.EntityTypes.BatchDeleteEntityTypes", - "service": { - "shortName": "EntityTypes", - "fullName": "google.cloud.dialogflow.v2beta1.EntityTypes" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_EntityTypes_BatchCreateEntities_async", - "title": "dialogflow batchCreateEntities Sample", - "origin": "API_DEFINITION", - "description": " Creates multiple new entities in the specified entity type. This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: - `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).", - "canonical": true, - "file": "entity_types.batch_create_entities.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCreateEntities", - "fullName": "google.cloud.dialogflow.v2beta1.EntityTypes.BatchCreateEntities", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "entities", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EntityTypesClient", - "fullName": "google.cloud.dialogflow.v2beta1.EntityTypesClient" - }, - "method": { - "shortName": "BatchCreateEntities", - "fullName": "google.cloud.dialogflow.v2beta1.EntityTypes.BatchCreateEntities", - "service": { - "shortName": "EntityTypes", - "fullName": "google.cloud.dialogflow.v2beta1.EntityTypes" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_EntityTypes_BatchUpdateEntities_async", - "title": "dialogflow batchUpdateEntities Sample", - "origin": "API_DEFINITION", - "description": " Updates or creates multiple entities in the specified entity type. This method does not affect entities in the entity type that aren't explicitly specified in the request. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training). This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: - `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)", - "canonical": true, - "file": "entity_types.batch_update_entities.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchUpdateEntities", - "fullName": "google.cloud.dialogflow.v2beta1.EntityTypes.BatchUpdateEntities", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "entities", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EntityTypesClient", - "fullName": "google.cloud.dialogflow.v2beta1.EntityTypesClient" - }, - "method": { - "shortName": "BatchUpdateEntities", - "fullName": "google.cloud.dialogflow.v2beta1.EntityTypes.BatchUpdateEntities", - "service": { - "shortName": "EntityTypes", - "fullName": "google.cloud.dialogflow.v2beta1.EntityTypes" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_EntityTypes_BatchDeleteEntities_async", - "title": "dialogflow batchDeleteEntities Sample", - "origin": "API_DEFINITION", - "description": " Deletes entities in the specified entity type. This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: - `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).", - "canonical": true, - "file": "entity_types.batch_delete_entities.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchDeleteEntities", - "fullName": "google.cloud.dialogflow.v2beta1.EntityTypes.BatchDeleteEntities", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "entity_values", - "type": "TYPE_STRING[]" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EntityTypesClient", - "fullName": "google.cloud.dialogflow.v2beta1.EntityTypesClient" - }, - "method": { - "shortName": "BatchDeleteEntities", - "fullName": "google.cloud.dialogflow.v2beta1.EntityTypes.BatchDeleteEntities", - "service": { - "shortName": "EntityTypes", - "fullName": "google.cloud.dialogflow.v2beta1.EntityTypes" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Environments_ListEnvironments_async", - "title": "dialogflow listEnvironments Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of all non-draft environments of the specified agent.", - "canonical": true, - "file": "environments.list_environments.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEnvironments", - "fullName": "google.cloud.dialogflow.v2beta1.Environments.ListEnvironments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.ListEnvironmentsResponse", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.dialogflow.v2beta1.EnvironmentsClient" - }, - "method": { - "shortName": "ListEnvironments", - "fullName": "google.cloud.dialogflow.v2beta1.Environments.ListEnvironments", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.dialogflow.v2beta1.Environments" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Environments_GetEnvironment_async", - "title": "dialogflow getEnvironment Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified agent environment.", - "canonical": true, - "file": "environments.get_environment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEnvironment", - "fullName": "google.cloud.dialogflow.v2beta1.Environments.GetEnvironment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.Environment", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.dialogflow.v2beta1.EnvironmentsClient" - }, - "method": { - "shortName": "GetEnvironment", - "fullName": "google.cloud.dialogflow.v2beta1.Environments.GetEnvironment", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.dialogflow.v2beta1.Environments" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Environments_CreateEnvironment_async", - "title": "dialogflow createEnvironment Sample", - "origin": "API_DEFINITION", - "description": " Creates an agent environment.", - "canonical": true, - "file": "environments.create_environment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateEnvironment", - "fullName": "google.cloud.dialogflow.v2beta1.Environments.CreateEnvironment", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "environment", - "type": ".google.cloud.dialogflow.v2beta1.Environment" - }, - { - "name": "environment_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.Environment", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.dialogflow.v2beta1.EnvironmentsClient" - }, - "method": { - "shortName": "CreateEnvironment", - "fullName": "google.cloud.dialogflow.v2beta1.Environments.CreateEnvironment", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.dialogflow.v2beta1.Environments" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Environments_UpdateEnvironment_async", - "title": "dialogflow updateEnvironment Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified agent environment. This method allows you to deploy new agent versions into the environment. When an environment is pointed to a new agent version by setting `environment.agent_version`, the environment is temporarily set to the `LOADING` state. During that time, the environment keeps on serving the previous version of the agent. After the new agent version is done loading, the environment is set back to the `RUNNING` state. You can use \"-\" as Environment ID in environment name to update version in \"draft\" environment. WARNING: this will negate all recent changes to draft and can't be undone. You may want to save the draft to a version before calling this function.", - "canonical": true, - "file": "environments.update_environment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateEnvironment", - "fullName": "google.cloud.dialogflow.v2beta1.Environments.UpdateEnvironment", - "async": true, - "parameters": [ - { - "name": "environment", - "type": ".google.cloud.dialogflow.v2beta1.Environment" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "allow_load_to_draft_and_discard_changes", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.Environment", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.dialogflow.v2beta1.EnvironmentsClient" - }, - "method": { - "shortName": "UpdateEnvironment", - "fullName": "google.cloud.dialogflow.v2beta1.Environments.UpdateEnvironment", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.dialogflow.v2beta1.Environments" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Environments_DeleteEnvironment_async", - "title": "dialogflow deleteEnvironment Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified agent environment.", - "canonical": true, - "file": "environments.delete_environment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteEnvironment", - "fullName": "google.cloud.dialogflow.v2beta1.Environments.DeleteEnvironment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.dialogflow.v2beta1.EnvironmentsClient" - }, - "method": { - "shortName": "DeleteEnvironment", - "fullName": "google.cloud.dialogflow.v2beta1.Environments.DeleteEnvironment", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.dialogflow.v2beta1.Environments" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Environments_GetEnvironmentHistory_async", - "title": "dialogflow getEnvironmentHistory Sample", - "origin": "API_DEFINITION", - "description": " Gets the history of the specified environment.", - "canonical": true, - "file": "environments.get_environment_history.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEnvironmentHistory", - "fullName": "google.cloud.dialogflow.v2beta1.Environments.GetEnvironmentHistory", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.EnvironmentHistory", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.dialogflow.v2beta1.EnvironmentsClient" - }, - "method": { - "shortName": "GetEnvironmentHistory", - "fullName": "google.cloud.dialogflow.v2beta1.Environments.GetEnvironmentHistory", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.dialogflow.v2beta1.Environments" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Fulfillments_GetFulfillment_async", - "title": "dialogflow getFulfillment Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the fulfillment.", - "canonical": true, - "file": "fulfillments.get_fulfillment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFulfillment", - "fullName": "google.cloud.dialogflow.v2beta1.Fulfillments.GetFulfillment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.Fulfillment", - "client": { - "shortName": "FulfillmentsClient", - "fullName": "google.cloud.dialogflow.v2beta1.FulfillmentsClient" - }, - "method": { - "shortName": "GetFulfillment", - "fullName": "google.cloud.dialogflow.v2beta1.Fulfillments.GetFulfillment", - "service": { - "shortName": "Fulfillments", - "fullName": "google.cloud.dialogflow.v2beta1.Fulfillments" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Fulfillments_UpdateFulfillment_async", - "title": "dialogflow updateFulfillment Sample", - "origin": "API_DEFINITION", - "description": " Updates the fulfillment.", - "canonical": true, - "file": "fulfillments.update_fulfillment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateFulfillment", - "fullName": "google.cloud.dialogflow.v2beta1.Fulfillments.UpdateFulfillment", - "async": true, - "parameters": [ - { - "name": "fulfillment", - "type": ".google.cloud.dialogflow.v2beta1.Fulfillment" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.Fulfillment", - "client": { - "shortName": "FulfillmentsClient", - "fullName": "google.cloud.dialogflow.v2beta1.FulfillmentsClient" - }, - "method": { - "shortName": "UpdateFulfillment", - "fullName": "google.cloud.dialogflow.v2beta1.Fulfillments.UpdateFulfillment", - "service": { - "shortName": "Fulfillments", - "fullName": "google.cloud.dialogflow.v2beta1.Fulfillments" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_GeneratorEvaluations_CreateGeneratorEvaluation_async", - "title": "dialogflow createGeneratorEvaluation Sample", - "origin": "API_DEFINITION", - "description": " Creates evaluation of a generator.", - "canonical": true, - "file": "generator_evaluations.create_generator_evaluation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateGeneratorEvaluation", - "fullName": "google.cloud.dialogflow.v2beta1.GeneratorEvaluations.CreateGeneratorEvaluation", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "generator_evaluation", - "type": ".google.cloud.dialogflow.v2beta1.GeneratorEvaluation" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GeneratorEvaluationsClient", - "fullName": "google.cloud.dialogflow.v2beta1.GeneratorEvaluationsClient" - }, - "method": { - "shortName": "CreateGeneratorEvaluation", - "fullName": "google.cloud.dialogflow.v2beta1.GeneratorEvaluations.CreateGeneratorEvaluation", - "service": { - "shortName": "GeneratorEvaluations", - "fullName": "google.cloud.dialogflow.v2beta1.GeneratorEvaluations" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_GeneratorEvaluations_GetGeneratorEvaluation_async", - "title": "dialogflow getGeneratorEvaluation Sample", - "origin": "API_DEFINITION", - "description": " Gets an evaluation of generator.", - "canonical": true, - "file": "generator_evaluations.get_generator_evaluation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetGeneratorEvaluation", - "fullName": "google.cloud.dialogflow.v2beta1.GeneratorEvaluations.GetGeneratorEvaluation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.GeneratorEvaluation", - "client": { - "shortName": "GeneratorEvaluationsClient", - "fullName": "google.cloud.dialogflow.v2beta1.GeneratorEvaluationsClient" - }, - "method": { - "shortName": "GetGeneratorEvaluation", - "fullName": "google.cloud.dialogflow.v2beta1.GeneratorEvaluations.GetGeneratorEvaluation", - "service": { - "shortName": "GeneratorEvaluations", - "fullName": "google.cloud.dialogflow.v2beta1.GeneratorEvaluations" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_GeneratorEvaluations_ListGeneratorEvaluations_async", - "title": "dialogflow listGeneratorEvaluations Sample", - "origin": "API_DEFINITION", - "description": " Lists evaluations of generator.", - "canonical": true, - "file": "generator_evaluations.list_generator_evaluations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListGeneratorEvaluations", - "fullName": "google.cloud.dialogflow.v2beta1.GeneratorEvaluations.ListGeneratorEvaluations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.ListGeneratorEvaluationsResponse", - "client": { - "shortName": "GeneratorEvaluationsClient", - "fullName": "google.cloud.dialogflow.v2beta1.GeneratorEvaluationsClient" - }, - "method": { - "shortName": "ListGeneratorEvaluations", - "fullName": "google.cloud.dialogflow.v2beta1.GeneratorEvaluations.ListGeneratorEvaluations", - "service": { - "shortName": "GeneratorEvaluations", - "fullName": "google.cloud.dialogflow.v2beta1.GeneratorEvaluations" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_GeneratorEvaluations_DeleteGeneratorEvaluation_async", - "title": "dialogflow deleteGeneratorEvaluation Sample", - "origin": "API_DEFINITION", - "description": " Deletes an evaluation of generator.", - "canonical": true, - "file": "generator_evaluations.delete_generator_evaluation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteGeneratorEvaluation", - "fullName": "google.cloud.dialogflow.v2beta1.GeneratorEvaluations.DeleteGeneratorEvaluation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "GeneratorEvaluationsClient", - "fullName": "google.cloud.dialogflow.v2beta1.GeneratorEvaluationsClient" - }, - "method": { - "shortName": "DeleteGeneratorEvaluation", - "fullName": "google.cloud.dialogflow.v2beta1.GeneratorEvaluations.DeleteGeneratorEvaluation", - "service": { - "shortName": "GeneratorEvaluations", - "fullName": "google.cloud.dialogflow.v2beta1.GeneratorEvaluations" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Generators_CreateGenerator_async", - "title": "dialogflow createGenerator Sample", - "origin": "API_DEFINITION", - "description": " Creates a generator.", - "canonical": true, - "file": "generators.create_generator.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateGenerator", - "fullName": "google.cloud.dialogflow.v2beta1.Generators.CreateGenerator", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "generator", - "type": ".google.cloud.dialogflow.v2beta1.Generator" - }, - { - "name": "generator_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.Generator", - "client": { - "shortName": "GeneratorsClient", - "fullName": "google.cloud.dialogflow.v2beta1.GeneratorsClient" - }, - "method": { - "shortName": "CreateGenerator", - "fullName": "google.cloud.dialogflow.v2beta1.Generators.CreateGenerator", - "service": { - "shortName": "Generators", - "fullName": "google.cloud.dialogflow.v2beta1.Generators" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Generators_GetGenerator_async", - "title": "dialogflow getGenerator Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a generator.", - "canonical": true, - "file": "generators.get_generator.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetGenerator", - "fullName": "google.cloud.dialogflow.v2beta1.Generators.GetGenerator", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.Generator", - "client": { - "shortName": "GeneratorsClient", - "fullName": "google.cloud.dialogflow.v2beta1.GeneratorsClient" - }, - "method": { - "shortName": "GetGenerator", - "fullName": "google.cloud.dialogflow.v2beta1.Generators.GetGenerator", - "service": { - "shortName": "Generators", - "fullName": "google.cloud.dialogflow.v2beta1.Generators" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Generators_ListGenerators_async", - "title": "dialogflow listGenerators Sample", - "origin": "API_DEFINITION", - "description": " Lists generators.", - "canonical": true, - "file": "generators.list_generators.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListGenerators", - "fullName": "google.cloud.dialogflow.v2beta1.Generators.ListGenerators", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.ListGeneratorsResponse", - "client": { - "shortName": "GeneratorsClient", - "fullName": "google.cloud.dialogflow.v2beta1.GeneratorsClient" - }, - "method": { - "shortName": "ListGenerators", - "fullName": "google.cloud.dialogflow.v2beta1.Generators.ListGenerators", - "service": { - "shortName": "Generators", - "fullName": "google.cloud.dialogflow.v2beta1.Generators" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Generators_DeleteGenerator_async", - "title": "dialogflow deleteGenerator Sample", - "origin": "API_DEFINITION", - "description": " Deletes a generator.", - "canonical": true, - "file": "generators.delete_generator.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteGenerator", - "fullName": "google.cloud.dialogflow.v2beta1.Generators.DeleteGenerator", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "GeneratorsClient", - "fullName": "google.cloud.dialogflow.v2beta1.GeneratorsClient" - }, - "method": { - "shortName": "DeleteGenerator", - "fullName": "google.cloud.dialogflow.v2beta1.Generators.DeleteGenerator", - "service": { - "shortName": "Generators", - "fullName": "google.cloud.dialogflow.v2beta1.Generators" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Generators_UpdateGenerator_async", - "title": "dialogflow updateGenerator Sample", - "origin": "API_DEFINITION", - "description": " Updates a generator.", - "canonical": true, - "file": "generators.update_generator.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateGenerator", - "fullName": "google.cloud.dialogflow.v2beta1.Generators.UpdateGenerator", - "async": true, - "parameters": [ - { - "name": "generator", - "type": ".google.cloud.dialogflow.v2beta1.Generator" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.Generator", - "client": { - "shortName": "GeneratorsClient", - "fullName": "google.cloud.dialogflow.v2beta1.GeneratorsClient" - }, - "method": { - "shortName": "UpdateGenerator", - "fullName": "google.cloud.dialogflow.v2beta1.Generators.UpdateGenerator", - "service": { - "shortName": "Generators", - "fullName": "google.cloud.dialogflow.v2beta1.Generators" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Intents_ListIntents_async", - "title": "dialogflow listIntents Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of all intents in the specified agent.", - "canonical": true, - "file": "intents.list_intents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListIntents", - "fullName": "google.cloud.dialogflow.v2beta1.Intents.ListIntents", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "intent_view", - "type": ".google.cloud.dialogflow.v2beta1.IntentView" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.ListIntentsResponse", - "client": { - "shortName": "IntentsClient", - "fullName": "google.cloud.dialogflow.v2beta1.IntentsClient" - }, - "method": { - "shortName": "ListIntents", - "fullName": "google.cloud.dialogflow.v2beta1.Intents.ListIntents", - "service": { - "shortName": "Intents", - "fullName": "google.cloud.dialogflow.v2beta1.Intents" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Intents_GetIntent_async", - "title": "dialogflow getIntent Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified intent.", - "canonical": true, - "file": "intents.get_intent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIntent", - "fullName": "google.cloud.dialogflow.v2beta1.Intents.GetIntent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "intent_view", - "type": ".google.cloud.dialogflow.v2beta1.IntentView" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.Intent", - "client": { - "shortName": "IntentsClient", - "fullName": "google.cloud.dialogflow.v2beta1.IntentsClient" - }, - "method": { - "shortName": "GetIntent", - "fullName": "google.cloud.dialogflow.v2beta1.Intents.GetIntent", - "service": { - "shortName": "Intents", - "fullName": "google.cloud.dialogflow.v2beta1.Intents" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Intents_CreateIntent_async", - "title": "dialogflow createIntent Sample", - "origin": "API_DEFINITION", - "description": " Creates an intent in the specified agent. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).", - "canonical": true, - "file": "intents.create_intent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateIntent", - "fullName": "google.cloud.dialogflow.v2beta1.Intents.CreateIntent", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "intent", - "type": ".google.cloud.dialogflow.v2beta1.Intent" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "intent_view", - "type": ".google.cloud.dialogflow.v2beta1.IntentView" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.Intent", - "client": { - "shortName": "IntentsClient", - "fullName": "google.cloud.dialogflow.v2beta1.IntentsClient" - }, - "method": { - "shortName": "CreateIntent", - "fullName": "google.cloud.dialogflow.v2beta1.Intents.CreateIntent", - "service": { - "shortName": "Intents", - "fullName": "google.cloud.dialogflow.v2beta1.Intents" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Intents_UpdateIntent_async", - "title": "dialogflow updateIntent Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified intent. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).", - "canonical": true, - "file": "intents.update_intent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateIntent", - "fullName": "google.cloud.dialogflow.v2beta1.Intents.UpdateIntent", - "async": true, - "parameters": [ - { - "name": "intent", - "type": ".google.cloud.dialogflow.v2beta1.Intent" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "intent_view", - "type": ".google.cloud.dialogflow.v2beta1.IntentView" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.Intent", - "client": { - "shortName": "IntentsClient", - "fullName": "google.cloud.dialogflow.v2beta1.IntentsClient" - }, - "method": { - "shortName": "UpdateIntent", - "fullName": "google.cloud.dialogflow.v2beta1.Intents.UpdateIntent", - "service": { - "shortName": "Intents", - "fullName": "google.cloud.dialogflow.v2beta1.Intents" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Intents_DeleteIntent_async", - "title": "dialogflow deleteIntent Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified intent and its direct or indirect followup intents. Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).", - "canonical": true, - "file": "intents.delete_intent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteIntent", - "fullName": "google.cloud.dialogflow.v2beta1.Intents.DeleteIntent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "IntentsClient", - "fullName": "google.cloud.dialogflow.v2beta1.IntentsClient" - }, - "method": { - "shortName": "DeleteIntent", - "fullName": "google.cloud.dialogflow.v2beta1.Intents.DeleteIntent", - "service": { - "shortName": "Intents", - "fullName": "google.cloud.dialogflow.v2beta1.Intents" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Intents_BatchUpdateIntents_async", - "title": "dialogflow batchUpdateIntents Sample", - "origin": "API_DEFINITION", - "description": " Updates/Creates multiple intents in the specified agent. This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: - `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: [BatchUpdateIntentsResponse][google.cloud.dialogflow.v2beta1.BatchUpdateIntentsResponse] Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).", - "canonical": true, - "file": "intents.batch_update_intents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchUpdateIntents", - "fullName": "google.cloud.dialogflow.v2beta1.Intents.BatchUpdateIntents", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "intent_batch_uri", - "type": "TYPE_STRING" - }, - { - "name": "intent_batch_inline", - "type": ".google.cloud.dialogflow.v2beta1.IntentBatch" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "intent_view", - "type": ".google.cloud.dialogflow.v2beta1.IntentView" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "IntentsClient", - "fullName": "google.cloud.dialogflow.v2beta1.IntentsClient" - }, - "method": { - "shortName": "BatchUpdateIntents", - "fullName": "google.cloud.dialogflow.v2beta1.Intents.BatchUpdateIntents", - "service": { - "shortName": "Intents", - "fullName": "google.cloud.dialogflow.v2beta1.Intents" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Intents_BatchDeleteIntents_async", - "title": "dialogflow batchDeleteIntents Sample", - "origin": "API_DEFINITION", - "description": " Deletes intents in the specified agent. This method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields: - `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) Note: You should always train an agent prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/es/docs/training).", - "canonical": true, - "file": "intents.batch_delete_intents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchDeleteIntents", - "fullName": "google.cloud.dialogflow.v2beta1.Intents.BatchDeleteIntents", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "intents", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "IntentsClient", - "fullName": "google.cloud.dialogflow.v2beta1.IntentsClient" - }, - "method": { - "shortName": "BatchDeleteIntents", - "fullName": "google.cloud.dialogflow.v2beta1.Intents.BatchDeleteIntents", - "service": { - "shortName": "Intents", - "fullName": "google.cloud.dialogflow.v2beta1.Intents" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_KnowledgeBases_ListKnowledgeBases_async", - "title": "dialogflow listKnowledgeBases Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of all knowledge bases of the specified agent. Note: The `projects.agent.knowledgeBases` resource is deprecated; only use `projects.knowledgeBases`.", - "canonical": true, - "file": "knowledge_bases.list_knowledge_bases.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListKnowledgeBases", - "fullName": "google.cloud.dialogflow.v2beta1.KnowledgeBases.ListKnowledgeBases", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.ListKnowledgeBasesResponse", - "client": { - "shortName": "KnowledgeBasesClient", - "fullName": "google.cloud.dialogflow.v2beta1.KnowledgeBasesClient" - }, - "method": { - "shortName": "ListKnowledgeBases", - "fullName": "google.cloud.dialogflow.v2beta1.KnowledgeBases.ListKnowledgeBases", - "service": { - "shortName": "KnowledgeBases", - "fullName": "google.cloud.dialogflow.v2beta1.KnowledgeBases" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_KnowledgeBases_GetKnowledgeBase_async", - "title": "dialogflow getKnowledgeBase Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified knowledge base. Note: The `projects.agent.knowledgeBases` resource is deprecated; only use `projects.knowledgeBases`.", - "canonical": true, - "file": "knowledge_bases.get_knowledge_base.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetKnowledgeBase", - "fullName": "google.cloud.dialogflow.v2beta1.KnowledgeBases.GetKnowledgeBase", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.KnowledgeBase", - "client": { - "shortName": "KnowledgeBasesClient", - "fullName": "google.cloud.dialogflow.v2beta1.KnowledgeBasesClient" - }, - "method": { - "shortName": "GetKnowledgeBase", - "fullName": "google.cloud.dialogflow.v2beta1.KnowledgeBases.GetKnowledgeBase", - "service": { - "shortName": "KnowledgeBases", - "fullName": "google.cloud.dialogflow.v2beta1.KnowledgeBases" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_KnowledgeBases_CreateKnowledgeBase_async", - "title": "dialogflow createKnowledgeBase Sample", - "origin": "API_DEFINITION", - "description": " Creates a knowledge base. Note: The `projects.agent.knowledgeBases` resource is deprecated; only use `projects.knowledgeBases`.", - "canonical": true, - "file": "knowledge_bases.create_knowledge_base.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateKnowledgeBase", - "fullName": "google.cloud.dialogflow.v2beta1.KnowledgeBases.CreateKnowledgeBase", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "knowledge_base", - "type": ".google.cloud.dialogflow.v2beta1.KnowledgeBase" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.KnowledgeBase", - "client": { - "shortName": "KnowledgeBasesClient", - "fullName": "google.cloud.dialogflow.v2beta1.KnowledgeBasesClient" - }, - "method": { - "shortName": "CreateKnowledgeBase", - "fullName": "google.cloud.dialogflow.v2beta1.KnowledgeBases.CreateKnowledgeBase", - "service": { - "shortName": "KnowledgeBases", - "fullName": "google.cloud.dialogflow.v2beta1.KnowledgeBases" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_KnowledgeBases_DeleteKnowledgeBase_async", - "title": "dialogflow deleteKnowledgeBase Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified knowledge base. Note: The `projects.agent.knowledgeBases` resource is deprecated; only use `projects.knowledgeBases`.", - "canonical": true, - "file": "knowledge_bases.delete_knowledge_base.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteKnowledgeBase", - "fullName": "google.cloud.dialogflow.v2beta1.KnowledgeBases.DeleteKnowledgeBase", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "KnowledgeBasesClient", - "fullName": "google.cloud.dialogflow.v2beta1.KnowledgeBasesClient" - }, - "method": { - "shortName": "DeleteKnowledgeBase", - "fullName": "google.cloud.dialogflow.v2beta1.KnowledgeBases.DeleteKnowledgeBase", - "service": { - "shortName": "KnowledgeBases", - "fullName": "google.cloud.dialogflow.v2beta1.KnowledgeBases" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_KnowledgeBases_UpdateKnowledgeBase_async", - "title": "dialogflow updateKnowledgeBase Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified knowledge base. Note: The `projects.agent.knowledgeBases` resource is deprecated; only use `projects.knowledgeBases`.", - "canonical": true, - "file": "knowledge_bases.update_knowledge_base.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateKnowledgeBase", - "fullName": "google.cloud.dialogflow.v2beta1.KnowledgeBases.UpdateKnowledgeBase", - "async": true, - "parameters": [ - { - "name": "knowledge_base", - "type": ".google.cloud.dialogflow.v2beta1.KnowledgeBase" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.KnowledgeBase", - "client": { - "shortName": "KnowledgeBasesClient", - "fullName": "google.cloud.dialogflow.v2beta1.KnowledgeBasesClient" - }, - "method": { - "shortName": "UpdateKnowledgeBase", - "fullName": "google.cloud.dialogflow.v2beta1.KnowledgeBases.UpdateKnowledgeBase", - "service": { - "shortName": "KnowledgeBases", - "fullName": "google.cloud.dialogflow.v2beta1.KnowledgeBases" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Participants_CreateParticipant_async", - "title": "dialogflow createParticipant Sample", - "origin": "API_DEFINITION", - "description": " Creates a new participant in a conversation.", - "canonical": true, - "file": "participants.create_participant.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateParticipant", - "fullName": "google.cloud.dialogflow.v2beta1.Participants.CreateParticipant", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "participant", - "type": ".google.cloud.dialogflow.v2beta1.Participant" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.Participant", - "client": { - "shortName": "ParticipantsClient", - "fullName": "google.cloud.dialogflow.v2beta1.ParticipantsClient" - }, - "method": { - "shortName": "CreateParticipant", - "fullName": "google.cloud.dialogflow.v2beta1.Participants.CreateParticipant", - "service": { - "shortName": "Participants", - "fullName": "google.cloud.dialogflow.v2beta1.Participants" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Participants_GetParticipant_async", - "title": "dialogflow getParticipant Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a conversation participant.", - "canonical": true, - "file": "participants.get_participant.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetParticipant", - "fullName": "google.cloud.dialogflow.v2beta1.Participants.GetParticipant", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.Participant", - "client": { - "shortName": "ParticipantsClient", - "fullName": "google.cloud.dialogflow.v2beta1.ParticipantsClient" - }, - "method": { - "shortName": "GetParticipant", - "fullName": "google.cloud.dialogflow.v2beta1.Participants.GetParticipant", - "service": { - "shortName": "Participants", - "fullName": "google.cloud.dialogflow.v2beta1.Participants" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Participants_ListParticipants_async", - "title": "dialogflow listParticipants Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of all participants in the specified conversation.", - "canonical": true, - "file": "participants.list_participants.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListParticipants", - "fullName": "google.cloud.dialogflow.v2beta1.Participants.ListParticipants", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.ListParticipantsResponse", - "client": { - "shortName": "ParticipantsClient", - "fullName": "google.cloud.dialogflow.v2beta1.ParticipantsClient" - }, - "method": { - "shortName": "ListParticipants", - "fullName": "google.cloud.dialogflow.v2beta1.Participants.ListParticipants", - "service": { - "shortName": "Participants", - "fullName": "google.cloud.dialogflow.v2beta1.Participants" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Participants_UpdateParticipant_async", - "title": "dialogflow updateParticipant Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified participant.", - "canonical": true, - "file": "participants.update_participant.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateParticipant", - "fullName": "google.cloud.dialogflow.v2beta1.Participants.UpdateParticipant", - "async": true, - "parameters": [ - { - "name": "participant", - "type": ".google.cloud.dialogflow.v2beta1.Participant" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.Participant", - "client": { - "shortName": "ParticipantsClient", - "fullName": "google.cloud.dialogflow.v2beta1.ParticipantsClient" - }, - "method": { - "shortName": "UpdateParticipant", - "fullName": "google.cloud.dialogflow.v2beta1.Participants.UpdateParticipant", - "service": { - "shortName": "Participants", - "fullName": "google.cloud.dialogflow.v2beta1.Participants" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Participants_AnalyzeContent_async", - "title": "dialogflow analyzeContent Sample", - "origin": "API_DEFINITION", - "description": " Adds a text (chat, for example), or audio (phone recording, for example) message from a participant into the conversation. Note: Always use agent versions for production traffic sent to virtual agents. See [Versions and environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).", - "canonical": true, - "file": "participants.analyze_content.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 136, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AnalyzeContent", - "fullName": "google.cloud.dialogflow.v2beta1.Participants.AnalyzeContent", - "async": true, - "parameters": [ - { - "name": "participant", - "type": "TYPE_STRING" - }, - { - "name": "text_input", - "type": ".google.cloud.dialogflow.v2beta1.TextInput" - }, - { - "name": "audio_input", - "type": ".google.cloud.dialogflow.v2beta1.AudioInput" - }, - { - "name": "event_input", - "type": ".google.cloud.dialogflow.v2beta1.EventInput" - }, - { - "name": "suggestion_input", - "type": ".google.cloud.dialogflow.v2beta1.SuggestionInput" - }, - { - "name": "intent_input", - "type": ".google.cloud.dialogflow.v2beta1.IntentInput" - }, - { - "name": "reply_audio_config", - "type": ".google.cloud.dialogflow.v2beta1.OutputAudioConfig" - }, - { - "name": "query_params", - "type": ".google.cloud.dialogflow.v2beta1.QueryParameters" - }, - { - "name": "assist_query_params", - "type": ".google.cloud.dialogflow.v2beta1.AssistQueryParameters" - }, - { - "name": "cx_parameters", - "type": ".google.protobuf.Struct" - }, - { - "name": "cx_current_page", - "type": "TYPE_STRING" - }, - { - "name": "message_send_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.AnalyzeContentResponse", - "client": { - "shortName": "ParticipantsClient", - "fullName": "google.cloud.dialogflow.v2beta1.ParticipantsClient" - }, - "method": { - "shortName": "AnalyzeContent", - "fullName": "google.cloud.dialogflow.v2beta1.Participants.AnalyzeContent", - "service": { - "shortName": "Participants", - "fullName": "google.cloud.dialogflow.v2beta1.Participants" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Participants_StreamingAnalyzeContent_async", - "title": "dialogflow streamingAnalyzeContent Sample", - "origin": "API_DEFINITION", - "description": " Adds a text (e.g., chat) or audio (e.g., phone recording) message from a participant into the conversation. Note: This method is only available through the gRPC API (not REST). The top-level message sent to the client by the server is `StreamingAnalyzeContentResponse`. Multiple response messages can be returned in order. The first one or more messages contain the `recognition_result` field. Each result represents a more complete transcript of what the user said. The next message contains the `reply_text` field, and potentially the `reply_audio` and/or the `automated_agent_reply` fields. Note: Always use agent versions for production traffic sent to virtual agents. See [Versions and environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).", - "canonical": true, - "file": "participants.streaming_analyze_content.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 174, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StreamingAnalyzeContent", - "fullName": "google.cloud.dialogflow.v2beta1.Participants.StreamingAnalyzeContent", - "async": true, - "parameters": [ - { - "name": "participant", - "type": "TYPE_STRING" - }, - { - "name": "audio_config", - "type": ".google.cloud.dialogflow.v2beta1.InputAudioConfig" - }, - { - "name": "text_config", - "type": ".google.cloud.dialogflow.v2beta1.InputTextConfig" - }, - { - "name": "reply_audio_config", - "type": ".google.cloud.dialogflow.v2beta1.OutputAudioConfig" - }, - { - "name": "input_audio", - "type": "TYPE_BYTES" - }, - { - "name": "input_text", - "type": "TYPE_STRING" - }, - { - "name": "input_dtmf", - "type": ".google.cloud.dialogflow.v2beta1.TelephonyDtmfEvents" - }, - { - "name": "input_intent", - "type": "TYPE_STRING" - }, - { - "name": "input_event", - "type": "TYPE_STRING" - }, - { - "name": "query_params", - "type": ".google.cloud.dialogflow.v2beta1.QueryParameters" - }, - { - "name": "assist_query_params", - "type": ".google.cloud.dialogflow.v2beta1.AssistQueryParameters" - }, - { - "name": "cx_parameters", - "type": ".google.protobuf.Struct" - }, - { - "name": "cx_current_page", - "type": "TYPE_STRING" - }, - { - "name": "enable_extended_streaming", - "type": "TYPE_BOOL" - }, - { - "name": "enable_partial_automated_agent_reply", - "type": "TYPE_BOOL" - }, - { - "name": "output_multiple_utterances", - "type": "TYPE_BOOL" - }, - { - "name": "enable_debugging_info", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentResponse", - "client": { - "shortName": "ParticipantsClient", - "fullName": "google.cloud.dialogflow.v2beta1.ParticipantsClient" - }, - "method": { - "shortName": "StreamingAnalyzeContent", - "fullName": "google.cloud.dialogflow.v2beta1.Participants.StreamingAnalyzeContent", - "service": { - "shortName": "Participants", - "fullName": "google.cloud.dialogflow.v2beta1.Participants" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Participants_BidiStreamingAnalyzeContent_async", - "title": "dialogflow bidiStreamingAnalyzeContent Sample", - "origin": "API_DEFINITION", - "description": " Bidirectional endless streaming version of [StreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.StreamingAnalyzeContent].", - "canonical": true, - "file": "participants.bidi_streaming_analyze_content.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BidiStreamingAnalyzeContent", - "fullName": "google.cloud.dialogflow.v2beta1.Participants.BidiStreamingAnalyzeContent", - "async": true, - "parameters": [ - { - "name": "config", - "type": ".google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Config" - }, - { - "name": "input", - "type": ".google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.Input" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse", - "client": { - "shortName": "ParticipantsClient", - "fullName": "google.cloud.dialogflow.v2beta1.ParticipantsClient" - }, - "method": { - "shortName": "BidiStreamingAnalyzeContent", - "fullName": "google.cloud.dialogflow.v2beta1.Participants.BidiStreamingAnalyzeContent", - "service": { - "shortName": "Participants", - "fullName": "google.cloud.dialogflow.v2beta1.Participants" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Participants_SuggestArticles_async", - "title": "dialogflow suggestArticles Sample", - "origin": "API_DEFINITION", - "description": " Gets suggested articles for a participant based on specific historical messages. Note that [ListSuggestions][google.cloud.dialogflow.v2beta1.Participants.ListSuggestions] will only list the auto-generated suggestions, while [CompileSuggestion][google.cloud.dialogflow.v2beta1.Participants.CompileSuggestion] will try to compile suggestion based on the provided conversation context in the real time.", - "canonical": true, - "file": "participants.suggest_articles.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SuggestArticles", - "fullName": "google.cloud.dialogflow.v2beta1.Participants.SuggestArticles", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "latest_message", - "type": "TYPE_STRING" - }, - { - "name": "context_size", - "type": "TYPE_INT32" - }, - { - "name": "assist_query_params", - "type": ".google.cloud.dialogflow.v2beta1.AssistQueryParameters" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.SuggestArticlesResponse", - "client": { - "shortName": "ParticipantsClient", - "fullName": "google.cloud.dialogflow.v2beta1.ParticipantsClient" - }, - "method": { - "shortName": "SuggestArticles", - "fullName": "google.cloud.dialogflow.v2beta1.Participants.SuggestArticles", - "service": { - "shortName": "Participants", - "fullName": "google.cloud.dialogflow.v2beta1.Participants" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Participants_SuggestFaqAnswers_async", - "title": "dialogflow suggestFaqAnswers Sample", - "origin": "API_DEFINITION", - "description": " Gets suggested faq answers for a participant based on specific historical messages.", - "canonical": true, - "file": "participants.suggest_faq_answers.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SuggestFaqAnswers", - "fullName": "google.cloud.dialogflow.v2beta1.Participants.SuggestFaqAnswers", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "latest_message", - "type": "TYPE_STRING" - }, - { - "name": "context_size", - "type": "TYPE_INT32" - }, - { - "name": "assist_query_params", - "type": ".google.cloud.dialogflow.v2beta1.AssistQueryParameters" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.SuggestFaqAnswersResponse", - "client": { - "shortName": "ParticipantsClient", - "fullName": "google.cloud.dialogflow.v2beta1.ParticipantsClient" - }, - "method": { - "shortName": "SuggestFaqAnswers", - "fullName": "google.cloud.dialogflow.v2beta1.Participants.SuggestFaqAnswers", - "service": { - "shortName": "Participants", - "fullName": "google.cloud.dialogflow.v2beta1.Participants" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Participants_SuggestSmartReplies_async", - "title": "dialogflow suggestSmartReplies Sample", - "origin": "API_DEFINITION", - "description": " Gets smart replies for a participant based on specific historical messages.", - "canonical": true, - "file": "participants.suggest_smart_replies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SuggestSmartReplies", - "fullName": "google.cloud.dialogflow.v2beta1.Participants.SuggestSmartReplies", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "current_text_input", - "type": ".google.cloud.dialogflow.v2beta1.TextInput" - }, - { - "name": "latest_message", - "type": "TYPE_STRING" - }, - { - "name": "context_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.SuggestSmartRepliesResponse", - "client": { - "shortName": "ParticipantsClient", - "fullName": "google.cloud.dialogflow.v2beta1.ParticipantsClient" - }, - "method": { - "shortName": "SuggestSmartReplies", - "fullName": "google.cloud.dialogflow.v2beta1.Participants.SuggestSmartReplies", - "service": { - "shortName": "Participants", - "fullName": "google.cloud.dialogflow.v2beta1.Participants" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Participants_SuggestKnowledgeAssist_async", - "title": "dialogflow suggestKnowledgeAssist Sample", - "origin": "API_DEFINITION", - "description": " Gets knowledge assist suggestions based on historical messages.", - "canonical": true, - "file": "participants.suggest_knowledge_assist.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SuggestKnowledgeAssist", - "fullName": "google.cloud.dialogflow.v2beta1.Participants.SuggestKnowledgeAssist", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "latest_message", - "type": "TYPE_STRING" - }, - { - "name": "context_size", - "type": "TYPE_INT32" - }, - { - "name": "previous_suggested_query", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.SuggestKnowledgeAssistResponse", - "client": { - "shortName": "ParticipantsClient", - "fullName": "google.cloud.dialogflow.v2beta1.ParticipantsClient" - }, - "method": { - "shortName": "SuggestKnowledgeAssist", - "fullName": "google.cloud.dialogflow.v2beta1.Participants.SuggestKnowledgeAssist", - "service": { - "shortName": "Participants", - "fullName": "google.cloud.dialogflow.v2beta1.Participants" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Participants_ListSuggestions_async", - "title": "dialogflow listSuggestions Sample", - "origin": "API_DEFINITION", - "description": " Deprecated: Use inline suggestion, event based suggestion or Suggestion* API instead. See [HumanAgentAssistantConfig.name][google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.name] for more details. Removal Date: 2020-09-01. Retrieves suggestions for live agents. This method should be used by human agent client software to fetch auto generated suggestions in real-time, while the conversation with an end user is in progress. The functionality is implemented in terms of the [list pagination](https://cloud.google.com/apis/design/design_patterns#list_pagination) design pattern. The client app should use the `next_page_token` field to fetch the next batch of suggestions. `suggestions` are sorted by `create_time` in descending order. To fetch latest suggestion, just set `page_size` to 1. To fetch new suggestions without duplication, send request with filter `create_time_epoch_microseconds > [first item's create_time of previous request]` and empty page_token.", - "canonical": true, - "file": "participants.list_suggestions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSuggestions", - "fullName": "google.cloud.dialogflow.v2beta1.Participants.ListSuggestions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.ListSuggestionsResponse", - "client": { - "shortName": "ParticipantsClient", - "fullName": "google.cloud.dialogflow.v2beta1.ParticipantsClient" - }, - "method": { - "shortName": "ListSuggestions", - "fullName": "google.cloud.dialogflow.v2beta1.Participants.ListSuggestions", - "service": { - "shortName": "Participants", - "fullName": "google.cloud.dialogflow.v2beta1.Participants" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Participants_CompileSuggestion_async", - "title": "dialogflow compileSuggestion Sample", - "origin": "API_DEFINITION", - "description": " Deprecated. use [SuggestArticles][google.cloud.dialogflow.v2beta1.Participants.SuggestArticles] and [SuggestFaqAnswers][google.cloud.dialogflow.v2beta1.Participants.SuggestFaqAnswers] instead. Gets suggestions for a participant based on specific historical messages. Note that [ListSuggestions][google.cloud.dialogflow.v2beta1.Participants.ListSuggestions] will only list the auto-generated suggestions, while [CompileSuggestion][google.cloud.dialogflow.v2beta1.Participants.CompileSuggestion] will try to compile suggestion based on the provided conversation context in the real time.", - "canonical": true, - "file": "participants.compile_suggestion.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CompileSuggestion", - "fullName": "google.cloud.dialogflow.v2beta1.Participants.CompileSuggestion", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "latest_message", - "type": "TYPE_STRING" - }, - { - "name": "context_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.CompileSuggestionResponse", - "client": { - "shortName": "ParticipantsClient", - "fullName": "google.cloud.dialogflow.v2beta1.ParticipantsClient" - }, - "method": { - "shortName": "CompileSuggestion", - "fullName": "google.cloud.dialogflow.v2beta1.Participants.CompileSuggestion", - "service": { - "shortName": "Participants", - "fullName": "google.cloud.dialogflow.v2beta1.Participants" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_PhoneNumbers_ListPhoneNumbers_async", - "title": "dialogflow listPhoneNumbers Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of all phone numbers in the specified project.", - "canonical": true, - "file": "phone_numbers.list_phone_numbers.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPhoneNumbers", - "fullName": "google.cloud.dialogflow.v2beta1.PhoneNumbers.ListPhoneNumbers", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "show_deleted", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.ListPhoneNumbersResponse", - "client": { - "shortName": "PhoneNumbersClient", - "fullName": "google.cloud.dialogflow.v2beta1.PhoneNumbersClient" - }, - "method": { - "shortName": "ListPhoneNumbers", - "fullName": "google.cloud.dialogflow.v2beta1.PhoneNumbers.ListPhoneNumbers", - "service": { - "shortName": "PhoneNumbers", - "fullName": "google.cloud.dialogflow.v2beta1.PhoneNumbers" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_PhoneNumbers_UpdatePhoneNumber_async", - "title": "dialogflow updatePhoneNumber Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified `PhoneNumber`.", - "canonical": true, - "file": "phone_numbers.update_phone_number.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdatePhoneNumber", - "fullName": "google.cloud.dialogflow.v2beta1.PhoneNumbers.UpdatePhoneNumber", - "async": true, - "parameters": [ - { - "name": "phone_number", - "type": ".google.cloud.dialogflow.v2beta1.PhoneNumber" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.PhoneNumber", - "client": { - "shortName": "PhoneNumbersClient", - "fullName": "google.cloud.dialogflow.v2beta1.PhoneNumbersClient" - }, - "method": { - "shortName": "UpdatePhoneNumber", - "fullName": "google.cloud.dialogflow.v2beta1.PhoneNumbers.UpdatePhoneNumber", - "service": { - "shortName": "PhoneNumbers", - "fullName": "google.cloud.dialogflow.v2beta1.PhoneNumbers" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_PhoneNumbers_DeletePhoneNumber_async", - "title": "dialogflow deletePhoneNumber Sample", - "origin": "API_DEFINITION", - "description": " Requests deletion of a `PhoneNumber`. The `PhoneNumber` is moved into the [DELETE_REQUESTED][google.cloud.dialogflow.v2beta1.PhoneNumber.LifecycleState.DELETE_REQUESTED] state immediately, and is deleted approximately 30 days later. This method may only be called on a `PhoneNumber` in the [ACTIVE][google.cloud.dialogflow.v2beta1.PhoneNumber.LifecycleState.ACTIVE] state.", - "canonical": true, - "file": "phone_numbers.delete_phone_number.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePhoneNumber", - "fullName": "google.cloud.dialogflow.v2beta1.PhoneNumbers.DeletePhoneNumber", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.PhoneNumber", - "client": { - "shortName": "PhoneNumbersClient", - "fullName": "google.cloud.dialogflow.v2beta1.PhoneNumbersClient" - }, - "method": { - "shortName": "DeletePhoneNumber", - "fullName": "google.cloud.dialogflow.v2beta1.PhoneNumbers.DeletePhoneNumber", - "service": { - "shortName": "PhoneNumbers", - "fullName": "google.cloud.dialogflow.v2beta1.PhoneNumbers" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_PhoneNumbers_UndeletePhoneNumber_async", - "title": "dialogflow undeletePhoneNumber Sample", - "origin": "API_DEFINITION", - "description": " Cancels the deletion request for a `PhoneNumber`. This method may only be called on a `PhoneNumber` in the [DELETE_REQUESTED][google.cloud.dialogflow.v2beta1.PhoneNumber.LifecycleState.DELETE_REQUESTED] state.", - "canonical": true, - "file": "phone_numbers.undelete_phone_number.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UndeletePhoneNumber", - "fullName": "google.cloud.dialogflow.v2beta1.PhoneNumbers.UndeletePhoneNumber", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.PhoneNumber", - "client": { - "shortName": "PhoneNumbersClient", - "fullName": "google.cloud.dialogflow.v2beta1.PhoneNumbersClient" - }, - "method": { - "shortName": "UndeletePhoneNumber", - "fullName": "google.cloud.dialogflow.v2beta1.PhoneNumbers.UndeletePhoneNumber", - "service": { - "shortName": "PhoneNumbers", - "fullName": "google.cloud.dialogflow.v2beta1.PhoneNumbers" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_SessionEntityTypes_ListSessionEntityTypes_async", - "title": "dialogflow listSessionEntityTypes Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of all session entity types in the specified session. This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.", - "canonical": true, - "file": "session_entity_types.list_session_entity_types.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSessionEntityTypes", - "fullName": "google.cloud.dialogflow.v2beta1.SessionEntityTypes.ListSessionEntityTypes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.ListSessionEntityTypesResponse", - "client": { - "shortName": "SessionEntityTypesClient", - "fullName": "google.cloud.dialogflow.v2beta1.SessionEntityTypesClient" - }, - "method": { - "shortName": "ListSessionEntityTypes", - "fullName": "google.cloud.dialogflow.v2beta1.SessionEntityTypes.ListSessionEntityTypes", - "service": { - "shortName": "SessionEntityTypes", - "fullName": "google.cloud.dialogflow.v2beta1.SessionEntityTypes" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_SessionEntityTypes_GetSessionEntityType_async", - "title": "dialogflow getSessionEntityType Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified session entity type. This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.", - "canonical": true, - "file": "session_entity_types.get_session_entity_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSessionEntityType", - "fullName": "google.cloud.dialogflow.v2beta1.SessionEntityTypes.GetSessionEntityType", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.SessionEntityType", - "client": { - "shortName": "SessionEntityTypesClient", - "fullName": "google.cloud.dialogflow.v2beta1.SessionEntityTypesClient" - }, - "method": { - "shortName": "GetSessionEntityType", - "fullName": "google.cloud.dialogflow.v2beta1.SessionEntityTypes.GetSessionEntityType", - "service": { - "shortName": "SessionEntityTypes", - "fullName": "google.cloud.dialogflow.v2beta1.SessionEntityTypes" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_SessionEntityTypes_CreateSessionEntityType_async", - "title": "dialogflow createSessionEntityType Sample", - "origin": "API_DEFINITION", - "description": " Creates a session entity type. If the specified session entity type already exists, overrides the session entity type. This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.", - "canonical": true, - "file": "session_entity_types.create_session_entity_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSessionEntityType", - "fullName": "google.cloud.dialogflow.v2beta1.SessionEntityTypes.CreateSessionEntityType", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "session_entity_type", - "type": ".google.cloud.dialogflow.v2beta1.SessionEntityType" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.SessionEntityType", - "client": { - "shortName": "SessionEntityTypesClient", - "fullName": "google.cloud.dialogflow.v2beta1.SessionEntityTypesClient" - }, - "method": { - "shortName": "CreateSessionEntityType", - "fullName": "google.cloud.dialogflow.v2beta1.SessionEntityTypes.CreateSessionEntityType", - "service": { - "shortName": "SessionEntityTypes", - "fullName": "google.cloud.dialogflow.v2beta1.SessionEntityTypes" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_SessionEntityTypes_UpdateSessionEntityType_async", - "title": "dialogflow updateSessionEntityType Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified session entity type. This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.", - "canonical": true, - "file": "session_entity_types.update_session_entity_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSessionEntityType", - "fullName": "google.cloud.dialogflow.v2beta1.SessionEntityTypes.UpdateSessionEntityType", - "async": true, - "parameters": [ - { - "name": "session_entity_type", - "type": ".google.cloud.dialogflow.v2beta1.SessionEntityType" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.SessionEntityType", - "client": { - "shortName": "SessionEntityTypesClient", - "fullName": "google.cloud.dialogflow.v2beta1.SessionEntityTypesClient" - }, - "method": { - "shortName": "UpdateSessionEntityType", - "fullName": "google.cloud.dialogflow.v2beta1.SessionEntityTypes.UpdateSessionEntityType", - "service": { - "shortName": "SessionEntityTypes", - "fullName": "google.cloud.dialogflow.v2beta1.SessionEntityTypes" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_SessionEntityTypes_DeleteSessionEntityType_async", - "title": "dialogflow deleteSessionEntityType Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified session entity type. This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.", - "canonical": true, - "file": "session_entity_types.delete_session_entity_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSessionEntityType", - "fullName": "google.cloud.dialogflow.v2beta1.SessionEntityTypes.DeleteSessionEntityType", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "SessionEntityTypesClient", - "fullName": "google.cloud.dialogflow.v2beta1.SessionEntityTypesClient" - }, - "method": { - "shortName": "DeleteSessionEntityType", - "fullName": "google.cloud.dialogflow.v2beta1.SessionEntityTypes.DeleteSessionEntityType", - "service": { - "shortName": "SessionEntityTypes", - "fullName": "google.cloud.dialogflow.v2beta1.SessionEntityTypes" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Sessions_DetectIntent_async", - "title": "dialogflow detectIntent Sample", - "origin": "API_DEFINITION", - "description": " Processes a natural language query and returns structured, actionable data as a result. This method is not idempotent, because it may cause contexts and session entity types to be updated, which in turn might affect results of future queries. If you might use [Agent Assist](https://cloud.google.com/dialogflow/docs/#aa) or other CCAI products now or in the future, consider using [AnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.AnalyzeContent] instead of `DetectIntent`. `AnalyzeContent` has additional functionality for Agent Assist and other CCAI products. Note: Always use agent versions for production traffic. See [Versions and environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).", - "canonical": true, - "file": "sessions.detect_intent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 108, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DetectIntent", - "fullName": "google.cloud.dialogflow.v2beta1.Sessions.DetectIntent", - "async": true, - "parameters": [ - { - "name": "session", - "type": "TYPE_STRING" - }, - { - "name": "query_params", - "type": ".google.cloud.dialogflow.v2beta1.QueryParameters" - }, - { - "name": "query_input", - "type": ".google.cloud.dialogflow.v2beta1.QueryInput" - }, - { - "name": "output_audio_config", - "type": ".google.cloud.dialogflow.v2beta1.OutputAudioConfig" - }, - { - "name": "output_audio_config_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "input_audio", - "type": "TYPE_BYTES" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.DetectIntentResponse", - "client": { - "shortName": "SessionsClient", - "fullName": "google.cloud.dialogflow.v2beta1.SessionsClient" - }, - "method": { - "shortName": "DetectIntent", - "fullName": "google.cloud.dialogflow.v2beta1.Sessions.DetectIntent", - "service": { - "shortName": "Sessions", - "fullName": "google.cloud.dialogflow.v2beta1.Sessions" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Sessions_StreamingDetectIntent_async", - "title": "dialogflow streamingDetectIntent Sample", - "origin": "API_DEFINITION", - "description": " Processes a natural language query in audio format in a streaming fashion and returns structured, actionable data as a result. This method is only available via the gRPC API (not REST). If you might use [Agent Assist](https://cloud.google.com/dialogflow/docs/#aa) or other CCAI products now or in the future, consider using [StreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.StreamingAnalyzeContent] instead of `StreamingDetectIntent`. `StreamingAnalyzeContent` has additional functionality for Agent Assist and other CCAI products. Note: Always use agent versions for production traffic. See [Versions and environments](https://cloud.google.com/dialogflow/es/docs/agents-versions).", - "canonical": true, - "file": "sessions.streaming_detect_intent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 128, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StreamingDetectIntent", - "fullName": "google.cloud.dialogflow.v2beta1.Sessions.StreamingDetectIntent", - "async": true, - "parameters": [ - { - "name": "session", - "type": "TYPE_STRING" - }, - { - "name": "query_params", - "type": ".google.cloud.dialogflow.v2beta1.QueryParameters" - }, - { - "name": "query_input", - "type": ".google.cloud.dialogflow.v2beta1.QueryInput" - }, - { - "name": "single_utterance", - "type": "TYPE_BOOL" - }, - { - "name": "output_audio_config", - "type": ".google.cloud.dialogflow.v2beta1.OutputAudioConfig" - }, - { - "name": "output_audio_config_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "input_audio", - "type": "TYPE_BYTES" - }, - { - "name": "enable_debugging_info", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.StreamingDetectIntentResponse", - "client": { - "shortName": "SessionsClient", - "fullName": "google.cloud.dialogflow.v2beta1.SessionsClient" - }, - "method": { - "shortName": "StreamingDetectIntent", - "fullName": "google.cloud.dialogflow.v2beta1.Sessions.StreamingDetectIntent", - "service": { - "shortName": "Sessions", - "fullName": "google.cloud.dialogflow.v2beta1.Sessions" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_SipTrunks_CreateSipTrunk_async", - "title": "dialogflow createSipTrunk Sample", - "origin": "API_DEFINITION", - "description": " Creates a SipTrunk for a specified location.", - "canonical": true, - "file": "sip_trunks.create_sip_trunk.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSipTrunk", - "fullName": "google.cloud.dialogflow.v2beta1.SipTrunks.CreateSipTrunk", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "sip_trunk", - "type": ".google.cloud.dialogflow.v2beta1.SipTrunk" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.SipTrunk", - "client": { - "shortName": "SipTrunksClient", - "fullName": "google.cloud.dialogflow.v2beta1.SipTrunksClient" - }, - "method": { - "shortName": "CreateSipTrunk", - "fullName": "google.cloud.dialogflow.v2beta1.SipTrunks.CreateSipTrunk", - "service": { - "shortName": "SipTrunks", - "fullName": "google.cloud.dialogflow.v2beta1.SipTrunks" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_SipTrunks_DeleteSipTrunk_async", - "title": "dialogflow deleteSipTrunk Sample", - "origin": "API_DEFINITION", - "description": " Deletes a specified SipTrunk.", - "canonical": true, - "file": "sip_trunks.delete_sip_trunk.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSipTrunk", - "fullName": "google.cloud.dialogflow.v2beta1.SipTrunks.DeleteSipTrunk", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "SipTrunksClient", - "fullName": "google.cloud.dialogflow.v2beta1.SipTrunksClient" - }, - "method": { - "shortName": "DeleteSipTrunk", - "fullName": "google.cloud.dialogflow.v2beta1.SipTrunks.DeleteSipTrunk", - "service": { - "shortName": "SipTrunks", - "fullName": "google.cloud.dialogflow.v2beta1.SipTrunks" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_SipTrunks_ListSipTrunks_async", - "title": "dialogflow listSipTrunks Sample", - "origin": "API_DEFINITION", - "description": " Returns a list of SipTrunks in the specified location.", - "canonical": true, - "file": "sip_trunks.list_sip_trunks.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSipTrunks", - "fullName": "google.cloud.dialogflow.v2beta1.SipTrunks.ListSipTrunks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.ListSipTrunksResponse", - "client": { - "shortName": "SipTrunksClient", - "fullName": "google.cloud.dialogflow.v2beta1.SipTrunksClient" - }, - "method": { - "shortName": "ListSipTrunks", - "fullName": "google.cloud.dialogflow.v2beta1.SipTrunks.ListSipTrunks", - "service": { - "shortName": "SipTrunks", - "fullName": "google.cloud.dialogflow.v2beta1.SipTrunks" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_SipTrunks_GetSipTrunk_async", - "title": "dialogflow getSipTrunk Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified SipTrunk.", - "canonical": true, - "file": "sip_trunks.get_sip_trunk.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSipTrunk", - "fullName": "google.cloud.dialogflow.v2beta1.SipTrunks.GetSipTrunk", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.SipTrunk", - "client": { - "shortName": "SipTrunksClient", - "fullName": "google.cloud.dialogflow.v2beta1.SipTrunksClient" - }, - "method": { - "shortName": "GetSipTrunk", - "fullName": "google.cloud.dialogflow.v2beta1.SipTrunks.GetSipTrunk", - "service": { - "shortName": "SipTrunks", - "fullName": "google.cloud.dialogflow.v2beta1.SipTrunks" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_SipTrunks_UpdateSipTrunk_async", - "title": "dialogflow updateSipTrunk Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified SipTrunk.", - "canonical": true, - "file": "sip_trunks.update_sip_trunk.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSipTrunk", - "fullName": "google.cloud.dialogflow.v2beta1.SipTrunks.UpdateSipTrunk", - "async": true, - "parameters": [ - { - "name": "sip_trunk", - "type": ".google.cloud.dialogflow.v2beta1.SipTrunk" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.SipTrunk", - "client": { - "shortName": "SipTrunksClient", - "fullName": "google.cloud.dialogflow.v2beta1.SipTrunksClient" - }, - "method": { - "shortName": "UpdateSipTrunk", - "fullName": "google.cloud.dialogflow.v2beta1.SipTrunks.UpdateSipTrunk", - "service": { - "shortName": "SipTrunks", - "fullName": "google.cloud.dialogflow.v2beta1.SipTrunks" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Tools_CreateTool_async", - "title": "dialogflow createTool Sample", - "origin": "API_DEFINITION", - "description": " Creates a tool.", - "canonical": true, - "file": "tools.create_tool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTool", - "fullName": "google.cloud.dialogflow.v2beta1.Tools.CreateTool", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "tool", - "type": ".google.cloud.dialogflow.v2beta1.Tool" - }, - { - "name": "tool_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.Tool", - "client": { - "shortName": "ToolsClient", - "fullName": "google.cloud.dialogflow.v2beta1.ToolsClient" - }, - "method": { - "shortName": "CreateTool", - "fullName": "google.cloud.dialogflow.v2beta1.Tools.CreateTool", - "service": { - "shortName": "Tools", - "fullName": "google.cloud.dialogflow.v2beta1.Tools" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Tools_GetTool_async", - "title": "dialogflow getTool Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a tool.", - "canonical": true, - "file": "tools.get_tool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTool", - "fullName": "google.cloud.dialogflow.v2beta1.Tools.GetTool", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.Tool", - "client": { - "shortName": "ToolsClient", - "fullName": "google.cloud.dialogflow.v2beta1.ToolsClient" - }, - "method": { - "shortName": "GetTool", - "fullName": "google.cloud.dialogflow.v2beta1.Tools.GetTool", - "service": { - "shortName": "Tools", - "fullName": "google.cloud.dialogflow.v2beta1.Tools" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Tools_ListTools_async", - "title": "dialogflow listTools Sample", - "origin": "API_DEFINITION", - "description": " Lists tools.", - "canonical": true, - "file": "tools.list_tools.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTools", - "fullName": "google.cloud.dialogflow.v2beta1.Tools.ListTools", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.ListToolsResponse", - "client": { - "shortName": "ToolsClient", - "fullName": "google.cloud.dialogflow.v2beta1.ToolsClient" - }, - "method": { - "shortName": "ListTools", - "fullName": "google.cloud.dialogflow.v2beta1.Tools.ListTools", - "service": { - "shortName": "Tools", - "fullName": "google.cloud.dialogflow.v2beta1.Tools" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Tools_DeleteTool_async", - "title": "dialogflow deleteTool Sample", - "origin": "API_DEFINITION", - "description": " Deletes a tool.", - "canonical": true, - "file": "tools.delete_tool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTool", - "fullName": "google.cloud.dialogflow.v2beta1.Tools.DeleteTool", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ToolsClient", - "fullName": "google.cloud.dialogflow.v2beta1.ToolsClient" - }, - "method": { - "shortName": "DeleteTool", - "fullName": "google.cloud.dialogflow.v2beta1.Tools.DeleteTool", - "service": { - "shortName": "Tools", - "fullName": "google.cloud.dialogflow.v2beta1.Tools" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Tools_UpdateTool_async", - "title": "dialogflow updateTool Sample", - "origin": "API_DEFINITION", - "description": " Updates a tool.", - "canonical": true, - "file": "tools.update_tool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTool", - "fullName": "google.cloud.dialogflow.v2beta1.Tools.UpdateTool", - "async": true, - "parameters": [ - { - "name": "tool", - "type": ".google.cloud.dialogflow.v2beta1.Tool" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.Tool", - "client": { - "shortName": "ToolsClient", - "fullName": "google.cloud.dialogflow.v2beta1.ToolsClient" - }, - "method": { - "shortName": "UpdateTool", - "fullName": "google.cloud.dialogflow.v2beta1.Tools.UpdateTool", - "service": { - "shortName": "Tools", - "fullName": "google.cloud.dialogflow.v2beta1.Tools" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Versions_ListVersions_async", - "title": "dialogflow listVersions Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of all versions of the specified agent.", - "canonical": true, - "file": "versions.list_versions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListVersions", - "fullName": "google.cloud.dialogflow.v2beta1.Versions.ListVersions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.ListVersionsResponse", - "client": { - "shortName": "VersionsClient", - "fullName": "google.cloud.dialogflow.v2beta1.VersionsClient" - }, - "method": { - "shortName": "ListVersions", - "fullName": "google.cloud.dialogflow.v2beta1.Versions.ListVersions", - "service": { - "shortName": "Versions", - "fullName": "google.cloud.dialogflow.v2beta1.Versions" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Versions_GetVersion_async", - "title": "dialogflow getVersion Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified agent version.", - "canonical": true, - "file": "versions.get_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetVersion", - "fullName": "google.cloud.dialogflow.v2beta1.Versions.GetVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.Version", - "client": { - "shortName": "VersionsClient", - "fullName": "google.cloud.dialogflow.v2beta1.VersionsClient" - }, - "method": { - "shortName": "GetVersion", - "fullName": "google.cloud.dialogflow.v2beta1.Versions.GetVersion", - "service": { - "shortName": "Versions", - "fullName": "google.cloud.dialogflow.v2beta1.Versions" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Versions_CreateVersion_async", - "title": "dialogflow createVersion Sample", - "origin": "API_DEFINITION", - "description": " Creates an agent version. The new version points to the agent instance in the \"default\" environment.", - "canonical": true, - "file": "versions.create_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateVersion", - "fullName": "google.cloud.dialogflow.v2beta1.Versions.CreateVersion", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "version", - "type": ".google.cloud.dialogflow.v2beta1.Version" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.Version", - "client": { - "shortName": "VersionsClient", - "fullName": "google.cloud.dialogflow.v2beta1.VersionsClient" - }, - "method": { - "shortName": "CreateVersion", - "fullName": "google.cloud.dialogflow.v2beta1.Versions.CreateVersion", - "service": { - "shortName": "Versions", - "fullName": "google.cloud.dialogflow.v2beta1.Versions" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Versions_UpdateVersion_async", - "title": "dialogflow updateVersion Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified agent version. Note that this method does not allow you to update the state of the agent the given version points to. It allows you to update only mutable properties of the version resource.", - "canonical": true, - "file": "versions.update_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateVersion", - "fullName": "google.cloud.dialogflow.v2beta1.Versions.UpdateVersion", - "async": true, - "parameters": [ - { - "name": "version", - "type": ".google.cloud.dialogflow.v2beta1.Version" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.dialogflow.v2beta1.Version", - "client": { - "shortName": "VersionsClient", - "fullName": "google.cloud.dialogflow.v2beta1.VersionsClient" - }, - "method": { - "shortName": "UpdateVersion", - "fullName": "google.cloud.dialogflow.v2beta1.Versions.UpdateVersion", - "service": { - "shortName": "Versions", - "fullName": "google.cloud.dialogflow.v2beta1.Versions" - } - } - } - }, - { - "regionTag": "dialogflow_v2beta1_generated_Versions_DeleteVersion_async", - "title": "dialogflow deleteVersion Sample", - "origin": "API_DEFINITION", - "description": " Delete the specified agent version.", - "canonical": true, - "file": "versions.delete_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteVersion", - "fullName": "google.cloud.dialogflow.v2beta1.Versions.DeleteVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "VersionsClient", - "fullName": "google.cloud.dialogflow.v2beta1.VersionsClient" - }, - "method": { - "shortName": "DeleteVersion", - "fullName": "google.cloud.dialogflow.v2beta1.Versions.DeleteVersion", - "service": { - "shortName": "Versions", - "fullName": "google.cloud.dialogflow.v2beta1.Versions" - } - } - } - } - ] -} diff --git a/packages/google-cloud-discoveryengine/samples/generated/v1/snippet_metadata_google.cloud.discoveryengine.v1.json b/packages/google-cloud-discoveryengine/samples/generated/v1/snippet_metadata_google.cloud.discoveryengine.v1.json deleted file mode 100644 index 26867e6824e7..000000000000 --- a/packages/google-cloud-discoveryengine/samples/generated/v1/snippet_metadata_google.cloud.discoveryengine.v1.json +++ /dev/null @@ -1,4891 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-discoveryengine", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.discoveryengine.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "discoveryengine_v1_generated_AssistantService_StreamAssist_async", - "title": "AssistantService streamAssist Sample", - "origin": "API_DEFINITION", - "description": " Assists the user with a query in a streaming fashion.", - "canonical": true, - "file": "assistant_service.stream_assist.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StreamAssist", - "fullName": "google.cloud.discoveryengine.v1.AssistantService.StreamAssist", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": ".google.cloud.discoveryengine.v1.Query" - }, - { - "name": "session", - "type": "TYPE_STRING" - }, - { - "name": "user_metadata", - "type": ".google.cloud.discoveryengine.v1.AssistUserMetadata" - }, - { - "name": "tools_spec", - "type": ".google.cloud.discoveryengine.v1.StreamAssistRequest.ToolsSpec" - }, - { - "name": "generation_spec", - "type": ".google.cloud.discoveryengine.v1.StreamAssistRequest.GenerationSpec" - } - ], - "resultType": ".google.cloud.discoveryengine.v1.StreamAssistResponse", - "client": { - "shortName": "AssistantServiceClient", - "fullName": "google.cloud.discoveryengine.v1.AssistantServiceClient" - }, - "method": { - "shortName": "StreamAssist", - "fullName": "google.cloud.discoveryengine.v1.AssistantService.StreamAssist", - "service": { - "shortName": "AssistantService", - "fullName": "google.cloud.discoveryengine.v1.AssistantService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_CmekConfigService_UpdateCmekConfig_async", - "title": "AssistantService updateCmekConfig Sample", - "origin": "API_DEFINITION", - "description": " Provisions a CMEK key for use in a location of a customer's project. This method will also conduct location validation on the provided cmekConfig to make sure the key is valid and can be used in the selected location.", - "canonical": true, - "file": "cmek_config_service.update_cmek_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCmekConfig", - "fullName": "google.cloud.discoveryengine.v1.CmekConfigService.UpdateCmekConfig", - "async": true, - "parameters": [ - { - "name": "config", - "type": ".google.cloud.discoveryengine.v1.CmekConfig" - }, - { - "name": "set_default", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CmekConfigServiceClient", - "fullName": "google.cloud.discoveryengine.v1.CmekConfigServiceClient" - }, - "method": { - "shortName": "UpdateCmekConfig", - "fullName": "google.cloud.discoveryengine.v1.CmekConfigService.UpdateCmekConfig", - "service": { - "shortName": "CmekConfigService", - "fullName": "google.cloud.discoveryengine.v1.CmekConfigService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_CmekConfigService_GetCmekConfig_async", - "title": "AssistantService getCmekConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets the [CmekConfig][google.cloud.discoveryengine.v1.CmekConfig].", - "canonical": true, - "file": "cmek_config_service.get_cmek_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCmekConfig", - "fullName": "google.cloud.discoveryengine.v1.CmekConfigService.GetCmekConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1.CmekConfig", - "client": { - "shortName": "CmekConfigServiceClient", - "fullName": "google.cloud.discoveryengine.v1.CmekConfigServiceClient" - }, - "method": { - "shortName": "GetCmekConfig", - "fullName": "google.cloud.discoveryengine.v1.CmekConfigService.GetCmekConfig", - "service": { - "shortName": "CmekConfigService", - "fullName": "google.cloud.discoveryengine.v1.CmekConfigService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_CmekConfigService_ListCmekConfigs_async", - "title": "AssistantService listCmekConfigs Sample", - "origin": "API_DEFINITION", - "description": " Lists all the [CmekConfig][google.cloud.discoveryengine.v1.CmekConfig]s with the project.", - "canonical": true, - "file": "cmek_config_service.list_cmek_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCmekConfigs", - "fullName": "google.cloud.discoveryengine.v1.CmekConfigService.ListCmekConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1.ListCmekConfigsResponse", - "client": { - "shortName": "CmekConfigServiceClient", - "fullName": "google.cloud.discoveryengine.v1.CmekConfigServiceClient" - }, - "method": { - "shortName": "ListCmekConfigs", - "fullName": "google.cloud.discoveryengine.v1.CmekConfigService.ListCmekConfigs", - "service": { - "shortName": "CmekConfigService", - "fullName": "google.cloud.discoveryengine.v1.CmekConfigService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_CmekConfigService_DeleteCmekConfig_async", - "title": "AssistantService deleteCmekConfig Sample", - "origin": "API_DEFINITION", - "description": " De-provisions a CmekConfig.", - "canonical": true, - "file": "cmek_config_service.delete_cmek_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCmekConfig", - "fullName": "google.cloud.discoveryengine.v1.CmekConfigService.DeleteCmekConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CmekConfigServiceClient", - "fullName": "google.cloud.discoveryengine.v1.CmekConfigServiceClient" - }, - "method": { - "shortName": "DeleteCmekConfig", - "fullName": "google.cloud.discoveryengine.v1.CmekConfigService.DeleteCmekConfig", - "service": { - "shortName": "CmekConfigService", - "fullName": "google.cloud.discoveryengine.v1.CmekConfigService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_CompletionService_CompleteQuery_async", - "title": "AssistantService completeQuery Sample", - "origin": "API_DEFINITION", - "description": " Completes the specified user input with keyword suggestions.", - "canonical": true, - "file": "completion_service.complete_query.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 99, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CompleteQuery", - "fullName": "google.cloud.discoveryengine.v1.CompletionService.CompleteQuery", - "async": true, - "parameters": [ - { - "name": "data_store", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": "TYPE_STRING" - }, - { - "name": "query_model", - "type": "TYPE_STRING" - }, - { - "name": "user_pseudo_id", - "type": "TYPE_STRING" - }, - { - "name": "include_tail_suggestions", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.discoveryengine.v1.CompleteQueryResponse", - "client": { - "shortName": "CompletionServiceClient", - "fullName": "google.cloud.discoveryengine.v1.CompletionServiceClient" - }, - "method": { - "shortName": "CompleteQuery", - "fullName": "google.cloud.discoveryengine.v1.CompletionService.CompleteQuery", - "service": { - "shortName": "CompletionService", - "fullName": "google.cloud.discoveryengine.v1.CompletionService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_CompletionService_ImportSuggestionDenyListEntries_async", - "title": "AssistantService importSuggestionDenyListEntries Sample", - "origin": "API_DEFINITION", - "description": " Imports all [SuggestionDenyListEntry][google.cloud.discoveryengine.v1.SuggestionDenyListEntry] for a DataStore.", - "canonical": true, - "file": "completion_service.import_suggestion_deny_list_entries.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportSuggestionDenyListEntries", - "fullName": "google.cloud.discoveryengine.v1.CompletionService.ImportSuggestionDenyListEntries", - "async": true, - "parameters": [ - { - "name": "inline_source", - "type": ".google.cloud.discoveryengine.v1.ImportSuggestionDenyListEntriesRequest.InlineSource" - }, - { - "name": "gcs_source", - "type": ".google.cloud.discoveryengine.v1.GcsSource" - }, - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CompletionServiceClient", - "fullName": "google.cloud.discoveryengine.v1.CompletionServiceClient" - }, - "method": { - "shortName": "ImportSuggestionDenyListEntries", - "fullName": "google.cloud.discoveryengine.v1.CompletionService.ImportSuggestionDenyListEntries", - "service": { - "shortName": "CompletionService", - "fullName": "google.cloud.discoveryengine.v1.CompletionService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_CompletionService_PurgeSuggestionDenyListEntries_async", - "title": "AssistantService purgeSuggestionDenyListEntries Sample", - "origin": "API_DEFINITION", - "description": " Permanently deletes all [SuggestionDenyListEntry][google.cloud.discoveryengine.v1.SuggestionDenyListEntry] for a DataStore.", - "canonical": true, - "file": "completion_service.purge_suggestion_deny_list_entries.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PurgeSuggestionDenyListEntries", - "fullName": "google.cloud.discoveryengine.v1.CompletionService.PurgeSuggestionDenyListEntries", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CompletionServiceClient", - "fullName": "google.cloud.discoveryengine.v1.CompletionServiceClient" - }, - "method": { - "shortName": "PurgeSuggestionDenyListEntries", - "fullName": "google.cloud.discoveryengine.v1.CompletionService.PurgeSuggestionDenyListEntries", - "service": { - "shortName": "CompletionService", - "fullName": "google.cloud.discoveryengine.v1.CompletionService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_CompletionService_ImportCompletionSuggestions_async", - "title": "AssistantService importCompletionSuggestions Sample", - "origin": "API_DEFINITION", - "description": " Imports [CompletionSuggestion][google.cloud.discoveryengine.v1.CompletionSuggestion]s for a DataStore.", - "canonical": true, - "file": "completion_service.import_completion_suggestions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportCompletionSuggestions", - "fullName": "google.cloud.discoveryengine.v1.CompletionService.ImportCompletionSuggestions", - "async": true, - "parameters": [ - { - "name": "inline_source", - "type": ".google.cloud.discoveryengine.v1.ImportCompletionSuggestionsRequest.InlineSource" - }, - { - "name": "gcs_source", - "type": ".google.cloud.discoveryengine.v1.GcsSource" - }, - { - "name": "bigquery_source", - "type": ".google.cloud.discoveryengine.v1.BigQuerySource" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "error_config", - "type": ".google.cloud.discoveryengine.v1.ImportErrorConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CompletionServiceClient", - "fullName": "google.cloud.discoveryengine.v1.CompletionServiceClient" - }, - "method": { - "shortName": "ImportCompletionSuggestions", - "fullName": "google.cloud.discoveryengine.v1.CompletionService.ImportCompletionSuggestions", - "service": { - "shortName": "CompletionService", - "fullName": "google.cloud.discoveryengine.v1.CompletionService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_CompletionService_PurgeCompletionSuggestions_async", - "title": "AssistantService purgeCompletionSuggestions Sample", - "origin": "API_DEFINITION", - "description": " Permanently deletes all [CompletionSuggestion][google.cloud.discoveryengine.v1.CompletionSuggestion]s for a DataStore.", - "canonical": true, - "file": "completion_service.purge_completion_suggestions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PurgeCompletionSuggestions", - "fullName": "google.cloud.discoveryengine.v1.CompletionService.PurgeCompletionSuggestions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CompletionServiceClient", - "fullName": "google.cloud.discoveryengine.v1.CompletionServiceClient" - }, - "method": { - "shortName": "PurgeCompletionSuggestions", - "fullName": "google.cloud.discoveryengine.v1.CompletionService.PurgeCompletionSuggestions", - "service": { - "shortName": "CompletionService", - "fullName": "google.cloud.discoveryengine.v1.CompletionService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_ControlService_CreateControl_async", - "title": "AssistantService createControl Sample", - "origin": "API_DEFINITION", - "description": " Creates a Control. By default 1000 controls are allowed for a data store. A request can be submitted to adjust this limit. If the [Control][google.cloud.discoveryengine.v1.Control] to create already exists, an ALREADY_EXISTS error is returned.", - "canonical": true, - "file": "control_service.create_control.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateControl", - "fullName": "google.cloud.discoveryengine.v1.ControlService.CreateControl", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "control", - "type": ".google.cloud.discoveryengine.v1.Control" - }, - { - "name": "control_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1.Control", - "client": { - "shortName": "ControlServiceClient", - "fullName": "google.cloud.discoveryengine.v1.ControlServiceClient" - }, - "method": { - "shortName": "CreateControl", - "fullName": "google.cloud.discoveryengine.v1.ControlService.CreateControl", - "service": { - "shortName": "ControlService", - "fullName": "google.cloud.discoveryengine.v1.ControlService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_ControlService_DeleteControl_async", - "title": "AssistantService deleteControl Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Control. If the [Control][google.cloud.discoveryengine.v1.Control] to delete does not exist, a NOT_FOUND error is returned.", - "canonical": true, - "file": "control_service.delete_control.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteControl", - "fullName": "google.cloud.discoveryengine.v1.ControlService.DeleteControl", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ControlServiceClient", - "fullName": "google.cloud.discoveryengine.v1.ControlServiceClient" - }, - "method": { - "shortName": "DeleteControl", - "fullName": "google.cloud.discoveryengine.v1.ControlService.DeleteControl", - "service": { - "shortName": "ControlService", - "fullName": "google.cloud.discoveryengine.v1.ControlService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_ControlService_UpdateControl_async", - "title": "AssistantService updateControl Sample", - "origin": "API_DEFINITION", - "description": " Updates a Control. [Control][google.cloud.discoveryengine.v1.Control] action type cannot be changed. If the [Control][google.cloud.discoveryengine.v1.Control] to update does not exist, a NOT_FOUND error is returned.", - "canonical": true, - "file": "control_service.update_control.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateControl", - "fullName": "google.cloud.discoveryengine.v1.ControlService.UpdateControl", - "async": true, - "parameters": [ - { - "name": "control", - "type": ".google.cloud.discoveryengine.v1.Control" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.discoveryengine.v1.Control", - "client": { - "shortName": "ControlServiceClient", - "fullName": "google.cloud.discoveryengine.v1.ControlServiceClient" - }, - "method": { - "shortName": "UpdateControl", - "fullName": "google.cloud.discoveryengine.v1.ControlService.UpdateControl", - "service": { - "shortName": "ControlService", - "fullName": "google.cloud.discoveryengine.v1.ControlService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_ControlService_GetControl_async", - "title": "AssistantService getControl Sample", - "origin": "API_DEFINITION", - "description": " Gets a Control.", - "canonical": true, - "file": "control_service.get_control.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetControl", - "fullName": "google.cloud.discoveryengine.v1.ControlService.GetControl", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1.Control", - "client": { - "shortName": "ControlServiceClient", - "fullName": "google.cloud.discoveryengine.v1.ControlServiceClient" - }, - "method": { - "shortName": "GetControl", - "fullName": "google.cloud.discoveryengine.v1.ControlService.GetControl", - "service": { - "shortName": "ControlService", - "fullName": "google.cloud.discoveryengine.v1.ControlService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_ControlService_ListControls_async", - "title": "AssistantService listControls Sample", - "origin": "API_DEFINITION", - "description": " Lists all Controls by their parent [DataStore][google.cloud.discoveryengine.v1.DataStore].", - "canonical": true, - "file": "control_service.list_controls.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListControls", - "fullName": "google.cloud.discoveryengine.v1.ControlService.ListControls", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1.ListControlsResponse", - "client": { - "shortName": "ControlServiceClient", - "fullName": "google.cloud.discoveryengine.v1.ControlServiceClient" - }, - "method": { - "shortName": "ListControls", - "fullName": "google.cloud.discoveryengine.v1.ControlService.ListControls", - "service": { - "shortName": "ControlService", - "fullName": "google.cloud.discoveryengine.v1.ControlService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_ConversationalSearchService_ConverseConversation_async", - "title": "AssistantService converseConversation Sample", - "origin": "API_DEFINITION", - "description": " Converses a conversation.", - "canonical": true, - "file": "conversational_search_service.converse_conversation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 123, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ConverseConversation", - "fullName": "google.cloud.discoveryengine.v1.ConversationalSearchService.ConverseConversation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": ".google.cloud.discoveryengine.v1.TextInput" - }, - { - "name": "serving_config", - "type": "TYPE_STRING" - }, - { - "name": "conversation", - "type": ".google.cloud.discoveryengine.v1.Conversation" - }, - { - "name": "safe_search", - "type": "TYPE_BOOL" - }, - { - "name": "user_labels", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "summary_spec", - "type": ".google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "boost_spec", - "type": ".google.cloud.discoveryengine.v1.SearchRequest.BoostSpec" - } - ], - "resultType": ".google.cloud.discoveryengine.v1.ConverseConversationResponse", - "client": { - "shortName": "ConversationalSearchServiceClient", - "fullName": "google.cloud.discoveryengine.v1.ConversationalSearchServiceClient" - }, - "method": { - "shortName": "ConverseConversation", - "fullName": "google.cloud.discoveryengine.v1.ConversationalSearchService.ConverseConversation", - "service": { - "shortName": "ConversationalSearchService", - "fullName": "google.cloud.discoveryengine.v1.ConversationalSearchService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_ConversationalSearchService_CreateConversation_async", - "title": "AssistantService createConversation Sample", - "origin": "API_DEFINITION", - "description": " Creates a Conversation. If the [Conversation][google.cloud.discoveryengine.v1.Conversation] to create already exists, an ALREADY_EXISTS error is returned.", - "canonical": true, - "file": "conversational_search_service.create_conversation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateConversation", - "fullName": "google.cloud.discoveryengine.v1.ConversationalSearchService.CreateConversation", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "conversation", - "type": ".google.cloud.discoveryengine.v1.Conversation" - } - ], - "resultType": ".google.cloud.discoveryengine.v1.Conversation", - "client": { - "shortName": "ConversationalSearchServiceClient", - "fullName": "google.cloud.discoveryengine.v1.ConversationalSearchServiceClient" - }, - "method": { - "shortName": "CreateConversation", - "fullName": "google.cloud.discoveryengine.v1.ConversationalSearchService.CreateConversation", - "service": { - "shortName": "ConversationalSearchService", - "fullName": "google.cloud.discoveryengine.v1.ConversationalSearchService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_ConversationalSearchService_DeleteConversation_async", - "title": "AssistantService deleteConversation Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Conversation. If the [Conversation][google.cloud.discoveryengine.v1.Conversation] to delete does not exist, a NOT_FOUND error is returned.", - "canonical": true, - "file": "conversational_search_service.delete_conversation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteConversation", - "fullName": "google.cloud.discoveryengine.v1.ConversationalSearchService.DeleteConversation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ConversationalSearchServiceClient", - "fullName": "google.cloud.discoveryengine.v1.ConversationalSearchServiceClient" - }, - "method": { - "shortName": "DeleteConversation", - "fullName": "google.cloud.discoveryengine.v1.ConversationalSearchService.DeleteConversation", - "service": { - "shortName": "ConversationalSearchService", - "fullName": "google.cloud.discoveryengine.v1.ConversationalSearchService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_ConversationalSearchService_UpdateConversation_async", - "title": "AssistantService updateConversation Sample", - "origin": "API_DEFINITION", - "description": " Updates a Conversation. [Conversation][google.cloud.discoveryengine.v1.Conversation] action type cannot be changed. If the [Conversation][google.cloud.discoveryengine.v1.Conversation] to update does not exist, a NOT_FOUND error is returned.", - "canonical": true, - "file": "conversational_search_service.update_conversation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateConversation", - "fullName": "google.cloud.discoveryengine.v1.ConversationalSearchService.UpdateConversation", - "async": true, - "parameters": [ - { - "name": "conversation", - "type": ".google.cloud.discoveryengine.v1.Conversation" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.discoveryengine.v1.Conversation", - "client": { - "shortName": "ConversationalSearchServiceClient", - "fullName": "google.cloud.discoveryengine.v1.ConversationalSearchServiceClient" - }, - "method": { - "shortName": "UpdateConversation", - "fullName": "google.cloud.discoveryengine.v1.ConversationalSearchService.UpdateConversation", - "service": { - "shortName": "ConversationalSearchService", - "fullName": "google.cloud.discoveryengine.v1.ConversationalSearchService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_ConversationalSearchService_GetConversation_async", - "title": "AssistantService getConversation Sample", - "origin": "API_DEFINITION", - "description": " Gets a Conversation.", - "canonical": true, - "file": "conversational_search_service.get_conversation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetConversation", - "fullName": "google.cloud.discoveryengine.v1.ConversationalSearchService.GetConversation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1.Conversation", - "client": { - "shortName": "ConversationalSearchServiceClient", - "fullName": "google.cloud.discoveryengine.v1.ConversationalSearchServiceClient" - }, - "method": { - "shortName": "GetConversation", - "fullName": "google.cloud.discoveryengine.v1.ConversationalSearchService.GetConversation", - "service": { - "shortName": "ConversationalSearchService", - "fullName": "google.cloud.discoveryengine.v1.ConversationalSearchService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_ConversationalSearchService_ListConversations_async", - "title": "AssistantService listConversations Sample", - "origin": "API_DEFINITION", - "description": " Lists all Conversations by their parent [DataStore][google.cloud.discoveryengine.v1.DataStore].", - "canonical": true, - "file": "conversational_search_service.list_conversations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListConversations", - "fullName": "google.cloud.discoveryengine.v1.ConversationalSearchService.ListConversations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1.ListConversationsResponse", - "client": { - "shortName": "ConversationalSearchServiceClient", - "fullName": "google.cloud.discoveryengine.v1.ConversationalSearchServiceClient" - }, - "method": { - "shortName": "ListConversations", - "fullName": "google.cloud.discoveryengine.v1.ConversationalSearchService.ListConversations", - "service": { - "shortName": "ConversationalSearchService", - "fullName": "google.cloud.discoveryengine.v1.ConversationalSearchService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_ConversationalSearchService_AnswerQuery_async", - "title": "AssistantService answerQuery Sample", - "origin": "API_DEFINITION", - "description": " Answer query method.", - "canonical": true, - "file": "conversational_search_service.answer_query.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 126, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AnswerQuery", - "fullName": "google.cloud.discoveryengine.v1.ConversationalSearchService.AnswerQuery", - "async": true, - "parameters": [ - { - "name": "serving_config", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": ".google.cloud.discoveryengine.v1.Query" - }, - { - "name": "session", - "type": "TYPE_STRING" - }, - { - "name": "safety_spec", - "type": ".google.cloud.discoveryengine.v1.AnswerQueryRequest.SafetySpec" - }, - { - "name": "related_questions_spec", - "type": ".google.cloud.discoveryengine.v1.AnswerQueryRequest.RelatedQuestionsSpec" - }, - { - "name": "grounding_spec", - "type": ".google.cloud.discoveryengine.v1.AnswerQueryRequest.GroundingSpec" - }, - { - "name": "answer_generation_spec", - "type": ".google.cloud.discoveryengine.v1.AnswerQueryRequest.AnswerGenerationSpec" - }, - { - "name": "search_spec", - "type": ".google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec" - }, - { - "name": "query_understanding_spec", - "type": ".google.cloud.discoveryengine.v1.AnswerQueryRequest.QueryUnderstandingSpec" - }, - { - "name": "asynchronous_mode", - "type": "TYPE_BOOL" - }, - { - "name": "user_pseudo_id", - "type": "TYPE_STRING" - }, - { - "name": "user_labels", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "end_user_spec", - "type": ".google.cloud.discoveryengine.v1.AnswerQueryRequest.EndUserSpec" - } - ], - "resultType": ".google.cloud.discoveryengine.v1.AnswerQueryResponse", - "client": { - "shortName": "ConversationalSearchServiceClient", - "fullName": "google.cloud.discoveryengine.v1.ConversationalSearchServiceClient" - }, - "method": { - "shortName": "AnswerQuery", - "fullName": "google.cloud.discoveryengine.v1.ConversationalSearchService.AnswerQuery", - "service": { - "shortName": "ConversationalSearchService", - "fullName": "google.cloud.discoveryengine.v1.ConversationalSearchService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_ConversationalSearchService_StreamAnswerQuery_async", - "title": "AssistantService streamAnswerQuery Sample", - "origin": "API_DEFINITION", - "description": " Answer query method (streaming). It takes one [AnswerQueryRequest][google.cloud.discoveryengine.v1.AnswerQueryRequest] and returns multiple [AnswerQueryResponse][google.cloud.discoveryengine.v1.AnswerQueryResponse] messages in a stream.", - "canonical": true, - "file": "conversational_search_service.stream_answer_query.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 128, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StreamAnswerQuery", - "fullName": "google.cloud.discoveryengine.v1.ConversationalSearchService.StreamAnswerQuery", - "async": true, - "parameters": [ - { - "name": "serving_config", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": ".google.cloud.discoveryengine.v1.Query" - }, - { - "name": "session", - "type": "TYPE_STRING" - }, - { - "name": "safety_spec", - "type": ".google.cloud.discoveryengine.v1.AnswerQueryRequest.SafetySpec" - }, - { - "name": "related_questions_spec", - "type": ".google.cloud.discoveryengine.v1.AnswerQueryRequest.RelatedQuestionsSpec" - }, - { - "name": "grounding_spec", - "type": ".google.cloud.discoveryengine.v1.AnswerQueryRequest.GroundingSpec" - }, - { - "name": "answer_generation_spec", - "type": ".google.cloud.discoveryengine.v1.AnswerQueryRequest.AnswerGenerationSpec" - }, - { - "name": "search_spec", - "type": ".google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec" - }, - { - "name": "query_understanding_spec", - "type": ".google.cloud.discoveryengine.v1.AnswerQueryRequest.QueryUnderstandingSpec" - }, - { - "name": "asynchronous_mode", - "type": "TYPE_BOOL" - }, - { - "name": "user_pseudo_id", - "type": "TYPE_STRING" - }, - { - "name": "user_labels", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "end_user_spec", - "type": ".google.cloud.discoveryengine.v1.AnswerQueryRequest.EndUserSpec" - } - ], - "resultType": ".google.cloud.discoveryengine.v1.AnswerQueryResponse", - "client": { - "shortName": "ConversationalSearchServiceClient", - "fullName": "google.cloud.discoveryengine.v1.ConversationalSearchServiceClient" - }, - "method": { - "shortName": "StreamAnswerQuery", - "fullName": "google.cloud.discoveryengine.v1.ConversationalSearchService.StreamAnswerQuery", - "service": { - "shortName": "ConversationalSearchService", - "fullName": "google.cloud.discoveryengine.v1.ConversationalSearchService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_ConversationalSearchService_GetAnswer_async", - "title": "AssistantService getAnswer Sample", - "origin": "API_DEFINITION", - "description": " Gets a Answer.", - "canonical": true, - "file": "conversational_search_service.get_answer.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAnswer", - "fullName": "google.cloud.discoveryengine.v1.ConversationalSearchService.GetAnswer", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1.Answer", - "client": { - "shortName": "ConversationalSearchServiceClient", - "fullName": "google.cloud.discoveryengine.v1.ConversationalSearchServiceClient" - }, - "method": { - "shortName": "GetAnswer", - "fullName": "google.cloud.discoveryengine.v1.ConversationalSearchService.GetAnswer", - "service": { - "shortName": "ConversationalSearchService", - "fullName": "google.cloud.discoveryengine.v1.ConversationalSearchService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_ConversationalSearchService_CreateSession_async", - "title": "AssistantService createSession Sample", - "origin": "API_DEFINITION", - "description": " Creates a Session. If the [Session][google.cloud.discoveryengine.v1.Session] to create already exists, an ALREADY_EXISTS error is returned.", - "canonical": true, - "file": "conversational_search_service.create_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSession", - "fullName": "google.cloud.discoveryengine.v1.ConversationalSearchService.CreateSession", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "session", - "type": ".google.cloud.discoveryengine.v1.Session" - } - ], - "resultType": ".google.cloud.discoveryengine.v1.Session", - "client": { - "shortName": "ConversationalSearchServiceClient", - "fullName": "google.cloud.discoveryengine.v1.ConversationalSearchServiceClient" - }, - "method": { - "shortName": "CreateSession", - "fullName": "google.cloud.discoveryengine.v1.ConversationalSearchService.CreateSession", - "service": { - "shortName": "ConversationalSearchService", - "fullName": "google.cloud.discoveryengine.v1.ConversationalSearchService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_ConversationalSearchService_DeleteSession_async", - "title": "AssistantService deleteSession Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Session. If the [Session][google.cloud.discoveryengine.v1.Session] to delete does not exist, a NOT_FOUND error is returned.", - "canonical": true, - "file": "conversational_search_service.delete_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSession", - "fullName": "google.cloud.discoveryengine.v1.ConversationalSearchService.DeleteSession", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ConversationalSearchServiceClient", - "fullName": "google.cloud.discoveryengine.v1.ConversationalSearchServiceClient" - }, - "method": { - "shortName": "DeleteSession", - "fullName": "google.cloud.discoveryengine.v1.ConversationalSearchService.DeleteSession", - "service": { - "shortName": "ConversationalSearchService", - "fullName": "google.cloud.discoveryengine.v1.ConversationalSearchService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_ConversationalSearchService_UpdateSession_async", - "title": "AssistantService updateSession Sample", - "origin": "API_DEFINITION", - "description": " Updates a Session. [Session][google.cloud.discoveryengine.v1.Session] action type cannot be changed. If the [Session][google.cloud.discoveryengine.v1.Session] to update does not exist, a NOT_FOUND error is returned.", - "canonical": true, - "file": "conversational_search_service.update_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSession", - "fullName": "google.cloud.discoveryengine.v1.ConversationalSearchService.UpdateSession", - "async": true, - "parameters": [ - { - "name": "session", - "type": ".google.cloud.discoveryengine.v1.Session" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.discoveryengine.v1.Session", - "client": { - "shortName": "ConversationalSearchServiceClient", - "fullName": "google.cloud.discoveryengine.v1.ConversationalSearchServiceClient" - }, - "method": { - "shortName": "UpdateSession", - "fullName": "google.cloud.discoveryengine.v1.ConversationalSearchService.UpdateSession", - "service": { - "shortName": "ConversationalSearchService", - "fullName": "google.cloud.discoveryengine.v1.ConversationalSearchService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_ConversationalSearchService_GetSession_async", - "title": "AssistantService getSession Sample", - "origin": "API_DEFINITION", - "description": " Gets a Session.", - "canonical": true, - "file": "conversational_search_service.get_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSession", - "fullName": "google.cloud.discoveryengine.v1.ConversationalSearchService.GetSession", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "include_answer_details", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.discoveryengine.v1.Session", - "client": { - "shortName": "ConversationalSearchServiceClient", - "fullName": "google.cloud.discoveryengine.v1.ConversationalSearchServiceClient" - }, - "method": { - "shortName": "GetSession", - "fullName": "google.cloud.discoveryengine.v1.ConversationalSearchService.GetSession", - "service": { - "shortName": "ConversationalSearchService", - "fullName": "google.cloud.discoveryengine.v1.ConversationalSearchService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_ConversationalSearchService_ListSessions_async", - "title": "AssistantService listSessions Sample", - "origin": "API_DEFINITION", - "description": " Lists all Sessions by their parent [DataStore][google.cloud.discoveryengine.v1.DataStore].", - "canonical": true, - "file": "conversational_search_service.list_sessions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 100, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSessions", - "fullName": "google.cloud.discoveryengine.v1.ConversationalSearchService.ListSessions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1.ListSessionsResponse", - "client": { - "shortName": "ConversationalSearchServiceClient", - "fullName": "google.cloud.discoveryengine.v1.ConversationalSearchServiceClient" - }, - "method": { - "shortName": "ListSessions", - "fullName": "google.cloud.discoveryengine.v1.ConversationalSearchService.ListSessions", - "service": { - "shortName": "ConversationalSearchService", - "fullName": "google.cloud.discoveryengine.v1.ConversationalSearchService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_DataStoreService_CreateDataStore_async", - "title": "AssistantService createDataStore Sample", - "origin": "API_DEFINITION", - "description": " Creates a [DataStore][google.cloud.discoveryengine.v1.DataStore]. DataStore is for storing [Documents][google.cloud.discoveryengine.v1.Document]. To serve these documents for Search, or Recommendation use case, an [Engine][google.cloud.discoveryengine.v1.Engine] needs to be created separately.", - "canonical": true, - "file": "data_store_service.create_data_store.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 99, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDataStore", - "fullName": "google.cloud.discoveryengine.v1.DataStoreService.CreateDataStore", - "async": true, - "parameters": [ - { - "name": "cmek_config_name", - "type": "TYPE_STRING" - }, - { - "name": "disable_cmek", - "type": "TYPE_BOOL" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "data_store", - "type": ".google.cloud.discoveryengine.v1.DataStore" - }, - { - "name": "data_store_id", - "type": "TYPE_STRING" - }, - { - "name": "create_advanced_site_search", - "type": "TYPE_BOOL" - }, - { - "name": "skip_default_schema_creation", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataStoreServiceClient", - "fullName": "google.cloud.discoveryengine.v1.DataStoreServiceClient" - }, - "method": { - "shortName": "CreateDataStore", - "fullName": "google.cloud.discoveryengine.v1.DataStoreService.CreateDataStore", - "service": { - "shortName": "DataStoreService", - "fullName": "google.cloud.discoveryengine.v1.DataStoreService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_DataStoreService_GetDataStore_async", - "title": "AssistantService getDataStore Sample", - "origin": "API_DEFINITION", - "description": " Gets a [DataStore][google.cloud.discoveryengine.v1.DataStore].", - "canonical": true, - "file": "data_store_service.get_data_store.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDataStore", - "fullName": "google.cloud.discoveryengine.v1.DataStoreService.GetDataStore", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1.DataStore", - "client": { - "shortName": "DataStoreServiceClient", - "fullName": "google.cloud.discoveryengine.v1.DataStoreServiceClient" - }, - "method": { - "shortName": "GetDataStore", - "fullName": "google.cloud.discoveryengine.v1.DataStoreService.GetDataStore", - "service": { - "shortName": "DataStoreService", - "fullName": "google.cloud.discoveryengine.v1.DataStoreService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_DataStoreService_ListDataStores_async", - "title": "AssistantService listDataStores Sample", - "origin": "API_DEFINITION", - "description": " Lists all the [DataStore][google.cloud.discoveryengine.v1.DataStore]s associated with the project.", - "canonical": true, - "file": "data_store_service.list_data_stores.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDataStores", - "fullName": "google.cloud.discoveryengine.v1.DataStoreService.ListDataStores", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1.ListDataStoresResponse", - "client": { - "shortName": "DataStoreServiceClient", - "fullName": "google.cloud.discoveryengine.v1.DataStoreServiceClient" - }, - "method": { - "shortName": "ListDataStores", - "fullName": "google.cloud.discoveryengine.v1.DataStoreService.ListDataStores", - "service": { - "shortName": "DataStoreService", - "fullName": "google.cloud.discoveryengine.v1.DataStoreService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_DataStoreService_DeleteDataStore_async", - "title": "AssistantService deleteDataStore Sample", - "origin": "API_DEFINITION", - "description": " Deletes a [DataStore][google.cloud.discoveryengine.v1.DataStore].", - "canonical": true, - "file": "data_store_service.delete_data_store.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDataStore", - "fullName": "google.cloud.discoveryengine.v1.DataStoreService.DeleteDataStore", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataStoreServiceClient", - "fullName": "google.cloud.discoveryengine.v1.DataStoreServiceClient" - }, - "method": { - "shortName": "DeleteDataStore", - "fullName": "google.cloud.discoveryengine.v1.DataStoreService.DeleteDataStore", - "service": { - "shortName": "DataStoreService", - "fullName": "google.cloud.discoveryengine.v1.DataStoreService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_DataStoreService_UpdateDataStore_async", - "title": "AssistantService updateDataStore Sample", - "origin": "API_DEFINITION", - "description": " Updates a [DataStore][google.cloud.discoveryengine.v1.DataStore]", - "canonical": true, - "file": "data_store_service.update_data_store.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDataStore", - "fullName": "google.cloud.discoveryengine.v1.DataStoreService.UpdateDataStore", - "async": true, - "parameters": [ - { - "name": "data_store", - "type": ".google.cloud.discoveryengine.v1.DataStore" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.discoveryengine.v1.DataStore", - "client": { - "shortName": "DataStoreServiceClient", - "fullName": "google.cloud.discoveryengine.v1.DataStoreServiceClient" - }, - "method": { - "shortName": "UpdateDataStore", - "fullName": "google.cloud.discoveryengine.v1.DataStoreService.UpdateDataStore", - "service": { - "shortName": "DataStoreService", - "fullName": "google.cloud.discoveryengine.v1.DataStoreService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_DocumentService_GetDocument_async", - "title": "AssistantService getDocument Sample", - "origin": "API_DEFINITION", - "description": " Gets a [Document][google.cloud.discoveryengine.v1.Document].", - "canonical": true, - "file": "document_service.get_document.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDocument", - "fullName": "google.cloud.discoveryengine.v1.DocumentService.GetDocument", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1.Document", - "client": { - "shortName": "DocumentServiceClient", - "fullName": "google.cloud.discoveryengine.v1.DocumentServiceClient" - }, - "method": { - "shortName": "GetDocument", - "fullName": "google.cloud.discoveryengine.v1.DocumentService.GetDocument", - "service": { - "shortName": "DocumentService", - "fullName": "google.cloud.discoveryengine.v1.DocumentService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_DocumentService_ListDocuments_async", - "title": "AssistantService listDocuments Sample", - "origin": "API_DEFINITION", - "description": " Gets a list of [Document][google.cloud.discoveryengine.v1.Document]s.", - "canonical": true, - "file": "document_service.list_documents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDocuments", - "fullName": "google.cloud.discoveryengine.v1.DocumentService.ListDocuments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1.ListDocumentsResponse", - "client": { - "shortName": "DocumentServiceClient", - "fullName": "google.cloud.discoveryengine.v1.DocumentServiceClient" - }, - "method": { - "shortName": "ListDocuments", - "fullName": "google.cloud.discoveryengine.v1.DocumentService.ListDocuments", - "service": { - "shortName": "DocumentService", - "fullName": "google.cloud.discoveryengine.v1.DocumentService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_DocumentService_CreateDocument_async", - "title": "AssistantService createDocument Sample", - "origin": "API_DEFINITION", - "description": " Creates a [Document][google.cloud.discoveryengine.v1.Document].", - "canonical": true, - "file": "document_service.create_document.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDocument", - "fullName": "google.cloud.discoveryengine.v1.DocumentService.CreateDocument", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "document", - "type": ".google.cloud.discoveryengine.v1.Document" - }, - { - "name": "document_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1.Document", - "client": { - "shortName": "DocumentServiceClient", - "fullName": "google.cloud.discoveryengine.v1.DocumentServiceClient" - }, - "method": { - "shortName": "CreateDocument", - "fullName": "google.cloud.discoveryengine.v1.DocumentService.CreateDocument", - "service": { - "shortName": "DocumentService", - "fullName": "google.cloud.discoveryengine.v1.DocumentService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_DocumentService_UpdateDocument_async", - "title": "AssistantService updateDocument Sample", - "origin": "API_DEFINITION", - "description": " Updates a [Document][google.cloud.discoveryengine.v1.Document].", - "canonical": true, - "file": "document_service.update_document.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDocument", - "fullName": "google.cloud.discoveryengine.v1.DocumentService.UpdateDocument", - "async": true, - "parameters": [ - { - "name": "document", - "type": ".google.cloud.discoveryengine.v1.Document" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.discoveryengine.v1.Document", - "client": { - "shortName": "DocumentServiceClient", - "fullName": "google.cloud.discoveryengine.v1.DocumentServiceClient" - }, - "method": { - "shortName": "UpdateDocument", - "fullName": "google.cloud.discoveryengine.v1.DocumentService.UpdateDocument", - "service": { - "shortName": "DocumentService", - "fullName": "google.cloud.discoveryengine.v1.DocumentService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_DocumentService_DeleteDocument_async", - "title": "AssistantService deleteDocument Sample", - "origin": "API_DEFINITION", - "description": " Deletes a [Document][google.cloud.discoveryengine.v1.Document].", - "canonical": true, - "file": "document_service.delete_document.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDocument", - "fullName": "google.cloud.discoveryengine.v1.DocumentService.DeleteDocument", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DocumentServiceClient", - "fullName": "google.cloud.discoveryengine.v1.DocumentServiceClient" - }, - "method": { - "shortName": "DeleteDocument", - "fullName": "google.cloud.discoveryengine.v1.DocumentService.DeleteDocument", - "service": { - "shortName": "DocumentService", - "fullName": "google.cloud.discoveryengine.v1.DocumentService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_DocumentService_ImportDocuments_async", - "title": "AssistantService importDocuments Sample", - "origin": "API_DEFINITION", - "description": " Bulk import of multiple [Document][google.cloud.discoveryengine.v1.Document]s. Request processing may be synchronous. Non-existing items are created. Note: It is possible for a subset of the [Document][google.cloud.discoveryengine.v1.Document]s to be successfully updated.", - "canonical": true, - "file": "document_service.import_documents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 170, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportDocuments", - "fullName": "google.cloud.discoveryengine.v1.DocumentService.ImportDocuments", - "async": true, - "parameters": [ - { - "name": "inline_source", - "type": ".google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource" - }, - { - "name": "gcs_source", - "type": ".google.cloud.discoveryengine.v1.GcsSource" - }, - { - "name": "bigquery_source", - "type": ".google.cloud.discoveryengine.v1.BigQuerySource" - }, - { - "name": "fhir_store_source", - "type": ".google.cloud.discoveryengine.v1.FhirStoreSource" - }, - { - "name": "spanner_source", - "type": ".google.cloud.discoveryengine.v1.SpannerSource" - }, - { - "name": "cloud_sql_source", - "type": ".google.cloud.discoveryengine.v1.CloudSqlSource" - }, - { - "name": "firestore_source", - "type": ".google.cloud.discoveryengine.v1.FirestoreSource" - }, - { - "name": "alloy_db_source", - "type": ".google.cloud.discoveryengine.v1.AlloyDbSource" - }, - { - "name": "bigtable_source", - "type": ".google.cloud.discoveryengine.v1.BigtableSource" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "error_config", - "type": ".google.cloud.discoveryengine.v1.ImportErrorConfig" - }, - { - "name": "reconciliation_mode", - "type": ".google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "auto_generate_ids", - "type": "TYPE_BOOL" - }, - { - "name": "id_field", - "type": "TYPE_STRING" - }, - { - "name": "force_refresh_content", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DocumentServiceClient", - "fullName": "google.cloud.discoveryengine.v1.DocumentServiceClient" - }, - "method": { - "shortName": "ImportDocuments", - "fullName": "google.cloud.discoveryengine.v1.DocumentService.ImportDocuments", - "service": { - "shortName": "DocumentService", - "fullName": "google.cloud.discoveryengine.v1.DocumentService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_DocumentService_PurgeDocuments_async", - "title": "AssistantService purgeDocuments Sample", - "origin": "API_DEFINITION", - "description": " Permanently deletes all selected [Document][google.cloud.discoveryengine.v1.Document]s in a branch. This process is asynchronous. Depending on the number of [Document][google.cloud.discoveryengine.v1.Document]s to be deleted, this operation can take hours to complete. Before the delete operation completes, some [Document][google.cloud.discoveryengine.v1.Document]s might still be returned by [DocumentService.GetDocument][google.cloud.discoveryengine.v1.DocumentService.GetDocument] or [DocumentService.ListDocuments][google.cloud.discoveryengine.v1.DocumentService.ListDocuments]. To get a list of the [Document][google.cloud.discoveryengine.v1.Document]s to be deleted, set [PurgeDocumentsRequest.force][google.cloud.discoveryengine.v1.PurgeDocumentsRequest.force] to false.", - "canonical": true, - "file": "document_service.purge_documents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PurgeDocuments", - "fullName": "google.cloud.discoveryengine.v1.DocumentService.PurgeDocuments", - "async": true, - "parameters": [ - { - "name": "gcs_source", - "type": ".google.cloud.discoveryengine.v1.GcsSource" - }, - { - "name": "inline_source", - "type": ".google.cloud.discoveryengine.v1.PurgeDocumentsRequest.InlineSource" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "error_config", - "type": ".google.cloud.discoveryengine.v1.PurgeErrorConfig" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DocumentServiceClient", - "fullName": "google.cloud.discoveryengine.v1.DocumentServiceClient" - }, - "method": { - "shortName": "PurgeDocuments", - "fullName": "google.cloud.discoveryengine.v1.DocumentService.PurgeDocuments", - "service": { - "shortName": "DocumentService", - "fullName": "google.cloud.discoveryengine.v1.DocumentService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_DocumentService_BatchGetDocumentsMetadata_async", - "title": "AssistantService batchGetDocumentsMetadata Sample", - "origin": "API_DEFINITION", - "description": " Gets index freshness metadata for [Document][google.cloud.discoveryengine.v1.Document]s. Supported for website search only.", - "canonical": true, - "file": "document_service.batch_get_documents_metadata.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchGetDocumentsMetadata", - "fullName": "google.cloud.discoveryengine.v1.DocumentService.BatchGetDocumentsMetadata", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "matcher", - "type": ".google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.Matcher" - } - ], - "resultType": ".google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataResponse", - "client": { - "shortName": "DocumentServiceClient", - "fullName": "google.cloud.discoveryengine.v1.DocumentServiceClient" - }, - "method": { - "shortName": "BatchGetDocumentsMetadata", - "fullName": "google.cloud.discoveryengine.v1.DocumentService.BatchGetDocumentsMetadata", - "service": { - "shortName": "DocumentService", - "fullName": "google.cloud.discoveryengine.v1.DocumentService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_EngineService_CreateEngine_async", - "title": "AssistantService createEngine Sample", - "origin": "API_DEFINITION", - "description": " Creates a [Engine][google.cloud.discoveryengine.v1.Engine].", - "canonical": true, - "file": "engine_service.create_engine.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateEngine", - "fullName": "google.cloud.discoveryengine.v1.EngineService.CreateEngine", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "engine", - "type": ".google.cloud.discoveryengine.v1.Engine" - }, - { - "name": "engine_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1.EngineServiceClient" - }, - "method": { - "shortName": "CreateEngine", - "fullName": "google.cloud.discoveryengine.v1.EngineService.CreateEngine", - "service": { - "shortName": "EngineService", - "fullName": "google.cloud.discoveryengine.v1.EngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_EngineService_DeleteEngine_async", - "title": "AssistantService deleteEngine Sample", - "origin": "API_DEFINITION", - "description": " Deletes a [Engine][google.cloud.discoveryengine.v1.Engine].", - "canonical": true, - "file": "engine_service.delete_engine.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteEngine", - "fullName": "google.cloud.discoveryengine.v1.EngineService.DeleteEngine", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1.EngineServiceClient" - }, - "method": { - "shortName": "DeleteEngine", - "fullName": "google.cloud.discoveryengine.v1.EngineService.DeleteEngine", - "service": { - "shortName": "EngineService", - "fullName": "google.cloud.discoveryengine.v1.EngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_EngineService_UpdateEngine_async", - "title": "AssistantService updateEngine Sample", - "origin": "API_DEFINITION", - "description": " Updates an [Engine][google.cloud.discoveryengine.v1.Engine]", - "canonical": true, - "file": "engine_service.update_engine.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateEngine", - "fullName": "google.cloud.discoveryengine.v1.EngineService.UpdateEngine", - "async": true, - "parameters": [ - { - "name": "engine", - "type": ".google.cloud.discoveryengine.v1.Engine" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.discoveryengine.v1.Engine", - "client": { - "shortName": "EngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1.EngineServiceClient" - }, - "method": { - "shortName": "UpdateEngine", - "fullName": "google.cloud.discoveryengine.v1.EngineService.UpdateEngine", - "service": { - "shortName": "EngineService", - "fullName": "google.cloud.discoveryengine.v1.EngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_EngineService_GetEngine_async", - "title": "AssistantService getEngine Sample", - "origin": "API_DEFINITION", - "description": " Gets a [Engine][google.cloud.discoveryengine.v1.Engine].", - "canonical": true, - "file": "engine_service.get_engine.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEngine", - "fullName": "google.cloud.discoveryengine.v1.EngineService.GetEngine", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1.Engine", - "client": { - "shortName": "EngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1.EngineServiceClient" - }, - "method": { - "shortName": "GetEngine", - "fullName": "google.cloud.discoveryengine.v1.EngineService.GetEngine", - "service": { - "shortName": "EngineService", - "fullName": "google.cloud.discoveryengine.v1.EngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_EngineService_ListEngines_async", - "title": "AssistantService listEngines Sample", - "origin": "API_DEFINITION", - "description": " Lists all the [Engine][google.cloud.discoveryengine.v1.Engine]s associated with the project.", - "canonical": true, - "file": "engine_service.list_engines.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEngines", - "fullName": "google.cloud.discoveryengine.v1.EngineService.ListEngines", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1.ListEnginesResponse", - "client": { - "shortName": "EngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1.EngineServiceClient" - }, - "method": { - "shortName": "ListEngines", - "fullName": "google.cloud.discoveryengine.v1.EngineService.ListEngines", - "service": { - "shortName": "EngineService", - "fullName": "google.cloud.discoveryengine.v1.EngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_GroundedGenerationService_StreamGenerateGroundedContent_async", - "title": "AssistantService streamGenerateGroundedContent Sample", - "origin": "API_DEFINITION", - "description": " Generates grounded content in a streaming fashion.", - "canonical": true, - "file": "grounded_generation_service.stream_generate_grounded_content.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 97, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StreamGenerateGroundedContent", - "fullName": "google.cloud.discoveryengine.v1.GroundedGenerationService.StreamGenerateGroundedContent", - "async": true, - "parameters": [ - { - "name": "location", - "type": "TYPE_STRING" - }, - { - "name": "system_instruction", - "type": ".google.cloud.discoveryengine.v1.GroundedGenerationContent" - }, - { - "name": "contents", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "generation_spec", - "type": ".google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec" - }, - { - "name": "grounding_spec", - "type": ".google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec" - }, - { - "name": "user_labels", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.discoveryengine.v1.GenerateGroundedContentResponse", - "client": { - "shortName": "GroundedGenerationServiceClient", - "fullName": "google.cloud.discoveryengine.v1.GroundedGenerationServiceClient" - }, - "method": { - "shortName": "StreamGenerateGroundedContent", - "fullName": "google.cloud.discoveryengine.v1.GroundedGenerationService.StreamGenerateGroundedContent", - "service": { - "shortName": "GroundedGenerationService", - "fullName": "google.cloud.discoveryengine.v1.GroundedGenerationService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_GroundedGenerationService_GenerateGroundedContent_async", - "title": "AssistantService generateGroundedContent Sample", - "origin": "API_DEFINITION", - "description": " Generates grounded content.", - "canonical": true, - "file": "grounded_generation_service.generate_grounded_content.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 93, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateGroundedContent", - "fullName": "google.cloud.discoveryengine.v1.GroundedGenerationService.GenerateGroundedContent", - "async": true, - "parameters": [ - { - "name": "location", - "type": "TYPE_STRING" - }, - { - "name": "system_instruction", - "type": ".google.cloud.discoveryengine.v1.GroundedGenerationContent" - }, - { - "name": "contents", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "generation_spec", - "type": ".google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec" - }, - { - "name": "grounding_spec", - "type": ".google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec" - }, - { - "name": "user_labels", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.discoveryengine.v1.GenerateGroundedContentResponse", - "client": { - "shortName": "GroundedGenerationServiceClient", - "fullName": "google.cloud.discoveryengine.v1.GroundedGenerationServiceClient" - }, - "method": { - "shortName": "GenerateGroundedContent", - "fullName": "google.cloud.discoveryengine.v1.GroundedGenerationService.GenerateGroundedContent", - "service": { - "shortName": "GroundedGenerationService", - "fullName": "google.cloud.discoveryengine.v1.GroundedGenerationService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_GroundedGenerationService_CheckGrounding_async", - "title": "AssistantService checkGrounding Sample", - "origin": "API_DEFINITION", - "description": " Performs a grounding check.", - "canonical": true, - "file": "grounded_generation_service.check_grounding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CheckGrounding", - "fullName": "google.cloud.discoveryengine.v1.GroundedGenerationService.CheckGrounding", - "async": true, - "parameters": [ - { - "name": "grounding_config", - "type": "TYPE_STRING" - }, - { - "name": "answer_candidate", - "type": "TYPE_STRING" - }, - { - "name": "facts", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "grounding_spec", - "type": ".google.cloud.discoveryengine.v1.CheckGroundingSpec" - }, - { - "name": "user_labels", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.discoveryengine.v1.CheckGroundingResponse", - "client": { - "shortName": "GroundedGenerationServiceClient", - "fullName": "google.cloud.discoveryengine.v1.GroundedGenerationServiceClient" - }, - "method": { - "shortName": "CheckGrounding", - "fullName": "google.cloud.discoveryengine.v1.GroundedGenerationService.CheckGrounding", - "service": { - "shortName": "GroundedGenerationService", - "fullName": "google.cloud.discoveryengine.v1.GroundedGenerationService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_IdentityMappingStoreService_CreateIdentityMappingStore_async", - "title": "AssistantService createIdentityMappingStore Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Identity Mapping Store.", - "canonical": true, - "file": "identity_mapping_store_service.create_identity_mapping_store.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateIdentityMappingStore", - "fullName": "google.cloud.discoveryengine.v1.IdentityMappingStoreService.CreateIdentityMappingStore", - "async": true, - "parameters": [ - { - "name": "cmek_config_name", - "type": "TYPE_STRING" - }, - { - "name": "disable_cmek", - "type": "TYPE_BOOL" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "identity_mapping_store_id", - "type": "TYPE_STRING" - }, - { - "name": "identity_mapping_store", - "type": ".google.cloud.discoveryengine.v1.IdentityMappingStore" - } - ], - "resultType": ".google.cloud.discoveryengine.v1.IdentityMappingStore", - "client": { - "shortName": "IdentityMappingStoreServiceClient", - "fullName": "google.cloud.discoveryengine.v1.IdentityMappingStoreServiceClient" - }, - "method": { - "shortName": "CreateIdentityMappingStore", - "fullName": "google.cloud.discoveryengine.v1.IdentityMappingStoreService.CreateIdentityMappingStore", - "service": { - "shortName": "IdentityMappingStoreService", - "fullName": "google.cloud.discoveryengine.v1.IdentityMappingStoreService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_IdentityMappingStoreService_GetIdentityMappingStore_async", - "title": "AssistantService getIdentityMappingStore Sample", - "origin": "API_DEFINITION", - "description": " Gets the Identity Mapping Store.", - "canonical": true, - "file": "identity_mapping_store_service.get_identity_mapping_store.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIdentityMappingStore", - "fullName": "google.cloud.discoveryengine.v1.IdentityMappingStoreService.GetIdentityMappingStore", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1.IdentityMappingStore", - "client": { - "shortName": "IdentityMappingStoreServiceClient", - "fullName": "google.cloud.discoveryengine.v1.IdentityMappingStoreServiceClient" - }, - "method": { - "shortName": "GetIdentityMappingStore", - "fullName": "google.cloud.discoveryengine.v1.IdentityMappingStoreService.GetIdentityMappingStore", - "service": { - "shortName": "IdentityMappingStoreService", - "fullName": "google.cloud.discoveryengine.v1.IdentityMappingStoreService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_IdentityMappingStoreService_DeleteIdentityMappingStore_async", - "title": "AssistantService deleteIdentityMappingStore Sample", - "origin": "API_DEFINITION", - "description": " Deletes the Identity Mapping Store.", - "canonical": true, - "file": "identity_mapping_store_service.delete_identity_mapping_store.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteIdentityMappingStore", - "fullName": "google.cloud.discoveryengine.v1.IdentityMappingStoreService.DeleteIdentityMappingStore", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "IdentityMappingStoreServiceClient", - "fullName": "google.cloud.discoveryengine.v1.IdentityMappingStoreServiceClient" - }, - "method": { - "shortName": "DeleteIdentityMappingStore", - "fullName": "google.cloud.discoveryengine.v1.IdentityMappingStoreService.DeleteIdentityMappingStore", - "service": { - "shortName": "IdentityMappingStoreService", - "fullName": "google.cloud.discoveryengine.v1.IdentityMappingStoreService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_IdentityMappingStoreService_ImportIdentityMappings_async", - "title": "AssistantService importIdentityMappings Sample", - "origin": "API_DEFINITION", - "description": " Imports a list of Identity Mapping Entries to an Identity Mapping Store.", - "canonical": true, - "file": "identity_mapping_store_service.import_identity_mappings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportIdentityMappings", - "fullName": "google.cloud.discoveryengine.v1.IdentityMappingStoreService.ImportIdentityMappings", - "async": true, - "parameters": [ - { - "name": "inline_source", - "type": ".google.cloud.discoveryengine.v1.ImportIdentityMappingsRequest.InlineSource" - }, - { - "name": "identity_mapping_store", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "IdentityMappingStoreServiceClient", - "fullName": "google.cloud.discoveryengine.v1.IdentityMappingStoreServiceClient" - }, - "method": { - "shortName": "ImportIdentityMappings", - "fullName": "google.cloud.discoveryengine.v1.IdentityMappingStoreService.ImportIdentityMappings", - "service": { - "shortName": "IdentityMappingStoreService", - "fullName": "google.cloud.discoveryengine.v1.IdentityMappingStoreService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_IdentityMappingStoreService_PurgeIdentityMappings_async", - "title": "AssistantService purgeIdentityMappings Sample", - "origin": "API_DEFINITION", - "description": " Purges specified or all Identity Mapping Entries from an Identity Mapping Store.", - "canonical": true, - "file": "identity_mapping_store_service.purge_identity_mappings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PurgeIdentityMappings", - "fullName": "google.cloud.discoveryengine.v1.IdentityMappingStoreService.PurgeIdentityMappings", - "async": true, - "parameters": [ - { - "name": "inline_source", - "type": ".google.cloud.discoveryengine.v1.PurgeIdentityMappingsRequest.InlineSource" - }, - { - "name": "identity_mapping_store", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "IdentityMappingStoreServiceClient", - "fullName": "google.cloud.discoveryengine.v1.IdentityMappingStoreServiceClient" - }, - "method": { - "shortName": "PurgeIdentityMappings", - "fullName": "google.cloud.discoveryengine.v1.IdentityMappingStoreService.PurgeIdentityMappings", - "service": { - "shortName": "IdentityMappingStoreService", - "fullName": "google.cloud.discoveryengine.v1.IdentityMappingStoreService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_IdentityMappingStoreService_ListIdentityMappings_async", - "title": "AssistantService listIdentityMappings Sample", - "origin": "API_DEFINITION", - "description": " Lists Identity Mappings in an Identity Mapping Store.", - "canonical": true, - "file": "identity_mapping_store_service.list_identity_mappings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListIdentityMappings", - "fullName": "google.cloud.discoveryengine.v1.IdentityMappingStoreService.ListIdentityMappings", - "async": true, - "parameters": [ - { - "name": "identity_mapping_store", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1.ListIdentityMappingsResponse", - "client": { - "shortName": "IdentityMappingStoreServiceClient", - "fullName": "google.cloud.discoveryengine.v1.IdentityMappingStoreServiceClient" - }, - "method": { - "shortName": "ListIdentityMappings", - "fullName": "google.cloud.discoveryengine.v1.IdentityMappingStoreService.ListIdentityMappings", - "service": { - "shortName": "IdentityMappingStoreService", - "fullName": "google.cloud.discoveryengine.v1.IdentityMappingStoreService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_IdentityMappingStoreService_ListIdentityMappingStores_async", - "title": "AssistantService listIdentityMappingStores Sample", - "origin": "API_DEFINITION", - "description": " Lists all Identity Mapping Stores.", - "canonical": true, - "file": "identity_mapping_store_service.list_identity_mapping_stores.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListIdentityMappingStores", - "fullName": "google.cloud.discoveryengine.v1.IdentityMappingStoreService.ListIdentityMappingStores", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1.ListIdentityMappingStoresResponse", - "client": { - "shortName": "IdentityMappingStoreServiceClient", - "fullName": "google.cloud.discoveryengine.v1.IdentityMappingStoreServiceClient" - }, - "method": { - "shortName": "ListIdentityMappingStores", - "fullName": "google.cloud.discoveryengine.v1.IdentityMappingStoreService.ListIdentityMappingStores", - "service": { - "shortName": "IdentityMappingStoreService", - "fullName": "google.cloud.discoveryengine.v1.IdentityMappingStoreService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_ProjectService_ProvisionProject_async", - "title": "AssistantService provisionProject Sample", - "origin": "API_DEFINITION", - "description": " Provisions the project resource. During the process, related systems will get prepared and initialized. Caller must read the [Terms for data use](https://cloud.google.com/retail/data-use-terms), and optionally specify in request to provide consent to that service terms.", - "canonical": true, - "file": "project_service.provision_project.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ProvisionProject", - "fullName": "google.cloud.discoveryengine.v1.ProjectService.ProvisionProject", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "accept_data_use_terms", - "type": "TYPE_BOOL" - }, - { - "name": "data_use_terms_version", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ProjectServiceClient", - "fullName": "google.cloud.discoveryengine.v1.ProjectServiceClient" - }, - "method": { - "shortName": "ProvisionProject", - "fullName": "google.cloud.discoveryengine.v1.ProjectService.ProvisionProject", - "service": { - "shortName": "ProjectService", - "fullName": "google.cloud.discoveryengine.v1.ProjectService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_RankService_Rank_async", - "title": "AssistantService rank Sample", - "origin": "API_DEFINITION", - "description": " Ranks a list of text records based on the given input query.", - "canonical": true, - "file": "rank_service.rank.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 98, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Rank", - "fullName": "google.cloud.discoveryengine.v1.RankService.Rank", - "async": true, - "parameters": [ - { - "name": "ranking_config", - "type": "TYPE_STRING" - }, - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "top_n", - "type": "TYPE_INT32" - }, - { - "name": "query", - "type": "TYPE_STRING" - }, - { - "name": "records", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "ignore_record_details_in_response", - "type": "TYPE_BOOL" - }, - { - "name": "user_labels", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.discoveryengine.v1.RankResponse", - "client": { - "shortName": "RankServiceClient", - "fullName": "google.cloud.discoveryengine.v1.RankServiceClient" - }, - "method": { - "shortName": "Rank", - "fullName": "google.cloud.discoveryengine.v1.RankService.Rank", - "service": { - "shortName": "RankService", - "fullName": "google.cloud.discoveryengine.v1.RankService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_RecommendationService_Recommend_async", - "title": "AssistantService recommend Sample", - "origin": "API_DEFINITION", - "description": " Makes a recommendation, which requires a contextual user event.", - "canonical": true, - "file": "recommendation_service.recommend.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 167, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Recommend", - "fullName": "google.cloud.discoveryengine.v1.RecommendationService.Recommend", - "async": true, - "parameters": [ - { - "name": "serving_config", - "type": "TYPE_STRING" - }, - { - "name": "user_event", - "type": ".google.cloud.discoveryengine.v1.UserEvent" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "params", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "user_labels", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.discoveryengine.v1.RecommendResponse", - "client": { - "shortName": "RecommendationServiceClient", - "fullName": "google.cloud.discoveryengine.v1.RecommendationServiceClient" - }, - "method": { - "shortName": "Recommend", - "fullName": "google.cloud.discoveryengine.v1.RecommendationService.Recommend", - "service": { - "shortName": "RecommendationService", - "fullName": "google.cloud.discoveryengine.v1.RecommendationService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_SchemaService_GetSchema_async", - "title": "AssistantService getSchema Sample", - "origin": "API_DEFINITION", - "description": " Gets a [Schema][google.cloud.discoveryengine.v1.Schema].", - "canonical": true, - "file": "schema_service.get_schema.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSchema", - "fullName": "google.cloud.discoveryengine.v1.SchemaService.GetSchema", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1.Schema", - "client": { - "shortName": "SchemaServiceClient", - "fullName": "google.cloud.discoveryengine.v1.SchemaServiceClient" - }, - "method": { - "shortName": "GetSchema", - "fullName": "google.cloud.discoveryengine.v1.SchemaService.GetSchema", - "service": { - "shortName": "SchemaService", - "fullName": "google.cloud.discoveryengine.v1.SchemaService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_SchemaService_ListSchemas_async", - "title": "AssistantService listSchemas Sample", - "origin": "API_DEFINITION", - "description": " Gets a list of [Schema][google.cloud.discoveryengine.v1.Schema]s.", - "canonical": true, - "file": "schema_service.list_schemas.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSchemas", - "fullName": "google.cloud.discoveryengine.v1.SchemaService.ListSchemas", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1.ListSchemasResponse", - "client": { - "shortName": "SchemaServiceClient", - "fullName": "google.cloud.discoveryengine.v1.SchemaServiceClient" - }, - "method": { - "shortName": "ListSchemas", - "fullName": "google.cloud.discoveryengine.v1.SchemaService.ListSchemas", - "service": { - "shortName": "SchemaService", - "fullName": "google.cloud.discoveryengine.v1.SchemaService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_SchemaService_CreateSchema_async", - "title": "AssistantService createSchema Sample", - "origin": "API_DEFINITION", - "description": " Creates a [Schema][google.cloud.discoveryengine.v1.Schema].", - "canonical": true, - "file": "schema_service.create_schema.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSchema", - "fullName": "google.cloud.discoveryengine.v1.SchemaService.CreateSchema", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "schema", - "type": ".google.cloud.discoveryengine.v1.Schema" - }, - { - "name": "schema_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SchemaServiceClient", - "fullName": "google.cloud.discoveryengine.v1.SchemaServiceClient" - }, - "method": { - "shortName": "CreateSchema", - "fullName": "google.cloud.discoveryengine.v1.SchemaService.CreateSchema", - "service": { - "shortName": "SchemaService", - "fullName": "google.cloud.discoveryengine.v1.SchemaService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_SchemaService_UpdateSchema_async", - "title": "AssistantService updateSchema Sample", - "origin": "API_DEFINITION", - "description": " Updates a [Schema][google.cloud.discoveryengine.v1.Schema].", - "canonical": true, - "file": "schema_service.update_schema.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSchema", - "fullName": "google.cloud.discoveryengine.v1.SchemaService.UpdateSchema", - "async": true, - "parameters": [ - { - "name": "schema", - "type": ".google.cloud.discoveryengine.v1.Schema" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SchemaServiceClient", - "fullName": "google.cloud.discoveryengine.v1.SchemaServiceClient" - }, - "method": { - "shortName": "UpdateSchema", - "fullName": "google.cloud.discoveryengine.v1.SchemaService.UpdateSchema", - "service": { - "shortName": "SchemaService", - "fullName": "google.cloud.discoveryengine.v1.SchemaService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_SchemaService_DeleteSchema_async", - "title": "AssistantService deleteSchema Sample", - "origin": "API_DEFINITION", - "description": " Deletes a [Schema][google.cloud.discoveryengine.v1.Schema].", - "canonical": true, - "file": "schema_service.delete_schema.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSchema", - "fullName": "google.cloud.discoveryengine.v1.SchemaService.DeleteSchema", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SchemaServiceClient", - "fullName": "google.cloud.discoveryengine.v1.SchemaServiceClient" - }, - "method": { - "shortName": "DeleteSchema", - "fullName": "google.cloud.discoveryengine.v1.SchemaService.DeleteSchema", - "service": { - "shortName": "SchemaService", - "fullName": "google.cloud.discoveryengine.v1.SchemaService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_SearchService_Search_async", - "title": "AssistantService search Sample", - "origin": "API_DEFINITION", - "description": " Performs a search.", - "canonical": true, - "file": "search_service.search.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 427, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Search", - "fullName": "google.cloud.discoveryengine.v1.SearchService.Search", - "async": true, - "parameters": [ - { - "name": "serving_config", - "type": "TYPE_STRING" - }, - { - "name": "branch", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": "TYPE_STRING" - }, - { - "name": "page_categories", - "type": "TYPE_STRING[]" - }, - { - "name": "image_query", - "type": ".google.cloud.discoveryengine.v1.SearchRequest.ImageQuery" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "offset", - "type": "TYPE_INT32" - }, - { - "name": "one_box_page_size", - "type": "TYPE_INT32" - }, - { - "name": "data_store_specs", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "canonical_filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "user_info", - "type": ".google.cloud.discoveryengine.v1.UserInfo" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "facet_specs", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "boost_spec", - "type": ".google.cloud.discoveryengine.v1.SearchRequest.BoostSpec" - }, - { - "name": "params", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "query_expansion_spec", - "type": ".google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec" - }, - { - "name": "spell_correction_spec", - "type": ".google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec" - }, - { - "name": "user_pseudo_id", - "type": "TYPE_STRING" - }, - { - "name": "content_search_spec", - "type": ".google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec" - }, - { - "name": "ranking_expression", - "type": "TYPE_STRING" - }, - { - "name": "ranking_expression_backend", - "type": ".google.cloud.discoveryengine.v1.SearchRequest.RankingExpressionBackend" - }, - { - "name": "safe_search", - "type": "TYPE_BOOL" - }, - { - "name": "user_labels", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "natural_language_query_understanding_spec", - "type": ".google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec" - }, - { - "name": "search_as_you_type_spec", - "type": ".google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec" - }, - { - "name": "display_spec", - "type": ".google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec" - }, - { - "name": "crowding_specs", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "session", - "type": "TYPE_STRING" - }, - { - "name": "session_spec", - "type": ".google.cloud.discoveryengine.v1.SearchRequest.SessionSpec" - }, - { - "name": "relevance_threshold", - "type": ".google.cloud.discoveryengine.v1.SearchRequest.RelevanceThreshold" - }, - { - "name": "relevance_score_spec", - "type": ".google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec" - } - ], - "resultType": ".google.cloud.discoveryengine.v1.SearchResponse", - "client": { - "shortName": "SearchServiceClient", - "fullName": "google.cloud.discoveryengine.v1.SearchServiceClient" - }, - "method": { - "shortName": "Search", - "fullName": "google.cloud.discoveryengine.v1.SearchService.Search", - "service": { - "shortName": "SearchService", - "fullName": "google.cloud.discoveryengine.v1.SearchService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_SearchService_SearchLite_async", - "title": "AssistantService searchLite Sample", - "origin": "API_DEFINITION", - "description": " Performs a search. Similar to the [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search] method, but a lite version that allows API key for authentication, where OAuth and IAM checks are not required. Only public website search is supported by this method. If data stores and engines not associated with public website search are specified, a `FAILED_PRECONDITION` error is returned. This method can be used for easy onboarding without having to implement an authentication backend. However, it is strongly recommended to use [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search] instead with required OAuth and IAM checks to provide better data security.", - "canonical": true, - "file": "search_service.search_lite.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 427, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchLite", - "fullName": "google.cloud.discoveryengine.v1.SearchService.SearchLite", - "async": true, - "parameters": [ - { - "name": "serving_config", - "type": "TYPE_STRING" - }, - { - "name": "branch", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": "TYPE_STRING" - }, - { - "name": "page_categories", - "type": "TYPE_STRING[]" - }, - { - "name": "image_query", - "type": ".google.cloud.discoveryengine.v1.SearchRequest.ImageQuery" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "offset", - "type": "TYPE_INT32" - }, - { - "name": "one_box_page_size", - "type": "TYPE_INT32" - }, - { - "name": "data_store_specs", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "canonical_filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "user_info", - "type": ".google.cloud.discoveryengine.v1.UserInfo" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "facet_specs", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "boost_spec", - "type": ".google.cloud.discoveryengine.v1.SearchRequest.BoostSpec" - }, - { - "name": "params", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "query_expansion_spec", - "type": ".google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec" - }, - { - "name": "spell_correction_spec", - "type": ".google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec" - }, - { - "name": "user_pseudo_id", - "type": "TYPE_STRING" - }, - { - "name": "content_search_spec", - "type": ".google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec" - }, - { - "name": "ranking_expression", - "type": "TYPE_STRING" - }, - { - "name": "ranking_expression_backend", - "type": ".google.cloud.discoveryengine.v1.SearchRequest.RankingExpressionBackend" - }, - { - "name": "safe_search", - "type": "TYPE_BOOL" - }, - { - "name": "user_labels", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "natural_language_query_understanding_spec", - "type": ".google.cloud.discoveryengine.v1.SearchRequest.NaturalLanguageQueryUnderstandingSpec" - }, - { - "name": "search_as_you_type_spec", - "type": ".google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec" - }, - { - "name": "display_spec", - "type": ".google.cloud.discoveryengine.v1.SearchRequest.DisplaySpec" - }, - { - "name": "crowding_specs", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "session", - "type": "TYPE_STRING" - }, - { - "name": "session_spec", - "type": ".google.cloud.discoveryengine.v1.SearchRequest.SessionSpec" - }, - { - "name": "relevance_threshold", - "type": ".google.cloud.discoveryengine.v1.SearchRequest.RelevanceThreshold" - }, - { - "name": "relevance_score_spec", - "type": ".google.cloud.discoveryengine.v1.SearchRequest.RelevanceScoreSpec" - } - ], - "resultType": ".google.cloud.discoveryengine.v1.SearchResponse", - "client": { - "shortName": "SearchServiceClient", - "fullName": "google.cloud.discoveryengine.v1.SearchServiceClient" - }, - "method": { - "shortName": "SearchLite", - "fullName": "google.cloud.discoveryengine.v1.SearchService.SearchLite", - "service": { - "shortName": "SearchService", - "fullName": "google.cloud.discoveryengine.v1.SearchService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_SearchTuningService_TrainCustomModel_async", - "title": "AssistantService trainCustomModel Sample", - "origin": "API_DEFINITION", - "description": " Trains a custom model.", - "canonical": true, - "file": "search_tuning_service.train_custom_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TrainCustomModel", - "fullName": "google.cloud.discoveryengine.v1.SearchTuningService.TrainCustomModel", - "async": true, - "parameters": [ - { - "name": "gcs_training_input", - "type": ".google.cloud.discoveryengine.v1.TrainCustomModelRequest.GcsTrainingInput" - }, - { - "name": "data_store", - "type": "TYPE_STRING" - }, - { - "name": "model_type", - "type": "TYPE_STRING" - }, - { - "name": "error_config", - "type": ".google.cloud.discoveryengine.v1.ImportErrorConfig" - }, - { - "name": "model_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SearchTuningServiceClient", - "fullName": "google.cloud.discoveryengine.v1.SearchTuningServiceClient" - }, - "method": { - "shortName": "TrainCustomModel", - "fullName": "google.cloud.discoveryengine.v1.SearchTuningService.TrainCustomModel", - "service": { - "shortName": "SearchTuningService", - "fullName": "google.cloud.discoveryengine.v1.SearchTuningService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_SearchTuningService_ListCustomModels_async", - "title": "AssistantService listCustomModels Sample", - "origin": "API_DEFINITION", - "description": " Gets a list of all the custom models.", - "canonical": true, - "file": "search_tuning_service.list_custom_models.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCustomModels", - "fullName": "google.cloud.discoveryengine.v1.SearchTuningService.ListCustomModels", - "async": true, - "parameters": [ - { - "name": "data_store", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1.ListCustomModelsResponse", - "client": { - "shortName": "SearchTuningServiceClient", - "fullName": "google.cloud.discoveryengine.v1.SearchTuningServiceClient" - }, - "method": { - "shortName": "ListCustomModels", - "fullName": "google.cloud.discoveryengine.v1.SearchTuningService.ListCustomModels", - "service": { - "shortName": "SearchTuningService", - "fullName": "google.cloud.discoveryengine.v1.SearchTuningService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_ServingConfigService_UpdateServingConfig_async", - "title": "AssistantService updateServingConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates a ServingConfig. Returns a NOT_FOUND error if the ServingConfig does not exist.", - "canonical": true, - "file": "serving_config_service.update_serving_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateServingConfig", - "fullName": "google.cloud.discoveryengine.v1.ServingConfigService.UpdateServingConfig", - "async": true, - "parameters": [ - { - "name": "serving_config", - "type": ".google.cloud.discoveryengine.v1.ServingConfig" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.discoveryengine.v1.ServingConfig", - "client": { - "shortName": "ServingConfigServiceClient", - "fullName": "google.cloud.discoveryengine.v1.ServingConfigServiceClient" - }, - "method": { - "shortName": "UpdateServingConfig", - "fullName": "google.cloud.discoveryengine.v1.ServingConfigService.UpdateServingConfig", - "service": { - "shortName": "ServingConfigService", - "fullName": "google.cloud.discoveryengine.v1.ServingConfigService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_SessionService_CreateSession_async", - "title": "AssistantService createSession Sample", - "origin": "API_DEFINITION", - "description": " Creates a Session. If the [Session][google.cloud.discoveryengine.v1.Session] to create already exists, an ALREADY_EXISTS error is returned.", - "canonical": true, - "file": "session_service.create_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSession", - "fullName": "google.cloud.discoveryengine.v1.SessionService.CreateSession", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "session", - "type": ".google.cloud.discoveryengine.v1.Session" - } - ], - "resultType": ".google.cloud.discoveryengine.v1.Session", - "client": { - "shortName": "SessionServiceClient", - "fullName": "google.cloud.discoveryengine.v1.SessionServiceClient" - }, - "method": { - "shortName": "CreateSession", - "fullName": "google.cloud.discoveryengine.v1.SessionService.CreateSession", - "service": { - "shortName": "SessionService", - "fullName": "google.cloud.discoveryengine.v1.SessionService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_SessionService_DeleteSession_async", - "title": "AssistantService deleteSession Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Session. If the [Session][google.cloud.discoveryengine.v1.Session] to delete does not exist, a NOT_FOUND error is returned.", - "canonical": true, - "file": "session_service.delete_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSession", - "fullName": "google.cloud.discoveryengine.v1.SessionService.DeleteSession", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "SessionServiceClient", - "fullName": "google.cloud.discoveryengine.v1.SessionServiceClient" - }, - "method": { - "shortName": "DeleteSession", - "fullName": "google.cloud.discoveryengine.v1.SessionService.DeleteSession", - "service": { - "shortName": "SessionService", - "fullName": "google.cloud.discoveryengine.v1.SessionService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_SessionService_UpdateSession_async", - "title": "AssistantService updateSession Sample", - "origin": "API_DEFINITION", - "description": " Updates a Session. [Session][google.cloud.discoveryengine.v1.Session] action type cannot be changed. If the [Session][google.cloud.discoveryengine.v1.Session] to update does not exist, a NOT_FOUND error is returned.", - "canonical": true, - "file": "session_service.update_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSession", - "fullName": "google.cloud.discoveryengine.v1.SessionService.UpdateSession", - "async": true, - "parameters": [ - { - "name": "session", - "type": ".google.cloud.discoveryengine.v1.Session" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.discoveryengine.v1.Session", - "client": { - "shortName": "SessionServiceClient", - "fullName": "google.cloud.discoveryengine.v1.SessionServiceClient" - }, - "method": { - "shortName": "UpdateSession", - "fullName": "google.cloud.discoveryengine.v1.SessionService.UpdateSession", - "service": { - "shortName": "SessionService", - "fullName": "google.cloud.discoveryengine.v1.SessionService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_SessionService_GetSession_async", - "title": "AssistantService getSession Sample", - "origin": "API_DEFINITION", - "description": " Gets a Session.", - "canonical": true, - "file": "session_service.get_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSession", - "fullName": "google.cloud.discoveryengine.v1.SessionService.GetSession", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "include_answer_details", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.discoveryengine.v1.Session", - "client": { - "shortName": "SessionServiceClient", - "fullName": "google.cloud.discoveryengine.v1.SessionServiceClient" - }, - "method": { - "shortName": "GetSession", - "fullName": "google.cloud.discoveryengine.v1.SessionService.GetSession", - "service": { - "shortName": "SessionService", - "fullName": "google.cloud.discoveryengine.v1.SessionService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_SessionService_ListSessions_async", - "title": "AssistantService listSessions Sample", - "origin": "API_DEFINITION", - "description": " Lists all Sessions by their parent [DataStore][google.cloud.discoveryengine.v1.DataStore].", - "canonical": true, - "file": "session_service.list_sessions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 100, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSessions", - "fullName": "google.cloud.discoveryengine.v1.SessionService.ListSessions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1.ListSessionsResponse", - "client": { - "shortName": "SessionServiceClient", - "fullName": "google.cloud.discoveryengine.v1.SessionServiceClient" - }, - "method": { - "shortName": "ListSessions", - "fullName": "google.cloud.discoveryengine.v1.SessionService.ListSessions", - "service": { - "shortName": "SessionService", - "fullName": "google.cloud.discoveryengine.v1.SessionService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_SiteSearchEngineService_GetSiteSearchEngine_async", - "title": "AssistantService getSiteSearchEngine Sample", - "origin": "API_DEFINITION", - "description": " Gets the [SiteSearchEngine][google.cloud.discoveryengine.v1.SiteSearchEngine].", - "canonical": true, - "file": "site_search_engine_service.get_site_search_engine.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSiteSearchEngine", - "fullName": "google.cloud.discoveryengine.v1.SiteSearchEngineService.GetSiteSearchEngine", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1.SiteSearchEngine", - "client": { - "shortName": "SiteSearchEngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1.SiteSearchEngineServiceClient" - }, - "method": { - "shortName": "GetSiteSearchEngine", - "fullName": "google.cloud.discoveryengine.v1.SiteSearchEngineService.GetSiteSearchEngine", - "service": { - "shortName": "SiteSearchEngineService", - "fullName": "google.cloud.discoveryengine.v1.SiteSearchEngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_SiteSearchEngineService_CreateTargetSite_async", - "title": "AssistantService createTargetSite Sample", - "origin": "API_DEFINITION", - "description": " Creates a [TargetSite][google.cloud.discoveryengine.v1.TargetSite].", - "canonical": true, - "file": "site_search_engine_service.create_target_site.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTargetSite", - "fullName": "google.cloud.discoveryengine.v1.SiteSearchEngineService.CreateTargetSite", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "target_site", - "type": ".google.cloud.discoveryengine.v1.TargetSite" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SiteSearchEngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1.SiteSearchEngineServiceClient" - }, - "method": { - "shortName": "CreateTargetSite", - "fullName": "google.cloud.discoveryengine.v1.SiteSearchEngineService.CreateTargetSite", - "service": { - "shortName": "SiteSearchEngineService", - "fullName": "google.cloud.discoveryengine.v1.SiteSearchEngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_SiteSearchEngineService_BatchCreateTargetSites_async", - "title": "AssistantService batchCreateTargetSites Sample", - "origin": "API_DEFINITION", - "description": " Creates [TargetSite][google.cloud.discoveryengine.v1.TargetSite] in a batch.", - "canonical": true, - "file": "site_search_engine_service.batch_create_target_sites.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCreateTargetSites", - "fullName": "google.cloud.discoveryengine.v1.SiteSearchEngineService.BatchCreateTargetSites", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SiteSearchEngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1.SiteSearchEngineServiceClient" - }, - "method": { - "shortName": "BatchCreateTargetSites", - "fullName": "google.cloud.discoveryengine.v1.SiteSearchEngineService.BatchCreateTargetSites", - "service": { - "shortName": "SiteSearchEngineService", - "fullName": "google.cloud.discoveryengine.v1.SiteSearchEngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_SiteSearchEngineService_GetTargetSite_async", - "title": "AssistantService getTargetSite Sample", - "origin": "API_DEFINITION", - "description": " Gets a [TargetSite][google.cloud.discoveryengine.v1.TargetSite].", - "canonical": true, - "file": "site_search_engine_service.get_target_site.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTargetSite", - "fullName": "google.cloud.discoveryengine.v1.SiteSearchEngineService.GetTargetSite", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1.TargetSite", - "client": { - "shortName": "SiteSearchEngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1.SiteSearchEngineServiceClient" - }, - "method": { - "shortName": "GetTargetSite", - "fullName": "google.cloud.discoveryengine.v1.SiteSearchEngineService.GetTargetSite", - "service": { - "shortName": "SiteSearchEngineService", - "fullName": "google.cloud.discoveryengine.v1.SiteSearchEngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_SiteSearchEngineService_UpdateTargetSite_async", - "title": "AssistantService updateTargetSite Sample", - "origin": "API_DEFINITION", - "description": " Updates a [TargetSite][google.cloud.discoveryengine.v1.TargetSite].", - "canonical": true, - "file": "site_search_engine_service.update_target_site.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTargetSite", - "fullName": "google.cloud.discoveryengine.v1.SiteSearchEngineService.UpdateTargetSite", - "async": true, - "parameters": [ - { - "name": "target_site", - "type": ".google.cloud.discoveryengine.v1.TargetSite" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SiteSearchEngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1.SiteSearchEngineServiceClient" - }, - "method": { - "shortName": "UpdateTargetSite", - "fullName": "google.cloud.discoveryengine.v1.SiteSearchEngineService.UpdateTargetSite", - "service": { - "shortName": "SiteSearchEngineService", - "fullName": "google.cloud.discoveryengine.v1.SiteSearchEngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_SiteSearchEngineService_DeleteTargetSite_async", - "title": "AssistantService deleteTargetSite Sample", - "origin": "API_DEFINITION", - "description": " Deletes a [TargetSite][google.cloud.discoveryengine.v1.TargetSite].", - "canonical": true, - "file": "site_search_engine_service.delete_target_site.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTargetSite", - "fullName": "google.cloud.discoveryengine.v1.SiteSearchEngineService.DeleteTargetSite", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SiteSearchEngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1.SiteSearchEngineServiceClient" - }, - "method": { - "shortName": "DeleteTargetSite", - "fullName": "google.cloud.discoveryengine.v1.SiteSearchEngineService.DeleteTargetSite", - "service": { - "shortName": "SiteSearchEngineService", - "fullName": "google.cloud.discoveryengine.v1.SiteSearchEngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_SiteSearchEngineService_ListTargetSites_async", - "title": "AssistantService listTargetSites Sample", - "origin": "API_DEFINITION", - "description": " Gets a list of [TargetSite][google.cloud.discoveryengine.v1.TargetSite]s.", - "canonical": true, - "file": "site_search_engine_service.list_target_sites.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTargetSites", - "fullName": "google.cloud.discoveryengine.v1.SiteSearchEngineService.ListTargetSites", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1.ListTargetSitesResponse", - "client": { - "shortName": "SiteSearchEngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1.SiteSearchEngineServiceClient" - }, - "method": { - "shortName": "ListTargetSites", - "fullName": "google.cloud.discoveryengine.v1.SiteSearchEngineService.ListTargetSites", - "service": { - "shortName": "SiteSearchEngineService", - "fullName": "google.cloud.discoveryengine.v1.SiteSearchEngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_SiteSearchEngineService_CreateSitemap_async", - "title": "AssistantService createSitemap Sample", - "origin": "API_DEFINITION", - "description": " Creates a [Sitemap][google.cloud.discoveryengine.v1.Sitemap].", - "canonical": true, - "file": "site_search_engine_service.create_sitemap.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSitemap", - "fullName": "google.cloud.discoveryengine.v1.SiteSearchEngineService.CreateSitemap", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "sitemap", - "type": ".google.cloud.discoveryengine.v1.Sitemap" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SiteSearchEngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1.SiteSearchEngineServiceClient" - }, - "method": { - "shortName": "CreateSitemap", - "fullName": "google.cloud.discoveryengine.v1.SiteSearchEngineService.CreateSitemap", - "service": { - "shortName": "SiteSearchEngineService", - "fullName": "google.cloud.discoveryengine.v1.SiteSearchEngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_SiteSearchEngineService_DeleteSitemap_async", - "title": "AssistantService deleteSitemap Sample", - "origin": "API_DEFINITION", - "description": " Deletes a [Sitemap][google.cloud.discoveryengine.v1.Sitemap].", - "canonical": true, - "file": "site_search_engine_service.delete_sitemap.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSitemap", - "fullName": "google.cloud.discoveryengine.v1.SiteSearchEngineService.DeleteSitemap", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SiteSearchEngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1.SiteSearchEngineServiceClient" - }, - "method": { - "shortName": "DeleteSitemap", - "fullName": "google.cloud.discoveryengine.v1.SiteSearchEngineService.DeleteSitemap", - "service": { - "shortName": "SiteSearchEngineService", - "fullName": "google.cloud.discoveryengine.v1.SiteSearchEngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_SiteSearchEngineService_FetchSitemaps_async", - "title": "AssistantService fetchSitemaps Sample", - "origin": "API_DEFINITION", - "description": " Fetch [Sitemap][google.cloud.discoveryengine.v1.Sitemap]s in a [DataStore][google.cloud.discoveryengine.v1.DataStore].", - "canonical": true, - "file": "site_search_engine_service.fetch_sitemaps.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchSitemaps", - "fullName": "google.cloud.discoveryengine.v1.SiteSearchEngineService.FetchSitemaps", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "matcher", - "type": ".google.cloud.discoveryengine.v1.FetchSitemapsRequest.Matcher" - } - ], - "resultType": ".google.cloud.discoveryengine.v1.FetchSitemapsResponse", - "client": { - "shortName": "SiteSearchEngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1.SiteSearchEngineServiceClient" - }, - "method": { - "shortName": "FetchSitemaps", - "fullName": "google.cloud.discoveryengine.v1.SiteSearchEngineService.FetchSitemaps", - "service": { - "shortName": "SiteSearchEngineService", - "fullName": "google.cloud.discoveryengine.v1.SiteSearchEngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_SiteSearchEngineService_EnableAdvancedSiteSearch_async", - "title": "AssistantService enableAdvancedSiteSearch Sample", - "origin": "API_DEFINITION", - "description": " Upgrade from basic site search to advanced site search.", - "canonical": true, - "file": "site_search_engine_service.enable_advanced_site_search.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "EnableAdvancedSiteSearch", - "fullName": "google.cloud.discoveryengine.v1.SiteSearchEngineService.EnableAdvancedSiteSearch", - "async": true, - "parameters": [ - { - "name": "site_search_engine", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SiteSearchEngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1.SiteSearchEngineServiceClient" - }, - "method": { - "shortName": "EnableAdvancedSiteSearch", - "fullName": "google.cloud.discoveryengine.v1.SiteSearchEngineService.EnableAdvancedSiteSearch", - "service": { - "shortName": "SiteSearchEngineService", - "fullName": "google.cloud.discoveryengine.v1.SiteSearchEngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_SiteSearchEngineService_DisableAdvancedSiteSearch_async", - "title": "AssistantService disableAdvancedSiteSearch Sample", - "origin": "API_DEFINITION", - "description": " Downgrade from advanced site search to basic site search.", - "canonical": true, - "file": "site_search_engine_service.disable_advanced_site_search.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DisableAdvancedSiteSearch", - "fullName": "google.cloud.discoveryengine.v1.SiteSearchEngineService.DisableAdvancedSiteSearch", - "async": true, - "parameters": [ - { - "name": "site_search_engine", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SiteSearchEngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1.SiteSearchEngineServiceClient" - }, - "method": { - "shortName": "DisableAdvancedSiteSearch", - "fullName": "google.cloud.discoveryengine.v1.SiteSearchEngineService.DisableAdvancedSiteSearch", - "service": { - "shortName": "SiteSearchEngineService", - "fullName": "google.cloud.discoveryengine.v1.SiteSearchEngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_SiteSearchEngineService_RecrawlUris_async", - "title": "AssistantService recrawlUris Sample", - "origin": "API_DEFINITION", - "description": " Request on-demand recrawl for a list of URIs.", - "canonical": true, - "file": "site_search_engine_service.recrawl_uris.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RecrawlUris", - "fullName": "google.cloud.discoveryengine.v1.SiteSearchEngineService.RecrawlUris", - "async": true, - "parameters": [ - { - "name": "site_search_engine", - "type": "TYPE_STRING" - }, - { - "name": "uris", - "type": "TYPE_STRING[]" - }, - { - "name": "site_credential", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SiteSearchEngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1.SiteSearchEngineServiceClient" - }, - "method": { - "shortName": "RecrawlUris", - "fullName": "google.cloud.discoveryengine.v1.SiteSearchEngineService.RecrawlUris", - "service": { - "shortName": "SiteSearchEngineService", - "fullName": "google.cloud.discoveryengine.v1.SiteSearchEngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_SiteSearchEngineService_BatchVerifyTargetSites_async", - "title": "AssistantService batchVerifyTargetSites Sample", - "origin": "API_DEFINITION", - "description": " Verify target sites' ownership and validity. This API sends all the target sites under site search engine for verification.", - "canonical": true, - "file": "site_search_engine_service.batch_verify_target_sites.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchVerifyTargetSites", - "fullName": "google.cloud.discoveryengine.v1.SiteSearchEngineService.BatchVerifyTargetSites", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SiteSearchEngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1.SiteSearchEngineServiceClient" - }, - "method": { - "shortName": "BatchVerifyTargetSites", - "fullName": "google.cloud.discoveryengine.v1.SiteSearchEngineService.BatchVerifyTargetSites", - "service": { - "shortName": "SiteSearchEngineService", - "fullName": "google.cloud.discoveryengine.v1.SiteSearchEngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_SiteSearchEngineService_FetchDomainVerificationStatus_async", - "title": "AssistantService fetchDomainVerificationStatus Sample", - "origin": "API_DEFINITION", - "description": " Returns list of target sites with its domain verification status. This method can only be called under data store with BASIC_SITE_SEARCH state at the moment.", - "canonical": true, - "file": "site_search_engine_service.fetch_domain_verification_status.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchDomainVerificationStatus", - "fullName": "google.cloud.discoveryengine.v1.SiteSearchEngineService.FetchDomainVerificationStatus", - "async": true, - "parameters": [ - { - "name": "site_search_engine", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1.FetchDomainVerificationStatusResponse", - "client": { - "shortName": "SiteSearchEngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1.SiteSearchEngineServiceClient" - }, - "method": { - "shortName": "FetchDomainVerificationStatus", - "fullName": "google.cloud.discoveryengine.v1.SiteSearchEngineService.FetchDomainVerificationStatus", - "service": { - "shortName": "SiteSearchEngineService", - "fullName": "google.cloud.discoveryengine.v1.SiteSearchEngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_UserEventService_WriteUserEvent_async", - "title": "AssistantService writeUserEvent Sample", - "origin": "API_DEFINITION", - "description": " Writes a single user event.", - "canonical": true, - "file": "user_event_service.write_user_event.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "WriteUserEvent", - "fullName": "google.cloud.discoveryengine.v1.UserEventService.WriteUserEvent", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "user_event", - "type": ".google.cloud.discoveryengine.v1.UserEvent" - }, - { - "name": "write_async", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.discoveryengine.v1.UserEvent", - "client": { - "shortName": "UserEventServiceClient", - "fullName": "google.cloud.discoveryengine.v1.UserEventServiceClient" - }, - "method": { - "shortName": "WriteUserEvent", - "fullName": "google.cloud.discoveryengine.v1.UserEventService.WriteUserEvent", - "service": { - "shortName": "UserEventService", - "fullName": "google.cloud.discoveryengine.v1.UserEventService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_UserEventService_CollectUserEvent_async", - "title": "AssistantService collectUserEvent Sample", - "origin": "API_DEFINITION", - "description": " Writes a single user event from the browser. This uses a GET request to due to browser restriction of POST-ing to a third-party domain. This method is used only by the Discovery Engine API JavaScript pixel and Google Tag Manager. Users should not call this method directly.", - "canonical": true, - "file": "user_event_service.collect_user_event.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CollectUserEvent", - "fullName": "google.cloud.discoveryengine.v1.UserEventService.CollectUserEvent", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "user_event", - "type": "TYPE_STRING" - }, - { - "name": "uri", - "type": "TYPE_STRING" - }, - { - "name": "ets", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.api.HttpBody", - "client": { - "shortName": "UserEventServiceClient", - "fullName": "google.cloud.discoveryengine.v1.UserEventServiceClient" - }, - "method": { - "shortName": "CollectUserEvent", - "fullName": "google.cloud.discoveryengine.v1.UserEventService.CollectUserEvent", - "service": { - "shortName": "UserEventService", - "fullName": "google.cloud.discoveryengine.v1.UserEventService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_UserEventService_PurgeUserEvents_async", - "title": "AssistantService purgeUserEvents Sample", - "origin": "API_DEFINITION", - "description": " Deletes permanently all user events specified by the filter provided. Depending on the number of events specified by the filter, this operation could take hours or days to complete. To test a filter, use the list command first.", - "canonical": true, - "file": "user_event_service.purge_user_events.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 93, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PurgeUserEvents", - "fullName": "google.cloud.discoveryengine.v1.UserEventService.PurgeUserEvents", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "UserEventServiceClient", - "fullName": "google.cloud.discoveryengine.v1.UserEventServiceClient" - }, - "method": { - "shortName": "PurgeUserEvents", - "fullName": "google.cloud.discoveryengine.v1.UserEventService.PurgeUserEvents", - "service": { - "shortName": "UserEventService", - "fullName": "google.cloud.discoveryengine.v1.UserEventService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_UserEventService_ImportUserEvents_async", - "title": "AssistantService importUserEvents Sample", - "origin": "API_DEFINITION", - "description": " Bulk import of user events. Request processing might be synchronous. Events that already exist are skipped. Use this method for backfilling historical user events. Operation.response is of type ImportResponse. Note that it is possible for a subset of the items to be successfully inserted. Operation.metadata is of type ImportMetadata.", - "canonical": true, - "file": "user_event_service.import_user_events.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportUserEvents", - "fullName": "google.cloud.discoveryengine.v1.UserEventService.ImportUserEvents", - "async": true, - "parameters": [ - { - "name": "inline_source", - "type": ".google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource" - }, - { - "name": "gcs_source", - "type": ".google.cloud.discoveryengine.v1.GcsSource" - }, - { - "name": "bigquery_source", - "type": ".google.cloud.discoveryengine.v1.BigQuerySource" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "error_config", - "type": ".google.cloud.discoveryengine.v1.ImportErrorConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "UserEventServiceClient", - "fullName": "google.cloud.discoveryengine.v1.UserEventServiceClient" - }, - "method": { - "shortName": "ImportUserEvents", - "fullName": "google.cloud.discoveryengine.v1.UserEventService.ImportUserEvents", - "service": { - "shortName": "UserEventService", - "fullName": "google.cloud.discoveryengine.v1.UserEventService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_UserLicenseService_ListUserLicenses_async", - "title": "AssistantService listUserLicenses Sample", - "origin": "API_DEFINITION", - "description": " Lists the User Licenses.", - "canonical": true, - "file": "user_license_service.list_user_licenses.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListUserLicenses", - "fullName": "google.cloud.discoveryengine.v1.UserLicenseService.ListUserLicenses", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1.ListUserLicensesResponse", - "client": { - "shortName": "UserLicenseServiceClient", - "fullName": "google.cloud.discoveryengine.v1.UserLicenseServiceClient" - }, - "method": { - "shortName": "ListUserLicenses", - "fullName": "google.cloud.discoveryengine.v1.UserLicenseService.ListUserLicenses", - "service": { - "shortName": "UserLicenseService", - "fullName": "google.cloud.discoveryengine.v1.UserLicenseService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1_generated_UserLicenseService_BatchUpdateUserLicenses_async", - "title": "AssistantService batchUpdateUserLicenses Sample", - "origin": "API_DEFINITION", - "description": " Updates the User License. This method is used for batch assign/unassign licenses to users.", - "canonical": true, - "file": "user_license_service.batch_update_user_licenses.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchUpdateUserLicenses", - "fullName": "google.cloud.discoveryengine.v1.UserLicenseService.BatchUpdateUserLicenses", - "async": true, - "parameters": [ - { - "name": "inline_source", - "type": ".google.cloud.discoveryengine.v1.BatchUpdateUserLicensesRequest.InlineSource" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "delete_unassigned_user_licenses", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "UserLicenseServiceClient", - "fullName": "google.cloud.discoveryengine.v1.UserLicenseServiceClient" - }, - "method": { - "shortName": "BatchUpdateUserLicenses", - "fullName": "google.cloud.discoveryengine.v1.UserLicenseService.BatchUpdateUserLicenses", - "service": { - "shortName": "UserLicenseService", - "fullName": "google.cloud.discoveryengine.v1.UserLicenseService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-discoveryengine/samples/generated/v1alpha/snippet_metadata_google.cloud.discoveryengine.v1alpha.json b/packages/google-cloud-discoveryengine/samples/generated/v1alpha/snippet_metadata_google.cloud.discoveryengine.v1alpha.json deleted file mode 100644 index 63a21df94a2b..000000000000 --- a/packages/google-cloud-discoveryengine/samples/generated/v1alpha/snippet_metadata_google.cloud.discoveryengine.v1alpha.json +++ /dev/null @@ -1,5167 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-discoveryengine", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.discoveryengine.v1alpha", - "version": "v1alpha" - } - ] - }, - "snippets": [ - { - "regionTag": "discoveryengine_v1alpha_generated_AclConfigService_UpdateAclConfig_async", - "title": "AclConfigService updateAclConfig Sample", - "origin": "API_DEFINITION", - "description": " Default ACL configuration for use in a location of a customer's project. Updates will only reflect to new data stores. Existing data stores will still use the old value.", - "canonical": true, - "file": "acl_config_service.update_acl_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 52, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAclConfig", - "fullName": "google.cloud.discoveryengine.v1alpha.AclConfigService.UpdateAclConfig", - "async": true, - "parameters": [ - { - "name": "acl_config", - "type": ".google.cloud.discoveryengine.v1alpha.AclConfig" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.AclConfig", - "client": { - "shortName": "AclConfigServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.AclConfigServiceClient" - }, - "method": { - "shortName": "UpdateAclConfig", - "fullName": "google.cloud.discoveryengine.v1alpha.AclConfigService.UpdateAclConfig", - "service": { - "shortName": "AclConfigService", - "fullName": "google.cloud.discoveryengine.v1alpha.AclConfigService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_AclConfigService_GetAclConfig_async", - "title": "AclConfigService getAclConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets the [AclConfig][google.cloud.discoveryengine.v1alpha.AclConfig].", - "canonical": true, - "file": "acl_config_service.get_acl_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAclConfig", - "fullName": "google.cloud.discoveryengine.v1alpha.AclConfigService.GetAclConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.AclConfig", - "client": { - "shortName": "AclConfigServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.AclConfigServiceClient" - }, - "method": { - "shortName": "GetAclConfig", - "fullName": "google.cloud.discoveryengine.v1alpha.AclConfigService.GetAclConfig", - "service": { - "shortName": "AclConfigService", - "fullName": "google.cloud.discoveryengine.v1alpha.AclConfigService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_ChunkService_GetChunk_async", - "title": "AclConfigService getChunk Sample", - "origin": "API_DEFINITION", - "description": " Gets a [Document][google.cloud.discoveryengine.v1alpha.Document].", - "canonical": true, - "file": "chunk_service.get_chunk.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetChunk", - "fullName": "google.cloud.discoveryengine.v1alpha.ChunkService.GetChunk", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.Chunk", - "client": { - "shortName": "ChunkServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.ChunkServiceClient" - }, - "method": { - "shortName": "GetChunk", - "fullName": "google.cloud.discoveryengine.v1alpha.ChunkService.GetChunk", - "service": { - "shortName": "ChunkService", - "fullName": "google.cloud.discoveryengine.v1alpha.ChunkService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_ChunkService_ListChunks_async", - "title": "AclConfigService listChunks Sample", - "origin": "API_DEFINITION", - "description": " Gets a list of [Chunk][google.cloud.discoveryengine.v1alpha.Chunk]s.", - "canonical": true, - "file": "chunk_service.list_chunks.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListChunks", - "fullName": "google.cloud.discoveryengine.v1alpha.ChunkService.ListChunks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.ListChunksResponse", - "client": { - "shortName": "ChunkServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.ChunkServiceClient" - }, - "method": { - "shortName": "ListChunks", - "fullName": "google.cloud.discoveryengine.v1alpha.ChunkService.ListChunks", - "service": { - "shortName": "ChunkService", - "fullName": "google.cloud.discoveryengine.v1alpha.ChunkService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_CompletionService_CompleteQuery_async", - "title": "AclConfigService completeQuery Sample", - "origin": "API_DEFINITION", - "description": " Completes the specified user input with keyword suggestions.", - "canonical": true, - "file": "completion_service.complete_query.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 99, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CompleteQuery", - "fullName": "google.cloud.discoveryengine.v1alpha.CompletionService.CompleteQuery", - "async": true, - "parameters": [ - { - "name": "data_store", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": "TYPE_STRING" - }, - { - "name": "query_model", - "type": "TYPE_STRING" - }, - { - "name": "user_pseudo_id", - "type": "TYPE_STRING" - }, - { - "name": "include_tail_suggestions", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.CompleteQueryResponse", - "client": { - "shortName": "CompletionServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.CompletionServiceClient" - }, - "method": { - "shortName": "CompleteQuery", - "fullName": "google.cloud.discoveryengine.v1alpha.CompletionService.CompleteQuery", - "service": { - "shortName": "CompletionService", - "fullName": "google.cloud.discoveryengine.v1alpha.CompletionService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_CompletionService_ImportSuggestionDenyListEntries_async", - "title": "AclConfigService importSuggestionDenyListEntries Sample", - "origin": "API_DEFINITION", - "description": " Imports all [SuggestionDenyListEntry][google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry] for a DataStore.", - "canonical": true, - "file": "completion_service.import_suggestion_deny_list_entries.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportSuggestionDenyListEntries", - "fullName": "google.cloud.discoveryengine.v1alpha.CompletionService.ImportSuggestionDenyListEntries", - "async": true, - "parameters": [ - { - "name": "inline_source", - "type": ".google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest.InlineSource" - }, - { - "name": "gcs_source", - "type": ".google.cloud.discoveryengine.v1alpha.GcsSource" - }, - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CompletionServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.CompletionServiceClient" - }, - "method": { - "shortName": "ImportSuggestionDenyListEntries", - "fullName": "google.cloud.discoveryengine.v1alpha.CompletionService.ImportSuggestionDenyListEntries", - "service": { - "shortName": "CompletionService", - "fullName": "google.cloud.discoveryengine.v1alpha.CompletionService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_CompletionService_PurgeSuggestionDenyListEntries_async", - "title": "AclConfigService purgeSuggestionDenyListEntries Sample", - "origin": "API_DEFINITION", - "description": " Permanently deletes all [SuggestionDenyListEntry][google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry] for a DataStore.", - "canonical": true, - "file": "completion_service.purge_suggestion_deny_list_entries.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PurgeSuggestionDenyListEntries", - "fullName": "google.cloud.discoveryengine.v1alpha.CompletionService.PurgeSuggestionDenyListEntries", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CompletionServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.CompletionServiceClient" - }, - "method": { - "shortName": "PurgeSuggestionDenyListEntries", - "fullName": "google.cloud.discoveryengine.v1alpha.CompletionService.PurgeSuggestionDenyListEntries", - "service": { - "shortName": "CompletionService", - "fullName": "google.cloud.discoveryengine.v1alpha.CompletionService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_CompletionService_ImportCompletionSuggestions_async", - "title": "AclConfigService importCompletionSuggestions Sample", - "origin": "API_DEFINITION", - "description": " Imports [CompletionSuggestion][google.cloud.discoveryengine.v1alpha.CompletionSuggestion]s for a DataStore.", - "canonical": true, - "file": "completion_service.import_completion_suggestions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportCompletionSuggestions", - "fullName": "google.cloud.discoveryengine.v1alpha.CompletionService.ImportCompletionSuggestions", - "async": true, - "parameters": [ - { - "name": "inline_source", - "type": ".google.cloud.discoveryengine.v1alpha.ImportCompletionSuggestionsRequest.InlineSource" - }, - { - "name": "gcs_source", - "type": ".google.cloud.discoveryengine.v1alpha.GcsSource" - }, - { - "name": "bigquery_source", - "type": ".google.cloud.discoveryengine.v1alpha.BigQuerySource" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "error_config", - "type": ".google.cloud.discoveryengine.v1alpha.ImportErrorConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CompletionServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.CompletionServiceClient" - }, - "method": { - "shortName": "ImportCompletionSuggestions", - "fullName": "google.cloud.discoveryengine.v1alpha.CompletionService.ImportCompletionSuggestions", - "service": { - "shortName": "CompletionService", - "fullName": "google.cloud.discoveryengine.v1alpha.CompletionService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_CompletionService_PurgeCompletionSuggestions_async", - "title": "AclConfigService purgeCompletionSuggestions Sample", - "origin": "API_DEFINITION", - "description": " Permanently deletes all [CompletionSuggestion][google.cloud.discoveryengine.v1alpha.CompletionSuggestion]s for a DataStore.", - "canonical": true, - "file": "completion_service.purge_completion_suggestions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PurgeCompletionSuggestions", - "fullName": "google.cloud.discoveryengine.v1alpha.CompletionService.PurgeCompletionSuggestions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CompletionServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.CompletionServiceClient" - }, - "method": { - "shortName": "PurgeCompletionSuggestions", - "fullName": "google.cloud.discoveryengine.v1alpha.CompletionService.PurgeCompletionSuggestions", - "service": { - "shortName": "CompletionService", - "fullName": "google.cloud.discoveryengine.v1alpha.CompletionService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_ControlService_CreateControl_async", - "title": "AclConfigService createControl Sample", - "origin": "API_DEFINITION", - "description": " Creates a Control. By default 1000 controls are allowed for a data store. A request can be submitted to adjust this limit. If the [Control][google.cloud.discoveryengine.v1alpha.Control] to create already exists, an ALREADY_EXISTS error is returned.", - "canonical": true, - "file": "control_service.create_control.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateControl", - "fullName": "google.cloud.discoveryengine.v1alpha.ControlService.CreateControl", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "control", - "type": ".google.cloud.discoveryengine.v1alpha.Control" - }, - { - "name": "control_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.Control", - "client": { - "shortName": "ControlServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.ControlServiceClient" - }, - "method": { - "shortName": "CreateControl", - "fullName": "google.cloud.discoveryengine.v1alpha.ControlService.CreateControl", - "service": { - "shortName": "ControlService", - "fullName": "google.cloud.discoveryengine.v1alpha.ControlService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_ControlService_DeleteControl_async", - "title": "AclConfigService deleteControl Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Control. If the [Control][google.cloud.discoveryengine.v1alpha.Control] to delete does not exist, a NOT_FOUND error is returned.", - "canonical": true, - "file": "control_service.delete_control.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteControl", - "fullName": "google.cloud.discoveryengine.v1alpha.ControlService.DeleteControl", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ControlServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.ControlServiceClient" - }, - "method": { - "shortName": "DeleteControl", - "fullName": "google.cloud.discoveryengine.v1alpha.ControlService.DeleteControl", - "service": { - "shortName": "ControlService", - "fullName": "google.cloud.discoveryengine.v1alpha.ControlService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_ControlService_UpdateControl_async", - "title": "AclConfigService updateControl Sample", - "origin": "API_DEFINITION", - "description": " Updates a Control. [Control][google.cloud.discoveryengine.v1alpha.Control] action type cannot be changed. If the [Control][google.cloud.discoveryengine.v1alpha.Control] to update does not exist, a NOT_FOUND error is returned.", - "canonical": true, - "file": "control_service.update_control.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateControl", - "fullName": "google.cloud.discoveryengine.v1alpha.ControlService.UpdateControl", - "async": true, - "parameters": [ - { - "name": "control", - "type": ".google.cloud.discoveryengine.v1alpha.Control" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.Control", - "client": { - "shortName": "ControlServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.ControlServiceClient" - }, - "method": { - "shortName": "UpdateControl", - "fullName": "google.cloud.discoveryengine.v1alpha.ControlService.UpdateControl", - "service": { - "shortName": "ControlService", - "fullName": "google.cloud.discoveryengine.v1alpha.ControlService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_ControlService_GetControl_async", - "title": "AclConfigService getControl Sample", - "origin": "API_DEFINITION", - "description": " Gets a Control.", - "canonical": true, - "file": "control_service.get_control.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetControl", - "fullName": "google.cloud.discoveryengine.v1alpha.ControlService.GetControl", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.Control", - "client": { - "shortName": "ControlServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.ControlServiceClient" - }, - "method": { - "shortName": "GetControl", - "fullName": "google.cloud.discoveryengine.v1alpha.ControlService.GetControl", - "service": { - "shortName": "ControlService", - "fullName": "google.cloud.discoveryengine.v1alpha.ControlService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_ControlService_ListControls_async", - "title": "AclConfigService listControls Sample", - "origin": "API_DEFINITION", - "description": " Lists all Controls by their parent [DataStore][google.cloud.discoveryengine.v1alpha.DataStore].", - "canonical": true, - "file": "control_service.list_controls.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListControls", - "fullName": "google.cloud.discoveryengine.v1alpha.ControlService.ListControls", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.ListControlsResponse", - "client": { - "shortName": "ControlServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.ControlServiceClient" - }, - "method": { - "shortName": "ListControls", - "fullName": "google.cloud.discoveryengine.v1alpha.ControlService.ListControls", - "service": { - "shortName": "ControlService", - "fullName": "google.cloud.discoveryengine.v1alpha.ControlService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_ConversationalSearchService_ConverseConversation_async", - "title": "AclConfigService converseConversation Sample", - "origin": "API_DEFINITION", - "description": " Converses a conversation.", - "canonical": true, - "file": "conversational_search_service.converse_conversation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 123, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ConverseConversation", - "fullName": "google.cloud.discoveryengine.v1alpha.ConversationalSearchService.ConverseConversation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": ".google.cloud.discoveryengine.v1alpha.TextInput" - }, - { - "name": "serving_config", - "type": "TYPE_STRING" - }, - { - "name": "conversation", - "type": ".google.cloud.discoveryengine.v1alpha.Conversation" - }, - { - "name": "safe_search", - "type": "TYPE_BOOL" - }, - { - "name": "user_labels", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "summary_spec", - "type": ".google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SummarySpec" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "boost_spec", - "type": ".google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.ConverseConversationResponse", - "client": { - "shortName": "ConversationalSearchServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceClient" - }, - "method": { - "shortName": "ConverseConversation", - "fullName": "google.cloud.discoveryengine.v1alpha.ConversationalSearchService.ConverseConversation", - "service": { - "shortName": "ConversationalSearchService", - "fullName": "google.cloud.discoveryengine.v1alpha.ConversationalSearchService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_ConversationalSearchService_CreateConversation_async", - "title": "AclConfigService createConversation Sample", - "origin": "API_DEFINITION", - "description": " Creates a Conversation. If the [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to create already exists, an ALREADY_EXISTS error is returned.", - "canonical": true, - "file": "conversational_search_service.create_conversation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateConversation", - "fullName": "google.cloud.discoveryengine.v1alpha.ConversationalSearchService.CreateConversation", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "conversation", - "type": ".google.cloud.discoveryengine.v1alpha.Conversation" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.Conversation", - "client": { - "shortName": "ConversationalSearchServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceClient" - }, - "method": { - "shortName": "CreateConversation", - "fullName": "google.cloud.discoveryengine.v1alpha.ConversationalSearchService.CreateConversation", - "service": { - "shortName": "ConversationalSearchService", - "fullName": "google.cloud.discoveryengine.v1alpha.ConversationalSearchService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_ConversationalSearchService_DeleteConversation_async", - "title": "AclConfigService deleteConversation Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Conversation. If the [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to delete does not exist, a NOT_FOUND error is returned.", - "canonical": true, - "file": "conversational_search_service.delete_conversation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteConversation", - "fullName": "google.cloud.discoveryengine.v1alpha.ConversationalSearchService.DeleteConversation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ConversationalSearchServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceClient" - }, - "method": { - "shortName": "DeleteConversation", - "fullName": "google.cloud.discoveryengine.v1alpha.ConversationalSearchService.DeleteConversation", - "service": { - "shortName": "ConversationalSearchService", - "fullName": "google.cloud.discoveryengine.v1alpha.ConversationalSearchService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_ConversationalSearchService_UpdateConversation_async", - "title": "AclConfigService updateConversation Sample", - "origin": "API_DEFINITION", - "description": " Updates a Conversation. [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] action type cannot be changed. If the [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to update does not exist, a NOT_FOUND error is returned.", - "canonical": true, - "file": "conversational_search_service.update_conversation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateConversation", - "fullName": "google.cloud.discoveryengine.v1alpha.ConversationalSearchService.UpdateConversation", - "async": true, - "parameters": [ - { - "name": "conversation", - "type": ".google.cloud.discoveryengine.v1alpha.Conversation" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.Conversation", - "client": { - "shortName": "ConversationalSearchServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceClient" - }, - "method": { - "shortName": "UpdateConversation", - "fullName": "google.cloud.discoveryengine.v1alpha.ConversationalSearchService.UpdateConversation", - "service": { - "shortName": "ConversationalSearchService", - "fullName": "google.cloud.discoveryengine.v1alpha.ConversationalSearchService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_ConversationalSearchService_GetConversation_async", - "title": "AclConfigService getConversation Sample", - "origin": "API_DEFINITION", - "description": " Gets a Conversation.", - "canonical": true, - "file": "conversational_search_service.get_conversation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetConversation", - "fullName": "google.cloud.discoveryengine.v1alpha.ConversationalSearchService.GetConversation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.Conversation", - "client": { - "shortName": "ConversationalSearchServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceClient" - }, - "method": { - "shortName": "GetConversation", - "fullName": "google.cloud.discoveryengine.v1alpha.ConversationalSearchService.GetConversation", - "service": { - "shortName": "ConversationalSearchService", - "fullName": "google.cloud.discoveryengine.v1alpha.ConversationalSearchService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_ConversationalSearchService_ListConversations_async", - "title": "AclConfigService listConversations Sample", - "origin": "API_DEFINITION", - "description": " Lists all Conversations by their parent [DataStore][google.cloud.discoveryengine.v1alpha.DataStore].", - "canonical": true, - "file": "conversational_search_service.list_conversations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListConversations", - "fullName": "google.cloud.discoveryengine.v1alpha.ConversationalSearchService.ListConversations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.ListConversationsResponse", - "client": { - "shortName": "ConversationalSearchServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceClient" - }, - "method": { - "shortName": "ListConversations", - "fullName": "google.cloud.discoveryengine.v1alpha.ConversationalSearchService.ListConversations", - "service": { - "shortName": "ConversationalSearchService", - "fullName": "google.cloud.discoveryengine.v1alpha.ConversationalSearchService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_ConversationalSearchService_AnswerQuery_async", - "title": "AclConfigService answerQuery Sample", - "origin": "API_DEFINITION", - "description": " Answer query method.", - "canonical": true, - "file": "conversational_search_service.answer_query.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 129, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AnswerQuery", - "fullName": "google.cloud.discoveryengine.v1alpha.ConversationalSearchService.AnswerQuery", - "async": true, - "parameters": [ - { - "name": "serving_config", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": ".google.cloud.discoveryengine.v1alpha.Query" - }, - { - "name": "session", - "type": "TYPE_STRING" - }, - { - "name": "safety_spec", - "type": ".google.cloud.discoveryengine.v1alpha.AnswerQueryRequest.SafetySpec" - }, - { - "name": "related_questions_spec", - "type": ".google.cloud.discoveryengine.v1alpha.AnswerQueryRequest.RelatedQuestionsSpec" - }, - { - "name": "answer_generation_spec", - "type": ".google.cloud.discoveryengine.v1alpha.AnswerQueryRequest.AnswerGenerationSpec" - }, - { - "name": "search_spec", - "type": ".google.cloud.discoveryengine.v1alpha.AnswerQueryRequest.SearchSpec" - }, - { - "name": "query_understanding_spec", - "type": ".google.cloud.discoveryengine.v1alpha.AnswerQueryRequest.QueryUnderstandingSpec" - }, - { - "name": "asynchronous_mode", - "type": "TYPE_BOOL" - }, - { - "name": "user_pseudo_id", - "type": "TYPE_STRING" - }, - { - "name": "user_labels", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.AnswerQueryResponse", - "client": { - "shortName": "ConversationalSearchServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceClient" - }, - "method": { - "shortName": "AnswerQuery", - "fullName": "google.cloud.discoveryengine.v1alpha.ConversationalSearchService.AnswerQuery", - "service": { - "shortName": "ConversationalSearchService", - "fullName": "google.cloud.discoveryengine.v1alpha.ConversationalSearchService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_ConversationalSearchService_GetAnswer_async", - "title": "AclConfigService getAnswer Sample", - "origin": "API_DEFINITION", - "description": " Gets a Answer.", - "canonical": true, - "file": "conversational_search_service.get_answer.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAnswer", - "fullName": "google.cloud.discoveryengine.v1alpha.ConversationalSearchService.GetAnswer", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.Answer", - "client": { - "shortName": "ConversationalSearchServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceClient" - }, - "method": { - "shortName": "GetAnswer", - "fullName": "google.cloud.discoveryengine.v1alpha.ConversationalSearchService.GetAnswer", - "service": { - "shortName": "ConversationalSearchService", - "fullName": "google.cloud.discoveryengine.v1alpha.ConversationalSearchService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_ConversationalSearchService_CreateSession_async", - "title": "AclConfigService createSession Sample", - "origin": "API_DEFINITION", - "description": " Creates a Session. If the [Session][google.cloud.discoveryengine.v1alpha.Session] to create already exists, an ALREADY_EXISTS error is returned.", - "canonical": true, - "file": "conversational_search_service.create_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSession", - "fullName": "google.cloud.discoveryengine.v1alpha.ConversationalSearchService.CreateSession", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "session", - "type": ".google.cloud.discoveryengine.v1alpha.Session" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.Session", - "client": { - "shortName": "ConversationalSearchServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceClient" - }, - "method": { - "shortName": "CreateSession", - "fullName": "google.cloud.discoveryengine.v1alpha.ConversationalSearchService.CreateSession", - "service": { - "shortName": "ConversationalSearchService", - "fullName": "google.cloud.discoveryengine.v1alpha.ConversationalSearchService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_ConversationalSearchService_DeleteSession_async", - "title": "AclConfigService deleteSession Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Session. If the [Session][google.cloud.discoveryengine.v1alpha.Session] to delete does not exist, a NOT_FOUND error is returned.", - "canonical": true, - "file": "conversational_search_service.delete_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSession", - "fullName": "google.cloud.discoveryengine.v1alpha.ConversationalSearchService.DeleteSession", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ConversationalSearchServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceClient" - }, - "method": { - "shortName": "DeleteSession", - "fullName": "google.cloud.discoveryengine.v1alpha.ConversationalSearchService.DeleteSession", - "service": { - "shortName": "ConversationalSearchService", - "fullName": "google.cloud.discoveryengine.v1alpha.ConversationalSearchService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_ConversationalSearchService_UpdateSession_async", - "title": "AclConfigService updateSession Sample", - "origin": "API_DEFINITION", - "description": " Updates a Session. [Session][google.cloud.discoveryengine.v1alpha.Session] action type cannot be changed. If the [Session][google.cloud.discoveryengine.v1alpha.Session] to update does not exist, a NOT_FOUND error is returned.", - "canonical": true, - "file": "conversational_search_service.update_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSession", - "fullName": "google.cloud.discoveryengine.v1alpha.ConversationalSearchService.UpdateSession", - "async": true, - "parameters": [ - { - "name": "session", - "type": ".google.cloud.discoveryengine.v1alpha.Session" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.Session", - "client": { - "shortName": "ConversationalSearchServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceClient" - }, - "method": { - "shortName": "UpdateSession", - "fullName": "google.cloud.discoveryengine.v1alpha.ConversationalSearchService.UpdateSession", - "service": { - "shortName": "ConversationalSearchService", - "fullName": "google.cloud.discoveryengine.v1alpha.ConversationalSearchService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_ConversationalSearchService_GetSession_async", - "title": "AclConfigService getSession Sample", - "origin": "API_DEFINITION", - "description": " Gets a Session.", - "canonical": true, - "file": "conversational_search_service.get_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSession", - "fullName": "google.cloud.discoveryengine.v1alpha.ConversationalSearchService.GetSession", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "include_answer_details", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.Session", - "client": { - "shortName": "ConversationalSearchServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceClient" - }, - "method": { - "shortName": "GetSession", - "fullName": "google.cloud.discoveryengine.v1alpha.ConversationalSearchService.GetSession", - "service": { - "shortName": "ConversationalSearchService", - "fullName": "google.cloud.discoveryengine.v1alpha.ConversationalSearchService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_ConversationalSearchService_ListSessions_async", - "title": "AclConfigService listSessions Sample", - "origin": "API_DEFINITION", - "description": " Lists all Sessions by their parent [DataStore][google.cloud.discoveryengine.v1alpha.DataStore].", - "canonical": true, - "file": "conversational_search_service.list_sessions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 100, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSessions", - "fullName": "google.cloud.discoveryengine.v1alpha.ConversationalSearchService.ListSessions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.ListSessionsResponse", - "client": { - "shortName": "ConversationalSearchServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.ConversationalSearchServiceClient" - }, - "method": { - "shortName": "ListSessions", - "fullName": "google.cloud.discoveryengine.v1alpha.ConversationalSearchService.ListSessions", - "service": { - "shortName": "ConversationalSearchService", - "fullName": "google.cloud.discoveryengine.v1alpha.ConversationalSearchService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_DataStoreService_CreateDataStore_async", - "title": "AclConfigService createDataStore Sample", - "origin": "API_DEFINITION", - "description": " Creates a [DataStore][google.cloud.discoveryengine.v1alpha.DataStore]. DataStore is for storing [Documents][google.cloud.discoveryengine.v1alpha.Document]. To serve these documents for Search, or Recommendation use case, an [Engine][google.cloud.discoveryengine.v1alpha.Engine] needs to be created separately.", - "canonical": true, - "file": "data_store_service.create_data_store.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 90, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDataStore", - "fullName": "google.cloud.discoveryengine.v1alpha.DataStoreService.CreateDataStore", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "data_store", - "type": ".google.cloud.discoveryengine.v1alpha.DataStore" - }, - { - "name": "data_store_id", - "type": "TYPE_STRING" - }, - { - "name": "create_advanced_site_search", - "type": "TYPE_BOOL" - }, - { - "name": "skip_default_schema_creation", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataStoreServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.DataStoreServiceClient" - }, - "method": { - "shortName": "CreateDataStore", - "fullName": "google.cloud.discoveryengine.v1alpha.DataStoreService.CreateDataStore", - "service": { - "shortName": "DataStoreService", - "fullName": "google.cloud.discoveryengine.v1alpha.DataStoreService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_DataStoreService_GetDataStore_async", - "title": "AclConfigService getDataStore Sample", - "origin": "API_DEFINITION", - "description": " Gets a [DataStore][google.cloud.discoveryengine.v1alpha.DataStore].", - "canonical": true, - "file": "data_store_service.get_data_store.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDataStore", - "fullName": "google.cloud.discoveryengine.v1alpha.DataStoreService.GetDataStore", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.DataStore", - "client": { - "shortName": "DataStoreServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.DataStoreServiceClient" - }, - "method": { - "shortName": "GetDataStore", - "fullName": "google.cloud.discoveryengine.v1alpha.DataStoreService.GetDataStore", - "service": { - "shortName": "DataStoreService", - "fullName": "google.cloud.discoveryengine.v1alpha.DataStoreService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_DataStoreService_ListDataStores_async", - "title": "AclConfigService listDataStores Sample", - "origin": "API_DEFINITION", - "description": " Lists all the [DataStore][google.cloud.discoveryengine.v1alpha.DataStore]s associated with the project.", - "canonical": true, - "file": "data_store_service.list_data_stores.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDataStores", - "fullName": "google.cloud.discoveryengine.v1alpha.DataStoreService.ListDataStores", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.ListDataStoresResponse", - "client": { - "shortName": "DataStoreServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.DataStoreServiceClient" - }, - "method": { - "shortName": "ListDataStores", - "fullName": "google.cloud.discoveryengine.v1alpha.DataStoreService.ListDataStores", - "service": { - "shortName": "DataStoreService", - "fullName": "google.cloud.discoveryengine.v1alpha.DataStoreService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_DataStoreService_DeleteDataStore_async", - "title": "AclConfigService deleteDataStore Sample", - "origin": "API_DEFINITION", - "description": " Deletes a [DataStore][google.cloud.discoveryengine.v1alpha.DataStore].", - "canonical": true, - "file": "data_store_service.delete_data_store.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDataStore", - "fullName": "google.cloud.discoveryengine.v1alpha.DataStoreService.DeleteDataStore", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataStoreServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.DataStoreServiceClient" - }, - "method": { - "shortName": "DeleteDataStore", - "fullName": "google.cloud.discoveryengine.v1alpha.DataStoreService.DeleteDataStore", - "service": { - "shortName": "DataStoreService", - "fullName": "google.cloud.discoveryengine.v1alpha.DataStoreService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_DataStoreService_UpdateDataStore_async", - "title": "AclConfigService updateDataStore Sample", - "origin": "API_DEFINITION", - "description": " Updates a [DataStore][google.cloud.discoveryengine.v1alpha.DataStore]", - "canonical": true, - "file": "data_store_service.update_data_store.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDataStore", - "fullName": "google.cloud.discoveryengine.v1alpha.DataStoreService.UpdateDataStore", - "async": true, - "parameters": [ - { - "name": "data_store", - "type": ".google.cloud.discoveryengine.v1alpha.DataStore" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.DataStore", - "client": { - "shortName": "DataStoreServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.DataStoreServiceClient" - }, - "method": { - "shortName": "UpdateDataStore", - "fullName": "google.cloud.discoveryengine.v1alpha.DataStoreService.UpdateDataStore", - "service": { - "shortName": "DataStoreService", - "fullName": "google.cloud.discoveryengine.v1alpha.DataStoreService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_DataStoreService_GetDocumentProcessingConfig_async", - "title": "AclConfigService getDocumentProcessingConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets a [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig].", - "canonical": true, - "file": "data_store_service.get_document_processing_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDocumentProcessingConfig", - "fullName": "google.cloud.discoveryengine.v1alpha.DataStoreService.GetDocumentProcessingConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig", - "client": { - "shortName": "DataStoreServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.DataStoreServiceClient" - }, - "method": { - "shortName": "GetDocumentProcessingConfig", - "fullName": "google.cloud.discoveryengine.v1alpha.DataStoreService.GetDocumentProcessingConfig", - "service": { - "shortName": "DataStoreService", - "fullName": "google.cloud.discoveryengine.v1alpha.DataStoreService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_DataStoreService_UpdateDocumentProcessingConfig_async", - "title": "AclConfigService updateDocumentProcessingConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates the [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]. [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig] is a singleon resource of [DataStore][google.cloud.discoveryengine.v1alpha.DataStore]. It's empty when [DataStore][google.cloud.discoveryengine.v1alpha.DataStore] is created. The first call to this method will set up [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig].", - "canonical": true, - "file": "data_store_service.update_document_processing_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDocumentProcessingConfig", - "fullName": "google.cloud.discoveryengine.v1alpha.DataStoreService.UpdateDocumentProcessingConfig", - "async": true, - "parameters": [ - { - "name": "document_processing_config", - "type": ".google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig", - "client": { - "shortName": "DataStoreServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.DataStoreServiceClient" - }, - "method": { - "shortName": "UpdateDocumentProcessingConfig", - "fullName": "google.cloud.discoveryengine.v1alpha.DataStoreService.UpdateDocumentProcessingConfig", - "service": { - "shortName": "DataStoreService", - "fullName": "google.cloud.discoveryengine.v1alpha.DataStoreService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_DocumentService_GetDocument_async", - "title": "AclConfigService getDocument Sample", - "origin": "API_DEFINITION", - "description": " Gets a [Document][google.cloud.discoveryengine.v1alpha.Document].", - "canonical": true, - "file": "document_service.get_document.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDocument", - "fullName": "google.cloud.discoveryengine.v1alpha.DocumentService.GetDocument", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.Document", - "client": { - "shortName": "DocumentServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.DocumentServiceClient" - }, - "method": { - "shortName": "GetDocument", - "fullName": "google.cloud.discoveryengine.v1alpha.DocumentService.GetDocument", - "service": { - "shortName": "DocumentService", - "fullName": "google.cloud.discoveryengine.v1alpha.DocumentService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_DocumentService_ListDocuments_async", - "title": "AclConfigService listDocuments Sample", - "origin": "API_DEFINITION", - "description": " Gets a list of [Document][google.cloud.discoveryengine.v1alpha.Document]s.", - "canonical": true, - "file": "document_service.list_documents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDocuments", - "fullName": "google.cloud.discoveryengine.v1alpha.DocumentService.ListDocuments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.ListDocumentsResponse", - "client": { - "shortName": "DocumentServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.DocumentServiceClient" - }, - "method": { - "shortName": "ListDocuments", - "fullName": "google.cloud.discoveryengine.v1alpha.DocumentService.ListDocuments", - "service": { - "shortName": "DocumentService", - "fullName": "google.cloud.discoveryengine.v1alpha.DocumentService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_DocumentService_CreateDocument_async", - "title": "AclConfigService createDocument Sample", - "origin": "API_DEFINITION", - "description": " Creates a [Document][google.cloud.discoveryengine.v1alpha.Document].", - "canonical": true, - "file": "document_service.create_document.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDocument", - "fullName": "google.cloud.discoveryengine.v1alpha.DocumentService.CreateDocument", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "document", - "type": ".google.cloud.discoveryengine.v1alpha.Document" - }, - { - "name": "document_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.Document", - "client": { - "shortName": "DocumentServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.DocumentServiceClient" - }, - "method": { - "shortName": "CreateDocument", - "fullName": "google.cloud.discoveryengine.v1alpha.DocumentService.CreateDocument", - "service": { - "shortName": "DocumentService", - "fullName": "google.cloud.discoveryengine.v1alpha.DocumentService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_DocumentService_UpdateDocument_async", - "title": "AclConfigService updateDocument Sample", - "origin": "API_DEFINITION", - "description": " Updates a [Document][google.cloud.discoveryengine.v1alpha.Document].", - "canonical": true, - "file": "document_service.update_document.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDocument", - "fullName": "google.cloud.discoveryengine.v1alpha.DocumentService.UpdateDocument", - "async": true, - "parameters": [ - { - "name": "document", - "type": ".google.cloud.discoveryengine.v1alpha.Document" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.Document", - "client": { - "shortName": "DocumentServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.DocumentServiceClient" - }, - "method": { - "shortName": "UpdateDocument", - "fullName": "google.cloud.discoveryengine.v1alpha.DocumentService.UpdateDocument", - "service": { - "shortName": "DocumentService", - "fullName": "google.cloud.discoveryengine.v1alpha.DocumentService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_DocumentService_DeleteDocument_async", - "title": "AclConfigService deleteDocument Sample", - "origin": "API_DEFINITION", - "description": " Deletes a [Document][google.cloud.discoveryengine.v1alpha.Document].", - "canonical": true, - "file": "document_service.delete_document.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDocument", - "fullName": "google.cloud.discoveryengine.v1alpha.DocumentService.DeleteDocument", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DocumentServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.DocumentServiceClient" - }, - "method": { - "shortName": "DeleteDocument", - "fullName": "google.cloud.discoveryengine.v1alpha.DocumentService.DeleteDocument", - "service": { - "shortName": "DocumentService", - "fullName": "google.cloud.discoveryengine.v1alpha.DocumentService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_DocumentService_ImportDocuments_async", - "title": "AclConfigService importDocuments Sample", - "origin": "API_DEFINITION", - "description": " Bulk import of multiple [Document][google.cloud.discoveryengine.v1alpha.Document]s. Request processing may be synchronous. Non-existing items are created. Note: It is possible for a subset of the [Document][google.cloud.discoveryengine.v1alpha.Document]s to be successfully updated.", - "canonical": true, - "file": "document_service.import_documents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 163, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportDocuments", - "fullName": "google.cloud.discoveryengine.v1alpha.DocumentService.ImportDocuments", - "async": true, - "parameters": [ - { - "name": "inline_source", - "type": ".google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.InlineSource" - }, - { - "name": "gcs_source", - "type": ".google.cloud.discoveryengine.v1alpha.GcsSource" - }, - { - "name": "bigquery_source", - "type": ".google.cloud.discoveryengine.v1alpha.BigQuerySource" - }, - { - "name": "fhir_store_source", - "type": ".google.cloud.discoveryengine.v1alpha.FhirStoreSource" - }, - { - "name": "spanner_source", - "type": ".google.cloud.discoveryengine.v1alpha.SpannerSource" - }, - { - "name": "cloud_sql_source", - "type": ".google.cloud.discoveryengine.v1alpha.CloudSqlSource" - }, - { - "name": "firestore_source", - "type": ".google.cloud.discoveryengine.v1alpha.FirestoreSource" - }, - { - "name": "alloy_db_source", - "type": ".google.cloud.discoveryengine.v1alpha.AlloyDbSource" - }, - { - "name": "bigtable_source", - "type": ".google.cloud.discoveryengine.v1alpha.BigtableSource" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "error_config", - "type": ".google.cloud.discoveryengine.v1alpha.ImportErrorConfig" - }, - { - "name": "reconciliation_mode", - "type": ".google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest.ReconciliationMode" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "auto_generate_ids", - "type": "TYPE_BOOL" - }, - { - "name": "id_field", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DocumentServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.DocumentServiceClient" - }, - "method": { - "shortName": "ImportDocuments", - "fullName": "google.cloud.discoveryengine.v1alpha.DocumentService.ImportDocuments", - "service": { - "shortName": "DocumentService", - "fullName": "google.cloud.discoveryengine.v1alpha.DocumentService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_DocumentService_PurgeDocuments_async", - "title": "AclConfigService purgeDocuments Sample", - "origin": "API_DEFINITION", - "description": " Permanently deletes all selected [Document][google.cloud.discoveryengine.v1alpha.Document]s in a branch. This process is asynchronous. Depending on the number of [Document][google.cloud.discoveryengine.v1alpha.Document]s to be deleted, this operation can take hours to complete. Before the delete operation completes, some [Document][google.cloud.discoveryengine.v1alpha.Document]s might still be returned by [DocumentService.GetDocument][google.cloud.discoveryengine.v1alpha.DocumentService.GetDocument] or [DocumentService.ListDocuments][google.cloud.discoveryengine.v1alpha.DocumentService.ListDocuments]. To get a list of the [Document][google.cloud.discoveryengine.v1alpha.Document]s to be deleted, set [PurgeDocumentsRequest.force][google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest.force] to false.", - "canonical": true, - "file": "document_service.purge_documents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PurgeDocuments", - "fullName": "google.cloud.discoveryengine.v1alpha.DocumentService.PurgeDocuments", - "async": true, - "parameters": [ - { - "name": "gcs_source", - "type": ".google.cloud.discoveryengine.v1alpha.GcsSource" - }, - { - "name": "inline_source", - "type": ".google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest.InlineSource" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "error_config", - "type": ".google.cloud.discoveryengine.v1alpha.PurgeErrorConfig" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DocumentServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.DocumentServiceClient" - }, - "method": { - "shortName": "PurgeDocuments", - "fullName": "google.cloud.discoveryengine.v1alpha.DocumentService.PurgeDocuments", - "service": { - "shortName": "DocumentService", - "fullName": "google.cloud.discoveryengine.v1alpha.DocumentService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_DocumentService_GetProcessedDocument_async", - "title": "AclConfigService getProcessedDocument Sample", - "origin": "API_DEFINITION", - "description": " Gets the parsed layout information for a [Document][google.cloud.discoveryengine.v1alpha.Document].", - "canonical": true, - "file": "document_service.get_processed_document.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetProcessedDocument", - "fullName": "google.cloud.discoveryengine.v1alpha.DocumentService.GetProcessedDocument", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "processed_document_type", - "type": ".google.cloud.discoveryengine.v1alpha.GetProcessedDocumentRequest.ProcessedDocumentType" - }, - { - "name": "processed_document_format", - "type": ".google.cloud.discoveryengine.v1alpha.GetProcessedDocumentRequest.ProcessedDocumentFormat" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.ProcessedDocument", - "client": { - "shortName": "DocumentServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.DocumentServiceClient" - }, - "method": { - "shortName": "GetProcessedDocument", - "fullName": "google.cloud.discoveryengine.v1alpha.DocumentService.GetProcessedDocument", - "service": { - "shortName": "DocumentService", - "fullName": "google.cloud.discoveryengine.v1alpha.DocumentService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_DocumentService_BatchGetDocumentsMetadata_async", - "title": "AclConfigService batchGetDocumentsMetadata Sample", - "origin": "API_DEFINITION", - "description": " Gets index freshness metadata for [Document][google.cloud.discoveryengine.v1alpha.Document]s. Supported for website search only.", - "canonical": true, - "file": "document_service.batch_get_documents_metadata.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchGetDocumentsMetadata", - "fullName": "google.cloud.discoveryengine.v1alpha.DocumentService.BatchGetDocumentsMetadata", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "matcher", - "type": ".google.cloud.discoveryengine.v1alpha.BatchGetDocumentsMetadataRequest.Matcher" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.BatchGetDocumentsMetadataResponse", - "client": { - "shortName": "DocumentServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.DocumentServiceClient" - }, - "method": { - "shortName": "BatchGetDocumentsMetadata", - "fullName": "google.cloud.discoveryengine.v1alpha.DocumentService.BatchGetDocumentsMetadata", - "service": { - "shortName": "DocumentService", - "fullName": "google.cloud.discoveryengine.v1alpha.DocumentService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_EngineService_CreateEngine_async", - "title": "AclConfigService createEngine Sample", - "origin": "API_DEFINITION", - "description": " Creates a [Engine][google.cloud.discoveryengine.v1alpha.Engine].", - "canonical": true, - "file": "engine_service.create_engine.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateEngine", - "fullName": "google.cloud.discoveryengine.v1alpha.EngineService.CreateEngine", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "engine", - "type": ".google.cloud.discoveryengine.v1alpha.Engine" - }, - { - "name": "engine_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.EngineServiceClient" - }, - "method": { - "shortName": "CreateEngine", - "fullName": "google.cloud.discoveryengine.v1alpha.EngineService.CreateEngine", - "service": { - "shortName": "EngineService", - "fullName": "google.cloud.discoveryengine.v1alpha.EngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_EngineService_DeleteEngine_async", - "title": "AclConfigService deleteEngine Sample", - "origin": "API_DEFINITION", - "description": " Deletes a [Engine][google.cloud.discoveryengine.v1alpha.Engine].", - "canonical": true, - "file": "engine_service.delete_engine.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteEngine", - "fullName": "google.cloud.discoveryengine.v1alpha.EngineService.DeleteEngine", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.EngineServiceClient" - }, - "method": { - "shortName": "DeleteEngine", - "fullName": "google.cloud.discoveryengine.v1alpha.EngineService.DeleteEngine", - "service": { - "shortName": "EngineService", - "fullName": "google.cloud.discoveryengine.v1alpha.EngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_EngineService_UpdateEngine_async", - "title": "AclConfigService updateEngine Sample", - "origin": "API_DEFINITION", - "description": " Updates an [Engine][google.cloud.discoveryengine.v1alpha.Engine]", - "canonical": true, - "file": "engine_service.update_engine.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateEngine", - "fullName": "google.cloud.discoveryengine.v1alpha.EngineService.UpdateEngine", - "async": true, - "parameters": [ - { - "name": "engine", - "type": ".google.cloud.discoveryengine.v1alpha.Engine" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.Engine", - "client": { - "shortName": "EngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.EngineServiceClient" - }, - "method": { - "shortName": "UpdateEngine", - "fullName": "google.cloud.discoveryengine.v1alpha.EngineService.UpdateEngine", - "service": { - "shortName": "EngineService", - "fullName": "google.cloud.discoveryengine.v1alpha.EngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_EngineService_GetEngine_async", - "title": "AclConfigService getEngine Sample", - "origin": "API_DEFINITION", - "description": " Gets a [Engine][google.cloud.discoveryengine.v1alpha.Engine].", - "canonical": true, - "file": "engine_service.get_engine.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEngine", - "fullName": "google.cloud.discoveryengine.v1alpha.EngineService.GetEngine", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.Engine", - "client": { - "shortName": "EngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.EngineServiceClient" - }, - "method": { - "shortName": "GetEngine", - "fullName": "google.cloud.discoveryengine.v1alpha.EngineService.GetEngine", - "service": { - "shortName": "EngineService", - "fullName": "google.cloud.discoveryengine.v1alpha.EngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_EngineService_ListEngines_async", - "title": "AclConfigService listEngines Sample", - "origin": "API_DEFINITION", - "description": " Lists all the [Engine][google.cloud.discoveryengine.v1alpha.Engine]s associated with the project.", - "canonical": true, - "file": "engine_service.list_engines.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEngines", - "fullName": "google.cloud.discoveryengine.v1alpha.EngineService.ListEngines", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.ListEnginesResponse", - "client": { - "shortName": "EngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.EngineServiceClient" - }, - "method": { - "shortName": "ListEngines", - "fullName": "google.cloud.discoveryengine.v1alpha.EngineService.ListEngines", - "service": { - "shortName": "EngineService", - "fullName": "google.cloud.discoveryengine.v1alpha.EngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_EngineService_PauseEngine_async", - "title": "AclConfigService pauseEngine Sample", - "origin": "API_DEFINITION", - "description": " Pauses the training of an existing engine. Only applicable if [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION].", - "canonical": true, - "file": "engine_service.pause_engine.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PauseEngine", - "fullName": "google.cloud.discoveryengine.v1alpha.EngineService.PauseEngine", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.Engine", - "client": { - "shortName": "EngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.EngineServiceClient" - }, - "method": { - "shortName": "PauseEngine", - "fullName": "google.cloud.discoveryengine.v1alpha.EngineService.PauseEngine", - "service": { - "shortName": "EngineService", - "fullName": "google.cloud.discoveryengine.v1alpha.EngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_EngineService_ResumeEngine_async", - "title": "AclConfigService resumeEngine Sample", - "origin": "API_DEFINITION", - "description": " Resumes the training of an existing engine. Only applicable if [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION].", - "canonical": true, - "file": "engine_service.resume_engine.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResumeEngine", - "fullName": "google.cloud.discoveryengine.v1alpha.EngineService.ResumeEngine", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.Engine", - "client": { - "shortName": "EngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.EngineServiceClient" - }, - "method": { - "shortName": "ResumeEngine", - "fullName": "google.cloud.discoveryengine.v1alpha.EngineService.ResumeEngine", - "service": { - "shortName": "EngineService", - "fullName": "google.cloud.discoveryengine.v1alpha.EngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_EngineService_TuneEngine_async", - "title": "AclConfigService tuneEngine Sample", - "origin": "API_DEFINITION", - "description": " Tunes an existing engine. Only applicable if [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION].", - "canonical": true, - "file": "engine_service.tune_engine.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TuneEngine", - "fullName": "google.cloud.discoveryengine.v1alpha.EngineService.TuneEngine", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.EngineServiceClient" - }, - "method": { - "shortName": "TuneEngine", - "fullName": "google.cloud.discoveryengine.v1alpha.EngineService.TuneEngine", - "service": { - "shortName": "EngineService", - "fullName": "google.cloud.discoveryengine.v1alpha.EngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_EstimateBillingService_EstimateDataSize_async", - "title": "AclConfigService estimateDataSize Sample", - "origin": "API_DEFINITION", - "description": " Estimates the data size to be used by a customer.", - "canonical": true, - "file": "estimate_billing_service.estimate_data_size.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "EstimateDataSize", - "fullName": "google.cloud.discoveryengine.v1alpha.EstimateBillingService.EstimateDataSize", - "async": true, - "parameters": [ - { - "name": "website_data_source", - "type": ".google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource" - }, - { - "name": "file_data_source", - "type": ".google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource" - }, - { - "name": "location", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EstimateBillingServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.EstimateBillingServiceClient" - }, - "method": { - "shortName": "EstimateDataSize", - "fullName": "google.cloud.discoveryengine.v1alpha.EstimateBillingService.EstimateDataSize", - "service": { - "shortName": "EstimateBillingService", - "fullName": "google.cloud.discoveryengine.v1alpha.EstimateBillingService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_EvaluationService_GetEvaluation_async", - "title": "AclConfigService getEvaluation Sample", - "origin": "API_DEFINITION", - "description": " Gets a [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation].", - "canonical": true, - "file": "evaluation_service.get_evaluation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEvaluation", - "fullName": "google.cloud.discoveryengine.v1alpha.EvaluationService.GetEvaluation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.Evaluation", - "client": { - "shortName": "EvaluationServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.EvaluationServiceClient" - }, - "method": { - "shortName": "GetEvaluation", - "fullName": "google.cloud.discoveryengine.v1alpha.EvaluationService.GetEvaluation", - "service": { - "shortName": "EvaluationService", - "fullName": "google.cloud.discoveryengine.v1alpha.EvaluationService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_EvaluationService_ListEvaluations_async", - "title": "AclConfigService listEvaluations Sample", - "origin": "API_DEFINITION", - "description": " Gets a list of [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]s.", - "canonical": true, - "file": "evaluation_service.list_evaluations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEvaluations", - "fullName": "google.cloud.discoveryengine.v1alpha.EvaluationService.ListEvaluations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.ListEvaluationsResponse", - "client": { - "shortName": "EvaluationServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.EvaluationServiceClient" - }, - "method": { - "shortName": "ListEvaluations", - "fullName": "google.cloud.discoveryengine.v1alpha.EvaluationService.ListEvaluations", - "service": { - "shortName": "EvaluationService", - "fullName": "google.cloud.discoveryengine.v1alpha.EvaluationService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_EvaluationService_CreateEvaluation_async", - "title": "AclConfigService createEvaluation Sample", - "origin": "API_DEFINITION", - "description": " Creates a [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation]. Upon creation, the evaluation will be automatically triggered and begin execution.", - "canonical": true, - "file": "evaluation_service.create_evaluation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateEvaluation", - "fullName": "google.cloud.discoveryengine.v1alpha.EvaluationService.CreateEvaluation", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "evaluation", - "type": ".google.cloud.discoveryengine.v1alpha.Evaluation" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EvaluationServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.EvaluationServiceClient" - }, - "method": { - "shortName": "CreateEvaluation", - "fullName": "google.cloud.discoveryengine.v1alpha.EvaluationService.CreateEvaluation", - "service": { - "shortName": "EvaluationService", - "fullName": "google.cloud.discoveryengine.v1alpha.EvaluationService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_EvaluationService_ListEvaluationResults_async", - "title": "AclConfigService listEvaluationResults Sample", - "origin": "API_DEFINITION", - "description": " Gets a list of results for a given a [Evaluation][google.cloud.discoveryengine.v1alpha.Evaluation].", - "canonical": true, - "file": "evaluation_service.list_evaluation_results.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEvaluationResults", - "fullName": "google.cloud.discoveryengine.v1alpha.EvaluationService.ListEvaluationResults", - "async": true, - "parameters": [ - { - "name": "evaluation", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.ListEvaluationResultsResponse", - "client": { - "shortName": "EvaluationServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.EvaluationServiceClient" - }, - "method": { - "shortName": "ListEvaluationResults", - "fullName": "google.cloud.discoveryengine.v1alpha.EvaluationService.ListEvaluationResults", - "service": { - "shortName": "EvaluationService", - "fullName": "google.cloud.discoveryengine.v1alpha.EvaluationService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_GroundedGenerationService_CheckGrounding_async", - "title": "AclConfigService checkGrounding Sample", - "origin": "API_DEFINITION", - "description": " Performs a grounding check.", - "canonical": true, - "file": "grounded_generation_service.check_grounding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CheckGrounding", - "fullName": "google.cloud.discoveryengine.v1alpha.GroundedGenerationService.CheckGrounding", - "async": true, - "parameters": [ - { - "name": "grounding_config", - "type": "TYPE_STRING" - }, - { - "name": "answer_candidate", - "type": "TYPE_STRING" - }, - { - "name": "facts", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "grounding_spec", - "type": ".google.cloud.discoveryengine.v1alpha.CheckGroundingSpec" - }, - { - "name": "user_labels", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.CheckGroundingResponse", - "client": { - "shortName": "GroundedGenerationServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.GroundedGenerationServiceClient" - }, - "method": { - "shortName": "CheckGrounding", - "fullName": "google.cloud.discoveryengine.v1alpha.GroundedGenerationService.CheckGrounding", - "service": { - "shortName": "GroundedGenerationService", - "fullName": "google.cloud.discoveryengine.v1alpha.GroundedGenerationService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_ProjectService_GetProject_async", - "title": "AclConfigService getProject Sample", - "origin": "API_DEFINITION", - "description": " Gets a [Project][google.cloud.discoveryengine.v1alpha.Project]. Returns NOT_FOUND when the project is not yet created.", - "canonical": true, - "file": "project_service.get_project.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetProject", - "fullName": "google.cloud.discoveryengine.v1alpha.ProjectService.GetProject", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.Project", - "client": { - "shortName": "ProjectServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.ProjectServiceClient" - }, - "method": { - "shortName": "GetProject", - "fullName": "google.cloud.discoveryengine.v1alpha.ProjectService.GetProject", - "service": { - "shortName": "ProjectService", - "fullName": "google.cloud.discoveryengine.v1alpha.ProjectService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_ProjectService_ProvisionProject_async", - "title": "AclConfigService provisionProject Sample", - "origin": "API_DEFINITION", - "description": " Provisions the project resource. During the process, related systems will get prepared and initialized. Caller must read the [Terms for data use](https://cloud.google.com/retail/data-use-terms), and optionally specify in request to provide consent to that service terms.", - "canonical": true, - "file": "project_service.provision_project.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ProvisionProject", - "fullName": "google.cloud.discoveryengine.v1alpha.ProjectService.ProvisionProject", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "accept_data_use_terms", - "type": "TYPE_BOOL" - }, - { - "name": "data_use_terms_version", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ProjectServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.ProjectServiceClient" - }, - "method": { - "shortName": "ProvisionProject", - "fullName": "google.cloud.discoveryengine.v1alpha.ProjectService.ProvisionProject", - "service": { - "shortName": "ProjectService", - "fullName": "google.cloud.discoveryengine.v1alpha.ProjectService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_ProjectService_ReportConsentChange_async", - "title": "AclConfigService reportConsentChange Sample", - "origin": "API_DEFINITION", - "description": " Updates service terms for this project. This method can be used to retroactively accept the latest terms. Terms available for update: * [Terms for data use](https://cloud.google.com/retail/data-use-terms)", - "canonical": true, - "file": "project_service.report_consent_change.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReportConsentChange", - "fullName": "google.cloud.discoveryengine.v1alpha.ProjectService.ReportConsentChange", - "async": true, - "parameters": [ - { - "name": "consent_change_action", - "type": ".google.cloud.discoveryengine.v1alpha.ReportConsentChangeRequest.ConsentChangeAction" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "service_term_id", - "type": "TYPE_STRING" - }, - { - "name": "service_term_version", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.Project", - "client": { - "shortName": "ProjectServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.ProjectServiceClient" - }, - "method": { - "shortName": "ReportConsentChange", - "fullName": "google.cloud.discoveryengine.v1alpha.ProjectService.ReportConsentChange", - "service": { - "shortName": "ProjectService", - "fullName": "google.cloud.discoveryengine.v1alpha.ProjectService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_RankService_Rank_async", - "title": "AclConfigService rank Sample", - "origin": "API_DEFINITION", - "description": " Ranks a list of text records based on the given input query.", - "canonical": true, - "file": "rank_service.rank.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 98, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Rank", - "fullName": "google.cloud.discoveryengine.v1alpha.RankService.Rank", - "async": true, - "parameters": [ - { - "name": "ranking_config", - "type": "TYPE_STRING" - }, - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "top_n", - "type": "TYPE_INT32" - }, - { - "name": "query", - "type": "TYPE_STRING" - }, - { - "name": "records", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "ignore_record_details_in_response", - "type": "TYPE_BOOL" - }, - { - "name": "user_labels", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.RankResponse", - "client": { - "shortName": "RankServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.RankServiceClient" - }, - "method": { - "shortName": "Rank", - "fullName": "google.cloud.discoveryengine.v1alpha.RankService.Rank", - "service": { - "shortName": "RankService", - "fullName": "google.cloud.discoveryengine.v1alpha.RankService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_RecommendationService_Recommend_async", - "title": "AclConfigService recommend Sample", - "origin": "API_DEFINITION", - "description": " Makes a recommendation, which requires a contextual user event.", - "canonical": true, - "file": "recommendation_service.recommend.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 167, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Recommend", - "fullName": "google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend", - "async": true, - "parameters": [ - { - "name": "serving_config", - "type": "TYPE_STRING" - }, - { - "name": "user_event", - "type": ".google.cloud.discoveryengine.v1alpha.UserEvent" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "params", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "user_labels", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.RecommendResponse", - "client": { - "shortName": "RecommendationServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.RecommendationServiceClient" - }, - "method": { - "shortName": "Recommend", - "fullName": "google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend", - "service": { - "shortName": "RecommendationService", - "fullName": "google.cloud.discoveryengine.v1alpha.RecommendationService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_SampleQueryService_GetSampleQuery_async", - "title": "AclConfigService getSampleQuery Sample", - "origin": "API_DEFINITION", - "description": " Gets a [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery].", - "canonical": true, - "file": "sample_query_service.get_sample_query.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSampleQuery", - "fullName": "google.cloud.discoveryengine.v1alpha.SampleQueryService.GetSampleQuery", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.SampleQuery", - "client": { - "shortName": "SampleQueryServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.SampleQueryServiceClient" - }, - "method": { - "shortName": "GetSampleQuery", - "fullName": "google.cloud.discoveryengine.v1alpha.SampleQueryService.GetSampleQuery", - "service": { - "shortName": "SampleQueryService", - "fullName": "google.cloud.discoveryengine.v1alpha.SampleQueryService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_SampleQueryService_ListSampleQueries_async", - "title": "AclConfigService listSampleQueries Sample", - "origin": "API_DEFINITION", - "description": " Gets a list of [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s.", - "canonical": true, - "file": "sample_query_service.list_sample_queries.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSampleQueries", - "fullName": "google.cloud.discoveryengine.v1alpha.SampleQueryService.ListSampleQueries", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.ListSampleQueriesResponse", - "client": { - "shortName": "SampleQueryServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.SampleQueryServiceClient" - }, - "method": { - "shortName": "ListSampleQueries", - "fullName": "google.cloud.discoveryengine.v1alpha.SampleQueryService.ListSampleQueries", - "service": { - "shortName": "SampleQueryService", - "fullName": "google.cloud.discoveryengine.v1alpha.SampleQueryService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_SampleQueryService_CreateSampleQuery_async", - "title": "AclConfigService createSampleQuery Sample", - "origin": "API_DEFINITION", - "description": " Creates a [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]", - "canonical": true, - "file": "sample_query_service.create_sample_query.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSampleQuery", - "fullName": "google.cloud.discoveryengine.v1alpha.SampleQueryService.CreateSampleQuery", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "sample_query", - "type": ".google.cloud.discoveryengine.v1alpha.SampleQuery" - }, - { - "name": "sample_query_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.SampleQuery", - "client": { - "shortName": "SampleQueryServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.SampleQueryServiceClient" - }, - "method": { - "shortName": "CreateSampleQuery", - "fullName": "google.cloud.discoveryengine.v1alpha.SampleQueryService.CreateSampleQuery", - "service": { - "shortName": "SampleQueryService", - "fullName": "google.cloud.discoveryengine.v1alpha.SampleQueryService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_SampleQueryService_UpdateSampleQuery_async", - "title": "AclConfigService updateSampleQuery Sample", - "origin": "API_DEFINITION", - "description": " Updates a [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery].", - "canonical": true, - "file": "sample_query_service.update_sample_query.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSampleQuery", - "fullName": "google.cloud.discoveryengine.v1alpha.SampleQueryService.UpdateSampleQuery", - "async": true, - "parameters": [ - { - "name": "sample_query", - "type": ".google.cloud.discoveryengine.v1alpha.SampleQuery" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.SampleQuery", - "client": { - "shortName": "SampleQueryServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.SampleQueryServiceClient" - }, - "method": { - "shortName": "UpdateSampleQuery", - "fullName": "google.cloud.discoveryengine.v1alpha.SampleQueryService.UpdateSampleQuery", - "service": { - "shortName": "SampleQueryService", - "fullName": "google.cloud.discoveryengine.v1alpha.SampleQueryService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_SampleQueryService_DeleteSampleQuery_async", - "title": "AclConfigService deleteSampleQuery Sample", - "origin": "API_DEFINITION", - "description": " Deletes a [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery].", - "canonical": true, - "file": "sample_query_service.delete_sample_query.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSampleQuery", - "fullName": "google.cloud.discoveryengine.v1alpha.SampleQueryService.DeleteSampleQuery", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "SampleQueryServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.SampleQueryServiceClient" - }, - "method": { - "shortName": "DeleteSampleQuery", - "fullName": "google.cloud.discoveryengine.v1alpha.SampleQueryService.DeleteSampleQuery", - "service": { - "shortName": "SampleQueryService", - "fullName": "google.cloud.discoveryengine.v1alpha.SampleQueryService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_SampleQueryService_ImportSampleQueries_async", - "title": "AclConfigService importSampleQueries Sample", - "origin": "API_DEFINITION", - "description": " Bulk import of multiple [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s. Sample queries that already exist may be deleted. Note: It is possible for a subset of the [SampleQuery][google.cloud.discoveryengine.v1alpha.SampleQuery]s to be successfully imported.", - "canonical": true, - "file": "sample_query_service.import_sample_queries.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportSampleQueries", - "fullName": "google.cloud.discoveryengine.v1alpha.SampleQueryService.ImportSampleQueries", - "async": true, - "parameters": [ - { - "name": "inline_source", - "type": ".google.cloud.discoveryengine.v1alpha.ImportSampleQueriesRequest.InlineSource" - }, - { - "name": "gcs_source", - "type": ".google.cloud.discoveryengine.v1alpha.GcsSource" - }, - { - "name": "bigquery_source", - "type": ".google.cloud.discoveryengine.v1alpha.BigQuerySource" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "error_config", - "type": ".google.cloud.discoveryengine.v1alpha.ImportErrorConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SampleQueryServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.SampleQueryServiceClient" - }, - "method": { - "shortName": "ImportSampleQueries", - "fullName": "google.cloud.discoveryengine.v1alpha.SampleQueryService.ImportSampleQueries", - "service": { - "shortName": "SampleQueryService", - "fullName": "google.cloud.discoveryengine.v1alpha.SampleQueryService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_SampleQuerySetService_GetSampleQuerySet_async", - "title": "AclConfigService getSampleQuerySet Sample", - "origin": "API_DEFINITION", - "description": " Gets a [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet].", - "canonical": true, - "file": "sample_query_set_service.get_sample_query_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSampleQuerySet", - "fullName": "google.cloud.discoveryengine.v1alpha.SampleQuerySetService.GetSampleQuerySet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.SampleQuerySet", - "client": { - "shortName": "SampleQuerySetServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceClient" - }, - "method": { - "shortName": "GetSampleQuerySet", - "fullName": "google.cloud.discoveryengine.v1alpha.SampleQuerySetService.GetSampleQuerySet", - "service": { - "shortName": "SampleQuerySetService", - "fullName": "google.cloud.discoveryengine.v1alpha.SampleQuerySetService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_SampleQuerySetService_ListSampleQuerySets_async", - "title": "AclConfigService listSampleQuerySets Sample", - "origin": "API_DEFINITION", - "description": " Gets a list of [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]s.", - "canonical": true, - "file": "sample_query_set_service.list_sample_query_sets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSampleQuerySets", - "fullName": "google.cloud.discoveryengine.v1alpha.SampleQuerySetService.ListSampleQuerySets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.ListSampleQuerySetsResponse", - "client": { - "shortName": "SampleQuerySetServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceClient" - }, - "method": { - "shortName": "ListSampleQuerySets", - "fullName": "google.cloud.discoveryengine.v1alpha.SampleQuerySetService.ListSampleQuerySets", - "service": { - "shortName": "SampleQuerySetService", - "fullName": "google.cloud.discoveryengine.v1alpha.SampleQuerySetService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_SampleQuerySetService_CreateSampleQuerySet_async", - "title": "AclConfigService createSampleQuerySet Sample", - "origin": "API_DEFINITION", - "description": " Creates a [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet]", - "canonical": true, - "file": "sample_query_set_service.create_sample_query_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSampleQuerySet", - "fullName": "google.cloud.discoveryengine.v1alpha.SampleQuerySetService.CreateSampleQuerySet", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "sample_query_set", - "type": ".google.cloud.discoveryengine.v1alpha.SampleQuerySet" - }, - { - "name": "sample_query_set_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.SampleQuerySet", - "client": { - "shortName": "SampleQuerySetServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceClient" - }, - "method": { - "shortName": "CreateSampleQuerySet", - "fullName": "google.cloud.discoveryengine.v1alpha.SampleQuerySetService.CreateSampleQuerySet", - "service": { - "shortName": "SampleQuerySetService", - "fullName": "google.cloud.discoveryengine.v1alpha.SampleQuerySetService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_SampleQuerySetService_UpdateSampleQuerySet_async", - "title": "AclConfigService updateSampleQuerySet Sample", - "origin": "API_DEFINITION", - "description": " Updates a [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet].", - "canonical": true, - "file": "sample_query_set_service.update_sample_query_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSampleQuerySet", - "fullName": "google.cloud.discoveryengine.v1alpha.SampleQuerySetService.UpdateSampleQuerySet", - "async": true, - "parameters": [ - { - "name": "sample_query_set", - "type": ".google.cloud.discoveryengine.v1alpha.SampleQuerySet" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.SampleQuerySet", - "client": { - "shortName": "SampleQuerySetServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceClient" - }, - "method": { - "shortName": "UpdateSampleQuerySet", - "fullName": "google.cloud.discoveryengine.v1alpha.SampleQuerySetService.UpdateSampleQuerySet", - "service": { - "shortName": "SampleQuerySetService", - "fullName": "google.cloud.discoveryengine.v1alpha.SampleQuerySetService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_SampleQuerySetService_DeleteSampleQuerySet_async", - "title": "AclConfigService deleteSampleQuerySet Sample", - "origin": "API_DEFINITION", - "description": " Deletes a [SampleQuerySet][google.cloud.discoveryengine.v1alpha.SampleQuerySet].", - "canonical": true, - "file": "sample_query_set_service.delete_sample_query_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSampleQuerySet", - "fullName": "google.cloud.discoveryengine.v1alpha.SampleQuerySetService.DeleteSampleQuerySet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "SampleQuerySetServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.SampleQuerySetServiceClient" - }, - "method": { - "shortName": "DeleteSampleQuerySet", - "fullName": "google.cloud.discoveryengine.v1alpha.SampleQuerySetService.DeleteSampleQuerySet", - "service": { - "shortName": "SampleQuerySetService", - "fullName": "google.cloud.discoveryengine.v1alpha.SampleQuerySetService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_SchemaService_GetSchema_async", - "title": "AclConfigService getSchema Sample", - "origin": "API_DEFINITION", - "description": " Gets a [Schema][google.cloud.discoveryengine.v1alpha.Schema].", - "canonical": true, - "file": "schema_service.get_schema.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSchema", - "fullName": "google.cloud.discoveryengine.v1alpha.SchemaService.GetSchema", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.Schema", - "client": { - "shortName": "SchemaServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.SchemaServiceClient" - }, - "method": { - "shortName": "GetSchema", - "fullName": "google.cloud.discoveryengine.v1alpha.SchemaService.GetSchema", - "service": { - "shortName": "SchemaService", - "fullName": "google.cloud.discoveryengine.v1alpha.SchemaService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_SchemaService_ListSchemas_async", - "title": "AclConfigService listSchemas Sample", - "origin": "API_DEFINITION", - "description": " Gets a list of [Schema][google.cloud.discoveryengine.v1alpha.Schema]s.", - "canonical": true, - "file": "schema_service.list_schemas.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSchemas", - "fullName": "google.cloud.discoveryengine.v1alpha.SchemaService.ListSchemas", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.ListSchemasResponse", - "client": { - "shortName": "SchemaServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.SchemaServiceClient" - }, - "method": { - "shortName": "ListSchemas", - "fullName": "google.cloud.discoveryengine.v1alpha.SchemaService.ListSchemas", - "service": { - "shortName": "SchemaService", - "fullName": "google.cloud.discoveryengine.v1alpha.SchemaService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_SchemaService_CreateSchema_async", - "title": "AclConfigService createSchema Sample", - "origin": "API_DEFINITION", - "description": " Creates a [Schema][google.cloud.discoveryengine.v1alpha.Schema].", - "canonical": true, - "file": "schema_service.create_schema.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSchema", - "fullName": "google.cloud.discoveryengine.v1alpha.SchemaService.CreateSchema", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "schema", - "type": ".google.cloud.discoveryengine.v1alpha.Schema" - }, - { - "name": "schema_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SchemaServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.SchemaServiceClient" - }, - "method": { - "shortName": "CreateSchema", - "fullName": "google.cloud.discoveryengine.v1alpha.SchemaService.CreateSchema", - "service": { - "shortName": "SchemaService", - "fullName": "google.cloud.discoveryengine.v1alpha.SchemaService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_SchemaService_UpdateSchema_async", - "title": "AclConfigService updateSchema Sample", - "origin": "API_DEFINITION", - "description": " Updates a [Schema][google.cloud.discoveryengine.v1alpha.Schema].", - "canonical": true, - "file": "schema_service.update_schema.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSchema", - "fullName": "google.cloud.discoveryengine.v1alpha.SchemaService.UpdateSchema", - "async": true, - "parameters": [ - { - "name": "schema", - "type": ".google.cloud.discoveryengine.v1alpha.Schema" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SchemaServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.SchemaServiceClient" - }, - "method": { - "shortName": "UpdateSchema", - "fullName": "google.cloud.discoveryengine.v1alpha.SchemaService.UpdateSchema", - "service": { - "shortName": "SchemaService", - "fullName": "google.cloud.discoveryengine.v1alpha.SchemaService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_SchemaService_DeleteSchema_async", - "title": "AclConfigService deleteSchema Sample", - "origin": "API_DEFINITION", - "description": " Deletes a [Schema][google.cloud.discoveryengine.v1alpha.Schema].", - "canonical": true, - "file": "schema_service.delete_schema.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSchema", - "fullName": "google.cloud.discoveryengine.v1alpha.SchemaService.DeleteSchema", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SchemaServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.SchemaServiceClient" - }, - "method": { - "shortName": "DeleteSchema", - "fullName": "google.cloud.discoveryengine.v1alpha.SchemaService.DeleteSchema", - "service": { - "shortName": "SchemaService", - "fullName": "google.cloud.discoveryengine.v1alpha.SchemaService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_SearchService_Search_async", - "title": "AclConfigService search Sample", - "origin": "API_DEFINITION", - "description": " Performs a search.", - "canonical": true, - "file": "search_service.search.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 397, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Search", - "fullName": "google.cloud.discoveryengine.v1alpha.SearchService.Search", - "async": true, - "parameters": [ - { - "name": "serving_config", - "type": "TYPE_STRING" - }, - { - "name": "branch", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": "TYPE_STRING" - }, - { - "name": "image_query", - "type": ".google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "offset", - "type": "TYPE_INT32" - }, - { - "name": "data_store_specs", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "canonical_filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "user_info", - "type": ".google.cloud.discoveryengine.v1alpha.UserInfo" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "region_code", - "type": "TYPE_STRING" - }, - { - "name": "facet_specs", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "boost_spec", - "type": ".google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec" - }, - { - "name": "params", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "query_expansion_spec", - "type": ".google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec" - }, - { - "name": "spell_correction_spec", - "type": ".google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec" - }, - { - "name": "user_pseudo_id", - "type": "TYPE_STRING" - }, - { - "name": "content_search_spec", - "type": ".google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec" - }, - { - "name": "embedding_spec", - "type": ".google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec" - }, - { - "name": "ranking_expression", - "type": "TYPE_STRING" - }, - { - "name": "ranking_expression_backend", - "type": ".google.cloud.discoveryengine.v1alpha.SearchRequest.RankingExpressionBackend" - }, - { - "name": "safe_search", - "type": "TYPE_BOOL" - }, - { - "name": "user_labels", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "natural_language_query_understanding_spec", - "type": ".google.cloud.discoveryengine.v1alpha.SearchRequest.NaturalLanguageQueryUnderstandingSpec" - }, - { - "name": "search_as_you_type_spec", - "type": ".google.cloud.discoveryengine.v1alpha.SearchRequest.SearchAsYouTypeSpec" - }, - { - "name": "custom_fine_tuning_spec", - "type": ".google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec" - }, - { - "name": "session", - "type": "TYPE_STRING" - }, - { - "name": "session_spec", - "type": ".google.cloud.discoveryengine.v1alpha.SearchRequest.SessionSpec" - }, - { - "name": "relevance_threshold", - "type": ".google.cloud.discoveryengine.v1alpha.SearchRequest.RelevanceThreshold" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.SearchResponse", - "client": { - "shortName": "SearchServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.SearchServiceClient" - }, - "method": { - "shortName": "Search", - "fullName": "google.cloud.discoveryengine.v1alpha.SearchService.Search", - "service": { - "shortName": "SearchService", - "fullName": "google.cloud.discoveryengine.v1alpha.SearchService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_SearchTuningService_TrainCustomModel_async", - "title": "AclConfigService trainCustomModel Sample", - "origin": "API_DEFINITION", - "description": " Trains a custom model.", - "canonical": true, - "file": "search_tuning_service.train_custom_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TrainCustomModel", - "fullName": "google.cloud.discoveryengine.v1alpha.SearchTuningService.TrainCustomModel", - "async": true, - "parameters": [ - { - "name": "gcs_training_input", - "type": ".google.cloud.discoveryengine.v1alpha.TrainCustomModelRequest.GcsTrainingInput" - }, - { - "name": "data_store", - "type": "TYPE_STRING" - }, - { - "name": "model_type", - "type": "TYPE_STRING" - }, - { - "name": "error_config", - "type": ".google.cloud.discoveryengine.v1alpha.ImportErrorConfig" - }, - { - "name": "model_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SearchTuningServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.SearchTuningServiceClient" - }, - "method": { - "shortName": "TrainCustomModel", - "fullName": "google.cloud.discoveryengine.v1alpha.SearchTuningService.TrainCustomModel", - "service": { - "shortName": "SearchTuningService", - "fullName": "google.cloud.discoveryengine.v1alpha.SearchTuningService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_SearchTuningService_ListCustomModels_async", - "title": "AclConfigService listCustomModels Sample", - "origin": "API_DEFINITION", - "description": " Gets a list of all the custom models.", - "canonical": true, - "file": "search_tuning_service.list_custom_models.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCustomModels", - "fullName": "google.cloud.discoveryengine.v1alpha.SearchTuningService.ListCustomModels", - "async": true, - "parameters": [ - { - "name": "data_store", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.ListCustomModelsResponse", - "client": { - "shortName": "SearchTuningServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.SearchTuningServiceClient" - }, - "method": { - "shortName": "ListCustomModels", - "fullName": "google.cloud.discoveryengine.v1alpha.SearchTuningService.ListCustomModels", - "service": { - "shortName": "SearchTuningService", - "fullName": "google.cloud.discoveryengine.v1alpha.SearchTuningService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_ServingConfigService_UpdateServingConfig_async", - "title": "AclConfigService updateServingConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates a ServingConfig. Returns a NOT_FOUND error if the ServingConfig does not exist.", - "canonical": true, - "file": "serving_config_service.update_serving_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateServingConfig", - "fullName": "google.cloud.discoveryengine.v1alpha.ServingConfigService.UpdateServingConfig", - "async": true, - "parameters": [ - { - "name": "serving_config", - "type": ".google.cloud.discoveryengine.v1alpha.ServingConfig" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.ServingConfig", - "client": { - "shortName": "ServingConfigServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.ServingConfigServiceClient" - }, - "method": { - "shortName": "UpdateServingConfig", - "fullName": "google.cloud.discoveryengine.v1alpha.ServingConfigService.UpdateServingConfig", - "service": { - "shortName": "ServingConfigService", - "fullName": "google.cloud.discoveryengine.v1alpha.ServingConfigService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_ServingConfigService_GetServingConfig_async", - "title": "AclConfigService getServingConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets a ServingConfig. Returns a NotFound error if the ServingConfig does not exist.", - "canonical": true, - "file": "serving_config_service.get_serving_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetServingConfig", - "fullName": "google.cloud.discoveryengine.v1alpha.ServingConfigService.GetServingConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.ServingConfig", - "client": { - "shortName": "ServingConfigServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.ServingConfigServiceClient" - }, - "method": { - "shortName": "GetServingConfig", - "fullName": "google.cloud.discoveryengine.v1alpha.ServingConfigService.GetServingConfig", - "service": { - "shortName": "ServingConfigService", - "fullName": "google.cloud.discoveryengine.v1alpha.ServingConfigService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_ServingConfigService_ListServingConfigs_async", - "title": "AclConfigService listServingConfigs Sample", - "origin": "API_DEFINITION", - "description": " Lists all ServingConfigs linked to this dataStore.", - "canonical": true, - "file": "serving_config_service.list_serving_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListServingConfigs", - "fullName": "google.cloud.discoveryengine.v1alpha.ServingConfigService.ListServingConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.ListServingConfigsResponse", - "client": { - "shortName": "ServingConfigServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.ServingConfigServiceClient" - }, - "method": { - "shortName": "ListServingConfigs", - "fullName": "google.cloud.discoveryengine.v1alpha.ServingConfigService.ListServingConfigs", - "service": { - "shortName": "ServingConfigService", - "fullName": "google.cloud.discoveryengine.v1alpha.ServingConfigService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_SessionService_CreateSession_async", - "title": "AclConfigService createSession Sample", - "origin": "API_DEFINITION", - "description": " Creates a Session. If the [Session][google.cloud.discoveryengine.v1alpha.Session] to create already exists, an ALREADY_EXISTS error is returned.", - "canonical": true, - "file": "session_service.create_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSession", - "fullName": "google.cloud.discoveryengine.v1alpha.SessionService.CreateSession", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "session", - "type": ".google.cloud.discoveryengine.v1alpha.Session" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.Session", - "client": { - "shortName": "SessionServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.SessionServiceClient" - }, - "method": { - "shortName": "CreateSession", - "fullName": "google.cloud.discoveryengine.v1alpha.SessionService.CreateSession", - "service": { - "shortName": "SessionService", - "fullName": "google.cloud.discoveryengine.v1alpha.SessionService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_SessionService_DeleteSession_async", - "title": "AclConfigService deleteSession Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Session. If the [Session][google.cloud.discoveryengine.v1alpha.Session] to delete does not exist, a NOT_FOUND error is returned.", - "canonical": true, - "file": "session_service.delete_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSession", - "fullName": "google.cloud.discoveryengine.v1alpha.SessionService.DeleteSession", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "SessionServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.SessionServiceClient" - }, - "method": { - "shortName": "DeleteSession", - "fullName": "google.cloud.discoveryengine.v1alpha.SessionService.DeleteSession", - "service": { - "shortName": "SessionService", - "fullName": "google.cloud.discoveryengine.v1alpha.SessionService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_SessionService_UpdateSession_async", - "title": "AclConfigService updateSession Sample", - "origin": "API_DEFINITION", - "description": " Updates a Session. [Session][google.cloud.discoveryengine.v1alpha.Session] action type cannot be changed. If the [Session][google.cloud.discoveryengine.v1alpha.Session] to update does not exist, a NOT_FOUND error is returned.", - "canonical": true, - "file": "session_service.update_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSession", - "fullName": "google.cloud.discoveryengine.v1alpha.SessionService.UpdateSession", - "async": true, - "parameters": [ - { - "name": "session", - "type": ".google.cloud.discoveryengine.v1alpha.Session" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.Session", - "client": { - "shortName": "SessionServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.SessionServiceClient" - }, - "method": { - "shortName": "UpdateSession", - "fullName": "google.cloud.discoveryengine.v1alpha.SessionService.UpdateSession", - "service": { - "shortName": "SessionService", - "fullName": "google.cloud.discoveryengine.v1alpha.SessionService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_SessionService_GetSession_async", - "title": "AclConfigService getSession Sample", - "origin": "API_DEFINITION", - "description": " Gets a Session.", - "canonical": true, - "file": "session_service.get_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSession", - "fullName": "google.cloud.discoveryengine.v1alpha.SessionService.GetSession", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "include_answer_details", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.Session", - "client": { - "shortName": "SessionServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.SessionServiceClient" - }, - "method": { - "shortName": "GetSession", - "fullName": "google.cloud.discoveryengine.v1alpha.SessionService.GetSession", - "service": { - "shortName": "SessionService", - "fullName": "google.cloud.discoveryengine.v1alpha.SessionService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_SessionService_ListSessions_async", - "title": "AclConfigService listSessions Sample", - "origin": "API_DEFINITION", - "description": " Lists all Sessions by their parent [DataStore][google.cloud.discoveryengine.v1alpha.DataStore].", - "canonical": true, - "file": "session_service.list_sessions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 100, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSessions", - "fullName": "google.cloud.discoveryengine.v1alpha.SessionService.ListSessions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.ListSessionsResponse", - "client": { - "shortName": "SessionServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.SessionServiceClient" - }, - "method": { - "shortName": "ListSessions", - "fullName": "google.cloud.discoveryengine.v1alpha.SessionService.ListSessions", - "service": { - "shortName": "SessionService", - "fullName": "google.cloud.discoveryengine.v1alpha.SessionService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_SessionService_ListFiles_async", - "title": "AclConfigService listFiles Sample", - "origin": "API_DEFINITION", - "description": " Lists metadata for all files in the current session.", - "canonical": true, - "file": "session_service.list_files.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 92, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFiles", - "fullName": "google.cloud.discoveryengine.v1alpha.SessionService.ListFiles", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.ListFilesResponse", - "client": { - "shortName": "SessionServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.SessionServiceClient" - }, - "method": { - "shortName": "ListFiles", - "fullName": "google.cloud.discoveryengine.v1alpha.SessionService.ListFiles", - "service": { - "shortName": "SessionService", - "fullName": "google.cloud.discoveryengine.v1alpha.SessionService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_SiteSearchEngineService_GetSiteSearchEngine_async", - "title": "AclConfigService getSiteSearchEngine Sample", - "origin": "API_DEFINITION", - "description": " Gets the [SiteSearchEngine][google.cloud.discoveryengine.v1alpha.SiteSearchEngine].", - "canonical": true, - "file": "site_search_engine_service.get_site_search_engine.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSiteSearchEngine", - "fullName": "google.cloud.discoveryengine.v1alpha.SiteSearchEngineService.GetSiteSearchEngine", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.SiteSearchEngine", - "client": { - "shortName": "SiteSearchEngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.SiteSearchEngineServiceClient" - }, - "method": { - "shortName": "GetSiteSearchEngine", - "fullName": "google.cloud.discoveryengine.v1alpha.SiteSearchEngineService.GetSiteSearchEngine", - "service": { - "shortName": "SiteSearchEngineService", - "fullName": "google.cloud.discoveryengine.v1alpha.SiteSearchEngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_SiteSearchEngineService_CreateTargetSite_async", - "title": "AclConfigService createTargetSite Sample", - "origin": "API_DEFINITION", - "description": " Creates a [TargetSite][google.cloud.discoveryengine.v1alpha.TargetSite].", - "canonical": true, - "file": "site_search_engine_service.create_target_site.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTargetSite", - "fullName": "google.cloud.discoveryengine.v1alpha.SiteSearchEngineService.CreateTargetSite", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "target_site", - "type": ".google.cloud.discoveryengine.v1alpha.TargetSite" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SiteSearchEngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.SiteSearchEngineServiceClient" - }, - "method": { - "shortName": "CreateTargetSite", - "fullName": "google.cloud.discoveryengine.v1alpha.SiteSearchEngineService.CreateTargetSite", - "service": { - "shortName": "SiteSearchEngineService", - "fullName": "google.cloud.discoveryengine.v1alpha.SiteSearchEngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_SiteSearchEngineService_BatchCreateTargetSites_async", - "title": "AclConfigService batchCreateTargetSites Sample", - "origin": "API_DEFINITION", - "description": " Creates [TargetSite][google.cloud.discoveryengine.v1alpha.TargetSite] in a batch.", - "canonical": true, - "file": "site_search_engine_service.batch_create_target_sites.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCreateTargetSites", - "fullName": "google.cloud.discoveryengine.v1alpha.SiteSearchEngineService.BatchCreateTargetSites", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SiteSearchEngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.SiteSearchEngineServiceClient" - }, - "method": { - "shortName": "BatchCreateTargetSites", - "fullName": "google.cloud.discoveryengine.v1alpha.SiteSearchEngineService.BatchCreateTargetSites", - "service": { - "shortName": "SiteSearchEngineService", - "fullName": "google.cloud.discoveryengine.v1alpha.SiteSearchEngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_SiteSearchEngineService_GetTargetSite_async", - "title": "AclConfigService getTargetSite Sample", - "origin": "API_DEFINITION", - "description": " Gets a [TargetSite][google.cloud.discoveryengine.v1alpha.TargetSite].", - "canonical": true, - "file": "site_search_engine_service.get_target_site.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTargetSite", - "fullName": "google.cloud.discoveryengine.v1alpha.SiteSearchEngineService.GetTargetSite", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.TargetSite", - "client": { - "shortName": "SiteSearchEngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.SiteSearchEngineServiceClient" - }, - "method": { - "shortName": "GetTargetSite", - "fullName": "google.cloud.discoveryengine.v1alpha.SiteSearchEngineService.GetTargetSite", - "service": { - "shortName": "SiteSearchEngineService", - "fullName": "google.cloud.discoveryengine.v1alpha.SiteSearchEngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_SiteSearchEngineService_UpdateTargetSite_async", - "title": "AclConfigService updateTargetSite Sample", - "origin": "API_DEFINITION", - "description": " Updates a [TargetSite][google.cloud.discoveryengine.v1alpha.TargetSite].", - "canonical": true, - "file": "site_search_engine_service.update_target_site.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTargetSite", - "fullName": "google.cloud.discoveryengine.v1alpha.SiteSearchEngineService.UpdateTargetSite", - "async": true, - "parameters": [ - { - "name": "target_site", - "type": ".google.cloud.discoveryengine.v1alpha.TargetSite" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SiteSearchEngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.SiteSearchEngineServiceClient" - }, - "method": { - "shortName": "UpdateTargetSite", - "fullName": "google.cloud.discoveryengine.v1alpha.SiteSearchEngineService.UpdateTargetSite", - "service": { - "shortName": "SiteSearchEngineService", - "fullName": "google.cloud.discoveryengine.v1alpha.SiteSearchEngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_SiteSearchEngineService_DeleteTargetSite_async", - "title": "AclConfigService deleteTargetSite Sample", - "origin": "API_DEFINITION", - "description": " Deletes a [TargetSite][google.cloud.discoveryengine.v1alpha.TargetSite].", - "canonical": true, - "file": "site_search_engine_service.delete_target_site.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTargetSite", - "fullName": "google.cloud.discoveryengine.v1alpha.SiteSearchEngineService.DeleteTargetSite", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SiteSearchEngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.SiteSearchEngineServiceClient" - }, - "method": { - "shortName": "DeleteTargetSite", - "fullName": "google.cloud.discoveryengine.v1alpha.SiteSearchEngineService.DeleteTargetSite", - "service": { - "shortName": "SiteSearchEngineService", - "fullName": "google.cloud.discoveryengine.v1alpha.SiteSearchEngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_SiteSearchEngineService_ListTargetSites_async", - "title": "AclConfigService listTargetSites Sample", - "origin": "API_DEFINITION", - "description": " Gets a list of [TargetSite][google.cloud.discoveryengine.v1alpha.TargetSite]s.", - "canonical": true, - "file": "site_search_engine_service.list_target_sites.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTargetSites", - "fullName": "google.cloud.discoveryengine.v1alpha.SiteSearchEngineService.ListTargetSites", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.ListTargetSitesResponse", - "client": { - "shortName": "SiteSearchEngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.SiteSearchEngineServiceClient" - }, - "method": { - "shortName": "ListTargetSites", - "fullName": "google.cloud.discoveryengine.v1alpha.SiteSearchEngineService.ListTargetSites", - "service": { - "shortName": "SiteSearchEngineService", - "fullName": "google.cloud.discoveryengine.v1alpha.SiteSearchEngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_SiteSearchEngineService_EnableAdvancedSiteSearch_async", - "title": "AclConfigService enableAdvancedSiteSearch Sample", - "origin": "API_DEFINITION", - "description": " Upgrade from basic site search to advanced site search.", - "canonical": true, - "file": "site_search_engine_service.enable_advanced_site_search.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "EnableAdvancedSiteSearch", - "fullName": "google.cloud.discoveryengine.v1alpha.SiteSearchEngineService.EnableAdvancedSiteSearch", - "async": true, - "parameters": [ - { - "name": "site_search_engine", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SiteSearchEngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.SiteSearchEngineServiceClient" - }, - "method": { - "shortName": "EnableAdvancedSiteSearch", - "fullName": "google.cloud.discoveryengine.v1alpha.SiteSearchEngineService.EnableAdvancedSiteSearch", - "service": { - "shortName": "SiteSearchEngineService", - "fullName": "google.cloud.discoveryengine.v1alpha.SiteSearchEngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_SiteSearchEngineService_DisableAdvancedSiteSearch_async", - "title": "AclConfigService disableAdvancedSiteSearch Sample", - "origin": "API_DEFINITION", - "description": " Downgrade from advanced site search to basic site search.", - "canonical": true, - "file": "site_search_engine_service.disable_advanced_site_search.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DisableAdvancedSiteSearch", - "fullName": "google.cloud.discoveryengine.v1alpha.SiteSearchEngineService.DisableAdvancedSiteSearch", - "async": true, - "parameters": [ - { - "name": "site_search_engine", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SiteSearchEngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.SiteSearchEngineServiceClient" - }, - "method": { - "shortName": "DisableAdvancedSiteSearch", - "fullName": "google.cloud.discoveryengine.v1alpha.SiteSearchEngineService.DisableAdvancedSiteSearch", - "service": { - "shortName": "SiteSearchEngineService", - "fullName": "google.cloud.discoveryengine.v1alpha.SiteSearchEngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_SiteSearchEngineService_RecrawlUris_async", - "title": "AclConfigService recrawlUris Sample", - "origin": "API_DEFINITION", - "description": " Request on-demand recrawl for a list of URIs.", - "canonical": true, - "file": "site_search_engine_service.recrawl_uris.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RecrawlUris", - "fullName": "google.cloud.discoveryengine.v1alpha.SiteSearchEngineService.RecrawlUris", - "async": true, - "parameters": [ - { - "name": "site_search_engine", - "type": "TYPE_STRING" - }, - { - "name": "uris", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SiteSearchEngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.SiteSearchEngineServiceClient" - }, - "method": { - "shortName": "RecrawlUris", - "fullName": "google.cloud.discoveryengine.v1alpha.SiteSearchEngineService.RecrawlUris", - "service": { - "shortName": "SiteSearchEngineService", - "fullName": "google.cloud.discoveryengine.v1alpha.SiteSearchEngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_SiteSearchEngineService_BatchVerifyTargetSites_async", - "title": "AclConfigService batchVerifyTargetSites Sample", - "origin": "API_DEFINITION", - "description": " Verify target sites' ownership and validity. This API sends all the target sites under site search engine for verification.", - "canonical": true, - "file": "site_search_engine_service.batch_verify_target_sites.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchVerifyTargetSites", - "fullName": "google.cloud.discoveryengine.v1alpha.SiteSearchEngineService.BatchVerifyTargetSites", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SiteSearchEngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.SiteSearchEngineServiceClient" - }, - "method": { - "shortName": "BatchVerifyTargetSites", - "fullName": "google.cloud.discoveryengine.v1alpha.SiteSearchEngineService.BatchVerifyTargetSites", - "service": { - "shortName": "SiteSearchEngineService", - "fullName": "google.cloud.discoveryengine.v1alpha.SiteSearchEngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_SiteSearchEngineService_FetchDomainVerificationStatus_async", - "title": "AclConfigService fetchDomainVerificationStatus Sample", - "origin": "API_DEFINITION", - "description": " Returns list of target sites with its domain verification status. This method can only be called under data store with BASIC_SITE_SEARCH state at the moment.", - "canonical": true, - "file": "site_search_engine_service.fetch_domain_verification_status.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchDomainVerificationStatus", - "fullName": "google.cloud.discoveryengine.v1alpha.SiteSearchEngineService.FetchDomainVerificationStatus", - "async": true, - "parameters": [ - { - "name": "site_search_engine", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.FetchDomainVerificationStatusResponse", - "client": { - "shortName": "SiteSearchEngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.SiteSearchEngineServiceClient" - }, - "method": { - "shortName": "FetchDomainVerificationStatus", - "fullName": "google.cloud.discoveryengine.v1alpha.SiteSearchEngineService.FetchDomainVerificationStatus", - "service": { - "shortName": "SiteSearchEngineService", - "fullName": "google.cloud.discoveryengine.v1alpha.SiteSearchEngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_SiteSearchEngineService_SetUriPatternDocumentData_async", - "title": "AclConfigService setUriPatternDocumentData Sample", - "origin": "API_DEFINITION", - "description": " Sets the URI Pattern to Document data mapping for an Advanced Site Search DataStore.", - "canonical": true, - "file": "site_search_engine_service.set_uri_pattern_document_data.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 95, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetUriPatternDocumentData", - "fullName": "google.cloud.discoveryengine.v1alpha.SiteSearchEngineService.SetUriPatternDocumentData", - "async": true, - "parameters": [ - { - "name": "site_search_engine", - "type": "TYPE_STRING" - }, - { - "name": "document_data_map", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "empty_document_data_map", - "type": "TYPE_BOOL" - }, - { - "name": "schema", - "type": ".google.protobuf.Struct" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SiteSearchEngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.SiteSearchEngineServiceClient" - }, - "method": { - "shortName": "SetUriPatternDocumentData", - "fullName": "google.cloud.discoveryengine.v1alpha.SiteSearchEngineService.SetUriPatternDocumentData", - "service": { - "shortName": "SiteSearchEngineService", - "fullName": "google.cloud.discoveryengine.v1alpha.SiteSearchEngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_SiteSearchEngineService_GetUriPatternDocumentData_async", - "title": "AclConfigService getUriPatternDocumentData Sample", - "origin": "API_DEFINITION", - "description": " Gets the URI Pattern to Document data mapping for an Advanced Site Search DataStore.", - "canonical": true, - "file": "site_search_engine_service.get_uri_pattern_document_data.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetUriPatternDocumentData", - "fullName": "google.cloud.discoveryengine.v1alpha.SiteSearchEngineService.GetUriPatternDocumentData", - "async": true, - "parameters": [ - { - "name": "site_search_engine", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.GetUriPatternDocumentDataResponse", - "client": { - "shortName": "SiteSearchEngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.SiteSearchEngineServiceClient" - }, - "method": { - "shortName": "GetUriPatternDocumentData", - "fullName": "google.cloud.discoveryengine.v1alpha.SiteSearchEngineService.GetUriPatternDocumentData", - "service": { - "shortName": "SiteSearchEngineService", - "fullName": "google.cloud.discoveryengine.v1alpha.SiteSearchEngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_UserEventService_WriteUserEvent_async", - "title": "AclConfigService writeUserEvent Sample", - "origin": "API_DEFINITION", - "description": " Writes a single user event.", - "canonical": true, - "file": "user_event_service.write_user_event.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "WriteUserEvent", - "fullName": "google.cloud.discoveryengine.v1alpha.UserEventService.WriteUserEvent", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "user_event", - "type": ".google.cloud.discoveryengine.v1alpha.UserEvent" - }, - { - "name": "write_async", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.discoveryengine.v1alpha.UserEvent", - "client": { - "shortName": "UserEventServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.UserEventServiceClient" - }, - "method": { - "shortName": "WriteUserEvent", - "fullName": "google.cloud.discoveryengine.v1alpha.UserEventService.WriteUserEvent", - "service": { - "shortName": "UserEventService", - "fullName": "google.cloud.discoveryengine.v1alpha.UserEventService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_UserEventService_CollectUserEvent_async", - "title": "AclConfigService collectUserEvent Sample", - "origin": "API_DEFINITION", - "description": " Writes a single user event from the browser. This uses a GET request to due to browser restriction of POST-ing to a third-party domain. This method is used only by the Discovery Engine API JavaScript pixel and Google Tag Manager. Users should not call this method directly.", - "canonical": true, - "file": "user_event_service.collect_user_event.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CollectUserEvent", - "fullName": "google.cloud.discoveryengine.v1alpha.UserEventService.CollectUserEvent", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "user_event", - "type": "TYPE_STRING" - }, - { - "name": "uri", - "type": "TYPE_STRING" - }, - { - "name": "ets", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.api.HttpBody", - "client": { - "shortName": "UserEventServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.UserEventServiceClient" - }, - "method": { - "shortName": "CollectUserEvent", - "fullName": "google.cloud.discoveryengine.v1alpha.UserEventService.CollectUserEvent", - "service": { - "shortName": "UserEventService", - "fullName": "google.cloud.discoveryengine.v1alpha.UserEventService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_UserEventService_PurgeUserEvents_async", - "title": "AclConfigService purgeUserEvents Sample", - "origin": "API_DEFINITION", - "description": " Deletes permanently all user events specified by the filter provided. Depending on the number of events specified by the filter, this operation could take hours or days to complete. To test a filter, use the list command first.", - "canonical": true, - "file": "user_event_service.purge_user_events.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 90, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PurgeUserEvents", - "fullName": "google.cloud.discoveryengine.v1alpha.UserEventService.PurgeUserEvents", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "UserEventServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.UserEventServiceClient" - }, - "method": { - "shortName": "PurgeUserEvents", - "fullName": "google.cloud.discoveryengine.v1alpha.UserEventService.PurgeUserEvents", - "service": { - "shortName": "UserEventService", - "fullName": "google.cloud.discoveryengine.v1alpha.UserEventService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1alpha_generated_UserEventService_ImportUserEvents_async", - "title": "AclConfigService importUserEvents Sample", - "origin": "API_DEFINITION", - "description": " Bulk import of user events. Request processing might be synchronous. Events that already exist are skipped. Use this method for backfilling historical user events. Operation.response is of type ImportResponse. Note that it is possible for a subset of the items to be successfully inserted. Operation.metadata is of type ImportMetadata.", - "canonical": true, - "file": "user_event_service.import_user_events.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportUserEvents", - "fullName": "google.cloud.discoveryengine.v1alpha.UserEventService.ImportUserEvents", - "async": true, - "parameters": [ - { - "name": "inline_source", - "type": ".google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest.InlineSource" - }, - { - "name": "gcs_source", - "type": ".google.cloud.discoveryengine.v1alpha.GcsSource" - }, - { - "name": "bigquery_source", - "type": ".google.cloud.discoveryengine.v1alpha.BigQuerySource" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "error_config", - "type": ".google.cloud.discoveryengine.v1alpha.ImportErrorConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "UserEventServiceClient", - "fullName": "google.cloud.discoveryengine.v1alpha.UserEventServiceClient" - }, - "method": { - "shortName": "ImportUserEvents", - "fullName": "google.cloud.discoveryengine.v1alpha.UserEventService.ImportUserEvents", - "service": { - "shortName": "UserEventService", - "fullName": "google.cloud.discoveryengine.v1alpha.UserEventService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-discoveryengine/samples/generated/v1beta/snippet_metadata_google.cloud.discoveryengine.v1beta.json b/packages/google-cloud-discoveryengine/samples/generated/v1beta/snippet_metadata_google.cloud.discoveryengine.v1beta.json deleted file mode 100644 index 1caabfc7f860..000000000000 --- a/packages/google-cloud-discoveryengine/samples/generated/v1beta/snippet_metadata_google.cloud.discoveryengine.v1beta.json +++ /dev/null @@ -1,5079 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-discoveryengine", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.discoveryengine.v1beta", - "version": "v1beta" - } - ] - }, - "snippets": [ - { - "regionTag": "discoveryengine_v1beta_generated_CompletionService_CompleteQuery_async", - "title": "CompletionService completeQuery Sample", - "origin": "API_DEFINITION", - "description": " Completes the specified user input with keyword suggestions.", - "canonical": true, - "file": "completion_service.complete_query.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 99, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CompleteQuery", - "fullName": "google.cloud.discoveryengine.v1beta.CompletionService.CompleteQuery", - "async": true, - "parameters": [ - { - "name": "data_store", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": "TYPE_STRING" - }, - { - "name": "query_model", - "type": "TYPE_STRING" - }, - { - "name": "user_pseudo_id", - "type": "TYPE_STRING" - }, - { - "name": "include_tail_suggestions", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.CompleteQueryResponse", - "client": { - "shortName": "CompletionServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.CompletionServiceClient" - }, - "method": { - "shortName": "CompleteQuery", - "fullName": "google.cloud.discoveryengine.v1beta.CompletionService.CompleteQuery", - "service": { - "shortName": "CompletionService", - "fullName": "google.cloud.discoveryengine.v1beta.CompletionService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_CompletionService_AdvancedCompleteQuery_async", - "title": "CompletionService advancedCompleteQuery Sample", - "origin": "API_DEFINITION", - "description": " Completes the user input with advanced keyword suggestions.", - "canonical": true, - "file": "completion_service.advanced_complete_query.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 122, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AdvancedCompleteQuery", - "fullName": "google.cloud.discoveryengine.v1beta.CompletionService.AdvancedCompleteQuery", - "async": true, - "parameters": [ - { - "name": "completion_config", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": "TYPE_STRING" - }, - { - "name": "query_model", - "type": "TYPE_STRING" - }, - { - "name": "user_pseudo_id", - "type": "TYPE_STRING" - }, - { - "name": "user_info", - "type": ".google.cloud.discoveryengine.v1beta.UserInfo" - }, - { - "name": "include_tail_suggestions", - "type": "TYPE_BOOL" - }, - { - "name": "boost_spec", - "type": ".google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec" - }, - { - "name": "suggestion_types", - "type": "TYPE_ENUM[]" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse", - "client": { - "shortName": "CompletionServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.CompletionServiceClient" - }, - "method": { - "shortName": "AdvancedCompleteQuery", - "fullName": "google.cloud.discoveryengine.v1beta.CompletionService.AdvancedCompleteQuery", - "service": { - "shortName": "CompletionService", - "fullName": "google.cloud.discoveryengine.v1beta.CompletionService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_CompletionService_ImportSuggestionDenyListEntries_async", - "title": "CompletionService importSuggestionDenyListEntries Sample", - "origin": "API_DEFINITION", - "description": " Imports all [SuggestionDenyListEntry][google.cloud.discoveryengine.v1beta.SuggestionDenyListEntry] for a DataStore.", - "canonical": true, - "file": "completion_service.import_suggestion_deny_list_entries.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportSuggestionDenyListEntries", - "fullName": "google.cloud.discoveryengine.v1beta.CompletionService.ImportSuggestionDenyListEntries", - "async": true, - "parameters": [ - { - "name": "inline_source", - "type": ".google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesRequest.InlineSource" - }, - { - "name": "gcs_source", - "type": ".google.cloud.discoveryengine.v1beta.GcsSource" - }, - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CompletionServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.CompletionServiceClient" - }, - "method": { - "shortName": "ImportSuggestionDenyListEntries", - "fullName": "google.cloud.discoveryengine.v1beta.CompletionService.ImportSuggestionDenyListEntries", - "service": { - "shortName": "CompletionService", - "fullName": "google.cloud.discoveryengine.v1beta.CompletionService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_CompletionService_PurgeSuggestionDenyListEntries_async", - "title": "CompletionService purgeSuggestionDenyListEntries Sample", - "origin": "API_DEFINITION", - "description": " Permanently deletes all [SuggestionDenyListEntry][google.cloud.discoveryengine.v1beta.SuggestionDenyListEntry] for a DataStore.", - "canonical": true, - "file": "completion_service.purge_suggestion_deny_list_entries.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PurgeSuggestionDenyListEntries", - "fullName": "google.cloud.discoveryengine.v1beta.CompletionService.PurgeSuggestionDenyListEntries", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CompletionServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.CompletionServiceClient" - }, - "method": { - "shortName": "PurgeSuggestionDenyListEntries", - "fullName": "google.cloud.discoveryengine.v1beta.CompletionService.PurgeSuggestionDenyListEntries", - "service": { - "shortName": "CompletionService", - "fullName": "google.cloud.discoveryengine.v1beta.CompletionService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_CompletionService_ImportCompletionSuggestions_async", - "title": "CompletionService importCompletionSuggestions Sample", - "origin": "API_DEFINITION", - "description": " Imports [CompletionSuggestion][google.cloud.discoveryengine.v1beta.CompletionSuggestion]s for a DataStore.", - "canonical": true, - "file": "completion_service.import_completion_suggestions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportCompletionSuggestions", - "fullName": "google.cloud.discoveryengine.v1beta.CompletionService.ImportCompletionSuggestions", - "async": true, - "parameters": [ - { - "name": "inline_source", - "type": ".google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest.InlineSource" - }, - { - "name": "gcs_source", - "type": ".google.cloud.discoveryengine.v1beta.GcsSource" - }, - { - "name": "bigquery_source", - "type": ".google.cloud.discoveryengine.v1beta.BigQuerySource" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "error_config", - "type": ".google.cloud.discoveryengine.v1beta.ImportErrorConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CompletionServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.CompletionServiceClient" - }, - "method": { - "shortName": "ImportCompletionSuggestions", - "fullName": "google.cloud.discoveryengine.v1beta.CompletionService.ImportCompletionSuggestions", - "service": { - "shortName": "CompletionService", - "fullName": "google.cloud.discoveryengine.v1beta.CompletionService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_CompletionService_PurgeCompletionSuggestions_async", - "title": "CompletionService purgeCompletionSuggestions Sample", - "origin": "API_DEFINITION", - "description": " Permanently deletes all [CompletionSuggestion][google.cloud.discoveryengine.v1beta.CompletionSuggestion]s for a DataStore.", - "canonical": true, - "file": "completion_service.purge_completion_suggestions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PurgeCompletionSuggestions", - "fullName": "google.cloud.discoveryengine.v1beta.CompletionService.PurgeCompletionSuggestions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CompletionServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.CompletionServiceClient" - }, - "method": { - "shortName": "PurgeCompletionSuggestions", - "fullName": "google.cloud.discoveryengine.v1beta.CompletionService.PurgeCompletionSuggestions", - "service": { - "shortName": "CompletionService", - "fullName": "google.cloud.discoveryengine.v1beta.CompletionService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_ControlService_CreateControl_async", - "title": "CompletionService createControl Sample", - "origin": "API_DEFINITION", - "description": " Creates a Control. By default 1000 controls are allowed for a data store. A request can be submitted to adjust this limit. If the [Control][google.cloud.discoveryengine.v1beta.Control] to create already exists, an ALREADY_EXISTS error is returned.", - "canonical": true, - "file": "control_service.create_control.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateControl", - "fullName": "google.cloud.discoveryengine.v1beta.ControlService.CreateControl", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "control", - "type": ".google.cloud.discoveryengine.v1beta.Control" - }, - { - "name": "control_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.Control", - "client": { - "shortName": "ControlServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.ControlServiceClient" - }, - "method": { - "shortName": "CreateControl", - "fullName": "google.cloud.discoveryengine.v1beta.ControlService.CreateControl", - "service": { - "shortName": "ControlService", - "fullName": "google.cloud.discoveryengine.v1beta.ControlService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_ControlService_DeleteControl_async", - "title": "CompletionService deleteControl Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Control. If the [Control][google.cloud.discoveryengine.v1beta.Control] to delete does not exist, a NOT_FOUND error is returned.", - "canonical": true, - "file": "control_service.delete_control.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteControl", - "fullName": "google.cloud.discoveryengine.v1beta.ControlService.DeleteControl", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ControlServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.ControlServiceClient" - }, - "method": { - "shortName": "DeleteControl", - "fullName": "google.cloud.discoveryengine.v1beta.ControlService.DeleteControl", - "service": { - "shortName": "ControlService", - "fullName": "google.cloud.discoveryengine.v1beta.ControlService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_ControlService_UpdateControl_async", - "title": "CompletionService updateControl Sample", - "origin": "API_DEFINITION", - "description": " Updates a Control. [Control][google.cloud.discoveryengine.v1beta.Control] action type cannot be changed. If the [Control][google.cloud.discoveryengine.v1beta.Control] to update does not exist, a NOT_FOUND error is returned.", - "canonical": true, - "file": "control_service.update_control.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateControl", - "fullName": "google.cloud.discoveryengine.v1beta.ControlService.UpdateControl", - "async": true, - "parameters": [ - { - "name": "control", - "type": ".google.cloud.discoveryengine.v1beta.Control" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.Control", - "client": { - "shortName": "ControlServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.ControlServiceClient" - }, - "method": { - "shortName": "UpdateControl", - "fullName": "google.cloud.discoveryengine.v1beta.ControlService.UpdateControl", - "service": { - "shortName": "ControlService", - "fullName": "google.cloud.discoveryengine.v1beta.ControlService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_ControlService_GetControl_async", - "title": "CompletionService getControl Sample", - "origin": "API_DEFINITION", - "description": " Gets a Control.", - "canonical": true, - "file": "control_service.get_control.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetControl", - "fullName": "google.cloud.discoveryengine.v1beta.ControlService.GetControl", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.Control", - "client": { - "shortName": "ControlServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.ControlServiceClient" - }, - "method": { - "shortName": "GetControl", - "fullName": "google.cloud.discoveryengine.v1beta.ControlService.GetControl", - "service": { - "shortName": "ControlService", - "fullName": "google.cloud.discoveryengine.v1beta.ControlService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_ControlService_ListControls_async", - "title": "CompletionService listControls Sample", - "origin": "API_DEFINITION", - "description": " Lists all Controls by their parent [DataStore][google.cloud.discoveryengine.v1beta.DataStore].", - "canonical": true, - "file": "control_service.list_controls.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListControls", - "fullName": "google.cloud.discoveryengine.v1beta.ControlService.ListControls", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.ListControlsResponse", - "client": { - "shortName": "ControlServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.ControlServiceClient" - }, - "method": { - "shortName": "ListControls", - "fullName": "google.cloud.discoveryengine.v1beta.ControlService.ListControls", - "service": { - "shortName": "ControlService", - "fullName": "google.cloud.discoveryengine.v1beta.ControlService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_ConversationalSearchService_ConverseConversation_async", - "title": "CompletionService converseConversation Sample", - "origin": "API_DEFINITION", - "description": " Converses a conversation.", - "canonical": true, - "file": "conversational_search_service.converse_conversation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 123, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ConverseConversation", - "fullName": "google.cloud.discoveryengine.v1beta.ConversationalSearchService.ConverseConversation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": ".google.cloud.discoveryengine.v1beta.TextInput" - }, - { - "name": "serving_config", - "type": "TYPE_STRING" - }, - { - "name": "conversation", - "type": ".google.cloud.discoveryengine.v1beta.Conversation" - }, - { - "name": "safe_search", - "type": "TYPE_BOOL" - }, - { - "name": "user_labels", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "summary_spec", - "type": ".google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "boost_spec", - "type": ".google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.ConverseConversationResponse", - "client": { - "shortName": "ConversationalSearchServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.ConversationalSearchServiceClient" - }, - "method": { - "shortName": "ConverseConversation", - "fullName": "google.cloud.discoveryengine.v1beta.ConversationalSearchService.ConverseConversation", - "service": { - "shortName": "ConversationalSearchService", - "fullName": "google.cloud.discoveryengine.v1beta.ConversationalSearchService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_ConversationalSearchService_CreateConversation_async", - "title": "CompletionService createConversation Sample", - "origin": "API_DEFINITION", - "description": " Creates a Conversation. If the [Conversation][google.cloud.discoveryengine.v1beta.Conversation] to create already exists, an ALREADY_EXISTS error is returned.", - "canonical": true, - "file": "conversational_search_service.create_conversation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateConversation", - "fullName": "google.cloud.discoveryengine.v1beta.ConversationalSearchService.CreateConversation", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "conversation", - "type": ".google.cloud.discoveryengine.v1beta.Conversation" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.Conversation", - "client": { - "shortName": "ConversationalSearchServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.ConversationalSearchServiceClient" - }, - "method": { - "shortName": "CreateConversation", - "fullName": "google.cloud.discoveryengine.v1beta.ConversationalSearchService.CreateConversation", - "service": { - "shortName": "ConversationalSearchService", - "fullName": "google.cloud.discoveryengine.v1beta.ConversationalSearchService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_ConversationalSearchService_DeleteConversation_async", - "title": "CompletionService deleteConversation Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Conversation. If the [Conversation][google.cloud.discoveryengine.v1beta.Conversation] to delete does not exist, a NOT_FOUND error is returned.", - "canonical": true, - "file": "conversational_search_service.delete_conversation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteConversation", - "fullName": "google.cloud.discoveryengine.v1beta.ConversationalSearchService.DeleteConversation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ConversationalSearchServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.ConversationalSearchServiceClient" - }, - "method": { - "shortName": "DeleteConversation", - "fullName": "google.cloud.discoveryengine.v1beta.ConversationalSearchService.DeleteConversation", - "service": { - "shortName": "ConversationalSearchService", - "fullName": "google.cloud.discoveryengine.v1beta.ConversationalSearchService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_ConversationalSearchService_UpdateConversation_async", - "title": "CompletionService updateConversation Sample", - "origin": "API_DEFINITION", - "description": " Updates a Conversation. [Conversation][google.cloud.discoveryengine.v1beta.Conversation] action type cannot be changed. If the [Conversation][google.cloud.discoveryengine.v1beta.Conversation] to update does not exist, a NOT_FOUND error is returned.", - "canonical": true, - "file": "conversational_search_service.update_conversation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateConversation", - "fullName": "google.cloud.discoveryengine.v1beta.ConversationalSearchService.UpdateConversation", - "async": true, - "parameters": [ - { - "name": "conversation", - "type": ".google.cloud.discoveryengine.v1beta.Conversation" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.Conversation", - "client": { - "shortName": "ConversationalSearchServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.ConversationalSearchServiceClient" - }, - "method": { - "shortName": "UpdateConversation", - "fullName": "google.cloud.discoveryengine.v1beta.ConversationalSearchService.UpdateConversation", - "service": { - "shortName": "ConversationalSearchService", - "fullName": "google.cloud.discoveryengine.v1beta.ConversationalSearchService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_ConversationalSearchService_GetConversation_async", - "title": "CompletionService getConversation Sample", - "origin": "API_DEFINITION", - "description": " Gets a Conversation.", - "canonical": true, - "file": "conversational_search_service.get_conversation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetConversation", - "fullName": "google.cloud.discoveryengine.v1beta.ConversationalSearchService.GetConversation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.Conversation", - "client": { - "shortName": "ConversationalSearchServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.ConversationalSearchServiceClient" - }, - "method": { - "shortName": "GetConversation", - "fullName": "google.cloud.discoveryengine.v1beta.ConversationalSearchService.GetConversation", - "service": { - "shortName": "ConversationalSearchService", - "fullName": "google.cloud.discoveryengine.v1beta.ConversationalSearchService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_ConversationalSearchService_ListConversations_async", - "title": "CompletionService listConversations Sample", - "origin": "API_DEFINITION", - "description": " Lists all Conversations by their parent [DataStore][google.cloud.discoveryengine.v1beta.DataStore].", - "canonical": true, - "file": "conversational_search_service.list_conversations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListConversations", - "fullName": "google.cloud.discoveryengine.v1beta.ConversationalSearchService.ListConversations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.ListConversationsResponse", - "client": { - "shortName": "ConversationalSearchServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.ConversationalSearchServiceClient" - }, - "method": { - "shortName": "ListConversations", - "fullName": "google.cloud.discoveryengine.v1beta.ConversationalSearchService.ListConversations", - "service": { - "shortName": "ConversationalSearchService", - "fullName": "google.cloud.discoveryengine.v1beta.ConversationalSearchService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_ConversationalSearchService_AnswerQuery_async", - "title": "CompletionService answerQuery Sample", - "origin": "API_DEFINITION", - "description": " Answer query method.", - "canonical": true, - "file": "conversational_search_service.answer_query.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 122, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AnswerQuery", - "fullName": "google.cloud.discoveryengine.v1beta.ConversationalSearchService.AnswerQuery", - "async": true, - "parameters": [ - { - "name": "serving_config", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": ".google.cloud.discoveryengine.v1beta.Query" - }, - { - "name": "session", - "type": "TYPE_STRING" - }, - { - "name": "safety_spec", - "type": ".google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec" - }, - { - "name": "related_questions_spec", - "type": ".google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec" - }, - { - "name": "grounding_spec", - "type": ".google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec" - }, - { - "name": "answer_generation_spec", - "type": ".google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec" - }, - { - "name": "search_spec", - "type": ".google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec" - }, - { - "name": "query_understanding_spec", - "type": ".google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec" - }, - { - "name": "asynchronous_mode", - "type": "TYPE_BOOL" - }, - { - "name": "user_pseudo_id", - "type": "TYPE_STRING" - }, - { - "name": "user_labels", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.AnswerQueryResponse", - "client": { - "shortName": "ConversationalSearchServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.ConversationalSearchServiceClient" - }, - "method": { - "shortName": "AnswerQuery", - "fullName": "google.cloud.discoveryengine.v1beta.ConversationalSearchService.AnswerQuery", - "service": { - "shortName": "ConversationalSearchService", - "fullName": "google.cloud.discoveryengine.v1beta.ConversationalSearchService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_ConversationalSearchService_GetAnswer_async", - "title": "CompletionService getAnswer Sample", - "origin": "API_DEFINITION", - "description": " Gets a Answer.", - "canonical": true, - "file": "conversational_search_service.get_answer.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAnswer", - "fullName": "google.cloud.discoveryengine.v1beta.ConversationalSearchService.GetAnswer", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.Answer", - "client": { - "shortName": "ConversationalSearchServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.ConversationalSearchServiceClient" - }, - "method": { - "shortName": "GetAnswer", - "fullName": "google.cloud.discoveryengine.v1beta.ConversationalSearchService.GetAnswer", - "service": { - "shortName": "ConversationalSearchService", - "fullName": "google.cloud.discoveryengine.v1beta.ConversationalSearchService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_ConversationalSearchService_CreateSession_async", - "title": "CompletionService createSession Sample", - "origin": "API_DEFINITION", - "description": " Creates a Session. If the [Session][google.cloud.discoveryengine.v1beta.Session] to create already exists, an ALREADY_EXISTS error is returned.", - "canonical": true, - "file": "conversational_search_service.create_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSession", - "fullName": "google.cloud.discoveryengine.v1beta.ConversationalSearchService.CreateSession", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "session", - "type": ".google.cloud.discoveryengine.v1beta.Session" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.Session", - "client": { - "shortName": "ConversationalSearchServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.ConversationalSearchServiceClient" - }, - "method": { - "shortName": "CreateSession", - "fullName": "google.cloud.discoveryengine.v1beta.ConversationalSearchService.CreateSession", - "service": { - "shortName": "ConversationalSearchService", - "fullName": "google.cloud.discoveryengine.v1beta.ConversationalSearchService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_ConversationalSearchService_DeleteSession_async", - "title": "CompletionService deleteSession Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Session. If the [Session][google.cloud.discoveryengine.v1beta.Session] to delete does not exist, a NOT_FOUND error is returned.", - "canonical": true, - "file": "conversational_search_service.delete_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSession", - "fullName": "google.cloud.discoveryengine.v1beta.ConversationalSearchService.DeleteSession", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ConversationalSearchServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.ConversationalSearchServiceClient" - }, - "method": { - "shortName": "DeleteSession", - "fullName": "google.cloud.discoveryengine.v1beta.ConversationalSearchService.DeleteSession", - "service": { - "shortName": "ConversationalSearchService", - "fullName": "google.cloud.discoveryengine.v1beta.ConversationalSearchService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_ConversationalSearchService_UpdateSession_async", - "title": "CompletionService updateSession Sample", - "origin": "API_DEFINITION", - "description": " Updates a Session. [Session][google.cloud.discoveryengine.v1beta.Session] action type cannot be changed. If the [Session][google.cloud.discoveryengine.v1beta.Session] to update does not exist, a NOT_FOUND error is returned.", - "canonical": true, - "file": "conversational_search_service.update_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSession", - "fullName": "google.cloud.discoveryengine.v1beta.ConversationalSearchService.UpdateSession", - "async": true, - "parameters": [ - { - "name": "session", - "type": ".google.cloud.discoveryengine.v1beta.Session" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.Session", - "client": { - "shortName": "ConversationalSearchServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.ConversationalSearchServiceClient" - }, - "method": { - "shortName": "UpdateSession", - "fullName": "google.cloud.discoveryengine.v1beta.ConversationalSearchService.UpdateSession", - "service": { - "shortName": "ConversationalSearchService", - "fullName": "google.cloud.discoveryengine.v1beta.ConversationalSearchService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_ConversationalSearchService_GetSession_async", - "title": "CompletionService getSession Sample", - "origin": "API_DEFINITION", - "description": " Gets a Session.", - "canonical": true, - "file": "conversational_search_service.get_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSession", - "fullName": "google.cloud.discoveryengine.v1beta.ConversationalSearchService.GetSession", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "include_answer_details", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.Session", - "client": { - "shortName": "ConversationalSearchServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.ConversationalSearchServiceClient" - }, - "method": { - "shortName": "GetSession", - "fullName": "google.cloud.discoveryengine.v1beta.ConversationalSearchService.GetSession", - "service": { - "shortName": "ConversationalSearchService", - "fullName": "google.cloud.discoveryengine.v1beta.ConversationalSearchService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_ConversationalSearchService_ListSessions_async", - "title": "CompletionService listSessions Sample", - "origin": "API_DEFINITION", - "description": " Lists all Sessions by their parent [DataStore][google.cloud.discoveryengine.v1beta.DataStore].", - "canonical": true, - "file": "conversational_search_service.list_sessions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 100, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSessions", - "fullName": "google.cloud.discoveryengine.v1beta.ConversationalSearchService.ListSessions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.ListSessionsResponse", - "client": { - "shortName": "ConversationalSearchServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.ConversationalSearchServiceClient" - }, - "method": { - "shortName": "ListSessions", - "fullName": "google.cloud.discoveryengine.v1beta.ConversationalSearchService.ListSessions", - "service": { - "shortName": "ConversationalSearchService", - "fullName": "google.cloud.discoveryengine.v1beta.ConversationalSearchService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_DataStoreService_CreateDataStore_async", - "title": "CompletionService createDataStore Sample", - "origin": "API_DEFINITION", - "description": " Creates a [DataStore][google.cloud.discoveryengine.v1beta.DataStore]. DataStore is for storing [Documents][google.cloud.discoveryengine.v1beta.Document]. To serve these documents for Search, or Recommendation use case, an [Engine][google.cloud.discoveryengine.v1beta.Engine] needs to be created separately.", - "canonical": true, - "file": "data_store_service.create_data_store.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 89, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDataStore", - "fullName": "google.cloud.discoveryengine.v1beta.DataStoreService.CreateDataStore", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "data_store", - "type": ".google.cloud.discoveryengine.v1beta.DataStore" - }, - { - "name": "data_store_id", - "type": "TYPE_STRING" - }, - { - "name": "create_advanced_site_search", - "type": "TYPE_BOOL" - }, - { - "name": "skip_default_schema_creation", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataStoreServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.DataStoreServiceClient" - }, - "method": { - "shortName": "CreateDataStore", - "fullName": "google.cloud.discoveryengine.v1beta.DataStoreService.CreateDataStore", - "service": { - "shortName": "DataStoreService", - "fullName": "google.cloud.discoveryengine.v1beta.DataStoreService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_DataStoreService_GetDataStore_async", - "title": "CompletionService getDataStore Sample", - "origin": "API_DEFINITION", - "description": " Gets a [DataStore][google.cloud.discoveryengine.v1beta.DataStore].", - "canonical": true, - "file": "data_store_service.get_data_store.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDataStore", - "fullName": "google.cloud.discoveryengine.v1beta.DataStoreService.GetDataStore", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.DataStore", - "client": { - "shortName": "DataStoreServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.DataStoreServiceClient" - }, - "method": { - "shortName": "GetDataStore", - "fullName": "google.cloud.discoveryengine.v1beta.DataStoreService.GetDataStore", - "service": { - "shortName": "DataStoreService", - "fullName": "google.cloud.discoveryengine.v1beta.DataStoreService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_DataStoreService_ListDataStores_async", - "title": "CompletionService listDataStores Sample", - "origin": "API_DEFINITION", - "description": " Lists all the [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s associated with the project.", - "canonical": true, - "file": "data_store_service.list_data_stores.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDataStores", - "fullName": "google.cloud.discoveryengine.v1beta.DataStoreService.ListDataStores", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.ListDataStoresResponse", - "client": { - "shortName": "DataStoreServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.DataStoreServiceClient" - }, - "method": { - "shortName": "ListDataStores", - "fullName": "google.cloud.discoveryengine.v1beta.DataStoreService.ListDataStores", - "service": { - "shortName": "DataStoreService", - "fullName": "google.cloud.discoveryengine.v1beta.DataStoreService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_DataStoreService_DeleteDataStore_async", - "title": "CompletionService deleteDataStore Sample", - "origin": "API_DEFINITION", - "description": " Deletes a [DataStore][google.cloud.discoveryengine.v1beta.DataStore].", - "canonical": true, - "file": "data_store_service.delete_data_store.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDataStore", - "fullName": "google.cloud.discoveryengine.v1beta.DataStoreService.DeleteDataStore", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataStoreServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.DataStoreServiceClient" - }, - "method": { - "shortName": "DeleteDataStore", - "fullName": "google.cloud.discoveryengine.v1beta.DataStoreService.DeleteDataStore", - "service": { - "shortName": "DataStoreService", - "fullName": "google.cloud.discoveryengine.v1beta.DataStoreService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_DataStoreService_UpdateDataStore_async", - "title": "CompletionService updateDataStore Sample", - "origin": "API_DEFINITION", - "description": " Updates a [DataStore][google.cloud.discoveryengine.v1beta.DataStore]", - "canonical": true, - "file": "data_store_service.update_data_store.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDataStore", - "fullName": "google.cloud.discoveryengine.v1beta.DataStoreService.UpdateDataStore", - "async": true, - "parameters": [ - { - "name": "data_store", - "type": ".google.cloud.discoveryengine.v1beta.DataStore" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.DataStore", - "client": { - "shortName": "DataStoreServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.DataStoreServiceClient" - }, - "method": { - "shortName": "UpdateDataStore", - "fullName": "google.cloud.discoveryengine.v1beta.DataStoreService.UpdateDataStore", - "service": { - "shortName": "DataStoreService", - "fullName": "google.cloud.discoveryengine.v1beta.DataStoreService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_DocumentService_GetDocument_async", - "title": "CompletionService getDocument Sample", - "origin": "API_DEFINITION", - "description": " Gets a [Document][google.cloud.discoveryengine.v1beta.Document].", - "canonical": true, - "file": "document_service.get_document.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDocument", - "fullName": "google.cloud.discoveryengine.v1beta.DocumentService.GetDocument", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.Document", - "client": { - "shortName": "DocumentServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.DocumentServiceClient" - }, - "method": { - "shortName": "GetDocument", - "fullName": "google.cloud.discoveryengine.v1beta.DocumentService.GetDocument", - "service": { - "shortName": "DocumentService", - "fullName": "google.cloud.discoveryengine.v1beta.DocumentService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_DocumentService_ListDocuments_async", - "title": "CompletionService listDocuments Sample", - "origin": "API_DEFINITION", - "description": " Gets a list of [Document][google.cloud.discoveryengine.v1beta.Document]s.", - "canonical": true, - "file": "document_service.list_documents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDocuments", - "fullName": "google.cloud.discoveryengine.v1beta.DocumentService.ListDocuments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.ListDocumentsResponse", - "client": { - "shortName": "DocumentServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.DocumentServiceClient" - }, - "method": { - "shortName": "ListDocuments", - "fullName": "google.cloud.discoveryengine.v1beta.DocumentService.ListDocuments", - "service": { - "shortName": "DocumentService", - "fullName": "google.cloud.discoveryengine.v1beta.DocumentService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_DocumentService_CreateDocument_async", - "title": "CompletionService createDocument Sample", - "origin": "API_DEFINITION", - "description": " Creates a [Document][google.cloud.discoveryengine.v1beta.Document].", - "canonical": true, - "file": "document_service.create_document.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDocument", - "fullName": "google.cloud.discoveryengine.v1beta.DocumentService.CreateDocument", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "document", - "type": ".google.cloud.discoveryengine.v1beta.Document" - }, - { - "name": "document_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.Document", - "client": { - "shortName": "DocumentServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.DocumentServiceClient" - }, - "method": { - "shortName": "CreateDocument", - "fullName": "google.cloud.discoveryengine.v1beta.DocumentService.CreateDocument", - "service": { - "shortName": "DocumentService", - "fullName": "google.cloud.discoveryengine.v1beta.DocumentService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_DocumentService_UpdateDocument_async", - "title": "CompletionService updateDocument Sample", - "origin": "API_DEFINITION", - "description": " Updates a [Document][google.cloud.discoveryengine.v1beta.Document].", - "canonical": true, - "file": "document_service.update_document.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDocument", - "fullName": "google.cloud.discoveryengine.v1beta.DocumentService.UpdateDocument", - "async": true, - "parameters": [ - { - "name": "document", - "type": ".google.cloud.discoveryengine.v1beta.Document" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.Document", - "client": { - "shortName": "DocumentServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.DocumentServiceClient" - }, - "method": { - "shortName": "UpdateDocument", - "fullName": "google.cloud.discoveryengine.v1beta.DocumentService.UpdateDocument", - "service": { - "shortName": "DocumentService", - "fullName": "google.cloud.discoveryengine.v1beta.DocumentService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_DocumentService_DeleteDocument_async", - "title": "CompletionService deleteDocument Sample", - "origin": "API_DEFINITION", - "description": " Deletes a [Document][google.cloud.discoveryengine.v1beta.Document].", - "canonical": true, - "file": "document_service.delete_document.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDocument", - "fullName": "google.cloud.discoveryengine.v1beta.DocumentService.DeleteDocument", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DocumentServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.DocumentServiceClient" - }, - "method": { - "shortName": "DeleteDocument", - "fullName": "google.cloud.discoveryengine.v1beta.DocumentService.DeleteDocument", - "service": { - "shortName": "DocumentService", - "fullName": "google.cloud.discoveryengine.v1beta.DocumentService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_DocumentService_ImportDocuments_async", - "title": "CompletionService importDocuments Sample", - "origin": "API_DEFINITION", - "description": " Bulk import of multiple [Document][google.cloud.discoveryengine.v1beta.Document]s. Request processing may be synchronous. Non-existing items are created. Note: It is possible for a subset of the [Document][google.cloud.discoveryengine.v1beta.Document]s to be successfully updated.", - "canonical": true, - "file": "document_service.import_documents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 163, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportDocuments", - "fullName": "google.cloud.discoveryengine.v1beta.DocumentService.ImportDocuments", - "async": true, - "parameters": [ - { - "name": "inline_source", - "type": ".google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.InlineSource" - }, - { - "name": "gcs_source", - "type": ".google.cloud.discoveryengine.v1beta.GcsSource" - }, - { - "name": "bigquery_source", - "type": ".google.cloud.discoveryengine.v1beta.BigQuerySource" - }, - { - "name": "fhir_store_source", - "type": ".google.cloud.discoveryengine.v1beta.FhirStoreSource" - }, - { - "name": "spanner_source", - "type": ".google.cloud.discoveryengine.v1beta.SpannerSource" - }, - { - "name": "cloud_sql_source", - "type": ".google.cloud.discoveryengine.v1beta.CloudSqlSource" - }, - { - "name": "firestore_source", - "type": ".google.cloud.discoveryengine.v1beta.FirestoreSource" - }, - { - "name": "alloy_db_source", - "type": ".google.cloud.discoveryengine.v1beta.AlloyDbSource" - }, - { - "name": "bigtable_source", - "type": ".google.cloud.discoveryengine.v1beta.BigtableSource" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "error_config", - "type": ".google.cloud.discoveryengine.v1beta.ImportErrorConfig" - }, - { - "name": "reconciliation_mode", - "type": ".google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "auto_generate_ids", - "type": "TYPE_BOOL" - }, - { - "name": "id_field", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DocumentServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.DocumentServiceClient" - }, - "method": { - "shortName": "ImportDocuments", - "fullName": "google.cloud.discoveryengine.v1beta.DocumentService.ImportDocuments", - "service": { - "shortName": "DocumentService", - "fullName": "google.cloud.discoveryengine.v1beta.DocumentService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_DocumentService_PurgeDocuments_async", - "title": "CompletionService purgeDocuments Sample", - "origin": "API_DEFINITION", - "description": " Permanently deletes all selected [Document][google.cloud.discoveryengine.v1beta.Document]s in a branch. This process is asynchronous. Depending on the number of [Document][google.cloud.discoveryengine.v1beta.Document]s to be deleted, this operation can take hours to complete. Before the delete operation completes, some [Document][google.cloud.discoveryengine.v1beta.Document]s might still be returned by [DocumentService.GetDocument][google.cloud.discoveryengine.v1beta.DocumentService.GetDocument] or [DocumentService.ListDocuments][google.cloud.discoveryengine.v1beta.DocumentService.ListDocuments]. To get a list of the [Document][google.cloud.discoveryengine.v1beta.Document]s to be deleted, set [PurgeDocumentsRequest.force][google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest.force] to false.", - "canonical": true, - "file": "document_service.purge_documents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PurgeDocuments", - "fullName": "google.cloud.discoveryengine.v1beta.DocumentService.PurgeDocuments", - "async": true, - "parameters": [ - { - "name": "gcs_source", - "type": ".google.cloud.discoveryengine.v1beta.GcsSource" - }, - { - "name": "inline_source", - "type": ".google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest.InlineSource" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "error_config", - "type": ".google.cloud.discoveryengine.v1beta.PurgeErrorConfig" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DocumentServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.DocumentServiceClient" - }, - "method": { - "shortName": "PurgeDocuments", - "fullName": "google.cloud.discoveryengine.v1beta.DocumentService.PurgeDocuments", - "service": { - "shortName": "DocumentService", - "fullName": "google.cloud.discoveryengine.v1beta.DocumentService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_DocumentService_BatchGetDocumentsMetadata_async", - "title": "CompletionService batchGetDocumentsMetadata Sample", - "origin": "API_DEFINITION", - "description": " Gets index freshness metadata for [Document][google.cloud.discoveryengine.v1beta.Document]s. Supported for website search only.", - "canonical": true, - "file": "document_service.batch_get_documents_metadata.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchGetDocumentsMetadata", - "fullName": "google.cloud.discoveryengine.v1beta.DocumentService.BatchGetDocumentsMetadata", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "matcher", - "type": ".google.cloud.discoveryengine.v1beta.BatchGetDocumentsMetadataRequest.Matcher" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.BatchGetDocumentsMetadataResponse", - "client": { - "shortName": "DocumentServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.DocumentServiceClient" - }, - "method": { - "shortName": "BatchGetDocumentsMetadata", - "fullName": "google.cloud.discoveryengine.v1beta.DocumentService.BatchGetDocumentsMetadata", - "service": { - "shortName": "DocumentService", - "fullName": "google.cloud.discoveryengine.v1beta.DocumentService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_EngineService_CreateEngine_async", - "title": "CompletionService createEngine Sample", - "origin": "API_DEFINITION", - "description": " Creates a [Engine][google.cloud.discoveryengine.v1beta.Engine].", - "canonical": true, - "file": "engine_service.create_engine.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateEngine", - "fullName": "google.cloud.discoveryengine.v1beta.EngineService.CreateEngine", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "engine", - "type": ".google.cloud.discoveryengine.v1beta.Engine" - }, - { - "name": "engine_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.EngineServiceClient" - }, - "method": { - "shortName": "CreateEngine", - "fullName": "google.cloud.discoveryengine.v1beta.EngineService.CreateEngine", - "service": { - "shortName": "EngineService", - "fullName": "google.cloud.discoveryengine.v1beta.EngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_EngineService_DeleteEngine_async", - "title": "CompletionService deleteEngine Sample", - "origin": "API_DEFINITION", - "description": " Deletes a [Engine][google.cloud.discoveryengine.v1beta.Engine].", - "canonical": true, - "file": "engine_service.delete_engine.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteEngine", - "fullName": "google.cloud.discoveryengine.v1beta.EngineService.DeleteEngine", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.EngineServiceClient" - }, - "method": { - "shortName": "DeleteEngine", - "fullName": "google.cloud.discoveryengine.v1beta.EngineService.DeleteEngine", - "service": { - "shortName": "EngineService", - "fullName": "google.cloud.discoveryengine.v1beta.EngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_EngineService_UpdateEngine_async", - "title": "CompletionService updateEngine Sample", - "origin": "API_DEFINITION", - "description": " Updates an [Engine][google.cloud.discoveryengine.v1beta.Engine]", - "canonical": true, - "file": "engine_service.update_engine.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateEngine", - "fullName": "google.cloud.discoveryengine.v1beta.EngineService.UpdateEngine", - "async": true, - "parameters": [ - { - "name": "engine", - "type": ".google.cloud.discoveryengine.v1beta.Engine" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.Engine", - "client": { - "shortName": "EngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.EngineServiceClient" - }, - "method": { - "shortName": "UpdateEngine", - "fullName": "google.cloud.discoveryengine.v1beta.EngineService.UpdateEngine", - "service": { - "shortName": "EngineService", - "fullName": "google.cloud.discoveryengine.v1beta.EngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_EngineService_GetEngine_async", - "title": "CompletionService getEngine Sample", - "origin": "API_DEFINITION", - "description": " Gets a [Engine][google.cloud.discoveryengine.v1beta.Engine].", - "canonical": true, - "file": "engine_service.get_engine.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEngine", - "fullName": "google.cloud.discoveryengine.v1beta.EngineService.GetEngine", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.Engine", - "client": { - "shortName": "EngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.EngineServiceClient" - }, - "method": { - "shortName": "GetEngine", - "fullName": "google.cloud.discoveryengine.v1beta.EngineService.GetEngine", - "service": { - "shortName": "EngineService", - "fullName": "google.cloud.discoveryengine.v1beta.EngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_EngineService_ListEngines_async", - "title": "CompletionService listEngines Sample", - "origin": "API_DEFINITION", - "description": " Lists all the [Engine][google.cloud.discoveryengine.v1beta.Engine]s associated with the project.", - "canonical": true, - "file": "engine_service.list_engines.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEngines", - "fullName": "google.cloud.discoveryengine.v1beta.EngineService.ListEngines", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.ListEnginesResponse", - "client": { - "shortName": "EngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.EngineServiceClient" - }, - "method": { - "shortName": "ListEngines", - "fullName": "google.cloud.discoveryengine.v1beta.EngineService.ListEngines", - "service": { - "shortName": "EngineService", - "fullName": "google.cloud.discoveryengine.v1beta.EngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_EngineService_PauseEngine_async", - "title": "CompletionService pauseEngine Sample", - "origin": "API_DEFINITION", - "description": " Pauses the training of an existing engine. Only applicable if [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION].", - "canonical": true, - "file": "engine_service.pause_engine.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PauseEngine", - "fullName": "google.cloud.discoveryengine.v1beta.EngineService.PauseEngine", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.Engine", - "client": { - "shortName": "EngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.EngineServiceClient" - }, - "method": { - "shortName": "PauseEngine", - "fullName": "google.cloud.discoveryengine.v1beta.EngineService.PauseEngine", - "service": { - "shortName": "EngineService", - "fullName": "google.cloud.discoveryengine.v1beta.EngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_EngineService_ResumeEngine_async", - "title": "CompletionService resumeEngine Sample", - "origin": "API_DEFINITION", - "description": " Resumes the training of an existing engine. Only applicable if [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION].", - "canonical": true, - "file": "engine_service.resume_engine.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResumeEngine", - "fullName": "google.cloud.discoveryengine.v1beta.EngineService.ResumeEngine", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.Engine", - "client": { - "shortName": "EngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.EngineServiceClient" - }, - "method": { - "shortName": "ResumeEngine", - "fullName": "google.cloud.discoveryengine.v1beta.EngineService.ResumeEngine", - "service": { - "shortName": "EngineService", - "fullName": "google.cloud.discoveryengine.v1beta.EngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_EngineService_TuneEngine_async", - "title": "CompletionService tuneEngine Sample", - "origin": "API_DEFINITION", - "description": " Tunes an existing engine. Only applicable if [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION].", - "canonical": true, - "file": "engine_service.tune_engine.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TuneEngine", - "fullName": "google.cloud.discoveryengine.v1beta.EngineService.TuneEngine", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.EngineServiceClient" - }, - "method": { - "shortName": "TuneEngine", - "fullName": "google.cloud.discoveryengine.v1beta.EngineService.TuneEngine", - "service": { - "shortName": "EngineService", - "fullName": "google.cloud.discoveryengine.v1beta.EngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_EvaluationService_GetEvaluation_async", - "title": "CompletionService getEvaluation Sample", - "origin": "API_DEFINITION", - "description": " Gets a [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation].", - "canonical": true, - "file": "evaluation_service.get_evaluation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEvaluation", - "fullName": "google.cloud.discoveryengine.v1beta.EvaluationService.GetEvaluation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.Evaluation", - "client": { - "shortName": "EvaluationServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.EvaluationServiceClient" - }, - "method": { - "shortName": "GetEvaluation", - "fullName": "google.cloud.discoveryengine.v1beta.EvaluationService.GetEvaluation", - "service": { - "shortName": "EvaluationService", - "fullName": "google.cloud.discoveryengine.v1beta.EvaluationService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_EvaluationService_ListEvaluations_async", - "title": "CompletionService listEvaluations Sample", - "origin": "API_DEFINITION", - "description": " Gets a list of [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s.", - "canonical": true, - "file": "evaluation_service.list_evaluations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEvaluations", - "fullName": "google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.ListEvaluationsResponse", - "client": { - "shortName": "EvaluationServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.EvaluationServiceClient" - }, - "method": { - "shortName": "ListEvaluations", - "fullName": "google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluations", - "service": { - "shortName": "EvaluationService", - "fullName": "google.cloud.discoveryengine.v1beta.EvaluationService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_EvaluationService_CreateEvaluation_async", - "title": "CompletionService createEvaluation Sample", - "origin": "API_DEFINITION", - "description": " Creates a [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]. Upon creation, the evaluation will be automatically triggered and begin execution.", - "canonical": true, - "file": "evaluation_service.create_evaluation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateEvaluation", - "fullName": "google.cloud.discoveryengine.v1beta.EvaluationService.CreateEvaluation", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "evaluation", - "type": ".google.cloud.discoveryengine.v1beta.Evaluation" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EvaluationServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.EvaluationServiceClient" - }, - "method": { - "shortName": "CreateEvaluation", - "fullName": "google.cloud.discoveryengine.v1beta.EvaluationService.CreateEvaluation", - "service": { - "shortName": "EvaluationService", - "fullName": "google.cloud.discoveryengine.v1beta.EvaluationService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_EvaluationService_ListEvaluationResults_async", - "title": "CompletionService listEvaluationResults Sample", - "origin": "API_DEFINITION", - "description": " Gets a list of results for a given a [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation].", - "canonical": true, - "file": "evaluation_service.list_evaluation_results.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEvaluationResults", - "fullName": "google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluationResults", - "async": true, - "parameters": [ - { - "name": "evaluation", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse", - "client": { - "shortName": "EvaluationServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.EvaluationServiceClient" - }, - "method": { - "shortName": "ListEvaluationResults", - "fullName": "google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluationResults", - "service": { - "shortName": "EvaluationService", - "fullName": "google.cloud.discoveryengine.v1beta.EvaluationService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_GroundedGenerationService_StreamGenerateGroundedContent_async", - "title": "CompletionService streamGenerateGroundedContent Sample", - "origin": "API_DEFINITION", - "description": " Generates grounded content in a streaming fashion.", - "canonical": true, - "file": "grounded_generation_service.stream_generate_grounded_content.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 97, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StreamGenerateGroundedContent", - "fullName": "google.cloud.discoveryengine.v1beta.GroundedGenerationService.StreamGenerateGroundedContent", - "async": true, - "parameters": [ - { - "name": "location", - "type": "TYPE_STRING" - }, - { - "name": "system_instruction", - "type": ".google.cloud.discoveryengine.v1beta.GroundedGenerationContent" - }, - { - "name": "contents", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "generation_spec", - "type": ".google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GenerationSpec" - }, - { - "name": "grounding_spec", - "type": ".google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSpec" - }, - { - "name": "user_labels", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse", - "client": { - "shortName": "GroundedGenerationServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.GroundedGenerationServiceClient" - }, - "method": { - "shortName": "StreamGenerateGroundedContent", - "fullName": "google.cloud.discoveryengine.v1beta.GroundedGenerationService.StreamGenerateGroundedContent", - "service": { - "shortName": "GroundedGenerationService", - "fullName": "google.cloud.discoveryengine.v1beta.GroundedGenerationService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_GroundedGenerationService_GenerateGroundedContent_async", - "title": "CompletionService generateGroundedContent Sample", - "origin": "API_DEFINITION", - "description": " Generates grounded content.", - "canonical": true, - "file": "grounded_generation_service.generate_grounded_content.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 93, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateGroundedContent", - "fullName": "google.cloud.discoveryengine.v1beta.GroundedGenerationService.GenerateGroundedContent", - "async": true, - "parameters": [ - { - "name": "location", - "type": "TYPE_STRING" - }, - { - "name": "system_instruction", - "type": ".google.cloud.discoveryengine.v1beta.GroundedGenerationContent" - }, - { - "name": "contents", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "generation_spec", - "type": ".google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GenerationSpec" - }, - { - "name": "grounding_spec", - "type": ".google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSpec" - }, - { - "name": "user_labels", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse", - "client": { - "shortName": "GroundedGenerationServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.GroundedGenerationServiceClient" - }, - "method": { - "shortName": "GenerateGroundedContent", - "fullName": "google.cloud.discoveryengine.v1beta.GroundedGenerationService.GenerateGroundedContent", - "service": { - "shortName": "GroundedGenerationService", - "fullName": "google.cloud.discoveryengine.v1beta.GroundedGenerationService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_GroundedGenerationService_CheckGrounding_async", - "title": "CompletionService checkGrounding Sample", - "origin": "API_DEFINITION", - "description": " Performs a grounding check.", - "canonical": true, - "file": "grounded_generation_service.check_grounding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CheckGrounding", - "fullName": "google.cloud.discoveryengine.v1beta.GroundedGenerationService.CheckGrounding", - "async": true, - "parameters": [ - { - "name": "grounding_config", - "type": "TYPE_STRING" - }, - { - "name": "answer_candidate", - "type": "TYPE_STRING" - }, - { - "name": "facts", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "grounding_spec", - "type": ".google.cloud.discoveryengine.v1beta.CheckGroundingSpec" - }, - { - "name": "user_labels", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.CheckGroundingResponse", - "client": { - "shortName": "GroundedGenerationServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.GroundedGenerationServiceClient" - }, - "method": { - "shortName": "CheckGrounding", - "fullName": "google.cloud.discoveryengine.v1beta.GroundedGenerationService.CheckGrounding", - "service": { - "shortName": "GroundedGenerationService", - "fullName": "google.cloud.discoveryengine.v1beta.GroundedGenerationService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_ProjectService_ProvisionProject_async", - "title": "CompletionService provisionProject Sample", - "origin": "API_DEFINITION", - "description": " Provisions the project resource. During the process, related systems will get prepared and initialized. Caller must read the [Terms for data use](https://cloud.google.com/retail/data-use-terms), and optionally specify in request to provide consent to that service terms.", - "canonical": true, - "file": "project_service.provision_project.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ProvisionProject", - "fullName": "google.cloud.discoveryengine.v1beta.ProjectService.ProvisionProject", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "accept_data_use_terms", - "type": "TYPE_BOOL" - }, - { - "name": "data_use_terms_version", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ProjectServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.ProjectServiceClient" - }, - "method": { - "shortName": "ProvisionProject", - "fullName": "google.cloud.discoveryengine.v1beta.ProjectService.ProvisionProject", - "service": { - "shortName": "ProjectService", - "fullName": "google.cloud.discoveryengine.v1beta.ProjectService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_RankService_Rank_async", - "title": "CompletionService rank Sample", - "origin": "API_DEFINITION", - "description": " Ranks a list of text records based on the given input query.", - "canonical": true, - "file": "rank_service.rank.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 98, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Rank", - "fullName": "google.cloud.discoveryengine.v1beta.RankService.Rank", - "async": true, - "parameters": [ - { - "name": "ranking_config", - "type": "TYPE_STRING" - }, - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "top_n", - "type": "TYPE_INT32" - }, - { - "name": "query", - "type": "TYPE_STRING" - }, - { - "name": "records", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "ignore_record_details_in_response", - "type": "TYPE_BOOL" - }, - { - "name": "user_labels", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.RankResponse", - "client": { - "shortName": "RankServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.RankServiceClient" - }, - "method": { - "shortName": "Rank", - "fullName": "google.cloud.discoveryengine.v1beta.RankService.Rank", - "service": { - "shortName": "RankService", - "fullName": "google.cloud.discoveryengine.v1beta.RankService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_RecommendationService_Recommend_async", - "title": "CompletionService recommend Sample", - "origin": "API_DEFINITION", - "description": " Makes a recommendation, which requires a contextual user event.", - "canonical": true, - "file": "recommendation_service.recommend.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 167, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Recommend", - "fullName": "google.cloud.discoveryengine.v1beta.RecommendationService.Recommend", - "async": true, - "parameters": [ - { - "name": "serving_config", - "type": "TYPE_STRING" - }, - { - "name": "user_event", - "type": ".google.cloud.discoveryengine.v1beta.UserEvent" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "params", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "user_labels", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.RecommendResponse", - "client": { - "shortName": "RecommendationServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.RecommendationServiceClient" - }, - "method": { - "shortName": "Recommend", - "fullName": "google.cloud.discoveryengine.v1beta.RecommendationService.Recommend", - "service": { - "shortName": "RecommendationService", - "fullName": "google.cloud.discoveryengine.v1beta.RecommendationService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_SampleQueryService_GetSampleQuery_async", - "title": "CompletionService getSampleQuery Sample", - "origin": "API_DEFINITION", - "description": " Gets a [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery].", - "canonical": true, - "file": "sample_query_service.get_sample_query.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSampleQuery", - "fullName": "google.cloud.discoveryengine.v1beta.SampleQueryService.GetSampleQuery", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.SampleQuery", - "client": { - "shortName": "SampleQueryServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.SampleQueryServiceClient" - }, - "method": { - "shortName": "GetSampleQuery", - "fullName": "google.cloud.discoveryengine.v1beta.SampleQueryService.GetSampleQuery", - "service": { - "shortName": "SampleQueryService", - "fullName": "google.cloud.discoveryengine.v1beta.SampleQueryService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_SampleQueryService_ListSampleQueries_async", - "title": "CompletionService listSampleQueries Sample", - "origin": "API_DEFINITION", - "description": " Gets a list of [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.", - "canonical": true, - "file": "sample_query_service.list_sample_queries.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSampleQueries", - "fullName": "google.cloud.discoveryengine.v1beta.SampleQueryService.ListSampleQueries", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse", - "client": { - "shortName": "SampleQueryServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.SampleQueryServiceClient" - }, - "method": { - "shortName": "ListSampleQueries", - "fullName": "google.cloud.discoveryengine.v1beta.SampleQueryService.ListSampleQueries", - "service": { - "shortName": "SampleQueryService", - "fullName": "google.cloud.discoveryengine.v1beta.SampleQueryService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_SampleQueryService_CreateSampleQuery_async", - "title": "CompletionService createSampleQuery Sample", - "origin": "API_DEFINITION", - "description": " Creates a [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]", - "canonical": true, - "file": "sample_query_service.create_sample_query.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSampleQuery", - "fullName": "google.cloud.discoveryengine.v1beta.SampleQueryService.CreateSampleQuery", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "sample_query", - "type": ".google.cloud.discoveryengine.v1beta.SampleQuery" - }, - { - "name": "sample_query_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.SampleQuery", - "client": { - "shortName": "SampleQueryServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.SampleQueryServiceClient" - }, - "method": { - "shortName": "CreateSampleQuery", - "fullName": "google.cloud.discoveryengine.v1beta.SampleQueryService.CreateSampleQuery", - "service": { - "shortName": "SampleQueryService", - "fullName": "google.cloud.discoveryengine.v1beta.SampleQueryService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_SampleQueryService_UpdateSampleQuery_async", - "title": "CompletionService updateSampleQuery Sample", - "origin": "API_DEFINITION", - "description": " Updates a [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery].", - "canonical": true, - "file": "sample_query_service.update_sample_query.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSampleQuery", - "fullName": "google.cloud.discoveryengine.v1beta.SampleQueryService.UpdateSampleQuery", - "async": true, - "parameters": [ - { - "name": "sample_query", - "type": ".google.cloud.discoveryengine.v1beta.SampleQuery" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.SampleQuery", - "client": { - "shortName": "SampleQueryServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.SampleQueryServiceClient" - }, - "method": { - "shortName": "UpdateSampleQuery", - "fullName": "google.cloud.discoveryengine.v1beta.SampleQueryService.UpdateSampleQuery", - "service": { - "shortName": "SampleQueryService", - "fullName": "google.cloud.discoveryengine.v1beta.SampleQueryService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_SampleQueryService_DeleteSampleQuery_async", - "title": "CompletionService deleteSampleQuery Sample", - "origin": "API_DEFINITION", - "description": " Deletes a [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery].", - "canonical": true, - "file": "sample_query_service.delete_sample_query.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSampleQuery", - "fullName": "google.cloud.discoveryengine.v1beta.SampleQueryService.DeleteSampleQuery", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "SampleQueryServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.SampleQueryServiceClient" - }, - "method": { - "shortName": "DeleteSampleQuery", - "fullName": "google.cloud.discoveryengine.v1beta.SampleQueryService.DeleteSampleQuery", - "service": { - "shortName": "SampleQueryService", - "fullName": "google.cloud.discoveryengine.v1beta.SampleQueryService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_SampleQueryService_ImportSampleQueries_async", - "title": "CompletionService importSampleQueries Sample", - "origin": "API_DEFINITION", - "description": " Bulk import of multiple [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s. Sample queries that already exist may be deleted. Note: It is possible for a subset of the [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s to be successfully imported.", - "canonical": true, - "file": "sample_query_service.import_sample_queries.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportSampleQueries", - "fullName": "google.cloud.discoveryengine.v1beta.SampleQueryService.ImportSampleQueries", - "async": true, - "parameters": [ - { - "name": "inline_source", - "type": ".google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest.InlineSource" - }, - { - "name": "gcs_source", - "type": ".google.cloud.discoveryengine.v1beta.GcsSource" - }, - { - "name": "bigquery_source", - "type": ".google.cloud.discoveryengine.v1beta.BigQuerySource" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "error_config", - "type": ".google.cloud.discoveryengine.v1beta.ImportErrorConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SampleQueryServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.SampleQueryServiceClient" - }, - "method": { - "shortName": "ImportSampleQueries", - "fullName": "google.cloud.discoveryengine.v1beta.SampleQueryService.ImportSampleQueries", - "service": { - "shortName": "SampleQueryService", - "fullName": "google.cloud.discoveryengine.v1beta.SampleQueryService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_SampleQuerySetService_GetSampleQuerySet_async", - "title": "CompletionService getSampleQuerySet Sample", - "origin": "API_DEFINITION", - "description": " Gets a [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet].", - "canonical": true, - "file": "sample_query_set_service.get_sample_query_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSampleQuerySet", - "fullName": "google.cloud.discoveryengine.v1beta.SampleQuerySetService.GetSampleQuerySet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.SampleQuerySet", - "client": { - "shortName": "SampleQuerySetServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.SampleQuerySetServiceClient" - }, - "method": { - "shortName": "GetSampleQuerySet", - "fullName": "google.cloud.discoveryengine.v1beta.SampleQuerySetService.GetSampleQuerySet", - "service": { - "shortName": "SampleQuerySetService", - "fullName": "google.cloud.discoveryengine.v1beta.SampleQuerySetService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_SampleQuerySetService_ListSampleQuerySets_async", - "title": "CompletionService listSampleQuerySets Sample", - "origin": "API_DEFINITION", - "description": " Gets a list of [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]s.", - "canonical": true, - "file": "sample_query_set_service.list_sample_query_sets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSampleQuerySets", - "fullName": "google.cloud.discoveryengine.v1beta.SampleQuerySetService.ListSampleQuerySets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse", - "client": { - "shortName": "SampleQuerySetServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.SampleQuerySetServiceClient" - }, - "method": { - "shortName": "ListSampleQuerySets", - "fullName": "google.cloud.discoveryengine.v1beta.SampleQuerySetService.ListSampleQuerySets", - "service": { - "shortName": "SampleQuerySetService", - "fullName": "google.cloud.discoveryengine.v1beta.SampleQuerySetService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_SampleQuerySetService_CreateSampleQuerySet_async", - "title": "CompletionService createSampleQuerySet Sample", - "origin": "API_DEFINITION", - "description": " Creates a [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]", - "canonical": true, - "file": "sample_query_set_service.create_sample_query_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSampleQuerySet", - "fullName": "google.cloud.discoveryengine.v1beta.SampleQuerySetService.CreateSampleQuerySet", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "sample_query_set", - "type": ".google.cloud.discoveryengine.v1beta.SampleQuerySet" - }, - { - "name": "sample_query_set_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.SampleQuerySet", - "client": { - "shortName": "SampleQuerySetServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.SampleQuerySetServiceClient" - }, - "method": { - "shortName": "CreateSampleQuerySet", - "fullName": "google.cloud.discoveryengine.v1beta.SampleQuerySetService.CreateSampleQuerySet", - "service": { - "shortName": "SampleQuerySetService", - "fullName": "google.cloud.discoveryengine.v1beta.SampleQuerySetService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_SampleQuerySetService_UpdateSampleQuerySet_async", - "title": "CompletionService updateSampleQuerySet Sample", - "origin": "API_DEFINITION", - "description": " Updates a [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet].", - "canonical": true, - "file": "sample_query_set_service.update_sample_query_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSampleQuerySet", - "fullName": "google.cloud.discoveryengine.v1beta.SampleQuerySetService.UpdateSampleQuerySet", - "async": true, - "parameters": [ - { - "name": "sample_query_set", - "type": ".google.cloud.discoveryengine.v1beta.SampleQuerySet" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.SampleQuerySet", - "client": { - "shortName": "SampleQuerySetServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.SampleQuerySetServiceClient" - }, - "method": { - "shortName": "UpdateSampleQuerySet", - "fullName": "google.cloud.discoveryengine.v1beta.SampleQuerySetService.UpdateSampleQuerySet", - "service": { - "shortName": "SampleQuerySetService", - "fullName": "google.cloud.discoveryengine.v1beta.SampleQuerySetService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_SampleQuerySetService_DeleteSampleQuerySet_async", - "title": "CompletionService deleteSampleQuerySet Sample", - "origin": "API_DEFINITION", - "description": " Deletes a [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet].", - "canonical": true, - "file": "sample_query_set_service.delete_sample_query_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSampleQuerySet", - "fullName": "google.cloud.discoveryengine.v1beta.SampleQuerySetService.DeleteSampleQuerySet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "SampleQuerySetServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.SampleQuerySetServiceClient" - }, - "method": { - "shortName": "DeleteSampleQuerySet", - "fullName": "google.cloud.discoveryengine.v1beta.SampleQuerySetService.DeleteSampleQuerySet", - "service": { - "shortName": "SampleQuerySetService", - "fullName": "google.cloud.discoveryengine.v1beta.SampleQuerySetService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_SchemaService_GetSchema_async", - "title": "CompletionService getSchema Sample", - "origin": "API_DEFINITION", - "description": " Gets a [Schema][google.cloud.discoveryengine.v1beta.Schema].", - "canonical": true, - "file": "schema_service.get_schema.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSchema", - "fullName": "google.cloud.discoveryengine.v1beta.SchemaService.GetSchema", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.Schema", - "client": { - "shortName": "SchemaServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.SchemaServiceClient" - }, - "method": { - "shortName": "GetSchema", - "fullName": "google.cloud.discoveryengine.v1beta.SchemaService.GetSchema", - "service": { - "shortName": "SchemaService", - "fullName": "google.cloud.discoveryengine.v1beta.SchemaService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_SchemaService_ListSchemas_async", - "title": "CompletionService listSchemas Sample", - "origin": "API_DEFINITION", - "description": " Gets a list of [Schema][google.cloud.discoveryengine.v1beta.Schema]s.", - "canonical": true, - "file": "schema_service.list_schemas.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSchemas", - "fullName": "google.cloud.discoveryengine.v1beta.SchemaService.ListSchemas", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.ListSchemasResponse", - "client": { - "shortName": "SchemaServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.SchemaServiceClient" - }, - "method": { - "shortName": "ListSchemas", - "fullName": "google.cloud.discoveryengine.v1beta.SchemaService.ListSchemas", - "service": { - "shortName": "SchemaService", - "fullName": "google.cloud.discoveryengine.v1beta.SchemaService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_SchemaService_CreateSchema_async", - "title": "CompletionService createSchema Sample", - "origin": "API_DEFINITION", - "description": " Creates a [Schema][google.cloud.discoveryengine.v1beta.Schema].", - "canonical": true, - "file": "schema_service.create_schema.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSchema", - "fullName": "google.cloud.discoveryengine.v1beta.SchemaService.CreateSchema", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "schema", - "type": ".google.cloud.discoveryengine.v1beta.Schema" - }, - { - "name": "schema_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SchemaServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.SchemaServiceClient" - }, - "method": { - "shortName": "CreateSchema", - "fullName": "google.cloud.discoveryengine.v1beta.SchemaService.CreateSchema", - "service": { - "shortName": "SchemaService", - "fullName": "google.cloud.discoveryengine.v1beta.SchemaService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_SchemaService_UpdateSchema_async", - "title": "CompletionService updateSchema Sample", - "origin": "API_DEFINITION", - "description": " Updates a [Schema][google.cloud.discoveryengine.v1beta.Schema].", - "canonical": true, - "file": "schema_service.update_schema.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSchema", - "fullName": "google.cloud.discoveryengine.v1beta.SchemaService.UpdateSchema", - "async": true, - "parameters": [ - { - "name": "schema", - "type": ".google.cloud.discoveryengine.v1beta.Schema" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SchemaServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.SchemaServiceClient" - }, - "method": { - "shortName": "UpdateSchema", - "fullName": "google.cloud.discoveryengine.v1beta.SchemaService.UpdateSchema", - "service": { - "shortName": "SchemaService", - "fullName": "google.cloud.discoveryengine.v1beta.SchemaService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_SchemaService_DeleteSchema_async", - "title": "CompletionService deleteSchema Sample", - "origin": "API_DEFINITION", - "description": " Deletes a [Schema][google.cloud.discoveryengine.v1beta.Schema].", - "canonical": true, - "file": "schema_service.delete_schema.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSchema", - "fullName": "google.cloud.discoveryengine.v1beta.SchemaService.DeleteSchema", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SchemaServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.SchemaServiceClient" - }, - "method": { - "shortName": "DeleteSchema", - "fullName": "google.cloud.discoveryengine.v1beta.SchemaService.DeleteSchema", - "service": { - "shortName": "SchemaService", - "fullName": "google.cloud.discoveryengine.v1beta.SchemaService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_SearchService_Search_async", - "title": "CompletionService search Sample", - "origin": "API_DEFINITION", - "description": " Performs a search.", - "canonical": true, - "file": "search_service.search.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 408, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Search", - "fullName": "google.cloud.discoveryengine.v1beta.SearchService.Search", - "async": true, - "parameters": [ - { - "name": "serving_config", - "type": "TYPE_STRING" - }, - { - "name": "branch", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": "TYPE_STRING" - }, - { - "name": "image_query", - "type": ".google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "offset", - "type": "TYPE_INT32" - }, - { - "name": "one_box_page_size", - "type": "TYPE_INT32" - }, - { - "name": "data_store_specs", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "canonical_filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "user_info", - "type": ".google.cloud.discoveryengine.v1beta.UserInfo" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "region_code", - "type": "TYPE_STRING" - }, - { - "name": "facet_specs", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "boost_spec", - "type": ".google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec" - }, - { - "name": "params", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "query_expansion_spec", - "type": ".google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec" - }, - { - "name": "spell_correction_spec", - "type": ".google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec" - }, - { - "name": "user_pseudo_id", - "type": "TYPE_STRING" - }, - { - "name": "content_search_spec", - "type": ".google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec" - }, - { - "name": "embedding_spec", - "type": ".google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec" - }, - { - "name": "ranking_expression", - "type": "TYPE_STRING" - }, - { - "name": "ranking_expression_backend", - "type": ".google.cloud.discoveryengine.v1beta.SearchRequest.RankingExpressionBackend" - }, - { - "name": "safe_search", - "type": "TYPE_BOOL" - }, - { - "name": "user_labels", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "natural_language_query_understanding_spec", - "type": ".google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec" - }, - { - "name": "search_as_you_type_spec", - "type": ".google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec" - }, - { - "name": "session", - "type": "TYPE_STRING" - }, - { - "name": "session_spec", - "type": ".google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec" - }, - { - "name": "relevance_threshold", - "type": ".google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold" - }, - { - "name": "personalization_spec", - "type": ".google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.SearchResponse", - "client": { - "shortName": "SearchServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.SearchServiceClient" - }, - "method": { - "shortName": "Search", - "fullName": "google.cloud.discoveryengine.v1beta.SearchService.Search", - "service": { - "shortName": "SearchService", - "fullName": "google.cloud.discoveryengine.v1beta.SearchService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_SearchService_SearchLite_async", - "title": "CompletionService searchLite Sample", - "origin": "API_DEFINITION", - "description": " Performs a search. Similar to the [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search] method, but a lite version that allows API key for authentication, where OAuth and IAM checks are not required. Only public website search is supported by this method. If data stores and engines not associated with public website search are specified, a `FAILED_PRECONDITION` error is returned. This method can be used for easy onboarding without having to implement an authentication backend. However, it is strongly recommended to use [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search] instead with required OAuth and IAM checks to provide better data security.", - "canonical": true, - "file": "search_service.search_lite.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 408, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchLite", - "fullName": "google.cloud.discoveryengine.v1beta.SearchService.SearchLite", - "async": true, - "parameters": [ - { - "name": "serving_config", - "type": "TYPE_STRING" - }, - { - "name": "branch", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": "TYPE_STRING" - }, - { - "name": "image_query", - "type": ".google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "offset", - "type": "TYPE_INT32" - }, - { - "name": "one_box_page_size", - "type": "TYPE_INT32" - }, - { - "name": "data_store_specs", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "canonical_filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "user_info", - "type": ".google.cloud.discoveryengine.v1beta.UserInfo" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "region_code", - "type": "TYPE_STRING" - }, - { - "name": "facet_specs", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "boost_spec", - "type": ".google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec" - }, - { - "name": "params", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "query_expansion_spec", - "type": ".google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec" - }, - { - "name": "spell_correction_spec", - "type": ".google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec" - }, - { - "name": "user_pseudo_id", - "type": "TYPE_STRING" - }, - { - "name": "content_search_spec", - "type": ".google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec" - }, - { - "name": "embedding_spec", - "type": ".google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec" - }, - { - "name": "ranking_expression", - "type": "TYPE_STRING" - }, - { - "name": "ranking_expression_backend", - "type": ".google.cloud.discoveryengine.v1beta.SearchRequest.RankingExpressionBackend" - }, - { - "name": "safe_search", - "type": "TYPE_BOOL" - }, - { - "name": "user_labels", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "natural_language_query_understanding_spec", - "type": ".google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec" - }, - { - "name": "search_as_you_type_spec", - "type": ".google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec" - }, - { - "name": "session", - "type": "TYPE_STRING" - }, - { - "name": "session_spec", - "type": ".google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec" - }, - { - "name": "relevance_threshold", - "type": ".google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold" - }, - { - "name": "personalization_spec", - "type": ".google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.SearchResponse", - "client": { - "shortName": "SearchServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.SearchServiceClient" - }, - "method": { - "shortName": "SearchLite", - "fullName": "google.cloud.discoveryengine.v1beta.SearchService.SearchLite", - "service": { - "shortName": "SearchService", - "fullName": "google.cloud.discoveryengine.v1beta.SearchService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_SearchTuningService_TrainCustomModel_async", - "title": "CompletionService trainCustomModel Sample", - "origin": "API_DEFINITION", - "description": " Trains a custom model.", - "canonical": true, - "file": "search_tuning_service.train_custom_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TrainCustomModel", - "fullName": "google.cloud.discoveryengine.v1beta.SearchTuningService.TrainCustomModel", - "async": true, - "parameters": [ - { - "name": "gcs_training_input", - "type": ".google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput" - }, - { - "name": "data_store", - "type": "TYPE_STRING" - }, - { - "name": "model_type", - "type": "TYPE_STRING" - }, - { - "name": "error_config", - "type": ".google.cloud.discoveryengine.v1beta.ImportErrorConfig" - }, - { - "name": "model_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SearchTuningServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.SearchTuningServiceClient" - }, - "method": { - "shortName": "TrainCustomModel", - "fullName": "google.cloud.discoveryengine.v1beta.SearchTuningService.TrainCustomModel", - "service": { - "shortName": "SearchTuningService", - "fullName": "google.cloud.discoveryengine.v1beta.SearchTuningService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_SearchTuningService_ListCustomModels_async", - "title": "CompletionService listCustomModels Sample", - "origin": "API_DEFINITION", - "description": " Gets a list of all the custom models.", - "canonical": true, - "file": "search_tuning_service.list_custom_models.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCustomModels", - "fullName": "google.cloud.discoveryengine.v1beta.SearchTuningService.ListCustomModels", - "async": true, - "parameters": [ - { - "name": "data_store", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.ListCustomModelsResponse", - "client": { - "shortName": "SearchTuningServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.SearchTuningServiceClient" - }, - "method": { - "shortName": "ListCustomModels", - "fullName": "google.cloud.discoveryengine.v1beta.SearchTuningService.ListCustomModels", - "service": { - "shortName": "SearchTuningService", - "fullName": "google.cloud.discoveryengine.v1beta.SearchTuningService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_ServingConfigService_UpdateServingConfig_async", - "title": "CompletionService updateServingConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates a ServingConfig. Returns a NOT_FOUND error if the ServingConfig does not exist.", - "canonical": true, - "file": "serving_config_service.update_serving_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateServingConfig", - "fullName": "google.cloud.discoveryengine.v1beta.ServingConfigService.UpdateServingConfig", - "async": true, - "parameters": [ - { - "name": "serving_config", - "type": ".google.cloud.discoveryengine.v1beta.ServingConfig" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.ServingConfig", - "client": { - "shortName": "ServingConfigServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.ServingConfigServiceClient" - }, - "method": { - "shortName": "UpdateServingConfig", - "fullName": "google.cloud.discoveryengine.v1beta.ServingConfigService.UpdateServingConfig", - "service": { - "shortName": "ServingConfigService", - "fullName": "google.cloud.discoveryengine.v1beta.ServingConfigService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_ServingConfigService_GetServingConfig_async", - "title": "CompletionService getServingConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets a ServingConfig. Returns a NotFound error if the ServingConfig does not exist.", - "canonical": true, - "file": "serving_config_service.get_serving_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetServingConfig", - "fullName": "google.cloud.discoveryengine.v1beta.ServingConfigService.GetServingConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.ServingConfig", - "client": { - "shortName": "ServingConfigServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.ServingConfigServiceClient" - }, - "method": { - "shortName": "GetServingConfig", - "fullName": "google.cloud.discoveryengine.v1beta.ServingConfigService.GetServingConfig", - "service": { - "shortName": "ServingConfigService", - "fullName": "google.cloud.discoveryengine.v1beta.ServingConfigService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_ServingConfigService_ListServingConfigs_async", - "title": "CompletionService listServingConfigs Sample", - "origin": "API_DEFINITION", - "description": " Lists all ServingConfigs linked to this dataStore.", - "canonical": true, - "file": "serving_config_service.list_serving_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListServingConfigs", - "fullName": "google.cloud.discoveryengine.v1beta.ServingConfigService.ListServingConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.ListServingConfigsResponse", - "client": { - "shortName": "ServingConfigServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.ServingConfigServiceClient" - }, - "method": { - "shortName": "ListServingConfigs", - "fullName": "google.cloud.discoveryengine.v1beta.ServingConfigService.ListServingConfigs", - "service": { - "shortName": "ServingConfigService", - "fullName": "google.cloud.discoveryengine.v1beta.ServingConfigService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_SessionService_CreateSession_async", - "title": "CompletionService createSession Sample", - "origin": "API_DEFINITION", - "description": " Creates a Session. If the [Session][google.cloud.discoveryengine.v1beta.Session] to create already exists, an ALREADY_EXISTS error is returned.", - "canonical": true, - "file": "session_service.create_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSession", - "fullName": "google.cloud.discoveryengine.v1beta.SessionService.CreateSession", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "session", - "type": ".google.cloud.discoveryengine.v1beta.Session" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.Session", - "client": { - "shortName": "SessionServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.SessionServiceClient" - }, - "method": { - "shortName": "CreateSession", - "fullName": "google.cloud.discoveryengine.v1beta.SessionService.CreateSession", - "service": { - "shortName": "SessionService", - "fullName": "google.cloud.discoveryengine.v1beta.SessionService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_SessionService_DeleteSession_async", - "title": "CompletionService deleteSession Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Session. If the [Session][google.cloud.discoveryengine.v1beta.Session] to delete does not exist, a NOT_FOUND error is returned.", - "canonical": true, - "file": "session_service.delete_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSession", - "fullName": "google.cloud.discoveryengine.v1beta.SessionService.DeleteSession", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "SessionServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.SessionServiceClient" - }, - "method": { - "shortName": "DeleteSession", - "fullName": "google.cloud.discoveryengine.v1beta.SessionService.DeleteSession", - "service": { - "shortName": "SessionService", - "fullName": "google.cloud.discoveryengine.v1beta.SessionService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_SessionService_UpdateSession_async", - "title": "CompletionService updateSession Sample", - "origin": "API_DEFINITION", - "description": " Updates a Session. [Session][google.cloud.discoveryengine.v1beta.Session] action type cannot be changed. If the [Session][google.cloud.discoveryengine.v1beta.Session] to update does not exist, a NOT_FOUND error is returned.", - "canonical": true, - "file": "session_service.update_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSession", - "fullName": "google.cloud.discoveryengine.v1beta.SessionService.UpdateSession", - "async": true, - "parameters": [ - { - "name": "session", - "type": ".google.cloud.discoveryengine.v1beta.Session" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.Session", - "client": { - "shortName": "SessionServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.SessionServiceClient" - }, - "method": { - "shortName": "UpdateSession", - "fullName": "google.cloud.discoveryengine.v1beta.SessionService.UpdateSession", - "service": { - "shortName": "SessionService", - "fullName": "google.cloud.discoveryengine.v1beta.SessionService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_SessionService_GetSession_async", - "title": "CompletionService getSession Sample", - "origin": "API_DEFINITION", - "description": " Gets a Session.", - "canonical": true, - "file": "session_service.get_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSession", - "fullName": "google.cloud.discoveryengine.v1beta.SessionService.GetSession", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "include_answer_details", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.Session", - "client": { - "shortName": "SessionServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.SessionServiceClient" - }, - "method": { - "shortName": "GetSession", - "fullName": "google.cloud.discoveryengine.v1beta.SessionService.GetSession", - "service": { - "shortName": "SessionService", - "fullName": "google.cloud.discoveryengine.v1beta.SessionService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_SessionService_ListSessions_async", - "title": "CompletionService listSessions Sample", - "origin": "API_DEFINITION", - "description": " Lists all Sessions by their parent [DataStore][google.cloud.discoveryengine.v1beta.DataStore].", - "canonical": true, - "file": "session_service.list_sessions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 100, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSessions", - "fullName": "google.cloud.discoveryengine.v1beta.SessionService.ListSessions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.ListSessionsResponse", - "client": { - "shortName": "SessionServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.SessionServiceClient" - }, - "method": { - "shortName": "ListSessions", - "fullName": "google.cloud.discoveryengine.v1beta.SessionService.ListSessions", - "service": { - "shortName": "SessionService", - "fullName": "google.cloud.discoveryengine.v1beta.SessionService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_SiteSearchEngineService_GetSiteSearchEngine_async", - "title": "CompletionService getSiteSearchEngine Sample", - "origin": "API_DEFINITION", - "description": " Gets the [SiteSearchEngine][google.cloud.discoveryengine.v1beta.SiteSearchEngine].", - "canonical": true, - "file": "site_search_engine_service.get_site_search_engine.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSiteSearchEngine", - "fullName": "google.cloud.discoveryengine.v1beta.SiteSearchEngineService.GetSiteSearchEngine", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.SiteSearchEngine", - "client": { - "shortName": "SiteSearchEngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.SiteSearchEngineServiceClient" - }, - "method": { - "shortName": "GetSiteSearchEngine", - "fullName": "google.cloud.discoveryengine.v1beta.SiteSearchEngineService.GetSiteSearchEngine", - "service": { - "shortName": "SiteSearchEngineService", - "fullName": "google.cloud.discoveryengine.v1beta.SiteSearchEngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_SiteSearchEngineService_CreateTargetSite_async", - "title": "CompletionService createTargetSite Sample", - "origin": "API_DEFINITION", - "description": " Creates a [TargetSite][google.cloud.discoveryengine.v1beta.TargetSite].", - "canonical": true, - "file": "site_search_engine_service.create_target_site.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTargetSite", - "fullName": "google.cloud.discoveryengine.v1beta.SiteSearchEngineService.CreateTargetSite", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "target_site", - "type": ".google.cloud.discoveryengine.v1beta.TargetSite" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SiteSearchEngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.SiteSearchEngineServiceClient" - }, - "method": { - "shortName": "CreateTargetSite", - "fullName": "google.cloud.discoveryengine.v1beta.SiteSearchEngineService.CreateTargetSite", - "service": { - "shortName": "SiteSearchEngineService", - "fullName": "google.cloud.discoveryengine.v1beta.SiteSearchEngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_SiteSearchEngineService_BatchCreateTargetSites_async", - "title": "CompletionService batchCreateTargetSites Sample", - "origin": "API_DEFINITION", - "description": " Creates [TargetSite][google.cloud.discoveryengine.v1beta.TargetSite] in a batch.", - "canonical": true, - "file": "site_search_engine_service.batch_create_target_sites.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCreateTargetSites", - "fullName": "google.cloud.discoveryengine.v1beta.SiteSearchEngineService.BatchCreateTargetSites", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SiteSearchEngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.SiteSearchEngineServiceClient" - }, - "method": { - "shortName": "BatchCreateTargetSites", - "fullName": "google.cloud.discoveryengine.v1beta.SiteSearchEngineService.BatchCreateTargetSites", - "service": { - "shortName": "SiteSearchEngineService", - "fullName": "google.cloud.discoveryengine.v1beta.SiteSearchEngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_SiteSearchEngineService_GetTargetSite_async", - "title": "CompletionService getTargetSite Sample", - "origin": "API_DEFINITION", - "description": " Gets a [TargetSite][google.cloud.discoveryengine.v1beta.TargetSite].", - "canonical": true, - "file": "site_search_engine_service.get_target_site.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTargetSite", - "fullName": "google.cloud.discoveryengine.v1beta.SiteSearchEngineService.GetTargetSite", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.TargetSite", - "client": { - "shortName": "SiteSearchEngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.SiteSearchEngineServiceClient" - }, - "method": { - "shortName": "GetTargetSite", - "fullName": "google.cloud.discoveryengine.v1beta.SiteSearchEngineService.GetTargetSite", - "service": { - "shortName": "SiteSearchEngineService", - "fullName": "google.cloud.discoveryengine.v1beta.SiteSearchEngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_SiteSearchEngineService_UpdateTargetSite_async", - "title": "CompletionService updateTargetSite Sample", - "origin": "API_DEFINITION", - "description": " Updates a [TargetSite][google.cloud.discoveryengine.v1beta.TargetSite].", - "canonical": true, - "file": "site_search_engine_service.update_target_site.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTargetSite", - "fullName": "google.cloud.discoveryengine.v1beta.SiteSearchEngineService.UpdateTargetSite", - "async": true, - "parameters": [ - { - "name": "target_site", - "type": ".google.cloud.discoveryengine.v1beta.TargetSite" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SiteSearchEngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.SiteSearchEngineServiceClient" - }, - "method": { - "shortName": "UpdateTargetSite", - "fullName": "google.cloud.discoveryengine.v1beta.SiteSearchEngineService.UpdateTargetSite", - "service": { - "shortName": "SiteSearchEngineService", - "fullName": "google.cloud.discoveryengine.v1beta.SiteSearchEngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_SiteSearchEngineService_DeleteTargetSite_async", - "title": "CompletionService deleteTargetSite Sample", - "origin": "API_DEFINITION", - "description": " Deletes a [TargetSite][google.cloud.discoveryengine.v1beta.TargetSite].", - "canonical": true, - "file": "site_search_engine_service.delete_target_site.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTargetSite", - "fullName": "google.cloud.discoveryengine.v1beta.SiteSearchEngineService.DeleteTargetSite", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SiteSearchEngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.SiteSearchEngineServiceClient" - }, - "method": { - "shortName": "DeleteTargetSite", - "fullName": "google.cloud.discoveryengine.v1beta.SiteSearchEngineService.DeleteTargetSite", - "service": { - "shortName": "SiteSearchEngineService", - "fullName": "google.cloud.discoveryengine.v1beta.SiteSearchEngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_SiteSearchEngineService_ListTargetSites_async", - "title": "CompletionService listTargetSites Sample", - "origin": "API_DEFINITION", - "description": " Gets a list of [TargetSite][google.cloud.discoveryengine.v1beta.TargetSite]s.", - "canonical": true, - "file": "site_search_engine_service.list_target_sites.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTargetSites", - "fullName": "google.cloud.discoveryengine.v1beta.SiteSearchEngineService.ListTargetSites", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.ListTargetSitesResponse", - "client": { - "shortName": "SiteSearchEngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.SiteSearchEngineServiceClient" - }, - "method": { - "shortName": "ListTargetSites", - "fullName": "google.cloud.discoveryengine.v1beta.SiteSearchEngineService.ListTargetSites", - "service": { - "shortName": "SiteSearchEngineService", - "fullName": "google.cloud.discoveryengine.v1beta.SiteSearchEngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_SiteSearchEngineService_CreateSitemap_async", - "title": "CompletionService createSitemap Sample", - "origin": "API_DEFINITION", - "description": " Creates a [Sitemap][google.cloud.discoveryengine.v1beta.Sitemap].", - "canonical": true, - "file": "site_search_engine_service.create_sitemap.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSitemap", - "fullName": "google.cloud.discoveryengine.v1beta.SiteSearchEngineService.CreateSitemap", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "sitemap", - "type": ".google.cloud.discoveryengine.v1beta.Sitemap" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SiteSearchEngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.SiteSearchEngineServiceClient" - }, - "method": { - "shortName": "CreateSitemap", - "fullName": "google.cloud.discoveryengine.v1beta.SiteSearchEngineService.CreateSitemap", - "service": { - "shortName": "SiteSearchEngineService", - "fullName": "google.cloud.discoveryengine.v1beta.SiteSearchEngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_SiteSearchEngineService_DeleteSitemap_async", - "title": "CompletionService deleteSitemap Sample", - "origin": "API_DEFINITION", - "description": " Deletes a [Sitemap][google.cloud.discoveryengine.v1beta.Sitemap].", - "canonical": true, - "file": "site_search_engine_service.delete_sitemap.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSitemap", - "fullName": "google.cloud.discoveryengine.v1beta.SiteSearchEngineService.DeleteSitemap", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SiteSearchEngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.SiteSearchEngineServiceClient" - }, - "method": { - "shortName": "DeleteSitemap", - "fullName": "google.cloud.discoveryengine.v1beta.SiteSearchEngineService.DeleteSitemap", - "service": { - "shortName": "SiteSearchEngineService", - "fullName": "google.cloud.discoveryengine.v1beta.SiteSearchEngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_SiteSearchEngineService_FetchSitemaps_async", - "title": "CompletionService fetchSitemaps Sample", - "origin": "API_DEFINITION", - "description": " Fetch [Sitemap][google.cloud.discoveryengine.v1beta.Sitemap]s in a [DataStore][google.cloud.discoveryengine.v1beta.DataStore].", - "canonical": true, - "file": "site_search_engine_service.fetch_sitemaps.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchSitemaps", - "fullName": "google.cloud.discoveryengine.v1beta.SiteSearchEngineService.FetchSitemaps", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "matcher", - "type": ".google.cloud.discoveryengine.v1beta.FetchSitemapsRequest.Matcher" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.FetchSitemapsResponse", - "client": { - "shortName": "SiteSearchEngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.SiteSearchEngineServiceClient" - }, - "method": { - "shortName": "FetchSitemaps", - "fullName": "google.cloud.discoveryengine.v1beta.SiteSearchEngineService.FetchSitemaps", - "service": { - "shortName": "SiteSearchEngineService", - "fullName": "google.cloud.discoveryengine.v1beta.SiteSearchEngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_SiteSearchEngineService_EnableAdvancedSiteSearch_async", - "title": "CompletionService enableAdvancedSiteSearch Sample", - "origin": "API_DEFINITION", - "description": " Upgrade from basic site search to advanced site search.", - "canonical": true, - "file": "site_search_engine_service.enable_advanced_site_search.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "EnableAdvancedSiteSearch", - "fullName": "google.cloud.discoveryengine.v1beta.SiteSearchEngineService.EnableAdvancedSiteSearch", - "async": true, - "parameters": [ - { - "name": "site_search_engine", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SiteSearchEngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.SiteSearchEngineServiceClient" - }, - "method": { - "shortName": "EnableAdvancedSiteSearch", - "fullName": "google.cloud.discoveryengine.v1beta.SiteSearchEngineService.EnableAdvancedSiteSearch", - "service": { - "shortName": "SiteSearchEngineService", - "fullName": "google.cloud.discoveryengine.v1beta.SiteSearchEngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_SiteSearchEngineService_DisableAdvancedSiteSearch_async", - "title": "CompletionService disableAdvancedSiteSearch Sample", - "origin": "API_DEFINITION", - "description": " Downgrade from advanced site search to basic site search.", - "canonical": true, - "file": "site_search_engine_service.disable_advanced_site_search.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DisableAdvancedSiteSearch", - "fullName": "google.cloud.discoveryengine.v1beta.SiteSearchEngineService.DisableAdvancedSiteSearch", - "async": true, - "parameters": [ - { - "name": "site_search_engine", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SiteSearchEngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.SiteSearchEngineServiceClient" - }, - "method": { - "shortName": "DisableAdvancedSiteSearch", - "fullName": "google.cloud.discoveryengine.v1beta.SiteSearchEngineService.DisableAdvancedSiteSearch", - "service": { - "shortName": "SiteSearchEngineService", - "fullName": "google.cloud.discoveryengine.v1beta.SiteSearchEngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_SiteSearchEngineService_RecrawlUris_async", - "title": "CompletionService recrawlUris Sample", - "origin": "API_DEFINITION", - "description": " Request on-demand recrawl for a list of URIs.", - "canonical": true, - "file": "site_search_engine_service.recrawl_uris.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RecrawlUris", - "fullName": "google.cloud.discoveryengine.v1beta.SiteSearchEngineService.RecrawlUris", - "async": true, - "parameters": [ - { - "name": "site_search_engine", - "type": "TYPE_STRING" - }, - { - "name": "uris", - "type": "TYPE_STRING[]" - }, - { - "name": "site_credential", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SiteSearchEngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.SiteSearchEngineServiceClient" - }, - "method": { - "shortName": "RecrawlUris", - "fullName": "google.cloud.discoveryengine.v1beta.SiteSearchEngineService.RecrawlUris", - "service": { - "shortName": "SiteSearchEngineService", - "fullName": "google.cloud.discoveryengine.v1beta.SiteSearchEngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_SiteSearchEngineService_BatchVerifyTargetSites_async", - "title": "CompletionService batchVerifyTargetSites Sample", - "origin": "API_DEFINITION", - "description": " Verify target sites' ownership and validity. This API sends all the target sites under site search engine for verification.", - "canonical": true, - "file": "site_search_engine_service.batch_verify_target_sites.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchVerifyTargetSites", - "fullName": "google.cloud.discoveryengine.v1beta.SiteSearchEngineService.BatchVerifyTargetSites", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SiteSearchEngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.SiteSearchEngineServiceClient" - }, - "method": { - "shortName": "BatchVerifyTargetSites", - "fullName": "google.cloud.discoveryengine.v1beta.SiteSearchEngineService.BatchVerifyTargetSites", - "service": { - "shortName": "SiteSearchEngineService", - "fullName": "google.cloud.discoveryengine.v1beta.SiteSearchEngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_SiteSearchEngineService_FetchDomainVerificationStatus_async", - "title": "CompletionService fetchDomainVerificationStatus Sample", - "origin": "API_DEFINITION", - "description": " Returns list of target sites with its domain verification status. This method can only be called under data store with BASIC_SITE_SEARCH state at the moment.", - "canonical": true, - "file": "site_search_engine_service.fetch_domain_verification_status.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchDomainVerificationStatus", - "fullName": "google.cloud.discoveryengine.v1beta.SiteSearchEngineService.FetchDomainVerificationStatus", - "async": true, - "parameters": [ - { - "name": "site_search_engine", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.FetchDomainVerificationStatusResponse", - "client": { - "shortName": "SiteSearchEngineServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.SiteSearchEngineServiceClient" - }, - "method": { - "shortName": "FetchDomainVerificationStatus", - "fullName": "google.cloud.discoveryengine.v1beta.SiteSearchEngineService.FetchDomainVerificationStatus", - "service": { - "shortName": "SiteSearchEngineService", - "fullName": "google.cloud.discoveryengine.v1beta.SiteSearchEngineService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_UserEventService_WriteUserEvent_async", - "title": "CompletionService writeUserEvent Sample", - "origin": "API_DEFINITION", - "description": " Writes a single user event.", - "canonical": true, - "file": "user_event_service.write_user_event.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "WriteUserEvent", - "fullName": "google.cloud.discoveryengine.v1beta.UserEventService.WriteUserEvent", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "user_event", - "type": ".google.cloud.discoveryengine.v1beta.UserEvent" - }, - { - "name": "write_async", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.discoveryengine.v1beta.UserEvent", - "client": { - "shortName": "UserEventServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.UserEventServiceClient" - }, - "method": { - "shortName": "WriteUserEvent", - "fullName": "google.cloud.discoveryengine.v1beta.UserEventService.WriteUserEvent", - "service": { - "shortName": "UserEventService", - "fullName": "google.cloud.discoveryengine.v1beta.UserEventService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_UserEventService_CollectUserEvent_async", - "title": "CompletionService collectUserEvent Sample", - "origin": "API_DEFINITION", - "description": " Writes a single user event from the browser. This uses a GET request to due to browser restriction of POST-ing to a third-party domain. This method is used only by the Discovery Engine API JavaScript pixel and Google Tag Manager. Users should not call this method directly.", - "canonical": true, - "file": "user_event_service.collect_user_event.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CollectUserEvent", - "fullName": "google.cloud.discoveryengine.v1beta.UserEventService.CollectUserEvent", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "user_event", - "type": "TYPE_STRING" - }, - { - "name": "uri", - "type": "TYPE_STRING" - }, - { - "name": "ets", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.api.HttpBody", - "client": { - "shortName": "UserEventServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.UserEventServiceClient" - }, - "method": { - "shortName": "CollectUserEvent", - "fullName": "google.cloud.discoveryengine.v1beta.UserEventService.CollectUserEvent", - "service": { - "shortName": "UserEventService", - "fullName": "google.cloud.discoveryengine.v1beta.UserEventService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_UserEventService_PurgeUserEvents_async", - "title": "CompletionService purgeUserEvents Sample", - "origin": "API_DEFINITION", - "description": " Deletes permanently all user events specified by the filter provided. Depending on the number of events specified by the filter, this operation could take hours or days to complete. To test a filter, use the list command first.", - "canonical": true, - "file": "user_event_service.purge_user_events.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 90, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PurgeUserEvents", - "fullName": "google.cloud.discoveryengine.v1beta.UserEventService.PurgeUserEvents", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "UserEventServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.UserEventServiceClient" - }, - "method": { - "shortName": "PurgeUserEvents", - "fullName": "google.cloud.discoveryengine.v1beta.UserEventService.PurgeUserEvents", - "service": { - "shortName": "UserEventService", - "fullName": "google.cloud.discoveryengine.v1beta.UserEventService" - } - } - } - }, - { - "regionTag": "discoveryengine_v1beta_generated_UserEventService_ImportUserEvents_async", - "title": "CompletionService importUserEvents Sample", - "origin": "API_DEFINITION", - "description": " Bulk import of user events. Request processing might be synchronous. Events that already exist are skipped. Use this method for backfilling historical user events. Operation.response is of type ImportResponse. Note that it is possible for a subset of the items to be successfully inserted. Operation.metadata is of type ImportMetadata.", - "canonical": true, - "file": "user_event_service.import_user_events.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportUserEvents", - "fullName": "google.cloud.discoveryengine.v1beta.UserEventService.ImportUserEvents", - "async": true, - "parameters": [ - { - "name": "inline_source", - "type": ".google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSource" - }, - { - "name": "gcs_source", - "type": ".google.cloud.discoveryengine.v1beta.GcsSource" - }, - { - "name": "bigquery_source", - "type": ".google.cloud.discoveryengine.v1beta.BigQuerySource" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "error_config", - "type": ".google.cloud.discoveryengine.v1beta.ImportErrorConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "UserEventServiceClient", - "fullName": "google.cloud.discoveryengine.v1beta.UserEventServiceClient" - }, - "method": { - "shortName": "ImportUserEvents", - "fullName": "google.cloud.discoveryengine.v1beta.UserEventService.ImportUserEvents", - "service": { - "shortName": "UserEventService", - "fullName": "google.cloud.discoveryengine.v1beta.UserEventService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-documentai/samples/generated/v1/snippet_metadata_google.cloud.documentai.v1.json b/packages/google-cloud-documentai/samples/generated/v1/snippet_metadata_google.cloud.documentai.v1.json deleted file mode 100644 index e88b12f1f5de..000000000000 --- a/packages/google-cloud-documentai/samples/generated/v1/snippet_metadata_google.cloud.documentai.v1.json +++ /dev/null @@ -1,1031 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-documentai", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.documentai.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "documentai_v1_generated_DocumentProcessorService_ProcessDocument_async", - "title": "DocumentProcessorService processDocument Sample", - "origin": "API_DEFINITION", - "description": " Processes a single document.", - "canonical": true, - "file": "document_processor_service.process_document.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 102, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ProcessDocument", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService.ProcessDocument", - "async": true, - "parameters": [ - { - "name": "inline_document", - "type": ".google.cloud.documentai.v1.Document" - }, - { - "name": "raw_document", - "type": ".google.cloud.documentai.v1.RawDocument" - }, - { - "name": "gcs_document", - "type": ".google.cloud.documentai.v1.GcsDocument" - }, - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "skip_human_review", - "type": "TYPE_BOOL" - }, - { - "name": "field_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "process_options", - "type": ".google.cloud.documentai.v1.ProcessOptions" - }, - { - "name": "labels", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "imageless_mode", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.documentai.v1.ProcessResponse", - "client": { - "shortName": "DocumentProcessorServiceClient", - "fullName": "google.cloud.documentai.v1.DocumentProcessorServiceClient" - }, - "method": { - "shortName": "ProcessDocument", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService.ProcessDocument", - "service": { - "shortName": "DocumentProcessorService", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService" - } - } - } - }, - { - "regionTag": "documentai_v1_generated_DocumentProcessorService_BatchProcessDocuments_async", - "title": "DocumentProcessorService batchProcessDocuments Sample", - "origin": "API_DEFINITION", - "description": " LRO endpoint to batch process many documents. The output is written to Cloud Storage as JSON in the [Document] format.", - "canonical": true, - "file": "document_processor_service.batch_process_documents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 88, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchProcessDocuments", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "input_documents", - "type": ".google.cloud.documentai.v1.BatchDocumentsInputConfig" - }, - { - "name": "document_output_config", - "type": ".google.cloud.documentai.v1.DocumentOutputConfig" - }, - { - "name": "skip_human_review", - "type": "TYPE_BOOL" - }, - { - "name": "process_options", - "type": ".google.cloud.documentai.v1.ProcessOptions" - }, - { - "name": "labels", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DocumentProcessorServiceClient", - "fullName": "google.cloud.documentai.v1.DocumentProcessorServiceClient" - }, - "method": { - "shortName": "BatchProcessDocuments", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments", - "service": { - "shortName": "DocumentProcessorService", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService" - } - } - } - }, - { - "regionTag": "documentai_v1_generated_DocumentProcessorService_FetchProcessorTypes_async", - "title": "DocumentProcessorService fetchProcessorTypes Sample", - "origin": "API_DEFINITION", - "description": " Fetches processor types. Note that we don't use [ListProcessorTypes][google.cloud.documentai.v1.DocumentProcessorService.ListProcessorTypes] here, because it isn't paginated.", - "canonical": true, - "file": "document_processor_service.fetch_processor_types.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchProcessorTypes", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService.FetchProcessorTypes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.documentai.v1.FetchProcessorTypesResponse", - "client": { - "shortName": "DocumentProcessorServiceClient", - "fullName": "google.cloud.documentai.v1.DocumentProcessorServiceClient" - }, - "method": { - "shortName": "FetchProcessorTypes", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService.FetchProcessorTypes", - "service": { - "shortName": "DocumentProcessorService", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService" - } - } - } - }, - { - "regionTag": "documentai_v1_generated_DocumentProcessorService_ListProcessorTypes_async", - "title": "DocumentProcessorService listProcessorTypes Sample", - "origin": "API_DEFINITION", - "description": " Lists the processor types that exist.", - "canonical": true, - "file": "document_processor_service.list_processor_types.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListProcessorTypes", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService.ListProcessorTypes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.documentai.v1.ListProcessorTypesResponse", - "client": { - "shortName": "DocumentProcessorServiceClient", - "fullName": "google.cloud.documentai.v1.DocumentProcessorServiceClient" - }, - "method": { - "shortName": "ListProcessorTypes", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService.ListProcessorTypes", - "service": { - "shortName": "DocumentProcessorService", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService" - } - } - } - }, - { - "regionTag": "documentai_v1_generated_DocumentProcessorService_GetProcessorType_async", - "title": "DocumentProcessorService getProcessorType Sample", - "origin": "API_DEFINITION", - "description": " Gets a processor type detail.", - "canonical": true, - "file": "document_processor_service.get_processor_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetProcessorType", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService.GetProcessorType", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.documentai.v1.ProcessorType", - "client": { - "shortName": "DocumentProcessorServiceClient", - "fullName": "google.cloud.documentai.v1.DocumentProcessorServiceClient" - }, - "method": { - "shortName": "GetProcessorType", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService.GetProcessorType", - "service": { - "shortName": "DocumentProcessorService", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService" - } - } - } - }, - { - "regionTag": "documentai_v1_generated_DocumentProcessorService_ListProcessors_async", - "title": "DocumentProcessorService listProcessors Sample", - "origin": "API_DEFINITION", - "description": " Lists all processors which belong to this project.", - "canonical": true, - "file": "document_processor_service.list_processors.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListProcessors", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService.ListProcessors", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.documentai.v1.ListProcessorsResponse", - "client": { - "shortName": "DocumentProcessorServiceClient", - "fullName": "google.cloud.documentai.v1.DocumentProcessorServiceClient" - }, - "method": { - "shortName": "ListProcessors", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService.ListProcessors", - "service": { - "shortName": "DocumentProcessorService", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService" - } - } - } - }, - { - "regionTag": "documentai_v1_generated_DocumentProcessorService_GetProcessor_async", - "title": "DocumentProcessorService getProcessor Sample", - "origin": "API_DEFINITION", - "description": " Gets a processor detail.", - "canonical": true, - "file": "document_processor_service.get_processor.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetProcessor", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService.GetProcessor", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.documentai.v1.Processor", - "client": { - "shortName": "DocumentProcessorServiceClient", - "fullName": "google.cloud.documentai.v1.DocumentProcessorServiceClient" - }, - "method": { - "shortName": "GetProcessor", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService.GetProcessor", - "service": { - "shortName": "DocumentProcessorService", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService" - } - } - } - }, - { - "regionTag": "documentai_v1_generated_DocumentProcessorService_TrainProcessorVersion_async", - "title": "DocumentProcessorService trainProcessorVersion Sample", - "origin": "API_DEFINITION", - "description": " Trains a new processor version. Operation metadata is returned as [TrainProcessorVersionMetadata][google.cloud.documentai.v1.TrainProcessorVersionMetadata].", - "canonical": true, - "file": "document_processor_service.train_processor_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TrainProcessorVersion", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService.TrainProcessorVersion", - "async": true, - "parameters": [ - { - "name": "custom_document_extraction_options", - "type": ".google.cloud.documentai.v1.TrainProcessorVersionRequest.CustomDocumentExtractionOptions" - }, - { - "name": "foundation_model_tuning_options", - "type": ".google.cloud.documentai.v1.TrainProcessorVersionRequest.FoundationModelTuningOptions" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "processor_version", - "type": ".google.cloud.documentai.v1.ProcessorVersion" - }, - { - "name": "document_schema", - "type": ".google.cloud.documentai.v1.DocumentSchema" - }, - { - "name": "input_data", - "type": ".google.cloud.documentai.v1.TrainProcessorVersionRequest.InputData" - }, - { - "name": "base_processor_version", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DocumentProcessorServiceClient", - "fullName": "google.cloud.documentai.v1.DocumentProcessorServiceClient" - }, - "method": { - "shortName": "TrainProcessorVersion", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService.TrainProcessorVersion", - "service": { - "shortName": "DocumentProcessorService", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService" - } - } - } - }, - { - "regionTag": "documentai_v1_generated_DocumentProcessorService_GetProcessorVersion_async", - "title": "DocumentProcessorService getProcessorVersion Sample", - "origin": "API_DEFINITION", - "description": " Gets a processor version detail.", - "canonical": true, - "file": "document_processor_service.get_processor_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetProcessorVersion", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService.GetProcessorVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.documentai.v1.ProcessorVersion", - "client": { - "shortName": "DocumentProcessorServiceClient", - "fullName": "google.cloud.documentai.v1.DocumentProcessorServiceClient" - }, - "method": { - "shortName": "GetProcessorVersion", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService.GetProcessorVersion", - "service": { - "shortName": "DocumentProcessorService", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService" - } - } - } - }, - { - "regionTag": "documentai_v1_generated_DocumentProcessorService_ListProcessorVersions_async", - "title": "DocumentProcessorService listProcessorVersions Sample", - "origin": "API_DEFINITION", - "description": " Lists all versions of a processor.", - "canonical": true, - "file": "document_processor_service.list_processor_versions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListProcessorVersions", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService.ListProcessorVersions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.documentai.v1.ListProcessorVersionsResponse", - "client": { - "shortName": "DocumentProcessorServiceClient", - "fullName": "google.cloud.documentai.v1.DocumentProcessorServiceClient" - }, - "method": { - "shortName": "ListProcessorVersions", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService.ListProcessorVersions", - "service": { - "shortName": "DocumentProcessorService", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService" - } - } - } - }, - { - "regionTag": "documentai_v1_generated_DocumentProcessorService_DeleteProcessorVersion_async", - "title": "DocumentProcessorService deleteProcessorVersion Sample", - "origin": "API_DEFINITION", - "description": " Deletes the processor version, all artifacts under the processor version will be deleted.", - "canonical": true, - "file": "document_processor_service.delete_processor_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteProcessorVersion", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService.DeleteProcessorVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DocumentProcessorServiceClient", - "fullName": "google.cloud.documentai.v1.DocumentProcessorServiceClient" - }, - "method": { - "shortName": "DeleteProcessorVersion", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService.DeleteProcessorVersion", - "service": { - "shortName": "DocumentProcessorService", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService" - } - } - } - }, - { - "regionTag": "documentai_v1_generated_DocumentProcessorService_DeployProcessorVersion_async", - "title": "DocumentProcessorService deployProcessorVersion Sample", - "origin": "API_DEFINITION", - "description": " Deploys the processor version.", - "canonical": true, - "file": "document_processor_service.deploy_processor_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeployProcessorVersion", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService.DeployProcessorVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DocumentProcessorServiceClient", - "fullName": "google.cloud.documentai.v1.DocumentProcessorServiceClient" - }, - "method": { - "shortName": "DeployProcessorVersion", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService.DeployProcessorVersion", - "service": { - "shortName": "DocumentProcessorService", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService" - } - } - } - }, - { - "regionTag": "documentai_v1_generated_DocumentProcessorService_UndeployProcessorVersion_async", - "title": "DocumentProcessorService undeployProcessorVersion Sample", - "origin": "API_DEFINITION", - "description": " Undeploys the processor version.", - "canonical": true, - "file": "document_processor_service.undeploy_processor_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UndeployProcessorVersion", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService.UndeployProcessorVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DocumentProcessorServiceClient", - "fullName": "google.cloud.documentai.v1.DocumentProcessorServiceClient" - }, - "method": { - "shortName": "UndeployProcessorVersion", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService.UndeployProcessorVersion", - "service": { - "shortName": "DocumentProcessorService", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService" - } - } - } - }, - { - "regionTag": "documentai_v1_generated_DocumentProcessorService_CreateProcessor_async", - "title": "DocumentProcessorService createProcessor Sample", - "origin": "API_DEFINITION", - "description": " Creates a processor from the [ProcessorType][google.cloud.documentai.v1.ProcessorType] provided. The processor will be at `ENABLED` state by default after its creation. Note that this method requires the `documentai.processors.create` permission on the project, which is highly privileged. A user or service account with this permission can create new processors that can interact with any gcs bucket in your project.", - "canonical": true, - "file": "document_processor_service.create_processor.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateProcessor", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService.CreateProcessor", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "processor", - "type": ".google.cloud.documentai.v1.Processor" - } - ], - "resultType": ".google.cloud.documentai.v1.Processor", - "client": { - "shortName": "DocumentProcessorServiceClient", - "fullName": "google.cloud.documentai.v1.DocumentProcessorServiceClient" - }, - "method": { - "shortName": "CreateProcessor", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService.CreateProcessor", - "service": { - "shortName": "DocumentProcessorService", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService" - } - } - } - }, - { - "regionTag": "documentai_v1_generated_DocumentProcessorService_DeleteProcessor_async", - "title": "DocumentProcessorService deleteProcessor Sample", - "origin": "API_DEFINITION", - "description": " Deletes the processor, unloads all deployed model artifacts if it was enabled and then deletes all artifacts associated with this processor.", - "canonical": true, - "file": "document_processor_service.delete_processor.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteProcessor", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService.DeleteProcessor", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DocumentProcessorServiceClient", - "fullName": "google.cloud.documentai.v1.DocumentProcessorServiceClient" - }, - "method": { - "shortName": "DeleteProcessor", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService.DeleteProcessor", - "service": { - "shortName": "DocumentProcessorService", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService" - } - } - } - }, - { - "regionTag": "documentai_v1_generated_DocumentProcessorService_EnableProcessor_async", - "title": "DocumentProcessorService enableProcessor Sample", - "origin": "API_DEFINITION", - "description": " Enables a processor", - "canonical": true, - "file": "document_processor_service.enable_processor.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "EnableProcessor", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService.EnableProcessor", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DocumentProcessorServiceClient", - "fullName": "google.cloud.documentai.v1.DocumentProcessorServiceClient" - }, - "method": { - "shortName": "EnableProcessor", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService.EnableProcessor", - "service": { - "shortName": "DocumentProcessorService", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService" - } - } - } - }, - { - "regionTag": "documentai_v1_generated_DocumentProcessorService_DisableProcessor_async", - "title": "DocumentProcessorService disableProcessor Sample", - "origin": "API_DEFINITION", - "description": " Disables a processor", - "canonical": true, - "file": "document_processor_service.disable_processor.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DisableProcessor", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService.DisableProcessor", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DocumentProcessorServiceClient", - "fullName": "google.cloud.documentai.v1.DocumentProcessorServiceClient" - }, - "method": { - "shortName": "DisableProcessor", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService.DisableProcessor", - "service": { - "shortName": "DocumentProcessorService", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService" - } - } - } - }, - { - "regionTag": "documentai_v1_generated_DocumentProcessorService_SetDefaultProcessorVersion_async", - "title": "DocumentProcessorService setDefaultProcessorVersion Sample", - "origin": "API_DEFINITION", - "description": " Set the default (active) version of a [Processor][google.cloud.documentai.v1.Processor] that will be used in [ProcessDocument][google.cloud.documentai.v1.DocumentProcessorService.ProcessDocument] and [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments].", - "canonical": true, - "file": "document_processor_service.set_default_processor_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetDefaultProcessorVersion", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService.SetDefaultProcessorVersion", - "async": true, - "parameters": [ - { - "name": "processor", - "type": "TYPE_STRING" - }, - { - "name": "default_processor_version", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DocumentProcessorServiceClient", - "fullName": "google.cloud.documentai.v1.DocumentProcessorServiceClient" - }, - "method": { - "shortName": "SetDefaultProcessorVersion", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService.SetDefaultProcessorVersion", - "service": { - "shortName": "DocumentProcessorService", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService" - } - } - } - }, - { - "regionTag": "documentai_v1_generated_DocumentProcessorService_ReviewDocument_async", - "title": "DocumentProcessorService reviewDocument Sample", - "origin": "API_DEFINITION", - "description": " Send a document for Human Review. The input document should be processed by the specified processor.", - "canonical": true, - "file": "document_processor_service.review_document.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReviewDocument", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService.ReviewDocument", - "async": true, - "parameters": [ - { - "name": "inline_document", - "type": ".google.cloud.documentai.v1.Document" - }, - { - "name": "human_review_config", - "type": "TYPE_STRING" - }, - { - "name": "enable_schema_validation", - "type": "TYPE_BOOL" - }, - { - "name": "priority", - "type": ".google.cloud.documentai.v1.ReviewDocumentRequest.Priority" - }, - { - "name": "document_schema", - "type": ".google.cloud.documentai.v1.DocumentSchema" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DocumentProcessorServiceClient", - "fullName": "google.cloud.documentai.v1.DocumentProcessorServiceClient" - }, - "method": { - "shortName": "ReviewDocument", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService.ReviewDocument", - "service": { - "shortName": "DocumentProcessorService", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService" - } - } - } - }, - { - "regionTag": "documentai_v1_generated_DocumentProcessorService_EvaluateProcessorVersion_async", - "title": "DocumentProcessorService evaluateProcessorVersion Sample", - "origin": "API_DEFINITION", - "description": " Evaluates a ProcessorVersion against annotated documents, producing an Evaluation.", - "canonical": true, - "file": "document_processor_service.evaluate_processor_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "EvaluateProcessorVersion", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService.EvaluateProcessorVersion", - "async": true, - "parameters": [ - { - "name": "processor_version", - "type": "TYPE_STRING" - }, - { - "name": "evaluation_documents", - "type": ".google.cloud.documentai.v1.BatchDocumentsInputConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DocumentProcessorServiceClient", - "fullName": "google.cloud.documentai.v1.DocumentProcessorServiceClient" - }, - "method": { - "shortName": "EvaluateProcessorVersion", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService.EvaluateProcessorVersion", - "service": { - "shortName": "DocumentProcessorService", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService" - } - } - } - }, - { - "regionTag": "documentai_v1_generated_DocumentProcessorService_GetEvaluation_async", - "title": "DocumentProcessorService getEvaluation Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a specific evaluation.", - "canonical": true, - "file": "document_processor_service.get_evaluation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEvaluation", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService.GetEvaluation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.documentai.v1.Evaluation", - "client": { - "shortName": "DocumentProcessorServiceClient", - "fullName": "google.cloud.documentai.v1.DocumentProcessorServiceClient" - }, - "method": { - "shortName": "GetEvaluation", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService.GetEvaluation", - "service": { - "shortName": "DocumentProcessorService", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService" - } - } - } - }, - { - "regionTag": "documentai_v1_generated_DocumentProcessorService_ListEvaluations_async", - "title": "DocumentProcessorService listEvaluations Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a set of evaluations for a given processor version.", - "canonical": true, - "file": "document_processor_service.list_evaluations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEvaluations", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService.ListEvaluations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.documentai.v1.ListEvaluationsResponse", - "client": { - "shortName": "DocumentProcessorServiceClient", - "fullName": "google.cloud.documentai.v1.DocumentProcessorServiceClient" - }, - "method": { - "shortName": "ListEvaluations", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService.ListEvaluations", - "service": { - "shortName": "DocumentProcessorService", - "fullName": "google.cloud.documentai.v1.DocumentProcessorService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-documentai/samples/generated/v1beta1/snippet_metadata_google.cloud.documentai.v1beta1.json b/packages/google-cloud-documentai/samples/generated/v1beta1/snippet_metadata_google.cloud.documentai.v1beta1.json deleted file mode 100644 index 72c368b85c73..000000000000 --- a/packages/google-cloud-documentai/samples/generated/v1beta1/snippet_metadata_google.cloud.documentai.v1beta1.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-documentai", - "version": "9.6.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.documentai.v1beta1", - "version": "v1beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "documentai_v1beta1_generated_DocumentUnderstandingService_BatchProcessDocuments_async", - "title": "DocumentUnderstandingService batchProcessDocuments Sample", - "origin": "API_DEFINITION", - "description": " LRO endpoint to batch process many documents.", - "canonical": true, - "file": "document_understanding_service.batch_process_documents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchProcessDocuments", - "fullName": "google.cloud.documentai.v1beta1.DocumentUnderstandingService.BatchProcessDocuments", - "async": true, - "parameters": [ - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DocumentUnderstandingServiceClient", - "fullName": "google.cloud.documentai.v1beta1.DocumentUnderstandingServiceClient" - }, - "method": { - "shortName": "BatchProcessDocuments", - "fullName": "google.cloud.documentai.v1beta1.DocumentUnderstandingService.BatchProcessDocuments", - "service": { - "shortName": "DocumentUnderstandingService", - "fullName": "google.cloud.documentai.v1beta1.DocumentUnderstandingService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-documentai/samples/generated/v1beta2/snippet_metadata_google.cloud.documentai.v1beta2.json b/packages/google-cloud-documentai/samples/generated/v1beta2/snippet_metadata_google.cloud.documentai.v1beta2.json deleted file mode 100644 index 0a44347d9cc1..000000000000 --- a/packages/google-cloud-documentai/samples/generated/v1beta2/snippet_metadata_google.cloud.documentai.v1beta2.json +++ /dev/null @@ -1,131 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-documentai", - "version": "9.6.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.documentai.v1beta2", - "version": "v1beta2" - } - ] - }, - "snippets": [ - { - "regionTag": "documentai_v1beta2_generated_DocumentUnderstandingService_BatchProcessDocuments_async", - "title": "DocumentUnderstandingService batchProcessDocuments Sample", - "origin": "API_DEFINITION", - "description": " LRO endpoint to batch process many documents. The output is written to Cloud Storage as JSON in the [Document] format.", - "canonical": true, - "file": "document_understanding_service.batch_process_documents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchProcessDocuments", - "fullName": "google.cloud.documentai.v1beta2.DocumentUnderstandingService.BatchProcessDocuments", - "async": true, - "parameters": [ - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DocumentUnderstandingServiceClient", - "fullName": "google.cloud.documentai.v1beta2.DocumentUnderstandingServiceClient" - }, - "method": { - "shortName": "BatchProcessDocuments", - "fullName": "google.cloud.documentai.v1beta2.DocumentUnderstandingService.BatchProcessDocuments", - "service": { - "shortName": "DocumentUnderstandingService", - "fullName": "google.cloud.documentai.v1beta2.DocumentUnderstandingService" - } - } - } - }, - { - "regionTag": "documentai_v1beta2_generated_DocumentUnderstandingService_ProcessDocument_async", - "title": "DocumentUnderstandingService processDocument Sample", - "origin": "API_DEFINITION", - "description": " Processes a single document.", - "canonical": true, - "file": "document_understanding_service.process_document.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 96, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ProcessDocument", - "fullName": "google.cloud.documentai.v1beta2.DocumentUnderstandingService.ProcessDocument", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "input_config", - "type": ".google.cloud.documentai.v1beta2.InputConfig" - }, - { - "name": "output_config", - "type": ".google.cloud.documentai.v1beta2.OutputConfig" - }, - { - "name": "document_type", - "type": "TYPE_STRING" - }, - { - "name": "table_extraction_params", - "type": ".google.cloud.documentai.v1beta2.TableExtractionParams" - }, - { - "name": "form_extraction_params", - "type": ".google.cloud.documentai.v1beta2.FormExtractionParams" - }, - { - "name": "entity_extraction_params", - "type": ".google.cloud.documentai.v1beta2.EntityExtractionParams" - }, - { - "name": "ocr_params", - "type": ".google.cloud.documentai.v1beta2.OcrParams" - }, - { - "name": "automl_params", - "type": ".google.cloud.documentai.v1beta2.AutoMlParams" - } - ], - "resultType": ".google.cloud.documentai.v1beta2.Document", - "client": { - "shortName": "DocumentUnderstandingServiceClient", - "fullName": "google.cloud.documentai.v1beta2.DocumentUnderstandingServiceClient" - }, - "method": { - "shortName": "ProcessDocument", - "fullName": "google.cloud.documentai.v1beta2.DocumentUnderstandingService.ProcessDocument", - "service": { - "shortName": "DocumentUnderstandingService", - "fullName": "google.cloud.documentai.v1beta2.DocumentUnderstandingService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-documentai/samples/generated/v1beta3/snippet_metadata_google.cloud.documentai.v1beta3.json b/packages/google-cloud-documentai/samples/generated/v1beta3/snippet_metadata_google.cloud.documentai.v1beta3.json deleted file mode 100644 index 89d95bd05b0d..000000000000 --- a/packages/google-cloud-documentai/samples/generated/v1beta3/snippet_metadata_google.cloud.documentai.v1beta3.json +++ /dev/null @@ -1,1427 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-documentai", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.documentai.v1beta3", - "version": "v1beta3" - } - ] - }, - "snippets": [ - { - "regionTag": "documentai_v1beta3_generated_DocumentProcessorService_ProcessDocument_async", - "title": "DocumentProcessorService processDocument Sample", - "origin": "API_DEFINITION", - "description": " Processes a single document.", - "canonical": true, - "file": "document_processor_service.process_document.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 109, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ProcessDocument", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService.ProcessDocument", - "async": true, - "parameters": [ - { - "name": "inline_document", - "type": ".google.cloud.documentai.v1beta3.Document" - }, - { - "name": "raw_document", - "type": ".google.cloud.documentai.v1beta3.RawDocument" - }, - { - "name": "gcs_document", - "type": ".google.cloud.documentai.v1beta3.GcsDocument" - }, - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "document", - "type": ".google.cloud.documentai.v1beta3.Document" - }, - { - "name": "skip_human_review", - "type": "TYPE_BOOL" - }, - { - "name": "field_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "process_options", - "type": ".google.cloud.documentai.v1beta3.ProcessOptions" - }, - { - "name": "labels", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "imageless_mode", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.documentai.v1beta3.ProcessResponse", - "client": { - "shortName": "DocumentProcessorServiceClient", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorServiceClient" - }, - "method": { - "shortName": "ProcessDocument", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService.ProcessDocument", - "service": { - "shortName": "DocumentProcessorService", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService" - } - } - } - }, - { - "regionTag": "documentai_v1beta3_generated_DocumentProcessorService_BatchProcessDocuments_async", - "title": "DocumentProcessorService batchProcessDocuments Sample", - "origin": "API_DEFINITION", - "description": " LRO endpoint to batch process many documents. The output is written to Cloud Storage as JSON in the [Document] format.", - "canonical": true, - "file": "document_processor_service.batch_process_documents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 96, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchProcessDocuments", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "input_configs", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "output_config", - "type": ".google.cloud.documentai.v1beta3.BatchProcessRequest.BatchOutputConfig" - }, - { - "name": "input_documents", - "type": ".google.cloud.documentai.v1beta3.BatchDocumentsInputConfig" - }, - { - "name": "document_output_config", - "type": ".google.cloud.documentai.v1beta3.DocumentOutputConfig" - }, - { - "name": "skip_human_review", - "type": "TYPE_BOOL" - }, - { - "name": "process_options", - "type": ".google.cloud.documentai.v1beta3.ProcessOptions" - }, - { - "name": "labels", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DocumentProcessorServiceClient", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorServiceClient" - }, - "method": { - "shortName": "BatchProcessDocuments", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments", - "service": { - "shortName": "DocumentProcessorService", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService" - } - } - } - }, - { - "regionTag": "documentai_v1beta3_generated_DocumentProcessorService_FetchProcessorTypes_async", - "title": "DocumentProcessorService fetchProcessorTypes Sample", - "origin": "API_DEFINITION", - "description": " Fetches processor types. Note that we don't use [ListProcessorTypes][google.cloud.documentai.v1beta3.DocumentProcessorService.ListProcessorTypes] here, because it isn't paginated.", - "canonical": true, - "file": "document_processor_service.fetch_processor_types.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchProcessorTypes", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService.FetchProcessorTypes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.documentai.v1beta3.FetchProcessorTypesResponse", - "client": { - "shortName": "DocumentProcessorServiceClient", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorServiceClient" - }, - "method": { - "shortName": "FetchProcessorTypes", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService.FetchProcessorTypes", - "service": { - "shortName": "DocumentProcessorService", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService" - } - } - } - }, - { - "regionTag": "documentai_v1beta3_generated_DocumentProcessorService_ListProcessorTypes_async", - "title": "DocumentProcessorService listProcessorTypes Sample", - "origin": "API_DEFINITION", - "description": " Lists the processor types that exist.", - "canonical": true, - "file": "document_processor_service.list_processor_types.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListProcessorTypes", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService.ListProcessorTypes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.documentai.v1beta3.ListProcessorTypesResponse", - "client": { - "shortName": "DocumentProcessorServiceClient", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorServiceClient" - }, - "method": { - "shortName": "ListProcessorTypes", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService.ListProcessorTypes", - "service": { - "shortName": "DocumentProcessorService", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService" - } - } - } - }, - { - "regionTag": "documentai_v1beta3_generated_DocumentProcessorService_GetProcessorType_async", - "title": "DocumentProcessorService getProcessorType Sample", - "origin": "API_DEFINITION", - "description": " Gets a processor type detail.", - "canonical": true, - "file": "document_processor_service.get_processor_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetProcessorType", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService.GetProcessorType", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.documentai.v1beta3.ProcessorType", - "client": { - "shortName": "DocumentProcessorServiceClient", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorServiceClient" - }, - "method": { - "shortName": "GetProcessorType", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService.GetProcessorType", - "service": { - "shortName": "DocumentProcessorService", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService" - } - } - } - }, - { - "regionTag": "documentai_v1beta3_generated_DocumentProcessorService_ListProcessors_async", - "title": "DocumentProcessorService listProcessors Sample", - "origin": "API_DEFINITION", - "description": " Lists all processors which belong to this project.", - "canonical": true, - "file": "document_processor_service.list_processors.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListProcessors", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService.ListProcessors", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.documentai.v1beta3.ListProcessorsResponse", - "client": { - "shortName": "DocumentProcessorServiceClient", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorServiceClient" - }, - "method": { - "shortName": "ListProcessors", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService.ListProcessors", - "service": { - "shortName": "DocumentProcessorService", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService" - } - } - } - }, - { - "regionTag": "documentai_v1beta3_generated_DocumentProcessorService_GetProcessor_async", - "title": "DocumentProcessorService getProcessor Sample", - "origin": "API_DEFINITION", - "description": " Gets a processor detail.", - "canonical": true, - "file": "document_processor_service.get_processor.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetProcessor", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService.GetProcessor", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.documentai.v1beta3.Processor", - "client": { - "shortName": "DocumentProcessorServiceClient", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorServiceClient" - }, - "method": { - "shortName": "GetProcessor", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService.GetProcessor", - "service": { - "shortName": "DocumentProcessorService", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService" - } - } - } - }, - { - "regionTag": "documentai_v1beta3_generated_DocumentProcessorService_TrainProcessorVersion_async", - "title": "DocumentProcessorService trainProcessorVersion Sample", - "origin": "API_DEFINITION", - "description": " Trains a new processor version. Operation metadata is returned as [TrainProcessorVersionMetadata][google.cloud.documentai.v1beta3.TrainProcessorVersionMetadata].", - "canonical": true, - "file": "document_processor_service.train_processor_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TrainProcessorVersion", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService.TrainProcessorVersion", - "async": true, - "parameters": [ - { - "name": "custom_document_extraction_options", - "type": ".google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.CustomDocumentExtractionOptions" - }, - { - "name": "foundation_model_tuning_options", - "type": ".google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.FoundationModelTuningOptions" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "processor_version", - "type": ".google.cloud.documentai.v1beta3.ProcessorVersion" - }, - { - "name": "document_schema", - "type": ".google.cloud.documentai.v1beta3.DocumentSchema" - }, - { - "name": "input_data", - "type": ".google.cloud.documentai.v1beta3.TrainProcessorVersionRequest.InputData" - }, - { - "name": "base_processor_version", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DocumentProcessorServiceClient", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorServiceClient" - }, - "method": { - "shortName": "TrainProcessorVersion", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService.TrainProcessorVersion", - "service": { - "shortName": "DocumentProcessorService", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService" - } - } - } - }, - { - "regionTag": "documentai_v1beta3_generated_DocumentProcessorService_GetProcessorVersion_async", - "title": "DocumentProcessorService getProcessorVersion Sample", - "origin": "API_DEFINITION", - "description": " Gets a processor version detail.", - "canonical": true, - "file": "document_processor_service.get_processor_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetProcessorVersion", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService.GetProcessorVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.documentai.v1beta3.ProcessorVersion", - "client": { - "shortName": "DocumentProcessorServiceClient", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorServiceClient" - }, - "method": { - "shortName": "GetProcessorVersion", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService.GetProcessorVersion", - "service": { - "shortName": "DocumentProcessorService", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService" - } - } - } - }, - { - "regionTag": "documentai_v1beta3_generated_DocumentProcessorService_ListProcessorVersions_async", - "title": "DocumentProcessorService listProcessorVersions Sample", - "origin": "API_DEFINITION", - "description": " Lists all versions of a processor.", - "canonical": true, - "file": "document_processor_service.list_processor_versions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListProcessorVersions", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService.ListProcessorVersions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.documentai.v1beta3.ListProcessorVersionsResponse", - "client": { - "shortName": "DocumentProcessorServiceClient", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorServiceClient" - }, - "method": { - "shortName": "ListProcessorVersions", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService.ListProcessorVersions", - "service": { - "shortName": "DocumentProcessorService", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService" - } - } - } - }, - { - "regionTag": "documentai_v1beta3_generated_DocumentProcessorService_DeleteProcessorVersion_async", - "title": "DocumentProcessorService deleteProcessorVersion Sample", - "origin": "API_DEFINITION", - "description": " Deletes the processor version, all artifacts under the processor version will be deleted.", - "canonical": true, - "file": "document_processor_service.delete_processor_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteProcessorVersion", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService.DeleteProcessorVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DocumentProcessorServiceClient", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorServiceClient" - }, - "method": { - "shortName": "DeleteProcessorVersion", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService.DeleteProcessorVersion", - "service": { - "shortName": "DocumentProcessorService", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService" - } - } - } - }, - { - "regionTag": "documentai_v1beta3_generated_DocumentProcessorService_DeployProcessorVersion_async", - "title": "DocumentProcessorService deployProcessorVersion Sample", - "origin": "API_DEFINITION", - "description": " Deploys the processor version.", - "canonical": true, - "file": "document_processor_service.deploy_processor_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeployProcessorVersion", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService.DeployProcessorVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DocumentProcessorServiceClient", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorServiceClient" - }, - "method": { - "shortName": "DeployProcessorVersion", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService.DeployProcessorVersion", - "service": { - "shortName": "DocumentProcessorService", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService" - } - } - } - }, - { - "regionTag": "documentai_v1beta3_generated_DocumentProcessorService_UndeployProcessorVersion_async", - "title": "DocumentProcessorService undeployProcessorVersion Sample", - "origin": "API_DEFINITION", - "description": " Undeploys the processor version.", - "canonical": true, - "file": "document_processor_service.undeploy_processor_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UndeployProcessorVersion", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService.UndeployProcessorVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DocumentProcessorServiceClient", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorServiceClient" - }, - "method": { - "shortName": "UndeployProcessorVersion", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService.UndeployProcessorVersion", - "service": { - "shortName": "DocumentProcessorService", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService" - } - } - } - }, - { - "regionTag": "documentai_v1beta3_generated_DocumentProcessorService_CreateProcessor_async", - "title": "DocumentProcessorService createProcessor Sample", - "origin": "API_DEFINITION", - "description": " Creates a processor from the [ProcessorType][google.cloud.documentai.v1beta3.ProcessorType] provided. The processor will be at `ENABLED` state by default after its creation. Note that this method requires the `documentai.processors.create` permission on the project, which is highly privileged. A user or service account with this permission can create new processors that can interact with any gcs bucket in your project.", - "canonical": true, - "file": "document_processor_service.create_processor.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateProcessor", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService.CreateProcessor", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "processor", - "type": ".google.cloud.documentai.v1beta3.Processor" - } - ], - "resultType": ".google.cloud.documentai.v1beta3.Processor", - "client": { - "shortName": "DocumentProcessorServiceClient", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorServiceClient" - }, - "method": { - "shortName": "CreateProcessor", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService.CreateProcessor", - "service": { - "shortName": "DocumentProcessorService", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService" - } - } - } - }, - { - "regionTag": "documentai_v1beta3_generated_DocumentProcessorService_DeleteProcessor_async", - "title": "DocumentProcessorService deleteProcessor Sample", - "origin": "API_DEFINITION", - "description": " Deletes the processor, unloads all deployed model artifacts if it was enabled and then deletes all artifacts associated with this processor.", - "canonical": true, - "file": "document_processor_service.delete_processor.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteProcessor", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService.DeleteProcessor", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DocumentProcessorServiceClient", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorServiceClient" - }, - "method": { - "shortName": "DeleteProcessor", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService.DeleteProcessor", - "service": { - "shortName": "DocumentProcessorService", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService" - } - } - } - }, - { - "regionTag": "documentai_v1beta3_generated_DocumentProcessorService_EnableProcessor_async", - "title": "DocumentProcessorService enableProcessor Sample", - "origin": "API_DEFINITION", - "description": " Enables a processor", - "canonical": true, - "file": "document_processor_service.enable_processor.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "EnableProcessor", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService.EnableProcessor", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DocumentProcessorServiceClient", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorServiceClient" - }, - "method": { - "shortName": "EnableProcessor", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService.EnableProcessor", - "service": { - "shortName": "DocumentProcessorService", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService" - } - } - } - }, - { - "regionTag": "documentai_v1beta3_generated_DocumentProcessorService_DisableProcessor_async", - "title": "DocumentProcessorService disableProcessor Sample", - "origin": "API_DEFINITION", - "description": " Disables a processor", - "canonical": true, - "file": "document_processor_service.disable_processor.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DisableProcessor", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService.DisableProcessor", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DocumentProcessorServiceClient", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorServiceClient" - }, - "method": { - "shortName": "DisableProcessor", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService.DisableProcessor", - "service": { - "shortName": "DocumentProcessorService", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService" - } - } - } - }, - { - "regionTag": "documentai_v1beta3_generated_DocumentProcessorService_SetDefaultProcessorVersion_async", - "title": "DocumentProcessorService setDefaultProcessorVersion Sample", - "origin": "API_DEFINITION", - "description": " Set the default (active) version of a [Processor][google.cloud.documentai.v1beta3.Processor] that will be used in [ProcessDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ProcessDocument] and [BatchProcessDocuments][google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments].", - "canonical": true, - "file": "document_processor_service.set_default_processor_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetDefaultProcessorVersion", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService.SetDefaultProcessorVersion", - "async": true, - "parameters": [ - { - "name": "processor", - "type": "TYPE_STRING" - }, - { - "name": "default_processor_version", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DocumentProcessorServiceClient", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorServiceClient" - }, - "method": { - "shortName": "SetDefaultProcessorVersion", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService.SetDefaultProcessorVersion", - "service": { - "shortName": "DocumentProcessorService", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService" - } - } - } - }, - { - "regionTag": "documentai_v1beta3_generated_DocumentProcessorService_ReviewDocument_async", - "title": "DocumentProcessorService reviewDocument Sample", - "origin": "API_DEFINITION", - "description": " Send a document for Human Review. The input document should be processed by the specified processor.", - "canonical": true, - "file": "document_processor_service.review_document.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReviewDocument", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService.ReviewDocument", - "async": true, - "parameters": [ - { - "name": "inline_document", - "type": ".google.cloud.documentai.v1beta3.Document" - }, - { - "name": "human_review_config", - "type": "TYPE_STRING" - }, - { - "name": "document", - "type": ".google.cloud.documentai.v1beta3.Document" - }, - { - "name": "enable_schema_validation", - "type": "TYPE_BOOL" - }, - { - "name": "priority", - "type": ".google.cloud.documentai.v1beta3.ReviewDocumentRequest.Priority" - }, - { - "name": "document_schema", - "type": ".google.cloud.documentai.v1beta3.DocumentSchema" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DocumentProcessorServiceClient", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorServiceClient" - }, - "method": { - "shortName": "ReviewDocument", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService.ReviewDocument", - "service": { - "shortName": "DocumentProcessorService", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService" - } - } - } - }, - { - "regionTag": "documentai_v1beta3_generated_DocumentProcessorService_EvaluateProcessorVersion_async", - "title": "DocumentProcessorService evaluateProcessorVersion Sample", - "origin": "API_DEFINITION", - "description": " Evaluates a ProcessorVersion against annotated documents, producing an Evaluation.", - "canonical": true, - "file": "document_processor_service.evaluate_processor_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "EvaluateProcessorVersion", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService.EvaluateProcessorVersion", - "async": true, - "parameters": [ - { - "name": "processor_version", - "type": "TYPE_STRING" - }, - { - "name": "evaluation_documents", - "type": ".google.cloud.documentai.v1beta3.BatchDocumentsInputConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DocumentProcessorServiceClient", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorServiceClient" - }, - "method": { - "shortName": "EvaluateProcessorVersion", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService.EvaluateProcessorVersion", - "service": { - "shortName": "DocumentProcessorService", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService" - } - } - } - }, - { - "regionTag": "documentai_v1beta3_generated_DocumentProcessorService_GetEvaluation_async", - "title": "DocumentProcessorService getEvaluation Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a specific evaluation.", - "canonical": true, - "file": "document_processor_service.get_evaluation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEvaluation", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService.GetEvaluation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.documentai.v1beta3.Evaluation", - "client": { - "shortName": "DocumentProcessorServiceClient", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorServiceClient" - }, - "method": { - "shortName": "GetEvaluation", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService.GetEvaluation", - "service": { - "shortName": "DocumentProcessorService", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService" - } - } - } - }, - { - "regionTag": "documentai_v1beta3_generated_DocumentProcessorService_ListEvaluations_async", - "title": "DocumentProcessorService listEvaluations Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a set of evaluations for a given processor version.", - "canonical": true, - "file": "document_processor_service.list_evaluations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEvaluations", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService.ListEvaluations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.documentai.v1beta3.ListEvaluationsResponse", - "client": { - "shortName": "DocumentProcessorServiceClient", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorServiceClient" - }, - "method": { - "shortName": "ListEvaluations", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService.ListEvaluations", - "service": { - "shortName": "DocumentProcessorService", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService" - } - } - } - }, - { - "regionTag": "documentai_v1beta3_generated_DocumentProcessorService_ImportProcessorVersion_async", - "title": "DocumentProcessorService importProcessorVersion Sample", - "origin": "API_DEFINITION", - "description": " Imports a processor version from source processor version.", - "canonical": true, - "file": "document_processor_service.import_processor_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportProcessorVersion", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService.ImportProcessorVersion", - "async": true, - "parameters": [ - { - "name": "processor_version_source", - "type": "TYPE_STRING" - }, - { - "name": "external_processor_version_source", - "type": ".google.cloud.documentai.v1beta3.ImportProcessorVersionRequest.ExternalProcessorVersionSource" - }, - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DocumentProcessorServiceClient", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorServiceClient" - }, - "method": { - "shortName": "ImportProcessorVersion", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService.ImportProcessorVersion", - "service": { - "shortName": "DocumentProcessorService", - "fullName": "google.cloud.documentai.v1beta3.DocumentProcessorService" - } - } - } - }, - { - "regionTag": "documentai_v1beta3_generated_DocumentService_UpdateDataset_async", - "title": "DocumentProcessorService updateDataset Sample", - "origin": "API_DEFINITION", - "description": " Updates metadata associated with a dataset. Note that this method requires the `documentai.googleapis.com/datasets.update` permission on the project, which is highly privileged. A user or service account with this permission can create new processors that can interact with any gcs bucket in your project.", - "canonical": true, - "file": "document_service.update_dataset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDataset", - "fullName": "google.cloud.documentai.v1beta3.DocumentService.UpdateDataset", - "async": true, - "parameters": [ - { - "name": "dataset", - "type": ".google.cloud.documentai.v1beta3.Dataset" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DocumentServiceClient", - "fullName": "google.cloud.documentai.v1beta3.DocumentServiceClient" - }, - "method": { - "shortName": "UpdateDataset", - "fullName": "google.cloud.documentai.v1beta3.DocumentService.UpdateDataset", - "service": { - "shortName": "DocumentService", - "fullName": "google.cloud.documentai.v1beta3.DocumentService" - } - } - } - }, - { - "regionTag": "documentai_v1beta3_generated_DocumentService_ImportDocuments_async", - "title": "DocumentProcessorService importDocuments Sample", - "origin": "API_DEFINITION", - "description": " Import documents into a dataset.", - "canonical": true, - "file": "document_service.import_documents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportDocuments", - "fullName": "google.cloud.documentai.v1beta3.DocumentService.ImportDocuments", - "async": true, - "parameters": [ - { - "name": "dataset", - "type": "TYPE_STRING" - }, - { - "name": "batch_documents_import_configs", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DocumentServiceClient", - "fullName": "google.cloud.documentai.v1beta3.DocumentServiceClient" - }, - "method": { - "shortName": "ImportDocuments", - "fullName": "google.cloud.documentai.v1beta3.DocumentService.ImportDocuments", - "service": { - "shortName": "DocumentService", - "fullName": "google.cloud.documentai.v1beta3.DocumentService" - } - } - } - }, - { - "regionTag": "documentai_v1beta3_generated_DocumentService_GetDocument_async", - "title": "DocumentProcessorService getDocument Sample", - "origin": "API_DEFINITION", - "description": " Returns relevant fields present in the requested document.", - "canonical": true, - "file": "document_service.get_document.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDocument", - "fullName": "google.cloud.documentai.v1beta3.DocumentService.GetDocument", - "async": true, - "parameters": [ - { - "name": "dataset", - "type": "TYPE_STRING" - }, - { - "name": "document_id", - "type": ".google.cloud.documentai.v1beta3.DocumentId" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "page_range", - "type": ".google.cloud.documentai.v1beta3.DocumentPageRange" - } - ], - "resultType": ".google.cloud.documentai.v1beta3.GetDocumentResponse", - "client": { - "shortName": "DocumentServiceClient", - "fullName": "google.cloud.documentai.v1beta3.DocumentServiceClient" - }, - "method": { - "shortName": "GetDocument", - "fullName": "google.cloud.documentai.v1beta3.DocumentService.GetDocument", - "service": { - "shortName": "DocumentService", - "fullName": "google.cloud.documentai.v1beta3.DocumentService" - } - } - } - }, - { - "regionTag": "documentai_v1beta3_generated_DocumentService_ListDocuments_async", - "title": "DocumentProcessorService listDocuments Sample", - "origin": "API_DEFINITION", - "description": " Returns a list of documents present in the dataset.", - "canonical": true, - "file": "document_service.list_documents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 109, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDocuments", - "fullName": "google.cloud.documentai.v1beta3.DocumentService.ListDocuments", - "async": true, - "parameters": [ - { - "name": "dataset", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "return_total_size", - "type": "TYPE_BOOL" - }, - { - "name": "skip", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.documentai.v1beta3.ListDocumentsResponse", - "client": { - "shortName": "DocumentServiceClient", - "fullName": "google.cloud.documentai.v1beta3.DocumentServiceClient" - }, - "method": { - "shortName": "ListDocuments", - "fullName": "google.cloud.documentai.v1beta3.DocumentService.ListDocuments", - "service": { - "shortName": "DocumentService", - "fullName": "google.cloud.documentai.v1beta3.DocumentService" - } - } - } - }, - { - "regionTag": "documentai_v1beta3_generated_DocumentService_BatchDeleteDocuments_async", - "title": "DocumentProcessorService batchDeleteDocuments Sample", - "origin": "API_DEFINITION", - "description": " Deletes a set of documents.", - "canonical": true, - "file": "document_service.batch_delete_documents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchDeleteDocuments", - "fullName": "google.cloud.documentai.v1beta3.DocumentService.BatchDeleteDocuments", - "async": true, - "parameters": [ - { - "name": "dataset", - "type": "TYPE_STRING" - }, - { - "name": "dataset_documents", - "type": ".google.cloud.documentai.v1beta3.BatchDatasetDocuments" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DocumentServiceClient", - "fullName": "google.cloud.documentai.v1beta3.DocumentServiceClient" - }, - "method": { - "shortName": "BatchDeleteDocuments", - "fullName": "google.cloud.documentai.v1beta3.DocumentService.BatchDeleteDocuments", - "service": { - "shortName": "DocumentService", - "fullName": "google.cloud.documentai.v1beta3.DocumentService" - } - } - } - }, - { - "regionTag": "documentai_v1beta3_generated_DocumentService_GetDatasetSchema_async", - "title": "DocumentProcessorService getDatasetSchema Sample", - "origin": "API_DEFINITION", - "description": " Gets the `DatasetSchema` of a `Dataset`.", - "canonical": true, - "file": "document_service.get_dataset_schema.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDatasetSchema", - "fullName": "google.cloud.documentai.v1beta3.DocumentService.GetDatasetSchema", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "visible_fields_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.documentai.v1beta3.DatasetSchema", - "client": { - "shortName": "DocumentServiceClient", - "fullName": "google.cloud.documentai.v1beta3.DocumentServiceClient" - }, - "method": { - "shortName": "GetDatasetSchema", - "fullName": "google.cloud.documentai.v1beta3.DocumentService.GetDatasetSchema", - "service": { - "shortName": "DocumentService", - "fullName": "google.cloud.documentai.v1beta3.DocumentService" - } - } - } - }, - { - "regionTag": "documentai_v1beta3_generated_DocumentService_UpdateDatasetSchema_async", - "title": "DocumentProcessorService updateDatasetSchema Sample", - "origin": "API_DEFINITION", - "description": " Updates a `DatasetSchema`.", - "canonical": true, - "file": "document_service.update_dataset_schema.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDatasetSchema", - "fullName": "google.cloud.documentai.v1beta3.DocumentService.UpdateDatasetSchema", - "async": true, - "parameters": [ - { - "name": "dataset_schema", - "type": ".google.cloud.documentai.v1beta3.DatasetSchema" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.documentai.v1beta3.DatasetSchema", - "client": { - "shortName": "DocumentServiceClient", - "fullName": "google.cloud.documentai.v1beta3.DocumentServiceClient" - }, - "method": { - "shortName": "UpdateDatasetSchema", - "fullName": "google.cloud.documentai.v1beta3.DocumentService.UpdateDatasetSchema", - "service": { - "shortName": "DocumentService", - "fullName": "google.cloud.documentai.v1beta3.DocumentService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-domains/samples/generated/v1/snippet_metadata_google.cloud.domains.v1.json b/packages/google-cloud-domains/samples/generated/v1/snippet_metadata_google.cloud.domains.v1.json deleted file mode 100644 index 6bbe612865f8..000000000000 --- a/packages/google-cloud-domains/samples/generated/v1/snippet_metadata_google.cloud.domains.v1.json +++ /dev/null @@ -1,719 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-domains", - "version": "4.2.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.domains.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "domains_v1_generated_Domains_SearchDomains_async", - "title": "Domains searchDomains Sample", - "origin": "API_DEFINITION", - "description": " Searches for available domain names similar to the provided query. Availability results from this method are approximate; call `RetrieveRegisterParameters` on a domain before registering to confirm availability.", - "canonical": true, - "file": "domains.search_domains.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchDomains", - "fullName": "google.cloud.domains.v1.Domains.SearchDomains", - "async": true, - "parameters": [ - { - "name": "query", - "type": "TYPE_STRING" - }, - { - "name": "location", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.domains.v1.SearchDomainsResponse", - "client": { - "shortName": "DomainsClient", - "fullName": "google.cloud.domains.v1.DomainsClient" - }, - "method": { - "shortName": "SearchDomains", - "fullName": "google.cloud.domains.v1.Domains.SearchDomains", - "service": { - "shortName": "Domains", - "fullName": "google.cloud.domains.v1.Domains" - } - } - } - }, - { - "regionTag": "domains_v1_generated_Domains_RetrieveRegisterParameters_async", - "title": "Domains retrieveRegisterParameters Sample", - "origin": "API_DEFINITION", - "description": " Gets parameters needed to register a new domain name, including price and up-to-date availability. Use the returned values to call `RegisterDomain`.", - "canonical": true, - "file": "domains.retrieve_register_parameters.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RetrieveRegisterParameters", - "fullName": "google.cloud.domains.v1.Domains.RetrieveRegisterParameters", - "async": true, - "parameters": [ - { - "name": "domain_name", - "type": "TYPE_STRING" - }, - { - "name": "location", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.domains.v1.RetrieveRegisterParametersResponse", - "client": { - "shortName": "DomainsClient", - "fullName": "google.cloud.domains.v1.DomainsClient" - }, - "method": { - "shortName": "RetrieveRegisterParameters", - "fullName": "google.cloud.domains.v1.Domains.RetrieveRegisterParameters", - "service": { - "shortName": "Domains", - "fullName": "google.cloud.domains.v1.Domains" - } - } - } - }, - { - "regionTag": "domains_v1_generated_Domains_RegisterDomain_async", - "title": "Domains registerDomain Sample", - "origin": "API_DEFINITION", - "description": " Registers a new domain name and creates a corresponding `Registration` resource. Call `RetrieveRegisterParameters` first to check availability of the domain name and determine parameters like price that are needed to build a call to this method. A successful call creates a `Registration` resource in state `REGISTRATION_PENDING`, which resolves to `ACTIVE` within 1-2 minutes, indicating that the domain was successfully registered. If the resource ends up in state `REGISTRATION_FAILED`, it indicates that the domain was not registered successfully, and you can safely delete the resource and retry registration.", - "canonical": true, - "file": "domains.register_domain.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RegisterDomain", - "fullName": "google.cloud.domains.v1.Domains.RegisterDomain", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "registration", - "type": ".google.cloud.domains.v1.Registration" - }, - { - "name": "domain_notices", - "type": "TYPE_ENUM[]" - }, - { - "name": "contact_notices", - "type": "TYPE_ENUM[]" - }, - { - "name": "yearly_price", - "type": ".google.type.Money" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DomainsClient", - "fullName": "google.cloud.domains.v1.DomainsClient" - }, - "method": { - "shortName": "RegisterDomain", - "fullName": "google.cloud.domains.v1.Domains.RegisterDomain", - "service": { - "shortName": "Domains", - "fullName": "google.cloud.domains.v1.Domains" - } - } - } - }, - { - "regionTag": "domains_v1_generated_Domains_RetrieveTransferParameters_async", - "title": "Domains retrieveTransferParameters Sample", - "origin": "API_DEFINITION", - "description": " Gets parameters needed to transfer a domain name from another registrar to Cloud Domains. For domains managed by Google Domains, transferring to Cloud Domains is not supported. Use the returned values to call `TransferDomain`.", - "canonical": true, - "file": "domains.retrieve_transfer_parameters.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RetrieveTransferParameters", - "fullName": "google.cloud.domains.v1.Domains.RetrieveTransferParameters", - "async": true, - "parameters": [ - { - "name": "domain_name", - "type": "TYPE_STRING" - }, - { - "name": "location", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.domains.v1.RetrieveTransferParametersResponse", - "client": { - "shortName": "DomainsClient", - "fullName": "google.cloud.domains.v1.DomainsClient" - }, - "method": { - "shortName": "RetrieveTransferParameters", - "fullName": "google.cloud.domains.v1.Domains.RetrieveTransferParameters", - "service": { - "shortName": "Domains", - "fullName": "google.cloud.domains.v1.Domains" - } - } - } - }, - { - "regionTag": "domains_v1_generated_Domains_TransferDomain_async", - "title": "Domains transferDomain Sample", - "origin": "API_DEFINITION", - "description": " Transfers a domain name from another registrar to Cloud Domains. For domains managed by Google Domains, transferring to Cloud Domains is not supported. Before calling this method, go to the domain's current registrar to unlock the domain for transfer and retrieve the domain's transfer authorization code. Then call `RetrieveTransferParameters` to confirm that the domain is unlocked and to get values needed to build a call to this method. A successful call creates a `Registration` resource in state `TRANSFER_PENDING`. It can take several days to complete the transfer process. The registrant can often speed up this process by approving the transfer through the current registrar, either by clicking a link in an email from the registrar or by visiting the registrar's website. A few minutes after transfer approval, the resource transitions to state `ACTIVE`, indicating that the transfer was successful. If the transfer is rejected or the request expires without being approved, the resource can end up in state `TRANSFER_FAILED`. If transfer fails, you can safely delete the resource and retry the transfer.", - "canonical": true, - "file": "domains.transfer_domain.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TransferDomain", - "fullName": "google.cloud.domains.v1.Domains.TransferDomain", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "registration", - "type": ".google.cloud.domains.v1.Registration" - }, - { - "name": "contact_notices", - "type": "TYPE_ENUM[]" - }, - { - "name": "yearly_price", - "type": ".google.type.Money" - }, - { - "name": "authorization_code", - "type": ".google.cloud.domains.v1.AuthorizationCode" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DomainsClient", - "fullName": "google.cloud.domains.v1.DomainsClient" - }, - "method": { - "shortName": "TransferDomain", - "fullName": "google.cloud.domains.v1.Domains.TransferDomain", - "service": { - "shortName": "Domains", - "fullName": "google.cloud.domains.v1.Domains" - } - } - } - }, - { - "regionTag": "domains_v1_generated_Domains_ListRegistrations_async", - "title": "Domains listRegistrations Sample", - "origin": "API_DEFINITION", - "description": " Lists the `Registration` resources in a project.", - "canonical": true, - "file": "domains.list_registrations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRegistrations", - "fullName": "google.cloud.domains.v1.Domains.ListRegistrations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.domains.v1.ListRegistrationsResponse", - "client": { - "shortName": "DomainsClient", - "fullName": "google.cloud.domains.v1.DomainsClient" - }, - "method": { - "shortName": "ListRegistrations", - "fullName": "google.cloud.domains.v1.Domains.ListRegistrations", - "service": { - "shortName": "Domains", - "fullName": "google.cloud.domains.v1.Domains" - } - } - } - }, - { - "regionTag": "domains_v1_generated_Domains_GetRegistration_async", - "title": "Domains getRegistration Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a `Registration` resource.", - "canonical": true, - "file": "domains.get_registration.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRegistration", - "fullName": "google.cloud.domains.v1.Domains.GetRegistration", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.domains.v1.Registration", - "client": { - "shortName": "DomainsClient", - "fullName": "google.cloud.domains.v1.DomainsClient" - }, - "method": { - "shortName": "GetRegistration", - "fullName": "google.cloud.domains.v1.Domains.GetRegistration", - "service": { - "shortName": "Domains", - "fullName": "google.cloud.domains.v1.Domains" - } - } - } - }, - { - "regionTag": "domains_v1_generated_Domains_UpdateRegistration_async", - "title": "Domains updateRegistration Sample", - "origin": "API_DEFINITION", - "description": " Updates select fields of a `Registration` resource, notably `labels`. To update other fields, use the appropriate custom update method: * To update management settings, see `ConfigureManagementSettings` * To update DNS configuration, see `ConfigureDnsSettings` * To update contact information, see `ConfigureContactSettings`", - "canonical": true, - "file": "domains.update_registration.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateRegistration", - "fullName": "google.cloud.domains.v1.Domains.UpdateRegistration", - "async": true, - "parameters": [ - { - "name": "registration", - "type": ".google.cloud.domains.v1.Registration" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DomainsClient", - "fullName": "google.cloud.domains.v1.DomainsClient" - }, - "method": { - "shortName": "UpdateRegistration", - "fullName": "google.cloud.domains.v1.Domains.UpdateRegistration", - "service": { - "shortName": "Domains", - "fullName": "google.cloud.domains.v1.Domains" - } - } - } - }, - { - "regionTag": "domains_v1_generated_Domains_ConfigureManagementSettings_async", - "title": "Domains configureManagementSettings Sample", - "origin": "API_DEFINITION", - "description": " Updates a `Registration`'s management settings.", - "canonical": true, - "file": "domains.configure_management_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ConfigureManagementSettings", - "fullName": "google.cloud.domains.v1.Domains.ConfigureManagementSettings", - "async": true, - "parameters": [ - { - "name": "registration", - "type": "TYPE_STRING" - }, - { - "name": "management_settings", - "type": ".google.cloud.domains.v1.ManagementSettings" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DomainsClient", - "fullName": "google.cloud.domains.v1.DomainsClient" - }, - "method": { - "shortName": "ConfigureManagementSettings", - "fullName": "google.cloud.domains.v1.Domains.ConfigureManagementSettings", - "service": { - "shortName": "Domains", - "fullName": "google.cloud.domains.v1.Domains" - } - } - } - }, - { - "regionTag": "domains_v1_generated_Domains_ConfigureDnsSettings_async", - "title": "Domains configureDnsSettings Sample", - "origin": "API_DEFINITION", - "description": " Updates a `Registration`'s DNS settings.", - "canonical": true, - "file": "domains.configure_dns_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ConfigureDnsSettings", - "fullName": "google.cloud.domains.v1.Domains.ConfigureDnsSettings", - "async": true, - "parameters": [ - { - "name": "registration", - "type": "TYPE_STRING" - }, - { - "name": "dns_settings", - "type": ".google.cloud.domains.v1.DnsSettings" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DomainsClient", - "fullName": "google.cloud.domains.v1.DomainsClient" - }, - "method": { - "shortName": "ConfigureDnsSettings", - "fullName": "google.cloud.domains.v1.Domains.ConfigureDnsSettings", - "service": { - "shortName": "Domains", - "fullName": "google.cloud.domains.v1.Domains" - } - } - } - }, - { - "regionTag": "domains_v1_generated_Domains_ConfigureContactSettings_async", - "title": "Domains configureContactSettings Sample", - "origin": "API_DEFINITION", - "description": " Updates a `Registration`'s contact settings. Some changes require confirmation by the domain's registrant contact .", - "canonical": true, - "file": "domains.configure_contact_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ConfigureContactSettings", - "fullName": "google.cloud.domains.v1.Domains.ConfigureContactSettings", - "async": true, - "parameters": [ - { - "name": "registration", - "type": "TYPE_STRING" - }, - { - "name": "contact_settings", - "type": ".google.cloud.domains.v1.ContactSettings" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "contact_notices", - "type": "TYPE_ENUM[]" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DomainsClient", - "fullName": "google.cloud.domains.v1.DomainsClient" - }, - "method": { - "shortName": "ConfigureContactSettings", - "fullName": "google.cloud.domains.v1.Domains.ConfigureContactSettings", - "service": { - "shortName": "Domains", - "fullName": "google.cloud.domains.v1.Domains" - } - } - } - }, - { - "regionTag": "domains_v1_generated_Domains_ExportRegistration_async", - "title": "Domains exportRegistration Sample", - "origin": "API_DEFINITION", - "description": " Exports a `Registration` resource, such that it is no longer managed by Cloud Domains. When an active domain is successfully exported, you can continue to use the domain in [Google Domains](https://domains.google/) until it expires. The calling user becomes the domain's sole owner in Google Domains, and permissions for the domain are subsequently managed there. The domain does not renew automatically unless the new owner sets up billing in Google Domains.", - "canonical": true, - "file": "domains.export_registration.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportRegistration", - "fullName": "google.cloud.domains.v1.Domains.ExportRegistration", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DomainsClient", - "fullName": "google.cloud.domains.v1.DomainsClient" - }, - "method": { - "shortName": "ExportRegistration", - "fullName": "google.cloud.domains.v1.Domains.ExportRegistration", - "service": { - "shortName": "Domains", - "fullName": "google.cloud.domains.v1.Domains" - } - } - } - }, - { - "regionTag": "domains_v1_generated_Domains_DeleteRegistration_async", - "title": "Domains deleteRegistration Sample", - "origin": "API_DEFINITION", - "description": " Deletes a `Registration` resource. This method works on any `Registration` resource using [Subscription or Commitment billing](/domains/pricing#billing-models), provided that the resource was created at least 1 day in the past. For `Registration` resources using [Monthly billing](/domains/pricing#billing-models), this method works if: * `state` is `EXPORTED` with `expire_time` in the past * `state` is `REGISTRATION_FAILED` * `state` is `TRANSFER_FAILED` When an active registration is successfully deleted, you can continue to use the domain in [Google Domains](https://domains.google/) until it expires. The calling user becomes the domain's sole owner in Google Domains, and permissions for the domain are subsequently managed there. The domain does not renew automatically unless the new owner sets up billing in Google Domains.", - "canonical": true, - "file": "domains.delete_registration.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteRegistration", - "fullName": "google.cloud.domains.v1.Domains.DeleteRegistration", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DomainsClient", - "fullName": "google.cloud.domains.v1.DomainsClient" - }, - "method": { - "shortName": "DeleteRegistration", - "fullName": "google.cloud.domains.v1.Domains.DeleteRegistration", - "service": { - "shortName": "Domains", - "fullName": "google.cloud.domains.v1.Domains" - } - } - } - }, - { - "regionTag": "domains_v1_generated_Domains_RetrieveAuthorizationCode_async", - "title": "Domains retrieveAuthorizationCode Sample", - "origin": "API_DEFINITION", - "description": " Gets the authorization code of the `Registration` for the purpose of transferring the domain to another registrar. You can call this method only after 60 days have elapsed since the initial domain registration.", - "canonical": true, - "file": "domains.retrieve_authorization_code.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RetrieveAuthorizationCode", - "fullName": "google.cloud.domains.v1.Domains.RetrieveAuthorizationCode", - "async": true, - "parameters": [ - { - "name": "registration", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.domains.v1.AuthorizationCode", - "client": { - "shortName": "DomainsClient", - "fullName": "google.cloud.domains.v1.DomainsClient" - }, - "method": { - "shortName": "RetrieveAuthorizationCode", - "fullName": "google.cloud.domains.v1.Domains.RetrieveAuthorizationCode", - "service": { - "shortName": "Domains", - "fullName": "google.cloud.domains.v1.Domains" - } - } - } - }, - { - "regionTag": "domains_v1_generated_Domains_ResetAuthorizationCode_async", - "title": "Domains resetAuthorizationCode Sample", - "origin": "API_DEFINITION", - "description": " Resets the authorization code of the `Registration` to a new random string. You can call this method only after 60 days have elapsed since the initial domain registration.", - "canonical": true, - "file": "domains.reset_authorization_code.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResetAuthorizationCode", - "fullName": "google.cloud.domains.v1.Domains.ResetAuthorizationCode", - "async": true, - "parameters": [ - { - "name": "registration", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.domains.v1.AuthorizationCode", - "client": { - "shortName": "DomainsClient", - "fullName": "google.cloud.domains.v1.DomainsClient" - }, - "method": { - "shortName": "ResetAuthorizationCode", - "fullName": "google.cloud.domains.v1.Domains.ResetAuthorizationCode", - "service": { - "shortName": "Domains", - "fullName": "google.cloud.domains.v1.Domains" - } - } - } - } - ] -} diff --git a/packages/google-cloud-domains/samples/generated/v1alpha2/snippet_metadata_google.cloud.domains.v1alpha2.json b/packages/google-cloud-domains/samples/generated/v1alpha2/snippet_metadata_google.cloud.domains.v1alpha2.json deleted file mode 100644 index 64ecd0d60894..000000000000 --- a/packages/google-cloud-domains/samples/generated/v1alpha2/snippet_metadata_google.cloud.domains.v1alpha2.json +++ /dev/null @@ -1,719 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-domains", - "version": "4.2.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.domains.v1alpha2", - "version": "v1alpha2" - } - ] - }, - "snippets": [ - { - "regionTag": "domains_v1alpha2_generated_Domains_SearchDomains_async", - "title": "Domains searchDomains Sample", - "origin": "API_DEFINITION", - "description": " Searches for available domain names similar to the provided query. Availability results from this method are approximate; call `RetrieveRegisterParameters` on a domain before registering to confirm availability.", - "canonical": true, - "file": "domains.search_domains.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchDomains", - "fullName": "google.cloud.domains.v1alpha2.Domains.SearchDomains", - "async": true, - "parameters": [ - { - "name": "query", - "type": "TYPE_STRING" - }, - { - "name": "location", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.domains.v1alpha2.SearchDomainsResponse", - "client": { - "shortName": "DomainsClient", - "fullName": "google.cloud.domains.v1alpha2.DomainsClient" - }, - "method": { - "shortName": "SearchDomains", - "fullName": "google.cloud.domains.v1alpha2.Domains.SearchDomains", - "service": { - "shortName": "Domains", - "fullName": "google.cloud.domains.v1alpha2.Domains" - } - } - } - }, - { - "regionTag": "domains_v1alpha2_generated_Domains_RetrieveRegisterParameters_async", - "title": "Domains retrieveRegisterParameters Sample", - "origin": "API_DEFINITION", - "description": " Gets parameters needed to register a new domain name, including price and up-to-date availability. Use the returned values to call `RegisterDomain`.", - "canonical": true, - "file": "domains.retrieve_register_parameters.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RetrieveRegisterParameters", - "fullName": "google.cloud.domains.v1alpha2.Domains.RetrieveRegisterParameters", - "async": true, - "parameters": [ - { - "name": "domain_name", - "type": "TYPE_STRING" - }, - { - "name": "location", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.domains.v1alpha2.RetrieveRegisterParametersResponse", - "client": { - "shortName": "DomainsClient", - "fullName": "google.cloud.domains.v1alpha2.DomainsClient" - }, - "method": { - "shortName": "RetrieveRegisterParameters", - "fullName": "google.cloud.domains.v1alpha2.Domains.RetrieveRegisterParameters", - "service": { - "shortName": "Domains", - "fullName": "google.cloud.domains.v1alpha2.Domains" - } - } - } - }, - { - "regionTag": "domains_v1alpha2_generated_Domains_RegisterDomain_async", - "title": "Domains registerDomain Sample", - "origin": "API_DEFINITION", - "description": " Registers a new domain name and creates a corresponding `Registration` resource. Call `RetrieveRegisterParameters` first to check availability of the domain name and determine parameters like price that are needed to build a call to this method. A successful call creates a `Registration` resource in state `REGISTRATION_PENDING`, which resolves to `ACTIVE` within 1-2 minutes, indicating that the domain was successfully registered. If the resource ends up in state `REGISTRATION_FAILED`, it indicates that the domain was not registered successfully, and you can safely delete the resource and retry registration.", - "canonical": true, - "file": "domains.register_domain.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RegisterDomain", - "fullName": "google.cloud.domains.v1alpha2.Domains.RegisterDomain", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "registration", - "type": ".google.cloud.domains.v1alpha2.Registration" - }, - { - "name": "domain_notices", - "type": "TYPE_ENUM[]" - }, - { - "name": "contact_notices", - "type": "TYPE_ENUM[]" - }, - { - "name": "yearly_price", - "type": ".google.type.Money" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DomainsClient", - "fullName": "google.cloud.domains.v1alpha2.DomainsClient" - }, - "method": { - "shortName": "RegisterDomain", - "fullName": "google.cloud.domains.v1alpha2.Domains.RegisterDomain", - "service": { - "shortName": "Domains", - "fullName": "google.cloud.domains.v1alpha2.Domains" - } - } - } - }, - { - "regionTag": "domains_v1alpha2_generated_Domains_RetrieveTransferParameters_async", - "title": "Domains retrieveTransferParameters Sample", - "origin": "API_DEFINITION", - "description": " Gets parameters needed to transfer a domain name from another registrar to Cloud Domains. For domains managed by Google Domains, transferring to Cloud Domains is not supported. Use the returned values to call `TransferDomain`.", - "canonical": true, - "file": "domains.retrieve_transfer_parameters.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RetrieveTransferParameters", - "fullName": "google.cloud.domains.v1alpha2.Domains.RetrieveTransferParameters", - "async": true, - "parameters": [ - { - "name": "domain_name", - "type": "TYPE_STRING" - }, - { - "name": "location", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.domains.v1alpha2.RetrieveTransferParametersResponse", - "client": { - "shortName": "DomainsClient", - "fullName": "google.cloud.domains.v1alpha2.DomainsClient" - }, - "method": { - "shortName": "RetrieveTransferParameters", - "fullName": "google.cloud.domains.v1alpha2.Domains.RetrieveTransferParameters", - "service": { - "shortName": "Domains", - "fullName": "google.cloud.domains.v1alpha2.Domains" - } - } - } - }, - { - "regionTag": "domains_v1alpha2_generated_Domains_TransferDomain_async", - "title": "Domains transferDomain Sample", - "origin": "API_DEFINITION", - "description": " Transfers a domain name from another registrar to Cloud Domains. For domains managed by Google Domains, transferring to Cloud Domains is not supported. Before calling this method, go to the domain's current registrar to unlock the domain for transfer and retrieve the domain's transfer authorization code. Then call `RetrieveTransferParameters` to confirm that the domain is unlocked and to get values needed to build a call to this method. A successful call creates a `Registration` resource in state `TRANSFER_PENDING`. It can take several days to complete the transfer process. The registrant can often speed up this process by approving the transfer through the current registrar, either by clicking a link in an email from the registrar or by visiting the registrar's website. A few minutes after transfer approval, the resource transitions to state `ACTIVE`, indicating that the transfer was successful. If the transfer is rejected or the request expires without being approved, the resource can end up in state `TRANSFER_FAILED`. If transfer fails, you can safely delete the resource and retry the transfer.", - "canonical": true, - "file": "domains.transfer_domain.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TransferDomain", - "fullName": "google.cloud.domains.v1alpha2.Domains.TransferDomain", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "registration", - "type": ".google.cloud.domains.v1alpha2.Registration" - }, - { - "name": "contact_notices", - "type": "TYPE_ENUM[]" - }, - { - "name": "yearly_price", - "type": ".google.type.Money" - }, - { - "name": "authorization_code", - "type": ".google.cloud.domains.v1alpha2.AuthorizationCode" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DomainsClient", - "fullName": "google.cloud.domains.v1alpha2.DomainsClient" - }, - "method": { - "shortName": "TransferDomain", - "fullName": "google.cloud.domains.v1alpha2.Domains.TransferDomain", - "service": { - "shortName": "Domains", - "fullName": "google.cloud.domains.v1alpha2.Domains" - } - } - } - }, - { - "regionTag": "domains_v1alpha2_generated_Domains_ListRegistrations_async", - "title": "Domains listRegistrations Sample", - "origin": "API_DEFINITION", - "description": " Lists the `Registration` resources in a project.", - "canonical": true, - "file": "domains.list_registrations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRegistrations", - "fullName": "google.cloud.domains.v1alpha2.Domains.ListRegistrations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.domains.v1alpha2.ListRegistrationsResponse", - "client": { - "shortName": "DomainsClient", - "fullName": "google.cloud.domains.v1alpha2.DomainsClient" - }, - "method": { - "shortName": "ListRegistrations", - "fullName": "google.cloud.domains.v1alpha2.Domains.ListRegistrations", - "service": { - "shortName": "Domains", - "fullName": "google.cloud.domains.v1alpha2.Domains" - } - } - } - }, - { - "regionTag": "domains_v1alpha2_generated_Domains_GetRegistration_async", - "title": "Domains getRegistration Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a `Registration` resource.", - "canonical": true, - "file": "domains.get_registration.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRegistration", - "fullName": "google.cloud.domains.v1alpha2.Domains.GetRegistration", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.domains.v1alpha2.Registration", - "client": { - "shortName": "DomainsClient", - "fullName": "google.cloud.domains.v1alpha2.DomainsClient" - }, - "method": { - "shortName": "GetRegistration", - "fullName": "google.cloud.domains.v1alpha2.Domains.GetRegistration", - "service": { - "shortName": "Domains", - "fullName": "google.cloud.domains.v1alpha2.Domains" - } - } - } - }, - { - "regionTag": "domains_v1alpha2_generated_Domains_UpdateRegistration_async", - "title": "Domains updateRegistration Sample", - "origin": "API_DEFINITION", - "description": " Updates select fields of a `Registration` resource, notably `labels`. To update other fields, use the appropriate custom update method: * To update management settings, see `ConfigureManagementSettings` * To update DNS configuration, see `ConfigureDnsSettings` * To update contact information, see `ConfigureContactSettings`", - "canonical": true, - "file": "domains.update_registration.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateRegistration", - "fullName": "google.cloud.domains.v1alpha2.Domains.UpdateRegistration", - "async": true, - "parameters": [ - { - "name": "registration", - "type": ".google.cloud.domains.v1alpha2.Registration" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DomainsClient", - "fullName": "google.cloud.domains.v1alpha2.DomainsClient" - }, - "method": { - "shortName": "UpdateRegistration", - "fullName": "google.cloud.domains.v1alpha2.Domains.UpdateRegistration", - "service": { - "shortName": "Domains", - "fullName": "google.cloud.domains.v1alpha2.Domains" - } - } - } - }, - { - "regionTag": "domains_v1alpha2_generated_Domains_ConfigureManagementSettings_async", - "title": "Domains configureManagementSettings Sample", - "origin": "API_DEFINITION", - "description": " Updates a `Registration`'s management settings.", - "canonical": true, - "file": "domains.configure_management_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ConfigureManagementSettings", - "fullName": "google.cloud.domains.v1alpha2.Domains.ConfigureManagementSettings", - "async": true, - "parameters": [ - { - "name": "registration", - "type": "TYPE_STRING" - }, - { - "name": "management_settings", - "type": ".google.cloud.domains.v1alpha2.ManagementSettings" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DomainsClient", - "fullName": "google.cloud.domains.v1alpha2.DomainsClient" - }, - "method": { - "shortName": "ConfigureManagementSettings", - "fullName": "google.cloud.domains.v1alpha2.Domains.ConfigureManagementSettings", - "service": { - "shortName": "Domains", - "fullName": "google.cloud.domains.v1alpha2.Domains" - } - } - } - }, - { - "regionTag": "domains_v1alpha2_generated_Domains_ConfigureDnsSettings_async", - "title": "Domains configureDnsSettings Sample", - "origin": "API_DEFINITION", - "description": " Updates a `Registration`'s DNS settings.", - "canonical": true, - "file": "domains.configure_dns_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ConfigureDnsSettings", - "fullName": "google.cloud.domains.v1alpha2.Domains.ConfigureDnsSettings", - "async": true, - "parameters": [ - { - "name": "registration", - "type": "TYPE_STRING" - }, - { - "name": "dns_settings", - "type": ".google.cloud.domains.v1alpha2.DnsSettings" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DomainsClient", - "fullName": "google.cloud.domains.v1alpha2.DomainsClient" - }, - "method": { - "shortName": "ConfigureDnsSettings", - "fullName": "google.cloud.domains.v1alpha2.Domains.ConfigureDnsSettings", - "service": { - "shortName": "Domains", - "fullName": "google.cloud.domains.v1alpha2.Domains" - } - } - } - }, - { - "regionTag": "domains_v1alpha2_generated_Domains_ConfigureContactSettings_async", - "title": "Domains configureContactSettings Sample", - "origin": "API_DEFINITION", - "description": " Updates a `Registration`'s contact settings. Some changes require confirmation by the domain's registrant contact .", - "canonical": true, - "file": "domains.configure_contact_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ConfigureContactSettings", - "fullName": "google.cloud.domains.v1alpha2.Domains.ConfigureContactSettings", - "async": true, - "parameters": [ - { - "name": "registration", - "type": "TYPE_STRING" - }, - { - "name": "contact_settings", - "type": ".google.cloud.domains.v1alpha2.ContactSettings" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "contact_notices", - "type": "TYPE_ENUM[]" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DomainsClient", - "fullName": "google.cloud.domains.v1alpha2.DomainsClient" - }, - "method": { - "shortName": "ConfigureContactSettings", - "fullName": "google.cloud.domains.v1alpha2.Domains.ConfigureContactSettings", - "service": { - "shortName": "Domains", - "fullName": "google.cloud.domains.v1alpha2.Domains" - } - } - } - }, - { - "regionTag": "domains_v1alpha2_generated_Domains_ExportRegistration_async", - "title": "Domains exportRegistration Sample", - "origin": "API_DEFINITION", - "description": " Exports a `Registration` resource, such that it is no longer managed by Cloud Domains. When an active domain is successfully exported, you can continue to use the domain in [Google Domains](https://domains.google/) until it expires. The calling user becomes the domain's sole owner in Google Domains, and permissions for the domain are subsequently managed there. The domain does not renew automatically unless the new owner sets up billing in Google Domains.", - "canonical": true, - "file": "domains.export_registration.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportRegistration", - "fullName": "google.cloud.domains.v1alpha2.Domains.ExportRegistration", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DomainsClient", - "fullName": "google.cloud.domains.v1alpha2.DomainsClient" - }, - "method": { - "shortName": "ExportRegistration", - "fullName": "google.cloud.domains.v1alpha2.Domains.ExportRegistration", - "service": { - "shortName": "Domains", - "fullName": "google.cloud.domains.v1alpha2.Domains" - } - } - } - }, - { - "regionTag": "domains_v1alpha2_generated_Domains_DeleteRegistration_async", - "title": "Domains deleteRegistration Sample", - "origin": "API_DEFINITION", - "description": " Deletes a `Registration` resource. This method works on any `Registration` resource using [Subscription or Commitment billing](/domains/pricing#billing-models), provided that the resource was created at least 1 day in the past. For `Registration` resources using [Monthly billing](/domains/pricing#billing-models), this method works if: * `state` is `EXPORTED` with `expire_time` in the past * `state` is `REGISTRATION_FAILED` * `state` is `TRANSFER_FAILED` When an active registration is successfully deleted, you can continue to use the domain in [Google Domains](https://domains.google/) until it expires. The calling user becomes the domain's sole owner in Google Domains, and permissions for the domain are subsequently managed there. The domain does not renew automatically unless the new owner sets up billing in Google Domains.", - "canonical": true, - "file": "domains.delete_registration.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteRegistration", - "fullName": "google.cloud.domains.v1alpha2.Domains.DeleteRegistration", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DomainsClient", - "fullName": "google.cloud.domains.v1alpha2.DomainsClient" - }, - "method": { - "shortName": "DeleteRegistration", - "fullName": "google.cloud.domains.v1alpha2.Domains.DeleteRegistration", - "service": { - "shortName": "Domains", - "fullName": "google.cloud.domains.v1alpha2.Domains" - } - } - } - }, - { - "regionTag": "domains_v1alpha2_generated_Domains_RetrieveAuthorizationCode_async", - "title": "Domains retrieveAuthorizationCode Sample", - "origin": "API_DEFINITION", - "description": " Gets the authorization code of the `Registration` for the purpose of transferring the domain to another registrar. You can call this method only after 60 days have elapsed since the initial domain registration.", - "canonical": true, - "file": "domains.retrieve_authorization_code.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RetrieveAuthorizationCode", - "fullName": "google.cloud.domains.v1alpha2.Domains.RetrieveAuthorizationCode", - "async": true, - "parameters": [ - { - "name": "registration", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.domains.v1alpha2.AuthorizationCode", - "client": { - "shortName": "DomainsClient", - "fullName": "google.cloud.domains.v1alpha2.DomainsClient" - }, - "method": { - "shortName": "RetrieveAuthorizationCode", - "fullName": "google.cloud.domains.v1alpha2.Domains.RetrieveAuthorizationCode", - "service": { - "shortName": "Domains", - "fullName": "google.cloud.domains.v1alpha2.Domains" - } - } - } - }, - { - "regionTag": "domains_v1alpha2_generated_Domains_ResetAuthorizationCode_async", - "title": "Domains resetAuthorizationCode Sample", - "origin": "API_DEFINITION", - "description": " Resets the authorization code of the `Registration` to a new random string. You can call this method only after 60 days have elapsed since the initial domain registration.", - "canonical": true, - "file": "domains.reset_authorization_code.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResetAuthorizationCode", - "fullName": "google.cloud.domains.v1alpha2.Domains.ResetAuthorizationCode", - "async": true, - "parameters": [ - { - "name": "registration", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.domains.v1alpha2.AuthorizationCode", - "client": { - "shortName": "DomainsClient", - "fullName": "google.cloud.domains.v1alpha2.DomainsClient" - }, - "method": { - "shortName": "ResetAuthorizationCode", - "fullName": "google.cloud.domains.v1alpha2.Domains.ResetAuthorizationCode", - "service": { - "shortName": "Domains", - "fullName": "google.cloud.domains.v1alpha2.Domains" - } - } - } - } - ] -} diff --git a/packages/google-cloud-domains/samples/generated/v1beta1/snippet_metadata_google.cloud.domains.v1beta1.json b/packages/google-cloud-domains/samples/generated/v1beta1/snippet_metadata_google.cloud.domains.v1beta1.json deleted file mode 100644 index 19add3d3f961..000000000000 --- a/packages/google-cloud-domains/samples/generated/v1beta1/snippet_metadata_google.cloud.domains.v1beta1.json +++ /dev/null @@ -1,719 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-domains", - "version": "4.2.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.domains.v1beta1", - "version": "v1beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "domains_v1beta1_generated_Domains_SearchDomains_async", - "title": "Domains searchDomains Sample", - "origin": "API_DEFINITION", - "description": " Searches for available domain names similar to the provided query. Availability results from this method are approximate; call `RetrieveRegisterParameters` on a domain before registering to confirm availability.", - "canonical": true, - "file": "domains.search_domains.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchDomains", - "fullName": "google.cloud.domains.v1beta1.Domains.SearchDomains", - "async": true, - "parameters": [ - { - "name": "query", - "type": "TYPE_STRING" - }, - { - "name": "location", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.domains.v1beta1.SearchDomainsResponse", - "client": { - "shortName": "DomainsClient", - "fullName": "google.cloud.domains.v1beta1.DomainsClient" - }, - "method": { - "shortName": "SearchDomains", - "fullName": "google.cloud.domains.v1beta1.Domains.SearchDomains", - "service": { - "shortName": "Domains", - "fullName": "google.cloud.domains.v1beta1.Domains" - } - } - } - }, - { - "regionTag": "domains_v1beta1_generated_Domains_RetrieveRegisterParameters_async", - "title": "Domains retrieveRegisterParameters Sample", - "origin": "API_DEFINITION", - "description": " Gets parameters needed to register a new domain name, including price and up-to-date availability. Use the returned values to call `RegisterDomain`.", - "canonical": true, - "file": "domains.retrieve_register_parameters.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RetrieveRegisterParameters", - "fullName": "google.cloud.domains.v1beta1.Domains.RetrieveRegisterParameters", - "async": true, - "parameters": [ - { - "name": "domain_name", - "type": "TYPE_STRING" - }, - { - "name": "location", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.domains.v1beta1.RetrieveRegisterParametersResponse", - "client": { - "shortName": "DomainsClient", - "fullName": "google.cloud.domains.v1beta1.DomainsClient" - }, - "method": { - "shortName": "RetrieveRegisterParameters", - "fullName": "google.cloud.domains.v1beta1.Domains.RetrieveRegisterParameters", - "service": { - "shortName": "Domains", - "fullName": "google.cloud.domains.v1beta1.Domains" - } - } - } - }, - { - "regionTag": "domains_v1beta1_generated_Domains_RegisterDomain_async", - "title": "Domains registerDomain Sample", - "origin": "API_DEFINITION", - "description": " Registers a new domain name and creates a corresponding `Registration` resource. Call `RetrieveRegisterParameters` first to check availability of the domain name and determine parameters like price that are needed to build a call to this method. A successful call creates a `Registration` resource in state `REGISTRATION_PENDING`, which resolves to `ACTIVE` within 1-2 minutes, indicating that the domain was successfully registered. If the resource ends up in state `REGISTRATION_FAILED`, it indicates that the domain was not registered successfully, and you can safely delete the resource and retry registration.", - "canonical": true, - "file": "domains.register_domain.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RegisterDomain", - "fullName": "google.cloud.domains.v1beta1.Domains.RegisterDomain", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "registration", - "type": ".google.cloud.domains.v1beta1.Registration" - }, - { - "name": "domain_notices", - "type": "TYPE_ENUM[]" - }, - { - "name": "contact_notices", - "type": "TYPE_ENUM[]" - }, - { - "name": "yearly_price", - "type": ".google.type.Money" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DomainsClient", - "fullName": "google.cloud.domains.v1beta1.DomainsClient" - }, - "method": { - "shortName": "RegisterDomain", - "fullName": "google.cloud.domains.v1beta1.Domains.RegisterDomain", - "service": { - "shortName": "Domains", - "fullName": "google.cloud.domains.v1beta1.Domains" - } - } - } - }, - { - "regionTag": "domains_v1beta1_generated_Domains_RetrieveTransferParameters_async", - "title": "Domains retrieveTransferParameters Sample", - "origin": "API_DEFINITION", - "description": " Gets parameters needed to transfer a domain name from another registrar to Cloud Domains. For domains managed by Google Domains, transferring to Cloud Domains is not supported. Use the returned values to call `TransferDomain`.", - "canonical": true, - "file": "domains.retrieve_transfer_parameters.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RetrieveTransferParameters", - "fullName": "google.cloud.domains.v1beta1.Domains.RetrieveTransferParameters", - "async": true, - "parameters": [ - { - "name": "domain_name", - "type": "TYPE_STRING" - }, - { - "name": "location", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.domains.v1beta1.RetrieveTransferParametersResponse", - "client": { - "shortName": "DomainsClient", - "fullName": "google.cloud.domains.v1beta1.DomainsClient" - }, - "method": { - "shortName": "RetrieveTransferParameters", - "fullName": "google.cloud.domains.v1beta1.Domains.RetrieveTransferParameters", - "service": { - "shortName": "Domains", - "fullName": "google.cloud.domains.v1beta1.Domains" - } - } - } - }, - { - "regionTag": "domains_v1beta1_generated_Domains_TransferDomain_async", - "title": "Domains transferDomain Sample", - "origin": "API_DEFINITION", - "description": " Transfers a domain name from another registrar to Cloud Domains. For domains managed by Google Domains, transferring to Cloud Domains is not supported. Before calling this method, go to the domain's current registrar to unlock the domain for transfer and retrieve the domain's transfer authorization code. Then call `RetrieveTransferParameters` to confirm that the domain is unlocked and to get values needed to build a call to this method. A successful call creates a `Registration` resource in state `TRANSFER_PENDING`. It can take several days to complete the transfer process. The registrant can often speed up this process by approving the transfer through the current registrar, either by clicking a link in an email from the registrar or by visiting the registrar's website. A few minutes after transfer approval, the resource transitions to state `ACTIVE`, indicating that the transfer was successful. If the transfer is rejected or the request expires without being approved, the resource can end up in state `TRANSFER_FAILED`. If transfer fails, you can safely delete the resource and retry the transfer.", - "canonical": true, - "file": "domains.transfer_domain.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TransferDomain", - "fullName": "google.cloud.domains.v1beta1.Domains.TransferDomain", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "registration", - "type": ".google.cloud.domains.v1beta1.Registration" - }, - { - "name": "contact_notices", - "type": "TYPE_ENUM[]" - }, - { - "name": "yearly_price", - "type": ".google.type.Money" - }, - { - "name": "authorization_code", - "type": ".google.cloud.domains.v1beta1.AuthorizationCode" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DomainsClient", - "fullName": "google.cloud.domains.v1beta1.DomainsClient" - }, - "method": { - "shortName": "TransferDomain", - "fullName": "google.cloud.domains.v1beta1.Domains.TransferDomain", - "service": { - "shortName": "Domains", - "fullName": "google.cloud.domains.v1beta1.Domains" - } - } - } - }, - { - "regionTag": "domains_v1beta1_generated_Domains_ListRegistrations_async", - "title": "Domains listRegistrations Sample", - "origin": "API_DEFINITION", - "description": " Lists the `Registration` resources in a project.", - "canonical": true, - "file": "domains.list_registrations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRegistrations", - "fullName": "google.cloud.domains.v1beta1.Domains.ListRegistrations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.domains.v1beta1.ListRegistrationsResponse", - "client": { - "shortName": "DomainsClient", - "fullName": "google.cloud.domains.v1beta1.DomainsClient" - }, - "method": { - "shortName": "ListRegistrations", - "fullName": "google.cloud.domains.v1beta1.Domains.ListRegistrations", - "service": { - "shortName": "Domains", - "fullName": "google.cloud.domains.v1beta1.Domains" - } - } - } - }, - { - "regionTag": "domains_v1beta1_generated_Domains_GetRegistration_async", - "title": "Domains getRegistration Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a `Registration` resource.", - "canonical": true, - "file": "domains.get_registration.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRegistration", - "fullName": "google.cloud.domains.v1beta1.Domains.GetRegistration", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.domains.v1beta1.Registration", - "client": { - "shortName": "DomainsClient", - "fullName": "google.cloud.domains.v1beta1.DomainsClient" - }, - "method": { - "shortName": "GetRegistration", - "fullName": "google.cloud.domains.v1beta1.Domains.GetRegistration", - "service": { - "shortName": "Domains", - "fullName": "google.cloud.domains.v1beta1.Domains" - } - } - } - }, - { - "regionTag": "domains_v1beta1_generated_Domains_UpdateRegistration_async", - "title": "Domains updateRegistration Sample", - "origin": "API_DEFINITION", - "description": " Updates select fields of a `Registration` resource, notably `labels`. To update other fields, use the appropriate custom update method: * To update management settings, see `ConfigureManagementSettings` * To update DNS configuration, see `ConfigureDnsSettings` * To update contact information, see `ConfigureContactSettings`", - "canonical": true, - "file": "domains.update_registration.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateRegistration", - "fullName": "google.cloud.domains.v1beta1.Domains.UpdateRegistration", - "async": true, - "parameters": [ - { - "name": "registration", - "type": ".google.cloud.domains.v1beta1.Registration" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DomainsClient", - "fullName": "google.cloud.domains.v1beta1.DomainsClient" - }, - "method": { - "shortName": "UpdateRegistration", - "fullName": "google.cloud.domains.v1beta1.Domains.UpdateRegistration", - "service": { - "shortName": "Domains", - "fullName": "google.cloud.domains.v1beta1.Domains" - } - } - } - }, - { - "regionTag": "domains_v1beta1_generated_Domains_ConfigureManagementSettings_async", - "title": "Domains configureManagementSettings Sample", - "origin": "API_DEFINITION", - "description": " Updates a `Registration`'s management settings.", - "canonical": true, - "file": "domains.configure_management_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ConfigureManagementSettings", - "fullName": "google.cloud.domains.v1beta1.Domains.ConfigureManagementSettings", - "async": true, - "parameters": [ - { - "name": "registration", - "type": "TYPE_STRING" - }, - { - "name": "management_settings", - "type": ".google.cloud.domains.v1beta1.ManagementSettings" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DomainsClient", - "fullName": "google.cloud.domains.v1beta1.DomainsClient" - }, - "method": { - "shortName": "ConfigureManagementSettings", - "fullName": "google.cloud.domains.v1beta1.Domains.ConfigureManagementSettings", - "service": { - "shortName": "Domains", - "fullName": "google.cloud.domains.v1beta1.Domains" - } - } - } - }, - { - "regionTag": "domains_v1beta1_generated_Domains_ConfigureDnsSettings_async", - "title": "Domains configureDnsSettings Sample", - "origin": "API_DEFINITION", - "description": " Updates a `Registration`'s DNS settings.", - "canonical": true, - "file": "domains.configure_dns_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ConfigureDnsSettings", - "fullName": "google.cloud.domains.v1beta1.Domains.ConfigureDnsSettings", - "async": true, - "parameters": [ - { - "name": "registration", - "type": "TYPE_STRING" - }, - { - "name": "dns_settings", - "type": ".google.cloud.domains.v1beta1.DnsSettings" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DomainsClient", - "fullName": "google.cloud.domains.v1beta1.DomainsClient" - }, - "method": { - "shortName": "ConfigureDnsSettings", - "fullName": "google.cloud.domains.v1beta1.Domains.ConfigureDnsSettings", - "service": { - "shortName": "Domains", - "fullName": "google.cloud.domains.v1beta1.Domains" - } - } - } - }, - { - "regionTag": "domains_v1beta1_generated_Domains_ConfigureContactSettings_async", - "title": "Domains configureContactSettings Sample", - "origin": "API_DEFINITION", - "description": " Updates a `Registration`'s contact settings. Some changes require confirmation by the domain's registrant contact .", - "canonical": true, - "file": "domains.configure_contact_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ConfigureContactSettings", - "fullName": "google.cloud.domains.v1beta1.Domains.ConfigureContactSettings", - "async": true, - "parameters": [ - { - "name": "registration", - "type": "TYPE_STRING" - }, - { - "name": "contact_settings", - "type": ".google.cloud.domains.v1beta1.ContactSettings" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "contact_notices", - "type": "TYPE_ENUM[]" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DomainsClient", - "fullName": "google.cloud.domains.v1beta1.DomainsClient" - }, - "method": { - "shortName": "ConfigureContactSettings", - "fullName": "google.cloud.domains.v1beta1.Domains.ConfigureContactSettings", - "service": { - "shortName": "Domains", - "fullName": "google.cloud.domains.v1beta1.Domains" - } - } - } - }, - { - "regionTag": "domains_v1beta1_generated_Domains_ExportRegistration_async", - "title": "Domains exportRegistration Sample", - "origin": "API_DEFINITION", - "description": " Exports a `Registration` resource, such that it is no longer managed by Cloud Domains. When an active domain is successfully exported, you can continue to use the domain in [Google Domains](https://domains.google/) until it expires. The calling user becomes the domain's sole owner in Google Domains, and permissions for the domain are subsequently managed there. The domain does not renew automatically unless the new owner sets up billing in Google Domains.", - "canonical": true, - "file": "domains.export_registration.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportRegistration", - "fullName": "google.cloud.domains.v1beta1.Domains.ExportRegistration", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DomainsClient", - "fullName": "google.cloud.domains.v1beta1.DomainsClient" - }, - "method": { - "shortName": "ExportRegistration", - "fullName": "google.cloud.domains.v1beta1.Domains.ExportRegistration", - "service": { - "shortName": "Domains", - "fullName": "google.cloud.domains.v1beta1.Domains" - } - } - } - }, - { - "regionTag": "domains_v1beta1_generated_Domains_DeleteRegistration_async", - "title": "Domains deleteRegistration Sample", - "origin": "API_DEFINITION", - "description": " Deletes a `Registration` resource. This method works on any `Registration` resource using [Subscription or Commitment billing](/domains/pricing#billing-models), provided that the resource was created at least 1 day in the past. For `Registration` resources using [Monthly billing](/domains/pricing#billing-models), this method works if: * `state` is `EXPORTED` with `expire_time` in the past * `state` is `REGISTRATION_FAILED` * `state` is `TRANSFER_FAILED` When an active registration is successfully deleted, you can continue to use the domain in [Google Domains](https://domains.google/) until it expires. The calling user becomes the domain's sole owner in Google Domains, and permissions for the domain are subsequently managed there. The domain does not renew automatically unless the new owner sets up billing in Google Domains.", - "canonical": true, - "file": "domains.delete_registration.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteRegistration", - "fullName": "google.cloud.domains.v1beta1.Domains.DeleteRegistration", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DomainsClient", - "fullName": "google.cloud.domains.v1beta1.DomainsClient" - }, - "method": { - "shortName": "DeleteRegistration", - "fullName": "google.cloud.domains.v1beta1.Domains.DeleteRegistration", - "service": { - "shortName": "Domains", - "fullName": "google.cloud.domains.v1beta1.Domains" - } - } - } - }, - { - "regionTag": "domains_v1beta1_generated_Domains_RetrieveAuthorizationCode_async", - "title": "Domains retrieveAuthorizationCode Sample", - "origin": "API_DEFINITION", - "description": " Gets the authorization code of the `Registration` for the purpose of transferring the domain to another registrar. You can call this method only after 60 days have elapsed since the initial domain registration.", - "canonical": true, - "file": "domains.retrieve_authorization_code.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RetrieveAuthorizationCode", - "fullName": "google.cloud.domains.v1beta1.Domains.RetrieveAuthorizationCode", - "async": true, - "parameters": [ - { - "name": "registration", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.domains.v1beta1.AuthorizationCode", - "client": { - "shortName": "DomainsClient", - "fullName": "google.cloud.domains.v1beta1.DomainsClient" - }, - "method": { - "shortName": "RetrieveAuthorizationCode", - "fullName": "google.cloud.domains.v1beta1.Domains.RetrieveAuthorizationCode", - "service": { - "shortName": "Domains", - "fullName": "google.cloud.domains.v1beta1.Domains" - } - } - } - }, - { - "regionTag": "domains_v1beta1_generated_Domains_ResetAuthorizationCode_async", - "title": "Domains resetAuthorizationCode Sample", - "origin": "API_DEFINITION", - "description": " Resets the authorization code of the `Registration` to a new random string. You can call this method only after 60 days have elapsed since the initial domain registration.", - "canonical": true, - "file": "domains.reset_authorization_code.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResetAuthorizationCode", - "fullName": "google.cloud.domains.v1beta1.Domains.ResetAuthorizationCode", - "async": true, - "parameters": [ - { - "name": "registration", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.domains.v1beta1.AuthorizationCode", - "client": { - "shortName": "DomainsClient", - "fullName": "google.cloud.domains.v1beta1.DomainsClient" - }, - "method": { - "shortName": "ResetAuthorizationCode", - "fullName": "google.cloud.domains.v1beta1.Domains.ResetAuthorizationCode", - "service": { - "shortName": "Domains", - "fullName": "google.cloud.domains.v1beta1.Domains" - } - } - } - } - ] -} diff --git a/packages/google-cloud-edgecontainer/samples/generated/v1/snippet_metadata_google.cloud.edgecontainer.v1.json b/packages/google-cloud-edgecontainer/samples/generated/v1/snippet_metadata_google.cloud.edgecontainer.v1.json deleted file mode 100644 index b1c2f9ee2c6d..000000000000 --- a/packages/google-cloud-edgecontainer/samples/generated/v1/snippet_metadata_google.cloud.edgecontainer.v1.json +++ /dev/null @@ -1,955 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-edgecontainer", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.edgecontainer.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "edgecontainer_v1_generated_EdgeContainer_ListClusters_async", - "title": "EdgeContainer listClusters Sample", - "origin": "API_DEFINITION", - "description": " Lists Clusters in a given project and location.", - "canonical": true, - "file": "edge_container.list_clusters.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListClusters", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainer.ListClusters", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.edgecontainer.v1.ListClustersResponse", - "client": { - "shortName": "EdgeContainerClient", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainerClient" - }, - "method": { - "shortName": "ListClusters", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainer.ListClusters", - "service": { - "shortName": "EdgeContainer", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainer" - } - } - } - }, - { - "regionTag": "edgecontainer_v1_generated_EdgeContainer_GetCluster_async", - "title": "EdgeContainer getCluster Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Cluster.", - "canonical": true, - "file": "edge_container.get_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCluster", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainer.GetCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.edgecontainer.v1.Cluster", - "client": { - "shortName": "EdgeContainerClient", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainerClient" - }, - "method": { - "shortName": "GetCluster", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainer.GetCluster", - "service": { - "shortName": "EdgeContainer", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainer" - } - } - } - }, - { - "regionTag": "edgecontainer_v1_generated_EdgeContainer_CreateCluster_async", - "title": "EdgeContainer createCluster Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Cluster in a given project and location.", - "canonical": true, - "file": "edge_container.create_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCluster", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainer.CreateCluster", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "cluster", - "type": ".google.cloud.edgecontainer.v1.Cluster" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EdgeContainerClient", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainerClient" - }, - "method": { - "shortName": "CreateCluster", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainer.CreateCluster", - "service": { - "shortName": "EdgeContainer", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainer" - } - } - } - }, - { - "regionTag": "edgecontainer_v1_generated_EdgeContainer_UpdateCluster_async", - "title": "EdgeContainer updateCluster Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Cluster.", - "canonical": true, - "file": "edge_container.update_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCluster", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainer.UpdateCluster", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "cluster", - "type": ".google.cloud.edgecontainer.v1.Cluster" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EdgeContainerClient", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainerClient" - }, - "method": { - "shortName": "UpdateCluster", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainer.UpdateCluster", - "service": { - "shortName": "EdgeContainer", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainer" - } - } - } - }, - { - "regionTag": "edgecontainer_v1_generated_EdgeContainer_UpgradeCluster_async", - "title": "EdgeContainer upgradeCluster Sample", - "origin": "API_DEFINITION", - "description": " Upgrades a single cluster.", - "canonical": true, - "file": "edge_container.upgrade_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpgradeCluster", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainer.UpgradeCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "target_version", - "type": "TYPE_STRING" - }, - { - "name": "schedule", - "type": ".google.cloud.edgecontainer.v1.UpgradeClusterRequest.Schedule" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EdgeContainerClient", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainerClient" - }, - "method": { - "shortName": "UpgradeCluster", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainer.UpgradeCluster", - "service": { - "shortName": "EdgeContainer", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainer" - } - } - } - }, - { - "regionTag": "edgecontainer_v1_generated_EdgeContainer_DeleteCluster_async", - "title": "EdgeContainer deleteCluster Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Cluster.", - "canonical": true, - "file": "edge_container.delete_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCluster", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainer.DeleteCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EdgeContainerClient", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainerClient" - }, - "method": { - "shortName": "DeleteCluster", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainer.DeleteCluster", - "service": { - "shortName": "EdgeContainer", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainer" - } - } - } - }, - { - "regionTag": "edgecontainer_v1_generated_EdgeContainer_GenerateAccessToken_async", - "title": "EdgeContainer generateAccessToken Sample", - "origin": "API_DEFINITION", - "description": " Generates an access token for a Cluster.", - "canonical": true, - "file": "edge_container.generate_access_token.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateAccessToken", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainer.GenerateAccessToken", - "async": true, - "parameters": [ - { - "name": "cluster", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.edgecontainer.v1.GenerateAccessTokenResponse", - "client": { - "shortName": "EdgeContainerClient", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainerClient" - }, - "method": { - "shortName": "GenerateAccessToken", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainer.GenerateAccessToken", - "service": { - "shortName": "EdgeContainer", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainer" - } - } - } - }, - { - "regionTag": "edgecontainer_v1_generated_EdgeContainer_GenerateOfflineCredential_async", - "title": "EdgeContainer generateOfflineCredential Sample", - "origin": "API_DEFINITION", - "description": " Generates an offline credential for a Cluster.", - "canonical": true, - "file": "edge_container.generate_offline_credential.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateOfflineCredential", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainer.GenerateOfflineCredential", - "async": true, - "parameters": [ - { - "name": "cluster", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.edgecontainer.v1.GenerateOfflineCredentialResponse", - "client": { - "shortName": "EdgeContainerClient", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainerClient" - }, - "method": { - "shortName": "GenerateOfflineCredential", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainer.GenerateOfflineCredential", - "service": { - "shortName": "EdgeContainer", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainer" - } - } - } - }, - { - "regionTag": "edgecontainer_v1_generated_EdgeContainer_ListNodePools_async", - "title": "EdgeContainer listNodePools Sample", - "origin": "API_DEFINITION", - "description": " Lists NodePools in a given project and location.", - "canonical": true, - "file": "edge_container.list_node_pools.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListNodePools", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainer.ListNodePools", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.edgecontainer.v1.ListNodePoolsResponse", - "client": { - "shortName": "EdgeContainerClient", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainerClient" - }, - "method": { - "shortName": "ListNodePools", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainer.ListNodePools", - "service": { - "shortName": "EdgeContainer", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainer" - } - } - } - }, - { - "regionTag": "edgecontainer_v1_generated_EdgeContainer_GetNodePool_async", - "title": "EdgeContainer getNodePool Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single NodePool.", - "canonical": true, - "file": "edge_container.get_node_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetNodePool", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainer.GetNodePool", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.edgecontainer.v1.NodePool", - "client": { - "shortName": "EdgeContainerClient", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainerClient" - }, - "method": { - "shortName": "GetNodePool", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainer.GetNodePool", - "service": { - "shortName": "EdgeContainer", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainer" - } - } - } - }, - { - "regionTag": "edgecontainer_v1_generated_EdgeContainer_CreateNodePool_async", - "title": "EdgeContainer createNodePool Sample", - "origin": "API_DEFINITION", - "description": " Creates a new NodePool in a given project and location.", - "canonical": true, - "file": "edge_container.create_node_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateNodePool", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainer.CreateNodePool", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "node_pool_id", - "type": "TYPE_STRING" - }, - { - "name": "node_pool", - "type": ".google.cloud.edgecontainer.v1.NodePool" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EdgeContainerClient", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainerClient" - }, - "method": { - "shortName": "CreateNodePool", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainer.CreateNodePool", - "service": { - "shortName": "EdgeContainer", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainer" - } - } - } - }, - { - "regionTag": "edgecontainer_v1_generated_EdgeContainer_UpdateNodePool_async", - "title": "EdgeContainer updateNodePool Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single NodePool.", - "canonical": true, - "file": "edge_container.update_node_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateNodePool", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainer.UpdateNodePool", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "node_pool", - "type": ".google.cloud.edgecontainer.v1.NodePool" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EdgeContainerClient", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainerClient" - }, - "method": { - "shortName": "UpdateNodePool", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainer.UpdateNodePool", - "service": { - "shortName": "EdgeContainer", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainer" - } - } - } - }, - { - "regionTag": "edgecontainer_v1_generated_EdgeContainer_DeleteNodePool_async", - "title": "EdgeContainer deleteNodePool Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single NodePool.", - "canonical": true, - "file": "edge_container.delete_node_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteNodePool", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainer.DeleteNodePool", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EdgeContainerClient", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainerClient" - }, - "method": { - "shortName": "DeleteNodePool", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainer.DeleteNodePool", - "service": { - "shortName": "EdgeContainer", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainer" - } - } - } - }, - { - "regionTag": "edgecontainer_v1_generated_EdgeContainer_ListMachines_async", - "title": "EdgeContainer listMachines Sample", - "origin": "API_DEFINITION", - "description": " Lists Machines in a given project and location.", - "canonical": true, - "file": "edge_container.list_machines.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMachines", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainer.ListMachines", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.edgecontainer.v1.ListMachinesResponse", - "client": { - "shortName": "EdgeContainerClient", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainerClient" - }, - "method": { - "shortName": "ListMachines", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainer.ListMachines", - "service": { - "shortName": "EdgeContainer", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainer" - } - } - } - }, - { - "regionTag": "edgecontainer_v1_generated_EdgeContainer_GetMachine_async", - "title": "EdgeContainer getMachine Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Machine.", - "canonical": true, - "file": "edge_container.get_machine.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMachine", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainer.GetMachine", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.edgecontainer.v1.Machine", - "client": { - "shortName": "EdgeContainerClient", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainerClient" - }, - "method": { - "shortName": "GetMachine", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainer.GetMachine", - "service": { - "shortName": "EdgeContainer", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainer" - } - } - } - }, - { - "regionTag": "edgecontainer_v1_generated_EdgeContainer_ListVpnConnections_async", - "title": "EdgeContainer listVpnConnections Sample", - "origin": "API_DEFINITION", - "description": " Lists VPN connections in a given project and location.", - "canonical": true, - "file": "edge_container.list_vpn_connections.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListVpnConnections", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainer.ListVpnConnections", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.edgecontainer.v1.ListVpnConnectionsResponse", - "client": { - "shortName": "EdgeContainerClient", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainerClient" - }, - "method": { - "shortName": "ListVpnConnections", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainer.ListVpnConnections", - "service": { - "shortName": "EdgeContainer", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainer" - } - } - } - }, - { - "regionTag": "edgecontainer_v1_generated_EdgeContainer_GetVpnConnection_async", - "title": "EdgeContainer getVpnConnection Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single VPN connection.", - "canonical": true, - "file": "edge_container.get_vpn_connection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetVpnConnection", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainer.GetVpnConnection", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.edgecontainer.v1.VpnConnection", - "client": { - "shortName": "EdgeContainerClient", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainerClient" - }, - "method": { - "shortName": "GetVpnConnection", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainer.GetVpnConnection", - "service": { - "shortName": "EdgeContainer", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainer" - } - } - } - }, - { - "regionTag": "edgecontainer_v1_generated_EdgeContainer_CreateVpnConnection_async", - "title": "EdgeContainer createVpnConnection Sample", - "origin": "API_DEFINITION", - "description": " Creates a new VPN connection in a given project and location.", - "canonical": true, - "file": "edge_container.create_vpn_connection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateVpnConnection", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainer.CreateVpnConnection", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "vpn_connection_id", - "type": "TYPE_STRING" - }, - { - "name": "vpn_connection", - "type": ".google.cloud.edgecontainer.v1.VpnConnection" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EdgeContainerClient", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainerClient" - }, - "method": { - "shortName": "CreateVpnConnection", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainer.CreateVpnConnection", - "service": { - "shortName": "EdgeContainer", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainer" - } - } - } - }, - { - "regionTag": "edgecontainer_v1_generated_EdgeContainer_DeleteVpnConnection_async", - "title": "EdgeContainer deleteVpnConnection Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single VPN connection.", - "canonical": true, - "file": "edge_container.delete_vpn_connection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteVpnConnection", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainer.DeleteVpnConnection", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EdgeContainerClient", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainerClient" - }, - "method": { - "shortName": "DeleteVpnConnection", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainer.DeleteVpnConnection", - "service": { - "shortName": "EdgeContainer", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainer" - } - } - } - }, - { - "regionTag": "edgecontainer_v1_generated_EdgeContainer_GetServerConfig_async", - "title": "EdgeContainer getServerConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets the server config.", - "canonical": true, - "file": "edge_container.get_server_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetServerConfig", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainer.GetServerConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.edgecontainer.v1.ServerConfig", - "client": { - "shortName": "EdgeContainerClient", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainerClient" - }, - "method": { - "shortName": "GetServerConfig", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainer.GetServerConfig", - "service": { - "shortName": "EdgeContainer", - "fullName": "google.cloud.edgecontainer.v1.EdgeContainer" - } - } - } - } - ] -} diff --git a/packages/google-cloud-edgenetwork/samples/generated/v1/snippet_metadata_google.cloud.edgenetwork.v1.json b/packages/google-cloud-edgenetwork/samples/generated/v1/snippet_metadata_google.cloud.edgenetwork.v1.json deleted file mode 100644 index e4918cacdd7b..000000000000 --- a/packages/google-cloud-edgenetwork/samples/generated/v1/snippet_metadata_google.cloud.edgenetwork.v1.json +++ /dev/null @@ -1,1231 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-edgenetwork", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.edgenetwork.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "edgenetwork_v1_generated_EdgeNetwork_InitializeZone_async", - "title": "EdgeNetwork initializeZone Sample", - "origin": "API_DEFINITION", - "description": " InitializeZone will initialize resources for a zone in a project.", - "canonical": true, - "file": "edge_network.initialize_zone.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "InitializeZone", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork.InitializeZone", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.edgenetwork.v1.InitializeZoneResponse", - "client": { - "shortName": "EdgeNetworkClient", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetworkClient" - }, - "method": { - "shortName": "InitializeZone", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork.InitializeZone", - "service": { - "shortName": "EdgeNetwork", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork" - } - } - } - }, - { - "regionTag": "edgenetwork_v1_generated_EdgeNetwork_ListZones_async", - "title": "EdgeNetwork listZones Sample", - "origin": "API_DEFINITION", - "description": " Deprecated: not implemented. Lists Zones in a given project and location.", - "canonical": true, - "file": "edge_network.list_zones.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListZones", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork.ListZones", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.edgenetwork.v1.ListZonesResponse", - "client": { - "shortName": "EdgeNetworkClient", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetworkClient" - }, - "method": { - "shortName": "ListZones", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork.ListZones", - "service": { - "shortName": "EdgeNetwork", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork" - } - } - } - }, - { - "regionTag": "edgenetwork_v1_generated_EdgeNetwork_GetZone_async", - "title": "EdgeNetwork getZone Sample", - "origin": "API_DEFINITION", - "description": " Deprecated: not implemented. Gets details of a single Zone.", - "canonical": true, - "file": "edge_network.get_zone.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetZone", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork.GetZone", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.edgenetwork.v1.Zone", - "client": { - "shortName": "EdgeNetworkClient", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetworkClient" - }, - "method": { - "shortName": "GetZone", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork.GetZone", - "service": { - "shortName": "EdgeNetwork", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork" - } - } - } - }, - { - "regionTag": "edgenetwork_v1_generated_EdgeNetwork_ListNetworks_async", - "title": "EdgeNetwork listNetworks Sample", - "origin": "API_DEFINITION", - "description": " Lists Networks in a given project and location.", - "canonical": true, - "file": "edge_network.list_networks.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListNetworks", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork.ListNetworks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.edgenetwork.v1.ListNetworksResponse", - "client": { - "shortName": "EdgeNetworkClient", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetworkClient" - }, - "method": { - "shortName": "ListNetworks", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork.ListNetworks", - "service": { - "shortName": "EdgeNetwork", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork" - } - } - } - }, - { - "regionTag": "edgenetwork_v1_generated_EdgeNetwork_GetNetwork_async", - "title": "EdgeNetwork getNetwork Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Network.", - "canonical": true, - "file": "edge_network.get_network.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetNetwork", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork.GetNetwork", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.edgenetwork.v1.Network", - "client": { - "shortName": "EdgeNetworkClient", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetworkClient" - }, - "method": { - "shortName": "GetNetwork", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork.GetNetwork", - "service": { - "shortName": "EdgeNetwork", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork" - } - } - } - }, - { - "regionTag": "edgenetwork_v1_generated_EdgeNetwork_DiagnoseNetwork_async", - "title": "EdgeNetwork diagnoseNetwork Sample", - "origin": "API_DEFINITION", - "description": " Get the diagnostics of a single network resource.", - "canonical": true, - "file": "edge_network.diagnose_network.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DiagnoseNetwork", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork.DiagnoseNetwork", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.edgenetwork.v1.DiagnoseNetworkResponse", - "client": { - "shortName": "EdgeNetworkClient", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetworkClient" - }, - "method": { - "shortName": "DiagnoseNetwork", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork.DiagnoseNetwork", - "service": { - "shortName": "EdgeNetwork", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork" - } - } - } - }, - { - "regionTag": "edgenetwork_v1_generated_EdgeNetwork_CreateNetwork_async", - "title": "EdgeNetwork createNetwork Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Network in a given project and location.", - "canonical": true, - "file": "edge_network.create_network.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateNetwork", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork.CreateNetwork", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "network_id", - "type": "TYPE_STRING" - }, - { - "name": "network", - "type": ".google.cloud.edgenetwork.v1.Network" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EdgeNetworkClient", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetworkClient" - }, - "method": { - "shortName": "CreateNetwork", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork.CreateNetwork", - "service": { - "shortName": "EdgeNetwork", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork" - } - } - } - }, - { - "regionTag": "edgenetwork_v1_generated_EdgeNetwork_DeleteNetwork_async", - "title": "EdgeNetwork deleteNetwork Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Network.", - "canonical": true, - "file": "edge_network.delete_network.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteNetwork", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork.DeleteNetwork", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EdgeNetworkClient", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetworkClient" - }, - "method": { - "shortName": "DeleteNetwork", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork.DeleteNetwork", - "service": { - "shortName": "EdgeNetwork", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork" - } - } - } - }, - { - "regionTag": "edgenetwork_v1_generated_EdgeNetwork_ListSubnets_async", - "title": "EdgeNetwork listSubnets Sample", - "origin": "API_DEFINITION", - "description": " Lists Subnets in a given project and location.", - "canonical": true, - "file": "edge_network.list_subnets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSubnets", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork.ListSubnets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.edgenetwork.v1.ListSubnetsResponse", - "client": { - "shortName": "EdgeNetworkClient", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetworkClient" - }, - "method": { - "shortName": "ListSubnets", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork.ListSubnets", - "service": { - "shortName": "EdgeNetwork", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork" - } - } - } - }, - { - "regionTag": "edgenetwork_v1_generated_EdgeNetwork_GetSubnet_async", - "title": "EdgeNetwork getSubnet Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Subnet.", - "canonical": true, - "file": "edge_network.get_subnet.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSubnet", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork.GetSubnet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.edgenetwork.v1.Subnet", - "client": { - "shortName": "EdgeNetworkClient", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetworkClient" - }, - "method": { - "shortName": "GetSubnet", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork.GetSubnet", - "service": { - "shortName": "EdgeNetwork", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork" - } - } - } - }, - { - "regionTag": "edgenetwork_v1_generated_EdgeNetwork_CreateSubnet_async", - "title": "EdgeNetwork createSubnet Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Subnet in a given project and location.", - "canonical": true, - "file": "edge_network.create_subnet.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSubnet", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork.CreateSubnet", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "subnet_id", - "type": "TYPE_STRING" - }, - { - "name": "subnet", - "type": ".google.cloud.edgenetwork.v1.Subnet" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EdgeNetworkClient", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetworkClient" - }, - "method": { - "shortName": "CreateSubnet", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork.CreateSubnet", - "service": { - "shortName": "EdgeNetwork", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork" - } - } - } - }, - { - "regionTag": "edgenetwork_v1_generated_EdgeNetwork_UpdateSubnet_async", - "title": "EdgeNetwork updateSubnet Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Subnet.", - "canonical": true, - "file": "edge_network.update_subnet.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSubnet", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork.UpdateSubnet", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "subnet", - "type": ".google.cloud.edgenetwork.v1.Subnet" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EdgeNetworkClient", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetworkClient" - }, - "method": { - "shortName": "UpdateSubnet", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork.UpdateSubnet", - "service": { - "shortName": "EdgeNetwork", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork" - } - } - } - }, - { - "regionTag": "edgenetwork_v1_generated_EdgeNetwork_DeleteSubnet_async", - "title": "EdgeNetwork deleteSubnet Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Subnet.", - "canonical": true, - "file": "edge_network.delete_subnet.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSubnet", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork.DeleteSubnet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EdgeNetworkClient", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetworkClient" - }, - "method": { - "shortName": "DeleteSubnet", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork.DeleteSubnet", - "service": { - "shortName": "EdgeNetwork", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork" - } - } - } - }, - { - "regionTag": "edgenetwork_v1_generated_EdgeNetwork_ListInterconnects_async", - "title": "EdgeNetwork listInterconnects Sample", - "origin": "API_DEFINITION", - "description": " Lists Interconnects in a given project and location.", - "canonical": true, - "file": "edge_network.list_interconnects.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListInterconnects", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork.ListInterconnects", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.edgenetwork.v1.ListInterconnectsResponse", - "client": { - "shortName": "EdgeNetworkClient", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetworkClient" - }, - "method": { - "shortName": "ListInterconnects", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork.ListInterconnects", - "service": { - "shortName": "EdgeNetwork", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork" - } - } - } - }, - { - "regionTag": "edgenetwork_v1_generated_EdgeNetwork_GetInterconnect_async", - "title": "EdgeNetwork getInterconnect Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Interconnect.", - "canonical": true, - "file": "edge_network.get_interconnect.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetInterconnect", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork.GetInterconnect", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.edgenetwork.v1.Interconnect", - "client": { - "shortName": "EdgeNetworkClient", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetworkClient" - }, - "method": { - "shortName": "GetInterconnect", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork.GetInterconnect", - "service": { - "shortName": "EdgeNetwork", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork" - } - } - } - }, - { - "regionTag": "edgenetwork_v1_generated_EdgeNetwork_DiagnoseInterconnect_async", - "title": "EdgeNetwork diagnoseInterconnect Sample", - "origin": "API_DEFINITION", - "description": " Get the diagnostics of a single interconnect resource.", - "canonical": true, - "file": "edge_network.diagnose_interconnect.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DiagnoseInterconnect", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork.DiagnoseInterconnect", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.edgenetwork.v1.DiagnoseInterconnectResponse", - "client": { - "shortName": "EdgeNetworkClient", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetworkClient" - }, - "method": { - "shortName": "DiagnoseInterconnect", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork.DiagnoseInterconnect", - "service": { - "shortName": "EdgeNetwork", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork" - } - } - } - }, - { - "regionTag": "edgenetwork_v1_generated_EdgeNetwork_ListInterconnectAttachments_async", - "title": "EdgeNetwork listInterconnectAttachments Sample", - "origin": "API_DEFINITION", - "description": " Lists InterconnectAttachments in a given project and location.", - "canonical": true, - "file": "edge_network.list_interconnect_attachments.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListInterconnectAttachments", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork.ListInterconnectAttachments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.edgenetwork.v1.ListInterconnectAttachmentsResponse", - "client": { - "shortName": "EdgeNetworkClient", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetworkClient" - }, - "method": { - "shortName": "ListInterconnectAttachments", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork.ListInterconnectAttachments", - "service": { - "shortName": "EdgeNetwork", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork" - } - } - } - }, - { - "regionTag": "edgenetwork_v1_generated_EdgeNetwork_GetInterconnectAttachment_async", - "title": "EdgeNetwork getInterconnectAttachment Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single InterconnectAttachment.", - "canonical": true, - "file": "edge_network.get_interconnect_attachment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetInterconnectAttachment", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork.GetInterconnectAttachment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.edgenetwork.v1.InterconnectAttachment", - "client": { - "shortName": "EdgeNetworkClient", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetworkClient" - }, - "method": { - "shortName": "GetInterconnectAttachment", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork.GetInterconnectAttachment", - "service": { - "shortName": "EdgeNetwork", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork" - } - } - } - }, - { - "regionTag": "edgenetwork_v1_generated_EdgeNetwork_CreateInterconnectAttachment_async", - "title": "EdgeNetwork createInterconnectAttachment Sample", - "origin": "API_DEFINITION", - "description": " Creates a new InterconnectAttachment in a given project and location.", - "canonical": true, - "file": "edge_network.create_interconnect_attachment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateInterconnectAttachment", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork.CreateInterconnectAttachment", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "interconnect_attachment_id", - "type": "TYPE_STRING" - }, - { - "name": "interconnect_attachment", - "type": ".google.cloud.edgenetwork.v1.InterconnectAttachment" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EdgeNetworkClient", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetworkClient" - }, - "method": { - "shortName": "CreateInterconnectAttachment", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork.CreateInterconnectAttachment", - "service": { - "shortName": "EdgeNetwork", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork" - } - } - } - }, - { - "regionTag": "edgenetwork_v1_generated_EdgeNetwork_DeleteInterconnectAttachment_async", - "title": "EdgeNetwork deleteInterconnectAttachment Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single InterconnectAttachment.", - "canonical": true, - "file": "edge_network.delete_interconnect_attachment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteInterconnectAttachment", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork.DeleteInterconnectAttachment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EdgeNetworkClient", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetworkClient" - }, - "method": { - "shortName": "DeleteInterconnectAttachment", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork.DeleteInterconnectAttachment", - "service": { - "shortName": "EdgeNetwork", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork" - } - } - } - }, - { - "regionTag": "edgenetwork_v1_generated_EdgeNetwork_ListRouters_async", - "title": "EdgeNetwork listRouters Sample", - "origin": "API_DEFINITION", - "description": " Lists Routers in a given project and location.", - "canonical": true, - "file": "edge_network.list_routers.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRouters", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork.ListRouters", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.edgenetwork.v1.ListRoutersResponse", - "client": { - "shortName": "EdgeNetworkClient", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetworkClient" - }, - "method": { - "shortName": "ListRouters", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork.ListRouters", - "service": { - "shortName": "EdgeNetwork", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork" - } - } - } - }, - { - "regionTag": "edgenetwork_v1_generated_EdgeNetwork_GetRouter_async", - "title": "EdgeNetwork getRouter Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Router.", - "canonical": true, - "file": "edge_network.get_router.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRouter", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork.GetRouter", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.edgenetwork.v1.Router", - "client": { - "shortName": "EdgeNetworkClient", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetworkClient" - }, - "method": { - "shortName": "GetRouter", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork.GetRouter", - "service": { - "shortName": "EdgeNetwork", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork" - } - } - } - }, - { - "regionTag": "edgenetwork_v1_generated_EdgeNetwork_DiagnoseRouter_async", - "title": "EdgeNetwork diagnoseRouter Sample", - "origin": "API_DEFINITION", - "description": " Get the diagnostics of a single router resource.", - "canonical": true, - "file": "edge_network.diagnose_router.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DiagnoseRouter", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork.DiagnoseRouter", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.edgenetwork.v1.DiagnoseRouterResponse", - "client": { - "shortName": "EdgeNetworkClient", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetworkClient" - }, - "method": { - "shortName": "DiagnoseRouter", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork.DiagnoseRouter", - "service": { - "shortName": "EdgeNetwork", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork" - } - } - } - }, - { - "regionTag": "edgenetwork_v1_generated_EdgeNetwork_CreateRouter_async", - "title": "EdgeNetwork createRouter Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Router in a given project and location.", - "canonical": true, - "file": "edge_network.create_router.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateRouter", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork.CreateRouter", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "router_id", - "type": "TYPE_STRING" - }, - { - "name": "router", - "type": ".google.cloud.edgenetwork.v1.Router" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EdgeNetworkClient", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetworkClient" - }, - "method": { - "shortName": "CreateRouter", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork.CreateRouter", - "service": { - "shortName": "EdgeNetwork", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork" - } - } - } - }, - { - "regionTag": "edgenetwork_v1_generated_EdgeNetwork_UpdateRouter_async", - "title": "EdgeNetwork updateRouter Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Router.", - "canonical": true, - "file": "edge_network.update_router.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateRouter", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork.UpdateRouter", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "router", - "type": ".google.cloud.edgenetwork.v1.Router" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EdgeNetworkClient", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetworkClient" - }, - "method": { - "shortName": "UpdateRouter", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork.UpdateRouter", - "service": { - "shortName": "EdgeNetwork", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork" - } - } - } - }, - { - "regionTag": "edgenetwork_v1_generated_EdgeNetwork_DeleteRouter_async", - "title": "EdgeNetwork deleteRouter Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Router.", - "canonical": true, - "file": "edge_network.delete_router.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteRouter", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork.DeleteRouter", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EdgeNetworkClient", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetworkClient" - }, - "method": { - "shortName": "DeleteRouter", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork.DeleteRouter", - "service": { - "shortName": "EdgeNetwork", - "fullName": "google.cloud.edgenetwork.v1.EdgeNetwork" - } - } - } - } - ] -} diff --git a/packages/google-cloud-essentialcontacts/samples/generated/v1/snippet_metadata_google.cloud.essentialcontacts.v1.json b/packages/google-cloud-essentialcontacts/samples/generated/v1/snippet_metadata_google.cloud.essentialcontacts.v1.json deleted file mode 100644 index 410113b42299..000000000000 --- a/packages/google-cloud-essentialcontacts/samples/generated/v1/snippet_metadata_google.cloud.essentialcontacts.v1.json +++ /dev/null @@ -1,331 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-essentialcontacts", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.essentialcontacts.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "essentialcontacts_v1_generated_EssentialContactsService_CreateContact_async", - "title": "EssentialContactsService createContact Sample", - "origin": "API_DEFINITION", - "description": " Adds a new contact for a resource.", - "canonical": true, - "file": "essential_contacts_service.create_contact.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateContact", - "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService.CreateContact", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "contact", - "type": ".google.cloud.essentialcontacts.v1.Contact" - } - ], - "resultType": ".google.cloud.essentialcontacts.v1.Contact", - "client": { - "shortName": "EssentialContactsServiceClient", - "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsServiceClient" - }, - "method": { - "shortName": "CreateContact", - "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService.CreateContact", - "service": { - "shortName": "EssentialContactsService", - "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService" - } - } - } - }, - { - "regionTag": "essentialcontacts_v1_generated_EssentialContactsService_UpdateContact_async", - "title": "EssentialContactsService updateContact Sample", - "origin": "API_DEFINITION", - "description": " Updates a contact. Note: A contact's email address cannot be changed.", - "canonical": true, - "file": "essential_contacts_service.update_contact.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateContact", - "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService.UpdateContact", - "async": true, - "parameters": [ - { - "name": "contact", - "type": ".google.cloud.essentialcontacts.v1.Contact" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.essentialcontacts.v1.Contact", - "client": { - "shortName": "EssentialContactsServiceClient", - "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsServiceClient" - }, - "method": { - "shortName": "UpdateContact", - "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService.UpdateContact", - "service": { - "shortName": "EssentialContactsService", - "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService" - } - } - } - }, - { - "regionTag": "essentialcontacts_v1_generated_EssentialContactsService_ListContacts_async", - "title": "EssentialContactsService listContacts Sample", - "origin": "API_DEFINITION", - "description": " Lists the contacts that have been set on a resource.", - "canonical": true, - "file": "essential_contacts_service.list_contacts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListContacts", - "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService.ListContacts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.essentialcontacts.v1.ListContactsResponse", - "client": { - "shortName": "EssentialContactsServiceClient", - "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsServiceClient" - }, - "method": { - "shortName": "ListContacts", - "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService.ListContacts", - "service": { - "shortName": "EssentialContactsService", - "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService" - } - } - } - }, - { - "regionTag": "essentialcontacts_v1_generated_EssentialContactsService_GetContact_async", - "title": "EssentialContactsService getContact Sample", - "origin": "API_DEFINITION", - "description": " Gets a single contact.", - "canonical": true, - "file": "essential_contacts_service.get_contact.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetContact", - "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService.GetContact", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.essentialcontacts.v1.Contact", - "client": { - "shortName": "EssentialContactsServiceClient", - "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsServiceClient" - }, - "method": { - "shortName": "GetContact", - "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService.GetContact", - "service": { - "shortName": "EssentialContactsService", - "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService" - } - } - } - }, - { - "regionTag": "essentialcontacts_v1_generated_EssentialContactsService_DeleteContact_async", - "title": "EssentialContactsService deleteContact Sample", - "origin": "API_DEFINITION", - "description": " Deletes a contact.", - "canonical": true, - "file": "essential_contacts_service.delete_contact.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteContact", - "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService.DeleteContact", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "EssentialContactsServiceClient", - "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsServiceClient" - }, - "method": { - "shortName": "DeleteContact", - "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService.DeleteContact", - "service": { - "shortName": "EssentialContactsService", - "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService" - } - } - } - }, - { - "regionTag": "essentialcontacts_v1_generated_EssentialContactsService_ComputeContacts_async", - "title": "EssentialContactsService computeContacts Sample", - "origin": "API_DEFINITION", - "description": " Lists all contacts for the resource that are subscribed to the specified notification categories, including contacts inherited from any parent resources.", - "canonical": true, - "file": "essential_contacts_service.compute_contacts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ComputeContacts", - "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService.ComputeContacts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "notification_categories", - "type": "TYPE_ENUM[]" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.essentialcontacts.v1.ComputeContactsResponse", - "client": { - "shortName": "EssentialContactsServiceClient", - "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsServiceClient" - }, - "method": { - "shortName": "ComputeContacts", - "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService.ComputeContacts", - "service": { - "shortName": "EssentialContactsService", - "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService" - } - } - } - }, - { - "regionTag": "essentialcontacts_v1_generated_EssentialContactsService_SendTestMessage_async", - "title": "EssentialContactsService sendTestMessage Sample", - "origin": "API_DEFINITION", - "description": " Allows a contact admin to send a test message to contact to verify that it has been configured correctly.", - "canonical": true, - "file": "essential_contacts_service.send_test_message.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SendTestMessage", - "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService.SendTestMessage", - "async": true, - "parameters": [ - { - "name": "contacts", - "type": "TYPE_STRING[]" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "notification_category", - "type": ".google.cloud.essentialcontacts.v1.NotificationCategory" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "EssentialContactsServiceClient", - "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsServiceClient" - }, - "method": { - "shortName": "SendTestMessage", - "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService.SendTestMessage", - "service": { - "shortName": "EssentialContactsService", - "fullName": "google.cloud.essentialcontacts.v1.EssentialContactsService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-eventarc-publishing/samples/generated/v1/snippet_metadata_google.cloud.eventarc.publishing.v1.json b/packages/google-cloud-eventarc-publishing/samples/generated/v1/snippet_metadata_google.cloud.eventarc.publishing.v1.json deleted file mode 100644 index 9a134183930e..000000000000 --- a/packages/google-cloud-eventarc-publishing/samples/generated/v1/snippet_metadata_google.cloud.eventarc.publishing.v1.json +++ /dev/null @@ -1,163 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-publishing", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.eventarc.publishing.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "eventarcpublishing_v1_generated_Publisher_PublishChannelConnectionEvents_async", - "title": "Publisher publishChannelConnectionEvents Sample", - "origin": "API_DEFINITION", - "description": " Publish events to a ChannelConnection in a partner's project.", - "canonical": true, - "file": "publisher.publish_channel_connection_events.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PublishChannelConnectionEvents", - "fullName": "google.cloud.eventarc.publishing.v1.Publisher.PublishChannelConnectionEvents", - "async": true, - "parameters": [ - { - "name": "channel_connection", - "type": "TYPE_STRING" - }, - { - "name": "events", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "text_events", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse", - "client": { - "shortName": "PublisherClient", - "fullName": "google.cloud.eventarc.publishing.v1.PublisherClient" - }, - "method": { - "shortName": "PublishChannelConnectionEvents", - "fullName": "google.cloud.eventarc.publishing.v1.Publisher.PublishChannelConnectionEvents", - "service": { - "shortName": "Publisher", - "fullName": "google.cloud.eventarc.publishing.v1.Publisher" - } - } - } - }, - { - "regionTag": "eventarcpublishing_v1_generated_Publisher_PublishEvents_async", - "title": "Publisher publishEvents Sample", - "origin": "API_DEFINITION", - "description": " Publish events to a subscriber's channel.", - "canonical": true, - "file": "publisher.publish_events.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PublishEvents", - "fullName": "google.cloud.eventarc.publishing.v1.Publisher.PublishEvents", - "async": true, - "parameters": [ - { - "name": "channel", - "type": "TYPE_STRING" - }, - { - "name": "events", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "text_events", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.cloud.eventarc.publishing.v1.PublishEventsResponse", - "client": { - "shortName": "PublisherClient", - "fullName": "google.cloud.eventarc.publishing.v1.PublisherClient" - }, - "method": { - "shortName": "PublishEvents", - "fullName": "google.cloud.eventarc.publishing.v1.Publisher.PublishEvents", - "service": { - "shortName": "Publisher", - "fullName": "google.cloud.eventarc.publishing.v1.Publisher" - } - } - } - }, - { - "regionTag": "eventarcpublishing_v1_generated_Publisher_Publish_async", - "title": "Publisher publish Sample", - "origin": "API_DEFINITION", - "description": " Publish events to a message bus.", - "canonical": true, - "file": "publisher.publish.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Publish", - "fullName": "google.cloud.eventarc.publishing.v1.Publisher.Publish", - "async": true, - "parameters": [ - { - "name": "message_bus", - "type": "TYPE_STRING" - }, - { - "name": "proto_message", - "type": ".google.cloud.eventarc.publishing.v1.CloudEvent" - }, - { - "name": "json_message", - "type": "TYPE_STRING" - }, - { - "name": "avro_message", - "type": "TYPE_BYTES" - } - ], - "resultType": ".google.cloud.eventarc.publishing.v1.PublishResponse", - "client": { - "shortName": "PublisherClient", - "fullName": "google.cloud.eventarc.publishing.v1.PublisherClient" - }, - "method": { - "shortName": "Publish", - "fullName": "google.cloud.eventarc.publishing.v1.Publisher.Publish", - "service": { - "shortName": "Publisher", - "fullName": "google.cloud.eventarc.publishing.v1.Publisher" - } - } - } - } - ] -} diff --git a/packages/google-cloud-eventarc/samples/generated/v1/snippet_metadata_google.cloud.eventarc.v1.json b/packages/google-cloud-eventarc/samples/generated/v1/snippet_metadata_google.cloud.eventarc.v1.json deleted file mode 100644 index 5729e99222e0..000000000000 --- a/packages/google-cloud-eventarc/samples/generated/v1/snippet_metadata_google.cloud.eventarc.v1.json +++ /dev/null @@ -1,1915 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-eventarc", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.eventarc.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "eventarc_v1_generated_Eventarc_GetTrigger_async", - "title": "Eventarc getTrigger Sample", - "origin": "API_DEFINITION", - "description": " Get a single trigger.", - "canonical": true, - "file": "eventarc.get_trigger.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTrigger", - "fullName": "google.cloud.eventarc.v1.Eventarc.GetTrigger", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.eventarc.v1.Trigger", - "client": { - "shortName": "EventarcClient", - "fullName": "google.cloud.eventarc.v1.EventarcClient" - }, - "method": { - "shortName": "GetTrigger", - "fullName": "google.cloud.eventarc.v1.Eventarc.GetTrigger", - "service": { - "shortName": "Eventarc", - "fullName": "google.cloud.eventarc.v1.Eventarc" - } - } - } - }, - { - "regionTag": "eventarc_v1_generated_Eventarc_ListTriggers_async", - "title": "Eventarc listTriggers Sample", - "origin": "API_DEFINITION", - "description": " List triggers.", - "canonical": true, - "file": "eventarc.list_triggers.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTriggers", - "fullName": "google.cloud.eventarc.v1.Eventarc.ListTriggers", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.eventarc.v1.ListTriggersResponse", - "client": { - "shortName": "EventarcClient", - "fullName": "google.cloud.eventarc.v1.EventarcClient" - }, - "method": { - "shortName": "ListTriggers", - "fullName": "google.cloud.eventarc.v1.Eventarc.ListTriggers", - "service": { - "shortName": "Eventarc", - "fullName": "google.cloud.eventarc.v1.Eventarc" - } - } - } - }, - { - "regionTag": "eventarc_v1_generated_Eventarc_CreateTrigger_async", - "title": "Eventarc createTrigger Sample", - "origin": "API_DEFINITION", - "description": " Create a new trigger in a particular project and location.", - "canonical": true, - "file": "eventarc.create_trigger.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTrigger", - "fullName": "google.cloud.eventarc.v1.Eventarc.CreateTrigger", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "trigger", - "type": ".google.cloud.eventarc.v1.Trigger" - }, - { - "name": "trigger_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EventarcClient", - "fullName": "google.cloud.eventarc.v1.EventarcClient" - }, - "method": { - "shortName": "CreateTrigger", - "fullName": "google.cloud.eventarc.v1.Eventarc.CreateTrigger", - "service": { - "shortName": "Eventarc", - "fullName": "google.cloud.eventarc.v1.Eventarc" - } - } - } - }, - { - "regionTag": "eventarc_v1_generated_Eventarc_UpdateTrigger_async", - "title": "Eventarc updateTrigger Sample", - "origin": "API_DEFINITION", - "description": " Update a single trigger.", - "canonical": true, - "file": "eventarc.update_trigger.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTrigger", - "fullName": "google.cloud.eventarc.v1.Eventarc.UpdateTrigger", - "async": true, - "parameters": [ - { - "name": "trigger", - "type": ".google.cloud.eventarc.v1.Trigger" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EventarcClient", - "fullName": "google.cloud.eventarc.v1.EventarcClient" - }, - "method": { - "shortName": "UpdateTrigger", - "fullName": "google.cloud.eventarc.v1.Eventarc.UpdateTrigger", - "service": { - "shortName": "Eventarc", - "fullName": "google.cloud.eventarc.v1.Eventarc" - } - } - } - }, - { - "regionTag": "eventarc_v1_generated_Eventarc_DeleteTrigger_async", - "title": "Eventarc deleteTrigger Sample", - "origin": "API_DEFINITION", - "description": " Delete a single trigger.", - "canonical": true, - "file": "eventarc.delete_trigger.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTrigger", - "fullName": "google.cloud.eventarc.v1.Eventarc.DeleteTrigger", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EventarcClient", - "fullName": "google.cloud.eventarc.v1.EventarcClient" - }, - "method": { - "shortName": "DeleteTrigger", - "fullName": "google.cloud.eventarc.v1.Eventarc.DeleteTrigger", - "service": { - "shortName": "Eventarc", - "fullName": "google.cloud.eventarc.v1.Eventarc" - } - } - } - }, - { - "regionTag": "eventarc_v1_generated_Eventarc_GetChannel_async", - "title": "Eventarc getChannel Sample", - "origin": "API_DEFINITION", - "description": " Get a single Channel.", - "canonical": true, - "file": "eventarc.get_channel.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetChannel", - "fullName": "google.cloud.eventarc.v1.Eventarc.GetChannel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.eventarc.v1.Channel", - "client": { - "shortName": "EventarcClient", - "fullName": "google.cloud.eventarc.v1.EventarcClient" - }, - "method": { - "shortName": "GetChannel", - "fullName": "google.cloud.eventarc.v1.Eventarc.GetChannel", - "service": { - "shortName": "Eventarc", - "fullName": "google.cloud.eventarc.v1.Eventarc" - } - } - } - }, - { - "regionTag": "eventarc_v1_generated_Eventarc_ListChannels_async", - "title": "Eventarc listChannels Sample", - "origin": "API_DEFINITION", - "description": " List channels.", - "canonical": true, - "file": "eventarc.list_channels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListChannels", - "fullName": "google.cloud.eventarc.v1.Eventarc.ListChannels", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.eventarc.v1.ListChannelsResponse", - "client": { - "shortName": "EventarcClient", - "fullName": "google.cloud.eventarc.v1.EventarcClient" - }, - "method": { - "shortName": "ListChannels", - "fullName": "google.cloud.eventarc.v1.Eventarc.ListChannels", - "service": { - "shortName": "Eventarc", - "fullName": "google.cloud.eventarc.v1.Eventarc" - } - } - } - }, - { - "regionTag": "eventarc_v1_generated_Eventarc_CreateChannel_async", - "title": "Eventarc createChannel Sample", - "origin": "API_DEFINITION", - "description": " Create a new channel in a particular project and location.", - "canonical": true, - "file": "eventarc.create_channel.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateChannel", - "fullName": "google.cloud.eventarc.v1.Eventarc.CreateChannel", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "channel", - "type": ".google.cloud.eventarc.v1.Channel" - }, - { - "name": "channel_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EventarcClient", - "fullName": "google.cloud.eventarc.v1.EventarcClient" - }, - "method": { - "shortName": "CreateChannel", - "fullName": "google.cloud.eventarc.v1.Eventarc.CreateChannel", - "service": { - "shortName": "Eventarc", - "fullName": "google.cloud.eventarc.v1.Eventarc" - } - } - } - }, - { - "regionTag": "eventarc_v1_generated_Eventarc_UpdateChannel_async", - "title": "Eventarc updateChannel Sample", - "origin": "API_DEFINITION", - "description": " Update a single channel.", - "canonical": true, - "file": "eventarc.update_channel.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateChannel", - "fullName": "google.cloud.eventarc.v1.Eventarc.UpdateChannel", - "async": true, - "parameters": [ - { - "name": "channel", - "type": ".google.cloud.eventarc.v1.Channel" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EventarcClient", - "fullName": "google.cloud.eventarc.v1.EventarcClient" - }, - "method": { - "shortName": "UpdateChannel", - "fullName": "google.cloud.eventarc.v1.Eventarc.UpdateChannel", - "service": { - "shortName": "Eventarc", - "fullName": "google.cloud.eventarc.v1.Eventarc" - } - } - } - }, - { - "regionTag": "eventarc_v1_generated_Eventarc_DeleteChannel_async", - "title": "Eventarc deleteChannel Sample", - "origin": "API_DEFINITION", - "description": " Delete a single channel.", - "canonical": true, - "file": "eventarc.delete_channel.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteChannel", - "fullName": "google.cloud.eventarc.v1.Eventarc.DeleteChannel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EventarcClient", - "fullName": "google.cloud.eventarc.v1.EventarcClient" - }, - "method": { - "shortName": "DeleteChannel", - "fullName": "google.cloud.eventarc.v1.Eventarc.DeleteChannel", - "service": { - "shortName": "Eventarc", - "fullName": "google.cloud.eventarc.v1.Eventarc" - } - } - } - }, - { - "regionTag": "eventarc_v1_generated_Eventarc_GetProvider_async", - "title": "Eventarc getProvider Sample", - "origin": "API_DEFINITION", - "description": " Get a single Provider.", - "canonical": true, - "file": "eventarc.get_provider.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetProvider", - "fullName": "google.cloud.eventarc.v1.Eventarc.GetProvider", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.eventarc.v1.Provider", - "client": { - "shortName": "EventarcClient", - "fullName": "google.cloud.eventarc.v1.EventarcClient" - }, - "method": { - "shortName": "GetProvider", - "fullName": "google.cloud.eventarc.v1.Eventarc.GetProvider", - "service": { - "shortName": "Eventarc", - "fullName": "google.cloud.eventarc.v1.Eventarc" - } - } - } - }, - { - "regionTag": "eventarc_v1_generated_Eventarc_ListProviders_async", - "title": "Eventarc listProviders Sample", - "origin": "API_DEFINITION", - "description": " List providers.", - "canonical": true, - "file": "eventarc.list_providers.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListProviders", - "fullName": "google.cloud.eventarc.v1.Eventarc.ListProviders", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.eventarc.v1.ListProvidersResponse", - "client": { - "shortName": "EventarcClient", - "fullName": "google.cloud.eventarc.v1.EventarcClient" - }, - "method": { - "shortName": "ListProviders", - "fullName": "google.cloud.eventarc.v1.Eventarc.ListProviders", - "service": { - "shortName": "Eventarc", - "fullName": "google.cloud.eventarc.v1.Eventarc" - } - } - } - }, - { - "regionTag": "eventarc_v1_generated_Eventarc_GetChannelConnection_async", - "title": "Eventarc getChannelConnection Sample", - "origin": "API_DEFINITION", - "description": " Get a single ChannelConnection.", - "canonical": true, - "file": "eventarc.get_channel_connection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetChannelConnection", - "fullName": "google.cloud.eventarc.v1.Eventarc.GetChannelConnection", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.eventarc.v1.ChannelConnection", - "client": { - "shortName": "EventarcClient", - "fullName": "google.cloud.eventarc.v1.EventarcClient" - }, - "method": { - "shortName": "GetChannelConnection", - "fullName": "google.cloud.eventarc.v1.Eventarc.GetChannelConnection", - "service": { - "shortName": "Eventarc", - "fullName": "google.cloud.eventarc.v1.Eventarc" - } - } - } - }, - { - "regionTag": "eventarc_v1_generated_Eventarc_ListChannelConnections_async", - "title": "Eventarc listChannelConnections Sample", - "origin": "API_DEFINITION", - "description": " List channel connections.", - "canonical": true, - "file": "eventarc.list_channel_connections.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListChannelConnections", - "fullName": "google.cloud.eventarc.v1.Eventarc.ListChannelConnections", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.eventarc.v1.ListChannelConnectionsResponse", - "client": { - "shortName": "EventarcClient", - "fullName": "google.cloud.eventarc.v1.EventarcClient" - }, - "method": { - "shortName": "ListChannelConnections", - "fullName": "google.cloud.eventarc.v1.Eventarc.ListChannelConnections", - "service": { - "shortName": "Eventarc", - "fullName": "google.cloud.eventarc.v1.Eventarc" - } - } - } - }, - { - "regionTag": "eventarc_v1_generated_Eventarc_CreateChannelConnection_async", - "title": "Eventarc createChannelConnection Sample", - "origin": "API_DEFINITION", - "description": " Create a new ChannelConnection in a particular project and location.", - "canonical": true, - "file": "eventarc.create_channel_connection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateChannelConnection", - "fullName": "google.cloud.eventarc.v1.Eventarc.CreateChannelConnection", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "channel_connection", - "type": ".google.cloud.eventarc.v1.ChannelConnection" - }, - { - "name": "channel_connection_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EventarcClient", - "fullName": "google.cloud.eventarc.v1.EventarcClient" - }, - "method": { - "shortName": "CreateChannelConnection", - "fullName": "google.cloud.eventarc.v1.Eventarc.CreateChannelConnection", - "service": { - "shortName": "Eventarc", - "fullName": "google.cloud.eventarc.v1.Eventarc" - } - } - } - }, - { - "regionTag": "eventarc_v1_generated_Eventarc_DeleteChannelConnection_async", - "title": "Eventarc deleteChannelConnection Sample", - "origin": "API_DEFINITION", - "description": " Delete a single ChannelConnection.", - "canonical": true, - "file": "eventarc.delete_channel_connection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteChannelConnection", - "fullName": "google.cloud.eventarc.v1.Eventarc.DeleteChannelConnection", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EventarcClient", - "fullName": "google.cloud.eventarc.v1.EventarcClient" - }, - "method": { - "shortName": "DeleteChannelConnection", - "fullName": "google.cloud.eventarc.v1.Eventarc.DeleteChannelConnection", - "service": { - "shortName": "Eventarc", - "fullName": "google.cloud.eventarc.v1.Eventarc" - } - } - } - }, - { - "regionTag": "eventarc_v1_generated_Eventarc_GetGoogleChannelConfig_async", - "title": "Eventarc getGoogleChannelConfig Sample", - "origin": "API_DEFINITION", - "description": " Get a GoogleChannelConfig. The name of the GoogleChannelConfig in the response is ALWAYS coded with projectID.", - "canonical": true, - "file": "eventarc.get_google_channel_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetGoogleChannelConfig", - "fullName": "google.cloud.eventarc.v1.Eventarc.GetGoogleChannelConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.eventarc.v1.GoogleChannelConfig", - "client": { - "shortName": "EventarcClient", - "fullName": "google.cloud.eventarc.v1.EventarcClient" - }, - "method": { - "shortName": "GetGoogleChannelConfig", - "fullName": "google.cloud.eventarc.v1.Eventarc.GetGoogleChannelConfig", - "service": { - "shortName": "Eventarc", - "fullName": "google.cloud.eventarc.v1.Eventarc" - } - } - } - }, - { - "regionTag": "eventarc_v1_generated_Eventarc_UpdateGoogleChannelConfig_async", - "title": "Eventarc updateGoogleChannelConfig Sample", - "origin": "API_DEFINITION", - "description": " Update a single GoogleChannelConfig", - "canonical": true, - "file": "eventarc.update_google_channel_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateGoogleChannelConfig", - "fullName": "google.cloud.eventarc.v1.Eventarc.UpdateGoogleChannelConfig", - "async": true, - "parameters": [ - { - "name": "google_channel_config", - "type": ".google.cloud.eventarc.v1.GoogleChannelConfig" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.eventarc.v1.GoogleChannelConfig", - "client": { - "shortName": "EventarcClient", - "fullName": "google.cloud.eventarc.v1.EventarcClient" - }, - "method": { - "shortName": "UpdateGoogleChannelConfig", - "fullName": "google.cloud.eventarc.v1.Eventarc.UpdateGoogleChannelConfig", - "service": { - "shortName": "Eventarc", - "fullName": "google.cloud.eventarc.v1.Eventarc" - } - } - } - }, - { - "regionTag": "eventarc_v1_generated_Eventarc_GetMessageBus_async", - "title": "Eventarc getMessageBus Sample", - "origin": "API_DEFINITION", - "description": " Get a single MessageBus.", - "canonical": true, - "file": "eventarc.get_message_bus.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMessageBus", - "fullName": "google.cloud.eventarc.v1.Eventarc.GetMessageBus", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.eventarc.v1.MessageBus", - "client": { - "shortName": "EventarcClient", - "fullName": "google.cloud.eventarc.v1.EventarcClient" - }, - "method": { - "shortName": "GetMessageBus", - "fullName": "google.cloud.eventarc.v1.Eventarc.GetMessageBus", - "service": { - "shortName": "Eventarc", - "fullName": "google.cloud.eventarc.v1.Eventarc" - } - } - } - }, - { - "regionTag": "eventarc_v1_generated_Eventarc_ListMessageBuses_async", - "title": "Eventarc listMessageBuses Sample", - "origin": "API_DEFINITION", - "description": " List message buses.", - "canonical": true, - "file": "eventarc.list_message_buses.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMessageBuses", - "fullName": "google.cloud.eventarc.v1.Eventarc.ListMessageBuses", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.eventarc.v1.ListMessageBusesResponse", - "client": { - "shortName": "EventarcClient", - "fullName": "google.cloud.eventarc.v1.EventarcClient" - }, - "method": { - "shortName": "ListMessageBuses", - "fullName": "google.cloud.eventarc.v1.Eventarc.ListMessageBuses", - "service": { - "shortName": "Eventarc", - "fullName": "google.cloud.eventarc.v1.Eventarc" - } - } - } - }, - { - "regionTag": "eventarc_v1_generated_Eventarc_ListMessageBusEnrollments_async", - "title": "Eventarc listMessageBusEnrollments Sample", - "origin": "API_DEFINITION", - "description": " List message bus enrollments.", - "canonical": true, - "file": "eventarc.list_message_bus_enrollments.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMessageBusEnrollments", - "fullName": "google.cloud.eventarc.v1.Eventarc.ListMessageBusEnrollments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.eventarc.v1.ListMessageBusEnrollmentsResponse", - "client": { - "shortName": "EventarcClient", - "fullName": "google.cloud.eventarc.v1.EventarcClient" - }, - "method": { - "shortName": "ListMessageBusEnrollments", - "fullName": "google.cloud.eventarc.v1.Eventarc.ListMessageBusEnrollments", - "service": { - "shortName": "Eventarc", - "fullName": "google.cloud.eventarc.v1.Eventarc" - } - } - } - }, - { - "regionTag": "eventarc_v1_generated_Eventarc_CreateMessageBus_async", - "title": "Eventarc createMessageBus Sample", - "origin": "API_DEFINITION", - "description": " Create a new MessageBus in a particular project and location.", - "canonical": true, - "file": "eventarc.create_message_bus.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateMessageBus", - "fullName": "google.cloud.eventarc.v1.Eventarc.CreateMessageBus", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "message_bus", - "type": ".google.cloud.eventarc.v1.MessageBus" - }, - { - "name": "message_bus_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EventarcClient", - "fullName": "google.cloud.eventarc.v1.EventarcClient" - }, - "method": { - "shortName": "CreateMessageBus", - "fullName": "google.cloud.eventarc.v1.Eventarc.CreateMessageBus", - "service": { - "shortName": "Eventarc", - "fullName": "google.cloud.eventarc.v1.Eventarc" - } - } - } - }, - { - "regionTag": "eventarc_v1_generated_Eventarc_UpdateMessageBus_async", - "title": "Eventarc updateMessageBus Sample", - "origin": "API_DEFINITION", - "description": " Update a single message bus.", - "canonical": true, - "file": "eventarc.update_message_bus.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateMessageBus", - "fullName": "google.cloud.eventarc.v1.Eventarc.UpdateMessageBus", - "async": true, - "parameters": [ - { - "name": "message_bus", - "type": ".google.cloud.eventarc.v1.MessageBus" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EventarcClient", - "fullName": "google.cloud.eventarc.v1.EventarcClient" - }, - "method": { - "shortName": "UpdateMessageBus", - "fullName": "google.cloud.eventarc.v1.Eventarc.UpdateMessageBus", - "service": { - "shortName": "Eventarc", - "fullName": "google.cloud.eventarc.v1.Eventarc" - } - } - } - }, - { - "regionTag": "eventarc_v1_generated_Eventarc_DeleteMessageBus_async", - "title": "Eventarc deleteMessageBus Sample", - "origin": "API_DEFINITION", - "description": " Delete a single message bus.", - "canonical": true, - "file": "eventarc.delete_message_bus.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteMessageBus", - "fullName": "google.cloud.eventarc.v1.Eventarc.DeleteMessageBus", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EventarcClient", - "fullName": "google.cloud.eventarc.v1.EventarcClient" - }, - "method": { - "shortName": "DeleteMessageBus", - "fullName": "google.cloud.eventarc.v1.Eventarc.DeleteMessageBus", - "service": { - "shortName": "Eventarc", - "fullName": "google.cloud.eventarc.v1.Eventarc" - } - } - } - }, - { - "regionTag": "eventarc_v1_generated_Eventarc_GetEnrollment_async", - "title": "Eventarc getEnrollment Sample", - "origin": "API_DEFINITION", - "description": " Get a single Enrollment.", - "canonical": true, - "file": "eventarc.get_enrollment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEnrollment", - "fullName": "google.cloud.eventarc.v1.Eventarc.GetEnrollment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.eventarc.v1.Enrollment", - "client": { - "shortName": "EventarcClient", - "fullName": "google.cloud.eventarc.v1.EventarcClient" - }, - "method": { - "shortName": "GetEnrollment", - "fullName": "google.cloud.eventarc.v1.Eventarc.GetEnrollment", - "service": { - "shortName": "Eventarc", - "fullName": "google.cloud.eventarc.v1.Eventarc" - } - } - } - }, - { - "regionTag": "eventarc_v1_generated_Eventarc_ListEnrollments_async", - "title": "Eventarc listEnrollments Sample", - "origin": "API_DEFINITION", - "description": " List Enrollments.", - "canonical": true, - "file": "eventarc.list_enrollments.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEnrollments", - "fullName": "google.cloud.eventarc.v1.Eventarc.ListEnrollments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.eventarc.v1.ListEnrollmentsResponse", - "client": { - "shortName": "EventarcClient", - "fullName": "google.cloud.eventarc.v1.EventarcClient" - }, - "method": { - "shortName": "ListEnrollments", - "fullName": "google.cloud.eventarc.v1.Eventarc.ListEnrollments", - "service": { - "shortName": "Eventarc", - "fullName": "google.cloud.eventarc.v1.Eventarc" - } - } - } - }, - { - "regionTag": "eventarc_v1_generated_Eventarc_CreateEnrollment_async", - "title": "Eventarc createEnrollment Sample", - "origin": "API_DEFINITION", - "description": " Create a new Enrollment in a particular project and location.", - "canonical": true, - "file": "eventarc.create_enrollment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateEnrollment", - "fullName": "google.cloud.eventarc.v1.Eventarc.CreateEnrollment", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "enrollment", - "type": ".google.cloud.eventarc.v1.Enrollment" - }, - { - "name": "enrollment_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EventarcClient", - "fullName": "google.cloud.eventarc.v1.EventarcClient" - }, - "method": { - "shortName": "CreateEnrollment", - "fullName": "google.cloud.eventarc.v1.Eventarc.CreateEnrollment", - "service": { - "shortName": "Eventarc", - "fullName": "google.cloud.eventarc.v1.Eventarc" - } - } - } - }, - { - "regionTag": "eventarc_v1_generated_Eventarc_UpdateEnrollment_async", - "title": "Eventarc updateEnrollment Sample", - "origin": "API_DEFINITION", - "description": " Update a single Enrollment.", - "canonical": true, - "file": "eventarc.update_enrollment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateEnrollment", - "fullName": "google.cloud.eventarc.v1.Eventarc.UpdateEnrollment", - "async": true, - "parameters": [ - { - "name": "enrollment", - "type": ".google.cloud.eventarc.v1.Enrollment" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EventarcClient", - "fullName": "google.cloud.eventarc.v1.EventarcClient" - }, - "method": { - "shortName": "UpdateEnrollment", - "fullName": "google.cloud.eventarc.v1.Eventarc.UpdateEnrollment", - "service": { - "shortName": "Eventarc", - "fullName": "google.cloud.eventarc.v1.Eventarc" - } - } - } - }, - { - "regionTag": "eventarc_v1_generated_Eventarc_DeleteEnrollment_async", - "title": "Eventarc deleteEnrollment Sample", - "origin": "API_DEFINITION", - "description": " Delete a single Enrollment.", - "canonical": true, - "file": "eventarc.delete_enrollment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteEnrollment", - "fullName": "google.cloud.eventarc.v1.Eventarc.DeleteEnrollment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EventarcClient", - "fullName": "google.cloud.eventarc.v1.EventarcClient" - }, - "method": { - "shortName": "DeleteEnrollment", - "fullName": "google.cloud.eventarc.v1.Eventarc.DeleteEnrollment", - "service": { - "shortName": "Eventarc", - "fullName": "google.cloud.eventarc.v1.Eventarc" - } - } - } - }, - { - "regionTag": "eventarc_v1_generated_Eventarc_GetPipeline_async", - "title": "Eventarc getPipeline Sample", - "origin": "API_DEFINITION", - "description": " Get a single Pipeline.", - "canonical": true, - "file": "eventarc.get_pipeline.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPipeline", - "fullName": "google.cloud.eventarc.v1.Eventarc.GetPipeline", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.eventarc.v1.Pipeline", - "client": { - "shortName": "EventarcClient", - "fullName": "google.cloud.eventarc.v1.EventarcClient" - }, - "method": { - "shortName": "GetPipeline", - "fullName": "google.cloud.eventarc.v1.Eventarc.GetPipeline", - "service": { - "shortName": "Eventarc", - "fullName": "google.cloud.eventarc.v1.Eventarc" - } - } - } - }, - { - "regionTag": "eventarc_v1_generated_Eventarc_ListPipelines_async", - "title": "Eventarc listPipelines Sample", - "origin": "API_DEFINITION", - "description": " List pipelines.", - "canonical": true, - "file": "eventarc.list_pipelines.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPipelines", - "fullName": "google.cloud.eventarc.v1.Eventarc.ListPipelines", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.eventarc.v1.ListPipelinesResponse", - "client": { - "shortName": "EventarcClient", - "fullName": "google.cloud.eventarc.v1.EventarcClient" - }, - "method": { - "shortName": "ListPipelines", - "fullName": "google.cloud.eventarc.v1.Eventarc.ListPipelines", - "service": { - "shortName": "Eventarc", - "fullName": "google.cloud.eventarc.v1.Eventarc" - } - } - } - }, - { - "regionTag": "eventarc_v1_generated_Eventarc_CreatePipeline_async", - "title": "Eventarc createPipeline Sample", - "origin": "API_DEFINITION", - "description": " Create a new Pipeline in a particular project and location.", - "canonical": true, - "file": "eventarc.create_pipeline.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreatePipeline", - "fullName": "google.cloud.eventarc.v1.Eventarc.CreatePipeline", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "pipeline", - "type": ".google.cloud.eventarc.v1.Pipeline" - }, - { - "name": "pipeline_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EventarcClient", - "fullName": "google.cloud.eventarc.v1.EventarcClient" - }, - "method": { - "shortName": "CreatePipeline", - "fullName": "google.cloud.eventarc.v1.Eventarc.CreatePipeline", - "service": { - "shortName": "Eventarc", - "fullName": "google.cloud.eventarc.v1.Eventarc" - } - } - } - }, - { - "regionTag": "eventarc_v1_generated_Eventarc_UpdatePipeline_async", - "title": "Eventarc updatePipeline Sample", - "origin": "API_DEFINITION", - "description": " Update a single pipeline.", - "canonical": true, - "file": "eventarc.update_pipeline.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdatePipeline", - "fullName": "google.cloud.eventarc.v1.Eventarc.UpdatePipeline", - "async": true, - "parameters": [ - { - "name": "pipeline", - "type": ".google.cloud.eventarc.v1.Pipeline" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EventarcClient", - "fullName": "google.cloud.eventarc.v1.EventarcClient" - }, - "method": { - "shortName": "UpdatePipeline", - "fullName": "google.cloud.eventarc.v1.Eventarc.UpdatePipeline", - "service": { - "shortName": "Eventarc", - "fullName": "google.cloud.eventarc.v1.Eventarc" - } - } - } - }, - { - "regionTag": "eventarc_v1_generated_Eventarc_DeletePipeline_async", - "title": "Eventarc deletePipeline Sample", - "origin": "API_DEFINITION", - "description": " Delete a single pipeline.", - "canonical": true, - "file": "eventarc.delete_pipeline.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePipeline", - "fullName": "google.cloud.eventarc.v1.Eventarc.DeletePipeline", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EventarcClient", - "fullName": "google.cloud.eventarc.v1.EventarcClient" - }, - "method": { - "shortName": "DeletePipeline", - "fullName": "google.cloud.eventarc.v1.Eventarc.DeletePipeline", - "service": { - "shortName": "Eventarc", - "fullName": "google.cloud.eventarc.v1.Eventarc" - } - } - } - }, - { - "regionTag": "eventarc_v1_generated_Eventarc_GetGoogleApiSource_async", - "title": "Eventarc getGoogleApiSource Sample", - "origin": "API_DEFINITION", - "description": " Get a single GoogleApiSource.", - "canonical": true, - "file": "eventarc.get_google_api_source.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetGoogleApiSource", - "fullName": "google.cloud.eventarc.v1.Eventarc.GetGoogleApiSource", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.eventarc.v1.GoogleApiSource", - "client": { - "shortName": "EventarcClient", - "fullName": "google.cloud.eventarc.v1.EventarcClient" - }, - "method": { - "shortName": "GetGoogleApiSource", - "fullName": "google.cloud.eventarc.v1.Eventarc.GetGoogleApiSource", - "service": { - "shortName": "Eventarc", - "fullName": "google.cloud.eventarc.v1.Eventarc" - } - } - } - }, - { - "regionTag": "eventarc_v1_generated_Eventarc_ListGoogleApiSources_async", - "title": "Eventarc listGoogleApiSources Sample", - "origin": "API_DEFINITION", - "description": " List GoogleApiSources.", - "canonical": true, - "file": "eventarc.list_google_api_sources.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListGoogleApiSources", - "fullName": "google.cloud.eventarc.v1.Eventarc.ListGoogleApiSources", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.eventarc.v1.ListGoogleApiSourcesResponse", - "client": { - "shortName": "EventarcClient", - "fullName": "google.cloud.eventarc.v1.EventarcClient" - }, - "method": { - "shortName": "ListGoogleApiSources", - "fullName": "google.cloud.eventarc.v1.Eventarc.ListGoogleApiSources", - "service": { - "shortName": "Eventarc", - "fullName": "google.cloud.eventarc.v1.Eventarc" - } - } - } - }, - { - "regionTag": "eventarc_v1_generated_Eventarc_CreateGoogleApiSource_async", - "title": "Eventarc createGoogleApiSource Sample", - "origin": "API_DEFINITION", - "description": " Create a new GoogleApiSource in a particular project and location.", - "canonical": true, - "file": "eventarc.create_google_api_source.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateGoogleApiSource", - "fullName": "google.cloud.eventarc.v1.Eventarc.CreateGoogleApiSource", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "google_api_source", - "type": ".google.cloud.eventarc.v1.GoogleApiSource" - }, - { - "name": "google_api_source_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EventarcClient", - "fullName": "google.cloud.eventarc.v1.EventarcClient" - }, - "method": { - "shortName": "CreateGoogleApiSource", - "fullName": "google.cloud.eventarc.v1.Eventarc.CreateGoogleApiSource", - "service": { - "shortName": "Eventarc", - "fullName": "google.cloud.eventarc.v1.Eventarc" - } - } - } - }, - { - "regionTag": "eventarc_v1_generated_Eventarc_UpdateGoogleApiSource_async", - "title": "Eventarc updateGoogleApiSource Sample", - "origin": "API_DEFINITION", - "description": " Update a single GoogleApiSource.", - "canonical": true, - "file": "eventarc.update_google_api_source.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateGoogleApiSource", - "fullName": "google.cloud.eventarc.v1.Eventarc.UpdateGoogleApiSource", - "async": true, - "parameters": [ - { - "name": "google_api_source", - "type": ".google.cloud.eventarc.v1.GoogleApiSource" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EventarcClient", - "fullName": "google.cloud.eventarc.v1.EventarcClient" - }, - "method": { - "shortName": "UpdateGoogleApiSource", - "fullName": "google.cloud.eventarc.v1.Eventarc.UpdateGoogleApiSource", - "service": { - "shortName": "Eventarc", - "fullName": "google.cloud.eventarc.v1.Eventarc" - } - } - } - }, - { - "regionTag": "eventarc_v1_generated_Eventarc_DeleteGoogleApiSource_async", - "title": "Eventarc deleteGoogleApiSource Sample", - "origin": "API_DEFINITION", - "description": " Delete a single GoogleApiSource.", - "canonical": true, - "file": "eventarc.delete_google_api_source.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteGoogleApiSource", - "fullName": "google.cloud.eventarc.v1.Eventarc.DeleteGoogleApiSource", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EventarcClient", - "fullName": "google.cloud.eventarc.v1.EventarcClient" - }, - "method": { - "shortName": "DeleteGoogleApiSource", - "fullName": "google.cloud.eventarc.v1.Eventarc.DeleteGoogleApiSource", - "service": { - "shortName": "Eventarc", - "fullName": "google.cloud.eventarc.v1.Eventarc" - } - } - } - } - ] -} diff --git a/packages/google-cloud-filestore/samples/generated/v1/snippet_metadata_google.cloud.filestore.v1.json b/packages/google-cloud-filestore/samples/generated/v1/snippet_metadata_google.cloud.filestore.v1.json deleted file mode 100644 index 9eea67843d2a..000000000000 --- a/packages/google-cloud-filestore/samples/generated/v1/snippet_metadata_google.cloud.filestore.v1.json +++ /dev/null @@ -1,843 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-filestore", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.filestore.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "file_v1_generated_CloudFilestoreManager_ListInstances_async", - "title": "CloudFilestoreManager listInstances Sample", - "origin": "API_DEFINITION", - "description": " Lists all instances in a project for either a specified location or for all locations.", - "canonical": true, - "file": "cloud_filestore_manager.list_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListInstances", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.ListInstances", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.filestore.v1.ListInstancesResponse", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManagerClient" - }, - "method": { - "shortName": "ListInstances", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.ListInstances", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager" - } - } - } - }, - { - "regionTag": "file_v1_generated_CloudFilestoreManager_GetInstance_async", - "title": "CloudFilestoreManager getInstance Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a specific instance.", - "canonical": true, - "file": "cloud_filestore_manager.get_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetInstance", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.GetInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.filestore.v1.Instance", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManagerClient" - }, - "method": { - "shortName": "GetInstance", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.GetInstance", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager" - } - } - } - }, - { - "regionTag": "file_v1_generated_CloudFilestoreManager_CreateInstance_async", - "title": "CloudFilestoreManager createInstance Sample", - "origin": "API_DEFINITION", - "description": " Creates an instance. When creating from a backup, the capacity of the new instance needs to be equal to or larger than the capacity of the backup (and also equal to or larger than the minimum capacity of the tier).", - "canonical": true, - "file": "cloud_filestore_manager.create_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateInstance", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.CreateInstance", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "instance_id", - "type": "TYPE_STRING" - }, - { - "name": "instance", - "type": ".google.cloud.filestore.v1.Instance" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManagerClient" - }, - "method": { - "shortName": "CreateInstance", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.CreateInstance", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager" - } - } - } - }, - { - "regionTag": "file_v1_generated_CloudFilestoreManager_UpdateInstance_async", - "title": "CloudFilestoreManager updateInstance Sample", - "origin": "API_DEFINITION", - "description": " Updates the settings of a specific instance.", - "canonical": true, - "file": "cloud_filestore_manager.update_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateInstance", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.UpdateInstance", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "instance", - "type": ".google.cloud.filestore.v1.Instance" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManagerClient" - }, - "method": { - "shortName": "UpdateInstance", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.UpdateInstance", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager" - } - } - } - }, - { - "regionTag": "file_v1_generated_CloudFilestoreManager_RestoreInstance_async", - "title": "CloudFilestoreManager restoreInstance Sample", - "origin": "API_DEFINITION", - "description": " Restores an existing instance's file share from a backup. The capacity of the instance needs to be equal to or larger than the capacity of the backup (and also equal to or larger than the minimum capacity of the tier).", - "canonical": true, - "file": "cloud_filestore_manager.restore_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RestoreInstance", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.RestoreInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "file_share", - "type": "TYPE_STRING" - }, - { - "name": "source_backup", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManagerClient" - }, - "method": { - "shortName": "RestoreInstance", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.RestoreInstance", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager" - } - } - } - }, - { - "regionTag": "file_v1_generated_CloudFilestoreManager_RevertInstance_async", - "title": "CloudFilestoreManager revertInstance Sample", - "origin": "API_DEFINITION", - "description": " Revert an existing instance's file system to a specified snapshot.", - "canonical": true, - "file": "cloud_filestore_manager.revert_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RevertInstance", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.RevertInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "target_snapshot_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManagerClient" - }, - "method": { - "shortName": "RevertInstance", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.RevertInstance", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager" - } - } - } - }, - { - "regionTag": "file_v1_generated_CloudFilestoreManager_DeleteInstance_async", - "title": "CloudFilestoreManager deleteInstance Sample", - "origin": "API_DEFINITION", - "description": " Deletes an instance.", - "canonical": true, - "file": "cloud_filestore_manager.delete_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteInstance", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.DeleteInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManagerClient" - }, - "method": { - "shortName": "DeleteInstance", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.DeleteInstance", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager" - } - } - } - }, - { - "regionTag": "file_v1_generated_CloudFilestoreManager_ListSnapshots_async", - "title": "CloudFilestoreManager listSnapshots Sample", - "origin": "API_DEFINITION", - "description": " Lists all snapshots in a project for either a specified location or for all locations.", - "canonical": true, - "file": "cloud_filestore_manager.list_snapshots.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSnapshots", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.ListSnapshots", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.filestore.v1.ListSnapshotsResponse", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManagerClient" - }, - "method": { - "shortName": "ListSnapshots", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.ListSnapshots", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager" - } - } - } - }, - { - "regionTag": "file_v1_generated_CloudFilestoreManager_GetSnapshot_async", - "title": "CloudFilestoreManager getSnapshot Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a specific snapshot.", - "canonical": true, - "file": "cloud_filestore_manager.get_snapshot.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSnapshot", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.GetSnapshot", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.filestore.v1.Snapshot", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManagerClient" - }, - "method": { - "shortName": "GetSnapshot", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.GetSnapshot", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager" - } - } - } - }, - { - "regionTag": "file_v1_generated_CloudFilestoreManager_CreateSnapshot_async", - "title": "CloudFilestoreManager createSnapshot Sample", - "origin": "API_DEFINITION", - "description": " Creates a snapshot.", - "canonical": true, - "file": "cloud_filestore_manager.create_snapshot.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSnapshot", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.CreateSnapshot", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "snapshot_id", - "type": "TYPE_STRING" - }, - { - "name": "snapshot", - "type": ".google.cloud.filestore.v1.Snapshot" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManagerClient" - }, - "method": { - "shortName": "CreateSnapshot", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.CreateSnapshot", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager" - } - } - } - }, - { - "regionTag": "file_v1_generated_CloudFilestoreManager_DeleteSnapshot_async", - "title": "CloudFilestoreManager deleteSnapshot Sample", - "origin": "API_DEFINITION", - "description": " Deletes a snapshot.", - "canonical": true, - "file": "cloud_filestore_manager.delete_snapshot.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSnapshot", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.DeleteSnapshot", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManagerClient" - }, - "method": { - "shortName": "DeleteSnapshot", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.DeleteSnapshot", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager" - } - } - } - }, - { - "regionTag": "file_v1_generated_CloudFilestoreManager_UpdateSnapshot_async", - "title": "CloudFilestoreManager updateSnapshot Sample", - "origin": "API_DEFINITION", - "description": " Updates the settings of a specific snapshot.", - "canonical": true, - "file": "cloud_filestore_manager.update_snapshot.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSnapshot", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.UpdateSnapshot", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "snapshot", - "type": ".google.cloud.filestore.v1.Snapshot" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManagerClient" - }, - "method": { - "shortName": "UpdateSnapshot", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.UpdateSnapshot", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager" - } - } - } - }, - { - "regionTag": "file_v1_generated_CloudFilestoreManager_ListBackups_async", - "title": "CloudFilestoreManager listBackups Sample", - "origin": "API_DEFINITION", - "description": " Lists all backups in a project for either a specified location or for all locations.", - "canonical": true, - "file": "cloud_filestore_manager.list_backups.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBackups", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.ListBackups", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.filestore.v1.ListBackupsResponse", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManagerClient" - }, - "method": { - "shortName": "ListBackups", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.ListBackups", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager" - } - } - } - }, - { - "regionTag": "file_v1_generated_CloudFilestoreManager_GetBackup_async", - "title": "CloudFilestoreManager getBackup Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a specific backup.", - "canonical": true, - "file": "cloud_filestore_manager.get_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBackup", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.GetBackup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.filestore.v1.Backup", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManagerClient" - }, - "method": { - "shortName": "GetBackup", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.GetBackup", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager" - } - } - } - }, - { - "regionTag": "file_v1_generated_CloudFilestoreManager_CreateBackup_async", - "title": "CloudFilestoreManager createBackup Sample", - "origin": "API_DEFINITION", - "description": " Creates a backup.", - "canonical": true, - "file": "cloud_filestore_manager.create_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateBackup", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.CreateBackup", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "backup", - "type": ".google.cloud.filestore.v1.Backup" - }, - { - "name": "backup_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManagerClient" - }, - "method": { - "shortName": "CreateBackup", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.CreateBackup", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager" - } - } - } - }, - { - "regionTag": "file_v1_generated_CloudFilestoreManager_DeleteBackup_async", - "title": "CloudFilestoreManager deleteBackup Sample", - "origin": "API_DEFINITION", - "description": " Deletes a backup.", - "canonical": true, - "file": "cloud_filestore_manager.delete_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteBackup", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.DeleteBackup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManagerClient" - }, - "method": { - "shortName": "DeleteBackup", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.DeleteBackup", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager" - } - } - } - }, - { - "regionTag": "file_v1_generated_CloudFilestoreManager_UpdateBackup_async", - "title": "CloudFilestoreManager updateBackup Sample", - "origin": "API_DEFINITION", - "description": " Updates the settings of a specific backup.", - "canonical": true, - "file": "cloud_filestore_manager.update_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateBackup", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.UpdateBackup", - "async": true, - "parameters": [ - { - "name": "backup", - "type": ".google.cloud.filestore.v1.Backup" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManagerClient" - }, - "method": { - "shortName": "UpdateBackup", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.UpdateBackup", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager" - } - } - } - }, - { - "regionTag": "file_v1_generated_CloudFilestoreManager_PromoteReplica_async", - "title": "CloudFilestoreManager promoteReplica Sample", - "origin": "API_DEFINITION", - "description": " Promote the standby instance (replica).", - "canonical": true, - "file": "cloud_filestore_manager.promote_replica.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PromoteReplica", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.PromoteReplica", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "peer_instance", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManagerClient" - }, - "method": { - "shortName": "PromoteReplica", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager.PromoteReplica", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1.CloudFilestoreManager" - } - } - } - } - ] -} diff --git a/packages/google-cloud-filestore/samples/generated/v1beta1/snippet_metadata_google.cloud.filestore.v1beta1.json b/packages/google-cloud-filestore/samples/generated/v1beta1/snippet_metadata_google.cloud.filestore.v1beta1.json deleted file mode 100644 index 72a207f697be..000000000000 --- a/packages/google-cloud-filestore/samples/generated/v1beta1/snippet_metadata_google.cloud.filestore.v1beta1.json +++ /dev/null @@ -1,1075 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-filestore", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.filestore.v1beta1", - "version": "v1beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "file_v1beta1_generated_CloudFilestoreManager_ListInstances_async", - "title": "CloudFilestoreManager listInstances Sample", - "origin": "API_DEFINITION", - "description": " Lists all instances in a project for either a specified location or for all locations.", - "canonical": true, - "file": "cloud_filestore_manager.list_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListInstances", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.ListInstances", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.filestore.v1beta1.ListInstancesResponse", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManagerClient" - }, - "method": { - "shortName": "ListInstances", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.ListInstances", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager" - } - } - } - }, - { - "regionTag": "file_v1beta1_generated_CloudFilestoreManager_GetInstance_async", - "title": "CloudFilestoreManager getInstance Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a specific instance.", - "canonical": true, - "file": "cloud_filestore_manager.get_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetInstance", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.GetInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.filestore.v1beta1.Instance", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManagerClient" - }, - "method": { - "shortName": "GetInstance", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.GetInstance", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager" - } - } - } - }, - { - "regionTag": "file_v1beta1_generated_CloudFilestoreManager_CreateInstance_async", - "title": "CloudFilestoreManager createInstance Sample", - "origin": "API_DEFINITION", - "description": " Creates an instance. When creating from a backup, the capacity of the new instance needs to be equal to or larger than the capacity of the backup (and also equal to or larger than the minimum capacity of the tier).", - "canonical": true, - "file": "cloud_filestore_manager.create_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateInstance", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.CreateInstance", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "instance_id", - "type": "TYPE_STRING" - }, - { - "name": "instance", - "type": ".google.cloud.filestore.v1beta1.Instance" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManagerClient" - }, - "method": { - "shortName": "CreateInstance", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.CreateInstance", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager" - } - } - } - }, - { - "regionTag": "file_v1beta1_generated_CloudFilestoreManager_UpdateInstance_async", - "title": "CloudFilestoreManager updateInstance Sample", - "origin": "API_DEFINITION", - "description": " Updates the settings of a specific instance.", - "canonical": true, - "file": "cloud_filestore_manager.update_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateInstance", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.UpdateInstance", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "instance", - "type": ".google.cloud.filestore.v1beta1.Instance" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManagerClient" - }, - "method": { - "shortName": "UpdateInstance", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.UpdateInstance", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager" - } - } - } - }, - { - "regionTag": "file_v1beta1_generated_CloudFilestoreManager_RestoreInstance_async", - "title": "CloudFilestoreManager restoreInstance Sample", - "origin": "API_DEFINITION", - "description": " Restores an existing instance's file share from a backup. The capacity of the instance needs to be equal to or larger than the capacity of the backup (and also equal to or larger than the minimum capacity of the tier).", - "canonical": true, - "file": "cloud_filestore_manager.restore_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RestoreInstance", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.RestoreInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "file_share", - "type": "TYPE_STRING" - }, - { - "name": "source_snapshot", - "type": "TYPE_STRING" - }, - { - "name": "source_backup", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManagerClient" - }, - "method": { - "shortName": "RestoreInstance", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.RestoreInstance", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager" - } - } - } - }, - { - "regionTag": "file_v1beta1_generated_CloudFilestoreManager_RevertInstance_async", - "title": "CloudFilestoreManager revertInstance Sample", - "origin": "API_DEFINITION", - "description": " Revert an existing instance's file system to a specified snapshot.", - "canonical": true, - "file": "cloud_filestore_manager.revert_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RevertInstance", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.RevertInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "target_snapshot_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManagerClient" - }, - "method": { - "shortName": "RevertInstance", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.RevertInstance", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager" - } - } - } - }, - { - "regionTag": "file_v1beta1_generated_CloudFilestoreManager_PromoteReplica_async", - "title": "CloudFilestoreManager promoteReplica Sample", - "origin": "API_DEFINITION", - "description": " Promote the standby instance (replica).", - "canonical": true, - "file": "cloud_filestore_manager.promote_replica.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PromoteReplica", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.PromoteReplica", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "peer_instance", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManagerClient" - }, - "method": { - "shortName": "PromoteReplica", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.PromoteReplica", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager" - } - } - } - }, - { - "regionTag": "file_v1beta1_generated_CloudFilestoreManager_DeleteInstance_async", - "title": "CloudFilestoreManager deleteInstance Sample", - "origin": "API_DEFINITION", - "description": " Deletes an instance.", - "canonical": true, - "file": "cloud_filestore_manager.delete_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteInstance", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.DeleteInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManagerClient" - }, - "method": { - "shortName": "DeleteInstance", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.DeleteInstance", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager" - } - } - } - }, - { - "regionTag": "file_v1beta1_generated_CloudFilestoreManager_ListSnapshots_async", - "title": "CloudFilestoreManager listSnapshots Sample", - "origin": "API_DEFINITION", - "description": " Lists all snapshots in a project for either a specified location or for all locations.", - "canonical": true, - "file": "cloud_filestore_manager.list_snapshots.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSnapshots", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.ListSnapshots", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.filestore.v1beta1.ListSnapshotsResponse", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManagerClient" - }, - "method": { - "shortName": "ListSnapshots", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.ListSnapshots", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager" - } - } - } - }, - { - "regionTag": "file_v1beta1_generated_CloudFilestoreManager_GetSnapshot_async", - "title": "CloudFilestoreManager getSnapshot Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a specific snapshot.", - "canonical": true, - "file": "cloud_filestore_manager.get_snapshot.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSnapshot", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.GetSnapshot", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.filestore.v1beta1.Snapshot", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManagerClient" - }, - "method": { - "shortName": "GetSnapshot", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.GetSnapshot", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager" - } - } - } - }, - { - "regionTag": "file_v1beta1_generated_CloudFilestoreManager_CreateSnapshot_async", - "title": "CloudFilestoreManager createSnapshot Sample", - "origin": "API_DEFINITION", - "description": " Creates a snapshot.", - "canonical": true, - "file": "cloud_filestore_manager.create_snapshot.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSnapshot", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.CreateSnapshot", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "snapshot_id", - "type": "TYPE_STRING" - }, - { - "name": "snapshot", - "type": ".google.cloud.filestore.v1beta1.Snapshot" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManagerClient" - }, - "method": { - "shortName": "CreateSnapshot", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.CreateSnapshot", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager" - } - } - } - }, - { - "regionTag": "file_v1beta1_generated_CloudFilestoreManager_DeleteSnapshot_async", - "title": "CloudFilestoreManager deleteSnapshot Sample", - "origin": "API_DEFINITION", - "description": " Deletes a snapshot.", - "canonical": true, - "file": "cloud_filestore_manager.delete_snapshot.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSnapshot", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.DeleteSnapshot", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManagerClient" - }, - "method": { - "shortName": "DeleteSnapshot", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.DeleteSnapshot", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager" - } - } - } - }, - { - "regionTag": "file_v1beta1_generated_CloudFilestoreManager_UpdateSnapshot_async", - "title": "CloudFilestoreManager updateSnapshot Sample", - "origin": "API_DEFINITION", - "description": " Updates the settings of a specific snapshot.", - "canonical": true, - "file": "cloud_filestore_manager.update_snapshot.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSnapshot", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.UpdateSnapshot", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "snapshot", - "type": ".google.cloud.filestore.v1beta1.Snapshot" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManagerClient" - }, - "method": { - "shortName": "UpdateSnapshot", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.UpdateSnapshot", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager" - } - } - } - }, - { - "regionTag": "file_v1beta1_generated_CloudFilestoreManager_ListBackups_async", - "title": "CloudFilestoreManager listBackups Sample", - "origin": "API_DEFINITION", - "description": " Lists all backups in a project for either a specified location or for all locations.", - "canonical": true, - "file": "cloud_filestore_manager.list_backups.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBackups", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.ListBackups", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.filestore.v1beta1.ListBackupsResponse", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManagerClient" - }, - "method": { - "shortName": "ListBackups", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.ListBackups", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager" - } - } - } - }, - { - "regionTag": "file_v1beta1_generated_CloudFilestoreManager_GetBackup_async", - "title": "CloudFilestoreManager getBackup Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a specific backup.", - "canonical": true, - "file": "cloud_filestore_manager.get_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBackup", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.GetBackup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.filestore.v1beta1.Backup", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManagerClient" - }, - "method": { - "shortName": "GetBackup", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.GetBackup", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager" - } - } - } - }, - { - "regionTag": "file_v1beta1_generated_CloudFilestoreManager_CreateBackup_async", - "title": "CloudFilestoreManager createBackup Sample", - "origin": "API_DEFINITION", - "description": " Creates a backup.", - "canonical": true, - "file": "cloud_filestore_manager.create_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateBackup", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.CreateBackup", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "backup", - "type": ".google.cloud.filestore.v1beta1.Backup" - }, - { - "name": "backup_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManagerClient" - }, - "method": { - "shortName": "CreateBackup", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.CreateBackup", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager" - } - } - } - }, - { - "regionTag": "file_v1beta1_generated_CloudFilestoreManager_DeleteBackup_async", - "title": "CloudFilestoreManager deleteBackup Sample", - "origin": "API_DEFINITION", - "description": " Deletes a backup.", - "canonical": true, - "file": "cloud_filestore_manager.delete_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteBackup", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.DeleteBackup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManagerClient" - }, - "method": { - "shortName": "DeleteBackup", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.DeleteBackup", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager" - } - } - } - }, - { - "regionTag": "file_v1beta1_generated_CloudFilestoreManager_UpdateBackup_async", - "title": "CloudFilestoreManager updateBackup Sample", - "origin": "API_DEFINITION", - "description": " Updates the settings of a specific backup.", - "canonical": true, - "file": "cloud_filestore_manager.update_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateBackup", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.UpdateBackup", - "async": true, - "parameters": [ - { - "name": "backup", - "type": ".google.cloud.filestore.v1beta1.Backup" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManagerClient" - }, - "method": { - "shortName": "UpdateBackup", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.UpdateBackup", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager" - } - } - } - }, - { - "regionTag": "file_v1beta1_generated_CloudFilestoreManager_ListShares_async", - "title": "CloudFilestoreManager listShares Sample", - "origin": "API_DEFINITION", - "description": " Lists all shares for a specified instance.", - "canonical": true, - "file": "cloud_filestore_manager.list_shares.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListShares", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.ListShares", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.filestore.v1beta1.ListSharesResponse", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManagerClient" - }, - "method": { - "shortName": "ListShares", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.ListShares", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager" - } - } - } - }, - { - "regionTag": "file_v1beta1_generated_CloudFilestoreManager_GetShare_async", - "title": "CloudFilestoreManager getShare Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a specific share.", - "canonical": true, - "file": "cloud_filestore_manager.get_share.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetShare", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.GetShare", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.filestore.v1beta1.Share", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManagerClient" - }, - "method": { - "shortName": "GetShare", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.GetShare", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager" - } - } - } - }, - { - "regionTag": "file_v1beta1_generated_CloudFilestoreManager_CreateShare_async", - "title": "CloudFilestoreManager createShare Sample", - "origin": "API_DEFINITION", - "description": " Creates a share.", - "canonical": true, - "file": "cloud_filestore_manager.create_share.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateShare", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.CreateShare", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "share_id", - "type": "TYPE_STRING" - }, - { - "name": "share", - "type": ".google.cloud.filestore.v1beta1.Share" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManagerClient" - }, - "method": { - "shortName": "CreateShare", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.CreateShare", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager" - } - } - } - }, - { - "regionTag": "file_v1beta1_generated_CloudFilestoreManager_DeleteShare_async", - "title": "CloudFilestoreManager deleteShare Sample", - "origin": "API_DEFINITION", - "description": " Deletes a share.", - "canonical": true, - "file": "cloud_filestore_manager.delete_share.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteShare", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.DeleteShare", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManagerClient" - }, - "method": { - "shortName": "DeleteShare", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.DeleteShare", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager" - } - } - } - }, - { - "regionTag": "file_v1beta1_generated_CloudFilestoreManager_UpdateShare_async", - "title": "CloudFilestoreManager updateShare Sample", - "origin": "API_DEFINITION", - "description": " Updates the settings of a specific share.", - "canonical": true, - "file": "cloud_filestore_manager.update_share.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateShare", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.UpdateShare", - "async": true, - "parameters": [ - { - "name": "share", - "type": ".google.cloud.filestore.v1beta1.Share" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudFilestoreManagerClient", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManagerClient" - }, - "method": { - "shortName": "UpdateShare", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager.UpdateShare", - "service": { - "shortName": "CloudFilestoreManager", - "fullName": "google.cloud.filestore.v1beta1.CloudFilestoreManager" - } - } - } - } - ] -} diff --git a/packages/google-cloud-financialservices/samples/generated/v1/snippet_metadata_google.cloud.financialservices.v1.json b/packages/google-cloud-financialservices/samples/generated/v1/snippet_metadata_google.cloud.financialservices.v1.json deleted file mode 100644 index 5545b1acbf08..000000000000 --- a/packages/google-cloud-financialservices/samples/generated/v1/snippet_metadata_google.cloud.financialservices.v1.json +++ /dev/null @@ -1,1831 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-financialservices", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.financialservices.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "financialservices_v1_generated_AML_ListInstances_async", - "title": "AML listInstances Sample", - "origin": "API_DEFINITION", - "description": " Lists instances.", - "canonical": true, - "file": "a_m_l.list_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListInstances", - "fullName": "google.cloud.financialservices.v1.AML.ListInstances", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.financialservices.v1.ListInstancesResponse", - "client": { - "shortName": "AMLClient", - "fullName": "google.cloud.financialservices.v1.AMLClient" - }, - "method": { - "shortName": "ListInstances", - "fullName": "google.cloud.financialservices.v1.AML.ListInstances", - "service": { - "shortName": "AML", - "fullName": "google.cloud.financialservices.v1.AML" - } - } - } - }, - { - "regionTag": "financialservices_v1_generated_AML_GetInstance_async", - "title": "AML getInstance Sample", - "origin": "API_DEFINITION", - "description": " Gets an instance.", - "canonical": true, - "file": "a_m_l.get_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetInstance", - "fullName": "google.cloud.financialservices.v1.AML.GetInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.financialservices.v1.Instance", - "client": { - "shortName": "AMLClient", - "fullName": "google.cloud.financialservices.v1.AMLClient" - }, - "method": { - "shortName": "GetInstance", - "fullName": "google.cloud.financialservices.v1.AML.GetInstance", - "service": { - "shortName": "AML", - "fullName": "google.cloud.financialservices.v1.AML" - } - } - } - }, - { - "regionTag": "financialservices_v1_generated_AML_CreateInstance_async", - "title": "AML createInstance Sample", - "origin": "API_DEFINITION", - "description": " Creates an instance.", - "canonical": true, - "file": "a_m_l.create_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateInstance", - "fullName": "google.cloud.financialservices.v1.AML.CreateInstance", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "instance_id", - "type": "TYPE_STRING" - }, - { - "name": "instance", - "type": ".google.cloud.financialservices.v1.Instance" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AMLClient", - "fullName": "google.cloud.financialservices.v1.AMLClient" - }, - "method": { - "shortName": "CreateInstance", - "fullName": "google.cloud.financialservices.v1.AML.CreateInstance", - "service": { - "shortName": "AML", - "fullName": "google.cloud.financialservices.v1.AML" - } - } - } - }, - { - "regionTag": "financialservices_v1_generated_AML_UpdateInstance_async", - "title": "AML updateInstance Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Instance.", - "canonical": true, - "file": "a_m_l.update_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateInstance", - "fullName": "google.cloud.financialservices.v1.AML.UpdateInstance", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "instance", - "type": ".google.cloud.financialservices.v1.Instance" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AMLClient", - "fullName": "google.cloud.financialservices.v1.AMLClient" - }, - "method": { - "shortName": "UpdateInstance", - "fullName": "google.cloud.financialservices.v1.AML.UpdateInstance", - "service": { - "shortName": "AML", - "fullName": "google.cloud.financialservices.v1.AML" - } - } - } - }, - { - "regionTag": "financialservices_v1_generated_AML_DeleteInstance_async", - "title": "AML deleteInstance Sample", - "origin": "API_DEFINITION", - "description": " Deletes an instance.", - "canonical": true, - "file": "a_m_l.delete_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteInstance", - "fullName": "google.cloud.financialservices.v1.AML.DeleteInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AMLClient", - "fullName": "google.cloud.financialservices.v1.AMLClient" - }, - "method": { - "shortName": "DeleteInstance", - "fullName": "google.cloud.financialservices.v1.AML.DeleteInstance", - "service": { - "shortName": "AML", - "fullName": "google.cloud.financialservices.v1.AML" - } - } - } - }, - { - "regionTag": "financialservices_v1_generated_AML_ImportRegisteredParties_async", - "title": "AML importRegisteredParties Sample", - "origin": "API_DEFINITION", - "description": " Imports the list of registered parties. See [Create and manage instances](https://cloud.google.com/financial-services/anti-money-laundering/docs/create-and-manage-instances#import-registered-parties) for information on the input schema and response for this method.", - "canonical": true, - "file": "a_m_l.import_registered_parties.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportRegisteredParties", - "fullName": "google.cloud.financialservices.v1.AML.ImportRegisteredParties", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "party_tables", - "type": "TYPE_STRING[]" - }, - { - "name": "mode", - "type": ".google.cloud.financialservices.v1.ImportRegisteredPartiesRequest.UpdateMode" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "line_of_business", - "type": ".google.cloud.financialservices.v1.LineOfBusiness" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AMLClient", - "fullName": "google.cloud.financialservices.v1.AMLClient" - }, - "method": { - "shortName": "ImportRegisteredParties", - "fullName": "google.cloud.financialservices.v1.AML.ImportRegisteredParties", - "service": { - "shortName": "AML", - "fullName": "google.cloud.financialservices.v1.AML" - } - } - } - }, - { - "regionTag": "financialservices_v1_generated_AML_ExportRegisteredParties_async", - "title": "AML exportRegisteredParties Sample", - "origin": "API_DEFINITION", - "description": " Exports the list of registered parties. See [Create and manage instances](https://cloud.google.com/financial-services/anti-money-laundering/docs/create-and-manage-instances#export-registered-parties) for information on the output schema for this method.", - "canonical": true, - "file": "a_m_l.export_registered_parties.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportRegisteredParties", - "fullName": "google.cloud.financialservices.v1.AML.ExportRegisteredParties", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "dataset", - "type": ".google.cloud.financialservices.v1.BigQueryDestination" - }, - { - "name": "line_of_business", - "type": ".google.cloud.financialservices.v1.LineOfBusiness" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AMLClient", - "fullName": "google.cloud.financialservices.v1.AMLClient" - }, - "method": { - "shortName": "ExportRegisteredParties", - "fullName": "google.cloud.financialservices.v1.AML.ExportRegisteredParties", - "service": { - "shortName": "AML", - "fullName": "google.cloud.financialservices.v1.AML" - } - } - } - }, - { - "regionTag": "financialservices_v1_generated_AML_ListDatasets_async", - "title": "AML listDatasets Sample", - "origin": "API_DEFINITION", - "description": " Lists datasets.", - "canonical": true, - "file": "a_m_l.list_datasets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDatasets", - "fullName": "google.cloud.financialservices.v1.AML.ListDatasets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.financialservices.v1.ListDatasetsResponse", - "client": { - "shortName": "AMLClient", - "fullName": "google.cloud.financialservices.v1.AMLClient" - }, - "method": { - "shortName": "ListDatasets", - "fullName": "google.cloud.financialservices.v1.AML.ListDatasets", - "service": { - "shortName": "AML", - "fullName": "google.cloud.financialservices.v1.AML" - } - } - } - }, - { - "regionTag": "financialservices_v1_generated_AML_GetDataset_async", - "title": "AML getDataset Sample", - "origin": "API_DEFINITION", - "description": " Gets a dataset.", - "canonical": true, - "file": "a_m_l.get_dataset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDataset", - "fullName": "google.cloud.financialservices.v1.AML.GetDataset", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.financialservices.v1.Dataset", - "client": { - "shortName": "AMLClient", - "fullName": "google.cloud.financialservices.v1.AMLClient" - }, - "method": { - "shortName": "GetDataset", - "fullName": "google.cloud.financialservices.v1.AML.GetDataset", - "service": { - "shortName": "AML", - "fullName": "google.cloud.financialservices.v1.AML" - } - } - } - }, - { - "regionTag": "financialservices_v1_generated_AML_CreateDataset_async", - "title": "AML createDataset Sample", - "origin": "API_DEFINITION", - "description": " Creates a dataset.", - "canonical": true, - "file": "a_m_l.create_dataset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDataset", - "fullName": "google.cloud.financialservices.v1.AML.CreateDataset", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "dataset_id", - "type": "TYPE_STRING" - }, - { - "name": "dataset", - "type": ".google.cloud.financialservices.v1.Dataset" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AMLClient", - "fullName": "google.cloud.financialservices.v1.AMLClient" - }, - "method": { - "shortName": "CreateDataset", - "fullName": "google.cloud.financialservices.v1.AML.CreateDataset", - "service": { - "shortName": "AML", - "fullName": "google.cloud.financialservices.v1.AML" - } - } - } - }, - { - "regionTag": "financialservices_v1_generated_AML_UpdateDataset_async", - "title": "AML updateDataset Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Dataset.", - "canonical": true, - "file": "a_m_l.update_dataset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDataset", - "fullName": "google.cloud.financialservices.v1.AML.UpdateDataset", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "dataset", - "type": ".google.cloud.financialservices.v1.Dataset" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AMLClient", - "fullName": "google.cloud.financialservices.v1.AMLClient" - }, - "method": { - "shortName": "UpdateDataset", - "fullName": "google.cloud.financialservices.v1.AML.UpdateDataset", - "service": { - "shortName": "AML", - "fullName": "google.cloud.financialservices.v1.AML" - } - } - } - }, - { - "regionTag": "financialservices_v1_generated_AML_DeleteDataset_async", - "title": "AML deleteDataset Sample", - "origin": "API_DEFINITION", - "description": " Deletes a dataset.", - "canonical": true, - "file": "a_m_l.delete_dataset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDataset", - "fullName": "google.cloud.financialservices.v1.AML.DeleteDataset", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AMLClient", - "fullName": "google.cloud.financialservices.v1.AMLClient" - }, - "method": { - "shortName": "DeleteDataset", - "fullName": "google.cloud.financialservices.v1.AML.DeleteDataset", - "service": { - "shortName": "AML", - "fullName": "google.cloud.financialservices.v1.AML" - } - } - } - }, - { - "regionTag": "financialservices_v1_generated_AML_ListModels_async", - "title": "AML listModels Sample", - "origin": "API_DEFINITION", - "description": " Lists models.", - "canonical": true, - "file": "a_m_l.list_models.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListModels", - "fullName": "google.cloud.financialservices.v1.AML.ListModels", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.financialservices.v1.ListModelsResponse", - "client": { - "shortName": "AMLClient", - "fullName": "google.cloud.financialservices.v1.AMLClient" - }, - "method": { - "shortName": "ListModels", - "fullName": "google.cloud.financialservices.v1.AML.ListModels", - "service": { - "shortName": "AML", - "fullName": "google.cloud.financialservices.v1.AML" - } - } - } - }, - { - "regionTag": "financialservices_v1_generated_AML_GetModel_async", - "title": "AML getModel Sample", - "origin": "API_DEFINITION", - "description": " Gets a model.", - "canonical": true, - "file": "a_m_l.get_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetModel", - "fullName": "google.cloud.financialservices.v1.AML.GetModel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.financialservices.v1.Model", - "client": { - "shortName": "AMLClient", - "fullName": "google.cloud.financialservices.v1.AMLClient" - }, - "method": { - "shortName": "GetModel", - "fullName": "google.cloud.financialservices.v1.AML.GetModel", - "service": { - "shortName": "AML", - "fullName": "google.cloud.financialservices.v1.AML" - } - } - } - }, - { - "regionTag": "financialservices_v1_generated_AML_CreateModel_async", - "title": "AML createModel Sample", - "origin": "API_DEFINITION", - "description": " Creates a model.", - "canonical": true, - "file": "a_m_l.create_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateModel", - "fullName": "google.cloud.financialservices.v1.AML.CreateModel", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "model_id", - "type": "TYPE_STRING" - }, - { - "name": "model", - "type": ".google.cloud.financialservices.v1.Model" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AMLClient", - "fullName": "google.cloud.financialservices.v1.AMLClient" - }, - "method": { - "shortName": "CreateModel", - "fullName": "google.cloud.financialservices.v1.AML.CreateModel", - "service": { - "shortName": "AML", - "fullName": "google.cloud.financialservices.v1.AML" - } - } - } - }, - { - "regionTag": "financialservices_v1_generated_AML_UpdateModel_async", - "title": "AML updateModel Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Model.", - "canonical": true, - "file": "a_m_l.update_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateModel", - "fullName": "google.cloud.financialservices.v1.AML.UpdateModel", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "model", - "type": ".google.cloud.financialservices.v1.Model" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AMLClient", - "fullName": "google.cloud.financialservices.v1.AMLClient" - }, - "method": { - "shortName": "UpdateModel", - "fullName": "google.cloud.financialservices.v1.AML.UpdateModel", - "service": { - "shortName": "AML", - "fullName": "google.cloud.financialservices.v1.AML" - } - } - } - }, - { - "regionTag": "financialservices_v1_generated_AML_ExportModelMetadata_async", - "title": "AML exportModelMetadata Sample", - "origin": "API_DEFINITION", - "description": " Export governance information for a Model resource. For information on the exported fields, see [AML output data model](https://cloud.google.com/financial-services/anti-money-laundering/docs/reference/schemas/aml-output-data-model#model).", - "canonical": true, - "file": "a_m_l.export_model_metadata.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportModelMetadata", - "fullName": "google.cloud.financialservices.v1.AML.ExportModelMetadata", - "async": true, - "parameters": [ - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "structured_metadata_destination", - "type": ".google.cloud.financialservices.v1.BigQueryDestination" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AMLClient", - "fullName": "google.cloud.financialservices.v1.AMLClient" - }, - "method": { - "shortName": "ExportModelMetadata", - "fullName": "google.cloud.financialservices.v1.AML.ExportModelMetadata", - "service": { - "shortName": "AML", - "fullName": "google.cloud.financialservices.v1.AML" - } - } - } - }, - { - "regionTag": "financialservices_v1_generated_AML_DeleteModel_async", - "title": "AML deleteModel Sample", - "origin": "API_DEFINITION", - "description": " Deletes a model.", - "canonical": true, - "file": "a_m_l.delete_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteModel", - "fullName": "google.cloud.financialservices.v1.AML.DeleteModel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AMLClient", - "fullName": "google.cloud.financialservices.v1.AMLClient" - }, - "method": { - "shortName": "DeleteModel", - "fullName": "google.cloud.financialservices.v1.AML.DeleteModel", - "service": { - "shortName": "AML", - "fullName": "google.cloud.financialservices.v1.AML" - } - } - } - }, - { - "regionTag": "financialservices_v1_generated_AML_ListEngineConfigs_async", - "title": "AML listEngineConfigs Sample", - "origin": "API_DEFINITION", - "description": " Lists engine configs.", - "canonical": true, - "file": "a_m_l.list_engine_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEngineConfigs", - "fullName": "google.cloud.financialservices.v1.AML.ListEngineConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.financialservices.v1.ListEngineConfigsResponse", - "client": { - "shortName": "AMLClient", - "fullName": "google.cloud.financialservices.v1.AMLClient" - }, - "method": { - "shortName": "ListEngineConfigs", - "fullName": "google.cloud.financialservices.v1.AML.ListEngineConfigs", - "service": { - "shortName": "AML", - "fullName": "google.cloud.financialservices.v1.AML" - } - } - } - }, - { - "regionTag": "financialservices_v1_generated_AML_GetEngineConfig_async", - "title": "AML getEngineConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets an engine config.", - "canonical": true, - "file": "a_m_l.get_engine_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEngineConfig", - "fullName": "google.cloud.financialservices.v1.AML.GetEngineConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.financialservices.v1.EngineConfig", - "client": { - "shortName": "AMLClient", - "fullName": "google.cloud.financialservices.v1.AMLClient" - }, - "method": { - "shortName": "GetEngineConfig", - "fullName": "google.cloud.financialservices.v1.AML.GetEngineConfig", - "service": { - "shortName": "AML", - "fullName": "google.cloud.financialservices.v1.AML" - } - } - } - }, - { - "regionTag": "financialservices_v1_generated_AML_CreateEngineConfig_async", - "title": "AML createEngineConfig Sample", - "origin": "API_DEFINITION", - "description": " Creates an engine config.", - "canonical": true, - "file": "a_m_l.create_engine_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateEngineConfig", - "fullName": "google.cloud.financialservices.v1.AML.CreateEngineConfig", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "engine_config_id", - "type": "TYPE_STRING" - }, - { - "name": "engine_config", - "type": ".google.cloud.financialservices.v1.EngineConfig" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AMLClient", - "fullName": "google.cloud.financialservices.v1.AMLClient" - }, - "method": { - "shortName": "CreateEngineConfig", - "fullName": "google.cloud.financialservices.v1.AML.CreateEngineConfig", - "service": { - "shortName": "AML", - "fullName": "google.cloud.financialservices.v1.AML" - } - } - } - }, - { - "regionTag": "financialservices_v1_generated_AML_UpdateEngineConfig_async", - "title": "AML updateEngineConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single EngineConfig.", - "canonical": true, - "file": "a_m_l.update_engine_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateEngineConfig", - "fullName": "google.cloud.financialservices.v1.AML.UpdateEngineConfig", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "engine_config", - "type": ".google.cloud.financialservices.v1.EngineConfig" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AMLClient", - "fullName": "google.cloud.financialservices.v1.AMLClient" - }, - "method": { - "shortName": "UpdateEngineConfig", - "fullName": "google.cloud.financialservices.v1.AML.UpdateEngineConfig", - "service": { - "shortName": "AML", - "fullName": "google.cloud.financialservices.v1.AML" - } - } - } - }, - { - "regionTag": "financialservices_v1_generated_AML_ExportEngineConfigMetadata_async", - "title": "AML exportEngineConfigMetadata Sample", - "origin": "API_DEFINITION", - "description": " Export governance information for an EngineConfig resource. For information on the exported fields, see [AML output data model](https://cloud.google.com/financial-services/anti-money-laundering/docs/reference/schemas/aml-output-data-model#engine-config).", - "canonical": true, - "file": "a_m_l.export_engine_config_metadata.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportEngineConfigMetadata", - "fullName": "google.cloud.financialservices.v1.AML.ExportEngineConfigMetadata", - "async": true, - "parameters": [ - { - "name": "engine_config", - "type": "TYPE_STRING" - }, - { - "name": "structured_metadata_destination", - "type": ".google.cloud.financialservices.v1.BigQueryDestination" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AMLClient", - "fullName": "google.cloud.financialservices.v1.AMLClient" - }, - "method": { - "shortName": "ExportEngineConfigMetadata", - "fullName": "google.cloud.financialservices.v1.AML.ExportEngineConfigMetadata", - "service": { - "shortName": "AML", - "fullName": "google.cloud.financialservices.v1.AML" - } - } - } - }, - { - "regionTag": "financialservices_v1_generated_AML_DeleteEngineConfig_async", - "title": "AML deleteEngineConfig Sample", - "origin": "API_DEFINITION", - "description": " Deletes an engine config.", - "canonical": true, - "file": "a_m_l.delete_engine_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteEngineConfig", - "fullName": "google.cloud.financialservices.v1.AML.DeleteEngineConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AMLClient", - "fullName": "google.cloud.financialservices.v1.AMLClient" - }, - "method": { - "shortName": "DeleteEngineConfig", - "fullName": "google.cloud.financialservices.v1.AML.DeleteEngineConfig", - "service": { - "shortName": "AML", - "fullName": "google.cloud.financialservices.v1.AML" - } - } - } - }, - { - "regionTag": "financialservices_v1_generated_AML_GetEngineVersion_async", - "title": "AML getEngineVersion Sample", - "origin": "API_DEFINITION", - "description": " Gets a single EngineVersion.", - "canonical": true, - "file": "a_m_l.get_engine_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEngineVersion", - "fullName": "google.cloud.financialservices.v1.AML.GetEngineVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.financialservices.v1.EngineVersion", - "client": { - "shortName": "AMLClient", - "fullName": "google.cloud.financialservices.v1.AMLClient" - }, - "method": { - "shortName": "GetEngineVersion", - "fullName": "google.cloud.financialservices.v1.AML.GetEngineVersion", - "service": { - "shortName": "AML", - "fullName": "google.cloud.financialservices.v1.AML" - } - } - } - }, - { - "regionTag": "financialservices_v1_generated_AML_ListEngineVersions_async", - "title": "AML listEngineVersions Sample", - "origin": "API_DEFINITION", - "description": " Lists EngineVersions for given location.", - "canonical": true, - "file": "a_m_l.list_engine_versions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEngineVersions", - "fullName": "google.cloud.financialservices.v1.AML.ListEngineVersions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.financialservices.v1.ListEngineVersionsResponse", - "client": { - "shortName": "AMLClient", - "fullName": "google.cloud.financialservices.v1.AMLClient" - }, - "method": { - "shortName": "ListEngineVersions", - "fullName": "google.cloud.financialservices.v1.AML.ListEngineVersions", - "service": { - "shortName": "AML", - "fullName": "google.cloud.financialservices.v1.AML" - } - } - } - }, - { - "regionTag": "financialservices_v1_generated_AML_ListPredictionResults_async", - "title": "AML listPredictionResults Sample", - "origin": "API_DEFINITION", - "description": " List PredictionResults.", - "canonical": true, - "file": "a_m_l.list_prediction_results.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPredictionResults", - "fullName": "google.cloud.financialservices.v1.AML.ListPredictionResults", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.financialservices.v1.ListPredictionResultsResponse", - "client": { - "shortName": "AMLClient", - "fullName": "google.cloud.financialservices.v1.AMLClient" - }, - "method": { - "shortName": "ListPredictionResults", - "fullName": "google.cloud.financialservices.v1.AML.ListPredictionResults", - "service": { - "shortName": "AML", - "fullName": "google.cloud.financialservices.v1.AML" - } - } - } - }, - { - "regionTag": "financialservices_v1_generated_AML_GetPredictionResult_async", - "title": "AML getPredictionResult Sample", - "origin": "API_DEFINITION", - "description": " Gets a PredictionResult.", - "canonical": true, - "file": "a_m_l.get_prediction_result.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPredictionResult", - "fullName": "google.cloud.financialservices.v1.AML.GetPredictionResult", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.financialservices.v1.PredictionResult", - "client": { - "shortName": "AMLClient", - "fullName": "google.cloud.financialservices.v1.AMLClient" - }, - "method": { - "shortName": "GetPredictionResult", - "fullName": "google.cloud.financialservices.v1.AML.GetPredictionResult", - "service": { - "shortName": "AML", - "fullName": "google.cloud.financialservices.v1.AML" - } - } - } - }, - { - "regionTag": "financialservices_v1_generated_AML_CreatePredictionResult_async", - "title": "AML createPredictionResult Sample", - "origin": "API_DEFINITION", - "description": " Create a PredictionResult.", - "canonical": true, - "file": "a_m_l.create_prediction_result.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreatePredictionResult", - "fullName": "google.cloud.financialservices.v1.AML.CreatePredictionResult", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "prediction_result_id", - "type": "TYPE_STRING" - }, - { - "name": "prediction_result", - "type": ".google.cloud.financialservices.v1.PredictionResult" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AMLClient", - "fullName": "google.cloud.financialservices.v1.AMLClient" - }, - "method": { - "shortName": "CreatePredictionResult", - "fullName": "google.cloud.financialservices.v1.AML.CreatePredictionResult", - "service": { - "shortName": "AML", - "fullName": "google.cloud.financialservices.v1.AML" - } - } - } - }, - { - "regionTag": "financialservices_v1_generated_AML_UpdatePredictionResult_async", - "title": "AML updatePredictionResult Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single PredictionResult.", - "canonical": true, - "file": "a_m_l.update_prediction_result.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdatePredictionResult", - "fullName": "google.cloud.financialservices.v1.AML.UpdatePredictionResult", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "prediction_result", - "type": ".google.cloud.financialservices.v1.PredictionResult" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AMLClient", - "fullName": "google.cloud.financialservices.v1.AMLClient" - }, - "method": { - "shortName": "UpdatePredictionResult", - "fullName": "google.cloud.financialservices.v1.AML.UpdatePredictionResult", - "service": { - "shortName": "AML", - "fullName": "google.cloud.financialservices.v1.AML" - } - } - } - }, - { - "regionTag": "financialservices_v1_generated_AML_ExportPredictionResultMetadata_async", - "title": "AML exportPredictionResultMetadata Sample", - "origin": "API_DEFINITION", - "description": " Export governance information for a PredictionResult resource. For information on the exported fields, see [AML output data model](https://cloud.google.com/financial-services/anti-money-laundering/docs/reference/schemas/aml-output-data-model#prediction-results).", - "canonical": true, - "file": "a_m_l.export_prediction_result_metadata.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportPredictionResultMetadata", - "fullName": "google.cloud.financialservices.v1.AML.ExportPredictionResultMetadata", - "async": true, - "parameters": [ - { - "name": "prediction_result", - "type": "TYPE_STRING" - }, - { - "name": "structured_metadata_destination", - "type": ".google.cloud.financialservices.v1.BigQueryDestination" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AMLClient", - "fullName": "google.cloud.financialservices.v1.AMLClient" - }, - "method": { - "shortName": "ExportPredictionResultMetadata", - "fullName": "google.cloud.financialservices.v1.AML.ExportPredictionResultMetadata", - "service": { - "shortName": "AML", - "fullName": "google.cloud.financialservices.v1.AML" - } - } - } - }, - { - "regionTag": "financialservices_v1_generated_AML_DeletePredictionResult_async", - "title": "AML deletePredictionResult Sample", - "origin": "API_DEFINITION", - "description": " Deletes a PredictionResult.", - "canonical": true, - "file": "a_m_l.delete_prediction_result.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePredictionResult", - "fullName": "google.cloud.financialservices.v1.AML.DeletePredictionResult", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AMLClient", - "fullName": "google.cloud.financialservices.v1.AMLClient" - }, - "method": { - "shortName": "DeletePredictionResult", - "fullName": "google.cloud.financialservices.v1.AML.DeletePredictionResult", - "service": { - "shortName": "AML", - "fullName": "google.cloud.financialservices.v1.AML" - } - } - } - }, - { - "regionTag": "financialservices_v1_generated_AML_ListBacktestResults_async", - "title": "AML listBacktestResults Sample", - "origin": "API_DEFINITION", - "description": " List BacktestResults.", - "canonical": true, - "file": "a_m_l.list_backtest_results.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBacktestResults", - "fullName": "google.cloud.financialservices.v1.AML.ListBacktestResults", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.financialservices.v1.ListBacktestResultsResponse", - "client": { - "shortName": "AMLClient", - "fullName": "google.cloud.financialservices.v1.AMLClient" - }, - "method": { - "shortName": "ListBacktestResults", - "fullName": "google.cloud.financialservices.v1.AML.ListBacktestResults", - "service": { - "shortName": "AML", - "fullName": "google.cloud.financialservices.v1.AML" - } - } - } - }, - { - "regionTag": "financialservices_v1_generated_AML_GetBacktestResult_async", - "title": "AML getBacktestResult Sample", - "origin": "API_DEFINITION", - "description": " Gets a BacktestResult.", - "canonical": true, - "file": "a_m_l.get_backtest_result.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBacktestResult", - "fullName": "google.cloud.financialservices.v1.AML.GetBacktestResult", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.financialservices.v1.BacktestResult", - "client": { - "shortName": "AMLClient", - "fullName": "google.cloud.financialservices.v1.AMLClient" - }, - "method": { - "shortName": "GetBacktestResult", - "fullName": "google.cloud.financialservices.v1.AML.GetBacktestResult", - "service": { - "shortName": "AML", - "fullName": "google.cloud.financialservices.v1.AML" - } - } - } - }, - { - "regionTag": "financialservices_v1_generated_AML_CreateBacktestResult_async", - "title": "AML createBacktestResult Sample", - "origin": "API_DEFINITION", - "description": " Create a BacktestResult.", - "canonical": true, - "file": "a_m_l.create_backtest_result.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateBacktestResult", - "fullName": "google.cloud.financialservices.v1.AML.CreateBacktestResult", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "backtest_result_id", - "type": "TYPE_STRING" - }, - { - "name": "backtest_result", - "type": ".google.cloud.financialservices.v1.BacktestResult" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AMLClient", - "fullName": "google.cloud.financialservices.v1.AMLClient" - }, - "method": { - "shortName": "CreateBacktestResult", - "fullName": "google.cloud.financialservices.v1.AML.CreateBacktestResult", - "service": { - "shortName": "AML", - "fullName": "google.cloud.financialservices.v1.AML" - } - } - } - }, - { - "regionTag": "financialservices_v1_generated_AML_UpdateBacktestResult_async", - "title": "AML updateBacktestResult Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single BacktestResult.", - "canonical": true, - "file": "a_m_l.update_backtest_result.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateBacktestResult", - "fullName": "google.cloud.financialservices.v1.AML.UpdateBacktestResult", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "backtest_result", - "type": ".google.cloud.financialservices.v1.BacktestResult" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AMLClient", - "fullName": "google.cloud.financialservices.v1.AMLClient" - }, - "method": { - "shortName": "UpdateBacktestResult", - "fullName": "google.cloud.financialservices.v1.AML.UpdateBacktestResult", - "service": { - "shortName": "AML", - "fullName": "google.cloud.financialservices.v1.AML" - } - } - } - }, - { - "regionTag": "financialservices_v1_generated_AML_ExportBacktestResultMetadata_async", - "title": "AML exportBacktestResultMetadata Sample", - "origin": "API_DEFINITION", - "description": " Export governance information for a BacktestResult resource. For information on the exported fields, see [AML output data model](https://cloud.google.com/financial-services/anti-money-laundering/docs/reference/schemas/aml-output-data-model#backtest-results).", - "canonical": true, - "file": "a_m_l.export_backtest_result_metadata.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportBacktestResultMetadata", - "fullName": "google.cloud.financialservices.v1.AML.ExportBacktestResultMetadata", - "async": true, - "parameters": [ - { - "name": "backtest_result", - "type": "TYPE_STRING" - }, - { - "name": "structured_metadata_destination", - "type": ".google.cloud.financialservices.v1.BigQueryDestination" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AMLClient", - "fullName": "google.cloud.financialservices.v1.AMLClient" - }, - "method": { - "shortName": "ExportBacktestResultMetadata", - "fullName": "google.cloud.financialservices.v1.AML.ExportBacktestResultMetadata", - "service": { - "shortName": "AML", - "fullName": "google.cloud.financialservices.v1.AML" - } - } - } - }, - { - "regionTag": "financialservices_v1_generated_AML_DeleteBacktestResult_async", - "title": "AML deleteBacktestResult Sample", - "origin": "API_DEFINITION", - "description": " Deletes a BacktestResult.", - "canonical": true, - "file": "a_m_l.delete_backtest_result.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteBacktestResult", - "fullName": "google.cloud.financialservices.v1.AML.DeleteBacktestResult", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AMLClient", - "fullName": "google.cloud.financialservices.v1.AMLClient" - }, - "method": { - "shortName": "DeleteBacktestResult", - "fullName": "google.cloud.financialservices.v1.AML.DeleteBacktestResult", - "service": { - "shortName": "AML", - "fullName": "google.cloud.financialservices.v1.AML" - } - } - } - } - ] -} diff --git a/packages/google-cloud-functions/samples/generated/v1/snippet_metadata_google.cloud.functions.v1.json b/packages/google-cloud-functions/samples/generated/v1/snippet_metadata_google.cloud.functions.v1.json deleted file mode 100644 index dc9fc9096722..000000000000 --- a/packages/google-cloud-functions/samples/generated/v1/snippet_metadata_google.cloud.functions.v1.json +++ /dev/null @@ -1,503 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-functions", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.functions.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "cloudfunctions_v1_generated_CloudFunctionsService_ListFunctions_async", - "title": "CloudFunctionsService listFunctions Sample", - "origin": "API_DEFINITION", - "description": " Returns a list of functions that belong to the requested project.", - "canonical": true, - "file": "cloud_functions_service.list_functions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFunctions", - "fullName": "google.cloud.functions.v1.CloudFunctionsService.ListFunctions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.functions.v1.ListFunctionsResponse", - "client": { - "shortName": "CloudFunctionsServiceClient", - "fullName": "google.cloud.functions.v1.CloudFunctionsServiceClient" - }, - "method": { - "shortName": "ListFunctions", - "fullName": "google.cloud.functions.v1.CloudFunctionsService.ListFunctions", - "service": { - "shortName": "CloudFunctionsService", - "fullName": "google.cloud.functions.v1.CloudFunctionsService" - } - } - } - }, - { - "regionTag": "cloudfunctions_v1_generated_CloudFunctionsService_GetFunction_async", - "title": "CloudFunctionsService getFunction Sample", - "origin": "API_DEFINITION", - "description": " Returns a function with the given name from the requested project.", - "canonical": true, - "file": "cloud_functions_service.get_function.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFunction", - "fullName": "google.cloud.functions.v1.CloudFunctionsService.GetFunction", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "version_id", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.cloud.functions.v1.CloudFunction", - "client": { - "shortName": "CloudFunctionsServiceClient", - "fullName": "google.cloud.functions.v1.CloudFunctionsServiceClient" - }, - "method": { - "shortName": "GetFunction", - "fullName": "google.cloud.functions.v1.CloudFunctionsService.GetFunction", - "service": { - "shortName": "CloudFunctionsService", - "fullName": "google.cloud.functions.v1.CloudFunctionsService" - } - } - } - }, - { - "regionTag": "cloudfunctions_v1_generated_CloudFunctionsService_CreateFunction_async", - "title": "CloudFunctionsService createFunction Sample", - "origin": "API_DEFINITION", - "description": " Creates a new function. If a function with the given name already exists in the specified project, the long running operation will return `ALREADY_EXISTS` error.", - "canonical": true, - "file": "cloud_functions_service.create_function.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateFunction", - "fullName": "google.cloud.functions.v1.CloudFunctionsService.CreateFunction", - "async": true, - "parameters": [ - { - "name": "location", - "type": "TYPE_STRING" - }, - { - "name": "function", - "type": ".google.cloud.functions.v1.CloudFunction" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudFunctionsServiceClient", - "fullName": "google.cloud.functions.v1.CloudFunctionsServiceClient" - }, - "method": { - "shortName": "CreateFunction", - "fullName": "google.cloud.functions.v1.CloudFunctionsService.CreateFunction", - "service": { - "shortName": "CloudFunctionsService", - "fullName": "google.cloud.functions.v1.CloudFunctionsService" - } - } - } - }, - { - "regionTag": "cloudfunctions_v1_generated_CloudFunctionsService_UpdateFunction_async", - "title": "CloudFunctionsService updateFunction Sample", - "origin": "API_DEFINITION", - "description": " Updates existing function.", - "canonical": true, - "file": "cloud_functions_service.update_function.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateFunction", - "fullName": "google.cloud.functions.v1.CloudFunctionsService.UpdateFunction", - "async": true, - "parameters": [ - { - "name": "function", - "type": ".google.cloud.functions.v1.CloudFunction" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudFunctionsServiceClient", - "fullName": "google.cloud.functions.v1.CloudFunctionsServiceClient" - }, - "method": { - "shortName": "UpdateFunction", - "fullName": "google.cloud.functions.v1.CloudFunctionsService.UpdateFunction", - "service": { - "shortName": "CloudFunctionsService", - "fullName": "google.cloud.functions.v1.CloudFunctionsService" - } - } - } - }, - { - "regionTag": "cloudfunctions_v1_generated_CloudFunctionsService_DeleteFunction_async", - "title": "CloudFunctionsService deleteFunction Sample", - "origin": "API_DEFINITION", - "description": " Deletes a function with the given name from the specified project. If the given function is used by some trigger, the trigger will be updated to remove this function.", - "canonical": true, - "file": "cloud_functions_service.delete_function.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteFunction", - "fullName": "google.cloud.functions.v1.CloudFunctionsService.DeleteFunction", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudFunctionsServiceClient", - "fullName": "google.cloud.functions.v1.CloudFunctionsServiceClient" - }, - "method": { - "shortName": "DeleteFunction", - "fullName": "google.cloud.functions.v1.CloudFunctionsService.DeleteFunction", - "service": { - "shortName": "CloudFunctionsService", - "fullName": "google.cloud.functions.v1.CloudFunctionsService" - } - } - } - }, - { - "regionTag": "cloudfunctions_v1_generated_CloudFunctionsService_CallFunction_async", - "title": "CloudFunctionsService callFunction Sample", - "origin": "API_DEFINITION", - "description": " Synchronously invokes a deployed Cloud Function. To be used for testing purposes as very limited traffic is allowed. For more information on the actual limits, refer to [Rate Limits](https://cloud.google.com/functions/quotas#rate_limits).", - "canonical": true, - "file": "cloud_functions_service.call_function.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CallFunction", - "fullName": "google.cloud.functions.v1.CloudFunctionsService.CallFunction", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "data", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.functions.v1.CallFunctionResponse", - "client": { - "shortName": "CloudFunctionsServiceClient", - "fullName": "google.cloud.functions.v1.CloudFunctionsServiceClient" - }, - "method": { - "shortName": "CallFunction", - "fullName": "google.cloud.functions.v1.CloudFunctionsService.CallFunction", - "service": { - "shortName": "CloudFunctionsService", - "fullName": "google.cloud.functions.v1.CloudFunctionsService" - } - } - } - }, - { - "regionTag": "cloudfunctions_v1_generated_CloudFunctionsService_GenerateUploadUrl_async", - "title": "CloudFunctionsService generateUploadUrl Sample", - "origin": "API_DEFINITION", - "description": " Returns a signed URL for uploading a function source code. For more information about the signed URL usage see: https://cloud.google.com/storage/docs/access-control/signed-urls. Once the function source code upload is complete, the used signed URL should be provided in CreateFunction or UpdateFunction request as a reference to the function source code. When uploading source code to the generated signed URL, please follow these restrictions: * Source file type should be a zip file. * Source file size should not exceed 100MB limit. * No credentials should be attached - the signed URLs provide access to the target bucket using internal service identity; if credentials were attached, the identity from the credentials would be used, but that identity does not have permissions to upload files to the URL. When making a HTTP PUT request, these two headers need to be specified: * `content-type: application/zip` * `x-goog-content-length-range: 0,104857600` And this header SHOULD NOT be specified: * `Authorization: Bearer YOUR_TOKEN`", - "canonical": true, - "file": "cloud_functions_service.generate_upload_url.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateUploadUrl", - "fullName": "google.cloud.functions.v1.CloudFunctionsService.GenerateUploadUrl", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "kms_key_name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.functions.v1.GenerateUploadUrlResponse", - "client": { - "shortName": "CloudFunctionsServiceClient", - "fullName": "google.cloud.functions.v1.CloudFunctionsServiceClient" - }, - "method": { - "shortName": "GenerateUploadUrl", - "fullName": "google.cloud.functions.v1.CloudFunctionsService.GenerateUploadUrl", - "service": { - "shortName": "CloudFunctionsService", - "fullName": "google.cloud.functions.v1.CloudFunctionsService" - } - } - } - }, - { - "regionTag": "cloudfunctions_v1_generated_CloudFunctionsService_GenerateDownloadUrl_async", - "title": "CloudFunctionsService generateDownloadUrl Sample", - "origin": "API_DEFINITION", - "description": " Returns a signed URL for downloading deployed function source code. The URL is only valid for a limited period and should be used within minutes after generation. For more information about the signed URL usage see: https://cloud.google.com/storage/docs/access-control/signed-urls", - "canonical": true, - "file": "cloud_functions_service.generate_download_url.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateDownloadUrl", - "fullName": "google.cloud.functions.v1.CloudFunctionsService.GenerateDownloadUrl", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "version_id", - "type": "TYPE_UINT64" - } - ], - "resultType": ".google.cloud.functions.v1.GenerateDownloadUrlResponse", - "client": { - "shortName": "CloudFunctionsServiceClient", - "fullName": "google.cloud.functions.v1.CloudFunctionsServiceClient" - }, - "method": { - "shortName": "GenerateDownloadUrl", - "fullName": "google.cloud.functions.v1.CloudFunctionsService.GenerateDownloadUrl", - "service": { - "shortName": "CloudFunctionsService", - "fullName": "google.cloud.functions.v1.CloudFunctionsService" - } - } - } - }, - { - "regionTag": "cloudfunctions_v1_generated_CloudFunctionsService_SetIamPolicy_async", - "title": "CloudFunctionsService setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the IAM access control policy on the specified function. Replaces any existing policy.", - "canonical": true, - "file": "cloud_functions_service.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.functions.v1.CloudFunctionsService.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.iam.v1.Policy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "CloudFunctionsServiceClient", - "fullName": "google.cloud.functions.v1.CloudFunctionsServiceClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.functions.v1.CloudFunctionsService.SetIamPolicy", - "service": { - "shortName": "CloudFunctionsService", - "fullName": "google.cloud.functions.v1.CloudFunctionsService" - } - } - } - }, - { - "regionTag": "cloudfunctions_v1_generated_CloudFunctionsService_GetIamPolicy_async", - "title": "CloudFunctionsService getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the IAM access control policy for a function. Returns an empty policy if the function exists and does not have a policy set.", - "canonical": true, - "file": "cloud_functions_service.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.functions.v1.CloudFunctionsService.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": ".google.iam.v1.GetPolicyOptions" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "CloudFunctionsServiceClient", - "fullName": "google.cloud.functions.v1.CloudFunctionsServiceClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.functions.v1.CloudFunctionsService.GetIamPolicy", - "service": { - "shortName": "CloudFunctionsService", - "fullName": "google.cloud.functions.v1.CloudFunctionsService" - } - } - } - }, - { - "regionTag": "cloudfunctions_v1_generated_CloudFunctionsService_TestIamPermissions_async", - "title": "CloudFunctionsService testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Tests the specified permissions against the IAM access control policy for a function. If the function does not exist, this will return an empty set of permissions, not a NOT_FOUND error.", - "canonical": true, - "file": "cloud_functions_service.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.functions.v1.CloudFunctionsService.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "permissions", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.iam.v1.TestIamPermissionsResponse", - "client": { - "shortName": "CloudFunctionsServiceClient", - "fullName": "google.cloud.functions.v1.CloudFunctionsServiceClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.functions.v1.CloudFunctionsService.TestIamPermissions", - "service": { - "shortName": "CloudFunctionsService", - "fullName": "google.cloud.functions.v1.CloudFunctionsService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-functions/samples/generated/v2/snippet_metadata_google.cloud.functions.v2.json b/packages/google-cloud-functions/samples/generated/v2/snippet_metadata_google.cloud.functions.v2.json deleted file mode 100644 index 7c44d0213755..000000000000 --- a/packages/google-cloud-functions/samples/generated/v2/snippet_metadata_google.cloud.functions.v2.json +++ /dev/null @@ -1,379 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-functions", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.functions.v2", - "version": "v2" - } - ] - }, - "snippets": [ - { - "regionTag": "cloudfunctions_v2_generated_FunctionService_GetFunction_async", - "title": "FunctionService getFunction Sample", - "origin": "API_DEFINITION", - "description": " Returns a function with the given name from the requested project.", - "canonical": true, - "file": "function_service.get_function.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFunction", - "fullName": "google.cloud.functions.v2.FunctionService.GetFunction", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "revision", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.functions.v2.Function", - "client": { - "shortName": "FunctionServiceClient", - "fullName": "google.cloud.functions.v2.FunctionServiceClient" - }, - "method": { - "shortName": "GetFunction", - "fullName": "google.cloud.functions.v2.FunctionService.GetFunction", - "service": { - "shortName": "FunctionService", - "fullName": "google.cloud.functions.v2.FunctionService" - } - } - } - }, - { - "regionTag": "cloudfunctions_v2_generated_FunctionService_ListFunctions_async", - "title": "FunctionService listFunctions Sample", - "origin": "API_DEFINITION", - "description": " Returns a list of functions that belong to the requested project.", - "canonical": true, - "file": "function_service.list_functions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFunctions", - "fullName": "google.cloud.functions.v2.FunctionService.ListFunctions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.functions.v2.ListFunctionsResponse", - "client": { - "shortName": "FunctionServiceClient", - "fullName": "google.cloud.functions.v2.FunctionServiceClient" - }, - "method": { - "shortName": "ListFunctions", - "fullName": "google.cloud.functions.v2.FunctionService.ListFunctions", - "service": { - "shortName": "FunctionService", - "fullName": "google.cloud.functions.v2.FunctionService" - } - } - } - }, - { - "regionTag": "cloudfunctions_v2_generated_FunctionService_CreateFunction_async", - "title": "FunctionService createFunction Sample", - "origin": "API_DEFINITION", - "description": " Creates a new function. If a function with the given name already exists in the specified project, the long running operation will return `ALREADY_EXISTS` error.", - "canonical": true, - "file": "function_service.create_function.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateFunction", - "fullName": "google.cloud.functions.v2.FunctionService.CreateFunction", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "function", - "type": ".google.cloud.functions.v2.Function" - }, - { - "name": "function_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FunctionServiceClient", - "fullName": "google.cloud.functions.v2.FunctionServiceClient" - }, - "method": { - "shortName": "CreateFunction", - "fullName": "google.cloud.functions.v2.FunctionService.CreateFunction", - "service": { - "shortName": "FunctionService", - "fullName": "google.cloud.functions.v2.FunctionService" - } - } - } - }, - { - "regionTag": "cloudfunctions_v2_generated_FunctionService_UpdateFunction_async", - "title": "FunctionService updateFunction Sample", - "origin": "API_DEFINITION", - "description": " Updates existing function.", - "canonical": true, - "file": "function_service.update_function.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateFunction", - "fullName": "google.cloud.functions.v2.FunctionService.UpdateFunction", - "async": true, - "parameters": [ - { - "name": "function", - "type": ".google.cloud.functions.v2.Function" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FunctionServiceClient", - "fullName": "google.cloud.functions.v2.FunctionServiceClient" - }, - "method": { - "shortName": "UpdateFunction", - "fullName": "google.cloud.functions.v2.FunctionService.UpdateFunction", - "service": { - "shortName": "FunctionService", - "fullName": "google.cloud.functions.v2.FunctionService" - } - } - } - }, - { - "regionTag": "cloudfunctions_v2_generated_FunctionService_DeleteFunction_async", - "title": "FunctionService deleteFunction Sample", - "origin": "API_DEFINITION", - "description": " Deletes a function with the given name from the specified project. If the given function is used by some trigger, the trigger will be updated to remove this function.", - "canonical": true, - "file": "function_service.delete_function.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteFunction", - "fullName": "google.cloud.functions.v2.FunctionService.DeleteFunction", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FunctionServiceClient", - "fullName": "google.cloud.functions.v2.FunctionServiceClient" - }, - "method": { - "shortName": "DeleteFunction", - "fullName": "google.cloud.functions.v2.FunctionService.DeleteFunction", - "service": { - "shortName": "FunctionService", - "fullName": "google.cloud.functions.v2.FunctionService" - } - } - } - }, - { - "regionTag": "cloudfunctions_v2_generated_FunctionService_GenerateUploadUrl_async", - "title": "FunctionService generateUploadUrl Sample", - "origin": "API_DEFINITION", - "description": " Returns a signed URL for uploading a function source code. For more information about the signed URL usage see: https://cloud.google.com/storage/docs/access-control/signed-urls. Once the function source code upload is complete, the used signed URL should be provided in CreateFunction or UpdateFunction request as a reference to the function source code. When uploading source code to the generated signed URL, please follow these restrictions: * Source file type should be a zip file. * No credentials should be attached - the signed URLs provide access to the target bucket using internal service identity; if credentials were attached, the identity from the credentials would be used, but that identity does not have permissions to upload files to the URL. When making a HTTP PUT request, specify this header: * `content-type: application/zip` Do not specify this header: * `Authorization: Bearer YOUR_TOKEN`", - "canonical": true, - "file": "function_service.generate_upload_url.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateUploadUrl", - "fullName": "google.cloud.functions.v2.FunctionService.GenerateUploadUrl", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "kms_key_name", - "type": "TYPE_STRING" - }, - { - "name": "environment", - "type": ".google.cloud.functions.v2.Environment" - } - ], - "resultType": ".google.cloud.functions.v2.GenerateUploadUrlResponse", - "client": { - "shortName": "FunctionServiceClient", - "fullName": "google.cloud.functions.v2.FunctionServiceClient" - }, - "method": { - "shortName": "GenerateUploadUrl", - "fullName": "google.cloud.functions.v2.FunctionService.GenerateUploadUrl", - "service": { - "shortName": "FunctionService", - "fullName": "google.cloud.functions.v2.FunctionService" - } - } - } - }, - { - "regionTag": "cloudfunctions_v2_generated_FunctionService_GenerateDownloadUrl_async", - "title": "FunctionService generateDownloadUrl Sample", - "origin": "API_DEFINITION", - "description": " Returns a signed URL for downloading deployed function source code. The URL is only valid for a limited period and should be used within 30 minutes of generation. For more information about the signed URL usage see: https://cloud.google.com/storage/docs/access-control/signed-urls", - "canonical": true, - "file": "function_service.generate_download_url.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateDownloadUrl", - "fullName": "google.cloud.functions.v2.FunctionService.GenerateDownloadUrl", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.functions.v2.GenerateDownloadUrlResponse", - "client": { - "shortName": "FunctionServiceClient", - "fullName": "google.cloud.functions.v2.FunctionServiceClient" - }, - "method": { - "shortName": "GenerateDownloadUrl", - "fullName": "google.cloud.functions.v2.FunctionService.GenerateDownloadUrl", - "service": { - "shortName": "FunctionService", - "fullName": "google.cloud.functions.v2.FunctionService" - } - } - } - }, - { - "regionTag": "cloudfunctions_v2_generated_FunctionService_ListRuntimes_async", - "title": "FunctionService listRuntimes Sample", - "origin": "API_DEFINITION", - "description": " Returns a list of runtimes that are supported for the requested project.", - "canonical": true, - "file": "function_service.list_runtimes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRuntimes", - "fullName": "google.cloud.functions.v2.FunctionService.ListRuntimes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.functions.v2.ListRuntimesResponse", - "client": { - "shortName": "FunctionServiceClient", - "fullName": "google.cloud.functions.v2.FunctionServiceClient" - }, - "method": { - "shortName": "ListRuntimes", - "fullName": "google.cloud.functions.v2.FunctionService.ListRuntimes", - "service": { - "shortName": "FunctionService", - "fullName": "google.cloud.functions.v2.FunctionService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-functions/samples/generated/v2alpha/snippet_metadata_google.cloud.functions.v2alpha.json b/packages/google-cloud-functions/samples/generated/v2alpha/snippet_metadata_google.cloud.functions.v2alpha.json deleted file mode 100644 index c883cd22551d..000000000000 --- a/packages/google-cloud-functions/samples/generated/v2alpha/snippet_metadata_google.cloud.functions.v2alpha.json +++ /dev/null @@ -1,379 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-functions", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.functions.v2alpha", - "version": "v2alpha" - } - ] - }, - "snippets": [ - { - "regionTag": "cloudfunctions_v2alpha_generated_FunctionService_GetFunction_async", - "title": "FunctionService getFunction Sample", - "origin": "API_DEFINITION", - "description": " Returns a function with the given name from the requested project.", - "canonical": true, - "file": "function_service.get_function.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFunction", - "fullName": "google.cloud.functions.v2alpha.FunctionService.GetFunction", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "revision", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.functions.v2alpha.Function", - "client": { - "shortName": "FunctionServiceClient", - "fullName": "google.cloud.functions.v2alpha.FunctionServiceClient" - }, - "method": { - "shortName": "GetFunction", - "fullName": "google.cloud.functions.v2alpha.FunctionService.GetFunction", - "service": { - "shortName": "FunctionService", - "fullName": "google.cloud.functions.v2alpha.FunctionService" - } - } - } - }, - { - "regionTag": "cloudfunctions_v2alpha_generated_FunctionService_ListFunctions_async", - "title": "FunctionService listFunctions Sample", - "origin": "API_DEFINITION", - "description": " Returns a list of functions that belong to the requested project.", - "canonical": true, - "file": "function_service.list_functions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFunctions", - "fullName": "google.cloud.functions.v2alpha.FunctionService.ListFunctions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.functions.v2alpha.ListFunctionsResponse", - "client": { - "shortName": "FunctionServiceClient", - "fullName": "google.cloud.functions.v2alpha.FunctionServiceClient" - }, - "method": { - "shortName": "ListFunctions", - "fullName": "google.cloud.functions.v2alpha.FunctionService.ListFunctions", - "service": { - "shortName": "FunctionService", - "fullName": "google.cloud.functions.v2alpha.FunctionService" - } - } - } - }, - { - "regionTag": "cloudfunctions_v2alpha_generated_FunctionService_CreateFunction_async", - "title": "FunctionService createFunction Sample", - "origin": "API_DEFINITION", - "description": " Creates a new function. If a function with the given name already exists in the specified project, the long running operation will return `ALREADY_EXISTS` error.", - "canonical": true, - "file": "function_service.create_function.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateFunction", - "fullName": "google.cloud.functions.v2alpha.FunctionService.CreateFunction", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "function", - "type": ".google.cloud.functions.v2alpha.Function" - }, - { - "name": "function_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FunctionServiceClient", - "fullName": "google.cloud.functions.v2alpha.FunctionServiceClient" - }, - "method": { - "shortName": "CreateFunction", - "fullName": "google.cloud.functions.v2alpha.FunctionService.CreateFunction", - "service": { - "shortName": "FunctionService", - "fullName": "google.cloud.functions.v2alpha.FunctionService" - } - } - } - }, - { - "regionTag": "cloudfunctions_v2alpha_generated_FunctionService_UpdateFunction_async", - "title": "FunctionService updateFunction Sample", - "origin": "API_DEFINITION", - "description": " Updates existing function.", - "canonical": true, - "file": "function_service.update_function.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateFunction", - "fullName": "google.cloud.functions.v2alpha.FunctionService.UpdateFunction", - "async": true, - "parameters": [ - { - "name": "function", - "type": ".google.cloud.functions.v2alpha.Function" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FunctionServiceClient", - "fullName": "google.cloud.functions.v2alpha.FunctionServiceClient" - }, - "method": { - "shortName": "UpdateFunction", - "fullName": "google.cloud.functions.v2alpha.FunctionService.UpdateFunction", - "service": { - "shortName": "FunctionService", - "fullName": "google.cloud.functions.v2alpha.FunctionService" - } - } - } - }, - { - "regionTag": "cloudfunctions_v2alpha_generated_FunctionService_DeleteFunction_async", - "title": "FunctionService deleteFunction Sample", - "origin": "API_DEFINITION", - "description": " Deletes a function with the given name from the specified project. If the given function is used by some trigger, the trigger will be updated to remove this function.", - "canonical": true, - "file": "function_service.delete_function.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteFunction", - "fullName": "google.cloud.functions.v2alpha.FunctionService.DeleteFunction", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FunctionServiceClient", - "fullName": "google.cloud.functions.v2alpha.FunctionServiceClient" - }, - "method": { - "shortName": "DeleteFunction", - "fullName": "google.cloud.functions.v2alpha.FunctionService.DeleteFunction", - "service": { - "shortName": "FunctionService", - "fullName": "google.cloud.functions.v2alpha.FunctionService" - } - } - } - }, - { - "regionTag": "cloudfunctions_v2alpha_generated_FunctionService_GenerateUploadUrl_async", - "title": "FunctionService generateUploadUrl Sample", - "origin": "API_DEFINITION", - "description": " Returns a signed URL for uploading a function source code. For more information about the signed URL usage see: https://cloud.google.com/storage/docs/access-control/signed-urls. Once the function source code upload is complete, the used signed URL should be provided in CreateFunction or UpdateFunction request as a reference to the function source code. When uploading source code to the generated signed URL, please follow these restrictions: * Source file type should be a zip file. * No credentials should be attached - the signed URLs provide access to the target bucket using internal service identity; if credentials were attached, the identity from the credentials would be used, but that identity does not have permissions to upload files to the URL. When making a HTTP PUT request, specify this header: * `content-type: application/zip` Do not specify this header: * `Authorization: Bearer YOUR_TOKEN`", - "canonical": true, - "file": "function_service.generate_upload_url.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateUploadUrl", - "fullName": "google.cloud.functions.v2alpha.FunctionService.GenerateUploadUrl", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "kms_key_name", - "type": "TYPE_STRING" - }, - { - "name": "environment", - "type": ".google.cloud.functions.v2alpha.Environment" - } - ], - "resultType": ".google.cloud.functions.v2alpha.GenerateUploadUrlResponse", - "client": { - "shortName": "FunctionServiceClient", - "fullName": "google.cloud.functions.v2alpha.FunctionServiceClient" - }, - "method": { - "shortName": "GenerateUploadUrl", - "fullName": "google.cloud.functions.v2alpha.FunctionService.GenerateUploadUrl", - "service": { - "shortName": "FunctionService", - "fullName": "google.cloud.functions.v2alpha.FunctionService" - } - } - } - }, - { - "regionTag": "cloudfunctions_v2alpha_generated_FunctionService_GenerateDownloadUrl_async", - "title": "FunctionService generateDownloadUrl Sample", - "origin": "API_DEFINITION", - "description": " Returns a signed URL for downloading deployed function source code. The URL is only valid for a limited period and should be used within 30 minutes of generation. For more information about the signed URL usage see: https://cloud.google.com/storage/docs/access-control/signed-urls", - "canonical": true, - "file": "function_service.generate_download_url.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateDownloadUrl", - "fullName": "google.cloud.functions.v2alpha.FunctionService.GenerateDownloadUrl", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.functions.v2alpha.GenerateDownloadUrlResponse", - "client": { - "shortName": "FunctionServiceClient", - "fullName": "google.cloud.functions.v2alpha.FunctionServiceClient" - }, - "method": { - "shortName": "GenerateDownloadUrl", - "fullName": "google.cloud.functions.v2alpha.FunctionService.GenerateDownloadUrl", - "service": { - "shortName": "FunctionService", - "fullName": "google.cloud.functions.v2alpha.FunctionService" - } - } - } - }, - { - "regionTag": "cloudfunctions_v2alpha_generated_FunctionService_ListRuntimes_async", - "title": "FunctionService listRuntimes Sample", - "origin": "API_DEFINITION", - "description": " Returns a list of runtimes that are supported for the requested project.", - "canonical": true, - "file": "function_service.list_runtimes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRuntimes", - "fullName": "google.cloud.functions.v2alpha.FunctionService.ListRuntimes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.functions.v2alpha.ListRuntimesResponse", - "client": { - "shortName": "FunctionServiceClient", - "fullName": "google.cloud.functions.v2alpha.FunctionServiceClient" - }, - "method": { - "shortName": "ListRuntimes", - "fullName": "google.cloud.functions.v2alpha.FunctionService.ListRuntimes", - "service": { - "shortName": "FunctionService", - "fullName": "google.cloud.functions.v2alpha.FunctionService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-functions/samples/generated/v2beta/snippet_metadata_google.cloud.functions.v2beta.json b/packages/google-cloud-functions/samples/generated/v2beta/snippet_metadata_google.cloud.functions.v2beta.json deleted file mode 100644 index 83603205b5b9..000000000000 --- a/packages/google-cloud-functions/samples/generated/v2beta/snippet_metadata_google.cloud.functions.v2beta.json +++ /dev/null @@ -1,379 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-functions", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.functions.v2beta", - "version": "v2beta" - } - ] - }, - "snippets": [ - { - "regionTag": "cloudfunctions_v2beta_generated_FunctionService_GetFunction_async", - "title": "FunctionService getFunction Sample", - "origin": "API_DEFINITION", - "description": " Returns a function with the given name from the requested project.", - "canonical": true, - "file": "function_service.get_function.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFunction", - "fullName": "google.cloud.functions.v2beta.FunctionService.GetFunction", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "revision", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.functions.v2beta.Function", - "client": { - "shortName": "FunctionServiceClient", - "fullName": "google.cloud.functions.v2beta.FunctionServiceClient" - }, - "method": { - "shortName": "GetFunction", - "fullName": "google.cloud.functions.v2beta.FunctionService.GetFunction", - "service": { - "shortName": "FunctionService", - "fullName": "google.cloud.functions.v2beta.FunctionService" - } - } - } - }, - { - "regionTag": "cloudfunctions_v2beta_generated_FunctionService_ListFunctions_async", - "title": "FunctionService listFunctions Sample", - "origin": "API_DEFINITION", - "description": " Returns a list of functions that belong to the requested project.", - "canonical": true, - "file": "function_service.list_functions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFunctions", - "fullName": "google.cloud.functions.v2beta.FunctionService.ListFunctions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.functions.v2beta.ListFunctionsResponse", - "client": { - "shortName": "FunctionServiceClient", - "fullName": "google.cloud.functions.v2beta.FunctionServiceClient" - }, - "method": { - "shortName": "ListFunctions", - "fullName": "google.cloud.functions.v2beta.FunctionService.ListFunctions", - "service": { - "shortName": "FunctionService", - "fullName": "google.cloud.functions.v2beta.FunctionService" - } - } - } - }, - { - "regionTag": "cloudfunctions_v2beta_generated_FunctionService_CreateFunction_async", - "title": "FunctionService createFunction Sample", - "origin": "API_DEFINITION", - "description": " Creates a new function. If a function with the given name already exists in the specified project, the long running operation will return `ALREADY_EXISTS` error.", - "canonical": true, - "file": "function_service.create_function.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateFunction", - "fullName": "google.cloud.functions.v2beta.FunctionService.CreateFunction", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "function", - "type": ".google.cloud.functions.v2beta.Function" - }, - { - "name": "function_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FunctionServiceClient", - "fullName": "google.cloud.functions.v2beta.FunctionServiceClient" - }, - "method": { - "shortName": "CreateFunction", - "fullName": "google.cloud.functions.v2beta.FunctionService.CreateFunction", - "service": { - "shortName": "FunctionService", - "fullName": "google.cloud.functions.v2beta.FunctionService" - } - } - } - }, - { - "regionTag": "cloudfunctions_v2beta_generated_FunctionService_UpdateFunction_async", - "title": "FunctionService updateFunction Sample", - "origin": "API_DEFINITION", - "description": " Updates existing function.", - "canonical": true, - "file": "function_service.update_function.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateFunction", - "fullName": "google.cloud.functions.v2beta.FunctionService.UpdateFunction", - "async": true, - "parameters": [ - { - "name": "function", - "type": ".google.cloud.functions.v2beta.Function" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FunctionServiceClient", - "fullName": "google.cloud.functions.v2beta.FunctionServiceClient" - }, - "method": { - "shortName": "UpdateFunction", - "fullName": "google.cloud.functions.v2beta.FunctionService.UpdateFunction", - "service": { - "shortName": "FunctionService", - "fullName": "google.cloud.functions.v2beta.FunctionService" - } - } - } - }, - { - "regionTag": "cloudfunctions_v2beta_generated_FunctionService_DeleteFunction_async", - "title": "FunctionService deleteFunction Sample", - "origin": "API_DEFINITION", - "description": " Deletes a function with the given name from the specified project. If the given function is used by some trigger, the trigger will be updated to remove this function.", - "canonical": true, - "file": "function_service.delete_function.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteFunction", - "fullName": "google.cloud.functions.v2beta.FunctionService.DeleteFunction", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FunctionServiceClient", - "fullName": "google.cloud.functions.v2beta.FunctionServiceClient" - }, - "method": { - "shortName": "DeleteFunction", - "fullName": "google.cloud.functions.v2beta.FunctionService.DeleteFunction", - "service": { - "shortName": "FunctionService", - "fullName": "google.cloud.functions.v2beta.FunctionService" - } - } - } - }, - { - "regionTag": "cloudfunctions_v2beta_generated_FunctionService_GenerateUploadUrl_async", - "title": "FunctionService generateUploadUrl Sample", - "origin": "API_DEFINITION", - "description": " Returns a signed URL for uploading a function source code. For more information about the signed URL usage see: https://cloud.google.com/storage/docs/access-control/signed-urls. Once the function source code upload is complete, the used signed URL should be provided in CreateFunction or UpdateFunction request as a reference to the function source code. When uploading source code to the generated signed URL, please follow these restrictions: * Source file type should be a zip file. * No credentials should be attached - the signed URLs provide access to the target bucket using internal service identity; if credentials were attached, the identity from the credentials would be used, but that identity does not have permissions to upload files to the URL. When making a HTTP PUT request, specify this header: * `content-type: application/zip` Do not specify this header: * `Authorization: Bearer YOUR_TOKEN`", - "canonical": true, - "file": "function_service.generate_upload_url.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateUploadUrl", - "fullName": "google.cloud.functions.v2beta.FunctionService.GenerateUploadUrl", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "kms_key_name", - "type": "TYPE_STRING" - }, - { - "name": "environment", - "type": ".google.cloud.functions.v2beta.Environment" - } - ], - "resultType": ".google.cloud.functions.v2beta.GenerateUploadUrlResponse", - "client": { - "shortName": "FunctionServiceClient", - "fullName": "google.cloud.functions.v2beta.FunctionServiceClient" - }, - "method": { - "shortName": "GenerateUploadUrl", - "fullName": "google.cloud.functions.v2beta.FunctionService.GenerateUploadUrl", - "service": { - "shortName": "FunctionService", - "fullName": "google.cloud.functions.v2beta.FunctionService" - } - } - } - }, - { - "regionTag": "cloudfunctions_v2beta_generated_FunctionService_GenerateDownloadUrl_async", - "title": "FunctionService generateDownloadUrl Sample", - "origin": "API_DEFINITION", - "description": " Returns a signed URL for downloading deployed function source code. The URL is only valid for a limited period and should be used within 30 minutes of generation. For more information about the signed URL usage see: https://cloud.google.com/storage/docs/access-control/signed-urls", - "canonical": true, - "file": "function_service.generate_download_url.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateDownloadUrl", - "fullName": "google.cloud.functions.v2beta.FunctionService.GenerateDownloadUrl", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.functions.v2beta.GenerateDownloadUrlResponse", - "client": { - "shortName": "FunctionServiceClient", - "fullName": "google.cloud.functions.v2beta.FunctionServiceClient" - }, - "method": { - "shortName": "GenerateDownloadUrl", - "fullName": "google.cloud.functions.v2beta.FunctionService.GenerateDownloadUrl", - "service": { - "shortName": "FunctionService", - "fullName": "google.cloud.functions.v2beta.FunctionService" - } - } - } - }, - { - "regionTag": "cloudfunctions_v2beta_generated_FunctionService_ListRuntimes_async", - "title": "FunctionService listRuntimes Sample", - "origin": "API_DEFINITION", - "description": " Returns a list of runtimes that are supported for the requested project.", - "canonical": true, - "file": "function_service.list_runtimes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRuntimes", - "fullName": "google.cloud.functions.v2beta.FunctionService.ListRuntimes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.functions.v2beta.ListRuntimesResponse", - "client": { - "shortName": "FunctionServiceClient", - "fullName": "google.cloud.functions.v2beta.FunctionServiceClient" - }, - "method": { - "shortName": "ListRuntimes", - "fullName": "google.cloud.functions.v2beta.FunctionService.ListRuntimes", - "service": { - "shortName": "FunctionService", - "fullName": "google.cloud.functions.v2beta.FunctionService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-gdchardwaremanagement/samples/generated/v1alpha/snippet_metadata_google.cloud.gdchardwaremanagement.v1alpha.json b/packages/google-cloud-gdchardwaremanagement/samples/generated/v1alpha/snippet_metadata_google.cloud.gdchardwaremanagement.v1alpha.json deleted file mode 100644 index 545acc96398d..000000000000 --- a/packages/google-cloud-gdchardwaremanagement/samples/generated/v1alpha/snippet_metadata_google.cloud.gdchardwaremanagement.v1alpha.json +++ /dev/null @@ -1,1795 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-gdchardwaremanagement", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.gdchardwaremanagement.v1alpha", - "version": "v1alpha" - } - ] - }, - "snippets": [ - { - "regionTag": "gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListOrders_async", - "title": "GDCHardwareManagement listOrders Sample", - "origin": "API_DEFINITION", - "description": " Lists orders in a given project and location.", - "canonical": true, - "file": "g_d_c_hardware_management.list_orders.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListOrders", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.ListOrders", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gdchardwaremanagement.v1alpha.ListOrdersResponse", - "client": { - "shortName": "GDCHardwareManagementClient", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient" - }, - "method": { - "shortName": "ListOrders", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.ListOrders", - "service": { - "shortName": "GDCHardwareManagement", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement" - } - } - } - }, - { - "regionTag": "gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetOrder_async", - "title": "GDCHardwareManagement getOrder Sample", - "origin": "API_DEFINITION", - "description": " Gets details of an order.", - "canonical": true, - "file": "g_d_c_hardware_management.get_order.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetOrder", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.GetOrder", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gdchardwaremanagement.v1alpha.Order", - "client": { - "shortName": "GDCHardwareManagementClient", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient" - }, - "method": { - "shortName": "GetOrder", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.GetOrder", - "service": { - "shortName": "GDCHardwareManagement", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement" - } - } - } - }, - { - "regionTag": "gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateOrder_async", - "title": "GDCHardwareManagement createOrder Sample", - "origin": "API_DEFINITION", - "description": " Creates a new order in a given project and location.", - "canonical": true, - "file": "g_d_c_hardware_management.create_order.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateOrder", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.CreateOrder", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "order_id", - "type": "TYPE_STRING" - }, - { - "name": "order", - "type": ".google.cloud.gdchardwaremanagement.v1alpha.Order" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GDCHardwareManagementClient", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient" - }, - "method": { - "shortName": "CreateOrder", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.CreateOrder", - "service": { - "shortName": "GDCHardwareManagement", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement" - } - } - } - }, - { - "regionTag": "gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_UpdateOrder_async", - "title": "GDCHardwareManagement updateOrder Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of an order.", - "canonical": true, - "file": "g_d_c_hardware_management.update_order.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateOrder", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.UpdateOrder", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "order", - "type": ".google.cloud.gdchardwaremanagement.v1alpha.Order" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GDCHardwareManagementClient", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient" - }, - "method": { - "shortName": "UpdateOrder", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.UpdateOrder", - "service": { - "shortName": "GDCHardwareManagement", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement" - } - } - } - }, - { - "regionTag": "gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_DeleteOrder_async", - "title": "GDCHardwareManagement deleteOrder Sample", - "origin": "API_DEFINITION", - "description": " Deletes an order.", - "canonical": true, - "file": "g_d_c_hardware_management.delete_order.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteOrder", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.DeleteOrder", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GDCHardwareManagementClient", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient" - }, - "method": { - "shortName": "DeleteOrder", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.DeleteOrder", - "service": { - "shortName": "GDCHardwareManagement", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement" - } - } - } - }, - { - "regionTag": "gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_SubmitOrder_async", - "title": "GDCHardwareManagement submitOrder Sample", - "origin": "API_DEFINITION", - "description": " Submits an order.", - "canonical": true, - "file": "g_d_c_hardware_management.submit_order.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SubmitOrder", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.SubmitOrder", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "type", - "type": ".google.cloud.gdchardwaremanagement.v1alpha.SubmitOrderRequest.Type" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GDCHardwareManagementClient", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient" - }, - "method": { - "shortName": "SubmitOrder", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.SubmitOrder", - "service": { - "shortName": "GDCHardwareManagement", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement" - } - } - } - }, - { - "regionTag": "gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CancelOrder_async", - "title": "GDCHardwareManagement cancelOrder Sample", - "origin": "API_DEFINITION", - "description": " Cancels an order.", - "canonical": true, - "file": "g_d_c_hardware_management.cancel_order.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CancelOrder", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.CancelOrder", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GDCHardwareManagementClient", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient" - }, - "method": { - "shortName": "CancelOrder", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.CancelOrder", - "service": { - "shortName": "GDCHardwareManagement", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement" - } - } - } - }, - { - "regionTag": "gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListSites_async", - "title": "GDCHardwareManagement listSites Sample", - "origin": "API_DEFINITION", - "description": " Lists sites in a given project and location.", - "canonical": true, - "file": "g_d_c_hardware_management.list_sites.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSites", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.ListSites", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gdchardwaremanagement.v1alpha.ListSitesResponse", - "client": { - "shortName": "GDCHardwareManagementClient", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient" - }, - "method": { - "shortName": "ListSites", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.ListSites", - "service": { - "shortName": "GDCHardwareManagement", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement" - } - } - } - }, - { - "regionTag": "gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetSite_async", - "title": "GDCHardwareManagement getSite Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a site.", - "canonical": true, - "file": "g_d_c_hardware_management.get_site.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSite", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.GetSite", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gdchardwaremanagement.v1alpha.Site", - "client": { - "shortName": "GDCHardwareManagementClient", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient" - }, - "method": { - "shortName": "GetSite", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.GetSite", - "service": { - "shortName": "GDCHardwareManagement", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement" - } - } - } - }, - { - "regionTag": "gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateSite_async", - "title": "GDCHardwareManagement createSite Sample", - "origin": "API_DEFINITION", - "description": " Creates a new site in a given project and location.", - "canonical": true, - "file": "g_d_c_hardware_management.create_site.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSite", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.CreateSite", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "site_id", - "type": "TYPE_STRING" - }, - { - "name": "site", - "type": ".google.cloud.gdchardwaremanagement.v1alpha.Site" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GDCHardwareManagementClient", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient" - }, - "method": { - "shortName": "CreateSite", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.CreateSite", - "service": { - "shortName": "GDCHardwareManagement", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement" - } - } - } - }, - { - "regionTag": "gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_UpdateSite_async", - "title": "GDCHardwareManagement updateSite Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a site.", - "canonical": true, - "file": "g_d_c_hardware_management.update_site.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSite", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.UpdateSite", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "site", - "type": ".google.cloud.gdchardwaremanagement.v1alpha.Site" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GDCHardwareManagementClient", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient" - }, - "method": { - "shortName": "UpdateSite", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.UpdateSite", - "service": { - "shortName": "GDCHardwareManagement", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement" - } - } - } - }, - { - "regionTag": "gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_DeleteSite_async", - "title": "GDCHardwareManagement deleteSite Sample", - "origin": "API_DEFINITION", - "description": " Deletes a site.", - "canonical": true, - "file": "g_d_c_hardware_management.delete_site.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSite", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.DeleteSite", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GDCHardwareManagementClient", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient" - }, - "method": { - "shortName": "DeleteSite", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.DeleteSite", - "service": { - "shortName": "GDCHardwareManagement", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement" - } - } - } - }, - { - "regionTag": "gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListHardwareGroups_async", - "title": "GDCHardwareManagement listHardwareGroups Sample", - "origin": "API_DEFINITION", - "description": " Lists hardware groups in a given order.", - "canonical": true, - "file": "g_d_c_hardware_management.list_hardware_groups.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListHardwareGroups", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.ListHardwareGroups", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gdchardwaremanagement.v1alpha.ListHardwareGroupsResponse", - "client": { - "shortName": "GDCHardwareManagementClient", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient" - }, - "method": { - "shortName": "ListHardwareGroups", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.ListHardwareGroups", - "service": { - "shortName": "GDCHardwareManagement", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement" - } - } - } - }, - { - "regionTag": "gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetHardwareGroup_async", - "title": "GDCHardwareManagement getHardwareGroup Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a hardware group.", - "canonical": true, - "file": "g_d_c_hardware_management.get_hardware_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetHardwareGroup", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.GetHardwareGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup", - "client": { - "shortName": "GDCHardwareManagementClient", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient" - }, - "method": { - "shortName": "GetHardwareGroup", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.GetHardwareGroup", - "service": { - "shortName": "GDCHardwareManagement", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement" - } - } - } - }, - { - "regionTag": "gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateHardwareGroup_async", - "title": "GDCHardwareManagement createHardwareGroup Sample", - "origin": "API_DEFINITION", - "description": " Creates a new hardware group in a given order.", - "canonical": true, - "file": "g_d_c_hardware_management.create_hardware_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateHardwareGroup", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.CreateHardwareGroup", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "hardware_group_id", - "type": "TYPE_STRING" - }, - { - "name": "hardware_group", - "type": ".google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GDCHardwareManagementClient", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient" - }, - "method": { - "shortName": "CreateHardwareGroup", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.CreateHardwareGroup", - "service": { - "shortName": "GDCHardwareManagement", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement" - } - } - } - }, - { - "regionTag": "gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_UpdateHardwareGroup_async", - "title": "GDCHardwareManagement updateHardwareGroup Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a hardware group.", - "canonical": true, - "file": "g_d_c_hardware_management.update_hardware_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateHardwareGroup", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.UpdateHardwareGroup", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "hardware_group", - "type": ".google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GDCHardwareManagementClient", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient" - }, - "method": { - "shortName": "UpdateHardwareGroup", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.UpdateHardwareGroup", - "service": { - "shortName": "GDCHardwareManagement", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement" - } - } - } - }, - { - "regionTag": "gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_DeleteHardwareGroup_async", - "title": "GDCHardwareManagement deleteHardwareGroup Sample", - "origin": "API_DEFINITION", - "description": " Deletes a hardware group.", - "canonical": true, - "file": "g_d_c_hardware_management.delete_hardware_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteHardwareGroup", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.DeleteHardwareGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GDCHardwareManagementClient", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient" - }, - "method": { - "shortName": "DeleteHardwareGroup", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.DeleteHardwareGroup", - "service": { - "shortName": "GDCHardwareManagement", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement" - } - } - } - }, - { - "regionTag": "gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListHardware_async", - "title": "GDCHardwareManagement listHardware Sample", - "origin": "API_DEFINITION", - "description": " Lists hardware in a given project and location.", - "canonical": true, - "file": "g_d_c_hardware_management.list_hardware.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListHardware", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.ListHardware", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gdchardwaremanagement.v1alpha.ListHardwareResponse", - "client": { - "shortName": "GDCHardwareManagementClient", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient" - }, - "method": { - "shortName": "ListHardware", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.ListHardware", - "service": { - "shortName": "GDCHardwareManagement", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement" - } - } - } - }, - { - "regionTag": "gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetHardware_async", - "title": "GDCHardwareManagement getHardware Sample", - "origin": "API_DEFINITION", - "description": " Gets hardware details.", - "canonical": true, - "file": "g_d_c_hardware_management.get_hardware.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetHardware", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.GetHardware", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gdchardwaremanagement.v1alpha.Hardware", - "client": { - "shortName": "GDCHardwareManagementClient", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient" - }, - "method": { - "shortName": "GetHardware", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.GetHardware", - "service": { - "shortName": "GDCHardwareManagement", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement" - } - } - } - }, - { - "regionTag": "gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateHardware_async", - "title": "GDCHardwareManagement createHardware Sample", - "origin": "API_DEFINITION", - "description": " Creates new hardware in a given project and location.", - "canonical": true, - "file": "g_d_c_hardware_management.create_hardware.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateHardware", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.CreateHardware", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "hardware_id", - "type": "TYPE_STRING" - }, - { - "name": "hardware", - "type": ".google.cloud.gdchardwaremanagement.v1alpha.Hardware" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GDCHardwareManagementClient", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient" - }, - "method": { - "shortName": "CreateHardware", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.CreateHardware", - "service": { - "shortName": "GDCHardwareManagement", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement" - } - } - } - }, - { - "regionTag": "gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_UpdateHardware_async", - "title": "GDCHardwareManagement updateHardware Sample", - "origin": "API_DEFINITION", - "description": " Updates hardware parameters.", - "canonical": true, - "file": "g_d_c_hardware_management.update_hardware.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateHardware", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.UpdateHardware", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "hardware", - "type": ".google.cloud.gdchardwaremanagement.v1alpha.Hardware" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GDCHardwareManagementClient", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient" - }, - "method": { - "shortName": "UpdateHardware", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.UpdateHardware", - "service": { - "shortName": "GDCHardwareManagement", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement" - } - } - } - }, - { - "regionTag": "gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_DeleteHardware_async", - "title": "GDCHardwareManagement deleteHardware Sample", - "origin": "API_DEFINITION", - "description": " Deletes hardware.", - "canonical": true, - "file": "g_d_c_hardware_management.delete_hardware.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteHardware", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.DeleteHardware", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GDCHardwareManagementClient", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient" - }, - "method": { - "shortName": "DeleteHardware", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.DeleteHardware", - "service": { - "shortName": "GDCHardwareManagement", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement" - } - } - } - }, - { - "regionTag": "gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListComments_async", - "title": "GDCHardwareManagement listComments Sample", - "origin": "API_DEFINITION", - "description": " Lists the comments on an order.", - "canonical": true, - "file": "g_d_c_hardware_management.list_comments.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListComments", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.ListComments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gdchardwaremanagement.v1alpha.ListCommentsResponse", - "client": { - "shortName": "GDCHardwareManagementClient", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient" - }, - "method": { - "shortName": "ListComments", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.ListComments", - "service": { - "shortName": "GDCHardwareManagement", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement" - } - } - } - }, - { - "regionTag": "gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetComment_async", - "title": "GDCHardwareManagement getComment Sample", - "origin": "API_DEFINITION", - "description": " Gets the content of a comment.", - "canonical": true, - "file": "g_d_c_hardware_management.get_comment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetComment", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.GetComment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gdchardwaremanagement.v1alpha.Comment", - "client": { - "shortName": "GDCHardwareManagementClient", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient" - }, - "method": { - "shortName": "GetComment", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.GetComment", - "service": { - "shortName": "GDCHardwareManagement", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement" - } - } - } - }, - { - "regionTag": "gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateComment_async", - "title": "GDCHardwareManagement createComment Sample", - "origin": "API_DEFINITION", - "description": " Creates a new comment on an order.", - "canonical": true, - "file": "g_d_c_hardware_management.create_comment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateComment", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.CreateComment", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "comment_id", - "type": "TYPE_STRING" - }, - { - "name": "comment", - "type": ".google.cloud.gdchardwaremanagement.v1alpha.Comment" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GDCHardwareManagementClient", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient" - }, - "method": { - "shortName": "CreateComment", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.CreateComment", - "service": { - "shortName": "GDCHardwareManagement", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement" - } - } - } - }, - { - "regionTag": "gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_RecordActionOnComment_async", - "title": "GDCHardwareManagement recordActionOnComment Sample", - "origin": "API_DEFINITION", - "description": " Record Action on a Comment. If the Action specified in the request is READ, the viewed time in the comment is set to the time the request was received. If the comment is already marked as read, subsequent calls will be ignored. If the Action is UNREAD, the viewed time is cleared from the comment.", - "canonical": true, - "file": "g_d_c_hardware_management.record_action_on_comment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RecordActionOnComment", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.RecordActionOnComment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "action_type", - "type": ".google.cloud.gdchardwaremanagement.v1alpha.RecordActionOnCommentRequest.ActionType" - } - ], - "resultType": ".google.cloud.gdchardwaremanagement.v1alpha.Comment", - "client": { - "shortName": "GDCHardwareManagementClient", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient" - }, - "method": { - "shortName": "RecordActionOnComment", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.RecordActionOnComment", - "service": { - "shortName": "GDCHardwareManagement", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement" - } - } - } - }, - { - "regionTag": "gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListChangeLogEntries_async", - "title": "GDCHardwareManagement listChangeLogEntries Sample", - "origin": "API_DEFINITION", - "description": " Lists the changes made to an order.", - "canonical": true, - "file": "g_d_c_hardware_management.list_change_log_entries.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListChangeLogEntries", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.ListChangeLogEntries", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gdchardwaremanagement.v1alpha.ListChangeLogEntriesResponse", - "client": { - "shortName": "GDCHardwareManagementClient", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient" - }, - "method": { - "shortName": "ListChangeLogEntries", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.ListChangeLogEntries", - "service": { - "shortName": "GDCHardwareManagement", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement" - } - } - } - }, - { - "regionTag": "gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetChangeLogEntry_async", - "title": "GDCHardwareManagement getChangeLogEntry Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a change to an order.", - "canonical": true, - "file": "g_d_c_hardware_management.get_change_log_entry.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetChangeLogEntry", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.GetChangeLogEntry", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gdchardwaremanagement.v1alpha.ChangeLogEntry", - "client": { - "shortName": "GDCHardwareManagementClient", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient" - }, - "method": { - "shortName": "GetChangeLogEntry", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.GetChangeLogEntry", - "service": { - "shortName": "GDCHardwareManagement", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement" - } - } - } - }, - { - "regionTag": "gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListSkus_async", - "title": "GDCHardwareManagement listSkus Sample", - "origin": "API_DEFINITION", - "description": " Lists SKUs for a given project and location.", - "canonical": true, - "file": "g_d_c_hardware_management.list_skus.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSkus", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.ListSkus", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gdchardwaremanagement.v1alpha.ListSkusResponse", - "client": { - "shortName": "GDCHardwareManagementClient", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient" - }, - "method": { - "shortName": "ListSkus", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.ListSkus", - "service": { - "shortName": "GDCHardwareManagement", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement" - } - } - } - }, - { - "regionTag": "gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetSku_async", - "title": "GDCHardwareManagement getSku Sample", - "origin": "API_DEFINITION", - "description": " Gets details of an SKU.", - "canonical": true, - "file": "g_d_c_hardware_management.get_sku.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSku", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.GetSku", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gdchardwaremanagement.v1alpha.Sku", - "client": { - "shortName": "GDCHardwareManagementClient", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient" - }, - "method": { - "shortName": "GetSku", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.GetSku", - "service": { - "shortName": "GDCHardwareManagement", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement" - } - } - } - }, - { - "regionTag": "gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_ListZones_async", - "title": "GDCHardwareManagement listZones Sample", - "origin": "API_DEFINITION", - "description": " Lists zones in a given project and location.", - "canonical": true, - "file": "g_d_c_hardware_management.list_zones.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListZones", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.ListZones", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gdchardwaremanagement.v1alpha.ListZonesResponse", - "client": { - "shortName": "GDCHardwareManagementClient", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient" - }, - "method": { - "shortName": "ListZones", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.ListZones", - "service": { - "shortName": "GDCHardwareManagement", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement" - } - } - } - }, - { - "regionTag": "gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_GetZone_async", - "title": "GDCHardwareManagement getZone Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a zone.", - "canonical": true, - "file": "g_d_c_hardware_management.get_zone.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetZone", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.GetZone", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gdchardwaremanagement.v1alpha.Zone", - "client": { - "shortName": "GDCHardwareManagementClient", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient" - }, - "method": { - "shortName": "GetZone", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.GetZone", - "service": { - "shortName": "GDCHardwareManagement", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement" - } - } - } - }, - { - "regionTag": "gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_CreateZone_async", - "title": "GDCHardwareManagement createZone Sample", - "origin": "API_DEFINITION", - "description": " Creates a new zone in a given project and location.", - "canonical": true, - "file": "g_d_c_hardware_management.create_zone.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateZone", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.CreateZone", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "zone_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": ".google.cloud.gdchardwaremanagement.v1alpha.Zone" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GDCHardwareManagementClient", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient" - }, - "method": { - "shortName": "CreateZone", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.CreateZone", - "service": { - "shortName": "GDCHardwareManagement", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement" - } - } - } - }, - { - "regionTag": "gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_UpdateZone_async", - "title": "GDCHardwareManagement updateZone Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a zone.", - "canonical": true, - "file": "g_d_c_hardware_management.update_zone.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateZone", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.UpdateZone", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "zone", - "type": ".google.cloud.gdchardwaremanagement.v1alpha.Zone" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GDCHardwareManagementClient", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient" - }, - "method": { - "shortName": "UpdateZone", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.UpdateZone", - "service": { - "shortName": "GDCHardwareManagement", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement" - } - } - } - }, - { - "regionTag": "gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_DeleteZone_async", - "title": "GDCHardwareManagement deleteZone Sample", - "origin": "API_DEFINITION", - "description": " Deletes a zone.", - "canonical": true, - "file": "g_d_c_hardware_management.delete_zone.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteZone", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.DeleteZone", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GDCHardwareManagementClient", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient" - }, - "method": { - "shortName": "DeleteZone", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.DeleteZone", - "service": { - "shortName": "GDCHardwareManagement", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement" - } - } - } - }, - { - "regionTag": "gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_SignalZoneState_async", - "title": "GDCHardwareManagement signalZoneState Sample", - "origin": "API_DEFINITION", - "description": " Signals the state of a zone.", - "canonical": true, - "file": "g_d_c_hardware_management.signal_zone_state.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 54, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SignalZoneState", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.SignalZoneState", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "state_signal", - "type": ".google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest.StateSignal" - }, - { - "name": "provisioning_state_signal", - "type": ".google.cloud.gdchardwaremanagement.v1alpha.SignalZoneStateRequest.ProvisioningStateSignal" - }, - { - "name": "step", - "type": "TYPE_STRING" - }, - { - "name": "details", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GDCHardwareManagementClient", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient" - }, - "method": { - "shortName": "SignalZoneState", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.SignalZoneState", - "service": { - "shortName": "GDCHardwareManagement", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement" - } - } - } - }, - { - "regionTag": "gdchardwaremanagement_v1alpha_generated_GDCHardwareManagement_RequestOrderDateChange_async", - "title": "GDCHardwareManagement requestOrderDateChange Sample", - "origin": "API_DEFINITION", - "description": " Updates the requested date change of a single Order.", - "canonical": true, - "file": "g_d_c_hardware_management.request_order_date_change.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RequestOrderDateChange", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.RequestOrderDateChange", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "requested_date", - "type": ".google.type.Date" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GDCHardwareManagementClient", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagementClient" - }, - "method": { - "shortName": "RequestOrderDateChange", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement.RequestOrderDateChange", - "service": { - "shortName": "GDCHardwareManagement", - "fullName": "google.cloud.gdchardwaremanagement.v1alpha.GDCHardwareManagement" - } - } - } - } - ] -} diff --git a/packages/google-cloud-geminidataanalytics/samples/generated/v1alpha/snippet_metadata_google.cloud.geminidataanalytics.v1alpha.json b/packages/google-cloud-geminidataanalytics/samples/generated/v1alpha/snippet_metadata_google.cloud.geminidataanalytics.v1alpha.json deleted file mode 100644 index b879fa8a416a..000000000000 --- a/packages/google-cloud-geminidataanalytics/samples/generated/v1alpha/snippet_metadata_google.cloud.geminidataanalytics.v1alpha.json +++ /dev/null @@ -1,915 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-geminidataanalytics", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.geminidataanalytics.v1alpha", - "version": "v1alpha" - } - ] - }, - "snippets": [ - { - "regionTag": "geminidataanalytics_v1alpha_generated_DataAgentService_ListDataAgents_async", - "title": "DataAgentService listDataAgents Sample", - "origin": "API_DEFINITION", - "description": " Lists DataAgents in a given project and location.", - "canonical": true, - "file": "data_agent_service.list_data_agents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDataAgents", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataAgentService.ListDataAgents", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "show_deleted", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.geminidataanalytics.v1alpha.ListDataAgentsResponse", - "client": { - "shortName": "DataAgentServiceClient", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataAgentServiceClient" - }, - "method": { - "shortName": "ListDataAgents", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataAgentService.ListDataAgents", - "service": { - "shortName": "DataAgentService", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataAgentService" - } - } - } - }, - { - "regionTag": "geminidataanalytics_v1alpha_generated_DataAgentService_ListAccessibleDataAgents_async", - "title": "DataAgentService listAccessibleDataAgents Sample", - "origin": "API_DEFINITION", - "description": " Lists DataAgents that are accessible to the caller in a given project and location.", - "canonical": true, - "file": "data_agent_service.list_accessible_data_agents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAccessibleDataAgents", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataAgentService.ListAccessibleDataAgents", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "show_deleted", - "type": "TYPE_BOOL" - }, - { - "name": "creator_filter", - "type": ".google.cloud.geminidataanalytics.v1alpha.ListAccessibleDataAgentsRequest.CreatorFilter" - } - ], - "resultType": ".google.cloud.geminidataanalytics.v1alpha.ListAccessibleDataAgentsResponse", - "client": { - "shortName": "DataAgentServiceClient", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataAgentServiceClient" - }, - "method": { - "shortName": "ListAccessibleDataAgents", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataAgentService.ListAccessibleDataAgents", - "service": { - "shortName": "DataAgentService", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataAgentService" - } - } - } - }, - { - "regionTag": "geminidataanalytics_v1alpha_generated_DataAgentService_GetDataAgent_async", - "title": "DataAgentService getDataAgent Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single DataAgent.", - "canonical": true, - "file": "data_agent_service.get_data_agent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDataAgent", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataAgentService.GetDataAgent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.geminidataanalytics.v1alpha.DataAgent", - "client": { - "shortName": "DataAgentServiceClient", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataAgentServiceClient" - }, - "method": { - "shortName": "GetDataAgent", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataAgentService.GetDataAgent", - "service": { - "shortName": "DataAgentService", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataAgentService" - } - } - } - }, - { - "regionTag": "geminidataanalytics_v1alpha_generated_DataAgentService_CreateDataAgent_async", - "title": "DataAgentService createDataAgent Sample", - "origin": "API_DEFINITION", - "description": " Creates a new DataAgent in a given project and location.", - "canonical": true, - "file": "data_agent_service.create_data_agent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDataAgent", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataAgentService.CreateDataAgent", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "data_agent_id", - "type": "TYPE_STRING" - }, - { - "name": "data_agent", - "type": ".google.cloud.geminidataanalytics.v1alpha.DataAgent" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataAgentServiceClient", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataAgentServiceClient" - }, - "method": { - "shortName": "CreateDataAgent", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataAgentService.CreateDataAgent", - "service": { - "shortName": "DataAgentService", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataAgentService" - } - } - } - }, - { - "regionTag": "geminidataanalytics_v1alpha_generated_DataAgentService_CreateDataAgentSync_async", - "title": "DataAgentService createDataAgentSync Sample", - "origin": "API_DEFINITION", - "description": " Creates a new DataAgent in a given project and location synchronously.", - "canonical": true, - "file": "data_agent_service.create_data_agent_sync.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDataAgentSync", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataAgentService.CreateDataAgentSync", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "data_agent_id", - "type": "TYPE_STRING" - }, - { - "name": "data_agent", - "type": ".google.cloud.geminidataanalytics.v1alpha.DataAgent" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.geminidataanalytics.v1alpha.DataAgent", - "client": { - "shortName": "DataAgentServiceClient", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataAgentServiceClient" - }, - "method": { - "shortName": "CreateDataAgentSync", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataAgentService.CreateDataAgentSync", - "service": { - "shortName": "DataAgentService", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataAgentService" - } - } - } - }, - { - "regionTag": "geminidataanalytics_v1alpha_generated_DataAgentService_UpdateDataAgent_async", - "title": "DataAgentService updateDataAgent Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single DataAgent.", - "canonical": true, - "file": "data_agent_service.update_data_agent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDataAgent", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataAgentService.UpdateDataAgent", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "data_agent", - "type": ".google.cloud.geminidataanalytics.v1alpha.DataAgent" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataAgentServiceClient", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataAgentServiceClient" - }, - "method": { - "shortName": "UpdateDataAgent", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataAgentService.UpdateDataAgent", - "service": { - "shortName": "DataAgentService", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataAgentService" - } - } - } - }, - { - "regionTag": "geminidataanalytics_v1alpha_generated_DataAgentService_UpdateDataAgentSync_async", - "title": "DataAgentService updateDataAgentSync Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single DataAgent synchronously.", - "canonical": true, - "file": "data_agent_service.update_data_agent_sync.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDataAgentSync", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataAgentService.UpdateDataAgentSync", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "data_agent", - "type": ".google.cloud.geminidataanalytics.v1alpha.DataAgent" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.geminidataanalytics.v1alpha.DataAgent", - "client": { - "shortName": "DataAgentServiceClient", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataAgentServiceClient" - }, - "method": { - "shortName": "UpdateDataAgentSync", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataAgentService.UpdateDataAgentSync", - "service": { - "shortName": "DataAgentService", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataAgentService" - } - } - } - }, - { - "regionTag": "geminidataanalytics_v1alpha_generated_DataAgentService_DeleteDataAgent_async", - "title": "DataAgentService deleteDataAgent Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single DataAgent.", - "canonical": true, - "file": "data_agent_service.delete_data_agent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDataAgent", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataAgentService.DeleteDataAgent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataAgentServiceClient", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataAgentServiceClient" - }, - "method": { - "shortName": "DeleteDataAgent", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataAgentService.DeleteDataAgent", - "service": { - "shortName": "DataAgentService", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataAgentService" - } - } - } - }, - { - "regionTag": "geminidataanalytics_v1alpha_generated_DataAgentService_DeleteDataAgentSync_async", - "title": "DataAgentService deleteDataAgentSync Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single DataAgent synchronously.", - "canonical": true, - "file": "data_agent_service.delete_data_agent_sync.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDataAgentSync", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataAgentService.DeleteDataAgentSync", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DataAgentServiceClient", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataAgentServiceClient" - }, - "method": { - "shortName": "DeleteDataAgentSync", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataAgentService.DeleteDataAgentSync", - "service": { - "shortName": "DataAgentService", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataAgentService" - } - } - } - }, - { - "regionTag": "geminidataanalytics_v1alpha_generated_DataAgentService_GetIamPolicy_async", - "title": "DataAgentService getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the IAM policy for DataAgent", - "canonical": true, - "file": "data_agent_service.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataAgentService.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": ".google.iam.v1.GetPolicyOptions" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "DataAgentServiceClient", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataAgentServiceClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataAgentService.GetIamPolicy", - "service": { - "shortName": "DataAgentService", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataAgentService" - } - } - } - }, - { - "regionTag": "geminidataanalytics_v1alpha_generated_DataAgentService_SetIamPolicy_async", - "title": "DataAgentService setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the IAM policy for a DataAgent.", - "canonical": true, - "file": "data_agent_service.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataAgentService.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.iam.v1.Policy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "DataAgentServiceClient", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataAgentServiceClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataAgentService.SetIamPolicy", - "service": { - "shortName": "DataAgentService", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataAgentService" - } - } - } - }, - { - "regionTag": "geminidataanalytics_v1alpha_generated_DataChatService_Chat_async", - "title": "DataAgentService chat Sample", - "origin": "API_DEFINITION", - "description": " Answers a data question by generating a stream of [Message][google.cloud.geminidataanalytics.v1alpha.Message] objects.", - "canonical": true, - "file": "data_chat_service.chat.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 93, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Chat", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataChatService.Chat", - "async": true, - "parameters": [ - { - "name": "inline_context", - "type": ".google.cloud.geminidataanalytics.v1alpha.Context" - }, - { - "name": "conversation_reference", - "type": ".google.cloud.geminidataanalytics.v1alpha.ConversationReference" - }, - { - "name": "data_agent_context", - "type": ".google.cloud.geminidataanalytics.v1alpha.DataAgentContext" - }, - { - "name": "client_managed_resource_context", - "type": ".google.cloud.geminidataanalytics.v1alpha.ClientManagedResourceContext" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "messages", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "thinking_mode", - "type": ".google.cloud.geminidataanalytics.v1alpha.ChatRequest.ThinkingMode" - } - ], - "resultType": ".google.cloud.geminidataanalytics.v1alpha.Message", - "client": { - "shortName": "DataChatServiceClient", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataChatServiceClient" - }, - "method": { - "shortName": "Chat", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataChatService.Chat", - "service": { - "shortName": "DataChatService", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataChatService" - } - } - } - }, - { - "regionTag": "geminidataanalytics_v1alpha_generated_DataChatService_CreateConversation_async", - "title": "DataAgentService createConversation Sample", - "origin": "API_DEFINITION", - "description": " Creates a new conversation to persist the conversation history. Each conversation will have multiple messages associated with it.", - "canonical": true, - "file": "data_chat_service.create_conversation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateConversation", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataChatService.CreateConversation", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "conversation_id", - "type": "TYPE_STRING" - }, - { - "name": "conversation", - "type": ".google.cloud.geminidataanalytics.v1alpha.Conversation" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.geminidataanalytics.v1alpha.Conversation", - "client": { - "shortName": "DataChatServiceClient", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataChatServiceClient" - }, - "method": { - "shortName": "CreateConversation", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataChatService.CreateConversation", - "service": { - "shortName": "DataChatService", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataChatService" - } - } - } - }, - { - "regionTag": "geminidataanalytics_v1alpha_generated_DataChatService_DeleteConversation_async", - "title": "DataAgentService deleteConversation Sample", - "origin": "API_DEFINITION", - "description": " Deletes a conversation.", - "canonical": true, - "file": "data_chat_service.delete_conversation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteConversation", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataChatService.DeleteConversation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DataChatServiceClient", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataChatServiceClient" - }, - "method": { - "shortName": "DeleteConversation", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataChatService.DeleteConversation", - "service": { - "shortName": "DataChatService", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataChatService" - } - } - } - }, - { - "regionTag": "geminidataanalytics_v1alpha_generated_DataChatService_GetConversation_async", - "title": "DataAgentService getConversation Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single conversation by using conversation id and parent.", - "canonical": true, - "file": "data_chat_service.get_conversation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetConversation", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataChatService.GetConversation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.geminidataanalytics.v1alpha.Conversation", - "client": { - "shortName": "DataChatServiceClient", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataChatServiceClient" - }, - "method": { - "shortName": "GetConversation", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataChatService.GetConversation", - "service": { - "shortName": "DataChatService", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataChatService" - } - } - } - }, - { - "regionTag": "geminidataanalytics_v1alpha_generated_DataChatService_ListConversations_async", - "title": "DataAgentService listConversations Sample", - "origin": "API_DEFINITION", - "description": " Lists all conversations for a given parent.", - "canonical": true, - "file": "data_chat_service.list_conversations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListConversations", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataChatService.ListConversations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.geminidataanalytics.v1alpha.ListConversationsResponse", - "client": { - "shortName": "DataChatServiceClient", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataChatServiceClient" - }, - "method": { - "shortName": "ListConversations", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataChatService.ListConversations", - "service": { - "shortName": "DataChatService", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataChatService" - } - } - } - }, - { - "regionTag": "geminidataanalytics_v1alpha_generated_DataChatService_ListMessages_async", - "title": "DataAgentService listMessages Sample", - "origin": "API_DEFINITION", - "description": " Lists all messages for a given conversation.", - "canonical": true, - "file": "data_chat_service.list_messages.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMessages", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataChatService.ListMessages", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.geminidataanalytics.v1alpha.ListMessagesResponse", - "client": { - "shortName": "DataChatServiceClient", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataChatServiceClient" - }, - "method": { - "shortName": "ListMessages", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataChatService.ListMessages", - "service": { - "shortName": "DataChatService", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataChatService" - } - } - } - }, - { - "regionTag": "geminidataanalytics_v1alpha_generated_DataChatService_QueryData_async", - "title": "DataAgentService queryData Sample", - "origin": "API_DEFINITION", - "description": " Queries data from a natural language user query.", - "canonical": true, - "file": "data_chat_service.query_data.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryData", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataChatService.QueryData", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "prompt", - "type": "TYPE_STRING" - }, - { - "name": "context", - "type": ".google.cloud.geminidataanalytics.v1alpha.QueryDataContext" - }, - { - "name": "generation_options", - "type": ".google.cloud.geminidataanalytics.v1alpha.GenerationOptions" - } - ], - "resultType": ".google.cloud.geminidataanalytics.v1alpha.QueryDataResponse", - "client": { - "shortName": "DataChatServiceClient", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataChatServiceClient" - }, - "method": { - "shortName": "QueryData", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataChatService.QueryData", - "service": { - "shortName": "DataChatService", - "fullName": "google.cloud.geminidataanalytics.v1alpha.DataChatService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-geminidataanalytics/samples/generated/v1beta/snippet_metadata_google.cloud.geminidataanalytics.v1beta.json b/packages/google-cloud-geminidataanalytics/samples/generated/v1beta/snippet_metadata_google.cloud.geminidataanalytics.v1beta.json deleted file mode 100644 index a82207e4b5a0..000000000000 --- a/packages/google-cloud-geminidataanalytics/samples/generated/v1beta/snippet_metadata_google.cloud.geminidataanalytics.v1beta.json +++ /dev/null @@ -1,915 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-geminidataanalytics", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.geminidataanalytics.v1beta", - "version": "v1beta" - } - ] - }, - "snippets": [ - { - "regionTag": "geminidataanalytics_v1beta_generated_DataAgentService_ListDataAgents_async", - "title": "DataAgentService listDataAgents Sample", - "origin": "API_DEFINITION", - "description": " Lists DataAgents in a given project and location.", - "canonical": true, - "file": "data_agent_service.list_data_agents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDataAgents", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataAgentService.ListDataAgents", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "show_deleted", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.geminidataanalytics.v1beta.ListDataAgentsResponse", - "client": { - "shortName": "DataAgentServiceClient", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient" - }, - "method": { - "shortName": "ListDataAgents", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataAgentService.ListDataAgents", - "service": { - "shortName": "DataAgentService", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataAgentService" - } - } - } - }, - { - "regionTag": "geminidataanalytics_v1beta_generated_DataAgentService_ListAccessibleDataAgents_async", - "title": "DataAgentService listAccessibleDataAgents Sample", - "origin": "API_DEFINITION", - "description": " Lists DataAgents that are accessible to the caller in a given project and location.", - "canonical": true, - "file": "data_agent_service.list_accessible_data_agents.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAccessibleDataAgents", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataAgentService.ListAccessibleDataAgents", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "show_deleted", - "type": "TYPE_BOOL" - }, - { - "name": "creator_filter", - "type": ".google.cloud.geminidataanalytics.v1beta.ListAccessibleDataAgentsRequest.CreatorFilter" - } - ], - "resultType": ".google.cloud.geminidataanalytics.v1beta.ListAccessibleDataAgentsResponse", - "client": { - "shortName": "DataAgentServiceClient", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient" - }, - "method": { - "shortName": "ListAccessibleDataAgents", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataAgentService.ListAccessibleDataAgents", - "service": { - "shortName": "DataAgentService", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataAgentService" - } - } - } - }, - { - "regionTag": "geminidataanalytics_v1beta_generated_DataAgentService_GetDataAgent_async", - "title": "DataAgentService getDataAgent Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single DataAgent.", - "canonical": true, - "file": "data_agent_service.get_data_agent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDataAgent", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataAgentService.GetDataAgent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.geminidataanalytics.v1beta.DataAgent", - "client": { - "shortName": "DataAgentServiceClient", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient" - }, - "method": { - "shortName": "GetDataAgent", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataAgentService.GetDataAgent", - "service": { - "shortName": "DataAgentService", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataAgentService" - } - } - } - }, - { - "regionTag": "geminidataanalytics_v1beta_generated_DataAgentService_CreateDataAgent_async", - "title": "DataAgentService createDataAgent Sample", - "origin": "API_DEFINITION", - "description": " Creates a new DataAgent in a given project and location.", - "canonical": true, - "file": "data_agent_service.create_data_agent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDataAgent", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataAgentService.CreateDataAgent", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "data_agent_id", - "type": "TYPE_STRING" - }, - { - "name": "data_agent", - "type": ".google.cloud.geminidataanalytics.v1beta.DataAgent" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataAgentServiceClient", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient" - }, - "method": { - "shortName": "CreateDataAgent", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataAgentService.CreateDataAgent", - "service": { - "shortName": "DataAgentService", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataAgentService" - } - } - } - }, - { - "regionTag": "geminidataanalytics_v1beta_generated_DataAgentService_CreateDataAgentSync_async", - "title": "DataAgentService createDataAgentSync Sample", - "origin": "API_DEFINITION", - "description": " Creates a new DataAgent in a given project and location synchronously.", - "canonical": true, - "file": "data_agent_service.create_data_agent_sync.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDataAgentSync", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataAgentService.CreateDataAgentSync", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "data_agent_id", - "type": "TYPE_STRING" - }, - { - "name": "data_agent", - "type": ".google.cloud.geminidataanalytics.v1beta.DataAgent" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.geminidataanalytics.v1beta.DataAgent", - "client": { - "shortName": "DataAgentServiceClient", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient" - }, - "method": { - "shortName": "CreateDataAgentSync", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataAgentService.CreateDataAgentSync", - "service": { - "shortName": "DataAgentService", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataAgentService" - } - } - } - }, - { - "regionTag": "geminidataanalytics_v1beta_generated_DataAgentService_UpdateDataAgent_async", - "title": "DataAgentService updateDataAgent Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single DataAgent.", - "canonical": true, - "file": "data_agent_service.update_data_agent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDataAgent", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataAgentService.UpdateDataAgent", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "data_agent", - "type": ".google.cloud.geminidataanalytics.v1beta.DataAgent" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataAgentServiceClient", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient" - }, - "method": { - "shortName": "UpdateDataAgent", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataAgentService.UpdateDataAgent", - "service": { - "shortName": "DataAgentService", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataAgentService" - } - } - } - }, - { - "regionTag": "geminidataanalytics_v1beta_generated_DataAgentService_UpdateDataAgentSync_async", - "title": "DataAgentService updateDataAgentSync Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single DataAgent synchronously.", - "canonical": true, - "file": "data_agent_service.update_data_agent_sync.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDataAgentSync", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataAgentService.UpdateDataAgentSync", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "data_agent", - "type": ".google.cloud.geminidataanalytics.v1beta.DataAgent" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.geminidataanalytics.v1beta.DataAgent", - "client": { - "shortName": "DataAgentServiceClient", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient" - }, - "method": { - "shortName": "UpdateDataAgentSync", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataAgentService.UpdateDataAgentSync", - "service": { - "shortName": "DataAgentService", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataAgentService" - } - } - } - }, - { - "regionTag": "geminidataanalytics_v1beta_generated_DataAgentService_DeleteDataAgent_async", - "title": "DataAgentService deleteDataAgent Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single DataAgent.", - "canonical": true, - "file": "data_agent_service.delete_data_agent.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDataAgent", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataAgentService.DeleteDataAgent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataAgentServiceClient", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient" - }, - "method": { - "shortName": "DeleteDataAgent", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataAgentService.DeleteDataAgent", - "service": { - "shortName": "DataAgentService", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataAgentService" - } - } - } - }, - { - "regionTag": "geminidataanalytics_v1beta_generated_DataAgentService_DeleteDataAgentSync_async", - "title": "DataAgentService deleteDataAgentSync Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single DataAgent synchronously.", - "canonical": true, - "file": "data_agent_service.delete_data_agent_sync.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDataAgentSync", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataAgentService.DeleteDataAgentSync", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DataAgentServiceClient", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient" - }, - "method": { - "shortName": "DeleteDataAgentSync", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataAgentService.DeleteDataAgentSync", - "service": { - "shortName": "DataAgentService", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataAgentService" - } - } - } - }, - { - "regionTag": "geminidataanalytics_v1beta_generated_DataAgentService_GetIamPolicy_async", - "title": "DataAgentService getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the IAM policy for DataAgent", - "canonical": true, - "file": "data_agent_service.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataAgentService.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": ".google.iam.v1.GetPolicyOptions" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "DataAgentServiceClient", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataAgentService.GetIamPolicy", - "service": { - "shortName": "DataAgentService", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataAgentService" - } - } - } - }, - { - "regionTag": "geminidataanalytics_v1beta_generated_DataAgentService_SetIamPolicy_async", - "title": "DataAgentService setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the IAM policy for a DataAgent.", - "canonical": true, - "file": "data_agent_service.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataAgentService.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.iam.v1.Policy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "DataAgentServiceClient", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataAgentServiceClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataAgentService.SetIamPolicy", - "service": { - "shortName": "DataAgentService", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataAgentService" - } - } - } - }, - { - "regionTag": "geminidataanalytics_v1beta_generated_DataChatService_Chat_async", - "title": "DataAgentService chat Sample", - "origin": "API_DEFINITION", - "description": " Answers a data question by generating a stream of [Message][google.cloud.geminidataanalytics.v1alpha.Message] objects.", - "canonical": true, - "file": "data_chat_service.chat.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 93, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Chat", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataChatService.Chat", - "async": true, - "parameters": [ - { - "name": "inline_context", - "type": ".google.cloud.geminidataanalytics.v1beta.Context" - }, - { - "name": "conversation_reference", - "type": ".google.cloud.geminidataanalytics.v1beta.ConversationReference" - }, - { - "name": "data_agent_context", - "type": ".google.cloud.geminidataanalytics.v1beta.DataAgentContext" - }, - { - "name": "client_managed_resource_context", - "type": ".google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "messages", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "thinking_mode", - "type": ".google.cloud.geminidataanalytics.v1beta.ChatRequest.ThinkingMode" - } - ], - "resultType": ".google.cloud.geminidataanalytics.v1beta.Message", - "client": { - "shortName": "DataChatServiceClient", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataChatServiceClient" - }, - "method": { - "shortName": "Chat", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataChatService.Chat", - "service": { - "shortName": "DataChatService", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataChatService" - } - } - } - }, - { - "regionTag": "geminidataanalytics_v1beta_generated_DataChatService_CreateConversation_async", - "title": "DataAgentService createConversation Sample", - "origin": "API_DEFINITION", - "description": " Creates a new conversation to persist the conversation history. Each conversation will have multiple messages associated with it.", - "canonical": true, - "file": "data_chat_service.create_conversation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateConversation", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataChatService.CreateConversation", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "conversation_id", - "type": "TYPE_STRING" - }, - { - "name": "conversation", - "type": ".google.cloud.geminidataanalytics.v1beta.Conversation" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.geminidataanalytics.v1beta.Conversation", - "client": { - "shortName": "DataChatServiceClient", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataChatServiceClient" - }, - "method": { - "shortName": "CreateConversation", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataChatService.CreateConversation", - "service": { - "shortName": "DataChatService", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataChatService" - } - } - } - }, - { - "regionTag": "geminidataanalytics_v1beta_generated_DataChatService_DeleteConversation_async", - "title": "DataAgentService deleteConversation Sample", - "origin": "API_DEFINITION", - "description": " Deletes a conversation.", - "canonical": true, - "file": "data_chat_service.delete_conversation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteConversation", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataChatService.DeleteConversation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DataChatServiceClient", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataChatServiceClient" - }, - "method": { - "shortName": "DeleteConversation", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataChatService.DeleteConversation", - "service": { - "shortName": "DataChatService", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataChatService" - } - } - } - }, - { - "regionTag": "geminidataanalytics_v1beta_generated_DataChatService_GetConversation_async", - "title": "DataAgentService getConversation Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single conversation by using conversation id and parent.", - "canonical": true, - "file": "data_chat_service.get_conversation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetConversation", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataChatService.GetConversation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.geminidataanalytics.v1beta.Conversation", - "client": { - "shortName": "DataChatServiceClient", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataChatServiceClient" - }, - "method": { - "shortName": "GetConversation", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataChatService.GetConversation", - "service": { - "shortName": "DataChatService", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataChatService" - } - } - } - }, - { - "regionTag": "geminidataanalytics_v1beta_generated_DataChatService_ListConversations_async", - "title": "DataAgentService listConversations Sample", - "origin": "API_DEFINITION", - "description": " Lists all conversations for a given parent.", - "canonical": true, - "file": "data_chat_service.list_conversations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListConversations", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataChatService.ListConversations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.geminidataanalytics.v1beta.ListConversationsResponse", - "client": { - "shortName": "DataChatServiceClient", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataChatServiceClient" - }, - "method": { - "shortName": "ListConversations", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataChatService.ListConversations", - "service": { - "shortName": "DataChatService", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataChatService" - } - } - } - }, - { - "regionTag": "geminidataanalytics_v1beta_generated_DataChatService_ListMessages_async", - "title": "DataAgentService listMessages Sample", - "origin": "API_DEFINITION", - "description": " Lists all messages for a given conversation.", - "canonical": true, - "file": "data_chat_service.list_messages.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMessages", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataChatService.ListMessages", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.geminidataanalytics.v1beta.ListMessagesResponse", - "client": { - "shortName": "DataChatServiceClient", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataChatServiceClient" - }, - "method": { - "shortName": "ListMessages", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataChatService.ListMessages", - "service": { - "shortName": "DataChatService", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataChatService" - } - } - } - }, - { - "regionTag": "geminidataanalytics_v1beta_generated_DataChatService_QueryData_async", - "title": "DataAgentService queryData Sample", - "origin": "API_DEFINITION", - "description": " Queries data from a natural language user query.", - "canonical": true, - "file": "data_chat_service.query_data.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryData", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataChatService.QueryData", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "prompt", - "type": "TYPE_STRING" - }, - { - "name": "context", - "type": ".google.cloud.geminidataanalytics.v1beta.QueryDataContext" - }, - { - "name": "generation_options", - "type": ".google.cloud.geminidataanalytics.v1beta.GenerationOptions" - } - ], - "resultType": ".google.cloud.geminidataanalytics.v1beta.QueryDataResponse", - "client": { - "shortName": "DataChatServiceClient", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataChatServiceClient" - }, - "method": { - "shortName": "QueryData", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataChatService.QueryData", - "service": { - "shortName": "DataChatService", - "fullName": "google.cloud.geminidataanalytics.v1beta.DataChatService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-gkebackup/samples/generated/v1/snippet_metadata_google.cloud.gkebackup.v1.json b/packages/google-cloud-gkebackup/samples/generated/v1/snippet_metadata_google.cloud.gkebackup.v1.json deleted file mode 100644 index 196fd32f35f1..000000000000 --- a/packages/google-cloud-gkebackup/samples/generated/v1/snippet_metadata_google.cloud.gkebackup.v1.json +++ /dev/null @@ -1,1851 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-gkebackup", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.gkebackup.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "gkebackup_v1_generated_BackupForGKE_CreateBackupPlan_async", - "title": "BackupForGKE createBackupPlan Sample", - "origin": "API_DEFINITION", - "description": " Creates a new BackupPlan in a given location.", - "canonical": true, - "file": "backup_for_g_k_e.create_backup_plan.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateBackupPlan", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.CreateBackupPlan", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "backup_plan", - "type": ".google.cloud.gkebackup.v1.BackupPlan" - }, - { - "name": "backup_plan_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BackupForGKEClient", - "fullName": "google.cloud.gkebackup.v1.BackupForGKEClient" - }, - "method": { - "shortName": "CreateBackupPlan", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.CreateBackupPlan", - "service": { - "shortName": "BackupForGKE", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE" - } - } - } - }, - { - "regionTag": "gkebackup_v1_generated_BackupForGKE_ListBackupPlans_async", - "title": "BackupForGKE listBackupPlans Sample", - "origin": "API_DEFINITION", - "description": " Lists BackupPlans in a given location.", - "canonical": true, - "file": "backup_for_g_k_e.list_backup_plans.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBackupPlans", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.ListBackupPlans", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkebackup.v1.ListBackupPlansResponse", - "client": { - "shortName": "BackupForGKEClient", - "fullName": "google.cloud.gkebackup.v1.BackupForGKEClient" - }, - "method": { - "shortName": "ListBackupPlans", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.ListBackupPlans", - "service": { - "shortName": "BackupForGKE", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE" - } - } - } - }, - { - "regionTag": "gkebackup_v1_generated_BackupForGKE_GetBackupPlan_async", - "title": "BackupForGKE getBackupPlan Sample", - "origin": "API_DEFINITION", - "description": " Retrieve the details of a single BackupPlan.", - "canonical": true, - "file": "backup_for_g_k_e.get_backup_plan.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBackupPlan", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.GetBackupPlan", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkebackup.v1.BackupPlan", - "client": { - "shortName": "BackupForGKEClient", - "fullName": "google.cloud.gkebackup.v1.BackupForGKEClient" - }, - "method": { - "shortName": "GetBackupPlan", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.GetBackupPlan", - "service": { - "shortName": "BackupForGKE", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE" - } - } - } - }, - { - "regionTag": "gkebackup_v1_generated_BackupForGKE_UpdateBackupPlan_async", - "title": "BackupForGKE updateBackupPlan Sample", - "origin": "API_DEFINITION", - "description": " Update a BackupPlan.", - "canonical": true, - "file": "backup_for_g_k_e.update_backup_plan.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateBackupPlan", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.UpdateBackupPlan", - "async": true, - "parameters": [ - { - "name": "backup_plan", - "type": ".google.cloud.gkebackup.v1.BackupPlan" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BackupForGKEClient", - "fullName": "google.cloud.gkebackup.v1.BackupForGKEClient" - }, - "method": { - "shortName": "UpdateBackupPlan", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.UpdateBackupPlan", - "service": { - "shortName": "BackupForGKE", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE" - } - } - } - }, - { - "regionTag": "gkebackup_v1_generated_BackupForGKE_DeleteBackupPlan_async", - "title": "BackupForGKE deleteBackupPlan Sample", - "origin": "API_DEFINITION", - "description": " Deletes an existing BackupPlan.", - "canonical": true, - "file": "backup_for_g_k_e.delete_backup_plan.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteBackupPlan", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.DeleteBackupPlan", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BackupForGKEClient", - "fullName": "google.cloud.gkebackup.v1.BackupForGKEClient" - }, - "method": { - "shortName": "DeleteBackupPlan", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.DeleteBackupPlan", - "service": { - "shortName": "BackupForGKE", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE" - } - } - } - }, - { - "regionTag": "gkebackup_v1_generated_BackupForGKE_CreateBackupChannel_async", - "title": "BackupForGKE createBackupChannel Sample", - "origin": "API_DEFINITION", - "description": " Creates a new BackupChannel in a given location.", - "canonical": true, - "file": "backup_for_g_k_e.create_backup_channel.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateBackupChannel", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.CreateBackupChannel", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "backup_channel", - "type": ".google.cloud.gkebackup.v1.BackupChannel" - }, - { - "name": "backup_channel_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BackupForGKEClient", - "fullName": "google.cloud.gkebackup.v1.BackupForGKEClient" - }, - "method": { - "shortName": "CreateBackupChannel", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.CreateBackupChannel", - "service": { - "shortName": "BackupForGKE", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE" - } - } - } - }, - { - "regionTag": "gkebackup_v1_generated_BackupForGKE_ListBackupChannels_async", - "title": "BackupForGKE listBackupChannels Sample", - "origin": "API_DEFINITION", - "description": " Lists BackupChannels in a given location.", - "canonical": true, - "file": "backup_for_g_k_e.list_backup_channels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBackupChannels", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.ListBackupChannels", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkebackup.v1.ListBackupChannelsResponse", - "client": { - "shortName": "BackupForGKEClient", - "fullName": "google.cloud.gkebackup.v1.BackupForGKEClient" - }, - "method": { - "shortName": "ListBackupChannels", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.ListBackupChannels", - "service": { - "shortName": "BackupForGKE", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE" - } - } - } - }, - { - "regionTag": "gkebackup_v1_generated_BackupForGKE_GetBackupChannel_async", - "title": "BackupForGKE getBackupChannel Sample", - "origin": "API_DEFINITION", - "description": " Retrieve the details of a single BackupChannel.", - "canonical": true, - "file": "backup_for_g_k_e.get_backup_channel.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBackupChannel", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.GetBackupChannel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkebackup.v1.BackupChannel", - "client": { - "shortName": "BackupForGKEClient", - "fullName": "google.cloud.gkebackup.v1.BackupForGKEClient" - }, - "method": { - "shortName": "GetBackupChannel", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.GetBackupChannel", - "service": { - "shortName": "BackupForGKE", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE" - } - } - } - }, - { - "regionTag": "gkebackup_v1_generated_BackupForGKE_UpdateBackupChannel_async", - "title": "BackupForGKE updateBackupChannel Sample", - "origin": "API_DEFINITION", - "description": " Update a BackupChannel.", - "canonical": true, - "file": "backup_for_g_k_e.update_backup_channel.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateBackupChannel", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.UpdateBackupChannel", - "async": true, - "parameters": [ - { - "name": "backup_channel", - "type": ".google.cloud.gkebackup.v1.BackupChannel" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BackupForGKEClient", - "fullName": "google.cloud.gkebackup.v1.BackupForGKEClient" - }, - "method": { - "shortName": "UpdateBackupChannel", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.UpdateBackupChannel", - "service": { - "shortName": "BackupForGKE", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE" - } - } - } - }, - { - "regionTag": "gkebackup_v1_generated_BackupForGKE_DeleteBackupChannel_async", - "title": "BackupForGKE deleteBackupChannel Sample", - "origin": "API_DEFINITION", - "description": " Deletes an existing BackupChannel.", - "canonical": true, - "file": "backup_for_g_k_e.delete_backup_channel.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteBackupChannel", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.DeleteBackupChannel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BackupForGKEClient", - "fullName": "google.cloud.gkebackup.v1.BackupForGKEClient" - }, - "method": { - "shortName": "DeleteBackupChannel", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.DeleteBackupChannel", - "service": { - "shortName": "BackupForGKE", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE" - } - } - } - }, - { - "regionTag": "gkebackup_v1_generated_BackupForGKE_ListBackupPlanBindings_async", - "title": "BackupForGKE listBackupPlanBindings Sample", - "origin": "API_DEFINITION", - "description": " Lists BackupPlanBindings in a given location.", - "canonical": true, - "file": "backup_for_g_k_e.list_backup_plan_bindings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBackupPlanBindings", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.ListBackupPlanBindings", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkebackup.v1.ListBackupPlanBindingsResponse", - "client": { - "shortName": "BackupForGKEClient", - "fullName": "google.cloud.gkebackup.v1.BackupForGKEClient" - }, - "method": { - "shortName": "ListBackupPlanBindings", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.ListBackupPlanBindings", - "service": { - "shortName": "BackupForGKE", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE" - } - } - } - }, - { - "regionTag": "gkebackup_v1_generated_BackupForGKE_GetBackupPlanBinding_async", - "title": "BackupForGKE getBackupPlanBinding Sample", - "origin": "API_DEFINITION", - "description": " Retrieve the details of a single BackupPlanBinding.", - "canonical": true, - "file": "backup_for_g_k_e.get_backup_plan_binding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBackupPlanBinding", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.GetBackupPlanBinding", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkebackup.v1.BackupPlanBinding", - "client": { - "shortName": "BackupForGKEClient", - "fullName": "google.cloud.gkebackup.v1.BackupForGKEClient" - }, - "method": { - "shortName": "GetBackupPlanBinding", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.GetBackupPlanBinding", - "service": { - "shortName": "BackupForGKE", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE" - } - } - } - }, - { - "regionTag": "gkebackup_v1_generated_BackupForGKE_CreateBackup_async", - "title": "BackupForGKE createBackup Sample", - "origin": "API_DEFINITION", - "description": " Creates a Backup for the given BackupPlan.", - "canonical": true, - "file": "backup_for_g_k_e.create_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateBackup", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.CreateBackup", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "backup", - "type": ".google.cloud.gkebackup.v1.Backup" - }, - { - "name": "backup_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BackupForGKEClient", - "fullName": "google.cloud.gkebackup.v1.BackupForGKEClient" - }, - "method": { - "shortName": "CreateBackup", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.CreateBackup", - "service": { - "shortName": "BackupForGKE", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE" - } - } - } - }, - { - "regionTag": "gkebackup_v1_generated_BackupForGKE_ListBackups_async", - "title": "BackupForGKE listBackups Sample", - "origin": "API_DEFINITION", - "description": " Lists the Backups for a given BackupPlan.", - "canonical": true, - "file": "backup_for_g_k_e.list_backups.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBackups", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.ListBackups", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.gkebackup.v1.ListBackupsResponse", - "client": { - "shortName": "BackupForGKEClient", - "fullName": "google.cloud.gkebackup.v1.BackupForGKEClient" - }, - "method": { - "shortName": "ListBackups", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.ListBackups", - "service": { - "shortName": "BackupForGKE", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE" - } - } - } - }, - { - "regionTag": "gkebackup_v1_generated_BackupForGKE_GetBackup_async", - "title": "BackupForGKE getBackup Sample", - "origin": "API_DEFINITION", - "description": " Retrieve the details of a single Backup.", - "canonical": true, - "file": "backup_for_g_k_e.get_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBackup", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.GetBackup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkebackup.v1.Backup", - "client": { - "shortName": "BackupForGKEClient", - "fullName": "google.cloud.gkebackup.v1.BackupForGKEClient" - }, - "method": { - "shortName": "GetBackup", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.GetBackup", - "service": { - "shortName": "BackupForGKE", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE" - } - } - } - }, - { - "regionTag": "gkebackup_v1_generated_BackupForGKE_UpdateBackup_async", - "title": "BackupForGKE updateBackup Sample", - "origin": "API_DEFINITION", - "description": " Update a Backup.", - "canonical": true, - "file": "backup_for_g_k_e.update_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateBackup", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.UpdateBackup", - "async": true, - "parameters": [ - { - "name": "backup", - "type": ".google.cloud.gkebackup.v1.Backup" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BackupForGKEClient", - "fullName": "google.cloud.gkebackup.v1.BackupForGKEClient" - }, - "method": { - "shortName": "UpdateBackup", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.UpdateBackup", - "service": { - "shortName": "BackupForGKE", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE" - } - } - } - }, - { - "regionTag": "gkebackup_v1_generated_BackupForGKE_DeleteBackup_async", - "title": "BackupForGKE deleteBackup Sample", - "origin": "API_DEFINITION", - "description": " Deletes an existing Backup.", - "canonical": true, - "file": "backup_for_g_k_e.delete_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteBackup", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.DeleteBackup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BackupForGKEClient", - "fullName": "google.cloud.gkebackup.v1.BackupForGKEClient" - }, - "method": { - "shortName": "DeleteBackup", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.DeleteBackup", - "service": { - "shortName": "BackupForGKE", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE" - } - } - } - }, - { - "regionTag": "gkebackup_v1_generated_BackupForGKE_ListVolumeBackups_async", - "title": "BackupForGKE listVolumeBackups Sample", - "origin": "API_DEFINITION", - "description": " Lists the VolumeBackups for a given Backup.", - "canonical": true, - "file": "backup_for_g_k_e.list_volume_backups.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListVolumeBackups", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.ListVolumeBackups", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkebackup.v1.ListVolumeBackupsResponse", - "client": { - "shortName": "BackupForGKEClient", - "fullName": "google.cloud.gkebackup.v1.BackupForGKEClient" - }, - "method": { - "shortName": "ListVolumeBackups", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.ListVolumeBackups", - "service": { - "shortName": "BackupForGKE", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE" - } - } - } - }, - { - "regionTag": "gkebackup_v1_generated_BackupForGKE_GetVolumeBackup_async", - "title": "BackupForGKE getVolumeBackup Sample", - "origin": "API_DEFINITION", - "description": " Retrieve the details of a single VolumeBackup.", - "canonical": true, - "file": "backup_for_g_k_e.get_volume_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetVolumeBackup", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.GetVolumeBackup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkebackup.v1.VolumeBackup", - "client": { - "shortName": "BackupForGKEClient", - "fullName": "google.cloud.gkebackup.v1.BackupForGKEClient" - }, - "method": { - "shortName": "GetVolumeBackup", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.GetVolumeBackup", - "service": { - "shortName": "BackupForGKE", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE" - } - } - } - }, - { - "regionTag": "gkebackup_v1_generated_BackupForGKE_CreateRestorePlan_async", - "title": "BackupForGKE createRestorePlan Sample", - "origin": "API_DEFINITION", - "description": " Creates a new RestorePlan in a given location.", - "canonical": true, - "file": "backup_for_g_k_e.create_restore_plan.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateRestorePlan", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.CreateRestorePlan", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "restore_plan", - "type": ".google.cloud.gkebackup.v1.RestorePlan" - }, - { - "name": "restore_plan_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BackupForGKEClient", - "fullName": "google.cloud.gkebackup.v1.BackupForGKEClient" - }, - "method": { - "shortName": "CreateRestorePlan", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.CreateRestorePlan", - "service": { - "shortName": "BackupForGKE", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE" - } - } - } - }, - { - "regionTag": "gkebackup_v1_generated_BackupForGKE_ListRestorePlans_async", - "title": "BackupForGKE listRestorePlans Sample", - "origin": "API_DEFINITION", - "description": " Lists RestorePlans in a given location.", - "canonical": true, - "file": "backup_for_g_k_e.list_restore_plans.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRestorePlans", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.ListRestorePlans", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkebackup.v1.ListRestorePlansResponse", - "client": { - "shortName": "BackupForGKEClient", - "fullName": "google.cloud.gkebackup.v1.BackupForGKEClient" - }, - "method": { - "shortName": "ListRestorePlans", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.ListRestorePlans", - "service": { - "shortName": "BackupForGKE", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE" - } - } - } - }, - { - "regionTag": "gkebackup_v1_generated_BackupForGKE_GetRestorePlan_async", - "title": "BackupForGKE getRestorePlan Sample", - "origin": "API_DEFINITION", - "description": " Retrieve the details of a single RestorePlan.", - "canonical": true, - "file": "backup_for_g_k_e.get_restore_plan.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRestorePlan", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.GetRestorePlan", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkebackup.v1.RestorePlan", - "client": { - "shortName": "BackupForGKEClient", - "fullName": "google.cloud.gkebackup.v1.BackupForGKEClient" - }, - "method": { - "shortName": "GetRestorePlan", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.GetRestorePlan", - "service": { - "shortName": "BackupForGKE", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE" - } - } - } - }, - { - "regionTag": "gkebackup_v1_generated_BackupForGKE_UpdateRestorePlan_async", - "title": "BackupForGKE updateRestorePlan Sample", - "origin": "API_DEFINITION", - "description": " Update a RestorePlan.", - "canonical": true, - "file": "backup_for_g_k_e.update_restore_plan.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateRestorePlan", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.UpdateRestorePlan", - "async": true, - "parameters": [ - { - "name": "restore_plan", - "type": ".google.cloud.gkebackup.v1.RestorePlan" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BackupForGKEClient", - "fullName": "google.cloud.gkebackup.v1.BackupForGKEClient" - }, - "method": { - "shortName": "UpdateRestorePlan", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.UpdateRestorePlan", - "service": { - "shortName": "BackupForGKE", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE" - } - } - } - }, - { - "regionTag": "gkebackup_v1_generated_BackupForGKE_DeleteRestorePlan_async", - "title": "BackupForGKE deleteRestorePlan Sample", - "origin": "API_DEFINITION", - "description": " Deletes an existing RestorePlan.", - "canonical": true, - "file": "backup_for_g_k_e.delete_restore_plan.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteRestorePlan", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.DeleteRestorePlan", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BackupForGKEClient", - "fullName": "google.cloud.gkebackup.v1.BackupForGKEClient" - }, - "method": { - "shortName": "DeleteRestorePlan", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.DeleteRestorePlan", - "service": { - "shortName": "BackupForGKE", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE" - } - } - } - }, - { - "regionTag": "gkebackup_v1_generated_BackupForGKE_CreateRestoreChannel_async", - "title": "BackupForGKE createRestoreChannel Sample", - "origin": "API_DEFINITION", - "description": " Creates a new RestoreChannel in a given location.", - "canonical": true, - "file": "backup_for_g_k_e.create_restore_channel.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateRestoreChannel", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.CreateRestoreChannel", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "restore_channel", - "type": ".google.cloud.gkebackup.v1.RestoreChannel" - }, - { - "name": "restore_channel_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BackupForGKEClient", - "fullName": "google.cloud.gkebackup.v1.BackupForGKEClient" - }, - "method": { - "shortName": "CreateRestoreChannel", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.CreateRestoreChannel", - "service": { - "shortName": "BackupForGKE", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE" - } - } - } - }, - { - "regionTag": "gkebackup_v1_generated_BackupForGKE_ListRestoreChannels_async", - "title": "BackupForGKE listRestoreChannels Sample", - "origin": "API_DEFINITION", - "description": " Lists RestoreChannels in a given location.", - "canonical": true, - "file": "backup_for_g_k_e.list_restore_channels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRestoreChannels", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.ListRestoreChannels", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkebackup.v1.ListRestoreChannelsResponse", - "client": { - "shortName": "BackupForGKEClient", - "fullName": "google.cloud.gkebackup.v1.BackupForGKEClient" - }, - "method": { - "shortName": "ListRestoreChannels", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.ListRestoreChannels", - "service": { - "shortName": "BackupForGKE", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE" - } - } - } - }, - { - "regionTag": "gkebackup_v1_generated_BackupForGKE_GetRestoreChannel_async", - "title": "BackupForGKE getRestoreChannel Sample", - "origin": "API_DEFINITION", - "description": " Retrieve the details of a single RestoreChannel.", - "canonical": true, - "file": "backup_for_g_k_e.get_restore_channel.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRestoreChannel", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.GetRestoreChannel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkebackup.v1.RestoreChannel", - "client": { - "shortName": "BackupForGKEClient", - "fullName": "google.cloud.gkebackup.v1.BackupForGKEClient" - }, - "method": { - "shortName": "GetRestoreChannel", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.GetRestoreChannel", - "service": { - "shortName": "BackupForGKE", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE" - } - } - } - }, - { - "regionTag": "gkebackup_v1_generated_BackupForGKE_UpdateRestoreChannel_async", - "title": "BackupForGKE updateRestoreChannel Sample", - "origin": "API_DEFINITION", - "description": " Update a RestoreChannel.", - "canonical": true, - "file": "backup_for_g_k_e.update_restore_channel.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateRestoreChannel", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.UpdateRestoreChannel", - "async": true, - "parameters": [ - { - "name": "restore_channel", - "type": ".google.cloud.gkebackup.v1.RestoreChannel" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BackupForGKEClient", - "fullName": "google.cloud.gkebackup.v1.BackupForGKEClient" - }, - "method": { - "shortName": "UpdateRestoreChannel", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.UpdateRestoreChannel", - "service": { - "shortName": "BackupForGKE", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE" - } - } - } - }, - { - "regionTag": "gkebackup_v1_generated_BackupForGKE_DeleteRestoreChannel_async", - "title": "BackupForGKE deleteRestoreChannel Sample", - "origin": "API_DEFINITION", - "description": " Deletes an existing RestoreChannel.", - "canonical": true, - "file": "backup_for_g_k_e.delete_restore_channel.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteRestoreChannel", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.DeleteRestoreChannel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BackupForGKEClient", - "fullName": "google.cloud.gkebackup.v1.BackupForGKEClient" - }, - "method": { - "shortName": "DeleteRestoreChannel", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.DeleteRestoreChannel", - "service": { - "shortName": "BackupForGKE", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE" - } - } - } - }, - { - "regionTag": "gkebackup_v1_generated_BackupForGKE_ListRestorePlanBindings_async", - "title": "BackupForGKE listRestorePlanBindings Sample", - "origin": "API_DEFINITION", - "description": " Lists RestorePlanBindings in a given location.", - "canonical": true, - "file": "backup_for_g_k_e.list_restore_plan_bindings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRestorePlanBindings", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.ListRestorePlanBindings", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkebackup.v1.ListRestorePlanBindingsResponse", - "client": { - "shortName": "BackupForGKEClient", - "fullName": "google.cloud.gkebackup.v1.BackupForGKEClient" - }, - "method": { - "shortName": "ListRestorePlanBindings", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.ListRestorePlanBindings", - "service": { - "shortName": "BackupForGKE", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE" - } - } - } - }, - { - "regionTag": "gkebackup_v1_generated_BackupForGKE_GetRestorePlanBinding_async", - "title": "BackupForGKE getRestorePlanBinding Sample", - "origin": "API_DEFINITION", - "description": " Retrieve the details of a single RestorePlanBinding.", - "canonical": true, - "file": "backup_for_g_k_e.get_restore_plan_binding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRestorePlanBinding", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.GetRestorePlanBinding", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkebackup.v1.RestorePlanBinding", - "client": { - "shortName": "BackupForGKEClient", - "fullName": "google.cloud.gkebackup.v1.BackupForGKEClient" - }, - "method": { - "shortName": "GetRestorePlanBinding", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.GetRestorePlanBinding", - "service": { - "shortName": "BackupForGKE", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE" - } - } - } - }, - { - "regionTag": "gkebackup_v1_generated_BackupForGKE_CreateRestore_async", - "title": "BackupForGKE createRestore Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Restore for the given RestorePlan.", - "canonical": true, - "file": "backup_for_g_k_e.create_restore.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateRestore", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.CreateRestore", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "restore", - "type": ".google.cloud.gkebackup.v1.Restore" - }, - { - "name": "restore_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BackupForGKEClient", - "fullName": "google.cloud.gkebackup.v1.BackupForGKEClient" - }, - "method": { - "shortName": "CreateRestore", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.CreateRestore", - "service": { - "shortName": "BackupForGKE", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE" - } - } - } - }, - { - "regionTag": "gkebackup_v1_generated_BackupForGKE_ListRestores_async", - "title": "BackupForGKE listRestores Sample", - "origin": "API_DEFINITION", - "description": " Lists the Restores for a given RestorePlan.", - "canonical": true, - "file": "backup_for_g_k_e.list_restores.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRestores", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.ListRestores", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkebackup.v1.ListRestoresResponse", - "client": { - "shortName": "BackupForGKEClient", - "fullName": "google.cloud.gkebackup.v1.BackupForGKEClient" - }, - "method": { - "shortName": "ListRestores", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.ListRestores", - "service": { - "shortName": "BackupForGKE", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE" - } - } - } - }, - { - "regionTag": "gkebackup_v1_generated_BackupForGKE_GetRestore_async", - "title": "BackupForGKE getRestore Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the details of a single Restore.", - "canonical": true, - "file": "backup_for_g_k_e.get_restore.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRestore", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.GetRestore", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkebackup.v1.Restore", - "client": { - "shortName": "BackupForGKEClient", - "fullName": "google.cloud.gkebackup.v1.BackupForGKEClient" - }, - "method": { - "shortName": "GetRestore", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.GetRestore", - "service": { - "shortName": "BackupForGKE", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE" - } - } - } - }, - { - "regionTag": "gkebackup_v1_generated_BackupForGKE_UpdateRestore_async", - "title": "BackupForGKE updateRestore Sample", - "origin": "API_DEFINITION", - "description": " Update a Restore.", - "canonical": true, - "file": "backup_for_g_k_e.update_restore.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateRestore", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.UpdateRestore", - "async": true, - "parameters": [ - { - "name": "restore", - "type": ".google.cloud.gkebackup.v1.Restore" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BackupForGKEClient", - "fullName": "google.cloud.gkebackup.v1.BackupForGKEClient" - }, - "method": { - "shortName": "UpdateRestore", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.UpdateRestore", - "service": { - "shortName": "BackupForGKE", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE" - } - } - } - }, - { - "regionTag": "gkebackup_v1_generated_BackupForGKE_DeleteRestore_async", - "title": "BackupForGKE deleteRestore Sample", - "origin": "API_DEFINITION", - "description": " Deletes an existing Restore.", - "canonical": true, - "file": "backup_for_g_k_e.delete_restore.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteRestore", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.DeleteRestore", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "BackupForGKEClient", - "fullName": "google.cloud.gkebackup.v1.BackupForGKEClient" - }, - "method": { - "shortName": "DeleteRestore", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.DeleteRestore", - "service": { - "shortName": "BackupForGKE", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE" - } - } - } - }, - { - "regionTag": "gkebackup_v1_generated_BackupForGKE_ListVolumeRestores_async", - "title": "BackupForGKE listVolumeRestores Sample", - "origin": "API_DEFINITION", - "description": " Lists the VolumeRestores for a given Restore.", - "canonical": true, - "file": "backup_for_g_k_e.list_volume_restores.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListVolumeRestores", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.ListVolumeRestores", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkebackup.v1.ListVolumeRestoresResponse", - "client": { - "shortName": "BackupForGKEClient", - "fullName": "google.cloud.gkebackup.v1.BackupForGKEClient" - }, - "method": { - "shortName": "ListVolumeRestores", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.ListVolumeRestores", - "service": { - "shortName": "BackupForGKE", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE" - } - } - } - }, - { - "regionTag": "gkebackup_v1_generated_BackupForGKE_GetVolumeRestore_async", - "title": "BackupForGKE getVolumeRestore Sample", - "origin": "API_DEFINITION", - "description": " Retrieve the details of a single VolumeRestore.", - "canonical": true, - "file": "backup_for_g_k_e.get_volume_restore.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetVolumeRestore", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.GetVolumeRestore", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkebackup.v1.VolumeRestore", - "client": { - "shortName": "BackupForGKEClient", - "fullName": "google.cloud.gkebackup.v1.BackupForGKEClient" - }, - "method": { - "shortName": "GetVolumeRestore", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.GetVolumeRestore", - "service": { - "shortName": "BackupForGKE", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE" - } - } - } - }, - { - "regionTag": "gkebackup_v1_generated_BackupForGKE_GetBackupIndexDownloadUrl_async", - "title": "BackupForGKE getBackupIndexDownloadUrl Sample", - "origin": "API_DEFINITION", - "description": " Retrieve the link to the backupIndex.", - "canonical": true, - "file": "backup_for_g_k_e.get_backup_index_download_url.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBackupIndexDownloadUrl", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.GetBackupIndexDownloadUrl", - "async": true, - "parameters": [ - { - "name": "backup", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkebackup.v1.GetBackupIndexDownloadUrlResponse", - "client": { - "shortName": "BackupForGKEClient", - "fullName": "google.cloud.gkebackup.v1.BackupForGKEClient" - }, - "method": { - "shortName": "GetBackupIndexDownloadUrl", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE.GetBackupIndexDownloadUrl", - "service": { - "shortName": "BackupForGKE", - "fullName": "google.cloud.gkebackup.v1.BackupForGKE" - } - } - } - } - ] -} diff --git a/packages/google-cloud-gkeconnect-gateway/samples/generated/v1/snippet_metadata_google.cloud.gkeconnect.gateway.v1.json b/packages/google-cloud-gkeconnect-gateway/samples/generated/v1/snippet_metadata_google.cloud.gkeconnect.gateway.v1.json deleted file mode 100644 index c5522d9e61df..000000000000 --- a/packages/google-cloud-gkeconnect-gateway/samples/generated/v1/snippet_metadata_google.cloud.gkeconnect.gateway.v1.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-gateway", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.gkeconnect.gateway.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "connectgateway_v1_generated_GatewayControl_GenerateCredentials_async", - "title": "GatewayControl generateCredentials Sample", - "origin": "API_DEFINITION", - "description": " GenerateCredentials provides connection information that allows a user to access the specified membership using Connect Gateway.", - "canonical": true, - "file": "gateway_control.generate_credentials.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateCredentials", - "fullName": "google.cloud.gkeconnect.gateway.v1.GatewayControl.GenerateCredentials", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force_use_agent", - "type": "TYPE_BOOL" - }, - { - "name": "version", - "type": "TYPE_STRING" - }, - { - "name": "kubernetes_namespace", - "type": "TYPE_STRING" - }, - { - "name": "operating_system", - "type": ".google.cloud.gkeconnect.gateway.v1.GenerateCredentialsRequest.OperatingSystem" - } - ], - "resultType": ".google.cloud.gkeconnect.gateway.v1.GenerateCredentialsResponse", - "client": { - "shortName": "GatewayControlClient", - "fullName": "google.cloud.gkeconnect.gateway.v1.GatewayControlClient" - }, - "method": { - "shortName": "GenerateCredentials", - "fullName": "google.cloud.gkeconnect.gateway.v1.GatewayControl.GenerateCredentials", - "service": { - "shortName": "GatewayControl", - "fullName": "google.cloud.gkeconnect.gateway.v1.GatewayControl" - } - } - } - } - ] -} diff --git a/packages/google-cloud-gkeconnect-gateway/samples/generated/v1beta1/snippet_metadata_google.cloud.gkeconnect.gateway.v1beta1.json b/packages/google-cloud-gkeconnect-gateway/samples/generated/v1beta1/snippet_metadata_google.cloud.gkeconnect.gateway.v1beta1.json deleted file mode 100644 index 294ce32253fc..000000000000 --- a/packages/google-cloud-gkeconnect-gateway/samples/generated/v1beta1/snippet_metadata_google.cloud.gkeconnect.gateway.v1beta1.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-gateway", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.gkeconnect.gateway.v1beta1", - "version": "v1beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "connectgateway_v1beta1_generated_GatewayControl_GenerateCredentials_async", - "title": "GatewayControl generateCredentials Sample", - "origin": "API_DEFINITION", - "description": " GenerateCredentials provides connection information that allows a user to access the specified membership using Connect Gateway.", - "canonical": true, - "file": "gateway_control.generate_credentials.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateCredentials", - "fullName": "google.cloud.gkeconnect.gateway.v1beta1.GatewayControl.GenerateCredentials", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force_use_agent", - "type": "TYPE_BOOL" - }, - { - "name": "version", - "type": "TYPE_STRING" - }, - { - "name": "kubernetes_namespace", - "type": "TYPE_STRING" - }, - { - "name": "operating_system", - "type": ".google.cloud.gkeconnect.gateway.v1beta1.GenerateCredentialsRequest.OperatingSystem" - } - ], - "resultType": ".google.cloud.gkeconnect.gateway.v1beta1.GenerateCredentialsResponse", - "client": { - "shortName": "GatewayControlClient", - "fullName": "google.cloud.gkeconnect.gateway.v1beta1.GatewayControlClient" - }, - "method": { - "shortName": "GenerateCredentials", - "fullName": "google.cloud.gkeconnect.gateway.v1beta1.GatewayControl.GenerateCredentials", - "service": { - "shortName": "GatewayControl", - "fullName": "google.cloud.gkeconnect.gateway.v1beta1.GatewayControl" - } - } - } - } - ] -} diff --git a/packages/google-cloud-gkehub/samples/generated/v1/snippet_metadata_google.cloud.gkehub.v1.json b/packages/google-cloud-gkehub/samples/generated/v1/snippet_metadata_google.cloud.gkehub.v1.json deleted file mode 100644 index 15df274d7630..000000000000 --- a/packages/google-cloud-gkehub/samples/generated/v1/snippet_metadata_google.cloud.gkehub.v1.json +++ /dev/null @@ -1,2051 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-gkehub", - "version": "6.4.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.gkehub.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "gkehub_v1_generated_GkeHub_ListMemberships_async", - "title": "GkeHub listMemberships Sample", - "origin": "API_DEFINITION", - "description": " Lists Memberships in a given project and location.", - "canonical": true, - "file": "gke_hub.list_memberships.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 88, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMemberships", - "fullName": "google.cloud.gkehub.v1.GkeHub.ListMemberships", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkehub.v1.ListMembershipsResponse", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1.GkeHubClient" - }, - "method": { - "shortName": "ListMemberships", - "fullName": "google.cloud.gkehub.v1.GkeHub.ListMemberships", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1.GkeHub" - } - } - } - }, - { - "regionTag": "gkehub_v1_generated_GkeHub_ListBoundMemberships_async", - "title": "GkeHub listBoundMemberships Sample", - "origin": "API_DEFINITION", - "description": " Lists Memberships bound to a Scope. The response includes relevant Memberships from all regions.", - "canonical": true, - "file": "gke_hub.list_bound_memberships.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBoundMemberships", - "fullName": "google.cloud.gkehub.v1.GkeHub.ListBoundMemberships", - "async": true, - "parameters": [ - { - "name": "scope_name", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkehub.v1.ListBoundMembershipsResponse", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1.GkeHubClient" - }, - "method": { - "shortName": "ListBoundMemberships", - "fullName": "google.cloud.gkehub.v1.GkeHub.ListBoundMemberships", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1.GkeHub" - } - } - } - }, - { - "regionTag": "gkehub_v1_generated_GkeHub_ListFeatures_async", - "title": "GkeHub listFeatures Sample", - "origin": "API_DEFINITION", - "description": " Lists Features in a given project and location.", - "canonical": true, - "file": "gke_hub.list_features.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 91, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFeatures", - "fullName": "google.cloud.gkehub.v1.GkeHub.ListFeatures", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.gkehub.v1.ListFeaturesResponse", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1.GkeHubClient" - }, - "method": { - "shortName": "ListFeatures", - "fullName": "google.cloud.gkehub.v1.GkeHub.ListFeatures", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1.GkeHub" - } - } - } - }, - { - "regionTag": "gkehub_v1_generated_GkeHub_GetMembership_async", - "title": "GkeHub getMembership Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a Membership.", - "canonical": true, - "file": "gke_hub.get_membership.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMembership", - "fullName": "google.cloud.gkehub.v1.GkeHub.GetMembership", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkehub.v1.Membership", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1.GkeHubClient" - }, - "method": { - "shortName": "GetMembership", - "fullName": "google.cloud.gkehub.v1.GkeHub.GetMembership", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1.GkeHub" - } - } - } - }, - { - "regionTag": "gkehub_v1_generated_GkeHub_GetFeature_async", - "title": "GkeHub getFeature Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Feature.", - "canonical": true, - "file": "gke_hub.get_feature.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFeature", - "fullName": "google.cloud.gkehub.v1.GkeHub.GetFeature", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.gkehub.v1.Feature", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1.GkeHubClient" - }, - "method": { - "shortName": "GetFeature", - "fullName": "google.cloud.gkehub.v1.GkeHub.GetFeature", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1.GkeHub" - } - } - } - }, - { - "regionTag": "gkehub_v1_generated_GkeHub_CreateMembership_async", - "title": "GkeHub createMembership Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Membership. **This is currently only supported for GKE clusters on Google Cloud**. To register other clusters, follow the instructions at https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.", - "canonical": true, - "file": "gke_hub.create_membership.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateMembership", - "fullName": "google.cloud.gkehub.v1.GkeHub.CreateMembership", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "membership_id", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": ".google.cloud.gkehub.v1.Membership" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1.GkeHubClient" - }, - "method": { - "shortName": "CreateMembership", - "fullName": "google.cloud.gkehub.v1.GkeHub.CreateMembership", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1.GkeHub" - } - } - } - }, - { - "regionTag": "gkehub_v1_generated_GkeHub_CreateFeature_async", - "title": "GkeHub createFeature Sample", - "origin": "API_DEFINITION", - "description": " Adds a new Feature.", - "canonical": true, - "file": "gke_hub.create_feature.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateFeature", - "fullName": "google.cloud.gkehub.v1.GkeHub.CreateFeature", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "feature_id", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": ".google.cloud.gkehub.v1.Feature" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1.GkeHubClient" - }, - "method": { - "shortName": "CreateFeature", - "fullName": "google.cloud.gkehub.v1.GkeHub.CreateFeature", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1.GkeHub" - } - } - } - }, - { - "regionTag": "gkehub_v1_generated_GkeHub_DeleteMembership_async", - "title": "GkeHub deleteMembership Sample", - "origin": "API_DEFINITION", - "description": " Removes a Membership. **This is currently only supported for GKE clusters on Google Cloud**. To unregister other clusters, follow the instructions at https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.", - "canonical": true, - "file": "gke_hub.delete_membership.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteMembership", - "fullName": "google.cloud.gkehub.v1.GkeHub.DeleteMembership", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1.GkeHubClient" - }, - "method": { - "shortName": "DeleteMembership", - "fullName": "google.cloud.gkehub.v1.GkeHub.DeleteMembership", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1.GkeHub" - } - } - } - }, - { - "regionTag": "gkehub_v1_generated_GkeHub_DeleteFeature_async", - "title": "GkeHub deleteFeature Sample", - "origin": "API_DEFINITION", - "description": " Removes a Feature.", - "canonical": true, - "file": "gke_hub.delete_feature.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteFeature", - "fullName": "google.cloud.gkehub.v1.GkeHub.DeleteFeature", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1.GkeHubClient" - }, - "method": { - "shortName": "DeleteFeature", - "fullName": "google.cloud.gkehub.v1.GkeHub.DeleteFeature", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1.GkeHub" - } - } - } - }, - { - "regionTag": "gkehub_v1_generated_GkeHub_UpdateMembership_async", - "title": "GkeHub updateMembership Sample", - "origin": "API_DEFINITION", - "description": " Updates an existing Membership.", - "canonical": true, - "file": "gke_hub.update_membership.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateMembership", - "fullName": "google.cloud.gkehub.v1.GkeHub.UpdateMembership", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "resource", - "type": ".google.cloud.gkehub.v1.Membership" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1.GkeHubClient" - }, - "method": { - "shortName": "UpdateMembership", - "fullName": "google.cloud.gkehub.v1.GkeHub.UpdateMembership", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1.GkeHub" - } - } - } - }, - { - "regionTag": "gkehub_v1_generated_GkeHub_UpdateFeature_async", - "title": "GkeHub updateFeature Sample", - "origin": "API_DEFINITION", - "description": " Updates an existing Feature.", - "canonical": true, - "file": "gke_hub.update_feature.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateFeature", - "fullName": "google.cloud.gkehub.v1.GkeHub.UpdateFeature", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "resource", - "type": ".google.cloud.gkehub.v1.Feature" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1.GkeHubClient" - }, - "method": { - "shortName": "UpdateFeature", - "fullName": "google.cloud.gkehub.v1.GkeHub.UpdateFeature", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1.GkeHub" - } - } - } - }, - { - "regionTag": "gkehub_v1_generated_GkeHub_GenerateConnectManifest_async", - "title": "GkeHub generateConnectManifest Sample", - "origin": "API_DEFINITION", - "description": " Generates the manifest for deployment of the GKE connect agent. **This method is used internally by Google-provided libraries.** Most clients should not need to call this method directly.", - "canonical": true, - "file": "gke_hub.generate_connect_manifest.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 89, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateConnectManifest", - "fullName": "google.cloud.gkehub.v1.GkeHub.GenerateConnectManifest", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "namespace", - "type": "TYPE_STRING" - }, - { - "name": "proxy", - "type": "TYPE_BYTES" - }, - { - "name": "version", - "type": "TYPE_STRING" - }, - { - "name": "is_upgrade", - "type": "TYPE_BOOL" - }, - { - "name": "registry", - "type": "TYPE_STRING" - }, - { - "name": "image_pull_secret_content", - "type": "TYPE_BYTES" - } - ], - "resultType": ".google.cloud.gkehub.v1.GenerateConnectManifestResponse", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1.GkeHubClient" - }, - "method": { - "shortName": "GenerateConnectManifest", - "fullName": "google.cloud.gkehub.v1.GkeHub.GenerateConnectManifest", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1.GkeHub" - } - } - } - }, - { - "regionTag": "gkehub_v1_generated_GkeHub_CreateFleet_async", - "title": "GkeHub createFleet Sample", - "origin": "API_DEFINITION", - "description": " Creates a fleet.", - "canonical": true, - "file": "gke_hub.create_fleet.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateFleet", - "fullName": "google.cloud.gkehub.v1.GkeHub.CreateFleet", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "fleet", - "type": ".google.cloud.gkehub.v1.Fleet" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1.GkeHubClient" - }, - "method": { - "shortName": "CreateFleet", - "fullName": "google.cloud.gkehub.v1.GkeHub.CreateFleet", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1.GkeHub" - } - } - } - }, - { - "regionTag": "gkehub_v1_generated_GkeHub_GetFleet_async", - "title": "GkeHub getFleet Sample", - "origin": "API_DEFINITION", - "description": " Returns the details of a fleet.", - "canonical": true, - "file": "gke_hub.get_fleet.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFleet", - "fullName": "google.cloud.gkehub.v1.GkeHub.GetFleet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkehub.v1.Fleet", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1.GkeHubClient" - }, - "method": { - "shortName": "GetFleet", - "fullName": "google.cloud.gkehub.v1.GkeHub.GetFleet", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1.GkeHub" - } - } - } - }, - { - "regionTag": "gkehub_v1_generated_GkeHub_UpdateFleet_async", - "title": "GkeHub updateFleet Sample", - "origin": "API_DEFINITION", - "description": " Updates a fleet.", - "canonical": true, - "file": "gke_hub.update_fleet.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateFleet", - "fullName": "google.cloud.gkehub.v1.GkeHub.UpdateFleet", - "async": true, - "parameters": [ - { - "name": "fleet", - "type": ".google.cloud.gkehub.v1.Fleet" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1.GkeHubClient" - }, - "method": { - "shortName": "UpdateFleet", - "fullName": "google.cloud.gkehub.v1.GkeHub.UpdateFleet", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1.GkeHub" - } - } - } - }, - { - "regionTag": "gkehub_v1_generated_GkeHub_DeleteFleet_async", - "title": "GkeHub deleteFleet Sample", - "origin": "API_DEFINITION", - "description": " Removes a Fleet. There must be no memberships remaining in the Fleet.", - "canonical": true, - "file": "gke_hub.delete_fleet.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteFleet", - "fullName": "google.cloud.gkehub.v1.GkeHub.DeleteFleet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1.GkeHubClient" - }, - "method": { - "shortName": "DeleteFleet", - "fullName": "google.cloud.gkehub.v1.GkeHub.DeleteFleet", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1.GkeHub" - } - } - } - }, - { - "regionTag": "gkehub_v1_generated_GkeHub_ListFleets_async", - "title": "GkeHub listFleets Sample", - "origin": "API_DEFINITION", - "description": " Returns all fleets within an organization or a project that the caller has access to.", - "canonical": true, - "file": "gke_hub.list_fleets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFleets", - "fullName": "google.cloud.gkehub.v1.GkeHub.ListFleets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.gkehub.v1.ListFleetsResponse", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1.GkeHubClient" - }, - "method": { - "shortName": "ListFleets", - "fullName": "google.cloud.gkehub.v1.GkeHub.ListFleets", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1.GkeHub" - } - } - } - }, - { - "regionTag": "gkehub_v1_generated_GkeHub_GetScopeNamespace_async", - "title": "GkeHub getScopeNamespace Sample", - "origin": "API_DEFINITION", - "description": " Returns the details of a fleet namespace.", - "canonical": true, - "file": "gke_hub.get_scope_namespace.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetScopeNamespace", - "fullName": "google.cloud.gkehub.v1.GkeHub.GetScopeNamespace", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkehub.v1.Namespace", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1.GkeHubClient" - }, - "method": { - "shortName": "GetScopeNamespace", - "fullName": "google.cloud.gkehub.v1.GkeHub.GetScopeNamespace", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1.GkeHub" - } - } - } - }, - { - "regionTag": "gkehub_v1_generated_GkeHub_CreateScopeNamespace_async", - "title": "GkeHub createScopeNamespace Sample", - "origin": "API_DEFINITION", - "description": " Creates a fleet namespace.", - "canonical": true, - "file": "gke_hub.create_scope_namespace.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateScopeNamespace", - "fullName": "google.cloud.gkehub.v1.GkeHub.CreateScopeNamespace", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "scope_namespace_id", - "type": "TYPE_STRING" - }, - { - "name": "scope_namespace", - "type": ".google.cloud.gkehub.v1.Namespace" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1.GkeHubClient" - }, - "method": { - "shortName": "CreateScopeNamespace", - "fullName": "google.cloud.gkehub.v1.GkeHub.CreateScopeNamespace", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1.GkeHub" - } - } - } - }, - { - "regionTag": "gkehub_v1_generated_GkeHub_UpdateScopeNamespace_async", - "title": "GkeHub updateScopeNamespace Sample", - "origin": "API_DEFINITION", - "description": " Updates a fleet namespace.", - "canonical": true, - "file": "gke_hub.update_scope_namespace.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateScopeNamespace", - "fullName": "google.cloud.gkehub.v1.GkeHub.UpdateScopeNamespace", - "async": true, - "parameters": [ - { - "name": "scope_namespace", - "type": ".google.cloud.gkehub.v1.Namespace" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1.GkeHubClient" - }, - "method": { - "shortName": "UpdateScopeNamespace", - "fullName": "google.cloud.gkehub.v1.GkeHub.UpdateScopeNamespace", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1.GkeHub" - } - } - } - }, - { - "regionTag": "gkehub_v1_generated_GkeHub_DeleteScopeNamespace_async", - "title": "GkeHub deleteScopeNamespace Sample", - "origin": "API_DEFINITION", - "description": " Deletes a fleet namespace.", - "canonical": true, - "file": "gke_hub.delete_scope_namespace.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteScopeNamespace", - "fullName": "google.cloud.gkehub.v1.GkeHub.DeleteScopeNamespace", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1.GkeHubClient" - }, - "method": { - "shortName": "DeleteScopeNamespace", - "fullName": "google.cloud.gkehub.v1.GkeHub.DeleteScopeNamespace", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1.GkeHub" - } - } - } - }, - { - "regionTag": "gkehub_v1_generated_GkeHub_ListScopeNamespaces_async", - "title": "GkeHub listScopeNamespaces Sample", - "origin": "API_DEFINITION", - "description": " Lists fleet namespaces.", - "canonical": true, - "file": "gke_hub.list_scope_namespaces.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListScopeNamespaces", - "fullName": "google.cloud.gkehub.v1.GkeHub.ListScopeNamespaces", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkehub.v1.ListScopeNamespacesResponse", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1.GkeHubClient" - }, - "method": { - "shortName": "ListScopeNamespaces", - "fullName": "google.cloud.gkehub.v1.GkeHub.ListScopeNamespaces", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1.GkeHub" - } - } - } - }, - { - "regionTag": "gkehub_v1_generated_GkeHub_GetScopeRBACRoleBinding_async", - "title": "GkeHub getScopeRBACRoleBinding Sample", - "origin": "API_DEFINITION", - "description": " Returns the details of a Scope RBACRoleBinding.", - "canonical": true, - "file": "gke_hub.get_scope_r_b_a_c_role_binding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetScopeRBACRoleBinding", - "fullName": "google.cloud.gkehub.v1.GkeHub.GetScopeRBACRoleBinding", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkehub.v1.RBACRoleBinding", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1.GkeHubClient" - }, - "method": { - "shortName": "GetScopeRBACRoleBinding", - "fullName": "google.cloud.gkehub.v1.GkeHub.GetScopeRBACRoleBinding", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1.GkeHub" - } - } - } - }, - { - "regionTag": "gkehub_v1_generated_GkeHub_CreateScopeRBACRoleBinding_async", - "title": "GkeHub createScopeRBACRoleBinding Sample", - "origin": "API_DEFINITION", - "description": " Creates a Scope RBACRoleBinding.", - "canonical": true, - "file": "gke_hub.create_scope_r_b_a_c_role_binding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateScopeRBACRoleBinding", - "fullName": "google.cloud.gkehub.v1.GkeHub.CreateScopeRBACRoleBinding", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "rbacrolebinding_id", - "type": "TYPE_STRING" - }, - { - "name": "rbacrolebinding", - "type": ".google.cloud.gkehub.v1.RBACRoleBinding" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1.GkeHubClient" - }, - "method": { - "shortName": "CreateScopeRBACRoleBinding", - "fullName": "google.cloud.gkehub.v1.GkeHub.CreateScopeRBACRoleBinding", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1.GkeHub" - } - } - } - }, - { - "regionTag": "gkehub_v1_generated_GkeHub_UpdateScopeRBACRoleBinding_async", - "title": "GkeHub updateScopeRBACRoleBinding Sample", - "origin": "API_DEFINITION", - "description": " Updates a Scope RBACRoleBinding.", - "canonical": true, - "file": "gke_hub.update_scope_r_b_a_c_role_binding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateScopeRBACRoleBinding", - "fullName": "google.cloud.gkehub.v1.GkeHub.UpdateScopeRBACRoleBinding", - "async": true, - "parameters": [ - { - "name": "rbacrolebinding", - "type": ".google.cloud.gkehub.v1.RBACRoleBinding" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1.GkeHubClient" - }, - "method": { - "shortName": "UpdateScopeRBACRoleBinding", - "fullName": "google.cloud.gkehub.v1.GkeHub.UpdateScopeRBACRoleBinding", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1.GkeHub" - } - } - } - }, - { - "regionTag": "gkehub_v1_generated_GkeHub_DeleteScopeRBACRoleBinding_async", - "title": "GkeHub deleteScopeRBACRoleBinding Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Scope RBACRoleBinding.", - "canonical": true, - "file": "gke_hub.delete_scope_r_b_a_c_role_binding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteScopeRBACRoleBinding", - "fullName": "google.cloud.gkehub.v1.GkeHub.DeleteScopeRBACRoleBinding", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1.GkeHubClient" - }, - "method": { - "shortName": "DeleteScopeRBACRoleBinding", - "fullName": "google.cloud.gkehub.v1.GkeHub.DeleteScopeRBACRoleBinding", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1.GkeHub" - } - } - } - }, - { - "regionTag": "gkehub_v1_generated_GkeHub_ListScopeRBACRoleBindings_async", - "title": "GkeHub listScopeRBACRoleBindings Sample", - "origin": "API_DEFINITION", - "description": " Lists all Scope RBACRoleBindings.", - "canonical": true, - "file": "gke_hub.list_scope_r_b_a_c_role_bindings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListScopeRBACRoleBindings", - "fullName": "google.cloud.gkehub.v1.GkeHub.ListScopeRBACRoleBindings", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkehub.v1.ListScopeRBACRoleBindingsResponse", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1.GkeHubClient" - }, - "method": { - "shortName": "ListScopeRBACRoleBindings", - "fullName": "google.cloud.gkehub.v1.GkeHub.ListScopeRBACRoleBindings", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1.GkeHub" - } - } - } - }, - { - "regionTag": "gkehub_v1_generated_GkeHub_GetScope_async", - "title": "GkeHub getScope Sample", - "origin": "API_DEFINITION", - "description": " Returns the details of a Scope.", - "canonical": true, - "file": "gke_hub.get_scope.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetScope", - "fullName": "google.cloud.gkehub.v1.GkeHub.GetScope", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkehub.v1.Scope", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1.GkeHubClient" - }, - "method": { - "shortName": "GetScope", - "fullName": "google.cloud.gkehub.v1.GkeHub.GetScope", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1.GkeHub" - } - } - } - }, - { - "regionTag": "gkehub_v1_generated_GkeHub_CreateScope_async", - "title": "GkeHub createScope Sample", - "origin": "API_DEFINITION", - "description": " Creates a Scope.", - "canonical": true, - "file": "gke_hub.create_scope.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateScope", - "fullName": "google.cloud.gkehub.v1.GkeHub.CreateScope", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "scope_id", - "type": "TYPE_STRING" - }, - { - "name": "scope", - "type": ".google.cloud.gkehub.v1.Scope" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1.GkeHubClient" - }, - "method": { - "shortName": "CreateScope", - "fullName": "google.cloud.gkehub.v1.GkeHub.CreateScope", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1.GkeHub" - } - } - } - }, - { - "regionTag": "gkehub_v1_generated_GkeHub_UpdateScope_async", - "title": "GkeHub updateScope Sample", - "origin": "API_DEFINITION", - "description": " Updates a scopes.", - "canonical": true, - "file": "gke_hub.update_scope.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateScope", - "fullName": "google.cloud.gkehub.v1.GkeHub.UpdateScope", - "async": true, - "parameters": [ - { - "name": "scope", - "type": ".google.cloud.gkehub.v1.Scope" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1.GkeHubClient" - }, - "method": { - "shortName": "UpdateScope", - "fullName": "google.cloud.gkehub.v1.GkeHub.UpdateScope", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1.GkeHub" - } - } - } - }, - { - "regionTag": "gkehub_v1_generated_GkeHub_DeleteScope_async", - "title": "GkeHub deleteScope Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Scope.", - "canonical": true, - "file": "gke_hub.delete_scope.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteScope", - "fullName": "google.cloud.gkehub.v1.GkeHub.DeleteScope", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1.GkeHubClient" - }, - "method": { - "shortName": "DeleteScope", - "fullName": "google.cloud.gkehub.v1.GkeHub.DeleteScope", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1.GkeHub" - } - } - } - }, - { - "regionTag": "gkehub_v1_generated_GkeHub_ListScopes_async", - "title": "GkeHub listScopes Sample", - "origin": "API_DEFINITION", - "description": " Lists Scopes.", - "canonical": true, - "file": "gke_hub.list_scopes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListScopes", - "fullName": "google.cloud.gkehub.v1.GkeHub.ListScopes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkehub.v1.ListScopesResponse", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1.GkeHubClient" - }, - "method": { - "shortName": "ListScopes", - "fullName": "google.cloud.gkehub.v1.GkeHub.ListScopes", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1.GkeHub" - } - } - } - }, - { - "regionTag": "gkehub_v1_generated_GkeHub_ListPermittedScopes_async", - "title": "GkeHub listPermittedScopes Sample", - "origin": "API_DEFINITION", - "description": " Lists permitted Scopes.", - "canonical": true, - "file": "gke_hub.list_permitted_scopes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPermittedScopes", - "fullName": "google.cloud.gkehub.v1.GkeHub.ListPermittedScopes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkehub.v1.ListPermittedScopesResponse", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1.GkeHubClient" - }, - "method": { - "shortName": "ListPermittedScopes", - "fullName": "google.cloud.gkehub.v1.GkeHub.ListPermittedScopes", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1.GkeHub" - } - } - } - }, - { - "regionTag": "gkehub_v1_generated_GkeHub_GetMembershipBinding_async", - "title": "GkeHub getMembershipBinding Sample", - "origin": "API_DEFINITION", - "description": " Returns the details of a MembershipBinding.", - "canonical": true, - "file": "gke_hub.get_membership_binding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMembershipBinding", - "fullName": "google.cloud.gkehub.v1.GkeHub.GetMembershipBinding", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkehub.v1.MembershipBinding", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1.GkeHubClient" - }, - "method": { - "shortName": "GetMembershipBinding", - "fullName": "google.cloud.gkehub.v1.GkeHub.GetMembershipBinding", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1.GkeHub" - } - } - } - }, - { - "regionTag": "gkehub_v1_generated_GkeHub_CreateMembershipBinding_async", - "title": "GkeHub createMembershipBinding Sample", - "origin": "API_DEFINITION", - "description": " Creates a MembershipBinding.", - "canonical": true, - "file": "gke_hub.create_membership_binding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateMembershipBinding", - "fullName": "google.cloud.gkehub.v1.GkeHub.CreateMembershipBinding", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "membership_binding", - "type": ".google.cloud.gkehub.v1.MembershipBinding" - }, - { - "name": "membership_binding_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1.GkeHubClient" - }, - "method": { - "shortName": "CreateMembershipBinding", - "fullName": "google.cloud.gkehub.v1.GkeHub.CreateMembershipBinding", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1.GkeHub" - } - } - } - }, - { - "regionTag": "gkehub_v1_generated_GkeHub_UpdateMembershipBinding_async", - "title": "GkeHub updateMembershipBinding Sample", - "origin": "API_DEFINITION", - "description": " Updates a MembershipBinding.", - "canonical": true, - "file": "gke_hub.update_membership_binding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateMembershipBinding", - "fullName": "google.cloud.gkehub.v1.GkeHub.UpdateMembershipBinding", - "async": true, - "parameters": [ - { - "name": "membership_binding", - "type": ".google.cloud.gkehub.v1.MembershipBinding" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1.GkeHubClient" - }, - "method": { - "shortName": "UpdateMembershipBinding", - "fullName": "google.cloud.gkehub.v1.GkeHub.UpdateMembershipBinding", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1.GkeHub" - } - } - } - }, - { - "regionTag": "gkehub_v1_generated_GkeHub_DeleteMembershipBinding_async", - "title": "GkeHub deleteMembershipBinding Sample", - "origin": "API_DEFINITION", - "description": " Deletes a MembershipBinding.", - "canonical": true, - "file": "gke_hub.delete_membership_binding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteMembershipBinding", - "fullName": "google.cloud.gkehub.v1.GkeHub.DeleteMembershipBinding", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1.GkeHubClient" - }, - "method": { - "shortName": "DeleteMembershipBinding", - "fullName": "google.cloud.gkehub.v1.GkeHub.DeleteMembershipBinding", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1.GkeHub" - } - } - } - }, - { - "regionTag": "gkehub_v1_generated_GkeHub_ListMembershipBindings_async", - "title": "GkeHub listMembershipBindings Sample", - "origin": "API_DEFINITION", - "description": " Lists MembershipBindings.", - "canonical": true, - "file": "gke_hub.list_membership_bindings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMembershipBindings", - "fullName": "google.cloud.gkehub.v1.GkeHub.ListMembershipBindings", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkehub.v1.ListMembershipBindingsResponse", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1.GkeHubClient" - }, - "method": { - "shortName": "ListMembershipBindings", - "fullName": "google.cloud.gkehub.v1.GkeHub.ListMembershipBindings", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1.GkeHub" - } - } - } - }, - { - "regionTag": "gkehub_v1_generated_GkeHub_GetMembershipRBACRoleBinding_async", - "title": "GkeHub getMembershipRBACRoleBinding Sample", - "origin": "API_DEFINITION", - "description": " Returns the details of a Membership RBACRoleBinding.", - "canonical": true, - "file": "gke_hub.get_membership_r_b_a_c_role_binding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMembershipRBACRoleBinding", - "fullName": "google.cloud.gkehub.v1.GkeHub.GetMembershipRBACRoleBinding", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkehub.v1.RBACRoleBinding", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1.GkeHubClient" - }, - "method": { - "shortName": "GetMembershipRBACRoleBinding", - "fullName": "google.cloud.gkehub.v1.GkeHub.GetMembershipRBACRoleBinding", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1.GkeHub" - } - } - } - }, - { - "regionTag": "gkehub_v1_generated_GkeHub_CreateMembershipRBACRoleBinding_async", - "title": "GkeHub createMembershipRBACRoleBinding Sample", - "origin": "API_DEFINITION", - "description": " Creates a Membership RBACRoleBinding.", - "canonical": true, - "file": "gke_hub.create_membership_r_b_a_c_role_binding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateMembershipRBACRoleBinding", - "fullName": "google.cloud.gkehub.v1.GkeHub.CreateMembershipRBACRoleBinding", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "rbacrolebinding_id", - "type": "TYPE_STRING" - }, - { - "name": "rbacrolebinding", - "type": ".google.cloud.gkehub.v1.RBACRoleBinding" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1.GkeHubClient" - }, - "method": { - "shortName": "CreateMembershipRBACRoleBinding", - "fullName": "google.cloud.gkehub.v1.GkeHub.CreateMembershipRBACRoleBinding", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1.GkeHub" - } - } - } - }, - { - "regionTag": "gkehub_v1_generated_GkeHub_UpdateMembershipRBACRoleBinding_async", - "title": "GkeHub updateMembershipRBACRoleBinding Sample", - "origin": "API_DEFINITION", - "description": " Updates a Membership RBACRoleBinding.", - "canonical": true, - "file": "gke_hub.update_membership_r_b_a_c_role_binding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateMembershipRBACRoleBinding", - "fullName": "google.cloud.gkehub.v1.GkeHub.UpdateMembershipRBACRoleBinding", - "async": true, - "parameters": [ - { - "name": "rbacrolebinding", - "type": ".google.cloud.gkehub.v1.RBACRoleBinding" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1.GkeHubClient" - }, - "method": { - "shortName": "UpdateMembershipRBACRoleBinding", - "fullName": "google.cloud.gkehub.v1.GkeHub.UpdateMembershipRBACRoleBinding", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1.GkeHub" - } - } - } - }, - { - "regionTag": "gkehub_v1_generated_GkeHub_DeleteMembershipRBACRoleBinding_async", - "title": "GkeHub deleteMembershipRBACRoleBinding Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Membership RBACRoleBinding.", - "canonical": true, - "file": "gke_hub.delete_membership_r_b_a_c_role_binding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteMembershipRBACRoleBinding", - "fullName": "google.cloud.gkehub.v1.GkeHub.DeleteMembershipRBACRoleBinding", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1.GkeHubClient" - }, - "method": { - "shortName": "DeleteMembershipRBACRoleBinding", - "fullName": "google.cloud.gkehub.v1.GkeHub.DeleteMembershipRBACRoleBinding", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1.GkeHub" - } - } - } - }, - { - "regionTag": "gkehub_v1_generated_GkeHub_ListMembershipRBACRoleBindings_async", - "title": "GkeHub listMembershipRBACRoleBindings Sample", - "origin": "API_DEFINITION", - "description": " Lists all Membership RBACRoleBindings.", - "canonical": true, - "file": "gke_hub.list_membership_r_b_a_c_role_bindings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMembershipRBACRoleBindings", - "fullName": "google.cloud.gkehub.v1.GkeHub.ListMembershipRBACRoleBindings", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkehub.v1.ListMembershipRBACRoleBindingsResponse", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1.GkeHubClient" - }, - "method": { - "shortName": "ListMembershipRBACRoleBindings", - "fullName": "google.cloud.gkehub.v1.GkeHub.ListMembershipRBACRoleBindings", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1.GkeHub" - } - } - } - }, - { - "regionTag": "gkehub_v1_generated_GkeHub_GenerateMembershipRBACRoleBindingYAML_async", - "title": "GkeHub generateMembershipRBACRoleBindingYAML Sample", - "origin": "API_DEFINITION", - "description": " Generates a YAML of the RBAC policies for the specified RoleBinding and its associated impersonation resources.", - "canonical": true, - "file": "gke_hub.generate_membership_r_b_a_c_role_binding_y_a_m_l.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateMembershipRBACRoleBindingYAML", - "fullName": "google.cloud.gkehub.v1.GkeHub.GenerateMembershipRBACRoleBindingYAML", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "rbacrolebinding_id", - "type": "TYPE_STRING" - }, - { - "name": "rbacrolebinding", - "type": ".google.cloud.gkehub.v1.RBACRoleBinding" - } - ], - "resultType": ".google.cloud.gkehub.v1.GenerateMembershipRBACRoleBindingYAMLResponse", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1.GkeHubClient" - }, - "method": { - "shortName": "GenerateMembershipRBACRoleBindingYAML", - "fullName": "google.cloud.gkehub.v1.GkeHub.GenerateMembershipRBACRoleBindingYAML", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1.GkeHub" - } - } - } - } - ] -} diff --git a/packages/google-cloud-gkehub/samples/generated/v1alpha/snippet_metadata_google.cloud.gkehub.v1alpha.json b/packages/google-cloud-gkehub/samples/generated/v1alpha/snippet_metadata_google.cloud.gkehub.v1alpha.json deleted file mode 100644 index e02e53ebb3ee..000000000000 --- a/packages/google-cloud-gkehub/samples/generated/v1alpha/snippet_metadata_google.cloud.gkehub.v1alpha.json +++ /dev/null @@ -1,263 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-gkehub", - "version": "6.4.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.gkehub.v1alpha", - "version": "v1alpha" - } - ] - }, - "snippets": [ - { - "regionTag": "gkehub_v1alpha_generated_GkeHub_ListFeatures_async", - "title": "GkeHub listFeatures Sample", - "origin": "API_DEFINITION", - "description": " Lists Features in a given project and location.", - "canonical": true, - "file": "gke_hub.list_features.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFeatures", - "fullName": "google.cloud.gkehub.v1alpha.GkeHub.ListFeatures", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkehub.v1alpha.ListFeaturesResponse", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1alpha.GkeHubClient" - }, - "method": { - "shortName": "ListFeatures", - "fullName": "google.cloud.gkehub.v1alpha.GkeHub.ListFeatures", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1alpha.GkeHub" - } - } - } - }, - { - "regionTag": "gkehub_v1alpha_generated_GkeHub_GetFeature_async", - "title": "GkeHub getFeature Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Feature.", - "canonical": true, - "file": "gke_hub.get_feature.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFeature", - "fullName": "google.cloud.gkehub.v1alpha.GkeHub.GetFeature", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkehub.v1alpha.Feature", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1alpha.GkeHubClient" - }, - "method": { - "shortName": "GetFeature", - "fullName": "google.cloud.gkehub.v1alpha.GkeHub.GetFeature", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1alpha.GkeHub" - } - } - } - }, - { - "regionTag": "gkehub_v1alpha_generated_GkeHub_CreateFeature_async", - "title": "GkeHub createFeature Sample", - "origin": "API_DEFINITION", - "description": " Adds a new Feature.", - "canonical": true, - "file": "gke_hub.create_feature.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateFeature", - "fullName": "google.cloud.gkehub.v1alpha.GkeHub.CreateFeature", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "feature_id", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": ".google.cloud.gkehub.v1alpha.Feature" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1alpha.GkeHubClient" - }, - "method": { - "shortName": "CreateFeature", - "fullName": "google.cloud.gkehub.v1alpha.GkeHub.CreateFeature", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1alpha.GkeHub" - } - } - } - }, - { - "regionTag": "gkehub_v1alpha_generated_GkeHub_DeleteFeature_async", - "title": "GkeHub deleteFeature Sample", - "origin": "API_DEFINITION", - "description": " Removes a Feature.", - "canonical": true, - "file": "gke_hub.delete_feature.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteFeature", - "fullName": "google.cloud.gkehub.v1alpha.GkeHub.DeleteFeature", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1alpha.GkeHubClient" - }, - "method": { - "shortName": "DeleteFeature", - "fullName": "google.cloud.gkehub.v1alpha.GkeHub.DeleteFeature", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1alpha.GkeHub" - } - } - } - }, - { - "regionTag": "gkehub_v1alpha_generated_GkeHub_UpdateFeature_async", - "title": "GkeHub updateFeature Sample", - "origin": "API_DEFINITION", - "description": " Updates an existing Feature.", - "canonical": true, - "file": "gke_hub.update_feature.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateFeature", - "fullName": "google.cloud.gkehub.v1alpha.GkeHub.UpdateFeature", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "resource", - "type": ".google.cloud.gkehub.v1alpha.Feature" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1alpha.GkeHubClient" - }, - "method": { - "shortName": "UpdateFeature", - "fullName": "google.cloud.gkehub.v1alpha.GkeHub.UpdateFeature", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1alpha.GkeHub" - } - } - } - } - ] -} diff --git a/packages/google-cloud-gkehub/samples/generated/v1alpha2/snippet_metadata_google.cloud.gkehub.v1alpha2.json b/packages/google-cloud-gkehub/samples/generated/v1alpha2/snippet_metadata_google.cloud.gkehub.v1alpha2.json deleted file mode 100644 index 065fa9e76f2e..000000000000 --- a/packages/google-cloud-gkehub/samples/generated/v1alpha2/snippet_metadata_google.cloud.gkehub.v1alpha2.json +++ /dev/null @@ -1,351 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-gkehub", - "version": "6.4.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.gkehub.v1alpha2", - "version": "v1alpha2" - } - ] - }, - "snippets": [ - { - "regionTag": "gkehub_v1alpha2_generated_GkeHub_ListMemberships_async", - "title": "GkeHub listMemberships Sample", - "origin": "API_DEFINITION", - "description": " Lists Memberships in a given project and location.", - "canonical": true, - "file": "gke_hub.list_memberships.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMemberships", - "fullName": "google.cloud.gkehub.v1alpha2.GkeHub.ListMemberships", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkehub.v1alpha2.ListMembershipsResponse", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1alpha2.GkeHubClient" - }, - "method": { - "shortName": "ListMemberships", - "fullName": "google.cloud.gkehub.v1alpha2.GkeHub.ListMemberships", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1alpha2.GkeHub" - } - } - } - }, - { - "regionTag": "gkehub_v1alpha2_generated_GkeHub_GetMembership_async", - "title": "GkeHub getMembership Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a Membership.", - "canonical": true, - "file": "gke_hub.get_membership.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMembership", - "fullName": "google.cloud.gkehub.v1alpha2.GkeHub.GetMembership", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkehub.v1alpha2.Membership", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1alpha2.GkeHubClient" - }, - "method": { - "shortName": "GetMembership", - "fullName": "google.cloud.gkehub.v1alpha2.GkeHub.GetMembership", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1alpha2.GkeHub" - } - } - } - }, - { - "regionTag": "gkehub_v1alpha2_generated_GkeHub_CreateMembership_async", - "title": "GkeHub createMembership Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Membership. **This is currently only supported for GKE clusters on Google Cloud**. To register other clusters, follow the instructions at https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.", - "canonical": true, - "file": "gke_hub.create_membership.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateMembership", - "fullName": "google.cloud.gkehub.v1alpha2.GkeHub.CreateMembership", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "membership_id", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": ".google.cloud.gkehub.v1alpha2.Membership" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1alpha2.GkeHubClient" - }, - "method": { - "shortName": "CreateMembership", - "fullName": "google.cloud.gkehub.v1alpha2.GkeHub.CreateMembership", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1alpha2.GkeHub" - } - } - } - }, - { - "regionTag": "gkehub_v1alpha2_generated_GkeHub_DeleteMembership_async", - "title": "GkeHub deleteMembership Sample", - "origin": "API_DEFINITION", - "description": " Removes a Membership. **This is currently only supported for GKE clusters on Google Cloud**. To unregister other clusters, follow the instructions at https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.", - "canonical": true, - "file": "gke_hub.delete_membership.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteMembership", - "fullName": "google.cloud.gkehub.v1alpha2.GkeHub.DeleteMembership", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1alpha2.GkeHubClient" - }, - "method": { - "shortName": "DeleteMembership", - "fullName": "google.cloud.gkehub.v1alpha2.GkeHub.DeleteMembership", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1alpha2.GkeHub" - } - } - } - }, - { - "regionTag": "gkehub_v1alpha2_generated_GkeHub_UpdateMembership_async", - "title": "GkeHub updateMembership Sample", - "origin": "API_DEFINITION", - "description": " Updates an existing Membership.", - "canonical": true, - "file": "gke_hub.update_membership.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateMembership", - "fullName": "google.cloud.gkehub.v1alpha2.GkeHub.UpdateMembership", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "resource", - "type": ".google.cloud.gkehub.v1alpha2.Membership" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1alpha2.GkeHubClient" - }, - "method": { - "shortName": "UpdateMembership", - "fullName": "google.cloud.gkehub.v1alpha2.GkeHub.UpdateMembership", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1alpha2.GkeHub" - } - } - } - }, - { - "regionTag": "gkehub_v1alpha2_generated_GkeHub_GenerateConnectManifest_async", - "title": "GkeHub generateConnectManifest Sample", - "origin": "API_DEFINITION", - "description": " Generates the manifest for deployment of the GKE connect agent. **This method is used internally by Google-provided libraries.** Most clients should not need to call this method directly.", - "canonical": true, - "file": "gke_hub.generate_connect_manifest.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateConnectManifest", - "fullName": "google.cloud.gkehub.v1alpha2.GkeHub.GenerateConnectManifest", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "namespace", - "type": "TYPE_STRING" - }, - { - "name": "proxy", - "type": "TYPE_BYTES" - }, - { - "name": "version", - "type": "TYPE_STRING" - }, - { - "name": "is_upgrade", - "type": "TYPE_BOOL" - }, - { - "name": "registry", - "type": "TYPE_STRING" - }, - { - "name": "image_pull_secret_content", - "type": "TYPE_BYTES" - } - ], - "resultType": ".google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1alpha2.GkeHubClient" - }, - "method": { - "shortName": "GenerateConnectManifest", - "fullName": "google.cloud.gkehub.v1alpha2.GkeHub.GenerateConnectManifest", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1alpha2.GkeHub" - } - } - } - }, - { - "regionTag": "gkehub_v1alpha2_generated_GkeHub_InitializeHub_async", - "title": "GkeHub initializeHub Sample", - "origin": "API_DEFINITION", - "description": " Initializes the Hub in this project, which includes creating the default Hub Service Account and the Hub Workload Identity Pool. Initialization is optional, and happens automatically when the first Membership is created. InitializeHub should be called when the first Membership cannot be registered without these resources. A common example is granting the Hub Service Account access to another project, which requires the account to exist first.", - "canonical": true, - "file": "gke_hub.initialize_hub.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "InitializeHub", - "fullName": "google.cloud.gkehub.v1alpha2.GkeHub.InitializeHub", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkehub.v1alpha2.InitializeHubResponse", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1alpha2.GkeHubClient" - }, - "method": { - "shortName": "InitializeHub", - "fullName": "google.cloud.gkehub.v1alpha2.GkeHub.InitializeHub", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1alpha2.GkeHub" - } - } - } - } - ] -} diff --git a/packages/google-cloud-gkehub/samples/generated/v1beta/snippet_metadata_google.cloud.gkehub.v1beta.json b/packages/google-cloud-gkehub/samples/generated/v1beta/snippet_metadata_google.cloud.gkehub.v1beta.json deleted file mode 100644 index f57f60b38d92..000000000000 --- a/packages/google-cloud-gkehub/samples/generated/v1beta/snippet_metadata_google.cloud.gkehub.v1beta.json +++ /dev/null @@ -1,263 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-gkehub", - "version": "6.4.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.gkehub.v1beta", - "version": "v1beta" - } - ] - }, - "snippets": [ - { - "regionTag": "gkehub_v1beta_generated_GkeHub_ListFeatures_async", - "title": "GkeHub listFeatures Sample", - "origin": "API_DEFINITION", - "description": " Lists Features in a given project and location.", - "canonical": true, - "file": "gke_hub.list_features.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFeatures", - "fullName": "google.cloud.gkehub.v1beta.GkeHub.ListFeatures", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkehub.v1beta.ListFeaturesResponse", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1beta.GkeHubClient" - }, - "method": { - "shortName": "ListFeatures", - "fullName": "google.cloud.gkehub.v1beta.GkeHub.ListFeatures", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1beta.GkeHub" - } - } - } - }, - { - "regionTag": "gkehub_v1beta_generated_GkeHub_GetFeature_async", - "title": "GkeHub getFeature Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Feature.", - "canonical": true, - "file": "gke_hub.get_feature.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFeature", - "fullName": "google.cloud.gkehub.v1beta.GkeHub.GetFeature", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkehub.v1beta.Feature", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1beta.GkeHubClient" - }, - "method": { - "shortName": "GetFeature", - "fullName": "google.cloud.gkehub.v1beta.GkeHub.GetFeature", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1beta.GkeHub" - } - } - } - }, - { - "regionTag": "gkehub_v1beta_generated_GkeHub_CreateFeature_async", - "title": "GkeHub createFeature Sample", - "origin": "API_DEFINITION", - "description": " Adds a new Feature.", - "canonical": true, - "file": "gke_hub.create_feature.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateFeature", - "fullName": "google.cloud.gkehub.v1beta.GkeHub.CreateFeature", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "feature_id", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": ".google.cloud.gkehub.v1beta.Feature" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1beta.GkeHubClient" - }, - "method": { - "shortName": "CreateFeature", - "fullName": "google.cloud.gkehub.v1beta.GkeHub.CreateFeature", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1beta.GkeHub" - } - } - } - }, - { - "regionTag": "gkehub_v1beta_generated_GkeHub_DeleteFeature_async", - "title": "GkeHub deleteFeature Sample", - "origin": "API_DEFINITION", - "description": " Removes a Feature.", - "canonical": true, - "file": "gke_hub.delete_feature.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteFeature", - "fullName": "google.cloud.gkehub.v1beta.GkeHub.DeleteFeature", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1beta.GkeHubClient" - }, - "method": { - "shortName": "DeleteFeature", - "fullName": "google.cloud.gkehub.v1beta.GkeHub.DeleteFeature", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1beta.GkeHub" - } - } - } - }, - { - "regionTag": "gkehub_v1beta_generated_GkeHub_UpdateFeature_async", - "title": "GkeHub updateFeature Sample", - "origin": "API_DEFINITION", - "description": " Updates an existing Feature.", - "canonical": true, - "file": "gke_hub.update_feature.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateFeature", - "fullName": "google.cloud.gkehub.v1beta.GkeHub.UpdateFeature", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "resource", - "type": ".google.cloud.gkehub.v1beta.Feature" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GkeHubClient", - "fullName": "google.cloud.gkehub.v1beta.GkeHubClient" - }, - "method": { - "shortName": "UpdateFeature", - "fullName": "google.cloud.gkehub.v1beta.GkeHub.UpdateFeature", - "service": { - "shortName": "GkeHub", - "fullName": "google.cloud.gkehub.v1beta.GkeHub" - } - } - } - } - ] -} diff --git a/packages/google-cloud-gkehub/samples/generated/v1beta1/snippet_metadata_google.cloud.gkehub.v1beta1.json b/packages/google-cloud-gkehub/samples/generated/v1beta1/snippet_metadata_google.cloud.gkehub.v1beta1.json deleted file mode 100644 index 4a12f80239db..000000000000 --- a/packages/google-cloud-gkehub/samples/generated/v1beta1/snippet_metadata_google.cloud.gkehub.v1beta1.json +++ /dev/null @@ -1,419 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-gkehub", - "version": "6.4.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.gkehub.v1beta1", - "version": "v1beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "gkehub_v1beta1_generated_GkeHubMembershipService_ListMemberships_async", - "title": "GkeHubMembershipService listMemberships Sample", - "origin": "API_DEFINITION", - "description": " Lists Memberships in a given project and location.", - "canonical": true, - "file": "gke_hub_membership_service.list_memberships.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 88, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMemberships", - "fullName": "google.cloud.gkehub.v1beta1.GkeHubMembershipService.ListMemberships", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkehub.v1beta1.ListMembershipsResponse", - "client": { - "shortName": "GkeHubMembershipServiceClient", - "fullName": "google.cloud.gkehub.v1beta1.GkeHubMembershipServiceClient" - }, - "method": { - "shortName": "ListMemberships", - "fullName": "google.cloud.gkehub.v1beta1.GkeHubMembershipService.ListMemberships", - "service": { - "shortName": "GkeHubMembershipService", - "fullName": "google.cloud.gkehub.v1beta1.GkeHubMembershipService" - } - } - } - }, - { - "regionTag": "gkehub_v1beta1_generated_GkeHubMembershipService_GetMembership_async", - "title": "GkeHubMembershipService getMembership Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a Membership.", - "canonical": true, - "file": "gke_hub_membership_service.get_membership.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMembership", - "fullName": "google.cloud.gkehub.v1beta1.GkeHubMembershipService.GetMembership", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkehub.v1beta1.Membership", - "client": { - "shortName": "GkeHubMembershipServiceClient", - "fullName": "google.cloud.gkehub.v1beta1.GkeHubMembershipServiceClient" - }, - "method": { - "shortName": "GetMembership", - "fullName": "google.cloud.gkehub.v1beta1.GkeHubMembershipService.GetMembership", - "service": { - "shortName": "GkeHubMembershipService", - "fullName": "google.cloud.gkehub.v1beta1.GkeHubMembershipService" - } - } - } - }, - { - "regionTag": "gkehub_v1beta1_generated_GkeHubMembershipService_CreateMembership_async", - "title": "GkeHubMembershipService createMembership Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Membership. **This is currently only supported for GKE clusters on Google Cloud**. To register other clusters, follow the instructions at https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.", - "canonical": true, - "file": "gke_hub_membership_service.create_membership.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateMembership", - "fullName": "google.cloud.gkehub.v1beta1.GkeHubMembershipService.CreateMembership", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "membership_id", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": ".google.cloud.gkehub.v1beta1.Membership" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GkeHubMembershipServiceClient", - "fullName": "google.cloud.gkehub.v1beta1.GkeHubMembershipServiceClient" - }, - "method": { - "shortName": "CreateMembership", - "fullName": "google.cloud.gkehub.v1beta1.GkeHubMembershipService.CreateMembership", - "service": { - "shortName": "GkeHubMembershipService", - "fullName": "google.cloud.gkehub.v1beta1.GkeHubMembershipService" - } - } - } - }, - { - "regionTag": "gkehub_v1beta1_generated_GkeHubMembershipService_DeleteMembership_async", - "title": "GkeHubMembershipService deleteMembership Sample", - "origin": "API_DEFINITION", - "description": " Removes a Membership. **This is currently only supported for GKE clusters on Google Cloud**. To unregister other clusters, follow the instructions at https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.", - "canonical": true, - "file": "gke_hub_membership_service.delete_membership.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteMembership", - "fullName": "google.cloud.gkehub.v1beta1.GkeHubMembershipService.DeleteMembership", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GkeHubMembershipServiceClient", - "fullName": "google.cloud.gkehub.v1beta1.GkeHubMembershipServiceClient" - }, - "method": { - "shortName": "DeleteMembership", - "fullName": "google.cloud.gkehub.v1beta1.GkeHubMembershipService.DeleteMembership", - "service": { - "shortName": "GkeHubMembershipService", - "fullName": "google.cloud.gkehub.v1beta1.GkeHubMembershipService" - } - } - } - }, - { - "regionTag": "gkehub_v1beta1_generated_GkeHubMembershipService_UpdateMembership_async", - "title": "GkeHubMembershipService updateMembership Sample", - "origin": "API_DEFINITION", - "description": " Updates an existing Membership.", - "canonical": true, - "file": "gke_hub_membership_service.update_membership.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateMembership", - "fullName": "google.cloud.gkehub.v1beta1.GkeHubMembershipService.UpdateMembership", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "resource", - "type": ".google.cloud.gkehub.v1beta1.Membership" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "GkeHubMembershipServiceClient", - "fullName": "google.cloud.gkehub.v1beta1.GkeHubMembershipServiceClient" - }, - "method": { - "shortName": "UpdateMembership", - "fullName": "google.cloud.gkehub.v1beta1.GkeHubMembershipService.UpdateMembership", - "service": { - "shortName": "GkeHubMembershipService", - "fullName": "google.cloud.gkehub.v1beta1.GkeHubMembershipService" - } - } - } - }, - { - "regionTag": "gkehub_v1beta1_generated_GkeHubMembershipService_GenerateConnectManifest_async", - "title": "GkeHubMembershipService generateConnectManifest Sample", - "origin": "API_DEFINITION", - "description": " Generates the manifest for deployment of the GKE connect agent. **This method is used internally by Google-provided libraries.** Most clients should not need to call this method directly.", - "canonical": true, - "file": "gke_hub_membership_service.generate_connect_manifest.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateConnectManifest", - "fullName": "google.cloud.gkehub.v1beta1.GkeHubMembershipService.GenerateConnectManifest", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "connect_agent", - "type": ".google.cloud.gkehub.v1beta1.ConnectAgent" - }, - { - "name": "version", - "type": "TYPE_STRING" - }, - { - "name": "is_upgrade", - "type": "TYPE_BOOL" - }, - { - "name": "registry", - "type": "TYPE_STRING" - }, - { - "name": "image_pull_secret_content", - "type": "TYPE_BYTES" - } - ], - "resultType": ".google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse", - "client": { - "shortName": "GkeHubMembershipServiceClient", - "fullName": "google.cloud.gkehub.v1beta1.GkeHubMembershipServiceClient" - }, - "method": { - "shortName": "GenerateConnectManifest", - "fullName": "google.cloud.gkehub.v1beta1.GkeHubMembershipService.GenerateConnectManifest", - "service": { - "shortName": "GkeHubMembershipService", - "fullName": "google.cloud.gkehub.v1beta1.GkeHubMembershipService" - } - } - } - }, - { - "regionTag": "gkehub_v1beta1_generated_GkeHubMembershipService_ValidateExclusivity_async", - "title": "GkeHubMembershipService validateExclusivity Sample", - "origin": "API_DEFINITION", - "description": " ValidateExclusivity validates the state of exclusivity in the cluster. The validation does not depend on an existing Hub membership resource.", - "canonical": true, - "file": "gke_hub_membership_service.validate_exclusivity.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ValidateExclusivity", - "fullName": "google.cloud.gkehub.v1beta1.GkeHubMembershipService.ValidateExclusivity", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "cr_manifest", - "type": "TYPE_STRING" - }, - { - "name": "intended_membership", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkehub.v1beta1.ValidateExclusivityResponse", - "client": { - "shortName": "GkeHubMembershipServiceClient", - "fullName": "google.cloud.gkehub.v1beta1.GkeHubMembershipServiceClient" - }, - "method": { - "shortName": "ValidateExclusivity", - "fullName": "google.cloud.gkehub.v1beta1.GkeHubMembershipService.ValidateExclusivity", - "service": { - "shortName": "GkeHubMembershipService", - "fullName": "google.cloud.gkehub.v1beta1.GkeHubMembershipService" - } - } - } - }, - { - "regionTag": "gkehub_v1beta1_generated_GkeHubMembershipService_GenerateExclusivityManifest_async", - "title": "GkeHubMembershipService generateExclusivityManifest Sample", - "origin": "API_DEFINITION", - "description": " GenerateExclusivityManifest generates the manifests to update the exclusivity artifacts in the cluster if needed. Exclusivity artifacts include the Membership custom resource definition (CRD) and the singleton Membership custom resource (CR). Combined with ValidateExclusivity, exclusivity artifacts guarantee that a Kubernetes cluster is only registered to a single GKE Hub. The Membership CRD is versioned, and may require conversion when the GKE Hub API server begins serving a newer version of the CRD and corresponding CR. The response will be the converted CRD and CR if there are any differences between the versions.", - "canonical": true, - "file": "gke_hub_membership_service.generate_exclusivity_manifest.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateExclusivityManifest", - "fullName": "google.cloud.gkehub.v1beta1.GkeHubMembershipService.GenerateExclusivityManifest", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "crd_manifest", - "type": "TYPE_STRING" - }, - { - "name": "cr_manifest", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse", - "client": { - "shortName": "GkeHubMembershipServiceClient", - "fullName": "google.cloud.gkehub.v1beta1.GkeHubMembershipServiceClient" - }, - "method": { - "shortName": "GenerateExclusivityManifest", - "fullName": "google.cloud.gkehub.v1beta1.GkeHubMembershipService.GenerateExclusivityManifest", - "service": { - "shortName": "GkeHubMembershipService", - "fullName": "google.cloud.gkehub.v1beta1.GkeHubMembershipService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-gkemulticloud/samples/generated/v1/snippet_metadata_google.cloud.gkemulticloud.v1.json b/packages/google-cloud-gkemulticloud/samples/generated/v1/snippet_metadata_google.cloud.gkemulticloud.v1.json deleted file mode 100644 index 83af11a00d01..000000000000 --- a/packages/google-cloud-gkemulticloud/samples/generated/v1/snippet_metadata_google.cloud.gkemulticloud.v1.json +++ /dev/null @@ -1,2163 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-gkemulticloud", - "version": "2.3.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.gkemulticloud.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "gkemulticloud_v1_generated_AttachedClusters_CreateAttachedCluster_async", - "title": "AttachedClusters createAttachedCluster Sample", - "origin": "API_DEFINITION", - "description": " Creates a new [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource on a given Google Cloud Platform project and region. If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation.", - "canonical": true, - "file": "attached_clusters.create_attached_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAttachedCluster", - "fullName": "google.cloud.gkemulticloud.v1.AttachedClusters.CreateAttachedCluster", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "attached_cluster", - "type": ".google.cloud.gkemulticloud.v1.AttachedCluster" - }, - { - "name": "attached_cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AttachedClustersClient", - "fullName": "google.cloud.gkemulticloud.v1.AttachedClustersClient" - }, - "method": { - "shortName": "CreateAttachedCluster", - "fullName": "google.cloud.gkemulticloud.v1.AttachedClusters.CreateAttachedCluster", - "service": { - "shortName": "AttachedClusters", - "fullName": "google.cloud.gkemulticloud.v1.AttachedClusters" - } - } - } - }, - { - "regionTag": "gkemulticloud_v1_generated_AttachedClusters_UpdateAttachedCluster_async", - "title": "AttachedClusters updateAttachedCluster Sample", - "origin": "API_DEFINITION", - "description": " Updates an [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster].", - "canonical": true, - "file": "attached_clusters.update_attached_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAttachedCluster", - "fullName": "google.cloud.gkemulticloud.v1.AttachedClusters.UpdateAttachedCluster", - "async": true, - "parameters": [ - { - "name": "attached_cluster", - "type": ".google.cloud.gkemulticloud.v1.AttachedCluster" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AttachedClustersClient", - "fullName": "google.cloud.gkemulticloud.v1.AttachedClustersClient" - }, - "method": { - "shortName": "UpdateAttachedCluster", - "fullName": "google.cloud.gkemulticloud.v1.AttachedClusters.UpdateAttachedCluster", - "service": { - "shortName": "AttachedClusters", - "fullName": "google.cloud.gkemulticloud.v1.AttachedClusters" - } - } - } - }, - { - "regionTag": "gkemulticloud_v1_generated_AttachedClusters_ImportAttachedCluster_async", - "title": "AttachedClusters importAttachedCluster Sample", - "origin": "API_DEFINITION", - "description": " Imports creates a new [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource by importing an existing Fleet Membership resource. Attached Clusters created before the introduction of the Anthos Multi-Cloud API can be imported through this method. If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation.", - "canonical": true, - "file": "attached_clusters.import_attached_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportAttachedCluster", - "fullName": "google.cloud.gkemulticloud.v1.AttachedClusters.ImportAttachedCluster", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "fleet_membership", - "type": "TYPE_STRING" - }, - { - "name": "platform_version", - "type": "TYPE_STRING" - }, - { - "name": "distribution", - "type": "TYPE_STRING" - }, - { - "name": "proxy_config", - "type": ".google.cloud.gkemulticloud.v1.AttachedProxyConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AttachedClustersClient", - "fullName": "google.cloud.gkemulticloud.v1.AttachedClustersClient" - }, - "method": { - "shortName": "ImportAttachedCluster", - "fullName": "google.cloud.gkemulticloud.v1.AttachedClusters.ImportAttachedCluster", - "service": { - "shortName": "AttachedClusters", - "fullName": "google.cloud.gkemulticloud.v1.AttachedClusters" - } - } - } - }, - { - "regionTag": "gkemulticloud_v1_generated_AttachedClusters_GetAttachedCluster_async", - "title": "AttachedClusters getAttachedCluster Sample", - "origin": "API_DEFINITION", - "description": " Describes a specific [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource.", - "canonical": true, - "file": "attached_clusters.get_attached_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAttachedCluster", - "fullName": "google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkemulticloud.v1.AttachedCluster", - "client": { - "shortName": "AttachedClustersClient", - "fullName": "google.cloud.gkemulticloud.v1.AttachedClustersClient" - }, - "method": { - "shortName": "GetAttachedCluster", - "fullName": "google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedCluster", - "service": { - "shortName": "AttachedClusters", - "fullName": "google.cloud.gkemulticloud.v1.AttachedClusters" - } - } - } - }, - { - "regionTag": "gkemulticloud_v1_generated_AttachedClusters_ListAttachedClusters_async", - "title": "AttachedClusters listAttachedClusters Sample", - "origin": "API_DEFINITION", - "description": " Lists all [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resources on a given Google Cloud project and region.", - "canonical": true, - "file": "attached_clusters.list_attached_clusters.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAttachedClusters", - "fullName": "google.cloud.gkemulticloud.v1.AttachedClusters.ListAttachedClusters", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkemulticloud.v1.ListAttachedClustersResponse", - "client": { - "shortName": "AttachedClustersClient", - "fullName": "google.cloud.gkemulticloud.v1.AttachedClustersClient" - }, - "method": { - "shortName": "ListAttachedClusters", - "fullName": "google.cloud.gkemulticloud.v1.AttachedClusters.ListAttachedClusters", - "service": { - "shortName": "AttachedClusters", - "fullName": "google.cloud.gkemulticloud.v1.AttachedClusters" - } - } - } - }, - { - "regionTag": "gkemulticloud_v1_generated_AttachedClusters_DeleteAttachedCluster_async", - "title": "AttachedClusters deleteAttachedCluster Sample", - "origin": "API_DEFINITION", - "description": " Deletes a specific [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource. If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation.", - "canonical": true, - "file": "attached_clusters.delete_attached_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAttachedCluster", - "fullName": "google.cloud.gkemulticloud.v1.AttachedClusters.DeleteAttachedCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - }, - { - "name": "ignore_errors", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AttachedClustersClient", - "fullName": "google.cloud.gkemulticloud.v1.AttachedClustersClient" - }, - "method": { - "shortName": "DeleteAttachedCluster", - "fullName": "google.cloud.gkemulticloud.v1.AttachedClusters.DeleteAttachedCluster", - "service": { - "shortName": "AttachedClusters", - "fullName": "google.cloud.gkemulticloud.v1.AttachedClusters" - } - } - } - }, - { - "regionTag": "gkemulticloud_v1_generated_AttachedClusters_GetAttachedServerConfig_async", - "title": "AttachedClusters getAttachedServerConfig Sample", - "origin": "API_DEFINITION", - "description": " Returns information, such as supported Kubernetes versions, on a given Google Cloud location.", - "canonical": true, - "file": "attached_clusters.get_attached_server_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAttachedServerConfig", - "fullName": "google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkemulticloud.v1.AttachedServerConfig", - "client": { - "shortName": "AttachedClustersClient", - "fullName": "google.cloud.gkemulticloud.v1.AttachedClustersClient" - }, - "method": { - "shortName": "GetAttachedServerConfig", - "fullName": "google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig", - "service": { - "shortName": "AttachedClusters", - "fullName": "google.cloud.gkemulticloud.v1.AttachedClusters" - } - } - } - }, - { - "regionTag": "gkemulticloud_v1_generated_AttachedClusters_GenerateAttachedClusterInstallManifest_async", - "title": "AttachedClusters generateAttachedClusterInstallManifest Sample", - "origin": "API_DEFINITION", - "description": " Generates the install manifest to be installed on the target cluster.", - "canonical": true, - "file": "attached_clusters.generate_attached_cluster_install_manifest.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateAttachedClusterInstallManifest", - "fullName": "google.cloud.gkemulticloud.v1.AttachedClusters.GenerateAttachedClusterInstallManifest", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "attached_cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "platform_version", - "type": "TYPE_STRING" - }, - { - "name": "proxy_config", - "type": ".google.cloud.gkemulticloud.v1.AttachedProxyConfig" - } - ], - "resultType": ".google.cloud.gkemulticloud.v1.GenerateAttachedClusterInstallManifestResponse", - "client": { - "shortName": "AttachedClustersClient", - "fullName": "google.cloud.gkemulticloud.v1.AttachedClustersClient" - }, - "method": { - "shortName": "GenerateAttachedClusterInstallManifest", - "fullName": "google.cloud.gkemulticloud.v1.AttachedClusters.GenerateAttachedClusterInstallManifest", - "service": { - "shortName": "AttachedClusters", - "fullName": "google.cloud.gkemulticloud.v1.AttachedClusters" - } - } - } - }, - { - "regionTag": "gkemulticloud_v1_generated_AttachedClusters_GenerateAttachedClusterAgentToken_async", - "title": "AttachedClusters generateAttachedClusterAgentToken Sample", - "origin": "API_DEFINITION", - "description": " Generates an access token for a cluster agent.", - "canonical": true, - "file": "attached_clusters.generate_attached_cluster_agent_token.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 88, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateAttachedClusterAgentToken", - "fullName": "google.cloud.gkemulticloud.v1.AttachedClusters.GenerateAttachedClusterAgentToken", - "async": true, - "parameters": [ - { - "name": "attached_cluster", - "type": "TYPE_STRING" - }, - { - "name": "subject_token", - "type": "TYPE_STRING" - }, - { - "name": "subject_token_type", - "type": "TYPE_STRING" - }, - { - "name": "version", - "type": "TYPE_STRING" - }, - { - "name": "grant_type", - "type": "TYPE_STRING" - }, - { - "name": "audience", - "type": "TYPE_STRING" - }, - { - "name": "scope", - "type": "TYPE_STRING" - }, - { - "name": "requested_token_type", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkemulticloud.v1.GenerateAttachedClusterAgentTokenResponse", - "client": { - "shortName": "AttachedClustersClient", - "fullName": "google.cloud.gkemulticloud.v1.AttachedClustersClient" - }, - "method": { - "shortName": "GenerateAttachedClusterAgentToken", - "fullName": "google.cloud.gkemulticloud.v1.AttachedClusters.GenerateAttachedClusterAgentToken", - "service": { - "shortName": "AttachedClusters", - "fullName": "google.cloud.gkemulticloud.v1.AttachedClusters" - } - } - } - }, - { - "regionTag": "gkemulticloud_v1_generated_AwsClusters_CreateAwsCluster_async", - "title": "AttachedClusters createAwsCluster Sample", - "origin": "API_DEFINITION", - "description": " Creates a new [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource on a given Google Cloud Platform project and region. If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation.", - "canonical": true, - "file": "aws_clusters.create_aws_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAwsCluster", - "fullName": "google.cloud.gkemulticloud.v1.AwsClusters.CreateAwsCluster", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "aws_cluster", - "type": ".google.cloud.gkemulticloud.v1.AwsCluster" - }, - { - "name": "aws_cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AwsClustersClient", - "fullName": "google.cloud.gkemulticloud.v1.AwsClustersClient" - }, - "method": { - "shortName": "CreateAwsCluster", - "fullName": "google.cloud.gkemulticloud.v1.AwsClusters.CreateAwsCluster", - "service": { - "shortName": "AwsClusters", - "fullName": "google.cloud.gkemulticloud.v1.AwsClusters" - } - } - } - }, - { - "regionTag": "gkemulticloud_v1_generated_AwsClusters_UpdateAwsCluster_async", - "title": "AttachedClusters updateAwsCluster Sample", - "origin": "API_DEFINITION", - "description": " Updates an [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster].", - "canonical": true, - "file": "aws_clusters.update_aws_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 93, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAwsCluster", - "fullName": "google.cloud.gkemulticloud.v1.AwsClusters.UpdateAwsCluster", - "async": true, - "parameters": [ - { - "name": "aws_cluster", - "type": ".google.cloud.gkemulticloud.v1.AwsCluster" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AwsClustersClient", - "fullName": "google.cloud.gkemulticloud.v1.AwsClustersClient" - }, - "method": { - "shortName": "UpdateAwsCluster", - "fullName": "google.cloud.gkemulticloud.v1.AwsClusters.UpdateAwsCluster", - "service": { - "shortName": "AwsClusters", - "fullName": "google.cloud.gkemulticloud.v1.AwsClusters" - } - } - } - }, - { - "regionTag": "gkemulticloud_v1_generated_AwsClusters_GetAwsCluster_async", - "title": "AttachedClusters getAwsCluster Sample", - "origin": "API_DEFINITION", - "description": " Describes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource.", - "canonical": true, - "file": "aws_clusters.get_aws_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAwsCluster", - "fullName": "google.cloud.gkemulticloud.v1.AwsClusters.GetAwsCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkemulticloud.v1.AwsCluster", - "client": { - "shortName": "AwsClustersClient", - "fullName": "google.cloud.gkemulticloud.v1.AwsClustersClient" - }, - "method": { - "shortName": "GetAwsCluster", - "fullName": "google.cloud.gkemulticloud.v1.AwsClusters.GetAwsCluster", - "service": { - "shortName": "AwsClusters", - "fullName": "google.cloud.gkemulticloud.v1.AwsClusters" - } - } - } - }, - { - "regionTag": "gkemulticloud_v1_generated_AwsClusters_ListAwsClusters_async", - "title": "AttachedClusters listAwsClusters Sample", - "origin": "API_DEFINITION", - "description": " Lists all [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resources on a given Google Cloud project and region.", - "canonical": true, - "file": "aws_clusters.list_aws_clusters.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAwsClusters", - "fullName": "google.cloud.gkemulticloud.v1.AwsClusters.ListAwsClusters", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkemulticloud.v1.ListAwsClustersResponse", - "client": { - "shortName": "AwsClustersClient", - "fullName": "google.cloud.gkemulticloud.v1.AwsClustersClient" - }, - "method": { - "shortName": "ListAwsClusters", - "fullName": "google.cloud.gkemulticloud.v1.AwsClusters.ListAwsClusters", - "service": { - "shortName": "AwsClusters", - "fullName": "google.cloud.gkemulticloud.v1.AwsClusters" - } - } - } - }, - { - "regionTag": "gkemulticloud_v1_generated_AwsClusters_DeleteAwsCluster_async", - "title": "AttachedClusters deleteAwsCluster Sample", - "origin": "API_DEFINITION", - "description": " Deletes a specific [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource. Fails if the cluster has one or more associated [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources. If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation.", - "canonical": true, - "file": "aws_clusters.delete_aws_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAwsCluster", - "fullName": "google.cloud.gkemulticloud.v1.AwsClusters.DeleteAwsCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - }, - { - "name": "ignore_errors", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AwsClustersClient", - "fullName": "google.cloud.gkemulticloud.v1.AwsClustersClient" - }, - "method": { - "shortName": "DeleteAwsCluster", - "fullName": "google.cloud.gkemulticloud.v1.AwsClusters.DeleteAwsCluster", - "service": { - "shortName": "AwsClusters", - "fullName": "google.cloud.gkemulticloud.v1.AwsClusters" - } - } - } - }, - { - "regionTag": "gkemulticloud_v1_generated_AwsClusters_GenerateAwsClusterAgentToken_async", - "title": "AttachedClusters generateAwsClusterAgentToken Sample", - "origin": "API_DEFINITION", - "description": " Generates an access token for a cluster agent.", - "canonical": true, - "file": "aws_clusters.generate_aws_cluster_agent_token.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 92, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateAwsClusterAgentToken", - "fullName": "google.cloud.gkemulticloud.v1.AwsClusters.GenerateAwsClusterAgentToken", - "async": true, - "parameters": [ - { - "name": "aws_cluster", - "type": "TYPE_STRING" - }, - { - "name": "subject_token", - "type": "TYPE_STRING" - }, - { - "name": "subject_token_type", - "type": "TYPE_STRING" - }, - { - "name": "version", - "type": "TYPE_STRING" - }, - { - "name": "node_pool_id", - "type": "TYPE_STRING" - }, - { - "name": "grant_type", - "type": "TYPE_STRING" - }, - { - "name": "audience", - "type": "TYPE_STRING" - }, - { - "name": "scope", - "type": "TYPE_STRING" - }, - { - "name": "requested_token_type", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkemulticloud.v1.GenerateAwsClusterAgentTokenResponse", - "client": { - "shortName": "AwsClustersClient", - "fullName": "google.cloud.gkemulticloud.v1.AwsClustersClient" - }, - "method": { - "shortName": "GenerateAwsClusterAgentToken", - "fullName": "google.cloud.gkemulticloud.v1.AwsClusters.GenerateAwsClusterAgentToken", - "service": { - "shortName": "AwsClusters", - "fullName": "google.cloud.gkemulticloud.v1.AwsClusters" - } - } - } - }, - { - "regionTag": "gkemulticloud_v1_generated_AwsClusters_GenerateAwsAccessToken_async", - "title": "AttachedClusters generateAwsAccessToken Sample", - "origin": "API_DEFINITION", - "description": " Generates a short-lived access token to authenticate to a given [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource.", - "canonical": true, - "file": "aws_clusters.generate_aws_access_token.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateAwsAccessToken", - "fullName": "google.cloud.gkemulticloud.v1.AwsClusters.GenerateAwsAccessToken", - "async": true, - "parameters": [ - { - "name": "aws_cluster", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkemulticloud.v1.GenerateAwsAccessTokenResponse", - "client": { - "shortName": "AwsClustersClient", - "fullName": "google.cloud.gkemulticloud.v1.AwsClustersClient" - }, - "method": { - "shortName": "GenerateAwsAccessToken", - "fullName": "google.cloud.gkemulticloud.v1.AwsClusters.GenerateAwsAccessToken", - "service": { - "shortName": "AwsClusters", - "fullName": "google.cloud.gkemulticloud.v1.AwsClusters" - } - } - } - }, - { - "regionTag": "gkemulticloud_v1_generated_AwsClusters_CreateAwsNodePool_async", - "title": "AttachedClusters createAwsNodePool Sample", - "origin": "API_DEFINITION", - "description": " Creates a new [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool], attached to a given [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation.", - "canonical": true, - "file": "aws_clusters.create_aws_node_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAwsNodePool", - "fullName": "google.cloud.gkemulticloud.v1.AwsClusters.CreateAwsNodePool", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "aws_node_pool", - "type": ".google.cloud.gkemulticloud.v1.AwsNodePool" - }, - { - "name": "aws_node_pool_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AwsClustersClient", - "fullName": "google.cloud.gkemulticloud.v1.AwsClustersClient" - }, - "method": { - "shortName": "CreateAwsNodePool", - "fullName": "google.cloud.gkemulticloud.v1.AwsClusters.CreateAwsNodePool", - "service": { - "shortName": "AwsClusters", - "fullName": "google.cloud.gkemulticloud.v1.AwsClusters" - } - } - } - }, - { - "regionTag": "gkemulticloud_v1_generated_AwsClusters_UpdateAwsNodePool_async", - "title": "AttachedClusters updateAwsNodePool Sample", - "origin": "API_DEFINITION", - "description": " Updates an [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool].", - "canonical": true, - "file": "aws_clusters.update_aws_node_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 96, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAwsNodePool", - "fullName": "google.cloud.gkemulticloud.v1.AwsClusters.UpdateAwsNodePool", - "async": true, - "parameters": [ - { - "name": "aws_node_pool", - "type": ".google.cloud.gkemulticloud.v1.AwsNodePool" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AwsClustersClient", - "fullName": "google.cloud.gkemulticloud.v1.AwsClustersClient" - }, - "method": { - "shortName": "UpdateAwsNodePool", - "fullName": "google.cloud.gkemulticloud.v1.AwsClusters.UpdateAwsNodePool", - "service": { - "shortName": "AwsClusters", - "fullName": "google.cloud.gkemulticloud.v1.AwsClusters" - } - } - } - }, - { - "regionTag": "gkemulticloud_v1_generated_AwsClusters_RollbackAwsNodePoolUpdate_async", - "title": "AttachedClusters rollbackAwsNodePoolUpdate Sample", - "origin": "API_DEFINITION", - "description": " Rolls back a previously aborted or failed [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] update request. Makes no changes if the last update request successfully finished. If an update request is in progress, you cannot rollback the update. You must first cancel or let it finish unsuccessfully before you can rollback.", - "canonical": true, - "file": "aws_clusters.rollback_aws_node_pool_update.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RollbackAwsNodePoolUpdate", - "fullName": "google.cloud.gkemulticloud.v1.AwsClusters.RollbackAwsNodePoolUpdate", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "respect_pdb", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AwsClustersClient", - "fullName": "google.cloud.gkemulticloud.v1.AwsClustersClient" - }, - "method": { - "shortName": "RollbackAwsNodePoolUpdate", - "fullName": "google.cloud.gkemulticloud.v1.AwsClusters.RollbackAwsNodePoolUpdate", - "service": { - "shortName": "AwsClusters", - "fullName": "google.cloud.gkemulticloud.v1.AwsClusters" - } - } - } - }, - { - "regionTag": "gkemulticloud_v1_generated_AwsClusters_GetAwsNodePool_async", - "title": "AttachedClusters getAwsNodePool Sample", - "origin": "API_DEFINITION", - "description": " Describes a specific [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource.", - "canonical": true, - "file": "aws_clusters.get_aws_node_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAwsNodePool", - "fullName": "google.cloud.gkemulticloud.v1.AwsClusters.GetAwsNodePool", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkemulticloud.v1.AwsNodePool", - "client": { - "shortName": "AwsClustersClient", - "fullName": "google.cloud.gkemulticloud.v1.AwsClustersClient" - }, - "method": { - "shortName": "GetAwsNodePool", - "fullName": "google.cloud.gkemulticloud.v1.AwsClusters.GetAwsNodePool", - "service": { - "shortName": "AwsClusters", - "fullName": "google.cloud.gkemulticloud.v1.AwsClusters" - } - } - } - }, - { - "regionTag": "gkemulticloud_v1_generated_AwsClusters_ListAwsNodePools_async", - "title": "AttachedClusters listAwsNodePools Sample", - "origin": "API_DEFINITION", - "description": " Lists all [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resources on a given [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster].", - "canonical": true, - "file": "aws_clusters.list_aws_node_pools.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAwsNodePools", - "fullName": "google.cloud.gkemulticloud.v1.AwsClusters.ListAwsNodePools", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkemulticloud.v1.ListAwsNodePoolsResponse", - "client": { - "shortName": "AwsClustersClient", - "fullName": "google.cloud.gkemulticloud.v1.AwsClustersClient" - }, - "method": { - "shortName": "ListAwsNodePools", - "fullName": "google.cloud.gkemulticloud.v1.AwsClusters.ListAwsNodePools", - "service": { - "shortName": "AwsClusters", - "fullName": "google.cloud.gkemulticloud.v1.AwsClusters" - } - } - } - }, - { - "regionTag": "gkemulticloud_v1_generated_AwsClusters_DeleteAwsNodePool_async", - "title": "AttachedClusters deleteAwsNodePool Sample", - "origin": "API_DEFINITION", - "description": " Deletes a specific [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource. If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation.", - "canonical": true, - "file": "aws_clusters.delete_aws_node_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAwsNodePool", - "fullName": "google.cloud.gkemulticloud.v1.AwsClusters.DeleteAwsNodePool", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - }, - { - "name": "ignore_errors", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AwsClustersClient", - "fullName": "google.cloud.gkemulticloud.v1.AwsClustersClient" - }, - "method": { - "shortName": "DeleteAwsNodePool", - "fullName": "google.cloud.gkemulticloud.v1.AwsClusters.DeleteAwsNodePool", - "service": { - "shortName": "AwsClusters", - "fullName": "google.cloud.gkemulticloud.v1.AwsClusters" - } - } - } - }, - { - "regionTag": "gkemulticloud_v1_generated_AwsClusters_GetAwsOpenIdConfig_async", - "title": "AttachedClusters getAwsOpenIdConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets the OIDC discovery document for the cluster. See the [OpenID Connect Discovery 1.0 specification](https://openid.net/specs/openid-connect-discovery-1_0.html) for details.", - "canonical": true, - "file": "aws_clusters.get_aws_open_id_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAwsOpenIdConfig", - "fullName": "google.cloud.gkemulticloud.v1.AwsClusters.GetAwsOpenIdConfig", - "async": true, - "parameters": [ - { - "name": "aws_cluster", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkemulticloud.v1.AwsOpenIdConfig", - "client": { - "shortName": "AwsClustersClient", - "fullName": "google.cloud.gkemulticloud.v1.AwsClustersClient" - }, - "method": { - "shortName": "GetAwsOpenIdConfig", - "fullName": "google.cloud.gkemulticloud.v1.AwsClusters.GetAwsOpenIdConfig", - "service": { - "shortName": "AwsClusters", - "fullName": "google.cloud.gkemulticloud.v1.AwsClusters" - } - } - } - }, - { - "regionTag": "gkemulticloud_v1_generated_AwsClusters_GetAwsJsonWebKeys_async", - "title": "AttachedClusters getAwsJsonWebKeys Sample", - "origin": "API_DEFINITION", - "description": " Gets the public component of the cluster signing keys in JSON Web Key format.", - "canonical": true, - "file": "aws_clusters.get_aws_json_web_keys.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAwsJsonWebKeys", - "fullName": "google.cloud.gkemulticloud.v1.AwsClusters.GetAwsJsonWebKeys", - "async": true, - "parameters": [ - { - "name": "aws_cluster", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkemulticloud.v1.AwsJsonWebKeys", - "client": { - "shortName": "AwsClustersClient", - "fullName": "google.cloud.gkemulticloud.v1.AwsClustersClient" - }, - "method": { - "shortName": "GetAwsJsonWebKeys", - "fullName": "google.cloud.gkemulticloud.v1.AwsClusters.GetAwsJsonWebKeys", - "service": { - "shortName": "AwsClusters", - "fullName": "google.cloud.gkemulticloud.v1.AwsClusters" - } - } - } - }, - { - "regionTag": "gkemulticloud_v1_generated_AwsClusters_GetAwsServerConfig_async", - "title": "AttachedClusters getAwsServerConfig Sample", - "origin": "API_DEFINITION", - "description": " Returns information, such as supported AWS regions and Kubernetes versions, on a given Google Cloud location.", - "canonical": true, - "file": "aws_clusters.get_aws_server_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAwsServerConfig", - "fullName": "google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkemulticloud.v1.AwsServerConfig", - "client": { - "shortName": "AwsClustersClient", - "fullName": "google.cloud.gkemulticloud.v1.AwsClustersClient" - }, - "method": { - "shortName": "GetAwsServerConfig", - "fullName": "google.cloud.gkemulticloud.v1.AwsClusters.GetAwsServerConfig", - "service": { - "shortName": "AwsClusters", - "fullName": "google.cloud.gkemulticloud.v1.AwsClusters" - } - } - } - }, - { - "regionTag": "gkemulticloud_v1_generated_AzureClusters_CreateAzureClient_async", - "title": "AttachedClusters createAzureClient Sample", - "origin": "API_DEFINITION", - "description": " Creates a new [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource on a given Google Cloud project and region. `AzureClient` resources hold client authentication information needed by the Anthos Multicloud API to manage Azure resources on your Azure subscription on your behalf. If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation.", - "canonical": true, - "file": "azure_clusters.create_azure_client.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAzureClient", - "fullName": "google.cloud.gkemulticloud.v1.AzureClusters.CreateAzureClient", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "azure_client", - "type": ".google.cloud.gkemulticloud.v1.AzureClient" - }, - { - "name": "azure_client_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AzureClustersClient", - "fullName": "google.cloud.gkemulticloud.v1.AzureClustersClient" - }, - "method": { - "shortName": "CreateAzureClient", - "fullName": "google.cloud.gkemulticloud.v1.AzureClusters.CreateAzureClient", - "service": { - "shortName": "AzureClusters", - "fullName": "google.cloud.gkemulticloud.v1.AzureClusters" - } - } - } - }, - { - "regionTag": "gkemulticloud_v1_generated_AzureClusters_GetAzureClient_async", - "title": "AttachedClusters getAzureClient Sample", - "origin": "API_DEFINITION", - "description": " Describes a specific [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource.", - "canonical": true, - "file": "azure_clusters.get_azure_client.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAzureClient", - "fullName": "google.cloud.gkemulticloud.v1.AzureClusters.GetAzureClient", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkemulticloud.v1.AzureClient", - "client": { - "shortName": "AzureClustersClient", - "fullName": "google.cloud.gkemulticloud.v1.AzureClustersClient" - }, - "method": { - "shortName": "GetAzureClient", - "fullName": "google.cloud.gkemulticloud.v1.AzureClusters.GetAzureClient", - "service": { - "shortName": "AzureClusters", - "fullName": "google.cloud.gkemulticloud.v1.AzureClusters" - } - } - } - }, - { - "regionTag": "gkemulticloud_v1_generated_AzureClusters_ListAzureClients_async", - "title": "AttachedClusters listAzureClients Sample", - "origin": "API_DEFINITION", - "description": " Lists all [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resources on a given Google Cloud project and region.", - "canonical": true, - "file": "azure_clusters.list_azure_clients.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAzureClients", - "fullName": "google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClients", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkemulticloud.v1.ListAzureClientsResponse", - "client": { - "shortName": "AzureClustersClient", - "fullName": "google.cloud.gkemulticloud.v1.AzureClustersClient" - }, - "method": { - "shortName": "ListAzureClients", - "fullName": "google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClients", - "service": { - "shortName": "AzureClusters", - "fullName": "google.cloud.gkemulticloud.v1.AzureClusters" - } - } - } - }, - { - "regionTag": "gkemulticloud_v1_generated_AzureClusters_DeleteAzureClient_async", - "title": "AttachedClusters deleteAzureClient Sample", - "origin": "API_DEFINITION", - "description": " Deletes a specific [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource. If the client is used by one or more clusters, deletion will fail and a `FAILED_PRECONDITION` error will be returned. If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation.", - "canonical": true, - "file": "azure_clusters.delete_azure_client.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAzureClient", - "fullName": "google.cloud.gkemulticloud.v1.AzureClusters.DeleteAzureClient", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AzureClustersClient", - "fullName": "google.cloud.gkemulticloud.v1.AzureClustersClient" - }, - "method": { - "shortName": "DeleteAzureClient", - "fullName": "google.cloud.gkemulticloud.v1.AzureClusters.DeleteAzureClient", - "service": { - "shortName": "AzureClusters", - "fullName": "google.cloud.gkemulticloud.v1.AzureClusters" - } - } - } - }, - { - "regionTag": "gkemulticloud_v1_generated_AzureClusters_CreateAzureCluster_async", - "title": "AttachedClusters createAzureCluster Sample", - "origin": "API_DEFINITION", - "description": " Creates a new [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource on a given Google Cloud Platform project and region. If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation.", - "canonical": true, - "file": "azure_clusters.create_azure_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAzureCluster", - "fullName": "google.cloud.gkemulticloud.v1.AzureClusters.CreateAzureCluster", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "azure_cluster", - "type": ".google.cloud.gkemulticloud.v1.AzureCluster" - }, - { - "name": "azure_cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AzureClustersClient", - "fullName": "google.cloud.gkemulticloud.v1.AzureClustersClient" - }, - "method": { - "shortName": "CreateAzureCluster", - "fullName": "google.cloud.gkemulticloud.v1.AzureClusters.CreateAzureCluster", - "service": { - "shortName": "AzureClusters", - "fullName": "google.cloud.gkemulticloud.v1.AzureClusters" - } - } - } - }, - { - "regionTag": "gkemulticloud_v1_generated_AzureClusters_UpdateAzureCluster_async", - "title": "AttachedClusters updateAzureCluster Sample", - "origin": "API_DEFINITION", - "description": " Updates an [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].", - "canonical": true, - "file": "azure_clusters.update_azure_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAzureCluster", - "fullName": "google.cloud.gkemulticloud.v1.AzureClusters.UpdateAzureCluster", - "async": true, - "parameters": [ - { - "name": "azure_cluster", - "type": ".google.cloud.gkemulticloud.v1.AzureCluster" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AzureClustersClient", - "fullName": "google.cloud.gkemulticloud.v1.AzureClustersClient" - }, - "method": { - "shortName": "UpdateAzureCluster", - "fullName": "google.cloud.gkemulticloud.v1.AzureClusters.UpdateAzureCluster", - "service": { - "shortName": "AzureClusters", - "fullName": "google.cloud.gkemulticloud.v1.AzureClusters" - } - } - } - }, - { - "regionTag": "gkemulticloud_v1_generated_AzureClusters_GetAzureCluster_async", - "title": "AttachedClusters getAzureCluster Sample", - "origin": "API_DEFINITION", - "description": " Describes a specific [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource.", - "canonical": true, - "file": "azure_clusters.get_azure_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAzureCluster", - "fullName": "google.cloud.gkemulticloud.v1.AzureClusters.GetAzureCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkemulticloud.v1.AzureCluster", - "client": { - "shortName": "AzureClustersClient", - "fullName": "google.cloud.gkemulticloud.v1.AzureClustersClient" - }, - "method": { - "shortName": "GetAzureCluster", - "fullName": "google.cloud.gkemulticloud.v1.AzureClusters.GetAzureCluster", - "service": { - "shortName": "AzureClusters", - "fullName": "google.cloud.gkemulticloud.v1.AzureClusters" - } - } - } - }, - { - "regionTag": "gkemulticloud_v1_generated_AzureClusters_ListAzureClusters_async", - "title": "AttachedClusters listAzureClusters Sample", - "origin": "API_DEFINITION", - "description": " Lists all [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resources on a given Google Cloud project and region.", - "canonical": true, - "file": "azure_clusters.list_azure_clusters.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAzureClusters", - "fullName": "google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClusters", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkemulticloud.v1.ListAzureClustersResponse", - "client": { - "shortName": "AzureClustersClient", - "fullName": "google.cloud.gkemulticloud.v1.AzureClustersClient" - }, - "method": { - "shortName": "ListAzureClusters", - "fullName": "google.cloud.gkemulticloud.v1.AzureClusters.ListAzureClusters", - "service": { - "shortName": "AzureClusters", - "fullName": "google.cloud.gkemulticloud.v1.AzureClusters" - } - } - } - }, - { - "regionTag": "gkemulticloud_v1_generated_AzureClusters_DeleteAzureCluster_async", - "title": "AttachedClusters deleteAzureCluster Sample", - "origin": "API_DEFINITION", - "description": " Deletes a specific [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource. Fails if the cluster has one or more associated [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources. If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation.", - "canonical": true, - "file": "azure_clusters.delete_azure_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAzureCluster", - "fullName": "google.cloud.gkemulticloud.v1.AzureClusters.DeleteAzureCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - }, - { - "name": "ignore_errors", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AzureClustersClient", - "fullName": "google.cloud.gkemulticloud.v1.AzureClustersClient" - }, - "method": { - "shortName": "DeleteAzureCluster", - "fullName": "google.cloud.gkemulticloud.v1.AzureClusters.DeleteAzureCluster", - "service": { - "shortName": "AzureClusters", - "fullName": "google.cloud.gkemulticloud.v1.AzureClusters" - } - } - } - }, - { - "regionTag": "gkemulticloud_v1_generated_AzureClusters_GenerateAzureClusterAgentToken_async", - "title": "AttachedClusters generateAzureClusterAgentToken Sample", - "origin": "API_DEFINITION", - "description": " Generates an access token for a cluster agent.", - "canonical": true, - "file": "azure_clusters.generate_azure_cluster_agent_token.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 92, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateAzureClusterAgentToken", - "fullName": "google.cloud.gkemulticloud.v1.AzureClusters.GenerateAzureClusterAgentToken", - "async": true, - "parameters": [ - { - "name": "azure_cluster", - "type": "TYPE_STRING" - }, - { - "name": "subject_token", - "type": "TYPE_STRING" - }, - { - "name": "subject_token_type", - "type": "TYPE_STRING" - }, - { - "name": "version", - "type": "TYPE_STRING" - }, - { - "name": "node_pool_id", - "type": "TYPE_STRING" - }, - { - "name": "grant_type", - "type": "TYPE_STRING" - }, - { - "name": "audience", - "type": "TYPE_STRING" - }, - { - "name": "scope", - "type": "TYPE_STRING" - }, - { - "name": "requested_token_type", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkemulticloud.v1.GenerateAzureClusterAgentTokenResponse", - "client": { - "shortName": "AzureClustersClient", - "fullName": "google.cloud.gkemulticloud.v1.AzureClustersClient" - }, - "method": { - "shortName": "GenerateAzureClusterAgentToken", - "fullName": "google.cloud.gkemulticloud.v1.AzureClusters.GenerateAzureClusterAgentToken", - "service": { - "shortName": "AzureClusters", - "fullName": "google.cloud.gkemulticloud.v1.AzureClusters" - } - } - } - }, - { - "regionTag": "gkemulticloud_v1_generated_AzureClusters_GenerateAzureAccessToken_async", - "title": "AttachedClusters generateAzureAccessToken Sample", - "origin": "API_DEFINITION", - "description": " Generates a short-lived access token to authenticate to a given [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource.", - "canonical": true, - "file": "azure_clusters.generate_azure_access_token.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateAzureAccessToken", - "fullName": "google.cloud.gkemulticloud.v1.AzureClusters.GenerateAzureAccessToken", - "async": true, - "parameters": [ - { - "name": "azure_cluster", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenResponse", - "client": { - "shortName": "AzureClustersClient", - "fullName": "google.cloud.gkemulticloud.v1.AzureClustersClient" - }, - "method": { - "shortName": "GenerateAzureAccessToken", - "fullName": "google.cloud.gkemulticloud.v1.AzureClusters.GenerateAzureAccessToken", - "service": { - "shortName": "AzureClusters", - "fullName": "google.cloud.gkemulticloud.v1.AzureClusters" - } - } - } - }, - { - "regionTag": "gkemulticloud_v1_generated_AzureClusters_CreateAzureNodePool_async", - "title": "AttachedClusters createAzureNodePool Sample", - "origin": "API_DEFINITION", - "description": " Creates a new [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool], attached to a given [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation.", - "canonical": true, - "file": "azure_clusters.create_azure_node_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAzureNodePool", - "fullName": "google.cloud.gkemulticloud.v1.AzureClusters.CreateAzureNodePool", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "azure_node_pool", - "type": ".google.cloud.gkemulticloud.v1.AzureNodePool" - }, - { - "name": "azure_node_pool_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AzureClustersClient", - "fullName": "google.cloud.gkemulticloud.v1.AzureClustersClient" - }, - "method": { - "shortName": "CreateAzureNodePool", - "fullName": "google.cloud.gkemulticloud.v1.AzureClusters.CreateAzureNodePool", - "service": { - "shortName": "AzureClusters", - "fullName": "google.cloud.gkemulticloud.v1.AzureClusters" - } - } - } - }, - { - "regionTag": "gkemulticloud_v1_generated_AzureClusters_UpdateAzureNodePool_async", - "title": "AttachedClusters updateAzureNodePool Sample", - "origin": "API_DEFINITION", - "description": " Updates an [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool].", - "canonical": true, - "file": "azure_clusters.update_azure_node_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAzureNodePool", - "fullName": "google.cloud.gkemulticloud.v1.AzureClusters.UpdateAzureNodePool", - "async": true, - "parameters": [ - { - "name": "azure_node_pool", - "type": ".google.cloud.gkemulticloud.v1.AzureNodePool" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AzureClustersClient", - "fullName": "google.cloud.gkemulticloud.v1.AzureClustersClient" - }, - "method": { - "shortName": "UpdateAzureNodePool", - "fullName": "google.cloud.gkemulticloud.v1.AzureClusters.UpdateAzureNodePool", - "service": { - "shortName": "AzureClusters", - "fullName": "google.cloud.gkemulticloud.v1.AzureClusters" - } - } - } - }, - { - "regionTag": "gkemulticloud_v1_generated_AzureClusters_GetAzureNodePool_async", - "title": "AttachedClusters getAzureNodePool Sample", - "origin": "API_DEFINITION", - "description": " Describes a specific [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource.", - "canonical": true, - "file": "azure_clusters.get_azure_node_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAzureNodePool", - "fullName": "google.cloud.gkemulticloud.v1.AzureClusters.GetAzureNodePool", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkemulticloud.v1.AzureNodePool", - "client": { - "shortName": "AzureClustersClient", - "fullName": "google.cloud.gkemulticloud.v1.AzureClustersClient" - }, - "method": { - "shortName": "GetAzureNodePool", - "fullName": "google.cloud.gkemulticloud.v1.AzureClusters.GetAzureNodePool", - "service": { - "shortName": "AzureClusters", - "fullName": "google.cloud.gkemulticloud.v1.AzureClusters" - } - } - } - }, - { - "regionTag": "gkemulticloud_v1_generated_AzureClusters_ListAzureNodePools_async", - "title": "AttachedClusters listAzureNodePools Sample", - "origin": "API_DEFINITION", - "description": " Lists all [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resources on a given [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster].", - "canonical": true, - "file": "azure_clusters.list_azure_node_pools.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAzureNodePools", - "fullName": "google.cloud.gkemulticloud.v1.AzureClusters.ListAzureNodePools", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse", - "client": { - "shortName": "AzureClustersClient", - "fullName": "google.cloud.gkemulticloud.v1.AzureClustersClient" - }, - "method": { - "shortName": "ListAzureNodePools", - "fullName": "google.cloud.gkemulticloud.v1.AzureClusters.ListAzureNodePools", - "service": { - "shortName": "AzureClusters", - "fullName": "google.cloud.gkemulticloud.v1.AzureClusters" - } - } - } - }, - { - "regionTag": "gkemulticloud_v1_generated_AzureClusters_DeleteAzureNodePool_async", - "title": "AttachedClusters deleteAzureNodePool Sample", - "origin": "API_DEFINITION", - "description": " Deletes a specific [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource. If successful, the response contains a newly created [Operation][google.longrunning.Operation] resource that can be described to track the status of the operation.", - "canonical": true, - "file": "azure_clusters.delete_azure_node_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 88, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAzureNodePool", - "fullName": "google.cloud.gkemulticloud.v1.AzureClusters.DeleteAzureNodePool", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - }, - { - "name": "ignore_errors", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AzureClustersClient", - "fullName": "google.cloud.gkemulticloud.v1.AzureClustersClient" - }, - "method": { - "shortName": "DeleteAzureNodePool", - "fullName": "google.cloud.gkemulticloud.v1.AzureClusters.DeleteAzureNodePool", - "service": { - "shortName": "AzureClusters", - "fullName": "google.cloud.gkemulticloud.v1.AzureClusters" - } - } - } - }, - { - "regionTag": "gkemulticloud_v1_generated_AzureClusters_GetAzureOpenIdConfig_async", - "title": "AttachedClusters getAzureOpenIdConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets the OIDC discovery document for the cluster. See the [OpenID Connect Discovery 1.0 specification](https://openid.net/specs/openid-connect-discovery-1_0.html) for details.", - "canonical": true, - "file": "azure_clusters.get_azure_open_id_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAzureOpenIdConfig", - "fullName": "google.cloud.gkemulticloud.v1.AzureClusters.GetAzureOpenIdConfig", - "async": true, - "parameters": [ - { - "name": "azure_cluster", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkemulticloud.v1.AzureOpenIdConfig", - "client": { - "shortName": "AzureClustersClient", - "fullName": "google.cloud.gkemulticloud.v1.AzureClustersClient" - }, - "method": { - "shortName": "GetAzureOpenIdConfig", - "fullName": "google.cloud.gkemulticloud.v1.AzureClusters.GetAzureOpenIdConfig", - "service": { - "shortName": "AzureClusters", - "fullName": "google.cloud.gkemulticloud.v1.AzureClusters" - } - } - } - }, - { - "regionTag": "gkemulticloud_v1_generated_AzureClusters_GetAzureJsonWebKeys_async", - "title": "AttachedClusters getAzureJsonWebKeys Sample", - "origin": "API_DEFINITION", - "description": " Gets the public component of the cluster signing keys in JSON Web Key format.", - "canonical": true, - "file": "azure_clusters.get_azure_json_web_keys.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAzureJsonWebKeys", - "fullName": "google.cloud.gkemulticloud.v1.AzureClusters.GetAzureJsonWebKeys", - "async": true, - "parameters": [ - { - "name": "azure_cluster", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkemulticloud.v1.AzureJsonWebKeys", - "client": { - "shortName": "AzureClustersClient", - "fullName": "google.cloud.gkemulticloud.v1.AzureClustersClient" - }, - "method": { - "shortName": "GetAzureJsonWebKeys", - "fullName": "google.cloud.gkemulticloud.v1.AzureClusters.GetAzureJsonWebKeys", - "service": { - "shortName": "AzureClusters", - "fullName": "google.cloud.gkemulticloud.v1.AzureClusters" - } - } - } - }, - { - "regionTag": "gkemulticloud_v1_generated_AzureClusters_GetAzureServerConfig_async", - "title": "AttachedClusters getAzureServerConfig Sample", - "origin": "API_DEFINITION", - "description": " Returns information, such as supported Azure regions and Kubernetes versions, on a given Google Cloud location.", - "canonical": true, - "file": "azure_clusters.get_azure_server_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAzureServerConfig", - "fullName": "google.cloud.gkemulticloud.v1.AzureClusters.GetAzureServerConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkemulticloud.v1.AzureServerConfig", - "client": { - "shortName": "AzureClustersClient", - "fullName": "google.cloud.gkemulticloud.v1.AzureClustersClient" - }, - "method": { - "shortName": "GetAzureServerConfig", - "fullName": "google.cloud.gkemulticloud.v1.AzureClusters.GetAzureServerConfig", - "service": { - "shortName": "AzureClusters", - "fullName": "google.cloud.gkemulticloud.v1.AzureClusters" - } - } - } - } - ] -} diff --git a/packages/google-cloud-gkerecommender/samples/generated/v1/snippet_metadata_google.cloud.gkerecommender.v1.json b/packages/google-cloud-gkerecommender/samples/generated/v1/snippet_metadata_google.cloud.gkerecommender.v1.json deleted file mode 100644 index 7d1c13216237..000000000000 --- a/packages/google-cloud-gkerecommender/samples/generated/v1/snippet_metadata_google.cloud.gkerecommender.v1.json +++ /dev/null @@ -1,323 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-gkerecommender", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.gkerecommender.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "gkerecommender_v1_generated_GkeInferenceQuickstart_FetchModels_async", - "title": "GkeInferenceQuickstart fetchModels Sample", - "origin": "API_DEFINITION", - "description": " Fetches available models. Open-source models follow the Huggingface Hub `owner/model_name` format.", - "canonical": true, - "file": "gke_inference_quickstart.fetch_models.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchModels", - "fullName": "google.cloud.gkerecommender.v1.GkeInferenceQuickstart.FetchModels", - "async": true, - "parameters": [ - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkerecommender.v1.FetchModelsResponse", - "client": { - "shortName": "GkeInferenceQuickstartClient", - "fullName": "google.cloud.gkerecommender.v1.GkeInferenceQuickstartClient" - }, - "method": { - "shortName": "FetchModels", - "fullName": "google.cloud.gkerecommender.v1.GkeInferenceQuickstart.FetchModels", - "service": { - "shortName": "GkeInferenceQuickstart", - "fullName": "google.cloud.gkerecommender.v1.GkeInferenceQuickstart" - } - } - } - }, - { - "regionTag": "gkerecommender_v1_generated_GkeInferenceQuickstart_FetchModelServers_async", - "title": "GkeInferenceQuickstart fetchModelServers Sample", - "origin": "API_DEFINITION", - "description": " Fetches available model servers. Open-source model servers use simplified, lowercase names (e.g., `vllm`).", - "canonical": true, - "file": "gke_inference_quickstart.fetch_model_servers.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchModelServers", - "fullName": "google.cloud.gkerecommender.v1.GkeInferenceQuickstart.FetchModelServers", - "async": true, - "parameters": [ - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkerecommender.v1.FetchModelServersResponse", - "client": { - "shortName": "GkeInferenceQuickstartClient", - "fullName": "google.cloud.gkerecommender.v1.GkeInferenceQuickstartClient" - }, - "method": { - "shortName": "FetchModelServers", - "fullName": "google.cloud.gkerecommender.v1.GkeInferenceQuickstart.FetchModelServers", - "service": { - "shortName": "GkeInferenceQuickstart", - "fullName": "google.cloud.gkerecommender.v1.GkeInferenceQuickstart" - } - } - } - }, - { - "regionTag": "gkerecommender_v1_generated_GkeInferenceQuickstart_FetchModelServerVersions_async", - "title": "GkeInferenceQuickstart fetchModelServerVersions Sample", - "origin": "API_DEFINITION", - "description": " Fetches available model server versions. Open-source servers use their own versioning schemas (e.g., `vllm` uses semver like `v1.0.0`). Some model servers have different versioning schemas depending on the accelerator. For example, `vllm` uses semver on GPUs, but returns nightly build tags on TPUs. All available versions will be returned when different schemas are present.", - "canonical": true, - "file": "gke_inference_quickstart.fetch_model_server_versions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchModelServerVersions", - "fullName": "google.cloud.gkerecommender.v1.GkeInferenceQuickstart.FetchModelServerVersions", - "async": true, - "parameters": [ - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "model_server", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkerecommender.v1.FetchModelServerVersionsResponse", - "client": { - "shortName": "GkeInferenceQuickstartClient", - "fullName": "google.cloud.gkerecommender.v1.GkeInferenceQuickstartClient" - }, - "method": { - "shortName": "FetchModelServerVersions", - "fullName": "google.cloud.gkerecommender.v1.GkeInferenceQuickstart.FetchModelServerVersions", - "service": { - "shortName": "GkeInferenceQuickstart", - "fullName": "google.cloud.gkerecommender.v1.GkeInferenceQuickstart" - } - } - } - }, - { - "regionTag": "gkerecommender_v1_generated_GkeInferenceQuickstart_FetchProfiles_async", - "title": "GkeInferenceQuickstart fetchProfiles Sample", - "origin": "API_DEFINITION", - "description": " Fetches available profiles. A profile contains performance metrics and cost information for a specific model server setup. Profiles can be filtered by parameters. If no filters are provided, all profiles are returned. Profiles display a single value per performance metric based on the provided performance requirements. If no requirements are given, the metrics represent the inflection point. See [Run best practice inference with GKE Inference Quickstart recipes](https://cloud.google.com/kubernetes-engine/docs/how-to/machine-learning/inference/inference-quickstart#how) for details.", - "canonical": true, - "file": "gke_inference_quickstart.fetch_profiles.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 97, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchProfiles", - "fullName": "google.cloud.gkerecommender.v1.GkeInferenceQuickstart.FetchProfiles", - "async": true, - "parameters": [ - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "model_server", - "type": "TYPE_STRING" - }, - { - "name": "model_server_version", - "type": "TYPE_STRING" - }, - { - "name": "performance_requirements", - "type": ".google.cloud.gkerecommender.v1.PerformanceRequirements" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkerecommender.v1.FetchProfilesResponse", - "client": { - "shortName": "GkeInferenceQuickstartClient", - "fullName": "google.cloud.gkerecommender.v1.GkeInferenceQuickstartClient" - }, - "method": { - "shortName": "FetchProfiles", - "fullName": "google.cloud.gkerecommender.v1.GkeInferenceQuickstart.FetchProfiles", - "service": { - "shortName": "GkeInferenceQuickstart", - "fullName": "google.cloud.gkerecommender.v1.GkeInferenceQuickstart" - } - } - } - }, - { - "regionTag": "gkerecommender_v1_generated_GkeInferenceQuickstart_GenerateOptimizedManifest_async", - "title": "GkeInferenceQuickstart generateOptimizedManifest Sample", - "origin": "API_DEFINITION", - "description": " Generates an optimized deployment manifest for a given model and model server, based on the specified accelerator, performance targets, and configurations. See [Run best practice inference with GKE Inference Quickstart recipes](https://cloud.google.com/kubernetes-engine/docs/how-to/machine-learning/inference/inference-quickstart) for deployment details.", - "canonical": true, - "file": "gke_inference_quickstart.generate_optimized_manifest.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateOptimizedManifest", - "fullName": "google.cloud.gkerecommender.v1.GkeInferenceQuickstart.GenerateOptimizedManifest", - "async": true, - "parameters": [ - { - "name": "model_server_info", - "type": ".google.cloud.gkerecommender.v1.ModelServerInfo" - }, - { - "name": "accelerator_type", - "type": "TYPE_STRING" - }, - { - "name": "kubernetes_namespace", - "type": "TYPE_STRING" - }, - { - "name": "performance_requirements", - "type": ".google.cloud.gkerecommender.v1.PerformanceRequirements" - }, - { - "name": "storage_config", - "type": ".google.cloud.gkerecommender.v1.StorageConfig" - } - ], - "resultType": ".google.cloud.gkerecommender.v1.GenerateOptimizedManifestResponse", - "client": { - "shortName": "GkeInferenceQuickstartClient", - "fullName": "google.cloud.gkerecommender.v1.GkeInferenceQuickstartClient" - }, - "method": { - "shortName": "GenerateOptimizedManifest", - "fullName": "google.cloud.gkerecommender.v1.GkeInferenceQuickstart.GenerateOptimizedManifest", - "service": { - "shortName": "GkeInferenceQuickstart", - "fullName": "google.cloud.gkerecommender.v1.GkeInferenceQuickstart" - } - } - } - }, - { - "regionTag": "gkerecommender_v1_generated_GkeInferenceQuickstart_FetchBenchmarkingData_async", - "title": "GkeInferenceQuickstart fetchBenchmarkingData Sample", - "origin": "API_DEFINITION", - "description": " Fetches all of the benchmarking data available for a profile. Benchmarking data returns all of the performance metrics available for a given model server setup on a given instance type.", - "canonical": true, - "file": "gke_inference_quickstart.fetch_benchmarking_data.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchBenchmarkingData", - "fullName": "google.cloud.gkerecommender.v1.GkeInferenceQuickstart.FetchBenchmarkingData", - "async": true, - "parameters": [ - { - "name": "model_server_info", - "type": ".google.cloud.gkerecommender.v1.ModelServerInfo" - }, - { - "name": "instance_type", - "type": "TYPE_STRING" - }, - { - "name": "pricing_model", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gkerecommender.v1.FetchBenchmarkingDataResponse", - "client": { - "shortName": "GkeInferenceQuickstartClient", - "fullName": "google.cloud.gkerecommender.v1.GkeInferenceQuickstartClient" - }, - "method": { - "shortName": "FetchBenchmarkingData", - "fullName": "google.cloud.gkerecommender.v1.GkeInferenceQuickstart.FetchBenchmarkingData", - "service": { - "shortName": "GkeInferenceQuickstart", - "fullName": "google.cloud.gkerecommender.v1.GkeInferenceQuickstart" - } - } - } - } - ] -} diff --git a/packages/google-cloud-gsuiteaddons/samples/generated/v1/snippet_metadata_google.cloud.gsuiteaddons.v1.json b/packages/google-cloud-gsuiteaddons/samples/generated/v1/snippet_metadata_google.cloud.gsuiteaddons.v1.json deleted file mode 100644 index 5e8d5d13180f..000000000000 --- a/packages/google-cloud-gsuiteaddons/samples/generated/v1/snippet_metadata_google.cloud.gsuiteaddons.v1.json +++ /dev/null @@ -1,395 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-gsuiteaddons", - "version": "2.2.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.gsuiteaddons.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "gsuiteaddons_v1_generated_GSuiteAddOns_GetAuthorization_async", - "title": "GSuiteAddOns getAuthorization Sample", - "origin": "API_DEFINITION", - "description": " Gets the authorization information for deployments in a given project.", - "canonical": true, - "file": "g_suite_add_ons.get_authorization.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAuthorization", - "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns.GetAuthorization", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gsuiteaddons.v1.Authorization", - "client": { - "shortName": "GSuiteAddOnsClient", - "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOnsClient" - }, - "method": { - "shortName": "GetAuthorization", - "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns.GetAuthorization", - "service": { - "shortName": "GSuiteAddOns", - "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns" - } - } - } - }, - { - "regionTag": "gsuiteaddons_v1_generated_GSuiteAddOns_CreateDeployment_async", - "title": "GSuiteAddOns createDeployment Sample", - "origin": "API_DEFINITION", - "description": " Creates a deployment with the specified name and configuration.", - "canonical": true, - "file": "g_suite_add_ons.create_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDeployment", - "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns.CreateDeployment", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "deployment_id", - "type": "TYPE_STRING" - }, - { - "name": "deployment", - "type": ".google.cloud.gsuiteaddons.v1.Deployment" - } - ], - "resultType": ".google.cloud.gsuiteaddons.v1.Deployment", - "client": { - "shortName": "GSuiteAddOnsClient", - "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOnsClient" - }, - "method": { - "shortName": "CreateDeployment", - "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns.CreateDeployment", - "service": { - "shortName": "GSuiteAddOns", - "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns" - } - } - } - }, - { - "regionTag": "gsuiteaddons_v1_generated_GSuiteAddOns_ReplaceDeployment_async", - "title": "GSuiteAddOns replaceDeployment Sample", - "origin": "API_DEFINITION", - "description": " Creates or replaces a deployment with the specified name.", - "canonical": true, - "file": "g_suite_add_ons.replace_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReplaceDeployment", - "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns.ReplaceDeployment", - "async": true, - "parameters": [ - { - "name": "deployment", - "type": ".google.cloud.gsuiteaddons.v1.Deployment" - } - ], - "resultType": ".google.cloud.gsuiteaddons.v1.Deployment", - "client": { - "shortName": "GSuiteAddOnsClient", - "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOnsClient" - }, - "method": { - "shortName": "ReplaceDeployment", - "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns.ReplaceDeployment", - "service": { - "shortName": "GSuiteAddOns", - "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns" - } - } - } - }, - { - "regionTag": "gsuiteaddons_v1_generated_GSuiteAddOns_GetDeployment_async", - "title": "GSuiteAddOns getDeployment Sample", - "origin": "API_DEFINITION", - "description": " Gets the deployment with the specified name.", - "canonical": true, - "file": "g_suite_add_ons.get_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDeployment", - "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns.GetDeployment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gsuiteaddons.v1.Deployment", - "client": { - "shortName": "GSuiteAddOnsClient", - "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOnsClient" - }, - "method": { - "shortName": "GetDeployment", - "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns.GetDeployment", - "service": { - "shortName": "GSuiteAddOns", - "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns" - } - } - } - }, - { - "regionTag": "gsuiteaddons_v1_generated_GSuiteAddOns_ListDeployments_async", - "title": "GSuiteAddOns listDeployments Sample", - "origin": "API_DEFINITION", - "description": " Lists all deployments in a particular project.", - "canonical": true, - "file": "g_suite_add_ons.list_deployments.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDeployments", - "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns.ListDeployments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gsuiteaddons.v1.ListDeploymentsResponse", - "client": { - "shortName": "GSuiteAddOnsClient", - "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOnsClient" - }, - "method": { - "shortName": "ListDeployments", - "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns.ListDeployments", - "service": { - "shortName": "GSuiteAddOns", - "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns" - } - } - } - }, - { - "regionTag": "gsuiteaddons_v1_generated_GSuiteAddOns_DeleteDeployment_async", - "title": "GSuiteAddOns deleteDeployment Sample", - "origin": "API_DEFINITION", - "description": " Deletes the deployment with the given name.", - "canonical": true, - "file": "g_suite_add_ons.delete_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDeployment", - "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns.DeleteDeployment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "GSuiteAddOnsClient", - "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOnsClient" - }, - "method": { - "shortName": "DeleteDeployment", - "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns.DeleteDeployment", - "service": { - "shortName": "GSuiteAddOns", - "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns" - } - } - } - }, - { - "regionTag": "gsuiteaddons_v1_generated_GSuiteAddOns_InstallDeployment_async", - "title": "GSuiteAddOns installDeployment Sample", - "origin": "API_DEFINITION", - "description": " Installs a deployment in developer mode. See: https://developers.google.com/gsuite/add-ons/how-tos/testing-gsuite-addons.", - "canonical": true, - "file": "g_suite_add_ons.install_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "InstallDeployment", - "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns.InstallDeployment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "GSuiteAddOnsClient", - "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOnsClient" - }, - "method": { - "shortName": "InstallDeployment", - "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns.InstallDeployment", - "service": { - "shortName": "GSuiteAddOns", - "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns" - } - } - } - }, - { - "regionTag": "gsuiteaddons_v1_generated_GSuiteAddOns_UninstallDeployment_async", - "title": "GSuiteAddOns uninstallDeployment Sample", - "origin": "API_DEFINITION", - "description": " Uninstalls a developer mode deployment. See: https://developers.google.com/gsuite/add-ons/how-tos/testing-gsuite-addons.", - "canonical": true, - "file": "g_suite_add_ons.uninstall_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UninstallDeployment", - "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns.UninstallDeployment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "GSuiteAddOnsClient", - "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOnsClient" - }, - "method": { - "shortName": "UninstallDeployment", - "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns.UninstallDeployment", - "service": { - "shortName": "GSuiteAddOns", - "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns" - } - } - } - }, - { - "regionTag": "gsuiteaddons_v1_generated_GSuiteAddOns_GetInstallStatus_async", - "title": "GSuiteAddOns getInstallStatus Sample", - "origin": "API_DEFINITION", - "description": " Fetches the install status of a developer mode deployment.", - "canonical": true, - "file": "g_suite_add_ons.get_install_status.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetInstallStatus", - "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns.GetInstallStatus", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.gsuiteaddons.v1.InstallStatus", - "client": { - "shortName": "GSuiteAddOnsClient", - "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOnsClient" - }, - "method": { - "shortName": "GetInstallStatus", - "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns.GetInstallStatus", - "service": { - "shortName": "GSuiteAddOns", - "fullName": "google.cloud.gsuiteaddons.v1.GSuiteAddOns" - } - } - } - } - ] -} diff --git a/packages/google-cloud-hypercomputecluster/samples/generated/v1/snippet_metadata_google.cloud.hypercomputecluster.v1.json b/packages/google-cloud-hypercomputecluster/samples/generated/v1/snippet_metadata_google.cloud.hypercomputecluster.v1.json deleted file mode 100644 index 301d6229359f..000000000000 --- a/packages/google-cloud-hypercomputecluster/samples/generated/v1/snippet_metadata_google.cloud.hypercomputecluster.v1.json +++ /dev/null @@ -1,255 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-hypercomputecluster", - "version": "0.2.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.hypercomputecluster.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "hypercomputecluster_v1_generated_HypercomputeCluster_ListClusters_async", - "title": "HypercomputeCluster listClusters Sample", - "origin": "API_DEFINITION", - "description": " Lists Clusters in a given project and location.", - "canonical": true, - "file": "hypercompute_cluster.list_clusters.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListClusters", - "fullName": "google.cloud.hypercomputecluster.v1.HypercomputeCluster.ListClusters", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.hypercomputecluster.v1.ListClustersResponse", - "client": { - "shortName": "HypercomputeClusterClient", - "fullName": "google.cloud.hypercomputecluster.v1.HypercomputeClusterClient" - }, - "method": { - "shortName": "ListClusters", - "fullName": "google.cloud.hypercomputecluster.v1.HypercomputeCluster.ListClusters", - "service": { - "shortName": "HypercomputeCluster", - "fullName": "google.cloud.hypercomputecluster.v1.HypercomputeCluster" - } - } - } - }, - { - "regionTag": "hypercomputecluster_v1_generated_HypercomputeCluster_GetCluster_async", - "title": "HypercomputeCluster getCluster Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Cluster.", - "canonical": true, - "file": "hypercompute_cluster.get_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCluster", - "fullName": "google.cloud.hypercomputecluster.v1.HypercomputeCluster.GetCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.hypercomputecluster.v1.Cluster", - "client": { - "shortName": "HypercomputeClusterClient", - "fullName": "google.cloud.hypercomputecluster.v1.HypercomputeClusterClient" - }, - "method": { - "shortName": "GetCluster", - "fullName": "google.cloud.hypercomputecluster.v1.HypercomputeCluster.GetCluster", - "service": { - "shortName": "HypercomputeCluster", - "fullName": "google.cloud.hypercomputecluster.v1.HypercomputeCluster" - } - } - } - }, - { - "regionTag": "hypercomputecluster_v1_generated_HypercomputeCluster_CreateCluster_async", - "title": "HypercomputeCluster createCluster Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Cluster in a given project and location.", - "canonical": true, - "file": "hypercompute_cluster.create_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCluster", - "fullName": "google.cloud.hypercomputecluster.v1.HypercomputeCluster.CreateCluster", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "cluster", - "type": ".google.cloud.hypercomputecluster.v1.Cluster" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "HypercomputeClusterClient", - "fullName": "google.cloud.hypercomputecluster.v1.HypercomputeClusterClient" - }, - "method": { - "shortName": "CreateCluster", - "fullName": "google.cloud.hypercomputecluster.v1.HypercomputeCluster.CreateCluster", - "service": { - "shortName": "HypercomputeCluster", - "fullName": "google.cloud.hypercomputecluster.v1.HypercomputeCluster" - } - } - } - }, - { - "regionTag": "hypercomputecluster_v1_generated_HypercomputeCluster_UpdateCluster_async", - "title": "HypercomputeCluster updateCluster Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Cluster.", - "canonical": true, - "file": "hypercompute_cluster.update_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCluster", - "fullName": "google.cloud.hypercomputecluster.v1.HypercomputeCluster.UpdateCluster", - "async": true, - "parameters": [ - { - "name": "cluster", - "type": ".google.cloud.hypercomputecluster.v1.Cluster" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "HypercomputeClusterClient", - "fullName": "google.cloud.hypercomputecluster.v1.HypercomputeClusterClient" - }, - "method": { - "shortName": "UpdateCluster", - "fullName": "google.cloud.hypercomputecluster.v1.HypercomputeCluster.UpdateCluster", - "service": { - "shortName": "HypercomputeCluster", - "fullName": "google.cloud.hypercomputecluster.v1.HypercomputeCluster" - } - } - } - }, - { - "regionTag": "hypercomputecluster_v1_generated_HypercomputeCluster_DeleteCluster_async", - "title": "HypercomputeCluster deleteCluster Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Cluster.", - "canonical": true, - "file": "hypercompute_cluster.delete_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCluster", - "fullName": "google.cloud.hypercomputecluster.v1.HypercomputeCluster.DeleteCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "HypercomputeClusterClient", - "fullName": "google.cloud.hypercomputecluster.v1.HypercomputeClusterClient" - }, - "method": { - "shortName": "DeleteCluster", - "fullName": "google.cloud.hypercomputecluster.v1.HypercomputeCluster.DeleteCluster", - "service": { - "shortName": "HypercomputeCluster", - "fullName": "google.cloud.hypercomputecluster.v1.HypercomputeCluster" - } - } - } - } - ] -} diff --git a/packages/google-cloud-hypercomputecluster/samples/generated/v1alpha/snippet_metadata_google.cloud.hypercomputecluster.v1alpha.json b/packages/google-cloud-hypercomputecluster/samples/generated/v1alpha/snippet_metadata_google.cloud.hypercomputecluster.v1alpha.json deleted file mode 100644 index 0de6b0627664..000000000000 --- a/packages/google-cloud-hypercomputecluster/samples/generated/v1alpha/snippet_metadata_google.cloud.hypercomputecluster.v1alpha.json +++ /dev/null @@ -1,1251 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-hypercomputecluster", - "version": "0.2.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.hypercomputecluster.v1alpha", - "version": "v1alpha" - } - ] - }, - "snippets": [ - { - "regionTag": "hypercomputecluster_v1alpha_generated_HypercomputeCluster_ListClusters_async", - "title": "HypercomputeCluster listClusters Sample", - "origin": "API_DEFINITION", - "description": " Lists Clusters in a given project and location.", - "canonical": true, - "file": "hypercompute_cluster.list_clusters.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListClusters", - "fullName": "google.cloud.hypercomputecluster.v1alpha.HypercomputeCluster.ListClusters", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.hypercomputecluster.v1alpha.ListClustersResponse", - "client": { - "shortName": "HypercomputeClusterClient", - "fullName": "google.cloud.hypercomputecluster.v1alpha.HypercomputeClusterClient" - }, - "method": { - "shortName": "ListClusters", - "fullName": "google.cloud.hypercomputecluster.v1alpha.HypercomputeCluster.ListClusters", - "service": { - "shortName": "HypercomputeCluster", - "fullName": "google.cloud.hypercomputecluster.v1alpha.HypercomputeCluster" - } - } - } - }, - { - "regionTag": "hypercomputecluster_v1alpha_generated_HypercomputeCluster_GetCluster_async", - "title": "HypercomputeCluster getCluster Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Cluster.", - "canonical": true, - "file": "hypercompute_cluster.get_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCluster", - "fullName": "google.cloud.hypercomputecluster.v1alpha.HypercomputeCluster.GetCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.hypercomputecluster.v1alpha.Cluster", - "client": { - "shortName": "HypercomputeClusterClient", - "fullName": "google.cloud.hypercomputecluster.v1alpha.HypercomputeClusterClient" - }, - "method": { - "shortName": "GetCluster", - "fullName": "google.cloud.hypercomputecluster.v1alpha.HypercomputeCluster.GetCluster", - "service": { - "shortName": "HypercomputeCluster", - "fullName": "google.cloud.hypercomputecluster.v1alpha.HypercomputeCluster" - } - } - } - }, - { - "regionTag": "hypercomputecluster_v1alpha_generated_HypercomputeCluster_CreateCluster_async", - "title": "HypercomputeCluster createCluster Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Cluster in a given project and location.", - "canonical": true, - "file": "hypercompute_cluster.create_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCluster", - "fullName": "google.cloud.hypercomputecluster.v1alpha.HypercomputeCluster.CreateCluster", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "cluster", - "type": ".google.cloud.hypercomputecluster.v1alpha.Cluster" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "HypercomputeClusterClient", - "fullName": "google.cloud.hypercomputecluster.v1alpha.HypercomputeClusterClient" - }, - "method": { - "shortName": "CreateCluster", - "fullName": "google.cloud.hypercomputecluster.v1alpha.HypercomputeCluster.CreateCluster", - "service": { - "shortName": "HypercomputeCluster", - "fullName": "google.cloud.hypercomputecluster.v1alpha.HypercomputeCluster" - } - } - } - }, - { - "regionTag": "hypercomputecluster_v1alpha_generated_HypercomputeCluster_UpdateCluster_async", - "title": "HypercomputeCluster updateCluster Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Cluster.", - "canonical": true, - "file": "hypercompute_cluster.update_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCluster", - "fullName": "google.cloud.hypercomputecluster.v1alpha.HypercomputeCluster.UpdateCluster", - "async": true, - "parameters": [ - { - "name": "cluster", - "type": ".google.cloud.hypercomputecluster.v1alpha.Cluster" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "HypercomputeClusterClient", - "fullName": "google.cloud.hypercomputecluster.v1alpha.HypercomputeClusterClient" - }, - "method": { - "shortName": "UpdateCluster", - "fullName": "google.cloud.hypercomputecluster.v1alpha.HypercomputeCluster.UpdateCluster", - "service": { - "shortName": "HypercomputeCluster", - "fullName": "google.cloud.hypercomputecluster.v1alpha.HypercomputeCluster" - } - } - } - }, - { - "regionTag": "hypercomputecluster_v1alpha_generated_HypercomputeCluster_DeleteCluster_async", - "title": "HypercomputeCluster deleteCluster Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Cluster.", - "canonical": true, - "file": "hypercompute_cluster.delete_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCluster", - "fullName": "google.cloud.hypercomputecluster.v1alpha.HypercomputeCluster.DeleteCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "HypercomputeClusterClient", - "fullName": "google.cloud.hypercomputecluster.v1alpha.HypercomputeClusterClient" - }, - "method": { - "shortName": "DeleteCluster", - "fullName": "google.cloud.hypercomputecluster.v1alpha.HypercomputeCluster.DeleteCluster", - "service": { - "shortName": "HypercomputeCluster", - "fullName": "google.cloud.hypercomputecluster.v1alpha.HypercomputeCluster" - } - } - } - }, - { - "regionTag": "hypercomputecluster_v1alpha_generated_HypercomputeCluster_GetNode_async", - "title": "HypercomputeCluster getNode Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Node.", - "canonical": true, - "file": "hypercompute_cluster.get_node.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetNode", - "fullName": "google.cloud.hypercomputecluster.v1alpha.HypercomputeCluster.GetNode", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.hypercomputecluster.v1alpha.Node", - "client": { - "shortName": "HypercomputeClusterClient", - "fullName": "google.cloud.hypercomputecluster.v1alpha.HypercomputeClusterClient" - }, - "method": { - "shortName": "GetNode", - "fullName": "google.cloud.hypercomputecluster.v1alpha.HypercomputeCluster.GetNode", - "service": { - "shortName": "HypercomputeCluster", - "fullName": "google.cloud.hypercomputecluster.v1alpha.HypercomputeCluster" - } - } - } - }, - { - "regionTag": "hypercomputecluster_v1alpha_generated_HypercomputeCluster_ListNodes_async", - "title": "HypercomputeCluster listNodes Sample", - "origin": "API_DEFINITION", - "description": " Lists Nodes in a given cluster.", - "canonical": true, - "file": "hypercompute_cluster.list_nodes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListNodes", - "fullName": "google.cloud.hypercomputecluster.v1alpha.HypercomputeCluster.ListNodes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.hypercomputecluster.v1alpha.ListNodesResponse", - "client": { - "shortName": "HypercomputeClusterClient", - "fullName": "google.cloud.hypercomputecluster.v1alpha.HypercomputeClusterClient" - }, - "method": { - "shortName": "ListNodes", - "fullName": "google.cloud.hypercomputecluster.v1alpha.HypercomputeCluster.ListNodes", - "service": { - "shortName": "HypercomputeCluster", - "fullName": "google.cloud.hypercomputecluster.v1alpha.HypercomputeCluster" - } - } - } - }, - { - "regionTag": "hypercomputecluster_v1alpha_generated_MachineLearningRuns_CreateMachineLearningRun_async", - "title": "HypercomputeCluster createMachineLearningRun Sample", - "origin": "API_DEFINITION", - "description": " Creates a Machine Learning Run.", - "canonical": true, - "file": "machine_learning_runs.create_machine_learning_run.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateMachineLearningRun", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRuns.CreateMachineLearningRun", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "machine_learning_run", - "type": ".google.cloud.hypercomputecluster.v1alpha.MachineLearningRun" - }, - { - "name": "machine_learning_run_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MachineLearningRunsClient", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRunsClient" - }, - "method": { - "shortName": "CreateMachineLearningRun", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRuns.CreateMachineLearningRun", - "service": { - "shortName": "MachineLearningRuns", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRuns" - } - } - } - }, - { - "regionTag": "hypercomputecluster_v1alpha_generated_MachineLearningRuns_UpdateMachineLearningRun_async", - "title": "HypercomputeCluster updateMachineLearningRun Sample", - "origin": "API_DEFINITION", - "description": " Updates an Machine Learning Run.", - "canonical": true, - "file": "machine_learning_runs.update_machine_learning_run.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateMachineLearningRun", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRuns.UpdateMachineLearningRun", - "async": true, - "parameters": [ - { - "name": "machine_learning_run", - "type": ".google.cloud.hypercomputecluster.v1alpha.MachineLearningRun" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MachineLearningRunsClient", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRunsClient" - }, - "method": { - "shortName": "UpdateMachineLearningRun", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRuns.UpdateMachineLearningRun", - "service": { - "shortName": "MachineLearningRuns", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRuns" - } - } - } - }, - { - "regionTag": "hypercomputecluster_v1alpha_generated_MachineLearningRuns_DeleteMachineLearningRun_async", - "title": "HypercomputeCluster deleteMachineLearningRun Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Machine Learning Run.", - "canonical": true, - "file": "machine_learning_runs.delete_machine_learning_run.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteMachineLearningRun", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRuns.DeleteMachineLearningRun", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MachineLearningRunsClient", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRunsClient" - }, - "method": { - "shortName": "DeleteMachineLearningRun", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRuns.DeleteMachineLearningRun", - "service": { - "shortName": "MachineLearningRuns", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRuns" - } - } - } - }, - { - "regionTag": "hypercomputecluster_v1alpha_generated_MachineLearningRuns_GetMachineLearningRun_async", - "title": "HypercomputeCluster getMachineLearningRun Sample", - "origin": "API_DEFINITION", - "description": " Gets a Machine Learning Run.", - "canonical": true, - "file": "machine_learning_runs.get_machine_learning_run.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMachineLearningRun", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRuns.GetMachineLearningRun", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.hypercomputecluster.v1alpha.MachineLearningRun", - "client": { - "shortName": "MachineLearningRunsClient", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRunsClient" - }, - "method": { - "shortName": "GetMachineLearningRun", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRuns.GetMachineLearningRun", - "service": { - "shortName": "MachineLearningRuns", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRuns" - } - } - } - }, - { - "regionTag": "hypercomputecluster_v1alpha_generated_MachineLearningRuns_ListMachineLearningRuns_async", - "title": "HypercomputeCluster listMachineLearningRuns Sample", - "origin": "API_DEFINITION", - "description": " Lists Machine Learning Runs.", - "canonical": true, - "file": "machine_learning_runs.list_machine_learning_runs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 110, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMachineLearningRuns", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRuns.ListMachineLearningRuns", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.hypercomputecluster.v1alpha.ListMachineLearningRunsResponse", - "client": { - "shortName": "MachineLearningRunsClient", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRunsClient" - }, - "method": { - "shortName": "ListMachineLearningRuns", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRuns.ListMachineLearningRuns", - "service": { - "shortName": "MachineLearningRuns", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRuns" - } - } - } - }, - { - "regionTag": "hypercomputecluster_v1alpha_generated_MachineLearningRuns_CreateProfilerTarget_async", - "title": "HypercomputeCluster createProfilerTarget Sample", - "origin": "API_DEFINITION", - "description": " Creates a Profiler Target.", - "canonical": true, - "file": "machine_learning_runs.create_profiler_target.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateProfilerTarget", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRuns.CreateProfilerTarget", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "profiler_target", - "type": ".google.cloud.hypercomputecluster.v1alpha.ProfilerTarget" - }, - { - "name": "profiler_target_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MachineLearningRunsClient", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRunsClient" - }, - "method": { - "shortName": "CreateProfilerTarget", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRuns.CreateProfilerTarget", - "service": { - "shortName": "MachineLearningRuns", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRuns" - } - } - } - }, - { - "regionTag": "hypercomputecluster_v1alpha_generated_MachineLearningRuns_GetProfilerTarget_async", - "title": "HypercomputeCluster getProfilerTarget Sample", - "origin": "API_DEFINITION", - "description": " Gets a Profiler Target.", - "canonical": true, - "file": "machine_learning_runs.get_profiler_target.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetProfilerTarget", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRuns.GetProfilerTarget", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.hypercomputecluster.v1alpha.ProfilerTarget", - "client": { - "shortName": "MachineLearningRunsClient", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRunsClient" - }, - "method": { - "shortName": "GetProfilerTarget", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRuns.GetProfilerTarget", - "service": { - "shortName": "MachineLearningRuns", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRuns" - } - } - } - }, - { - "regionTag": "hypercomputecluster_v1alpha_generated_MachineLearningRuns_ListProfilerTargets_async", - "title": "HypercomputeCluster listProfilerTargets Sample", - "origin": "API_DEFINITION", - "description": " List Profiler Targets for a Machine Learning Run.", - "canonical": true, - "file": "machine_learning_runs.list_profiler_targets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListProfilerTargets", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRuns.ListProfilerTargets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.hypercomputecluster.v1alpha.ListProfilerTargetsResponse", - "client": { - "shortName": "MachineLearningRunsClient", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRunsClient" - }, - "method": { - "shortName": "ListProfilerTargets", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRuns.ListProfilerTargets", - "service": { - "shortName": "MachineLearningRuns", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRuns" - } - } - } - }, - { - "regionTag": "hypercomputecluster_v1alpha_generated_MachineLearningRuns_DeleteProfilerTarget_async", - "title": "HypercomputeCluster deleteProfilerTarget Sample", - "origin": "API_DEFINITION", - "description": " Delete a Profiler Target.", - "canonical": true, - "file": "machine_learning_runs.delete_profiler_target.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteProfilerTarget", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRuns.DeleteProfilerTarget", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "MachineLearningRunsClient", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRunsClient" - }, - "method": { - "shortName": "DeleteProfilerTarget", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRuns.DeleteProfilerTarget", - "service": { - "shortName": "MachineLearningRuns", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRuns" - } - } - } - }, - { - "regionTag": "hypercomputecluster_v1alpha_generated_MachineLearningRuns_CreateProfilerSession_async", - "title": "HypercomputeCluster createProfilerSession Sample", - "origin": "API_DEFINITION", - "description": " Create a Profiler Session.", - "canonical": true, - "file": "machine_learning_runs.create_profiler_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateProfilerSession", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRuns.CreateProfilerSession", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "profiler_session_id", - "type": "TYPE_STRING" - }, - { - "name": "profiler_session", - "type": ".google.cloud.hypercomputecluster.v1alpha.ProfilerSession" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MachineLearningRunsClient", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRunsClient" - }, - "method": { - "shortName": "CreateProfilerSession", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRuns.CreateProfilerSession", - "service": { - "shortName": "MachineLearningRuns", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRuns" - } - } - } - }, - { - "regionTag": "hypercomputecluster_v1alpha_generated_MachineLearningRuns_GetProfilerSession_async", - "title": "HypercomputeCluster getProfilerSession Sample", - "origin": "API_DEFINITION", - "description": " Get Profiler Session.", - "canonical": true, - "file": "machine_learning_runs.get_profiler_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetProfilerSession", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRuns.GetProfilerSession", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.hypercomputecluster.v1alpha.ProfilerSession", - "client": { - "shortName": "MachineLearningRunsClient", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRunsClient" - }, - "method": { - "shortName": "GetProfilerSession", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRuns.GetProfilerSession", - "service": { - "shortName": "MachineLearningRuns", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRuns" - } - } - } - }, - { - "regionTag": "hypercomputecluster_v1alpha_generated_MachineLearningRuns_ListProfilerSessions_async", - "title": "HypercomputeCluster listProfilerSessions Sample", - "origin": "API_DEFINITION", - "description": " Lists Profiler Sessions for a Machine Learning Run.", - "canonical": true, - "file": "machine_learning_runs.list_profiler_sessions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListProfilerSessions", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRuns.ListProfilerSessions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.hypercomputecluster.v1alpha.ListProfilerSessionsResponse", - "client": { - "shortName": "MachineLearningRunsClient", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRunsClient" - }, - "method": { - "shortName": "ListProfilerSessions", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRuns.ListProfilerSessions", - "service": { - "shortName": "MachineLearningRuns", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRuns" - } - } - } - }, - { - "regionTag": "hypercomputecluster_v1alpha_generated_MachineLearningRuns_DeleteProfilerSession_async", - "title": "HypercomputeCluster deleteProfilerSession Sample", - "origin": "API_DEFINITION", - "description": " Delete a Profiler Session.", - "canonical": true, - "file": "machine_learning_runs.delete_profiler_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteProfilerSession", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRuns.DeleteProfilerSession", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "MachineLearningRunsClient", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRunsClient" - }, - "method": { - "shortName": "DeleteProfilerSession", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRuns.DeleteProfilerSession", - "service": { - "shortName": "MachineLearningRuns", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRuns" - } - } - } - }, - { - "regionTag": "hypercomputecluster_v1alpha_generated_MachineLearningRuns_GetProfileSession_async", - "title": "HypercomputeCluster getProfileSession Sample", - "origin": "API_DEFINITION", - "description": " Deprecated: Use `GetProfilerSession` instead. Gets a Profile Session.", - "canonical": true, - "file": "machine_learning_runs.get_profile_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetProfileSession", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRuns.GetProfileSession", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.hypercomputecluster.v1alpha.ProfileSession", - "client": { - "shortName": "MachineLearningRunsClient", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRunsClient" - }, - "method": { - "shortName": "GetProfileSession", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRuns.GetProfileSession", - "service": { - "shortName": "MachineLearningRuns", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRuns" - } - } - } - }, - { - "regionTag": "hypercomputecluster_v1alpha_generated_MachineLearningRuns_ListProfileSessions_async", - "title": "HypercomputeCluster listProfileSessions Sample", - "origin": "API_DEFINITION", - "description": " Deprecated: Use `ListProfilerSessions` instead. Lists Profile Sessions for a Machine Learning Run.", - "canonical": true, - "file": "machine_learning_runs.list_profile_sessions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListProfileSessions", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRuns.ListProfileSessions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.hypercomputecluster.v1alpha.ListProfileSessionsResponse", - "client": { - "shortName": "MachineLearningRunsClient", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRunsClient" - }, - "method": { - "shortName": "ListProfileSessions", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRuns.ListProfileSessions", - "service": { - "shortName": "MachineLearningRuns", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRuns" - } - } - } - }, - { - "regionTag": "hypercomputecluster_v1alpha_generated_MachineLearningRuns_CreateMonitoredEvent_async", - "title": "HypercomputeCluster createMonitoredEvent Sample", - "origin": "API_DEFINITION", - "description": " Creates a Monitored Event.", - "canonical": true, - "file": "machine_learning_runs.create_monitored_event.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateMonitoredEvent", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRuns.CreateMonitoredEvent", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "monitored_event", - "type": ".google.cloud.hypercomputecluster.v1alpha.MonitoredEvent" - }, - { - "name": "monitored_event_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MachineLearningRunsClient", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRunsClient" - }, - "method": { - "shortName": "CreateMonitoredEvent", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRuns.CreateMonitoredEvent", - "service": { - "shortName": "MachineLearningRuns", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRuns" - } - } - } - }, - { - "regionTag": "hypercomputecluster_v1alpha_generated_MachineLearningRuns_GetMonitoredEvent_async", - "title": "HypercomputeCluster getMonitoredEvent Sample", - "origin": "API_DEFINITION", - "description": " Gets a specific Monitored Event.", - "canonical": true, - "file": "machine_learning_runs.get_monitored_event.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMonitoredEvent", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRuns.GetMonitoredEvent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.hypercomputecluster.v1alpha.MonitoredEvent", - "client": { - "shortName": "MachineLearningRunsClient", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRunsClient" - }, - "method": { - "shortName": "GetMonitoredEvent", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRuns.GetMonitoredEvent", - "service": { - "shortName": "MachineLearningRuns", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRuns" - } - } - } - }, - { - "regionTag": "hypercomputecluster_v1alpha_generated_MachineLearningRuns_ListMonitoredEvents_async", - "title": "HypercomputeCluster listMonitoredEvents Sample", - "origin": "API_DEFINITION", - "description": " Lists Monitored Events for a run.", - "canonical": true, - "file": "machine_learning_runs.list_monitored_events.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMonitoredEvents", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRuns.ListMonitoredEvents", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.hypercomputecluster.v1alpha.ListMonitoredEventsResponse", - "client": { - "shortName": "MachineLearningRunsClient", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRunsClient" - }, - "method": { - "shortName": "ListMonitoredEvents", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRuns.ListMonitoredEvents", - "service": { - "shortName": "MachineLearningRuns", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRuns" - } - } - } - }, - { - "regionTag": "hypercomputecluster_v1alpha_generated_MachineLearningRuns_UpdateMonitoredEvent_async", - "title": "HypercomputeCluster updateMonitoredEvent Sample", - "origin": "API_DEFINITION", - "description": " Updates a Monitored Event.", - "canonical": true, - "file": "machine_learning_runs.update_monitored_event.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateMonitoredEvent", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRuns.UpdateMonitoredEvent", - "async": true, - "parameters": [ - { - "name": "monitored_event", - "type": ".google.cloud.hypercomputecluster.v1alpha.MonitoredEvent" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MachineLearningRunsClient", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRunsClient" - }, - "method": { - "shortName": "UpdateMonitoredEvent", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRuns.UpdateMonitoredEvent", - "service": { - "shortName": "MachineLearningRuns", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRuns" - } - } - } - }, - { - "regionTag": "hypercomputecluster_v1alpha_generated_MachineLearningRuns_DeleteMonitoredEvent_async", - "title": "HypercomputeCluster deleteMonitoredEvent Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Monitored Event.", - "canonical": true, - "file": "machine_learning_runs.delete_monitored_event.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteMonitoredEvent", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRuns.DeleteMonitoredEvent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MachineLearningRunsClient", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRunsClient" - }, - "method": { - "shortName": "DeleteMonitoredEvent", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRuns.DeleteMonitoredEvent", - "service": { - "shortName": "MachineLearningRuns", - "fullName": "google.cloud.hypercomputecluster.v1alpha.MachineLearningRuns" - } - } - } - } - ] -} diff --git a/packages/google-cloud-hypercomputecluster/samples/generated/v1beta/snippet_metadata_google.cloud.hypercomputecluster.v1beta.json b/packages/google-cloud-hypercomputecluster/samples/generated/v1beta/snippet_metadata_google.cloud.hypercomputecluster.v1beta.json deleted file mode 100644 index 58512a0172ed..000000000000 --- a/packages/google-cloud-hypercomputecluster/samples/generated/v1beta/snippet_metadata_google.cloud.hypercomputecluster.v1beta.json +++ /dev/null @@ -1,255 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-hypercomputecluster", - "version": "0.2.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.hypercomputecluster.v1beta", - "version": "v1beta" - } - ] - }, - "snippets": [ - { - "regionTag": "hypercomputecluster_v1beta_generated_HypercomputeCluster_ListClusters_async", - "title": "HypercomputeCluster listClusters Sample", - "origin": "API_DEFINITION", - "description": " Lists Clusters in a given project and location.", - "canonical": true, - "file": "hypercompute_cluster.list_clusters.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListClusters", - "fullName": "google.cloud.hypercomputecluster.v1beta.HypercomputeCluster.ListClusters", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.hypercomputecluster.v1beta.ListClustersResponse", - "client": { - "shortName": "HypercomputeClusterClient", - "fullName": "google.cloud.hypercomputecluster.v1beta.HypercomputeClusterClient" - }, - "method": { - "shortName": "ListClusters", - "fullName": "google.cloud.hypercomputecluster.v1beta.HypercomputeCluster.ListClusters", - "service": { - "shortName": "HypercomputeCluster", - "fullName": "google.cloud.hypercomputecluster.v1beta.HypercomputeCluster" - } - } - } - }, - { - "regionTag": "hypercomputecluster_v1beta_generated_HypercomputeCluster_GetCluster_async", - "title": "HypercomputeCluster getCluster Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Cluster.", - "canonical": true, - "file": "hypercompute_cluster.get_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCluster", - "fullName": "google.cloud.hypercomputecluster.v1beta.HypercomputeCluster.GetCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.hypercomputecluster.v1beta.Cluster", - "client": { - "shortName": "HypercomputeClusterClient", - "fullName": "google.cloud.hypercomputecluster.v1beta.HypercomputeClusterClient" - }, - "method": { - "shortName": "GetCluster", - "fullName": "google.cloud.hypercomputecluster.v1beta.HypercomputeCluster.GetCluster", - "service": { - "shortName": "HypercomputeCluster", - "fullName": "google.cloud.hypercomputecluster.v1beta.HypercomputeCluster" - } - } - } - }, - { - "regionTag": "hypercomputecluster_v1beta_generated_HypercomputeCluster_CreateCluster_async", - "title": "HypercomputeCluster createCluster Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Cluster in a given project and location.", - "canonical": true, - "file": "hypercompute_cluster.create_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCluster", - "fullName": "google.cloud.hypercomputecluster.v1beta.HypercomputeCluster.CreateCluster", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "cluster", - "type": ".google.cloud.hypercomputecluster.v1beta.Cluster" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "HypercomputeClusterClient", - "fullName": "google.cloud.hypercomputecluster.v1beta.HypercomputeClusterClient" - }, - "method": { - "shortName": "CreateCluster", - "fullName": "google.cloud.hypercomputecluster.v1beta.HypercomputeCluster.CreateCluster", - "service": { - "shortName": "HypercomputeCluster", - "fullName": "google.cloud.hypercomputecluster.v1beta.HypercomputeCluster" - } - } - } - }, - { - "regionTag": "hypercomputecluster_v1beta_generated_HypercomputeCluster_UpdateCluster_async", - "title": "HypercomputeCluster updateCluster Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Cluster.", - "canonical": true, - "file": "hypercompute_cluster.update_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCluster", - "fullName": "google.cloud.hypercomputecluster.v1beta.HypercomputeCluster.UpdateCluster", - "async": true, - "parameters": [ - { - "name": "cluster", - "type": ".google.cloud.hypercomputecluster.v1beta.Cluster" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "HypercomputeClusterClient", - "fullName": "google.cloud.hypercomputecluster.v1beta.HypercomputeClusterClient" - }, - "method": { - "shortName": "UpdateCluster", - "fullName": "google.cloud.hypercomputecluster.v1beta.HypercomputeCluster.UpdateCluster", - "service": { - "shortName": "HypercomputeCluster", - "fullName": "google.cloud.hypercomputecluster.v1beta.HypercomputeCluster" - } - } - } - }, - { - "regionTag": "hypercomputecluster_v1beta_generated_HypercomputeCluster_DeleteCluster_async", - "title": "HypercomputeCluster deleteCluster Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Cluster.", - "canonical": true, - "file": "hypercompute_cluster.delete_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCluster", - "fullName": "google.cloud.hypercomputecluster.v1beta.HypercomputeCluster.DeleteCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "HypercomputeClusterClient", - "fullName": "google.cloud.hypercomputecluster.v1beta.HypercomputeClusterClient" - }, - "method": { - "shortName": "DeleteCluster", - "fullName": "google.cloud.hypercomputecluster.v1beta.HypercomputeCluster.DeleteCluster", - "service": { - "shortName": "HypercomputeCluster", - "fullName": "google.cloud.hypercomputecluster.v1beta.HypercomputeCluster" - } - } - } - } - ] -} diff --git a/packages/google-cloud-iap/samples/generated/v1/snippet_metadata_google.cloud.iap.v1.json b/packages/google-cloud-iap/samples/generated/v1/snippet_metadata_google.cloud.iap.v1.json deleted file mode 100644 index 76d40c8e7b28..000000000000 --- a/packages/google-cloud-iap/samples/generated/v1/snippet_metadata_google.cloud.iap.v1.json +++ /dev/null @@ -1,835 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-iap", - "version": "4.4.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.iap.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "iap_v1_generated_IdentityAwareProxyAdminService_SetIamPolicy_async", - "title": "IdentityAwareProxyAdminService setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy for an Identity-Aware Proxy protected resource. Replaces any existing policy. More information about managing access via IAP can be found at: https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api", - "canonical": true, - "file": "identity_aware_proxy_admin_service.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminService.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.iam.v1.Policy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "IdentityAwareProxyAdminServiceClient", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminServiceClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminService.SetIamPolicy", - "service": { - "shortName": "IdentityAwareProxyAdminService", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminService" - } - } - } - }, - { - "regionTag": "iap_v1_generated_IdentityAwareProxyAdminService_GetIamPolicy_async", - "title": "IdentityAwareProxyAdminService getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for an Identity-Aware Proxy protected resource. More information about managing access via IAP can be found at: https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api", - "canonical": true, - "file": "identity_aware_proxy_admin_service.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminService.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": ".google.iam.v1.GetPolicyOptions" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "IdentityAwareProxyAdminServiceClient", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminServiceClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminService.GetIamPolicy", - "service": { - "shortName": "IdentityAwareProxyAdminService", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminService" - } - } - } - }, - { - "regionTag": "iap_v1_generated_IdentityAwareProxyAdminService_TestIamPermissions_async", - "title": "IdentityAwareProxyAdminService testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the Identity-Aware Proxy protected resource. More information about managing access via IAP can be found at: https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api", - "canonical": true, - "file": "identity_aware_proxy_admin_service.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminService.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "permissions", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.iam.v1.TestIamPermissionsResponse", - "client": { - "shortName": "IdentityAwareProxyAdminServiceClient", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminServiceClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminService.TestIamPermissions", - "service": { - "shortName": "IdentityAwareProxyAdminService", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminService" - } - } - } - }, - { - "regionTag": "iap_v1_generated_IdentityAwareProxyAdminService_GetIapSettings_async", - "title": "IdentityAwareProxyAdminService getIapSettings Sample", - "origin": "API_DEFINITION", - "description": " Gets the IAP settings on a particular IAP protected resource.", - "canonical": true, - "file": "identity_aware_proxy_admin_service.get_iap_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIapSettings", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminService.GetIapSettings", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.iap.v1.IapSettings", - "client": { - "shortName": "IdentityAwareProxyAdminServiceClient", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminServiceClient" - }, - "method": { - "shortName": "GetIapSettings", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminService.GetIapSettings", - "service": { - "shortName": "IdentityAwareProxyAdminService", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminService" - } - } - } - }, - { - "regionTag": "iap_v1_generated_IdentityAwareProxyAdminService_UpdateIapSettings_async", - "title": "IdentityAwareProxyAdminService updateIapSettings Sample", - "origin": "API_DEFINITION", - "description": " Updates the IAP settings on a particular IAP protected resource. It replaces all fields unless the `update_mask` is set.", - "canonical": true, - "file": "identity_aware_proxy_admin_service.update_iap_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateIapSettings", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminService.UpdateIapSettings", - "async": true, - "parameters": [ - { - "name": "iap_settings", - "type": ".google.cloud.iap.v1.IapSettings" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.iap.v1.IapSettings", - "client": { - "shortName": "IdentityAwareProxyAdminServiceClient", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminServiceClient" - }, - "method": { - "shortName": "UpdateIapSettings", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminService.UpdateIapSettings", - "service": { - "shortName": "IdentityAwareProxyAdminService", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminService" - } - } - } - }, - { - "regionTag": "iap_v1_generated_IdentityAwareProxyAdminService_ValidateIapAttributeExpression_async", - "title": "IdentityAwareProxyAdminService validateIapAttributeExpression Sample", - "origin": "API_DEFINITION", - "description": " Validates that a given CEL expression conforms to IAP restrictions.", - "canonical": true, - "file": "identity_aware_proxy_admin_service.validate_iap_attribute_expression.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ValidateIapAttributeExpression", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminService.ValidateIapAttributeExpression", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "expression", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.iap.v1.ValidateIapAttributeExpressionResponse", - "client": { - "shortName": "IdentityAwareProxyAdminServiceClient", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminServiceClient" - }, - "method": { - "shortName": "ValidateIapAttributeExpression", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminService.ValidateIapAttributeExpression", - "service": { - "shortName": "IdentityAwareProxyAdminService", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminService" - } - } - } - }, - { - "regionTag": "iap_v1_generated_IdentityAwareProxyAdminService_ListTunnelDestGroups_async", - "title": "IdentityAwareProxyAdminService listTunnelDestGroups Sample", - "origin": "API_DEFINITION", - "description": " Lists the existing TunnelDestGroups. To group across all locations, use a `-` as the location ID. For example: `/v1/projects/123/iap_tunnel/locations/-/destGroups`", - "canonical": true, - "file": "identity_aware_proxy_admin_service.list_tunnel_dest_groups.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTunnelDestGroups", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminService.ListTunnelDestGroups", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.iap.v1.ListTunnelDestGroupsResponse", - "client": { - "shortName": "IdentityAwareProxyAdminServiceClient", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminServiceClient" - }, - "method": { - "shortName": "ListTunnelDestGroups", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminService.ListTunnelDestGroups", - "service": { - "shortName": "IdentityAwareProxyAdminService", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminService" - } - } - } - }, - { - "regionTag": "iap_v1_generated_IdentityAwareProxyAdminService_CreateTunnelDestGroup_async", - "title": "IdentityAwareProxyAdminService createTunnelDestGroup Sample", - "origin": "API_DEFINITION", - "description": " Creates a new TunnelDestGroup.", - "canonical": true, - "file": "identity_aware_proxy_admin_service.create_tunnel_dest_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTunnelDestGroup", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminService.CreateTunnelDestGroup", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "tunnel_dest_group", - "type": ".google.cloud.iap.v1.TunnelDestGroup" - }, - { - "name": "tunnel_dest_group_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.iap.v1.TunnelDestGroup", - "client": { - "shortName": "IdentityAwareProxyAdminServiceClient", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminServiceClient" - }, - "method": { - "shortName": "CreateTunnelDestGroup", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminService.CreateTunnelDestGroup", - "service": { - "shortName": "IdentityAwareProxyAdminService", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminService" - } - } - } - }, - { - "regionTag": "iap_v1_generated_IdentityAwareProxyAdminService_GetTunnelDestGroup_async", - "title": "IdentityAwareProxyAdminService getTunnelDestGroup Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an existing TunnelDestGroup.", - "canonical": true, - "file": "identity_aware_proxy_admin_service.get_tunnel_dest_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTunnelDestGroup", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminService.GetTunnelDestGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.iap.v1.TunnelDestGroup", - "client": { - "shortName": "IdentityAwareProxyAdminServiceClient", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminServiceClient" - }, - "method": { - "shortName": "GetTunnelDestGroup", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminService.GetTunnelDestGroup", - "service": { - "shortName": "IdentityAwareProxyAdminService", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminService" - } - } - } - }, - { - "regionTag": "iap_v1_generated_IdentityAwareProxyAdminService_DeleteTunnelDestGroup_async", - "title": "IdentityAwareProxyAdminService deleteTunnelDestGroup Sample", - "origin": "API_DEFINITION", - "description": " Deletes a TunnelDestGroup.", - "canonical": true, - "file": "identity_aware_proxy_admin_service.delete_tunnel_dest_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTunnelDestGroup", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminService.DeleteTunnelDestGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "IdentityAwareProxyAdminServiceClient", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminServiceClient" - }, - "method": { - "shortName": "DeleteTunnelDestGroup", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminService.DeleteTunnelDestGroup", - "service": { - "shortName": "IdentityAwareProxyAdminService", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminService" - } - } - } - }, - { - "regionTag": "iap_v1_generated_IdentityAwareProxyAdminService_UpdateTunnelDestGroup_async", - "title": "IdentityAwareProxyAdminService updateTunnelDestGroup Sample", - "origin": "API_DEFINITION", - "description": " Updates a TunnelDestGroup.", - "canonical": true, - "file": "identity_aware_proxy_admin_service.update_tunnel_dest_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTunnelDestGroup", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminService.UpdateTunnelDestGroup", - "async": true, - "parameters": [ - { - "name": "tunnel_dest_group", - "type": ".google.cloud.iap.v1.TunnelDestGroup" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.iap.v1.TunnelDestGroup", - "client": { - "shortName": "IdentityAwareProxyAdminServiceClient", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminServiceClient" - }, - "method": { - "shortName": "UpdateTunnelDestGroup", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminService.UpdateTunnelDestGroup", - "service": { - "shortName": "IdentityAwareProxyAdminService", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyAdminService" - } - } - } - }, - { - "regionTag": "iap_v1_generated_IdentityAwareProxyOAuthService_ListBrands_async", - "title": "IdentityAwareProxyAdminService listBrands Sample", - "origin": "API_DEFINITION", - "description": " Lists the existing brands for the project.", - "canonical": true, - "file": "identity_aware_proxy_o_auth_service.list_brands.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBrands", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthService.ListBrands", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.iap.v1.ListBrandsResponse", - "client": { - "shortName": "IdentityAwareProxyOAuthServiceClient", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthServiceClient" - }, - "method": { - "shortName": "ListBrands", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthService.ListBrands", - "service": { - "shortName": "IdentityAwareProxyOAuthService", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthService" - } - } - } - }, - { - "regionTag": "iap_v1_generated_IdentityAwareProxyOAuthService_CreateBrand_async", - "title": "IdentityAwareProxyAdminService createBrand Sample", - "origin": "API_DEFINITION", - "description": " Constructs a new OAuth brand for the project if one does not exist. The created brand is \"internal only\", meaning that OAuth clients created under it only accept requests from users who belong to the same Google Workspace organization as the project. The brand is created in an un-reviewed status. NOTE: The \"internal only\" status can be manually changed in the Google Cloud Console. Requires that a brand does not already exist for the project, and that the specified support email is owned by the caller.", - "canonical": true, - "file": "identity_aware_proxy_o_auth_service.create_brand.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateBrand", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthService.CreateBrand", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "brand", - "type": ".google.cloud.iap.v1.Brand" - } - ], - "resultType": ".google.cloud.iap.v1.Brand", - "client": { - "shortName": "IdentityAwareProxyOAuthServiceClient", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthServiceClient" - }, - "method": { - "shortName": "CreateBrand", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthService.CreateBrand", - "service": { - "shortName": "IdentityAwareProxyOAuthService", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthService" - } - } - } - }, - { - "regionTag": "iap_v1_generated_IdentityAwareProxyOAuthService_GetBrand_async", - "title": "IdentityAwareProxyAdminService getBrand Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the OAuth brand of the project.", - "canonical": true, - "file": "identity_aware_proxy_o_auth_service.get_brand.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBrand", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthService.GetBrand", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.iap.v1.Brand", - "client": { - "shortName": "IdentityAwareProxyOAuthServiceClient", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthServiceClient" - }, - "method": { - "shortName": "GetBrand", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthService.GetBrand", - "service": { - "shortName": "IdentityAwareProxyOAuthService", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthService" - } - } - } - }, - { - "regionTag": "iap_v1_generated_IdentityAwareProxyOAuthService_CreateIdentityAwareProxyClient_async", - "title": "IdentityAwareProxyAdminService createIdentityAwareProxyClient Sample", - "origin": "API_DEFINITION", - "description": " Creates an Identity Aware Proxy (IAP) OAuth client. The client is owned by IAP. Requires that the brand for the project exists and that it is set for internal-only use.", - "canonical": true, - "file": "identity_aware_proxy_o_auth_service.create_identity_aware_proxy_client.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateIdentityAwareProxyClient", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthService.CreateIdentityAwareProxyClient", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "identity_aware_proxy_client", - "type": ".google.cloud.iap.v1.IdentityAwareProxyClient" - } - ], - "resultType": ".google.cloud.iap.v1.IdentityAwareProxyClient", - "client": { - "shortName": "IdentityAwareProxyOAuthServiceClient", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthServiceClient" - }, - "method": { - "shortName": "CreateIdentityAwareProxyClient", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthService.CreateIdentityAwareProxyClient", - "service": { - "shortName": "IdentityAwareProxyOAuthService", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthService" - } - } - } - }, - { - "regionTag": "iap_v1_generated_IdentityAwareProxyOAuthService_ListIdentityAwareProxyClients_async", - "title": "IdentityAwareProxyAdminService listIdentityAwareProxyClients Sample", - "origin": "API_DEFINITION", - "description": " Lists the existing clients for the brand.", - "canonical": true, - "file": "identity_aware_proxy_o_auth_service.list_identity_aware_proxy_clients.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListIdentityAwareProxyClients", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthService.ListIdentityAwareProxyClients", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.iap.v1.ListIdentityAwareProxyClientsResponse", - "client": { - "shortName": "IdentityAwareProxyOAuthServiceClient", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthServiceClient" - }, - "method": { - "shortName": "ListIdentityAwareProxyClients", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthService.ListIdentityAwareProxyClients", - "service": { - "shortName": "IdentityAwareProxyOAuthService", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthService" - } - } - } - }, - { - "regionTag": "iap_v1_generated_IdentityAwareProxyOAuthService_GetIdentityAwareProxyClient_async", - "title": "IdentityAwareProxyAdminService getIdentityAwareProxyClient Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an Identity Aware Proxy (IAP) OAuth client. Requires that the client is owned by IAP.", - "canonical": true, - "file": "identity_aware_proxy_o_auth_service.get_identity_aware_proxy_client.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIdentityAwareProxyClient", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthService.GetIdentityAwareProxyClient", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.iap.v1.IdentityAwareProxyClient", - "client": { - "shortName": "IdentityAwareProxyOAuthServiceClient", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthServiceClient" - }, - "method": { - "shortName": "GetIdentityAwareProxyClient", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthService.GetIdentityAwareProxyClient", - "service": { - "shortName": "IdentityAwareProxyOAuthService", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthService" - } - } - } - }, - { - "regionTag": "iap_v1_generated_IdentityAwareProxyOAuthService_ResetIdentityAwareProxyClientSecret_async", - "title": "IdentityAwareProxyAdminService resetIdentityAwareProxyClientSecret Sample", - "origin": "API_DEFINITION", - "description": " Resets an Identity Aware Proxy (IAP) OAuth client secret. Useful if the secret was compromised. Requires that the client is owned by IAP.", - "canonical": true, - "file": "identity_aware_proxy_o_auth_service.reset_identity_aware_proxy_client_secret.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResetIdentityAwareProxyClientSecret", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthService.ResetIdentityAwareProxyClientSecret", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.iap.v1.IdentityAwareProxyClient", - "client": { - "shortName": "IdentityAwareProxyOAuthServiceClient", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthServiceClient" - }, - "method": { - "shortName": "ResetIdentityAwareProxyClientSecret", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthService.ResetIdentityAwareProxyClientSecret", - "service": { - "shortName": "IdentityAwareProxyOAuthService", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthService" - } - } - } - }, - { - "regionTag": "iap_v1_generated_IdentityAwareProxyOAuthService_DeleteIdentityAwareProxyClient_async", - "title": "IdentityAwareProxyAdminService deleteIdentityAwareProxyClient Sample", - "origin": "API_DEFINITION", - "description": " Deletes an Identity Aware Proxy (IAP) OAuth client. Useful for removing obsolete clients, managing the number of clients in a given project, and cleaning up after tests. Requires that the client is owned by IAP.", - "canonical": true, - "file": "identity_aware_proxy_o_auth_service.delete_identity_aware_proxy_client.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteIdentityAwareProxyClient", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthService.DeleteIdentityAwareProxyClient", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "IdentityAwareProxyOAuthServiceClient", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthServiceClient" - }, - "method": { - "shortName": "DeleteIdentityAwareProxyClient", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthService.DeleteIdentityAwareProxyClient", - "service": { - "shortName": "IdentityAwareProxyOAuthService", - "fullName": "google.cloud.iap.v1.IdentityAwareProxyOAuthService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-iap/samples/generated/v1beta1/snippet_metadata_google.cloud.iap.v1beta1.json b/packages/google-cloud-iap/samples/generated/v1beta1/snippet_metadata_google.cloud.iap.v1beta1.json deleted file mode 100644 index 58baeb8c3081..000000000000 --- a/packages/google-cloud-iap/samples/generated/v1beta1/snippet_metadata_google.cloud.iap.v1beta1.json +++ /dev/null @@ -1,151 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-iap", - "version": "4.4.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.iap.v1beta1", - "version": "v1beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "iap_v1beta1_generated_IdentityAwareProxyAdminV1Beta1_SetIamPolicy_async", - "title": "IdentityAwareProxyAdminV1Beta1 setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy for an Identity-Aware Proxy protected resource. Replaces any existing policy. More information about managing access via IAP can be found at: https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api", - "canonical": true, - "file": "identity_aware_proxy_admin_v1_beta1.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.iap.v1beta1.IdentityAwareProxyAdminV1Beta1.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.iam.v1.Policy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "IdentityAwareProxyAdminV1Beta1Client", - "fullName": "google.cloud.iap.v1beta1.IdentityAwareProxyAdminV1Beta1Client" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.iap.v1beta1.IdentityAwareProxyAdminV1Beta1.SetIamPolicy", - "service": { - "shortName": "IdentityAwareProxyAdminV1Beta1", - "fullName": "google.cloud.iap.v1beta1.IdentityAwareProxyAdminV1Beta1" - } - } - } - }, - { - "regionTag": "iap_v1beta1_generated_IdentityAwareProxyAdminV1Beta1_GetIamPolicy_async", - "title": "IdentityAwareProxyAdminV1Beta1 getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for an Identity-Aware Proxy protected resource. More information about managing access via IAP can be found at: https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api", - "canonical": true, - "file": "identity_aware_proxy_admin_v1_beta1.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.iap.v1beta1.IdentityAwareProxyAdminV1Beta1.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": ".google.iam.v1.GetPolicyOptions" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "IdentityAwareProxyAdminV1Beta1Client", - "fullName": "google.cloud.iap.v1beta1.IdentityAwareProxyAdminV1Beta1Client" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.iap.v1beta1.IdentityAwareProxyAdminV1Beta1.GetIamPolicy", - "service": { - "shortName": "IdentityAwareProxyAdminV1Beta1", - "fullName": "google.cloud.iap.v1beta1.IdentityAwareProxyAdminV1Beta1" - } - } - } - }, - { - "regionTag": "iap_v1beta1_generated_IdentityAwareProxyAdminV1Beta1_TestIamPermissions_async", - "title": "IdentityAwareProxyAdminV1Beta1 testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the Identity-Aware Proxy protected resource. If the resource does not exist or the caller does not have Identity-Aware Proxy permissions a [google.rpc.Code.PERMISSION_DENIED] will be returned. More information about managing access via IAP can be found at: https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api", - "canonical": true, - "file": "identity_aware_proxy_admin_v1_beta1.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.iap.v1beta1.IdentityAwareProxyAdminV1Beta1.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "permissions", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.iam.v1.TestIamPermissionsResponse", - "client": { - "shortName": "IdentityAwareProxyAdminV1Beta1Client", - "fullName": "google.cloud.iap.v1beta1.IdentityAwareProxyAdminV1Beta1Client" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.iap.v1beta1.IdentityAwareProxyAdminV1Beta1.TestIamPermissions", - "service": { - "shortName": "IdentityAwareProxyAdminV1Beta1", - "fullName": "google.cloud.iap.v1beta1.IdentityAwareProxyAdminV1Beta1" - } - } - } - } - ] -} diff --git a/packages/google-cloud-ids/samples/generated/v1/snippet_metadata_google.cloud.ids.v1.json b/packages/google-cloud-ids/samples/generated/v1/snippet_metadata_google.cloud.ids.v1.json deleted file mode 100644 index 69bbdde88d7e..000000000000 --- a/packages/google-cloud-ids/samples/generated/v1/snippet_metadata_google.cloud.ids.v1.json +++ /dev/null @@ -1,207 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-ids", - "version": "4.2.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.ids.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "ids_v1_generated_IDS_ListEndpoints_async", - "title": "IDS listEndpoints Sample", - "origin": "API_DEFINITION", - "description": " Lists Endpoints in a given project and location.", - "canonical": true, - "file": "i_d_s.list_endpoints.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEndpoints", - "fullName": "google.cloud.ids.v1.IDS.ListEndpoints", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.ids.v1.ListEndpointsResponse", - "client": { - "shortName": "IDSClient", - "fullName": "google.cloud.ids.v1.IDSClient" - }, - "method": { - "shortName": "ListEndpoints", - "fullName": "google.cloud.ids.v1.IDS.ListEndpoints", - "service": { - "shortName": "IDS", - "fullName": "google.cloud.ids.v1.IDS" - } - } - } - }, - { - "regionTag": "ids_v1_generated_IDS_GetEndpoint_async", - "title": "IDS getEndpoint Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Endpoint.", - "canonical": true, - "file": "i_d_s.get_endpoint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEndpoint", - "fullName": "google.cloud.ids.v1.IDS.GetEndpoint", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.ids.v1.Endpoint", - "client": { - "shortName": "IDSClient", - "fullName": "google.cloud.ids.v1.IDSClient" - }, - "method": { - "shortName": "GetEndpoint", - "fullName": "google.cloud.ids.v1.IDS.GetEndpoint", - "service": { - "shortName": "IDS", - "fullName": "google.cloud.ids.v1.IDS" - } - } - } - }, - { - "regionTag": "ids_v1_generated_IDS_CreateEndpoint_async", - "title": "IDS createEndpoint Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Endpoint in a given project and location.", - "canonical": true, - "file": "i_d_s.create_endpoint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateEndpoint", - "fullName": "google.cloud.ids.v1.IDS.CreateEndpoint", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "endpoint_id", - "type": "TYPE_STRING" - }, - { - "name": "endpoint", - "type": ".google.cloud.ids.v1.Endpoint" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "IDSClient", - "fullName": "google.cloud.ids.v1.IDSClient" - }, - "method": { - "shortName": "CreateEndpoint", - "fullName": "google.cloud.ids.v1.IDS.CreateEndpoint", - "service": { - "shortName": "IDS", - "fullName": "google.cloud.ids.v1.IDS" - } - } - } - }, - { - "regionTag": "ids_v1_generated_IDS_DeleteEndpoint_async", - "title": "IDS deleteEndpoint Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Endpoint.", - "canonical": true, - "file": "i_d_s.delete_endpoint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteEndpoint", - "fullName": "google.cloud.ids.v1.IDS.DeleteEndpoint", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "IDSClient", - "fullName": "google.cloud.ids.v1.IDSClient" - }, - "method": { - "shortName": "DeleteEndpoint", - "fullName": "google.cloud.ids.v1.IDS.DeleteEndpoint", - "service": { - "shortName": "IDS", - "fullName": "google.cloud.ids.v1.IDS" - } - } - } - } - ] -} diff --git a/packages/google-cloud-iot/samples/generated/v1/snippet_metadata_google.cloud.iot.v1.json b/packages/google-cloud-iot/samples/generated/v1/snippet_metadata_google.cloud.iot.v1.json deleted file mode 100644 index cf1fdd832d48..000000000000 --- a/packages/google-cloud-iot/samples/generated/v1/snippet_metadata_google.cloud.iot.v1.json +++ /dev/null @@ -1,883 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-iot", - "version": "5.2.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.iot.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "cloudiot_v1_generated_DeviceManager_CreateDeviceRegistry_async", - "title": "iot createDeviceRegistry Sample", - "origin": "API_DEFINITION", - "description": " Creates a device registry that contains devices.", - "canonical": true, - "file": "device_manager.create_device_registry.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDeviceRegistry", - "fullName": "google.cloud.iot.v1.DeviceManager.CreateDeviceRegistry", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "device_registry", - "type": ".google.cloud.iot.v1.DeviceRegistry" - } - ], - "resultType": ".google.cloud.iot.v1.DeviceRegistry", - "client": { - "shortName": "DeviceManagerClient", - "fullName": "google.cloud.iot.v1.DeviceManagerClient" - }, - "method": { - "shortName": "CreateDeviceRegistry", - "fullName": "google.cloud.iot.v1.DeviceManager.CreateDeviceRegistry", - "service": { - "shortName": "DeviceManager", - "fullName": "google.cloud.iot.v1.DeviceManager" - } - } - } - }, - { - "regionTag": "cloudiot_v1_generated_DeviceManager_GetDeviceRegistry_async", - "title": "iot getDeviceRegistry Sample", - "origin": "API_DEFINITION", - "description": " Gets a device registry configuration.", - "canonical": true, - "file": "device_manager.get_device_registry.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDeviceRegistry", - "fullName": "google.cloud.iot.v1.DeviceManager.GetDeviceRegistry", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.iot.v1.DeviceRegistry", - "client": { - "shortName": "DeviceManagerClient", - "fullName": "google.cloud.iot.v1.DeviceManagerClient" - }, - "method": { - "shortName": "GetDeviceRegistry", - "fullName": "google.cloud.iot.v1.DeviceManager.GetDeviceRegistry", - "service": { - "shortName": "DeviceManager", - "fullName": "google.cloud.iot.v1.DeviceManager" - } - } - } - }, - { - "regionTag": "cloudiot_v1_generated_DeviceManager_UpdateDeviceRegistry_async", - "title": "iot updateDeviceRegistry Sample", - "origin": "API_DEFINITION", - "description": " Updates a device registry configuration.", - "canonical": true, - "file": "device_manager.update_device_registry.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDeviceRegistry", - "fullName": "google.cloud.iot.v1.DeviceManager.UpdateDeviceRegistry", - "async": true, - "parameters": [ - { - "name": "device_registry", - "type": ".google.cloud.iot.v1.DeviceRegistry" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.iot.v1.DeviceRegistry", - "client": { - "shortName": "DeviceManagerClient", - "fullName": "google.cloud.iot.v1.DeviceManagerClient" - }, - "method": { - "shortName": "UpdateDeviceRegistry", - "fullName": "google.cloud.iot.v1.DeviceManager.UpdateDeviceRegistry", - "service": { - "shortName": "DeviceManager", - "fullName": "google.cloud.iot.v1.DeviceManager" - } - } - } - }, - { - "regionTag": "cloudiot_v1_generated_DeviceManager_DeleteDeviceRegistry_async", - "title": "iot deleteDeviceRegistry Sample", - "origin": "API_DEFINITION", - "description": " Deletes a device registry configuration.", - "canonical": true, - "file": "device_manager.delete_device_registry.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDeviceRegistry", - "fullName": "google.cloud.iot.v1.DeviceManager.DeleteDeviceRegistry", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DeviceManagerClient", - "fullName": "google.cloud.iot.v1.DeviceManagerClient" - }, - "method": { - "shortName": "DeleteDeviceRegistry", - "fullName": "google.cloud.iot.v1.DeviceManager.DeleteDeviceRegistry", - "service": { - "shortName": "DeviceManager", - "fullName": "google.cloud.iot.v1.DeviceManager" - } - } - } - }, - { - "regionTag": "cloudiot_v1_generated_DeviceManager_ListDeviceRegistries_async", - "title": "iot listDeviceRegistries Sample", - "origin": "API_DEFINITION", - "description": " Lists device registries.", - "canonical": true, - "file": "device_manager.list_device_registries.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDeviceRegistries", - "fullName": "google.cloud.iot.v1.DeviceManager.ListDeviceRegistries", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.iot.v1.ListDeviceRegistriesResponse", - "client": { - "shortName": "DeviceManagerClient", - "fullName": "google.cloud.iot.v1.DeviceManagerClient" - }, - "method": { - "shortName": "ListDeviceRegistries", - "fullName": "google.cloud.iot.v1.DeviceManager.ListDeviceRegistries", - "service": { - "shortName": "DeviceManager", - "fullName": "google.cloud.iot.v1.DeviceManager" - } - } - } - }, - { - "regionTag": "cloudiot_v1_generated_DeviceManager_CreateDevice_async", - "title": "iot createDevice Sample", - "origin": "API_DEFINITION", - "description": " Creates a device in a device registry.", - "canonical": true, - "file": "device_manager.create_device.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDevice", - "fullName": "google.cloud.iot.v1.DeviceManager.CreateDevice", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "device", - "type": ".google.cloud.iot.v1.Device" - } - ], - "resultType": ".google.cloud.iot.v1.Device", - "client": { - "shortName": "DeviceManagerClient", - "fullName": "google.cloud.iot.v1.DeviceManagerClient" - }, - "method": { - "shortName": "CreateDevice", - "fullName": "google.cloud.iot.v1.DeviceManager.CreateDevice", - "service": { - "shortName": "DeviceManager", - "fullName": "google.cloud.iot.v1.DeviceManager" - } - } - } - }, - { - "regionTag": "cloudiot_v1_generated_DeviceManager_GetDevice_async", - "title": "iot getDevice Sample", - "origin": "API_DEFINITION", - "description": " Gets details about a device.", - "canonical": true, - "file": "device_manager.get_device.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDevice", - "fullName": "google.cloud.iot.v1.DeviceManager.GetDevice", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "field_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.iot.v1.Device", - "client": { - "shortName": "DeviceManagerClient", - "fullName": "google.cloud.iot.v1.DeviceManagerClient" - }, - "method": { - "shortName": "GetDevice", - "fullName": "google.cloud.iot.v1.DeviceManager.GetDevice", - "service": { - "shortName": "DeviceManager", - "fullName": "google.cloud.iot.v1.DeviceManager" - } - } - } - }, - { - "regionTag": "cloudiot_v1_generated_DeviceManager_UpdateDevice_async", - "title": "iot updateDevice Sample", - "origin": "API_DEFINITION", - "description": " Updates a device.", - "canonical": true, - "file": "device_manager.update_device.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDevice", - "fullName": "google.cloud.iot.v1.DeviceManager.UpdateDevice", - "async": true, - "parameters": [ - { - "name": "device", - "type": ".google.cloud.iot.v1.Device" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.iot.v1.Device", - "client": { - "shortName": "DeviceManagerClient", - "fullName": "google.cloud.iot.v1.DeviceManagerClient" - }, - "method": { - "shortName": "UpdateDevice", - "fullName": "google.cloud.iot.v1.DeviceManager.UpdateDevice", - "service": { - "shortName": "DeviceManager", - "fullName": "google.cloud.iot.v1.DeviceManager" - } - } - } - }, - { - "regionTag": "cloudiot_v1_generated_DeviceManager_DeleteDevice_async", - "title": "iot deleteDevice Sample", - "origin": "API_DEFINITION", - "description": " Deletes a device.", - "canonical": true, - "file": "device_manager.delete_device.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDevice", - "fullName": "google.cloud.iot.v1.DeviceManager.DeleteDevice", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DeviceManagerClient", - "fullName": "google.cloud.iot.v1.DeviceManagerClient" - }, - "method": { - "shortName": "DeleteDevice", - "fullName": "google.cloud.iot.v1.DeviceManager.DeleteDevice", - "service": { - "shortName": "DeviceManager", - "fullName": "google.cloud.iot.v1.DeviceManager" - } - } - } - }, - { - "regionTag": "cloudiot_v1_generated_DeviceManager_ListDevices_async", - "title": "iot listDevices Sample", - "origin": "API_DEFINITION", - "description": " List devices in a device registry.", - "canonical": true, - "file": "device_manager.list_devices.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 90, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDevices", - "fullName": "google.cloud.iot.v1.DeviceManager.ListDevices", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "device_num_ids", - "type": "TYPE_UINT64[]" - }, - { - "name": "device_ids", - "type": "TYPE_STRING[]" - }, - { - "name": "field_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "gateway_list_options", - "type": ".google.cloud.iot.v1.GatewayListOptions" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.iot.v1.ListDevicesResponse", - "client": { - "shortName": "DeviceManagerClient", - "fullName": "google.cloud.iot.v1.DeviceManagerClient" - }, - "method": { - "shortName": "ListDevices", - "fullName": "google.cloud.iot.v1.DeviceManager.ListDevices", - "service": { - "shortName": "DeviceManager", - "fullName": "google.cloud.iot.v1.DeviceManager" - } - } - } - }, - { - "regionTag": "cloudiot_v1_generated_DeviceManager_ModifyCloudToDeviceConfig_async", - "title": "iot modifyCloudToDeviceConfig Sample", - "origin": "API_DEFINITION", - "description": " Modifies the configuration for the device, which is eventually sent from the Cloud IoT Core servers. Returns the modified configuration version and its metadata.", - "canonical": true, - "file": "device_manager.modify_cloud_to_device_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ModifyCloudToDeviceConfig", - "fullName": "google.cloud.iot.v1.DeviceManager.ModifyCloudToDeviceConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "version_to_update", - "type": "TYPE_INT64" - }, - { - "name": "binary_data", - "type": "TYPE_BYTES" - } - ], - "resultType": ".google.cloud.iot.v1.DeviceConfig", - "client": { - "shortName": "DeviceManagerClient", - "fullName": "google.cloud.iot.v1.DeviceManagerClient" - }, - "method": { - "shortName": "ModifyCloudToDeviceConfig", - "fullName": "google.cloud.iot.v1.DeviceManager.ModifyCloudToDeviceConfig", - "service": { - "shortName": "DeviceManager", - "fullName": "google.cloud.iot.v1.DeviceManager" - } - } - } - }, - { - "regionTag": "cloudiot_v1_generated_DeviceManager_ListDeviceConfigVersions_async", - "title": "iot listDeviceConfigVersions Sample", - "origin": "API_DEFINITION", - "description": " Lists the last few versions of the device configuration in descending order (i.e.: newest first).", - "canonical": true, - "file": "device_manager.list_device_config_versions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDeviceConfigVersions", - "fullName": "google.cloud.iot.v1.DeviceManager.ListDeviceConfigVersions", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "num_versions", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.iot.v1.ListDeviceConfigVersionsResponse", - "client": { - "shortName": "DeviceManagerClient", - "fullName": "google.cloud.iot.v1.DeviceManagerClient" - }, - "method": { - "shortName": "ListDeviceConfigVersions", - "fullName": "google.cloud.iot.v1.DeviceManager.ListDeviceConfigVersions", - "service": { - "shortName": "DeviceManager", - "fullName": "google.cloud.iot.v1.DeviceManager" - } - } - } - }, - { - "regionTag": "cloudiot_v1_generated_DeviceManager_ListDeviceStates_async", - "title": "iot listDeviceStates Sample", - "origin": "API_DEFINITION", - "description": " Lists the last few versions of the device state in descending order (i.e.: newest first).", - "canonical": true, - "file": "device_manager.list_device_states.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDeviceStates", - "fullName": "google.cloud.iot.v1.DeviceManager.ListDeviceStates", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "num_states", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.iot.v1.ListDeviceStatesResponse", - "client": { - "shortName": "DeviceManagerClient", - "fullName": "google.cloud.iot.v1.DeviceManagerClient" - }, - "method": { - "shortName": "ListDeviceStates", - "fullName": "google.cloud.iot.v1.DeviceManager.ListDeviceStates", - "service": { - "shortName": "DeviceManager", - "fullName": "google.cloud.iot.v1.DeviceManager" - } - } - } - }, - { - "regionTag": "cloudiot_v1_generated_DeviceManager_SetIamPolicy_async", - "title": "iot setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified resource. Replaces any existing policy.", - "canonical": true, - "file": "device_manager.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.iot.v1.DeviceManager.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.iam.v1.Policy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "DeviceManagerClient", - "fullName": "google.cloud.iot.v1.DeviceManagerClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.iot.v1.DeviceManager.SetIamPolicy", - "service": { - "shortName": "DeviceManager", - "fullName": "google.cloud.iot.v1.DeviceManager" - } - } - } - }, - { - "regionTag": "cloudiot_v1_generated_DeviceManager_GetIamPolicy_async", - "title": "iot getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", - "canonical": true, - "file": "device_manager.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.iot.v1.DeviceManager.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": ".google.iam.v1.GetPolicyOptions" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "DeviceManagerClient", - "fullName": "google.cloud.iot.v1.DeviceManagerClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.iot.v1.DeviceManager.GetIamPolicy", - "service": { - "shortName": "DeviceManager", - "fullName": "google.cloud.iot.v1.DeviceManager" - } - } - } - }, - { - "regionTag": "cloudiot_v1_generated_DeviceManager_TestIamPermissions_async", - "title": "iot testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.", - "canonical": true, - "file": "device_manager.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.iot.v1.DeviceManager.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "permissions", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.iam.v1.TestIamPermissionsResponse", - "client": { - "shortName": "DeviceManagerClient", - "fullName": "google.cloud.iot.v1.DeviceManagerClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.iot.v1.DeviceManager.TestIamPermissions", - "service": { - "shortName": "DeviceManager", - "fullName": "google.cloud.iot.v1.DeviceManager" - } - } - } - }, - { - "regionTag": "cloudiot_v1_generated_DeviceManager_SendCommandToDevice_async", - "title": "iot sendCommandToDevice Sample", - "origin": "API_DEFINITION", - "description": " Sends a command to the specified device. In order for a device to be able to receive commands, it must: 1) be connected to Cloud IoT Core using the MQTT protocol, and 2) be subscribed to the group of MQTT topics specified by /devices/{device-id}/commands/#. This subscription will receive commands at the top-level topic /devices/{device-id}/commands as well as commands for subfolders, like /devices/{device-id}/commands/subfolder. Note that subscribing to specific subfolders is not supported. If the command could not be delivered to the device, this method will return an error; in particular, if the device is not subscribed, this method will return FAILED_PRECONDITION. Otherwise, this method will return OK. If the subscription is QoS 1, at least once delivery will be guaranteed; for QoS 0, no acknowledgment will be expected from the device.", - "canonical": true, - "file": "device_manager.send_command_to_device.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SendCommandToDevice", - "fullName": "google.cloud.iot.v1.DeviceManager.SendCommandToDevice", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "binary_data", - "type": "TYPE_BYTES" - }, - { - "name": "subfolder", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.iot.v1.SendCommandToDeviceResponse", - "client": { - "shortName": "DeviceManagerClient", - "fullName": "google.cloud.iot.v1.DeviceManagerClient" - }, - "method": { - "shortName": "SendCommandToDevice", - "fullName": "google.cloud.iot.v1.DeviceManager.SendCommandToDevice", - "service": { - "shortName": "DeviceManager", - "fullName": "google.cloud.iot.v1.DeviceManager" - } - } - } - }, - { - "regionTag": "cloudiot_v1_generated_DeviceManager_BindDeviceToGateway_async", - "title": "iot bindDeviceToGateway Sample", - "origin": "API_DEFINITION", - "description": " Associates the device with the gateway.", - "canonical": true, - "file": "device_manager.bind_device_to_gateway.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BindDeviceToGateway", - "fullName": "google.cloud.iot.v1.DeviceManager.BindDeviceToGateway", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "gateway_id", - "type": "TYPE_STRING" - }, - { - "name": "device_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.iot.v1.BindDeviceToGatewayResponse", - "client": { - "shortName": "DeviceManagerClient", - "fullName": "google.cloud.iot.v1.DeviceManagerClient" - }, - "method": { - "shortName": "BindDeviceToGateway", - "fullName": "google.cloud.iot.v1.DeviceManager.BindDeviceToGateway", - "service": { - "shortName": "DeviceManager", - "fullName": "google.cloud.iot.v1.DeviceManager" - } - } - } - }, - { - "regionTag": "cloudiot_v1_generated_DeviceManager_UnbindDeviceFromGateway_async", - "title": "iot unbindDeviceFromGateway Sample", - "origin": "API_DEFINITION", - "description": " Deletes the association between the device and the gateway.", - "canonical": true, - "file": "device_manager.unbind_device_from_gateway.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UnbindDeviceFromGateway", - "fullName": "google.cloud.iot.v1.DeviceManager.UnbindDeviceFromGateway", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "gateway_id", - "type": "TYPE_STRING" - }, - { - "name": "device_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.iot.v1.UnbindDeviceFromGatewayResponse", - "client": { - "shortName": "DeviceManagerClient", - "fullName": "google.cloud.iot.v1.DeviceManagerClient" - }, - "method": { - "shortName": "UnbindDeviceFromGateway", - "fullName": "google.cloud.iot.v1.DeviceManager.UnbindDeviceFromGateway", - "service": { - "shortName": "DeviceManager", - "fullName": "google.cloud.iot.v1.DeviceManager" - } - } - } - } - ] -} diff --git a/packages/google-cloud-kms-inventory/samples/generated/v1/snippet_metadata_google.cloud.kms.inventory.v1.json b/packages/google-cloud-kms-inventory/samples/generated/v1/snippet_metadata_google.cloud.kms.inventory.v1.json deleted file mode 100644 index 83dde952987b..000000000000 --- a/packages/google-cloud-kms-inventory/samples/generated/v1/snippet_metadata_google.cloud.kms.inventory.v1.json +++ /dev/null @@ -1,163 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-inventory", - "version": "2.6.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.kms.inventory.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "kmsinventory_v1_generated_KeyDashboardService_ListCryptoKeys_async", - "title": "KeyDashboardService listCryptoKeys Sample", - "origin": "API_DEFINITION", - "description": " Returns cryptographic keys managed by Cloud KMS in a given Cloud project. Note that this data is sourced from snapshots, meaning it may not completely reflect the actual state of key metadata at call time.", - "canonical": true, - "file": "key_dashboard_service.list_crypto_keys.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCryptoKeys", - "fullName": "google.cloud.kms.inventory.v1.KeyDashboardService.ListCryptoKeys", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.kms.inventory.v1.ListCryptoKeysResponse", - "client": { - "shortName": "KeyDashboardServiceClient", - "fullName": "google.cloud.kms.inventory.v1.KeyDashboardServiceClient" - }, - "method": { - "shortName": "ListCryptoKeys", - "fullName": "google.cloud.kms.inventory.v1.KeyDashboardService.ListCryptoKeys", - "service": { - "shortName": "KeyDashboardService", - "fullName": "google.cloud.kms.inventory.v1.KeyDashboardService" - } - } - } - }, - { - "regionTag": "kmsinventory_v1_generated_KeyTrackingService_GetProtectedResourcesSummary_async", - "title": "KeyDashboardService getProtectedResourcesSummary Sample", - "origin": "API_DEFINITION", - "description": " Returns aggregate information about the resources protected by the given Cloud KMS [CryptoKey][google.cloud.kms.v1.CryptoKey]. By default, summary of resources within the same Cloud organization as the key will be returned, which requires the KMS organization service account to be configured(refer https://docs.cloud.google.com/kms/docs/view-key-usage#required-roles). If the KMS organization service account is not configured or key's project is not part of an organization, set [fallback_scope][google.cloud.kms.inventory.v1.GetProtectedResourcesSummaryRequest.fallback_scope] to `FALLBACK_SCOPE_PROJECT` to retrieve a summary of protected resources within the key's project.", - "canonical": true, - "file": "key_tracking_service.get_protected_resources_summary.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetProtectedResourcesSummary", - "fullName": "google.cloud.kms.inventory.v1.KeyTrackingService.GetProtectedResourcesSummary", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "fallback_scope", - "type": ".google.cloud.kms.inventory.v1.FallbackScope" - } - ], - "resultType": ".google.cloud.kms.inventory.v1.ProtectedResourcesSummary", - "client": { - "shortName": "KeyTrackingServiceClient", - "fullName": "google.cloud.kms.inventory.v1.KeyTrackingServiceClient" - }, - "method": { - "shortName": "GetProtectedResourcesSummary", - "fullName": "google.cloud.kms.inventory.v1.KeyTrackingService.GetProtectedResourcesSummary", - "service": { - "shortName": "KeyTrackingService", - "fullName": "google.cloud.kms.inventory.v1.KeyTrackingService" - } - } - } - }, - { - "regionTag": "kmsinventory_v1_generated_KeyTrackingService_SearchProtectedResources_async", - "title": "KeyDashboardService searchProtectedResources Sample", - "origin": "API_DEFINITION", - "description": " Returns metadata about the resources protected by the given Cloud KMS [CryptoKey][google.cloud.kms.v1.CryptoKey] in the given Cloud organization/project.", - "canonical": true, - "file": "key_tracking_service.search_protected_resources.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 96, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchProtectedResources", - "fullName": "google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources", - "async": true, - "parameters": [ - { - "name": "scope", - "type": "TYPE_STRING" - }, - { - "name": "crypto_key", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "resource_types", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.cloud.kms.inventory.v1.SearchProtectedResourcesResponse", - "client": { - "shortName": "KeyTrackingServiceClient", - "fullName": "google.cloud.kms.inventory.v1.KeyTrackingServiceClient" - }, - "method": { - "shortName": "SearchProtectedResources", - "fullName": "google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources", - "service": { - "shortName": "KeyTrackingService", - "fullName": "google.cloud.kms.inventory.v1.KeyTrackingService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-kms/samples/generated/v1/snippet_metadata_google.cloud.kms.v1.json b/packages/google-cloud-kms/samples/generated/v1/snippet_metadata_google.cloud.kms.v1.json deleted file mode 100644 index a4fd2b18a0a8..000000000000 --- a/packages/google-cloud-kms/samples/generated/v1/snippet_metadata_google.cloud.kms.v1.json +++ /dev/null @@ -1,2631 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-kms", - "version": "5.4.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.kms.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "cloudkms_v1_generated_Autokey_CreateKeyHandle_async", - "title": "Autokey createKeyHandle Sample", - "origin": "API_DEFINITION", - "description": " Creates a new [KeyHandle][google.cloud.kms.v1.KeyHandle], triggering the provisioning of a new [CryptoKey][google.cloud.kms.v1.CryptoKey] for CMEK use with the given resource type in the configured key project and the same location. [GetOperation][google.longrunning.Operations.GetOperation] should be used to resolve the resulting long-running operation and get the resulting [KeyHandle][google.cloud.kms.v1.KeyHandle] and [CryptoKey][google.cloud.kms.v1.CryptoKey].", - "canonical": true, - "file": "autokey.create_key_handle.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateKeyHandle", - "fullName": "google.cloud.kms.v1.Autokey.CreateKeyHandle", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "key_handle_id", - "type": "TYPE_STRING" - }, - { - "name": "key_handle", - "type": ".google.cloud.kms.v1.KeyHandle" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AutokeyClient", - "fullName": "google.cloud.kms.v1.AutokeyClient" - }, - "method": { - "shortName": "CreateKeyHandle", - "fullName": "google.cloud.kms.v1.Autokey.CreateKeyHandle", - "service": { - "shortName": "Autokey", - "fullName": "google.cloud.kms.v1.Autokey" - } - } - } - }, - { - "regionTag": "cloudkms_v1_generated_Autokey_GetKeyHandle_async", - "title": "Autokey getKeyHandle Sample", - "origin": "API_DEFINITION", - "description": " Returns the [KeyHandle][google.cloud.kms.v1.KeyHandle].", - "canonical": true, - "file": "autokey.get_key_handle.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetKeyHandle", - "fullName": "google.cloud.kms.v1.Autokey.GetKeyHandle", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.kms.v1.KeyHandle", - "client": { - "shortName": "AutokeyClient", - "fullName": "google.cloud.kms.v1.AutokeyClient" - }, - "method": { - "shortName": "GetKeyHandle", - "fullName": "google.cloud.kms.v1.Autokey.GetKeyHandle", - "service": { - "shortName": "Autokey", - "fullName": "google.cloud.kms.v1.Autokey" - } - } - } - }, - { - "regionTag": "cloudkms_v1_generated_Autokey_ListKeyHandles_async", - "title": "Autokey listKeyHandles Sample", - "origin": "API_DEFINITION", - "description": " Lists [KeyHandles][google.cloud.kms.v1.KeyHandle].", - "canonical": true, - "file": "autokey.list_key_handles.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListKeyHandles", - "fullName": "google.cloud.kms.v1.Autokey.ListKeyHandles", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.kms.v1.ListKeyHandlesResponse", - "client": { - "shortName": "AutokeyClient", - "fullName": "google.cloud.kms.v1.AutokeyClient" - }, - "method": { - "shortName": "ListKeyHandles", - "fullName": "google.cloud.kms.v1.Autokey.ListKeyHandles", - "service": { - "shortName": "Autokey", - "fullName": "google.cloud.kms.v1.Autokey" - } - } - } - }, - { - "regionTag": "cloudkms_v1_generated_AutokeyAdmin_UpdateAutokeyConfig_async", - "title": "Autokey updateAutokeyConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates the [AutokeyConfig][google.cloud.kms.v1.AutokeyConfig] for a folder or a project. The caller must have both `cloudkms.autokeyConfigs.update` permission on the parent folder and `cloudkms.cryptoKeys.setIamPolicy` permission on the provided key project. A [KeyHandle][google.cloud.kms.v1.KeyHandle] creation in the folder's descendant projects will use this configuration to determine where to create the resulting [CryptoKey][google.cloud.kms.v1.CryptoKey].", - "canonical": true, - "file": "autokey_admin.update_autokey_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAutokeyConfig", - "fullName": "google.cloud.kms.v1.AutokeyAdmin.UpdateAutokeyConfig", - "async": true, - "parameters": [ - { - "name": "autokey_config", - "type": ".google.cloud.kms.v1.AutokeyConfig" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.kms.v1.AutokeyConfig", - "client": { - "shortName": "AutokeyAdminClient", - "fullName": "google.cloud.kms.v1.AutokeyAdminClient" - }, - "method": { - "shortName": "UpdateAutokeyConfig", - "fullName": "google.cloud.kms.v1.AutokeyAdmin.UpdateAutokeyConfig", - "service": { - "shortName": "AutokeyAdmin", - "fullName": "google.cloud.kms.v1.AutokeyAdmin" - } - } - } - }, - { - "regionTag": "cloudkms_v1_generated_AutokeyAdmin_GetAutokeyConfig_async", - "title": "Autokey getAutokeyConfig Sample", - "origin": "API_DEFINITION", - "description": " Returns the [AutokeyConfig][google.cloud.kms.v1.AutokeyConfig] for a folder or project.", - "canonical": true, - "file": "autokey_admin.get_autokey_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAutokeyConfig", - "fullName": "google.cloud.kms.v1.AutokeyAdmin.GetAutokeyConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.kms.v1.AutokeyConfig", - "client": { - "shortName": "AutokeyAdminClient", - "fullName": "google.cloud.kms.v1.AutokeyAdminClient" - }, - "method": { - "shortName": "GetAutokeyConfig", - "fullName": "google.cloud.kms.v1.AutokeyAdmin.GetAutokeyConfig", - "service": { - "shortName": "AutokeyAdmin", - "fullName": "google.cloud.kms.v1.AutokeyAdmin" - } - } - } - }, - { - "regionTag": "cloudkms_v1_generated_AutokeyAdmin_ShowEffectiveAutokeyConfig_async", - "title": "Autokey showEffectiveAutokeyConfig Sample", - "origin": "API_DEFINITION", - "description": " Returns the effective Cloud KMS Autokey configuration for a given project.", - "canonical": true, - "file": "autokey_admin.show_effective_autokey_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ShowEffectiveAutokeyConfig", - "fullName": "google.cloud.kms.v1.AutokeyAdmin.ShowEffectiveAutokeyConfig", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.kms.v1.ShowEffectiveAutokeyConfigResponse", - "client": { - "shortName": "AutokeyAdminClient", - "fullName": "google.cloud.kms.v1.AutokeyAdminClient" - }, - "method": { - "shortName": "ShowEffectiveAutokeyConfig", - "fullName": "google.cloud.kms.v1.AutokeyAdmin.ShowEffectiveAutokeyConfig", - "service": { - "shortName": "AutokeyAdmin", - "fullName": "google.cloud.kms.v1.AutokeyAdmin" - } - } - } - }, - { - "regionTag": "cloudkms_v1_generated_EkmService_ListEkmConnections_async", - "title": "Autokey listEkmConnections Sample", - "origin": "API_DEFINITION", - "description": " Lists [EkmConnections][google.cloud.kms.v1.EkmConnection].", - "canonical": true, - "file": "ekm_service.list_ekm_connections.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEkmConnections", - "fullName": "google.cloud.kms.v1.EkmService.ListEkmConnections", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.kms.v1.ListEkmConnectionsResponse", - "client": { - "shortName": "EkmServiceClient", - "fullName": "google.cloud.kms.v1.EkmServiceClient" - }, - "method": { - "shortName": "ListEkmConnections", - "fullName": "google.cloud.kms.v1.EkmService.ListEkmConnections", - "service": { - "shortName": "EkmService", - "fullName": "google.cloud.kms.v1.EkmService" - } - } - } - }, - { - "regionTag": "cloudkms_v1_generated_EkmService_GetEkmConnection_async", - "title": "Autokey getEkmConnection Sample", - "origin": "API_DEFINITION", - "description": " Returns metadata for a given [EkmConnection][google.cloud.kms.v1.EkmConnection].", - "canonical": true, - "file": "ekm_service.get_ekm_connection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEkmConnection", - "fullName": "google.cloud.kms.v1.EkmService.GetEkmConnection", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.kms.v1.EkmConnection", - "client": { - "shortName": "EkmServiceClient", - "fullName": "google.cloud.kms.v1.EkmServiceClient" - }, - "method": { - "shortName": "GetEkmConnection", - "fullName": "google.cloud.kms.v1.EkmService.GetEkmConnection", - "service": { - "shortName": "EkmService", - "fullName": "google.cloud.kms.v1.EkmService" - } - } - } - }, - { - "regionTag": "cloudkms_v1_generated_EkmService_CreateEkmConnection_async", - "title": "Autokey createEkmConnection Sample", - "origin": "API_DEFINITION", - "description": " Creates a new [EkmConnection][google.cloud.kms.v1.EkmConnection] in a given Project and Location.", - "canonical": true, - "file": "ekm_service.create_ekm_connection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateEkmConnection", - "fullName": "google.cloud.kms.v1.EkmService.CreateEkmConnection", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "ekm_connection_id", - "type": "TYPE_STRING" - }, - { - "name": "ekm_connection", - "type": ".google.cloud.kms.v1.EkmConnection" - } - ], - "resultType": ".google.cloud.kms.v1.EkmConnection", - "client": { - "shortName": "EkmServiceClient", - "fullName": "google.cloud.kms.v1.EkmServiceClient" - }, - "method": { - "shortName": "CreateEkmConnection", - "fullName": "google.cloud.kms.v1.EkmService.CreateEkmConnection", - "service": { - "shortName": "EkmService", - "fullName": "google.cloud.kms.v1.EkmService" - } - } - } - }, - { - "regionTag": "cloudkms_v1_generated_EkmService_UpdateEkmConnection_async", - "title": "Autokey updateEkmConnection Sample", - "origin": "API_DEFINITION", - "description": " Updates an [EkmConnection][google.cloud.kms.v1.EkmConnection]'s metadata.", - "canonical": true, - "file": "ekm_service.update_ekm_connection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateEkmConnection", - "fullName": "google.cloud.kms.v1.EkmService.UpdateEkmConnection", - "async": true, - "parameters": [ - { - "name": "ekm_connection", - "type": ".google.cloud.kms.v1.EkmConnection" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.kms.v1.EkmConnection", - "client": { - "shortName": "EkmServiceClient", - "fullName": "google.cloud.kms.v1.EkmServiceClient" - }, - "method": { - "shortName": "UpdateEkmConnection", - "fullName": "google.cloud.kms.v1.EkmService.UpdateEkmConnection", - "service": { - "shortName": "EkmService", - "fullName": "google.cloud.kms.v1.EkmService" - } - } - } - }, - { - "regionTag": "cloudkms_v1_generated_EkmService_GetEkmConfig_async", - "title": "Autokey getEkmConfig Sample", - "origin": "API_DEFINITION", - "description": " Returns the [EkmConfig][google.cloud.kms.v1.EkmConfig] singleton resource for a given project and location.", - "canonical": true, - "file": "ekm_service.get_ekm_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEkmConfig", - "fullName": "google.cloud.kms.v1.EkmService.GetEkmConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.kms.v1.EkmConfig", - "client": { - "shortName": "EkmServiceClient", - "fullName": "google.cloud.kms.v1.EkmServiceClient" - }, - "method": { - "shortName": "GetEkmConfig", - "fullName": "google.cloud.kms.v1.EkmService.GetEkmConfig", - "service": { - "shortName": "EkmService", - "fullName": "google.cloud.kms.v1.EkmService" - } - } - } - }, - { - "regionTag": "cloudkms_v1_generated_EkmService_UpdateEkmConfig_async", - "title": "Autokey updateEkmConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates the [EkmConfig][google.cloud.kms.v1.EkmConfig] singleton resource for a given project and location.", - "canonical": true, - "file": "ekm_service.update_ekm_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateEkmConfig", - "fullName": "google.cloud.kms.v1.EkmService.UpdateEkmConfig", - "async": true, - "parameters": [ - { - "name": "ekm_config", - "type": ".google.cloud.kms.v1.EkmConfig" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.kms.v1.EkmConfig", - "client": { - "shortName": "EkmServiceClient", - "fullName": "google.cloud.kms.v1.EkmServiceClient" - }, - "method": { - "shortName": "UpdateEkmConfig", - "fullName": "google.cloud.kms.v1.EkmService.UpdateEkmConfig", - "service": { - "shortName": "EkmService", - "fullName": "google.cloud.kms.v1.EkmService" - } - } - } - }, - { - "regionTag": "cloudkms_v1_generated_EkmService_VerifyConnectivity_async", - "title": "Autokey verifyConnectivity Sample", - "origin": "API_DEFINITION", - "description": " Verifies that Cloud KMS can successfully connect to the external key manager specified by an [EkmConnection][google.cloud.kms.v1.EkmConnection]. If there is an error connecting to the EKM, this method returns a FAILED_PRECONDITION status containing structured information as described at https://cloud.google.com/kms/docs/reference/ekm_errors.", - "canonical": true, - "file": "ekm_service.verify_connectivity.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "VerifyConnectivity", - "fullName": "google.cloud.kms.v1.EkmService.VerifyConnectivity", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.kms.v1.VerifyConnectivityResponse", - "client": { - "shortName": "EkmServiceClient", - "fullName": "google.cloud.kms.v1.EkmServiceClient" - }, - "method": { - "shortName": "VerifyConnectivity", - "fullName": "google.cloud.kms.v1.EkmService.VerifyConnectivity", - "service": { - "shortName": "EkmService", - "fullName": "google.cloud.kms.v1.EkmService" - } - } - } - }, - { - "regionTag": "cloudkms_v1_generated_HsmManagement_ListSingleTenantHsmInstances_async", - "title": "Autokey listSingleTenantHsmInstances Sample", - "origin": "API_DEFINITION", - "description": " Lists [SingleTenantHsmInstances][google.cloud.kms.v1.SingleTenantHsmInstance].", - "canonical": true, - "file": "hsm_management.list_single_tenant_hsm_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 96, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSingleTenantHsmInstances", - "fullName": "google.cloud.kms.v1.HsmManagement.ListSingleTenantHsmInstances", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "show_deleted", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.kms.v1.ListSingleTenantHsmInstancesResponse", - "client": { - "shortName": "HsmManagementClient", - "fullName": "google.cloud.kms.v1.HsmManagementClient" - }, - "method": { - "shortName": "ListSingleTenantHsmInstances", - "fullName": "google.cloud.kms.v1.HsmManagement.ListSingleTenantHsmInstances", - "service": { - "shortName": "HsmManagement", - "fullName": "google.cloud.kms.v1.HsmManagement" - } - } - } - }, - { - "regionTag": "cloudkms_v1_generated_HsmManagement_GetSingleTenantHsmInstance_async", - "title": "Autokey getSingleTenantHsmInstance Sample", - "origin": "API_DEFINITION", - "description": " Returns metadata for a given [SingleTenantHsmInstance][google.cloud.kms.v1.SingleTenantHsmInstance].", - "canonical": true, - "file": "hsm_management.get_single_tenant_hsm_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSingleTenantHsmInstance", - "fullName": "google.cloud.kms.v1.HsmManagement.GetSingleTenantHsmInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.kms.v1.SingleTenantHsmInstance", - "client": { - "shortName": "HsmManagementClient", - "fullName": "google.cloud.kms.v1.HsmManagementClient" - }, - "method": { - "shortName": "GetSingleTenantHsmInstance", - "fullName": "google.cloud.kms.v1.HsmManagement.GetSingleTenantHsmInstance", - "service": { - "shortName": "HsmManagement", - "fullName": "google.cloud.kms.v1.HsmManagement" - } - } - } - }, - { - "regionTag": "cloudkms_v1_generated_HsmManagement_CreateSingleTenantHsmInstance_async", - "title": "Autokey createSingleTenantHsmInstance Sample", - "origin": "API_DEFINITION", - "description": " Creates a new [SingleTenantHsmInstance][google.cloud.kms.v1.SingleTenantHsmInstance] in a given Project and Location. User must create a RegisterTwoFactorAuthKeys proposal with this single-tenant HSM instance to finish setup of the instance.", - "canonical": true, - "file": "hsm_management.create_single_tenant_hsm_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSingleTenantHsmInstance", - "fullName": "google.cloud.kms.v1.HsmManagement.CreateSingleTenantHsmInstance", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "single_tenant_hsm_instance_id", - "type": "TYPE_STRING" - }, - { - "name": "single_tenant_hsm_instance", - "type": ".google.cloud.kms.v1.SingleTenantHsmInstance" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "HsmManagementClient", - "fullName": "google.cloud.kms.v1.HsmManagementClient" - }, - "method": { - "shortName": "CreateSingleTenantHsmInstance", - "fullName": "google.cloud.kms.v1.HsmManagement.CreateSingleTenantHsmInstance", - "service": { - "shortName": "HsmManagement", - "fullName": "google.cloud.kms.v1.HsmManagement" - } - } - } - }, - { - "regionTag": "cloudkms_v1_generated_HsmManagement_CreateSingleTenantHsmInstanceProposal_async", - "title": "Autokey createSingleTenantHsmInstanceProposal Sample", - "origin": "API_DEFINITION", - "description": " Creates a new [SingleTenantHsmInstanceProposal][google.cloud.kms.v1.SingleTenantHsmInstanceProposal] for a given [SingleTenantHsmInstance][google.cloud.kms.v1.SingleTenantHsmInstance].", - "canonical": true, - "file": "hsm_management.create_single_tenant_hsm_instance_proposal.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSingleTenantHsmInstanceProposal", - "fullName": "google.cloud.kms.v1.HsmManagement.CreateSingleTenantHsmInstanceProposal", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "single_tenant_hsm_instance_proposal_id", - "type": "TYPE_STRING" - }, - { - "name": "single_tenant_hsm_instance_proposal", - "type": ".google.cloud.kms.v1.SingleTenantHsmInstanceProposal" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "HsmManagementClient", - "fullName": "google.cloud.kms.v1.HsmManagementClient" - }, - "method": { - "shortName": "CreateSingleTenantHsmInstanceProposal", - "fullName": "google.cloud.kms.v1.HsmManagement.CreateSingleTenantHsmInstanceProposal", - "service": { - "shortName": "HsmManagement", - "fullName": "google.cloud.kms.v1.HsmManagement" - } - } - } - }, - { - "regionTag": "cloudkms_v1_generated_HsmManagement_ApproveSingleTenantHsmInstanceProposal_async", - "title": "Autokey approveSingleTenantHsmInstanceProposal Sample", - "origin": "API_DEFINITION", - "description": " Approves a [SingleTenantHsmInstanceProposal][google.cloud.kms.v1.SingleTenantHsmInstanceProposal] for a given [SingleTenantHsmInstance][google.cloud.kms.v1.SingleTenantHsmInstance]. The proposal must be in the [PENDING][google.cloud.kms.v1.SingleTenantHsmInstanceProposal.State.PENDING] state.", - "canonical": true, - "file": "hsm_management.approve_single_tenant_hsm_instance_proposal.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ApproveSingleTenantHsmInstanceProposal", - "fullName": "google.cloud.kms.v1.HsmManagement.ApproveSingleTenantHsmInstanceProposal", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "quorum_reply", - "type": ".google.cloud.kms.v1.ApproveSingleTenantHsmInstanceProposalRequest.QuorumReply" - }, - { - "name": "required_action_quorum_reply", - "type": ".google.cloud.kms.v1.ApproveSingleTenantHsmInstanceProposalRequest.RequiredActionQuorumReply" - } - ], - "resultType": ".google.cloud.kms.v1.ApproveSingleTenantHsmInstanceProposalResponse", - "client": { - "shortName": "HsmManagementClient", - "fullName": "google.cloud.kms.v1.HsmManagementClient" - }, - "method": { - "shortName": "ApproveSingleTenantHsmInstanceProposal", - "fullName": "google.cloud.kms.v1.HsmManagement.ApproveSingleTenantHsmInstanceProposal", - "service": { - "shortName": "HsmManagement", - "fullName": "google.cloud.kms.v1.HsmManagement" - } - } - } - }, - { - "regionTag": "cloudkms_v1_generated_HsmManagement_ExecuteSingleTenantHsmInstanceProposal_async", - "title": "Autokey executeSingleTenantHsmInstanceProposal Sample", - "origin": "API_DEFINITION", - "description": " Executes a [SingleTenantHsmInstanceProposal][google.cloud.kms.v1.SingleTenantHsmInstanceProposal] for a given [SingleTenantHsmInstance][google.cloud.kms.v1.SingleTenantHsmInstance]. The proposal must be in the [APPROVED][google.cloud.kms.v1.SingleTenantHsmInstanceProposal.State.APPROVED] state.", - "canonical": true, - "file": "hsm_management.execute_single_tenant_hsm_instance_proposal.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExecuteSingleTenantHsmInstanceProposal", - "fullName": "google.cloud.kms.v1.HsmManagement.ExecuteSingleTenantHsmInstanceProposal", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "HsmManagementClient", - "fullName": "google.cloud.kms.v1.HsmManagementClient" - }, - "method": { - "shortName": "ExecuteSingleTenantHsmInstanceProposal", - "fullName": "google.cloud.kms.v1.HsmManagement.ExecuteSingleTenantHsmInstanceProposal", - "service": { - "shortName": "HsmManagement", - "fullName": "google.cloud.kms.v1.HsmManagement" - } - } - } - }, - { - "regionTag": "cloudkms_v1_generated_HsmManagement_GetSingleTenantHsmInstanceProposal_async", - "title": "Autokey getSingleTenantHsmInstanceProposal Sample", - "origin": "API_DEFINITION", - "description": " Returns metadata for a given [SingleTenantHsmInstanceProposal][google.cloud.kms.v1.SingleTenantHsmInstanceProposal].", - "canonical": true, - "file": "hsm_management.get_single_tenant_hsm_instance_proposal.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSingleTenantHsmInstanceProposal", - "fullName": "google.cloud.kms.v1.HsmManagement.GetSingleTenantHsmInstanceProposal", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.kms.v1.SingleTenantHsmInstanceProposal", - "client": { - "shortName": "HsmManagementClient", - "fullName": "google.cloud.kms.v1.HsmManagementClient" - }, - "method": { - "shortName": "GetSingleTenantHsmInstanceProposal", - "fullName": "google.cloud.kms.v1.HsmManagement.GetSingleTenantHsmInstanceProposal", - "service": { - "shortName": "HsmManagement", - "fullName": "google.cloud.kms.v1.HsmManagement" - } - } - } - }, - { - "regionTag": "cloudkms_v1_generated_HsmManagement_ListSingleTenantHsmInstanceProposals_async", - "title": "Autokey listSingleTenantHsmInstanceProposals Sample", - "origin": "API_DEFINITION", - "description": " Lists [SingleTenantHsmInstanceProposals][google.cloud.kms.v1.SingleTenantHsmInstanceProposal].", - "canonical": true, - "file": "hsm_management.list_single_tenant_hsm_instance_proposals.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 96, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSingleTenantHsmInstanceProposals", - "fullName": "google.cloud.kms.v1.HsmManagement.ListSingleTenantHsmInstanceProposals", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "show_deleted", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.kms.v1.ListSingleTenantHsmInstanceProposalsResponse", - "client": { - "shortName": "HsmManagementClient", - "fullName": "google.cloud.kms.v1.HsmManagementClient" - }, - "method": { - "shortName": "ListSingleTenantHsmInstanceProposals", - "fullName": "google.cloud.kms.v1.HsmManagement.ListSingleTenantHsmInstanceProposals", - "service": { - "shortName": "HsmManagement", - "fullName": "google.cloud.kms.v1.HsmManagement" - } - } - } - }, - { - "regionTag": "cloudkms_v1_generated_HsmManagement_DeleteSingleTenantHsmInstanceProposal_async", - "title": "Autokey deleteSingleTenantHsmInstanceProposal Sample", - "origin": "API_DEFINITION", - "description": " Deletes a [SingleTenantHsmInstanceProposal][google.cloud.kms.v1.SingleTenantHsmInstanceProposal].", - "canonical": true, - "file": "hsm_management.delete_single_tenant_hsm_instance_proposal.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSingleTenantHsmInstanceProposal", - "fullName": "google.cloud.kms.v1.HsmManagement.DeleteSingleTenantHsmInstanceProposal", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "HsmManagementClient", - "fullName": "google.cloud.kms.v1.HsmManagementClient" - }, - "method": { - "shortName": "DeleteSingleTenantHsmInstanceProposal", - "fullName": "google.cloud.kms.v1.HsmManagement.DeleteSingleTenantHsmInstanceProposal", - "service": { - "shortName": "HsmManagement", - "fullName": "google.cloud.kms.v1.HsmManagement" - } - } - } - }, - { - "regionTag": "cloudkms_v1_generated_KeyManagementService_ListKeyRings_async", - "title": "Autokey listKeyRings Sample", - "origin": "API_DEFINITION", - "description": " Lists [KeyRings][google.cloud.kms.v1.KeyRing].", - "canonical": true, - "file": "key_management_service.list_key_rings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListKeyRings", - "fullName": "google.cloud.kms.v1.KeyManagementService.ListKeyRings", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.kms.v1.ListKeyRingsResponse", - "client": { - "shortName": "KeyManagementServiceClient", - "fullName": "google.cloud.kms.v1.KeyManagementServiceClient" - }, - "method": { - "shortName": "ListKeyRings", - "fullName": "google.cloud.kms.v1.KeyManagementService.ListKeyRings", - "service": { - "shortName": "KeyManagementService", - "fullName": "google.cloud.kms.v1.KeyManagementService" - } - } - } - }, - { - "regionTag": "cloudkms_v1_generated_KeyManagementService_ListCryptoKeys_async", - "title": "Autokey listCryptoKeys Sample", - "origin": "API_DEFINITION", - "description": " Lists [CryptoKeys][google.cloud.kms.v1.CryptoKey].", - "canonical": true, - "file": "key_management_service.list_crypto_keys.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 89, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCryptoKeys", - "fullName": "google.cloud.kms.v1.KeyManagementService.ListCryptoKeys", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "version_view", - "type": ".google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.kms.v1.ListCryptoKeysResponse", - "client": { - "shortName": "KeyManagementServiceClient", - "fullName": "google.cloud.kms.v1.KeyManagementServiceClient" - }, - "method": { - "shortName": "ListCryptoKeys", - "fullName": "google.cloud.kms.v1.KeyManagementService.ListCryptoKeys", - "service": { - "shortName": "KeyManagementService", - "fullName": "google.cloud.kms.v1.KeyManagementService" - } - } - } - }, - { - "regionTag": "cloudkms_v1_generated_KeyManagementService_ListCryptoKeyVersions_async", - "title": "Autokey listCryptoKeyVersions Sample", - "origin": "API_DEFINITION", - "description": " Lists [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion].", - "canonical": true, - "file": "key_management_service.list_crypto_key_versions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 90, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCryptoKeyVersions", - "fullName": "google.cloud.kms.v1.KeyManagementService.ListCryptoKeyVersions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionView" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.kms.v1.ListCryptoKeyVersionsResponse", - "client": { - "shortName": "KeyManagementServiceClient", - "fullName": "google.cloud.kms.v1.KeyManagementServiceClient" - }, - "method": { - "shortName": "ListCryptoKeyVersions", - "fullName": "google.cloud.kms.v1.KeyManagementService.ListCryptoKeyVersions", - "service": { - "shortName": "KeyManagementService", - "fullName": "google.cloud.kms.v1.KeyManagementService" - } - } - } - }, - { - "regionTag": "cloudkms_v1_generated_KeyManagementService_ListImportJobs_async", - "title": "Autokey listImportJobs Sample", - "origin": "API_DEFINITION", - "description": " Lists [ImportJobs][google.cloud.kms.v1.ImportJob].", - "canonical": true, - "file": "key_management_service.list_import_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListImportJobs", - "fullName": "google.cloud.kms.v1.KeyManagementService.ListImportJobs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.kms.v1.ListImportJobsResponse", - "client": { - "shortName": "KeyManagementServiceClient", - "fullName": "google.cloud.kms.v1.KeyManagementServiceClient" - }, - "method": { - "shortName": "ListImportJobs", - "fullName": "google.cloud.kms.v1.KeyManagementService.ListImportJobs", - "service": { - "shortName": "KeyManagementService", - "fullName": "google.cloud.kms.v1.KeyManagementService" - } - } - } - }, - { - "regionTag": "cloudkms_v1_generated_KeyManagementService_ListRetiredResources_async", - "title": "Autokey listRetiredResources Sample", - "origin": "API_DEFINITION", - "description": " Lists the [RetiredResources][google.cloud.kms.v1.RetiredResource] which are the records of deleted [CryptoKeys][google.cloud.kms.v1.CryptoKey]. RetiredResources prevent the reuse of these resource names after deletion.", - "canonical": true, - "file": "key_management_service.list_retired_resources.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRetiredResources", - "fullName": "google.cloud.kms.v1.KeyManagementService.ListRetiredResources", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.kms.v1.ListRetiredResourcesResponse", - "client": { - "shortName": "KeyManagementServiceClient", - "fullName": "google.cloud.kms.v1.KeyManagementServiceClient" - }, - "method": { - "shortName": "ListRetiredResources", - "fullName": "google.cloud.kms.v1.KeyManagementService.ListRetiredResources", - "service": { - "shortName": "KeyManagementService", - "fullName": "google.cloud.kms.v1.KeyManagementService" - } - } - } - }, - { - "regionTag": "cloudkms_v1_generated_KeyManagementService_GetKeyRing_async", - "title": "Autokey getKeyRing Sample", - "origin": "API_DEFINITION", - "description": " Returns metadata for a given [KeyRing][google.cloud.kms.v1.KeyRing].", - "canonical": true, - "file": "key_management_service.get_key_ring.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetKeyRing", - "fullName": "google.cloud.kms.v1.KeyManagementService.GetKeyRing", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.kms.v1.KeyRing", - "client": { - "shortName": "KeyManagementServiceClient", - "fullName": "google.cloud.kms.v1.KeyManagementServiceClient" - }, - "method": { - "shortName": "GetKeyRing", - "fullName": "google.cloud.kms.v1.KeyManagementService.GetKeyRing", - "service": { - "shortName": "KeyManagementService", - "fullName": "google.cloud.kms.v1.KeyManagementService" - } - } - } - }, - { - "regionTag": "cloudkms_v1_generated_KeyManagementService_GetCryptoKey_async", - "title": "Autokey getCryptoKey Sample", - "origin": "API_DEFINITION", - "description": " Returns metadata for a given [CryptoKey][google.cloud.kms.v1.CryptoKey], as well as its [primary][google.cloud.kms.v1.CryptoKey.primary] [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].", - "canonical": true, - "file": "key_management_service.get_crypto_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCryptoKey", - "fullName": "google.cloud.kms.v1.KeyManagementService.GetCryptoKey", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.kms.v1.CryptoKey", - "client": { - "shortName": "KeyManagementServiceClient", - "fullName": "google.cloud.kms.v1.KeyManagementServiceClient" - }, - "method": { - "shortName": "GetCryptoKey", - "fullName": "google.cloud.kms.v1.KeyManagementService.GetCryptoKey", - "service": { - "shortName": "KeyManagementService", - "fullName": "google.cloud.kms.v1.KeyManagementService" - } - } - } - }, - { - "regionTag": "cloudkms_v1_generated_KeyManagementService_GetCryptoKeyVersion_async", - "title": "Autokey getCryptoKeyVersion Sample", - "origin": "API_DEFINITION", - "description": " Returns metadata for a given [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion].", - "canonical": true, - "file": "key_management_service.get_crypto_key_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCryptoKeyVersion", - "fullName": "google.cloud.kms.v1.KeyManagementService.GetCryptoKeyVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.kms.v1.CryptoKeyVersion", - "client": { - "shortName": "KeyManagementServiceClient", - "fullName": "google.cloud.kms.v1.KeyManagementServiceClient" - }, - "method": { - "shortName": "GetCryptoKeyVersion", - "fullName": "google.cloud.kms.v1.KeyManagementService.GetCryptoKeyVersion", - "service": { - "shortName": "KeyManagementService", - "fullName": "google.cloud.kms.v1.KeyManagementService" - } - } - } - }, - { - "regionTag": "cloudkms_v1_generated_KeyManagementService_GetPublicKey_async", - "title": "Autokey getPublicKey Sample", - "origin": "API_DEFINITION", - "description": " Returns the public key for the given [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. The [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] must be [ASYMMETRIC_SIGN][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ASYMMETRIC_SIGN] or [ASYMMETRIC_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ASYMMETRIC_DECRYPT].", - "canonical": true, - "file": "key_management_service.get_public_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPublicKey", - "fullName": "google.cloud.kms.v1.KeyManagementService.GetPublicKey", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "public_key_format", - "type": ".google.cloud.kms.v1.PublicKey.PublicKeyFormat" - } - ], - "resultType": ".google.cloud.kms.v1.PublicKey", - "client": { - "shortName": "KeyManagementServiceClient", - "fullName": "google.cloud.kms.v1.KeyManagementServiceClient" - }, - "method": { - "shortName": "GetPublicKey", - "fullName": "google.cloud.kms.v1.KeyManagementService.GetPublicKey", - "service": { - "shortName": "KeyManagementService", - "fullName": "google.cloud.kms.v1.KeyManagementService" - } - } - } - }, - { - "regionTag": "cloudkms_v1_generated_KeyManagementService_GetImportJob_async", - "title": "Autokey getImportJob Sample", - "origin": "API_DEFINITION", - "description": " Returns metadata for a given [ImportJob][google.cloud.kms.v1.ImportJob].", - "canonical": true, - "file": "key_management_service.get_import_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetImportJob", - "fullName": "google.cloud.kms.v1.KeyManagementService.GetImportJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.kms.v1.ImportJob", - "client": { - "shortName": "KeyManagementServiceClient", - "fullName": "google.cloud.kms.v1.KeyManagementServiceClient" - }, - "method": { - "shortName": "GetImportJob", - "fullName": "google.cloud.kms.v1.KeyManagementService.GetImportJob", - "service": { - "shortName": "KeyManagementService", - "fullName": "google.cloud.kms.v1.KeyManagementService" - } - } - } - }, - { - "regionTag": "cloudkms_v1_generated_KeyManagementService_GetRetiredResource_async", - "title": "Autokey getRetiredResource Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a specific [RetiredResource][google.cloud.kms.v1.RetiredResource] resource, which represents the record of a deleted [CryptoKey][google.cloud.kms.v1.CryptoKey].", - "canonical": true, - "file": "key_management_service.get_retired_resource.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRetiredResource", - "fullName": "google.cloud.kms.v1.KeyManagementService.GetRetiredResource", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.kms.v1.RetiredResource", - "client": { - "shortName": "KeyManagementServiceClient", - "fullName": "google.cloud.kms.v1.KeyManagementServiceClient" - }, - "method": { - "shortName": "GetRetiredResource", - "fullName": "google.cloud.kms.v1.KeyManagementService.GetRetiredResource", - "service": { - "shortName": "KeyManagementService", - "fullName": "google.cloud.kms.v1.KeyManagementService" - } - } - } - }, - { - "regionTag": "cloudkms_v1_generated_KeyManagementService_CreateKeyRing_async", - "title": "Autokey createKeyRing Sample", - "origin": "API_DEFINITION", - "description": " Create a new [KeyRing][google.cloud.kms.v1.KeyRing] in a given Project and Location.", - "canonical": true, - "file": "key_management_service.create_key_ring.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateKeyRing", - "fullName": "google.cloud.kms.v1.KeyManagementService.CreateKeyRing", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "key_ring_id", - "type": "TYPE_STRING" - }, - { - "name": "key_ring", - "type": ".google.cloud.kms.v1.KeyRing" - } - ], - "resultType": ".google.cloud.kms.v1.KeyRing", - "client": { - "shortName": "KeyManagementServiceClient", - "fullName": "google.cloud.kms.v1.KeyManagementServiceClient" - }, - "method": { - "shortName": "CreateKeyRing", - "fullName": "google.cloud.kms.v1.KeyManagementService.CreateKeyRing", - "service": { - "shortName": "KeyManagementService", - "fullName": "google.cloud.kms.v1.KeyManagementService" - } - } - } - }, - { - "regionTag": "cloudkms_v1_generated_KeyManagementService_CreateCryptoKey_async", - "title": "Autokey createCryptoKey Sample", - "origin": "API_DEFINITION", - "description": " Create a new [CryptoKey][google.cloud.kms.v1.CryptoKey] within a [KeyRing][google.cloud.kms.v1.KeyRing]. [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] and [CryptoKey.version_template.algorithm][google.cloud.kms.v1.CryptoKeyVersionTemplate.algorithm] are required.", - "canonical": true, - "file": "key_management_service.create_crypto_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCryptoKey", - "fullName": "google.cloud.kms.v1.KeyManagementService.CreateCryptoKey", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "crypto_key_id", - "type": "TYPE_STRING" - }, - { - "name": "crypto_key", - "type": ".google.cloud.kms.v1.CryptoKey" - }, - { - "name": "skip_initial_version_creation", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.kms.v1.CryptoKey", - "client": { - "shortName": "KeyManagementServiceClient", - "fullName": "google.cloud.kms.v1.KeyManagementServiceClient" - }, - "method": { - "shortName": "CreateCryptoKey", - "fullName": "google.cloud.kms.v1.KeyManagementService.CreateCryptoKey", - "service": { - "shortName": "KeyManagementService", - "fullName": "google.cloud.kms.v1.KeyManagementService" - } - } - } - }, - { - "regionTag": "cloudkms_v1_generated_KeyManagementService_CreateCryptoKeyVersion_async", - "title": "Autokey createCryptoKeyVersion Sample", - "origin": "API_DEFINITION", - "description": " Create a new [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in a [CryptoKey][google.cloud.kms.v1.CryptoKey]. The server will assign the next sequential id. If unset, [state][google.cloud.kms.v1.CryptoKeyVersion.state] will be set to [ENABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.ENABLED].", - "canonical": true, - "file": "key_management_service.create_crypto_key_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCryptoKeyVersion", - "fullName": "google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "crypto_key_version", - "type": ".google.cloud.kms.v1.CryptoKeyVersion" - } - ], - "resultType": ".google.cloud.kms.v1.CryptoKeyVersion", - "client": { - "shortName": "KeyManagementServiceClient", - "fullName": "google.cloud.kms.v1.KeyManagementServiceClient" - }, - "method": { - "shortName": "CreateCryptoKeyVersion", - "fullName": "google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion", - "service": { - "shortName": "KeyManagementService", - "fullName": "google.cloud.kms.v1.KeyManagementService" - } - } - } - }, - { - "regionTag": "cloudkms_v1_generated_KeyManagementService_DeleteCryptoKey_async", - "title": "Autokey deleteCryptoKey Sample", - "origin": "API_DEFINITION", - "description": " Permanently deletes the given [CryptoKey][google.cloud.kms.v1.CryptoKey]. All child [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] must have been previously deleted using [KeyManagementService.DeleteCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.DeleteCryptoKeyVersion]. The specified crypto key will be immediately and permanently deleted upon calling this method. This action cannot be undone.", - "canonical": true, - "file": "key_management_service.delete_crypto_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCryptoKey", - "fullName": "google.cloud.kms.v1.KeyManagementService.DeleteCryptoKey", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "KeyManagementServiceClient", - "fullName": "google.cloud.kms.v1.KeyManagementServiceClient" - }, - "method": { - "shortName": "DeleteCryptoKey", - "fullName": "google.cloud.kms.v1.KeyManagementService.DeleteCryptoKey", - "service": { - "shortName": "KeyManagementService", - "fullName": "google.cloud.kms.v1.KeyManagementService" - } - } - } - }, - { - "regionTag": "cloudkms_v1_generated_KeyManagementService_DeleteCryptoKeyVersion_async", - "title": "Autokey deleteCryptoKeyVersion Sample", - "origin": "API_DEFINITION", - "description": " Permanently deletes the given [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. Only possible if the version has not been previously imported and if its [state][google.cloud.kms.v1.CryptoKeyVersion.state] is one of [DESTROYED][CryptoKeyVersionState.DESTROYED], [IMPORT_FAILED][CryptoKeyVersionState.IMPORT_FAILED], or [GENERATION_FAILED][CryptoKeyVersionState.GENERATION_FAILED]. Successfully imported [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] cannot be deleted at this time. The specified version will be immediately and permanently deleted upon calling this method. This action cannot be undone.", - "canonical": true, - "file": "key_management_service.delete_crypto_key_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCryptoKeyVersion", - "fullName": "google.cloud.kms.v1.KeyManagementService.DeleteCryptoKeyVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "KeyManagementServiceClient", - "fullName": "google.cloud.kms.v1.KeyManagementServiceClient" - }, - "method": { - "shortName": "DeleteCryptoKeyVersion", - "fullName": "google.cloud.kms.v1.KeyManagementService.DeleteCryptoKeyVersion", - "service": { - "shortName": "KeyManagementService", - "fullName": "google.cloud.kms.v1.KeyManagementService" - } - } - } - }, - { - "regionTag": "cloudkms_v1_generated_KeyManagementService_ImportCryptoKeyVersion_async", - "title": "Autokey importCryptoKeyVersion Sample", - "origin": "API_DEFINITION", - "description": " Import wrapped key material into a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. All requests must specify a [CryptoKey][google.cloud.kms.v1.CryptoKey]. If a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] is additionally specified in the request, key material will be reimported into that version. Otherwise, a new version will be created, and will be assigned the next sequential id within the [CryptoKey][google.cloud.kms.v1.CryptoKey].", - "canonical": true, - "file": "key_management_service.import_crypto_key_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 139, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportCryptoKeyVersion", - "fullName": "google.cloud.kms.v1.KeyManagementService.ImportCryptoKeyVersion", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "crypto_key_version", - "type": "TYPE_STRING" - }, - { - "name": "algorithm", - "type": ".google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm" - }, - { - "name": "import_job", - "type": "TYPE_STRING" - }, - { - "name": "wrapped_key", - "type": "TYPE_BYTES" - }, - { - "name": "rsa_aes_wrapped_key", - "type": "TYPE_BYTES" - } - ], - "resultType": ".google.cloud.kms.v1.CryptoKeyVersion", - "client": { - "shortName": "KeyManagementServiceClient", - "fullName": "google.cloud.kms.v1.KeyManagementServiceClient" - }, - "method": { - "shortName": "ImportCryptoKeyVersion", - "fullName": "google.cloud.kms.v1.KeyManagementService.ImportCryptoKeyVersion", - "service": { - "shortName": "KeyManagementService", - "fullName": "google.cloud.kms.v1.KeyManagementService" - } - } - } - }, - { - "regionTag": "cloudkms_v1_generated_KeyManagementService_CreateImportJob_async", - "title": "Autokey createImportJob Sample", - "origin": "API_DEFINITION", - "description": " Create a new [ImportJob][google.cloud.kms.v1.ImportJob] within a [KeyRing][google.cloud.kms.v1.KeyRing]. [ImportJob.import_method][google.cloud.kms.v1.ImportJob.import_method] is required.", - "canonical": true, - "file": "key_management_service.create_import_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateImportJob", - "fullName": "google.cloud.kms.v1.KeyManagementService.CreateImportJob", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "import_job_id", - "type": "TYPE_STRING" - }, - { - "name": "import_job", - "type": ".google.cloud.kms.v1.ImportJob" - } - ], - "resultType": ".google.cloud.kms.v1.ImportJob", - "client": { - "shortName": "KeyManagementServiceClient", - "fullName": "google.cloud.kms.v1.KeyManagementServiceClient" - }, - "method": { - "shortName": "CreateImportJob", - "fullName": "google.cloud.kms.v1.KeyManagementService.CreateImportJob", - "service": { - "shortName": "KeyManagementService", - "fullName": "google.cloud.kms.v1.KeyManagementService" - } - } - } - }, - { - "regionTag": "cloudkms_v1_generated_KeyManagementService_UpdateCryptoKey_async", - "title": "Autokey updateCryptoKey Sample", - "origin": "API_DEFINITION", - "description": " Update a [CryptoKey][google.cloud.kms.v1.CryptoKey].", - "canonical": true, - "file": "key_management_service.update_crypto_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCryptoKey", - "fullName": "google.cloud.kms.v1.KeyManagementService.UpdateCryptoKey", - "async": true, - "parameters": [ - { - "name": "crypto_key", - "type": ".google.cloud.kms.v1.CryptoKey" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.kms.v1.CryptoKey", - "client": { - "shortName": "KeyManagementServiceClient", - "fullName": "google.cloud.kms.v1.KeyManagementServiceClient" - }, - "method": { - "shortName": "UpdateCryptoKey", - "fullName": "google.cloud.kms.v1.KeyManagementService.UpdateCryptoKey", - "service": { - "shortName": "KeyManagementService", - "fullName": "google.cloud.kms.v1.KeyManagementService" - } - } - } - }, - { - "regionTag": "cloudkms_v1_generated_KeyManagementService_UpdateCryptoKeyVersion_async", - "title": "Autokey updateCryptoKeyVersion Sample", - "origin": "API_DEFINITION", - "description": " Update a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]'s metadata. [state][google.cloud.kms.v1.CryptoKeyVersion.state] may be changed between [ENABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.ENABLED] and [DISABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DISABLED] using this method. See [DestroyCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.DestroyCryptoKeyVersion] and [RestoreCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.RestoreCryptoKeyVersion] to move between other states.", - "canonical": true, - "file": "key_management_service.update_crypto_key_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCryptoKeyVersion", - "fullName": "google.cloud.kms.v1.KeyManagementService.UpdateCryptoKeyVersion", - "async": true, - "parameters": [ - { - "name": "crypto_key_version", - "type": ".google.cloud.kms.v1.CryptoKeyVersion" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.kms.v1.CryptoKeyVersion", - "client": { - "shortName": "KeyManagementServiceClient", - "fullName": "google.cloud.kms.v1.KeyManagementServiceClient" - }, - "method": { - "shortName": "UpdateCryptoKeyVersion", - "fullName": "google.cloud.kms.v1.KeyManagementService.UpdateCryptoKeyVersion", - "service": { - "shortName": "KeyManagementService", - "fullName": "google.cloud.kms.v1.KeyManagementService" - } - } - } - }, - { - "regionTag": "cloudkms_v1_generated_KeyManagementService_UpdateCryptoKeyPrimaryVersion_async", - "title": "Autokey updateCryptoKeyPrimaryVersion Sample", - "origin": "API_DEFINITION", - "description": " Update the version of a [CryptoKey][google.cloud.kms.v1.CryptoKey] that will be used in [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt]. Returns an error if called on a key whose purpose is not [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].", - "canonical": true, - "file": "key_management_service.update_crypto_key_primary_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCryptoKeyPrimaryVersion", - "fullName": "google.cloud.kms.v1.KeyManagementService.UpdateCryptoKeyPrimaryVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "crypto_key_version_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.kms.v1.CryptoKey", - "client": { - "shortName": "KeyManagementServiceClient", - "fullName": "google.cloud.kms.v1.KeyManagementServiceClient" - }, - "method": { - "shortName": "UpdateCryptoKeyPrimaryVersion", - "fullName": "google.cloud.kms.v1.KeyManagementService.UpdateCryptoKeyPrimaryVersion", - "service": { - "shortName": "KeyManagementService", - "fullName": "google.cloud.kms.v1.KeyManagementService" - } - } - } - }, - { - "regionTag": "cloudkms_v1_generated_KeyManagementService_DestroyCryptoKeyVersion_async", - "title": "Autokey destroyCryptoKeyVersion Sample", - "origin": "API_DEFINITION", - "description": " Schedule a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] for destruction. Upon calling this method, [CryptoKeyVersion.state][google.cloud.kms.v1.CryptoKeyVersion.state] will be set to [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED], and [destroy_time][google.cloud.kms.v1.CryptoKeyVersion.destroy_time] will be set to the time [destroy_scheduled_duration][google.cloud.kms.v1.CryptoKey.destroy_scheduled_duration] in the future. At that time, the [state][google.cloud.kms.v1.CryptoKeyVersion.state] will automatically change to [DESTROYED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROYED], and the key material will be irrevocably destroyed. Before the [destroy_time][google.cloud.kms.v1.CryptoKeyVersion.destroy_time] is reached, [RestoreCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.RestoreCryptoKeyVersion] may be called to reverse the process.", - "canonical": true, - "file": "key_management_service.destroy_crypto_key_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DestroyCryptoKeyVersion", - "fullName": "google.cloud.kms.v1.KeyManagementService.DestroyCryptoKeyVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.kms.v1.CryptoKeyVersion", - "client": { - "shortName": "KeyManagementServiceClient", - "fullName": "google.cloud.kms.v1.KeyManagementServiceClient" - }, - "method": { - "shortName": "DestroyCryptoKeyVersion", - "fullName": "google.cloud.kms.v1.KeyManagementService.DestroyCryptoKeyVersion", - "service": { - "shortName": "KeyManagementService", - "fullName": "google.cloud.kms.v1.KeyManagementService" - } - } - } - }, - { - "regionTag": "cloudkms_v1_generated_KeyManagementService_RestoreCryptoKeyVersion_async", - "title": "Autokey restoreCryptoKeyVersion Sample", - "origin": "API_DEFINITION", - "description": " Restore a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] in the [DESTROY_SCHEDULED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROY_SCHEDULED] state. Upon restoration of the CryptoKeyVersion, [state][google.cloud.kms.v1.CryptoKeyVersion.state] will be set to [DISABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DISABLED], and [destroy_time][google.cloud.kms.v1.CryptoKeyVersion.destroy_time] will be cleared.", - "canonical": true, - "file": "key_management_service.restore_crypto_key_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RestoreCryptoKeyVersion", - "fullName": "google.cloud.kms.v1.KeyManagementService.RestoreCryptoKeyVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.kms.v1.CryptoKeyVersion", - "client": { - "shortName": "KeyManagementServiceClient", - "fullName": "google.cloud.kms.v1.KeyManagementServiceClient" - }, - "method": { - "shortName": "RestoreCryptoKeyVersion", - "fullName": "google.cloud.kms.v1.KeyManagementService.RestoreCryptoKeyVersion", - "service": { - "shortName": "KeyManagementService", - "fullName": "google.cloud.kms.v1.KeyManagementService" - } - } - } - }, - { - "regionTag": "cloudkms_v1_generated_KeyManagementService_Encrypt_async", - "title": "Autokey encrypt Sample", - "origin": "API_DEFINITION", - "description": " Encrypts data, so that it can only be recovered by a call to [Decrypt][google.cloud.kms.v1.KeyManagementService.Decrypt]. The [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] must be [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].", - "canonical": true, - "file": "key_management_service.encrypt.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 131, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Encrypt", - "fullName": "google.cloud.kms.v1.KeyManagementService.Encrypt", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "plaintext", - "type": "TYPE_BYTES" - }, - { - "name": "additional_authenticated_data", - "type": "TYPE_BYTES" - }, - { - "name": "plaintext_crc32c", - "type": ".google.protobuf.Int64Value" - }, - { - "name": "additional_authenticated_data_crc32c", - "type": ".google.protobuf.Int64Value" - } - ], - "resultType": ".google.cloud.kms.v1.EncryptResponse", - "client": { - "shortName": "KeyManagementServiceClient", - "fullName": "google.cloud.kms.v1.KeyManagementServiceClient" - }, - "method": { - "shortName": "Encrypt", - "fullName": "google.cloud.kms.v1.KeyManagementService.Encrypt", - "service": { - "shortName": "KeyManagementService", - "fullName": "google.cloud.kms.v1.KeyManagementService" - } - } - } - }, - { - "regionTag": "cloudkms_v1_generated_KeyManagementService_Decrypt_async", - "title": "Autokey decrypt Sample", - "origin": "API_DEFINITION", - "description": " Decrypts data that was protected by [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt]. The [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] must be [ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.ENCRYPT_DECRYPT].", - "canonical": true, - "file": "key_management_service.decrypt.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 110, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Decrypt", - "fullName": "google.cloud.kms.v1.KeyManagementService.Decrypt", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "ciphertext", - "type": "TYPE_BYTES" - }, - { - "name": "additional_authenticated_data", - "type": "TYPE_BYTES" - }, - { - "name": "ciphertext_crc32c", - "type": ".google.protobuf.Int64Value" - }, - { - "name": "additional_authenticated_data_crc32c", - "type": ".google.protobuf.Int64Value" - } - ], - "resultType": ".google.cloud.kms.v1.DecryptResponse", - "client": { - "shortName": "KeyManagementServiceClient", - "fullName": "google.cloud.kms.v1.KeyManagementServiceClient" - }, - "method": { - "shortName": "Decrypt", - "fullName": "google.cloud.kms.v1.KeyManagementService.Decrypt", - "service": { - "shortName": "KeyManagementService", - "fullName": "google.cloud.kms.v1.KeyManagementService" - } - } - } - }, - { - "regionTag": "cloudkms_v1_generated_KeyManagementService_RawEncrypt_async", - "title": "Autokey rawEncrypt Sample", - "origin": "API_DEFINITION", - "description": " Encrypts data using portable cryptographic primitives. Most users should choose [Encrypt][google.cloud.kms.v1.KeyManagementService.Encrypt] and [Decrypt][google.cloud.kms.v1.KeyManagementService.Decrypt] rather than their raw counterparts. The [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] must be [RAW_ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.RAW_ENCRYPT_DECRYPT].", - "canonical": true, - "file": "key_management_service.raw_encrypt.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 146, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RawEncrypt", - "fullName": "google.cloud.kms.v1.KeyManagementService.RawEncrypt", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "plaintext", - "type": "TYPE_BYTES" - }, - { - "name": "additional_authenticated_data", - "type": "TYPE_BYTES" - }, - { - "name": "plaintext_crc32c", - "type": ".google.protobuf.Int64Value" - }, - { - "name": "additional_authenticated_data_crc32c", - "type": ".google.protobuf.Int64Value" - }, - { - "name": "initialization_vector", - "type": "TYPE_BYTES" - }, - { - "name": "initialization_vector_crc32c", - "type": ".google.protobuf.Int64Value" - } - ], - "resultType": ".google.cloud.kms.v1.RawEncryptResponse", - "client": { - "shortName": "KeyManagementServiceClient", - "fullName": "google.cloud.kms.v1.KeyManagementServiceClient" - }, - "method": { - "shortName": "RawEncrypt", - "fullName": "google.cloud.kms.v1.KeyManagementService.RawEncrypt", - "service": { - "shortName": "KeyManagementService", - "fullName": "google.cloud.kms.v1.KeyManagementService" - } - } - } - }, - { - "regionTag": "cloudkms_v1_generated_KeyManagementService_RawDecrypt_async", - "title": "Autokey rawDecrypt Sample", - "origin": "API_DEFINITION", - "description": " Decrypts data that was originally encrypted using a raw cryptographic mechanism. The [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] must be [RAW_ENCRYPT_DECRYPT][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.RAW_ENCRYPT_DECRYPT].", - "canonical": true, - "file": "key_management_service.raw_decrypt.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 134, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RawDecrypt", - "fullName": "google.cloud.kms.v1.KeyManagementService.RawDecrypt", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "ciphertext", - "type": "TYPE_BYTES" - }, - { - "name": "additional_authenticated_data", - "type": "TYPE_BYTES" - }, - { - "name": "initialization_vector", - "type": "TYPE_BYTES" - }, - { - "name": "tag_length", - "type": "TYPE_INT32" - }, - { - "name": "ciphertext_crc32c", - "type": ".google.protobuf.Int64Value" - }, - { - "name": "additional_authenticated_data_crc32c", - "type": ".google.protobuf.Int64Value" - }, - { - "name": "initialization_vector_crc32c", - "type": ".google.protobuf.Int64Value" - } - ], - "resultType": ".google.cloud.kms.v1.RawDecryptResponse", - "client": { - "shortName": "KeyManagementServiceClient", - "fullName": "google.cloud.kms.v1.KeyManagementServiceClient" - }, - "method": { - "shortName": "RawDecrypt", - "fullName": "google.cloud.kms.v1.KeyManagementService.RawDecrypt", - "service": { - "shortName": "KeyManagementService", - "fullName": "google.cloud.kms.v1.KeyManagementService" - } - } - } - }, - { - "regionTag": "cloudkms_v1_generated_KeyManagementService_AsymmetricSign_async", - "title": "Autokey asymmetricSign Sample", - "origin": "API_DEFINITION", - "description": " Signs data using a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] ASYMMETRIC_SIGN, producing a signature that can be verified with the public key retrieved from [GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey].", - "canonical": true, - "file": "key_management_service.asymmetric_sign.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 115, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AsymmetricSign", - "fullName": "google.cloud.kms.v1.KeyManagementService.AsymmetricSign", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "digest", - "type": ".google.cloud.kms.v1.Digest" - }, - { - "name": "digest_crc32c", - "type": ".google.protobuf.Int64Value" - }, - { - "name": "data", - "type": "TYPE_BYTES" - }, - { - "name": "data_crc32c", - "type": ".google.protobuf.Int64Value" - } - ], - "resultType": ".google.cloud.kms.v1.AsymmetricSignResponse", - "client": { - "shortName": "KeyManagementServiceClient", - "fullName": "google.cloud.kms.v1.KeyManagementServiceClient" - }, - "method": { - "shortName": "AsymmetricSign", - "fullName": "google.cloud.kms.v1.KeyManagementService.AsymmetricSign", - "service": { - "shortName": "KeyManagementService", - "fullName": "google.cloud.kms.v1.KeyManagementService" - } - } - } - }, - { - "regionTag": "cloudkms_v1_generated_KeyManagementService_AsymmetricDecrypt_async", - "title": "Autokey asymmetricDecrypt Sample", - "origin": "API_DEFINITION", - "description": " Decrypts data that was encrypted with a public key retrieved from [GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey] corresponding to a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] ASYMMETRIC_DECRYPT.", - "canonical": true, - "file": "key_management_service.asymmetric_decrypt.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AsymmetricDecrypt", - "fullName": "google.cloud.kms.v1.KeyManagementService.AsymmetricDecrypt", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "ciphertext", - "type": "TYPE_BYTES" - }, - { - "name": "ciphertext_crc32c", - "type": ".google.protobuf.Int64Value" - } - ], - "resultType": ".google.cloud.kms.v1.AsymmetricDecryptResponse", - "client": { - "shortName": "KeyManagementServiceClient", - "fullName": "google.cloud.kms.v1.KeyManagementServiceClient" - }, - "method": { - "shortName": "AsymmetricDecrypt", - "fullName": "google.cloud.kms.v1.KeyManagementService.AsymmetricDecrypt", - "service": { - "shortName": "KeyManagementService", - "fullName": "google.cloud.kms.v1.KeyManagementService" - } - } - } - }, - { - "regionTag": "cloudkms_v1_generated_KeyManagementService_MacSign_async", - "title": "Autokey macSign Sample", - "origin": "API_DEFINITION", - "description": " Signs data using a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] MAC, producing a tag that can be verified by another source with the same key.", - "canonical": true, - "file": "key_management_service.mac_sign.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "MacSign", - "fullName": "google.cloud.kms.v1.KeyManagementService.MacSign", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "data", - "type": "TYPE_BYTES" - }, - { - "name": "data_crc32c", - "type": ".google.protobuf.Int64Value" - } - ], - "resultType": ".google.cloud.kms.v1.MacSignResponse", - "client": { - "shortName": "KeyManagementServiceClient", - "fullName": "google.cloud.kms.v1.KeyManagementServiceClient" - }, - "method": { - "shortName": "MacSign", - "fullName": "google.cloud.kms.v1.KeyManagementService.MacSign", - "service": { - "shortName": "KeyManagementService", - "fullName": "google.cloud.kms.v1.KeyManagementService" - } - } - } - }, - { - "regionTag": "cloudkms_v1_generated_KeyManagementService_MacVerify_async", - "title": "Autokey macVerify Sample", - "origin": "API_DEFINITION", - "description": " Verifies MAC tag using a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] MAC, and returns a response that indicates whether or not the verification was successful.", - "canonical": true, - "file": "key_management_service.mac_verify.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 108, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "MacVerify", - "fullName": "google.cloud.kms.v1.KeyManagementService.MacVerify", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "data", - "type": "TYPE_BYTES" - }, - { - "name": "data_crc32c", - "type": ".google.protobuf.Int64Value" - }, - { - "name": "mac", - "type": "TYPE_BYTES" - }, - { - "name": "mac_crc32c", - "type": ".google.protobuf.Int64Value" - } - ], - "resultType": ".google.cloud.kms.v1.MacVerifyResponse", - "client": { - "shortName": "KeyManagementServiceClient", - "fullName": "google.cloud.kms.v1.KeyManagementServiceClient" - }, - "method": { - "shortName": "MacVerify", - "fullName": "google.cloud.kms.v1.KeyManagementService.MacVerify", - "service": { - "shortName": "KeyManagementService", - "fullName": "google.cloud.kms.v1.KeyManagementService" - } - } - } - }, - { - "regionTag": "cloudkms_v1_generated_KeyManagementService_Decapsulate_async", - "title": "Autokey decapsulate Sample", - "origin": "API_DEFINITION", - "description": " Decapsulates data that was encapsulated with a public key retrieved from [GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey] corresponding to a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] with [CryptoKey.purpose][google.cloud.kms.v1.CryptoKey.purpose] KEY_ENCAPSULATION.", - "canonical": true, - "file": "key_management_service.decapsulate.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Decapsulate", - "fullName": "google.cloud.kms.v1.KeyManagementService.Decapsulate", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "ciphertext", - "type": "TYPE_BYTES" - }, - { - "name": "ciphertext_crc32c", - "type": ".google.protobuf.Int64Value" - } - ], - "resultType": ".google.cloud.kms.v1.DecapsulateResponse", - "client": { - "shortName": "KeyManagementServiceClient", - "fullName": "google.cloud.kms.v1.KeyManagementServiceClient" - }, - "method": { - "shortName": "Decapsulate", - "fullName": "google.cloud.kms.v1.KeyManagementService.Decapsulate", - "service": { - "shortName": "KeyManagementService", - "fullName": "google.cloud.kms.v1.KeyManagementService" - } - } - } - }, - { - "regionTag": "cloudkms_v1_generated_KeyManagementService_GenerateRandomBytes_async", - "title": "Autokey generateRandomBytes Sample", - "origin": "API_DEFINITION", - "description": " Generate random bytes using the Cloud KMS randomness source in the provided location.", - "canonical": true, - "file": "key_management_service.generate_random_bytes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateRandomBytes", - "fullName": "google.cloud.kms.v1.KeyManagementService.GenerateRandomBytes", - "async": true, - "parameters": [ - { - "name": "location", - "type": "TYPE_STRING" - }, - { - "name": "length_bytes", - "type": "TYPE_INT32" - }, - { - "name": "protection_level", - "type": ".google.cloud.kms.v1.ProtectionLevel" - } - ], - "resultType": ".google.cloud.kms.v1.GenerateRandomBytesResponse", - "client": { - "shortName": "KeyManagementServiceClient", - "fullName": "google.cloud.kms.v1.KeyManagementServiceClient" - }, - "method": { - "shortName": "GenerateRandomBytes", - "fullName": "google.cloud.kms.v1.KeyManagementService.GenerateRandomBytes", - "service": { - "shortName": "KeyManagementService", - "fullName": "google.cloud.kms.v1.KeyManagementService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-language/samples/generated/v1/snippet_metadata_google.cloud.language.v1.json b/packages/google-cloud-language/samples/generated/v1/snippet_metadata_google.cloud.language.v1.json deleted file mode 100644 index cddd3b30e09a..000000000000 --- a/packages/google-cloud-language/samples/generated/v1/snippet_metadata_google.cloud.language.v1.json +++ /dev/null @@ -1,323 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-language", - "version": "7.2.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.language.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "language_v1_generated_LanguageService_AnalyzeSentiment_async", - "title": "LanguageService analyzeSentiment Sample", - "origin": "API_DEFINITION", - "description": " Analyzes the sentiment of the provided text.", - "canonical": true, - "file": "language_service.analyze_sentiment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AnalyzeSentiment", - "fullName": "google.cloud.language.v1.LanguageService.AnalyzeSentiment", - "async": true, - "parameters": [ - { - "name": "document", - "type": ".google.cloud.language.v1.Document" - }, - { - "name": "encoding_type", - "type": ".google.cloud.language.v1.EncodingType" - } - ], - "resultType": ".google.cloud.language.v1.AnalyzeSentimentResponse", - "client": { - "shortName": "LanguageServiceClient", - "fullName": "google.cloud.language.v1.LanguageServiceClient" - }, - "method": { - "shortName": "AnalyzeSentiment", - "fullName": "google.cloud.language.v1.LanguageService.AnalyzeSentiment", - "service": { - "shortName": "LanguageService", - "fullName": "google.cloud.language.v1.LanguageService" - } - } - } - }, - { - "regionTag": "language_v1_generated_LanguageService_AnalyzeEntities_async", - "title": "LanguageService analyzeEntities Sample", - "origin": "API_DEFINITION", - "description": " Finds named entities (currently proper names and common nouns) in the text along with entity types, salience, mentions for each entity, and other properties.", - "canonical": true, - "file": "language_service.analyze_entities.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AnalyzeEntities", - "fullName": "google.cloud.language.v1.LanguageService.AnalyzeEntities", - "async": true, - "parameters": [ - { - "name": "document", - "type": ".google.cloud.language.v1.Document" - }, - { - "name": "encoding_type", - "type": ".google.cloud.language.v1.EncodingType" - } - ], - "resultType": ".google.cloud.language.v1.AnalyzeEntitiesResponse", - "client": { - "shortName": "LanguageServiceClient", - "fullName": "google.cloud.language.v1.LanguageServiceClient" - }, - "method": { - "shortName": "AnalyzeEntities", - "fullName": "google.cloud.language.v1.LanguageService.AnalyzeEntities", - "service": { - "shortName": "LanguageService", - "fullName": "google.cloud.language.v1.LanguageService" - } - } - } - }, - { - "regionTag": "language_v1_generated_LanguageService_AnalyzeEntitySentiment_async", - "title": "LanguageService analyzeEntitySentiment Sample", - "origin": "API_DEFINITION", - "description": " Finds entities, similar to [AnalyzeEntities][google.cloud.language.v1.LanguageService.AnalyzeEntities] in the text and analyzes sentiment associated with each entity and its mentions.", - "canonical": true, - "file": "language_service.analyze_entity_sentiment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AnalyzeEntitySentiment", - "fullName": "google.cloud.language.v1.LanguageService.AnalyzeEntitySentiment", - "async": true, - "parameters": [ - { - "name": "document", - "type": ".google.cloud.language.v1.Document" - }, - { - "name": "encoding_type", - "type": ".google.cloud.language.v1.EncodingType" - } - ], - "resultType": ".google.cloud.language.v1.AnalyzeEntitySentimentResponse", - "client": { - "shortName": "LanguageServiceClient", - "fullName": "google.cloud.language.v1.LanguageServiceClient" - }, - "method": { - "shortName": "AnalyzeEntitySentiment", - "fullName": "google.cloud.language.v1.LanguageService.AnalyzeEntitySentiment", - "service": { - "shortName": "LanguageService", - "fullName": "google.cloud.language.v1.LanguageService" - } - } - } - }, - { - "regionTag": "language_v1_generated_LanguageService_AnalyzeSyntax_async", - "title": "LanguageService analyzeSyntax Sample", - "origin": "API_DEFINITION", - "description": " Analyzes the syntax of the text and provides sentence boundaries and tokenization along with part of speech tags, dependency trees, and other properties.", - "canonical": true, - "file": "language_service.analyze_syntax.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AnalyzeSyntax", - "fullName": "google.cloud.language.v1.LanguageService.AnalyzeSyntax", - "async": true, - "parameters": [ - { - "name": "document", - "type": ".google.cloud.language.v1.Document" - }, - { - "name": "encoding_type", - "type": ".google.cloud.language.v1.EncodingType" - } - ], - "resultType": ".google.cloud.language.v1.AnalyzeSyntaxResponse", - "client": { - "shortName": "LanguageServiceClient", - "fullName": "google.cloud.language.v1.LanguageServiceClient" - }, - "method": { - "shortName": "AnalyzeSyntax", - "fullName": "google.cloud.language.v1.LanguageService.AnalyzeSyntax", - "service": { - "shortName": "LanguageService", - "fullName": "google.cloud.language.v1.LanguageService" - } - } - } - }, - { - "regionTag": "language_v1_generated_LanguageService_ClassifyText_async", - "title": "LanguageService classifyText Sample", - "origin": "API_DEFINITION", - "description": " Classifies a document into categories.", - "canonical": true, - "file": "language_service.classify_text.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ClassifyText", - "fullName": "google.cloud.language.v1.LanguageService.ClassifyText", - "async": true, - "parameters": [ - { - "name": "document", - "type": ".google.cloud.language.v1.Document" - }, - { - "name": "classification_model_options", - "type": ".google.cloud.language.v1.ClassificationModelOptions" - } - ], - "resultType": ".google.cloud.language.v1.ClassifyTextResponse", - "client": { - "shortName": "LanguageServiceClient", - "fullName": "google.cloud.language.v1.LanguageServiceClient" - }, - "method": { - "shortName": "ClassifyText", - "fullName": "google.cloud.language.v1.LanguageService.ClassifyText", - "service": { - "shortName": "LanguageService", - "fullName": "google.cloud.language.v1.LanguageService" - } - } - } - }, - { - "regionTag": "language_v1_generated_LanguageService_ModerateText_async", - "title": "LanguageService moderateText Sample", - "origin": "API_DEFINITION", - "description": " Moderates a document for harmful and sensitive categories.", - "canonical": true, - "file": "language_service.moderate_text.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ModerateText", - "fullName": "google.cloud.language.v1.LanguageService.ModerateText", - "async": true, - "parameters": [ - { - "name": "document", - "type": ".google.cloud.language.v1.Document" - } - ], - "resultType": ".google.cloud.language.v1.ModerateTextResponse", - "client": { - "shortName": "LanguageServiceClient", - "fullName": "google.cloud.language.v1.LanguageServiceClient" - }, - "method": { - "shortName": "ModerateText", - "fullName": "google.cloud.language.v1.LanguageService.ModerateText", - "service": { - "shortName": "LanguageService", - "fullName": "google.cloud.language.v1.LanguageService" - } - } - } - }, - { - "regionTag": "language_v1_generated_LanguageService_AnnotateText_async", - "title": "LanguageService annotateText Sample", - "origin": "API_DEFINITION", - "description": " A convenience method that provides all the features that analyzeSentiment, analyzeEntities, and analyzeSyntax provide in one call.", - "canonical": true, - "file": "language_service.annotate_text.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AnnotateText", - "fullName": "google.cloud.language.v1.LanguageService.AnnotateText", - "async": true, - "parameters": [ - { - "name": "document", - "type": ".google.cloud.language.v1.Document" - }, - { - "name": "features", - "type": ".google.cloud.language.v1.AnnotateTextRequest.Features" - }, - { - "name": "encoding_type", - "type": ".google.cloud.language.v1.EncodingType" - } - ], - "resultType": ".google.cloud.language.v1.AnnotateTextResponse", - "client": { - "shortName": "LanguageServiceClient", - "fullName": "google.cloud.language.v1.LanguageServiceClient" - }, - "method": { - "shortName": "AnnotateText", - "fullName": "google.cloud.language.v1.LanguageService.AnnotateText", - "service": { - "shortName": "LanguageService", - "fullName": "google.cloud.language.v1.LanguageService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-language/samples/generated/v1beta2/snippet_metadata_google.cloud.language.v1beta2.json b/packages/google-cloud-language/samples/generated/v1beta2/snippet_metadata_google.cloud.language.v1beta2.json deleted file mode 100644 index 827a14bc99ec..000000000000 --- a/packages/google-cloud-language/samples/generated/v1beta2/snippet_metadata_google.cloud.language.v1beta2.json +++ /dev/null @@ -1,323 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-language", - "version": "7.2.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.language.v1beta2", - "version": "v1beta2" - } - ] - }, - "snippets": [ - { - "regionTag": "language_v1beta2_generated_LanguageService_AnalyzeSentiment_async", - "title": "LanguageService analyzeSentiment Sample", - "origin": "API_DEFINITION", - "description": " Analyzes the sentiment of the provided text.", - "canonical": true, - "file": "language_service.analyze_sentiment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AnalyzeSentiment", - "fullName": "google.cloud.language.v1beta2.LanguageService.AnalyzeSentiment", - "async": true, - "parameters": [ - { - "name": "document", - "type": ".google.cloud.language.v1beta2.Document" - }, - { - "name": "encoding_type", - "type": ".google.cloud.language.v1beta2.EncodingType" - } - ], - "resultType": ".google.cloud.language.v1beta2.AnalyzeSentimentResponse", - "client": { - "shortName": "LanguageServiceClient", - "fullName": "google.cloud.language.v1beta2.LanguageServiceClient" - }, - "method": { - "shortName": "AnalyzeSentiment", - "fullName": "google.cloud.language.v1beta2.LanguageService.AnalyzeSentiment", - "service": { - "shortName": "LanguageService", - "fullName": "google.cloud.language.v1beta2.LanguageService" - } - } - } - }, - { - "regionTag": "language_v1beta2_generated_LanguageService_AnalyzeEntities_async", - "title": "LanguageService analyzeEntities Sample", - "origin": "API_DEFINITION", - "description": " Finds named entities (currently proper names and common nouns) in the text along with entity types, salience, mentions for each entity, and other properties.", - "canonical": true, - "file": "language_service.analyze_entities.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AnalyzeEntities", - "fullName": "google.cloud.language.v1beta2.LanguageService.AnalyzeEntities", - "async": true, - "parameters": [ - { - "name": "document", - "type": ".google.cloud.language.v1beta2.Document" - }, - { - "name": "encoding_type", - "type": ".google.cloud.language.v1beta2.EncodingType" - } - ], - "resultType": ".google.cloud.language.v1beta2.AnalyzeEntitiesResponse", - "client": { - "shortName": "LanguageServiceClient", - "fullName": "google.cloud.language.v1beta2.LanguageServiceClient" - }, - "method": { - "shortName": "AnalyzeEntities", - "fullName": "google.cloud.language.v1beta2.LanguageService.AnalyzeEntities", - "service": { - "shortName": "LanguageService", - "fullName": "google.cloud.language.v1beta2.LanguageService" - } - } - } - }, - { - "regionTag": "language_v1beta2_generated_LanguageService_AnalyzeEntitySentiment_async", - "title": "LanguageService analyzeEntitySentiment Sample", - "origin": "API_DEFINITION", - "description": " Finds entities, similar to [AnalyzeEntities][google.cloud.language.v1beta2.LanguageService.AnalyzeEntities] in the text and analyzes sentiment associated with each entity and its mentions.", - "canonical": true, - "file": "language_service.analyze_entity_sentiment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AnalyzeEntitySentiment", - "fullName": "google.cloud.language.v1beta2.LanguageService.AnalyzeEntitySentiment", - "async": true, - "parameters": [ - { - "name": "document", - "type": ".google.cloud.language.v1beta2.Document" - }, - { - "name": "encoding_type", - "type": ".google.cloud.language.v1beta2.EncodingType" - } - ], - "resultType": ".google.cloud.language.v1beta2.AnalyzeEntitySentimentResponse", - "client": { - "shortName": "LanguageServiceClient", - "fullName": "google.cloud.language.v1beta2.LanguageServiceClient" - }, - "method": { - "shortName": "AnalyzeEntitySentiment", - "fullName": "google.cloud.language.v1beta2.LanguageService.AnalyzeEntitySentiment", - "service": { - "shortName": "LanguageService", - "fullName": "google.cloud.language.v1beta2.LanguageService" - } - } - } - }, - { - "regionTag": "language_v1beta2_generated_LanguageService_AnalyzeSyntax_async", - "title": "LanguageService analyzeSyntax Sample", - "origin": "API_DEFINITION", - "description": " Analyzes the syntax of the text and provides sentence boundaries and tokenization along with part of speech tags, dependency trees, and other properties.", - "canonical": true, - "file": "language_service.analyze_syntax.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AnalyzeSyntax", - "fullName": "google.cloud.language.v1beta2.LanguageService.AnalyzeSyntax", - "async": true, - "parameters": [ - { - "name": "document", - "type": ".google.cloud.language.v1beta2.Document" - }, - { - "name": "encoding_type", - "type": ".google.cloud.language.v1beta2.EncodingType" - } - ], - "resultType": ".google.cloud.language.v1beta2.AnalyzeSyntaxResponse", - "client": { - "shortName": "LanguageServiceClient", - "fullName": "google.cloud.language.v1beta2.LanguageServiceClient" - }, - "method": { - "shortName": "AnalyzeSyntax", - "fullName": "google.cloud.language.v1beta2.LanguageService.AnalyzeSyntax", - "service": { - "shortName": "LanguageService", - "fullName": "google.cloud.language.v1beta2.LanguageService" - } - } - } - }, - { - "regionTag": "language_v1beta2_generated_LanguageService_ClassifyText_async", - "title": "LanguageService classifyText Sample", - "origin": "API_DEFINITION", - "description": " Classifies a document into categories.", - "canonical": true, - "file": "language_service.classify_text.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ClassifyText", - "fullName": "google.cloud.language.v1beta2.LanguageService.ClassifyText", - "async": true, - "parameters": [ - { - "name": "document", - "type": ".google.cloud.language.v1beta2.Document" - }, - { - "name": "classification_model_options", - "type": ".google.cloud.language.v1beta2.ClassificationModelOptions" - } - ], - "resultType": ".google.cloud.language.v1beta2.ClassifyTextResponse", - "client": { - "shortName": "LanguageServiceClient", - "fullName": "google.cloud.language.v1beta2.LanguageServiceClient" - }, - "method": { - "shortName": "ClassifyText", - "fullName": "google.cloud.language.v1beta2.LanguageService.ClassifyText", - "service": { - "shortName": "LanguageService", - "fullName": "google.cloud.language.v1beta2.LanguageService" - } - } - } - }, - { - "regionTag": "language_v1beta2_generated_LanguageService_ModerateText_async", - "title": "LanguageService moderateText Sample", - "origin": "API_DEFINITION", - "description": " Moderates a document for harmful and sensitive categories.", - "canonical": true, - "file": "language_service.moderate_text.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ModerateText", - "fullName": "google.cloud.language.v1beta2.LanguageService.ModerateText", - "async": true, - "parameters": [ - { - "name": "document", - "type": ".google.cloud.language.v1beta2.Document" - } - ], - "resultType": ".google.cloud.language.v1beta2.ModerateTextResponse", - "client": { - "shortName": "LanguageServiceClient", - "fullName": "google.cloud.language.v1beta2.LanguageServiceClient" - }, - "method": { - "shortName": "ModerateText", - "fullName": "google.cloud.language.v1beta2.LanguageService.ModerateText", - "service": { - "shortName": "LanguageService", - "fullName": "google.cloud.language.v1beta2.LanguageService" - } - } - } - }, - { - "regionTag": "language_v1beta2_generated_LanguageService_AnnotateText_async", - "title": "LanguageService annotateText Sample", - "origin": "API_DEFINITION", - "description": " A convenience method that provides all syntax, sentiment, entity, and classification features in one call.", - "canonical": true, - "file": "language_service.annotate_text.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AnnotateText", - "fullName": "google.cloud.language.v1beta2.LanguageService.AnnotateText", - "async": true, - "parameters": [ - { - "name": "document", - "type": ".google.cloud.language.v1beta2.Document" - }, - { - "name": "features", - "type": ".google.cloud.language.v1beta2.AnnotateTextRequest.Features" - }, - { - "name": "encoding_type", - "type": ".google.cloud.language.v1beta2.EncodingType" - } - ], - "resultType": ".google.cloud.language.v1beta2.AnnotateTextResponse", - "client": { - "shortName": "LanguageServiceClient", - "fullName": "google.cloud.language.v1beta2.LanguageServiceClient" - }, - "method": { - "shortName": "AnnotateText", - "fullName": "google.cloud.language.v1beta2.LanguageService.AnnotateText", - "service": { - "shortName": "LanguageService", - "fullName": "google.cloud.language.v1beta2.LanguageService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-language/samples/generated/v2/snippet_metadata_google.cloud.language.v2.json b/packages/google-cloud-language/samples/generated/v2/snippet_metadata_google.cloud.language.v2.json deleted file mode 100644 index b4293d73fe60..000000000000 --- a/packages/google-cloud-language/samples/generated/v2/snippet_metadata_google.cloud.language.v2.json +++ /dev/null @@ -1,235 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-language", - "version": "7.2.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.language.v2", - "version": "v2" - } - ] - }, - "snippets": [ - { - "regionTag": "language_v2_generated_LanguageService_AnalyzeSentiment_async", - "title": "LanguageService analyzeSentiment Sample", - "origin": "API_DEFINITION", - "description": " Analyzes the sentiment of the provided text.", - "canonical": true, - "file": "language_service.analyze_sentiment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AnalyzeSentiment", - "fullName": "google.cloud.language.v2.LanguageService.AnalyzeSentiment", - "async": true, - "parameters": [ - { - "name": "document", - "type": ".google.cloud.language.v2.Document" - }, - { - "name": "encoding_type", - "type": ".google.cloud.language.v2.EncodingType" - } - ], - "resultType": ".google.cloud.language.v2.AnalyzeSentimentResponse", - "client": { - "shortName": "LanguageServiceClient", - "fullName": "google.cloud.language.v2.LanguageServiceClient" - }, - "method": { - "shortName": "AnalyzeSentiment", - "fullName": "google.cloud.language.v2.LanguageService.AnalyzeSentiment", - "service": { - "shortName": "LanguageService", - "fullName": "google.cloud.language.v2.LanguageService" - } - } - } - }, - { - "regionTag": "language_v2_generated_LanguageService_AnalyzeEntities_async", - "title": "LanguageService analyzeEntities Sample", - "origin": "API_DEFINITION", - "description": " Finds named entities (currently proper names and common nouns) in the text along with entity types, probability, mentions for each entity, and other properties.", - "canonical": true, - "file": "language_service.analyze_entities.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AnalyzeEntities", - "fullName": "google.cloud.language.v2.LanguageService.AnalyzeEntities", - "async": true, - "parameters": [ - { - "name": "document", - "type": ".google.cloud.language.v2.Document" - }, - { - "name": "encoding_type", - "type": ".google.cloud.language.v2.EncodingType" - } - ], - "resultType": ".google.cloud.language.v2.AnalyzeEntitiesResponse", - "client": { - "shortName": "LanguageServiceClient", - "fullName": "google.cloud.language.v2.LanguageServiceClient" - }, - "method": { - "shortName": "AnalyzeEntities", - "fullName": "google.cloud.language.v2.LanguageService.AnalyzeEntities", - "service": { - "shortName": "LanguageService", - "fullName": "google.cloud.language.v2.LanguageService" - } - } - } - }, - { - "regionTag": "language_v2_generated_LanguageService_ClassifyText_async", - "title": "LanguageService classifyText Sample", - "origin": "API_DEFINITION", - "description": " Classifies a document into categories.", - "canonical": true, - "file": "language_service.classify_text.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ClassifyText", - "fullName": "google.cloud.language.v2.LanguageService.ClassifyText", - "async": true, - "parameters": [ - { - "name": "document", - "type": ".google.cloud.language.v2.Document" - } - ], - "resultType": ".google.cloud.language.v2.ClassifyTextResponse", - "client": { - "shortName": "LanguageServiceClient", - "fullName": "google.cloud.language.v2.LanguageServiceClient" - }, - "method": { - "shortName": "ClassifyText", - "fullName": "google.cloud.language.v2.LanguageService.ClassifyText", - "service": { - "shortName": "LanguageService", - "fullName": "google.cloud.language.v2.LanguageService" - } - } - } - }, - { - "regionTag": "language_v2_generated_LanguageService_ModerateText_async", - "title": "LanguageService moderateText Sample", - "origin": "API_DEFINITION", - "description": " Moderates a document for harmful and sensitive categories.", - "canonical": true, - "file": "language_service.moderate_text.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ModerateText", - "fullName": "google.cloud.language.v2.LanguageService.ModerateText", - "async": true, - "parameters": [ - { - "name": "document", - "type": ".google.cloud.language.v2.Document" - }, - { - "name": "model_version", - "type": ".google.cloud.language.v2.ModerateTextRequest.ModelVersion" - } - ], - "resultType": ".google.cloud.language.v2.ModerateTextResponse", - "client": { - "shortName": "LanguageServiceClient", - "fullName": "google.cloud.language.v2.LanguageServiceClient" - }, - "method": { - "shortName": "ModerateText", - "fullName": "google.cloud.language.v2.LanguageService.ModerateText", - "service": { - "shortName": "LanguageService", - "fullName": "google.cloud.language.v2.LanguageService" - } - } - } - }, - { - "regionTag": "language_v2_generated_LanguageService_AnnotateText_async", - "title": "LanguageService annotateText Sample", - "origin": "API_DEFINITION", - "description": " A convenience method that provides all features in one call.", - "canonical": true, - "file": "language_service.annotate_text.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AnnotateText", - "fullName": "google.cloud.language.v2.LanguageService.AnnotateText", - "async": true, - "parameters": [ - { - "name": "document", - "type": ".google.cloud.language.v2.Document" - }, - { - "name": "features", - "type": ".google.cloud.language.v2.AnnotateTextRequest.Features" - }, - { - "name": "encoding_type", - "type": ".google.cloud.language.v2.EncodingType" - } - ], - "resultType": ".google.cloud.language.v2.AnnotateTextResponse", - "client": { - "shortName": "LanguageServiceClient", - "fullName": "google.cloud.language.v2.LanguageServiceClient" - }, - "method": { - "shortName": "AnnotateText", - "fullName": "google.cloud.language.v2.LanguageService.AnnotateText", - "service": { - "shortName": "LanguageService", - "fullName": "google.cloud.language.v2.LanguageService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-licensemanager/samples/generated/v1/snippet_metadata_google.cloud.licensemanager.v1.json b/packages/google-cloud-licensemanager/samples/generated/v1/snippet_metadata_google.cloud.licensemanager.v1.json deleted file mode 100644 index 1bada8727c26..000000000000 --- a/packages/google-cloud-licensemanager/samples/generated/v1/snippet_metadata_google.cloud.licensemanager.v1.json +++ /dev/null @@ -1,647 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-licensemanager", - "version": "0.1.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.licensemanager.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "licensemanager_v1_generated_LicenseManager_ListConfigurations_async", - "title": "LicenseManager listConfigurations Sample", - "origin": "API_DEFINITION", - "description": " Lists Configurations in a given project and location.", - "canonical": true, - "file": "license_manager.list_configurations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListConfigurations", - "fullName": "google.cloud.licensemanager.v1.LicenseManager.ListConfigurations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.licensemanager.v1.ListConfigurationsResponse", - "client": { - "shortName": "LicenseManagerClient", - "fullName": "google.cloud.licensemanager.v1.LicenseManagerClient" - }, - "method": { - "shortName": "ListConfigurations", - "fullName": "google.cloud.licensemanager.v1.LicenseManager.ListConfigurations", - "service": { - "shortName": "LicenseManager", - "fullName": "google.cloud.licensemanager.v1.LicenseManager" - } - } - } - }, - { - "regionTag": "licensemanager_v1_generated_LicenseManager_GetConfiguration_async", - "title": "LicenseManager getConfiguration Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Configuration.", - "canonical": true, - "file": "license_manager.get_configuration.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetConfiguration", - "fullName": "google.cloud.licensemanager.v1.LicenseManager.GetConfiguration", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.licensemanager.v1.Configuration", - "client": { - "shortName": "LicenseManagerClient", - "fullName": "google.cloud.licensemanager.v1.LicenseManagerClient" - }, - "method": { - "shortName": "GetConfiguration", - "fullName": "google.cloud.licensemanager.v1.LicenseManager.GetConfiguration", - "service": { - "shortName": "LicenseManager", - "fullName": "google.cloud.licensemanager.v1.LicenseManager" - } - } - } - }, - { - "regionTag": "licensemanager_v1_generated_LicenseManager_CreateConfiguration_async", - "title": "LicenseManager createConfiguration Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Configuration in a given project and location.", - "canonical": true, - "file": "license_manager.create_configuration.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateConfiguration", - "fullName": "google.cloud.licensemanager.v1.LicenseManager.CreateConfiguration", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "configuration_id", - "type": "TYPE_STRING" - }, - { - "name": "configuration", - "type": ".google.cloud.licensemanager.v1.Configuration" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "LicenseManagerClient", - "fullName": "google.cloud.licensemanager.v1.LicenseManagerClient" - }, - "method": { - "shortName": "CreateConfiguration", - "fullName": "google.cloud.licensemanager.v1.LicenseManager.CreateConfiguration", - "service": { - "shortName": "LicenseManager", - "fullName": "google.cloud.licensemanager.v1.LicenseManager" - } - } - } - }, - { - "regionTag": "licensemanager_v1_generated_LicenseManager_UpdateConfiguration_async", - "title": "LicenseManager updateConfiguration Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Configuration.", - "canonical": true, - "file": "license_manager.update_configuration.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateConfiguration", - "fullName": "google.cloud.licensemanager.v1.LicenseManager.UpdateConfiguration", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "configuration", - "type": ".google.cloud.licensemanager.v1.Configuration" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "LicenseManagerClient", - "fullName": "google.cloud.licensemanager.v1.LicenseManagerClient" - }, - "method": { - "shortName": "UpdateConfiguration", - "fullName": "google.cloud.licensemanager.v1.LicenseManager.UpdateConfiguration", - "service": { - "shortName": "LicenseManager", - "fullName": "google.cloud.licensemanager.v1.LicenseManager" - } - } - } - }, - { - "regionTag": "licensemanager_v1_generated_LicenseManager_DeleteConfiguration_async", - "title": "LicenseManager deleteConfiguration Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Configuration.", - "canonical": true, - "file": "license_manager.delete_configuration.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteConfiguration", - "fullName": "google.cloud.licensemanager.v1.LicenseManager.DeleteConfiguration", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "LicenseManagerClient", - "fullName": "google.cloud.licensemanager.v1.LicenseManagerClient" - }, - "method": { - "shortName": "DeleteConfiguration", - "fullName": "google.cloud.licensemanager.v1.LicenseManager.DeleteConfiguration", - "service": { - "shortName": "LicenseManager", - "fullName": "google.cloud.licensemanager.v1.LicenseManager" - } - } - } - }, - { - "regionTag": "licensemanager_v1_generated_LicenseManager_ListInstances_async", - "title": "LicenseManager listInstances Sample", - "origin": "API_DEFINITION", - "description": " Lists Instances in a given project and location.", - "canonical": true, - "file": "license_manager.list_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListInstances", - "fullName": "google.cloud.licensemanager.v1.LicenseManager.ListInstances", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.licensemanager.v1.ListInstancesResponse", - "client": { - "shortName": "LicenseManagerClient", - "fullName": "google.cloud.licensemanager.v1.LicenseManagerClient" - }, - "method": { - "shortName": "ListInstances", - "fullName": "google.cloud.licensemanager.v1.LicenseManager.ListInstances", - "service": { - "shortName": "LicenseManager", - "fullName": "google.cloud.licensemanager.v1.LicenseManager" - } - } - } - }, - { - "regionTag": "licensemanager_v1_generated_LicenseManager_GetInstance_async", - "title": "LicenseManager getInstance Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Instance.", - "canonical": true, - "file": "license_manager.get_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetInstance", - "fullName": "google.cloud.licensemanager.v1.LicenseManager.GetInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.licensemanager.v1.Instance", - "client": { - "shortName": "LicenseManagerClient", - "fullName": "google.cloud.licensemanager.v1.LicenseManagerClient" - }, - "method": { - "shortName": "GetInstance", - "fullName": "google.cloud.licensemanager.v1.LicenseManager.GetInstance", - "service": { - "shortName": "LicenseManager", - "fullName": "google.cloud.licensemanager.v1.LicenseManager" - } - } - } - }, - { - "regionTag": "licensemanager_v1_generated_LicenseManager_DeactivateConfiguration_async", - "title": "LicenseManager deactivateConfiguration Sample", - "origin": "API_DEFINITION", - "description": " Deactivates the given configuration.", - "canonical": true, - "file": "license_manager.deactivate_configuration.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeactivateConfiguration", - "fullName": "google.cloud.licensemanager.v1.LicenseManager.DeactivateConfiguration", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "LicenseManagerClient", - "fullName": "google.cloud.licensemanager.v1.LicenseManagerClient" - }, - "method": { - "shortName": "DeactivateConfiguration", - "fullName": "google.cloud.licensemanager.v1.LicenseManager.DeactivateConfiguration", - "service": { - "shortName": "LicenseManager", - "fullName": "google.cloud.licensemanager.v1.LicenseManager" - } - } - } - }, - { - "regionTag": "licensemanager_v1_generated_LicenseManager_ReactivateConfiguration_async", - "title": "LicenseManager reactivateConfiguration Sample", - "origin": "API_DEFINITION", - "description": " Reactivates the given configuration.", - "canonical": true, - "file": "license_manager.reactivate_configuration.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReactivateConfiguration", - "fullName": "google.cloud.licensemanager.v1.LicenseManager.ReactivateConfiguration", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "LicenseManagerClient", - "fullName": "google.cloud.licensemanager.v1.LicenseManagerClient" - }, - "method": { - "shortName": "ReactivateConfiguration", - "fullName": "google.cloud.licensemanager.v1.LicenseManager.ReactivateConfiguration", - "service": { - "shortName": "LicenseManager", - "fullName": "google.cloud.licensemanager.v1.LicenseManager" - } - } - } - }, - { - "regionTag": "licensemanager_v1_generated_LicenseManager_QueryConfigurationLicenseUsage_async", - "title": "LicenseManager queryConfigurationLicenseUsage Sample", - "origin": "API_DEFINITION", - "description": " License Usage information for a Configuration.", - "canonical": true, - "file": "license_manager.query_configuration_license_usage.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryConfigurationLicenseUsage", - "fullName": "google.cloud.licensemanager.v1.LicenseManager.QueryConfigurationLicenseUsage", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "start_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "end_time", - "type": ".google.protobuf.Timestamp" - } - ], - "resultType": ".google.cloud.licensemanager.v1.QueryConfigurationLicenseUsageResponse", - "client": { - "shortName": "LicenseManagerClient", - "fullName": "google.cloud.licensemanager.v1.LicenseManagerClient" - }, - "method": { - "shortName": "QueryConfigurationLicenseUsage", - "fullName": "google.cloud.licensemanager.v1.LicenseManager.QueryConfigurationLicenseUsage", - "service": { - "shortName": "LicenseManager", - "fullName": "google.cloud.licensemanager.v1.LicenseManager" - } - } - } - }, - { - "regionTag": "licensemanager_v1_generated_LicenseManager_AggregateUsage_async", - "title": "LicenseManager aggregateUsage Sample", - "origin": "API_DEFINITION", - "description": " Aggregates Usage per Instance for a Configuration.", - "canonical": true, - "file": "license_manager.aggregate_usage.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregateUsage", - "fullName": "google.cloud.licensemanager.v1.LicenseManager.AggregateUsage", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "start_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "end_time", - "type": ".google.protobuf.Timestamp" - } - ], - "resultType": ".google.cloud.licensemanager.v1.AggregateUsageResponse", - "client": { - "shortName": "LicenseManagerClient", - "fullName": "google.cloud.licensemanager.v1.LicenseManagerClient" - }, - "method": { - "shortName": "AggregateUsage", - "fullName": "google.cloud.licensemanager.v1.LicenseManager.AggregateUsage", - "service": { - "shortName": "LicenseManager", - "fullName": "google.cloud.licensemanager.v1.LicenseManager" - } - } - } - }, - { - "regionTag": "licensemanager_v1_generated_LicenseManager_ListProducts_async", - "title": "LicenseManager listProducts Sample", - "origin": "API_DEFINITION", - "description": " Lists Products in a given project and location.", - "canonical": true, - "file": "license_manager.list_products.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListProducts", - "fullName": "google.cloud.licensemanager.v1.LicenseManager.ListProducts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.licensemanager.v1.ListProductsResponse", - "client": { - "shortName": "LicenseManagerClient", - "fullName": "google.cloud.licensemanager.v1.LicenseManagerClient" - }, - "method": { - "shortName": "ListProducts", - "fullName": "google.cloud.licensemanager.v1.LicenseManager.ListProducts", - "service": { - "shortName": "LicenseManager", - "fullName": "google.cloud.licensemanager.v1.LicenseManager" - } - } - } - }, - { - "regionTag": "licensemanager_v1_generated_LicenseManager_GetProduct_async", - "title": "LicenseManager getProduct Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Product.", - "canonical": true, - "file": "license_manager.get_product.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetProduct", - "fullName": "google.cloud.licensemanager.v1.LicenseManager.GetProduct", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.licensemanager.v1.Product", - "client": { - "shortName": "LicenseManagerClient", - "fullName": "google.cloud.licensemanager.v1.LicenseManagerClient" - }, - "method": { - "shortName": "GetProduct", - "fullName": "google.cloud.licensemanager.v1.LicenseManager.GetProduct", - "service": { - "shortName": "LicenseManager", - "fullName": "google.cloud.licensemanager.v1.LicenseManager" - } - } - } - } - ] -} diff --git a/packages/google-cloud-lifesciences/samples/generated/v2beta/snippet_metadata_google.cloud.lifesciences.v2beta.json b/packages/google-cloud-lifesciences/samples/generated/v2beta/snippet_metadata_google.cloud.lifesciences.v2beta.json deleted file mode 100644 index 0710c5d1a402..000000000000 --- a/packages/google-cloud-lifesciences/samples/generated/v2beta/snippet_metadata_google.cloud.lifesciences.v2beta.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-lifesciences", - "version": "4.2.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.lifesciences.v2beta", - "version": "v2beta" - } - ] - }, - "snippets": [ - { - "regionTag": "lifesciences_v2beta_generated_WorkflowsServiceV2Beta_RunPipeline_async", - "title": "WorkflowsServiceV2Beta runPipeline Sample", - "origin": "API_DEFINITION", - "description": " Runs a pipeline. The returned Operation's [metadata] [google.longrunning.Operation.metadata] field will contain a [google.cloud.lifesciences.v2beta.Metadata][google.cloud.lifesciences.v2beta.Metadata] object describing the status of the pipeline execution. The [response][google.longrunning.Operation.response] field will contain a [google.cloud.lifesciences.v2beta.RunPipelineResponse][google.cloud.lifesciences.v2beta.RunPipelineResponse] object if the pipeline completes successfully. **Note:** Before you can use this method, the *Life Sciences Service Agent* must have access to your project. This is done automatically when the Cloud Life Sciences API is first enabled, but if you delete this permission you must disable and re-enable the API to grant the Life Sciences Service Agent the required permissions. Authorization requires the following [Google IAM](https://cloud.google.com/iam/) permission: * `lifesciences.workflows.run`", - "canonical": true, - "file": "workflows_service_v2_beta.run_pipeline.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RunPipeline", - "fullName": "google.cloud.lifesciences.v2beta.WorkflowsServiceV2Beta.RunPipeline", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "pipeline", - "type": ".google.cloud.lifesciences.v2beta.Pipeline" - }, - { - "name": "labels", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "pub_sub_topic", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkflowsServiceV2BetaClient", - "fullName": "google.cloud.lifesciences.v2beta.WorkflowsServiceV2BetaClient" - }, - "method": { - "shortName": "RunPipeline", - "fullName": "google.cloud.lifesciences.v2beta.WorkflowsServiceV2Beta.RunPipeline", - "service": { - "shortName": "WorkflowsServiceV2Beta", - "fullName": "google.cloud.lifesciences.v2beta.WorkflowsServiceV2Beta" - } - } - } - } - ] -} diff --git a/packages/google-cloud-locationfinder/samples/generated/v1/snippet_metadata_google.cloud.locationfinder.v1.json b/packages/google-cloud-locationfinder/samples/generated/v1/snippet_metadata_google.cloud.locationfinder.v1.json deleted file mode 100644 index f351e0659525..000000000000 --- a/packages/google-cloud-locationfinder/samples/generated/v1/snippet_metadata_google.cloud.locationfinder.v1.json +++ /dev/null @@ -1,163 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-locationfinder", - "version": "0.1.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.locationfinder.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "cloudlocationfinder_v1_generated_CloudLocationFinder_ListCloudLocations_async", - "title": "CloudLocationFinder listCloudLocations Sample", - "origin": "API_DEFINITION", - "description": " Lists cloud locations under a given project and location.", - "canonical": true, - "file": "cloud_location_finder.list_cloud_locations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCloudLocations", - "fullName": "google.cloud.locationfinder.v1.CloudLocationFinder.ListCloudLocations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.locationfinder.v1.ListCloudLocationsResponse", - "client": { - "shortName": "CloudLocationFinderClient", - "fullName": "google.cloud.locationfinder.v1.CloudLocationFinderClient" - }, - "method": { - "shortName": "ListCloudLocations", - "fullName": "google.cloud.locationfinder.v1.CloudLocationFinder.ListCloudLocations", - "service": { - "shortName": "CloudLocationFinder", - "fullName": "google.cloud.locationfinder.v1.CloudLocationFinder" - } - } - } - }, - { - "regionTag": "cloudlocationfinder_v1_generated_CloudLocationFinder_GetCloudLocation_async", - "title": "CloudLocationFinder getCloudLocation Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a resource containing information about a cloud location.", - "canonical": true, - "file": "cloud_location_finder.get_cloud_location.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCloudLocation", - "fullName": "google.cloud.locationfinder.v1.CloudLocationFinder.GetCloudLocation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.locationfinder.v1.CloudLocation", - "client": { - "shortName": "CloudLocationFinderClient", - "fullName": "google.cloud.locationfinder.v1.CloudLocationFinderClient" - }, - "method": { - "shortName": "GetCloudLocation", - "fullName": "google.cloud.locationfinder.v1.CloudLocationFinder.GetCloudLocation", - "service": { - "shortName": "CloudLocationFinder", - "fullName": "google.cloud.locationfinder.v1.CloudLocationFinder" - } - } - } - }, - { - "regionTag": "cloudlocationfinder_v1_generated_CloudLocationFinder_SearchCloudLocations_async", - "title": "CloudLocationFinder searchCloudLocations Sample", - "origin": "API_DEFINITION", - "description": " Searches for cloud locations from a given source location.", - "canonical": true, - "file": "cloud_location_finder.search_cloud_locations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchCloudLocations", - "fullName": "google.cloud.locationfinder.v1.CloudLocationFinder.SearchCloudLocations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "source_cloud_location", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.locationfinder.v1.SearchCloudLocationsResponse", - "client": { - "shortName": "CloudLocationFinderClient", - "fullName": "google.cloud.locationfinder.v1.CloudLocationFinderClient" - }, - "method": { - "shortName": "SearchCloudLocations", - "fullName": "google.cloud.locationfinder.v1.CloudLocationFinder.SearchCloudLocations", - "service": { - "shortName": "CloudLocationFinder", - "fullName": "google.cloud.locationfinder.v1.CloudLocationFinder" - } - } - } - } - ] -} diff --git a/packages/google-cloud-lustre/samples/generated/v1/snippet_metadata_google.cloud.lustre.v1.json b/packages/google-cloud-lustre/samples/generated/v1/snippet_metadata_google.cloud.lustre.v1.json deleted file mode 100644 index e6eba444f53c..000000000000 --- a/packages/google-cloud-lustre/samples/generated/v1/snippet_metadata_google.cloud.lustre.v1.json +++ /dev/null @@ -1,367 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-lustre", - "version": "0.2.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.lustre.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "lustre_v1_generated_Lustre_ListInstances_async", - "title": "Lustre listInstances Sample", - "origin": "API_DEFINITION", - "description": " Lists instances in a given project and location.", - "canonical": true, - "file": "lustre.list_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListInstances", - "fullName": "google.cloud.lustre.v1.Lustre.ListInstances", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.lustre.v1.ListInstancesResponse", - "client": { - "shortName": "LustreClient", - "fullName": "google.cloud.lustre.v1.LustreClient" - }, - "method": { - "shortName": "ListInstances", - "fullName": "google.cloud.lustre.v1.Lustre.ListInstances", - "service": { - "shortName": "Lustre", - "fullName": "google.cloud.lustre.v1.Lustre" - } - } - } - }, - { - "regionTag": "lustre_v1_generated_Lustre_GetInstance_async", - "title": "Lustre getInstance Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single instance.", - "canonical": true, - "file": "lustre.get_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetInstance", - "fullName": "google.cloud.lustre.v1.Lustre.GetInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.lustre.v1.Instance", - "client": { - "shortName": "LustreClient", - "fullName": "google.cloud.lustre.v1.LustreClient" - }, - "method": { - "shortName": "GetInstance", - "fullName": "google.cloud.lustre.v1.Lustre.GetInstance", - "service": { - "shortName": "Lustre", - "fullName": "google.cloud.lustre.v1.Lustre" - } - } - } - }, - { - "regionTag": "lustre_v1_generated_Lustre_CreateInstance_async", - "title": "Lustre createInstance Sample", - "origin": "API_DEFINITION", - "description": " Creates a new instance in a given project and location.", - "canonical": true, - "file": "lustre.create_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateInstance", - "fullName": "google.cloud.lustre.v1.Lustre.CreateInstance", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "instance_id", - "type": "TYPE_STRING" - }, - { - "name": "instance", - "type": ".google.cloud.lustre.v1.Instance" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "LustreClient", - "fullName": "google.cloud.lustre.v1.LustreClient" - }, - "method": { - "shortName": "CreateInstance", - "fullName": "google.cloud.lustre.v1.Lustre.CreateInstance", - "service": { - "shortName": "Lustre", - "fullName": "google.cloud.lustre.v1.Lustre" - } - } - } - }, - { - "regionTag": "lustre_v1_generated_Lustre_UpdateInstance_async", - "title": "Lustre updateInstance Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single instance.", - "canonical": true, - "file": "lustre.update_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateInstance", - "fullName": "google.cloud.lustre.v1.Lustre.UpdateInstance", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "instance", - "type": ".google.cloud.lustre.v1.Instance" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "LustreClient", - "fullName": "google.cloud.lustre.v1.LustreClient" - }, - "method": { - "shortName": "UpdateInstance", - "fullName": "google.cloud.lustre.v1.Lustre.UpdateInstance", - "service": { - "shortName": "Lustre", - "fullName": "google.cloud.lustre.v1.Lustre" - } - } - } - }, - { - "regionTag": "lustre_v1_generated_Lustre_DeleteInstance_async", - "title": "Lustre deleteInstance Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single instance.", - "canonical": true, - "file": "lustre.delete_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteInstance", - "fullName": "google.cloud.lustre.v1.Lustre.DeleteInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "LustreClient", - "fullName": "google.cloud.lustre.v1.LustreClient" - }, - "method": { - "shortName": "DeleteInstance", - "fullName": "google.cloud.lustre.v1.Lustre.DeleteInstance", - "service": { - "shortName": "Lustre", - "fullName": "google.cloud.lustre.v1.Lustre" - } - } - } - }, - { - "regionTag": "lustre_v1_generated_Lustre_ImportData_async", - "title": "Lustre importData Sample", - "origin": "API_DEFINITION", - "description": " Imports data from Cloud Storage to a Managed Lustre instance.", - "canonical": true, - "file": "lustre.import_data.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportData", - "fullName": "google.cloud.lustre.v1.Lustre.ImportData", - "async": true, - "parameters": [ - { - "name": "gcs_path", - "type": ".google.cloud.lustre.v1.GcsPath" - }, - { - "name": "lustre_path", - "type": ".google.cloud.lustre.v1.LustrePath" - }, - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "service_account", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "LustreClient", - "fullName": "google.cloud.lustre.v1.LustreClient" - }, - "method": { - "shortName": "ImportData", - "fullName": "google.cloud.lustre.v1.Lustre.ImportData", - "service": { - "shortName": "Lustre", - "fullName": "google.cloud.lustre.v1.Lustre" - } - } - } - }, - { - "regionTag": "lustre_v1_generated_Lustre_ExportData_async", - "title": "Lustre exportData Sample", - "origin": "API_DEFINITION", - "description": " Exports data from a Managed Lustre instance to Cloud Storage.", - "canonical": true, - "file": "lustre.export_data.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportData", - "fullName": "google.cloud.lustre.v1.Lustre.ExportData", - "async": true, - "parameters": [ - { - "name": "lustre_path", - "type": ".google.cloud.lustre.v1.LustrePath" - }, - { - "name": "gcs_path", - "type": ".google.cloud.lustre.v1.GcsPath" - }, - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "service_account", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "LustreClient", - "fullName": "google.cloud.lustre.v1.LustreClient" - }, - "method": { - "shortName": "ExportData", - "fullName": "google.cloud.lustre.v1.Lustre.ExportData", - "service": { - "shortName": "Lustre", - "fullName": "google.cloud.lustre.v1.Lustre" - } - } - } - } - ] -} diff --git a/packages/google-cloud-maintenance-api/samples/generated/v1/snippet_metadata_google.cloud.maintenance.api.v1.json b/packages/google-cloud-maintenance-api/samples/generated/v1/snippet_metadata_google.cloud.maintenance.api.v1.json deleted file mode 100644 index a6ae51bb2188..000000000000 --- a/packages/google-cloud-maintenance-api/samples/generated/v1/snippet_metadata_google.cloud.maintenance.api.v1.json +++ /dev/null @@ -1,167 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-api", - "version": "0.4.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.maintenance.api.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "maintenance_v1_generated_Maintenance_SummarizeMaintenances_async", - "title": "Maintenance summarizeMaintenances Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the statistics of a specific maintenance.", - "canonical": true, - "file": "maintenance.summarize_maintenances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SummarizeMaintenances", - "fullName": "google.cloud.maintenance.api.v1.Maintenance.SummarizeMaintenances", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.maintenance.api.v1.SummarizeMaintenancesResponse", - "client": { - "shortName": "MaintenanceClient", - "fullName": "google.cloud.maintenance.api.v1.MaintenanceClient" - }, - "method": { - "shortName": "SummarizeMaintenances", - "fullName": "google.cloud.maintenance.api.v1.Maintenance.SummarizeMaintenances", - "service": { - "shortName": "Maintenance", - "fullName": "google.cloud.maintenance.api.v1.Maintenance" - } - } - } - }, - { - "regionTag": "maintenance_v1_generated_Maintenance_ListResourceMaintenances_async", - "title": "Maintenance listResourceMaintenances Sample", - "origin": "API_DEFINITION", - "description": " Retrieve a collection of resource maintenances.", - "canonical": true, - "file": "maintenance.list_resource_maintenances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListResourceMaintenances", - "fullName": "google.cloud.maintenance.api.v1.Maintenance.ListResourceMaintenances", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.maintenance.api.v1.ListResourceMaintenancesResponse", - "client": { - "shortName": "MaintenanceClient", - "fullName": "google.cloud.maintenance.api.v1.MaintenanceClient" - }, - "method": { - "shortName": "ListResourceMaintenances", - "fullName": "google.cloud.maintenance.api.v1.Maintenance.ListResourceMaintenances", - "service": { - "shortName": "Maintenance", - "fullName": "google.cloud.maintenance.api.v1.Maintenance" - } - } - } - }, - { - "regionTag": "maintenance_v1_generated_Maintenance_GetResourceMaintenance_async", - "title": "Maintenance getResourceMaintenance Sample", - "origin": "API_DEFINITION", - "description": " Retrieve a single resource maintenance.", - "canonical": true, - "file": "maintenance.get_resource_maintenance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetResourceMaintenance", - "fullName": "google.cloud.maintenance.api.v1.Maintenance.GetResourceMaintenance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.maintenance.api.v1.ResourceMaintenance", - "client": { - "shortName": "MaintenanceClient", - "fullName": "google.cloud.maintenance.api.v1.MaintenanceClient" - }, - "method": { - "shortName": "GetResourceMaintenance", - "fullName": "google.cloud.maintenance.api.v1.Maintenance.GetResourceMaintenance", - "service": { - "shortName": "Maintenance", - "fullName": "google.cloud.maintenance.api.v1.Maintenance" - } - } - } - } - ] -} diff --git a/packages/google-cloud-maintenance-api/samples/generated/v1beta/snippet_metadata_google.cloud.maintenance.api.v1beta.json b/packages/google-cloud-maintenance-api/samples/generated/v1beta/snippet_metadata_google.cloud.maintenance.api.v1beta.json deleted file mode 100644 index 09a3391ffeb2..000000000000 --- a/packages/google-cloud-maintenance-api/samples/generated/v1beta/snippet_metadata_google.cloud.maintenance.api.v1beta.json +++ /dev/null @@ -1,167 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-api", - "version": "0.4.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.maintenance.api.v1beta", - "version": "v1beta" - } - ] - }, - "snippets": [ - { - "regionTag": "maintenance_v1beta_generated_Maintenance_SummarizeMaintenances_async", - "title": "Maintenance summarizeMaintenances Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the statistics of a specific maintenance.", - "canonical": true, - "file": "maintenance.summarize_maintenances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 90, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SummarizeMaintenances", - "fullName": "google.cloud.maintenance.api.v1beta.Maintenance.SummarizeMaintenances", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.maintenance.api.v1beta.SummarizeMaintenancesResponse", - "client": { - "shortName": "MaintenanceClient", - "fullName": "google.cloud.maintenance.api.v1beta.MaintenanceClient" - }, - "method": { - "shortName": "SummarizeMaintenances", - "fullName": "google.cloud.maintenance.api.v1beta.Maintenance.SummarizeMaintenances", - "service": { - "shortName": "Maintenance", - "fullName": "google.cloud.maintenance.api.v1beta.Maintenance" - } - } - } - }, - { - "regionTag": "maintenance_v1beta_generated_Maintenance_ListResourceMaintenances_async", - "title": "Maintenance listResourceMaintenances Sample", - "origin": "API_DEFINITION", - "description": " Retrieve a collection of resource maintenances.", - "canonical": true, - "file": "maintenance.list_resource_maintenances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListResourceMaintenances", - "fullName": "google.cloud.maintenance.api.v1beta.Maintenance.ListResourceMaintenances", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.maintenance.api.v1beta.ListResourceMaintenancesResponse", - "client": { - "shortName": "MaintenanceClient", - "fullName": "google.cloud.maintenance.api.v1beta.MaintenanceClient" - }, - "method": { - "shortName": "ListResourceMaintenances", - "fullName": "google.cloud.maintenance.api.v1beta.Maintenance.ListResourceMaintenances", - "service": { - "shortName": "Maintenance", - "fullName": "google.cloud.maintenance.api.v1beta.Maintenance" - } - } - } - }, - { - "regionTag": "maintenance_v1beta_generated_Maintenance_GetResourceMaintenance_async", - "title": "Maintenance getResourceMaintenance Sample", - "origin": "API_DEFINITION", - "description": " Retrieve a single resource maintenance.", - "canonical": true, - "file": "maintenance.get_resource_maintenance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetResourceMaintenance", - "fullName": "google.cloud.maintenance.api.v1beta.Maintenance.GetResourceMaintenance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.maintenance.api.v1beta.ResourceMaintenance", - "client": { - "shortName": "MaintenanceClient", - "fullName": "google.cloud.maintenance.api.v1beta.MaintenanceClient" - }, - "method": { - "shortName": "GetResourceMaintenance", - "fullName": "google.cloud.maintenance.api.v1beta.Maintenance.GetResourceMaintenance", - "service": { - "shortName": "Maintenance", - "fullName": "google.cloud.maintenance.api.v1beta.Maintenance" - } - } - } - } - ] -} diff --git a/packages/google-cloud-managedidentities/samples/generated/v1/snippet_metadata_google.cloud.managedidentities.v1.json b/packages/google-cloud-managedidentities/samples/generated/v1/snippet_metadata_google.cloud.managedidentities.v1.json deleted file mode 100644 index a5950798ef1e..000000000000 --- a/packages/google-cloud-managedidentities/samples/generated/v1/snippet_metadata_google.cloud.managedidentities.v1.json +++ /dev/null @@ -1,463 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-managedidentities", - "version": "4.2.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.managedidentities.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "managedidentities_v1_generated_ManagedIdentitiesService_CreateMicrosoftAdDomain_async", - "title": "ManagedIdentitiesService createMicrosoftAdDomain Sample", - "origin": "API_DEFINITION", - "description": " Creates a Microsoft AD domain.", - "canonical": true, - "file": "managed_identities_service.create_microsoft_ad_domain.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateMicrosoftAdDomain", - "fullName": "google.cloud.managedidentities.v1.ManagedIdentitiesService.CreateMicrosoftAdDomain", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "domain_name", - "type": "TYPE_STRING" - }, - { - "name": "domain", - "type": ".google.cloud.managedidentities.v1.Domain" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ManagedIdentitiesServiceClient", - "fullName": "google.cloud.managedidentities.v1.ManagedIdentitiesServiceClient" - }, - "method": { - "shortName": "CreateMicrosoftAdDomain", - "fullName": "google.cloud.managedidentities.v1.ManagedIdentitiesService.CreateMicrosoftAdDomain", - "service": { - "shortName": "ManagedIdentitiesService", - "fullName": "google.cloud.managedidentities.v1.ManagedIdentitiesService" - } - } - } - }, - { - "regionTag": "managedidentities_v1_generated_ManagedIdentitiesService_ResetAdminPassword_async", - "title": "ManagedIdentitiesService resetAdminPassword Sample", - "origin": "API_DEFINITION", - "description": " Resets a domain's administrator password.", - "canonical": true, - "file": "managed_identities_service.reset_admin_password.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResetAdminPassword", - "fullName": "google.cloud.managedidentities.v1.ManagedIdentitiesService.ResetAdminPassword", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.managedidentities.v1.ResetAdminPasswordResponse", - "client": { - "shortName": "ManagedIdentitiesServiceClient", - "fullName": "google.cloud.managedidentities.v1.ManagedIdentitiesServiceClient" - }, - "method": { - "shortName": "ResetAdminPassword", - "fullName": "google.cloud.managedidentities.v1.ManagedIdentitiesService.ResetAdminPassword", - "service": { - "shortName": "ManagedIdentitiesService", - "fullName": "google.cloud.managedidentities.v1.ManagedIdentitiesService" - } - } - } - }, - { - "regionTag": "managedidentities_v1_generated_ManagedIdentitiesService_ListDomains_async", - "title": "ManagedIdentitiesService listDomains Sample", - "origin": "API_DEFINITION", - "description": " Lists domains in a project.", - "canonical": true, - "file": "managed_identities_service.list_domains.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDomains", - "fullName": "google.cloud.managedidentities.v1.ManagedIdentitiesService.ListDomains", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.managedidentities.v1.ListDomainsResponse", - "client": { - "shortName": "ManagedIdentitiesServiceClient", - "fullName": "google.cloud.managedidentities.v1.ManagedIdentitiesServiceClient" - }, - "method": { - "shortName": "ListDomains", - "fullName": "google.cloud.managedidentities.v1.ManagedIdentitiesService.ListDomains", - "service": { - "shortName": "ManagedIdentitiesService", - "fullName": "google.cloud.managedidentities.v1.ManagedIdentitiesService" - } - } - } - }, - { - "regionTag": "managedidentities_v1_generated_ManagedIdentitiesService_GetDomain_async", - "title": "ManagedIdentitiesService getDomain Sample", - "origin": "API_DEFINITION", - "description": " Gets information about a domain.", - "canonical": true, - "file": "managed_identities_service.get_domain.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDomain", - "fullName": "google.cloud.managedidentities.v1.ManagedIdentitiesService.GetDomain", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.managedidentities.v1.Domain", - "client": { - "shortName": "ManagedIdentitiesServiceClient", - "fullName": "google.cloud.managedidentities.v1.ManagedIdentitiesServiceClient" - }, - "method": { - "shortName": "GetDomain", - "fullName": "google.cloud.managedidentities.v1.ManagedIdentitiesService.GetDomain", - "service": { - "shortName": "ManagedIdentitiesService", - "fullName": "google.cloud.managedidentities.v1.ManagedIdentitiesService" - } - } - } - }, - { - "regionTag": "managedidentities_v1_generated_ManagedIdentitiesService_UpdateDomain_async", - "title": "ManagedIdentitiesService updateDomain Sample", - "origin": "API_DEFINITION", - "description": " Updates the metadata and configuration of a domain.", - "canonical": true, - "file": "managed_identities_service.update_domain.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDomain", - "fullName": "google.cloud.managedidentities.v1.ManagedIdentitiesService.UpdateDomain", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "domain", - "type": ".google.cloud.managedidentities.v1.Domain" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ManagedIdentitiesServiceClient", - "fullName": "google.cloud.managedidentities.v1.ManagedIdentitiesServiceClient" - }, - "method": { - "shortName": "UpdateDomain", - "fullName": "google.cloud.managedidentities.v1.ManagedIdentitiesService.UpdateDomain", - "service": { - "shortName": "ManagedIdentitiesService", - "fullName": "google.cloud.managedidentities.v1.ManagedIdentitiesService" - } - } - } - }, - { - "regionTag": "managedidentities_v1_generated_ManagedIdentitiesService_DeleteDomain_async", - "title": "ManagedIdentitiesService deleteDomain Sample", - "origin": "API_DEFINITION", - "description": " Deletes a domain.", - "canonical": true, - "file": "managed_identities_service.delete_domain.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDomain", - "fullName": "google.cloud.managedidentities.v1.ManagedIdentitiesService.DeleteDomain", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ManagedIdentitiesServiceClient", - "fullName": "google.cloud.managedidentities.v1.ManagedIdentitiesServiceClient" - }, - "method": { - "shortName": "DeleteDomain", - "fullName": "google.cloud.managedidentities.v1.ManagedIdentitiesService.DeleteDomain", - "service": { - "shortName": "ManagedIdentitiesService", - "fullName": "google.cloud.managedidentities.v1.ManagedIdentitiesService" - } - } - } - }, - { - "regionTag": "managedidentities_v1_generated_ManagedIdentitiesService_AttachTrust_async", - "title": "ManagedIdentitiesService attachTrust Sample", - "origin": "API_DEFINITION", - "description": " Adds an AD trust to a domain.", - "canonical": true, - "file": "managed_identities_service.attach_trust.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AttachTrust", - "fullName": "google.cloud.managedidentities.v1.ManagedIdentitiesService.AttachTrust", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "trust", - "type": ".google.cloud.managedidentities.v1.Trust" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ManagedIdentitiesServiceClient", - "fullName": "google.cloud.managedidentities.v1.ManagedIdentitiesServiceClient" - }, - "method": { - "shortName": "AttachTrust", - "fullName": "google.cloud.managedidentities.v1.ManagedIdentitiesService.AttachTrust", - "service": { - "shortName": "ManagedIdentitiesService", - "fullName": "google.cloud.managedidentities.v1.ManagedIdentitiesService" - } - } - } - }, - { - "regionTag": "managedidentities_v1_generated_ManagedIdentitiesService_ReconfigureTrust_async", - "title": "ManagedIdentitiesService reconfigureTrust Sample", - "origin": "API_DEFINITION", - "description": " Updates the DNS conditional forwarder.", - "canonical": true, - "file": "managed_identities_service.reconfigure_trust.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReconfigureTrust", - "fullName": "google.cloud.managedidentities.v1.ManagedIdentitiesService.ReconfigureTrust", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "target_domain_name", - "type": "TYPE_STRING" - }, - { - "name": "target_dns_ip_addresses", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ManagedIdentitiesServiceClient", - "fullName": "google.cloud.managedidentities.v1.ManagedIdentitiesServiceClient" - }, - "method": { - "shortName": "ReconfigureTrust", - "fullName": "google.cloud.managedidentities.v1.ManagedIdentitiesService.ReconfigureTrust", - "service": { - "shortName": "ManagedIdentitiesService", - "fullName": "google.cloud.managedidentities.v1.ManagedIdentitiesService" - } - } - } - }, - { - "regionTag": "managedidentities_v1_generated_ManagedIdentitiesService_DetachTrust_async", - "title": "ManagedIdentitiesService detachTrust Sample", - "origin": "API_DEFINITION", - "description": " Removes an AD trust.", - "canonical": true, - "file": "managed_identities_service.detach_trust.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DetachTrust", - "fullName": "google.cloud.managedidentities.v1.ManagedIdentitiesService.DetachTrust", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "trust", - "type": ".google.cloud.managedidentities.v1.Trust" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ManagedIdentitiesServiceClient", - "fullName": "google.cloud.managedidentities.v1.ManagedIdentitiesServiceClient" - }, - "method": { - "shortName": "DetachTrust", - "fullName": "google.cloud.managedidentities.v1.ManagedIdentitiesService.DetachTrust", - "service": { - "shortName": "ManagedIdentitiesService", - "fullName": "google.cloud.managedidentities.v1.ManagedIdentitiesService" - } - } - } - }, - { - "regionTag": "managedidentities_v1_generated_ManagedIdentitiesService_ValidateTrust_async", - "title": "ManagedIdentitiesService validateTrust Sample", - "origin": "API_DEFINITION", - "description": " Validates a trust state, that the target domain is reachable, and that the target domain is able to accept incoming trust requests.", - "canonical": true, - "file": "managed_identities_service.validate_trust.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ValidateTrust", - "fullName": "google.cloud.managedidentities.v1.ManagedIdentitiesService.ValidateTrust", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "trust", - "type": ".google.cloud.managedidentities.v1.Trust" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ManagedIdentitiesServiceClient", - "fullName": "google.cloud.managedidentities.v1.ManagedIdentitiesServiceClient" - }, - "method": { - "shortName": "ValidateTrust", - "fullName": "google.cloud.managedidentities.v1.ManagedIdentitiesService.ValidateTrust", - "service": { - "shortName": "ManagedIdentitiesService", - "fullName": "google.cloud.managedidentities.v1.ManagedIdentitiesService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-managedidentities/samples/generated/v1beta1/snippet_metadata_google.cloud.managedidentities.v1beta1.json b/packages/google-cloud-managedidentities/samples/generated/v1beta1/snippet_metadata_google.cloud.managedidentities.v1beta1.json deleted file mode 100644 index bbe4e47fae56..000000000000 --- a/packages/google-cloud-managedidentities/samples/generated/v1beta1/snippet_metadata_google.cloud.managedidentities.v1beta1.json +++ /dev/null @@ -1,463 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-managedidentities", - "version": "4.2.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.managedidentities.v1beta1", - "version": "v1beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "managedidentities_v1beta1_generated_ManagedIdentitiesService_CreateMicrosoftAdDomain_async", - "title": "ManagedIdentitiesService createMicrosoftAdDomain Sample", - "origin": "API_DEFINITION", - "description": " Creates a Microsoft AD domain.", - "canonical": true, - "file": "managed_identities_service.create_microsoft_ad_domain.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateMicrosoftAdDomain", - "fullName": "google.cloud.managedidentities.v1beta1.ManagedIdentitiesService.CreateMicrosoftAdDomain", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "domain_name", - "type": "TYPE_STRING" - }, - { - "name": "domain", - "type": ".google.cloud.managedidentities.v1beta1.Domain" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ManagedIdentitiesServiceClient", - "fullName": "google.cloud.managedidentities.v1beta1.ManagedIdentitiesServiceClient" - }, - "method": { - "shortName": "CreateMicrosoftAdDomain", - "fullName": "google.cloud.managedidentities.v1beta1.ManagedIdentitiesService.CreateMicrosoftAdDomain", - "service": { - "shortName": "ManagedIdentitiesService", - "fullName": "google.cloud.managedidentities.v1beta1.ManagedIdentitiesService" - } - } - } - }, - { - "regionTag": "managedidentities_v1beta1_generated_ManagedIdentitiesService_ResetAdminPassword_async", - "title": "ManagedIdentitiesService resetAdminPassword Sample", - "origin": "API_DEFINITION", - "description": " Resets a domain's administrator password.", - "canonical": true, - "file": "managed_identities_service.reset_admin_password.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResetAdminPassword", - "fullName": "google.cloud.managedidentities.v1beta1.ManagedIdentitiesService.ResetAdminPassword", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.managedidentities.v1beta1.ResetAdminPasswordResponse", - "client": { - "shortName": "ManagedIdentitiesServiceClient", - "fullName": "google.cloud.managedidentities.v1beta1.ManagedIdentitiesServiceClient" - }, - "method": { - "shortName": "ResetAdminPassword", - "fullName": "google.cloud.managedidentities.v1beta1.ManagedIdentitiesService.ResetAdminPassword", - "service": { - "shortName": "ManagedIdentitiesService", - "fullName": "google.cloud.managedidentities.v1beta1.ManagedIdentitiesService" - } - } - } - }, - { - "regionTag": "managedidentities_v1beta1_generated_ManagedIdentitiesService_ListDomains_async", - "title": "ManagedIdentitiesService listDomains Sample", - "origin": "API_DEFINITION", - "description": " Lists domains in a project.", - "canonical": true, - "file": "managed_identities_service.list_domains.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDomains", - "fullName": "google.cloud.managedidentities.v1beta1.ManagedIdentitiesService.ListDomains", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.managedidentities.v1beta1.ListDomainsResponse", - "client": { - "shortName": "ManagedIdentitiesServiceClient", - "fullName": "google.cloud.managedidentities.v1beta1.ManagedIdentitiesServiceClient" - }, - "method": { - "shortName": "ListDomains", - "fullName": "google.cloud.managedidentities.v1beta1.ManagedIdentitiesService.ListDomains", - "service": { - "shortName": "ManagedIdentitiesService", - "fullName": "google.cloud.managedidentities.v1beta1.ManagedIdentitiesService" - } - } - } - }, - { - "regionTag": "managedidentities_v1beta1_generated_ManagedIdentitiesService_GetDomain_async", - "title": "ManagedIdentitiesService getDomain Sample", - "origin": "API_DEFINITION", - "description": " Gets information about a domain.", - "canonical": true, - "file": "managed_identities_service.get_domain.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDomain", - "fullName": "google.cloud.managedidentities.v1beta1.ManagedIdentitiesService.GetDomain", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.managedidentities.v1beta1.Domain", - "client": { - "shortName": "ManagedIdentitiesServiceClient", - "fullName": "google.cloud.managedidentities.v1beta1.ManagedIdentitiesServiceClient" - }, - "method": { - "shortName": "GetDomain", - "fullName": "google.cloud.managedidentities.v1beta1.ManagedIdentitiesService.GetDomain", - "service": { - "shortName": "ManagedIdentitiesService", - "fullName": "google.cloud.managedidentities.v1beta1.ManagedIdentitiesService" - } - } - } - }, - { - "regionTag": "managedidentities_v1beta1_generated_ManagedIdentitiesService_UpdateDomain_async", - "title": "ManagedIdentitiesService updateDomain Sample", - "origin": "API_DEFINITION", - "description": " Updates the metadata and configuration of a domain.", - "canonical": true, - "file": "managed_identities_service.update_domain.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDomain", - "fullName": "google.cloud.managedidentities.v1beta1.ManagedIdentitiesService.UpdateDomain", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "domain", - "type": ".google.cloud.managedidentities.v1beta1.Domain" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ManagedIdentitiesServiceClient", - "fullName": "google.cloud.managedidentities.v1beta1.ManagedIdentitiesServiceClient" - }, - "method": { - "shortName": "UpdateDomain", - "fullName": "google.cloud.managedidentities.v1beta1.ManagedIdentitiesService.UpdateDomain", - "service": { - "shortName": "ManagedIdentitiesService", - "fullName": "google.cloud.managedidentities.v1beta1.ManagedIdentitiesService" - } - } - } - }, - { - "regionTag": "managedidentities_v1beta1_generated_ManagedIdentitiesService_DeleteDomain_async", - "title": "ManagedIdentitiesService deleteDomain Sample", - "origin": "API_DEFINITION", - "description": " Deletes a domain.", - "canonical": true, - "file": "managed_identities_service.delete_domain.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDomain", - "fullName": "google.cloud.managedidentities.v1beta1.ManagedIdentitiesService.DeleteDomain", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ManagedIdentitiesServiceClient", - "fullName": "google.cloud.managedidentities.v1beta1.ManagedIdentitiesServiceClient" - }, - "method": { - "shortName": "DeleteDomain", - "fullName": "google.cloud.managedidentities.v1beta1.ManagedIdentitiesService.DeleteDomain", - "service": { - "shortName": "ManagedIdentitiesService", - "fullName": "google.cloud.managedidentities.v1beta1.ManagedIdentitiesService" - } - } - } - }, - { - "regionTag": "managedidentities_v1beta1_generated_ManagedIdentitiesService_AttachTrust_async", - "title": "ManagedIdentitiesService attachTrust Sample", - "origin": "API_DEFINITION", - "description": " Adds an AD trust to a domain.", - "canonical": true, - "file": "managed_identities_service.attach_trust.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AttachTrust", - "fullName": "google.cloud.managedidentities.v1beta1.ManagedIdentitiesService.AttachTrust", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "trust", - "type": ".google.cloud.managedidentities.v1beta1.Trust" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ManagedIdentitiesServiceClient", - "fullName": "google.cloud.managedidentities.v1beta1.ManagedIdentitiesServiceClient" - }, - "method": { - "shortName": "AttachTrust", - "fullName": "google.cloud.managedidentities.v1beta1.ManagedIdentitiesService.AttachTrust", - "service": { - "shortName": "ManagedIdentitiesService", - "fullName": "google.cloud.managedidentities.v1beta1.ManagedIdentitiesService" - } - } - } - }, - { - "regionTag": "managedidentities_v1beta1_generated_ManagedIdentitiesService_ReconfigureTrust_async", - "title": "ManagedIdentitiesService reconfigureTrust Sample", - "origin": "API_DEFINITION", - "description": " Updates the DNS conditional forwarder.", - "canonical": true, - "file": "managed_identities_service.reconfigure_trust.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReconfigureTrust", - "fullName": "google.cloud.managedidentities.v1beta1.ManagedIdentitiesService.ReconfigureTrust", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "target_domain_name", - "type": "TYPE_STRING" - }, - { - "name": "target_dns_ip_addresses", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ManagedIdentitiesServiceClient", - "fullName": "google.cloud.managedidentities.v1beta1.ManagedIdentitiesServiceClient" - }, - "method": { - "shortName": "ReconfigureTrust", - "fullName": "google.cloud.managedidentities.v1beta1.ManagedIdentitiesService.ReconfigureTrust", - "service": { - "shortName": "ManagedIdentitiesService", - "fullName": "google.cloud.managedidentities.v1beta1.ManagedIdentitiesService" - } - } - } - }, - { - "regionTag": "managedidentities_v1beta1_generated_ManagedIdentitiesService_DetachTrust_async", - "title": "ManagedIdentitiesService detachTrust Sample", - "origin": "API_DEFINITION", - "description": " Removes an AD trust.", - "canonical": true, - "file": "managed_identities_service.detach_trust.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DetachTrust", - "fullName": "google.cloud.managedidentities.v1beta1.ManagedIdentitiesService.DetachTrust", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "trust", - "type": ".google.cloud.managedidentities.v1beta1.Trust" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ManagedIdentitiesServiceClient", - "fullName": "google.cloud.managedidentities.v1beta1.ManagedIdentitiesServiceClient" - }, - "method": { - "shortName": "DetachTrust", - "fullName": "google.cloud.managedidentities.v1beta1.ManagedIdentitiesService.DetachTrust", - "service": { - "shortName": "ManagedIdentitiesService", - "fullName": "google.cloud.managedidentities.v1beta1.ManagedIdentitiesService" - } - } - } - }, - { - "regionTag": "managedidentities_v1beta1_generated_ManagedIdentitiesService_ValidateTrust_async", - "title": "ManagedIdentitiesService validateTrust Sample", - "origin": "API_DEFINITION", - "description": " Validates a trust state, that the target domain is reachable, and that the target domain is able to accept incoming trust requests.", - "canonical": true, - "file": "managed_identities_service.validate_trust.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ValidateTrust", - "fullName": "google.cloud.managedidentities.v1beta1.ManagedIdentitiesService.ValidateTrust", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "trust", - "type": ".google.cloud.managedidentities.v1beta1.Trust" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ManagedIdentitiesServiceClient", - "fullName": "google.cloud.managedidentities.v1beta1.ManagedIdentitiesServiceClient" - }, - "method": { - "shortName": "ValidateTrust", - "fullName": "google.cloud.managedidentities.v1beta1.ManagedIdentitiesService.ValidateTrust", - "service": { - "shortName": "ManagedIdentitiesService", - "fullName": "google.cloud.managedidentities.v1beta1.ManagedIdentitiesService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-managedkafka-schemaregistry/samples/generated/v1/snippet_metadata_google.cloud.managedkafka.schemaregistry.v1.json b/packages/google-cloud-managedkafka-schemaregistry/samples/generated/v1/snippet_metadata_google.cloud.managedkafka.schemaregistry.v1.json deleted file mode 100644 index 15b52da87035..000000000000 --- a/packages/google-cloud-managedkafka-schemaregistry/samples/generated/v1/snippet_metadata_google.cloud.managedkafka.schemaregistry.v1.json +++ /dev/null @@ -1,1231 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-schemaregistry", - "version": "0.1.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.managedkafka.schemaregistry.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "managedkafka_v1_generated_ManagedSchemaRegistry_GetSchemaRegistry_async", - "title": "ManagedSchemaRegistry getSchemaRegistry Sample", - "origin": "API_DEFINITION", - "description": " Get the schema registry instance.", - "canonical": true, - "file": "managed_schema_registry.get_schema_registry.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSchemaRegistry", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry.GetSchemaRegistry", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.managedkafka.schemaregistry.v1.SchemaRegistry", - "client": { - "shortName": "ManagedSchemaRegistryClient", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistryClient" - }, - "method": { - "shortName": "GetSchemaRegistry", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry.GetSchemaRegistry", - "service": { - "shortName": "ManagedSchemaRegistry", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry" - } - } - } - }, - { - "regionTag": "managedkafka_v1_generated_ManagedSchemaRegistry_ListSchemaRegistries_async", - "title": "ManagedSchemaRegistry listSchemaRegistries Sample", - "origin": "API_DEFINITION", - "description": " List schema registries.", - "canonical": true, - "file": "managed_schema_registry.list_schema_registries.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSchemaRegistries", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry.ListSchemaRegistries", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.managedkafka.schemaregistry.v1.ListSchemaRegistriesResponse", - "client": { - "shortName": "ManagedSchemaRegistryClient", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistryClient" - }, - "method": { - "shortName": "ListSchemaRegistries", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry.ListSchemaRegistries", - "service": { - "shortName": "ManagedSchemaRegistry", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry" - } - } - } - }, - { - "regionTag": "managedkafka_v1_generated_ManagedSchemaRegistry_CreateSchemaRegistry_async", - "title": "ManagedSchemaRegistry createSchemaRegistry Sample", - "origin": "API_DEFINITION", - "description": " Create a schema registry instance.", - "canonical": true, - "file": "managed_schema_registry.create_schema_registry.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSchemaRegistry", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry.CreateSchemaRegistry", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "schema_registry_id", - "type": "TYPE_STRING" - }, - { - "name": "schema_registry", - "type": ".google.cloud.managedkafka.schemaregistry.v1.SchemaRegistry" - } - ], - "resultType": ".google.cloud.managedkafka.schemaregistry.v1.SchemaRegistry", - "client": { - "shortName": "ManagedSchemaRegistryClient", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistryClient" - }, - "method": { - "shortName": "CreateSchemaRegistry", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry.CreateSchemaRegistry", - "service": { - "shortName": "ManagedSchemaRegistry", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry" - } - } - } - }, - { - "regionTag": "managedkafka_v1_generated_ManagedSchemaRegistry_DeleteSchemaRegistry_async", - "title": "ManagedSchemaRegistry deleteSchemaRegistry Sample", - "origin": "API_DEFINITION", - "description": " Delete a schema registry instance.", - "canonical": true, - "file": "managed_schema_registry.delete_schema_registry.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSchemaRegistry", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry.DeleteSchemaRegistry", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ManagedSchemaRegistryClient", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistryClient" - }, - "method": { - "shortName": "DeleteSchemaRegistry", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry.DeleteSchemaRegistry", - "service": { - "shortName": "ManagedSchemaRegistry", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry" - } - } - } - }, - { - "regionTag": "managedkafka_v1_generated_ManagedSchemaRegistry_GetContext_async", - "title": "ManagedSchemaRegistry getContext Sample", - "origin": "API_DEFINITION", - "description": " Get the context.", - "canonical": true, - "file": "managed_schema_registry.get_context.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetContext", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry.GetContext", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.managedkafka.schemaregistry.v1.Context", - "client": { - "shortName": "ManagedSchemaRegistryClient", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistryClient" - }, - "method": { - "shortName": "GetContext", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry.GetContext", - "service": { - "shortName": "ManagedSchemaRegistry", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry" - } - } - } - }, - { - "regionTag": "managedkafka_v1_generated_ManagedSchemaRegistry_ListContexts_async", - "title": "ManagedSchemaRegistry listContexts Sample", - "origin": "API_DEFINITION", - "description": " List contexts for a schema registry.", - "canonical": true, - "file": "managed_schema_registry.list_contexts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListContexts", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry.ListContexts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.api.HttpBody", - "client": { - "shortName": "ManagedSchemaRegistryClient", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistryClient" - }, - "method": { - "shortName": "ListContexts", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry.ListContexts", - "service": { - "shortName": "ManagedSchemaRegistry", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry" - } - } - } - }, - { - "regionTag": "managedkafka_v1_generated_ManagedSchemaRegistry_GetSchema_async", - "title": "ManagedSchemaRegistry getSchema Sample", - "origin": "API_DEFINITION", - "description": " Get the schema for the given schema id.", - "canonical": true, - "file": "managed_schema_registry.get_schema.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSchema", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry.GetSchema", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "subject", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.managedkafka.schemaregistry.v1.Schema", - "client": { - "shortName": "ManagedSchemaRegistryClient", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistryClient" - }, - "method": { - "shortName": "GetSchema", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry.GetSchema", - "service": { - "shortName": "ManagedSchemaRegistry", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry" - } - } - } - }, - { - "regionTag": "managedkafka_v1_generated_ManagedSchemaRegistry_GetRawSchema_async", - "title": "ManagedSchemaRegistry getRawSchema Sample", - "origin": "API_DEFINITION", - "description": " Get the schema string for the given schema id. The response will be the schema string.", - "canonical": true, - "file": "managed_schema_registry.get_raw_schema.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRawSchema", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry.GetRawSchema", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "subject", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.api.HttpBody", - "client": { - "shortName": "ManagedSchemaRegistryClient", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistryClient" - }, - "method": { - "shortName": "GetRawSchema", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry.GetRawSchema", - "service": { - "shortName": "ManagedSchemaRegistry", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry" - } - } - } - }, - { - "regionTag": "managedkafka_v1_generated_ManagedSchemaRegistry_ListSchemaVersions_async", - "title": "ManagedSchemaRegistry listSchemaVersions Sample", - "origin": "API_DEFINITION", - "description": " List the schema versions for the given schema id. The response will be an array of subject-version pairs as: [{\"subject\":\"subject1\", \"version\":1}, {\"subject\":\"subject2\", \"version\":2}].", - "canonical": true, - "file": "managed_schema_registry.list_schema_versions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSchemaVersions", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry.ListSchemaVersions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "subject", - "type": "TYPE_STRING" - }, - { - "name": "deleted", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.api.HttpBody", - "client": { - "shortName": "ManagedSchemaRegistryClient", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistryClient" - }, - "method": { - "shortName": "ListSchemaVersions", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry.ListSchemaVersions", - "service": { - "shortName": "ManagedSchemaRegistry", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry" - } - } - } - }, - { - "regionTag": "managedkafka_v1_generated_ManagedSchemaRegistry_ListSchemaTypes_async", - "title": "ManagedSchemaRegistry listSchemaTypes Sample", - "origin": "API_DEFINITION", - "description": " List the supported schema types. The response will be an array of schema types.", - "canonical": true, - "file": "managed_schema_registry.list_schema_types.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSchemaTypes", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry.ListSchemaTypes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.api.HttpBody", - "client": { - "shortName": "ManagedSchemaRegistryClient", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistryClient" - }, - "method": { - "shortName": "ListSchemaTypes", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry.ListSchemaTypes", - "service": { - "shortName": "ManagedSchemaRegistry", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry" - } - } - } - }, - { - "regionTag": "managedkafka_v1_generated_ManagedSchemaRegistry_ListSubjects_async", - "title": "ManagedSchemaRegistry listSubjects Sample", - "origin": "API_DEFINITION", - "description": " List subjects in the schema registry. The response will be an array of subject names.", - "canonical": true, - "file": "managed_schema_registry.list_subjects.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSubjects", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry.ListSubjects", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "subject_prefix", - "type": "TYPE_STRING" - }, - { - "name": "deleted", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.api.HttpBody", - "client": { - "shortName": "ManagedSchemaRegistryClient", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistryClient" - }, - "method": { - "shortName": "ListSubjects", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry.ListSubjects", - "service": { - "shortName": "ManagedSchemaRegistry", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry" - } - } - } - }, - { - "regionTag": "managedkafka_v1_generated_ManagedSchemaRegistry_ListSubjectsBySchemaId_async", - "title": "ManagedSchemaRegistry listSubjectsBySchemaId Sample", - "origin": "API_DEFINITION", - "description": " List subjects which reference a particular schema id. The response will be an array of subject names.", - "canonical": true, - "file": "managed_schema_registry.list_subjects_by_schema_id.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSubjectsBySchemaId", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry.ListSubjectsBySchemaId", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "subject", - "type": "TYPE_STRING" - }, - { - "name": "deleted", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.api.HttpBody", - "client": { - "shortName": "ManagedSchemaRegistryClient", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistryClient" - }, - "method": { - "shortName": "ListSubjectsBySchemaId", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry.ListSubjectsBySchemaId", - "service": { - "shortName": "ManagedSchemaRegistry", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry" - } - } - } - }, - { - "regionTag": "managedkafka_v1_generated_ManagedSchemaRegistry_DeleteSubject_async", - "title": "ManagedSchemaRegistry deleteSubject Sample", - "origin": "API_DEFINITION", - "description": " Delete a subject. The response will be an array of versions of the deleted subject.", - "canonical": true, - "file": "managed_schema_registry.delete_subject.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSubject", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry.DeleteSubject", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "permanent", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.api.HttpBody", - "client": { - "shortName": "ManagedSchemaRegistryClient", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistryClient" - }, - "method": { - "shortName": "DeleteSubject", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry.DeleteSubject", - "service": { - "shortName": "ManagedSchemaRegistry", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry" - } - } - } - }, - { - "regionTag": "managedkafka_v1_generated_ManagedSchemaRegistry_LookupVersion_async", - "title": "ManagedSchemaRegistry lookupVersion Sample", - "origin": "API_DEFINITION", - "description": " Lookup a schema under the specified subject.", - "canonical": true, - "file": "managed_schema_registry.lookup_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "LookupVersion", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry.LookupVersion", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "schema_type", - "type": ".google.cloud.managedkafka.schemaregistry.v1.Schema.SchemaType" - }, - { - "name": "schema", - "type": "TYPE_STRING" - }, - { - "name": "references", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "normalize", - "type": "TYPE_BOOL" - }, - { - "name": "deleted", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.managedkafka.schemaregistry.v1.SchemaVersion", - "client": { - "shortName": "ManagedSchemaRegistryClient", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistryClient" - }, - "method": { - "shortName": "LookupVersion", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry.LookupVersion", - "service": { - "shortName": "ManagedSchemaRegistry", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry" - } - } - } - }, - { - "regionTag": "managedkafka_v1_generated_ManagedSchemaRegistry_GetVersion_async", - "title": "ManagedSchemaRegistry getVersion Sample", - "origin": "API_DEFINITION", - "description": " Get a versioned schema (schema with subject/version) of a subject.", - "canonical": true, - "file": "managed_schema_registry.get_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetVersion", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry.GetVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "deleted", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.managedkafka.schemaregistry.v1.SchemaVersion", - "client": { - "shortName": "ManagedSchemaRegistryClient", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistryClient" - }, - "method": { - "shortName": "GetVersion", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry.GetVersion", - "service": { - "shortName": "ManagedSchemaRegistry", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry" - } - } - } - }, - { - "regionTag": "managedkafka_v1_generated_ManagedSchemaRegistry_GetRawSchemaVersion_async", - "title": "ManagedSchemaRegistry getRawSchemaVersion Sample", - "origin": "API_DEFINITION", - "description": " Get the schema string only for a version of a subject. The response will be the schema string.", - "canonical": true, - "file": "managed_schema_registry.get_raw_schema_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRawSchemaVersion", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry.GetRawSchemaVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "deleted", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.api.HttpBody", - "client": { - "shortName": "ManagedSchemaRegistryClient", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistryClient" - }, - "method": { - "shortName": "GetRawSchemaVersion", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry.GetRawSchemaVersion", - "service": { - "shortName": "ManagedSchemaRegistry", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry" - } - } - } - }, - { - "regionTag": "managedkafka_v1_generated_ManagedSchemaRegistry_ListVersions_async", - "title": "ManagedSchemaRegistry listVersions Sample", - "origin": "API_DEFINITION", - "description": " Get all versions of a subject. The response will be an array of versions of the subject.", - "canonical": true, - "file": "managed_schema_registry.list_versions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListVersions", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry.ListVersions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "deleted", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.api.HttpBody", - "client": { - "shortName": "ManagedSchemaRegistryClient", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistryClient" - }, - "method": { - "shortName": "ListVersions", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry.ListVersions", - "service": { - "shortName": "ManagedSchemaRegistry", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry" - } - } - } - }, - { - "regionTag": "managedkafka_v1_generated_ManagedSchemaRegistry_CreateVersion_async", - "title": "ManagedSchemaRegistry createVersion Sample", - "origin": "API_DEFINITION", - "description": " Register a new version under a given subject with the given schema.", - "canonical": true, - "file": "managed_schema_registry.create_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 88, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateVersion", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry.CreateVersion", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "version", - "type": "TYPE_INT32" - }, - { - "name": "id", - "type": "TYPE_INT32" - }, - { - "name": "schema_type", - "type": ".google.cloud.managedkafka.schemaregistry.v1.Schema.SchemaType" - }, - { - "name": "schema", - "type": "TYPE_STRING" - }, - { - "name": "references", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "normalize", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.managedkafka.schemaregistry.v1.CreateVersionResponse", - "client": { - "shortName": "ManagedSchemaRegistryClient", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistryClient" - }, - "method": { - "shortName": "CreateVersion", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry.CreateVersion", - "service": { - "shortName": "ManagedSchemaRegistry", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry" - } - } - } - }, - { - "regionTag": "managedkafka_v1_generated_ManagedSchemaRegistry_DeleteVersion_async", - "title": "ManagedSchemaRegistry deleteVersion Sample", - "origin": "API_DEFINITION", - "description": " Delete a version of a subject. The response will be the deleted version id.", - "canonical": true, - "file": "managed_schema_registry.delete_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteVersion", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry.DeleteVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "permanent", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.api.HttpBody", - "client": { - "shortName": "ManagedSchemaRegistryClient", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistryClient" - }, - "method": { - "shortName": "DeleteVersion", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry.DeleteVersion", - "service": { - "shortName": "ManagedSchemaRegistry", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry" - } - } - } - }, - { - "regionTag": "managedkafka_v1_generated_ManagedSchemaRegistry_ListReferencedSchemas_async", - "title": "ManagedSchemaRegistry listReferencedSchemas Sample", - "origin": "API_DEFINITION", - "description": " Get a list of IDs of schemas that reference the schema with the given subject and version.", - "canonical": true, - "file": "managed_schema_registry.list_referenced_schemas.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListReferencedSchemas", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry.ListReferencedSchemas", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.api.HttpBody", - "client": { - "shortName": "ManagedSchemaRegistryClient", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistryClient" - }, - "method": { - "shortName": "ListReferencedSchemas", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry.ListReferencedSchemas", - "service": { - "shortName": "ManagedSchemaRegistry", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry" - } - } - } - }, - { - "regionTag": "managedkafka_v1_generated_ManagedSchemaRegistry_CheckCompatibility_async", - "title": "ManagedSchemaRegistry checkCompatibility Sample", - "origin": "API_DEFINITION", - "description": " Check compatibility of a schema with all versions or a specific version of a subject.", - "canonical": true, - "file": "managed_schema_registry.check_compatibility.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CheckCompatibility", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry.CheckCompatibility", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "schema_type", - "type": ".google.cloud.managedkafka.schemaregistry.v1.Schema.SchemaType" - }, - { - "name": "schema", - "type": "TYPE_STRING" - }, - { - "name": "references", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "verbose", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.managedkafka.schemaregistry.v1.CheckCompatibilityResponse", - "client": { - "shortName": "ManagedSchemaRegistryClient", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistryClient" - }, - "method": { - "shortName": "CheckCompatibility", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry.CheckCompatibility", - "service": { - "shortName": "ManagedSchemaRegistry", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry" - } - } - } - }, - { - "regionTag": "managedkafka_v1_generated_ManagedSchemaRegistry_GetSchemaConfig_async", - "title": "ManagedSchemaRegistry getSchemaConfig Sample", - "origin": "API_DEFINITION", - "description": " Get schema config at global level or for a subject.", - "canonical": true, - "file": "managed_schema_registry.get_schema_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSchemaConfig", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry.GetSchemaConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "default_to_global", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.managedkafka.schemaregistry.v1.SchemaConfig", - "client": { - "shortName": "ManagedSchemaRegistryClient", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistryClient" - }, - "method": { - "shortName": "GetSchemaConfig", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry.GetSchemaConfig", - "service": { - "shortName": "ManagedSchemaRegistry", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry" - } - } - } - }, - { - "regionTag": "managedkafka_v1_generated_ManagedSchemaRegistry_UpdateSchemaConfig_async", - "title": "ManagedSchemaRegistry updateSchemaConfig Sample", - "origin": "API_DEFINITION", - "description": " Update config at global level or for a subject. Creates a SchemaSubject-level SchemaConfig if it does not exist.", - "canonical": true, - "file": "managed_schema_registry.update_schema_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSchemaConfig", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry.UpdateSchemaConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "compatibility", - "type": ".google.cloud.managedkafka.schemaregistry.v1.SchemaConfig.CompatibilityType" - }, - { - "name": "normalize", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.managedkafka.schemaregistry.v1.SchemaConfig", - "client": { - "shortName": "ManagedSchemaRegistryClient", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistryClient" - }, - "method": { - "shortName": "UpdateSchemaConfig", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry.UpdateSchemaConfig", - "service": { - "shortName": "ManagedSchemaRegistry", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry" - } - } - } - }, - { - "regionTag": "managedkafka_v1_generated_ManagedSchemaRegistry_DeleteSchemaConfig_async", - "title": "ManagedSchemaRegistry deleteSchemaConfig Sample", - "origin": "API_DEFINITION", - "description": " Delete schema config for a subject.", - "canonical": true, - "file": "managed_schema_registry.delete_schema_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSchemaConfig", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry.DeleteSchemaConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.managedkafka.schemaregistry.v1.SchemaConfig", - "client": { - "shortName": "ManagedSchemaRegistryClient", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistryClient" - }, - "method": { - "shortName": "DeleteSchemaConfig", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry.DeleteSchemaConfig", - "service": { - "shortName": "ManagedSchemaRegistry", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry" - } - } - } - }, - { - "regionTag": "managedkafka_v1_generated_ManagedSchemaRegistry_GetSchemaMode_async", - "title": "ManagedSchemaRegistry getSchemaMode Sample", - "origin": "API_DEFINITION", - "description": " Get mode at global level or for a subject.", - "canonical": true, - "file": "managed_schema_registry.get_schema_mode.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSchemaMode", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry.GetSchemaMode", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.managedkafka.schemaregistry.v1.SchemaMode", - "client": { - "shortName": "ManagedSchemaRegistryClient", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistryClient" - }, - "method": { - "shortName": "GetSchemaMode", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry.GetSchemaMode", - "service": { - "shortName": "ManagedSchemaRegistry", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry" - } - } - } - }, - { - "regionTag": "managedkafka_v1_generated_ManagedSchemaRegistry_UpdateSchemaMode_async", - "title": "ManagedSchemaRegistry updateSchemaMode Sample", - "origin": "API_DEFINITION", - "description": " Update mode at global level or for a subject.", - "canonical": true, - "file": "managed_schema_registry.update_schema_mode.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSchemaMode", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry.UpdateSchemaMode", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "mode", - "type": ".google.cloud.managedkafka.schemaregistry.v1.SchemaMode.ModeType" - } - ], - "resultType": ".google.cloud.managedkafka.schemaregistry.v1.SchemaMode", - "client": { - "shortName": "ManagedSchemaRegistryClient", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistryClient" - }, - "method": { - "shortName": "UpdateSchemaMode", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry.UpdateSchemaMode", - "service": { - "shortName": "ManagedSchemaRegistry", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry" - } - } - } - }, - { - "regionTag": "managedkafka_v1_generated_ManagedSchemaRegistry_DeleteSchemaMode_async", - "title": "ManagedSchemaRegistry deleteSchemaMode Sample", - "origin": "API_DEFINITION", - "description": " Delete schema mode for a subject.", - "canonical": true, - "file": "managed_schema_registry.delete_schema_mode.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSchemaMode", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry.DeleteSchemaMode", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.managedkafka.schemaregistry.v1.SchemaMode", - "client": { - "shortName": "ManagedSchemaRegistryClient", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistryClient" - }, - "method": { - "shortName": "DeleteSchemaMode", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry.DeleteSchemaMode", - "service": { - "shortName": "ManagedSchemaRegistry", - "fullName": "google.cloud.managedkafka.schemaregistry.v1.ManagedSchemaRegistry" - } - } - } - } - ] -} diff --git a/packages/google-cloud-managedkafka/samples/generated/v1/snippet_metadata_google.cloud.managedkafka.v1.json b/packages/google-cloud-managedkafka/samples/generated/v1/snippet_metadata_google.cloud.managedkafka.v1.json deleted file mode 100644 index 6461bd94e0a4..000000000000 --- a/packages/google-cloud-managedkafka/samples/generated/v1/snippet_metadata_google.cloud.managedkafka.v1.json +++ /dev/null @@ -1,1575 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-managedkafka", - "version": "0.8.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.managedkafka.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "managedkafka_v1_generated_ManagedKafka_ListClusters_async", - "title": "ManagedKafka listClusters Sample", - "origin": "API_DEFINITION", - "description": " Lists the clusters in a given project and location.", - "canonical": true, - "file": "managed_kafka.list_clusters.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListClusters", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka.ListClusters", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.managedkafka.v1.ListClustersResponse", - "client": { - "shortName": "ManagedKafkaClient", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaClient" - }, - "method": { - "shortName": "ListClusters", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka.ListClusters", - "service": { - "shortName": "ManagedKafka", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka" - } - } - } - }, - { - "regionTag": "managedkafka_v1_generated_ManagedKafka_GetCluster_async", - "title": "ManagedKafka getCluster Sample", - "origin": "API_DEFINITION", - "description": " Returns the properties of a single cluster.", - "canonical": true, - "file": "managed_kafka.get_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCluster", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka.GetCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.managedkafka.v1.Cluster", - "client": { - "shortName": "ManagedKafkaClient", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaClient" - }, - "method": { - "shortName": "GetCluster", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka.GetCluster", - "service": { - "shortName": "ManagedKafka", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka" - } - } - } - }, - { - "regionTag": "managedkafka_v1_generated_ManagedKafka_CreateCluster_async", - "title": "ManagedKafka createCluster Sample", - "origin": "API_DEFINITION", - "description": " Creates a new cluster in a given project and location.", - "canonical": true, - "file": "managed_kafka.create_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCluster", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka.CreateCluster", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "cluster", - "type": ".google.cloud.managedkafka.v1.Cluster" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ManagedKafkaClient", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaClient" - }, - "method": { - "shortName": "CreateCluster", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka.CreateCluster", - "service": { - "shortName": "ManagedKafka", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka" - } - } - } - }, - { - "regionTag": "managedkafka_v1_generated_ManagedKafka_UpdateCluster_async", - "title": "ManagedKafka updateCluster Sample", - "origin": "API_DEFINITION", - "description": " Updates the properties of a single cluster.", - "canonical": true, - "file": "managed_kafka.update_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCluster", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka.UpdateCluster", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "cluster", - "type": ".google.cloud.managedkafka.v1.Cluster" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ManagedKafkaClient", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaClient" - }, - "method": { - "shortName": "UpdateCluster", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka.UpdateCluster", - "service": { - "shortName": "ManagedKafka", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka" - } - } - } - }, - { - "regionTag": "managedkafka_v1_generated_ManagedKafka_DeleteCluster_async", - "title": "ManagedKafka deleteCluster Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single cluster.", - "canonical": true, - "file": "managed_kafka.delete_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCluster", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka.DeleteCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ManagedKafkaClient", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaClient" - }, - "method": { - "shortName": "DeleteCluster", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka.DeleteCluster", - "service": { - "shortName": "ManagedKafka", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka" - } - } - } - }, - { - "regionTag": "managedkafka_v1_generated_ManagedKafka_ListTopics_async", - "title": "ManagedKafka listTopics Sample", - "origin": "API_DEFINITION", - "description": " Lists the topics in a given cluster.", - "canonical": true, - "file": "managed_kafka.list_topics.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTopics", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka.ListTopics", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.managedkafka.v1.ListTopicsResponse", - "client": { - "shortName": "ManagedKafkaClient", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaClient" - }, - "method": { - "shortName": "ListTopics", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka.ListTopics", - "service": { - "shortName": "ManagedKafka", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka" - } - } - } - }, - { - "regionTag": "managedkafka_v1_generated_ManagedKafka_GetTopic_async", - "title": "ManagedKafka getTopic Sample", - "origin": "API_DEFINITION", - "description": " Returns the properties of a single topic.", - "canonical": true, - "file": "managed_kafka.get_topic.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTopic", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka.GetTopic", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.managedkafka.v1.Topic", - "client": { - "shortName": "ManagedKafkaClient", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaClient" - }, - "method": { - "shortName": "GetTopic", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka.GetTopic", - "service": { - "shortName": "ManagedKafka", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka" - } - } - } - }, - { - "regionTag": "managedkafka_v1_generated_ManagedKafka_CreateTopic_async", - "title": "ManagedKafka createTopic Sample", - "origin": "API_DEFINITION", - "description": " Creates a new topic in a given project and location.", - "canonical": true, - "file": "managed_kafka.create_topic.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTopic", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka.CreateTopic", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "topic_id", - "type": "TYPE_STRING" - }, - { - "name": "topic", - "type": ".google.cloud.managedkafka.v1.Topic" - } - ], - "resultType": ".google.cloud.managedkafka.v1.Topic", - "client": { - "shortName": "ManagedKafkaClient", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaClient" - }, - "method": { - "shortName": "CreateTopic", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka.CreateTopic", - "service": { - "shortName": "ManagedKafka", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka" - } - } - } - }, - { - "regionTag": "managedkafka_v1_generated_ManagedKafka_UpdateTopic_async", - "title": "ManagedKafka updateTopic Sample", - "origin": "API_DEFINITION", - "description": " Updates the properties of a single topic.", - "canonical": true, - "file": "managed_kafka.update_topic.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTopic", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka.UpdateTopic", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "topic", - "type": ".google.cloud.managedkafka.v1.Topic" - } - ], - "resultType": ".google.cloud.managedkafka.v1.Topic", - "client": { - "shortName": "ManagedKafkaClient", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaClient" - }, - "method": { - "shortName": "UpdateTopic", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka.UpdateTopic", - "service": { - "shortName": "ManagedKafka", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka" - } - } - } - }, - { - "regionTag": "managedkafka_v1_generated_ManagedKafka_DeleteTopic_async", - "title": "ManagedKafka deleteTopic Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single topic.", - "canonical": true, - "file": "managed_kafka.delete_topic.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTopic", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka.DeleteTopic", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ManagedKafkaClient", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaClient" - }, - "method": { - "shortName": "DeleteTopic", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka.DeleteTopic", - "service": { - "shortName": "ManagedKafka", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka" - } - } - } - }, - { - "regionTag": "managedkafka_v1_generated_ManagedKafka_ListConsumerGroups_async", - "title": "ManagedKafka listConsumerGroups Sample", - "origin": "API_DEFINITION", - "description": " Lists the consumer groups in a given cluster.", - "canonical": true, - "file": "managed_kafka.list_consumer_groups.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListConsumerGroups", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka.ListConsumerGroups", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.managedkafka.v1.ListConsumerGroupsResponse", - "client": { - "shortName": "ManagedKafkaClient", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaClient" - }, - "method": { - "shortName": "ListConsumerGroups", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka.ListConsumerGroups", - "service": { - "shortName": "ManagedKafka", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka" - } - } - } - }, - { - "regionTag": "managedkafka_v1_generated_ManagedKafka_GetConsumerGroup_async", - "title": "ManagedKafka getConsumerGroup Sample", - "origin": "API_DEFINITION", - "description": " Returns the properties of a single consumer group.", - "canonical": true, - "file": "managed_kafka.get_consumer_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetConsumerGroup", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka.GetConsumerGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.managedkafka.v1.ConsumerGroup", - "client": { - "shortName": "ManagedKafkaClient", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaClient" - }, - "method": { - "shortName": "GetConsumerGroup", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka.GetConsumerGroup", - "service": { - "shortName": "ManagedKafka", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka" - } - } - } - }, - { - "regionTag": "managedkafka_v1_generated_ManagedKafka_UpdateConsumerGroup_async", - "title": "ManagedKafka updateConsumerGroup Sample", - "origin": "API_DEFINITION", - "description": " Updates the properties of a single consumer group.", - "canonical": true, - "file": "managed_kafka.update_consumer_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateConsumerGroup", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka.UpdateConsumerGroup", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "consumer_group", - "type": ".google.cloud.managedkafka.v1.ConsumerGroup" - } - ], - "resultType": ".google.cloud.managedkafka.v1.ConsumerGroup", - "client": { - "shortName": "ManagedKafkaClient", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaClient" - }, - "method": { - "shortName": "UpdateConsumerGroup", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka.UpdateConsumerGroup", - "service": { - "shortName": "ManagedKafka", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka" - } - } - } - }, - { - "regionTag": "managedkafka_v1_generated_ManagedKafka_DeleteConsumerGroup_async", - "title": "ManagedKafka deleteConsumerGroup Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single consumer group.", - "canonical": true, - "file": "managed_kafka.delete_consumer_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteConsumerGroup", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka.DeleteConsumerGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ManagedKafkaClient", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaClient" - }, - "method": { - "shortName": "DeleteConsumerGroup", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka.DeleteConsumerGroup", - "service": { - "shortName": "ManagedKafka", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka" - } - } - } - }, - { - "regionTag": "managedkafka_v1_generated_ManagedKafka_ListAcls_async", - "title": "ManagedKafka listAcls Sample", - "origin": "API_DEFINITION", - "description": " Lists the acls in a given cluster.", - "canonical": true, - "file": "managed_kafka.list_acls.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAcls", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka.ListAcls", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.managedkafka.v1.ListAclsResponse", - "client": { - "shortName": "ManagedKafkaClient", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaClient" - }, - "method": { - "shortName": "ListAcls", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka.ListAcls", - "service": { - "shortName": "ManagedKafka", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka" - } - } - } - }, - { - "regionTag": "managedkafka_v1_generated_ManagedKafka_GetAcl_async", - "title": "ManagedKafka getAcl Sample", - "origin": "API_DEFINITION", - "description": " Returns the properties of a single acl.", - "canonical": true, - "file": "managed_kafka.get_acl.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAcl", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka.GetAcl", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.managedkafka.v1.Acl", - "client": { - "shortName": "ManagedKafkaClient", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaClient" - }, - "method": { - "shortName": "GetAcl", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka.GetAcl", - "service": { - "shortName": "ManagedKafka", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka" - } - } - } - }, - { - "regionTag": "managedkafka_v1_generated_ManagedKafka_CreateAcl_async", - "title": "ManagedKafka createAcl Sample", - "origin": "API_DEFINITION", - "description": " Creates a new acl in the given project, location, and cluster.", - "canonical": true, - "file": "managed_kafka.create_acl.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAcl", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka.CreateAcl", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "acl_id", - "type": "TYPE_STRING" - }, - { - "name": "acl", - "type": ".google.cloud.managedkafka.v1.Acl" - } - ], - "resultType": ".google.cloud.managedkafka.v1.Acl", - "client": { - "shortName": "ManagedKafkaClient", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaClient" - }, - "method": { - "shortName": "CreateAcl", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka.CreateAcl", - "service": { - "shortName": "ManagedKafka", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka" - } - } - } - }, - { - "regionTag": "managedkafka_v1_generated_ManagedKafka_UpdateAcl_async", - "title": "ManagedKafka updateAcl Sample", - "origin": "API_DEFINITION", - "description": " Updates the properties of a single acl.", - "canonical": true, - "file": "managed_kafka.update_acl.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAcl", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka.UpdateAcl", - "async": true, - "parameters": [ - { - "name": "acl", - "type": ".google.cloud.managedkafka.v1.Acl" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.managedkafka.v1.Acl", - "client": { - "shortName": "ManagedKafkaClient", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaClient" - }, - "method": { - "shortName": "UpdateAcl", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka.UpdateAcl", - "service": { - "shortName": "ManagedKafka", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka" - } - } - } - }, - { - "regionTag": "managedkafka_v1_generated_ManagedKafka_DeleteAcl_async", - "title": "ManagedKafka deleteAcl Sample", - "origin": "API_DEFINITION", - "description": " Deletes an acl.", - "canonical": true, - "file": "managed_kafka.delete_acl.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAcl", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka.DeleteAcl", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ManagedKafkaClient", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaClient" - }, - "method": { - "shortName": "DeleteAcl", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka.DeleteAcl", - "service": { - "shortName": "ManagedKafka", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka" - } - } - } - }, - { - "regionTag": "managedkafka_v1_generated_ManagedKafka_AddAclEntry_async", - "title": "ManagedKafka addAclEntry Sample", - "origin": "API_DEFINITION", - "description": " Incremental update: Adds an acl entry to an acl. Creates the acl if it does not exist yet.", - "canonical": true, - "file": "managed_kafka.add_acl_entry.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddAclEntry", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka.AddAclEntry", - "async": true, - "parameters": [ - { - "name": "acl", - "type": "TYPE_STRING" - }, - { - "name": "acl_entry", - "type": ".google.cloud.managedkafka.v1.AclEntry" - } - ], - "resultType": ".google.cloud.managedkafka.v1.AddAclEntryResponse", - "client": { - "shortName": "ManagedKafkaClient", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaClient" - }, - "method": { - "shortName": "AddAclEntry", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka.AddAclEntry", - "service": { - "shortName": "ManagedKafka", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka" - } - } - } - }, - { - "regionTag": "managedkafka_v1_generated_ManagedKafka_RemoveAclEntry_async", - "title": "ManagedKafka removeAclEntry Sample", - "origin": "API_DEFINITION", - "description": " Incremental update: Removes an acl entry from an acl. Deletes the acl if its acl entries become empty (i.e. if the removed entry was the last one in the acl).", - "canonical": true, - "file": "managed_kafka.remove_acl_entry.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveAclEntry", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka.RemoveAclEntry", - "async": true, - "parameters": [ - { - "name": "acl", - "type": "TYPE_STRING" - }, - { - "name": "acl_entry", - "type": ".google.cloud.managedkafka.v1.AclEntry" - } - ], - "resultType": ".google.cloud.managedkafka.v1.RemoveAclEntryResponse", - "client": { - "shortName": "ManagedKafkaClient", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaClient" - }, - "method": { - "shortName": "RemoveAclEntry", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka.RemoveAclEntry", - "service": { - "shortName": "ManagedKafka", - "fullName": "google.cloud.managedkafka.v1.ManagedKafka" - } - } - } - }, - { - "regionTag": "managedkafka_v1_generated_ManagedKafkaConnect_ListConnectClusters_async", - "title": "ManagedKafka listConnectClusters Sample", - "origin": "API_DEFINITION", - "description": " Lists the Kafka Connect clusters in a given project and location.", - "canonical": true, - "file": "managed_kafka_connect.list_connect_clusters.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListConnectClusters", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaConnect.ListConnectClusters", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.managedkafka.v1.ListConnectClustersResponse", - "client": { - "shortName": "ManagedKafkaConnectClient", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaConnectClient" - }, - "method": { - "shortName": "ListConnectClusters", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaConnect.ListConnectClusters", - "service": { - "shortName": "ManagedKafkaConnect", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaConnect" - } - } - } - }, - { - "regionTag": "managedkafka_v1_generated_ManagedKafkaConnect_GetConnectCluster_async", - "title": "ManagedKafka getConnectCluster Sample", - "origin": "API_DEFINITION", - "description": " Returns the properties of a single Kafka Connect cluster.", - "canonical": true, - "file": "managed_kafka_connect.get_connect_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetConnectCluster", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaConnect.GetConnectCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.managedkafka.v1.ConnectCluster", - "client": { - "shortName": "ManagedKafkaConnectClient", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaConnectClient" - }, - "method": { - "shortName": "GetConnectCluster", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaConnect.GetConnectCluster", - "service": { - "shortName": "ManagedKafkaConnect", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaConnect" - } - } - } - }, - { - "regionTag": "managedkafka_v1_generated_ManagedKafkaConnect_CreateConnectCluster_async", - "title": "ManagedKafka createConnectCluster Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Kafka Connect cluster in a given project and location.", - "canonical": true, - "file": "managed_kafka_connect.create_connect_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateConnectCluster", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaConnect.CreateConnectCluster", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "connect_cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "connect_cluster", - "type": ".google.cloud.managedkafka.v1.ConnectCluster" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ManagedKafkaConnectClient", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaConnectClient" - }, - "method": { - "shortName": "CreateConnectCluster", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaConnect.CreateConnectCluster", - "service": { - "shortName": "ManagedKafkaConnect", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaConnect" - } - } - } - }, - { - "regionTag": "managedkafka_v1_generated_ManagedKafkaConnect_UpdateConnectCluster_async", - "title": "ManagedKafka updateConnectCluster Sample", - "origin": "API_DEFINITION", - "description": " Updates the properties of a single Kafka Connect cluster.", - "canonical": true, - "file": "managed_kafka_connect.update_connect_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateConnectCluster", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaConnect.UpdateConnectCluster", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "connect_cluster", - "type": ".google.cloud.managedkafka.v1.ConnectCluster" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ManagedKafkaConnectClient", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaConnectClient" - }, - "method": { - "shortName": "UpdateConnectCluster", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaConnect.UpdateConnectCluster", - "service": { - "shortName": "ManagedKafkaConnect", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaConnect" - } - } - } - }, - { - "regionTag": "managedkafka_v1_generated_ManagedKafkaConnect_DeleteConnectCluster_async", - "title": "ManagedKafka deleteConnectCluster Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Connect cluster.", - "canonical": true, - "file": "managed_kafka_connect.delete_connect_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteConnectCluster", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaConnect.DeleteConnectCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ManagedKafkaConnectClient", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaConnectClient" - }, - "method": { - "shortName": "DeleteConnectCluster", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaConnect.DeleteConnectCluster", - "service": { - "shortName": "ManagedKafkaConnect", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaConnect" - } - } - } - }, - { - "regionTag": "managedkafka_v1_generated_ManagedKafkaConnect_ListConnectors_async", - "title": "ManagedKafka listConnectors Sample", - "origin": "API_DEFINITION", - "description": " Lists the connectors in a given Connect cluster.", - "canonical": true, - "file": "managed_kafka_connect.list_connectors.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListConnectors", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaConnect.ListConnectors", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.managedkafka.v1.ListConnectorsResponse", - "client": { - "shortName": "ManagedKafkaConnectClient", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaConnectClient" - }, - "method": { - "shortName": "ListConnectors", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaConnect.ListConnectors", - "service": { - "shortName": "ManagedKafkaConnect", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaConnect" - } - } - } - }, - { - "regionTag": "managedkafka_v1_generated_ManagedKafkaConnect_GetConnector_async", - "title": "ManagedKafka getConnector Sample", - "origin": "API_DEFINITION", - "description": " Returns the properties of a single connector.", - "canonical": true, - "file": "managed_kafka_connect.get_connector.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetConnector", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaConnect.GetConnector", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.managedkafka.v1.Connector", - "client": { - "shortName": "ManagedKafkaConnectClient", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaConnectClient" - }, - "method": { - "shortName": "GetConnector", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaConnect.GetConnector", - "service": { - "shortName": "ManagedKafkaConnect", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaConnect" - } - } - } - }, - { - "regionTag": "managedkafka_v1_generated_ManagedKafkaConnect_CreateConnector_async", - "title": "ManagedKafka createConnector Sample", - "origin": "API_DEFINITION", - "description": " Creates a new connector in a given Connect cluster.", - "canonical": true, - "file": "managed_kafka_connect.create_connector.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateConnector", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaConnect.CreateConnector", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "connector_id", - "type": "TYPE_STRING" - }, - { - "name": "connector", - "type": ".google.cloud.managedkafka.v1.Connector" - } - ], - "resultType": ".google.cloud.managedkafka.v1.Connector", - "client": { - "shortName": "ManagedKafkaConnectClient", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaConnectClient" - }, - "method": { - "shortName": "CreateConnector", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaConnect.CreateConnector", - "service": { - "shortName": "ManagedKafkaConnect", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaConnect" - } - } - } - }, - { - "regionTag": "managedkafka_v1_generated_ManagedKafkaConnect_UpdateConnector_async", - "title": "ManagedKafka updateConnector Sample", - "origin": "API_DEFINITION", - "description": " Updates the properties of a connector.", - "canonical": true, - "file": "managed_kafka_connect.update_connector.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateConnector", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaConnect.UpdateConnector", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "connector", - "type": ".google.cloud.managedkafka.v1.Connector" - } - ], - "resultType": ".google.cloud.managedkafka.v1.Connector", - "client": { - "shortName": "ManagedKafkaConnectClient", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaConnectClient" - }, - "method": { - "shortName": "UpdateConnector", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaConnect.UpdateConnector", - "service": { - "shortName": "ManagedKafkaConnect", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaConnect" - } - } - } - }, - { - "regionTag": "managedkafka_v1_generated_ManagedKafkaConnect_DeleteConnector_async", - "title": "ManagedKafka deleteConnector Sample", - "origin": "API_DEFINITION", - "description": " Deletes a connector.", - "canonical": true, - "file": "managed_kafka_connect.delete_connector.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteConnector", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaConnect.DeleteConnector", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ManagedKafkaConnectClient", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaConnectClient" - }, - "method": { - "shortName": "DeleteConnector", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaConnect.DeleteConnector", - "service": { - "shortName": "ManagedKafkaConnect", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaConnect" - } - } - } - }, - { - "regionTag": "managedkafka_v1_generated_ManagedKafkaConnect_PauseConnector_async", - "title": "ManagedKafka pauseConnector Sample", - "origin": "API_DEFINITION", - "description": " Pauses the connector and its tasks.", - "canonical": true, - "file": "managed_kafka_connect.pause_connector.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PauseConnector", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaConnect.PauseConnector", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.managedkafka.v1.PauseConnectorResponse", - "client": { - "shortName": "ManagedKafkaConnectClient", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaConnectClient" - }, - "method": { - "shortName": "PauseConnector", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaConnect.PauseConnector", - "service": { - "shortName": "ManagedKafkaConnect", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaConnect" - } - } - } - }, - { - "regionTag": "managedkafka_v1_generated_ManagedKafkaConnect_ResumeConnector_async", - "title": "ManagedKafka resumeConnector Sample", - "origin": "API_DEFINITION", - "description": " Resumes the connector and its tasks.", - "canonical": true, - "file": "managed_kafka_connect.resume_connector.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResumeConnector", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaConnect.ResumeConnector", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.managedkafka.v1.ResumeConnectorResponse", - "client": { - "shortName": "ManagedKafkaConnectClient", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaConnectClient" - }, - "method": { - "shortName": "ResumeConnector", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaConnect.ResumeConnector", - "service": { - "shortName": "ManagedKafkaConnect", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaConnect" - } - } - } - }, - { - "regionTag": "managedkafka_v1_generated_ManagedKafkaConnect_RestartConnector_async", - "title": "ManagedKafka restartConnector Sample", - "origin": "API_DEFINITION", - "description": " Restarts the connector.", - "canonical": true, - "file": "managed_kafka_connect.restart_connector.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RestartConnector", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaConnect.RestartConnector", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.managedkafka.v1.RestartConnectorResponse", - "client": { - "shortName": "ManagedKafkaConnectClient", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaConnectClient" - }, - "method": { - "shortName": "RestartConnector", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaConnect.RestartConnector", - "service": { - "shortName": "ManagedKafkaConnect", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaConnect" - } - } - } - }, - { - "regionTag": "managedkafka_v1_generated_ManagedKafkaConnect_StopConnector_async", - "title": "ManagedKafka stopConnector Sample", - "origin": "API_DEFINITION", - "description": " Stops the connector.", - "canonical": true, - "file": "managed_kafka_connect.stop_connector.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StopConnector", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaConnect.StopConnector", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.managedkafka.v1.StopConnectorResponse", - "client": { - "shortName": "ManagedKafkaConnectClient", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaConnectClient" - }, - "method": { - "shortName": "StopConnector", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaConnect.StopConnector", - "service": { - "shortName": "ManagedKafkaConnect", - "fullName": "google.cloud.managedkafka.v1.ManagedKafkaConnect" - } - } - } - } - ] -} diff --git a/packages/google-cloud-mediatranslation/samples/generated/v1beta1/snippet_metadata_google.cloud.mediatranslation.v1beta1.json b/packages/google-cloud-mediatranslation/samples/generated/v1beta1/snippet_metadata_google.cloud.mediatranslation.v1beta1.json deleted file mode 100644 index 610467e8a2fd..000000000000 --- a/packages/google-cloud-mediatranslation/samples/generated/v1beta1/snippet_metadata_google.cloud.mediatranslation.v1beta1.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-mediatranslation", - "version": "5.2.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.mediatranslation.v1beta1", - "version": "v1beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "mediatranslation_v1beta1_generated_SpeechTranslationService_StreamingTranslateSpeech_async", - "title": "SpeechTranslationService streamingTranslateSpeech Sample", - "origin": "API_DEFINITION", - "description": " Performs bidirectional streaming speech translation: receive results while sending audio. This method is only available via the gRPC API (not REST).", - "canonical": true, - "file": "speech_translation_service.streaming_translate_speech.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StreamingTranslateSpeech", - "fullName": "google.cloud.mediatranslation.v1beta1.SpeechTranslationService.StreamingTranslateSpeech", - "async": true, - "parameters": [ - { - "name": "streaming_config", - "type": ".google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechConfig" - }, - { - "name": "audio_content", - "type": "TYPE_BYTES" - } - ], - "resultType": ".google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResponse", - "client": { - "shortName": "SpeechTranslationServiceClient", - "fullName": "google.cloud.mediatranslation.v1beta1.SpeechTranslationServiceClient" - }, - "method": { - "shortName": "StreamingTranslateSpeech", - "fullName": "google.cloud.mediatranslation.v1beta1.SpeechTranslationService.StreamingTranslateSpeech", - "service": { - "shortName": "SpeechTranslationService", - "fullName": "google.cloud.mediatranslation.v1beta1.SpeechTranslationService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-memcache/samples/generated/v1/snippet_metadata_google.cloud.memcache.v1.json b/packages/google-cloud-memcache/samples/generated/v1/snippet_metadata_google.cloud.memcache.v1.json deleted file mode 100644 index 77a2ffaa1d9d..000000000000 --- a/packages/google-cloud-memcache/samples/generated/v1/snippet_metadata_google.cloud.memcache.v1.json +++ /dev/null @@ -1,387 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-memcache", - "version": "4.2.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.memcache.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "memcache_v1_generated_CloudMemcache_ListInstances_async", - "title": "CloudMemcache listInstances Sample", - "origin": "API_DEFINITION", - "description": " Lists Instances in a given location.", - "canonical": true, - "file": "cloud_memcache.list_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListInstances", - "fullName": "google.cloud.memcache.v1.CloudMemcache.ListInstances", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.memcache.v1.ListInstancesResponse", - "client": { - "shortName": "CloudMemcacheClient", - "fullName": "google.cloud.memcache.v1.CloudMemcacheClient" - }, - "method": { - "shortName": "ListInstances", - "fullName": "google.cloud.memcache.v1.CloudMemcache.ListInstances", - "service": { - "shortName": "CloudMemcache", - "fullName": "google.cloud.memcache.v1.CloudMemcache" - } - } - } - }, - { - "regionTag": "memcache_v1_generated_CloudMemcache_GetInstance_async", - "title": "CloudMemcache getInstance Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Instance.", - "canonical": true, - "file": "cloud_memcache.get_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetInstance", - "fullName": "google.cloud.memcache.v1.CloudMemcache.GetInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.memcache.v1.Instance", - "client": { - "shortName": "CloudMemcacheClient", - "fullName": "google.cloud.memcache.v1.CloudMemcacheClient" - }, - "method": { - "shortName": "GetInstance", - "fullName": "google.cloud.memcache.v1.CloudMemcache.GetInstance", - "service": { - "shortName": "CloudMemcache", - "fullName": "google.cloud.memcache.v1.CloudMemcache" - } - } - } - }, - { - "regionTag": "memcache_v1_generated_CloudMemcache_CreateInstance_async", - "title": "CloudMemcache createInstance Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Instance in a given location.", - "canonical": true, - "file": "cloud_memcache.create_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateInstance", - "fullName": "google.cloud.memcache.v1.CloudMemcache.CreateInstance", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "instance_id", - "type": "TYPE_STRING" - }, - { - "name": "instance", - "type": ".google.cloud.memcache.v1.Instance" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudMemcacheClient", - "fullName": "google.cloud.memcache.v1.CloudMemcacheClient" - }, - "method": { - "shortName": "CreateInstance", - "fullName": "google.cloud.memcache.v1.CloudMemcache.CreateInstance", - "service": { - "shortName": "CloudMemcache", - "fullName": "google.cloud.memcache.v1.CloudMemcache" - } - } - } - }, - { - "regionTag": "memcache_v1_generated_CloudMemcache_UpdateInstance_async", - "title": "CloudMemcache updateInstance Sample", - "origin": "API_DEFINITION", - "description": " Updates an existing Instance in a given project and location.", - "canonical": true, - "file": "cloud_memcache.update_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateInstance", - "fullName": "google.cloud.memcache.v1.CloudMemcache.UpdateInstance", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "instance", - "type": ".google.cloud.memcache.v1.Instance" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudMemcacheClient", - "fullName": "google.cloud.memcache.v1.CloudMemcacheClient" - }, - "method": { - "shortName": "UpdateInstance", - "fullName": "google.cloud.memcache.v1.CloudMemcache.UpdateInstance", - "service": { - "shortName": "CloudMemcache", - "fullName": "google.cloud.memcache.v1.CloudMemcache" - } - } - } - }, - { - "regionTag": "memcache_v1_generated_CloudMemcache_UpdateParameters_async", - "title": "CloudMemcache updateParameters Sample", - "origin": "API_DEFINITION", - "description": " Updates the defined Memcached parameters for an existing instance. This method only stages the parameters, it must be followed by `ApplyParameters` to apply the parameters to nodes of the Memcached instance.", - "canonical": true, - "file": "cloud_memcache.update_parameters.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateParameters", - "fullName": "google.cloud.memcache.v1.CloudMemcache.UpdateParameters", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "parameters", - "type": ".google.cloud.memcache.v1.MemcacheParameters" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudMemcacheClient", - "fullName": "google.cloud.memcache.v1.CloudMemcacheClient" - }, - "method": { - "shortName": "UpdateParameters", - "fullName": "google.cloud.memcache.v1.CloudMemcache.UpdateParameters", - "service": { - "shortName": "CloudMemcache", - "fullName": "google.cloud.memcache.v1.CloudMemcache" - } - } - } - }, - { - "regionTag": "memcache_v1_generated_CloudMemcache_DeleteInstance_async", - "title": "CloudMemcache deleteInstance Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Instance.", - "canonical": true, - "file": "cloud_memcache.delete_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteInstance", - "fullName": "google.cloud.memcache.v1.CloudMemcache.DeleteInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudMemcacheClient", - "fullName": "google.cloud.memcache.v1.CloudMemcacheClient" - }, - "method": { - "shortName": "DeleteInstance", - "fullName": "google.cloud.memcache.v1.CloudMemcache.DeleteInstance", - "service": { - "shortName": "CloudMemcache", - "fullName": "google.cloud.memcache.v1.CloudMemcache" - } - } - } - }, - { - "regionTag": "memcache_v1_generated_CloudMemcache_ApplyParameters_async", - "title": "CloudMemcache applyParameters Sample", - "origin": "API_DEFINITION", - "description": " `ApplyParameters` restarts the set of specified nodes in order to update them to the current set of parameters for the Memcached Instance.", - "canonical": true, - "file": "cloud_memcache.apply_parameters.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ApplyParameters", - "fullName": "google.cloud.memcache.v1.CloudMemcache.ApplyParameters", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "node_ids", - "type": "TYPE_STRING[]" - }, - { - "name": "apply_all", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudMemcacheClient", - "fullName": "google.cloud.memcache.v1.CloudMemcacheClient" - }, - "method": { - "shortName": "ApplyParameters", - "fullName": "google.cloud.memcache.v1.CloudMemcache.ApplyParameters", - "service": { - "shortName": "CloudMemcache", - "fullName": "google.cloud.memcache.v1.CloudMemcache" - } - } - } - }, - { - "regionTag": "memcache_v1_generated_CloudMemcache_RescheduleMaintenance_async", - "title": "CloudMemcache rescheduleMaintenance Sample", - "origin": "API_DEFINITION", - "description": " Reschedules upcoming maintenance event.", - "canonical": true, - "file": "cloud_memcache.reschedule_maintenance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RescheduleMaintenance", - "fullName": "google.cloud.memcache.v1.CloudMemcache.RescheduleMaintenance", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "reschedule_type", - "type": ".google.cloud.memcache.v1.RescheduleMaintenanceRequest.RescheduleType" - }, - { - "name": "schedule_time", - "type": ".google.protobuf.Timestamp" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudMemcacheClient", - "fullName": "google.cloud.memcache.v1.CloudMemcacheClient" - }, - "method": { - "shortName": "RescheduleMaintenance", - "fullName": "google.cloud.memcache.v1.CloudMemcache.RescheduleMaintenance", - "service": { - "shortName": "CloudMemcache", - "fullName": "google.cloud.memcache.v1.CloudMemcache" - } - } - } - } - ] -} diff --git a/packages/google-cloud-memcache/samples/generated/v1beta2/snippet_metadata_google.cloud.memcache.v1beta2.json b/packages/google-cloud-memcache/samples/generated/v1beta2/snippet_metadata_google.cloud.memcache.v1beta2.json deleted file mode 100644 index bc5fc7f2cdbe..000000000000 --- a/packages/google-cloud-memcache/samples/generated/v1beta2/snippet_metadata_google.cloud.memcache.v1beta2.json +++ /dev/null @@ -1,435 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-memcache", - "version": "4.2.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.memcache.v1beta2", - "version": "v1beta2" - } - ] - }, - "snippets": [ - { - "regionTag": "memcache_v1beta2_generated_CloudMemcache_ListInstances_async", - "title": "CloudMemcache listInstances Sample", - "origin": "API_DEFINITION", - "description": " Lists Instances in a given location.", - "canonical": true, - "file": "cloud_memcache.list_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListInstances", - "fullName": "google.cloud.memcache.v1beta2.CloudMemcache.ListInstances", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.memcache.v1beta2.ListInstancesResponse", - "client": { - "shortName": "CloudMemcacheClient", - "fullName": "google.cloud.memcache.v1beta2.CloudMemcacheClient" - }, - "method": { - "shortName": "ListInstances", - "fullName": "google.cloud.memcache.v1beta2.CloudMemcache.ListInstances", - "service": { - "shortName": "CloudMemcache", - "fullName": "google.cloud.memcache.v1beta2.CloudMemcache" - } - } - } - }, - { - "regionTag": "memcache_v1beta2_generated_CloudMemcache_GetInstance_async", - "title": "CloudMemcache getInstance Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Instance.", - "canonical": true, - "file": "cloud_memcache.get_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetInstance", - "fullName": "google.cloud.memcache.v1beta2.CloudMemcache.GetInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.memcache.v1beta2.Instance", - "client": { - "shortName": "CloudMemcacheClient", - "fullName": "google.cloud.memcache.v1beta2.CloudMemcacheClient" - }, - "method": { - "shortName": "GetInstance", - "fullName": "google.cloud.memcache.v1beta2.CloudMemcache.GetInstance", - "service": { - "shortName": "CloudMemcache", - "fullName": "google.cloud.memcache.v1beta2.CloudMemcache" - } - } - } - }, - { - "regionTag": "memcache_v1beta2_generated_CloudMemcache_CreateInstance_async", - "title": "CloudMemcache createInstance Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Instance in a given location.", - "canonical": true, - "file": "cloud_memcache.create_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateInstance", - "fullName": "google.cloud.memcache.v1beta2.CloudMemcache.CreateInstance", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "instance_id", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": ".google.cloud.memcache.v1beta2.Instance" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudMemcacheClient", - "fullName": "google.cloud.memcache.v1beta2.CloudMemcacheClient" - }, - "method": { - "shortName": "CreateInstance", - "fullName": "google.cloud.memcache.v1beta2.CloudMemcache.CreateInstance", - "service": { - "shortName": "CloudMemcache", - "fullName": "google.cloud.memcache.v1beta2.CloudMemcache" - } - } - } - }, - { - "regionTag": "memcache_v1beta2_generated_CloudMemcache_UpdateInstance_async", - "title": "CloudMemcache updateInstance Sample", - "origin": "API_DEFINITION", - "description": " Updates an existing Instance in a given project and location.", - "canonical": true, - "file": "cloud_memcache.update_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateInstance", - "fullName": "google.cloud.memcache.v1beta2.CloudMemcache.UpdateInstance", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "resource", - "type": ".google.cloud.memcache.v1beta2.Instance" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudMemcacheClient", - "fullName": "google.cloud.memcache.v1beta2.CloudMemcacheClient" - }, - "method": { - "shortName": "UpdateInstance", - "fullName": "google.cloud.memcache.v1beta2.CloudMemcache.UpdateInstance", - "service": { - "shortName": "CloudMemcache", - "fullName": "google.cloud.memcache.v1beta2.CloudMemcache" - } - } - } - }, - { - "regionTag": "memcache_v1beta2_generated_CloudMemcache_UpdateParameters_async", - "title": "CloudMemcache updateParameters Sample", - "origin": "API_DEFINITION", - "description": " Updates the defined Memcached parameters for an existing instance. This method only stages the parameters, it must be followed by `ApplyParameters` to apply the parameters to nodes of the Memcached instance.", - "canonical": true, - "file": "cloud_memcache.update_parameters.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateParameters", - "fullName": "google.cloud.memcache.v1beta2.CloudMemcache.UpdateParameters", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "parameters", - "type": ".google.cloud.memcache.v1beta2.MemcacheParameters" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudMemcacheClient", - "fullName": "google.cloud.memcache.v1beta2.CloudMemcacheClient" - }, - "method": { - "shortName": "UpdateParameters", - "fullName": "google.cloud.memcache.v1beta2.CloudMemcache.UpdateParameters", - "service": { - "shortName": "CloudMemcache", - "fullName": "google.cloud.memcache.v1beta2.CloudMemcache" - } - } - } - }, - { - "regionTag": "memcache_v1beta2_generated_CloudMemcache_DeleteInstance_async", - "title": "CloudMemcache deleteInstance Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Instance.", - "canonical": true, - "file": "cloud_memcache.delete_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteInstance", - "fullName": "google.cloud.memcache.v1beta2.CloudMemcache.DeleteInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudMemcacheClient", - "fullName": "google.cloud.memcache.v1beta2.CloudMemcacheClient" - }, - "method": { - "shortName": "DeleteInstance", - "fullName": "google.cloud.memcache.v1beta2.CloudMemcache.DeleteInstance", - "service": { - "shortName": "CloudMemcache", - "fullName": "google.cloud.memcache.v1beta2.CloudMemcache" - } - } - } - }, - { - "regionTag": "memcache_v1beta2_generated_CloudMemcache_ApplyParameters_async", - "title": "CloudMemcache applyParameters Sample", - "origin": "API_DEFINITION", - "description": " `ApplyParameters` restarts the set of specified nodes in order to update them to the current set of parameters for the Memcached Instance.", - "canonical": true, - "file": "cloud_memcache.apply_parameters.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ApplyParameters", - "fullName": "google.cloud.memcache.v1beta2.CloudMemcache.ApplyParameters", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "node_ids", - "type": "TYPE_STRING[]" - }, - { - "name": "apply_all", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudMemcacheClient", - "fullName": "google.cloud.memcache.v1beta2.CloudMemcacheClient" - }, - "method": { - "shortName": "ApplyParameters", - "fullName": "google.cloud.memcache.v1beta2.CloudMemcache.ApplyParameters", - "service": { - "shortName": "CloudMemcache", - "fullName": "google.cloud.memcache.v1beta2.CloudMemcache" - } - } - } - }, - { - "regionTag": "memcache_v1beta2_generated_CloudMemcache_ApplySoftwareUpdate_async", - "title": "CloudMemcache applySoftwareUpdate Sample", - "origin": "API_DEFINITION", - "description": " Updates software on the selected nodes of the Instance.", - "canonical": true, - "file": "cloud_memcache.apply_software_update.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ApplySoftwareUpdate", - "fullName": "google.cloud.memcache.v1beta2.CloudMemcache.ApplySoftwareUpdate", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "node_ids", - "type": "TYPE_STRING[]" - }, - { - "name": "apply_all", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudMemcacheClient", - "fullName": "google.cloud.memcache.v1beta2.CloudMemcacheClient" - }, - "method": { - "shortName": "ApplySoftwareUpdate", - "fullName": "google.cloud.memcache.v1beta2.CloudMemcache.ApplySoftwareUpdate", - "service": { - "shortName": "CloudMemcache", - "fullName": "google.cloud.memcache.v1beta2.CloudMemcache" - } - } - } - }, - { - "regionTag": "memcache_v1beta2_generated_CloudMemcache_RescheduleMaintenance_async", - "title": "CloudMemcache rescheduleMaintenance Sample", - "origin": "API_DEFINITION", - "description": " Performs the apply phase of the RescheduleMaintenance verb.", - "canonical": true, - "file": "cloud_memcache.reschedule_maintenance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RescheduleMaintenance", - "fullName": "google.cloud.memcache.v1beta2.CloudMemcache.RescheduleMaintenance", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "reschedule_type", - "type": ".google.cloud.memcache.v1beta2.RescheduleMaintenanceRequest.RescheduleType" - }, - { - "name": "schedule_time", - "type": ".google.protobuf.Timestamp" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudMemcacheClient", - "fullName": "google.cloud.memcache.v1beta2.CloudMemcacheClient" - }, - "method": { - "shortName": "RescheduleMaintenance", - "fullName": "google.cloud.memcache.v1beta2.CloudMemcache.RescheduleMaintenance", - "service": { - "shortName": "CloudMemcache", - "fullName": "google.cloud.memcache.v1beta2.CloudMemcache" - } - } - } - } - ] -} diff --git a/packages/google-cloud-memorystore/samples/generated/v1/snippet_metadata_google.cloud.memorystore.v1.json b/packages/google-cloud-memorystore/samples/generated/v1/snippet_metadata_google.cloud.memorystore.v1.json deleted file mode 100644 index 82f7e5a99e4d..000000000000 --- a/packages/google-cloud-memorystore/samples/generated/v1/snippet_metadata_google.cloud.memorystore.v1.json +++ /dev/null @@ -1,695 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-memorystore", - "version": "0.5.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.memorystore.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "memorystore_v1_generated_Memorystore_ListInstances_async", - "title": "Memorystore listInstances Sample", - "origin": "API_DEFINITION", - "description": " Lists Instances in a given project and location.", - "canonical": true, - "file": "memorystore.list_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListInstances", - "fullName": "google.cloud.memorystore.v1.Memorystore.ListInstances", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.memorystore.v1.ListInstancesResponse", - "client": { - "shortName": "MemorystoreClient", - "fullName": "google.cloud.memorystore.v1.MemorystoreClient" - }, - "method": { - "shortName": "ListInstances", - "fullName": "google.cloud.memorystore.v1.Memorystore.ListInstances", - "service": { - "shortName": "Memorystore", - "fullName": "google.cloud.memorystore.v1.Memorystore" - } - } - } - }, - { - "regionTag": "memorystore_v1_generated_Memorystore_GetInstance_async", - "title": "Memorystore getInstance Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Instance.", - "canonical": true, - "file": "memorystore.get_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetInstance", - "fullName": "google.cloud.memorystore.v1.Memorystore.GetInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.memorystore.v1.Instance", - "client": { - "shortName": "MemorystoreClient", - "fullName": "google.cloud.memorystore.v1.MemorystoreClient" - }, - "method": { - "shortName": "GetInstance", - "fullName": "google.cloud.memorystore.v1.Memorystore.GetInstance", - "service": { - "shortName": "Memorystore", - "fullName": "google.cloud.memorystore.v1.Memorystore" - } - } - } - }, - { - "regionTag": "memorystore_v1_generated_Memorystore_CreateInstance_async", - "title": "Memorystore createInstance Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Instance in a given project and location.", - "canonical": true, - "file": "memorystore.create_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateInstance", - "fullName": "google.cloud.memorystore.v1.Memorystore.CreateInstance", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "instance_id", - "type": "TYPE_STRING" - }, - { - "name": "instance", - "type": ".google.cloud.memorystore.v1.Instance" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MemorystoreClient", - "fullName": "google.cloud.memorystore.v1.MemorystoreClient" - }, - "method": { - "shortName": "CreateInstance", - "fullName": "google.cloud.memorystore.v1.Memorystore.CreateInstance", - "service": { - "shortName": "Memorystore", - "fullName": "google.cloud.memorystore.v1.Memorystore" - } - } - } - }, - { - "regionTag": "memorystore_v1_generated_Memorystore_UpdateInstance_async", - "title": "Memorystore updateInstance Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Instance.", - "canonical": true, - "file": "memorystore.update_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateInstance", - "fullName": "google.cloud.memorystore.v1.Memorystore.UpdateInstance", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "instance", - "type": ".google.cloud.memorystore.v1.Instance" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MemorystoreClient", - "fullName": "google.cloud.memorystore.v1.MemorystoreClient" - }, - "method": { - "shortName": "UpdateInstance", - "fullName": "google.cloud.memorystore.v1.Memorystore.UpdateInstance", - "service": { - "shortName": "Memorystore", - "fullName": "google.cloud.memorystore.v1.Memorystore" - } - } - } - }, - { - "regionTag": "memorystore_v1_generated_Memorystore_DeleteInstance_async", - "title": "Memorystore deleteInstance Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Instance.", - "canonical": true, - "file": "memorystore.delete_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteInstance", - "fullName": "google.cloud.memorystore.v1.Memorystore.DeleteInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MemorystoreClient", - "fullName": "google.cloud.memorystore.v1.MemorystoreClient" - }, - "method": { - "shortName": "DeleteInstance", - "fullName": "google.cloud.memorystore.v1.Memorystore.DeleteInstance", - "service": { - "shortName": "Memorystore", - "fullName": "google.cloud.memorystore.v1.Memorystore" - } - } - } - }, - { - "regionTag": "memorystore_v1_generated_Memorystore_GetCertificateAuthority_async", - "title": "Memorystore getCertificateAuthority Sample", - "origin": "API_DEFINITION", - "description": " Gets details about the certificate authority for an Instance.", - "canonical": true, - "file": "memorystore.get_certificate_authority.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCertificateAuthority", - "fullName": "google.cloud.memorystore.v1.Memorystore.GetCertificateAuthority", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.memorystore.v1.CertificateAuthority", - "client": { - "shortName": "MemorystoreClient", - "fullName": "google.cloud.memorystore.v1.MemorystoreClient" - }, - "method": { - "shortName": "GetCertificateAuthority", - "fullName": "google.cloud.memorystore.v1.Memorystore.GetCertificateAuthority", - "service": { - "shortName": "Memorystore", - "fullName": "google.cloud.memorystore.v1.Memorystore" - } - } - } - }, - { - "regionTag": "memorystore_v1_generated_Memorystore_GetSharedRegionalCertificateAuthority_async", - "title": "Memorystore getSharedRegionalCertificateAuthority Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of shared regional certificate authority information for Memorystore instance.", - "canonical": true, - "file": "memorystore.get_shared_regional_certificate_authority.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSharedRegionalCertificateAuthority", - "fullName": "google.cloud.memorystore.v1.Memorystore.GetSharedRegionalCertificateAuthority", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.memorystore.v1.SharedRegionalCertificateAuthority", - "client": { - "shortName": "MemorystoreClient", - "fullName": "google.cloud.memorystore.v1.MemorystoreClient" - }, - "method": { - "shortName": "GetSharedRegionalCertificateAuthority", - "fullName": "google.cloud.memorystore.v1.Memorystore.GetSharedRegionalCertificateAuthority", - "service": { - "shortName": "Memorystore", - "fullName": "google.cloud.memorystore.v1.Memorystore" - } - } - } - }, - { - "regionTag": "memorystore_v1_generated_Memorystore_RescheduleMaintenance_async", - "title": "Memorystore rescheduleMaintenance Sample", - "origin": "API_DEFINITION", - "description": " Reschedules upcoming maintenance event.", - "canonical": true, - "file": "memorystore.reschedule_maintenance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RescheduleMaintenance", - "fullName": "google.cloud.memorystore.v1.Memorystore.RescheduleMaintenance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "reschedule_type", - "type": ".google.cloud.memorystore.v1.RescheduleMaintenanceRequest.RescheduleType" - }, - { - "name": "schedule_time", - "type": ".google.protobuf.Timestamp" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MemorystoreClient", - "fullName": "google.cloud.memorystore.v1.MemorystoreClient" - }, - "method": { - "shortName": "RescheduleMaintenance", - "fullName": "google.cloud.memorystore.v1.Memorystore.RescheduleMaintenance", - "service": { - "shortName": "Memorystore", - "fullName": "google.cloud.memorystore.v1.Memorystore" - } - } - } - }, - { - "regionTag": "memorystore_v1_generated_Memorystore_ListBackupCollections_async", - "title": "Memorystore listBackupCollections Sample", - "origin": "API_DEFINITION", - "description": " Lists all backup collections owned by a consumer project in either the specified location (region) or all locations. If `location_id` is specified as `-` (wildcard), then all regions available to the project are queried, and the results are aggregated.", - "canonical": true, - "file": "memorystore.list_backup_collections.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBackupCollections", - "fullName": "google.cloud.memorystore.v1.Memorystore.ListBackupCollections", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.memorystore.v1.ListBackupCollectionsResponse", - "client": { - "shortName": "MemorystoreClient", - "fullName": "google.cloud.memorystore.v1.MemorystoreClient" - }, - "method": { - "shortName": "ListBackupCollections", - "fullName": "google.cloud.memorystore.v1.Memorystore.ListBackupCollections", - "service": { - "shortName": "Memorystore", - "fullName": "google.cloud.memorystore.v1.Memorystore" - } - } - } - }, - { - "regionTag": "memorystore_v1_generated_Memorystore_GetBackupCollection_async", - "title": "Memorystore getBackupCollection Sample", - "origin": "API_DEFINITION", - "description": " Get a backup collection.", - "canonical": true, - "file": "memorystore.get_backup_collection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBackupCollection", - "fullName": "google.cloud.memorystore.v1.Memorystore.GetBackupCollection", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.memorystore.v1.BackupCollection", - "client": { - "shortName": "MemorystoreClient", - "fullName": "google.cloud.memorystore.v1.MemorystoreClient" - }, - "method": { - "shortName": "GetBackupCollection", - "fullName": "google.cloud.memorystore.v1.Memorystore.GetBackupCollection", - "service": { - "shortName": "Memorystore", - "fullName": "google.cloud.memorystore.v1.Memorystore" - } - } - } - }, - { - "regionTag": "memorystore_v1_generated_Memorystore_ListBackups_async", - "title": "Memorystore listBackups Sample", - "origin": "API_DEFINITION", - "description": " Lists all backups owned by a backup collection.", - "canonical": true, - "file": "memorystore.list_backups.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBackups", - "fullName": "google.cloud.memorystore.v1.Memorystore.ListBackups", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.memorystore.v1.ListBackupsResponse", - "client": { - "shortName": "MemorystoreClient", - "fullName": "google.cloud.memorystore.v1.MemorystoreClient" - }, - "method": { - "shortName": "ListBackups", - "fullName": "google.cloud.memorystore.v1.Memorystore.ListBackups", - "service": { - "shortName": "Memorystore", - "fullName": "google.cloud.memorystore.v1.Memorystore" - } - } - } - }, - { - "regionTag": "memorystore_v1_generated_Memorystore_GetBackup_async", - "title": "Memorystore getBackup Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a specific backup.", - "canonical": true, - "file": "memorystore.get_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBackup", - "fullName": "google.cloud.memorystore.v1.Memorystore.GetBackup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.memorystore.v1.Backup", - "client": { - "shortName": "MemorystoreClient", - "fullName": "google.cloud.memorystore.v1.MemorystoreClient" - }, - "method": { - "shortName": "GetBackup", - "fullName": "google.cloud.memorystore.v1.Memorystore.GetBackup", - "service": { - "shortName": "Memorystore", - "fullName": "google.cloud.memorystore.v1.Memorystore" - } - } - } - }, - { - "regionTag": "memorystore_v1_generated_Memorystore_DeleteBackup_async", - "title": "Memorystore deleteBackup Sample", - "origin": "API_DEFINITION", - "description": " Deletes a specific backup.", - "canonical": true, - "file": "memorystore.delete_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteBackup", - "fullName": "google.cloud.memorystore.v1.Memorystore.DeleteBackup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MemorystoreClient", - "fullName": "google.cloud.memorystore.v1.MemorystoreClient" - }, - "method": { - "shortName": "DeleteBackup", - "fullName": "google.cloud.memorystore.v1.Memorystore.DeleteBackup", - "service": { - "shortName": "Memorystore", - "fullName": "google.cloud.memorystore.v1.Memorystore" - } - } - } - }, - { - "regionTag": "memorystore_v1_generated_Memorystore_ExportBackup_async", - "title": "Memorystore exportBackup Sample", - "origin": "API_DEFINITION", - "description": " Exports a specific backup to a customer target Cloud Storage URI.", - "canonical": true, - "file": "memorystore.export_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportBackup", - "fullName": "google.cloud.memorystore.v1.Memorystore.ExportBackup", - "async": true, - "parameters": [ - { - "name": "gcs_bucket", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MemorystoreClient", - "fullName": "google.cloud.memorystore.v1.MemorystoreClient" - }, - "method": { - "shortName": "ExportBackup", - "fullName": "google.cloud.memorystore.v1.Memorystore.ExportBackup", - "service": { - "shortName": "Memorystore", - "fullName": "google.cloud.memorystore.v1.Memorystore" - } - } - } - }, - { - "regionTag": "memorystore_v1_generated_Memorystore_BackupInstance_async", - "title": "Memorystore backupInstance Sample", - "origin": "API_DEFINITION", - "description": " Backup Instance. If this is the first time a backup is being created, a backup collection will be created at the backend, and this backup belongs to this collection. Both collection and backup will have a resource name. Backup will be executed for each shard. A replica (primary if nonHA) will be selected to perform the execution. Backup call will be rejected if there is an ongoing backup or update operation. Be aware that during preview, if the instance's internal software version is too old, critical update will be performed before actual backup. Once the internal software version is updated to the minimum version required by the backup feature, subsequent backups will not require critical update. After preview, there will be no critical update needed for backup.", - "canonical": true, - "file": "memorystore.backup_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BackupInstance", - "fullName": "google.cloud.memorystore.v1.Memorystore.BackupInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "ttl", - "type": ".google.protobuf.Duration" - }, - { - "name": "backup_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MemorystoreClient", - "fullName": "google.cloud.memorystore.v1.MemorystoreClient" - }, - "method": { - "shortName": "BackupInstance", - "fullName": "google.cloud.memorystore.v1.Memorystore.BackupInstance", - "service": { - "shortName": "Memorystore", - "fullName": "google.cloud.memorystore.v1.Memorystore" - } - } - } - } - ] -} diff --git a/packages/google-cloud-memorystore/samples/generated/v1beta/snippet_metadata_google.cloud.memorystore.v1beta.json b/packages/google-cloud-memorystore/samples/generated/v1beta/snippet_metadata_google.cloud.memorystore.v1beta.json deleted file mode 100644 index 1a07162fd51a..000000000000 --- a/packages/google-cloud-memorystore/samples/generated/v1beta/snippet_metadata_google.cloud.memorystore.v1beta.json +++ /dev/null @@ -1,335 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-memorystore", - "version": "0.5.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.memorystore.v1beta", - "version": "v1beta" - } - ] - }, - "snippets": [ - { - "regionTag": "memorystore_v1beta_generated_Memorystore_ListInstances_async", - "title": "Memorystore listInstances Sample", - "origin": "API_DEFINITION", - "description": " Lists Instances in a given project and location.", - "canonical": true, - "file": "memorystore.list_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListInstances", - "fullName": "google.cloud.memorystore.v1beta.Memorystore.ListInstances", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.memorystore.v1beta.ListInstancesResponse", - "client": { - "shortName": "MemorystoreClient", - "fullName": "google.cloud.memorystore.v1beta.MemorystoreClient" - }, - "method": { - "shortName": "ListInstances", - "fullName": "google.cloud.memorystore.v1beta.Memorystore.ListInstances", - "service": { - "shortName": "Memorystore", - "fullName": "google.cloud.memorystore.v1beta.Memorystore" - } - } - } - }, - { - "regionTag": "memorystore_v1beta_generated_Memorystore_GetInstance_async", - "title": "Memorystore getInstance Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Instance.", - "canonical": true, - "file": "memorystore.get_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetInstance", - "fullName": "google.cloud.memorystore.v1beta.Memorystore.GetInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.memorystore.v1beta.Instance", - "client": { - "shortName": "MemorystoreClient", - "fullName": "google.cloud.memorystore.v1beta.MemorystoreClient" - }, - "method": { - "shortName": "GetInstance", - "fullName": "google.cloud.memorystore.v1beta.Memorystore.GetInstance", - "service": { - "shortName": "Memorystore", - "fullName": "google.cloud.memorystore.v1beta.Memorystore" - } - } - } - }, - { - "regionTag": "memorystore_v1beta_generated_Memorystore_CreateInstance_async", - "title": "Memorystore createInstance Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Instance in a given project and location.", - "canonical": true, - "file": "memorystore.create_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateInstance", - "fullName": "google.cloud.memorystore.v1beta.Memorystore.CreateInstance", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "instance_id", - "type": "TYPE_STRING" - }, - { - "name": "instance", - "type": ".google.cloud.memorystore.v1beta.Instance" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MemorystoreClient", - "fullName": "google.cloud.memorystore.v1beta.MemorystoreClient" - }, - "method": { - "shortName": "CreateInstance", - "fullName": "google.cloud.memorystore.v1beta.Memorystore.CreateInstance", - "service": { - "shortName": "Memorystore", - "fullName": "google.cloud.memorystore.v1beta.Memorystore" - } - } - } - }, - { - "regionTag": "memorystore_v1beta_generated_Memorystore_UpdateInstance_async", - "title": "Memorystore updateInstance Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Instance.", - "canonical": true, - "file": "memorystore.update_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateInstance", - "fullName": "google.cloud.memorystore.v1beta.Memorystore.UpdateInstance", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "instance", - "type": ".google.cloud.memorystore.v1beta.Instance" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MemorystoreClient", - "fullName": "google.cloud.memorystore.v1beta.MemorystoreClient" - }, - "method": { - "shortName": "UpdateInstance", - "fullName": "google.cloud.memorystore.v1beta.Memorystore.UpdateInstance", - "service": { - "shortName": "Memorystore", - "fullName": "google.cloud.memorystore.v1beta.Memorystore" - } - } - } - }, - { - "regionTag": "memorystore_v1beta_generated_Memorystore_DeleteInstance_async", - "title": "Memorystore deleteInstance Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Instance.", - "canonical": true, - "file": "memorystore.delete_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteInstance", - "fullName": "google.cloud.memorystore.v1beta.Memorystore.DeleteInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MemorystoreClient", - "fullName": "google.cloud.memorystore.v1beta.MemorystoreClient" - }, - "method": { - "shortName": "DeleteInstance", - "fullName": "google.cloud.memorystore.v1beta.Memorystore.DeleteInstance", - "service": { - "shortName": "Memorystore", - "fullName": "google.cloud.memorystore.v1beta.Memorystore" - } - } - } - }, - { - "regionTag": "memorystore_v1beta_generated_Memorystore_GetCertificateAuthority_async", - "title": "Memorystore getCertificateAuthority Sample", - "origin": "API_DEFINITION", - "description": " Gets details about the certificate authority for an Instance.", - "canonical": true, - "file": "memorystore.get_certificate_authority.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCertificateAuthority", - "fullName": "google.cloud.memorystore.v1beta.Memorystore.GetCertificateAuthority", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.memorystore.v1beta.CertificateAuthority", - "client": { - "shortName": "MemorystoreClient", - "fullName": "google.cloud.memorystore.v1beta.MemorystoreClient" - }, - "method": { - "shortName": "GetCertificateAuthority", - "fullName": "google.cloud.memorystore.v1beta.Memorystore.GetCertificateAuthority", - "service": { - "shortName": "Memorystore", - "fullName": "google.cloud.memorystore.v1beta.Memorystore" - } - } - } - }, - { - "regionTag": "memorystore_v1beta_generated_Memorystore_GetSharedRegionalCertificateAuthority_async", - "title": "Memorystore getSharedRegionalCertificateAuthority Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of shared regional certificate authority information for Memorystore instance.", - "canonical": true, - "file": "memorystore.get_shared_regional_certificate_authority.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSharedRegionalCertificateAuthority", - "fullName": "google.cloud.memorystore.v1beta.Memorystore.GetSharedRegionalCertificateAuthority", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.memorystore.v1beta.SharedRegionalCertificateAuthority", - "client": { - "shortName": "MemorystoreClient", - "fullName": "google.cloud.memorystore.v1beta.MemorystoreClient" - }, - "method": { - "shortName": "GetSharedRegionalCertificateAuthority", - "fullName": "google.cloud.memorystore.v1beta.Memorystore.GetSharedRegionalCertificateAuthority", - "service": { - "shortName": "Memorystore", - "fullName": "google.cloud.memorystore.v1beta.Memorystore" - } - } - } - } - ] -} diff --git a/packages/google-cloud-metastore/samples/generated/v1/snippet_metadata_google.cloud.metastore.v1.json b/packages/google-cloud-metastore/samples/generated/v1/snippet_metadata_google.cloud.metastore.v1.json deleted file mode 100644 index 527fd408cc1d..000000000000 --- a/packages/google-cloud-metastore/samples/generated/v1/snippet_metadata_google.cloud.metastore.v1.json +++ /dev/null @@ -1,1131 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-metastore", - "version": "5.2.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.metastore.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "metastore_v1_generated_DataprocMetastore_ListServices_async", - "title": "DataprocMetastore listServices Sample", - "origin": "API_DEFINITION", - "description": " Lists services in a project and location.", - "canonical": true, - "file": "dataproc_metastore.list_services.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListServices", - "fullName": "google.cloud.metastore.v1.DataprocMetastore.ListServices", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.metastore.v1.ListServicesResponse", - "client": { - "shortName": "DataprocMetastoreClient", - "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient" - }, - "method": { - "shortName": "ListServices", - "fullName": "google.cloud.metastore.v1.DataprocMetastore.ListServices", - "service": { - "shortName": "DataprocMetastore", - "fullName": "google.cloud.metastore.v1.DataprocMetastore" - } - } - } - }, - { - "regionTag": "metastore_v1_generated_DataprocMetastore_GetService_async", - "title": "DataprocMetastore getService Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a single service.", - "canonical": true, - "file": "dataproc_metastore.get_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetService", - "fullName": "google.cloud.metastore.v1.DataprocMetastore.GetService", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.metastore.v1.Service", - "client": { - "shortName": "DataprocMetastoreClient", - "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient" - }, - "method": { - "shortName": "GetService", - "fullName": "google.cloud.metastore.v1.DataprocMetastore.GetService", - "service": { - "shortName": "DataprocMetastore", - "fullName": "google.cloud.metastore.v1.DataprocMetastore" - } - } - } - }, - { - "regionTag": "metastore_v1_generated_DataprocMetastore_CreateService_async", - "title": "DataprocMetastore createService Sample", - "origin": "API_DEFINITION", - "description": " Creates a metastore service in a project and location.", - "canonical": true, - "file": "dataproc_metastore.create_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateService", - "fullName": "google.cloud.metastore.v1.DataprocMetastore.CreateService", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "service_id", - "type": "TYPE_STRING" - }, - { - "name": "service", - "type": ".google.cloud.metastore.v1.Service" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataprocMetastoreClient", - "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient" - }, - "method": { - "shortName": "CreateService", - "fullName": "google.cloud.metastore.v1.DataprocMetastore.CreateService", - "service": { - "shortName": "DataprocMetastore", - "fullName": "google.cloud.metastore.v1.DataprocMetastore" - } - } - } - }, - { - "regionTag": "metastore_v1_generated_DataprocMetastore_UpdateService_async", - "title": "DataprocMetastore updateService Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single service.", - "canonical": true, - "file": "dataproc_metastore.update_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateService", - "fullName": "google.cloud.metastore.v1.DataprocMetastore.UpdateService", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "service", - "type": ".google.cloud.metastore.v1.Service" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataprocMetastoreClient", - "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient" - }, - "method": { - "shortName": "UpdateService", - "fullName": "google.cloud.metastore.v1.DataprocMetastore.UpdateService", - "service": { - "shortName": "DataprocMetastore", - "fullName": "google.cloud.metastore.v1.DataprocMetastore" - } - } - } - }, - { - "regionTag": "metastore_v1_generated_DataprocMetastore_DeleteService_async", - "title": "DataprocMetastore deleteService Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single service.", - "canonical": true, - "file": "dataproc_metastore.delete_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteService", - "fullName": "google.cloud.metastore.v1.DataprocMetastore.DeleteService", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataprocMetastoreClient", - "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient" - }, - "method": { - "shortName": "DeleteService", - "fullName": "google.cloud.metastore.v1.DataprocMetastore.DeleteService", - "service": { - "shortName": "DataprocMetastore", - "fullName": "google.cloud.metastore.v1.DataprocMetastore" - } - } - } - }, - { - "regionTag": "metastore_v1_generated_DataprocMetastore_ListMetadataImports_async", - "title": "DataprocMetastore listMetadataImports Sample", - "origin": "API_DEFINITION", - "description": " Lists imports in a service.", - "canonical": true, - "file": "dataproc_metastore.list_metadata_imports.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMetadataImports", - "fullName": "google.cloud.metastore.v1.DataprocMetastore.ListMetadataImports", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.metastore.v1.ListMetadataImportsResponse", - "client": { - "shortName": "DataprocMetastoreClient", - "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient" - }, - "method": { - "shortName": "ListMetadataImports", - "fullName": "google.cloud.metastore.v1.DataprocMetastore.ListMetadataImports", - "service": { - "shortName": "DataprocMetastore", - "fullName": "google.cloud.metastore.v1.DataprocMetastore" - } - } - } - }, - { - "regionTag": "metastore_v1_generated_DataprocMetastore_GetMetadataImport_async", - "title": "DataprocMetastore getMetadataImport Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single import.", - "canonical": true, - "file": "dataproc_metastore.get_metadata_import.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMetadataImport", - "fullName": "google.cloud.metastore.v1.DataprocMetastore.GetMetadataImport", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.metastore.v1.MetadataImport", - "client": { - "shortName": "DataprocMetastoreClient", - "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient" - }, - "method": { - "shortName": "GetMetadataImport", - "fullName": "google.cloud.metastore.v1.DataprocMetastore.GetMetadataImport", - "service": { - "shortName": "DataprocMetastore", - "fullName": "google.cloud.metastore.v1.DataprocMetastore" - } - } - } - }, - { - "regionTag": "metastore_v1_generated_DataprocMetastore_CreateMetadataImport_async", - "title": "DataprocMetastore createMetadataImport Sample", - "origin": "API_DEFINITION", - "description": " Creates a new MetadataImport in a given project and location.", - "canonical": true, - "file": "dataproc_metastore.create_metadata_import.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateMetadataImport", - "fullName": "google.cloud.metastore.v1.DataprocMetastore.CreateMetadataImport", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "metadata_import_id", - "type": "TYPE_STRING" - }, - { - "name": "metadata_import", - "type": ".google.cloud.metastore.v1.MetadataImport" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataprocMetastoreClient", - "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient" - }, - "method": { - "shortName": "CreateMetadataImport", - "fullName": "google.cloud.metastore.v1.DataprocMetastore.CreateMetadataImport", - "service": { - "shortName": "DataprocMetastore", - "fullName": "google.cloud.metastore.v1.DataprocMetastore" - } - } - } - }, - { - "regionTag": "metastore_v1_generated_DataprocMetastore_UpdateMetadataImport_async", - "title": "DataprocMetastore updateMetadataImport Sample", - "origin": "API_DEFINITION", - "description": " Updates a single import. Only the description field of MetadataImport is supported to be updated.", - "canonical": true, - "file": "dataproc_metastore.update_metadata_import.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateMetadataImport", - "fullName": "google.cloud.metastore.v1.DataprocMetastore.UpdateMetadataImport", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "metadata_import", - "type": ".google.cloud.metastore.v1.MetadataImport" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataprocMetastoreClient", - "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient" - }, - "method": { - "shortName": "UpdateMetadataImport", - "fullName": "google.cloud.metastore.v1.DataprocMetastore.UpdateMetadataImport", - "service": { - "shortName": "DataprocMetastore", - "fullName": "google.cloud.metastore.v1.DataprocMetastore" - } - } - } - }, - { - "regionTag": "metastore_v1_generated_DataprocMetastore_ExportMetadata_async", - "title": "DataprocMetastore exportMetadata Sample", - "origin": "API_DEFINITION", - "description": " Exports metadata from a service.", - "canonical": true, - "file": "dataproc_metastore.export_metadata.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportMetadata", - "fullName": "google.cloud.metastore.v1.DataprocMetastore.ExportMetadata", - "async": true, - "parameters": [ - { - "name": "destination_gcs_folder", - "type": "TYPE_STRING" - }, - { - "name": "service", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "database_dump_type", - "type": ".google.cloud.metastore.v1.DatabaseDumpSpec.Type" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataprocMetastoreClient", - "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient" - }, - "method": { - "shortName": "ExportMetadata", - "fullName": "google.cloud.metastore.v1.DataprocMetastore.ExportMetadata", - "service": { - "shortName": "DataprocMetastore", - "fullName": "google.cloud.metastore.v1.DataprocMetastore" - } - } - } - }, - { - "regionTag": "metastore_v1_generated_DataprocMetastore_RestoreService_async", - "title": "DataprocMetastore restoreService Sample", - "origin": "API_DEFINITION", - "description": " Restores a service from a backup.", - "canonical": true, - "file": "dataproc_metastore.restore_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RestoreService", - "fullName": "google.cloud.metastore.v1.DataprocMetastore.RestoreService", - "async": true, - "parameters": [ - { - "name": "service", - "type": "TYPE_STRING" - }, - { - "name": "backup", - "type": "TYPE_STRING" - }, - { - "name": "restore_type", - "type": ".google.cloud.metastore.v1.Restore.RestoreType" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataprocMetastoreClient", - "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient" - }, - "method": { - "shortName": "RestoreService", - "fullName": "google.cloud.metastore.v1.DataprocMetastore.RestoreService", - "service": { - "shortName": "DataprocMetastore", - "fullName": "google.cloud.metastore.v1.DataprocMetastore" - } - } - } - }, - { - "regionTag": "metastore_v1_generated_DataprocMetastore_ListBackups_async", - "title": "DataprocMetastore listBackups Sample", - "origin": "API_DEFINITION", - "description": " Lists backups in a service.", - "canonical": true, - "file": "dataproc_metastore.list_backups.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBackups", - "fullName": "google.cloud.metastore.v1.DataprocMetastore.ListBackups", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.metastore.v1.ListBackupsResponse", - "client": { - "shortName": "DataprocMetastoreClient", - "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient" - }, - "method": { - "shortName": "ListBackups", - "fullName": "google.cloud.metastore.v1.DataprocMetastore.ListBackups", - "service": { - "shortName": "DataprocMetastore", - "fullName": "google.cloud.metastore.v1.DataprocMetastore" - } - } - } - }, - { - "regionTag": "metastore_v1_generated_DataprocMetastore_GetBackup_async", - "title": "DataprocMetastore getBackup Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single backup.", - "canonical": true, - "file": "dataproc_metastore.get_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBackup", - "fullName": "google.cloud.metastore.v1.DataprocMetastore.GetBackup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.metastore.v1.Backup", - "client": { - "shortName": "DataprocMetastoreClient", - "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient" - }, - "method": { - "shortName": "GetBackup", - "fullName": "google.cloud.metastore.v1.DataprocMetastore.GetBackup", - "service": { - "shortName": "DataprocMetastore", - "fullName": "google.cloud.metastore.v1.DataprocMetastore" - } - } - } - }, - { - "regionTag": "metastore_v1_generated_DataprocMetastore_CreateBackup_async", - "title": "DataprocMetastore createBackup Sample", - "origin": "API_DEFINITION", - "description": " Creates a new backup in a given project and location.", - "canonical": true, - "file": "dataproc_metastore.create_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateBackup", - "fullName": "google.cloud.metastore.v1.DataprocMetastore.CreateBackup", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "backup_id", - "type": "TYPE_STRING" - }, - { - "name": "backup", - "type": ".google.cloud.metastore.v1.Backup" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataprocMetastoreClient", - "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient" - }, - "method": { - "shortName": "CreateBackup", - "fullName": "google.cloud.metastore.v1.DataprocMetastore.CreateBackup", - "service": { - "shortName": "DataprocMetastore", - "fullName": "google.cloud.metastore.v1.DataprocMetastore" - } - } - } - }, - { - "regionTag": "metastore_v1_generated_DataprocMetastore_DeleteBackup_async", - "title": "DataprocMetastore deleteBackup Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single backup.", - "canonical": true, - "file": "dataproc_metastore.delete_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteBackup", - "fullName": "google.cloud.metastore.v1.DataprocMetastore.DeleteBackup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataprocMetastoreClient", - "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient" - }, - "method": { - "shortName": "DeleteBackup", - "fullName": "google.cloud.metastore.v1.DataprocMetastore.DeleteBackup", - "service": { - "shortName": "DataprocMetastore", - "fullName": "google.cloud.metastore.v1.DataprocMetastore" - } - } - } - }, - { - "regionTag": "metastore_v1_generated_DataprocMetastore_QueryMetadata_async", - "title": "DataprocMetastore queryMetadata Sample", - "origin": "API_DEFINITION", - "description": " Query DPMS metadata.", - "canonical": true, - "file": "dataproc_metastore.query_metadata.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryMetadata", - "fullName": "google.cloud.metastore.v1.DataprocMetastore.QueryMetadata", - "async": true, - "parameters": [ - { - "name": "service", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataprocMetastoreClient", - "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient" - }, - "method": { - "shortName": "QueryMetadata", - "fullName": "google.cloud.metastore.v1.DataprocMetastore.QueryMetadata", - "service": { - "shortName": "DataprocMetastore", - "fullName": "google.cloud.metastore.v1.DataprocMetastore" - } - } - } - }, - { - "regionTag": "metastore_v1_generated_DataprocMetastore_MoveTableToDatabase_async", - "title": "DataprocMetastore moveTableToDatabase Sample", - "origin": "API_DEFINITION", - "description": " Move a table to another database.", - "canonical": true, - "file": "dataproc_metastore.move_table_to_database.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "MoveTableToDatabase", - "fullName": "google.cloud.metastore.v1.DataprocMetastore.MoveTableToDatabase", - "async": true, - "parameters": [ - { - "name": "service", - "type": "TYPE_STRING" - }, - { - "name": "table_name", - "type": "TYPE_STRING" - }, - { - "name": "db_name", - "type": "TYPE_STRING" - }, - { - "name": "destination_db_name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataprocMetastoreClient", - "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient" - }, - "method": { - "shortName": "MoveTableToDatabase", - "fullName": "google.cloud.metastore.v1.DataprocMetastore.MoveTableToDatabase", - "service": { - "shortName": "DataprocMetastore", - "fullName": "google.cloud.metastore.v1.DataprocMetastore" - } - } - } - }, - { - "regionTag": "metastore_v1_generated_DataprocMetastore_AlterMetadataResourceLocation_async", - "title": "DataprocMetastore alterMetadataResourceLocation Sample", - "origin": "API_DEFINITION", - "description": " Alter metadata resource location. The metadata resource can be a database, table, or partition. This functionality only updates the parent directory for the respective metadata resource and does not transfer any existing data to the new location.", - "canonical": true, - "file": "dataproc_metastore.alter_metadata_resource_location.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AlterMetadataResourceLocation", - "fullName": "google.cloud.metastore.v1.DataprocMetastore.AlterMetadataResourceLocation", - "async": true, - "parameters": [ - { - "name": "service", - "type": "TYPE_STRING" - }, - { - "name": "resource_name", - "type": "TYPE_STRING" - }, - { - "name": "location_uri", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataprocMetastoreClient", - "fullName": "google.cloud.metastore.v1.DataprocMetastoreClient" - }, - "method": { - "shortName": "AlterMetadataResourceLocation", - "fullName": "google.cloud.metastore.v1.DataprocMetastore.AlterMetadataResourceLocation", - "service": { - "shortName": "DataprocMetastore", - "fullName": "google.cloud.metastore.v1.DataprocMetastore" - } - } - } - }, - { - "regionTag": "metastore_v1_generated_DataprocMetastoreFederation_ListFederations_async", - "title": "DataprocMetastore listFederations Sample", - "origin": "API_DEFINITION", - "description": " Lists federations in a project and location.", - "canonical": true, - "file": "dataproc_metastore_federation.list_federations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFederations", - "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederation.ListFederations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.metastore.v1.ListFederationsResponse", - "client": { - "shortName": "DataprocMetastoreFederationClient", - "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederationClient" - }, - "method": { - "shortName": "ListFederations", - "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederation.ListFederations", - "service": { - "shortName": "DataprocMetastoreFederation", - "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederation" - } - } - } - }, - { - "regionTag": "metastore_v1_generated_DataprocMetastoreFederation_GetFederation_async", - "title": "DataprocMetastore getFederation Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a single federation.", - "canonical": true, - "file": "dataproc_metastore_federation.get_federation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFederation", - "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederation.GetFederation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.metastore.v1.Federation", - "client": { - "shortName": "DataprocMetastoreFederationClient", - "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederationClient" - }, - "method": { - "shortName": "GetFederation", - "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederation.GetFederation", - "service": { - "shortName": "DataprocMetastoreFederation", - "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederation" - } - } - } - }, - { - "regionTag": "metastore_v1_generated_DataprocMetastoreFederation_CreateFederation_async", - "title": "DataprocMetastore createFederation Sample", - "origin": "API_DEFINITION", - "description": " Creates a metastore federation in a project and location.", - "canonical": true, - "file": "dataproc_metastore_federation.create_federation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateFederation", - "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederation.CreateFederation", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "federation_id", - "type": "TYPE_STRING" - }, - { - "name": "federation", - "type": ".google.cloud.metastore.v1.Federation" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataprocMetastoreFederationClient", - "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederationClient" - }, - "method": { - "shortName": "CreateFederation", - "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederation.CreateFederation", - "service": { - "shortName": "DataprocMetastoreFederation", - "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederation" - } - } - } - }, - { - "regionTag": "metastore_v1_generated_DataprocMetastoreFederation_UpdateFederation_async", - "title": "DataprocMetastore updateFederation Sample", - "origin": "API_DEFINITION", - "description": " Updates the fields of a federation.", - "canonical": true, - "file": "dataproc_metastore_federation.update_federation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateFederation", - "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederation.UpdateFederation", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "federation", - "type": ".google.cloud.metastore.v1.Federation" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataprocMetastoreFederationClient", - "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederationClient" - }, - "method": { - "shortName": "UpdateFederation", - "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederation.UpdateFederation", - "service": { - "shortName": "DataprocMetastoreFederation", - "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederation" - } - } - } - }, - { - "regionTag": "metastore_v1_generated_DataprocMetastoreFederation_DeleteFederation_async", - "title": "DataprocMetastore deleteFederation Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single federation.", - "canonical": true, - "file": "dataproc_metastore_federation.delete_federation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteFederation", - "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederation.DeleteFederation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataprocMetastoreFederationClient", - "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederationClient" - }, - "method": { - "shortName": "DeleteFederation", - "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederation.DeleteFederation", - "service": { - "shortName": "DataprocMetastoreFederation", - "fullName": "google.cloud.metastore.v1.DataprocMetastoreFederation" - } - } - } - } - ] -} diff --git a/packages/google-cloud-metastore/samples/generated/v1alpha/snippet_metadata_google.cloud.metastore.v1alpha.json b/packages/google-cloud-metastore/samples/generated/v1alpha/snippet_metadata_google.cloud.metastore.v1alpha.json deleted file mode 100644 index 569f3fa70c4d..000000000000 --- a/packages/google-cloud-metastore/samples/generated/v1alpha/snippet_metadata_google.cloud.metastore.v1alpha.json +++ /dev/null @@ -1,1175 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-metastore", - "version": "5.2.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.metastore.v1alpha", - "version": "v1alpha" - } - ] - }, - "snippets": [ - { - "regionTag": "metastore_v1alpha_generated_DataprocMetastore_ListServices_async", - "title": "DataprocMetastore listServices Sample", - "origin": "API_DEFINITION", - "description": " Lists services in a project and location.", - "canonical": true, - "file": "dataproc_metastore.list_services.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListServices", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.ListServices", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.metastore.v1alpha.ListServicesResponse", - "client": { - "shortName": "DataprocMetastoreClient", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient" - }, - "method": { - "shortName": "ListServices", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.ListServices", - "service": { - "shortName": "DataprocMetastore", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore" - } - } - } - }, - { - "regionTag": "metastore_v1alpha_generated_DataprocMetastore_GetService_async", - "title": "DataprocMetastore getService Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a single service.", - "canonical": true, - "file": "dataproc_metastore.get_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetService", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.GetService", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.metastore.v1alpha.Service", - "client": { - "shortName": "DataprocMetastoreClient", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient" - }, - "method": { - "shortName": "GetService", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.GetService", - "service": { - "shortName": "DataprocMetastore", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore" - } - } - } - }, - { - "regionTag": "metastore_v1alpha_generated_DataprocMetastore_CreateService_async", - "title": "DataprocMetastore createService Sample", - "origin": "API_DEFINITION", - "description": " Creates a metastore service in a project and location.", - "canonical": true, - "file": "dataproc_metastore.create_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateService", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.CreateService", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "service_id", - "type": "TYPE_STRING" - }, - { - "name": "service", - "type": ".google.cloud.metastore.v1alpha.Service" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataprocMetastoreClient", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient" - }, - "method": { - "shortName": "CreateService", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.CreateService", - "service": { - "shortName": "DataprocMetastore", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore" - } - } - } - }, - { - "regionTag": "metastore_v1alpha_generated_DataprocMetastore_UpdateService_async", - "title": "DataprocMetastore updateService Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single service.", - "canonical": true, - "file": "dataproc_metastore.update_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateService", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.UpdateService", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "service", - "type": ".google.cloud.metastore.v1alpha.Service" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataprocMetastoreClient", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient" - }, - "method": { - "shortName": "UpdateService", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.UpdateService", - "service": { - "shortName": "DataprocMetastore", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore" - } - } - } - }, - { - "regionTag": "metastore_v1alpha_generated_DataprocMetastore_DeleteService_async", - "title": "DataprocMetastore deleteService Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single service.", - "canonical": true, - "file": "dataproc_metastore.delete_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteService", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.DeleteService", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataprocMetastoreClient", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient" - }, - "method": { - "shortName": "DeleteService", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.DeleteService", - "service": { - "shortName": "DataprocMetastore", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore" - } - } - } - }, - { - "regionTag": "metastore_v1alpha_generated_DataprocMetastore_ListMetadataImports_async", - "title": "DataprocMetastore listMetadataImports Sample", - "origin": "API_DEFINITION", - "description": " Lists imports in a service.", - "canonical": true, - "file": "dataproc_metastore.list_metadata_imports.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMetadataImports", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.ListMetadataImports", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.metastore.v1alpha.ListMetadataImportsResponse", - "client": { - "shortName": "DataprocMetastoreClient", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient" - }, - "method": { - "shortName": "ListMetadataImports", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.ListMetadataImports", - "service": { - "shortName": "DataprocMetastore", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore" - } - } - } - }, - { - "regionTag": "metastore_v1alpha_generated_DataprocMetastore_GetMetadataImport_async", - "title": "DataprocMetastore getMetadataImport Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single import.", - "canonical": true, - "file": "dataproc_metastore.get_metadata_import.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMetadataImport", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.GetMetadataImport", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.metastore.v1alpha.MetadataImport", - "client": { - "shortName": "DataprocMetastoreClient", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient" - }, - "method": { - "shortName": "GetMetadataImport", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.GetMetadataImport", - "service": { - "shortName": "DataprocMetastore", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore" - } - } - } - }, - { - "regionTag": "metastore_v1alpha_generated_DataprocMetastore_CreateMetadataImport_async", - "title": "DataprocMetastore createMetadataImport Sample", - "origin": "API_DEFINITION", - "description": " Creates a new MetadataImport in a given project and location.", - "canonical": true, - "file": "dataproc_metastore.create_metadata_import.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateMetadataImport", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.CreateMetadataImport", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "metadata_import_id", - "type": "TYPE_STRING" - }, - { - "name": "metadata_import", - "type": ".google.cloud.metastore.v1alpha.MetadataImport" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataprocMetastoreClient", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient" - }, - "method": { - "shortName": "CreateMetadataImport", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.CreateMetadataImport", - "service": { - "shortName": "DataprocMetastore", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore" - } - } - } - }, - { - "regionTag": "metastore_v1alpha_generated_DataprocMetastore_UpdateMetadataImport_async", - "title": "DataprocMetastore updateMetadataImport Sample", - "origin": "API_DEFINITION", - "description": " Updates a single import. Only the description field of MetadataImport is supported to be updated.", - "canonical": true, - "file": "dataproc_metastore.update_metadata_import.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateMetadataImport", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.UpdateMetadataImport", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "metadata_import", - "type": ".google.cloud.metastore.v1alpha.MetadataImport" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataprocMetastoreClient", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient" - }, - "method": { - "shortName": "UpdateMetadataImport", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.UpdateMetadataImport", - "service": { - "shortName": "DataprocMetastore", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore" - } - } - } - }, - { - "regionTag": "metastore_v1alpha_generated_DataprocMetastore_ExportMetadata_async", - "title": "DataprocMetastore exportMetadata Sample", - "origin": "API_DEFINITION", - "description": " Exports metadata from a service.", - "canonical": true, - "file": "dataproc_metastore.export_metadata.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportMetadata", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.ExportMetadata", - "async": true, - "parameters": [ - { - "name": "destination_gcs_folder", - "type": "TYPE_STRING" - }, - { - "name": "service", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "database_dump_type", - "type": ".google.cloud.metastore.v1alpha.DatabaseDumpSpec.Type" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataprocMetastoreClient", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient" - }, - "method": { - "shortName": "ExportMetadata", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.ExportMetadata", - "service": { - "shortName": "DataprocMetastore", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore" - } - } - } - }, - { - "regionTag": "metastore_v1alpha_generated_DataprocMetastore_RestoreService_async", - "title": "DataprocMetastore restoreService Sample", - "origin": "API_DEFINITION", - "description": " Restores a service from a backup.", - "canonical": true, - "file": "dataproc_metastore.restore_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RestoreService", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.RestoreService", - "async": true, - "parameters": [ - { - "name": "service", - "type": "TYPE_STRING" - }, - { - "name": "backup", - "type": "TYPE_STRING" - }, - { - "name": "restore_type", - "type": ".google.cloud.metastore.v1alpha.Restore.RestoreType" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataprocMetastoreClient", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient" - }, - "method": { - "shortName": "RestoreService", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.RestoreService", - "service": { - "shortName": "DataprocMetastore", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore" - } - } - } - }, - { - "regionTag": "metastore_v1alpha_generated_DataprocMetastore_ListBackups_async", - "title": "DataprocMetastore listBackups Sample", - "origin": "API_DEFINITION", - "description": " Lists backups in a service.", - "canonical": true, - "file": "dataproc_metastore.list_backups.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBackups", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.ListBackups", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.metastore.v1alpha.ListBackupsResponse", - "client": { - "shortName": "DataprocMetastoreClient", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient" - }, - "method": { - "shortName": "ListBackups", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.ListBackups", - "service": { - "shortName": "DataprocMetastore", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore" - } - } - } - }, - { - "regionTag": "metastore_v1alpha_generated_DataprocMetastore_GetBackup_async", - "title": "DataprocMetastore getBackup Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single backup.", - "canonical": true, - "file": "dataproc_metastore.get_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBackup", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.GetBackup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.metastore.v1alpha.Backup", - "client": { - "shortName": "DataprocMetastoreClient", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient" - }, - "method": { - "shortName": "GetBackup", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.GetBackup", - "service": { - "shortName": "DataprocMetastore", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore" - } - } - } - }, - { - "regionTag": "metastore_v1alpha_generated_DataprocMetastore_CreateBackup_async", - "title": "DataprocMetastore createBackup Sample", - "origin": "API_DEFINITION", - "description": " Creates a new backup in a given project and location.", - "canonical": true, - "file": "dataproc_metastore.create_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateBackup", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.CreateBackup", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "backup_id", - "type": "TYPE_STRING" - }, - { - "name": "backup", - "type": ".google.cloud.metastore.v1alpha.Backup" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataprocMetastoreClient", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient" - }, - "method": { - "shortName": "CreateBackup", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.CreateBackup", - "service": { - "shortName": "DataprocMetastore", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore" - } - } - } - }, - { - "regionTag": "metastore_v1alpha_generated_DataprocMetastore_DeleteBackup_async", - "title": "DataprocMetastore deleteBackup Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single backup.", - "canonical": true, - "file": "dataproc_metastore.delete_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteBackup", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.DeleteBackup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataprocMetastoreClient", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient" - }, - "method": { - "shortName": "DeleteBackup", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.DeleteBackup", - "service": { - "shortName": "DataprocMetastore", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore" - } - } - } - }, - { - "regionTag": "metastore_v1alpha_generated_DataprocMetastore_RemoveIamPolicy_async", - "title": "DataprocMetastore removeIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Removes the attached IAM policies for a resource", - "canonical": true, - "file": "dataproc_metastore.remove_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveIamPolicy", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.RemoveIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "asynchronous", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.metastore.v1alpha.RemoveIamPolicyResponse", - "client": { - "shortName": "DataprocMetastoreClient", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient" - }, - "method": { - "shortName": "RemoveIamPolicy", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.RemoveIamPolicy", - "service": { - "shortName": "DataprocMetastore", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore" - } - } - } - }, - { - "regionTag": "metastore_v1alpha_generated_DataprocMetastore_QueryMetadata_async", - "title": "DataprocMetastore queryMetadata Sample", - "origin": "API_DEFINITION", - "description": " Query DPMS metadata.", - "canonical": true, - "file": "dataproc_metastore.query_metadata.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryMetadata", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.QueryMetadata", - "async": true, - "parameters": [ - { - "name": "service", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataprocMetastoreClient", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient" - }, - "method": { - "shortName": "QueryMetadata", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.QueryMetadata", - "service": { - "shortName": "DataprocMetastore", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore" - } - } - } - }, - { - "regionTag": "metastore_v1alpha_generated_DataprocMetastore_MoveTableToDatabase_async", - "title": "DataprocMetastore moveTableToDatabase Sample", - "origin": "API_DEFINITION", - "description": " Move a table to another database.", - "canonical": true, - "file": "dataproc_metastore.move_table_to_database.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "MoveTableToDatabase", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.MoveTableToDatabase", - "async": true, - "parameters": [ - { - "name": "service", - "type": "TYPE_STRING" - }, - { - "name": "table_name", - "type": "TYPE_STRING" - }, - { - "name": "db_name", - "type": "TYPE_STRING" - }, - { - "name": "destination_db_name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataprocMetastoreClient", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient" - }, - "method": { - "shortName": "MoveTableToDatabase", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.MoveTableToDatabase", - "service": { - "shortName": "DataprocMetastore", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore" - } - } - } - }, - { - "regionTag": "metastore_v1alpha_generated_DataprocMetastore_AlterMetadataResourceLocation_async", - "title": "DataprocMetastore alterMetadataResourceLocation Sample", - "origin": "API_DEFINITION", - "description": " Alter metadata resource location. The metadata resource can be a database, table, or partition. This functionality only updates the parent directory for the respective metadata resource and does not transfer any existing data to the new location.", - "canonical": true, - "file": "dataproc_metastore.alter_metadata_resource_location.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AlterMetadataResourceLocation", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.AlterMetadataResourceLocation", - "async": true, - "parameters": [ - { - "name": "service", - "type": "TYPE_STRING" - }, - { - "name": "resource_name", - "type": "TYPE_STRING" - }, - { - "name": "location_uri", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataprocMetastoreClient", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreClient" - }, - "method": { - "shortName": "AlterMetadataResourceLocation", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore.AlterMetadataResourceLocation", - "service": { - "shortName": "DataprocMetastore", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastore" - } - } - } - }, - { - "regionTag": "metastore_v1alpha_generated_DataprocMetastoreFederation_ListFederations_async", - "title": "DataprocMetastore listFederations Sample", - "origin": "API_DEFINITION", - "description": " Lists federations in a project and location.", - "canonical": true, - "file": "dataproc_metastore_federation.list_federations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFederations", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation.ListFederations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.metastore.v1alpha.ListFederationsResponse", - "client": { - "shortName": "DataprocMetastoreFederationClient", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederationClient" - }, - "method": { - "shortName": "ListFederations", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation.ListFederations", - "service": { - "shortName": "DataprocMetastoreFederation", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation" - } - } - } - }, - { - "regionTag": "metastore_v1alpha_generated_DataprocMetastoreFederation_GetFederation_async", - "title": "DataprocMetastore getFederation Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a single federation.", - "canonical": true, - "file": "dataproc_metastore_federation.get_federation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFederation", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation.GetFederation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.metastore.v1alpha.Federation", - "client": { - "shortName": "DataprocMetastoreFederationClient", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederationClient" - }, - "method": { - "shortName": "GetFederation", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation.GetFederation", - "service": { - "shortName": "DataprocMetastoreFederation", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation" - } - } - } - }, - { - "regionTag": "metastore_v1alpha_generated_DataprocMetastoreFederation_CreateFederation_async", - "title": "DataprocMetastore createFederation Sample", - "origin": "API_DEFINITION", - "description": " Creates a metastore federation in a project and location.", - "canonical": true, - "file": "dataproc_metastore_federation.create_federation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateFederation", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation.CreateFederation", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "federation_id", - "type": "TYPE_STRING" - }, - { - "name": "federation", - "type": ".google.cloud.metastore.v1alpha.Federation" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataprocMetastoreFederationClient", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederationClient" - }, - "method": { - "shortName": "CreateFederation", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation.CreateFederation", - "service": { - "shortName": "DataprocMetastoreFederation", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation" - } - } - } - }, - { - "regionTag": "metastore_v1alpha_generated_DataprocMetastoreFederation_UpdateFederation_async", - "title": "DataprocMetastore updateFederation Sample", - "origin": "API_DEFINITION", - "description": " Updates the fields of a federation.", - "canonical": true, - "file": "dataproc_metastore_federation.update_federation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateFederation", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation.UpdateFederation", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "federation", - "type": ".google.cloud.metastore.v1alpha.Federation" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataprocMetastoreFederationClient", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederationClient" - }, - "method": { - "shortName": "UpdateFederation", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation.UpdateFederation", - "service": { - "shortName": "DataprocMetastoreFederation", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation" - } - } - } - }, - { - "regionTag": "metastore_v1alpha_generated_DataprocMetastoreFederation_DeleteFederation_async", - "title": "DataprocMetastore deleteFederation Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single federation.", - "canonical": true, - "file": "dataproc_metastore_federation.delete_federation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteFederation", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation.DeleteFederation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataprocMetastoreFederationClient", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederationClient" - }, - "method": { - "shortName": "DeleteFederation", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation.DeleteFederation", - "service": { - "shortName": "DataprocMetastoreFederation", - "fullName": "google.cloud.metastore.v1alpha.DataprocMetastoreFederation" - } - } - } - } - ] -} diff --git a/packages/google-cloud-metastore/samples/generated/v1beta/snippet_metadata_google.cloud.metastore.v1beta.json b/packages/google-cloud-metastore/samples/generated/v1beta/snippet_metadata_google.cloud.metastore.v1beta.json deleted file mode 100644 index 270235cd4063..000000000000 --- a/packages/google-cloud-metastore/samples/generated/v1beta/snippet_metadata_google.cloud.metastore.v1beta.json +++ /dev/null @@ -1,1175 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-metastore", - "version": "5.2.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.metastore.v1beta", - "version": "v1beta" - } - ] - }, - "snippets": [ - { - "regionTag": "metastore_v1beta_generated_DataprocMetastore_ListServices_async", - "title": "DataprocMetastore listServices Sample", - "origin": "API_DEFINITION", - "description": " Lists services in a project and location.", - "canonical": true, - "file": "dataproc_metastore.list_services.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListServices", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.ListServices", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.metastore.v1beta.ListServicesResponse", - "client": { - "shortName": "DataprocMetastoreClient", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient" - }, - "method": { - "shortName": "ListServices", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.ListServices", - "service": { - "shortName": "DataprocMetastore", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastore" - } - } - } - }, - { - "regionTag": "metastore_v1beta_generated_DataprocMetastore_GetService_async", - "title": "DataprocMetastore getService Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a single service.", - "canonical": true, - "file": "dataproc_metastore.get_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetService", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.GetService", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.metastore.v1beta.Service", - "client": { - "shortName": "DataprocMetastoreClient", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient" - }, - "method": { - "shortName": "GetService", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.GetService", - "service": { - "shortName": "DataprocMetastore", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastore" - } - } - } - }, - { - "regionTag": "metastore_v1beta_generated_DataprocMetastore_CreateService_async", - "title": "DataprocMetastore createService Sample", - "origin": "API_DEFINITION", - "description": " Creates a metastore service in a project and location.", - "canonical": true, - "file": "dataproc_metastore.create_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateService", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.CreateService", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "service_id", - "type": "TYPE_STRING" - }, - { - "name": "service", - "type": ".google.cloud.metastore.v1beta.Service" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataprocMetastoreClient", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient" - }, - "method": { - "shortName": "CreateService", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.CreateService", - "service": { - "shortName": "DataprocMetastore", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastore" - } - } - } - }, - { - "regionTag": "metastore_v1beta_generated_DataprocMetastore_UpdateService_async", - "title": "DataprocMetastore updateService Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single service.", - "canonical": true, - "file": "dataproc_metastore.update_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateService", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.UpdateService", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "service", - "type": ".google.cloud.metastore.v1beta.Service" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataprocMetastoreClient", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient" - }, - "method": { - "shortName": "UpdateService", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.UpdateService", - "service": { - "shortName": "DataprocMetastore", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastore" - } - } - } - }, - { - "regionTag": "metastore_v1beta_generated_DataprocMetastore_DeleteService_async", - "title": "DataprocMetastore deleteService Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single service.", - "canonical": true, - "file": "dataproc_metastore.delete_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteService", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.DeleteService", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataprocMetastoreClient", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient" - }, - "method": { - "shortName": "DeleteService", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.DeleteService", - "service": { - "shortName": "DataprocMetastore", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastore" - } - } - } - }, - { - "regionTag": "metastore_v1beta_generated_DataprocMetastore_ListMetadataImports_async", - "title": "DataprocMetastore listMetadataImports Sample", - "origin": "API_DEFINITION", - "description": " Lists imports in a service.", - "canonical": true, - "file": "dataproc_metastore.list_metadata_imports.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMetadataImports", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.ListMetadataImports", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.metastore.v1beta.ListMetadataImportsResponse", - "client": { - "shortName": "DataprocMetastoreClient", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient" - }, - "method": { - "shortName": "ListMetadataImports", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.ListMetadataImports", - "service": { - "shortName": "DataprocMetastore", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastore" - } - } - } - }, - { - "regionTag": "metastore_v1beta_generated_DataprocMetastore_GetMetadataImport_async", - "title": "DataprocMetastore getMetadataImport Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single import.", - "canonical": true, - "file": "dataproc_metastore.get_metadata_import.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMetadataImport", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.GetMetadataImport", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.metastore.v1beta.MetadataImport", - "client": { - "shortName": "DataprocMetastoreClient", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient" - }, - "method": { - "shortName": "GetMetadataImport", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.GetMetadataImport", - "service": { - "shortName": "DataprocMetastore", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastore" - } - } - } - }, - { - "regionTag": "metastore_v1beta_generated_DataprocMetastore_CreateMetadataImport_async", - "title": "DataprocMetastore createMetadataImport Sample", - "origin": "API_DEFINITION", - "description": " Creates a new MetadataImport in a given project and location.", - "canonical": true, - "file": "dataproc_metastore.create_metadata_import.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateMetadataImport", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.CreateMetadataImport", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "metadata_import_id", - "type": "TYPE_STRING" - }, - { - "name": "metadata_import", - "type": ".google.cloud.metastore.v1beta.MetadataImport" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataprocMetastoreClient", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient" - }, - "method": { - "shortName": "CreateMetadataImport", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.CreateMetadataImport", - "service": { - "shortName": "DataprocMetastore", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastore" - } - } - } - }, - { - "regionTag": "metastore_v1beta_generated_DataprocMetastore_UpdateMetadataImport_async", - "title": "DataprocMetastore updateMetadataImport Sample", - "origin": "API_DEFINITION", - "description": " Updates a single import. Only the description field of MetadataImport is supported to be updated.", - "canonical": true, - "file": "dataproc_metastore.update_metadata_import.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateMetadataImport", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.UpdateMetadataImport", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "metadata_import", - "type": ".google.cloud.metastore.v1beta.MetadataImport" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataprocMetastoreClient", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient" - }, - "method": { - "shortName": "UpdateMetadataImport", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.UpdateMetadataImport", - "service": { - "shortName": "DataprocMetastore", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastore" - } - } - } - }, - { - "regionTag": "metastore_v1beta_generated_DataprocMetastore_ExportMetadata_async", - "title": "DataprocMetastore exportMetadata Sample", - "origin": "API_DEFINITION", - "description": " Exports metadata from a service.", - "canonical": true, - "file": "dataproc_metastore.export_metadata.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportMetadata", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.ExportMetadata", - "async": true, - "parameters": [ - { - "name": "destination_gcs_folder", - "type": "TYPE_STRING" - }, - { - "name": "service", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "database_dump_type", - "type": ".google.cloud.metastore.v1beta.DatabaseDumpSpec.Type" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataprocMetastoreClient", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient" - }, - "method": { - "shortName": "ExportMetadata", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.ExportMetadata", - "service": { - "shortName": "DataprocMetastore", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastore" - } - } - } - }, - { - "regionTag": "metastore_v1beta_generated_DataprocMetastore_RestoreService_async", - "title": "DataprocMetastore restoreService Sample", - "origin": "API_DEFINITION", - "description": " Restores a service from a backup.", - "canonical": true, - "file": "dataproc_metastore.restore_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RestoreService", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.RestoreService", - "async": true, - "parameters": [ - { - "name": "service", - "type": "TYPE_STRING" - }, - { - "name": "backup", - "type": "TYPE_STRING" - }, - { - "name": "restore_type", - "type": ".google.cloud.metastore.v1beta.Restore.RestoreType" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataprocMetastoreClient", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient" - }, - "method": { - "shortName": "RestoreService", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.RestoreService", - "service": { - "shortName": "DataprocMetastore", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastore" - } - } - } - }, - { - "regionTag": "metastore_v1beta_generated_DataprocMetastore_ListBackups_async", - "title": "DataprocMetastore listBackups Sample", - "origin": "API_DEFINITION", - "description": " Lists backups in a service.", - "canonical": true, - "file": "dataproc_metastore.list_backups.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBackups", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.ListBackups", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.metastore.v1beta.ListBackupsResponse", - "client": { - "shortName": "DataprocMetastoreClient", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient" - }, - "method": { - "shortName": "ListBackups", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.ListBackups", - "service": { - "shortName": "DataprocMetastore", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastore" - } - } - } - }, - { - "regionTag": "metastore_v1beta_generated_DataprocMetastore_GetBackup_async", - "title": "DataprocMetastore getBackup Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single backup.", - "canonical": true, - "file": "dataproc_metastore.get_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBackup", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.GetBackup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.metastore.v1beta.Backup", - "client": { - "shortName": "DataprocMetastoreClient", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient" - }, - "method": { - "shortName": "GetBackup", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.GetBackup", - "service": { - "shortName": "DataprocMetastore", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastore" - } - } - } - }, - { - "regionTag": "metastore_v1beta_generated_DataprocMetastore_CreateBackup_async", - "title": "DataprocMetastore createBackup Sample", - "origin": "API_DEFINITION", - "description": " Creates a new backup in a given project and location.", - "canonical": true, - "file": "dataproc_metastore.create_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateBackup", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.CreateBackup", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "backup_id", - "type": "TYPE_STRING" - }, - { - "name": "backup", - "type": ".google.cloud.metastore.v1beta.Backup" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataprocMetastoreClient", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient" - }, - "method": { - "shortName": "CreateBackup", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.CreateBackup", - "service": { - "shortName": "DataprocMetastore", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastore" - } - } - } - }, - { - "regionTag": "metastore_v1beta_generated_DataprocMetastore_DeleteBackup_async", - "title": "DataprocMetastore deleteBackup Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single backup.", - "canonical": true, - "file": "dataproc_metastore.delete_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteBackup", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.DeleteBackup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataprocMetastoreClient", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient" - }, - "method": { - "shortName": "DeleteBackup", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.DeleteBackup", - "service": { - "shortName": "DataprocMetastore", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastore" - } - } - } - }, - { - "regionTag": "metastore_v1beta_generated_DataprocMetastore_RemoveIamPolicy_async", - "title": "DataprocMetastore removeIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Removes the attached IAM policies for a resource", - "canonical": true, - "file": "dataproc_metastore.remove_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveIamPolicy", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.RemoveIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "asynchronous", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.metastore.v1beta.RemoveIamPolicyResponse", - "client": { - "shortName": "DataprocMetastoreClient", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient" - }, - "method": { - "shortName": "RemoveIamPolicy", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.RemoveIamPolicy", - "service": { - "shortName": "DataprocMetastore", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastore" - } - } - } - }, - { - "regionTag": "metastore_v1beta_generated_DataprocMetastore_QueryMetadata_async", - "title": "DataprocMetastore queryMetadata Sample", - "origin": "API_DEFINITION", - "description": " Query DPMS metadata.", - "canonical": true, - "file": "dataproc_metastore.query_metadata.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryMetadata", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.QueryMetadata", - "async": true, - "parameters": [ - { - "name": "service", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataprocMetastoreClient", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient" - }, - "method": { - "shortName": "QueryMetadata", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.QueryMetadata", - "service": { - "shortName": "DataprocMetastore", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastore" - } - } - } - }, - { - "regionTag": "metastore_v1beta_generated_DataprocMetastore_MoveTableToDatabase_async", - "title": "DataprocMetastore moveTableToDatabase Sample", - "origin": "API_DEFINITION", - "description": " Move a table to another database.", - "canonical": true, - "file": "dataproc_metastore.move_table_to_database.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "MoveTableToDatabase", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.MoveTableToDatabase", - "async": true, - "parameters": [ - { - "name": "service", - "type": "TYPE_STRING" - }, - { - "name": "table_name", - "type": "TYPE_STRING" - }, - { - "name": "db_name", - "type": "TYPE_STRING" - }, - { - "name": "destination_db_name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataprocMetastoreClient", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient" - }, - "method": { - "shortName": "MoveTableToDatabase", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.MoveTableToDatabase", - "service": { - "shortName": "DataprocMetastore", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastore" - } - } - } - }, - { - "regionTag": "metastore_v1beta_generated_DataprocMetastore_AlterMetadataResourceLocation_async", - "title": "DataprocMetastore alterMetadataResourceLocation Sample", - "origin": "API_DEFINITION", - "description": " Alter metadata resource location. The metadata resource can be a database, table, or partition. This functionality only updates the parent directory for the respective metadata resource and does not transfer any existing data to the new location.", - "canonical": true, - "file": "dataproc_metastore.alter_metadata_resource_location.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AlterMetadataResourceLocation", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.AlterMetadataResourceLocation", - "async": true, - "parameters": [ - { - "name": "service", - "type": "TYPE_STRING" - }, - { - "name": "resource_name", - "type": "TYPE_STRING" - }, - { - "name": "location_uri", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataprocMetastoreClient", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreClient" - }, - "method": { - "shortName": "AlterMetadataResourceLocation", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastore.AlterMetadataResourceLocation", - "service": { - "shortName": "DataprocMetastore", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastore" - } - } - } - }, - { - "regionTag": "metastore_v1beta_generated_DataprocMetastoreFederation_ListFederations_async", - "title": "DataprocMetastore listFederations Sample", - "origin": "API_DEFINITION", - "description": " Lists federations in a project and location.", - "canonical": true, - "file": "dataproc_metastore_federation.list_federations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFederations", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation.ListFederations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.metastore.v1beta.ListFederationsResponse", - "client": { - "shortName": "DataprocMetastoreFederationClient", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederationClient" - }, - "method": { - "shortName": "ListFederations", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation.ListFederations", - "service": { - "shortName": "DataprocMetastoreFederation", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation" - } - } - } - }, - { - "regionTag": "metastore_v1beta_generated_DataprocMetastoreFederation_GetFederation_async", - "title": "DataprocMetastore getFederation Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a single federation.", - "canonical": true, - "file": "dataproc_metastore_federation.get_federation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFederation", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation.GetFederation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.metastore.v1beta.Federation", - "client": { - "shortName": "DataprocMetastoreFederationClient", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederationClient" - }, - "method": { - "shortName": "GetFederation", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation.GetFederation", - "service": { - "shortName": "DataprocMetastoreFederation", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation" - } - } - } - }, - { - "regionTag": "metastore_v1beta_generated_DataprocMetastoreFederation_CreateFederation_async", - "title": "DataprocMetastore createFederation Sample", - "origin": "API_DEFINITION", - "description": " Creates a metastore federation in a project and location.", - "canonical": true, - "file": "dataproc_metastore_federation.create_federation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateFederation", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation.CreateFederation", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "federation_id", - "type": "TYPE_STRING" - }, - { - "name": "federation", - "type": ".google.cloud.metastore.v1beta.Federation" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataprocMetastoreFederationClient", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederationClient" - }, - "method": { - "shortName": "CreateFederation", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation.CreateFederation", - "service": { - "shortName": "DataprocMetastoreFederation", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation" - } - } - } - }, - { - "regionTag": "metastore_v1beta_generated_DataprocMetastoreFederation_UpdateFederation_async", - "title": "DataprocMetastore updateFederation Sample", - "origin": "API_DEFINITION", - "description": " Updates the fields of a federation.", - "canonical": true, - "file": "dataproc_metastore_federation.update_federation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateFederation", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation.UpdateFederation", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "federation", - "type": ".google.cloud.metastore.v1beta.Federation" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataprocMetastoreFederationClient", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederationClient" - }, - "method": { - "shortName": "UpdateFederation", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation.UpdateFederation", - "service": { - "shortName": "DataprocMetastoreFederation", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation" - } - } - } - }, - { - "regionTag": "metastore_v1beta_generated_DataprocMetastoreFederation_DeleteFederation_async", - "title": "DataprocMetastore deleteFederation Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single federation.", - "canonical": true, - "file": "dataproc_metastore_federation.delete_federation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteFederation", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation.DeleteFederation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataprocMetastoreFederationClient", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederationClient" - }, - "method": { - "shortName": "DeleteFederation", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation.DeleteFederation", - "service": { - "shortName": "DataprocMetastoreFederation", - "fullName": "google.cloud.metastore.v1beta.DataprocMetastoreFederation" - } - } - } - } - ] -} diff --git a/packages/google-cloud-migrationcenter/samples/generated/v1/snippet_metadata_google.cloud.migrationcenter.v1.json b/packages/google-cloud-migrationcenter/samples/generated/v1/snippet_metadata_google.cloud.migrationcenter.v1.json deleted file mode 100644 index d28c91a30d66..000000000000 --- a/packages/google-cloud-migrationcenter/samples/generated/v1/snippet_metadata_google.cloud.migrationcenter.v1.json +++ /dev/null @@ -1,2331 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-migrationcenter", - "version": "2.2.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.migrationcenter.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "migrationcenter_v1_generated_MigrationCenter_ListAssets_async", - "title": "MigrationCenter listAssets Sample", - "origin": "API_DEFINITION", - "description": " Lists all the assets in a given project and location.", - "canonical": true, - "file": "migration_center.list_assets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAssets", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.ListAssets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.migrationcenter.v1.AssetView" - } - ], - "resultType": ".google.cloud.migrationcenter.v1.ListAssetsResponse", - "client": { - "shortName": "MigrationCenterClient", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenterClient" - }, - "method": { - "shortName": "ListAssets", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.ListAssets", - "service": { - "shortName": "MigrationCenter", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter" - } - } - } - }, - { - "regionTag": "migrationcenter_v1_generated_MigrationCenter_GetAsset_async", - "title": "MigrationCenter getAsset Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of an asset.", - "canonical": true, - "file": "migration_center.get_asset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAsset", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.GetAsset", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.migrationcenter.v1.AssetView" - } - ], - "resultType": ".google.cloud.migrationcenter.v1.Asset", - "client": { - "shortName": "MigrationCenterClient", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenterClient" - }, - "method": { - "shortName": "GetAsset", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.GetAsset", - "service": { - "shortName": "MigrationCenter", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter" - } - } - } - }, - { - "regionTag": "migrationcenter_v1_generated_MigrationCenter_UpdateAsset_async", - "title": "MigrationCenter updateAsset Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of an asset.", - "canonical": true, - "file": "migration_center.update_asset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAsset", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.UpdateAsset", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "asset", - "type": ".google.cloud.migrationcenter.v1.Asset" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.migrationcenter.v1.Asset", - "client": { - "shortName": "MigrationCenterClient", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenterClient" - }, - "method": { - "shortName": "UpdateAsset", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.UpdateAsset", - "service": { - "shortName": "MigrationCenter", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter" - } - } - } - }, - { - "regionTag": "migrationcenter_v1_generated_MigrationCenter_BatchUpdateAssets_async", - "title": "MigrationCenter batchUpdateAssets Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a list of assets.", - "canonical": true, - "file": "migration_center.batch_update_assets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchUpdateAssets", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.BatchUpdateAssets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.migrationcenter.v1.BatchUpdateAssetsResponse", - "client": { - "shortName": "MigrationCenterClient", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenterClient" - }, - "method": { - "shortName": "BatchUpdateAssets", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.BatchUpdateAssets", - "service": { - "shortName": "MigrationCenter", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter" - } - } - } - }, - { - "regionTag": "migrationcenter_v1_generated_MigrationCenter_DeleteAsset_async", - "title": "MigrationCenter deleteAsset Sample", - "origin": "API_DEFINITION", - "description": " Deletes an asset.", - "canonical": true, - "file": "migration_center.delete_asset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAsset", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.DeleteAsset", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "MigrationCenterClient", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenterClient" - }, - "method": { - "shortName": "DeleteAsset", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.DeleteAsset", - "service": { - "shortName": "MigrationCenter", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter" - } - } - } - }, - { - "regionTag": "migrationcenter_v1_generated_MigrationCenter_BatchDeleteAssets_async", - "title": "MigrationCenter batchDeleteAssets Sample", - "origin": "API_DEFINITION", - "description": " Deletes list of Assets.", - "canonical": true, - "file": "migration_center.batch_delete_assets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchDeleteAssets", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.BatchDeleteAssets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "names", - "type": "TYPE_STRING[]" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "MigrationCenterClient", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenterClient" - }, - "method": { - "shortName": "BatchDeleteAssets", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.BatchDeleteAssets", - "service": { - "shortName": "MigrationCenter", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter" - } - } - } - }, - { - "regionTag": "migrationcenter_v1_generated_MigrationCenter_ReportAssetFrames_async", - "title": "MigrationCenter reportAssetFrames Sample", - "origin": "API_DEFINITION", - "description": " Reports a set of frames.", - "canonical": true, - "file": "migration_center.report_asset_frames.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReportAssetFrames", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.ReportAssetFrames", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "frames", - "type": ".google.cloud.migrationcenter.v1.Frames" - }, - { - "name": "source", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.migrationcenter.v1.ReportAssetFramesResponse", - "client": { - "shortName": "MigrationCenterClient", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenterClient" - }, - "method": { - "shortName": "ReportAssetFrames", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.ReportAssetFrames", - "service": { - "shortName": "MigrationCenter", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter" - } - } - } - }, - { - "regionTag": "migrationcenter_v1_generated_MigrationCenter_AggregateAssetsValues_async", - "title": "MigrationCenter aggregateAssetsValues Sample", - "origin": "API_DEFINITION", - "description": " Aggregates the requested fields based on provided function.", - "canonical": true, - "file": "migration_center.aggregate_assets_values.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregateAssetsValues", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.AggregateAssetsValues", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "aggregations", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.migrationcenter.v1.AggregateAssetsValuesResponse", - "client": { - "shortName": "MigrationCenterClient", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenterClient" - }, - "method": { - "shortName": "AggregateAssetsValues", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.AggregateAssetsValues", - "service": { - "shortName": "MigrationCenter", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter" - } - } - } - }, - { - "regionTag": "migrationcenter_v1_generated_MigrationCenter_CreateImportJob_async", - "title": "MigrationCenter createImportJob Sample", - "origin": "API_DEFINITION", - "description": " Creates an import job.", - "canonical": true, - "file": "migration_center.create_import_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateImportJob", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.CreateImportJob", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "import_job_id", - "type": "TYPE_STRING" - }, - { - "name": "import_job", - "type": ".google.cloud.migrationcenter.v1.ImportJob" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MigrationCenterClient", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenterClient" - }, - "method": { - "shortName": "CreateImportJob", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.CreateImportJob", - "service": { - "shortName": "MigrationCenter", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter" - } - } - } - }, - { - "regionTag": "migrationcenter_v1_generated_MigrationCenter_ListImportJobs_async", - "title": "MigrationCenter listImportJobs Sample", - "origin": "API_DEFINITION", - "description": " Lists all import jobs.", - "canonical": true, - "file": "migration_center.list_import_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListImportJobs", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.ListImportJobs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.migrationcenter.v1.ImportJobView" - } - ], - "resultType": ".google.cloud.migrationcenter.v1.ListImportJobsResponse", - "client": { - "shortName": "MigrationCenterClient", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenterClient" - }, - "method": { - "shortName": "ListImportJobs", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.ListImportJobs", - "service": { - "shortName": "MigrationCenter", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter" - } - } - } - }, - { - "regionTag": "migrationcenter_v1_generated_MigrationCenter_GetImportJob_async", - "title": "MigrationCenter getImportJob Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of an import job.", - "canonical": true, - "file": "migration_center.get_import_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetImportJob", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.GetImportJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.migrationcenter.v1.ImportJobView" - } - ], - "resultType": ".google.cloud.migrationcenter.v1.ImportJob", - "client": { - "shortName": "MigrationCenterClient", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenterClient" - }, - "method": { - "shortName": "GetImportJob", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.GetImportJob", - "service": { - "shortName": "MigrationCenter", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter" - } - } - } - }, - { - "regionTag": "migrationcenter_v1_generated_MigrationCenter_DeleteImportJob_async", - "title": "MigrationCenter deleteImportJob Sample", - "origin": "API_DEFINITION", - "description": " Deletes an import job.", - "canonical": true, - "file": "migration_center.delete_import_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteImportJob", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.DeleteImportJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MigrationCenterClient", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenterClient" - }, - "method": { - "shortName": "DeleteImportJob", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.DeleteImportJob", - "service": { - "shortName": "MigrationCenter", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter" - } - } - } - }, - { - "regionTag": "migrationcenter_v1_generated_MigrationCenter_UpdateImportJob_async", - "title": "MigrationCenter updateImportJob Sample", - "origin": "API_DEFINITION", - "description": " Updates an import job.", - "canonical": true, - "file": "migration_center.update_import_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateImportJob", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.UpdateImportJob", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "import_job", - "type": ".google.cloud.migrationcenter.v1.ImportJob" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MigrationCenterClient", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenterClient" - }, - "method": { - "shortName": "UpdateImportJob", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.UpdateImportJob", - "service": { - "shortName": "MigrationCenter", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter" - } - } - } - }, - { - "regionTag": "migrationcenter_v1_generated_MigrationCenter_ValidateImportJob_async", - "title": "MigrationCenter validateImportJob Sample", - "origin": "API_DEFINITION", - "description": " Validates an import job.", - "canonical": true, - "file": "migration_center.validate_import_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ValidateImportJob", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.ValidateImportJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MigrationCenterClient", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenterClient" - }, - "method": { - "shortName": "ValidateImportJob", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.ValidateImportJob", - "service": { - "shortName": "MigrationCenter", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter" - } - } - } - }, - { - "regionTag": "migrationcenter_v1_generated_MigrationCenter_RunImportJob_async", - "title": "MigrationCenter runImportJob Sample", - "origin": "API_DEFINITION", - "description": " Runs an import job.", - "canonical": true, - "file": "migration_center.run_import_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RunImportJob", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.RunImportJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MigrationCenterClient", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenterClient" - }, - "method": { - "shortName": "RunImportJob", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.RunImportJob", - "service": { - "shortName": "MigrationCenter", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter" - } - } - } - }, - { - "regionTag": "migrationcenter_v1_generated_MigrationCenter_GetImportDataFile_async", - "title": "MigrationCenter getImportDataFile Sample", - "origin": "API_DEFINITION", - "description": " Gets an import data file.", - "canonical": true, - "file": "migration_center.get_import_data_file.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetImportDataFile", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.GetImportDataFile", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.migrationcenter.v1.ImportDataFile", - "client": { - "shortName": "MigrationCenterClient", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenterClient" - }, - "method": { - "shortName": "GetImportDataFile", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.GetImportDataFile", - "service": { - "shortName": "MigrationCenter", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter" - } - } - } - }, - { - "regionTag": "migrationcenter_v1_generated_MigrationCenter_ListImportDataFiles_async", - "title": "MigrationCenter listImportDataFiles Sample", - "origin": "API_DEFINITION", - "description": " List import data files.", - "canonical": true, - "file": "migration_center.list_import_data_files.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListImportDataFiles", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.ListImportDataFiles", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.migrationcenter.v1.ListImportDataFilesResponse", - "client": { - "shortName": "MigrationCenterClient", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenterClient" - }, - "method": { - "shortName": "ListImportDataFiles", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.ListImportDataFiles", - "service": { - "shortName": "MigrationCenter", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter" - } - } - } - }, - { - "regionTag": "migrationcenter_v1_generated_MigrationCenter_CreateImportDataFile_async", - "title": "MigrationCenter createImportDataFile Sample", - "origin": "API_DEFINITION", - "description": " Creates an import data file.", - "canonical": true, - "file": "migration_center.create_import_data_file.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateImportDataFile", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.CreateImportDataFile", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "import_data_file_id", - "type": "TYPE_STRING" - }, - { - "name": "import_data_file", - "type": ".google.cloud.migrationcenter.v1.ImportDataFile" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MigrationCenterClient", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenterClient" - }, - "method": { - "shortName": "CreateImportDataFile", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.CreateImportDataFile", - "service": { - "shortName": "MigrationCenter", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter" - } - } - } - }, - { - "regionTag": "migrationcenter_v1_generated_MigrationCenter_DeleteImportDataFile_async", - "title": "MigrationCenter deleteImportDataFile Sample", - "origin": "API_DEFINITION", - "description": " Delete an import data file.", - "canonical": true, - "file": "migration_center.delete_import_data_file.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteImportDataFile", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.DeleteImportDataFile", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MigrationCenterClient", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenterClient" - }, - "method": { - "shortName": "DeleteImportDataFile", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.DeleteImportDataFile", - "service": { - "shortName": "MigrationCenter", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter" - } - } - } - }, - { - "regionTag": "migrationcenter_v1_generated_MigrationCenter_ListGroups_async", - "title": "MigrationCenter listGroups Sample", - "origin": "API_DEFINITION", - "description": " Lists all groups in a given project and location.", - "canonical": true, - "file": "migration_center.list_groups.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListGroups", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.ListGroups", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.migrationcenter.v1.ListGroupsResponse", - "client": { - "shortName": "MigrationCenterClient", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenterClient" - }, - "method": { - "shortName": "ListGroups", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.ListGroups", - "service": { - "shortName": "MigrationCenter", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter" - } - } - } - }, - { - "regionTag": "migrationcenter_v1_generated_MigrationCenter_GetGroup_async", - "title": "MigrationCenter getGroup Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a group.", - "canonical": true, - "file": "migration_center.get_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetGroup", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.GetGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.migrationcenter.v1.Group", - "client": { - "shortName": "MigrationCenterClient", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenterClient" - }, - "method": { - "shortName": "GetGroup", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.GetGroup", - "service": { - "shortName": "MigrationCenter", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter" - } - } - } - }, - { - "regionTag": "migrationcenter_v1_generated_MigrationCenter_CreateGroup_async", - "title": "MigrationCenter createGroup Sample", - "origin": "API_DEFINITION", - "description": " Creates a new group in a given project and location.", - "canonical": true, - "file": "migration_center.create_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateGroup", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.CreateGroup", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "group_id", - "type": "TYPE_STRING" - }, - { - "name": "group", - "type": ".google.cloud.migrationcenter.v1.Group" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MigrationCenterClient", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenterClient" - }, - "method": { - "shortName": "CreateGroup", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.CreateGroup", - "service": { - "shortName": "MigrationCenter", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter" - } - } - } - }, - { - "regionTag": "migrationcenter_v1_generated_MigrationCenter_UpdateGroup_async", - "title": "MigrationCenter updateGroup Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a group.", - "canonical": true, - "file": "migration_center.update_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateGroup", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.UpdateGroup", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "group", - "type": ".google.cloud.migrationcenter.v1.Group" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MigrationCenterClient", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenterClient" - }, - "method": { - "shortName": "UpdateGroup", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.UpdateGroup", - "service": { - "shortName": "MigrationCenter", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter" - } - } - } - }, - { - "regionTag": "migrationcenter_v1_generated_MigrationCenter_DeleteGroup_async", - "title": "MigrationCenter deleteGroup Sample", - "origin": "API_DEFINITION", - "description": " Deletes a group.", - "canonical": true, - "file": "migration_center.delete_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteGroup", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.DeleteGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MigrationCenterClient", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenterClient" - }, - "method": { - "shortName": "DeleteGroup", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.DeleteGroup", - "service": { - "shortName": "MigrationCenter", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter" - } - } - } - }, - { - "regionTag": "migrationcenter_v1_generated_MigrationCenter_AddAssetsToGroup_async", - "title": "MigrationCenter addAssetsToGroup Sample", - "origin": "API_DEFINITION", - "description": " Adds assets to a group.", - "canonical": true, - "file": "migration_center.add_assets_to_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddAssetsToGroup", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.AddAssetsToGroup", - "async": true, - "parameters": [ - { - "name": "group", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "assets", - "type": ".google.cloud.migrationcenter.v1.AssetList" - }, - { - "name": "allow_existing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MigrationCenterClient", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenterClient" - }, - "method": { - "shortName": "AddAssetsToGroup", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.AddAssetsToGroup", - "service": { - "shortName": "MigrationCenter", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter" - } - } - } - }, - { - "regionTag": "migrationcenter_v1_generated_MigrationCenter_RemoveAssetsFromGroup_async", - "title": "MigrationCenter removeAssetsFromGroup Sample", - "origin": "API_DEFINITION", - "description": " Removes assets from a group.", - "canonical": true, - "file": "migration_center.remove_assets_from_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveAssetsFromGroup", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.RemoveAssetsFromGroup", - "async": true, - "parameters": [ - { - "name": "group", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "assets", - "type": ".google.cloud.migrationcenter.v1.AssetList" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MigrationCenterClient", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenterClient" - }, - "method": { - "shortName": "RemoveAssetsFromGroup", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.RemoveAssetsFromGroup", - "service": { - "shortName": "MigrationCenter", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter" - } - } - } - }, - { - "regionTag": "migrationcenter_v1_generated_MigrationCenter_ListErrorFrames_async", - "title": "MigrationCenter listErrorFrames Sample", - "origin": "API_DEFINITION", - "description": " Lists all error frames in a given source and location.", - "canonical": true, - "file": "migration_center.list_error_frames.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListErrorFrames", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.ListErrorFrames", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.migrationcenter.v1.ErrorFrameView" - } - ], - "resultType": ".google.cloud.migrationcenter.v1.ListErrorFramesResponse", - "client": { - "shortName": "MigrationCenterClient", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenterClient" - }, - "method": { - "shortName": "ListErrorFrames", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.ListErrorFrames", - "service": { - "shortName": "MigrationCenter", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter" - } - } - } - }, - { - "regionTag": "migrationcenter_v1_generated_MigrationCenter_GetErrorFrame_async", - "title": "MigrationCenter getErrorFrame Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of an error frame.", - "canonical": true, - "file": "migration_center.get_error_frame.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetErrorFrame", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.GetErrorFrame", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.migrationcenter.v1.ErrorFrameView" - } - ], - "resultType": ".google.cloud.migrationcenter.v1.ErrorFrame", - "client": { - "shortName": "MigrationCenterClient", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenterClient" - }, - "method": { - "shortName": "GetErrorFrame", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.GetErrorFrame", - "service": { - "shortName": "MigrationCenter", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter" - } - } - } - }, - { - "regionTag": "migrationcenter_v1_generated_MigrationCenter_ListSources_async", - "title": "MigrationCenter listSources Sample", - "origin": "API_DEFINITION", - "description": " Lists all the sources in a given project and location.", - "canonical": true, - "file": "migration_center.list_sources.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSources", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.ListSources", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.migrationcenter.v1.ListSourcesResponse", - "client": { - "shortName": "MigrationCenterClient", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenterClient" - }, - "method": { - "shortName": "ListSources", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.ListSources", - "service": { - "shortName": "MigrationCenter", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter" - } - } - } - }, - { - "regionTag": "migrationcenter_v1_generated_MigrationCenter_GetSource_async", - "title": "MigrationCenter getSource Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a source.", - "canonical": true, - "file": "migration_center.get_source.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSource", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.GetSource", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.migrationcenter.v1.Source", - "client": { - "shortName": "MigrationCenterClient", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenterClient" - }, - "method": { - "shortName": "GetSource", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.GetSource", - "service": { - "shortName": "MigrationCenter", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter" - } - } - } - }, - { - "regionTag": "migrationcenter_v1_generated_MigrationCenter_CreateSource_async", - "title": "MigrationCenter createSource Sample", - "origin": "API_DEFINITION", - "description": " Creates a new source in a given project and location.", - "canonical": true, - "file": "migration_center.create_source.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSource", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.CreateSource", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "source_id", - "type": "TYPE_STRING" - }, - { - "name": "source", - "type": ".google.cloud.migrationcenter.v1.Source" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MigrationCenterClient", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenterClient" - }, - "method": { - "shortName": "CreateSource", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.CreateSource", - "service": { - "shortName": "MigrationCenter", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter" - } - } - } - }, - { - "regionTag": "migrationcenter_v1_generated_MigrationCenter_UpdateSource_async", - "title": "MigrationCenter updateSource Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a source.", - "canonical": true, - "file": "migration_center.update_source.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSource", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.UpdateSource", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "source", - "type": ".google.cloud.migrationcenter.v1.Source" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MigrationCenterClient", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenterClient" - }, - "method": { - "shortName": "UpdateSource", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.UpdateSource", - "service": { - "shortName": "MigrationCenter", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter" - } - } - } - }, - { - "regionTag": "migrationcenter_v1_generated_MigrationCenter_DeleteSource_async", - "title": "MigrationCenter deleteSource Sample", - "origin": "API_DEFINITION", - "description": " Deletes a source.", - "canonical": true, - "file": "migration_center.delete_source.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSource", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.DeleteSource", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MigrationCenterClient", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenterClient" - }, - "method": { - "shortName": "DeleteSource", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.DeleteSource", - "service": { - "shortName": "MigrationCenter", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter" - } - } - } - }, - { - "regionTag": "migrationcenter_v1_generated_MigrationCenter_ListPreferenceSets_async", - "title": "MigrationCenter listPreferenceSets Sample", - "origin": "API_DEFINITION", - "description": " Lists all the preference sets in a given project and location.", - "canonical": true, - "file": "migration_center.list_preference_sets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPreferenceSets", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.ListPreferenceSets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.migrationcenter.v1.ListPreferenceSetsResponse", - "client": { - "shortName": "MigrationCenterClient", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenterClient" - }, - "method": { - "shortName": "ListPreferenceSets", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.ListPreferenceSets", - "service": { - "shortName": "MigrationCenter", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter" - } - } - } - }, - { - "regionTag": "migrationcenter_v1_generated_MigrationCenter_GetPreferenceSet_async", - "title": "MigrationCenter getPreferenceSet Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a preference set.", - "canonical": true, - "file": "migration_center.get_preference_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPreferenceSet", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.GetPreferenceSet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.migrationcenter.v1.PreferenceSet", - "client": { - "shortName": "MigrationCenterClient", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenterClient" - }, - "method": { - "shortName": "GetPreferenceSet", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.GetPreferenceSet", - "service": { - "shortName": "MigrationCenter", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter" - } - } - } - }, - { - "regionTag": "migrationcenter_v1_generated_MigrationCenter_CreatePreferenceSet_async", - "title": "MigrationCenter createPreferenceSet Sample", - "origin": "API_DEFINITION", - "description": " Creates a new preference set in a given project and location.", - "canonical": true, - "file": "migration_center.create_preference_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreatePreferenceSet", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.CreatePreferenceSet", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "preference_set_id", - "type": "TYPE_STRING" - }, - { - "name": "preference_set", - "type": ".google.cloud.migrationcenter.v1.PreferenceSet" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MigrationCenterClient", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenterClient" - }, - "method": { - "shortName": "CreatePreferenceSet", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.CreatePreferenceSet", - "service": { - "shortName": "MigrationCenter", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter" - } - } - } - }, - { - "regionTag": "migrationcenter_v1_generated_MigrationCenter_UpdatePreferenceSet_async", - "title": "MigrationCenter updatePreferenceSet Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a preference set.", - "canonical": true, - "file": "migration_center.update_preference_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdatePreferenceSet", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.UpdatePreferenceSet", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "preference_set", - "type": ".google.cloud.migrationcenter.v1.PreferenceSet" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MigrationCenterClient", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenterClient" - }, - "method": { - "shortName": "UpdatePreferenceSet", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.UpdatePreferenceSet", - "service": { - "shortName": "MigrationCenter", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter" - } - } - } - }, - { - "regionTag": "migrationcenter_v1_generated_MigrationCenter_DeletePreferenceSet_async", - "title": "MigrationCenter deletePreferenceSet Sample", - "origin": "API_DEFINITION", - "description": " Deletes a preference set.", - "canonical": true, - "file": "migration_center.delete_preference_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePreferenceSet", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.DeletePreferenceSet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MigrationCenterClient", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenterClient" - }, - "method": { - "shortName": "DeletePreferenceSet", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.DeletePreferenceSet", - "service": { - "shortName": "MigrationCenter", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter" - } - } - } - }, - { - "regionTag": "migrationcenter_v1_generated_MigrationCenter_GetSettings_async", - "title": "MigrationCenter getSettings Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of regional settings.", - "canonical": true, - "file": "migration_center.get_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSettings", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.GetSettings", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.migrationcenter.v1.Settings", - "client": { - "shortName": "MigrationCenterClient", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenterClient" - }, - "method": { - "shortName": "GetSettings", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.GetSettings", - "service": { - "shortName": "MigrationCenter", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter" - } - } - } - }, - { - "regionTag": "migrationcenter_v1_generated_MigrationCenter_UpdateSettings_async", - "title": "MigrationCenter updateSettings Sample", - "origin": "API_DEFINITION", - "description": " Updates the regional-level project settings.", - "canonical": true, - "file": "migration_center.update_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSettings", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.UpdateSettings", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "settings", - "type": ".google.cloud.migrationcenter.v1.Settings" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MigrationCenterClient", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenterClient" - }, - "method": { - "shortName": "UpdateSettings", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.UpdateSettings", - "service": { - "shortName": "MigrationCenter", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter" - } - } - } - }, - { - "regionTag": "migrationcenter_v1_generated_MigrationCenter_CreateReportConfig_async", - "title": "MigrationCenter createReportConfig Sample", - "origin": "API_DEFINITION", - "description": " Creates a report configuration.", - "canonical": true, - "file": "migration_center.create_report_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateReportConfig", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.CreateReportConfig", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "report_config_id", - "type": "TYPE_STRING" - }, - { - "name": "report_config", - "type": ".google.cloud.migrationcenter.v1.ReportConfig" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MigrationCenterClient", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenterClient" - }, - "method": { - "shortName": "CreateReportConfig", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.CreateReportConfig", - "service": { - "shortName": "MigrationCenter", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter" - } - } - } - }, - { - "regionTag": "migrationcenter_v1_generated_MigrationCenter_GetReportConfig_async", - "title": "MigrationCenter getReportConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single ReportConfig.", - "canonical": true, - "file": "migration_center.get_report_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetReportConfig", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.GetReportConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.migrationcenter.v1.ReportConfig", - "client": { - "shortName": "MigrationCenterClient", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenterClient" - }, - "method": { - "shortName": "GetReportConfig", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.GetReportConfig", - "service": { - "shortName": "MigrationCenter", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter" - } - } - } - }, - { - "regionTag": "migrationcenter_v1_generated_MigrationCenter_ListReportConfigs_async", - "title": "MigrationCenter listReportConfigs Sample", - "origin": "API_DEFINITION", - "description": " Lists ReportConfigs in a given project and location.", - "canonical": true, - "file": "migration_center.list_report_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListReportConfigs", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.ListReportConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.migrationcenter.v1.ListReportConfigsResponse", - "client": { - "shortName": "MigrationCenterClient", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenterClient" - }, - "method": { - "shortName": "ListReportConfigs", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.ListReportConfigs", - "service": { - "shortName": "MigrationCenter", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter" - } - } - } - }, - { - "regionTag": "migrationcenter_v1_generated_MigrationCenter_DeleteReportConfig_async", - "title": "MigrationCenter deleteReportConfig Sample", - "origin": "API_DEFINITION", - "description": " Deletes a ReportConfig.", - "canonical": true, - "file": "migration_center.delete_report_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteReportConfig", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.DeleteReportConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MigrationCenterClient", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenterClient" - }, - "method": { - "shortName": "DeleteReportConfig", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.DeleteReportConfig", - "service": { - "shortName": "MigrationCenter", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter" - } - } - } - }, - { - "regionTag": "migrationcenter_v1_generated_MigrationCenter_CreateReport_async", - "title": "MigrationCenter createReport Sample", - "origin": "API_DEFINITION", - "description": " Creates a report.", - "canonical": true, - "file": "migration_center.create_report.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateReport", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.CreateReport", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "report_id", - "type": "TYPE_STRING" - }, - { - "name": "report", - "type": ".google.cloud.migrationcenter.v1.Report" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MigrationCenterClient", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenterClient" - }, - "method": { - "shortName": "CreateReport", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.CreateReport", - "service": { - "shortName": "MigrationCenter", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter" - } - } - } - }, - { - "regionTag": "migrationcenter_v1_generated_MigrationCenter_GetReport_async", - "title": "MigrationCenter getReport Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Report.", - "canonical": true, - "file": "migration_center.get_report.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetReport", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.GetReport", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.migrationcenter.v1.ReportView" - } - ], - "resultType": ".google.cloud.migrationcenter.v1.Report", - "client": { - "shortName": "MigrationCenterClient", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenterClient" - }, - "method": { - "shortName": "GetReport", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.GetReport", - "service": { - "shortName": "MigrationCenter", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter" - } - } - } - }, - { - "regionTag": "migrationcenter_v1_generated_MigrationCenter_ListReports_async", - "title": "MigrationCenter listReports Sample", - "origin": "API_DEFINITION", - "description": " Lists Reports in a given ReportConfig.", - "canonical": true, - "file": "migration_center.list_reports.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListReports", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.ListReports", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.migrationcenter.v1.ReportView" - } - ], - "resultType": ".google.cloud.migrationcenter.v1.ListReportsResponse", - "client": { - "shortName": "MigrationCenterClient", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenterClient" - }, - "method": { - "shortName": "ListReports", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.ListReports", - "service": { - "shortName": "MigrationCenter", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter" - } - } - } - }, - { - "regionTag": "migrationcenter_v1_generated_MigrationCenter_DeleteReport_async", - "title": "MigrationCenter deleteReport Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Report.", - "canonical": true, - "file": "migration_center.delete_report.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteReport", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.DeleteReport", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MigrationCenterClient", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenterClient" - }, - "method": { - "shortName": "DeleteReport", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter.DeleteReport", - "service": { - "shortName": "MigrationCenter", - "fullName": "google.cloud.migrationcenter.v1.MigrationCenter" - } - } - } - } - ] -} diff --git a/packages/google-cloud-modelarmor/samples/generated/v1/snippet_metadata_google.cloud.modelarmor.v1.json b/packages/google-cloud-modelarmor/samples/generated/v1/snippet_metadata_google.cloud.modelarmor.v1.json deleted file mode 100644 index f420f827ea4a..000000000000 --- a/packages/google-cloud-modelarmor/samples/generated/v1/snippet_metadata_google.cloud.modelarmor.v1.json +++ /dev/null @@ -1,439 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-modelarmor", - "version": "0.4.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.modelarmor.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "modelarmor_v1_generated_ModelArmor_ListTemplates_async", - "title": "ModelArmor listTemplates Sample", - "origin": "API_DEFINITION", - "description": " Lists Templates in a given project and location.", - "canonical": true, - "file": "model_armor.list_templates.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTemplates", - "fullName": "google.cloud.modelarmor.v1.ModelArmor.ListTemplates", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.modelarmor.v1.ListTemplatesResponse", - "client": { - "shortName": "ModelArmorClient", - "fullName": "google.cloud.modelarmor.v1.ModelArmorClient" - }, - "method": { - "shortName": "ListTemplates", - "fullName": "google.cloud.modelarmor.v1.ModelArmor.ListTemplates", - "service": { - "shortName": "ModelArmor", - "fullName": "google.cloud.modelarmor.v1.ModelArmor" - } - } - } - }, - { - "regionTag": "modelarmor_v1_generated_ModelArmor_GetTemplate_async", - "title": "ModelArmor getTemplate Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Template.", - "canonical": true, - "file": "model_armor.get_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTemplate", - "fullName": "google.cloud.modelarmor.v1.ModelArmor.GetTemplate", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.modelarmor.v1.Template", - "client": { - "shortName": "ModelArmorClient", - "fullName": "google.cloud.modelarmor.v1.ModelArmorClient" - }, - "method": { - "shortName": "GetTemplate", - "fullName": "google.cloud.modelarmor.v1.ModelArmor.GetTemplate", - "service": { - "shortName": "ModelArmor", - "fullName": "google.cloud.modelarmor.v1.ModelArmor" - } - } - } - }, - { - "regionTag": "modelarmor_v1_generated_ModelArmor_CreateTemplate_async", - "title": "ModelArmor createTemplate Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Template in a given project and location.", - "canonical": true, - "file": "model_armor.create_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTemplate", - "fullName": "google.cloud.modelarmor.v1.ModelArmor.CreateTemplate", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "template_id", - "type": "TYPE_STRING" - }, - { - "name": "template", - "type": ".google.cloud.modelarmor.v1.Template" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.modelarmor.v1.Template", - "client": { - "shortName": "ModelArmorClient", - "fullName": "google.cloud.modelarmor.v1.ModelArmorClient" - }, - "method": { - "shortName": "CreateTemplate", - "fullName": "google.cloud.modelarmor.v1.ModelArmor.CreateTemplate", - "service": { - "shortName": "ModelArmor", - "fullName": "google.cloud.modelarmor.v1.ModelArmor" - } - } - } - }, - { - "regionTag": "modelarmor_v1_generated_ModelArmor_UpdateTemplate_async", - "title": "ModelArmor updateTemplate Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Template.", - "canonical": true, - "file": "model_armor.update_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTemplate", - "fullName": "google.cloud.modelarmor.v1.ModelArmor.UpdateTemplate", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "template", - "type": ".google.cloud.modelarmor.v1.Template" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.modelarmor.v1.Template", - "client": { - "shortName": "ModelArmorClient", - "fullName": "google.cloud.modelarmor.v1.ModelArmorClient" - }, - "method": { - "shortName": "UpdateTemplate", - "fullName": "google.cloud.modelarmor.v1.ModelArmor.UpdateTemplate", - "service": { - "shortName": "ModelArmor", - "fullName": "google.cloud.modelarmor.v1.ModelArmor" - } - } - } - }, - { - "regionTag": "modelarmor_v1_generated_ModelArmor_DeleteTemplate_async", - "title": "ModelArmor deleteTemplate Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Template.", - "canonical": true, - "file": "model_armor.delete_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTemplate", - "fullName": "google.cloud.modelarmor.v1.ModelArmor.DeleteTemplate", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ModelArmorClient", - "fullName": "google.cloud.modelarmor.v1.ModelArmorClient" - }, - "method": { - "shortName": "DeleteTemplate", - "fullName": "google.cloud.modelarmor.v1.ModelArmor.DeleteTemplate", - "service": { - "shortName": "ModelArmor", - "fullName": "google.cloud.modelarmor.v1.ModelArmor" - } - } - } - }, - { - "regionTag": "modelarmor_v1_generated_ModelArmor_GetFloorSetting_async", - "title": "ModelArmor getFloorSetting Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single floor setting of a project", - "canonical": true, - "file": "model_armor.get_floor_setting.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFloorSetting", - "fullName": "google.cloud.modelarmor.v1.ModelArmor.GetFloorSetting", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.modelarmor.v1.FloorSetting", - "client": { - "shortName": "ModelArmorClient", - "fullName": "google.cloud.modelarmor.v1.ModelArmorClient" - }, - "method": { - "shortName": "GetFloorSetting", - "fullName": "google.cloud.modelarmor.v1.ModelArmor.GetFloorSetting", - "service": { - "shortName": "ModelArmor", - "fullName": "google.cloud.modelarmor.v1.ModelArmor" - } - } - } - }, - { - "regionTag": "modelarmor_v1_generated_ModelArmor_UpdateFloorSetting_async", - "title": "ModelArmor updateFloorSetting Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single floor setting of a project", - "canonical": true, - "file": "model_armor.update_floor_setting.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateFloorSetting", - "fullName": "google.cloud.modelarmor.v1.ModelArmor.UpdateFloorSetting", - "async": true, - "parameters": [ - { - "name": "floor_setting", - "type": ".google.cloud.modelarmor.v1.FloorSetting" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.modelarmor.v1.FloorSetting", - "client": { - "shortName": "ModelArmorClient", - "fullName": "google.cloud.modelarmor.v1.ModelArmorClient" - }, - "method": { - "shortName": "UpdateFloorSetting", - "fullName": "google.cloud.modelarmor.v1.ModelArmor.UpdateFloorSetting", - "service": { - "shortName": "ModelArmor", - "fullName": "google.cloud.modelarmor.v1.ModelArmor" - } - } - } - }, - { - "regionTag": "modelarmor_v1_generated_ModelArmor_SanitizeUserPrompt_async", - "title": "ModelArmor sanitizeUserPrompt Sample", - "origin": "API_DEFINITION", - "description": " Sanitizes User Prompt.", - "canonical": true, - "file": "model_armor.sanitize_user_prompt.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SanitizeUserPrompt", - "fullName": "google.cloud.modelarmor.v1.ModelArmor.SanitizeUserPrompt", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "user_prompt_data", - "type": ".google.cloud.modelarmor.v1.DataItem" - }, - { - "name": "multi_language_detection_metadata", - "type": ".google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata" - } - ], - "resultType": ".google.cloud.modelarmor.v1.SanitizeUserPromptResponse", - "client": { - "shortName": "ModelArmorClient", - "fullName": "google.cloud.modelarmor.v1.ModelArmorClient" - }, - "method": { - "shortName": "SanitizeUserPrompt", - "fullName": "google.cloud.modelarmor.v1.ModelArmor.SanitizeUserPrompt", - "service": { - "shortName": "ModelArmor", - "fullName": "google.cloud.modelarmor.v1.ModelArmor" - } - } - } - }, - { - "regionTag": "modelarmor_v1_generated_ModelArmor_SanitizeModelResponse_async", - "title": "ModelArmor sanitizeModelResponse Sample", - "origin": "API_DEFINITION", - "description": " Sanitizes Model Response.", - "canonical": true, - "file": "model_armor.sanitize_model_response.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SanitizeModelResponse", - "fullName": "google.cloud.modelarmor.v1.ModelArmor.SanitizeModelResponse", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "model_response_data", - "type": ".google.cloud.modelarmor.v1.DataItem" - }, - { - "name": "user_prompt", - "type": "TYPE_STRING" - }, - { - "name": "multi_language_detection_metadata", - "type": ".google.cloud.modelarmor.v1.MultiLanguageDetectionMetadata" - } - ], - "resultType": ".google.cloud.modelarmor.v1.SanitizeModelResponseResponse", - "client": { - "shortName": "ModelArmorClient", - "fullName": "google.cloud.modelarmor.v1.ModelArmorClient" - }, - "method": { - "shortName": "SanitizeModelResponse", - "fullName": "google.cloud.modelarmor.v1.ModelArmor.SanitizeModelResponse", - "service": { - "shortName": "ModelArmor", - "fullName": "google.cloud.modelarmor.v1.ModelArmor" - } - } - } - } - ] -} diff --git a/packages/google-cloud-modelarmor/samples/generated/v1beta/snippet_metadata_google.cloud.modelarmor.v1beta.json b/packages/google-cloud-modelarmor/samples/generated/v1beta/snippet_metadata_google.cloud.modelarmor.v1beta.json deleted file mode 100644 index 6e6478a1e274..000000000000 --- a/packages/google-cloud-modelarmor/samples/generated/v1beta/snippet_metadata_google.cloud.modelarmor.v1beta.json +++ /dev/null @@ -1,555 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-modelarmor", - "version": "0.4.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.modelarmor.v1beta", - "version": "v1beta" - } - ] - }, - "snippets": [ - { - "regionTag": "modelarmor_v1beta_generated_ModelArmor_ListTemplates_async", - "title": "ModelArmor listTemplates Sample", - "origin": "API_DEFINITION", - "description": " Lists Templates in a given project and location.", - "canonical": true, - "file": "model_armor.list_templates.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTemplates", - "fullName": "google.cloud.modelarmor.v1beta.ModelArmor.ListTemplates", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.modelarmor.v1beta.ListTemplatesResponse", - "client": { - "shortName": "ModelArmorClient", - "fullName": "google.cloud.modelarmor.v1beta.ModelArmorClient" - }, - "method": { - "shortName": "ListTemplates", - "fullName": "google.cloud.modelarmor.v1beta.ModelArmor.ListTemplates", - "service": { - "shortName": "ModelArmor", - "fullName": "google.cloud.modelarmor.v1beta.ModelArmor" - } - } - } - }, - { - "regionTag": "modelarmor_v1beta_generated_ModelArmor_GetTemplate_async", - "title": "ModelArmor getTemplate Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Template.", - "canonical": true, - "file": "model_armor.get_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTemplate", - "fullName": "google.cloud.modelarmor.v1beta.ModelArmor.GetTemplate", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.modelarmor.v1beta.Template", - "client": { - "shortName": "ModelArmorClient", - "fullName": "google.cloud.modelarmor.v1beta.ModelArmorClient" - }, - "method": { - "shortName": "GetTemplate", - "fullName": "google.cloud.modelarmor.v1beta.ModelArmor.GetTemplate", - "service": { - "shortName": "ModelArmor", - "fullName": "google.cloud.modelarmor.v1beta.ModelArmor" - } - } - } - }, - { - "regionTag": "modelarmor_v1beta_generated_ModelArmor_CreateTemplate_async", - "title": "ModelArmor createTemplate Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Template in a given project and location.", - "canonical": true, - "file": "model_armor.create_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTemplate", - "fullName": "google.cloud.modelarmor.v1beta.ModelArmor.CreateTemplate", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "template_id", - "type": "TYPE_STRING" - }, - { - "name": "template", - "type": ".google.cloud.modelarmor.v1beta.Template" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.modelarmor.v1beta.Template", - "client": { - "shortName": "ModelArmorClient", - "fullName": "google.cloud.modelarmor.v1beta.ModelArmorClient" - }, - "method": { - "shortName": "CreateTemplate", - "fullName": "google.cloud.modelarmor.v1beta.ModelArmor.CreateTemplate", - "service": { - "shortName": "ModelArmor", - "fullName": "google.cloud.modelarmor.v1beta.ModelArmor" - } - } - } - }, - { - "regionTag": "modelarmor_v1beta_generated_ModelArmor_UpdateTemplate_async", - "title": "ModelArmor updateTemplate Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Template.", - "canonical": true, - "file": "model_armor.update_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTemplate", - "fullName": "google.cloud.modelarmor.v1beta.ModelArmor.UpdateTemplate", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "template", - "type": ".google.cloud.modelarmor.v1beta.Template" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.modelarmor.v1beta.Template", - "client": { - "shortName": "ModelArmorClient", - "fullName": "google.cloud.modelarmor.v1beta.ModelArmorClient" - }, - "method": { - "shortName": "UpdateTemplate", - "fullName": "google.cloud.modelarmor.v1beta.ModelArmor.UpdateTemplate", - "service": { - "shortName": "ModelArmor", - "fullName": "google.cloud.modelarmor.v1beta.ModelArmor" - } - } - } - }, - { - "regionTag": "modelarmor_v1beta_generated_ModelArmor_DeleteTemplate_async", - "title": "ModelArmor deleteTemplate Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Template.", - "canonical": true, - "file": "model_armor.delete_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTemplate", - "fullName": "google.cloud.modelarmor.v1beta.ModelArmor.DeleteTemplate", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ModelArmorClient", - "fullName": "google.cloud.modelarmor.v1beta.ModelArmorClient" - }, - "method": { - "shortName": "DeleteTemplate", - "fullName": "google.cloud.modelarmor.v1beta.ModelArmor.DeleteTemplate", - "service": { - "shortName": "ModelArmor", - "fullName": "google.cloud.modelarmor.v1beta.ModelArmor" - } - } - } - }, - { - "regionTag": "modelarmor_v1beta_generated_ModelArmor_GetFloorSetting_async", - "title": "ModelArmor getFloorSetting Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single floor setting of a project", - "canonical": true, - "file": "model_armor.get_floor_setting.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFloorSetting", - "fullName": "google.cloud.modelarmor.v1beta.ModelArmor.GetFloorSetting", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.modelarmor.v1beta.FloorSetting", - "client": { - "shortName": "ModelArmorClient", - "fullName": "google.cloud.modelarmor.v1beta.ModelArmorClient" - }, - "method": { - "shortName": "GetFloorSetting", - "fullName": "google.cloud.modelarmor.v1beta.ModelArmor.GetFloorSetting", - "service": { - "shortName": "ModelArmor", - "fullName": "google.cloud.modelarmor.v1beta.ModelArmor" - } - } - } - }, - { - "regionTag": "modelarmor_v1beta_generated_ModelArmor_UpdateFloorSetting_async", - "title": "ModelArmor updateFloorSetting Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single floor setting of a project", - "canonical": true, - "file": "model_armor.update_floor_setting.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateFloorSetting", - "fullName": "google.cloud.modelarmor.v1beta.ModelArmor.UpdateFloorSetting", - "async": true, - "parameters": [ - { - "name": "floor_setting", - "type": ".google.cloud.modelarmor.v1beta.FloorSetting" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.modelarmor.v1beta.FloorSetting", - "client": { - "shortName": "ModelArmorClient", - "fullName": "google.cloud.modelarmor.v1beta.ModelArmorClient" - }, - "method": { - "shortName": "UpdateFloorSetting", - "fullName": "google.cloud.modelarmor.v1beta.ModelArmor.UpdateFloorSetting", - "service": { - "shortName": "ModelArmor", - "fullName": "google.cloud.modelarmor.v1beta.ModelArmor" - } - } - } - }, - { - "regionTag": "modelarmor_v1beta_generated_ModelArmor_SanitizeUserPrompt_async", - "title": "ModelArmor sanitizeUserPrompt Sample", - "origin": "API_DEFINITION", - "description": " Sanitizes User Prompt.", - "canonical": true, - "file": "model_armor.sanitize_user_prompt.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SanitizeUserPrompt", - "fullName": "google.cloud.modelarmor.v1beta.ModelArmor.SanitizeUserPrompt", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "user_prompt_data", - "type": ".google.cloud.modelarmor.v1beta.DataItem" - }, - { - "name": "multi_language_detection_metadata", - "type": ".google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata" - }, - { - "name": "streaming_mode", - "type": ".google.cloud.modelarmor.v1beta.StreamingMode" - } - ], - "resultType": ".google.cloud.modelarmor.v1beta.SanitizeUserPromptResponse", - "client": { - "shortName": "ModelArmorClient", - "fullName": "google.cloud.modelarmor.v1beta.ModelArmorClient" - }, - "method": { - "shortName": "SanitizeUserPrompt", - "fullName": "google.cloud.modelarmor.v1beta.ModelArmor.SanitizeUserPrompt", - "service": { - "shortName": "ModelArmor", - "fullName": "google.cloud.modelarmor.v1beta.ModelArmor" - } - } - } - }, - { - "regionTag": "modelarmor_v1beta_generated_ModelArmor_SanitizeModelResponse_async", - "title": "ModelArmor sanitizeModelResponse Sample", - "origin": "API_DEFINITION", - "description": " Sanitizes Model Response.", - "canonical": true, - "file": "model_armor.sanitize_model_response.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SanitizeModelResponse", - "fullName": "google.cloud.modelarmor.v1beta.ModelArmor.SanitizeModelResponse", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "model_response_data", - "type": ".google.cloud.modelarmor.v1beta.DataItem" - }, - { - "name": "user_prompt", - "type": "TYPE_STRING" - }, - { - "name": "multi_language_detection_metadata", - "type": ".google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata" - }, - { - "name": "streaming_mode", - "type": ".google.cloud.modelarmor.v1beta.StreamingMode" - } - ], - "resultType": ".google.cloud.modelarmor.v1beta.SanitizeModelResponseResponse", - "client": { - "shortName": "ModelArmorClient", - "fullName": "google.cloud.modelarmor.v1beta.ModelArmorClient" - }, - "method": { - "shortName": "SanitizeModelResponse", - "fullName": "google.cloud.modelarmor.v1beta.ModelArmor.SanitizeModelResponse", - "service": { - "shortName": "ModelArmor", - "fullName": "google.cloud.modelarmor.v1beta.ModelArmor" - } - } - } - }, - { - "regionTag": "modelarmor_v1beta_generated_ModelArmor_StreamSanitizeUserPrompt_async", - "title": "ModelArmor streamSanitizeUserPrompt Sample", - "origin": "API_DEFINITION", - "description": " Streaming version of Sanitize User Prompt.", - "canonical": true, - "file": "model_armor.stream_sanitize_user_prompt.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StreamSanitizeUserPrompt", - "fullName": "google.cloud.modelarmor.v1beta.ModelArmor.StreamSanitizeUserPrompt", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "user_prompt_data", - "type": ".google.cloud.modelarmor.v1beta.DataItem" - }, - { - "name": "multi_language_detection_metadata", - "type": ".google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata" - }, - { - "name": "streaming_mode", - "type": ".google.cloud.modelarmor.v1beta.StreamingMode" - } - ], - "resultType": ".google.cloud.modelarmor.v1beta.SanitizeUserPromptResponse", - "client": { - "shortName": "ModelArmorClient", - "fullName": "google.cloud.modelarmor.v1beta.ModelArmorClient" - }, - "method": { - "shortName": "StreamSanitizeUserPrompt", - "fullName": "google.cloud.modelarmor.v1beta.ModelArmor.StreamSanitizeUserPrompt", - "service": { - "shortName": "ModelArmor", - "fullName": "google.cloud.modelarmor.v1beta.ModelArmor" - } - } - } - }, - { - "regionTag": "modelarmor_v1beta_generated_ModelArmor_StreamSanitizeModelResponse_async", - "title": "ModelArmor streamSanitizeModelResponse Sample", - "origin": "API_DEFINITION", - "description": " Streaming version of Sanitizes Model Response.", - "canonical": true, - "file": "model_armor.stream_sanitize_model_response.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StreamSanitizeModelResponse", - "fullName": "google.cloud.modelarmor.v1beta.ModelArmor.StreamSanitizeModelResponse", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "model_response_data", - "type": ".google.cloud.modelarmor.v1beta.DataItem" - }, - { - "name": "user_prompt", - "type": "TYPE_STRING" - }, - { - "name": "multi_language_detection_metadata", - "type": ".google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata" - }, - { - "name": "streaming_mode", - "type": ".google.cloud.modelarmor.v1beta.StreamingMode" - } - ], - "resultType": ".google.cloud.modelarmor.v1beta.SanitizeModelResponseResponse", - "client": { - "shortName": "ModelArmorClient", - "fullName": "google.cloud.modelarmor.v1beta.ModelArmorClient" - }, - "method": { - "shortName": "StreamSanitizeModelResponse", - "fullName": "google.cloud.modelarmor.v1beta.ModelArmor.StreamSanitizeModelResponse", - "service": { - "shortName": "ModelArmor", - "fullName": "google.cloud.modelarmor.v1beta.ModelArmor" - } - } - } - } - ] -} diff --git a/packages/google-cloud-monitoring/samples/generated/v3/snippet_metadata_google.monitoring.v3.json b/packages/google-cloud-monitoring/samples/generated/v3/snippet_metadata_google.monitoring.v3.json deleted file mode 100644 index c3eca91e7fb1..000000000000 --- a/packages/google-cloud-monitoring/samples/generated/v3/snippet_metadata_google.monitoring.v3.json +++ /dev/null @@ -1,2359 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-monitoring", - "version": "5.3.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.monitoring.v3", - "version": "v3" - } - ] - }, - "snippets": [ - { - "regionTag": "monitoring_v3_generated_AlertPolicyService_ListAlertPolicies_async", - "title": "monitoring listAlertPolicies Sample", - "origin": "API_DEFINITION", - "description": " Lists the existing alerting policies for the workspace.", - "canonical": true, - "file": "alert_policy_service.list_alert_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 89, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAlertPolicies", - "fullName": "google.monitoring.v3.AlertPolicyService.ListAlertPolicies", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.monitoring.v3.ListAlertPoliciesResponse", - "client": { - "shortName": "AlertPolicyServiceClient", - "fullName": "google.monitoring.v3.AlertPolicyServiceClient" - }, - "method": { - "shortName": "ListAlertPolicies", - "fullName": "google.monitoring.v3.AlertPolicyService.ListAlertPolicies", - "service": { - "shortName": "AlertPolicyService", - "fullName": "google.monitoring.v3.AlertPolicyService" - } - } - } - }, - { - "regionTag": "monitoring_v3_generated_AlertPolicyService_GetAlertPolicy_async", - "title": "monitoring getAlertPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets a single alerting policy.", - "canonical": true, - "file": "alert_policy_service.get_alert_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAlertPolicy", - "fullName": "google.monitoring.v3.AlertPolicyService.GetAlertPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.monitoring.v3.AlertPolicy", - "client": { - "shortName": "AlertPolicyServiceClient", - "fullName": "google.monitoring.v3.AlertPolicyServiceClient" - }, - "method": { - "shortName": "GetAlertPolicy", - "fullName": "google.monitoring.v3.AlertPolicyService.GetAlertPolicy", - "service": { - "shortName": "AlertPolicyService", - "fullName": "google.monitoring.v3.AlertPolicyService" - } - } - } - }, - { - "regionTag": "monitoring_v3_generated_AlertPolicyService_CreateAlertPolicy_async", - "title": "monitoring createAlertPolicy Sample", - "origin": "API_DEFINITION", - "description": " Creates a new alerting policy. Design your application to single-thread API calls that modify the state of alerting policies in a single project. This includes calls to CreateAlertPolicy, DeleteAlertPolicy and UpdateAlertPolicy.", - "canonical": true, - "file": "alert_policy_service.create_alert_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAlertPolicy", - "fullName": "google.monitoring.v3.AlertPolicyService.CreateAlertPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "alert_policy", - "type": ".google.monitoring.v3.AlertPolicy" - } - ], - "resultType": ".google.monitoring.v3.AlertPolicy", - "client": { - "shortName": "AlertPolicyServiceClient", - "fullName": "google.monitoring.v3.AlertPolicyServiceClient" - }, - "method": { - "shortName": "CreateAlertPolicy", - "fullName": "google.monitoring.v3.AlertPolicyService.CreateAlertPolicy", - "service": { - "shortName": "AlertPolicyService", - "fullName": "google.monitoring.v3.AlertPolicyService" - } - } - } - }, - { - "regionTag": "monitoring_v3_generated_AlertPolicyService_DeleteAlertPolicy_async", - "title": "monitoring deleteAlertPolicy Sample", - "origin": "API_DEFINITION", - "description": " Deletes an alerting policy. Design your application to single-thread API calls that modify the state of alerting policies in a single project. This includes calls to CreateAlertPolicy, DeleteAlertPolicy and UpdateAlertPolicy.", - "canonical": true, - "file": "alert_policy_service.delete_alert_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAlertPolicy", - "fullName": "google.monitoring.v3.AlertPolicyService.DeleteAlertPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AlertPolicyServiceClient", - "fullName": "google.monitoring.v3.AlertPolicyServiceClient" - }, - "method": { - "shortName": "DeleteAlertPolicy", - "fullName": "google.monitoring.v3.AlertPolicyService.DeleteAlertPolicy", - "service": { - "shortName": "AlertPolicyService", - "fullName": "google.monitoring.v3.AlertPolicyService" - } - } - } - }, - { - "regionTag": "monitoring_v3_generated_AlertPolicyService_UpdateAlertPolicy_async", - "title": "monitoring updateAlertPolicy Sample", - "origin": "API_DEFINITION", - "description": " Updates an alerting policy. You can either replace the entire policy with a new one or replace only certain fields in the current alerting policy by specifying the fields to be updated via `updateMask`. Returns the updated alerting policy. Design your application to single-thread API calls that modify the state of alerting policies in a single project. This includes calls to CreateAlertPolicy, DeleteAlertPolicy and UpdateAlertPolicy.", - "canonical": true, - "file": "alert_policy_service.update_alert_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAlertPolicy", - "fullName": "google.monitoring.v3.AlertPolicyService.UpdateAlertPolicy", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "alert_policy", - "type": ".google.monitoring.v3.AlertPolicy" - } - ], - "resultType": ".google.monitoring.v3.AlertPolicy", - "client": { - "shortName": "AlertPolicyServiceClient", - "fullName": "google.monitoring.v3.AlertPolicyServiceClient" - }, - "method": { - "shortName": "UpdateAlertPolicy", - "fullName": "google.monitoring.v3.AlertPolicyService.UpdateAlertPolicy", - "service": { - "shortName": "AlertPolicyService", - "fullName": "google.monitoring.v3.AlertPolicyService" - } - } - } - }, - { - "regionTag": "monitoring_v3_generated_GroupService_ListGroups_async", - "title": "monitoring listGroups Sample", - "origin": "API_DEFINITION", - "description": " Lists the existing groups.", - "canonical": true, - "file": "group_service.list_groups.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 92, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListGroups", - "fullName": "google.monitoring.v3.GroupService.ListGroups", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "children_of_group", - "type": "TYPE_STRING" - }, - { - "name": "ancestors_of_group", - "type": "TYPE_STRING" - }, - { - "name": "descendants_of_group", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.monitoring.v3.ListGroupsResponse", - "client": { - "shortName": "GroupServiceClient", - "fullName": "google.monitoring.v3.GroupServiceClient" - }, - "method": { - "shortName": "ListGroups", - "fullName": "google.monitoring.v3.GroupService.ListGroups", - "service": { - "shortName": "GroupService", - "fullName": "google.monitoring.v3.GroupService" - } - } - } - }, - { - "regionTag": "monitoring_v3_generated_GroupService_GetGroup_async", - "title": "monitoring getGroup Sample", - "origin": "API_DEFINITION", - "description": " Gets a single group.", - "canonical": true, - "file": "group_service.get_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetGroup", - "fullName": "google.monitoring.v3.GroupService.GetGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.monitoring.v3.Group", - "client": { - "shortName": "GroupServiceClient", - "fullName": "google.monitoring.v3.GroupServiceClient" - }, - "method": { - "shortName": "GetGroup", - "fullName": "google.monitoring.v3.GroupService.GetGroup", - "service": { - "shortName": "GroupService", - "fullName": "google.monitoring.v3.GroupService" - } - } - } - }, - { - "regionTag": "monitoring_v3_generated_GroupService_CreateGroup_async", - "title": "monitoring createGroup Sample", - "origin": "API_DEFINITION", - "description": " Creates a new group.", - "canonical": true, - "file": "group_service.create_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateGroup", - "fullName": "google.monitoring.v3.GroupService.CreateGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "group", - "type": ".google.monitoring.v3.Group" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.monitoring.v3.Group", - "client": { - "shortName": "GroupServiceClient", - "fullName": "google.monitoring.v3.GroupServiceClient" - }, - "method": { - "shortName": "CreateGroup", - "fullName": "google.monitoring.v3.GroupService.CreateGroup", - "service": { - "shortName": "GroupService", - "fullName": "google.monitoring.v3.GroupService" - } - } - } - }, - { - "regionTag": "monitoring_v3_generated_GroupService_UpdateGroup_async", - "title": "monitoring updateGroup Sample", - "origin": "API_DEFINITION", - "description": " Updates an existing group. You can change any group attributes except `name`.", - "canonical": true, - "file": "group_service.update_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateGroup", - "fullName": "google.monitoring.v3.GroupService.UpdateGroup", - "async": true, - "parameters": [ - { - "name": "group", - "type": ".google.monitoring.v3.Group" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.monitoring.v3.Group", - "client": { - "shortName": "GroupServiceClient", - "fullName": "google.monitoring.v3.GroupServiceClient" - }, - "method": { - "shortName": "UpdateGroup", - "fullName": "google.monitoring.v3.GroupService.UpdateGroup", - "service": { - "shortName": "GroupService", - "fullName": "google.monitoring.v3.GroupService" - } - } - } - }, - { - "regionTag": "monitoring_v3_generated_GroupService_DeleteGroup_async", - "title": "monitoring deleteGroup Sample", - "origin": "API_DEFINITION", - "description": " Deletes an existing group.", - "canonical": true, - "file": "group_service.delete_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteGroup", - "fullName": "google.monitoring.v3.GroupService.DeleteGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "recursive", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "GroupServiceClient", - "fullName": "google.monitoring.v3.GroupServiceClient" - }, - "method": { - "shortName": "DeleteGroup", - "fullName": "google.monitoring.v3.GroupService.DeleteGroup", - "service": { - "shortName": "GroupService", - "fullName": "google.monitoring.v3.GroupService" - } - } - } - }, - { - "regionTag": "monitoring_v3_generated_GroupService_ListGroupMembers_async", - "title": "monitoring listGroupMembers Sample", - "origin": "API_DEFINITION", - "description": " Lists the monitored resources that are members of a group.", - "canonical": true, - "file": "group_service.list_group_members.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListGroupMembers", - "fullName": "google.monitoring.v3.GroupService.ListGroupMembers", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "interval", - "type": ".google.monitoring.v3.TimeInterval" - } - ], - "resultType": ".google.monitoring.v3.ListGroupMembersResponse", - "client": { - "shortName": "GroupServiceClient", - "fullName": "google.monitoring.v3.GroupServiceClient" - }, - "method": { - "shortName": "ListGroupMembers", - "fullName": "google.monitoring.v3.GroupService.ListGroupMembers", - "service": { - "shortName": "GroupService", - "fullName": "google.monitoring.v3.GroupService" - } - } - } - }, - { - "regionTag": "monitoring_v3_generated_MetricService_ListMonitoredResourceDescriptors_async", - "title": "monitoring listMonitoredResourceDescriptors Sample", - "origin": "API_DEFINITION", - "description": " Lists monitored resource descriptors that match a filter.", - "canonical": true, - "file": "metric_service.list_monitored_resource_descriptors.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMonitoredResourceDescriptors", - "fullName": "google.monitoring.v3.MetricService.ListMonitoredResourceDescriptors", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.monitoring.v3.ListMonitoredResourceDescriptorsResponse", - "client": { - "shortName": "MetricServiceClient", - "fullName": "google.monitoring.v3.MetricServiceClient" - }, - "method": { - "shortName": "ListMonitoredResourceDescriptors", - "fullName": "google.monitoring.v3.MetricService.ListMonitoredResourceDescriptors", - "service": { - "shortName": "MetricService", - "fullName": "google.monitoring.v3.MetricService" - } - } - } - }, - { - "regionTag": "monitoring_v3_generated_MetricService_GetMonitoredResourceDescriptor_async", - "title": "monitoring getMonitoredResourceDescriptor Sample", - "origin": "API_DEFINITION", - "description": " Gets a single monitored resource descriptor.", - "canonical": true, - "file": "metric_service.get_monitored_resource_descriptor.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMonitoredResourceDescriptor", - "fullName": "google.monitoring.v3.MetricService.GetMonitoredResourceDescriptor", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.api.MonitoredResourceDescriptor", - "client": { - "shortName": "MetricServiceClient", - "fullName": "google.monitoring.v3.MetricServiceClient" - }, - "method": { - "shortName": "GetMonitoredResourceDescriptor", - "fullName": "google.monitoring.v3.MetricService.GetMonitoredResourceDescriptor", - "service": { - "shortName": "MetricService", - "fullName": "google.monitoring.v3.MetricService" - } - } - } - }, - { - "regionTag": "monitoring_v3_generated_MetricService_ListMetricDescriptors_async", - "title": "monitoring listMetricDescriptors Sample", - "origin": "API_DEFINITION", - "description": " Lists metric descriptors that match a filter.", - "canonical": true, - "file": "metric_service.list_metric_descriptors.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 94, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMetricDescriptors", - "fullName": "google.monitoring.v3.MetricService.ListMetricDescriptors", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "active_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.monitoring.v3.ListMetricDescriptorsResponse", - "client": { - "shortName": "MetricServiceClient", - "fullName": "google.monitoring.v3.MetricServiceClient" - }, - "method": { - "shortName": "ListMetricDescriptors", - "fullName": "google.monitoring.v3.MetricService.ListMetricDescriptors", - "service": { - "shortName": "MetricService", - "fullName": "google.monitoring.v3.MetricService" - } - } - } - }, - { - "regionTag": "monitoring_v3_generated_MetricService_GetMetricDescriptor_async", - "title": "monitoring getMetricDescriptor Sample", - "origin": "API_DEFINITION", - "description": " Gets a single metric descriptor.", - "canonical": true, - "file": "metric_service.get_metric_descriptor.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMetricDescriptor", - "fullName": "google.monitoring.v3.MetricService.GetMetricDescriptor", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.api.MetricDescriptor", - "client": { - "shortName": "MetricServiceClient", - "fullName": "google.monitoring.v3.MetricServiceClient" - }, - "method": { - "shortName": "GetMetricDescriptor", - "fullName": "google.monitoring.v3.MetricService.GetMetricDescriptor", - "service": { - "shortName": "MetricService", - "fullName": "google.monitoring.v3.MetricService" - } - } - } - }, - { - "regionTag": "monitoring_v3_generated_MetricService_CreateMetricDescriptor_async", - "title": "monitoring createMetricDescriptor Sample", - "origin": "API_DEFINITION", - "description": " Creates a new metric descriptor. The creation is executed asynchronously. User-created metric descriptors define [custom metrics](https://cloud.google.com/monitoring/custom-metrics). The metric descriptor is updated if it already exists, except that metric labels are never removed.", - "canonical": true, - "file": "metric_service.create_metric_descriptor.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateMetricDescriptor", - "fullName": "google.monitoring.v3.MetricService.CreateMetricDescriptor", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "metric_descriptor", - "type": ".google.api.MetricDescriptor" - } - ], - "resultType": ".google.api.MetricDescriptor", - "client": { - "shortName": "MetricServiceClient", - "fullName": "google.monitoring.v3.MetricServiceClient" - }, - "method": { - "shortName": "CreateMetricDescriptor", - "fullName": "google.monitoring.v3.MetricService.CreateMetricDescriptor", - "service": { - "shortName": "MetricService", - "fullName": "google.monitoring.v3.MetricService" - } - } - } - }, - { - "regionTag": "monitoring_v3_generated_MetricService_DeleteMetricDescriptor_async", - "title": "monitoring deleteMetricDescriptor Sample", - "origin": "API_DEFINITION", - "description": " Deletes a metric descriptor. Only user-created [custom metrics](https://cloud.google.com/monitoring/custom-metrics) can be deleted.", - "canonical": true, - "file": "metric_service.delete_metric_descriptor.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteMetricDescriptor", - "fullName": "google.monitoring.v3.MetricService.DeleteMetricDescriptor", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "MetricServiceClient", - "fullName": "google.monitoring.v3.MetricServiceClient" - }, - "method": { - "shortName": "DeleteMetricDescriptor", - "fullName": "google.monitoring.v3.MetricService.DeleteMetricDescriptor", - "service": { - "shortName": "MetricService", - "fullName": "google.monitoring.v3.MetricService" - } - } - } - }, - { - "regionTag": "monitoring_v3_generated_MetricService_ListTimeSeries_async", - "title": "monitoring listTimeSeries Sample", - "origin": "API_DEFINITION", - "description": " Lists time series that match a filter.", - "canonical": true, - "file": "metric_service.list_time_series.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 114, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTimeSeries", - "fullName": "google.monitoring.v3.MetricService.ListTimeSeries", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "interval", - "type": ".google.monitoring.v3.TimeInterval" - }, - { - "name": "aggregation", - "type": ".google.monitoring.v3.Aggregation" - }, - { - "name": "secondary_aggregation", - "type": ".google.monitoring.v3.Aggregation" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.monitoring.v3.ListTimeSeriesRequest.TimeSeriesView" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.monitoring.v3.ListTimeSeriesResponse", - "client": { - "shortName": "MetricServiceClient", - "fullName": "google.monitoring.v3.MetricServiceClient" - }, - "method": { - "shortName": "ListTimeSeries", - "fullName": "google.monitoring.v3.MetricService.ListTimeSeries", - "service": { - "shortName": "MetricService", - "fullName": "google.monitoring.v3.MetricService" - } - } - } - }, - { - "regionTag": "monitoring_v3_generated_MetricService_CreateTimeSeries_async", - "title": "monitoring createTimeSeries Sample", - "origin": "API_DEFINITION", - "description": " Creates or adds data to one or more time series. The response is empty if all time series in the request were written. If any time series could not be written, a corresponding failure message is included in the error response. This method does not support [resource locations constraint of an organization policy](https://cloud.google.com/resource-manager/docs/organization-policy/defining-locations#setting_the_organization_policy).", - "canonical": true, - "file": "metric_service.create_time_series.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTimeSeries", - "fullName": "google.monitoring.v3.MetricService.CreateTimeSeries", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "time_series", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "MetricServiceClient", - "fullName": "google.monitoring.v3.MetricServiceClient" - }, - "method": { - "shortName": "CreateTimeSeries", - "fullName": "google.monitoring.v3.MetricService.CreateTimeSeries", - "service": { - "shortName": "MetricService", - "fullName": "google.monitoring.v3.MetricService" - } - } - } - }, - { - "regionTag": "monitoring_v3_generated_MetricService_CreateServiceTimeSeries_async", - "title": "monitoring createServiceTimeSeries Sample", - "origin": "API_DEFINITION", - "description": " Creates or adds data to one or more service time series. A service time series is a time series for a metric from a Google Cloud service. The response is empty if all time series in the request were written. If any time series could not be written, a corresponding failure message is included in the error response. This endpoint rejects writes to user-defined metrics. This method is only for use by Google Cloud services. Use [projects.timeSeries.create][google.monitoring.v3.MetricService.CreateTimeSeries] instead.", - "canonical": true, - "file": "metric_service.create_service_time_series.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateServiceTimeSeries", - "fullName": "google.monitoring.v3.MetricService.CreateServiceTimeSeries", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "time_series", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "MetricServiceClient", - "fullName": "google.monitoring.v3.MetricServiceClient" - }, - "method": { - "shortName": "CreateServiceTimeSeries", - "fullName": "google.monitoring.v3.MetricService.CreateServiceTimeSeries", - "service": { - "shortName": "MetricService", - "fullName": "google.monitoring.v3.MetricService" - } - } - } - }, - { - "regionTag": "monitoring_v3_generated_NotificationChannelService_ListNotificationChannelDescriptors_async", - "title": "monitoring listNotificationChannelDescriptors Sample", - "origin": "API_DEFINITION", - "description": " Lists the descriptors for supported channel types. The use of descriptors makes it possible for new channel types to be dynamically added.", - "canonical": true, - "file": "notification_channel_service.list_notification_channel_descriptors.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListNotificationChannelDescriptors", - "fullName": "google.monitoring.v3.NotificationChannelService.ListNotificationChannelDescriptors", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.monitoring.v3.ListNotificationChannelDescriptorsResponse", - "client": { - "shortName": "NotificationChannelServiceClient", - "fullName": "google.monitoring.v3.NotificationChannelServiceClient" - }, - "method": { - "shortName": "ListNotificationChannelDescriptors", - "fullName": "google.monitoring.v3.NotificationChannelService.ListNotificationChannelDescriptors", - "service": { - "shortName": "NotificationChannelService", - "fullName": "google.monitoring.v3.NotificationChannelService" - } - } - } - }, - { - "regionTag": "monitoring_v3_generated_NotificationChannelService_GetNotificationChannelDescriptor_async", - "title": "monitoring getNotificationChannelDescriptor Sample", - "origin": "API_DEFINITION", - "description": " Gets a single channel descriptor. The descriptor indicates which fields are expected / permitted for a notification channel of the given type.", - "canonical": true, - "file": "notification_channel_service.get_notification_channel_descriptor.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetNotificationChannelDescriptor", - "fullName": "google.monitoring.v3.NotificationChannelService.GetNotificationChannelDescriptor", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.monitoring.v3.NotificationChannelDescriptor", - "client": { - "shortName": "NotificationChannelServiceClient", - "fullName": "google.monitoring.v3.NotificationChannelServiceClient" - }, - "method": { - "shortName": "GetNotificationChannelDescriptor", - "fullName": "google.monitoring.v3.NotificationChannelService.GetNotificationChannelDescriptor", - "service": { - "shortName": "NotificationChannelService", - "fullName": "google.monitoring.v3.NotificationChannelService" - } - } - } - }, - { - "regionTag": "monitoring_v3_generated_NotificationChannelService_ListNotificationChannels_async", - "title": "monitoring listNotificationChannels Sample", - "origin": "API_DEFINITION", - "description": " Lists the notification channels that have been created for the project. To list the types of notification channels that are supported, use the `ListNotificationChannelDescriptors` method.", - "canonical": true, - "file": "notification_channel_service.list_notification_channels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 91, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListNotificationChannels", - "fullName": "google.monitoring.v3.NotificationChannelService.ListNotificationChannels", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.monitoring.v3.ListNotificationChannelsResponse", - "client": { - "shortName": "NotificationChannelServiceClient", - "fullName": "google.monitoring.v3.NotificationChannelServiceClient" - }, - "method": { - "shortName": "ListNotificationChannels", - "fullName": "google.monitoring.v3.NotificationChannelService.ListNotificationChannels", - "service": { - "shortName": "NotificationChannelService", - "fullName": "google.monitoring.v3.NotificationChannelService" - } - } - } - }, - { - "regionTag": "monitoring_v3_generated_NotificationChannelService_GetNotificationChannel_async", - "title": "monitoring getNotificationChannel Sample", - "origin": "API_DEFINITION", - "description": " Gets a single notification channel. The channel includes the relevant configuration details with which the channel was created. However, the response may truncate or omit passwords, API keys, or other private key matter and thus the response may not be 100% identical to the information that was supplied in the call to the create method.", - "canonical": true, - "file": "notification_channel_service.get_notification_channel.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetNotificationChannel", - "fullName": "google.monitoring.v3.NotificationChannelService.GetNotificationChannel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.monitoring.v3.NotificationChannel", - "client": { - "shortName": "NotificationChannelServiceClient", - "fullName": "google.monitoring.v3.NotificationChannelServiceClient" - }, - "method": { - "shortName": "GetNotificationChannel", - "fullName": "google.monitoring.v3.NotificationChannelService.GetNotificationChannel", - "service": { - "shortName": "NotificationChannelService", - "fullName": "google.monitoring.v3.NotificationChannelService" - } - } - } - }, - { - "regionTag": "monitoring_v3_generated_NotificationChannelService_CreateNotificationChannel_async", - "title": "monitoring createNotificationChannel Sample", - "origin": "API_DEFINITION", - "description": " Creates a new notification channel, representing a single notification endpoint such as an email address, SMS number, or PagerDuty service. Design your application to single-thread API calls that modify the state of notification channels in a single project. This includes calls to CreateNotificationChannel, DeleteNotificationChannel and UpdateNotificationChannel.", - "canonical": true, - "file": "notification_channel_service.create_notification_channel.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateNotificationChannel", - "fullName": "google.monitoring.v3.NotificationChannelService.CreateNotificationChannel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "notification_channel", - "type": ".google.monitoring.v3.NotificationChannel" - } - ], - "resultType": ".google.monitoring.v3.NotificationChannel", - "client": { - "shortName": "NotificationChannelServiceClient", - "fullName": "google.monitoring.v3.NotificationChannelServiceClient" - }, - "method": { - "shortName": "CreateNotificationChannel", - "fullName": "google.monitoring.v3.NotificationChannelService.CreateNotificationChannel", - "service": { - "shortName": "NotificationChannelService", - "fullName": "google.monitoring.v3.NotificationChannelService" - } - } - } - }, - { - "regionTag": "monitoring_v3_generated_NotificationChannelService_UpdateNotificationChannel_async", - "title": "monitoring updateNotificationChannel Sample", - "origin": "API_DEFINITION", - "description": " Updates a notification channel. Fields not specified in the field mask remain unchanged. Design your application to single-thread API calls that modify the state of notification channels in a single project. This includes calls to CreateNotificationChannel, DeleteNotificationChannel and UpdateNotificationChannel.", - "canonical": true, - "file": "notification_channel_service.update_notification_channel.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateNotificationChannel", - "fullName": "google.monitoring.v3.NotificationChannelService.UpdateNotificationChannel", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "notification_channel", - "type": ".google.monitoring.v3.NotificationChannel" - } - ], - "resultType": ".google.monitoring.v3.NotificationChannel", - "client": { - "shortName": "NotificationChannelServiceClient", - "fullName": "google.monitoring.v3.NotificationChannelServiceClient" - }, - "method": { - "shortName": "UpdateNotificationChannel", - "fullName": "google.monitoring.v3.NotificationChannelService.UpdateNotificationChannel", - "service": { - "shortName": "NotificationChannelService", - "fullName": "google.monitoring.v3.NotificationChannelService" - } - } - } - }, - { - "regionTag": "monitoring_v3_generated_NotificationChannelService_DeleteNotificationChannel_async", - "title": "monitoring deleteNotificationChannel Sample", - "origin": "API_DEFINITION", - "description": " Deletes a notification channel. Design your application to single-thread API calls that modify the state of notification channels in a single project. This includes calls to CreateNotificationChannel, DeleteNotificationChannel and UpdateNotificationChannel.", - "canonical": true, - "file": "notification_channel_service.delete_notification_channel.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteNotificationChannel", - "fullName": "google.monitoring.v3.NotificationChannelService.DeleteNotificationChannel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "NotificationChannelServiceClient", - "fullName": "google.monitoring.v3.NotificationChannelServiceClient" - }, - "method": { - "shortName": "DeleteNotificationChannel", - "fullName": "google.monitoring.v3.NotificationChannelService.DeleteNotificationChannel", - "service": { - "shortName": "NotificationChannelService", - "fullName": "google.monitoring.v3.NotificationChannelService" - } - } - } - }, - { - "regionTag": "monitoring_v3_generated_NotificationChannelService_SendNotificationChannelVerificationCode_async", - "title": "monitoring sendNotificationChannelVerificationCode Sample", - "origin": "API_DEFINITION", - "description": " Causes a verification code to be delivered to the channel. The code can then be supplied in `VerifyNotificationChannel` to verify the channel.", - "canonical": true, - "file": "notification_channel_service.send_notification_channel_verification_code.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SendNotificationChannelVerificationCode", - "fullName": "google.monitoring.v3.NotificationChannelService.SendNotificationChannelVerificationCode", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "NotificationChannelServiceClient", - "fullName": "google.monitoring.v3.NotificationChannelServiceClient" - }, - "method": { - "shortName": "SendNotificationChannelVerificationCode", - "fullName": "google.monitoring.v3.NotificationChannelService.SendNotificationChannelVerificationCode", - "service": { - "shortName": "NotificationChannelService", - "fullName": "google.monitoring.v3.NotificationChannelService" - } - } - } - }, - { - "regionTag": "monitoring_v3_generated_NotificationChannelService_GetNotificationChannelVerificationCode_async", - "title": "monitoring getNotificationChannelVerificationCode Sample", - "origin": "API_DEFINITION", - "description": " Requests a verification code for an already verified channel that can then be used in a call to VerifyNotificationChannel() on a different channel with an equivalent identity in the same or in a different project. This makes it possible to copy a channel between projects without requiring manual reverification of the channel. If the channel is not in the verified state, this method will fail (in other words, this may only be used if the SendNotificationChannelVerificationCode and VerifyNotificationChannel paths have already been used to put the given channel into the verified state). There is no guarantee that the verification codes returned by this method will be of a similar structure or form as the ones that are delivered to the channel via SendNotificationChannelVerificationCode; while VerifyNotificationChannel() will recognize both the codes delivered via SendNotificationChannelVerificationCode() and returned from GetNotificationChannelVerificationCode(), it is typically the case that the verification codes delivered via SendNotificationChannelVerificationCode() will be shorter and also have a shorter expiration (e.g. codes such as \"G-123456\") whereas GetVerificationCode() will typically return a much longer, websafe base 64 encoded string that has a longer expiration time.", - "canonical": true, - "file": "notification_channel_service.get_notification_channel_verification_code.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetNotificationChannelVerificationCode", - "fullName": "google.monitoring.v3.NotificationChannelService.GetNotificationChannelVerificationCode", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "expire_time", - "type": ".google.protobuf.Timestamp" - } - ], - "resultType": ".google.monitoring.v3.GetNotificationChannelVerificationCodeResponse", - "client": { - "shortName": "NotificationChannelServiceClient", - "fullName": "google.monitoring.v3.NotificationChannelServiceClient" - }, - "method": { - "shortName": "GetNotificationChannelVerificationCode", - "fullName": "google.monitoring.v3.NotificationChannelService.GetNotificationChannelVerificationCode", - "service": { - "shortName": "NotificationChannelService", - "fullName": "google.monitoring.v3.NotificationChannelService" - } - } - } - }, - { - "regionTag": "monitoring_v3_generated_NotificationChannelService_VerifyNotificationChannel_async", - "title": "monitoring verifyNotificationChannel Sample", - "origin": "API_DEFINITION", - "description": " Verifies a `NotificationChannel` by proving receipt of the code delivered to the channel as a result of calling `SendNotificationChannelVerificationCode`.", - "canonical": true, - "file": "notification_channel_service.verify_notification_channel.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "VerifyNotificationChannel", - "fullName": "google.monitoring.v3.NotificationChannelService.VerifyNotificationChannel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.monitoring.v3.NotificationChannel", - "client": { - "shortName": "NotificationChannelServiceClient", - "fullName": "google.monitoring.v3.NotificationChannelServiceClient" - }, - "method": { - "shortName": "VerifyNotificationChannel", - "fullName": "google.monitoring.v3.NotificationChannelService.VerifyNotificationChannel", - "service": { - "shortName": "NotificationChannelService", - "fullName": "google.monitoring.v3.NotificationChannelService" - } - } - } - }, - { - "regionTag": "monitoring_v3_generated_QueryService_QueryTimeSeries_async", - "title": "monitoring queryTimeSeries Sample", - "origin": "API_DEFINITION", - "description": " Queries time series by using Monitoring Query Language (MQL). We recommend using PromQL instead of MQL. For more information about the status of MQL, see the [MQL deprecation notice](https://cloud.google.com/stackdriver/docs/deprecations/mql).", - "canonical": true, - "file": "query_service.query_time_series.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryTimeSeries", - "fullName": "google.monitoring.v3.QueryService.QueryTimeSeries", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.monitoring.v3.QueryTimeSeriesResponse", - "client": { - "shortName": "QueryServiceClient", - "fullName": "google.monitoring.v3.QueryServiceClient" - }, - "method": { - "shortName": "QueryTimeSeries", - "fullName": "google.monitoring.v3.QueryService.QueryTimeSeries", - "service": { - "shortName": "QueryService", - "fullName": "google.monitoring.v3.QueryService" - } - } - } - }, - { - "regionTag": "monitoring_v3_generated_ServiceMonitoringService_CreateService_async", - "title": "monitoring createService Sample", - "origin": "API_DEFINITION", - "description": " Create a `Service`.", - "canonical": true, - "file": "service_monitoring_service.create_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateService", - "fullName": "google.monitoring.v3.ServiceMonitoringService.CreateService", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "service_id", - "type": "TYPE_STRING" - }, - { - "name": "service", - "type": ".google.monitoring.v3.Service" - } - ], - "resultType": ".google.monitoring.v3.Service", - "client": { - "shortName": "ServiceMonitoringServiceClient", - "fullName": "google.monitoring.v3.ServiceMonitoringServiceClient" - }, - "method": { - "shortName": "CreateService", - "fullName": "google.monitoring.v3.ServiceMonitoringService.CreateService", - "service": { - "shortName": "ServiceMonitoringService", - "fullName": "google.monitoring.v3.ServiceMonitoringService" - } - } - } - }, - { - "regionTag": "monitoring_v3_generated_ServiceMonitoringService_GetService_async", - "title": "monitoring getService Sample", - "origin": "API_DEFINITION", - "description": " Get the named `Service`.", - "canonical": true, - "file": "service_monitoring_service.get_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetService", - "fullName": "google.monitoring.v3.ServiceMonitoringService.GetService", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.monitoring.v3.Service", - "client": { - "shortName": "ServiceMonitoringServiceClient", - "fullName": "google.monitoring.v3.ServiceMonitoringServiceClient" - }, - "method": { - "shortName": "GetService", - "fullName": "google.monitoring.v3.ServiceMonitoringService.GetService", - "service": { - "shortName": "ServiceMonitoringService", - "fullName": "google.monitoring.v3.ServiceMonitoringService" - } - } - } - }, - { - "regionTag": "monitoring_v3_generated_ServiceMonitoringService_ListServices_async", - "title": "monitoring listServices Sample", - "origin": "API_DEFINITION", - "description": " List `Service`s for this Metrics Scope.", - "canonical": true, - "file": "service_monitoring_service.list_services.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 89, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListServices", - "fullName": "google.monitoring.v3.ServiceMonitoringService.ListServices", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.monitoring.v3.ListServicesResponse", - "client": { - "shortName": "ServiceMonitoringServiceClient", - "fullName": "google.monitoring.v3.ServiceMonitoringServiceClient" - }, - "method": { - "shortName": "ListServices", - "fullName": "google.monitoring.v3.ServiceMonitoringService.ListServices", - "service": { - "shortName": "ServiceMonitoringService", - "fullName": "google.monitoring.v3.ServiceMonitoringService" - } - } - } - }, - { - "regionTag": "monitoring_v3_generated_ServiceMonitoringService_UpdateService_async", - "title": "monitoring updateService Sample", - "origin": "API_DEFINITION", - "description": " Update this `Service`.", - "canonical": true, - "file": "service_monitoring_service.update_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateService", - "fullName": "google.monitoring.v3.ServiceMonitoringService.UpdateService", - "async": true, - "parameters": [ - { - "name": "service", - "type": ".google.monitoring.v3.Service" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.monitoring.v3.Service", - "client": { - "shortName": "ServiceMonitoringServiceClient", - "fullName": "google.monitoring.v3.ServiceMonitoringServiceClient" - }, - "method": { - "shortName": "UpdateService", - "fullName": "google.monitoring.v3.ServiceMonitoringService.UpdateService", - "service": { - "shortName": "ServiceMonitoringService", - "fullName": "google.monitoring.v3.ServiceMonitoringService" - } - } - } - }, - { - "regionTag": "monitoring_v3_generated_ServiceMonitoringService_DeleteService_async", - "title": "monitoring deleteService Sample", - "origin": "API_DEFINITION", - "description": " Soft delete this `Service`.", - "canonical": true, - "file": "service_monitoring_service.delete_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteService", - "fullName": "google.monitoring.v3.ServiceMonitoringService.DeleteService", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ServiceMonitoringServiceClient", - "fullName": "google.monitoring.v3.ServiceMonitoringServiceClient" - }, - "method": { - "shortName": "DeleteService", - "fullName": "google.monitoring.v3.ServiceMonitoringService.DeleteService", - "service": { - "shortName": "ServiceMonitoringService", - "fullName": "google.monitoring.v3.ServiceMonitoringService" - } - } - } - }, - { - "regionTag": "monitoring_v3_generated_ServiceMonitoringService_CreateServiceLevelObjective_async", - "title": "monitoring createServiceLevelObjective Sample", - "origin": "API_DEFINITION", - "description": " Create a `ServiceLevelObjective` for the given `Service`.", - "canonical": true, - "file": "service_monitoring_service.create_service_level_objective.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateServiceLevelObjective", - "fullName": "google.monitoring.v3.ServiceMonitoringService.CreateServiceLevelObjective", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "service_level_objective_id", - "type": "TYPE_STRING" - }, - { - "name": "service_level_objective", - "type": ".google.monitoring.v3.ServiceLevelObjective" - } - ], - "resultType": ".google.monitoring.v3.ServiceLevelObjective", - "client": { - "shortName": "ServiceMonitoringServiceClient", - "fullName": "google.monitoring.v3.ServiceMonitoringServiceClient" - }, - "method": { - "shortName": "CreateServiceLevelObjective", - "fullName": "google.monitoring.v3.ServiceMonitoringService.CreateServiceLevelObjective", - "service": { - "shortName": "ServiceMonitoringService", - "fullName": "google.monitoring.v3.ServiceMonitoringService" - } - } - } - }, - { - "regionTag": "monitoring_v3_generated_ServiceMonitoringService_GetServiceLevelObjective_async", - "title": "monitoring getServiceLevelObjective Sample", - "origin": "API_DEFINITION", - "description": " Get a `ServiceLevelObjective` by name.", - "canonical": true, - "file": "service_monitoring_service.get_service_level_objective.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetServiceLevelObjective", - "fullName": "google.monitoring.v3.ServiceMonitoringService.GetServiceLevelObjective", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.monitoring.v3.ServiceLevelObjective.View" - } - ], - "resultType": ".google.monitoring.v3.ServiceLevelObjective", - "client": { - "shortName": "ServiceMonitoringServiceClient", - "fullName": "google.monitoring.v3.ServiceMonitoringServiceClient" - }, - "method": { - "shortName": "GetServiceLevelObjective", - "fullName": "google.monitoring.v3.ServiceMonitoringService.GetServiceLevelObjective", - "service": { - "shortName": "ServiceMonitoringService", - "fullName": "google.monitoring.v3.ServiceMonitoringService" - } - } - } - }, - { - "regionTag": "monitoring_v3_generated_ServiceMonitoringService_ListServiceLevelObjectives_async", - "title": "monitoring listServiceLevelObjectives Sample", - "origin": "API_DEFINITION", - "description": " List the `ServiceLevelObjective`s for the given `Service`.", - "canonical": true, - "file": "service_monitoring_service.list_service_level_objectives.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListServiceLevelObjectives", - "fullName": "google.monitoring.v3.ServiceMonitoringService.ListServiceLevelObjectives", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.monitoring.v3.ServiceLevelObjective.View" - } - ], - "resultType": ".google.monitoring.v3.ListServiceLevelObjectivesResponse", - "client": { - "shortName": "ServiceMonitoringServiceClient", - "fullName": "google.monitoring.v3.ServiceMonitoringServiceClient" - }, - "method": { - "shortName": "ListServiceLevelObjectives", - "fullName": "google.monitoring.v3.ServiceMonitoringService.ListServiceLevelObjectives", - "service": { - "shortName": "ServiceMonitoringService", - "fullName": "google.monitoring.v3.ServiceMonitoringService" - } - } - } - }, - { - "regionTag": "monitoring_v3_generated_ServiceMonitoringService_UpdateServiceLevelObjective_async", - "title": "monitoring updateServiceLevelObjective Sample", - "origin": "API_DEFINITION", - "description": " Update the given `ServiceLevelObjective`.", - "canonical": true, - "file": "service_monitoring_service.update_service_level_objective.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateServiceLevelObjective", - "fullName": "google.monitoring.v3.ServiceMonitoringService.UpdateServiceLevelObjective", - "async": true, - "parameters": [ - { - "name": "service_level_objective", - "type": ".google.monitoring.v3.ServiceLevelObjective" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.monitoring.v3.ServiceLevelObjective", - "client": { - "shortName": "ServiceMonitoringServiceClient", - "fullName": "google.monitoring.v3.ServiceMonitoringServiceClient" - }, - "method": { - "shortName": "UpdateServiceLevelObjective", - "fullName": "google.monitoring.v3.ServiceMonitoringService.UpdateServiceLevelObjective", - "service": { - "shortName": "ServiceMonitoringService", - "fullName": "google.monitoring.v3.ServiceMonitoringService" - } - } - } - }, - { - "regionTag": "monitoring_v3_generated_ServiceMonitoringService_DeleteServiceLevelObjective_async", - "title": "monitoring deleteServiceLevelObjective Sample", - "origin": "API_DEFINITION", - "description": " Delete the given `ServiceLevelObjective`.", - "canonical": true, - "file": "service_monitoring_service.delete_service_level_objective.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteServiceLevelObjective", - "fullName": "google.monitoring.v3.ServiceMonitoringService.DeleteServiceLevelObjective", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ServiceMonitoringServiceClient", - "fullName": "google.monitoring.v3.ServiceMonitoringServiceClient" - }, - "method": { - "shortName": "DeleteServiceLevelObjective", - "fullName": "google.monitoring.v3.ServiceMonitoringService.DeleteServiceLevelObjective", - "service": { - "shortName": "ServiceMonitoringService", - "fullName": "google.monitoring.v3.ServiceMonitoringService" - } - } - } - }, - { - "regionTag": "monitoring_v3_generated_SnoozeService_CreateSnooze_async", - "title": "monitoring createSnooze Sample", - "origin": "API_DEFINITION", - "description": " Creates a `Snooze` that will prevent alerts, which match the provided criteria, from being opened. The `Snooze` applies for a specific time interval.", - "canonical": true, - "file": "snooze_service.create_snooze.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSnooze", - "fullName": "google.monitoring.v3.SnoozeService.CreateSnooze", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "snooze", - "type": ".google.monitoring.v3.Snooze" - } - ], - "resultType": ".google.monitoring.v3.Snooze", - "client": { - "shortName": "SnoozeServiceClient", - "fullName": "google.monitoring.v3.SnoozeServiceClient" - }, - "method": { - "shortName": "CreateSnooze", - "fullName": "google.monitoring.v3.SnoozeService.CreateSnooze", - "service": { - "shortName": "SnoozeService", - "fullName": "google.monitoring.v3.SnoozeService" - } - } - } - }, - { - "regionTag": "monitoring_v3_generated_SnoozeService_ListSnoozes_async", - "title": "monitoring listSnoozes Sample", - "origin": "API_DEFINITION", - "description": " Lists the `Snooze`s associated with a project. Can optionally pass in `filter`, which specifies predicates to match `Snooze`s.", - "canonical": true, - "file": "snooze_service.list_snoozes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSnoozes", - "fullName": "google.monitoring.v3.SnoozeService.ListSnoozes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.monitoring.v3.ListSnoozesResponse", - "client": { - "shortName": "SnoozeServiceClient", - "fullName": "google.monitoring.v3.SnoozeServiceClient" - }, - "method": { - "shortName": "ListSnoozes", - "fullName": "google.monitoring.v3.SnoozeService.ListSnoozes", - "service": { - "shortName": "SnoozeService", - "fullName": "google.monitoring.v3.SnoozeService" - } - } - } - }, - { - "regionTag": "monitoring_v3_generated_SnoozeService_GetSnooze_async", - "title": "monitoring getSnooze Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a `Snooze` by `name`.", - "canonical": true, - "file": "snooze_service.get_snooze.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSnooze", - "fullName": "google.monitoring.v3.SnoozeService.GetSnooze", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.monitoring.v3.Snooze", - "client": { - "shortName": "SnoozeServiceClient", - "fullName": "google.monitoring.v3.SnoozeServiceClient" - }, - "method": { - "shortName": "GetSnooze", - "fullName": "google.monitoring.v3.SnoozeService.GetSnooze", - "service": { - "shortName": "SnoozeService", - "fullName": "google.monitoring.v3.SnoozeService" - } - } - } - }, - { - "regionTag": "monitoring_v3_generated_SnoozeService_UpdateSnooze_async", - "title": "monitoring updateSnooze Sample", - "origin": "API_DEFINITION", - "description": " Updates a `Snooze`, identified by its `name`, with the parameters in the given `Snooze` object.", - "canonical": true, - "file": "snooze_service.update_snooze.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSnooze", - "fullName": "google.monitoring.v3.SnoozeService.UpdateSnooze", - "async": true, - "parameters": [ - { - "name": "snooze", - "type": ".google.monitoring.v3.Snooze" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.monitoring.v3.Snooze", - "client": { - "shortName": "SnoozeServiceClient", - "fullName": "google.monitoring.v3.SnoozeServiceClient" - }, - "method": { - "shortName": "UpdateSnooze", - "fullName": "google.monitoring.v3.SnoozeService.UpdateSnooze", - "service": { - "shortName": "SnoozeService", - "fullName": "google.monitoring.v3.SnoozeService" - } - } - } - }, - { - "regionTag": "monitoring_v3_generated_UptimeCheckService_ListUptimeCheckConfigs_async", - "title": "monitoring listUptimeCheckConfigs Sample", - "origin": "API_DEFINITION", - "description": " Lists the existing valid Uptime check configurations for the project (leaving out any invalid configurations).", - "canonical": true, - "file": "uptime_check_service.list_uptime_check_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListUptimeCheckConfigs", - "fullName": "google.monitoring.v3.UptimeCheckService.ListUptimeCheckConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.monitoring.v3.ListUptimeCheckConfigsResponse", - "client": { - "shortName": "UptimeCheckServiceClient", - "fullName": "google.monitoring.v3.UptimeCheckServiceClient" - }, - "method": { - "shortName": "ListUptimeCheckConfigs", - "fullName": "google.monitoring.v3.UptimeCheckService.ListUptimeCheckConfigs", - "service": { - "shortName": "UptimeCheckService", - "fullName": "google.monitoring.v3.UptimeCheckService" - } - } - } - }, - { - "regionTag": "monitoring_v3_generated_UptimeCheckService_GetUptimeCheckConfig_async", - "title": "monitoring getUptimeCheckConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets a single Uptime check configuration.", - "canonical": true, - "file": "uptime_check_service.get_uptime_check_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetUptimeCheckConfig", - "fullName": "google.monitoring.v3.UptimeCheckService.GetUptimeCheckConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.monitoring.v3.UptimeCheckConfig", - "client": { - "shortName": "UptimeCheckServiceClient", - "fullName": "google.monitoring.v3.UptimeCheckServiceClient" - }, - "method": { - "shortName": "GetUptimeCheckConfig", - "fullName": "google.monitoring.v3.UptimeCheckService.GetUptimeCheckConfig", - "service": { - "shortName": "UptimeCheckService", - "fullName": "google.monitoring.v3.UptimeCheckService" - } - } - } - }, - { - "regionTag": "monitoring_v3_generated_UptimeCheckService_CreateUptimeCheckConfig_async", - "title": "monitoring createUptimeCheckConfig Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Uptime check configuration.", - "canonical": true, - "file": "uptime_check_service.create_uptime_check_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateUptimeCheckConfig", - "fullName": "google.monitoring.v3.UptimeCheckService.CreateUptimeCheckConfig", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "uptime_check_config", - "type": ".google.monitoring.v3.UptimeCheckConfig" - } - ], - "resultType": ".google.monitoring.v3.UptimeCheckConfig", - "client": { - "shortName": "UptimeCheckServiceClient", - "fullName": "google.monitoring.v3.UptimeCheckServiceClient" - }, - "method": { - "shortName": "CreateUptimeCheckConfig", - "fullName": "google.monitoring.v3.UptimeCheckService.CreateUptimeCheckConfig", - "service": { - "shortName": "UptimeCheckService", - "fullName": "google.monitoring.v3.UptimeCheckService" - } - } - } - }, - { - "regionTag": "monitoring_v3_generated_UptimeCheckService_UpdateUptimeCheckConfig_async", - "title": "monitoring updateUptimeCheckConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates an Uptime check configuration. You can either replace the entire configuration with a new one or replace only certain fields in the current configuration by specifying the fields to be updated via `updateMask`. Returns the updated configuration.", - "canonical": true, - "file": "uptime_check_service.update_uptime_check_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateUptimeCheckConfig", - "fullName": "google.monitoring.v3.UptimeCheckService.UpdateUptimeCheckConfig", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "uptime_check_config", - "type": ".google.monitoring.v3.UptimeCheckConfig" - } - ], - "resultType": ".google.monitoring.v3.UptimeCheckConfig", - "client": { - "shortName": "UptimeCheckServiceClient", - "fullName": "google.monitoring.v3.UptimeCheckServiceClient" - }, - "method": { - "shortName": "UpdateUptimeCheckConfig", - "fullName": "google.monitoring.v3.UptimeCheckService.UpdateUptimeCheckConfig", - "service": { - "shortName": "UptimeCheckService", - "fullName": "google.monitoring.v3.UptimeCheckService" - } - } - } - }, - { - "regionTag": "monitoring_v3_generated_UptimeCheckService_DeleteUptimeCheckConfig_async", - "title": "monitoring deleteUptimeCheckConfig Sample", - "origin": "API_DEFINITION", - "description": " Deletes an Uptime check configuration. Note that this method will fail if the Uptime check configuration is referenced by an alert policy or other dependent configs that would be rendered invalid by the deletion.", - "canonical": true, - "file": "uptime_check_service.delete_uptime_check_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteUptimeCheckConfig", - "fullName": "google.monitoring.v3.UptimeCheckService.DeleteUptimeCheckConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "UptimeCheckServiceClient", - "fullName": "google.monitoring.v3.UptimeCheckServiceClient" - }, - "method": { - "shortName": "DeleteUptimeCheckConfig", - "fullName": "google.monitoring.v3.UptimeCheckService.DeleteUptimeCheckConfig", - "service": { - "shortName": "UptimeCheckService", - "fullName": "google.monitoring.v3.UptimeCheckService" - } - } - } - }, - { - "regionTag": "monitoring_v3_generated_UptimeCheckService_ListUptimeCheckIps_async", - "title": "monitoring listUptimeCheckIps Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of IP addresses that checkers run from.", - "canonical": true, - "file": "uptime_check_service.list_uptime_check_ips.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListUptimeCheckIps", - "fullName": "google.monitoring.v3.UptimeCheckService.ListUptimeCheckIps", - "async": true, - "parameters": [ - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.monitoring.v3.ListUptimeCheckIpsResponse", - "client": { - "shortName": "UptimeCheckServiceClient", - "fullName": "google.monitoring.v3.UptimeCheckServiceClient" - }, - "method": { - "shortName": "ListUptimeCheckIps", - "fullName": "google.monitoring.v3.UptimeCheckService.ListUptimeCheckIps", - "service": { - "shortName": "UptimeCheckService", - "fullName": "google.monitoring.v3.UptimeCheckService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-netapp/samples/generated/v1/snippet_metadata_google.cloud.netapp.v1.json b/packages/google-cloud-netapp/samples/generated/v1/snippet_metadata_google.cloud.netapp.v1.json deleted file mode 100644 index 6235d5f6c93a..000000000000 --- a/packages/google-cloud-netapp/samples/generated/v1/snippet_metadata_google.cloud.netapp.v1.json +++ /dev/null @@ -1,3231 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-netapp", - "version": "0.17.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.netapp.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "netapp_v1_generated_NetApp_ListStoragePools_async", - "title": "NetApp listStoragePools Sample", - "origin": "API_DEFINITION", - "description": " Returns descriptions of all storage pools owned by the caller.", - "canonical": true, - "file": "net_app.list_storage_pools.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListStoragePools", - "fullName": "google.cloud.netapp.v1.NetApp.ListStoragePools", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.netapp.v1.ListStoragePoolsResponse", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "ListStoragePools", - "fullName": "google.cloud.netapp.v1.NetApp.ListStoragePools", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_CreateStoragePool_async", - "title": "NetApp createStoragePool Sample", - "origin": "API_DEFINITION", - "description": " Creates a new storage pool.", - "canonical": true, - "file": "net_app.create_storage_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateStoragePool", - "fullName": "google.cloud.netapp.v1.NetApp.CreateStoragePool", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "storage_pool_id", - "type": "TYPE_STRING" - }, - { - "name": "storage_pool", - "type": ".google.cloud.netapp.v1.StoragePool" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "CreateStoragePool", - "fullName": "google.cloud.netapp.v1.NetApp.CreateStoragePool", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_GetStoragePool_async", - "title": "NetApp getStoragePool Sample", - "origin": "API_DEFINITION", - "description": " Returns the description of the specified storage pool by poolId.", - "canonical": true, - "file": "net_app.get_storage_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetStoragePool", - "fullName": "google.cloud.netapp.v1.NetApp.GetStoragePool", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.netapp.v1.StoragePool", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "GetStoragePool", - "fullName": "google.cloud.netapp.v1.NetApp.GetStoragePool", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_UpdateStoragePool_async", - "title": "NetApp updateStoragePool Sample", - "origin": "API_DEFINITION", - "description": " Updates the storage pool properties with the full spec", - "canonical": true, - "file": "net_app.update_storage_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateStoragePool", - "fullName": "google.cloud.netapp.v1.NetApp.UpdateStoragePool", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "storage_pool", - "type": ".google.cloud.netapp.v1.StoragePool" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "UpdateStoragePool", - "fullName": "google.cloud.netapp.v1.NetApp.UpdateStoragePool", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_DeleteStoragePool_async", - "title": "NetApp deleteStoragePool Sample", - "origin": "API_DEFINITION", - "description": " Warning! This operation will permanently delete the storage pool.", - "canonical": true, - "file": "net_app.delete_storage_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteStoragePool", - "fullName": "google.cloud.netapp.v1.NetApp.DeleteStoragePool", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "DeleteStoragePool", - "fullName": "google.cloud.netapp.v1.NetApp.DeleteStoragePool", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_ValidateDirectoryService_async", - "title": "NetApp validateDirectoryService Sample", - "origin": "API_DEFINITION", - "description": " ValidateDirectoryService does a connectivity check for a directory service policy attached to the storage pool.", - "canonical": true, - "file": "net_app.validate_directory_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ValidateDirectoryService", - "fullName": "google.cloud.netapp.v1.NetApp.ValidateDirectoryService", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "directory_service_type", - "type": ".google.cloud.netapp.v1.DirectoryServiceType" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "ValidateDirectoryService", - "fullName": "google.cloud.netapp.v1.NetApp.ValidateDirectoryService", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_SwitchActiveReplicaZone_async", - "title": "NetApp switchActiveReplicaZone Sample", - "origin": "API_DEFINITION", - "description": " This operation will switch the active/replica zone for a regional storagePool.", - "canonical": true, - "file": "net_app.switch_active_replica_zone.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SwitchActiveReplicaZone", - "fullName": "google.cloud.netapp.v1.NetApp.SwitchActiveReplicaZone", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "SwitchActiveReplicaZone", - "fullName": "google.cloud.netapp.v1.NetApp.SwitchActiveReplicaZone", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_ListVolumes_async", - "title": "NetApp listVolumes Sample", - "origin": "API_DEFINITION", - "description": " Lists Volumes in a given project.", - "canonical": true, - "file": "net_app.list_volumes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListVolumes", - "fullName": "google.cloud.netapp.v1.NetApp.ListVolumes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.netapp.v1.ListVolumesResponse", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "ListVolumes", - "fullName": "google.cloud.netapp.v1.NetApp.ListVolumes", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_GetVolume_async", - "title": "NetApp getVolume Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Volume.", - "canonical": true, - "file": "net_app.get_volume.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetVolume", - "fullName": "google.cloud.netapp.v1.NetApp.GetVolume", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.netapp.v1.Volume", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "GetVolume", - "fullName": "google.cloud.netapp.v1.NetApp.GetVolume", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_CreateVolume_async", - "title": "NetApp createVolume Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Volume in a given project and location.", - "canonical": true, - "file": "net_app.create_volume.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateVolume", - "fullName": "google.cloud.netapp.v1.NetApp.CreateVolume", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "volume_id", - "type": "TYPE_STRING" - }, - { - "name": "volume", - "type": ".google.cloud.netapp.v1.Volume" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "CreateVolume", - "fullName": "google.cloud.netapp.v1.NetApp.CreateVolume", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_UpdateVolume_async", - "title": "NetApp updateVolume Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Volume.", - "canonical": true, - "file": "net_app.update_volume.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateVolume", - "fullName": "google.cloud.netapp.v1.NetApp.UpdateVolume", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "volume", - "type": ".google.cloud.netapp.v1.Volume" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "UpdateVolume", - "fullName": "google.cloud.netapp.v1.NetApp.UpdateVolume", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_DeleteVolume_async", - "title": "NetApp deleteVolume Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Volume.", - "canonical": true, - "file": "net_app.delete_volume.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteVolume", - "fullName": "google.cloud.netapp.v1.NetApp.DeleteVolume", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "DeleteVolume", - "fullName": "google.cloud.netapp.v1.NetApp.DeleteVolume", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_RevertVolume_async", - "title": "NetApp revertVolume Sample", - "origin": "API_DEFINITION", - "description": " Revert an existing volume to a specified snapshot. Warning! This operation will permanently revert all changes made after the snapshot was created.", - "canonical": true, - "file": "net_app.revert_volume.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RevertVolume", - "fullName": "google.cloud.netapp.v1.NetApp.RevertVolume", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "snapshot_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "RevertVolume", - "fullName": "google.cloud.netapp.v1.NetApp.RevertVolume", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_EstablishVolumePeering_async", - "title": "NetApp establishVolumePeering Sample", - "origin": "API_DEFINITION", - "description": " Establish volume peering. This is used to establish cluster and svm peerings between the GCNV and OnPrem clusters.", - "canonical": true, - "file": "net_app.establish_volume_peering.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "EstablishVolumePeering", - "fullName": "google.cloud.netapp.v1.NetApp.EstablishVolumePeering", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "peer_cluster_name", - "type": "TYPE_STRING" - }, - { - "name": "peer_svm_name", - "type": "TYPE_STRING" - }, - { - "name": "peer_ip_addresses", - "type": "TYPE_STRING[]" - }, - { - "name": "peer_volume_name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "EstablishVolumePeering", - "fullName": "google.cloud.netapp.v1.NetApp.EstablishVolumePeering", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_ListSnapshots_async", - "title": "NetApp listSnapshots Sample", - "origin": "API_DEFINITION", - "description": " Returns descriptions of all snapshots for a volume.", - "canonical": true, - "file": "net_app.list_snapshots.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSnapshots", - "fullName": "google.cloud.netapp.v1.NetApp.ListSnapshots", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.netapp.v1.ListSnapshotsResponse", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "ListSnapshots", - "fullName": "google.cloud.netapp.v1.NetApp.ListSnapshots", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_GetSnapshot_async", - "title": "NetApp getSnapshot Sample", - "origin": "API_DEFINITION", - "description": " Describe a snapshot for a volume.", - "canonical": true, - "file": "net_app.get_snapshot.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSnapshot", - "fullName": "google.cloud.netapp.v1.NetApp.GetSnapshot", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.netapp.v1.Snapshot", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "GetSnapshot", - "fullName": "google.cloud.netapp.v1.NetApp.GetSnapshot", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_CreateSnapshot_async", - "title": "NetApp createSnapshot Sample", - "origin": "API_DEFINITION", - "description": " Create a new snapshot for a volume.", - "canonical": true, - "file": "net_app.create_snapshot.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSnapshot", - "fullName": "google.cloud.netapp.v1.NetApp.CreateSnapshot", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "snapshot", - "type": ".google.cloud.netapp.v1.Snapshot" - }, - { - "name": "snapshot_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "CreateSnapshot", - "fullName": "google.cloud.netapp.v1.NetApp.CreateSnapshot", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_DeleteSnapshot_async", - "title": "NetApp deleteSnapshot Sample", - "origin": "API_DEFINITION", - "description": " Deletes a snapshot.", - "canonical": true, - "file": "net_app.delete_snapshot.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSnapshot", - "fullName": "google.cloud.netapp.v1.NetApp.DeleteSnapshot", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "DeleteSnapshot", - "fullName": "google.cloud.netapp.v1.NetApp.DeleteSnapshot", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_UpdateSnapshot_async", - "title": "NetApp updateSnapshot Sample", - "origin": "API_DEFINITION", - "description": " Updates the settings of a specific snapshot.", - "canonical": true, - "file": "net_app.update_snapshot.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSnapshot", - "fullName": "google.cloud.netapp.v1.NetApp.UpdateSnapshot", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "snapshot", - "type": ".google.cloud.netapp.v1.Snapshot" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "UpdateSnapshot", - "fullName": "google.cloud.netapp.v1.NetApp.UpdateSnapshot", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_ListActiveDirectories_async", - "title": "NetApp listActiveDirectories Sample", - "origin": "API_DEFINITION", - "description": " Lists active directories.", - "canonical": true, - "file": "net_app.list_active_directories.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListActiveDirectories", - "fullName": "google.cloud.netapp.v1.NetApp.ListActiveDirectories", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.netapp.v1.ListActiveDirectoriesResponse", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "ListActiveDirectories", - "fullName": "google.cloud.netapp.v1.NetApp.ListActiveDirectories", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_GetActiveDirectory_async", - "title": "NetApp getActiveDirectory Sample", - "origin": "API_DEFINITION", - "description": " Describes a specified active directory.", - "canonical": true, - "file": "net_app.get_active_directory.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetActiveDirectory", - "fullName": "google.cloud.netapp.v1.NetApp.GetActiveDirectory", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.netapp.v1.ActiveDirectory", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "GetActiveDirectory", - "fullName": "google.cloud.netapp.v1.NetApp.GetActiveDirectory", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_CreateActiveDirectory_async", - "title": "NetApp createActiveDirectory Sample", - "origin": "API_DEFINITION", - "description": " CreateActiveDirectory Creates the active directory specified in the request.", - "canonical": true, - "file": "net_app.create_active_directory.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateActiveDirectory", - "fullName": "google.cloud.netapp.v1.NetApp.CreateActiveDirectory", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "active_directory", - "type": ".google.cloud.netapp.v1.ActiveDirectory" - }, - { - "name": "active_directory_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "CreateActiveDirectory", - "fullName": "google.cloud.netapp.v1.NetApp.CreateActiveDirectory", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_UpdateActiveDirectory_async", - "title": "NetApp updateActiveDirectory Sample", - "origin": "API_DEFINITION", - "description": " Update the parameters of an active directories.", - "canonical": true, - "file": "net_app.update_active_directory.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateActiveDirectory", - "fullName": "google.cloud.netapp.v1.NetApp.UpdateActiveDirectory", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "active_directory", - "type": ".google.cloud.netapp.v1.ActiveDirectory" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "UpdateActiveDirectory", - "fullName": "google.cloud.netapp.v1.NetApp.UpdateActiveDirectory", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_DeleteActiveDirectory_async", - "title": "NetApp deleteActiveDirectory Sample", - "origin": "API_DEFINITION", - "description": " Delete the active directory specified in the request.", - "canonical": true, - "file": "net_app.delete_active_directory.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteActiveDirectory", - "fullName": "google.cloud.netapp.v1.NetApp.DeleteActiveDirectory", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "DeleteActiveDirectory", - "fullName": "google.cloud.netapp.v1.NetApp.DeleteActiveDirectory", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_ListKmsConfigs_async", - "title": "NetApp listKmsConfigs Sample", - "origin": "API_DEFINITION", - "description": " Returns descriptions of all KMS configs owned by the caller.", - "canonical": true, - "file": "net_app.list_kms_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListKmsConfigs", - "fullName": "google.cloud.netapp.v1.NetApp.ListKmsConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.netapp.v1.ListKmsConfigsResponse", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "ListKmsConfigs", - "fullName": "google.cloud.netapp.v1.NetApp.ListKmsConfigs", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_CreateKmsConfig_async", - "title": "NetApp createKmsConfig Sample", - "origin": "API_DEFINITION", - "description": " Creates a new KMS config.", - "canonical": true, - "file": "net_app.create_kms_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateKmsConfig", - "fullName": "google.cloud.netapp.v1.NetApp.CreateKmsConfig", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "kms_config_id", - "type": "TYPE_STRING" - }, - { - "name": "kms_config", - "type": ".google.cloud.netapp.v1.KmsConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "CreateKmsConfig", - "fullName": "google.cloud.netapp.v1.NetApp.CreateKmsConfig", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_GetKmsConfig_async", - "title": "NetApp getKmsConfig Sample", - "origin": "API_DEFINITION", - "description": " Returns the description of the specified KMS config by kms_config_id.", - "canonical": true, - "file": "net_app.get_kms_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetKmsConfig", - "fullName": "google.cloud.netapp.v1.NetApp.GetKmsConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.netapp.v1.KmsConfig", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "GetKmsConfig", - "fullName": "google.cloud.netapp.v1.NetApp.GetKmsConfig", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_UpdateKmsConfig_async", - "title": "NetApp updateKmsConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates the Kms config properties with the full spec", - "canonical": true, - "file": "net_app.update_kms_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateKmsConfig", - "fullName": "google.cloud.netapp.v1.NetApp.UpdateKmsConfig", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "kms_config", - "type": ".google.cloud.netapp.v1.KmsConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "UpdateKmsConfig", - "fullName": "google.cloud.netapp.v1.NetApp.UpdateKmsConfig", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_EncryptVolumes_async", - "title": "NetApp encryptVolumes Sample", - "origin": "API_DEFINITION", - "description": " Encrypt the existing volumes without CMEK encryption with the desired the KMS config for the whole region.", - "canonical": true, - "file": "net_app.encrypt_volumes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "EncryptVolumes", - "fullName": "google.cloud.netapp.v1.NetApp.EncryptVolumes", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "EncryptVolumes", - "fullName": "google.cloud.netapp.v1.NetApp.EncryptVolumes", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_VerifyKmsConfig_async", - "title": "NetApp verifyKmsConfig Sample", - "origin": "API_DEFINITION", - "description": " Verifies KMS config reachability.", - "canonical": true, - "file": "net_app.verify_kms_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "VerifyKmsConfig", - "fullName": "google.cloud.netapp.v1.NetApp.VerifyKmsConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.netapp.v1.VerifyKmsConfigResponse", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "VerifyKmsConfig", - "fullName": "google.cloud.netapp.v1.NetApp.VerifyKmsConfig", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_DeleteKmsConfig_async", - "title": "NetApp deleteKmsConfig Sample", - "origin": "API_DEFINITION", - "description": " Warning! This operation will permanently delete the Kms config.", - "canonical": true, - "file": "net_app.delete_kms_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteKmsConfig", - "fullName": "google.cloud.netapp.v1.NetApp.DeleteKmsConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "DeleteKmsConfig", - "fullName": "google.cloud.netapp.v1.NetApp.DeleteKmsConfig", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_ListReplications_async", - "title": "NetApp listReplications Sample", - "origin": "API_DEFINITION", - "description": " Returns descriptions of all replications for a volume.", - "canonical": true, - "file": "net_app.list_replications.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListReplications", - "fullName": "google.cloud.netapp.v1.NetApp.ListReplications", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.netapp.v1.ListReplicationsResponse", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "ListReplications", - "fullName": "google.cloud.netapp.v1.NetApp.ListReplications", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_GetReplication_async", - "title": "NetApp getReplication Sample", - "origin": "API_DEFINITION", - "description": " Describe a replication for a volume.", - "canonical": true, - "file": "net_app.get_replication.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetReplication", - "fullName": "google.cloud.netapp.v1.NetApp.GetReplication", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.netapp.v1.Replication", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "GetReplication", - "fullName": "google.cloud.netapp.v1.NetApp.GetReplication", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_CreateReplication_async", - "title": "NetApp createReplication Sample", - "origin": "API_DEFINITION", - "description": " Create a new replication for a volume.", - "canonical": true, - "file": "net_app.create_replication.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateReplication", - "fullName": "google.cloud.netapp.v1.NetApp.CreateReplication", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "replication", - "type": ".google.cloud.netapp.v1.Replication" - }, - { - "name": "replication_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "CreateReplication", - "fullName": "google.cloud.netapp.v1.NetApp.CreateReplication", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_DeleteReplication_async", - "title": "NetApp deleteReplication Sample", - "origin": "API_DEFINITION", - "description": " Deletes a replication.", - "canonical": true, - "file": "net_app.delete_replication.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteReplication", - "fullName": "google.cloud.netapp.v1.NetApp.DeleteReplication", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "DeleteReplication", - "fullName": "google.cloud.netapp.v1.NetApp.DeleteReplication", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_UpdateReplication_async", - "title": "NetApp updateReplication Sample", - "origin": "API_DEFINITION", - "description": " Updates the settings of a specific replication.", - "canonical": true, - "file": "net_app.update_replication.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateReplication", - "fullName": "google.cloud.netapp.v1.NetApp.UpdateReplication", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "replication", - "type": ".google.cloud.netapp.v1.Replication" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "UpdateReplication", - "fullName": "google.cloud.netapp.v1.NetApp.UpdateReplication", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_StopReplication_async", - "title": "NetApp stopReplication Sample", - "origin": "API_DEFINITION", - "description": " Stop Cross Region Replication.", - "canonical": true, - "file": "net_app.stop_replication.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StopReplication", - "fullName": "google.cloud.netapp.v1.NetApp.StopReplication", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "StopReplication", - "fullName": "google.cloud.netapp.v1.NetApp.StopReplication", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_ResumeReplication_async", - "title": "NetApp resumeReplication Sample", - "origin": "API_DEFINITION", - "description": " Resume Cross Region Replication.", - "canonical": true, - "file": "net_app.resume_replication.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResumeReplication", - "fullName": "google.cloud.netapp.v1.NetApp.ResumeReplication", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "ResumeReplication", - "fullName": "google.cloud.netapp.v1.NetApp.ResumeReplication", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_ReverseReplicationDirection_async", - "title": "NetApp reverseReplicationDirection Sample", - "origin": "API_DEFINITION", - "description": " Reverses direction of replication. Source becomes destination and destination becomes source.", - "canonical": true, - "file": "net_app.reverse_replication_direction.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReverseReplicationDirection", - "fullName": "google.cloud.netapp.v1.NetApp.ReverseReplicationDirection", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "ReverseReplicationDirection", - "fullName": "google.cloud.netapp.v1.NetApp.ReverseReplicationDirection", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_EstablishPeering_async", - "title": "NetApp establishPeering Sample", - "origin": "API_DEFINITION", - "description": " Establish replication peering.", - "canonical": true, - "file": "net_app.establish_peering.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "EstablishPeering", - "fullName": "google.cloud.netapp.v1.NetApp.EstablishPeering", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "peer_cluster_name", - "type": "TYPE_STRING" - }, - { - "name": "peer_svm_name", - "type": "TYPE_STRING" - }, - { - "name": "peer_ip_addresses", - "type": "TYPE_STRING[]" - }, - { - "name": "peer_volume_name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "EstablishPeering", - "fullName": "google.cloud.netapp.v1.NetApp.EstablishPeering", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_SyncReplication_async", - "title": "NetApp syncReplication Sample", - "origin": "API_DEFINITION", - "description": " Syncs the replication. This will invoke one time volume data transfer from source to destination.", - "canonical": true, - "file": "net_app.sync_replication.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SyncReplication", - "fullName": "google.cloud.netapp.v1.NetApp.SyncReplication", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "SyncReplication", - "fullName": "google.cloud.netapp.v1.NetApp.SyncReplication", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_CreateBackupVault_async", - "title": "NetApp createBackupVault Sample", - "origin": "API_DEFINITION", - "description": " Creates new backup vault", - "canonical": true, - "file": "net_app.create_backup_vault.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateBackupVault", - "fullName": "google.cloud.netapp.v1.NetApp.CreateBackupVault", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "backup_vault_id", - "type": "TYPE_STRING" - }, - { - "name": "backup_vault", - "type": ".google.cloud.netapp.v1.BackupVault" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "CreateBackupVault", - "fullName": "google.cloud.netapp.v1.NetApp.CreateBackupVault", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_GetBackupVault_async", - "title": "NetApp getBackupVault Sample", - "origin": "API_DEFINITION", - "description": " Returns the description of the specified backup vault", - "canonical": true, - "file": "net_app.get_backup_vault.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBackupVault", - "fullName": "google.cloud.netapp.v1.NetApp.GetBackupVault", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.netapp.v1.BackupVault", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "GetBackupVault", - "fullName": "google.cloud.netapp.v1.NetApp.GetBackupVault", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_ListBackupVaults_async", - "title": "NetApp listBackupVaults Sample", - "origin": "API_DEFINITION", - "description": " Returns list of all available backup vaults.", - "canonical": true, - "file": "net_app.list_backup_vaults.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBackupVaults", - "fullName": "google.cloud.netapp.v1.NetApp.ListBackupVaults", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.netapp.v1.ListBackupVaultsResponse", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "ListBackupVaults", - "fullName": "google.cloud.netapp.v1.NetApp.ListBackupVaults", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_UpdateBackupVault_async", - "title": "NetApp updateBackupVault Sample", - "origin": "API_DEFINITION", - "description": " Updates the settings of a specific backup vault.", - "canonical": true, - "file": "net_app.update_backup_vault.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateBackupVault", - "fullName": "google.cloud.netapp.v1.NetApp.UpdateBackupVault", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "backup_vault", - "type": ".google.cloud.netapp.v1.BackupVault" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "UpdateBackupVault", - "fullName": "google.cloud.netapp.v1.NetApp.UpdateBackupVault", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_DeleteBackupVault_async", - "title": "NetApp deleteBackupVault Sample", - "origin": "API_DEFINITION", - "description": " Warning! This operation will permanently delete the backup vault.", - "canonical": true, - "file": "net_app.delete_backup_vault.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteBackupVault", - "fullName": "google.cloud.netapp.v1.NetApp.DeleteBackupVault", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "DeleteBackupVault", - "fullName": "google.cloud.netapp.v1.NetApp.DeleteBackupVault", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_CreateBackup_async", - "title": "NetApp createBackup Sample", - "origin": "API_DEFINITION", - "description": " Creates a backup from the volume specified in the request The backup can be created from the given snapshot if specified in the request. If no snapshot specified, there'll be a new snapshot taken to initiate the backup creation.", - "canonical": true, - "file": "net_app.create_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateBackup", - "fullName": "google.cloud.netapp.v1.NetApp.CreateBackup", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "backup_id", - "type": "TYPE_STRING" - }, - { - "name": "backup", - "type": ".google.cloud.netapp.v1.Backup" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "CreateBackup", - "fullName": "google.cloud.netapp.v1.NetApp.CreateBackup", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_GetBackup_async", - "title": "NetApp getBackup Sample", - "origin": "API_DEFINITION", - "description": " Returns the description of the specified backup", - "canonical": true, - "file": "net_app.get_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBackup", - "fullName": "google.cloud.netapp.v1.NetApp.GetBackup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.netapp.v1.Backup", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "GetBackup", - "fullName": "google.cloud.netapp.v1.NetApp.GetBackup", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_ListBackups_async", - "title": "NetApp listBackups Sample", - "origin": "API_DEFINITION", - "description": " Returns descriptions of all backups for a backupVault.", - "canonical": true, - "file": "net_app.list_backups.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBackups", - "fullName": "google.cloud.netapp.v1.NetApp.ListBackups", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.netapp.v1.ListBackupsResponse", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "ListBackups", - "fullName": "google.cloud.netapp.v1.NetApp.ListBackups", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_DeleteBackup_async", - "title": "NetApp deleteBackup Sample", - "origin": "API_DEFINITION", - "description": " Warning! This operation will permanently delete the backup.", - "canonical": true, - "file": "net_app.delete_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteBackup", - "fullName": "google.cloud.netapp.v1.NetApp.DeleteBackup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "DeleteBackup", - "fullName": "google.cloud.netapp.v1.NetApp.DeleteBackup", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_UpdateBackup_async", - "title": "NetApp updateBackup Sample", - "origin": "API_DEFINITION", - "description": " Update backup with full spec.", - "canonical": true, - "file": "net_app.update_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateBackup", - "fullName": "google.cloud.netapp.v1.NetApp.UpdateBackup", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "backup", - "type": ".google.cloud.netapp.v1.Backup" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "UpdateBackup", - "fullName": "google.cloud.netapp.v1.NetApp.UpdateBackup", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_CreateBackupPolicy_async", - "title": "NetApp createBackupPolicy Sample", - "origin": "API_DEFINITION", - "description": " Creates new backup policy", - "canonical": true, - "file": "net_app.create_backup_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateBackupPolicy", - "fullName": "google.cloud.netapp.v1.NetApp.CreateBackupPolicy", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "backup_policy", - "type": ".google.cloud.netapp.v1.BackupPolicy" - }, - { - "name": "backup_policy_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "CreateBackupPolicy", - "fullName": "google.cloud.netapp.v1.NetApp.CreateBackupPolicy", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_GetBackupPolicy_async", - "title": "NetApp getBackupPolicy Sample", - "origin": "API_DEFINITION", - "description": " Returns the description of the specified backup policy by backup_policy_id.", - "canonical": true, - "file": "net_app.get_backup_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBackupPolicy", - "fullName": "google.cloud.netapp.v1.NetApp.GetBackupPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.netapp.v1.BackupPolicy", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "GetBackupPolicy", - "fullName": "google.cloud.netapp.v1.NetApp.GetBackupPolicy", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_ListBackupPolicies_async", - "title": "NetApp listBackupPolicies Sample", - "origin": "API_DEFINITION", - "description": " Returns list of all available backup policies.", - "canonical": true, - "file": "net_app.list_backup_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBackupPolicies", - "fullName": "google.cloud.netapp.v1.NetApp.ListBackupPolicies", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.netapp.v1.ListBackupPoliciesResponse", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "ListBackupPolicies", - "fullName": "google.cloud.netapp.v1.NetApp.ListBackupPolicies", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_UpdateBackupPolicy_async", - "title": "NetApp updateBackupPolicy Sample", - "origin": "API_DEFINITION", - "description": " Updates settings of a specific backup policy.", - "canonical": true, - "file": "net_app.update_backup_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateBackupPolicy", - "fullName": "google.cloud.netapp.v1.NetApp.UpdateBackupPolicy", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "backup_policy", - "type": ".google.cloud.netapp.v1.BackupPolicy" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "UpdateBackupPolicy", - "fullName": "google.cloud.netapp.v1.NetApp.UpdateBackupPolicy", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_DeleteBackupPolicy_async", - "title": "NetApp deleteBackupPolicy Sample", - "origin": "API_DEFINITION", - "description": " Warning! This operation will permanently delete the backup policy.", - "canonical": true, - "file": "net_app.delete_backup_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteBackupPolicy", - "fullName": "google.cloud.netapp.v1.NetApp.DeleteBackupPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "DeleteBackupPolicy", - "fullName": "google.cloud.netapp.v1.NetApp.DeleteBackupPolicy", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_ListQuotaRules_async", - "title": "NetApp listQuotaRules Sample", - "origin": "API_DEFINITION", - "description": " Returns list of all quota rules in a location.", - "canonical": true, - "file": "net_app.list_quota_rules.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListQuotaRules", - "fullName": "google.cloud.netapp.v1.NetApp.ListQuotaRules", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.netapp.v1.ListQuotaRulesResponse", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "ListQuotaRules", - "fullName": "google.cloud.netapp.v1.NetApp.ListQuotaRules", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_GetQuotaRule_async", - "title": "NetApp getQuotaRule Sample", - "origin": "API_DEFINITION", - "description": " Returns details of the specified quota rule.", - "canonical": true, - "file": "net_app.get_quota_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetQuotaRule", - "fullName": "google.cloud.netapp.v1.NetApp.GetQuotaRule", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.netapp.v1.QuotaRule", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "GetQuotaRule", - "fullName": "google.cloud.netapp.v1.NetApp.GetQuotaRule", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_CreateQuotaRule_async", - "title": "NetApp createQuotaRule Sample", - "origin": "API_DEFINITION", - "description": " Creates a new quota rule.", - "canonical": true, - "file": "net_app.create_quota_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateQuotaRule", - "fullName": "google.cloud.netapp.v1.NetApp.CreateQuotaRule", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "quota_rule", - "type": ".google.cloud.netapp.v1.QuotaRule" - }, - { - "name": "quota_rule_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "CreateQuotaRule", - "fullName": "google.cloud.netapp.v1.NetApp.CreateQuotaRule", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_UpdateQuotaRule_async", - "title": "NetApp updateQuotaRule Sample", - "origin": "API_DEFINITION", - "description": " Updates a quota rule.", - "canonical": true, - "file": "net_app.update_quota_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateQuotaRule", - "fullName": "google.cloud.netapp.v1.NetApp.UpdateQuotaRule", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "quota_rule", - "type": ".google.cloud.netapp.v1.QuotaRule" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "UpdateQuotaRule", - "fullName": "google.cloud.netapp.v1.NetApp.UpdateQuotaRule", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_DeleteQuotaRule_async", - "title": "NetApp deleteQuotaRule Sample", - "origin": "API_DEFINITION", - "description": " Deletes a quota rule.", - "canonical": true, - "file": "net_app.delete_quota_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteQuotaRule", - "fullName": "google.cloud.netapp.v1.NetApp.DeleteQuotaRule", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "DeleteQuotaRule", - "fullName": "google.cloud.netapp.v1.NetApp.DeleteQuotaRule", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_RestoreBackupFiles_async", - "title": "NetApp restoreBackupFiles Sample", - "origin": "API_DEFINITION", - "description": " Restore files from a backup to a volume.", - "canonical": true, - "file": "net_app.restore_backup_files.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RestoreBackupFiles", - "fullName": "google.cloud.netapp.v1.NetApp.RestoreBackupFiles", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "backup", - "type": "TYPE_STRING" - }, - { - "name": "file_list", - "type": "TYPE_STRING[]" - }, - { - "name": "restore_destination_path", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "RestoreBackupFiles", - "fullName": "google.cloud.netapp.v1.NetApp.RestoreBackupFiles", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_ListHostGroups_async", - "title": "NetApp listHostGroups Sample", - "origin": "API_DEFINITION", - "description": " Returns a list of host groups in a `location`. Use `-` as location to list host groups across all locations.", - "canonical": true, - "file": "net_app.list_host_groups.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListHostGroups", - "fullName": "google.cloud.netapp.v1.NetApp.ListHostGroups", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.netapp.v1.ListHostGroupsResponse", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "ListHostGroups", - "fullName": "google.cloud.netapp.v1.NetApp.ListHostGroups", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_GetHostGroup_async", - "title": "NetApp getHostGroup Sample", - "origin": "API_DEFINITION", - "description": " Returns details of the specified host group.", - "canonical": true, - "file": "net_app.get_host_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetHostGroup", - "fullName": "google.cloud.netapp.v1.NetApp.GetHostGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.netapp.v1.HostGroup", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "GetHostGroup", - "fullName": "google.cloud.netapp.v1.NetApp.GetHostGroup", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_CreateHostGroup_async", - "title": "NetApp createHostGroup Sample", - "origin": "API_DEFINITION", - "description": " Creates a new host group.", - "canonical": true, - "file": "net_app.create_host_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateHostGroup", - "fullName": "google.cloud.netapp.v1.NetApp.CreateHostGroup", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "host_group", - "type": ".google.cloud.netapp.v1.HostGroup" - }, - { - "name": "host_group_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "CreateHostGroup", - "fullName": "google.cloud.netapp.v1.NetApp.CreateHostGroup", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_UpdateHostGroup_async", - "title": "NetApp updateHostGroup Sample", - "origin": "API_DEFINITION", - "description": " Updates an existing host group.", - "canonical": true, - "file": "net_app.update_host_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateHostGroup", - "fullName": "google.cloud.netapp.v1.NetApp.UpdateHostGroup", - "async": true, - "parameters": [ - { - "name": "host_group", - "type": ".google.cloud.netapp.v1.HostGroup" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "UpdateHostGroup", - "fullName": "google.cloud.netapp.v1.NetApp.UpdateHostGroup", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_DeleteHostGroup_async", - "title": "NetApp deleteHostGroup Sample", - "origin": "API_DEFINITION", - "description": " Deletes a host group.", - "canonical": true, - "file": "net_app.delete_host_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteHostGroup", - "fullName": "google.cloud.netapp.v1.NetApp.DeleteHostGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "DeleteHostGroup", - "fullName": "google.cloud.netapp.v1.NetApp.DeleteHostGroup", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_ExecuteOntapPost_async", - "title": "NetApp executeOntapPost Sample", - "origin": "API_DEFINITION", - "description": " `ExecuteOntapPost` dispatches the ONTAP `POST` request to the `StoragePool` cluster.", - "canonical": true, - "file": "net_app.execute_ontap_post.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExecuteOntapPost", - "fullName": "google.cloud.netapp.v1.NetApp.ExecuteOntapPost", - "async": true, - "parameters": [ - { - "name": "body", - "type": ".google.protobuf.Struct" - }, - { - "name": "ontap_path", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.netapp.v1.ExecuteOntapPostResponse", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "ExecuteOntapPost", - "fullName": "google.cloud.netapp.v1.NetApp.ExecuteOntapPost", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_ExecuteOntapGet_async", - "title": "NetApp executeOntapGet Sample", - "origin": "API_DEFINITION", - "description": " `ExecuteOntapGet` dispatches the ONTAP `GET` request to the `StoragePool` cluster.", - "canonical": true, - "file": "net_app.execute_ontap_get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExecuteOntapGet", - "fullName": "google.cloud.netapp.v1.NetApp.ExecuteOntapGet", - "async": true, - "parameters": [ - { - "name": "ontap_path", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.netapp.v1.ExecuteOntapGetResponse", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "ExecuteOntapGet", - "fullName": "google.cloud.netapp.v1.NetApp.ExecuteOntapGet", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_ExecuteOntapDelete_async", - "title": "NetApp executeOntapDelete Sample", - "origin": "API_DEFINITION", - "description": " `ExecuteOntapDelete` dispatches the ONTAP `DELETE` request to the `StoragePool` cluster.", - "canonical": true, - "file": "net_app.execute_ontap_delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExecuteOntapDelete", - "fullName": "google.cloud.netapp.v1.NetApp.ExecuteOntapDelete", - "async": true, - "parameters": [ - { - "name": "ontap_path", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.netapp.v1.ExecuteOntapDeleteResponse", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "ExecuteOntapDelete", - "fullName": "google.cloud.netapp.v1.NetApp.ExecuteOntapDelete", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - }, - { - "regionTag": "netapp_v1_generated_NetApp_ExecuteOntapPatch_async", - "title": "NetApp executeOntapPatch Sample", - "origin": "API_DEFINITION", - "description": " `ExecuteOntapPatch` dispatches the ONTAP `PATCH` request to the `StoragePool` cluster.", - "canonical": true, - "file": "net_app.execute_ontap_patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExecuteOntapPatch", - "fullName": "google.cloud.netapp.v1.NetApp.ExecuteOntapPatch", - "async": true, - "parameters": [ - { - "name": "body", - "type": ".google.protobuf.Struct" - }, - { - "name": "ontap_path", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.netapp.v1.ExecuteOntapPatchResponse", - "client": { - "shortName": "NetAppClient", - "fullName": "google.cloud.netapp.v1.NetAppClient" - }, - "method": { - "shortName": "ExecuteOntapPatch", - "fullName": "google.cloud.netapp.v1.NetApp.ExecuteOntapPatch", - "service": { - "shortName": "NetApp", - "fullName": "google.cloud.netapp.v1.NetApp" - } - } - } - } - ] -} diff --git a/packages/google-cloud-networkconnectivity/samples/generated/v1/snippet_metadata_google.cloud.networkconnectivity.v1.json b/packages/google-cloud-networkconnectivity/samples/generated/v1/snippet_metadata_google.cloud.networkconnectivity.v1.json deleted file mode 100644 index e1486f87ada4..000000000000 --- a/packages/google-cloud-networkconnectivity/samples/generated/v1/snippet_metadata_google.cloud.networkconnectivity.v1.json +++ /dev/null @@ -1,3055 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-networkconnectivity", - "version": "4.6.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.networkconnectivity.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "networkconnectivity_v1_generated_CrossNetworkAutomationService_ListServiceConnectionMaps_async", - "title": "CrossNetworkAutomationService listServiceConnectionMaps Sample", - "origin": "API_DEFINITION", - "description": " Lists ServiceConnectionMaps in a given project and location.", - "canonical": true, - "file": "cross_network_automation_service.list_service_connection_maps.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListServiceConnectionMaps", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationService.ListServiceConnectionMaps", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1.ListServiceConnectionMapsResponse", - "client": { - "shortName": "CrossNetworkAutomationServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationServiceClient" - }, - "method": { - "shortName": "ListServiceConnectionMaps", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationService.ListServiceConnectionMaps", - "service": { - "shortName": "CrossNetworkAutomationService", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_CrossNetworkAutomationService_GetServiceConnectionMap_async", - "title": "CrossNetworkAutomationService getServiceConnectionMap Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single ServiceConnectionMap.", - "canonical": true, - "file": "cross_network_automation_service.get_service_connection_map.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetServiceConnectionMap", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationService.GetServiceConnectionMap", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1.ServiceConnectionMap", - "client": { - "shortName": "CrossNetworkAutomationServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationServiceClient" - }, - "method": { - "shortName": "GetServiceConnectionMap", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationService.GetServiceConnectionMap", - "service": { - "shortName": "CrossNetworkAutomationService", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_CrossNetworkAutomationService_CreateServiceConnectionMap_async", - "title": "CrossNetworkAutomationService createServiceConnectionMap Sample", - "origin": "API_DEFINITION", - "description": " Creates a new ServiceConnectionMap in a given project and location.", - "canonical": true, - "file": "cross_network_automation_service.create_service_connection_map.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateServiceConnectionMap", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationService.CreateServiceConnectionMap", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "service_connection_map_id", - "type": "TYPE_STRING" - }, - { - "name": "service_connection_map", - "type": ".google.cloud.networkconnectivity.v1.ServiceConnectionMap" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CrossNetworkAutomationServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationServiceClient" - }, - "method": { - "shortName": "CreateServiceConnectionMap", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationService.CreateServiceConnectionMap", - "service": { - "shortName": "CrossNetworkAutomationService", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_CrossNetworkAutomationService_UpdateServiceConnectionMap_async", - "title": "CrossNetworkAutomationService updateServiceConnectionMap Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single ServiceConnectionMap.", - "canonical": true, - "file": "cross_network_automation_service.update_service_connection_map.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateServiceConnectionMap", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationService.UpdateServiceConnectionMap", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "service_connection_map", - "type": ".google.cloud.networkconnectivity.v1.ServiceConnectionMap" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CrossNetworkAutomationServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationServiceClient" - }, - "method": { - "shortName": "UpdateServiceConnectionMap", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationService.UpdateServiceConnectionMap", - "service": { - "shortName": "CrossNetworkAutomationService", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_CrossNetworkAutomationService_DeleteServiceConnectionMap_async", - "title": "CrossNetworkAutomationService deleteServiceConnectionMap Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single ServiceConnectionMap.", - "canonical": true, - "file": "cross_network_automation_service.delete_service_connection_map.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteServiceConnectionMap", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationService.DeleteServiceConnectionMap", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CrossNetworkAutomationServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationServiceClient" - }, - "method": { - "shortName": "DeleteServiceConnectionMap", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationService.DeleteServiceConnectionMap", - "service": { - "shortName": "CrossNetworkAutomationService", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_CrossNetworkAutomationService_ListServiceConnectionPolicies_async", - "title": "CrossNetworkAutomationService listServiceConnectionPolicies Sample", - "origin": "API_DEFINITION", - "description": " Lists ServiceConnectionPolicies in a given project and location.", - "canonical": true, - "file": "cross_network_automation_service.list_service_connection_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListServiceConnectionPolicies", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationService.ListServiceConnectionPolicies", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1.ListServiceConnectionPoliciesResponse", - "client": { - "shortName": "CrossNetworkAutomationServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationServiceClient" - }, - "method": { - "shortName": "ListServiceConnectionPolicies", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationService.ListServiceConnectionPolicies", - "service": { - "shortName": "CrossNetworkAutomationService", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_CrossNetworkAutomationService_GetServiceConnectionPolicy_async", - "title": "CrossNetworkAutomationService getServiceConnectionPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single ServiceConnectionPolicy.", - "canonical": true, - "file": "cross_network_automation_service.get_service_connection_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetServiceConnectionPolicy", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationService.GetServiceConnectionPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1.ServiceConnectionPolicy", - "client": { - "shortName": "CrossNetworkAutomationServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationServiceClient" - }, - "method": { - "shortName": "GetServiceConnectionPolicy", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationService.GetServiceConnectionPolicy", - "service": { - "shortName": "CrossNetworkAutomationService", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_CrossNetworkAutomationService_CreateServiceConnectionPolicy_async", - "title": "CrossNetworkAutomationService createServiceConnectionPolicy Sample", - "origin": "API_DEFINITION", - "description": " Creates a new ServiceConnectionPolicy in a given project and location.", - "canonical": true, - "file": "cross_network_automation_service.create_service_connection_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateServiceConnectionPolicy", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationService.CreateServiceConnectionPolicy", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "service_connection_policy_id", - "type": "TYPE_STRING" - }, - { - "name": "service_connection_policy", - "type": ".google.cloud.networkconnectivity.v1.ServiceConnectionPolicy" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CrossNetworkAutomationServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationServiceClient" - }, - "method": { - "shortName": "CreateServiceConnectionPolicy", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationService.CreateServiceConnectionPolicy", - "service": { - "shortName": "CrossNetworkAutomationService", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_CrossNetworkAutomationService_UpdateServiceConnectionPolicy_async", - "title": "CrossNetworkAutomationService updateServiceConnectionPolicy Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single ServiceConnectionPolicy.", - "canonical": true, - "file": "cross_network_automation_service.update_service_connection_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateServiceConnectionPolicy", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationService.UpdateServiceConnectionPolicy", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "service_connection_policy", - "type": ".google.cloud.networkconnectivity.v1.ServiceConnectionPolicy" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CrossNetworkAutomationServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationServiceClient" - }, - "method": { - "shortName": "UpdateServiceConnectionPolicy", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationService.UpdateServiceConnectionPolicy", - "service": { - "shortName": "CrossNetworkAutomationService", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_CrossNetworkAutomationService_DeleteServiceConnectionPolicy_async", - "title": "CrossNetworkAutomationService deleteServiceConnectionPolicy Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single ServiceConnectionPolicy.", - "canonical": true, - "file": "cross_network_automation_service.delete_service_connection_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteServiceConnectionPolicy", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationService.DeleteServiceConnectionPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CrossNetworkAutomationServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationServiceClient" - }, - "method": { - "shortName": "DeleteServiceConnectionPolicy", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationService.DeleteServiceConnectionPolicy", - "service": { - "shortName": "CrossNetworkAutomationService", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_CrossNetworkAutomationService_ListServiceClasses_async", - "title": "CrossNetworkAutomationService listServiceClasses Sample", - "origin": "API_DEFINITION", - "description": " Lists ServiceClasses in a given project and location.", - "canonical": true, - "file": "cross_network_automation_service.list_service_classes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListServiceClasses", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationService.ListServiceClasses", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1.ListServiceClassesResponse", - "client": { - "shortName": "CrossNetworkAutomationServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationServiceClient" - }, - "method": { - "shortName": "ListServiceClasses", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationService.ListServiceClasses", - "service": { - "shortName": "CrossNetworkAutomationService", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_CrossNetworkAutomationService_GetServiceClass_async", - "title": "CrossNetworkAutomationService getServiceClass Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single ServiceClass.", - "canonical": true, - "file": "cross_network_automation_service.get_service_class.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetServiceClass", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationService.GetServiceClass", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1.ServiceClass", - "client": { - "shortName": "CrossNetworkAutomationServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationServiceClient" - }, - "method": { - "shortName": "GetServiceClass", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationService.GetServiceClass", - "service": { - "shortName": "CrossNetworkAutomationService", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_CrossNetworkAutomationService_UpdateServiceClass_async", - "title": "CrossNetworkAutomationService updateServiceClass Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single ServiceClass.", - "canonical": true, - "file": "cross_network_automation_service.update_service_class.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateServiceClass", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationService.UpdateServiceClass", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "service_class", - "type": ".google.cloud.networkconnectivity.v1.ServiceClass" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CrossNetworkAutomationServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationServiceClient" - }, - "method": { - "shortName": "UpdateServiceClass", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationService.UpdateServiceClass", - "service": { - "shortName": "CrossNetworkAutomationService", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_CrossNetworkAutomationService_DeleteServiceClass_async", - "title": "CrossNetworkAutomationService deleteServiceClass Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single ServiceClass.", - "canonical": true, - "file": "cross_network_automation_service.delete_service_class.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteServiceClass", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationService.DeleteServiceClass", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CrossNetworkAutomationServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationServiceClient" - }, - "method": { - "shortName": "DeleteServiceClass", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationService.DeleteServiceClass", - "service": { - "shortName": "CrossNetworkAutomationService", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_CrossNetworkAutomationService_GetServiceConnectionToken_async", - "title": "CrossNetworkAutomationService getServiceConnectionToken Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single ServiceConnectionToken.", - "canonical": true, - "file": "cross_network_automation_service.get_service_connection_token.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetServiceConnectionToken", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationService.GetServiceConnectionToken", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1.ServiceConnectionToken", - "client": { - "shortName": "CrossNetworkAutomationServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationServiceClient" - }, - "method": { - "shortName": "GetServiceConnectionToken", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationService.GetServiceConnectionToken", - "service": { - "shortName": "CrossNetworkAutomationService", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_CrossNetworkAutomationService_ListServiceConnectionTokens_async", - "title": "CrossNetworkAutomationService listServiceConnectionTokens Sample", - "origin": "API_DEFINITION", - "description": " Lists ServiceConnectionTokens in a given project and location.", - "canonical": true, - "file": "cross_network_automation_service.list_service_connection_tokens.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListServiceConnectionTokens", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationService.ListServiceConnectionTokens", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1.ListServiceConnectionTokensResponse", - "client": { - "shortName": "CrossNetworkAutomationServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationServiceClient" - }, - "method": { - "shortName": "ListServiceConnectionTokens", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationService.ListServiceConnectionTokens", - "service": { - "shortName": "CrossNetworkAutomationService", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_CrossNetworkAutomationService_CreateServiceConnectionToken_async", - "title": "CrossNetworkAutomationService createServiceConnectionToken Sample", - "origin": "API_DEFINITION", - "description": " Creates a new ServiceConnectionToken in a given project and location.", - "canonical": true, - "file": "cross_network_automation_service.create_service_connection_token.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateServiceConnectionToken", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationService.CreateServiceConnectionToken", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "service_connection_token_id", - "type": "TYPE_STRING" - }, - { - "name": "service_connection_token", - "type": ".google.cloud.networkconnectivity.v1.ServiceConnectionToken" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CrossNetworkAutomationServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationServiceClient" - }, - "method": { - "shortName": "CreateServiceConnectionToken", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationService.CreateServiceConnectionToken", - "service": { - "shortName": "CrossNetworkAutomationService", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_CrossNetworkAutomationService_DeleteServiceConnectionToken_async", - "title": "CrossNetworkAutomationService deleteServiceConnectionToken Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single ServiceConnectionToken.", - "canonical": true, - "file": "cross_network_automation_service.delete_service_connection_token.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteServiceConnectionToken", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationService.DeleteServiceConnectionToken", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CrossNetworkAutomationServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationServiceClient" - }, - "method": { - "shortName": "DeleteServiceConnectionToken", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationService.DeleteServiceConnectionToken", - "service": { - "shortName": "CrossNetworkAutomationService", - "fullName": "google.cloud.networkconnectivity.v1.CrossNetworkAutomationService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_DataTransferService_ListMulticloudDataTransferConfigs_async", - "title": "CrossNetworkAutomationService listMulticloudDataTransferConfigs Sample", - "origin": "API_DEFINITION", - "description": " Lists the `MulticloudDataTransferConfig` resources in a specified project and location.", - "canonical": true, - "file": "data_transfer_service.list_multicloud_data_transfer_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMulticloudDataTransferConfigs", - "fullName": "google.cloud.networkconnectivity.v1.DataTransferService.ListMulticloudDataTransferConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1.ListMulticloudDataTransferConfigsResponse", - "client": { - "shortName": "DataTransferServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.DataTransferServiceClient" - }, - "method": { - "shortName": "ListMulticloudDataTransferConfigs", - "fullName": "google.cloud.networkconnectivity.v1.DataTransferService.ListMulticloudDataTransferConfigs", - "service": { - "shortName": "DataTransferService", - "fullName": "google.cloud.networkconnectivity.v1.DataTransferService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_DataTransferService_GetMulticloudDataTransferConfig_async", - "title": "CrossNetworkAutomationService getMulticloudDataTransferConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a `MulticloudDataTransferConfig` resource.", - "canonical": true, - "file": "data_transfer_service.get_multicloud_data_transfer_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMulticloudDataTransferConfig", - "fullName": "google.cloud.networkconnectivity.v1.DataTransferService.GetMulticloudDataTransferConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig", - "client": { - "shortName": "DataTransferServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.DataTransferServiceClient" - }, - "method": { - "shortName": "GetMulticloudDataTransferConfig", - "fullName": "google.cloud.networkconnectivity.v1.DataTransferService.GetMulticloudDataTransferConfig", - "service": { - "shortName": "DataTransferService", - "fullName": "google.cloud.networkconnectivity.v1.DataTransferService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_DataTransferService_CreateMulticloudDataTransferConfig_async", - "title": "CrossNetworkAutomationService createMulticloudDataTransferConfig Sample", - "origin": "API_DEFINITION", - "description": " Creates a `MulticloudDataTransferConfig` resource in a specified project and location.", - "canonical": true, - "file": "data_transfer_service.create_multicloud_data_transfer_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateMulticloudDataTransferConfig", - "fullName": "google.cloud.networkconnectivity.v1.DataTransferService.CreateMulticloudDataTransferConfig", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "multicloud_data_transfer_config_id", - "type": "TYPE_STRING" - }, - { - "name": "multicloud_data_transfer_config", - "type": ".google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataTransferServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.DataTransferServiceClient" - }, - "method": { - "shortName": "CreateMulticloudDataTransferConfig", - "fullName": "google.cloud.networkconnectivity.v1.DataTransferService.CreateMulticloudDataTransferConfig", - "service": { - "shortName": "DataTransferService", - "fullName": "google.cloud.networkconnectivity.v1.DataTransferService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_DataTransferService_UpdateMulticloudDataTransferConfig_async", - "title": "CrossNetworkAutomationService updateMulticloudDataTransferConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates a `MulticloudDataTransferConfig` resource in a specified project and location.", - "canonical": true, - "file": "data_transfer_service.update_multicloud_data_transfer_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateMulticloudDataTransferConfig", - "fullName": "google.cloud.networkconnectivity.v1.DataTransferService.UpdateMulticloudDataTransferConfig", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "multicloud_data_transfer_config", - "type": ".google.cloud.networkconnectivity.v1.MulticloudDataTransferConfig" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataTransferServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.DataTransferServiceClient" - }, - "method": { - "shortName": "UpdateMulticloudDataTransferConfig", - "fullName": "google.cloud.networkconnectivity.v1.DataTransferService.UpdateMulticloudDataTransferConfig", - "service": { - "shortName": "DataTransferService", - "fullName": "google.cloud.networkconnectivity.v1.DataTransferService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_DataTransferService_DeleteMulticloudDataTransferConfig_async", - "title": "CrossNetworkAutomationService deleteMulticloudDataTransferConfig Sample", - "origin": "API_DEFINITION", - "description": " Deletes a `MulticloudDataTransferConfig` resource.", - "canonical": true, - "file": "data_transfer_service.delete_multicloud_data_transfer_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteMulticloudDataTransferConfig", - "fullName": "google.cloud.networkconnectivity.v1.DataTransferService.DeleteMulticloudDataTransferConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataTransferServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.DataTransferServiceClient" - }, - "method": { - "shortName": "DeleteMulticloudDataTransferConfig", - "fullName": "google.cloud.networkconnectivity.v1.DataTransferService.DeleteMulticloudDataTransferConfig", - "service": { - "shortName": "DataTransferService", - "fullName": "google.cloud.networkconnectivity.v1.DataTransferService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_DataTransferService_ListDestinations_async", - "title": "CrossNetworkAutomationService listDestinations Sample", - "origin": "API_DEFINITION", - "description": " Lists the `Destination` resources in a specified project and location.", - "canonical": true, - "file": "data_transfer_service.list_destinations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDestinations", - "fullName": "google.cloud.networkconnectivity.v1.DataTransferService.ListDestinations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1.ListDestinationsResponse", - "client": { - "shortName": "DataTransferServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.DataTransferServiceClient" - }, - "method": { - "shortName": "ListDestinations", - "fullName": "google.cloud.networkconnectivity.v1.DataTransferService.ListDestinations", - "service": { - "shortName": "DataTransferService", - "fullName": "google.cloud.networkconnectivity.v1.DataTransferService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_DataTransferService_GetDestination_async", - "title": "CrossNetworkAutomationService getDestination Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a `Destination` resource.", - "canonical": true, - "file": "data_transfer_service.get_destination.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDestination", - "fullName": "google.cloud.networkconnectivity.v1.DataTransferService.GetDestination", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1.Destination", - "client": { - "shortName": "DataTransferServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.DataTransferServiceClient" - }, - "method": { - "shortName": "GetDestination", - "fullName": "google.cloud.networkconnectivity.v1.DataTransferService.GetDestination", - "service": { - "shortName": "DataTransferService", - "fullName": "google.cloud.networkconnectivity.v1.DataTransferService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_DataTransferService_CreateDestination_async", - "title": "CrossNetworkAutomationService createDestination Sample", - "origin": "API_DEFINITION", - "description": " Creates a `Destination` resource in a specified project and location.", - "canonical": true, - "file": "data_transfer_service.create_destination.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDestination", - "fullName": "google.cloud.networkconnectivity.v1.DataTransferService.CreateDestination", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "destination_id", - "type": "TYPE_STRING" - }, - { - "name": "destination", - "type": ".google.cloud.networkconnectivity.v1.Destination" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataTransferServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.DataTransferServiceClient" - }, - "method": { - "shortName": "CreateDestination", - "fullName": "google.cloud.networkconnectivity.v1.DataTransferService.CreateDestination", - "service": { - "shortName": "DataTransferService", - "fullName": "google.cloud.networkconnectivity.v1.DataTransferService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_DataTransferService_UpdateDestination_async", - "title": "CrossNetworkAutomationService updateDestination Sample", - "origin": "API_DEFINITION", - "description": " Updates a `Destination` resource in a specified project and location.", - "canonical": true, - "file": "data_transfer_service.update_destination.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDestination", - "fullName": "google.cloud.networkconnectivity.v1.DataTransferService.UpdateDestination", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "destination", - "type": ".google.cloud.networkconnectivity.v1.Destination" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataTransferServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.DataTransferServiceClient" - }, - "method": { - "shortName": "UpdateDestination", - "fullName": "google.cloud.networkconnectivity.v1.DataTransferService.UpdateDestination", - "service": { - "shortName": "DataTransferService", - "fullName": "google.cloud.networkconnectivity.v1.DataTransferService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_DataTransferService_DeleteDestination_async", - "title": "CrossNetworkAutomationService deleteDestination Sample", - "origin": "API_DEFINITION", - "description": " Deletes a `Destination` resource.", - "canonical": true, - "file": "data_transfer_service.delete_destination.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDestination", - "fullName": "google.cloud.networkconnectivity.v1.DataTransferService.DeleteDestination", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataTransferServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.DataTransferServiceClient" - }, - "method": { - "shortName": "DeleteDestination", - "fullName": "google.cloud.networkconnectivity.v1.DataTransferService.DeleteDestination", - "service": { - "shortName": "DataTransferService", - "fullName": "google.cloud.networkconnectivity.v1.DataTransferService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_DataTransferService_GetMulticloudDataTransferSupportedService_async", - "title": "CrossNetworkAutomationService getMulticloudDataTransferSupportedService Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a service that is supported for Data Transfer Essentials.", - "canonical": true, - "file": "data_transfer_service.get_multicloud_data_transfer_supported_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMulticloudDataTransferSupportedService", - "fullName": "google.cloud.networkconnectivity.v1.DataTransferService.GetMulticloudDataTransferSupportedService", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1.MulticloudDataTransferSupportedService", - "client": { - "shortName": "DataTransferServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.DataTransferServiceClient" - }, - "method": { - "shortName": "GetMulticloudDataTransferSupportedService", - "fullName": "google.cloud.networkconnectivity.v1.DataTransferService.GetMulticloudDataTransferSupportedService", - "service": { - "shortName": "DataTransferService", - "fullName": "google.cloud.networkconnectivity.v1.DataTransferService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_DataTransferService_ListMulticloudDataTransferSupportedServices_async", - "title": "CrossNetworkAutomationService listMulticloudDataTransferSupportedServices Sample", - "origin": "API_DEFINITION", - "description": " Lists the services in the project for a region that are supported for Data Transfer Essentials.", - "canonical": true, - "file": "data_transfer_service.list_multicloud_data_transfer_supported_services.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMulticloudDataTransferSupportedServices", - "fullName": "google.cloud.networkconnectivity.v1.DataTransferService.ListMulticloudDataTransferSupportedServices", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1.ListMulticloudDataTransferSupportedServicesResponse", - "client": { - "shortName": "DataTransferServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.DataTransferServiceClient" - }, - "method": { - "shortName": "ListMulticloudDataTransferSupportedServices", - "fullName": "google.cloud.networkconnectivity.v1.DataTransferService.ListMulticloudDataTransferSupportedServices", - "service": { - "shortName": "DataTransferService", - "fullName": "google.cloud.networkconnectivity.v1.DataTransferService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_HubService_ListHubs_async", - "title": "CrossNetworkAutomationService listHubs Sample", - "origin": "API_DEFINITION", - "description": " Lists the Network Connectivity Center hubs associated with a given project.", - "canonical": true, - "file": "hub_service.list_hubs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListHubs", - "fullName": "google.cloud.networkconnectivity.v1.HubService.ListHubs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1.ListHubsResponse", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.HubServiceClient" - }, - "method": { - "shortName": "ListHubs", - "fullName": "google.cloud.networkconnectivity.v1.HubService.ListHubs", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1.HubService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_HubService_GetHub_async", - "title": "CrossNetworkAutomationService getHub Sample", - "origin": "API_DEFINITION", - "description": " Gets details about a Network Connectivity Center hub.", - "canonical": true, - "file": "hub_service.get_hub.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetHub", - "fullName": "google.cloud.networkconnectivity.v1.HubService.GetHub", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1.Hub", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.HubServiceClient" - }, - "method": { - "shortName": "GetHub", - "fullName": "google.cloud.networkconnectivity.v1.HubService.GetHub", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1.HubService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_HubService_CreateHub_async", - "title": "CrossNetworkAutomationService createHub Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Network Connectivity Center hub in the specified project.", - "canonical": true, - "file": "hub_service.create_hub.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateHub", - "fullName": "google.cloud.networkconnectivity.v1.HubService.CreateHub", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "hub_id", - "type": "TYPE_STRING" - }, - { - "name": "hub", - "type": ".google.cloud.networkconnectivity.v1.Hub" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.HubServiceClient" - }, - "method": { - "shortName": "CreateHub", - "fullName": "google.cloud.networkconnectivity.v1.HubService.CreateHub", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1.HubService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_HubService_UpdateHub_async", - "title": "CrossNetworkAutomationService updateHub Sample", - "origin": "API_DEFINITION", - "description": " Updates the description and/or labels of a Network Connectivity Center hub.", - "canonical": true, - "file": "hub_service.update_hub.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateHub", - "fullName": "google.cloud.networkconnectivity.v1.HubService.UpdateHub", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "hub", - "type": ".google.cloud.networkconnectivity.v1.Hub" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.HubServiceClient" - }, - "method": { - "shortName": "UpdateHub", - "fullName": "google.cloud.networkconnectivity.v1.HubService.UpdateHub", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1.HubService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_HubService_DeleteHub_async", - "title": "CrossNetworkAutomationService deleteHub Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Network Connectivity Center hub.", - "canonical": true, - "file": "hub_service.delete_hub.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteHub", - "fullName": "google.cloud.networkconnectivity.v1.HubService.DeleteHub", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.HubServiceClient" - }, - "method": { - "shortName": "DeleteHub", - "fullName": "google.cloud.networkconnectivity.v1.HubService.DeleteHub", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1.HubService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_HubService_ListHubSpokes_async", - "title": "CrossNetworkAutomationService listHubSpokes Sample", - "origin": "API_DEFINITION", - "description": " Lists the Network Connectivity Center spokes associated with a specified hub and location. The list includes both spokes that are attached to the hub and spokes that have been proposed but not yet accepted.", - "canonical": true, - "file": "hub_service.list_hub_spokes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 88, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListHubSpokes", - "fullName": "google.cloud.networkconnectivity.v1.HubService.ListHubSpokes", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "spoke_locations", - "type": "TYPE_STRING[]" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.networkconnectivity.v1.ListHubSpokesRequest.SpokeView" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1.ListHubSpokesResponse", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.HubServiceClient" - }, - "method": { - "shortName": "ListHubSpokes", - "fullName": "google.cloud.networkconnectivity.v1.HubService.ListHubSpokes", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1.HubService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_HubService_QueryHubStatus_async", - "title": "CrossNetworkAutomationService queryHubStatus Sample", - "origin": "API_DEFINITION", - "description": " Query the Private Service Connect propagation status of a Network Connectivity Center hub.", - "canonical": true, - "file": "hub_service.query_hub_status.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 99, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryHubStatus", - "fullName": "google.cloud.networkconnectivity.v1.HubService.QueryHubStatus", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "group_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1.QueryHubStatusResponse", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.HubServiceClient" - }, - "method": { - "shortName": "QueryHubStatus", - "fullName": "google.cloud.networkconnectivity.v1.HubService.QueryHubStatus", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1.HubService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_HubService_ListSpokes_async", - "title": "CrossNetworkAutomationService listSpokes Sample", - "origin": "API_DEFINITION", - "description": " Lists the Network Connectivity Center spokes in a specified project and location.", - "canonical": true, - "file": "hub_service.list_spokes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSpokes", - "fullName": "google.cloud.networkconnectivity.v1.HubService.ListSpokes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1.ListSpokesResponse", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.HubServiceClient" - }, - "method": { - "shortName": "ListSpokes", - "fullName": "google.cloud.networkconnectivity.v1.HubService.ListSpokes", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1.HubService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_HubService_GetSpoke_async", - "title": "CrossNetworkAutomationService getSpoke Sample", - "origin": "API_DEFINITION", - "description": " Gets details about a Network Connectivity Center spoke.", - "canonical": true, - "file": "hub_service.get_spoke.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSpoke", - "fullName": "google.cloud.networkconnectivity.v1.HubService.GetSpoke", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1.Spoke", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.HubServiceClient" - }, - "method": { - "shortName": "GetSpoke", - "fullName": "google.cloud.networkconnectivity.v1.HubService.GetSpoke", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1.HubService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_HubService_CreateSpoke_async", - "title": "CrossNetworkAutomationService createSpoke Sample", - "origin": "API_DEFINITION", - "description": " Creates a Network Connectivity Center spoke.", - "canonical": true, - "file": "hub_service.create_spoke.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSpoke", - "fullName": "google.cloud.networkconnectivity.v1.HubService.CreateSpoke", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "spoke_id", - "type": "TYPE_STRING" - }, - { - "name": "spoke", - "type": ".google.cloud.networkconnectivity.v1.Spoke" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.HubServiceClient" - }, - "method": { - "shortName": "CreateSpoke", - "fullName": "google.cloud.networkconnectivity.v1.HubService.CreateSpoke", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1.HubService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_HubService_UpdateSpoke_async", - "title": "CrossNetworkAutomationService updateSpoke Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a Network Connectivity Center spoke.", - "canonical": true, - "file": "hub_service.update_spoke.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSpoke", - "fullName": "google.cloud.networkconnectivity.v1.HubService.UpdateSpoke", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "spoke", - "type": ".google.cloud.networkconnectivity.v1.Spoke" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.HubServiceClient" - }, - "method": { - "shortName": "UpdateSpoke", - "fullName": "google.cloud.networkconnectivity.v1.HubService.UpdateSpoke", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1.HubService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_HubService_RejectHubSpoke_async", - "title": "CrossNetworkAutomationService rejectHubSpoke Sample", - "origin": "API_DEFINITION", - "description": " Rejects a Network Connectivity Center spoke from being attached to a hub. If the spoke was previously in the `ACTIVE` state, it transitions to the `INACTIVE` state and is no longer able to connect to other spokes that are attached to the hub.", - "canonical": true, - "file": "hub_service.reject_hub_spoke.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RejectHubSpoke", - "fullName": "google.cloud.networkconnectivity.v1.HubService.RejectHubSpoke", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "spoke_uri", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "details", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.HubServiceClient" - }, - "method": { - "shortName": "RejectHubSpoke", - "fullName": "google.cloud.networkconnectivity.v1.HubService.RejectHubSpoke", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1.HubService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_HubService_AcceptHubSpoke_async", - "title": "CrossNetworkAutomationService acceptHubSpoke Sample", - "origin": "API_DEFINITION", - "description": " Accepts a proposal to attach a Network Connectivity Center spoke to a hub.", - "canonical": true, - "file": "hub_service.accept_hub_spoke.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AcceptHubSpoke", - "fullName": "google.cloud.networkconnectivity.v1.HubService.AcceptHubSpoke", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "spoke_uri", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.HubServiceClient" - }, - "method": { - "shortName": "AcceptHubSpoke", - "fullName": "google.cloud.networkconnectivity.v1.HubService.AcceptHubSpoke", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1.HubService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_HubService_AcceptSpokeUpdate_async", - "title": "CrossNetworkAutomationService acceptSpokeUpdate Sample", - "origin": "API_DEFINITION", - "description": " Accepts a proposal to update a Network Connectivity Center spoke in a hub.", - "canonical": true, - "file": "hub_service.accept_spoke_update.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AcceptSpokeUpdate", - "fullName": "google.cloud.networkconnectivity.v1.HubService.AcceptSpokeUpdate", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "spoke_uri", - "type": "TYPE_STRING" - }, - { - "name": "spoke_etag", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.HubServiceClient" - }, - "method": { - "shortName": "AcceptSpokeUpdate", - "fullName": "google.cloud.networkconnectivity.v1.HubService.AcceptSpokeUpdate", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1.HubService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_HubService_RejectSpokeUpdate_async", - "title": "CrossNetworkAutomationService rejectSpokeUpdate Sample", - "origin": "API_DEFINITION", - "description": " Rejects a proposal to update a Network Connectivity Center spoke in a hub.", - "canonical": true, - "file": "hub_service.reject_spoke_update.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RejectSpokeUpdate", - "fullName": "google.cloud.networkconnectivity.v1.HubService.RejectSpokeUpdate", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "spoke_uri", - "type": "TYPE_STRING" - }, - { - "name": "spoke_etag", - "type": "TYPE_STRING" - }, - { - "name": "details", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.HubServiceClient" - }, - "method": { - "shortName": "RejectSpokeUpdate", - "fullName": "google.cloud.networkconnectivity.v1.HubService.RejectSpokeUpdate", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1.HubService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_HubService_DeleteSpoke_async", - "title": "CrossNetworkAutomationService deleteSpoke Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Network Connectivity Center spoke.", - "canonical": true, - "file": "hub_service.delete_spoke.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSpoke", - "fullName": "google.cloud.networkconnectivity.v1.HubService.DeleteSpoke", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.HubServiceClient" - }, - "method": { - "shortName": "DeleteSpoke", - "fullName": "google.cloud.networkconnectivity.v1.HubService.DeleteSpoke", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1.HubService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_HubService_GetRouteTable_async", - "title": "CrossNetworkAutomationService getRouteTable Sample", - "origin": "API_DEFINITION", - "description": " Gets details about a Network Connectivity Center route table.", - "canonical": true, - "file": "hub_service.get_route_table.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRouteTable", - "fullName": "google.cloud.networkconnectivity.v1.HubService.GetRouteTable", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1.RouteTable", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.HubServiceClient" - }, - "method": { - "shortName": "GetRouteTable", - "fullName": "google.cloud.networkconnectivity.v1.HubService.GetRouteTable", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1.HubService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_HubService_GetRoute_async", - "title": "CrossNetworkAutomationService getRoute Sample", - "origin": "API_DEFINITION", - "description": " Gets details about the specified route.", - "canonical": true, - "file": "hub_service.get_route.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRoute", - "fullName": "google.cloud.networkconnectivity.v1.HubService.GetRoute", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1.Route", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.HubServiceClient" - }, - "method": { - "shortName": "GetRoute", - "fullName": "google.cloud.networkconnectivity.v1.HubService.GetRoute", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1.HubService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_HubService_ListRoutes_async", - "title": "CrossNetworkAutomationService listRoutes Sample", - "origin": "API_DEFINITION", - "description": " Lists routes in a given route table.", - "canonical": true, - "file": "hub_service.list_routes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRoutes", - "fullName": "google.cloud.networkconnectivity.v1.HubService.ListRoutes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1.ListRoutesResponse", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.HubServiceClient" - }, - "method": { - "shortName": "ListRoutes", - "fullName": "google.cloud.networkconnectivity.v1.HubService.ListRoutes", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1.HubService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_HubService_ListRouteTables_async", - "title": "CrossNetworkAutomationService listRouteTables Sample", - "origin": "API_DEFINITION", - "description": " Lists route tables in a given hub.", - "canonical": true, - "file": "hub_service.list_route_tables.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRouteTables", - "fullName": "google.cloud.networkconnectivity.v1.HubService.ListRouteTables", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1.ListRouteTablesResponse", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.HubServiceClient" - }, - "method": { - "shortName": "ListRouteTables", - "fullName": "google.cloud.networkconnectivity.v1.HubService.ListRouteTables", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1.HubService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_HubService_GetGroup_async", - "title": "CrossNetworkAutomationService getGroup Sample", - "origin": "API_DEFINITION", - "description": " Gets details about a Network Connectivity Center group.", - "canonical": true, - "file": "hub_service.get_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetGroup", - "fullName": "google.cloud.networkconnectivity.v1.HubService.GetGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1.Group", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.HubServiceClient" - }, - "method": { - "shortName": "GetGroup", - "fullName": "google.cloud.networkconnectivity.v1.HubService.GetGroup", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1.HubService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_HubService_ListGroups_async", - "title": "CrossNetworkAutomationService listGroups Sample", - "origin": "API_DEFINITION", - "description": " Lists groups in a given hub.", - "canonical": true, - "file": "hub_service.list_groups.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListGroups", - "fullName": "google.cloud.networkconnectivity.v1.HubService.ListGroups", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1.ListGroupsResponse", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.HubServiceClient" - }, - "method": { - "shortName": "ListGroups", - "fullName": "google.cloud.networkconnectivity.v1.HubService.ListGroups", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1.HubService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_HubService_UpdateGroup_async", - "title": "CrossNetworkAutomationService updateGroup Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a Network Connectivity Center group.", - "canonical": true, - "file": "hub_service.update_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateGroup", - "fullName": "google.cloud.networkconnectivity.v1.HubService.UpdateGroup", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "group", - "type": ".google.cloud.networkconnectivity.v1.Group" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.HubServiceClient" - }, - "method": { - "shortName": "UpdateGroup", - "fullName": "google.cloud.networkconnectivity.v1.HubService.UpdateGroup", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1.HubService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_InternalRangeService_ListInternalRanges_async", - "title": "CrossNetworkAutomationService listInternalRanges Sample", - "origin": "API_DEFINITION", - "description": " Lists internal ranges in a given project and location.", - "canonical": true, - "file": "internal_range_service.list_internal_ranges.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListInternalRanges", - "fullName": "google.cloud.networkconnectivity.v1.InternalRangeService.ListInternalRanges", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1.ListInternalRangesResponse", - "client": { - "shortName": "InternalRangeServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.InternalRangeServiceClient" - }, - "method": { - "shortName": "ListInternalRanges", - "fullName": "google.cloud.networkconnectivity.v1.InternalRangeService.ListInternalRanges", - "service": { - "shortName": "InternalRangeService", - "fullName": "google.cloud.networkconnectivity.v1.InternalRangeService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_InternalRangeService_GetInternalRange_async", - "title": "CrossNetworkAutomationService getInternalRange Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single internal range.", - "canonical": true, - "file": "internal_range_service.get_internal_range.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetInternalRange", - "fullName": "google.cloud.networkconnectivity.v1.InternalRangeService.GetInternalRange", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1.InternalRange", - "client": { - "shortName": "InternalRangeServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.InternalRangeServiceClient" - }, - "method": { - "shortName": "GetInternalRange", - "fullName": "google.cloud.networkconnectivity.v1.InternalRangeService.GetInternalRange", - "service": { - "shortName": "InternalRangeService", - "fullName": "google.cloud.networkconnectivity.v1.InternalRangeService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_InternalRangeService_CreateInternalRange_async", - "title": "CrossNetworkAutomationService createInternalRange Sample", - "origin": "API_DEFINITION", - "description": " Creates a new internal range in a given project and location.", - "canonical": true, - "file": "internal_range_service.create_internal_range.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateInternalRange", - "fullName": "google.cloud.networkconnectivity.v1.InternalRangeService.CreateInternalRange", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "internal_range_id", - "type": "TYPE_STRING" - }, - { - "name": "internal_range", - "type": ".google.cloud.networkconnectivity.v1.InternalRange" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "InternalRangeServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.InternalRangeServiceClient" - }, - "method": { - "shortName": "CreateInternalRange", - "fullName": "google.cloud.networkconnectivity.v1.InternalRangeService.CreateInternalRange", - "service": { - "shortName": "InternalRangeService", - "fullName": "google.cloud.networkconnectivity.v1.InternalRangeService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_InternalRangeService_UpdateInternalRange_async", - "title": "CrossNetworkAutomationService updateInternalRange Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single internal range.", - "canonical": true, - "file": "internal_range_service.update_internal_range.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateInternalRange", - "fullName": "google.cloud.networkconnectivity.v1.InternalRangeService.UpdateInternalRange", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "internal_range", - "type": ".google.cloud.networkconnectivity.v1.InternalRange" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "InternalRangeServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.InternalRangeServiceClient" - }, - "method": { - "shortName": "UpdateInternalRange", - "fullName": "google.cloud.networkconnectivity.v1.InternalRangeService.UpdateInternalRange", - "service": { - "shortName": "InternalRangeService", - "fullName": "google.cloud.networkconnectivity.v1.InternalRangeService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_InternalRangeService_DeleteInternalRange_async", - "title": "CrossNetworkAutomationService deleteInternalRange Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single internal range.", - "canonical": true, - "file": "internal_range_service.delete_internal_range.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteInternalRange", - "fullName": "google.cloud.networkconnectivity.v1.InternalRangeService.DeleteInternalRange", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "InternalRangeServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.InternalRangeServiceClient" - }, - "method": { - "shortName": "DeleteInternalRange", - "fullName": "google.cloud.networkconnectivity.v1.InternalRangeService.DeleteInternalRange", - "service": { - "shortName": "InternalRangeService", - "fullName": "google.cloud.networkconnectivity.v1.InternalRangeService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_PolicyBasedRoutingService_ListPolicyBasedRoutes_async", - "title": "CrossNetworkAutomationService listPolicyBasedRoutes Sample", - "origin": "API_DEFINITION", - "description": " Lists policy-based routes in a given project and location.", - "canonical": true, - "file": "policy_based_routing_service.list_policy_based_routes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPolicyBasedRoutes", - "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService.ListPolicyBasedRoutes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1.ListPolicyBasedRoutesResponse", - "client": { - "shortName": "PolicyBasedRoutingServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient" - }, - "method": { - "shortName": "ListPolicyBasedRoutes", - "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService.ListPolicyBasedRoutes", - "service": { - "shortName": "PolicyBasedRoutingService", - "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_PolicyBasedRoutingService_GetPolicyBasedRoute_async", - "title": "CrossNetworkAutomationService getPolicyBasedRoute Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single policy-based route.", - "canonical": true, - "file": "policy_based_routing_service.get_policy_based_route.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPolicyBasedRoute", - "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService.GetPolicyBasedRoute", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1.PolicyBasedRoute", - "client": { - "shortName": "PolicyBasedRoutingServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient" - }, - "method": { - "shortName": "GetPolicyBasedRoute", - "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService.GetPolicyBasedRoute", - "service": { - "shortName": "PolicyBasedRoutingService", - "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_PolicyBasedRoutingService_CreatePolicyBasedRoute_async", - "title": "CrossNetworkAutomationService createPolicyBasedRoute Sample", - "origin": "API_DEFINITION", - "description": " Creates a new policy-based route in a given project and location.", - "canonical": true, - "file": "policy_based_routing_service.create_policy_based_route.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreatePolicyBasedRoute", - "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService.CreatePolicyBasedRoute", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "policy_based_route_id", - "type": "TYPE_STRING" - }, - { - "name": "policy_based_route", - "type": ".google.cloud.networkconnectivity.v1.PolicyBasedRoute" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "PolicyBasedRoutingServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient" - }, - "method": { - "shortName": "CreatePolicyBasedRoute", - "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService.CreatePolicyBasedRoute", - "service": { - "shortName": "PolicyBasedRoutingService", - "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1_generated_PolicyBasedRoutingService_DeletePolicyBasedRoute_async", - "title": "CrossNetworkAutomationService deletePolicyBasedRoute Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single policy-based route.", - "canonical": true, - "file": "policy_based_routing_service.delete_policy_based_route.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePolicyBasedRoute", - "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService.DeletePolicyBasedRoute", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "PolicyBasedRoutingServiceClient", - "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingServiceClient" - }, - "method": { - "shortName": "DeletePolicyBasedRoute", - "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService.DeletePolicyBasedRoute", - "service": { - "shortName": "PolicyBasedRoutingService", - "fullName": "google.cloud.networkconnectivity.v1.PolicyBasedRoutingService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-networkconnectivity/samples/generated/v1alpha1/snippet_metadata_google.cloud.networkconnectivity.v1alpha1.json b/packages/google-cloud-networkconnectivity/samples/generated/v1alpha1/snippet_metadata_google.cloud.networkconnectivity.v1alpha1.json deleted file mode 100644 index ee5537ebd4a6..000000000000 --- a/packages/google-cloud-networkconnectivity/samples/generated/v1alpha1/snippet_metadata_google.cloud.networkconnectivity.v1alpha1.json +++ /dev/null @@ -1,495 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-networkconnectivity", - "version": "4.6.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.networkconnectivity.v1alpha1", - "version": "v1alpha1" - } - ] - }, - "snippets": [ - { - "regionTag": "networkconnectivity_v1alpha1_generated_HubService_ListHubs_async", - "title": "HubService listHubs Sample", - "origin": "API_DEFINITION", - "description": " Lists Hubs in a given project and location.", - "canonical": true, - "file": "hub_service.list_hubs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListHubs", - "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService.ListHubs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1alpha1.ListHubsResponse", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1alpha1.HubServiceClient" - }, - "method": { - "shortName": "ListHubs", - "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService.ListHubs", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1alpha1_generated_HubService_GetHub_async", - "title": "HubService getHub Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Hub.", - "canonical": true, - "file": "hub_service.get_hub.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetHub", - "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService.GetHub", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1alpha1.Hub", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1alpha1.HubServiceClient" - }, - "method": { - "shortName": "GetHub", - "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService.GetHub", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1alpha1_generated_HubService_CreateHub_async", - "title": "HubService createHub Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Hub in a given project and location.", - "canonical": true, - "file": "hub_service.create_hub.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateHub", - "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService.CreateHub", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "hub_id", - "type": "TYPE_STRING" - }, - { - "name": "hub", - "type": ".google.cloud.networkconnectivity.v1alpha1.Hub" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1alpha1.HubServiceClient" - }, - "method": { - "shortName": "CreateHub", - "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService.CreateHub", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1alpha1_generated_HubService_UpdateHub_async", - "title": "HubService updateHub Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Hub.", - "canonical": true, - "file": "hub_service.update_hub.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateHub", - "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService.UpdateHub", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "hub", - "type": ".google.cloud.networkconnectivity.v1alpha1.Hub" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1alpha1.HubServiceClient" - }, - "method": { - "shortName": "UpdateHub", - "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService.UpdateHub", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1alpha1_generated_HubService_DeleteHub_async", - "title": "HubService deleteHub Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Hub.", - "canonical": true, - "file": "hub_service.delete_hub.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteHub", - "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService.DeleteHub", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1alpha1.HubServiceClient" - }, - "method": { - "shortName": "DeleteHub", - "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService.DeleteHub", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1alpha1_generated_HubService_ListSpokes_async", - "title": "HubService listSpokes Sample", - "origin": "API_DEFINITION", - "description": " Lists Spokes in a given project and location.", - "canonical": true, - "file": "hub_service.list_spokes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSpokes", - "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService.ListSpokes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1alpha1.ListSpokesResponse", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1alpha1.HubServiceClient" - }, - "method": { - "shortName": "ListSpokes", - "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService.ListSpokes", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1alpha1_generated_HubService_GetSpoke_async", - "title": "HubService getSpoke Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Spoke.", - "canonical": true, - "file": "hub_service.get_spoke.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSpoke", - "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService.GetSpoke", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1alpha1.Spoke", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1alpha1.HubServiceClient" - }, - "method": { - "shortName": "GetSpoke", - "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService.GetSpoke", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1alpha1_generated_HubService_CreateSpoke_async", - "title": "HubService createSpoke Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Spoke in a given project and location.", - "canonical": true, - "file": "hub_service.create_spoke.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSpoke", - "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService.CreateSpoke", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "spoke_id", - "type": "TYPE_STRING" - }, - { - "name": "spoke", - "type": ".google.cloud.networkconnectivity.v1alpha1.Spoke" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1alpha1.HubServiceClient" - }, - "method": { - "shortName": "CreateSpoke", - "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService.CreateSpoke", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1alpha1_generated_HubService_UpdateSpoke_async", - "title": "HubService updateSpoke Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Spoke.", - "canonical": true, - "file": "hub_service.update_spoke.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSpoke", - "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService.UpdateSpoke", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "spoke", - "type": ".google.cloud.networkconnectivity.v1alpha1.Spoke" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1alpha1.HubServiceClient" - }, - "method": { - "shortName": "UpdateSpoke", - "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService.UpdateSpoke", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1alpha1_generated_HubService_DeleteSpoke_async", - "title": "HubService deleteSpoke Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Spoke.", - "canonical": true, - "file": "hub_service.delete_spoke.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSpoke", - "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService.DeleteSpoke", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1alpha1.HubServiceClient" - }, - "method": { - "shortName": "DeleteSpoke", - "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService.DeleteSpoke", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1alpha1.HubService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-networkconnectivity/samples/generated/v1beta/snippet_metadata_google.cloud.networkconnectivity.v1beta.json b/packages/google-cloud-networkconnectivity/samples/generated/v1beta/snippet_metadata_google.cloud.networkconnectivity.v1beta.json deleted file mode 100644 index 7656341ab253..000000000000 --- a/packages/google-cloud-networkconnectivity/samples/generated/v1beta/snippet_metadata_google.cloud.networkconnectivity.v1beta.json +++ /dev/null @@ -1,2555 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-networkconnectivity", - "version": "4.6.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.networkconnectivity.v1beta", - "version": "v1beta" - } - ] - }, - "snippets": [ - { - "regionTag": "networkconnectivity_v1beta_generated_DataTransferService_ListMulticloudDataTransferConfigs_async", - "title": "DataTransferService listMulticloudDataTransferConfigs Sample", - "origin": "API_DEFINITION", - "description": " Lists the `MulticloudDataTransferConfig` resources in a specified project and location.", - "canonical": true, - "file": "data_transfer_service.list_multicloud_data_transfer_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMulticloudDataTransferConfigs", - "fullName": "google.cloud.networkconnectivity.v1beta.DataTransferService.ListMulticloudDataTransferConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1beta.ListMulticloudDataTransferConfigsResponse", - "client": { - "shortName": "DataTransferServiceClient", - "fullName": "google.cloud.networkconnectivity.v1beta.DataTransferServiceClient" - }, - "method": { - "shortName": "ListMulticloudDataTransferConfigs", - "fullName": "google.cloud.networkconnectivity.v1beta.DataTransferService.ListMulticloudDataTransferConfigs", - "service": { - "shortName": "DataTransferService", - "fullName": "google.cloud.networkconnectivity.v1beta.DataTransferService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1beta_generated_DataTransferService_GetMulticloudDataTransferConfig_async", - "title": "DataTransferService getMulticloudDataTransferConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a `MulticloudDataTransferConfig` resource.", - "canonical": true, - "file": "data_transfer_service.get_multicloud_data_transfer_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMulticloudDataTransferConfig", - "fullName": "google.cloud.networkconnectivity.v1beta.DataTransferService.GetMulticloudDataTransferConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1beta.MulticloudDataTransferConfig", - "client": { - "shortName": "DataTransferServiceClient", - "fullName": "google.cloud.networkconnectivity.v1beta.DataTransferServiceClient" - }, - "method": { - "shortName": "GetMulticloudDataTransferConfig", - "fullName": "google.cloud.networkconnectivity.v1beta.DataTransferService.GetMulticloudDataTransferConfig", - "service": { - "shortName": "DataTransferService", - "fullName": "google.cloud.networkconnectivity.v1beta.DataTransferService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1beta_generated_DataTransferService_CreateMulticloudDataTransferConfig_async", - "title": "DataTransferService createMulticloudDataTransferConfig Sample", - "origin": "API_DEFINITION", - "description": " Creates a `MulticloudDataTransferConfig` resource in a specified project and location.", - "canonical": true, - "file": "data_transfer_service.create_multicloud_data_transfer_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateMulticloudDataTransferConfig", - "fullName": "google.cloud.networkconnectivity.v1beta.DataTransferService.CreateMulticloudDataTransferConfig", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "multicloud_data_transfer_config_id", - "type": "TYPE_STRING" - }, - { - "name": "multicloud_data_transfer_config", - "type": ".google.cloud.networkconnectivity.v1beta.MulticloudDataTransferConfig" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataTransferServiceClient", - "fullName": "google.cloud.networkconnectivity.v1beta.DataTransferServiceClient" - }, - "method": { - "shortName": "CreateMulticloudDataTransferConfig", - "fullName": "google.cloud.networkconnectivity.v1beta.DataTransferService.CreateMulticloudDataTransferConfig", - "service": { - "shortName": "DataTransferService", - "fullName": "google.cloud.networkconnectivity.v1beta.DataTransferService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1beta_generated_DataTransferService_UpdateMulticloudDataTransferConfig_async", - "title": "DataTransferService updateMulticloudDataTransferConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates a `MulticloudDataTransferConfig` resource in a specified project and location.", - "canonical": true, - "file": "data_transfer_service.update_multicloud_data_transfer_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateMulticloudDataTransferConfig", - "fullName": "google.cloud.networkconnectivity.v1beta.DataTransferService.UpdateMulticloudDataTransferConfig", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "multicloud_data_transfer_config", - "type": ".google.cloud.networkconnectivity.v1beta.MulticloudDataTransferConfig" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataTransferServiceClient", - "fullName": "google.cloud.networkconnectivity.v1beta.DataTransferServiceClient" - }, - "method": { - "shortName": "UpdateMulticloudDataTransferConfig", - "fullName": "google.cloud.networkconnectivity.v1beta.DataTransferService.UpdateMulticloudDataTransferConfig", - "service": { - "shortName": "DataTransferService", - "fullName": "google.cloud.networkconnectivity.v1beta.DataTransferService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1beta_generated_DataTransferService_DeleteMulticloudDataTransferConfig_async", - "title": "DataTransferService deleteMulticloudDataTransferConfig Sample", - "origin": "API_DEFINITION", - "description": " Deletes a `MulticloudDataTransferConfig` resource.", - "canonical": true, - "file": "data_transfer_service.delete_multicloud_data_transfer_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteMulticloudDataTransferConfig", - "fullName": "google.cloud.networkconnectivity.v1beta.DataTransferService.DeleteMulticloudDataTransferConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataTransferServiceClient", - "fullName": "google.cloud.networkconnectivity.v1beta.DataTransferServiceClient" - }, - "method": { - "shortName": "DeleteMulticloudDataTransferConfig", - "fullName": "google.cloud.networkconnectivity.v1beta.DataTransferService.DeleteMulticloudDataTransferConfig", - "service": { - "shortName": "DataTransferService", - "fullName": "google.cloud.networkconnectivity.v1beta.DataTransferService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1beta_generated_DataTransferService_ListDestinations_async", - "title": "DataTransferService listDestinations Sample", - "origin": "API_DEFINITION", - "description": " Lists the `Destination` resources in a specified project and location.", - "canonical": true, - "file": "data_transfer_service.list_destinations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDestinations", - "fullName": "google.cloud.networkconnectivity.v1beta.DataTransferService.ListDestinations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1beta.ListDestinationsResponse", - "client": { - "shortName": "DataTransferServiceClient", - "fullName": "google.cloud.networkconnectivity.v1beta.DataTransferServiceClient" - }, - "method": { - "shortName": "ListDestinations", - "fullName": "google.cloud.networkconnectivity.v1beta.DataTransferService.ListDestinations", - "service": { - "shortName": "DataTransferService", - "fullName": "google.cloud.networkconnectivity.v1beta.DataTransferService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1beta_generated_DataTransferService_GetDestination_async", - "title": "DataTransferService getDestination Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a `Destination` resource.", - "canonical": true, - "file": "data_transfer_service.get_destination.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDestination", - "fullName": "google.cloud.networkconnectivity.v1beta.DataTransferService.GetDestination", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1beta.Destination", - "client": { - "shortName": "DataTransferServiceClient", - "fullName": "google.cloud.networkconnectivity.v1beta.DataTransferServiceClient" - }, - "method": { - "shortName": "GetDestination", - "fullName": "google.cloud.networkconnectivity.v1beta.DataTransferService.GetDestination", - "service": { - "shortName": "DataTransferService", - "fullName": "google.cloud.networkconnectivity.v1beta.DataTransferService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1beta_generated_DataTransferService_CreateDestination_async", - "title": "DataTransferService createDestination Sample", - "origin": "API_DEFINITION", - "description": " Creates a `Destination` resource in a specified project and location.", - "canonical": true, - "file": "data_transfer_service.create_destination.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDestination", - "fullName": "google.cloud.networkconnectivity.v1beta.DataTransferService.CreateDestination", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "destination_id", - "type": "TYPE_STRING" - }, - { - "name": "destination", - "type": ".google.cloud.networkconnectivity.v1beta.Destination" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataTransferServiceClient", - "fullName": "google.cloud.networkconnectivity.v1beta.DataTransferServiceClient" - }, - "method": { - "shortName": "CreateDestination", - "fullName": "google.cloud.networkconnectivity.v1beta.DataTransferService.CreateDestination", - "service": { - "shortName": "DataTransferService", - "fullName": "google.cloud.networkconnectivity.v1beta.DataTransferService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1beta_generated_DataTransferService_UpdateDestination_async", - "title": "DataTransferService updateDestination Sample", - "origin": "API_DEFINITION", - "description": " Updates a `Destination` resource in a specified project and location.", - "canonical": true, - "file": "data_transfer_service.update_destination.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDestination", - "fullName": "google.cloud.networkconnectivity.v1beta.DataTransferService.UpdateDestination", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "destination", - "type": ".google.cloud.networkconnectivity.v1beta.Destination" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataTransferServiceClient", - "fullName": "google.cloud.networkconnectivity.v1beta.DataTransferServiceClient" - }, - "method": { - "shortName": "UpdateDestination", - "fullName": "google.cloud.networkconnectivity.v1beta.DataTransferService.UpdateDestination", - "service": { - "shortName": "DataTransferService", - "fullName": "google.cloud.networkconnectivity.v1beta.DataTransferService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1beta_generated_DataTransferService_DeleteDestination_async", - "title": "DataTransferService deleteDestination Sample", - "origin": "API_DEFINITION", - "description": " Deletes a `Destination` resource.", - "canonical": true, - "file": "data_transfer_service.delete_destination.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDestination", - "fullName": "google.cloud.networkconnectivity.v1beta.DataTransferService.DeleteDestination", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataTransferServiceClient", - "fullName": "google.cloud.networkconnectivity.v1beta.DataTransferServiceClient" - }, - "method": { - "shortName": "DeleteDestination", - "fullName": "google.cloud.networkconnectivity.v1beta.DataTransferService.DeleteDestination", - "service": { - "shortName": "DataTransferService", - "fullName": "google.cloud.networkconnectivity.v1beta.DataTransferService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1beta_generated_DataTransferService_GetMulticloudDataTransferSupportedService_async", - "title": "DataTransferService getMulticloudDataTransferSupportedService Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a service that is supported for Data Transfer Essentials.", - "canonical": true, - "file": "data_transfer_service.get_multicloud_data_transfer_supported_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMulticloudDataTransferSupportedService", - "fullName": "google.cloud.networkconnectivity.v1beta.DataTransferService.GetMulticloudDataTransferSupportedService", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1beta.MulticloudDataTransferSupportedService", - "client": { - "shortName": "DataTransferServiceClient", - "fullName": "google.cloud.networkconnectivity.v1beta.DataTransferServiceClient" - }, - "method": { - "shortName": "GetMulticloudDataTransferSupportedService", - "fullName": "google.cloud.networkconnectivity.v1beta.DataTransferService.GetMulticloudDataTransferSupportedService", - "service": { - "shortName": "DataTransferService", - "fullName": "google.cloud.networkconnectivity.v1beta.DataTransferService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1beta_generated_DataTransferService_ListMulticloudDataTransferSupportedServices_async", - "title": "DataTransferService listMulticloudDataTransferSupportedServices Sample", - "origin": "API_DEFINITION", - "description": " Lists the services in the project for a region that are supported for Data Transfer Essentials.", - "canonical": true, - "file": "data_transfer_service.list_multicloud_data_transfer_supported_services.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMulticloudDataTransferSupportedServices", - "fullName": "google.cloud.networkconnectivity.v1beta.DataTransferService.ListMulticloudDataTransferSupportedServices", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1beta.ListMulticloudDataTransferSupportedServicesResponse", - "client": { - "shortName": "DataTransferServiceClient", - "fullName": "google.cloud.networkconnectivity.v1beta.DataTransferServiceClient" - }, - "method": { - "shortName": "ListMulticloudDataTransferSupportedServices", - "fullName": "google.cloud.networkconnectivity.v1beta.DataTransferService.ListMulticloudDataTransferSupportedServices", - "service": { - "shortName": "DataTransferService", - "fullName": "google.cloud.networkconnectivity.v1beta.DataTransferService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1beta_generated_HubService_ListHubs_async", - "title": "DataTransferService listHubs Sample", - "origin": "API_DEFINITION", - "description": " Lists the Network Connectivity Center hubs associated with a given project.", - "canonical": true, - "file": "hub_service.list_hubs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListHubs", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService.ListHubs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1beta.ListHubsResponse", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1beta.HubServiceClient" - }, - "method": { - "shortName": "ListHubs", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService.ListHubs", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1beta_generated_HubService_GetHub_async", - "title": "DataTransferService getHub Sample", - "origin": "API_DEFINITION", - "description": " Gets details about a Network Connectivity Center hub.", - "canonical": true, - "file": "hub_service.get_hub.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetHub", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService.GetHub", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1beta.Hub", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1beta.HubServiceClient" - }, - "method": { - "shortName": "GetHub", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService.GetHub", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1beta_generated_HubService_CreateHub_async", - "title": "DataTransferService createHub Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Network Connectivity Center hub in the specified project.", - "canonical": true, - "file": "hub_service.create_hub.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateHub", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService.CreateHub", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "hub_id", - "type": "TYPE_STRING" - }, - { - "name": "hub", - "type": ".google.cloud.networkconnectivity.v1beta.Hub" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1beta.HubServiceClient" - }, - "method": { - "shortName": "CreateHub", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService.CreateHub", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1beta_generated_HubService_UpdateHub_async", - "title": "DataTransferService updateHub Sample", - "origin": "API_DEFINITION", - "description": " Updates the description and/or labels of a Network Connectivity Center hub.", - "canonical": true, - "file": "hub_service.update_hub.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateHub", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService.UpdateHub", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "hub", - "type": ".google.cloud.networkconnectivity.v1beta.Hub" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1beta.HubServiceClient" - }, - "method": { - "shortName": "UpdateHub", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService.UpdateHub", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1beta_generated_HubService_DeleteHub_async", - "title": "DataTransferService deleteHub Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Network Connectivity Center hub.", - "canonical": true, - "file": "hub_service.delete_hub.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteHub", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService.DeleteHub", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1beta.HubServiceClient" - }, - "method": { - "shortName": "DeleteHub", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService.DeleteHub", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1beta_generated_HubService_ListHubSpokes_async", - "title": "DataTransferService listHubSpokes Sample", - "origin": "API_DEFINITION", - "description": " Lists the Network Connectivity Center spokes associated with a specified hub and location. The list includes both spokes that are attached to the hub and spokes that have been proposed but not yet accepted.", - "canonical": true, - "file": "hub_service.list_hub_spokes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 88, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListHubSpokes", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService.ListHubSpokes", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "spoke_locations", - "type": "TYPE_STRING[]" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.networkconnectivity.v1beta.ListHubSpokesRequest.SpokeView" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1beta.ListHubSpokesResponse", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1beta.HubServiceClient" - }, - "method": { - "shortName": "ListHubSpokes", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService.ListHubSpokes", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1beta_generated_HubService_QueryHubStatus_async", - "title": "DataTransferService queryHubStatus Sample", - "origin": "API_DEFINITION", - "description": " Query the Private Service Connect propagation status of a Network Connectivity Center hub.", - "canonical": true, - "file": "hub_service.query_hub_status.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 99, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryHubStatus", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService.QueryHubStatus", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "group_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1beta.QueryHubStatusResponse", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1beta.HubServiceClient" - }, - "method": { - "shortName": "QueryHubStatus", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService.QueryHubStatus", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1beta_generated_HubService_ListSpokes_async", - "title": "DataTransferService listSpokes Sample", - "origin": "API_DEFINITION", - "description": " Lists the Network Connectivity Center spokes in a specified project and location.", - "canonical": true, - "file": "hub_service.list_spokes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSpokes", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService.ListSpokes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1beta.ListSpokesResponse", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1beta.HubServiceClient" - }, - "method": { - "shortName": "ListSpokes", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService.ListSpokes", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1beta_generated_HubService_GetSpoke_async", - "title": "DataTransferService getSpoke Sample", - "origin": "API_DEFINITION", - "description": " Gets details about a Network Connectivity Center spoke.", - "canonical": true, - "file": "hub_service.get_spoke.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSpoke", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService.GetSpoke", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1beta.Spoke", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1beta.HubServiceClient" - }, - "method": { - "shortName": "GetSpoke", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService.GetSpoke", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1beta_generated_HubService_CreateSpoke_async", - "title": "DataTransferService createSpoke Sample", - "origin": "API_DEFINITION", - "description": " Creates a Network Connectivity Center spoke.", - "canonical": true, - "file": "hub_service.create_spoke.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSpoke", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService.CreateSpoke", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "spoke_id", - "type": "TYPE_STRING" - }, - { - "name": "spoke", - "type": ".google.cloud.networkconnectivity.v1beta.Spoke" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1beta.HubServiceClient" - }, - "method": { - "shortName": "CreateSpoke", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService.CreateSpoke", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1beta_generated_HubService_UpdateSpoke_async", - "title": "DataTransferService updateSpoke Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a Network Connectivity Center spoke.", - "canonical": true, - "file": "hub_service.update_spoke.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSpoke", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService.UpdateSpoke", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "spoke", - "type": ".google.cloud.networkconnectivity.v1beta.Spoke" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1beta.HubServiceClient" - }, - "method": { - "shortName": "UpdateSpoke", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService.UpdateSpoke", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1beta_generated_HubService_RejectHubSpoke_async", - "title": "DataTransferService rejectHubSpoke Sample", - "origin": "API_DEFINITION", - "description": " Rejects a Network Connectivity Center spoke from being attached to a hub. If the spoke was previously in the `ACTIVE` state, it transitions to the `INACTIVE` state and is no longer able to connect to other spokes that are attached to the hub.", - "canonical": true, - "file": "hub_service.reject_hub_spoke.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RejectHubSpoke", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService.RejectHubSpoke", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "spoke_uri", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "details", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1beta.HubServiceClient" - }, - "method": { - "shortName": "RejectHubSpoke", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService.RejectHubSpoke", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1beta_generated_HubService_AcceptHubSpoke_async", - "title": "DataTransferService acceptHubSpoke Sample", - "origin": "API_DEFINITION", - "description": " Accepts a proposal to attach a Network Connectivity Center spoke to a hub.", - "canonical": true, - "file": "hub_service.accept_hub_spoke.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AcceptHubSpoke", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService.AcceptHubSpoke", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "spoke_uri", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1beta.HubServiceClient" - }, - "method": { - "shortName": "AcceptHubSpoke", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService.AcceptHubSpoke", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1beta_generated_HubService_AcceptSpokeUpdate_async", - "title": "DataTransferService acceptSpokeUpdate Sample", - "origin": "API_DEFINITION", - "description": " Accepts a proposal to update a Network Connectivity Center spoke in a hub.", - "canonical": true, - "file": "hub_service.accept_spoke_update.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AcceptSpokeUpdate", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService.AcceptSpokeUpdate", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "spoke_uri", - "type": "TYPE_STRING" - }, - { - "name": "spoke_etag", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1beta.HubServiceClient" - }, - "method": { - "shortName": "AcceptSpokeUpdate", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService.AcceptSpokeUpdate", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1beta_generated_HubService_RejectSpokeUpdate_async", - "title": "DataTransferService rejectSpokeUpdate Sample", - "origin": "API_DEFINITION", - "description": " Rejects a proposal to update a Network Connectivity Center spoke in a hub.", - "canonical": true, - "file": "hub_service.reject_spoke_update.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RejectSpokeUpdate", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService.RejectSpokeUpdate", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "spoke_uri", - "type": "TYPE_STRING" - }, - { - "name": "spoke_etag", - "type": "TYPE_STRING" - }, - { - "name": "details", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1beta.HubServiceClient" - }, - "method": { - "shortName": "RejectSpokeUpdate", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService.RejectSpokeUpdate", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1beta_generated_HubService_DeleteSpoke_async", - "title": "DataTransferService deleteSpoke Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Network Connectivity Center spoke.", - "canonical": true, - "file": "hub_service.delete_spoke.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSpoke", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService.DeleteSpoke", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1beta.HubServiceClient" - }, - "method": { - "shortName": "DeleteSpoke", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService.DeleteSpoke", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1beta_generated_HubService_GetRouteTable_async", - "title": "DataTransferService getRouteTable Sample", - "origin": "API_DEFINITION", - "description": " Gets details about a Network Connectivity Center route table.", - "canonical": true, - "file": "hub_service.get_route_table.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRouteTable", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService.GetRouteTable", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1beta.RouteTable", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1beta.HubServiceClient" - }, - "method": { - "shortName": "GetRouteTable", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService.GetRouteTable", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1beta_generated_HubService_GetRoute_async", - "title": "DataTransferService getRoute Sample", - "origin": "API_DEFINITION", - "description": " Gets details about the specified route.", - "canonical": true, - "file": "hub_service.get_route.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRoute", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService.GetRoute", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1beta.Route", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1beta.HubServiceClient" - }, - "method": { - "shortName": "GetRoute", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService.GetRoute", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1beta_generated_HubService_ListRoutes_async", - "title": "DataTransferService listRoutes Sample", - "origin": "API_DEFINITION", - "description": " Lists routes in a given route table.", - "canonical": true, - "file": "hub_service.list_routes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRoutes", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService.ListRoutes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1beta.ListRoutesResponse", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1beta.HubServiceClient" - }, - "method": { - "shortName": "ListRoutes", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService.ListRoutes", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1beta_generated_HubService_ListRouteTables_async", - "title": "DataTransferService listRouteTables Sample", - "origin": "API_DEFINITION", - "description": " Lists route tables in a given hub.", - "canonical": true, - "file": "hub_service.list_route_tables.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRouteTables", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService.ListRouteTables", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1beta.ListRouteTablesResponse", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1beta.HubServiceClient" - }, - "method": { - "shortName": "ListRouteTables", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService.ListRouteTables", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1beta_generated_HubService_GetGroup_async", - "title": "DataTransferService getGroup Sample", - "origin": "API_DEFINITION", - "description": " Gets details about a Network Connectivity Center group.", - "canonical": true, - "file": "hub_service.get_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetGroup", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService.GetGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1beta.Group", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1beta.HubServiceClient" - }, - "method": { - "shortName": "GetGroup", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService.GetGroup", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1beta_generated_HubService_ListGroups_async", - "title": "DataTransferService listGroups Sample", - "origin": "API_DEFINITION", - "description": " Lists groups in a given hub.", - "canonical": true, - "file": "hub_service.list_groups.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListGroups", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService.ListGroups", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1beta.ListGroupsResponse", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1beta.HubServiceClient" - }, - "method": { - "shortName": "ListGroups", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService.ListGroups", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1beta_generated_HubService_UpdateGroup_async", - "title": "DataTransferService updateGroup Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a Network Connectivity Center group.", - "canonical": true, - "file": "hub_service.update_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateGroup", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService.UpdateGroup", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "group", - "type": ".google.cloud.networkconnectivity.v1beta.Group" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1beta.HubServiceClient" - }, - "method": { - "shortName": "UpdateGroup", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService.UpdateGroup", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1beta_generated_HubService_CreateGatewayAdvertisedRoute_async", - "title": "DataTransferService createGatewayAdvertisedRoute Sample", - "origin": "API_DEFINITION", - "description": " Create a GatewayAdvertisedRoute", - "canonical": true, - "file": "hub_service.create_gateway_advertised_route.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateGatewayAdvertisedRoute", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService.CreateGatewayAdvertisedRoute", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "gateway_advertised_route_id", - "type": "TYPE_STRING" - }, - { - "name": "gateway_advertised_route", - "type": ".google.cloud.networkconnectivity.v1beta.GatewayAdvertisedRoute" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1beta.HubServiceClient" - }, - "method": { - "shortName": "CreateGatewayAdvertisedRoute", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService.CreateGatewayAdvertisedRoute", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1beta_generated_HubService_GetGatewayAdvertisedRoute_async", - "title": "DataTransferService getGatewayAdvertisedRoute Sample", - "origin": "API_DEFINITION", - "description": " Get a GatewayAdvertisedRoute", - "canonical": true, - "file": "hub_service.get_gateway_advertised_route.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetGatewayAdvertisedRoute", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService.GetGatewayAdvertisedRoute", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1beta.GatewayAdvertisedRoute", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1beta.HubServiceClient" - }, - "method": { - "shortName": "GetGatewayAdvertisedRoute", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService.GetGatewayAdvertisedRoute", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1beta_generated_HubService_ListGatewayAdvertisedRoutes_async", - "title": "DataTransferService listGatewayAdvertisedRoutes Sample", - "origin": "API_DEFINITION", - "description": " List GatewayAdvertisedRoutes", - "canonical": true, - "file": "hub_service.list_gateway_advertised_routes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListGatewayAdvertisedRoutes", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService.ListGatewayAdvertisedRoutes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1beta.ListGatewayAdvertisedRoutesResponse", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1beta.HubServiceClient" - }, - "method": { - "shortName": "ListGatewayAdvertisedRoutes", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService.ListGatewayAdvertisedRoutes", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1beta_generated_HubService_UpdateGatewayAdvertisedRoute_async", - "title": "DataTransferService updateGatewayAdvertisedRoute Sample", - "origin": "API_DEFINITION", - "description": " Update a GatewayAdvertisedRoute", - "canonical": true, - "file": "hub_service.update_gateway_advertised_route.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateGatewayAdvertisedRoute", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService.UpdateGatewayAdvertisedRoute", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "gateway_advertised_route", - "type": ".google.cloud.networkconnectivity.v1beta.GatewayAdvertisedRoute" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1beta.HubServiceClient" - }, - "method": { - "shortName": "UpdateGatewayAdvertisedRoute", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService.UpdateGatewayAdvertisedRoute", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1beta_generated_HubService_DeleteGatewayAdvertisedRoute_async", - "title": "DataTransferService deleteGatewayAdvertisedRoute Sample", - "origin": "API_DEFINITION", - "description": " Delete a GatewayAdvertisedRoute", - "canonical": true, - "file": "hub_service.delete_gateway_advertised_route.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteGatewayAdvertisedRoute", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService.DeleteGatewayAdvertisedRoute", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "HubServiceClient", - "fullName": "google.cloud.networkconnectivity.v1beta.HubServiceClient" - }, - "method": { - "shortName": "DeleteGatewayAdvertisedRoute", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService.DeleteGatewayAdvertisedRoute", - "service": { - "shortName": "HubService", - "fullName": "google.cloud.networkconnectivity.v1beta.HubService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1beta_generated_PolicyBasedRoutingService_ListPolicyBasedRoutes_async", - "title": "DataTransferService listPolicyBasedRoutes Sample", - "origin": "API_DEFINITION", - "description": " Lists policy-based routes in a given project and location.", - "canonical": true, - "file": "policy_based_routing_service.list_policy_based_routes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPolicyBasedRoutes", - "fullName": "google.cloud.networkconnectivity.v1beta.PolicyBasedRoutingService.ListPolicyBasedRoutes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1beta.ListPolicyBasedRoutesResponse", - "client": { - "shortName": "PolicyBasedRoutingServiceClient", - "fullName": "google.cloud.networkconnectivity.v1beta.PolicyBasedRoutingServiceClient" - }, - "method": { - "shortName": "ListPolicyBasedRoutes", - "fullName": "google.cloud.networkconnectivity.v1beta.PolicyBasedRoutingService.ListPolicyBasedRoutes", - "service": { - "shortName": "PolicyBasedRoutingService", - "fullName": "google.cloud.networkconnectivity.v1beta.PolicyBasedRoutingService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1beta_generated_PolicyBasedRoutingService_GetPolicyBasedRoute_async", - "title": "DataTransferService getPolicyBasedRoute Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single policy-based route.", - "canonical": true, - "file": "policy_based_routing_service.get_policy_based_route.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPolicyBasedRoute", - "fullName": "google.cloud.networkconnectivity.v1beta.PolicyBasedRoutingService.GetPolicyBasedRoute", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1beta.PolicyBasedRoute", - "client": { - "shortName": "PolicyBasedRoutingServiceClient", - "fullName": "google.cloud.networkconnectivity.v1beta.PolicyBasedRoutingServiceClient" - }, - "method": { - "shortName": "GetPolicyBasedRoute", - "fullName": "google.cloud.networkconnectivity.v1beta.PolicyBasedRoutingService.GetPolicyBasedRoute", - "service": { - "shortName": "PolicyBasedRoutingService", - "fullName": "google.cloud.networkconnectivity.v1beta.PolicyBasedRoutingService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1beta_generated_PolicyBasedRoutingService_CreatePolicyBasedRoute_async", - "title": "DataTransferService createPolicyBasedRoute Sample", - "origin": "API_DEFINITION", - "description": " Creates a new policy-based route in a given project and location.", - "canonical": true, - "file": "policy_based_routing_service.create_policy_based_route.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreatePolicyBasedRoute", - "fullName": "google.cloud.networkconnectivity.v1beta.PolicyBasedRoutingService.CreatePolicyBasedRoute", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "policy_based_route_id", - "type": "TYPE_STRING" - }, - { - "name": "policy_based_route", - "type": ".google.cloud.networkconnectivity.v1beta.PolicyBasedRoute" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "PolicyBasedRoutingServiceClient", - "fullName": "google.cloud.networkconnectivity.v1beta.PolicyBasedRoutingServiceClient" - }, - "method": { - "shortName": "CreatePolicyBasedRoute", - "fullName": "google.cloud.networkconnectivity.v1beta.PolicyBasedRoutingService.CreatePolicyBasedRoute", - "service": { - "shortName": "PolicyBasedRoutingService", - "fullName": "google.cloud.networkconnectivity.v1beta.PolicyBasedRoutingService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1beta_generated_PolicyBasedRoutingService_DeletePolicyBasedRoute_async", - "title": "DataTransferService deletePolicyBasedRoute Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single policy-based route.", - "canonical": true, - "file": "policy_based_routing_service.delete_policy_based_route.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePolicyBasedRoute", - "fullName": "google.cloud.networkconnectivity.v1beta.PolicyBasedRoutingService.DeletePolicyBasedRoute", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "PolicyBasedRoutingServiceClient", - "fullName": "google.cloud.networkconnectivity.v1beta.PolicyBasedRoutingServiceClient" - }, - "method": { - "shortName": "DeletePolicyBasedRoute", - "fullName": "google.cloud.networkconnectivity.v1beta.PolicyBasedRoutingService.DeletePolicyBasedRoute", - "service": { - "shortName": "PolicyBasedRoutingService", - "fullName": "google.cloud.networkconnectivity.v1beta.PolicyBasedRoutingService" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1beta_generated_TransportManager_ListRemoteTransportProfiles_async", - "title": "DataTransferService listRemoteTransportProfiles Sample", - "origin": "API_DEFINITION", - "description": " Lists RemoteTransportProfiles in a given project and location.", - "canonical": true, - "file": "transport_manager.list_remote_transport_profiles.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRemoteTransportProfiles", - "fullName": "google.cloud.networkconnectivity.v1beta.TransportManager.ListRemoteTransportProfiles", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1beta.ListRemoteTransportProfilesResponse", - "client": { - "shortName": "TransportManagerClient", - "fullName": "google.cloud.networkconnectivity.v1beta.TransportManagerClient" - }, - "method": { - "shortName": "ListRemoteTransportProfiles", - "fullName": "google.cloud.networkconnectivity.v1beta.TransportManager.ListRemoteTransportProfiles", - "service": { - "shortName": "TransportManager", - "fullName": "google.cloud.networkconnectivity.v1beta.TransportManager" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1beta_generated_TransportManager_GetRemoteTransportProfile_async", - "title": "DataTransferService getRemoteTransportProfile Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single RemoteTransportProfile.", - "canonical": true, - "file": "transport_manager.get_remote_transport_profile.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRemoteTransportProfile", - "fullName": "google.cloud.networkconnectivity.v1beta.TransportManager.GetRemoteTransportProfile", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1beta.RemoteTransportProfile", - "client": { - "shortName": "TransportManagerClient", - "fullName": "google.cloud.networkconnectivity.v1beta.TransportManagerClient" - }, - "method": { - "shortName": "GetRemoteTransportProfile", - "fullName": "google.cloud.networkconnectivity.v1beta.TransportManager.GetRemoteTransportProfile", - "service": { - "shortName": "TransportManager", - "fullName": "google.cloud.networkconnectivity.v1beta.TransportManager" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1beta_generated_TransportManager_ListTransports_async", - "title": "DataTransferService listTransports Sample", - "origin": "API_DEFINITION", - "description": " Lists Transports in a given project and location.", - "canonical": true, - "file": "transport_manager.list_transports.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTransports", - "fullName": "google.cloud.networkconnectivity.v1beta.TransportManager.ListTransports", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1beta.ListTransportsResponse", - "client": { - "shortName": "TransportManagerClient", - "fullName": "google.cloud.networkconnectivity.v1beta.TransportManagerClient" - }, - "method": { - "shortName": "ListTransports", - "fullName": "google.cloud.networkconnectivity.v1beta.TransportManager.ListTransports", - "service": { - "shortName": "TransportManager", - "fullName": "google.cloud.networkconnectivity.v1beta.TransportManager" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1beta_generated_TransportManager_GetTransport_async", - "title": "DataTransferService getTransport Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Transport.", - "canonical": true, - "file": "transport_manager.get_transport.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTransport", - "fullName": "google.cloud.networkconnectivity.v1beta.TransportManager.GetTransport", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1beta.Transport", - "client": { - "shortName": "TransportManagerClient", - "fullName": "google.cloud.networkconnectivity.v1beta.TransportManagerClient" - }, - "method": { - "shortName": "GetTransport", - "fullName": "google.cloud.networkconnectivity.v1beta.TransportManager.GetTransport", - "service": { - "shortName": "TransportManager", - "fullName": "google.cloud.networkconnectivity.v1beta.TransportManager" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1beta_generated_TransportManager_GetStatus_async", - "title": "DataTransferService getStatus Sample", - "origin": "API_DEFINITION", - "description": " Gets the operational status of a single Transport.", - "canonical": true, - "file": "transport_manager.get_status.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetStatus", - "fullName": "google.cloud.networkconnectivity.v1beta.TransportManager.GetStatus", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkconnectivity.v1beta.GetStatusResponse", - "client": { - "shortName": "TransportManagerClient", - "fullName": "google.cloud.networkconnectivity.v1beta.TransportManagerClient" - }, - "method": { - "shortName": "GetStatus", - "fullName": "google.cloud.networkconnectivity.v1beta.TransportManager.GetStatus", - "service": { - "shortName": "TransportManager", - "fullName": "google.cloud.networkconnectivity.v1beta.TransportManager" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1beta_generated_TransportManager_CreateTransport_async", - "title": "DataTransferService createTransport Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Transport in a given project and location.", - "canonical": true, - "file": "transport_manager.create_transport.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTransport", - "fullName": "google.cloud.networkconnectivity.v1beta.TransportManager.CreateTransport", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "transport_id", - "type": "TYPE_STRING" - }, - { - "name": "transport", - "type": ".google.cloud.networkconnectivity.v1beta.Transport" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TransportManagerClient", - "fullName": "google.cloud.networkconnectivity.v1beta.TransportManagerClient" - }, - "method": { - "shortName": "CreateTransport", - "fullName": "google.cloud.networkconnectivity.v1beta.TransportManager.CreateTransport", - "service": { - "shortName": "TransportManager", - "fullName": "google.cloud.networkconnectivity.v1beta.TransportManager" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1beta_generated_TransportManager_UpdateTransport_async", - "title": "DataTransferService updateTransport Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Transport.", - "canonical": true, - "file": "transport_manager.update_transport.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTransport", - "fullName": "google.cloud.networkconnectivity.v1beta.TransportManager.UpdateTransport", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "transport", - "type": ".google.cloud.networkconnectivity.v1beta.Transport" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TransportManagerClient", - "fullName": "google.cloud.networkconnectivity.v1beta.TransportManagerClient" - }, - "method": { - "shortName": "UpdateTransport", - "fullName": "google.cloud.networkconnectivity.v1beta.TransportManager.UpdateTransport", - "service": { - "shortName": "TransportManager", - "fullName": "google.cloud.networkconnectivity.v1beta.TransportManager" - } - } - } - }, - { - "regionTag": "networkconnectivity_v1beta_generated_TransportManager_DeleteTransport_async", - "title": "DataTransferService deleteTransport Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Transport.", - "canonical": true, - "file": "transport_manager.delete_transport.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTransport", - "fullName": "google.cloud.networkconnectivity.v1beta.TransportManager.DeleteTransport", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TransportManagerClient", - "fullName": "google.cloud.networkconnectivity.v1beta.TransportManagerClient" - }, - "method": { - "shortName": "DeleteTransport", - "fullName": "google.cloud.networkconnectivity.v1beta.TransportManager.DeleteTransport", - "service": { - "shortName": "TransportManager", - "fullName": "google.cloud.networkconnectivity.v1beta.TransportManager" - } - } - } - } - ] -} diff --git a/packages/google-cloud-networkmanagement/samples/generated/v1/snippet_metadata_google.cloud.networkmanagement.v1.json b/packages/google-cloud-networkmanagement/samples/generated/v1/snippet_metadata_google.cloud.networkmanagement.v1.json deleted file mode 100644 index 6cd41afcbc57..000000000000 --- a/packages/google-cloud-networkmanagement/samples/generated/v1/snippet_metadata_google.cloud.networkmanagement.v1.json +++ /dev/null @@ -1,847 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-networkmanagement", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.networkmanagement.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "networkmanagement_v1_generated_OrganizationVpcFlowLogsService_ListVpcFlowLogsConfigs_async", - "title": "OrganizationVpcFlowLogsService listVpcFlowLogsConfigs Sample", - "origin": "API_DEFINITION", - "description": " Lists all `VpcFlowLogsConfigs` in a given organization.", - "canonical": true, - "file": "organization_vpc_flow_logs_service.list_vpc_flow_logs_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListVpcFlowLogsConfigs", - "fullName": "google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsService.ListVpcFlowLogsConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse", - "client": { - "shortName": "OrganizationVpcFlowLogsServiceClient", - "fullName": "google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient" - }, - "method": { - "shortName": "ListVpcFlowLogsConfigs", - "fullName": "google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsService.ListVpcFlowLogsConfigs", - "service": { - "shortName": "OrganizationVpcFlowLogsService", - "fullName": "google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsService" - } - } - } - }, - { - "regionTag": "networkmanagement_v1_generated_OrganizationVpcFlowLogsService_GetVpcFlowLogsConfig_async", - "title": "OrganizationVpcFlowLogsService getVpcFlowLogsConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a specific `VpcFlowLogsConfig`.", - "canonical": true, - "file": "organization_vpc_flow_logs_service.get_vpc_flow_logs_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetVpcFlowLogsConfig", - "fullName": "google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsService.GetVpcFlowLogsConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkmanagement.v1.VpcFlowLogsConfig", - "client": { - "shortName": "OrganizationVpcFlowLogsServiceClient", - "fullName": "google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient" - }, - "method": { - "shortName": "GetVpcFlowLogsConfig", - "fullName": "google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsService.GetVpcFlowLogsConfig", - "service": { - "shortName": "OrganizationVpcFlowLogsService", - "fullName": "google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsService" - } - } - } - }, - { - "regionTag": "networkmanagement_v1_generated_OrganizationVpcFlowLogsService_CreateVpcFlowLogsConfig_async", - "title": "OrganizationVpcFlowLogsService createVpcFlowLogsConfig Sample", - "origin": "API_DEFINITION", - "description": " Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same settings already exists (even if the ID is different), the creation fails. Notes: 1. Creating a configuration with `state=DISABLED` will fail 2. The following fields are not considered as settings for the purpose of the check mentioned above, therefore - creating another configuration with the same fields but different values for the following fields will fail as well: * name * create_time * update_time * labels * description", - "canonical": true, - "file": "organization_vpc_flow_logs_service.create_vpc_flow_logs_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateVpcFlowLogsConfig", - "fullName": "google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsService.CreateVpcFlowLogsConfig", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "vpc_flow_logs_config_id", - "type": "TYPE_STRING" - }, - { - "name": "vpc_flow_logs_config", - "type": ".google.cloud.networkmanagement.v1.VpcFlowLogsConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OrganizationVpcFlowLogsServiceClient", - "fullName": "google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient" - }, - "method": { - "shortName": "CreateVpcFlowLogsConfig", - "fullName": "google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsService.CreateVpcFlowLogsConfig", - "service": { - "shortName": "OrganizationVpcFlowLogsService", - "fullName": "google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsService" - } - } - } - }, - { - "regionTag": "networkmanagement_v1_generated_OrganizationVpcFlowLogsService_UpdateVpcFlowLogsConfig_async", - "title": "OrganizationVpcFlowLogsService updateVpcFlowLogsConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates an existing `VpcFlowLogsConfig`. If a configuration with the exact same settings already exists (even if the ID is different), the creation fails. Notes: 1. Updating a configuration with `state=DISABLED` will fail 2. The following fields are not considered as settings for the purpose of the check mentioned above, therefore - updating another configuration with the same fields but different values for the following fields will fail as well: * name * create_time * update_time * labels * description", - "canonical": true, - "file": "organization_vpc_flow_logs_service.update_vpc_flow_logs_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateVpcFlowLogsConfig", - "fullName": "google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsService.UpdateVpcFlowLogsConfig", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "vpc_flow_logs_config", - "type": ".google.cloud.networkmanagement.v1.VpcFlowLogsConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OrganizationVpcFlowLogsServiceClient", - "fullName": "google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient" - }, - "method": { - "shortName": "UpdateVpcFlowLogsConfig", - "fullName": "google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsService.UpdateVpcFlowLogsConfig", - "service": { - "shortName": "OrganizationVpcFlowLogsService", - "fullName": "google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsService" - } - } - } - }, - { - "regionTag": "networkmanagement_v1_generated_OrganizationVpcFlowLogsService_DeleteVpcFlowLogsConfig_async", - "title": "OrganizationVpcFlowLogsService deleteVpcFlowLogsConfig Sample", - "origin": "API_DEFINITION", - "description": " Deletes a specific `VpcFlowLogsConfig`.", - "canonical": true, - "file": "organization_vpc_flow_logs_service.delete_vpc_flow_logs_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteVpcFlowLogsConfig", - "fullName": "google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsService.DeleteVpcFlowLogsConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OrganizationVpcFlowLogsServiceClient", - "fullName": "google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsServiceClient" - }, - "method": { - "shortName": "DeleteVpcFlowLogsConfig", - "fullName": "google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsService.DeleteVpcFlowLogsConfig", - "service": { - "shortName": "OrganizationVpcFlowLogsService", - "fullName": "google.cloud.networkmanagement.v1.OrganizationVpcFlowLogsService" - } - } - } - }, - { - "regionTag": "networkmanagement_v1_generated_ReachabilityService_ListConnectivityTests_async", - "title": "OrganizationVpcFlowLogsService listConnectivityTests Sample", - "origin": "API_DEFINITION", - "description": " Lists all Connectivity Tests owned by a project.", - "canonical": true, - "file": "reachability_service.list_connectivity_tests.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListConnectivityTests", - "fullName": "google.cloud.networkmanagement.v1.ReachabilityService.ListConnectivityTests", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkmanagement.v1.ListConnectivityTestsResponse", - "client": { - "shortName": "ReachabilityServiceClient", - "fullName": "google.cloud.networkmanagement.v1.ReachabilityServiceClient" - }, - "method": { - "shortName": "ListConnectivityTests", - "fullName": "google.cloud.networkmanagement.v1.ReachabilityService.ListConnectivityTests", - "service": { - "shortName": "ReachabilityService", - "fullName": "google.cloud.networkmanagement.v1.ReachabilityService" - } - } - } - }, - { - "regionTag": "networkmanagement_v1_generated_ReachabilityService_GetConnectivityTest_async", - "title": "OrganizationVpcFlowLogsService getConnectivityTest Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a specific Connectivity Test.", - "canonical": true, - "file": "reachability_service.get_connectivity_test.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetConnectivityTest", - "fullName": "google.cloud.networkmanagement.v1.ReachabilityService.GetConnectivityTest", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkmanagement.v1.ConnectivityTest", - "client": { - "shortName": "ReachabilityServiceClient", - "fullName": "google.cloud.networkmanagement.v1.ReachabilityServiceClient" - }, - "method": { - "shortName": "GetConnectivityTest", - "fullName": "google.cloud.networkmanagement.v1.ReachabilityService.GetConnectivityTest", - "service": { - "shortName": "ReachabilityService", - "fullName": "google.cloud.networkmanagement.v1.ReachabilityService" - } - } - } - }, - { - "regionTag": "networkmanagement_v1_generated_ReachabilityService_CreateConnectivityTest_async", - "title": "OrganizationVpcFlowLogsService createConnectivityTest Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Connectivity Test. After you create a test, the reachability analysis is performed as part of the long running operation, which completes when the analysis completes. If the endpoint specifications in `ConnectivityTest` are invalid (for example, containing non-existent resources in the network, or you don't have read permissions to the network configurations of listed projects), then the reachability result returns a value of `UNKNOWN`. If the endpoint specifications in `ConnectivityTest` are incomplete, the reachability result returns a value of AMBIGUOUS. For more information, see the Connectivity Test documentation.", - "canonical": true, - "file": "reachability_service.create_connectivity_test.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateConnectivityTest", - "fullName": "google.cloud.networkmanagement.v1.ReachabilityService.CreateConnectivityTest", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "test_id", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": ".google.cloud.networkmanagement.v1.ConnectivityTest" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ReachabilityServiceClient", - "fullName": "google.cloud.networkmanagement.v1.ReachabilityServiceClient" - }, - "method": { - "shortName": "CreateConnectivityTest", - "fullName": "google.cloud.networkmanagement.v1.ReachabilityService.CreateConnectivityTest", - "service": { - "shortName": "ReachabilityService", - "fullName": "google.cloud.networkmanagement.v1.ReachabilityService" - } - } - } - }, - { - "regionTag": "networkmanagement_v1_generated_ReachabilityService_UpdateConnectivityTest_async", - "title": "OrganizationVpcFlowLogsService updateConnectivityTest Sample", - "origin": "API_DEFINITION", - "description": " Updates the configuration of an existing `ConnectivityTest`. After you update a test, the reachability analysis is performed as part of the long running operation, which completes when the analysis completes. The Reachability state in the test resource is updated with the new result. If the endpoint specifications in `ConnectivityTest` are invalid (for example, they contain non-existent resources in the network, or the user does not have read permissions to the network configurations of listed projects), then the reachability result returns a value of UNKNOWN. If the endpoint specifications in `ConnectivityTest` are incomplete, the reachability result returns a value of `AMBIGUOUS`. See the documentation in `ConnectivityTest` for more details.", - "canonical": true, - "file": "reachability_service.update_connectivity_test.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateConnectivityTest", - "fullName": "google.cloud.networkmanagement.v1.ReachabilityService.UpdateConnectivityTest", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "resource", - "type": ".google.cloud.networkmanagement.v1.ConnectivityTest" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ReachabilityServiceClient", - "fullName": "google.cloud.networkmanagement.v1.ReachabilityServiceClient" - }, - "method": { - "shortName": "UpdateConnectivityTest", - "fullName": "google.cloud.networkmanagement.v1.ReachabilityService.UpdateConnectivityTest", - "service": { - "shortName": "ReachabilityService", - "fullName": "google.cloud.networkmanagement.v1.ReachabilityService" - } - } - } - }, - { - "regionTag": "networkmanagement_v1_generated_ReachabilityService_RerunConnectivityTest_async", - "title": "OrganizationVpcFlowLogsService rerunConnectivityTest Sample", - "origin": "API_DEFINITION", - "description": " Rerun an existing `ConnectivityTest`. After the user triggers the rerun, the reachability analysis is performed as part of the long running operation, which completes when the analysis completes. Even though the test configuration remains the same, the reachability result may change due to underlying network configuration changes. If the endpoint specifications in `ConnectivityTest` become invalid (for example, specified resources are deleted in the network, or you lost read permissions to the network configurations of listed projects), then the reachability result returns a value of `UNKNOWN`.", - "canonical": true, - "file": "reachability_service.rerun_connectivity_test.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RerunConnectivityTest", - "fullName": "google.cloud.networkmanagement.v1.ReachabilityService.RerunConnectivityTest", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ReachabilityServiceClient", - "fullName": "google.cloud.networkmanagement.v1.ReachabilityServiceClient" - }, - "method": { - "shortName": "RerunConnectivityTest", - "fullName": "google.cloud.networkmanagement.v1.ReachabilityService.RerunConnectivityTest", - "service": { - "shortName": "ReachabilityService", - "fullName": "google.cloud.networkmanagement.v1.ReachabilityService" - } - } - } - }, - { - "regionTag": "networkmanagement_v1_generated_ReachabilityService_DeleteConnectivityTest_async", - "title": "OrganizationVpcFlowLogsService deleteConnectivityTest Sample", - "origin": "API_DEFINITION", - "description": " Deletes a specific `ConnectivityTest`.", - "canonical": true, - "file": "reachability_service.delete_connectivity_test.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteConnectivityTest", - "fullName": "google.cloud.networkmanagement.v1.ReachabilityService.DeleteConnectivityTest", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ReachabilityServiceClient", - "fullName": "google.cloud.networkmanagement.v1.ReachabilityServiceClient" - }, - "method": { - "shortName": "DeleteConnectivityTest", - "fullName": "google.cloud.networkmanagement.v1.ReachabilityService.DeleteConnectivityTest", - "service": { - "shortName": "ReachabilityService", - "fullName": "google.cloud.networkmanagement.v1.ReachabilityService" - } - } - } - }, - { - "regionTag": "networkmanagement_v1_generated_VpcFlowLogsService_ListVpcFlowLogsConfigs_async", - "title": "OrganizationVpcFlowLogsService listVpcFlowLogsConfigs Sample", - "origin": "API_DEFINITION", - "description": " Lists all `VpcFlowLogsConfigs` in a given project.", - "canonical": true, - "file": "vpc_flow_logs_service.list_vpc_flow_logs_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListVpcFlowLogsConfigs", - "fullName": "google.cloud.networkmanagement.v1.VpcFlowLogsService.ListVpcFlowLogsConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkmanagement.v1.ListVpcFlowLogsConfigsResponse", - "client": { - "shortName": "VpcFlowLogsServiceClient", - "fullName": "google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient" - }, - "method": { - "shortName": "ListVpcFlowLogsConfigs", - "fullName": "google.cloud.networkmanagement.v1.VpcFlowLogsService.ListVpcFlowLogsConfigs", - "service": { - "shortName": "VpcFlowLogsService", - "fullName": "google.cloud.networkmanagement.v1.VpcFlowLogsService" - } - } - } - }, - { - "regionTag": "networkmanagement_v1_generated_VpcFlowLogsService_GetVpcFlowLogsConfig_async", - "title": "OrganizationVpcFlowLogsService getVpcFlowLogsConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a specific `VpcFlowLogsConfig`.", - "canonical": true, - "file": "vpc_flow_logs_service.get_vpc_flow_logs_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetVpcFlowLogsConfig", - "fullName": "google.cloud.networkmanagement.v1.VpcFlowLogsService.GetVpcFlowLogsConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkmanagement.v1.VpcFlowLogsConfig", - "client": { - "shortName": "VpcFlowLogsServiceClient", - "fullName": "google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient" - }, - "method": { - "shortName": "GetVpcFlowLogsConfig", - "fullName": "google.cloud.networkmanagement.v1.VpcFlowLogsService.GetVpcFlowLogsConfig", - "service": { - "shortName": "VpcFlowLogsService", - "fullName": "google.cloud.networkmanagement.v1.VpcFlowLogsService" - } - } - } - }, - { - "regionTag": "networkmanagement_v1_generated_VpcFlowLogsService_CreateVpcFlowLogsConfig_async", - "title": "OrganizationVpcFlowLogsService createVpcFlowLogsConfig Sample", - "origin": "API_DEFINITION", - "description": " Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same settings already exists (even if the ID is different), the creation fails. Notes: 1. Creating a configuration with `state=DISABLED` will fail 2. The following fields are not considered as settings for the purpose of the check mentioned above, therefore - creating another configuration with the same fields but different values for the following fields will fail as well: * name * create_time * update_time * labels * description", - "canonical": true, - "file": "vpc_flow_logs_service.create_vpc_flow_logs_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateVpcFlowLogsConfig", - "fullName": "google.cloud.networkmanagement.v1.VpcFlowLogsService.CreateVpcFlowLogsConfig", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "vpc_flow_logs_config_id", - "type": "TYPE_STRING" - }, - { - "name": "vpc_flow_logs_config", - "type": ".google.cloud.networkmanagement.v1.VpcFlowLogsConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VpcFlowLogsServiceClient", - "fullName": "google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient" - }, - "method": { - "shortName": "CreateVpcFlowLogsConfig", - "fullName": "google.cloud.networkmanagement.v1.VpcFlowLogsService.CreateVpcFlowLogsConfig", - "service": { - "shortName": "VpcFlowLogsService", - "fullName": "google.cloud.networkmanagement.v1.VpcFlowLogsService" - } - } - } - }, - { - "regionTag": "networkmanagement_v1_generated_VpcFlowLogsService_UpdateVpcFlowLogsConfig_async", - "title": "OrganizationVpcFlowLogsService updateVpcFlowLogsConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates an existing `VpcFlowLogsConfig`. If a configuration with the exact same settings already exists (even if the ID is different), the creation fails. Notes: 1. Updating a configuration with `state=DISABLED` will fail. 2. The following fields are not considered as settings for the purpose of the check mentioned above, therefore - updating another configuration with the same fields but different values for the following fields will fail as well: * name * create_time * update_time * labels * description", - "canonical": true, - "file": "vpc_flow_logs_service.update_vpc_flow_logs_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateVpcFlowLogsConfig", - "fullName": "google.cloud.networkmanagement.v1.VpcFlowLogsService.UpdateVpcFlowLogsConfig", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "vpc_flow_logs_config", - "type": ".google.cloud.networkmanagement.v1.VpcFlowLogsConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VpcFlowLogsServiceClient", - "fullName": "google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient" - }, - "method": { - "shortName": "UpdateVpcFlowLogsConfig", - "fullName": "google.cloud.networkmanagement.v1.VpcFlowLogsService.UpdateVpcFlowLogsConfig", - "service": { - "shortName": "VpcFlowLogsService", - "fullName": "google.cloud.networkmanagement.v1.VpcFlowLogsService" - } - } - } - }, - { - "regionTag": "networkmanagement_v1_generated_VpcFlowLogsService_DeleteVpcFlowLogsConfig_async", - "title": "OrganizationVpcFlowLogsService deleteVpcFlowLogsConfig Sample", - "origin": "API_DEFINITION", - "description": " Deletes a specific `VpcFlowLogsConfig`.", - "canonical": true, - "file": "vpc_flow_logs_service.delete_vpc_flow_logs_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteVpcFlowLogsConfig", - "fullName": "google.cloud.networkmanagement.v1.VpcFlowLogsService.DeleteVpcFlowLogsConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VpcFlowLogsServiceClient", - "fullName": "google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient" - }, - "method": { - "shortName": "DeleteVpcFlowLogsConfig", - "fullName": "google.cloud.networkmanagement.v1.VpcFlowLogsService.DeleteVpcFlowLogsConfig", - "service": { - "shortName": "VpcFlowLogsService", - "fullName": "google.cloud.networkmanagement.v1.VpcFlowLogsService" - } - } - } - }, - { - "regionTag": "networkmanagement_v1_generated_VpcFlowLogsService_QueryOrgVpcFlowLogsConfigs_async", - "title": "OrganizationVpcFlowLogsService queryOrgVpcFlowLogsConfigs Sample", - "origin": "API_DEFINITION", - "description": " QueryOrgVpcFlowLogsConfigs returns a list of all organization-level VPC Flow Logs configurations applicable to the specified project.", - "canonical": true, - "file": "vpc_flow_logs_service.query_org_vpc_flow_logs_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryOrgVpcFlowLogsConfigs", - "fullName": "google.cloud.networkmanagement.v1.VpcFlowLogsService.QueryOrgVpcFlowLogsConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkmanagement.v1.QueryOrgVpcFlowLogsConfigsResponse", - "client": { - "shortName": "VpcFlowLogsServiceClient", - "fullName": "google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient" - }, - "method": { - "shortName": "QueryOrgVpcFlowLogsConfigs", - "fullName": "google.cloud.networkmanagement.v1.VpcFlowLogsService.QueryOrgVpcFlowLogsConfigs", - "service": { - "shortName": "VpcFlowLogsService", - "fullName": "google.cloud.networkmanagement.v1.VpcFlowLogsService" - } - } - } - }, - { - "regionTag": "networkmanagement_v1_generated_VpcFlowLogsService_ShowEffectiveFlowLogsConfigs_async", - "title": "OrganizationVpcFlowLogsService showEffectiveFlowLogsConfigs Sample", - "origin": "API_DEFINITION", - "description": " ShowEffectiveFlowLogsConfigs returns a list of all VPC Flow Logs configurations applicable to a specified resource.", - "canonical": true, - "file": "vpc_flow_logs_service.show_effective_flow_logs_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ShowEffectiveFlowLogsConfigs", - "fullName": "google.cloud.networkmanagement.v1.VpcFlowLogsService.ShowEffectiveFlowLogsConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkmanagement.v1.ShowEffectiveFlowLogsConfigsResponse", - "client": { - "shortName": "VpcFlowLogsServiceClient", - "fullName": "google.cloud.networkmanagement.v1.VpcFlowLogsServiceClient" - }, - "method": { - "shortName": "ShowEffectiveFlowLogsConfigs", - "fullName": "google.cloud.networkmanagement.v1.VpcFlowLogsService.ShowEffectiveFlowLogsConfigs", - "service": { - "shortName": "VpcFlowLogsService", - "fullName": "google.cloud.networkmanagement.v1.VpcFlowLogsService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-networkmanagement/samples/generated/v1beta1/snippet_metadata_google.cloud.networkmanagement.v1beta1.json b/packages/google-cloud-networkmanagement/samples/generated/v1beta1/snippet_metadata_google.cloud.networkmanagement.v1beta1.json deleted file mode 100644 index 868abc9d6d44..000000000000 --- a/packages/google-cloud-networkmanagement/samples/generated/v1beta1/snippet_metadata_google.cloud.networkmanagement.v1beta1.json +++ /dev/null @@ -1,847 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-networkmanagement", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.networkmanagement.v1beta1", - "version": "v1beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_ListVpcFlowLogsConfigs_async", - "title": "OrganizationVpcFlowLogsService listVpcFlowLogsConfigs Sample", - "origin": "API_DEFINITION", - "description": " Lists all `VpcFlowLogsConfigs` in a given organization.", - "canonical": true, - "file": "organization_vpc_flow_logs_service.list_vpc_flow_logs_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListVpcFlowLogsConfigs", - "fullName": "google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsService.ListVpcFlowLogsConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkmanagement.v1beta1.ListVpcFlowLogsConfigsResponse", - "client": { - "shortName": "OrganizationVpcFlowLogsServiceClient", - "fullName": "google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient" - }, - "method": { - "shortName": "ListVpcFlowLogsConfigs", - "fullName": "google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsService.ListVpcFlowLogsConfigs", - "service": { - "shortName": "OrganizationVpcFlowLogsService", - "fullName": "google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsService" - } - } - } - }, - { - "regionTag": "networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_GetVpcFlowLogsConfig_async", - "title": "OrganizationVpcFlowLogsService getVpcFlowLogsConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a specific `VpcFlowLogsConfig`.", - "canonical": true, - "file": "organization_vpc_flow_logs_service.get_vpc_flow_logs_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetVpcFlowLogsConfig", - "fullName": "google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsService.GetVpcFlowLogsConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig", - "client": { - "shortName": "OrganizationVpcFlowLogsServiceClient", - "fullName": "google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient" - }, - "method": { - "shortName": "GetVpcFlowLogsConfig", - "fullName": "google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsService.GetVpcFlowLogsConfig", - "service": { - "shortName": "OrganizationVpcFlowLogsService", - "fullName": "google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsService" - } - } - } - }, - { - "regionTag": "networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_CreateVpcFlowLogsConfig_async", - "title": "OrganizationVpcFlowLogsService createVpcFlowLogsConfig Sample", - "origin": "API_DEFINITION", - "description": " Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same settings already exists (even if the ID is different), the creation fails. Notes: 1. Creating a configuration with `state=DISABLED` will fail 2. The following fields are not considered as settings for the purpose of the check mentioned above, therefore - creating another configuration with the same fields but different values for the following fields will fail as well: * name * create_time * update_time * labels * description", - "canonical": true, - "file": "organization_vpc_flow_logs_service.create_vpc_flow_logs_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateVpcFlowLogsConfig", - "fullName": "google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsService.CreateVpcFlowLogsConfig", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "vpc_flow_logs_config_id", - "type": "TYPE_STRING" - }, - { - "name": "vpc_flow_logs_config", - "type": ".google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OrganizationVpcFlowLogsServiceClient", - "fullName": "google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient" - }, - "method": { - "shortName": "CreateVpcFlowLogsConfig", - "fullName": "google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsService.CreateVpcFlowLogsConfig", - "service": { - "shortName": "OrganizationVpcFlowLogsService", - "fullName": "google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsService" - } - } - } - }, - { - "regionTag": "networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_UpdateVpcFlowLogsConfig_async", - "title": "OrganizationVpcFlowLogsService updateVpcFlowLogsConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates an existing `VpcFlowLogsConfig`. If a configuration with the exact same settings already exists (even if the ID is different), the creation fails. Notes: 1. Updating a configuration with `state=DISABLED` will fail 2. The following fields are not considered as settings for the purpose of the check mentioned above, therefore - updating another configuration with the same fields but different values for the following fields will fail as well: * name * create_time * update_time * labels * description", - "canonical": true, - "file": "organization_vpc_flow_logs_service.update_vpc_flow_logs_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateVpcFlowLogsConfig", - "fullName": "google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsService.UpdateVpcFlowLogsConfig", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "vpc_flow_logs_config", - "type": ".google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OrganizationVpcFlowLogsServiceClient", - "fullName": "google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient" - }, - "method": { - "shortName": "UpdateVpcFlowLogsConfig", - "fullName": "google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsService.UpdateVpcFlowLogsConfig", - "service": { - "shortName": "OrganizationVpcFlowLogsService", - "fullName": "google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsService" - } - } - } - }, - { - "regionTag": "networkmanagement_v1beta1_generated_OrganizationVpcFlowLogsService_DeleteVpcFlowLogsConfig_async", - "title": "OrganizationVpcFlowLogsService deleteVpcFlowLogsConfig Sample", - "origin": "API_DEFINITION", - "description": " Deletes a specific `VpcFlowLogsConfig`.", - "canonical": true, - "file": "organization_vpc_flow_logs_service.delete_vpc_flow_logs_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteVpcFlowLogsConfig", - "fullName": "google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsService.DeleteVpcFlowLogsConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OrganizationVpcFlowLogsServiceClient", - "fullName": "google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsServiceClient" - }, - "method": { - "shortName": "DeleteVpcFlowLogsConfig", - "fullName": "google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsService.DeleteVpcFlowLogsConfig", - "service": { - "shortName": "OrganizationVpcFlowLogsService", - "fullName": "google.cloud.networkmanagement.v1beta1.OrganizationVpcFlowLogsService" - } - } - } - }, - { - "regionTag": "networkmanagement_v1beta1_generated_ReachabilityService_ListConnectivityTests_async", - "title": "OrganizationVpcFlowLogsService listConnectivityTests Sample", - "origin": "API_DEFINITION", - "description": " Lists all Connectivity Tests owned by a project.", - "canonical": true, - "file": "reachability_service.list_connectivity_tests.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListConnectivityTests", - "fullName": "google.cloud.networkmanagement.v1beta1.ReachabilityService.ListConnectivityTests", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkmanagement.v1beta1.ListConnectivityTestsResponse", - "client": { - "shortName": "ReachabilityServiceClient", - "fullName": "google.cloud.networkmanagement.v1beta1.ReachabilityServiceClient" - }, - "method": { - "shortName": "ListConnectivityTests", - "fullName": "google.cloud.networkmanagement.v1beta1.ReachabilityService.ListConnectivityTests", - "service": { - "shortName": "ReachabilityService", - "fullName": "google.cloud.networkmanagement.v1beta1.ReachabilityService" - } - } - } - }, - { - "regionTag": "networkmanagement_v1beta1_generated_ReachabilityService_GetConnectivityTest_async", - "title": "OrganizationVpcFlowLogsService getConnectivityTest Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a specific Connectivity Test.", - "canonical": true, - "file": "reachability_service.get_connectivity_test.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetConnectivityTest", - "fullName": "google.cloud.networkmanagement.v1beta1.ReachabilityService.GetConnectivityTest", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkmanagement.v1beta1.ConnectivityTest", - "client": { - "shortName": "ReachabilityServiceClient", - "fullName": "google.cloud.networkmanagement.v1beta1.ReachabilityServiceClient" - }, - "method": { - "shortName": "GetConnectivityTest", - "fullName": "google.cloud.networkmanagement.v1beta1.ReachabilityService.GetConnectivityTest", - "service": { - "shortName": "ReachabilityService", - "fullName": "google.cloud.networkmanagement.v1beta1.ReachabilityService" - } - } - } - }, - { - "regionTag": "networkmanagement_v1beta1_generated_ReachabilityService_CreateConnectivityTest_async", - "title": "OrganizationVpcFlowLogsService createConnectivityTest Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Connectivity Test. After you create a test, the reachability analysis is performed as part of the long running operation, which completes when the analysis completes. If the endpoint specifications in `ConnectivityTest` are invalid (for example, containing non-existent resources in the network, or you don't have read permissions to the network configurations of listed projects), then the reachability result returns a value of `UNKNOWN`. If the endpoint specifications in `ConnectivityTest` are incomplete, the reachability result returns a value of AMBIGUOUS. For more information, see the Connectivity Test documentation.", - "canonical": true, - "file": "reachability_service.create_connectivity_test.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateConnectivityTest", - "fullName": "google.cloud.networkmanagement.v1beta1.ReachabilityService.CreateConnectivityTest", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "test_id", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": ".google.cloud.networkmanagement.v1beta1.ConnectivityTest" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ReachabilityServiceClient", - "fullName": "google.cloud.networkmanagement.v1beta1.ReachabilityServiceClient" - }, - "method": { - "shortName": "CreateConnectivityTest", - "fullName": "google.cloud.networkmanagement.v1beta1.ReachabilityService.CreateConnectivityTest", - "service": { - "shortName": "ReachabilityService", - "fullName": "google.cloud.networkmanagement.v1beta1.ReachabilityService" - } - } - } - }, - { - "regionTag": "networkmanagement_v1beta1_generated_ReachabilityService_UpdateConnectivityTest_async", - "title": "OrganizationVpcFlowLogsService updateConnectivityTest Sample", - "origin": "API_DEFINITION", - "description": " Updates the configuration of an existing `ConnectivityTest`. After you update a test, the reachability analysis is performed as part of the long running operation, which completes when the analysis completes. The Reachability state in the test resource is updated with the new result. If the endpoint specifications in `ConnectivityTest` are invalid (for example, they contain non-existent resources in the network, or the user does not have read permissions to the network configurations of listed projects), then the reachability result returns a value of UNKNOWN. If the endpoint specifications in `ConnectivityTest` are incomplete, the reachability result returns a value of `AMBIGUOUS`. See the documentation in `ConnectivityTest` for more details.", - "canonical": true, - "file": "reachability_service.update_connectivity_test.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateConnectivityTest", - "fullName": "google.cloud.networkmanagement.v1beta1.ReachabilityService.UpdateConnectivityTest", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "resource", - "type": ".google.cloud.networkmanagement.v1beta1.ConnectivityTest" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ReachabilityServiceClient", - "fullName": "google.cloud.networkmanagement.v1beta1.ReachabilityServiceClient" - }, - "method": { - "shortName": "UpdateConnectivityTest", - "fullName": "google.cloud.networkmanagement.v1beta1.ReachabilityService.UpdateConnectivityTest", - "service": { - "shortName": "ReachabilityService", - "fullName": "google.cloud.networkmanagement.v1beta1.ReachabilityService" - } - } - } - }, - { - "regionTag": "networkmanagement_v1beta1_generated_ReachabilityService_RerunConnectivityTest_async", - "title": "OrganizationVpcFlowLogsService rerunConnectivityTest Sample", - "origin": "API_DEFINITION", - "description": " Rerun an existing `ConnectivityTest`. After the user triggers the rerun, the reachability analysis is performed as part of the long running operation, which completes when the analysis completes. Even though the test configuration remains the same, the reachability result may change due to underlying network configuration changes. If the endpoint specifications in `ConnectivityTest` become invalid (for example, specified resources are deleted in the network, or you lost read permissions to the network configurations of listed projects), then the reachability result returns a value of `UNKNOWN`.", - "canonical": true, - "file": "reachability_service.rerun_connectivity_test.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RerunConnectivityTest", - "fullName": "google.cloud.networkmanagement.v1beta1.ReachabilityService.RerunConnectivityTest", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ReachabilityServiceClient", - "fullName": "google.cloud.networkmanagement.v1beta1.ReachabilityServiceClient" - }, - "method": { - "shortName": "RerunConnectivityTest", - "fullName": "google.cloud.networkmanagement.v1beta1.ReachabilityService.RerunConnectivityTest", - "service": { - "shortName": "ReachabilityService", - "fullName": "google.cloud.networkmanagement.v1beta1.ReachabilityService" - } - } - } - }, - { - "regionTag": "networkmanagement_v1beta1_generated_ReachabilityService_DeleteConnectivityTest_async", - "title": "OrganizationVpcFlowLogsService deleteConnectivityTest Sample", - "origin": "API_DEFINITION", - "description": " Deletes a specific `ConnectivityTest`.", - "canonical": true, - "file": "reachability_service.delete_connectivity_test.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteConnectivityTest", - "fullName": "google.cloud.networkmanagement.v1beta1.ReachabilityService.DeleteConnectivityTest", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ReachabilityServiceClient", - "fullName": "google.cloud.networkmanagement.v1beta1.ReachabilityServiceClient" - }, - "method": { - "shortName": "DeleteConnectivityTest", - "fullName": "google.cloud.networkmanagement.v1beta1.ReachabilityService.DeleteConnectivityTest", - "service": { - "shortName": "ReachabilityService", - "fullName": "google.cloud.networkmanagement.v1beta1.ReachabilityService" - } - } - } - }, - { - "regionTag": "networkmanagement_v1beta1_generated_VpcFlowLogsService_ListVpcFlowLogsConfigs_async", - "title": "OrganizationVpcFlowLogsService listVpcFlowLogsConfigs Sample", - "origin": "API_DEFINITION", - "description": " Lists all `VpcFlowLogsConfigs` in a given project.", - "canonical": true, - "file": "vpc_flow_logs_service.list_vpc_flow_logs_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListVpcFlowLogsConfigs", - "fullName": "google.cloud.networkmanagement.v1beta1.VpcFlowLogsService.ListVpcFlowLogsConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkmanagement.v1beta1.ListVpcFlowLogsConfigsResponse", - "client": { - "shortName": "VpcFlowLogsServiceClient", - "fullName": "google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient" - }, - "method": { - "shortName": "ListVpcFlowLogsConfigs", - "fullName": "google.cloud.networkmanagement.v1beta1.VpcFlowLogsService.ListVpcFlowLogsConfigs", - "service": { - "shortName": "VpcFlowLogsService", - "fullName": "google.cloud.networkmanagement.v1beta1.VpcFlowLogsService" - } - } - } - }, - { - "regionTag": "networkmanagement_v1beta1_generated_VpcFlowLogsService_GetVpcFlowLogsConfig_async", - "title": "OrganizationVpcFlowLogsService getVpcFlowLogsConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a specific `VpcFlowLogsConfig`.", - "canonical": true, - "file": "vpc_flow_logs_service.get_vpc_flow_logs_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetVpcFlowLogsConfig", - "fullName": "google.cloud.networkmanagement.v1beta1.VpcFlowLogsService.GetVpcFlowLogsConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig", - "client": { - "shortName": "VpcFlowLogsServiceClient", - "fullName": "google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient" - }, - "method": { - "shortName": "GetVpcFlowLogsConfig", - "fullName": "google.cloud.networkmanagement.v1beta1.VpcFlowLogsService.GetVpcFlowLogsConfig", - "service": { - "shortName": "VpcFlowLogsService", - "fullName": "google.cloud.networkmanagement.v1beta1.VpcFlowLogsService" - } - } - } - }, - { - "regionTag": "networkmanagement_v1beta1_generated_VpcFlowLogsService_CreateVpcFlowLogsConfig_async", - "title": "OrganizationVpcFlowLogsService createVpcFlowLogsConfig Sample", - "origin": "API_DEFINITION", - "description": " Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same settings already exists (even if the ID is different), the creation fails. Notes: 1. Creating a configuration with `state=DISABLED` will fail 2. The following fields are not considered as settings for the purpose of the check mentioned above, therefore - creating another configuration with the same fields but different values for the following fields will fail as well: * name * create_time * update_time * labels * description", - "canonical": true, - "file": "vpc_flow_logs_service.create_vpc_flow_logs_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateVpcFlowLogsConfig", - "fullName": "google.cloud.networkmanagement.v1beta1.VpcFlowLogsService.CreateVpcFlowLogsConfig", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "vpc_flow_logs_config_id", - "type": "TYPE_STRING" - }, - { - "name": "vpc_flow_logs_config", - "type": ".google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VpcFlowLogsServiceClient", - "fullName": "google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient" - }, - "method": { - "shortName": "CreateVpcFlowLogsConfig", - "fullName": "google.cloud.networkmanagement.v1beta1.VpcFlowLogsService.CreateVpcFlowLogsConfig", - "service": { - "shortName": "VpcFlowLogsService", - "fullName": "google.cloud.networkmanagement.v1beta1.VpcFlowLogsService" - } - } - } - }, - { - "regionTag": "networkmanagement_v1beta1_generated_VpcFlowLogsService_UpdateVpcFlowLogsConfig_async", - "title": "OrganizationVpcFlowLogsService updateVpcFlowLogsConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates an existing `VpcFlowLogsConfig`. If a configuration with the exact same settings already exists (even if the ID is different), the creation fails. Notes: 1. Updating a configuration with `state=DISABLED` will fail 2. The following fields are not considered as settings for the purpose of the check mentioned above, therefore - updating another configuration with the same fields but different values for the following fields will fail as well: * name * create_time * update_time * labels * description", - "canonical": true, - "file": "vpc_flow_logs_service.update_vpc_flow_logs_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateVpcFlowLogsConfig", - "fullName": "google.cloud.networkmanagement.v1beta1.VpcFlowLogsService.UpdateVpcFlowLogsConfig", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "vpc_flow_logs_config", - "type": ".google.cloud.networkmanagement.v1beta1.VpcFlowLogsConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VpcFlowLogsServiceClient", - "fullName": "google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient" - }, - "method": { - "shortName": "UpdateVpcFlowLogsConfig", - "fullName": "google.cloud.networkmanagement.v1beta1.VpcFlowLogsService.UpdateVpcFlowLogsConfig", - "service": { - "shortName": "VpcFlowLogsService", - "fullName": "google.cloud.networkmanagement.v1beta1.VpcFlowLogsService" - } - } - } - }, - { - "regionTag": "networkmanagement_v1beta1_generated_VpcFlowLogsService_DeleteVpcFlowLogsConfig_async", - "title": "OrganizationVpcFlowLogsService deleteVpcFlowLogsConfig Sample", - "origin": "API_DEFINITION", - "description": " Deletes a specific `VpcFlowLogsConfig`.", - "canonical": true, - "file": "vpc_flow_logs_service.delete_vpc_flow_logs_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteVpcFlowLogsConfig", - "fullName": "google.cloud.networkmanagement.v1beta1.VpcFlowLogsService.DeleteVpcFlowLogsConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VpcFlowLogsServiceClient", - "fullName": "google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient" - }, - "method": { - "shortName": "DeleteVpcFlowLogsConfig", - "fullName": "google.cloud.networkmanagement.v1beta1.VpcFlowLogsService.DeleteVpcFlowLogsConfig", - "service": { - "shortName": "VpcFlowLogsService", - "fullName": "google.cloud.networkmanagement.v1beta1.VpcFlowLogsService" - } - } - } - }, - { - "regionTag": "networkmanagement_v1beta1_generated_VpcFlowLogsService_QueryOrgVpcFlowLogsConfigs_async", - "title": "OrganizationVpcFlowLogsService queryOrgVpcFlowLogsConfigs Sample", - "origin": "API_DEFINITION", - "description": " QueryOrgVpcFlowLogsConfigs returns a list of all organization-level VPC Flow Logs configurations applicable to the specified project.", - "canonical": true, - "file": "vpc_flow_logs_service.query_org_vpc_flow_logs_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryOrgVpcFlowLogsConfigs", - "fullName": "google.cloud.networkmanagement.v1beta1.VpcFlowLogsService.QueryOrgVpcFlowLogsConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkmanagement.v1beta1.QueryOrgVpcFlowLogsConfigsResponse", - "client": { - "shortName": "VpcFlowLogsServiceClient", - "fullName": "google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient" - }, - "method": { - "shortName": "QueryOrgVpcFlowLogsConfigs", - "fullName": "google.cloud.networkmanagement.v1beta1.VpcFlowLogsService.QueryOrgVpcFlowLogsConfigs", - "service": { - "shortName": "VpcFlowLogsService", - "fullName": "google.cloud.networkmanagement.v1beta1.VpcFlowLogsService" - } - } - } - }, - { - "regionTag": "networkmanagement_v1beta1_generated_VpcFlowLogsService_ShowEffectiveFlowLogsConfigs_async", - "title": "OrganizationVpcFlowLogsService showEffectiveFlowLogsConfigs Sample", - "origin": "API_DEFINITION", - "description": " ShowEffectiveFlowLogsConfigs returns a list of all VPC Flow Logs configurations applicable to a specified resource.", - "canonical": true, - "file": "vpc_flow_logs_service.show_effective_flow_logs_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ShowEffectiveFlowLogsConfigs", - "fullName": "google.cloud.networkmanagement.v1beta1.VpcFlowLogsService.ShowEffectiveFlowLogsConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkmanagement.v1beta1.ShowEffectiveFlowLogsConfigsResponse", - "client": { - "shortName": "VpcFlowLogsServiceClient", - "fullName": "google.cloud.networkmanagement.v1beta1.VpcFlowLogsServiceClient" - }, - "method": { - "shortName": "ShowEffectiveFlowLogsConfigs", - "fullName": "google.cloud.networkmanagement.v1beta1.VpcFlowLogsService.ShowEffectiveFlowLogsConfigs", - "service": { - "shortName": "VpcFlowLogsService", - "fullName": "google.cloud.networkmanagement.v1beta1.VpcFlowLogsService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-networksecurity/samples/generated/v1/snippet_metadata_google.cloud.networksecurity.v1.json b/packages/google-cloud-networksecurity/samples/generated/v1/snippet_metadata_google.cloud.networksecurity.v1.json deleted file mode 100644 index 676b6b904c4e..000000000000 --- a/packages/google-cloud-networksecurity/samples/generated/v1/snippet_metadata_google.cloud.networksecurity.v1.json +++ /dev/null @@ -1,7023 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-networksecurity", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.networksecurity.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "networksecurity_v1_generated_AddressGroupService_ListAddressGroups_async", - "title": "AddressGroupService listAddressGroups Sample", - "origin": "API_DEFINITION", - "description": " Lists address groups in a given project and location.", - "canonical": true, - "file": "address_group_service.list_address_groups.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAddressGroups", - "fullName": "google.cloud.networksecurity.v1.AddressGroupService.ListAddressGroups", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.networksecurity.v1.ListAddressGroupsResponse", - "client": { - "shortName": "AddressGroupServiceClient", - "fullName": "google.cloud.networksecurity.v1.AddressGroupServiceClient" - }, - "method": { - "shortName": "ListAddressGroups", - "fullName": "google.cloud.networksecurity.v1.AddressGroupService.ListAddressGroups", - "service": { - "shortName": "AddressGroupService", - "fullName": "google.cloud.networksecurity.v1.AddressGroupService" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_AddressGroupService_GetAddressGroup_async", - "title": "AddressGroupService getAddressGroup Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single address group.", - "canonical": true, - "file": "address_group_service.get_address_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAddressGroup", - "fullName": "google.cloud.networksecurity.v1.AddressGroupService.GetAddressGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1.AddressGroup", - "client": { - "shortName": "AddressGroupServiceClient", - "fullName": "google.cloud.networksecurity.v1.AddressGroupServiceClient" - }, - "method": { - "shortName": "GetAddressGroup", - "fullName": "google.cloud.networksecurity.v1.AddressGroupService.GetAddressGroup", - "service": { - "shortName": "AddressGroupService", - "fullName": "google.cloud.networksecurity.v1.AddressGroupService" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_AddressGroupService_CreateAddressGroup_async", - "title": "AddressGroupService createAddressGroup Sample", - "origin": "API_DEFINITION", - "description": " Creates a new address group in a given project and location.", - "canonical": true, - "file": "address_group_service.create_address_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAddressGroup", - "fullName": "google.cloud.networksecurity.v1.AddressGroupService.CreateAddressGroup", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "address_group_id", - "type": "TYPE_STRING" - }, - { - "name": "address_group", - "type": ".google.cloud.networksecurity.v1.AddressGroup" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AddressGroupServiceClient", - "fullName": "google.cloud.networksecurity.v1.AddressGroupServiceClient" - }, - "method": { - "shortName": "CreateAddressGroup", - "fullName": "google.cloud.networksecurity.v1.AddressGroupService.CreateAddressGroup", - "service": { - "shortName": "AddressGroupService", - "fullName": "google.cloud.networksecurity.v1.AddressGroupService" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_AddressGroupService_UpdateAddressGroup_async", - "title": "AddressGroupService updateAddressGroup Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single address group.", - "canonical": true, - "file": "address_group_service.update_address_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAddressGroup", - "fullName": "google.cloud.networksecurity.v1.AddressGroupService.UpdateAddressGroup", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "address_group", - "type": ".google.cloud.networksecurity.v1.AddressGroup" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AddressGroupServiceClient", - "fullName": "google.cloud.networksecurity.v1.AddressGroupServiceClient" - }, - "method": { - "shortName": "UpdateAddressGroup", - "fullName": "google.cloud.networksecurity.v1.AddressGroupService.UpdateAddressGroup", - "service": { - "shortName": "AddressGroupService", - "fullName": "google.cloud.networksecurity.v1.AddressGroupService" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_AddressGroupService_AddAddressGroupItems_async", - "title": "AddressGroupService addAddressGroupItems Sample", - "origin": "API_DEFINITION", - "description": " Adds items to an address group.", - "canonical": true, - "file": "address_group_service.add_address_group_items.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddAddressGroupItems", - "fullName": "google.cloud.networksecurity.v1.AddressGroupService.AddAddressGroupItems", - "async": true, - "parameters": [ - { - "name": "address_group", - "type": "TYPE_STRING" - }, - { - "name": "items", - "type": "TYPE_STRING[]" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AddressGroupServiceClient", - "fullName": "google.cloud.networksecurity.v1.AddressGroupServiceClient" - }, - "method": { - "shortName": "AddAddressGroupItems", - "fullName": "google.cloud.networksecurity.v1.AddressGroupService.AddAddressGroupItems", - "service": { - "shortName": "AddressGroupService", - "fullName": "google.cloud.networksecurity.v1.AddressGroupService" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_AddressGroupService_RemoveAddressGroupItems_async", - "title": "AddressGroupService removeAddressGroupItems Sample", - "origin": "API_DEFINITION", - "description": " Removes items from an address group.", - "canonical": true, - "file": "address_group_service.remove_address_group_items.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveAddressGroupItems", - "fullName": "google.cloud.networksecurity.v1.AddressGroupService.RemoveAddressGroupItems", - "async": true, - "parameters": [ - { - "name": "address_group", - "type": "TYPE_STRING" - }, - { - "name": "items", - "type": "TYPE_STRING[]" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AddressGroupServiceClient", - "fullName": "google.cloud.networksecurity.v1.AddressGroupServiceClient" - }, - "method": { - "shortName": "RemoveAddressGroupItems", - "fullName": "google.cloud.networksecurity.v1.AddressGroupService.RemoveAddressGroupItems", - "service": { - "shortName": "AddressGroupService", - "fullName": "google.cloud.networksecurity.v1.AddressGroupService" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_AddressGroupService_CloneAddressGroupItems_async", - "title": "AddressGroupService cloneAddressGroupItems Sample", - "origin": "API_DEFINITION", - "description": " Clones items from one address group to another.", - "canonical": true, - "file": "address_group_service.clone_address_group_items.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CloneAddressGroupItems", - "fullName": "google.cloud.networksecurity.v1.AddressGroupService.CloneAddressGroupItems", - "async": true, - "parameters": [ - { - "name": "address_group", - "type": "TYPE_STRING" - }, - { - "name": "source_address_group", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AddressGroupServiceClient", - "fullName": "google.cloud.networksecurity.v1.AddressGroupServiceClient" - }, - "method": { - "shortName": "CloneAddressGroupItems", - "fullName": "google.cloud.networksecurity.v1.AddressGroupService.CloneAddressGroupItems", - "service": { - "shortName": "AddressGroupService", - "fullName": "google.cloud.networksecurity.v1.AddressGroupService" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_AddressGroupService_DeleteAddressGroup_async", - "title": "AddressGroupService deleteAddressGroup Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single address group.", - "canonical": true, - "file": "address_group_service.delete_address_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAddressGroup", - "fullName": "google.cloud.networksecurity.v1.AddressGroupService.DeleteAddressGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AddressGroupServiceClient", - "fullName": "google.cloud.networksecurity.v1.AddressGroupServiceClient" - }, - "method": { - "shortName": "DeleteAddressGroup", - "fullName": "google.cloud.networksecurity.v1.AddressGroupService.DeleteAddressGroup", - "service": { - "shortName": "AddressGroupService", - "fullName": "google.cloud.networksecurity.v1.AddressGroupService" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_AddressGroupService_ListAddressGroupReferences_async", - "title": "AddressGroupService listAddressGroupReferences Sample", - "origin": "API_DEFINITION", - "description": " Lists references of an address group.", - "canonical": true, - "file": "address_group_service.list_address_group_references.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAddressGroupReferences", - "fullName": "google.cloud.networksecurity.v1.AddressGroupService.ListAddressGroupReferences", - "async": true, - "parameters": [ - { - "name": "address_group", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse", - "client": { - "shortName": "AddressGroupServiceClient", - "fullName": "google.cloud.networksecurity.v1.AddressGroupServiceClient" - }, - "method": { - "shortName": "ListAddressGroupReferences", - "fullName": "google.cloud.networksecurity.v1.AddressGroupService.ListAddressGroupReferences", - "service": { - "shortName": "AddressGroupService", - "fullName": "google.cloud.networksecurity.v1.AddressGroupService" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_DnsThreatDetectorService_ListDnsThreatDetectors_async", - "title": "AddressGroupService listDnsThreatDetectors Sample", - "origin": "API_DEFINITION", - "description": " Lists DnsThreatDetectors in a given project and location.", - "canonical": true, - "file": "dns_threat_detector_service.list_dns_threat_detectors.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDnsThreatDetectors", - "fullName": "google.cloud.networksecurity.v1.DnsThreatDetectorService.ListDnsThreatDetectors", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1.ListDnsThreatDetectorsResponse", - "client": { - "shortName": "DnsThreatDetectorServiceClient", - "fullName": "google.cloud.networksecurity.v1.DnsThreatDetectorServiceClient" - }, - "method": { - "shortName": "ListDnsThreatDetectors", - "fullName": "google.cloud.networksecurity.v1.DnsThreatDetectorService.ListDnsThreatDetectors", - "service": { - "shortName": "DnsThreatDetectorService", - "fullName": "google.cloud.networksecurity.v1.DnsThreatDetectorService" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_DnsThreatDetectorService_GetDnsThreatDetector_async", - "title": "AddressGroupService getDnsThreatDetector Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a single DnsThreatDetector.", - "canonical": true, - "file": "dns_threat_detector_service.get_dns_threat_detector.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDnsThreatDetector", - "fullName": "google.cloud.networksecurity.v1.DnsThreatDetectorService.GetDnsThreatDetector", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1.DnsThreatDetector", - "client": { - "shortName": "DnsThreatDetectorServiceClient", - "fullName": "google.cloud.networksecurity.v1.DnsThreatDetectorServiceClient" - }, - "method": { - "shortName": "GetDnsThreatDetector", - "fullName": "google.cloud.networksecurity.v1.DnsThreatDetectorService.GetDnsThreatDetector", - "service": { - "shortName": "DnsThreatDetectorService", - "fullName": "google.cloud.networksecurity.v1.DnsThreatDetectorService" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_DnsThreatDetectorService_CreateDnsThreatDetector_async", - "title": "AddressGroupService createDnsThreatDetector Sample", - "origin": "API_DEFINITION", - "description": " Creates a new DnsThreatDetector in a given project and location.", - "canonical": true, - "file": "dns_threat_detector_service.create_dns_threat_detector.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDnsThreatDetector", - "fullName": "google.cloud.networksecurity.v1.DnsThreatDetectorService.CreateDnsThreatDetector", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "dns_threat_detector_id", - "type": "TYPE_STRING" - }, - { - "name": "dns_threat_detector", - "type": ".google.cloud.networksecurity.v1.DnsThreatDetector" - } - ], - "resultType": ".google.cloud.networksecurity.v1.DnsThreatDetector", - "client": { - "shortName": "DnsThreatDetectorServiceClient", - "fullName": "google.cloud.networksecurity.v1.DnsThreatDetectorServiceClient" - }, - "method": { - "shortName": "CreateDnsThreatDetector", - "fullName": "google.cloud.networksecurity.v1.DnsThreatDetectorService.CreateDnsThreatDetector", - "service": { - "shortName": "DnsThreatDetectorService", - "fullName": "google.cloud.networksecurity.v1.DnsThreatDetectorService" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_DnsThreatDetectorService_UpdateDnsThreatDetector_async", - "title": "AddressGroupService updateDnsThreatDetector Sample", - "origin": "API_DEFINITION", - "description": " Updates a single DnsThreatDetector.", - "canonical": true, - "file": "dns_threat_detector_service.update_dns_threat_detector.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDnsThreatDetector", - "fullName": "google.cloud.networksecurity.v1.DnsThreatDetectorService.UpdateDnsThreatDetector", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "dns_threat_detector", - "type": ".google.cloud.networksecurity.v1.DnsThreatDetector" - } - ], - "resultType": ".google.cloud.networksecurity.v1.DnsThreatDetector", - "client": { - "shortName": "DnsThreatDetectorServiceClient", - "fullName": "google.cloud.networksecurity.v1.DnsThreatDetectorServiceClient" - }, - "method": { - "shortName": "UpdateDnsThreatDetector", - "fullName": "google.cloud.networksecurity.v1.DnsThreatDetectorService.UpdateDnsThreatDetector", - "service": { - "shortName": "DnsThreatDetectorService", - "fullName": "google.cloud.networksecurity.v1.DnsThreatDetectorService" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_DnsThreatDetectorService_DeleteDnsThreatDetector_async", - "title": "AddressGroupService deleteDnsThreatDetector Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single DnsThreatDetector.", - "canonical": true, - "file": "dns_threat_detector_service.delete_dns_threat_detector.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDnsThreatDetector", - "fullName": "google.cloud.networksecurity.v1.DnsThreatDetectorService.DeleteDnsThreatDetector", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DnsThreatDetectorServiceClient", - "fullName": "google.cloud.networksecurity.v1.DnsThreatDetectorServiceClient" - }, - "method": { - "shortName": "DeleteDnsThreatDetector", - "fullName": "google.cloud.networksecurity.v1.DnsThreatDetectorService.DeleteDnsThreatDetector", - "service": { - "shortName": "DnsThreatDetectorService", - "fullName": "google.cloud.networksecurity.v1.DnsThreatDetectorService" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_FirewallActivation_ListFirewallEndpoints_async", - "title": "AddressGroupService listFirewallEndpoints Sample", - "origin": "API_DEFINITION", - "description": " Lists FirewallEndpoints in a given organization and location.", - "canonical": true, - "file": "firewall_activation.list_firewall_endpoints.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFirewallEndpoints", - "fullName": "google.cloud.networksecurity.v1.FirewallActivation.ListFirewallEndpoints", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1.ListFirewallEndpointsResponse", - "client": { - "shortName": "FirewallActivationClient", - "fullName": "google.cloud.networksecurity.v1.FirewallActivationClient" - }, - "method": { - "shortName": "ListFirewallEndpoints", - "fullName": "google.cloud.networksecurity.v1.FirewallActivation.ListFirewallEndpoints", - "service": { - "shortName": "FirewallActivation", - "fullName": "google.cloud.networksecurity.v1.FirewallActivation" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_FirewallActivation_ListProjectFirewallEndpoints_async", - "title": "AddressGroupService listProjectFirewallEndpoints Sample", - "origin": "API_DEFINITION", - "description": " Lists FirewallEndpoints in a given project and location.", - "canonical": true, - "file": "firewall_activation.list_project_firewall_endpoints.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListProjectFirewallEndpoints", - "fullName": "google.cloud.networksecurity.v1.FirewallActivation.ListProjectFirewallEndpoints", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1.ListFirewallEndpointsResponse", - "client": { - "shortName": "FirewallActivationClient", - "fullName": "google.cloud.networksecurity.v1.FirewallActivationClient" - }, - "method": { - "shortName": "ListProjectFirewallEndpoints", - "fullName": "google.cloud.networksecurity.v1.FirewallActivation.ListProjectFirewallEndpoints", - "service": { - "shortName": "FirewallActivation", - "fullName": "google.cloud.networksecurity.v1.FirewallActivation" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_FirewallActivation_GetFirewallEndpoint_async", - "title": "AddressGroupService getFirewallEndpoint Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single org Endpoint.", - "canonical": true, - "file": "firewall_activation.get_firewall_endpoint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFirewallEndpoint", - "fullName": "google.cloud.networksecurity.v1.FirewallActivation.GetFirewallEndpoint", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1.FirewallEndpoint", - "client": { - "shortName": "FirewallActivationClient", - "fullName": "google.cloud.networksecurity.v1.FirewallActivationClient" - }, - "method": { - "shortName": "GetFirewallEndpoint", - "fullName": "google.cloud.networksecurity.v1.FirewallActivation.GetFirewallEndpoint", - "service": { - "shortName": "FirewallActivation", - "fullName": "google.cloud.networksecurity.v1.FirewallActivation" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_FirewallActivation_GetProjectFirewallEndpoint_async", - "title": "AddressGroupService getProjectFirewallEndpoint Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single project Endpoint.", - "canonical": true, - "file": "firewall_activation.get_project_firewall_endpoint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetProjectFirewallEndpoint", - "fullName": "google.cloud.networksecurity.v1.FirewallActivation.GetProjectFirewallEndpoint", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1.FirewallEndpoint", - "client": { - "shortName": "FirewallActivationClient", - "fullName": "google.cloud.networksecurity.v1.FirewallActivationClient" - }, - "method": { - "shortName": "GetProjectFirewallEndpoint", - "fullName": "google.cloud.networksecurity.v1.FirewallActivation.GetProjectFirewallEndpoint", - "service": { - "shortName": "FirewallActivation", - "fullName": "google.cloud.networksecurity.v1.FirewallActivation" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_FirewallActivation_CreateFirewallEndpoint_async", - "title": "AddressGroupService createFirewallEndpoint Sample", - "origin": "API_DEFINITION", - "description": " Creates a new FirewallEndpoint in a given organization and location.", - "canonical": true, - "file": "firewall_activation.create_firewall_endpoint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateFirewallEndpoint", - "fullName": "google.cloud.networksecurity.v1.FirewallActivation.CreateFirewallEndpoint", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "firewall_endpoint_id", - "type": "TYPE_STRING" - }, - { - "name": "firewall_endpoint", - "type": ".google.cloud.networksecurity.v1.FirewallEndpoint" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FirewallActivationClient", - "fullName": "google.cloud.networksecurity.v1.FirewallActivationClient" - }, - "method": { - "shortName": "CreateFirewallEndpoint", - "fullName": "google.cloud.networksecurity.v1.FirewallActivation.CreateFirewallEndpoint", - "service": { - "shortName": "FirewallActivation", - "fullName": "google.cloud.networksecurity.v1.FirewallActivation" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_FirewallActivation_CreateProjectFirewallEndpoint_async", - "title": "AddressGroupService createProjectFirewallEndpoint Sample", - "origin": "API_DEFINITION", - "description": " Creates a new FirewallEndpoint in a given project and location.", - "canonical": true, - "file": "firewall_activation.create_project_firewall_endpoint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateProjectFirewallEndpoint", - "fullName": "google.cloud.networksecurity.v1.FirewallActivation.CreateProjectFirewallEndpoint", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "firewall_endpoint_id", - "type": "TYPE_STRING" - }, - { - "name": "firewall_endpoint", - "type": ".google.cloud.networksecurity.v1.FirewallEndpoint" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FirewallActivationClient", - "fullName": "google.cloud.networksecurity.v1.FirewallActivationClient" - }, - "method": { - "shortName": "CreateProjectFirewallEndpoint", - "fullName": "google.cloud.networksecurity.v1.FirewallActivation.CreateProjectFirewallEndpoint", - "service": { - "shortName": "FirewallActivation", - "fullName": "google.cloud.networksecurity.v1.FirewallActivation" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_FirewallActivation_DeleteFirewallEndpoint_async", - "title": "AddressGroupService deleteFirewallEndpoint Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single org Endpoint.", - "canonical": true, - "file": "firewall_activation.delete_firewall_endpoint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteFirewallEndpoint", - "fullName": "google.cloud.networksecurity.v1.FirewallActivation.DeleteFirewallEndpoint", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FirewallActivationClient", - "fullName": "google.cloud.networksecurity.v1.FirewallActivationClient" - }, - "method": { - "shortName": "DeleteFirewallEndpoint", - "fullName": "google.cloud.networksecurity.v1.FirewallActivation.DeleteFirewallEndpoint", - "service": { - "shortName": "FirewallActivation", - "fullName": "google.cloud.networksecurity.v1.FirewallActivation" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_FirewallActivation_DeleteProjectFirewallEndpoint_async", - "title": "AddressGroupService deleteProjectFirewallEndpoint Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single project Endpoint.", - "canonical": true, - "file": "firewall_activation.delete_project_firewall_endpoint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteProjectFirewallEndpoint", - "fullName": "google.cloud.networksecurity.v1.FirewallActivation.DeleteProjectFirewallEndpoint", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FirewallActivationClient", - "fullName": "google.cloud.networksecurity.v1.FirewallActivationClient" - }, - "method": { - "shortName": "DeleteProjectFirewallEndpoint", - "fullName": "google.cloud.networksecurity.v1.FirewallActivation.DeleteProjectFirewallEndpoint", - "service": { - "shortName": "FirewallActivation", - "fullName": "google.cloud.networksecurity.v1.FirewallActivation" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_FirewallActivation_UpdateFirewallEndpoint_async", - "title": "AddressGroupService updateFirewallEndpoint Sample", - "origin": "API_DEFINITION", - "description": " Update a single org Endpoint.", - "canonical": true, - "file": "firewall_activation.update_firewall_endpoint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateFirewallEndpoint", - "fullName": "google.cloud.networksecurity.v1.FirewallActivation.UpdateFirewallEndpoint", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "firewall_endpoint", - "type": ".google.cloud.networksecurity.v1.FirewallEndpoint" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FirewallActivationClient", - "fullName": "google.cloud.networksecurity.v1.FirewallActivationClient" - }, - "method": { - "shortName": "UpdateFirewallEndpoint", - "fullName": "google.cloud.networksecurity.v1.FirewallActivation.UpdateFirewallEndpoint", - "service": { - "shortName": "FirewallActivation", - "fullName": "google.cloud.networksecurity.v1.FirewallActivation" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_FirewallActivation_UpdateProjectFirewallEndpoint_async", - "title": "AddressGroupService updateProjectFirewallEndpoint Sample", - "origin": "API_DEFINITION", - "description": " Update a single project Endpoint.", - "canonical": true, - "file": "firewall_activation.update_project_firewall_endpoint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateProjectFirewallEndpoint", - "fullName": "google.cloud.networksecurity.v1.FirewallActivation.UpdateProjectFirewallEndpoint", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "firewall_endpoint", - "type": ".google.cloud.networksecurity.v1.FirewallEndpoint" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FirewallActivationClient", - "fullName": "google.cloud.networksecurity.v1.FirewallActivationClient" - }, - "method": { - "shortName": "UpdateProjectFirewallEndpoint", - "fullName": "google.cloud.networksecurity.v1.FirewallActivation.UpdateProjectFirewallEndpoint", - "service": { - "shortName": "FirewallActivation", - "fullName": "google.cloud.networksecurity.v1.FirewallActivation" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_FirewallActivation_ListFirewallEndpointAssociations_async", - "title": "AddressGroupService listFirewallEndpointAssociations Sample", - "origin": "API_DEFINITION", - "description": " Lists Associations in a given project and location.", - "canonical": true, - "file": "firewall_activation.list_firewall_endpoint_associations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFirewallEndpointAssociations", - "fullName": "google.cloud.networksecurity.v1.FirewallActivation.ListFirewallEndpointAssociations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1.ListFirewallEndpointAssociationsResponse", - "client": { - "shortName": "FirewallActivationClient", - "fullName": "google.cloud.networksecurity.v1.FirewallActivationClient" - }, - "method": { - "shortName": "ListFirewallEndpointAssociations", - "fullName": "google.cloud.networksecurity.v1.FirewallActivation.ListFirewallEndpointAssociations", - "service": { - "shortName": "FirewallActivation", - "fullName": "google.cloud.networksecurity.v1.FirewallActivation" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_FirewallActivation_GetFirewallEndpointAssociation_async", - "title": "AddressGroupService getFirewallEndpointAssociation Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single FirewallEndpointAssociation.", - "canonical": true, - "file": "firewall_activation.get_firewall_endpoint_association.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFirewallEndpointAssociation", - "fullName": "google.cloud.networksecurity.v1.FirewallActivation.GetFirewallEndpointAssociation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1.FirewallEndpointAssociation", - "client": { - "shortName": "FirewallActivationClient", - "fullName": "google.cloud.networksecurity.v1.FirewallActivationClient" - }, - "method": { - "shortName": "GetFirewallEndpointAssociation", - "fullName": "google.cloud.networksecurity.v1.FirewallActivation.GetFirewallEndpointAssociation", - "service": { - "shortName": "FirewallActivation", - "fullName": "google.cloud.networksecurity.v1.FirewallActivation" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_FirewallActivation_CreateFirewallEndpointAssociation_async", - "title": "AddressGroupService createFirewallEndpointAssociation Sample", - "origin": "API_DEFINITION", - "description": " Creates a new FirewallEndpointAssociation in a given project and location.", - "canonical": true, - "file": "firewall_activation.create_firewall_endpoint_association.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateFirewallEndpointAssociation", - "fullName": "google.cloud.networksecurity.v1.FirewallActivation.CreateFirewallEndpointAssociation", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "firewall_endpoint_association_id", - "type": "TYPE_STRING" - }, - { - "name": "firewall_endpoint_association", - "type": ".google.cloud.networksecurity.v1.FirewallEndpointAssociation" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FirewallActivationClient", - "fullName": "google.cloud.networksecurity.v1.FirewallActivationClient" - }, - "method": { - "shortName": "CreateFirewallEndpointAssociation", - "fullName": "google.cloud.networksecurity.v1.FirewallActivation.CreateFirewallEndpointAssociation", - "service": { - "shortName": "FirewallActivation", - "fullName": "google.cloud.networksecurity.v1.FirewallActivation" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_FirewallActivation_DeleteFirewallEndpointAssociation_async", - "title": "AddressGroupService deleteFirewallEndpointAssociation Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single FirewallEndpointAssociation.", - "canonical": true, - "file": "firewall_activation.delete_firewall_endpoint_association.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteFirewallEndpointAssociation", - "fullName": "google.cloud.networksecurity.v1.FirewallActivation.DeleteFirewallEndpointAssociation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FirewallActivationClient", - "fullName": "google.cloud.networksecurity.v1.FirewallActivationClient" - }, - "method": { - "shortName": "DeleteFirewallEndpointAssociation", - "fullName": "google.cloud.networksecurity.v1.FirewallActivation.DeleteFirewallEndpointAssociation", - "service": { - "shortName": "FirewallActivation", - "fullName": "google.cloud.networksecurity.v1.FirewallActivation" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_FirewallActivation_UpdateFirewallEndpointAssociation_async", - "title": "AddressGroupService updateFirewallEndpointAssociation Sample", - "origin": "API_DEFINITION", - "description": " Update a single FirewallEndpointAssociation.", - "canonical": true, - "file": "firewall_activation.update_firewall_endpoint_association.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateFirewallEndpointAssociation", - "fullName": "google.cloud.networksecurity.v1.FirewallActivation.UpdateFirewallEndpointAssociation", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "firewall_endpoint_association", - "type": ".google.cloud.networksecurity.v1.FirewallEndpointAssociation" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FirewallActivationClient", - "fullName": "google.cloud.networksecurity.v1.FirewallActivationClient" - }, - "method": { - "shortName": "UpdateFirewallEndpointAssociation", - "fullName": "google.cloud.networksecurity.v1.FirewallActivation.UpdateFirewallEndpointAssociation", - "service": { - "shortName": "FirewallActivation", - "fullName": "google.cloud.networksecurity.v1.FirewallActivation" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_Intercept_ListInterceptEndpointGroups_async", - "title": "AddressGroupService listInterceptEndpointGroups Sample", - "origin": "API_DEFINITION", - "description": " Lists endpoint groups in a given project and location. See https://google.aip.dev/132.", - "canonical": true, - "file": "intercept.list_intercept_endpoint_groups.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListInterceptEndpointGroups", - "fullName": "google.cloud.networksecurity.v1.Intercept.ListInterceptEndpointGroups", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1.ListInterceptEndpointGroupsResponse", - "client": { - "shortName": "InterceptClient", - "fullName": "google.cloud.networksecurity.v1.InterceptClient" - }, - "method": { - "shortName": "ListInterceptEndpointGroups", - "fullName": "google.cloud.networksecurity.v1.Intercept.ListInterceptEndpointGroups", - "service": { - "shortName": "Intercept", - "fullName": "google.cloud.networksecurity.v1.Intercept" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_Intercept_GetInterceptEndpointGroup_async", - "title": "AddressGroupService getInterceptEndpointGroup Sample", - "origin": "API_DEFINITION", - "description": " Gets a specific endpoint group. See https://google.aip.dev/131.", - "canonical": true, - "file": "intercept.get_intercept_endpoint_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetInterceptEndpointGroup", - "fullName": "google.cloud.networksecurity.v1.Intercept.GetInterceptEndpointGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1.InterceptEndpointGroup", - "client": { - "shortName": "InterceptClient", - "fullName": "google.cloud.networksecurity.v1.InterceptClient" - }, - "method": { - "shortName": "GetInterceptEndpointGroup", - "fullName": "google.cloud.networksecurity.v1.Intercept.GetInterceptEndpointGroup", - "service": { - "shortName": "Intercept", - "fullName": "google.cloud.networksecurity.v1.Intercept" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_Intercept_CreateInterceptEndpointGroup_async", - "title": "AddressGroupService createInterceptEndpointGroup Sample", - "origin": "API_DEFINITION", - "description": " Creates an endpoint group in a given project and location. See https://google.aip.dev/133.", - "canonical": true, - "file": "intercept.create_intercept_endpoint_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateInterceptEndpointGroup", - "fullName": "google.cloud.networksecurity.v1.Intercept.CreateInterceptEndpointGroup", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "intercept_endpoint_group_id", - "type": "TYPE_STRING" - }, - { - "name": "intercept_endpoint_group", - "type": ".google.cloud.networksecurity.v1.InterceptEndpointGroup" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "InterceptClient", - "fullName": "google.cloud.networksecurity.v1.InterceptClient" - }, - "method": { - "shortName": "CreateInterceptEndpointGroup", - "fullName": "google.cloud.networksecurity.v1.Intercept.CreateInterceptEndpointGroup", - "service": { - "shortName": "Intercept", - "fullName": "google.cloud.networksecurity.v1.Intercept" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_Intercept_UpdateInterceptEndpointGroup_async", - "title": "AddressGroupService updateInterceptEndpointGroup Sample", - "origin": "API_DEFINITION", - "description": " Updates an endpoint group. See https://google.aip.dev/134.", - "canonical": true, - "file": "intercept.update_intercept_endpoint_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateInterceptEndpointGroup", - "fullName": "google.cloud.networksecurity.v1.Intercept.UpdateInterceptEndpointGroup", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "intercept_endpoint_group", - "type": ".google.cloud.networksecurity.v1.InterceptEndpointGroup" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "InterceptClient", - "fullName": "google.cloud.networksecurity.v1.InterceptClient" - }, - "method": { - "shortName": "UpdateInterceptEndpointGroup", - "fullName": "google.cloud.networksecurity.v1.Intercept.UpdateInterceptEndpointGroup", - "service": { - "shortName": "Intercept", - "fullName": "google.cloud.networksecurity.v1.Intercept" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_Intercept_DeleteInterceptEndpointGroup_async", - "title": "AddressGroupService deleteInterceptEndpointGroup Sample", - "origin": "API_DEFINITION", - "description": " Deletes an endpoint group. See https://google.aip.dev/135.", - "canonical": true, - "file": "intercept.delete_intercept_endpoint_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteInterceptEndpointGroup", - "fullName": "google.cloud.networksecurity.v1.Intercept.DeleteInterceptEndpointGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "InterceptClient", - "fullName": "google.cloud.networksecurity.v1.InterceptClient" - }, - "method": { - "shortName": "DeleteInterceptEndpointGroup", - "fullName": "google.cloud.networksecurity.v1.Intercept.DeleteInterceptEndpointGroup", - "service": { - "shortName": "Intercept", - "fullName": "google.cloud.networksecurity.v1.Intercept" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_Intercept_ListInterceptEndpointGroupAssociations_async", - "title": "AddressGroupService listInterceptEndpointGroupAssociations Sample", - "origin": "API_DEFINITION", - "description": " Lists associations in a given project and location. See https://google.aip.dev/132.", - "canonical": true, - "file": "intercept.list_intercept_endpoint_group_associations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListInterceptEndpointGroupAssociations", - "fullName": "google.cloud.networksecurity.v1.Intercept.ListInterceptEndpointGroupAssociations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1.ListInterceptEndpointGroupAssociationsResponse", - "client": { - "shortName": "InterceptClient", - "fullName": "google.cloud.networksecurity.v1.InterceptClient" - }, - "method": { - "shortName": "ListInterceptEndpointGroupAssociations", - "fullName": "google.cloud.networksecurity.v1.Intercept.ListInterceptEndpointGroupAssociations", - "service": { - "shortName": "Intercept", - "fullName": "google.cloud.networksecurity.v1.Intercept" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_Intercept_GetInterceptEndpointGroupAssociation_async", - "title": "AddressGroupService getInterceptEndpointGroupAssociation Sample", - "origin": "API_DEFINITION", - "description": " Gets a specific association. See https://google.aip.dev/131.", - "canonical": true, - "file": "intercept.get_intercept_endpoint_group_association.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetInterceptEndpointGroupAssociation", - "fullName": "google.cloud.networksecurity.v1.Intercept.GetInterceptEndpointGroupAssociation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation", - "client": { - "shortName": "InterceptClient", - "fullName": "google.cloud.networksecurity.v1.InterceptClient" - }, - "method": { - "shortName": "GetInterceptEndpointGroupAssociation", - "fullName": "google.cloud.networksecurity.v1.Intercept.GetInterceptEndpointGroupAssociation", - "service": { - "shortName": "Intercept", - "fullName": "google.cloud.networksecurity.v1.Intercept" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_Intercept_CreateInterceptEndpointGroupAssociation_async", - "title": "AddressGroupService createInterceptEndpointGroupAssociation Sample", - "origin": "API_DEFINITION", - "description": " Creates an association in a given project and location. See https://google.aip.dev/133.", - "canonical": true, - "file": "intercept.create_intercept_endpoint_group_association.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateInterceptEndpointGroupAssociation", - "fullName": "google.cloud.networksecurity.v1.Intercept.CreateInterceptEndpointGroupAssociation", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "intercept_endpoint_group_association_id", - "type": "TYPE_STRING" - }, - { - "name": "intercept_endpoint_group_association", - "type": ".google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "InterceptClient", - "fullName": "google.cloud.networksecurity.v1.InterceptClient" - }, - "method": { - "shortName": "CreateInterceptEndpointGroupAssociation", - "fullName": "google.cloud.networksecurity.v1.Intercept.CreateInterceptEndpointGroupAssociation", - "service": { - "shortName": "Intercept", - "fullName": "google.cloud.networksecurity.v1.Intercept" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_Intercept_UpdateInterceptEndpointGroupAssociation_async", - "title": "AddressGroupService updateInterceptEndpointGroupAssociation Sample", - "origin": "API_DEFINITION", - "description": " Updates an association. See https://google.aip.dev/134.", - "canonical": true, - "file": "intercept.update_intercept_endpoint_group_association.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateInterceptEndpointGroupAssociation", - "fullName": "google.cloud.networksecurity.v1.Intercept.UpdateInterceptEndpointGroupAssociation", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "intercept_endpoint_group_association", - "type": ".google.cloud.networksecurity.v1.InterceptEndpointGroupAssociation" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "InterceptClient", - "fullName": "google.cloud.networksecurity.v1.InterceptClient" - }, - "method": { - "shortName": "UpdateInterceptEndpointGroupAssociation", - "fullName": "google.cloud.networksecurity.v1.Intercept.UpdateInterceptEndpointGroupAssociation", - "service": { - "shortName": "Intercept", - "fullName": "google.cloud.networksecurity.v1.Intercept" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_Intercept_DeleteInterceptEndpointGroupAssociation_async", - "title": "AddressGroupService deleteInterceptEndpointGroupAssociation Sample", - "origin": "API_DEFINITION", - "description": " Deletes an association. See https://google.aip.dev/135.", - "canonical": true, - "file": "intercept.delete_intercept_endpoint_group_association.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteInterceptEndpointGroupAssociation", - "fullName": "google.cloud.networksecurity.v1.Intercept.DeleteInterceptEndpointGroupAssociation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "InterceptClient", - "fullName": "google.cloud.networksecurity.v1.InterceptClient" - }, - "method": { - "shortName": "DeleteInterceptEndpointGroupAssociation", - "fullName": "google.cloud.networksecurity.v1.Intercept.DeleteInterceptEndpointGroupAssociation", - "service": { - "shortName": "Intercept", - "fullName": "google.cloud.networksecurity.v1.Intercept" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_Intercept_ListInterceptDeploymentGroups_async", - "title": "AddressGroupService listInterceptDeploymentGroups Sample", - "origin": "API_DEFINITION", - "description": " Lists deployment groups in a given project and location. See https://google.aip.dev/132.", - "canonical": true, - "file": "intercept.list_intercept_deployment_groups.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListInterceptDeploymentGroups", - "fullName": "google.cloud.networksecurity.v1.Intercept.ListInterceptDeploymentGroups", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1.ListInterceptDeploymentGroupsResponse", - "client": { - "shortName": "InterceptClient", - "fullName": "google.cloud.networksecurity.v1.InterceptClient" - }, - "method": { - "shortName": "ListInterceptDeploymentGroups", - "fullName": "google.cloud.networksecurity.v1.Intercept.ListInterceptDeploymentGroups", - "service": { - "shortName": "Intercept", - "fullName": "google.cloud.networksecurity.v1.Intercept" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_Intercept_GetInterceptDeploymentGroup_async", - "title": "AddressGroupService getInterceptDeploymentGroup Sample", - "origin": "API_DEFINITION", - "description": " Gets a specific deployment group. See https://google.aip.dev/131.", - "canonical": true, - "file": "intercept.get_intercept_deployment_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetInterceptDeploymentGroup", - "fullName": "google.cloud.networksecurity.v1.Intercept.GetInterceptDeploymentGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1.InterceptDeploymentGroup", - "client": { - "shortName": "InterceptClient", - "fullName": "google.cloud.networksecurity.v1.InterceptClient" - }, - "method": { - "shortName": "GetInterceptDeploymentGroup", - "fullName": "google.cloud.networksecurity.v1.Intercept.GetInterceptDeploymentGroup", - "service": { - "shortName": "Intercept", - "fullName": "google.cloud.networksecurity.v1.Intercept" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_Intercept_CreateInterceptDeploymentGroup_async", - "title": "AddressGroupService createInterceptDeploymentGroup Sample", - "origin": "API_DEFINITION", - "description": " Creates a deployment group in a given project and location. See https://google.aip.dev/133.", - "canonical": true, - "file": "intercept.create_intercept_deployment_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateInterceptDeploymentGroup", - "fullName": "google.cloud.networksecurity.v1.Intercept.CreateInterceptDeploymentGroup", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "intercept_deployment_group_id", - "type": "TYPE_STRING" - }, - { - "name": "intercept_deployment_group", - "type": ".google.cloud.networksecurity.v1.InterceptDeploymentGroup" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "InterceptClient", - "fullName": "google.cloud.networksecurity.v1.InterceptClient" - }, - "method": { - "shortName": "CreateInterceptDeploymentGroup", - "fullName": "google.cloud.networksecurity.v1.Intercept.CreateInterceptDeploymentGroup", - "service": { - "shortName": "Intercept", - "fullName": "google.cloud.networksecurity.v1.Intercept" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_Intercept_UpdateInterceptDeploymentGroup_async", - "title": "AddressGroupService updateInterceptDeploymentGroup Sample", - "origin": "API_DEFINITION", - "description": " Updates a deployment group. See https://google.aip.dev/134.", - "canonical": true, - "file": "intercept.update_intercept_deployment_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateInterceptDeploymentGroup", - "fullName": "google.cloud.networksecurity.v1.Intercept.UpdateInterceptDeploymentGroup", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "intercept_deployment_group", - "type": ".google.cloud.networksecurity.v1.InterceptDeploymentGroup" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "InterceptClient", - "fullName": "google.cloud.networksecurity.v1.InterceptClient" - }, - "method": { - "shortName": "UpdateInterceptDeploymentGroup", - "fullName": "google.cloud.networksecurity.v1.Intercept.UpdateInterceptDeploymentGroup", - "service": { - "shortName": "Intercept", - "fullName": "google.cloud.networksecurity.v1.Intercept" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_Intercept_DeleteInterceptDeploymentGroup_async", - "title": "AddressGroupService deleteInterceptDeploymentGroup Sample", - "origin": "API_DEFINITION", - "description": " Deletes a deployment group. See https://google.aip.dev/135.", - "canonical": true, - "file": "intercept.delete_intercept_deployment_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteInterceptDeploymentGroup", - "fullName": "google.cloud.networksecurity.v1.Intercept.DeleteInterceptDeploymentGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "InterceptClient", - "fullName": "google.cloud.networksecurity.v1.InterceptClient" - }, - "method": { - "shortName": "DeleteInterceptDeploymentGroup", - "fullName": "google.cloud.networksecurity.v1.Intercept.DeleteInterceptDeploymentGroup", - "service": { - "shortName": "Intercept", - "fullName": "google.cloud.networksecurity.v1.Intercept" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_Intercept_ListInterceptDeployments_async", - "title": "AddressGroupService listInterceptDeployments Sample", - "origin": "API_DEFINITION", - "description": " Lists deployments in a given project and location. See https://google.aip.dev/132.", - "canonical": true, - "file": "intercept.list_intercept_deployments.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListInterceptDeployments", - "fullName": "google.cloud.networksecurity.v1.Intercept.ListInterceptDeployments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1.ListInterceptDeploymentsResponse", - "client": { - "shortName": "InterceptClient", - "fullName": "google.cloud.networksecurity.v1.InterceptClient" - }, - "method": { - "shortName": "ListInterceptDeployments", - "fullName": "google.cloud.networksecurity.v1.Intercept.ListInterceptDeployments", - "service": { - "shortName": "Intercept", - "fullName": "google.cloud.networksecurity.v1.Intercept" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_Intercept_GetInterceptDeployment_async", - "title": "AddressGroupService getInterceptDeployment Sample", - "origin": "API_DEFINITION", - "description": " Gets a specific deployment. See https://google.aip.dev/131.", - "canonical": true, - "file": "intercept.get_intercept_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetInterceptDeployment", - "fullName": "google.cloud.networksecurity.v1.Intercept.GetInterceptDeployment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1.InterceptDeployment", - "client": { - "shortName": "InterceptClient", - "fullName": "google.cloud.networksecurity.v1.InterceptClient" - }, - "method": { - "shortName": "GetInterceptDeployment", - "fullName": "google.cloud.networksecurity.v1.Intercept.GetInterceptDeployment", - "service": { - "shortName": "Intercept", - "fullName": "google.cloud.networksecurity.v1.Intercept" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_Intercept_CreateInterceptDeployment_async", - "title": "AddressGroupService createInterceptDeployment Sample", - "origin": "API_DEFINITION", - "description": " Creates a deployment in a given project and location. See https://google.aip.dev/133.", - "canonical": true, - "file": "intercept.create_intercept_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateInterceptDeployment", - "fullName": "google.cloud.networksecurity.v1.Intercept.CreateInterceptDeployment", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "intercept_deployment_id", - "type": "TYPE_STRING" - }, - { - "name": "intercept_deployment", - "type": ".google.cloud.networksecurity.v1.InterceptDeployment" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "InterceptClient", - "fullName": "google.cloud.networksecurity.v1.InterceptClient" - }, - "method": { - "shortName": "CreateInterceptDeployment", - "fullName": "google.cloud.networksecurity.v1.Intercept.CreateInterceptDeployment", - "service": { - "shortName": "Intercept", - "fullName": "google.cloud.networksecurity.v1.Intercept" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_Intercept_UpdateInterceptDeployment_async", - "title": "AddressGroupService updateInterceptDeployment Sample", - "origin": "API_DEFINITION", - "description": " Updates a deployment. See https://google.aip.dev/134.", - "canonical": true, - "file": "intercept.update_intercept_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateInterceptDeployment", - "fullName": "google.cloud.networksecurity.v1.Intercept.UpdateInterceptDeployment", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "intercept_deployment", - "type": ".google.cloud.networksecurity.v1.InterceptDeployment" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "InterceptClient", - "fullName": "google.cloud.networksecurity.v1.InterceptClient" - }, - "method": { - "shortName": "UpdateInterceptDeployment", - "fullName": "google.cloud.networksecurity.v1.Intercept.UpdateInterceptDeployment", - "service": { - "shortName": "Intercept", - "fullName": "google.cloud.networksecurity.v1.Intercept" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_Intercept_DeleteInterceptDeployment_async", - "title": "AddressGroupService deleteInterceptDeployment Sample", - "origin": "API_DEFINITION", - "description": " Deletes a deployment. See https://google.aip.dev/135.", - "canonical": true, - "file": "intercept.delete_intercept_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteInterceptDeployment", - "fullName": "google.cloud.networksecurity.v1.Intercept.DeleteInterceptDeployment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "InterceptClient", - "fullName": "google.cloud.networksecurity.v1.InterceptClient" - }, - "method": { - "shortName": "DeleteInterceptDeployment", - "fullName": "google.cloud.networksecurity.v1.Intercept.DeleteInterceptDeployment", - "service": { - "shortName": "Intercept", - "fullName": "google.cloud.networksecurity.v1.Intercept" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_Mirroring_ListMirroringEndpointGroups_async", - "title": "AddressGroupService listMirroringEndpointGroups Sample", - "origin": "API_DEFINITION", - "description": " Lists endpoint groups in a given project and location. See https://google.aip.dev/132.", - "canonical": true, - "file": "mirroring.list_mirroring_endpoint_groups.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMirroringEndpointGroups", - "fullName": "google.cloud.networksecurity.v1.Mirroring.ListMirroringEndpointGroups", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1.ListMirroringEndpointGroupsResponse", - "client": { - "shortName": "MirroringClient", - "fullName": "google.cloud.networksecurity.v1.MirroringClient" - }, - "method": { - "shortName": "ListMirroringEndpointGroups", - "fullName": "google.cloud.networksecurity.v1.Mirroring.ListMirroringEndpointGroups", - "service": { - "shortName": "Mirroring", - "fullName": "google.cloud.networksecurity.v1.Mirroring" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_Mirroring_GetMirroringEndpointGroup_async", - "title": "AddressGroupService getMirroringEndpointGroup Sample", - "origin": "API_DEFINITION", - "description": " Gets a specific endpoint group. See https://google.aip.dev/131.", - "canonical": true, - "file": "mirroring.get_mirroring_endpoint_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMirroringEndpointGroup", - "fullName": "google.cloud.networksecurity.v1.Mirroring.GetMirroringEndpointGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1.MirroringEndpointGroup", - "client": { - "shortName": "MirroringClient", - "fullName": "google.cloud.networksecurity.v1.MirroringClient" - }, - "method": { - "shortName": "GetMirroringEndpointGroup", - "fullName": "google.cloud.networksecurity.v1.Mirroring.GetMirroringEndpointGroup", - "service": { - "shortName": "Mirroring", - "fullName": "google.cloud.networksecurity.v1.Mirroring" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_Mirroring_CreateMirroringEndpointGroup_async", - "title": "AddressGroupService createMirroringEndpointGroup Sample", - "origin": "API_DEFINITION", - "description": " Creates an endpoint group in a given project and location. See https://google.aip.dev/133.", - "canonical": true, - "file": "mirroring.create_mirroring_endpoint_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateMirroringEndpointGroup", - "fullName": "google.cloud.networksecurity.v1.Mirroring.CreateMirroringEndpointGroup", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "mirroring_endpoint_group_id", - "type": "TYPE_STRING" - }, - { - "name": "mirroring_endpoint_group", - "type": ".google.cloud.networksecurity.v1.MirroringEndpointGroup" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MirroringClient", - "fullName": "google.cloud.networksecurity.v1.MirroringClient" - }, - "method": { - "shortName": "CreateMirroringEndpointGroup", - "fullName": "google.cloud.networksecurity.v1.Mirroring.CreateMirroringEndpointGroup", - "service": { - "shortName": "Mirroring", - "fullName": "google.cloud.networksecurity.v1.Mirroring" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_Mirroring_UpdateMirroringEndpointGroup_async", - "title": "AddressGroupService updateMirroringEndpointGroup Sample", - "origin": "API_DEFINITION", - "description": " Updates an endpoint group. See https://google.aip.dev/134.", - "canonical": true, - "file": "mirroring.update_mirroring_endpoint_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateMirroringEndpointGroup", - "fullName": "google.cloud.networksecurity.v1.Mirroring.UpdateMirroringEndpointGroup", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "mirroring_endpoint_group", - "type": ".google.cloud.networksecurity.v1.MirroringEndpointGroup" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MirroringClient", - "fullName": "google.cloud.networksecurity.v1.MirroringClient" - }, - "method": { - "shortName": "UpdateMirroringEndpointGroup", - "fullName": "google.cloud.networksecurity.v1.Mirroring.UpdateMirroringEndpointGroup", - "service": { - "shortName": "Mirroring", - "fullName": "google.cloud.networksecurity.v1.Mirroring" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_Mirroring_DeleteMirroringEndpointGroup_async", - "title": "AddressGroupService deleteMirroringEndpointGroup Sample", - "origin": "API_DEFINITION", - "description": " Deletes an endpoint group. See https://google.aip.dev/135.", - "canonical": true, - "file": "mirroring.delete_mirroring_endpoint_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteMirroringEndpointGroup", - "fullName": "google.cloud.networksecurity.v1.Mirroring.DeleteMirroringEndpointGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MirroringClient", - "fullName": "google.cloud.networksecurity.v1.MirroringClient" - }, - "method": { - "shortName": "DeleteMirroringEndpointGroup", - "fullName": "google.cloud.networksecurity.v1.Mirroring.DeleteMirroringEndpointGroup", - "service": { - "shortName": "Mirroring", - "fullName": "google.cloud.networksecurity.v1.Mirroring" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_Mirroring_ListMirroringEndpointGroupAssociations_async", - "title": "AddressGroupService listMirroringEndpointGroupAssociations Sample", - "origin": "API_DEFINITION", - "description": " Lists associations in a given project and location. See https://google.aip.dev/132.", - "canonical": true, - "file": "mirroring.list_mirroring_endpoint_group_associations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMirroringEndpointGroupAssociations", - "fullName": "google.cloud.networksecurity.v1.Mirroring.ListMirroringEndpointGroupAssociations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1.ListMirroringEndpointGroupAssociationsResponse", - "client": { - "shortName": "MirroringClient", - "fullName": "google.cloud.networksecurity.v1.MirroringClient" - }, - "method": { - "shortName": "ListMirroringEndpointGroupAssociations", - "fullName": "google.cloud.networksecurity.v1.Mirroring.ListMirroringEndpointGroupAssociations", - "service": { - "shortName": "Mirroring", - "fullName": "google.cloud.networksecurity.v1.Mirroring" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_Mirroring_GetMirroringEndpointGroupAssociation_async", - "title": "AddressGroupService getMirroringEndpointGroupAssociation Sample", - "origin": "API_DEFINITION", - "description": " Gets a specific association. See https://google.aip.dev/131.", - "canonical": true, - "file": "mirroring.get_mirroring_endpoint_group_association.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMirroringEndpointGroupAssociation", - "fullName": "google.cloud.networksecurity.v1.Mirroring.GetMirroringEndpointGroupAssociation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation", - "client": { - "shortName": "MirroringClient", - "fullName": "google.cloud.networksecurity.v1.MirroringClient" - }, - "method": { - "shortName": "GetMirroringEndpointGroupAssociation", - "fullName": "google.cloud.networksecurity.v1.Mirroring.GetMirroringEndpointGroupAssociation", - "service": { - "shortName": "Mirroring", - "fullName": "google.cloud.networksecurity.v1.Mirroring" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_Mirroring_CreateMirroringEndpointGroupAssociation_async", - "title": "AddressGroupService createMirroringEndpointGroupAssociation Sample", - "origin": "API_DEFINITION", - "description": " Creates an association in a given project and location. See https://google.aip.dev/133.", - "canonical": true, - "file": "mirroring.create_mirroring_endpoint_group_association.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateMirroringEndpointGroupAssociation", - "fullName": "google.cloud.networksecurity.v1.Mirroring.CreateMirroringEndpointGroupAssociation", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "mirroring_endpoint_group_association_id", - "type": "TYPE_STRING" - }, - { - "name": "mirroring_endpoint_group_association", - "type": ".google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MirroringClient", - "fullName": "google.cloud.networksecurity.v1.MirroringClient" - }, - "method": { - "shortName": "CreateMirroringEndpointGroupAssociation", - "fullName": "google.cloud.networksecurity.v1.Mirroring.CreateMirroringEndpointGroupAssociation", - "service": { - "shortName": "Mirroring", - "fullName": "google.cloud.networksecurity.v1.Mirroring" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_Mirroring_UpdateMirroringEndpointGroupAssociation_async", - "title": "AddressGroupService updateMirroringEndpointGroupAssociation Sample", - "origin": "API_DEFINITION", - "description": " Updates an association. See https://google.aip.dev/134.", - "canonical": true, - "file": "mirroring.update_mirroring_endpoint_group_association.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateMirroringEndpointGroupAssociation", - "fullName": "google.cloud.networksecurity.v1.Mirroring.UpdateMirroringEndpointGroupAssociation", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "mirroring_endpoint_group_association", - "type": ".google.cloud.networksecurity.v1.MirroringEndpointGroupAssociation" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MirroringClient", - "fullName": "google.cloud.networksecurity.v1.MirroringClient" - }, - "method": { - "shortName": "UpdateMirroringEndpointGroupAssociation", - "fullName": "google.cloud.networksecurity.v1.Mirroring.UpdateMirroringEndpointGroupAssociation", - "service": { - "shortName": "Mirroring", - "fullName": "google.cloud.networksecurity.v1.Mirroring" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_Mirroring_DeleteMirroringEndpointGroupAssociation_async", - "title": "AddressGroupService deleteMirroringEndpointGroupAssociation Sample", - "origin": "API_DEFINITION", - "description": " Deletes an association. See https://google.aip.dev/135.", - "canonical": true, - "file": "mirroring.delete_mirroring_endpoint_group_association.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteMirroringEndpointGroupAssociation", - "fullName": "google.cloud.networksecurity.v1.Mirroring.DeleteMirroringEndpointGroupAssociation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MirroringClient", - "fullName": "google.cloud.networksecurity.v1.MirroringClient" - }, - "method": { - "shortName": "DeleteMirroringEndpointGroupAssociation", - "fullName": "google.cloud.networksecurity.v1.Mirroring.DeleteMirroringEndpointGroupAssociation", - "service": { - "shortName": "Mirroring", - "fullName": "google.cloud.networksecurity.v1.Mirroring" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_Mirroring_ListMirroringDeploymentGroups_async", - "title": "AddressGroupService listMirroringDeploymentGroups Sample", - "origin": "API_DEFINITION", - "description": " Lists deployment groups in a given project and location. See https://google.aip.dev/132.", - "canonical": true, - "file": "mirroring.list_mirroring_deployment_groups.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMirroringDeploymentGroups", - "fullName": "google.cloud.networksecurity.v1.Mirroring.ListMirroringDeploymentGroups", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1.ListMirroringDeploymentGroupsResponse", - "client": { - "shortName": "MirroringClient", - "fullName": "google.cloud.networksecurity.v1.MirroringClient" - }, - "method": { - "shortName": "ListMirroringDeploymentGroups", - "fullName": "google.cloud.networksecurity.v1.Mirroring.ListMirroringDeploymentGroups", - "service": { - "shortName": "Mirroring", - "fullName": "google.cloud.networksecurity.v1.Mirroring" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_Mirroring_GetMirroringDeploymentGroup_async", - "title": "AddressGroupService getMirroringDeploymentGroup Sample", - "origin": "API_DEFINITION", - "description": " Gets a specific deployment group. See https://google.aip.dev/131.", - "canonical": true, - "file": "mirroring.get_mirroring_deployment_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMirroringDeploymentGroup", - "fullName": "google.cloud.networksecurity.v1.Mirroring.GetMirroringDeploymentGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1.MirroringDeploymentGroup", - "client": { - "shortName": "MirroringClient", - "fullName": "google.cloud.networksecurity.v1.MirroringClient" - }, - "method": { - "shortName": "GetMirroringDeploymentGroup", - "fullName": "google.cloud.networksecurity.v1.Mirroring.GetMirroringDeploymentGroup", - "service": { - "shortName": "Mirroring", - "fullName": "google.cloud.networksecurity.v1.Mirroring" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_Mirroring_CreateMirroringDeploymentGroup_async", - "title": "AddressGroupService createMirroringDeploymentGroup Sample", - "origin": "API_DEFINITION", - "description": " Creates a deployment group in a given project and location. See https://google.aip.dev/133.", - "canonical": true, - "file": "mirroring.create_mirroring_deployment_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateMirroringDeploymentGroup", - "fullName": "google.cloud.networksecurity.v1.Mirroring.CreateMirroringDeploymentGroup", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "mirroring_deployment_group_id", - "type": "TYPE_STRING" - }, - { - "name": "mirroring_deployment_group", - "type": ".google.cloud.networksecurity.v1.MirroringDeploymentGroup" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MirroringClient", - "fullName": "google.cloud.networksecurity.v1.MirroringClient" - }, - "method": { - "shortName": "CreateMirroringDeploymentGroup", - "fullName": "google.cloud.networksecurity.v1.Mirroring.CreateMirroringDeploymentGroup", - "service": { - "shortName": "Mirroring", - "fullName": "google.cloud.networksecurity.v1.Mirroring" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_Mirroring_UpdateMirroringDeploymentGroup_async", - "title": "AddressGroupService updateMirroringDeploymentGroup Sample", - "origin": "API_DEFINITION", - "description": " Updates a deployment group. See https://google.aip.dev/134.", - "canonical": true, - "file": "mirroring.update_mirroring_deployment_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateMirroringDeploymentGroup", - "fullName": "google.cloud.networksecurity.v1.Mirroring.UpdateMirroringDeploymentGroup", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "mirroring_deployment_group", - "type": ".google.cloud.networksecurity.v1.MirroringDeploymentGroup" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MirroringClient", - "fullName": "google.cloud.networksecurity.v1.MirroringClient" - }, - "method": { - "shortName": "UpdateMirroringDeploymentGroup", - "fullName": "google.cloud.networksecurity.v1.Mirroring.UpdateMirroringDeploymentGroup", - "service": { - "shortName": "Mirroring", - "fullName": "google.cloud.networksecurity.v1.Mirroring" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_Mirroring_DeleteMirroringDeploymentGroup_async", - "title": "AddressGroupService deleteMirroringDeploymentGroup Sample", - "origin": "API_DEFINITION", - "description": " Deletes a deployment group. See https://google.aip.dev/135.", - "canonical": true, - "file": "mirroring.delete_mirroring_deployment_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteMirroringDeploymentGroup", - "fullName": "google.cloud.networksecurity.v1.Mirroring.DeleteMirroringDeploymentGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MirroringClient", - "fullName": "google.cloud.networksecurity.v1.MirroringClient" - }, - "method": { - "shortName": "DeleteMirroringDeploymentGroup", - "fullName": "google.cloud.networksecurity.v1.Mirroring.DeleteMirroringDeploymentGroup", - "service": { - "shortName": "Mirroring", - "fullName": "google.cloud.networksecurity.v1.Mirroring" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_Mirroring_ListMirroringDeployments_async", - "title": "AddressGroupService listMirroringDeployments Sample", - "origin": "API_DEFINITION", - "description": " Lists deployments in a given project and location. See https://google.aip.dev/132.", - "canonical": true, - "file": "mirroring.list_mirroring_deployments.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMirroringDeployments", - "fullName": "google.cloud.networksecurity.v1.Mirroring.ListMirroringDeployments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1.ListMirroringDeploymentsResponse", - "client": { - "shortName": "MirroringClient", - "fullName": "google.cloud.networksecurity.v1.MirroringClient" - }, - "method": { - "shortName": "ListMirroringDeployments", - "fullName": "google.cloud.networksecurity.v1.Mirroring.ListMirroringDeployments", - "service": { - "shortName": "Mirroring", - "fullName": "google.cloud.networksecurity.v1.Mirroring" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_Mirroring_GetMirroringDeployment_async", - "title": "AddressGroupService getMirroringDeployment Sample", - "origin": "API_DEFINITION", - "description": " Gets a specific deployment. See https://google.aip.dev/131.", - "canonical": true, - "file": "mirroring.get_mirroring_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMirroringDeployment", - "fullName": "google.cloud.networksecurity.v1.Mirroring.GetMirroringDeployment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1.MirroringDeployment", - "client": { - "shortName": "MirroringClient", - "fullName": "google.cloud.networksecurity.v1.MirroringClient" - }, - "method": { - "shortName": "GetMirroringDeployment", - "fullName": "google.cloud.networksecurity.v1.Mirroring.GetMirroringDeployment", - "service": { - "shortName": "Mirroring", - "fullName": "google.cloud.networksecurity.v1.Mirroring" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_Mirroring_CreateMirroringDeployment_async", - "title": "AddressGroupService createMirroringDeployment Sample", - "origin": "API_DEFINITION", - "description": " Creates a deployment in a given project and location. See https://google.aip.dev/133.", - "canonical": true, - "file": "mirroring.create_mirroring_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateMirroringDeployment", - "fullName": "google.cloud.networksecurity.v1.Mirroring.CreateMirroringDeployment", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "mirroring_deployment_id", - "type": "TYPE_STRING" - }, - { - "name": "mirroring_deployment", - "type": ".google.cloud.networksecurity.v1.MirroringDeployment" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MirroringClient", - "fullName": "google.cloud.networksecurity.v1.MirroringClient" - }, - "method": { - "shortName": "CreateMirroringDeployment", - "fullName": "google.cloud.networksecurity.v1.Mirroring.CreateMirroringDeployment", - "service": { - "shortName": "Mirroring", - "fullName": "google.cloud.networksecurity.v1.Mirroring" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_Mirroring_UpdateMirroringDeployment_async", - "title": "AddressGroupService updateMirroringDeployment Sample", - "origin": "API_DEFINITION", - "description": " Updates a deployment. See https://google.aip.dev/134.", - "canonical": true, - "file": "mirroring.update_mirroring_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateMirroringDeployment", - "fullName": "google.cloud.networksecurity.v1.Mirroring.UpdateMirroringDeployment", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "mirroring_deployment", - "type": ".google.cloud.networksecurity.v1.MirroringDeployment" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MirroringClient", - "fullName": "google.cloud.networksecurity.v1.MirroringClient" - }, - "method": { - "shortName": "UpdateMirroringDeployment", - "fullName": "google.cloud.networksecurity.v1.Mirroring.UpdateMirroringDeployment", - "service": { - "shortName": "Mirroring", - "fullName": "google.cloud.networksecurity.v1.Mirroring" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_Mirroring_DeleteMirroringDeployment_async", - "title": "AddressGroupService deleteMirroringDeployment Sample", - "origin": "API_DEFINITION", - "description": " Deletes a deployment. See https://google.aip.dev/135.", - "canonical": true, - "file": "mirroring.delete_mirroring_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteMirroringDeployment", - "fullName": "google.cloud.networksecurity.v1.Mirroring.DeleteMirroringDeployment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MirroringClient", - "fullName": "google.cloud.networksecurity.v1.MirroringClient" - }, - "method": { - "shortName": "DeleteMirroringDeployment", - "fullName": "google.cloud.networksecurity.v1.Mirroring.DeleteMirroringDeployment", - "service": { - "shortName": "Mirroring", - "fullName": "google.cloud.networksecurity.v1.Mirroring" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_NetworkSecurity_ListAuthorizationPolicies_async", - "title": "AddressGroupService listAuthorizationPolicies Sample", - "origin": "API_DEFINITION", - "description": " Lists AuthorizationPolicies in a given project and location.", - "canonical": true, - "file": "network_security.list_authorization_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAuthorizationPolicies", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.ListAuthorizationPolicies", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurityClient" - }, - "method": { - "shortName": "ListAuthorizationPolicies", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.ListAuthorizationPolicies", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_NetworkSecurity_GetAuthorizationPolicy_async", - "title": "AddressGroupService getAuthorizationPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single AuthorizationPolicy.", - "canonical": true, - "file": "network_security.get_authorization_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAuthorizationPolicy", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.GetAuthorizationPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1.AuthorizationPolicy", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurityClient" - }, - "method": { - "shortName": "GetAuthorizationPolicy", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.GetAuthorizationPolicy", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_NetworkSecurity_CreateAuthorizationPolicy_async", - "title": "AddressGroupService createAuthorizationPolicy Sample", - "origin": "API_DEFINITION", - "description": " Creates a new AuthorizationPolicy in a given project and location.", - "canonical": true, - "file": "network_security.create_authorization_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAuthorizationPolicy", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.CreateAuthorizationPolicy", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "authorization_policy_id", - "type": "TYPE_STRING" - }, - { - "name": "authorization_policy", - "type": ".google.cloud.networksecurity.v1.AuthorizationPolicy" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurityClient" - }, - "method": { - "shortName": "CreateAuthorizationPolicy", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.CreateAuthorizationPolicy", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_NetworkSecurity_UpdateAuthorizationPolicy_async", - "title": "AddressGroupService updateAuthorizationPolicy Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single AuthorizationPolicy.", - "canonical": true, - "file": "network_security.update_authorization_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAuthorizationPolicy", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.UpdateAuthorizationPolicy", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "authorization_policy", - "type": ".google.cloud.networksecurity.v1.AuthorizationPolicy" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurityClient" - }, - "method": { - "shortName": "UpdateAuthorizationPolicy", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.UpdateAuthorizationPolicy", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_NetworkSecurity_DeleteAuthorizationPolicy_async", - "title": "AddressGroupService deleteAuthorizationPolicy Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single AuthorizationPolicy.", - "canonical": true, - "file": "network_security.delete_authorization_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAuthorizationPolicy", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.DeleteAuthorizationPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurityClient" - }, - "method": { - "shortName": "DeleteAuthorizationPolicy", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.DeleteAuthorizationPolicy", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_NetworkSecurity_ListBackendAuthenticationConfigs_async", - "title": "AddressGroupService listBackendAuthenticationConfigs Sample", - "origin": "API_DEFINITION", - "description": " Lists BackendAuthenticationConfigs in a given project and location.", - "canonical": true, - "file": "network_security.list_backend_authentication_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBackendAuthenticationConfigs", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.ListBackendAuthenticationConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1.ListBackendAuthenticationConfigsResponse", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurityClient" - }, - "method": { - "shortName": "ListBackendAuthenticationConfigs", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.ListBackendAuthenticationConfigs", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_NetworkSecurity_GetBackendAuthenticationConfig_async", - "title": "AddressGroupService getBackendAuthenticationConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single BackendAuthenticationConfig to BackendAuthenticationConfig.", - "canonical": true, - "file": "network_security.get_backend_authentication_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBackendAuthenticationConfig", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.GetBackendAuthenticationConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1.BackendAuthenticationConfig", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurityClient" - }, - "method": { - "shortName": "GetBackendAuthenticationConfig", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.GetBackendAuthenticationConfig", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_NetworkSecurity_CreateBackendAuthenticationConfig_async", - "title": "AddressGroupService createBackendAuthenticationConfig Sample", - "origin": "API_DEFINITION", - "description": " Creates a new BackendAuthenticationConfig in a given project and location.", - "canonical": true, - "file": "network_security.create_backend_authentication_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateBackendAuthenticationConfig", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.CreateBackendAuthenticationConfig", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "backend_authentication_config_id", - "type": "TYPE_STRING" - }, - { - "name": "backend_authentication_config", - "type": ".google.cloud.networksecurity.v1.BackendAuthenticationConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurityClient" - }, - "method": { - "shortName": "CreateBackendAuthenticationConfig", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.CreateBackendAuthenticationConfig", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_NetworkSecurity_UpdateBackendAuthenticationConfig_async", - "title": "AddressGroupService updateBackendAuthenticationConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single BackendAuthenticationConfig to BackendAuthenticationConfig.", - "canonical": true, - "file": "network_security.update_backend_authentication_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateBackendAuthenticationConfig", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.UpdateBackendAuthenticationConfig", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "backend_authentication_config", - "type": ".google.cloud.networksecurity.v1.BackendAuthenticationConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurityClient" - }, - "method": { - "shortName": "UpdateBackendAuthenticationConfig", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.UpdateBackendAuthenticationConfig", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_NetworkSecurity_DeleteBackendAuthenticationConfig_async", - "title": "AddressGroupService deleteBackendAuthenticationConfig Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single BackendAuthenticationConfig to BackendAuthenticationConfig.", - "canonical": true, - "file": "network_security.delete_backend_authentication_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteBackendAuthenticationConfig", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.DeleteBackendAuthenticationConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurityClient" - }, - "method": { - "shortName": "DeleteBackendAuthenticationConfig", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.DeleteBackendAuthenticationConfig", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_NetworkSecurity_ListServerTlsPolicies_async", - "title": "AddressGroupService listServerTlsPolicies Sample", - "origin": "API_DEFINITION", - "description": " Lists ServerTlsPolicies in a given project and location.", - "canonical": true, - "file": "network_security.list_server_tls_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListServerTlsPolicies", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.ListServerTlsPolicies", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.networksecurity.v1.ListServerTlsPoliciesResponse", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurityClient" - }, - "method": { - "shortName": "ListServerTlsPolicies", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.ListServerTlsPolicies", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_NetworkSecurity_GetServerTlsPolicy_async", - "title": "AddressGroupService getServerTlsPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single ServerTlsPolicy.", - "canonical": true, - "file": "network_security.get_server_tls_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetServerTlsPolicy", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.GetServerTlsPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1.ServerTlsPolicy", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurityClient" - }, - "method": { - "shortName": "GetServerTlsPolicy", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.GetServerTlsPolicy", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_NetworkSecurity_CreateServerTlsPolicy_async", - "title": "AddressGroupService createServerTlsPolicy Sample", - "origin": "API_DEFINITION", - "description": " Creates a new ServerTlsPolicy in a given project and location.", - "canonical": true, - "file": "network_security.create_server_tls_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateServerTlsPolicy", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.CreateServerTlsPolicy", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "server_tls_policy_id", - "type": "TYPE_STRING" - }, - { - "name": "server_tls_policy", - "type": ".google.cloud.networksecurity.v1.ServerTlsPolicy" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurityClient" - }, - "method": { - "shortName": "CreateServerTlsPolicy", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.CreateServerTlsPolicy", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_NetworkSecurity_UpdateServerTlsPolicy_async", - "title": "AddressGroupService updateServerTlsPolicy Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single ServerTlsPolicy.", - "canonical": true, - "file": "network_security.update_server_tls_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateServerTlsPolicy", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.UpdateServerTlsPolicy", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "server_tls_policy", - "type": ".google.cloud.networksecurity.v1.ServerTlsPolicy" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurityClient" - }, - "method": { - "shortName": "UpdateServerTlsPolicy", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.UpdateServerTlsPolicy", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_NetworkSecurity_DeleteServerTlsPolicy_async", - "title": "AddressGroupService deleteServerTlsPolicy Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single ServerTlsPolicy.", - "canonical": true, - "file": "network_security.delete_server_tls_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteServerTlsPolicy", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.DeleteServerTlsPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurityClient" - }, - "method": { - "shortName": "DeleteServerTlsPolicy", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.DeleteServerTlsPolicy", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_NetworkSecurity_ListClientTlsPolicies_async", - "title": "AddressGroupService listClientTlsPolicies Sample", - "origin": "API_DEFINITION", - "description": " Lists ClientTlsPolicies in a given project and location.", - "canonical": true, - "file": "network_security.list_client_tls_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListClientTlsPolicies", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.ListClientTlsPolicies", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1.ListClientTlsPoliciesResponse", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurityClient" - }, - "method": { - "shortName": "ListClientTlsPolicies", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.ListClientTlsPolicies", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_NetworkSecurity_GetClientTlsPolicy_async", - "title": "AddressGroupService getClientTlsPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single ClientTlsPolicy.", - "canonical": true, - "file": "network_security.get_client_tls_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetClientTlsPolicy", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.GetClientTlsPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1.ClientTlsPolicy", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurityClient" - }, - "method": { - "shortName": "GetClientTlsPolicy", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.GetClientTlsPolicy", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_NetworkSecurity_CreateClientTlsPolicy_async", - "title": "AddressGroupService createClientTlsPolicy Sample", - "origin": "API_DEFINITION", - "description": " Creates a new ClientTlsPolicy in a given project and location.", - "canonical": true, - "file": "network_security.create_client_tls_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateClientTlsPolicy", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.CreateClientTlsPolicy", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "client_tls_policy_id", - "type": "TYPE_STRING" - }, - { - "name": "client_tls_policy", - "type": ".google.cloud.networksecurity.v1.ClientTlsPolicy" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurityClient" - }, - "method": { - "shortName": "CreateClientTlsPolicy", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.CreateClientTlsPolicy", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_NetworkSecurity_UpdateClientTlsPolicy_async", - "title": "AddressGroupService updateClientTlsPolicy Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single ClientTlsPolicy.", - "canonical": true, - "file": "network_security.update_client_tls_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateClientTlsPolicy", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.UpdateClientTlsPolicy", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "client_tls_policy", - "type": ".google.cloud.networksecurity.v1.ClientTlsPolicy" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurityClient" - }, - "method": { - "shortName": "UpdateClientTlsPolicy", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.UpdateClientTlsPolicy", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_NetworkSecurity_DeleteClientTlsPolicy_async", - "title": "AddressGroupService deleteClientTlsPolicy Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single ClientTlsPolicy.", - "canonical": true, - "file": "network_security.delete_client_tls_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteClientTlsPolicy", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.DeleteClientTlsPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurityClient" - }, - "method": { - "shortName": "DeleteClientTlsPolicy", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.DeleteClientTlsPolicy", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_NetworkSecurity_ListGatewaySecurityPolicies_async", - "title": "AddressGroupService listGatewaySecurityPolicies Sample", - "origin": "API_DEFINITION", - "description": " Lists GatewaySecurityPolicies in a given project and location.", - "canonical": true, - "file": "network_security.list_gateway_security_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListGatewaySecurityPolicies", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.ListGatewaySecurityPolicies", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1.ListGatewaySecurityPoliciesResponse", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurityClient" - }, - "method": { - "shortName": "ListGatewaySecurityPolicies", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.ListGatewaySecurityPolicies", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_NetworkSecurity_GetGatewaySecurityPolicy_async", - "title": "AddressGroupService getGatewaySecurityPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single GatewaySecurityPolicy.", - "canonical": true, - "file": "network_security.get_gateway_security_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetGatewaySecurityPolicy", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.GetGatewaySecurityPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1.GatewaySecurityPolicy", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurityClient" - }, - "method": { - "shortName": "GetGatewaySecurityPolicy", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.GetGatewaySecurityPolicy", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_NetworkSecurity_CreateGatewaySecurityPolicy_async", - "title": "AddressGroupService createGatewaySecurityPolicy Sample", - "origin": "API_DEFINITION", - "description": " Creates a new GatewaySecurityPolicy in a given project and location.", - "canonical": true, - "file": "network_security.create_gateway_security_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateGatewaySecurityPolicy", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.CreateGatewaySecurityPolicy", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "gateway_security_policy_id", - "type": "TYPE_STRING" - }, - { - "name": "gateway_security_policy", - "type": ".google.cloud.networksecurity.v1.GatewaySecurityPolicy" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurityClient" - }, - "method": { - "shortName": "CreateGatewaySecurityPolicy", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.CreateGatewaySecurityPolicy", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_NetworkSecurity_UpdateGatewaySecurityPolicy_async", - "title": "AddressGroupService updateGatewaySecurityPolicy Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single GatewaySecurityPolicy.", - "canonical": true, - "file": "network_security.update_gateway_security_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateGatewaySecurityPolicy", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.UpdateGatewaySecurityPolicy", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "gateway_security_policy", - "type": ".google.cloud.networksecurity.v1.GatewaySecurityPolicy" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurityClient" - }, - "method": { - "shortName": "UpdateGatewaySecurityPolicy", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.UpdateGatewaySecurityPolicy", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_NetworkSecurity_DeleteGatewaySecurityPolicy_async", - "title": "AddressGroupService deleteGatewaySecurityPolicy Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single GatewaySecurityPolicy.", - "canonical": true, - "file": "network_security.delete_gateway_security_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteGatewaySecurityPolicy", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.DeleteGatewaySecurityPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurityClient" - }, - "method": { - "shortName": "DeleteGatewaySecurityPolicy", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.DeleteGatewaySecurityPolicy", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_NetworkSecurity_ListGatewaySecurityPolicyRules_async", - "title": "AddressGroupService listGatewaySecurityPolicyRules Sample", - "origin": "API_DEFINITION", - "description": " Lists GatewaySecurityPolicyRules in a given project and location.", - "canonical": true, - "file": "network_security.list_gateway_security_policy_rules.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListGatewaySecurityPolicyRules", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.ListGatewaySecurityPolicyRules", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1.ListGatewaySecurityPolicyRulesResponse", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurityClient" - }, - "method": { - "shortName": "ListGatewaySecurityPolicyRules", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.ListGatewaySecurityPolicyRules", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_NetworkSecurity_GetGatewaySecurityPolicyRule_async", - "title": "AddressGroupService getGatewaySecurityPolicyRule Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single GatewaySecurityPolicyRule.", - "canonical": true, - "file": "network_security.get_gateway_security_policy_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetGatewaySecurityPolicyRule", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.GetGatewaySecurityPolicyRule", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1.GatewaySecurityPolicyRule", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurityClient" - }, - "method": { - "shortName": "GetGatewaySecurityPolicyRule", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.GetGatewaySecurityPolicyRule", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_NetworkSecurity_CreateGatewaySecurityPolicyRule_async", - "title": "AddressGroupService createGatewaySecurityPolicyRule Sample", - "origin": "API_DEFINITION", - "description": " Creates a new GatewaySecurityPolicy in a given project and location.", - "canonical": true, - "file": "network_security.create_gateway_security_policy_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateGatewaySecurityPolicyRule", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.CreateGatewaySecurityPolicyRule", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "gateway_security_policy_rule", - "type": ".google.cloud.networksecurity.v1.GatewaySecurityPolicyRule" - }, - { - "name": "gateway_security_policy_rule_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurityClient" - }, - "method": { - "shortName": "CreateGatewaySecurityPolicyRule", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.CreateGatewaySecurityPolicyRule", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_NetworkSecurity_UpdateGatewaySecurityPolicyRule_async", - "title": "AddressGroupService updateGatewaySecurityPolicyRule Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single GatewaySecurityPolicyRule.", - "canonical": true, - "file": "network_security.update_gateway_security_policy_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateGatewaySecurityPolicyRule", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.UpdateGatewaySecurityPolicyRule", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "gateway_security_policy_rule", - "type": ".google.cloud.networksecurity.v1.GatewaySecurityPolicyRule" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurityClient" - }, - "method": { - "shortName": "UpdateGatewaySecurityPolicyRule", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.UpdateGatewaySecurityPolicyRule", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_NetworkSecurity_DeleteGatewaySecurityPolicyRule_async", - "title": "AddressGroupService deleteGatewaySecurityPolicyRule Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single GatewaySecurityPolicyRule.", - "canonical": true, - "file": "network_security.delete_gateway_security_policy_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteGatewaySecurityPolicyRule", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.DeleteGatewaySecurityPolicyRule", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurityClient" - }, - "method": { - "shortName": "DeleteGatewaySecurityPolicyRule", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.DeleteGatewaySecurityPolicyRule", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_NetworkSecurity_ListUrlLists_async", - "title": "AddressGroupService listUrlLists Sample", - "origin": "API_DEFINITION", - "description": " Lists UrlLists in a given project and location.", - "canonical": true, - "file": "network_security.list_url_lists.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListUrlLists", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.ListUrlLists", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1.ListUrlListsResponse", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurityClient" - }, - "method": { - "shortName": "ListUrlLists", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.ListUrlLists", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_NetworkSecurity_GetUrlList_async", - "title": "AddressGroupService getUrlList Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single UrlList.", - "canonical": true, - "file": "network_security.get_url_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetUrlList", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.GetUrlList", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1.UrlList", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurityClient" - }, - "method": { - "shortName": "GetUrlList", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.GetUrlList", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_NetworkSecurity_CreateUrlList_async", - "title": "AddressGroupService createUrlList Sample", - "origin": "API_DEFINITION", - "description": " Creates a new UrlList in a given project and location.", - "canonical": true, - "file": "network_security.create_url_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateUrlList", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.CreateUrlList", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "url_list_id", - "type": "TYPE_STRING" - }, - { - "name": "url_list", - "type": ".google.cloud.networksecurity.v1.UrlList" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurityClient" - }, - "method": { - "shortName": "CreateUrlList", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.CreateUrlList", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_NetworkSecurity_UpdateUrlList_async", - "title": "AddressGroupService updateUrlList Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single UrlList.", - "canonical": true, - "file": "network_security.update_url_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateUrlList", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.UpdateUrlList", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "url_list", - "type": ".google.cloud.networksecurity.v1.UrlList" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurityClient" - }, - "method": { - "shortName": "UpdateUrlList", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.UpdateUrlList", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_NetworkSecurity_DeleteUrlList_async", - "title": "AddressGroupService deleteUrlList Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single UrlList.", - "canonical": true, - "file": "network_security.delete_url_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteUrlList", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.DeleteUrlList", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurityClient" - }, - "method": { - "shortName": "DeleteUrlList", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.DeleteUrlList", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_NetworkSecurity_ListTlsInspectionPolicies_async", - "title": "AddressGroupService listTlsInspectionPolicies Sample", - "origin": "API_DEFINITION", - "description": " Lists TlsInspectionPolicies in a given project and location.", - "canonical": true, - "file": "network_security.list_tls_inspection_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTlsInspectionPolicies", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.ListTlsInspectionPolicies", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1.ListTlsInspectionPoliciesResponse", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurityClient" - }, - "method": { - "shortName": "ListTlsInspectionPolicies", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.ListTlsInspectionPolicies", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_NetworkSecurity_GetTlsInspectionPolicy_async", - "title": "AddressGroupService getTlsInspectionPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single TlsInspectionPolicy.", - "canonical": true, - "file": "network_security.get_tls_inspection_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTlsInspectionPolicy", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.GetTlsInspectionPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1.TlsInspectionPolicy", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurityClient" - }, - "method": { - "shortName": "GetTlsInspectionPolicy", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.GetTlsInspectionPolicy", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_NetworkSecurity_CreateTlsInspectionPolicy_async", - "title": "AddressGroupService createTlsInspectionPolicy Sample", - "origin": "API_DEFINITION", - "description": " Creates a new TlsInspectionPolicy in a given project and location.", - "canonical": true, - "file": "network_security.create_tls_inspection_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTlsInspectionPolicy", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.CreateTlsInspectionPolicy", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "tls_inspection_policy_id", - "type": "TYPE_STRING" - }, - { - "name": "tls_inspection_policy", - "type": ".google.cloud.networksecurity.v1.TlsInspectionPolicy" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurityClient" - }, - "method": { - "shortName": "CreateTlsInspectionPolicy", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.CreateTlsInspectionPolicy", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_NetworkSecurity_UpdateTlsInspectionPolicy_async", - "title": "AddressGroupService updateTlsInspectionPolicy Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single TlsInspectionPolicy.", - "canonical": true, - "file": "network_security.update_tls_inspection_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTlsInspectionPolicy", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.UpdateTlsInspectionPolicy", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "tls_inspection_policy", - "type": ".google.cloud.networksecurity.v1.TlsInspectionPolicy" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurityClient" - }, - "method": { - "shortName": "UpdateTlsInspectionPolicy", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.UpdateTlsInspectionPolicy", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_NetworkSecurity_DeleteTlsInspectionPolicy_async", - "title": "AddressGroupService deleteTlsInspectionPolicy Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single TlsInspectionPolicy.", - "canonical": true, - "file": "network_security.delete_tls_inspection_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTlsInspectionPolicy", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.DeleteTlsInspectionPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurityClient" - }, - "method": { - "shortName": "DeleteTlsInspectionPolicy", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.DeleteTlsInspectionPolicy", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_NetworkSecurity_ListAuthzPolicies_async", - "title": "AddressGroupService listAuthzPolicies Sample", - "origin": "API_DEFINITION", - "description": " Lists AuthzPolicies in a given project and location.", - "canonical": true, - "file": "network_security.list_authz_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAuthzPolicies", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.ListAuthzPolicies", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1.ListAuthzPoliciesResponse", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurityClient" - }, - "method": { - "shortName": "ListAuthzPolicies", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.ListAuthzPolicies", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_NetworkSecurity_GetAuthzPolicy_async", - "title": "AddressGroupService getAuthzPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single AuthzPolicy.", - "canonical": true, - "file": "network_security.get_authz_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAuthzPolicy", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.GetAuthzPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1.AuthzPolicy", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurityClient" - }, - "method": { - "shortName": "GetAuthzPolicy", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.GetAuthzPolicy", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_NetworkSecurity_CreateAuthzPolicy_async", - "title": "AddressGroupService createAuthzPolicy Sample", - "origin": "API_DEFINITION", - "description": " Creates a new AuthzPolicy in a given project and location.", - "canonical": true, - "file": "network_security.create_authz_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAuthzPolicy", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.CreateAuthzPolicy", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "authz_policy_id", - "type": "TYPE_STRING" - }, - { - "name": "authz_policy", - "type": ".google.cloud.networksecurity.v1.AuthzPolicy" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurityClient" - }, - "method": { - "shortName": "CreateAuthzPolicy", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.CreateAuthzPolicy", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_NetworkSecurity_UpdateAuthzPolicy_async", - "title": "AddressGroupService updateAuthzPolicy Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single AuthzPolicy.", - "canonical": true, - "file": "network_security.update_authz_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAuthzPolicy", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.UpdateAuthzPolicy", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "authz_policy", - "type": ".google.cloud.networksecurity.v1.AuthzPolicy" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurityClient" - }, - "method": { - "shortName": "UpdateAuthzPolicy", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.UpdateAuthzPolicy", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_NetworkSecurity_DeleteAuthzPolicy_async", - "title": "AddressGroupService deleteAuthzPolicy Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single AuthzPolicy.", - "canonical": true, - "file": "network_security.delete_authz_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAuthzPolicy", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.DeleteAuthzPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurityClient" - }, - "method": { - "shortName": "DeleteAuthzPolicy", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity.DeleteAuthzPolicy", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_OrganizationAddressGroupService_ListAddressGroups_async", - "title": "AddressGroupService listAddressGroups Sample", - "origin": "API_DEFINITION", - "description": " Lists address groups in a given project and location.", - "canonical": true, - "file": "organization_address_group_service.list_address_groups.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAddressGroups", - "fullName": "google.cloud.networksecurity.v1.OrganizationAddressGroupService.ListAddressGroups", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.networksecurity.v1.ListAddressGroupsResponse", - "client": { - "shortName": "OrganizationAddressGroupServiceClient", - "fullName": "google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient" - }, - "method": { - "shortName": "ListAddressGroups", - "fullName": "google.cloud.networksecurity.v1.OrganizationAddressGroupService.ListAddressGroups", - "service": { - "shortName": "OrganizationAddressGroupService", - "fullName": "google.cloud.networksecurity.v1.OrganizationAddressGroupService" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_OrganizationAddressGroupService_GetAddressGroup_async", - "title": "AddressGroupService getAddressGroup Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single address group.", - "canonical": true, - "file": "organization_address_group_service.get_address_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAddressGroup", - "fullName": "google.cloud.networksecurity.v1.OrganizationAddressGroupService.GetAddressGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1.AddressGroup", - "client": { - "shortName": "OrganizationAddressGroupServiceClient", - "fullName": "google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient" - }, - "method": { - "shortName": "GetAddressGroup", - "fullName": "google.cloud.networksecurity.v1.OrganizationAddressGroupService.GetAddressGroup", - "service": { - "shortName": "OrganizationAddressGroupService", - "fullName": "google.cloud.networksecurity.v1.OrganizationAddressGroupService" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_OrganizationAddressGroupService_CreateAddressGroup_async", - "title": "AddressGroupService createAddressGroup Sample", - "origin": "API_DEFINITION", - "description": " Creates a new address group in a given project and location.", - "canonical": true, - "file": "organization_address_group_service.create_address_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAddressGroup", - "fullName": "google.cloud.networksecurity.v1.OrganizationAddressGroupService.CreateAddressGroup", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "address_group_id", - "type": "TYPE_STRING" - }, - { - "name": "address_group", - "type": ".google.cloud.networksecurity.v1.AddressGroup" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OrganizationAddressGroupServiceClient", - "fullName": "google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient" - }, - "method": { - "shortName": "CreateAddressGroup", - "fullName": "google.cloud.networksecurity.v1.OrganizationAddressGroupService.CreateAddressGroup", - "service": { - "shortName": "OrganizationAddressGroupService", - "fullName": "google.cloud.networksecurity.v1.OrganizationAddressGroupService" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_OrganizationAddressGroupService_UpdateAddressGroup_async", - "title": "AddressGroupService updateAddressGroup Sample", - "origin": "API_DEFINITION", - "description": " Updates parameters of an address group.", - "canonical": true, - "file": "organization_address_group_service.update_address_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAddressGroup", - "fullName": "google.cloud.networksecurity.v1.OrganizationAddressGroupService.UpdateAddressGroup", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "address_group", - "type": ".google.cloud.networksecurity.v1.AddressGroup" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OrganizationAddressGroupServiceClient", - "fullName": "google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient" - }, - "method": { - "shortName": "UpdateAddressGroup", - "fullName": "google.cloud.networksecurity.v1.OrganizationAddressGroupService.UpdateAddressGroup", - "service": { - "shortName": "OrganizationAddressGroupService", - "fullName": "google.cloud.networksecurity.v1.OrganizationAddressGroupService" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_OrganizationAddressGroupService_AddAddressGroupItems_async", - "title": "AddressGroupService addAddressGroupItems Sample", - "origin": "API_DEFINITION", - "description": " Adds items to an address group.", - "canonical": true, - "file": "organization_address_group_service.add_address_group_items.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddAddressGroupItems", - "fullName": "google.cloud.networksecurity.v1.OrganizationAddressGroupService.AddAddressGroupItems", - "async": true, - "parameters": [ - { - "name": "address_group", - "type": "TYPE_STRING" - }, - { - "name": "items", - "type": "TYPE_STRING[]" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OrganizationAddressGroupServiceClient", - "fullName": "google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient" - }, - "method": { - "shortName": "AddAddressGroupItems", - "fullName": "google.cloud.networksecurity.v1.OrganizationAddressGroupService.AddAddressGroupItems", - "service": { - "shortName": "OrganizationAddressGroupService", - "fullName": "google.cloud.networksecurity.v1.OrganizationAddressGroupService" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_OrganizationAddressGroupService_RemoveAddressGroupItems_async", - "title": "AddressGroupService removeAddressGroupItems Sample", - "origin": "API_DEFINITION", - "description": " Removes items from an address group.", - "canonical": true, - "file": "organization_address_group_service.remove_address_group_items.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveAddressGroupItems", - "fullName": "google.cloud.networksecurity.v1.OrganizationAddressGroupService.RemoveAddressGroupItems", - "async": true, - "parameters": [ - { - "name": "address_group", - "type": "TYPE_STRING" - }, - { - "name": "items", - "type": "TYPE_STRING[]" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OrganizationAddressGroupServiceClient", - "fullName": "google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient" - }, - "method": { - "shortName": "RemoveAddressGroupItems", - "fullName": "google.cloud.networksecurity.v1.OrganizationAddressGroupService.RemoveAddressGroupItems", - "service": { - "shortName": "OrganizationAddressGroupService", - "fullName": "google.cloud.networksecurity.v1.OrganizationAddressGroupService" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_OrganizationAddressGroupService_CloneAddressGroupItems_async", - "title": "AddressGroupService cloneAddressGroupItems Sample", - "origin": "API_DEFINITION", - "description": " Clones items from one address group to another.", - "canonical": true, - "file": "organization_address_group_service.clone_address_group_items.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CloneAddressGroupItems", - "fullName": "google.cloud.networksecurity.v1.OrganizationAddressGroupService.CloneAddressGroupItems", - "async": true, - "parameters": [ - { - "name": "address_group", - "type": "TYPE_STRING" - }, - { - "name": "source_address_group", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OrganizationAddressGroupServiceClient", - "fullName": "google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient" - }, - "method": { - "shortName": "CloneAddressGroupItems", - "fullName": "google.cloud.networksecurity.v1.OrganizationAddressGroupService.CloneAddressGroupItems", - "service": { - "shortName": "OrganizationAddressGroupService", - "fullName": "google.cloud.networksecurity.v1.OrganizationAddressGroupService" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_OrganizationAddressGroupService_DeleteAddressGroup_async", - "title": "AddressGroupService deleteAddressGroup Sample", - "origin": "API_DEFINITION", - "description": " Deletes an address group.", - "canonical": true, - "file": "organization_address_group_service.delete_address_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAddressGroup", - "fullName": "google.cloud.networksecurity.v1.OrganizationAddressGroupService.DeleteAddressGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OrganizationAddressGroupServiceClient", - "fullName": "google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient" - }, - "method": { - "shortName": "DeleteAddressGroup", - "fullName": "google.cloud.networksecurity.v1.OrganizationAddressGroupService.DeleteAddressGroup", - "service": { - "shortName": "OrganizationAddressGroupService", - "fullName": "google.cloud.networksecurity.v1.OrganizationAddressGroupService" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_OrganizationAddressGroupService_ListAddressGroupReferences_async", - "title": "AddressGroupService listAddressGroupReferences Sample", - "origin": "API_DEFINITION", - "description": " Lists references of an address group.", - "canonical": true, - "file": "organization_address_group_service.list_address_group_references.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAddressGroupReferences", - "fullName": "google.cloud.networksecurity.v1.OrganizationAddressGroupService.ListAddressGroupReferences", - "async": true, - "parameters": [ - { - "name": "address_group", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1.ListAddressGroupReferencesResponse", - "client": { - "shortName": "OrganizationAddressGroupServiceClient", - "fullName": "google.cloud.networksecurity.v1.OrganizationAddressGroupServiceClient" - }, - "method": { - "shortName": "ListAddressGroupReferences", - "fullName": "google.cloud.networksecurity.v1.OrganizationAddressGroupService.ListAddressGroupReferences", - "service": { - "shortName": "OrganizationAddressGroupService", - "fullName": "google.cloud.networksecurity.v1.OrganizationAddressGroupService" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_OrganizationSecurityProfileGroupService_ListSecurityProfileGroups_async", - "title": "AddressGroupService listSecurityProfileGroups Sample", - "origin": "API_DEFINITION", - "description": " Lists SecurityProfileGroups in a given organization and location.", - "canonical": true, - "file": "organization_security_profile_group_service.list_security_profile_groups.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSecurityProfileGroups", - "fullName": "google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupService.ListSecurityProfileGroups", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse", - "client": { - "shortName": "OrganizationSecurityProfileGroupServiceClient", - "fullName": "google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient" - }, - "method": { - "shortName": "ListSecurityProfileGroups", - "fullName": "google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupService.ListSecurityProfileGroups", - "service": { - "shortName": "OrganizationSecurityProfileGroupService", - "fullName": "google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupService" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_OrganizationSecurityProfileGroupService_GetSecurityProfileGroup_async", - "title": "AddressGroupService getSecurityProfileGroup Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single SecurityProfileGroup.", - "canonical": true, - "file": "organization_security_profile_group_service.get_security_profile_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSecurityProfileGroup", - "fullName": "google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupService.GetSecurityProfileGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1.SecurityProfileGroup", - "client": { - "shortName": "OrganizationSecurityProfileGroupServiceClient", - "fullName": "google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient" - }, - "method": { - "shortName": "GetSecurityProfileGroup", - "fullName": "google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupService.GetSecurityProfileGroup", - "service": { - "shortName": "OrganizationSecurityProfileGroupService", - "fullName": "google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupService" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_OrganizationSecurityProfileGroupService_CreateSecurityProfileGroup_async", - "title": "AddressGroupService createSecurityProfileGroup Sample", - "origin": "API_DEFINITION", - "description": " Creates a new SecurityProfileGroup in a given organization and location.", - "canonical": true, - "file": "organization_security_profile_group_service.create_security_profile_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSecurityProfileGroup", - "fullName": "google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupService.CreateSecurityProfileGroup", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "security_profile_group_id", - "type": "TYPE_STRING" - }, - { - "name": "security_profile_group", - "type": ".google.cloud.networksecurity.v1.SecurityProfileGroup" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OrganizationSecurityProfileGroupServiceClient", - "fullName": "google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient" - }, - "method": { - "shortName": "CreateSecurityProfileGroup", - "fullName": "google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupService.CreateSecurityProfileGroup", - "service": { - "shortName": "OrganizationSecurityProfileGroupService", - "fullName": "google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupService" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_OrganizationSecurityProfileGroupService_UpdateSecurityProfileGroup_async", - "title": "AddressGroupService updateSecurityProfileGroup Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single SecurityProfileGroup.", - "canonical": true, - "file": "organization_security_profile_group_service.update_security_profile_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSecurityProfileGroup", - "fullName": "google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupService.UpdateSecurityProfileGroup", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "security_profile_group", - "type": ".google.cloud.networksecurity.v1.SecurityProfileGroup" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OrganizationSecurityProfileGroupServiceClient", - "fullName": "google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient" - }, - "method": { - "shortName": "UpdateSecurityProfileGroup", - "fullName": "google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupService.UpdateSecurityProfileGroup", - "service": { - "shortName": "OrganizationSecurityProfileGroupService", - "fullName": "google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupService" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_OrganizationSecurityProfileGroupService_DeleteSecurityProfileGroup_async", - "title": "AddressGroupService deleteSecurityProfileGroup Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single SecurityProfileGroup.", - "canonical": true, - "file": "organization_security_profile_group_service.delete_security_profile_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSecurityProfileGroup", - "fullName": "google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupService.DeleteSecurityProfileGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OrganizationSecurityProfileGroupServiceClient", - "fullName": "google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient" - }, - "method": { - "shortName": "DeleteSecurityProfileGroup", - "fullName": "google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupService.DeleteSecurityProfileGroup", - "service": { - "shortName": "OrganizationSecurityProfileGroupService", - "fullName": "google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupService" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_OrganizationSecurityProfileGroupService_ListSecurityProfiles_async", - "title": "AddressGroupService listSecurityProfiles Sample", - "origin": "API_DEFINITION", - "description": " Lists SecurityProfiles in a given organization and location.", - "canonical": true, - "file": "organization_security_profile_group_service.list_security_profiles.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSecurityProfiles", - "fullName": "google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupService.ListSecurityProfiles", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1.ListSecurityProfilesResponse", - "client": { - "shortName": "OrganizationSecurityProfileGroupServiceClient", - "fullName": "google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient" - }, - "method": { - "shortName": "ListSecurityProfiles", - "fullName": "google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupService.ListSecurityProfiles", - "service": { - "shortName": "OrganizationSecurityProfileGroupService", - "fullName": "google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupService" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_OrganizationSecurityProfileGroupService_GetSecurityProfile_async", - "title": "AddressGroupService getSecurityProfile Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single SecurityProfile.", - "canonical": true, - "file": "organization_security_profile_group_service.get_security_profile.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSecurityProfile", - "fullName": "google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupService.GetSecurityProfile", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1.SecurityProfile", - "client": { - "shortName": "OrganizationSecurityProfileGroupServiceClient", - "fullName": "google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient" - }, - "method": { - "shortName": "GetSecurityProfile", - "fullName": "google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupService.GetSecurityProfile", - "service": { - "shortName": "OrganizationSecurityProfileGroupService", - "fullName": "google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupService" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_OrganizationSecurityProfileGroupService_CreateSecurityProfile_async", - "title": "AddressGroupService createSecurityProfile Sample", - "origin": "API_DEFINITION", - "description": " Creates a new SecurityProfile in a given organization and location.", - "canonical": true, - "file": "organization_security_profile_group_service.create_security_profile.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSecurityProfile", - "fullName": "google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupService.CreateSecurityProfile", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "security_profile_id", - "type": "TYPE_STRING" - }, - { - "name": "security_profile", - "type": ".google.cloud.networksecurity.v1.SecurityProfile" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OrganizationSecurityProfileGroupServiceClient", - "fullName": "google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient" - }, - "method": { - "shortName": "CreateSecurityProfile", - "fullName": "google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupService.CreateSecurityProfile", - "service": { - "shortName": "OrganizationSecurityProfileGroupService", - "fullName": "google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupService" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_OrganizationSecurityProfileGroupService_UpdateSecurityProfile_async", - "title": "AddressGroupService updateSecurityProfile Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single SecurityProfile.", - "canonical": true, - "file": "organization_security_profile_group_service.update_security_profile.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSecurityProfile", - "fullName": "google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupService.UpdateSecurityProfile", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "security_profile", - "type": ".google.cloud.networksecurity.v1.SecurityProfile" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OrganizationSecurityProfileGroupServiceClient", - "fullName": "google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient" - }, - "method": { - "shortName": "UpdateSecurityProfile", - "fullName": "google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupService.UpdateSecurityProfile", - "service": { - "shortName": "OrganizationSecurityProfileGroupService", - "fullName": "google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupService" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_OrganizationSecurityProfileGroupService_DeleteSecurityProfile_async", - "title": "AddressGroupService deleteSecurityProfile Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single SecurityProfile.", - "canonical": true, - "file": "organization_security_profile_group_service.delete_security_profile.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSecurityProfile", - "fullName": "google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupService.DeleteSecurityProfile", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OrganizationSecurityProfileGroupServiceClient", - "fullName": "google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupServiceClient" - }, - "method": { - "shortName": "DeleteSecurityProfile", - "fullName": "google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupService.DeleteSecurityProfile", - "service": { - "shortName": "OrganizationSecurityProfileGroupService", - "fullName": "google.cloud.networksecurity.v1.OrganizationSecurityProfileGroupService" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_SecurityProfileGroupService_ListSecurityProfileGroups_async", - "title": "AddressGroupService listSecurityProfileGroups Sample", - "origin": "API_DEFINITION", - "description": " Lists SecurityProfileGroups in a given project and location.", - "canonical": true, - "file": "security_profile_group_service.list_security_profile_groups.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSecurityProfileGroups", - "fullName": "google.cloud.networksecurity.v1.SecurityProfileGroupService.ListSecurityProfileGroups", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1.ListSecurityProfileGroupsResponse", - "client": { - "shortName": "SecurityProfileGroupServiceClient", - "fullName": "google.cloud.networksecurity.v1.SecurityProfileGroupServiceClient" - }, - "method": { - "shortName": "ListSecurityProfileGroups", - "fullName": "google.cloud.networksecurity.v1.SecurityProfileGroupService.ListSecurityProfileGroups", - "service": { - "shortName": "SecurityProfileGroupService", - "fullName": "google.cloud.networksecurity.v1.SecurityProfileGroupService" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_SecurityProfileGroupService_GetSecurityProfileGroup_async", - "title": "AddressGroupService getSecurityProfileGroup Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single SecurityProfileGroup.", - "canonical": true, - "file": "security_profile_group_service.get_security_profile_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSecurityProfileGroup", - "fullName": "google.cloud.networksecurity.v1.SecurityProfileGroupService.GetSecurityProfileGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1.SecurityProfileGroup", - "client": { - "shortName": "SecurityProfileGroupServiceClient", - "fullName": "google.cloud.networksecurity.v1.SecurityProfileGroupServiceClient" - }, - "method": { - "shortName": "GetSecurityProfileGroup", - "fullName": "google.cloud.networksecurity.v1.SecurityProfileGroupService.GetSecurityProfileGroup", - "service": { - "shortName": "SecurityProfileGroupService", - "fullName": "google.cloud.networksecurity.v1.SecurityProfileGroupService" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_SecurityProfileGroupService_CreateSecurityProfileGroup_async", - "title": "AddressGroupService createSecurityProfileGroup Sample", - "origin": "API_DEFINITION", - "description": " Creates a new SecurityProfileGroup in a given project and location.", - "canonical": true, - "file": "security_profile_group_service.create_security_profile_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSecurityProfileGroup", - "fullName": "google.cloud.networksecurity.v1.SecurityProfileGroupService.CreateSecurityProfileGroup", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "security_profile_group_id", - "type": "TYPE_STRING" - }, - { - "name": "security_profile_group", - "type": ".google.cloud.networksecurity.v1.SecurityProfileGroup" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SecurityProfileGroupServiceClient", - "fullName": "google.cloud.networksecurity.v1.SecurityProfileGroupServiceClient" - }, - "method": { - "shortName": "CreateSecurityProfileGroup", - "fullName": "google.cloud.networksecurity.v1.SecurityProfileGroupService.CreateSecurityProfileGroup", - "service": { - "shortName": "SecurityProfileGroupService", - "fullName": "google.cloud.networksecurity.v1.SecurityProfileGroupService" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_SecurityProfileGroupService_UpdateSecurityProfileGroup_async", - "title": "AddressGroupService updateSecurityProfileGroup Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single SecurityProfileGroup.", - "canonical": true, - "file": "security_profile_group_service.update_security_profile_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSecurityProfileGroup", - "fullName": "google.cloud.networksecurity.v1.SecurityProfileGroupService.UpdateSecurityProfileGroup", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "security_profile_group", - "type": ".google.cloud.networksecurity.v1.SecurityProfileGroup" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SecurityProfileGroupServiceClient", - "fullName": "google.cloud.networksecurity.v1.SecurityProfileGroupServiceClient" - }, - "method": { - "shortName": "UpdateSecurityProfileGroup", - "fullName": "google.cloud.networksecurity.v1.SecurityProfileGroupService.UpdateSecurityProfileGroup", - "service": { - "shortName": "SecurityProfileGroupService", - "fullName": "google.cloud.networksecurity.v1.SecurityProfileGroupService" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_SecurityProfileGroupService_DeleteSecurityProfileGroup_async", - "title": "AddressGroupService deleteSecurityProfileGroup Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single SecurityProfileGroup.", - "canonical": true, - "file": "security_profile_group_service.delete_security_profile_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSecurityProfileGroup", - "fullName": "google.cloud.networksecurity.v1.SecurityProfileGroupService.DeleteSecurityProfileGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SecurityProfileGroupServiceClient", - "fullName": "google.cloud.networksecurity.v1.SecurityProfileGroupServiceClient" - }, - "method": { - "shortName": "DeleteSecurityProfileGroup", - "fullName": "google.cloud.networksecurity.v1.SecurityProfileGroupService.DeleteSecurityProfileGroup", - "service": { - "shortName": "SecurityProfileGroupService", - "fullName": "google.cloud.networksecurity.v1.SecurityProfileGroupService" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_SecurityProfileGroupService_ListSecurityProfiles_async", - "title": "AddressGroupService listSecurityProfiles Sample", - "origin": "API_DEFINITION", - "description": " Lists SecurityProfiles in a given project and location.", - "canonical": true, - "file": "security_profile_group_service.list_security_profiles.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSecurityProfiles", - "fullName": "google.cloud.networksecurity.v1.SecurityProfileGroupService.ListSecurityProfiles", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1.ListSecurityProfilesResponse", - "client": { - "shortName": "SecurityProfileGroupServiceClient", - "fullName": "google.cloud.networksecurity.v1.SecurityProfileGroupServiceClient" - }, - "method": { - "shortName": "ListSecurityProfiles", - "fullName": "google.cloud.networksecurity.v1.SecurityProfileGroupService.ListSecurityProfiles", - "service": { - "shortName": "SecurityProfileGroupService", - "fullName": "google.cloud.networksecurity.v1.SecurityProfileGroupService" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_SecurityProfileGroupService_GetSecurityProfile_async", - "title": "AddressGroupService getSecurityProfile Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single SecurityProfile.", - "canonical": true, - "file": "security_profile_group_service.get_security_profile.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSecurityProfile", - "fullName": "google.cloud.networksecurity.v1.SecurityProfileGroupService.GetSecurityProfile", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1.SecurityProfile", - "client": { - "shortName": "SecurityProfileGroupServiceClient", - "fullName": "google.cloud.networksecurity.v1.SecurityProfileGroupServiceClient" - }, - "method": { - "shortName": "GetSecurityProfile", - "fullName": "google.cloud.networksecurity.v1.SecurityProfileGroupService.GetSecurityProfile", - "service": { - "shortName": "SecurityProfileGroupService", - "fullName": "google.cloud.networksecurity.v1.SecurityProfileGroupService" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_SecurityProfileGroupService_CreateSecurityProfile_async", - "title": "AddressGroupService createSecurityProfile Sample", - "origin": "API_DEFINITION", - "description": " Creates a new SecurityProfile in a given project and location.", - "canonical": true, - "file": "security_profile_group_service.create_security_profile.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSecurityProfile", - "fullName": "google.cloud.networksecurity.v1.SecurityProfileGroupService.CreateSecurityProfile", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "security_profile_id", - "type": "TYPE_STRING" - }, - { - "name": "security_profile", - "type": ".google.cloud.networksecurity.v1.SecurityProfile" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SecurityProfileGroupServiceClient", - "fullName": "google.cloud.networksecurity.v1.SecurityProfileGroupServiceClient" - }, - "method": { - "shortName": "CreateSecurityProfile", - "fullName": "google.cloud.networksecurity.v1.SecurityProfileGroupService.CreateSecurityProfile", - "service": { - "shortName": "SecurityProfileGroupService", - "fullName": "google.cloud.networksecurity.v1.SecurityProfileGroupService" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_SecurityProfileGroupService_UpdateSecurityProfile_async", - "title": "AddressGroupService updateSecurityProfile Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single SecurityProfile.", - "canonical": true, - "file": "security_profile_group_service.update_security_profile.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSecurityProfile", - "fullName": "google.cloud.networksecurity.v1.SecurityProfileGroupService.UpdateSecurityProfile", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "security_profile", - "type": ".google.cloud.networksecurity.v1.SecurityProfile" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SecurityProfileGroupServiceClient", - "fullName": "google.cloud.networksecurity.v1.SecurityProfileGroupServiceClient" - }, - "method": { - "shortName": "UpdateSecurityProfile", - "fullName": "google.cloud.networksecurity.v1.SecurityProfileGroupService.UpdateSecurityProfile", - "service": { - "shortName": "SecurityProfileGroupService", - "fullName": "google.cloud.networksecurity.v1.SecurityProfileGroupService" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_SecurityProfileGroupService_DeleteSecurityProfile_async", - "title": "AddressGroupService deleteSecurityProfile Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single SecurityProfile.", - "canonical": true, - "file": "security_profile_group_service.delete_security_profile.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSecurityProfile", - "fullName": "google.cloud.networksecurity.v1.SecurityProfileGroupService.DeleteSecurityProfile", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SecurityProfileGroupServiceClient", - "fullName": "google.cloud.networksecurity.v1.SecurityProfileGroupServiceClient" - }, - "method": { - "shortName": "DeleteSecurityProfile", - "fullName": "google.cloud.networksecurity.v1.SecurityProfileGroupService.DeleteSecurityProfile", - "service": { - "shortName": "SecurityProfileGroupService", - "fullName": "google.cloud.networksecurity.v1.SecurityProfileGroupService" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_SSERealmService_ListSACRealms_async", - "title": "AddressGroupService listSACRealms Sample", - "origin": "API_DEFINITION", - "description": " Lists SACRealms in a given project.", - "canonical": true, - "file": "s_s_e_realm_service.list_s_a_c_realms.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSACRealms", - "fullName": "google.cloud.networksecurity.v1.SSERealmService.ListSACRealms", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1.ListSACRealmsResponse", - "client": { - "shortName": "SSERealmServiceClient", - "fullName": "google.cloud.networksecurity.v1.SSERealmServiceClient" - }, - "method": { - "shortName": "ListSACRealms", - "fullName": "google.cloud.networksecurity.v1.SSERealmService.ListSACRealms", - "service": { - "shortName": "SSERealmService", - "fullName": "google.cloud.networksecurity.v1.SSERealmService" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_SSERealmService_GetSACRealm_async", - "title": "AddressGroupService getSACRealm Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified realm.", - "canonical": true, - "file": "s_s_e_realm_service.get_s_a_c_realm.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSACRealm", - "fullName": "google.cloud.networksecurity.v1.SSERealmService.GetSACRealm", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1.SACRealm", - "client": { - "shortName": "SSERealmServiceClient", - "fullName": "google.cloud.networksecurity.v1.SSERealmServiceClient" - }, - "method": { - "shortName": "GetSACRealm", - "fullName": "google.cloud.networksecurity.v1.SSERealmService.GetSACRealm", - "service": { - "shortName": "SSERealmService", - "fullName": "google.cloud.networksecurity.v1.SSERealmService" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_SSERealmService_CreateSACRealm_async", - "title": "AddressGroupService createSACRealm Sample", - "origin": "API_DEFINITION", - "description": " Creates a new SACRealm in a given project.", - "canonical": true, - "file": "s_s_e_realm_service.create_s_a_c_realm.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSACRealm", - "fullName": "google.cloud.networksecurity.v1.SSERealmService.CreateSACRealm", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "sac_realm_id", - "type": "TYPE_STRING" - }, - { - "name": "sac_realm", - "type": ".google.cloud.networksecurity.v1.SACRealm" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SSERealmServiceClient", - "fullName": "google.cloud.networksecurity.v1.SSERealmServiceClient" - }, - "method": { - "shortName": "CreateSACRealm", - "fullName": "google.cloud.networksecurity.v1.SSERealmService.CreateSACRealm", - "service": { - "shortName": "SSERealmService", - "fullName": "google.cloud.networksecurity.v1.SSERealmService" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_SSERealmService_DeleteSACRealm_async", - "title": "AddressGroupService deleteSACRealm Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified realm.", - "canonical": true, - "file": "s_s_e_realm_service.delete_s_a_c_realm.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSACRealm", - "fullName": "google.cloud.networksecurity.v1.SSERealmService.DeleteSACRealm", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SSERealmServiceClient", - "fullName": "google.cloud.networksecurity.v1.SSERealmServiceClient" - }, - "method": { - "shortName": "DeleteSACRealm", - "fullName": "google.cloud.networksecurity.v1.SSERealmService.DeleteSACRealm", - "service": { - "shortName": "SSERealmService", - "fullName": "google.cloud.networksecurity.v1.SSERealmService" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_SSERealmService_ListSACAttachments_async", - "title": "AddressGroupService listSACAttachments Sample", - "origin": "API_DEFINITION", - "description": " Lists SACAttachments in a given project and location.", - "canonical": true, - "file": "s_s_e_realm_service.list_s_a_c_attachments.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSACAttachments", - "fullName": "google.cloud.networksecurity.v1.SSERealmService.ListSACAttachments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1.ListSACAttachmentsResponse", - "client": { - "shortName": "SSERealmServiceClient", - "fullName": "google.cloud.networksecurity.v1.SSERealmServiceClient" - }, - "method": { - "shortName": "ListSACAttachments", - "fullName": "google.cloud.networksecurity.v1.SSERealmService.ListSACAttachments", - "service": { - "shortName": "SSERealmService", - "fullName": "google.cloud.networksecurity.v1.SSERealmService" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_SSERealmService_GetSACAttachment_async", - "title": "AddressGroupService getSACAttachment Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified attachment.", - "canonical": true, - "file": "s_s_e_realm_service.get_s_a_c_attachment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSACAttachment", - "fullName": "google.cloud.networksecurity.v1.SSERealmService.GetSACAttachment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1.SACAttachment", - "client": { - "shortName": "SSERealmServiceClient", - "fullName": "google.cloud.networksecurity.v1.SSERealmServiceClient" - }, - "method": { - "shortName": "GetSACAttachment", - "fullName": "google.cloud.networksecurity.v1.SSERealmService.GetSACAttachment", - "service": { - "shortName": "SSERealmService", - "fullName": "google.cloud.networksecurity.v1.SSERealmService" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_SSERealmService_CreateSACAttachment_async", - "title": "AddressGroupService createSACAttachment Sample", - "origin": "API_DEFINITION", - "description": " Creates a new SACAttachment in a given project and location.", - "canonical": true, - "file": "s_s_e_realm_service.create_s_a_c_attachment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSACAttachment", - "fullName": "google.cloud.networksecurity.v1.SSERealmService.CreateSACAttachment", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "sac_attachment_id", - "type": "TYPE_STRING" - }, - { - "name": "sac_attachment", - "type": ".google.cloud.networksecurity.v1.SACAttachment" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SSERealmServiceClient", - "fullName": "google.cloud.networksecurity.v1.SSERealmServiceClient" - }, - "method": { - "shortName": "CreateSACAttachment", - "fullName": "google.cloud.networksecurity.v1.SSERealmService.CreateSACAttachment", - "service": { - "shortName": "SSERealmService", - "fullName": "google.cloud.networksecurity.v1.SSERealmService" - } - } - } - }, - { - "regionTag": "networksecurity_v1_generated_SSERealmService_DeleteSACAttachment_async", - "title": "AddressGroupService deleteSACAttachment Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified attachment.", - "canonical": true, - "file": "s_s_e_realm_service.delete_s_a_c_attachment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSACAttachment", - "fullName": "google.cloud.networksecurity.v1.SSERealmService.DeleteSACAttachment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SSERealmServiceClient", - "fullName": "google.cloud.networksecurity.v1.SSERealmServiceClient" - }, - "method": { - "shortName": "DeleteSACAttachment", - "fullName": "google.cloud.networksecurity.v1.SSERealmService.DeleteSACAttachment", - "service": { - "shortName": "SSERealmService", - "fullName": "google.cloud.networksecurity.v1.SSERealmService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-networksecurity/samples/generated/v1alpha1/snippet_metadata_google.cloud.networksecurity.v1alpha1.json b/packages/google-cloud-networksecurity/samples/generated/v1alpha1/snippet_metadata_google.cloud.networksecurity.v1alpha1.json deleted file mode 100644 index dd6c359478c0..000000000000 --- a/packages/google-cloud-networksecurity/samples/generated/v1alpha1/snippet_metadata_google.cloud.networksecurity.v1alpha1.json +++ /dev/null @@ -1,6007 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-networksecurity", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.networksecurity.v1alpha1", - "version": "v1alpha1" - } - ] - }, - "snippets": [ - { - "regionTag": "networksecurity_v1alpha1_generated_DnsThreatDetectorService_ListDnsThreatDetectors_async", - "title": "DnsThreatDetectorService listDnsThreatDetectors Sample", - "origin": "API_DEFINITION", - "description": " Lists DnsThreatDetectors in a given project and location.", - "canonical": true, - "file": "dns_threat_detector_service.list_dns_threat_detectors.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDnsThreatDetectors", - "fullName": "google.cloud.networksecurity.v1alpha1.DnsThreatDetectorService.ListDnsThreatDetectors", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1alpha1.ListDnsThreatDetectorsResponse", - "client": { - "shortName": "DnsThreatDetectorServiceClient", - "fullName": "google.cloud.networksecurity.v1alpha1.DnsThreatDetectorServiceClient" - }, - "method": { - "shortName": "ListDnsThreatDetectors", - "fullName": "google.cloud.networksecurity.v1alpha1.DnsThreatDetectorService.ListDnsThreatDetectors", - "service": { - "shortName": "DnsThreatDetectorService", - "fullName": "google.cloud.networksecurity.v1alpha1.DnsThreatDetectorService" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_DnsThreatDetectorService_GetDnsThreatDetector_async", - "title": "DnsThreatDetectorService getDnsThreatDetector Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a single DnsThreatDetector.", - "canonical": true, - "file": "dns_threat_detector_service.get_dns_threat_detector.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDnsThreatDetector", - "fullName": "google.cloud.networksecurity.v1alpha1.DnsThreatDetectorService.GetDnsThreatDetector", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1alpha1.DnsThreatDetector", - "client": { - "shortName": "DnsThreatDetectorServiceClient", - "fullName": "google.cloud.networksecurity.v1alpha1.DnsThreatDetectorServiceClient" - }, - "method": { - "shortName": "GetDnsThreatDetector", - "fullName": "google.cloud.networksecurity.v1alpha1.DnsThreatDetectorService.GetDnsThreatDetector", - "service": { - "shortName": "DnsThreatDetectorService", - "fullName": "google.cloud.networksecurity.v1alpha1.DnsThreatDetectorService" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_DnsThreatDetectorService_CreateDnsThreatDetector_async", - "title": "DnsThreatDetectorService createDnsThreatDetector Sample", - "origin": "API_DEFINITION", - "description": " Creates a new DnsThreatDetector in a given project and location.", - "canonical": true, - "file": "dns_threat_detector_service.create_dns_threat_detector.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDnsThreatDetector", - "fullName": "google.cloud.networksecurity.v1alpha1.DnsThreatDetectorService.CreateDnsThreatDetector", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "dns_threat_detector_id", - "type": "TYPE_STRING" - }, - { - "name": "dns_threat_detector", - "type": ".google.cloud.networksecurity.v1alpha1.DnsThreatDetector" - } - ], - "resultType": ".google.cloud.networksecurity.v1alpha1.DnsThreatDetector", - "client": { - "shortName": "DnsThreatDetectorServiceClient", - "fullName": "google.cloud.networksecurity.v1alpha1.DnsThreatDetectorServiceClient" - }, - "method": { - "shortName": "CreateDnsThreatDetector", - "fullName": "google.cloud.networksecurity.v1alpha1.DnsThreatDetectorService.CreateDnsThreatDetector", - "service": { - "shortName": "DnsThreatDetectorService", - "fullName": "google.cloud.networksecurity.v1alpha1.DnsThreatDetectorService" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_DnsThreatDetectorService_UpdateDnsThreatDetector_async", - "title": "DnsThreatDetectorService updateDnsThreatDetector Sample", - "origin": "API_DEFINITION", - "description": " Updates a single DnsThreatDetector.", - "canonical": true, - "file": "dns_threat_detector_service.update_dns_threat_detector.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDnsThreatDetector", - "fullName": "google.cloud.networksecurity.v1alpha1.DnsThreatDetectorService.UpdateDnsThreatDetector", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "dns_threat_detector", - "type": ".google.cloud.networksecurity.v1alpha1.DnsThreatDetector" - } - ], - "resultType": ".google.cloud.networksecurity.v1alpha1.DnsThreatDetector", - "client": { - "shortName": "DnsThreatDetectorServiceClient", - "fullName": "google.cloud.networksecurity.v1alpha1.DnsThreatDetectorServiceClient" - }, - "method": { - "shortName": "UpdateDnsThreatDetector", - "fullName": "google.cloud.networksecurity.v1alpha1.DnsThreatDetectorService.UpdateDnsThreatDetector", - "service": { - "shortName": "DnsThreatDetectorService", - "fullName": "google.cloud.networksecurity.v1alpha1.DnsThreatDetectorService" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_DnsThreatDetectorService_DeleteDnsThreatDetector_async", - "title": "DnsThreatDetectorService deleteDnsThreatDetector Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single DnsThreatDetector.", - "canonical": true, - "file": "dns_threat_detector_service.delete_dns_threat_detector.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDnsThreatDetector", - "fullName": "google.cloud.networksecurity.v1alpha1.DnsThreatDetectorService.DeleteDnsThreatDetector", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DnsThreatDetectorServiceClient", - "fullName": "google.cloud.networksecurity.v1alpha1.DnsThreatDetectorServiceClient" - }, - "method": { - "shortName": "DeleteDnsThreatDetector", - "fullName": "google.cloud.networksecurity.v1alpha1.DnsThreatDetectorService.DeleteDnsThreatDetector", - "service": { - "shortName": "DnsThreatDetectorService", - "fullName": "google.cloud.networksecurity.v1alpha1.DnsThreatDetectorService" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_FirewallActivation_ListFirewallEndpoints_async", - "title": "DnsThreatDetectorService listFirewallEndpoints Sample", - "origin": "API_DEFINITION", - "description": " Lists FirewallEndpoints in a given project and location.", - "canonical": true, - "file": "firewall_activation.list_firewall_endpoints.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFirewallEndpoints", - "fullName": "google.cloud.networksecurity.v1alpha1.FirewallActivation.ListFirewallEndpoints", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1alpha1.ListFirewallEndpointsResponse", - "client": { - "shortName": "FirewallActivationClient", - "fullName": "google.cloud.networksecurity.v1alpha1.FirewallActivationClient" - }, - "method": { - "shortName": "ListFirewallEndpoints", - "fullName": "google.cloud.networksecurity.v1alpha1.FirewallActivation.ListFirewallEndpoints", - "service": { - "shortName": "FirewallActivation", - "fullName": "google.cloud.networksecurity.v1alpha1.FirewallActivation" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_FirewallActivation_GetFirewallEndpoint_async", - "title": "DnsThreatDetectorService getFirewallEndpoint Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Endpoint.", - "canonical": true, - "file": "firewall_activation.get_firewall_endpoint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFirewallEndpoint", - "fullName": "google.cloud.networksecurity.v1alpha1.FirewallActivation.GetFirewallEndpoint", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1alpha1.FirewallEndpoint", - "client": { - "shortName": "FirewallActivationClient", - "fullName": "google.cloud.networksecurity.v1alpha1.FirewallActivationClient" - }, - "method": { - "shortName": "GetFirewallEndpoint", - "fullName": "google.cloud.networksecurity.v1alpha1.FirewallActivation.GetFirewallEndpoint", - "service": { - "shortName": "FirewallActivation", - "fullName": "google.cloud.networksecurity.v1alpha1.FirewallActivation" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_FirewallActivation_CreateFirewallEndpoint_async", - "title": "DnsThreatDetectorService createFirewallEndpoint Sample", - "origin": "API_DEFINITION", - "description": " Creates a new FirewallEndpoint in a given project and location.", - "canonical": true, - "file": "firewall_activation.create_firewall_endpoint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateFirewallEndpoint", - "fullName": "google.cloud.networksecurity.v1alpha1.FirewallActivation.CreateFirewallEndpoint", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "firewall_endpoint_id", - "type": "TYPE_STRING" - }, - { - "name": "firewall_endpoint", - "type": ".google.cloud.networksecurity.v1alpha1.FirewallEndpoint" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FirewallActivationClient", - "fullName": "google.cloud.networksecurity.v1alpha1.FirewallActivationClient" - }, - "method": { - "shortName": "CreateFirewallEndpoint", - "fullName": "google.cloud.networksecurity.v1alpha1.FirewallActivation.CreateFirewallEndpoint", - "service": { - "shortName": "FirewallActivation", - "fullName": "google.cloud.networksecurity.v1alpha1.FirewallActivation" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_FirewallActivation_DeleteFirewallEndpoint_async", - "title": "DnsThreatDetectorService deleteFirewallEndpoint Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Endpoint.", - "canonical": true, - "file": "firewall_activation.delete_firewall_endpoint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteFirewallEndpoint", - "fullName": "google.cloud.networksecurity.v1alpha1.FirewallActivation.DeleteFirewallEndpoint", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FirewallActivationClient", - "fullName": "google.cloud.networksecurity.v1alpha1.FirewallActivationClient" - }, - "method": { - "shortName": "DeleteFirewallEndpoint", - "fullName": "google.cloud.networksecurity.v1alpha1.FirewallActivation.DeleteFirewallEndpoint", - "service": { - "shortName": "FirewallActivation", - "fullName": "google.cloud.networksecurity.v1alpha1.FirewallActivation" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_FirewallActivation_UpdateFirewallEndpoint_async", - "title": "DnsThreatDetectorService updateFirewallEndpoint Sample", - "origin": "API_DEFINITION", - "description": " Update a single Endpoint.", - "canonical": true, - "file": "firewall_activation.update_firewall_endpoint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateFirewallEndpoint", - "fullName": "google.cloud.networksecurity.v1alpha1.FirewallActivation.UpdateFirewallEndpoint", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "firewall_endpoint", - "type": ".google.cloud.networksecurity.v1alpha1.FirewallEndpoint" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FirewallActivationClient", - "fullName": "google.cloud.networksecurity.v1alpha1.FirewallActivationClient" - }, - "method": { - "shortName": "UpdateFirewallEndpoint", - "fullName": "google.cloud.networksecurity.v1alpha1.FirewallActivation.UpdateFirewallEndpoint", - "service": { - "shortName": "FirewallActivation", - "fullName": "google.cloud.networksecurity.v1alpha1.FirewallActivation" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_FirewallActivation_ListFirewallEndpointAssociations_async", - "title": "DnsThreatDetectorService listFirewallEndpointAssociations Sample", - "origin": "API_DEFINITION", - "description": " Lists Associations in a given project and location.", - "canonical": true, - "file": "firewall_activation.list_firewall_endpoint_associations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFirewallEndpointAssociations", - "fullName": "google.cloud.networksecurity.v1alpha1.FirewallActivation.ListFirewallEndpointAssociations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1alpha1.ListFirewallEndpointAssociationsResponse", - "client": { - "shortName": "FirewallActivationClient", - "fullName": "google.cloud.networksecurity.v1alpha1.FirewallActivationClient" - }, - "method": { - "shortName": "ListFirewallEndpointAssociations", - "fullName": "google.cloud.networksecurity.v1alpha1.FirewallActivation.ListFirewallEndpointAssociations", - "service": { - "shortName": "FirewallActivation", - "fullName": "google.cloud.networksecurity.v1alpha1.FirewallActivation" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_FirewallActivation_GetFirewallEndpointAssociation_async", - "title": "DnsThreatDetectorService getFirewallEndpointAssociation Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single FirewallEndpointAssociation.", - "canonical": true, - "file": "firewall_activation.get_firewall_endpoint_association.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFirewallEndpointAssociation", - "fullName": "google.cloud.networksecurity.v1alpha1.FirewallActivation.GetFirewallEndpointAssociation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1alpha1.FirewallEndpointAssociation", - "client": { - "shortName": "FirewallActivationClient", - "fullName": "google.cloud.networksecurity.v1alpha1.FirewallActivationClient" - }, - "method": { - "shortName": "GetFirewallEndpointAssociation", - "fullName": "google.cloud.networksecurity.v1alpha1.FirewallActivation.GetFirewallEndpointAssociation", - "service": { - "shortName": "FirewallActivation", - "fullName": "google.cloud.networksecurity.v1alpha1.FirewallActivation" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_FirewallActivation_CreateFirewallEndpointAssociation_async", - "title": "DnsThreatDetectorService createFirewallEndpointAssociation Sample", - "origin": "API_DEFINITION", - "description": " Creates a new FirewallEndpointAssociation in a given project and location.", - "canonical": true, - "file": "firewall_activation.create_firewall_endpoint_association.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateFirewallEndpointAssociation", - "fullName": "google.cloud.networksecurity.v1alpha1.FirewallActivation.CreateFirewallEndpointAssociation", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "firewall_endpoint_association_id", - "type": "TYPE_STRING" - }, - { - "name": "firewall_endpoint_association", - "type": ".google.cloud.networksecurity.v1alpha1.FirewallEndpointAssociation" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FirewallActivationClient", - "fullName": "google.cloud.networksecurity.v1alpha1.FirewallActivationClient" - }, - "method": { - "shortName": "CreateFirewallEndpointAssociation", - "fullName": "google.cloud.networksecurity.v1alpha1.FirewallActivation.CreateFirewallEndpointAssociation", - "service": { - "shortName": "FirewallActivation", - "fullName": "google.cloud.networksecurity.v1alpha1.FirewallActivation" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_FirewallActivation_DeleteFirewallEndpointAssociation_async", - "title": "DnsThreatDetectorService deleteFirewallEndpointAssociation Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single FirewallEndpointAssociation.", - "canonical": true, - "file": "firewall_activation.delete_firewall_endpoint_association.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteFirewallEndpointAssociation", - "fullName": "google.cloud.networksecurity.v1alpha1.FirewallActivation.DeleteFirewallEndpointAssociation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FirewallActivationClient", - "fullName": "google.cloud.networksecurity.v1alpha1.FirewallActivationClient" - }, - "method": { - "shortName": "DeleteFirewallEndpointAssociation", - "fullName": "google.cloud.networksecurity.v1alpha1.FirewallActivation.DeleteFirewallEndpointAssociation", - "service": { - "shortName": "FirewallActivation", - "fullName": "google.cloud.networksecurity.v1alpha1.FirewallActivation" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_FirewallActivation_UpdateFirewallEndpointAssociation_async", - "title": "DnsThreatDetectorService updateFirewallEndpointAssociation Sample", - "origin": "API_DEFINITION", - "description": " Update a single FirewallEndpointAssociation.", - "canonical": true, - "file": "firewall_activation.update_firewall_endpoint_association.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateFirewallEndpointAssociation", - "fullName": "google.cloud.networksecurity.v1alpha1.FirewallActivation.UpdateFirewallEndpointAssociation", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "firewall_endpoint_association", - "type": ".google.cloud.networksecurity.v1alpha1.FirewallEndpointAssociation" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FirewallActivationClient", - "fullName": "google.cloud.networksecurity.v1alpha1.FirewallActivationClient" - }, - "method": { - "shortName": "UpdateFirewallEndpointAssociation", - "fullName": "google.cloud.networksecurity.v1alpha1.FirewallActivation.UpdateFirewallEndpointAssociation", - "service": { - "shortName": "FirewallActivation", - "fullName": "google.cloud.networksecurity.v1alpha1.FirewallActivation" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_Intercept_ListInterceptEndpointGroups_async", - "title": "DnsThreatDetectorService listInterceptEndpointGroups Sample", - "origin": "API_DEFINITION", - "description": " Lists endpoint groups in a given project and location. See https://google.aip.dev/132.", - "canonical": true, - "file": "intercept.list_intercept_endpoint_groups.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListInterceptEndpointGroups", - "fullName": "google.cloud.networksecurity.v1alpha1.Intercept.ListInterceptEndpointGroups", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1alpha1.ListInterceptEndpointGroupsResponse", - "client": { - "shortName": "InterceptClient", - "fullName": "google.cloud.networksecurity.v1alpha1.InterceptClient" - }, - "method": { - "shortName": "ListInterceptEndpointGroups", - "fullName": "google.cloud.networksecurity.v1alpha1.Intercept.ListInterceptEndpointGroups", - "service": { - "shortName": "Intercept", - "fullName": "google.cloud.networksecurity.v1alpha1.Intercept" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_Intercept_GetInterceptEndpointGroup_async", - "title": "DnsThreatDetectorService getInterceptEndpointGroup Sample", - "origin": "API_DEFINITION", - "description": " Gets a specific endpoint group. See https://google.aip.dev/131.", - "canonical": true, - "file": "intercept.get_intercept_endpoint_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetInterceptEndpointGroup", - "fullName": "google.cloud.networksecurity.v1alpha1.Intercept.GetInterceptEndpointGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1alpha1.InterceptEndpointGroup", - "client": { - "shortName": "InterceptClient", - "fullName": "google.cloud.networksecurity.v1alpha1.InterceptClient" - }, - "method": { - "shortName": "GetInterceptEndpointGroup", - "fullName": "google.cloud.networksecurity.v1alpha1.Intercept.GetInterceptEndpointGroup", - "service": { - "shortName": "Intercept", - "fullName": "google.cloud.networksecurity.v1alpha1.Intercept" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_Intercept_CreateInterceptEndpointGroup_async", - "title": "DnsThreatDetectorService createInterceptEndpointGroup Sample", - "origin": "API_DEFINITION", - "description": " Creates an endpoint group in a given project and location. See https://google.aip.dev/133.", - "canonical": true, - "file": "intercept.create_intercept_endpoint_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateInterceptEndpointGroup", - "fullName": "google.cloud.networksecurity.v1alpha1.Intercept.CreateInterceptEndpointGroup", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "intercept_endpoint_group_id", - "type": "TYPE_STRING" - }, - { - "name": "intercept_endpoint_group", - "type": ".google.cloud.networksecurity.v1alpha1.InterceptEndpointGroup" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "InterceptClient", - "fullName": "google.cloud.networksecurity.v1alpha1.InterceptClient" - }, - "method": { - "shortName": "CreateInterceptEndpointGroup", - "fullName": "google.cloud.networksecurity.v1alpha1.Intercept.CreateInterceptEndpointGroup", - "service": { - "shortName": "Intercept", - "fullName": "google.cloud.networksecurity.v1alpha1.Intercept" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_Intercept_UpdateInterceptEndpointGroup_async", - "title": "DnsThreatDetectorService updateInterceptEndpointGroup Sample", - "origin": "API_DEFINITION", - "description": " Updates an endpoint group. See https://google.aip.dev/134.", - "canonical": true, - "file": "intercept.update_intercept_endpoint_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateInterceptEndpointGroup", - "fullName": "google.cloud.networksecurity.v1alpha1.Intercept.UpdateInterceptEndpointGroup", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "intercept_endpoint_group", - "type": ".google.cloud.networksecurity.v1alpha1.InterceptEndpointGroup" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "InterceptClient", - "fullName": "google.cloud.networksecurity.v1alpha1.InterceptClient" - }, - "method": { - "shortName": "UpdateInterceptEndpointGroup", - "fullName": "google.cloud.networksecurity.v1alpha1.Intercept.UpdateInterceptEndpointGroup", - "service": { - "shortName": "Intercept", - "fullName": "google.cloud.networksecurity.v1alpha1.Intercept" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_Intercept_DeleteInterceptEndpointGroup_async", - "title": "DnsThreatDetectorService deleteInterceptEndpointGroup Sample", - "origin": "API_DEFINITION", - "description": " Deletes an endpoint group. See https://google.aip.dev/135.", - "canonical": true, - "file": "intercept.delete_intercept_endpoint_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteInterceptEndpointGroup", - "fullName": "google.cloud.networksecurity.v1alpha1.Intercept.DeleteInterceptEndpointGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "InterceptClient", - "fullName": "google.cloud.networksecurity.v1alpha1.InterceptClient" - }, - "method": { - "shortName": "DeleteInterceptEndpointGroup", - "fullName": "google.cloud.networksecurity.v1alpha1.Intercept.DeleteInterceptEndpointGroup", - "service": { - "shortName": "Intercept", - "fullName": "google.cloud.networksecurity.v1alpha1.Intercept" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_Intercept_ListInterceptEndpointGroupAssociations_async", - "title": "DnsThreatDetectorService listInterceptEndpointGroupAssociations Sample", - "origin": "API_DEFINITION", - "description": " Lists associations in a given project and location. See https://google.aip.dev/132.", - "canonical": true, - "file": "intercept.list_intercept_endpoint_group_associations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListInterceptEndpointGroupAssociations", - "fullName": "google.cloud.networksecurity.v1alpha1.Intercept.ListInterceptEndpointGroupAssociations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1alpha1.ListInterceptEndpointGroupAssociationsResponse", - "client": { - "shortName": "InterceptClient", - "fullName": "google.cloud.networksecurity.v1alpha1.InterceptClient" - }, - "method": { - "shortName": "ListInterceptEndpointGroupAssociations", - "fullName": "google.cloud.networksecurity.v1alpha1.Intercept.ListInterceptEndpointGroupAssociations", - "service": { - "shortName": "Intercept", - "fullName": "google.cloud.networksecurity.v1alpha1.Intercept" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_Intercept_GetInterceptEndpointGroupAssociation_async", - "title": "DnsThreatDetectorService getInterceptEndpointGroupAssociation Sample", - "origin": "API_DEFINITION", - "description": " Gets a specific association. See https://google.aip.dev/131.", - "canonical": true, - "file": "intercept.get_intercept_endpoint_group_association.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetInterceptEndpointGroupAssociation", - "fullName": "google.cloud.networksecurity.v1alpha1.Intercept.GetInterceptEndpointGroupAssociation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1alpha1.InterceptEndpointGroupAssociation", - "client": { - "shortName": "InterceptClient", - "fullName": "google.cloud.networksecurity.v1alpha1.InterceptClient" - }, - "method": { - "shortName": "GetInterceptEndpointGroupAssociation", - "fullName": "google.cloud.networksecurity.v1alpha1.Intercept.GetInterceptEndpointGroupAssociation", - "service": { - "shortName": "Intercept", - "fullName": "google.cloud.networksecurity.v1alpha1.Intercept" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_Intercept_CreateInterceptEndpointGroupAssociation_async", - "title": "DnsThreatDetectorService createInterceptEndpointGroupAssociation Sample", - "origin": "API_DEFINITION", - "description": " Creates an association in a given project and location. See https://google.aip.dev/133.", - "canonical": true, - "file": "intercept.create_intercept_endpoint_group_association.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateInterceptEndpointGroupAssociation", - "fullName": "google.cloud.networksecurity.v1alpha1.Intercept.CreateInterceptEndpointGroupAssociation", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "intercept_endpoint_group_association_id", - "type": "TYPE_STRING" - }, - { - "name": "intercept_endpoint_group_association", - "type": ".google.cloud.networksecurity.v1alpha1.InterceptEndpointGroupAssociation" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "InterceptClient", - "fullName": "google.cloud.networksecurity.v1alpha1.InterceptClient" - }, - "method": { - "shortName": "CreateInterceptEndpointGroupAssociation", - "fullName": "google.cloud.networksecurity.v1alpha1.Intercept.CreateInterceptEndpointGroupAssociation", - "service": { - "shortName": "Intercept", - "fullName": "google.cloud.networksecurity.v1alpha1.Intercept" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_Intercept_UpdateInterceptEndpointGroupAssociation_async", - "title": "DnsThreatDetectorService updateInterceptEndpointGroupAssociation Sample", - "origin": "API_DEFINITION", - "description": " Updates an association. See https://google.aip.dev/134.", - "canonical": true, - "file": "intercept.update_intercept_endpoint_group_association.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateInterceptEndpointGroupAssociation", - "fullName": "google.cloud.networksecurity.v1alpha1.Intercept.UpdateInterceptEndpointGroupAssociation", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "intercept_endpoint_group_association", - "type": ".google.cloud.networksecurity.v1alpha1.InterceptEndpointGroupAssociation" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "InterceptClient", - "fullName": "google.cloud.networksecurity.v1alpha1.InterceptClient" - }, - "method": { - "shortName": "UpdateInterceptEndpointGroupAssociation", - "fullName": "google.cloud.networksecurity.v1alpha1.Intercept.UpdateInterceptEndpointGroupAssociation", - "service": { - "shortName": "Intercept", - "fullName": "google.cloud.networksecurity.v1alpha1.Intercept" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_Intercept_DeleteInterceptEndpointGroupAssociation_async", - "title": "DnsThreatDetectorService deleteInterceptEndpointGroupAssociation Sample", - "origin": "API_DEFINITION", - "description": " Deletes an association. See https://google.aip.dev/135.", - "canonical": true, - "file": "intercept.delete_intercept_endpoint_group_association.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteInterceptEndpointGroupAssociation", - "fullName": "google.cloud.networksecurity.v1alpha1.Intercept.DeleteInterceptEndpointGroupAssociation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "InterceptClient", - "fullName": "google.cloud.networksecurity.v1alpha1.InterceptClient" - }, - "method": { - "shortName": "DeleteInterceptEndpointGroupAssociation", - "fullName": "google.cloud.networksecurity.v1alpha1.Intercept.DeleteInterceptEndpointGroupAssociation", - "service": { - "shortName": "Intercept", - "fullName": "google.cloud.networksecurity.v1alpha1.Intercept" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_Intercept_ListInterceptDeploymentGroups_async", - "title": "DnsThreatDetectorService listInterceptDeploymentGroups Sample", - "origin": "API_DEFINITION", - "description": " Lists deployment groups in a given project and location. See https://google.aip.dev/132.", - "canonical": true, - "file": "intercept.list_intercept_deployment_groups.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListInterceptDeploymentGroups", - "fullName": "google.cloud.networksecurity.v1alpha1.Intercept.ListInterceptDeploymentGroups", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1alpha1.ListInterceptDeploymentGroupsResponse", - "client": { - "shortName": "InterceptClient", - "fullName": "google.cloud.networksecurity.v1alpha1.InterceptClient" - }, - "method": { - "shortName": "ListInterceptDeploymentGroups", - "fullName": "google.cloud.networksecurity.v1alpha1.Intercept.ListInterceptDeploymentGroups", - "service": { - "shortName": "Intercept", - "fullName": "google.cloud.networksecurity.v1alpha1.Intercept" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_Intercept_GetInterceptDeploymentGroup_async", - "title": "DnsThreatDetectorService getInterceptDeploymentGroup Sample", - "origin": "API_DEFINITION", - "description": " Gets a specific deployment group. See https://google.aip.dev/131.", - "canonical": true, - "file": "intercept.get_intercept_deployment_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetInterceptDeploymentGroup", - "fullName": "google.cloud.networksecurity.v1alpha1.Intercept.GetInterceptDeploymentGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1alpha1.InterceptDeploymentGroup", - "client": { - "shortName": "InterceptClient", - "fullName": "google.cloud.networksecurity.v1alpha1.InterceptClient" - }, - "method": { - "shortName": "GetInterceptDeploymentGroup", - "fullName": "google.cloud.networksecurity.v1alpha1.Intercept.GetInterceptDeploymentGroup", - "service": { - "shortName": "Intercept", - "fullName": "google.cloud.networksecurity.v1alpha1.Intercept" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_Intercept_CreateInterceptDeploymentGroup_async", - "title": "DnsThreatDetectorService createInterceptDeploymentGroup Sample", - "origin": "API_DEFINITION", - "description": " Creates a deployment group in a given project and location. See https://google.aip.dev/133.", - "canonical": true, - "file": "intercept.create_intercept_deployment_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateInterceptDeploymentGroup", - "fullName": "google.cloud.networksecurity.v1alpha1.Intercept.CreateInterceptDeploymentGroup", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "intercept_deployment_group_id", - "type": "TYPE_STRING" - }, - { - "name": "intercept_deployment_group", - "type": ".google.cloud.networksecurity.v1alpha1.InterceptDeploymentGroup" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "InterceptClient", - "fullName": "google.cloud.networksecurity.v1alpha1.InterceptClient" - }, - "method": { - "shortName": "CreateInterceptDeploymentGroup", - "fullName": "google.cloud.networksecurity.v1alpha1.Intercept.CreateInterceptDeploymentGroup", - "service": { - "shortName": "Intercept", - "fullName": "google.cloud.networksecurity.v1alpha1.Intercept" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_Intercept_UpdateInterceptDeploymentGroup_async", - "title": "DnsThreatDetectorService updateInterceptDeploymentGroup Sample", - "origin": "API_DEFINITION", - "description": " Updates a deployment group. See https://google.aip.dev/134.", - "canonical": true, - "file": "intercept.update_intercept_deployment_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateInterceptDeploymentGroup", - "fullName": "google.cloud.networksecurity.v1alpha1.Intercept.UpdateInterceptDeploymentGroup", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "intercept_deployment_group", - "type": ".google.cloud.networksecurity.v1alpha1.InterceptDeploymentGroup" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "InterceptClient", - "fullName": "google.cloud.networksecurity.v1alpha1.InterceptClient" - }, - "method": { - "shortName": "UpdateInterceptDeploymentGroup", - "fullName": "google.cloud.networksecurity.v1alpha1.Intercept.UpdateInterceptDeploymentGroup", - "service": { - "shortName": "Intercept", - "fullName": "google.cloud.networksecurity.v1alpha1.Intercept" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_Intercept_DeleteInterceptDeploymentGroup_async", - "title": "DnsThreatDetectorService deleteInterceptDeploymentGroup Sample", - "origin": "API_DEFINITION", - "description": " Deletes a deployment group. See https://google.aip.dev/135.", - "canonical": true, - "file": "intercept.delete_intercept_deployment_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteInterceptDeploymentGroup", - "fullName": "google.cloud.networksecurity.v1alpha1.Intercept.DeleteInterceptDeploymentGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "InterceptClient", - "fullName": "google.cloud.networksecurity.v1alpha1.InterceptClient" - }, - "method": { - "shortName": "DeleteInterceptDeploymentGroup", - "fullName": "google.cloud.networksecurity.v1alpha1.Intercept.DeleteInterceptDeploymentGroup", - "service": { - "shortName": "Intercept", - "fullName": "google.cloud.networksecurity.v1alpha1.Intercept" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_Intercept_ListInterceptDeployments_async", - "title": "DnsThreatDetectorService listInterceptDeployments Sample", - "origin": "API_DEFINITION", - "description": " Lists deployments in a given project and location. See https://google.aip.dev/132.", - "canonical": true, - "file": "intercept.list_intercept_deployments.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListInterceptDeployments", - "fullName": "google.cloud.networksecurity.v1alpha1.Intercept.ListInterceptDeployments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1alpha1.ListInterceptDeploymentsResponse", - "client": { - "shortName": "InterceptClient", - "fullName": "google.cloud.networksecurity.v1alpha1.InterceptClient" - }, - "method": { - "shortName": "ListInterceptDeployments", - "fullName": "google.cloud.networksecurity.v1alpha1.Intercept.ListInterceptDeployments", - "service": { - "shortName": "Intercept", - "fullName": "google.cloud.networksecurity.v1alpha1.Intercept" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_Intercept_GetInterceptDeployment_async", - "title": "DnsThreatDetectorService getInterceptDeployment Sample", - "origin": "API_DEFINITION", - "description": " Gets a specific deployment. See https://google.aip.dev/131.", - "canonical": true, - "file": "intercept.get_intercept_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetInterceptDeployment", - "fullName": "google.cloud.networksecurity.v1alpha1.Intercept.GetInterceptDeployment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1alpha1.InterceptDeployment", - "client": { - "shortName": "InterceptClient", - "fullName": "google.cloud.networksecurity.v1alpha1.InterceptClient" - }, - "method": { - "shortName": "GetInterceptDeployment", - "fullName": "google.cloud.networksecurity.v1alpha1.Intercept.GetInterceptDeployment", - "service": { - "shortName": "Intercept", - "fullName": "google.cloud.networksecurity.v1alpha1.Intercept" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_Intercept_CreateInterceptDeployment_async", - "title": "DnsThreatDetectorService createInterceptDeployment Sample", - "origin": "API_DEFINITION", - "description": " Creates a deployment in a given project and location. See https://google.aip.dev/133.", - "canonical": true, - "file": "intercept.create_intercept_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateInterceptDeployment", - "fullName": "google.cloud.networksecurity.v1alpha1.Intercept.CreateInterceptDeployment", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "intercept_deployment_id", - "type": "TYPE_STRING" - }, - { - "name": "intercept_deployment", - "type": ".google.cloud.networksecurity.v1alpha1.InterceptDeployment" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "InterceptClient", - "fullName": "google.cloud.networksecurity.v1alpha1.InterceptClient" - }, - "method": { - "shortName": "CreateInterceptDeployment", - "fullName": "google.cloud.networksecurity.v1alpha1.Intercept.CreateInterceptDeployment", - "service": { - "shortName": "Intercept", - "fullName": "google.cloud.networksecurity.v1alpha1.Intercept" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_Intercept_UpdateInterceptDeployment_async", - "title": "DnsThreatDetectorService updateInterceptDeployment Sample", - "origin": "API_DEFINITION", - "description": " Updates a deployment. See https://google.aip.dev/134.", - "canonical": true, - "file": "intercept.update_intercept_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateInterceptDeployment", - "fullName": "google.cloud.networksecurity.v1alpha1.Intercept.UpdateInterceptDeployment", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "intercept_deployment", - "type": ".google.cloud.networksecurity.v1alpha1.InterceptDeployment" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "InterceptClient", - "fullName": "google.cloud.networksecurity.v1alpha1.InterceptClient" - }, - "method": { - "shortName": "UpdateInterceptDeployment", - "fullName": "google.cloud.networksecurity.v1alpha1.Intercept.UpdateInterceptDeployment", - "service": { - "shortName": "Intercept", - "fullName": "google.cloud.networksecurity.v1alpha1.Intercept" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_Intercept_DeleteInterceptDeployment_async", - "title": "DnsThreatDetectorService deleteInterceptDeployment Sample", - "origin": "API_DEFINITION", - "description": " Deletes a deployment. See https://google.aip.dev/135.", - "canonical": true, - "file": "intercept.delete_intercept_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteInterceptDeployment", - "fullName": "google.cloud.networksecurity.v1alpha1.Intercept.DeleteInterceptDeployment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "InterceptClient", - "fullName": "google.cloud.networksecurity.v1alpha1.InterceptClient" - }, - "method": { - "shortName": "DeleteInterceptDeployment", - "fullName": "google.cloud.networksecurity.v1alpha1.Intercept.DeleteInterceptDeployment", - "service": { - "shortName": "Intercept", - "fullName": "google.cloud.networksecurity.v1alpha1.Intercept" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_Mirroring_ListMirroringEndpointGroups_async", - "title": "DnsThreatDetectorService listMirroringEndpointGroups Sample", - "origin": "API_DEFINITION", - "description": " Lists endpoint groups in a given project and location. See https://google.aip.dev/132.", - "canonical": true, - "file": "mirroring.list_mirroring_endpoint_groups.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMirroringEndpointGroups", - "fullName": "google.cloud.networksecurity.v1alpha1.Mirroring.ListMirroringEndpointGroups", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1alpha1.ListMirroringEndpointGroupsResponse", - "client": { - "shortName": "MirroringClient", - "fullName": "google.cloud.networksecurity.v1alpha1.MirroringClient" - }, - "method": { - "shortName": "ListMirroringEndpointGroups", - "fullName": "google.cloud.networksecurity.v1alpha1.Mirroring.ListMirroringEndpointGroups", - "service": { - "shortName": "Mirroring", - "fullName": "google.cloud.networksecurity.v1alpha1.Mirroring" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_Mirroring_GetMirroringEndpointGroup_async", - "title": "DnsThreatDetectorService getMirroringEndpointGroup Sample", - "origin": "API_DEFINITION", - "description": " Gets a specific endpoint group. See https://google.aip.dev/131.", - "canonical": true, - "file": "mirroring.get_mirroring_endpoint_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMirroringEndpointGroup", - "fullName": "google.cloud.networksecurity.v1alpha1.Mirroring.GetMirroringEndpointGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1alpha1.MirroringEndpointGroup", - "client": { - "shortName": "MirroringClient", - "fullName": "google.cloud.networksecurity.v1alpha1.MirroringClient" - }, - "method": { - "shortName": "GetMirroringEndpointGroup", - "fullName": "google.cloud.networksecurity.v1alpha1.Mirroring.GetMirroringEndpointGroup", - "service": { - "shortName": "Mirroring", - "fullName": "google.cloud.networksecurity.v1alpha1.Mirroring" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_Mirroring_CreateMirroringEndpointGroup_async", - "title": "DnsThreatDetectorService createMirroringEndpointGroup Sample", - "origin": "API_DEFINITION", - "description": " Creates an endpoint group in a given project and location. See https://google.aip.dev/133.", - "canonical": true, - "file": "mirroring.create_mirroring_endpoint_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateMirroringEndpointGroup", - "fullName": "google.cloud.networksecurity.v1alpha1.Mirroring.CreateMirroringEndpointGroup", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "mirroring_endpoint_group_id", - "type": "TYPE_STRING" - }, - { - "name": "mirroring_endpoint_group", - "type": ".google.cloud.networksecurity.v1alpha1.MirroringEndpointGroup" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MirroringClient", - "fullName": "google.cloud.networksecurity.v1alpha1.MirroringClient" - }, - "method": { - "shortName": "CreateMirroringEndpointGroup", - "fullName": "google.cloud.networksecurity.v1alpha1.Mirroring.CreateMirroringEndpointGroup", - "service": { - "shortName": "Mirroring", - "fullName": "google.cloud.networksecurity.v1alpha1.Mirroring" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_Mirroring_UpdateMirroringEndpointGroup_async", - "title": "DnsThreatDetectorService updateMirroringEndpointGroup Sample", - "origin": "API_DEFINITION", - "description": " Updates an endpoint group. See https://google.aip.dev/134.", - "canonical": true, - "file": "mirroring.update_mirroring_endpoint_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateMirroringEndpointGroup", - "fullName": "google.cloud.networksecurity.v1alpha1.Mirroring.UpdateMirroringEndpointGroup", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "mirroring_endpoint_group", - "type": ".google.cloud.networksecurity.v1alpha1.MirroringEndpointGroup" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MirroringClient", - "fullName": "google.cloud.networksecurity.v1alpha1.MirroringClient" - }, - "method": { - "shortName": "UpdateMirroringEndpointGroup", - "fullName": "google.cloud.networksecurity.v1alpha1.Mirroring.UpdateMirroringEndpointGroup", - "service": { - "shortName": "Mirroring", - "fullName": "google.cloud.networksecurity.v1alpha1.Mirroring" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_Mirroring_DeleteMirroringEndpointGroup_async", - "title": "DnsThreatDetectorService deleteMirroringEndpointGroup Sample", - "origin": "API_DEFINITION", - "description": " Deletes an endpoint group. See https://google.aip.dev/135.", - "canonical": true, - "file": "mirroring.delete_mirroring_endpoint_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteMirroringEndpointGroup", - "fullName": "google.cloud.networksecurity.v1alpha1.Mirroring.DeleteMirroringEndpointGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MirroringClient", - "fullName": "google.cloud.networksecurity.v1alpha1.MirroringClient" - }, - "method": { - "shortName": "DeleteMirroringEndpointGroup", - "fullName": "google.cloud.networksecurity.v1alpha1.Mirroring.DeleteMirroringEndpointGroup", - "service": { - "shortName": "Mirroring", - "fullName": "google.cloud.networksecurity.v1alpha1.Mirroring" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_Mirroring_ListMirroringEndpointGroupAssociations_async", - "title": "DnsThreatDetectorService listMirroringEndpointGroupAssociations Sample", - "origin": "API_DEFINITION", - "description": " Lists associations in a given project and location. See https://google.aip.dev/132.", - "canonical": true, - "file": "mirroring.list_mirroring_endpoint_group_associations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMirroringEndpointGroupAssociations", - "fullName": "google.cloud.networksecurity.v1alpha1.Mirroring.ListMirroringEndpointGroupAssociations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1alpha1.ListMirroringEndpointGroupAssociationsResponse", - "client": { - "shortName": "MirroringClient", - "fullName": "google.cloud.networksecurity.v1alpha1.MirroringClient" - }, - "method": { - "shortName": "ListMirroringEndpointGroupAssociations", - "fullName": "google.cloud.networksecurity.v1alpha1.Mirroring.ListMirroringEndpointGroupAssociations", - "service": { - "shortName": "Mirroring", - "fullName": "google.cloud.networksecurity.v1alpha1.Mirroring" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_Mirroring_GetMirroringEndpointGroupAssociation_async", - "title": "DnsThreatDetectorService getMirroringEndpointGroupAssociation Sample", - "origin": "API_DEFINITION", - "description": " Gets a specific association. See https://google.aip.dev/131.", - "canonical": true, - "file": "mirroring.get_mirroring_endpoint_group_association.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMirroringEndpointGroupAssociation", - "fullName": "google.cloud.networksecurity.v1alpha1.Mirroring.GetMirroringEndpointGroupAssociation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1alpha1.MirroringEndpointGroupAssociation", - "client": { - "shortName": "MirroringClient", - "fullName": "google.cloud.networksecurity.v1alpha1.MirroringClient" - }, - "method": { - "shortName": "GetMirroringEndpointGroupAssociation", - "fullName": "google.cloud.networksecurity.v1alpha1.Mirroring.GetMirroringEndpointGroupAssociation", - "service": { - "shortName": "Mirroring", - "fullName": "google.cloud.networksecurity.v1alpha1.Mirroring" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_Mirroring_CreateMirroringEndpointGroupAssociation_async", - "title": "DnsThreatDetectorService createMirroringEndpointGroupAssociation Sample", - "origin": "API_DEFINITION", - "description": " Creates an association in a given project and location. See https://google.aip.dev/133.", - "canonical": true, - "file": "mirroring.create_mirroring_endpoint_group_association.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateMirroringEndpointGroupAssociation", - "fullName": "google.cloud.networksecurity.v1alpha1.Mirroring.CreateMirroringEndpointGroupAssociation", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "mirroring_endpoint_group_association_id", - "type": "TYPE_STRING" - }, - { - "name": "mirroring_endpoint_group_association", - "type": ".google.cloud.networksecurity.v1alpha1.MirroringEndpointGroupAssociation" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MirroringClient", - "fullName": "google.cloud.networksecurity.v1alpha1.MirroringClient" - }, - "method": { - "shortName": "CreateMirroringEndpointGroupAssociation", - "fullName": "google.cloud.networksecurity.v1alpha1.Mirroring.CreateMirroringEndpointGroupAssociation", - "service": { - "shortName": "Mirroring", - "fullName": "google.cloud.networksecurity.v1alpha1.Mirroring" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_Mirroring_UpdateMirroringEndpointGroupAssociation_async", - "title": "DnsThreatDetectorService updateMirroringEndpointGroupAssociation Sample", - "origin": "API_DEFINITION", - "description": " Updates an association. See https://google.aip.dev/134.", - "canonical": true, - "file": "mirroring.update_mirroring_endpoint_group_association.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateMirroringEndpointGroupAssociation", - "fullName": "google.cloud.networksecurity.v1alpha1.Mirroring.UpdateMirroringEndpointGroupAssociation", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "mirroring_endpoint_group_association", - "type": ".google.cloud.networksecurity.v1alpha1.MirroringEndpointGroupAssociation" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MirroringClient", - "fullName": "google.cloud.networksecurity.v1alpha1.MirroringClient" - }, - "method": { - "shortName": "UpdateMirroringEndpointGroupAssociation", - "fullName": "google.cloud.networksecurity.v1alpha1.Mirroring.UpdateMirroringEndpointGroupAssociation", - "service": { - "shortName": "Mirroring", - "fullName": "google.cloud.networksecurity.v1alpha1.Mirroring" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_Mirroring_DeleteMirroringEndpointGroupAssociation_async", - "title": "DnsThreatDetectorService deleteMirroringEndpointGroupAssociation Sample", - "origin": "API_DEFINITION", - "description": " Deletes an association. See https://google.aip.dev/135.", - "canonical": true, - "file": "mirroring.delete_mirroring_endpoint_group_association.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteMirroringEndpointGroupAssociation", - "fullName": "google.cloud.networksecurity.v1alpha1.Mirroring.DeleteMirroringEndpointGroupAssociation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MirroringClient", - "fullName": "google.cloud.networksecurity.v1alpha1.MirroringClient" - }, - "method": { - "shortName": "DeleteMirroringEndpointGroupAssociation", - "fullName": "google.cloud.networksecurity.v1alpha1.Mirroring.DeleteMirroringEndpointGroupAssociation", - "service": { - "shortName": "Mirroring", - "fullName": "google.cloud.networksecurity.v1alpha1.Mirroring" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_Mirroring_ListMirroringDeploymentGroups_async", - "title": "DnsThreatDetectorService listMirroringDeploymentGroups Sample", - "origin": "API_DEFINITION", - "description": " Lists deployment groups in a given project and location. See https://google.aip.dev/132.", - "canonical": true, - "file": "mirroring.list_mirroring_deployment_groups.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMirroringDeploymentGroups", - "fullName": "google.cloud.networksecurity.v1alpha1.Mirroring.ListMirroringDeploymentGroups", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1alpha1.ListMirroringDeploymentGroupsResponse", - "client": { - "shortName": "MirroringClient", - "fullName": "google.cloud.networksecurity.v1alpha1.MirroringClient" - }, - "method": { - "shortName": "ListMirroringDeploymentGroups", - "fullName": "google.cloud.networksecurity.v1alpha1.Mirroring.ListMirroringDeploymentGroups", - "service": { - "shortName": "Mirroring", - "fullName": "google.cloud.networksecurity.v1alpha1.Mirroring" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_Mirroring_GetMirroringDeploymentGroup_async", - "title": "DnsThreatDetectorService getMirroringDeploymentGroup Sample", - "origin": "API_DEFINITION", - "description": " Gets a specific deployment group. See https://google.aip.dev/131.", - "canonical": true, - "file": "mirroring.get_mirroring_deployment_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMirroringDeploymentGroup", - "fullName": "google.cloud.networksecurity.v1alpha1.Mirroring.GetMirroringDeploymentGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1alpha1.MirroringDeploymentGroup", - "client": { - "shortName": "MirroringClient", - "fullName": "google.cloud.networksecurity.v1alpha1.MirroringClient" - }, - "method": { - "shortName": "GetMirroringDeploymentGroup", - "fullName": "google.cloud.networksecurity.v1alpha1.Mirroring.GetMirroringDeploymentGroup", - "service": { - "shortName": "Mirroring", - "fullName": "google.cloud.networksecurity.v1alpha1.Mirroring" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_Mirroring_CreateMirroringDeploymentGroup_async", - "title": "DnsThreatDetectorService createMirroringDeploymentGroup Sample", - "origin": "API_DEFINITION", - "description": " Creates a deployment group in a given project and location. See https://google.aip.dev/133.", - "canonical": true, - "file": "mirroring.create_mirroring_deployment_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateMirroringDeploymentGroup", - "fullName": "google.cloud.networksecurity.v1alpha1.Mirroring.CreateMirroringDeploymentGroup", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "mirroring_deployment_group_id", - "type": "TYPE_STRING" - }, - { - "name": "mirroring_deployment_group", - "type": ".google.cloud.networksecurity.v1alpha1.MirroringDeploymentGroup" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MirroringClient", - "fullName": "google.cloud.networksecurity.v1alpha1.MirroringClient" - }, - "method": { - "shortName": "CreateMirroringDeploymentGroup", - "fullName": "google.cloud.networksecurity.v1alpha1.Mirroring.CreateMirroringDeploymentGroup", - "service": { - "shortName": "Mirroring", - "fullName": "google.cloud.networksecurity.v1alpha1.Mirroring" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_Mirroring_UpdateMirroringDeploymentGroup_async", - "title": "DnsThreatDetectorService updateMirroringDeploymentGroup Sample", - "origin": "API_DEFINITION", - "description": " Updates a deployment group. See https://google.aip.dev/134.", - "canonical": true, - "file": "mirroring.update_mirroring_deployment_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateMirroringDeploymentGroup", - "fullName": "google.cloud.networksecurity.v1alpha1.Mirroring.UpdateMirroringDeploymentGroup", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "mirroring_deployment_group", - "type": ".google.cloud.networksecurity.v1alpha1.MirroringDeploymentGroup" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MirroringClient", - "fullName": "google.cloud.networksecurity.v1alpha1.MirroringClient" - }, - "method": { - "shortName": "UpdateMirroringDeploymentGroup", - "fullName": "google.cloud.networksecurity.v1alpha1.Mirroring.UpdateMirroringDeploymentGroup", - "service": { - "shortName": "Mirroring", - "fullName": "google.cloud.networksecurity.v1alpha1.Mirroring" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_Mirroring_DeleteMirroringDeploymentGroup_async", - "title": "DnsThreatDetectorService deleteMirroringDeploymentGroup Sample", - "origin": "API_DEFINITION", - "description": " Deletes a deployment group. See https://google.aip.dev/135.", - "canonical": true, - "file": "mirroring.delete_mirroring_deployment_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteMirroringDeploymentGroup", - "fullName": "google.cloud.networksecurity.v1alpha1.Mirroring.DeleteMirroringDeploymentGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MirroringClient", - "fullName": "google.cloud.networksecurity.v1alpha1.MirroringClient" - }, - "method": { - "shortName": "DeleteMirroringDeploymentGroup", - "fullName": "google.cloud.networksecurity.v1alpha1.Mirroring.DeleteMirroringDeploymentGroup", - "service": { - "shortName": "Mirroring", - "fullName": "google.cloud.networksecurity.v1alpha1.Mirroring" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_Mirroring_ListMirroringDeployments_async", - "title": "DnsThreatDetectorService listMirroringDeployments Sample", - "origin": "API_DEFINITION", - "description": " Lists deployments in a given project and location. See https://google.aip.dev/132.", - "canonical": true, - "file": "mirroring.list_mirroring_deployments.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMirroringDeployments", - "fullName": "google.cloud.networksecurity.v1alpha1.Mirroring.ListMirroringDeployments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1alpha1.ListMirroringDeploymentsResponse", - "client": { - "shortName": "MirroringClient", - "fullName": "google.cloud.networksecurity.v1alpha1.MirroringClient" - }, - "method": { - "shortName": "ListMirroringDeployments", - "fullName": "google.cloud.networksecurity.v1alpha1.Mirroring.ListMirroringDeployments", - "service": { - "shortName": "Mirroring", - "fullName": "google.cloud.networksecurity.v1alpha1.Mirroring" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_Mirroring_GetMirroringDeployment_async", - "title": "DnsThreatDetectorService getMirroringDeployment Sample", - "origin": "API_DEFINITION", - "description": " Gets a specific deployment. See https://google.aip.dev/131.", - "canonical": true, - "file": "mirroring.get_mirroring_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMirroringDeployment", - "fullName": "google.cloud.networksecurity.v1alpha1.Mirroring.GetMirroringDeployment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1alpha1.MirroringDeployment", - "client": { - "shortName": "MirroringClient", - "fullName": "google.cloud.networksecurity.v1alpha1.MirroringClient" - }, - "method": { - "shortName": "GetMirroringDeployment", - "fullName": "google.cloud.networksecurity.v1alpha1.Mirroring.GetMirroringDeployment", - "service": { - "shortName": "Mirroring", - "fullName": "google.cloud.networksecurity.v1alpha1.Mirroring" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_Mirroring_CreateMirroringDeployment_async", - "title": "DnsThreatDetectorService createMirroringDeployment Sample", - "origin": "API_DEFINITION", - "description": " Creates a deployment in a given project and location. See https://google.aip.dev/133.", - "canonical": true, - "file": "mirroring.create_mirroring_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateMirroringDeployment", - "fullName": "google.cloud.networksecurity.v1alpha1.Mirroring.CreateMirroringDeployment", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "mirroring_deployment_id", - "type": "TYPE_STRING" - }, - { - "name": "mirroring_deployment", - "type": ".google.cloud.networksecurity.v1alpha1.MirroringDeployment" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MirroringClient", - "fullName": "google.cloud.networksecurity.v1alpha1.MirroringClient" - }, - "method": { - "shortName": "CreateMirroringDeployment", - "fullName": "google.cloud.networksecurity.v1alpha1.Mirroring.CreateMirroringDeployment", - "service": { - "shortName": "Mirroring", - "fullName": "google.cloud.networksecurity.v1alpha1.Mirroring" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_Mirroring_UpdateMirroringDeployment_async", - "title": "DnsThreatDetectorService updateMirroringDeployment Sample", - "origin": "API_DEFINITION", - "description": " Updates a deployment. See https://google.aip.dev/134.", - "canonical": true, - "file": "mirroring.update_mirroring_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateMirroringDeployment", - "fullName": "google.cloud.networksecurity.v1alpha1.Mirroring.UpdateMirroringDeployment", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "mirroring_deployment", - "type": ".google.cloud.networksecurity.v1alpha1.MirroringDeployment" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MirroringClient", - "fullName": "google.cloud.networksecurity.v1alpha1.MirroringClient" - }, - "method": { - "shortName": "UpdateMirroringDeployment", - "fullName": "google.cloud.networksecurity.v1alpha1.Mirroring.UpdateMirroringDeployment", - "service": { - "shortName": "Mirroring", - "fullName": "google.cloud.networksecurity.v1alpha1.Mirroring" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_Mirroring_DeleteMirroringDeployment_async", - "title": "DnsThreatDetectorService deleteMirroringDeployment Sample", - "origin": "API_DEFINITION", - "description": " Deletes a deployment. See https://google.aip.dev/135.", - "canonical": true, - "file": "mirroring.delete_mirroring_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteMirroringDeployment", - "fullName": "google.cloud.networksecurity.v1alpha1.Mirroring.DeleteMirroringDeployment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MirroringClient", - "fullName": "google.cloud.networksecurity.v1alpha1.MirroringClient" - }, - "method": { - "shortName": "DeleteMirroringDeployment", - "fullName": "google.cloud.networksecurity.v1alpha1.Mirroring.DeleteMirroringDeployment", - "service": { - "shortName": "Mirroring", - "fullName": "google.cloud.networksecurity.v1alpha1.Mirroring" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_NetworkSecurity_ListAuthorizationPolicies_async", - "title": "DnsThreatDetectorService listAuthorizationPolicies Sample", - "origin": "API_DEFINITION", - "description": " Lists AuthorizationPolicies in a given project and location.", - "canonical": true, - "file": "network_security.list_authorization_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAuthorizationPolicies", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.ListAuthorizationPolicies", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1alpha1.ListAuthorizationPoliciesResponse", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurityClient" - }, - "method": { - "shortName": "ListAuthorizationPolicies", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.ListAuthorizationPolicies", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_NetworkSecurity_GetAuthorizationPolicy_async", - "title": "DnsThreatDetectorService getAuthorizationPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single AuthorizationPolicy.", - "canonical": true, - "file": "network_security.get_authorization_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAuthorizationPolicy", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.GetAuthorizationPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1alpha1.AuthorizationPolicy", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurityClient" - }, - "method": { - "shortName": "GetAuthorizationPolicy", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.GetAuthorizationPolicy", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_NetworkSecurity_CreateAuthorizationPolicy_async", - "title": "DnsThreatDetectorService createAuthorizationPolicy Sample", - "origin": "API_DEFINITION", - "description": " Creates a new AuthorizationPolicy in a given project and location.", - "canonical": true, - "file": "network_security.create_authorization_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAuthorizationPolicy", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.CreateAuthorizationPolicy", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "authorization_policy_id", - "type": "TYPE_STRING" - }, - { - "name": "authorization_policy", - "type": ".google.cloud.networksecurity.v1alpha1.AuthorizationPolicy" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurityClient" - }, - "method": { - "shortName": "CreateAuthorizationPolicy", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.CreateAuthorizationPolicy", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_NetworkSecurity_UpdateAuthorizationPolicy_async", - "title": "DnsThreatDetectorService updateAuthorizationPolicy Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single AuthorizationPolicy.", - "canonical": true, - "file": "network_security.update_authorization_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAuthorizationPolicy", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.UpdateAuthorizationPolicy", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "authorization_policy", - "type": ".google.cloud.networksecurity.v1alpha1.AuthorizationPolicy" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurityClient" - }, - "method": { - "shortName": "UpdateAuthorizationPolicy", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.UpdateAuthorizationPolicy", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_NetworkSecurity_DeleteAuthorizationPolicy_async", - "title": "DnsThreatDetectorService deleteAuthorizationPolicy Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single AuthorizationPolicy.", - "canonical": true, - "file": "network_security.delete_authorization_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAuthorizationPolicy", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.DeleteAuthorizationPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurityClient" - }, - "method": { - "shortName": "DeleteAuthorizationPolicy", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.DeleteAuthorizationPolicy", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_NetworkSecurity_ListBackendAuthenticationConfigs_async", - "title": "DnsThreatDetectorService listBackendAuthenticationConfigs Sample", - "origin": "API_DEFINITION", - "description": " Lists BackendAuthenticationConfigs in a given project and location.", - "canonical": true, - "file": "network_security.list_backend_authentication_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBackendAuthenticationConfigs", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.ListBackendAuthenticationConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1alpha1.ListBackendAuthenticationConfigsResponse", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurityClient" - }, - "method": { - "shortName": "ListBackendAuthenticationConfigs", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.ListBackendAuthenticationConfigs", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_NetworkSecurity_GetBackendAuthenticationConfig_async", - "title": "DnsThreatDetectorService getBackendAuthenticationConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single BackendAuthenticationConfig to BackendAuthenticationConfig.", - "canonical": true, - "file": "network_security.get_backend_authentication_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBackendAuthenticationConfig", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.GetBackendAuthenticationConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1alpha1.BackendAuthenticationConfig", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurityClient" - }, - "method": { - "shortName": "GetBackendAuthenticationConfig", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.GetBackendAuthenticationConfig", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_NetworkSecurity_CreateBackendAuthenticationConfig_async", - "title": "DnsThreatDetectorService createBackendAuthenticationConfig Sample", - "origin": "API_DEFINITION", - "description": " Creates a new BackendAuthenticationConfig in a given project and location.", - "canonical": true, - "file": "network_security.create_backend_authentication_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateBackendAuthenticationConfig", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.CreateBackendAuthenticationConfig", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "backend_authentication_config_id", - "type": "TYPE_STRING" - }, - { - "name": "backend_authentication_config", - "type": ".google.cloud.networksecurity.v1alpha1.BackendAuthenticationConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurityClient" - }, - "method": { - "shortName": "CreateBackendAuthenticationConfig", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.CreateBackendAuthenticationConfig", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_NetworkSecurity_UpdateBackendAuthenticationConfig_async", - "title": "DnsThreatDetectorService updateBackendAuthenticationConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single BackendAuthenticationConfig to BackendAuthenticationConfig.", - "canonical": true, - "file": "network_security.update_backend_authentication_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateBackendAuthenticationConfig", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.UpdateBackendAuthenticationConfig", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "backend_authentication_config", - "type": ".google.cloud.networksecurity.v1alpha1.BackendAuthenticationConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurityClient" - }, - "method": { - "shortName": "UpdateBackendAuthenticationConfig", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.UpdateBackendAuthenticationConfig", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_NetworkSecurity_DeleteBackendAuthenticationConfig_async", - "title": "DnsThreatDetectorService deleteBackendAuthenticationConfig Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single BackendAuthenticationConfig to BackendAuthenticationConfig.", - "canonical": true, - "file": "network_security.delete_backend_authentication_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteBackendAuthenticationConfig", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.DeleteBackendAuthenticationConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurityClient" - }, - "method": { - "shortName": "DeleteBackendAuthenticationConfig", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.DeleteBackendAuthenticationConfig", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_NetworkSecurity_ListServerTlsPolicies_async", - "title": "DnsThreatDetectorService listServerTlsPolicies Sample", - "origin": "API_DEFINITION", - "description": " Lists ServerTlsPolicies in a given project and location.", - "canonical": true, - "file": "network_security.list_server_tls_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListServerTlsPolicies", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.ListServerTlsPolicies", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.networksecurity.v1alpha1.ListServerTlsPoliciesResponse", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurityClient" - }, - "method": { - "shortName": "ListServerTlsPolicies", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.ListServerTlsPolicies", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_NetworkSecurity_GetServerTlsPolicy_async", - "title": "DnsThreatDetectorService getServerTlsPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single ServerTlsPolicy.", - "canonical": true, - "file": "network_security.get_server_tls_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetServerTlsPolicy", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.GetServerTlsPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1alpha1.ServerTlsPolicy", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurityClient" - }, - "method": { - "shortName": "GetServerTlsPolicy", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.GetServerTlsPolicy", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_NetworkSecurity_CreateServerTlsPolicy_async", - "title": "DnsThreatDetectorService createServerTlsPolicy Sample", - "origin": "API_DEFINITION", - "description": " Creates a new ServerTlsPolicy in a given project and location.", - "canonical": true, - "file": "network_security.create_server_tls_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateServerTlsPolicy", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.CreateServerTlsPolicy", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "server_tls_policy_id", - "type": "TYPE_STRING" - }, - { - "name": "server_tls_policy", - "type": ".google.cloud.networksecurity.v1alpha1.ServerTlsPolicy" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurityClient" - }, - "method": { - "shortName": "CreateServerTlsPolicy", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.CreateServerTlsPolicy", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_NetworkSecurity_UpdateServerTlsPolicy_async", - "title": "DnsThreatDetectorService updateServerTlsPolicy Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single ServerTlsPolicy.", - "canonical": true, - "file": "network_security.update_server_tls_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateServerTlsPolicy", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.UpdateServerTlsPolicy", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "server_tls_policy", - "type": ".google.cloud.networksecurity.v1alpha1.ServerTlsPolicy" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurityClient" - }, - "method": { - "shortName": "UpdateServerTlsPolicy", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.UpdateServerTlsPolicy", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_NetworkSecurity_DeleteServerTlsPolicy_async", - "title": "DnsThreatDetectorService deleteServerTlsPolicy Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single ServerTlsPolicy.", - "canonical": true, - "file": "network_security.delete_server_tls_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteServerTlsPolicy", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.DeleteServerTlsPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurityClient" - }, - "method": { - "shortName": "DeleteServerTlsPolicy", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.DeleteServerTlsPolicy", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_NetworkSecurity_ListClientTlsPolicies_async", - "title": "DnsThreatDetectorService listClientTlsPolicies Sample", - "origin": "API_DEFINITION", - "description": " Lists ClientTlsPolicies in a given project and location.", - "canonical": true, - "file": "network_security.list_client_tls_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListClientTlsPolicies", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.ListClientTlsPolicies", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1alpha1.ListClientTlsPoliciesResponse", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurityClient" - }, - "method": { - "shortName": "ListClientTlsPolicies", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.ListClientTlsPolicies", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_NetworkSecurity_GetClientTlsPolicy_async", - "title": "DnsThreatDetectorService getClientTlsPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single ClientTlsPolicy.", - "canonical": true, - "file": "network_security.get_client_tls_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetClientTlsPolicy", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.GetClientTlsPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1alpha1.ClientTlsPolicy", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurityClient" - }, - "method": { - "shortName": "GetClientTlsPolicy", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.GetClientTlsPolicy", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_NetworkSecurity_CreateClientTlsPolicy_async", - "title": "DnsThreatDetectorService createClientTlsPolicy Sample", - "origin": "API_DEFINITION", - "description": " Creates a new ClientTlsPolicy in a given project and location.", - "canonical": true, - "file": "network_security.create_client_tls_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateClientTlsPolicy", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.CreateClientTlsPolicy", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "client_tls_policy_id", - "type": "TYPE_STRING" - }, - { - "name": "client_tls_policy", - "type": ".google.cloud.networksecurity.v1alpha1.ClientTlsPolicy" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurityClient" - }, - "method": { - "shortName": "CreateClientTlsPolicy", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.CreateClientTlsPolicy", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_NetworkSecurity_UpdateClientTlsPolicy_async", - "title": "DnsThreatDetectorService updateClientTlsPolicy Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single ClientTlsPolicy.", - "canonical": true, - "file": "network_security.update_client_tls_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateClientTlsPolicy", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.UpdateClientTlsPolicy", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "client_tls_policy", - "type": ".google.cloud.networksecurity.v1alpha1.ClientTlsPolicy" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurityClient" - }, - "method": { - "shortName": "UpdateClientTlsPolicy", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.UpdateClientTlsPolicy", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_NetworkSecurity_DeleteClientTlsPolicy_async", - "title": "DnsThreatDetectorService deleteClientTlsPolicy Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single ClientTlsPolicy.", - "canonical": true, - "file": "network_security.delete_client_tls_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteClientTlsPolicy", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.DeleteClientTlsPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurityClient" - }, - "method": { - "shortName": "DeleteClientTlsPolicy", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.DeleteClientTlsPolicy", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_NetworkSecurity_ListGatewaySecurityPolicies_async", - "title": "DnsThreatDetectorService listGatewaySecurityPolicies Sample", - "origin": "API_DEFINITION", - "description": " Lists GatewaySecurityPolicies in a given project and location.", - "canonical": true, - "file": "network_security.list_gateway_security_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListGatewaySecurityPolicies", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.ListGatewaySecurityPolicies", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1alpha1.ListGatewaySecurityPoliciesResponse", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurityClient" - }, - "method": { - "shortName": "ListGatewaySecurityPolicies", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.ListGatewaySecurityPolicies", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_NetworkSecurity_GetGatewaySecurityPolicy_async", - "title": "DnsThreatDetectorService getGatewaySecurityPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single GatewaySecurityPolicy.", - "canonical": true, - "file": "network_security.get_gateway_security_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetGatewaySecurityPolicy", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.GetGatewaySecurityPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1alpha1.GatewaySecurityPolicy", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurityClient" - }, - "method": { - "shortName": "GetGatewaySecurityPolicy", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.GetGatewaySecurityPolicy", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_NetworkSecurity_CreateGatewaySecurityPolicy_async", - "title": "DnsThreatDetectorService createGatewaySecurityPolicy Sample", - "origin": "API_DEFINITION", - "description": " Creates a new GatewaySecurityPolicy in a given project and location.", - "canonical": true, - "file": "network_security.create_gateway_security_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateGatewaySecurityPolicy", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.CreateGatewaySecurityPolicy", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "gateway_security_policy_id", - "type": "TYPE_STRING" - }, - { - "name": "gateway_security_policy", - "type": ".google.cloud.networksecurity.v1alpha1.GatewaySecurityPolicy" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurityClient" - }, - "method": { - "shortName": "CreateGatewaySecurityPolicy", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.CreateGatewaySecurityPolicy", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_NetworkSecurity_UpdateGatewaySecurityPolicy_async", - "title": "DnsThreatDetectorService updateGatewaySecurityPolicy Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single GatewaySecurityPolicy.", - "canonical": true, - "file": "network_security.update_gateway_security_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateGatewaySecurityPolicy", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.UpdateGatewaySecurityPolicy", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "gateway_security_policy", - "type": ".google.cloud.networksecurity.v1alpha1.GatewaySecurityPolicy" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurityClient" - }, - "method": { - "shortName": "UpdateGatewaySecurityPolicy", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.UpdateGatewaySecurityPolicy", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_NetworkSecurity_DeleteGatewaySecurityPolicy_async", - "title": "DnsThreatDetectorService deleteGatewaySecurityPolicy Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single GatewaySecurityPolicy.", - "canonical": true, - "file": "network_security.delete_gateway_security_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteGatewaySecurityPolicy", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.DeleteGatewaySecurityPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurityClient" - }, - "method": { - "shortName": "DeleteGatewaySecurityPolicy", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.DeleteGatewaySecurityPolicy", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_NetworkSecurity_ListGatewaySecurityPolicyRules_async", - "title": "DnsThreatDetectorService listGatewaySecurityPolicyRules Sample", - "origin": "API_DEFINITION", - "description": " Lists GatewaySecurityPolicyRules in a given project and location.", - "canonical": true, - "file": "network_security.list_gateway_security_policy_rules.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListGatewaySecurityPolicyRules", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.ListGatewaySecurityPolicyRules", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1alpha1.ListGatewaySecurityPolicyRulesResponse", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurityClient" - }, - "method": { - "shortName": "ListGatewaySecurityPolicyRules", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.ListGatewaySecurityPolicyRules", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_NetworkSecurity_GetGatewaySecurityPolicyRule_async", - "title": "DnsThreatDetectorService getGatewaySecurityPolicyRule Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single GatewaySecurityPolicyRule.", - "canonical": true, - "file": "network_security.get_gateway_security_policy_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetGatewaySecurityPolicyRule", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.GetGatewaySecurityPolicyRule", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1alpha1.GatewaySecurityPolicyRule", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurityClient" - }, - "method": { - "shortName": "GetGatewaySecurityPolicyRule", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.GetGatewaySecurityPolicyRule", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_NetworkSecurity_CreateGatewaySecurityPolicyRule_async", - "title": "DnsThreatDetectorService createGatewaySecurityPolicyRule Sample", - "origin": "API_DEFINITION", - "description": " Creates a new GatewaySecurityPolicy in a given project and location.", - "canonical": true, - "file": "network_security.create_gateway_security_policy_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateGatewaySecurityPolicyRule", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.CreateGatewaySecurityPolicyRule", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "gateway_security_policy_rule", - "type": ".google.cloud.networksecurity.v1alpha1.GatewaySecurityPolicyRule" - }, - { - "name": "gateway_security_policy_rule_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurityClient" - }, - "method": { - "shortName": "CreateGatewaySecurityPolicyRule", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.CreateGatewaySecurityPolicyRule", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_NetworkSecurity_UpdateGatewaySecurityPolicyRule_async", - "title": "DnsThreatDetectorService updateGatewaySecurityPolicyRule Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single GatewaySecurityPolicyRule.", - "canonical": true, - "file": "network_security.update_gateway_security_policy_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateGatewaySecurityPolicyRule", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.UpdateGatewaySecurityPolicyRule", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "gateway_security_policy_rule", - "type": ".google.cloud.networksecurity.v1alpha1.GatewaySecurityPolicyRule" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurityClient" - }, - "method": { - "shortName": "UpdateGatewaySecurityPolicyRule", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.UpdateGatewaySecurityPolicyRule", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_NetworkSecurity_DeleteGatewaySecurityPolicyRule_async", - "title": "DnsThreatDetectorService deleteGatewaySecurityPolicyRule Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single GatewaySecurityPolicyRule.", - "canonical": true, - "file": "network_security.delete_gateway_security_policy_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteGatewaySecurityPolicyRule", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.DeleteGatewaySecurityPolicyRule", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurityClient" - }, - "method": { - "shortName": "DeleteGatewaySecurityPolicyRule", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.DeleteGatewaySecurityPolicyRule", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_NetworkSecurity_ListUrlLists_async", - "title": "DnsThreatDetectorService listUrlLists Sample", - "origin": "API_DEFINITION", - "description": " Lists UrlLists in a given project and location.", - "canonical": true, - "file": "network_security.list_url_lists.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListUrlLists", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.ListUrlLists", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1alpha1.ListUrlListsResponse", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurityClient" - }, - "method": { - "shortName": "ListUrlLists", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.ListUrlLists", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_NetworkSecurity_GetUrlList_async", - "title": "DnsThreatDetectorService getUrlList Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single UrlList.", - "canonical": true, - "file": "network_security.get_url_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetUrlList", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.GetUrlList", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1alpha1.UrlList", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurityClient" - }, - "method": { - "shortName": "GetUrlList", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.GetUrlList", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_NetworkSecurity_CreateUrlList_async", - "title": "DnsThreatDetectorService createUrlList Sample", - "origin": "API_DEFINITION", - "description": " Creates a new UrlList in a given project and location.", - "canonical": true, - "file": "network_security.create_url_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateUrlList", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.CreateUrlList", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "url_list_id", - "type": "TYPE_STRING" - }, - { - "name": "url_list", - "type": ".google.cloud.networksecurity.v1alpha1.UrlList" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurityClient" - }, - "method": { - "shortName": "CreateUrlList", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.CreateUrlList", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_NetworkSecurity_UpdateUrlList_async", - "title": "DnsThreatDetectorService updateUrlList Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single UrlList.", - "canonical": true, - "file": "network_security.update_url_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateUrlList", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.UpdateUrlList", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "url_list", - "type": ".google.cloud.networksecurity.v1alpha1.UrlList" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurityClient" - }, - "method": { - "shortName": "UpdateUrlList", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.UpdateUrlList", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_NetworkSecurity_DeleteUrlList_async", - "title": "DnsThreatDetectorService deleteUrlList Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single UrlList.", - "canonical": true, - "file": "network_security.delete_url_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteUrlList", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.DeleteUrlList", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurityClient" - }, - "method": { - "shortName": "DeleteUrlList", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.DeleteUrlList", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_NetworkSecurity_ListTlsInspectionPolicies_async", - "title": "DnsThreatDetectorService listTlsInspectionPolicies Sample", - "origin": "API_DEFINITION", - "description": " Lists TlsInspectionPolicies in a given project and location.", - "canonical": true, - "file": "network_security.list_tls_inspection_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTlsInspectionPolicies", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.ListTlsInspectionPolicies", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1alpha1.ListTlsInspectionPoliciesResponse", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurityClient" - }, - "method": { - "shortName": "ListTlsInspectionPolicies", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.ListTlsInspectionPolicies", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_NetworkSecurity_GetTlsInspectionPolicy_async", - "title": "DnsThreatDetectorService getTlsInspectionPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single TlsInspectionPolicy.", - "canonical": true, - "file": "network_security.get_tls_inspection_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTlsInspectionPolicy", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.GetTlsInspectionPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1alpha1.TlsInspectionPolicy", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurityClient" - }, - "method": { - "shortName": "GetTlsInspectionPolicy", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.GetTlsInspectionPolicy", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_NetworkSecurity_CreateTlsInspectionPolicy_async", - "title": "DnsThreatDetectorService createTlsInspectionPolicy Sample", - "origin": "API_DEFINITION", - "description": " Creates a new TlsInspectionPolicy in a given project and location.", - "canonical": true, - "file": "network_security.create_tls_inspection_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTlsInspectionPolicy", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.CreateTlsInspectionPolicy", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "tls_inspection_policy_id", - "type": "TYPE_STRING" - }, - { - "name": "tls_inspection_policy", - "type": ".google.cloud.networksecurity.v1alpha1.TlsInspectionPolicy" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurityClient" - }, - "method": { - "shortName": "CreateTlsInspectionPolicy", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.CreateTlsInspectionPolicy", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_NetworkSecurity_UpdateTlsInspectionPolicy_async", - "title": "DnsThreatDetectorService updateTlsInspectionPolicy Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single TlsInspectionPolicy.", - "canonical": true, - "file": "network_security.update_tls_inspection_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTlsInspectionPolicy", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.UpdateTlsInspectionPolicy", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "tls_inspection_policy", - "type": ".google.cloud.networksecurity.v1alpha1.TlsInspectionPolicy" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurityClient" - }, - "method": { - "shortName": "UpdateTlsInspectionPolicy", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.UpdateTlsInspectionPolicy", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_NetworkSecurity_DeleteTlsInspectionPolicy_async", - "title": "DnsThreatDetectorService deleteTlsInspectionPolicy Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single TlsInspectionPolicy.", - "canonical": true, - "file": "network_security.delete_tls_inspection_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTlsInspectionPolicy", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.DeleteTlsInspectionPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurityClient" - }, - "method": { - "shortName": "DeleteTlsInspectionPolicy", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.DeleteTlsInspectionPolicy", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_NetworkSecurity_ListAuthzPolicies_async", - "title": "DnsThreatDetectorService listAuthzPolicies Sample", - "origin": "API_DEFINITION", - "description": " Lists AuthzPolicies in a given project and location.", - "canonical": true, - "file": "network_security.list_authz_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAuthzPolicies", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.ListAuthzPolicies", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1alpha1.ListAuthzPoliciesResponse", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurityClient" - }, - "method": { - "shortName": "ListAuthzPolicies", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.ListAuthzPolicies", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_NetworkSecurity_GetAuthzPolicy_async", - "title": "DnsThreatDetectorService getAuthzPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single AuthzPolicy.", - "canonical": true, - "file": "network_security.get_authz_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAuthzPolicy", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.GetAuthzPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1alpha1.AuthzPolicy", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurityClient" - }, - "method": { - "shortName": "GetAuthzPolicy", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.GetAuthzPolicy", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_NetworkSecurity_CreateAuthzPolicy_async", - "title": "DnsThreatDetectorService createAuthzPolicy Sample", - "origin": "API_DEFINITION", - "description": " Creates a new AuthzPolicy in a given project and location.", - "canonical": true, - "file": "network_security.create_authz_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAuthzPolicy", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.CreateAuthzPolicy", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "authz_policy_id", - "type": "TYPE_STRING" - }, - { - "name": "authz_policy", - "type": ".google.cloud.networksecurity.v1alpha1.AuthzPolicy" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurityClient" - }, - "method": { - "shortName": "CreateAuthzPolicy", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.CreateAuthzPolicy", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_NetworkSecurity_UpdateAuthzPolicy_async", - "title": "DnsThreatDetectorService updateAuthzPolicy Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single AuthzPolicy.", - "canonical": true, - "file": "network_security.update_authz_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAuthzPolicy", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.UpdateAuthzPolicy", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "authz_policy", - "type": ".google.cloud.networksecurity.v1alpha1.AuthzPolicy" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurityClient" - }, - "method": { - "shortName": "UpdateAuthzPolicy", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.UpdateAuthzPolicy", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_NetworkSecurity_DeleteAuthzPolicy_async", - "title": "DnsThreatDetectorService deleteAuthzPolicy Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single AuthzPolicy.", - "canonical": true, - "file": "network_security.delete_authz_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAuthzPolicy", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.DeleteAuthzPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurityClient" - }, - "method": { - "shortName": "DeleteAuthzPolicy", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity.DeleteAuthzPolicy", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1alpha1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_OrganizationSecurityProfileGroupService_ListSecurityProfileGroups_async", - "title": "DnsThreatDetectorService listSecurityProfileGroups Sample", - "origin": "API_DEFINITION", - "description": " Lists SecurityProfileGroups in a given organization and location.", - "canonical": true, - "file": "organization_security_profile_group_service.list_security_profile_groups.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSecurityProfileGroups", - "fullName": "google.cloud.networksecurity.v1alpha1.OrganizationSecurityProfileGroupService.ListSecurityProfileGroups", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1alpha1.ListSecurityProfileGroupsResponse", - "client": { - "shortName": "OrganizationSecurityProfileGroupServiceClient", - "fullName": "google.cloud.networksecurity.v1alpha1.OrganizationSecurityProfileGroupServiceClient" - }, - "method": { - "shortName": "ListSecurityProfileGroups", - "fullName": "google.cloud.networksecurity.v1alpha1.OrganizationSecurityProfileGroupService.ListSecurityProfileGroups", - "service": { - "shortName": "OrganizationSecurityProfileGroupService", - "fullName": "google.cloud.networksecurity.v1alpha1.OrganizationSecurityProfileGroupService" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_OrganizationSecurityProfileGroupService_GetSecurityProfileGroup_async", - "title": "DnsThreatDetectorService getSecurityProfileGroup Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single SecurityProfileGroup.", - "canonical": true, - "file": "organization_security_profile_group_service.get_security_profile_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSecurityProfileGroup", - "fullName": "google.cloud.networksecurity.v1alpha1.OrganizationSecurityProfileGroupService.GetSecurityProfileGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1alpha1.SecurityProfileGroup", - "client": { - "shortName": "OrganizationSecurityProfileGroupServiceClient", - "fullName": "google.cloud.networksecurity.v1alpha1.OrganizationSecurityProfileGroupServiceClient" - }, - "method": { - "shortName": "GetSecurityProfileGroup", - "fullName": "google.cloud.networksecurity.v1alpha1.OrganizationSecurityProfileGroupService.GetSecurityProfileGroup", - "service": { - "shortName": "OrganizationSecurityProfileGroupService", - "fullName": "google.cloud.networksecurity.v1alpha1.OrganizationSecurityProfileGroupService" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_OrganizationSecurityProfileGroupService_CreateSecurityProfileGroup_async", - "title": "DnsThreatDetectorService createSecurityProfileGroup Sample", - "origin": "API_DEFINITION", - "description": " Creates a new SecurityProfileGroup in a given organization and location.", - "canonical": true, - "file": "organization_security_profile_group_service.create_security_profile_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSecurityProfileGroup", - "fullName": "google.cloud.networksecurity.v1alpha1.OrganizationSecurityProfileGroupService.CreateSecurityProfileGroup", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "security_profile_group_id", - "type": "TYPE_STRING" - }, - { - "name": "security_profile_group", - "type": ".google.cloud.networksecurity.v1alpha1.SecurityProfileGroup" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OrganizationSecurityProfileGroupServiceClient", - "fullName": "google.cloud.networksecurity.v1alpha1.OrganizationSecurityProfileGroupServiceClient" - }, - "method": { - "shortName": "CreateSecurityProfileGroup", - "fullName": "google.cloud.networksecurity.v1alpha1.OrganizationSecurityProfileGroupService.CreateSecurityProfileGroup", - "service": { - "shortName": "OrganizationSecurityProfileGroupService", - "fullName": "google.cloud.networksecurity.v1alpha1.OrganizationSecurityProfileGroupService" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_OrganizationSecurityProfileGroupService_UpdateSecurityProfileGroup_async", - "title": "DnsThreatDetectorService updateSecurityProfileGroup Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single SecurityProfileGroup.", - "canonical": true, - "file": "organization_security_profile_group_service.update_security_profile_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSecurityProfileGroup", - "fullName": "google.cloud.networksecurity.v1alpha1.OrganizationSecurityProfileGroupService.UpdateSecurityProfileGroup", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "security_profile_group", - "type": ".google.cloud.networksecurity.v1alpha1.SecurityProfileGroup" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OrganizationSecurityProfileGroupServiceClient", - "fullName": "google.cloud.networksecurity.v1alpha1.OrganizationSecurityProfileGroupServiceClient" - }, - "method": { - "shortName": "UpdateSecurityProfileGroup", - "fullName": "google.cloud.networksecurity.v1alpha1.OrganizationSecurityProfileGroupService.UpdateSecurityProfileGroup", - "service": { - "shortName": "OrganizationSecurityProfileGroupService", - "fullName": "google.cloud.networksecurity.v1alpha1.OrganizationSecurityProfileGroupService" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_OrganizationSecurityProfileGroupService_DeleteSecurityProfileGroup_async", - "title": "DnsThreatDetectorService deleteSecurityProfileGroup Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single SecurityProfileGroup.", - "canonical": true, - "file": "organization_security_profile_group_service.delete_security_profile_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSecurityProfileGroup", - "fullName": "google.cloud.networksecurity.v1alpha1.OrganizationSecurityProfileGroupService.DeleteSecurityProfileGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OrganizationSecurityProfileGroupServiceClient", - "fullName": "google.cloud.networksecurity.v1alpha1.OrganizationSecurityProfileGroupServiceClient" - }, - "method": { - "shortName": "DeleteSecurityProfileGroup", - "fullName": "google.cloud.networksecurity.v1alpha1.OrganizationSecurityProfileGroupService.DeleteSecurityProfileGroup", - "service": { - "shortName": "OrganizationSecurityProfileGroupService", - "fullName": "google.cloud.networksecurity.v1alpha1.OrganizationSecurityProfileGroupService" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_OrganizationSecurityProfileGroupService_ListSecurityProfiles_async", - "title": "DnsThreatDetectorService listSecurityProfiles Sample", - "origin": "API_DEFINITION", - "description": " Lists SecurityProfiles in a given organization and location.", - "canonical": true, - "file": "organization_security_profile_group_service.list_security_profiles.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSecurityProfiles", - "fullName": "google.cloud.networksecurity.v1alpha1.OrganizationSecurityProfileGroupService.ListSecurityProfiles", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1alpha1.ListSecurityProfilesResponse", - "client": { - "shortName": "OrganizationSecurityProfileGroupServiceClient", - "fullName": "google.cloud.networksecurity.v1alpha1.OrganizationSecurityProfileGroupServiceClient" - }, - "method": { - "shortName": "ListSecurityProfiles", - "fullName": "google.cloud.networksecurity.v1alpha1.OrganizationSecurityProfileGroupService.ListSecurityProfiles", - "service": { - "shortName": "OrganizationSecurityProfileGroupService", - "fullName": "google.cloud.networksecurity.v1alpha1.OrganizationSecurityProfileGroupService" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_OrganizationSecurityProfileGroupService_GetSecurityProfile_async", - "title": "DnsThreatDetectorService getSecurityProfile Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single SecurityProfile.", - "canonical": true, - "file": "organization_security_profile_group_service.get_security_profile.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSecurityProfile", - "fullName": "google.cloud.networksecurity.v1alpha1.OrganizationSecurityProfileGroupService.GetSecurityProfile", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1alpha1.SecurityProfile", - "client": { - "shortName": "OrganizationSecurityProfileGroupServiceClient", - "fullName": "google.cloud.networksecurity.v1alpha1.OrganizationSecurityProfileGroupServiceClient" - }, - "method": { - "shortName": "GetSecurityProfile", - "fullName": "google.cloud.networksecurity.v1alpha1.OrganizationSecurityProfileGroupService.GetSecurityProfile", - "service": { - "shortName": "OrganizationSecurityProfileGroupService", - "fullName": "google.cloud.networksecurity.v1alpha1.OrganizationSecurityProfileGroupService" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_OrganizationSecurityProfileGroupService_CreateSecurityProfile_async", - "title": "DnsThreatDetectorService createSecurityProfile Sample", - "origin": "API_DEFINITION", - "description": " Creates a new SecurityProfile in a given organization and location.", - "canonical": true, - "file": "organization_security_profile_group_service.create_security_profile.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSecurityProfile", - "fullName": "google.cloud.networksecurity.v1alpha1.OrganizationSecurityProfileGroupService.CreateSecurityProfile", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "security_profile_id", - "type": "TYPE_STRING" - }, - { - "name": "security_profile", - "type": ".google.cloud.networksecurity.v1alpha1.SecurityProfile" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OrganizationSecurityProfileGroupServiceClient", - "fullName": "google.cloud.networksecurity.v1alpha1.OrganizationSecurityProfileGroupServiceClient" - }, - "method": { - "shortName": "CreateSecurityProfile", - "fullName": "google.cloud.networksecurity.v1alpha1.OrganizationSecurityProfileGroupService.CreateSecurityProfile", - "service": { - "shortName": "OrganizationSecurityProfileGroupService", - "fullName": "google.cloud.networksecurity.v1alpha1.OrganizationSecurityProfileGroupService" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_OrganizationSecurityProfileGroupService_UpdateSecurityProfile_async", - "title": "DnsThreatDetectorService updateSecurityProfile Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single SecurityProfile.", - "canonical": true, - "file": "organization_security_profile_group_service.update_security_profile.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSecurityProfile", - "fullName": "google.cloud.networksecurity.v1alpha1.OrganizationSecurityProfileGroupService.UpdateSecurityProfile", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "security_profile", - "type": ".google.cloud.networksecurity.v1alpha1.SecurityProfile" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OrganizationSecurityProfileGroupServiceClient", - "fullName": "google.cloud.networksecurity.v1alpha1.OrganizationSecurityProfileGroupServiceClient" - }, - "method": { - "shortName": "UpdateSecurityProfile", - "fullName": "google.cloud.networksecurity.v1alpha1.OrganizationSecurityProfileGroupService.UpdateSecurityProfile", - "service": { - "shortName": "OrganizationSecurityProfileGroupService", - "fullName": "google.cloud.networksecurity.v1alpha1.OrganizationSecurityProfileGroupService" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_OrganizationSecurityProfileGroupService_DeleteSecurityProfile_async", - "title": "DnsThreatDetectorService deleteSecurityProfile Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single SecurityProfile.", - "canonical": true, - "file": "organization_security_profile_group_service.delete_security_profile.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSecurityProfile", - "fullName": "google.cloud.networksecurity.v1alpha1.OrganizationSecurityProfileGroupService.DeleteSecurityProfile", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OrganizationSecurityProfileGroupServiceClient", - "fullName": "google.cloud.networksecurity.v1alpha1.OrganizationSecurityProfileGroupServiceClient" - }, - "method": { - "shortName": "DeleteSecurityProfile", - "fullName": "google.cloud.networksecurity.v1alpha1.OrganizationSecurityProfileGroupService.DeleteSecurityProfile", - "service": { - "shortName": "OrganizationSecurityProfileGroupService", - "fullName": "google.cloud.networksecurity.v1alpha1.OrganizationSecurityProfileGroupService" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_SSEGatewayService_ListPartnerSSEGateways_async", - "title": "DnsThreatDetectorService listPartnerSSEGateways Sample", - "origin": "API_DEFINITION", - "description": " Lists PartnerSSEGateways in a given project and location.", - "canonical": true, - "file": "s_s_e_gateway_service.list_partner_s_s_e_gateways.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPartnerSSEGateways", - "fullName": "google.cloud.networksecurity.v1alpha1.SSEGatewayService.ListPartnerSSEGateways", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1alpha1.ListPartnerSSEGatewaysResponse", - "client": { - "shortName": "SSEGatewayServiceClient", - "fullName": "google.cloud.networksecurity.v1alpha1.SSEGatewayServiceClient" - }, - "method": { - "shortName": "ListPartnerSSEGateways", - "fullName": "google.cloud.networksecurity.v1alpha1.SSEGatewayService.ListPartnerSSEGateways", - "service": { - "shortName": "SSEGatewayService", - "fullName": "google.cloud.networksecurity.v1alpha1.SSEGatewayService" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_SSEGatewayService_GetPartnerSSEGateway_async", - "title": "DnsThreatDetectorService getPartnerSSEGateway Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single PartnerSSEGateway.", - "canonical": true, - "file": "s_s_e_gateway_service.get_partner_s_s_e_gateway.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPartnerSSEGateway", - "fullName": "google.cloud.networksecurity.v1alpha1.SSEGatewayService.GetPartnerSSEGateway", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1alpha1.PartnerSSEGateway", - "client": { - "shortName": "SSEGatewayServiceClient", - "fullName": "google.cloud.networksecurity.v1alpha1.SSEGatewayServiceClient" - }, - "method": { - "shortName": "GetPartnerSSEGateway", - "fullName": "google.cloud.networksecurity.v1alpha1.SSEGatewayService.GetPartnerSSEGateway", - "service": { - "shortName": "SSEGatewayService", - "fullName": "google.cloud.networksecurity.v1alpha1.SSEGatewayService" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_SSEGatewayService_CreatePartnerSSEGateway_async", - "title": "DnsThreatDetectorService createPartnerSSEGateway Sample", - "origin": "API_DEFINITION", - "description": " Creates a new PartnerSSEGateway in a given project and location.", - "canonical": true, - "file": "s_s_e_gateway_service.create_partner_s_s_e_gateway.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreatePartnerSSEGateway", - "fullName": "google.cloud.networksecurity.v1alpha1.SSEGatewayService.CreatePartnerSSEGateway", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "partner_sse_gateway_id", - "type": "TYPE_STRING" - }, - { - "name": "partner_sse_gateway", - "type": ".google.cloud.networksecurity.v1alpha1.PartnerSSEGateway" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SSEGatewayServiceClient", - "fullName": "google.cloud.networksecurity.v1alpha1.SSEGatewayServiceClient" - }, - "method": { - "shortName": "CreatePartnerSSEGateway", - "fullName": "google.cloud.networksecurity.v1alpha1.SSEGatewayService.CreatePartnerSSEGateway", - "service": { - "shortName": "SSEGatewayService", - "fullName": "google.cloud.networksecurity.v1alpha1.SSEGatewayService" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_SSEGatewayService_DeletePartnerSSEGateway_async", - "title": "DnsThreatDetectorService deletePartnerSSEGateway Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single PartnerSSEGateway.", - "canonical": true, - "file": "s_s_e_gateway_service.delete_partner_s_s_e_gateway.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePartnerSSEGateway", - "fullName": "google.cloud.networksecurity.v1alpha1.SSEGatewayService.DeletePartnerSSEGateway", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SSEGatewayServiceClient", - "fullName": "google.cloud.networksecurity.v1alpha1.SSEGatewayServiceClient" - }, - "method": { - "shortName": "DeletePartnerSSEGateway", - "fullName": "google.cloud.networksecurity.v1alpha1.SSEGatewayService.DeletePartnerSSEGateway", - "service": { - "shortName": "SSEGatewayService", - "fullName": "google.cloud.networksecurity.v1alpha1.SSEGatewayService" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_SSEGatewayService_UpdatePartnerSSEGateway_async", - "title": "DnsThreatDetectorService updatePartnerSSEGateway Sample", - "origin": "API_DEFINITION", - "description": " Updates a single PartnerSSEGateway.", - "canonical": true, - "file": "s_s_e_gateway_service.update_partner_s_s_e_gateway.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdatePartnerSSEGateway", - "fullName": "google.cloud.networksecurity.v1alpha1.SSEGatewayService.UpdatePartnerSSEGateway", - "async": true, - "parameters": [ - { - "name": "partner_sse_gateway", - "type": ".google.cloud.networksecurity.v1alpha1.PartnerSSEGateway" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SSEGatewayServiceClient", - "fullName": "google.cloud.networksecurity.v1alpha1.SSEGatewayServiceClient" - }, - "method": { - "shortName": "UpdatePartnerSSEGateway", - "fullName": "google.cloud.networksecurity.v1alpha1.SSEGatewayService.UpdatePartnerSSEGateway", - "service": { - "shortName": "SSEGatewayService", - "fullName": "google.cloud.networksecurity.v1alpha1.SSEGatewayService" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_SSEGatewayService_ListSSEGatewayReferences_async", - "title": "DnsThreatDetectorService listSSEGatewayReferences Sample", - "origin": "API_DEFINITION", - "description": " Lists SSEGatewayReferences in a given project and location.", - "canonical": true, - "file": "s_s_e_gateway_service.list_s_s_e_gateway_references.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSSEGatewayReferences", - "fullName": "google.cloud.networksecurity.v1alpha1.SSEGatewayService.ListSSEGatewayReferences", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1alpha1.ListSSEGatewayReferencesResponse", - "client": { - "shortName": "SSEGatewayServiceClient", - "fullName": "google.cloud.networksecurity.v1alpha1.SSEGatewayServiceClient" - }, - "method": { - "shortName": "ListSSEGatewayReferences", - "fullName": "google.cloud.networksecurity.v1alpha1.SSEGatewayService.ListSSEGatewayReferences", - "service": { - "shortName": "SSEGatewayService", - "fullName": "google.cloud.networksecurity.v1alpha1.SSEGatewayService" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_SSEGatewayService_GetSSEGatewayReference_async", - "title": "DnsThreatDetectorService getSSEGatewayReference Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single SSEGatewayReference.", - "canonical": true, - "file": "s_s_e_gateway_service.get_s_s_e_gateway_reference.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSSEGatewayReference", - "fullName": "google.cloud.networksecurity.v1alpha1.SSEGatewayService.GetSSEGatewayReference", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1alpha1.SSEGatewayReference", - "client": { - "shortName": "SSEGatewayServiceClient", - "fullName": "google.cloud.networksecurity.v1alpha1.SSEGatewayServiceClient" - }, - "method": { - "shortName": "GetSSEGatewayReference", - "fullName": "google.cloud.networksecurity.v1alpha1.SSEGatewayService.GetSSEGatewayReference", - "service": { - "shortName": "SSEGatewayService", - "fullName": "google.cloud.networksecurity.v1alpha1.SSEGatewayService" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_SSERealmService_ListSACRealms_async", - "title": "DnsThreatDetectorService listSACRealms Sample", - "origin": "API_DEFINITION", - "description": " Lists SACRealms in a given project.", - "canonical": true, - "file": "s_s_e_realm_service.list_s_a_c_realms.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSACRealms", - "fullName": "google.cloud.networksecurity.v1alpha1.SSERealmService.ListSACRealms", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1alpha1.ListSACRealmsResponse", - "client": { - "shortName": "SSERealmServiceClient", - "fullName": "google.cloud.networksecurity.v1alpha1.SSERealmServiceClient" - }, - "method": { - "shortName": "ListSACRealms", - "fullName": "google.cloud.networksecurity.v1alpha1.SSERealmService.ListSACRealms", - "service": { - "shortName": "SSERealmService", - "fullName": "google.cloud.networksecurity.v1alpha1.SSERealmService" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_SSERealmService_GetSACRealm_async", - "title": "DnsThreatDetectorService getSACRealm Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified realm.", - "canonical": true, - "file": "s_s_e_realm_service.get_s_a_c_realm.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSACRealm", - "fullName": "google.cloud.networksecurity.v1alpha1.SSERealmService.GetSACRealm", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1alpha1.SACRealm", - "client": { - "shortName": "SSERealmServiceClient", - "fullName": "google.cloud.networksecurity.v1alpha1.SSERealmServiceClient" - }, - "method": { - "shortName": "GetSACRealm", - "fullName": "google.cloud.networksecurity.v1alpha1.SSERealmService.GetSACRealm", - "service": { - "shortName": "SSERealmService", - "fullName": "google.cloud.networksecurity.v1alpha1.SSERealmService" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_SSERealmService_CreateSACRealm_async", - "title": "DnsThreatDetectorService createSACRealm Sample", - "origin": "API_DEFINITION", - "description": " Creates a new SACRealm in a given project.", - "canonical": true, - "file": "s_s_e_realm_service.create_s_a_c_realm.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSACRealm", - "fullName": "google.cloud.networksecurity.v1alpha1.SSERealmService.CreateSACRealm", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "sac_realm_id", - "type": "TYPE_STRING" - }, - { - "name": "sac_realm", - "type": ".google.cloud.networksecurity.v1alpha1.SACRealm" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SSERealmServiceClient", - "fullName": "google.cloud.networksecurity.v1alpha1.SSERealmServiceClient" - }, - "method": { - "shortName": "CreateSACRealm", - "fullName": "google.cloud.networksecurity.v1alpha1.SSERealmService.CreateSACRealm", - "service": { - "shortName": "SSERealmService", - "fullName": "google.cloud.networksecurity.v1alpha1.SSERealmService" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_SSERealmService_DeleteSACRealm_async", - "title": "DnsThreatDetectorService deleteSACRealm Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified realm.", - "canonical": true, - "file": "s_s_e_realm_service.delete_s_a_c_realm.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSACRealm", - "fullName": "google.cloud.networksecurity.v1alpha1.SSERealmService.DeleteSACRealm", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SSERealmServiceClient", - "fullName": "google.cloud.networksecurity.v1alpha1.SSERealmServiceClient" - }, - "method": { - "shortName": "DeleteSACRealm", - "fullName": "google.cloud.networksecurity.v1alpha1.SSERealmService.DeleteSACRealm", - "service": { - "shortName": "SSERealmService", - "fullName": "google.cloud.networksecurity.v1alpha1.SSERealmService" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_SSERealmService_ListSACAttachments_async", - "title": "DnsThreatDetectorService listSACAttachments Sample", - "origin": "API_DEFINITION", - "description": " Lists SACAttachments in a given project and location.", - "canonical": true, - "file": "s_s_e_realm_service.list_s_a_c_attachments.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSACAttachments", - "fullName": "google.cloud.networksecurity.v1alpha1.SSERealmService.ListSACAttachments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1alpha1.ListSACAttachmentsResponse", - "client": { - "shortName": "SSERealmServiceClient", - "fullName": "google.cloud.networksecurity.v1alpha1.SSERealmServiceClient" - }, - "method": { - "shortName": "ListSACAttachments", - "fullName": "google.cloud.networksecurity.v1alpha1.SSERealmService.ListSACAttachments", - "service": { - "shortName": "SSERealmService", - "fullName": "google.cloud.networksecurity.v1alpha1.SSERealmService" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_SSERealmService_GetSACAttachment_async", - "title": "DnsThreatDetectorService getSACAttachment Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified attachment.", - "canonical": true, - "file": "s_s_e_realm_service.get_s_a_c_attachment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSACAttachment", - "fullName": "google.cloud.networksecurity.v1alpha1.SSERealmService.GetSACAttachment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1alpha1.SACAttachment", - "client": { - "shortName": "SSERealmServiceClient", - "fullName": "google.cloud.networksecurity.v1alpha1.SSERealmServiceClient" - }, - "method": { - "shortName": "GetSACAttachment", - "fullName": "google.cloud.networksecurity.v1alpha1.SSERealmService.GetSACAttachment", - "service": { - "shortName": "SSERealmService", - "fullName": "google.cloud.networksecurity.v1alpha1.SSERealmService" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_SSERealmService_CreateSACAttachment_async", - "title": "DnsThreatDetectorService createSACAttachment Sample", - "origin": "API_DEFINITION", - "description": " Creates a new SACAttachment in a given project and location.", - "canonical": true, - "file": "s_s_e_realm_service.create_s_a_c_attachment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSACAttachment", - "fullName": "google.cloud.networksecurity.v1alpha1.SSERealmService.CreateSACAttachment", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "sac_attachment_id", - "type": "TYPE_STRING" - }, - { - "name": "sac_attachment", - "type": ".google.cloud.networksecurity.v1alpha1.SACAttachment" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SSERealmServiceClient", - "fullName": "google.cloud.networksecurity.v1alpha1.SSERealmServiceClient" - }, - "method": { - "shortName": "CreateSACAttachment", - "fullName": "google.cloud.networksecurity.v1alpha1.SSERealmService.CreateSACAttachment", - "service": { - "shortName": "SSERealmService", - "fullName": "google.cloud.networksecurity.v1alpha1.SSERealmService" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_SSERealmService_DeleteSACAttachment_async", - "title": "DnsThreatDetectorService deleteSACAttachment Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified attachment.", - "canonical": true, - "file": "s_s_e_realm_service.delete_s_a_c_attachment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSACAttachment", - "fullName": "google.cloud.networksecurity.v1alpha1.SSERealmService.DeleteSACAttachment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SSERealmServiceClient", - "fullName": "google.cloud.networksecurity.v1alpha1.SSERealmServiceClient" - }, - "method": { - "shortName": "DeleteSACAttachment", - "fullName": "google.cloud.networksecurity.v1alpha1.SSERealmService.DeleteSACAttachment", - "service": { - "shortName": "SSERealmService", - "fullName": "google.cloud.networksecurity.v1alpha1.SSERealmService" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_SSERealmService_ListPartnerSSERealms_async", - "title": "DnsThreatDetectorService listPartnerSSERealms Sample", - "origin": "API_DEFINITION", - "description": " Lists PartnerSSERealms in a given project and location.", - "canonical": true, - "file": "s_s_e_realm_service.list_partner_s_s_e_realms.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPartnerSSERealms", - "fullName": "google.cloud.networksecurity.v1alpha1.SSERealmService.ListPartnerSSERealms", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1alpha1.ListPartnerSSERealmsResponse", - "client": { - "shortName": "SSERealmServiceClient", - "fullName": "google.cloud.networksecurity.v1alpha1.SSERealmServiceClient" - }, - "method": { - "shortName": "ListPartnerSSERealms", - "fullName": "google.cloud.networksecurity.v1alpha1.SSERealmService.ListPartnerSSERealms", - "service": { - "shortName": "SSERealmService", - "fullName": "google.cloud.networksecurity.v1alpha1.SSERealmService" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_SSERealmService_GetPartnerSSERealm_async", - "title": "DnsThreatDetectorService getPartnerSSERealm Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single PartnerSSERealm.", - "canonical": true, - "file": "s_s_e_realm_service.get_partner_s_s_e_realm.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPartnerSSERealm", - "fullName": "google.cloud.networksecurity.v1alpha1.SSERealmService.GetPartnerSSERealm", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1alpha1.PartnerSSERealm", - "client": { - "shortName": "SSERealmServiceClient", - "fullName": "google.cloud.networksecurity.v1alpha1.SSERealmServiceClient" - }, - "method": { - "shortName": "GetPartnerSSERealm", - "fullName": "google.cloud.networksecurity.v1alpha1.SSERealmService.GetPartnerSSERealm", - "service": { - "shortName": "SSERealmService", - "fullName": "google.cloud.networksecurity.v1alpha1.SSERealmService" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_SSERealmService_CreatePartnerSSERealm_async", - "title": "DnsThreatDetectorService createPartnerSSERealm Sample", - "origin": "API_DEFINITION", - "description": " Creates a new PartnerSSERealm in a given project and location.", - "canonical": true, - "file": "s_s_e_realm_service.create_partner_s_s_e_realm.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreatePartnerSSERealm", - "fullName": "google.cloud.networksecurity.v1alpha1.SSERealmService.CreatePartnerSSERealm", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "partner_sse_realm_id", - "type": "TYPE_STRING" - }, - { - "name": "partner_sse_realm", - "type": ".google.cloud.networksecurity.v1alpha1.PartnerSSERealm" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SSERealmServiceClient", - "fullName": "google.cloud.networksecurity.v1alpha1.SSERealmServiceClient" - }, - "method": { - "shortName": "CreatePartnerSSERealm", - "fullName": "google.cloud.networksecurity.v1alpha1.SSERealmService.CreatePartnerSSERealm", - "service": { - "shortName": "SSERealmService", - "fullName": "google.cloud.networksecurity.v1alpha1.SSERealmService" - } - } - } - }, - { - "regionTag": "networksecurity_v1alpha1_generated_SSERealmService_DeletePartnerSSERealm_async", - "title": "DnsThreatDetectorService deletePartnerSSERealm Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single PartnerSSERealm.", - "canonical": true, - "file": "s_s_e_realm_service.delete_partner_s_s_e_realm.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePartnerSSERealm", - "fullName": "google.cloud.networksecurity.v1alpha1.SSERealmService.DeletePartnerSSERealm", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SSERealmServiceClient", - "fullName": "google.cloud.networksecurity.v1alpha1.SSERealmServiceClient" - }, - "method": { - "shortName": "DeletePartnerSSERealm", - "fullName": "google.cloud.networksecurity.v1alpha1.SSERealmService.DeletePartnerSSERealm", - "service": { - "shortName": "SSERealmService", - "fullName": "google.cloud.networksecurity.v1alpha1.SSERealmService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-networksecurity/samples/generated/v1beta1/snippet_metadata_google.cloud.networksecurity.v1beta1.json b/packages/google-cloud-networksecurity/samples/generated/v1beta1/snippet_metadata_google.cloud.networksecurity.v1beta1.json deleted file mode 100644 index ed83461dc4bf..000000000000 --- a/packages/google-cloud-networksecurity/samples/generated/v1beta1/snippet_metadata_google.cloud.networksecurity.v1beta1.json +++ /dev/null @@ -1,895 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-networksecurity", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.networksecurity.v1beta1", - "version": "v1beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "networksecurity_v1beta1_generated_DnsThreatDetectorService_ListDnsThreatDetectors_async", - "title": "DnsThreatDetectorService listDnsThreatDetectors Sample", - "origin": "API_DEFINITION", - "description": " Lists DnsThreatDetectors in a given project and location.", - "canonical": true, - "file": "dns_threat_detector_service.list_dns_threat_detectors.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDnsThreatDetectors", - "fullName": "google.cloud.networksecurity.v1beta1.DnsThreatDetectorService.ListDnsThreatDetectors", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1beta1.ListDnsThreatDetectorsResponse", - "client": { - "shortName": "DnsThreatDetectorServiceClient", - "fullName": "google.cloud.networksecurity.v1beta1.DnsThreatDetectorServiceClient" - }, - "method": { - "shortName": "ListDnsThreatDetectors", - "fullName": "google.cloud.networksecurity.v1beta1.DnsThreatDetectorService.ListDnsThreatDetectors", - "service": { - "shortName": "DnsThreatDetectorService", - "fullName": "google.cloud.networksecurity.v1beta1.DnsThreatDetectorService" - } - } - } - }, - { - "regionTag": "networksecurity_v1beta1_generated_DnsThreatDetectorService_GetDnsThreatDetector_async", - "title": "DnsThreatDetectorService getDnsThreatDetector Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a single DnsThreatDetector.", - "canonical": true, - "file": "dns_threat_detector_service.get_dns_threat_detector.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDnsThreatDetector", - "fullName": "google.cloud.networksecurity.v1beta1.DnsThreatDetectorService.GetDnsThreatDetector", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1beta1.DnsThreatDetector", - "client": { - "shortName": "DnsThreatDetectorServiceClient", - "fullName": "google.cloud.networksecurity.v1beta1.DnsThreatDetectorServiceClient" - }, - "method": { - "shortName": "GetDnsThreatDetector", - "fullName": "google.cloud.networksecurity.v1beta1.DnsThreatDetectorService.GetDnsThreatDetector", - "service": { - "shortName": "DnsThreatDetectorService", - "fullName": "google.cloud.networksecurity.v1beta1.DnsThreatDetectorService" - } - } - } - }, - { - "regionTag": "networksecurity_v1beta1_generated_DnsThreatDetectorService_CreateDnsThreatDetector_async", - "title": "DnsThreatDetectorService createDnsThreatDetector Sample", - "origin": "API_DEFINITION", - "description": " Creates a new DnsThreatDetector in a given project and location.", - "canonical": true, - "file": "dns_threat_detector_service.create_dns_threat_detector.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDnsThreatDetector", - "fullName": "google.cloud.networksecurity.v1beta1.DnsThreatDetectorService.CreateDnsThreatDetector", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "dns_threat_detector_id", - "type": "TYPE_STRING" - }, - { - "name": "dns_threat_detector", - "type": ".google.cloud.networksecurity.v1beta1.DnsThreatDetector" - } - ], - "resultType": ".google.cloud.networksecurity.v1beta1.DnsThreatDetector", - "client": { - "shortName": "DnsThreatDetectorServiceClient", - "fullName": "google.cloud.networksecurity.v1beta1.DnsThreatDetectorServiceClient" - }, - "method": { - "shortName": "CreateDnsThreatDetector", - "fullName": "google.cloud.networksecurity.v1beta1.DnsThreatDetectorService.CreateDnsThreatDetector", - "service": { - "shortName": "DnsThreatDetectorService", - "fullName": "google.cloud.networksecurity.v1beta1.DnsThreatDetectorService" - } - } - } - }, - { - "regionTag": "networksecurity_v1beta1_generated_DnsThreatDetectorService_UpdateDnsThreatDetector_async", - "title": "DnsThreatDetectorService updateDnsThreatDetector Sample", - "origin": "API_DEFINITION", - "description": " Updates a single DnsThreatDetector.", - "canonical": true, - "file": "dns_threat_detector_service.update_dns_threat_detector.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDnsThreatDetector", - "fullName": "google.cloud.networksecurity.v1beta1.DnsThreatDetectorService.UpdateDnsThreatDetector", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "dns_threat_detector", - "type": ".google.cloud.networksecurity.v1beta1.DnsThreatDetector" - } - ], - "resultType": ".google.cloud.networksecurity.v1beta1.DnsThreatDetector", - "client": { - "shortName": "DnsThreatDetectorServiceClient", - "fullName": "google.cloud.networksecurity.v1beta1.DnsThreatDetectorServiceClient" - }, - "method": { - "shortName": "UpdateDnsThreatDetector", - "fullName": "google.cloud.networksecurity.v1beta1.DnsThreatDetectorService.UpdateDnsThreatDetector", - "service": { - "shortName": "DnsThreatDetectorService", - "fullName": "google.cloud.networksecurity.v1beta1.DnsThreatDetectorService" - } - } - } - }, - { - "regionTag": "networksecurity_v1beta1_generated_DnsThreatDetectorService_DeleteDnsThreatDetector_async", - "title": "DnsThreatDetectorService deleteDnsThreatDetector Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single DnsThreatDetector.", - "canonical": true, - "file": "dns_threat_detector_service.delete_dns_threat_detector.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDnsThreatDetector", - "fullName": "google.cloud.networksecurity.v1beta1.DnsThreatDetectorService.DeleteDnsThreatDetector", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DnsThreatDetectorServiceClient", - "fullName": "google.cloud.networksecurity.v1beta1.DnsThreatDetectorServiceClient" - }, - "method": { - "shortName": "DeleteDnsThreatDetector", - "fullName": "google.cloud.networksecurity.v1beta1.DnsThreatDetectorService.DeleteDnsThreatDetector", - "service": { - "shortName": "DnsThreatDetectorService", - "fullName": "google.cloud.networksecurity.v1beta1.DnsThreatDetectorService" - } - } - } - }, - { - "regionTag": "networksecurity_v1beta1_generated_NetworkSecurity_ListAuthorizationPolicies_async", - "title": "DnsThreatDetectorService listAuthorizationPolicies Sample", - "origin": "API_DEFINITION", - "description": " Lists AuthorizationPolicies in a given project and location.", - "canonical": true, - "file": "network_security.list_authorization_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAuthorizationPolicies", - "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity.ListAuthorizationPolicies", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurityClient" - }, - "method": { - "shortName": "ListAuthorizationPolicies", - "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity.ListAuthorizationPolicies", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1beta1_generated_NetworkSecurity_GetAuthorizationPolicy_async", - "title": "DnsThreatDetectorService getAuthorizationPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single AuthorizationPolicy.", - "canonical": true, - "file": "network_security.get_authorization_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAuthorizationPolicy", - "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity.GetAuthorizationPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1beta1.AuthorizationPolicy", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurityClient" - }, - "method": { - "shortName": "GetAuthorizationPolicy", - "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity.GetAuthorizationPolicy", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1beta1_generated_NetworkSecurity_CreateAuthorizationPolicy_async", - "title": "DnsThreatDetectorService createAuthorizationPolicy Sample", - "origin": "API_DEFINITION", - "description": " Creates a new AuthorizationPolicy in a given project and location.", - "canonical": true, - "file": "network_security.create_authorization_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAuthorizationPolicy", - "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity.CreateAuthorizationPolicy", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "authorization_policy_id", - "type": "TYPE_STRING" - }, - { - "name": "authorization_policy", - "type": ".google.cloud.networksecurity.v1beta1.AuthorizationPolicy" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurityClient" - }, - "method": { - "shortName": "CreateAuthorizationPolicy", - "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity.CreateAuthorizationPolicy", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1beta1_generated_NetworkSecurity_UpdateAuthorizationPolicy_async", - "title": "DnsThreatDetectorService updateAuthorizationPolicy Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single AuthorizationPolicy.", - "canonical": true, - "file": "network_security.update_authorization_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAuthorizationPolicy", - "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity.UpdateAuthorizationPolicy", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "authorization_policy", - "type": ".google.cloud.networksecurity.v1beta1.AuthorizationPolicy" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurityClient" - }, - "method": { - "shortName": "UpdateAuthorizationPolicy", - "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity.UpdateAuthorizationPolicy", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1beta1_generated_NetworkSecurity_DeleteAuthorizationPolicy_async", - "title": "DnsThreatDetectorService deleteAuthorizationPolicy Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single AuthorizationPolicy.", - "canonical": true, - "file": "network_security.delete_authorization_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAuthorizationPolicy", - "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity.DeleteAuthorizationPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurityClient" - }, - "method": { - "shortName": "DeleteAuthorizationPolicy", - "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity.DeleteAuthorizationPolicy", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1beta1_generated_NetworkSecurity_ListServerTlsPolicies_async", - "title": "DnsThreatDetectorService listServerTlsPolicies Sample", - "origin": "API_DEFINITION", - "description": " Lists ServerTlsPolicies in a given project and location.", - "canonical": true, - "file": "network_security.list_server_tls_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListServerTlsPolicies", - "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity.ListServerTlsPolicies", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurityClient" - }, - "method": { - "shortName": "ListServerTlsPolicies", - "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity.ListServerTlsPolicies", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1beta1_generated_NetworkSecurity_GetServerTlsPolicy_async", - "title": "DnsThreatDetectorService getServerTlsPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single ServerTlsPolicy.", - "canonical": true, - "file": "network_security.get_server_tls_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetServerTlsPolicy", - "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity.GetServerTlsPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1beta1.ServerTlsPolicy", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurityClient" - }, - "method": { - "shortName": "GetServerTlsPolicy", - "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity.GetServerTlsPolicy", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1beta1_generated_NetworkSecurity_CreateServerTlsPolicy_async", - "title": "DnsThreatDetectorService createServerTlsPolicy Sample", - "origin": "API_DEFINITION", - "description": " Creates a new ServerTlsPolicy in a given project and location.", - "canonical": true, - "file": "network_security.create_server_tls_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateServerTlsPolicy", - "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity.CreateServerTlsPolicy", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "server_tls_policy_id", - "type": "TYPE_STRING" - }, - { - "name": "server_tls_policy", - "type": ".google.cloud.networksecurity.v1beta1.ServerTlsPolicy" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurityClient" - }, - "method": { - "shortName": "CreateServerTlsPolicy", - "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity.CreateServerTlsPolicy", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1beta1_generated_NetworkSecurity_UpdateServerTlsPolicy_async", - "title": "DnsThreatDetectorService updateServerTlsPolicy Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single ServerTlsPolicy.", - "canonical": true, - "file": "network_security.update_server_tls_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateServerTlsPolicy", - "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity.UpdateServerTlsPolicy", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "server_tls_policy", - "type": ".google.cloud.networksecurity.v1beta1.ServerTlsPolicy" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurityClient" - }, - "method": { - "shortName": "UpdateServerTlsPolicy", - "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity.UpdateServerTlsPolicy", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1beta1_generated_NetworkSecurity_DeleteServerTlsPolicy_async", - "title": "DnsThreatDetectorService deleteServerTlsPolicy Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single ServerTlsPolicy.", - "canonical": true, - "file": "network_security.delete_server_tls_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteServerTlsPolicy", - "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity.DeleteServerTlsPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurityClient" - }, - "method": { - "shortName": "DeleteServerTlsPolicy", - "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity.DeleteServerTlsPolicy", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1beta1_generated_NetworkSecurity_ListClientTlsPolicies_async", - "title": "DnsThreatDetectorService listClientTlsPolicies Sample", - "origin": "API_DEFINITION", - "description": " Lists ClientTlsPolicies in a given project and location.", - "canonical": true, - "file": "network_security.list_client_tls_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListClientTlsPolicies", - "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity.ListClientTlsPolicies", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurityClient" - }, - "method": { - "shortName": "ListClientTlsPolicies", - "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity.ListClientTlsPolicies", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1beta1_generated_NetworkSecurity_GetClientTlsPolicy_async", - "title": "DnsThreatDetectorService getClientTlsPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single ClientTlsPolicy.", - "canonical": true, - "file": "network_security.get_client_tls_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetClientTlsPolicy", - "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity.GetClientTlsPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networksecurity.v1beta1.ClientTlsPolicy", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurityClient" - }, - "method": { - "shortName": "GetClientTlsPolicy", - "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity.GetClientTlsPolicy", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1beta1_generated_NetworkSecurity_CreateClientTlsPolicy_async", - "title": "DnsThreatDetectorService createClientTlsPolicy Sample", - "origin": "API_DEFINITION", - "description": " Creates a new ClientTlsPolicy in a given project and location.", - "canonical": true, - "file": "network_security.create_client_tls_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateClientTlsPolicy", - "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity.CreateClientTlsPolicy", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "client_tls_policy_id", - "type": "TYPE_STRING" - }, - { - "name": "client_tls_policy", - "type": ".google.cloud.networksecurity.v1beta1.ClientTlsPolicy" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurityClient" - }, - "method": { - "shortName": "CreateClientTlsPolicy", - "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity.CreateClientTlsPolicy", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1beta1_generated_NetworkSecurity_UpdateClientTlsPolicy_async", - "title": "DnsThreatDetectorService updateClientTlsPolicy Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single ClientTlsPolicy.", - "canonical": true, - "file": "network_security.update_client_tls_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateClientTlsPolicy", - "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity.UpdateClientTlsPolicy", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "client_tls_policy", - "type": ".google.cloud.networksecurity.v1beta1.ClientTlsPolicy" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurityClient" - }, - "method": { - "shortName": "UpdateClientTlsPolicy", - "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity.UpdateClientTlsPolicy", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity" - } - } - } - }, - { - "regionTag": "networksecurity_v1beta1_generated_NetworkSecurity_DeleteClientTlsPolicy_async", - "title": "DnsThreatDetectorService deleteClientTlsPolicy Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single ClientTlsPolicy.", - "canonical": true, - "file": "network_security.delete_client_tls_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteClientTlsPolicy", - "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity.DeleteClientTlsPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkSecurityClient", - "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurityClient" - }, - "method": { - "shortName": "DeleteClientTlsPolicy", - "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity.DeleteClientTlsPolicy", - "service": { - "shortName": "NetworkSecurity", - "fullName": "google.cloud.networksecurity.v1beta1.NetworkSecurity" - } - } - } - } - ] -} diff --git a/packages/google-cloud-networkservices/samples/generated/v1/snippet_metadata_google.cloud.networkservices.v1.json b/packages/google-cloud-networkservices/samples/generated/v1/snippet_metadata_google.cloud.networkservices.v1.json deleted file mode 100644 index 293ee8328f45..000000000000 --- a/packages/google-cloud-networkservices/samples/generated/v1/snippet_metadata_google.cloud.networkservices.v1.json +++ /dev/null @@ -1,3555 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-networkservices", - "version": "0.12.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.networkservices.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "networkservices_v1_generated_DepService_ListLbTrafficExtensions_async", - "title": "DepService listLbTrafficExtensions Sample", - "origin": "API_DEFINITION", - "description": " Lists `LbTrafficExtension` resources in a given project and location.", - "canonical": true, - "file": "dep_service.list_lb_traffic_extensions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListLbTrafficExtensions", - "fullName": "google.cloud.networkservices.v1.DepService.ListLbTrafficExtensions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkservices.v1.ListLbTrafficExtensionsResponse", - "client": { - "shortName": "DepServiceClient", - "fullName": "google.cloud.networkservices.v1.DepServiceClient" - }, - "method": { - "shortName": "ListLbTrafficExtensions", - "fullName": "google.cloud.networkservices.v1.DepService.ListLbTrafficExtensions", - "service": { - "shortName": "DepService", - "fullName": "google.cloud.networkservices.v1.DepService" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_DepService_GetLbTrafficExtension_async", - "title": "DepService getLbTrafficExtension Sample", - "origin": "API_DEFINITION", - "description": " Gets details of the specified `LbTrafficExtension` resource.", - "canonical": true, - "file": "dep_service.get_lb_traffic_extension.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetLbTrafficExtension", - "fullName": "google.cloud.networkservices.v1.DepService.GetLbTrafficExtension", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkservices.v1.LbTrafficExtension", - "client": { - "shortName": "DepServiceClient", - "fullName": "google.cloud.networkservices.v1.DepServiceClient" - }, - "method": { - "shortName": "GetLbTrafficExtension", - "fullName": "google.cloud.networkservices.v1.DepService.GetLbTrafficExtension", - "service": { - "shortName": "DepService", - "fullName": "google.cloud.networkservices.v1.DepService" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_DepService_CreateLbTrafficExtension_async", - "title": "DepService createLbTrafficExtension Sample", - "origin": "API_DEFINITION", - "description": " Creates a new `LbTrafficExtension` resource in a given project and location.", - "canonical": true, - "file": "dep_service.create_lb_traffic_extension.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateLbTrafficExtension", - "fullName": "google.cloud.networkservices.v1.DepService.CreateLbTrafficExtension", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "lb_traffic_extension_id", - "type": "TYPE_STRING" - }, - { - "name": "lb_traffic_extension", - "type": ".google.cloud.networkservices.v1.LbTrafficExtension" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DepServiceClient", - "fullName": "google.cloud.networkservices.v1.DepServiceClient" - }, - "method": { - "shortName": "CreateLbTrafficExtension", - "fullName": "google.cloud.networkservices.v1.DepService.CreateLbTrafficExtension", - "service": { - "shortName": "DepService", - "fullName": "google.cloud.networkservices.v1.DepService" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_DepService_UpdateLbTrafficExtension_async", - "title": "DepService updateLbTrafficExtension Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of the specified `LbTrafficExtension` resource.", - "canonical": true, - "file": "dep_service.update_lb_traffic_extension.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateLbTrafficExtension", - "fullName": "google.cloud.networkservices.v1.DepService.UpdateLbTrafficExtension", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "lb_traffic_extension", - "type": ".google.cloud.networkservices.v1.LbTrafficExtension" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DepServiceClient", - "fullName": "google.cloud.networkservices.v1.DepServiceClient" - }, - "method": { - "shortName": "UpdateLbTrafficExtension", - "fullName": "google.cloud.networkservices.v1.DepService.UpdateLbTrafficExtension", - "service": { - "shortName": "DepService", - "fullName": "google.cloud.networkservices.v1.DepService" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_DepService_DeleteLbTrafficExtension_async", - "title": "DepService deleteLbTrafficExtension Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified `LbTrafficExtension` resource.", - "canonical": true, - "file": "dep_service.delete_lb_traffic_extension.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteLbTrafficExtension", - "fullName": "google.cloud.networkservices.v1.DepService.DeleteLbTrafficExtension", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DepServiceClient", - "fullName": "google.cloud.networkservices.v1.DepServiceClient" - }, - "method": { - "shortName": "DeleteLbTrafficExtension", - "fullName": "google.cloud.networkservices.v1.DepService.DeleteLbTrafficExtension", - "service": { - "shortName": "DepService", - "fullName": "google.cloud.networkservices.v1.DepService" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_DepService_ListLbRouteExtensions_async", - "title": "DepService listLbRouteExtensions Sample", - "origin": "API_DEFINITION", - "description": " Lists `LbRouteExtension` resources in a given project and location.", - "canonical": true, - "file": "dep_service.list_lb_route_extensions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListLbRouteExtensions", - "fullName": "google.cloud.networkservices.v1.DepService.ListLbRouteExtensions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkservices.v1.ListLbRouteExtensionsResponse", - "client": { - "shortName": "DepServiceClient", - "fullName": "google.cloud.networkservices.v1.DepServiceClient" - }, - "method": { - "shortName": "ListLbRouteExtensions", - "fullName": "google.cloud.networkservices.v1.DepService.ListLbRouteExtensions", - "service": { - "shortName": "DepService", - "fullName": "google.cloud.networkservices.v1.DepService" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_DepService_GetLbRouteExtension_async", - "title": "DepService getLbRouteExtension Sample", - "origin": "API_DEFINITION", - "description": " Gets details of the specified `LbRouteExtension` resource.", - "canonical": true, - "file": "dep_service.get_lb_route_extension.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetLbRouteExtension", - "fullName": "google.cloud.networkservices.v1.DepService.GetLbRouteExtension", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkservices.v1.LbRouteExtension", - "client": { - "shortName": "DepServiceClient", - "fullName": "google.cloud.networkservices.v1.DepServiceClient" - }, - "method": { - "shortName": "GetLbRouteExtension", - "fullName": "google.cloud.networkservices.v1.DepService.GetLbRouteExtension", - "service": { - "shortName": "DepService", - "fullName": "google.cloud.networkservices.v1.DepService" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_DepService_CreateLbRouteExtension_async", - "title": "DepService createLbRouteExtension Sample", - "origin": "API_DEFINITION", - "description": " Creates a new `LbRouteExtension` resource in a given project and location.", - "canonical": true, - "file": "dep_service.create_lb_route_extension.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateLbRouteExtension", - "fullName": "google.cloud.networkservices.v1.DepService.CreateLbRouteExtension", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "lb_route_extension_id", - "type": "TYPE_STRING" - }, - { - "name": "lb_route_extension", - "type": ".google.cloud.networkservices.v1.LbRouteExtension" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DepServiceClient", - "fullName": "google.cloud.networkservices.v1.DepServiceClient" - }, - "method": { - "shortName": "CreateLbRouteExtension", - "fullName": "google.cloud.networkservices.v1.DepService.CreateLbRouteExtension", - "service": { - "shortName": "DepService", - "fullName": "google.cloud.networkservices.v1.DepService" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_DepService_UpdateLbRouteExtension_async", - "title": "DepService updateLbRouteExtension Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of the specified `LbRouteExtension` resource.", - "canonical": true, - "file": "dep_service.update_lb_route_extension.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateLbRouteExtension", - "fullName": "google.cloud.networkservices.v1.DepService.UpdateLbRouteExtension", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "lb_route_extension", - "type": ".google.cloud.networkservices.v1.LbRouteExtension" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DepServiceClient", - "fullName": "google.cloud.networkservices.v1.DepServiceClient" - }, - "method": { - "shortName": "UpdateLbRouteExtension", - "fullName": "google.cloud.networkservices.v1.DepService.UpdateLbRouteExtension", - "service": { - "shortName": "DepService", - "fullName": "google.cloud.networkservices.v1.DepService" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_DepService_DeleteLbRouteExtension_async", - "title": "DepService deleteLbRouteExtension Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified `LbRouteExtension` resource.", - "canonical": true, - "file": "dep_service.delete_lb_route_extension.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteLbRouteExtension", - "fullName": "google.cloud.networkservices.v1.DepService.DeleteLbRouteExtension", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DepServiceClient", - "fullName": "google.cloud.networkservices.v1.DepServiceClient" - }, - "method": { - "shortName": "DeleteLbRouteExtension", - "fullName": "google.cloud.networkservices.v1.DepService.DeleteLbRouteExtension", - "service": { - "shortName": "DepService", - "fullName": "google.cloud.networkservices.v1.DepService" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_DepService_ListLbEdgeExtensions_async", - "title": "DepService listLbEdgeExtensions Sample", - "origin": "API_DEFINITION", - "description": " Lists `LbEdgeExtension` resources in a given project and location.", - "canonical": true, - "file": "dep_service.list_lb_edge_extensions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListLbEdgeExtensions", - "fullName": "google.cloud.networkservices.v1.DepService.ListLbEdgeExtensions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkservices.v1.ListLbEdgeExtensionsResponse", - "client": { - "shortName": "DepServiceClient", - "fullName": "google.cloud.networkservices.v1.DepServiceClient" - }, - "method": { - "shortName": "ListLbEdgeExtensions", - "fullName": "google.cloud.networkservices.v1.DepService.ListLbEdgeExtensions", - "service": { - "shortName": "DepService", - "fullName": "google.cloud.networkservices.v1.DepService" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_DepService_GetLbEdgeExtension_async", - "title": "DepService getLbEdgeExtension Sample", - "origin": "API_DEFINITION", - "description": " Gets details of the specified `LbEdgeExtension` resource.", - "canonical": true, - "file": "dep_service.get_lb_edge_extension.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetLbEdgeExtension", - "fullName": "google.cloud.networkservices.v1.DepService.GetLbEdgeExtension", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkservices.v1.LbEdgeExtension", - "client": { - "shortName": "DepServiceClient", - "fullName": "google.cloud.networkservices.v1.DepServiceClient" - }, - "method": { - "shortName": "GetLbEdgeExtension", - "fullName": "google.cloud.networkservices.v1.DepService.GetLbEdgeExtension", - "service": { - "shortName": "DepService", - "fullName": "google.cloud.networkservices.v1.DepService" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_DepService_CreateLbEdgeExtension_async", - "title": "DepService createLbEdgeExtension Sample", - "origin": "API_DEFINITION", - "description": " Creates a new `LbEdgeExtension` resource in a given project and location.", - "canonical": true, - "file": "dep_service.create_lb_edge_extension.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateLbEdgeExtension", - "fullName": "google.cloud.networkservices.v1.DepService.CreateLbEdgeExtension", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "lb_edge_extension_id", - "type": "TYPE_STRING" - }, - { - "name": "lb_edge_extension", - "type": ".google.cloud.networkservices.v1.LbEdgeExtension" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DepServiceClient", - "fullName": "google.cloud.networkservices.v1.DepServiceClient" - }, - "method": { - "shortName": "CreateLbEdgeExtension", - "fullName": "google.cloud.networkservices.v1.DepService.CreateLbEdgeExtension", - "service": { - "shortName": "DepService", - "fullName": "google.cloud.networkservices.v1.DepService" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_DepService_UpdateLbEdgeExtension_async", - "title": "DepService updateLbEdgeExtension Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of the specified `LbEdgeExtension` resource.", - "canonical": true, - "file": "dep_service.update_lb_edge_extension.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateLbEdgeExtension", - "fullName": "google.cloud.networkservices.v1.DepService.UpdateLbEdgeExtension", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "lb_edge_extension", - "type": ".google.cloud.networkservices.v1.LbEdgeExtension" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DepServiceClient", - "fullName": "google.cloud.networkservices.v1.DepServiceClient" - }, - "method": { - "shortName": "UpdateLbEdgeExtension", - "fullName": "google.cloud.networkservices.v1.DepService.UpdateLbEdgeExtension", - "service": { - "shortName": "DepService", - "fullName": "google.cloud.networkservices.v1.DepService" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_DepService_DeleteLbEdgeExtension_async", - "title": "DepService deleteLbEdgeExtension Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified `LbEdgeExtension` resource.", - "canonical": true, - "file": "dep_service.delete_lb_edge_extension.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteLbEdgeExtension", - "fullName": "google.cloud.networkservices.v1.DepService.DeleteLbEdgeExtension", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DepServiceClient", - "fullName": "google.cloud.networkservices.v1.DepServiceClient" - }, - "method": { - "shortName": "DeleteLbEdgeExtension", - "fullName": "google.cloud.networkservices.v1.DepService.DeleteLbEdgeExtension", - "service": { - "shortName": "DepService", - "fullName": "google.cloud.networkservices.v1.DepService" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_DepService_ListAuthzExtensions_async", - "title": "DepService listAuthzExtensions Sample", - "origin": "API_DEFINITION", - "description": " Lists `AuthzExtension` resources in a given project and location.", - "canonical": true, - "file": "dep_service.list_authz_extensions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAuthzExtensions", - "fullName": "google.cloud.networkservices.v1.DepService.ListAuthzExtensions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkservices.v1.ListAuthzExtensionsResponse", - "client": { - "shortName": "DepServiceClient", - "fullName": "google.cloud.networkservices.v1.DepServiceClient" - }, - "method": { - "shortName": "ListAuthzExtensions", - "fullName": "google.cloud.networkservices.v1.DepService.ListAuthzExtensions", - "service": { - "shortName": "DepService", - "fullName": "google.cloud.networkservices.v1.DepService" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_DepService_GetAuthzExtension_async", - "title": "DepService getAuthzExtension Sample", - "origin": "API_DEFINITION", - "description": " Gets details of the specified `AuthzExtension` resource.", - "canonical": true, - "file": "dep_service.get_authz_extension.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAuthzExtension", - "fullName": "google.cloud.networkservices.v1.DepService.GetAuthzExtension", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkservices.v1.AuthzExtension", - "client": { - "shortName": "DepServiceClient", - "fullName": "google.cloud.networkservices.v1.DepServiceClient" - }, - "method": { - "shortName": "GetAuthzExtension", - "fullName": "google.cloud.networkservices.v1.DepService.GetAuthzExtension", - "service": { - "shortName": "DepService", - "fullName": "google.cloud.networkservices.v1.DepService" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_DepService_CreateAuthzExtension_async", - "title": "DepService createAuthzExtension Sample", - "origin": "API_DEFINITION", - "description": " Creates a new `AuthzExtension` resource in a given project and location.", - "canonical": true, - "file": "dep_service.create_authz_extension.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAuthzExtension", - "fullName": "google.cloud.networkservices.v1.DepService.CreateAuthzExtension", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "authz_extension_id", - "type": "TYPE_STRING" - }, - { - "name": "authz_extension", - "type": ".google.cloud.networkservices.v1.AuthzExtension" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DepServiceClient", - "fullName": "google.cloud.networkservices.v1.DepServiceClient" - }, - "method": { - "shortName": "CreateAuthzExtension", - "fullName": "google.cloud.networkservices.v1.DepService.CreateAuthzExtension", - "service": { - "shortName": "DepService", - "fullName": "google.cloud.networkservices.v1.DepService" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_DepService_UpdateAuthzExtension_async", - "title": "DepService updateAuthzExtension Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of the specified `AuthzExtension` resource.", - "canonical": true, - "file": "dep_service.update_authz_extension.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAuthzExtension", - "fullName": "google.cloud.networkservices.v1.DepService.UpdateAuthzExtension", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "authz_extension", - "type": ".google.cloud.networkservices.v1.AuthzExtension" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DepServiceClient", - "fullName": "google.cloud.networkservices.v1.DepServiceClient" - }, - "method": { - "shortName": "UpdateAuthzExtension", - "fullName": "google.cloud.networkservices.v1.DepService.UpdateAuthzExtension", - "service": { - "shortName": "DepService", - "fullName": "google.cloud.networkservices.v1.DepService" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_DepService_DeleteAuthzExtension_async", - "title": "DepService deleteAuthzExtension Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified `AuthzExtension` resource.", - "canonical": true, - "file": "dep_service.delete_authz_extension.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAuthzExtension", - "fullName": "google.cloud.networkservices.v1.DepService.DeleteAuthzExtension", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DepServiceClient", - "fullName": "google.cloud.networkservices.v1.DepServiceClient" - }, - "method": { - "shortName": "DeleteAuthzExtension", - "fullName": "google.cloud.networkservices.v1.DepService.DeleteAuthzExtension", - "service": { - "shortName": "DepService", - "fullName": "google.cloud.networkservices.v1.DepService" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_NetworkServices_ListEndpointPolicies_async", - "title": "DepService listEndpointPolicies Sample", - "origin": "API_DEFINITION", - "description": " Lists EndpointPolicies in a given project and location.", - "canonical": true, - "file": "network_services.list_endpoint_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEndpointPolicies", - "fullName": "google.cloud.networkservices.v1.NetworkServices.ListEndpointPolicies", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.networkservices.v1.ListEndpointPoliciesResponse", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1.NetworkServicesClient" - }, - "method": { - "shortName": "ListEndpointPolicies", - "fullName": "google.cloud.networkservices.v1.NetworkServices.ListEndpointPolicies", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_NetworkServices_GetEndpointPolicy_async", - "title": "DepService getEndpointPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single EndpointPolicy.", - "canonical": true, - "file": "network_services.get_endpoint_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEndpointPolicy", - "fullName": "google.cloud.networkservices.v1.NetworkServices.GetEndpointPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkservices.v1.EndpointPolicy", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1.NetworkServicesClient" - }, - "method": { - "shortName": "GetEndpointPolicy", - "fullName": "google.cloud.networkservices.v1.NetworkServices.GetEndpointPolicy", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_NetworkServices_CreateEndpointPolicy_async", - "title": "DepService createEndpointPolicy Sample", - "origin": "API_DEFINITION", - "description": " Creates a new EndpointPolicy in a given project and location.", - "canonical": true, - "file": "network_services.create_endpoint_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateEndpointPolicy", - "fullName": "google.cloud.networkservices.v1.NetworkServices.CreateEndpointPolicy", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "endpoint_policy_id", - "type": "TYPE_STRING" - }, - { - "name": "endpoint_policy", - "type": ".google.cloud.networkservices.v1.EndpointPolicy" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1.NetworkServicesClient" - }, - "method": { - "shortName": "CreateEndpointPolicy", - "fullName": "google.cloud.networkservices.v1.NetworkServices.CreateEndpointPolicy", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_NetworkServices_UpdateEndpointPolicy_async", - "title": "DepService updateEndpointPolicy Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single EndpointPolicy.", - "canonical": true, - "file": "network_services.update_endpoint_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateEndpointPolicy", - "fullName": "google.cloud.networkservices.v1.NetworkServices.UpdateEndpointPolicy", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "endpoint_policy", - "type": ".google.cloud.networkservices.v1.EndpointPolicy" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1.NetworkServicesClient" - }, - "method": { - "shortName": "UpdateEndpointPolicy", - "fullName": "google.cloud.networkservices.v1.NetworkServices.UpdateEndpointPolicy", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_NetworkServices_DeleteEndpointPolicy_async", - "title": "DepService deleteEndpointPolicy Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single EndpointPolicy.", - "canonical": true, - "file": "network_services.delete_endpoint_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteEndpointPolicy", - "fullName": "google.cloud.networkservices.v1.NetworkServices.DeleteEndpointPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1.NetworkServicesClient" - }, - "method": { - "shortName": "DeleteEndpointPolicy", - "fullName": "google.cloud.networkservices.v1.NetworkServices.DeleteEndpointPolicy", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_NetworkServices_ListWasmPluginVersions_async", - "title": "DepService listWasmPluginVersions Sample", - "origin": "API_DEFINITION", - "description": " Lists `WasmPluginVersion` resources in a given project and location.", - "canonical": true, - "file": "network_services.list_wasm_plugin_versions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListWasmPluginVersions", - "fullName": "google.cloud.networkservices.v1.NetworkServices.ListWasmPluginVersions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkservices.v1.ListWasmPluginVersionsResponse", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1.NetworkServicesClient" - }, - "method": { - "shortName": "ListWasmPluginVersions", - "fullName": "google.cloud.networkservices.v1.NetworkServices.ListWasmPluginVersions", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_NetworkServices_GetWasmPluginVersion_async", - "title": "DepService getWasmPluginVersion Sample", - "origin": "API_DEFINITION", - "description": " Gets details of the specified `WasmPluginVersion` resource.", - "canonical": true, - "file": "network_services.get_wasm_plugin_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetWasmPluginVersion", - "fullName": "google.cloud.networkservices.v1.NetworkServices.GetWasmPluginVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkservices.v1.WasmPluginVersion", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1.NetworkServicesClient" - }, - "method": { - "shortName": "GetWasmPluginVersion", - "fullName": "google.cloud.networkservices.v1.NetworkServices.GetWasmPluginVersion", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_NetworkServices_CreateWasmPluginVersion_async", - "title": "DepService createWasmPluginVersion Sample", - "origin": "API_DEFINITION", - "description": " Creates a new `WasmPluginVersion` resource in a given project and location.", - "canonical": true, - "file": "network_services.create_wasm_plugin_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateWasmPluginVersion", - "fullName": "google.cloud.networkservices.v1.NetworkServices.CreateWasmPluginVersion", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "wasm_plugin_version_id", - "type": "TYPE_STRING" - }, - { - "name": "wasm_plugin_version", - "type": ".google.cloud.networkservices.v1.WasmPluginVersion" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1.NetworkServicesClient" - }, - "method": { - "shortName": "CreateWasmPluginVersion", - "fullName": "google.cloud.networkservices.v1.NetworkServices.CreateWasmPluginVersion", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_NetworkServices_DeleteWasmPluginVersion_async", - "title": "DepService deleteWasmPluginVersion Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified `WasmPluginVersion` resource.", - "canonical": true, - "file": "network_services.delete_wasm_plugin_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteWasmPluginVersion", - "fullName": "google.cloud.networkservices.v1.NetworkServices.DeleteWasmPluginVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1.NetworkServicesClient" - }, - "method": { - "shortName": "DeleteWasmPluginVersion", - "fullName": "google.cloud.networkservices.v1.NetworkServices.DeleteWasmPluginVersion", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_NetworkServices_ListWasmPlugins_async", - "title": "DepService listWasmPlugins Sample", - "origin": "API_DEFINITION", - "description": " Lists `WasmPlugin` resources in a given project and location.", - "canonical": true, - "file": "network_services.list_wasm_plugins.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListWasmPlugins", - "fullName": "google.cloud.networkservices.v1.NetworkServices.ListWasmPlugins", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkservices.v1.ListWasmPluginsResponse", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1.NetworkServicesClient" - }, - "method": { - "shortName": "ListWasmPlugins", - "fullName": "google.cloud.networkservices.v1.NetworkServices.ListWasmPlugins", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_NetworkServices_GetWasmPlugin_async", - "title": "DepService getWasmPlugin Sample", - "origin": "API_DEFINITION", - "description": " Gets details of the specified `WasmPlugin` resource.", - "canonical": true, - "file": "network_services.get_wasm_plugin.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetWasmPlugin", - "fullName": "google.cloud.networkservices.v1.NetworkServices.GetWasmPlugin", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.networkservices.v1.WasmPluginView" - } - ], - "resultType": ".google.cloud.networkservices.v1.WasmPlugin", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1.NetworkServicesClient" - }, - "method": { - "shortName": "GetWasmPlugin", - "fullName": "google.cloud.networkservices.v1.NetworkServices.GetWasmPlugin", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_NetworkServices_CreateWasmPlugin_async", - "title": "DepService createWasmPlugin Sample", - "origin": "API_DEFINITION", - "description": " Creates a new `WasmPlugin` resource in a given project and location.", - "canonical": true, - "file": "network_services.create_wasm_plugin.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateWasmPlugin", - "fullName": "google.cloud.networkservices.v1.NetworkServices.CreateWasmPlugin", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "wasm_plugin_id", - "type": "TYPE_STRING" - }, - { - "name": "wasm_plugin", - "type": ".google.cloud.networkservices.v1.WasmPlugin" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1.NetworkServicesClient" - }, - "method": { - "shortName": "CreateWasmPlugin", - "fullName": "google.cloud.networkservices.v1.NetworkServices.CreateWasmPlugin", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_NetworkServices_UpdateWasmPlugin_async", - "title": "DepService updateWasmPlugin Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of the specified `WasmPlugin` resource.", - "canonical": true, - "file": "network_services.update_wasm_plugin.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateWasmPlugin", - "fullName": "google.cloud.networkservices.v1.NetworkServices.UpdateWasmPlugin", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "wasm_plugin", - "type": ".google.cloud.networkservices.v1.WasmPlugin" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1.NetworkServicesClient" - }, - "method": { - "shortName": "UpdateWasmPlugin", - "fullName": "google.cloud.networkservices.v1.NetworkServices.UpdateWasmPlugin", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_NetworkServices_DeleteWasmPlugin_async", - "title": "DepService deleteWasmPlugin Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified `WasmPlugin` resource.", - "canonical": true, - "file": "network_services.delete_wasm_plugin.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteWasmPlugin", - "fullName": "google.cloud.networkservices.v1.NetworkServices.DeleteWasmPlugin", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1.NetworkServicesClient" - }, - "method": { - "shortName": "DeleteWasmPlugin", - "fullName": "google.cloud.networkservices.v1.NetworkServices.DeleteWasmPlugin", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_NetworkServices_ListGateways_async", - "title": "DepService listGateways Sample", - "origin": "API_DEFINITION", - "description": " Lists Gateways in a given project and location.", - "canonical": true, - "file": "network_services.list_gateways.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListGateways", - "fullName": "google.cloud.networkservices.v1.NetworkServices.ListGateways", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkservices.v1.ListGatewaysResponse", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1.NetworkServicesClient" - }, - "method": { - "shortName": "ListGateways", - "fullName": "google.cloud.networkservices.v1.NetworkServices.ListGateways", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_NetworkServices_GetGateway_async", - "title": "DepService getGateway Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Gateway.", - "canonical": true, - "file": "network_services.get_gateway.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetGateway", - "fullName": "google.cloud.networkservices.v1.NetworkServices.GetGateway", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkservices.v1.Gateway", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1.NetworkServicesClient" - }, - "method": { - "shortName": "GetGateway", - "fullName": "google.cloud.networkservices.v1.NetworkServices.GetGateway", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_NetworkServices_CreateGateway_async", - "title": "DepService createGateway Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Gateway in a given project and location.", - "canonical": true, - "file": "network_services.create_gateway.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateGateway", - "fullName": "google.cloud.networkservices.v1.NetworkServices.CreateGateway", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "gateway_id", - "type": "TYPE_STRING" - }, - { - "name": "gateway", - "type": ".google.cloud.networkservices.v1.Gateway" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1.NetworkServicesClient" - }, - "method": { - "shortName": "CreateGateway", - "fullName": "google.cloud.networkservices.v1.NetworkServices.CreateGateway", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_NetworkServices_UpdateGateway_async", - "title": "DepService updateGateway Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Gateway.", - "canonical": true, - "file": "network_services.update_gateway.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateGateway", - "fullName": "google.cloud.networkservices.v1.NetworkServices.UpdateGateway", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "gateway", - "type": ".google.cloud.networkservices.v1.Gateway" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1.NetworkServicesClient" - }, - "method": { - "shortName": "UpdateGateway", - "fullName": "google.cloud.networkservices.v1.NetworkServices.UpdateGateway", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_NetworkServices_DeleteGateway_async", - "title": "DepService deleteGateway Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Gateway.", - "canonical": true, - "file": "network_services.delete_gateway.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteGateway", - "fullName": "google.cloud.networkservices.v1.NetworkServices.DeleteGateway", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1.NetworkServicesClient" - }, - "method": { - "shortName": "DeleteGateway", - "fullName": "google.cloud.networkservices.v1.NetworkServices.DeleteGateway", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_NetworkServices_ListGrpcRoutes_async", - "title": "DepService listGrpcRoutes Sample", - "origin": "API_DEFINITION", - "description": " Lists GrpcRoutes in a given project and location.", - "canonical": true, - "file": "network_services.list_grpc_routes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListGrpcRoutes", - "fullName": "google.cloud.networkservices.v1.NetworkServices.ListGrpcRoutes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.networkservices.v1.ListGrpcRoutesResponse", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1.NetworkServicesClient" - }, - "method": { - "shortName": "ListGrpcRoutes", - "fullName": "google.cloud.networkservices.v1.NetworkServices.ListGrpcRoutes", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_NetworkServices_GetGrpcRoute_async", - "title": "DepService getGrpcRoute Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single GrpcRoute.", - "canonical": true, - "file": "network_services.get_grpc_route.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetGrpcRoute", - "fullName": "google.cloud.networkservices.v1.NetworkServices.GetGrpcRoute", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkservices.v1.GrpcRoute", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1.NetworkServicesClient" - }, - "method": { - "shortName": "GetGrpcRoute", - "fullName": "google.cloud.networkservices.v1.NetworkServices.GetGrpcRoute", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_NetworkServices_CreateGrpcRoute_async", - "title": "DepService createGrpcRoute Sample", - "origin": "API_DEFINITION", - "description": " Creates a new GrpcRoute in a given project and location.", - "canonical": true, - "file": "network_services.create_grpc_route.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateGrpcRoute", - "fullName": "google.cloud.networkservices.v1.NetworkServices.CreateGrpcRoute", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "grpc_route_id", - "type": "TYPE_STRING" - }, - { - "name": "grpc_route", - "type": ".google.cloud.networkservices.v1.GrpcRoute" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1.NetworkServicesClient" - }, - "method": { - "shortName": "CreateGrpcRoute", - "fullName": "google.cloud.networkservices.v1.NetworkServices.CreateGrpcRoute", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_NetworkServices_UpdateGrpcRoute_async", - "title": "DepService updateGrpcRoute Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single GrpcRoute.", - "canonical": true, - "file": "network_services.update_grpc_route.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateGrpcRoute", - "fullName": "google.cloud.networkservices.v1.NetworkServices.UpdateGrpcRoute", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "grpc_route", - "type": ".google.cloud.networkservices.v1.GrpcRoute" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1.NetworkServicesClient" - }, - "method": { - "shortName": "UpdateGrpcRoute", - "fullName": "google.cloud.networkservices.v1.NetworkServices.UpdateGrpcRoute", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_NetworkServices_DeleteGrpcRoute_async", - "title": "DepService deleteGrpcRoute Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single GrpcRoute.", - "canonical": true, - "file": "network_services.delete_grpc_route.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteGrpcRoute", - "fullName": "google.cloud.networkservices.v1.NetworkServices.DeleteGrpcRoute", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1.NetworkServicesClient" - }, - "method": { - "shortName": "DeleteGrpcRoute", - "fullName": "google.cloud.networkservices.v1.NetworkServices.DeleteGrpcRoute", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_NetworkServices_ListHttpRoutes_async", - "title": "DepService listHttpRoutes Sample", - "origin": "API_DEFINITION", - "description": " Lists HttpRoute in a given project and location.", - "canonical": true, - "file": "network_services.list_http_routes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListHttpRoutes", - "fullName": "google.cloud.networkservices.v1.NetworkServices.ListHttpRoutes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.networkservices.v1.ListHttpRoutesResponse", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1.NetworkServicesClient" - }, - "method": { - "shortName": "ListHttpRoutes", - "fullName": "google.cloud.networkservices.v1.NetworkServices.ListHttpRoutes", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_NetworkServices_GetHttpRoute_async", - "title": "DepService getHttpRoute Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single HttpRoute.", - "canonical": true, - "file": "network_services.get_http_route.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetHttpRoute", - "fullName": "google.cloud.networkservices.v1.NetworkServices.GetHttpRoute", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkservices.v1.HttpRoute", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1.NetworkServicesClient" - }, - "method": { - "shortName": "GetHttpRoute", - "fullName": "google.cloud.networkservices.v1.NetworkServices.GetHttpRoute", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_NetworkServices_CreateHttpRoute_async", - "title": "DepService createHttpRoute Sample", - "origin": "API_DEFINITION", - "description": " Creates a new HttpRoute in a given project and location.", - "canonical": true, - "file": "network_services.create_http_route.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateHttpRoute", - "fullName": "google.cloud.networkservices.v1.NetworkServices.CreateHttpRoute", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "http_route_id", - "type": "TYPE_STRING" - }, - { - "name": "http_route", - "type": ".google.cloud.networkservices.v1.HttpRoute" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1.NetworkServicesClient" - }, - "method": { - "shortName": "CreateHttpRoute", - "fullName": "google.cloud.networkservices.v1.NetworkServices.CreateHttpRoute", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_NetworkServices_UpdateHttpRoute_async", - "title": "DepService updateHttpRoute Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single HttpRoute.", - "canonical": true, - "file": "network_services.update_http_route.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateHttpRoute", - "fullName": "google.cloud.networkservices.v1.NetworkServices.UpdateHttpRoute", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "http_route", - "type": ".google.cloud.networkservices.v1.HttpRoute" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1.NetworkServicesClient" - }, - "method": { - "shortName": "UpdateHttpRoute", - "fullName": "google.cloud.networkservices.v1.NetworkServices.UpdateHttpRoute", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_NetworkServices_DeleteHttpRoute_async", - "title": "DepService deleteHttpRoute Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single HttpRoute.", - "canonical": true, - "file": "network_services.delete_http_route.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteHttpRoute", - "fullName": "google.cloud.networkservices.v1.NetworkServices.DeleteHttpRoute", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1.NetworkServicesClient" - }, - "method": { - "shortName": "DeleteHttpRoute", - "fullName": "google.cloud.networkservices.v1.NetworkServices.DeleteHttpRoute", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_NetworkServices_ListTcpRoutes_async", - "title": "DepService listTcpRoutes Sample", - "origin": "API_DEFINITION", - "description": " Lists TcpRoute in a given project and location.", - "canonical": true, - "file": "network_services.list_tcp_routes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTcpRoutes", - "fullName": "google.cloud.networkservices.v1.NetworkServices.ListTcpRoutes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.networkservices.v1.ListTcpRoutesResponse", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1.NetworkServicesClient" - }, - "method": { - "shortName": "ListTcpRoutes", - "fullName": "google.cloud.networkservices.v1.NetworkServices.ListTcpRoutes", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_NetworkServices_GetTcpRoute_async", - "title": "DepService getTcpRoute Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single TcpRoute.", - "canonical": true, - "file": "network_services.get_tcp_route.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTcpRoute", - "fullName": "google.cloud.networkservices.v1.NetworkServices.GetTcpRoute", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkservices.v1.TcpRoute", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1.NetworkServicesClient" - }, - "method": { - "shortName": "GetTcpRoute", - "fullName": "google.cloud.networkservices.v1.NetworkServices.GetTcpRoute", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_NetworkServices_CreateTcpRoute_async", - "title": "DepService createTcpRoute Sample", - "origin": "API_DEFINITION", - "description": " Creates a new TcpRoute in a given project and location.", - "canonical": true, - "file": "network_services.create_tcp_route.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTcpRoute", - "fullName": "google.cloud.networkservices.v1.NetworkServices.CreateTcpRoute", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "tcp_route_id", - "type": "TYPE_STRING" - }, - { - "name": "tcp_route", - "type": ".google.cloud.networkservices.v1.TcpRoute" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1.NetworkServicesClient" - }, - "method": { - "shortName": "CreateTcpRoute", - "fullName": "google.cloud.networkservices.v1.NetworkServices.CreateTcpRoute", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_NetworkServices_UpdateTcpRoute_async", - "title": "DepService updateTcpRoute Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single TcpRoute.", - "canonical": true, - "file": "network_services.update_tcp_route.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTcpRoute", - "fullName": "google.cloud.networkservices.v1.NetworkServices.UpdateTcpRoute", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "tcp_route", - "type": ".google.cloud.networkservices.v1.TcpRoute" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1.NetworkServicesClient" - }, - "method": { - "shortName": "UpdateTcpRoute", - "fullName": "google.cloud.networkservices.v1.NetworkServices.UpdateTcpRoute", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_NetworkServices_DeleteTcpRoute_async", - "title": "DepService deleteTcpRoute Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single TcpRoute.", - "canonical": true, - "file": "network_services.delete_tcp_route.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTcpRoute", - "fullName": "google.cloud.networkservices.v1.NetworkServices.DeleteTcpRoute", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1.NetworkServicesClient" - }, - "method": { - "shortName": "DeleteTcpRoute", - "fullName": "google.cloud.networkservices.v1.NetworkServices.DeleteTcpRoute", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_NetworkServices_ListTlsRoutes_async", - "title": "DepService listTlsRoutes Sample", - "origin": "API_DEFINITION", - "description": " Lists TlsRoute in a given project and location.", - "canonical": true, - "file": "network_services.list_tls_routes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTlsRoutes", - "fullName": "google.cloud.networkservices.v1.NetworkServices.ListTlsRoutes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.networkservices.v1.ListTlsRoutesResponse", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1.NetworkServicesClient" - }, - "method": { - "shortName": "ListTlsRoutes", - "fullName": "google.cloud.networkservices.v1.NetworkServices.ListTlsRoutes", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_NetworkServices_GetTlsRoute_async", - "title": "DepService getTlsRoute Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single TlsRoute.", - "canonical": true, - "file": "network_services.get_tls_route.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTlsRoute", - "fullName": "google.cloud.networkservices.v1.NetworkServices.GetTlsRoute", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkservices.v1.TlsRoute", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1.NetworkServicesClient" - }, - "method": { - "shortName": "GetTlsRoute", - "fullName": "google.cloud.networkservices.v1.NetworkServices.GetTlsRoute", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_NetworkServices_CreateTlsRoute_async", - "title": "DepService createTlsRoute Sample", - "origin": "API_DEFINITION", - "description": " Creates a new TlsRoute in a given project and location.", - "canonical": true, - "file": "network_services.create_tls_route.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTlsRoute", - "fullName": "google.cloud.networkservices.v1.NetworkServices.CreateTlsRoute", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "tls_route_id", - "type": "TYPE_STRING" - }, - { - "name": "tls_route", - "type": ".google.cloud.networkservices.v1.TlsRoute" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1.NetworkServicesClient" - }, - "method": { - "shortName": "CreateTlsRoute", - "fullName": "google.cloud.networkservices.v1.NetworkServices.CreateTlsRoute", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_NetworkServices_UpdateTlsRoute_async", - "title": "DepService updateTlsRoute Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single TlsRoute.", - "canonical": true, - "file": "network_services.update_tls_route.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTlsRoute", - "fullName": "google.cloud.networkservices.v1.NetworkServices.UpdateTlsRoute", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "tls_route", - "type": ".google.cloud.networkservices.v1.TlsRoute" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1.NetworkServicesClient" - }, - "method": { - "shortName": "UpdateTlsRoute", - "fullName": "google.cloud.networkservices.v1.NetworkServices.UpdateTlsRoute", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_NetworkServices_DeleteTlsRoute_async", - "title": "DepService deleteTlsRoute Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single TlsRoute.", - "canonical": true, - "file": "network_services.delete_tls_route.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTlsRoute", - "fullName": "google.cloud.networkservices.v1.NetworkServices.DeleteTlsRoute", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1.NetworkServicesClient" - }, - "method": { - "shortName": "DeleteTlsRoute", - "fullName": "google.cloud.networkservices.v1.NetworkServices.DeleteTlsRoute", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_NetworkServices_ListServiceBindings_async", - "title": "DepService listServiceBindings Sample", - "origin": "API_DEFINITION", - "description": " Lists ServiceBinding in a given project and location.", - "canonical": true, - "file": "network_services.list_service_bindings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListServiceBindings", - "fullName": "google.cloud.networkservices.v1.NetworkServices.ListServiceBindings", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkservices.v1.ListServiceBindingsResponse", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1.NetworkServicesClient" - }, - "method": { - "shortName": "ListServiceBindings", - "fullName": "google.cloud.networkservices.v1.NetworkServices.ListServiceBindings", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_NetworkServices_GetServiceBinding_async", - "title": "DepService getServiceBinding Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single ServiceBinding.", - "canonical": true, - "file": "network_services.get_service_binding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetServiceBinding", - "fullName": "google.cloud.networkservices.v1.NetworkServices.GetServiceBinding", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkservices.v1.ServiceBinding", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1.NetworkServicesClient" - }, - "method": { - "shortName": "GetServiceBinding", - "fullName": "google.cloud.networkservices.v1.NetworkServices.GetServiceBinding", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_NetworkServices_CreateServiceBinding_async", - "title": "DepService createServiceBinding Sample", - "origin": "API_DEFINITION", - "description": " Creates a new ServiceBinding in a given project and location.", - "canonical": true, - "file": "network_services.create_service_binding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateServiceBinding", - "fullName": "google.cloud.networkservices.v1.NetworkServices.CreateServiceBinding", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "service_binding_id", - "type": "TYPE_STRING" - }, - { - "name": "service_binding", - "type": ".google.cloud.networkservices.v1.ServiceBinding" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1.NetworkServicesClient" - }, - "method": { - "shortName": "CreateServiceBinding", - "fullName": "google.cloud.networkservices.v1.NetworkServices.CreateServiceBinding", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_NetworkServices_UpdateServiceBinding_async", - "title": "DepService updateServiceBinding Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single ServiceBinding.", - "canonical": true, - "file": "network_services.update_service_binding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateServiceBinding", - "fullName": "google.cloud.networkservices.v1.NetworkServices.UpdateServiceBinding", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "service_binding", - "type": ".google.cloud.networkservices.v1.ServiceBinding" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1.NetworkServicesClient" - }, - "method": { - "shortName": "UpdateServiceBinding", - "fullName": "google.cloud.networkservices.v1.NetworkServices.UpdateServiceBinding", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_NetworkServices_DeleteServiceBinding_async", - "title": "DepService deleteServiceBinding Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single ServiceBinding.", - "canonical": true, - "file": "network_services.delete_service_binding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteServiceBinding", - "fullName": "google.cloud.networkservices.v1.NetworkServices.DeleteServiceBinding", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1.NetworkServicesClient" - }, - "method": { - "shortName": "DeleteServiceBinding", - "fullName": "google.cloud.networkservices.v1.NetworkServices.DeleteServiceBinding", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_NetworkServices_ListMeshes_async", - "title": "DepService listMeshes Sample", - "origin": "API_DEFINITION", - "description": " Lists Meshes in a given project and location.", - "canonical": true, - "file": "network_services.list_meshes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMeshes", - "fullName": "google.cloud.networkservices.v1.NetworkServices.ListMeshes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.networkservices.v1.ListMeshesResponse", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1.NetworkServicesClient" - }, - "method": { - "shortName": "ListMeshes", - "fullName": "google.cloud.networkservices.v1.NetworkServices.ListMeshes", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_NetworkServices_GetMesh_async", - "title": "DepService getMesh Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Mesh.", - "canonical": true, - "file": "network_services.get_mesh.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMesh", - "fullName": "google.cloud.networkservices.v1.NetworkServices.GetMesh", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkservices.v1.Mesh", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1.NetworkServicesClient" - }, - "method": { - "shortName": "GetMesh", - "fullName": "google.cloud.networkservices.v1.NetworkServices.GetMesh", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_NetworkServices_CreateMesh_async", - "title": "DepService createMesh Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Mesh in a given project and location.", - "canonical": true, - "file": "network_services.create_mesh.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateMesh", - "fullName": "google.cloud.networkservices.v1.NetworkServices.CreateMesh", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "mesh_id", - "type": "TYPE_STRING" - }, - { - "name": "mesh", - "type": ".google.cloud.networkservices.v1.Mesh" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1.NetworkServicesClient" - }, - "method": { - "shortName": "CreateMesh", - "fullName": "google.cloud.networkservices.v1.NetworkServices.CreateMesh", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_NetworkServices_UpdateMesh_async", - "title": "DepService updateMesh Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Mesh.", - "canonical": true, - "file": "network_services.update_mesh.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateMesh", - "fullName": "google.cloud.networkservices.v1.NetworkServices.UpdateMesh", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "mesh", - "type": ".google.cloud.networkservices.v1.Mesh" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1.NetworkServicesClient" - }, - "method": { - "shortName": "UpdateMesh", - "fullName": "google.cloud.networkservices.v1.NetworkServices.UpdateMesh", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_NetworkServices_DeleteMesh_async", - "title": "DepService deleteMesh Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Mesh.", - "canonical": true, - "file": "network_services.delete_mesh.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteMesh", - "fullName": "google.cloud.networkservices.v1.NetworkServices.DeleteMesh", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1.NetworkServicesClient" - }, - "method": { - "shortName": "DeleteMesh", - "fullName": "google.cloud.networkservices.v1.NetworkServices.DeleteMesh", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_NetworkServices_ListServiceLbPolicies_async", - "title": "DepService listServiceLbPolicies Sample", - "origin": "API_DEFINITION", - "description": " Lists ServiceLbPolicies in a given project and location.", - "canonical": true, - "file": "network_services.list_service_lb_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListServiceLbPolicies", - "fullName": "google.cloud.networkservices.v1.NetworkServices.ListServiceLbPolicies", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkservices.v1.ListServiceLbPoliciesResponse", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1.NetworkServicesClient" - }, - "method": { - "shortName": "ListServiceLbPolicies", - "fullName": "google.cloud.networkservices.v1.NetworkServices.ListServiceLbPolicies", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_NetworkServices_GetServiceLbPolicy_async", - "title": "DepService getServiceLbPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single ServiceLbPolicy.", - "canonical": true, - "file": "network_services.get_service_lb_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetServiceLbPolicy", - "fullName": "google.cloud.networkservices.v1.NetworkServices.GetServiceLbPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkservices.v1.ServiceLbPolicy", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1.NetworkServicesClient" - }, - "method": { - "shortName": "GetServiceLbPolicy", - "fullName": "google.cloud.networkservices.v1.NetworkServices.GetServiceLbPolicy", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_NetworkServices_CreateServiceLbPolicy_async", - "title": "DepService createServiceLbPolicy Sample", - "origin": "API_DEFINITION", - "description": " Creates a new ServiceLbPolicy in a given project and location.", - "canonical": true, - "file": "network_services.create_service_lb_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateServiceLbPolicy", - "fullName": "google.cloud.networkservices.v1.NetworkServices.CreateServiceLbPolicy", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "service_lb_policy_id", - "type": "TYPE_STRING" - }, - { - "name": "service_lb_policy", - "type": ".google.cloud.networkservices.v1.ServiceLbPolicy" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1.NetworkServicesClient" - }, - "method": { - "shortName": "CreateServiceLbPolicy", - "fullName": "google.cloud.networkservices.v1.NetworkServices.CreateServiceLbPolicy", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_NetworkServices_UpdateServiceLbPolicy_async", - "title": "DepService updateServiceLbPolicy Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single ServiceLbPolicy.", - "canonical": true, - "file": "network_services.update_service_lb_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateServiceLbPolicy", - "fullName": "google.cloud.networkservices.v1.NetworkServices.UpdateServiceLbPolicy", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "service_lb_policy", - "type": ".google.cloud.networkservices.v1.ServiceLbPolicy" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1.NetworkServicesClient" - }, - "method": { - "shortName": "UpdateServiceLbPolicy", - "fullName": "google.cloud.networkservices.v1.NetworkServices.UpdateServiceLbPolicy", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_NetworkServices_DeleteServiceLbPolicy_async", - "title": "DepService deleteServiceLbPolicy Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single ServiceLbPolicy.", - "canonical": true, - "file": "network_services.delete_service_lb_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteServiceLbPolicy", - "fullName": "google.cloud.networkservices.v1.NetworkServices.DeleteServiceLbPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1.NetworkServicesClient" - }, - "method": { - "shortName": "DeleteServiceLbPolicy", - "fullName": "google.cloud.networkservices.v1.NetworkServices.DeleteServiceLbPolicy", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_NetworkServices_GetGatewayRouteView_async", - "title": "DepService getGatewayRouteView Sample", - "origin": "API_DEFINITION", - "description": " Get a single RouteView of a Gateway.", - "canonical": true, - "file": "network_services.get_gateway_route_view.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetGatewayRouteView", - "fullName": "google.cloud.networkservices.v1.NetworkServices.GetGatewayRouteView", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkservices.v1.GatewayRouteView", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1.NetworkServicesClient" - }, - "method": { - "shortName": "GetGatewayRouteView", - "fullName": "google.cloud.networkservices.v1.NetworkServices.GetGatewayRouteView", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_NetworkServices_GetMeshRouteView_async", - "title": "DepService getMeshRouteView Sample", - "origin": "API_DEFINITION", - "description": " Get a single RouteView of a Mesh.", - "canonical": true, - "file": "network_services.get_mesh_route_view.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMeshRouteView", - "fullName": "google.cloud.networkservices.v1.NetworkServices.GetMeshRouteView", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkservices.v1.MeshRouteView", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1.NetworkServicesClient" - }, - "method": { - "shortName": "GetMeshRouteView", - "fullName": "google.cloud.networkservices.v1.NetworkServices.GetMeshRouteView", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_NetworkServices_ListGatewayRouteViews_async", - "title": "DepService listGatewayRouteViews Sample", - "origin": "API_DEFINITION", - "description": " Lists RouteViews", - "canonical": true, - "file": "network_services.list_gateway_route_views.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListGatewayRouteViews", - "fullName": "google.cloud.networkservices.v1.NetworkServices.ListGatewayRouteViews", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkservices.v1.ListGatewayRouteViewsResponse", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1.NetworkServicesClient" - }, - "method": { - "shortName": "ListGatewayRouteViews", - "fullName": "google.cloud.networkservices.v1.NetworkServices.ListGatewayRouteViews", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1_generated_NetworkServices_ListMeshRouteViews_async", - "title": "DepService listMeshRouteViews Sample", - "origin": "API_DEFINITION", - "description": " Lists RouteViews", - "canonical": true, - "file": "network_services.list_mesh_route_views.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMeshRouteViews", - "fullName": "google.cloud.networkservices.v1.NetworkServices.ListMeshRouteViews", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkservices.v1.ListMeshRouteViewsResponse", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1.NetworkServicesClient" - }, - "method": { - "shortName": "ListMeshRouteViews", - "fullName": "google.cloud.networkservices.v1.NetworkServices.ListMeshRouteViews", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1.NetworkServices" - } - } - } - } - ] -} diff --git a/packages/google-cloud-networkservices/samples/generated/v1beta1/snippet_metadata_google.cloud.networkservices.v1beta1.json b/packages/google-cloud-networkservices/samples/generated/v1beta1/snippet_metadata_google.cloud.networkservices.v1beta1.json deleted file mode 100644 index d106a9d23b06..000000000000 --- a/packages/google-cloud-networkservices/samples/generated/v1beta1/snippet_metadata_google.cloud.networkservices.v1beta1.json +++ /dev/null @@ -1,715 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-networkservices", - "version": "0.12.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.networkservices.v1beta1", - "version": "v1beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "networkservices_v1beta1_generated_DepService_ListLbTrafficExtensions_async", - "title": "DepService listLbTrafficExtensions Sample", - "origin": "API_DEFINITION", - "description": " Lists `LbTrafficExtension` resources in a given project and location.", - "canonical": true, - "file": "dep_service.list_lb_traffic_extensions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListLbTrafficExtensions", - "fullName": "google.cloud.networkservices.v1beta1.DepService.ListLbTrafficExtensions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkservices.v1beta1.ListLbTrafficExtensionsResponse", - "client": { - "shortName": "DepServiceClient", - "fullName": "google.cloud.networkservices.v1beta1.DepServiceClient" - }, - "method": { - "shortName": "ListLbTrafficExtensions", - "fullName": "google.cloud.networkservices.v1beta1.DepService.ListLbTrafficExtensions", - "service": { - "shortName": "DepService", - "fullName": "google.cloud.networkservices.v1beta1.DepService" - } - } - } - }, - { - "regionTag": "networkservices_v1beta1_generated_DepService_GetLbTrafficExtension_async", - "title": "DepService getLbTrafficExtension Sample", - "origin": "API_DEFINITION", - "description": " Gets details of the specified `LbTrafficExtension` resource.", - "canonical": true, - "file": "dep_service.get_lb_traffic_extension.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetLbTrafficExtension", - "fullName": "google.cloud.networkservices.v1beta1.DepService.GetLbTrafficExtension", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkservices.v1beta1.LbTrafficExtension", - "client": { - "shortName": "DepServiceClient", - "fullName": "google.cloud.networkservices.v1beta1.DepServiceClient" - }, - "method": { - "shortName": "GetLbTrafficExtension", - "fullName": "google.cloud.networkservices.v1beta1.DepService.GetLbTrafficExtension", - "service": { - "shortName": "DepService", - "fullName": "google.cloud.networkservices.v1beta1.DepService" - } - } - } - }, - { - "regionTag": "networkservices_v1beta1_generated_DepService_CreateLbTrafficExtension_async", - "title": "DepService createLbTrafficExtension Sample", - "origin": "API_DEFINITION", - "description": " Creates a new `LbTrafficExtension` resource in a given project and location.", - "canonical": true, - "file": "dep_service.create_lb_traffic_extension.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateLbTrafficExtension", - "fullName": "google.cloud.networkservices.v1beta1.DepService.CreateLbTrafficExtension", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "lb_traffic_extension_id", - "type": "TYPE_STRING" - }, - { - "name": "lb_traffic_extension", - "type": ".google.cloud.networkservices.v1beta1.LbTrafficExtension" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DepServiceClient", - "fullName": "google.cloud.networkservices.v1beta1.DepServiceClient" - }, - "method": { - "shortName": "CreateLbTrafficExtension", - "fullName": "google.cloud.networkservices.v1beta1.DepService.CreateLbTrafficExtension", - "service": { - "shortName": "DepService", - "fullName": "google.cloud.networkservices.v1beta1.DepService" - } - } - } - }, - { - "regionTag": "networkservices_v1beta1_generated_DepService_UpdateLbTrafficExtension_async", - "title": "DepService updateLbTrafficExtension Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of the specified `LbTrafficExtension` resource.", - "canonical": true, - "file": "dep_service.update_lb_traffic_extension.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateLbTrafficExtension", - "fullName": "google.cloud.networkservices.v1beta1.DepService.UpdateLbTrafficExtension", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "lb_traffic_extension", - "type": ".google.cloud.networkservices.v1beta1.LbTrafficExtension" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DepServiceClient", - "fullName": "google.cloud.networkservices.v1beta1.DepServiceClient" - }, - "method": { - "shortName": "UpdateLbTrafficExtension", - "fullName": "google.cloud.networkservices.v1beta1.DepService.UpdateLbTrafficExtension", - "service": { - "shortName": "DepService", - "fullName": "google.cloud.networkservices.v1beta1.DepService" - } - } - } - }, - { - "regionTag": "networkservices_v1beta1_generated_DepService_DeleteLbTrafficExtension_async", - "title": "DepService deleteLbTrafficExtension Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified `LbTrafficExtension` resource.", - "canonical": true, - "file": "dep_service.delete_lb_traffic_extension.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteLbTrafficExtension", - "fullName": "google.cloud.networkservices.v1beta1.DepService.DeleteLbTrafficExtension", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DepServiceClient", - "fullName": "google.cloud.networkservices.v1beta1.DepServiceClient" - }, - "method": { - "shortName": "DeleteLbTrafficExtension", - "fullName": "google.cloud.networkservices.v1beta1.DepService.DeleteLbTrafficExtension", - "service": { - "shortName": "DepService", - "fullName": "google.cloud.networkservices.v1beta1.DepService" - } - } - } - }, - { - "regionTag": "networkservices_v1beta1_generated_DepService_ListLbRouteExtensions_async", - "title": "DepService listLbRouteExtensions Sample", - "origin": "API_DEFINITION", - "description": " Lists `LbRouteExtension` resources in a given project and location.", - "canonical": true, - "file": "dep_service.list_lb_route_extensions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListLbRouteExtensions", - "fullName": "google.cloud.networkservices.v1beta1.DepService.ListLbRouteExtensions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkservices.v1beta1.ListLbRouteExtensionsResponse", - "client": { - "shortName": "DepServiceClient", - "fullName": "google.cloud.networkservices.v1beta1.DepServiceClient" - }, - "method": { - "shortName": "ListLbRouteExtensions", - "fullName": "google.cloud.networkservices.v1beta1.DepService.ListLbRouteExtensions", - "service": { - "shortName": "DepService", - "fullName": "google.cloud.networkservices.v1beta1.DepService" - } - } - } - }, - { - "regionTag": "networkservices_v1beta1_generated_DepService_GetLbRouteExtension_async", - "title": "DepService getLbRouteExtension Sample", - "origin": "API_DEFINITION", - "description": " Gets details of the specified `LbRouteExtension` resource.", - "canonical": true, - "file": "dep_service.get_lb_route_extension.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetLbRouteExtension", - "fullName": "google.cloud.networkservices.v1beta1.DepService.GetLbRouteExtension", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkservices.v1beta1.LbRouteExtension", - "client": { - "shortName": "DepServiceClient", - "fullName": "google.cloud.networkservices.v1beta1.DepServiceClient" - }, - "method": { - "shortName": "GetLbRouteExtension", - "fullName": "google.cloud.networkservices.v1beta1.DepService.GetLbRouteExtension", - "service": { - "shortName": "DepService", - "fullName": "google.cloud.networkservices.v1beta1.DepService" - } - } - } - }, - { - "regionTag": "networkservices_v1beta1_generated_DepService_CreateLbRouteExtension_async", - "title": "DepService createLbRouteExtension Sample", - "origin": "API_DEFINITION", - "description": " Creates a new `LbRouteExtension` resource in a given project and location.", - "canonical": true, - "file": "dep_service.create_lb_route_extension.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateLbRouteExtension", - "fullName": "google.cloud.networkservices.v1beta1.DepService.CreateLbRouteExtension", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "lb_route_extension_id", - "type": "TYPE_STRING" - }, - { - "name": "lb_route_extension", - "type": ".google.cloud.networkservices.v1beta1.LbRouteExtension" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DepServiceClient", - "fullName": "google.cloud.networkservices.v1beta1.DepServiceClient" - }, - "method": { - "shortName": "CreateLbRouteExtension", - "fullName": "google.cloud.networkservices.v1beta1.DepService.CreateLbRouteExtension", - "service": { - "shortName": "DepService", - "fullName": "google.cloud.networkservices.v1beta1.DepService" - } - } - } - }, - { - "regionTag": "networkservices_v1beta1_generated_DepService_UpdateLbRouteExtension_async", - "title": "DepService updateLbRouteExtension Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of the specified `LbRouteExtension` resource.", - "canonical": true, - "file": "dep_service.update_lb_route_extension.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateLbRouteExtension", - "fullName": "google.cloud.networkservices.v1beta1.DepService.UpdateLbRouteExtension", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "lb_route_extension", - "type": ".google.cloud.networkservices.v1beta1.LbRouteExtension" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DepServiceClient", - "fullName": "google.cloud.networkservices.v1beta1.DepServiceClient" - }, - "method": { - "shortName": "UpdateLbRouteExtension", - "fullName": "google.cloud.networkservices.v1beta1.DepService.UpdateLbRouteExtension", - "service": { - "shortName": "DepService", - "fullName": "google.cloud.networkservices.v1beta1.DepService" - } - } - } - }, - { - "regionTag": "networkservices_v1beta1_generated_DepService_DeleteLbRouteExtension_async", - "title": "DepService deleteLbRouteExtension Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified `LbRouteExtension` resource.", - "canonical": true, - "file": "dep_service.delete_lb_route_extension.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteLbRouteExtension", - "fullName": "google.cloud.networkservices.v1beta1.DepService.DeleteLbRouteExtension", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DepServiceClient", - "fullName": "google.cloud.networkservices.v1beta1.DepServiceClient" - }, - "method": { - "shortName": "DeleteLbRouteExtension", - "fullName": "google.cloud.networkservices.v1beta1.DepService.DeleteLbRouteExtension", - "service": { - "shortName": "DepService", - "fullName": "google.cloud.networkservices.v1beta1.DepService" - } - } - } - }, - { - "regionTag": "networkservices_v1beta1_generated_NetworkServices_ListEndpointPolicies_async", - "title": "DepService listEndpointPolicies Sample", - "origin": "API_DEFINITION", - "description": " Lists EndpointPolicies in a given project and location.", - "canonical": true, - "file": "network_services.list_endpoint_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEndpointPolicies", - "fullName": "google.cloud.networkservices.v1beta1.NetworkServices.ListEndpointPolicies", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkservices.v1beta1.ListEndpointPoliciesResponse", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1beta1.NetworkServicesClient" - }, - "method": { - "shortName": "ListEndpointPolicies", - "fullName": "google.cloud.networkservices.v1beta1.NetworkServices.ListEndpointPolicies", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1beta1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1beta1_generated_NetworkServices_GetEndpointPolicy_async", - "title": "DepService getEndpointPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single EndpointPolicy.", - "canonical": true, - "file": "network_services.get_endpoint_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEndpointPolicy", - "fullName": "google.cloud.networkservices.v1beta1.NetworkServices.GetEndpointPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.networkservices.v1beta1.EndpointPolicy", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1beta1.NetworkServicesClient" - }, - "method": { - "shortName": "GetEndpointPolicy", - "fullName": "google.cloud.networkservices.v1beta1.NetworkServices.GetEndpointPolicy", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1beta1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1beta1_generated_NetworkServices_CreateEndpointPolicy_async", - "title": "DepService createEndpointPolicy Sample", - "origin": "API_DEFINITION", - "description": " Creates a new EndpointPolicy in a given project and location.", - "canonical": true, - "file": "network_services.create_endpoint_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateEndpointPolicy", - "fullName": "google.cloud.networkservices.v1beta1.NetworkServices.CreateEndpointPolicy", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "endpoint_policy_id", - "type": "TYPE_STRING" - }, - { - "name": "endpoint_policy", - "type": ".google.cloud.networkservices.v1beta1.EndpointPolicy" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1beta1.NetworkServicesClient" - }, - "method": { - "shortName": "CreateEndpointPolicy", - "fullName": "google.cloud.networkservices.v1beta1.NetworkServices.CreateEndpointPolicy", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1beta1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1beta1_generated_NetworkServices_UpdateEndpointPolicy_async", - "title": "DepService updateEndpointPolicy Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single EndpointPolicy.", - "canonical": true, - "file": "network_services.update_endpoint_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateEndpointPolicy", - "fullName": "google.cloud.networkservices.v1beta1.NetworkServices.UpdateEndpointPolicy", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "endpoint_policy", - "type": ".google.cloud.networkservices.v1beta1.EndpointPolicy" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1beta1.NetworkServicesClient" - }, - "method": { - "shortName": "UpdateEndpointPolicy", - "fullName": "google.cloud.networkservices.v1beta1.NetworkServices.UpdateEndpointPolicy", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1beta1.NetworkServices" - } - } - } - }, - { - "regionTag": "networkservices_v1beta1_generated_NetworkServices_DeleteEndpointPolicy_async", - "title": "DepService deleteEndpointPolicy Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single EndpointPolicy.", - "canonical": true, - "file": "network_services.delete_endpoint_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteEndpointPolicy", - "fullName": "google.cloud.networkservices.v1beta1.NetworkServices.DeleteEndpointPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NetworkServicesClient", - "fullName": "google.cloud.networkservices.v1beta1.NetworkServicesClient" - }, - "method": { - "shortName": "DeleteEndpointPolicy", - "fullName": "google.cloud.networkservices.v1beta1.NetworkServices.DeleteEndpointPolicy", - "service": { - "shortName": "NetworkServices", - "fullName": "google.cloud.networkservices.v1beta1.NetworkServices" - } - } - } - } - ] -} diff --git a/packages/google-cloud-notebooks/samples/generated/v1/snippet_metadata_google.cloud.notebooks.v1.json b/packages/google-cloud-notebooks/samples/generated/v1/snippet_metadata_google.cloud.notebooks.v1.json deleted file mode 100644 index a7a3b34ceeb8..000000000000 --- a/packages/google-cloud-notebooks/samples/generated/v1/snippet_metadata_google.cloud.notebooks.v1.json +++ /dev/null @@ -1,2115 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-notebooks", - "version": "4.2.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.notebooks.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "notebooks_v1_generated_ManagedNotebookService_ListRuntimes_async", - "title": "ManagedNotebookService listRuntimes Sample", - "origin": "API_DEFINITION", - "description": " Lists Runtimes in a given project and location.", - "canonical": true, - "file": "managed_notebook_service.list_runtimes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRuntimes", - "fullName": "google.cloud.notebooks.v1.ManagedNotebookService.ListRuntimes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.notebooks.v1.ListRuntimesResponse", - "client": { - "shortName": "ManagedNotebookServiceClient", - "fullName": "google.cloud.notebooks.v1.ManagedNotebookServiceClient" - }, - "method": { - "shortName": "ListRuntimes", - "fullName": "google.cloud.notebooks.v1.ManagedNotebookService.ListRuntimes", - "service": { - "shortName": "ManagedNotebookService", - "fullName": "google.cloud.notebooks.v1.ManagedNotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1_generated_ManagedNotebookService_GetRuntime_async", - "title": "ManagedNotebookService getRuntime Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Runtime. The location must be a regional endpoint rather than zonal.", - "canonical": true, - "file": "managed_notebook_service.get_runtime.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRuntime", - "fullName": "google.cloud.notebooks.v1.ManagedNotebookService.GetRuntime", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.notebooks.v1.Runtime", - "client": { - "shortName": "ManagedNotebookServiceClient", - "fullName": "google.cloud.notebooks.v1.ManagedNotebookServiceClient" - }, - "method": { - "shortName": "GetRuntime", - "fullName": "google.cloud.notebooks.v1.ManagedNotebookService.GetRuntime", - "service": { - "shortName": "ManagedNotebookService", - "fullName": "google.cloud.notebooks.v1.ManagedNotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1_generated_ManagedNotebookService_CreateRuntime_async", - "title": "ManagedNotebookService createRuntime Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Runtime in a given project and location.", - "canonical": true, - "file": "managed_notebook_service.create_runtime.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateRuntime", - "fullName": "google.cloud.notebooks.v1.ManagedNotebookService.CreateRuntime", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "runtime_id", - "type": "TYPE_STRING" - }, - { - "name": "runtime", - "type": ".google.cloud.notebooks.v1.Runtime" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ManagedNotebookServiceClient", - "fullName": "google.cloud.notebooks.v1.ManagedNotebookServiceClient" - }, - "method": { - "shortName": "CreateRuntime", - "fullName": "google.cloud.notebooks.v1.ManagedNotebookService.CreateRuntime", - "service": { - "shortName": "ManagedNotebookService", - "fullName": "google.cloud.notebooks.v1.ManagedNotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1_generated_ManagedNotebookService_UpdateRuntime_async", - "title": "ManagedNotebookService updateRuntime Sample", - "origin": "API_DEFINITION", - "description": " Update Notebook Runtime configuration.", - "canonical": true, - "file": "managed_notebook_service.update_runtime.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateRuntime", - "fullName": "google.cloud.notebooks.v1.ManagedNotebookService.UpdateRuntime", - "async": true, - "parameters": [ - { - "name": "runtime", - "type": ".google.cloud.notebooks.v1.Runtime" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ManagedNotebookServiceClient", - "fullName": "google.cloud.notebooks.v1.ManagedNotebookServiceClient" - }, - "method": { - "shortName": "UpdateRuntime", - "fullName": "google.cloud.notebooks.v1.ManagedNotebookService.UpdateRuntime", - "service": { - "shortName": "ManagedNotebookService", - "fullName": "google.cloud.notebooks.v1.ManagedNotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1_generated_ManagedNotebookService_DeleteRuntime_async", - "title": "ManagedNotebookService deleteRuntime Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Runtime.", - "canonical": true, - "file": "managed_notebook_service.delete_runtime.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteRuntime", - "fullName": "google.cloud.notebooks.v1.ManagedNotebookService.DeleteRuntime", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ManagedNotebookServiceClient", - "fullName": "google.cloud.notebooks.v1.ManagedNotebookServiceClient" - }, - "method": { - "shortName": "DeleteRuntime", - "fullName": "google.cloud.notebooks.v1.ManagedNotebookService.DeleteRuntime", - "service": { - "shortName": "ManagedNotebookService", - "fullName": "google.cloud.notebooks.v1.ManagedNotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1_generated_ManagedNotebookService_StartRuntime_async", - "title": "ManagedNotebookService startRuntime Sample", - "origin": "API_DEFINITION", - "description": " Starts a Managed Notebook Runtime. Perform \"Start\" on GPU instances; \"Resume\" on CPU instances See: https://cloud.google.com/compute/docs/instances/stop-start-instance https://cloud.google.com/compute/docs/instances/suspend-resume-instance", - "canonical": true, - "file": "managed_notebook_service.start_runtime.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StartRuntime", - "fullName": "google.cloud.notebooks.v1.ManagedNotebookService.StartRuntime", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ManagedNotebookServiceClient", - "fullName": "google.cloud.notebooks.v1.ManagedNotebookServiceClient" - }, - "method": { - "shortName": "StartRuntime", - "fullName": "google.cloud.notebooks.v1.ManagedNotebookService.StartRuntime", - "service": { - "shortName": "ManagedNotebookService", - "fullName": "google.cloud.notebooks.v1.ManagedNotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1_generated_ManagedNotebookService_StopRuntime_async", - "title": "ManagedNotebookService stopRuntime Sample", - "origin": "API_DEFINITION", - "description": " Stops a Managed Notebook Runtime. Perform \"Stop\" on GPU instances; \"Suspend\" on CPU instances See: https://cloud.google.com/compute/docs/instances/stop-start-instance https://cloud.google.com/compute/docs/instances/suspend-resume-instance", - "canonical": true, - "file": "managed_notebook_service.stop_runtime.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StopRuntime", - "fullName": "google.cloud.notebooks.v1.ManagedNotebookService.StopRuntime", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ManagedNotebookServiceClient", - "fullName": "google.cloud.notebooks.v1.ManagedNotebookServiceClient" - }, - "method": { - "shortName": "StopRuntime", - "fullName": "google.cloud.notebooks.v1.ManagedNotebookService.StopRuntime", - "service": { - "shortName": "ManagedNotebookService", - "fullName": "google.cloud.notebooks.v1.ManagedNotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1_generated_ManagedNotebookService_SwitchRuntime_async", - "title": "ManagedNotebookService switchRuntime Sample", - "origin": "API_DEFINITION", - "description": " Switch a Managed Notebook Runtime.", - "canonical": true, - "file": "managed_notebook_service.switch_runtime.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SwitchRuntime", - "fullName": "google.cloud.notebooks.v1.ManagedNotebookService.SwitchRuntime", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "machine_type", - "type": "TYPE_STRING" - }, - { - "name": "accelerator_config", - "type": ".google.cloud.notebooks.v1.RuntimeAcceleratorConfig" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ManagedNotebookServiceClient", - "fullName": "google.cloud.notebooks.v1.ManagedNotebookServiceClient" - }, - "method": { - "shortName": "SwitchRuntime", - "fullName": "google.cloud.notebooks.v1.ManagedNotebookService.SwitchRuntime", - "service": { - "shortName": "ManagedNotebookService", - "fullName": "google.cloud.notebooks.v1.ManagedNotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1_generated_ManagedNotebookService_ResetRuntime_async", - "title": "ManagedNotebookService resetRuntime Sample", - "origin": "API_DEFINITION", - "description": " Resets a Managed Notebook Runtime.", - "canonical": true, - "file": "managed_notebook_service.reset_runtime.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResetRuntime", - "fullName": "google.cloud.notebooks.v1.ManagedNotebookService.ResetRuntime", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ManagedNotebookServiceClient", - "fullName": "google.cloud.notebooks.v1.ManagedNotebookServiceClient" - }, - "method": { - "shortName": "ResetRuntime", - "fullName": "google.cloud.notebooks.v1.ManagedNotebookService.ResetRuntime", - "service": { - "shortName": "ManagedNotebookService", - "fullName": "google.cloud.notebooks.v1.ManagedNotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1_generated_ManagedNotebookService_UpgradeRuntime_async", - "title": "ManagedNotebookService upgradeRuntime Sample", - "origin": "API_DEFINITION", - "description": " Upgrades a Managed Notebook Runtime to the latest version.", - "canonical": true, - "file": "managed_notebook_service.upgrade_runtime.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpgradeRuntime", - "fullName": "google.cloud.notebooks.v1.ManagedNotebookService.UpgradeRuntime", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ManagedNotebookServiceClient", - "fullName": "google.cloud.notebooks.v1.ManagedNotebookServiceClient" - }, - "method": { - "shortName": "UpgradeRuntime", - "fullName": "google.cloud.notebooks.v1.ManagedNotebookService.UpgradeRuntime", - "service": { - "shortName": "ManagedNotebookService", - "fullName": "google.cloud.notebooks.v1.ManagedNotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1_generated_ManagedNotebookService_ReportRuntimeEvent_async", - "title": "ManagedNotebookService reportRuntimeEvent Sample", - "origin": "API_DEFINITION", - "description": " Report and process a runtime event.", - "canonical": true, - "file": "managed_notebook_service.report_runtime_event.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReportRuntimeEvent", - "fullName": "google.cloud.notebooks.v1.ManagedNotebookService.ReportRuntimeEvent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "vm_id", - "type": "TYPE_STRING" - }, - { - "name": "event", - "type": ".google.cloud.notebooks.v1.Event" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ManagedNotebookServiceClient", - "fullName": "google.cloud.notebooks.v1.ManagedNotebookServiceClient" - }, - "method": { - "shortName": "ReportRuntimeEvent", - "fullName": "google.cloud.notebooks.v1.ManagedNotebookService.ReportRuntimeEvent", - "service": { - "shortName": "ManagedNotebookService", - "fullName": "google.cloud.notebooks.v1.ManagedNotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1_generated_ManagedNotebookService_RefreshRuntimeTokenInternal_async", - "title": "ManagedNotebookService refreshRuntimeTokenInternal Sample", - "origin": "API_DEFINITION", - "description": " Gets an access token for the consumer service account that the customer attached to the runtime. Only accessible from the tenant instance.", - "canonical": true, - "file": "managed_notebook_service.refresh_runtime_token_internal.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RefreshRuntimeTokenInternal", - "fullName": "google.cloud.notebooks.v1.ManagedNotebookService.RefreshRuntimeTokenInternal", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "vm_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse", - "client": { - "shortName": "ManagedNotebookServiceClient", - "fullName": "google.cloud.notebooks.v1.ManagedNotebookServiceClient" - }, - "method": { - "shortName": "RefreshRuntimeTokenInternal", - "fullName": "google.cloud.notebooks.v1.ManagedNotebookService.RefreshRuntimeTokenInternal", - "service": { - "shortName": "ManagedNotebookService", - "fullName": "google.cloud.notebooks.v1.ManagedNotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1_generated_ManagedNotebookService_DiagnoseRuntime_async", - "title": "ManagedNotebookService diagnoseRuntime Sample", - "origin": "API_DEFINITION", - "description": " Creates a Diagnostic File and runs Diagnostic Tool given a Runtime.", - "canonical": true, - "file": "managed_notebook_service.diagnose_runtime.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DiagnoseRuntime", - "fullName": "google.cloud.notebooks.v1.ManagedNotebookService.DiagnoseRuntime", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "diagnostic_config", - "type": ".google.cloud.notebooks.v1.DiagnosticConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ManagedNotebookServiceClient", - "fullName": "google.cloud.notebooks.v1.ManagedNotebookServiceClient" - }, - "method": { - "shortName": "DiagnoseRuntime", - "fullName": "google.cloud.notebooks.v1.ManagedNotebookService.DiagnoseRuntime", - "service": { - "shortName": "ManagedNotebookService", - "fullName": "google.cloud.notebooks.v1.ManagedNotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1_generated_NotebookService_ListInstances_async", - "title": "ManagedNotebookService listInstances Sample", - "origin": "API_DEFINITION", - "description": " Lists instances in a given project and location.", - "canonical": true, - "file": "notebook_service.list_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListInstances", - "fullName": "google.cloud.notebooks.v1.NotebookService.ListInstances", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.notebooks.v1.ListInstancesResponse", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v1.NotebookServiceClient" - }, - "method": { - "shortName": "ListInstances", - "fullName": "google.cloud.notebooks.v1.NotebookService.ListInstances", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v1.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1_generated_NotebookService_GetInstance_async", - "title": "ManagedNotebookService getInstance Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Instance.", - "canonical": true, - "file": "notebook_service.get_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetInstance", - "fullName": "google.cloud.notebooks.v1.NotebookService.GetInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.notebooks.v1.Instance", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v1.NotebookServiceClient" - }, - "method": { - "shortName": "GetInstance", - "fullName": "google.cloud.notebooks.v1.NotebookService.GetInstance", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v1.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1_generated_NotebookService_CreateInstance_async", - "title": "ManagedNotebookService createInstance Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Instance in a given project and location.", - "canonical": true, - "file": "notebook_service.create_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateInstance", - "fullName": "google.cloud.notebooks.v1.NotebookService.CreateInstance", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "instance_id", - "type": "TYPE_STRING" - }, - { - "name": "instance", - "type": ".google.cloud.notebooks.v1.Instance" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v1.NotebookServiceClient" - }, - "method": { - "shortName": "CreateInstance", - "fullName": "google.cloud.notebooks.v1.NotebookService.CreateInstance", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v1.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1_generated_NotebookService_RegisterInstance_async", - "title": "ManagedNotebookService registerInstance Sample", - "origin": "API_DEFINITION", - "description": " Registers an existing legacy notebook instance to the Notebooks API server. Legacy instances are instances created with the legacy Compute Engine calls. They are not manageable by the Notebooks API out of the box. This call makes these instances manageable by the Notebooks API.", - "canonical": true, - "file": "notebook_service.register_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RegisterInstance", - "fullName": "google.cloud.notebooks.v1.NotebookService.RegisterInstance", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "instance_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v1.NotebookServiceClient" - }, - "method": { - "shortName": "RegisterInstance", - "fullName": "google.cloud.notebooks.v1.NotebookService.RegisterInstance", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v1.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1_generated_NotebookService_SetInstanceAccelerator_async", - "title": "ManagedNotebookService setInstanceAccelerator Sample", - "origin": "API_DEFINITION", - "description": " Updates the guest accelerators of a single Instance.", - "canonical": true, - "file": "notebook_service.set_instance_accelerator.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetInstanceAccelerator", - "fullName": "google.cloud.notebooks.v1.NotebookService.SetInstanceAccelerator", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "type", - "type": ".google.cloud.notebooks.v1.Instance.AcceleratorType" - }, - { - "name": "core_count", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v1.NotebookServiceClient" - }, - "method": { - "shortName": "SetInstanceAccelerator", - "fullName": "google.cloud.notebooks.v1.NotebookService.SetInstanceAccelerator", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v1.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1_generated_NotebookService_SetInstanceMachineType_async", - "title": "ManagedNotebookService setInstanceMachineType Sample", - "origin": "API_DEFINITION", - "description": " Updates the machine type of a single Instance.", - "canonical": true, - "file": "notebook_service.set_instance_machine_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetInstanceMachineType", - "fullName": "google.cloud.notebooks.v1.NotebookService.SetInstanceMachineType", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "machine_type", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v1.NotebookServiceClient" - }, - "method": { - "shortName": "SetInstanceMachineType", - "fullName": "google.cloud.notebooks.v1.NotebookService.SetInstanceMachineType", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v1.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1_generated_NotebookService_UpdateInstanceConfig_async", - "title": "ManagedNotebookService updateInstanceConfig Sample", - "origin": "API_DEFINITION", - "description": " Update Notebook Instance configurations.", - "canonical": true, - "file": "notebook_service.update_instance_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateInstanceConfig", - "fullName": "google.cloud.notebooks.v1.NotebookService.UpdateInstanceConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "config", - "type": ".google.cloud.notebooks.v1.InstanceConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v1.NotebookServiceClient" - }, - "method": { - "shortName": "UpdateInstanceConfig", - "fullName": "google.cloud.notebooks.v1.NotebookService.UpdateInstanceConfig", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v1.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1_generated_NotebookService_UpdateShieldedInstanceConfig_async", - "title": "ManagedNotebookService updateShieldedInstanceConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates the Shielded instance configuration of a single Instance.", - "canonical": true, - "file": "notebook_service.update_shielded_instance_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateShieldedInstanceConfig", - "fullName": "google.cloud.notebooks.v1.NotebookService.UpdateShieldedInstanceConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "shielded_instance_config", - "type": ".google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v1.NotebookServiceClient" - }, - "method": { - "shortName": "UpdateShieldedInstanceConfig", - "fullName": "google.cloud.notebooks.v1.NotebookService.UpdateShieldedInstanceConfig", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v1.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1_generated_NotebookService_SetInstanceLabels_async", - "title": "ManagedNotebookService setInstanceLabels Sample", - "origin": "API_DEFINITION", - "description": " Replaces all the labels of an Instance.", - "canonical": true, - "file": "notebook_service.set_instance_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetInstanceLabels", - "fullName": "google.cloud.notebooks.v1.NotebookService.SetInstanceLabels", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "labels", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v1.NotebookServiceClient" - }, - "method": { - "shortName": "SetInstanceLabels", - "fullName": "google.cloud.notebooks.v1.NotebookService.SetInstanceLabels", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v1.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1_generated_NotebookService_UpdateInstanceMetadataItems_async", - "title": "ManagedNotebookService updateInstanceMetadataItems Sample", - "origin": "API_DEFINITION", - "description": " Add/update metadata items for an instance.", - "canonical": true, - "file": "notebook_service.update_instance_metadata_items.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateInstanceMetadataItems", - "fullName": "google.cloud.notebooks.v1.NotebookService.UpdateInstanceMetadataItems", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "items", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v1.NotebookServiceClient" - }, - "method": { - "shortName": "UpdateInstanceMetadataItems", - "fullName": "google.cloud.notebooks.v1.NotebookService.UpdateInstanceMetadataItems", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v1.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1_generated_NotebookService_DeleteInstance_async", - "title": "ManagedNotebookService deleteInstance Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Instance.", - "canonical": true, - "file": "notebook_service.delete_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteInstance", - "fullName": "google.cloud.notebooks.v1.NotebookService.DeleteInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v1.NotebookServiceClient" - }, - "method": { - "shortName": "DeleteInstance", - "fullName": "google.cloud.notebooks.v1.NotebookService.DeleteInstance", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v1.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1_generated_NotebookService_StartInstance_async", - "title": "ManagedNotebookService startInstance Sample", - "origin": "API_DEFINITION", - "description": " Starts a notebook instance.", - "canonical": true, - "file": "notebook_service.start_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StartInstance", - "fullName": "google.cloud.notebooks.v1.NotebookService.StartInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v1.NotebookServiceClient" - }, - "method": { - "shortName": "StartInstance", - "fullName": "google.cloud.notebooks.v1.NotebookService.StartInstance", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v1.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1_generated_NotebookService_StopInstance_async", - "title": "ManagedNotebookService stopInstance Sample", - "origin": "API_DEFINITION", - "description": " Stops a notebook instance.", - "canonical": true, - "file": "notebook_service.stop_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StopInstance", - "fullName": "google.cloud.notebooks.v1.NotebookService.StopInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v1.NotebookServiceClient" - }, - "method": { - "shortName": "StopInstance", - "fullName": "google.cloud.notebooks.v1.NotebookService.StopInstance", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v1.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1_generated_NotebookService_ResetInstance_async", - "title": "ManagedNotebookService resetInstance Sample", - "origin": "API_DEFINITION", - "description": " Resets a notebook instance.", - "canonical": true, - "file": "notebook_service.reset_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResetInstance", - "fullName": "google.cloud.notebooks.v1.NotebookService.ResetInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v1.NotebookServiceClient" - }, - "method": { - "shortName": "ResetInstance", - "fullName": "google.cloud.notebooks.v1.NotebookService.ResetInstance", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v1.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1_generated_NotebookService_ReportInstanceInfo_async", - "title": "ManagedNotebookService reportInstanceInfo Sample", - "origin": "API_DEFINITION", - "description": " Allows notebook instances to report their latest instance information to the Notebooks API server. The server will merge the reported information to the instance metadata store. Do not use this method directly.", - "canonical": true, - "file": "notebook_service.report_instance_info.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReportInstanceInfo", - "fullName": "google.cloud.notebooks.v1.NotebookService.ReportInstanceInfo", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "vm_id", - "type": "TYPE_STRING" - }, - { - "name": "metadata", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v1.NotebookServiceClient" - }, - "method": { - "shortName": "ReportInstanceInfo", - "fullName": "google.cloud.notebooks.v1.NotebookService.ReportInstanceInfo", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v1.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1_generated_NotebookService_IsInstanceUpgradeable_async", - "title": "ManagedNotebookService isInstanceUpgradeable Sample", - "origin": "API_DEFINITION", - "description": " Check if a notebook instance is upgradable.", - "canonical": true, - "file": "notebook_service.is_instance_upgradeable.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "IsInstanceUpgradeable", - "fullName": "google.cloud.notebooks.v1.NotebookService.IsInstanceUpgradeable", - "async": true, - "parameters": [ - { - "name": "notebook_instance", - "type": "TYPE_STRING" - }, - { - "name": "type", - "type": ".google.cloud.notebooks.v1.UpgradeType" - } - ], - "resultType": ".google.cloud.notebooks.v1.IsInstanceUpgradeableResponse", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v1.NotebookServiceClient" - }, - "method": { - "shortName": "IsInstanceUpgradeable", - "fullName": "google.cloud.notebooks.v1.NotebookService.IsInstanceUpgradeable", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v1.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1_generated_NotebookService_GetInstanceHealth_async", - "title": "ManagedNotebookService getInstanceHealth Sample", - "origin": "API_DEFINITION", - "description": " Check if a notebook instance is healthy.", - "canonical": true, - "file": "notebook_service.get_instance_health.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetInstanceHealth", - "fullName": "google.cloud.notebooks.v1.NotebookService.GetInstanceHealth", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.notebooks.v1.GetInstanceHealthResponse", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v1.NotebookServiceClient" - }, - "method": { - "shortName": "GetInstanceHealth", - "fullName": "google.cloud.notebooks.v1.NotebookService.GetInstanceHealth", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v1.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1_generated_NotebookService_UpgradeInstance_async", - "title": "ManagedNotebookService upgradeInstance Sample", - "origin": "API_DEFINITION", - "description": " Upgrades a notebook instance to the latest version.", - "canonical": true, - "file": "notebook_service.upgrade_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpgradeInstance", - "fullName": "google.cloud.notebooks.v1.NotebookService.UpgradeInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "type", - "type": ".google.cloud.notebooks.v1.UpgradeType" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v1.NotebookServiceClient" - }, - "method": { - "shortName": "UpgradeInstance", - "fullName": "google.cloud.notebooks.v1.NotebookService.UpgradeInstance", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v1.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1_generated_NotebookService_RollbackInstance_async", - "title": "ManagedNotebookService rollbackInstance Sample", - "origin": "API_DEFINITION", - "description": " Rollbacks a notebook instance to the previous version.", - "canonical": true, - "file": "notebook_service.rollback_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RollbackInstance", - "fullName": "google.cloud.notebooks.v1.NotebookService.RollbackInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "target_snapshot", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v1.NotebookServiceClient" - }, - "method": { - "shortName": "RollbackInstance", - "fullName": "google.cloud.notebooks.v1.NotebookService.RollbackInstance", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v1.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1_generated_NotebookService_DiagnoseInstance_async", - "title": "ManagedNotebookService diagnoseInstance Sample", - "origin": "API_DEFINITION", - "description": " Creates a Diagnostic File and runs Diagnostic Tool given an Instance.", - "canonical": true, - "file": "notebook_service.diagnose_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DiagnoseInstance", - "fullName": "google.cloud.notebooks.v1.NotebookService.DiagnoseInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "diagnostic_config", - "type": ".google.cloud.notebooks.v1.DiagnosticConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v1.NotebookServiceClient" - }, - "method": { - "shortName": "DiagnoseInstance", - "fullName": "google.cloud.notebooks.v1.NotebookService.DiagnoseInstance", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v1.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1_generated_NotebookService_UpgradeInstanceInternal_async", - "title": "ManagedNotebookService upgradeInstanceInternal Sample", - "origin": "API_DEFINITION", - "description": " Allows notebook instances to call this endpoint to upgrade themselves. Do not use this method directly.", - "canonical": true, - "file": "notebook_service.upgrade_instance_internal.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpgradeInstanceInternal", - "fullName": "google.cloud.notebooks.v1.NotebookService.UpgradeInstanceInternal", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "vm_id", - "type": "TYPE_STRING" - }, - { - "name": "type", - "type": ".google.cloud.notebooks.v1.UpgradeType" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v1.NotebookServiceClient" - }, - "method": { - "shortName": "UpgradeInstanceInternal", - "fullName": "google.cloud.notebooks.v1.NotebookService.UpgradeInstanceInternal", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v1.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1_generated_NotebookService_ListEnvironments_async", - "title": "ManagedNotebookService listEnvironments Sample", - "origin": "API_DEFINITION", - "description": " Lists environments in a project.", - "canonical": true, - "file": "notebook_service.list_environments.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEnvironments", - "fullName": "google.cloud.notebooks.v1.NotebookService.ListEnvironments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.notebooks.v1.ListEnvironmentsResponse", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v1.NotebookServiceClient" - }, - "method": { - "shortName": "ListEnvironments", - "fullName": "google.cloud.notebooks.v1.NotebookService.ListEnvironments", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v1.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1_generated_NotebookService_GetEnvironment_async", - "title": "ManagedNotebookService getEnvironment Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Environment.", - "canonical": true, - "file": "notebook_service.get_environment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEnvironment", - "fullName": "google.cloud.notebooks.v1.NotebookService.GetEnvironment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.notebooks.v1.Environment", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v1.NotebookServiceClient" - }, - "method": { - "shortName": "GetEnvironment", - "fullName": "google.cloud.notebooks.v1.NotebookService.GetEnvironment", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v1.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1_generated_NotebookService_CreateEnvironment_async", - "title": "ManagedNotebookService createEnvironment Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Environment.", - "canonical": true, - "file": "notebook_service.create_environment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateEnvironment", - "fullName": "google.cloud.notebooks.v1.NotebookService.CreateEnvironment", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "environment_id", - "type": "TYPE_STRING" - }, - { - "name": "environment", - "type": ".google.cloud.notebooks.v1.Environment" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v1.NotebookServiceClient" - }, - "method": { - "shortName": "CreateEnvironment", - "fullName": "google.cloud.notebooks.v1.NotebookService.CreateEnvironment", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v1.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1_generated_NotebookService_DeleteEnvironment_async", - "title": "ManagedNotebookService deleteEnvironment Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Environment.", - "canonical": true, - "file": "notebook_service.delete_environment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteEnvironment", - "fullName": "google.cloud.notebooks.v1.NotebookService.DeleteEnvironment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v1.NotebookServiceClient" - }, - "method": { - "shortName": "DeleteEnvironment", - "fullName": "google.cloud.notebooks.v1.NotebookService.DeleteEnvironment", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v1.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1_generated_NotebookService_ListSchedules_async", - "title": "ManagedNotebookService listSchedules Sample", - "origin": "API_DEFINITION", - "description": " Lists schedules in a given project and location.", - "canonical": true, - "file": "notebook_service.list_schedules.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSchedules", - "fullName": "google.cloud.notebooks.v1.NotebookService.ListSchedules", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.notebooks.v1.ListSchedulesResponse", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v1.NotebookServiceClient" - }, - "method": { - "shortName": "ListSchedules", - "fullName": "google.cloud.notebooks.v1.NotebookService.ListSchedules", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v1.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1_generated_NotebookService_GetSchedule_async", - "title": "ManagedNotebookService getSchedule Sample", - "origin": "API_DEFINITION", - "description": " Gets details of schedule", - "canonical": true, - "file": "notebook_service.get_schedule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSchedule", - "fullName": "google.cloud.notebooks.v1.NotebookService.GetSchedule", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.notebooks.v1.Schedule", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v1.NotebookServiceClient" - }, - "method": { - "shortName": "GetSchedule", - "fullName": "google.cloud.notebooks.v1.NotebookService.GetSchedule", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v1.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1_generated_NotebookService_DeleteSchedule_async", - "title": "ManagedNotebookService deleteSchedule Sample", - "origin": "API_DEFINITION", - "description": " Deletes schedule and all underlying jobs", - "canonical": true, - "file": "notebook_service.delete_schedule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSchedule", - "fullName": "google.cloud.notebooks.v1.NotebookService.DeleteSchedule", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v1.NotebookServiceClient" - }, - "method": { - "shortName": "DeleteSchedule", - "fullName": "google.cloud.notebooks.v1.NotebookService.DeleteSchedule", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v1.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1_generated_NotebookService_CreateSchedule_async", - "title": "ManagedNotebookService createSchedule Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Scheduled Notebook in a given project and location.", - "canonical": true, - "file": "notebook_service.create_schedule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSchedule", - "fullName": "google.cloud.notebooks.v1.NotebookService.CreateSchedule", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "schedule_id", - "type": "TYPE_STRING" - }, - { - "name": "schedule", - "type": ".google.cloud.notebooks.v1.Schedule" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v1.NotebookServiceClient" - }, - "method": { - "shortName": "CreateSchedule", - "fullName": "google.cloud.notebooks.v1.NotebookService.CreateSchedule", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v1.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1_generated_NotebookService_TriggerSchedule_async", - "title": "ManagedNotebookService triggerSchedule Sample", - "origin": "API_DEFINITION", - "description": " Triggers execution of an existing schedule.", - "canonical": true, - "file": "notebook_service.trigger_schedule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TriggerSchedule", - "fullName": "google.cloud.notebooks.v1.NotebookService.TriggerSchedule", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v1.NotebookServiceClient" - }, - "method": { - "shortName": "TriggerSchedule", - "fullName": "google.cloud.notebooks.v1.NotebookService.TriggerSchedule", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v1.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1_generated_NotebookService_ListExecutions_async", - "title": "ManagedNotebookService listExecutions Sample", - "origin": "API_DEFINITION", - "description": " Lists executions in a given project and location", - "canonical": true, - "file": "notebook_service.list_executions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListExecutions", - "fullName": "google.cloud.notebooks.v1.NotebookService.ListExecutions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.notebooks.v1.ListExecutionsResponse", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v1.NotebookServiceClient" - }, - "method": { - "shortName": "ListExecutions", - "fullName": "google.cloud.notebooks.v1.NotebookService.ListExecutions", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v1.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1_generated_NotebookService_GetExecution_async", - "title": "ManagedNotebookService getExecution Sample", - "origin": "API_DEFINITION", - "description": " Gets details of executions", - "canonical": true, - "file": "notebook_service.get_execution.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetExecution", - "fullName": "google.cloud.notebooks.v1.NotebookService.GetExecution", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.notebooks.v1.Execution", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v1.NotebookServiceClient" - }, - "method": { - "shortName": "GetExecution", - "fullName": "google.cloud.notebooks.v1.NotebookService.GetExecution", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v1.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1_generated_NotebookService_DeleteExecution_async", - "title": "ManagedNotebookService deleteExecution Sample", - "origin": "API_DEFINITION", - "description": " Deletes execution", - "canonical": true, - "file": "notebook_service.delete_execution.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteExecution", - "fullName": "google.cloud.notebooks.v1.NotebookService.DeleteExecution", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v1.NotebookServiceClient" - }, - "method": { - "shortName": "DeleteExecution", - "fullName": "google.cloud.notebooks.v1.NotebookService.DeleteExecution", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v1.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1_generated_NotebookService_CreateExecution_async", - "title": "ManagedNotebookService createExecution Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Execution in a given project and location.", - "canonical": true, - "file": "notebook_service.create_execution.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateExecution", - "fullName": "google.cloud.notebooks.v1.NotebookService.CreateExecution", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "execution_id", - "type": "TYPE_STRING" - }, - { - "name": "execution", - "type": ".google.cloud.notebooks.v1.Execution" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v1.NotebookServiceClient" - }, - "method": { - "shortName": "CreateExecution", - "fullName": "google.cloud.notebooks.v1.NotebookService.CreateExecution", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v1.NotebookService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-notebooks/samples/generated/v1beta1/snippet_metadata_google.cloud.notebooks.v1beta1.json b/packages/google-cloud-notebooks/samples/generated/v1beta1/snippet_metadata_google.cloud.notebooks.v1beta1.json deleted file mode 100644 index a74a9faa4303..000000000000 --- a/packages/google-cloud-notebooks/samples/generated/v1beta1/snippet_metadata_google.cloud.notebooks.v1beta1.json +++ /dev/null @@ -1,839 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-notebooks", - "version": "4.2.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.notebooks.v1beta1", - "version": "v1beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "notebooks_v1beta1_generated_NotebookService_ListInstances_async", - "title": "NotebookService listInstances Sample", - "origin": "API_DEFINITION", - "description": " Lists instances in a given project and location.", - "canonical": true, - "file": "notebook_service.list_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListInstances", - "fullName": "google.cloud.notebooks.v1beta1.NotebookService.ListInstances", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.notebooks.v1beta1.ListInstancesResponse", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v1beta1.NotebookServiceClient" - }, - "method": { - "shortName": "ListInstances", - "fullName": "google.cloud.notebooks.v1beta1.NotebookService.ListInstances", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v1beta1.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1beta1_generated_NotebookService_GetInstance_async", - "title": "NotebookService getInstance Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Instance.", - "canonical": true, - "file": "notebook_service.get_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetInstance", - "fullName": "google.cloud.notebooks.v1beta1.NotebookService.GetInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.notebooks.v1beta1.Instance", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v1beta1.NotebookServiceClient" - }, - "method": { - "shortName": "GetInstance", - "fullName": "google.cloud.notebooks.v1beta1.NotebookService.GetInstance", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v1beta1.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1beta1_generated_NotebookService_CreateInstance_async", - "title": "NotebookService createInstance Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Instance in a given project and location.", - "canonical": true, - "file": "notebook_service.create_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateInstance", - "fullName": "google.cloud.notebooks.v1beta1.NotebookService.CreateInstance", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "instance_id", - "type": "TYPE_STRING" - }, - { - "name": "instance", - "type": ".google.cloud.notebooks.v1beta1.Instance" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v1beta1.NotebookServiceClient" - }, - "method": { - "shortName": "CreateInstance", - "fullName": "google.cloud.notebooks.v1beta1.NotebookService.CreateInstance", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v1beta1.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1beta1_generated_NotebookService_RegisterInstance_async", - "title": "NotebookService registerInstance Sample", - "origin": "API_DEFINITION", - "description": " Registers an existing legacy notebook instance to the Notebooks API server. Legacy instances are instances created with the legacy Compute Engine calls. They are not manageable by the Notebooks API out of the box. This call makes these instances manageable by the Notebooks API.", - "canonical": true, - "file": "notebook_service.register_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RegisterInstance", - "fullName": "google.cloud.notebooks.v1beta1.NotebookService.RegisterInstance", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "instance_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v1beta1.NotebookServiceClient" - }, - "method": { - "shortName": "RegisterInstance", - "fullName": "google.cloud.notebooks.v1beta1.NotebookService.RegisterInstance", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v1beta1.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1beta1_generated_NotebookService_SetInstanceAccelerator_async", - "title": "NotebookService setInstanceAccelerator Sample", - "origin": "API_DEFINITION", - "description": " Updates the guest accelerators of a single Instance.", - "canonical": true, - "file": "notebook_service.set_instance_accelerator.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetInstanceAccelerator", - "fullName": "google.cloud.notebooks.v1beta1.NotebookService.SetInstanceAccelerator", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "type", - "type": ".google.cloud.notebooks.v1beta1.Instance.AcceleratorType" - }, - { - "name": "core_count", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v1beta1.NotebookServiceClient" - }, - "method": { - "shortName": "SetInstanceAccelerator", - "fullName": "google.cloud.notebooks.v1beta1.NotebookService.SetInstanceAccelerator", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v1beta1.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1beta1_generated_NotebookService_SetInstanceMachineType_async", - "title": "NotebookService setInstanceMachineType Sample", - "origin": "API_DEFINITION", - "description": " Updates the machine type of a single Instance.", - "canonical": true, - "file": "notebook_service.set_instance_machine_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetInstanceMachineType", - "fullName": "google.cloud.notebooks.v1beta1.NotebookService.SetInstanceMachineType", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "machine_type", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v1beta1.NotebookServiceClient" - }, - "method": { - "shortName": "SetInstanceMachineType", - "fullName": "google.cloud.notebooks.v1beta1.NotebookService.SetInstanceMachineType", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v1beta1.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1beta1_generated_NotebookService_SetInstanceLabels_async", - "title": "NotebookService setInstanceLabels Sample", - "origin": "API_DEFINITION", - "description": " Updates the labels of an Instance.", - "canonical": true, - "file": "notebook_service.set_instance_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetInstanceLabels", - "fullName": "google.cloud.notebooks.v1beta1.NotebookService.SetInstanceLabels", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "labels", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v1beta1.NotebookServiceClient" - }, - "method": { - "shortName": "SetInstanceLabels", - "fullName": "google.cloud.notebooks.v1beta1.NotebookService.SetInstanceLabels", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v1beta1.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1beta1_generated_NotebookService_DeleteInstance_async", - "title": "NotebookService deleteInstance Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Instance.", - "canonical": true, - "file": "notebook_service.delete_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteInstance", - "fullName": "google.cloud.notebooks.v1beta1.NotebookService.DeleteInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v1beta1.NotebookServiceClient" - }, - "method": { - "shortName": "DeleteInstance", - "fullName": "google.cloud.notebooks.v1beta1.NotebookService.DeleteInstance", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v1beta1.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1beta1_generated_NotebookService_StartInstance_async", - "title": "NotebookService startInstance Sample", - "origin": "API_DEFINITION", - "description": " Starts a notebook instance.", - "canonical": true, - "file": "notebook_service.start_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StartInstance", - "fullName": "google.cloud.notebooks.v1beta1.NotebookService.StartInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v1beta1.NotebookServiceClient" - }, - "method": { - "shortName": "StartInstance", - "fullName": "google.cloud.notebooks.v1beta1.NotebookService.StartInstance", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v1beta1.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1beta1_generated_NotebookService_StopInstance_async", - "title": "NotebookService stopInstance Sample", - "origin": "API_DEFINITION", - "description": " Stops a notebook instance.", - "canonical": true, - "file": "notebook_service.stop_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StopInstance", - "fullName": "google.cloud.notebooks.v1beta1.NotebookService.StopInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v1beta1.NotebookServiceClient" - }, - "method": { - "shortName": "StopInstance", - "fullName": "google.cloud.notebooks.v1beta1.NotebookService.StopInstance", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v1beta1.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1beta1_generated_NotebookService_ResetInstance_async", - "title": "NotebookService resetInstance Sample", - "origin": "API_DEFINITION", - "description": " Resets a notebook instance.", - "canonical": true, - "file": "notebook_service.reset_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResetInstance", - "fullName": "google.cloud.notebooks.v1beta1.NotebookService.ResetInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v1beta1.NotebookServiceClient" - }, - "method": { - "shortName": "ResetInstance", - "fullName": "google.cloud.notebooks.v1beta1.NotebookService.ResetInstance", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v1beta1.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1beta1_generated_NotebookService_ReportInstanceInfo_async", - "title": "NotebookService reportInstanceInfo Sample", - "origin": "API_DEFINITION", - "description": " Allows notebook instances to report their latest instance information to the Notebooks API server. The server will merge the reported information to the instance metadata store. Do not use this method directly.", - "canonical": true, - "file": "notebook_service.report_instance_info.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReportInstanceInfo", - "fullName": "google.cloud.notebooks.v1beta1.NotebookService.ReportInstanceInfo", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "vm_id", - "type": "TYPE_STRING" - }, - { - "name": "metadata", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v1beta1.NotebookServiceClient" - }, - "method": { - "shortName": "ReportInstanceInfo", - "fullName": "google.cloud.notebooks.v1beta1.NotebookService.ReportInstanceInfo", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v1beta1.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1beta1_generated_NotebookService_IsInstanceUpgradeable_async", - "title": "NotebookService isInstanceUpgradeable Sample", - "origin": "API_DEFINITION", - "description": " Check if a notebook instance is upgradable. Deprecated. Please consider using v1.", - "canonical": true, - "file": "notebook_service.is_instance_upgradeable.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "IsInstanceUpgradeable", - "fullName": "google.cloud.notebooks.v1beta1.NotebookService.IsInstanceUpgradeable", - "async": true, - "parameters": [ - { - "name": "notebook_instance", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v1beta1.NotebookServiceClient" - }, - "method": { - "shortName": "IsInstanceUpgradeable", - "fullName": "google.cloud.notebooks.v1beta1.NotebookService.IsInstanceUpgradeable", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v1beta1.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1beta1_generated_NotebookService_UpgradeInstance_async", - "title": "NotebookService upgradeInstance Sample", - "origin": "API_DEFINITION", - "description": " Upgrades a notebook instance to the latest version. Deprecated. Please consider using v1.", - "canonical": true, - "file": "notebook_service.upgrade_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpgradeInstance", - "fullName": "google.cloud.notebooks.v1beta1.NotebookService.UpgradeInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v1beta1.NotebookServiceClient" - }, - "method": { - "shortName": "UpgradeInstance", - "fullName": "google.cloud.notebooks.v1beta1.NotebookService.UpgradeInstance", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v1beta1.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1beta1_generated_NotebookService_UpgradeInstanceInternal_async", - "title": "NotebookService upgradeInstanceInternal Sample", - "origin": "API_DEFINITION", - "description": " Allows notebook instances to call this endpoint to upgrade themselves. Do not use this method directly. Deprecated. Please consider using v1.", - "canonical": true, - "file": "notebook_service.upgrade_instance_internal.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpgradeInstanceInternal", - "fullName": "google.cloud.notebooks.v1beta1.NotebookService.UpgradeInstanceInternal", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "vm_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v1beta1.NotebookServiceClient" - }, - "method": { - "shortName": "UpgradeInstanceInternal", - "fullName": "google.cloud.notebooks.v1beta1.NotebookService.UpgradeInstanceInternal", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v1beta1.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1beta1_generated_NotebookService_ListEnvironments_async", - "title": "NotebookService listEnvironments Sample", - "origin": "API_DEFINITION", - "description": " Lists environments in a project.", - "canonical": true, - "file": "notebook_service.list_environments.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEnvironments", - "fullName": "google.cloud.notebooks.v1beta1.NotebookService.ListEnvironments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.notebooks.v1beta1.ListEnvironmentsResponse", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v1beta1.NotebookServiceClient" - }, - "method": { - "shortName": "ListEnvironments", - "fullName": "google.cloud.notebooks.v1beta1.NotebookService.ListEnvironments", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v1beta1.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1beta1_generated_NotebookService_GetEnvironment_async", - "title": "NotebookService getEnvironment Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Environment.", - "canonical": true, - "file": "notebook_service.get_environment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEnvironment", - "fullName": "google.cloud.notebooks.v1beta1.NotebookService.GetEnvironment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.notebooks.v1beta1.Environment", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v1beta1.NotebookServiceClient" - }, - "method": { - "shortName": "GetEnvironment", - "fullName": "google.cloud.notebooks.v1beta1.NotebookService.GetEnvironment", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v1beta1.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1beta1_generated_NotebookService_CreateEnvironment_async", - "title": "NotebookService createEnvironment Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Environment.", - "canonical": true, - "file": "notebook_service.create_environment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateEnvironment", - "fullName": "google.cloud.notebooks.v1beta1.NotebookService.CreateEnvironment", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "environment_id", - "type": "TYPE_STRING" - }, - { - "name": "environment", - "type": ".google.cloud.notebooks.v1beta1.Environment" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v1beta1.NotebookServiceClient" - }, - "method": { - "shortName": "CreateEnvironment", - "fullName": "google.cloud.notebooks.v1beta1.NotebookService.CreateEnvironment", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v1beta1.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v1beta1_generated_NotebookService_DeleteEnvironment_async", - "title": "NotebookService deleteEnvironment Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Environment.", - "canonical": true, - "file": "notebook_service.delete_environment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteEnvironment", - "fullName": "google.cloud.notebooks.v1beta1.NotebookService.DeleteEnvironment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v1beta1.NotebookServiceClient" - }, - "method": { - "shortName": "DeleteEnvironment", - "fullName": "google.cloud.notebooks.v1beta1.NotebookService.DeleteEnvironment", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v1beta1.NotebookService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-notebooks/samples/generated/v2/snippet_metadata_google.cloud.notebooks.v2.json b/packages/google-cloud-notebooks/samples/generated/v2/snippet_metadata_google.cloud.notebooks.v2.json deleted file mode 100644 index 9adce341a132..000000000000 --- a/packages/google-cloud-notebooks/samples/generated/v2/snippet_metadata_google.cloud.notebooks.v2.json +++ /dev/null @@ -1,551 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-notebooks", - "version": "4.2.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.notebooks.v2", - "version": "v2" - } - ] - }, - "snippets": [ - { - "regionTag": "notebooks_v2_generated_NotebookService_ListInstances_async", - "title": "NotebookService listInstances Sample", - "origin": "API_DEFINITION", - "description": " Lists instances in a given project and location.", - "canonical": true, - "file": "notebook_service.list_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListInstances", - "fullName": "google.cloud.notebooks.v2.NotebookService.ListInstances", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.notebooks.v2.ListInstancesResponse", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v2.NotebookServiceClient" - }, - "method": { - "shortName": "ListInstances", - "fullName": "google.cloud.notebooks.v2.NotebookService.ListInstances", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v2.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v2_generated_NotebookService_GetInstance_async", - "title": "NotebookService getInstance Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Instance.", - "canonical": true, - "file": "notebook_service.get_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetInstance", - "fullName": "google.cloud.notebooks.v2.NotebookService.GetInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.notebooks.v2.Instance", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v2.NotebookServiceClient" - }, - "method": { - "shortName": "GetInstance", - "fullName": "google.cloud.notebooks.v2.NotebookService.GetInstance", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v2.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v2_generated_NotebookService_CreateInstance_async", - "title": "NotebookService createInstance Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Instance in a given project and location.", - "canonical": true, - "file": "notebook_service.create_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateInstance", - "fullName": "google.cloud.notebooks.v2.NotebookService.CreateInstance", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "instance_id", - "type": "TYPE_STRING" - }, - { - "name": "instance", - "type": ".google.cloud.notebooks.v2.Instance" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v2.NotebookServiceClient" - }, - "method": { - "shortName": "CreateInstance", - "fullName": "google.cloud.notebooks.v2.NotebookService.CreateInstance", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v2.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v2_generated_NotebookService_UpdateInstance_async", - "title": "NotebookService updateInstance Sample", - "origin": "API_DEFINITION", - "description": " UpdateInstance updates an Instance.", - "canonical": true, - "file": "notebook_service.update_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateInstance", - "fullName": "google.cloud.notebooks.v2.NotebookService.UpdateInstance", - "async": true, - "parameters": [ - { - "name": "instance", - "type": ".google.cloud.notebooks.v2.Instance" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v2.NotebookServiceClient" - }, - "method": { - "shortName": "UpdateInstance", - "fullName": "google.cloud.notebooks.v2.NotebookService.UpdateInstance", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v2.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v2_generated_NotebookService_DeleteInstance_async", - "title": "NotebookService deleteInstance Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Instance.", - "canonical": true, - "file": "notebook_service.delete_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteInstance", - "fullName": "google.cloud.notebooks.v2.NotebookService.DeleteInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v2.NotebookServiceClient" - }, - "method": { - "shortName": "DeleteInstance", - "fullName": "google.cloud.notebooks.v2.NotebookService.DeleteInstance", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v2.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v2_generated_NotebookService_StartInstance_async", - "title": "NotebookService startInstance Sample", - "origin": "API_DEFINITION", - "description": " Starts a notebook instance.", - "canonical": true, - "file": "notebook_service.start_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StartInstance", - "fullName": "google.cloud.notebooks.v2.NotebookService.StartInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v2.NotebookServiceClient" - }, - "method": { - "shortName": "StartInstance", - "fullName": "google.cloud.notebooks.v2.NotebookService.StartInstance", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v2.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v2_generated_NotebookService_StopInstance_async", - "title": "NotebookService stopInstance Sample", - "origin": "API_DEFINITION", - "description": " Stops a notebook instance.", - "canonical": true, - "file": "notebook_service.stop_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StopInstance", - "fullName": "google.cloud.notebooks.v2.NotebookService.StopInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v2.NotebookServiceClient" - }, - "method": { - "shortName": "StopInstance", - "fullName": "google.cloud.notebooks.v2.NotebookService.StopInstance", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v2.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v2_generated_NotebookService_ResetInstance_async", - "title": "NotebookService resetInstance Sample", - "origin": "API_DEFINITION", - "description": " Resets a notebook instance.", - "canonical": true, - "file": "notebook_service.reset_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResetInstance", - "fullName": "google.cloud.notebooks.v2.NotebookService.ResetInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v2.NotebookServiceClient" - }, - "method": { - "shortName": "ResetInstance", - "fullName": "google.cloud.notebooks.v2.NotebookService.ResetInstance", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v2.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v2_generated_NotebookService_CheckInstanceUpgradability_async", - "title": "NotebookService checkInstanceUpgradability Sample", - "origin": "API_DEFINITION", - "description": " Checks whether a notebook instance is upgradable.", - "canonical": true, - "file": "notebook_service.check_instance_upgradability.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CheckInstanceUpgradability", - "fullName": "google.cloud.notebooks.v2.NotebookService.CheckInstanceUpgradability", - "async": true, - "parameters": [ - { - "name": "notebook_instance", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.notebooks.v2.CheckInstanceUpgradabilityResponse", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v2.NotebookServiceClient" - }, - "method": { - "shortName": "CheckInstanceUpgradability", - "fullName": "google.cloud.notebooks.v2.NotebookService.CheckInstanceUpgradability", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v2.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v2_generated_NotebookService_UpgradeInstance_async", - "title": "NotebookService upgradeInstance Sample", - "origin": "API_DEFINITION", - "description": " Upgrades a notebook instance to the latest version.", - "canonical": true, - "file": "notebook_service.upgrade_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpgradeInstance", - "fullName": "google.cloud.notebooks.v2.NotebookService.UpgradeInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v2.NotebookServiceClient" - }, - "method": { - "shortName": "UpgradeInstance", - "fullName": "google.cloud.notebooks.v2.NotebookService.UpgradeInstance", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v2.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v2_generated_NotebookService_RollbackInstance_async", - "title": "NotebookService rollbackInstance Sample", - "origin": "API_DEFINITION", - "description": " Rollbacks a notebook instance to the previous version.", - "canonical": true, - "file": "notebook_service.rollback_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RollbackInstance", - "fullName": "google.cloud.notebooks.v2.NotebookService.RollbackInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "target_snapshot", - "type": "TYPE_STRING" - }, - { - "name": "revision_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v2.NotebookServiceClient" - }, - "method": { - "shortName": "RollbackInstance", - "fullName": "google.cloud.notebooks.v2.NotebookService.RollbackInstance", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v2.NotebookService" - } - } - } - }, - { - "regionTag": "notebooks_v2_generated_NotebookService_DiagnoseInstance_async", - "title": "NotebookService diagnoseInstance Sample", - "origin": "API_DEFINITION", - "description": " Creates a Diagnostic File and runs Diagnostic Tool given an Instance.", - "canonical": true, - "file": "notebook_service.diagnose_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DiagnoseInstance", - "fullName": "google.cloud.notebooks.v2.NotebookService.DiagnoseInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "diagnostic_config", - "type": ".google.cloud.notebooks.v2.DiagnosticConfig" - }, - { - "name": "timeout_minutes", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "NotebookServiceClient", - "fullName": "google.cloud.notebooks.v2.NotebookServiceClient" - }, - "method": { - "shortName": "DiagnoseInstance", - "fullName": "google.cloud.notebooks.v2.NotebookService.DiagnoseInstance", - "service": { - "shortName": "NotebookService", - "fullName": "google.cloud.notebooks.v2.NotebookService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-oracledatabase/samples/generated/v1/snippet_metadata_google.cloud.oracledatabase.v1.json b/packages/google-cloud-oracledatabase/samples/generated/v1/snippet_metadata_google.cloud.oracledatabase.v1.json deleted file mode 100644 index 3ec0600e299b..000000000000 --- a/packages/google-cloud-oracledatabase/samples/generated/v1/snippet_metadata_google.cloud.oracledatabase.v1.json +++ /dev/null @@ -1,2791 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-oracledatabase", - "version": "0.7.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.oracledatabase.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "oracledatabase_v1_generated_OracleDatabase_ListCloudExadataInfrastructures_async", - "title": "OracleDatabase listCloudExadataInfrastructures Sample", - "origin": "API_DEFINITION", - "description": " Lists Exadata Infrastructures in a given project and location.", - "canonical": true, - "file": "oracle_database.list_cloud_exadata_infrastructures.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCloudExadataInfrastructures", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.ListCloudExadataInfrastructures", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.oracledatabase.v1.ListCloudExadataInfrastructuresResponse", - "client": { - "shortName": "OracleDatabaseClient", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabaseClient" - }, - "method": { - "shortName": "ListCloudExadataInfrastructures", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.ListCloudExadataInfrastructures", - "service": { - "shortName": "OracleDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - } - }, - { - "regionTag": "oracledatabase_v1_generated_OracleDatabase_GetCloudExadataInfrastructure_async", - "title": "OracleDatabase getCloudExadataInfrastructure Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Exadata Infrastructure.", - "canonical": true, - "file": "oracle_database.get_cloud_exadata_infrastructure.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCloudExadataInfrastructure", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.GetCloudExadataInfrastructure", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.oracledatabase.v1.CloudExadataInfrastructure", - "client": { - "shortName": "OracleDatabaseClient", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabaseClient" - }, - "method": { - "shortName": "GetCloudExadataInfrastructure", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.GetCloudExadataInfrastructure", - "service": { - "shortName": "OracleDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - } - }, - { - "regionTag": "oracledatabase_v1_generated_OracleDatabase_CreateCloudExadataInfrastructure_async", - "title": "OracleDatabase createCloudExadataInfrastructure Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Exadata Infrastructure in a given project and location.", - "canonical": true, - "file": "oracle_database.create_cloud_exadata_infrastructure.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCloudExadataInfrastructure", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.CreateCloudExadataInfrastructure", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "cloud_exadata_infrastructure_id", - "type": "TYPE_STRING" - }, - { - "name": "cloud_exadata_infrastructure", - "type": ".google.cloud.oracledatabase.v1.CloudExadataInfrastructure" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OracleDatabaseClient", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabaseClient" - }, - "method": { - "shortName": "CreateCloudExadataInfrastructure", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.CreateCloudExadataInfrastructure", - "service": { - "shortName": "OracleDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - } - }, - { - "regionTag": "oracledatabase_v1_generated_OracleDatabase_DeleteCloudExadataInfrastructure_async", - "title": "OracleDatabase deleteCloudExadataInfrastructure Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Exadata Infrastructure.", - "canonical": true, - "file": "oracle_database.delete_cloud_exadata_infrastructure.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCloudExadataInfrastructure", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.DeleteCloudExadataInfrastructure", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OracleDatabaseClient", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabaseClient" - }, - "method": { - "shortName": "DeleteCloudExadataInfrastructure", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.DeleteCloudExadataInfrastructure", - "service": { - "shortName": "OracleDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - } - }, - { - "regionTag": "oracledatabase_v1_generated_OracleDatabase_ListCloudVmClusters_async", - "title": "OracleDatabase listCloudVmClusters Sample", - "origin": "API_DEFINITION", - "description": " Lists the VM Clusters in a given project and location.", - "canonical": true, - "file": "oracle_database.list_cloud_vm_clusters.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCloudVmClusters", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.ListCloudVmClusters", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.oracledatabase.v1.ListCloudVmClustersResponse", - "client": { - "shortName": "OracleDatabaseClient", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabaseClient" - }, - "method": { - "shortName": "ListCloudVmClusters", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.ListCloudVmClusters", - "service": { - "shortName": "OracleDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - } - }, - { - "regionTag": "oracledatabase_v1_generated_OracleDatabase_GetCloudVmCluster_async", - "title": "OracleDatabase getCloudVmCluster Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single VM Cluster.", - "canonical": true, - "file": "oracle_database.get_cloud_vm_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCloudVmCluster", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.GetCloudVmCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.oracledatabase.v1.CloudVmCluster", - "client": { - "shortName": "OracleDatabaseClient", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabaseClient" - }, - "method": { - "shortName": "GetCloudVmCluster", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.GetCloudVmCluster", - "service": { - "shortName": "OracleDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - } - }, - { - "regionTag": "oracledatabase_v1_generated_OracleDatabase_CreateCloudVmCluster_async", - "title": "OracleDatabase createCloudVmCluster Sample", - "origin": "API_DEFINITION", - "description": " Creates a new VM Cluster in a given project and location.", - "canonical": true, - "file": "oracle_database.create_cloud_vm_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCloudVmCluster", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.CreateCloudVmCluster", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "cloud_vm_cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "cloud_vm_cluster", - "type": ".google.cloud.oracledatabase.v1.CloudVmCluster" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OracleDatabaseClient", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabaseClient" - }, - "method": { - "shortName": "CreateCloudVmCluster", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.CreateCloudVmCluster", - "service": { - "shortName": "OracleDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - } - }, - { - "regionTag": "oracledatabase_v1_generated_OracleDatabase_DeleteCloudVmCluster_async", - "title": "OracleDatabase deleteCloudVmCluster Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single VM Cluster.", - "canonical": true, - "file": "oracle_database.delete_cloud_vm_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCloudVmCluster", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.DeleteCloudVmCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OracleDatabaseClient", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabaseClient" - }, - "method": { - "shortName": "DeleteCloudVmCluster", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.DeleteCloudVmCluster", - "service": { - "shortName": "OracleDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - } - }, - { - "regionTag": "oracledatabase_v1_generated_OracleDatabase_ListEntitlements_async", - "title": "OracleDatabase listEntitlements Sample", - "origin": "API_DEFINITION", - "description": " Lists the entitlements in a given project.", - "canonical": true, - "file": "oracle_database.list_entitlements.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEntitlements", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.ListEntitlements", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.oracledatabase.v1.ListEntitlementsResponse", - "client": { - "shortName": "OracleDatabaseClient", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabaseClient" - }, - "method": { - "shortName": "ListEntitlements", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.ListEntitlements", - "service": { - "shortName": "OracleDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - } - }, - { - "regionTag": "oracledatabase_v1_generated_OracleDatabase_ListDbServers_async", - "title": "OracleDatabase listDbServers Sample", - "origin": "API_DEFINITION", - "description": " Lists the database servers of an Exadata Infrastructure instance.", - "canonical": true, - "file": "oracle_database.list_db_servers.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDbServers", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.ListDbServers", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.oracledatabase.v1.ListDbServersResponse", - "client": { - "shortName": "OracleDatabaseClient", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabaseClient" - }, - "method": { - "shortName": "ListDbServers", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.ListDbServers", - "service": { - "shortName": "OracleDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - } - }, - { - "regionTag": "oracledatabase_v1_generated_OracleDatabase_ListDbNodes_async", - "title": "OracleDatabase listDbNodes Sample", - "origin": "API_DEFINITION", - "description": " Lists the database nodes of a VM Cluster.", - "canonical": true, - "file": "oracle_database.list_db_nodes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDbNodes", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.ListDbNodes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.oracledatabase.v1.ListDbNodesResponse", - "client": { - "shortName": "OracleDatabaseClient", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabaseClient" - }, - "method": { - "shortName": "ListDbNodes", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.ListDbNodes", - "service": { - "shortName": "OracleDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - } - }, - { - "regionTag": "oracledatabase_v1_generated_OracleDatabase_ListGiVersions_async", - "title": "OracleDatabase listGiVersions Sample", - "origin": "API_DEFINITION", - "description": " Lists all the valid Oracle Grid Infrastructure (GI) versions for the given project and location.", - "canonical": true, - "file": "oracle_database.list_gi_versions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListGiVersions", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.ListGiVersions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.oracledatabase.v1.ListGiVersionsResponse", - "client": { - "shortName": "OracleDatabaseClient", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabaseClient" - }, - "method": { - "shortName": "ListGiVersions", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.ListGiVersions", - "service": { - "shortName": "OracleDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - } - }, - { - "regionTag": "oracledatabase_v1_generated_OracleDatabase_ListMinorVersions_async", - "title": "OracleDatabase listMinorVersions Sample", - "origin": "API_DEFINITION", - "description": " Lists all the valid minor versions for the given project, location, gi version and shape family.", - "canonical": true, - "file": "oracle_database.list_minor_versions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMinorVersions", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.ListMinorVersions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.oracledatabase.v1.ListMinorVersionsResponse", - "client": { - "shortName": "OracleDatabaseClient", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabaseClient" - }, - "method": { - "shortName": "ListMinorVersions", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.ListMinorVersions", - "service": { - "shortName": "OracleDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - } - }, - { - "regionTag": "oracledatabase_v1_generated_OracleDatabase_ListDbSystemShapes_async", - "title": "OracleDatabase listDbSystemShapes Sample", - "origin": "API_DEFINITION", - "description": " Lists the database system shapes available for the project and location.", - "canonical": true, - "file": "oracle_database.list_db_system_shapes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDbSystemShapes", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.ListDbSystemShapes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.oracledatabase.v1.ListDbSystemShapesResponse", - "client": { - "shortName": "OracleDatabaseClient", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabaseClient" - }, - "method": { - "shortName": "ListDbSystemShapes", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.ListDbSystemShapes", - "service": { - "shortName": "OracleDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - } - }, - { - "regionTag": "oracledatabase_v1_generated_OracleDatabase_ListAutonomousDatabases_async", - "title": "OracleDatabase listAutonomousDatabases Sample", - "origin": "API_DEFINITION", - "description": " Lists the Autonomous Databases in a given project and location.", - "canonical": true, - "file": "oracle_database.list_autonomous_databases.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAutonomousDatabases", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.ListAutonomousDatabases", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.oracledatabase.v1.ListAutonomousDatabasesResponse", - "client": { - "shortName": "OracleDatabaseClient", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabaseClient" - }, - "method": { - "shortName": "ListAutonomousDatabases", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.ListAutonomousDatabases", - "service": { - "shortName": "OracleDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - } - }, - { - "regionTag": "oracledatabase_v1_generated_OracleDatabase_GetAutonomousDatabase_async", - "title": "OracleDatabase getAutonomousDatabase Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a single Autonomous Database.", - "canonical": true, - "file": "oracle_database.get_autonomous_database.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAutonomousDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.GetAutonomousDatabase", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.oracledatabase.v1.AutonomousDatabase", - "client": { - "shortName": "OracleDatabaseClient", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabaseClient" - }, - "method": { - "shortName": "GetAutonomousDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.GetAutonomousDatabase", - "service": { - "shortName": "OracleDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - } - }, - { - "regionTag": "oracledatabase_v1_generated_OracleDatabase_CreateAutonomousDatabase_async", - "title": "OracleDatabase createAutonomousDatabase Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Autonomous Database in a given project and location.", - "canonical": true, - "file": "oracle_database.create_autonomous_database.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAutonomousDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.CreateAutonomousDatabase", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "autonomous_database_id", - "type": "TYPE_STRING" - }, - { - "name": "autonomous_database", - "type": ".google.cloud.oracledatabase.v1.AutonomousDatabase" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OracleDatabaseClient", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabaseClient" - }, - "method": { - "shortName": "CreateAutonomousDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.CreateAutonomousDatabase", - "service": { - "shortName": "OracleDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - } - }, - { - "regionTag": "oracledatabase_v1_generated_OracleDatabase_UpdateAutonomousDatabase_async", - "title": "OracleDatabase updateAutonomousDatabase Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Autonomous Database.", - "canonical": true, - "file": "oracle_database.update_autonomous_database.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAutonomousDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.UpdateAutonomousDatabase", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "autonomous_database", - "type": ".google.cloud.oracledatabase.v1.AutonomousDatabase" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OracleDatabaseClient", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabaseClient" - }, - "method": { - "shortName": "UpdateAutonomousDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.UpdateAutonomousDatabase", - "service": { - "shortName": "OracleDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - } - }, - { - "regionTag": "oracledatabase_v1_generated_OracleDatabase_DeleteAutonomousDatabase_async", - "title": "OracleDatabase deleteAutonomousDatabase Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Autonomous Database.", - "canonical": true, - "file": "oracle_database.delete_autonomous_database.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAutonomousDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.DeleteAutonomousDatabase", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OracleDatabaseClient", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabaseClient" - }, - "method": { - "shortName": "DeleteAutonomousDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.DeleteAutonomousDatabase", - "service": { - "shortName": "OracleDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - } - }, - { - "regionTag": "oracledatabase_v1_generated_OracleDatabase_RestoreAutonomousDatabase_async", - "title": "OracleDatabase restoreAutonomousDatabase Sample", - "origin": "API_DEFINITION", - "description": " Restores a single Autonomous Database.", - "canonical": true, - "file": "oracle_database.restore_autonomous_database.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RestoreAutonomousDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.RestoreAutonomousDatabase", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "restore_time", - "type": ".google.protobuf.Timestamp" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OracleDatabaseClient", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabaseClient" - }, - "method": { - "shortName": "RestoreAutonomousDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.RestoreAutonomousDatabase", - "service": { - "shortName": "OracleDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - } - }, - { - "regionTag": "oracledatabase_v1_generated_OracleDatabase_GenerateAutonomousDatabaseWallet_async", - "title": "OracleDatabase generateAutonomousDatabaseWallet Sample", - "origin": "API_DEFINITION", - "description": " Generates a wallet for an Autonomous Database.", - "canonical": true, - "file": "oracle_database.generate_autonomous_database_wallet.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateAutonomousDatabaseWallet", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.GenerateAutonomousDatabaseWallet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "type", - "type": ".google.cloud.oracledatabase.v1.GenerateType" - }, - { - "name": "is_regional", - "type": "TYPE_BOOL" - }, - { - "name": "password", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.oracledatabase.v1.GenerateAutonomousDatabaseWalletResponse", - "client": { - "shortName": "OracleDatabaseClient", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabaseClient" - }, - "method": { - "shortName": "GenerateAutonomousDatabaseWallet", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.GenerateAutonomousDatabaseWallet", - "service": { - "shortName": "OracleDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - } - }, - { - "regionTag": "oracledatabase_v1_generated_OracleDatabase_ListAutonomousDbVersions_async", - "title": "OracleDatabase listAutonomousDbVersions Sample", - "origin": "API_DEFINITION", - "description": " Lists all the available Autonomous Database versions for a project and location.", - "canonical": true, - "file": "oracle_database.list_autonomous_db_versions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAutonomousDbVersions", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.ListAutonomousDbVersions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.oracledatabase.v1.ListAutonomousDbVersionsResponse", - "client": { - "shortName": "OracleDatabaseClient", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabaseClient" - }, - "method": { - "shortName": "ListAutonomousDbVersions", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.ListAutonomousDbVersions", - "service": { - "shortName": "OracleDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - } - }, - { - "regionTag": "oracledatabase_v1_generated_OracleDatabase_ListAutonomousDatabaseCharacterSets_async", - "title": "OracleDatabase listAutonomousDatabaseCharacterSets Sample", - "origin": "API_DEFINITION", - "description": " Lists Autonomous Database Character Sets in a given project and location.", - "canonical": true, - "file": "oracle_database.list_autonomous_database_character_sets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAutonomousDatabaseCharacterSets", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.ListAutonomousDatabaseCharacterSets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsResponse", - "client": { - "shortName": "OracleDatabaseClient", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabaseClient" - }, - "method": { - "shortName": "ListAutonomousDatabaseCharacterSets", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.ListAutonomousDatabaseCharacterSets", - "service": { - "shortName": "OracleDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - } - }, - { - "regionTag": "oracledatabase_v1_generated_OracleDatabase_ListAutonomousDatabaseBackups_async", - "title": "OracleDatabase listAutonomousDatabaseBackups Sample", - "origin": "API_DEFINITION", - "description": " Lists the long-term and automatic backups of an Autonomous Database.", - "canonical": true, - "file": "oracle_database.list_autonomous_database_backups.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAutonomousDatabaseBackups", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.ListAutonomousDatabaseBackups", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse", - "client": { - "shortName": "OracleDatabaseClient", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabaseClient" - }, - "method": { - "shortName": "ListAutonomousDatabaseBackups", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.ListAutonomousDatabaseBackups", - "service": { - "shortName": "OracleDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - } - }, - { - "regionTag": "oracledatabase_v1_generated_OracleDatabase_StopAutonomousDatabase_async", - "title": "OracleDatabase stopAutonomousDatabase Sample", - "origin": "API_DEFINITION", - "description": " Stops an Autonomous Database.", - "canonical": true, - "file": "oracle_database.stop_autonomous_database.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StopAutonomousDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.StopAutonomousDatabase", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OracleDatabaseClient", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabaseClient" - }, - "method": { - "shortName": "StopAutonomousDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.StopAutonomousDatabase", - "service": { - "shortName": "OracleDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - } - }, - { - "regionTag": "oracledatabase_v1_generated_OracleDatabase_StartAutonomousDatabase_async", - "title": "OracleDatabase startAutonomousDatabase Sample", - "origin": "API_DEFINITION", - "description": " Starts an Autonomous Database.", - "canonical": true, - "file": "oracle_database.start_autonomous_database.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StartAutonomousDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.StartAutonomousDatabase", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OracleDatabaseClient", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabaseClient" - }, - "method": { - "shortName": "StartAutonomousDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.StartAutonomousDatabase", - "service": { - "shortName": "OracleDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - } - }, - { - "regionTag": "oracledatabase_v1_generated_OracleDatabase_RestartAutonomousDatabase_async", - "title": "OracleDatabase restartAutonomousDatabase Sample", - "origin": "API_DEFINITION", - "description": " Restarts an Autonomous Database.", - "canonical": true, - "file": "oracle_database.restart_autonomous_database.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RestartAutonomousDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.RestartAutonomousDatabase", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OracleDatabaseClient", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabaseClient" - }, - "method": { - "shortName": "RestartAutonomousDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.RestartAutonomousDatabase", - "service": { - "shortName": "OracleDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - } - }, - { - "regionTag": "oracledatabase_v1_generated_OracleDatabase_SwitchoverAutonomousDatabase_async", - "title": "OracleDatabase switchoverAutonomousDatabase Sample", - "origin": "API_DEFINITION", - "description": " Initiates a switchover of specified autonomous database to the associated peer database.", - "canonical": true, - "file": "oracle_database.switchover_autonomous_database.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SwitchoverAutonomousDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.SwitchoverAutonomousDatabase", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "peer_autonomous_database", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OracleDatabaseClient", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabaseClient" - }, - "method": { - "shortName": "SwitchoverAutonomousDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.SwitchoverAutonomousDatabase", - "service": { - "shortName": "OracleDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - } - }, - { - "regionTag": "oracledatabase_v1_generated_OracleDatabase_FailoverAutonomousDatabase_async", - "title": "OracleDatabase failoverAutonomousDatabase Sample", - "origin": "API_DEFINITION", - "description": " Initiates a failover to target autonomous database from the associated primary database.", - "canonical": true, - "file": "oracle_database.failover_autonomous_database.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FailoverAutonomousDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.FailoverAutonomousDatabase", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "peer_autonomous_database", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OracleDatabaseClient", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabaseClient" - }, - "method": { - "shortName": "FailoverAutonomousDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.FailoverAutonomousDatabase", - "service": { - "shortName": "OracleDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - } - }, - { - "regionTag": "oracledatabase_v1_generated_OracleDatabase_ListOdbNetworks_async", - "title": "OracleDatabase listOdbNetworks Sample", - "origin": "API_DEFINITION", - "description": " Lists the ODB Networks in a given project and location.", - "canonical": true, - "file": "oracle_database.list_odb_networks.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListOdbNetworks", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.ListOdbNetworks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.oracledatabase.v1.ListOdbNetworksResponse", - "client": { - "shortName": "OracleDatabaseClient", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabaseClient" - }, - "method": { - "shortName": "ListOdbNetworks", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.ListOdbNetworks", - "service": { - "shortName": "OracleDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - } - }, - { - "regionTag": "oracledatabase_v1_generated_OracleDatabase_GetOdbNetwork_async", - "title": "OracleDatabase getOdbNetwork Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single ODB Network.", - "canonical": true, - "file": "oracle_database.get_odb_network.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetOdbNetwork", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.GetOdbNetwork", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.oracledatabase.v1.OdbNetwork", - "client": { - "shortName": "OracleDatabaseClient", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabaseClient" - }, - "method": { - "shortName": "GetOdbNetwork", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.GetOdbNetwork", - "service": { - "shortName": "OracleDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - } - }, - { - "regionTag": "oracledatabase_v1_generated_OracleDatabase_CreateOdbNetwork_async", - "title": "OracleDatabase createOdbNetwork Sample", - "origin": "API_DEFINITION", - "description": " Creates a new ODB Network in a given project and location.", - "canonical": true, - "file": "oracle_database.create_odb_network.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateOdbNetwork", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.CreateOdbNetwork", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "odb_network_id", - "type": "TYPE_STRING" - }, - { - "name": "odb_network", - "type": ".google.cloud.oracledatabase.v1.OdbNetwork" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OracleDatabaseClient", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabaseClient" - }, - "method": { - "shortName": "CreateOdbNetwork", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.CreateOdbNetwork", - "service": { - "shortName": "OracleDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - } - }, - { - "regionTag": "oracledatabase_v1_generated_OracleDatabase_DeleteOdbNetwork_async", - "title": "OracleDatabase deleteOdbNetwork Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single ODB Network.", - "canonical": true, - "file": "oracle_database.delete_odb_network.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteOdbNetwork", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.DeleteOdbNetwork", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OracleDatabaseClient", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabaseClient" - }, - "method": { - "shortName": "DeleteOdbNetwork", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.DeleteOdbNetwork", - "service": { - "shortName": "OracleDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - } - }, - { - "regionTag": "oracledatabase_v1_generated_OracleDatabase_ListOdbSubnets_async", - "title": "OracleDatabase listOdbSubnets Sample", - "origin": "API_DEFINITION", - "description": " Lists all the ODB Subnets in a given ODB Network.", - "canonical": true, - "file": "oracle_database.list_odb_subnets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListOdbSubnets", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.ListOdbSubnets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.oracledatabase.v1.ListOdbSubnetsResponse", - "client": { - "shortName": "OracleDatabaseClient", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabaseClient" - }, - "method": { - "shortName": "ListOdbSubnets", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.ListOdbSubnets", - "service": { - "shortName": "OracleDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - } - }, - { - "regionTag": "oracledatabase_v1_generated_OracleDatabase_GetOdbSubnet_async", - "title": "OracleDatabase getOdbSubnet Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single ODB Subnet.", - "canonical": true, - "file": "oracle_database.get_odb_subnet.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetOdbSubnet", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.GetOdbSubnet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.oracledatabase.v1.OdbSubnet", - "client": { - "shortName": "OracleDatabaseClient", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabaseClient" - }, - "method": { - "shortName": "GetOdbSubnet", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.GetOdbSubnet", - "service": { - "shortName": "OracleDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - } - }, - { - "regionTag": "oracledatabase_v1_generated_OracleDatabase_CreateOdbSubnet_async", - "title": "OracleDatabase createOdbSubnet Sample", - "origin": "API_DEFINITION", - "description": " Creates a new ODB Subnet in a given ODB Network.", - "canonical": true, - "file": "oracle_database.create_odb_subnet.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateOdbSubnet", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.CreateOdbSubnet", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "odb_subnet_id", - "type": "TYPE_STRING" - }, - { - "name": "odb_subnet", - "type": ".google.cloud.oracledatabase.v1.OdbSubnet" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OracleDatabaseClient", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabaseClient" - }, - "method": { - "shortName": "CreateOdbSubnet", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.CreateOdbSubnet", - "service": { - "shortName": "OracleDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - } - }, - { - "regionTag": "oracledatabase_v1_generated_OracleDatabase_DeleteOdbSubnet_async", - "title": "OracleDatabase deleteOdbSubnet Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single ODB Subnet.", - "canonical": true, - "file": "oracle_database.delete_odb_subnet.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteOdbSubnet", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.DeleteOdbSubnet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OracleDatabaseClient", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabaseClient" - }, - "method": { - "shortName": "DeleteOdbSubnet", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.DeleteOdbSubnet", - "service": { - "shortName": "OracleDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - } - }, - { - "regionTag": "oracledatabase_v1_generated_OracleDatabase_ListExadbVmClusters_async", - "title": "OracleDatabase listExadbVmClusters Sample", - "origin": "API_DEFINITION", - "description": " Lists all the Exadb (Exascale) VM Clusters for the given project and location.", - "canonical": true, - "file": "oracle_database.list_exadb_vm_clusters.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListExadbVmClusters", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.ListExadbVmClusters", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.oracledatabase.v1.ListExadbVmClustersResponse", - "client": { - "shortName": "OracleDatabaseClient", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabaseClient" - }, - "method": { - "shortName": "ListExadbVmClusters", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.ListExadbVmClusters", - "service": { - "shortName": "OracleDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - } - }, - { - "regionTag": "oracledatabase_v1_generated_OracleDatabase_GetExadbVmCluster_async", - "title": "OracleDatabase getExadbVmCluster Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Exadb (Exascale) VM Cluster.", - "canonical": true, - "file": "oracle_database.get_exadb_vm_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetExadbVmCluster", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.GetExadbVmCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.oracledatabase.v1.ExadbVmCluster", - "client": { - "shortName": "OracleDatabaseClient", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabaseClient" - }, - "method": { - "shortName": "GetExadbVmCluster", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.GetExadbVmCluster", - "service": { - "shortName": "OracleDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - } - }, - { - "regionTag": "oracledatabase_v1_generated_OracleDatabase_CreateExadbVmCluster_async", - "title": "OracleDatabase createExadbVmCluster Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Exadb (Exascale) VM Cluster resource.", - "canonical": true, - "file": "oracle_database.create_exadb_vm_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateExadbVmCluster", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.CreateExadbVmCluster", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "exadb_vm_cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "exadb_vm_cluster", - "type": ".google.cloud.oracledatabase.v1.ExadbVmCluster" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OracleDatabaseClient", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabaseClient" - }, - "method": { - "shortName": "CreateExadbVmCluster", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.CreateExadbVmCluster", - "service": { - "shortName": "OracleDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - } - }, - { - "regionTag": "oracledatabase_v1_generated_OracleDatabase_DeleteExadbVmCluster_async", - "title": "OracleDatabase deleteExadbVmCluster Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Exadb (Exascale) VM Cluster.", - "canonical": true, - "file": "oracle_database.delete_exadb_vm_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteExadbVmCluster", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.DeleteExadbVmCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OracleDatabaseClient", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabaseClient" - }, - "method": { - "shortName": "DeleteExadbVmCluster", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.DeleteExadbVmCluster", - "service": { - "shortName": "OracleDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - } - }, - { - "regionTag": "oracledatabase_v1_generated_OracleDatabase_UpdateExadbVmCluster_async", - "title": "OracleDatabase updateExadbVmCluster Sample", - "origin": "API_DEFINITION", - "description": " Updates a single Exadb (Exascale) VM Cluster. To add virtual machines to existing exadb vm cluster, only pass the node count.", - "canonical": true, - "file": "oracle_database.update_exadb_vm_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateExadbVmCluster", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.UpdateExadbVmCluster", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "exadb_vm_cluster", - "type": ".google.cloud.oracledatabase.v1.ExadbVmCluster" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OracleDatabaseClient", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabaseClient" - }, - "method": { - "shortName": "UpdateExadbVmCluster", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.UpdateExadbVmCluster", - "service": { - "shortName": "OracleDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - } - }, - { - "regionTag": "oracledatabase_v1_generated_OracleDatabase_RemoveVirtualMachineExadbVmCluster_async", - "title": "OracleDatabase removeVirtualMachineExadbVmCluster Sample", - "origin": "API_DEFINITION", - "description": " Removes virtual machines from an existing exadb vm cluster.", - "canonical": true, - "file": "oracle_database.remove_virtual_machine_exadb_vm_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveVirtualMachineExadbVmCluster", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.RemoveVirtualMachineExadbVmCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "hostnames", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OracleDatabaseClient", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabaseClient" - }, - "method": { - "shortName": "RemoveVirtualMachineExadbVmCluster", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.RemoveVirtualMachineExadbVmCluster", - "service": { - "shortName": "OracleDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - } - }, - { - "regionTag": "oracledatabase_v1_generated_OracleDatabase_ListExascaleDbStorageVaults_async", - "title": "OracleDatabase listExascaleDbStorageVaults Sample", - "origin": "API_DEFINITION", - "description": " Lists all the ExascaleDB Storage Vaults for the given project and location.", - "canonical": true, - "file": "oracle_database.list_exascale_db_storage_vaults.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListExascaleDbStorageVaults", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.ListExascaleDbStorageVaults", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.oracledatabase.v1.ListExascaleDbStorageVaultsResponse", - "client": { - "shortName": "OracleDatabaseClient", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabaseClient" - }, - "method": { - "shortName": "ListExascaleDbStorageVaults", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.ListExascaleDbStorageVaults", - "service": { - "shortName": "OracleDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - } - }, - { - "regionTag": "oracledatabase_v1_generated_OracleDatabase_GetExascaleDbStorageVault_async", - "title": "OracleDatabase getExascaleDbStorageVault Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single ExascaleDB Storage Vault.", - "canonical": true, - "file": "oracle_database.get_exascale_db_storage_vault.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetExascaleDbStorageVault", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.GetExascaleDbStorageVault", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.oracledatabase.v1.ExascaleDbStorageVault", - "client": { - "shortName": "OracleDatabaseClient", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabaseClient" - }, - "method": { - "shortName": "GetExascaleDbStorageVault", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.GetExascaleDbStorageVault", - "service": { - "shortName": "OracleDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - } - }, - { - "regionTag": "oracledatabase_v1_generated_OracleDatabase_CreateExascaleDbStorageVault_async", - "title": "OracleDatabase createExascaleDbStorageVault Sample", - "origin": "API_DEFINITION", - "description": " Creates a new ExascaleDB Storage Vault resource.", - "canonical": true, - "file": "oracle_database.create_exascale_db_storage_vault.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateExascaleDbStorageVault", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.CreateExascaleDbStorageVault", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "exascale_db_storage_vault_id", - "type": "TYPE_STRING" - }, - { - "name": "exascale_db_storage_vault", - "type": ".google.cloud.oracledatabase.v1.ExascaleDbStorageVault" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OracleDatabaseClient", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabaseClient" - }, - "method": { - "shortName": "CreateExascaleDbStorageVault", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.CreateExascaleDbStorageVault", - "service": { - "shortName": "OracleDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - } - }, - { - "regionTag": "oracledatabase_v1_generated_OracleDatabase_DeleteExascaleDbStorageVault_async", - "title": "OracleDatabase deleteExascaleDbStorageVault Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single ExascaleDB Storage Vault.", - "canonical": true, - "file": "oracle_database.delete_exascale_db_storage_vault.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteExascaleDbStorageVault", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.DeleteExascaleDbStorageVault", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OracleDatabaseClient", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabaseClient" - }, - "method": { - "shortName": "DeleteExascaleDbStorageVault", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.DeleteExascaleDbStorageVault", - "service": { - "shortName": "OracleDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - } - }, - { - "regionTag": "oracledatabase_v1_generated_OracleDatabase_ListDbSystemInitialStorageSizes_async", - "title": "OracleDatabase listDbSystemInitialStorageSizes Sample", - "origin": "API_DEFINITION", - "description": " Lists all the DbSystemInitialStorageSizes for the given project and location.", - "canonical": true, - "file": "oracle_database.list_db_system_initial_storage_sizes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDbSystemInitialStorageSizes", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.ListDbSystemInitialStorageSizes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.oracledatabase.v1.ListDbSystemInitialStorageSizesResponse", - "client": { - "shortName": "OracleDatabaseClient", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabaseClient" - }, - "method": { - "shortName": "ListDbSystemInitialStorageSizes", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.ListDbSystemInitialStorageSizes", - "service": { - "shortName": "OracleDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - } - }, - { - "regionTag": "oracledatabase_v1_generated_OracleDatabase_ListDatabases_async", - "title": "OracleDatabase listDatabases Sample", - "origin": "API_DEFINITION", - "description": " Lists all the Databases for the given project, location and DbSystem.", - "canonical": true, - "file": "oracle_database.list_databases.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDatabases", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.ListDatabases", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.oracledatabase.v1.ListDatabasesResponse", - "client": { - "shortName": "OracleDatabaseClient", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabaseClient" - }, - "method": { - "shortName": "ListDatabases", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.ListDatabases", - "service": { - "shortName": "OracleDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - } - }, - { - "regionTag": "oracledatabase_v1_generated_OracleDatabase_GetDatabase_async", - "title": "OracleDatabase getDatabase Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Database.", - "canonical": true, - "file": "oracle_database.get_database.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.GetDatabase", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.oracledatabase.v1.Database", - "client": { - "shortName": "OracleDatabaseClient", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabaseClient" - }, - "method": { - "shortName": "GetDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.GetDatabase", - "service": { - "shortName": "OracleDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - } - }, - { - "regionTag": "oracledatabase_v1_generated_OracleDatabase_ListPluggableDatabases_async", - "title": "OracleDatabase listPluggableDatabases Sample", - "origin": "API_DEFINITION", - "description": " Lists all the PluggableDatabases for the given project, location and Container Database.", - "canonical": true, - "file": "oracle_database.list_pluggable_databases.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPluggableDatabases", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.ListPluggableDatabases", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.oracledatabase.v1.ListPluggableDatabasesResponse", - "client": { - "shortName": "OracleDatabaseClient", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabaseClient" - }, - "method": { - "shortName": "ListPluggableDatabases", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.ListPluggableDatabases", - "service": { - "shortName": "OracleDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - } - }, - { - "regionTag": "oracledatabase_v1_generated_OracleDatabase_GetPluggableDatabase_async", - "title": "OracleDatabase getPluggableDatabase Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single PluggableDatabase.", - "canonical": true, - "file": "oracle_database.get_pluggable_database.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPluggableDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.GetPluggableDatabase", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.oracledatabase.v1.PluggableDatabase", - "client": { - "shortName": "OracleDatabaseClient", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabaseClient" - }, - "method": { - "shortName": "GetPluggableDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.GetPluggableDatabase", - "service": { - "shortName": "OracleDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - } - }, - { - "regionTag": "oracledatabase_v1_generated_OracleDatabase_ListDbSystems_async", - "title": "OracleDatabase listDbSystems Sample", - "origin": "API_DEFINITION", - "description": " Lists all the DbSystems for the given project and location.", - "canonical": true, - "file": "oracle_database.list_db_systems.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDbSystems", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.ListDbSystems", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.oracledatabase.v1.ListDbSystemsResponse", - "client": { - "shortName": "OracleDatabaseClient", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabaseClient" - }, - "method": { - "shortName": "ListDbSystems", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.ListDbSystems", - "service": { - "shortName": "OracleDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - } - }, - { - "regionTag": "oracledatabase_v1_generated_OracleDatabase_GetDbSystem_async", - "title": "OracleDatabase getDbSystem Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single DbSystem.", - "canonical": true, - "file": "oracle_database.get_db_system.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDbSystem", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.GetDbSystem", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.oracledatabase.v1.DbSystem", - "client": { - "shortName": "OracleDatabaseClient", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabaseClient" - }, - "method": { - "shortName": "GetDbSystem", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.GetDbSystem", - "service": { - "shortName": "OracleDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - } - }, - { - "regionTag": "oracledatabase_v1_generated_OracleDatabase_CreateDbSystem_async", - "title": "OracleDatabase createDbSystem Sample", - "origin": "API_DEFINITION", - "description": " Creates a new DbSystem in a given project and location.", - "canonical": true, - "file": "oracle_database.create_db_system.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDbSystem", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.CreateDbSystem", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "db_system_id", - "type": "TYPE_STRING" - }, - { - "name": "db_system", - "type": ".google.cloud.oracledatabase.v1.DbSystem" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OracleDatabaseClient", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabaseClient" - }, - "method": { - "shortName": "CreateDbSystem", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.CreateDbSystem", - "service": { - "shortName": "OracleDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - } - }, - { - "regionTag": "oracledatabase_v1_generated_OracleDatabase_DeleteDbSystem_async", - "title": "OracleDatabase deleteDbSystem Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single DbSystem.", - "canonical": true, - "file": "oracle_database.delete_db_system.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDbSystem", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.DeleteDbSystem", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OracleDatabaseClient", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabaseClient" - }, - "method": { - "shortName": "DeleteDbSystem", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.DeleteDbSystem", - "service": { - "shortName": "OracleDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - } - }, - { - "regionTag": "oracledatabase_v1_generated_OracleDatabase_ListDbVersions_async", - "title": "OracleDatabase listDbVersions Sample", - "origin": "API_DEFINITION", - "description": " List DbVersions for the given project and location.", - "canonical": true, - "file": "oracle_database.list_db_versions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDbVersions", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.ListDbVersions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.oracledatabase.v1.ListDbVersionsResponse", - "client": { - "shortName": "OracleDatabaseClient", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabaseClient" - }, - "method": { - "shortName": "ListDbVersions", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.ListDbVersions", - "service": { - "shortName": "OracleDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - } - }, - { - "regionTag": "oracledatabase_v1_generated_OracleDatabase_ListDatabaseCharacterSets_async", - "title": "OracleDatabase listDatabaseCharacterSets Sample", - "origin": "API_DEFINITION", - "description": " List DatabaseCharacterSets for the given project and location.", - "canonical": true, - "file": "oracle_database.list_database_character_sets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDatabaseCharacterSets", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.ListDatabaseCharacterSets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.oracledatabase.v1.ListDatabaseCharacterSetsResponse", - "client": { - "shortName": "OracleDatabaseClient", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabaseClient" - }, - "method": { - "shortName": "ListDatabaseCharacterSets", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase.ListDatabaseCharacterSets", - "service": { - "shortName": "OracleDatabase", - "fullName": "google.cloud.oracledatabase.v1.OracleDatabase" - } - } - } - } - ] -} diff --git a/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/snippet_metadata_google.cloud.orchestration.airflow.service.v1.json b/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/snippet_metadata_google.cloud.orchestration.airflow.service.v1.json deleted file mode 100644 index 08722a0d5107..000000000000 --- a/packages/google-cloud-orchestration-airflow-service/samples/generated/v1/snippet_metadata_google.cloud.orchestration.airflow.service.v1.json +++ /dev/null @@ -1,1155 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-service", - "version": "4.3.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.orchestration.airflow.service.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "composer_v1_generated_Environments_CreateEnvironment_async", - "title": "Environments createEnvironment Sample", - "origin": "API_DEFINITION", - "description": " Create a new environment.", - "canonical": true, - "file": "environments.create_environment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateEnvironment", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.CreateEnvironment", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "environment", - "type": ".google.cloud.orchestration.airflow.service.v1.Environment" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.orchestration.airflow.service.v1.EnvironmentsClient" - }, - "method": { - "shortName": "CreateEnvironment", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.CreateEnvironment", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments" - } - } - } - }, - { - "regionTag": "composer_v1_generated_Environments_GetEnvironment_async", - "title": "Environments getEnvironment Sample", - "origin": "API_DEFINITION", - "description": " Get an existing environment.", - "canonical": true, - "file": "environments.get_environment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEnvironment", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.GetEnvironment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.orchestration.airflow.service.v1.Environment", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.orchestration.airflow.service.v1.EnvironmentsClient" - }, - "method": { - "shortName": "GetEnvironment", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.GetEnvironment", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments" - } - } - } - }, - { - "regionTag": "composer_v1_generated_Environments_ListEnvironments_async", - "title": "Environments listEnvironments Sample", - "origin": "API_DEFINITION", - "description": " List environments.", - "canonical": true, - "file": "environments.list_environments.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEnvironments", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.ListEnvironments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.orchestration.airflow.service.v1.ListEnvironmentsResponse", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.orchestration.airflow.service.v1.EnvironmentsClient" - }, - "method": { - "shortName": "ListEnvironments", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.ListEnvironments", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments" - } - } - } - }, - { - "regionTag": "composer_v1_generated_Environments_UpdateEnvironment_async", - "title": "Environments updateEnvironment Sample", - "origin": "API_DEFINITION", - "description": " Update an environment.", - "canonical": true, - "file": "environments.update_environment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 176, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateEnvironment", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.UpdateEnvironment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "environment", - "type": ".google.cloud.orchestration.airflow.service.v1.Environment" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.orchestration.airflow.service.v1.EnvironmentsClient" - }, - "method": { - "shortName": "UpdateEnvironment", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.UpdateEnvironment", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments" - } - } - } - }, - { - "regionTag": "composer_v1_generated_Environments_DeleteEnvironment_async", - "title": "Environments deleteEnvironment Sample", - "origin": "API_DEFINITION", - "description": " Delete an environment.", - "canonical": true, - "file": "environments.delete_environment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteEnvironment", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.DeleteEnvironment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.orchestration.airflow.service.v1.EnvironmentsClient" - }, - "method": { - "shortName": "DeleteEnvironment", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.DeleteEnvironment", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments" - } - } - } - }, - { - "regionTag": "composer_v1_generated_Environments_ExecuteAirflowCommand_async", - "title": "Environments executeAirflowCommand Sample", - "origin": "API_DEFINITION", - "description": " Executes Airflow CLI command.", - "canonical": true, - "file": "environments.execute_airflow_command.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExecuteAirflowCommand", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.ExecuteAirflowCommand", - "async": true, - "parameters": [ - { - "name": "environment", - "type": "TYPE_STRING" - }, - { - "name": "command", - "type": "TYPE_STRING" - }, - { - "name": "subcommand", - "type": "TYPE_STRING" - }, - { - "name": "parameters", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.cloud.orchestration.airflow.service.v1.ExecuteAirflowCommandResponse", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.orchestration.airflow.service.v1.EnvironmentsClient" - }, - "method": { - "shortName": "ExecuteAirflowCommand", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.ExecuteAirflowCommand", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments" - } - } - } - }, - { - "regionTag": "composer_v1_generated_Environments_StopAirflowCommand_async", - "title": "Environments stopAirflowCommand Sample", - "origin": "API_DEFINITION", - "description": " Stops Airflow CLI command execution.", - "canonical": true, - "file": "environments.stop_airflow_command.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StopAirflowCommand", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.StopAirflowCommand", - "async": true, - "parameters": [ - { - "name": "environment", - "type": "TYPE_STRING" - }, - { - "name": "execution_id", - "type": "TYPE_STRING" - }, - { - "name": "pod", - "type": "TYPE_STRING" - }, - { - "name": "pod_namespace", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.orchestration.airflow.service.v1.StopAirflowCommandResponse", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.orchestration.airflow.service.v1.EnvironmentsClient" - }, - "method": { - "shortName": "StopAirflowCommand", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.StopAirflowCommand", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments" - } - } - } - }, - { - "regionTag": "composer_v1_generated_Environments_PollAirflowCommand_async", - "title": "Environments pollAirflowCommand Sample", - "origin": "API_DEFINITION", - "description": " Polls Airflow CLI command execution and fetches logs.", - "canonical": true, - "file": "environments.poll_airflow_command.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PollAirflowCommand", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.PollAirflowCommand", - "async": true, - "parameters": [ - { - "name": "environment", - "type": "TYPE_STRING" - }, - { - "name": "execution_id", - "type": "TYPE_STRING" - }, - { - "name": "pod", - "type": "TYPE_STRING" - }, - { - "name": "pod_namespace", - "type": "TYPE_STRING" - }, - { - "name": "next_line_number", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.orchestration.airflow.service.v1.PollAirflowCommandResponse", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.orchestration.airflow.service.v1.EnvironmentsClient" - }, - "method": { - "shortName": "PollAirflowCommand", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.PollAirflowCommand", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments" - } - } - } - }, - { - "regionTag": "composer_v1_generated_Environments_ListWorkloads_async", - "title": "Environments listWorkloads Sample", - "origin": "API_DEFINITION", - "description": " Lists workloads in a Cloud Composer environment. Workload is a unit that runs a single Composer component. This method is supported for Cloud Composer environments in versions composer-2.*.*-airflow-*.*.* and newer.", - "canonical": true, - "file": "environments.list_workloads.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListWorkloads", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.ListWorkloads", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.orchestration.airflow.service.v1.ListWorkloadsResponse", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.orchestration.airflow.service.v1.EnvironmentsClient" - }, - "method": { - "shortName": "ListWorkloads", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.ListWorkloads", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments" - } - } - } - }, - { - "regionTag": "composer_v1_generated_Environments_CheckUpgrade_async", - "title": "Environments checkUpgrade Sample", - "origin": "API_DEFINITION", - "description": " Check if an upgrade operation on the environment will succeed. In case of problems detailed info can be found in the returned Operation.", - "canonical": true, - "file": "environments.check_upgrade.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CheckUpgrade", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.CheckUpgrade", - "async": true, - "parameters": [ - { - "name": "environment", - "type": "TYPE_STRING" - }, - { - "name": "image_version", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.orchestration.airflow.service.v1.EnvironmentsClient" - }, - "method": { - "shortName": "CheckUpgrade", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.CheckUpgrade", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments" - } - } - } - }, - { - "regionTag": "composer_v1_generated_Environments_CreateUserWorkloadsSecret_async", - "title": "Environments createUserWorkloadsSecret Sample", - "origin": "API_DEFINITION", - "description": " Creates a user workloads Secret. This method is supported for Cloud Composer environments in versions composer-3-airflow-*.*.*-build.* and newer.", - "canonical": true, - "file": "environments.create_user_workloads_secret.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateUserWorkloadsSecret", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.CreateUserWorkloadsSecret", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "user_workloads_secret", - "type": ".google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret" - } - ], - "resultType": ".google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.orchestration.airflow.service.v1.EnvironmentsClient" - }, - "method": { - "shortName": "CreateUserWorkloadsSecret", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.CreateUserWorkloadsSecret", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments" - } - } - } - }, - { - "regionTag": "composer_v1_generated_Environments_GetUserWorkloadsSecret_async", - "title": "Environments getUserWorkloadsSecret Sample", - "origin": "API_DEFINITION", - "description": " Gets an existing user workloads Secret. Values of the \"data\" field in the response are cleared. This method is supported for Cloud Composer environments in versions composer-3-airflow-*.*.*-build.* and newer.", - "canonical": true, - "file": "environments.get_user_workloads_secret.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetUserWorkloadsSecret", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.GetUserWorkloadsSecret", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.orchestration.airflow.service.v1.EnvironmentsClient" - }, - "method": { - "shortName": "GetUserWorkloadsSecret", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.GetUserWorkloadsSecret", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments" - } - } - } - }, - { - "regionTag": "composer_v1_generated_Environments_ListUserWorkloadsSecrets_async", - "title": "Environments listUserWorkloadsSecrets Sample", - "origin": "API_DEFINITION", - "description": " Lists user workloads Secrets. This method is supported for Cloud Composer environments in versions composer-3-airflow-*.*.*-build.* and newer.", - "canonical": true, - "file": "environments.list_user_workloads_secrets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListUserWorkloadsSecrets", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.ListUserWorkloadsSecrets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsSecretsResponse", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.orchestration.airflow.service.v1.EnvironmentsClient" - }, - "method": { - "shortName": "ListUserWorkloadsSecrets", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.ListUserWorkloadsSecrets", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments" - } - } - } - }, - { - "regionTag": "composer_v1_generated_Environments_UpdateUserWorkloadsSecret_async", - "title": "Environments updateUserWorkloadsSecret Sample", - "origin": "API_DEFINITION", - "description": " Updates a user workloads Secret. This method is supported for Cloud Composer environments in versions composer-3-airflow-*.*.*-build.* and newer.", - "canonical": true, - "file": "environments.update_user_workloads_secret.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 52, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateUserWorkloadsSecret", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.UpdateUserWorkloadsSecret", - "async": true, - "parameters": [ - { - "name": "user_workloads_secret", - "type": ".google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret" - } - ], - "resultType": ".google.cloud.orchestration.airflow.service.v1.UserWorkloadsSecret", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.orchestration.airflow.service.v1.EnvironmentsClient" - }, - "method": { - "shortName": "UpdateUserWorkloadsSecret", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.UpdateUserWorkloadsSecret", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments" - } - } - } - }, - { - "regionTag": "composer_v1_generated_Environments_DeleteUserWorkloadsSecret_async", - "title": "Environments deleteUserWorkloadsSecret Sample", - "origin": "API_DEFINITION", - "description": " Deletes a user workloads Secret. This method is supported for Cloud Composer environments in versions composer-3-airflow-*.*.*-build.* and newer.", - "canonical": true, - "file": "environments.delete_user_workloads_secret.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteUserWorkloadsSecret", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.DeleteUserWorkloadsSecret", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.orchestration.airflow.service.v1.EnvironmentsClient" - }, - "method": { - "shortName": "DeleteUserWorkloadsSecret", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.DeleteUserWorkloadsSecret", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments" - } - } - } - }, - { - "regionTag": "composer_v1_generated_Environments_CreateUserWorkloadsConfigMap_async", - "title": "Environments createUserWorkloadsConfigMap Sample", - "origin": "API_DEFINITION", - "description": " Creates a user workloads ConfigMap. This method is supported for Cloud Composer environments in versions composer-3-airflow-*.*.*-build.* and newer.", - "canonical": true, - "file": "environments.create_user_workloads_config_map.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateUserWorkloadsConfigMap", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.CreateUserWorkloadsConfigMap", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "user_workloads_config_map", - "type": ".google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap" - } - ], - "resultType": ".google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.orchestration.airflow.service.v1.EnvironmentsClient" - }, - "method": { - "shortName": "CreateUserWorkloadsConfigMap", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.CreateUserWorkloadsConfigMap", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments" - } - } - } - }, - { - "regionTag": "composer_v1_generated_Environments_GetUserWorkloadsConfigMap_async", - "title": "Environments getUserWorkloadsConfigMap Sample", - "origin": "API_DEFINITION", - "description": " Gets an existing user workloads ConfigMap. This method is supported for Cloud Composer environments in versions composer-3-airflow-*.*.*-build.* and newer.", - "canonical": true, - "file": "environments.get_user_workloads_config_map.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetUserWorkloadsConfigMap", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.GetUserWorkloadsConfigMap", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.orchestration.airflow.service.v1.EnvironmentsClient" - }, - "method": { - "shortName": "GetUserWorkloadsConfigMap", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.GetUserWorkloadsConfigMap", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments" - } - } - } - }, - { - "regionTag": "composer_v1_generated_Environments_ListUserWorkloadsConfigMaps_async", - "title": "Environments listUserWorkloadsConfigMaps Sample", - "origin": "API_DEFINITION", - "description": " Lists user workloads ConfigMaps. This method is supported for Cloud Composer environments in versions composer-3-airflow-*.*.*-build.* and newer.", - "canonical": true, - "file": "environments.list_user_workloads_config_maps.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListUserWorkloadsConfigMaps", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.ListUserWorkloadsConfigMaps", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.orchestration.airflow.service.v1.ListUserWorkloadsConfigMapsResponse", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.orchestration.airflow.service.v1.EnvironmentsClient" - }, - "method": { - "shortName": "ListUserWorkloadsConfigMaps", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.ListUserWorkloadsConfigMaps", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments" - } - } - } - }, - { - "regionTag": "composer_v1_generated_Environments_UpdateUserWorkloadsConfigMap_async", - "title": "Environments updateUserWorkloadsConfigMap Sample", - "origin": "API_DEFINITION", - "description": " Updates a user workloads ConfigMap. This method is supported for Cloud Composer environments in versions composer-3-airflow-*.*.*-build.* and newer.", - "canonical": true, - "file": "environments.update_user_workloads_config_map.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 52, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateUserWorkloadsConfigMap", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.UpdateUserWorkloadsConfigMap", - "async": true, - "parameters": [ - { - "name": "user_workloads_config_map", - "type": ".google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap" - } - ], - "resultType": ".google.cloud.orchestration.airflow.service.v1.UserWorkloadsConfigMap", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.orchestration.airflow.service.v1.EnvironmentsClient" - }, - "method": { - "shortName": "UpdateUserWorkloadsConfigMap", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.UpdateUserWorkloadsConfigMap", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments" - } - } - } - }, - { - "regionTag": "composer_v1_generated_Environments_DeleteUserWorkloadsConfigMap_async", - "title": "Environments deleteUserWorkloadsConfigMap Sample", - "origin": "API_DEFINITION", - "description": " Deletes a user workloads ConfigMap. This method is supported for Cloud Composer environments in versions composer-3-airflow-*.*.*-build.* and newer.", - "canonical": true, - "file": "environments.delete_user_workloads_config_map.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteUserWorkloadsConfigMap", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.DeleteUserWorkloadsConfigMap", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.orchestration.airflow.service.v1.EnvironmentsClient" - }, - "method": { - "shortName": "DeleteUserWorkloadsConfigMap", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.DeleteUserWorkloadsConfigMap", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments" - } - } - } - }, - { - "regionTag": "composer_v1_generated_Environments_SaveSnapshot_async", - "title": "Environments saveSnapshot Sample", - "origin": "API_DEFINITION", - "description": " Creates a snapshots of a Cloud Composer environment. As a result of this operation, snapshot of environment's state is stored in a location specified in the SaveSnapshotRequest.", - "canonical": true, - "file": "environments.save_snapshot.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SaveSnapshot", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.SaveSnapshot", - "async": true, - "parameters": [ - { - "name": "environment", - "type": "TYPE_STRING" - }, - { - "name": "snapshot_location", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.orchestration.airflow.service.v1.EnvironmentsClient" - }, - "method": { - "shortName": "SaveSnapshot", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.SaveSnapshot", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments" - } - } - } - }, - { - "regionTag": "composer_v1_generated_Environments_LoadSnapshot_async", - "title": "Environments loadSnapshot Sample", - "origin": "API_DEFINITION", - "description": " Loads a snapshot of a Cloud Composer environment. As a result of this operation, a snapshot of environment's specified in LoadSnapshotRequest is loaded into the environment.", - "canonical": true, - "file": "environments.load_snapshot.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "LoadSnapshot", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.LoadSnapshot", - "async": true, - "parameters": [ - { - "name": "environment", - "type": "TYPE_STRING" - }, - { - "name": "snapshot_path", - "type": "TYPE_STRING" - }, - { - "name": "skip_pypi_packages_installation", - "type": "TYPE_BOOL" - }, - { - "name": "skip_environment_variables_setting", - "type": "TYPE_BOOL" - }, - { - "name": "skip_airflow_overrides_setting", - "type": "TYPE_BOOL" - }, - { - "name": "skip_gcs_data_copying", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.orchestration.airflow.service.v1.EnvironmentsClient" - }, - "method": { - "shortName": "LoadSnapshot", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.LoadSnapshot", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments" - } - } - } - }, - { - "regionTag": "composer_v1_generated_Environments_DatabaseFailover_async", - "title": "Environments databaseFailover Sample", - "origin": "API_DEFINITION", - "description": " Triggers database failover (only for highly resilient environments).", - "canonical": true, - "file": "environments.database_failover.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DatabaseFailover", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.DatabaseFailover", - "async": true, - "parameters": [ - { - "name": "environment", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.orchestration.airflow.service.v1.EnvironmentsClient" - }, - "method": { - "shortName": "DatabaseFailover", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.DatabaseFailover", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments" - } - } - } - }, - { - "regionTag": "composer_v1_generated_Environments_FetchDatabaseProperties_async", - "title": "Environments fetchDatabaseProperties Sample", - "origin": "API_DEFINITION", - "description": " Fetches database properties.", - "canonical": true, - "file": "environments.fetch_database_properties.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchDatabaseProperties", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.FetchDatabaseProperties", - "async": true, - "parameters": [ - { - "name": "environment", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.orchestration.airflow.service.v1.FetchDatabasePropertiesResponse", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.orchestration.airflow.service.v1.EnvironmentsClient" - }, - "method": { - "shortName": "FetchDatabaseProperties", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments.FetchDatabaseProperties", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.orchestration.airflow.service.v1.Environments" - } - } - } - }, - { - "regionTag": "composer_v1_generated_ImageVersions_ListImageVersions_async", - "title": "Environments listImageVersions Sample", - "origin": "API_DEFINITION", - "description": " List ImageVersions for provided location.", - "canonical": true, - "file": "image_versions.list_image_versions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListImageVersions", - "fullName": "google.cloud.orchestration.airflow.service.v1.ImageVersions.ListImageVersions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "include_past_releases", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.orchestration.airflow.service.v1.ListImageVersionsResponse", - "client": { - "shortName": "ImageVersionsClient", - "fullName": "google.cloud.orchestration.airflow.service.v1.ImageVersionsClient" - }, - "method": { - "shortName": "ListImageVersions", - "fullName": "google.cloud.orchestration.airflow.service.v1.ImageVersions.ListImageVersions", - "service": { - "shortName": "ImageVersions", - "fullName": "google.cloud.orchestration.airflow.service.v1.ImageVersions" - } - } - } - } - ] -} diff --git a/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/snippet_metadata_google.cloud.orchestration.airflow.service.v1beta1.json b/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/snippet_metadata_google.cloud.orchestration.airflow.service.v1beta1.json deleted file mode 100644 index 9592f797b8e6..000000000000 --- a/packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/snippet_metadata_google.cloud.orchestration.airflow.service.v1beta1.json +++ /dev/null @@ -1,1195 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-service", - "version": "4.3.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.orchestration.airflow.service.v1beta1", - "version": "v1beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "composer_v1beta1_generated_Environments_CreateEnvironment_async", - "title": "Environments createEnvironment Sample", - "origin": "API_DEFINITION", - "description": " Create a new environment.", - "canonical": true, - "file": "environments.create_environment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateEnvironment", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.CreateEnvironment", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "environment", - "type": ".google.cloud.orchestration.airflow.service.v1beta1.Environment" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.EnvironmentsClient" - }, - "method": { - "shortName": "CreateEnvironment", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.CreateEnvironment", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments" - } - } - } - }, - { - "regionTag": "composer_v1beta1_generated_Environments_GetEnvironment_async", - "title": "Environments getEnvironment Sample", - "origin": "API_DEFINITION", - "description": " Get an existing environment.", - "canonical": true, - "file": "environments.get_environment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEnvironment", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.GetEnvironment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.orchestration.airflow.service.v1beta1.Environment", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.EnvironmentsClient" - }, - "method": { - "shortName": "GetEnvironment", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.GetEnvironment", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments" - } - } - } - }, - { - "regionTag": "composer_v1beta1_generated_Environments_ListEnvironments_async", - "title": "Environments listEnvironments Sample", - "origin": "API_DEFINITION", - "description": " List environments.", - "canonical": true, - "file": "environments.list_environments.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEnvironments", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.ListEnvironments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.orchestration.airflow.service.v1beta1.ListEnvironmentsResponse", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.EnvironmentsClient" - }, - "method": { - "shortName": "ListEnvironments", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.ListEnvironments", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments" - } - } - } - }, - { - "regionTag": "composer_v1beta1_generated_Environments_UpdateEnvironment_async", - "title": "Environments updateEnvironment Sample", - "origin": "API_DEFINITION", - "description": " Update an environment.", - "canonical": true, - "file": "environments.update_environment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 198, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateEnvironment", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.UpdateEnvironment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "environment", - "type": ".google.cloud.orchestration.airflow.service.v1beta1.Environment" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.EnvironmentsClient" - }, - "method": { - "shortName": "UpdateEnvironment", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.UpdateEnvironment", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments" - } - } - } - }, - { - "regionTag": "composer_v1beta1_generated_Environments_DeleteEnvironment_async", - "title": "Environments deleteEnvironment Sample", - "origin": "API_DEFINITION", - "description": " Delete an environment.", - "canonical": true, - "file": "environments.delete_environment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteEnvironment", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.DeleteEnvironment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.EnvironmentsClient" - }, - "method": { - "shortName": "DeleteEnvironment", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.DeleteEnvironment", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments" - } - } - } - }, - { - "regionTag": "composer_v1beta1_generated_Environments_RestartWebServer_async", - "title": "Environments restartWebServer Sample", - "origin": "API_DEFINITION", - "description": " Restart Airflow web server.", - "canonical": true, - "file": "environments.restart_web_server.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RestartWebServer", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.RestartWebServer", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.EnvironmentsClient" - }, - "method": { - "shortName": "RestartWebServer", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.RestartWebServer", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments" - } - } - } - }, - { - "regionTag": "composer_v1beta1_generated_Environments_CheckUpgrade_async", - "title": "Environments checkUpgrade Sample", - "origin": "API_DEFINITION", - "description": " Check if an upgrade operation on the environment will succeed. In case of problems detailed info can be found in the returned Operation.", - "canonical": true, - "file": "environments.check_upgrade.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CheckUpgrade", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.CheckUpgrade", - "async": true, - "parameters": [ - { - "name": "environment", - "type": "TYPE_STRING" - }, - { - "name": "image_version", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.EnvironmentsClient" - }, - "method": { - "shortName": "CheckUpgrade", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.CheckUpgrade", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments" - } - } - } - }, - { - "regionTag": "composer_v1beta1_generated_Environments_ExecuteAirflowCommand_async", - "title": "Environments executeAirflowCommand Sample", - "origin": "API_DEFINITION", - "description": " Executes Airflow CLI command.", - "canonical": true, - "file": "environments.execute_airflow_command.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExecuteAirflowCommand", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.ExecuteAirflowCommand", - "async": true, - "parameters": [ - { - "name": "environment", - "type": "TYPE_STRING" - }, - { - "name": "command", - "type": "TYPE_STRING" - }, - { - "name": "subcommand", - "type": "TYPE_STRING" - }, - { - "name": "parameters", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.cloud.orchestration.airflow.service.v1beta1.ExecuteAirflowCommandResponse", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.EnvironmentsClient" - }, - "method": { - "shortName": "ExecuteAirflowCommand", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.ExecuteAirflowCommand", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments" - } - } - } - }, - { - "regionTag": "composer_v1beta1_generated_Environments_StopAirflowCommand_async", - "title": "Environments stopAirflowCommand Sample", - "origin": "API_DEFINITION", - "description": " Stops Airflow CLI command execution.", - "canonical": true, - "file": "environments.stop_airflow_command.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StopAirflowCommand", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.StopAirflowCommand", - "async": true, - "parameters": [ - { - "name": "environment", - "type": "TYPE_STRING" - }, - { - "name": "execution_id", - "type": "TYPE_STRING" - }, - { - "name": "pod", - "type": "TYPE_STRING" - }, - { - "name": "pod_namespace", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.orchestration.airflow.service.v1beta1.StopAirflowCommandResponse", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.EnvironmentsClient" - }, - "method": { - "shortName": "StopAirflowCommand", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.StopAirflowCommand", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments" - } - } - } - }, - { - "regionTag": "composer_v1beta1_generated_Environments_PollAirflowCommand_async", - "title": "Environments pollAirflowCommand Sample", - "origin": "API_DEFINITION", - "description": " Polls Airflow CLI command execution and fetches logs.", - "canonical": true, - "file": "environments.poll_airflow_command.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PollAirflowCommand", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.PollAirflowCommand", - "async": true, - "parameters": [ - { - "name": "environment", - "type": "TYPE_STRING" - }, - { - "name": "execution_id", - "type": "TYPE_STRING" - }, - { - "name": "pod", - "type": "TYPE_STRING" - }, - { - "name": "pod_namespace", - "type": "TYPE_STRING" - }, - { - "name": "next_line_number", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.orchestration.airflow.service.v1beta1.PollAirflowCommandResponse", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.EnvironmentsClient" - }, - "method": { - "shortName": "PollAirflowCommand", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.PollAirflowCommand", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments" - } - } - } - }, - { - "regionTag": "composer_v1beta1_generated_Environments_ListWorkloads_async", - "title": "Environments listWorkloads Sample", - "origin": "API_DEFINITION", - "description": " Lists workloads in a Cloud Composer environment. Workload is a unit that runs a single Composer component. This method is supported for Cloud Composer environments in versions composer-2.*.*-airflow-*.*.* and newer.", - "canonical": true, - "file": "environments.list_workloads.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListWorkloads", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.ListWorkloads", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.orchestration.airflow.service.v1beta1.ListWorkloadsResponse", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.EnvironmentsClient" - }, - "method": { - "shortName": "ListWorkloads", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.ListWorkloads", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments" - } - } - } - }, - { - "regionTag": "composer_v1beta1_generated_Environments_CreateUserWorkloadsSecret_async", - "title": "Environments createUserWorkloadsSecret Sample", - "origin": "API_DEFINITION", - "description": " Creates a user workloads Secret. This method is supported for Cloud Composer environments in versions composer-3-airflow-*.*.*-build.* and newer.", - "canonical": true, - "file": "environments.create_user_workloads_secret.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateUserWorkloadsSecret", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.CreateUserWorkloadsSecret", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "user_workloads_secret", - "type": ".google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret" - } - ], - "resultType": ".google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.EnvironmentsClient" - }, - "method": { - "shortName": "CreateUserWorkloadsSecret", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.CreateUserWorkloadsSecret", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments" - } - } - } - }, - { - "regionTag": "composer_v1beta1_generated_Environments_GetUserWorkloadsSecret_async", - "title": "Environments getUserWorkloadsSecret Sample", - "origin": "API_DEFINITION", - "description": " Gets an existing user workloads Secret. Values of the \"data\" field in the response are cleared. This method is supported for Cloud Composer environments in versions composer-3-airflow-*.*.*-build.* and newer.", - "canonical": true, - "file": "environments.get_user_workloads_secret.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetUserWorkloadsSecret", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.GetUserWorkloadsSecret", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.EnvironmentsClient" - }, - "method": { - "shortName": "GetUserWorkloadsSecret", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.GetUserWorkloadsSecret", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments" - } - } - } - }, - { - "regionTag": "composer_v1beta1_generated_Environments_ListUserWorkloadsSecrets_async", - "title": "Environments listUserWorkloadsSecrets Sample", - "origin": "API_DEFINITION", - "description": " Lists user workloads Secrets. This method is supported for Cloud Composer environments in versions composer-3-airflow-*.*.*-build.* and newer.", - "canonical": true, - "file": "environments.list_user_workloads_secrets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListUserWorkloadsSecrets", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.ListUserWorkloadsSecrets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsSecretsResponse", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.EnvironmentsClient" - }, - "method": { - "shortName": "ListUserWorkloadsSecrets", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.ListUserWorkloadsSecrets", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments" - } - } - } - }, - { - "regionTag": "composer_v1beta1_generated_Environments_UpdateUserWorkloadsSecret_async", - "title": "Environments updateUserWorkloadsSecret Sample", - "origin": "API_DEFINITION", - "description": " Updates a user workloads Secret. This method is supported for Cloud Composer environments in versions composer-3-airflow-*.*.*-build.* and newer.", - "canonical": true, - "file": "environments.update_user_workloads_secret.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 52, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateUserWorkloadsSecret", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.UpdateUserWorkloadsSecret", - "async": true, - "parameters": [ - { - "name": "user_workloads_secret", - "type": ".google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret" - } - ], - "resultType": ".google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsSecret", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.EnvironmentsClient" - }, - "method": { - "shortName": "UpdateUserWorkloadsSecret", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.UpdateUserWorkloadsSecret", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments" - } - } - } - }, - { - "regionTag": "composer_v1beta1_generated_Environments_DeleteUserWorkloadsSecret_async", - "title": "Environments deleteUserWorkloadsSecret Sample", - "origin": "API_DEFINITION", - "description": " Deletes a user workloads Secret. This method is supported for Cloud Composer environments in versions composer-3-airflow-*.*.*-build.* and newer.", - "canonical": true, - "file": "environments.delete_user_workloads_secret.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteUserWorkloadsSecret", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.DeleteUserWorkloadsSecret", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.EnvironmentsClient" - }, - "method": { - "shortName": "DeleteUserWorkloadsSecret", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.DeleteUserWorkloadsSecret", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments" - } - } - } - }, - { - "regionTag": "composer_v1beta1_generated_Environments_CreateUserWorkloadsConfigMap_async", - "title": "Environments createUserWorkloadsConfigMap Sample", - "origin": "API_DEFINITION", - "description": " Creates a user workloads ConfigMap. This method is supported for Cloud Composer environments in versions composer-3-airflow-*.*.*-build.* and newer.", - "canonical": true, - "file": "environments.create_user_workloads_config_map.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateUserWorkloadsConfigMap", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.CreateUserWorkloadsConfigMap", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "user_workloads_config_map", - "type": ".google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap" - } - ], - "resultType": ".google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.EnvironmentsClient" - }, - "method": { - "shortName": "CreateUserWorkloadsConfigMap", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.CreateUserWorkloadsConfigMap", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments" - } - } - } - }, - { - "regionTag": "composer_v1beta1_generated_Environments_GetUserWorkloadsConfigMap_async", - "title": "Environments getUserWorkloadsConfigMap Sample", - "origin": "API_DEFINITION", - "description": " Gets an existing user workloads ConfigMap. This method is supported for Cloud Composer environments in versions composer-3-airflow-*.*.*-build.* and newer.", - "canonical": true, - "file": "environments.get_user_workloads_config_map.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetUserWorkloadsConfigMap", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.GetUserWorkloadsConfigMap", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.EnvironmentsClient" - }, - "method": { - "shortName": "GetUserWorkloadsConfigMap", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.GetUserWorkloadsConfigMap", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments" - } - } - } - }, - { - "regionTag": "composer_v1beta1_generated_Environments_ListUserWorkloadsConfigMaps_async", - "title": "Environments listUserWorkloadsConfigMaps Sample", - "origin": "API_DEFINITION", - "description": " Lists user workloads ConfigMaps. This method is supported for Cloud Composer environments in versions composer-3-airflow-*.*.*-build.* and newer.", - "canonical": true, - "file": "environments.list_user_workloads_config_maps.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListUserWorkloadsConfigMaps", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.ListUserWorkloadsConfigMaps", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.orchestration.airflow.service.v1beta1.ListUserWorkloadsConfigMapsResponse", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.EnvironmentsClient" - }, - "method": { - "shortName": "ListUserWorkloadsConfigMaps", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.ListUserWorkloadsConfigMaps", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments" - } - } - } - }, - { - "regionTag": "composer_v1beta1_generated_Environments_UpdateUserWorkloadsConfigMap_async", - "title": "Environments updateUserWorkloadsConfigMap Sample", - "origin": "API_DEFINITION", - "description": " Updates a user workloads ConfigMap. This method is supported for Cloud Composer environments in versions composer-3-airflow-*.*.*-build.* and newer.", - "canonical": true, - "file": "environments.update_user_workloads_config_map.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 52, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateUserWorkloadsConfigMap", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.UpdateUserWorkloadsConfigMap", - "async": true, - "parameters": [ - { - "name": "user_workloads_config_map", - "type": ".google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap" - } - ], - "resultType": ".google.cloud.orchestration.airflow.service.v1beta1.UserWorkloadsConfigMap", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.EnvironmentsClient" - }, - "method": { - "shortName": "UpdateUserWorkloadsConfigMap", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.UpdateUserWorkloadsConfigMap", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments" - } - } - } - }, - { - "regionTag": "composer_v1beta1_generated_Environments_DeleteUserWorkloadsConfigMap_async", - "title": "Environments deleteUserWorkloadsConfigMap Sample", - "origin": "API_DEFINITION", - "description": " Deletes a user workloads ConfigMap. This method is supported for Cloud Composer environments in versions composer-3-airflow-*.*.*-build.* and newer.", - "canonical": true, - "file": "environments.delete_user_workloads_config_map.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteUserWorkloadsConfigMap", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.DeleteUserWorkloadsConfigMap", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.EnvironmentsClient" - }, - "method": { - "shortName": "DeleteUserWorkloadsConfigMap", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.DeleteUserWorkloadsConfigMap", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments" - } - } - } - }, - { - "regionTag": "composer_v1beta1_generated_Environments_SaveSnapshot_async", - "title": "Environments saveSnapshot Sample", - "origin": "API_DEFINITION", - "description": " Creates a snapshots of a Cloud Composer environment. As a result of this operation, snapshot of environment's state is stored in a location specified in the SaveSnapshotRequest.", - "canonical": true, - "file": "environments.save_snapshot.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SaveSnapshot", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.SaveSnapshot", - "async": true, - "parameters": [ - { - "name": "environment", - "type": "TYPE_STRING" - }, - { - "name": "snapshot_location", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.EnvironmentsClient" - }, - "method": { - "shortName": "SaveSnapshot", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.SaveSnapshot", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments" - } - } - } - }, - { - "regionTag": "composer_v1beta1_generated_Environments_LoadSnapshot_async", - "title": "Environments loadSnapshot Sample", - "origin": "API_DEFINITION", - "description": " Loads a snapshot of a Cloud Composer environment. As a result of this operation, a snapshot of environment's specified in LoadSnapshotRequest is loaded into the environment.", - "canonical": true, - "file": "environments.load_snapshot.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "LoadSnapshot", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.LoadSnapshot", - "async": true, - "parameters": [ - { - "name": "environment", - "type": "TYPE_STRING" - }, - { - "name": "snapshot_path", - "type": "TYPE_STRING" - }, - { - "name": "skip_pypi_packages_installation", - "type": "TYPE_BOOL" - }, - { - "name": "skip_environment_variables_setting", - "type": "TYPE_BOOL" - }, - { - "name": "skip_airflow_overrides_setting", - "type": "TYPE_BOOL" - }, - { - "name": "skip_gcs_data_copying", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.EnvironmentsClient" - }, - "method": { - "shortName": "LoadSnapshot", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.LoadSnapshot", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments" - } - } - } - }, - { - "regionTag": "composer_v1beta1_generated_Environments_DatabaseFailover_async", - "title": "Environments databaseFailover Sample", - "origin": "API_DEFINITION", - "description": " Triggers database failover (only for highly resilient environments).", - "canonical": true, - "file": "environments.database_failover.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DatabaseFailover", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.DatabaseFailover", - "async": true, - "parameters": [ - { - "name": "environment", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.EnvironmentsClient" - }, - "method": { - "shortName": "DatabaseFailover", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.DatabaseFailover", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments" - } - } - } - }, - { - "regionTag": "composer_v1beta1_generated_Environments_FetchDatabaseProperties_async", - "title": "Environments fetchDatabaseProperties Sample", - "origin": "API_DEFINITION", - "description": " Fetches database properties.", - "canonical": true, - "file": "environments.fetch_database_properties.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchDatabaseProperties", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.FetchDatabaseProperties", - "async": true, - "parameters": [ - { - "name": "environment", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.orchestration.airflow.service.v1beta1.FetchDatabasePropertiesResponse", - "client": { - "shortName": "EnvironmentsClient", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.EnvironmentsClient" - }, - "method": { - "shortName": "FetchDatabaseProperties", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments.FetchDatabaseProperties", - "service": { - "shortName": "Environments", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.Environments" - } - } - } - }, - { - "regionTag": "composer_v1beta1_generated_ImageVersions_ListImageVersions_async", - "title": "Environments listImageVersions Sample", - "origin": "API_DEFINITION", - "description": " List ImageVersions for provided location.", - "canonical": true, - "file": "image_versions.list_image_versions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListImageVersions", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.ImageVersions.ListImageVersions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "include_past_releases", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.orchestration.airflow.service.v1beta1.ListImageVersionsResponse", - "client": { - "shortName": "ImageVersionsClient", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.ImageVersionsClient" - }, - "method": { - "shortName": "ListImageVersions", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.ImageVersions.ListImageVersions", - "service": { - "shortName": "ImageVersions", - "fullName": "google.cloud.orchestration.airflow.service.v1beta1.ImageVersions" - } - } - } - } - ] -} diff --git a/packages/google-cloud-orgpolicy/samples/generated/v2/snippet_metadata_google.cloud.orgpolicy.v2.json b/packages/google-cloud-orgpolicy/samples/generated/v2/snippet_metadata_google.cloud.orgpolicy.v2.json deleted file mode 100644 index 470a9dac4bfd..000000000000 --- a/packages/google-cloud-orgpolicy/samples/generated/v2/snippet_metadata_google.cloud.orgpolicy.v2.json +++ /dev/null @@ -1,535 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-orgpolicy", - "version": "4.3.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.orgpolicy.v2", - "version": "v2" - } - ] - }, - "snippets": [ - { - "regionTag": "orgpolicy_v2_generated_OrgPolicy_ListConstraints_async", - "title": "OrgPolicy listConstraints Sample", - "origin": "API_DEFINITION", - "description": " Lists constraints that could be applied on the specified resource.", - "canonical": true, - "file": "org_policy.list_constraints.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListConstraints", - "fullName": "google.cloud.orgpolicy.v2.OrgPolicy.ListConstraints", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.orgpolicy.v2.ListConstraintsResponse", - "client": { - "shortName": "OrgPolicyClient", - "fullName": "google.cloud.orgpolicy.v2.OrgPolicyClient" - }, - "method": { - "shortName": "ListConstraints", - "fullName": "google.cloud.orgpolicy.v2.OrgPolicy.ListConstraints", - "service": { - "shortName": "OrgPolicy", - "fullName": "google.cloud.orgpolicy.v2.OrgPolicy" - } - } - } - }, - { - "regionTag": "orgpolicy_v2_generated_OrgPolicy_ListPolicies_async", - "title": "OrgPolicy listPolicies Sample", - "origin": "API_DEFINITION", - "description": " Retrieves all of the policies that exist on a particular resource.", - "canonical": true, - "file": "org_policy.list_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPolicies", - "fullName": "google.cloud.orgpolicy.v2.OrgPolicy.ListPolicies", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.orgpolicy.v2.ListPoliciesResponse", - "client": { - "shortName": "OrgPolicyClient", - "fullName": "google.cloud.orgpolicy.v2.OrgPolicyClient" - }, - "method": { - "shortName": "ListPolicies", - "fullName": "google.cloud.orgpolicy.v2.OrgPolicy.ListPolicies", - "service": { - "shortName": "OrgPolicy", - "fullName": "google.cloud.orgpolicy.v2.OrgPolicy" - } - } - } - }, - { - "regionTag": "orgpolicy_v2_generated_OrgPolicy_GetPolicy_async", - "title": "OrgPolicy getPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets a policy on a resource. If no policy is set on the resource, `NOT_FOUND` is returned. The `etag` value can be used with `UpdatePolicy()` to update a policy during read-modify-write.", - "canonical": true, - "file": "org_policy.get_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPolicy", - "fullName": "google.cloud.orgpolicy.v2.OrgPolicy.GetPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.orgpolicy.v2.Policy", - "client": { - "shortName": "OrgPolicyClient", - "fullName": "google.cloud.orgpolicy.v2.OrgPolicyClient" - }, - "method": { - "shortName": "GetPolicy", - "fullName": "google.cloud.orgpolicy.v2.OrgPolicy.GetPolicy", - "service": { - "shortName": "OrgPolicy", - "fullName": "google.cloud.orgpolicy.v2.OrgPolicy" - } - } - } - }, - { - "regionTag": "orgpolicy_v2_generated_OrgPolicy_GetEffectivePolicy_async", - "title": "OrgPolicy getEffectivePolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the effective policy on a resource. This is the result of merging policies in the resource hierarchy and evaluating conditions. The returned policy will not have an `etag` or `condition` set because it is an evaluated policy across multiple resources. Subtrees of Resource Manager resource hierarchy with 'under:' prefix will not be expanded.", - "canonical": true, - "file": "org_policy.get_effective_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEffectivePolicy", - "fullName": "google.cloud.orgpolicy.v2.OrgPolicy.GetEffectivePolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.orgpolicy.v2.Policy", - "client": { - "shortName": "OrgPolicyClient", - "fullName": "google.cloud.orgpolicy.v2.OrgPolicyClient" - }, - "method": { - "shortName": "GetEffectivePolicy", - "fullName": "google.cloud.orgpolicy.v2.OrgPolicy.GetEffectivePolicy", - "service": { - "shortName": "OrgPolicy", - "fullName": "google.cloud.orgpolicy.v2.OrgPolicy" - } - } - } - }, - { - "regionTag": "orgpolicy_v2_generated_OrgPolicy_CreatePolicy_async", - "title": "OrgPolicy createPolicy Sample", - "origin": "API_DEFINITION", - "description": " Creates a policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint does not exist. Returns a `google.rpc.Status` with `google.rpc.Code.ALREADY_EXISTS` if the policy already exists on the given Google Cloud resource.", - "canonical": true, - "file": "org_policy.create_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreatePolicy", - "fullName": "google.cloud.orgpolicy.v2.OrgPolicy.CreatePolicy", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.cloud.orgpolicy.v2.Policy" - } - ], - "resultType": ".google.cloud.orgpolicy.v2.Policy", - "client": { - "shortName": "OrgPolicyClient", - "fullName": "google.cloud.orgpolicy.v2.OrgPolicyClient" - }, - "method": { - "shortName": "CreatePolicy", - "fullName": "google.cloud.orgpolicy.v2.OrgPolicy.CreatePolicy", - "service": { - "shortName": "OrgPolicy", - "fullName": "google.cloud.orgpolicy.v2.OrgPolicy" - } - } - } - }, - { - "regionTag": "orgpolicy_v2_generated_OrgPolicy_UpdatePolicy_async", - "title": "OrgPolicy updatePolicy Sample", - "origin": "API_DEFINITION", - "description": " Updates a policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint or the policy do not exist. Returns a `google.rpc.Status` with `google.rpc.Code.ABORTED` if the etag supplied in the request does not match the persisted etag of the policy Note: the supplied policy will perform a full overwrite of all fields.", - "canonical": true, - "file": "org_policy.update_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdatePolicy", - "fullName": "google.cloud.orgpolicy.v2.OrgPolicy.UpdatePolicy", - "async": true, - "parameters": [ - { - "name": "policy", - "type": ".google.cloud.orgpolicy.v2.Policy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.orgpolicy.v2.Policy", - "client": { - "shortName": "OrgPolicyClient", - "fullName": "google.cloud.orgpolicy.v2.OrgPolicyClient" - }, - "method": { - "shortName": "UpdatePolicy", - "fullName": "google.cloud.orgpolicy.v2.OrgPolicy.UpdatePolicy", - "service": { - "shortName": "OrgPolicy", - "fullName": "google.cloud.orgpolicy.v2.OrgPolicy" - } - } - } - }, - { - "regionTag": "orgpolicy_v2_generated_OrgPolicy_DeletePolicy_async", - "title": "OrgPolicy deletePolicy Sample", - "origin": "API_DEFINITION", - "description": " Deletes a policy. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint or organization policy does not exist.", - "canonical": true, - "file": "org_policy.delete_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePolicy", - "fullName": "google.cloud.orgpolicy.v2.OrgPolicy.DeletePolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "OrgPolicyClient", - "fullName": "google.cloud.orgpolicy.v2.OrgPolicyClient" - }, - "method": { - "shortName": "DeletePolicy", - "fullName": "google.cloud.orgpolicy.v2.OrgPolicy.DeletePolicy", - "service": { - "shortName": "OrgPolicy", - "fullName": "google.cloud.orgpolicy.v2.OrgPolicy" - } - } - } - }, - { - "regionTag": "orgpolicy_v2_generated_OrgPolicy_CreateCustomConstraint_async", - "title": "OrgPolicy createCustomConstraint Sample", - "origin": "API_DEFINITION", - "description": " Creates a custom constraint. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the organization does not exist. Returns a `google.rpc.Status` with `google.rpc.Code.ALREADY_EXISTS` if the constraint already exists on the given organization.", - "canonical": true, - "file": "org_policy.create_custom_constraint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCustomConstraint", - "fullName": "google.cloud.orgpolicy.v2.OrgPolicy.CreateCustomConstraint", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "custom_constraint", - "type": ".google.cloud.orgpolicy.v2.CustomConstraint" - } - ], - "resultType": ".google.cloud.orgpolicy.v2.CustomConstraint", - "client": { - "shortName": "OrgPolicyClient", - "fullName": "google.cloud.orgpolicy.v2.OrgPolicyClient" - }, - "method": { - "shortName": "CreateCustomConstraint", - "fullName": "google.cloud.orgpolicy.v2.OrgPolicy.CreateCustomConstraint", - "service": { - "shortName": "OrgPolicy", - "fullName": "google.cloud.orgpolicy.v2.OrgPolicy" - } - } - } - }, - { - "regionTag": "orgpolicy_v2_generated_OrgPolicy_UpdateCustomConstraint_async", - "title": "OrgPolicy updateCustomConstraint Sample", - "origin": "API_DEFINITION", - "description": " Updates a custom constraint. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint does not exist. Note: the supplied policy will perform a full overwrite of all fields.", - "canonical": true, - "file": "org_policy.update_custom_constraint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCustomConstraint", - "fullName": "google.cloud.orgpolicy.v2.OrgPolicy.UpdateCustomConstraint", - "async": true, - "parameters": [ - { - "name": "custom_constraint", - "type": ".google.cloud.orgpolicy.v2.CustomConstraint" - } - ], - "resultType": ".google.cloud.orgpolicy.v2.CustomConstraint", - "client": { - "shortName": "OrgPolicyClient", - "fullName": "google.cloud.orgpolicy.v2.OrgPolicyClient" - }, - "method": { - "shortName": "UpdateCustomConstraint", - "fullName": "google.cloud.orgpolicy.v2.OrgPolicy.UpdateCustomConstraint", - "service": { - "shortName": "OrgPolicy", - "fullName": "google.cloud.orgpolicy.v2.OrgPolicy" - } - } - } - }, - { - "regionTag": "orgpolicy_v2_generated_OrgPolicy_GetCustomConstraint_async", - "title": "OrgPolicy getCustomConstraint Sample", - "origin": "API_DEFINITION", - "description": " Gets a custom or managed constraint. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the custom or managed constraint does not exist.", - "canonical": true, - "file": "org_policy.get_custom_constraint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCustomConstraint", - "fullName": "google.cloud.orgpolicy.v2.OrgPolicy.GetCustomConstraint", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.orgpolicy.v2.CustomConstraint", - "client": { - "shortName": "OrgPolicyClient", - "fullName": "google.cloud.orgpolicy.v2.OrgPolicyClient" - }, - "method": { - "shortName": "GetCustomConstraint", - "fullName": "google.cloud.orgpolicy.v2.OrgPolicy.GetCustomConstraint", - "service": { - "shortName": "OrgPolicy", - "fullName": "google.cloud.orgpolicy.v2.OrgPolicy" - } - } - } - }, - { - "regionTag": "orgpolicy_v2_generated_OrgPolicy_ListCustomConstraints_async", - "title": "OrgPolicy listCustomConstraints Sample", - "origin": "API_DEFINITION", - "description": " Retrieves all of the custom constraints that exist on a particular organization resource.", - "canonical": true, - "file": "org_policy.list_custom_constraints.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCustomConstraints", - "fullName": "google.cloud.orgpolicy.v2.OrgPolicy.ListCustomConstraints", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.orgpolicy.v2.ListCustomConstraintsResponse", - "client": { - "shortName": "OrgPolicyClient", - "fullName": "google.cloud.orgpolicy.v2.OrgPolicyClient" - }, - "method": { - "shortName": "ListCustomConstraints", - "fullName": "google.cloud.orgpolicy.v2.OrgPolicy.ListCustomConstraints", - "service": { - "shortName": "OrgPolicy", - "fullName": "google.cloud.orgpolicy.v2.OrgPolicy" - } - } - } - }, - { - "regionTag": "orgpolicy_v2_generated_OrgPolicy_DeleteCustomConstraint_async", - "title": "OrgPolicy deleteCustomConstraint Sample", - "origin": "API_DEFINITION", - "description": " Deletes a custom constraint. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint does not exist.", - "canonical": true, - "file": "org_policy.delete_custom_constraint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCustomConstraint", - "fullName": "google.cloud.orgpolicy.v2.OrgPolicy.DeleteCustomConstraint", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "OrgPolicyClient", - "fullName": "google.cloud.orgpolicy.v2.OrgPolicyClient" - }, - "method": { - "shortName": "DeleteCustomConstraint", - "fullName": "google.cloud.orgpolicy.v2.OrgPolicy.DeleteCustomConstraint", - "service": { - "shortName": "OrgPolicy", - "fullName": "google.cloud.orgpolicy.v2.OrgPolicy" - } - } - } - } - ] -} diff --git a/packages/google-cloud-osconfig/samples/generated/v1/snippet_metadata_google.cloud.osconfig.v1.json b/packages/google-cloud-osconfig/samples/generated/v1/snippet_metadata_google.cloud.osconfig.v1.json deleted file mode 100644 index 457dc2922f2a..000000000000 --- a/packages/google-cloud-osconfig/samples/generated/v1/snippet_metadata_google.cloud.osconfig.v1.json +++ /dev/null @@ -1,1119 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-osconfig", - "version": "4.3.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.osconfig.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "osconfig_v1_generated_OsConfigService_ExecutePatchJob_async", - "title": "OsConfigServiceClient executePatchJob Sample", - "origin": "API_DEFINITION", - "description": " Patch VM instances by creating and running a patch job.", - "canonical": true, - "file": "os_config_service.execute_patch_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExecutePatchJob", - "fullName": "google.cloud.osconfig.v1.OsConfigService.ExecutePatchJob", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "description", - "type": "TYPE_STRING" - }, - { - "name": "instance_filter", - "type": ".google.cloud.osconfig.v1.PatchInstanceFilter" - }, - { - "name": "patch_config", - "type": ".google.cloud.osconfig.v1.PatchConfig" - }, - { - "name": "duration", - "type": ".google.protobuf.Duration" - }, - { - "name": "dry_run", - "type": "TYPE_BOOL" - }, - { - "name": "display_name", - "type": "TYPE_STRING" - }, - { - "name": "rollout", - "type": ".google.cloud.osconfig.v1.PatchRollout" - } - ], - "resultType": ".google.cloud.osconfig.v1.PatchJob", - "client": { - "shortName": "OsConfigServiceClient", - "fullName": "google.cloud.osconfig.v1.OsConfigServiceClient" - }, - "method": { - "shortName": "ExecutePatchJob", - "fullName": "google.cloud.osconfig.v1.OsConfigService.ExecutePatchJob", - "service": { - "shortName": "OsConfigService", - "fullName": "google.cloud.osconfig.v1.OsConfigService" - } - } - } - }, - { - "regionTag": "osconfig_v1_generated_OsConfigService_GetPatchJob_async", - "title": "OsConfigServiceClient getPatchJob Sample", - "origin": "API_DEFINITION", - "description": " Get the patch job. This can be used to track the progress of an ongoing patch job or review the details of completed jobs.", - "canonical": true, - "file": "os_config_service.get_patch_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPatchJob", - "fullName": "google.cloud.osconfig.v1.OsConfigService.GetPatchJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.osconfig.v1.PatchJob", - "client": { - "shortName": "OsConfigServiceClient", - "fullName": "google.cloud.osconfig.v1.OsConfigServiceClient" - }, - "method": { - "shortName": "GetPatchJob", - "fullName": "google.cloud.osconfig.v1.OsConfigService.GetPatchJob", - "service": { - "shortName": "OsConfigService", - "fullName": "google.cloud.osconfig.v1.OsConfigService" - } - } - } - }, - { - "regionTag": "osconfig_v1_generated_OsConfigService_CancelPatchJob_async", - "title": "OsConfigServiceClient cancelPatchJob Sample", - "origin": "API_DEFINITION", - "description": " Cancel a patch job. The patch job must be active. Canceled patch jobs cannot be restarted.", - "canonical": true, - "file": "os_config_service.cancel_patch_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CancelPatchJob", - "fullName": "google.cloud.osconfig.v1.OsConfigService.CancelPatchJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.osconfig.v1.PatchJob", - "client": { - "shortName": "OsConfigServiceClient", - "fullName": "google.cloud.osconfig.v1.OsConfigServiceClient" - }, - "method": { - "shortName": "CancelPatchJob", - "fullName": "google.cloud.osconfig.v1.OsConfigService.CancelPatchJob", - "service": { - "shortName": "OsConfigService", - "fullName": "google.cloud.osconfig.v1.OsConfigService" - } - } - } - }, - { - "regionTag": "osconfig_v1_generated_OsConfigService_ListPatchJobs_async", - "title": "OsConfigServiceClient listPatchJobs Sample", - "origin": "API_DEFINITION", - "description": " Get a list of patch jobs.", - "canonical": true, - "file": "os_config_service.list_patch_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPatchJobs", - "fullName": "google.cloud.osconfig.v1.OsConfigService.ListPatchJobs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.osconfig.v1.ListPatchJobsResponse", - "client": { - "shortName": "OsConfigServiceClient", - "fullName": "google.cloud.osconfig.v1.OsConfigServiceClient" - }, - "method": { - "shortName": "ListPatchJobs", - "fullName": "google.cloud.osconfig.v1.OsConfigService.ListPatchJobs", - "service": { - "shortName": "OsConfigService", - "fullName": "google.cloud.osconfig.v1.OsConfigService" - } - } - } - }, - { - "regionTag": "osconfig_v1_generated_OsConfigService_ListPatchJobInstanceDetails_async", - "title": "OsConfigServiceClient listPatchJobInstanceDetails Sample", - "origin": "API_DEFINITION", - "description": " Get a list of instance details for a given patch job.", - "canonical": true, - "file": "os_config_service.list_patch_job_instance_details.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPatchJobInstanceDetails", - "fullName": "google.cloud.osconfig.v1.OsConfigService.ListPatchJobInstanceDetails", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.osconfig.v1.ListPatchJobInstanceDetailsResponse", - "client": { - "shortName": "OsConfigServiceClient", - "fullName": "google.cloud.osconfig.v1.OsConfigServiceClient" - }, - "method": { - "shortName": "ListPatchJobInstanceDetails", - "fullName": "google.cloud.osconfig.v1.OsConfigService.ListPatchJobInstanceDetails", - "service": { - "shortName": "OsConfigService", - "fullName": "google.cloud.osconfig.v1.OsConfigService" - } - } - } - }, - { - "regionTag": "osconfig_v1_generated_OsConfigService_CreatePatchDeployment_async", - "title": "OsConfigServiceClient createPatchDeployment Sample", - "origin": "API_DEFINITION", - "description": " Create an OS Config patch deployment.", - "canonical": true, - "file": "os_config_service.create_patch_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreatePatchDeployment", - "fullName": "google.cloud.osconfig.v1.OsConfigService.CreatePatchDeployment", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "patch_deployment_id", - "type": "TYPE_STRING" - }, - { - "name": "patch_deployment", - "type": ".google.cloud.osconfig.v1.PatchDeployment" - } - ], - "resultType": ".google.cloud.osconfig.v1.PatchDeployment", - "client": { - "shortName": "OsConfigServiceClient", - "fullName": "google.cloud.osconfig.v1.OsConfigServiceClient" - }, - "method": { - "shortName": "CreatePatchDeployment", - "fullName": "google.cloud.osconfig.v1.OsConfigService.CreatePatchDeployment", - "service": { - "shortName": "OsConfigService", - "fullName": "google.cloud.osconfig.v1.OsConfigService" - } - } - } - }, - { - "regionTag": "osconfig_v1_generated_OsConfigService_GetPatchDeployment_async", - "title": "OsConfigServiceClient getPatchDeployment Sample", - "origin": "API_DEFINITION", - "description": " Get an OS Config patch deployment.", - "canonical": true, - "file": "os_config_service.get_patch_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPatchDeployment", - "fullName": "google.cloud.osconfig.v1.OsConfigService.GetPatchDeployment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.osconfig.v1.PatchDeployment", - "client": { - "shortName": "OsConfigServiceClient", - "fullName": "google.cloud.osconfig.v1.OsConfigServiceClient" - }, - "method": { - "shortName": "GetPatchDeployment", - "fullName": "google.cloud.osconfig.v1.OsConfigService.GetPatchDeployment", - "service": { - "shortName": "OsConfigService", - "fullName": "google.cloud.osconfig.v1.OsConfigService" - } - } - } - }, - { - "regionTag": "osconfig_v1_generated_OsConfigService_ListPatchDeployments_async", - "title": "OsConfigServiceClient listPatchDeployments Sample", - "origin": "API_DEFINITION", - "description": " Get a page of OS Config patch deployments.", - "canonical": true, - "file": "os_config_service.list_patch_deployments.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPatchDeployments", - "fullName": "google.cloud.osconfig.v1.OsConfigService.ListPatchDeployments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.osconfig.v1.ListPatchDeploymentsResponse", - "client": { - "shortName": "OsConfigServiceClient", - "fullName": "google.cloud.osconfig.v1.OsConfigServiceClient" - }, - "method": { - "shortName": "ListPatchDeployments", - "fullName": "google.cloud.osconfig.v1.OsConfigService.ListPatchDeployments", - "service": { - "shortName": "OsConfigService", - "fullName": "google.cloud.osconfig.v1.OsConfigService" - } - } - } - }, - { - "regionTag": "osconfig_v1_generated_OsConfigService_DeletePatchDeployment_async", - "title": "OsConfigServiceClient deletePatchDeployment Sample", - "origin": "API_DEFINITION", - "description": " Delete an OS Config patch deployment.", - "canonical": true, - "file": "os_config_service.delete_patch_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePatchDeployment", - "fullName": "google.cloud.osconfig.v1.OsConfigService.DeletePatchDeployment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "OsConfigServiceClient", - "fullName": "google.cloud.osconfig.v1.OsConfigServiceClient" - }, - "method": { - "shortName": "DeletePatchDeployment", - "fullName": "google.cloud.osconfig.v1.OsConfigService.DeletePatchDeployment", - "service": { - "shortName": "OsConfigService", - "fullName": "google.cloud.osconfig.v1.OsConfigService" - } - } - } - }, - { - "regionTag": "osconfig_v1_generated_OsConfigService_UpdatePatchDeployment_async", - "title": "OsConfigServiceClient updatePatchDeployment Sample", - "origin": "API_DEFINITION", - "description": " Update an OS Config patch deployment.", - "canonical": true, - "file": "os_config_service.update_patch_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdatePatchDeployment", - "fullName": "google.cloud.osconfig.v1.OsConfigService.UpdatePatchDeployment", - "async": true, - "parameters": [ - { - "name": "patch_deployment", - "type": ".google.cloud.osconfig.v1.PatchDeployment" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.osconfig.v1.PatchDeployment", - "client": { - "shortName": "OsConfigServiceClient", - "fullName": "google.cloud.osconfig.v1.OsConfigServiceClient" - }, - "method": { - "shortName": "UpdatePatchDeployment", - "fullName": "google.cloud.osconfig.v1.OsConfigService.UpdatePatchDeployment", - "service": { - "shortName": "OsConfigService", - "fullName": "google.cloud.osconfig.v1.OsConfigService" - } - } - } - }, - { - "regionTag": "osconfig_v1_generated_OsConfigService_PausePatchDeployment_async", - "title": "OsConfigServiceClient pausePatchDeployment Sample", - "origin": "API_DEFINITION", - "description": " Change state of patch deployment to \"PAUSED\". Patch deployment in paused state doesn't generate patch jobs.", - "canonical": true, - "file": "os_config_service.pause_patch_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PausePatchDeployment", - "fullName": "google.cloud.osconfig.v1.OsConfigService.PausePatchDeployment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.osconfig.v1.PatchDeployment", - "client": { - "shortName": "OsConfigServiceClient", - "fullName": "google.cloud.osconfig.v1.OsConfigServiceClient" - }, - "method": { - "shortName": "PausePatchDeployment", - "fullName": "google.cloud.osconfig.v1.OsConfigService.PausePatchDeployment", - "service": { - "shortName": "OsConfigService", - "fullName": "google.cloud.osconfig.v1.OsConfigService" - } - } - } - }, - { - "regionTag": "osconfig_v1_generated_OsConfigService_ResumePatchDeployment_async", - "title": "OsConfigServiceClient resumePatchDeployment Sample", - "origin": "API_DEFINITION", - "description": " Change state of patch deployment back to \"ACTIVE\". Patch deployment in active state continues to generate patch jobs.", - "canonical": true, - "file": "os_config_service.resume_patch_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResumePatchDeployment", - "fullName": "google.cloud.osconfig.v1.OsConfigService.ResumePatchDeployment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.osconfig.v1.PatchDeployment", - "client": { - "shortName": "OsConfigServiceClient", - "fullName": "google.cloud.osconfig.v1.OsConfigServiceClient" - }, - "method": { - "shortName": "ResumePatchDeployment", - "fullName": "google.cloud.osconfig.v1.OsConfigService.ResumePatchDeployment", - "service": { - "shortName": "OsConfigService", - "fullName": "google.cloud.osconfig.v1.OsConfigService" - } - } - } - }, - { - "regionTag": "osconfig_v1_generated_OsConfigZonalService_CreateOSPolicyAssignment_async", - "title": "OsConfigServiceClient createOSPolicyAssignment Sample", - "origin": "API_DEFINITION", - "description": " Create an OS policy assignment. This method also creates the first revision of the OS policy assignment. This method returns a long running operation (LRO) that contains the rollout details. The rollout can be cancelled by cancelling the LRO. For more information, see [Method: projects.locations.osPolicyAssignments.operations.cancel](https://cloud.google.com/compute/docs/osconfig/rest/v1/projects.locations.osPolicyAssignments.operations/cancel).", - "canonical": true, - "file": "os_config_zonal_service.create_o_s_policy_assignment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateOSPolicyAssignment", - "fullName": "google.cloud.osconfig.v1.OsConfigZonalService.CreateOSPolicyAssignment", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "os_policy_assignment", - "type": ".google.cloud.osconfig.v1.OSPolicyAssignment" - }, - { - "name": "os_policy_assignment_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OsConfigZonalServiceClient", - "fullName": "google.cloud.osconfig.v1.OsConfigZonalServiceClient" - }, - "method": { - "shortName": "CreateOSPolicyAssignment", - "fullName": "google.cloud.osconfig.v1.OsConfigZonalService.CreateOSPolicyAssignment", - "service": { - "shortName": "OsConfigZonalService", - "fullName": "google.cloud.osconfig.v1.OsConfigZonalService" - } - } - } - }, - { - "regionTag": "osconfig_v1_generated_OsConfigZonalService_UpdateOSPolicyAssignment_async", - "title": "OsConfigServiceClient updateOSPolicyAssignment Sample", - "origin": "API_DEFINITION", - "description": " Update an existing OS policy assignment. This method creates a new revision of the OS policy assignment. This method returns a long running operation (LRO) that contains the rollout details. The rollout can be cancelled by cancelling the LRO. For more information, see [Method: projects.locations.osPolicyAssignments.operations.cancel](https://cloud.google.com/compute/docs/osconfig/rest/v1/projects.locations.osPolicyAssignments.operations/cancel).", - "canonical": true, - "file": "os_config_zonal_service.update_o_s_policy_assignment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateOSPolicyAssignment", - "fullName": "google.cloud.osconfig.v1.OsConfigZonalService.UpdateOSPolicyAssignment", - "async": true, - "parameters": [ - { - "name": "os_policy_assignment", - "type": ".google.cloud.osconfig.v1.OSPolicyAssignment" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OsConfigZonalServiceClient", - "fullName": "google.cloud.osconfig.v1.OsConfigZonalServiceClient" - }, - "method": { - "shortName": "UpdateOSPolicyAssignment", - "fullName": "google.cloud.osconfig.v1.OsConfigZonalService.UpdateOSPolicyAssignment", - "service": { - "shortName": "OsConfigZonalService", - "fullName": "google.cloud.osconfig.v1.OsConfigZonalService" - } - } - } - }, - { - "regionTag": "osconfig_v1_generated_OsConfigZonalService_GetOSPolicyAssignment_async", - "title": "OsConfigServiceClient getOSPolicyAssignment Sample", - "origin": "API_DEFINITION", - "description": " Retrieve an existing OS policy assignment. This method always returns the latest revision. In order to retrieve a previous revision of the assignment, also provide the revision ID in the `name` parameter.", - "canonical": true, - "file": "os_config_zonal_service.get_o_s_policy_assignment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetOSPolicyAssignment", - "fullName": "google.cloud.osconfig.v1.OsConfigZonalService.GetOSPolicyAssignment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.osconfig.v1.OSPolicyAssignment", - "client": { - "shortName": "OsConfigZonalServiceClient", - "fullName": "google.cloud.osconfig.v1.OsConfigZonalServiceClient" - }, - "method": { - "shortName": "GetOSPolicyAssignment", - "fullName": "google.cloud.osconfig.v1.OsConfigZonalService.GetOSPolicyAssignment", - "service": { - "shortName": "OsConfigZonalService", - "fullName": "google.cloud.osconfig.v1.OsConfigZonalService" - } - } - } - }, - { - "regionTag": "osconfig_v1_generated_OsConfigZonalService_ListOSPolicyAssignments_async", - "title": "OsConfigServiceClient listOSPolicyAssignments Sample", - "origin": "API_DEFINITION", - "description": " List the OS policy assignments under the parent resource. For each OS policy assignment, the latest revision is returned.", - "canonical": true, - "file": "os_config_zonal_service.list_o_s_policy_assignments.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListOSPolicyAssignments", - "fullName": "google.cloud.osconfig.v1.OsConfigZonalService.ListOSPolicyAssignments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.osconfig.v1.ListOSPolicyAssignmentsResponse", - "client": { - "shortName": "OsConfigZonalServiceClient", - "fullName": "google.cloud.osconfig.v1.OsConfigZonalServiceClient" - }, - "method": { - "shortName": "ListOSPolicyAssignments", - "fullName": "google.cloud.osconfig.v1.OsConfigZonalService.ListOSPolicyAssignments", - "service": { - "shortName": "OsConfigZonalService", - "fullName": "google.cloud.osconfig.v1.OsConfigZonalService" - } - } - } - }, - { - "regionTag": "osconfig_v1_generated_OsConfigZonalService_ListOSPolicyAssignmentRevisions_async", - "title": "OsConfigServiceClient listOSPolicyAssignmentRevisions Sample", - "origin": "API_DEFINITION", - "description": " List the OS policy assignment revisions for a given OS policy assignment.", - "canonical": true, - "file": "os_config_zonal_service.list_o_s_policy_assignment_revisions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListOSPolicyAssignmentRevisions", - "fullName": "google.cloud.osconfig.v1.OsConfigZonalService.ListOSPolicyAssignmentRevisions", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.osconfig.v1.ListOSPolicyAssignmentRevisionsResponse", - "client": { - "shortName": "OsConfigZonalServiceClient", - "fullName": "google.cloud.osconfig.v1.OsConfigZonalServiceClient" - }, - "method": { - "shortName": "ListOSPolicyAssignmentRevisions", - "fullName": "google.cloud.osconfig.v1.OsConfigZonalService.ListOSPolicyAssignmentRevisions", - "service": { - "shortName": "OsConfigZonalService", - "fullName": "google.cloud.osconfig.v1.OsConfigZonalService" - } - } - } - }, - { - "regionTag": "osconfig_v1_generated_OsConfigZonalService_DeleteOSPolicyAssignment_async", - "title": "OsConfigServiceClient deleteOSPolicyAssignment Sample", - "origin": "API_DEFINITION", - "description": " Delete the OS policy assignment. This method creates a new revision of the OS policy assignment. This method returns a long running operation (LRO) that contains the rollout details. The rollout can be cancelled by cancelling the LRO. If the LRO completes and is not cancelled, all revisions associated with the OS policy assignment are deleted. For more information, see [Method: projects.locations.osPolicyAssignments.operations.cancel](https://cloud.google.com/compute/docs/osconfig/rest/v1/projects.locations.osPolicyAssignments.operations/cancel).", - "canonical": true, - "file": "os_config_zonal_service.delete_o_s_policy_assignment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteOSPolicyAssignment", - "fullName": "google.cloud.osconfig.v1.OsConfigZonalService.DeleteOSPolicyAssignment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OsConfigZonalServiceClient", - "fullName": "google.cloud.osconfig.v1.OsConfigZonalServiceClient" - }, - "method": { - "shortName": "DeleteOSPolicyAssignment", - "fullName": "google.cloud.osconfig.v1.OsConfigZonalService.DeleteOSPolicyAssignment", - "service": { - "shortName": "OsConfigZonalService", - "fullName": "google.cloud.osconfig.v1.OsConfigZonalService" - } - } - } - }, - { - "regionTag": "osconfig_v1_generated_OsConfigZonalService_GetOSPolicyAssignmentReport_async", - "title": "OsConfigServiceClient getOSPolicyAssignmentReport Sample", - "origin": "API_DEFINITION", - "description": " Get the OS policy asssignment report for the specified Compute Engine VM instance.", - "canonical": true, - "file": "os_config_zonal_service.get_o_s_policy_assignment_report.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetOSPolicyAssignmentReport", - "fullName": "google.cloud.osconfig.v1.OsConfigZonalService.GetOSPolicyAssignmentReport", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.osconfig.v1.OSPolicyAssignmentReport", - "client": { - "shortName": "OsConfigZonalServiceClient", - "fullName": "google.cloud.osconfig.v1.OsConfigZonalServiceClient" - }, - "method": { - "shortName": "GetOSPolicyAssignmentReport", - "fullName": "google.cloud.osconfig.v1.OsConfigZonalService.GetOSPolicyAssignmentReport", - "service": { - "shortName": "OsConfigZonalService", - "fullName": "google.cloud.osconfig.v1.OsConfigZonalService" - } - } - } - }, - { - "regionTag": "osconfig_v1_generated_OsConfigZonalService_ListOSPolicyAssignmentReports_async", - "title": "OsConfigServiceClient listOSPolicyAssignmentReports Sample", - "origin": "API_DEFINITION", - "description": " List OS policy asssignment reports for all Compute Engine VM instances in the specified zone.", - "canonical": true, - "file": "os_config_zonal_service.list_o_s_policy_assignment_reports.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListOSPolicyAssignmentReports", - "fullName": "google.cloud.osconfig.v1.OsConfigZonalService.ListOSPolicyAssignmentReports", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.osconfig.v1.ListOSPolicyAssignmentReportsResponse", - "client": { - "shortName": "OsConfigZonalServiceClient", - "fullName": "google.cloud.osconfig.v1.OsConfigZonalServiceClient" - }, - "method": { - "shortName": "ListOSPolicyAssignmentReports", - "fullName": "google.cloud.osconfig.v1.OsConfigZonalService.ListOSPolicyAssignmentReports", - "service": { - "shortName": "OsConfigZonalService", - "fullName": "google.cloud.osconfig.v1.OsConfigZonalService" - } - } - } - }, - { - "regionTag": "osconfig_v1_generated_OsConfigZonalService_GetInventory_async", - "title": "OsConfigServiceClient getInventory Sample", - "origin": "API_DEFINITION", - "description": " Get inventory data for the specified VM instance. If the VM has no associated inventory, the message `NOT_FOUND` is returned.", - "canonical": true, - "file": "os_config_zonal_service.get_inventory.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetInventory", - "fullName": "google.cloud.osconfig.v1.OsConfigZonalService.GetInventory", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.osconfig.v1.InventoryView" - } - ], - "resultType": ".google.cloud.osconfig.v1.Inventory", - "client": { - "shortName": "OsConfigZonalServiceClient", - "fullName": "google.cloud.osconfig.v1.OsConfigZonalServiceClient" - }, - "method": { - "shortName": "GetInventory", - "fullName": "google.cloud.osconfig.v1.OsConfigZonalService.GetInventory", - "service": { - "shortName": "OsConfigZonalService", - "fullName": "google.cloud.osconfig.v1.OsConfigZonalService" - } - } - } - }, - { - "regionTag": "osconfig_v1_generated_OsConfigZonalService_ListInventories_async", - "title": "OsConfigServiceClient listInventories Sample", - "origin": "API_DEFINITION", - "description": " List inventory data for all VM instances in the specified zone.", - "canonical": true, - "file": "os_config_zonal_service.list_inventories.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListInventories", - "fullName": "google.cloud.osconfig.v1.OsConfigZonalService.ListInventories", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.osconfig.v1.InventoryView" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.osconfig.v1.ListInventoriesResponse", - "client": { - "shortName": "OsConfigZonalServiceClient", - "fullName": "google.cloud.osconfig.v1.OsConfigZonalServiceClient" - }, - "method": { - "shortName": "ListInventories", - "fullName": "google.cloud.osconfig.v1.OsConfigZonalService.ListInventories", - "service": { - "shortName": "OsConfigZonalService", - "fullName": "google.cloud.osconfig.v1.OsConfigZonalService" - } - } - } - }, - { - "regionTag": "osconfig_v1_generated_OsConfigZonalService_GetVulnerabilityReport_async", - "title": "OsConfigServiceClient getVulnerabilityReport Sample", - "origin": "API_DEFINITION", - "description": " Gets the vulnerability report for the specified VM instance. Only VMs with inventory data have vulnerability reports associated with them.", - "canonical": true, - "file": "os_config_zonal_service.get_vulnerability_report.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetVulnerabilityReport", - "fullName": "google.cloud.osconfig.v1.OsConfigZonalService.GetVulnerabilityReport", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.osconfig.v1.VulnerabilityReport", - "client": { - "shortName": "OsConfigZonalServiceClient", - "fullName": "google.cloud.osconfig.v1.OsConfigZonalServiceClient" - }, - "method": { - "shortName": "GetVulnerabilityReport", - "fullName": "google.cloud.osconfig.v1.OsConfigZonalService.GetVulnerabilityReport", - "service": { - "shortName": "OsConfigZonalService", - "fullName": "google.cloud.osconfig.v1.OsConfigZonalService" - } - } - } - }, - { - "regionTag": "osconfig_v1_generated_OsConfigZonalService_ListVulnerabilityReports_async", - "title": "OsConfigServiceClient listVulnerabilityReports Sample", - "origin": "API_DEFINITION", - "description": " List vulnerability reports for all VM instances in the specified zone.", - "canonical": true, - "file": "os_config_zonal_service.list_vulnerability_reports.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListVulnerabilityReports", - "fullName": "google.cloud.osconfig.v1.OsConfigZonalService.ListVulnerabilityReports", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.osconfig.v1.ListVulnerabilityReportsResponse", - "client": { - "shortName": "OsConfigZonalServiceClient", - "fullName": "google.cloud.osconfig.v1.OsConfigZonalServiceClient" - }, - "method": { - "shortName": "ListVulnerabilityReports", - "fullName": "google.cloud.osconfig.v1.OsConfigZonalService.ListVulnerabilityReports", - "service": { - "shortName": "OsConfigZonalService", - "fullName": "google.cloud.osconfig.v1.OsConfigZonalService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-osconfig/samples/generated/v1alpha/snippet_metadata_google.cloud.osconfig.v1alpha.json b/packages/google-cloud-osconfig/samples/generated/v1alpha/snippet_metadata_google.cloud.osconfig.v1alpha.json deleted file mode 100644 index 2c99e432e169..000000000000 --- a/packages/google-cloud-osconfig/samples/generated/v1alpha/snippet_metadata_google.cloud.osconfig.v1alpha.json +++ /dev/null @@ -1,659 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-osconfig", - "version": "4.3.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.osconfig.v1alpha", - "version": "v1alpha" - } - ] - }, - "snippets": [ - { - "regionTag": "osconfig_v1alpha_generated_OsConfigZonalService_CreateOSPolicyAssignment_async", - "title": "OsConfigZonalService createOSPolicyAssignment Sample", - "origin": "API_DEFINITION", - "description": " Create an OS policy assignment. This method also creates the first revision of the OS policy assignment. This method returns a long running operation (LRO) that contains the rollout details. The rollout can be cancelled by cancelling the LRO. For more information, see [Method: projects.locations.osPolicyAssignments.operations.cancel](https://cloud.google.com/compute/docs/osconfig/rest/v1alpha/projects.locations.osPolicyAssignments.operations/cancel).", - "canonical": true, - "file": "os_config_zonal_service.create_o_s_policy_assignment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateOSPolicyAssignment", - "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService.CreateOSPolicyAssignment", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "os_policy_assignment", - "type": ".google.cloud.osconfig.v1alpha.OSPolicyAssignment" - }, - { - "name": "os_policy_assignment_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OsConfigZonalServiceClient", - "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalServiceClient" - }, - "method": { - "shortName": "CreateOSPolicyAssignment", - "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService.CreateOSPolicyAssignment", - "service": { - "shortName": "OsConfigZonalService", - "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService" - } - } - } - }, - { - "regionTag": "osconfig_v1alpha_generated_OsConfigZonalService_UpdateOSPolicyAssignment_async", - "title": "OsConfigZonalService updateOSPolicyAssignment Sample", - "origin": "API_DEFINITION", - "description": " Update an existing OS policy assignment. This method creates a new revision of the OS policy assignment. This method returns a long running operation (LRO) that contains the rollout details. The rollout can be cancelled by cancelling the LRO. For more information, see [Method: projects.locations.osPolicyAssignments.operations.cancel](https://cloud.google.com/compute/docs/osconfig/rest/v1alpha/projects.locations.osPolicyAssignments.operations/cancel).", - "canonical": true, - "file": "os_config_zonal_service.update_o_s_policy_assignment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateOSPolicyAssignment", - "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService.UpdateOSPolicyAssignment", - "async": true, - "parameters": [ - { - "name": "os_policy_assignment", - "type": ".google.cloud.osconfig.v1alpha.OSPolicyAssignment" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OsConfigZonalServiceClient", - "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalServiceClient" - }, - "method": { - "shortName": "UpdateOSPolicyAssignment", - "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService.UpdateOSPolicyAssignment", - "service": { - "shortName": "OsConfigZonalService", - "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService" - } - } - } - }, - { - "regionTag": "osconfig_v1alpha_generated_OsConfigZonalService_GetOSPolicyAssignment_async", - "title": "OsConfigZonalService getOSPolicyAssignment Sample", - "origin": "API_DEFINITION", - "description": " Retrieve an existing OS policy assignment. This method always returns the latest revision. In order to retrieve a previous revision of the assignment, also provide the revision ID in the `name` parameter.", - "canonical": true, - "file": "os_config_zonal_service.get_o_s_policy_assignment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetOSPolicyAssignment", - "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService.GetOSPolicyAssignment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.osconfig.v1alpha.OSPolicyAssignment", - "client": { - "shortName": "OsConfigZonalServiceClient", - "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalServiceClient" - }, - "method": { - "shortName": "GetOSPolicyAssignment", - "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService.GetOSPolicyAssignment", - "service": { - "shortName": "OsConfigZonalService", - "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService" - } - } - } - }, - { - "regionTag": "osconfig_v1alpha_generated_OsConfigZonalService_ListOSPolicyAssignments_async", - "title": "OsConfigZonalService listOSPolicyAssignments Sample", - "origin": "API_DEFINITION", - "description": " List the OS policy assignments under the parent resource. For each OS policy assignment, the latest revision is returned.", - "canonical": true, - "file": "os_config_zonal_service.list_o_s_policy_assignments.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListOSPolicyAssignments", - "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService.ListOSPolicyAssignments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentsResponse", - "client": { - "shortName": "OsConfigZonalServiceClient", - "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalServiceClient" - }, - "method": { - "shortName": "ListOSPolicyAssignments", - "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService.ListOSPolicyAssignments", - "service": { - "shortName": "OsConfigZonalService", - "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService" - } - } - } - }, - { - "regionTag": "osconfig_v1alpha_generated_OsConfigZonalService_ListOSPolicyAssignmentRevisions_async", - "title": "OsConfigZonalService listOSPolicyAssignmentRevisions Sample", - "origin": "API_DEFINITION", - "description": " List the OS policy assignment revisions for a given OS policy assignment.", - "canonical": true, - "file": "os_config_zonal_service.list_o_s_policy_assignment_revisions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListOSPolicyAssignmentRevisions", - "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService.ListOSPolicyAssignmentRevisions", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentRevisionsResponse", - "client": { - "shortName": "OsConfigZonalServiceClient", - "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalServiceClient" - }, - "method": { - "shortName": "ListOSPolicyAssignmentRevisions", - "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService.ListOSPolicyAssignmentRevisions", - "service": { - "shortName": "OsConfigZonalService", - "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService" - } - } - } - }, - { - "regionTag": "osconfig_v1alpha_generated_OsConfigZonalService_DeleteOSPolicyAssignment_async", - "title": "OsConfigZonalService deleteOSPolicyAssignment Sample", - "origin": "API_DEFINITION", - "description": " Delete the OS policy assignment. This method creates a new revision of the OS policy assignment. This method returns a long running operation (LRO) that contains the rollout details. The rollout can be cancelled by cancelling the LRO. If the LRO completes and is not cancelled, all revisions associated with the OS policy assignment are deleted. For more information, see [Method: projects.locations.osPolicyAssignments.operations.cancel](https://cloud.google.com/compute/docs/osconfig/rest/v1alpha/projects.locations.osPolicyAssignments.operations/cancel).", - "canonical": true, - "file": "os_config_zonal_service.delete_o_s_policy_assignment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteOSPolicyAssignment", - "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService.DeleteOSPolicyAssignment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OsConfigZonalServiceClient", - "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalServiceClient" - }, - "method": { - "shortName": "DeleteOSPolicyAssignment", - "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService.DeleteOSPolicyAssignment", - "service": { - "shortName": "OsConfigZonalService", - "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService" - } - } - } - }, - { - "regionTag": "osconfig_v1alpha_generated_OsConfigZonalService_GetInstanceOSPoliciesCompliance_async", - "title": "OsConfigZonalService getInstanceOSPoliciesCompliance Sample", - "origin": "API_DEFINITION", - "description": " Get OS policies compliance data for the specified Compute Engine VM instance.", - "canonical": true, - "file": "os_config_zonal_service.get_instance_o_s_policies_compliance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetInstanceOSPoliciesCompliance", - "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService.GetInstanceOSPoliciesCompliance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance", - "client": { - "shortName": "OsConfigZonalServiceClient", - "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalServiceClient" - }, - "method": { - "shortName": "GetInstanceOSPoliciesCompliance", - "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService.GetInstanceOSPoliciesCompliance", - "service": { - "shortName": "OsConfigZonalService", - "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService" - } - } - } - }, - { - "regionTag": "osconfig_v1alpha_generated_OsConfigZonalService_ListInstanceOSPoliciesCompliances_async", - "title": "OsConfigZonalService listInstanceOSPoliciesCompliances Sample", - "origin": "API_DEFINITION", - "description": " List OS policies compliance data for all Compute Engine VM instances in the specified zone.", - "canonical": true, - "file": "os_config_zonal_service.list_instance_o_s_policies_compliances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListInstanceOSPoliciesCompliances", - "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService.ListInstanceOSPoliciesCompliances", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.osconfig.v1alpha.ListInstanceOSPoliciesCompliancesResponse", - "client": { - "shortName": "OsConfigZonalServiceClient", - "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalServiceClient" - }, - "method": { - "shortName": "ListInstanceOSPoliciesCompliances", - "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService.ListInstanceOSPoliciesCompliances", - "service": { - "shortName": "OsConfigZonalService", - "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService" - } - } - } - }, - { - "regionTag": "osconfig_v1alpha_generated_OsConfigZonalService_GetOSPolicyAssignmentReport_async", - "title": "OsConfigZonalService getOSPolicyAssignmentReport Sample", - "origin": "API_DEFINITION", - "description": " Get the OS policy asssignment report for the specified Compute Engine VM instance.", - "canonical": true, - "file": "os_config_zonal_service.get_o_s_policy_assignment_report.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetOSPolicyAssignmentReport", - "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService.GetOSPolicyAssignmentReport", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport", - "client": { - "shortName": "OsConfigZonalServiceClient", - "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalServiceClient" - }, - "method": { - "shortName": "GetOSPolicyAssignmentReport", - "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService.GetOSPolicyAssignmentReport", - "service": { - "shortName": "OsConfigZonalService", - "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService" - } - } - } - }, - { - "regionTag": "osconfig_v1alpha_generated_OsConfigZonalService_ListOSPolicyAssignmentReports_async", - "title": "OsConfigZonalService listOSPolicyAssignmentReports Sample", - "origin": "API_DEFINITION", - "description": " List OS policy asssignment reports for all Compute Engine VM instances in the specified zone.", - "canonical": true, - "file": "os_config_zonal_service.list_o_s_policy_assignment_reports.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListOSPolicyAssignmentReports", - "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService.ListOSPolicyAssignmentReports", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsResponse", - "client": { - "shortName": "OsConfigZonalServiceClient", - "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalServiceClient" - }, - "method": { - "shortName": "ListOSPolicyAssignmentReports", - "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService.ListOSPolicyAssignmentReports", - "service": { - "shortName": "OsConfigZonalService", - "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService" - } - } - } - }, - { - "regionTag": "osconfig_v1alpha_generated_OsConfigZonalService_GetInventory_async", - "title": "OsConfigZonalService getInventory Sample", - "origin": "API_DEFINITION", - "description": " Get inventory data for the specified VM instance. If the VM has no associated inventory, the message `NOT_FOUND` is returned.", - "canonical": true, - "file": "os_config_zonal_service.get_inventory.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetInventory", - "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService.GetInventory", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.osconfig.v1alpha.InventoryView" - } - ], - "resultType": ".google.cloud.osconfig.v1alpha.Inventory", - "client": { - "shortName": "OsConfigZonalServiceClient", - "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalServiceClient" - }, - "method": { - "shortName": "GetInventory", - "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService.GetInventory", - "service": { - "shortName": "OsConfigZonalService", - "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService" - } - } - } - }, - { - "regionTag": "osconfig_v1alpha_generated_OsConfigZonalService_ListInventories_async", - "title": "OsConfigZonalService listInventories Sample", - "origin": "API_DEFINITION", - "description": " List inventory data for all VM instances in the specified zone.", - "canonical": true, - "file": "os_config_zonal_service.list_inventories.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListInventories", - "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService.ListInventories", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.osconfig.v1alpha.InventoryView" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.osconfig.v1alpha.ListInventoriesResponse", - "client": { - "shortName": "OsConfigZonalServiceClient", - "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalServiceClient" - }, - "method": { - "shortName": "ListInventories", - "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService.ListInventories", - "service": { - "shortName": "OsConfigZonalService", - "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService" - } - } - } - }, - { - "regionTag": "osconfig_v1alpha_generated_OsConfigZonalService_GetVulnerabilityReport_async", - "title": "OsConfigZonalService getVulnerabilityReport Sample", - "origin": "API_DEFINITION", - "description": " Gets the vulnerability report for the specified VM instance. Only VMs with inventory data have vulnerability reports associated with them.", - "canonical": true, - "file": "os_config_zonal_service.get_vulnerability_report.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetVulnerabilityReport", - "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService.GetVulnerabilityReport", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.osconfig.v1alpha.VulnerabilityReport", - "client": { - "shortName": "OsConfigZonalServiceClient", - "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalServiceClient" - }, - "method": { - "shortName": "GetVulnerabilityReport", - "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService.GetVulnerabilityReport", - "service": { - "shortName": "OsConfigZonalService", - "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService" - } - } - } - }, - { - "regionTag": "osconfig_v1alpha_generated_OsConfigZonalService_ListVulnerabilityReports_async", - "title": "OsConfigZonalService listVulnerabilityReports Sample", - "origin": "API_DEFINITION", - "description": " List vulnerability reports for all VM instances in the specified zone.", - "canonical": true, - "file": "os_config_zonal_service.list_vulnerability_reports.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListVulnerabilityReports", - "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService.ListVulnerabilityReports", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.osconfig.v1alpha.ListVulnerabilityReportsResponse", - "client": { - "shortName": "OsConfigZonalServiceClient", - "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalServiceClient" - }, - "method": { - "shortName": "ListVulnerabilityReports", - "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService.ListVulnerabilityReports", - "service": { - "shortName": "OsConfigZonalService", - "fullName": "google.cloud.osconfig.v1alpha.OsConfigZonalService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-osconfig/samples/generated/v1beta/snippet_metadata_google.cloud.osconfig.v1beta.json b/packages/google-cloud-osconfig/samples/generated/v1beta/snippet_metadata_google.cloud.osconfig.v1beta.json deleted file mode 100644 index 7a8f63b0d93f..000000000000 --- a/packages/google-cloud-osconfig/samples/generated/v1beta/snippet_metadata_google.cloud.osconfig.v1beta.json +++ /dev/null @@ -1,839 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-osconfig", - "version": "4.3.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.osconfig.v1beta", - "version": "v1beta" - } - ] - }, - "snippets": [ - { - "regionTag": "osconfig_v1beta_generated_OsConfigService_ExecutePatchJob_async", - "title": "OsConfigService executePatchJob Sample", - "origin": "API_DEFINITION", - "description": " Patch VM instances by creating and running a patch job.", - "canonical": true, - "file": "os_config_service.execute_patch_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExecutePatchJob", - "fullName": "google.cloud.osconfig.v1beta.OsConfigService.ExecutePatchJob", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "description", - "type": "TYPE_STRING" - }, - { - "name": "instance_filter", - "type": ".google.cloud.osconfig.v1beta.PatchInstanceFilter" - }, - { - "name": "patch_config", - "type": ".google.cloud.osconfig.v1beta.PatchConfig" - }, - { - "name": "duration", - "type": ".google.protobuf.Duration" - }, - { - "name": "dry_run", - "type": "TYPE_BOOL" - }, - { - "name": "display_name", - "type": "TYPE_STRING" - }, - { - "name": "rollout", - "type": ".google.cloud.osconfig.v1beta.PatchRollout" - } - ], - "resultType": ".google.cloud.osconfig.v1beta.PatchJob", - "client": { - "shortName": "OsConfigServiceClient", - "fullName": "google.cloud.osconfig.v1beta.OsConfigServiceClient" - }, - "method": { - "shortName": "ExecutePatchJob", - "fullName": "google.cloud.osconfig.v1beta.OsConfigService.ExecutePatchJob", - "service": { - "shortName": "OsConfigService", - "fullName": "google.cloud.osconfig.v1beta.OsConfigService" - } - } - } - }, - { - "regionTag": "osconfig_v1beta_generated_OsConfigService_GetPatchJob_async", - "title": "OsConfigService getPatchJob Sample", - "origin": "API_DEFINITION", - "description": " Get the patch job. This can be used to track the progress of an ongoing patch job or review the details of completed jobs.", - "canonical": true, - "file": "os_config_service.get_patch_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPatchJob", - "fullName": "google.cloud.osconfig.v1beta.OsConfigService.GetPatchJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.osconfig.v1beta.PatchJob", - "client": { - "shortName": "OsConfigServiceClient", - "fullName": "google.cloud.osconfig.v1beta.OsConfigServiceClient" - }, - "method": { - "shortName": "GetPatchJob", - "fullName": "google.cloud.osconfig.v1beta.OsConfigService.GetPatchJob", - "service": { - "shortName": "OsConfigService", - "fullName": "google.cloud.osconfig.v1beta.OsConfigService" - } - } - } - }, - { - "regionTag": "osconfig_v1beta_generated_OsConfigService_CancelPatchJob_async", - "title": "OsConfigService cancelPatchJob Sample", - "origin": "API_DEFINITION", - "description": " Cancel a patch job. The patch job must be active. Canceled patch jobs cannot be restarted.", - "canonical": true, - "file": "os_config_service.cancel_patch_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CancelPatchJob", - "fullName": "google.cloud.osconfig.v1beta.OsConfigService.CancelPatchJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.osconfig.v1beta.PatchJob", - "client": { - "shortName": "OsConfigServiceClient", - "fullName": "google.cloud.osconfig.v1beta.OsConfigServiceClient" - }, - "method": { - "shortName": "CancelPatchJob", - "fullName": "google.cloud.osconfig.v1beta.OsConfigService.CancelPatchJob", - "service": { - "shortName": "OsConfigService", - "fullName": "google.cloud.osconfig.v1beta.OsConfigService" - } - } - } - }, - { - "regionTag": "osconfig_v1beta_generated_OsConfigService_ListPatchJobs_async", - "title": "OsConfigService listPatchJobs Sample", - "origin": "API_DEFINITION", - "description": " Get a list of patch jobs.", - "canonical": true, - "file": "os_config_service.list_patch_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPatchJobs", - "fullName": "google.cloud.osconfig.v1beta.OsConfigService.ListPatchJobs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.osconfig.v1beta.ListPatchJobsResponse", - "client": { - "shortName": "OsConfigServiceClient", - "fullName": "google.cloud.osconfig.v1beta.OsConfigServiceClient" - }, - "method": { - "shortName": "ListPatchJobs", - "fullName": "google.cloud.osconfig.v1beta.OsConfigService.ListPatchJobs", - "service": { - "shortName": "OsConfigService", - "fullName": "google.cloud.osconfig.v1beta.OsConfigService" - } - } - } - }, - { - "regionTag": "osconfig_v1beta_generated_OsConfigService_ListPatchJobInstanceDetails_async", - "title": "OsConfigService listPatchJobInstanceDetails Sample", - "origin": "API_DEFINITION", - "description": " Get a list of instance details for a given patch job.", - "canonical": true, - "file": "os_config_service.list_patch_job_instance_details.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPatchJobInstanceDetails", - "fullName": "google.cloud.osconfig.v1beta.OsConfigService.ListPatchJobInstanceDetails", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.osconfig.v1beta.ListPatchJobInstanceDetailsResponse", - "client": { - "shortName": "OsConfigServiceClient", - "fullName": "google.cloud.osconfig.v1beta.OsConfigServiceClient" - }, - "method": { - "shortName": "ListPatchJobInstanceDetails", - "fullName": "google.cloud.osconfig.v1beta.OsConfigService.ListPatchJobInstanceDetails", - "service": { - "shortName": "OsConfigService", - "fullName": "google.cloud.osconfig.v1beta.OsConfigService" - } - } - } - }, - { - "regionTag": "osconfig_v1beta_generated_OsConfigService_CreatePatchDeployment_async", - "title": "OsConfigService createPatchDeployment Sample", - "origin": "API_DEFINITION", - "description": " Create an OS Config patch deployment.", - "canonical": true, - "file": "os_config_service.create_patch_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreatePatchDeployment", - "fullName": "google.cloud.osconfig.v1beta.OsConfigService.CreatePatchDeployment", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "patch_deployment_id", - "type": "TYPE_STRING" - }, - { - "name": "patch_deployment", - "type": ".google.cloud.osconfig.v1beta.PatchDeployment" - } - ], - "resultType": ".google.cloud.osconfig.v1beta.PatchDeployment", - "client": { - "shortName": "OsConfigServiceClient", - "fullName": "google.cloud.osconfig.v1beta.OsConfigServiceClient" - }, - "method": { - "shortName": "CreatePatchDeployment", - "fullName": "google.cloud.osconfig.v1beta.OsConfigService.CreatePatchDeployment", - "service": { - "shortName": "OsConfigService", - "fullName": "google.cloud.osconfig.v1beta.OsConfigService" - } - } - } - }, - { - "regionTag": "osconfig_v1beta_generated_OsConfigService_GetPatchDeployment_async", - "title": "OsConfigService getPatchDeployment Sample", - "origin": "API_DEFINITION", - "description": " Get an OS Config patch deployment.", - "canonical": true, - "file": "os_config_service.get_patch_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPatchDeployment", - "fullName": "google.cloud.osconfig.v1beta.OsConfigService.GetPatchDeployment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.osconfig.v1beta.PatchDeployment", - "client": { - "shortName": "OsConfigServiceClient", - "fullName": "google.cloud.osconfig.v1beta.OsConfigServiceClient" - }, - "method": { - "shortName": "GetPatchDeployment", - "fullName": "google.cloud.osconfig.v1beta.OsConfigService.GetPatchDeployment", - "service": { - "shortName": "OsConfigService", - "fullName": "google.cloud.osconfig.v1beta.OsConfigService" - } - } - } - }, - { - "regionTag": "osconfig_v1beta_generated_OsConfigService_ListPatchDeployments_async", - "title": "OsConfigService listPatchDeployments Sample", - "origin": "API_DEFINITION", - "description": " Get a page of OS Config patch deployments.", - "canonical": true, - "file": "os_config_service.list_patch_deployments.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPatchDeployments", - "fullName": "google.cloud.osconfig.v1beta.OsConfigService.ListPatchDeployments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.osconfig.v1beta.ListPatchDeploymentsResponse", - "client": { - "shortName": "OsConfigServiceClient", - "fullName": "google.cloud.osconfig.v1beta.OsConfigServiceClient" - }, - "method": { - "shortName": "ListPatchDeployments", - "fullName": "google.cloud.osconfig.v1beta.OsConfigService.ListPatchDeployments", - "service": { - "shortName": "OsConfigService", - "fullName": "google.cloud.osconfig.v1beta.OsConfigService" - } - } - } - }, - { - "regionTag": "osconfig_v1beta_generated_OsConfigService_DeletePatchDeployment_async", - "title": "OsConfigService deletePatchDeployment Sample", - "origin": "API_DEFINITION", - "description": " Delete an OS Config patch deployment.", - "canonical": true, - "file": "os_config_service.delete_patch_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePatchDeployment", - "fullName": "google.cloud.osconfig.v1beta.OsConfigService.DeletePatchDeployment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "OsConfigServiceClient", - "fullName": "google.cloud.osconfig.v1beta.OsConfigServiceClient" - }, - "method": { - "shortName": "DeletePatchDeployment", - "fullName": "google.cloud.osconfig.v1beta.OsConfigService.DeletePatchDeployment", - "service": { - "shortName": "OsConfigService", - "fullName": "google.cloud.osconfig.v1beta.OsConfigService" - } - } - } - }, - { - "regionTag": "osconfig_v1beta_generated_OsConfigService_UpdatePatchDeployment_async", - "title": "OsConfigService updatePatchDeployment Sample", - "origin": "API_DEFINITION", - "description": " Update an OS Config patch deployment.", - "canonical": true, - "file": "os_config_service.update_patch_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdatePatchDeployment", - "fullName": "google.cloud.osconfig.v1beta.OsConfigService.UpdatePatchDeployment", - "async": true, - "parameters": [ - { - "name": "patch_deployment", - "type": ".google.cloud.osconfig.v1beta.PatchDeployment" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.osconfig.v1beta.PatchDeployment", - "client": { - "shortName": "OsConfigServiceClient", - "fullName": "google.cloud.osconfig.v1beta.OsConfigServiceClient" - }, - "method": { - "shortName": "UpdatePatchDeployment", - "fullName": "google.cloud.osconfig.v1beta.OsConfigService.UpdatePatchDeployment", - "service": { - "shortName": "OsConfigService", - "fullName": "google.cloud.osconfig.v1beta.OsConfigService" - } - } - } - }, - { - "regionTag": "osconfig_v1beta_generated_OsConfigService_PausePatchDeployment_async", - "title": "OsConfigService pausePatchDeployment Sample", - "origin": "API_DEFINITION", - "description": " Change state of patch deployment to \"PAUSED\". Patch deployment in paused state doesn't generate patch jobs.", - "canonical": true, - "file": "os_config_service.pause_patch_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PausePatchDeployment", - "fullName": "google.cloud.osconfig.v1beta.OsConfigService.PausePatchDeployment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.osconfig.v1beta.PatchDeployment", - "client": { - "shortName": "OsConfigServiceClient", - "fullName": "google.cloud.osconfig.v1beta.OsConfigServiceClient" - }, - "method": { - "shortName": "PausePatchDeployment", - "fullName": "google.cloud.osconfig.v1beta.OsConfigService.PausePatchDeployment", - "service": { - "shortName": "OsConfigService", - "fullName": "google.cloud.osconfig.v1beta.OsConfigService" - } - } - } - }, - { - "regionTag": "osconfig_v1beta_generated_OsConfigService_ResumePatchDeployment_async", - "title": "OsConfigService resumePatchDeployment Sample", - "origin": "API_DEFINITION", - "description": " Change state of patch deployment back to \"ACTIVE\". Patch deployment in active state continues to generate patch jobs.", - "canonical": true, - "file": "os_config_service.resume_patch_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResumePatchDeployment", - "fullName": "google.cloud.osconfig.v1beta.OsConfigService.ResumePatchDeployment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.osconfig.v1beta.PatchDeployment", - "client": { - "shortName": "OsConfigServiceClient", - "fullName": "google.cloud.osconfig.v1beta.OsConfigServiceClient" - }, - "method": { - "shortName": "ResumePatchDeployment", - "fullName": "google.cloud.osconfig.v1beta.OsConfigService.ResumePatchDeployment", - "service": { - "shortName": "OsConfigService", - "fullName": "google.cloud.osconfig.v1beta.OsConfigService" - } - } - } - }, - { - "regionTag": "osconfig_v1beta_generated_OsConfigService_CreateGuestPolicy_async", - "title": "OsConfigService createGuestPolicy Sample", - "origin": "API_DEFINITION", - "description": " Create an OS Config guest policy.", - "canonical": true, - "file": "os_config_service.create_guest_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateGuestPolicy", - "fullName": "google.cloud.osconfig.v1beta.OsConfigService.CreateGuestPolicy", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "guest_policy_id", - "type": "TYPE_STRING" - }, - { - "name": "guest_policy", - "type": ".google.cloud.osconfig.v1beta.GuestPolicy" - } - ], - "resultType": ".google.cloud.osconfig.v1beta.GuestPolicy", - "client": { - "shortName": "OsConfigServiceClient", - "fullName": "google.cloud.osconfig.v1beta.OsConfigServiceClient" - }, - "method": { - "shortName": "CreateGuestPolicy", - "fullName": "google.cloud.osconfig.v1beta.OsConfigService.CreateGuestPolicy", - "service": { - "shortName": "OsConfigService", - "fullName": "google.cloud.osconfig.v1beta.OsConfigService" - } - } - } - }, - { - "regionTag": "osconfig_v1beta_generated_OsConfigService_GetGuestPolicy_async", - "title": "OsConfigService getGuestPolicy Sample", - "origin": "API_DEFINITION", - "description": " Get an OS Config guest policy.", - "canonical": true, - "file": "os_config_service.get_guest_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetGuestPolicy", - "fullName": "google.cloud.osconfig.v1beta.OsConfigService.GetGuestPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.osconfig.v1beta.GuestPolicy", - "client": { - "shortName": "OsConfigServiceClient", - "fullName": "google.cloud.osconfig.v1beta.OsConfigServiceClient" - }, - "method": { - "shortName": "GetGuestPolicy", - "fullName": "google.cloud.osconfig.v1beta.OsConfigService.GetGuestPolicy", - "service": { - "shortName": "OsConfigService", - "fullName": "google.cloud.osconfig.v1beta.OsConfigService" - } - } - } - }, - { - "regionTag": "osconfig_v1beta_generated_OsConfigService_ListGuestPolicies_async", - "title": "OsConfigService listGuestPolicies Sample", - "origin": "API_DEFINITION", - "description": " Get a page of OS Config guest policies.", - "canonical": true, - "file": "os_config_service.list_guest_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListGuestPolicies", - "fullName": "google.cloud.osconfig.v1beta.OsConfigService.ListGuestPolicies", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.osconfig.v1beta.ListGuestPoliciesResponse", - "client": { - "shortName": "OsConfigServiceClient", - "fullName": "google.cloud.osconfig.v1beta.OsConfigServiceClient" - }, - "method": { - "shortName": "ListGuestPolicies", - "fullName": "google.cloud.osconfig.v1beta.OsConfigService.ListGuestPolicies", - "service": { - "shortName": "OsConfigService", - "fullName": "google.cloud.osconfig.v1beta.OsConfigService" - } - } - } - }, - { - "regionTag": "osconfig_v1beta_generated_OsConfigService_UpdateGuestPolicy_async", - "title": "OsConfigService updateGuestPolicy Sample", - "origin": "API_DEFINITION", - "description": " Update an OS Config guest policy.", - "canonical": true, - "file": "os_config_service.update_guest_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateGuestPolicy", - "fullName": "google.cloud.osconfig.v1beta.OsConfigService.UpdateGuestPolicy", - "async": true, - "parameters": [ - { - "name": "guest_policy", - "type": ".google.cloud.osconfig.v1beta.GuestPolicy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.osconfig.v1beta.GuestPolicy", - "client": { - "shortName": "OsConfigServiceClient", - "fullName": "google.cloud.osconfig.v1beta.OsConfigServiceClient" - }, - "method": { - "shortName": "UpdateGuestPolicy", - "fullName": "google.cloud.osconfig.v1beta.OsConfigService.UpdateGuestPolicy", - "service": { - "shortName": "OsConfigService", - "fullName": "google.cloud.osconfig.v1beta.OsConfigService" - } - } - } - }, - { - "regionTag": "osconfig_v1beta_generated_OsConfigService_DeleteGuestPolicy_async", - "title": "OsConfigService deleteGuestPolicy Sample", - "origin": "API_DEFINITION", - "description": " Delete an OS Config guest policy.", - "canonical": true, - "file": "os_config_service.delete_guest_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteGuestPolicy", - "fullName": "google.cloud.osconfig.v1beta.OsConfigService.DeleteGuestPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "OsConfigServiceClient", - "fullName": "google.cloud.osconfig.v1beta.OsConfigServiceClient" - }, - "method": { - "shortName": "DeleteGuestPolicy", - "fullName": "google.cloud.osconfig.v1beta.OsConfigService.DeleteGuestPolicy", - "service": { - "shortName": "OsConfigService", - "fullName": "google.cloud.osconfig.v1beta.OsConfigService" - } - } - } - }, - { - "regionTag": "osconfig_v1beta_generated_OsConfigService_LookupEffectiveGuestPolicy_async", - "title": "OsConfigService lookupEffectiveGuestPolicy Sample", - "origin": "API_DEFINITION", - "description": " Lookup the effective guest policy that applies to a VM instance. This lookup merges all policies that are assigned to the instance ancestry.", - "canonical": true, - "file": "os_config_service.lookup_effective_guest_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "LookupEffectiveGuestPolicy", - "fullName": "google.cloud.osconfig.v1beta.OsConfigService.LookupEffectiveGuestPolicy", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "os_short_name", - "type": "TYPE_STRING" - }, - { - "name": "os_version", - "type": "TYPE_STRING" - }, - { - "name": "os_architecture", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.osconfig.v1beta.EffectiveGuestPolicy", - "client": { - "shortName": "OsConfigServiceClient", - "fullName": "google.cloud.osconfig.v1beta.OsConfigServiceClient" - }, - "method": { - "shortName": "LookupEffectiveGuestPolicy", - "fullName": "google.cloud.osconfig.v1beta.OsConfigService.LookupEffectiveGuestPolicy", - "service": { - "shortName": "OsConfigService", - "fullName": "google.cloud.osconfig.v1beta.OsConfigService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-oslogin/samples/generated/v1/snippet_metadata_google.cloud.oslogin.v1.json b/packages/google-cloud-oslogin/samples/generated/v1/snippet_metadata_google.cloud.oslogin.v1.json deleted file mode 100644 index 38dcd4b466e5..000000000000 --- a/packages/google-cloud-oslogin/samples/generated/v1/snippet_metadata_google.cloud.oslogin.v1.json +++ /dev/null @@ -1,327 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-oslogin", - "version": "6.2.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.oslogin.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "oslogin_v1_generated_OsLoginService_CreateSshPublicKey_async", - "title": "OsLoginService createSshPublicKey Sample", - "origin": "API_DEFINITION", - "description": " Create an SSH public key", - "canonical": true, - "file": "os_login_service.create_ssh_public_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSshPublicKey", - "fullName": "google.cloud.oslogin.v1.OsLoginService.CreateSshPublicKey", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "ssh_public_key", - "type": ".google.cloud.oslogin.common.SshPublicKey" - } - ], - "resultType": ".google.cloud.oslogin.common.SshPublicKey", - "client": { - "shortName": "OsLoginServiceClient", - "fullName": "google.cloud.oslogin.v1.OsLoginServiceClient" - }, - "method": { - "shortName": "CreateSshPublicKey", - "fullName": "google.cloud.oslogin.v1.OsLoginService.CreateSshPublicKey", - "service": { - "shortName": "OsLoginService", - "fullName": "google.cloud.oslogin.v1.OsLoginService" - } - } - } - }, - { - "regionTag": "oslogin_v1_generated_OsLoginService_DeletePosixAccount_async", - "title": "OsLoginService deletePosixAccount Sample", - "origin": "API_DEFINITION", - "description": " Deletes a POSIX account.", - "canonical": true, - "file": "os_login_service.delete_posix_account.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePosixAccount", - "fullName": "google.cloud.oslogin.v1.OsLoginService.DeletePosixAccount", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "OsLoginServiceClient", - "fullName": "google.cloud.oslogin.v1.OsLoginServiceClient" - }, - "method": { - "shortName": "DeletePosixAccount", - "fullName": "google.cloud.oslogin.v1.OsLoginService.DeletePosixAccount", - "service": { - "shortName": "OsLoginService", - "fullName": "google.cloud.oslogin.v1.OsLoginService" - } - } - } - }, - { - "regionTag": "oslogin_v1_generated_OsLoginService_DeleteSshPublicKey_async", - "title": "OsLoginService deleteSshPublicKey Sample", - "origin": "API_DEFINITION", - "description": " Deletes an SSH public key.", - "canonical": true, - "file": "os_login_service.delete_ssh_public_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSshPublicKey", - "fullName": "google.cloud.oslogin.v1.OsLoginService.DeleteSshPublicKey", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "OsLoginServiceClient", - "fullName": "google.cloud.oslogin.v1.OsLoginServiceClient" - }, - "method": { - "shortName": "DeleteSshPublicKey", - "fullName": "google.cloud.oslogin.v1.OsLoginService.DeleteSshPublicKey", - "service": { - "shortName": "OsLoginService", - "fullName": "google.cloud.oslogin.v1.OsLoginService" - } - } - } - }, - { - "regionTag": "oslogin_v1_generated_OsLoginService_GetLoginProfile_async", - "title": "OsLoginService getLoginProfile Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the profile information used for logging in to a virtual machine on Google Compute Engine.", - "canonical": true, - "file": "os_login_service.get_login_profile.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetLoginProfile", - "fullName": "google.cloud.oslogin.v1.OsLoginService.GetLoginProfile", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "system_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.oslogin.v1.LoginProfile", - "client": { - "shortName": "OsLoginServiceClient", - "fullName": "google.cloud.oslogin.v1.OsLoginServiceClient" - }, - "method": { - "shortName": "GetLoginProfile", - "fullName": "google.cloud.oslogin.v1.OsLoginService.GetLoginProfile", - "service": { - "shortName": "OsLoginService", - "fullName": "google.cloud.oslogin.v1.OsLoginService" - } - } - } - }, - { - "regionTag": "oslogin_v1_generated_OsLoginService_GetSshPublicKey_async", - "title": "OsLoginService getSshPublicKey Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an SSH public key.", - "canonical": true, - "file": "os_login_service.get_ssh_public_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSshPublicKey", - "fullName": "google.cloud.oslogin.v1.OsLoginService.GetSshPublicKey", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.oslogin.common.SshPublicKey", - "client": { - "shortName": "OsLoginServiceClient", - "fullName": "google.cloud.oslogin.v1.OsLoginServiceClient" - }, - "method": { - "shortName": "GetSshPublicKey", - "fullName": "google.cloud.oslogin.v1.OsLoginService.GetSshPublicKey", - "service": { - "shortName": "OsLoginService", - "fullName": "google.cloud.oslogin.v1.OsLoginService" - } - } - } - }, - { - "regionTag": "oslogin_v1_generated_OsLoginService_ImportSshPublicKey_async", - "title": "OsLoginService importSshPublicKey Sample", - "origin": "API_DEFINITION", - "description": " Adds an SSH public key and returns the profile information. Default POSIX account information is set when no username and UID exist as part of the login profile.", - "canonical": true, - "file": "os_login_service.import_ssh_public_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportSshPublicKey", - "fullName": "google.cloud.oslogin.v1.OsLoginService.ImportSshPublicKey", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "ssh_public_key", - "type": ".google.cloud.oslogin.common.SshPublicKey" - }, - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "regions", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.cloud.oslogin.v1.ImportSshPublicKeyResponse", - "client": { - "shortName": "OsLoginServiceClient", - "fullName": "google.cloud.oslogin.v1.OsLoginServiceClient" - }, - "method": { - "shortName": "ImportSshPublicKey", - "fullName": "google.cloud.oslogin.v1.OsLoginService.ImportSshPublicKey", - "service": { - "shortName": "OsLoginService", - "fullName": "google.cloud.oslogin.v1.OsLoginService" - } - } - } - }, - { - "regionTag": "oslogin_v1_generated_OsLoginService_UpdateSshPublicKey_async", - "title": "OsLoginService updateSshPublicKey Sample", - "origin": "API_DEFINITION", - "description": " Updates an SSH public key and returns the profile information. This method supports patch semantics.", - "canonical": true, - "file": "os_login_service.update_ssh_public_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSshPublicKey", - "fullName": "google.cloud.oslogin.v1.OsLoginService.UpdateSshPublicKey", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "ssh_public_key", - "type": ".google.cloud.oslogin.common.SshPublicKey" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.oslogin.common.SshPublicKey", - "client": { - "shortName": "OsLoginServiceClient", - "fullName": "google.cloud.oslogin.v1.OsLoginServiceClient" - }, - "method": { - "shortName": "UpdateSshPublicKey", - "fullName": "google.cloud.oslogin.v1.OsLoginService.UpdateSshPublicKey", - "service": { - "shortName": "OsLoginService", - "fullName": "google.cloud.oslogin.v1.OsLoginService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-oslogin/samples/generated/v1beta/snippet_metadata_google.cloud.oslogin.v1beta.json b/packages/google-cloud-oslogin/samples/generated/v1beta/snippet_metadata_google.cloud.oslogin.v1beta.json deleted file mode 100644 index b8069a1c6873..000000000000 --- a/packages/google-cloud-oslogin/samples/generated/v1beta/snippet_metadata_google.cloud.oslogin.v1beta.json +++ /dev/null @@ -1,379 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-oslogin", - "version": "6.2.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.oslogin.v1beta", - "version": "v1beta" - } - ] - }, - "snippets": [ - { - "regionTag": "oslogin_v1beta_generated_OsLoginService_CreateSshPublicKey_async", - "title": "OsLoginService createSshPublicKey Sample", - "origin": "API_DEFINITION", - "description": " Create an SSH public key", - "canonical": true, - "file": "os_login_service.create_ssh_public_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSshPublicKey", - "fullName": "google.cloud.oslogin.v1beta.OsLoginService.CreateSshPublicKey", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "ssh_public_key", - "type": ".google.cloud.oslogin.common.SshPublicKey" - } - ], - "resultType": ".google.cloud.oslogin.common.SshPublicKey", - "client": { - "shortName": "OsLoginServiceClient", - "fullName": "google.cloud.oslogin.v1beta.OsLoginServiceClient" - }, - "method": { - "shortName": "CreateSshPublicKey", - "fullName": "google.cloud.oslogin.v1beta.OsLoginService.CreateSshPublicKey", - "service": { - "shortName": "OsLoginService", - "fullName": "google.cloud.oslogin.v1beta.OsLoginService" - } - } - } - }, - { - "regionTag": "oslogin_v1beta_generated_OsLoginService_DeletePosixAccount_async", - "title": "OsLoginService deletePosixAccount Sample", - "origin": "API_DEFINITION", - "description": " Deletes a POSIX account.", - "canonical": true, - "file": "os_login_service.delete_posix_account.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePosixAccount", - "fullName": "google.cloud.oslogin.v1beta.OsLoginService.DeletePosixAccount", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "OsLoginServiceClient", - "fullName": "google.cloud.oslogin.v1beta.OsLoginServiceClient" - }, - "method": { - "shortName": "DeletePosixAccount", - "fullName": "google.cloud.oslogin.v1beta.OsLoginService.DeletePosixAccount", - "service": { - "shortName": "OsLoginService", - "fullName": "google.cloud.oslogin.v1beta.OsLoginService" - } - } - } - }, - { - "regionTag": "oslogin_v1beta_generated_OsLoginService_DeleteSshPublicKey_async", - "title": "OsLoginService deleteSshPublicKey Sample", - "origin": "API_DEFINITION", - "description": " Deletes an SSH public key.", - "canonical": true, - "file": "os_login_service.delete_ssh_public_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSshPublicKey", - "fullName": "google.cloud.oslogin.v1beta.OsLoginService.DeleteSshPublicKey", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "OsLoginServiceClient", - "fullName": "google.cloud.oslogin.v1beta.OsLoginServiceClient" - }, - "method": { - "shortName": "DeleteSshPublicKey", - "fullName": "google.cloud.oslogin.v1beta.OsLoginService.DeleteSshPublicKey", - "service": { - "shortName": "OsLoginService", - "fullName": "google.cloud.oslogin.v1beta.OsLoginService" - } - } - } - }, - { - "regionTag": "oslogin_v1beta_generated_OsLoginService_GetLoginProfile_async", - "title": "OsLoginService getLoginProfile Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the profile information used for logging in to a virtual machine on Google Compute Engine.", - "canonical": true, - "file": "os_login_service.get_login_profile.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetLoginProfile", - "fullName": "google.cloud.oslogin.v1beta.OsLoginService.GetLoginProfile", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "system_id", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.oslogin.v1beta.LoginProfileView" - } - ], - "resultType": ".google.cloud.oslogin.v1beta.LoginProfile", - "client": { - "shortName": "OsLoginServiceClient", - "fullName": "google.cloud.oslogin.v1beta.OsLoginServiceClient" - }, - "method": { - "shortName": "GetLoginProfile", - "fullName": "google.cloud.oslogin.v1beta.OsLoginService.GetLoginProfile", - "service": { - "shortName": "OsLoginService", - "fullName": "google.cloud.oslogin.v1beta.OsLoginService" - } - } - } - }, - { - "regionTag": "oslogin_v1beta_generated_OsLoginService_GetSshPublicKey_async", - "title": "OsLoginService getSshPublicKey Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an SSH public key.", - "canonical": true, - "file": "os_login_service.get_ssh_public_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSshPublicKey", - "fullName": "google.cloud.oslogin.v1beta.OsLoginService.GetSshPublicKey", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.oslogin.common.SshPublicKey", - "client": { - "shortName": "OsLoginServiceClient", - "fullName": "google.cloud.oslogin.v1beta.OsLoginServiceClient" - }, - "method": { - "shortName": "GetSshPublicKey", - "fullName": "google.cloud.oslogin.v1beta.OsLoginService.GetSshPublicKey", - "service": { - "shortName": "OsLoginService", - "fullName": "google.cloud.oslogin.v1beta.OsLoginService" - } - } - } - }, - { - "regionTag": "oslogin_v1beta_generated_OsLoginService_ImportSshPublicKey_async", - "title": "OsLoginService importSshPublicKey Sample", - "origin": "API_DEFINITION", - "description": " Adds an SSH public key and returns the profile information. Default POSIX account information is set when no username and UID exist as part of the login profile.", - "canonical": true, - "file": "os_login_service.import_ssh_public_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportSshPublicKey", - "fullName": "google.cloud.oslogin.v1beta.OsLoginService.ImportSshPublicKey", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "ssh_public_key", - "type": ".google.cloud.oslogin.common.SshPublicKey" - }, - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.oslogin.v1beta.LoginProfileView" - }, - { - "name": "regions", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.cloud.oslogin.v1beta.ImportSshPublicKeyResponse", - "client": { - "shortName": "OsLoginServiceClient", - "fullName": "google.cloud.oslogin.v1beta.OsLoginServiceClient" - }, - "method": { - "shortName": "ImportSshPublicKey", - "fullName": "google.cloud.oslogin.v1beta.OsLoginService.ImportSshPublicKey", - "service": { - "shortName": "OsLoginService", - "fullName": "google.cloud.oslogin.v1beta.OsLoginService" - } - } - } - }, - { - "regionTag": "oslogin_v1beta_generated_OsLoginService_UpdateSshPublicKey_async", - "title": "OsLoginService updateSshPublicKey Sample", - "origin": "API_DEFINITION", - "description": " Updates an SSH public key and returns the profile information. This method supports patch semantics.", - "canonical": true, - "file": "os_login_service.update_ssh_public_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSshPublicKey", - "fullName": "google.cloud.oslogin.v1beta.OsLoginService.UpdateSshPublicKey", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "ssh_public_key", - "type": ".google.cloud.oslogin.common.SshPublicKey" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.oslogin.common.SshPublicKey", - "client": { - "shortName": "OsLoginServiceClient", - "fullName": "google.cloud.oslogin.v1beta.OsLoginServiceClient" - }, - "method": { - "shortName": "UpdateSshPublicKey", - "fullName": "google.cloud.oslogin.v1beta.OsLoginService.UpdateSshPublicKey", - "service": { - "shortName": "OsLoginService", - "fullName": "google.cloud.oslogin.v1beta.OsLoginService" - } - } - } - }, - { - "regionTag": "oslogin_v1beta_generated_OsLoginService_SignSshPublicKey_async", - "title": "OsLoginService signSshPublicKey Sample", - "origin": "API_DEFINITION", - "description": " Signs an SSH public key for a user to authenticate to an instance.", - "canonical": true, - "file": "os_login_service.sign_ssh_public_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SignSshPublicKey", - "fullName": "google.cloud.oslogin.v1beta.OsLoginService.SignSshPublicKey", - "async": true, - "parameters": [ - { - "name": "ssh_public_key", - "type": "TYPE_STRING" - }, - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.oslogin.v1beta.SignSshPublicKeyResponse", - "client": { - "shortName": "OsLoginServiceClient", - "fullName": "google.cloud.oslogin.v1beta.OsLoginServiceClient" - }, - "method": { - "shortName": "SignSshPublicKey", - "fullName": "google.cloud.oslogin.v1beta.OsLoginService.SignSshPublicKey", - "service": { - "shortName": "OsLoginService", - "fullName": "google.cloud.oslogin.v1beta.OsLoginService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-parallelstore/samples/generated/v1/snippet_metadata_google.cloud.parallelstore.v1.json b/packages/google-cloud-parallelstore/samples/generated/v1/snippet_metadata_google.cloud.parallelstore.v1.json deleted file mode 100644 index 4bde6c4ac90f..000000000000 --- a/packages/google-cloud-parallelstore/samples/generated/v1/snippet_metadata_google.cloud.parallelstore.v1.json +++ /dev/null @@ -1,375 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-parallelstore", - "version": "0.12.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.parallelstore.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "parallelstore_v1_generated_Parallelstore_ListInstances_async", - "title": "Parallelstore listInstances Sample", - "origin": "API_DEFINITION", - "description": " Lists all instances in a given project and location.", - "canonical": true, - "file": "parallelstore.list_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListInstances", - "fullName": "google.cloud.parallelstore.v1.Parallelstore.ListInstances", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.parallelstore.v1.ListInstancesResponse", - "client": { - "shortName": "ParallelstoreClient", - "fullName": "google.cloud.parallelstore.v1.ParallelstoreClient" - }, - "method": { - "shortName": "ListInstances", - "fullName": "google.cloud.parallelstore.v1.Parallelstore.ListInstances", - "service": { - "shortName": "Parallelstore", - "fullName": "google.cloud.parallelstore.v1.Parallelstore" - } - } - } - }, - { - "regionTag": "parallelstore_v1_generated_Parallelstore_GetInstance_async", - "title": "Parallelstore getInstance Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single instance.", - "canonical": true, - "file": "parallelstore.get_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetInstance", - "fullName": "google.cloud.parallelstore.v1.Parallelstore.GetInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.parallelstore.v1.Instance", - "client": { - "shortName": "ParallelstoreClient", - "fullName": "google.cloud.parallelstore.v1.ParallelstoreClient" - }, - "method": { - "shortName": "GetInstance", - "fullName": "google.cloud.parallelstore.v1.Parallelstore.GetInstance", - "service": { - "shortName": "Parallelstore", - "fullName": "google.cloud.parallelstore.v1.Parallelstore" - } - } - } - }, - { - "regionTag": "parallelstore_v1_generated_Parallelstore_CreateInstance_async", - "title": "Parallelstore createInstance Sample", - "origin": "API_DEFINITION", - "description": " Creates a Parallelstore instance in a given project and location.", - "canonical": true, - "file": "parallelstore.create_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateInstance", - "fullName": "google.cloud.parallelstore.v1.Parallelstore.CreateInstance", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "instance_id", - "type": "TYPE_STRING" - }, - { - "name": "instance", - "type": ".google.cloud.parallelstore.v1.Instance" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ParallelstoreClient", - "fullName": "google.cloud.parallelstore.v1.ParallelstoreClient" - }, - "method": { - "shortName": "CreateInstance", - "fullName": "google.cloud.parallelstore.v1.Parallelstore.CreateInstance", - "service": { - "shortName": "Parallelstore", - "fullName": "google.cloud.parallelstore.v1.Parallelstore" - } - } - } - }, - { - "regionTag": "parallelstore_v1_generated_Parallelstore_UpdateInstance_async", - "title": "Parallelstore updateInstance Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single instance.", - "canonical": true, - "file": "parallelstore.update_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateInstance", - "fullName": "google.cloud.parallelstore.v1.Parallelstore.UpdateInstance", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "instance", - "type": ".google.cloud.parallelstore.v1.Instance" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ParallelstoreClient", - "fullName": "google.cloud.parallelstore.v1.ParallelstoreClient" - }, - "method": { - "shortName": "UpdateInstance", - "fullName": "google.cloud.parallelstore.v1.Parallelstore.UpdateInstance", - "service": { - "shortName": "Parallelstore", - "fullName": "google.cloud.parallelstore.v1.Parallelstore" - } - } - } - }, - { - "regionTag": "parallelstore_v1_generated_Parallelstore_DeleteInstance_async", - "title": "Parallelstore deleteInstance Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single instance.", - "canonical": true, - "file": "parallelstore.delete_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteInstance", - "fullName": "google.cloud.parallelstore.v1.Parallelstore.DeleteInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ParallelstoreClient", - "fullName": "google.cloud.parallelstore.v1.ParallelstoreClient" - }, - "method": { - "shortName": "DeleteInstance", - "fullName": "google.cloud.parallelstore.v1.Parallelstore.DeleteInstance", - "service": { - "shortName": "Parallelstore", - "fullName": "google.cloud.parallelstore.v1.Parallelstore" - } - } - } - }, - { - "regionTag": "parallelstore_v1_generated_Parallelstore_ImportData_async", - "title": "Parallelstore importData Sample", - "origin": "API_DEFINITION", - "description": " Copies data from Cloud Storage to Parallelstore.", - "canonical": true, - "file": "parallelstore.import_data.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 91, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportData", - "fullName": "google.cloud.parallelstore.v1.Parallelstore.ImportData", - "async": true, - "parameters": [ - { - "name": "source_gcs_bucket", - "type": ".google.cloud.parallelstore.v1.SourceGcsBucket" - }, - { - "name": "destination_parallelstore", - "type": ".google.cloud.parallelstore.v1.DestinationParallelstore" - }, - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "service_account", - "type": "TYPE_STRING" - }, - { - "name": "metadata_options", - "type": ".google.cloud.parallelstore.v1.TransferMetadataOptions" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ParallelstoreClient", - "fullName": "google.cloud.parallelstore.v1.ParallelstoreClient" - }, - "method": { - "shortName": "ImportData", - "fullName": "google.cloud.parallelstore.v1.Parallelstore.ImportData", - "service": { - "shortName": "Parallelstore", - "fullName": "google.cloud.parallelstore.v1.Parallelstore" - } - } - } - }, - { - "regionTag": "parallelstore_v1_generated_Parallelstore_ExportData_async", - "title": "Parallelstore exportData Sample", - "origin": "API_DEFINITION", - "description": " Copies data from Parallelstore to Cloud Storage.", - "canonical": true, - "file": "parallelstore.export_data.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 91, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportData", - "fullName": "google.cloud.parallelstore.v1.Parallelstore.ExportData", - "async": true, - "parameters": [ - { - "name": "source_parallelstore", - "type": ".google.cloud.parallelstore.v1.SourceParallelstore" - }, - { - "name": "destination_gcs_bucket", - "type": ".google.cloud.parallelstore.v1.DestinationGcsBucket" - }, - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "service_account", - "type": "TYPE_STRING" - }, - { - "name": "metadata_options", - "type": ".google.cloud.parallelstore.v1.TransferMetadataOptions" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ParallelstoreClient", - "fullName": "google.cloud.parallelstore.v1.ParallelstoreClient" - }, - "method": { - "shortName": "ExportData", - "fullName": "google.cloud.parallelstore.v1.Parallelstore.ExportData", - "service": { - "shortName": "Parallelstore", - "fullName": "google.cloud.parallelstore.v1.Parallelstore" - } - } - } - } - ] -} diff --git a/packages/google-cloud-parallelstore/samples/generated/v1beta/snippet_metadata_google.cloud.parallelstore.v1beta.json b/packages/google-cloud-parallelstore/samples/generated/v1beta/snippet_metadata_google.cloud.parallelstore.v1beta.json deleted file mode 100644 index 444736cd87e9..000000000000 --- a/packages/google-cloud-parallelstore/samples/generated/v1beta/snippet_metadata_google.cloud.parallelstore.v1beta.json +++ /dev/null @@ -1,375 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-parallelstore", - "version": "0.12.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.parallelstore.v1beta", - "version": "v1beta" - } - ] - }, - "snippets": [ - { - "regionTag": "parallelstore_v1beta_generated_Parallelstore_ListInstances_async", - "title": "Parallelstore listInstances Sample", - "origin": "API_DEFINITION", - "description": " Lists all instances in a given project and location.", - "canonical": true, - "file": "parallelstore.list_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListInstances", - "fullName": "google.cloud.parallelstore.v1beta.Parallelstore.ListInstances", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.parallelstore.v1beta.ListInstancesResponse", - "client": { - "shortName": "ParallelstoreClient", - "fullName": "google.cloud.parallelstore.v1beta.ParallelstoreClient" - }, - "method": { - "shortName": "ListInstances", - "fullName": "google.cloud.parallelstore.v1beta.Parallelstore.ListInstances", - "service": { - "shortName": "Parallelstore", - "fullName": "google.cloud.parallelstore.v1beta.Parallelstore" - } - } - } - }, - { - "regionTag": "parallelstore_v1beta_generated_Parallelstore_GetInstance_async", - "title": "Parallelstore getInstance Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single instance.", - "canonical": true, - "file": "parallelstore.get_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetInstance", - "fullName": "google.cloud.parallelstore.v1beta.Parallelstore.GetInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.parallelstore.v1beta.Instance", - "client": { - "shortName": "ParallelstoreClient", - "fullName": "google.cloud.parallelstore.v1beta.ParallelstoreClient" - }, - "method": { - "shortName": "GetInstance", - "fullName": "google.cloud.parallelstore.v1beta.Parallelstore.GetInstance", - "service": { - "shortName": "Parallelstore", - "fullName": "google.cloud.parallelstore.v1beta.Parallelstore" - } - } - } - }, - { - "regionTag": "parallelstore_v1beta_generated_Parallelstore_CreateInstance_async", - "title": "Parallelstore createInstance Sample", - "origin": "API_DEFINITION", - "description": " Creates a Parallelstore instance in a given project and location.", - "canonical": true, - "file": "parallelstore.create_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateInstance", - "fullName": "google.cloud.parallelstore.v1beta.Parallelstore.CreateInstance", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "instance_id", - "type": "TYPE_STRING" - }, - { - "name": "instance", - "type": ".google.cloud.parallelstore.v1beta.Instance" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ParallelstoreClient", - "fullName": "google.cloud.parallelstore.v1beta.ParallelstoreClient" - }, - "method": { - "shortName": "CreateInstance", - "fullName": "google.cloud.parallelstore.v1beta.Parallelstore.CreateInstance", - "service": { - "shortName": "Parallelstore", - "fullName": "google.cloud.parallelstore.v1beta.Parallelstore" - } - } - } - }, - { - "regionTag": "parallelstore_v1beta_generated_Parallelstore_UpdateInstance_async", - "title": "Parallelstore updateInstance Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single instance.", - "canonical": true, - "file": "parallelstore.update_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateInstance", - "fullName": "google.cloud.parallelstore.v1beta.Parallelstore.UpdateInstance", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "instance", - "type": ".google.cloud.parallelstore.v1beta.Instance" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ParallelstoreClient", - "fullName": "google.cloud.parallelstore.v1beta.ParallelstoreClient" - }, - "method": { - "shortName": "UpdateInstance", - "fullName": "google.cloud.parallelstore.v1beta.Parallelstore.UpdateInstance", - "service": { - "shortName": "Parallelstore", - "fullName": "google.cloud.parallelstore.v1beta.Parallelstore" - } - } - } - }, - { - "regionTag": "parallelstore_v1beta_generated_Parallelstore_DeleteInstance_async", - "title": "Parallelstore deleteInstance Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single instance.", - "canonical": true, - "file": "parallelstore.delete_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteInstance", - "fullName": "google.cloud.parallelstore.v1beta.Parallelstore.DeleteInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ParallelstoreClient", - "fullName": "google.cloud.parallelstore.v1beta.ParallelstoreClient" - }, - "method": { - "shortName": "DeleteInstance", - "fullName": "google.cloud.parallelstore.v1beta.Parallelstore.DeleteInstance", - "service": { - "shortName": "Parallelstore", - "fullName": "google.cloud.parallelstore.v1beta.Parallelstore" - } - } - } - }, - { - "regionTag": "parallelstore_v1beta_generated_Parallelstore_ImportData_async", - "title": "Parallelstore importData Sample", - "origin": "API_DEFINITION", - "description": " Copies data from Cloud Storage to Parallelstore.", - "canonical": true, - "file": "parallelstore.import_data.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 91, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportData", - "fullName": "google.cloud.parallelstore.v1beta.Parallelstore.ImportData", - "async": true, - "parameters": [ - { - "name": "source_gcs_bucket", - "type": ".google.cloud.parallelstore.v1beta.SourceGcsBucket" - }, - { - "name": "destination_parallelstore", - "type": ".google.cloud.parallelstore.v1beta.DestinationParallelstore" - }, - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "service_account", - "type": "TYPE_STRING" - }, - { - "name": "metadata_options", - "type": ".google.cloud.parallelstore.v1beta.TransferMetadataOptions" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ParallelstoreClient", - "fullName": "google.cloud.parallelstore.v1beta.ParallelstoreClient" - }, - "method": { - "shortName": "ImportData", - "fullName": "google.cloud.parallelstore.v1beta.Parallelstore.ImportData", - "service": { - "shortName": "Parallelstore", - "fullName": "google.cloud.parallelstore.v1beta.Parallelstore" - } - } - } - }, - { - "regionTag": "parallelstore_v1beta_generated_Parallelstore_ExportData_async", - "title": "Parallelstore exportData Sample", - "origin": "API_DEFINITION", - "description": " Copies data from Parallelstore to Cloud Storage.", - "canonical": true, - "file": "parallelstore.export_data.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 91, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportData", - "fullName": "google.cloud.parallelstore.v1beta.Parallelstore.ExportData", - "async": true, - "parameters": [ - { - "name": "source_parallelstore", - "type": ".google.cloud.parallelstore.v1beta.SourceParallelstore" - }, - { - "name": "destination_gcs_bucket", - "type": ".google.cloud.parallelstore.v1beta.DestinationGcsBucket" - }, - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "service_account", - "type": "TYPE_STRING" - }, - { - "name": "metadata_options", - "type": ".google.cloud.parallelstore.v1beta.TransferMetadataOptions" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ParallelstoreClient", - "fullName": "google.cloud.parallelstore.v1beta.ParallelstoreClient" - }, - "method": { - "shortName": "ExportData", - "fullName": "google.cloud.parallelstore.v1beta.Parallelstore.ExportData", - "service": { - "shortName": "Parallelstore", - "fullName": "google.cloud.parallelstore.v1beta.Parallelstore" - } - } - } - } - ] -} diff --git a/packages/google-cloud-parametermanager/samples/generated/v1/snippet_metadata_google.cloud.parametermanager.v1.json b/packages/google-cloud-parametermanager/samples/generated/v1/snippet_metadata_google.cloud.parametermanager.v1.json deleted file mode 100644 index f919c6991548..000000000000 --- a/packages/google-cloud-parametermanager/samples/generated/v1/snippet_metadata_google.cloud.parametermanager.v1.json +++ /dev/null @@ -1,539 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-parametermanager", - "version": "0.5.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.parametermanager.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "parametermanager_v1_generated_ParameterManager_ListParameters_async", - "title": "ParameterManager listParameters Sample", - "origin": "API_DEFINITION", - "description": " Lists Parameters in a given project and location.", - "canonical": true, - "file": "parameter_manager.list_parameters.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListParameters", - "fullName": "google.cloud.parametermanager.v1.ParameterManager.ListParameters", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.parametermanager.v1.ListParametersResponse", - "client": { - "shortName": "ParameterManagerClient", - "fullName": "google.cloud.parametermanager.v1.ParameterManagerClient" - }, - "method": { - "shortName": "ListParameters", - "fullName": "google.cloud.parametermanager.v1.ParameterManager.ListParameters", - "service": { - "shortName": "ParameterManager", - "fullName": "google.cloud.parametermanager.v1.ParameterManager" - } - } - } - }, - { - "regionTag": "parametermanager_v1_generated_ParameterManager_GetParameter_async", - "title": "ParameterManager getParameter Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Parameter.", - "canonical": true, - "file": "parameter_manager.get_parameter.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetParameter", - "fullName": "google.cloud.parametermanager.v1.ParameterManager.GetParameter", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.parametermanager.v1.Parameter", - "client": { - "shortName": "ParameterManagerClient", - "fullName": "google.cloud.parametermanager.v1.ParameterManagerClient" - }, - "method": { - "shortName": "GetParameter", - "fullName": "google.cloud.parametermanager.v1.ParameterManager.GetParameter", - "service": { - "shortName": "ParameterManager", - "fullName": "google.cloud.parametermanager.v1.ParameterManager" - } - } - } - }, - { - "regionTag": "parametermanager_v1_generated_ParameterManager_CreateParameter_async", - "title": "ParameterManager createParameter Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Parameter in a given project and location.", - "canonical": true, - "file": "parameter_manager.create_parameter.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateParameter", - "fullName": "google.cloud.parametermanager.v1.ParameterManager.CreateParameter", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "parameter_id", - "type": "TYPE_STRING" - }, - { - "name": "parameter", - "type": ".google.cloud.parametermanager.v1.Parameter" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.parametermanager.v1.Parameter", - "client": { - "shortName": "ParameterManagerClient", - "fullName": "google.cloud.parametermanager.v1.ParameterManagerClient" - }, - "method": { - "shortName": "CreateParameter", - "fullName": "google.cloud.parametermanager.v1.ParameterManager.CreateParameter", - "service": { - "shortName": "ParameterManager", - "fullName": "google.cloud.parametermanager.v1.ParameterManager" - } - } - } - }, - { - "regionTag": "parametermanager_v1_generated_ParameterManager_UpdateParameter_async", - "title": "ParameterManager updateParameter Sample", - "origin": "API_DEFINITION", - "description": " Updates a single Parameter.", - "canonical": true, - "file": "parameter_manager.update_parameter.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateParameter", - "fullName": "google.cloud.parametermanager.v1.ParameterManager.UpdateParameter", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "parameter", - "type": ".google.cloud.parametermanager.v1.Parameter" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.parametermanager.v1.Parameter", - "client": { - "shortName": "ParameterManagerClient", - "fullName": "google.cloud.parametermanager.v1.ParameterManagerClient" - }, - "method": { - "shortName": "UpdateParameter", - "fullName": "google.cloud.parametermanager.v1.ParameterManager.UpdateParameter", - "service": { - "shortName": "ParameterManager", - "fullName": "google.cloud.parametermanager.v1.ParameterManager" - } - } - } - }, - { - "regionTag": "parametermanager_v1_generated_ParameterManager_DeleteParameter_async", - "title": "ParameterManager deleteParameter Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Parameter.", - "canonical": true, - "file": "parameter_manager.delete_parameter.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteParameter", - "fullName": "google.cloud.parametermanager.v1.ParameterManager.DeleteParameter", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ParameterManagerClient", - "fullName": "google.cloud.parametermanager.v1.ParameterManagerClient" - }, - "method": { - "shortName": "DeleteParameter", - "fullName": "google.cloud.parametermanager.v1.ParameterManager.DeleteParameter", - "service": { - "shortName": "ParameterManager", - "fullName": "google.cloud.parametermanager.v1.ParameterManager" - } - } - } - }, - { - "regionTag": "parametermanager_v1_generated_ParameterManager_ListParameterVersions_async", - "title": "ParameterManager listParameterVersions Sample", - "origin": "API_DEFINITION", - "description": " Lists ParameterVersions in a given project, location, and parameter.", - "canonical": true, - "file": "parameter_manager.list_parameter_versions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListParameterVersions", - "fullName": "google.cloud.parametermanager.v1.ParameterManager.ListParameterVersions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.parametermanager.v1.ListParameterVersionsResponse", - "client": { - "shortName": "ParameterManagerClient", - "fullName": "google.cloud.parametermanager.v1.ParameterManagerClient" - }, - "method": { - "shortName": "ListParameterVersions", - "fullName": "google.cloud.parametermanager.v1.ParameterManager.ListParameterVersions", - "service": { - "shortName": "ParameterManager", - "fullName": "google.cloud.parametermanager.v1.ParameterManager" - } - } - } - }, - { - "regionTag": "parametermanager_v1_generated_ParameterManager_GetParameterVersion_async", - "title": "ParameterManager getParameterVersion Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single ParameterVersion.", - "canonical": true, - "file": "parameter_manager.get_parameter_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetParameterVersion", - "fullName": "google.cloud.parametermanager.v1.ParameterManager.GetParameterVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.parametermanager.v1.View" - } - ], - "resultType": ".google.cloud.parametermanager.v1.ParameterVersion", - "client": { - "shortName": "ParameterManagerClient", - "fullName": "google.cloud.parametermanager.v1.ParameterManagerClient" - }, - "method": { - "shortName": "GetParameterVersion", - "fullName": "google.cloud.parametermanager.v1.ParameterManager.GetParameterVersion", - "service": { - "shortName": "ParameterManager", - "fullName": "google.cloud.parametermanager.v1.ParameterManager" - } - } - } - }, - { - "regionTag": "parametermanager_v1_generated_ParameterManager_RenderParameterVersion_async", - "title": "ParameterManager renderParameterVersion Sample", - "origin": "API_DEFINITION", - "description": " Gets rendered version of a ParameterVersion.", - "canonical": true, - "file": "parameter_manager.render_parameter_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RenderParameterVersion", - "fullName": "google.cloud.parametermanager.v1.ParameterManager.RenderParameterVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.parametermanager.v1.RenderParameterVersionResponse", - "client": { - "shortName": "ParameterManagerClient", - "fullName": "google.cloud.parametermanager.v1.ParameterManagerClient" - }, - "method": { - "shortName": "RenderParameterVersion", - "fullName": "google.cloud.parametermanager.v1.ParameterManager.RenderParameterVersion", - "service": { - "shortName": "ParameterManager", - "fullName": "google.cloud.parametermanager.v1.ParameterManager" - } - } - } - }, - { - "regionTag": "parametermanager_v1_generated_ParameterManager_CreateParameterVersion_async", - "title": "ParameterManager createParameterVersion Sample", - "origin": "API_DEFINITION", - "description": " Creates a new ParameterVersion in a given project, location, and parameter.", - "canonical": true, - "file": "parameter_manager.create_parameter_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateParameterVersion", - "fullName": "google.cloud.parametermanager.v1.ParameterManager.CreateParameterVersion", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "parameter_version_id", - "type": "TYPE_STRING" - }, - { - "name": "parameter_version", - "type": ".google.cloud.parametermanager.v1.ParameterVersion" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.parametermanager.v1.ParameterVersion", - "client": { - "shortName": "ParameterManagerClient", - "fullName": "google.cloud.parametermanager.v1.ParameterManagerClient" - }, - "method": { - "shortName": "CreateParameterVersion", - "fullName": "google.cloud.parametermanager.v1.ParameterManager.CreateParameterVersion", - "service": { - "shortName": "ParameterManager", - "fullName": "google.cloud.parametermanager.v1.ParameterManager" - } - } - } - }, - { - "regionTag": "parametermanager_v1_generated_ParameterManager_UpdateParameterVersion_async", - "title": "ParameterManager updateParameterVersion Sample", - "origin": "API_DEFINITION", - "description": " Updates a single ParameterVersion.", - "canonical": true, - "file": "parameter_manager.update_parameter_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateParameterVersion", - "fullName": "google.cloud.parametermanager.v1.ParameterManager.UpdateParameterVersion", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "parameter_version", - "type": ".google.cloud.parametermanager.v1.ParameterVersion" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.parametermanager.v1.ParameterVersion", - "client": { - "shortName": "ParameterManagerClient", - "fullName": "google.cloud.parametermanager.v1.ParameterManagerClient" - }, - "method": { - "shortName": "UpdateParameterVersion", - "fullName": "google.cloud.parametermanager.v1.ParameterManager.UpdateParameterVersion", - "service": { - "shortName": "ParameterManager", - "fullName": "google.cloud.parametermanager.v1.ParameterManager" - } - } - } - }, - { - "regionTag": "parametermanager_v1_generated_ParameterManager_DeleteParameterVersion_async", - "title": "ParameterManager deleteParameterVersion Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single ParameterVersion.", - "canonical": true, - "file": "parameter_manager.delete_parameter_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteParameterVersion", - "fullName": "google.cloud.parametermanager.v1.ParameterManager.DeleteParameterVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ParameterManagerClient", - "fullName": "google.cloud.parametermanager.v1.ParameterManagerClient" - }, - "method": { - "shortName": "DeleteParameterVersion", - "fullName": "google.cloud.parametermanager.v1.ParameterManager.DeleteParameterVersion", - "service": { - "shortName": "ParameterManager", - "fullName": "google.cloud.parametermanager.v1.ParameterManager" - } - } - } - } - ] -} diff --git a/packages/google-cloud-phishingprotection/samples/generated/v1beta1/snippet_metadata_google.cloud.phishingprotection.v1beta1.json b/packages/google-cloud-phishingprotection/samples/generated/v1beta1/snippet_metadata_google.cloud.phishingprotection.v1beta1.json deleted file mode 100644 index 381d2e652a8e..000000000000 --- a/packages/google-cloud-phishingprotection/samples/generated/v1beta1/snippet_metadata_google.cloud.phishingprotection.v1beta1.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-phishingprotection", - "version": "5.2.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.phishingprotection.v1beta1", - "version": "v1beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "phishingprotection_v1beta1_generated_PhishingProtectionServiceV1Beta1_ReportPhishing_async", - "title": "PhishingProtectionServiceV1Beta1 reportPhishing Sample", - "origin": "API_DEFINITION", - "description": " Reports a URI suspected of containing phishing content to be reviewed. Once the report review is complete, its result can be found in the Cloud Security Command Center findings dashboard for Phishing Protection. If the result verifies the existence of malicious phishing content, the site will be added the to [Google's Social Engineering lists](https://support.google.com/webmasters/answer/6350487/) in order to protect users that could get exposed to this threat in the future.", - "canonical": true, - "file": "phishing_protection_service_v1_beta1.report_phishing.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReportPhishing", - "fullName": "google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1.ReportPhishing", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "uri", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.phishingprotection.v1beta1.ReportPhishingResponse", - "client": { - "shortName": "PhishingProtectionServiceV1Beta1Client", - "fullName": "google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1Client" - }, - "method": { - "shortName": "ReportPhishing", - "fullName": "google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1.ReportPhishing", - "service": { - "shortName": "PhishingProtectionServiceV1Beta1", - "fullName": "google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1" - } - } - } - } - ] -} diff --git a/packages/google-cloud-policysimulator/samples/generated/v1/snippet_metadata_google.cloud.policysimulator.v1.json b/packages/google-cloud-policysimulator/samples/generated/v1/snippet_metadata_google.cloud.policysimulator.v1.json deleted file mode 100644 index 33bd35744a91..000000000000 --- a/packages/google-cloud-policysimulator/samples/generated/v1/snippet_metadata_google.cloud.policysimulator.v1.json +++ /dev/null @@ -1,331 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-policysimulator", - "version": "0.8.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.policysimulator.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "policysimulator_v1_generated_OrgPolicyViolationsPreviewService_ListOrgPolicyViolationsPreviews_async", - "title": "OrgPolicy listOrgPolicyViolationsPreviews Sample", - "origin": "API_DEFINITION", - "description": " ListOrgPolicyViolationsPreviews lists each [OrgPolicyViolationsPreview][google.cloud.policysimulator.v1.OrgPolicyViolationsPreview] in an organization. Each [OrgPolicyViolationsPreview][google.cloud.policysimulator.v1.OrgPolicyViolationsPreview] is available for at least 7 days.", - "canonical": true, - "file": "org_policy_violations_preview_service.list_org_policy_violations_previews.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListOrgPolicyViolationsPreviews", - "fullName": "google.cloud.policysimulator.v1.OrgPolicyViolationsPreviewService.ListOrgPolicyViolationsPreviews", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.policysimulator.v1.ListOrgPolicyViolationsPreviewsResponse", - "client": { - "shortName": "OrgPolicyViolationsPreviewServiceClient", - "fullName": "google.cloud.policysimulator.v1.OrgPolicyViolationsPreviewServiceClient" - }, - "method": { - "shortName": "ListOrgPolicyViolationsPreviews", - "fullName": "google.cloud.policysimulator.v1.OrgPolicyViolationsPreviewService.ListOrgPolicyViolationsPreviews", - "service": { - "shortName": "OrgPolicyViolationsPreviewService", - "fullName": "google.cloud.policysimulator.v1.OrgPolicyViolationsPreviewService" - } - } - } - }, - { - "regionTag": "policysimulator_v1_generated_OrgPolicyViolationsPreviewService_GetOrgPolicyViolationsPreview_async", - "title": "OrgPolicy getOrgPolicyViolationsPreview Sample", - "origin": "API_DEFINITION", - "description": " GetOrgPolicyViolationsPreview gets the specified [OrgPolicyViolationsPreview][google.cloud.policysimulator.v1.OrgPolicyViolationsPreview]. Each [OrgPolicyViolationsPreview][google.cloud.policysimulator.v1.OrgPolicyViolationsPreview] is available for at least 7 days.", - "canonical": true, - "file": "org_policy_violations_preview_service.get_org_policy_violations_preview.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetOrgPolicyViolationsPreview", - "fullName": "google.cloud.policysimulator.v1.OrgPolicyViolationsPreviewService.GetOrgPolicyViolationsPreview", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.policysimulator.v1.OrgPolicyViolationsPreview", - "client": { - "shortName": "OrgPolicyViolationsPreviewServiceClient", - "fullName": "google.cloud.policysimulator.v1.OrgPolicyViolationsPreviewServiceClient" - }, - "method": { - "shortName": "GetOrgPolicyViolationsPreview", - "fullName": "google.cloud.policysimulator.v1.OrgPolicyViolationsPreviewService.GetOrgPolicyViolationsPreview", - "service": { - "shortName": "OrgPolicyViolationsPreviewService", - "fullName": "google.cloud.policysimulator.v1.OrgPolicyViolationsPreviewService" - } - } - } - }, - { - "regionTag": "policysimulator_v1_generated_OrgPolicyViolationsPreviewService_CreateOrgPolicyViolationsPreview_async", - "title": "OrgPolicy createOrgPolicyViolationsPreview Sample", - "origin": "API_DEFINITION", - "description": " CreateOrgPolicyViolationsPreview creates an [OrgPolicyViolationsPreview][google.cloud.policysimulator.v1.OrgPolicyViolationsPreview] for the proposed changes in the provided [OrgPolicyViolationsPreview.OrgPolicyOverlay][]. The changes to OrgPolicy are specified by this `OrgPolicyOverlay`. The resources to scan are inferred from these specified changes.", - "canonical": true, - "file": "org_policy_violations_preview_service.create_org_policy_violations_preview.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateOrgPolicyViolationsPreview", - "fullName": "google.cloud.policysimulator.v1.OrgPolicyViolationsPreviewService.CreateOrgPolicyViolationsPreview", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "org_policy_violations_preview", - "type": ".google.cloud.policysimulator.v1.OrgPolicyViolationsPreview" - }, - { - "name": "org_policy_violations_preview_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "OrgPolicyViolationsPreviewServiceClient", - "fullName": "google.cloud.policysimulator.v1.OrgPolicyViolationsPreviewServiceClient" - }, - "method": { - "shortName": "CreateOrgPolicyViolationsPreview", - "fullName": "google.cloud.policysimulator.v1.OrgPolicyViolationsPreviewService.CreateOrgPolicyViolationsPreview", - "service": { - "shortName": "OrgPolicyViolationsPreviewService", - "fullName": "google.cloud.policysimulator.v1.OrgPolicyViolationsPreviewService" - } - } - } - }, - { - "regionTag": "policysimulator_v1_generated_OrgPolicyViolationsPreviewService_ListOrgPolicyViolations_async", - "title": "OrgPolicy listOrgPolicyViolations Sample", - "origin": "API_DEFINITION", - "description": " ListOrgPolicyViolations lists the [OrgPolicyViolations][] that are present in an [OrgPolicyViolationsPreview][google.cloud.policysimulator.v1.OrgPolicyViolationsPreview].", - "canonical": true, - "file": "org_policy_violations_preview_service.list_org_policy_violations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListOrgPolicyViolations", - "fullName": "google.cloud.policysimulator.v1.OrgPolicyViolationsPreviewService.ListOrgPolicyViolations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.policysimulator.v1.ListOrgPolicyViolationsResponse", - "client": { - "shortName": "OrgPolicyViolationsPreviewServiceClient", - "fullName": "google.cloud.policysimulator.v1.OrgPolicyViolationsPreviewServiceClient" - }, - "method": { - "shortName": "ListOrgPolicyViolations", - "fullName": "google.cloud.policysimulator.v1.OrgPolicyViolationsPreviewService.ListOrgPolicyViolations", - "service": { - "shortName": "OrgPolicyViolationsPreviewService", - "fullName": "google.cloud.policysimulator.v1.OrgPolicyViolationsPreviewService" - } - } - } - }, - { - "regionTag": "policysimulator_v1_generated_Simulator_GetReplay_async", - "title": "OrgPolicy getReplay Sample", - "origin": "API_DEFINITION", - "description": " Gets the specified [Replay][google.cloud.policysimulator.v1.Replay]. Each `Replay` is available for at least 7 days.", - "canonical": true, - "file": "simulator.get_replay.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetReplay", - "fullName": "google.cloud.policysimulator.v1.Simulator.GetReplay", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.policysimulator.v1.Replay", - "client": { - "shortName": "SimulatorClient", - "fullName": "google.cloud.policysimulator.v1.SimulatorClient" - }, - "method": { - "shortName": "GetReplay", - "fullName": "google.cloud.policysimulator.v1.Simulator.GetReplay", - "service": { - "shortName": "Simulator", - "fullName": "google.cloud.policysimulator.v1.Simulator" - } - } - } - }, - { - "regionTag": "policysimulator_v1_generated_Simulator_CreateReplay_async", - "title": "OrgPolicy createReplay Sample", - "origin": "API_DEFINITION", - "description": " Creates and starts a [Replay][google.cloud.policysimulator.v1.Replay] using the given [ReplayConfig][google.cloud.policysimulator.v1.ReplayConfig].", - "canonical": true, - "file": "simulator.create_replay.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateReplay", - "fullName": "google.cloud.policysimulator.v1.Simulator.CreateReplay", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "replay", - "type": ".google.cloud.policysimulator.v1.Replay" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SimulatorClient", - "fullName": "google.cloud.policysimulator.v1.SimulatorClient" - }, - "method": { - "shortName": "CreateReplay", - "fullName": "google.cloud.policysimulator.v1.Simulator.CreateReplay", - "service": { - "shortName": "Simulator", - "fullName": "google.cloud.policysimulator.v1.Simulator" - } - } - } - }, - { - "regionTag": "policysimulator_v1_generated_Simulator_ListReplayResults_async", - "title": "OrgPolicy listReplayResults Sample", - "origin": "API_DEFINITION", - "description": " Lists the results of running a [Replay][google.cloud.policysimulator.v1.Replay].", - "canonical": true, - "file": "simulator.list_replay_results.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListReplayResults", - "fullName": "google.cloud.policysimulator.v1.Simulator.ListReplayResults", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.policysimulator.v1.ListReplayResultsResponse", - "client": { - "shortName": "SimulatorClient", - "fullName": "google.cloud.policysimulator.v1.SimulatorClient" - }, - "method": { - "shortName": "ListReplayResults", - "fullName": "google.cloud.policysimulator.v1.Simulator.ListReplayResults", - "service": { - "shortName": "Simulator", - "fullName": "google.cloud.policysimulator.v1.Simulator" - } - } - } - } - ] -} diff --git a/packages/google-cloud-policytroubleshooter-iam/samples/generated/v3/snippet_metadata_google.cloud.policytroubleshooter.iam.v3.json b/packages/google-cloud-policytroubleshooter-iam/samples/generated/v3/snippet_metadata_google.cloud.policytroubleshooter.iam.v3.json deleted file mode 100644 index a15c84dda60e..000000000000 --- a/packages/google-cloud-policytroubleshooter-iam/samples/generated/v3/snippet_metadata_google.cloud.policytroubleshooter.iam.v3.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-iam", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.policytroubleshooter.iam.v3", - "version": "v3" - } - ] - }, - "snippets": [ - { - "regionTag": "policytroubleshooter_v3_generated_PolicyTroubleshooter_TroubleshootIamPolicy_async", - "title": "Policies troubleshootIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Checks whether a principal has a specific permission for a specific resource, and explains why the principal does or doesn't have that permission.", - "canonical": true, - "file": "policy_troubleshooter.troubleshoot_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TroubleshootIamPolicy", - "fullName": "google.cloud.policytroubleshooter.iam.v3.PolicyTroubleshooter.TroubleshootIamPolicy", - "async": true, - "parameters": [ - { - "name": "access_tuple", - "type": ".google.cloud.policytroubleshooter.iam.v3.AccessTuple" - } - ], - "resultType": ".google.cloud.policytroubleshooter.iam.v3.TroubleshootIamPolicyResponse", - "client": { - "shortName": "PolicyTroubleshooterClient", - "fullName": "google.cloud.policytroubleshooter.iam.v3.PolicyTroubleshooterClient" - }, - "method": { - "shortName": "TroubleshootIamPolicy", - "fullName": "google.cloud.policytroubleshooter.iam.v3.PolicyTroubleshooter.TroubleshootIamPolicy", - "service": { - "shortName": "PolicyTroubleshooter", - "fullName": "google.cloud.policytroubleshooter.iam.v3.PolicyTroubleshooter" - } - } - } - } - ] -} diff --git a/packages/google-cloud-policytroubleshooter-iam/samples/generated/v3beta/snippet_metadata_google.cloud.policytroubleshooter.iam.v3beta.json b/packages/google-cloud-policytroubleshooter-iam/samples/generated/v3beta/snippet_metadata_google.cloud.policytroubleshooter.iam.v3beta.json deleted file mode 100644 index 42f975e02de3..000000000000 --- a/packages/google-cloud-policytroubleshooter-iam/samples/generated/v3beta/snippet_metadata_google.cloud.policytroubleshooter.iam.v3beta.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-iam", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.policytroubleshooter.iam.v3beta", - "version": "v3beta" - } - ] - }, - "snippets": [ - { - "regionTag": "policytroubleshooter_v3beta_generated_PolicyTroubleshooter_TroubleshootIamPolicy_async", - "title": "Policies troubleshootIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Checks whether a principal has a specific permission for a specific resource, and explains why the principal does or doesn't have that permission.", - "canonical": true, - "file": "policy_troubleshooter.troubleshoot_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TroubleshootIamPolicy", - "fullName": "google.cloud.policytroubleshooter.iam.v3beta.PolicyTroubleshooter.TroubleshootIamPolicy", - "async": true, - "parameters": [ - { - "name": "access_tuple", - "type": ".google.cloud.policytroubleshooter.iam.v3beta.AccessTuple" - } - ], - "resultType": ".google.cloud.policytroubleshooter.iam.v3beta.TroubleshootIamPolicyResponse", - "client": { - "shortName": "PolicyTroubleshooterClient", - "fullName": "google.cloud.policytroubleshooter.iam.v3beta.PolicyTroubleshooterClient" - }, - "method": { - "shortName": "TroubleshootIamPolicy", - "fullName": "google.cloud.policytroubleshooter.iam.v3beta.PolicyTroubleshooter.TroubleshootIamPolicy", - "service": { - "shortName": "PolicyTroubleshooter", - "fullName": "google.cloud.policytroubleshooter.iam.v3beta.PolicyTroubleshooter" - } - } - } - } - ] -} diff --git a/packages/google-cloud-policytroubleshooter/samples/generated/v1/snippet_metadata_google.cloud.policytroubleshooter.v1.json b/packages/google-cloud-policytroubleshooter/samples/generated/v1/snippet_metadata_google.cloud.policytroubleshooter.v1.json deleted file mode 100644 index 9c38afc4ec0d..000000000000 --- a/packages/google-cloud-policytroubleshooter/samples/generated/v1/snippet_metadata_google.cloud.policytroubleshooter.v1.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-policytroubleshooter", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.policytroubleshooter.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "policytroubleshooter_v1_generated_IamChecker_TroubleshootIamPolicy_async", - "title": "IamChecker troubleshootIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Checks whether a principal has a specific permission for a specific resource, and explains why the principal does or does not have that permission.", - "canonical": true, - "file": "iam_checker.troubleshoot_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TroubleshootIamPolicy", - "fullName": "google.cloud.policytroubleshooter.v1.IamChecker.TroubleshootIamPolicy", - "async": true, - "parameters": [ - { - "name": "access_tuple", - "type": ".google.cloud.policytroubleshooter.v1.AccessTuple" - } - ], - "resultType": ".google.cloud.policytroubleshooter.v1.TroubleshootIamPolicyResponse", - "client": { - "shortName": "IamCheckerClient", - "fullName": "google.cloud.policytroubleshooter.v1.IamCheckerClient" - }, - "method": { - "shortName": "TroubleshootIamPolicy", - "fullName": "google.cloud.policytroubleshooter.v1.IamChecker.TroubleshootIamPolicy", - "service": { - "shortName": "IamChecker", - "fullName": "google.cloud.policytroubleshooter.v1.IamChecker" - } - } - } - } - ] -} diff --git a/packages/google-cloud-privatecatalog/samples/generated/v1beta1/snippet_metadata_google.cloud.privatecatalog.v1beta1.json b/packages/google-cloud-privatecatalog/samples/generated/v1beta1/snippet_metadata_google.cloud.privatecatalog.v1beta1.json deleted file mode 100644 index fabcb9253d98..000000000000 --- a/packages/google-cloud-privatecatalog/samples/generated/v1beta1/snippet_metadata_google.cloud.privatecatalog.v1beta1.json +++ /dev/null @@ -1,171 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-privatecatalog", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.privatecatalog.v1beta1", - "version": "v1beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "cloudprivatecatalog_v1beta1_generated_PrivateCatalog_SearchCatalogs_async", - "title": "PrivateCatalog searchCatalogs Sample", - "origin": "API_DEFINITION", - "description": " Search [Catalog][google.cloud.privatecatalog.v1beta1.Catalog] resources that consumers have access to, within the scope of the consumer cloud resource hierarchy context.", - "canonical": true, - "file": "private_catalog.search_catalogs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchCatalogs", - "fullName": "google.cloud.privatecatalog.v1beta1.PrivateCatalog.SearchCatalogs", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.privatecatalog.v1beta1.SearchCatalogsResponse", - "client": { - "shortName": "PrivateCatalogClient", - "fullName": "google.cloud.privatecatalog.v1beta1.PrivateCatalogClient" - }, - "method": { - "shortName": "SearchCatalogs", - "fullName": "google.cloud.privatecatalog.v1beta1.PrivateCatalog.SearchCatalogs", - "service": { - "shortName": "PrivateCatalog", - "fullName": "google.cloud.privatecatalog.v1beta1.PrivateCatalog" - } - } - } - }, - { - "regionTag": "cloudprivatecatalog_v1beta1_generated_PrivateCatalog_SearchProducts_async", - "title": "PrivateCatalog searchProducts Sample", - "origin": "API_DEFINITION", - "description": " Search [Product][google.cloud.privatecatalog.v1beta1.Product] resources that consumers have access to, within the scope of the consumer cloud resource hierarchy context.", - "canonical": true, - "file": "private_catalog.search_products.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchProducts", - "fullName": "google.cloud.privatecatalog.v1beta1.PrivateCatalog.SearchProducts", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.privatecatalog.v1beta1.SearchProductsResponse", - "client": { - "shortName": "PrivateCatalogClient", - "fullName": "google.cloud.privatecatalog.v1beta1.PrivateCatalogClient" - }, - "method": { - "shortName": "SearchProducts", - "fullName": "google.cloud.privatecatalog.v1beta1.PrivateCatalog.SearchProducts", - "service": { - "shortName": "PrivateCatalog", - "fullName": "google.cloud.privatecatalog.v1beta1.PrivateCatalog" - } - } - } - }, - { - "regionTag": "cloudprivatecatalog_v1beta1_generated_PrivateCatalog_SearchVersions_async", - "title": "PrivateCatalog searchVersions Sample", - "origin": "API_DEFINITION", - "description": " Search [Version][google.cloud.privatecatalog.v1beta1.Version] resources that consumers have access to, within the scope of the consumer cloud resource hierarchy context.", - "canonical": true, - "file": "private_catalog.search_versions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchVersions", - "fullName": "google.cloud.privatecatalog.v1beta1.PrivateCatalog.SearchVersions", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.privatecatalog.v1beta1.SearchVersionsResponse", - "client": { - "shortName": "PrivateCatalogClient", - "fullName": "google.cloud.privatecatalog.v1beta1.PrivateCatalogClient" - }, - "method": { - "shortName": "SearchVersions", - "fullName": "google.cloud.privatecatalog.v1beta1.PrivateCatalog.SearchVersions", - "service": { - "shortName": "PrivateCatalog", - "fullName": "google.cloud.privatecatalog.v1beta1.PrivateCatalog" - } - } - } - } - ] -} diff --git a/packages/google-cloud-privilegedaccessmanager/samples/generated/v1/snippet_metadata_google.cloud.privilegedaccessmanager.v1.json b/packages/google-cloud-privilegedaccessmanager/samples/generated/v1/snippet_metadata_google.cloud.privilegedaccessmanager.v1.json deleted file mode 100644 index 4e12bad3ef22..000000000000 --- a/packages/google-cloud-privilegedaccessmanager/samples/generated/v1/snippet_metadata_google.cloud.privilegedaccessmanager.v1.json +++ /dev/null @@ -1,683 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-privilegedaccessmanager", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.privilegedaccessmanager.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "privilegedaccessmanager_v1_generated_PrivilegedAccessManager_CheckOnboardingStatus_async", - "title": "PrivilegedAccessManager checkOnboardingStatus Sample", - "origin": "API_DEFINITION", - "description": " `CheckOnboardingStatus` reports the onboarding status for a project/folder/organization. Any findings reported by this API need to be fixed before PAM can be used on the resource.", - "canonical": true, - "file": "privileged_access_manager.check_onboarding_status.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CheckOnboardingStatus", - "fullName": "google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManager.CheckOnboardingStatus", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.privilegedaccessmanager.v1.CheckOnboardingStatusResponse", - "client": { - "shortName": "PrivilegedAccessManagerClient", - "fullName": "google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManagerClient" - }, - "method": { - "shortName": "CheckOnboardingStatus", - "fullName": "google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManager.CheckOnboardingStatus", - "service": { - "shortName": "PrivilegedAccessManager", - "fullName": "google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManager" - } - } - } - }, - { - "regionTag": "privilegedaccessmanager_v1_generated_PrivilegedAccessManager_ListEntitlements_async", - "title": "PrivilegedAccessManager listEntitlements Sample", - "origin": "API_DEFINITION", - "description": " Lists entitlements in a given project/folder/organization and location.", - "canonical": true, - "file": "privileged_access_manager.list_entitlements.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEntitlements", - "fullName": "google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManager.ListEntitlements", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.privilegedaccessmanager.v1.ListEntitlementsResponse", - "client": { - "shortName": "PrivilegedAccessManagerClient", - "fullName": "google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManagerClient" - }, - "method": { - "shortName": "ListEntitlements", - "fullName": "google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManager.ListEntitlements", - "service": { - "shortName": "PrivilegedAccessManager", - "fullName": "google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManager" - } - } - } - }, - { - "regionTag": "privilegedaccessmanager_v1_generated_PrivilegedAccessManager_SearchEntitlements_async", - "title": "PrivilegedAccessManager searchEntitlements Sample", - "origin": "API_DEFINITION", - "description": " `SearchEntitlements` returns entitlements on which the caller has the specified access.", - "canonical": true, - "file": "privileged_access_manager.search_entitlements.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchEntitlements", - "fullName": "google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManager.SearchEntitlements", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "caller_access_type", - "type": ".google.cloud.privilegedaccessmanager.v1.SearchEntitlementsRequest.CallerAccessType" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.privilegedaccessmanager.v1.SearchEntitlementsResponse", - "client": { - "shortName": "PrivilegedAccessManagerClient", - "fullName": "google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManagerClient" - }, - "method": { - "shortName": "SearchEntitlements", - "fullName": "google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManager.SearchEntitlements", - "service": { - "shortName": "PrivilegedAccessManager", - "fullName": "google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManager" - } - } - } - }, - { - "regionTag": "privilegedaccessmanager_v1_generated_PrivilegedAccessManager_GetEntitlement_async", - "title": "PrivilegedAccessManager getEntitlement Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single entitlement.", - "canonical": true, - "file": "privileged_access_manager.get_entitlement.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEntitlement", - "fullName": "google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManager.GetEntitlement", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.privilegedaccessmanager.v1.Entitlement", - "client": { - "shortName": "PrivilegedAccessManagerClient", - "fullName": "google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManagerClient" - }, - "method": { - "shortName": "GetEntitlement", - "fullName": "google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManager.GetEntitlement", - "service": { - "shortName": "PrivilegedAccessManager", - "fullName": "google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManager" - } - } - } - }, - { - "regionTag": "privilegedaccessmanager_v1_generated_PrivilegedAccessManager_CreateEntitlement_async", - "title": "PrivilegedAccessManager createEntitlement Sample", - "origin": "API_DEFINITION", - "description": " Creates a new entitlement in a given project/folder/organization and location.", - "canonical": true, - "file": "privileged_access_manager.create_entitlement.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 88, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateEntitlement", - "fullName": "google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManager.CreateEntitlement", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "entitlement_id", - "type": "TYPE_STRING" - }, - { - "name": "entitlement", - "type": ".google.cloud.privilegedaccessmanager.v1.Entitlement" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "PrivilegedAccessManagerClient", - "fullName": "google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManagerClient" - }, - "method": { - "shortName": "CreateEntitlement", - "fullName": "google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManager.CreateEntitlement", - "service": { - "shortName": "PrivilegedAccessManager", - "fullName": "google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManager" - } - } - } - }, - { - "regionTag": "privilegedaccessmanager_v1_generated_PrivilegedAccessManager_DeleteEntitlement_async", - "title": "PrivilegedAccessManager deleteEntitlement Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single entitlement. This method can only be called when there are no in-progress (`ACTIVE`/`ACTIVATING`/`REVOKING`) grants under the entitlement.", - "canonical": true, - "file": "privileged_access_manager.delete_entitlement.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteEntitlement", - "fullName": "google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManager.DeleteEntitlement", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "PrivilegedAccessManagerClient", - "fullName": "google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManagerClient" - }, - "method": { - "shortName": "DeleteEntitlement", - "fullName": "google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManager.DeleteEntitlement", - "service": { - "shortName": "PrivilegedAccessManager", - "fullName": "google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManager" - } - } - } - }, - { - "regionTag": "privilegedaccessmanager_v1_generated_PrivilegedAccessManager_UpdateEntitlement_async", - "title": "PrivilegedAccessManager updateEntitlement Sample", - "origin": "API_DEFINITION", - "description": " Updates the entitlement specified in the request. Updated fields in the entitlement need to be specified in an update mask. The changes made to an entitlement are applicable only on future grants of the entitlement. However, if new approvers are added or existing approvers are removed from the approval workflow, the changes are effective on existing grants. The following fields are not supported for updates: * All immutable fields * Entitlement name * Resource name * Resource type * Adding an approval workflow in an entitlement which previously had no approval workflow. * Deleting the approval workflow from an entitlement. * Adding or deleting a step in the approval workflow (only one step is supported) Note that updates are allowed on the list of approvers in an approval workflow step.", - "canonical": true, - "file": "privileged_access_manager.update_entitlement.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateEntitlement", - "fullName": "google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManager.UpdateEntitlement", - "async": true, - "parameters": [ - { - "name": "entitlement", - "type": ".google.cloud.privilegedaccessmanager.v1.Entitlement" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "PrivilegedAccessManagerClient", - "fullName": "google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManagerClient" - }, - "method": { - "shortName": "UpdateEntitlement", - "fullName": "google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManager.UpdateEntitlement", - "service": { - "shortName": "PrivilegedAccessManager", - "fullName": "google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManager" - } - } - } - }, - { - "regionTag": "privilegedaccessmanager_v1_generated_PrivilegedAccessManager_ListGrants_async", - "title": "PrivilegedAccessManager listGrants Sample", - "origin": "API_DEFINITION", - "description": " Lists grants for a given entitlement.", - "canonical": true, - "file": "privileged_access_manager.list_grants.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListGrants", - "fullName": "google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManager.ListGrants", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.privilegedaccessmanager.v1.ListGrantsResponse", - "client": { - "shortName": "PrivilegedAccessManagerClient", - "fullName": "google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManagerClient" - }, - "method": { - "shortName": "ListGrants", - "fullName": "google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManager.ListGrants", - "service": { - "shortName": "PrivilegedAccessManager", - "fullName": "google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManager" - } - } - } - }, - { - "regionTag": "privilegedaccessmanager_v1_generated_PrivilegedAccessManager_SearchGrants_async", - "title": "PrivilegedAccessManager searchGrants Sample", - "origin": "API_DEFINITION", - "description": " `SearchGrants` returns grants that are related to the calling user in the specified way.", - "canonical": true, - "file": "privileged_access_manager.search_grants.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchGrants", - "fullName": "google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManager.SearchGrants", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "caller_relationship", - "type": ".google.cloud.privilegedaccessmanager.v1.SearchGrantsRequest.CallerRelationshipType" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.privilegedaccessmanager.v1.SearchGrantsResponse", - "client": { - "shortName": "PrivilegedAccessManagerClient", - "fullName": "google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManagerClient" - }, - "method": { - "shortName": "SearchGrants", - "fullName": "google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManager.SearchGrants", - "service": { - "shortName": "PrivilegedAccessManager", - "fullName": "google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManager" - } - } - } - }, - { - "regionTag": "privilegedaccessmanager_v1_generated_PrivilegedAccessManager_GetGrant_async", - "title": "PrivilegedAccessManager getGrant Sample", - "origin": "API_DEFINITION", - "description": " Get details of a single grant.", - "canonical": true, - "file": "privileged_access_manager.get_grant.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetGrant", - "fullName": "google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManager.GetGrant", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.privilegedaccessmanager.v1.Grant", - "client": { - "shortName": "PrivilegedAccessManagerClient", - "fullName": "google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManagerClient" - }, - "method": { - "shortName": "GetGrant", - "fullName": "google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManager.GetGrant", - "service": { - "shortName": "PrivilegedAccessManager", - "fullName": "google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManager" - } - } - } - }, - { - "regionTag": "privilegedaccessmanager_v1_generated_PrivilegedAccessManager_CreateGrant_async", - "title": "PrivilegedAccessManager createGrant Sample", - "origin": "API_DEFINITION", - "description": " Creates a new grant in a given project/folder/organization and location.", - "canonical": true, - "file": "privileged_access_manager.create_grant.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateGrant", - "fullName": "google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManager.CreateGrant", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "grant", - "type": ".google.cloud.privilegedaccessmanager.v1.Grant" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.privilegedaccessmanager.v1.Grant", - "client": { - "shortName": "PrivilegedAccessManagerClient", - "fullName": "google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManagerClient" - }, - "method": { - "shortName": "CreateGrant", - "fullName": "google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManager.CreateGrant", - "service": { - "shortName": "PrivilegedAccessManager", - "fullName": "google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManager" - } - } - } - }, - { - "regionTag": "privilegedaccessmanager_v1_generated_PrivilegedAccessManager_ApproveGrant_async", - "title": "PrivilegedAccessManager approveGrant Sample", - "origin": "API_DEFINITION", - "description": " `ApproveGrant` is used to approve a grant. This method can only be called on a grant when it's in the `APPROVAL_AWAITED` state. This operation can't be undone.", - "canonical": true, - "file": "privileged_access_manager.approve_grant.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ApproveGrant", - "fullName": "google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManager.ApproveGrant", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "reason", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.privilegedaccessmanager.v1.Grant", - "client": { - "shortName": "PrivilegedAccessManagerClient", - "fullName": "google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManagerClient" - }, - "method": { - "shortName": "ApproveGrant", - "fullName": "google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManager.ApproveGrant", - "service": { - "shortName": "PrivilegedAccessManager", - "fullName": "google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManager" - } - } - } - }, - { - "regionTag": "privilegedaccessmanager_v1_generated_PrivilegedAccessManager_DenyGrant_async", - "title": "PrivilegedAccessManager denyGrant Sample", - "origin": "API_DEFINITION", - "description": " `DenyGrant` is used to deny a grant. This method can only be called on a grant when it's in the `APPROVAL_AWAITED` state. This operation can't be undone.", - "canonical": true, - "file": "privileged_access_manager.deny_grant.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DenyGrant", - "fullName": "google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManager.DenyGrant", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "reason", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.privilegedaccessmanager.v1.Grant", - "client": { - "shortName": "PrivilegedAccessManagerClient", - "fullName": "google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManagerClient" - }, - "method": { - "shortName": "DenyGrant", - "fullName": "google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManager.DenyGrant", - "service": { - "shortName": "PrivilegedAccessManager", - "fullName": "google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManager" - } - } - } - }, - { - "regionTag": "privilegedaccessmanager_v1_generated_PrivilegedAccessManager_RevokeGrant_async", - "title": "PrivilegedAccessManager revokeGrant Sample", - "origin": "API_DEFINITION", - "description": " `RevokeGrant` is used to immediately revoke access for a grant. This method can be called when the grant is in a non-terminal state.", - "canonical": true, - "file": "privileged_access_manager.revoke_grant.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RevokeGrant", - "fullName": "google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManager.RevokeGrant", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "reason", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "PrivilegedAccessManagerClient", - "fullName": "google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManagerClient" - }, - "method": { - "shortName": "RevokeGrant", - "fullName": "google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManager.RevokeGrant", - "service": { - "shortName": "PrivilegedAccessManager", - "fullName": "google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManager" - } - } - } - } - ] -} diff --git a/packages/google-cloud-rapidmigrationassessment/samples/generated/v1/snippet_metadata_google.cloud.rapidmigrationassessment.v1.json b/packages/google-cloud-rapidmigrationassessment/samples/generated/v1/snippet_metadata_google.cloud.rapidmigrationassessment.v1.json deleted file mode 100644 index 8499a747179a..000000000000 --- a/packages/google-cloud-rapidmigrationassessment/samples/generated/v1/snippet_metadata_google.cloud.rapidmigrationassessment.v1.json +++ /dev/null @@ -1,475 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-rapidmigrationassessment", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.rapidmigrationassessment.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "rapidmigrationassessment_v1_generated_RapidMigrationAssessment_CreateCollector_async", - "title": "RapidMigrationAssessment createCollector Sample", - "origin": "API_DEFINITION", - "description": " Create a Collector to manage the on-prem appliance which collects information about Customer assets.", - "canonical": true, - "file": "rapid_migration_assessment.create_collector.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCollector", - "fullName": "google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessment.CreateCollector", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "collector_id", - "type": "TYPE_STRING" - }, - { - "name": "collector", - "type": ".google.cloud.rapidmigrationassessment.v1.Collector" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "RapidMigrationAssessmentClient", - "fullName": "google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessmentClient" - }, - "method": { - "shortName": "CreateCollector", - "fullName": "google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessment.CreateCollector", - "service": { - "shortName": "RapidMigrationAssessment", - "fullName": "google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessment" - } - } - } - }, - { - "regionTag": "rapidmigrationassessment_v1_generated_RapidMigrationAssessment_CreateAnnotation_async", - "title": "RapidMigrationAssessment createAnnotation Sample", - "origin": "API_DEFINITION", - "description": " Creates an Annotation", - "canonical": true, - "file": "rapid_migration_assessment.create_annotation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAnnotation", - "fullName": "google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessment.CreateAnnotation", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "annotation", - "type": ".google.cloud.rapidmigrationassessment.v1.Annotation" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "RapidMigrationAssessmentClient", - "fullName": "google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessmentClient" - }, - "method": { - "shortName": "CreateAnnotation", - "fullName": "google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessment.CreateAnnotation", - "service": { - "shortName": "RapidMigrationAssessment", - "fullName": "google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessment" - } - } - } - }, - { - "regionTag": "rapidmigrationassessment_v1_generated_RapidMigrationAssessment_GetAnnotation_async", - "title": "RapidMigrationAssessment getAnnotation Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Annotation.", - "canonical": true, - "file": "rapid_migration_assessment.get_annotation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAnnotation", - "fullName": "google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessment.GetAnnotation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.rapidmigrationassessment.v1.Annotation", - "client": { - "shortName": "RapidMigrationAssessmentClient", - "fullName": "google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessmentClient" - }, - "method": { - "shortName": "GetAnnotation", - "fullName": "google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessment.GetAnnotation", - "service": { - "shortName": "RapidMigrationAssessment", - "fullName": "google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessment" - } - } - } - }, - { - "regionTag": "rapidmigrationassessment_v1_generated_RapidMigrationAssessment_ListCollectors_async", - "title": "RapidMigrationAssessment listCollectors Sample", - "origin": "API_DEFINITION", - "description": " Lists Collectors in a given project and location.", - "canonical": true, - "file": "rapid_migration_assessment.list_collectors.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCollectors", - "fullName": "google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessment.ListCollectors", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.rapidmigrationassessment.v1.ListCollectorsResponse", - "client": { - "shortName": "RapidMigrationAssessmentClient", - "fullName": "google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessmentClient" - }, - "method": { - "shortName": "ListCollectors", - "fullName": "google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessment.ListCollectors", - "service": { - "shortName": "RapidMigrationAssessment", - "fullName": "google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessment" - } - } - } - }, - { - "regionTag": "rapidmigrationassessment_v1_generated_RapidMigrationAssessment_GetCollector_async", - "title": "RapidMigrationAssessment getCollector Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Collector.", - "canonical": true, - "file": "rapid_migration_assessment.get_collector.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCollector", - "fullName": "google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessment.GetCollector", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.rapidmigrationassessment.v1.Collector", - "client": { - "shortName": "RapidMigrationAssessmentClient", - "fullName": "google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessmentClient" - }, - "method": { - "shortName": "GetCollector", - "fullName": "google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessment.GetCollector", - "service": { - "shortName": "RapidMigrationAssessment", - "fullName": "google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessment" - } - } - } - }, - { - "regionTag": "rapidmigrationassessment_v1_generated_RapidMigrationAssessment_UpdateCollector_async", - "title": "RapidMigrationAssessment updateCollector Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Collector.", - "canonical": true, - "file": "rapid_migration_assessment.update_collector.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCollector", - "fullName": "google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessment.UpdateCollector", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "collector", - "type": ".google.cloud.rapidmigrationassessment.v1.Collector" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "RapidMigrationAssessmentClient", - "fullName": "google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessmentClient" - }, - "method": { - "shortName": "UpdateCollector", - "fullName": "google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessment.UpdateCollector", - "service": { - "shortName": "RapidMigrationAssessment", - "fullName": "google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessment" - } - } - } - }, - { - "regionTag": "rapidmigrationassessment_v1_generated_RapidMigrationAssessment_DeleteCollector_async", - "title": "RapidMigrationAssessment deleteCollector Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Collector - changes state of collector to \"Deleting\". Background jobs does final deletion through producer API.", - "canonical": true, - "file": "rapid_migration_assessment.delete_collector.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCollector", - "fullName": "google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessment.DeleteCollector", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "RapidMigrationAssessmentClient", - "fullName": "google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessmentClient" - }, - "method": { - "shortName": "DeleteCollector", - "fullName": "google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessment.DeleteCollector", - "service": { - "shortName": "RapidMigrationAssessment", - "fullName": "google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessment" - } - } - } - }, - { - "regionTag": "rapidmigrationassessment_v1_generated_RapidMigrationAssessment_ResumeCollector_async", - "title": "RapidMigrationAssessment resumeCollector Sample", - "origin": "API_DEFINITION", - "description": " Resumes the given collector.", - "canonical": true, - "file": "rapid_migration_assessment.resume_collector.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResumeCollector", - "fullName": "google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessment.ResumeCollector", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "RapidMigrationAssessmentClient", - "fullName": "google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessmentClient" - }, - "method": { - "shortName": "ResumeCollector", - "fullName": "google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessment.ResumeCollector", - "service": { - "shortName": "RapidMigrationAssessment", - "fullName": "google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessment" - } - } - } - }, - { - "regionTag": "rapidmigrationassessment_v1_generated_RapidMigrationAssessment_RegisterCollector_async", - "title": "RapidMigrationAssessment registerCollector Sample", - "origin": "API_DEFINITION", - "description": " Registers the given collector.", - "canonical": true, - "file": "rapid_migration_assessment.register_collector.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RegisterCollector", - "fullName": "google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessment.RegisterCollector", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "RapidMigrationAssessmentClient", - "fullName": "google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessmentClient" - }, - "method": { - "shortName": "RegisterCollector", - "fullName": "google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessment.RegisterCollector", - "service": { - "shortName": "RapidMigrationAssessment", - "fullName": "google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessment" - } - } - } - }, - { - "regionTag": "rapidmigrationassessment_v1_generated_RapidMigrationAssessment_PauseCollector_async", - "title": "RapidMigrationAssessment pauseCollector Sample", - "origin": "API_DEFINITION", - "description": " Pauses the given collector.", - "canonical": true, - "file": "rapid_migration_assessment.pause_collector.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PauseCollector", - "fullName": "google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessment.PauseCollector", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "RapidMigrationAssessmentClient", - "fullName": "google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessmentClient" - }, - "method": { - "shortName": "PauseCollector", - "fullName": "google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessment.PauseCollector", - "service": { - "shortName": "RapidMigrationAssessment", - "fullName": "google.cloud.rapidmigrationassessment.v1.RapidMigrationAssessment" - } - } - } - } - ] -} diff --git a/packages/google-cloud-recaptchaenterprise/samples/generated/v1/snippet_metadata_google.cloud.recaptchaenterprise.v1.json b/packages/google-cloud-recaptchaenterprise/samples/generated/v1/snippet_metadata_google.cloud.recaptchaenterprise.v1.json deleted file mode 100644 index b596645110b1..000000000000 --- a/packages/google-cloud-recaptchaenterprise/samples/generated/v1/snippet_metadata_google.cloud.recaptchaenterprise.v1.json +++ /dev/null @@ -1,1011 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-recaptchaenterprise", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.recaptchaenterprise.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_CreateAssessment_async", - "title": "RecaptchaEnterpriseService createAssessment Sample", - "origin": "API_DEFINITION", - "description": " Creates an Assessment of the likelihood an event is legitimate.", - "canonical": true, - "file": "recaptcha_enterprise_service.create_assessment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAssessment", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.CreateAssessment", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "assessment", - "type": ".google.cloud.recaptchaenterprise.v1.Assessment" - } - ], - "resultType": ".google.cloud.recaptchaenterprise.v1.Assessment", - "client": { - "shortName": "RecaptchaEnterpriseServiceClient", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseServiceClient" - }, - "method": { - "shortName": "CreateAssessment", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.CreateAssessment", - "service": { - "shortName": "RecaptchaEnterpriseService", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" - } - } - } - }, - { - "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_AnnotateAssessment_async", - "title": "RecaptchaEnterpriseService annotateAssessment Sample", - "origin": "API_DEFINITION", - "description": " Annotates a previously created Assessment to provide additional information on whether the event turned out to be authentic or fraudulent.", - "canonical": true, - "file": "recaptcha_enterprise_service.annotate_assessment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AnnotateAssessment", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.AnnotateAssessment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "annotation", - "type": ".google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation" - }, - { - "name": "reasons", - "type": "TYPE_ENUM[]" - }, - { - "name": "account_id", - "type": "TYPE_STRING" - }, - { - "name": "hashed_account_id", - "type": "TYPE_BYTES" - }, - { - "name": "transaction_event", - "type": ".google.cloud.recaptchaenterprise.v1.TransactionEvent" - }, - { - "name": "phone_authentication_event", - "type": ".google.cloud.recaptchaenterprise.v1.PhoneAuthenticationEvent" - } - ], - "resultType": ".google.cloud.recaptchaenterprise.v1.AnnotateAssessmentResponse", - "client": { - "shortName": "RecaptchaEnterpriseServiceClient", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseServiceClient" - }, - "method": { - "shortName": "AnnotateAssessment", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.AnnotateAssessment", - "service": { - "shortName": "RecaptchaEnterpriseService", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" - } - } - } - }, - { - "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_CreateKey_async", - "title": "RecaptchaEnterpriseService createKey Sample", - "origin": "API_DEFINITION", - "description": " Creates a new reCAPTCHA Enterprise key.", - "canonical": true, - "file": "recaptcha_enterprise_service.create_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateKey", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.CreateKey", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "key", - "type": ".google.cloud.recaptchaenterprise.v1.Key" - } - ], - "resultType": ".google.cloud.recaptchaenterprise.v1.Key", - "client": { - "shortName": "RecaptchaEnterpriseServiceClient", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseServiceClient" - }, - "method": { - "shortName": "CreateKey", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.CreateKey", - "service": { - "shortName": "RecaptchaEnterpriseService", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" - } - } - } - }, - { - "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_ListKeys_async", - "title": "RecaptchaEnterpriseService listKeys Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of all keys that belong to a project.", - "canonical": true, - "file": "recaptcha_enterprise_service.list_keys.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListKeys", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.ListKeys", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.recaptchaenterprise.v1.ListKeysResponse", - "client": { - "shortName": "RecaptchaEnterpriseServiceClient", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseServiceClient" - }, - "method": { - "shortName": "ListKeys", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.ListKeys", - "service": { - "shortName": "RecaptchaEnterpriseService", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" - } - } - } - }, - { - "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_RetrieveLegacySecretKey_async", - "title": "RecaptchaEnterpriseService retrieveLegacySecretKey Sample", - "origin": "API_DEFINITION", - "description": " Returns the secret key related to the specified public key. You must use the legacy secret key only in a 3rd party integration with legacy reCAPTCHA.", - "canonical": true, - "file": "recaptcha_enterprise_service.retrieve_legacy_secret_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RetrieveLegacySecretKey", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.RetrieveLegacySecretKey", - "async": true, - "parameters": [ - { - "name": "key", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse", - "client": { - "shortName": "RecaptchaEnterpriseServiceClient", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseServiceClient" - }, - "method": { - "shortName": "RetrieveLegacySecretKey", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.RetrieveLegacySecretKey", - "service": { - "shortName": "RecaptchaEnterpriseService", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" - } - } - } - }, - { - "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_GetKey_async", - "title": "RecaptchaEnterpriseService getKey Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified key.", - "canonical": true, - "file": "recaptcha_enterprise_service.get_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetKey", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.GetKey", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.recaptchaenterprise.v1.Key", - "client": { - "shortName": "RecaptchaEnterpriseServiceClient", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseServiceClient" - }, - "method": { - "shortName": "GetKey", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.GetKey", - "service": { - "shortName": "RecaptchaEnterpriseService", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" - } - } - } - }, - { - "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_UpdateKey_async", - "title": "RecaptchaEnterpriseService updateKey Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified key.", - "canonical": true, - "file": "recaptcha_enterprise_service.update_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateKey", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.UpdateKey", - "async": true, - "parameters": [ - { - "name": "key", - "type": ".google.cloud.recaptchaenterprise.v1.Key" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.recaptchaenterprise.v1.Key", - "client": { - "shortName": "RecaptchaEnterpriseServiceClient", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseServiceClient" - }, - "method": { - "shortName": "UpdateKey", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.UpdateKey", - "service": { - "shortName": "RecaptchaEnterpriseService", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" - } - } - } - }, - { - "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_DeleteKey_async", - "title": "RecaptchaEnterpriseService deleteKey Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified key.", - "canonical": true, - "file": "recaptcha_enterprise_service.delete_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteKey", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.DeleteKey", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "RecaptchaEnterpriseServiceClient", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseServiceClient" - }, - "method": { - "shortName": "DeleteKey", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.DeleteKey", - "service": { - "shortName": "RecaptchaEnterpriseService", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" - } - } - } - }, - { - "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_MigrateKey_async", - "title": "RecaptchaEnterpriseService migrateKey Sample", - "origin": "API_DEFINITION", - "description": " Migrates an existing key from reCAPTCHA to reCAPTCHA Enterprise. Once a key is migrated, it can be used from either product. SiteVerify requests are billed as CreateAssessment calls. You must be authenticated as one of the current owners of the reCAPTCHA Key, and your user must have the reCAPTCHA Enterprise Admin IAM role in the destination project.", - "canonical": true, - "file": "recaptcha_enterprise_service.migrate_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "MigrateKey", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.MigrateKey", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "skip_billing_check", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.recaptchaenterprise.v1.Key", - "client": { - "shortName": "RecaptchaEnterpriseServiceClient", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseServiceClient" - }, - "method": { - "shortName": "MigrateKey", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.MigrateKey", - "service": { - "shortName": "RecaptchaEnterpriseService", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" - } - } - } - }, - { - "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_AddIpOverride_async", - "title": "RecaptchaEnterpriseService addIpOverride Sample", - "origin": "API_DEFINITION", - "description": " Adds an IP override to a key. The following restrictions hold: * The maximum number of IP overrides per key is 1000. * For any conflict (such as IP already exists or IP part of an existing IP range), an error is returned.", - "canonical": true, - "file": "recaptcha_enterprise_service.add_ip_override.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddIpOverride", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.AddIpOverride", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "ip_override_data", - "type": ".google.cloud.recaptchaenterprise.v1.IpOverrideData" - } - ], - "resultType": ".google.cloud.recaptchaenterprise.v1.AddIpOverrideResponse", - "client": { - "shortName": "RecaptchaEnterpriseServiceClient", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseServiceClient" - }, - "method": { - "shortName": "AddIpOverride", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.AddIpOverride", - "service": { - "shortName": "RecaptchaEnterpriseService", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" - } - } - } - }, - { - "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_RemoveIpOverride_async", - "title": "RecaptchaEnterpriseService removeIpOverride Sample", - "origin": "API_DEFINITION", - "description": " Removes an IP override from a key. The following restrictions hold: * If the IP isn't found in an existing IP override, a `NOT_FOUND` error is returned. * If the IP is found in an existing IP override, but the override type does not match, a `NOT_FOUND` error is returned.", - "canonical": true, - "file": "recaptcha_enterprise_service.remove_ip_override.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveIpOverride", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.RemoveIpOverride", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "ip_override_data", - "type": ".google.cloud.recaptchaenterprise.v1.IpOverrideData" - } - ], - "resultType": ".google.cloud.recaptchaenterprise.v1.RemoveIpOverrideResponse", - "client": { - "shortName": "RecaptchaEnterpriseServiceClient", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseServiceClient" - }, - "method": { - "shortName": "RemoveIpOverride", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.RemoveIpOverride", - "service": { - "shortName": "RecaptchaEnterpriseService", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" - } - } - } - }, - { - "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_ListIpOverrides_async", - "title": "RecaptchaEnterpriseService listIpOverrides Sample", - "origin": "API_DEFINITION", - "description": " Lists all IP overrides for a key.", - "canonical": true, - "file": "recaptcha_enterprise_service.list_ip_overrides.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListIpOverrides", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.ListIpOverrides", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.recaptchaenterprise.v1.ListIpOverridesResponse", - "client": { - "shortName": "RecaptchaEnterpriseServiceClient", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseServiceClient" - }, - "method": { - "shortName": "ListIpOverrides", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.ListIpOverrides", - "service": { - "shortName": "RecaptchaEnterpriseService", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" - } - } - } - }, - { - "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_GetMetrics_async", - "title": "RecaptchaEnterpriseService getMetrics Sample", - "origin": "API_DEFINITION", - "description": " Get some aggregated metrics for a Key. This data can be used to build dashboards.", - "canonical": true, - "file": "recaptcha_enterprise_service.get_metrics.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMetrics", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.GetMetrics", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.recaptchaenterprise.v1.Metrics", - "client": { - "shortName": "RecaptchaEnterpriseServiceClient", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseServiceClient" - }, - "method": { - "shortName": "GetMetrics", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.GetMetrics", - "service": { - "shortName": "RecaptchaEnterpriseService", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" - } - } - } - }, - { - "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_CreateFirewallPolicy_async", - "title": "RecaptchaEnterpriseService createFirewallPolicy Sample", - "origin": "API_DEFINITION", - "description": " Creates a new FirewallPolicy, specifying conditions at which reCAPTCHA Enterprise actions can be executed. A project may have a maximum of 1000 policies.", - "canonical": true, - "file": "recaptcha_enterprise_service.create_firewall_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateFirewallPolicy", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.CreateFirewallPolicy", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "firewall_policy", - "type": ".google.cloud.recaptchaenterprise.v1.FirewallPolicy" - } - ], - "resultType": ".google.cloud.recaptchaenterprise.v1.FirewallPolicy", - "client": { - "shortName": "RecaptchaEnterpriseServiceClient", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseServiceClient" - }, - "method": { - "shortName": "CreateFirewallPolicy", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.CreateFirewallPolicy", - "service": { - "shortName": "RecaptchaEnterpriseService", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" - } - } - } - }, - { - "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_ListFirewallPolicies_async", - "title": "RecaptchaEnterpriseService listFirewallPolicies Sample", - "origin": "API_DEFINITION", - "description": " Returns the list of all firewall policies that belong to a project.", - "canonical": true, - "file": "recaptcha_enterprise_service.list_firewall_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFirewallPolicies", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.ListFirewallPolicies", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.recaptchaenterprise.v1.ListFirewallPoliciesResponse", - "client": { - "shortName": "RecaptchaEnterpriseServiceClient", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseServiceClient" - }, - "method": { - "shortName": "ListFirewallPolicies", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.ListFirewallPolicies", - "service": { - "shortName": "RecaptchaEnterpriseService", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" - } - } - } - }, - { - "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_GetFirewallPolicy_async", - "title": "RecaptchaEnterpriseService getFirewallPolicy Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified firewall policy.", - "canonical": true, - "file": "recaptcha_enterprise_service.get_firewall_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFirewallPolicy", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.GetFirewallPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.recaptchaenterprise.v1.FirewallPolicy", - "client": { - "shortName": "RecaptchaEnterpriseServiceClient", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseServiceClient" - }, - "method": { - "shortName": "GetFirewallPolicy", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.GetFirewallPolicy", - "service": { - "shortName": "RecaptchaEnterpriseService", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" - } - } - } - }, - { - "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_UpdateFirewallPolicy_async", - "title": "RecaptchaEnterpriseService updateFirewallPolicy Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified firewall policy.", - "canonical": true, - "file": "recaptcha_enterprise_service.update_firewall_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateFirewallPolicy", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.UpdateFirewallPolicy", - "async": true, - "parameters": [ - { - "name": "firewall_policy", - "type": ".google.cloud.recaptchaenterprise.v1.FirewallPolicy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.recaptchaenterprise.v1.FirewallPolicy", - "client": { - "shortName": "RecaptchaEnterpriseServiceClient", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseServiceClient" - }, - "method": { - "shortName": "UpdateFirewallPolicy", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.UpdateFirewallPolicy", - "service": { - "shortName": "RecaptchaEnterpriseService", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" - } - } - } - }, - { - "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_DeleteFirewallPolicy_async", - "title": "RecaptchaEnterpriseService deleteFirewallPolicy Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified firewall policy.", - "canonical": true, - "file": "recaptcha_enterprise_service.delete_firewall_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteFirewallPolicy", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.DeleteFirewallPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "RecaptchaEnterpriseServiceClient", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseServiceClient" - }, - "method": { - "shortName": "DeleteFirewallPolicy", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.DeleteFirewallPolicy", - "service": { - "shortName": "RecaptchaEnterpriseService", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" - } - } - } - }, - { - "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_ReorderFirewallPolicies_async", - "title": "RecaptchaEnterpriseService reorderFirewallPolicies Sample", - "origin": "API_DEFINITION", - "description": " Reorders all firewall policies.", - "canonical": true, - "file": "recaptcha_enterprise_service.reorder_firewall_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReorderFirewallPolicies", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.ReorderFirewallPolicies", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "names", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.cloud.recaptchaenterprise.v1.ReorderFirewallPoliciesResponse", - "client": { - "shortName": "RecaptchaEnterpriseServiceClient", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseServiceClient" - }, - "method": { - "shortName": "ReorderFirewallPolicies", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.ReorderFirewallPolicies", - "service": { - "shortName": "RecaptchaEnterpriseService", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" - } - } - } - }, - { - "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_ListRelatedAccountGroups_async", - "title": "RecaptchaEnterpriseService listRelatedAccountGroups Sample", - "origin": "API_DEFINITION", - "description": " List groups of related accounts.", - "canonical": true, - "file": "recaptcha_enterprise_service.list_related_account_groups.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRelatedAccountGroups", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.ListRelatedAccountGroups", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupsResponse", - "client": { - "shortName": "RecaptchaEnterpriseServiceClient", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseServiceClient" - }, - "method": { - "shortName": "ListRelatedAccountGroups", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.ListRelatedAccountGroups", - "service": { - "shortName": "RecaptchaEnterpriseService", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" - } - } - } - }, - { - "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_ListRelatedAccountGroupMemberships_async", - "title": "RecaptchaEnterpriseService listRelatedAccountGroupMemberships Sample", - "origin": "API_DEFINITION", - "description": " Get memberships in a group of related accounts.", - "canonical": true, - "file": "recaptcha_enterprise_service.list_related_account_group_memberships.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRelatedAccountGroupMemberships", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.ListRelatedAccountGroupMemberships", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.recaptchaenterprise.v1.ListRelatedAccountGroupMembershipsResponse", - "client": { - "shortName": "RecaptchaEnterpriseServiceClient", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseServiceClient" - }, - "method": { - "shortName": "ListRelatedAccountGroupMemberships", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.ListRelatedAccountGroupMemberships", - "service": { - "shortName": "RecaptchaEnterpriseService", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" - } - } - } - }, - { - "regionTag": "recaptchaenterprise_v1_generated_RecaptchaEnterpriseService_SearchRelatedAccountGroupMemberships_async", - "title": "RecaptchaEnterpriseService searchRelatedAccountGroupMemberships Sample", - "origin": "API_DEFINITION", - "description": " Search group memberships related to a given account.", - "canonical": true, - "file": "recaptcha_enterprise_service.search_related_account_group_memberships.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchRelatedAccountGroupMemberships", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.SearchRelatedAccountGroupMemberships", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "account_id", - "type": "TYPE_STRING" - }, - { - "name": "hashed_account_id", - "type": "TYPE_BYTES" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse", - "client": { - "shortName": "RecaptchaEnterpriseServiceClient", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseServiceClient" - }, - "method": { - "shortName": "SearchRelatedAccountGroupMemberships", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService.SearchRelatedAccountGroupMemberships", - "service": { - "shortName": "RecaptchaEnterpriseService", - "fullName": "google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-recaptchaenterprise/samples/generated/v1beta1/snippet_metadata_google.cloud.recaptchaenterprise.v1beta1.json b/packages/google-cloud-recaptchaenterprise/samples/generated/v1beta1/snippet_metadata_google.cloud.recaptchaenterprise.v1beta1.json deleted file mode 100644 index fbfb454ff8aa..000000000000 --- a/packages/google-cloud-recaptchaenterprise/samples/generated/v1beta1/snippet_metadata_google.cloud.recaptchaenterprise.v1beta1.json +++ /dev/null @@ -1,115 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-recaptchaenterprise", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.recaptchaenterprise.v1beta1", - "version": "v1beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "recaptchaenterprise_v1beta1_generated_RecaptchaEnterpriseServiceV1Beta1_CreateAssessment_async", - "title": "RecaptchaEnterpriseServiceV1Beta1 createAssessment Sample", - "origin": "API_DEFINITION", - "description": " Creates an Assessment of the likelihood an event is legitimate.", - "canonical": true, - "file": "recaptcha_enterprise_service_v1_beta1.create_assessment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAssessment", - "fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1.CreateAssessment", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "assessment", - "type": ".google.cloud.recaptchaenterprise.v1beta1.Assessment" - } - ], - "resultType": ".google.cloud.recaptchaenterprise.v1beta1.Assessment", - "client": { - "shortName": "RecaptchaEnterpriseServiceV1Beta1Client", - "fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1Client" - }, - "method": { - "shortName": "CreateAssessment", - "fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1.CreateAssessment", - "service": { - "shortName": "RecaptchaEnterpriseServiceV1Beta1", - "fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1" - } - } - } - }, - { - "regionTag": "recaptchaenterprise_v1beta1_generated_RecaptchaEnterpriseServiceV1Beta1_AnnotateAssessment_async", - "title": "RecaptchaEnterpriseServiceV1Beta1 annotateAssessment Sample", - "origin": "API_DEFINITION", - "description": " Annotates a previously created Assessment to provide additional information on whether the event turned out to be authentic or fradulent.", - "canonical": true, - "file": "recaptcha_enterprise_service_v1_beta1.annotate_assessment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AnnotateAssessment", - "fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1.AnnotateAssessment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "annotation", - "type": ".google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation" - }, - { - "name": "reasons", - "type": "TYPE_ENUM[]" - }, - { - "name": "hashed_account_id", - "type": "TYPE_BYTES" - }, - { - "name": "transaction_event", - "type": ".google.cloud.recaptchaenterprise.v1beta1.TransactionEvent" - } - ], - "resultType": ".google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse", - "client": { - "shortName": "RecaptchaEnterpriseServiceV1Beta1Client", - "fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1Client" - }, - "method": { - "shortName": "AnnotateAssessment", - "fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1.AnnotateAssessment", - "service": { - "shortName": "RecaptchaEnterpriseServiceV1Beta1", - "fullName": "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1" - } - } - } - } - ] -} diff --git a/packages/google-cloud-recommender/samples/generated/v1/snippet_metadata_google.cloud.recommender.v1.json b/packages/google-cloud-recommender/samples/generated/v1/snippet_metadata_google.cloud.recommender.v1.json deleted file mode 100644 index 96333371614f..000000000000 --- a/packages/google-cloud-recommender/samples/generated/v1/snippet_metadata_google.cloud.recommender.v1.json +++ /dev/null @@ -1,611 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-recommender", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.recommender.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "recommender_v1_generated_Recommender_ListInsights_async", - "title": "Recommender listInsights Sample", - "origin": "API_DEFINITION", - "description": " Lists insights for the specified Cloud Resource. Requires the recommender.*.list IAM permission for the specified insight type.", - "canonical": true, - "file": "recommender.list_insights.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 97, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListInsights", - "fullName": "google.cloud.recommender.v1.Recommender.ListInsights", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.recommender.v1.ListInsightsResponse", - "client": { - "shortName": "RecommenderClient", - "fullName": "google.cloud.recommender.v1.RecommenderClient" - }, - "method": { - "shortName": "ListInsights", - "fullName": "google.cloud.recommender.v1.Recommender.ListInsights", - "service": { - "shortName": "Recommender", - "fullName": "google.cloud.recommender.v1.Recommender" - } - } - } - }, - { - "regionTag": "recommender_v1_generated_Recommender_GetInsight_async", - "title": "Recommender getInsight Sample", - "origin": "API_DEFINITION", - "description": " Gets the requested insight. Requires the recommender.*.get IAM permission for the specified insight type.", - "canonical": true, - "file": "recommender.get_insight.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetInsight", - "fullName": "google.cloud.recommender.v1.Recommender.GetInsight", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.recommender.v1.Insight", - "client": { - "shortName": "RecommenderClient", - "fullName": "google.cloud.recommender.v1.RecommenderClient" - }, - "method": { - "shortName": "GetInsight", - "fullName": "google.cloud.recommender.v1.Recommender.GetInsight", - "service": { - "shortName": "Recommender", - "fullName": "google.cloud.recommender.v1.Recommender" - } - } - } - }, - { - "regionTag": "recommender_v1_generated_Recommender_MarkInsightAccepted_async", - "title": "Recommender markInsightAccepted Sample", - "origin": "API_DEFINITION", - "description": " Marks the Insight State as Accepted. Users can use this method to indicate to the Recommender API that they have applied some action based on the insight. This stops the insight content from being updated. MarkInsightAccepted can be applied to insights in ACTIVE state. Requires the recommender.*.update IAM permission for the specified insight.", - "canonical": true, - "file": "recommender.mark_insight_accepted.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "MarkInsightAccepted", - "fullName": "google.cloud.recommender.v1.Recommender.MarkInsightAccepted", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "state_metadata", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.recommender.v1.Insight", - "client": { - "shortName": "RecommenderClient", - "fullName": "google.cloud.recommender.v1.RecommenderClient" - }, - "method": { - "shortName": "MarkInsightAccepted", - "fullName": "google.cloud.recommender.v1.Recommender.MarkInsightAccepted", - "service": { - "shortName": "Recommender", - "fullName": "google.cloud.recommender.v1.Recommender" - } - } - } - }, - { - "regionTag": "recommender_v1_generated_Recommender_ListRecommendations_async", - "title": "Recommender listRecommendations Sample", - "origin": "API_DEFINITION", - "description": " Lists recommendations for the specified Cloud Resource. Requires the recommender.*.list IAM permission for the specified recommender.", - "canonical": true, - "file": "recommender.list_recommendations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 97, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRecommendations", - "fullName": "google.cloud.recommender.v1.Recommender.ListRecommendations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.recommender.v1.ListRecommendationsResponse", - "client": { - "shortName": "RecommenderClient", - "fullName": "google.cloud.recommender.v1.RecommenderClient" - }, - "method": { - "shortName": "ListRecommendations", - "fullName": "google.cloud.recommender.v1.Recommender.ListRecommendations", - "service": { - "shortName": "Recommender", - "fullName": "google.cloud.recommender.v1.Recommender" - } - } - } - }, - { - "regionTag": "recommender_v1_generated_Recommender_GetRecommendation_async", - "title": "Recommender getRecommendation Sample", - "origin": "API_DEFINITION", - "description": " Gets the requested recommendation. Requires the recommender.*.get IAM permission for the specified recommender.", - "canonical": true, - "file": "recommender.get_recommendation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRecommendation", - "fullName": "google.cloud.recommender.v1.Recommender.GetRecommendation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.recommender.v1.Recommendation", - "client": { - "shortName": "RecommenderClient", - "fullName": "google.cloud.recommender.v1.RecommenderClient" - }, - "method": { - "shortName": "GetRecommendation", - "fullName": "google.cloud.recommender.v1.Recommender.GetRecommendation", - "service": { - "shortName": "Recommender", - "fullName": "google.cloud.recommender.v1.Recommender" - } - } - } - }, - { - "regionTag": "recommender_v1_generated_Recommender_MarkRecommendationDismissed_async", - "title": "Recommender markRecommendationDismissed Sample", - "origin": "API_DEFINITION", - "description": " Mark the Recommendation State as Dismissed. Users can use this method to indicate to the Recommender API that an ACTIVE recommendation has to be marked back as DISMISSED. MarkRecommendationDismissed can be applied to recommendations in ACTIVE state. Requires the recommender.*.update IAM permission for the specified recommender.", - "canonical": true, - "file": "recommender.mark_recommendation_dismissed.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "MarkRecommendationDismissed", - "fullName": "google.cloud.recommender.v1.Recommender.MarkRecommendationDismissed", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.recommender.v1.Recommendation", - "client": { - "shortName": "RecommenderClient", - "fullName": "google.cloud.recommender.v1.RecommenderClient" - }, - "method": { - "shortName": "MarkRecommendationDismissed", - "fullName": "google.cloud.recommender.v1.Recommender.MarkRecommendationDismissed", - "service": { - "shortName": "Recommender", - "fullName": "google.cloud.recommender.v1.Recommender" - } - } - } - }, - { - "regionTag": "recommender_v1_generated_Recommender_MarkRecommendationClaimed_async", - "title": "Recommender markRecommendationClaimed Sample", - "origin": "API_DEFINITION", - "description": " Marks the Recommendation State as Claimed. Users can use this method to indicate to the Recommender API that they are starting to apply the recommendation themselves. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationClaimed can be applied to recommendations in CLAIMED, SUCCEEDED, FAILED, or ACTIVE state. Requires the recommender.*.update IAM permission for the specified recommender.", - "canonical": true, - "file": "recommender.mark_recommendation_claimed.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "MarkRecommendationClaimed", - "fullName": "google.cloud.recommender.v1.Recommender.MarkRecommendationClaimed", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "state_metadata", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.recommender.v1.Recommendation", - "client": { - "shortName": "RecommenderClient", - "fullName": "google.cloud.recommender.v1.RecommenderClient" - }, - "method": { - "shortName": "MarkRecommendationClaimed", - "fullName": "google.cloud.recommender.v1.Recommender.MarkRecommendationClaimed", - "service": { - "shortName": "Recommender", - "fullName": "google.cloud.recommender.v1.Recommender" - } - } - } - }, - { - "regionTag": "recommender_v1_generated_Recommender_MarkRecommendationSucceeded_async", - "title": "Recommender markRecommendationSucceeded Sample", - "origin": "API_DEFINITION", - "description": " Marks the Recommendation State as Succeeded. Users can use this method to indicate to the Recommender API that they have applied the recommendation themselves, and the operation was successful. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationSucceeded can be applied to recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM permission for the specified recommender.", - "canonical": true, - "file": "recommender.mark_recommendation_succeeded.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "MarkRecommendationSucceeded", - "fullName": "google.cloud.recommender.v1.Recommender.MarkRecommendationSucceeded", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "state_metadata", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.recommender.v1.Recommendation", - "client": { - "shortName": "RecommenderClient", - "fullName": "google.cloud.recommender.v1.RecommenderClient" - }, - "method": { - "shortName": "MarkRecommendationSucceeded", - "fullName": "google.cloud.recommender.v1.Recommender.MarkRecommendationSucceeded", - "service": { - "shortName": "Recommender", - "fullName": "google.cloud.recommender.v1.Recommender" - } - } - } - }, - { - "regionTag": "recommender_v1_generated_Recommender_MarkRecommendationFailed_async", - "title": "Recommender markRecommendationFailed Sample", - "origin": "API_DEFINITION", - "description": " Marks the Recommendation State as Failed. Users can use this method to indicate to the Recommender API that they have applied the recommendation themselves, and the operation failed. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationFailed can be applied to recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM permission for the specified recommender.", - "canonical": true, - "file": "recommender.mark_recommendation_failed.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "MarkRecommendationFailed", - "fullName": "google.cloud.recommender.v1.Recommender.MarkRecommendationFailed", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "state_metadata", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.recommender.v1.Recommendation", - "client": { - "shortName": "RecommenderClient", - "fullName": "google.cloud.recommender.v1.RecommenderClient" - }, - "method": { - "shortName": "MarkRecommendationFailed", - "fullName": "google.cloud.recommender.v1.Recommender.MarkRecommendationFailed", - "service": { - "shortName": "Recommender", - "fullName": "google.cloud.recommender.v1.Recommender" - } - } - } - }, - { - "regionTag": "recommender_v1_generated_Recommender_GetRecommenderConfig_async", - "title": "Recommender getRecommenderConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets the requested Recommender Config. There is only one instance of the config for each Recommender.", - "canonical": true, - "file": "recommender.get_recommender_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRecommenderConfig", - "fullName": "google.cloud.recommender.v1.Recommender.GetRecommenderConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.recommender.v1.RecommenderConfig", - "client": { - "shortName": "RecommenderClient", - "fullName": "google.cloud.recommender.v1.RecommenderClient" - }, - "method": { - "shortName": "GetRecommenderConfig", - "fullName": "google.cloud.recommender.v1.Recommender.GetRecommenderConfig", - "service": { - "shortName": "Recommender", - "fullName": "google.cloud.recommender.v1.Recommender" - } - } - } - }, - { - "regionTag": "recommender_v1_generated_Recommender_UpdateRecommenderConfig_async", - "title": "Recommender updateRecommenderConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates a Recommender Config. This will create a new revision of the config.", - "canonical": true, - "file": "recommender.update_recommender_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateRecommenderConfig", - "fullName": "google.cloud.recommender.v1.Recommender.UpdateRecommenderConfig", - "async": true, - "parameters": [ - { - "name": "recommender_config", - "type": ".google.cloud.recommender.v1.RecommenderConfig" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.recommender.v1.RecommenderConfig", - "client": { - "shortName": "RecommenderClient", - "fullName": "google.cloud.recommender.v1.RecommenderClient" - }, - "method": { - "shortName": "UpdateRecommenderConfig", - "fullName": "google.cloud.recommender.v1.Recommender.UpdateRecommenderConfig", - "service": { - "shortName": "Recommender", - "fullName": "google.cloud.recommender.v1.Recommender" - } - } - } - }, - { - "regionTag": "recommender_v1_generated_Recommender_GetInsightTypeConfig_async", - "title": "Recommender getInsightTypeConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets the requested InsightTypeConfig. There is only one instance of the config for each InsightType.", - "canonical": true, - "file": "recommender.get_insight_type_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetInsightTypeConfig", - "fullName": "google.cloud.recommender.v1.Recommender.GetInsightTypeConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.recommender.v1.InsightTypeConfig", - "client": { - "shortName": "RecommenderClient", - "fullName": "google.cloud.recommender.v1.RecommenderClient" - }, - "method": { - "shortName": "GetInsightTypeConfig", - "fullName": "google.cloud.recommender.v1.Recommender.GetInsightTypeConfig", - "service": { - "shortName": "Recommender", - "fullName": "google.cloud.recommender.v1.Recommender" - } - } - } - }, - { - "regionTag": "recommender_v1_generated_Recommender_UpdateInsightTypeConfig_async", - "title": "Recommender updateInsightTypeConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates an InsightTypeConfig change. This will create a new revision of the config.", - "canonical": true, - "file": "recommender.update_insight_type_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateInsightTypeConfig", - "fullName": "google.cloud.recommender.v1.Recommender.UpdateInsightTypeConfig", - "async": true, - "parameters": [ - { - "name": "insight_type_config", - "type": ".google.cloud.recommender.v1.InsightTypeConfig" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.recommender.v1.InsightTypeConfig", - "client": { - "shortName": "RecommenderClient", - "fullName": "google.cloud.recommender.v1.RecommenderClient" - }, - "method": { - "shortName": "UpdateInsightTypeConfig", - "fullName": "google.cloud.recommender.v1.Recommender.UpdateInsightTypeConfig", - "service": { - "shortName": "Recommender", - "fullName": "google.cloud.recommender.v1.Recommender" - } - } - } - } - ] -} diff --git a/packages/google-cloud-recommender/samples/generated/v1beta1/snippet_metadata_google.cloud.recommender.v1beta1.json b/packages/google-cloud-recommender/samples/generated/v1beta1/snippet_metadata_google.cloud.recommender.v1beta1.json deleted file mode 100644 index 081c519763e4..000000000000 --- a/packages/google-cloud-recommender/samples/generated/v1beta1/snippet_metadata_google.cloud.recommender.v1beta1.json +++ /dev/null @@ -1,655 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-recommender", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.recommender.v1beta1", - "version": "v1beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "recommender_v1beta1_generated_Recommender_ListInsights_async", - "title": "Recommender listInsights Sample", - "origin": "API_DEFINITION", - "description": " Lists insights for the specified Cloud Resource. Requires the recommender.*.list IAM permission for the specified insight type.", - "canonical": true, - "file": "recommender.list_insights.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 93, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListInsights", - "fullName": "google.cloud.recommender.v1beta1.Recommender.ListInsights", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.recommender.v1beta1.ListInsightsResponse", - "client": { - "shortName": "RecommenderClient", - "fullName": "google.cloud.recommender.v1beta1.RecommenderClient" - }, - "method": { - "shortName": "ListInsights", - "fullName": "google.cloud.recommender.v1beta1.Recommender.ListInsights", - "service": { - "shortName": "Recommender", - "fullName": "google.cloud.recommender.v1beta1.Recommender" - } - } - } - }, - { - "regionTag": "recommender_v1beta1_generated_Recommender_GetInsight_async", - "title": "Recommender getInsight Sample", - "origin": "API_DEFINITION", - "description": " Gets the requested insight. Requires the recommender.*.get IAM permission for the specified insight type.", - "canonical": true, - "file": "recommender.get_insight.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetInsight", - "fullName": "google.cloud.recommender.v1beta1.Recommender.GetInsight", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.recommender.v1beta1.Insight", - "client": { - "shortName": "RecommenderClient", - "fullName": "google.cloud.recommender.v1beta1.RecommenderClient" - }, - "method": { - "shortName": "GetInsight", - "fullName": "google.cloud.recommender.v1beta1.Recommender.GetInsight", - "service": { - "shortName": "Recommender", - "fullName": "google.cloud.recommender.v1beta1.Recommender" - } - } - } - }, - { - "regionTag": "recommender_v1beta1_generated_Recommender_MarkInsightAccepted_async", - "title": "Recommender markInsightAccepted Sample", - "origin": "API_DEFINITION", - "description": " Marks the Insight State as Accepted. Users can use this method to indicate to the Recommender API that they have applied some action based on the insight. This stops the insight content from being updated. MarkInsightAccepted can be applied to insights in ACTIVE state. Requires the recommender.*.update IAM permission for the specified insight.", - "canonical": true, - "file": "recommender.mark_insight_accepted.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "MarkInsightAccepted", - "fullName": "google.cloud.recommender.v1beta1.Recommender.MarkInsightAccepted", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "state_metadata", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.recommender.v1beta1.Insight", - "client": { - "shortName": "RecommenderClient", - "fullName": "google.cloud.recommender.v1beta1.RecommenderClient" - }, - "method": { - "shortName": "MarkInsightAccepted", - "fullName": "google.cloud.recommender.v1beta1.Recommender.MarkInsightAccepted", - "service": { - "shortName": "Recommender", - "fullName": "google.cloud.recommender.v1beta1.Recommender" - } - } - } - }, - { - "regionTag": "recommender_v1beta1_generated_Recommender_ListRecommendations_async", - "title": "Recommender listRecommendations Sample", - "origin": "API_DEFINITION", - "description": " Lists recommendations for the specified Cloud Resource. Requires the recommender.*.list IAM permission for the specified recommender.", - "canonical": true, - "file": "recommender.list_recommendations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 93, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRecommendations", - "fullName": "google.cloud.recommender.v1beta1.Recommender.ListRecommendations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.recommender.v1beta1.ListRecommendationsResponse", - "client": { - "shortName": "RecommenderClient", - "fullName": "google.cloud.recommender.v1beta1.RecommenderClient" - }, - "method": { - "shortName": "ListRecommendations", - "fullName": "google.cloud.recommender.v1beta1.Recommender.ListRecommendations", - "service": { - "shortName": "Recommender", - "fullName": "google.cloud.recommender.v1beta1.Recommender" - } - } - } - }, - { - "regionTag": "recommender_v1beta1_generated_Recommender_GetRecommendation_async", - "title": "Recommender getRecommendation Sample", - "origin": "API_DEFINITION", - "description": " Gets the requested recommendation. Requires the recommender.*.get IAM permission for the specified recommender.", - "canonical": true, - "file": "recommender.get_recommendation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRecommendation", - "fullName": "google.cloud.recommender.v1beta1.Recommender.GetRecommendation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.recommender.v1beta1.Recommendation", - "client": { - "shortName": "RecommenderClient", - "fullName": "google.cloud.recommender.v1beta1.RecommenderClient" - }, - "method": { - "shortName": "GetRecommendation", - "fullName": "google.cloud.recommender.v1beta1.Recommender.GetRecommendation", - "service": { - "shortName": "Recommender", - "fullName": "google.cloud.recommender.v1beta1.Recommender" - } - } - } - }, - { - "regionTag": "recommender_v1beta1_generated_Recommender_MarkRecommendationClaimed_async", - "title": "Recommender markRecommendationClaimed Sample", - "origin": "API_DEFINITION", - "description": " Marks the Recommendation State as Claimed. Users can use this method to indicate to the Recommender API that they are starting to apply the recommendation themselves. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationClaimed can be applied to recommendations in CLAIMED or ACTIVE state. Requires the recommender.*.update IAM permission for the specified recommender.", - "canonical": true, - "file": "recommender.mark_recommendation_claimed.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "MarkRecommendationClaimed", - "fullName": "google.cloud.recommender.v1beta1.Recommender.MarkRecommendationClaimed", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "state_metadata", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.recommender.v1beta1.Recommendation", - "client": { - "shortName": "RecommenderClient", - "fullName": "google.cloud.recommender.v1beta1.RecommenderClient" - }, - "method": { - "shortName": "MarkRecommendationClaimed", - "fullName": "google.cloud.recommender.v1beta1.Recommender.MarkRecommendationClaimed", - "service": { - "shortName": "Recommender", - "fullName": "google.cloud.recommender.v1beta1.Recommender" - } - } - } - }, - { - "regionTag": "recommender_v1beta1_generated_Recommender_MarkRecommendationSucceeded_async", - "title": "Recommender markRecommendationSucceeded Sample", - "origin": "API_DEFINITION", - "description": " Marks the Recommendation State as Succeeded. Users can use this method to indicate to the Recommender API that they have applied the recommendation themselves, and the operation was successful. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationSucceeded can be applied to recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM permission for the specified recommender.", - "canonical": true, - "file": "recommender.mark_recommendation_succeeded.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "MarkRecommendationSucceeded", - "fullName": "google.cloud.recommender.v1beta1.Recommender.MarkRecommendationSucceeded", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "state_metadata", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.recommender.v1beta1.Recommendation", - "client": { - "shortName": "RecommenderClient", - "fullName": "google.cloud.recommender.v1beta1.RecommenderClient" - }, - "method": { - "shortName": "MarkRecommendationSucceeded", - "fullName": "google.cloud.recommender.v1beta1.Recommender.MarkRecommendationSucceeded", - "service": { - "shortName": "Recommender", - "fullName": "google.cloud.recommender.v1beta1.Recommender" - } - } - } - }, - { - "regionTag": "recommender_v1beta1_generated_Recommender_MarkRecommendationFailed_async", - "title": "Recommender markRecommendationFailed Sample", - "origin": "API_DEFINITION", - "description": " Marks the Recommendation State as Failed. Users can use this method to indicate to the Recommender API that they have applied the recommendation themselves, and the operation failed. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationFailed can be applied to recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM permission for the specified recommender.", - "canonical": true, - "file": "recommender.mark_recommendation_failed.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "MarkRecommendationFailed", - "fullName": "google.cloud.recommender.v1beta1.Recommender.MarkRecommendationFailed", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "state_metadata", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.recommender.v1beta1.Recommendation", - "client": { - "shortName": "RecommenderClient", - "fullName": "google.cloud.recommender.v1beta1.RecommenderClient" - }, - "method": { - "shortName": "MarkRecommendationFailed", - "fullName": "google.cloud.recommender.v1beta1.Recommender.MarkRecommendationFailed", - "service": { - "shortName": "Recommender", - "fullName": "google.cloud.recommender.v1beta1.Recommender" - } - } - } - }, - { - "regionTag": "recommender_v1beta1_generated_Recommender_GetRecommenderConfig_async", - "title": "Recommender getRecommenderConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets the requested Recommender Config. There is only one instance of the config for each Recommender.", - "canonical": true, - "file": "recommender.get_recommender_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRecommenderConfig", - "fullName": "google.cloud.recommender.v1beta1.Recommender.GetRecommenderConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.recommender.v1beta1.RecommenderConfig", - "client": { - "shortName": "RecommenderClient", - "fullName": "google.cloud.recommender.v1beta1.RecommenderClient" - }, - "method": { - "shortName": "GetRecommenderConfig", - "fullName": "google.cloud.recommender.v1beta1.Recommender.GetRecommenderConfig", - "service": { - "shortName": "Recommender", - "fullName": "google.cloud.recommender.v1beta1.Recommender" - } - } - } - }, - { - "regionTag": "recommender_v1beta1_generated_Recommender_UpdateRecommenderConfig_async", - "title": "Recommender updateRecommenderConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates a Recommender Config. This will create a new revision of the config.", - "canonical": true, - "file": "recommender.update_recommender_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateRecommenderConfig", - "fullName": "google.cloud.recommender.v1beta1.Recommender.UpdateRecommenderConfig", - "async": true, - "parameters": [ - { - "name": "recommender_config", - "type": ".google.cloud.recommender.v1beta1.RecommenderConfig" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.recommender.v1beta1.RecommenderConfig", - "client": { - "shortName": "RecommenderClient", - "fullName": "google.cloud.recommender.v1beta1.RecommenderClient" - }, - "method": { - "shortName": "UpdateRecommenderConfig", - "fullName": "google.cloud.recommender.v1beta1.Recommender.UpdateRecommenderConfig", - "service": { - "shortName": "Recommender", - "fullName": "google.cloud.recommender.v1beta1.Recommender" - } - } - } - }, - { - "regionTag": "recommender_v1beta1_generated_Recommender_GetInsightTypeConfig_async", - "title": "Recommender getInsightTypeConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets the requested InsightTypeConfig. There is only one instance of the config for each InsightType.", - "canonical": true, - "file": "recommender.get_insight_type_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetInsightTypeConfig", - "fullName": "google.cloud.recommender.v1beta1.Recommender.GetInsightTypeConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.recommender.v1beta1.InsightTypeConfig", - "client": { - "shortName": "RecommenderClient", - "fullName": "google.cloud.recommender.v1beta1.RecommenderClient" - }, - "method": { - "shortName": "GetInsightTypeConfig", - "fullName": "google.cloud.recommender.v1beta1.Recommender.GetInsightTypeConfig", - "service": { - "shortName": "Recommender", - "fullName": "google.cloud.recommender.v1beta1.Recommender" - } - } - } - }, - { - "regionTag": "recommender_v1beta1_generated_Recommender_UpdateInsightTypeConfig_async", - "title": "Recommender updateInsightTypeConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates an InsightTypeConfig change. This will create a new revision of the config.", - "canonical": true, - "file": "recommender.update_insight_type_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateInsightTypeConfig", - "fullName": "google.cloud.recommender.v1beta1.Recommender.UpdateInsightTypeConfig", - "async": true, - "parameters": [ - { - "name": "insight_type_config", - "type": ".google.cloud.recommender.v1beta1.InsightTypeConfig" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.recommender.v1beta1.InsightTypeConfig", - "client": { - "shortName": "RecommenderClient", - "fullName": "google.cloud.recommender.v1beta1.RecommenderClient" - }, - "method": { - "shortName": "UpdateInsightTypeConfig", - "fullName": "google.cloud.recommender.v1beta1.Recommender.UpdateInsightTypeConfig", - "service": { - "shortName": "Recommender", - "fullName": "google.cloud.recommender.v1beta1.Recommender" - } - } - } - }, - { - "regionTag": "recommender_v1beta1_generated_Recommender_ListRecommenders_async", - "title": "Recommender listRecommenders Sample", - "origin": "API_DEFINITION", - "description": " Lists all available Recommenders. No IAM permissions are required.", - "canonical": true, - "file": "recommender.list_recommenders.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRecommenders", - "fullName": "google.cloud.recommender.v1beta1.Recommender.ListRecommenders", - "async": true, - "parameters": [ - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.recommender.v1beta1.ListRecommendersResponse", - "client": { - "shortName": "RecommenderClient", - "fullName": "google.cloud.recommender.v1beta1.RecommenderClient" - }, - "method": { - "shortName": "ListRecommenders", - "fullName": "google.cloud.recommender.v1beta1.Recommender.ListRecommenders", - "service": { - "shortName": "Recommender", - "fullName": "google.cloud.recommender.v1beta1.Recommender" - } - } - } - }, - { - "regionTag": "recommender_v1beta1_generated_Recommender_ListInsightTypes_async", - "title": "Recommender listInsightTypes Sample", - "origin": "API_DEFINITION", - "description": " Lists available InsightTypes. No IAM permissions are required.", - "canonical": true, - "file": "recommender.list_insight_types.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListInsightTypes", - "fullName": "google.cloud.recommender.v1beta1.Recommender.ListInsightTypes", - "async": true, - "parameters": [ - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.recommender.v1beta1.ListInsightTypesResponse", - "client": { - "shortName": "RecommenderClient", - "fullName": "google.cloud.recommender.v1beta1.RecommenderClient" - }, - "method": { - "shortName": "ListInsightTypes", - "fullName": "google.cloud.recommender.v1beta1.Recommender.ListInsightTypes", - "service": { - "shortName": "Recommender", - "fullName": "google.cloud.recommender.v1beta1.Recommender" - } - } - } - } - ] -} diff --git a/packages/google-cloud-redis-cluster/samples/generated/v1/snippet_metadata_google.cloud.redis.cluster.v1.json b/packages/google-cloud-redis-cluster/samples/generated/v1/snippet_metadata_google.cloud.redis.cluster.v1.json deleted file mode 100644 index 93e19b867950..000000000000 --- a/packages/google-cloud-redis-cluster/samples/generated/v1/snippet_metadata_google.cloud.redis.cluster.v1.json +++ /dev/null @@ -1,687 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-cluster", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.redis.cluster.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "redis_v1_generated_CloudRedisCluster_ListClusters_async", - "title": "CloudRedisCluster listClusters Sample", - "origin": "API_DEFINITION", - "description": " Lists all Redis clusters owned by a project in either the specified location (region) or all locations. The location should have the following format: * `projects/{project_id}/locations/{location_id}` If `location_id` is specified as `-` (wildcard), then all regions available to the project are queried, and the results are aggregated.", - "canonical": true, - "file": "cloud_redis_cluster.list_clusters.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListClusters", - "fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster.ListClusters", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.redis.cluster.v1.ListClustersResponse", - "client": { - "shortName": "CloudRedisClusterClient", - "fullName": "google.cloud.redis.cluster.v1.CloudRedisClusterClient" - }, - "method": { - "shortName": "ListClusters", - "fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster.ListClusters", - "service": { - "shortName": "CloudRedisCluster", - "fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster" - } - } - } - }, - { - "regionTag": "redis_v1_generated_CloudRedisCluster_GetCluster_async", - "title": "CloudRedisCluster getCluster Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a specific Redis cluster.", - "canonical": true, - "file": "cloud_redis_cluster.get_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCluster", - "fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster.GetCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.redis.cluster.v1.Cluster", - "client": { - "shortName": "CloudRedisClusterClient", - "fullName": "google.cloud.redis.cluster.v1.CloudRedisClusterClient" - }, - "method": { - "shortName": "GetCluster", - "fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster.GetCluster", - "service": { - "shortName": "CloudRedisCluster", - "fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster" - } - } - } - }, - { - "regionTag": "redis_v1_generated_CloudRedisCluster_UpdateCluster_async", - "title": "CloudRedisCluster updateCluster Sample", - "origin": "API_DEFINITION", - "description": " Updates the metadata and configuration of a specific Redis cluster. Completed longrunning.Operation will contain the new cluster object in the response field. The returned operation is automatically deleted after a few hours, so there is no need to call DeleteOperation.", - "canonical": true, - "file": "cloud_redis_cluster.update_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCluster", - "fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster.UpdateCluster", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "cluster", - "type": ".google.cloud.redis.cluster.v1.Cluster" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudRedisClusterClient", - "fullName": "google.cloud.redis.cluster.v1.CloudRedisClusterClient" - }, - "method": { - "shortName": "UpdateCluster", - "fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster.UpdateCluster", - "service": { - "shortName": "CloudRedisCluster", - "fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster" - } - } - } - }, - { - "regionTag": "redis_v1_generated_CloudRedisCluster_DeleteCluster_async", - "title": "CloudRedisCluster deleteCluster Sample", - "origin": "API_DEFINITION", - "description": " Deletes a specific Redis cluster. Cluster stops serving and data is deleted.", - "canonical": true, - "file": "cloud_redis_cluster.delete_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCluster", - "fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster.DeleteCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudRedisClusterClient", - "fullName": "google.cloud.redis.cluster.v1.CloudRedisClusterClient" - }, - "method": { - "shortName": "DeleteCluster", - "fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster.DeleteCluster", - "service": { - "shortName": "CloudRedisCluster", - "fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster" - } - } - } - }, - { - "regionTag": "redis_v1_generated_CloudRedisCluster_CreateCluster_async", - "title": "CloudRedisCluster createCluster Sample", - "origin": "API_DEFINITION", - "description": " Creates a Redis cluster based on the specified properties. The creation is executed asynchronously and callers may check the returned operation to track its progress. Once the operation is completed the Redis cluster will be fully functional. The completed longrunning.Operation will contain the new cluster object in the response field. The returned operation is automatically deleted after a few hours, so there is no need to call DeleteOperation.", - "canonical": true, - "file": "cloud_redis_cluster.create_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCluster", - "fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster.CreateCluster", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "cluster", - "type": ".google.cloud.redis.cluster.v1.Cluster" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudRedisClusterClient", - "fullName": "google.cloud.redis.cluster.v1.CloudRedisClusterClient" - }, - "method": { - "shortName": "CreateCluster", - "fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster.CreateCluster", - "service": { - "shortName": "CloudRedisCluster", - "fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster" - } - } - } - }, - { - "regionTag": "redis_v1_generated_CloudRedisCluster_GetClusterCertificateAuthority_async", - "title": "CloudRedisCluster getClusterCertificateAuthority Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of certificate authority information for Redis cluster.", - "canonical": true, - "file": "cloud_redis_cluster.get_cluster_certificate_authority.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetClusterCertificateAuthority", - "fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster.GetClusterCertificateAuthority", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.redis.cluster.v1.CertificateAuthority", - "client": { - "shortName": "CloudRedisClusterClient", - "fullName": "google.cloud.redis.cluster.v1.CloudRedisClusterClient" - }, - "method": { - "shortName": "GetClusterCertificateAuthority", - "fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster.GetClusterCertificateAuthority", - "service": { - "shortName": "CloudRedisCluster", - "fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster" - } - } - } - }, - { - "regionTag": "redis_v1_generated_CloudRedisCluster_GetSharedRegionalCertificateAuthority_async", - "title": "CloudRedisCluster getSharedRegionalCertificateAuthority Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of regional certificate authority information for Redis cluster.", - "canonical": true, - "file": "cloud_redis_cluster.get_shared_regional_certificate_authority.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSharedRegionalCertificateAuthority", - "fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster.GetSharedRegionalCertificateAuthority", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.redis.cluster.v1.SharedRegionalCertificateAuthority", - "client": { - "shortName": "CloudRedisClusterClient", - "fullName": "google.cloud.redis.cluster.v1.CloudRedisClusterClient" - }, - "method": { - "shortName": "GetSharedRegionalCertificateAuthority", - "fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster.GetSharedRegionalCertificateAuthority", - "service": { - "shortName": "CloudRedisCluster", - "fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster" - } - } - } - }, - { - "regionTag": "redis_v1_generated_CloudRedisCluster_RescheduleClusterMaintenance_async", - "title": "CloudRedisCluster rescheduleClusterMaintenance Sample", - "origin": "API_DEFINITION", - "description": " Reschedules upcoming maintenance event.", - "canonical": true, - "file": "cloud_redis_cluster.reschedule_cluster_maintenance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RescheduleClusterMaintenance", - "fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster.RescheduleClusterMaintenance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "reschedule_type", - "type": ".google.cloud.redis.cluster.v1.RescheduleClusterMaintenanceRequest.RescheduleType" - }, - { - "name": "schedule_time", - "type": ".google.protobuf.Timestamp" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudRedisClusterClient", - "fullName": "google.cloud.redis.cluster.v1.CloudRedisClusterClient" - }, - "method": { - "shortName": "RescheduleClusterMaintenance", - "fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster.RescheduleClusterMaintenance", - "service": { - "shortName": "CloudRedisCluster", - "fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster" - } - } - } - }, - { - "regionTag": "redis_v1_generated_CloudRedisCluster_ListBackupCollections_async", - "title": "CloudRedisCluster listBackupCollections Sample", - "origin": "API_DEFINITION", - "description": " Lists all backup collections owned by a consumer project in either the specified location (region) or all locations. If `location_id` is specified as `-` (wildcard), then all regions available to the project are queried, and the results are aggregated.", - "canonical": true, - "file": "cloud_redis_cluster.list_backup_collections.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBackupCollections", - "fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster.ListBackupCollections", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.redis.cluster.v1.ListBackupCollectionsResponse", - "client": { - "shortName": "CloudRedisClusterClient", - "fullName": "google.cloud.redis.cluster.v1.CloudRedisClusterClient" - }, - "method": { - "shortName": "ListBackupCollections", - "fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster.ListBackupCollections", - "service": { - "shortName": "CloudRedisCluster", - "fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster" - } - } - } - }, - { - "regionTag": "redis_v1_generated_CloudRedisCluster_GetBackupCollection_async", - "title": "CloudRedisCluster getBackupCollection Sample", - "origin": "API_DEFINITION", - "description": " Get a backup collection.", - "canonical": true, - "file": "cloud_redis_cluster.get_backup_collection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBackupCollection", - "fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster.GetBackupCollection", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.redis.cluster.v1.BackupCollection", - "client": { - "shortName": "CloudRedisClusterClient", - "fullName": "google.cloud.redis.cluster.v1.CloudRedisClusterClient" - }, - "method": { - "shortName": "GetBackupCollection", - "fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster.GetBackupCollection", - "service": { - "shortName": "CloudRedisCluster", - "fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster" - } - } - } - }, - { - "regionTag": "redis_v1_generated_CloudRedisCluster_ListBackups_async", - "title": "CloudRedisCluster listBackups Sample", - "origin": "API_DEFINITION", - "description": " Lists all backups owned by a backup collection.", - "canonical": true, - "file": "cloud_redis_cluster.list_backups.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBackups", - "fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster.ListBackups", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.redis.cluster.v1.ListBackupsResponse", - "client": { - "shortName": "CloudRedisClusterClient", - "fullName": "google.cloud.redis.cluster.v1.CloudRedisClusterClient" - }, - "method": { - "shortName": "ListBackups", - "fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster.ListBackups", - "service": { - "shortName": "CloudRedisCluster", - "fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster" - } - } - } - }, - { - "regionTag": "redis_v1_generated_CloudRedisCluster_GetBackup_async", - "title": "CloudRedisCluster getBackup Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a specific backup.", - "canonical": true, - "file": "cloud_redis_cluster.get_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBackup", - "fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster.GetBackup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.redis.cluster.v1.Backup", - "client": { - "shortName": "CloudRedisClusterClient", - "fullName": "google.cloud.redis.cluster.v1.CloudRedisClusterClient" - }, - "method": { - "shortName": "GetBackup", - "fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster.GetBackup", - "service": { - "shortName": "CloudRedisCluster", - "fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster" - } - } - } - }, - { - "regionTag": "redis_v1_generated_CloudRedisCluster_DeleteBackup_async", - "title": "CloudRedisCluster deleteBackup Sample", - "origin": "API_DEFINITION", - "description": " Deletes a specific backup.", - "canonical": true, - "file": "cloud_redis_cluster.delete_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteBackup", - "fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster.DeleteBackup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudRedisClusterClient", - "fullName": "google.cloud.redis.cluster.v1.CloudRedisClusterClient" - }, - "method": { - "shortName": "DeleteBackup", - "fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster.DeleteBackup", - "service": { - "shortName": "CloudRedisCluster", - "fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster" - } - } - } - }, - { - "regionTag": "redis_v1_generated_CloudRedisCluster_ExportBackup_async", - "title": "CloudRedisCluster exportBackup Sample", - "origin": "API_DEFINITION", - "description": " Exports a specific backup to a customer target Cloud Storage URI.", - "canonical": true, - "file": "cloud_redis_cluster.export_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportBackup", - "fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster.ExportBackup", - "async": true, - "parameters": [ - { - "name": "gcs_bucket", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudRedisClusterClient", - "fullName": "google.cloud.redis.cluster.v1.CloudRedisClusterClient" - }, - "method": { - "shortName": "ExportBackup", - "fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster.ExportBackup", - "service": { - "shortName": "CloudRedisCluster", - "fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster" - } - } - } - }, - { - "regionTag": "redis_v1_generated_CloudRedisCluster_BackupCluster_async", - "title": "CloudRedisCluster backupCluster Sample", - "origin": "API_DEFINITION", - "description": " Backup Redis Cluster. If this is the first time a backup is being created, a backup collection will be created at the backend, and this backup belongs to this collection. Both collection and backup will have a resource name. Backup will be executed for each shard. A replica (primary if nonHA) will be selected to perform the execution. Backup call will be rejected if there is an ongoing backup or update operation. Be aware that during preview, if the cluster's internal software version is too old, critical update will be performed before actual backup. Once the internal software version is updated to the minimum version required by the backup feature, subsequent backups will not require critical update. After preview, there will be no critical update needed for backup.", - "canonical": true, - "file": "cloud_redis_cluster.backup_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BackupCluster", - "fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster.BackupCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "ttl", - "type": ".google.protobuf.Duration" - }, - { - "name": "backup_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudRedisClusterClient", - "fullName": "google.cloud.redis.cluster.v1.CloudRedisClusterClient" - }, - "method": { - "shortName": "BackupCluster", - "fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster.BackupCluster", - "service": { - "shortName": "CloudRedisCluster", - "fullName": "google.cloud.redis.cluster.v1.CloudRedisCluster" - } - } - } - } - ] -} diff --git a/packages/google-cloud-redis-cluster/samples/generated/v1beta1/snippet_metadata_google.cloud.redis.cluster.v1beta1.json b/packages/google-cloud-redis-cluster/samples/generated/v1beta1/snippet_metadata_google.cloud.redis.cluster.v1beta1.json deleted file mode 100644 index 018a1cf4a544..000000000000 --- a/packages/google-cloud-redis-cluster/samples/generated/v1beta1/snippet_metadata_google.cloud.redis.cluster.v1beta1.json +++ /dev/null @@ -1,687 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-cluster", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.redis.cluster.v1beta1", - "version": "v1beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "redis_v1beta1_generated_CloudRedisCluster_ListClusters_async", - "title": "CloudRedisCluster listClusters Sample", - "origin": "API_DEFINITION", - "description": " Lists all Redis clusters owned by a project in either the specified location (region) or all locations. The location should have the following format: * `projects/{project_id}/locations/{location_id}` If `location_id` is specified as `-` (wildcard), then all regions available to the project are queried, and the results are aggregated.", - "canonical": true, - "file": "cloud_redis_cluster.list_clusters.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListClusters", - "fullName": "google.cloud.redis.cluster.v1beta1.CloudRedisCluster.ListClusters", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.redis.cluster.v1beta1.ListClustersResponse", - "client": { - "shortName": "CloudRedisClusterClient", - "fullName": "google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient" - }, - "method": { - "shortName": "ListClusters", - "fullName": "google.cloud.redis.cluster.v1beta1.CloudRedisCluster.ListClusters", - "service": { - "shortName": "CloudRedisCluster", - "fullName": "google.cloud.redis.cluster.v1beta1.CloudRedisCluster" - } - } - } - }, - { - "regionTag": "redis_v1beta1_generated_CloudRedisCluster_GetCluster_async", - "title": "CloudRedisCluster getCluster Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a specific Redis cluster.", - "canonical": true, - "file": "cloud_redis_cluster.get_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCluster", - "fullName": "google.cloud.redis.cluster.v1beta1.CloudRedisCluster.GetCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.redis.cluster.v1beta1.Cluster", - "client": { - "shortName": "CloudRedisClusterClient", - "fullName": "google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient" - }, - "method": { - "shortName": "GetCluster", - "fullName": "google.cloud.redis.cluster.v1beta1.CloudRedisCluster.GetCluster", - "service": { - "shortName": "CloudRedisCluster", - "fullName": "google.cloud.redis.cluster.v1beta1.CloudRedisCluster" - } - } - } - }, - { - "regionTag": "redis_v1beta1_generated_CloudRedisCluster_UpdateCluster_async", - "title": "CloudRedisCluster updateCluster Sample", - "origin": "API_DEFINITION", - "description": " Updates the metadata and configuration of a specific Redis cluster. Completed longrunning.Operation will contain the new cluster object in the response field. The returned operation is automatically deleted after a few hours, so there is no need to call DeleteOperation.", - "canonical": true, - "file": "cloud_redis_cluster.update_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCluster", - "fullName": "google.cloud.redis.cluster.v1beta1.CloudRedisCluster.UpdateCluster", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "cluster", - "type": ".google.cloud.redis.cluster.v1beta1.Cluster" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudRedisClusterClient", - "fullName": "google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient" - }, - "method": { - "shortName": "UpdateCluster", - "fullName": "google.cloud.redis.cluster.v1beta1.CloudRedisCluster.UpdateCluster", - "service": { - "shortName": "CloudRedisCluster", - "fullName": "google.cloud.redis.cluster.v1beta1.CloudRedisCluster" - } - } - } - }, - { - "regionTag": "redis_v1beta1_generated_CloudRedisCluster_DeleteCluster_async", - "title": "CloudRedisCluster deleteCluster Sample", - "origin": "API_DEFINITION", - "description": " Deletes a specific Redis cluster. Cluster stops serving and data is deleted.", - "canonical": true, - "file": "cloud_redis_cluster.delete_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCluster", - "fullName": "google.cloud.redis.cluster.v1beta1.CloudRedisCluster.DeleteCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudRedisClusterClient", - "fullName": "google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient" - }, - "method": { - "shortName": "DeleteCluster", - "fullName": "google.cloud.redis.cluster.v1beta1.CloudRedisCluster.DeleteCluster", - "service": { - "shortName": "CloudRedisCluster", - "fullName": "google.cloud.redis.cluster.v1beta1.CloudRedisCluster" - } - } - } - }, - { - "regionTag": "redis_v1beta1_generated_CloudRedisCluster_CreateCluster_async", - "title": "CloudRedisCluster createCluster Sample", - "origin": "API_DEFINITION", - "description": " Creates a Redis cluster based on the specified properties. The creation is executed asynchronously and callers may check the returned operation to track its progress. Once the operation is completed the Redis cluster will be fully functional. The completed longrunning.Operation will contain the new cluster object in the response field. The returned operation is automatically deleted after a few hours, so there is no need to call DeleteOperation.", - "canonical": true, - "file": "cloud_redis_cluster.create_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCluster", - "fullName": "google.cloud.redis.cluster.v1beta1.CloudRedisCluster.CreateCluster", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "cluster", - "type": ".google.cloud.redis.cluster.v1beta1.Cluster" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudRedisClusterClient", - "fullName": "google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient" - }, - "method": { - "shortName": "CreateCluster", - "fullName": "google.cloud.redis.cluster.v1beta1.CloudRedisCluster.CreateCluster", - "service": { - "shortName": "CloudRedisCluster", - "fullName": "google.cloud.redis.cluster.v1beta1.CloudRedisCluster" - } - } - } - }, - { - "regionTag": "redis_v1beta1_generated_CloudRedisCluster_GetClusterCertificateAuthority_async", - "title": "CloudRedisCluster getClusterCertificateAuthority Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of certificate authority information for Redis cluster.", - "canonical": true, - "file": "cloud_redis_cluster.get_cluster_certificate_authority.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetClusterCertificateAuthority", - "fullName": "google.cloud.redis.cluster.v1beta1.CloudRedisCluster.GetClusterCertificateAuthority", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.redis.cluster.v1beta1.CertificateAuthority", - "client": { - "shortName": "CloudRedisClusterClient", - "fullName": "google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient" - }, - "method": { - "shortName": "GetClusterCertificateAuthority", - "fullName": "google.cloud.redis.cluster.v1beta1.CloudRedisCluster.GetClusterCertificateAuthority", - "service": { - "shortName": "CloudRedisCluster", - "fullName": "google.cloud.redis.cluster.v1beta1.CloudRedisCluster" - } - } - } - }, - { - "regionTag": "redis_v1beta1_generated_CloudRedisCluster_GetSharedRegionalCertificateAuthority_async", - "title": "CloudRedisCluster getSharedRegionalCertificateAuthority Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of regional certificate authority information for Redis cluster.", - "canonical": true, - "file": "cloud_redis_cluster.get_shared_regional_certificate_authority.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSharedRegionalCertificateAuthority", - "fullName": "google.cloud.redis.cluster.v1beta1.CloudRedisCluster.GetSharedRegionalCertificateAuthority", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.redis.cluster.v1beta1.SharedRegionalCertificateAuthority", - "client": { - "shortName": "CloudRedisClusterClient", - "fullName": "google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient" - }, - "method": { - "shortName": "GetSharedRegionalCertificateAuthority", - "fullName": "google.cloud.redis.cluster.v1beta1.CloudRedisCluster.GetSharedRegionalCertificateAuthority", - "service": { - "shortName": "CloudRedisCluster", - "fullName": "google.cloud.redis.cluster.v1beta1.CloudRedisCluster" - } - } - } - }, - { - "regionTag": "redis_v1beta1_generated_CloudRedisCluster_RescheduleClusterMaintenance_async", - "title": "CloudRedisCluster rescheduleClusterMaintenance Sample", - "origin": "API_DEFINITION", - "description": " Reschedules upcoming maintenance event.", - "canonical": true, - "file": "cloud_redis_cluster.reschedule_cluster_maintenance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RescheduleClusterMaintenance", - "fullName": "google.cloud.redis.cluster.v1beta1.CloudRedisCluster.RescheduleClusterMaintenance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "reschedule_type", - "type": ".google.cloud.redis.cluster.v1beta1.RescheduleClusterMaintenanceRequest.RescheduleType" - }, - { - "name": "schedule_time", - "type": ".google.protobuf.Timestamp" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudRedisClusterClient", - "fullName": "google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient" - }, - "method": { - "shortName": "RescheduleClusterMaintenance", - "fullName": "google.cloud.redis.cluster.v1beta1.CloudRedisCluster.RescheduleClusterMaintenance", - "service": { - "shortName": "CloudRedisCluster", - "fullName": "google.cloud.redis.cluster.v1beta1.CloudRedisCluster" - } - } - } - }, - { - "regionTag": "redis_v1beta1_generated_CloudRedisCluster_ListBackupCollections_async", - "title": "CloudRedisCluster listBackupCollections Sample", - "origin": "API_DEFINITION", - "description": " Lists all backup collections owned by a consumer project in either the specified location (region) or all locations. If `location_id` is specified as `-` (wildcard), then all regions available to the project are queried, and the results are aggregated.", - "canonical": true, - "file": "cloud_redis_cluster.list_backup_collections.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBackupCollections", - "fullName": "google.cloud.redis.cluster.v1beta1.CloudRedisCluster.ListBackupCollections", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.redis.cluster.v1beta1.ListBackupCollectionsResponse", - "client": { - "shortName": "CloudRedisClusterClient", - "fullName": "google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient" - }, - "method": { - "shortName": "ListBackupCollections", - "fullName": "google.cloud.redis.cluster.v1beta1.CloudRedisCluster.ListBackupCollections", - "service": { - "shortName": "CloudRedisCluster", - "fullName": "google.cloud.redis.cluster.v1beta1.CloudRedisCluster" - } - } - } - }, - { - "regionTag": "redis_v1beta1_generated_CloudRedisCluster_GetBackupCollection_async", - "title": "CloudRedisCluster getBackupCollection Sample", - "origin": "API_DEFINITION", - "description": " Get a backup collection.", - "canonical": true, - "file": "cloud_redis_cluster.get_backup_collection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBackupCollection", - "fullName": "google.cloud.redis.cluster.v1beta1.CloudRedisCluster.GetBackupCollection", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.redis.cluster.v1beta1.BackupCollection", - "client": { - "shortName": "CloudRedisClusterClient", - "fullName": "google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient" - }, - "method": { - "shortName": "GetBackupCollection", - "fullName": "google.cloud.redis.cluster.v1beta1.CloudRedisCluster.GetBackupCollection", - "service": { - "shortName": "CloudRedisCluster", - "fullName": "google.cloud.redis.cluster.v1beta1.CloudRedisCluster" - } - } - } - }, - { - "regionTag": "redis_v1beta1_generated_CloudRedisCluster_ListBackups_async", - "title": "CloudRedisCluster listBackups Sample", - "origin": "API_DEFINITION", - "description": " Lists all backups owned by a backup collection.", - "canonical": true, - "file": "cloud_redis_cluster.list_backups.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBackups", - "fullName": "google.cloud.redis.cluster.v1beta1.CloudRedisCluster.ListBackups", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.redis.cluster.v1beta1.ListBackupsResponse", - "client": { - "shortName": "CloudRedisClusterClient", - "fullName": "google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient" - }, - "method": { - "shortName": "ListBackups", - "fullName": "google.cloud.redis.cluster.v1beta1.CloudRedisCluster.ListBackups", - "service": { - "shortName": "CloudRedisCluster", - "fullName": "google.cloud.redis.cluster.v1beta1.CloudRedisCluster" - } - } - } - }, - { - "regionTag": "redis_v1beta1_generated_CloudRedisCluster_GetBackup_async", - "title": "CloudRedisCluster getBackup Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a specific backup.", - "canonical": true, - "file": "cloud_redis_cluster.get_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBackup", - "fullName": "google.cloud.redis.cluster.v1beta1.CloudRedisCluster.GetBackup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.redis.cluster.v1beta1.Backup", - "client": { - "shortName": "CloudRedisClusterClient", - "fullName": "google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient" - }, - "method": { - "shortName": "GetBackup", - "fullName": "google.cloud.redis.cluster.v1beta1.CloudRedisCluster.GetBackup", - "service": { - "shortName": "CloudRedisCluster", - "fullName": "google.cloud.redis.cluster.v1beta1.CloudRedisCluster" - } - } - } - }, - { - "regionTag": "redis_v1beta1_generated_CloudRedisCluster_DeleteBackup_async", - "title": "CloudRedisCluster deleteBackup Sample", - "origin": "API_DEFINITION", - "description": " Deletes a specific backup.", - "canonical": true, - "file": "cloud_redis_cluster.delete_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteBackup", - "fullName": "google.cloud.redis.cluster.v1beta1.CloudRedisCluster.DeleteBackup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudRedisClusterClient", - "fullName": "google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient" - }, - "method": { - "shortName": "DeleteBackup", - "fullName": "google.cloud.redis.cluster.v1beta1.CloudRedisCluster.DeleteBackup", - "service": { - "shortName": "CloudRedisCluster", - "fullName": "google.cloud.redis.cluster.v1beta1.CloudRedisCluster" - } - } - } - }, - { - "regionTag": "redis_v1beta1_generated_CloudRedisCluster_ExportBackup_async", - "title": "CloudRedisCluster exportBackup Sample", - "origin": "API_DEFINITION", - "description": " Exports a specific backup to a customer target Cloud Storage URI.", - "canonical": true, - "file": "cloud_redis_cluster.export_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportBackup", - "fullName": "google.cloud.redis.cluster.v1beta1.CloudRedisCluster.ExportBackup", - "async": true, - "parameters": [ - { - "name": "gcs_bucket", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudRedisClusterClient", - "fullName": "google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient" - }, - "method": { - "shortName": "ExportBackup", - "fullName": "google.cloud.redis.cluster.v1beta1.CloudRedisCluster.ExportBackup", - "service": { - "shortName": "CloudRedisCluster", - "fullName": "google.cloud.redis.cluster.v1beta1.CloudRedisCluster" - } - } - } - }, - { - "regionTag": "redis_v1beta1_generated_CloudRedisCluster_BackupCluster_async", - "title": "CloudRedisCluster backupCluster Sample", - "origin": "API_DEFINITION", - "description": " Backup Redis Cluster. If this is the first time a backup is being created, a backup collection will be created at the backend, and this backup belongs to this collection. Both collection and backup will have a resource name. Backup will be executed for each shard. A replica (primary if nonHA) will be selected to perform the execution. Backup call will be rejected if there is an ongoing backup or update operation. Be aware that during preview, if the cluster's internal software version is too old, critical update will be performed before actual backup. Once the internal software version is updated to the minimum version required by the backup feature, subsequent backups will not require critical update. After preview, there will be no critical update needed for backup.", - "canonical": true, - "file": "cloud_redis_cluster.backup_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BackupCluster", - "fullName": "google.cloud.redis.cluster.v1beta1.CloudRedisCluster.BackupCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "ttl", - "type": ".google.protobuf.Duration" - }, - { - "name": "backup_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudRedisClusterClient", - "fullName": "google.cloud.redis.cluster.v1beta1.CloudRedisClusterClient" - }, - "method": { - "shortName": "BackupCluster", - "fullName": "google.cloud.redis.cluster.v1beta1.CloudRedisCluster.BackupCluster", - "service": { - "shortName": "CloudRedisCluster", - "fullName": "google.cloud.redis.cluster.v1beta1.CloudRedisCluster" - } - } - } - } - ] -} diff --git a/packages/google-cloud-redis/samples/generated/v1/snippet_metadata_google.cloud.redis.v1.json b/packages/google-cloud-redis/samples/generated/v1/snippet_metadata_google.cloud.redis.v1.json deleted file mode 100644 index 0f896b003196..000000000000 --- a/packages/google-cloud-redis/samples/generated/v1/snippet_metadata_google.cloud.redis.v1.json +++ /dev/null @@ -1,499 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-redis", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.redis.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "redis_v1_generated_CloudRedis_ListInstances_async", - "title": "CloudRedis listInstances Sample", - "origin": "API_DEFINITION", - "description": " Lists all Redis instances owned by a project in either the specified location (region) or all locations. The location should have the following format: * `projects/{project_id}/locations/{location_id}` If `location_id` is specified as `-` (wildcard), then all regions available to the project are queried, and the results are aggregated.", - "canonical": true, - "file": "cloud_redis.list_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListInstances", - "fullName": "google.cloud.redis.v1.CloudRedis.ListInstances", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.redis.v1.ListInstancesResponse", - "client": { - "shortName": "CloudRedisClient", - "fullName": "google.cloud.redis.v1.CloudRedisClient" - }, - "method": { - "shortName": "ListInstances", - "fullName": "google.cloud.redis.v1.CloudRedis.ListInstances", - "service": { - "shortName": "CloudRedis", - "fullName": "google.cloud.redis.v1.CloudRedis" - } - } - } - }, - { - "regionTag": "redis_v1_generated_CloudRedis_GetInstance_async", - "title": "CloudRedis getInstance Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a specific Redis instance.", - "canonical": true, - "file": "cloud_redis.get_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetInstance", - "fullName": "google.cloud.redis.v1.CloudRedis.GetInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.redis.v1.Instance", - "client": { - "shortName": "CloudRedisClient", - "fullName": "google.cloud.redis.v1.CloudRedisClient" - }, - "method": { - "shortName": "GetInstance", - "fullName": "google.cloud.redis.v1.CloudRedis.GetInstance", - "service": { - "shortName": "CloudRedis", - "fullName": "google.cloud.redis.v1.CloudRedis" - } - } - } - }, - { - "regionTag": "redis_v1_generated_CloudRedis_GetInstanceAuthString_async", - "title": "CloudRedis getInstanceAuthString Sample", - "origin": "API_DEFINITION", - "description": " Gets the AUTH string for a Redis instance. If AUTH is not enabled for the instance the response will be empty. This information is not included in the details returned to GetInstance.", - "canonical": true, - "file": "cloud_redis.get_instance_auth_string.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetInstanceAuthString", - "fullName": "google.cloud.redis.v1.CloudRedis.GetInstanceAuthString", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.redis.v1.InstanceAuthString", - "client": { - "shortName": "CloudRedisClient", - "fullName": "google.cloud.redis.v1.CloudRedisClient" - }, - "method": { - "shortName": "GetInstanceAuthString", - "fullName": "google.cloud.redis.v1.CloudRedis.GetInstanceAuthString", - "service": { - "shortName": "CloudRedis", - "fullName": "google.cloud.redis.v1.CloudRedis" - } - } - } - }, - { - "regionTag": "redis_v1_generated_CloudRedis_CreateInstance_async", - "title": "CloudRedis createInstance Sample", - "origin": "API_DEFINITION", - "description": " Creates a Redis instance based on the specified tier and memory size. By default, the instance is accessible from the project's [default network](https://cloud.google.com/vpc/docs/vpc). The creation is executed asynchronously and callers may check the returned operation to track its progress. Once the operation is completed the Redis instance will be fully functional. Completed longrunning.Operation will contain the new instance object in the response field. The returned operation is automatically deleted after a few hours, so there is no need to call DeleteOperation.", - "canonical": true, - "file": "cloud_redis.create_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateInstance", - "fullName": "google.cloud.redis.v1.CloudRedis.CreateInstance", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "instance_id", - "type": "TYPE_STRING" - }, - { - "name": "instance", - "type": ".google.cloud.redis.v1.Instance" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudRedisClient", - "fullName": "google.cloud.redis.v1.CloudRedisClient" - }, - "method": { - "shortName": "CreateInstance", - "fullName": "google.cloud.redis.v1.CloudRedis.CreateInstance", - "service": { - "shortName": "CloudRedis", - "fullName": "google.cloud.redis.v1.CloudRedis" - } - } - } - }, - { - "regionTag": "redis_v1_generated_CloudRedis_UpdateInstance_async", - "title": "CloudRedis updateInstance Sample", - "origin": "API_DEFINITION", - "description": " Updates the metadata and configuration of a specific Redis instance. Completed longrunning.Operation will contain the new instance object in the response field. The returned operation is automatically deleted after a few hours, so there is no need to call DeleteOperation.", - "canonical": true, - "file": "cloud_redis.update_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateInstance", - "fullName": "google.cloud.redis.v1.CloudRedis.UpdateInstance", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "instance", - "type": ".google.cloud.redis.v1.Instance" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudRedisClient", - "fullName": "google.cloud.redis.v1.CloudRedisClient" - }, - "method": { - "shortName": "UpdateInstance", - "fullName": "google.cloud.redis.v1.CloudRedis.UpdateInstance", - "service": { - "shortName": "CloudRedis", - "fullName": "google.cloud.redis.v1.CloudRedis" - } - } - } - }, - { - "regionTag": "redis_v1_generated_CloudRedis_UpgradeInstance_async", - "title": "CloudRedis upgradeInstance Sample", - "origin": "API_DEFINITION", - "description": " Upgrades Redis instance to the newer Redis version specified in the request.", - "canonical": true, - "file": "cloud_redis.upgrade_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpgradeInstance", - "fullName": "google.cloud.redis.v1.CloudRedis.UpgradeInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "redis_version", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudRedisClient", - "fullName": "google.cloud.redis.v1.CloudRedisClient" - }, - "method": { - "shortName": "UpgradeInstance", - "fullName": "google.cloud.redis.v1.CloudRedis.UpgradeInstance", - "service": { - "shortName": "CloudRedis", - "fullName": "google.cloud.redis.v1.CloudRedis" - } - } - } - }, - { - "regionTag": "redis_v1_generated_CloudRedis_ImportInstance_async", - "title": "CloudRedis importInstance Sample", - "origin": "API_DEFINITION", - "description": " Import a Redis RDB snapshot file from Cloud Storage into a Redis instance. Redis may stop serving during this operation. Instance state will be IMPORTING for entire operation. When complete, the instance will contain only data from the imported file. The returned operation is automatically deleted after a few hours, so there is no need to call DeleteOperation.", - "canonical": true, - "file": "cloud_redis.import_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportInstance", - "fullName": "google.cloud.redis.v1.CloudRedis.ImportInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "input_config", - "type": ".google.cloud.redis.v1.InputConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudRedisClient", - "fullName": "google.cloud.redis.v1.CloudRedisClient" - }, - "method": { - "shortName": "ImportInstance", - "fullName": "google.cloud.redis.v1.CloudRedis.ImportInstance", - "service": { - "shortName": "CloudRedis", - "fullName": "google.cloud.redis.v1.CloudRedis" - } - } - } - }, - { - "regionTag": "redis_v1_generated_CloudRedis_ExportInstance_async", - "title": "CloudRedis exportInstance Sample", - "origin": "API_DEFINITION", - "description": " Export Redis instance data into a Redis RDB format file in Cloud Storage. Redis will continue serving during this operation. The returned operation is automatically deleted after a few hours, so there is no need to call DeleteOperation.", - "canonical": true, - "file": "cloud_redis.export_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportInstance", - "fullName": "google.cloud.redis.v1.CloudRedis.ExportInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "output_config", - "type": ".google.cloud.redis.v1.OutputConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudRedisClient", - "fullName": "google.cloud.redis.v1.CloudRedisClient" - }, - "method": { - "shortName": "ExportInstance", - "fullName": "google.cloud.redis.v1.CloudRedis.ExportInstance", - "service": { - "shortName": "CloudRedis", - "fullName": "google.cloud.redis.v1.CloudRedis" - } - } - } - }, - { - "regionTag": "redis_v1_generated_CloudRedis_FailoverInstance_async", - "title": "CloudRedis failoverInstance Sample", - "origin": "API_DEFINITION", - "description": " Initiates a failover of the primary node to current replica node for a specific STANDARD tier Cloud Memorystore for Redis instance.", - "canonical": true, - "file": "cloud_redis.failover_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FailoverInstance", - "fullName": "google.cloud.redis.v1.CloudRedis.FailoverInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "data_protection_mode", - "type": ".google.cloud.redis.v1.FailoverInstanceRequest.DataProtectionMode" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudRedisClient", - "fullName": "google.cloud.redis.v1.CloudRedisClient" - }, - "method": { - "shortName": "FailoverInstance", - "fullName": "google.cloud.redis.v1.CloudRedis.FailoverInstance", - "service": { - "shortName": "CloudRedis", - "fullName": "google.cloud.redis.v1.CloudRedis" - } - } - } - }, - { - "regionTag": "redis_v1_generated_CloudRedis_DeleteInstance_async", - "title": "CloudRedis deleteInstance Sample", - "origin": "API_DEFINITION", - "description": " Deletes a specific Redis instance. Instance stops serving and data is deleted.", - "canonical": true, - "file": "cloud_redis.delete_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteInstance", - "fullName": "google.cloud.redis.v1.CloudRedis.DeleteInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudRedisClient", - "fullName": "google.cloud.redis.v1.CloudRedisClient" - }, - "method": { - "shortName": "DeleteInstance", - "fullName": "google.cloud.redis.v1.CloudRedis.DeleteInstance", - "service": { - "shortName": "CloudRedis", - "fullName": "google.cloud.redis.v1.CloudRedis" - } - } - } - }, - { - "regionTag": "redis_v1_generated_CloudRedis_RescheduleMaintenance_async", - "title": "CloudRedis rescheduleMaintenance Sample", - "origin": "API_DEFINITION", - "description": " Reschedule maintenance for a given instance in a given project and location.", - "canonical": true, - "file": "cloud_redis.reschedule_maintenance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RescheduleMaintenance", - "fullName": "google.cloud.redis.v1.CloudRedis.RescheduleMaintenance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "reschedule_type", - "type": ".google.cloud.redis.v1.RescheduleMaintenanceRequest.RescheduleType" - }, - { - "name": "schedule_time", - "type": ".google.protobuf.Timestamp" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudRedisClient", - "fullName": "google.cloud.redis.v1.CloudRedisClient" - }, - "method": { - "shortName": "RescheduleMaintenance", - "fullName": "google.cloud.redis.v1.CloudRedis.RescheduleMaintenance", - "service": { - "shortName": "CloudRedis", - "fullName": "google.cloud.redis.v1.CloudRedis" - } - } - } - } - ] -} diff --git a/packages/google-cloud-redis/samples/generated/v1beta1/snippet_metadata_google.cloud.redis.v1beta1.json b/packages/google-cloud-redis/samples/generated/v1beta1/snippet_metadata_google.cloud.redis.v1beta1.json deleted file mode 100644 index 8354487f3c44..000000000000 --- a/packages/google-cloud-redis/samples/generated/v1beta1/snippet_metadata_google.cloud.redis.v1beta1.json +++ /dev/null @@ -1,499 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-redis", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.redis.v1beta1", - "version": "v1beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "redis_v1beta1_generated_CloudRedis_ListInstances_async", - "title": "CloudRedis listInstances Sample", - "origin": "API_DEFINITION", - "description": " Lists all Redis instances owned by a project in either the specified location (region) or all locations. The location should have the following format: * `projects/{project_id}/locations/{location_id}` If `location_id` is specified as `-` (wildcard), then all regions available to the project are queried, and the results are aggregated.", - "canonical": true, - "file": "cloud_redis.list_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListInstances", - "fullName": "google.cloud.redis.v1beta1.CloudRedis.ListInstances", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.redis.v1beta1.ListInstancesResponse", - "client": { - "shortName": "CloudRedisClient", - "fullName": "google.cloud.redis.v1beta1.CloudRedisClient" - }, - "method": { - "shortName": "ListInstances", - "fullName": "google.cloud.redis.v1beta1.CloudRedis.ListInstances", - "service": { - "shortName": "CloudRedis", - "fullName": "google.cloud.redis.v1beta1.CloudRedis" - } - } - } - }, - { - "regionTag": "redis_v1beta1_generated_CloudRedis_GetInstance_async", - "title": "CloudRedis getInstance Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a specific Redis instance.", - "canonical": true, - "file": "cloud_redis.get_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetInstance", - "fullName": "google.cloud.redis.v1beta1.CloudRedis.GetInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.redis.v1beta1.Instance", - "client": { - "shortName": "CloudRedisClient", - "fullName": "google.cloud.redis.v1beta1.CloudRedisClient" - }, - "method": { - "shortName": "GetInstance", - "fullName": "google.cloud.redis.v1beta1.CloudRedis.GetInstance", - "service": { - "shortName": "CloudRedis", - "fullName": "google.cloud.redis.v1beta1.CloudRedis" - } - } - } - }, - { - "regionTag": "redis_v1beta1_generated_CloudRedis_GetInstanceAuthString_async", - "title": "CloudRedis getInstanceAuthString Sample", - "origin": "API_DEFINITION", - "description": " Gets the AUTH string for a Redis instance. If AUTH is not enabled for the instance the response will be empty. This information is not included in the details returned to GetInstance.", - "canonical": true, - "file": "cloud_redis.get_instance_auth_string.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetInstanceAuthString", - "fullName": "google.cloud.redis.v1beta1.CloudRedis.GetInstanceAuthString", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.redis.v1beta1.InstanceAuthString", - "client": { - "shortName": "CloudRedisClient", - "fullName": "google.cloud.redis.v1beta1.CloudRedisClient" - }, - "method": { - "shortName": "GetInstanceAuthString", - "fullName": "google.cloud.redis.v1beta1.CloudRedis.GetInstanceAuthString", - "service": { - "shortName": "CloudRedis", - "fullName": "google.cloud.redis.v1beta1.CloudRedis" - } - } - } - }, - { - "regionTag": "redis_v1beta1_generated_CloudRedis_CreateInstance_async", - "title": "CloudRedis createInstance Sample", - "origin": "API_DEFINITION", - "description": " Creates a Redis instance based on the specified tier and memory size. By default, the instance is accessible from the project's [default network](https://cloud.google.com/vpc/docs/vpc). The creation is executed asynchronously and callers may check the returned operation to track its progress. Once the operation is completed the Redis instance will be fully functional. The completed longrunning.Operation will contain the new instance object in the response field. The returned operation is automatically deleted after a few hours, so there is no need to call DeleteOperation.", - "canonical": true, - "file": "cloud_redis.create_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateInstance", - "fullName": "google.cloud.redis.v1beta1.CloudRedis.CreateInstance", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "instance_id", - "type": "TYPE_STRING" - }, - { - "name": "instance", - "type": ".google.cloud.redis.v1beta1.Instance" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudRedisClient", - "fullName": "google.cloud.redis.v1beta1.CloudRedisClient" - }, - "method": { - "shortName": "CreateInstance", - "fullName": "google.cloud.redis.v1beta1.CloudRedis.CreateInstance", - "service": { - "shortName": "CloudRedis", - "fullName": "google.cloud.redis.v1beta1.CloudRedis" - } - } - } - }, - { - "regionTag": "redis_v1beta1_generated_CloudRedis_UpdateInstance_async", - "title": "CloudRedis updateInstance Sample", - "origin": "API_DEFINITION", - "description": " Updates the metadata and configuration of a specific Redis instance. Completed longrunning.Operation will contain the new instance object in the response field. The returned operation is automatically deleted after a few hours, so there is no need to call DeleteOperation.", - "canonical": true, - "file": "cloud_redis.update_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateInstance", - "fullName": "google.cloud.redis.v1beta1.CloudRedis.UpdateInstance", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "instance", - "type": ".google.cloud.redis.v1beta1.Instance" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudRedisClient", - "fullName": "google.cloud.redis.v1beta1.CloudRedisClient" - }, - "method": { - "shortName": "UpdateInstance", - "fullName": "google.cloud.redis.v1beta1.CloudRedis.UpdateInstance", - "service": { - "shortName": "CloudRedis", - "fullName": "google.cloud.redis.v1beta1.CloudRedis" - } - } - } - }, - { - "regionTag": "redis_v1beta1_generated_CloudRedis_UpgradeInstance_async", - "title": "CloudRedis upgradeInstance Sample", - "origin": "API_DEFINITION", - "description": " Upgrades Redis instance to the newer Redis version specified in the request.", - "canonical": true, - "file": "cloud_redis.upgrade_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpgradeInstance", - "fullName": "google.cloud.redis.v1beta1.CloudRedis.UpgradeInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "redis_version", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudRedisClient", - "fullName": "google.cloud.redis.v1beta1.CloudRedisClient" - }, - "method": { - "shortName": "UpgradeInstance", - "fullName": "google.cloud.redis.v1beta1.CloudRedis.UpgradeInstance", - "service": { - "shortName": "CloudRedis", - "fullName": "google.cloud.redis.v1beta1.CloudRedis" - } - } - } - }, - { - "regionTag": "redis_v1beta1_generated_CloudRedis_ImportInstance_async", - "title": "CloudRedis importInstance Sample", - "origin": "API_DEFINITION", - "description": " Import a Redis RDB snapshot file from Cloud Storage into a Redis instance. Redis may stop serving during this operation. Instance state will be IMPORTING for entire operation. When complete, the instance will contain only data from the imported file. The returned operation is automatically deleted after a few hours, so there is no need to call DeleteOperation.", - "canonical": true, - "file": "cloud_redis.import_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportInstance", - "fullName": "google.cloud.redis.v1beta1.CloudRedis.ImportInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "input_config", - "type": ".google.cloud.redis.v1beta1.InputConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudRedisClient", - "fullName": "google.cloud.redis.v1beta1.CloudRedisClient" - }, - "method": { - "shortName": "ImportInstance", - "fullName": "google.cloud.redis.v1beta1.CloudRedis.ImportInstance", - "service": { - "shortName": "CloudRedis", - "fullName": "google.cloud.redis.v1beta1.CloudRedis" - } - } - } - }, - { - "regionTag": "redis_v1beta1_generated_CloudRedis_ExportInstance_async", - "title": "CloudRedis exportInstance Sample", - "origin": "API_DEFINITION", - "description": " Export Redis instance data into a Redis RDB format file in Cloud Storage. Redis will continue serving during this operation. The returned operation is automatically deleted after a few hours, so there is no need to call DeleteOperation.", - "canonical": true, - "file": "cloud_redis.export_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportInstance", - "fullName": "google.cloud.redis.v1beta1.CloudRedis.ExportInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "output_config", - "type": ".google.cloud.redis.v1beta1.OutputConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudRedisClient", - "fullName": "google.cloud.redis.v1beta1.CloudRedisClient" - }, - "method": { - "shortName": "ExportInstance", - "fullName": "google.cloud.redis.v1beta1.CloudRedis.ExportInstance", - "service": { - "shortName": "CloudRedis", - "fullName": "google.cloud.redis.v1beta1.CloudRedis" - } - } - } - }, - { - "regionTag": "redis_v1beta1_generated_CloudRedis_FailoverInstance_async", - "title": "CloudRedis failoverInstance Sample", - "origin": "API_DEFINITION", - "description": " Initiates a failover of the primary node to current replica node for a specific STANDARD tier Cloud Memorystore for Redis instance.", - "canonical": true, - "file": "cloud_redis.failover_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FailoverInstance", - "fullName": "google.cloud.redis.v1beta1.CloudRedis.FailoverInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "data_protection_mode", - "type": ".google.cloud.redis.v1beta1.FailoverInstanceRequest.DataProtectionMode" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudRedisClient", - "fullName": "google.cloud.redis.v1beta1.CloudRedisClient" - }, - "method": { - "shortName": "FailoverInstance", - "fullName": "google.cloud.redis.v1beta1.CloudRedis.FailoverInstance", - "service": { - "shortName": "CloudRedis", - "fullName": "google.cloud.redis.v1beta1.CloudRedis" - } - } - } - }, - { - "regionTag": "redis_v1beta1_generated_CloudRedis_DeleteInstance_async", - "title": "CloudRedis deleteInstance Sample", - "origin": "API_DEFINITION", - "description": " Deletes a specific Redis instance. Instance stops serving and data is deleted.", - "canonical": true, - "file": "cloud_redis.delete_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteInstance", - "fullName": "google.cloud.redis.v1beta1.CloudRedis.DeleteInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudRedisClient", - "fullName": "google.cloud.redis.v1beta1.CloudRedisClient" - }, - "method": { - "shortName": "DeleteInstance", - "fullName": "google.cloud.redis.v1beta1.CloudRedis.DeleteInstance", - "service": { - "shortName": "CloudRedis", - "fullName": "google.cloud.redis.v1beta1.CloudRedis" - } - } - } - }, - { - "regionTag": "redis_v1beta1_generated_CloudRedis_RescheduleMaintenance_async", - "title": "CloudRedis rescheduleMaintenance Sample", - "origin": "API_DEFINITION", - "description": " Reschedule maintenance for a given instance in a given project and location.", - "canonical": true, - "file": "cloud_redis.reschedule_maintenance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RescheduleMaintenance", - "fullName": "google.cloud.redis.v1beta1.CloudRedis.RescheduleMaintenance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "reschedule_type", - "type": ".google.cloud.redis.v1beta1.RescheduleMaintenanceRequest.RescheduleType" - }, - { - "name": "schedule_time", - "type": ".google.protobuf.Timestamp" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudRedisClient", - "fullName": "google.cloud.redis.v1beta1.CloudRedisClient" - }, - "method": { - "shortName": "RescheduleMaintenance", - "fullName": "google.cloud.redis.v1beta1.CloudRedis.RescheduleMaintenance", - "service": { - "shortName": "CloudRedis", - "fullName": "google.cloud.redis.v1beta1.CloudRedis" - } - } - } - } - ] -} diff --git a/packages/google-cloud-resourcemanager/samples/generated/v3/snippet_metadata_google.cloud.resourcemanager.v3.json b/packages/google-cloud-resourcemanager/samples/generated/v3/snippet_metadata_google.cloud.resourcemanager.v3.json deleted file mode 100644 index 289856dddca5..000000000000 --- a/packages/google-cloud-resourcemanager/samples/generated/v3/snippet_metadata_google.cloud.resourcemanager.v3.json +++ /dev/null @@ -1,2339 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-resourcemanager", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.resourcemanager.v3", - "version": "v3" - } - ] - }, - "snippets": [ - { - "regionTag": "cloudresourcemanager_v3_generated_Folders_GetFolder_async", - "title": "Folders getFolder Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a folder identified by the supplied resource name. Valid folder resource names have the format `folders/{folder_id}` (for example, `folders/1234`). The caller must have `resourcemanager.folders.get` permission on the identified folder.", - "canonical": true, - "file": "folders.get_folder.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFolder", - "fullName": "google.cloud.resourcemanager.v3.Folders.GetFolder", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.resourcemanager.v3.Folder", - "client": { - "shortName": "FoldersClient", - "fullName": "google.cloud.resourcemanager.v3.FoldersClient" - }, - "method": { - "shortName": "GetFolder", - "fullName": "google.cloud.resourcemanager.v3.Folders.GetFolder", - "service": { - "shortName": "Folders", - "fullName": "google.cloud.resourcemanager.v3.Folders" - } - } - } - }, - { - "regionTag": "cloudresourcemanager_v3_generated_Folders_ListFolders_async", - "title": "Folders listFolders Sample", - "origin": "API_DEFINITION", - "description": " Lists the folders that are direct descendants of supplied parent resource. `list()` provides a strongly consistent view of the folders underneath the specified parent resource. `list()` returns folders sorted based upon the (ascending) lexical ordering of their display_name. The caller must have `resourcemanager.folders.list` permission on the identified parent.", - "canonical": true, - "file": "folders.list_folders.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFolders", - "fullName": "google.cloud.resourcemanager.v3.Folders.ListFolders", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "show_deleted", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.resourcemanager.v3.ListFoldersResponse", - "client": { - "shortName": "FoldersClient", - "fullName": "google.cloud.resourcemanager.v3.FoldersClient" - }, - "method": { - "shortName": "ListFolders", - "fullName": "google.cloud.resourcemanager.v3.Folders.ListFolders", - "service": { - "shortName": "Folders", - "fullName": "google.cloud.resourcemanager.v3.Folders" - } - } - } - }, - { - "regionTag": "cloudresourcemanager_v3_generated_Folders_SearchFolders_async", - "title": "Folders searchFolders Sample", - "origin": "API_DEFINITION", - "description": " Search for folders that match specific filter criteria. `search()` provides an eventually consistent view of the folders a user has access to which meet the specified filter criteria. This will only return folders on which the caller has the permission `resourcemanager.folders.get`.", - "canonical": true, - "file": "folders.search_folders.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 90, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchFolders", - "fullName": "google.cloud.resourcemanager.v3.Folders.SearchFolders", - "async": true, - "parameters": [ - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.resourcemanager.v3.SearchFoldersResponse", - "client": { - "shortName": "FoldersClient", - "fullName": "google.cloud.resourcemanager.v3.FoldersClient" - }, - "method": { - "shortName": "SearchFolders", - "fullName": "google.cloud.resourcemanager.v3.Folders.SearchFolders", - "service": { - "shortName": "Folders", - "fullName": "google.cloud.resourcemanager.v3.Folders" - } - } - } - }, - { - "regionTag": "cloudresourcemanager_v3_generated_Folders_CreateFolder_async", - "title": "Folders createFolder Sample", - "origin": "API_DEFINITION", - "description": " Creates a folder in the resource hierarchy. Returns an `Operation` which can be used to track the progress of the folder creation workflow. Upon success, the `Operation.response` field will be populated with the created Folder. In order to succeed, the addition of this new folder must not violate the folder naming, height, or fanout constraints. + The folder's `display_name` must be distinct from all other folders that share its parent. + The addition of the folder must not cause the active folder hierarchy to exceed a height of 10. Note, the full active + deleted folder hierarchy is allowed to reach a height of 20; this provides additional headroom when moving folders that contain deleted folders. + The addition of the folder must not cause the total number of folders under its parent to exceed 300. If the operation fails due to a folder constraint violation, some errors may be returned by the `CreateFolder` request, with status code `FAILED_PRECONDITION` and an error description. Other folder constraint violations will be communicated in the `Operation`, with the specific `PreconditionFailure` returned in the details list in the `Operation.error` field. The caller must have `resourcemanager.folders.create` permission on the identified parent.", - "canonical": true, - "file": "folders.create_folder.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateFolder", - "fullName": "google.cloud.resourcemanager.v3.Folders.CreateFolder", - "async": true, - "parameters": [ - { - "name": "folder", - "type": ".google.cloud.resourcemanager.v3.Folder" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FoldersClient", - "fullName": "google.cloud.resourcemanager.v3.FoldersClient" - }, - "method": { - "shortName": "CreateFolder", - "fullName": "google.cloud.resourcemanager.v3.Folders.CreateFolder", - "service": { - "shortName": "Folders", - "fullName": "google.cloud.resourcemanager.v3.Folders" - } - } - } - }, - { - "regionTag": "cloudresourcemanager_v3_generated_Folders_UpdateFolder_async", - "title": "Folders updateFolder Sample", - "origin": "API_DEFINITION", - "description": " Updates a folder, changing its `display_name`. Changes to the folder `display_name` will be rejected if they violate either the `display_name` formatting rules or the naming constraints described in the [CreateFolder][google.cloud.resourcemanager.v3.Folders.CreateFolder] documentation. The folder's `display_name` must start and end with a letter or digit, may contain letters, digits, spaces, hyphens and underscores and can be between 3 and 30 characters. This is captured by the regular expression: `[\\p{L}\\p{N}][\\p{L}\\p{N}_- ]{1,28}[\\p{L}\\p{N}]`. The caller must have `resourcemanager.folders.update` permission on the identified folder. If the update fails due to the unique name constraint then a `PreconditionFailure` explaining this violation will be returned in the Status.details field.", - "canonical": true, - "file": "folders.update_folder.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateFolder", - "fullName": "google.cloud.resourcemanager.v3.Folders.UpdateFolder", - "async": true, - "parameters": [ - { - "name": "folder", - "type": ".google.cloud.resourcemanager.v3.Folder" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FoldersClient", - "fullName": "google.cloud.resourcemanager.v3.FoldersClient" - }, - "method": { - "shortName": "UpdateFolder", - "fullName": "google.cloud.resourcemanager.v3.Folders.UpdateFolder", - "service": { - "shortName": "Folders", - "fullName": "google.cloud.resourcemanager.v3.Folders" - } - } - } - }, - { - "regionTag": "cloudresourcemanager_v3_generated_Folders_MoveFolder_async", - "title": "Folders moveFolder Sample", - "origin": "API_DEFINITION", - "description": " Moves a folder under a new resource parent. Returns an `Operation` which can be used to track the progress of the folder move workflow. Upon success, the `Operation.response` field will be populated with the moved folder. Upon failure, a `FolderOperationError` categorizing the failure cause will be returned - if the failure occurs synchronously then the `FolderOperationError` will be returned in the `Status.details` field. If it occurs asynchronously, then the FolderOperation will be returned in the `Operation.error` field. In addition, the `Operation.metadata` field will be populated with a `FolderOperation` message as an aid to stateless clients. Folder moves will be rejected if they violate either the naming, height, or fanout constraints described in the [CreateFolder][google.cloud.resourcemanager.v3.Folders.CreateFolder] documentation. The caller must have `resourcemanager.folders.move` permission on the folder's current and proposed new parent.", - "canonical": true, - "file": "folders.move_folder.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "MoveFolder", - "fullName": "google.cloud.resourcemanager.v3.Folders.MoveFolder", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "destination_parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FoldersClient", - "fullName": "google.cloud.resourcemanager.v3.FoldersClient" - }, - "method": { - "shortName": "MoveFolder", - "fullName": "google.cloud.resourcemanager.v3.Folders.MoveFolder", - "service": { - "shortName": "Folders", - "fullName": "google.cloud.resourcemanager.v3.Folders" - } - } - } - }, - { - "regionTag": "cloudresourcemanager_v3_generated_Folders_DeleteFolder_async", - "title": "Folders deleteFolder Sample", - "origin": "API_DEFINITION", - "description": " Requests deletion of a folder. The folder is moved into the [DELETE_REQUESTED][google.cloud.resourcemanager.v3.Folder.State.DELETE_REQUESTED] state immediately, and is deleted approximately 30 days later. This method may only be called on an empty folder, where a folder is empty if it doesn't contain any folders or projects in the [ACTIVE][google.cloud.resourcemanager.v3.Folder.State.ACTIVE] state. If called on a folder in [DELETE_REQUESTED][google.cloud.resourcemanager.v3.Folder.State.DELETE_REQUESTED] state the operation will result in a no-op success. The caller must have `resourcemanager.folders.delete` permission on the identified folder.", - "canonical": true, - "file": "folders.delete_folder.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteFolder", - "fullName": "google.cloud.resourcemanager.v3.Folders.DeleteFolder", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FoldersClient", - "fullName": "google.cloud.resourcemanager.v3.FoldersClient" - }, - "method": { - "shortName": "DeleteFolder", - "fullName": "google.cloud.resourcemanager.v3.Folders.DeleteFolder", - "service": { - "shortName": "Folders", - "fullName": "google.cloud.resourcemanager.v3.Folders" - } - } - } - }, - { - "regionTag": "cloudresourcemanager_v3_generated_Folders_UndeleteFolder_async", - "title": "Folders undeleteFolder Sample", - "origin": "API_DEFINITION", - "description": " Cancels the deletion request for a folder. This method may be called on a folder in any state. If the folder is in the [ACTIVE][google.cloud.resourcemanager.v3.Folder.State.ACTIVE] state the result will be a no-op success. In order to succeed, the folder's parent must be in the [ACTIVE][google.cloud.resourcemanager.v3.Folder.State.ACTIVE] state. In addition, reintroducing the folder into the tree must not violate folder naming, height, and fanout constraints described in the [CreateFolder][google.cloud.resourcemanager.v3.Folders.CreateFolder] documentation. The caller must have `resourcemanager.folders.undelete` permission on the identified folder.", - "canonical": true, - "file": "folders.undelete_folder.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UndeleteFolder", - "fullName": "google.cloud.resourcemanager.v3.Folders.UndeleteFolder", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "FoldersClient", - "fullName": "google.cloud.resourcemanager.v3.FoldersClient" - }, - "method": { - "shortName": "UndeleteFolder", - "fullName": "google.cloud.resourcemanager.v3.Folders.UndeleteFolder", - "service": { - "shortName": "Folders", - "fullName": "google.cloud.resourcemanager.v3.Folders" - } - } - } - }, - { - "regionTag": "cloudresourcemanager_v3_generated_Folders_GetIamPolicy_async", - "title": "Folders getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a folder. The returned policy may be empty if no such policy or resource exists. The `resource` field should be the folder's resource name, for example: \"folders/1234\". The caller must have `resourcemanager.folders.getIamPolicy` permission on the identified folder.", - "canonical": true, - "file": "folders.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.resourcemanager.v3.Folders.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": ".google.iam.v1.GetPolicyOptions" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "FoldersClient", - "fullName": "google.cloud.resourcemanager.v3.FoldersClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.resourcemanager.v3.Folders.GetIamPolicy", - "service": { - "shortName": "Folders", - "fullName": "google.cloud.resourcemanager.v3.Folders" - } - } - } - }, - { - "regionTag": "cloudresourcemanager_v3_generated_Folders_SetIamPolicy_async", - "title": "Folders setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on a folder, replacing any existing policy. The `resource` field should be the folder's resource name, for example: \"folders/1234\". The caller must have `resourcemanager.folders.setIamPolicy` permission on the identified folder.", - "canonical": true, - "file": "folders.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.resourcemanager.v3.Folders.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.iam.v1.Policy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "FoldersClient", - "fullName": "google.cloud.resourcemanager.v3.FoldersClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.resourcemanager.v3.Folders.SetIamPolicy", - "service": { - "shortName": "Folders", - "fullName": "google.cloud.resourcemanager.v3.Folders" - } - } - } - }, - { - "regionTag": "cloudresourcemanager_v3_generated_Folders_TestIamPermissions_async", - "title": "Folders testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified folder. The `resource` field should be the folder's resource name, for example: \"folders/1234\". There are no permissions required for making this API call.", - "canonical": true, - "file": "folders.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.resourcemanager.v3.Folders.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "permissions", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.iam.v1.TestIamPermissionsResponse", - "client": { - "shortName": "FoldersClient", - "fullName": "google.cloud.resourcemanager.v3.FoldersClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.resourcemanager.v3.Folders.TestIamPermissions", - "service": { - "shortName": "Folders", - "fullName": "google.cloud.resourcemanager.v3.Folders" - } - } - } - }, - { - "regionTag": "cloudresourcemanager_v3_generated_Organizations_GetOrganization_async", - "title": "Folders getOrganization Sample", - "origin": "API_DEFINITION", - "description": " Fetches an organization resource identified by the specified resource name.", - "canonical": true, - "file": "organizations.get_organization.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetOrganization", - "fullName": "google.cloud.resourcemanager.v3.Organizations.GetOrganization", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.resourcemanager.v3.Organization", - "client": { - "shortName": "OrganizationsClient", - "fullName": "google.cloud.resourcemanager.v3.OrganizationsClient" - }, - "method": { - "shortName": "GetOrganization", - "fullName": "google.cloud.resourcemanager.v3.Organizations.GetOrganization", - "service": { - "shortName": "Organizations", - "fullName": "google.cloud.resourcemanager.v3.Organizations" - } - } - } - }, - { - "regionTag": "cloudresourcemanager_v3_generated_Organizations_SearchOrganizations_async", - "title": "Folders searchOrganizations Sample", - "origin": "API_DEFINITION", - "description": " Searches organization resources that are visible to the user and satisfy the specified filter. This method returns organizations in an unspecified order. New organizations do not necessarily appear at the end of the results, and may take a small amount of time to appear. Search will only return organizations on which the user has the permission `resourcemanager.organizations.get`", - "canonical": true, - "file": "organizations.search_organizations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchOrganizations", - "fullName": "google.cloud.resourcemanager.v3.Organizations.SearchOrganizations", - "async": true, - "parameters": [ - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.resourcemanager.v3.SearchOrganizationsResponse", - "client": { - "shortName": "OrganizationsClient", - "fullName": "google.cloud.resourcemanager.v3.OrganizationsClient" - }, - "method": { - "shortName": "SearchOrganizations", - "fullName": "google.cloud.resourcemanager.v3.Organizations.SearchOrganizations", - "service": { - "shortName": "Organizations", - "fullName": "google.cloud.resourcemanager.v3.Organizations" - } - } - } - }, - { - "regionTag": "cloudresourcemanager_v3_generated_Organizations_GetIamPolicy_async", - "title": "Folders getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for an organization resource. The policy may be empty if no such policy or resource exists. The `resource` field should be the organization's resource name, for example: \"organizations/123\". Authorization requires the IAM permission `resourcemanager.organizations.getIamPolicy` on the specified organization.", - "canonical": true, - "file": "organizations.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.resourcemanager.v3.Organizations.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": ".google.iam.v1.GetPolicyOptions" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "OrganizationsClient", - "fullName": "google.cloud.resourcemanager.v3.OrganizationsClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.resourcemanager.v3.Organizations.GetIamPolicy", - "service": { - "shortName": "Organizations", - "fullName": "google.cloud.resourcemanager.v3.Organizations" - } - } - } - }, - { - "regionTag": "cloudresourcemanager_v3_generated_Organizations_SetIamPolicy_async", - "title": "Folders setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on an organization resource. Replaces any existing policy. The `resource` field should be the organization's resource name, for example: \"organizations/123\". Authorization requires the IAM permission `resourcemanager.organizations.setIamPolicy` on the specified organization.", - "canonical": true, - "file": "organizations.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.resourcemanager.v3.Organizations.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.iam.v1.Policy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "OrganizationsClient", - "fullName": "google.cloud.resourcemanager.v3.OrganizationsClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.resourcemanager.v3.Organizations.SetIamPolicy", - "service": { - "shortName": "Organizations", - "fullName": "google.cloud.resourcemanager.v3.Organizations" - } - } - } - }, - { - "regionTag": "cloudresourcemanager_v3_generated_Organizations_TestIamPermissions_async", - "title": "Folders testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns the permissions that a caller has on the specified organization. The `resource` field should be the organization's resource name, for example: \"organizations/123\". There are no permissions required for making this API call.", - "canonical": true, - "file": "organizations.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.resourcemanager.v3.Organizations.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "permissions", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.iam.v1.TestIamPermissionsResponse", - "client": { - "shortName": "OrganizationsClient", - "fullName": "google.cloud.resourcemanager.v3.OrganizationsClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.resourcemanager.v3.Organizations.TestIamPermissions", - "service": { - "shortName": "Organizations", - "fullName": "google.cloud.resourcemanager.v3.Organizations" - } - } - } - }, - { - "regionTag": "cloudresourcemanager_v3_generated_Projects_GetProject_async", - "title": "Folders getProject Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the project identified by the specified `name` (for example, `projects/415104041262`). The caller must have `resourcemanager.projects.get` permission for this project.", - "canonical": true, - "file": "projects.get_project.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetProject", - "fullName": "google.cloud.resourcemanager.v3.Projects.GetProject", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.resourcemanager.v3.Project", - "client": { - "shortName": "ProjectsClient", - "fullName": "google.cloud.resourcemanager.v3.ProjectsClient" - }, - "method": { - "shortName": "GetProject", - "fullName": "google.cloud.resourcemanager.v3.Projects.GetProject", - "service": { - "shortName": "Projects", - "fullName": "google.cloud.resourcemanager.v3.Projects" - } - } - } - }, - { - "regionTag": "cloudresourcemanager_v3_generated_Projects_ListProjects_async", - "title": "Folders listProjects Sample", - "origin": "API_DEFINITION", - "description": " Lists projects that are direct children of the specified folder or organization resource. `list()` provides a strongly consistent view of the projects underneath the specified parent resource. `list()` returns projects sorted based upon the (ascending) lexical ordering of their `display_name`. The caller must have `resourcemanager.projects.list` permission on the identified parent.", - "canonical": true, - "file": "projects.list_projects.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListProjects", - "fullName": "google.cloud.resourcemanager.v3.Projects.ListProjects", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "show_deleted", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.resourcemanager.v3.ListProjectsResponse", - "client": { - "shortName": "ProjectsClient", - "fullName": "google.cloud.resourcemanager.v3.ProjectsClient" - }, - "method": { - "shortName": "ListProjects", - "fullName": "google.cloud.resourcemanager.v3.Projects.ListProjects", - "service": { - "shortName": "Projects", - "fullName": "google.cloud.resourcemanager.v3.Projects" - } - } - } - }, - { - "regionTag": "cloudresourcemanager_v3_generated_Projects_SearchProjects_async", - "title": "Folders searchProjects Sample", - "origin": "API_DEFINITION", - "description": " Search for projects that the caller has both `resourcemanager.projects.get` permission on, and also satisfy the specified query. This method returns projects in an unspecified order. This method is eventually consistent with project mutations; this means that a newly created project may not appear in the results or recent updates to an existing project may not be reflected in the results. To retrieve the latest state of a project, use the [GetProject][google.cloud.resourcemanager.v3.Projects.GetProject] method.", - "canonical": true, - "file": "projects.search_projects.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 92, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchProjects", - "fullName": "google.cloud.resourcemanager.v3.Projects.SearchProjects", - "async": true, - "parameters": [ - { - "name": "query", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.resourcemanager.v3.SearchProjectsResponse", - "client": { - "shortName": "ProjectsClient", - "fullName": "google.cloud.resourcemanager.v3.ProjectsClient" - }, - "method": { - "shortName": "SearchProjects", - "fullName": "google.cloud.resourcemanager.v3.Projects.SearchProjects", - "service": { - "shortName": "Projects", - "fullName": "google.cloud.resourcemanager.v3.Projects" - } - } - } - }, - { - "regionTag": "cloudresourcemanager_v3_generated_Projects_CreateProject_async", - "title": "Folders createProject Sample", - "origin": "API_DEFINITION", - "description": " Request that a new project be created. The result is an `Operation` which can be used to track the creation process. This process usually takes a few seconds, but can sometimes take much longer. The tracking `Operation` is automatically deleted after a few hours, so there is no need to call `DeleteOperation`.", - "canonical": true, - "file": "projects.create_project.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateProject", - "fullName": "google.cloud.resourcemanager.v3.Projects.CreateProject", - "async": true, - "parameters": [ - { - "name": "project", - "type": ".google.cloud.resourcemanager.v3.Project" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ProjectsClient", - "fullName": "google.cloud.resourcemanager.v3.ProjectsClient" - }, - "method": { - "shortName": "CreateProject", - "fullName": "google.cloud.resourcemanager.v3.Projects.CreateProject", - "service": { - "shortName": "Projects", - "fullName": "google.cloud.resourcemanager.v3.Projects" - } - } - } - }, - { - "regionTag": "cloudresourcemanager_v3_generated_Projects_UpdateProject_async", - "title": "Folders updateProject Sample", - "origin": "API_DEFINITION", - "description": " Updates the `display_name` and labels of the project identified by the specified `name` (for example, `projects/415104041262`). Deleting all labels requires an update mask for labels field. The caller must have `resourcemanager.projects.update` permission for this project.", - "canonical": true, - "file": "projects.update_project.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateProject", - "fullName": "google.cloud.resourcemanager.v3.Projects.UpdateProject", - "async": true, - "parameters": [ - { - "name": "project", - "type": ".google.cloud.resourcemanager.v3.Project" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ProjectsClient", - "fullName": "google.cloud.resourcemanager.v3.ProjectsClient" - }, - "method": { - "shortName": "UpdateProject", - "fullName": "google.cloud.resourcemanager.v3.Projects.UpdateProject", - "service": { - "shortName": "Projects", - "fullName": "google.cloud.resourcemanager.v3.Projects" - } - } - } - }, - { - "regionTag": "cloudresourcemanager_v3_generated_Projects_MoveProject_async", - "title": "Folders moveProject Sample", - "origin": "API_DEFINITION", - "description": " Move a project to another place in your resource hierarchy, under a new resource parent. Returns an operation which can be used to track the process of the project move workflow. Upon success, the `Operation.response` field will be populated with the moved project. The caller must have `resourcemanager.projects.move` permission on the project, on the project's current and proposed new parent. If project has no current parent, or it currently does not have an associated organization resource, you will also need the `resourcemanager.projects.setIamPolicy` permission in the project.", - "canonical": true, - "file": "projects.move_project.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "MoveProject", - "fullName": "google.cloud.resourcemanager.v3.Projects.MoveProject", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "destination_parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ProjectsClient", - "fullName": "google.cloud.resourcemanager.v3.ProjectsClient" - }, - "method": { - "shortName": "MoveProject", - "fullName": "google.cloud.resourcemanager.v3.Projects.MoveProject", - "service": { - "shortName": "Projects", - "fullName": "google.cloud.resourcemanager.v3.Projects" - } - } - } - }, - { - "regionTag": "cloudresourcemanager_v3_generated_Projects_DeleteProject_async", - "title": "Folders deleteProject Sample", - "origin": "API_DEFINITION", - "description": " Marks the project identified by the specified `name` (for example, `projects/415104041262`) for deletion. This method will only affect the project if it has a lifecycle state of [ACTIVE][google.cloud.resourcemanager.v3.Project.State.ACTIVE]. This method changes the Project's lifecycle state from [ACTIVE][google.cloud.resourcemanager.v3.Project.State.ACTIVE] to [DELETE_REQUESTED][google.cloud.resourcemanager.v3.Project.State.DELETE_REQUESTED]. The deletion starts at an unspecified time, at which point the Project is no longer accessible. Until the deletion completes, you can check the lifecycle state checked by retrieving the project with [GetProject] [google.cloud.resourcemanager.v3.Projects.GetProject], and the project remains visible to [ListProjects] [google.cloud.resourcemanager.v3.Projects.ListProjects]. However, you cannot update the project. After the deletion completes, the project is not retrievable by the [GetProject] [google.cloud.resourcemanager.v3.Projects.GetProject], [ListProjects] [google.cloud.resourcemanager.v3.Projects.ListProjects], and [SearchProjects][google.cloud.resourcemanager.v3.Projects.SearchProjects] methods. This method behaves idempotently, such that deleting a `DELETE_REQUESTED` project will not cause an error, but also won't do anything. The caller must have `resourcemanager.projects.delete` permissions for this project.", - "canonical": true, - "file": "projects.delete_project.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteProject", - "fullName": "google.cloud.resourcemanager.v3.Projects.DeleteProject", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ProjectsClient", - "fullName": "google.cloud.resourcemanager.v3.ProjectsClient" - }, - "method": { - "shortName": "DeleteProject", - "fullName": "google.cloud.resourcemanager.v3.Projects.DeleteProject", - "service": { - "shortName": "Projects", - "fullName": "google.cloud.resourcemanager.v3.Projects" - } - } - } - }, - { - "regionTag": "cloudresourcemanager_v3_generated_Projects_UndeleteProject_async", - "title": "Folders undeleteProject Sample", - "origin": "API_DEFINITION", - "description": " Restores the project identified by the specified `name` (for example, `projects/415104041262`). You can only use this method for a project that has a lifecycle state of [DELETE_REQUESTED] [Projects.State.DELETE_REQUESTED]. After deletion starts, the project cannot be restored. The caller must have `resourcemanager.projects.undelete` permission for this project.", - "canonical": true, - "file": "projects.undelete_project.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UndeleteProject", - "fullName": "google.cloud.resourcemanager.v3.Projects.UndeleteProject", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ProjectsClient", - "fullName": "google.cloud.resourcemanager.v3.ProjectsClient" - }, - "method": { - "shortName": "UndeleteProject", - "fullName": "google.cloud.resourcemanager.v3.Projects.UndeleteProject", - "service": { - "shortName": "Projects", - "fullName": "google.cloud.resourcemanager.v3.Projects" - } - } - } - }, - { - "regionTag": "cloudresourcemanager_v3_generated_Projects_GetIamPolicy_async", - "title": "Folders getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Returns the IAM access control policy for the specified project, in the format `projects/{ProjectIdOrNumber}` e.g. projects/123. Permission is denied if the policy or the resource do not exist.", - "canonical": true, - "file": "projects.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.resourcemanager.v3.Projects.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": ".google.iam.v1.GetPolicyOptions" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "ProjectsClient", - "fullName": "google.cloud.resourcemanager.v3.ProjectsClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.resourcemanager.v3.Projects.GetIamPolicy", - "service": { - "shortName": "Projects", - "fullName": "google.cloud.resourcemanager.v3.Projects" - } - } - } - }, - { - "regionTag": "cloudresourcemanager_v3_generated_Projects_SetIamPolicy_async", - "title": "Folders setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the IAM access control policy for the specified project, in the format `projects/{ProjectIdOrNumber}` e.g. projects/123. CAUTION: This method will replace the existing policy, and cannot be used to append additional IAM settings. Note: Removing service accounts from policies or changing their roles can render services completely inoperable. It is important to understand how the service account is being used before removing or updating its roles. The following constraints apply when using `setIamPolicy()`: + Project does not support `allUsers` and `allAuthenticatedUsers` as `members` in a `Binding` of a `Policy`. + The owner role can be granted to a `user`, `serviceAccount`, or a group that is part of an organization. For example, group@myownpersonaldomain.com could be added as an owner to a project in the myownpersonaldomain.com organization, but not the examplepetstore.com organization. + Service accounts can be made owners of a project directly without any restrictions. However, to be added as an owner, a user must be invited using the Cloud Platform console and must accept the invitation. + A user cannot be granted the owner role using `setIamPolicy()`. The user must be granted the owner role using the Cloud Platform Console and must explicitly accept the invitation. + Invitations to grant the owner role cannot be sent using `setIamPolicy()`; they must be sent only using the Cloud Platform Console. + If the project is not part of an organization, there must be at least one owner who has accepted the Terms of Service (ToS) agreement in the policy. Calling `setIamPolicy()` to remove the last ToS-accepted owner from the policy will fail. This restriction also applies to legacy projects that no longer have owners who have accepted the ToS. Edits to IAM policies will be rejected until the lack of a ToS-accepting owner is rectified. If the project is part of an organization, you can remove all owners, potentially making the organization inaccessible.", - "canonical": true, - "file": "projects.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.resourcemanager.v3.Projects.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.iam.v1.Policy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "ProjectsClient", - "fullName": "google.cloud.resourcemanager.v3.ProjectsClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.resourcemanager.v3.Projects.SetIamPolicy", - "service": { - "shortName": "Projects", - "fullName": "google.cloud.resourcemanager.v3.Projects" - } - } - } - }, - { - "regionTag": "cloudresourcemanager_v3_generated_Projects_TestIamPermissions_async", - "title": "Folders testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified project, in the format `projects/{ProjectIdOrNumber}` e.g. projects/123..", - "canonical": true, - "file": "projects.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.resourcemanager.v3.Projects.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "permissions", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.iam.v1.TestIamPermissionsResponse", - "client": { - "shortName": "ProjectsClient", - "fullName": "google.cloud.resourcemanager.v3.ProjectsClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.resourcemanager.v3.Projects.TestIamPermissions", - "service": { - "shortName": "Projects", - "fullName": "google.cloud.resourcemanager.v3.Projects" - } - } - } - }, - { - "regionTag": "cloudresourcemanager_v3_generated_TagBindings_ListTagBindings_async", - "title": "Folders listTagBindings Sample", - "origin": "API_DEFINITION", - "description": " Lists the TagBindings for the given Google Cloud resource, as specified with `parent`. NOTE: The `parent` field is expected to be a full resource name: https://cloud.google.com/apis/design/resource_names#full_resource_name", - "canonical": true, - "file": "tag_bindings.list_tag_bindings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTagBindings", - "fullName": "google.cloud.resourcemanager.v3.TagBindings.ListTagBindings", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.resourcemanager.v3.ListTagBindingsResponse", - "client": { - "shortName": "TagBindingsClient", - "fullName": "google.cloud.resourcemanager.v3.TagBindingsClient" - }, - "method": { - "shortName": "ListTagBindings", - "fullName": "google.cloud.resourcemanager.v3.TagBindings.ListTagBindings", - "service": { - "shortName": "TagBindings", - "fullName": "google.cloud.resourcemanager.v3.TagBindings" - } - } - } - }, - { - "regionTag": "cloudresourcemanager_v3_generated_TagBindings_CreateTagBinding_async", - "title": "Folders createTagBinding Sample", - "origin": "API_DEFINITION", - "description": " Creates a TagBinding between a TagValue and a Google Cloud resource.", - "canonical": true, - "file": "tag_bindings.create_tag_binding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTagBinding", - "fullName": "google.cloud.resourcemanager.v3.TagBindings.CreateTagBinding", - "async": true, - "parameters": [ - { - "name": "tag_binding", - "type": ".google.cloud.resourcemanager.v3.TagBinding" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TagBindingsClient", - "fullName": "google.cloud.resourcemanager.v3.TagBindingsClient" - }, - "method": { - "shortName": "CreateTagBinding", - "fullName": "google.cloud.resourcemanager.v3.TagBindings.CreateTagBinding", - "service": { - "shortName": "TagBindings", - "fullName": "google.cloud.resourcemanager.v3.TagBindings" - } - } - } - }, - { - "regionTag": "cloudresourcemanager_v3_generated_TagBindings_DeleteTagBinding_async", - "title": "Folders deleteTagBinding Sample", - "origin": "API_DEFINITION", - "description": " Deletes a TagBinding.", - "canonical": true, - "file": "tag_bindings.delete_tag_binding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTagBinding", - "fullName": "google.cloud.resourcemanager.v3.TagBindings.DeleteTagBinding", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TagBindingsClient", - "fullName": "google.cloud.resourcemanager.v3.TagBindingsClient" - }, - "method": { - "shortName": "DeleteTagBinding", - "fullName": "google.cloud.resourcemanager.v3.TagBindings.DeleteTagBinding", - "service": { - "shortName": "TagBindings", - "fullName": "google.cloud.resourcemanager.v3.TagBindings" - } - } - } - }, - { - "regionTag": "cloudresourcemanager_v3_generated_TagBindings_ListEffectiveTags_async", - "title": "Folders listEffectiveTags Sample", - "origin": "API_DEFINITION", - "description": " Return a list of effective tags for the given Google Cloud resource, as specified in `parent`.", - "canonical": true, - "file": "tag_bindings.list_effective_tags.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEffectiveTags", - "fullName": "google.cloud.resourcemanager.v3.TagBindings.ListEffectiveTags", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.resourcemanager.v3.ListEffectiveTagsResponse", - "client": { - "shortName": "TagBindingsClient", - "fullName": "google.cloud.resourcemanager.v3.TagBindingsClient" - }, - "method": { - "shortName": "ListEffectiveTags", - "fullName": "google.cloud.resourcemanager.v3.TagBindings.ListEffectiveTags", - "service": { - "shortName": "TagBindings", - "fullName": "google.cloud.resourcemanager.v3.TagBindings" - } - } - } - }, - { - "regionTag": "cloudresourcemanager_v3_generated_TagHolds_CreateTagHold_async", - "title": "Folders createTagHold Sample", - "origin": "API_DEFINITION", - "description": " Creates a TagHold. Returns ALREADY_EXISTS if a TagHold with the same resource and origin exists under the same TagValue.", - "canonical": true, - "file": "tag_holds.create_tag_hold.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTagHold", - "fullName": "google.cloud.resourcemanager.v3.TagHolds.CreateTagHold", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "tag_hold", - "type": ".google.cloud.resourcemanager.v3.TagHold" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TagHoldsClient", - "fullName": "google.cloud.resourcemanager.v3.TagHoldsClient" - }, - "method": { - "shortName": "CreateTagHold", - "fullName": "google.cloud.resourcemanager.v3.TagHolds.CreateTagHold", - "service": { - "shortName": "TagHolds", - "fullName": "google.cloud.resourcemanager.v3.TagHolds" - } - } - } - }, - { - "regionTag": "cloudresourcemanager_v3_generated_TagHolds_DeleteTagHold_async", - "title": "Folders deleteTagHold Sample", - "origin": "API_DEFINITION", - "description": " Deletes a TagHold.", - "canonical": true, - "file": "tag_holds.delete_tag_hold.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTagHold", - "fullName": "google.cloud.resourcemanager.v3.TagHolds.DeleteTagHold", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TagHoldsClient", - "fullName": "google.cloud.resourcemanager.v3.TagHoldsClient" - }, - "method": { - "shortName": "DeleteTagHold", - "fullName": "google.cloud.resourcemanager.v3.TagHolds.DeleteTagHold", - "service": { - "shortName": "TagHolds", - "fullName": "google.cloud.resourcemanager.v3.TagHolds" - } - } - } - }, - { - "regionTag": "cloudresourcemanager_v3_generated_TagHolds_ListTagHolds_async", - "title": "Folders listTagHolds Sample", - "origin": "API_DEFINITION", - "description": " Lists TagHolds under a TagValue.", - "canonical": true, - "file": "tag_holds.list_tag_holds.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTagHolds", - "fullName": "google.cloud.resourcemanager.v3.TagHolds.ListTagHolds", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.resourcemanager.v3.ListTagHoldsResponse", - "client": { - "shortName": "TagHoldsClient", - "fullName": "google.cloud.resourcemanager.v3.TagHoldsClient" - }, - "method": { - "shortName": "ListTagHolds", - "fullName": "google.cloud.resourcemanager.v3.TagHolds.ListTagHolds", - "service": { - "shortName": "TagHolds", - "fullName": "google.cloud.resourcemanager.v3.TagHolds" - } - } - } - }, - { - "regionTag": "cloudresourcemanager_v3_generated_TagKeys_ListTagKeys_async", - "title": "Folders listTagKeys Sample", - "origin": "API_DEFINITION", - "description": " Lists all TagKeys for a parent resource.", - "canonical": true, - "file": "tag_keys.list_tag_keys.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTagKeys", - "fullName": "google.cloud.resourcemanager.v3.TagKeys.ListTagKeys", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.resourcemanager.v3.ListTagKeysResponse", - "client": { - "shortName": "TagKeysClient", - "fullName": "google.cloud.resourcemanager.v3.TagKeysClient" - }, - "method": { - "shortName": "ListTagKeys", - "fullName": "google.cloud.resourcemanager.v3.TagKeys.ListTagKeys", - "service": { - "shortName": "TagKeys", - "fullName": "google.cloud.resourcemanager.v3.TagKeys" - } - } - } - }, - { - "regionTag": "cloudresourcemanager_v3_generated_TagKeys_GetTagKey_async", - "title": "Folders getTagKey Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a TagKey. This method will return `PERMISSION_DENIED` if the key does not exist or the user does not have permission to view it.", - "canonical": true, - "file": "tag_keys.get_tag_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTagKey", - "fullName": "google.cloud.resourcemanager.v3.TagKeys.GetTagKey", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.resourcemanager.v3.TagKey", - "client": { - "shortName": "TagKeysClient", - "fullName": "google.cloud.resourcemanager.v3.TagKeysClient" - }, - "method": { - "shortName": "GetTagKey", - "fullName": "google.cloud.resourcemanager.v3.TagKeys.GetTagKey", - "service": { - "shortName": "TagKeys", - "fullName": "google.cloud.resourcemanager.v3.TagKeys" - } - } - } - }, - { - "regionTag": "cloudresourcemanager_v3_generated_TagKeys_GetNamespacedTagKey_async", - "title": "Folders getNamespacedTagKey Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a TagKey by its namespaced name. This method will return `PERMISSION_DENIED` if the key does not exist or the user does not have permission to view it.", - "canonical": true, - "file": "tag_keys.get_namespaced_tag_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetNamespacedTagKey", - "fullName": "google.cloud.resourcemanager.v3.TagKeys.GetNamespacedTagKey", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.resourcemanager.v3.TagKey", - "client": { - "shortName": "TagKeysClient", - "fullName": "google.cloud.resourcemanager.v3.TagKeysClient" - }, - "method": { - "shortName": "GetNamespacedTagKey", - "fullName": "google.cloud.resourcemanager.v3.TagKeys.GetNamespacedTagKey", - "service": { - "shortName": "TagKeys", - "fullName": "google.cloud.resourcemanager.v3.TagKeys" - } - } - } - }, - { - "regionTag": "cloudresourcemanager_v3_generated_TagKeys_CreateTagKey_async", - "title": "Folders createTagKey Sample", - "origin": "API_DEFINITION", - "description": " Creates a new TagKey. If another request with the same parameters is sent while the original request is in process, the second request will receive an error. A maximum of 1000 TagKeys can exist under a parent at any given time.", - "canonical": true, - "file": "tag_keys.create_tag_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTagKey", - "fullName": "google.cloud.resourcemanager.v3.TagKeys.CreateTagKey", - "async": true, - "parameters": [ - { - "name": "tag_key", - "type": ".google.cloud.resourcemanager.v3.TagKey" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TagKeysClient", - "fullName": "google.cloud.resourcemanager.v3.TagKeysClient" - }, - "method": { - "shortName": "CreateTagKey", - "fullName": "google.cloud.resourcemanager.v3.TagKeys.CreateTagKey", - "service": { - "shortName": "TagKeys", - "fullName": "google.cloud.resourcemanager.v3.TagKeys" - } - } - } - }, - { - "regionTag": "cloudresourcemanager_v3_generated_TagKeys_UpdateTagKey_async", - "title": "Folders updateTagKey Sample", - "origin": "API_DEFINITION", - "description": " Updates the attributes of the TagKey resource.", - "canonical": true, - "file": "tag_keys.update_tag_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTagKey", - "fullName": "google.cloud.resourcemanager.v3.TagKeys.UpdateTagKey", - "async": true, - "parameters": [ - { - "name": "tag_key", - "type": ".google.cloud.resourcemanager.v3.TagKey" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TagKeysClient", - "fullName": "google.cloud.resourcemanager.v3.TagKeysClient" - }, - "method": { - "shortName": "UpdateTagKey", - "fullName": "google.cloud.resourcemanager.v3.TagKeys.UpdateTagKey", - "service": { - "shortName": "TagKeys", - "fullName": "google.cloud.resourcemanager.v3.TagKeys" - } - } - } - }, - { - "regionTag": "cloudresourcemanager_v3_generated_TagKeys_DeleteTagKey_async", - "title": "Folders deleteTagKey Sample", - "origin": "API_DEFINITION", - "description": " Deletes a TagKey. The TagKey cannot be deleted if it has any child TagValues.", - "canonical": true, - "file": "tag_keys.delete_tag_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTagKey", - "fullName": "google.cloud.resourcemanager.v3.TagKeys.DeleteTagKey", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TagKeysClient", - "fullName": "google.cloud.resourcemanager.v3.TagKeysClient" - }, - "method": { - "shortName": "DeleteTagKey", - "fullName": "google.cloud.resourcemanager.v3.TagKeys.DeleteTagKey", - "service": { - "shortName": "TagKeys", - "fullName": "google.cloud.resourcemanager.v3.TagKeys" - } - } - } - }, - { - "regionTag": "cloudresourcemanager_v3_generated_TagKeys_GetIamPolicy_async", - "title": "Folders getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a TagKey. The returned policy may be empty if no such policy or resource exists. The `resource` field should be the TagKey's resource name. For example, \"tagKeys/1234\". The caller must have `cloudresourcemanager.googleapis.com/tagKeys.getIamPolicy` permission on the specified TagKey.", - "canonical": true, - "file": "tag_keys.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.resourcemanager.v3.TagKeys.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": ".google.iam.v1.GetPolicyOptions" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "TagKeysClient", - "fullName": "google.cloud.resourcemanager.v3.TagKeysClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.resourcemanager.v3.TagKeys.GetIamPolicy", - "service": { - "shortName": "TagKeys", - "fullName": "google.cloud.resourcemanager.v3.TagKeys" - } - } - } - }, - { - "regionTag": "cloudresourcemanager_v3_generated_TagKeys_SetIamPolicy_async", - "title": "Folders setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on a TagKey, replacing any existing policy. The `resource` field should be the TagKey's resource name. For example, \"tagKeys/1234\". The caller must have `resourcemanager.tagKeys.setIamPolicy` permission on the identified tagValue.", - "canonical": true, - "file": "tag_keys.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.resourcemanager.v3.TagKeys.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.iam.v1.Policy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "TagKeysClient", - "fullName": "google.cloud.resourcemanager.v3.TagKeysClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.resourcemanager.v3.TagKeys.SetIamPolicy", - "service": { - "shortName": "TagKeys", - "fullName": "google.cloud.resourcemanager.v3.TagKeys" - } - } - } - }, - { - "regionTag": "cloudresourcemanager_v3_generated_TagKeys_TestIamPermissions_async", - "title": "Folders testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified TagKey. The `resource` field should be the TagKey's resource name. For example, \"tagKeys/1234\". There are no permissions required for making this API call.", - "canonical": true, - "file": "tag_keys.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.resourcemanager.v3.TagKeys.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "permissions", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.iam.v1.TestIamPermissionsResponse", - "client": { - "shortName": "TagKeysClient", - "fullName": "google.cloud.resourcemanager.v3.TagKeysClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.resourcemanager.v3.TagKeys.TestIamPermissions", - "service": { - "shortName": "TagKeys", - "fullName": "google.cloud.resourcemanager.v3.TagKeys" - } - } - } - }, - { - "regionTag": "cloudresourcemanager_v3_generated_TagValues_ListTagValues_async", - "title": "Folders listTagValues Sample", - "origin": "API_DEFINITION", - "description": " Lists all TagValues for a specific TagKey.", - "canonical": true, - "file": "tag_values.list_tag_values.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTagValues", - "fullName": "google.cloud.resourcemanager.v3.TagValues.ListTagValues", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.resourcemanager.v3.ListTagValuesResponse", - "client": { - "shortName": "TagValuesClient", - "fullName": "google.cloud.resourcemanager.v3.TagValuesClient" - }, - "method": { - "shortName": "ListTagValues", - "fullName": "google.cloud.resourcemanager.v3.TagValues.ListTagValues", - "service": { - "shortName": "TagValues", - "fullName": "google.cloud.resourcemanager.v3.TagValues" - } - } - } - }, - { - "regionTag": "cloudresourcemanager_v3_generated_TagValues_GetTagValue_async", - "title": "Folders getTagValue Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a TagValue. This method will return `PERMISSION_DENIED` if the value does not exist or the user does not have permission to view it.", - "canonical": true, - "file": "tag_values.get_tag_value.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTagValue", - "fullName": "google.cloud.resourcemanager.v3.TagValues.GetTagValue", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.resourcemanager.v3.TagValue", - "client": { - "shortName": "TagValuesClient", - "fullName": "google.cloud.resourcemanager.v3.TagValuesClient" - }, - "method": { - "shortName": "GetTagValue", - "fullName": "google.cloud.resourcemanager.v3.TagValues.GetTagValue", - "service": { - "shortName": "TagValues", - "fullName": "google.cloud.resourcemanager.v3.TagValues" - } - } - } - }, - { - "regionTag": "cloudresourcemanager_v3_generated_TagValues_GetNamespacedTagValue_async", - "title": "Folders getNamespacedTagValue Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a TagValue by its namespaced name. This method will return `PERMISSION_DENIED` if the value does not exist or the user does not have permission to view it.", - "canonical": true, - "file": "tag_values.get_namespaced_tag_value.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetNamespacedTagValue", - "fullName": "google.cloud.resourcemanager.v3.TagValues.GetNamespacedTagValue", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.resourcemanager.v3.TagValue", - "client": { - "shortName": "TagValuesClient", - "fullName": "google.cloud.resourcemanager.v3.TagValuesClient" - }, - "method": { - "shortName": "GetNamespacedTagValue", - "fullName": "google.cloud.resourcemanager.v3.TagValues.GetNamespacedTagValue", - "service": { - "shortName": "TagValues", - "fullName": "google.cloud.resourcemanager.v3.TagValues" - } - } - } - }, - { - "regionTag": "cloudresourcemanager_v3_generated_TagValues_CreateTagValue_async", - "title": "Folders createTagValue Sample", - "origin": "API_DEFINITION", - "description": " Creates a TagValue as a child of the specified TagKey. If a another request with the same parameters is sent while the original request is in process the second request will receive an error. A maximum of 1000 TagValues can exist under a TagKey at any given time.", - "canonical": true, - "file": "tag_values.create_tag_value.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTagValue", - "fullName": "google.cloud.resourcemanager.v3.TagValues.CreateTagValue", - "async": true, - "parameters": [ - { - "name": "tag_value", - "type": ".google.cloud.resourcemanager.v3.TagValue" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TagValuesClient", - "fullName": "google.cloud.resourcemanager.v3.TagValuesClient" - }, - "method": { - "shortName": "CreateTagValue", - "fullName": "google.cloud.resourcemanager.v3.TagValues.CreateTagValue", - "service": { - "shortName": "TagValues", - "fullName": "google.cloud.resourcemanager.v3.TagValues" - } - } - } - }, - { - "regionTag": "cloudresourcemanager_v3_generated_TagValues_UpdateTagValue_async", - "title": "Folders updateTagValue Sample", - "origin": "API_DEFINITION", - "description": " Updates the attributes of the TagValue resource.", - "canonical": true, - "file": "tag_values.update_tag_value.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTagValue", - "fullName": "google.cloud.resourcemanager.v3.TagValues.UpdateTagValue", - "async": true, - "parameters": [ - { - "name": "tag_value", - "type": ".google.cloud.resourcemanager.v3.TagValue" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TagValuesClient", - "fullName": "google.cloud.resourcemanager.v3.TagValuesClient" - }, - "method": { - "shortName": "UpdateTagValue", - "fullName": "google.cloud.resourcemanager.v3.TagValues.UpdateTagValue", - "service": { - "shortName": "TagValues", - "fullName": "google.cloud.resourcemanager.v3.TagValues" - } - } - } - }, - { - "regionTag": "cloudresourcemanager_v3_generated_TagValues_DeleteTagValue_async", - "title": "Folders deleteTagValue Sample", - "origin": "API_DEFINITION", - "description": " Deletes a TagValue. The TagValue cannot have any bindings when it is deleted.", - "canonical": true, - "file": "tag_values.delete_tag_value.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTagValue", - "fullName": "google.cloud.resourcemanager.v3.TagValues.DeleteTagValue", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TagValuesClient", - "fullName": "google.cloud.resourcemanager.v3.TagValuesClient" - }, - "method": { - "shortName": "DeleteTagValue", - "fullName": "google.cloud.resourcemanager.v3.TagValues.DeleteTagValue", - "service": { - "shortName": "TagValues", - "fullName": "google.cloud.resourcemanager.v3.TagValues" - } - } - } - }, - { - "regionTag": "cloudresourcemanager_v3_generated_TagValues_GetIamPolicy_async", - "title": "Folders getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a TagValue. The returned policy may be empty if no such policy or resource exists. The `resource` field should be the TagValue's resource name. For example: `tagValues/1234`. The caller must have the `cloudresourcemanager.googleapis.com/tagValues.getIamPolicy` permission on the identified TagValue to get the access control policy.", - "canonical": true, - "file": "tag_values.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.resourcemanager.v3.TagValues.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": ".google.iam.v1.GetPolicyOptions" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "TagValuesClient", - "fullName": "google.cloud.resourcemanager.v3.TagValuesClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.resourcemanager.v3.TagValues.GetIamPolicy", - "service": { - "shortName": "TagValues", - "fullName": "google.cloud.resourcemanager.v3.TagValues" - } - } - } - }, - { - "regionTag": "cloudresourcemanager_v3_generated_TagValues_SetIamPolicy_async", - "title": "Folders setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on a TagValue, replacing any existing policy. The `resource` field should be the TagValue's resource name. For example: `tagValues/1234`. The caller must have `resourcemanager.tagValues.setIamPolicy` permission on the identified tagValue.", - "canonical": true, - "file": "tag_values.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.resourcemanager.v3.TagValues.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.iam.v1.Policy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "TagValuesClient", - "fullName": "google.cloud.resourcemanager.v3.TagValuesClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.resourcemanager.v3.TagValues.SetIamPolicy", - "service": { - "shortName": "TagValues", - "fullName": "google.cloud.resourcemanager.v3.TagValues" - } - } - } - }, - { - "regionTag": "cloudresourcemanager_v3_generated_TagValues_TestIamPermissions_async", - "title": "Folders testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified TagValue. The `resource` field should be the TagValue's resource name. For example: `tagValues/1234`. There are no permissions required for making this API call.", - "canonical": true, - "file": "tag_values.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.resourcemanager.v3.TagValues.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "permissions", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.iam.v1.TestIamPermissionsResponse", - "client": { - "shortName": "TagValuesClient", - "fullName": "google.cloud.resourcemanager.v3.TagValuesClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.resourcemanager.v3.TagValues.TestIamPermissions", - "service": { - "shortName": "TagValues", - "fullName": "google.cloud.resourcemanager.v3.TagValues" - } - } - } - } - ] -} diff --git a/packages/google-cloud-retail/samples/generated/v2/snippet_metadata_google.cloud.retail.v2.json b/packages/google-cloud-retail/samples/generated/v2/snippet_metadata_google.cloud.retail.v2.json deleted file mode 100644 index 65e78e080e9c..000000000000 --- a/packages/google-cloud-retail/samples/generated/v2/snippet_metadata_google.cloud.retail.v2.json +++ /dev/null @@ -1,2915 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-retail", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.retail.v2", - "version": "v2" - } - ] - }, - "snippets": [ - { - "regionTag": "retail_v2_generated_AnalyticsService_ExportAnalyticsMetrics_async", - "title": "AnalyticsService exportAnalyticsMetrics Sample", - "origin": "API_DEFINITION", - "description": " Exports analytics metrics. `Operation.response` is of type `ExportAnalyticsMetricsResponse`. `Operation.metadata` is of type `ExportMetadata`.", - "canonical": true, - "file": "analytics_service.export_analytics_metrics.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportAnalyticsMetrics", - "fullName": "google.cloud.retail.v2.AnalyticsService.ExportAnalyticsMetrics", - "async": true, - "parameters": [ - { - "name": "catalog", - "type": "TYPE_STRING" - }, - { - "name": "output_config", - "type": ".google.cloud.retail.v2.OutputConfig" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AnalyticsServiceClient", - "fullName": "google.cloud.retail.v2.AnalyticsServiceClient" - }, - "method": { - "shortName": "ExportAnalyticsMetrics", - "fullName": "google.cloud.retail.v2.AnalyticsService.ExportAnalyticsMetrics", - "service": { - "shortName": "AnalyticsService", - "fullName": "google.cloud.retail.v2.AnalyticsService" - } - } - } - }, - { - "regionTag": "retail_v2_generated_CatalogService_ListCatalogs_async", - "title": "AnalyticsService listCatalogs Sample", - "origin": "API_DEFINITION", - "description": " Lists all the [Catalog][google.cloud.retail.v2.Catalog]s associated with the project.", - "canonical": true, - "file": "catalog_service.list_catalogs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCatalogs", - "fullName": "google.cloud.retail.v2.CatalogService.ListCatalogs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2.ListCatalogsResponse", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.retail.v2.CatalogServiceClient" - }, - "method": { - "shortName": "ListCatalogs", - "fullName": "google.cloud.retail.v2.CatalogService.ListCatalogs", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.retail.v2.CatalogService" - } - } - } - }, - { - "regionTag": "retail_v2_generated_CatalogService_UpdateCatalog_async", - "title": "AnalyticsService updateCatalog Sample", - "origin": "API_DEFINITION", - "description": " Updates the [Catalog][google.cloud.retail.v2.Catalog]s.", - "canonical": true, - "file": "catalog_service.update_catalog.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCatalog", - "fullName": "google.cloud.retail.v2.CatalogService.UpdateCatalog", - "async": true, - "parameters": [ - { - "name": "catalog", - "type": ".google.cloud.retail.v2.Catalog" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.retail.v2.Catalog", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.retail.v2.CatalogServiceClient" - }, - "method": { - "shortName": "UpdateCatalog", - "fullName": "google.cloud.retail.v2.CatalogService.UpdateCatalog", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.retail.v2.CatalogService" - } - } - } - }, - { - "regionTag": "retail_v2_generated_CatalogService_SetDefaultBranch_async", - "title": "AnalyticsService setDefaultBranch Sample", - "origin": "API_DEFINITION", - "description": " Set a specified branch id as default branch. API methods such as [SearchService.Search][google.cloud.retail.v2.SearchService.Search], [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct], [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts] will treat requests using \"default_branch\" to the actual branch id set as default. For example, if `projects/*/locations/*/catalogs/*/branches/1` is set as default, setting [SearchRequest.branch][google.cloud.retail.v2.SearchRequest.branch] to `projects/*/locations/*/catalogs/*/branches/default_branch` is equivalent to setting [SearchRequest.branch][google.cloud.retail.v2.SearchRequest.branch] to `projects/*/locations/*/catalogs/*/branches/1`. Using multiple branches can be useful when developers would like to have a staging branch to test and verify for future usage. When it becomes ready, developers switch on the staging branch using this API while keeping using `projects/*/locations/*/catalogs/*/branches/default_branch` as [SearchRequest.branch][google.cloud.retail.v2.SearchRequest.branch] to route the traffic to this staging branch. CAUTION: If you have live predict/search traffic, switching the default branch could potentially cause outages if the ID space of the new branch is very different from the old one. More specifically: * PredictionService will only return product IDs from branch {newBranch}. * SearchService will only return product IDs from branch {newBranch} (if branch is not explicitly set). * UserEventService will only join events with products from branch {newBranch}.", - "canonical": true, - "file": "catalog_service.set_default_branch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetDefaultBranch", - "fullName": "google.cloud.retail.v2.CatalogService.SetDefaultBranch", - "async": true, - "parameters": [ - { - "name": "catalog", - "type": "TYPE_STRING" - }, - { - "name": "branch_id", - "type": "TYPE_STRING" - }, - { - "name": "note", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.retail.v2.CatalogServiceClient" - }, - "method": { - "shortName": "SetDefaultBranch", - "fullName": "google.cloud.retail.v2.CatalogService.SetDefaultBranch", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.retail.v2.CatalogService" - } - } - } - }, - { - "regionTag": "retail_v2_generated_CatalogService_GetDefaultBranch_async", - "title": "AnalyticsService getDefaultBranch Sample", - "origin": "API_DEFINITION", - "description": " Get which branch is currently default branch set by [CatalogService.SetDefaultBranch][google.cloud.retail.v2.CatalogService.SetDefaultBranch] method under a specified parent catalog.", - "canonical": true, - "file": "catalog_service.get_default_branch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDefaultBranch", - "fullName": "google.cloud.retail.v2.CatalogService.GetDefaultBranch", - "async": true, - "parameters": [ - { - "name": "catalog", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2.GetDefaultBranchResponse", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.retail.v2.CatalogServiceClient" - }, - "method": { - "shortName": "GetDefaultBranch", - "fullName": "google.cloud.retail.v2.CatalogService.GetDefaultBranch", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.retail.v2.CatalogService" - } - } - } - }, - { - "regionTag": "retail_v2_generated_CatalogService_GetCompletionConfig_async", - "title": "AnalyticsService getCompletionConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets a [CompletionConfig][google.cloud.retail.v2.CompletionConfig].", - "canonical": true, - "file": "catalog_service.get_completion_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCompletionConfig", - "fullName": "google.cloud.retail.v2.CatalogService.GetCompletionConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2.CompletionConfig", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.retail.v2.CatalogServiceClient" - }, - "method": { - "shortName": "GetCompletionConfig", - "fullName": "google.cloud.retail.v2.CatalogService.GetCompletionConfig", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.retail.v2.CatalogService" - } - } - } - }, - { - "regionTag": "retail_v2_generated_CatalogService_UpdateCompletionConfig_async", - "title": "AnalyticsService updateCompletionConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates the [CompletionConfig][google.cloud.retail.v2.CompletionConfig]s.", - "canonical": true, - "file": "catalog_service.update_completion_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCompletionConfig", - "fullName": "google.cloud.retail.v2.CatalogService.UpdateCompletionConfig", - "async": true, - "parameters": [ - { - "name": "completion_config", - "type": ".google.cloud.retail.v2.CompletionConfig" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.retail.v2.CompletionConfig", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.retail.v2.CatalogServiceClient" - }, - "method": { - "shortName": "UpdateCompletionConfig", - "fullName": "google.cloud.retail.v2.CatalogService.UpdateCompletionConfig", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.retail.v2.CatalogService" - } - } - } - }, - { - "regionTag": "retail_v2_generated_CatalogService_GetAttributesConfig_async", - "title": "AnalyticsService getAttributesConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets an [AttributesConfig][google.cloud.retail.v2.AttributesConfig].", - "canonical": true, - "file": "catalog_service.get_attributes_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAttributesConfig", - "fullName": "google.cloud.retail.v2.CatalogService.GetAttributesConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2.AttributesConfig", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.retail.v2.CatalogServiceClient" - }, - "method": { - "shortName": "GetAttributesConfig", - "fullName": "google.cloud.retail.v2.CatalogService.GetAttributesConfig", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.retail.v2.CatalogService" - } - } - } - }, - { - "regionTag": "retail_v2_generated_CatalogService_UpdateAttributesConfig_async", - "title": "AnalyticsService updateAttributesConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates the [AttributesConfig][google.cloud.retail.v2.AttributesConfig]. The catalog attributes in the request will be updated in the catalog, or inserted if they do not exist. Existing catalog attributes not included in the request will remain unchanged. Attributes that are assigned to products, but do not exist at the catalog level, are always included in the response. The product attribute is assigned default values for missing catalog attribute fields, e.g., searchable and dynamic facetable options.", - "canonical": true, - "file": "catalog_service.update_attributes_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAttributesConfig", - "fullName": "google.cloud.retail.v2.CatalogService.UpdateAttributesConfig", - "async": true, - "parameters": [ - { - "name": "attributes_config", - "type": ".google.cloud.retail.v2.AttributesConfig" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.retail.v2.AttributesConfig", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.retail.v2.CatalogServiceClient" - }, - "method": { - "shortName": "UpdateAttributesConfig", - "fullName": "google.cloud.retail.v2.CatalogService.UpdateAttributesConfig", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.retail.v2.CatalogService" - } - } - } - }, - { - "regionTag": "retail_v2_generated_CatalogService_AddCatalogAttribute_async", - "title": "AnalyticsService addCatalogAttribute Sample", - "origin": "API_DEFINITION", - "description": " Adds the specified [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] to the [AttributesConfig][google.cloud.retail.v2.AttributesConfig]. If the [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] to add already exists, an ALREADY_EXISTS error is returned.", - "canonical": true, - "file": "catalog_service.add_catalog_attribute.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddCatalogAttribute", - "fullName": "google.cloud.retail.v2.CatalogService.AddCatalogAttribute", - "async": true, - "parameters": [ - { - "name": "attributes_config", - "type": "TYPE_STRING" - }, - { - "name": "catalog_attribute", - "type": ".google.cloud.retail.v2.CatalogAttribute" - } - ], - "resultType": ".google.cloud.retail.v2.AttributesConfig", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.retail.v2.CatalogServiceClient" - }, - "method": { - "shortName": "AddCatalogAttribute", - "fullName": "google.cloud.retail.v2.CatalogService.AddCatalogAttribute", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.retail.v2.CatalogService" - } - } - } - }, - { - "regionTag": "retail_v2_generated_CatalogService_RemoveCatalogAttribute_async", - "title": "AnalyticsService removeCatalogAttribute Sample", - "origin": "API_DEFINITION", - "description": " Removes the specified [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] from the [AttributesConfig][google.cloud.retail.v2.AttributesConfig]. If the [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] to remove does not exist, a NOT_FOUND error is returned.", - "canonical": true, - "file": "catalog_service.remove_catalog_attribute.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveCatalogAttribute", - "fullName": "google.cloud.retail.v2.CatalogService.RemoveCatalogAttribute", - "async": true, - "parameters": [ - { - "name": "attributes_config", - "type": "TYPE_STRING" - }, - { - "name": "key", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2.AttributesConfig", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.retail.v2.CatalogServiceClient" - }, - "method": { - "shortName": "RemoveCatalogAttribute", - "fullName": "google.cloud.retail.v2.CatalogService.RemoveCatalogAttribute", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.retail.v2.CatalogService" - } - } - } - }, - { - "regionTag": "retail_v2_generated_CatalogService_ReplaceCatalogAttribute_async", - "title": "AnalyticsService replaceCatalogAttribute Sample", - "origin": "API_DEFINITION", - "description": " Replaces the specified [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] in the [AttributesConfig][google.cloud.retail.v2.AttributesConfig] by updating the catalog attribute with the same [CatalogAttribute.key][google.cloud.retail.v2.CatalogAttribute.key]. If the [CatalogAttribute][google.cloud.retail.v2.CatalogAttribute] to replace does not exist, a NOT_FOUND error is returned.", - "canonical": true, - "file": "catalog_service.replace_catalog_attribute.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReplaceCatalogAttribute", - "fullName": "google.cloud.retail.v2.CatalogService.ReplaceCatalogAttribute", - "async": true, - "parameters": [ - { - "name": "attributes_config", - "type": "TYPE_STRING" - }, - { - "name": "catalog_attribute", - "type": ".google.cloud.retail.v2.CatalogAttribute" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.retail.v2.AttributesConfig", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.retail.v2.CatalogServiceClient" - }, - "method": { - "shortName": "ReplaceCatalogAttribute", - "fullName": "google.cloud.retail.v2.CatalogService.ReplaceCatalogAttribute", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.retail.v2.CatalogService" - } - } - } - }, - { - "regionTag": "retail_v2_generated_CompletionService_CompleteQuery_async", - "title": "AnalyticsService completeQuery Sample", - "origin": "API_DEFINITION", - "description": " Completes the specified prefix with keyword suggestions. This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature.", - "canonical": true, - "file": "completion_service.complete_query.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 135, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CompleteQuery", - "fullName": "google.cloud.retail.v2.CompletionService.CompleteQuery", - "async": true, - "parameters": [ - { - "name": "catalog", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": "TYPE_STRING" - }, - { - "name": "visitor_id", - "type": "TYPE_STRING" - }, - { - "name": "language_codes", - "type": "TYPE_STRING[]" - }, - { - "name": "device_type", - "type": "TYPE_STRING" - }, - { - "name": "dataset", - "type": "TYPE_STRING" - }, - { - "name": "max_suggestions", - "type": "TYPE_INT32" - }, - { - "name": "enable_attribute_suggestions", - "type": "TYPE_BOOL" - }, - { - "name": "entity", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2.CompleteQueryResponse", - "client": { - "shortName": "CompletionServiceClient", - "fullName": "google.cloud.retail.v2.CompletionServiceClient" - }, - "method": { - "shortName": "CompleteQuery", - "fullName": "google.cloud.retail.v2.CompletionService.CompleteQuery", - "service": { - "shortName": "CompletionService", - "fullName": "google.cloud.retail.v2.CompletionService" - } - } - } - }, - { - "regionTag": "retail_v2_generated_CompletionService_ImportCompletionData_async", - "title": "AnalyticsService importCompletionData Sample", - "origin": "API_DEFINITION", - "description": " Bulk import of processed completion dataset. Request processing is asynchronous. Partial updating is not supported. The operation is successfully finished only after the imported suggestions are indexed successfully and ready for serving. The process takes hours. This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature.", - "canonical": true, - "file": "completion_service.import_completion_data.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportCompletionData", - "fullName": "google.cloud.retail.v2.CompletionService.ImportCompletionData", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "input_config", - "type": ".google.cloud.retail.v2.CompletionDataInputConfig" - }, - { - "name": "notification_pubsub_topic", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CompletionServiceClient", - "fullName": "google.cloud.retail.v2.CompletionServiceClient" - }, - "method": { - "shortName": "ImportCompletionData", - "fullName": "google.cloud.retail.v2.CompletionService.ImportCompletionData", - "service": { - "shortName": "CompletionService", - "fullName": "google.cloud.retail.v2.CompletionService" - } - } - } - }, - { - "regionTag": "retail_v2_generated_ControlService_CreateControl_async", - "title": "AnalyticsService createControl Sample", - "origin": "API_DEFINITION", - "description": " Creates a Control. If the [Control][google.cloud.retail.v2.Control] to create already exists, an ALREADY_EXISTS error is returned.", - "canonical": true, - "file": "control_service.create_control.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateControl", - "fullName": "google.cloud.retail.v2.ControlService.CreateControl", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "control", - "type": ".google.cloud.retail.v2.Control" - }, - { - "name": "control_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2.Control", - "client": { - "shortName": "ControlServiceClient", - "fullName": "google.cloud.retail.v2.ControlServiceClient" - }, - "method": { - "shortName": "CreateControl", - "fullName": "google.cloud.retail.v2.ControlService.CreateControl", - "service": { - "shortName": "ControlService", - "fullName": "google.cloud.retail.v2.ControlService" - } - } - } - }, - { - "regionTag": "retail_v2_generated_ControlService_DeleteControl_async", - "title": "AnalyticsService deleteControl Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Control. If the [Control][google.cloud.retail.v2.Control] to delete does not exist, a NOT_FOUND error is returned.", - "canonical": true, - "file": "control_service.delete_control.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteControl", - "fullName": "google.cloud.retail.v2.ControlService.DeleteControl", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ControlServiceClient", - "fullName": "google.cloud.retail.v2.ControlServiceClient" - }, - "method": { - "shortName": "DeleteControl", - "fullName": "google.cloud.retail.v2.ControlService.DeleteControl", - "service": { - "shortName": "ControlService", - "fullName": "google.cloud.retail.v2.ControlService" - } - } - } - }, - { - "regionTag": "retail_v2_generated_ControlService_UpdateControl_async", - "title": "AnalyticsService updateControl Sample", - "origin": "API_DEFINITION", - "description": " Updates a Control. [Control][google.cloud.retail.v2.Control] cannot be set to a different oneof field, if so an INVALID_ARGUMENT is returned. If the [Control][google.cloud.retail.v2.Control] to update does not exist, a NOT_FOUND error is returned.", - "canonical": true, - "file": "control_service.update_control.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateControl", - "fullName": "google.cloud.retail.v2.ControlService.UpdateControl", - "async": true, - "parameters": [ - { - "name": "control", - "type": ".google.cloud.retail.v2.Control" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.retail.v2.Control", - "client": { - "shortName": "ControlServiceClient", - "fullName": "google.cloud.retail.v2.ControlServiceClient" - }, - "method": { - "shortName": "UpdateControl", - "fullName": "google.cloud.retail.v2.ControlService.UpdateControl", - "service": { - "shortName": "ControlService", - "fullName": "google.cloud.retail.v2.ControlService" - } - } - } - }, - { - "regionTag": "retail_v2_generated_ControlService_GetControl_async", - "title": "AnalyticsService getControl Sample", - "origin": "API_DEFINITION", - "description": " Gets a Control.", - "canonical": true, - "file": "control_service.get_control.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetControl", - "fullName": "google.cloud.retail.v2.ControlService.GetControl", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2.Control", - "client": { - "shortName": "ControlServiceClient", - "fullName": "google.cloud.retail.v2.ControlServiceClient" - }, - "method": { - "shortName": "GetControl", - "fullName": "google.cloud.retail.v2.ControlService.GetControl", - "service": { - "shortName": "ControlService", - "fullName": "google.cloud.retail.v2.ControlService" - } - } - } - }, - { - "regionTag": "retail_v2_generated_ControlService_ListControls_async", - "title": "AnalyticsService listControls Sample", - "origin": "API_DEFINITION", - "description": " Lists all Controls by their parent [Catalog][google.cloud.retail.v2.Catalog].", - "canonical": true, - "file": "control_service.list_controls.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListControls", - "fullName": "google.cloud.retail.v2.ControlService.ListControls", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2.ListControlsResponse", - "client": { - "shortName": "ControlServiceClient", - "fullName": "google.cloud.retail.v2.ControlServiceClient" - }, - "method": { - "shortName": "ListControls", - "fullName": "google.cloud.retail.v2.ControlService.ListControls", - "service": { - "shortName": "ControlService", - "fullName": "google.cloud.retail.v2.ControlService" - } - } - } - }, - { - "regionTag": "retail_v2_generated_ConversationalSearchService_ConversationalSearch_async", - "title": "AnalyticsService conversationalSearch Sample", - "origin": "API_DEFINITION", - "description": " Performs a conversational search. This feature is only available for users who have Conversational Search enabled.", - "canonical": true, - "file": "conversational_search_service.conversational_search.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 143, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ConversationalSearch", - "fullName": "google.cloud.retail.v2.ConversationalSearchService.ConversationalSearch", - "async": true, - "parameters": [ - { - "name": "placement", - "type": "TYPE_STRING" - }, - { - "name": "branch", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": "TYPE_STRING" - }, - { - "name": "page_categories", - "type": "TYPE_STRING[]" - }, - { - "name": "conversation_id", - "type": "TYPE_STRING" - }, - { - "name": "search_params", - "type": ".google.cloud.retail.v2.ConversationalSearchRequest.SearchParams" - }, - { - "name": "visitor_id", - "type": "TYPE_STRING" - }, - { - "name": "user_info", - "type": ".google.cloud.retail.v2.UserInfo" - }, - { - "name": "conversational_filtering_spec", - "type": ".google.cloud.retail.v2.ConversationalSearchRequest.ConversationalFilteringSpec" - }, - { - "name": "user_labels", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "safety_settings", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.retail.v2.ConversationalSearchResponse", - "client": { - "shortName": "ConversationalSearchServiceClient", - "fullName": "google.cloud.retail.v2.ConversationalSearchServiceClient" - }, - "method": { - "shortName": "ConversationalSearch", - "fullName": "google.cloud.retail.v2.ConversationalSearchService.ConversationalSearch", - "service": { - "shortName": "ConversationalSearchService", - "fullName": "google.cloud.retail.v2.ConversationalSearchService" - } - } - } - }, - { - "regionTag": "retail_v2_generated_GenerativeQuestionService_UpdateGenerativeQuestionsFeatureConfig_async", - "title": "AnalyticsService updateGenerativeQuestionsFeatureConfig Sample", - "origin": "API_DEFINITION", - "description": " Manages overal generative question feature state -- enables toggling feature on and off.", - "canonical": true, - "file": "generative_question_service.update_generative_questions_feature_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateGenerativeQuestionsFeatureConfig", - "fullName": "google.cloud.retail.v2.GenerativeQuestionService.UpdateGenerativeQuestionsFeatureConfig", - "async": true, - "parameters": [ - { - "name": "generative_questions_feature_config", - "type": ".google.cloud.retail.v2.GenerativeQuestionsFeatureConfig" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.retail.v2.GenerativeQuestionsFeatureConfig", - "client": { - "shortName": "GenerativeQuestionServiceClient", - "fullName": "google.cloud.retail.v2.GenerativeQuestionServiceClient" - }, - "method": { - "shortName": "UpdateGenerativeQuestionsFeatureConfig", - "fullName": "google.cloud.retail.v2.GenerativeQuestionService.UpdateGenerativeQuestionsFeatureConfig", - "service": { - "shortName": "GenerativeQuestionService", - "fullName": "google.cloud.retail.v2.GenerativeQuestionService" - } - } - } - }, - { - "regionTag": "retail_v2_generated_GenerativeQuestionService_GetGenerativeQuestionsFeatureConfig_async", - "title": "AnalyticsService getGenerativeQuestionsFeatureConfig Sample", - "origin": "API_DEFINITION", - "description": " Manages overal generative question feature state -- enables toggling feature on and off.", - "canonical": true, - "file": "generative_question_service.get_generative_questions_feature_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetGenerativeQuestionsFeatureConfig", - "fullName": "google.cloud.retail.v2.GenerativeQuestionService.GetGenerativeQuestionsFeatureConfig", - "async": true, - "parameters": [ - { - "name": "catalog", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2.GenerativeQuestionsFeatureConfig", - "client": { - "shortName": "GenerativeQuestionServiceClient", - "fullName": "google.cloud.retail.v2.GenerativeQuestionServiceClient" - }, - "method": { - "shortName": "GetGenerativeQuestionsFeatureConfig", - "fullName": "google.cloud.retail.v2.GenerativeQuestionService.GetGenerativeQuestionsFeatureConfig", - "service": { - "shortName": "GenerativeQuestionService", - "fullName": "google.cloud.retail.v2.GenerativeQuestionService" - } - } - } - }, - { - "regionTag": "retail_v2_generated_GenerativeQuestionService_ListGenerativeQuestionConfigs_async", - "title": "AnalyticsService listGenerativeQuestionConfigs Sample", - "origin": "API_DEFINITION", - "description": " Returns all questions for a given catalog.", - "canonical": true, - "file": "generative_question_service.list_generative_question_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListGenerativeQuestionConfigs", - "fullName": "google.cloud.retail.v2.GenerativeQuestionService.ListGenerativeQuestionConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2.ListGenerativeQuestionConfigsResponse", - "client": { - "shortName": "GenerativeQuestionServiceClient", - "fullName": "google.cloud.retail.v2.GenerativeQuestionServiceClient" - }, - "method": { - "shortName": "ListGenerativeQuestionConfigs", - "fullName": "google.cloud.retail.v2.GenerativeQuestionService.ListGenerativeQuestionConfigs", - "service": { - "shortName": "GenerativeQuestionService", - "fullName": "google.cloud.retail.v2.GenerativeQuestionService" - } - } - } - }, - { - "regionTag": "retail_v2_generated_GenerativeQuestionService_UpdateGenerativeQuestionConfig_async", - "title": "AnalyticsService updateGenerativeQuestionConfig Sample", - "origin": "API_DEFINITION", - "description": " Allows management of individual questions.", - "canonical": true, - "file": "generative_question_service.update_generative_question_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateGenerativeQuestionConfig", - "fullName": "google.cloud.retail.v2.GenerativeQuestionService.UpdateGenerativeQuestionConfig", - "async": true, - "parameters": [ - { - "name": "generative_question_config", - "type": ".google.cloud.retail.v2.GenerativeQuestionConfig" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.retail.v2.GenerativeQuestionConfig", - "client": { - "shortName": "GenerativeQuestionServiceClient", - "fullName": "google.cloud.retail.v2.GenerativeQuestionServiceClient" - }, - "method": { - "shortName": "UpdateGenerativeQuestionConfig", - "fullName": "google.cloud.retail.v2.GenerativeQuestionService.UpdateGenerativeQuestionConfig", - "service": { - "shortName": "GenerativeQuestionService", - "fullName": "google.cloud.retail.v2.GenerativeQuestionService" - } - } - } - }, - { - "regionTag": "retail_v2_generated_GenerativeQuestionService_BatchUpdateGenerativeQuestionConfigs_async", - "title": "AnalyticsService batchUpdateGenerativeQuestionConfigs Sample", - "origin": "API_DEFINITION", - "description": " Allows management of multiple questions.", - "canonical": true, - "file": "generative_question_service.batch_update_generative_question_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchUpdateGenerativeQuestionConfigs", - "fullName": "google.cloud.retail.v2.GenerativeQuestionService.BatchUpdateGenerativeQuestionConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.retail.v2.BatchUpdateGenerativeQuestionConfigsResponse", - "client": { - "shortName": "GenerativeQuestionServiceClient", - "fullName": "google.cloud.retail.v2.GenerativeQuestionServiceClient" - }, - "method": { - "shortName": "BatchUpdateGenerativeQuestionConfigs", - "fullName": "google.cloud.retail.v2.GenerativeQuestionService.BatchUpdateGenerativeQuestionConfigs", - "service": { - "shortName": "GenerativeQuestionService", - "fullName": "google.cloud.retail.v2.GenerativeQuestionService" - } - } - } - }, - { - "regionTag": "retail_v2_generated_ModelService_CreateModel_async", - "title": "AnalyticsService createModel Sample", - "origin": "API_DEFINITION", - "description": " Creates a new model.", - "canonical": true, - "file": "model_service.create_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateModel", - "fullName": "google.cloud.retail.v2.ModelService.CreateModel", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "model", - "type": ".google.cloud.retail.v2.Model" - }, - { - "name": "dry_run", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.retail.v2.ModelServiceClient" - }, - "method": { - "shortName": "CreateModel", - "fullName": "google.cloud.retail.v2.ModelService.CreateModel", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.retail.v2.ModelService" - } - } - } - }, - { - "regionTag": "retail_v2_generated_ModelService_GetModel_async", - "title": "AnalyticsService getModel Sample", - "origin": "API_DEFINITION", - "description": " Gets a model.", - "canonical": true, - "file": "model_service.get_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetModel", - "fullName": "google.cloud.retail.v2.ModelService.GetModel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2.Model", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.retail.v2.ModelServiceClient" - }, - "method": { - "shortName": "GetModel", - "fullName": "google.cloud.retail.v2.ModelService.GetModel", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.retail.v2.ModelService" - } - } - } - }, - { - "regionTag": "retail_v2_generated_ModelService_PauseModel_async", - "title": "AnalyticsService pauseModel Sample", - "origin": "API_DEFINITION", - "description": " Pauses the training of an existing model.", - "canonical": true, - "file": "model_service.pause_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PauseModel", - "fullName": "google.cloud.retail.v2.ModelService.PauseModel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2.Model", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.retail.v2.ModelServiceClient" - }, - "method": { - "shortName": "PauseModel", - "fullName": "google.cloud.retail.v2.ModelService.PauseModel", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.retail.v2.ModelService" - } - } - } - }, - { - "regionTag": "retail_v2_generated_ModelService_ResumeModel_async", - "title": "AnalyticsService resumeModel Sample", - "origin": "API_DEFINITION", - "description": " Resumes the training of an existing model.", - "canonical": true, - "file": "model_service.resume_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResumeModel", - "fullName": "google.cloud.retail.v2.ModelService.ResumeModel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2.Model", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.retail.v2.ModelServiceClient" - }, - "method": { - "shortName": "ResumeModel", - "fullName": "google.cloud.retail.v2.ModelService.ResumeModel", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.retail.v2.ModelService" - } - } - } - }, - { - "regionTag": "retail_v2_generated_ModelService_DeleteModel_async", - "title": "AnalyticsService deleteModel Sample", - "origin": "API_DEFINITION", - "description": " Deletes an existing model.", - "canonical": true, - "file": "model_service.delete_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteModel", - "fullName": "google.cloud.retail.v2.ModelService.DeleteModel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.retail.v2.ModelServiceClient" - }, - "method": { - "shortName": "DeleteModel", - "fullName": "google.cloud.retail.v2.ModelService.DeleteModel", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.retail.v2.ModelService" - } - } - } - }, - { - "regionTag": "retail_v2_generated_ModelService_ListModels_async", - "title": "AnalyticsService listModels Sample", - "origin": "API_DEFINITION", - "description": " Lists all the models linked to this event store.", - "canonical": true, - "file": "model_service.list_models.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListModels", - "fullName": "google.cloud.retail.v2.ModelService.ListModels", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2.ListModelsResponse", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.retail.v2.ModelServiceClient" - }, - "method": { - "shortName": "ListModels", - "fullName": "google.cloud.retail.v2.ModelService.ListModels", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.retail.v2.ModelService" - } - } - } - }, - { - "regionTag": "retail_v2_generated_ModelService_UpdateModel_async", - "title": "AnalyticsService updateModel Sample", - "origin": "API_DEFINITION", - "description": " Update of model metadata. Only fields that currently can be updated are: `filtering_option` and `periodic_tuning_state`. If other values are provided, this API method ignores them.", - "canonical": true, - "file": "model_service.update_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateModel", - "fullName": "google.cloud.retail.v2.ModelService.UpdateModel", - "async": true, - "parameters": [ - { - "name": "model", - "type": ".google.cloud.retail.v2.Model" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.retail.v2.Model", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.retail.v2.ModelServiceClient" - }, - "method": { - "shortName": "UpdateModel", - "fullName": "google.cloud.retail.v2.ModelService.UpdateModel", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.retail.v2.ModelService" - } - } - } - }, - { - "regionTag": "retail_v2_generated_ModelService_TuneModel_async", - "title": "AnalyticsService tuneModel Sample", - "origin": "API_DEFINITION", - "description": " Tunes an existing model.", - "canonical": true, - "file": "model_service.tune_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TuneModel", - "fullName": "google.cloud.retail.v2.ModelService.TuneModel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.retail.v2.ModelServiceClient" - }, - "method": { - "shortName": "TuneModel", - "fullName": "google.cloud.retail.v2.ModelService.TuneModel", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.retail.v2.ModelService" - } - } - } - }, - { - "regionTag": "retail_v2_generated_PredictionService_Predict_async", - "title": "AnalyticsService predict Sample", - "origin": "API_DEFINITION", - "description": " Makes a recommendation prediction.", - "canonical": true, - "file": "prediction_service.predict.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 179, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Predict", - "fullName": "google.cloud.retail.v2.PredictionService.Predict", - "async": true, - "parameters": [ - { - "name": "placement", - "type": "TYPE_STRING" - }, - { - "name": "user_event", - "type": ".google.cloud.retail.v2.UserEvent" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "params", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "labels", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.retail.v2.PredictResponse", - "client": { - "shortName": "PredictionServiceClient", - "fullName": "google.cloud.retail.v2.PredictionServiceClient" - }, - "method": { - "shortName": "Predict", - "fullName": "google.cloud.retail.v2.PredictionService.Predict", - "service": { - "shortName": "PredictionService", - "fullName": "google.cloud.retail.v2.PredictionService" - } - } - } - }, - { - "regionTag": "retail_v2_generated_ProductService_CreateProduct_async", - "title": "AnalyticsService createProduct Sample", - "origin": "API_DEFINITION", - "description": " Creates a [Product][google.cloud.retail.v2.Product].", - "canonical": true, - "file": "product_service.create_product.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateProduct", - "fullName": "google.cloud.retail.v2.ProductService.CreateProduct", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "product", - "type": ".google.cloud.retail.v2.Product" - }, - { - "name": "product_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2.Product", - "client": { - "shortName": "ProductServiceClient", - "fullName": "google.cloud.retail.v2.ProductServiceClient" - }, - "method": { - "shortName": "CreateProduct", - "fullName": "google.cloud.retail.v2.ProductService.CreateProduct", - "service": { - "shortName": "ProductService", - "fullName": "google.cloud.retail.v2.ProductService" - } - } - } - }, - { - "regionTag": "retail_v2_generated_ProductService_GetProduct_async", - "title": "AnalyticsService getProduct Sample", - "origin": "API_DEFINITION", - "description": " Gets a [Product][google.cloud.retail.v2.Product].", - "canonical": true, - "file": "product_service.get_product.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetProduct", - "fullName": "google.cloud.retail.v2.ProductService.GetProduct", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2.Product", - "client": { - "shortName": "ProductServiceClient", - "fullName": "google.cloud.retail.v2.ProductServiceClient" - }, - "method": { - "shortName": "GetProduct", - "fullName": "google.cloud.retail.v2.ProductService.GetProduct", - "service": { - "shortName": "ProductService", - "fullName": "google.cloud.retail.v2.ProductService" - } - } - } - }, - { - "regionTag": "retail_v2_generated_ProductService_ListProducts_async", - "title": "AnalyticsService listProducts Sample", - "origin": "API_DEFINITION", - "description": " Gets a list of [Product][google.cloud.retail.v2.Product]s.", - "canonical": true, - "file": "product_service.list_products.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 125, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListProducts", - "fullName": "google.cloud.retail.v2.ProductService.ListProducts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.retail.v2.ListProductsResponse", - "client": { - "shortName": "ProductServiceClient", - "fullName": "google.cloud.retail.v2.ProductServiceClient" - }, - "method": { - "shortName": "ListProducts", - "fullName": "google.cloud.retail.v2.ProductService.ListProducts", - "service": { - "shortName": "ProductService", - "fullName": "google.cloud.retail.v2.ProductService" - } - } - } - }, - { - "regionTag": "retail_v2_generated_ProductService_UpdateProduct_async", - "title": "AnalyticsService updateProduct Sample", - "origin": "API_DEFINITION", - "description": " Updates a [Product][google.cloud.retail.v2.Product].", - "canonical": true, - "file": "product_service.update_product.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateProduct", - "fullName": "google.cloud.retail.v2.ProductService.UpdateProduct", - "async": true, - "parameters": [ - { - "name": "product", - "type": ".google.cloud.retail.v2.Product" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.retail.v2.Product", - "client": { - "shortName": "ProductServiceClient", - "fullName": "google.cloud.retail.v2.ProductServiceClient" - }, - "method": { - "shortName": "UpdateProduct", - "fullName": "google.cloud.retail.v2.ProductService.UpdateProduct", - "service": { - "shortName": "ProductService", - "fullName": "google.cloud.retail.v2.ProductService" - } - } - } - }, - { - "regionTag": "retail_v2_generated_ProductService_DeleteProduct_async", - "title": "AnalyticsService deleteProduct Sample", - "origin": "API_DEFINITION", - "description": " Deletes a [Product][google.cloud.retail.v2.Product].", - "canonical": true, - "file": "product_service.delete_product.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteProduct", - "fullName": "google.cloud.retail.v2.ProductService.DeleteProduct", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ProductServiceClient", - "fullName": "google.cloud.retail.v2.ProductServiceClient" - }, - "method": { - "shortName": "DeleteProduct", - "fullName": "google.cloud.retail.v2.ProductService.DeleteProduct", - "service": { - "shortName": "ProductService", - "fullName": "google.cloud.retail.v2.ProductService" - } - } - } - }, - { - "regionTag": "retail_v2_generated_ProductService_PurgeProducts_async", - "title": "AnalyticsService purgeProducts Sample", - "origin": "API_DEFINITION", - "description": " Permanently deletes all selected [Product][google.cloud.retail.v2.Product]s under a branch. This process is asynchronous. If the request is valid, the removal will be enqueued and processed offline. Depending on the number of [Product][google.cloud.retail.v2.Product]s, this operation could take hours to complete. Before the operation completes, some [Product][google.cloud.retail.v2.Product]s may still be returned by [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct] or [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts]. Depending on the number of [Product][google.cloud.retail.v2.Product]s, this operation could take hours to complete. To get a sample of [Product][google.cloud.retail.v2.Product]s that would be deleted, set [PurgeProductsRequest.force][google.cloud.retail.v2.PurgeProductsRequest.force] to false.", - "canonical": true, - "file": "product_service.purge_products.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 95, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PurgeProducts", - "fullName": "google.cloud.retail.v2.ProductService.PurgeProducts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ProductServiceClient", - "fullName": "google.cloud.retail.v2.ProductServiceClient" - }, - "method": { - "shortName": "PurgeProducts", - "fullName": "google.cloud.retail.v2.ProductService.PurgeProducts", - "service": { - "shortName": "ProductService", - "fullName": "google.cloud.retail.v2.ProductService" - } - } - } - }, - { - "regionTag": "retail_v2_generated_ProductService_ImportProducts_async", - "title": "AnalyticsService importProducts Sample", - "origin": "API_DEFINITION", - "description": " Bulk import of multiple [Product][google.cloud.retail.v2.Product]s. Request processing may be synchronous. Non-existing items are created. Note that it is possible for a subset of the [Product][google.cloud.retail.v2.Product]s to be successfully updated.", - "canonical": true, - "file": "product_service.import_products.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 95, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportProducts", - "fullName": "google.cloud.retail.v2.ProductService.ImportProducts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "input_config", - "type": ".google.cloud.retail.v2.ProductInputConfig" - }, - { - "name": "errors_config", - "type": ".google.cloud.retail.v2.ImportErrorsConfig" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "reconciliation_mode", - "type": ".google.cloud.retail.v2.ImportProductsRequest.ReconciliationMode" - }, - { - "name": "notification_pubsub_topic", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ProductServiceClient", - "fullName": "google.cloud.retail.v2.ProductServiceClient" - }, - "method": { - "shortName": "ImportProducts", - "fullName": "google.cloud.retail.v2.ProductService.ImportProducts", - "service": { - "shortName": "ProductService", - "fullName": "google.cloud.retail.v2.ProductService" - } - } - } - }, - { - "regionTag": "retail_v2_generated_ProductService_SetInventory_async", - "title": "AnalyticsService setInventory Sample", - "origin": "API_DEFINITION", - "description": " Updates inventory information for a [Product][google.cloud.retail.v2.Product] while respecting the last update timestamps of each inventory field. This process is asynchronous and does not require the [Product][google.cloud.retail.v2.Product] to exist before updating fulfillment information. If the request is valid, the update is enqueued and processed downstream. As a consequence, when a response is returned, updates are not immediately manifested in the [Product][google.cloud.retail.v2.Product] queried by [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct] or [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts]. When inventory is updated with [ProductService.CreateProduct][google.cloud.retail.v2.ProductService.CreateProduct] and [ProductService.UpdateProduct][google.cloud.retail.v2.ProductService.UpdateProduct], the specified inventory field value(s) overwrite any existing value(s) while ignoring the last update time for this field. Furthermore, the last update times for the specified inventory fields are overwritten by the times of the [ProductService.CreateProduct][google.cloud.retail.v2.ProductService.CreateProduct] or [ProductService.UpdateProduct][google.cloud.retail.v2.ProductService.UpdateProduct] request. If no inventory fields are set in [CreateProductRequest.product][google.cloud.retail.v2.CreateProductRequest.product], then any pre-existing inventory information for this product is used. If no inventory fields are set in [SetInventoryRequest.set_mask][google.cloud.retail.v2.SetInventoryRequest.set_mask], then any existing inventory information is preserved. Pre-existing inventory information can only be updated with [ProductService.SetInventory][google.cloud.retail.v2.ProductService.SetInventory], [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2.ProductService.AddFulfillmentPlaces], and [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2.ProductService.RemoveFulfillmentPlaces]. The returned [Operation][google.longrunning.Operation]s is obsolete after one day, and the [GetOperation][google.longrunning.Operations.GetOperation] API returns `NOT_FOUND` afterwards. If conflicting updates are issued, the [Operation][google.longrunning.Operation]s associated with the stale updates are not marked as [done][google.longrunning.Operation.done] until they are obsolete.", - "canonical": true, - "file": "product_service.set_inventory.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 123, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetInventory", - "fullName": "google.cloud.retail.v2.ProductService.SetInventory", - "async": true, - "parameters": [ - { - "name": "inventory", - "type": ".google.cloud.retail.v2.Product" - }, - { - "name": "set_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "set_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ProductServiceClient", - "fullName": "google.cloud.retail.v2.ProductServiceClient" - }, - "method": { - "shortName": "SetInventory", - "fullName": "google.cloud.retail.v2.ProductService.SetInventory", - "service": { - "shortName": "ProductService", - "fullName": "google.cloud.retail.v2.ProductService" - } - } - } - }, - { - "regionTag": "retail_v2_generated_ProductService_AddFulfillmentPlaces_async", - "title": "AnalyticsService addFulfillmentPlaces Sample", - "origin": "API_DEFINITION", - "description": " We recommend that you use the [ProductService.AddLocalInventories][google.cloud.retail.v2.ProductService.AddLocalInventories] method instead of the [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2.ProductService.AddFulfillmentPlaces] method. [ProductService.AddLocalInventories][google.cloud.retail.v2.ProductService.AddLocalInventories] achieves the same results but provides more fine-grained control over ingesting local inventory data. Incrementally adds place IDs to [Product.fulfillment_info.place_ids][google.cloud.retail.v2.FulfillmentInfo.place_ids]. This process is asynchronous and does not require the [Product][google.cloud.retail.v2.Product] to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the added place IDs are not immediately manifested in the [Product][google.cloud.retail.v2.Product] queried by [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct] or [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts]. The returned [Operation][google.longrunning.Operation]s will be obsolete after 1 day, and [GetOperation][google.longrunning.Operations.GetOperation] API will return NOT_FOUND afterwards. If conflicting updates are issued, the [Operation][google.longrunning.Operation]s associated with the stale updates will not be marked as [done][google.longrunning.Operation.done] until being obsolete.", - "canonical": true, - "file": "product_service.add_fulfillment_places.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 111, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddFulfillmentPlaces", - "fullName": "google.cloud.retail.v2.ProductService.AddFulfillmentPlaces", - "async": true, - "parameters": [ - { - "name": "product", - "type": "TYPE_STRING" - }, - { - "name": "type", - "type": "TYPE_STRING" - }, - { - "name": "place_ids", - "type": "TYPE_STRING[]" - }, - { - "name": "add_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ProductServiceClient", - "fullName": "google.cloud.retail.v2.ProductServiceClient" - }, - "method": { - "shortName": "AddFulfillmentPlaces", - "fullName": "google.cloud.retail.v2.ProductService.AddFulfillmentPlaces", - "service": { - "shortName": "ProductService", - "fullName": "google.cloud.retail.v2.ProductService" - } - } - } - }, - { - "regionTag": "retail_v2_generated_ProductService_RemoveFulfillmentPlaces_async", - "title": "AnalyticsService removeFulfillmentPlaces Sample", - "origin": "API_DEFINITION", - "description": " We recommend that you use the [ProductService.RemoveLocalInventories][google.cloud.retail.v2.ProductService.RemoveLocalInventories] method instead of the [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2.ProductService.RemoveFulfillmentPlaces] method. [ProductService.RemoveLocalInventories][google.cloud.retail.v2.ProductService.RemoveLocalInventories] achieves the same results but provides more fine-grained control over ingesting local inventory data. Incrementally removes place IDs from a [Product.fulfillment_info.place_ids][google.cloud.retail.v2.FulfillmentInfo.place_ids]. This process is asynchronous and does not require the [Product][google.cloud.retail.v2.Product] to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the removed place IDs are not immediately manifested in the [Product][google.cloud.retail.v2.Product] queried by [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct] or [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts]. The returned [Operation][google.longrunning.Operation]s will be obsolete after 1 day, and [GetOperation][google.longrunning.Operations.GetOperation] API will return NOT_FOUND afterwards. If conflicting updates are issued, the [Operation][google.longrunning.Operation]s associated with the stale updates will not be marked as [done][google.longrunning.Operation.done] until being obsolete.", - "canonical": true, - "file": "product_service.remove_fulfillment_places.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 107, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveFulfillmentPlaces", - "fullName": "google.cloud.retail.v2.ProductService.RemoveFulfillmentPlaces", - "async": true, - "parameters": [ - { - "name": "product", - "type": "TYPE_STRING" - }, - { - "name": "type", - "type": "TYPE_STRING" - }, - { - "name": "place_ids", - "type": "TYPE_STRING[]" - }, - { - "name": "remove_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ProductServiceClient", - "fullName": "google.cloud.retail.v2.ProductServiceClient" - }, - "method": { - "shortName": "RemoveFulfillmentPlaces", - "fullName": "google.cloud.retail.v2.ProductService.RemoveFulfillmentPlaces", - "service": { - "shortName": "ProductService", - "fullName": "google.cloud.retail.v2.ProductService" - } - } - } - }, - { - "regionTag": "retail_v2_generated_ProductService_AddLocalInventories_async", - "title": "AnalyticsService addLocalInventories Sample", - "origin": "API_DEFINITION", - "description": " Updates local inventory information for a [Product][google.cloud.retail.v2.Product] at a list of places, while respecting the last update timestamps of each inventory field. This process is asynchronous and does not require the [Product][google.cloud.retail.v2.Product] to exist before updating inventory information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, updates are not immediately manifested in the [Product][google.cloud.retail.v2.Product] queried by [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct] or [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts]. Local inventory information can only be modified using this method. [ProductService.CreateProduct][google.cloud.retail.v2.ProductService.CreateProduct] and [ProductService.UpdateProduct][google.cloud.retail.v2.ProductService.UpdateProduct] has no effect on local inventories. The returned [Operation][google.longrunning.Operation]s will be obsolete after 1 day, and [GetOperation][google.longrunning.Operations.GetOperation] API will return NOT_FOUND afterwards. If conflicting updates are issued, the [Operation][google.longrunning.Operation]s associated with the stale updates will not be marked as [done][google.longrunning.Operation.done] until being obsolete.", - "canonical": true, - "file": "product_service.add_local_inventories.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 94, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddLocalInventories", - "fullName": "google.cloud.retail.v2.ProductService.AddLocalInventories", - "async": true, - "parameters": [ - { - "name": "product", - "type": "TYPE_STRING" - }, - { - "name": "local_inventories", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "add_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "add_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ProductServiceClient", - "fullName": "google.cloud.retail.v2.ProductServiceClient" - }, - "method": { - "shortName": "AddLocalInventories", - "fullName": "google.cloud.retail.v2.ProductService.AddLocalInventories", - "service": { - "shortName": "ProductService", - "fullName": "google.cloud.retail.v2.ProductService" - } - } - } - }, - { - "regionTag": "retail_v2_generated_ProductService_RemoveLocalInventories_async", - "title": "AnalyticsService removeLocalInventories Sample", - "origin": "API_DEFINITION", - "description": " Remove local inventory information for a [Product][google.cloud.retail.v2.Product] at a list of places at a removal timestamp. This process is asynchronous. If the request is valid, the removal will be enqueued and processed downstream. As a consequence, when a response is returned, removals are not immediately manifested in the [Product][google.cloud.retail.v2.Product] queried by [ProductService.GetProduct][google.cloud.retail.v2.ProductService.GetProduct] or [ProductService.ListProducts][google.cloud.retail.v2.ProductService.ListProducts]. Local inventory information can only be removed using this method. [ProductService.CreateProduct][google.cloud.retail.v2.ProductService.CreateProduct] and [ProductService.UpdateProduct][google.cloud.retail.v2.ProductService.UpdateProduct] has no effect on local inventories. The returned [Operation][google.longrunning.Operation]s will be obsolete after 1 day, and [GetOperation][google.longrunning.Operations.GetOperation] API will return NOT_FOUND afterwards. If conflicting updates are issued, the [Operation][google.longrunning.Operation]s associated with the stale updates will not be marked as [done][google.longrunning.Operation.done] until being obsolete.", - "canonical": true, - "file": "product_service.remove_local_inventories.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveLocalInventories", - "fullName": "google.cloud.retail.v2.ProductService.RemoveLocalInventories", - "async": true, - "parameters": [ - { - "name": "product", - "type": "TYPE_STRING" - }, - { - "name": "place_ids", - "type": "TYPE_STRING[]" - }, - { - "name": "remove_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ProductServiceClient", - "fullName": "google.cloud.retail.v2.ProductServiceClient" - }, - "method": { - "shortName": "RemoveLocalInventories", - "fullName": "google.cloud.retail.v2.ProductService.RemoveLocalInventories", - "service": { - "shortName": "ProductService", - "fullName": "google.cloud.retail.v2.ProductService" - } - } - } - }, - { - "regionTag": "retail_v2_generated_SearchService_Search_async", - "title": "AnalyticsService search Sample", - "origin": "API_DEFINITION", - "description": " Performs a search. This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature.", - "canonical": true, - "file": "search_service.search.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 359, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Search", - "fullName": "google.cloud.retail.v2.SearchService.Search", - "async": true, - "parameters": [ - { - "name": "placement", - "type": "TYPE_STRING" - }, - { - "name": "branch", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": "TYPE_STRING" - }, - { - "name": "visitor_id", - "type": "TYPE_STRING" - }, - { - "name": "user_info", - "type": ".google.cloud.retail.v2.UserInfo" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "offset", - "type": "TYPE_INT32" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "canonical_filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "facet_specs", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "dynamic_facet_spec", - "type": ".google.cloud.retail.v2.SearchRequest.DynamicFacetSpec" - }, - { - "name": "boost_spec", - "type": ".google.cloud.retail.v2.SearchRequest.BoostSpec" - }, - { - "name": "query_expansion_spec", - "type": ".google.cloud.retail.v2.SearchRequest.QueryExpansionSpec" - }, - { - "name": "variant_rollup_keys", - "type": "TYPE_STRING[]" - }, - { - "name": "page_categories", - "type": "TYPE_STRING[]" - }, - { - "name": "search_mode", - "type": ".google.cloud.retail.v2.SearchRequest.SearchMode" - }, - { - "name": "personalization_spec", - "type": ".google.cloud.retail.v2.SearchRequest.PersonalizationSpec" - }, - { - "name": "labels", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "spell_correction_spec", - "type": ".google.cloud.retail.v2.SearchRequest.SpellCorrectionSpec" - }, - { - "name": "entity", - "type": "TYPE_STRING" - }, - { - "name": "conversational_search_spec", - "type": ".google.cloud.retail.v2.SearchRequest.ConversationalSearchSpec" - }, - { - "name": "tile_navigation_spec", - "type": ".google.cloud.retail.v2.SearchRequest.TileNavigationSpec" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "region_code", - "type": "TYPE_STRING" - }, - { - "name": "place_id", - "type": "TYPE_STRING" - }, - { - "name": "user_attributes", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.retail.v2.SearchResponse", - "client": { - "shortName": "SearchServiceClient", - "fullName": "google.cloud.retail.v2.SearchServiceClient" - }, - "method": { - "shortName": "Search", - "fullName": "google.cloud.retail.v2.SearchService.Search", - "service": { - "shortName": "SearchService", - "fullName": "google.cloud.retail.v2.SearchService" - } - } - } - }, - { - "regionTag": "retail_v2_generated_ServingConfigService_CreateServingConfig_async", - "title": "AnalyticsService createServingConfig Sample", - "origin": "API_DEFINITION", - "description": " Creates a ServingConfig. A maximum of 100 [ServingConfig][google.cloud.retail.v2.ServingConfig]s are allowed in a [Catalog][google.cloud.retail.v2.Catalog], otherwise a FAILED_PRECONDITION error is returned.", - "canonical": true, - "file": "serving_config_service.create_serving_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateServingConfig", - "fullName": "google.cloud.retail.v2.ServingConfigService.CreateServingConfig", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "serving_config", - "type": ".google.cloud.retail.v2.ServingConfig" - }, - { - "name": "serving_config_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2.ServingConfig", - "client": { - "shortName": "ServingConfigServiceClient", - "fullName": "google.cloud.retail.v2.ServingConfigServiceClient" - }, - "method": { - "shortName": "CreateServingConfig", - "fullName": "google.cloud.retail.v2.ServingConfigService.CreateServingConfig", - "service": { - "shortName": "ServingConfigService", - "fullName": "google.cloud.retail.v2.ServingConfigService" - } - } - } - }, - { - "regionTag": "retail_v2_generated_ServingConfigService_DeleteServingConfig_async", - "title": "AnalyticsService deleteServingConfig Sample", - "origin": "API_DEFINITION", - "description": " Deletes a ServingConfig. Returns a NotFound error if the ServingConfig does not exist.", - "canonical": true, - "file": "serving_config_service.delete_serving_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteServingConfig", - "fullName": "google.cloud.retail.v2.ServingConfigService.DeleteServingConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ServingConfigServiceClient", - "fullName": "google.cloud.retail.v2.ServingConfigServiceClient" - }, - "method": { - "shortName": "DeleteServingConfig", - "fullName": "google.cloud.retail.v2.ServingConfigService.DeleteServingConfig", - "service": { - "shortName": "ServingConfigService", - "fullName": "google.cloud.retail.v2.ServingConfigService" - } - } - } - }, - { - "regionTag": "retail_v2_generated_ServingConfigService_UpdateServingConfig_async", - "title": "AnalyticsService updateServingConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates a ServingConfig.", - "canonical": true, - "file": "serving_config_service.update_serving_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateServingConfig", - "fullName": "google.cloud.retail.v2.ServingConfigService.UpdateServingConfig", - "async": true, - "parameters": [ - { - "name": "serving_config", - "type": ".google.cloud.retail.v2.ServingConfig" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.retail.v2.ServingConfig", - "client": { - "shortName": "ServingConfigServiceClient", - "fullName": "google.cloud.retail.v2.ServingConfigServiceClient" - }, - "method": { - "shortName": "UpdateServingConfig", - "fullName": "google.cloud.retail.v2.ServingConfigService.UpdateServingConfig", - "service": { - "shortName": "ServingConfigService", - "fullName": "google.cloud.retail.v2.ServingConfigService" - } - } - } - }, - { - "regionTag": "retail_v2_generated_ServingConfigService_GetServingConfig_async", - "title": "AnalyticsService getServingConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets a ServingConfig. Returns a NotFound error if the ServingConfig does not exist.", - "canonical": true, - "file": "serving_config_service.get_serving_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetServingConfig", - "fullName": "google.cloud.retail.v2.ServingConfigService.GetServingConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2.ServingConfig", - "client": { - "shortName": "ServingConfigServiceClient", - "fullName": "google.cloud.retail.v2.ServingConfigServiceClient" - }, - "method": { - "shortName": "GetServingConfig", - "fullName": "google.cloud.retail.v2.ServingConfigService.GetServingConfig", - "service": { - "shortName": "ServingConfigService", - "fullName": "google.cloud.retail.v2.ServingConfigService" - } - } - } - }, - { - "regionTag": "retail_v2_generated_ServingConfigService_ListServingConfigs_async", - "title": "AnalyticsService listServingConfigs Sample", - "origin": "API_DEFINITION", - "description": " Lists all ServingConfigs linked to this catalog.", - "canonical": true, - "file": "serving_config_service.list_serving_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListServingConfigs", - "fullName": "google.cloud.retail.v2.ServingConfigService.ListServingConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2.ListServingConfigsResponse", - "client": { - "shortName": "ServingConfigServiceClient", - "fullName": "google.cloud.retail.v2.ServingConfigServiceClient" - }, - "method": { - "shortName": "ListServingConfigs", - "fullName": "google.cloud.retail.v2.ServingConfigService.ListServingConfigs", - "service": { - "shortName": "ServingConfigService", - "fullName": "google.cloud.retail.v2.ServingConfigService" - } - } - } - }, - { - "regionTag": "retail_v2_generated_ServingConfigService_AddControl_async", - "title": "AnalyticsService addControl Sample", - "origin": "API_DEFINITION", - "description": " Enables a Control on the specified ServingConfig. The control is added in the last position of the list of controls it belongs to (e.g. if it's a facet spec control it will be applied in the last position of servingConfig.facetSpecIds) Returns a ALREADY_EXISTS error if the control has already been applied. Returns a FAILED_PRECONDITION error if the addition could exceed maximum number of control allowed for that type of control.", - "canonical": true, - "file": "serving_config_service.add_control.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddControl", - "fullName": "google.cloud.retail.v2.ServingConfigService.AddControl", - "async": true, - "parameters": [ - { - "name": "serving_config", - "type": "TYPE_STRING" - }, - { - "name": "control_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2.ServingConfig", - "client": { - "shortName": "ServingConfigServiceClient", - "fullName": "google.cloud.retail.v2.ServingConfigServiceClient" - }, - "method": { - "shortName": "AddControl", - "fullName": "google.cloud.retail.v2.ServingConfigService.AddControl", - "service": { - "shortName": "ServingConfigService", - "fullName": "google.cloud.retail.v2.ServingConfigService" - } - } - } - }, - { - "regionTag": "retail_v2_generated_ServingConfigService_RemoveControl_async", - "title": "AnalyticsService removeControl Sample", - "origin": "API_DEFINITION", - "description": " Disables a Control on the specified ServingConfig. The control is removed from the ServingConfig. Returns a NOT_FOUND error if the Control is not enabled for the ServingConfig.", - "canonical": true, - "file": "serving_config_service.remove_control.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveControl", - "fullName": "google.cloud.retail.v2.ServingConfigService.RemoveControl", - "async": true, - "parameters": [ - { - "name": "serving_config", - "type": "TYPE_STRING" - }, - { - "name": "control_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2.ServingConfig", - "client": { - "shortName": "ServingConfigServiceClient", - "fullName": "google.cloud.retail.v2.ServingConfigServiceClient" - }, - "method": { - "shortName": "RemoveControl", - "fullName": "google.cloud.retail.v2.ServingConfigService.RemoveControl", - "service": { - "shortName": "ServingConfigService", - "fullName": "google.cloud.retail.v2.ServingConfigService" - } - } - } - }, - { - "regionTag": "retail_v2_generated_UserEventService_WriteUserEvent_async", - "title": "AnalyticsService writeUserEvent Sample", - "origin": "API_DEFINITION", - "description": " Writes a single user event.", - "canonical": true, - "file": "user_event_service.write_user_event.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "WriteUserEvent", - "fullName": "google.cloud.retail.v2.UserEventService.WriteUserEvent", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "user_event", - "type": ".google.cloud.retail.v2.UserEvent" - }, - { - "name": "write_async", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.retail.v2.UserEvent", - "client": { - "shortName": "UserEventServiceClient", - "fullName": "google.cloud.retail.v2.UserEventServiceClient" - }, - "method": { - "shortName": "WriteUserEvent", - "fullName": "google.cloud.retail.v2.UserEventService.WriteUserEvent", - "service": { - "shortName": "UserEventService", - "fullName": "google.cloud.retail.v2.UserEventService" - } - } - } - }, - { - "regionTag": "retail_v2_generated_UserEventService_CollectUserEvent_async", - "title": "AnalyticsService collectUserEvent Sample", - "origin": "API_DEFINITION", - "description": " Writes a single user event from the browser. For larger user event payload over 16 KB, the POST method should be used instead, otherwise a 400 Bad Request error is returned. This method is used only by the Retail API JavaScript pixel and Google Tag Manager. Users should not call this method directly.", - "canonical": true, - "file": "user_event_service.collect_user_event.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CollectUserEvent", - "fullName": "google.cloud.retail.v2.UserEventService.CollectUserEvent", - "async": true, - "parameters": [ - { - "name": "prebuilt_rule", - "type": "TYPE_STRING" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "user_event", - "type": "TYPE_STRING" - }, - { - "name": "uri", - "type": "TYPE_STRING" - }, - { - "name": "ets", - "type": "TYPE_INT64" - }, - { - "name": "raw_json", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.api.HttpBody", - "client": { - "shortName": "UserEventServiceClient", - "fullName": "google.cloud.retail.v2.UserEventServiceClient" - }, - "method": { - "shortName": "CollectUserEvent", - "fullName": "google.cloud.retail.v2.UserEventService.CollectUserEvent", - "service": { - "shortName": "UserEventService", - "fullName": "google.cloud.retail.v2.UserEventService" - } - } - } - }, - { - "regionTag": "retail_v2_generated_UserEventService_PurgeUserEvents_async", - "title": "AnalyticsService purgeUserEvents Sample", - "origin": "API_DEFINITION", - "description": " Deletes permanently all user events specified by the filter provided. Depending on the number of events specified by the filter, this operation could take hours or days to complete. To test a filter, use the list command first.", - "canonical": true, - "file": "user_event_service.purge_user_events.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PurgeUserEvents", - "fullName": "google.cloud.retail.v2.UserEventService.PurgeUserEvents", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "UserEventServiceClient", - "fullName": "google.cloud.retail.v2.UserEventServiceClient" - }, - "method": { - "shortName": "PurgeUserEvents", - "fullName": "google.cloud.retail.v2.UserEventService.PurgeUserEvents", - "service": { - "shortName": "UserEventService", - "fullName": "google.cloud.retail.v2.UserEventService" - } - } - } - }, - { - "regionTag": "retail_v2_generated_UserEventService_ImportUserEvents_async", - "title": "AnalyticsService importUserEvents Sample", - "origin": "API_DEFINITION", - "description": " Bulk import of User events. Request processing might be synchronous. Events that already exist are skipped. Use this method for backfilling historical user events. `Operation.response` is of type `ImportResponse`. Note that it is possible for a subset of the items to be successfully inserted. `Operation.metadata` is of type `ImportMetadata`.", - "canonical": true, - "file": "user_event_service.import_user_events.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportUserEvents", - "fullName": "google.cloud.retail.v2.UserEventService.ImportUserEvents", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "input_config", - "type": ".google.cloud.retail.v2.UserEventInputConfig" - }, - { - "name": "errors_config", - "type": ".google.cloud.retail.v2.ImportErrorsConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "UserEventServiceClient", - "fullName": "google.cloud.retail.v2.UserEventServiceClient" - }, - "method": { - "shortName": "ImportUserEvents", - "fullName": "google.cloud.retail.v2.UserEventService.ImportUserEvents", - "service": { - "shortName": "UserEventService", - "fullName": "google.cloud.retail.v2.UserEventService" - } - } - } - }, - { - "regionTag": "retail_v2_generated_UserEventService_RejoinUserEvents_async", - "title": "AnalyticsService rejoinUserEvents Sample", - "origin": "API_DEFINITION", - "description": " Starts a user-event rejoin operation with latest product catalog. Events are not annotated with detailed product information for products that are missing from the catalog when the user event is ingested. These events are stored as unjoined events with limited usage on training and serving. You can use this method to start a join operation on specified events with the latest version of product catalog. You can also use this method to correct events joined with the wrong product catalog. A rejoin operation can take hours or days to complete.", - "canonical": true, - "file": "user_event_service.rejoin_user_events.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RejoinUserEvents", - "fullName": "google.cloud.retail.v2.UserEventService.RejoinUserEvents", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "user_event_rejoin_scope", - "type": ".google.cloud.retail.v2.RejoinUserEventsRequest.UserEventRejoinScope" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "UserEventServiceClient", - "fullName": "google.cloud.retail.v2.UserEventServiceClient" - }, - "method": { - "shortName": "RejoinUserEvents", - "fullName": "google.cloud.retail.v2.UserEventService.RejoinUserEvents", - "service": { - "shortName": "UserEventService", - "fullName": "google.cloud.retail.v2.UserEventService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-retail/samples/generated/v2alpha/snippet_metadata_google.cloud.retail.v2alpha.json b/packages/google-cloud-retail/samples/generated/v2alpha/snippet_metadata_google.cloud.retail.v2alpha.json deleted file mode 100644 index 320d49d8ee72..000000000000 --- a/packages/google-cloud-retail/samples/generated/v2alpha/snippet_metadata_google.cloud.retail.v2alpha.json +++ /dev/null @@ -1,3619 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-retail", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.retail.v2alpha", - "version": "v2alpha" - } - ] - }, - "snippets": [ - { - "regionTag": "retail_v2alpha_generated_AnalyticsService_ExportAnalyticsMetrics_async", - "title": "AnalyticsService exportAnalyticsMetrics Sample", - "origin": "API_DEFINITION", - "description": " Exports analytics metrics. `Operation.response` is of type `ExportAnalyticsMetricsResponse`. `Operation.metadata` is of type `ExportMetadata`.", - "canonical": true, - "file": "analytics_service.export_analytics_metrics.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportAnalyticsMetrics", - "fullName": "google.cloud.retail.v2alpha.AnalyticsService.ExportAnalyticsMetrics", - "async": true, - "parameters": [ - { - "name": "catalog", - "type": "TYPE_STRING" - }, - { - "name": "output_config", - "type": ".google.cloud.retail.v2alpha.OutputConfig" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AnalyticsServiceClient", - "fullName": "google.cloud.retail.v2alpha.AnalyticsServiceClient" - }, - "method": { - "shortName": "ExportAnalyticsMetrics", - "fullName": "google.cloud.retail.v2alpha.AnalyticsService.ExportAnalyticsMetrics", - "service": { - "shortName": "AnalyticsService", - "fullName": "google.cloud.retail.v2alpha.AnalyticsService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_BranchService_ListBranches_async", - "title": "AnalyticsService listBranches Sample", - "origin": "API_DEFINITION", - "description": " Lists all instances of [Branch][google.cloud.retail.v2alpha.Branch] under the specified parent [Catalog][google.cloud.retail.v2alpha.Catalog].", - "canonical": true, - "file": "branch_service.list_branches.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBranches", - "fullName": "google.cloud.retail.v2alpha.BranchService.ListBranches", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.retail.v2alpha.BranchView" - } - ], - "resultType": ".google.cloud.retail.v2alpha.ListBranchesResponse", - "client": { - "shortName": "BranchServiceClient", - "fullName": "google.cloud.retail.v2alpha.BranchServiceClient" - }, - "method": { - "shortName": "ListBranches", - "fullName": "google.cloud.retail.v2alpha.BranchService.ListBranches", - "service": { - "shortName": "BranchService", - "fullName": "google.cloud.retail.v2alpha.BranchService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_BranchService_GetBranch_async", - "title": "AnalyticsService getBranch Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a [Branch][google.cloud.retail.v2alpha.Branch].", - "canonical": true, - "file": "branch_service.get_branch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBranch", - "fullName": "google.cloud.retail.v2alpha.BranchService.GetBranch", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.retail.v2alpha.BranchView" - } - ], - "resultType": ".google.cloud.retail.v2alpha.Branch", - "client": { - "shortName": "BranchServiceClient", - "fullName": "google.cloud.retail.v2alpha.BranchServiceClient" - }, - "method": { - "shortName": "GetBranch", - "fullName": "google.cloud.retail.v2alpha.BranchService.GetBranch", - "service": { - "shortName": "BranchService", - "fullName": "google.cloud.retail.v2alpha.BranchService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_CatalogService_ListCatalogs_async", - "title": "AnalyticsService listCatalogs Sample", - "origin": "API_DEFINITION", - "description": " Lists all the [Catalog][google.cloud.retail.v2alpha.Catalog]s associated with the project.", - "canonical": true, - "file": "catalog_service.list_catalogs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCatalogs", - "fullName": "google.cloud.retail.v2alpha.CatalogService.ListCatalogs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2alpha.ListCatalogsResponse", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.retail.v2alpha.CatalogServiceClient" - }, - "method": { - "shortName": "ListCatalogs", - "fullName": "google.cloud.retail.v2alpha.CatalogService.ListCatalogs", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.retail.v2alpha.CatalogService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_CatalogService_UpdateCatalog_async", - "title": "AnalyticsService updateCatalog Sample", - "origin": "API_DEFINITION", - "description": " Updates the [Catalog][google.cloud.retail.v2alpha.Catalog]s.", - "canonical": true, - "file": "catalog_service.update_catalog.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCatalog", - "fullName": "google.cloud.retail.v2alpha.CatalogService.UpdateCatalog", - "async": true, - "parameters": [ - { - "name": "catalog", - "type": ".google.cloud.retail.v2alpha.Catalog" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.retail.v2alpha.Catalog", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.retail.v2alpha.CatalogServiceClient" - }, - "method": { - "shortName": "UpdateCatalog", - "fullName": "google.cloud.retail.v2alpha.CatalogService.UpdateCatalog", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.retail.v2alpha.CatalogService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_CatalogService_SetDefaultBranch_async", - "title": "AnalyticsService setDefaultBranch Sample", - "origin": "API_DEFINITION", - "description": " Set a specified branch id as default branch. API methods such as [SearchService.Search][google.cloud.retail.v2alpha.SearchService.Search], [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct], [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts] will treat requests using \"default_branch\" to the actual branch id set as default. For example, if `projects/*/locations/*/catalogs/*/branches/1` is set as default, setting [SearchRequest.branch][google.cloud.retail.v2alpha.SearchRequest.branch] to `projects/*/locations/*/catalogs/*/branches/default_branch` is equivalent to setting [SearchRequest.branch][google.cloud.retail.v2alpha.SearchRequest.branch] to `projects/*/locations/*/catalogs/*/branches/1`. Using multiple branches can be useful when developers would like to have a staging branch to test and verify for future usage. When it becomes ready, developers switch on the staging branch using this API while keeping using `projects/*/locations/*/catalogs/*/branches/default_branch` as [SearchRequest.branch][google.cloud.retail.v2alpha.SearchRequest.branch] to route the traffic to this staging branch. CAUTION: If you have live predict/search traffic, switching the default branch could potentially cause outages if the ID space of the new branch is very different from the old one. More specifically: * PredictionService will only return product IDs from branch {newBranch}. * SearchService will only return product IDs from branch {newBranch} (if branch is not explicitly set). * UserEventService will only join events with products from branch {newBranch}.", - "canonical": true, - "file": "catalog_service.set_default_branch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetDefaultBranch", - "fullName": "google.cloud.retail.v2alpha.CatalogService.SetDefaultBranch", - "async": true, - "parameters": [ - { - "name": "catalog", - "type": "TYPE_STRING" - }, - { - "name": "branch_id", - "type": "TYPE_STRING" - }, - { - "name": "note", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.retail.v2alpha.CatalogServiceClient" - }, - "method": { - "shortName": "SetDefaultBranch", - "fullName": "google.cloud.retail.v2alpha.CatalogService.SetDefaultBranch", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.retail.v2alpha.CatalogService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_CatalogService_GetDefaultBranch_async", - "title": "AnalyticsService getDefaultBranch Sample", - "origin": "API_DEFINITION", - "description": " Get which branch is currently default branch set by [CatalogService.SetDefaultBranch][google.cloud.retail.v2alpha.CatalogService.SetDefaultBranch] method under a specified parent catalog.", - "canonical": true, - "file": "catalog_service.get_default_branch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDefaultBranch", - "fullName": "google.cloud.retail.v2alpha.CatalogService.GetDefaultBranch", - "async": true, - "parameters": [ - { - "name": "catalog", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2alpha.GetDefaultBranchResponse", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.retail.v2alpha.CatalogServiceClient" - }, - "method": { - "shortName": "GetDefaultBranch", - "fullName": "google.cloud.retail.v2alpha.CatalogService.GetDefaultBranch", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.retail.v2alpha.CatalogService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_CatalogService_GetCompletionConfig_async", - "title": "AnalyticsService getCompletionConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets a [CompletionConfig][google.cloud.retail.v2alpha.CompletionConfig].", - "canonical": true, - "file": "catalog_service.get_completion_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCompletionConfig", - "fullName": "google.cloud.retail.v2alpha.CatalogService.GetCompletionConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2alpha.CompletionConfig", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.retail.v2alpha.CatalogServiceClient" - }, - "method": { - "shortName": "GetCompletionConfig", - "fullName": "google.cloud.retail.v2alpha.CatalogService.GetCompletionConfig", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.retail.v2alpha.CatalogService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_CatalogService_UpdateCompletionConfig_async", - "title": "AnalyticsService updateCompletionConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates the [CompletionConfig][google.cloud.retail.v2alpha.CompletionConfig]s.", - "canonical": true, - "file": "catalog_service.update_completion_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCompletionConfig", - "fullName": "google.cloud.retail.v2alpha.CatalogService.UpdateCompletionConfig", - "async": true, - "parameters": [ - { - "name": "completion_config", - "type": ".google.cloud.retail.v2alpha.CompletionConfig" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.retail.v2alpha.CompletionConfig", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.retail.v2alpha.CatalogServiceClient" - }, - "method": { - "shortName": "UpdateCompletionConfig", - "fullName": "google.cloud.retail.v2alpha.CatalogService.UpdateCompletionConfig", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.retail.v2alpha.CatalogService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_CatalogService_GetAttributesConfig_async", - "title": "AnalyticsService getAttributesConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets an [AttributesConfig][google.cloud.retail.v2alpha.AttributesConfig].", - "canonical": true, - "file": "catalog_service.get_attributes_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAttributesConfig", - "fullName": "google.cloud.retail.v2alpha.CatalogService.GetAttributesConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2alpha.AttributesConfig", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.retail.v2alpha.CatalogServiceClient" - }, - "method": { - "shortName": "GetAttributesConfig", - "fullName": "google.cloud.retail.v2alpha.CatalogService.GetAttributesConfig", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.retail.v2alpha.CatalogService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_CatalogService_UpdateAttributesConfig_async", - "title": "AnalyticsService updateAttributesConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates the [AttributesConfig][google.cloud.retail.v2alpha.AttributesConfig]. The catalog attributes in the request will be updated in the catalog, or inserted if they do not exist. Existing catalog attributes not included in the request will remain unchanged. Attributes that are assigned to products, but do not exist at the catalog level, are always included in the response. The product attribute is assigned default values for missing catalog attribute fields, e.g., searchable and dynamic facetable options.", - "canonical": true, - "file": "catalog_service.update_attributes_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAttributesConfig", - "fullName": "google.cloud.retail.v2alpha.CatalogService.UpdateAttributesConfig", - "async": true, - "parameters": [ - { - "name": "attributes_config", - "type": ".google.cloud.retail.v2alpha.AttributesConfig" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.retail.v2alpha.AttributesConfig", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.retail.v2alpha.CatalogServiceClient" - }, - "method": { - "shortName": "UpdateAttributesConfig", - "fullName": "google.cloud.retail.v2alpha.CatalogService.UpdateAttributesConfig", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.retail.v2alpha.CatalogService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_CatalogService_AddCatalogAttribute_async", - "title": "AnalyticsService addCatalogAttribute Sample", - "origin": "API_DEFINITION", - "description": " Adds the specified [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] to the [AttributesConfig][google.cloud.retail.v2alpha.AttributesConfig]. If the [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] to add already exists, an ALREADY_EXISTS error is returned.", - "canonical": true, - "file": "catalog_service.add_catalog_attribute.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddCatalogAttribute", - "fullName": "google.cloud.retail.v2alpha.CatalogService.AddCatalogAttribute", - "async": true, - "parameters": [ - { - "name": "attributes_config", - "type": "TYPE_STRING" - }, - { - "name": "catalog_attribute", - "type": ".google.cloud.retail.v2alpha.CatalogAttribute" - } - ], - "resultType": ".google.cloud.retail.v2alpha.AttributesConfig", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.retail.v2alpha.CatalogServiceClient" - }, - "method": { - "shortName": "AddCatalogAttribute", - "fullName": "google.cloud.retail.v2alpha.CatalogService.AddCatalogAttribute", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.retail.v2alpha.CatalogService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_CatalogService_RemoveCatalogAttribute_async", - "title": "AnalyticsService removeCatalogAttribute Sample", - "origin": "API_DEFINITION", - "description": " Removes the specified [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] from the [AttributesConfig][google.cloud.retail.v2alpha.AttributesConfig]. If the [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] to remove does not exist, a NOT_FOUND error is returned.", - "canonical": true, - "file": "catalog_service.remove_catalog_attribute.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveCatalogAttribute", - "fullName": "google.cloud.retail.v2alpha.CatalogService.RemoveCatalogAttribute", - "async": true, - "parameters": [ - { - "name": "attributes_config", - "type": "TYPE_STRING" - }, - { - "name": "key", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2alpha.AttributesConfig", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.retail.v2alpha.CatalogServiceClient" - }, - "method": { - "shortName": "RemoveCatalogAttribute", - "fullName": "google.cloud.retail.v2alpha.CatalogService.RemoveCatalogAttribute", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.retail.v2alpha.CatalogService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_CatalogService_BatchRemoveCatalogAttributes_async", - "title": "AnalyticsService batchRemoveCatalogAttributes Sample", - "origin": "API_DEFINITION", - "description": " Removes all specified [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute]s from the [AttributesConfig][google.cloud.retail.v2alpha.AttributesConfig].", - "canonical": true, - "file": "catalog_service.batch_remove_catalog_attributes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchRemoveCatalogAttributes", - "fullName": "google.cloud.retail.v2alpha.CatalogService.BatchRemoveCatalogAttributes", - "async": true, - "parameters": [ - { - "name": "attributes_config", - "type": "TYPE_STRING" - }, - { - "name": "attribute_keys", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.cloud.retail.v2alpha.BatchRemoveCatalogAttributesResponse", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.retail.v2alpha.CatalogServiceClient" - }, - "method": { - "shortName": "BatchRemoveCatalogAttributes", - "fullName": "google.cloud.retail.v2alpha.CatalogService.BatchRemoveCatalogAttributes", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.retail.v2alpha.CatalogService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_CatalogService_ReplaceCatalogAttribute_async", - "title": "AnalyticsService replaceCatalogAttribute Sample", - "origin": "API_DEFINITION", - "description": " Replaces the specified [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] in the [AttributesConfig][google.cloud.retail.v2alpha.AttributesConfig] by updating the catalog attribute with the same [CatalogAttribute.key][google.cloud.retail.v2alpha.CatalogAttribute.key]. If the [CatalogAttribute][google.cloud.retail.v2alpha.CatalogAttribute] to replace does not exist, a NOT_FOUND error is returned.", - "canonical": true, - "file": "catalog_service.replace_catalog_attribute.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReplaceCatalogAttribute", - "fullName": "google.cloud.retail.v2alpha.CatalogService.ReplaceCatalogAttribute", - "async": true, - "parameters": [ - { - "name": "attributes_config", - "type": "TYPE_STRING" - }, - { - "name": "catalog_attribute", - "type": ".google.cloud.retail.v2alpha.CatalogAttribute" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.retail.v2alpha.AttributesConfig", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.retail.v2alpha.CatalogServiceClient" - }, - "method": { - "shortName": "ReplaceCatalogAttribute", - "fullName": "google.cloud.retail.v2alpha.CatalogService.ReplaceCatalogAttribute", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.retail.v2alpha.CatalogService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_CompletionService_CompleteQuery_async", - "title": "AnalyticsService completeQuery Sample", - "origin": "API_DEFINITION", - "description": " Completes the specified prefix with keyword suggestions. This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature.", - "canonical": true, - "file": "completion_service.complete_query.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 135, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CompleteQuery", - "fullName": "google.cloud.retail.v2alpha.CompletionService.CompleteQuery", - "async": true, - "parameters": [ - { - "name": "catalog", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": "TYPE_STRING" - }, - { - "name": "visitor_id", - "type": "TYPE_STRING" - }, - { - "name": "language_codes", - "type": "TYPE_STRING[]" - }, - { - "name": "device_type", - "type": "TYPE_STRING" - }, - { - "name": "dataset", - "type": "TYPE_STRING" - }, - { - "name": "max_suggestions", - "type": "TYPE_INT32" - }, - { - "name": "enable_attribute_suggestions", - "type": "TYPE_BOOL" - }, - { - "name": "entity", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2alpha.CompleteQueryResponse", - "client": { - "shortName": "CompletionServiceClient", - "fullName": "google.cloud.retail.v2alpha.CompletionServiceClient" - }, - "method": { - "shortName": "CompleteQuery", - "fullName": "google.cloud.retail.v2alpha.CompletionService.CompleteQuery", - "service": { - "shortName": "CompletionService", - "fullName": "google.cloud.retail.v2alpha.CompletionService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_CompletionService_ImportCompletionData_async", - "title": "AnalyticsService importCompletionData Sample", - "origin": "API_DEFINITION", - "description": " Bulk import of processed completion dataset. Request processing is asynchronous. Partial updating is not supported. The operation is successfully finished only after the imported suggestions are indexed successfully and ready for serving. The process takes hours. This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature.", - "canonical": true, - "file": "completion_service.import_completion_data.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportCompletionData", - "fullName": "google.cloud.retail.v2alpha.CompletionService.ImportCompletionData", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "input_config", - "type": ".google.cloud.retail.v2alpha.CompletionDataInputConfig" - }, - { - "name": "notification_pubsub_topic", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CompletionServiceClient", - "fullName": "google.cloud.retail.v2alpha.CompletionServiceClient" - }, - "method": { - "shortName": "ImportCompletionData", - "fullName": "google.cloud.retail.v2alpha.CompletionService.ImportCompletionData", - "service": { - "shortName": "CompletionService", - "fullName": "google.cloud.retail.v2alpha.CompletionService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_ControlService_CreateControl_async", - "title": "AnalyticsService createControl Sample", - "origin": "API_DEFINITION", - "description": " Creates a Control. If the [Control][google.cloud.retail.v2alpha.Control] to create already exists, an ALREADY_EXISTS error is returned.", - "canonical": true, - "file": "control_service.create_control.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateControl", - "fullName": "google.cloud.retail.v2alpha.ControlService.CreateControl", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "control", - "type": ".google.cloud.retail.v2alpha.Control" - }, - { - "name": "control_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2alpha.Control", - "client": { - "shortName": "ControlServiceClient", - "fullName": "google.cloud.retail.v2alpha.ControlServiceClient" - }, - "method": { - "shortName": "CreateControl", - "fullName": "google.cloud.retail.v2alpha.ControlService.CreateControl", - "service": { - "shortName": "ControlService", - "fullName": "google.cloud.retail.v2alpha.ControlService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_ControlService_DeleteControl_async", - "title": "AnalyticsService deleteControl Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Control. If the [Control][google.cloud.retail.v2alpha.Control] to delete does not exist, a NOT_FOUND error is returned.", - "canonical": true, - "file": "control_service.delete_control.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteControl", - "fullName": "google.cloud.retail.v2alpha.ControlService.DeleteControl", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ControlServiceClient", - "fullName": "google.cloud.retail.v2alpha.ControlServiceClient" - }, - "method": { - "shortName": "DeleteControl", - "fullName": "google.cloud.retail.v2alpha.ControlService.DeleteControl", - "service": { - "shortName": "ControlService", - "fullName": "google.cloud.retail.v2alpha.ControlService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_ControlService_UpdateControl_async", - "title": "AnalyticsService updateControl Sample", - "origin": "API_DEFINITION", - "description": " Updates a Control. [Control][google.cloud.retail.v2alpha.Control] cannot be set to a different oneof field, if so an INVALID_ARGUMENT is returned. If the [Control][google.cloud.retail.v2alpha.Control] to update does not exist, a NOT_FOUND error is returned.", - "canonical": true, - "file": "control_service.update_control.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateControl", - "fullName": "google.cloud.retail.v2alpha.ControlService.UpdateControl", - "async": true, - "parameters": [ - { - "name": "control", - "type": ".google.cloud.retail.v2alpha.Control" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.retail.v2alpha.Control", - "client": { - "shortName": "ControlServiceClient", - "fullName": "google.cloud.retail.v2alpha.ControlServiceClient" - }, - "method": { - "shortName": "UpdateControl", - "fullName": "google.cloud.retail.v2alpha.ControlService.UpdateControl", - "service": { - "shortName": "ControlService", - "fullName": "google.cloud.retail.v2alpha.ControlService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_ControlService_GetControl_async", - "title": "AnalyticsService getControl Sample", - "origin": "API_DEFINITION", - "description": " Gets a Control.", - "canonical": true, - "file": "control_service.get_control.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetControl", - "fullName": "google.cloud.retail.v2alpha.ControlService.GetControl", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2alpha.Control", - "client": { - "shortName": "ControlServiceClient", - "fullName": "google.cloud.retail.v2alpha.ControlServiceClient" - }, - "method": { - "shortName": "GetControl", - "fullName": "google.cloud.retail.v2alpha.ControlService.GetControl", - "service": { - "shortName": "ControlService", - "fullName": "google.cloud.retail.v2alpha.ControlService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_ControlService_ListControls_async", - "title": "AnalyticsService listControls Sample", - "origin": "API_DEFINITION", - "description": " Lists all Controls by their parent [Catalog][google.cloud.retail.v2alpha.Catalog].", - "canonical": true, - "file": "control_service.list_controls.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListControls", - "fullName": "google.cloud.retail.v2alpha.ControlService.ListControls", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2alpha.ListControlsResponse", - "client": { - "shortName": "ControlServiceClient", - "fullName": "google.cloud.retail.v2alpha.ControlServiceClient" - }, - "method": { - "shortName": "ListControls", - "fullName": "google.cloud.retail.v2alpha.ControlService.ListControls", - "service": { - "shortName": "ControlService", - "fullName": "google.cloud.retail.v2alpha.ControlService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_ConversationalSearchService_ConversationalSearch_async", - "title": "AnalyticsService conversationalSearch Sample", - "origin": "API_DEFINITION", - "description": " Performs a conversational search. This feature is only available for users who have Conversational Search enabled.", - "canonical": true, - "file": "conversational_search_service.conversational_search.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 143, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ConversationalSearch", - "fullName": "google.cloud.retail.v2alpha.ConversationalSearchService.ConversationalSearch", - "async": true, - "parameters": [ - { - "name": "placement", - "type": "TYPE_STRING" - }, - { - "name": "branch", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": "TYPE_STRING" - }, - { - "name": "page_categories", - "type": "TYPE_STRING[]" - }, - { - "name": "conversation_id", - "type": "TYPE_STRING" - }, - { - "name": "search_params", - "type": ".google.cloud.retail.v2alpha.ConversationalSearchRequest.SearchParams" - }, - { - "name": "visitor_id", - "type": "TYPE_STRING" - }, - { - "name": "user_info", - "type": ".google.cloud.retail.v2alpha.UserInfo" - }, - { - "name": "conversational_filtering_spec", - "type": ".google.cloud.retail.v2alpha.ConversationalSearchRequest.ConversationalFilteringSpec" - }, - { - "name": "user_labels", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "safety_settings", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.retail.v2alpha.ConversationalSearchResponse", - "client": { - "shortName": "ConversationalSearchServiceClient", - "fullName": "google.cloud.retail.v2alpha.ConversationalSearchServiceClient" - }, - "method": { - "shortName": "ConversationalSearch", - "fullName": "google.cloud.retail.v2alpha.ConversationalSearchService.ConversationalSearch", - "service": { - "shortName": "ConversationalSearchService", - "fullName": "google.cloud.retail.v2alpha.ConversationalSearchService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_GenerativeQuestionService_UpdateGenerativeQuestionsFeatureConfig_async", - "title": "AnalyticsService updateGenerativeQuestionsFeatureConfig Sample", - "origin": "API_DEFINITION", - "description": " Manages overal generative question feature state -- enables toggling feature on and off.", - "canonical": true, - "file": "generative_question_service.update_generative_questions_feature_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateGenerativeQuestionsFeatureConfig", - "fullName": "google.cloud.retail.v2alpha.GenerativeQuestionService.UpdateGenerativeQuestionsFeatureConfig", - "async": true, - "parameters": [ - { - "name": "generative_questions_feature_config", - "type": ".google.cloud.retail.v2alpha.GenerativeQuestionsFeatureConfig" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.retail.v2alpha.GenerativeQuestionsFeatureConfig", - "client": { - "shortName": "GenerativeQuestionServiceClient", - "fullName": "google.cloud.retail.v2alpha.GenerativeQuestionServiceClient" - }, - "method": { - "shortName": "UpdateGenerativeQuestionsFeatureConfig", - "fullName": "google.cloud.retail.v2alpha.GenerativeQuestionService.UpdateGenerativeQuestionsFeatureConfig", - "service": { - "shortName": "GenerativeQuestionService", - "fullName": "google.cloud.retail.v2alpha.GenerativeQuestionService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_GenerativeQuestionService_GetGenerativeQuestionsFeatureConfig_async", - "title": "AnalyticsService getGenerativeQuestionsFeatureConfig Sample", - "origin": "API_DEFINITION", - "description": " Manages overal generative question feature state -- enables toggling feature on and off.", - "canonical": true, - "file": "generative_question_service.get_generative_questions_feature_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetGenerativeQuestionsFeatureConfig", - "fullName": "google.cloud.retail.v2alpha.GenerativeQuestionService.GetGenerativeQuestionsFeatureConfig", - "async": true, - "parameters": [ - { - "name": "catalog", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2alpha.GenerativeQuestionsFeatureConfig", - "client": { - "shortName": "GenerativeQuestionServiceClient", - "fullName": "google.cloud.retail.v2alpha.GenerativeQuestionServiceClient" - }, - "method": { - "shortName": "GetGenerativeQuestionsFeatureConfig", - "fullName": "google.cloud.retail.v2alpha.GenerativeQuestionService.GetGenerativeQuestionsFeatureConfig", - "service": { - "shortName": "GenerativeQuestionService", - "fullName": "google.cloud.retail.v2alpha.GenerativeQuestionService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_GenerativeQuestionService_ListGenerativeQuestionConfigs_async", - "title": "AnalyticsService listGenerativeQuestionConfigs Sample", - "origin": "API_DEFINITION", - "description": " Returns all questions for a given catalog.", - "canonical": true, - "file": "generative_question_service.list_generative_question_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListGenerativeQuestionConfigs", - "fullName": "google.cloud.retail.v2alpha.GenerativeQuestionService.ListGenerativeQuestionConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2alpha.ListGenerativeQuestionConfigsResponse", - "client": { - "shortName": "GenerativeQuestionServiceClient", - "fullName": "google.cloud.retail.v2alpha.GenerativeQuestionServiceClient" - }, - "method": { - "shortName": "ListGenerativeQuestionConfigs", - "fullName": "google.cloud.retail.v2alpha.GenerativeQuestionService.ListGenerativeQuestionConfigs", - "service": { - "shortName": "GenerativeQuestionService", - "fullName": "google.cloud.retail.v2alpha.GenerativeQuestionService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_GenerativeQuestionService_UpdateGenerativeQuestionConfig_async", - "title": "AnalyticsService updateGenerativeQuestionConfig Sample", - "origin": "API_DEFINITION", - "description": " Allows management of individual questions.", - "canonical": true, - "file": "generative_question_service.update_generative_question_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateGenerativeQuestionConfig", - "fullName": "google.cloud.retail.v2alpha.GenerativeQuestionService.UpdateGenerativeQuestionConfig", - "async": true, - "parameters": [ - { - "name": "generative_question_config", - "type": ".google.cloud.retail.v2alpha.GenerativeQuestionConfig" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.retail.v2alpha.GenerativeQuestionConfig", - "client": { - "shortName": "GenerativeQuestionServiceClient", - "fullName": "google.cloud.retail.v2alpha.GenerativeQuestionServiceClient" - }, - "method": { - "shortName": "UpdateGenerativeQuestionConfig", - "fullName": "google.cloud.retail.v2alpha.GenerativeQuestionService.UpdateGenerativeQuestionConfig", - "service": { - "shortName": "GenerativeQuestionService", - "fullName": "google.cloud.retail.v2alpha.GenerativeQuestionService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_GenerativeQuestionService_BatchUpdateGenerativeQuestionConfigs_async", - "title": "AnalyticsService batchUpdateGenerativeQuestionConfigs Sample", - "origin": "API_DEFINITION", - "description": " Allows management of multiple questions.", - "canonical": true, - "file": "generative_question_service.batch_update_generative_question_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchUpdateGenerativeQuestionConfigs", - "fullName": "google.cloud.retail.v2alpha.GenerativeQuestionService.BatchUpdateGenerativeQuestionConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.retail.v2alpha.BatchUpdateGenerativeQuestionConfigsResponse", - "client": { - "shortName": "GenerativeQuestionServiceClient", - "fullName": "google.cloud.retail.v2alpha.GenerativeQuestionServiceClient" - }, - "method": { - "shortName": "BatchUpdateGenerativeQuestionConfigs", - "fullName": "google.cloud.retail.v2alpha.GenerativeQuestionService.BatchUpdateGenerativeQuestionConfigs", - "service": { - "shortName": "GenerativeQuestionService", - "fullName": "google.cloud.retail.v2alpha.GenerativeQuestionService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_MerchantCenterAccountLinkService_ListMerchantCenterAccountLinks_async", - "title": "AnalyticsService listMerchantCenterAccountLinks Sample", - "origin": "API_DEFINITION", - "description": " Lists all [MerchantCenterAccountLink][google.cloud.retail.v2alpha.MerchantCenterAccountLink]s under the specified parent [Catalog][google.cloud.retail.v2alpha.Catalog].", - "canonical": true, - "file": "merchant_center_account_link_service.list_merchant_center_account_links.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMerchantCenterAccountLinks", - "fullName": "google.cloud.retail.v2alpha.MerchantCenterAccountLinkService.ListMerchantCenterAccountLinks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2alpha.ListMerchantCenterAccountLinksResponse", - "client": { - "shortName": "MerchantCenterAccountLinkServiceClient", - "fullName": "google.cloud.retail.v2alpha.MerchantCenterAccountLinkServiceClient" - }, - "method": { - "shortName": "ListMerchantCenterAccountLinks", - "fullName": "google.cloud.retail.v2alpha.MerchantCenterAccountLinkService.ListMerchantCenterAccountLinks", - "service": { - "shortName": "MerchantCenterAccountLinkService", - "fullName": "google.cloud.retail.v2alpha.MerchantCenterAccountLinkService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_MerchantCenterAccountLinkService_CreateMerchantCenterAccountLink_async", - "title": "AnalyticsService createMerchantCenterAccountLink Sample", - "origin": "API_DEFINITION", - "description": " Creates a [MerchantCenterAccountLink][google.cloud.retail.v2alpha.MerchantCenterAccountLink].", - "canonical": true, - "file": "merchant_center_account_link_service.create_merchant_center_account_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateMerchantCenterAccountLink", - "fullName": "google.cloud.retail.v2alpha.MerchantCenterAccountLinkService.CreateMerchantCenterAccountLink", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "merchant_center_account_link", - "type": ".google.cloud.retail.v2alpha.MerchantCenterAccountLink" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "MerchantCenterAccountLinkServiceClient", - "fullName": "google.cloud.retail.v2alpha.MerchantCenterAccountLinkServiceClient" - }, - "method": { - "shortName": "CreateMerchantCenterAccountLink", - "fullName": "google.cloud.retail.v2alpha.MerchantCenterAccountLinkService.CreateMerchantCenterAccountLink", - "service": { - "shortName": "MerchantCenterAccountLinkService", - "fullName": "google.cloud.retail.v2alpha.MerchantCenterAccountLinkService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_MerchantCenterAccountLinkService_DeleteMerchantCenterAccountLink_async", - "title": "AnalyticsService deleteMerchantCenterAccountLink Sample", - "origin": "API_DEFINITION", - "description": " Deletes a [MerchantCenterAccountLink][google.cloud.retail.v2alpha.MerchantCenterAccountLink]. If the [MerchantCenterAccountLink][google.cloud.retail.v2alpha.MerchantCenterAccountLink] to delete does not exist, a NOT_FOUND error is returned.", - "canonical": true, - "file": "merchant_center_account_link_service.delete_merchant_center_account_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteMerchantCenterAccountLink", - "fullName": "google.cloud.retail.v2alpha.MerchantCenterAccountLinkService.DeleteMerchantCenterAccountLink", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "MerchantCenterAccountLinkServiceClient", - "fullName": "google.cloud.retail.v2alpha.MerchantCenterAccountLinkServiceClient" - }, - "method": { - "shortName": "DeleteMerchantCenterAccountLink", - "fullName": "google.cloud.retail.v2alpha.MerchantCenterAccountLinkService.DeleteMerchantCenterAccountLink", - "service": { - "shortName": "MerchantCenterAccountLinkService", - "fullName": "google.cloud.retail.v2alpha.MerchantCenterAccountLinkService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_ModelService_CreateModel_async", - "title": "AnalyticsService createModel Sample", - "origin": "API_DEFINITION", - "description": " Creates a new model.", - "canonical": true, - "file": "model_service.create_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateModel", - "fullName": "google.cloud.retail.v2alpha.ModelService.CreateModel", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "model", - "type": ".google.cloud.retail.v2alpha.Model" - }, - { - "name": "dry_run", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.retail.v2alpha.ModelServiceClient" - }, - "method": { - "shortName": "CreateModel", - "fullName": "google.cloud.retail.v2alpha.ModelService.CreateModel", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.retail.v2alpha.ModelService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_ModelService_GetModel_async", - "title": "AnalyticsService getModel Sample", - "origin": "API_DEFINITION", - "description": " Gets a model.", - "canonical": true, - "file": "model_service.get_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetModel", - "fullName": "google.cloud.retail.v2alpha.ModelService.GetModel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2alpha.Model", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.retail.v2alpha.ModelServiceClient" - }, - "method": { - "shortName": "GetModel", - "fullName": "google.cloud.retail.v2alpha.ModelService.GetModel", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.retail.v2alpha.ModelService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_ModelService_PauseModel_async", - "title": "AnalyticsService pauseModel Sample", - "origin": "API_DEFINITION", - "description": " Pauses the training of an existing model.", - "canonical": true, - "file": "model_service.pause_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PauseModel", - "fullName": "google.cloud.retail.v2alpha.ModelService.PauseModel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2alpha.Model", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.retail.v2alpha.ModelServiceClient" - }, - "method": { - "shortName": "PauseModel", - "fullName": "google.cloud.retail.v2alpha.ModelService.PauseModel", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.retail.v2alpha.ModelService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_ModelService_ResumeModel_async", - "title": "AnalyticsService resumeModel Sample", - "origin": "API_DEFINITION", - "description": " Resumes the training of an existing model.", - "canonical": true, - "file": "model_service.resume_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResumeModel", - "fullName": "google.cloud.retail.v2alpha.ModelService.ResumeModel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2alpha.Model", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.retail.v2alpha.ModelServiceClient" - }, - "method": { - "shortName": "ResumeModel", - "fullName": "google.cloud.retail.v2alpha.ModelService.ResumeModel", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.retail.v2alpha.ModelService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_ModelService_DeleteModel_async", - "title": "AnalyticsService deleteModel Sample", - "origin": "API_DEFINITION", - "description": " Deletes an existing model.", - "canonical": true, - "file": "model_service.delete_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteModel", - "fullName": "google.cloud.retail.v2alpha.ModelService.DeleteModel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.retail.v2alpha.ModelServiceClient" - }, - "method": { - "shortName": "DeleteModel", - "fullName": "google.cloud.retail.v2alpha.ModelService.DeleteModel", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.retail.v2alpha.ModelService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_ModelService_ListModels_async", - "title": "AnalyticsService listModels Sample", - "origin": "API_DEFINITION", - "description": " Lists all the models linked to this event store.", - "canonical": true, - "file": "model_service.list_models.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListModels", - "fullName": "google.cloud.retail.v2alpha.ModelService.ListModels", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2alpha.ListModelsResponse", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.retail.v2alpha.ModelServiceClient" - }, - "method": { - "shortName": "ListModels", - "fullName": "google.cloud.retail.v2alpha.ModelService.ListModels", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.retail.v2alpha.ModelService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_ModelService_UpdateModel_async", - "title": "AnalyticsService updateModel Sample", - "origin": "API_DEFINITION", - "description": " Update of model metadata. Only fields that currently can be updated are: `filtering_option` and `periodic_tuning_state`. If other values are provided, this API method ignores them.", - "canonical": true, - "file": "model_service.update_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateModel", - "fullName": "google.cloud.retail.v2alpha.ModelService.UpdateModel", - "async": true, - "parameters": [ - { - "name": "model", - "type": ".google.cloud.retail.v2alpha.Model" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.retail.v2alpha.Model", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.retail.v2alpha.ModelServiceClient" - }, - "method": { - "shortName": "UpdateModel", - "fullName": "google.cloud.retail.v2alpha.ModelService.UpdateModel", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.retail.v2alpha.ModelService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_ModelService_TuneModel_async", - "title": "AnalyticsService tuneModel Sample", - "origin": "API_DEFINITION", - "description": " Tunes an existing model.", - "canonical": true, - "file": "model_service.tune_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TuneModel", - "fullName": "google.cloud.retail.v2alpha.ModelService.TuneModel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.retail.v2alpha.ModelServiceClient" - }, - "method": { - "shortName": "TuneModel", - "fullName": "google.cloud.retail.v2alpha.ModelService.TuneModel", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.retail.v2alpha.ModelService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_PredictionService_Predict_async", - "title": "AnalyticsService predict Sample", - "origin": "API_DEFINITION", - "description": " Makes a recommendation prediction.", - "canonical": true, - "file": "prediction_service.predict.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 179, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Predict", - "fullName": "google.cloud.retail.v2alpha.PredictionService.Predict", - "async": true, - "parameters": [ - { - "name": "placement", - "type": "TYPE_STRING" - }, - { - "name": "user_event", - "type": ".google.cloud.retail.v2alpha.UserEvent" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "params", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "labels", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.retail.v2alpha.PredictResponse", - "client": { - "shortName": "PredictionServiceClient", - "fullName": "google.cloud.retail.v2alpha.PredictionServiceClient" - }, - "method": { - "shortName": "Predict", - "fullName": "google.cloud.retail.v2alpha.PredictionService.Predict", - "service": { - "shortName": "PredictionService", - "fullName": "google.cloud.retail.v2alpha.PredictionService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_ProductService_CreateProduct_async", - "title": "AnalyticsService createProduct Sample", - "origin": "API_DEFINITION", - "description": " Creates a [Product][google.cloud.retail.v2alpha.Product].", - "canonical": true, - "file": "product_service.create_product.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateProduct", - "fullName": "google.cloud.retail.v2alpha.ProductService.CreateProduct", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "product", - "type": ".google.cloud.retail.v2alpha.Product" - }, - { - "name": "product_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2alpha.Product", - "client": { - "shortName": "ProductServiceClient", - "fullName": "google.cloud.retail.v2alpha.ProductServiceClient" - }, - "method": { - "shortName": "CreateProduct", - "fullName": "google.cloud.retail.v2alpha.ProductService.CreateProduct", - "service": { - "shortName": "ProductService", - "fullName": "google.cloud.retail.v2alpha.ProductService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_ProductService_GetProduct_async", - "title": "AnalyticsService getProduct Sample", - "origin": "API_DEFINITION", - "description": " Gets a [Product][google.cloud.retail.v2alpha.Product].", - "canonical": true, - "file": "product_service.get_product.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetProduct", - "fullName": "google.cloud.retail.v2alpha.ProductService.GetProduct", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2alpha.Product", - "client": { - "shortName": "ProductServiceClient", - "fullName": "google.cloud.retail.v2alpha.ProductServiceClient" - }, - "method": { - "shortName": "GetProduct", - "fullName": "google.cloud.retail.v2alpha.ProductService.GetProduct", - "service": { - "shortName": "ProductService", - "fullName": "google.cloud.retail.v2alpha.ProductService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_ProductService_ListProducts_async", - "title": "AnalyticsService listProducts Sample", - "origin": "API_DEFINITION", - "description": " Gets a list of [Product][google.cloud.retail.v2alpha.Product]s.", - "canonical": true, - "file": "product_service.list_products.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 136, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListProducts", - "fullName": "google.cloud.retail.v2alpha.ProductService.ListProducts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "require_total_size", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.retail.v2alpha.ListProductsResponse", - "client": { - "shortName": "ProductServiceClient", - "fullName": "google.cloud.retail.v2alpha.ProductServiceClient" - }, - "method": { - "shortName": "ListProducts", - "fullName": "google.cloud.retail.v2alpha.ProductService.ListProducts", - "service": { - "shortName": "ProductService", - "fullName": "google.cloud.retail.v2alpha.ProductService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_ProductService_UpdateProduct_async", - "title": "AnalyticsService updateProduct Sample", - "origin": "API_DEFINITION", - "description": " Updates a [Product][google.cloud.retail.v2alpha.Product].", - "canonical": true, - "file": "product_service.update_product.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateProduct", - "fullName": "google.cloud.retail.v2alpha.ProductService.UpdateProduct", - "async": true, - "parameters": [ - { - "name": "product", - "type": ".google.cloud.retail.v2alpha.Product" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.retail.v2alpha.Product", - "client": { - "shortName": "ProductServiceClient", - "fullName": "google.cloud.retail.v2alpha.ProductServiceClient" - }, - "method": { - "shortName": "UpdateProduct", - "fullName": "google.cloud.retail.v2alpha.ProductService.UpdateProduct", - "service": { - "shortName": "ProductService", - "fullName": "google.cloud.retail.v2alpha.ProductService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_ProductService_DeleteProduct_async", - "title": "AnalyticsService deleteProduct Sample", - "origin": "API_DEFINITION", - "description": " Deletes a [Product][google.cloud.retail.v2alpha.Product].", - "canonical": true, - "file": "product_service.delete_product.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteProduct", - "fullName": "google.cloud.retail.v2alpha.ProductService.DeleteProduct", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ProductServiceClient", - "fullName": "google.cloud.retail.v2alpha.ProductServiceClient" - }, - "method": { - "shortName": "DeleteProduct", - "fullName": "google.cloud.retail.v2alpha.ProductService.DeleteProduct", - "service": { - "shortName": "ProductService", - "fullName": "google.cloud.retail.v2alpha.ProductService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_ProductService_PurgeProducts_async", - "title": "AnalyticsService purgeProducts Sample", - "origin": "API_DEFINITION", - "description": " Permanently deletes all selected [Product][google.cloud.retail.v2alpha.Product]s under a branch. This process is asynchronous. If the request is valid, the removal will be enqueued and processed offline. Depending on the number of [Product][google.cloud.retail.v2alpha.Product]s, this operation could take hours to complete. Before the operation completes, some [Product][google.cloud.retail.v2alpha.Product]s may still be returned by [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct] or [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts]. Depending on the number of [Product][google.cloud.retail.v2alpha.Product]s, this operation could take hours to complete. To get a sample of [Product][google.cloud.retail.v2alpha.Product]s that would be deleted, set [PurgeProductsRequest.force][google.cloud.retail.v2alpha.PurgeProductsRequest.force] to false.", - "canonical": true, - "file": "product_service.purge_products.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 96, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PurgeProducts", - "fullName": "google.cloud.retail.v2alpha.ProductService.PurgeProducts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ProductServiceClient", - "fullName": "google.cloud.retail.v2alpha.ProductServiceClient" - }, - "method": { - "shortName": "PurgeProducts", - "fullName": "google.cloud.retail.v2alpha.ProductService.PurgeProducts", - "service": { - "shortName": "ProductService", - "fullName": "google.cloud.retail.v2alpha.ProductService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_ProductService_ImportProducts_async", - "title": "AnalyticsService importProducts Sample", - "origin": "API_DEFINITION", - "description": " Bulk import of multiple [Product][google.cloud.retail.v2alpha.Product]s. Request processing may be synchronous. Non-existing items are created. Note that it is possible for a subset of the [Product][google.cloud.retail.v2alpha.Product]s to be successfully updated.", - "canonical": true, - "file": "product_service.import_products.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 104, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportProducts", - "fullName": "google.cloud.retail.v2alpha.ProductService.ImportProducts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "input_config", - "type": ".google.cloud.retail.v2alpha.ProductInputConfig" - }, - { - "name": "errors_config", - "type": ".google.cloud.retail.v2alpha.ImportErrorsConfig" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "reconciliation_mode", - "type": ".google.cloud.retail.v2alpha.ImportProductsRequest.ReconciliationMode" - }, - { - "name": "notification_pubsub_topic", - "type": "TYPE_STRING" - }, - { - "name": "skip_default_branch_protection", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ProductServiceClient", - "fullName": "google.cloud.retail.v2alpha.ProductServiceClient" - }, - "method": { - "shortName": "ImportProducts", - "fullName": "google.cloud.retail.v2alpha.ProductService.ImportProducts", - "service": { - "shortName": "ProductService", - "fullName": "google.cloud.retail.v2alpha.ProductService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_ProductService_ExportProducts_async", - "title": "AnalyticsService exportProducts Sample", - "origin": "API_DEFINITION", - "description": " Exports multiple [Product][google.cloud.retail.v2alpha.Product]s.", - "canonical": true, - "file": "product_service.export_products.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 101, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportProducts", - "fullName": "google.cloud.retail.v2alpha.ProductService.ExportProducts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "output_config", - "type": ".google.cloud.retail.v2alpha.OutputConfig" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ProductServiceClient", - "fullName": "google.cloud.retail.v2alpha.ProductServiceClient" - }, - "method": { - "shortName": "ExportProducts", - "fullName": "google.cloud.retail.v2alpha.ProductService.ExportProducts", - "service": { - "shortName": "ProductService", - "fullName": "google.cloud.retail.v2alpha.ProductService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_ProductService_SetInventory_async", - "title": "AnalyticsService setInventory Sample", - "origin": "API_DEFINITION", - "description": " Updates inventory information for a [Product][google.cloud.retail.v2alpha.Product] while respecting the last update timestamps of each inventory field. This process is asynchronous and does not require the [Product][google.cloud.retail.v2alpha.Product] to exist before updating fulfillment information. If the request is valid, the update is enqueued and processed downstream. As a consequence, when a response is returned, updates are not immediately manifested in the [Product][google.cloud.retail.v2alpha.Product] queried by [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct] or [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts]. When inventory is updated with [ProductService.CreateProduct][google.cloud.retail.v2alpha.ProductService.CreateProduct] and [ProductService.UpdateProduct][google.cloud.retail.v2alpha.ProductService.UpdateProduct], the specified inventory field value(s) overwrite any existing value(s) while ignoring the last update time for this field. Furthermore, the last update times for the specified inventory fields are overwritten by the times of the [ProductService.CreateProduct][google.cloud.retail.v2alpha.ProductService.CreateProduct] or [ProductService.UpdateProduct][google.cloud.retail.v2alpha.ProductService.UpdateProduct] request. If no inventory fields are set in [CreateProductRequest.product][google.cloud.retail.v2alpha.CreateProductRequest.product], then any pre-existing inventory information for this product is used. If no inventory fields are set in [SetInventoryRequest.set_mask][google.cloud.retail.v2alpha.SetInventoryRequest.set_mask], then any existing inventory information is preserved. Pre-existing inventory information can only be updated with [ProductService.SetInventory][google.cloud.retail.v2alpha.ProductService.SetInventory], [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.AddFulfillmentPlaces], and [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.RemoveFulfillmentPlaces]. The returned [Operation][google.longrunning.Operation]s is obsolete after one day, and the [GetOperation][google.longrunning.Operations.GetOperation] API returns `NOT_FOUND` afterwards. If conflicting updates are issued, the [Operation][google.longrunning.Operation]s associated with the stale updates are not marked as [done][google.longrunning.Operation.done] until they are obsolete.", - "canonical": true, - "file": "product_service.set_inventory.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 123, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetInventory", - "fullName": "google.cloud.retail.v2alpha.ProductService.SetInventory", - "async": true, - "parameters": [ - { - "name": "inventory", - "type": ".google.cloud.retail.v2alpha.Product" - }, - { - "name": "set_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "set_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ProductServiceClient", - "fullName": "google.cloud.retail.v2alpha.ProductServiceClient" - }, - "method": { - "shortName": "SetInventory", - "fullName": "google.cloud.retail.v2alpha.ProductService.SetInventory", - "service": { - "shortName": "ProductService", - "fullName": "google.cloud.retail.v2alpha.ProductService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_ProductService_AddFulfillmentPlaces_async", - "title": "AnalyticsService addFulfillmentPlaces Sample", - "origin": "API_DEFINITION", - "description": " We recommend that you use the [ProductService.AddLocalInventories][google.cloud.retail.v2alpha.ProductService.AddLocalInventories] method instead of the [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.AddFulfillmentPlaces] method. [ProductService.AddLocalInventories][google.cloud.retail.v2alpha.ProductService.AddLocalInventories] achieves the same results but provides more fine-grained control over ingesting local inventory data. Incrementally adds place IDs to [Product.fulfillment_info.place_ids][google.cloud.retail.v2alpha.FulfillmentInfo.place_ids]. This process is asynchronous and does not require the [Product][google.cloud.retail.v2alpha.Product] to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the added place IDs are not immediately manifested in the [Product][google.cloud.retail.v2alpha.Product] queried by [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct] or [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts]. The returned [Operation][google.longrunning.Operation]s will be obsolete after 1 day, and [GetOperation][google.longrunning.Operations.GetOperation] API will return NOT_FOUND afterwards. If conflicting updates are issued, the [Operation][google.longrunning.Operation]s associated with the stale updates will not be marked as [done][google.longrunning.Operation.done] until being obsolete.", - "canonical": true, - "file": "product_service.add_fulfillment_places.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 111, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddFulfillmentPlaces", - "fullName": "google.cloud.retail.v2alpha.ProductService.AddFulfillmentPlaces", - "async": true, - "parameters": [ - { - "name": "product", - "type": "TYPE_STRING" - }, - { - "name": "type", - "type": "TYPE_STRING" - }, - { - "name": "place_ids", - "type": "TYPE_STRING[]" - }, - { - "name": "add_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ProductServiceClient", - "fullName": "google.cloud.retail.v2alpha.ProductServiceClient" - }, - "method": { - "shortName": "AddFulfillmentPlaces", - "fullName": "google.cloud.retail.v2alpha.ProductService.AddFulfillmentPlaces", - "service": { - "shortName": "ProductService", - "fullName": "google.cloud.retail.v2alpha.ProductService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_ProductService_RemoveFulfillmentPlaces_async", - "title": "AnalyticsService removeFulfillmentPlaces Sample", - "origin": "API_DEFINITION", - "description": " We recommend that you use the [ProductService.RemoveLocalInventories][google.cloud.retail.v2alpha.ProductService.RemoveLocalInventories] method instead of the [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2alpha.ProductService.RemoveFulfillmentPlaces] method. [ProductService.RemoveLocalInventories][google.cloud.retail.v2alpha.ProductService.RemoveLocalInventories] achieves the same results but provides more fine-grained control over ingesting local inventory data. Incrementally removes place IDs from a [Product.fulfillment_info.place_ids][google.cloud.retail.v2alpha.FulfillmentInfo.place_ids]. This process is asynchronous and does not require the [Product][google.cloud.retail.v2alpha.Product] to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the removed place IDs are not immediately manifested in the [Product][google.cloud.retail.v2alpha.Product] queried by [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct] or [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts]. The returned [Operation][google.longrunning.Operation]s will be obsolete after 1 day, and [GetOperation][google.longrunning.Operations.GetOperation] API will return NOT_FOUND afterwards. If conflicting updates are issued, the [Operation][google.longrunning.Operation]s associated with the stale updates will not be marked as [done][google.longrunning.Operation.done] until being obsolete.", - "canonical": true, - "file": "product_service.remove_fulfillment_places.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 107, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveFulfillmentPlaces", - "fullName": "google.cloud.retail.v2alpha.ProductService.RemoveFulfillmentPlaces", - "async": true, - "parameters": [ - { - "name": "product", - "type": "TYPE_STRING" - }, - { - "name": "type", - "type": "TYPE_STRING" - }, - { - "name": "place_ids", - "type": "TYPE_STRING[]" - }, - { - "name": "remove_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ProductServiceClient", - "fullName": "google.cloud.retail.v2alpha.ProductServiceClient" - }, - "method": { - "shortName": "RemoveFulfillmentPlaces", - "fullName": "google.cloud.retail.v2alpha.ProductService.RemoveFulfillmentPlaces", - "service": { - "shortName": "ProductService", - "fullName": "google.cloud.retail.v2alpha.ProductService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_ProductService_AddLocalInventories_async", - "title": "AnalyticsService addLocalInventories Sample", - "origin": "API_DEFINITION", - "description": " Updates local inventory information for a [Product][google.cloud.retail.v2alpha.Product] at a list of places, while respecting the last update timestamps of each inventory field. This process is asynchronous and does not require the [Product][google.cloud.retail.v2alpha.Product] to exist before updating inventory information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, updates are not immediately manifested in the [Product][google.cloud.retail.v2alpha.Product] queried by [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct] or [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts]. Local inventory information can only be modified using this method. [ProductService.CreateProduct][google.cloud.retail.v2alpha.ProductService.CreateProduct] and [ProductService.UpdateProduct][google.cloud.retail.v2alpha.ProductService.UpdateProduct] has no effect on local inventories. The returned [Operation][google.longrunning.Operation]s will be obsolete after 1 day, and [GetOperation][google.longrunning.Operations.GetOperation] API will return NOT_FOUND afterwards. If conflicting updates are issued, the [Operation][google.longrunning.Operation]s associated with the stale updates will not be marked as [done][google.longrunning.Operation.done] until being obsolete.", - "canonical": true, - "file": "product_service.add_local_inventories.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 95, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddLocalInventories", - "fullName": "google.cloud.retail.v2alpha.ProductService.AddLocalInventories", - "async": true, - "parameters": [ - { - "name": "product", - "type": "TYPE_STRING" - }, - { - "name": "local_inventories", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "add_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "add_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ProductServiceClient", - "fullName": "google.cloud.retail.v2alpha.ProductServiceClient" - }, - "method": { - "shortName": "AddLocalInventories", - "fullName": "google.cloud.retail.v2alpha.ProductService.AddLocalInventories", - "service": { - "shortName": "ProductService", - "fullName": "google.cloud.retail.v2alpha.ProductService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_ProductService_RemoveLocalInventories_async", - "title": "AnalyticsService removeLocalInventories Sample", - "origin": "API_DEFINITION", - "description": " Remove local inventory information for a [Product][google.cloud.retail.v2alpha.Product] at a list of places at a removal timestamp. This process is asynchronous. If the request is valid, the removal will be enqueued and processed downstream. As a consequence, when a response is returned, removals are not immediately manifested in the [Product][google.cloud.retail.v2alpha.Product] queried by [ProductService.GetProduct][google.cloud.retail.v2alpha.ProductService.GetProduct] or [ProductService.ListProducts][google.cloud.retail.v2alpha.ProductService.ListProducts]. Local inventory information can only be removed using this method. [ProductService.CreateProduct][google.cloud.retail.v2alpha.ProductService.CreateProduct] and [ProductService.UpdateProduct][google.cloud.retail.v2alpha.ProductService.UpdateProduct] has no effect on local inventories. The returned [Operation][google.longrunning.Operation]s will be obsolete after 1 day, and [GetOperation][google.longrunning.Operations.GetOperation] API will return NOT_FOUND afterwards. If conflicting updates are issued, the [Operation][google.longrunning.Operation]s associated with the stale updates will not be marked as [done][google.longrunning.Operation.done] until being obsolete.", - "canonical": true, - "file": "product_service.remove_local_inventories.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveLocalInventories", - "fullName": "google.cloud.retail.v2alpha.ProductService.RemoveLocalInventories", - "async": true, - "parameters": [ - { - "name": "product", - "type": "TYPE_STRING" - }, - { - "name": "place_ids", - "type": "TYPE_STRING[]" - }, - { - "name": "remove_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ProductServiceClient", - "fullName": "google.cloud.retail.v2alpha.ProductServiceClient" - }, - "method": { - "shortName": "RemoveLocalInventories", - "fullName": "google.cloud.retail.v2alpha.ProductService.RemoveLocalInventories", - "service": { - "shortName": "ProductService", - "fullName": "google.cloud.retail.v2alpha.ProductService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_ProjectService_GetProject_async", - "title": "AnalyticsService getProject Sample", - "origin": "API_DEFINITION", - "description": " Gets the project. Throws `NOT_FOUND` if the project wasn't initialized for the Retail API service.", - "canonical": true, - "file": "project_service.get_project.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetProject", - "fullName": "google.cloud.retail.v2alpha.ProjectService.GetProject", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2alpha.Project", - "client": { - "shortName": "ProjectServiceClient", - "fullName": "google.cloud.retail.v2alpha.ProjectServiceClient" - }, - "method": { - "shortName": "GetProject", - "fullName": "google.cloud.retail.v2alpha.ProjectService.GetProject", - "service": { - "shortName": "ProjectService", - "fullName": "google.cloud.retail.v2alpha.ProjectService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_ProjectService_AcceptTerms_async", - "title": "AnalyticsService acceptTerms Sample", - "origin": "API_DEFINITION", - "description": " Accepts service terms for this project. By making requests to this API, you agree to the terms of service linked below. https://cloud.google.com/retail/data-use-terms", - "canonical": true, - "file": "project_service.accept_terms.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AcceptTerms", - "fullName": "google.cloud.retail.v2alpha.ProjectService.AcceptTerms", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2alpha.Project", - "client": { - "shortName": "ProjectServiceClient", - "fullName": "google.cloud.retail.v2alpha.ProjectServiceClient" - }, - "method": { - "shortName": "AcceptTerms", - "fullName": "google.cloud.retail.v2alpha.ProjectService.AcceptTerms", - "service": { - "shortName": "ProjectService", - "fullName": "google.cloud.retail.v2alpha.ProjectService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_ProjectService_EnrollSolution_async", - "title": "AnalyticsService enrollSolution Sample", - "origin": "API_DEFINITION", - "description": " The method enrolls a solution of type [Retail Search][google.cloud.retail.v2alpha.SolutionType.SOLUTION_TYPE_SEARCH] into a project. The [Recommendations AI solution type][google.cloud.retail.v2alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION] is enrolled by default when your project enables Retail API, so you don't need to call the enrollSolution method for recommendations.", - "canonical": true, - "file": "project_service.enroll_solution.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "EnrollSolution", - "fullName": "google.cloud.retail.v2alpha.ProjectService.EnrollSolution", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "solution", - "type": ".google.cloud.retail.v2alpha.SolutionType" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ProjectServiceClient", - "fullName": "google.cloud.retail.v2alpha.ProjectServiceClient" - }, - "method": { - "shortName": "EnrollSolution", - "fullName": "google.cloud.retail.v2alpha.ProjectService.EnrollSolution", - "service": { - "shortName": "ProjectService", - "fullName": "google.cloud.retail.v2alpha.ProjectService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_ProjectService_ListEnrolledSolutions_async", - "title": "AnalyticsService listEnrolledSolutions Sample", - "origin": "API_DEFINITION", - "description": " Lists all the retail API solutions the project has enrolled.", - "canonical": true, - "file": "project_service.list_enrolled_solutions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEnrolledSolutions", - "fullName": "google.cloud.retail.v2alpha.ProjectService.ListEnrolledSolutions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2alpha.ListEnrolledSolutionsResponse", - "client": { - "shortName": "ProjectServiceClient", - "fullName": "google.cloud.retail.v2alpha.ProjectServiceClient" - }, - "method": { - "shortName": "ListEnrolledSolutions", - "fullName": "google.cloud.retail.v2alpha.ProjectService.ListEnrolledSolutions", - "service": { - "shortName": "ProjectService", - "fullName": "google.cloud.retail.v2alpha.ProjectService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_ProjectService_GetLoggingConfig_async", - "title": "AnalyticsService getLoggingConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets the [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] of the requested project.", - "canonical": true, - "file": "project_service.get_logging_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetLoggingConfig", - "fullName": "google.cloud.retail.v2alpha.ProjectService.GetLoggingConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2alpha.LoggingConfig", - "client": { - "shortName": "ProjectServiceClient", - "fullName": "google.cloud.retail.v2alpha.ProjectServiceClient" - }, - "method": { - "shortName": "GetLoggingConfig", - "fullName": "google.cloud.retail.v2alpha.ProjectService.GetLoggingConfig", - "service": { - "shortName": "ProjectService", - "fullName": "google.cloud.retail.v2alpha.ProjectService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_ProjectService_UpdateLoggingConfig_async", - "title": "AnalyticsService updateLoggingConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates the [LoggingConfig][google.cloud.retail.v2alpha.LoggingConfig] of the requested project.", - "canonical": true, - "file": "project_service.update_logging_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateLoggingConfig", - "fullName": "google.cloud.retail.v2alpha.ProjectService.UpdateLoggingConfig", - "async": true, - "parameters": [ - { - "name": "logging_config", - "type": ".google.cloud.retail.v2alpha.LoggingConfig" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.retail.v2alpha.LoggingConfig", - "client": { - "shortName": "ProjectServiceClient", - "fullName": "google.cloud.retail.v2alpha.ProjectServiceClient" - }, - "method": { - "shortName": "UpdateLoggingConfig", - "fullName": "google.cloud.retail.v2alpha.ProjectService.UpdateLoggingConfig", - "service": { - "shortName": "ProjectService", - "fullName": "google.cloud.retail.v2alpha.ProjectService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_ProjectService_GetAlertConfig_async", - "title": "AnalyticsService getAlertConfig Sample", - "origin": "API_DEFINITION", - "description": " Get the [AlertConfig][google.cloud.retail.v2alpha.AlertConfig] of the requested project.", - "canonical": true, - "file": "project_service.get_alert_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAlertConfig", - "fullName": "google.cloud.retail.v2alpha.ProjectService.GetAlertConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2alpha.AlertConfig", - "client": { - "shortName": "ProjectServiceClient", - "fullName": "google.cloud.retail.v2alpha.ProjectServiceClient" - }, - "method": { - "shortName": "GetAlertConfig", - "fullName": "google.cloud.retail.v2alpha.ProjectService.GetAlertConfig", - "service": { - "shortName": "ProjectService", - "fullName": "google.cloud.retail.v2alpha.ProjectService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_ProjectService_UpdateAlertConfig_async", - "title": "AnalyticsService updateAlertConfig Sample", - "origin": "API_DEFINITION", - "description": " Update the alert config of the requested project.", - "canonical": true, - "file": "project_service.update_alert_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAlertConfig", - "fullName": "google.cloud.retail.v2alpha.ProjectService.UpdateAlertConfig", - "async": true, - "parameters": [ - { - "name": "alert_config", - "type": ".google.cloud.retail.v2alpha.AlertConfig" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.retail.v2alpha.AlertConfig", - "client": { - "shortName": "ProjectServiceClient", - "fullName": "google.cloud.retail.v2alpha.ProjectServiceClient" - }, - "method": { - "shortName": "UpdateAlertConfig", - "fullName": "google.cloud.retail.v2alpha.ProjectService.UpdateAlertConfig", - "service": { - "shortName": "ProjectService", - "fullName": "google.cloud.retail.v2alpha.ProjectService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_SearchService_Search_async", - "title": "AnalyticsService search Sample", - "origin": "API_DEFINITION", - "description": " Performs a search. This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature.", - "canonical": true, - "file": "search_service.search.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 382, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Search", - "fullName": "google.cloud.retail.v2alpha.SearchService.Search", - "async": true, - "parameters": [ - { - "name": "placement", - "type": "TYPE_STRING" - }, - { - "name": "branch", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": "TYPE_STRING" - }, - { - "name": "visitor_id", - "type": "TYPE_STRING" - }, - { - "name": "user_info", - "type": ".google.cloud.retail.v2alpha.UserInfo" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "offset", - "type": "TYPE_INT32" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "canonical_filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "facet_specs", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "dynamic_facet_spec", - "type": ".google.cloud.retail.v2alpha.SearchRequest.DynamicFacetSpec" - }, - { - "name": "boost_spec", - "type": ".google.cloud.retail.v2alpha.SearchRequest.BoostSpec" - }, - { - "name": "query_expansion_spec", - "type": ".google.cloud.retail.v2alpha.SearchRequest.QueryExpansionSpec" - }, - { - "name": "relevance_threshold", - "type": ".google.cloud.retail.v2alpha.SearchRequest.RelevanceThreshold" - }, - { - "name": "variant_rollup_keys", - "type": "TYPE_STRING[]" - }, - { - "name": "experiment_id", - "type": "TYPE_STRING" - }, - { - "name": "page_categories", - "type": "TYPE_STRING[]" - }, - { - "name": "search_mode", - "type": ".google.cloud.retail.v2alpha.SearchRequest.SearchMode" - }, - { - "name": "personalization_spec", - "type": ".google.cloud.retail.v2alpha.SearchRequest.PersonalizationSpec" - }, - { - "name": "labels", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "spell_correction_spec", - "type": ".google.cloud.retail.v2alpha.SearchRequest.SpellCorrectionSpec" - }, - { - "name": "entity", - "type": "TYPE_STRING" - }, - { - "name": "conversational_search_spec", - "type": ".google.cloud.retail.v2alpha.SearchRequest.ConversationalSearchSpec" - }, - { - "name": "tile_navigation_spec", - "type": ".google.cloud.retail.v2alpha.SearchRequest.TileNavigationSpec" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "region_code", - "type": "TYPE_STRING" - }, - { - "name": "place_id", - "type": "TYPE_STRING" - }, - { - "name": "user_attributes", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.retail.v2alpha.SearchResponse", - "client": { - "shortName": "SearchServiceClient", - "fullName": "google.cloud.retail.v2alpha.SearchServiceClient" - }, - "method": { - "shortName": "Search", - "fullName": "google.cloud.retail.v2alpha.SearchService.Search", - "service": { - "shortName": "SearchService", - "fullName": "google.cloud.retail.v2alpha.SearchService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_ServingConfigService_CreateServingConfig_async", - "title": "AnalyticsService createServingConfig Sample", - "origin": "API_DEFINITION", - "description": " Creates a ServingConfig. A maximum of 100 [ServingConfig][google.cloud.retail.v2alpha.ServingConfig]s are allowed in a [Catalog][google.cloud.retail.v2alpha.Catalog], otherwise a FAILED_PRECONDITION error is returned.", - "canonical": true, - "file": "serving_config_service.create_serving_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateServingConfig", - "fullName": "google.cloud.retail.v2alpha.ServingConfigService.CreateServingConfig", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "serving_config", - "type": ".google.cloud.retail.v2alpha.ServingConfig" - }, - { - "name": "serving_config_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2alpha.ServingConfig", - "client": { - "shortName": "ServingConfigServiceClient", - "fullName": "google.cloud.retail.v2alpha.ServingConfigServiceClient" - }, - "method": { - "shortName": "CreateServingConfig", - "fullName": "google.cloud.retail.v2alpha.ServingConfigService.CreateServingConfig", - "service": { - "shortName": "ServingConfigService", - "fullName": "google.cloud.retail.v2alpha.ServingConfigService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_ServingConfigService_DeleteServingConfig_async", - "title": "AnalyticsService deleteServingConfig Sample", - "origin": "API_DEFINITION", - "description": " Deletes a ServingConfig. Returns a NotFound error if the ServingConfig does not exist.", - "canonical": true, - "file": "serving_config_service.delete_serving_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteServingConfig", - "fullName": "google.cloud.retail.v2alpha.ServingConfigService.DeleteServingConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ServingConfigServiceClient", - "fullName": "google.cloud.retail.v2alpha.ServingConfigServiceClient" - }, - "method": { - "shortName": "DeleteServingConfig", - "fullName": "google.cloud.retail.v2alpha.ServingConfigService.DeleteServingConfig", - "service": { - "shortName": "ServingConfigService", - "fullName": "google.cloud.retail.v2alpha.ServingConfigService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_ServingConfigService_UpdateServingConfig_async", - "title": "AnalyticsService updateServingConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates a ServingConfig.", - "canonical": true, - "file": "serving_config_service.update_serving_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateServingConfig", - "fullName": "google.cloud.retail.v2alpha.ServingConfigService.UpdateServingConfig", - "async": true, - "parameters": [ - { - "name": "serving_config", - "type": ".google.cloud.retail.v2alpha.ServingConfig" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.retail.v2alpha.ServingConfig", - "client": { - "shortName": "ServingConfigServiceClient", - "fullName": "google.cloud.retail.v2alpha.ServingConfigServiceClient" - }, - "method": { - "shortName": "UpdateServingConfig", - "fullName": "google.cloud.retail.v2alpha.ServingConfigService.UpdateServingConfig", - "service": { - "shortName": "ServingConfigService", - "fullName": "google.cloud.retail.v2alpha.ServingConfigService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_ServingConfigService_GetServingConfig_async", - "title": "AnalyticsService getServingConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets a ServingConfig. Returns a NotFound error if the ServingConfig does not exist.", - "canonical": true, - "file": "serving_config_service.get_serving_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetServingConfig", - "fullName": "google.cloud.retail.v2alpha.ServingConfigService.GetServingConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2alpha.ServingConfig", - "client": { - "shortName": "ServingConfigServiceClient", - "fullName": "google.cloud.retail.v2alpha.ServingConfigServiceClient" - }, - "method": { - "shortName": "GetServingConfig", - "fullName": "google.cloud.retail.v2alpha.ServingConfigService.GetServingConfig", - "service": { - "shortName": "ServingConfigService", - "fullName": "google.cloud.retail.v2alpha.ServingConfigService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_ServingConfigService_ListServingConfigs_async", - "title": "AnalyticsService listServingConfigs Sample", - "origin": "API_DEFINITION", - "description": " Lists all ServingConfigs linked to this catalog.", - "canonical": true, - "file": "serving_config_service.list_serving_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListServingConfigs", - "fullName": "google.cloud.retail.v2alpha.ServingConfigService.ListServingConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2alpha.ListServingConfigsResponse", - "client": { - "shortName": "ServingConfigServiceClient", - "fullName": "google.cloud.retail.v2alpha.ServingConfigServiceClient" - }, - "method": { - "shortName": "ListServingConfigs", - "fullName": "google.cloud.retail.v2alpha.ServingConfigService.ListServingConfigs", - "service": { - "shortName": "ServingConfigService", - "fullName": "google.cloud.retail.v2alpha.ServingConfigService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_ServingConfigService_AddControl_async", - "title": "AnalyticsService addControl Sample", - "origin": "API_DEFINITION", - "description": " Enables a Control on the specified ServingConfig. The control is added in the last position of the list of controls it belongs to (e.g. if it's a facet spec control it will be applied in the last position of servingConfig.facetSpecIds) Returns a ALREADY_EXISTS error if the control has already been applied. Returns a FAILED_PRECONDITION error if the addition could exceed maximum number of control allowed for that type of control.", - "canonical": true, - "file": "serving_config_service.add_control.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddControl", - "fullName": "google.cloud.retail.v2alpha.ServingConfigService.AddControl", - "async": true, - "parameters": [ - { - "name": "serving_config", - "type": "TYPE_STRING" - }, - { - "name": "control_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2alpha.ServingConfig", - "client": { - "shortName": "ServingConfigServiceClient", - "fullName": "google.cloud.retail.v2alpha.ServingConfigServiceClient" - }, - "method": { - "shortName": "AddControl", - "fullName": "google.cloud.retail.v2alpha.ServingConfigService.AddControl", - "service": { - "shortName": "ServingConfigService", - "fullName": "google.cloud.retail.v2alpha.ServingConfigService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_ServingConfigService_RemoveControl_async", - "title": "AnalyticsService removeControl Sample", - "origin": "API_DEFINITION", - "description": " Disables a Control on the specified ServingConfig. The control is removed from the ServingConfig. Returns a NOT_FOUND error if the Control is not enabled for the ServingConfig.", - "canonical": true, - "file": "serving_config_service.remove_control.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveControl", - "fullName": "google.cloud.retail.v2alpha.ServingConfigService.RemoveControl", - "async": true, - "parameters": [ - { - "name": "serving_config", - "type": "TYPE_STRING" - }, - { - "name": "control_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2alpha.ServingConfig", - "client": { - "shortName": "ServingConfigServiceClient", - "fullName": "google.cloud.retail.v2alpha.ServingConfigServiceClient" - }, - "method": { - "shortName": "RemoveControl", - "fullName": "google.cloud.retail.v2alpha.ServingConfigService.RemoveControl", - "service": { - "shortName": "ServingConfigService", - "fullName": "google.cloud.retail.v2alpha.ServingConfigService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_UserEventService_WriteUserEvent_async", - "title": "AnalyticsService writeUserEvent Sample", - "origin": "API_DEFINITION", - "description": " Writes a single user event.", - "canonical": true, - "file": "user_event_service.write_user_event.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "WriteUserEvent", - "fullName": "google.cloud.retail.v2alpha.UserEventService.WriteUserEvent", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "user_event", - "type": ".google.cloud.retail.v2alpha.UserEvent" - }, - { - "name": "write_async", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.retail.v2alpha.UserEvent", - "client": { - "shortName": "UserEventServiceClient", - "fullName": "google.cloud.retail.v2alpha.UserEventServiceClient" - }, - "method": { - "shortName": "WriteUserEvent", - "fullName": "google.cloud.retail.v2alpha.UserEventService.WriteUserEvent", - "service": { - "shortName": "UserEventService", - "fullName": "google.cloud.retail.v2alpha.UserEventService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_UserEventService_CollectUserEvent_async", - "title": "AnalyticsService collectUserEvent Sample", - "origin": "API_DEFINITION", - "description": " Writes a single user event from the browser. For larger user event payload over 16 KB, the POST method should be used instead, otherwise a 400 Bad Request error is returned. This method is used only by the Retail API JavaScript pixel and Google Tag Manager. Users should not call this method directly.", - "canonical": true, - "file": "user_event_service.collect_user_event.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CollectUserEvent", - "fullName": "google.cloud.retail.v2alpha.UserEventService.CollectUserEvent", - "async": true, - "parameters": [ - { - "name": "prebuilt_rule", - "type": "TYPE_STRING" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "user_event", - "type": "TYPE_STRING" - }, - { - "name": "uri", - "type": "TYPE_STRING" - }, - { - "name": "ets", - "type": "TYPE_INT64" - }, - { - "name": "raw_json", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.api.HttpBody", - "client": { - "shortName": "UserEventServiceClient", - "fullName": "google.cloud.retail.v2alpha.UserEventServiceClient" - }, - "method": { - "shortName": "CollectUserEvent", - "fullName": "google.cloud.retail.v2alpha.UserEventService.CollectUserEvent", - "service": { - "shortName": "UserEventService", - "fullName": "google.cloud.retail.v2alpha.UserEventService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_UserEventService_PurgeUserEvents_async", - "title": "AnalyticsService purgeUserEvents Sample", - "origin": "API_DEFINITION", - "description": " Deletes permanently all user events specified by the filter provided. Depending on the number of events specified by the filter, this operation could take hours or days to complete. To test a filter, use the list command first.", - "canonical": true, - "file": "user_event_service.purge_user_events.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PurgeUserEvents", - "fullName": "google.cloud.retail.v2alpha.UserEventService.PurgeUserEvents", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "UserEventServiceClient", - "fullName": "google.cloud.retail.v2alpha.UserEventServiceClient" - }, - "method": { - "shortName": "PurgeUserEvents", - "fullName": "google.cloud.retail.v2alpha.UserEventService.PurgeUserEvents", - "service": { - "shortName": "UserEventService", - "fullName": "google.cloud.retail.v2alpha.UserEventService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_UserEventService_ImportUserEvents_async", - "title": "AnalyticsService importUserEvents Sample", - "origin": "API_DEFINITION", - "description": " Bulk import of User events. Request processing might be synchronous. Events that already exist are skipped. Use this method for backfilling historical user events. `Operation.response` is of type `ImportResponse`. Note that it is possible for a subset of the items to be successfully inserted. `Operation.metadata` is of type `ImportMetadata`.", - "canonical": true, - "file": "user_event_service.import_user_events.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportUserEvents", - "fullName": "google.cloud.retail.v2alpha.UserEventService.ImportUserEvents", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "input_config", - "type": ".google.cloud.retail.v2alpha.UserEventInputConfig" - }, - { - "name": "errors_config", - "type": ".google.cloud.retail.v2alpha.ImportErrorsConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "UserEventServiceClient", - "fullName": "google.cloud.retail.v2alpha.UserEventServiceClient" - }, - "method": { - "shortName": "ImportUserEvents", - "fullName": "google.cloud.retail.v2alpha.UserEventService.ImportUserEvents", - "service": { - "shortName": "UserEventService", - "fullName": "google.cloud.retail.v2alpha.UserEventService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_UserEventService_ExportUserEvents_async", - "title": "AnalyticsService exportUserEvents Sample", - "origin": "API_DEFINITION", - "description": " Exports user events. `Operation.response` is of type `ExportResponse`. `Operation.metadata` is of type `ExportMetadata`.", - "canonical": true, - "file": "user_event_service.export_user_events.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 94, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportUserEvents", - "fullName": "google.cloud.retail.v2alpha.UserEventService.ExportUserEvents", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "output_config", - "type": ".google.cloud.retail.v2alpha.OutputConfig" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "UserEventServiceClient", - "fullName": "google.cloud.retail.v2alpha.UserEventServiceClient" - }, - "method": { - "shortName": "ExportUserEvents", - "fullName": "google.cloud.retail.v2alpha.UserEventService.ExportUserEvents", - "service": { - "shortName": "UserEventService", - "fullName": "google.cloud.retail.v2alpha.UserEventService" - } - } - } - }, - { - "regionTag": "retail_v2alpha_generated_UserEventService_RejoinUserEvents_async", - "title": "AnalyticsService rejoinUserEvents Sample", - "origin": "API_DEFINITION", - "description": " Starts a user-event rejoin operation with latest product catalog. Events are not annotated with detailed product information for products that are missing from the catalog when the user event is ingested. These events are stored as unjoined events with limited usage on training and serving. You can use this method to start a join operation on specified events with the latest version of product catalog. You can also use this method to correct events joined with the wrong product catalog. A rejoin operation can take hours or days to complete.", - "canonical": true, - "file": "user_event_service.rejoin_user_events.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RejoinUserEvents", - "fullName": "google.cloud.retail.v2alpha.UserEventService.RejoinUserEvents", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "user_event_rejoin_scope", - "type": ".google.cloud.retail.v2alpha.RejoinUserEventsRequest.UserEventRejoinScope" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "UserEventServiceClient", - "fullName": "google.cloud.retail.v2alpha.UserEventServiceClient" - }, - "method": { - "shortName": "RejoinUserEvents", - "fullName": "google.cloud.retail.v2alpha.UserEventService.RejoinUserEvents", - "service": { - "shortName": "UserEventService", - "fullName": "google.cloud.retail.v2alpha.UserEventService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-retail/samples/generated/v2beta/snippet_metadata_google.cloud.retail.v2beta.json b/packages/google-cloud-retail/samples/generated/v2beta/snippet_metadata_google.cloud.retail.v2beta.json deleted file mode 100644 index d9ac23b3a423..000000000000 --- a/packages/google-cloud-retail/samples/generated/v2beta/snippet_metadata_google.cloud.retail.v2beta.json +++ /dev/null @@ -1,3139 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-retail", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.retail.v2beta", - "version": "v2beta" - } - ] - }, - "snippets": [ - { - "regionTag": "retail_v2beta_generated_AnalyticsService_ExportAnalyticsMetrics_async", - "title": "AnalyticsService exportAnalyticsMetrics Sample", - "origin": "API_DEFINITION", - "description": " Exports analytics metrics. `Operation.response` is of type `ExportAnalyticsMetricsResponse`. `Operation.metadata` is of type `ExportMetadata`.", - "canonical": true, - "file": "analytics_service.export_analytics_metrics.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportAnalyticsMetrics", - "fullName": "google.cloud.retail.v2beta.AnalyticsService.ExportAnalyticsMetrics", - "async": true, - "parameters": [ - { - "name": "catalog", - "type": "TYPE_STRING" - }, - { - "name": "output_config", - "type": ".google.cloud.retail.v2beta.OutputConfig" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AnalyticsServiceClient", - "fullName": "google.cloud.retail.v2beta.AnalyticsServiceClient" - }, - "method": { - "shortName": "ExportAnalyticsMetrics", - "fullName": "google.cloud.retail.v2beta.AnalyticsService.ExportAnalyticsMetrics", - "service": { - "shortName": "AnalyticsService", - "fullName": "google.cloud.retail.v2beta.AnalyticsService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_CatalogService_ListCatalogs_async", - "title": "AnalyticsService listCatalogs Sample", - "origin": "API_DEFINITION", - "description": " Lists all the [Catalog][google.cloud.retail.v2beta.Catalog]s associated with the project.", - "canonical": true, - "file": "catalog_service.list_catalogs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCatalogs", - "fullName": "google.cloud.retail.v2beta.CatalogService.ListCatalogs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2beta.ListCatalogsResponse", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.retail.v2beta.CatalogServiceClient" - }, - "method": { - "shortName": "ListCatalogs", - "fullName": "google.cloud.retail.v2beta.CatalogService.ListCatalogs", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.retail.v2beta.CatalogService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_CatalogService_UpdateCatalog_async", - "title": "AnalyticsService updateCatalog Sample", - "origin": "API_DEFINITION", - "description": " Updates the [Catalog][google.cloud.retail.v2beta.Catalog]s.", - "canonical": true, - "file": "catalog_service.update_catalog.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCatalog", - "fullName": "google.cloud.retail.v2beta.CatalogService.UpdateCatalog", - "async": true, - "parameters": [ - { - "name": "catalog", - "type": ".google.cloud.retail.v2beta.Catalog" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.retail.v2beta.Catalog", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.retail.v2beta.CatalogServiceClient" - }, - "method": { - "shortName": "UpdateCatalog", - "fullName": "google.cloud.retail.v2beta.CatalogService.UpdateCatalog", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.retail.v2beta.CatalogService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_CatalogService_SetDefaultBranch_async", - "title": "AnalyticsService setDefaultBranch Sample", - "origin": "API_DEFINITION", - "description": " Set a specified branch id as default branch. API methods such as [SearchService.Search][google.cloud.retail.v2beta.SearchService.Search], [ProductService.GetProduct][google.cloud.retail.v2beta.ProductService.GetProduct], [ProductService.ListProducts][google.cloud.retail.v2beta.ProductService.ListProducts] will treat requests using \"default_branch\" to the actual branch id set as default. For example, if `projects/*/locations/*/catalogs/*/branches/1` is set as default, setting [SearchRequest.branch][google.cloud.retail.v2beta.SearchRequest.branch] to `projects/*/locations/*/catalogs/*/branches/default_branch` is equivalent to setting [SearchRequest.branch][google.cloud.retail.v2beta.SearchRequest.branch] to `projects/*/locations/*/catalogs/*/branches/1`. Using multiple branches can be useful when developers would like to have a staging branch to test and verify for future usage. When it becomes ready, developers switch on the staging branch using this API while keeping using `projects/*/locations/*/catalogs/*/branches/default_branch` as [SearchRequest.branch][google.cloud.retail.v2beta.SearchRequest.branch] to route the traffic to this staging branch. CAUTION: If you have live predict/search traffic, switching the default branch could potentially cause outages if the ID space of the new branch is very different from the old one. More specifically: * PredictionService will only return product IDs from branch {newBranch}. * SearchService will only return product IDs from branch {newBranch} (if branch is not explicitly set). * UserEventService will only join events with products from branch {newBranch}.", - "canonical": true, - "file": "catalog_service.set_default_branch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetDefaultBranch", - "fullName": "google.cloud.retail.v2beta.CatalogService.SetDefaultBranch", - "async": true, - "parameters": [ - { - "name": "catalog", - "type": "TYPE_STRING" - }, - { - "name": "branch_id", - "type": "TYPE_STRING" - }, - { - "name": "note", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.retail.v2beta.CatalogServiceClient" - }, - "method": { - "shortName": "SetDefaultBranch", - "fullName": "google.cloud.retail.v2beta.CatalogService.SetDefaultBranch", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.retail.v2beta.CatalogService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_CatalogService_GetDefaultBranch_async", - "title": "AnalyticsService getDefaultBranch Sample", - "origin": "API_DEFINITION", - "description": " Get which branch is currently default branch set by [CatalogService.SetDefaultBranch][google.cloud.retail.v2beta.CatalogService.SetDefaultBranch] method under a specified parent catalog.", - "canonical": true, - "file": "catalog_service.get_default_branch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDefaultBranch", - "fullName": "google.cloud.retail.v2beta.CatalogService.GetDefaultBranch", - "async": true, - "parameters": [ - { - "name": "catalog", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2beta.GetDefaultBranchResponse", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.retail.v2beta.CatalogServiceClient" - }, - "method": { - "shortName": "GetDefaultBranch", - "fullName": "google.cloud.retail.v2beta.CatalogService.GetDefaultBranch", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.retail.v2beta.CatalogService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_CatalogService_GetCompletionConfig_async", - "title": "AnalyticsService getCompletionConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets a [CompletionConfig][google.cloud.retail.v2beta.CompletionConfig].", - "canonical": true, - "file": "catalog_service.get_completion_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCompletionConfig", - "fullName": "google.cloud.retail.v2beta.CatalogService.GetCompletionConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2beta.CompletionConfig", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.retail.v2beta.CatalogServiceClient" - }, - "method": { - "shortName": "GetCompletionConfig", - "fullName": "google.cloud.retail.v2beta.CatalogService.GetCompletionConfig", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.retail.v2beta.CatalogService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_CatalogService_UpdateCompletionConfig_async", - "title": "AnalyticsService updateCompletionConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates the [CompletionConfig][google.cloud.retail.v2beta.CompletionConfig]s.", - "canonical": true, - "file": "catalog_service.update_completion_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCompletionConfig", - "fullName": "google.cloud.retail.v2beta.CatalogService.UpdateCompletionConfig", - "async": true, - "parameters": [ - { - "name": "completion_config", - "type": ".google.cloud.retail.v2beta.CompletionConfig" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.retail.v2beta.CompletionConfig", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.retail.v2beta.CatalogServiceClient" - }, - "method": { - "shortName": "UpdateCompletionConfig", - "fullName": "google.cloud.retail.v2beta.CatalogService.UpdateCompletionConfig", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.retail.v2beta.CatalogService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_CatalogService_GetAttributesConfig_async", - "title": "AnalyticsService getAttributesConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets an [AttributesConfig][google.cloud.retail.v2beta.AttributesConfig].", - "canonical": true, - "file": "catalog_service.get_attributes_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAttributesConfig", - "fullName": "google.cloud.retail.v2beta.CatalogService.GetAttributesConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2beta.AttributesConfig", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.retail.v2beta.CatalogServiceClient" - }, - "method": { - "shortName": "GetAttributesConfig", - "fullName": "google.cloud.retail.v2beta.CatalogService.GetAttributesConfig", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.retail.v2beta.CatalogService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_CatalogService_UpdateAttributesConfig_async", - "title": "AnalyticsService updateAttributesConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates the [AttributesConfig][google.cloud.retail.v2beta.AttributesConfig]. The catalog attributes in the request will be updated in the catalog, or inserted if they do not exist. Existing catalog attributes not included in the request will remain unchanged. Attributes that are assigned to products, but do not exist at the catalog level, are always included in the response. The product attribute is assigned default values for missing catalog attribute fields, e.g., searchable and dynamic facetable options.", - "canonical": true, - "file": "catalog_service.update_attributes_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAttributesConfig", - "fullName": "google.cloud.retail.v2beta.CatalogService.UpdateAttributesConfig", - "async": true, - "parameters": [ - { - "name": "attributes_config", - "type": ".google.cloud.retail.v2beta.AttributesConfig" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.retail.v2beta.AttributesConfig", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.retail.v2beta.CatalogServiceClient" - }, - "method": { - "shortName": "UpdateAttributesConfig", - "fullName": "google.cloud.retail.v2beta.CatalogService.UpdateAttributesConfig", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.retail.v2beta.CatalogService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_CatalogService_AddCatalogAttribute_async", - "title": "AnalyticsService addCatalogAttribute Sample", - "origin": "API_DEFINITION", - "description": " Adds the specified [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] to the [AttributesConfig][google.cloud.retail.v2beta.AttributesConfig]. If the [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] to add already exists, an ALREADY_EXISTS error is returned.", - "canonical": true, - "file": "catalog_service.add_catalog_attribute.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddCatalogAttribute", - "fullName": "google.cloud.retail.v2beta.CatalogService.AddCatalogAttribute", - "async": true, - "parameters": [ - { - "name": "attributes_config", - "type": "TYPE_STRING" - }, - { - "name": "catalog_attribute", - "type": ".google.cloud.retail.v2beta.CatalogAttribute" - } - ], - "resultType": ".google.cloud.retail.v2beta.AttributesConfig", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.retail.v2beta.CatalogServiceClient" - }, - "method": { - "shortName": "AddCatalogAttribute", - "fullName": "google.cloud.retail.v2beta.CatalogService.AddCatalogAttribute", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.retail.v2beta.CatalogService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_CatalogService_RemoveCatalogAttribute_async", - "title": "AnalyticsService removeCatalogAttribute Sample", - "origin": "API_DEFINITION", - "description": " Removes the specified [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] from the [AttributesConfig][google.cloud.retail.v2beta.AttributesConfig]. If the [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] to remove does not exist, a NOT_FOUND error is returned.", - "canonical": true, - "file": "catalog_service.remove_catalog_attribute.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveCatalogAttribute", - "fullName": "google.cloud.retail.v2beta.CatalogService.RemoveCatalogAttribute", - "async": true, - "parameters": [ - { - "name": "attributes_config", - "type": "TYPE_STRING" - }, - { - "name": "key", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2beta.AttributesConfig", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.retail.v2beta.CatalogServiceClient" - }, - "method": { - "shortName": "RemoveCatalogAttribute", - "fullName": "google.cloud.retail.v2beta.CatalogService.RemoveCatalogAttribute", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.retail.v2beta.CatalogService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_CatalogService_BatchRemoveCatalogAttributes_async", - "title": "AnalyticsService batchRemoveCatalogAttributes Sample", - "origin": "API_DEFINITION", - "description": " Removes all specified [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute]s from the [AttributesConfig][google.cloud.retail.v2beta.AttributesConfig].", - "canonical": true, - "file": "catalog_service.batch_remove_catalog_attributes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchRemoveCatalogAttributes", - "fullName": "google.cloud.retail.v2beta.CatalogService.BatchRemoveCatalogAttributes", - "async": true, - "parameters": [ - { - "name": "attributes_config", - "type": "TYPE_STRING" - }, - { - "name": "attribute_keys", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.cloud.retail.v2beta.BatchRemoveCatalogAttributesResponse", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.retail.v2beta.CatalogServiceClient" - }, - "method": { - "shortName": "BatchRemoveCatalogAttributes", - "fullName": "google.cloud.retail.v2beta.CatalogService.BatchRemoveCatalogAttributes", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.retail.v2beta.CatalogService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_CatalogService_ReplaceCatalogAttribute_async", - "title": "AnalyticsService replaceCatalogAttribute Sample", - "origin": "API_DEFINITION", - "description": " Replaces the specified [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] in the [AttributesConfig][google.cloud.retail.v2beta.AttributesConfig] by updating the catalog attribute with the same [CatalogAttribute.key][google.cloud.retail.v2beta.CatalogAttribute.key]. If the [CatalogAttribute][google.cloud.retail.v2beta.CatalogAttribute] to replace does not exist, a NOT_FOUND error is returned.", - "canonical": true, - "file": "catalog_service.replace_catalog_attribute.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReplaceCatalogAttribute", - "fullName": "google.cloud.retail.v2beta.CatalogService.ReplaceCatalogAttribute", - "async": true, - "parameters": [ - { - "name": "attributes_config", - "type": "TYPE_STRING" - }, - { - "name": "catalog_attribute", - "type": ".google.cloud.retail.v2beta.CatalogAttribute" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.retail.v2beta.AttributesConfig", - "client": { - "shortName": "CatalogServiceClient", - "fullName": "google.cloud.retail.v2beta.CatalogServiceClient" - }, - "method": { - "shortName": "ReplaceCatalogAttribute", - "fullName": "google.cloud.retail.v2beta.CatalogService.ReplaceCatalogAttribute", - "service": { - "shortName": "CatalogService", - "fullName": "google.cloud.retail.v2beta.CatalogService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_CompletionService_CompleteQuery_async", - "title": "AnalyticsService completeQuery Sample", - "origin": "API_DEFINITION", - "description": " Completes the specified prefix with keyword suggestions. This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature.", - "canonical": true, - "file": "completion_service.complete_query.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 135, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CompleteQuery", - "fullName": "google.cloud.retail.v2beta.CompletionService.CompleteQuery", - "async": true, - "parameters": [ - { - "name": "catalog", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": "TYPE_STRING" - }, - { - "name": "visitor_id", - "type": "TYPE_STRING" - }, - { - "name": "language_codes", - "type": "TYPE_STRING[]" - }, - { - "name": "device_type", - "type": "TYPE_STRING" - }, - { - "name": "dataset", - "type": "TYPE_STRING" - }, - { - "name": "max_suggestions", - "type": "TYPE_INT32" - }, - { - "name": "enable_attribute_suggestions", - "type": "TYPE_BOOL" - }, - { - "name": "entity", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2beta.CompleteQueryResponse", - "client": { - "shortName": "CompletionServiceClient", - "fullName": "google.cloud.retail.v2beta.CompletionServiceClient" - }, - "method": { - "shortName": "CompleteQuery", - "fullName": "google.cloud.retail.v2beta.CompletionService.CompleteQuery", - "service": { - "shortName": "CompletionService", - "fullName": "google.cloud.retail.v2beta.CompletionService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_CompletionService_ImportCompletionData_async", - "title": "AnalyticsService importCompletionData Sample", - "origin": "API_DEFINITION", - "description": " Bulk import of processed completion dataset. Request processing is asynchronous. Partial updating is not supported. The operation is successfully finished only after the imported suggestions are indexed successfully and ready for serving. The process takes hours. This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature.", - "canonical": true, - "file": "completion_service.import_completion_data.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportCompletionData", - "fullName": "google.cloud.retail.v2beta.CompletionService.ImportCompletionData", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "input_config", - "type": ".google.cloud.retail.v2beta.CompletionDataInputConfig" - }, - { - "name": "notification_pubsub_topic", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CompletionServiceClient", - "fullName": "google.cloud.retail.v2beta.CompletionServiceClient" - }, - "method": { - "shortName": "ImportCompletionData", - "fullName": "google.cloud.retail.v2beta.CompletionService.ImportCompletionData", - "service": { - "shortName": "CompletionService", - "fullName": "google.cloud.retail.v2beta.CompletionService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_ControlService_CreateControl_async", - "title": "AnalyticsService createControl Sample", - "origin": "API_DEFINITION", - "description": " Creates a Control. If the [Control][google.cloud.retail.v2beta.Control] to create already exists, an ALREADY_EXISTS error is returned.", - "canonical": true, - "file": "control_service.create_control.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateControl", - "fullName": "google.cloud.retail.v2beta.ControlService.CreateControl", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "control", - "type": ".google.cloud.retail.v2beta.Control" - }, - { - "name": "control_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2beta.Control", - "client": { - "shortName": "ControlServiceClient", - "fullName": "google.cloud.retail.v2beta.ControlServiceClient" - }, - "method": { - "shortName": "CreateControl", - "fullName": "google.cloud.retail.v2beta.ControlService.CreateControl", - "service": { - "shortName": "ControlService", - "fullName": "google.cloud.retail.v2beta.ControlService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_ControlService_DeleteControl_async", - "title": "AnalyticsService deleteControl Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Control. If the [Control][google.cloud.retail.v2beta.Control] to delete does not exist, a NOT_FOUND error is returned.", - "canonical": true, - "file": "control_service.delete_control.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteControl", - "fullName": "google.cloud.retail.v2beta.ControlService.DeleteControl", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ControlServiceClient", - "fullName": "google.cloud.retail.v2beta.ControlServiceClient" - }, - "method": { - "shortName": "DeleteControl", - "fullName": "google.cloud.retail.v2beta.ControlService.DeleteControl", - "service": { - "shortName": "ControlService", - "fullName": "google.cloud.retail.v2beta.ControlService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_ControlService_UpdateControl_async", - "title": "AnalyticsService updateControl Sample", - "origin": "API_DEFINITION", - "description": " Updates a Control. [Control][google.cloud.retail.v2beta.Control] cannot be set to a different oneof field, if so an INVALID_ARGUMENT is returned. If the [Control][google.cloud.retail.v2beta.Control] to update does not exist, a NOT_FOUND error is returned.", - "canonical": true, - "file": "control_service.update_control.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateControl", - "fullName": "google.cloud.retail.v2beta.ControlService.UpdateControl", - "async": true, - "parameters": [ - { - "name": "control", - "type": ".google.cloud.retail.v2beta.Control" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.retail.v2beta.Control", - "client": { - "shortName": "ControlServiceClient", - "fullName": "google.cloud.retail.v2beta.ControlServiceClient" - }, - "method": { - "shortName": "UpdateControl", - "fullName": "google.cloud.retail.v2beta.ControlService.UpdateControl", - "service": { - "shortName": "ControlService", - "fullName": "google.cloud.retail.v2beta.ControlService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_ControlService_GetControl_async", - "title": "AnalyticsService getControl Sample", - "origin": "API_DEFINITION", - "description": " Gets a Control.", - "canonical": true, - "file": "control_service.get_control.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetControl", - "fullName": "google.cloud.retail.v2beta.ControlService.GetControl", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2beta.Control", - "client": { - "shortName": "ControlServiceClient", - "fullName": "google.cloud.retail.v2beta.ControlServiceClient" - }, - "method": { - "shortName": "GetControl", - "fullName": "google.cloud.retail.v2beta.ControlService.GetControl", - "service": { - "shortName": "ControlService", - "fullName": "google.cloud.retail.v2beta.ControlService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_ControlService_ListControls_async", - "title": "AnalyticsService listControls Sample", - "origin": "API_DEFINITION", - "description": " Lists all Controls by their parent [Catalog][google.cloud.retail.v2beta.Catalog].", - "canonical": true, - "file": "control_service.list_controls.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListControls", - "fullName": "google.cloud.retail.v2beta.ControlService.ListControls", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2beta.ListControlsResponse", - "client": { - "shortName": "ControlServiceClient", - "fullName": "google.cloud.retail.v2beta.ControlServiceClient" - }, - "method": { - "shortName": "ListControls", - "fullName": "google.cloud.retail.v2beta.ControlService.ListControls", - "service": { - "shortName": "ControlService", - "fullName": "google.cloud.retail.v2beta.ControlService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_ConversationalSearchService_ConversationalSearch_async", - "title": "AnalyticsService conversationalSearch Sample", - "origin": "API_DEFINITION", - "description": " Performs a conversational search. This feature is only available for users who have Conversational Search enabled.", - "canonical": true, - "file": "conversational_search_service.conversational_search.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 143, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ConversationalSearch", - "fullName": "google.cloud.retail.v2beta.ConversationalSearchService.ConversationalSearch", - "async": true, - "parameters": [ - { - "name": "placement", - "type": "TYPE_STRING" - }, - { - "name": "branch", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": "TYPE_STRING" - }, - { - "name": "page_categories", - "type": "TYPE_STRING[]" - }, - { - "name": "conversation_id", - "type": "TYPE_STRING" - }, - { - "name": "search_params", - "type": ".google.cloud.retail.v2beta.ConversationalSearchRequest.SearchParams" - }, - { - "name": "visitor_id", - "type": "TYPE_STRING" - }, - { - "name": "user_info", - "type": ".google.cloud.retail.v2beta.UserInfo" - }, - { - "name": "conversational_filtering_spec", - "type": ".google.cloud.retail.v2beta.ConversationalSearchRequest.ConversationalFilteringSpec" - }, - { - "name": "user_labels", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "safety_settings", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.retail.v2beta.ConversationalSearchResponse", - "client": { - "shortName": "ConversationalSearchServiceClient", - "fullName": "google.cloud.retail.v2beta.ConversationalSearchServiceClient" - }, - "method": { - "shortName": "ConversationalSearch", - "fullName": "google.cloud.retail.v2beta.ConversationalSearchService.ConversationalSearch", - "service": { - "shortName": "ConversationalSearchService", - "fullName": "google.cloud.retail.v2beta.ConversationalSearchService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_GenerativeQuestionService_UpdateGenerativeQuestionsFeatureConfig_async", - "title": "AnalyticsService updateGenerativeQuestionsFeatureConfig Sample", - "origin": "API_DEFINITION", - "description": " Manages overal generative question feature state -- enables toggling feature on and off.", - "canonical": true, - "file": "generative_question_service.update_generative_questions_feature_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateGenerativeQuestionsFeatureConfig", - "fullName": "google.cloud.retail.v2beta.GenerativeQuestionService.UpdateGenerativeQuestionsFeatureConfig", - "async": true, - "parameters": [ - { - "name": "generative_questions_feature_config", - "type": ".google.cloud.retail.v2beta.GenerativeQuestionsFeatureConfig" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.retail.v2beta.GenerativeQuestionsFeatureConfig", - "client": { - "shortName": "GenerativeQuestionServiceClient", - "fullName": "google.cloud.retail.v2beta.GenerativeQuestionServiceClient" - }, - "method": { - "shortName": "UpdateGenerativeQuestionsFeatureConfig", - "fullName": "google.cloud.retail.v2beta.GenerativeQuestionService.UpdateGenerativeQuestionsFeatureConfig", - "service": { - "shortName": "GenerativeQuestionService", - "fullName": "google.cloud.retail.v2beta.GenerativeQuestionService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_GenerativeQuestionService_GetGenerativeQuestionsFeatureConfig_async", - "title": "AnalyticsService getGenerativeQuestionsFeatureConfig Sample", - "origin": "API_DEFINITION", - "description": " Manages overal generative question feature state -- enables toggling feature on and off.", - "canonical": true, - "file": "generative_question_service.get_generative_questions_feature_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetGenerativeQuestionsFeatureConfig", - "fullName": "google.cloud.retail.v2beta.GenerativeQuestionService.GetGenerativeQuestionsFeatureConfig", - "async": true, - "parameters": [ - { - "name": "catalog", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2beta.GenerativeQuestionsFeatureConfig", - "client": { - "shortName": "GenerativeQuestionServiceClient", - "fullName": "google.cloud.retail.v2beta.GenerativeQuestionServiceClient" - }, - "method": { - "shortName": "GetGenerativeQuestionsFeatureConfig", - "fullName": "google.cloud.retail.v2beta.GenerativeQuestionService.GetGenerativeQuestionsFeatureConfig", - "service": { - "shortName": "GenerativeQuestionService", - "fullName": "google.cloud.retail.v2beta.GenerativeQuestionService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_GenerativeQuestionService_ListGenerativeQuestionConfigs_async", - "title": "AnalyticsService listGenerativeQuestionConfigs Sample", - "origin": "API_DEFINITION", - "description": " Returns all questions for a given catalog.", - "canonical": true, - "file": "generative_question_service.list_generative_question_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListGenerativeQuestionConfigs", - "fullName": "google.cloud.retail.v2beta.GenerativeQuestionService.ListGenerativeQuestionConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2beta.ListGenerativeQuestionConfigsResponse", - "client": { - "shortName": "GenerativeQuestionServiceClient", - "fullName": "google.cloud.retail.v2beta.GenerativeQuestionServiceClient" - }, - "method": { - "shortName": "ListGenerativeQuestionConfigs", - "fullName": "google.cloud.retail.v2beta.GenerativeQuestionService.ListGenerativeQuestionConfigs", - "service": { - "shortName": "GenerativeQuestionService", - "fullName": "google.cloud.retail.v2beta.GenerativeQuestionService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_GenerativeQuestionService_UpdateGenerativeQuestionConfig_async", - "title": "AnalyticsService updateGenerativeQuestionConfig Sample", - "origin": "API_DEFINITION", - "description": " Allows management of individual questions.", - "canonical": true, - "file": "generative_question_service.update_generative_question_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateGenerativeQuestionConfig", - "fullName": "google.cloud.retail.v2beta.GenerativeQuestionService.UpdateGenerativeQuestionConfig", - "async": true, - "parameters": [ - { - "name": "generative_question_config", - "type": ".google.cloud.retail.v2beta.GenerativeQuestionConfig" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.retail.v2beta.GenerativeQuestionConfig", - "client": { - "shortName": "GenerativeQuestionServiceClient", - "fullName": "google.cloud.retail.v2beta.GenerativeQuestionServiceClient" - }, - "method": { - "shortName": "UpdateGenerativeQuestionConfig", - "fullName": "google.cloud.retail.v2beta.GenerativeQuestionService.UpdateGenerativeQuestionConfig", - "service": { - "shortName": "GenerativeQuestionService", - "fullName": "google.cloud.retail.v2beta.GenerativeQuestionService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_GenerativeQuestionService_BatchUpdateGenerativeQuestionConfigs_async", - "title": "AnalyticsService batchUpdateGenerativeQuestionConfigs Sample", - "origin": "API_DEFINITION", - "description": " Allows management of multiple questions.", - "canonical": true, - "file": "generative_question_service.batch_update_generative_question_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchUpdateGenerativeQuestionConfigs", - "fullName": "google.cloud.retail.v2beta.GenerativeQuestionService.BatchUpdateGenerativeQuestionConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.retail.v2beta.BatchUpdateGenerativeQuestionConfigsResponse", - "client": { - "shortName": "GenerativeQuestionServiceClient", - "fullName": "google.cloud.retail.v2beta.GenerativeQuestionServiceClient" - }, - "method": { - "shortName": "BatchUpdateGenerativeQuestionConfigs", - "fullName": "google.cloud.retail.v2beta.GenerativeQuestionService.BatchUpdateGenerativeQuestionConfigs", - "service": { - "shortName": "GenerativeQuestionService", - "fullName": "google.cloud.retail.v2beta.GenerativeQuestionService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_ModelService_CreateModel_async", - "title": "AnalyticsService createModel Sample", - "origin": "API_DEFINITION", - "description": " Creates a new model.", - "canonical": true, - "file": "model_service.create_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateModel", - "fullName": "google.cloud.retail.v2beta.ModelService.CreateModel", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "model", - "type": ".google.cloud.retail.v2beta.Model" - }, - { - "name": "dry_run", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.retail.v2beta.ModelServiceClient" - }, - "method": { - "shortName": "CreateModel", - "fullName": "google.cloud.retail.v2beta.ModelService.CreateModel", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.retail.v2beta.ModelService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_ModelService_GetModel_async", - "title": "AnalyticsService getModel Sample", - "origin": "API_DEFINITION", - "description": " Gets a model.", - "canonical": true, - "file": "model_service.get_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetModel", - "fullName": "google.cloud.retail.v2beta.ModelService.GetModel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2beta.Model", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.retail.v2beta.ModelServiceClient" - }, - "method": { - "shortName": "GetModel", - "fullName": "google.cloud.retail.v2beta.ModelService.GetModel", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.retail.v2beta.ModelService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_ModelService_PauseModel_async", - "title": "AnalyticsService pauseModel Sample", - "origin": "API_DEFINITION", - "description": " Pauses the training of an existing model.", - "canonical": true, - "file": "model_service.pause_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PauseModel", - "fullName": "google.cloud.retail.v2beta.ModelService.PauseModel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2beta.Model", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.retail.v2beta.ModelServiceClient" - }, - "method": { - "shortName": "PauseModel", - "fullName": "google.cloud.retail.v2beta.ModelService.PauseModel", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.retail.v2beta.ModelService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_ModelService_ResumeModel_async", - "title": "AnalyticsService resumeModel Sample", - "origin": "API_DEFINITION", - "description": " Resumes the training of an existing model.", - "canonical": true, - "file": "model_service.resume_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResumeModel", - "fullName": "google.cloud.retail.v2beta.ModelService.ResumeModel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2beta.Model", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.retail.v2beta.ModelServiceClient" - }, - "method": { - "shortName": "ResumeModel", - "fullName": "google.cloud.retail.v2beta.ModelService.ResumeModel", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.retail.v2beta.ModelService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_ModelService_DeleteModel_async", - "title": "AnalyticsService deleteModel Sample", - "origin": "API_DEFINITION", - "description": " Deletes an existing model.", - "canonical": true, - "file": "model_service.delete_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteModel", - "fullName": "google.cloud.retail.v2beta.ModelService.DeleteModel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.retail.v2beta.ModelServiceClient" - }, - "method": { - "shortName": "DeleteModel", - "fullName": "google.cloud.retail.v2beta.ModelService.DeleteModel", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.retail.v2beta.ModelService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_ModelService_ListModels_async", - "title": "AnalyticsService listModels Sample", - "origin": "API_DEFINITION", - "description": " Lists all the models linked to this event store.", - "canonical": true, - "file": "model_service.list_models.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListModels", - "fullName": "google.cloud.retail.v2beta.ModelService.ListModels", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2beta.ListModelsResponse", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.retail.v2beta.ModelServiceClient" - }, - "method": { - "shortName": "ListModels", - "fullName": "google.cloud.retail.v2beta.ModelService.ListModels", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.retail.v2beta.ModelService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_ModelService_UpdateModel_async", - "title": "AnalyticsService updateModel Sample", - "origin": "API_DEFINITION", - "description": " Update of model metadata. Only fields that currently can be updated are: `filtering_option` and `periodic_tuning_state`. If other values are provided, this API method ignores them.", - "canonical": true, - "file": "model_service.update_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateModel", - "fullName": "google.cloud.retail.v2beta.ModelService.UpdateModel", - "async": true, - "parameters": [ - { - "name": "model", - "type": ".google.cloud.retail.v2beta.Model" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.retail.v2beta.Model", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.retail.v2beta.ModelServiceClient" - }, - "method": { - "shortName": "UpdateModel", - "fullName": "google.cloud.retail.v2beta.ModelService.UpdateModel", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.retail.v2beta.ModelService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_ModelService_TuneModel_async", - "title": "AnalyticsService tuneModel Sample", - "origin": "API_DEFINITION", - "description": " Tunes an existing model.", - "canonical": true, - "file": "model_service.tune_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TuneModel", - "fullName": "google.cloud.retail.v2beta.ModelService.TuneModel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ModelServiceClient", - "fullName": "google.cloud.retail.v2beta.ModelServiceClient" - }, - "method": { - "shortName": "TuneModel", - "fullName": "google.cloud.retail.v2beta.ModelService.TuneModel", - "service": { - "shortName": "ModelService", - "fullName": "google.cloud.retail.v2beta.ModelService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_PredictionService_Predict_async", - "title": "AnalyticsService predict Sample", - "origin": "API_DEFINITION", - "description": " Makes a recommendation prediction.", - "canonical": true, - "file": "prediction_service.predict.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 179, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Predict", - "fullName": "google.cloud.retail.v2beta.PredictionService.Predict", - "async": true, - "parameters": [ - { - "name": "placement", - "type": "TYPE_STRING" - }, - { - "name": "user_event", - "type": ".google.cloud.retail.v2beta.UserEvent" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "params", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "labels", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.retail.v2beta.PredictResponse", - "client": { - "shortName": "PredictionServiceClient", - "fullName": "google.cloud.retail.v2beta.PredictionServiceClient" - }, - "method": { - "shortName": "Predict", - "fullName": "google.cloud.retail.v2beta.PredictionService.Predict", - "service": { - "shortName": "PredictionService", - "fullName": "google.cloud.retail.v2beta.PredictionService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_ProductService_CreateProduct_async", - "title": "AnalyticsService createProduct Sample", - "origin": "API_DEFINITION", - "description": " Creates a [Product][google.cloud.retail.v2beta.Product].", - "canonical": true, - "file": "product_service.create_product.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateProduct", - "fullName": "google.cloud.retail.v2beta.ProductService.CreateProduct", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "product", - "type": ".google.cloud.retail.v2beta.Product" - }, - { - "name": "product_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2beta.Product", - "client": { - "shortName": "ProductServiceClient", - "fullName": "google.cloud.retail.v2beta.ProductServiceClient" - }, - "method": { - "shortName": "CreateProduct", - "fullName": "google.cloud.retail.v2beta.ProductService.CreateProduct", - "service": { - "shortName": "ProductService", - "fullName": "google.cloud.retail.v2beta.ProductService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_ProductService_GetProduct_async", - "title": "AnalyticsService getProduct Sample", - "origin": "API_DEFINITION", - "description": " Gets a [Product][google.cloud.retail.v2beta.Product].", - "canonical": true, - "file": "product_service.get_product.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetProduct", - "fullName": "google.cloud.retail.v2beta.ProductService.GetProduct", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2beta.Product", - "client": { - "shortName": "ProductServiceClient", - "fullName": "google.cloud.retail.v2beta.ProductServiceClient" - }, - "method": { - "shortName": "GetProduct", - "fullName": "google.cloud.retail.v2beta.ProductService.GetProduct", - "service": { - "shortName": "ProductService", - "fullName": "google.cloud.retail.v2beta.ProductService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_ProductService_ListProducts_async", - "title": "AnalyticsService listProducts Sample", - "origin": "API_DEFINITION", - "description": " Gets a list of [Product][google.cloud.retail.v2beta.Product]s.", - "canonical": true, - "file": "product_service.list_products.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 127, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListProducts", - "fullName": "google.cloud.retail.v2beta.ProductService.ListProducts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.retail.v2beta.ListProductsResponse", - "client": { - "shortName": "ProductServiceClient", - "fullName": "google.cloud.retail.v2beta.ProductServiceClient" - }, - "method": { - "shortName": "ListProducts", - "fullName": "google.cloud.retail.v2beta.ProductService.ListProducts", - "service": { - "shortName": "ProductService", - "fullName": "google.cloud.retail.v2beta.ProductService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_ProductService_UpdateProduct_async", - "title": "AnalyticsService updateProduct Sample", - "origin": "API_DEFINITION", - "description": " Updates a [Product][google.cloud.retail.v2beta.Product].", - "canonical": true, - "file": "product_service.update_product.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateProduct", - "fullName": "google.cloud.retail.v2beta.ProductService.UpdateProduct", - "async": true, - "parameters": [ - { - "name": "product", - "type": ".google.cloud.retail.v2beta.Product" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.retail.v2beta.Product", - "client": { - "shortName": "ProductServiceClient", - "fullName": "google.cloud.retail.v2beta.ProductServiceClient" - }, - "method": { - "shortName": "UpdateProduct", - "fullName": "google.cloud.retail.v2beta.ProductService.UpdateProduct", - "service": { - "shortName": "ProductService", - "fullName": "google.cloud.retail.v2beta.ProductService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_ProductService_DeleteProduct_async", - "title": "AnalyticsService deleteProduct Sample", - "origin": "API_DEFINITION", - "description": " Deletes a [Product][google.cloud.retail.v2beta.Product].", - "canonical": true, - "file": "product_service.delete_product.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteProduct", - "fullName": "google.cloud.retail.v2beta.ProductService.DeleteProduct", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ProductServiceClient", - "fullName": "google.cloud.retail.v2beta.ProductServiceClient" - }, - "method": { - "shortName": "DeleteProduct", - "fullName": "google.cloud.retail.v2beta.ProductService.DeleteProduct", - "service": { - "shortName": "ProductService", - "fullName": "google.cloud.retail.v2beta.ProductService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_ProductService_PurgeProducts_async", - "title": "AnalyticsService purgeProducts Sample", - "origin": "API_DEFINITION", - "description": " Permanently deletes all selected [Product][google.cloud.retail.v2beta.Product]s under a branch. This process is asynchronous. If the request is valid, the removal will be enqueued and processed offline. Depending on the number of [Product][google.cloud.retail.v2beta.Product]s, this operation could take hours to complete. Before the operation completes, some [Product][google.cloud.retail.v2beta.Product]s may still be returned by [ProductService.GetProduct][google.cloud.retail.v2beta.ProductService.GetProduct] or [ProductService.ListProducts][google.cloud.retail.v2beta.ProductService.ListProducts]. Depending on the number of [Product][google.cloud.retail.v2beta.Product]s, this operation could take hours to complete. To get a sample of [Product][google.cloud.retail.v2beta.Product]s that would be deleted, set [PurgeProductsRequest.force][google.cloud.retail.v2beta.PurgeProductsRequest.force] to false.", - "canonical": true, - "file": "product_service.purge_products.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 96, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PurgeProducts", - "fullName": "google.cloud.retail.v2beta.ProductService.PurgeProducts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ProductServiceClient", - "fullName": "google.cloud.retail.v2beta.ProductServiceClient" - }, - "method": { - "shortName": "PurgeProducts", - "fullName": "google.cloud.retail.v2beta.ProductService.PurgeProducts", - "service": { - "shortName": "ProductService", - "fullName": "google.cloud.retail.v2beta.ProductService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_ProductService_ImportProducts_async", - "title": "AnalyticsService importProducts Sample", - "origin": "API_DEFINITION", - "description": " Bulk import of multiple [Product][google.cloud.retail.v2beta.Product]s. Request processing may be synchronous. Non-existing items are created. Note that it is possible for a subset of the [Product][google.cloud.retail.v2beta.Product]s to be successfully updated.", - "canonical": true, - "file": "product_service.import_products.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 95, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportProducts", - "fullName": "google.cloud.retail.v2beta.ProductService.ImportProducts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "input_config", - "type": ".google.cloud.retail.v2beta.ProductInputConfig" - }, - { - "name": "errors_config", - "type": ".google.cloud.retail.v2beta.ImportErrorsConfig" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "reconciliation_mode", - "type": ".google.cloud.retail.v2beta.ImportProductsRequest.ReconciliationMode" - }, - { - "name": "notification_pubsub_topic", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ProductServiceClient", - "fullName": "google.cloud.retail.v2beta.ProductServiceClient" - }, - "method": { - "shortName": "ImportProducts", - "fullName": "google.cloud.retail.v2beta.ProductService.ImportProducts", - "service": { - "shortName": "ProductService", - "fullName": "google.cloud.retail.v2beta.ProductService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_ProductService_ExportProducts_async", - "title": "AnalyticsService exportProducts Sample", - "origin": "API_DEFINITION", - "description": " Exports multiple [Product][google.cloud.retail.v2beta.Product]s.", - "canonical": true, - "file": "product_service.export_products.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 101, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportProducts", - "fullName": "google.cloud.retail.v2beta.ProductService.ExportProducts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "output_config", - "type": ".google.cloud.retail.v2beta.OutputConfig" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ProductServiceClient", - "fullName": "google.cloud.retail.v2beta.ProductServiceClient" - }, - "method": { - "shortName": "ExportProducts", - "fullName": "google.cloud.retail.v2beta.ProductService.ExportProducts", - "service": { - "shortName": "ProductService", - "fullName": "google.cloud.retail.v2beta.ProductService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_ProductService_SetInventory_async", - "title": "AnalyticsService setInventory Sample", - "origin": "API_DEFINITION", - "description": " Updates inventory information for a [Product][google.cloud.retail.v2beta.Product] while respecting the last update timestamps of each inventory field. This process is asynchronous and does not require the [Product][google.cloud.retail.v2beta.Product] to exist before updating fulfillment information. If the request is valid, the update is enqueued and processed downstream. As a consequence, when a response is returned, updates are not immediately manifested in the [Product][google.cloud.retail.v2beta.Product] queried by [ProductService.GetProduct][google.cloud.retail.v2beta.ProductService.GetProduct] or [ProductService.ListProducts][google.cloud.retail.v2beta.ProductService.ListProducts]. When inventory is updated with [ProductService.CreateProduct][google.cloud.retail.v2beta.ProductService.CreateProduct] and [ProductService.UpdateProduct][google.cloud.retail.v2beta.ProductService.UpdateProduct], the specified inventory field value(s) overwrite any existing value(s) while ignoring the last update time for this field. Furthermore, the last update times for the specified inventory fields are overwritten by the times of the [ProductService.CreateProduct][google.cloud.retail.v2beta.ProductService.CreateProduct] or [ProductService.UpdateProduct][google.cloud.retail.v2beta.ProductService.UpdateProduct] request. If no inventory fields are set in [CreateProductRequest.product][google.cloud.retail.v2beta.CreateProductRequest.product], then any pre-existing inventory information for this product is used. If no inventory fields are set in [SetInventoryRequest.set_mask][google.cloud.retail.v2beta.SetInventoryRequest.set_mask], then any existing inventory information is preserved. Pre-existing inventory information can only be updated with [ProductService.SetInventory][google.cloud.retail.v2beta.ProductService.SetInventory], [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.AddFulfillmentPlaces], and [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.RemoveFulfillmentPlaces]. The returned [Operation][google.longrunning.Operation]s is obsolete after one day, and the [GetOperation][google.longrunning.Operations.GetOperation] API returns `NOT_FOUND` afterwards. If conflicting updates are issued, the [Operation][google.longrunning.Operation]s associated with the stale updates are not marked as [done][google.longrunning.Operation.done] until they are obsolete.", - "canonical": true, - "file": "product_service.set_inventory.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 123, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetInventory", - "fullName": "google.cloud.retail.v2beta.ProductService.SetInventory", - "async": true, - "parameters": [ - { - "name": "inventory", - "type": ".google.cloud.retail.v2beta.Product" - }, - { - "name": "set_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "set_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ProductServiceClient", - "fullName": "google.cloud.retail.v2beta.ProductServiceClient" - }, - "method": { - "shortName": "SetInventory", - "fullName": "google.cloud.retail.v2beta.ProductService.SetInventory", - "service": { - "shortName": "ProductService", - "fullName": "google.cloud.retail.v2beta.ProductService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_ProductService_AddFulfillmentPlaces_async", - "title": "AnalyticsService addFulfillmentPlaces Sample", - "origin": "API_DEFINITION", - "description": " We recommend that you use the [ProductService.AddLocalInventories][google.cloud.retail.v2beta.ProductService.AddLocalInventories] method instead of the [ProductService.AddFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.AddFulfillmentPlaces] method. [ProductService.AddLocalInventories][google.cloud.retail.v2beta.ProductService.AddLocalInventories] achieves the same results but provides more fine-grained control over ingesting local inventory data. Incrementally adds place IDs to [Product.fulfillment_info.place_ids][google.cloud.retail.v2beta.FulfillmentInfo.place_ids]. This process is asynchronous and does not require the [Product][google.cloud.retail.v2beta.Product] to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the added place IDs are not immediately manifested in the [Product][google.cloud.retail.v2beta.Product] queried by [ProductService.GetProduct][google.cloud.retail.v2beta.ProductService.GetProduct] or [ProductService.ListProducts][google.cloud.retail.v2beta.ProductService.ListProducts]. The returned [Operation][google.longrunning.Operation]s will be obsolete after 1 day, and [GetOperation][google.longrunning.Operations.GetOperation] API will return NOT_FOUND afterwards. If conflicting updates are issued, the [Operation][google.longrunning.Operation]s associated with the stale updates will not be marked as [done][google.longrunning.Operation.done] until being obsolete.", - "canonical": true, - "file": "product_service.add_fulfillment_places.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 111, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddFulfillmentPlaces", - "fullName": "google.cloud.retail.v2beta.ProductService.AddFulfillmentPlaces", - "async": true, - "parameters": [ - { - "name": "product", - "type": "TYPE_STRING" - }, - { - "name": "type", - "type": "TYPE_STRING" - }, - { - "name": "place_ids", - "type": "TYPE_STRING[]" - }, - { - "name": "add_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ProductServiceClient", - "fullName": "google.cloud.retail.v2beta.ProductServiceClient" - }, - "method": { - "shortName": "AddFulfillmentPlaces", - "fullName": "google.cloud.retail.v2beta.ProductService.AddFulfillmentPlaces", - "service": { - "shortName": "ProductService", - "fullName": "google.cloud.retail.v2beta.ProductService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_ProductService_RemoveFulfillmentPlaces_async", - "title": "AnalyticsService removeFulfillmentPlaces Sample", - "origin": "API_DEFINITION", - "description": " We recommend that you use the [ProductService.RemoveLocalInventories][google.cloud.retail.v2beta.ProductService.RemoveLocalInventories] method instead of the [ProductService.RemoveFulfillmentPlaces][google.cloud.retail.v2beta.ProductService.RemoveFulfillmentPlaces] method. [ProductService.RemoveLocalInventories][google.cloud.retail.v2beta.ProductService.RemoveLocalInventories] achieves the same results but provides more fine-grained control over ingesting local inventory data. Incrementally removes place IDs from a [Product.fulfillment_info.place_ids][google.cloud.retail.v2beta.FulfillmentInfo.place_ids]. This process is asynchronous and does not require the [Product][google.cloud.retail.v2beta.Product] to exist before updating fulfillment information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, the removed place IDs are not immediately manifested in the [Product][google.cloud.retail.v2beta.Product] queried by [ProductService.GetProduct][google.cloud.retail.v2beta.ProductService.GetProduct] or [ProductService.ListProducts][google.cloud.retail.v2beta.ProductService.ListProducts]. The returned [Operation][google.longrunning.Operation]s will be obsolete after 1 day, and [GetOperation][google.longrunning.Operations.GetOperation] API will return NOT_FOUND afterwards. If conflicting updates are issued, the [Operation][google.longrunning.Operation]s associated with the stale updates will not be marked as [done][google.longrunning.Operation.done] until being obsolete.", - "canonical": true, - "file": "product_service.remove_fulfillment_places.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 107, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveFulfillmentPlaces", - "fullName": "google.cloud.retail.v2beta.ProductService.RemoveFulfillmentPlaces", - "async": true, - "parameters": [ - { - "name": "product", - "type": "TYPE_STRING" - }, - { - "name": "type", - "type": "TYPE_STRING" - }, - { - "name": "place_ids", - "type": "TYPE_STRING[]" - }, - { - "name": "remove_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ProductServiceClient", - "fullName": "google.cloud.retail.v2beta.ProductServiceClient" - }, - "method": { - "shortName": "RemoveFulfillmentPlaces", - "fullName": "google.cloud.retail.v2beta.ProductService.RemoveFulfillmentPlaces", - "service": { - "shortName": "ProductService", - "fullName": "google.cloud.retail.v2beta.ProductService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_ProductService_AddLocalInventories_async", - "title": "AnalyticsService addLocalInventories Sample", - "origin": "API_DEFINITION", - "description": " Updates local inventory information for a [Product][google.cloud.retail.v2beta.Product] at a list of places, while respecting the last update timestamps of each inventory field. This process is asynchronous and does not require the [Product][google.cloud.retail.v2beta.Product] to exist before updating inventory information. If the request is valid, the update will be enqueued and processed downstream. As a consequence, when a response is returned, updates are not immediately manifested in the [Product][google.cloud.retail.v2beta.Product] queried by [ProductService.GetProduct][google.cloud.retail.v2beta.ProductService.GetProduct] or [ProductService.ListProducts][google.cloud.retail.v2beta.ProductService.ListProducts]. Local inventory information can only be modified using this method. [ProductService.CreateProduct][google.cloud.retail.v2beta.ProductService.CreateProduct] and [ProductService.UpdateProduct][google.cloud.retail.v2beta.ProductService.UpdateProduct] has no effect on local inventories. The returned [Operation][google.longrunning.Operation]s will be obsolete after 1 day, and [GetOperation][google.longrunning.Operations.GetOperation] API will return NOT_FOUND afterwards. If conflicting updates are issued, the [Operation][google.longrunning.Operation]s associated with the stale updates will not be marked as [done][google.longrunning.Operation.done] until being obsolete.", - "canonical": true, - "file": "product_service.add_local_inventories.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 95, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddLocalInventories", - "fullName": "google.cloud.retail.v2beta.ProductService.AddLocalInventories", - "async": true, - "parameters": [ - { - "name": "product", - "type": "TYPE_STRING" - }, - { - "name": "local_inventories", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "add_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "add_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ProductServiceClient", - "fullName": "google.cloud.retail.v2beta.ProductServiceClient" - }, - "method": { - "shortName": "AddLocalInventories", - "fullName": "google.cloud.retail.v2beta.ProductService.AddLocalInventories", - "service": { - "shortName": "ProductService", - "fullName": "google.cloud.retail.v2beta.ProductService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_ProductService_RemoveLocalInventories_async", - "title": "AnalyticsService removeLocalInventories Sample", - "origin": "API_DEFINITION", - "description": " Remove local inventory information for a [Product][google.cloud.retail.v2beta.Product] at a list of places at a removal timestamp. This process is asynchronous. If the request is valid, the removal will be enqueued and processed downstream. As a consequence, when a response is returned, removals are not immediately manifested in the [Product][google.cloud.retail.v2beta.Product] queried by [ProductService.GetProduct][google.cloud.retail.v2beta.ProductService.GetProduct] or [ProductService.ListProducts][google.cloud.retail.v2beta.ProductService.ListProducts]. Local inventory information can only be removed using this method. [ProductService.CreateProduct][google.cloud.retail.v2beta.ProductService.CreateProduct] and [ProductService.UpdateProduct][google.cloud.retail.v2beta.ProductService.UpdateProduct] has no effect on local inventories. The returned [Operation][google.longrunning.Operation]s will be obsolete after 1 day, and [GetOperation][google.longrunning.Operations.GetOperation] API will return NOT_FOUND afterwards. If conflicting updates are issued, the [Operation][google.longrunning.Operation]s associated with the stale updates will not be marked as [done][google.longrunning.Operation.done] until being obsolete.", - "canonical": true, - "file": "product_service.remove_local_inventories.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveLocalInventories", - "fullName": "google.cloud.retail.v2beta.ProductService.RemoveLocalInventories", - "async": true, - "parameters": [ - { - "name": "product", - "type": "TYPE_STRING" - }, - { - "name": "place_ids", - "type": "TYPE_STRING[]" - }, - { - "name": "remove_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ProductServiceClient", - "fullName": "google.cloud.retail.v2beta.ProductServiceClient" - }, - "method": { - "shortName": "RemoveLocalInventories", - "fullName": "google.cloud.retail.v2beta.ProductService.RemoveLocalInventories", - "service": { - "shortName": "ProductService", - "fullName": "google.cloud.retail.v2beta.ProductService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_ProjectService_GetAlertConfig_async", - "title": "AnalyticsService getAlertConfig Sample", - "origin": "API_DEFINITION", - "description": " Get the [AlertConfig][google.cloud.retail.v2beta.AlertConfig] of the requested project.", - "canonical": true, - "file": "project_service.get_alert_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAlertConfig", - "fullName": "google.cloud.retail.v2beta.ProjectService.GetAlertConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2beta.AlertConfig", - "client": { - "shortName": "ProjectServiceClient", - "fullName": "google.cloud.retail.v2beta.ProjectServiceClient" - }, - "method": { - "shortName": "GetAlertConfig", - "fullName": "google.cloud.retail.v2beta.ProjectService.GetAlertConfig", - "service": { - "shortName": "ProjectService", - "fullName": "google.cloud.retail.v2beta.ProjectService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_ProjectService_UpdateAlertConfig_async", - "title": "AnalyticsService updateAlertConfig Sample", - "origin": "API_DEFINITION", - "description": " Update the alert config of the requested project.", - "canonical": true, - "file": "project_service.update_alert_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAlertConfig", - "fullName": "google.cloud.retail.v2beta.ProjectService.UpdateAlertConfig", - "async": true, - "parameters": [ - { - "name": "alert_config", - "type": ".google.cloud.retail.v2beta.AlertConfig" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.retail.v2beta.AlertConfig", - "client": { - "shortName": "ProjectServiceClient", - "fullName": "google.cloud.retail.v2beta.ProjectServiceClient" - }, - "method": { - "shortName": "UpdateAlertConfig", - "fullName": "google.cloud.retail.v2beta.ProjectService.UpdateAlertConfig", - "service": { - "shortName": "ProjectService", - "fullName": "google.cloud.retail.v2beta.ProjectService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_SearchService_Search_async", - "title": "AnalyticsService search Sample", - "origin": "API_DEFINITION", - "description": " Performs a search. This feature is only available for users who have Retail Search enabled. Enable Retail Search on Cloud Console before using this feature.", - "canonical": true, - "file": "search_service.search.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 359, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Search", - "fullName": "google.cloud.retail.v2beta.SearchService.Search", - "async": true, - "parameters": [ - { - "name": "placement", - "type": "TYPE_STRING" - }, - { - "name": "branch", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": "TYPE_STRING" - }, - { - "name": "visitor_id", - "type": "TYPE_STRING" - }, - { - "name": "user_info", - "type": ".google.cloud.retail.v2beta.UserInfo" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "offset", - "type": "TYPE_INT32" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "canonical_filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "facet_specs", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "dynamic_facet_spec", - "type": ".google.cloud.retail.v2beta.SearchRequest.DynamicFacetSpec" - }, - { - "name": "boost_spec", - "type": ".google.cloud.retail.v2beta.SearchRequest.BoostSpec" - }, - { - "name": "query_expansion_spec", - "type": ".google.cloud.retail.v2beta.SearchRequest.QueryExpansionSpec" - }, - { - "name": "variant_rollup_keys", - "type": "TYPE_STRING[]" - }, - { - "name": "page_categories", - "type": "TYPE_STRING[]" - }, - { - "name": "search_mode", - "type": ".google.cloud.retail.v2beta.SearchRequest.SearchMode" - }, - { - "name": "personalization_spec", - "type": ".google.cloud.retail.v2beta.SearchRequest.PersonalizationSpec" - }, - { - "name": "labels", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "spell_correction_spec", - "type": ".google.cloud.retail.v2beta.SearchRequest.SpellCorrectionSpec" - }, - { - "name": "entity", - "type": "TYPE_STRING" - }, - { - "name": "conversational_search_spec", - "type": ".google.cloud.retail.v2beta.SearchRequest.ConversationalSearchSpec" - }, - { - "name": "tile_navigation_spec", - "type": ".google.cloud.retail.v2beta.SearchRequest.TileNavigationSpec" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "region_code", - "type": "TYPE_STRING" - }, - { - "name": "place_id", - "type": "TYPE_STRING" - }, - { - "name": "user_attributes", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.retail.v2beta.SearchResponse", - "client": { - "shortName": "SearchServiceClient", - "fullName": "google.cloud.retail.v2beta.SearchServiceClient" - }, - "method": { - "shortName": "Search", - "fullName": "google.cloud.retail.v2beta.SearchService.Search", - "service": { - "shortName": "SearchService", - "fullName": "google.cloud.retail.v2beta.SearchService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_ServingConfigService_CreateServingConfig_async", - "title": "AnalyticsService createServingConfig Sample", - "origin": "API_DEFINITION", - "description": " Creates a ServingConfig. A maximum of 100 [ServingConfig][google.cloud.retail.v2beta.ServingConfig]s are allowed in a [Catalog][google.cloud.retail.v2beta.Catalog], otherwise a FAILED_PRECONDITION error is returned.", - "canonical": true, - "file": "serving_config_service.create_serving_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateServingConfig", - "fullName": "google.cloud.retail.v2beta.ServingConfigService.CreateServingConfig", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "serving_config", - "type": ".google.cloud.retail.v2beta.ServingConfig" - }, - { - "name": "serving_config_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2beta.ServingConfig", - "client": { - "shortName": "ServingConfigServiceClient", - "fullName": "google.cloud.retail.v2beta.ServingConfigServiceClient" - }, - "method": { - "shortName": "CreateServingConfig", - "fullName": "google.cloud.retail.v2beta.ServingConfigService.CreateServingConfig", - "service": { - "shortName": "ServingConfigService", - "fullName": "google.cloud.retail.v2beta.ServingConfigService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_ServingConfigService_DeleteServingConfig_async", - "title": "AnalyticsService deleteServingConfig Sample", - "origin": "API_DEFINITION", - "description": " Deletes a ServingConfig. Returns a NotFound error if the ServingConfig does not exist.", - "canonical": true, - "file": "serving_config_service.delete_serving_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteServingConfig", - "fullName": "google.cloud.retail.v2beta.ServingConfigService.DeleteServingConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ServingConfigServiceClient", - "fullName": "google.cloud.retail.v2beta.ServingConfigServiceClient" - }, - "method": { - "shortName": "DeleteServingConfig", - "fullName": "google.cloud.retail.v2beta.ServingConfigService.DeleteServingConfig", - "service": { - "shortName": "ServingConfigService", - "fullName": "google.cloud.retail.v2beta.ServingConfigService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_ServingConfigService_UpdateServingConfig_async", - "title": "AnalyticsService updateServingConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates a ServingConfig.", - "canonical": true, - "file": "serving_config_service.update_serving_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateServingConfig", - "fullName": "google.cloud.retail.v2beta.ServingConfigService.UpdateServingConfig", - "async": true, - "parameters": [ - { - "name": "serving_config", - "type": ".google.cloud.retail.v2beta.ServingConfig" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.retail.v2beta.ServingConfig", - "client": { - "shortName": "ServingConfigServiceClient", - "fullName": "google.cloud.retail.v2beta.ServingConfigServiceClient" - }, - "method": { - "shortName": "UpdateServingConfig", - "fullName": "google.cloud.retail.v2beta.ServingConfigService.UpdateServingConfig", - "service": { - "shortName": "ServingConfigService", - "fullName": "google.cloud.retail.v2beta.ServingConfigService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_ServingConfigService_GetServingConfig_async", - "title": "AnalyticsService getServingConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets a ServingConfig. Returns a NotFound error if the ServingConfig does not exist.", - "canonical": true, - "file": "serving_config_service.get_serving_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetServingConfig", - "fullName": "google.cloud.retail.v2beta.ServingConfigService.GetServingConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2beta.ServingConfig", - "client": { - "shortName": "ServingConfigServiceClient", - "fullName": "google.cloud.retail.v2beta.ServingConfigServiceClient" - }, - "method": { - "shortName": "GetServingConfig", - "fullName": "google.cloud.retail.v2beta.ServingConfigService.GetServingConfig", - "service": { - "shortName": "ServingConfigService", - "fullName": "google.cloud.retail.v2beta.ServingConfigService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_ServingConfigService_ListServingConfigs_async", - "title": "AnalyticsService listServingConfigs Sample", - "origin": "API_DEFINITION", - "description": " Lists all ServingConfigs linked to this catalog.", - "canonical": true, - "file": "serving_config_service.list_serving_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListServingConfigs", - "fullName": "google.cloud.retail.v2beta.ServingConfigService.ListServingConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2beta.ListServingConfigsResponse", - "client": { - "shortName": "ServingConfigServiceClient", - "fullName": "google.cloud.retail.v2beta.ServingConfigServiceClient" - }, - "method": { - "shortName": "ListServingConfigs", - "fullName": "google.cloud.retail.v2beta.ServingConfigService.ListServingConfigs", - "service": { - "shortName": "ServingConfigService", - "fullName": "google.cloud.retail.v2beta.ServingConfigService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_ServingConfigService_AddControl_async", - "title": "AnalyticsService addControl Sample", - "origin": "API_DEFINITION", - "description": " Enables a Control on the specified ServingConfig. The control is added in the last position of the list of controls it belongs to (e.g. if it's a facet spec control it will be applied in the last position of servingConfig.facetSpecIds) Returns a ALREADY_EXISTS error if the control has already been applied. Returns a FAILED_PRECONDITION error if the addition could exceed maximum number of control allowed for that type of control.", - "canonical": true, - "file": "serving_config_service.add_control.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddControl", - "fullName": "google.cloud.retail.v2beta.ServingConfigService.AddControl", - "async": true, - "parameters": [ - { - "name": "serving_config", - "type": "TYPE_STRING" - }, - { - "name": "control_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2beta.ServingConfig", - "client": { - "shortName": "ServingConfigServiceClient", - "fullName": "google.cloud.retail.v2beta.ServingConfigServiceClient" - }, - "method": { - "shortName": "AddControl", - "fullName": "google.cloud.retail.v2beta.ServingConfigService.AddControl", - "service": { - "shortName": "ServingConfigService", - "fullName": "google.cloud.retail.v2beta.ServingConfigService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_ServingConfigService_RemoveControl_async", - "title": "AnalyticsService removeControl Sample", - "origin": "API_DEFINITION", - "description": " Disables a Control on the specified ServingConfig. The control is removed from the ServingConfig. Returns a NOT_FOUND error if the Control is not enabled for the ServingConfig.", - "canonical": true, - "file": "serving_config_service.remove_control.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveControl", - "fullName": "google.cloud.retail.v2beta.ServingConfigService.RemoveControl", - "async": true, - "parameters": [ - { - "name": "serving_config", - "type": "TYPE_STRING" - }, - { - "name": "control_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.retail.v2beta.ServingConfig", - "client": { - "shortName": "ServingConfigServiceClient", - "fullName": "google.cloud.retail.v2beta.ServingConfigServiceClient" - }, - "method": { - "shortName": "RemoveControl", - "fullName": "google.cloud.retail.v2beta.ServingConfigService.RemoveControl", - "service": { - "shortName": "ServingConfigService", - "fullName": "google.cloud.retail.v2beta.ServingConfigService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_UserEventService_WriteUserEvent_async", - "title": "AnalyticsService writeUserEvent Sample", - "origin": "API_DEFINITION", - "description": " Writes a single user event.", - "canonical": true, - "file": "user_event_service.write_user_event.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "WriteUserEvent", - "fullName": "google.cloud.retail.v2beta.UserEventService.WriteUserEvent", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "user_event", - "type": ".google.cloud.retail.v2beta.UserEvent" - }, - { - "name": "write_async", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.retail.v2beta.UserEvent", - "client": { - "shortName": "UserEventServiceClient", - "fullName": "google.cloud.retail.v2beta.UserEventServiceClient" - }, - "method": { - "shortName": "WriteUserEvent", - "fullName": "google.cloud.retail.v2beta.UserEventService.WriteUserEvent", - "service": { - "shortName": "UserEventService", - "fullName": "google.cloud.retail.v2beta.UserEventService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_UserEventService_CollectUserEvent_async", - "title": "AnalyticsService collectUserEvent Sample", - "origin": "API_DEFINITION", - "description": " Writes a single user event from the browser. For larger user event payload over 16 KB, the POST method should be used instead, otherwise a 400 Bad Request error is returned. This method is used only by the Retail API JavaScript pixel and Google Tag Manager. Users should not call this method directly.", - "canonical": true, - "file": "user_event_service.collect_user_event.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CollectUserEvent", - "fullName": "google.cloud.retail.v2beta.UserEventService.CollectUserEvent", - "async": true, - "parameters": [ - { - "name": "prebuilt_rule", - "type": "TYPE_STRING" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "user_event", - "type": "TYPE_STRING" - }, - { - "name": "uri", - "type": "TYPE_STRING" - }, - { - "name": "ets", - "type": "TYPE_INT64" - }, - { - "name": "raw_json", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.api.HttpBody", - "client": { - "shortName": "UserEventServiceClient", - "fullName": "google.cloud.retail.v2beta.UserEventServiceClient" - }, - "method": { - "shortName": "CollectUserEvent", - "fullName": "google.cloud.retail.v2beta.UserEventService.CollectUserEvent", - "service": { - "shortName": "UserEventService", - "fullName": "google.cloud.retail.v2beta.UserEventService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_UserEventService_PurgeUserEvents_async", - "title": "AnalyticsService purgeUserEvents Sample", - "origin": "API_DEFINITION", - "description": " Deletes permanently all user events specified by the filter provided. Depending on the number of events specified by the filter, this operation could take hours or days to complete. To test a filter, use the list command first.", - "canonical": true, - "file": "user_event_service.purge_user_events.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PurgeUserEvents", - "fullName": "google.cloud.retail.v2beta.UserEventService.PurgeUserEvents", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "UserEventServiceClient", - "fullName": "google.cloud.retail.v2beta.UserEventServiceClient" - }, - "method": { - "shortName": "PurgeUserEvents", - "fullName": "google.cloud.retail.v2beta.UserEventService.PurgeUserEvents", - "service": { - "shortName": "UserEventService", - "fullName": "google.cloud.retail.v2beta.UserEventService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_UserEventService_ImportUserEvents_async", - "title": "AnalyticsService importUserEvents Sample", - "origin": "API_DEFINITION", - "description": " Bulk import of User events. Request processing might be synchronous. Events that already exist are skipped. Use this method for backfilling historical user events. `Operation.response` is of type `ImportResponse`. Note that it is possible for a subset of the items to be successfully inserted. `Operation.metadata` is of type `ImportMetadata`.", - "canonical": true, - "file": "user_event_service.import_user_events.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportUserEvents", - "fullName": "google.cloud.retail.v2beta.UserEventService.ImportUserEvents", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "input_config", - "type": ".google.cloud.retail.v2beta.UserEventInputConfig" - }, - { - "name": "errors_config", - "type": ".google.cloud.retail.v2beta.ImportErrorsConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "UserEventServiceClient", - "fullName": "google.cloud.retail.v2beta.UserEventServiceClient" - }, - "method": { - "shortName": "ImportUserEvents", - "fullName": "google.cloud.retail.v2beta.UserEventService.ImportUserEvents", - "service": { - "shortName": "UserEventService", - "fullName": "google.cloud.retail.v2beta.UserEventService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_UserEventService_ExportUserEvents_async", - "title": "AnalyticsService exportUserEvents Sample", - "origin": "API_DEFINITION", - "description": " Exports user events. `Operation.response` is of type `ExportResponse`. `Operation.metadata` is of type `ExportMetadata`.", - "canonical": true, - "file": "user_event_service.export_user_events.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 93, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportUserEvents", - "fullName": "google.cloud.retail.v2beta.UserEventService.ExportUserEvents", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "output_config", - "type": ".google.cloud.retail.v2beta.OutputConfig" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "UserEventServiceClient", - "fullName": "google.cloud.retail.v2beta.UserEventServiceClient" - }, - "method": { - "shortName": "ExportUserEvents", - "fullName": "google.cloud.retail.v2beta.UserEventService.ExportUserEvents", - "service": { - "shortName": "UserEventService", - "fullName": "google.cloud.retail.v2beta.UserEventService" - } - } - } - }, - { - "regionTag": "retail_v2beta_generated_UserEventService_RejoinUserEvents_async", - "title": "AnalyticsService rejoinUserEvents Sample", - "origin": "API_DEFINITION", - "description": " Starts a user-event rejoin operation with latest product catalog. Events are not annotated with detailed product information for products that are missing from the catalog when the user event is ingested. These events are stored as unjoined events with limited usage on training and serving. You can use this method to start a join operation on specified events with the latest version of product catalog. You can also use this method to correct events joined with the wrong product catalog. A rejoin operation can take hours or days to complete.", - "canonical": true, - "file": "user_event_service.rejoin_user_events.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RejoinUserEvents", - "fullName": "google.cloud.retail.v2beta.UserEventService.RejoinUserEvents", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "user_event_rejoin_scope", - "type": ".google.cloud.retail.v2beta.RejoinUserEventsRequest.UserEventRejoinScope" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "UserEventServiceClient", - "fullName": "google.cloud.retail.v2beta.UserEventServiceClient" - }, - "method": { - "shortName": "RejoinUserEvents", - "fullName": "google.cloud.retail.v2beta.UserEventService.RejoinUserEvents", - "service": { - "shortName": "UserEventService", - "fullName": "google.cloud.retail.v2beta.UserEventService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-run/samples/generated/v2/snippet_metadata_google.cloud.run.v2.json b/packages/google-cloud-run/samples/generated/v2/snippet_metadata_google.cloud.run.v2.json deleted file mode 100644 index 4ff250fc8b57..000000000000 --- a/packages/google-cloud-run/samples/generated/v2/snippet_metadata_google.cloud.run.v2.json +++ /dev/null @@ -1,1995 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-run", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.run.v2", - "version": "v2" - } - ] - }, - "snippets": [ - { - "regionTag": "run_v2_generated_Builds_SubmitBuild_async", - "title": "Builds submitBuild Sample", - "origin": "API_DEFINITION", - "description": " Submits a build in a given project.", - "canonical": true, - "file": "builds.submit_build.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 106, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SubmitBuild", - "fullName": "google.cloud.run.v2.Builds.SubmitBuild", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "storage_source", - "type": ".google.cloud.run.v2.StorageSource" - }, - { - "name": "image_uri", - "type": "TYPE_STRING" - }, - { - "name": "buildpack_build", - "type": ".google.cloud.run.v2.SubmitBuildRequest.BuildpacksBuild" - }, - { - "name": "docker_build", - "type": ".google.cloud.run.v2.SubmitBuildRequest.DockerBuild" - }, - { - "name": "service_account", - "type": "TYPE_STRING" - }, - { - "name": "worker_pool", - "type": "TYPE_STRING" - }, - { - "name": "tags", - "type": "TYPE_STRING[]" - }, - { - "name": "machine_type", - "type": "TYPE_STRING" - }, - { - "name": "release_track", - "type": ".google.api.LaunchStage" - }, - { - "name": "client", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.run.v2.SubmitBuildResponse", - "client": { - "shortName": "BuildsClient", - "fullName": "google.cloud.run.v2.BuildsClient" - }, - "method": { - "shortName": "SubmitBuild", - "fullName": "google.cloud.run.v2.Builds.SubmitBuild", - "service": { - "shortName": "Builds", - "fullName": "google.cloud.run.v2.Builds" - } - } - } - }, - { - "regionTag": "run_v2_generated_Executions_GetExecution_async", - "title": "Builds getExecution Sample", - "origin": "API_DEFINITION", - "description": " Gets information about an Execution.", - "canonical": true, - "file": "executions.get_execution.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetExecution", - "fullName": "google.cloud.run.v2.Executions.GetExecution", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.run.v2.Execution", - "client": { - "shortName": "ExecutionsClient", - "fullName": "google.cloud.run.v2.ExecutionsClient" - }, - "method": { - "shortName": "GetExecution", - "fullName": "google.cloud.run.v2.Executions.GetExecution", - "service": { - "shortName": "Executions", - "fullName": "google.cloud.run.v2.Executions" - } - } - } - }, - { - "regionTag": "run_v2_generated_Executions_ListExecutions_async", - "title": "Builds listExecutions Sample", - "origin": "API_DEFINITION", - "description": " Lists Executions from a Job. Results are sorted by creation time, descending.", - "canonical": true, - "file": "executions.list_executions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListExecutions", - "fullName": "google.cloud.run.v2.Executions.ListExecutions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "show_deleted", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.run.v2.ListExecutionsResponse", - "client": { - "shortName": "ExecutionsClient", - "fullName": "google.cloud.run.v2.ExecutionsClient" - }, - "method": { - "shortName": "ListExecutions", - "fullName": "google.cloud.run.v2.Executions.ListExecutions", - "service": { - "shortName": "Executions", - "fullName": "google.cloud.run.v2.Executions" - } - } - } - }, - { - "regionTag": "run_v2_generated_Executions_DeleteExecution_async", - "title": "Builds deleteExecution Sample", - "origin": "API_DEFINITION", - "description": " Deletes an Execution.", - "canonical": true, - "file": "executions.delete_execution.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteExecution", - "fullName": "google.cloud.run.v2.Executions.DeleteExecution", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ExecutionsClient", - "fullName": "google.cloud.run.v2.ExecutionsClient" - }, - "method": { - "shortName": "DeleteExecution", - "fullName": "google.cloud.run.v2.Executions.DeleteExecution", - "service": { - "shortName": "Executions", - "fullName": "google.cloud.run.v2.Executions" - } - } - } - }, - { - "regionTag": "run_v2_generated_Executions_CancelExecution_async", - "title": "Builds cancelExecution Sample", - "origin": "API_DEFINITION", - "description": " Cancels an Execution.", - "canonical": true, - "file": "executions.cancel_execution.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CancelExecution", - "fullName": "google.cloud.run.v2.Executions.CancelExecution", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ExecutionsClient", - "fullName": "google.cloud.run.v2.ExecutionsClient" - }, - "method": { - "shortName": "CancelExecution", - "fullName": "google.cloud.run.v2.Executions.CancelExecution", - "service": { - "shortName": "Executions", - "fullName": "google.cloud.run.v2.Executions" - } - } - } - }, - { - "regionTag": "run_v2_generated_Instances_CreateInstance_async", - "title": "Builds createInstance Sample", - "origin": "API_DEFINITION", - "description": " Creates an Instance.", - "canonical": true, - "file": "instances.create_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateInstance", - "fullName": "google.cloud.run.v2.Instances.CreateInstance", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "instance", - "type": ".google.cloud.run.v2.Instance" - }, - { - "name": "instance_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.run.v2.InstancesClient" - }, - "method": { - "shortName": "CreateInstance", - "fullName": "google.cloud.run.v2.Instances.CreateInstance", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.run.v2.Instances" - } - } - } - }, - { - "regionTag": "run_v2_generated_Instances_DeleteInstance_async", - "title": "Builds deleteInstance Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Instance", - "canonical": true, - "file": "instances.delete_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteInstance", - "fullName": "google.cloud.run.v2.Instances.DeleteInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.run.v2.InstancesClient" - }, - "method": { - "shortName": "DeleteInstance", - "fullName": "google.cloud.run.v2.Instances.DeleteInstance", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.run.v2.Instances" - } - } - } - }, - { - "regionTag": "run_v2_generated_Instances_GetInstance_async", - "title": "Builds getInstance Sample", - "origin": "API_DEFINITION", - "description": " Gets a Instance", - "canonical": true, - "file": "instances.get_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 52, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetInstance", - "fullName": "google.cloud.run.v2.Instances.GetInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.run.v2.Instance", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.run.v2.InstancesClient" - }, - "method": { - "shortName": "GetInstance", - "fullName": "google.cloud.run.v2.Instances.GetInstance", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.run.v2.Instances" - } - } - } - }, - { - "regionTag": "run_v2_generated_Instances_ListInstances_async", - "title": "Builds listInstances Sample", - "origin": "API_DEFINITION", - "description": " Lists Instances. Results are sorted by creation time, descending.", - "canonical": true, - "file": "instances.list_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListInstances", - "fullName": "google.cloud.run.v2.Instances.ListInstances", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "show_deleted", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.run.v2.ListInstancesResponse", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.run.v2.InstancesClient" - }, - "method": { - "shortName": "ListInstances", - "fullName": "google.cloud.run.v2.Instances.ListInstances", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.run.v2.Instances" - } - } - } - }, - { - "regionTag": "run_v2_generated_Instances_StopInstance_async", - "title": "Builds stopInstance Sample", - "origin": "API_DEFINITION", - "description": " Stops an Instance.", - "canonical": true, - "file": "instances.stop_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StopInstance", - "fullName": "google.cloud.run.v2.Instances.StopInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.run.v2.InstancesClient" - }, - "method": { - "shortName": "StopInstance", - "fullName": "google.cloud.run.v2.Instances.StopInstance", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.run.v2.Instances" - } - } - } - }, - { - "regionTag": "run_v2_generated_Instances_StartInstance_async", - "title": "Builds startInstance Sample", - "origin": "API_DEFINITION", - "description": " Starts an Instance.", - "canonical": true, - "file": "instances.start_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StartInstance", - "fullName": "google.cloud.run.v2.Instances.StartInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "InstancesClient", - "fullName": "google.cloud.run.v2.InstancesClient" - }, - "method": { - "shortName": "StartInstance", - "fullName": "google.cloud.run.v2.Instances.StartInstance", - "service": { - "shortName": "Instances", - "fullName": "google.cloud.run.v2.Instances" - } - } - } - }, - { - "regionTag": "run_v2_generated_Jobs_CreateJob_async", - "title": "Builds createJob Sample", - "origin": "API_DEFINITION", - "description": " Creates a Job.", - "canonical": true, - "file": "jobs.create_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateJob", - "fullName": "google.cloud.run.v2.Jobs.CreateJob", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "job", - "type": ".google.cloud.run.v2.Job" - }, - { - "name": "job_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "JobsClient", - "fullName": "google.cloud.run.v2.JobsClient" - }, - "method": { - "shortName": "CreateJob", - "fullName": "google.cloud.run.v2.Jobs.CreateJob", - "service": { - "shortName": "Jobs", - "fullName": "google.cloud.run.v2.Jobs" - } - } - } - }, - { - "regionTag": "run_v2_generated_Jobs_GetJob_async", - "title": "Builds getJob Sample", - "origin": "API_DEFINITION", - "description": " Gets information about a Job.", - "canonical": true, - "file": "jobs.get_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetJob", - "fullName": "google.cloud.run.v2.Jobs.GetJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.run.v2.Job", - "client": { - "shortName": "JobsClient", - "fullName": "google.cloud.run.v2.JobsClient" - }, - "method": { - "shortName": "GetJob", - "fullName": "google.cloud.run.v2.Jobs.GetJob", - "service": { - "shortName": "Jobs", - "fullName": "google.cloud.run.v2.Jobs" - } - } - } - }, - { - "regionTag": "run_v2_generated_Jobs_ListJobs_async", - "title": "Builds listJobs Sample", - "origin": "API_DEFINITION", - "description": " Lists Jobs. Results are sorted by creation time, descending.", - "canonical": true, - "file": "jobs.list_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListJobs", - "fullName": "google.cloud.run.v2.Jobs.ListJobs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "show_deleted", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.run.v2.ListJobsResponse", - "client": { - "shortName": "JobsClient", - "fullName": "google.cloud.run.v2.JobsClient" - }, - "method": { - "shortName": "ListJobs", - "fullName": "google.cloud.run.v2.Jobs.ListJobs", - "service": { - "shortName": "Jobs", - "fullName": "google.cloud.run.v2.Jobs" - } - } - } - }, - { - "regionTag": "run_v2_generated_Jobs_UpdateJob_async", - "title": "Builds updateJob Sample", - "origin": "API_DEFINITION", - "description": " Updates a Job.", - "canonical": true, - "file": "jobs.update_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateJob", - "fullName": "google.cloud.run.v2.Jobs.UpdateJob", - "async": true, - "parameters": [ - { - "name": "job", - "type": ".google.cloud.run.v2.Job" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "JobsClient", - "fullName": "google.cloud.run.v2.JobsClient" - }, - "method": { - "shortName": "UpdateJob", - "fullName": "google.cloud.run.v2.Jobs.UpdateJob", - "service": { - "shortName": "Jobs", - "fullName": "google.cloud.run.v2.Jobs" - } - } - } - }, - { - "regionTag": "run_v2_generated_Jobs_DeleteJob_async", - "title": "Builds deleteJob Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Job.", - "canonical": true, - "file": "jobs.delete_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteJob", - "fullName": "google.cloud.run.v2.Jobs.DeleteJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "JobsClient", - "fullName": "google.cloud.run.v2.JobsClient" - }, - "method": { - "shortName": "DeleteJob", - "fullName": "google.cloud.run.v2.Jobs.DeleteJob", - "service": { - "shortName": "Jobs", - "fullName": "google.cloud.run.v2.Jobs" - } - } - } - }, - { - "regionTag": "run_v2_generated_Jobs_RunJob_async", - "title": "Builds runJob Sample", - "origin": "API_DEFINITION", - "description": " Triggers creation of a new Execution of this Job.", - "canonical": true, - "file": "jobs.run_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RunJob", - "fullName": "google.cloud.run.v2.Jobs.RunJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - }, - { - "name": "overrides", - "type": ".google.cloud.run.v2.RunJobRequest.Overrides" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "JobsClient", - "fullName": "google.cloud.run.v2.JobsClient" - }, - "method": { - "shortName": "RunJob", - "fullName": "google.cloud.run.v2.Jobs.RunJob", - "service": { - "shortName": "Jobs", - "fullName": "google.cloud.run.v2.Jobs" - } - } - } - }, - { - "regionTag": "run_v2_generated_Jobs_GetIamPolicy_async", - "title": "Builds getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the IAM Access Control policy currently in effect for the given Job. This result does not include any inherited policies.", - "canonical": true, - "file": "jobs.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.run.v2.Jobs.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": ".google.iam.v1.GetPolicyOptions" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "JobsClient", - "fullName": "google.cloud.run.v2.JobsClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.run.v2.Jobs.GetIamPolicy", - "service": { - "shortName": "Jobs", - "fullName": "google.cloud.run.v2.Jobs" - } - } - } - }, - { - "regionTag": "run_v2_generated_Jobs_SetIamPolicy_async", - "title": "Builds setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the IAM Access control policy for the specified Job. Overwrites any existing policy.", - "canonical": true, - "file": "jobs.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.run.v2.Jobs.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.iam.v1.Policy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "JobsClient", - "fullName": "google.cloud.run.v2.JobsClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.run.v2.Jobs.SetIamPolicy", - "service": { - "shortName": "Jobs", - "fullName": "google.cloud.run.v2.Jobs" - } - } - } - }, - { - "regionTag": "run_v2_generated_Jobs_TestIamPermissions_async", - "title": "Builds testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified Project. There are no permissions required for making this API call.", - "canonical": true, - "file": "jobs.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.run.v2.Jobs.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "permissions", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.iam.v1.TestIamPermissionsResponse", - "client": { - "shortName": "JobsClient", - "fullName": "google.cloud.run.v2.JobsClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.run.v2.Jobs.TestIamPermissions", - "service": { - "shortName": "Jobs", - "fullName": "google.cloud.run.v2.Jobs" - } - } - } - }, - { - "regionTag": "run_v2_generated_Revisions_GetRevision_async", - "title": "Builds getRevision Sample", - "origin": "API_DEFINITION", - "description": " Gets information about a Revision.", - "canonical": true, - "file": "revisions.get_revision.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRevision", - "fullName": "google.cloud.run.v2.Revisions.GetRevision", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.run.v2.Revision", - "client": { - "shortName": "RevisionsClient", - "fullName": "google.cloud.run.v2.RevisionsClient" - }, - "method": { - "shortName": "GetRevision", - "fullName": "google.cloud.run.v2.Revisions.GetRevision", - "service": { - "shortName": "Revisions", - "fullName": "google.cloud.run.v2.Revisions" - } - } - } - }, - { - "regionTag": "run_v2_generated_Revisions_ListRevisions_async", - "title": "Builds listRevisions Sample", - "origin": "API_DEFINITION", - "description": " Lists Revisions from a given Service, or from a given location. Results are sorted by creation time, descending.", - "canonical": true, - "file": "revisions.list_revisions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRevisions", - "fullName": "google.cloud.run.v2.Revisions.ListRevisions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "show_deleted", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.run.v2.ListRevisionsResponse", - "client": { - "shortName": "RevisionsClient", - "fullName": "google.cloud.run.v2.RevisionsClient" - }, - "method": { - "shortName": "ListRevisions", - "fullName": "google.cloud.run.v2.Revisions.ListRevisions", - "service": { - "shortName": "Revisions", - "fullName": "google.cloud.run.v2.Revisions" - } - } - } - }, - { - "regionTag": "run_v2_generated_Revisions_DeleteRevision_async", - "title": "Builds deleteRevision Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Revision.", - "canonical": true, - "file": "revisions.delete_revision.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteRevision", - "fullName": "google.cloud.run.v2.Revisions.DeleteRevision", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "RevisionsClient", - "fullName": "google.cloud.run.v2.RevisionsClient" - }, - "method": { - "shortName": "DeleteRevision", - "fullName": "google.cloud.run.v2.Revisions.DeleteRevision", - "service": { - "shortName": "Revisions", - "fullName": "google.cloud.run.v2.Revisions" - } - } - } - }, - { - "regionTag": "run_v2_generated_Services_CreateService_async", - "title": "Builds createService Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Service in a given project and location.", - "canonical": true, - "file": "services.create_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateService", - "fullName": "google.cloud.run.v2.Services.CreateService", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "service", - "type": ".google.cloud.run.v2.Service" - }, - { - "name": "service_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ServicesClient", - "fullName": "google.cloud.run.v2.ServicesClient" - }, - "method": { - "shortName": "CreateService", - "fullName": "google.cloud.run.v2.Services.CreateService", - "service": { - "shortName": "Services", - "fullName": "google.cloud.run.v2.Services" - } - } - } - }, - { - "regionTag": "run_v2_generated_Services_GetService_async", - "title": "Builds getService Sample", - "origin": "API_DEFINITION", - "description": " Gets information about a Service.", - "canonical": true, - "file": "services.get_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetService", - "fullName": "google.cloud.run.v2.Services.GetService", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.run.v2.Service", - "client": { - "shortName": "ServicesClient", - "fullName": "google.cloud.run.v2.ServicesClient" - }, - "method": { - "shortName": "GetService", - "fullName": "google.cloud.run.v2.Services.GetService", - "service": { - "shortName": "Services", - "fullName": "google.cloud.run.v2.Services" - } - } - } - }, - { - "regionTag": "run_v2_generated_Services_ListServices_async", - "title": "Builds listServices Sample", - "origin": "API_DEFINITION", - "description": " Lists Services. Results are sorted by creation time, descending.", - "canonical": true, - "file": "services.list_services.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListServices", - "fullName": "google.cloud.run.v2.Services.ListServices", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "show_deleted", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.run.v2.ListServicesResponse", - "client": { - "shortName": "ServicesClient", - "fullName": "google.cloud.run.v2.ServicesClient" - }, - "method": { - "shortName": "ListServices", - "fullName": "google.cloud.run.v2.Services.ListServices", - "service": { - "shortName": "Services", - "fullName": "google.cloud.run.v2.Services" - } - } - } - }, - { - "regionTag": "run_v2_generated_Services_UpdateService_async", - "title": "Builds updateService Sample", - "origin": "API_DEFINITION", - "description": " Updates a Service.", - "canonical": true, - "file": "services.update_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateService", - "fullName": "google.cloud.run.v2.Services.UpdateService", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "service", - "type": ".google.cloud.run.v2.Service" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ServicesClient", - "fullName": "google.cloud.run.v2.ServicesClient" - }, - "method": { - "shortName": "UpdateService", - "fullName": "google.cloud.run.v2.Services.UpdateService", - "service": { - "shortName": "Services", - "fullName": "google.cloud.run.v2.Services" - } - } - } - }, - { - "regionTag": "run_v2_generated_Services_DeleteService_async", - "title": "Builds deleteService Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Service. This will cause the Service to stop serving traffic and will delete all revisions.", - "canonical": true, - "file": "services.delete_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteService", - "fullName": "google.cloud.run.v2.Services.DeleteService", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ServicesClient", - "fullName": "google.cloud.run.v2.ServicesClient" - }, - "method": { - "shortName": "DeleteService", - "fullName": "google.cloud.run.v2.Services.DeleteService", - "service": { - "shortName": "Services", - "fullName": "google.cloud.run.v2.Services" - } - } - } - }, - { - "regionTag": "run_v2_generated_Services_GetIamPolicy_async", - "title": "Builds getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the IAM Access Control policy currently in effect for the given Cloud Run Service. This result does not include any inherited policies.", - "canonical": true, - "file": "services.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.run.v2.Services.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": ".google.iam.v1.GetPolicyOptions" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "ServicesClient", - "fullName": "google.cloud.run.v2.ServicesClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.run.v2.Services.GetIamPolicy", - "service": { - "shortName": "Services", - "fullName": "google.cloud.run.v2.Services" - } - } - } - }, - { - "regionTag": "run_v2_generated_Services_SetIamPolicy_async", - "title": "Builds setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the IAM Access control policy for the specified Service. Overwrites any existing policy.", - "canonical": true, - "file": "services.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.run.v2.Services.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.iam.v1.Policy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "ServicesClient", - "fullName": "google.cloud.run.v2.ServicesClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.run.v2.Services.SetIamPolicy", - "service": { - "shortName": "Services", - "fullName": "google.cloud.run.v2.Services" - } - } - } - }, - { - "regionTag": "run_v2_generated_Services_TestIamPermissions_async", - "title": "Builds testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified Project. There are no permissions required for making this API call.", - "canonical": true, - "file": "services.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.run.v2.Services.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "permissions", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.iam.v1.TestIamPermissionsResponse", - "client": { - "shortName": "ServicesClient", - "fullName": "google.cloud.run.v2.ServicesClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.run.v2.Services.TestIamPermissions", - "service": { - "shortName": "Services", - "fullName": "google.cloud.run.v2.Services" - } - } - } - }, - { - "regionTag": "run_v2_generated_Tasks_GetTask_async", - "title": "Builds getTask Sample", - "origin": "API_DEFINITION", - "description": " Gets information about a Task.", - "canonical": true, - "file": "tasks.get_task.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTask", - "fullName": "google.cloud.run.v2.Tasks.GetTask", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.run.v2.Task", - "client": { - "shortName": "TasksClient", - "fullName": "google.cloud.run.v2.TasksClient" - }, - "method": { - "shortName": "GetTask", - "fullName": "google.cloud.run.v2.Tasks.GetTask", - "service": { - "shortName": "Tasks", - "fullName": "google.cloud.run.v2.Tasks" - } - } - } - }, - { - "regionTag": "run_v2_generated_Tasks_ListTasks_async", - "title": "Builds listTasks Sample", - "origin": "API_DEFINITION", - "description": " Lists Tasks from an Execution of a Job.", - "canonical": true, - "file": "tasks.list_tasks.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTasks", - "fullName": "google.cloud.run.v2.Tasks.ListTasks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "show_deleted", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.run.v2.ListTasksResponse", - "client": { - "shortName": "TasksClient", - "fullName": "google.cloud.run.v2.TasksClient" - }, - "method": { - "shortName": "ListTasks", - "fullName": "google.cloud.run.v2.Tasks.ListTasks", - "service": { - "shortName": "Tasks", - "fullName": "google.cloud.run.v2.Tasks" - } - } - } - }, - { - "regionTag": "run_v2_generated_WorkerPools_CreateWorkerPool_async", - "title": "Builds createWorkerPool Sample", - "origin": "API_DEFINITION", - "description": " Creates a new WorkerPool in a given project and location.", - "canonical": true, - "file": "worker_pools.create_worker_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateWorkerPool", - "fullName": "google.cloud.run.v2.WorkerPools.CreateWorkerPool", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "worker_pool", - "type": ".google.cloud.run.v2.WorkerPool" - }, - { - "name": "worker_pool_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkerPoolsClient", - "fullName": "google.cloud.run.v2.WorkerPoolsClient" - }, - "method": { - "shortName": "CreateWorkerPool", - "fullName": "google.cloud.run.v2.WorkerPools.CreateWorkerPool", - "service": { - "shortName": "WorkerPools", - "fullName": "google.cloud.run.v2.WorkerPools" - } - } - } - }, - { - "regionTag": "run_v2_generated_WorkerPools_GetWorkerPool_async", - "title": "Builds getWorkerPool Sample", - "origin": "API_DEFINITION", - "description": " Gets information about a WorkerPool.", - "canonical": true, - "file": "worker_pools.get_worker_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetWorkerPool", - "fullName": "google.cloud.run.v2.WorkerPools.GetWorkerPool", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.run.v2.WorkerPool", - "client": { - "shortName": "WorkerPoolsClient", - "fullName": "google.cloud.run.v2.WorkerPoolsClient" - }, - "method": { - "shortName": "GetWorkerPool", - "fullName": "google.cloud.run.v2.WorkerPools.GetWorkerPool", - "service": { - "shortName": "WorkerPools", - "fullName": "google.cloud.run.v2.WorkerPools" - } - } - } - }, - { - "regionTag": "run_v2_generated_WorkerPools_ListWorkerPools_async", - "title": "Builds listWorkerPools Sample", - "origin": "API_DEFINITION", - "description": " Lists WorkerPools. Results are sorted by creation time, descending.", - "canonical": true, - "file": "worker_pools.list_worker_pools.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListWorkerPools", - "fullName": "google.cloud.run.v2.WorkerPools.ListWorkerPools", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "show_deleted", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.run.v2.ListWorkerPoolsResponse", - "client": { - "shortName": "WorkerPoolsClient", - "fullName": "google.cloud.run.v2.WorkerPoolsClient" - }, - "method": { - "shortName": "ListWorkerPools", - "fullName": "google.cloud.run.v2.WorkerPools.ListWorkerPools", - "service": { - "shortName": "WorkerPools", - "fullName": "google.cloud.run.v2.WorkerPools" - } - } - } - }, - { - "regionTag": "run_v2_generated_WorkerPools_UpdateWorkerPool_async", - "title": "Builds updateWorkerPool Sample", - "origin": "API_DEFINITION", - "description": " Updates a WorkerPool.", - "canonical": true, - "file": "worker_pools.update_worker_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateWorkerPool", - "fullName": "google.cloud.run.v2.WorkerPools.UpdateWorkerPool", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "worker_pool", - "type": ".google.cloud.run.v2.WorkerPool" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - }, - { - "name": "force_new_revision", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkerPoolsClient", - "fullName": "google.cloud.run.v2.WorkerPoolsClient" - }, - "method": { - "shortName": "UpdateWorkerPool", - "fullName": "google.cloud.run.v2.WorkerPools.UpdateWorkerPool", - "service": { - "shortName": "WorkerPools", - "fullName": "google.cloud.run.v2.WorkerPools" - } - } - } - }, - { - "regionTag": "run_v2_generated_WorkerPools_DeleteWorkerPool_async", - "title": "Builds deleteWorkerPool Sample", - "origin": "API_DEFINITION", - "description": " Deletes a WorkerPool.", - "canonical": true, - "file": "worker_pools.delete_worker_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteWorkerPool", - "fullName": "google.cloud.run.v2.WorkerPools.DeleteWorkerPool", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkerPoolsClient", - "fullName": "google.cloud.run.v2.WorkerPoolsClient" - }, - "method": { - "shortName": "DeleteWorkerPool", - "fullName": "google.cloud.run.v2.WorkerPools.DeleteWorkerPool", - "service": { - "shortName": "WorkerPools", - "fullName": "google.cloud.run.v2.WorkerPools" - } - } - } - }, - { - "regionTag": "run_v2_generated_WorkerPools_GetIamPolicy_async", - "title": "Builds getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the IAM Access Control policy currently in effect for the given Cloud Run WorkerPool. This result does not include any inherited policies.", - "canonical": true, - "file": "worker_pools.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.run.v2.WorkerPools.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": ".google.iam.v1.GetPolicyOptions" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "WorkerPoolsClient", - "fullName": "google.cloud.run.v2.WorkerPoolsClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.run.v2.WorkerPools.GetIamPolicy", - "service": { - "shortName": "WorkerPools", - "fullName": "google.cloud.run.v2.WorkerPools" - } - } - } - }, - { - "regionTag": "run_v2_generated_WorkerPools_SetIamPolicy_async", - "title": "Builds setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the IAM Access control policy for the specified WorkerPool. Overwrites any existing policy.", - "canonical": true, - "file": "worker_pools.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.run.v2.WorkerPools.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.iam.v1.Policy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "WorkerPoolsClient", - "fullName": "google.cloud.run.v2.WorkerPoolsClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.run.v2.WorkerPools.SetIamPolicy", - "service": { - "shortName": "WorkerPools", - "fullName": "google.cloud.run.v2.WorkerPools" - } - } - } - }, - { - "regionTag": "run_v2_generated_WorkerPools_TestIamPermissions_async", - "title": "Builds testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on the specified Project. There are no permissions required for making this API call.", - "canonical": true, - "file": "worker_pools.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.run.v2.WorkerPools.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "permissions", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.iam.v1.TestIamPermissionsResponse", - "client": { - "shortName": "WorkerPoolsClient", - "fullName": "google.cloud.run.v2.WorkerPoolsClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.run.v2.WorkerPools.TestIamPermissions", - "service": { - "shortName": "WorkerPools", - "fullName": "google.cloud.run.v2.WorkerPools" - } - } - } - } - ] -} diff --git a/packages/google-cloud-saasplatform-saasservicemgmt/samples/generated/v1beta1/snippet_metadata_google.cloud.saasplatform.saasservicemgmt.v1beta1.json b/packages/google-cloud-saasplatform-saasservicemgmt/samples/generated/v1beta1/snippet_metadata_google.cloud.saasplatform.saasservicemgmt.v1beta1.json deleted file mode 100644 index f1dc04f3c54a..000000000000 --- a/packages/google-cloud-saasplatform-saasservicemgmt/samples/generated/v1beta1/snippet_metadata_google.cloud.saasplatform.saasservicemgmt.v1beta1.json +++ /dev/null @@ -1,2063 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-saasservicemgmt", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.saasplatform.saasservicemgmt.v1beta1", - "version": "v1beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "saasservicemgmt_v1beta1_generated_SaasDeployments_ListSaas_async", - "title": "SaasDeployments listSaas Sample", - "origin": "API_DEFINITION", - "description": " Retrieve a collection of saas.", - "canonical": true, - "file": "saas_deployments.list_saas.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSaas", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.ListSaas", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse", - "client": { - "shortName": "SaasDeploymentsClient", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient" - }, - "method": { - "shortName": "ListSaas", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.ListSaas", - "service": { - "shortName": "SaasDeployments", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" - } - } - } - }, - { - "regionTag": "saasservicemgmt_v1beta1_generated_SaasDeployments_GetSaas_async", - "title": "SaasDeployments getSaas Sample", - "origin": "API_DEFINITION", - "description": " Retrieve a single saas.", - "canonical": true, - "file": "saas_deployments.get_saas.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSaas", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.GetSaas", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas", - "client": { - "shortName": "SaasDeploymentsClient", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient" - }, - "method": { - "shortName": "GetSaas", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.GetSaas", - "service": { - "shortName": "SaasDeployments", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" - } - } - } - }, - { - "regionTag": "saasservicemgmt_v1beta1_generated_SaasDeployments_CreateSaas_async", - "title": "SaasDeployments createSaas Sample", - "origin": "API_DEFINITION", - "description": " Create a new saas.", - "canonical": true, - "file": "saas_deployments.create_saas.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSaas", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.CreateSaas", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "saas_id", - "type": "TYPE_STRING" - }, - { - "name": "saas", - "type": ".google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas", - "client": { - "shortName": "SaasDeploymentsClient", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient" - }, - "method": { - "shortName": "CreateSaas", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.CreateSaas", - "service": { - "shortName": "SaasDeployments", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" - } - } - } - }, - { - "regionTag": "saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateSaas_async", - "title": "SaasDeployments updateSaas Sample", - "origin": "API_DEFINITION", - "description": " Update a single saas.", - "canonical": true, - "file": "saas_deployments.update_saas.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSaas", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.UpdateSaas", - "async": true, - "parameters": [ - { - "name": "saas", - "type": ".google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas", - "client": { - "shortName": "SaasDeploymentsClient", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient" - }, - "method": { - "shortName": "UpdateSaas", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.UpdateSaas", - "service": { - "shortName": "SaasDeployments", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" - } - } - } - }, - { - "regionTag": "saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteSaas_async", - "title": "SaasDeployments deleteSaas Sample", - "origin": "API_DEFINITION", - "description": " Delete a single saas.", - "canonical": true, - "file": "saas_deployments.delete_saas.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSaas", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.DeleteSaas", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "SaasDeploymentsClient", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient" - }, - "method": { - "shortName": "DeleteSaas", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.DeleteSaas", - "service": { - "shortName": "SaasDeployments", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" - } - } - } - }, - { - "regionTag": "saasservicemgmt_v1beta1_generated_SaasDeployments_ListTenants_async", - "title": "SaasDeployments listTenants Sample", - "origin": "API_DEFINITION", - "description": " Retrieve a collection of tenants.", - "canonical": true, - "file": "saas_deployments.list_tenants.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTenants", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.ListTenants", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse", - "client": { - "shortName": "SaasDeploymentsClient", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient" - }, - "method": { - "shortName": "ListTenants", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.ListTenants", - "service": { - "shortName": "SaasDeployments", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" - } - } - } - }, - { - "regionTag": "saasservicemgmt_v1beta1_generated_SaasDeployments_GetTenant_async", - "title": "SaasDeployments getTenant Sample", - "origin": "API_DEFINITION", - "description": " Retrieve a single tenant.", - "canonical": true, - "file": "saas_deployments.get_tenant.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTenant", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.GetTenant", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant", - "client": { - "shortName": "SaasDeploymentsClient", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient" - }, - "method": { - "shortName": "GetTenant", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.GetTenant", - "service": { - "shortName": "SaasDeployments", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" - } - } - } - }, - { - "regionTag": "saasservicemgmt_v1beta1_generated_SaasDeployments_CreateTenant_async", - "title": "SaasDeployments createTenant Sample", - "origin": "API_DEFINITION", - "description": " Create a new tenant.", - "canonical": true, - "file": "saas_deployments.create_tenant.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTenant", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.CreateTenant", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "tenant_id", - "type": "TYPE_STRING" - }, - { - "name": "tenant", - "type": ".google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant", - "client": { - "shortName": "SaasDeploymentsClient", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient" - }, - "method": { - "shortName": "CreateTenant", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.CreateTenant", - "service": { - "shortName": "SaasDeployments", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" - } - } - } - }, - { - "regionTag": "saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateTenant_async", - "title": "SaasDeployments updateTenant Sample", - "origin": "API_DEFINITION", - "description": " Update a single tenant.", - "canonical": true, - "file": "saas_deployments.update_tenant.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTenant", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.UpdateTenant", - "async": true, - "parameters": [ - { - "name": "tenant", - "type": ".google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant", - "client": { - "shortName": "SaasDeploymentsClient", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient" - }, - "method": { - "shortName": "UpdateTenant", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.UpdateTenant", - "service": { - "shortName": "SaasDeployments", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" - } - } - } - }, - { - "regionTag": "saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteTenant_async", - "title": "SaasDeployments deleteTenant Sample", - "origin": "API_DEFINITION", - "description": " Delete a single tenant.", - "canonical": true, - "file": "saas_deployments.delete_tenant.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTenant", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.DeleteTenant", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "SaasDeploymentsClient", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient" - }, - "method": { - "shortName": "DeleteTenant", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.DeleteTenant", - "service": { - "shortName": "SaasDeployments", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" - } - } - } - }, - { - "regionTag": "saasservicemgmt_v1beta1_generated_SaasDeployments_ListUnitKinds_async", - "title": "SaasDeployments listUnitKinds Sample", - "origin": "API_DEFINITION", - "description": " Retrieve a collection of unit kinds.", - "canonical": true, - "file": "saas_deployments.list_unit_kinds.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListUnitKinds", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.ListUnitKinds", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse", - "client": { - "shortName": "SaasDeploymentsClient", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient" - }, - "method": { - "shortName": "ListUnitKinds", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.ListUnitKinds", - "service": { - "shortName": "SaasDeployments", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" - } - } - } - }, - { - "regionTag": "saasservicemgmt_v1beta1_generated_SaasDeployments_GetUnitKind_async", - "title": "SaasDeployments getUnitKind Sample", - "origin": "API_DEFINITION", - "description": " Retrieve a single unit kind.", - "canonical": true, - "file": "saas_deployments.get_unit_kind.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetUnitKind", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.GetUnitKind", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind", - "client": { - "shortName": "SaasDeploymentsClient", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient" - }, - "method": { - "shortName": "GetUnitKind", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.GetUnitKind", - "service": { - "shortName": "SaasDeployments", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" - } - } - } - }, - { - "regionTag": "saasservicemgmt_v1beta1_generated_SaasDeployments_CreateUnitKind_async", - "title": "SaasDeployments createUnitKind Sample", - "origin": "API_DEFINITION", - "description": " Create a new unit kind.", - "canonical": true, - "file": "saas_deployments.create_unit_kind.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateUnitKind", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.CreateUnitKind", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "unit_kind_id", - "type": "TYPE_STRING" - }, - { - "name": "unit_kind", - "type": ".google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind", - "client": { - "shortName": "SaasDeploymentsClient", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient" - }, - "method": { - "shortName": "CreateUnitKind", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.CreateUnitKind", - "service": { - "shortName": "SaasDeployments", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" - } - } - } - }, - { - "regionTag": "saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateUnitKind_async", - "title": "SaasDeployments updateUnitKind Sample", - "origin": "API_DEFINITION", - "description": " Update a single unit kind.", - "canonical": true, - "file": "saas_deployments.update_unit_kind.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateUnitKind", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.UpdateUnitKind", - "async": true, - "parameters": [ - { - "name": "unit_kind", - "type": ".google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind", - "client": { - "shortName": "SaasDeploymentsClient", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient" - }, - "method": { - "shortName": "UpdateUnitKind", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.UpdateUnitKind", - "service": { - "shortName": "SaasDeployments", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" - } - } - } - }, - { - "regionTag": "saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteUnitKind_async", - "title": "SaasDeployments deleteUnitKind Sample", - "origin": "API_DEFINITION", - "description": " Delete a single unit kind.", - "canonical": true, - "file": "saas_deployments.delete_unit_kind.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteUnitKind", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.DeleteUnitKind", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "SaasDeploymentsClient", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient" - }, - "method": { - "shortName": "DeleteUnitKind", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.DeleteUnitKind", - "service": { - "shortName": "SaasDeployments", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" - } - } - } - }, - { - "regionTag": "saasservicemgmt_v1beta1_generated_SaasDeployments_ListUnits_async", - "title": "SaasDeployments listUnits Sample", - "origin": "API_DEFINITION", - "description": " Retrieve a collection of units.", - "canonical": true, - "file": "saas_deployments.list_units.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListUnits", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.ListUnits", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse", - "client": { - "shortName": "SaasDeploymentsClient", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient" - }, - "method": { - "shortName": "ListUnits", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.ListUnits", - "service": { - "shortName": "SaasDeployments", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" - } - } - } - }, - { - "regionTag": "saasservicemgmt_v1beta1_generated_SaasDeployments_GetUnit_async", - "title": "SaasDeployments getUnit Sample", - "origin": "API_DEFINITION", - "description": " Retrieve a single unit.", - "canonical": true, - "file": "saas_deployments.get_unit.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetUnit", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.GetUnit", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit", - "client": { - "shortName": "SaasDeploymentsClient", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient" - }, - "method": { - "shortName": "GetUnit", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.GetUnit", - "service": { - "shortName": "SaasDeployments", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" - } - } - } - }, - { - "regionTag": "saasservicemgmt_v1beta1_generated_SaasDeployments_CreateUnit_async", - "title": "SaasDeployments createUnit Sample", - "origin": "API_DEFINITION", - "description": " Create a new unit.", - "canonical": true, - "file": "saas_deployments.create_unit.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateUnit", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.CreateUnit", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "unit_id", - "type": "TYPE_STRING" - }, - { - "name": "unit", - "type": ".google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit", - "client": { - "shortName": "SaasDeploymentsClient", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient" - }, - "method": { - "shortName": "CreateUnit", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.CreateUnit", - "service": { - "shortName": "SaasDeployments", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" - } - } - } - }, - { - "regionTag": "saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateUnit_async", - "title": "SaasDeployments updateUnit Sample", - "origin": "API_DEFINITION", - "description": " Update a single unit.", - "canonical": true, - "file": "saas_deployments.update_unit.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateUnit", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.UpdateUnit", - "async": true, - "parameters": [ - { - "name": "unit", - "type": ".google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit", - "client": { - "shortName": "SaasDeploymentsClient", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient" - }, - "method": { - "shortName": "UpdateUnit", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.UpdateUnit", - "service": { - "shortName": "SaasDeployments", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" - } - } - } - }, - { - "regionTag": "saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteUnit_async", - "title": "SaasDeployments deleteUnit Sample", - "origin": "API_DEFINITION", - "description": " Delete a single unit.", - "canonical": true, - "file": "saas_deployments.delete_unit.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteUnit", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.DeleteUnit", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "SaasDeploymentsClient", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient" - }, - "method": { - "shortName": "DeleteUnit", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.DeleteUnit", - "service": { - "shortName": "SaasDeployments", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" - } - } - } - }, - { - "regionTag": "saasservicemgmt_v1beta1_generated_SaasDeployments_ListUnitOperations_async", - "title": "SaasDeployments listUnitOperations Sample", - "origin": "API_DEFINITION", - "description": " Retrieve a collection of unit operations.", - "canonical": true, - "file": "saas_deployments.list_unit_operations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListUnitOperations", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.ListUnitOperations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse", - "client": { - "shortName": "SaasDeploymentsClient", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient" - }, - "method": { - "shortName": "ListUnitOperations", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.ListUnitOperations", - "service": { - "shortName": "SaasDeployments", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" - } - } - } - }, - { - "regionTag": "saasservicemgmt_v1beta1_generated_SaasDeployments_GetUnitOperation_async", - "title": "SaasDeployments getUnitOperation Sample", - "origin": "API_DEFINITION", - "description": " Retrieve a single unit operation.", - "canonical": true, - "file": "saas_deployments.get_unit_operation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetUnitOperation", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.GetUnitOperation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation", - "client": { - "shortName": "SaasDeploymentsClient", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient" - }, - "method": { - "shortName": "GetUnitOperation", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.GetUnitOperation", - "service": { - "shortName": "SaasDeployments", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" - } - } - } - }, - { - "regionTag": "saasservicemgmt_v1beta1_generated_SaasDeployments_CreateUnitOperation_async", - "title": "SaasDeployments createUnitOperation Sample", - "origin": "API_DEFINITION", - "description": " Create a new unit operation.", - "canonical": true, - "file": "saas_deployments.create_unit_operation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateUnitOperation", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.CreateUnitOperation", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "unit_operation_id", - "type": "TYPE_STRING" - }, - { - "name": "unit_operation", - "type": ".google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation", - "client": { - "shortName": "SaasDeploymentsClient", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient" - }, - "method": { - "shortName": "CreateUnitOperation", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.CreateUnitOperation", - "service": { - "shortName": "SaasDeployments", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" - } - } - } - }, - { - "regionTag": "saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateUnitOperation_async", - "title": "SaasDeployments updateUnitOperation Sample", - "origin": "API_DEFINITION", - "description": " Update a single unit operation.", - "canonical": true, - "file": "saas_deployments.update_unit_operation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateUnitOperation", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.UpdateUnitOperation", - "async": true, - "parameters": [ - { - "name": "unit_operation", - "type": ".google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation", - "client": { - "shortName": "SaasDeploymentsClient", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient" - }, - "method": { - "shortName": "UpdateUnitOperation", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.UpdateUnitOperation", - "service": { - "shortName": "SaasDeployments", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" - } - } - } - }, - { - "regionTag": "saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteUnitOperation_async", - "title": "SaasDeployments deleteUnitOperation Sample", - "origin": "API_DEFINITION", - "description": " Delete a single unit operation.", - "canonical": true, - "file": "saas_deployments.delete_unit_operation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteUnitOperation", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.DeleteUnitOperation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "SaasDeploymentsClient", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient" - }, - "method": { - "shortName": "DeleteUnitOperation", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.DeleteUnitOperation", - "service": { - "shortName": "SaasDeployments", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" - } - } - } - }, - { - "regionTag": "saasservicemgmt_v1beta1_generated_SaasDeployments_ListReleases_async", - "title": "SaasDeployments listReleases Sample", - "origin": "API_DEFINITION", - "description": " Retrieve a collection of releases.", - "canonical": true, - "file": "saas_deployments.list_releases.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListReleases", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.ListReleases", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse", - "client": { - "shortName": "SaasDeploymentsClient", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient" - }, - "method": { - "shortName": "ListReleases", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.ListReleases", - "service": { - "shortName": "SaasDeployments", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" - } - } - } - }, - { - "regionTag": "saasservicemgmt_v1beta1_generated_SaasDeployments_GetRelease_async", - "title": "SaasDeployments getRelease Sample", - "origin": "API_DEFINITION", - "description": " Retrieve a single release.", - "canonical": true, - "file": "saas_deployments.get_release.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRelease", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.GetRelease", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.saasplatform.saasservicemgmt.v1beta1.Release", - "client": { - "shortName": "SaasDeploymentsClient", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient" - }, - "method": { - "shortName": "GetRelease", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.GetRelease", - "service": { - "shortName": "SaasDeployments", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" - } - } - } - }, - { - "regionTag": "saasservicemgmt_v1beta1_generated_SaasDeployments_CreateRelease_async", - "title": "SaasDeployments createRelease Sample", - "origin": "API_DEFINITION", - "description": " Create a new release.", - "canonical": true, - "file": "saas_deployments.create_release.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateRelease", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.CreateRelease", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "release_id", - "type": "TYPE_STRING" - }, - { - "name": "release", - "type": ".google.cloud.saasplatform.saasservicemgmt.v1beta1.Release" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.saasplatform.saasservicemgmt.v1beta1.Release", - "client": { - "shortName": "SaasDeploymentsClient", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient" - }, - "method": { - "shortName": "CreateRelease", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.CreateRelease", - "service": { - "shortName": "SaasDeployments", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" - } - } - } - }, - { - "regionTag": "saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateRelease_async", - "title": "SaasDeployments updateRelease Sample", - "origin": "API_DEFINITION", - "description": " Update a single release.", - "canonical": true, - "file": "saas_deployments.update_release.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateRelease", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.UpdateRelease", - "async": true, - "parameters": [ - { - "name": "release", - "type": ".google.cloud.saasplatform.saasservicemgmt.v1beta1.Release" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.saasplatform.saasservicemgmt.v1beta1.Release", - "client": { - "shortName": "SaasDeploymentsClient", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient" - }, - "method": { - "shortName": "UpdateRelease", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.UpdateRelease", - "service": { - "shortName": "SaasDeployments", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" - } - } - } - }, - { - "regionTag": "saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteRelease_async", - "title": "SaasDeployments deleteRelease Sample", - "origin": "API_DEFINITION", - "description": " Delete a single release.", - "canonical": true, - "file": "saas_deployments.delete_release.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteRelease", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.DeleteRelease", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "SaasDeploymentsClient", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient" - }, - "method": { - "shortName": "DeleteRelease", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments.DeleteRelease", - "service": { - "shortName": "SaasDeployments", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments" - } - } - } - }, - { - "regionTag": "saasservicemgmt_v1beta1_generated_SaasRollouts_ListRollouts_async", - "title": "SaasDeployments listRollouts Sample", - "origin": "API_DEFINITION", - "description": " Retrieve a collection of rollouts.", - "canonical": true, - "file": "saas_rollouts.list_rollouts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRollouts", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts.ListRollouts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse", - "client": { - "shortName": "SaasRolloutsClient", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient" - }, - "method": { - "shortName": "ListRollouts", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts.ListRollouts", - "service": { - "shortName": "SaasRollouts", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts" - } - } - } - }, - { - "regionTag": "saasservicemgmt_v1beta1_generated_SaasRollouts_GetRollout_async", - "title": "SaasDeployments getRollout Sample", - "origin": "API_DEFINITION", - "description": " Retrieve a single rollout.", - "canonical": true, - "file": "saas_rollouts.get_rollout.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRollout", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts.GetRollout", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout", - "client": { - "shortName": "SaasRolloutsClient", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient" - }, - "method": { - "shortName": "GetRollout", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts.GetRollout", - "service": { - "shortName": "SaasRollouts", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts" - } - } - } - }, - { - "regionTag": "saasservicemgmt_v1beta1_generated_SaasRollouts_CreateRollout_async", - "title": "SaasDeployments createRollout Sample", - "origin": "API_DEFINITION", - "description": " Create a new rollout.", - "canonical": true, - "file": "saas_rollouts.create_rollout.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateRollout", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts.CreateRollout", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "rollout_id", - "type": "TYPE_STRING" - }, - { - "name": "rollout", - "type": ".google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout", - "client": { - "shortName": "SaasRolloutsClient", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient" - }, - "method": { - "shortName": "CreateRollout", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts.CreateRollout", - "service": { - "shortName": "SaasRollouts", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts" - } - } - } - }, - { - "regionTag": "saasservicemgmt_v1beta1_generated_SaasRollouts_UpdateRollout_async", - "title": "SaasDeployments updateRollout Sample", - "origin": "API_DEFINITION", - "description": " Update a single rollout.", - "canonical": true, - "file": "saas_rollouts.update_rollout.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateRollout", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts.UpdateRollout", - "async": true, - "parameters": [ - { - "name": "rollout", - "type": ".google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout", - "client": { - "shortName": "SaasRolloutsClient", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient" - }, - "method": { - "shortName": "UpdateRollout", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts.UpdateRollout", - "service": { - "shortName": "SaasRollouts", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts" - } - } - } - }, - { - "regionTag": "saasservicemgmt_v1beta1_generated_SaasRollouts_DeleteRollout_async", - "title": "SaasDeployments deleteRollout Sample", - "origin": "API_DEFINITION", - "description": " Delete a single rollout.", - "canonical": true, - "file": "saas_rollouts.delete_rollout.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteRollout", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts.DeleteRollout", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "SaasRolloutsClient", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient" - }, - "method": { - "shortName": "DeleteRollout", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts.DeleteRollout", - "service": { - "shortName": "SaasRollouts", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts" - } - } - } - }, - { - "regionTag": "saasservicemgmt_v1beta1_generated_SaasRollouts_ListRolloutKinds_async", - "title": "SaasDeployments listRolloutKinds Sample", - "origin": "API_DEFINITION", - "description": " Retrieve a collection of rollout kinds.", - "canonical": true, - "file": "saas_rollouts.list_rollout_kinds.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRolloutKinds", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts.ListRolloutKinds", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse", - "client": { - "shortName": "SaasRolloutsClient", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient" - }, - "method": { - "shortName": "ListRolloutKinds", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts.ListRolloutKinds", - "service": { - "shortName": "SaasRollouts", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts" - } - } - } - }, - { - "regionTag": "saasservicemgmt_v1beta1_generated_SaasRollouts_GetRolloutKind_async", - "title": "SaasDeployments getRolloutKind Sample", - "origin": "API_DEFINITION", - "description": " Retrieve a single rollout kind.", - "canonical": true, - "file": "saas_rollouts.get_rollout_kind.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRolloutKind", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts.GetRolloutKind", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind", - "client": { - "shortName": "SaasRolloutsClient", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient" - }, - "method": { - "shortName": "GetRolloutKind", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts.GetRolloutKind", - "service": { - "shortName": "SaasRollouts", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts" - } - } - } - }, - { - "regionTag": "saasservicemgmt_v1beta1_generated_SaasRollouts_CreateRolloutKind_async", - "title": "SaasDeployments createRolloutKind Sample", - "origin": "API_DEFINITION", - "description": " Create a new rollout kind.", - "canonical": true, - "file": "saas_rollouts.create_rollout_kind.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateRolloutKind", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts.CreateRolloutKind", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "rollout_kind_id", - "type": "TYPE_STRING" - }, - { - "name": "rollout_kind", - "type": ".google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind", - "client": { - "shortName": "SaasRolloutsClient", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient" - }, - "method": { - "shortName": "CreateRolloutKind", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts.CreateRolloutKind", - "service": { - "shortName": "SaasRollouts", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts" - } - } - } - }, - { - "regionTag": "saasservicemgmt_v1beta1_generated_SaasRollouts_UpdateRolloutKind_async", - "title": "SaasDeployments updateRolloutKind Sample", - "origin": "API_DEFINITION", - "description": " Update a single rollout kind.", - "canonical": true, - "file": "saas_rollouts.update_rollout_kind.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateRolloutKind", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts.UpdateRolloutKind", - "async": true, - "parameters": [ - { - "name": "rollout_kind", - "type": ".google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind", - "client": { - "shortName": "SaasRolloutsClient", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient" - }, - "method": { - "shortName": "UpdateRolloutKind", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts.UpdateRolloutKind", - "service": { - "shortName": "SaasRollouts", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts" - } - } - } - }, - { - "regionTag": "saasservicemgmt_v1beta1_generated_SaasRollouts_DeleteRolloutKind_async", - "title": "SaasDeployments deleteRolloutKind Sample", - "origin": "API_DEFINITION", - "description": " Delete a single rollout kind.", - "canonical": true, - "file": "saas_rollouts.delete_rollout_kind.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteRolloutKind", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts.DeleteRolloutKind", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "SaasRolloutsClient", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient" - }, - "method": { - "shortName": "DeleteRolloutKind", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts.DeleteRolloutKind", - "service": { - "shortName": "SaasRollouts", - "fullName": "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts" - } - } - } - } - ] -} diff --git a/packages/google-cloud-scheduler/samples/generated/v1/snippet_metadata_google.cloud.scheduler.v1.json b/packages/google-cloud-scheduler/samples/generated/v1/snippet_metadata_google.cloud.scheduler.v1.json deleted file mode 100644 index c547c18323b3..000000000000 --- a/packages/google-cloud-scheduler/samples/generated/v1/snippet_metadata_google.cloud.scheduler.v1.json +++ /dev/null @@ -1,351 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-scheduler", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.scheduler.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "cloudscheduler_v1_generated_CloudScheduler_ListJobs_async", - "title": "scheduler listJobs Sample", - "origin": "API_DEFINITION", - "description": " Lists jobs.", - "canonical": true, - "file": "cloud_scheduler.list_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListJobs", - "fullName": "google.cloud.scheduler.v1.CloudScheduler.ListJobs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.scheduler.v1.ListJobsResponse", - "client": { - "shortName": "CloudSchedulerClient", - "fullName": "google.cloud.scheduler.v1.CloudSchedulerClient" - }, - "method": { - "shortName": "ListJobs", - "fullName": "google.cloud.scheduler.v1.CloudScheduler.ListJobs", - "service": { - "shortName": "CloudScheduler", - "fullName": "google.cloud.scheduler.v1.CloudScheduler" - } - } - } - }, - { - "regionTag": "cloudscheduler_v1_generated_CloudScheduler_GetJob_async", - "title": "scheduler getJob Sample", - "origin": "API_DEFINITION", - "description": " Gets a job.", - "canonical": true, - "file": "cloud_scheduler.get_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetJob", - "fullName": "google.cloud.scheduler.v1.CloudScheduler.GetJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.scheduler.v1.Job", - "client": { - "shortName": "CloudSchedulerClient", - "fullName": "google.cloud.scheduler.v1.CloudSchedulerClient" - }, - "method": { - "shortName": "GetJob", - "fullName": "google.cloud.scheduler.v1.CloudScheduler.GetJob", - "service": { - "shortName": "CloudScheduler", - "fullName": "google.cloud.scheduler.v1.CloudScheduler" - } - } - } - }, - { - "regionTag": "cloudscheduler_v1_generated_CloudScheduler_CreateJob_async", - "title": "scheduler createJob Sample", - "origin": "API_DEFINITION", - "description": " Creates a job.", - "canonical": true, - "file": "cloud_scheduler.create_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateJob", - "fullName": "google.cloud.scheduler.v1.CloudScheduler.CreateJob", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "job", - "type": ".google.cloud.scheduler.v1.Job" - } - ], - "resultType": ".google.cloud.scheduler.v1.Job", - "client": { - "shortName": "CloudSchedulerClient", - "fullName": "google.cloud.scheduler.v1.CloudSchedulerClient" - }, - "method": { - "shortName": "CreateJob", - "fullName": "google.cloud.scheduler.v1.CloudScheduler.CreateJob", - "service": { - "shortName": "CloudScheduler", - "fullName": "google.cloud.scheduler.v1.CloudScheduler" - } - } - } - }, - { - "regionTag": "cloudscheduler_v1_generated_CloudScheduler_UpdateJob_async", - "title": "scheduler updateJob Sample", - "origin": "API_DEFINITION", - "description": " Updates a job. If successful, the updated [Job][google.cloud.scheduler.v1.Job] is returned. If the job does not exist, `NOT_FOUND` is returned. If UpdateJob does not successfully return, it is possible for the job to be in an [Job.State.UPDATE_FAILED][google.cloud.scheduler.v1.Job.State.UPDATE_FAILED] state. A job in this state may not be executed. If this happens, retry the UpdateJob request until a successful response is received.", - "canonical": true, - "file": "cloud_scheduler.update_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateJob", - "fullName": "google.cloud.scheduler.v1.CloudScheduler.UpdateJob", - "async": true, - "parameters": [ - { - "name": "job", - "type": ".google.cloud.scheduler.v1.Job" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.scheduler.v1.Job", - "client": { - "shortName": "CloudSchedulerClient", - "fullName": "google.cloud.scheduler.v1.CloudSchedulerClient" - }, - "method": { - "shortName": "UpdateJob", - "fullName": "google.cloud.scheduler.v1.CloudScheduler.UpdateJob", - "service": { - "shortName": "CloudScheduler", - "fullName": "google.cloud.scheduler.v1.CloudScheduler" - } - } - } - }, - { - "regionTag": "cloudscheduler_v1_generated_CloudScheduler_DeleteJob_async", - "title": "scheduler deleteJob Sample", - "origin": "API_DEFINITION", - "description": " Deletes a job.", - "canonical": true, - "file": "cloud_scheduler.delete_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteJob", - "fullName": "google.cloud.scheduler.v1.CloudScheduler.DeleteJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "CloudSchedulerClient", - "fullName": "google.cloud.scheduler.v1.CloudSchedulerClient" - }, - "method": { - "shortName": "DeleteJob", - "fullName": "google.cloud.scheduler.v1.CloudScheduler.DeleteJob", - "service": { - "shortName": "CloudScheduler", - "fullName": "google.cloud.scheduler.v1.CloudScheduler" - } - } - } - }, - { - "regionTag": "cloudscheduler_v1_generated_CloudScheduler_PauseJob_async", - "title": "scheduler pauseJob Sample", - "origin": "API_DEFINITION", - "description": " Pauses a job. If a job is paused then the system will stop executing the job until it is re-enabled via [ResumeJob][google.cloud.scheduler.v1.CloudScheduler.ResumeJob]. The state of the job is stored in [state][google.cloud.scheduler.v1.Job.state]; if paused it will be set to [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED]. A job must be in [Job.State.ENABLED][google.cloud.scheduler.v1.Job.State.ENABLED] to be paused.", - "canonical": true, - "file": "cloud_scheduler.pause_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PauseJob", - "fullName": "google.cloud.scheduler.v1.CloudScheduler.PauseJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.scheduler.v1.Job", - "client": { - "shortName": "CloudSchedulerClient", - "fullName": "google.cloud.scheduler.v1.CloudSchedulerClient" - }, - "method": { - "shortName": "PauseJob", - "fullName": "google.cloud.scheduler.v1.CloudScheduler.PauseJob", - "service": { - "shortName": "CloudScheduler", - "fullName": "google.cloud.scheduler.v1.CloudScheduler" - } - } - } - }, - { - "regionTag": "cloudscheduler_v1_generated_CloudScheduler_ResumeJob_async", - "title": "scheduler resumeJob Sample", - "origin": "API_DEFINITION", - "description": " Resume a job. This method reenables a job after it has been [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED]. The state of a job is stored in [Job.state][google.cloud.scheduler.v1.Job.state]; after calling this method it will be set to [Job.State.ENABLED][google.cloud.scheduler.v1.Job.State.ENABLED]. A job must be in [Job.State.PAUSED][google.cloud.scheduler.v1.Job.State.PAUSED] to be resumed.", - "canonical": true, - "file": "cloud_scheduler.resume_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResumeJob", - "fullName": "google.cloud.scheduler.v1.CloudScheduler.ResumeJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.scheduler.v1.Job", - "client": { - "shortName": "CloudSchedulerClient", - "fullName": "google.cloud.scheduler.v1.CloudSchedulerClient" - }, - "method": { - "shortName": "ResumeJob", - "fullName": "google.cloud.scheduler.v1.CloudScheduler.ResumeJob", - "service": { - "shortName": "CloudScheduler", - "fullName": "google.cloud.scheduler.v1.CloudScheduler" - } - } - } - }, - { - "regionTag": "cloudscheduler_v1_generated_CloudScheduler_RunJob_async", - "title": "scheduler runJob Sample", - "origin": "API_DEFINITION", - "description": " Forces a job to run now. When this method is called, Cloud Scheduler will dispatch the job, even if the job is already running.", - "canonical": true, - "file": "cloud_scheduler.run_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RunJob", - "fullName": "google.cloud.scheduler.v1.CloudScheduler.RunJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.scheduler.v1.Job", - "client": { - "shortName": "CloudSchedulerClient", - "fullName": "google.cloud.scheduler.v1.CloudSchedulerClient" - }, - "method": { - "shortName": "RunJob", - "fullName": "google.cloud.scheduler.v1.CloudScheduler.RunJob", - "service": { - "shortName": "CloudScheduler", - "fullName": "google.cloud.scheduler.v1.CloudScheduler" - } - } - } - } - ] -} diff --git a/packages/google-cloud-scheduler/samples/generated/v1beta1/snippet_metadata_google.cloud.scheduler.v1beta1.json b/packages/google-cloud-scheduler/samples/generated/v1beta1/snippet_metadata_google.cloud.scheduler.v1beta1.json deleted file mode 100644 index 19c756a7cd0d..000000000000 --- a/packages/google-cloud-scheduler/samples/generated/v1beta1/snippet_metadata_google.cloud.scheduler.v1beta1.json +++ /dev/null @@ -1,367 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-scheduler", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.scheduler.v1beta1", - "version": "v1beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "cloudscheduler_v1beta1_generated_CloudScheduler_ListJobs_async", - "title": "scheduler listJobs Sample", - "origin": "API_DEFINITION", - "description": " Lists jobs.", - "canonical": true, - "file": "cloud_scheduler.list_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 93, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListJobs", - "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler.ListJobs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "legacy_app_engine_cron", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.scheduler.v1beta1.ListJobsResponse", - "client": { - "shortName": "CloudSchedulerClient", - "fullName": "google.cloud.scheduler.v1beta1.CloudSchedulerClient" - }, - "method": { - "shortName": "ListJobs", - "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler.ListJobs", - "service": { - "shortName": "CloudScheduler", - "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler" - } - } - } - }, - { - "regionTag": "cloudscheduler_v1beta1_generated_CloudScheduler_GetJob_async", - "title": "scheduler getJob Sample", - "origin": "API_DEFINITION", - "description": " Gets a job.", - "canonical": true, - "file": "cloud_scheduler.get_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetJob", - "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler.GetJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.scheduler.v1beta1.Job", - "client": { - "shortName": "CloudSchedulerClient", - "fullName": "google.cloud.scheduler.v1beta1.CloudSchedulerClient" - }, - "method": { - "shortName": "GetJob", - "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler.GetJob", - "service": { - "shortName": "CloudScheduler", - "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler" - } - } - } - }, - { - "regionTag": "cloudscheduler_v1beta1_generated_CloudScheduler_CreateJob_async", - "title": "scheduler createJob Sample", - "origin": "API_DEFINITION", - "description": " Creates a job.", - "canonical": true, - "file": "cloud_scheduler.create_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateJob", - "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler.CreateJob", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "job", - "type": ".google.cloud.scheduler.v1beta1.Job" - } - ], - "resultType": ".google.cloud.scheduler.v1beta1.Job", - "client": { - "shortName": "CloudSchedulerClient", - "fullName": "google.cloud.scheduler.v1beta1.CloudSchedulerClient" - }, - "method": { - "shortName": "CreateJob", - "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler.CreateJob", - "service": { - "shortName": "CloudScheduler", - "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler" - } - } - } - }, - { - "regionTag": "cloudscheduler_v1beta1_generated_CloudScheduler_UpdateJob_async", - "title": "scheduler updateJob Sample", - "origin": "API_DEFINITION", - "description": " Updates a job. If successful, the updated [Job][google.cloud.scheduler.v1beta1.Job] is returned. If the job does not exist, `NOT_FOUND` is returned. If UpdateJob does not successfully return, it is possible for the job to be in an [Job.State.UPDATE_FAILED][google.cloud.scheduler.v1beta1.Job.State.UPDATE_FAILED] state. A job in this state may not be executed. If this happens, retry the UpdateJob request until a successful response is received.", - "canonical": true, - "file": "cloud_scheduler.update_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateJob", - "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler.UpdateJob", - "async": true, - "parameters": [ - { - "name": "job", - "type": ".google.cloud.scheduler.v1beta1.Job" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.scheduler.v1beta1.Job", - "client": { - "shortName": "CloudSchedulerClient", - "fullName": "google.cloud.scheduler.v1beta1.CloudSchedulerClient" - }, - "method": { - "shortName": "UpdateJob", - "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler.UpdateJob", - "service": { - "shortName": "CloudScheduler", - "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler" - } - } - } - }, - { - "regionTag": "cloudscheduler_v1beta1_generated_CloudScheduler_DeleteJob_async", - "title": "scheduler deleteJob Sample", - "origin": "API_DEFINITION", - "description": " Deletes a job.", - "canonical": true, - "file": "cloud_scheduler.delete_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteJob", - "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler.DeleteJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "legacy_app_engine_cron", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "CloudSchedulerClient", - "fullName": "google.cloud.scheduler.v1beta1.CloudSchedulerClient" - }, - "method": { - "shortName": "DeleteJob", - "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler.DeleteJob", - "service": { - "shortName": "CloudScheduler", - "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler" - } - } - } - }, - { - "regionTag": "cloudscheduler_v1beta1_generated_CloudScheduler_PauseJob_async", - "title": "scheduler pauseJob Sample", - "origin": "API_DEFINITION", - "description": " Pauses a job. If a job is paused then the system will stop executing the job until it is re-enabled via [ResumeJob][google.cloud.scheduler.v1beta1.CloudScheduler.ResumeJob]. The state of the job is stored in [state][google.cloud.scheduler.v1beta1.Job.state]; if paused it will be set to [Job.State.PAUSED][google.cloud.scheduler.v1beta1.Job.State.PAUSED]. A job must be in [Job.State.ENABLED][google.cloud.scheduler.v1beta1.Job.State.ENABLED] to be paused.", - "canonical": true, - "file": "cloud_scheduler.pause_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PauseJob", - "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler.PauseJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.scheduler.v1beta1.Job", - "client": { - "shortName": "CloudSchedulerClient", - "fullName": "google.cloud.scheduler.v1beta1.CloudSchedulerClient" - }, - "method": { - "shortName": "PauseJob", - "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler.PauseJob", - "service": { - "shortName": "CloudScheduler", - "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler" - } - } - } - }, - { - "regionTag": "cloudscheduler_v1beta1_generated_CloudScheduler_ResumeJob_async", - "title": "scheduler resumeJob Sample", - "origin": "API_DEFINITION", - "description": " Resume a job. This method reenables a job after it has been [Job.State.PAUSED][google.cloud.scheduler.v1beta1.Job.State.PAUSED]. The state of a job is stored in [Job.state][google.cloud.scheduler.v1beta1.Job.state]; after calling this method it will be set to [Job.State.ENABLED][google.cloud.scheduler.v1beta1.Job.State.ENABLED]. A job must be in [Job.State.PAUSED][google.cloud.scheduler.v1beta1.Job.State.PAUSED] to be resumed.", - "canonical": true, - "file": "cloud_scheduler.resume_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResumeJob", - "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler.ResumeJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.scheduler.v1beta1.Job", - "client": { - "shortName": "CloudSchedulerClient", - "fullName": "google.cloud.scheduler.v1beta1.CloudSchedulerClient" - }, - "method": { - "shortName": "ResumeJob", - "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler.ResumeJob", - "service": { - "shortName": "CloudScheduler", - "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler" - } - } - } - }, - { - "regionTag": "cloudscheduler_v1beta1_generated_CloudScheduler_RunJob_async", - "title": "scheduler runJob Sample", - "origin": "API_DEFINITION", - "description": " Forces a job to run now. When this method is called, Cloud Scheduler will dispatch the job, even if the job is already running.", - "canonical": true, - "file": "cloud_scheduler.run_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RunJob", - "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler.RunJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "legacy_app_engine_cron", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.scheduler.v1beta1.Job", - "client": { - "shortName": "CloudSchedulerClient", - "fullName": "google.cloud.scheduler.v1beta1.CloudSchedulerClient" - }, - "method": { - "shortName": "RunJob", - "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler.RunJob", - "service": { - "shortName": "CloudScheduler", - "fullName": "google.cloud.scheduler.v1beta1.CloudScheduler" - } - } - } - } - ] -} diff --git a/packages/google-cloud-secretmanager/samples/generated/v1/snippet_metadata_google.cloud.secretmanager.v1.json b/packages/google-cloud-secretmanager/samples/generated/v1/snippet_metadata_google.cloud.secretmanager.v1.json deleted file mode 100644 index a70961044f66..000000000000 --- a/packages/google-cloud-secretmanager/samples/generated/v1/snippet_metadata_google.cloud.secretmanager.v1.json +++ /dev/null @@ -1,687 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-secretmanager", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.secretmanager.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "secretmanager_v1_generated_SecretManagerService_ListSecrets_async", - "title": "SecretManagerService listSecrets Sample", - "origin": "API_DEFINITION", - "description": " Lists [Secrets][google.cloud.secretmanager.v1.Secret].", - "canonical": true, - "file": "secret_manager_service.list_secrets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSecrets", - "fullName": "google.cloud.secretmanager.v1.SecretManagerService.ListSecrets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.secretmanager.v1.ListSecretsResponse", - "client": { - "shortName": "SecretManagerServiceClient", - "fullName": "google.cloud.secretmanager.v1.SecretManagerServiceClient" - }, - "method": { - "shortName": "ListSecrets", - "fullName": "google.cloud.secretmanager.v1.SecretManagerService.ListSecrets", - "service": { - "shortName": "SecretManagerService", - "fullName": "google.cloud.secretmanager.v1.SecretManagerService" - } - } - } - }, - { - "regionTag": "secretmanager_v1_generated_SecretManagerService_CreateSecret_async", - "title": "SecretManagerService createSecret Sample", - "origin": "API_DEFINITION", - "description": " Creates a new [Secret][google.cloud.secretmanager.v1.Secret] containing no [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].", - "canonical": true, - "file": "secret_manager_service.create_secret.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSecret", - "fullName": "google.cloud.secretmanager.v1.SecretManagerService.CreateSecret", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "secret_id", - "type": "TYPE_STRING" - }, - { - "name": "secret", - "type": ".google.cloud.secretmanager.v1.Secret" - } - ], - "resultType": ".google.cloud.secretmanager.v1.Secret", - "client": { - "shortName": "SecretManagerServiceClient", - "fullName": "google.cloud.secretmanager.v1.SecretManagerServiceClient" - }, - "method": { - "shortName": "CreateSecret", - "fullName": "google.cloud.secretmanager.v1.SecretManagerService.CreateSecret", - "service": { - "shortName": "SecretManagerService", - "fullName": "google.cloud.secretmanager.v1.SecretManagerService" - } - } - } - }, - { - "regionTag": "secretmanager_v1_generated_SecretManagerService_AddSecretVersion_async", - "title": "SecretManagerService addSecretVersion Sample", - "origin": "API_DEFINITION", - "description": " Creates a new [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] containing secret data and attaches it to an existing [Secret][google.cloud.secretmanager.v1.Secret].", - "canonical": true, - "file": "secret_manager_service.add_secret_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddSecretVersion", - "fullName": "google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "payload", - "type": ".google.cloud.secretmanager.v1.SecretPayload" - } - ], - "resultType": ".google.cloud.secretmanager.v1.SecretVersion", - "client": { - "shortName": "SecretManagerServiceClient", - "fullName": "google.cloud.secretmanager.v1.SecretManagerServiceClient" - }, - "method": { - "shortName": "AddSecretVersion", - "fullName": "google.cloud.secretmanager.v1.SecretManagerService.AddSecretVersion", - "service": { - "shortName": "SecretManagerService", - "fullName": "google.cloud.secretmanager.v1.SecretManagerService" - } - } - } - }, - { - "regionTag": "secretmanager_v1_generated_SecretManagerService_GetSecret_async", - "title": "SecretManagerService getSecret Sample", - "origin": "API_DEFINITION", - "description": " Gets metadata for a given [Secret][google.cloud.secretmanager.v1.Secret].", - "canonical": true, - "file": "secret_manager_service.get_secret.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSecret", - "fullName": "google.cloud.secretmanager.v1.SecretManagerService.GetSecret", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.secretmanager.v1.Secret", - "client": { - "shortName": "SecretManagerServiceClient", - "fullName": "google.cloud.secretmanager.v1.SecretManagerServiceClient" - }, - "method": { - "shortName": "GetSecret", - "fullName": "google.cloud.secretmanager.v1.SecretManagerService.GetSecret", - "service": { - "shortName": "SecretManagerService", - "fullName": "google.cloud.secretmanager.v1.SecretManagerService" - } - } - } - }, - { - "regionTag": "secretmanager_v1_generated_SecretManagerService_UpdateSecret_async", - "title": "SecretManagerService updateSecret Sample", - "origin": "API_DEFINITION", - "description": " Updates metadata of an existing [Secret][google.cloud.secretmanager.v1.Secret].", - "canonical": true, - "file": "secret_manager_service.update_secret.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSecret", - "fullName": "google.cloud.secretmanager.v1.SecretManagerService.UpdateSecret", - "async": true, - "parameters": [ - { - "name": "secret", - "type": ".google.cloud.secretmanager.v1.Secret" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.secretmanager.v1.Secret", - "client": { - "shortName": "SecretManagerServiceClient", - "fullName": "google.cloud.secretmanager.v1.SecretManagerServiceClient" - }, - "method": { - "shortName": "UpdateSecret", - "fullName": "google.cloud.secretmanager.v1.SecretManagerService.UpdateSecret", - "service": { - "shortName": "SecretManagerService", - "fullName": "google.cloud.secretmanager.v1.SecretManagerService" - } - } - } - }, - { - "regionTag": "secretmanager_v1_generated_SecretManagerService_DeleteSecret_async", - "title": "SecretManagerService deleteSecret Sample", - "origin": "API_DEFINITION", - "description": " Deletes a [Secret][google.cloud.secretmanager.v1.Secret].", - "canonical": true, - "file": "secret_manager_service.delete_secret.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSecret", - "fullName": "google.cloud.secretmanager.v1.SecretManagerService.DeleteSecret", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "SecretManagerServiceClient", - "fullName": "google.cloud.secretmanager.v1.SecretManagerServiceClient" - }, - "method": { - "shortName": "DeleteSecret", - "fullName": "google.cloud.secretmanager.v1.SecretManagerService.DeleteSecret", - "service": { - "shortName": "SecretManagerService", - "fullName": "google.cloud.secretmanager.v1.SecretManagerService" - } - } - } - }, - { - "regionTag": "secretmanager_v1_generated_SecretManagerService_ListSecretVersions_async", - "title": "SecretManagerService listSecretVersions Sample", - "origin": "API_DEFINITION", - "description": " Lists [SecretVersions][google.cloud.secretmanager.v1.SecretVersion]. This call does not return secret data.", - "canonical": true, - "file": "secret_manager_service.list_secret_versions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSecretVersions", - "fullName": "google.cloud.secretmanager.v1.SecretManagerService.ListSecretVersions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.secretmanager.v1.ListSecretVersionsResponse", - "client": { - "shortName": "SecretManagerServiceClient", - "fullName": "google.cloud.secretmanager.v1.SecretManagerServiceClient" - }, - "method": { - "shortName": "ListSecretVersions", - "fullName": "google.cloud.secretmanager.v1.SecretManagerService.ListSecretVersions", - "service": { - "shortName": "SecretManagerService", - "fullName": "google.cloud.secretmanager.v1.SecretManagerService" - } - } - } - }, - { - "regionTag": "secretmanager_v1_generated_SecretManagerService_GetSecretVersion_async", - "title": "SecretManagerService getSecretVersion Sample", - "origin": "API_DEFINITION", - "description": " Gets metadata for a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. `projects/*/secrets/*/versions/latest` is an alias to the most recently created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].", - "canonical": true, - "file": "secret_manager_service.get_secret_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSecretVersion", - "fullName": "google.cloud.secretmanager.v1.SecretManagerService.GetSecretVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.secretmanager.v1.SecretVersion", - "client": { - "shortName": "SecretManagerServiceClient", - "fullName": "google.cloud.secretmanager.v1.SecretManagerServiceClient" - }, - "method": { - "shortName": "GetSecretVersion", - "fullName": "google.cloud.secretmanager.v1.SecretManagerService.GetSecretVersion", - "service": { - "shortName": "SecretManagerService", - "fullName": "google.cloud.secretmanager.v1.SecretManagerService" - } - } - } - }, - { - "regionTag": "secretmanager_v1_generated_SecretManagerService_AccessSecretVersion_async", - "title": "SecretManagerService accessSecretVersion Sample", - "origin": "API_DEFINITION", - "description": " Accesses a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. This call returns the secret data. `projects/*/secrets/*/versions/latest` is an alias to the most recently created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].", - "canonical": true, - "file": "secret_manager_service.access_secret_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AccessSecretVersion", - "fullName": "google.cloud.secretmanager.v1.SecretManagerService.AccessSecretVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.secretmanager.v1.AccessSecretVersionResponse", - "client": { - "shortName": "SecretManagerServiceClient", - "fullName": "google.cloud.secretmanager.v1.SecretManagerServiceClient" - }, - "method": { - "shortName": "AccessSecretVersion", - "fullName": "google.cloud.secretmanager.v1.SecretManagerService.AccessSecretVersion", - "service": { - "shortName": "SecretManagerService", - "fullName": "google.cloud.secretmanager.v1.SecretManagerService" - } - } - } - }, - { - "regionTag": "secretmanager_v1_generated_SecretManagerService_DisableSecretVersion_async", - "title": "SecretManagerService disableSecretVersion Sample", - "origin": "API_DEFINITION", - "description": " Disables a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to [DISABLED][google.cloud.secretmanager.v1.SecretVersion.State.DISABLED].", - "canonical": true, - "file": "secret_manager_service.disable_secret_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DisableSecretVersion", - "fullName": "google.cloud.secretmanager.v1.SecretManagerService.DisableSecretVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.secretmanager.v1.SecretVersion", - "client": { - "shortName": "SecretManagerServiceClient", - "fullName": "google.cloud.secretmanager.v1.SecretManagerServiceClient" - }, - "method": { - "shortName": "DisableSecretVersion", - "fullName": "google.cloud.secretmanager.v1.SecretManagerService.DisableSecretVersion", - "service": { - "shortName": "SecretManagerService", - "fullName": "google.cloud.secretmanager.v1.SecretManagerService" - } - } - } - }, - { - "regionTag": "secretmanager_v1_generated_SecretManagerService_EnableSecretVersion_async", - "title": "SecretManagerService enableSecretVersion Sample", - "origin": "API_DEFINITION", - "description": " Enables a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to [ENABLED][google.cloud.secretmanager.v1.SecretVersion.State.ENABLED].", - "canonical": true, - "file": "secret_manager_service.enable_secret_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "EnableSecretVersion", - "fullName": "google.cloud.secretmanager.v1.SecretManagerService.EnableSecretVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.secretmanager.v1.SecretVersion", - "client": { - "shortName": "SecretManagerServiceClient", - "fullName": "google.cloud.secretmanager.v1.SecretManagerServiceClient" - }, - "method": { - "shortName": "EnableSecretVersion", - "fullName": "google.cloud.secretmanager.v1.SecretManagerService.EnableSecretVersion", - "service": { - "shortName": "SecretManagerService", - "fullName": "google.cloud.secretmanager.v1.SecretManagerService" - } - } - } - }, - { - "regionTag": "secretmanager_v1_generated_SecretManagerService_DestroySecretVersion_async", - "title": "SecretManagerService destroySecretVersion Sample", - "origin": "API_DEFINITION", - "description": " Destroys a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to [DESTROYED][google.cloud.secretmanager.v1.SecretVersion.State.DESTROYED] and irrevocably destroys the secret data.", - "canonical": true, - "file": "secret_manager_service.destroy_secret_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DestroySecretVersion", - "fullName": "google.cloud.secretmanager.v1.SecretManagerService.DestroySecretVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.secretmanager.v1.SecretVersion", - "client": { - "shortName": "SecretManagerServiceClient", - "fullName": "google.cloud.secretmanager.v1.SecretManagerServiceClient" - }, - "method": { - "shortName": "DestroySecretVersion", - "fullName": "google.cloud.secretmanager.v1.SecretManagerService.DestroySecretVersion", - "service": { - "shortName": "SecretManagerService", - "fullName": "google.cloud.secretmanager.v1.SecretManagerService" - } - } - } - }, - { - "regionTag": "secretmanager_v1_generated_SecretManagerService_SetIamPolicy_async", - "title": "SecretManagerService setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified secret. Replaces any existing policy. Permissions on [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] are enforced according to the policy set on the associated [Secret][google.cloud.secretmanager.v1.Secret].", - "canonical": true, - "file": "secret_manager_service.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.secretmanager.v1.SecretManagerService.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.iam.v1.Policy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "SecretManagerServiceClient", - "fullName": "google.cloud.secretmanager.v1.SecretManagerServiceClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.secretmanager.v1.SecretManagerService.SetIamPolicy", - "service": { - "shortName": "SecretManagerService", - "fullName": "google.cloud.secretmanager.v1.SecretManagerService" - } - } - } - }, - { - "regionTag": "secretmanager_v1_generated_SecretManagerService_GetIamPolicy_async", - "title": "SecretManagerService getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a secret. Returns empty policy if the secret exists and does not have a policy set.", - "canonical": true, - "file": "secret_manager_service.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.secretmanager.v1.SecretManagerService.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": ".google.iam.v1.GetPolicyOptions" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "SecretManagerServiceClient", - "fullName": "google.cloud.secretmanager.v1.SecretManagerServiceClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.secretmanager.v1.SecretManagerService.GetIamPolicy", - "service": { - "shortName": "SecretManagerService", - "fullName": "google.cloud.secretmanager.v1.SecretManagerService" - } - } - } - }, - { - "regionTag": "secretmanager_v1_generated_SecretManagerService_TestIamPermissions_async", - "title": "SecretManagerService testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has for the specified secret. If the secret does not exist, this call returns an empty set of permissions, not a NOT_FOUND error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - "canonical": true, - "file": "secret_manager_service.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.secretmanager.v1.SecretManagerService.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "permissions", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.iam.v1.TestIamPermissionsResponse", - "client": { - "shortName": "SecretManagerServiceClient", - "fullName": "google.cloud.secretmanager.v1.SecretManagerServiceClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.secretmanager.v1.SecretManagerService.TestIamPermissions", - "service": { - "shortName": "SecretManagerService", - "fullName": "google.cloud.secretmanager.v1.SecretManagerService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-secretmanager/samples/generated/v1beta2/snippet_metadata_google.cloud.secretmanager.v1beta2.json b/packages/google-cloud-secretmanager/samples/generated/v1beta2/snippet_metadata_google.cloud.secretmanager.v1beta2.json deleted file mode 100644 index 331d8a4009b4..000000000000 --- a/packages/google-cloud-secretmanager/samples/generated/v1beta2/snippet_metadata_google.cloud.secretmanager.v1beta2.json +++ /dev/null @@ -1,687 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-secretmanager", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.secretmanager.v1beta2", - "version": "v1beta2" - } - ] - }, - "snippets": [ - { - "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_ListSecrets_async", - "title": "SecretManagerService listSecrets Sample", - "origin": "API_DEFINITION", - "description": " Lists [Secrets][google.cloud.secretmanager.v1beta2.Secret].", - "canonical": true, - "file": "secret_manager_service.list_secrets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSecrets", - "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.ListSecrets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.secretmanager.v1beta2.ListSecretsResponse", - "client": { - "shortName": "SecretManagerServiceClient", - "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerServiceClient" - }, - "method": { - "shortName": "ListSecrets", - "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.ListSecrets", - "service": { - "shortName": "SecretManagerService", - "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" - } - } - } - }, - { - "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_CreateSecret_async", - "title": "SecretManagerService createSecret Sample", - "origin": "API_DEFINITION", - "description": " Creates a new [Secret][google.cloud.secretmanager.v1beta2.Secret] containing no [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion].", - "canonical": true, - "file": "secret_manager_service.create_secret.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSecret", - "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.CreateSecret", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "secret_id", - "type": "TYPE_STRING" - }, - { - "name": "secret", - "type": ".google.cloud.secretmanager.v1beta2.Secret" - } - ], - "resultType": ".google.cloud.secretmanager.v1beta2.Secret", - "client": { - "shortName": "SecretManagerServiceClient", - "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerServiceClient" - }, - "method": { - "shortName": "CreateSecret", - "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.CreateSecret", - "service": { - "shortName": "SecretManagerService", - "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" - } - } - } - }, - { - "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_AddSecretVersion_async", - "title": "SecretManagerService addSecretVersion Sample", - "origin": "API_DEFINITION", - "description": " Creates a new [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] containing secret data and attaches it to an existing [Secret][google.cloud.secretmanager.v1beta2.Secret].", - "canonical": true, - "file": "secret_manager_service.add_secret_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddSecretVersion", - "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.AddSecretVersion", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "payload", - "type": ".google.cloud.secretmanager.v1beta2.SecretPayload" - } - ], - "resultType": ".google.cloud.secretmanager.v1beta2.SecretVersion", - "client": { - "shortName": "SecretManagerServiceClient", - "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerServiceClient" - }, - "method": { - "shortName": "AddSecretVersion", - "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.AddSecretVersion", - "service": { - "shortName": "SecretManagerService", - "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" - } - } - } - }, - { - "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_GetSecret_async", - "title": "SecretManagerService getSecret Sample", - "origin": "API_DEFINITION", - "description": " Gets metadata for a given [Secret][google.cloud.secretmanager.v1beta2.Secret].", - "canonical": true, - "file": "secret_manager_service.get_secret.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSecret", - "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.GetSecret", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.secretmanager.v1beta2.Secret", - "client": { - "shortName": "SecretManagerServiceClient", - "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerServiceClient" - }, - "method": { - "shortName": "GetSecret", - "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.GetSecret", - "service": { - "shortName": "SecretManagerService", - "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" - } - } - } - }, - { - "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_UpdateSecret_async", - "title": "SecretManagerService updateSecret Sample", - "origin": "API_DEFINITION", - "description": " Updates metadata of an existing [Secret][google.cloud.secretmanager.v1beta2.Secret].", - "canonical": true, - "file": "secret_manager_service.update_secret.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSecret", - "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.UpdateSecret", - "async": true, - "parameters": [ - { - "name": "secret", - "type": ".google.cloud.secretmanager.v1beta2.Secret" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.secretmanager.v1beta2.Secret", - "client": { - "shortName": "SecretManagerServiceClient", - "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerServiceClient" - }, - "method": { - "shortName": "UpdateSecret", - "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.UpdateSecret", - "service": { - "shortName": "SecretManagerService", - "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" - } - } - } - }, - { - "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_DeleteSecret_async", - "title": "SecretManagerService deleteSecret Sample", - "origin": "API_DEFINITION", - "description": " Deletes a [Secret][google.cloud.secretmanager.v1beta2.Secret].", - "canonical": true, - "file": "secret_manager_service.delete_secret.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSecret", - "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.DeleteSecret", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "SecretManagerServiceClient", - "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerServiceClient" - }, - "method": { - "shortName": "DeleteSecret", - "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.DeleteSecret", - "service": { - "shortName": "SecretManagerService", - "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" - } - } - } - }, - { - "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_ListSecretVersions_async", - "title": "SecretManagerService listSecretVersions Sample", - "origin": "API_DEFINITION", - "description": " Lists [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion]. This call does not return secret data.", - "canonical": true, - "file": "secret_manager_service.list_secret_versions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSecretVersions", - "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.ListSecretVersions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.secretmanager.v1beta2.ListSecretVersionsResponse", - "client": { - "shortName": "SecretManagerServiceClient", - "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerServiceClient" - }, - "method": { - "shortName": "ListSecretVersions", - "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.ListSecretVersions", - "service": { - "shortName": "SecretManagerService", - "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" - } - } - } - }, - { - "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_GetSecretVersion_async", - "title": "SecretManagerService getSecretVersion Sample", - "origin": "API_DEFINITION", - "description": " Gets metadata for a [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. `projects/*/secrets/*/versions/latest` is an alias to the most recently created [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion].", - "canonical": true, - "file": "secret_manager_service.get_secret_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSecretVersion", - "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.GetSecretVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.secretmanager.v1beta2.SecretVersion", - "client": { - "shortName": "SecretManagerServiceClient", - "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerServiceClient" - }, - "method": { - "shortName": "GetSecretVersion", - "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.GetSecretVersion", - "service": { - "shortName": "SecretManagerService", - "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" - } - } - } - }, - { - "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_AccessSecretVersion_async", - "title": "SecretManagerService accessSecretVersion Sample", - "origin": "API_DEFINITION", - "description": " Accesses a [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. This call returns the secret data. `projects/*/secrets/*/versions/latest` is an alias to the most recently created [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion].", - "canonical": true, - "file": "secret_manager_service.access_secret_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AccessSecretVersion", - "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.AccessSecretVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.secretmanager.v1beta2.AccessSecretVersionResponse", - "client": { - "shortName": "SecretManagerServiceClient", - "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerServiceClient" - }, - "method": { - "shortName": "AccessSecretVersion", - "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.AccessSecretVersion", - "service": { - "shortName": "SecretManagerService", - "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" - } - } - } - }, - { - "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_DisableSecretVersion_async", - "title": "SecretManagerService disableSecretVersion Sample", - "origin": "API_DEFINITION", - "description": " Disables a [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. Sets the [state][google.cloud.secretmanager.v1beta2.SecretVersion.state] of the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to [DISABLED][google.cloud.secretmanager.v1beta2.SecretVersion.State.DISABLED].", - "canonical": true, - "file": "secret_manager_service.disable_secret_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DisableSecretVersion", - "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.DisableSecretVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.secretmanager.v1beta2.SecretVersion", - "client": { - "shortName": "SecretManagerServiceClient", - "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerServiceClient" - }, - "method": { - "shortName": "DisableSecretVersion", - "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.DisableSecretVersion", - "service": { - "shortName": "SecretManagerService", - "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" - } - } - } - }, - { - "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_EnableSecretVersion_async", - "title": "SecretManagerService enableSecretVersion Sample", - "origin": "API_DEFINITION", - "description": " Enables a [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. Sets the [state][google.cloud.secretmanager.v1beta2.SecretVersion.state] of the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to [ENABLED][google.cloud.secretmanager.v1beta2.SecretVersion.State.ENABLED].", - "canonical": true, - "file": "secret_manager_service.enable_secret_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "EnableSecretVersion", - "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.EnableSecretVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.secretmanager.v1beta2.SecretVersion", - "client": { - "shortName": "SecretManagerServiceClient", - "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerServiceClient" - }, - "method": { - "shortName": "EnableSecretVersion", - "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.EnableSecretVersion", - "service": { - "shortName": "SecretManagerService", - "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" - } - } - } - }, - { - "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_DestroySecretVersion_async", - "title": "SecretManagerService destroySecretVersion Sample", - "origin": "API_DEFINITION", - "description": " Destroys a [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. Sets the [state][google.cloud.secretmanager.v1beta2.SecretVersion.state] of the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to [DESTROYED][google.cloud.secretmanager.v1beta2.SecretVersion.State.DESTROYED] and irrevocably destroys the secret data.", - "canonical": true, - "file": "secret_manager_service.destroy_secret_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DestroySecretVersion", - "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.DestroySecretVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.secretmanager.v1beta2.SecretVersion", - "client": { - "shortName": "SecretManagerServiceClient", - "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerServiceClient" - }, - "method": { - "shortName": "DestroySecretVersion", - "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.DestroySecretVersion", - "service": { - "shortName": "SecretManagerService", - "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" - } - } - } - }, - { - "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_SetIamPolicy_async", - "title": "SecretManagerService setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified secret. Replaces any existing policy. Permissions on [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion] are enforced according to the policy set on the associated [Secret][google.cloud.secretmanager.v1beta2.Secret].", - "canonical": true, - "file": "secret_manager_service.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.iam.v1.Policy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "SecretManagerServiceClient", - "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerServiceClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.SetIamPolicy", - "service": { - "shortName": "SecretManagerService", - "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" - } - } - } - }, - { - "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_GetIamPolicy_async", - "title": "SecretManagerService getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a secret. Returns empty policy if the secret exists and does not have a policy set.", - "canonical": true, - "file": "secret_manager_service.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": ".google.iam.v1.GetPolicyOptions" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "SecretManagerServiceClient", - "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerServiceClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.GetIamPolicy", - "service": { - "shortName": "SecretManagerService", - "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" - } - } - } - }, - { - "regionTag": "secretmanager_v1beta2_generated_SecretManagerService_TestIamPermissions_async", - "title": "SecretManagerService testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has for the specified secret. If the secret does not exist, this call returns an empty set of permissions, not a NOT_FOUND error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - "canonical": true, - "file": "secret_manager_service.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "permissions", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.iam.v1.TestIamPermissionsResponse", - "client": { - "shortName": "SecretManagerServiceClient", - "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerServiceClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService.TestIamPermissions", - "service": { - "shortName": "SecretManagerService", - "fullName": "google.cloud.secretmanager.v1beta2.SecretManagerService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-securesourcemanager/samples/generated/v1/snippet_metadata_google.cloud.securesourcemanager.v1.json b/packages/google-cloud-securesourcemanager/samples/generated/v1/snippet_metadata_google.cloud.securesourcemanager.v1.json deleted file mode 100644 index dbd6e2db589f..000000000000 --- a/packages/google-cloud-securesourcemanager/samples/generated/v1/snippet_metadata_google.cloud.securesourcemanager.v1.json +++ /dev/null @@ -1,2359 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-securesourcemanager", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.securesourcemanager.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_ListInstances_async", - "title": "SecureSourceManager listInstances Sample", - "origin": "API_DEFINITION", - "description": " Lists Instances in a given project and location.", - "canonical": true, - "file": "secure_source_manager.list_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListInstances", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.ListInstances", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securesourcemanager.v1.ListInstancesResponse", - "client": { - "shortName": "SecureSourceManagerClient", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManagerClient" - }, - "method": { - "shortName": "ListInstances", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.ListInstances", - "service": { - "shortName": "SecureSourceManager", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" - } - } - } - }, - { - "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_GetInstance_async", - "title": "SecureSourceManager getInstance Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single instance.", - "canonical": true, - "file": "secure_source_manager.get_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetInstance", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.GetInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securesourcemanager.v1.Instance", - "client": { - "shortName": "SecureSourceManagerClient", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManagerClient" - }, - "method": { - "shortName": "GetInstance", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.GetInstance", - "service": { - "shortName": "SecureSourceManager", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" - } - } - } - }, - { - "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_CreateInstance_async", - "title": "SecureSourceManager createInstance Sample", - "origin": "API_DEFINITION", - "description": " Creates a new instance in a given project and location.", - "canonical": true, - "file": "secure_source_manager.create_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateInstance", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.CreateInstance", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "instance_id", - "type": "TYPE_STRING" - }, - { - "name": "instance", - "type": ".google.cloud.securesourcemanager.v1.Instance" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SecureSourceManagerClient", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManagerClient" - }, - "method": { - "shortName": "CreateInstance", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.CreateInstance", - "service": { - "shortName": "SecureSourceManager", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" - } - } - } - }, - { - "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_DeleteInstance_async", - "title": "SecureSourceManager deleteInstance Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single instance.", - "canonical": true, - "file": "secure_source_manager.delete_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteInstance", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.DeleteInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SecureSourceManagerClient", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManagerClient" - }, - "method": { - "shortName": "DeleteInstance", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.DeleteInstance", - "service": { - "shortName": "SecureSourceManager", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" - } - } - } - }, - { - "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_ListRepositories_async", - "title": "SecureSourceManager listRepositories Sample", - "origin": "API_DEFINITION", - "description": " Lists Repositories in a given project and location. The instance field is required in the query parameter for requests using the securesourcemanager.googleapis.com endpoint.", - "canonical": true, - "file": "secure_source_manager.list_repositories.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRepositories", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.ListRepositories", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "instance", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securesourcemanager.v1.ListRepositoriesResponse", - "client": { - "shortName": "SecureSourceManagerClient", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManagerClient" - }, - "method": { - "shortName": "ListRepositories", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.ListRepositories", - "service": { - "shortName": "SecureSourceManager", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" - } - } - } - }, - { - "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_GetRepository_async", - "title": "SecureSourceManager getRepository Sample", - "origin": "API_DEFINITION", - "description": " Gets metadata of a repository.", - "canonical": true, - "file": "secure_source_manager.get_repository.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRepository", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.GetRepository", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securesourcemanager.v1.Repository", - "client": { - "shortName": "SecureSourceManagerClient", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManagerClient" - }, - "method": { - "shortName": "GetRepository", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.GetRepository", - "service": { - "shortName": "SecureSourceManager", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" - } - } - } - }, - { - "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_CreateRepository_async", - "title": "SecureSourceManager createRepository Sample", - "origin": "API_DEFINITION", - "description": " Creates a new repository in a given project and location. The Repository.Instance field is required in the request body for requests using the securesourcemanager.googleapis.com endpoint.", - "canonical": true, - "file": "secure_source_manager.create_repository.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateRepository", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.CreateRepository", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "repository", - "type": ".google.cloud.securesourcemanager.v1.Repository" - }, - { - "name": "repository_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SecureSourceManagerClient", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManagerClient" - }, - "method": { - "shortName": "CreateRepository", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.CreateRepository", - "service": { - "shortName": "SecureSourceManager", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" - } - } - } - }, - { - "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_UpdateRepository_async", - "title": "SecureSourceManager updateRepository Sample", - "origin": "API_DEFINITION", - "description": " Updates the metadata of a repository.", - "canonical": true, - "file": "secure_source_manager.update_repository.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateRepository", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.UpdateRepository", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "repository", - "type": ".google.cloud.securesourcemanager.v1.Repository" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SecureSourceManagerClient", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManagerClient" - }, - "method": { - "shortName": "UpdateRepository", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.UpdateRepository", - "service": { - "shortName": "SecureSourceManager", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" - } - } - } - }, - { - "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_DeleteRepository_async", - "title": "SecureSourceManager deleteRepository Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Repository.", - "canonical": true, - "file": "secure_source_manager.delete_repository.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteRepository", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.DeleteRepository", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SecureSourceManagerClient", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManagerClient" - }, - "method": { - "shortName": "DeleteRepository", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.DeleteRepository", - "service": { - "shortName": "SecureSourceManager", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" - } - } - } - }, - { - "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_ListHooks_async", - "title": "SecureSourceManager listHooks Sample", - "origin": "API_DEFINITION", - "description": " Lists hooks in a given repository.", - "canonical": true, - "file": "secure_source_manager.list_hooks.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListHooks", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.ListHooks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securesourcemanager.v1.ListHooksResponse", - "client": { - "shortName": "SecureSourceManagerClient", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManagerClient" - }, - "method": { - "shortName": "ListHooks", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.ListHooks", - "service": { - "shortName": "SecureSourceManager", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" - } - } - } - }, - { - "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_GetHook_async", - "title": "SecureSourceManager getHook Sample", - "origin": "API_DEFINITION", - "description": " Gets metadata of a hook.", - "canonical": true, - "file": "secure_source_manager.get_hook.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetHook", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.GetHook", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securesourcemanager.v1.Hook", - "client": { - "shortName": "SecureSourceManagerClient", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManagerClient" - }, - "method": { - "shortName": "GetHook", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.GetHook", - "service": { - "shortName": "SecureSourceManager", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" - } - } - } - }, - { - "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_CreateHook_async", - "title": "SecureSourceManager createHook Sample", - "origin": "API_DEFINITION", - "description": " Creates a new hook in a given repository.", - "canonical": true, - "file": "secure_source_manager.create_hook.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateHook", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.CreateHook", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "hook", - "type": ".google.cloud.securesourcemanager.v1.Hook" - }, - { - "name": "hook_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SecureSourceManagerClient", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManagerClient" - }, - "method": { - "shortName": "CreateHook", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.CreateHook", - "service": { - "shortName": "SecureSourceManager", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" - } - } - } - }, - { - "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_UpdateHook_async", - "title": "SecureSourceManager updateHook Sample", - "origin": "API_DEFINITION", - "description": " Updates the metadata of a hook.", - "canonical": true, - "file": "secure_source_manager.update_hook.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateHook", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.UpdateHook", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "hook", - "type": ".google.cloud.securesourcemanager.v1.Hook" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SecureSourceManagerClient", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManagerClient" - }, - "method": { - "shortName": "UpdateHook", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.UpdateHook", - "service": { - "shortName": "SecureSourceManager", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" - } - } - } - }, - { - "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_DeleteHook_async", - "title": "SecureSourceManager deleteHook Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Hook.", - "canonical": true, - "file": "secure_source_manager.delete_hook.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteHook", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.DeleteHook", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SecureSourceManagerClient", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManagerClient" - }, - "method": { - "shortName": "DeleteHook", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.DeleteHook", - "service": { - "shortName": "SecureSourceManager", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" - } - } - } - }, - { - "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_GetIamPolicyRepo_async", - "title": "SecureSourceManager getIamPolicyRepo Sample", - "origin": "API_DEFINITION", - "description": " Get IAM policy for a repository.", - "canonical": true, - "file": "secure_source_manager.get_iam_policy_repo.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicyRepo", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.GetIamPolicyRepo", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": ".google.iam.v1.GetPolicyOptions" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "SecureSourceManagerClient", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManagerClient" - }, - "method": { - "shortName": "GetIamPolicyRepo", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.GetIamPolicyRepo", - "service": { - "shortName": "SecureSourceManager", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" - } - } - } - }, - { - "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_SetIamPolicyRepo_async", - "title": "SecureSourceManager setIamPolicyRepo Sample", - "origin": "API_DEFINITION", - "description": " Set IAM policy on a repository.", - "canonical": true, - "file": "secure_source_manager.set_iam_policy_repo.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicyRepo", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.SetIamPolicyRepo", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.iam.v1.Policy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "SecureSourceManagerClient", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManagerClient" - }, - "method": { - "shortName": "SetIamPolicyRepo", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.SetIamPolicyRepo", - "service": { - "shortName": "SecureSourceManager", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" - } - } - } - }, - { - "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_TestIamPermissionsRepo_async", - "title": "SecureSourceManager testIamPermissionsRepo Sample", - "origin": "API_DEFINITION", - "description": " Test IAM permissions on a repository. IAM permission checks are not required on this method.", - "canonical": true, - "file": "secure_source_manager.test_iam_permissions_repo.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissionsRepo", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.TestIamPermissionsRepo", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "permissions", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.iam.v1.TestIamPermissionsResponse", - "client": { - "shortName": "SecureSourceManagerClient", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManagerClient" - }, - "method": { - "shortName": "TestIamPermissionsRepo", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.TestIamPermissionsRepo", - "service": { - "shortName": "SecureSourceManager", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" - } - } - } - }, - { - "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_CreateBranchRule_async", - "title": "SecureSourceManager createBranchRule Sample", - "origin": "API_DEFINITION", - "description": " CreateBranchRule creates a branch rule in a given repository.", - "canonical": true, - "file": "secure_source_manager.create_branch_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateBranchRule", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.CreateBranchRule", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "branch_rule", - "type": ".google.cloud.securesourcemanager.v1.BranchRule" - }, - { - "name": "branch_rule_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SecureSourceManagerClient", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManagerClient" - }, - "method": { - "shortName": "CreateBranchRule", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.CreateBranchRule", - "service": { - "shortName": "SecureSourceManager", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" - } - } - } - }, - { - "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_ListBranchRules_async", - "title": "SecureSourceManager listBranchRules Sample", - "origin": "API_DEFINITION", - "description": " ListBranchRules lists branch rules in a given repository.", - "canonical": true, - "file": "secure_source_manager.list_branch_rules.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBranchRules", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.ListBranchRules", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securesourcemanager.v1.ListBranchRulesResponse", - "client": { - "shortName": "SecureSourceManagerClient", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManagerClient" - }, - "method": { - "shortName": "ListBranchRules", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.ListBranchRules", - "service": { - "shortName": "SecureSourceManager", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" - } - } - } - }, - { - "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_GetBranchRule_async", - "title": "SecureSourceManager getBranchRule Sample", - "origin": "API_DEFINITION", - "description": " GetBranchRule gets a branch rule.", - "canonical": true, - "file": "secure_source_manager.get_branch_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBranchRule", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.GetBranchRule", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securesourcemanager.v1.BranchRule", - "client": { - "shortName": "SecureSourceManagerClient", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManagerClient" - }, - "method": { - "shortName": "GetBranchRule", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.GetBranchRule", - "service": { - "shortName": "SecureSourceManager", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" - } - } - } - }, - { - "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_UpdateBranchRule_async", - "title": "SecureSourceManager updateBranchRule Sample", - "origin": "API_DEFINITION", - "description": " UpdateBranchRule updates a branch rule.", - "canonical": true, - "file": "secure_source_manager.update_branch_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateBranchRule", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.UpdateBranchRule", - "async": true, - "parameters": [ - { - "name": "branch_rule", - "type": ".google.cloud.securesourcemanager.v1.BranchRule" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SecureSourceManagerClient", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManagerClient" - }, - "method": { - "shortName": "UpdateBranchRule", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.UpdateBranchRule", - "service": { - "shortName": "SecureSourceManager", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" - } - } - } - }, - { - "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_DeleteBranchRule_async", - "title": "SecureSourceManager deleteBranchRule Sample", - "origin": "API_DEFINITION", - "description": " DeleteBranchRule deletes a branch rule.", - "canonical": true, - "file": "secure_source_manager.delete_branch_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteBranchRule", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.DeleteBranchRule", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SecureSourceManagerClient", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManagerClient" - }, - "method": { - "shortName": "DeleteBranchRule", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.DeleteBranchRule", - "service": { - "shortName": "SecureSourceManager", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" - } - } - } - }, - { - "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_CreatePullRequest_async", - "title": "SecureSourceManager createPullRequest Sample", - "origin": "API_DEFINITION", - "description": " Creates a pull request.", - "canonical": true, - "file": "secure_source_manager.create_pull_request.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreatePullRequest", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.CreatePullRequest", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "pull_request", - "type": ".google.cloud.securesourcemanager.v1.PullRequest" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SecureSourceManagerClient", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManagerClient" - }, - "method": { - "shortName": "CreatePullRequest", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.CreatePullRequest", - "service": { - "shortName": "SecureSourceManager", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" - } - } - } - }, - { - "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_GetPullRequest_async", - "title": "SecureSourceManager getPullRequest Sample", - "origin": "API_DEFINITION", - "description": " Gets a pull request.", - "canonical": true, - "file": "secure_source_manager.get_pull_request.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPullRequest", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.GetPullRequest", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securesourcemanager.v1.PullRequest", - "client": { - "shortName": "SecureSourceManagerClient", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManagerClient" - }, - "method": { - "shortName": "GetPullRequest", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.GetPullRequest", - "service": { - "shortName": "SecureSourceManager", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" - } - } - } - }, - { - "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_ListPullRequests_async", - "title": "SecureSourceManager listPullRequests Sample", - "origin": "API_DEFINITION", - "description": " Lists pull requests in a repository.", - "canonical": true, - "file": "secure_source_manager.list_pull_requests.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPullRequests", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.ListPullRequests", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securesourcemanager.v1.ListPullRequestsResponse", - "client": { - "shortName": "SecureSourceManagerClient", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManagerClient" - }, - "method": { - "shortName": "ListPullRequests", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.ListPullRequests", - "service": { - "shortName": "SecureSourceManager", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" - } - } - } - }, - { - "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_UpdatePullRequest_async", - "title": "SecureSourceManager updatePullRequest Sample", - "origin": "API_DEFINITION", - "description": " Updates a pull request.", - "canonical": true, - "file": "secure_source_manager.update_pull_request.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdatePullRequest", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.UpdatePullRequest", - "async": true, - "parameters": [ - { - "name": "pull_request", - "type": ".google.cloud.securesourcemanager.v1.PullRequest" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SecureSourceManagerClient", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManagerClient" - }, - "method": { - "shortName": "UpdatePullRequest", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.UpdatePullRequest", - "service": { - "shortName": "SecureSourceManager", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" - } - } - } - }, - { - "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_MergePullRequest_async", - "title": "SecureSourceManager mergePullRequest Sample", - "origin": "API_DEFINITION", - "description": " Merges a pull request.", - "canonical": true, - "file": "secure_source_manager.merge_pull_request.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "MergePullRequest", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.MergePullRequest", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SecureSourceManagerClient", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManagerClient" - }, - "method": { - "shortName": "MergePullRequest", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.MergePullRequest", - "service": { - "shortName": "SecureSourceManager", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" - } - } - } - }, - { - "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_OpenPullRequest_async", - "title": "SecureSourceManager openPullRequest Sample", - "origin": "API_DEFINITION", - "description": " Opens a pull request.", - "canonical": true, - "file": "secure_source_manager.open_pull_request.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "OpenPullRequest", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.OpenPullRequest", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SecureSourceManagerClient", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManagerClient" - }, - "method": { - "shortName": "OpenPullRequest", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.OpenPullRequest", - "service": { - "shortName": "SecureSourceManager", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" - } - } - } - }, - { - "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_ClosePullRequest_async", - "title": "SecureSourceManager closePullRequest Sample", - "origin": "API_DEFINITION", - "description": " Closes a pull request without merging.", - "canonical": true, - "file": "secure_source_manager.close_pull_request.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ClosePullRequest", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.ClosePullRequest", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SecureSourceManagerClient", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManagerClient" - }, - "method": { - "shortName": "ClosePullRequest", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.ClosePullRequest", - "service": { - "shortName": "SecureSourceManager", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" - } - } - } - }, - { - "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_ListPullRequestFileDiffs_async", - "title": "SecureSourceManager listPullRequestFileDiffs Sample", - "origin": "API_DEFINITION", - "description": " Lists a pull request's file diffs.", - "canonical": true, - "file": "secure_source_manager.list_pull_request_file_diffs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPullRequestFileDiffs", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.ListPullRequestFileDiffs", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securesourcemanager.v1.ListPullRequestFileDiffsResponse", - "client": { - "shortName": "SecureSourceManagerClient", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManagerClient" - }, - "method": { - "shortName": "ListPullRequestFileDiffs", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.ListPullRequestFileDiffs", - "service": { - "shortName": "SecureSourceManager", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" - } - } - } - }, - { - "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_FetchTree_async", - "title": "SecureSourceManager fetchTree Sample", - "origin": "API_DEFINITION", - "description": " Fetches a tree from a repository.", - "canonical": true, - "file": "secure_source_manager.fetch_tree.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchTree", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.FetchTree", - "async": true, - "parameters": [ - { - "name": "repository", - "type": "TYPE_STRING" - }, - { - "name": "ref", - "type": "TYPE_STRING" - }, - { - "name": "recursive", - "type": "TYPE_BOOL" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securesourcemanager.v1.FetchTreeResponse", - "client": { - "shortName": "SecureSourceManagerClient", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManagerClient" - }, - "method": { - "shortName": "FetchTree", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.FetchTree", - "service": { - "shortName": "SecureSourceManager", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" - } - } - } - }, - { - "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_FetchBlob_async", - "title": "SecureSourceManager fetchBlob Sample", - "origin": "API_DEFINITION", - "description": " Fetches a blob from a repository.", - "canonical": true, - "file": "secure_source_manager.fetch_blob.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchBlob", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.FetchBlob", - "async": true, - "parameters": [ - { - "name": "repository", - "type": "TYPE_STRING" - }, - { - "name": "sha", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securesourcemanager.v1.FetchBlobResponse", - "client": { - "shortName": "SecureSourceManagerClient", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManagerClient" - }, - "method": { - "shortName": "FetchBlob", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.FetchBlob", - "service": { - "shortName": "SecureSourceManager", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" - } - } - } - }, - { - "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_CreateIssue_async", - "title": "SecureSourceManager createIssue Sample", - "origin": "API_DEFINITION", - "description": " Creates an issue.", - "canonical": true, - "file": "secure_source_manager.create_issue.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateIssue", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.CreateIssue", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "issue", - "type": ".google.cloud.securesourcemanager.v1.Issue" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SecureSourceManagerClient", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManagerClient" - }, - "method": { - "shortName": "CreateIssue", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.CreateIssue", - "service": { - "shortName": "SecureSourceManager", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" - } - } - } - }, - { - "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_GetIssue_async", - "title": "SecureSourceManager getIssue Sample", - "origin": "API_DEFINITION", - "description": " Gets an issue.", - "canonical": true, - "file": "secure_source_manager.get_issue.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIssue", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.GetIssue", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securesourcemanager.v1.Issue", - "client": { - "shortName": "SecureSourceManagerClient", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManagerClient" - }, - "method": { - "shortName": "GetIssue", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.GetIssue", - "service": { - "shortName": "SecureSourceManager", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" - } - } - } - }, - { - "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_ListIssues_async", - "title": "SecureSourceManager listIssues Sample", - "origin": "API_DEFINITION", - "description": " Lists issues in a repository.", - "canonical": true, - "file": "secure_source_manager.list_issues.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListIssues", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.ListIssues", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securesourcemanager.v1.ListIssuesResponse", - "client": { - "shortName": "SecureSourceManagerClient", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManagerClient" - }, - "method": { - "shortName": "ListIssues", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.ListIssues", - "service": { - "shortName": "SecureSourceManager", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" - } - } - } - }, - { - "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_UpdateIssue_async", - "title": "SecureSourceManager updateIssue Sample", - "origin": "API_DEFINITION", - "description": " Updates a issue.", - "canonical": true, - "file": "secure_source_manager.update_issue.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateIssue", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.UpdateIssue", - "async": true, - "parameters": [ - { - "name": "issue", - "type": ".google.cloud.securesourcemanager.v1.Issue" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SecureSourceManagerClient", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManagerClient" - }, - "method": { - "shortName": "UpdateIssue", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.UpdateIssue", - "service": { - "shortName": "SecureSourceManager", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" - } - } - } - }, - { - "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_DeleteIssue_async", - "title": "SecureSourceManager deleteIssue Sample", - "origin": "API_DEFINITION", - "description": " Deletes an issue.", - "canonical": true, - "file": "secure_source_manager.delete_issue.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteIssue", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.DeleteIssue", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SecureSourceManagerClient", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManagerClient" - }, - "method": { - "shortName": "DeleteIssue", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.DeleteIssue", - "service": { - "shortName": "SecureSourceManager", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" - } - } - } - }, - { - "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_OpenIssue_async", - "title": "SecureSourceManager openIssue Sample", - "origin": "API_DEFINITION", - "description": " Opens an issue.", - "canonical": true, - "file": "secure_source_manager.open_issue.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "OpenIssue", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.OpenIssue", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SecureSourceManagerClient", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManagerClient" - }, - "method": { - "shortName": "OpenIssue", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.OpenIssue", - "service": { - "shortName": "SecureSourceManager", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" - } - } - } - }, - { - "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_CloseIssue_async", - "title": "SecureSourceManager closeIssue Sample", - "origin": "API_DEFINITION", - "description": " Closes an issue.", - "canonical": true, - "file": "secure_source_manager.close_issue.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CloseIssue", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.CloseIssue", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SecureSourceManagerClient", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManagerClient" - }, - "method": { - "shortName": "CloseIssue", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.CloseIssue", - "service": { - "shortName": "SecureSourceManager", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" - } - } - } - }, - { - "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_GetPullRequestComment_async", - "title": "SecureSourceManager getPullRequestComment Sample", - "origin": "API_DEFINITION", - "description": " Gets a pull request comment.", - "canonical": true, - "file": "secure_source_manager.get_pull_request_comment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPullRequestComment", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.GetPullRequestComment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securesourcemanager.v1.PullRequestComment", - "client": { - "shortName": "SecureSourceManagerClient", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManagerClient" - }, - "method": { - "shortName": "GetPullRequestComment", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.GetPullRequestComment", - "service": { - "shortName": "SecureSourceManager", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" - } - } - } - }, - { - "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_ListPullRequestComments_async", - "title": "SecureSourceManager listPullRequestComments Sample", - "origin": "API_DEFINITION", - "description": " Lists pull request comments.", - "canonical": true, - "file": "secure_source_manager.list_pull_request_comments.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPullRequestComments", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.ListPullRequestComments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securesourcemanager.v1.ListPullRequestCommentsResponse", - "client": { - "shortName": "SecureSourceManagerClient", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManagerClient" - }, - "method": { - "shortName": "ListPullRequestComments", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.ListPullRequestComments", - "service": { - "shortName": "SecureSourceManager", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" - } - } - } - }, - { - "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_CreatePullRequestComment_async", - "title": "SecureSourceManager createPullRequestComment Sample", - "origin": "API_DEFINITION", - "description": " Creates a pull request comment. This function is used to create a single PullRequestComment of type Comment, or a single PullRequestComment of type Code that's replying to another PullRequestComment of type Code. Use BatchCreatePullRequestComments to create multiple PullRequestComments for code reviews.", - "canonical": true, - "file": "secure_source_manager.create_pull_request_comment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreatePullRequestComment", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.CreatePullRequestComment", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "pull_request_comment", - "type": ".google.cloud.securesourcemanager.v1.PullRequestComment" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SecureSourceManagerClient", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManagerClient" - }, - "method": { - "shortName": "CreatePullRequestComment", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.CreatePullRequestComment", - "service": { - "shortName": "SecureSourceManager", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" - } - } - } - }, - { - "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_UpdatePullRequestComment_async", - "title": "SecureSourceManager updatePullRequestComment Sample", - "origin": "API_DEFINITION", - "description": " Updates a pull request comment.", - "canonical": true, - "file": "secure_source_manager.update_pull_request_comment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdatePullRequestComment", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.UpdatePullRequestComment", - "async": true, - "parameters": [ - { - "name": "pull_request_comment", - "type": ".google.cloud.securesourcemanager.v1.PullRequestComment" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SecureSourceManagerClient", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManagerClient" - }, - "method": { - "shortName": "UpdatePullRequestComment", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.UpdatePullRequestComment", - "service": { - "shortName": "SecureSourceManager", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" - } - } - } - }, - { - "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_DeletePullRequestComment_async", - "title": "SecureSourceManager deletePullRequestComment Sample", - "origin": "API_DEFINITION", - "description": " Deletes a pull request comment.", - "canonical": true, - "file": "secure_source_manager.delete_pull_request_comment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePullRequestComment", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.DeletePullRequestComment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SecureSourceManagerClient", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManagerClient" - }, - "method": { - "shortName": "DeletePullRequestComment", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.DeletePullRequestComment", - "service": { - "shortName": "SecureSourceManager", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" - } - } - } - }, - { - "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_BatchCreatePullRequestComments_async", - "title": "SecureSourceManager batchCreatePullRequestComments Sample", - "origin": "API_DEFINITION", - "description": " Batch creates pull request comments. This function is used to create multiple PullRequestComments for code review. There needs to be exactly one PullRequestComment of type Review, and at most 100 PullRequestComments of type Code per request. The Position of the code comments must be unique within the request.", - "canonical": true, - "file": "secure_source_manager.batch_create_pull_request_comments.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCreatePullRequestComments", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.BatchCreatePullRequestComments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SecureSourceManagerClient", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManagerClient" - }, - "method": { - "shortName": "BatchCreatePullRequestComments", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.BatchCreatePullRequestComments", - "service": { - "shortName": "SecureSourceManager", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" - } - } - } - }, - { - "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_ResolvePullRequestComments_async", - "title": "SecureSourceManager resolvePullRequestComments Sample", - "origin": "API_DEFINITION", - "description": " Resolves pull request comments. A list of PullRequestComment names must be provided. The PullRequestComment names must be in the same conversation thread. If auto_fill is set, all comments in the conversation thread will be resolved.", - "canonical": true, - "file": "secure_source_manager.resolve_pull_request_comments.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResolvePullRequestComments", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.ResolvePullRequestComments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "names", - "type": "TYPE_STRING[]" - }, - { - "name": "auto_fill", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SecureSourceManagerClient", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManagerClient" - }, - "method": { - "shortName": "ResolvePullRequestComments", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.ResolvePullRequestComments", - "service": { - "shortName": "SecureSourceManager", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" - } - } - } - }, - { - "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_UnresolvePullRequestComments_async", - "title": "SecureSourceManager unresolvePullRequestComments Sample", - "origin": "API_DEFINITION", - "description": " Unresolves pull request comments. A list of PullRequestComment names must be provided. The PullRequestComment names must be in the same conversation thread. If auto_fill is set, all comments in the conversation thread will be unresolved.", - "canonical": true, - "file": "secure_source_manager.unresolve_pull_request_comments.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UnresolvePullRequestComments", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.UnresolvePullRequestComments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "names", - "type": "TYPE_STRING[]" - }, - { - "name": "auto_fill", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SecureSourceManagerClient", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManagerClient" - }, - "method": { - "shortName": "UnresolvePullRequestComments", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.UnresolvePullRequestComments", - "service": { - "shortName": "SecureSourceManager", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" - } - } - } - }, - { - "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_CreateIssueComment_async", - "title": "SecureSourceManager createIssueComment Sample", - "origin": "API_DEFINITION", - "description": " Creates an issue comment.", - "canonical": true, - "file": "secure_source_manager.create_issue_comment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateIssueComment", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.CreateIssueComment", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "issue_comment", - "type": ".google.cloud.securesourcemanager.v1.IssueComment" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SecureSourceManagerClient", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManagerClient" - }, - "method": { - "shortName": "CreateIssueComment", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.CreateIssueComment", - "service": { - "shortName": "SecureSourceManager", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" - } - } - } - }, - { - "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_GetIssueComment_async", - "title": "SecureSourceManager getIssueComment Sample", - "origin": "API_DEFINITION", - "description": " Gets an issue comment.", - "canonical": true, - "file": "secure_source_manager.get_issue_comment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIssueComment", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.GetIssueComment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securesourcemanager.v1.IssueComment", - "client": { - "shortName": "SecureSourceManagerClient", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManagerClient" - }, - "method": { - "shortName": "GetIssueComment", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.GetIssueComment", - "service": { - "shortName": "SecureSourceManager", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" - } - } - } - }, - { - "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_ListIssueComments_async", - "title": "SecureSourceManager listIssueComments Sample", - "origin": "API_DEFINITION", - "description": " Lists comments in an issue.", - "canonical": true, - "file": "secure_source_manager.list_issue_comments.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListIssueComments", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.ListIssueComments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securesourcemanager.v1.ListIssueCommentsResponse", - "client": { - "shortName": "SecureSourceManagerClient", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManagerClient" - }, - "method": { - "shortName": "ListIssueComments", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.ListIssueComments", - "service": { - "shortName": "SecureSourceManager", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" - } - } - } - }, - { - "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_UpdateIssueComment_async", - "title": "SecureSourceManager updateIssueComment Sample", - "origin": "API_DEFINITION", - "description": " Updates an issue comment.", - "canonical": true, - "file": "secure_source_manager.update_issue_comment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateIssueComment", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.UpdateIssueComment", - "async": true, - "parameters": [ - { - "name": "issue_comment", - "type": ".google.cloud.securesourcemanager.v1.IssueComment" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SecureSourceManagerClient", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManagerClient" - }, - "method": { - "shortName": "UpdateIssueComment", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.UpdateIssueComment", - "service": { - "shortName": "SecureSourceManager", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" - } - } - } - }, - { - "regionTag": "securesourcemanager_v1_generated_SecureSourceManager_DeleteIssueComment_async", - "title": "SecureSourceManager deleteIssueComment Sample", - "origin": "API_DEFINITION", - "description": " Deletes an issue comment.", - "canonical": true, - "file": "secure_source_manager.delete_issue_comment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteIssueComment", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.DeleteIssueComment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SecureSourceManagerClient", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManagerClient" - }, - "method": { - "shortName": "DeleteIssueComment", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager.DeleteIssueComment", - "service": { - "shortName": "SecureSourceManager", - "fullName": "google.cloud.securesourcemanager.v1.SecureSourceManager" - } - } - } - } - ] -} diff --git a/packages/google-cloud-security-privateca/samples/generated/v1/snippet_metadata_google.cloud.security.privateca.v1.json b/packages/google-cloud-security-privateca/samples/generated/v1/snippet_metadata_google.cloud.security.privateca.v1.json deleted file mode 100644 index 72d7dcb4ed20..000000000000 --- a/packages/google-cloud-security-privateca/samples/generated/v1/snippet_metadata_google.cloud.security.privateca.v1.json +++ /dev/null @@ -1,1419 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-privateca", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.security.privateca.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "privateca_v1_generated_CertificateAuthorityService_CreateCertificate_async", - "title": "CertificateAuthorityService createCertificate Sample", - "origin": "API_DEFINITION", - "description": " Create a new [Certificate][google.cloud.security.privateca.v1.Certificate] in a given Project, Location from a particular [CaPool][google.cloud.security.privateca.v1.CaPool].", - "canonical": true, - "file": "certificate_authority_service.create_certificate.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 118, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCertificate", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.CreateCertificate", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "certificate_id", - "type": "TYPE_STRING" - }, - { - "name": "certificate", - "type": ".google.cloud.security.privateca.v1.Certificate" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "issuing_certificate_authority_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.security.privateca.v1.Certificate", - "client": { - "shortName": "CertificateAuthorityServiceClient", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityServiceClient" - }, - "method": { - "shortName": "CreateCertificate", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.CreateCertificate", - "service": { - "shortName": "CertificateAuthorityService", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" - } - } - } - }, - { - "regionTag": "privateca_v1_generated_CertificateAuthorityService_GetCertificate_async", - "title": "CertificateAuthorityService getCertificate Sample", - "origin": "API_DEFINITION", - "description": " Returns a [Certificate][google.cloud.security.privateca.v1.Certificate].", - "canonical": true, - "file": "certificate_authority_service.get_certificate.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCertificate", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.GetCertificate", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.security.privateca.v1.Certificate", - "client": { - "shortName": "CertificateAuthorityServiceClient", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityServiceClient" - }, - "method": { - "shortName": "GetCertificate", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.GetCertificate", - "service": { - "shortName": "CertificateAuthorityService", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" - } - } - } - }, - { - "regionTag": "privateca_v1_generated_CertificateAuthorityService_ListCertificates_async", - "title": "CertificateAuthorityService listCertificates Sample", - "origin": "API_DEFINITION", - "description": " Lists [Certificates][google.cloud.security.privateca.v1.Certificate].", - "canonical": true, - "file": "certificate_authority_service.list_certificates.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 92, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCertificates", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificates", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.security.privateca.v1.ListCertificatesResponse", - "client": { - "shortName": "CertificateAuthorityServiceClient", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityServiceClient" - }, - "method": { - "shortName": "ListCertificates", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificates", - "service": { - "shortName": "CertificateAuthorityService", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" - } - } - } - }, - { - "regionTag": "privateca_v1_generated_CertificateAuthorityService_RevokeCertificate_async", - "title": "CertificateAuthorityService revokeCertificate Sample", - "origin": "API_DEFINITION", - "description": " Revoke a [Certificate][google.cloud.security.privateca.v1.Certificate].", - "canonical": true, - "file": "certificate_authority_service.revoke_certificate.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RevokeCertificate", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.RevokeCertificate", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "reason", - "type": ".google.cloud.security.privateca.v1.RevocationReason" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.security.privateca.v1.Certificate", - "client": { - "shortName": "CertificateAuthorityServiceClient", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityServiceClient" - }, - "method": { - "shortName": "RevokeCertificate", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.RevokeCertificate", - "service": { - "shortName": "CertificateAuthorityService", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" - } - } - } - }, - { - "regionTag": "privateca_v1_generated_CertificateAuthorityService_UpdateCertificate_async", - "title": "CertificateAuthorityService updateCertificate Sample", - "origin": "API_DEFINITION", - "description": " Update a [Certificate][google.cloud.security.privateca.v1.Certificate]. Currently, the only field you can update is the [labels][google.cloud.security.privateca.v1.Certificate.labels] field.", - "canonical": true, - "file": "certificate_authority_service.update_certificate.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCertificate", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCertificate", - "async": true, - "parameters": [ - { - "name": "certificate", - "type": ".google.cloud.security.privateca.v1.Certificate" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.security.privateca.v1.Certificate", - "client": { - "shortName": "CertificateAuthorityServiceClient", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityServiceClient" - }, - "method": { - "shortName": "UpdateCertificate", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCertificate", - "service": { - "shortName": "CertificateAuthorityService", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" - } - } - } - }, - { - "regionTag": "privateca_v1_generated_CertificateAuthorityService_ActivateCertificateAuthority_async", - "title": "CertificateAuthorityService activateCertificateAuthority Sample", - "origin": "API_DEFINITION", - "description": " Activate a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that is in state [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. After the parent Certificate Authority signs a certificate signing request from [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr], this method can complete the activation process.", - "canonical": true, - "file": "certificate_authority_service.activate_certificate_authority.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ActivateCertificateAuthority", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.ActivateCertificateAuthority", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "pem_ca_certificate", - "type": "TYPE_STRING" - }, - { - "name": "subordinate_config", - "type": ".google.cloud.security.privateca.v1.SubordinateConfig" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CertificateAuthorityServiceClient", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityServiceClient" - }, - "method": { - "shortName": "ActivateCertificateAuthority", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.ActivateCertificateAuthority", - "service": { - "shortName": "CertificateAuthorityService", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" - } - } - } - }, - { - "regionTag": "privateca_v1_generated_CertificateAuthorityService_CreateCertificateAuthority_async", - "title": "CertificateAuthorityService createCertificateAuthority Sample", - "origin": "API_DEFINITION", - "description": " Create a new [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] in a given Project and Location.", - "canonical": true, - "file": "certificate_authority_service.create_certificate_authority.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCertificateAuthority", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.CreateCertificateAuthority", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "certificate_authority_id", - "type": "TYPE_STRING" - }, - { - "name": "certificate_authority", - "type": ".google.cloud.security.privateca.v1.CertificateAuthority" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CertificateAuthorityServiceClient", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityServiceClient" - }, - "method": { - "shortName": "CreateCertificateAuthority", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.CreateCertificateAuthority", - "service": { - "shortName": "CertificateAuthorityService", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" - } - } - } - }, - { - "regionTag": "privateca_v1_generated_CertificateAuthorityService_DisableCertificateAuthority_async", - "title": "CertificateAuthorityService disableCertificateAuthority Sample", - "origin": "API_DEFINITION", - "description": " Disable a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].", - "canonical": true, - "file": "certificate_authority_service.disable_certificate_authority.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DisableCertificateAuthority", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.DisableCertificateAuthority", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "ignore_dependent_resources", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CertificateAuthorityServiceClient", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityServiceClient" - }, - "method": { - "shortName": "DisableCertificateAuthority", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.DisableCertificateAuthority", - "service": { - "shortName": "CertificateAuthorityService", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" - } - } - } - }, - { - "regionTag": "privateca_v1_generated_CertificateAuthorityService_EnableCertificateAuthority_async", - "title": "CertificateAuthorityService enableCertificateAuthority Sample", - "origin": "API_DEFINITION", - "description": " Enable a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].", - "canonical": true, - "file": "certificate_authority_service.enable_certificate_authority.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "EnableCertificateAuthority", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.EnableCertificateAuthority", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CertificateAuthorityServiceClient", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityServiceClient" - }, - "method": { - "shortName": "EnableCertificateAuthority", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.EnableCertificateAuthority", - "service": { - "shortName": "CertificateAuthorityService", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" - } - } - } - }, - { - "regionTag": "privateca_v1_generated_CertificateAuthorityService_FetchCertificateAuthorityCsr_async", - "title": "CertificateAuthorityService fetchCertificateAuthorityCsr Sample", - "origin": "API_DEFINITION", - "description": " Fetch a certificate signing request (CSR) from a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that is in state [AWAITING_USER_ACTIVATION][google.cloud.security.privateca.v1.CertificateAuthority.State.AWAITING_USER_ACTIVATION] and is of type [SUBORDINATE][google.cloud.security.privateca.v1.CertificateAuthority.Type.SUBORDINATE]. The CSR must then be signed by the desired parent Certificate Authority, which could be another [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] resource, or could be an on-prem certificate authority. See also [ActivateCertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthorityService.ActivateCertificateAuthority].", - "canonical": true, - "file": "certificate_authority_service.fetch_certificate_authority_csr.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchCertificateAuthorityCsr", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.security.privateca.v1.FetchCertificateAuthorityCsrResponse", - "client": { - "shortName": "CertificateAuthorityServiceClient", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityServiceClient" - }, - "method": { - "shortName": "FetchCertificateAuthorityCsr", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCertificateAuthorityCsr", - "service": { - "shortName": "CertificateAuthorityService", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" - } - } - } - }, - { - "regionTag": "privateca_v1_generated_CertificateAuthorityService_GetCertificateAuthority_async", - "title": "CertificateAuthorityService getCertificateAuthority Sample", - "origin": "API_DEFINITION", - "description": " Returns a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].", - "canonical": true, - "file": "certificate_authority_service.get_certificate_authority.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCertificateAuthority", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.GetCertificateAuthority", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.security.privateca.v1.CertificateAuthority", - "client": { - "shortName": "CertificateAuthorityServiceClient", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityServiceClient" - }, - "method": { - "shortName": "GetCertificateAuthority", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.GetCertificateAuthority", - "service": { - "shortName": "CertificateAuthorityService", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" - } - } - } - }, - { - "regionTag": "privateca_v1_generated_CertificateAuthorityService_ListCertificateAuthorities_async", - "title": "CertificateAuthorityService listCertificateAuthorities Sample", - "origin": "API_DEFINITION", - "description": " Lists [CertificateAuthorities][google.cloud.security.privateca.v1.CertificateAuthority].", - "canonical": true, - "file": "certificate_authority_service.list_certificate_authorities.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCertificateAuthorities", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificateAuthorities", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.security.privateca.v1.ListCertificateAuthoritiesResponse", - "client": { - "shortName": "CertificateAuthorityServiceClient", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityServiceClient" - }, - "method": { - "shortName": "ListCertificateAuthorities", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificateAuthorities", - "service": { - "shortName": "CertificateAuthorityService", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" - } - } - } - }, - { - "regionTag": "privateca_v1_generated_CertificateAuthorityService_UndeleteCertificateAuthority_async", - "title": "CertificateAuthorityService undeleteCertificateAuthority Sample", - "origin": "API_DEFINITION", - "description": " Undelete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] that has been deleted.", - "canonical": true, - "file": "certificate_authority_service.undelete_certificate_authority.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UndeleteCertificateAuthority", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.UndeleteCertificateAuthority", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CertificateAuthorityServiceClient", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityServiceClient" - }, - "method": { - "shortName": "UndeleteCertificateAuthority", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.UndeleteCertificateAuthority", - "service": { - "shortName": "CertificateAuthorityService", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" - } - } - } - }, - { - "regionTag": "privateca_v1_generated_CertificateAuthorityService_DeleteCertificateAuthority_async", - "title": "CertificateAuthorityService deleteCertificateAuthority Sample", - "origin": "API_DEFINITION", - "description": " Delete a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].", - "canonical": true, - "file": "certificate_authority_service.delete_certificate_authority.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 88, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCertificateAuthority", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.DeleteCertificateAuthority", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "ignore_active_certificates", - "type": "TYPE_BOOL" - }, - { - "name": "skip_grace_period", - "type": "TYPE_BOOL" - }, - { - "name": "ignore_dependent_resources", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CertificateAuthorityServiceClient", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityServiceClient" - }, - "method": { - "shortName": "DeleteCertificateAuthority", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.DeleteCertificateAuthority", - "service": { - "shortName": "CertificateAuthorityService", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" - } - } - } - }, - { - "regionTag": "privateca_v1_generated_CertificateAuthorityService_UpdateCertificateAuthority_async", - "title": "CertificateAuthorityService updateCertificateAuthority Sample", - "origin": "API_DEFINITION", - "description": " Update a [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority].", - "canonical": true, - "file": "certificate_authority_service.update_certificate_authority.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCertificateAuthority", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCertificateAuthority", - "async": true, - "parameters": [ - { - "name": "certificate_authority", - "type": ".google.cloud.security.privateca.v1.CertificateAuthority" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CertificateAuthorityServiceClient", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityServiceClient" - }, - "method": { - "shortName": "UpdateCertificateAuthority", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCertificateAuthority", - "service": { - "shortName": "CertificateAuthorityService", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" - } - } - } - }, - { - "regionTag": "privateca_v1_generated_CertificateAuthorityService_CreateCaPool_async", - "title": "CertificateAuthorityService createCaPool Sample", - "origin": "API_DEFINITION", - "description": " Create a [CaPool][google.cloud.security.privateca.v1.CaPool].", - "canonical": true, - "file": "certificate_authority_service.create_ca_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCaPool", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.CreateCaPool", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "ca_pool_id", - "type": "TYPE_STRING" - }, - { - "name": "ca_pool", - "type": ".google.cloud.security.privateca.v1.CaPool" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CertificateAuthorityServiceClient", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityServiceClient" - }, - "method": { - "shortName": "CreateCaPool", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.CreateCaPool", - "service": { - "shortName": "CertificateAuthorityService", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" - } - } - } - }, - { - "regionTag": "privateca_v1_generated_CertificateAuthorityService_UpdateCaPool_async", - "title": "CertificateAuthorityService updateCaPool Sample", - "origin": "API_DEFINITION", - "description": " Update a [CaPool][google.cloud.security.privateca.v1.CaPool].", - "canonical": true, - "file": "certificate_authority_service.update_ca_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCaPool", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCaPool", - "async": true, - "parameters": [ - { - "name": "ca_pool", - "type": ".google.cloud.security.privateca.v1.CaPool" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CertificateAuthorityServiceClient", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityServiceClient" - }, - "method": { - "shortName": "UpdateCaPool", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCaPool", - "service": { - "shortName": "CertificateAuthorityService", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" - } - } - } - }, - { - "regionTag": "privateca_v1_generated_CertificateAuthorityService_GetCaPool_async", - "title": "CertificateAuthorityService getCaPool Sample", - "origin": "API_DEFINITION", - "description": " Returns a [CaPool][google.cloud.security.privateca.v1.CaPool].", - "canonical": true, - "file": "certificate_authority_service.get_ca_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCaPool", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.GetCaPool", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.security.privateca.v1.CaPool", - "client": { - "shortName": "CertificateAuthorityServiceClient", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityServiceClient" - }, - "method": { - "shortName": "GetCaPool", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.GetCaPool", - "service": { - "shortName": "CertificateAuthorityService", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" - } - } - } - }, - { - "regionTag": "privateca_v1_generated_CertificateAuthorityService_ListCaPools_async", - "title": "CertificateAuthorityService listCaPools Sample", - "origin": "API_DEFINITION", - "description": " Lists [CaPools][google.cloud.security.privateca.v1.CaPool].", - "canonical": true, - "file": "certificate_authority_service.list_ca_pools.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCaPools", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.ListCaPools", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.security.privateca.v1.ListCaPoolsResponse", - "client": { - "shortName": "CertificateAuthorityServiceClient", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityServiceClient" - }, - "method": { - "shortName": "ListCaPools", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.ListCaPools", - "service": { - "shortName": "CertificateAuthorityService", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" - } - } - } - }, - { - "regionTag": "privateca_v1_generated_CertificateAuthorityService_DeleteCaPool_async", - "title": "CertificateAuthorityService deleteCaPool Sample", - "origin": "API_DEFINITION", - "description": " Delete a [CaPool][google.cloud.security.privateca.v1.CaPool].", - "canonical": true, - "file": "certificate_authority_service.delete_ca_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCaPool", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.DeleteCaPool", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "ignore_dependent_resources", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CertificateAuthorityServiceClient", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityServiceClient" - }, - "method": { - "shortName": "DeleteCaPool", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.DeleteCaPool", - "service": { - "shortName": "CertificateAuthorityService", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" - } - } - } - }, - { - "regionTag": "privateca_v1_generated_CertificateAuthorityService_FetchCaCerts_async", - "title": "CertificateAuthorityService fetchCaCerts Sample", - "origin": "API_DEFINITION", - "description": " FetchCaCerts returns the current trust anchor for the [CaPool][google.cloud.security.privateca.v1.CaPool]. This will include CA certificate chains for all certificate authorities in the ENABLED, DISABLED, or STAGED states.", - "canonical": true, - "file": "certificate_authority_service.fetch_ca_certs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchCaCerts", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCaCerts", - "async": true, - "parameters": [ - { - "name": "ca_pool", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.security.privateca.v1.FetchCaCertsResponse", - "client": { - "shortName": "CertificateAuthorityServiceClient", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityServiceClient" - }, - "method": { - "shortName": "FetchCaCerts", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.FetchCaCerts", - "service": { - "shortName": "CertificateAuthorityService", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" - } - } - } - }, - { - "regionTag": "privateca_v1_generated_CertificateAuthorityService_GetCertificateRevocationList_async", - "title": "CertificateAuthorityService getCertificateRevocationList Sample", - "origin": "API_DEFINITION", - "description": " Returns a [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].", - "canonical": true, - "file": "certificate_authority_service.get_certificate_revocation_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCertificateRevocationList", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.GetCertificateRevocationList", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.security.privateca.v1.CertificateRevocationList", - "client": { - "shortName": "CertificateAuthorityServiceClient", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityServiceClient" - }, - "method": { - "shortName": "GetCertificateRevocationList", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.GetCertificateRevocationList", - "service": { - "shortName": "CertificateAuthorityService", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" - } - } - } - }, - { - "regionTag": "privateca_v1_generated_CertificateAuthorityService_ListCertificateRevocationLists_async", - "title": "CertificateAuthorityService listCertificateRevocationLists Sample", - "origin": "API_DEFINITION", - "description": " Lists [CertificateRevocationLists][google.cloud.security.privateca.v1.CertificateRevocationList].", - "canonical": true, - "file": "certificate_authority_service.list_certificate_revocation_lists.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCertificateRevocationLists", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificateRevocationLists", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.security.privateca.v1.ListCertificateRevocationListsResponse", - "client": { - "shortName": "CertificateAuthorityServiceClient", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityServiceClient" - }, - "method": { - "shortName": "ListCertificateRevocationLists", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificateRevocationLists", - "service": { - "shortName": "CertificateAuthorityService", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" - } - } - } - }, - { - "regionTag": "privateca_v1_generated_CertificateAuthorityService_UpdateCertificateRevocationList_async", - "title": "CertificateAuthorityService updateCertificateRevocationList Sample", - "origin": "API_DEFINITION", - "description": " Update a [CertificateRevocationList][google.cloud.security.privateca.v1.CertificateRevocationList].", - "canonical": true, - "file": "certificate_authority_service.update_certificate_revocation_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCertificateRevocationList", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCertificateRevocationList", - "async": true, - "parameters": [ - { - "name": "certificate_revocation_list", - "type": ".google.cloud.security.privateca.v1.CertificateRevocationList" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CertificateAuthorityServiceClient", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityServiceClient" - }, - "method": { - "shortName": "UpdateCertificateRevocationList", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCertificateRevocationList", - "service": { - "shortName": "CertificateAuthorityService", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" - } - } - } - }, - { - "regionTag": "privateca_v1_generated_CertificateAuthorityService_CreateCertificateTemplate_async", - "title": "CertificateAuthorityService createCertificateTemplate Sample", - "origin": "API_DEFINITION", - "description": " Create a new [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate] in a given Project and Location.", - "canonical": true, - "file": "certificate_authority_service.create_certificate_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCertificateTemplate", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.CreateCertificateTemplate", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "certificate_template_id", - "type": "TYPE_STRING" - }, - { - "name": "certificate_template", - "type": ".google.cloud.security.privateca.v1.CertificateTemplate" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CertificateAuthorityServiceClient", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityServiceClient" - }, - "method": { - "shortName": "CreateCertificateTemplate", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.CreateCertificateTemplate", - "service": { - "shortName": "CertificateAuthorityService", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" - } - } - } - }, - { - "regionTag": "privateca_v1_generated_CertificateAuthorityService_DeleteCertificateTemplate_async", - "title": "CertificateAuthorityService deleteCertificateTemplate Sample", - "origin": "API_DEFINITION", - "description": " DeleteCertificateTemplate deletes a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].", - "canonical": true, - "file": "certificate_authority_service.delete_certificate_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCertificateTemplate", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.DeleteCertificateTemplate", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CertificateAuthorityServiceClient", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityServiceClient" - }, - "method": { - "shortName": "DeleteCertificateTemplate", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.DeleteCertificateTemplate", - "service": { - "shortName": "CertificateAuthorityService", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" - } - } - } - }, - { - "regionTag": "privateca_v1_generated_CertificateAuthorityService_GetCertificateTemplate_async", - "title": "CertificateAuthorityService getCertificateTemplate Sample", - "origin": "API_DEFINITION", - "description": " Returns a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].", - "canonical": true, - "file": "certificate_authority_service.get_certificate_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCertificateTemplate", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.GetCertificateTemplate", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.security.privateca.v1.CertificateTemplate", - "client": { - "shortName": "CertificateAuthorityServiceClient", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityServiceClient" - }, - "method": { - "shortName": "GetCertificateTemplate", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.GetCertificateTemplate", - "service": { - "shortName": "CertificateAuthorityService", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" - } - } - } - }, - { - "regionTag": "privateca_v1_generated_CertificateAuthorityService_ListCertificateTemplates_async", - "title": "CertificateAuthorityService listCertificateTemplates Sample", - "origin": "API_DEFINITION", - "description": " Lists [CertificateTemplates][google.cloud.security.privateca.v1.CertificateTemplate].", - "canonical": true, - "file": "certificate_authority_service.list_certificate_templates.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCertificateTemplates", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificateTemplates", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.security.privateca.v1.ListCertificateTemplatesResponse", - "client": { - "shortName": "CertificateAuthorityServiceClient", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityServiceClient" - }, - "method": { - "shortName": "ListCertificateTemplates", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.ListCertificateTemplates", - "service": { - "shortName": "CertificateAuthorityService", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" - } - } - } - }, - { - "regionTag": "privateca_v1_generated_CertificateAuthorityService_UpdateCertificateTemplate_async", - "title": "CertificateAuthorityService updateCertificateTemplate Sample", - "origin": "API_DEFINITION", - "description": " Update a [CertificateTemplate][google.cloud.security.privateca.v1.CertificateTemplate].", - "canonical": true, - "file": "certificate_authority_service.update_certificate_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCertificateTemplate", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCertificateTemplate", - "async": true, - "parameters": [ - { - "name": "certificate_template", - "type": ".google.cloud.security.privateca.v1.CertificateTemplate" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CertificateAuthorityServiceClient", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityServiceClient" - }, - "method": { - "shortName": "UpdateCertificateTemplate", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService.UpdateCertificateTemplate", - "service": { - "shortName": "CertificateAuthorityService", - "fullName": "google.cloud.security.privateca.v1.CertificateAuthorityService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-security-privateca/samples/generated/v1beta1/snippet_metadata_google.cloud.security.privateca.v1beta1.json b/packages/google-cloud-security-privateca/samples/generated/v1beta1/snippet_metadata_google.cloud.security.privateca.v1beta1.json deleted file mode 100644 index de0c1f8e8433..000000000000 --- a/packages/google-cloud-security-privateca/samples/generated/v1beta1/snippet_metadata_google.cloud.security.privateca.v1beta1.json +++ /dev/null @@ -1,963 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-privateca", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.security.privateca.v1beta1", - "version": "v1beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "privateca_v1beta1_generated_CertificateAuthorityService_CreateCertificate_async", - "title": "CertificateAuthorityService createCertificate Sample", - "origin": "API_DEFINITION", - "description": " Create a new [Certificate][google.cloud.security.privateca.v1beta1.Certificate] in a given Project, Location from a particular [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].", - "canonical": true, - "file": "certificate_authority_service.create_certificate.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCertificate", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService.CreateCertificate", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "certificate_id", - "type": "TYPE_STRING" - }, - { - "name": "certificate", - "type": ".google.cloud.security.privateca.v1beta1.Certificate" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.security.privateca.v1beta1.Certificate", - "client": { - "shortName": "CertificateAuthorityServiceClient", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient" - }, - "method": { - "shortName": "CreateCertificate", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService.CreateCertificate", - "service": { - "shortName": "CertificateAuthorityService", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService" - } - } - } - }, - { - "regionTag": "privateca_v1beta1_generated_CertificateAuthorityService_GetCertificate_async", - "title": "CertificateAuthorityService getCertificate Sample", - "origin": "API_DEFINITION", - "description": " Returns a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].", - "canonical": true, - "file": "certificate_authority_service.get_certificate.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCertificate", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService.GetCertificate", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.security.privateca.v1beta1.Certificate", - "client": { - "shortName": "CertificateAuthorityServiceClient", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient" - }, - "method": { - "shortName": "GetCertificate", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService.GetCertificate", - "service": { - "shortName": "CertificateAuthorityService", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService" - } - } - } - }, - { - "regionTag": "privateca_v1beta1_generated_CertificateAuthorityService_ListCertificates_async", - "title": "CertificateAuthorityService listCertificates Sample", - "origin": "API_DEFINITION", - "description": " Lists [Certificates][google.cloud.security.privateca.v1beta1.Certificate].", - "canonical": true, - "file": "certificate_authority_service.list_certificates.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCertificates", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ListCertificates", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.security.privateca.v1beta1.ListCertificatesResponse", - "client": { - "shortName": "CertificateAuthorityServiceClient", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient" - }, - "method": { - "shortName": "ListCertificates", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ListCertificates", - "service": { - "shortName": "CertificateAuthorityService", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService" - } - } - } - }, - { - "regionTag": "privateca_v1beta1_generated_CertificateAuthorityService_RevokeCertificate_async", - "title": "CertificateAuthorityService revokeCertificate Sample", - "origin": "API_DEFINITION", - "description": " Revoke a [Certificate][google.cloud.security.privateca.v1beta1.Certificate].", - "canonical": true, - "file": "certificate_authority_service.revoke_certificate.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RevokeCertificate", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService.RevokeCertificate", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "reason", - "type": ".google.cloud.security.privateca.v1beta1.RevocationReason" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.security.privateca.v1beta1.Certificate", - "client": { - "shortName": "CertificateAuthorityServiceClient", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient" - }, - "method": { - "shortName": "RevokeCertificate", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService.RevokeCertificate", - "service": { - "shortName": "CertificateAuthorityService", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService" - } - } - } - }, - { - "regionTag": "privateca_v1beta1_generated_CertificateAuthorityService_UpdateCertificate_async", - "title": "CertificateAuthorityService updateCertificate Sample", - "origin": "API_DEFINITION", - "description": " Update a [Certificate][google.cloud.security.privateca.v1beta1.Certificate]. Currently, the only field you can update is the [labels][google.cloud.security.privateca.v1beta1.Certificate.labels] field.", - "canonical": true, - "file": "certificate_authority_service.update_certificate.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCertificate", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService.UpdateCertificate", - "async": true, - "parameters": [ - { - "name": "certificate", - "type": ".google.cloud.security.privateca.v1beta1.Certificate" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.security.privateca.v1beta1.Certificate", - "client": { - "shortName": "CertificateAuthorityServiceClient", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient" - }, - "method": { - "shortName": "UpdateCertificate", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService.UpdateCertificate", - "service": { - "shortName": "CertificateAuthorityService", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService" - } - } - } - }, - { - "regionTag": "privateca_v1beta1_generated_CertificateAuthorityService_ActivateCertificateAuthority_async", - "title": "CertificateAuthorityService activateCertificateAuthority Sample", - "origin": "API_DEFINITION", - "description": " Activate a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] that is in state [PENDING_ACTIVATION][google.cloud.security.privateca.v1beta1.CertificateAuthority.State.PENDING_ACTIVATION] and is of type [SUBORDINATE][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.SUBORDINATE]. After the parent Certificate Authority signs a certificate signing request from [FetchCertificateAuthorityCsr][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.FetchCertificateAuthorityCsr], this method can complete the activation process.", - "canonical": true, - "file": "certificate_authority_service.activate_certificate_authority.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ActivateCertificateAuthority", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ActivateCertificateAuthority", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "pem_ca_certificate", - "type": "TYPE_STRING" - }, - { - "name": "subordinate_config", - "type": ".google.cloud.security.privateca.v1beta1.SubordinateConfig" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CertificateAuthorityServiceClient", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient" - }, - "method": { - "shortName": "ActivateCertificateAuthority", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ActivateCertificateAuthority", - "service": { - "shortName": "CertificateAuthorityService", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService" - } - } - } - }, - { - "regionTag": "privateca_v1beta1_generated_CertificateAuthorityService_CreateCertificateAuthority_async", - "title": "CertificateAuthorityService createCertificateAuthority Sample", - "origin": "API_DEFINITION", - "description": " Create a new [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] in a given Project and Location.", - "canonical": true, - "file": "certificate_authority_service.create_certificate_authority.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCertificateAuthority", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService.CreateCertificateAuthority", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "certificate_authority_id", - "type": "TYPE_STRING" - }, - { - "name": "certificate_authority", - "type": ".google.cloud.security.privateca.v1beta1.CertificateAuthority" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CertificateAuthorityServiceClient", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient" - }, - "method": { - "shortName": "CreateCertificateAuthority", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService.CreateCertificateAuthority", - "service": { - "shortName": "CertificateAuthorityService", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService" - } - } - } - }, - { - "regionTag": "privateca_v1beta1_generated_CertificateAuthorityService_DisableCertificateAuthority_async", - "title": "CertificateAuthorityService disableCertificateAuthority Sample", - "origin": "API_DEFINITION", - "description": " Disable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].", - "canonical": true, - "file": "certificate_authority_service.disable_certificate_authority.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DisableCertificateAuthority", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService.DisableCertificateAuthority", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CertificateAuthorityServiceClient", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient" - }, - "method": { - "shortName": "DisableCertificateAuthority", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService.DisableCertificateAuthority", - "service": { - "shortName": "CertificateAuthorityService", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService" - } - } - } - }, - { - "regionTag": "privateca_v1beta1_generated_CertificateAuthorityService_EnableCertificateAuthority_async", - "title": "CertificateAuthorityService enableCertificateAuthority Sample", - "origin": "API_DEFINITION", - "description": " Enable a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].", - "canonical": true, - "file": "certificate_authority_service.enable_certificate_authority.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "EnableCertificateAuthority", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService.EnableCertificateAuthority", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CertificateAuthorityServiceClient", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient" - }, - "method": { - "shortName": "EnableCertificateAuthority", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService.EnableCertificateAuthority", - "service": { - "shortName": "CertificateAuthorityService", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService" - } - } - } - }, - { - "regionTag": "privateca_v1beta1_generated_CertificateAuthorityService_FetchCertificateAuthorityCsr_async", - "title": "CertificateAuthorityService fetchCertificateAuthorityCsr Sample", - "origin": "API_DEFINITION", - "description": " Fetch a certificate signing request (CSR) from a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] that is in state [PENDING_ACTIVATION][google.cloud.security.privateca.v1beta1.CertificateAuthority.State.PENDING_ACTIVATION] and is of type [SUBORDINATE][google.cloud.security.privateca.v1beta1.CertificateAuthority.Type.SUBORDINATE]. The CSR must then be signed by the desired parent Certificate Authority, which could be another [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] resource, or could be an on-prem certificate authority. See also [ActivateCertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ActivateCertificateAuthority].", - "canonical": true, - "file": "certificate_authority_service.fetch_certificate_authority_csr.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchCertificateAuthorityCsr", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService.FetchCertificateAuthorityCsr", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.security.privateca.v1beta1.FetchCertificateAuthorityCsrResponse", - "client": { - "shortName": "CertificateAuthorityServiceClient", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient" - }, - "method": { - "shortName": "FetchCertificateAuthorityCsr", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService.FetchCertificateAuthorityCsr", - "service": { - "shortName": "CertificateAuthorityService", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService" - } - } - } - }, - { - "regionTag": "privateca_v1beta1_generated_CertificateAuthorityService_GetCertificateAuthority_async", - "title": "CertificateAuthorityService getCertificateAuthority Sample", - "origin": "API_DEFINITION", - "description": " Returns a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].", - "canonical": true, - "file": "certificate_authority_service.get_certificate_authority.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCertificateAuthority", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService.GetCertificateAuthority", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.security.privateca.v1beta1.CertificateAuthority", - "client": { - "shortName": "CertificateAuthorityServiceClient", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient" - }, - "method": { - "shortName": "GetCertificateAuthority", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService.GetCertificateAuthority", - "service": { - "shortName": "CertificateAuthorityService", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService" - } - } - } - }, - { - "regionTag": "privateca_v1beta1_generated_CertificateAuthorityService_ListCertificateAuthorities_async", - "title": "CertificateAuthorityService listCertificateAuthorities Sample", - "origin": "API_DEFINITION", - "description": " Lists [CertificateAuthorities][google.cloud.security.privateca.v1beta1.CertificateAuthority].", - "canonical": true, - "file": "certificate_authority_service.list_certificate_authorities.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCertificateAuthorities", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ListCertificateAuthorities", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.security.privateca.v1beta1.ListCertificateAuthoritiesResponse", - "client": { - "shortName": "CertificateAuthorityServiceClient", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient" - }, - "method": { - "shortName": "ListCertificateAuthorities", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ListCertificateAuthorities", - "service": { - "shortName": "CertificateAuthorityService", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService" - } - } - } - }, - { - "regionTag": "privateca_v1beta1_generated_CertificateAuthorityService_RestoreCertificateAuthority_async", - "title": "CertificateAuthorityService restoreCertificateAuthority Sample", - "origin": "API_DEFINITION", - "description": " Restore a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] that is scheduled for deletion.", - "canonical": true, - "file": "certificate_authority_service.restore_certificate_authority.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RestoreCertificateAuthority", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService.RestoreCertificateAuthority", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CertificateAuthorityServiceClient", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient" - }, - "method": { - "shortName": "RestoreCertificateAuthority", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService.RestoreCertificateAuthority", - "service": { - "shortName": "CertificateAuthorityService", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService" - } - } - } - }, - { - "regionTag": "privateca_v1beta1_generated_CertificateAuthorityService_ScheduleDeleteCertificateAuthority_async", - "title": "CertificateAuthorityService scheduleDeleteCertificateAuthority Sample", - "origin": "API_DEFINITION", - "description": " Schedule a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority] for deletion.", - "canonical": true, - "file": "certificate_authority_service.schedule_delete_certificate_authority.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ScheduleDeleteCertificateAuthority", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ScheduleDeleteCertificateAuthority", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CertificateAuthorityServiceClient", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient" - }, - "method": { - "shortName": "ScheduleDeleteCertificateAuthority", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ScheduleDeleteCertificateAuthority", - "service": { - "shortName": "CertificateAuthorityService", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService" - } - } - } - }, - { - "regionTag": "privateca_v1beta1_generated_CertificateAuthorityService_UpdateCertificateAuthority_async", - "title": "CertificateAuthorityService updateCertificateAuthority Sample", - "origin": "API_DEFINITION", - "description": " Update a [CertificateAuthority][google.cloud.security.privateca.v1beta1.CertificateAuthority].", - "canonical": true, - "file": "certificate_authority_service.update_certificate_authority.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCertificateAuthority", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService.UpdateCertificateAuthority", - "async": true, - "parameters": [ - { - "name": "certificate_authority", - "type": ".google.cloud.security.privateca.v1beta1.CertificateAuthority" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CertificateAuthorityServiceClient", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient" - }, - "method": { - "shortName": "UpdateCertificateAuthority", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService.UpdateCertificateAuthority", - "service": { - "shortName": "CertificateAuthorityService", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService" - } - } - } - }, - { - "regionTag": "privateca_v1beta1_generated_CertificateAuthorityService_GetCertificateRevocationList_async", - "title": "CertificateAuthorityService getCertificateRevocationList Sample", - "origin": "API_DEFINITION", - "description": " Returns a [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].", - "canonical": true, - "file": "certificate_authority_service.get_certificate_revocation_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCertificateRevocationList", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService.GetCertificateRevocationList", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.security.privateca.v1beta1.CertificateRevocationList", - "client": { - "shortName": "CertificateAuthorityServiceClient", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient" - }, - "method": { - "shortName": "GetCertificateRevocationList", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService.GetCertificateRevocationList", - "service": { - "shortName": "CertificateAuthorityService", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService" - } - } - } - }, - { - "regionTag": "privateca_v1beta1_generated_CertificateAuthorityService_ListCertificateRevocationLists_async", - "title": "CertificateAuthorityService listCertificateRevocationLists Sample", - "origin": "API_DEFINITION", - "description": " Lists [CertificateRevocationLists][google.cloud.security.privateca.v1beta1.CertificateRevocationList].", - "canonical": true, - "file": "certificate_authority_service.list_certificate_revocation_lists.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCertificateRevocationLists", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ListCertificateRevocationLists", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.security.privateca.v1beta1.ListCertificateRevocationListsResponse", - "client": { - "shortName": "CertificateAuthorityServiceClient", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient" - }, - "method": { - "shortName": "ListCertificateRevocationLists", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ListCertificateRevocationLists", - "service": { - "shortName": "CertificateAuthorityService", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService" - } - } - } - }, - { - "regionTag": "privateca_v1beta1_generated_CertificateAuthorityService_UpdateCertificateRevocationList_async", - "title": "CertificateAuthorityService updateCertificateRevocationList Sample", - "origin": "API_DEFINITION", - "description": " Update a [CertificateRevocationList][google.cloud.security.privateca.v1beta1.CertificateRevocationList].", - "canonical": true, - "file": "certificate_authority_service.update_certificate_revocation_list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCertificateRevocationList", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService.UpdateCertificateRevocationList", - "async": true, - "parameters": [ - { - "name": "certificate_revocation_list", - "type": ".google.cloud.security.privateca.v1beta1.CertificateRevocationList" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CertificateAuthorityServiceClient", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient" - }, - "method": { - "shortName": "UpdateCertificateRevocationList", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService.UpdateCertificateRevocationList", - "service": { - "shortName": "CertificateAuthorityService", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService" - } - } - } - }, - { - "regionTag": "privateca_v1beta1_generated_CertificateAuthorityService_GetReusableConfig_async", - "title": "CertificateAuthorityService getReusableConfig Sample", - "origin": "API_DEFINITION", - "description": " Returns a [ReusableConfig][google.cloud.security.privateca.v1beta1.ReusableConfig].", - "canonical": true, - "file": "certificate_authority_service.get_reusable_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetReusableConfig", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService.GetReusableConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.security.privateca.v1beta1.ReusableConfig", - "client": { - "shortName": "CertificateAuthorityServiceClient", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient" - }, - "method": { - "shortName": "GetReusableConfig", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService.GetReusableConfig", - "service": { - "shortName": "CertificateAuthorityService", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService" - } - } - } - }, - { - "regionTag": "privateca_v1beta1_generated_CertificateAuthorityService_ListReusableConfigs_async", - "title": "CertificateAuthorityService listReusableConfigs Sample", - "origin": "API_DEFINITION", - "description": " Lists [ReusableConfigs][google.cloud.security.privateca.v1beta1.ReusableConfig].", - "canonical": true, - "file": "certificate_authority_service.list_reusable_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListReusableConfigs", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ListReusableConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.security.privateca.v1beta1.ListReusableConfigsResponse", - "client": { - "shortName": "CertificateAuthorityServiceClient", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityServiceClient" - }, - "method": { - "shortName": "ListReusableConfigs", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService.ListReusableConfigs", - "service": { - "shortName": "CertificateAuthorityService", - "fullName": "google.cloud.security.privateca.v1beta1.CertificateAuthorityService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-security-publicca/samples/generated/v1/snippet_metadata_google.cloud.security.publicca.v1.json b/packages/google-cloud-security-publicca/samples/generated/v1/snippet_metadata_google.cloud.security.publicca.v1.json deleted file mode 100644 index 8ccdfcea11de..000000000000 --- a/packages/google-cloud-security-publicca/samples/generated/v1/snippet_metadata_google.cloud.security.publicca.v1.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-publicca", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.security.publicca.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "publicca_v1_generated_PublicCertificateAuthorityService_CreateExternalAccountKey_async", - "title": "PublicCertificateAuthorityService createExternalAccountKey Sample", - "origin": "API_DEFINITION", - "description": " Creates a new [ExternalAccountKey][google.cloud.security.publicca.v1.ExternalAccountKey] bound to the project.", - "canonical": true, - "file": "public_certificate_authority_service.create_external_account_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateExternalAccountKey", - "fullName": "google.cloud.security.publicca.v1.PublicCertificateAuthorityService.CreateExternalAccountKey", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "external_account_key", - "type": ".google.cloud.security.publicca.v1.ExternalAccountKey" - } - ], - "resultType": ".google.cloud.security.publicca.v1.ExternalAccountKey", - "client": { - "shortName": "PublicCertificateAuthorityServiceClient", - "fullName": "google.cloud.security.publicca.v1.PublicCertificateAuthorityServiceClient" - }, - "method": { - "shortName": "CreateExternalAccountKey", - "fullName": "google.cloud.security.publicca.v1.PublicCertificateAuthorityService.CreateExternalAccountKey", - "service": { - "shortName": "PublicCertificateAuthorityService", - "fullName": "google.cloud.security.publicca.v1.PublicCertificateAuthorityService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-security-publicca/samples/generated/v1alpha1/snippet_metadata_google.cloud.security.publicca.v1alpha1.json b/packages/google-cloud-security-publicca/samples/generated/v1alpha1/snippet_metadata_google.cloud.security.publicca.v1alpha1.json deleted file mode 100644 index 771a1add0457..000000000000 --- a/packages/google-cloud-security-publicca/samples/generated/v1alpha1/snippet_metadata_google.cloud.security.publicca.v1alpha1.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-publicca", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.security.publicca.v1alpha1", - "version": "v1alpha1" - } - ] - }, - "snippets": [ - { - "regionTag": "publicca_v1alpha1_generated_PublicCertificateAuthorityService_CreateExternalAccountKey_async", - "title": "PublicCertificateAuthorityService createExternalAccountKey Sample", - "origin": "API_DEFINITION", - "description": " Creates a new [ExternalAccountKey][google.cloud.security.publicca.v1alpha1.ExternalAccountKey] bound to the project.", - "canonical": true, - "file": "public_certificate_authority_service.create_external_account_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateExternalAccountKey", - "fullName": "google.cloud.security.publicca.v1alpha1.PublicCertificateAuthorityService.CreateExternalAccountKey", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "external_account_key", - "type": ".google.cloud.security.publicca.v1alpha1.ExternalAccountKey" - } - ], - "resultType": ".google.cloud.security.publicca.v1alpha1.ExternalAccountKey", - "client": { - "shortName": "PublicCertificateAuthorityServiceClient", - "fullName": "google.cloud.security.publicca.v1alpha1.PublicCertificateAuthorityServiceClient" - }, - "method": { - "shortName": "CreateExternalAccountKey", - "fullName": "google.cloud.security.publicca.v1alpha1.PublicCertificateAuthorityService.CreateExternalAccountKey", - "service": { - "shortName": "PublicCertificateAuthorityService", - "fullName": "google.cloud.security.publicca.v1alpha1.PublicCertificateAuthorityService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-security-publicca/samples/generated/v1beta1/snippet_metadata_google.cloud.security.publicca.v1beta1.json b/packages/google-cloud-security-publicca/samples/generated/v1beta1/snippet_metadata_google.cloud.security.publicca.v1beta1.json deleted file mode 100644 index 0e03b6807d46..000000000000 --- a/packages/google-cloud-security-publicca/samples/generated/v1beta1/snippet_metadata_google.cloud.security.publicca.v1beta1.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-publicca", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.security.publicca.v1beta1", - "version": "v1beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "publicca_v1beta1_generated_PublicCertificateAuthorityService_CreateExternalAccountKey_async", - "title": "PublicCertificateAuthorityService createExternalAccountKey Sample", - "origin": "API_DEFINITION", - "description": " Creates a new [ExternalAccountKey][google.cloud.security.publicca.v1beta1.ExternalAccountKey] bound to the project.", - "canonical": true, - "file": "public_certificate_authority_service.create_external_account_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateExternalAccountKey", - "fullName": "google.cloud.security.publicca.v1beta1.PublicCertificateAuthorityService.CreateExternalAccountKey", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "external_account_key", - "type": ".google.cloud.security.publicca.v1beta1.ExternalAccountKey" - } - ], - "resultType": ".google.cloud.security.publicca.v1beta1.ExternalAccountKey", - "client": { - "shortName": "PublicCertificateAuthorityServiceClient", - "fullName": "google.cloud.security.publicca.v1beta1.PublicCertificateAuthorityServiceClient" - }, - "method": { - "shortName": "CreateExternalAccountKey", - "fullName": "google.cloud.security.publicca.v1beta1.PublicCertificateAuthorityService.CreateExternalAccountKey", - "service": { - "shortName": "PublicCertificateAuthorityService", - "fullName": "google.cloud.security.publicca.v1beta1.PublicCertificateAuthorityService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-securitycenter/samples/generated/v1/snippet_metadata_google.cloud.securitycenter.v1.json b/packages/google-cloud-securitycenter/samples/generated/v1/snippet_metadata_google.cloud.securitycenter.v1.json deleted file mode 100644 index 96f2d6645541..000000000000 --- a/packages/google-cloud-securitycenter/samples/generated/v1/snippet_metadata_google.cloud.securitycenter.v1.json +++ /dev/null @@ -1,2907 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-securitycenter", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.securitycenter.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_BulkMuteFindings_async", - "title": "SecurityCenter bulkMuteFindings Sample", - "origin": "API_DEFINITION", - "description": " Kicks off an LRO to bulk mute findings for a parent based on a filter. The parent can be either an organization, folder or project. The findings matched by the filter will be muted after the LRO is done.", - "canonical": true, - "file": "security_center.bulk_mute_findings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 85, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BulkMuteFindings", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.BulkMuteFindings", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "mute_annotation", - "type": "TYPE_STRING" - }, - { - "name": "mute_state", - "type": ".google.cloud.securitycenter.v1.BulkMuteFindingsRequest.MuteState" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "BulkMuteFindings", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.BulkMuteFindings", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateSecurityHealthAnalyticsCustomModule_async", - "title": "SecurityCenter createSecurityHealthAnalyticsCustomModule Sample", - "origin": "API_DEFINITION", - "description": " Creates a resident SecurityHealthAnalyticsCustomModule at the scope of the given CRM parent, and also creates inherited SecurityHealthAnalyticsCustomModules for all CRM descendants of the given parent. These modules are enabled by default.", - "canonical": true, - "file": "security_center.create_security_health_analytics_custom_module.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSecurityHealthAnalyticsCustomModule", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateSecurityHealthAnalyticsCustomModule", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "security_health_analytics_custom_module", - "type": ".google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule" - } - ], - "resultType": ".google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "CreateSecurityHealthAnalyticsCustomModule", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateSecurityHealthAnalyticsCustomModule", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateSource_async", - "title": "SecurityCenter createSource Sample", - "origin": "API_DEFINITION", - "description": " Creates a source.", - "canonical": true, - "file": "security_center.create_source.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSource", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateSource", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "source", - "type": ".google.cloud.securitycenter.v1.Source" - } - ], - "resultType": ".google.cloud.securitycenter.v1.Source", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "CreateSource", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateSource", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateFinding_async", - "title": "SecurityCenter createFinding Sample", - "origin": "API_DEFINITION", - "description": " Creates a finding. The corresponding source must exist for finding creation to succeed.", - "canonical": true, - "file": "security_center.create_finding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateFinding", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateFinding", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "finding_id", - "type": "TYPE_STRING" - }, - { - "name": "finding", - "type": ".google.cloud.securitycenter.v1.Finding" - } - ], - "resultType": ".google.cloud.securitycenter.v1.Finding", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "CreateFinding", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateFinding", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateMuteConfig_async", - "title": "SecurityCenter createMuteConfig Sample", - "origin": "API_DEFINITION", - "description": " Creates a mute config.", - "canonical": true, - "file": "security_center.create_mute_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateMuteConfig", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateMuteConfig", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "mute_config", - "type": ".google.cloud.securitycenter.v1.MuteConfig" - }, - { - "name": "mute_config_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securitycenter.v1.MuteConfig", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "CreateMuteConfig", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateMuteConfig", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateNotificationConfig_async", - "title": "SecurityCenter createNotificationConfig Sample", - "origin": "API_DEFINITION", - "description": " Creates a notification config.", - "canonical": true, - "file": "security_center.create_notification_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateNotificationConfig", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateNotificationConfig", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "config_id", - "type": "TYPE_STRING" - }, - { - "name": "notification_config", - "type": ".google.cloud.securitycenter.v1.NotificationConfig" - } - ], - "resultType": ".google.cloud.securitycenter.v1.NotificationConfig", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "CreateNotificationConfig", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateNotificationConfig", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_DeleteMuteConfig_async", - "title": "SecurityCenter deleteMuteConfig Sample", - "origin": "API_DEFINITION", - "description": " Deletes an existing mute config.", - "canonical": true, - "file": "security_center.delete_mute_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteMuteConfig", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.DeleteMuteConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "DeleteMuteConfig", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.DeleteMuteConfig", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_DeleteNotificationConfig_async", - "title": "SecurityCenter deleteNotificationConfig Sample", - "origin": "API_DEFINITION", - "description": " Deletes a notification config.", - "canonical": true, - "file": "security_center.delete_notification_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteNotificationConfig", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.DeleteNotificationConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "DeleteNotificationConfig", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.DeleteNotificationConfig", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_DeleteSecurityHealthAnalyticsCustomModule_async", - "title": "SecurityCenter deleteSecurityHealthAnalyticsCustomModule Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified SecurityHealthAnalyticsCustomModule and all of its descendants in the CRM hierarchy. This method is only supported for resident custom modules.", - "canonical": true, - "file": "security_center.delete_security_health_analytics_custom_module.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSecurityHealthAnalyticsCustomModule", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.DeleteSecurityHealthAnalyticsCustomModule", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "DeleteSecurityHealthAnalyticsCustomModule", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.DeleteSecurityHealthAnalyticsCustomModule", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_GetSimulation_async", - "title": "SecurityCenter getSimulation Sample", - "origin": "API_DEFINITION", - "description": " Get the simulation by name or the latest simulation for the given organization.", - "canonical": true, - "file": "security_center.get_simulation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSimulation", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetSimulation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securitycenter.v1.Simulation", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "GetSimulation", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetSimulation", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_GetValuedResource_async", - "title": "SecurityCenter getValuedResource Sample", - "origin": "API_DEFINITION", - "description": " Get the valued resource by name", - "canonical": true, - "file": "security_center.get_valued_resource.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetValuedResource", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetValuedResource", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securitycenter.v1.ValuedResource", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "GetValuedResource", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetValuedResource", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_GetBigQueryExport_async", - "title": "SecurityCenter getBigQueryExport Sample", - "origin": "API_DEFINITION", - "description": " Gets a BigQuery export.", - "canonical": true, - "file": "security_center.get_big_query_export.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBigQueryExport", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetBigQueryExport", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securitycenter.v1.BigQueryExport", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "GetBigQueryExport", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetBigQueryExport", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_GetIamPolicy_async", - "title": "SecurityCenter getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy on the specified Source.", - "canonical": true, - "file": "security_center.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": ".google.iam.v1.GetPolicyOptions" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetIamPolicy", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_GetMuteConfig_async", - "title": "SecurityCenter getMuteConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets a mute config.", - "canonical": true, - "file": "security_center.get_mute_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMuteConfig", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetMuteConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securitycenter.v1.MuteConfig", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "GetMuteConfig", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetMuteConfig", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_GetNotificationConfig_async", - "title": "SecurityCenter getNotificationConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets a notification config.", - "canonical": true, - "file": "security_center.get_notification_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetNotificationConfig", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetNotificationConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securitycenter.v1.NotificationConfig", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "GetNotificationConfig", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetNotificationConfig", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_GetOrganizationSettings_async", - "title": "SecurityCenter getOrganizationSettings Sample", - "origin": "API_DEFINITION", - "description": " Gets the settings for an organization.", - "canonical": true, - "file": "security_center.get_organization_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetOrganizationSettings", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetOrganizationSettings", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securitycenter.v1.OrganizationSettings", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "GetOrganizationSettings", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetOrganizationSettings", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_GetEffectiveSecurityHealthAnalyticsCustomModule_async", - "title": "SecurityCenter getEffectiveSecurityHealthAnalyticsCustomModule Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an EffectiveSecurityHealthAnalyticsCustomModule.", - "canonical": true, - "file": "security_center.get_effective_security_health_analytics_custom_module.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEffectiveSecurityHealthAnalyticsCustomModule", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetEffectiveSecurityHealthAnalyticsCustomModule", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securitycenter.v1.EffectiveSecurityHealthAnalyticsCustomModule", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "GetEffectiveSecurityHealthAnalyticsCustomModule", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetEffectiveSecurityHealthAnalyticsCustomModule", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_GetSecurityHealthAnalyticsCustomModule_async", - "title": "SecurityCenter getSecurityHealthAnalyticsCustomModule Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a SecurityHealthAnalyticsCustomModule.", - "canonical": true, - "file": "security_center.get_security_health_analytics_custom_module.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSecurityHealthAnalyticsCustomModule", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetSecurityHealthAnalyticsCustomModule", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "GetSecurityHealthAnalyticsCustomModule", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetSecurityHealthAnalyticsCustomModule", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_GetSource_async", - "title": "SecurityCenter getSource Sample", - "origin": "API_DEFINITION", - "description": " Gets a source.", - "canonical": true, - "file": "security_center.get_source.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSource", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetSource", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securitycenter.v1.Source", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "GetSource", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetSource", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_GroupAssets_async", - "title": "SecurityCenter groupAssets Sample", - "origin": "API_DEFINITION", - "description": " Filters an organization's assets and groups them by their specified properties.", - "canonical": true, - "file": "security_center.group_assets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 168, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GroupAssets", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GroupAssets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "group_by", - "type": "TYPE_STRING" - }, - { - "name": "compare_duration", - "type": ".google.protobuf.Duration" - }, - { - "name": "read_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.securitycenter.v1.GroupAssetsResponse", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "GroupAssets", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GroupAssets", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_GroupFindings_async", - "title": "SecurityCenter groupFindings Sample", - "origin": "API_DEFINITION", - "description": " Filters an organization or source's findings and groups them by their specified properties. To group across all sources provide a `-` as the source id. Example: /v1/organizations/{organization_id}/sources/-/findings, /v1/folders/{folder_id}/sources/-/findings, /v1/projects/{project_id}/sources/-/findings", - "canonical": true, - "file": "security_center.group_findings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 166, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GroupFindings", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GroupFindings", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "group_by", - "type": "TYPE_STRING" - }, - { - "name": "read_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "compare_duration", - "type": ".google.protobuf.Duration" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.securitycenter.v1.GroupFindingsResponse", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "GroupFindings", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GroupFindings", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_ListAssets_async", - "title": "SecurityCenter listAssets Sample", - "origin": "API_DEFINITION", - "description": " Lists an organization's assets.", - "canonical": true, - "file": "security_center.list_assets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 179, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAssets", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListAssets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "read_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "compare_duration", - "type": ".google.protobuf.Duration" - }, - { - "name": "field_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.securitycenter.v1.ListAssetsResponse", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "ListAssets", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListAssets", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_ListDescendantSecurityHealthAnalyticsCustomModules_async", - "title": "SecurityCenter listDescendantSecurityHealthAnalyticsCustomModules Sample", - "origin": "API_DEFINITION", - "description": " Returns a list of all resident SecurityHealthAnalyticsCustomModules under the given CRM parent and all of the parent’s CRM descendants.", - "canonical": true, - "file": "security_center.list_descendant_security_health_analytics_custom_modules.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDescendantSecurityHealthAnalyticsCustomModules", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListDescendantSecurityHealthAnalyticsCustomModules", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securitycenter.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "ListDescendantSecurityHealthAnalyticsCustomModules", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListDescendantSecurityHealthAnalyticsCustomModules", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_ListFindings_async", - "title": "SecurityCenter listFindings Sample", - "origin": "API_DEFINITION", - "description": " Lists an organization or source's findings. To list across all sources provide a `-` as the source id. Example: /v1/organizations/{organization_id}/sources/-/findings", - "canonical": true, - "file": "security_center.list_findings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 183, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFindings", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListFindings", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "read_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "compare_duration", - "type": ".google.protobuf.Duration" - }, - { - "name": "field_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.securitycenter.v1.ListFindingsResponse", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "ListFindings", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListFindings", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_ListMuteConfigs_async", - "title": "SecurityCenter listMuteConfigs Sample", - "origin": "API_DEFINITION", - "description": " Lists mute configs.", - "canonical": true, - "file": "security_center.list_mute_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMuteConfigs", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListMuteConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securitycenter.v1.ListMuteConfigsResponse", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "ListMuteConfigs", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListMuteConfigs", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_ListNotificationConfigs_async", - "title": "SecurityCenter listNotificationConfigs Sample", - "origin": "API_DEFINITION", - "description": " Lists notification configs.", - "canonical": true, - "file": "security_center.list_notification_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListNotificationConfigs", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListNotificationConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.securitycenter.v1.ListNotificationConfigsResponse", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "ListNotificationConfigs", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListNotificationConfigs", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_ListEffectiveSecurityHealthAnalyticsCustomModules_async", - "title": "SecurityCenter listEffectiveSecurityHealthAnalyticsCustomModules Sample", - "origin": "API_DEFINITION", - "description": " Returns a list of all EffectiveSecurityHealthAnalyticsCustomModules for the given parent. This includes resident modules defined at the scope of the parent, and inherited modules, inherited from CRM ancestors.", - "canonical": true, - "file": "security_center.list_effective_security_health_analytics_custom_modules.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEffectiveSecurityHealthAnalyticsCustomModules", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListEffectiveSecurityHealthAnalyticsCustomModules", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securitycenter.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "ListEffectiveSecurityHealthAnalyticsCustomModules", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListEffectiveSecurityHealthAnalyticsCustomModules", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_ListSecurityHealthAnalyticsCustomModules_async", - "title": "SecurityCenter listSecurityHealthAnalyticsCustomModules Sample", - "origin": "API_DEFINITION", - "description": " Returns a list of all SecurityHealthAnalyticsCustomModules for the given parent. This includes resident modules defined at the scope of the parent, and inherited modules, inherited from CRM ancestors.", - "canonical": true, - "file": "security_center.list_security_health_analytics_custom_modules.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSecurityHealthAnalyticsCustomModules", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListSecurityHealthAnalyticsCustomModules", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securitycenter.v1.ListSecurityHealthAnalyticsCustomModulesResponse", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "ListSecurityHealthAnalyticsCustomModules", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListSecurityHealthAnalyticsCustomModules", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_ListSources_async", - "title": "SecurityCenter listSources Sample", - "origin": "API_DEFINITION", - "description": " Lists all sources belonging to an organization.", - "canonical": true, - "file": "security_center.list_sources.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSources", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListSources", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.securitycenter.v1.ListSourcesResponse", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "ListSources", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListSources", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_RunAssetDiscovery_async", - "title": "SecurityCenter runAssetDiscovery Sample", - "origin": "API_DEFINITION", - "description": " Runs asset discovery. The discovery is tracked with a long-running operation. This API can only be called with limited frequency for an organization. If it is called too frequently the caller will receive a TOO_MANY_REQUESTS error.", - "canonical": true, - "file": "security_center.run_asset_discovery.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RunAssetDiscovery", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.RunAssetDiscovery", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "RunAssetDiscovery", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.RunAssetDiscovery", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_SetFindingState_async", - "title": "SecurityCenter setFindingState Sample", - "origin": "API_DEFINITION", - "description": " Updates the state of a finding.", - "canonical": true, - "file": "security_center.set_finding_state.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetFindingState", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.SetFindingState", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "state", - "type": ".google.cloud.securitycenter.v1.Finding.State" - }, - { - "name": "start_time", - "type": ".google.protobuf.Timestamp" - } - ], - "resultType": ".google.cloud.securitycenter.v1.Finding", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "SetFindingState", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.SetFindingState", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_SetMute_async", - "title": "SecurityCenter setMute Sample", - "origin": "API_DEFINITION", - "description": " Updates the mute state of a finding.", - "canonical": true, - "file": "security_center.set_mute.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetMute", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.SetMute", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "mute", - "type": ".google.cloud.securitycenter.v1.Finding.Mute" - } - ], - "resultType": ".google.cloud.securitycenter.v1.Finding", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "SetMute", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.SetMute", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_SetIamPolicy_async", - "title": "SecurityCenter setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified Source.", - "canonical": true, - "file": "security_center.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.iam.v1.Policy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.SetIamPolicy", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_TestIamPermissions_async", - "title": "SecurityCenter testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns the permissions that a caller has on the specified source.", - "canonical": true, - "file": "security_center.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "permissions", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.iam.v1.TestIamPermissionsResponse", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.TestIamPermissions", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_SimulateSecurityHealthAnalyticsCustomModule_async", - "title": "SecurityCenter simulateSecurityHealthAnalyticsCustomModule Sample", - "origin": "API_DEFINITION", - "description": " Simulates a given SecurityHealthAnalyticsCustomModule and Resource.", - "canonical": true, - "file": "security_center.simulate_security_health_analytics_custom_module.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SimulateSecurityHealthAnalyticsCustomModule", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.SimulateSecurityHealthAnalyticsCustomModule", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "custom_config", - "type": ".google.cloud.securitycenter.v1.CustomConfig" - }, - { - "name": "resource", - "type": ".google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource" - } - ], - "resultType": ".google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "SimulateSecurityHealthAnalyticsCustomModule", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.SimulateSecurityHealthAnalyticsCustomModule", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateExternalSystem_async", - "title": "SecurityCenter updateExternalSystem Sample", - "origin": "API_DEFINITION", - "description": " Updates external system. This is for a given finding.", - "canonical": true, - "file": "security_center.update_external_system.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateExternalSystem", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateExternalSystem", - "async": true, - "parameters": [ - { - "name": "external_system", - "type": ".google.cloud.securitycenter.v1.ExternalSystem" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.securitycenter.v1.ExternalSystem", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "UpdateExternalSystem", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateExternalSystem", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateFinding_async", - "title": "SecurityCenter updateFinding Sample", - "origin": "API_DEFINITION", - "description": " Creates or updates a finding. The corresponding source must exist for a finding creation to succeed.", - "canonical": true, - "file": "security_center.update_finding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateFinding", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateFinding", - "async": true, - "parameters": [ - { - "name": "finding", - "type": ".google.cloud.securitycenter.v1.Finding" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.securitycenter.v1.Finding", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "UpdateFinding", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateFinding", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateMuteConfig_async", - "title": "SecurityCenter updateMuteConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates a mute config.", - "canonical": true, - "file": "security_center.update_mute_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateMuteConfig", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateMuteConfig", - "async": true, - "parameters": [ - { - "name": "mute_config", - "type": ".google.cloud.securitycenter.v1.MuteConfig" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.securitycenter.v1.MuteConfig", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "UpdateMuteConfig", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateMuteConfig", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateNotificationConfig_async", - "title": "SecurityCenter updateNotificationConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates a notification config. The following update fields are allowed: description, pubsub_topic, streaming_config.filter", - "canonical": true, - "file": "security_center.update_notification_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateNotificationConfig", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateNotificationConfig", - "async": true, - "parameters": [ - { - "name": "notification_config", - "type": ".google.cloud.securitycenter.v1.NotificationConfig" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.securitycenter.v1.NotificationConfig", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "UpdateNotificationConfig", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateNotificationConfig", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateOrganizationSettings_async", - "title": "SecurityCenter updateOrganizationSettings Sample", - "origin": "API_DEFINITION", - "description": " Updates an organization's settings.", - "canonical": true, - "file": "security_center.update_organization_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateOrganizationSettings", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateOrganizationSettings", - "async": true, - "parameters": [ - { - "name": "organization_settings", - "type": ".google.cloud.securitycenter.v1.OrganizationSettings" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.securitycenter.v1.OrganizationSettings", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "UpdateOrganizationSettings", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateOrganizationSettings", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateSecurityHealthAnalyticsCustomModule_async", - "title": "SecurityCenter updateSecurityHealthAnalyticsCustomModule Sample", - "origin": "API_DEFINITION", - "description": " Updates the SecurityHealthAnalyticsCustomModule under the given name based on the given update mask. Updating the enablement state is supported on both resident and inherited modules (though resident modules cannot have an enablement state of \"inherited\"). Updating the display name and custom config of a module is supported on resident modules only.", - "canonical": true, - "file": "security_center.update_security_health_analytics_custom_module.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSecurityHealthAnalyticsCustomModule", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateSecurityHealthAnalyticsCustomModule", - "async": true, - "parameters": [ - { - "name": "security_health_analytics_custom_module", - "type": ".google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.securitycenter.v1.SecurityHealthAnalyticsCustomModule", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "UpdateSecurityHealthAnalyticsCustomModule", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateSecurityHealthAnalyticsCustomModule", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateSource_async", - "title": "SecurityCenter updateSource Sample", - "origin": "API_DEFINITION", - "description": " Updates a source.", - "canonical": true, - "file": "security_center.update_source.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSource", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateSource", - "async": true, - "parameters": [ - { - "name": "source", - "type": ".google.cloud.securitycenter.v1.Source" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.securitycenter.v1.Source", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "UpdateSource", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateSource", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateSecurityMarks_async", - "title": "SecurityCenter updateSecurityMarks Sample", - "origin": "API_DEFINITION", - "description": " Updates security marks.", - "canonical": true, - "file": "security_center.update_security_marks.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSecurityMarks", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateSecurityMarks", - "async": true, - "parameters": [ - { - "name": "security_marks", - "type": ".google.cloud.securitycenter.v1.SecurityMarks" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "start_time", - "type": ".google.protobuf.Timestamp" - } - ], - "resultType": ".google.cloud.securitycenter.v1.SecurityMarks", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "UpdateSecurityMarks", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateSecurityMarks", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateBigQueryExport_async", - "title": "SecurityCenter createBigQueryExport Sample", - "origin": "API_DEFINITION", - "description": " Creates a BigQuery export.", - "canonical": true, - "file": "security_center.create_big_query_export.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateBigQueryExport", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateBigQueryExport", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "big_query_export", - "type": ".google.cloud.securitycenter.v1.BigQueryExport" - }, - { - "name": "big_query_export_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securitycenter.v1.BigQueryExport", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "CreateBigQueryExport", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateBigQueryExport", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_DeleteBigQueryExport_async", - "title": "SecurityCenter deleteBigQueryExport Sample", - "origin": "API_DEFINITION", - "description": " Deletes an existing BigQuery export.", - "canonical": true, - "file": "security_center.delete_big_query_export.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteBigQueryExport", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.DeleteBigQueryExport", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "DeleteBigQueryExport", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.DeleteBigQueryExport", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateBigQueryExport_async", - "title": "SecurityCenter updateBigQueryExport Sample", - "origin": "API_DEFINITION", - "description": " Updates a BigQuery export.", - "canonical": true, - "file": "security_center.update_big_query_export.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateBigQueryExport", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateBigQueryExport", - "async": true, - "parameters": [ - { - "name": "big_query_export", - "type": ".google.cloud.securitycenter.v1.BigQueryExport" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.securitycenter.v1.BigQueryExport", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "UpdateBigQueryExport", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateBigQueryExport", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_ListBigQueryExports_async", - "title": "SecurityCenter listBigQueryExports Sample", - "origin": "API_DEFINITION", - "description": " Lists BigQuery exports. Note that when requesting BigQuery exports at a given level all exports under that level are also returned e.g. if requesting BigQuery exports under a folder, then all BigQuery exports immediately under the folder plus the ones created under the projects within the folder are returned.", - "canonical": true, - "file": "security_center.list_big_query_exports.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBigQueryExports", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListBigQueryExports", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securitycenter.v1.ListBigQueryExportsResponse", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "ListBigQueryExports", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListBigQueryExports", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_CreateEventThreatDetectionCustomModule_async", - "title": "SecurityCenter createEventThreatDetectionCustomModule Sample", - "origin": "API_DEFINITION", - "description": " Creates a resident Event Threat Detection custom module at the scope of the given Resource Manager parent, and also creates inherited custom modules for all descendants of the given parent. These modules are enabled by default.", - "canonical": true, - "file": "security_center.create_event_threat_detection_custom_module.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateEventThreatDetectionCustomModule", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateEventThreatDetectionCustomModule", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "event_threat_detection_custom_module", - "type": ".google.cloud.securitycenter.v1.EventThreatDetectionCustomModule" - } - ], - "resultType": ".google.cloud.securitycenter.v1.EventThreatDetectionCustomModule", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "CreateEventThreatDetectionCustomModule", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.CreateEventThreatDetectionCustomModule", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_DeleteEventThreatDetectionCustomModule_async", - "title": "SecurityCenter deleteEventThreatDetectionCustomModule Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified Event Threat Detection custom module and all of its descendants in the Resource Manager hierarchy. This method is only supported for resident custom modules.", - "canonical": true, - "file": "security_center.delete_event_threat_detection_custom_module.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteEventThreatDetectionCustomModule", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.DeleteEventThreatDetectionCustomModule", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "DeleteEventThreatDetectionCustomModule", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.DeleteEventThreatDetectionCustomModule", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_GetEventThreatDetectionCustomModule_async", - "title": "SecurityCenter getEventThreatDetectionCustomModule Sample", - "origin": "API_DEFINITION", - "description": " Gets an Event Threat Detection custom module.", - "canonical": true, - "file": "security_center.get_event_threat_detection_custom_module.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEventThreatDetectionCustomModule", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetEventThreatDetectionCustomModule", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securitycenter.v1.EventThreatDetectionCustomModule", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "GetEventThreatDetectionCustomModule", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetEventThreatDetectionCustomModule", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_ListDescendantEventThreatDetectionCustomModules_async", - "title": "SecurityCenter listDescendantEventThreatDetectionCustomModules Sample", - "origin": "API_DEFINITION", - "description": " Lists all resident Event Threat Detection custom modules under the given Resource Manager parent and its descendants.", - "canonical": true, - "file": "security_center.list_descendant_event_threat_detection_custom_modules.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDescendantEventThreatDetectionCustomModules", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListDescendantEventThreatDetectionCustomModules", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.securitycenter.v1.ListDescendantEventThreatDetectionCustomModulesResponse", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "ListDescendantEventThreatDetectionCustomModules", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListDescendantEventThreatDetectionCustomModules", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_ListEventThreatDetectionCustomModules_async", - "title": "SecurityCenter listEventThreatDetectionCustomModules Sample", - "origin": "API_DEFINITION", - "description": " Lists all Event Threat Detection custom modules for the given Resource Manager parent. This includes resident modules defined at the scope of the parent along with modules inherited from ancestors.", - "canonical": true, - "file": "security_center.list_event_threat_detection_custom_modules.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEventThreatDetectionCustomModules", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListEventThreatDetectionCustomModules", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.securitycenter.v1.ListEventThreatDetectionCustomModulesResponse", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "ListEventThreatDetectionCustomModules", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListEventThreatDetectionCustomModules", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateEventThreatDetectionCustomModule_async", - "title": "SecurityCenter updateEventThreatDetectionCustomModule Sample", - "origin": "API_DEFINITION", - "description": " Updates the Event Threat Detection custom module with the given name based on the given update mask. Updating the enablement state is supported for both resident and inherited modules (though resident modules cannot have an enablement state of \"inherited\"). Updating the display name or configuration of a module is supported for resident modules only. The type of a module cannot be changed.", - "canonical": true, - "file": "security_center.update_event_threat_detection_custom_module.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateEventThreatDetectionCustomModule", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateEventThreatDetectionCustomModule", - "async": true, - "parameters": [ - { - "name": "event_threat_detection_custom_module", - "type": ".google.cloud.securitycenter.v1.EventThreatDetectionCustomModule" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.securitycenter.v1.EventThreatDetectionCustomModule", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "UpdateEventThreatDetectionCustomModule", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateEventThreatDetectionCustomModule", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_ValidateEventThreatDetectionCustomModule_async", - "title": "SecurityCenter validateEventThreatDetectionCustomModule Sample", - "origin": "API_DEFINITION", - "description": " Validates the given Event Threat Detection custom module.", - "canonical": true, - "file": "security_center.validate_event_threat_detection_custom_module.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ValidateEventThreatDetectionCustomModule", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ValidateEventThreatDetectionCustomModule", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "raw_text", - "type": "TYPE_STRING" - }, - { - "name": "type", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securitycenter.v1.ValidateEventThreatDetectionCustomModuleResponse", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "ValidateEventThreatDetectionCustomModule", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ValidateEventThreatDetectionCustomModule", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_GetEffectiveEventThreatDetectionCustomModule_async", - "title": "SecurityCenter getEffectiveEventThreatDetectionCustomModule Sample", - "origin": "API_DEFINITION", - "description": " Gets an effective Event Threat Detection custom module at the given level.", - "canonical": true, - "file": "security_center.get_effective_event_threat_detection_custom_module.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEffectiveEventThreatDetectionCustomModule", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetEffectiveEventThreatDetectionCustomModule", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securitycenter.v1.EffectiveEventThreatDetectionCustomModule", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "GetEffectiveEventThreatDetectionCustomModule", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetEffectiveEventThreatDetectionCustomModule", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_ListEffectiveEventThreatDetectionCustomModules_async", - "title": "SecurityCenter listEffectiveEventThreatDetectionCustomModules Sample", - "origin": "API_DEFINITION", - "description": " Lists all effective Event Threat Detection custom modules for the given parent. This includes resident modules defined at the scope of the parent along with modules inherited from its ancestors.", - "canonical": true, - "file": "security_center.list_effective_event_threat_detection_custom_modules.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEffectiveEventThreatDetectionCustomModules", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListEffectiveEventThreatDetectionCustomModules", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.securitycenter.v1.ListEffectiveEventThreatDetectionCustomModulesResponse", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "ListEffectiveEventThreatDetectionCustomModules", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListEffectiveEventThreatDetectionCustomModules", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_BatchCreateResourceValueConfigs_async", - "title": "SecurityCenter batchCreateResourceValueConfigs Sample", - "origin": "API_DEFINITION", - "description": " Creates a ResourceValueConfig for an organization. Maps user's tags to difference resource values for use by the attack path simulation.", - "canonical": true, - "file": "security_center.batch_create_resource_value_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCreateResourceValueConfigs", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.BatchCreateResourceValueConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.securitycenter.v1.BatchCreateResourceValueConfigsResponse", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "BatchCreateResourceValueConfigs", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.BatchCreateResourceValueConfigs", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_DeleteResourceValueConfig_async", - "title": "SecurityCenter deleteResourceValueConfig Sample", - "origin": "API_DEFINITION", - "description": " Deletes a ResourceValueConfig.", - "canonical": true, - "file": "security_center.delete_resource_value_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteResourceValueConfig", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.DeleteResourceValueConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "DeleteResourceValueConfig", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.DeleteResourceValueConfig", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_GetResourceValueConfig_async", - "title": "SecurityCenter getResourceValueConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets a ResourceValueConfig.", - "canonical": true, - "file": "security_center.get_resource_value_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetResourceValueConfig", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetResourceValueConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securitycenter.v1.ResourceValueConfig", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "GetResourceValueConfig", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.GetResourceValueConfig", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_ListResourceValueConfigs_async", - "title": "SecurityCenter listResourceValueConfigs Sample", - "origin": "API_DEFINITION", - "description": " Lists all ResourceValueConfigs.", - "canonical": true, - "file": "security_center.list_resource_value_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListResourceValueConfigs", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListResourceValueConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securitycenter.v1.ListResourceValueConfigsResponse", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "ListResourceValueConfigs", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListResourceValueConfigs", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_UpdateResourceValueConfig_async", - "title": "SecurityCenter updateResourceValueConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates an existing ResourceValueConfigs with new rules.", - "canonical": true, - "file": "security_center.update_resource_value_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateResourceValueConfig", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateResourceValueConfig", - "async": true, - "parameters": [ - { - "name": "resource_value_config", - "type": ".google.cloud.securitycenter.v1.ResourceValueConfig" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.securitycenter.v1.ResourceValueConfig", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "UpdateResourceValueConfig", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.UpdateResourceValueConfig", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_ListValuedResources_async", - "title": "SecurityCenter listValuedResources Sample", - "origin": "API_DEFINITION", - "description": " Lists the valued resources for a set of simulation results and filter.", - "canonical": true, - "file": "security_center.list_valued_resources.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 92, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListValuedResources", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListValuedResources", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securitycenter.v1.ListValuedResourcesResponse", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "ListValuedResources", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListValuedResources", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1_generated_SecurityCenter_ListAttackPaths_async", - "title": "SecurityCenter listAttackPaths Sample", - "origin": "API_DEFINITION", - "description": " Lists the attack paths for a set of simulation results or valued resources and filter.", - "canonical": true, - "file": "security_center.list_attack_paths.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAttackPaths", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListAttackPaths", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.securitycenter.v1.ListAttackPathsResponse", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1.SecurityCenterClient" - }, - "method": { - "shortName": "ListAttackPaths", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter.ListAttackPaths", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1.SecurityCenter" - } - } - } - } - ] -} diff --git a/packages/google-cloud-securitycenter/samples/generated/v1beta1/snippet_metadata_google.cloud.securitycenter.v1beta1.json b/packages/google-cloud-securitycenter/samples/generated/v1beta1/snippet_metadata_google.cloud.securitycenter.v1beta1.json deleted file mode 100644 index e41fe5b440c8..000000000000 --- a/packages/google-cloud-securitycenter/samples/generated/v1beta1/snippet_metadata_google.cloud.securitycenter.v1beta1.json +++ /dev/null @@ -1,895 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-securitycenter", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.securitycenter.v1beta1", - "version": "v1beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "securitycenter_v1beta1_generated_SecurityCenter_CreateSource_async", - "title": "SecurityCenter createSource Sample", - "origin": "API_DEFINITION", - "description": " Creates a source.", - "canonical": true, - "file": "security_center.create_source.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSource", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter.CreateSource", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "source", - "type": ".google.cloud.securitycenter.v1beta1.Source" - } - ], - "resultType": ".google.cloud.securitycenter.v1beta1.Source", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenterClient" - }, - "method": { - "shortName": "CreateSource", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter.CreateSource", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1beta1_generated_SecurityCenter_CreateFinding_async", - "title": "SecurityCenter createFinding Sample", - "origin": "API_DEFINITION", - "description": " Creates a finding. The corresponding source must exist for finding creation to succeed.", - "canonical": true, - "file": "security_center.create_finding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateFinding", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter.CreateFinding", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "finding_id", - "type": "TYPE_STRING" - }, - { - "name": "finding", - "type": ".google.cloud.securitycenter.v1beta1.Finding" - } - ], - "resultType": ".google.cloud.securitycenter.v1beta1.Finding", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenterClient" - }, - "method": { - "shortName": "CreateFinding", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter.CreateFinding", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1beta1_generated_SecurityCenter_GetIamPolicy_async", - "title": "SecurityCenter getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy on the specified Source.", - "canonical": true, - "file": "security_center.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": ".google.iam.v1.GetPolicyOptions" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenterClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter.GetIamPolicy", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1beta1_generated_SecurityCenter_GetOrganizationSettings_async", - "title": "SecurityCenter getOrganizationSettings Sample", - "origin": "API_DEFINITION", - "description": " Gets the settings for an organization.", - "canonical": true, - "file": "security_center.get_organization_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetOrganizationSettings", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter.GetOrganizationSettings", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securitycenter.v1beta1.OrganizationSettings", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenterClient" - }, - "method": { - "shortName": "GetOrganizationSettings", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter.GetOrganizationSettings", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1beta1_generated_SecurityCenter_GetSource_async", - "title": "SecurityCenter getSource Sample", - "origin": "API_DEFINITION", - "description": " Gets a source.", - "canonical": true, - "file": "security_center.get_source.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSource", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter.GetSource", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securitycenter.v1beta1.Source", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenterClient" - }, - "method": { - "shortName": "GetSource", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter.GetSource", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1beta1_generated_SecurityCenter_GroupAssets_async", - "title": "SecurityCenter groupAssets Sample", - "origin": "API_DEFINITION", - "description": " Filters an organization's assets and groups them by their specified properties.", - "canonical": true, - "file": "security_center.group_assets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 131, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GroupAssets", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter.GroupAssets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "group_by", - "type": "TYPE_STRING" - }, - { - "name": "compare_duration", - "type": ".google.protobuf.Duration" - }, - { - "name": "read_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.securitycenter.v1beta1.GroupAssetsResponse", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenterClient" - }, - "method": { - "shortName": "GroupAssets", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter.GroupAssets", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1beta1_generated_SecurityCenter_GroupFindings_async", - "title": "SecurityCenter groupFindings Sample", - "origin": "API_DEFINITION", - "description": " Filters an organization or source's findings and groups them by their specified properties. To group across all sources provide a `-` as the source id. Example: /v1beta1/organizations/{organization_id}/sources/-/findings", - "canonical": true, - "file": "security_center.group_findings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 110, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GroupFindings", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter.GroupFindings", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "group_by", - "type": "TYPE_STRING" - }, - { - "name": "read_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.securitycenter.v1beta1.GroupFindingsResponse", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenterClient" - }, - "method": { - "shortName": "GroupFindings", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter.GroupFindings", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1beta1_generated_SecurityCenter_ListAssets_async", - "title": "SecurityCenter listAssets Sample", - "origin": "API_DEFINITION", - "description": " Lists an organization's assets.", - "canonical": true, - "file": "security_center.list_assets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 136, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAssets", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter.ListAssets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "read_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "compare_duration", - "type": ".google.protobuf.Duration" - }, - { - "name": "field_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.securitycenter.v1beta1.ListAssetsResponse", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenterClient" - }, - "method": { - "shortName": "ListAssets", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter.ListAssets", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1beta1_generated_SecurityCenter_ListFindings_async", - "title": "SecurityCenter listFindings Sample", - "origin": "API_DEFINITION", - "description": " Lists an organization or source's findings. To list across all sources provide a `-` as the source id. Example: /v1beta1/organizations/{organization_id}/sources/-/findings", - "canonical": true, - "file": "security_center.list_findings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 113, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFindings", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter.ListFindings", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "read_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "field_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.securitycenter.v1beta1.ListFindingsResponse", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenterClient" - }, - "method": { - "shortName": "ListFindings", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter.ListFindings", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1beta1_generated_SecurityCenter_ListSources_async", - "title": "SecurityCenter listSources Sample", - "origin": "API_DEFINITION", - "description": " Lists all sources belonging to an organization.", - "canonical": true, - "file": "security_center.list_sources.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSources", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter.ListSources", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.securitycenter.v1beta1.ListSourcesResponse", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenterClient" - }, - "method": { - "shortName": "ListSources", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter.ListSources", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1beta1_generated_SecurityCenter_RunAssetDiscovery_async", - "title": "SecurityCenter runAssetDiscovery Sample", - "origin": "API_DEFINITION", - "description": " Runs asset discovery. The discovery is tracked with a long-running operation. This API can only be called with limited frequency for an organization. If it is called too frequently the caller will receive a TOO_MANY_REQUESTS error.", - "canonical": true, - "file": "security_center.run_asset_discovery.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RunAssetDiscovery", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter.RunAssetDiscovery", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenterClient" - }, - "method": { - "shortName": "RunAssetDiscovery", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter.RunAssetDiscovery", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1beta1_generated_SecurityCenter_SetFindingState_async", - "title": "SecurityCenter setFindingState Sample", - "origin": "API_DEFINITION", - "description": " Updates the state of a finding.", - "canonical": true, - "file": "security_center.set_finding_state.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetFindingState", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter.SetFindingState", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "state", - "type": ".google.cloud.securitycenter.v1beta1.Finding.State" - }, - { - "name": "start_time", - "type": ".google.protobuf.Timestamp" - } - ], - "resultType": ".google.cloud.securitycenter.v1beta1.Finding", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenterClient" - }, - "method": { - "shortName": "SetFindingState", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter.SetFindingState", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1beta1_generated_SecurityCenter_SetIamPolicy_async", - "title": "SecurityCenter setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified Source.", - "canonical": true, - "file": "security_center.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.iam.v1.Policy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenterClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter.SetIamPolicy", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1beta1_generated_SecurityCenter_TestIamPermissions_async", - "title": "SecurityCenter testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns the permissions that a caller has on the specified source.", - "canonical": true, - "file": "security_center.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "permissions", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.iam.v1.TestIamPermissionsResponse", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenterClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter.TestIamPermissions", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1beta1_generated_SecurityCenter_UpdateFinding_async", - "title": "SecurityCenter updateFinding Sample", - "origin": "API_DEFINITION", - "description": " Creates or updates a finding. The corresponding source must exist for a finding creation to succeed.", - "canonical": true, - "file": "security_center.update_finding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateFinding", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter.UpdateFinding", - "async": true, - "parameters": [ - { - "name": "finding", - "type": ".google.cloud.securitycenter.v1beta1.Finding" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.securitycenter.v1beta1.Finding", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenterClient" - }, - "method": { - "shortName": "UpdateFinding", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter.UpdateFinding", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1beta1_generated_SecurityCenter_UpdateOrganizationSettings_async", - "title": "SecurityCenter updateOrganizationSettings Sample", - "origin": "API_DEFINITION", - "description": " Updates an organization's settings.", - "canonical": true, - "file": "security_center.update_organization_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateOrganizationSettings", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter.UpdateOrganizationSettings", - "async": true, - "parameters": [ - { - "name": "organization_settings", - "type": ".google.cloud.securitycenter.v1beta1.OrganizationSettings" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.securitycenter.v1beta1.OrganizationSettings", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenterClient" - }, - "method": { - "shortName": "UpdateOrganizationSettings", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter.UpdateOrganizationSettings", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1beta1_generated_SecurityCenter_UpdateSource_async", - "title": "SecurityCenter updateSource Sample", - "origin": "API_DEFINITION", - "description": " Updates a source.", - "canonical": true, - "file": "security_center.update_source.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSource", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter.UpdateSource", - "async": true, - "parameters": [ - { - "name": "source", - "type": ".google.cloud.securitycenter.v1beta1.Source" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.securitycenter.v1beta1.Source", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenterClient" - }, - "method": { - "shortName": "UpdateSource", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter.UpdateSource", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1beta1_generated_SecurityCenter_UpdateSecurityMarks_async", - "title": "SecurityCenter updateSecurityMarks Sample", - "origin": "API_DEFINITION", - "description": " Updates security marks.", - "canonical": true, - "file": "security_center.update_security_marks.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSecurityMarks", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter.UpdateSecurityMarks", - "async": true, - "parameters": [ - { - "name": "security_marks", - "type": ".google.cloud.securitycenter.v1beta1.SecurityMarks" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "start_time", - "type": ".google.protobuf.Timestamp" - } - ], - "resultType": ".google.cloud.securitycenter.v1beta1.SecurityMarks", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenterClient" - }, - "method": { - "shortName": "UpdateSecurityMarks", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter.UpdateSecurityMarks", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1beta1.SecurityCenter" - } - } - } - } - ] -} diff --git a/packages/google-cloud-securitycenter/samples/generated/v1p1beta1/snippet_metadata_google.cloud.securitycenter.v1p1beta1.json b/packages/google-cloud-securitycenter/samples/generated/v1p1beta1/snippet_metadata_google.cloud.securitycenter.v1p1beta1.json deleted file mode 100644 index 73ceda373e34..000000000000 --- a/packages/google-cloud-securitycenter/samples/generated/v1p1beta1/snippet_metadata_google.cloud.securitycenter.v1p1beta1.json +++ /dev/null @@ -1,1123 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-securitycenter", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.securitycenter.v1p1beta1", - "version": "v1p1beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "securitycenter_v1p1beta1_generated_SecurityCenter_CreateSource_async", - "title": "SecurityCenter createSource Sample", - "origin": "API_DEFINITION", - "description": " Creates a source.", - "canonical": true, - "file": "security_center.create_source.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSource", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.CreateSource", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "source", - "type": ".google.cloud.securitycenter.v1p1beta1.Source" - } - ], - "resultType": ".google.cloud.securitycenter.v1p1beta1.Source", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenterClient" - }, - "method": { - "shortName": "CreateSource", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.CreateSource", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1p1beta1_generated_SecurityCenter_CreateFinding_async", - "title": "SecurityCenter createFinding Sample", - "origin": "API_DEFINITION", - "description": " Creates a finding. The corresponding source must exist for finding creation to succeed.", - "canonical": true, - "file": "security_center.create_finding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateFinding", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.CreateFinding", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "finding_id", - "type": "TYPE_STRING" - }, - { - "name": "finding", - "type": ".google.cloud.securitycenter.v1p1beta1.Finding" - } - ], - "resultType": ".google.cloud.securitycenter.v1p1beta1.Finding", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenterClient" - }, - "method": { - "shortName": "CreateFinding", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.CreateFinding", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1p1beta1_generated_SecurityCenter_CreateNotificationConfig_async", - "title": "SecurityCenter createNotificationConfig Sample", - "origin": "API_DEFINITION", - "description": " Creates a notification config.", - "canonical": true, - "file": "security_center.create_notification_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateNotificationConfig", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.CreateNotificationConfig", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "config_id", - "type": "TYPE_STRING" - }, - { - "name": "notification_config", - "type": ".google.cloud.securitycenter.v1p1beta1.NotificationConfig" - } - ], - "resultType": ".google.cloud.securitycenter.v1p1beta1.NotificationConfig", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenterClient" - }, - "method": { - "shortName": "CreateNotificationConfig", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.CreateNotificationConfig", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1p1beta1_generated_SecurityCenter_DeleteNotificationConfig_async", - "title": "SecurityCenter deleteNotificationConfig Sample", - "origin": "API_DEFINITION", - "description": " Deletes a notification config.", - "canonical": true, - "file": "security_center.delete_notification_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteNotificationConfig", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.DeleteNotificationConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenterClient" - }, - "method": { - "shortName": "DeleteNotificationConfig", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.DeleteNotificationConfig", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1p1beta1_generated_SecurityCenter_GetIamPolicy_async", - "title": "SecurityCenter getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy on the specified Source.", - "canonical": true, - "file": "security_center.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": ".google.iam.v1.GetPolicyOptions" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenterClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.GetIamPolicy", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1p1beta1_generated_SecurityCenter_GetNotificationConfig_async", - "title": "SecurityCenter getNotificationConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets a notification config.", - "canonical": true, - "file": "security_center.get_notification_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetNotificationConfig", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.GetNotificationConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securitycenter.v1p1beta1.NotificationConfig", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenterClient" - }, - "method": { - "shortName": "GetNotificationConfig", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.GetNotificationConfig", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1p1beta1_generated_SecurityCenter_GetOrganizationSettings_async", - "title": "SecurityCenter getOrganizationSettings Sample", - "origin": "API_DEFINITION", - "description": " Gets the settings for an organization.", - "canonical": true, - "file": "security_center.get_organization_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetOrganizationSettings", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.GetOrganizationSettings", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securitycenter.v1p1beta1.OrganizationSettings", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenterClient" - }, - "method": { - "shortName": "GetOrganizationSettings", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.GetOrganizationSettings", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1p1beta1_generated_SecurityCenter_GetSource_async", - "title": "SecurityCenter getSource Sample", - "origin": "API_DEFINITION", - "description": " Gets a source.", - "canonical": true, - "file": "security_center.get_source.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSource", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.GetSource", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securitycenter.v1p1beta1.Source", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenterClient" - }, - "method": { - "shortName": "GetSource", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.GetSource", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1p1beta1_generated_SecurityCenter_GroupAssets_async", - "title": "SecurityCenter groupAssets Sample", - "origin": "API_DEFINITION", - "description": " Filters an organization's assets and groups them by their specified properties.", - "canonical": true, - "file": "security_center.group_assets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 168, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GroupAssets", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.GroupAssets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "group_by", - "type": "TYPE_STRING" - }, - { - "name": "compare_duration", - "type": ".google.protobuf.Duration" - }, - { - "name": "read_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.securitycenter.v1p1beta1.GroupAssetsResponse", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenterClient" - }, - "method": { - "shortName": "GroupAssets", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.GroupAssets", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1p1beta1_generated_SecurityCenter_GroupFindings_async", - "title": "SecurityCenter groupFindings Sample", - "origin": "API_DEFINITION", - "description": " Filters an organization or source's findings and groups them by their specified properties. To group across all sources provide a `-` as the source id. Example: /v1/organizations/{organization_id}/sources/-/findings, /v1/folders/{folder_id}/sources/-/findings, /v1/projects/{project_id}/sources/-/findings", - "canonical": true, - "file": "security_center.group_findings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 164, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GroupFindings", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.GroupFindings", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "group_by", - "type": "TYPE_STRING" - }, - { - "name": "read_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "compare_duration", - "type": ".google.protobuf.Duration" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.securitycenter.v1p1beta1.GroupFindingsResponse", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenterClient" - }, - "method": { - "shortName": "GroupFindings", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.GroupFindings", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1p1beta1_generated_SecurityCenter_ListAssets_async", - "title": "SecurityCenter listAssets Sample", - "origin": "API_DEFINITION", - "description": " Lists an organization's assets.", - "canonical": true, - "file": "security_center.list_assets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 177, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAssets", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.ListAssets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "read_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "compare_duration", - "type": ".google.protobuf.Duration" - }, - { - "name": "field_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.securitycenter.v1p1beta1.ListAssetsResponse", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenterClient" - }, - "method": { - "shortName": "ListAssets", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.ListAssets", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1p1beta1_generated_SecurityCenter_ListFindings_async", - "title": "SecurityCenter listFindings Sample", - "origin": "API_DEFINITION", - "description": " Lists an organization or source's findings. To list across all sources provide a `-` as the source id. Example: /v1p1beta1/organizations/{organization_id}/sources/-/findings", - "canonical": true, - "file": "security_center.list_findings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 173, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFindings", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.ListFindings", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "read_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "compare_duration", - "type": ".google.protobuf.Duration" - }, - { - "name": "field_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.securitycenter.v1p1beta1.ListFindingsResponse", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenterClient" - }, - "method": { - "shortName": "ListFindings", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.ListFindings", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1p1beta1_generated_SecurityCenter_ListNotificationConfigs_async", - "title": "SecurityCenter listNotificationConfigs Sample", - "origin": "API_DEFINITION", - "description": " Lists notification configs.", - "canonical": true, - "file": "security_center.list_notification_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListNotificationConfigs", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.ListNotificationConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.securitycenter.v1p1beta1.ListNotificationConfigsResponse", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenterClient" - }, - "method": { - "shortName": "ListNotificationConfigs", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.ListNotificationConfigs", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1p1beta1_generated_SecurityCenter_ListSources_async", - "title": "SecurityCenter listSources Sample", - "origin": "API_DEFINITION", - "description": " Lists all sources belonging to an organization.", - "canonical": true, - "file": "security_center.list_sources.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSources", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.ListSources", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.securitycenter.v1p1beta1.ListSourcesResponse", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenterClient" - }, - "method": { - "shortName": "ListSources", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.ListSources", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1p1beta1_generated_SecurityCenter_RunAssetDiscovery_async", - "title": "SecurityCenter runAssetDiscovery Sample", - "origin": "API_DEFINITION", - "description": " Runs asset discovery. The discovery is tracked with a long-running operation. This API can only be called with limited frequency for an organization. If it is called too frequently the caller will receive a TOO_MANY_REQUESTS error.", - "canonical": true, - "file": "security_center.run_asset_discovery.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RunAssetDiscovery", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.RunAssetDiscovery", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenterClient" - }, - "method": { - "shortName": "RunAssetDiscovery", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.RunAssetDiscovery", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1p1beta1_generated_SecurityCenter_SetFindingState_async", - "title": "SecurityCenter setFindingState Sample", - "origin": "API_DEFINITION", - "description": " Updates the state of a finding.", - "canonical": true, - "file": "security_center.set_finding_state.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetFindingState", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.SetFindingState", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "state", - "type": ".google.cloud.securitycenter.v1p1beta1.Finding.State" - }, - { - "name": "start_time", - "type": ".google.protobuf.Timestamp" - } - ], - "resultType": ".google.cloud.securitycenter.v1p1beta1.Finding", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenterClient" - }, - "method": { - "shortName": "SetFindingState", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.SetFindingState", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1p1beta1_generated_SecurityCenter_SetIamPolicy_async", - "title": "SecurityCenter setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified Source.", - "canonical": true, - "file": "security_center.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.iam.v1.Policy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenterClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.SetIamPolicy", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1p1beta1_generated_SecurityCenter_TestIamPermissions_async", - "title": "SecurityCenter testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns the permissions that a caller has on the specified source.", - "canonical": true, - "file": "security_center.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "permissions", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.iam.v1.TestIamPermissionsResponse", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenterClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.TestIamPermissions", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1p1beta1_generated_SecurityCenter_UpdateFinding_async", - "title": "SecurityCenter updateFinding Sample", - "origin": "API_DEFINITION", - "description": " Creates or updates a finding. The corresponding source must exist for a finding creation to succeed.", - "canonical": true, - "file": "security_center.update_finding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateFinding", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.UpdateFinding", - "async": true, - "parameters": [ - { - "name": "finding", - "type": ".google.cloud.securitycenter.v1p1beta1.Finding" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.securitycenter.v1p1beta1.Finding", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenterClient" - }, - "method": { - "shortName": "UpdateFinding", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.UpdateFinding", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1p1beta1_generated_SecurityCenter_UpdateNotificationConfig_async", - "title": "SecurityCenter updateNotificationConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates a notification config. The following update fields are allowed: description, pubsub_topic, streaming_config.filter", - "canonical": true, - "file": "security_center.update_notification_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateNotificationConfig", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.UpdateNotificationConfig", - "async": true, - "parameters": [ - { - "name": "notification_config", - "type": ".google.cloud.securitycenter.v1p1beta1.NotificationConfig" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.securitycenter.v1p1beta1.NotificationConfig", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenterClient" - }, - "method": { - "shortName": "UpdateNotificationConfig", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.UpdateNotificationConfig", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1p1beta1_generated_SecurityCenter_UpdateOrganizationSettings_async", - "title": "SecurityCenter updateOrganizationSettings Sample", - "origin": "API_DEFINITION", - "description": " Updates an organization's settings.", - "canonical": true, - "file": "security_center.update_organization_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateOrganizationSettings", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.UpdateOrganizationSettings", - "async": true, - "parameters": [ - { - "name": "organization_settings", - "type": ".google.cloud.securitycenter.v1p1beta1.OrganizationSettings" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.securitycenter.v1p1beta1.OrganizationSettings", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenterClient" - }, - "method": { - "shortName": "UpdateOrganizationSettings", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.UpdateOrganizationSettings", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1p1beta1_generated_SecurityCenter_UpdateSource_async", - "title": "SecurityCenter updateSource Sample", - "origin": "API_DEFINITION", - "description": " Updates a source.", - "canonical": true, - "file": "security_center.update_source.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSource", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.UpdateSource", - "async": true, - "parameters": [ - { - "name": "source", - "type": ".google.cloud.securitycenter.v1p1beta1.Source" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.securitycenter.v1p1beta1.Source", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenterClient" - }, - "method": { - "shortName": "UpdateSource", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.UpdateSource", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v1p1beta1_generated_SecurityCenter_UpdateSecurityMarks_async", - "title": "SecurityCenter updateSecurityMarks Sample", - "origin": "API_DEFINITION", - "description": " Updates security marks.", - "canonical": true, - "file": "security_center.update_security_marks.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSecurityMarks", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.UpdateSecurityMarks", - "async": true, - "parameters": [ - { - "name": "security_marks", - "type": ".google.cloud.securitycenter.v1p1beta1.SecurityMarks" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "start_time", - "type": ".google.protobuf.Timestamp" - } - ], - "resultType": ".google.cloud.securitycenter.v1p1beta1.SecurityMarks", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenterClient" - }, - "method": { - "shortName": "UpdateSecurityMarks", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter.UpdateSecurityMarks", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v1p1beta1.SecurityCenter" - } - } - } - } - ] -} diff --git a/packages/google-cloud-securitycenter/samples/generated/v2/snippet_metadata_google.cloud.securitycenter.v2.json b/packages/google-cloud-securitycenter/samples/generated/v2/snippet_metadata_google.cloud.securitycenter.v2.json deleted file mode 100644 index c59a76de87ba..000000000000 --- a/packages/google-cloud-securitycenter/samples/generated/v2/snippet_metadata_google.cloud.securitycenter.v2.json +++ /dev/null @@ -1,1823 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-securitycenter", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.securitycenter.v2", - "version": "v2" - } - ] - }, - "snippets": [ - { - "regionTag": "securitycenter_v2_generated_SecurityCenter_BatchCreateResourceValueConfigs_async", - "title": "SecurityCenter batchCreateResourceValueConfigs Sample", - "origin": "API_DEFINITION", - "description": " Creates a ResourceValueConfig for an organization. Maps user's tags to difference resource values for use by the attack path simulation.", - "canonical": true, - "file": "security_center.batch_create_resource_value_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCreateResourceValueConfigs", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.BatchCreateResourceValueConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.securitycenter.v2.BatchCreateResourceValueConfigsResponse", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v2.SecurityCenterClient" - }, - "method": { - "shortName": "BatchCreateResourceValueConfigs", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.BatchCreateResourceValueConfigs", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v2_generated_SecurityCenter_BulkMuteFindings_async", - "title": "SecurityCenter bulkMuteFindings Sample", - "origin": "API_DEFINITION", - "description": " Kicks off an LRO to bulk mute findings for a parent based on a filter. If no location is specified, findings are muted in global. The parent can be either an organization, folder, or project. The findings matched by the filter will be muted after the LRO is done.", - "canonical": true, - "file": "security_center.bulk_mute_findings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BulkMuteFindings", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.BulkMuteFindings", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "mute_state", - "type": ".google.cloud.securitycenter.v2.BulkMuteFindingsRequest.MuteState" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v2.SecurityCenterClient" - }, - "method": { - "shortName": "BulkMuteFindings", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.BulkMuteFindings", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v2_generated_SecurityCenter_CreateBigQueryExport_async", - "title": "SecurityCenter createBigQueryExport Sample", - "origin": "API_DEFINITION", - "description": " Creates a BigQuery export.", - "canonical": true, - "file": "security_center.create_big_query_export.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateBigQueryExport", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.CreateBigQueryExport", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "big_query_export", - "type": ".google.cloud.securitycenter.v2.BigQueryExport" - }, - { - "name": "big_query_export_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securitycenter.v2.BigQueryExport", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v2.SecurityCenterClient" - }, - "method": { - "shortName": "CreateBigQueryExport", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.CreateBigQueryExport", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v2_generated_SecurityCenter_CreateFinding_async", - "title": "SecurityCenter createFinding Sample", - "origin": "API_DEFINITION", - "description": " Creates a finding in a location. The corresponding source must exist for finding creation to succeed.", - "canonical": true, - "file": "security_center.create_finding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateFinding", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.CreateFinding", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "finding_id", - "type": "TYPE_STRING" - }, - { - "name": "finding", - "type": ".google.cloud.securitycenter.v2.Finding" - } - ], - "resultType": ".google.cloud.securitycenter.v2.Finding", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v2.SecurityCenterClient" - }, - "method": { - "shortName": "CreateFinding", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.CreateFinding", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v2_generated_SecurityCenter_CreateMuteConfig_async", - "title": "SecurityCenter createMuteConfig Sample", - "origin": "API_DEFINITION", - "description": " Creates a mute config.", - "canonical": true, - "file": "security_center.create_mute_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateMuteConfig", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.CreateMuteConfig", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "mute_config", - "type": ".google.cloud.securitycenter.v2.MuteConfig" - }, - { - "name": "mute_config_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securitycenter.v2.MuteConfig", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v2.SecurityCenterClient" - }, - "method": { - "shortName": "CreateMuteConfig", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.CreateMuteConfig", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v2_generated_SecurityCenter_CreateNotificationConfig_async", - "title": "SecurityCenter createNotificationConfig Sample", - "origin": "API_DEFINITION", - "description": " Creates a notification config.", - "canonical": true, - "file": "security_center.create_notification_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateNotificationConfig", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.CreateNotificationConfig", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "config_id", - "type": "TYPE_STRING" - }, - { - "name": "notification_config", - "type": ".google.cloud.securitycenter.v2.NotificationConfig" - } - ], - "resultType": ".google.cloud.securitycenter.v2.NotificationConfig", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v2.SecurityCenterClient" - }, - "method": { - "shortName": "CreateNotificationConfig", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.CreateNotificationConfig", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v2_generated_SecurityCenter_CreateSource_async", - "title": "SecurityCenter createSource Sample", - "origin": "API_DEFINITION", - "description": " Creates a source.", - "canonical": true, - "file": "security_center.create_source.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSource", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.CreateSource", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "source", - "type": ".google.cloud.securitycenter.v2.Source" - } - ], - "resultType": ".google.cloud.securitycenter.v2.Source", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v2.SecurityCenterClient" - }, - "method": { - "shortName": "CreateSource", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.CreateSource", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v2_generated_SecurityCenter_DeleteBigQueryExport_async", - "title": "SecurityCenter deleteBigQueryExport Sample", - "origin": "API_DEFINITION", - "description": " Deletes an existing BigQuery export.", - "canonical": true, - "file": "security_center.delete_big_query_export.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteBigQueryExport", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.DeleteBigQueryExport", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v2.SecurityCenterClient" - }, - "method": { - "shortName": "DeleteBigQueryExport", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.DeleteBigQueryExport", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v2_generated_SecurityCenter_DeleteMuteConfig_async", - "title": "SecurityCenter deleteMuteConfig Sample", - "origin": "API_DEFINITION", - "description": " Deletes an existing mute config. If no location is specified, default is global.", - "canonical": true, - "file": "security_center.delete_mute_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteMuteConfig", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.DeleteMuteConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v2.SecurityCenterClient" - }, - "method": { - "shortName": "DeleteMuteConfig", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.DeleteMuteConfig", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v2_generated_SecurityCenter_DeleteNotificationConfig_async", - "title": "SecurityCenter deleteNotificationConfig Sample", - "origin": "API_DEFINITION", - "description": " Deletes a notification config.", - "canonical": true, - "file": "security_center.delete_notification_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteNotificationConfig", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.DeleteNotificationConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v2.SecurityCenterClient" - }, - "method": { - "shortName": "DeleteNotificationConfig", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.DeleteNotificationConfig", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v2_generated_SecurityCenter_DeleteResourceValueConfig_async", - "title": "SecurityCenter deleteResourceValueConfig Sample", - "origin": "API_DEFINITION", - "description": " Deletes a ResourceValueConfig.", - "canonical": true, - "file": "security_center.delete_resource_value_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteResourceValueConfig", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.DeleteResourceValueConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v2.SecurityCenterClient" - }, - "method": { - "shortName": "DeleteResourceValueConfig", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.DeleteResourceValueConfig", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v2_generated_SecurityCenter_GetBigQueryExport_async", - "title": "SecurityCenter getBigQueryExport Sample", - "origin": "API_DEFINITION", - "description": " Gets a BigQuery export.", - "canonical": true, - "file": "security_center.get_big_query_export.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBigQueryExport", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.GetBigQueryExport", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securitycenter.v2.BigQueryExport", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v2.SecurityCenterClient" - }, - "method": { - "shortName": "GetBigQueryExport", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.GetBigQueryExport", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v2_generated_SecurityCenter_GetSimulation_async", - "title": "SecurityCenter getSimulation Sample", - "origin": "API_DEFINITION", - "description": " Get the simulation by name or the latest simulation for the given organization.", - "canonical": true, - "file": "security_center.get_simulation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSimulation", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.GetSimulation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securitycenter.v2.Simulation", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v2.SecurityCenterClient" - }, - "method": { - "shortName": "GetSimulation", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.GetSimulation", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v2_generated_SecurityCenter_GetValuedResource_async", - "title": "SecurityCenter getValuedResource Sample", - "origin": "API_DEFINITION", - "description": " Get the valued resource by name", - "canonical": true, - "file": "security_center.get_valued_resource.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetValuedResource", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.GetValuedResource", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securitycenter.v2.ValuedResource", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v2.SecurityCenterClient" - }, - "method": { - "shortName": "GetValuedResource", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.GetValuedResource", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v2_generated_SecurityCenter_GetIamPolicy_async", - "title": "SecurityCenter getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy on the specified Source.", - "canonical": true, - "file": "security_center.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": ".google.iam.v1.GetPolicyOptions" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v2.SecurityCenterClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.GetIamPolicy", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v2_generated_SecurityCenter_GetMuteConfig_async", - "title": "SecurityCenter getMuteConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets a mute config. If no location is specified, default is global.", - "canonical": true, - "file": "security_center.get_mute_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMuteConfig", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.GetMuteConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securitycenter.v2.MuteConfig", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v2.SecurityCenterClient" - }, - "method": { - "shortName": "GetMuteConfig", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.GetMuteConfig", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v2_generated_SecurityCenter_GetNotificationConfig_async", - "title": "SecurityCenter getNotificationConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets a notification config.", - "canonical": true, - "file": "security_center.get_notification_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetNotificationConfig", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.GetNotificationConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securitycenter.v2.NotificationConfig", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v2.SecurityCenterClient" - }, - "method": { - "shortName": "GetNotificationConfig", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.GetNotificationConfig", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v2_generated_SecurityCenter_GetResourceValueConfig_async", - "title": "SecurityCenter getResourceValueConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets a ResourceValueConfig.", - "canonical": true, - "file": "security_center.get_resource_value_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetResourceValueConfig", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.GetResourceValueConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securitycenter.v2.ResourceValueConfig", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v2.SecurityCenterClient" - }, - "method": { - "shortName": "GetResourceValueConfig", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.GetResourceValueConfig", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v2_generated_SecurityCenter_GetSource_async", - "title": "SecurityCenter getSource Sample", - "origin": "API_DEFINITION", - "description": " Gets a source.", - "canonical": true, - "file": "security_center.get_source.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSource", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.GetSource", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securitycenter.v2.Source", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v2.SecurityCenterClient" - }, - "method": { - "shortName": "GetSource", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.GetSource", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v2_generated_SecurityCenter_GroupFindings_async", - "title": "SecurityCenter groupFindings Sample", - "origin": "API_DEFINITION", - "description": " Filters an organization or source's findings and groups them by their specified properties in a location. If no location is specified, findings are assumed to be in global To group across all sources provide a `-` as the source id. The following list shows some examples: + `/v2/organizations/{organization_id}/sources/-/findings` + `/v2/organizations/{organization_id}/sources/-/locations/{location_id}/findings` + `/v2/folders/{folder_id}/sources/-/findings` + `/v2/folders/{folder_id}/sources/-/locations/{location_id}/findings` + `/v2/projects/{project_id}/sources/-/findings` + `/v2/projects/{project_id}/sources/-/locations/{location_id}/findings`", - "canonical": true, - "file": "security_center.group_findings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 130, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GroupFindings", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.GroupFindings", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "group_by", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.securitycenter.v2.GroupFindingsResponse", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v2.SecurityCenterClient" - }, - "method": { - "shortName": "GroupFindings", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.GroupFindings", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v2_generated_SecurityCenter_ListAttackPaths_async", - "title": "SecurityCenter listAttackPaths Sample", - "origin": "API_DEFINITION", - "description": " Lists the attack paths for a set of simulation results or valued resources and filter.", - "canonical": true, - "file": "security_center.list_attack_paths.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAttackPaths", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.ListAttackPaths", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.securitycenter.v2.ListAttackPathsResponse", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v2.SecurityCenterClient" - }, - "method": { - "shortName": "ListAttackPaths", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.ListAttackPaths", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v2_generated_SecurityCenter_ListBigQueryExports_async", - "title": "SecurityCenter listBigQueryExports Sample", - "origin": "API_DEFINITION", - "description": " Lists BigQuery exports. Note that when requesting BigQuery exports at a given level all exports under that level are also returned e.g. if requesting BigQuery exports under a folder, then all BigQuery exports immediately under the folder plus the ones created under the projects within the folder are returned.", - "canonical": true, - "file": "security_center.list_big_query_exports.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBigQueryExports", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.ListBigQueryExports", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securitycenter.v2.ListBigQueryExportsResponse", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v2.SecurityCenterClient" - }, - "method": { - "shortName": "ListBigQueryExports", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.ListBigQueryExports", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v2_generated_SecurityCenter_ListFindings_async", - "title": "SecurityCenter listFindings Sample", - "origin": "API_DEFINITION", - "description": " Lists an organization or source's findings. To list across all sources for a given location provide a `-` as the source id. If no location is specified, finding are assumed to be in global. The following list shows some examples: + `/v2/organizations/{organization_id}/sources/-/findings` + `/v2/organizations/{organization_id}/sources/-/locations/{location_id}/findings`", - "canonical": true, - "file": "security_center.list_findings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 148, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFindings", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.ListFindings", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "field_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.securitycenter.v2.ListFindingsResponse", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v2.SecurityCenterClient" - }, - "method": { - "shortName": "ListFindings", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.ListFindings", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v2_generated_SecurityCenter_ListMuteConfigs_async", - "title": "SecurityCenter listMuteConfigs Sample", - "origin": "API_DEFINITION", - "description": " Lists mute configs. If no location is specified, default is global.", - "canonical": true, - "file": "security_center.list_mute_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMuteConfigs", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.ListMuteConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securitycenter.v2.ListMuteConfigsResponse", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v2.SecurityCenterClient" - }, - "method": { - "shortName": "ListMuteConfigs", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.ListMuteConfigs", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v2_generated_SecurityCenter_ListNotificationConfigs_async", - "title": "SecurityCenter listNotificationConfigs Sample", - "origin": "API_DEFINITION", - "description": " Lists notification configs.", - "canonical": true, - "file": "security_center.list_notification_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListNotificationConfigs", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.ListNotificationConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.securitycenter.v2.ListNotificationConfigsResponse", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v2.SecurityCenterClient" - }, - "method": { - "shortName": "ListNotificationConfigs", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.ListNotificationConfigs", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v2_generated_SecurityCenter_ListResourceValueConfigs_async", - "title": "SecurityCenter listResourceValueConfigs Sample", - "origin": "API_DEFINITION", - "description": " Lists all ResourceValueConfigs.", - "canonical": true, - "file": "security_center.list_resource_value_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListResourceValueConfigs", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.ListResourceValueConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securitycenter.v2.ListResourceValueConfigsResponse", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v2.SecurityCenterClient" - }, - "method": { - "shortName": "ListResourceValueConfigs", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.ListResourceValueConfigs", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v2_generated_SecurityCenter_ListSources_async", - "title": "SecurityCenter listSources Sample", - "origin": "API_DEFINITION", - "description": " Lists all sources belonging to an organization.", - "canonical": true, - "file": "security_center.list_sources.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSources", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.ListSources", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.securitycenter.v2.ListSourcesResponse", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v2.SecurityCenterClient" - }, - "method": { - "shortName": "ListSources", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.ListSources", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v2_generated_SecurityCenter_ListValuedResources_async", - "title": "SecurityCenter listValuedResources Sample", - "origin": "API_DEFINITION", - "description": " Lists the valued resources for a set of simulation results and filter.", - "canonical": true, - "file": "security_center.list_valued_resources.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 90, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListValuedResources", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.ListValuedResources", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securitycenter.v2.ListValuedResourcesResponse", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v2.SecurityCenterClient" - }, - "method": { - "shortName": "ListValuedResources", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.ListValuedResources", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v2_generated_SecurityCenter_SetFindingState_async", - "title": "SecurityCenter setFindingState Sample", - "origin": "API_DEFINITION", - "description": " Updates the state of a finding. If no location is specified, finding is assumed to be in global", - "canonical": true, - "file": "security_center.set_finding_state.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetFindingState", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.SetFindingState", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "state", - "type": ".google.cloud.securitycenter.v2.Finding.State" - } - ], - "resultType": ".google.cloud.securitycenter.v2.Finding", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v2.SecurityCenterClient" - }, - "method": { - "shortName": "SetFindingState", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.SetFindingState", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v2_generated_SecurityCenter_SetIamPolicy_async", - "title": "SecurityCenter setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified Source.", - "canonical": true, - "file": "security_center.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.iam.v1.Policy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v2.SecurityCenterClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.SetIamPolicy", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v2_generated_SecurityCenter_SetMute_async", - "title": "SecurityCenter setMute Sample", - "origin": "API_DEFINITION", - "description": " Updates the mute state of a finding. If no location is specified, finding is assumed to be in global", - "canonical": true, - "file": "security_center.set_mute.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetMute", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.SetMute", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "mute", - "type": ".google.cloud.securitycenter.v2.Finding.Mute" - } - ], - "resultType": ".google.cloud.securitycenter.v2.Finding", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v2.SecurityCenterClient" - }, - "method": { - "shortName": "SetMute", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.SetMute", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v2_generated_SecurityCenter_TestIamPermissions_async", - "title": "SecurityCenter testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns the permissions that a caller has on the specified source.", - "canonical": true, - "file": "security_center.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "permissions", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.iam.v1.TestIamPermissionsResponse", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v2.SecurityCenterClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.TestIamPermissions", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v2_generated_SecurityCenter_UpdateBigQueryExport_async", - "title": "SecurityCenter updateBigQueryExport Sample", - "origin": "API_DEFINITION", - "description": " Updates a BigQuery export.", - "canonical": true, - "file": "security_center.update_big_query_export.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateBigQueryExport", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.UpdateBigQueryExport", - "async": true, - "parameters": [ - { - "name": "big_query_export", - "type": ".google.cloud.securitycenter.v2.BigQueryExport" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.securitycenter.v2.BigQueryExport", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v2.SecurityCenterClient" - }, - "method": { - "shortName": "UpdateBigQueryExport", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.UpdateBigQueryExport", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v2_generated_SecurityCenter_UpdateExternalSystem_async", - "title": "SecurityCenter updateExternalSystem Sample", - "origin": "API_DEFINITION", - "description": " Updates external system. This is for a given finding. If no location is specified, finding is assumed to be in global", - "canonical": true, - "file": "security_center.update_external_system.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateExternalSystem", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.UpdateExternalSystem", - "async": true, - "parameters": [ - { - "name": "external_system", - "type": ".google.cloud.securitycenter.v2.ExternalSystem" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.securitycenter.v2.ExternalSystem", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v2.SecurityCenterClient" - }, - "method": { - "shortName": "UpdateExternalSystem", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.UpdateExternalSystem", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v2_generated_SecurityCenter_UpdateFinding_async", - "title": "SecurityCenter updateFinding Sample", - "origin": "API_DEFINITION", - "description": " Creates or updates a finding. If no location is specified, finding is assumed to be in global. The corresponding source must exist for a finding creation to succeed.", - "canonical": true, - "file": "security_center.update_finding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateFinding", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.UpdateFinding", - "async": true, - "parameters": [ - { - "name": "finding", - "type": ".google.cloud.securitycenter.v2.Finding" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.securitycenter.v2.Finding", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v2.SecurityCenterClient" - }, - "method": { - "shortName": "UpdateFinding", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.UpdateFinding", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v2_generated_SecurityCenter_UpdateMuteConfig_async", - "title": "SecurityCenter updateMuteConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates a mute config. If no location is specified, default is global.", - "canonical": true, - "file": "security_center.update_mute_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateMuteConfig", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.UpdateMuteConfig", - "async": true, - "parameters": [ - { - "name": "mute_config", - "type": ".google.cloud.securitycenter.v2.MuteConfig" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.securitycenter.v2.MuteConfig", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v2.SecurityCenterClient" - }, - "method": { - "shortName": "UpdateMuteConfig", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.UpdateMuteConfig", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v2_generated_SecurityCenter_UpdateNotificationConfig_async", - "title": "SecurityCenter updateNotificationConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates a notification config. The following update fields are allowed: description, pubsub_topic, streaming_config.filter", - "canonical": true, - "file": "security_center.update_notification_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateNotificationConfig", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.UpdateNotificationConfig", - "async": true, - "parameters": [ - { - "name": "notification_config", - "type": ".google.cloud.securitycenter.v2.NotificationConfig" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.securitycenter.v2.NotificationConfig", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v2.SecurityCenterClient" - }, - "method": { - "shortName": "UpdateNotificationConfig", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.UpdateNotificationConfig", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v2_generated_SecurityCenter_UpdateResourceValueConfig_async", - "title": "SecurityCenter updateResourceValueConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates an existing ResourceValueConfigs with new rules.", - "canonical": true, - "file": "security_center.update_resource_value_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateResourceValueConfig", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.UpdateResourceValueConfig", - "async": true, - "parameters": [ - { - "name": "resource_value_config", - "type": ".google.cloud.securitycenter.v2.ResourceValueConfig" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.securitycenter.v2.ResourceValueConfig", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v2.SecurityCenterClient" - }, - "method": { - "shortName": "UpdateResourceValueConfig", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.UpdateResourceValueConfig", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v2_generated_SecurityCenter_UpdateSecurityMarks_async", - "title": "SecurityCenter updateSecurityMarks Sample", - "origin": "API_DEFINITION", - "description": " Updates security marks. For Finding Security marks, if no location is specified, finding is assumed to be in global. Assets Security Marks can only be accessed through global endpoint.", - "canonical": true, - "file": "security_center.update_security_marks.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSecurityMarks", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.UpdateSecurityMarks", - "async": true, - "parameters": [ - { - "name": "security_marks", - "type": ".google.cloud.securitycenter.v2.SecurityMarks" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.securitycenter.v2.SecurityMarks", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v2.SecurityCenterClient" - }, - "method": { - "shortName": "UpdateSecurityMarks", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.UpdateSecurityMarks", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter" - } - } - } - }, - { - "regionTag": "securitycenter_v2_generated_SecurityCenter_UpdateSource_async", - "title": "SecurityCenter updateSource Sample", - "origin": "API_DEFINITION", - "description": " Updates a source.", - "canonical": true, - "file": "security_center.update_source.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSource", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.UpdateSource", - "async": true, - "parameters": [ - { - "name": "source", - "type": ".google.cloud.securitycenter.v2.Source" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.securitycenter.v2.Source", - "client": { - "shortName": "SecurityCenterClient", - "fullName": "google.cloud.securitycenter.v2.SecurityCenterClient" - }, - "method": { - "shortName": "UpdateSource", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter.UpdateSource", - "service": { - "shortName": "SecurityCenter", - "fullName": "google.cloud.securitycenter.v2.SecurityCenter" - } - } - } - } - ] -} diff --git a/packages/google-cloud-securitycentermanagement/samples/generated/v1/snippet_metadata_google.cloud.securitycentermanagement.v1.json b/packages/google-cloud-securitycentermanagement/samples/generated/v1/snippet_metadata_google.cloud.securitycentermanagement.v1.json deleted file mode 100644 index 1cf92e0ba6d6..000000000000 --- a/packages/google-cloud-securitycentermanagement/samples/generated/v1/snippet_metadata_google.cloud.securitycentermanagement.v1.json +++ /dev/null @@ -1,983 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-securitycentermanagement", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.securitycentermanagement.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "securitycentermanagement_v1_generated_SecurityCenterManagement_ListEffectiveSecurityHealthAnalyticsCustomModules_async", - "title": "SecurityCenterManagement listEffectiveSecurityHealthAnalyticsCustomModules Sample", - "origin": "API_DEFINITION", - "description": " Returns a list of all [EffectiveSecurityHealthAnalyticsCustomModule][google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule] resources for the given parent. This includes resident modules defined at the scope of the parent, and inherited modules, inherited from ancestor organizations, folders, and projects (no descendants).", - "canonical": true, - "file": "security_center_management.list_effective_security_health_analytics_custom_modules.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEffectiveSecurityHealthAnalyticsCustomModules", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement.ListEffectiveSecurityHealthAnalyticsCustomModules", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securitycentermanagement.v1.ListEffectiveSecurityHealthAnalyticsCustomModulesResponse", - "client": { - "shortName": "SecurityCenterManagementClient", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient" - }, - "method": { - "shortName": "ListEffectiveSecurityHealthAnalyticsCustomModules", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement.ListEffectiveSecurityHealthAnalyticsCustomModules", - "service": { - "shortName": "SecurityCenterManagement", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement" - } - } - } - }, - { - "regionTag": "securitycentermanagement_v1_generated_SecurityCenterManagement_GetEffectiveSecurityHealthAnalyticsCustomModule_async", - "title": "SecurityCenterManagement getEffectiveSecurityHealthAnalyticsCustomModule Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single [EffectiveSecurityHealthAnalyticsCustomModule][google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule].", - "canonical": true, - "file": "security_center_management.get_effective_security_health_analytics_custom_module.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEffectiveSecurityHealthAnalyticsCustomModule", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement.GetEffectiveSecurityHealthAnalyticsCustomModule", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securitycentermanagement.v1.EffectiveSecurityHealthAnalyticsCustomModule", - "client": { - "shortName": "SecurityCenterManagementClient", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient" - }, - "method": { - "shortName": "GetEffectiveSecurityHealthAnalyticsCustomModule", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement.GetEffectiveSecurityHealthAnalyticsCustomModule", - "service": { - "shortName": "SecurityCenterManagement", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement" - } - } - } - }, - { - "regionTag": "securitycentermanagement_v1_generated_SecurityCenterManagement_ListSecurityHealthAnalyticsCustomModules_async", - "title": "SecurityCenterManagement listSecurityHealthAnalyticsCustomModules Sample", - "origin": "API_DEFINITION", - "description": " Returns a list of all [SecurityHealthAnalyticsCustomModule][google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule] resources for the given parent. This includes resident modules defined at the scope of the parent, and inherited modules, inherited from ancestor organizations, folders, and projects (no descendants).", - "canonical": true, - "file": "security_center_management.list_security_health_analytics_custom_modules.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSecurityHealthAnalyticsCustomModules", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement.ListSecurityHealthAnalyticsCustomModules", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securitycentermanagement.v1.ListSecurityHealthAnalyticsCustomModulesResponse", - "client": { - "shortName": "SecurityCenterManagementClient", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient" - }, - "method": { - "shortName": "ListSecurityHealthAnalyticsCustomModules", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement.ListSecurityHealthAnalyticsCustomModules", - "service": { - "shortName": "SecurityCenterManagement", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement" - } - } - } - }, - { - "regionTag": "securitycentermanagement_v1_generated_SecurityCenterManagement_ListDescendantSecurityHealthAnalyticsCustomModules_async", - "title": "SecurityCenterManagement listDescendantSecurityHealthAnalyticsCustomModules Sample", - "origin": "API_DEFINITION", - "description": " Returns a list of all resident [SecurityHealthAnalyticsCustomModule][google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule] resources under the given organization, folder, or project and all of its descendants.", - "canonical": true, - "file": "security_center_management.list_descendant_security_health_analytics_custom_modules.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDescendantSecurityHealthAnalyticsCustomModules", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement.ListDescendantSecurityHealthAnalyticsCustomModules", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securitycentermanagement.v1.ListDescendantSecurityHealthAnalyticsCustomModulesResponse", - "client": { - "shortName": "SecurityCenterManagementClient", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient" - }, - "method": { - "shortName": "ListDescendantSecurityHealthAnalyticsCustomModules", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement.ListDescendantSecurityHealthAnalyticsCustomModules", - "service": { - "shortName": "SecurityCenterManagement", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement" - } - } - } - }, - { - "regionTag": "securitycentermanagement_v1_generated_SecurityCenterManagement_GetSecurityHealthAnalyticsCustomModule_async", - "title": "SecurityCenterManagement getSecurityHealthAnalyticsCustomModule Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a [SecurityHealthAnalyticsCustomModule][google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule].", - "canonical": true, - "file": "security_center_management.get_security_health_analytics_custom_module.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSecurityHealthAnalyticsCustomModule", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement.GetSecurityHealthAnalyticsCustomModule", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule", - "client": { - "shortName": "SecurityCenterManagementClient", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient" - }, - "method": { - "shortName": "GetSecurityHealthAnalyticsCustomModule", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement.GetSecurityHealthAnalyticsCustomModule", - "service": { - "shortName": "SecurityCenterManagement", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement" - } - } - } - }, - { - "regionTag": "securitycentermanagement_v1_generated_SecurityCenterManagement_CreateSecurityHealthAnalyticsCustomModule_async", - "title": "SecurityCenterManagement createSecurityHealthAnalyticsCustomModule Sample", - "origin": "API_DEFINITION", - "description": " Creates a resident [SecurityHealthAnalyticsCustomModule][google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule] at the scope of the given organization, folder, or project, and also creates inherited `SecurityHealthAnalyticsCustomModule` resources for all folders and projects that are descendants of the given parent. These modules are enabled by default.", - "canonical": true, - "file": "security_center_management.create_security_health_analytics_custom_module.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSecurityHealthAnalyticsCustomModule", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement.CreateSecurityHealthAnalyticsCustomModule", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "security_health_analytics_custom_module", - "type": ".google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule", - "client": { - "shortName": "SecurityCenterManagementClient", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient" - }, - "method": { - "shortName": "CreateSecurityHealthAnalyticsCustomModule", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement.CreateSecurityHealthAnalyticsCustomModule", - "service": { - "shortName": "SecurityCenterManagement", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement" - } - } - } - }, - { - "regionTag": "securitycentermanagement_v1_generated_SecurityCenterManagement_UpdateSecurityHealthAnalyticsCustomModule_async", - "title": "SecurityCenterManagement updateSecurityHealthAnalyticsCustomModule Sample", - "origin": "API_DEFINITION", - "description": " Updates the [SecurityHealthAnalyticsCustomModule][google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule] under the given name based on the given update mask. Updating the enablement state is supported on both resident and inherited modules (though resident modules cannot have an enablement state of \"inherited\"). Updating the display name and custom configuration of a module is supported on resident modules only.", - "canonical": true, - "file": "security_center_management.update_security_health_analytics_custom_module.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSecurityHealthAnalyticsCustomModule", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement.UpdateSecurityHealthAnalyticsCustomModule", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "security_health_analytics_custom_module", - "type": ".google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule", - "client": { - "shortName": "SecurityCenterManagementClient", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient" - }, - "method": { - "shortName": "UpdateSecurityHealthAnalyticsCustomModule", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement.UpdateSecurityHealthAnalyticsCustomModule", - "service": { - "shortName": "SecurityCenterManagement", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement" - } - } - } - }, - { - "regionTag": "securitycentermanagement_v1_generated_SecurityCenterManagement_DeleteSecurityHealthAnalyticsCustomModule_async", - "title": "SecurityCenterManagement deleteSecurityHealthAnalyticsCustomModule Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified [SecurityHealthAnalyticsCustomModule][google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule] and all of its descendants in the resource hierarchy. This method is only supported for resident custom modules.", - "canonical": true, - "file": "security_center_management.delete_security_health_analytics_custom_module.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSecurityHealthAnalyticsCustomModule", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement.DeleteSecurityHealthAnalyticsCustomModule", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "SecurityCenterManagementClient", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient" - }, - "method": { - "shortName": "DeleteSecurityHealthAnalyticsCustomModule", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement.DeleteSecurityHealthAnalyticsCustomModule", - "service": { - "shortName": "SecurityCenterManagement", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement" - } - } - } - }, - { - "regionTag": "securitycentermanagement_v1_generated_SecurityCenterManagement_SimulateSecurityHealthAnalyticsCustomModule_async", - "title": "SecurityCenterManagement simulateSecurityHealthAnalyticsCustomModule Sample", - "origin": "API_DEFINITION", - "description": " Simulates the result of using a [SecurityHealthAnalyticsCustomModule][google.cloud.securitycentermanagement.v1.SecurityHealthAnalyticsCustomModule] to check a resource.", - "canonical": true, - "file": "security_center_management.simulate_security_health_analytics_custom_module.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SimulateSecurityHealthAnalyticsCustomModule", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement.SimulateSecurityHealthAnalyticsCustomModule", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "custom_config", - "type": ".google.cloud.securitycentermanagement.v1.CustomConfig" - }, - { - "name": "resource", - "type": ".google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleRequest.SimulatedResource" - } - ], - "resultType": ".google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse", - "client": { - "shortName": "SecurityCenterManagementClient", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient" - }, - "method": { - "shortName": "SimulateSecurityHealthAnalyticsCustomModule", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement.SimulateSecurityHealthAnalyticsCustomModule", - "service": { - "shortName": "SecurityCenterManagement", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement" - } - } - } - }, - { - "regionTag": "securitycentermanagement_v1_generated_SecurityCenterManagement_ListEffectiveEventThreatDetectionCustomModules_async", - "title": "SecurityCenterManagement listEffectiveEventThreatDetectionCustomModules Sample", - "origin": "API_DEFINITION", - "description": " Lists all effective Event Threat Detection custom modules for the given parent. This includes resident modules defined at the scope of the parent along with modules inherited from its ancestors.", - "canonical": true, - "file": "security_center_management.list_effective_event_threat_detection_custom_modules.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEffectiveEventThreatDetectionCustomModules", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement.ListEffectiveEventThreatDetectionCustomModules", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securitycentermanagement.v1.ListEffectiveEventThreatDetectionCustomModulesResponse", - "client": { - "shortName": "SecurityCenterManagementClient", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient" - }, - "method": { - "shortName": "ListEffectiveEventThreatDetectionCustomModules", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement.ListEffectiveEventThreatDetectionCustomModules", - "service": { - "shortName": "SecurityCenterManagement", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement" - } - } - } - }, - { - "regionTag": "securitycentermanagement_v1_generated_SecurityCenterManagement_GetEffectiveEventThreatDetectionCustomModule_async", - "title": "SecurityCenterManagement getEffectiveEventThreatDetectionCustomModule Sample", - "origin": "API_DEFINITION", - "description": " Gets the effective Event Threat Detection custom module at the given level. The difference between an [EffectiveEventThreatDetectionCustomModule][google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule] and an [EventThreatDetectionCustomModule][google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule] is that the fields for an `EffectiveEventThreatDetectionCustomModule` are computed from ancestors if needed. For example, the enablement state for an `EventThreatDetectionCustomModule` can be `ENABLED`, `DISABLED`, or `INHERITED`. In contrast, the enablement state for an `EffectiveEventThreatDetectionCustomModule` is always computed as `ENABLED` or `DISABLED`.", - "canonical": true, - "file": "security_center_management.get_effective_event_threat_detection_custom_module.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEffectiveEventThreatDetectionCustomModule", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement.GetEffectiveEventThreatDetectionCustomModule", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securitycentermanagement.v1.EffectiveEventThreatDetectionCustomModule", - "client": { - "shortName": "SecurityCenterManagementClient", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient" - }, - "method": { - "shortName": "GetEffectiveEventThreatDetectionCustomModule", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement.GetEffectiveEventThreatDetectionCustomModule", - "service": { - "shortName": "SecurityCenterManagement", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement" - } - } - } - }, - { - "regionTag": "securitycentermanagement_v1_generated_SecurityCenterManagement_ListEventThreatDetectionCustomModules_async", - "title": "SecurityCenterManagement listEventThreatDetectionCustomModules Sample", - "origin": "API_DEFINITION", - "description": " Lists all Event Threat Detection custom modules for the given organization, folder, or project. This includes resident modules defined at the scope of the parent along with modules inherited from ancestors.", - "canonical": true, - "file": "security_center_management.list_event_threat_detection_custom_modules.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEventThreatDetectionCustomModules", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement.ListEventThreatDetectionCustomModules", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securitycentermanagement.v1.ListEventThreatDetectionCustomModulesResponse", - "client": { - "shortName": "SecurityCenterManagementClient", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient" - }, - "method": { - "shortName": "ListEventThreatDetectionCustomModules", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement.ListEventThreatDetectionCustomModules", - "service": { - "shortName": "SecurityCenterManagement", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement" - } - } - } - }, - { - "regionTag": "securitycentermanagement_v1_generated_SecurityCenterManagement_ListDescendantEventThreatDetectionCustomModules_async", - "title": "SecurityCenterManagement listDescendantEventThreatDetectionCustomModules Sample", - "origin": "API_DEFINITION", - "description": " Lists all resident Event Threat Detection custom modules for the given organization, folder, or project and its descendants.", - "canonical": true, - "file": "security_center_management.list_descendant_event_threat_detection_custom_modules.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDescendantEventThreatDetectionCustomModules", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement.ListDescendantEventThreatDetectionCustomModules", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securitycentermanagement.v1.ListDescendantEventThreatDetectionCustomModulesResponse", - "client": { - "shortName": "SecurityCenterManagementClient", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient" - }, - "method": { - "shortName": "ListDescendantEventThreatDetectionCustomModules", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement.ListDescendantEventThreatDetectionCustomModules", - "service": { - "shortName": "SecurityCenterManagement", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement" - } - } - } - }, - { - "regionTag": "securitycentermanagement_v1_generated_SecurityCenterManagement_GetEventThreatDetectionCustomModule_async", - "title": "SecurityCenterManagement getEventThreatDetectionCustomModule Sample", - "origin": "API_DEFINITION", - "description": " Gets an Event Threat Detection custom module.", - "canonical": true, - "file": "security_center_management.get_event_threat_detection_custom_module.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEventThreatDetectionCustomModule", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement.GetEventThreatDetectionCustomModule", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule", - "client": { - "shortName": "SecurityCenterManagementClient", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient" - }, - "method": { - "shortName": "GetEventThreatDetectionCustomModule", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement.GetEventThreatDetectionCustomModule", - "service": { - "shortName": "SecurityCenterManagement", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement" - } - } - } - }, - { - "regionTag": "securitycentermanagement_v1_generated_SecurityCenterManagement_CreateEventThreatDetectionCustomModule_async", - "title": "SecurityCenterManagement createEventThreatDetectionCustomModule Sample", - "origin": "API_DEFINITION", - "description": " Creates a resident Event Threat Detection custom module at the scope of the given organization, folder, or project, and creates inherited custom modules for all descendants of the given parent. These modules are enabled by default.", - "canonical": true, - "file": "security_center_management.create_event_threat_detection_custom_module.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateEventThreatDetectionCustomModule", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement.CreateEventThreatDetectionCustomModule", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "event_threat_detection_custom_module", - "type": ".google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule", - "client": { - "shortName": "SecurityCenterManagementClient", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient" - }, - "method": { - "shortName": "CreateEventThreatDetectionCustomModule", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement.CreateEventThreatDetectionCustomModule", - "service": { - "shortName": "SecurityCenterManagement", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement" - } - } - } - }, - { - "regionTag": "securitycentermanagement_v1_generated_SecurityCenterManagement_UpdateEventThreatDetectionCustomModule_async", - "title": "SecurityCenterManagement updateEventThreatDetectionCustomModule Sample", - "origin": "API_DEFINITION", - "description": " Updates the Event Threat Detection custom module with the given name based on the given update mask. Updating the enablement state is supported for both resident and inherited modules (though resident modules cannot have an enablement state of \"inherited\"). Updating the display name or configuration of a module is supported for resident modules only. The type of a module cannot be changed.", - "canonical": true, - "file": "security_center_management.update_event_threat_detection_custom_module.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateEventThreatDetectionCustomModule", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement.UpdateEventThreatDetectionCustomModule", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "event_threat_detection_custom_module", - "type": ".google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.securitycentermanagement.v1.EventThreatDetectionCustomModule", - "client": { - "shortName": "SecurityCenterManagementClient", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient" - }, - "method": { - "shortName": "UpdateEventThreatDetectionCustomModule", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement.UpdateEventThreatDetectionCustomModule", - "service": { - "shortName": "SecurityCenterManagement", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement" - } - } - } - }, - { - "regionTag": "securitycentermanagement_v1_generated_SecurityCenterManagement_DeleteEventThreatDetectionCustomModule_async", - "title": "SecurityCenterManagement deleteEventThreatDetectionCustomModule Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified Event Threat Detection custom module and all of its descendants in the resource hierarchy. This method is only supported for resident custom modules.", - "canonical": true, - "file": "security_center_management.delete_event_threat_detection_custom_module.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteEventThreatDetectionCustomModule", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement.DeleteEventThreatDetectionCustomModule", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "SecurityCenterManagementClient", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient" - }, - "method": { - "shortName": "DeleteEventThreatDetectionCustomModule", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement.DeleteEventThreatDetectionCustomModule", - "service": { - "shortName": "SecurityCenterManagement", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement" - } - } - } - }, - { - "regionTag": "securitycentermanagement_v1_generated_SecurityCenterManagement_ValidateEventThreatDetectionCustomModule_async", - "title": "SecurityCenterManagement validateEventThreatDetectionCustomModule Sample", - "origin": "API_DEFINITION", - "description": " Validates the given Event Threat Detection custom module.", - "canonical": true, - "file": "security_center_management.validate_event_threat_detection_custom_module.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ValidateEventThreatDetectionCustomModule", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement.ValidateEventThreatDetectionCustomModule", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "raw_text", - "type": "TYPE_STRING" - }, - { - "name": "type", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.securitycentermanagement.v1.ValidateEventThreatDetectionCustomModuleResponse", - "client": { - "shortName": "SecurityCenterManagementClient", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient" - }, - "method": { - "shortName": "ValidateEventThreatDetectionCustomModule", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement.ValidateEventThreatDetectionCustomModule", - "service": { - "shortName": "SecurityCenterManagement", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement" - } - } - } - }, - { - "regionTag": "securitycentermanagement_v1_generated_SecurityCenterManagement_GetSecurityCenterService_async", - "title": "SecurityCenterManagement getSecurityCenterService Sample", - "origin": "API_DEFINITION", - "description": " Gets service settings for the specified Security Command Center service.", - "canonical": true, - "file": "security_center_management.get_security_center_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSecurityCenterService", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement.GetSecurityCenterService", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "show_eligible_modules_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.securitycentermanagement.v1.SecurityCenterService", - "client": { - "shortName": "SecurityCenterManagementClient", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient" - }, - "method": { - "shortName": "GetSecurityCenterService", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement.GetSecurityCenterService", - "service": { - "shortName": "SecurityCenterManagement", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement" - } - } - } - }, - { - "regionTag": "securitycentermanagement_v1_generated_SecurityCenterManagement_ListSecurityCenterServices_async", - "title": "SecurityCenterManagement listSecurityCenterServices Sample", - "origin": "API_DEFINITION", - "description": " Returns a list of all Security Command Center services for the given parent.", - "canonical": true, - "file": "security_center_management.list_security_center_services.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSecurityCenterServices", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement.ListSecurityCenterServices", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "show_eligible_modules_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.securitycentermanagement.v1.ListSecurityCenterServicesResponse", - "client": { - "shortName": "SecurityCenterManagementClient", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient" - }, - "method": { - "shortName": "ListSecurityCenterServices", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement.ListSecurityCenterServices", - "service": { - "shortName": "SecurityCenterManagement", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement" - } - } - } - }, - { - "regionTag": "securitycentermanagement_v1_generated_SecurityCenterManagement_UpdateSecurityCenterService_async", - "title": "SecurityCenterManagement updateSecurityCenterService Sample", - "origin": "API_DEFINITION", - "description": " Updates a Security Command Center service using the given update mask.", - "canonical": true, - "file": "security_center_management.update_security_center_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSecurityCenterService", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement.UpdateSecurityCenterService", - "async": true, - "parameters": [ - { - "name": "security_center_service", - "type": ".google.cloud.securitycentermanagement.v1.SecurityCenterService" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.securitycentermanagement.v1.SecurityCenterService", - "client": { - "shortName": "SecurityCenterManagementClient", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagementClient" - }, - "method": { - "shortName": "UpdateSecurityCenterService", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement.UpdateSecurityCenterService", - "service": { - "shortName": "SecurityCenterManagement", - "fullName": "google.cloud.securitycentermanagement.v1.SecurityCenterManagement" - } - } - } - } - ] -} diff --git a/packages/google-cloud-servicedirectory/samples/generated/v1/snippet_metadata_google.cloud.servicedirectory.v1.json b/packages/google-cloud-servicedirectory/samples/generated/v1/snippet_metadata_google.cloud.servicedirectory.v1.json deleted file mode 100644 index e5e4b2ea27fc..000000000000 --- a/packages/google-cloud-servicedirectory/samples/generated/v1/snippet_metadata_google.cloud.servicedirectory.v1.json +++ /dev/null @@ -1,883 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-servicedirectory", - "version": "6.1.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.servicedirectory.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "servicedirectory_v1_generated_LookupService_ResolveService_async", - "title": "ServiceDirectory resolveService Sample", - "origin": "API_DEFINITION", - "description": " Returns a [service][google.cloud.servicedirectory.v1.Service] and its associated endpoints. Resolving a service is not considered an active developer method.", - "canonical": true, - "file": "lookup_service.resolve_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 93, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResolveService", - "fullName": "google.cloud.servicedirectory.v1.LookupService.ResolveService", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "max_endpoints", - "type": "TYPE_INT32" - }, - { - "name": "endpoint_filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.servicedirectory.v1.ResolveServiceResponse", - "client": { - "shortName": "LookupServiceClient", - "fullName": "google.cloud.servicedirectory.v1.LookupServiceClient" - }, - "method": { - "shortName": "ResolveService", - "fullName": "google.cloud.servicedirectory.v1.LookupService.ResolveService", - "service": { - "shortName": "LookupService", - "fullName": "google.cloud.servicedirectory.v1.LookupService" - } - } - } - }, - { - "regionTag": "servicedirectory_v1_generated_RegistrationService_CreateNamespace_async", - "title": "ServiceDirectory createNamespace Sample", - "origin": "API_DEFINITION", - "description": " Creates a namespace, and returns the new namespace.", - "canonical": true, - "file": "registration_service.create_namespace.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateNamespace", - "fullName": "google.cloud.servicedirectory.v1.RegistrationService.CreateNamespace", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "namespace_id", - "type": "TYPE_STRING" - }, - { - "name": "namespace", - "type": ".google.cloud.servicedirectory.v1.Namespace" - } - ], - "resultType": ".google.cloud.servicedirectory.v1.Namespace", - "client": { - "shortName": "RegistrationServiceClient", - "fullName": "google.cloud.servicedirectory.v1.RegistrationServiceClient" - }, - "method": { - "shortName": "CreateNamespace", - "fullName": "google.cloud.servicedirectory.v1.RegistrationService.CreateNamespace", - "service": { - "shortName": "RegistrationService", - "fullName": "google.cloud.servicedirectory.v1.RegistrationService" - } - } - } - }, - { - "regionTag": "servicedirectory_v1_generated_RegistrationService_ListNamespaces_async", - "title": "ServiceDirectory listNamespaces Sample", - "origin": "API_DEFINITION", - "description": " Lists all namespaces.", - "canonical": true, - "file": "registration_service.list_namespaces.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 101, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListNamespaces", - "fullName": "google.cloud.servicedirectory.v1.RegistrationService.ListNamespaces", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.servicedirectory.v1.ListNamespacesResponse", - "client": { - "shortName": "RegistrationServiceClient", - "fullName": "google.cloud.servicedirectory.v1.RegistrationServiceClient" - }, - "method": { - "shortName": "ListNamespaces", - "fullName": "google.cloud.servicedirectory.v1.RegistrationService.ListNamespaces", - "service": { - "shortName": "RegistrationService", - "fullName": "google.cloud.servicedirectory.v1.RegistrationService" - } - } - } - }, - { - "regionTag": "servicedirectory_v1_generated_RegistrationService_GetNamespace_async", - "title": "ServiceDirectory getNamespace Sample", - "origin": "API_DEFINITION", - "description": " Gets a namespace.", - "canonical": true, - "file": "registration_service.get_namespace.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetNamespace", - "fullName": "google.cloud.servicedirectory.v1.RegistrationService.GetNamespace", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.servicedirectory.v1.Namespace", - "client": { - "shortName": "RegistrationServiceClient", - "fullName": "google.cloud.servicedirectory.v1.RegistrationServiceClient" - }, - "method": { - "shortName": "GetNamespace", - "fullName": "google.cloud.servicedirectory.v1.RegistrationService.GetNamespace", - "service": { - "shortName": "RegistrationService", - "fullName": "google.cloud.servicedirectory.v1.RegistrationService" - } - } - } - }, - { - "regionTag": "servicedirectory_v1_generated_RegistrationService_UpdateNamespace_async", - "title": "ServiceDirectory updateNamespace Sample", - "origin": "API_DEFINITION", - "description": " Updates a namespace.", - "canonical": true, - "file": "registration_service.update_namespace.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateNamespace", - "fullName": "google.cloud.servicedirectory.v1.RegistrationService.UpdateNamespace", - "async": true, - "parameters": [ - { - "name": "namespace", - "type": ".google.cloud.servicedirectory.v1.Namespace" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.servicedirectory.v1.Namespace", - "client": { - "shortName": "RegistrationServiceClient", - "fullName": "google.cloud.servicedirectory.v1.RegistrationServiceClient" - }, - "method": { - "shortName": "UpdateNamespace", - "fullName": "google.cloud.servicedirectory.v1.RegistrationService.UpdateNamespace", - "service": { - "shortName": "RegistrationService", - "fullName": "google.cloud.servicedirectory.v1.RegistrationService" - } - } - } - }, - { - "regionTag": "servicedirectory_v1_generated_RegistrationService_DeleteNamespace_async", - "title": "ServiceDirectory deleteNamespace Sample", - "origin": "API_DEFINITION", - "description": " Deletes a namespace. This also deletes all services and endpoints in the namespace.", - "canonical": true, - "file": "registration_service.delete_namespace.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteNamespace", - "fullName": "google.cloud.servicedirectory.v1.RegistrationService.DeleteNamespace", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "RegistrationServiceClient", - "fullName": "google.cloud.servicedirectory.v1.RegistrationServiceClient" - }, - "method": { - "shortName": "DeleteNamespace", - "fullName": "google.cloud.servicedirectory.v1.RegistrationService.DeleteNamespace", - "service": { - "shortName": "RegistrationService", - "fullName": "google.cloud.servicedirectory.v1.RegistrationService" - } - } - } - }, - { - "regionTag": "servicedirectory_v1_generated_RegistrationService_CreateService_async", - "title": "ServiceDirectory createService Sample", - "origin": "API_DEFINITION", - "description": " Creates a service, and returns the new service.", - "canonical": true, - "file": "registration_service.create_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateService", - "fullName": "google.cloud.servicedirectory.v1.RegistrationService.CreateService", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "service_id", - "type": "TYPE_STRING" - }, - { - "name": "service", - "type": ".google.cloud.servicedirectory.v1.Service" - } - ], - "resultType": ".google.cloud.servicedirectory.v1.Service", - "client": { - "shortName": "RegistrationServiceClient", - "fullName": "google.cloud.servicedirectory.v1.RegistrationServiceClient" - }, - "method": { - "shortName": "CreateService", - "fullName": "google.cloud.servicedirectory.v1.RegistrationService.CreateService", - "service": { - "shortName": "RegistrationService", - "fullName": "google.cloud.servicedirectory.v1.RegistrationService" - } - } - } - }, - { - "regionTag": "servicedirectory_v1_generated_RegistrationService_ListServices_async", - "title": "ServiceDirectory listServices Sample", - "origin": "API_DEFINITION", - "description": " Lists all services belonging to a namespace.", - "canonical": true, - "file": "registration_service.list_services.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 103, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListServices", - "fullName": "google.cloud.servicedirectory.v1.RegistrationService.ListServices", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.servicedirectory.v1.ListServicesResponse", - "client": { - "shortName": "RegistrationServiceClient", - "fullName": "google.cloud.servicedirectory.v1.RegistrationServiceClient" - }, - "method": { - "shortName": "ListServices", - "fullName": "google.cloud.servicedirectory.v1.RegistrationService.ListServices", - "service": { - "shortName": "RegistrationService", - "fullName": "google.cloud.servicedirectory.v1.RegistrationService" - } - } - } - }, - { - "regionTag": "servicedirectory_v1_generated_RegistrationService_GetService_async", - "title": "ServiceDirectory getService Sample", - "origin": "API_DEFINITION", - "description": " Gets a service.", - "canonical": true, - "file": "registration_service.get_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetService", - "fullName": "google.cloud.servicedirectory.v1.RegistrationService.GetService", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.servicedirectory.v1.Service", - "client": { - "shortName": "RegistrationServiceClient", - "fullName": "google.cloud.servicedirectory.v1.RegistrationServiceClient" - }, - "method": { - "shortName": "GetService", - "fullName": "google.cloud.servicedirectory.v1.RegistrationService.GetService", - "service": { - "shortName": "RegistrationService", - "fullName": "google.cloud.servicedirectory.v1.RegistrationService" - } - } - } - }, - { - "regionTag": "servicedirectory_v1_generated_RegistrationService_UpdateService_async", - "title": "ServiceDirectory updateService Sample", - "origin": "API_DEFINITION", - "description": " Updates a service.", - "canonical": true, - "file": "registration_service.update_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateService", - "fullName": "google.cloud.servicedirectory.v1.RegistrationService.UpdateService", - "async": true, - "parameters": [ - { - "name": "service", - "type": ".google.cloud.servicedirectory.v1.Service" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.servicedirectory.v1.Service", - "client": { - "shortName": "RegistrationServiceClient", - "fullName": "google.cloud.servicedirectory.v1.RegistrationServiceClient" - }, - "method": { - "shortName": "UpdateService", - "fullName": "google.cloud.servicedirectory.v1.RegistrationService.UpdateService", - "service": { - "shortName": "RegistrationService", - "fullName": "google.cloud.servicedirectory.v1.RegistrationService" - } - } - } - }, - { - "regionTag": "servicedirectory_v1_generated_RegistrationService_DeleteService_async", - "title": "ServiceDirectory deleteService Sample", - "origin": "API_DEFINITION", - "description": " Deletes a service. This also deletes all endpoints associated with the service.", - "canonical": true, - "file": "registration_service.delete_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteService", - "fullName": "google.cloud.servicedirectory.v1.RegistrationService.DeleteService", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "RegistrationServiceClient", - "fullName": "google.cloud.servicedirectory.v1.RegistrationServiceClient" - }, - "method": { - "shortName": "DeleteService", - "fullName": "google.cloud.servicedirectory.v1.RegistrationService.DeleteService", - "service": { - "shortName": "RegistrationService", - "fullName": "google.cloud.servicedirectory.v1.RegistrationService" - } - } - } - }, - { - "regionTag": "servicedirectory_v1_generated_RegistrationService_CreateEndpoint_async", - "title": "ServiceDirectory createEndpoint Sample", - "origin": "API_DEFINITION", - "description": " Creates an endpoint, and returns the new endpoint.", - "canonical": true, - "file": "registration_service.create_endpoint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateEndpoint", - "fullName": "google.cloud.servicedirectory.v1.RegistrationService.CreateEndpoint", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "endpoint_id", - "type": "TYPE_STRING" - }, - { - "name": "endpoint", - "type": ".google.cloud.servicedirectory.v1.Endpoint" - } - ], - "resultType": ".google.cloud.servicedirectory.v1.Endpoint", - "client": { - "shortName": "RegistrationServiceClient", - "fullName": "google.cloud.servicedirectory.v1.RegistrationServiceClient" - }, - "method": { - "shortName": "CreateEndpoint", - "fullName": "google.cloud.servicedirectory.v1.RegistrationService.CreateEndpoint", - "service": { - "shortName": "RegistrationService", - "fullName": "google.cloud.servicedirectory.v1.RegistrationService" - } - } - } - }, - { - "regionTag": "servicedirectory_v1_generated_RegistrationService_ListEndpoints_async", - "title": "ServiceDirectory listEndpoints Sample", - "origin": "API_DEFINITION", - "description": " Lists all endpoints.", - "canonical": true, - "file": "registration_service.list_endpoints.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 106, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEndpoints", - "fullName": "google.cloud.servicedirectory.v1.RegistrationService.ListEndpoints", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.servicedirectory.v1.ListEndpointsResponse", - "client": { - "shortName": "RegistrationServiceClient", - "fullName": "google.cloud.servicedirectory.v1.RegistrationServiceClient" - }, - "method": { - "shortName": "ListEndpoints", - "fullName": "google.cloud.servicedirectory.v1.RegistrationService.ListEndpoints", - "service": { - "shortName": "RegistrationService", - "fullName": "google.cloud.servicedirectory.v1.RegistrationService" - } - } - } - }, - { - "regionTag": "servicedirectory_v1_generated_RegistrationService_GetEndpoint_async", - "title": "ServiceDirectory getEndpoint Sample", - "origin": "API_DEFINITION", - "description": " Gets an endpoint.", - "canonical": true, - "file": "registration_service.get_endpoint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEndpoint", - "fullName": "google.cloud.servicedirectory.v1.RegistrationService.GetEndpoint", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.servicedirectory.v1.Endpoint", - "client": { - "shortName": "RegistrationServiceClient", - "fullName": "google.cloud.servicedirectory.v1.RegistrationServiceClient" - }, - "method": { - "shortName": "GetEndpoint", - "fullName": "google.cloud.servicedirectory.v1.RegistrationService.GetEndpoint", - "service": { - "shortName": "RegistrationService", - "fullName": "google.cloud.servicedirectory.v1.RegistrationService" - } - } - } - }, - { - "regionTag": "servicedirectory_v1_generated_RegistrationService_UpdateEndpoint_async", - "title": "ServiceDirectory updateEndpoint Sample", - "origin": "API_DEFINITION", - "description": " Updates an endpoint.", - "canonical": true, - "file": "registration_service.update_endpoint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateEndpoint", - "fullName": "google.cloud.servicedirectory.v1.RegistrationService.UpdateEndpoint", - "async": true, - "parameters": [ - { - "name": "endpoint", - "type": ".google.cloud.servicedirectory.v1.Endpoint" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.servicedirectory.v1.Endpoint", - "client": { - "shortName": "RegistrationServiceClient", - "fullName": "google.cloud.servicedirectory.v1.RegistrationServiceClient" - }, - "method": { - "shortName": "UpdateEndpoint", - "fullName": "google.cloud.servicedirectory.v1.RegistrationService.UpdateEndpoint", - "service": { - "shortName": "RegistrationService", - "fullName": "google.cloud.servicedirectory.v1.RegistrationService" - } - } - } - }, - { - "regionTag": "servicedirectory_v1_generated_RegistrationService_DeleteEndpoint_async", - "title": "ServiceDirectory deleteEndpoint Sample", - "origin": "API_DEFINITION", - "description": " Deletes an endpoint.", - "canonical": true, - "file": "registration_service.delete_endpoint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteEndpoint", - "fullName": "google.cloud.servicedirectory.v1.RegistrationService.DeleteEndpoint", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "RegistrationServiceClient", - "fullName": "google.cloud.servicedirectory.v1.RegistrationServiceClient" - }, - "method": { - "shortName": "DeleteEndpoint", - "fullName": "google.cloud.servicedirectory.v1.RegistrationService.DeleteEndpoint", - "service": { - "shortName": "RegistrationService", - "fullName": "google.cloud.servicedirectory.v1.RegistrationService" - } - } - } - }, - { - "regionTag": "servicedirectory_v1_generated_RegistrationService_GetIamPolicy_async", - "title": "ServiceDirectory getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the IAM Policy for a resource (namespace or service only).", - "canonical": true, - "file": "registration_service.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.servicedirectory.v1.RegistrationService.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": ".google.iam.v1.GetPolicyOptions" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "RegistrationServiceClient", - "fullName": "google.cloud.servicedirectory.v1.RegistrationServiceClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.servicedirectory.v1.RegistrationService.GetIamPolicy", - "service": { - "shortName": "RegistrationService", - "fullName": "google.cloud.servicedirectory.v1.RegistrationService" - } - } - } - }, - { - "regionTag": "servicedirectory_v1_generated_RegistrationService_SetIamPolicy_async", - "title": "ServiceDirectory setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the IAM Policy for a resource (namespace or service only).", - "canonical": true, - "file": "registration_service.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.servicedirectory.v1.RegistrationService.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.iam.v1.Policy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "RegistrationServiceClient", - "fullName": "google.cloud.servicedirectory.v1.RegistrationServiceClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.servicedirectory.v1.RegistrationService.SetIamPolicy", - "service": { - "shortName": "RegistrationService", - "fullName": "google.cloud.servicedirectory.v1.RegistrationService" - } - } - } - }, - { - "regionTag": "servicedirectory_v1_generated_RegistrationService_TestIamPermissions_async", - "title": "ServiceDirectory testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Tests IAM permissions for a resource (namespace or service only).", - "canonical": true, - "file": "registration_service.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.servicedirectory.v1.RegistrationService.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "permissions", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.iam.v1.TestIamPermissionsResponse", - "client": { - "shortName": "RegistrationServiceClient", - "fullName": "google.cloud.servicedirectory.v1.RegistrationServiceClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.servicedirectory.v1.RegistrationService.TestIamPermissions", - "service": { - "shortName": "RegistrationService", - "fullName": "google.cloud.servicedirectory.v1.RegistrationService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-servicedirectory/samples/generated/v1beta1/snippet_metadata_google.cloud.servicedirectory.v1beta1.json b/packages/google-cloud-servicedirectory/samples/generated/v1beta1/snippet_metadata_google.cloud.servicedirectory.v1beta1.json deleted file mode 100644 index 2d6593f49c6e..000000000000 --- a/packages/google-cloud-servicedirectory/samples/generated/v1beta1/snippet_metadata_google.cloud.servicedirectory.v1beta1.json +++ /dev/null @@ -1,883 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-servicedirectory", - "version": "6.1.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.servicedirectory.v1beta1", - "version": "v1beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "servicedirectory_v1beta1_generated_LookupService_ResolveService_async", - "title": "ServiceDirectory resolveService Sample", - "origin": "API_DEFINITION", - "description": " Returns a [service][google.cloud.servicedirectory.v1beta1.Service] and its associated endpoints. Resolving a service is not considered an active developer method.", - "canonical": true, - "file": "lookup_service.resolve_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 93, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResolveService", - "fullName": "google.cloud.servicedirectory.v1beta1.LookupService.ResolveService", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "max_endpoints", - "type": "TYPE_INT32" - }, - { - "name": "endpoint_filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.servicedirectory.v1beta1.ResolveServiceResponse", - "client": { - "shortName": "LookupServiceClient", - "fullName": "google.cloud.servicedirectory.v1beta1.LookupServiceClient" - }, - "method": { - "shortName": "ResolveService", - "fullName": "google.cloud.servicedirectory.v1beta1.LookupService.ResolveService", - "service": { - "shortName": "LookupService", - "fullName": "google.cloud.servicedirectory.v1beta1.LookupService" - } - } - } - }, - { - "regionTag": "servicedirectory_v1beta1_generated_RegistrationService_CreateNamespace_async", - "title": "ServiceDirectory createNamespace Sample", - "origin": "API_DEFINITION", - "description": " Creates a namespace, and returns the new namespace.", - "canonical": true, - "file": "registration_service.create_namespace.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateNamespace", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService.CreateNamespace", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "namespace_id", - "type": "TYPE_STRING" - }, - { - "name": "namespace", - "type": ".google.cloud.servicedirectory.v1beta1.Namespace" - } - ], - "resultType": ".google.cloud.servicedirectory.v1beta1.Namespace", - "client": { - "shortName": "RegistrationServiceClient", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationServiceClient" - }, - "method": { - "shortName": "CreateNamespace", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService.CreateNamespace", - "service": { - "shortName": "RegistrationService", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService" - } - } - } - }, - { - "regionTag": "servicedirectory_v1beta1_generated_RegistrationService_ListNamespaces_async", - "title": "ServiceDirectory listNamespaces Sample", - "origin": "API_DEFINITION", - "description": " Lists all namespaces.", - "canonical": true, - "file": "registration_service.list_namespaces.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 103, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListNamespaces", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService.ListNamespaces", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.servicedirectory.v1beta1.ListNamespacesResponse", - "client": { - "shortName": "RegistrationServiceClient", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationServiceClient" - }, - "method": { - "shortName": "ListNamespaces", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService.ListNamespaces", - "service": { - "shortName": "RegistrationService", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService" - } - } - } - }, - { - "regionTag": "servicedirectory_v1beta1_generated_RegistrationService_GetNamespace_async", - "title": "ServiceDirectory getNamespace Sample", - "origin": "API_DEFINITION", - "description": " Gets a namespace.", - "canonical": true, - "file": "registration_service.get_namespace.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetNamespace", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService.GetNamespace", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.servicedirectory.v1beta1.Namespace", - "client": { - "shortName": "RegistrationServiceClient", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationServiceClient" - }, - "method": { - "shortName": "GetNamespace", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService.GetNamespace", - "service": { - "shortName": "RegistrationService", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService" - } - } - } - }, - { - "regionTag": "servicedirectory_v1beta1_generated_RegistrationService_UpdateNamespace_async", - "title": "ServiceDirectory updateNamespace Sample", - "origin": "API_DEFINITION", - "description": " Updates a namespace.", - "canonical": true, - "file": "registration_service.update_namespace.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateNamespace", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService.UpdateNamespace", - "async": true, - "parameters": [ - { - "name": "namespace", - "type": ".google.cloud.servicedirectory.v1beta1.Namespace" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.servicedirectory.v1beta1.Namespace", - "client": { - "shortName": "RegistrationServiceClient", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationServiceClient" - }, - "method": { - "shortName": "UpdateNamespace", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService.UpdateNamespace", - "service": { - "shortName": "RegistrationService", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService" - } - } - } - }, - { - "regionTag": "servicedirectory_v1beta1_generated_RegistrationService_DeleteNamespace_async", - "title": "ServiceDirectory deleteNamespace Sample", - "origin": "API_DEFINITION", - "description": " Deletes a namespace. This also deletes all services and endpoints in the namespace.", - "canonical": true, - "file": "registration_service.delete_namespace.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteNamespace", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService.DeleteNamespace", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "RegistrationServiceClient", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationServiceClient" - }, - "method": { - "shortName": "DeleteNamespace", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService.DeleteNamespace", - "service": { - "shortName": "RegistrationService", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService" - } - } - } - }, - { - "regionTag": "servicedirectory_v1beta1_generated_RegistrationService_CreateService_async", - "title": "ServiceDirectory createService Sample", - "origin": "API_DEFINITION", - "description": " Creates a service, and returns the new service.", - "canonical": true, - "file": "registration_service.create_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateService", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService.CreateService", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "service_id", - "type": "TYPE_STRING" - }, - { - "name": "service", - "type": ".google.cloud.servicedirectory.v1beta1.Service" - } - ], - "resultType": ".google.cloud.servicedirectory.v1beta1.Service", - "client": { - "shortName": "RegistrationServiceClient", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationServiceClient" - }, - "method": { - "shortName": "CreateService", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService.CreateService", - "service": { - "shortName": "RegistrationService", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService" - } - } - } - }, - { - "regionTag": "servicedirectory_v1beta1_generated_RegistrationService_ListServices_async", - "title": "ServiceDirectory listServices Sample", - "origin": "API_DEFINITION", - "description": " Lists all services belonging to a namespace.", - "canonical": true, - "file": "registration_service.list_services.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 106, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListServices", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService.ListServices", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.servicedirectory.v1beta1.ListServicesResponse", - "client": { - "shortName": "RegistrationServiceClient", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationServiceClient" - }, - "method": { - "shortName": "ListServices", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService.ListServices", - "service": { - "shortName": "RegistrationService", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService" - } - } - } - }, - { - "regionTag": "servicedirectory_v1beta1_generated_RegistrationService_GetService_async", - "title": "ServiceDirectory getService Sample", - "origin": "API_DEFINITION", - "description": " Gets a service.", - "canonical": true, - "file": "registration_service.get_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetService", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService.GetService", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.servicedirectory.v1beta1.Service", - "client": { - "shortName": "RegistrationServiceClient", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationServiceClient" - }, - "method": { - "shortName": "GetService", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService.GetService", - "service": { - "shortName": "RegistrationService", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService" - } - } - } - }, - { - "regionTag": "servicedirectory_v1beta1_generated_RegistrationService_UpdateService_async", - "title": "ServiceDirectory updateService Sample", - "origin": "API_DEFINITION", - "description": " Updates a service.", - "canonical": true, - "file": "registration_service.update_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateService", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService.UpdateService", - "async": true, - "parameters": [ - { - "name": "service", - "type": ".google.cloud.servicedirectory.v1beta1.Service" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.servicedirectory.v1beta1.Service", - "client": { - "shortName": "RegistrationServiceClient", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationServiceClient" - }, - "method": { - "shortName": "UpdateService", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService.UpdateService", - "service": { - "shortName": "RegistrationService", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService" - } - } - } - }, - { - "regionTag": "servicedirectory_v1beta1_generated_RegistrationService_DeleteService_async", - "title": "ServiceDirectory deleteService Sample", - "origin": "API_DEFINITION", - "description": " Deletes a service. This also deletes all endpoints associated with the service.", - "canonical": true, - "file": "registration_service.delete_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteService", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService.DeleteService", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "RegistrationServiceClient", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationServiceClient" - }, - "method": { - "shortName": "DeleteService", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService.DeleteService", - "service": { - "shortName": "RegistrationService", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService" - } - } - } - }, - { - "regionTag": "servicedirectory_v1beta1_generated_RegistrationService_CreateEndpoint_async", - "title": "ServiceDirectory createEndpoint Sample", - "origin": "API_DEFINITION", - "description": " Creates an endpoint, and returns the new endpoint.", - "canonical": true, - "file": "registration_service.create_endpoint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateEndpoint", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService.CreateEndpoint", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "endpoint_id", - "type": "TYPE_STRING" - }, - { - "name": "endpoint", - "type": ".google.cloud.servicedirectory.v1beta1.Endpoint" - } - ], - "resultType": ".google.cloud.servicedirectory.v1beta1.Endpoint", - "client": { - "shortName": "RegistrationServiceClient", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationServiceClient" - }, - "method": { - "shortName": "CreateEndpoint", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService.CreateEndpoint", - "service": { - "shortName": "RegistrationService", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService" - } - } - } - }, - { - "regionTag": "servicedirectory_v1beta1_generated_RegistrationService_ListEndpoints_async", - "title": "ServiceDirectory listEndpoints Sample", - "origin": "API_DEFINITION", - "description": " Lists all endpoints.", - "canonical": true, - "file": "registration_service.list_endpoints.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 108, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEndpoints", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService.ListEndpoints", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.servicedirectory.v1beta1.ListEndpointsResponse", - "client": { - "shortName": "RegistrationServiceClient", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationServiceClient" - }, - "method": { - "shortName": "ListEndpoints", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService.ListEndpoints", - "service": { - "shortName": "RegistrationService", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService" - } - } - } - }, - { - "regionTag": "servicedirectory_v1beta1_generated_RegistrationService_GetEndpoint_async", - "title": "ServiceDirectory getEndpoint Sample", - "origin": "API_DEFINITION", - "description": " Gets an endpoint.", - "canonical": true, - "file": "registration_service.get_endpoint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEndpoint", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService.GetEndpoint", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.servicedirectory.v1beta1.Endpoint", - "client": { - "shortName": "RegistrationServiceClient", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationServiceClient" - }, - "method": { - "shortName": "GetEndpoint", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService.GetEndpoint", - "service": { - "shortName": "RegistrationService", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService" - } - } - } - }, - { - "regionTag": "servicedirectory_v1beta1_generated_RegistrationService_UpdateEndpoint_async", - "title": "ServiceDirectory updateEndpoint Sample", - "origin": "API_DEFINITION", - "description": " Updates an endpoint.", - "canonical": true, - "file": "registration_service.update_endpoint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateEndpoint", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService.UpdateEndpoint", - "async": true, - "parameters": [ - { - "name": "endpoint", - "type": ".google.cloud.servicedirectory.v1beta1.Endpoint" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.servicedirectory.v1beta1.Endpoint", - "client": { - "shortName": "RegistrationServiceClient", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationServiceClient" - }, - "method": { - "shortName": "UpdateEndpoint", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService.UpdateEndpoint", - "service": { - "shortName": "RegistrationService", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService" - } - } - } - }, - { - "regionTag": "servicedirectory_v1beta1_generated_RegistrationService_DeleteEndpoint_async", - "title": "ServiceDirectory deleteEndpoint Sample", - "origin": "API_DEFINITION", - "description": " Deletes an endpoint.", - "canonical": true, - "file": "registration_service.delete_endpoint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteEndpoint", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService.DeleteEndpoint", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "RegistrationServiceClient", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationServiceClient" - }, - "method": { - "shortName": "DeleteEndpoint", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService.DeleteEndpoint", - "service": { - "shortName": "RegistrationService", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService" - } - } - } - }, - { - "regionTag": "servicedirectory_v1beta1_generated_RegistrationService_GetIamPolicy_async", - "title": "ServiceDirectory getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the IAM Policy for a resource", - "canonical": true, - "file": "registration_service.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": ".google.iam.v1.GetPolicyOptions" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "RegistrationServiceClient", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationServiceClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService.GetIamPolicy", - "service": { - "shortName": "RegistrationService", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService" - } - } - } - }, - { - "regionTag": "servicedirectory_v1beta1_generated_RegistrationService_SetIamPolicy_async", - "title": "ServiceDirectory setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the IAM Policy for a resource", - "canonical": true, - "file": "registration_service.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.iam.v1.Policy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "RegistrationServiceClient", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationServiceClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService.SetIamPolicy", - "service": { - "shortName": "RegistrationService", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService" - } - } - } - }, - { - "regionTag": "servicedirectory_v1beta1_generated_RegistrationService_TestIamPermissions_async", - "title": "ServiceDirectory testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Tests IAM permissions for a resource (namespace, service or service workload only).", - "canonical": true, - "file": "registration_service.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "permissions", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.iam.v1.TestIamPermissionsResponse", - "client": { - "shortName": "RegistrationServiceClient", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationServiceClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService.TestIamPermissions", - "service": { - "shortName": "RegistrationService", - "fullName": "google.cloud.servicedirectory.v1beta1.RegistrationService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-servicehealth/samples/generated/v1/snippet_metadata_google.cloud.servicehealth.v1.json b/packages/google-cloud-servicehealth/samples/generated/v1/snippet_metadata_google.cloud.servicehealth.v1.json deleted file mode 100644 index 4d1962231c25..000000000000 --- a/packages/google-cloud-servicehealth/samples/generated/v1/snippet_metadata_google.cloud.servicehealth.v1.json +++ /dev/null @@ -1,299 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-servicehealth", - "version": "0.7.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.servicehealth.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "servicehealth_v1_generated_ServiceHealth_ListEvents_async", - "title": "ServiceHealth listEvents Sample", - "origin": "API_DEFINITION", - "description": " Lists events under a given project and location.", - "canonical": true, - "file": "service_health.list_events.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 96, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEvents", - "fullName": "google.cloud.servicehealth.v1.ServiceHealth.ListEvents", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.servicehealth.v1.EventView" - } - ], - "resultType": ".google.cloud.servicehealth.v1.ListEventsResponse", - "client": { - "shortName": "ServiceHealthClient", - "fullName": "google.cloud.servicehealth.v1.ServiceHealthClient" - }, - "method": { - "shortName": "ListEvents", - "fullName": "google.cloud.servicehealth.v1.ServiceHealth.ListEvents", - "service": { - "shortName": "ServiceHealth", - "fullName": "google.cloud.servicehealth.v1.ServiceHealth" - } - } - } - }, - { - "regionTag": "servicehealth_v1_generated_ServiceHealth_GetEvent_async", - "title": "ServiceHealth getEvent Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a resource containing information about an event.", - "canonical": true, - "file": "service_health.get_event.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEvent", - "fullName": "google.cloud.servicehealth.v1.ServiceHealth.GetEvent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.servicehealth.v1.Event", - "client": { - "shortName": "ServiceHealthClient", - "fullName": "google.cloud.servicehealth.v1.ServiceHealthClient" - }, - "method": { - "shortName": "GetEvent", - "fullName": "google.cloud.servicehealth.v1.ServiceHealth.GetEvent", - "service": { - "shortName": "ServiceHealth", - "fullName": "google.cloud.servicehealth.v1.ServiceHealth" - } - } - } - }, - { - "regionTag": "servicehealth_v1_generated_ServiceHealth_ListOrganizationEvents_async", - "title": "ServiceHealth listOrganizationEvents Sample", - "origin": "API_DEFINITION", - "description": " Lists organization events under a given organization and location.", - "canonical": true, - "file": "service_health.list_organization_events.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 97, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListOrganizationEvents", - "fullName": "google.cloud.servicehealth.v1.ServiceHealth.ListOrganizationEvents", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.servicehealth.v1.OrganizationEventView" - } - ], - "resultType": ".google.cloud.servicehealth.v1.ListOrganizationEventsResponse", - "client": { - "shortName": "ServiceHealthClient", - "fullName": "google.cloud.servicehealth.v1.ServiceHealthClient" - }, - "method": { - "shortName": "ListOrganizationEvents", - "fullName": "google.cloud.servicehealth.v1.ServiceHealth.ListOrganizationEvents", - "service": { - "shortName": "ServiceHealth", - "fullName": "google.cloud.servicehealth.v1.ServiceHealth" - } - } - } - }, - { - "regionTag": "servicehealth_v1_generated_ServiceHealth_GetOrganizationEvent_async", - "title": "ServiceHealth getOrganizationEvent Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a resource containing information about an event affecting an organization .", - "canonical": true, - "file": "service_health.get_organization_event.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetOrganizationEvent", - "fullName": "google.cloud.servicehealth.v1.ServiceHealth.GetOrganizationEvent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.servicehealth.v1.OrganizationEvent", - "client": { - "shortName": "ServiceHealthClient", - "fullName": "google.cloud.servicehealth.v1.ServiceHealthClient" - }, - "method": { - "shortName": "GetOrganizationEvent", - "fullName": "google.cloud.servicehealth.v1.ServiceHealth.GetOrganizationEvent", - "service": { - "shortName": "ServiceHealth", - "fullName": "google.cloud.servicehealth.v1.ServiceHealth" - } - } - } - }, - { - "regionTag": "servicehealth_v1_generated_ServiceHealth_ListOrganizationImpacts_async", - "title": "ServiceHealth listOrganizationImpacts Sample", - "origin": "API_DEFINITION", - "description": " Lists assets impacted by organization events under a given organization and location.", - "canonical": true, - "file": "service_health.list_organization_impacts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 93, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListOrganizationImpacts", - "fullName": "google.cloud.servicehealth.v1.ServiceHealth.ListOrganizationImpacts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.servicehealth.v1.ListOrganizationImpactsResponse", - "client": { - "shortName": "ServiceHealthClient", - "fullName": "google.cloud.servicehealth.v1.ServiceHealthClient" - }, - "method": { - "shortName": "ListOrganizationImpacts", - "fullName": "google.cloud.servicehealth.v1.ServiceHealth.ListOrganizationImpacts", - "service": { - "shortName": "ServiceHealth", - "fullName": "google.cloud.servicehealth.v1.ServiceHealth" - } - } - } - }, - { - "regionTag": "servicehealth_v1_generated_ServiceHealth_GetOrganizationImpact_async", - "title": "ServiceHealth getOrganizationImpact Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a resource containing information about impact to an asset under an organization affected by a service health event.", - "canonical": true, - "file": "service_health.get_organization_impact.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetOrganizationImpact", - "fullName": "google.cloud.servicehealth.v1.ServiceHealth.GetOrganizationImpact", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.servicehealth.v1.OrganizationImpact", - "client": { - "shortName": "ServiceHealthClient", - "fullName": "google.cloud.servicehealth.v1.ServiceHealthClient" - }, - "method": { - "shortName": "GetOrganizationImpact", - "fullName": "google.cloud.servicehealth.v1.ServiceHealth.GetOrganizationImpact", - "service": { - "shortName": "ServiceHealth", - "fullName": "google.cloud.servicehealth.v1.ServiceHealth" - } - } - } - } - ] -} diff --git a/packages/google-cloud-shell/samples/generated/v1/snippet_metadata_google.cloud.shell.v1.json b/packages/google-cloud-shell/samples/generated/v1/snippet_metadata_google.cloud.shell.v1.json deleted file mode 100644 index 7ad99ac13c65..000000000000 --- a/packages/google-cloud-shell/samples/generated/v1/snippet_metadata_google.cloud.shell.v1.json +++ /dev/null @@ -1,243 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-shell", - "version": "4.1.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.shell.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "cloudshell_v1_generated_CloudShellService_GetEnvironment_async", - "title": "CloudShellService getEnvironment Sample", - "origin": "API_DEFINITION", - "description": " Gets an environment. Returns NOT_FOUND if the environment does not exist.", - "canonical": true, - "file": "cloud_shell_service.get_environment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEnvironment", - "fullName": "google.cloud.shell.v1.CloudShellService.GetEnvironment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.shell.v1.Environment", - "client": { - "shortName": "CloudShellServiceClient", - "fullName": "google.cloud.shell.v1.CloudShellServiceClient" - }, - "method": { - "shortName": "GetEnvironment", - "fullName": "google.cloud.shell.v1.CloudShellService.GetEnvironment", - "service": { - "shortName": "CloudShellService", - "fullName": "google.cloud.shell.v1.CloudShellService" - } - } - } - }, - { - "regionTag": "cloudshell_v1_generated_CloudShellService_StartEnvironment_async", - "title": "CloudShellService startEnvironment Sample", - "origin": "API_DEFINITION", - "description": " Starts an existing environment, allowing clients to connect to it. The returned operation will contain an instance of StartEnvironmentMetadata in its metadata field. Users can wait for the environment to start by polling this operation via GetOperation. Once the environment has finished starting and is ready to accept connections, the operation will contain a StartEnvironmentResponse in its response field.", - "canonical": true, - "file": "cloud_shell_service.start_environment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StartEnvironment", - "fullName": "google.cloud.shell.v1.CloudShellService.StartEnvironment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "access_token", - "type": "TYPE_STRING" - }, - { - "name": "public_keys", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudShellServiceClient", - "fullName": "google.cloud.shell.v1.CloudShellServiceClient" - }, - "method": { - "shortName": "StartEnvironment", - "fullName": "google.cloud.shell.v1.CloudShellService.StartEnvironment", - "service": { - "shortName": "CloudShellService", - "fullName": "google.cloud.shell.v1.CloudShellService" - } - } - } - }, - { - "regionTag": "cloudshell_v1_generated_CloudShellService_AuthorizeEnvironment_async", - "title": "CloudShellService authorizeEnvironment Sample", - "origin": "API_DEFINITION", - "description": " Sends OAuth credentials to a running environment on behalf of a user. When this completes, the environment will be authorized to run various Google Cloud command line tools without requiring the user to manually authenticate.", - "canonical": true, - "file": "cloud_shell_service.authorize_environment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AuthorizeEnvironment", - "fullName": "google.cloud.shell.v1.CloudShellService.AuthorizeEnvironment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "access_token", - "type": "TYPE_STRING" - }, - { - "name": "id_token", - "type": "TYPE_STRING" - }, - { - "name": "expire_time", - "type": ".google.protobuf.Timestamp" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudShellServiceClient", - "fullName": "google.cloud.shell.v1.CloudShellServiceClient" - }, - "method": { - "shortName": "AuthorizeEnvironment", - "fullName": "google.cloud.shell.v1.CloudShellService.AuthorizeEnvironment", - "service": { - "shortName": "CloudShellService", - "fullName": "google.cloud.shell.v1.CloudShellService" - } - } - } - }, - { - "regionTag": "cloudshell_v1_generated_CloudShellService_AddPublicKey_async", - "title": "CloudShellService addPublicKey Sample", - "origin": "API_DEFINITION", - "description": " Adds a public SSH key to an environment, allowing clients with the corresponding private key to connect to that environment via SSH. If a key with the same content already exists, this will error with ALREADY_EXISTS.", - "canonical": true, - "file": "cloud_shell_service.add_public_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddPublicKey", - "fullName": "google.cloud.shell.v1.CloudShellService.AddPublicKey", - "async": true, - "parameters": [ - { - "name": "environment", - "type": "TYPE_STRING" - }, - { - "name": "key", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudShellServiceClient", - "fullName": "google.cloud.shell.v1.CloudShellServiceClient" - }, - "method": { - "shortName": "AddPublicKey", - "fullName": "google.cloud.shell.v1.CloudShellService.AddPublicKey", - "service": { - "shortName": "CloudShellService", - "fullName": "google.cloud.shell.v1.CloudShellService" - } - } - } - }, - { - "regionTag": "cloudshell_v1_generated_CloudShellService_RemovePublicKey_async", - "title": "CloudShellService removePublicKey Sample", - "origin": "API_DEFINITION", - "description": " Removes a public SSH key from an environment. Clients will no longer be able to connect to the environment using the corresponding private key. If a key with the same content is not present, this will error with NOT_FOUND.", - "canonical": true, - "file": "cloud_shell_service.remove_public_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemovePublicKey", - "fullName": "google.cloud.shell.v1.CloudShellService.RemovePublicKey", - "async": true, - "parameters": [ - { - "name": "environment", - "type": "TYPE_STRING" - }, - { - "name": "key", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudShellServiceClient", - "fullName": "google.cloud.shell.v1.CloudShellServiceClient" - }, - "method": { - "shortName": "RemovePublicKey", - "fullName": "google.cloud.shell.v1.CloudShellService.RemovePublicKey", - "service": { - "shortName": "CloudShellService", - "fullName": "google.cloud.shell.v1.CloudShellService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-speech/samples/generated/v1/snippet_metadata_google.cloud.speech.v1.json b/packages/google-cloud-speech/samples/generated/v1/snippet_metadata_google.cloud.speech.v1.json deleted file mode 100644 index dac0dd04f1f9..000000000000 --- a/packages/google-cloud-speech/samples/generated/v1/snippet_metadata_google.cloud.speech.v1.json +++ /dev/null @@ -1,591 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-speech", - "version": "7.3.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.speech.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "speech_v1_generated_Adaptation_CreatePhraseSet_async", - "title": "Adaptation createPhraseSet Sample", - "origin": "API_DEFINITION", - "description": " Create a set of phrase hints. Each item in the set can be a single word or a multi-word phrase. The items in the PhraseSet are favored by the recognition model when you send a call that includes the PhraseSet.", - "canonical": true, - "file": "adaptation.create_phrase_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreatePhraseSet", - "fullName": "google.cloud.speech.v1.Adaptation.CreatePhraseSet", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "phrase_set_id", - "type": "TYPE_STRING" - }, - { - "name": "phrase_set", - "type": ".google.cloud.speech.v1.PhraseSet" - } - ], - "resultType": ".google.cloud.speech.v1.PhraseSet", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1.AdaptationClient" - }, - "method": { - "shortName": "CreatePhraseSet", - "fullName": "google.cloud.speech.v1.Adaptation.CreatePhraseSet", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1_generated_Adaptation_GetPhraseSet_async", - "title": "Adaptation getPhraseSet Sample", - "origin": "API_DEFINITION", - "description": " Get a phrase set.", - "canonical": true, - "file": "adaptation.get_phrase_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPhraseSet", - "fullName": "google.cloud.speech.v1.Adaptation.GetPhraseSet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.speech.v1.PhraseSet", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1.AdaptationClient" - }, - "method": { - "shortName": "GetPhraseSet", - "fullName": "google.cloud.speech.v1.Adaptation.GetPhraseSet", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1_generated_Adaptation_ListPhraseSet_async", - "title": "Adaptation listPhraseSet Sample", - "origin": "API_DEFINITION", - "description": " List phrase sets.", - "canonical": true, - "file": "adaptation.list_phrase_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPhraseSet", - "fullName": "google.cloud.speech.v1.Adaptation.ListPhraseSet", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.speech.v1.ListPhraseSetResponse", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1.AdaptationClient" - }, - "method": { - "shortName": "ListPhraseSet", - "fullName": "google.cloud.speech.v1.Adaptation.ListPhraseSet", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1_generated_Adaptation_UpdatePhraseSet_async", - "title": "Adaptation updatePhraseSet Sample", - "origin": "API_DEFINITION", - "description": " Update a phrase set.", - "canonical": true, - "file": "adaptation.update_phrase_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdatePhraseSet", - "fullName": "google.cloud.speech.v1.Adaptation.UpdatePhraseSet", - "async": true, - "parameters": [ - { - "name": "phrase_set", - "type": ".google.cloud.speech.v1.PhraseSet" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.speech.v1.PhraseSet", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1.AdaptationClient" - }, - "method": { - "shortName": "UpdatePhraseSet", - "fullName": "google.cloud.speech.v1.Adaptation.UpdatePhraseSet", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1_generated_Adaptation_DeletePhraseSet_async", - "title": "Adaptation deletePhraseSet Sample", - "origin": "API_DEFINITION", - "description": " Delete a phrase set.", - "canonical": true, - "file": "adaptation.delete_phrase_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePhraseSet", - "fullName": "google.cloud.speech.v1.Adaptation.DeletePhraseSet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1.AdaptationClient" - }, - "method": { - "shortName": "DeletePhraseSet", - "fullName": "google.cloud.speech.v1.Adaptation.DeletePhraseSet", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1_generated_Adaptation_CreateCustomClass_async", - "title": "Adaptation createCustomClass Sample", - "origin": "API_DEFINITION", - "description": " Create a custom class.", - "canonical": true, - "file": "adaptation.create_custom_class.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCustomClass", - "fullName": "google.cloud.speech.v1.Adaptation.CreateCustomClass", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "custom_class_id", - "type": "TYPE_STRING" - }, - { - "name": "custom_class", - "type": ".google.cloud.speech.v1.CustomClass" - } - ], - "resultType": ".google.cloud.speech.v1.CustomClass", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1.AdaptationClient" - }, - "method": { - "shortName": "CreateCustomClass", - "fullName": "google.cloud.speech.v1.Adaptation.CreateCustomClass", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1_generated_Adaptation_GetCustomClass_async", - "title": "Adaptation getCustomClass Sample", - "origin": "API_DEFINITION", - "description": " Get a custom class.", - "canonical": true, - "file": "adaptation.get_custom_class.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCustomClass", - "fullName": "google.cloud.speech.v1.Adaptation.GetCustomClass", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.speech.v1.CustomClass", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1.AdaptationClient" - }, - "method": { - "shortName": "GetCustomClass", - "fullName": "google.cloud.speech.v1.Adaptation.GetCustomClass", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1_generated_Adaptation_ListCustomClasses_async", - "title": "Adaptation listCustomClasses Sample", - "origin": "API_DEFINITION", - "description": " List custom classes.", - "canonical": true, - "file": "adaptation.list_custom_classes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCustomClasses", - "fullName": "google.cloud.speech.v1.Adaptation.ListCustomClasses", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.speech.v1.ListCustomClassesResponse", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1.AdaptationClient" - }, - "method": { - "shortName": "ListCustomClasses", - "fullName": "google.cloud.speech.v1.Adaptation.ListCustomClasses", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1_generated_Adaptation_UpdateCustomClass_async", - "title": "Adaptation updateCustomClass Sample", - "origin": "API_DEFINITION", - "description": " Update a custom class.", - "canonical": true, - "file": "adaptation.update_custom_class.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCustomClass", - "fullName": "google.cloud.speech.v1.Adaptation.UpdateCustomClass", - "async": true, - "parameters": [ - { - "name": "custom_class", - "type": ".google.cloud.speech.v1.CustomClass" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.speech.v1.CustomClass", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1.AdaptationClient" - }, - "method": { - "shortName": "UpdateCustomClass", - "fullName": "google.cloud.speech.v1.Adaptation.UpdateCustomClass", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1_generated_Adaptation_DeleteCustomClass_async", - "title": "Adaptation deleteCustomClass Sample", - "origin": "API_DEFINITION", - "description": " Delete a custom class.", - "canonical": true, - "file": "adaptation.delete_custom_class.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCustomClass", - "fullName": "google.cloud.speech.v1.Adaptation.DeleteCustomClass", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1.AdaptationClient" - }, - "method": { - "shortName": "DeleteCustomClass", - "fullName": "google.cloud.speech.v1.Adaptation.DeleteCustomClass", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1_generated_Speech_Recognize_async", - "title": "Adaptation recognize Sample", - "origin": "API_DEFINITION", - "description": " Performs synchronous speech recognition: receive results after all audio has been sent and processed.", - "canonical": true, - "file": "speech.recognize.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Recognize", - "fullName": "google.cloud.speech.v1.Speech.Recognize", - "async": true, - "parameters": [ - { - "name": "config", - "type": ".google.cloud.speech.v1.RecognitionConfig" - }, - { - "name": "audio", - "type": ".google.cloud.speech.v1.RecognitionAudio" - } - ], - "resultType": ".google.cloud.speech.v1.RecognizeResponse", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v1.SpeechClient" - }, - "method": { - "shortName": "Recognize", - "fullName": "google.cloud.speech.v1.Speech.Recognize", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v1.Speech" - } - } - } - }, - { - "regionTag": "speech_v1_generated_Speech_LongRunningRecognize_async", - "title": "Adaptation longRunningRecognize Sample", - "origin": "API_DEFINITION", - "description": " Performs asynchronous speech recognition: receive results via the google.longrunning.Operations interface. Returns either an `Operation.error` or an `Operation.response` which contains a `LongRunningRecognizeResponse` message. For more information on asynchronous speech recognition, see the [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).", - "canonical": true, - "file": "speech.long_running_recognize.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "LongRunningRecognize", - "fullName": "google.cloud.speech.v1.Speech.LongRunningRecognize", - "async": true, - "parameters": [ - { - "name": "config", - "type": ".google.cloud.speech.v1.RecognitionConfig" - }, - { - "name": "audio", - "type": ".google.cloud.speech.v1.RecognitionAudio" - }, - { - "name": "output_config", - "type": ".google.cloud.speech.v1.TranscriptOutputConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v1.SpeechClient" - }, - "method": { - "shortName": "LongRunningRecognize", - "fullName": "google.cloud.speech.v1.Speech.LongRunningRecognize", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v1.Speech" - } - } - } - }, - { - "regionTag": "speech_v1_generated_Speech_StreamingRecognize_async", - "title": "Adaptation streamingRecognize Sample", - "origin": "API_DEFINITION", - "description": " Performs bidirectional streaming speech recognition: receive results while sending audio. This method is only available via the gRPC API (not REST).", - "canonical": true, - "file": "speech.streaming_recognize.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StreamingRecognize", - "fullName": "google.cloud.speech.v1.Speech.StreamingRecognize", - "async": true, - "parameters": [ - { - "name": "streaming_config", - "type": ".google.cloud.speech.v1.StreamingRecognitionConfig" - }, - { - "name": "audio_content", - "type": "TYPE_BYTES" - } - ], - "resultType": ".google.cloud.speech.v1.StreamingRecognizeResponse", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v1.SpeechClient" - }, - "method": { - "shortName": "StreamingRecognize", - "fullName": "google.cloud.speech.v1.Speech.StreamingRecognize", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v1.Speech" - } - } - } - } - ] -} diff --git a/packages/google-cloud-speech/samples/generated/v1p1beta1/snippet_metadata_google.cloud.speech.v1p1beta1.json b/packages/google-cloud-speech/samples/generated/v1p1beta1/snippet_metadata_google.cloud.speech.v1p1beta1.json deleted file mode 100644 index 21e15e84b540..000000000000 --- a/packages/google-cloud-speech/samples/generated/v1p1beta1/snippet_metadata_google.cloud.speech.v1p1beta1.json +++ /dev/null @@ -1,591 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-speech", - "version": "7.3.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.speech.v1p1beta1", - "version": "v1p1beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "speech_v1p1beta1_generated_Adaptation_CreatePhraseSet_async", - "title": "Adaptation createPhraseSet Sample", - "origin": "API_DEFINITION", - "description": " Create a set of phrase hints. Each item in the set can be a single word or a multi-word phrase. The items in the PhraseSet are favored by the recognition model when you send a call that includes the PhraseSet.", - "canonical": true, - "file": "adaptation.create_phrase_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreatePhraseSet", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.CreatePhraseSet", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "phrase_set_id", - "type": "TYPE_STRING" - }, - { - "name": "phrase_set", - "type": ".google.cloud.speech.v1p1beta1.PhraseSet" - } - ], - "resultType": ".google.cloud.speech.v1p1beta1.PhraseSet", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" - }, - "method": { - "shortName": "CreatePhraseSet", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.CreatePhraseSet", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1p1beta1_generated_Adaptation_GetPhraseSet_async", - "title": "Adaptation getPhraseSet Sample", - "origin": "API_DEFINITION", - "description": " Get a phrase set.", - "canonical": true, - "file": "adaptation.get_phrase_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPhraseSet", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.GetPhraseSet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.speech.v1p1beta1.PhraseSet", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" - }, - "method": { - "shortName": "GetPhraseSet", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.GetPhraseSet", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1p1beta1_generated_Adaptation_ListPhraseSet_async", - "title": "Adaptation listPhraseSet Sample", - "origin": "API_DEFINITION", - "description": " List phrase sets.", - "canonical": true, - "file": "adaptation.list_phrase_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPhraseSet", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.ListPhraseSet", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.speech.v1p1beta1.ListPhraseSetResponse", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" - }, - "method": { - "shortName": "ListPhraseSet", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.ListPhraseSet", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1p1beta1_generated_Adaptation_UpdatePhraseSet_async", - "title": "Adaptation updatePhraseSet Sample", - "origin": "API_DEFINITION", - "description": " Update a phrase set.", - "canonical": true, - "file": "adaptation.update_phrase_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdatePhraseSet", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.UpdatePhraseSet", - "async": true, - "parameters": [ - { - "name": "phrase_set", - "type": ".google.cloud.speech.v1p1beta1.PhraseSet" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.speech.v1p1beta1.PhraseSet", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" - }, - "method": { - "shortName": "UpdatePhraseSet", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.UpdatePhraseSet", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1p1beta1_generated_Adaptation_DeletePhraseSet_async", - "title": "Adaptation deletePhraseSet Sample", - "origin": "API_DEFINITION", - "description": " Delete a phrase set.", - "canonical": true, - "file": "adaptation.delete_phrase_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePhraseSet", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.DeletePhraseSet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" - }, - "method": { - "shortName": "DeletePhraseSet", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.DeletePhraseSet", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1p1beta1_generated_Adaptation_CreateCustomClass_async", - "title": "Adaptation createCustomClass Sample", - "origin": "API_DEFINITION", - "description": " Create a custom class.", - "canonical": true, - "file": "adaptation.create_custom_class.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCustomClass", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.CreateCustomClass", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "custom_class_id", - "type": "TYPE_STRING" - }, - { - "name": "custom_class", - "type": ".google.cloud.speech.v1p1beta1.CustomClass" - } - ], - "resultType": ".google.cloud.speech.v1p1beta1.CustomClass", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" - }, - "method": { - "shortName": "CreateCustomClass", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.CreateCustomClass", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1p1beta1_generated_Adaptation_GetCustomClass_async", - "title": "Adaptation getCustomClass Sample", - "origin": "API_DEFINITION", - "description": " Get a custom class.", - "canonical": true, - "file": "adaptation.get_custom_class.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCustomClass", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.GetCustomClass", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.speech.v1p1beta1.CustomClass", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" - }, - "method": { - "shortName": "GetCustomClass", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.GetCustomClass", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1p1beta1_generated_Adaptation_ListCustomClasses_async", - "title": "Adaptation listCustomClasses Sample", - "origin": "API_DEFINITION", - "description": " List custom classes.", - "canonical": true, - "file": "adaptation.list_custom_classes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCustomClasses", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.ListCustomClasses", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.speech.v1p1beta1.ListCustomClassesResponse", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" - }, - "method": { - "shortName": "ListCustomClasses", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.ListCustomClasses", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1p1beta1_generated_Adaptation_UpdateCustomClass_async", - "title": "Adaptation updateCustomClass Sample", - "origin": "API_DEFINITION", - "description": " Update a custom class.", - "canonical": true, - "file": "adaptation.update_custom_class.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCustomClass", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.UpdateCustomClass", - "async": true, - "parameters": [ - { - "name": "custom_class", - "type": ".google.cloud.speech.v1p1beta1.CustomClass" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.speech.v1p1beta1.CustomClass", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" - }, - "method": { - "shortName": "UpdateCustomClass", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.UpdateCustomClass", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1p1beta1_generated_Adaptation_DeleteCustomClass_async", - "title": "Adaptation deleteCustomClass Sample", - "origin": "API_DEFINITION", - "description": " Delete a custom class.", - "canonical": true, - "file": "adaptation.delete_custom_class.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCustomClass", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.DeleteCustomClass", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AdaptationClient", - "fullName": "google.cloud.speech.v1p1beta1.AdaptationClient" - }, - "method": { - "shortName": "DeleteCustomClass", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation.DeleteCustomClass", - "service": { - "shortName": "Adaptation", - "fullName": "google.cloud.speech.v1p1beta1.Adaptation" - } - } - } - }, - { - "regionTag": "speech_v1p1beta1_generated_Speech_Recognize_async", - "title": "Adaptation recognize Sample", - "origin": "API_DEFINITION", - "description": " Performs synchronous speech recognition: receive results after all audio has been sent and processed.", - "canonical": true, - "file": "speech.recognize.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Recognize", - "fullName": "google.cloud.speech.v1p1beta1.Speech.Recognize", - "async": true, - "parameters": [ - { - "name": "config", - "type": ".google.cloud.speech.v1p1beta1.RecognitionConfig" - }, - { - "name": "audio", - "type": ".google.cloud.speech.v1p1beta1.RecognitionAudio" - } - ], - "resultType": ".google.cloud.speech.v1p1beta1.RecognizeResponse", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v1p1beta1.SpeechClient" - }, - "method": { - "shortName": "Recognize", - "fullName": "google.cloud.speech.v1p1beta1.Speech.Recognize", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v1p1beta1.Speech" - } - } - } - }, - { - "regionTag": "speech_v1p1beta1_generated_Speech_LongRunningRecognize_async", - "title": "Adaptation longRunningRecognize Sample", - "origin": "API_DEFINITION", - "description": " Performs asynchronous speech recognition: receive results via the google.longrunning.Operations interface. Returns either an `Operation.error` or an `Operation.response` which contains a `LongRunningRecognizeResponse` message. For more information on asynchronous speech recognition, see the [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).", - "canonical": true, - "file": "speech.long_running_recognize.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "LongRunningRecognize", - "fullName": "google.cloud.speech.v1p1beta1.Speech.LongRunningRecognize", - "async": true, - "parameters": [ - { - "name": "config", - "type": ".google.cloud.speech.v1p1beta1.RecognitionConfig" - }, - { - "name": "audio", - "type": ".google.cloud.speech.v1p1beta1.RecognitionAudio" - }, - { - "name": "output_config", - "type": ".google.cloud.speech.v1p1beta1.TranscriptOutputConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v1p1beta1.SpeechClient" - }, - "method": { - "shortName": "LongRunningRecognize", - "fullName": "google.cloud.speech.v1p1beta1.Speech.LongRunningRecognize", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v1p1beta1.Speech" - } - } - } - }, - { - "regionTag": "speech_v1p1beta1_generated_Speech_StreamingRecognize_async", - "title": "Adaptation streamingRecognize Sample", - "origin": "API_DEFINITION", - "description": " Performs bidirectional streaming speech recognition: receive results while sending audio. This method is only available via the gRPC API (not REST).", - "canonical": true, - "file": "speech.streaming_recognize.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StreamingRecognize", - "fullName": "google.cloud.speech.v1p1beta1.Speech.StreamingRecognize", - "async": true, - "parameters": [ - { - "name": "streaming_config", - "type": ".google.cloud.speech.v1p1beta1.StreamingRecognitionConfig" - }, - { - "name": "audio_content", - "type": "TYPE_BYTES" - } - ], - "resultType": ".google.cloud.speech.v1p1beta1.StreamingRecognizeResponse", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v1p1beta1.SpeechClient" - }, - "method": { - "shortName": "StreamingRecognize", - "fullName": "google.cloud.speech.v1p1beta1.Speech.StreamingRecognize", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v1p1beta1.Speech" - } - } - } - } - ] -} diff --git a/packages/google-cloud-speech/samples/generated/v2/snippet_metadata_google.cloud.speech.v2.json b/packages/google-cloud-speech/samples/generated/v2/snippet_metadata_google.cloud.speech.v2.json deleted file mode 100644 index 7071d5a47c1c..000000000000 --- a/packages/google-cloud-speech/samples/generated/v2/snippet_metadata_google.cloud.speech.v2.json +++ /dev/null @@ -1,1139 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-speech", - "version": "7.3.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.speech.v2", - "version": "v2" - } - ] - }, - "snippets": [ - { - "regionTag": "speech_v2_generated_Speech_CreateRecognizer_async", - "title": "Speech createRecognizer Sample", - "origin": "API_DEFINITION", - "description": " Creates a [Recognizer][google.cloud.speech.v2.Recognizer].", - "canonical": true, - "file": "speech.create_recognizer.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateRecognizer", - "fullName": "google.cloud.speech.v2.Speech.CreateRecognizer", - "async": true, - "parameters": [ - { - "name": "recognizer", - "type": ".google.cloud.speech.v2.Recognizer" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "recognizer_id", - "type": "TYPE_STRING" - }, - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "CreateRecognizer", - "fullName": "google.cloud.speech.v2.Speech.CreateRecognizer", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_ListRecognizers_async", - "title": "Speech listRecognizers Sample", - "origin": "API_DEFINITION", - "description": " Lists Recognizers.", - "canonical": true, - "file": "speech.list_recognizers.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRecognizers", - "fullName": "google.cloud.speech.v2.Speech.ListRecognizers", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "show_deleted", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.speech.v2.ListRecognizersResponse", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "ListRecognizers", - "fullName": "google.cloud.speech.v2.Speech.ListRecognizers", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_GetRecognizer_async", - "title": "Speech getRecognizer Sample", - "origin": "API_DEFINITION", - "description": " Returns the requested [Recognizer][google.cloud.speech.v2.Recognizer]. Fails with [NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested Recognizer doesn't exist.", - "canonical": true, - "file": "speech.get_recognizer.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRecognizer", - "fullName": "google.cloud.speech.v2.Speech.GetRecognizer", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.speech.v2.Recognizer", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "GetRecognizer", - "fullName": "google.cloud.speech.v2.Speech.GetRecognizer", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_UpdateRecognizer_async", - "title": "Speech updateRecognizer Sample", - "origin": "API_DEFINITION", - "description": " Updates the [Recognizer][google.cloud.speech.v2.Recognizer].", - "canonical": true, - "file": "speech.update_recognizer.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateRecognizer", - "fullName": "google.cloud.speech.v2.Speech.UpdateRecognizer", - "async": true, - "parameters": [ - { - "name": "recognizer", - "type": ".google.cloud.speech.v2.Recognizer" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "UpdateRecognizer", - "fullName": "google.cloud.speech.v2.Speech.UpdateRecognizer", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_DeleteRecognizer_async", - "title": "Speech deleteRecognizer Sample", - "origin": "API_DEFINITION", - "description": " Deletes the [Recognizer][google.cloud.speech.v2.Recognizer].", - "canonical": true, - "file": "speech.delete_recognizer.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteRecognizer", - "fullName": "google.cloud.speech.v2.Speech.DeleteRecognizer", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "DeleteRecognizer", - "fullName": "google.cloud.speech.v2.Speech.DeleteRecognizer", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_UndeleteRecognizer_async", - "title": "Speech undeleteRecognizer Sample", - "origin": "API_DEFINITION", - "description": " Undeletes the [Recognizer][google.cloud.speech.v2.Recognizer].", - "canonical": true, - "file": "speech.undelete_recognizer.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UndeleteRecognizer", - "fullName": "google.cloud.speech.v2.Speech.UndeleteRecognizer", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "UndeleteRecognizer", - "fullName": "google.cloud.speech.v2.Speech.UndeleteRecognizer", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_Recognize_async", - "title": "Speech recognize Sample", - "origin": "API_DEFINITION", - "description": " Performs synchronous Speech recognition: receive results after all audio has been sent and processed.", - "canonical": true, - "file": "speech.recognize.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 99, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Recognize", - "fullName": "google.cloud.speech.v2.Speech.Recognize", - "async": true, - "parameters": [ - { - "name": "recognizer", - "type": "TYPE_STRING" - }, - { - "name": "config", - "type": ".google.cloud.speech.v2.RecognitionConfig" - }, - { - "name": "config_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "content", - "type": "TYPE_BYTES" - }, - { - "name": "uri", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.speech.v2.RecognizeResponse", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "Recognize", - "fullName": "google.cloud.speech.v2.Speech.Recognize", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_StreamingRecognize_async", - "title": "Speech streamingRecognize Sample", - "origin": "API_DEFINITION", - "description": " Performs bidirectional streaming speech recognition: receive results while sending audio. This method is only available via the gRPC API (not REST).", - "canonical": true, - "file": "speech.streaming_recognize.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StreamingRecognize", - "fullName": "google.cloud.speech.v2.Speech.StreamingRecognize", - "async": true, - "parameters": [ - { - "name": "recognizer", - "type": "TYPE_STRING" - }, - { - "name": "streaming_config", - "type": ".google.cloud.speech.v2.StreamingRecognitionConfig" - }, - { - "name": "audio", - "type": "TYPE_BYTES" - } - ], - "resultType": ".google.cloud.speech.v2.StreamingRecognizeResponse", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "StreamingRecognize", - "fullName": "google.cloud.speech.v2.Speech.StreamingRecognize", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_BatchRecognize_async", - "title": "Speech batchRecognize Sample", - "origin": "API_DEFINITION", - "description": " Performs batch asynchronous speech recognition: send a request with N audio files and receive a long running operation that can be polled to see when the transcriptions are finished.", - "canonical": true, - "file": "speech.batch_recognize.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 95, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchRecognize", - "fullName": "google.cloud.speech.v2.Speech.BatchRecognize", - "async": true, - "parameters": [ - { - "name": "recognizer", - "type": "TYPE_STRING" - }, - { - "name": "config", - "type": ".google.cloud.speech.v2.RecognitionConfig" - }, - { - "name": "config_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "files", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "recognition_output_config", - "type": ".google.cloud.speech.v2.RecognitionOutputConfig" - }, - { - "name": "processing_strategy", - "type": ".google.cloud.speech.v2.BatchRecognizeRequest.ProcessingStrategy" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "BatchRecognize", - "fullName": "google.cloud.speech.v2.Speech.BatchRecognize", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_GetConfig_async", - "title": "Speech getConfig Sample", - "origin": "API_DEFINITION", - "description": " Returns the requested [Config][google.cloud.speech.v2.Config].", - "canonical": true, - "file": "speech.get_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetConfig", - "fullName": "google.cloud.speech.v2.Speech.GetConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.speech.v2.Config", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "GetConfig", - "fullName": "google.cloud.speech.v2.Speech.GetConfig", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_UpdateConfig_async", - "title": "Speech updateConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates the [Config][google.cloud.speech.v2.Config].", - "canonical": true, - "file": "speech.update_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateConfig", - "fullName": "google.cloud.speech.v2.Speech.UpdateConfig", - "async": true, - "parameters": [ - { - "name": "config", - "type": ".google.cloud.speech.v2.Config" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.speech.v2.Config", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "UpdateConfig", - "fullName": "google.cloud.speech.v2.Speech.UpdateConfig", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_CreateCustomClass_async", - "title": "Speech createCustomClass Sample", - "origin": "API_DEFINITION", - "description": " Creates a [CustomClass][google.cloud.speech.v2.CustomClass].", - "canonical": true, - "file": "speech.create_custom_class.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCustomClass", - "fullName": "google.cloud.speech.v2.Speech.CreateCustomClass", - "async": true, - "parameters": [ - { - "name": "custom_class", - "type": ".google.cloud.speech.v2.CustomClass" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "custom_class_id", - "type": "TYPE_STRING" - }, - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "CreateCustomClass", - "fullName": "google.cloud.speech.v2.Speech.CreateCustomClass", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_ListCustomClasses_async", - "title": "Speech listCustomClasses Sample", - "origin": "API_DEFINITION", - "description": " Lists CustomClasses.", - "canonical": true, - "file": "speech.list_custom_classes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCustomClasses", - "fullName": "google.cloud.speech.v2.Speech.ListCustomClasses", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "show_deleted", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.speech.v2.ListCustomClassesResponse", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "ListCustomClasses", - "fullName": "google.cloud.speech.v2.Speech.ListCustomClasses", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_GetCustomClass_async", - "title": "Speech getCustomClass Sample", - "origin": "API_DEFINITION", - "description": " Returns the requested [CustomClass][google.cloud.speech.v2.CustomClass].", - "canonical": true, - "file": "speech.get_custom_class.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCustomClass", - "fullName": "google.cloud.speech.v2.Speech.GetCustomClass", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.speech.v2.CustomClass", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "GetCustomClass", - "fullName": "google.cloud.speech.v2.Speech.GetCustomClass", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_UpdateCustomClass_async", - "title": "Speech updateCustomClass Sample", - "origin": "API_DEFINITION", - "description": " Updates the [CustomClass][google.cloud.speech.v2.CustomClass].", - "canonical": true, - "file": "speech.update_custom_class.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCustomClass", - "fullName": "google.cloud.speech.v2.Speech.UpdateCustomClass", - "async": true, - "parameters": [ - { - "name": "custom_class", - "type": ".google.cloud.speech.v2.CustomClass" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "UpdateCustomClass", - "fullName": "google.cloud.speech.v2.Speech.UpdateCustomClass", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_DeleteCustomClass_async", - "title": "Speech deleteCustomClass Sample", - "origin": "API_DEFINITION", - "description": " Deletes the [CustomClass][google.cloud.speech.v2.CustomClass].", - "canonical": true, - "file": "speech.delete_custom_class.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCustomClass", - "fullName": "google.cloud.speech.v2.Speech.DeleteCustomClass", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "DeleteCustomClass", - "fullName": "google.cloud.speech.v2.Speech.DeleteCustomClass", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_UndeleteCustomClass_async", - "title": "Speech undeleteCustomClass Sample", - "origin": "API_DEFINITION", - "description": " Undeletes the [CustomClass][google.cloud.speech.v2.CustomClass].", - "canonical": true, - "file": "speech.undelete_custom_class.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UndeleteCustomClass", - "fullName": "google.cloud.speech.v2.Speech.UndeleteCustomClass", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "UndeleteCustomClass", - "fullName": "google.cloud.speech.v2.Speech.UndeleteCustomClass", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_CreatePhraseSet_async", - "title": "Speech createPhraseSet Sample", - "origin": "API_DEFINITION", - "description": " Creates a [PhraseSet][google.cloud.speech.v2.PhraseSet].", - "canonical": true, - "file": "speech.create_phrase_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreatePhraseSet", - "fullName": "google.cloud.speech.v2.Speech.CreatePhraseSet", - "async": true, - "parameters": [ - { - "name": "phrase_set", - "type": ".google.cloud.speech.v2.PhraseSet" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "phrase_set_id", - "type": "TYPE_STRING" - }, - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "CreatePhraseSet", - "fullName": "google.cloud.speech.v2.Speech.CreatePhraseSet", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_ListPhraseSets_async", - "title": "Speech listPhraseSets Sample", - "origin": "API_DEFINITION", - "description": " Lists PhraseSets.", - "canonical": true, - "file": "speech.list_phrase_sets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPhraseSets", - "fullName": "google.cloud.speech.v2.Speech.ListPhraseSets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "show_deleted", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.speech.v2.ListPhraseSetsResponse", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "ListPhraseSets", - "fullName": "google.cloud.speech.v2.Speech.ListPhraseSets", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_GetPhraseSet_async", - "title": "Speech getPhraseSet Sample", - "origin": "API_DEFINITION", - "description": " Returns the requested [PhraseSet][google.cloud.speech.v2.PhraseSet].", - "canonical": true, - "file": "speech.get_phrase_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPhraseSet", - "fullName": "google.cloud.speech.v2.Speech.GetPhraseSet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.speech.v2.PhraseSet", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "GetPhraseSet", - "fullName": "google.cloud.speech.v2.Speech.GetPhraseSet", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_UpdatePhraseSet_async", - "title": "Speech updatePhraseSet Sample", - "origin": "API_DEFINITION", - "description": " Updates the [PhraseSet][google.cloud.speech.v2.PhraseSet].", - "canonical": true, - "file": "speech.update_phrase_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdatePhraseSet", - "fullName": "google.cloud.speech.v2.Speech.UpdatePhraseSet", - "async": true, - "parameters": [ - { - "name": "phrase_set", - "type": ".google.cloud.speech.v2.PhraseSet" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "UpdatePhraseSet", - "fullName": "google.cloud.speech.v2.Speech.UpdatePhraseSet", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_DeletePhraseSet_async", - "title": "Speech deletePhraseSet Sample", - "origin": "API_DEFINITION", - "description": " Deletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].", - "canonical": true, - "file": "speech.delete_phrase_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePhraseSet", - "fullName": "google.cloud.speech.v2.Speech.DeletePhraseSet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "DeletePhraseSet", - "fullName": "google.cloud.speech.v2.Speech.DeletePhraseSet", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - }, - { - "regionTag": "speech_v2_generated_Speech_UndeletePhraseSet_async", - "title": "Speech undeletePhraseSet Sample", - "origin": "API_DEFINITION", - "description": " Undeletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].", - "canonical": true, - "file": "speech.undelete_phrase_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UndeletePhraseSet", - "fullName": "google.cloud.speech.v2.Speech.UndeletePhraseSet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "SpeechClient", - "fullName": "google.cloud.speech.v2.SpeechClient" - }, - "method": { - "shortName": "UndeletePhraseSet", - "fullName": "google.cloud.speech.v2.Speech.UndeletePhraseSet", - "service": { - "shortName": "Speech", - "fullName": "google.cloud.speech.v2.Speech" - } - } - } - } - ] -} diff --git a/packages/google-cloud-sql/samples/generated/v1/snippet_metadata_google.cloud.sql.v1.json b/packages/google-cloud-sql/samples/generated/v1/snippet_metadata_google.cloud.sql.v1.json deleted file mode 100644 index eebb8ef8de18..000000000000 --- a/packages/google-cloud-sql/samples/generated/v1/snippet_metadata_google.cloud.sql.v1.json +++ /dev/null @@ -1,3567 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-sql", - "version": "0.24.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.sql.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "sqladmin_v1_generated_SqlBackupRunsService_Delete_async", - "title": "SqlAvailableDatabaseVersionsService delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the backup taken by a backup run.", - "canonical": true, - "file": "sql_backup_runs_service.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.sql.v1.SqlBackupRunsService.Delete", - "async": true, - "parameters": [ - { - "name": "id", - "type": "TYPE_INT64" - }, - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1.Operation", - "client": { - "shortName": "SqlBackupRunsServiceClient", - "fullName": "google.cloud.sql.v1.SqlBackupRunsServiceClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.sql.v1.SqlBackupRunsService.Delete", - "service": { - "shortName": "SqlBackupRunsService", - "fullName": "google.cloud.sql.v1.SqlBackupRunsService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlBackupRunsService_Get_async", - "title": "SqlAvailableDatabaseVersionsService get Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a resource containing information about a backup run.", - "canonical": true, - "file": "sql_backup_runs_service.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.sql.v1.SqlBackupRunsService.Get", - "async": true, - "parameters": [ - { - "name": "id", - "type": "TYPE_INT64" - }, - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1.BackupRun", - "client": { - "shortName": "SqlBackupRunsServiceClient", - "fullName": "google.cloud.sql.v1.SqlBackupRunsServiceClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.sql.v1.SqlBackupRunsService.Get", - "service": { - "shortName": "SqlBackupRunsService", - "fullName": "google.cloud.sql.v1.SqlBackupRunsService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlBackupRunsService_Insert_async", - "title": "SqlAvailableDatabaseVersionsService insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a new backup run on demand.", - "canonical": true, - "file": "sql_backup_runs_service.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.sql.v1.SqlBackupRunsService.Insert", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "body", - "type": ".google.cloud.sql.v1.BackupRun" - } - ], - "resultType": ".google.cloud.sql.v1.Operation", - "client": { - "shortName": "SqlBackupRunsServiceClient", - "fullName": "google.cloud.sql.v1.SqlBackupRunsServiceClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.sql.v1.SqlBackupRunsService.Insert", - "service": { - "shortName": "SqlBackupRunsService", - "fullName": "google.cloud.sql.v1.SqlBackupRunsService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlBackupRunsService_List_async", - "title": "SqlAvailableDatabaseVersionsService list Sample", - "origin": "API_DEFINITION", - "description": " Lists all backup runs associated with the project or a given instance and configuration in the reverse chronological order of the backup initiation time.", - "canonical": true, - "file": "sql_backup_runs_service.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.sql.v1.SqlBackupRunsService.List", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1.BackupRunsListResponse", - "client": { - "shortName": "SqlBackupRunsServiceClient", - "fullName": "google.cloud.sql.v1.SqlBackupRunsServiceClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.sql.v1.SqlBackupRunsService.List", - "service": { - "shortName": "SqlBackupRunsService", - "fullName": "google.cloud.sql.v1.SqlBackupRunsService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlBackupsService_CreateBackup_async", - "title": "SqlAvailableDatabaseVersionsService createBackup Sample", - "origin": "API_DEFINITION", - "description": " Creates a backup for a Cloud SQL instance. This API can be used only to create on-demand backups.", - "canonical": true, - "file": "sql_backups_service.create_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateBackup", - "fullName": "google.cloud.sql.v1.SqlBackupsService.CreateBackup", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "backup", - "type": ".google.cloud.sql.v1.Backup" - } - ], - "resultType": ".google.cloud.sql.v1.Operation", - "client": { - "shortName": "SqlBackupsServiceClient", - "fullName": "google.cloud.sql.v1.SqlBackupsServiceClient" - }, - "method": { - "shortName": "CreateBackup", - "fullName": "google.cloud.sql.v1.SqlBackupsService.CreateBackup", - "service": { - "shortName": "SqlBackupsService", - "fullName": "google.cloud.sql.v1.SqlBackupsService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlBackupsService_GetBackup_async", - "title": "SqlAvailableDatabaseVersionsService getBackup Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a resource containing information about a backup.", - "canonical": true, - "file": "sql_backups_service.get_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBackup", - "fullName": "google.cloud.sql.v1.SqlBackupsService.GetBackup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1.Backup", - "client": { - "shortName": "SqlBackupsServiceClient", - "fullName": "google.cloud.sql.v1.SqlBackupsServiceClient" - }, - "method": { - "shortName": "GetBackup", - "fullName": "google.cloud.sql.v1.SqlBackupsService.GetBackup", - "service": { - "shortName": "SqlBackupsService", - "fullName": "google.cloud.sql.v1.SqlBackupsService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlBackupsService_ListBackups_async", - "title": "SqlAvailableDatabaseVersionsService listBackups Sample", - "origin": "API_DEFINITION", - "description": " Lists all backups associated with the project.", - "canonical": true, - "file": "sql_backups_service.list_backups.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBackups", - "fullName": "google.cloud.sql.v1.SqlBackupsService.ListBackups", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1.ListBackupsResponse", - "client": { - "shortName": "SqlBackupsServiceClient", - "fullName": "google.cloud.sql.v1.SqlBackupsServiceClient" - }, - "method": { - "shortName": "ListBackups", - "fullName": "google.cloud.sql.v1.SqlBackupsService.ListBackups", - "service": { - "shortName": "SqlBackupsService", - "fullName": "google.cloud.sql.v1.SqlBackupsService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlBackupsService_UpdateBackup_async", - "title": "SqlAvailableDatabaseVersionsService updateBackup Sample", - "origin": "API_DEFINITION", - "description": " Updates the retention period and description of the backup. You can use this API to update final backups only.", - "canonical": true, - "file": "sql_backups_service.update_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateBackup", - "fullName": "google.cloud.sql.v1.SqlBackupsService.UpdateBackup", - "async": true, - "parameters": [ - { - "name": "backup", - "type": ".google.cloud.sql.v1.Backup" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.sql.v1.Operation", - "client": { - "shortName": "SqlBackupsServiceClient", - "fullName": "google.cloud.sql.v1.SqlBackupsServiceClient" - }, - "method": { - "shortName": "UpdateBackup", - "fullName": "google.cloud.sql.v1.SqlBackupsService.UpdateBackup", - "service": { - "shortName": "SqlBackupsService", - "fullName": "google.cloud.sql.v1.SqlBackupsService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlBackupsService_DeleteBackup_async", - "title": "SqlAvailableDatabaseVersionsService deleteBackup Sample", - "origin": "API_DEFINITION", - "description": " Deletes the backup.", - "canonical": true, - "file": "sql_backups_service.delete_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteBackup", - "fullName": "google.cloud.sql.v1.SqlBackupsService.DeleteBackup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1.Operation", - "client": { - "shortName": "SqlBackupsServiceClient", - "fullName": "google.cloud.sql.v1.SqlBackupsServiceClient" - }, - "method": { - "shortName": "DeleteBackup", - "fullName": "google.cloud.sql.v1.SqlBackupsService.DeleteBackup", - "service": { - "shortName": "SqlBackupsService", - "fullName": "google.cloud.sql.v1.SqlBackupsService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlConnectService_GetConnectSettings_async", - "title": "SqlAvailableDatabaseVersionsService getConnectSettings Sample", - "origin": "API_DEFINITION", - "description": " Retrieves connect settings about a Cloud SQL instance.", - "canonical": true, - "file": "sql_connect_service.get_connect_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetConnectSettings", - "fullName": "google.cloud.sql.v1.SqlConnectService.GetConnectSettings", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "read_time", - "type": ".google.protobuf.Timestamp" - } - ], - "resultType": ".google.cloud.sql.v1.ConnectSettings", - "client": { - "shortName": "SqlConnectServiceClient", - "fullName": "google.cloud.sql.v1.SqlConnectServiceClient" - }, - "method": { - "shortName": "GetConnectSettings", - "fullName": "google.cloud.sql.v1.SqlConnectService.GetConnectSettings", - "service": { - "shortName": "SqlConnectService", - "fullName": "google.cloud.sql.v1.SqlConnectService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlConnectService_GenerateEphemeralCert_async", - "title": "SqlAvailableDatabaseVersionsService generateEphemeralCert Sample", - "origin": "API_DEFINITION", - "description": " Generates a short-lived X509 certificate containing the provided public key and signed by a private key specific to the target instance. Users may use the certificate to authenticate as themselves when connecting to the database.", - "canonical": true, - "file": "sql_connect_service.generate_ephemeral_cert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateEphemeralCert", - "fullName": "google.cloud.sql.v1.SqlConnectService.GenerateEphemeralCert", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "public_key", - "type": "TYPE_STRING" - }, - { - "name": "access_token", - "type": "TYPE_STRING" - }, - { - "name": "read_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "valid_duration", - "type": ".google.protobuf.Duration" - } - ], - "resultType": ".google.cloud.sql.v1.GenerateEphemeralCertResponse", - "client": { - "shortName": "SqlConnectServiceClient", - "fullName": "google.cloud.sql.v1.SqlConnectServiceClient" - }, - "method": { - "shortName": "GenerateEphemeralCert", - "fullName": "google.cloud.sql.v1.SqlConnectService.GenerateEphemeralCert", - "service": { - "shortName": "SqlConnectService", - "fullName": "google.cloud.sql.v1.SqlConnectService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlDatabasesService_Delete_async", - "title": "SqlAvailableDatabaseVersionsService delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes a database from a Cloud SQL instance.", - "canonical": true, - "file": "sql_databases_service.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.sql.v1.SqlDatabasesService.Delete", - "async": true, - "parameters": [ - { - "name": "database", - "type": "TYPE_STRING" - }, - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1.Operation", - "client": { - "shortName": "SqlDatabasesServiceClient", - "fullName": "google.cloud.sql.v1.SqlDatabasesServiceClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.sql.v1.SqlDatabasesService.Delete", - "service": { - "shortName": "SqlDatabasesService", - "fullName": "google.cloud.sql.v1.SqlDatabasesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlDatabasesService_Get_async", - "title": "SqlAvailableDatabaseVersionsService get Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a resource containing information about a database inside a Cloud SQL instance.", - "canonical": true, - "file": "sql_databases_service.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.sql.v1.SqlDatabasesService.Get", - "async": true, - "parameters": [ - { - "name": "database", - "type": "TYPE_STRING" - }, - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1.Database", - "client": { - "shortName": "SqlDatabasesServiceClient", - "fullName": "google.cloud.sql.v1.SqlDatabasesServiceClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.sql.v1.SqlDatabasesService.Get", - "service": { - "shortName": "SqlDatabasesService", - "fullName": "google.cloud.sql.v1.SqlDatabasesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlDatabasesService_Insert_async", - "title": "SqlAvailableDatabaseVersionsService insert Sample", - "origin": "API_DEFINITION", - "description": " Inserts a resource containing information about a database inside a Cloud SQL instance. **Note:** You can't modify the default character set and collation.", - "canonical": true, - "file": "sql_databases_service.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.sql.v1.SqlDatabasesService.Insert", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "body", - "type": ".google.cloud.sql.v1.Database" - } - ], - "resultType": ".google.cloud.sql.v1.Operation", - "client": { - "shortName": "SqlDatabasesServiceClient", - "fullName": "google.cloud.sql.v1.SqlDatabasesServiceClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.sql.v1.SqlDatabasesService.Insert", - "service": { - "shortName": "SqlDatabasesService", - "fullName": "google.cloud.sql.v1.SqlDatabasesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlDatabasesService_List_async", - "title": "SqlAvailableDatabaseVersionsService list Sample", - "origin": "API_DEFINITION", - "description": " Lists databases in the specified Cloud SQL instance.", - "canonical": true, - "file": "sql_databases_service.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.sql.v1.SqlDatabasesService.List", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1.DatabasesListResponse", - "client": { - "shortName": "SqlDatabasesServiceClient", - "fullName": "google.cloud.sql.v1.SqlDatabasesServiceClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.sql.v1.SqlDatabasesService.List", - "service": { - "shortName": "SqlDatabasesService", - "fullName": "google.cloud.sql.v1.SqlDatabasesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlDatabasesService_Patch_async", - "title": "SqlAvailableDatabaseVersionsService patch Sample", - "origin": "API_DEFINITION", - "description": " Partially updates a resource containing information about a database inside a Cloud SQL instance. This method supports patch semantics.", - "canonical": true, - "file": "sql_databases_service.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.sql.v1.SqlDatabasesService.Patch", - "async": true, - "parameters": [ - { - "name": "database", - "type": "TYPE_STRING" - }, - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "body", - "type": ".google.cloud.sql.v1.Database" - } - ], - "resultType": ".google.cloud.sql.v1.Operation", - "client": { - "shortName": "SqlDatabasesServiceClient", - "fullName": "google.cloud.sql.v1.SqlDatabasesServiceClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.sql.v1.SqlDatabasesService.Patch", - "service": { - "shortName": "SqlDatabasesService", - "fullName": "google.cloud.sql.v1.SqlDatabasesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlDatabasesService_Update_async", - "title": "SqlAvailableDatabaseVersionsService update Sample", - "origin": "API_DEFINITION", - "description": " Updates a resource containing information about a database inside a Cloud SQL instance.", - "canonical": true, - "file": "sql_databases_service.update.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Update", - "fullName": "google.cloud.sql.v1.SqlDatabasesService.Update", - "async": true, - "parameters": [ - { - "name": "database", - "type": "TYPE_STRING" - }, - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "body", - "type": ".google.cloud.sql.v1.Database" - } - ], - "resultType": ".google.cloud.sql.v1.Operation", - "client": { - "shortName": "SqlDatabasesServiceClient", - "fullName": "google.cloud.sql.v1.SqlDatabasesServiceClient" - }, - "method": { - "shortName": "Update", - "fullName": "google.cloud.sql.v1.SqlDatabasesService.Update", - "service": { - "shortName": "SqlDatabasesService", - "fullName": "google.cloud.sql.v1.SqlDatabasesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlFlagsService_List_async", - "title": "SqlAvailableDatabaseVersionsService list Sample", - "origin": "API_DEFINITION", - "description": " Lists all available database flags for Cloud SQL instances.", - "canonical": true, - "file": "sql_flags_service.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.sql.v1.SqlFlagsService.List", - "async": true, - "parameters": [ - { - "name": "database_version", - "type": "TYPE_STRING" - }, - { - "name": "flag_scope", - "type": ".google.cloud.sql.v1.SqlFlagScope" - } - ], - "resultType": ".google.cloud.sql.v1.FlagsListResponse", - "client": { - "shortName": "SqlFlagsServiceClient", - "fullName": "google.cloud.sql.v1.SqlFlagsServiceClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.sql.v1.SqlFlagsService.List", - "service": { - "shortName": "SqlFlagsService", - "fullName": "google.cloud.sql.v1.SqlFlagsService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlInstancesService_AddServerCa_async", - "title": "SqlAvailableDatabaseVersionsService addServerCa Sample", - "origin": "API_DEFINITION", - "description": " Adds a new trusted Certificate Authority (CA) version for the specified instance. Required to prepare for a certificate rotation. If a CA version was previously added but never used in a certificate rotation, this operation replaces that version. There cannot be more than one CA version waiting to be rotated in. For instances that have enabled Certificate Authority Service (CAS) based server CA, use AddServerCertificate to add a new server certificate.", - "canonical": true, - "file": "sql_instances_service.add_server_ca.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddServerCa", - "fullName": "google.cloud.sql.v1.SqlInstancesService.AddServerCa", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1.SqlInstancesServiceClient" - }, - "method": { - "shortName": "AddServerCa", - "fullName": "google.cloud.sql.v1.SqlInstancesService.AddServerCa", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlInstancesService_AddServerCertificate_async", - "title": "SqlAvailableDatabaseVersionsService addServerCertificate Sample", - "origin": "API_DEFINITION", - "description": " Add a new trusted server certificate version for the specified instance using Certificate Authority Service (CAS) server CA. Required to prepare for a certificate rotation. If a server certificate version was previously added but never used in a certificate rotation, this operation replaces that version. There cannot be more than one certificate version waiting to be rotated in. For instances not using CAS server CA, use AddServerCa instead.", - "canonical": true, - "file": "sql_instances_service.add_server_certificate.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddServerCertificate", - "fullName": "google.cloud.sql.v1.SqlInstancesService.AddServerCertificate", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1.SqlInstancesServiceClient" - }, - "method": { - "shortName": "AddServerCertificate", - "fullName": "google.cloud.sql.v1.SqlInstancesService.AddServerCertificate", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlInstancesService_AddEntraIdCertificate_async", - "title": "SqlAvailableDatabaseVersionsService addEntraIdCertificate Sample", - "origin": "API_DEFINITION", - "description": " Adds a new Entra ID certificate for the specified instance. If an Entra ID certificate was previously added but never used in a certificate rotation, this operation replaces that version.", - "canonical": true, - "file": "sql_instances_service.add_entra_id_certificate.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddEntraIdCertificate", - "fullName": "google.cloud.sql.v1.SqlInstancesService.AddEntraIdCertificate", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1.SqlInstancesServiceClient" - }, - "method": { - "shortName": "AddEntraIdCertificate", - "fullName": "google.cloud.sql.v1.SqlInstancesService.AddEntraIdCertificate", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlInstancesService_Clone_async", - "title": "SqlAvailableDatabaseVersionsService clone Sample", - "origin": "API_DEFINITION", - "description": " Creates a Cloud SQL instance as a clone of the source instance. Using this operation might cause your instance to restart.", - "canonical": true, - "file": "sql_instances_service.clone.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Clone", - "fullName": "google.cloud.sql.v1.SqlInstancesService.Clone", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "body", - "type": ".google.cloud.sql.v1.InstancesCloneRequest" - } - ], - "resultType": ".google.cloud.sql.v1.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1.SqlInstancesServiceClient" - }, - "method": { - "shortName": "Clone", - "fullName": "google.cloud.sql.v1.SqlInstancesService.Clone", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlInstancesService_Delete_async", - "title": "SqlAvailableDatabaseVersionsService delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Cloud SQL instance.", - "canonical": true, - "file": "sql_instances_service.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.sql.v1.SqlInstancesService.Delete", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "enable_final_backup", - "type": "TYPE_BOOL" - }, - { - "name": "final_backup_ttl_days", - "type": "TYPE_INT64" - }, - { - "name": "final_backup_expiry_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "final_backup_description", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1.SqlInstancesServiceClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.sql.v1.SqlInstancesService.Delete", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlInstancesService_DemoteMaster_async", - "title": "SqlAvailableDatabaseVersionsService demoteMaster Sample", - "origin": "API_DEFINITION", - "description": " Demotes the stand-alone instance to be a Cloud SQL read replica for an external database server.", - "canonical": true, - "file": "sql_instances_service.demote_master.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DemoteMaster", - "fullName": "google.cloud.sql.v1.SqlInstancesService.DemoteMaster", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "body", - "type": ".google.cloud.sql.v1.InstancesDemoteMasterRequest" - } - ], - "resultType": ".google.cloud.sql.v1.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1.SqlInstancesServiceClient" - }, - "method": { - "shortName": "DemoteMaster", - "fullName": "google.cloud.sql.v1.SqlInstancesService.DemoteMaster", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlInstancesService_Demote_async", - "title": "SqlAvailableDatabaseVersionsService demote Sample", - "origin": "API_DEFINITION", - "description": " Demotes an existing standalone instance to be a Cloud SQL read replica for an external database server.", - "canonical": true, - "file": "sql_instances_service.demote.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Demote", - "fullName": "google.cloud.sql.v1.SqlInstancesService.Demote", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "body", - "type": ".google.cloud.sql.v1.InstancesDemoteRequest" - } - ], - "resultType": ".google.cloud.sql.v1.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1.SqlInstancesServiceClient" - }, - "method": { - "shortName": "Demote", - "fullName": "google.cloud.sql.v1.SqlInstancesService.Demote", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlInstancesService_Export_async", - "title": "SqlAvailableDatabaseVersionsService export Sample", - "origin": "API_DEFINITION", - "description": " Exports data from a Cloud SQL instance to a Cloud Storage bucket as a SQL dump or CSV file.", - "canonical": true, - "file": "sql_instances_service.export.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Export", - "fullName": "google.cloud.sql.v1.SqlInstancesService.Export", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "body", - "type": ".google.cloud.sql.v1.InstancesExportRequest" - } - ], - "resultType": ".google.cloud.sql.v1.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1.SqlInstancesServiceClient" - }, - "method": { - "shortName": "Export", - "fullName": "google.cloud.sql.v1.SqlInstancesService.Export", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlInstancesService_Failover_async", - "title": "SqlAvailableDatabaseVersionsService failover Sample", - "origin": "API_DEFINITION", - "description": " Initiates a manual failover of a high availability (HA) primary instance to a standby instance, which becomes the primary instance. Users are then rerouted to the new primary. For more information, see the [Overview of high availability](https://cloud.google.com/sql/docs/mysql/high-availability) page in the Cloud SQL documentation. If using Legacy HA (MySQL only), this causes the instance to failover to its failover replica instance.", - "canonical": true, - "file": "sql_instances_service.failover.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Failover", - "fullName": "google.cloud.sql.v1.SqlInstancesService.Failover", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "body", - "type": ".google.cloud.sql.v1.InstancesFailoverRequest" - } - ], - "resultType": ".google.cloud.sql.v1.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1.SqlInstancesServiceClient" - }, - "method": { - "shortName": "Failover", - "fullName": "google.cloud.sql.v1.SqlInstancesService.Failover", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlInstancesService_Reencrypt_async", - "title": "SqlAvailableDatabaseVersionsService reencrypt Sample", - "origin": "API_DEFINITION", - "description": " Reencrypt CMEK instance with latest key version.", - "canonical": true, - "file": "sql_instances_service.reencrypt.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Reencrypt", - "fullName": "google.cloud.sql.v1.SqlInstancesService.Reencrypt", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "body", - "type": ".google.cloud.sql.v1.InstancesReencryptRequest" - } - ], - "resultType": ".google.cloud.sql.v1.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1.SqlInstancesServiceClient" - }, - "method": { - "shortName": "Reencrypt", - "fullName": "google.cloud.sql.v1.SqlInstancesService.Reencrypt", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlInstancesService_Get_async", - "title": "SqlAvailableDatabaseVersionsService get Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a resource containing information about a Cloud SQL instance.", - "canonical": true, - "file": "sql_instances_service.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.sql.v1.SqlInstancesService.Get", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1.DatabaseInstance", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1.SqlInstancesServiceClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.sql.v1.SqlInstancesService.Get", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlInstancesService_Import_async", - "title": "SqlAvailableDatabaseVersionsService import Sample", - "origin": "API_DEFINITION", - "description": " Imports data into a Cloud SQL instance from a SQL dump or CSV file in Cloud Storage.", - "canonical": true, - "file": "sql_instances_service.import.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Import", - "fullName": "google.cloud.sql.v1.SqlInstancesService.Import", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "body", - "type": ".google.cloud.sql.v1.InstancesImportRequest" - } - ], - "resultType": ".google.cloud.sql.v1.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1.SqlInstancesServiceClient" - }, - "method": { - "shortName": "Import", - "fullName": "google.cloud.sql.v1.SqlInstancesService.Import", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlInstancesService_Insert_async", - "title": "SqlAvailableDatabaseVersionsService insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Cloud SQL instance.", - "canonical": true, - "file": "sql_instances_service.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.sql.v1.SqlInstancesService.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "body", - "type": ".google.cloud.sql.v1.DatabaseInstance" - } - ], - "resultType": ".google.cloud.sql.v1.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1.SqlInstancesServiceClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.sql.v1.SqlInstancesService.Insert", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlInstancesService_List_async", - "title": "SqlAvailableDatabaseVersionsService list Sample", - "origin": "API_DEFINITION", - "description": " Lists instances under a given project.", - "canonical": true, - "file": "sql_instances_service.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.sql.v1.SqlInstancesService.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1.InstancesListResponse", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1.SqlInstancesServiceClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.sql.v1.SqlInstancesService.List", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlInstancesService_ListServerCas_async", - "title": "SqlAvailableDatabaseVersionsService listServerCas Sample", - "origin": "API_DEFINITION", - "description": " Lists all of the trusted Certificate Authorities (CAs) for the specified instance. There can be up to three CAs listed: the CA that was used to sign the certificate that is currently in use, a CA that has been added but not yet used to sign a certificate, and a CA used to sign a certificate that has previously rotated out.", - "canonical": true, - "file": "sql_instances_service.list_server_cas.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListServerCas", - "fullName": "google.cloud.sql.v1.SqlInstancesService.ListServerCas", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1.InstancesListServerCasResponse", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1.SqlInstancesServiceClient" - }, - "method": { - "shortName": "ListServerCas", - "fullName": "google.cloud.sql.v1.SqlInstancesService.ListServerCas", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlInstancesService_ListServerCertificates_async", - "title": "SqlAvailableDatabaseVersionsService listServerCertificates Sample", - "origin": "API_DEFINITION", - "description": " Lists all versions of server certificates and certificate authorities (CAs) for the specified instance. There can be up to three sets of certs listed: the certificate that is currently in use, a future that has been added but not yet used to sign a certificate, and a certificate that has been rotated out. For instances not using Certificate Authority Service (CAS) server CA, use ListServerCas instead.", - "canonical": true, - "file": "sql_instances_service.list_server_certificates.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListServerCertificates", - "fullName": "google.cloud.sql.v1.SqlInstancesService.ListServerCertificates", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1.InstancesListServerCertificatesResponse", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1.SqlInstancesServiceClient" - }, - "method": { - "shortName": "ListServerCertificates", - "fullName": "google.cloud.sql.v1.SqlInstancesService.ListServerCertificates", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlInstancesService_ListEntraIdCertificates_async", - "title": "SqlAvailableDatabaseVersionsService listEntraIdCertificates Sample", - "origin": "API_DEFINITION", - "description": " Lists all versions of EntraID certificates for the specified instance. There can be up to three sets of certificates listed: the certificate that is currently in use, a future that has been added but not yet used to sign a certificate, and a certificate that has been rotated out.", - "canonical": true, - "file": "sql_instances_service.list_entra_id_certificates.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEntraIdCertificates", - "fullName": "google.cloud.sql.v1.SqlInstancesService.ListEntraIdCertificates", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1.InstancesListEntraIdCertificatesResponse", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1.SqlInstancesServiceClient" - }, - "method": { - "shortName": "ListEntraIdCertificates", - "fullName": "google.cloud.sql.v1.SqlInstancesService.ListEntraIdCertificates", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlInstancesService_Patch_async", - "title": "SqlAvailableDatabaseVersionsService patch Sample", - "origin": "API_DEFINITION", - "description": " Partially updates settings of a Cloud SQL instance by merging the request with the current configuration. This method supports patch semantics.", - "canonical": true, - "file": "sql_instances_service.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.sql.v1.SqlInstancesService.Patch", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "body", - "type": ".google.cloud.sql.v1.DatabaseInstance" - } - ], - "resultType": ".google.cloud.sql.v1.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1.SqlInstancesServiceClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.sql.v1.SqlInstancesService.Patch", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlInstancesService_PromoteReplica_async", - "title": "SqlAvailableDatabaseVersionsService promoteReplica Sample", - "origin": "API_DEFINITION", - "description": " Promotes the read replica instance to be an independent Cloud SQL primary instance. Using this operation might cause your instance to restart.", - "canonical": true, - "file": "sql_instances_service.promote_replica.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PromoteReplica", - "fullName": "google.cloud.sql.v1.SqlInstancesService.PromoteReplica", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "failover", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.sql.v1.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1.SqlInstancesServiceClient" - }, - "method": { - "shortName": "PromoteReplica", - "fullName": "google.cloud.sql.v1.SqlInstancesService.PromoteReplica", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlInstancesService_Switchover_async", - "title": "SqlAvailableDatabaseVersionsService switchover Sample", - "origin": "API_DEFINITION", - "description": " Switches over from the primary instance to the DR replica instance.", - "canonical": true, - "file": "sql_instances_service.switchover.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Switchover", - "fullName": "google.cloud.sql.v1.SqlInstancesService.Switchover", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "db_timeout", - "type": ".google.protobuf.Duration" - } - ], - "resultType": ".google.cloud.sql.v1.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1.SqlInstancesServiceClient" - }, - "method": { - "shortName": "Switchover", - "fullName": "google.cloud.sql.v1.SqlInstancesService.Switchover", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlInstancesService_ResetSslConfig_async", - "title": "SqlAvailableDatabaseVersionsService resetSslConfig Sample", - "origin": "API_DEFINITION", - "description": " Deletes all client certificates and generates a new server SSL certificate for the instance.", - "canonical": true, - "file": "sql_instances_service.reset_ssl_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResetSslConfig", - "fullName": "google.cloud.sql.v1.SqlInstancesService.ResetSslConfig", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "mode", - "type": ".google.cloud.sql.v1.SqlInstancesResetSslConfigRequest.ResetSslMode" - } - ], - "resultType": ".google.cloud.sql.v1.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1.SqlInstancesServiceClient" - }, - "method": { - "shortName": "ResetSslConfig", - "fullName": "google.cloud.sql.v1.SqlInstancesService.ResetSslConfig", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlInstancesService_Restart_async", - "title": "SqlAvailableDatabaseVersionsService restart Sample", - "origin": "API_DEFINITION", - "description": " Restarts a Cloud SQL instance.", - "canonical": true, - "file": "sql_instances_service.restart.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Restart", - "fullName": "google.cloud.sql.v1.SqlInstancesService.Restart", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1.SqlInstancesServiceClient" - }, - "method": { - "shortName": "Restart", - "fullName": "google.cloud.sql.v1.SqlInstancesService.Restart", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlInstancesService_RestoreBackup_async", - "title": "SqlAvailableDatabaseVersionsService restoreBackup Sample", - "origin": "API_DEFINITION", - "description": " Restores a backup of a Cloud SQL instance. Using this operation might cause your instance to restart.", - "canonical": true, - "file": "sql_instances_service.restore_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RestoreBackup", - "fullName": "google.cloud.sql.v1.SqlInstancesService.RestoreBackup", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "body", - "type": ".google.cloud.sql.v1.InstancesRestoreBackupRequest" - } - ], - "resultType": ".google.cloud.sql.v1.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1.SqlInstancesServiceClient" - }, - "method": { - "shortName": "RestoreBackup", - "fullName": "google.cloud.sql.v1.SqlInstancesService.RestoreBackup", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlInstancesService_RotateServerCa_async", - "title": "SqlAvailableDatabaseVersionsService rotateServerCa Sample", - "origin": "API_DEFINITION", - "description": " Rotates the server certificate to one signed by the Certificate Authority (CA) version previously added with the addServerCA method. For instances that have enabled Certificate Authority Service (CAS) based server CA, use RotateServerCertificate to rotate the server certificate.", - "canonical": true, - "file": "sql_instances_service.rotate_server_ca.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RotateServerCa", - "fullName": "google.cloud.sql.v1.SqlInstancesService.RotateServerCa", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "body", - "type": ".google.cloud.sql.v1.InstancesRotateServerCaRequest" - } - ], - "resultType": ".google.cloud.sql.v1.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1.SqlInstancesServiceClient" - }, - "method": { - "shortName": "RotateServerCa", - "fullName": "google.cloud.sql.v1.SqlInstancesService.RotateServerCa", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlInstancesService_RotateServerCertificate_async", - "title": "SqlAvailableDatabaseVersionsService rotateServerCertificate Sample", - "origin": "API_DEFINITION", - "description": " Rotates the server certificate version to one previously added with the addServerCertificate method. For instances not using Certificate Authority Service (CAS) server CA, use RotateServerCa instead.", - "canonical": true, - "file": "sql_instances_service.rotate_server_certificate.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RotateServerCertificate", - "fullName": "google.cloud.sql.v1.SqlInstancesService.RotateServerCertificate", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "body", - "type": ".google.cloud.sql.v1.InstancesRotateServerCertificateRequest" - } - ], - "resultType": ".google.cloud.sql.v1.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1.SqlInstancesServiceClient" - }, - "method": { - "shortName": "RotateServerCertificate", - "fullName": "google.cloud.sql.v1.SqlInstancesService.RotateServerCertificate", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlInstancesService_RotateEntraIdCertificate_async", - "title": "SqlAvailableDatabaseVersionsService rotateEntraIdCertificate Sample", - "origin": "API_DEFINITION", - "description": " Rotates the server certificate version to one previously added with the addEntraIdCertificate method.", - "canonical": true, - "file": "sql_instances_service.rotate_entra_id_certificate.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RotateEntraIdCertificate", - "fullName": "google.cloud.sql.v1.SqlInstancesService.RotateEntraIdCertificate", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "body", - "type": ".google.cloud.sql.v1.InstancesRotateEntraIdCertificateRequest" - } - ], - "resultType": ".google.cloud.sql.v1.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1.SqlInstancesServiceClient" - }, - "method": { - "shortName": "RotateEntraIdCertificate", - "fullName": "google.cloud.sql.v1.SqlInstancesService.RotateEntraIdCertificate", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlInstancesService_StartReplica_async", - "title": "SqlAvailableDatabaseVersionsService startReplica Sample", - "origin": "API_DEFINITION", - "description": " Starts the replication in the read replica instance.", - "canonical": true, - "file": "sql_instances_service.start_replica.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StartReplica", - "fullName": "google.cloud.sql.v1.SqlInstancesService.StartReplica", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1.SqlInstancesServiceClient" - }, - "method": { - "shortName": "StartReplica", - "fullName": "google.cloud.sql.v1.SqlInstancesService.StartReplica", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlInstancesService_StopReplica_async", - "title": "SqlAvailableDatabaseVersionsService stopReplica Sample", - "origin": "API_DEFINITION", - "description": " Stops the replication in the read replica instance.", - "canonical": true, - "file": "sql_instances_service.stop_replica.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StopReplica", - "fullName": "google.cloud.sql.v1.SqlInstancesService.StopReplica", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1.SqlInstancesServiceClient" - }, - "method": { - "shortName": "StopReplica", - "fullName": "google.cloud.sql.v1.SqlInstancesService.StopReplica", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlInstancesService_TruncateLog_async", - "title": "SqlAvailableDatabaseVersionsService truncateLog Sample", - "origin": "API_DEFINITION", - "description": " Truncate MySQL general and slow query log tables MySQL only.", - "canonical": true, - "file": "sql_instances_service.truncate_log.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TruncateLog", - "fullName": "google.cloud.sql.v1.SqlInstancesService.TruncateLog", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "body", - "type": ".google.cloud.sql.v1.InstancesTruncateLogRequest" - } - ], - "resultType": ".google.cloud.sql.v1.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1.SqlInstancesServiceClient" - }, - "method": { - "shortName": "TruncateLog", - "fullName": "google.cloud.sql.v1.SqlInstancesService.TruncateLog", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlInstancesService_Update_async", - "title": "SqlAvailableDatabaseVersionsService update Sample", - "origin": "API_DEFINITION", - "description": " Updates settings of a Cloud SQL instance. Using this operation might cause your instance to restart.", - "canonical": true, - "file": "sql_instances_service.update.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Update", - "fullName": "google.cloud.sql.v1.SqlInstancesService.Update", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "body", - "type": ".google.cloud.sql.v1.DatabaseInstance" - } - ], - "resultType": ".google.cloud.sql.v1.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1.SqlInstancesServiceClient" - }, - "method": { - "shortName": "Update", - "fullName": "google.cloud.sql.v1.SqlInstancesService.Update", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlInstancesService_CreateEphemeral_async", - "title": "SqlAvailableDatabaseVersionsService createEphemeral Sample", - "origin": "API_DEFINITION", - "description": " Generates a short-lived X509 certificate containing the provided public key and signed by a private key specific to the target instance. Users may use the certificate to authenticate as themselves when connecting to the database.", - "canonical": true, - "file": "sql_instances_service.create_ephemeral.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateEphemeral", - "fullName": "google.cloud.sql.v1.SqlInstancesService.CreateEphemeral", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "body", - "type": ".google.cloud.sql.v1.SslCertsCreateEphemeralRequest" - } - ], - "resultType": ".google.cloud.sql.v1.SslCert", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1.SqlInstancesServiceClient" - }, - "method": { - "shortName": "CreateEphemeral", - "fullName": "google.cloud.sql.v1.SqlInstancesService.CreateEphemeral", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlInstancesService_RescheduleMaintenance_async", - "title": "SqlAvailableDatabaseVersionsService rescheduleMaintenance Sample", - "origin": "API_DEFINITION", - "description": " Reschedules the maintenance on the given instance.", - "canonical": true, - "file": "sql_instances_service.reschedule_maintenance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RescheduleMaintenance", - "fullName": "google.cloud.sql.v1.SqlInstancesService.RescheduleMaintenance", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "body", - "type": ".google.cloud.sql.v1.SqlInstancesRescheduleMaintenanceRequestBody" - } - ], - "resultType": ".google.cloud.sql.v1.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1.SqlInstancesServiceClient" - }, - "method": { - "shortName": "RescheduleMaintenance", - "fullName": "google.cloud.sql.v1.SqlInstancesService.RescheduleMaintenance", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlInstancesService_VerifyExternalSyncSettings_async", - "title": "SqlAvailableDatabaseVersionsService verifyExternalSyncSettings Sample", - "origin": "API_DEFINITION", - "description": " Verify External primary instance external sync settings.", - "canonical": true, - "file": "sql_instances_service.verify_external_sync_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 88, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "VerifyExternalSyncSettings", - "fullName": "google.cloud.sql.v1.SqlInstancesService.VerifyExternalSyncSettings", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "verify_connection_only", - "type": "TYPE_BOOL" - }, - { - "name": "sync_mode", - "type": ".google.cloud.sql.v1.SqlInstancesVerifyExternalSyncSettingsRequest.ExternalSyncMode" - }, - { - "name": "verify_replication_only", - "type": "TYPE_BOOL" - }, - { - "name": "mysql_sync_config", - "type": ".google.cloud.sql.v1.MySqlSyncConfig" - }, - { - "name": "migration_type", - "type": ".google.cloud.sql.v1.SqlInstancesVerifyExternalSyncSettingsRequest.MigrationType" - }, - { - "name": "sync_parallel_level", - "type": ".google.cloud.sql.v1.ExternalSyncParallelLevel" - }, - { - "name": "selected_objects", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.sql.v1.SqlInstancesVerifyExternalSyncSettingsResponse", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1.SqlInstancesServiceClient" - }, - "method": { - "shortName": "VerifyExternalSyncSettings", - "fullName": "google.cloud.sql.v1.SqlInstancesService.VerifyExternalSyncSettings", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlInstancesService_StartExternalSync_async", - "title": "SqlAvailableDatabaseVersionsService startExternalSync Sample", - "origin": "API_DEFINITION", - "description": " Start External primary instance migration.", - "canonical": true, - "file": "sql_instances_service.start_external_sync.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StartExternalSync", - "fullName": "google.cloud.sql.v1.SqlInstancesService.StartExternalSync", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "sync_mode", - "type": ".google.cloud.sql.v1.SqlInstancesVerifyExternalSyncSettingsRequest.ExternalSyncMode" - }, - { - "name": "skip_verification", - "type": "TYPE_BOOL" - }, - { - "name": "mysql_sync_config", - "type": ".google.cloud.sql.v1.MySqlSyncConfig" - }, - { - "name": "sync_parallel_level", - "type": ".google.cloud.sql.v1.ExternalSyncParallelLevel" - }, - { - "name": "migration_type", - "type": ".google.cloud.sql.v1.SqlInstancesVerifyExternalSyncSettingsRequest.MigrationType" - }, - { - "name": "replica_overwrite_enabled", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.sql.v1.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1.SqlInstancesServiceClient" - }, - "method": { - "shortName": "StartExternalSync", - "fullName": "google.cloud.sql.v1.SqlInstancesService.StartExternalSync", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlInstancesService_PerformDiskShrink_async", - "title": "SqlAvailableDatabaseVersionsService performDiskShrink Sample", - "origin": "API_DEFINITION", - "description": " Perform Disk Shrink on primary instance.", - "canonical": true, - "file": "sql_instances_service.perform_disk_shrink.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PerformDiskShrink", - "fullName": "google.cloud.sql.v1.SqlInstancesService.PerformDiskShrink", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "body", - "type": ".google.cloud.sql.v1.PerformDiskShrinkContext" - } - ], - "resultType": ".google.cloud.sql.v1.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1.SqlInstancesServiceClient" - }, - "method": { - "shortName": "PerformDiskShrink", - "fullName": "google.cloud.sql.v1.SqlInstancesService.PerformDiskShrink", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlInstancesService_GetDiskShrinkConfig_async", - "title": "SqlAvailableDatabaseVersionsService getDiskShrinkConfig Sample", - "origin": "API_DEFINITION", - "description": " Get Disk Shrink Config for a given instance.", - "canonical": true, - "file": "sql_instances_service.get_disk_shrink_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDiskShrinkConfig", - "fullName": "google.cloud.sql.v1.SqlInstancesService.GetDiskShrinkConfig", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1.SqlInstancesGetDiskShrinkConfigResponse", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1.SqlInstancesServiceClient" - }, - "method": { - "shortName": "GetDiskShrinkConfig", - "fullName": "google.cloud.sql.v1.SqlInstancesService.GetDiskShrinkConfig", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlInstancesService_ResetReplicaSize_async", - "title": "SqlAvailableDatabaseVersionsService resetReplicaSize Sample", - "origin": "API_DEFINITION", - "description": " Reset Replica Size to primary instance disk size.", - "canonical": true, - "file": "sql_instances_service.reset_replica_size.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResetReplicaSize", - "fullName": "google.cloud.sql.v1.SqlInstancesService.ResetReplicaSize", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1.SqlInstancesServiceClient" - }, - "method": { - "shortName": "ResetReplicaSize", - "fullName": "google.cloud.sql.v1.SqlInstancesService.ResetReplicaSize", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlInstancesService_GetLatestRecoveryTime_async", - "title": "SqlAvailableDatabaseVersionsService getLatestRecoveryTime Sample", - "origin": "API_DEFINITION", - "description": " Get Latest Recovery Time for a given instance.", - "canonical": true, - "file": "sql_instances_service.get_latest_recovery_time.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetLatestRecoveryTime", - "fullName": "google.cloud.sql.v1.SqlInstancesService.GetLatestRecoveryTime", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "source_instance_deletion_time", - "type": ".google.protobuf.Timestamp" - } - ], - "resultType": ".google.cloud.sql.v1.SqlInstancesGetLatestRecoveryTimeResponse", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1.SqlInstancesServiceClient" - }, - "method": { - "shortName": "GetLatestRecoveryTime", - "fullName": "google.cloud.sql.v1.SqlInstancesService.GetLatestRecoveryTime", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlInstancesService_ExecuteSql_async", - "title": "SqlAvailableDatabaseVersionsService executeSql Sample", - "origin": "API_DEFINITION", - "description": " Execute SQL statements.", - "canonical": true, - "file": "sql_instances_service.execute_sql.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExecuteSql", - "fullName": "google.cloud.sql.v1.SqlInstancesService.ExecuteSql", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "body", - "type": ".google.cloud.sql.v1.ExecuteSqlPayload" - } - ], - "resultType": ".google.cloud.sql.v1.SqlInstancesExecuteSqlResponse", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1.SqlInstancesServiceClient" - }, - "method": { - "shortName": "ExecuteSql", - "fullName": "google.cloud.sql.v1.SqlInstancesService.ExecuteSql", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlInstancesService_AcquireSsrsLease_async", - "title": "SqlAvailableDatabaseVersionsService acquireSsrsLease Sample", - "origin": "API_DEFINITION", - "description": " Acquire a lease for the setup of SQL Server Reporting Services (SSRS).", - "canonical": true, - "file": "sql_instances_service.acquire_ssrs_lease.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AcquireSsrsLease", - "fullName": "google.cloud.sql.v1.SqlInstancesService.AcquireSsrsLease", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "body", - "type": ".google.cloud.sql.v1.InstancesAcquireSsrsLeaseRequest" - } - ], - "resultType": ".google.cloud.sql.v1.SqlInstancesAcquireSsrsLeaseResponse", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1.SqlInstancesServiceClient" - }, - "method": { - "shortName": "AcquireSsrsLease", - "fullName": "google.cloud.sql.v1.SqlInstancesService.AcquireSsrsLease", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlInstancesService_ReleaseSsrsLease_async", - "title": "SqlAvailableDatabaseVersionsService releaseSsrsLease Sample", - "origin": "API_DEFINITION", - "description": " Release a lease for the setup of SQL Server Reporting Services (SSRS).", - "canonical": true, - "file": "sql_instances_service.release_ssrs_lease.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReleaseSsrsLease", - "fullName": "google.cloud.sql.v1.SqlInstancesService.ReleaseSsrsLease", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1.SqlInstancesReleaseSsrsLeaseResponse", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1.SqlInstancesServiceClient" - }, - "method": { - "shortName": "ReleaseSsrsLease", - "fullName": "google.cloud.sql.v1.SqlInstancesService.ReleaseSsrsLease", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlInstancesService_PreCheckMajorVersionUpgrade_async", - "title": "SqlAvailableDatabaseVersionsService preCheckMajorVersionUpgrade Sample", - "origin": "API_DEFINITION", - "description": " Execute MVU Pre-checks", - "canonical": true, - "file": "sql_instances_service.pre_check_major_version_upgrade.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PreCheckMajorVersionUpgrade", - "fullName": "google.cloud.sql.v1.SqlInstancesService.PreCheckMajorVersionUpgrade", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "body", - "type": ".google.cloud.sql.v1.InstancesPreCheckMajorVersionUpgradeRequest" - } - ], - "resultType": ".google.cloud.sql.v1.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1.SqlInstancesServiceClient" - }, - "method": { - "shortName": "PreCheckMajorVersionUpgrade", - "fullName": "google.cloud.sql.v1.SqlInstancesService.PreCheckMajorVersionUpgrade", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlInstancesService_PointInTimeRestore_async", - "title": "SqlAvailableDatabaseVersionsService pointInTimeRestore Sample", - "origin": "API_DEFINITION", - "description": " Point in time restore for an instance managed by Google Cloud Backup and Disaster Recovery.", - "canonical": true, - "file": "sql_instances_service.point_in_time_restore.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PointInTimeRestore", - "fullName": "google.cloud.sql.v1.SqlInstancesService.PointInTimeRestore", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "context", - "type": ".google.cloud.sql.v1.PointInTimeRestoreContext" - } - ], - "resultType": ".google.cloud.sql.v1.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1.SqlInstancesServiceClient" - }, - "method": { - "shortName": "PointInTimeRestore", - "fullName": "google.cloud.sql.v1.SqlInstancesService.PointInTimeRestore", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlOperationsService_Get_async", - "title": "SqlAvailableDatabaseVersionsService get Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an instance operation that has been performed on an instance.", - "canonical": true, - "file": "sql_operations_service.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.sql.v1.SqlOperationsService.Get", - "async": true, - "parameters": [ - { - "name": "operation", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1.Operation", - "client": { - "shortName": "SqlOperationsServiceClient", - "fullName": "google.cloud.sql.v1.SqlOperationsServiceClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.sql.v1.SqlOperationsService.Get", - "service": { - "shortName": "SqlOperationsService", - "fullName": "google.cloud.sql.v1.SqlOperationsService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlOperationsService_List_async", - "title": "SqlAvailableDatabaseVersionsService list Sample", - "origin": "API_DEFINITION", - "description": " Lists all instance operations that have been performed on the given Cloud SQL instance in the reverse chronological order of the start time.", - "canonical": true, - "file": "sql_operations_service.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.sql.v1.SqlOperationsService.List", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1.OperationsListResponse", - "client": { - "shortName": "SqlOperationsServiceClient", - "fullName": "google.cloud.sql.v1.SqlOperationsServiceClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.sql.v1.SqlOperationsService.List", - "service": { - "shortName": "SqlOperationsService", - "fullName": "google.cloud.sql.v1.SqlOperationsService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlOperationsService_Cancel_async", - "title": "SqlAvailableDatabaseVersionsService cancel Sample", - "origin": "API_DEFINITION", - "description": " Cancels an instance operation that has been performed on an instance.", - "canonical": true, - "file": "sql_operations_service.cancel.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Cancel", - "fullName": "google.cloud.sql.v1.SqlOperationsService.Cancel", - "async": true, - "parameters": [ - { - "name": "operation", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "SqlOperationsServiceClient", - "fullName": "google.cloud.sql.v1.SqlOperationsServiceClient" - }, - "method": { - "shortName": "Cancel", - "fullName": "google.cloud.sql.v1.SqlOperationsService.Cancel", - "service": { - "shortName": "SqlOperationsService", - "fullName": "google.cloud.sql.v1.SqlOperationsService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlSslCertsService_Delete_async", - "title": "SqlAvailableDatabaseVersionsService delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the SSL certificate. For First Generation instances, the certificate remains valid until the instance is restarted.", - "canonical": true, - "file": "sql_ssl_certs_service.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.sql.v1.SqlSslCertsService.Delete", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "sha1_fingerprint", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1.Operation", - "client": { - "shortName": "SqlSslCertsServiceClient", - "fullName": "google.cloud.sql.v1.SqlSslCertsServiceClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.sql.v1.SqlSslCertsService.Delete", - "service": { - "shortName": "SqlSslCertsService", - "fullName": "google.cloud.sql.v1.SqlSslCertsService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlSslCertsService_Get_async", - "title": "SqlAvailableDatabaseVersionsService get Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a particular SSL certificate. Does not include the private key (required for usage). The private key must be saved from the response to initial creation.", - "canonical": true, - "file": "sql_ssl_certs_service.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.sql.v1.SqlSslCertsService.Get", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "sha1_fingerprint", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1.SslCert", - "client": { - "shortName": "SqlSslCertsServiceClient", - "fullName": "google.cloud.sql.v1.SqlSslCertsServiceClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.sql.v1.SqlSslCertsService.Get", - "service": { - "shortName": "SqlSslCertsService", - "fullName": "google.cloud.sql.v1.SqlSslCertsService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlSslCertsService_Insert_async", - "title": "SqlAvailableDatabaseVersionsService insert Sample", - "origin": "API_DEFINITION", - "description": " Creates an SSL certificate and returns it along with the private key and server certificate authority. The new certificate will not be usable until the instance is restarted.", - "canonical": true, - "file": "sql_ssl_certs_service.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.sql.v1.SqlSslCertsService.Insert", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "body", - "type": ".google.cloud.sql.v1.SslCertsInsertRequest" - } - ], - "resultType": ".google.cloud.sql.v1.SslCertsInsertResponse", - "client": { - "shortName": "SqlSslCertsServiceClient", - "fullName": "google.cloud.sql.v1.SqlSslCertsServiceClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.sql.v1.SqlSslCertsService.Insert", - "service": { - "shortName": "SqlSslCertsService", - "fullName": "google.cloud.sql.v1.SqlSslCertsService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlSslCertsService_List_async", - "title": "SqlAvailableDatabaseVersionsService list Sample", - "origin": "API_DEFINITION", - "description": " Lists all of the current SSL certificates for the instance.", - "canonical": true, - "file": "sql_ssl_certs_service.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.sql.v1.SqlSslCertsService.List", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1.SslCertsListResponse", - "client": { - "shortName": "SqlSslCertsServiceClient", - "fullName": "google.cloud.sql.v1.SqlSslCertsServiceClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.sql.v1.SqlSslCertsService.List", - "service": { - "shortName": "SqlSslCertsService", - "fullName": "google.cloud.sql.v1.SqlSslCertsService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlTiersService_List_async", - "title": "SqlAvailableDatabaseVersionsService list Sample", - "origin": "API_DEFINITION", - "description": " Lists all available machine types (tiers) for Cloud SQL, for example, `db-custom-1-3840`. For more information, see https://cloud.google.com/sql/pricing.", - "canonical": true, - "file": "sql_tiers_service.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 52, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.sql.v1.SqlTiersService.List", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1.TiersListResponse", - "client": { - "shortName": "SqlTiersServiceClient", - "fullName": "google.cloud.sql.v1.SqlTiersServiceClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.sql.v1.SqlTiersService.List", - "service": { - "shortName": "SqlTiersService", - "fullName": "google.cloud.sql.v1.SqlTiersService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlUsersService_Delete_async", - "title": "SqlAvailableDatabaseVersionsService delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes a user from a Cloud SQL instance.", - "canonical": true, - "file": "sql_users_service.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.sql.v1.SqlUsersService.Delete", - "async": true, - "parameters": [ - { - "name": "host", - "type": "TYPE_STRING" - }, - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1.Operation", - "client": { - "shortName": "SqlUsersServiceClient", - "fullName": "google.cloud.sql.v1.SqlUsersServiceClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.sql.v1.SqlUsersService.Delete", - "service": { - "shortName": "SqlUsersService", - "fullName": "google.cloud.sql.v1.SqlUsersService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlUsersService_Get_async", - "title": "SqlAvailableDatabaseVersionsService get Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a resource containing information about a user.", - "canonical": true, - "file": "sql_users_service.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.sql.v1.SqlUsersService.Get", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "host", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1.User", - "client": { - "shortName": "SqlUsersServiceClient", - "fullName": "google.cloud.sql.v1.SqlUsersServiceClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.sql.v1.SqlUsersService.Get", - "service": { - "shortName": "SqlUsersService", - "fullName": "google.cloud.sql.v1.SqlUsersService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlUsersService_Insert_async", - "title": "SqlAvailableDatabaseVersionsService insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a new user in a Cloud SQL instance.", - "canonical": true, - "file": "sql_users_service.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.sql.v1.SqlUsersService.Insert", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "body", - "type": ".google.cloud.sql.v1.User" - } - ], - "resultType": ".google.cloud.sql.v1.Operation", - "client": { - "shortName": "SqlUsersServiceClient", - "fullName": "google.cloud.sql.v1.SqlUsersServiceClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.sql.v1.SqlUsersService.Insert", - "service": { - "shortName": "SqlUsersService", - "fullName": "google.cloud.sql.v1.SqlUsersService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlUsersService_List_async", - "title": "SqlAvailableDatabaseVersionsService list Sample", - "origin": "API_DEFINITION", - "description": " Lists users in the specified Cloud SQL instance.", - "canonical": true, - "file": "sql_users_service.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.sql.v1.SqlUsersService.List", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1.UsersListResponse", - "client": { - "shortName": "SqlUsersServiceClient", - "fullName": "google.cloud.sql.v1.SqlUsersServiceClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.sql.v1.SqlUsersService.List", - "service": { - "shortName": "SqlUsersService", - "fullName": "google.cloud.sql.v1.SqlUsersService" - } - } - } - }, - { - "regionTag": "sqladmin_v1_generated_SqlUsersService_Update_async", - "title": "SqlAvailableDatabaseVersionsService update Sample", - "origin": "API_DEFINITION", - "description": " Updates an existing user in a Cloud SQL instance.", - "canonical": true, - "file": "sql_users_service.update.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Update", - "fullName": "google.cloud.sql.v1.SqlUsersService.Update", - "async": true, - "parameters": [ - { - "name": "host", - "type": "TYPE_STRING" - }, - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "database_roles", - "type": "TYPE_STRING[]" - }, - { - "name": "revoke_existing_roles", - "type": "TYPE_BOOL" - }, - { - "name": "body", - "type": ".google.cloud.sql.v1.User" - } - ], - "resultType": ".google.cloud.sql.v1.Operation", - "client": { - "shortName": "SqlUsersServiceClient", - "fullName": "google.cloud.sql.v1.SqlUsersServiceClient" - }, - "method": { - "shortName": "Update", - "fullName": "google.cloud.sql.v1.SqlUsersService.Update", - "service": { - "shortName": "SqlUsersService", - "fullName": "google.cloud.sql.v1.SqlUsersService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-sql/samples/generated/v1beta4/snippet_metadata_google.cloud.sql.v1beta4.json b/packages/google-cloud-sql/samples/generated/v1beta4/snippet_metadata_google.cloud.sql.v1beta4.json deleted file mode 100644 index 477eae4f43d4..000000000000 --- a/packages/google-cloud-sql/samples/generated/v1beta4/snippet_metadata_google.cloud.sql.v1beta4.json +++ /dev/null @@ -1,3567 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-sql", - "version": "0.24.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.sql.v1beta4", - "version": "v1beta4" - } - ] - }, - "snippets": [ - { - "regionTag": "sqladmin_v1beta4_generated_SqlBackupRunsService_Delete_async", - "title": "SqlBackupRunsService delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the backup taken by a backup run.", - "canonical": true, - "file": "sql_backup_runs_service.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.sql.v1beta4.SqlBackupRunsService.Delete", - "async": true, - "parameters": [ - { - "name": "id", - "type": "TYPE_INT64" - }, - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1beta4.Operation", - "client": { - "shortName": "SqlBackupRunsServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlBackupRunsServiceClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.sql.v1beta4.SqlBackupRunsService.Delete", - "service": { - "shortName": "SqlBackupRunsService", - "fullName": "google.cloud.sql.v1beta4.SqlBackupRunsService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlBackupRunsService_Get_async", - "title": "SqlBackupRunsService get Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a resource containing information about a backup run.", - "canonical": true, - "file": "sql_backup_runs_service.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.sql.v1beta4.SqlBackupRunsService.Get", - "async": true, - "parameters": [ - { - "name": "id", - "type": "TYPE_INT64" - }, - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1beta4.BackupRun", - "client": { - "shortName": "SqlBackupRunsServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlBackupRunsServiceClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.sql.v1beta4.SqlBackupRunsService.Get", - "service": { - "shortName": "SqlBackupRunsService", - "fullName": "google.cloud.sql.v1beta4.SqlBackupRunsService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlBackupRunsService_Insert_async", - "title": "SqlBackupRunsService insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a new backup run on demand.", - "canonical": true, - "file": "sql_backup_runs_service.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.sql.v1beta4.SqlBackupRunsService.Insert", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "body", - "type": ".google.cloud.sql.v1beta4.BackupRun" - } - ], - "resultType": ".google.cloud.sql.v1beta4.Operation", - "client": { - "shortName": "SqlBackupRunsServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlBackupRunsServiceClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.sql.v1beta4.SqlBackupRunsService.Insert", - "service": { - "shortName": "SqlBackupRunsService", - "fullName": "google.cloud.sql.v1beta4.SqlBackupRunsService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlBackupRunsService_List_async", - "title": "SqlBackupRunsService list Sample", - "origin": "API_DEFINITION", - "description": " Lists all backup runs associated with the project or a given instance and configuration in the reverse chronological order of the backup initiation time.", - "canonical": true, - "file": "sql_backup_runs_service.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.sql.v1beta4.SqlBackupRunsService.List", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1beta4.BackupRunsListResponse", - "client": { - "shortName": "SqlBackupRunsServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlBackupRunsServiceClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.sql.v1beta4.SqlBackupRunsService.List", - "service": { - "shortName": "SqlBackupRunsService", - "fullName": "google.cloud.sql.v1beta4.SqlBackupRunsService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlBackupsService_CreateBackup_async", - "title": "SqlBackupRunsService createBackup Sample", - "origin": "API_DEFINITION", - "description": " Creates a backup for a Cloud SQL instance. This API can be used only to create on-demand backups.", - "canonical": true, - "file": "sql_backups_service.create_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateBackup", - "fullName": "google.cloud.sql.v1beta4.SqlBackupsService.CreateBackup", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "backup", - "type": ".google.cloud.sql.v1beta4.Backup" - } - ], - "resultType": ".google.cloud.sql.v1beta4.Operation", - "client": { - "shortName": "SqlBackupsServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlBackupsServiceClient" - }, - "method": { - "shortName": "CreateBackup", - "fullName": "google.cloud.sql.v1beta4.SqlBackupsService.CreateBackup", - "service": { - "shortName": "SqlBackupsService", - "fullName": "google.cloud.sql.v1beta4.SqlBackupsService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlBackupsService_GetBackup_async", - "title": "SqlBackupRunsService getBackup Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a resource containing information about a backup.", - "canonical": true, - "file": "sql_backups_service.get_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBackup", - "fullName": "google.cloud.sql.v1beta4.SqlBackupsService.GetBackup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1beta4.Backup", - "client": { - "shortName": "SqlBackupsServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlBackupsServiceClient" - }, - "method": { - "shortName": "GetBackup", - "fullName": "google.cloud.sql.v1beta4.SqlBackupsService.GetBackup", - "service": { - "shortName": "SqlBackupsService", - "fullName": "google.cloud.sql.v1beta4.SqlBackupsService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlBackupsService_ListBackups_async", - "title": "SqlBackupRunsService listBackups Sample", - "origin": "API_DEFINITION", - "description": " Lists all backups associated with the project.", - "canonical": true, - "file": "sql_backups_service.list_backups.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBackups", - "fullName": "google.cloud.sql.v1beta4.SqlBackupsService.ListBackups", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1beta4.ListBackupsResponse", - "client": { - "shortName": "SqlBackupsServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlBackupsServiceClient" - }, - "method": { - "shortName": "ListBackups", - "fullName": "google.cloud.sql.v1beta4.SqlBackupsService.ListBackups", - "service": { - "shortName": "SqlBackupsService", - "fullName": "google.cloud.sql.v1beta4.SqlBackupsService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlBackupsService_UpdateBackup_async", - "title": "SqlBackupRunsService updateBackup Sample", - "origin": "API_DEFINITION", - "description": " Updates the retention period and the description of the backup. You can use this API to update final backups only.", - "canonical": true, - "file": "sql_backups_service.update_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateBackup", - "fullName": "google.cloud.sql.v1beta4.SqlBackupsService.UpdateBackup", - "async": true, - "parameters": [ - { - "name": "backup", - "type": ".google.cloud.sql.v1beta4.Backup" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.sql.v1beta4.Operation", - "client": { - "shortName": "SqlBackupsServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlBackupsServiceClient" - }, - "method": { - "shortName": "UpdateBackup", - "fullName": "google.cloud.sql.v1beta4.SqlBackupsService.UpdateBackup", - "service": { - "shortName": "SqlBackupsService", - "fullName": "google.cloud.sql.v1beta4.SqlBackupsService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlBackupsService_DeleteBackup_async", - "title": "SqlBackupRunsService deleteBackup Sample", - "origin": "API_DEFINITION", - "description": " Deletes the backup.", - "canonical": true, - "file": "sql_backups_service.delete_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteBackup", - "fullName": "google.cloud.sql.v1beta4.SqlBackupsService.DeleteBackup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1beta4.Operation", - "client": { - "shortName": "SqlBackupsServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlBackupsServiceClient" - }, - "method": { - "shortName": "DeleteBackup", - "fullName": "google.cloud.sql.v1beta4.SqlBackupsService.DeleteBackup", - "service": { - "shortName": "SqlBackupsService", - "fullName": "google.cloud.sql.v1beta4.SqlBackupsService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlConnectService_GetConnectSettings_async", - "title": "SqlBackupRunsService getConnectSettings Sample", - "origin": "API_DEFINITION", - "description": " Retrieves connect settings about a Cloud SQL instance.", - "canonical": true, - "file": "sql_connect_service.get_connect_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetConnectSettings", - "fullName": "google.cloud.sql.v1beta4.SqlConnectService.GetConnectSettings", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "read_time", - "type": ".google.protobuf.Timestamp" - } - ], - "resultType": ".google.cloud.sql.v1beta4.ConnectSettings", - "client": { - "shortName": "SqlConnectServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlConnectServiceClient" - }, - "method": { - "shortName": "GetConnectSettings", - "fullName": "google.cloud.sql.v1beta4.SqlConnectService.GetConnectSettings", - "service": { - "shortName": "SqlConnectService", - "fullName": "google.cloud.sql.v1beta4.SqlConnectService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlConnectService_GenerateEphemeralCert_async", - "title": "SqlBackupRunsService generateEphemeralCert Sample", - "origin": "API_DEFINITION", - "description": " Generates a short-lived X509 certificate containing the provided public key and signed by a private key specific to the target instance. Users may use the certificate to authenticate as themselves when connecting to the database.", - "canonical": true, - "file": "sql_connect_service.generate_ephemeral_cert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateEphemeralCert", - "fullName": "google.cloud.sql.v1beta4.SqlConnectService.GenerateEphemeralCert", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "public_key", - "type": "TYPE_STRING" - }, - { - "name": "access_token", - "type": "TYPE_STRING" - }, - { - "name": "read_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "valid_duration", - "type": ".google.protobuf.Duration" - } - ], - "resultType": ".google.cloud.sql.v1beta4.GenerateEphemeralCertResponse", - "client": { - "shortName": "SqlConnectServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlConnectServiceClient" - }, - "method": { - "shortName": "GenerateEphemeralCert", - "fullName": "google.cloud.sql.v1beta4.SqlConnectService.GenerateEphemeralCert", - "service": { - "shortName": "SqlConnectService", - "fullName": "google.cloud.sql.v1beta4.SqlConnectService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlDatabasesService_Delete_async", - "title": "SqlBackupRunsService delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes a database from a Cloud SQL instance.", - "canonical": true, - "file": "sql_databases_service.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.sql.v1beta4.SqlDatabasesService.Delete", - "async": true, - "parameters": [ - { - "name": "database", - "type": "TYPE_STRING" - }, - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1beta4.Operation", - "client": { - "shortName": "SqlDatabasesServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlDatabasesServiceClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.sql.v1beta4.SqlDatabasesService.Delete", - "service": { - "shortName": "SqlDatabasesService", - "fullName": "google.cloud.sql.v1beta4.SqlDatabasesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlDatabasesService_Get_async", - "title": "SqlBackupRunsService get Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a resource containing information about a database inside a Cloud SQL instance.", - "canonical": true, - "file": "sql_databases_service.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.sql.v1beta4.SqlDatabasesService.Get", - "async": true, - "parameters": [ - { - "name": "database", - "type": "TYPE_STRING" - }, - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1beta4.Database", - "client": { - "shortName": "SqlDatabasesServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlDatabasesServiceClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.sql.v1beta4.SqlDatabasesService.Get", - "service": { - "shortName": "SqlDatabasesService", - "fullName": "google.cloud.sql.v1beta4.SqlDatabasesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlDatabasesService_Insert_async", - "title": "SqlBackupRunsService insert Sample", - "origin": "API_DEFINITION", - "description": " Inserts a resource containing information about a database inside a Cloud SQL instance. **Note:** You can't modify the default character set and collation.", - "canonical": true, - "file": "sql_databases_service.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.sql.v1beta4.SqlDatabasesService.Insert", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "body", - "type": ".google.cloud.sql.v1beta4.Database" - } - ], - "resultType": ".google.cloud.sql.v1beta4.Operation", - "client": { - "shortName": "SqlDatabasesServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlDatabasesServiceClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.sql.v1beta4.SqlDatabasesService.Insert", - "service": { - "shortName": "SqlDatabasesService", - "fullName": "google.cloud.sql.v1beta4.SqlDatabasesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlDatabasesService_List_async", - "title": "SqlBackupRunsService list Sample", - "origin": "API_DEFINITION", - "description": " Lists databases in the specified Cloud SQL instance.", - "canonical": true, - "file": "sql_databases_service.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.sql.v1beta4.SqlDatabasesService.List", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1beta4.DatabasesListResponse", - "client": { - "shortName": "SqlDatabasesServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlDatabasesServiceClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.sql.v1beta4.SqlDatabasesService.List", - "service": { - "shortName": "SqlDatabasesService", - "fullName": "google.cloud.sql.v1beta4.SqlDatabasesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlDatabasesService_Patch_async", - "title": "SqlBackupRunsService patch Sample", - "origin": "API_DEFINITION", - "description": " Partially updates a resource containing information about a database inside a Cloud SQL instance. This method supports patch semantics.", - "canonical": true, - "file": "sql_databases_service.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.sql.v1beta4.SqlDatabasesService.Patch", - "async": true, - "parameters": [ - { - "name": "database", - "type": "TYPE_STRING" - }, - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "body", - "type": ".google.cloud.sql.v1beta4.Database" - } - ], - "resultType": ".google.cloud.sql.v1beta4.Operation", - "client": { - "shortName": "SqlDatabasesServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlDatabasesServiceClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.sql.v1beta4.SqlDatabasesService.Patch", - "service": { - "shortName": "SqlDatabasesService", - "fullName": "google.cloud.sql.v1beta4.SqlDatabasesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlDatabasesService_Update_async", - "title": "SqlBackupRunsService update Sample", - "origin": "API_DEFINITION", - "description": " Updates a resource containing information about a database inside a Cloud SQL instance.", - "canonical": true, - "file": "sql_databases_service.update.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Update", - "fullName": "google.cloud.sql.v1beta4.SqlDatabasesService.Update", - "async": true, - "parameters": [ - { - "name": "database", - "type": "TYPE_STRING" - }, - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "body", - "type": ".google.cloud.sql.v1beta4.Database" - } - ], - "resultType": ".google.cloud.sql.v1beta4.Operation", - "client": { - "shortName": "SqlDatabasesServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlDatabasesServiceClient" - }, - "method": { - "shortName": "Update", - "fullName": "google.cloud.sql.v1beta4.SqlDatabasesService.Update", - "service": { - "shortName": "SqlDatabasesService", - "fullName": "google.cloud.sql.v1beta4.SqlDatabasesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlFlagsService_List_async", - "title": "SqlBackupRunsService list Sample", - "origin": "API_DEFINITION", - "description": " Lists all available database flags for Cloud SQL instances.", - "canonical": true, - "file": "sql_flags_service.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.sql.v1beta4.SqlFlagsService.List", - "async": true, - "parameters": [ - { - "name": "database_version", - "type": "TYPE_STRING" - }, - { - "name": "flag_scope", - "type": ".google.cloud.sql.v1beta4.SqlFlagScope" - } - ], - "resultType": ".google.cloud.sql.v1beta4.FlagsListResponse", - "client": { - "shortName": "SqlFlagsServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlFlagsServiceClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.sql.v1beta4.SqlFlagsService.List", - "service": { - "shortName": "SqlFlagsService", - "fullName": "google.cloud.sql.v1beta4.SqlFlagsService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlInstancesService_AddServerCa_async", - "title": "SqlBackupRunsService addServerCa Sample", - "origin": "API_DEFINITION", - "description": " Add a new trusted Certificate Authority (CA) version for the specified instance. Required to prepare for a certificate rotation. If a CA version was previously added but never used in a certificate rotation, this operation replaces that version. There cannot be more than one CA version waiting to be rotated in. For instances that have enabled Certificate Authority Service (CAS) based server CA, use AddServerCertificate to add a new server certificate.", - "canonical": true, - "file": "sql_instances_service.add_server_ca.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddServerCa", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.AddServerCa", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1beta4.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesServiceClient" - }, - "method": { - "shortName": "AddServerCa", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.AddServerCa", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlInstancesService_AddServerCertificate_async", - "title": "SqlBackupRunsService addServerCertificate Sample", - "origin": "API_DEFINITION", - "description": " Add a new trusted server certificate version for the specified instance using Certificate Authority Service (CAS) server CA. Required to prepare for a certificate rotation. If a server certificate version was previously added but never used in a certificate rotation, this operation replaces that version. There cannot be more than one certificate version waiting to be rotated in. For instances not using CAS server CA, use AddServerCa instead.", - "canonical": true, - "file": "sql_instances_service.add_server_certificate.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddServerCertificate", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.AddServerCertificate", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1beta4.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesServiceClient" - }, - "method": { - "shortName": "AddServerCertificate", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.AddServerCertificate", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlInstancesService_AddEntraIdCertificate_async", - "title": "SqlBackupRunsService addEntraIdCertificate Sample", - "origin": "API_DEFINITION", - "description": " Adds a new Entra ID certificate for the specified instance. If an Entra ID certificate was previously added but never used in a certificate rotation, this operation replaces that version.", - "canonical": true, - "file": "sql_instances_service.add_entra_id_certificate.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddEntraIdCertificate", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.AddEntraIdCertificate", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1beta4.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesServiceClient" - }, - "method": { - "shortName": "AddEntraIdCertificate", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.AddEntraIdCertificate", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlInstancesService_Clone_async", - "title": "SqlBackupRunsService clone Sample", - "origin": "API_DEFINITION", - "description": " Creates a Cloud SQL instance as a clone of the source instance. Using this operation might cause your instance to restart.", - "canonical": true, - "file": "sql_instances_service.clone.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Clone", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.Clone", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "body", - "type": ".google.cloud.sql.v1beta4.InstancesCloneRequest" - } - ], - "resultType": ".google.cloud.sql.v1beta4.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesServiceClient" - }, - "method": { - "shortName": "Clone", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.Clone", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlInstancesService_Delete_async", - "title": "SqlBackupRunsService delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Cloud SQL instance.", - "canonical": true, - "file": "sql_instances_service.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.Delete", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "enable_final_backup", - "type": "TYPE_BOOL" - }, - { - "name": "final_backup_ttl_days", - "type": "TYPE_INT64" - }, - { - "name": "final_backup_expiry_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "final_backup_description", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1beta4.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesServiceClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.Delete", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlInstancesService_DemoteMaster_async", - "title": "SqlBackupRunsService demoteMaster Sample", - "origin": "API_DEFINITION", - "description": " Demotes the stand-alone instance to be a Cloud SQL read replica for an external database server.", - "canonical": true, - "file": "sql_instances_service.demote_master.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DemoteMaster", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.DemoteMaster", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "body", - "type": ".google.cloud.sql.v1beta4.InstancesDemoteMasterRequest" - } - ], - "resultType": ".google.cloud.sql.v1beta4.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesServiceClient" - }, - "method": { - "shortName": "DemoteMaster", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.DemoteMaster", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlInstancesService_Demote_async", - "title": "SqlBackupRunsService demote Sample", - "origin": "API_DEFINITION", - "description": " Demotes an existing standalone instance to be a Cloud SQL read replica for an external database server.", - "canonical": true, - "file": "sql_instances_service.demote.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Demote", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.Demote", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "body", - "type": ".google.cloud.sql.v1beta4.InstancesDemoteRequest" - } - ], - "resultType": ".google.cloud.sql.v1beta4.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesServiceClient" - }, - "method": { - "shortName": "Demote", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.Demote", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlInstancesService_Export_async", - "title": "SqlBackupRunsService export Sample", - "origin": "API_DEFINITION", - "description": " Exports data from a Cloud SQL instance to a Cloud Storage bucket as a SQL dump or CSV file.", - "canonical": true, - "file": "sql_instances_service.export.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Export", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.Export", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "body", - "type": ".google.cloud.sql.v1beta4.InstancesExportRequest" - } - ], - "resultType": ".google.cloud.sql.v1beta4.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesServiceClient" - }, - "method": { - "shortName": "Export", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.Export", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlInstancesService_Failover_async", - "title": "SqlBackupRunsService failover Sample", - "origin": "API_DEFINITION", - "description": " Initiates a manual failover of a high availability (HA) primary instance to a standby instance, which becomes the primary instance. Users are then rerouted to the new primary. For more information, see the [Overview of high availability](https://cloud.google.com/sql/docs/mysql/high-availability) page in the Cloud SQL documentation. If using Legacy HA (MySQL only), this causes the instance to failover to its failover replica instance.", - "canonical": true, - "file": "sql_instances_service.failover.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Failover", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.Failover", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "body", - "type": ".google.cloud.sql.v1beta4.InstancesFailoverRequest" - } - ], - "resultType": ".google.cloud.sql.v1beta4.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesServiceClient" - }, - "method": { - "shortName": "Failover", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.Failover", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlInstancesService_Reencrypt_async", - "title": "SqlBackupRunsService reencrypt Sample", - "origin": "API_DEFINITION", - "description": " Reencrypt CMEK instance with latest key version.", - "canonical": true, - "file": "sql_instances_service.reencrypt.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Reencrypt", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.Reencrypt", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "body", - "type": ".google.cloud.sql.v1beta4.InstancesReencryptRequest" - } - ], - "resultType": ".google.cloud.sql.v1beta4.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesServiceClient" - }, - "method": { - "shortName": "Reencrypt", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.Reencrypt", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlInstancesService_Get_async", - "title": "SqlBackupRunsService get Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a resource containing information about a Cloud SQL instance.", - "canonical": true, - "file": "sql_instances_service.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.Get", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1beta4.DatabaseInstance", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesServiceClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.Get", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlInstancesService_Import_async", - "title": "SqlBackupRunsService import Sample", - "origin": "API_DEFINITION", - "description": " Imports data into a Cloud SQL instance from a SQL dump or CSV file in Cloud Storage.", - "canonical": true, - "file": "sql_instances_service.import.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Import", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.Import", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "body", - "type": ".google.cloud.sql.v1beta4.InstancesImportRequest" - } - ], - "resultType": ".google.cloud.sql.v1beta4.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesServiceClient" - }, - "method": { - "shortName": "Import", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.Import", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlInstancesService_Insert_async", - "title": "SqlBackupRunsService insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Cloud SQL instance.", - "canonical": true, - "file": "sql_instances_service.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.Insert", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "body", - "type": ".google.cloud.sql.v1beta4.DatabaseInstance" - } - ], - "resultType": ".google.cloud.sql.v1beta4.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesServiceClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.Insert", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlInstancesService_List_async", - "title": "SqlBackupRunsService list Sample", - "origin": "API_DEFINITION", - "description": " Lists instances under a given project.", - "canonical": true, - "file": "sql_instances_service.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.List", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1beta4.InstancesListResponse", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesServiceClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.List", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlInstancesService_ListServerCas_async", - "title": "SqlBackupRunsService listServerCas Sample", - "origin": "API_DEFINITION", - "description": " Lists all of the trusted Certificate Authorities (CAs) for the specified instance. There can be up to three CAs listed: the CA that was used to sign the certificate that is currently in use, a CA that has been added but not yet used to sign a certificate, and a CA used to sign a certificate that has previously rotated out.", - "canonical": true, - "file": "sql_instances_service.list_server_cas.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListServerCas", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.ListServerCas", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1beta4.InstancesListServerCasResponse", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesServiceClient" - }, - "method": { - "shortName": "ListServerCas", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.ListServerCas", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlInstancesService_ListServerCertificates_async", - "title": "SqlBackupRunsService listServerCertificates Sample", - "origin": "API_DEFINITION", - "description": " Lists all versions of server certificates and certificate authorities (CAs) for the specified instance. There can be up to three sets of certs listed: the certificate that is currently in use, a future that has been added but not yet used to sign a certificate, and a certificate that has been rotated out. For instances not using Certificate Authority Service (CAS) server CA, use ListServerCas instead.", - "canonical": true, - "file": "sql_instances_service.list_server_certificates.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListServerCertificates", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.ListServerCertificates", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1beta4.InstancesListServerCertificatesResponse", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesServiceClient" - }, - "method": { - "shortName": "ListServerCertificates", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.ListServerCertificates", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlInstancesService_ListEntraIdCertificates_async", - "title": "SqlBackupRunsService listEntraIdCertificates Sample", - "origin": "API_DEFINITION", - "description": " Lists all versions of EntraID certificates for the specified instance. There can be up to three sets of certificates listed: the certificate that is currently in use, a future that has been added but not yet used to sign a certificate, and a certificate that has been rotated out.", - "canonical": true, - "file": "sql_instances_service.list_entra_id_certificates.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEntraIdCertificates", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.ListEntraIdCertificates", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1beta4.InstancesListEntraIdCertificatesResponse", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesServiceClient" - }, - "method": { - "shortName": "ListEntraIdCertificates", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.ListEntraIdCertificates", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlInstancesService_Patch_async", - "title": "SqlBackupRunsService patch Sample", - "origin": "API_DEFINITION", - "description": " Partially updates settings of a Cloud SQL instance by merging the request with the current configuration. This method supports patch semantics.", - "canonical": true, - "file": "sql_instances_service.patch.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Patch", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.Patch", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "body", - "type": ".google.cloud.sql.v1beta4.DatabaseInstance" - } - ], - "resultType": ".google.cloud.sql.v1beta4.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesServiceClient" - }, - "method": { - "shortName": "Patch", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.Patch", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlInstancesService_PromoteReplica_async", - "title": "SqlBackupRunsService promoteReplica Sample", - "origin": "API_DEFINITION", - "description": " Promotes the read replica instance to be an independent Cloud SQL primary instance. Using this operation might cause your instance to restart.", - "canonical": true, - "file": "sql_instances_service.promote_replica.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PromoteReplica", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.PromoteReplica", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "failover", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.sql.v1beta4.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesServiceClient" - }, - "method": { - "shortName": "PromoteReplica", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.PromoteReplica", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlInstancesService_Switchover_async", - "title": "SqlBackupRunsService switchover Sample", - "origin": "API_DEFINITION", - "description": " Switches over from the primary instance to the DR replica instance.", - "canonical": true, - "file": "sql_instances_service.switchover.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Switchover", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.Switchover", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "db_timeout", - "type": ".google.protobuf.Duration" - } - ], - "resultType": ".google.cloud.sql.v1beta4.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesServiceClient" - }, - "method": { - "shortName": "Switchover", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.Switchover", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlInstancesService_ResetSslConfig_async", - "title": "SqlBackupRunsService resetSslConfig Sample", - "origin": "API_DEFINITION", - "description": " Deletes all client certificates and generates a new server SSL certificate for the instance.", - "canonical": true, - "file": "sql_instances_service.reset_ssl_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResetSslConfig", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.ResetSslConfig", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "mode", - "type": ".google.cloud.sql.v1beta4.SqlInstancesResetSslConfigRequest.ResetSslMode" - } - ], - "resultType": ".google.cloud.sql.v1beta4.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesServiceClient" - }, - "method": { - "shortName": "ResetSslConfig", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.ResetSslConfig", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlInstancesService_Restart_async", - "title": "SqlBackupRunsService restart Sample", - "origin": "API_DEFINITION", - "description": " Restarts a Cloud SQL instance.", - "canonical": true, - "file": "sql_instances_service.restart.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Restart", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.Restart", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1beta4.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesServiceClient" - }, - "method": { - "shortName": "Restart", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.Restart", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlInstancesService_RestoreBackup_async", - "title": "SqlBackupRunsService restoreBackup Sample", - "origin": "API_DEFINITION", - "description": " Restores a backup of a Cloud SQL instance. Using this operation might cause your instance to restart.", - "canonical": true, - "file": "sql_instances_service.restore_backup.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RestoreBackup", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.RestoreBackup", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "body", - "type": ".google.cloud.sql.v1beta4.InstancesRestoreBackupRequest" - } - ], - "resultType": ".google.cloud.sql.v1beta4.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesServiceClient" - }, - "method": { - "shortName": "RestoreBackup", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.RestoreBackup", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlInstancesService_RotateServerCa_async", - "title": "SqlBackupRunsService rotateServerCa Sample", - "origin": "API_DEFINITION", - "description": " Rotates the server certificate to one signed by the Certificate Authority (CA) version previously added with the addServerCA method. For instances that have enabled Certificate Authority Service (CAS) based server CA, use RotateServerCertificate to rotate the server certificate.", - "canonical": true, - "file": "sql_instances_service.rotate_server_ca.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RotateServerCa", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.RotateServerCa", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "body", - "type": ".google.cloud.sql.v1beta4.InstancesRotateServerCaRequest" - } - ], - "resultType": ".google.cloud.sql.v1beta4.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesServiceClient" - }, - "method": { - "shortName": "RotateServerCa", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.RotateServerCa", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlInstancesService_RotateServerCertificate_async", - "title": "SqlBackupRunsService rotateServerCertificate Sample", - "origin": "API_DEFINITION", - "description": " Rotates the server certificate version to one previously added with the addServerCertificate method. For instances not using Certificate Authority Service (CAS) server CA, use RotateServerCa instead.", - "canonical": true, - "file": "sql_instances_service.rotate_server_certificate.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RotateServerCertificate", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.RotateServerCertificate", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "body", - "type": ".google.cloud.sql.v1beta4.InstancesRotateServerCertificateRequest" - } - ], - "resultType": ".google.cloud.sql.v1beta4.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesServiceClient" - }, - "method": { - "shortName": "RotateServerCertificate", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.RotateServerCertificate", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlInstancesService_RotateEntraIdCertificate_async", - "title": "SqlBackupRunsService rotateEntraIdCertificate Sample", - "origin": "API_DEFINITION", - "description": " Rotates the Entra Id certificate version to one previously added with the addEntraIdCertificate method.", - "canonical": true, - "file": "sql_instances_service.rotate_entra_id_certificate.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RotateEntraIdCertificate", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.RotateEntraIdCertificate", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "body", - "type": ".google.cloud.sql.v1beta4.InstancesRotateEntraIdCertificateRequest" - } - ], - "resultType": ".google.cloud.sql.v1beta4.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesServiceClient" - }, - "method": { - "shortName": "RotateEntraIdCertificate", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.RotateEntraIdCertificate", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlInstancesService_StartReplica_async", - "title": "SqlBackupRunsService startReplica Sample", - "origin": "API_DEFINITION", - "description": " Starts the replication in the read replica instance.", - "canonical": true, - "file": "sql_instances_service.start_replica.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StartReplica", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.StartReplica", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1beta4.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesServiceClient" - }, - "method": { - "shortName": "StartReplica", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.StartReplica", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlInstancesService_StopReplica_async", - "title": "SqlBackupRunsService stopReplica Sample", - "origin": "API_DEFINITION", - "description": " Stops the replication in the read replica instance.", - "canonical": true, - "file": "sql_instances_service.stop_replica.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StopReplica", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.StopReplica", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1beta4.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesServiceClient" - }, - "method": { - "shortName": "StopReplica", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.StopReplica", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlInstancesService_TruncateLog_async", - "title": "SqlBackupRunsService truncateLog Sample", - "origin": "API_DEFINITION", - "description": " Truncate MySQL general and slow query log tables MySQL only.", - "canonical": true, - "file": "sql_instances_service.truncate_log.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TruncateLog", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.TruncateLog", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "body", - "type": ".google.cloud.sql.v1beta4.InstancesTruncateLogRequest" - } - ], - "resultType": ".google.cloud.sql.v1beta4.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesServiceClient" - }, - "method": { - "shortName": "TruncateLog", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.TruncateLog", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlInstancesService_Update_async", - "title": "SqlBackupRunsService update Sample", - "origin": "API_DEFINITION", - "description": " Updates settings of a Cloud SQL instance. Using this operation might cause your instance to restart.", - "canonical": true, - "file": "sql_instances_service.update.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Update", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.Update", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "body", - "type": ".google.cloud.sql.v1beta4.DatabaseInstance" - } - ], - "resultType": ".google.cloud.sql.v1beta4.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesServiceClient" - }, - "method": { - "shortName": "Update", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.Update", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlInstancesService_CreateEphemeral_async", - "title": "SqlBackupRunsService createEphemeral Sample", - "origin": "API_DEFINITION", - "description": " Generates a short-lived X509 certificate containing the provided public key and signed by a private key specific to the target instance. Users may use the certificate to authenticate as themselves when connecting to the database.", - "canonical": true, - "file": "sql_instances_service.create_ephemeral.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateEphemeral", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.CreateEphemeral", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "body", - "type": ".google.cloud.sql.v1beta4.SslCertsCreateEphemeralRequest" - } - ], - "resultType": ".google.cloud.sql.v1beta4.SslCert", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesServiceClient" - }, - "method": { - "shortName": "CreateEphemeral", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.CreateEphemeral", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlInstancesService_RescheduleMaintenance_async", - "title": "SqlBackupRunsService rescheduleMaintenance Sample", - "origin": "API_DEFINITION", - "description": " Reschedules the maintenance on the given instance.", - "canonical": true, - "file": "sql_instances_service.reschedule_maintenance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RescheduleMaintenance", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.RescheduleMaintenance", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "body", - "type": ".google.cloud.sql.v1beta4.SqlInstancesRescheduleMaintenanceRequestBody" - } - ], - "resultType": ".google.cloud.sql.v1beta4.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesServiceClient" - }, - "method": { - "shortName": "RescheduleMaintenance", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.RescheduleMaintenance", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlInstancesService_VerifyExternalSyncSettings_async", - "title": "SqlBackupRunsService verifyExternalSyncSettings Sample", - "origin": "API_DEFINITION", - "description": " Verify External primary instance external sync settings.", - "canonical": true, - "file": "sql_instances_service.verify_external_sync_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 88, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "VerifyExternalSyncSettings", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.VerifyExternalSyncSettings", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "verify_connection_only", - "type": "TYPE_BOOL" - }, - { - "name": "sync_mode", - "type": ".google.cloud.sql.v1beta4.SqlInstancesVerifyExternalSyncSettingsRequest.ExternalSyncMode" - }, - { - "name": "verify_replication_only", - "type": "TYPE_BOOL" - }, - { - "name": "mysql_sync_config", - "type": ".google.cloud.sql.v1beta4.MySqlSyncConfig" - }, - { - "name": "migration_type", - "type": ".google.cloud.sql.v1beta4.SqlInstancesVerifyExternalSyncSettingsRequest.MigrationType" - }, - { - "name": "sync_parallel_level", - "type": ".google.cloud.sql.v1beta4.ExternalSyncParallelLevel" - }, - { - "name": "selected_objects", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.sql.v1beta4.SqlInstancesVerifyExternalSyncSettingsResponse", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesServiceClient" - }, - "method": { - "shortName": "VerifyExternalSyncSettings", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.VerifyExternalSyncSettings", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlInstancesService_StartExternalSync_async", - "title": "SqlBackupRunsService startExternalSync Sample", - "origin": "API_DEFINITION", - "description": " Start External primary instance migration.", - "canonical": true, - "file": "sql_instances_service.start_external_sync.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StartExternalSync", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.StartExternalSync", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "sync_mode", - "type": ".google.cloud.sql.v1beta4.SqlInstancesVerifyExternalSyncSettingsRequest.ExternalSyncMode" - }, - { - "name": "skip_verification", - "type": "TYPE_BOOL" - }, - { - "name": "mysql_sync_config", - "type": ".google.cloud.sql.v1beta4.MySqlSyncConfig" - }, - { - "name": "sync_parallel_level", - "type": ".google.cloud.sql.v1beta4.ExternalSyncParallelLevel" - }, - { - "name": "migration_type", - "type": ".google.cloud.sql.v1beta4.SqlInstancesVerifyExternalSyncSettingsRequest.MigrationType" - }, - { - "name": "replica_overwrite_enabled", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.sql.v1beta4.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesServiceClient" - }, - "method": { - "shortName": "StartExternalSync", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.StartExternalSync", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlInstancesService_PerformDiskShrink_async", - "title": "SqlBackupRunsService performDiskShrink Sample", - "origin": "API_DEFINITION", - "description": " Perform Disk Shrink on primary instance.", - "canonical": true, - "file": "sql_instances_service.perform_disk_shrink.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PerformDiskShrink", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.PerformDiskShrink", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "body", - "type": ".google.cloud.sql.v1beta4.PerformDiskShrinkContext" - } - ], - "resultType": ".google.cloud.sql.v1beta4.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesServiceClient" - }, - "method": { - "shortName": "PerformDiskShrink", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.PerformDiskShrink", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlInstancesService_GetDiskShrinkConfig_async", - "title": "SqlBackupRunsService getDiskShrinkConfig Sample", - "origin": "API_DEFINITION", - "description": " Get Disk Shrink Config for a given instance.", - "canonical": true, - "file": "sql_instances_service.get_disk_shrink_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDiskShrinkConfig", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.GetDiskShrinkConfig", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1beta4.SqlInstancesGetDiskShrinkConfigResponse", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesServiceClient" - }, - "method": { - "shortName": "GetDiskShrinkConfig", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.GetDiskShrinkConfig", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlInstancesService_ResetReplicaSize_async", - "title": "SqlBackupRunsService resetReplicaSize Sample", - "origin": "API_DEFINITION", - "description": " Reset Replica Size to primary instance disk size.", - "canonical": true, - "file": "sql_instances_service.reset_replica_size.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResetReplicaSize", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.ResetReplicaSize", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1beta4.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesServiceClient" - }, - "method": { - "shortName": "ResetReplicaSize", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.ResetReplicaSize", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlInstancesService_GetLatestRecoveryTime_async", - "title": "SqlBackupRunsService getLatestRecoveryTime Sample", - "origin": "API_DEFINITION", - "description": " Get Latest Recovery Time for a given instance.", - "canonical": true, - "file": "sql_instances_service.get_latest_recovery_time.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetLatestRecoveryTime", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.GetLatestRecoveryTime", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "source_instance_deletion_time", - "type": ".google.protobuf.Timestamp" - } - ], - "resultType": ".google.cloud.sql.v1beta4.SqlInstancesGetLatestRecoveryTimeResponse", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesServiceClient" - }, - "method": { - "shortName": "GetLatestRecoveryTime", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.GetLatestRecoveryTime", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlInstancesService_ExecuteSql_async", - "title": "SqlBackupRunsService executeSql Sample", - "origin": "API_DEFINITION", - "description": " Execute SQL statements.", - "canonical": true, - "file": "sql_instances_service.execute_sql.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExecuteSql", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.ExecuteSql", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "body", - "type": ".google.cloud.sql.v1beta4.ExecuteSqlPayload" - } - ], - "resultType": ".google.cloud.sql.v1beta4.SqlInstancesExecuteSqlResponse", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesServiceClient" - }, - "method": { - "shortName": "ExecuteSql", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.ExecuteSql", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlInstancesService_AcquireSsrsLease_async", - "title": "SqlBackupRunsService acquireSsrsLease Sample", - "origin": "API_DEFINITION", - "description": " Acquire a lease for the setup of SQL Server Reporting Services (SSRS).", - "canonical": true, - "file": "sql_instances_service.acquire_ssrs_lease.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AcquireSsrsLease", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.AcquireSsrsLease", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "body", - "type": ".google.cloud.sql.v1beta4.InstancesAcquireSsrsLeaseRequest" - } - ], - "resultType": ".google.cloud.sql.v1beta4.SqlInstancesAcquireSsrsLeaseResponse", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesServiceClient" - }, - "method": { - "shortName": "AcquireSsrsLease", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.AcquireSsrsLease", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlInstancesService_ReleaseSsrsLease_async", - "title": "SqlBackupRunsService releaseSsrsLease Sample", - "origin": "API_DEFINITION", - "description": " Release a lease for the setup of SQL Server Reporting Services (SSRS).", - "canonical": true, - "file": "sql_instances_service.release_ssrs_lease.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReleaseSsrsLease", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.ReleaseSsrsLease", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1beta4.SqlInstancesReleaseSsrsLeaseResponse", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesServiceClient" - }, - "method": { - "shortName": "ReleaseSsrsLease", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.ReleaseSsrsLease", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlInstancesService_PreCheckMajorVersionUpgrade_async", - "title": "SqlBackupRunsService preCheckMajorVersionUpgrade Sample", - "origin": "API_DEFINITION", - "description": " Execute MVU Pre-checks", - "canonical": true, - "file": "sql_instances_service.pre_check_major_version_upgrade.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PreCheckMajorVersionUpgrade", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.PreCheckMajorVersionUpgrade", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "body", - "type": ".google.cloud.sql.v1beta4.InstancesPreCheckMajorVersionUpgradeRequest" - } - ], - "resultType": ".google.cloud.sql.v1beta4.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesServiceClient" - }, - "method": { - "shortName": "PreCheckMajorVersionUpgrade", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.PreCheckMajorVersionUpgrade", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlInstancesService_PointInTimeRestore_async", - "title": "SqlBackupRunsService pointInTimeRestore Sample", - "origin": "API_DEFINITION", - "description": " Point in time restore for an instance managed by Google Cloud Backup and Disaster Recovery.", - "canonical": true, - "file": "sql_instances_service.point_in_time_restore.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PointInTimeRestore", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.PointInTimeRestore", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "context", - "type": ".google.cloud.sql.v1beta4.PointInTimeRestoreContext" - } - ], - "resultType": ".google.cloud.sql.v1beta4.Operation", - "client": { - "shortName": "SqlInstancesServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesServiceClient" - }, - "method": { - "shortName": "PointInTimeRestore", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService.PointInTimeRestore", - "service": { - "shortName": "SqlInstancesService", - "fullName": "google.cloud.sql.v1beta4.SqlInstancesService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlOperationsService_Get_async", - "title": "SqlBackupRunsService get Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an instance operation that has been performed on an instance.", - "canonical": true, - "file": "sql_operations_service.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.sql.v1beta4.SqlOperationsService.Get", - "async": true, - "parameters": [ - { - "name": "operation", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1beta4.Operation", - "client": { - "shortName": "SqlOperationsServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlOperationsServiceClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.sql.v1beta4.SqlOperationsService.Get", - "service": { - "shortName": "SqlOperationsService", - "fullName": "google.cloud.sql.v1beta4.SqlOperationsService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlOperationsService_List_async", - "title": "SqlBackupRunsService list Sample", - "origin": "API_DEFINITION", - "description": " Lists all instance operations that have been performed on the given Cloud SQL instance in the reverse chronological order of the start time.", - "canonical": true, - "file": "sql_operations_service.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.sql.v1beta4.SqlOperationsService.List", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "max_results", - "type": "TYPE_UINT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1beta4.OperationsListResponse", - "client": { - "shortName": "SqlOperationsServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlOperationsServiceClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.sql.v1beta4.SqlOperationsService.List", - "service": { - "shortName": "SqlOperationsService", - "fullName": "google.cloud.sql.v1beta4.SqlOperationsService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlOperationsService_Cancel_async", - "title": "SqlBackupRunsService cancel Sample", - "origin": "API_DEFINITION", - "description": " Cancels an instance operation that has been performed on an instance. Ordinarily, this method name should be `CancelSqlOperation`.", - "canonical": true, - "file": "sql_operations_service.cancel.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Cancel", - "fullName": "google.cloud.sql.v1beta4.SqlOperationsService.Cancel", - "async": true, - "parameters": [ - { - "name": "operation", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "SqlOperationsServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlOperationsServiceClient" - }, - "method": { - "shortName": "Cancel", - "fullName": "google.cloud.sql.v1beta4.SqlOperationsService.Cancel", - "service": { - "shortName": "SqlOperationsService", - "fullName": "google.cloud.sql.v1beta4.SqlOperationsService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlSslCertsService_Delete_async", - "title": "SqlBackupRunsService delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes the SSL certificate. For First Generation instances, the certificate remains valid until the instance is restarted.", - "canonical": true, - "file": "sql_ssl_certs_service.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.sql.v1beta4.SqlSslCertsService.Delete", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "sha1_fingerprint", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1beta4.Operation", - "client": { - "shortName": "SqlSslCertsServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlSslCertsServiceClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.sql.v1beta4.SqlSslCertsService.Delete", - "service": { - "shortName": "SqlSslCertsService", - "fullName": "google.cloud.sql.v1beta4.SqlSslCertsService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlSslCertsService_Get_async", - "title": "SqlBackupRunsService get Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a particular SSL certificate. Does not include the private key (required for usage). The private key must be saved from the response to initial creation.", - "canonical": true, - "file": "sql_ssl_certs_service.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.sql.v1beta4.SqlSslCertsService.Get", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "sha1_fingerprint", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1beta4.SslCert", - "client": { - "shortName": "SqlSslCertsServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlSslCertsServiceClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.sql.v1beta4.SqlSslCertsService.Get", - "service": { - "shortName": "SqlSslCertsService", - "fullName": "google.cloud.sql.v1beta4.SqlSslCertsService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlSslCertsService_Insert_async", - "title": "SqlBackupRunsService insert Sample", - "origin": "API_DEFINITION", - "description": " Creates an SSL certificate and returns it along with the private key and server certificate authority. The new certificate will not be usable until the instance is restarted.", - "canonical": true, - "file": "sql_ssl_certs_service.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.sql.v1beta4.SqlSslCertsService.Insert", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "body", - "type": ".google.cloud.sql.v1beta4.SslCertsInsertRequest" - } - ], - "resultType": ".google.cloud.sql.v1beta4.SslCertsInsertResponse", - "client": { - "shortName": "SqlSslCertsServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlSslCertsServiceClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.sql.v1beta4.SqlSslCertsService.Insert", - "service": { - "shortName": "SqlSslCertsService", - "fullName": "google.cloud.sql.v1beta4.SqlSslCertsService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlSslCertsService_List_async", - "title": "SqlBackupRunsService list Sample", - "origin": "API_DEFINITION", - "description": " Lists all of the current SSL certificates for the instance.", - "canonical": true, - "file": "sql_ssl_certs_service.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.sql.v1beta4.SqlSslCertsService.List", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1beta4.SslCertsListResponse", - "client": { - "shortName": "SqlSslCertsServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlSslCertsServiceClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.sql.v1beta4.SqlSslCertsService.List", - "service": { - "shortName": "SqlSslCertsService", - "fullName": "google.cloud.sql.v1beta4.SqlSslCertsService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlTiersService_List_async", - "title": "SqlBackupRunsService list Sample", - "origin": "API_DEFINITION", - "description": " Lists all available machine types (tiers) for Cloud SQL, for example, `db-custom-1-3840`. For related information, see [Pricing](/sql/pricing).", - "canonical": true, - "file": "sql_tiers_service.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 52, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.sql.v1beta4.SqlTiersService.List", - "async": true, - "parameters": [ - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1beta4.TiersListResponse", - "client": { - "shortName": "SqlTiersServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlTiersServiceClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.sql.v1beta4.SqlTiersService.List", - "service": { - "shortName": "SqlTiersService", - "fullName": "google.cloud.sql.v1beta4.SqlTiersService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlUsersService_Delete_async", - "title": "SqlBackupRunsService delete Sample", - "origin": "API_DEFINITION", - "description": " Deletes a user from a Cloud SQL instance.", - "canonical": true, - "file": "sql_users_service.delete.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Delete", - "fullName": "google.cloud.sql.v1beta4.SqlUsersService.Delete", - "async": true, - "parameters": [ - { - "name": "host", - "type": "TYPE_STRING" - }, - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1beta4.Operation", - "client": { - "shortName": "SqlUsersServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlUsersServiceClient" - }, - "method": { - "shortName": "Delete", - "fullName": "google.cloud.sql.v1beta4.SqlUsersService.Delete", - "service": { - "shortName": "SqlUsersService", - "fullName": "google.cloud.sql.v1beta4.SqlUsersService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlUsersService_Get_async", - "title": "SqlBackupRunsService get Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a resource containing information about a user.", - "canonical": true, - "file": "sql_users_service.get.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Get", - "fullName": "google.cloud.sql.v1beta4.SqlUsersService.Get", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "host", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1beta4.User", - "client": { - "shortName": "SqlUsersServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlUsersServiceClient" - }, - "method": { - "shortName": "Get", - "fullName": "google.cloud.sql.v1beta4.SqlUsersService.Get", - "service": { - "shortName": "SqlUsersService", - "fullName": "google.cloud.sql.v1beta4.SqlUsersService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlUsersService_Insert_async", - "title": "SqlBackupRunsService insert Sample", - "origin": "API_DEFINITION", - "description": " Creates a new user in a Cloud SQL instance.", - "canonical": true, - "file": "sql_users_service.insert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Insert", - "fullName": "google.cloud.sql.v1beta4.SqlUsersService.Insert", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "body", - "type": ".google.cloud.sql.v1beta4.User" - } - ], - "resultType": ".google.cloud.sql.v1beta4.Operation", - "client": { - "shortName": "SqlUsersServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlUsersServiceClient" - }, - "method": { - "shortName": "Insert", - "fullName": "google.cloud.sql.v1beta4.SqlUsersService.Insert", - "service": { - "shortName": "SqlUsersService", - "fullName": "google.cloud.sql.v1beta4.SqlUsersService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlUsersService_List_async", - "title": "SqlBackupRunsService list Sample", - "origin": "API_DEFINITION", - "description": " Lists users in the specified Cloud SQL instance.", - "canonical": true, - "file": "sql_users_service.list.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "List", - "fullName": "google.cloud.sql.v1beta4.SqlUsersService.List", - "async": true, - "parameters": [ - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.sql.v1beta4.UsersListResponse", - "client": { - "shortName": "SqlUsersServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlUsersServiceClient" - }, - "method": { - "shortName": "List", - "fullName": "google.cloud.sql.v1beta4.SqlUsersService.List", - "service": { - "shortName": "SqlUsersService", - "fullName": "google.cloud.sql.v1beta4.SqlUsersService" - } - } - } - }, - { - "regionTag": "sqladmin_v1beta4_generated_SqlUsersService_Update_async", - "title": "SqlBackupRunsService update Sample", - "origin": "API_DEFINITION", - "description": " Updates an existing user in a Cloud SQL instance.", - "canonical": true, - "file": "sql_users_service.update.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Update", - "fullName": "google.cloud.sql.v1beta4.SqlUsersService.Update", - "async": true, - "parameters": [ - { - "name": "host", - "type": "TYPE_STRING" - }, - { - "name": "instance", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "project", - "type": "TYPE_STRING" - }, - { - "name": "database_roles", - "type": "TYPE_STRING[]" - }, - { - "name": "revoke_existing_roles", - "type": "TYPE_BOOL" - }, - { - "name": "body", - "type": ".google.cloud.sql.v1beta4.User" - } - ], - "resultType": ".google.cloud.sql.v1beta4.Operation", - "client": { - "shortName": "SqlUsersServiceClient", - "fullName": "google.cloud.sql.v1beta4.SqlUsersServiceClient" - }, - "method": { - "shortName": "Update", - "fullName": "google.cloud.sql.v1beta4.SqlUsersService.Update", - "service": { - "shortName": "SqlUsersService", - "fullName": "google.cloud.sql.v1beta4.SqlUsersService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-storagebatchoperations/samples/generated/v1/snippet_metadata_google.cloud.storagebatchoperations.v1.json b/packages/google-cloud-storagebatchoperations/samples/generated/v1/snippet_metadata_google.cloud.storagebatchoperations.v1.json deleted file mode 100644 index fbee03893bec..000000000000 --- a/packages/google-cloud-storagebatchoperations/samples/generated/v1/snippet_metadata_google.cloud.storagebatchoperations.v1.json +++ /dev/null @@ -1,351 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-storagebatchoperations", - "version": "0.3.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.storagebatchoperations.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "storagebatchoperations_v1_generated_StorageBatchOperations_ListJobs_async", - "title": "StorageBatchOperations listJobs Sample", - "origin": "API_DEFINITION", - "description": " Lists Jobs in a given project.", - "canonical": true, - "file": "storage_batch_operations.list_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListJobs", - "fullName": "google.cloud.storagebatchoperations.v1.StorageBatchOperations.ListJobs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.storagebatchoperations.v1.ListJobsResponse", - "client": { - "shortName": "StorageBatchOperationsClient", - "fullName": "google.cloud.storagebatchoperations.v1.StorageBatchOperationsClient" - }, - "method": { - "shortName": "ListJobs", - "fullName": "google.cloud.storagebatchoperations.v1.StorageBatchOperations.ListJobs", - "service": { - "shortName": "StorageBatchOperations", - "fullName": "google.cloud.storagebatchoperations.v1.StorageBatchOperations" - } - } - } - }, - { - "regionTag": "storagebatchoperations_v1_generated_StorageBatchOperations_GetJob_async", - "title": "StorageBatchOperations getJob Sample", - "origin": "API_DEFINITION", - "description": " Gets a batch job.", - "canonical": true, - "file": "storage_batch_operations.get_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetJob", - "fullName": "google.cloud.storagebatchoperations.v1.StorageBatchOperations.GetJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.storagebatchoperations.v1.Job", - "client": { - "shortName": "StorageBatchOperationsClient", - "fullName": "google.cloud.storagebatchoperations.v1.StorageBatchOperationsClient" - }, - "method": { - "shortName": "GetJob", - "fullName": "google.cloud.storagebatchoperations.v1.StorageBatchOperations.GetJob", - "service": { - "shortName": "StorageBatchOperations", - "fullName": "google.cloud.storagebatchoperations.v1.StorageBatchOperations" - } - } - } - }, - { - "regionTag": "storagebatchoperations_v1_generated_StorageBatchOperations_CreateJob_async", - "title": "StorageBatchOperations createJob Sample", - "origin": "API_DEFINITION", - "description": " Creates a batch job.", - "canonical": true, - "file": "storage_batch_operations.create_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateJob", - "fullName": "google.cloud.storagebatchoperations.v1.StorageBatchOperations.CreateJob", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "job_id", - "type": "TYPE_STRING" - }, - { - "name": "job", - "type": ".google.cloud.storagebatchoperations.v1.Job" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "StorageBatchOperationsClient", - "fullName": "google.cloud.storagebatchoperations.v1.StorageBatchOperationsClient" - }, - "method": { - "shortName": "CreateJob", - "fullName": "google.cloud.storagebatchoperations.v1.StorageBatchOperations.CreateJob", - "service": { - "shortName": "StorageBatchOperations", - "fullName": "google.cloud.storagebatchoperations.v1.StorageBatchOperations" - } - } - } - }, - { - "regionTag": "storagebatchoperations_v1_generated_StorageBatchOperations_DeleteJob_async", - "title": "StorageBatchOperations deleteJob Sample", - "origin": "API_DEFINITION", - "description": " Deletes a batch job.", - "canonical": true, - "file": "storage_batch_operations.delete_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteJob", - "fullName": "google.cloud.storagebatchoperations.v1.StorageBatchOperations.DeleteJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "StorageBatchOperationsClient", - "fullName": "google.cloud.storagebatchoperations.v1.StorageBatchOperationsClient" - }, - "method": { - "shortName": "DeleteJob", - "fullName": "google.cloud.storagebatchoperations.v1.StorageBatchOperations.DeleteJob", - "service": { - "shortName": "StorageBatchOperations", - "fullName": "google.cloud.storagebatchoperations.v1.StorageBatchOperations" - } - } - } - }, - { - "regionTag": "storagebatchoperations_v1_generated_StorageBatchOperations_CancelJob_async", - "title": "StorageBatchOperations cancelJob Sample", - "origin": "API_DEFINITION", - "description": " Cancels a batch job.", - "canonical": true, - "file": "storage_batch_operations.cancel_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CancelJob", - "fullName": "google.cloud.storagebatchoperations.v1.StorageBatchOperations.CancelJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.storagebatchoperations.v1.CancelJobResponse", - "client": { - "shortName": "StorageBatchOperationsClient", - "fullName": "google.cloud.storagebatchoperations.v1.StorageBatchOperationsClient" - }, - "method": { - "shortName": "CancelJob", - "fullName": "google.cloud.storagebatchoperations.v1.StorageBatchOperations.CancelJob", - "service": { - "shortName": "StorageBatchOperations", - "fullName": "google.cloud.storagebatchoperations.v1.StorageBatchOperations" - } - } - } - }, - { - "regionTag": "storagebatchoperations_v1_generated_StorageBatchOperations_ListBucketOperations_async", - "title": "StorageBatchOperations listBucketOperations Sample", - "origin": "API_DEFINITION", - "description": " Lists BucketOperations in a given project and job.", - "canonical": true, - "file": "storage_batch_operations.list_bucket_operations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBucketOperations", - "fullName": "google.cloud.storagebatchoperations.v1.StorageBatchOperations.ListBucketOperations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.storagebatchoperations.v1.ListBucketOperationsResponse", - "client": { - "shortName": "StorageBatchOperationsClient", - "fullName": "google.cloud.storagebatchoperations.v1.StorageBatchOperationsClient" - }, - "method": { - "shortName": "ListBucketOperations", - "fullName": "google.cloud.storagebatchoperations.v1.StorageBatchOperations.ListBucketOperations", - "service": { - "shortName": "StorageBatchOperations", - "fullName": "google.cloud.storagebatchoperations.v1.StorageBatchOperations" - } - } - } - }, - { - "regionTag": "storagebatchoperations_v1_generated_StorageBatchOperations_GetBucketOperation_async", - "title": "StorageBatchOperations getBucketOperation Sample", - "origin": "API_DEFINITION", - "description": " Gets a BucketOperation.", - "canonical": true, - "file": "storage_batch_operations.get_bucket_operation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBucketOperation", - "fullName": "google.cloud.storagebatchoperations.v1.StorageBatchOperations.GetBucketOperation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.storagebatchoperations.v1.BucketOperation", - "client": { - "shortName": "StorageBatchOperationsClient", - "fullName": "google.cloud.storagebatchoperations.v1.StorageBatchOperationsClient" - }, - "method": { - "shortName": "GetBucketOperation", - "fullName": "google.cloud.storagebatchoperations.v1.StorageBatchOperations.GetBucketOperation", - "service": { - "shortName": "StorageBatchOperations", - "fullName": "google.cloud.storagebatchoperations.v1.StorageBatchOperations" - } - } - } - } - ] -} diff --git a/packages/google-cloud-storageinsights/samples/generated/v1/snippet_metadata_google.cloud.storageinsights.v1.json b/packages/google-cloud-storageinsights/samples/generated/v1/snippet_metadata_google.cloud.storageinsights.v1.json deleted file mode 100644 index 3d22aeb91d91..000000000000 --- a/packages/google-cloud-storageinsights/samples/generated/v1/snippet_metadata_google.cloud.storageinsights.v1.json +++ /dev/null @@ -1,671 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-storageinsights", - "version": "2.2.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.storageinsights.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "storageinsights_v1_generated_StorageInsights_ListReportConfigs_async", - "title": "StorageInsights listReportConfigs Sample", - "origin": "API_DEFINITION", - "description": " Lists ReportConfigs in a given project and location.", - "canonical": true, - "file": "storage_insights.list_report_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListReportConfigs", - "fullName": "google.cloud.storageinsights.v1.StorageInsights.ListReportConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.storageinsights.v1.ListReportConfigsResponse", - "client": { - "shortName": "StorageInsightsClient", - "fullName": "google.cloud.storageinsights.v1.StorageInsightsClient" - }, - "method": { - "shortName": "ListReportConfigs", - "fullName": "google.cloud.storageinsights.v1.StorageInsights.ListReportConfigs", - "service": { - "shortName": "StorageInsights", - "fullName": "google.cloud.storageinsights.v1.StorageInsights" - } - } - } - }, - { - "regionTag": "storageinsights_v1_generated_StorageInsights_GetReportConfig_async", - "title": "StorageInsights getReportConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single ReportConfig.", - "canonical": true, - "file": "storage_insights.get_report_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetReportConfig", - "fullName": "google.cloud.storageinsights.v1.StorageInsights.GetReportConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.storageinsights.v1.ReportConfig", - "client": { - "shortName": "StorageInsightsClient", - "fullName": "google.cloud.storageinsights.v1.StorageInsightsClient" - }, - "method": { - "shortName": "GetReportConfig", - "fullName": "google.cloud.storageinsights.v1.StorageInsights.GetReportConfig", - "service": { - "shortName": "StorageInsights", - "fullName": "google.cloud.storageinsights.v1.StorageInsights" - } - } - } - }, - { - "regionTag": "storageinsights_v1_generated_StorageInsights_CreateReportConfig_async", - "title": "StorageInsights createReportConfig Sample", - "origin": "API_DEFINITION", - "description": " Creates a new ReportConfig in a given project and location.", - "canonical": true, - "file": "storage_insights.create_report_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateReportConfig", - "fullName": "google.cloud.storageinsights.v1.StorageInsights.CreateReportConfig", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "report_config", - "type": ".google.cloud.storageinsights.v1.ReportConfig" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.storageinsights.v1.ReportConfig", - "client": { - "shortName": "StorageInsightsClient", - "fullName": "google.cloud.storageinsights.v1.StorageInsightsClient" - }, - "method": { - "shortName": "CreateReportConfig", - "fullName": "google.cloud.storageinsights.v1.StorageInsights.CreateReportConfig", - "service": { - "shortName": "StorageInsights", - "fullName": "google.cloud.storageinsights.v1.StorageInsights" - } - } - } - }, - { - "regionTag": "storageinsights_v1_generated_StorageInsights_UpdateReportConfig_async", - "title": "StorageInsights updateReportConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single ReportConfig.", - "canonical": true, - "file": "storage_insights.update_report_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateReportConfig", - "fullName": "google.cloud.storageinsights.v1.StorageInsights.UpdateReportConfig", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "report_config", - "type": ".google.cloud.storageinsights.v1.ReportConfig" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.storageinsights.v1.ReportConfig", - "client": { - "shortName": "StorageInsightsClient", - "fullName": "google.cloud.storageinsights.v1.StorageInsightsClient" - }, - "method": { - "shortName": "UpdateReportConfig", - "fullName": "google.cloud.storageinsights.v1.StorageInsights.UpdateReportConfig", - "service": { - "shortName": "StorageInsights", - "fullName": "google.cloud.storageinsights.v1.StorageInsights" - } - } - } - }, - { - "regionTag": "storageinsights_v1_generated_StorageInsights_DeleteReportConfig_async", - "title": "StorageInsights deleteReportConfig Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single ReportConfig.", - "canonical": true, - "file": "storage_insights.delete_report_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteReportConfig", - "fullName": "google.cloud.storageinsights.v1.StorageInsights.DeleteReportConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "StorageInsightsClient", - "fullName": "google.cloud.storageinsights.v1.StorageInsightsClient" - }, - "method": { - "shortName": "DeleteReportConfig", - "fullName": "google.cloud.storageinsights.v1.StorageInsights.DeleteReportConfig", - "service": { - "shortName": "StorageInsights", - "fullName": "google.cloud.storageinsights.v1.StorageInsights" - } - } - } - }, - { - "regionTag": "storageinsights_v1_generated_StorageInsights_ListReportDetails_async", - "title": "StorageInsights listReportDetails Sample", - "origin": "API_DEFINITION", - "description": " Lists ReportDetails in a given project and location.", - "canonical": true, - "file": "storage_insights.list_report_details.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListReportDetails", - "fullName": "google.cloud.storageinsights.v1.StorageInsights.ListReportDetails", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.storageinsights.v1.ListReportDetailsResponse", - "client": { - "shortName": "StorageInsightsClient", - "fullName": "google.cloud.storageinsights.v1.StorageInsightsClient" - }, - "method": { - "shortName": "ListReportDetails", - "fullName": "google.cloud.storageinsights.v1.StorageInsights.ListReportDetails", - "service": { - "shortName": "StorageInsights", - "fullName": "google.cloud.storageinsights.v1.StorageInsights" - } - } - } - }, - { - "regionTag": "storageinsights_v1_generated_StorageInsights_GetReportDetail_async", - "title": "StorageInsights getReportDetail Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single ReportDetail.", - "canonical": true, - "file": "storage_insights.get_report_detail.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetReportDetail", - "fullName": "google.cloud.storageinsights.v1.StorageInsights.GetReportDetail", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.storageinsights.v1.ReportDetail", - "client": { - "shortName": "StorageInsightsClient", - "fullName": "google.cloud.storageinsights.v1.StorageInsightsClient" - }, - "method": { - "shortName": "GetReportDetail", - "fullName": "google.cloud.storageinsights.v1.StorageInsights.GetReportDetail", - "service": { - "shortName": "StorageInsights", - "fullName": "google.cloud.storageinsights.v1.StorageInsights" - } - } - } - }, - { - "regionTag": "storageinsights_v1_generated_StorageInsights_ListDatasetConfigs_async", - "title": "StorageInsights listDatasetConfigs Sample", - "origin": "API_DEFINITION", - "description": " Lists the dataset configurations in a given project for a given location.", - "canonical": true, - "file": "storage_insights.list_dataset_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDatasetConfigs", - "fullName": "google.cloud.storageinsights.v1.StorageInsights.ListDatasetConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.storageinsights.v1.ListDatasetConfigsResponse", - "client": { - "shortName": "StorageInsightsClient", - "fullName": "google.cloud.storageinsights.v1.StorageInsightsClient" - }, - "method": { - "shortName": "ListDatasetConfigs", - "fullName": "google.cloud.storageinsights.v1.StorageInsights.ListDatasetConfigs", - "service": { - "shortName": "StorageInsights", - "fullName": "google.cloud.storageinsights.v1.StorageInsights" - } - } - } - }, - { - "regionTag": "storageinsights_v1_generated_StorageInsights_GetDatasetConfig_async", - "title": "StorageInsights getDatasetConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets the dataset configuration in a given project for a given location.", - "canonical": true, - "file": "storage_insights.get_dataset_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDatasetConfig", - "fullName": "google.cloud.storageinsights.v1.StorageInsights.GetDatasetConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.storageinsights.v1.DatasetConfig", - "client": { - "shortName": "StorageInsightsClient", - "fullName": "google.cloud.storageinsights.v1.StorageInsightsClient" - }, - "method": { - "shortName": "GetDatasetConfig", - "fullName": "google.cloud.storageinsights.v1.StorageInsights.GetDatasetConfig", - "service": { - "shortName": "StorageInsights", - "fullName": "google.cloud.storageinsights.v1.StorageInsights" - } - } - } - }, - { - "regionTag": "storageinsights_v1_generated_StorageInsights_CreateDatasetConfig_async", - "title": "StorageInsights createDatasetConfig Sample", - "origin": "API_DEFINITION", - "description": " Creates a dataset configuration in a given project for a given location.", - "canonical": true, - "file": "storage_insights.create_dataset_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDatasetConfig", - "fullName": "google.cloud.storageinsights.v1.StorageInsights.CreateDatasetConfig", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "dataset_config_id", - "type": "TYPE_STRING" - }, - { - "name": "dataset_config", - "type": ".google.cloud.storageinsights.v1.DatasetConfig" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "StorageInsightsClient", - "fullName": "google.cloud.storageinsights.v1.StorageInsightsClient" - }, - "method": { - "shortName": "CreateDatasetConfig", - "fullName": "google.cloud.storageinsights.v1.StorageInsights.CreateDatasetConfig", - "service": { - "shortName": "StorageInsights", - "fullName": "google.cloud.storageinsights.v1.StorageInsights" - } - } - } - }, - { - "regionTag": "storageinsights_v1_generated_StorageInsights_UpdateDatasetConfig_async", - "title": "StorageInsights updateDatasetConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates a dataset configuration in a given project for a given location.", - "canonical": true, - "file": "storage_insights.update_dataset_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDatasetConfig", - "fullName": "google.cloud.storageinsights.v1.StorageInsights.UpdateDatasetConfig", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "dataset_config", - "type": ".google.cloud.storageinsights.v1.DatasetConfig" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "StorageInsightsClient", - "fullName": "google.cloud.storageinsights.v1.StorageInsightsClient" - }, - "method": { - "shortName": "UpdateDatasetConfig", - "fullName": "google.cloud.storageinsights.v1.StorageInsights.UpdateDatasetConfig", - "service": { - "shortName": "StorageInsights", - "fullName": "google.cloud.storageinsights.v1.StorageInsights" - } - } - } - }, - { - "regionTag": "storageinsights_v1_generated_StorageInsights_DeleteDatasetConfig_async", - "title": "StorageInsights deleteDatasetConfig Sample", - "origin": "API_DEFINITION", - "description": " Deletes a dataset configuration in a given project for a given location.", - "canonical": true, - "file": "storage_insights.delete_dataset_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDatasetConfig", - "fullName": "google.cloud.storageinsights.v1.StorageInsights.DeleteDatasetConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "StorageInsightsClient", - "fullName": "google.cloud.storageinsights.v1.StorageInsightsClient" - }, - "method": { - "shortName": "DeleteDatasetConfig", - "fullName": "google.cloud.storageinsights.v1.StorageInsights.DeleteDatasetConfig", - "service": { - "shortName": "StorageInsights", - "fullName": "google.cloud.storageinsights.v1.StorageInsights" - } - } - } - }, - { - "regionTag": "storageinsights_v1_generated_StorageInsights_LinkDataset_async", - "title": "StorageInsights linkDataset Sample", - "origin": "API_DEFINITION", - "description": " Links a dataset to BigQuery in a given project for a given location.", - "canonical": true, - "file": "storage_insights.link_dataset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "LinkDataset", - "fullName": "google.cloud.storageinsights.v1.StorageInsights.LinkDataset", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "StorageInsightsClient", - "fullName": "google.cloud.storageinsights.v1.StorageInsightsClient" - }, - "method": { - "shortName": "LinkDataset", - "fullName": "google.cloud.storageinsights.v1.StorageInsights.LinkDataset", - "service": { - "shortName": "StorageInsights", - "fullName": "google.cloud.storageinsights.v1.StorageInsights" - } - } - } - }, - { - "regionTag": "storageinsights_v1_generated_StorageInsights_UnlinkDataset_async", - "title": "StorageInsights unlinkDataset Sample", - "origin": "API_DEFINITION", - "description": " Unlinks a dataset from BigQuery in a given project for a given location.", - "canonical": true, - "file": "storage_insights.unlink_dataset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UnlinkDataset", - "fullName": "google.cloud.storageinsights.v1.StorageInsights.UnlinkDataset", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "StorageInsightsClient", - "fullName": "google.cloud.storageinsights.v1.StorageInsightsClient" - }, - "method": { - "shortName": "UnlinkDataset", - "fullName": "google.cloud.storageinsights.v1.StorageInsights.UnlinkDataset", - "service": { - "shortName": "StorageInsights", - "fullName": "google.cloud.storageinsights.v1.StorageInsights" - } - } - } - } - ] -} diff --git a/packages/google-cloud-support/samples/generated/v2/snippet_metadata_google.cloud.support.v2.json b/packages/google-cloud-support/samples/generated/v2/snippet_metadata_google.cloud.support.v2.json deleted file mode 100644 index 52652e7e3ccd..000000000000 --- a/packages/google-cloud-support/samples/generated/v2/snippet_metadata_google.cloud.support.v2.json +++ /dev/null @@ -1,599 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-support", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.support.v2", - "version": "v2" - } - ] - }, - "snippets": [ - { - "regionTag": "cloudsupport_v2_generated_CaseAttachmentService_ListAttachments_async", - "title": "CaseAttachmentService listAttachments Sample", - "origin": "API_DEFINITION", - "description": " List all the attachments associated with a support case.", - "canonical": true, - "file": "case_attachment_service.list_attachments.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAttachments", - "fullName": "google.cloud.support.v2.CaseAttachmentService.ListAttachments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.support.v2.ListAttachmentsResponse", - "client": { - "shortName": "CaseAttachmentServiceClient", - "fullName": "google.cloud.support.v2.CaseAttachmentServiceClient" - }, - "method": { - "shortName": "ListAttachments", - "fullName": "google.cloud.support.v2.CaseAttachmentService.ListAttachments", - "service": { - "shortName": "CaseAttachmentService", - "fullName": "google.cloud.support.v2.CaseAttachmentService" - } - } - } - }, - { - "regionTag": "cloudsupport_v2_generated_CaseAttachmentService_GetAttachment_async", - "title": "CaseAttachmentService getAttachment Sample", - "origin": "API_DEFINITION", - "description": " Retrieve an attachment associated with a support case. EXAMPLES: cURL: ```shell attachment=\"projects/some-project/cases/23598314/attachments/0684M00000P3h1fQAB\" curl \\ --header \"Authorization: Bearer $(gcloud auth print-access-token)\" \\ \"https://cloudsupport.googleapis.com/v2/$attachment\" ``` Python: ```python import googleapiclient.discovery api_version = \"v2\" supportApiService = googleapiclient.discovery.build( serviceName=\"cloudsupport\", version=api_version, discoveryServiceUrl=f\"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}\", ) request = ( supportApiService.cases() .attachments() .get(name=\"projects/some-project/cases/43595344/attachments/0684M00000P3h1fQAB\") ) print(request.execute()) ```", - "canonical": true, - "file": "case_attachment_service.get_attachment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAttachment", - "fullName": "google.cloud.support.v2.CaseAttachmentService.GetAttachment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.support.v2.Attachment", - "client": { - "shortName": "CaseAttachmentServiceClient", - "fullName": "google.cloud.support.v2.CaseAttachmentServiceClient" - }, - "method": { - "shortName": "GetAttachment", - "fullName": "google.cloud.support.v2.CaseAttachmentService.GetAttachment", - "service": { - "shortName": "CaseAttachmentService", - "fullName": "google.cloud.support.v2.CaseAttachmentService" - } - } - } - }, - { - "regionTag": "cloudsupport_v2_generated_CaseService_GetCase_async", - "title": "CaseAttachmentService getCase Sample", - "origin": "API_DEFINITION", - "description": " Retrieve a case.", - "canonical": true, - "file": "case_service.get_case.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCase", - "fullName": "google.cloud.support.v2.CaseService.GetCase", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.support.v2.Case", - "client": { - "shortName": "CaseServiceClient", - "fullName": "google.cloud.support.v2.CaseServiceClient" - }, - "method": { - "shortName": "GetCase", - "fullName": "google.cloud.support.v2.CaseService.GetCase", - "service": { - "shortName": "CaseService", - "fullName": "google.cloud.support.v2.CaseService" - } - } - } - }, - { - "regionTag": "cloudsupport_v2_generated_CaseService_ListCases_async", - "title": "CaseAttachmentService listCases Sample", - "origin": "API_DEFINITION", - "description": " Retrieve all cases under a parent, but not its children. For example, listing cases under an organization only returns the cases that are directly parented by that organization. To retrieve cases under an organization and its projects, use `cases.search`.", - "canonical": true, - "file": "case_service.list_cases.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCases", - "fullName": "google.cloud.support.v2.CaseService.ListCases", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.support.v2.ListCasesResponse", - "client": { - "shortName": "CaseServiceClient", - "fullName": "google.cloud.support.v2.CaseServiceClient" - }, - "method": { - "shortName": "ListCases", - "fullName": "google.cloud.support.v2.CaseService.ListCases", - "service": { - "shortName": "CaseService", - "fullName": "google.cloud.support.v2.CaseService" - } - } - } - }, - { - "regionTag": "cloudsupport_v2_generated_CaseService_SearchCases_async", - "title": "CaseAttachmentService searchCases Sample", - "origin": "API_DEFINITION", - "description": " Search for cases using a query.", - "canonical": true, - "file": "case_service.search_cases.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 92, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchCases", - "fullName": "google.cloud.support.v2.CaseService.SearchCases", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.support.v2.SearchCasesResponse", - "client": { - "shortName": "CaseServiceClient", - "fullName": "google.cloud.support.v2.CaseServiceClient" - }, - "method": { - "shortName": "SearchCases", - "fullName": "google.cloud.support.v2.CaseService.SearchCases", - "service": { - "shortName": "CaseService", - "fullName": "google.cloud.support.v2.CaseService" - } - } - } - }, - { - "regionTag": "cloudsupport_v2_generated_CaseService_CreateCase_async", - "title": "CaseAttachmentService createCase Sample", - "origin": "API_DEFINITION", - "description": " Create a new case and associate it with a parent. It must have the following fields set: `display_name`, `description`, `classification`, and `priority`. If you're just testing the API and don't want to route your case to an agent, set `testCase=true`.", - "canonical": true, - "file": "case_service.create_case.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCase", - "fullName": "google.cloud.support.v2.CaseService.CreateCase", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "case", - "type": ".google.cloud.support.v2.Case" - } - ], - "resultType": ".google.cloud.support.v2.Case", - "client": { - "shortName": "CaseServiceClient", - "fullName": "google.cloud.support.v2.CaseServiceClient" - }, - "method": { - "shortName": "CreateCase", - "fullName": "google.cloud.support.v2.CaseService.CreateCase", - "service": { - "shortName": "CaseService", - "fullName": "google.cloud.support.v2.CaseService" - } - } - } - }, - { - "regionTag": "cloudsupport_v2_generated_CaseService_UpdateCase_async", - "title": "CaseAttachmentService updateCase Sample", - "origin": "API_DEFINITION", - "description": " Update a case. Only some fields can be updated.", - "canonical": true, - "file": "case_service.update_case.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCase", - "fullName": "google.cloud.support.v2.CaseService.UpdateCase", - "async": true, - "parameters": [ - { - "name": "case", - "type": ".google.cloud.support.v2.Case" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.support.v2.Case", - "client": { - "shortName": "CaseServiceClient", - "fullName": "google.cloud.support.v2.CaseServiceClient" - }, - "method": { - "shortName": "UpdateCase", - "fullName": "google.cloud.support.v2.CaseService.UpdateCase", - "service": { - "shortName": "CaseService", - "fullName": "google.cloud.support.v2.CaseService" - } - } - } - }, - { - "regionTag": "cloudsupport_v2_generated_CaseService_EscalateCase_async", - "title": "CaseAttachmentService escalateCase Sample", - "origin": "API_DEFINITION", - "description": " Escalate a case, starting the Google Cloud Support escalation management process. This operation is only available for some support services. Go to https://cloud.google.com/support and look for 'Technical support escalations' in the feature list to find out which ones let you do that.", - "canonical": true, - "file": "case_service.escalate_case.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "EscalateCase", - "fullName": "google.cloud.support.v2.CaseService.EscalateCase", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "escalation", - "type": ".google.cloud.support.v2.Escalation" - } - ], - "resultType": ".google.cloud.support.v2.Case", - "client": { - "shortName": "CaseServiceClient", - "fullName": "google.cloud.support.v2.CaseServiceClient" - }, - "method": { - "shortName": "EscalateCase", - "fullName": "google.cloud.support.v2.CaseService.EscalateCase", - "service": { - "shortName": "CaseService", - "fullName": "google.cloud.support.v2.CaseService" - } - } - } - }, - { - "regionTag": "cloudsupport_v2_generated_CaseService_CloseCase_async", - "title": "CaseAttachmentService closeCase Sample", - "origin": "API_DEFINITION", - "description": " Close a case.", - "canonical": true, - "file": "case_service.close_case.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CloseCase", - "fullName": "google.cloud.support.v2.CaseService.CloseCase", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.support.v2.Case", - "client": { - "shortName": "CaseServiceClient", - "fullName": "google.cloud.support.v2.CaseServiceClient" - }, - "method": { - "shortName": "CloseCase", - "fullName": "google.cloud.support.v2.CaseService.CloseCase", - "service": { - "shortName": "CaseService", - "fullName": "google.cloud.support.v2.CaseService" - } - } - } - }, - { - "regionTag": "cloudsupport_v2_generated_CaseService_SearchCaseClassifications_async", - "title": "CaseAttachmentService searchCaseClassifications Sample", - "origin": "API_DEFINITION", - "description": " Retrieve valid classifications to use when creating a support case. Classifications are hierarchical. Each classification is a string containing all levels of the hierarchy separated by `\" > \"`. For example, `\"Technical Issue > Compute > Compute Engine\"`. Classification IDs returned by this endpoint are valid for at least six months. When a classification is deactivated, this endpoint immediately stops returning it. After six months, `case.create` requests using the classification will fail.", - "canonical": true, - "file": "case_service.search_case_classifications.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchCaseClassifications", - "fullName": "google.cloud.support.v2.CaseService.SearchCaseClassifications", - "async": true, - "parameters": [ - { - "name": "query", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.support.v2.SearchCaseClassificationsResponse", - "client": { - "shortName": "CaseServiceClient", - "fullName": "google.cloud.support.v2.CaseServiceClient" - }, - "method": { - "shortName": "SearchCaseClassifications", - "fullName": "google.cloud.support.v2.CaseService.SearchCaseClassifications", - "service": { - "shortName": "CaseService", - "fullName": "google.cloud.support.v2.CaseService" - } - } - } - }, - { - "regionTag": "cloudsupport_v2_generated_CommentService_ListComments_async", - "title": "CaseAttachmentService listComments Sample", - "origin": "API_DEFINITION", - "description": " List all the comments associated with a case.", - "canonical": true, - "file": "comment_service.list_comments.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListComments", - "fullName": "google.cloud.support.v2.CommentService.ListComments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.support.v2.ListCommentsResponse", - "client": { - "shortName": "CommentServiceClient", - "fullName": "google.cloud.support.v2.CommentServiceClient" - }, - "method": { - "shortName": "ListComments", - "fullName": "google.cloud.support.v2.CommentService.ListComments", - "service": { - "shortName": "CommentService", - "fullName": "google.cloud.support.v2.CommentService" - } - } - } - }, - { - "regionTag": "cloudsupport_v2_generated_CommentService_CreateComment_async", - "title": "CaseAttachmentService createComment Sample", - "origin": "API_DEFINITION", - "description": " Add a new comment to a case. The comment must have the following fields set: `body`.", - "canonical": true, - "file": "comment_service.create_comment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateComment", - "fullName": "google.cloud.support.v2.CommentService.CreateComment", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "comment", - "type": ".google.cloud.support.v2.Comment" - } - ], - "resultType": ".google.cloud.support.v2.Comment", - "client": { - "shortName": "CommentServiceClient", - "fullName": "google.cloud.support.v2.CommentServiceClient" - }, - "method": { - "shortName": "CreateComment", - "fullName": "google.cloud.support.v2.CommentService.CreateComment", - "service": { - "shortName": "CommentService", - "fullName": "google.cloud.support.v2.CommentService" - } - } - } - }, - { - "regionTag": "cloudsupport_v2_generated_CommentService_GetComment_async", - "title": "CaseAttachmentService getComment Sample", - "origin": "API_DEFINITION", - "description": " Retrieve a comment. EXAMPLES: cURL: ```shell comment=\"projects/some-project/cases/43595344/comments/234567890\" curl \\ --header \"Authorization: Bearer $(gcloud auth print-access-token)\" \\ \"https://cloudsupport.googleapis.com/v2/$comment\" ``` Python: ```python import googleapiclient.discovery api_version = \"v2\" supportApiService = googleapiclient.discovery.build( serviceName=\"cloudsupport\", version=api_version, discoveryServiceUrl=f\"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}\", ) request = supportApiService.cases().comments().get( name=\"projects/some-project/cases/43595344/comments/234567890\", ) print(request.execute()) ```", - "canonical": true, - "file": "comment_service.get_comment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetComment", - "fullName": "google.cloud.support.v2.CommentService.GetComment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.support.v2.Comment", - "client": { - "shortName": "CommentServiceClient", - "fullName": "google.cloud.support.v2.CommentServiceClient" - }, - "method": { - "shortName": "GetComment", - "fullName": "google.cloud.support.v2.CommentService.GetComment", - "service": { - "shortName": "CommentService", - "fullName": "google.cloud.support.v2.CommentService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-support/samples/generated/v2beta/snippet_metadata_google.cloud.support.v2beta.json b/packages/google-cloud-support/samples/generated/v2beta/snippet_metadata_google.cloud.support.v2beta.json deleted file mode 100644 index b1a161618568..000000000000 --- a/packages/google-cloud-support/samples/generated/v2beta/snippet_metadata_google.cloud.support.v2beta.json +++ /dev/null @@ -1,659 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-support", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.support.v2beta", - "version": "v2beta" - } - ] - }, - "snippets": [ - { - "regionTag": "cloudsupport_v2beta_generated_CaseAttachmentService_ListAttachments_async", - "title": "CaseAttachmentService listAttachments Sample", - "origin": "API_DEFINITION", - "description": " List all the attachments associated with a support case.", - "canonical": true, - "file": "case_attachment_service.list_attachments.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAttachments", - "fullName": "google.cloud.support.v2beta.CaseAttachmentService.ListAttachments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.support.v2beta.ListAttachmentsResponse", - "client": { - "shortName": "CaseAttachmentServiceClient", - "fullName": "google.cloud.support.v2beta.CaseAttachmentServiceClient" - }, - "method": { - "shortName": "ListAttachments", - "fullName": "google.cloud.support.v2beta.CaseAttachmentService.ListAttachments", - "service": { - "shortName": "CaseAttachmentService", - "fullName": "google.cloud.support.v2beta.CaseAttachmentService" - } - } - } - }, - { - "regionTag": "cloudsupport_v2beta_generated_CaseAttachmentService_GetAttachment_async", - "title": "CaseAttachmentService getAttachment Sample", - "origin": "API_DEFINITION", - "description": " Retrieve an attachment.", - "canonical": true, - "file": "case_attachment_service.get_attachment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAttachment", - "fullName": "google.cloud.support.v2beta.CaseAttachmentService.GetAttachment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.support.v2beta.Attachment", - "client": { - "shortName": "CaseAttachmentServiceClient", - "fullName": "google.cloud.support.v2beta.CaseAttachmentServiceClient" - }, - "method": { - "shortName": "GetAttachment", - "fullName": "google.cloud.support.v2beta.CaseAttachmentService.GetAttachment", - "service": { - "shortName": "CaseAttachmentService", - "fullName": "google.cloud.support.v2beta.CaseAttachmentService" - } - } - } - }, - { - "regionTag": "cloudsupport_v2beta_generated_CaseService_GetCase_async", - "title": "CaseAttachmentService getCase Sample", - "origin": "API_DEFINITION", - "description": " Retrieve a case.", - "canonical": true, - "file": "case_service.get_case.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCase", - "fullName": "google.cloud.support.v2beta.CaseService.GetCase", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.support.v2beta.Case", - "client": { - "shortName": "CaseServiceClient", - "fullName": "google.cloud.support.v2beta.CaseServiceClient" - }, - "method": { - "shortName": "GetCase", - "fullName": "google.cloud.support.v2beta.CaseService.GetCase", - "service": { - "shortName": "CaseService", - "fullName": "google.cloud.support.v2beta.CaseService" - } - } - } - }, - { - "regionTag": "cloudsupport_v2beta_generated_CaseService_ListCases_async", - "title": "CaseAttachmentService listCases Sample", - "origin": "API_DEFINITION", - "description": " Retrieve all cases under a parent, but not its children. For example, listing cases under an organization only returns the cases that are directly parented by that organization. To retrieve cases under an organization and its projects, use `cases.search`.", - "canonical": true, - "file": "case_service.list_cases.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCases", - "fullName": "google.cloud.support.v2beta.CaseService.ListCases", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "product_line", - "type": ".google.cloud.support.v2beta.ProductLine" - } - ], - "resultType": ".google.cloud.support.v2beta.ListCasesResponse", - "client": { - "shortName": "CaseServiceClient", - "fullName": "google.cloud.support.v2beta.CaseServiceClient" - }, - "method": { - "shortName": "ListCases", - "fullName": "google.cloud.support.v2beta.CaseService.ListCases", - "service": { - "shortName": "CaseService", - "fullName": "google.cloud.support.v2beta.CaseService" - } - } - } - }, - { - "regionTag": "cloudsupport_v2beta_generated_CaseService_SearchCases_async", - "title": "CaseAttachmentService searchCases Sample", - "origin": "API_DEFINITION", - "description": " Search for cases using a query.", - "canonical": true, - "file": "case_service.search_cases.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 92, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchCases", - "fullName": "google.cloud.support.v2beta.CaseService.SearchCases", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.support.v2beta.SearchCasesResponse", - "client": { - "shortName": "CaseServiceClient", - "fullName": "google.cloud.support.v2beta.CaseServiceClient" - }, - "method": { - "shortName": "SearchCases", - "fullName": "google.cloud.support.v2beta.CaseService.SearchCases", - "service": { - "shortName": "CaseService", - "fullName": "google.cloud.support.v2beta.CaseService" - } - } - } - }, - { - "regionTag": "cloudsupport_v2beta_generated_CaseService_CreateCase_async", - "title": "CaseAttachmentService createCase Sample", - "origin": "API_DEFINITION", - "description": " Create a new case and associate it with a parent. It must have the following fields set: `display_name`, `description`, `classification`, and `priority`. If you're just testing the API and don't want to route your case to an agent, set `testCase=true`.", - "canonical": true, - "file": "case_service.create_case.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCase", - "fullName": "google.cloud.support.v2beta.CaseService.CreateCase", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "case", - "type": ".google.cloud.support.v2beta.Case" - } - ], - "resultType": ".google.cloud.support.v2beta.Case", - "client": { - "shortName": "CaseServiceClient", - "fullName": "google.cloud.support.v2beta.CaseServiceClient" - }, - "method": { - "shortName": "CreateCase", - "fullName": "google.cloud.support.v2beta.CaseService.CreateCase", - "service": { - "shortName": "CaseService", - "fullName": "google.cloud.support.v2beta.CaseService" - } - } - } - }, - { - "regionTag": "cloudsupport_v2beta_generated_CaseService_UpdateCase_async", - "title": "CaseAttachmentService updateCase Sample", - "origin": "API_DEFINITION", - "description": " Update a case. Only some fields can be updated.", - "canonical": true, - "file": "case_service.update_case.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCase", - "fullName": "google.cloud.support.v2beta.CaseService.UpdateCase", - "async": true, - "parameters": [ - { - "name": "case", - "type": ".google.cloud.support.v2beta.Case" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.support.v2beta.Case", - "client": { - "shortName": "CaseServiceClient", - "fullName": "google.cloud.support.v2beta.CaseServiceClient" - }, - "method": { - "shortName": "UpdateCase", - "fullName": "google.cloud.support.v2beta.CaseService.UpdateCase", - "service": { - "shortName": "CaseService", - "fullName": "google.cloud.support.v2beta.CaseService" - } - } - } - }, - { - "regionTag": "cloudsupport_v2beta_generated_CaseService_EscalateCase_async", - "title": "CaseAttachmentService escalateCase Sample", - "origin": "API_DEFINITION", - "description": " Escalate a case, starting the Google Cloud Support escalation management process. This operation is only available for some support services. Go to https://cloud.google.com/support and look for 'Technical support escalations' in the feature list to find out which ones let you do that.", - "canonical": true, - "file": "case_service.escalate_case.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "EscalateCase", - "fullName": "google.cloud.support.v2beta.CaseService.EscalateCase", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "escalation", - "type": ".google.cloud.support.v2beta.Escalation" - } - ], - "resultType": ".google.cloud.support.v2beta.Case", - "client": { - "shortName": "CaseServiceClient", - "fullName": "google.cloud.support.v2beta.CaseServiceClient" - }, - "method": { - "shortName": "EscalateCase", - "fullName": "google.cloud.support.v2beta.CaseService.EscalateCase", - "service": { - "shortName": "CaseService", - "fullName": "google.cloud.support.v2beta.CaseService" - } - } - } - }, - { - "regionTag": "cloudsupport_v2beta_generated_CaseService_CloseCase_async", - "title": "CaseAttachmentService closeCase Sample", - "origin": "API_DEFINITION", - "description": " Close a case.", - "canonical": true, - "file": "case_service.close_case.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CloseCase", - "fullName": "google.cloud.support.v2beta.CaseService.CloseCase", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.support.v2beta.Case", - "client": { - "shortName": "CaseServiceClient", - "fullName": "google.cloud.support.v2beta.CaseServiceClient" - }, - "method": { - "shortName": "CloseCase", - "fullName": "google.cloud.support.v2beta.CaseService.CloseCase", - "service": { - "shortName": "CaseService", - "fullName": "google.cloud.support.v2beta.CaseService" - } - } - } - }, - { - "regionTag": "cloudsupport_v2beta_generated_CaseService_SearchCaseClassifications_async", - "title": "CaseAttachmentService searchCaseClassifications Sample", - "origin": "API_DEFINITION", - "description": " Retrieve valid classifications to use when creating a support case. Classifications are hierarchical. Each classification is a string containing all levels of the hierarchy separated by `\" > \"`. For example, `\"Technical Issue > Compute > Compute Engine\"`. Classification IDs returned by this endpoint are valid for at least six months. When a classification is deactivated, this endpoint immediately stops returning it. After six months, `case.create` requests using the classification will fail.", - "canonical": true, - "file": "case_service.search_case_classifications.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchCaseClassifications", - "fullName": "google.cloud.support.v2beta.CaseService.SearchCaseClassifications", - "async": true, - "parameters": [ - { - "name": "query", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "product", - "type": ".google.cloud.support.v2beta.Product" - } - ], - "resultType": ".google.cloud.support.v2beta.SearchCaseClassificationsResponse", - "client": { - "shortName": "CaseServiceClient", - "fullName": "google.cloud.support.v2beta.CaseServiceClient" - }, - "method": { - "shortName": "SearchCaseClassifications", - "fullName": "google.cloud.support.v2beta.CaseService.SearchCaseClassifications", - "service": { - "shortName": "CaseService", - "fullName": "google.cloud.support.v2beta.CaseService" - } - } - } - }, - { - "regionTag": "cloudsupport_v2beta_generated_CommentService_ListComments_async", - "title": "CaseAttachmentService listComments Sample", - "origin": "API_DEFINITION", - "description": " List all the comments associated with a case.", - "canonical": true, - "file": "comment_service.list_comments.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListComments", - "fullName": "google.cloud.support.v2beta.CommentService.ListComments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.support.v2beta.ListCommentsResponse", - "client": { - "shortName": "CommentServiceClient", - "fullName": "google.cloud.support.v2beta.CommentServiceClient" - }, - "method": { - "shortName": "ListComments", - "fullName": "google.cloud.support.v2beta.CommentService.ListComments", - "service": { - "shortName": "CommentService", - "fullName": "google.cloud.support.v2beta.CommentService" - } - } - } - }, - { - "regionTag": "cloudsupport_v2beta_generated_CommentService_CreateComment_async", - "title": "CaseAttachmentService createComment Sample", - "origin": "API_DEFINITION", - "description": " Add a new comment to a case. The comment must have the following fields set: `body`.", - "canonical": true, - "file": "comment_service.create_comment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateComment", - "fullName": "google.cloud.support.v2beta.CommentService.CreateComment", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "comment", - "type": ".google.cloud.support.v2beta.Comment" - } - ], - "resultType": ".google.cloud.support.v2beta.Comment", - "client": { - "shortName": "CommentServiceClient", - "fullName": "google.cloud.support.v2beta.CommentServiceClient" - }, - "method": { - "shortName": "CreateComment", - "fullName": "google.cloud.support.v2beta.CommentService.CreateComment", - "service": { - "shortName": "CommentService", - "fullName": "google.cloud.support.v2beta.CommentService" - } - } - } - }, - { - "regionTag": "cloudsupport_v2beta_generated_CommentService_GetComment_async", - "title": "CaseAttachmentService getComment Sample", - "origin": "API_DEFINITION", - "description": " Retrieve a comment.", - "canonical": true, - "file": "comment_service.get_comment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetComment", - "fullName": "google.cloud.support.v2beta.CommentService.GetComment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.support.v2beta.Comment", - "client": { - "shortName": "CommentServiceClient", - "fullName": "google.cloud.support.v2beta.CommentServiceClient" - }, - "method": { - "shortName": "GetComment", - "fullName": "google.cloud.support.v2beta.CommentService.GetComment", - "service": { - "shortName": "CommentService", - "fullName": "google.cloud.support.v2beta.CommentService" - } - } - } - }, - { - "regionTag": "cloudsupport_v2beta_generated_FeedService_ShowFeed_async", - "title": "CaseAttachmentService showFeed Sample", - "origin": "API_DEFINITION", - "description": " Show items in the feed of this case, including case emails, attachments, and comments.", - "canonical": true, - "file": "feed_service.show_feed.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ShowFeed", - "fullName": "google.cloud.support.v2beta.FeedService.ShowFeed", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.support.v2beta.ShowFeedResponse", - "client": { - "shortName": "FeedServiceClient", - "fullName": "google.cloud.support.v2beta.FeedServiceClient" - }, - "method": { - "shortName": "ShowFeed", - "fullName": "google.cloud.support.v2beta.FeedService.ShowFeed", - "service": { - "shortName": "FeedService", - "fullName": "google.cloud.support.v2beta.FeedService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-talent/samples/generated/v4/snippet_metadata_google.cloud.talent.v4.json b/packages/google-cloud-talent/samples/generated/v4/snippet_metadata_google.cloud.talent.v4.json deleted file mode 100644 index ed3eb3b366bb..000000000000 --- a/packages/google-cloud-talent/samples/generated/v4/snippet_metadata_google.cloud.talent.v4.json +++ /dev/null @@ -1,1119 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-talent", - "version": "7.1.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.talent.v4", - "version": "v4" - } - ] - }, - "snippets": [ - { - "regionTag": "jobs_v4_generated_CompanyService_CreateCompany_async", - "title": "talent createCompany Sample", - "origin": "API_DEFINITION", - "description": " Creates a new company entity.", - "canonical": true, - "file": "company_service.create_company.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCompany", - "fullName": "google.cloud.talent.v4.CompanyService.CreateCompany", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "company", - "type": ".google.cloud.talent.v4.Company" - } - ], - "resultType": ".google.cloud.talent.v4.Company", - "client": { - "shortName": "CompanyServiceClient", - "fullName": "google.cloud.talent.v4.CompanyServiceClient" - }, - "method": { - "shortName": "CreateCompany", - "fullName": "google.cloud.talent.v4.CompanyService.CreateCompany", - "service": { - "shortName": "CompanyService", - "fullName": "google.cloud.talent.v4.CompanyService" - } - } - } - }, - { - "regionTag": "jobs_v4_generated_CompanyService_GetCompany_async", - "title": "talent getCompany Sample", - "origin": "API_DEFINITION", - "description": " Retrieves specified company.", - "canonical": true, - "file": "company_service.get_company.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCompany", - "fullName": "google.cloud.talent.v4.CompanyService.GetCompany", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.talent.v4.Company", - "client": { - "shortName": "CompanyServiceClient", - "fullName": "google.cloud.talent.v4.CompanyServiceClient" - }, - "method": { - "shortName": "GetCompany", - "fullName": "google.cloud.talent.v4.CompanyService.GetCompany", - "service": { - "shortName": "CompanyService", - "fullName": "google.cloud.talent.v4.CompanyService" - } - } - } - }, - { - "regionTag": "jobs_v4_generated_CompanyService_UpdateCompany_async", - "title": "talent updateCompany Sample", - "origin": "API_DEFINITION", - "description": " Updates specified company.", - "canonical": true, - "file": "company_service.update_company.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCompany", - "fullName": "google.cloud.talent.v4.CompanyService.UpdateCompany", - "async": true, - "parameters": [ - { - "name": "company", - "type": ".google.cloud.talent.v4.Company" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.talent.v4.Company", - "client": { - "shortName": "CompanyServiceClient", - "fullName": "google.cloud.talent.v4.CompanyServiceClient" - }, - "method": { - "shortName": "UpdateCompany", - "fullName": "google.cloud.talent.v4.CompanyService.UpdateCompany", - "service": { - "shortName": "CompanyService", - "fullName": "google.cloud.talent.v4.CompanyService" - } - } - } - }, - { - "regionTag": "jobs_v4_generated_CompanyService_DeleteCompany_async", - "title": "talent deleteCompany Sample", - "origin": "API_DEFINITION", - "description": " Deletes specified company. Prerequisite: The company has no jobs associated with it.", - "canonical": true, - "file": "company_service.delete_company.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCompany", - "fullName": "google.cloud.talent.v4.CompanyService.DeleteCompany", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "CompanyServiceClient", - "fullName": "google.cloud.talent.v4.CompanyServiceClient" - }, - "method": { - "shortName": "DeleteCompany", - "fullName": "google.cloud.talent.v4.CompanyService.DeleteCompany", - "service": { - "shortName": "CompanyService", - "fullName": "google.cloud.talent.v4.CompanyService" - } - } - } - }, - { - "regionTag": "jobs_v4_generated_CompanyService_ListCompanies_async", - "title": "talent listCompanies Sample", - "origin": "API_DEFINITION", - "description": " Lists all companies associated with the project.", - "canonical": true, - "file": "company_service.list_companies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCompanies", - "fullName": "google.cloud.talent.v4.CompanyService.ListCompanies", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "require_open_jobs", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.talent.v4.ListCompaniesResponse", - "client": { - "shortName": "CompanyServiceClient", - "fullName": "google.cloud.talent.v4.CompanyServiceClient" - }, - "method": { - "shortName": "ListCompanies", - "fullName": "google.cloud.talent.v4.CompanyService.ListCompanies", - "service": { - "shortName": "CompanyService", - "fullName": "google.cloud.talent.v4.CompanyService" - } - } - } - }, - { - "regionTag": "jobs_v4_generated_Completion_CompleteQuery_async", - "title": "talent completeQuery Sample", - "origin": "API_DEFINITION", - "description": " Completes the specified prefix with keyword suggestions. Intended for use by a job search auto-complete search box.", - "canonical": true, - "file": "completion.complete_query.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 92, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CompleteQuery", - "fullName": "google.cloud.talent.v4.Completion.CompleteQuery", - "async": true, - "parameters": [ - { - "name": "tenant", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": "TYPE_STRING" - }, - { - "name": "language_codes", - "type": "TYPE_STRING[]" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "company", - "type": "TYPE_STRING" - }, - { - "name": "scope", - "type": ".google.cloud.talent.v4.CompleteQueryRequest.CompletionScope" - }, - { - "name": "type", - "type": ".google.cloud.talent.v4.CompleteQueryRequest.CompletionType" - } - ], - "resultType": ".google.cloud.talent.v4.CompleteQueryResponse", - "client": { - "shortName": "CompletionClient", - "fullName": "google.cloud.talent.v4.CompletionClient" - }, - "method": { - "shortName": "CompleteQuery", - "fullName": "google.cloud.talent.v4.Completion.CompleteQuery", - "service": { - "shortName": "Completion", - "fullName": "google.cloud.talent.v4.Completion" - } - } - } - }, - { - "regionTag": "jobs_v4_generated_EventService_CreateClientEvent_async", - "title": "talent createClientEvent Sample", - "origin": "API_DEFINITION", - "description": " Report events issued when end user interacts with customer's application that uses Cloud Talent Solution. You may inspect the created events in [self service tools](https://console.cloud.google.com/talent-solution/overview). [Learn more](https://cloud.google.com/talent-solution/docs/management-tools) about self service tools.", - "canonical": true, - "file": "event_service.create_client_event.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateClientEvent", - "fullName": "google.cloud.talent.v4.EventService.CreateClientEvent", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "client_event", - "type": ".google.cloud.talent.v4.ClientEvent" - } - ], - "resultType": ".google.cloud.talent.v4.ClientEvent", - "client": { - "shortName": "EventServiceClient", - "fullName": "google.cloud.talent.v4.EventServiceClient" - }, - "method": { - "shortName": "CreateClientEvent", - "fullName": "google.cloud.talent.v4.EventService.CreateClientEvent", - "service": { - "shortName": "EventService", - "fullName": "google.cloud.talent.v4.EventService" - } - } - } - }, - { - "regionTag": "jobs_v4_generated_JobService_CreateJob_async", - "title": "talent createJob Sample", - "origin": "API_DEFINITION", - "description": " Creates a new job. Typically, the job becomes searchable within 10 seconds, but it may take up to 5 minutes.", - "canonical": true, - "file": "job_service.create_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateJob", - "fullName": "google.cloud.talent.v4.JobService.CreateJob", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "job", - "type": ".google.cloud.talent.v4.Job" - } - ], - "resultType": ".google.cloud.talent.v4.Job", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.talent.v4.JobServiceClient" - }, - "method": { - "shortName": "CreateJob", - "fullName": "google.cloud.talent.v4.JobService.CreateJob", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.talent.v4.JobService" - } - } - } - }, - { - "regionTag": "jobs_v4_generated_JobService_BatchCreateJobs_async", - "title": "talent batchCreateJobs Sample", - "origin": "API_DEFINITION", - "description": " Begins executing a batch create jobs operation.", - "canonical": true, - "file": "job_service.batch_create_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCreateJobs", - "fullName": "google.cloud.talent.v4.JobService.BatchCreateJobs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "jobs", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.talent.v4.JobServiceClient" - }, - "method": { - "shortName": "BatchCreateJobs", - "fullName": "google.cloud.talent.v4.JobService.BatchCreateJobs", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.talent.v4.JobService" - } - } - } - }, - { - "regionTag": "jobs_v4_generated_JobService_GetJob_async", - "title": "talent getJob Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified job, whose status is OPEN or recently EXPIRED within the last 90 days.", - "canonical": true, - "file": "job_service.get_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetJob", - "fullName": "google.cloud.talent.v4.JobService.GetJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.talent.v4.Job", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.talent.v4.JobServiceClient" - }, - "method": { - "shortName": "GetJob", - "fullName": "google.cloud.talent.v4.JobService.GetJob", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.talent.v4.JobService" - } - } - } - }, - { - "regionTag": "jobs_v4_generated_JobService_UpdateJob_async", - "title": "talent updateJob Sample", - "origin": "API_DEFINITION", - "description": " Updates specified job. Typically, updated contents become visible in search results within 10 seconds, but it may take up to 5 minutes.", - "canonical": true, - "file": "job_service.update_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateJob", - "fullName": "google.cloud.talent.v4.JobService.UpdateJob", - "async": true, - "parameters": [ - { - "name": "job", - "type": ".google.cloud.talent.v4.Job" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.talent.v4.Job", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.talent.v4.JobServiceClient" - }, - "method": { - "shortName": "UpdateJob", - "fullName": "google.cloud.talent.v4.JobService.UpdateJob", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.talent.v4.JobService" - } - } - } - }, - { - "regionTag": "jobs_v4_generated_JobService_BatchUpdateJobs_async", - "title": "talent batchUpdateJobs Sample", - "origin": "API_DEFINITION", - "description": " Begins executing a batch update jobs operation.", - "canonical": true, - "file": "job_service.batch_update_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchUpdateJobs", - "fullName": "google.cloud.talent.v4.JobService.BatchUpdateJobs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "jobs", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.talent.v4.JobServiceClient" - }, - "method": { - "shortName": "BatchUpdateJobs", - "fullName": "google.cloud.talent.v4.JobService.BatchUpdateJobs", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.talent.v4.JobService" - } - } - } - }, - { - "regionTag": "jobs_v4_generated_JobService_DeleteJob_async", - "title": "talent deleteJob Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified job. Typically, the job becomes unsearchable within 10 seconds, but it may take up to 5 minutes.", - "canonical": true, - "file": "job_service.delete_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteJob", - "fullName": "google.cloud.talent.v4.JobService.DeleteJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.talent.v4.JobServiceClient" - }, - "method": { - "shortName": "DeleteJob", - "fullName": "google.cloud.talent.v4.JobService.DeleteJob", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.talent.v4.JobService" - } - } - } - }, - { - "regionTag": "jobs_v4_generated_JobService_BatchDeleteJobs_async", - "title": "talent batchDeleteJobs Sample", - "origin": "API_DEFINITION", - "description": " Begins executing a batch delete jobs operation.", - "canonical": true, - "file": "job_service.batch_delete_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchDeleteJobs", - "fullName": "google.cloud.talent.v4.JobService.BatchDeleteJobs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "names", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.talent.v4.JobServiceClient" - }, - "method": { - "shortName": "BatchDeleteJobs", - "fullName": "google.cloud.talent.v4.JobService.BatchDeleteJobs", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.talent.v4.JobService" - } - } - } - }, - { - "regionTag": "jobs_v4_generated_JobService_ListJobs_async", - "title": "talent listJobs Sample", - "origin": "API_DEFINITION", - "description": " Lists jobs by filter.", - "canonical": true, - "file": "job_service.list_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 98, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListJobs", - "fullName": "google.cloud.talent.v4.JobService.ListJobs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "job_view", - "type": ".google.cloud.talent.v4.JobView" - } - ], - "resultType": ".google.cloud.talent.v4.ListJobsResponse", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.talent.v4.JobServiceClient" - }, - "method": { - "shortName": "ListJobs", - "fullName": "google.cloud.talent.v4.JobService.ListJobs", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.talent.v4.JobService" - } - } - } - }, - { - "regionTag": "jobs_v4_generated_JobService_SearchJobs_async", - "title": "talent searchJobs Sample", - "origin": "API_DEFINITION", - "description": " Searches for jobs using the provided [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest]. This call constrains the [visibility][google.cloud.talent.v4.Job.visibility] of jobs present in the database, and only returns jobs that the caller has permission to search against.", - "canonical": true, - "file": "job_service.search_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 332, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchJobs", - "fullName": "google.cloud.talent.v4.JobService.SearchJobs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "search_mode", - "type": ".google.cloud.talent.v4.SearchJobsRequest.SearchMode" - }, - { - "name": "request_metadata", - "type": ".google.cloud.talent.v4.RequestMetadata" - }, - { - "name": "job_query", - "type": ".google.cloud.talent.v4.JobQuery" - }, - { - "name": "enable_broadening", - "type": "TYPE_BOOL" - }, - { - "name": "histogram_queries", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "job_view", - "type": ".google.cloud.talent.v4.JobView" - }, - { - "name": "offset", - "type": "TYPE_INT32" - }, - { - "name": "max_page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "diversification_level", - "type": ".google.cloud.talent.v4.SearchJobsRequest.DiversificationLevel" - }, - { - "name": "custom_ranking_info", - "type": ".google.cloud.talent.v4.SearchJobsRequest.CustomRankingInfo" - }, - { - "name": "disable_keyword_match", - "type": "TYPE_BOOL" - }, - { - "name": "keyword_match_mode", - "type": ".google.cloud.talent.v4.SearchJobsRequest.KeywordMatchMode" - }, - { - "name": "relevance_threshold", - "type": ".google.cloud.talent.v4.SearchJobsRequest.RelevanceThreshold" - } - ], - "resultType": ".google.cloud.talent.v4.SearchJobsResponse", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.talent.v4.JobServiceClient" - }, - "method": { - "shortName": "SearchJobs", - "fullName": "google.cloud.talent.v4.JobService.SearchJobs", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.talent.v4.JobService" - } - } - } - }, - { - "regionTag": "jobs_v4_generated_JobService_SearchJobsForAlert_async", - "title": "talent searchJobsForAlert Sample", - "origin": "API_DEFINITION", - "description": " Searches for jobs using the provided [SearchJobsRequest][google.cloud.talent.v4.SearchJobsRequest]. This API call is intended for the use case of targeting passive job seekers (for example, job seekers who have signed up to receive email alerts about potential job opportunities), it has different algorithmic adjustments that are designed to specifically target passive job seekers. This call constrains the [visibility][google.cloud.talent.v4.Job.visibility] of jobs present in the database, and only returns jobs the caller has permission to search against.", - "canonical": true, - "file": "job_service.search_jobs_for_alert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 332, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchJobsForAlert", - "fullName": "google.cloud.talent.v4.JobService.SearchJobsForAlert", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "search_mode", - "type": ".google.cloud.talent.v4.SearchJobsRequest.SearchMode" - }, - { - "name": "request_metadata", - "type": ".google.cloud.talent.v4.RequestMetadata" - }, - { - "name": "job_query", - "type": ".google.cloud.talent.v4.JobQuery" - }, - { - "name": "enable_broadening", - "type": "TYPE_BOOL" - }, - { - "name": "histogram_queries", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "job_view", - "type": ".google.cloud.talent.v4.JobView" - }, - { - "name": "offset", - "type": "TYPE_INT32" - }, - { - "name": "max_page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "diversification_level", - "type": ".google.cloud.talent.v4.SearchJobsRequest.DiversificationLevel" - }, - { - "name": "custom_ranking_info", - "type": ".google.cloud.talent.v4.SearchJobsRequest.CustomRankingInfo" - }, - { - "name": "disable_keyword_match", - "type": "TYPE_BOOL" - }, - { - "name": "keyword_match_mode", - "type": ".google.cloud.talent.v4.SearchJobsRequest.KeywordMatchMode" - }, - { - "name": "relevance_threshold", - "type": ".google.cloud.talent.v4.SearchJobsRequest.RelevanceThreshold" - } - ], - "resultType": ".google.cloud.talent.v4.SearchJobsResponse", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.talent.v4.JobServiceClient" - }, - "method": { - "shortName": "SearchJobsForAlert", - "fullName": "google.cloud.talent.v4.JobService.SearchJobsForAlert", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.talent.v4.JobService" - } - } - } - }, - { - "regionTag": "jobs_v4_generated_TenantService_CreateTenant_async", - "title": "talent createTenant Sample", - "origin": "API_DEFINITION", - "description": " Creates a new tenant entity.", - "canonical": true, - "file": "tenant_service.create_tenant.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTenant", - "fullName": "google.cloud.talent.v4.TenantService.CreateTenant", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "tenant", - "type": ".google.cloud.talent.v4.Tenant" - } - ], - "resultType": ".google.cloud.talent.v4.Tenant", - "client": { - "shortName": "TenantServiceClient", - "fullName": "google.cloud.talent.v4.TenantServiceClient" - }, - "method": { - "shortName": "CreateTenant", - "fullName": "google.cloud.talent.v4.TenantService.CreateTenant", - "service": { - "shortName": "TenantService", - "fullName": "google.cloud.talent.v4.TenantService" - } - } - } - }, - { - "regionTag": "jobs_v4_generated_TenantService_GetTenant_async", - "title": "talent getTenant Sample", - "origin": "API_DEFINITION", - "description": " Retrieves specified tenant.", - "canonical": true, - "file": "tenant_service.get_tenant.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTenant", - "fullName": "google.cloud.talent.v4.TenantService.GetTenant", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.talent.v4.Tenant", - "client": { - "shortName": "TenantServiceClient", - "fullName": "google.cloud.talent.v4.TenantServiceClient" - }, - "method": { - "shortName": "GetTenant", - "fullName": "google.cloud.talent.v4.TenantService.GetTenant", - "service": { - "shortName": "TenantService", - "fullName": "google.cloud.talent.v4.TenantService" - } - } - } - }, - { - "regionTag": "jobs_v4_generated_TenantService_UpdateTenant_async", - "title": "talent updateTenant Sample", - "origin": "API_DEFINITION", - "description": " Updates specified tenant.", - "canonical": true, - "file": "tenant_service.update_tenant.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTenant", - "fullName": "google.cloud.talent.v4.TenantService.UpdateTenant", - "async": true, - "parameters": [ - { - "name": "tenant", - "type": ".google.cloud.talent.v4.Tenant" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.talent.v4.Tenant", - "client": { - "shortName": "TenantServiceClient", - "fullName": "google.cloud.talent.v4.TenantServiceClient" - }, - "method": { - "shortName": "UpdateTenant", - "fullName": "google.cloud.talent.v4.TenantService.UpdateTenant", - "service": { - "shortName": "TenantService", - "fullName": "google.cloud.talent.v4.TenantService" - } - } - } - }, - { - "regionTag": "jobs_v4_generated_TenantService_DeleteTenant_async", - "title": "talent deleteTenant Sample", - "origin": "API_DEFINITION", - "description": " Deletes specified tenant.", - "canonical": true, - "file": "tenant_service.delete_tenant.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTenant", - "fullName": "google.cloud.talent.v4.TenantService.DeleteTenant", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "TenantServiceClient", - "fullName": "google.cloud.talent.v4.TenantServiceClient" - }, - "method": { - "shortName": "DeleteTenant", - "fullName": "google.cloud.talent.v4.TenantService.DeleteTenant", - "service": { - "shortName": "TenantService", - "fullName": "google.cloud.talent.v4.TenantService" - } - } - } - }, - { - "regionTag": "jobs_v4_generated_TenantService_ListTenants_async", - "title": "talent listTenants Sample", - "origin": "API_DEFINITION", - "description": " Lists all tenants associated with the project.", - "canonical": true, - "file": "tenant_service.list_tenants.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTenants", - "fullName": "google.cloud.talent.v4.TenantService.ListTenants", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.talent.v4.ListTenantsResponse", - "client": { - "shortName": "TenantServiceClient", - "fullName": "google.cloud.talent.v4.TenantServiceClient" - }, - "method": { - "shortName": "ListTenants", - "fullName": "google.cloud.talent.v4.TenantService.ListTenants", - "service": { - "shortName": "TenantService", - "fullName": "google.cloud.talent.v4.TenantService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-talent/samples/generated/v4beta1/snippet_metadata_google.cloud.talent.v4beta1.json b/packages/google-cloud-talent/samples/generated/v4beta1/snippet_metadata_google.cloud.talent.v4beta1.json deleted file mode 100644 index 7ce45c3c6381..000000000000 --- a/packages/google-cloud-talent/samples/generated/v4beta1/snippet_metadata_google.cloud.talent.v4beta1.json +++ /dev/null @@ -1,1127 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-talent", - "version": "7.1.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.talent.v4beta1", - "version": "v4beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "jobs_v4beta1_generated_CompanyService_CreateCompany_async", - "title": "talent createCompany Sample", - "origin": "API_DEFINITION", - "description": " Creates a new company entity.", - "canonical": true, - "file": "company_service.create_company.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCompany", - "fullName": "google.cloud.talent.v4beta1.CompanyService.CreateCompany", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "company", - "type": ".google.cloud.talent.v4beta1.Company" - } - ], - "resultType": ".google.cloud.talent.v4beta1.Company", - "client": { - "shortName": "CompanyServiceClient", - "fullName": "google.cloud.talent.v4beta1.CompanyServiceClient" - }, - "method": { - "shortName": "CreateCompany", - "fullName": "google.cloud.talent.v4beta1.CompanyService.CreateCompany", - "service": { - "shortName": "CompanyService", - "fullName": "google.cloud.talent.v4beta1.CompanyService" - } - } - } - }, - { - "regionTag": "jobs_v4beta1_generated_CompanyService_GetCompany_async", - "title": "talent getCompany Sample", - "origin": "API_DEFINITION", - "description": " Retrieves specified company.", - "canonical": true, - "file": "company_service.get_company.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCompany", - "fullName": "google.cloud.talent.v4beta1.CompanyService.GetCompany", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.talent.v4beta1.Company", - "client": { - "shortName": "CompanyServiceClient", - "fullName": "google.cloud.talent.v4beta1.CompanyServiceClient" - }, - "method": { - "shortName": "GetCompany", - "fullName": "google.cloud.talent.v4beta1.CompanyService.GetCompany", - "service": { - "shortName": "CompanyService", - "fullName": "google.cloud.talent.v4beta1.CompanyService" - } - } - } - }, - { - "regionTag": "jobs_v4beta1_generated_CompanyService_UpdateCompany_async", - "title": "talent updateCompany Sample", - "origin": "API_DEFINITION", - "description": " Updates specified company.", - "canonical": true, - "file": "company_service.update_company.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCompany", - "fullName": "google.cloud.talent.v4beta1.CompanyService.UpdateCompany", - "async": true, - "parameters": [ - { - "name": "company", - "type": ".google.cloud.talent.v4beta1.Company" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.talent.v4beta1.Company", - "client": { - "shortName": "CompanyServiceClient", - "fullName": "google.cloud.talent.v4beta1.CompanyServiceClient" - }, - "method": { - "shortName": "UpdateCompany", - "fullName": "google.cloud.talent.v4beta1.CompanyService.UpdateCompany", - "service": { - "shortName": "CompanyService", - "fullName": "google.cloud.talent.v4beta1.CompanyService" - } - } - } - }, - { - "regionTag": "jobs_v4beta1_generated_CompanyService_DeleteCompany_async", - "title": "talent deleteCompany Sample", - "origin": "API_DEFINITION", - "description": " Deletes specified company. Prerequisite: The company has no jobs associated with it.", - "canonical": true, - "file": "company_service.delete_company.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCompany", - "fullName": "google.cloud.talent.v4beta1.CompanyService.DeleteCompany", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "CompanyServiceClient", - "fullName": "google.cloud.talent.v4beta1.CompanyServiceClient" - }, - "method": { - "shortName": "DeleteCompany", - "fullName": "google.cloud.talent.v4beta1.CompanyService.DeleteCompany", - "service": { - "shortName": "CompanyService", - "fullName": "google.cloud.talent.v4beta1.CompanyService" - } - } - } - }, - { - "regionTag": "jobs_v4beta1_generated_CompanyService_ListCompanies_async", - "title": "talent listCompanies Sample", - "origin": "API_DEFINITION", - "description": " Lists all companies associated with the project.", - "canonical": true, - "file": "company_service.list_companies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCompanies", - "fullName": "google.cloud.talent.v4beta1.CompanyService.ListCompanies", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "require_open_jobs", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.talent.v4beta1.ListCompaniesResponse", - "client": { - "shortName": "CompanyServiceClient", - "fullName": "google.cloud.talent.v4beta1.CompanyServiceClient" - }, - "method": { - "shortName": "ListCompanies", - "fullName": "google.cloud.talent.v4beta1.CompanyService.ListCompanies", - "service": { - "shortName": "CompanyService", - "fullName": "google.cloud.talent.v4beta1.CompanyService" - } - } - } - }, - { - "regionTag": "jobs_v4beta1_generated_Completion_CompleteQuery_async", - "title": "talent completeQuery Sample", - "origin": "API_DEFINITION", - "description": " Completes the specified prefix with keyword suggestions. Intended for use by a job search auto-complete search box.", - "canonical": true, - "file": "completion.complete_query.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 96, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CompleteQuery", - "fullName": "google.cloud.talent.v4beta1.Completion.CompleteQuery", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": "TYPE_STRING" - }, - { - "name": "language_codes", - "type": "TYPE_STRING[]" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "company", - "type": "TYPE_STRING" - }, - { - "name": "scope", - "type": ".google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope" - }, - { - "name": "type", - "type": ".google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType" - } - ], - "resultType": ".google.cloud.talent.v4beta1.CompleteQueryResponse", - "client": { - "shortName": "CompletionClient", - "fullName": "google.cloud.talent.v4beta1.CompletionClient" - }, - "method": { - "shortName": "CompleteQuery", - "fullName": "google.cloud.talent.v4beta1.Completion.CompleteQuery", - "service": { - "shortName": "Completion", - "fullName": "google.cloud.talent.v4beta1.Completion" - } - } - } - }, - { - "regionTag": "jobs_v4beta1_generated_EventService_CreateClientEvent_async", - "title": "talent createClientEvent Sample", - "origin": "API_DEFINITION", - "description": " Report events issued when end user interacts with customer's application that uses Cloud Talent Solution. You may inspect the created events in [self service tools](https://console.cloud.google.com/talent-solution/overview). [Learn more](https://cloud.google.com/talent-solution/docs/management-tools) about self service tools.", - "canonical": true, - "file": "event_service.create_client_event.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateClientEvent", - "fullName": "google.cloud.talent.v4beta1.EventService.CreateClientEvent", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "client_event", - "type": ".google.cloud.talent.v4beta1.ClientEvent" - } - ], - "resultType": ".google.cloud.talent.v4beta1.ClientEvent", - "client": { - "shortName": "EventServiceClient", - "fullName": "google.cloud.talent.v4beta1.EventServiceClient" - }, - "method": { - "shortName": "CreateClientEvent", - "fullName": "google.cloud.talent.v4beta1.EventService.CreateClientEvent", - "service": { - "shortName": "EventService", - "fullName": "google.cloud.talent.v4beta1.EventService" - } - } - } - }, - { - "regionTag": "jobs_v4beta1_generated_JobService_CreateJob_async", - "title": "talent createJob Sample", - "origin": "API_DEFINITION", - "description": " Creates a new job. Typically, the job becomes searchable within 10 seconds, but it may take up to 5 minutes.", - "canonical": true, - "file": "job_service.create_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateJob", - "fullName": "google.cloud.talent.v4beta1.JobService.CreateJob", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "job", - "type": ".google.cloud.talent.v4beta1.Job" - } - ], - "resultType": ".google.cloud.talent.v4beta1.Job", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.talent.v4beta1.JobServiceClient" - }, - "method": { - "shortName": "CreateJob", - "fullName": "google.cloud.talent.v4beta1.JobService.CreateJob", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.talent.v4beta1.JobService" - } - } - } - }, - { - "regionTag": "jobs_v4beta1_generated_JobService_BatchCreateJobs_async", - "title": "talent batchCreateJobs Sample", - "origin": "API_DEFINITION", - "description": " Begins executing a batch create jobs operation.", - "canonical": true, - "file": "job_service.batch_create_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCreateJobs", - "fullName": "google.cloud.talent.v4beta1.JobService.BatchCreateJobs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "jobs", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.talent.v4beta1.JobServiceClient" - }, - "method": { - "shortName": "BatchCreateJobs", - "fullName": "google.cloud.talent.v4beta1.JobService.BatchCreateJobs", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.talent.v4beta1.JobService" - } - } - } - }, - { - "regionTag": "jobs_v4beta1_generated_JobService_GetJob_async", - "title": "talent getJob Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified job, whose status is OPEN or recently EXPIRED within the last 90 days.", - "canonical": true, - "file": "job_service.get_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetJob", - "fullName": "google.cloud.talent.v4beta1.JobService.GetJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.talent.v4beta1.Job", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.talent.v4beta1.JobServiceClient" - }, - "method": { - "shortName": "GetJob", - "fullName": "google.cloud.talent.v4beta1.JobService.GetJob", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.talent.v4beta1.JobService" - } - } - } - }, - { - "regionTag": "jobs_v4beta1_generated_JobService_UpdateJob_async", - "title": "talent updateJob Sample", - "origin": "API_DEFINITION", - "description": " Updates specified job. Typically, updated contents become visible in search results within 10 seconds, but it may take up to 5 minutes.", - "canonical": true, - "file": "job_service.update_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateJob", - "fullName": "google.cloud.talent.v4beta1.JobService.UpdateJob", - "async": true, - "parameters": [ - { - "name": "job", - "type": ".google.cloud.talent.v4beta1.Job" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.talent.v4beta1.Job", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.talent.v4beta1.JobServiceClient" - }, - "method": { - "shortName": "UpdateJob", - "fullName": "google.cloud.talent.v4beta1.JobService.UpdateJob", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.talent.v4beta1.JobService" - } - } - } - }, - { - "regionTag": "jobs_v4beta1_generated_JobService_BatchUpdateJobs_async", - "title": "talent batchUpdateJobs Sample", - "origin": "API_DEFINITION", - "description": " Begins executing a batch update jobs operation.", - "canonical": true, - "file": "job_service.batch_update_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchUpdateJobs", - "fullName": "google.cloud.talent.v4beta1.JobService.BatchUpdateJobs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "jobs", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.talent.v4beta1.JobServiceClient" - }, - "method": { - "shortName": "BatchUpdateJobs", - "fullName": "google.cloud.talent.v4beta1.JobService.BatchUpdateJobs", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.talent.v4beta1.JobService" - } - } - } - }, - { - "regionTag": "jobs_v4beta1_generated_JobService_DeleteJob_async", - "title": "talent deleteJob Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified job. Typically, the job becomes unsearchable within 10 seconds, but it may take up to 5 minutes.", - "canonical": true, - "file": "job_service.delete_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteJob", - "fullName": "google.cloud.talent.v4beta1.JobService.DeleteJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.talent.v4beta1.JobServiceClient" - }, - "method": { - "shortName": "DeleteJob", - "fullName": "google.cloud.talent.v4beta1.JobService.DeleteJob", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.talent.v4beta1.JobService" - } - } - } - }, - { - "regionTag": "jobs_v4beta1_generated_JobService_BatchDeleteJobs_async", - "title": "talent batchDeleteJobs Sample", - "origin": "API_DEFINITION", - "description": " Deletes a list of [Job][google.cloud.talent.v4beta1.Job]s by filter.", - "canonical": true, - "file": "job_service.batch_delete_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchDeleteJobs", - "fullName": "google.cloud.talent.v4beta1.JobService.BatchDeleteJobs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.talent.v4beta1.JobServiceClient" - }, - "method": { - "shortName": "BatchDeleteJobs", - "fullName": "google.cloud.talent.v4beta1.JobService.BatchDeleteJobs", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.talent.v4beta1.JobService" - } - } - } - }, - { - "regionTag": "jobs_v4beta1_generated_JobService_ListJobs_async", - "title": "talent listJobs Sample", - "origin": "API_DEFINITION", - "description": " Lists jobs by filter.", - "canonical": true, - "file": "job_service.list_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 100, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListJobs", - "fullName": "google.cloud.talent.v4beta1.JobService.ListJobs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "job_view", - "type": ".google.cloud.talent.v4beta1.JobView" - } - ], - "resultType": ".google.cloud.talent.v4beta1.ListJobsResponse", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.talent.v4beta1.JobServiceClient" - }, - "method": { - "shortName": "ListJobs", - "fullName": "google.cloud.talent.v4beta1.JobService.ListJobs", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.talent.v4beta1.JobService" - } - } - } - }, - { - "regionTag": "jobs_v4beta1_generated_JobService_SearchJobs_async", - "title": "talent searchJobs Sample", - "origin": "API_DEFINITION", - "description": " Searches for jobs using the provided [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest]. This call constrains the [visibility][google.cloud.talent.v4beta1.Job.visibility] of jobs present in the database, and only returns jobs that the caller has permission to search against.", - "canonical": true, - "file": "job_service.search_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 340, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchJobs", - "fullName": "google.cloud.talent.v4beta1.JobService.SearchJobs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "search_mode", - "type": ".google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode" - }, - { - "name": "request_metadata", - "type": ".google.cloud.talent.v4beta1.RequestMetadata" - }, - { - "name": "job_query", - "type": ".google.cloud.talent.v4beta1.JobQuery" - }, - { - "name": "enable_broadening", - "type": "TYPE_BOOL" - }, - { - "name": "require_precise_result_size", - "type": "TYPE_BOOL" - }, - { - "name": "histogram_queries", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "job_view", - "type": ".google.cloud.talent.v4beta1.JobView" - }, - { - "name": "offset", - "type": "TYPE_INT32" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "diversification_level", - "type": ".google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel" - }, - { - "name": "custom_ranking_info", - "type": ".google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo" - }, - { - "name": "disable_keyword_match", - "type": "TYPE_BOOL" - }, - { - "name": "keyword_match_mode", - "type": ".google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode" - }, - { - "name": "relevance_threshold", - "type": ".google.cloud.talent.v4beta1.SearchJobsRequest.RelevanceThreshold" - } - ], - "resultType": ".google.cloud.talent.v4beta1.SearchJobsResponse", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.talent.v4beta1.JobServiceClient" - }, - "method": { - "shortName": "SearchJobs", - "fullName": "google.cloud.talent.v4beta1.JobService.SearchJobs", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.talent.v4beta1.JobService" - } - } - } - }, - { - "regionTag": "jobs_v4beta1_generated_JobService_SearchJobsForAlert_async", - "title": "talent searchJobsForAlert Sample", - "origin": "API_DEFINITION", - "description": " Searches for jobs using the provided [SearchJobsRequest][google.cloud.talent.v4beta1.SearchJobsRequest]. This API call is intended for the use case of targeting passive job seekers (for example, job seekers who have signed up to receive email alerts about potential job opportunities), and has different algorithmic adjustments that are targeted to passive job seekers. This call constrains the [visibility][google.cloud.talent.v4beta1.Job.visibility] of jobs present in the database, and only returns jobs the caller has permission to search against.", - "canonical": true, - "file": "job_service.search_jobs_for_alert.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 340, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchJobsForAlert", - "fullName": "google.cloud.talent.v4beta1.JobService.SearchJobsForAlert", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "search_mode", - "type": ".google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode" - }, - { - "name": "request_metadata", - "type": ".google.cloud.talent.v4beta1.RequestMetadata" - }, - { - "name": "job_query", - "type": ".google.cloud.talent.v4beta1.JobQuery" - }, - { - "name": "enable_broadening", - "type": "TYPE_BOOL" - }, - { - "name": "require_precise_result_size", - "type": "TYPE_BOOL" - }, - { - "name": "histogram_queries", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "job_view", - "type": ".google.cloud.talent.v4beta1.JobView" - }, - { - "name": "offset", - "type": "TYPE_INT32" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "diversification_level", - "type": ".google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel" - }, - { - "name": "custom_ranking_info", - "type": ".google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo" - }, - { - "name": "disable_keyword_match", - "type": "TYPE_BOOL" - }, - { - "name": "keyword_match_mode", - "type": ".google.cloud.talent.v4beta1.SearchJobsRequest.KeywordMatchMode" - }, - { - "name": "relevance_threshold", - "type": ".google.cloud.talent.v4beta1.SearchJobsRequest.RelevanceThreshold" - } - ], - "resultType": ".google.cloud.talent.v4beta1.SearchJobsResponse", - "client": { - "shortName": "JobServiceClient", - "fullName": "google.cloud.talent.v4beta1.JobServiceClient" - }, - "method": { - "shortName": "SearchJobsForAlert", - "fullName": "google.cloud.talent.v4beta1.JobService.SearchJobsForAlert", - "service": { - "shortName": "JobService", - "fullName": "google.cloud.talent.v4beta1.JobService" - } - } - } - }, - { - "regionTag": "jobs_v4beta1_generated_TenantService_CreateTenant_async", - "title": "talent createTenant Sample", - "origin": "API_DEFINITION", - "description": " Creates a new tenant entity.", - "canonical": true, - "file": "tenant_service.create_tenant.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTenant", - "fullName": "google.cloud.talent.v4beta1.TenantService.CreateTenant", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "tenant", - "type": ".google.cloud.talent.v4beta1.Tenant" - } - ], - "resultType": ".google.cloud.talent.v4beta1.Tenant", - "client": { - "shortName": "TenantServiceClient", - "fullName": "google.cloud.talent.v4beta1.TenantServiceClient" - }, - "method": { - "shortName": "CreateTenant", - "fullName": "google.cloud.talent.v4beta1.TenantService.CreateTenant", - "service": { - "shortName": "TenantService", - "fullName": "google.cloud.talent.v4beta1.TenantService" - } - } - } - }, - { - "regionTag": "jobs_v4beta1_generated_TenantService_GetTenant_async", - "title": "talent getTenant Sample", - "origin": "API_DEFINITION", - "description": " Retrieves specified tenant.", - "canonical": true, - "file": "tenant_service.get_tenant.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTenant", - "fullName": "google.cloud.talent.v4beta1.TenantService.GetTenant", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.talent.v4beta1.Tenant", - "client": { - "shortName": "TenantServiceClient", - "fullName": "google.cloud.talent.v4beta1.TenantServiceClient" - }, - "method": { - "shortName": "GetTenant", - "fullName": "google.cloud.talent.v4beta1.TenantService.GetTenant", - "service": { - "shortName": "TenantService", - "fullName": "google.cloud.talent.v4beta1.TenantService" - } - } - } - }, - { - "regionTag": "jobs_v4beta1_generated_TenantService_UpdateTenant_async", - "title": "talent updateTenant Sample", - "origin": "API_DEFINITION", - "description": " Updates specified tenant.", - "canonical": true, - "file": "tenant_service.update_tenant.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTenant", - "fullName": "google.cloud.talent.v4beta1.TenantService.UpdateTenant", - "async": true, - "parameters": [ - { - "name": "tenant", - "type": ".google.cloud.talent.v4beta1.Tenant" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.talent.v4beta1.Tenant", - "client": { - "shortName": "TenantServiceClient", - "fullName": "google.cloud.talent.v4beta1.TenantServiceClient" - }, - "method": { - "shortName": "UpdateTenant", - "fullName": "google.cloud.talent.v4beta1.TenantService.UpdateTenant", - "service": { - "shortName": "TenantService", - "fullName": "google.cloud.talent.v4beta1.TenantService" - } - } - } - }, - { - "regionTag": "jobs_v4beta1_generated_TenantService_DeleteTenant_async", - "title": "talent deleteTenant Sample", - "origin": "API_DEFINITION", - "description": " Deletes specified tenant.", - "canonical": true, - "file": "tenant_service.delete_tenant.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTenant", - "fullName": "google.cloud.talent.v4beta1.TenantService.DeleteTenant", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "TenantServiceClient", - "fullName": "google.cloud.talent.v4beta1.TenantServiceClient" - }, - "method": { - "shortName": "DeleteTenant", - "fullName": "google.cloud.talent.v4beta1.TenantService.DeleteTenant", - "service": { - "shortName": "TenantService", - "fullName": "google.cloud.talent.v4beta1.TenantService" - } - } - } - }, - { - "regionTag": "jobs_v4beta1_generated_TenantService_ListTenants_async", - "title": "talent listTenants Sample", - "origin": "API_DEFINITION", - "description": " Lists all tenants associated with the project.", - "canonical": true, - "file": "tenant_service.list_tenants.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTenants", - "fullName": "google.cloud.talent.v4beta1.TenantService.ListTenants", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.talent.v4beta1.ListTenantsResponse", - "client": { - "shortName": "TenantServiceClient", - "fullName": "google.cloud.talent.v4beta1.TenantServiceClient" - }, - "method": { - "shortName": "ListTenants", - "fullName": "google.cloud.talent.v4beta1.TenantService.ListTenants", - "service": { - "shortName": "TenantService", - "fullName": "google.cloud.talent.v4beta1.TenantService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-tasks/samples/generated/v2/snippet_metadata_google.cloud.tasks.v2.json b/packages/google-cloud-tasks/samples/generated/v2/snippet_metadata_google.cloud.tasks.v2.json deleted file mode 100644 index f8117f7b0093..000000000000 --- a/packages/google-cloud-tasks/samples/generated/v2/snippet_metadata_google.cloud.tasks.v2.json +++ /dev/null @@ -1,719 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-tasks", - "version": "6.2.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.tasks.v2", - "version": "v2" - } - ] - }, - "snippets": [ - { - "regionTag": "cloudtasks_v2_generated_CloudTasks_ListQueues_async", - "title": "tasks listQueues Sample", - "origin": "API_DEFINITION", - "description": " Lists queues. Queues are returned in lexicographical order.", - "canonical": true, - "file": "cloud_tasks.list_queues.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 88, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListQueues", - "fullName": "google.cloud.tasks.v2.CloudTasks.ListQueues", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tasks.v2.ListQueuesResponse", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2.CloudTasksClient" - }, - "method": { - "shortName": "ListQueues", - "fullName": "google.cloud.tasks.v2.CloudTasks.ListQueues", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2_generated_CloudTasks_GetQueue_async", - "title": "tasks getQueue Sample", - "origin": "API_DEFINITION", - "description": " Gets a queue.", - "canonical": true, - "file": "cloud_tasks.get_queue.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetQueue", - "fullName": "google.cloud.tasks.v2.CloudTasks.GetQueue", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tasks.v2.Queue", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2.CloudTasksClient" - }, - "method": { - "shortName": "GetQueue", - "fullName": "google.cloud.tasks.v2.CloudTasks.GetQueue", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2_generated_CloudTasks_CreateQueue_async", - "title": "tasks createQueue Sample", - "origin": "API_DEFINITION", - "description": " Creates a queue. Queues created with this method allow tasks to live for a maximum of 31 days. After a task is 31 days old, the task will be deleted regardless of whether it was dispatched or not. WARNING: Using this method may have unintended side effects if you are using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method.", - "canonical": true, - "file": "cloud_tasks.create_queue.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateQueue", - "fullName": "google.cloud.tasks.v2.CloudTasks.CreateQueue", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "queue", - "type": ".google.cloud.tasks.v2.Queue" - } - ], - "resultType": ".google.cloud.tasks.v2.Queue", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2.CloudTasksClient" - }, - "method": { - "shortName": "CreateQueue", - "fullName": "google.cloud.tasks.v2.CloudTasks.CreateQueue", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2_generated_CloudTasks_UpdateQueue_async", - "title": "tasks updateQueue Sample", - "origin": "API_DEFINITION", - "description": " Updates a queue. This method creates the queue if it does not exist and updates the queue if it does exist. Queues created with this method allow tasks to live for a maximum of 31 days. After a task is 31 days old, the task will be deleted regardless of whether it was dispatched or not. WARNING: Using this method may have unintended side effects if you are using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method.", - "canonical": true, - "file": "cloud_tasks.update_queue.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateQueue", - "fullName": "google.cloud.tasks.v2.CloudTasks.UpdateQueue", - "async": true, - "parameters": [ - { - "name": "queue", - "type": ".google.cloud.tasks.v2.Queue" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.tasks.v2.Queue", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2.CloudTasksClient" - }, - "method": { - "shortName": "UpdateQueue", - "fullName": "google.cloud.tasks.v2.CloudTasks.UpdateQueue", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2_generated_CloudTasks_DeleteQueue_async", - "title": "tasks deleteQueue Sample", - "origin": "API_DEFINITION", - "description": " Deletes a queue. This command will delete the queue even if it has tasks in it. Note: If you delete a queue, a queue with the same name can't be created for 7 days. WARNING: Using this method may have unintended side effects if you are using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method.", - "canonical": true, - "file": "cloud_tasks.delete_queue.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteQueue", - "fullName": "google.cloud.tasks.v2.CloudTasks.DeleteQueue", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2.CloudTasksClient" - }, - "method": { - "shortName": "DeleteQueue", - "fullName": "google.cloud.tasks.v2.CloudTasks.DeleteQueue", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2_generated_CloudTasks_PurgeQueue_async", - "title": "tasks purgeQueue Sample", - "origin": "API_DEFINITION", - "description": " Purges a queue by deleting all of its tasks. All tasks created before this method is called are permanently deleted. Purge operations can take up to one minute to take effect. Tasks might be dispatched before the purge takes effect. A purge is irreversible.", - "canonical": true, - "file": "cloud_tasks.purge_queue.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PurgeQueue", - "fullName": "google.cloud.tasks.v2.CloudTasks.PurgeQueue", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tasks.v2.Queue", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2.CloudTasksClient" - }, - "method": { - "shortName": "PurgeQueue", - "fullName": "google.cloud.tasks.v2.CloudTasks.PurgeQueue", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2_generated_CloudTasks_PauseQueue_async", - "title": "tasks pauseQueue Sample", - "origin": "API_DEFINITION", - "description": " Pauses the queue. If a queue is paused then the system will stop dispatching tasks until the queue is resumed via [ResumeQueue][google.cloud.tasks.v2.CloudTasks.ResumeQueue]. Tasks can still be added when the queue is paused. A queue is paused if its [state][google.cloud.tasks.v2.Queue.state] is [PAUSED][google.cloud.tasks.v2.Queue.State.PAUSED].", - "canonical": true, - "file": "cloud_tasks.pause_queue.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PauseQueue", - "fullName": "google.cloud.tasks.v2.CloudTasks.PauseQueue", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tasks.v2.Queue", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2.CloudTasksClient" - }, - "method": { - "shortName": "PauseQueue", - "fullName": "google.cloud.tasks.v2.CloudTasks.PauseQueue", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2_generated_CloudTasks_ResumeQueue_async", - "title": "tasks resumeQueue Sample", - "origin": "API_DEFINITION", - "description": " Resume a queue. This method resumes a queue after it has been [PAUSED][google.cloud.tasks.v2.Queue.State.PAUSED] or [DISABLED][google.cloud.tasks.v2.Queue.State.DISABLED]. The state of a queue is stored in the queue's [state][google.cloud.tasks.v2.Queue.state]; after calling this method it will be set to [RUNNING][google.cloud.tasks.v2.Queue.State.RUNNING]. WARNING: Resuming many high-QPS queues at the same time can lead to target overloading. If you are resuming high-QPS queues, follow the 500/50/5 pattern described in [Managing Cloud Tasks Scaling Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling).", - "canonical": true, - "file": "cloud_tasks.resume_queue.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResumeQueue", - "fullName": "google.cloud.tasks.v2.CloudTasks.ResumeQueue", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tasks.v2.Queue", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2.CloudTasksClient" - }, - "method": { - "shortName": "ResumeQueue", - "fullName": "google.cloud.tasks.v2.CloudTasks.ResumeQueue", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2_generated_CloudTasks_GetIamPolicy_async", - "title": "tasks getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a [Queue][google.cloud.tasks.v2.Queue]. Returns an empty policy if the resource exists and does not have a policy set. Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission on the specified resource parent: * `cloudtasks.queues.getIamPolicy`", - "canonical": true, - "file": "cloud_tasks.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.tasks.v2.CloudTasks.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": ".google.iam.v1.GetPolicyOptions" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2.CloudTasksClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.tasks.v2.CloudTasks.GetIamPolicy", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2_generated_CloudTasks_SetIamPolicy_async", - "title": "tasks setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy for a [Queue][google.cloud.tasks.v2.Queue]. Replaces any existing policy. Note: The Cloud Console does not check queue-level IAM permissions yet. Project-level permissions are required to use the Cloud Console. Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission on the specified resource parent: * `cloudtasks.queues.setIamPolicy`", - "canonical": true, - "file": "cloud_tasks.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.tasks.v2.CloudTasks.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.iam.v1.Policy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2.CloudTasksClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.tasks.v2.CloudTasks.SetIamPolicy", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2_generated_CloudTasks_TestIamPermissions_async", - "title": "tasks testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on a [Queue][google.cloud.tasks.v2.Queue]. If the resource does not exist, this will return an empty set of permissions, not a [NOT_FOUND][google.rpc.Code.NOT_FOUND] error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - "canonical": true, - "file": "cloud_tasks.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.tasks.v2.CloudTasks.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "permissions", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.iam.v1.TestIamPermissionsResponse", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2.CloudTasksClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.tasks.v2.CloudTasks.TestIamPermissions", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2_generated_CloudTasks_ListTasks_async", - "title": "tasks listTasks Sample", - "origin": "API_DEFINITION", - "description": " Lists the tasks in a queue. By default, only the [BASIC][google.cloud.tasks.v2.Task.View.BASIC] view is retrieved due to performance considerations; [response_view][google.cloud.tasks.v2.ListTasksRequest.response_view] controls the subset of information which is returned. The tasks may be returned in any order. The ordering may change at any time.", - "canonical": true, - "file": "cloud_tasks.list_tasks.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 88, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTasks", - "fullName": "google.cloud.tasks.v2.CloudTasks.ListTasks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "response_view", - "type": ".google.cloud.tasks.v2.Task.View" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tasks.v2.ListTasksResponse", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2.CloudTasksClient" - }, - "method": { - "shortName": "ListTasks", - "fullName": "google.cloud.tasks.v2.CloudTasks.ListTasks", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2_generated_CloudTasks_GetTask_async", - "title": "tasks getTask Sample", - "origin": "API_DEFINITION", - "description": " Gets a task.", - "canonical": true, - "file": "cloud_tasks.get_task.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTask", - "fullName": "google.cloud.tasks.v2.CloudTasks.GetTask", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "response_view", - "type": ".google.cloud.tasks.v2.Task.View" - } - ], - "resultType": ".google.cloud.tasks.v2.Task", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2.CloudTasksClient" - }, - "method": { - "shortName": "GetTask", - "fullName": "google.cloud.tasks.v2.CloudTasks.GetTask", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2_generated_CloudTasks_CreateTask_async", - "title": "tasks createTask Sample", - "origin": "API_DEFINITION", - "description": " Creates a task and adds it to a queue. Tasks cannot be updated after creation; there is no UpdateTask command. * The maximum task size is 100KB.", - "canonical": true, - "file": "cloud_tasks.create_task.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 100, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTask", - "fullName": "google.cloud.tasks.v2.CloudTasks.CreateTask", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "task", - "type": ".google.cloud.tasks.v2.Task" - }, - { - "name": "response_view", - "type": ".google.cloud.tasks.v2.Task.View" - } - ], - "resultType": ".google.cloud.tasks.v2.Task", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2.CloudTasksClient" - }, - "method": { - "shortName": "CreateTask", - "fullName": "google.cloud.tasks.v2.CloudTasks.CreateTask", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2_generated_CloudTasks_DeleteTask_async", - "title": "tasks deleteTask Sample", - "origin": "API_DEFINITION", - "description": " Deletes a task. A task can be deleted if it is scheduled or dispatched. A task cannot be deleted if it has executed successfully or permanently failed.", - "canonical": true, - "file": "cloud_tasks.delete_task.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTask", - "fullName": "google.cloud.tasks.v2.CloudTasks.DeleteTask", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2.CloudTasksClient" - }, - "method": { - "shortName": "DeleteTask", - "fullName": "google.cloud.tasks.v2.CloudTasks.DeleteTask", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2_generated_CloudTasks_RunTask_async", - "title": "tasks runTask Sample", - "origin": "API_DEFINITION", - "description": " Forces a task to run now. When this method is called, Cloud Tasks will dispatch the task, even if the task is already running, the queue has reached its [RateLimits][google.cloud.tasks.v2.RateLimits] or is [PAUSED][google.cloud.tasks.v2.Queue.State.PAUSED]. This command is meant to be used for manual debugging. For example, [RunTask][google.cloud.tasks.v2.CloudTasks.RunTask] can be used to retry a failed task after a fix has been made or to manually force a task to be dispatched now. The dispatched task is returned. That is, the task that is returned contains the [status][Task.status] after the task is dispatched but before the task is received by its target. If Cloud Tasks receives a successful response from the task's target, then the task will be deleted; otherwise the task's [schedule_time][google.cloud.tasks.v2.Task.schedule_time] will be reset to the time that [RunTask][google.cloud.tasks.v2.CloudTasks.RunTask] was called plus the retry delay specified in the queue's [RetryConfig][google.cloud.tasks.v2.RetryConfig]. [RunTask][google.cloud.tasks.v2.CloudTasks.RunTask] returns [NOT_FOUND][google.rpc.Code.NOT_FOUND] when it is called on a task that has already succeeded or permanently failed.", - "canonical": true, - "file": "cloud_tasks.run_task.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RunTask", - "fullName": "google.cloud.tasks.v2.CloudTasks.RunTask", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "response_view", - "type": ".google.cloud.tasks.v2.Task.View" - } - ], - "resultType": ".google.cloud.tasks.v2.Task", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2.CloudTasksClient" - }, - "method": { - "shortName": "RunTask", - "fullName": "google.cloud.tasks.v2.CloudTasks.RunTask", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2.CloudTasks" - } - } - } - } - ] -} diff --git a/packages/google-cloud-tasks/samples/generated/v2beta2/snippet_metadata_google.cloud.tasks.v2beta2.json b/packages/google-cloud-tasks/samples/generated/v2beta2/snippet_metadata_google.cloud.tasks.v2beta2.json deleted file mode 100644 index 6964228782b5..000000000000 --- a/packages/google-cloud-tasks/samples/generated/v2beta2/snippet_metadata_google.cloud.tasks.v2beta2.json +++ /dev/null @@ -1,971 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-tasks", - "version": "6.2.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.tasks.v2beta2", - "version": "v2beta2" - } - ] - }, - "snippets": [ - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_ListQueues_async", - "title": "tasks listQueues Sample", - "origin": "API_DEFINITION", - "description": " Lists queues. Queues are returned in lexicographical order.", - "canonical": true, - "file": "cloud_tasks.list_queues.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 95, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListQueues", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.ListQueues", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.tasks.v2beta2.ListQueuesResponse", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "ListQueues", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.ListQueues", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_GetQueue_async", - "title": "tasks getQueue Sample", - "origin": "API_DEFINITION", - "description": " Gets a queue.", - "canonical": true, - "file": "cloud_tasks.get_queue.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetQueue", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.GetQueue", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.tasks.v2beta2.Queue", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "GetQueue", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.GetQueue", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_CreateQueue_async", - "title": "tasks createQueue Sample", - "origin": "API_DEFINITION", - "description": " Creates a queue. Queues created with this method allow tasks to live for a maximum of 31 days. After a task is 31 days old, the task will be deleted regardless of whether it was dispatched or not. WARNING: Using this method may have unintended side effects if you are using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method.", - "canonical": true, - "file": "cloud_tasks.create_queue.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateQueue", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.CreateQueue", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "queue", - "type": ".google.cloud.tasks.v2beta2.Queue" - } - ], - "resultType": ".google.cloud.tasks.v2beta2.Queue", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "CreateQueue", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.CreateQueue", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_UpdateQueue_async", - "title": "tasks updateQueue Sample", - "origin": "API_DEFINITION", - "description": " Updates a queue. This method creates the queue if it does not exist and updates the queue if it does exist. Queues created with this method allow tasks to live for a maximum of 31 days. After a task is 31 days old, the task will be deleted regardless of whether it was dispatched or not. WARNING: Using this method may have unintended side effects if you are using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method.", - "canonical": true, - "file": "cloud_tasks.update_queue.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateQueue", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.UpdateQueue", - "async": true, - "parameters": [ - { - "name": "queue", - "type": ".google.cloud.tasks.v2beta2.Queue" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.tasks.v2beta2.Queue", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "UpdateQueue", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.UpdateQueue", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_DeleteQueue_async", - "title": "tasks deleteQueue Sample", - "origin": "API_DEFINITION", - "description": " Deletes a queue. This command will delete the queue even if it has tasks in it. Note: If you delete a queue, a queue with the same name can't be created for 7 days. WARNING: Using this method may have unintended side effects if you are using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method.", - "canonical": true, - "file": "cloud_tasks.delete_queue.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteQueue", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.DeleteQueue", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "DeleteQueue", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.DeleteQueue", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_PurgeQueue_async", - "title": "tasks purgeQueue Sample", - "origin": "API_DEFINITION", - "description": " Purges a queue by deleting all of its tasks. All tasks created before this method is called are permanently deleted. Purge operations can take up to one minute to take effect. Tasks might be dispatched before the purge takes effect. A purge is irreversible.", - "canonical": true, - "file": "cloud_tasks.purge_queue.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PurgeQueue", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.PurgeQueue", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tasks.v2beta2.Queue", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "PurgeQueue", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.PurgeQueue", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_PauseQueue_async", - "title": "tasks pauseQueue Sample", - "origin": "API_DEFINITION", - "description": " Pauses the queue. If a queue is paused then the system will stop dispatching tasks until the queue is resumed via [ResumeQueue][google.cloud.tasks.v2beta2.CloudTasks.ResumeQueue]. Tasks can still be added when the queue is paused. A queue is paused if its [state][google.cloud.tasks.v2beta2.Queue.state] is [PAUSED][google.cloud.tasks.v2beta2.Queue.State.PAUSED].", - "canonical": true, - "file": "cloud_tasks.pause_queue.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PauseQueue", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.PauseQueue", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tasks.v2beta2.Queue", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "PauseQueue", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.PauseQueue", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_ResumeQueue_async", - "title": "tasks resumeQueue Sample", - "origin": "API_DEFINITION", - "description": " Resume a queue. This method resumes a queue after it has been [PAUSED][google.cloud.tasks.v2beta2.Queue.State.PAUSED] or [DISABLED][google.cloud.tasks.v2beta2.Queue.State.DISABLED]. The state of a queue is stored in the queue's [state][google.cloud.tasks.v2beta2.Queue.state]; after calling this method it will be set to [RUNNING][google.cloud.tasks.v2beta2.Queue.State.RUNNING]. WARNING: Resuming many high-QPS queues at the same time can lead to target overloading. If you are resuming high-QPS queues, follow the 500/50/5 pattern described in [Managing Cloud Tasks Scaling Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling).", - "canonical": true, - "file": "cloud_tasks.resume_queue.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResumeQueue", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.ResumeQueue", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tasks.v2beta2.Queue", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "ResumeQueue", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.ResumeQueue", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_UploadQueueYaml_async", - "title": "tasks uploadQueueYaml Sample", - "origin": "API_DEFINITION", - "description": " Update queue list by uploading a queue.yaml file. The queue.yaml file is supplied in the request body as a YAML encoded string. This method was added to support gcloud clients versions before 322.0.0. New clients should use CreateQueue instead of this method.", - "canonical": true, - "file": "cloud_tasks.upload_queue_yaml.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UploadQueueYaml", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.UploadQueueYaml", - "async": true, - "parameters": [ - { - "name": "app_id", - "type": "TYPE_STRING" - }, - { - "name": "http_body", - "type": ".google.api.HttpBody" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "UploadQueueYaml", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.UploadQueueYaml", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_GetIamPolicy_async", - "title": "tasks getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a [Queue][google.cloud.tasks.v2beta2.Queue]. Returns an empty policy if the resource exists and does not have a policy set. Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission on the specified resource parent: * `cloudtasks.queues.getIamPolicy`", - "canonical": true, - "file": "cloud_tasks.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": ".google.iam.v1.GetPolicyOptions" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.GetIamPolicy", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_SetIamPolicy_async", - "title": "tasks setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy for a [Queue][google.cloud.tasks.v2beta2.Queue]. Replaces any existing policy. Note: The Cloud Console does not check queue-level IAM permissions yet. Project-level permissions are required to use the Cloud Console. Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission on the specified resource parent: * `cloudtasks.queues.setIamPolicy`", - "canonical": true, - "file": "cloud_tasks.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.iam.v1.Policy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.SetIamPolicy", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_TestIamPermissions_async", - "title": "tasks testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on a [Queue][google.cloud.tasks.v2beta2.Queue]. If the resource does not exist, this will return an empty set of permissions, not a [NOT_FOUND][google.rpc.Code.NOT_FOUND] error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - "canonical": true, - "file": "cloud_tasks.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "permissions", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.iam.v1.TestIamPermissionsResponse", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.TestIamPermissions", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_ListTasks_async", - "title": "tasks listTasks Sample", - "origin": "API_DEFINITION", - "description": " Lists the tasks in a queue. By default, only the [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC] view is retrieved due to performance considerations; [response_view][google.cloud.tasks.v2beta2.ListTasksRequest.response_view] controls the subset of information which is returned. The tasks may be returned in any order. The ordering may change at any time.", - "canonical": true, - "file": "cloud_tasks.list_tasks.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 89, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.ListTasks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "response_view", - "type": ".google.cloud.tasks.v2beta2.Task.View" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tasks.v2beta2.ListTasksResponse", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "ListTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.ListTasks", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_GetTask_async", - "title": "tasks getTask Sample", - "origin": "API_DEFINITION", - "description": " Gets a task.", - "canonical": true, - "file": "cloud_tasks.get_task.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTask", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.GetTask", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "response_view", - "type": ".google.cloud.tasks.v2beta2.Task.View" - } - ], - "resultType": ".google.cloud.tasks.v2beta2.Task", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "GetTask", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.GetTask", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_CreateTask_async", - "title": "tasks createTask Sample", - "origin": "API_DEFINITION", - "description": " Creates a task and adds it to a queue. Tasks cannot be updated after creation; there is no UpdateTask command. * For [App Engine queues][google.cloud.tasks.v2beta2.AppEngineHttpTarget], the maximum task size is 100KB. * For [pull queues][google.cloud.tasks.v2beta2.PullTarget], the maximum task size is 1MB.", - "canonical": true, - "file": "cloud_tasks.create_task.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 101, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTask", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.CreateTask", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "task", - "type": ".google.cloud.tasks.v2beta2.Task" - }, - { - "name": "response_view", - "type": ".google.cloud.tasks.v2beta2.Task.View" - } - ], - "resultType": ".google.cloud.tasks.v2beta2.Task", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "CreateTask", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.CreateTask", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_DeleteTask_async", - "title": "tasks deleteTask Sample", - "origin": "API_DEFINITION", - "description": " Deletes a task. A task can be deleted if it is scheduled or dispatched. A task cannot be deleted if it has completed successfully or permanently failed.", - "canonical": true, - "file": "cloud_tasks.delete_task.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTask", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.DeleteTask", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "DeleteTask", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.DeleteTask", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_LeaseTasks_async", - "title": "tasks leaseTasks Sample", - "origin": "API_DEFINITION", - "description": " Leases tasks from a pull queue for [lease_duration][google.cloud.tasks.v2beta2.LeaseTasksRequest.lease_duration]. This method is invoked by the worker to obtain a lease. The worker must acknowledge the task via [AcknowledgeTask][google.cloud.tasks.v2beta2.CloudTasks.AcknowledgeTask] after they have performed the work associated with the task. The [payload][google.cloud.tasks.v2beta2.PullMessage.payload] is intended to store data that the worker needs to perform the work associated with the task. To return the payloads in the [response][google.cloud.tasks.v2beta2.LeaseTasksResponse], set [response_view][google.cloud.tasks.v2beta2.LeaseTasksRequest.response_view] to [FULL][google.cloud.tasks.v2beta2.Task.View.FULL]. A maximum of 10 qps of [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] requests are allowed per queue. [RESOURCE_EXHAUSTED][google.rpc.Code.RESOURCE_EXHAUSTED] is returned when this limit is exceeded. [RESOURCE_EXHAUSTED][google.rpc.Code.RESOURCE_EXHAUSTED] is also returned when [max_tasks_dispatched_per_second][google.cloud.tasks.v2beta2.RateLimits.max_tasks_dispatched_per_second] is exceeded.", - "canonical": true, - "file": "cloud_tasks.lease_tasks.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 127, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "LeaseTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "max_tasks", - "type": "TYPE_INT32" - }, - { - "name": "lease_duration", - "type": ".google.protobuf.Duration" - }, - { - "name": "response_view", - "type": ".google.cloud.tasks.v2beta2.Task.View" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tasks.v2beta2.LeaseTasksResponse", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "LeaseTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_AcknowledgeTask_async", - "title": "tasks acknowledgeTask Sample", - "origin": "API_DEFINITION", - "description": " Acknowledges a pull task. The worker, that is, the entity that [leased][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] this task must call this method to indicate that the work associated with the task has finished. The worker must acknowledge a task within the [lease_duration][google.cloud.tasks.v2beta2.LeaseTasksRequest.lease_duration] or the lease will expire and the task will become available to be leased again. After the task is acknowledged, it will not be returned by a later [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks], [GetTask][google.cloud.tasks.v2beta2.CloudTasks.GetTask], or [ListTasks][google.cloud.tasks.v2beta2.CloudTasks.ListTasks].", - "canonical": true, - "file": "cloud_tasks.acknowledge_task.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AcknowledgeTask", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.AcknowledgeTask", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "schedule_time", - "type": ".google.protobuf.Timestamp" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "AcknowledgeTask", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.AcknowledgeTask", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_RenewLease_async", - "title": "tasks renewLease Sample", - "origin": "API_DEFINITION", - "description": " Renew the current lease of a pull task. The worker can use this method to extend the lease by a new duration, starting from now. The new task lease will be returned in the task's [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time].", - "canonical": true, - "file": "cloud_tasks.renew_lease.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RenewLease", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.RenewLease", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "schedule_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "lease_duration", - "type": ".google.protobuf.Duration" - }, - { - "name": "response_view", - "type": ".google.cloud.tasks.v2beta2.Task.View" - } - ], - "resultType": ".google.cloud.tasks.v2beta2.Task", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "RenewLease", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.RenewLease", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_CancelLease_async", - "title": "tasks cancelLease Sample", - "origin": "API_DEFINITION", - "description": " Cancel a pull task's lease. The worker can use this method to cancel a task's lease by setting its [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] to now. This will make the task available to be leased to the next caller of [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks].", - "canonical": true, - "file": "cloud_tasks.cancel_lease.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CancelLease", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.CancelLease", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "schedule_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "response_view", - "type": ".google.cloud.tasks.v2beta2.Task.View" - } - ], - "resultType": ".google.cloud.tasks.v2beta2.Task", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "CancelLease", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.CancelLease", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta2_generated_CloudTasks_RunTask_async", - "title": "tasks runTask Sample", - "origin": "API_DEFINITION", - "description": " Forces a task to run now. When this method is called, Cloud Tasks will dispatch the task, even if the task is already running, the queue has reached its [RateLimits][google.cloud.tasks.v2beta2.RateLimits] or is [PAUSED][google.cloud.tasks.v2beta2.Queue.State.PAUSED]. This command is meant to be used for manual debugging. For example, [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] can be used to retry a failed task after a fix has been made or to manually force a task to be dispatched now. The dispatched task is returned. That is, the task that is returned contains the [status][google.cloud.tasks.v2beta2.Task.status] after the task is dispatched but before the task is received by its target. If Cloud Tasks receives a successful response from the task's target, then the task will be deleted; otherwise the task's [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] will be reset to the time that [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] was called plus the retry delay specified in the queue's [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig]. [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] returns [NOT_FOUND][google.rpc.Code.NOT_FOUND] when it is called on a task that has already succeeded or permanently failed. [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] cannot be called on a [pull task][google.cloud.tasks.v2beta2.PullMessage].", - "canonical": true, - "file": "cloud_tasks.run_task.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RunTask", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.RunTask", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "response_view", - "type": ".google.cloud.tasks.v2beta2.Task.View" - } - ], - "resultType": ".google.cloud.tasks.v2beta2.Task", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta2.CloudTasksClient" - }, - "method": { - "shortName": "RunTask", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks.RunTask", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta2.CloudTasks" - } - } - } - } - ] -} diff --git a/packages/google-cloud-tasks/samples/generated/v2beta3/snippet_metadata_google.cloud.tasks.v2beta3.json b/packages/google-cloud-tasks/samples/generated/v2beta3/snippet_metadata_google.cloud.tasks.v2beta3.json deleted file mode 100644 index 8c6d4740a16f..000000000000 --- a/packages/google-cloud-tasks/samples/generated/v2beta3/snippet_metadata_google.cloud.tasks.v2beta3.json +++ /dev/null @@ -1,727 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-tasks", - "version": "6.2.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.tasks.v2beta3", - "version": "v2beta3" - } - ] - }, - "snippets": [ - { - "regionTag": "cloudtasks_v2beta3_generated_CloudTasks_ListQueues_async", - "title": "tasks listQueues Sample", - "origin": "API_DEFINITION", - "description": " Lists queues. Queues are returned in lexicographical order.", - "canonical": true, - "file": "cloud_tasks.list_queues.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 95, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListQueues", - "fullName": "google.cloud.tasks.v2beta3.CloudTasks.ListQueues", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.tasks.v2beta3.ListQueuesResponse", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta3.CloudTasksClient" - }, - "method": { - "shortName": "ListQueues", - "fullName": "google.cloud.tasks.v2beta3.CloudTasks.ListQueues", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta3.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta3_generated_CloudTasks_GetQueue_async", - "title": "tasks getQueue Sample", - "origin": "API_DEFINITION", - "description": " Gets a queue.", - "canonical": true, - "file": "cloud_tasks.get_queue.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetQueue", - "fullName": "google.cloud.tasks.v2beta3.CloudTasks.GetQueue", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.tasks.v2beta3.Queue", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta3.CloudTasksClient" - }, - "method": { - "shortName": "GetQueue", - "fullName": "google.cloud.tasks.v2beta3.CloudTasks.GetQueue", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta3.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta3_generated_CloudTasks_CreateQueue_async", - "title": "tasks createQueue Sample", - "origin": "API_DEFINITION", - "description": " Creates a queue. Queues created with this method allow tasks to live for a maximum of 31 days. After a task is 31 days old, the task will be deleted regardless of whether it was dispatched or not. WARNING: Using this method may have unintended side effects if you are using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method.", - "canonical": true, - "file": "cloud_tasks.create_queue.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateQueue", - "fullName": "google.cloud.tasks.v2beta3.CloudTasks.CreateQueue", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "queue", - "type": ".google.cloud.tasks.v2beta3.Queue" - } - ], - "resultType": ".google.cloud.tasks.v2beta3.Queue", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta3.CloudTasksClient" - }, - "method": { - "shortName": "CreateQueue", - "fullName": "google.cloud.tasks.v2beta3.CloudTasks.CreateQueue", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta3.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta3_generated_CloudTasks_UpdateQueue_async", - "title": "tasks updateQueue Sample", - "origin": "API_DEFINITION", - "description": " Updates a queue. This method creates the queue if it does not exist and updates the queue if it does exist. Queues created with this method allow tasks to live for a maximum of 31 days. After a task is 31 days old, the task will be deleted regardless of whether it was dispatched or not. WARNING: Using this method may have unintended side effects if you are using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method.", - "canonical": true, - "file": "cloud_tasks.update_queue.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateQueue", - "fullName": "google.cloud.tasks.v2beta3.CloudTasks.UpdateQueue", - "async": true, - "parameters": [ - { - "name": "queue", - "type": ".google.cloud.tasks.v2beta3.Queue" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.tasks.v2beta3.Queue", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta3.CloudTasksClient" - }, - "method": { - "shortName": "UpdateQueue", - "fullName": "google.cloud.tasks.v2beta3.CloudTasks.UpdateQueue", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta3.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta3_generated_CloudTasks_DeleteQueue_async", - "title": "tasks deleteQueue Sample", - "origin": "API_DEFINITION", - "description": " Deletes a queue. This command will delete the queue even if it has tasks in it. Note: If you delete a queue, a queue with the same name can't be created for 7 days. WARNING: Using this method may have unintended side effects if you are using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method.", - "canonical": true, - "file": "cloud_tasks.delete_queue.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteQueue", - "fullName": "google.cloud.tasks.v2beta3.CloudTasks.DeleteQueue", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta3.CloudTasksClient" - }, - "method": { - "shortName": "DeleteQueue", - "fullName": "google.cloud.tasks.v2beta3.CloudTasks.DeleteQueue", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta3.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta3_generated_CloudTasks_PurgeQueue_async", - "title": "tasks purgeQueue Sample", - "origin": "API_DEFINITION", - "description": " Purges a queue by deleting all of its tasks. All tasks created before this method is called are permanently deleted. Purge operations can take up to one minute to take effect. Tasks might be dispatched before the purge takes effect. A purge is irreversible.", - "canonical": true, - "file": "cloud_tasks.purge_queue.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PurgeQueue", - "fullName": "google.cloud.tasks.v2beta3.CloudTasks.PurgeQueue", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tasks.v2beta3.Queue", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta3.CloudTasksClient" - }, - "method": { - "shortName": "PurgeQueue", - "fullName": "google.cloud.tasks.v2beta3.CloudTasks.PurgeQueue", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta3.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta3_generated_CloudTasks_PauseQueue_async", - "title": "tasks pauseQueue Sample", - "origin": "API_DEFINITION", - "description": " Pauses the queue. If a queue is paused then the system will stop dispatching tasks until the queue is resumed via [ResumeQueue][google.cloud.tasks.v2beta3.CloudTasks.ResumeQueue]. Tasks can still be added when the queue is paused. A queue is paused if its [state][google.cloud.tasks.v2beta3.Queue.state] is [PAUSED][google.cloud.tasks.v2beta3.Queue.State.PAUSED].", - "canonical": true, - "file": "cloud_tasks.pause_queue.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PauseQueue", - "fullName": "google.cloud.tasks.v2beta3.CloudTasks.PauseQueue", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tasks.v2beta3.Queue", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta3.CloudTasksClient" - }, - "method": { - "shortName": "PauseQueue", - "fullName": "google.cloud.tasks.v2beta3.CloudTasks.PauseQueue", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta3.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta3_generated_CloudTasks_ResumeQueue_async", - "title": "tasks resumeQueue Sample", - "origin": "API_DEFINITION", - "description": " Resume a queue. This method resumes a queue after it has been [PAUSED][google.cloud.tasks.v2beta3.Queue.State.PAUSED] or [DISABLED][google.cloud.tasks.v2beta3.Queue.State.DISABLED]. The state of a queue is stored in the queue's [state][google.cloud.tasks.v2beta3.Queue.state]; after calling this method it will be set to [RUNNING][google.cloud.tasks.v2beta3.Queue.State.RUNNING]. WARNING: Resuming many high-QPS queues at the same time can lead to target overloading. If you are resuming high-QPS queues, follow the 500/50/5 pattern described in [Managing Cloud Tasks Scaling Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling).", - "canonical": true, - "file": "cloud_tasks.resume_queue.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResumeQueue", - "fullName": "google.cloud.tasks.v2beta3.CloudTasks.ResumeQueue", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tasks.v2beta3.Queue", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta3.CloudTasksClient" - }, - "method": { - "shortName": "ResumeQueue", - "fullName": "google.cloud.tasks.v2beta3.CloudTasks.ResumeQueue", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta3.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta3_generated_CloudTasks_GetIamPolicy_async", - "title": "tasks getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a [Queue][google.cloud.tasks.v2beta3.Queue]. Returns an empty policy if the resource exists and does not have a policy set. Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission on the specified resource parent: * `cloudtasks.queues.getIamPolicy`", - "canonical": true, - "file": "cloud_tasks.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.tasks.v2beta3.CloudTasks.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": ".google.iam.v1.GetPolicyOptions" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta3.CloudTasksClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.cloud.tasks.v2beta3.CloudTasks.GetIamPolicy", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta3.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta3_generated_CloudTasks_SetIamPolicy_async", - "title": "tasks setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy for a [Queue][google.cloud.tasks.v2beta3.Queue]. Replaces any existing policy. Note: The Cloud Console does not check queue-level IAM permissions yet. Project-level permissions are required to use the Cloud Console. Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission on the specified resource parent: * `cloudtasks.queues.setIamPolicy`", - "canonical": true, - "file": "cloud_tasks.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.tasks.v2beta3.CloudTasks.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.iam.v1.Policy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta3.CloudTasksClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.cloud.tasks.v2beta3.CloudTasks.SetIamPolicy", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta3.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta3_generated_CloudTasks_TestIamPermissions_async", - "title": "tasks testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns permissions that a caller has on a [Queue][google.cloud.tasks.v2beta3.Queue]. If the resource does not exist, this will return an empty set of permissions, not a [NOT_FOUND][google.rpc.Code.NOT_FOUND] error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - "canonical": true, - "file": "cloud_tasks.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.tasks.v2beta3.CloudTasks.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "permissions", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.iam.v1.TestIamPermissionsResponse", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta3.CloudTasksClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.cloud.tasks.v2beta3.CloudTasks.TestIamPermissions", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta3.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta3_generated_CloudTasks_ListTasks_async", - "title": "tasks listTasks Sample", - "origin": "API_DEFINITION", - "description": " Lists the tasks in a queue. By default, only the [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC] view is retrieved due to performance considerations; [response_view][google.cloud.tasks.v2beta3.ListTasksRequest.response_view] controls the subset of information which is returned. The tasks may be returned in any order. The ordering may change at any time.", - "canonical": true, - "file": "cloud_tasks.list_tasks.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 89, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTasks", - "fullName": "google.cloud.tasks.v2beta3.CloudTasks.ListTasks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "response_view", - "type": ".google.cloud.tasks.v2beta3.Task.View" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tasks.v2beta3.ListTasksResponse", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta3.CloudTasksClient" - }, - "method": { - "shortName": "ListTasks", - "fullName": "google.cloud.tasks.v2beta3.CloudTasks.ListTasks", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta3.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta3_generated_CloudTasks_GetTask_async", - "title": "tasks getTask Sample", - "origin": "API_DEFINITION", - "description": " Gets a task.", - "canonical": true, - "file": "cloud_tasks.get_task.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTask", - "fullName": "google.cloud.tasks.v2beta3.CloudTasks.GetTask", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "response_view", - "type": ".google.cloud.tasks.v2beta3.Task.View" - } - ], - "resultType": ".google.cloud.tasks.v2beta3.Task", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta3.CloudTasksClient" - }, - "method": { - "shortName": "GetTask", - "fullName": "google.cloud.tasks.v2beta3.CloudTasks.GetTask", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta3.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta3_generated_CloudTasks_CreateTask_async", - "title": "tasks createTask Sample", - "origin": "API_DEFINITION", - "description": " Creates a task and adds it to a queue. Tasks cannot be updated after creation; there is no UpdateTask command. * The maximum task size is 100KB.", - "canonical": true, - "file": "cloud_tasks.create_task.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 101, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTask", - "fullName": "google.cloud.tasks.v2beta3.CloudTasks.CreateTask", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "task", - "type": ".google.cloud.tasks.v2beta3.Task" - }, - { - "name": "response_view", - "type": ".google.cloud.tasks.v2beta3.Task.View" - } - ], - "resultType": ".google.cloud.tasks.v2beta3.Task", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta3.CloudTasksClient" - }, - "method": { - "shortName": "CreateTask", - "fullName": "google.cloud.tasks.v2beta3.CloudTasks.CreateTask", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta3.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta3_generated_CloudTasks_DeleteTask_async", - "title": "tasks deleteTask Sample", - "origin": "API_DEFINITION", - "description": " Deletes a task. A task can be deleted if it is scheduled or dispatched. A task cannot be deleted if it has executed successfully or permanently failed.", - "canonical": true, - "file": "cloud_tasks.delete_task.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTask", - "fullName": "google.cloud.tasks.v2beta3.CloudTasks.DeleteTask", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta3.CloudTasksClient" - }, - "method": { - "shortName": "DeleteTask", - "fullName": "google.cloud.tasks.v2beta3.CloudTasks.DeleteTask", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta3.CloudTasks" - } - } - } - }, - { - "regionTag": "cloudtasks_v2beta3_generated_CloudTasks_RunTask_async", - "title": "tasks runTask Sample", - "origin": "API_DEFINITION", - "description": " Forces a task to run now. When this method is called, Cloud Tasks will dispatch the task, even if the task is already running, the queue has reached its [RateLimits][google.cloud.tasks.v2beta3.RateLimits] or is [PAUSED][google.cloud.tasks.v2beta3.Queue.State.PAUSED]. This command is meant to be used for manual debugging. For example, [RunTask][google.cloud.tasks.v2beta3.CloudTasks.RunTask] can be used to retry a failed task after a fix has been made or to manually force a task to be dispatched now. The dispatched task is returned. That is, the task that is returned contains the [status][Task.status] after the task is dispatched but before the task is received by its target. If Cloud Tasks receives a successful response from the task's target, then the task will be deleted; otherwise the task's [schedule_time][google.cloud.tasks.v2beta3.Task.schedule_time] will be reset to the time that [RunTask][google.cloud.tasks.v2beta3.CloudTasks.RunTask] was called plus the retry delay specified in the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig]. [RunTask][google.cloud.tasks.v2beta3.CloudTasks.RunTask] returns [NOT_FOUND][google.rpc.Code.NOT_FOUND] when it is called on a task that has already succeeded or permanently failed.", - "canonical": true, - "file": "cloud_tasks.run_task.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RunTask", - "fullName": "google.cloud.tasks.v2beta3.CloudTasks.RunTask", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "response_view", - "type": ".google.cloud.tasks.v2beta3.Task.View" - } - ], - "resultType": ".google.cloud.tasks.v2beta3.Task", - "client": { - "shortName": "CloudTasksClient", - "fullName": "google.cloud.tasks.v2beta3.CloudTasksClient" - }, - "method": { - "shortName": "RunTask", - "fullName": "google.cloud.tasks.v2beta3.CloudTasks.RunTask", - "service": { - "shortName": "CloudTasks", - "fullName": "google.cloud.tasks.v2beta3.CloudTasks" - } - } - } - } - ] -} diff --git a/packages/google-cloud-telcoautomation/samples/generated/v1/snippet_metadata_google.cloud.telcoautomation.v1.json b/packages/google-cloud-telcoautomation/samples/generated/v1/snippet_metadata_google.cloud.telcoautomation.v1.json deleted file mode 100644 index 7734905849d0..000000000000 --- a/packages/google-cloud-telcoautomation/samples/generated/v1/snippet_metadata_google.cloud.telcoautomation.v1.json +++ /dev/null @@ -1,1639 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-telcoautomation", - "version": "0.5.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.telcoautomation.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "telcoautomation_v1_generated_TelcoAutomation_ListOrchestrationClusters_async", - "title": "TelcoAutomation listOrchestrationClusters Sample", - "origin": "API_DEFINITION", - "description": " Lists OrchestrationClusters in a given project and location.", - "canonical": true, - "file": "telco_automation.list_orchestration_clusters.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListOrchestrationClusters", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.ListOrchestrationClusters", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.telcoautomation.v1.ListOrchestrationClustersResponse", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomationClient" - }, - "method": { - "shortName": "ListOrchestrationClusters", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.ListOrchestrationClusters", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1_generated_TelcoAutomation_GetOrchestrationCluster_async", - "title": "TelcoAutomation getOrchestrationCluster Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single OrchestrationCluster.", - "canonical": true, - "file": "telco_automation.get_orchestration_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetOrchestrationCluster", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.GetOrchestrationCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.telcoautomation.v1.OrchestrationCluster", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomationClient" - }, - "method": { - "shortName": "GetOrchestrationCluster", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.GetOrchestrationCluster", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1_generated_TelcoAutomation_CreateOrchestrationCluster_async", - "title": "TelcoAutomation createOrchestrationCluster Sample", - "origin": "API_DEFINITION", - "description": " Creates a new OrchestrationCluster in a given project and location.", - "canonical": true, - "file": "telco_automation.create_orchestration_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateOrchestrationCluster", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.CreateOrchestrationCluster", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "orchestration_cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "orchestration_cluster", - "type": ".google.cloud.telcoautomation.v1.OrchestrationCluster" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomationClient" - }, - "method": { - "shortName": "CreateOrchestrationCluster", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.CreateOrchestrationCluster", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1_generated_TelcoAutomation_DeleteOrchestrationCluster_async", - "title": "TelcoAutomation deleteOrchestrationCluster Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single OrchestrationCluster.", - "canonical": true, - "file": "telco_automation.delete_orchestration_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteOrchestrationCluster", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.DeleteOrchestrationCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomationClient" - }, - "method": { - "shortName": "DeleteOrchestrationCluster", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.DeleteOrchestrationCluster", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1_generated_TelcoAutomation_ListEdgeSlms_async", - "title": "TelcoAutomation listEdgeSlms Sample", - "origin": "API_DEFINITION", - "description": " Lists EdgeSlms in a given project and location.", - "canonical": true, - "file": "telco_automation.list_edge_slms.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEdgeSlms", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.ListEdgeSlms", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.telcoautomation.v1.ListEdgeSlmsResponse", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomationClient" - }, - "method": { - "shortName": "ListEdgeSlms", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.ListEdgeSlms", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1_generated_TelcoAutomation_GetEdgeSlm_async", - "title": "TelcoAutomation getEdgeSlm Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single EdgeSlm.", - "canonical": true, - "file": "telco_automation.get_edge_slm.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEdgeSlm", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.GetEdgeSlm", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.telcoautomation.v1.EdgeSlm", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomationClient" - }, - "method": { - "shortName": "GetEdgeSlm", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.GetEdgeSlm", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1_generated_TelcoAutomation_CreateEdgeSlm_async", - "title": "TelcoAutomation createEdgeSlm Sample", - "origin": "API_DEFINITION", - "description": " Creates a new EdgeSlm in a given project and location.", - "canonical": true, - "file": "telco_automation.create_edge_slm.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateEdgeSlm", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.CreateEdgeSlm", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "edge_slm_id", - "type": "TYPE_STRING" - }, - { - "name": "edge_slm", - "type": ".google.cloud.telcoautomation.v1.EdgeSlm" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomationClient" - }, - "method": { - "shortName": "CreateEdgeSlm", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.CreateEdgeSlm", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1_generated_TelcoAutomation_DeleteEdgeSlm_async", - "title": "TelcoAutomation deleteEdgeSlm Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single EdgeSlm.", - "canonical": true, - "file": "telco_automation.delete_edge_slm.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteEdgeSlm", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.DeleteEdgeSlm", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomationClient" - }, - "method": { - "shortName": "DeleteEdgeSlm", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.DeleteEdgeSlm", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1_generated_TelcoAutomation_CreateBlueprint_async", - "title": "TelcoAutomation createBlueprint Sample", - "origin": "API_DEFINITION", - "description": " Creates a blueprint.", - "canonical": true, - "file": "telco_automation.create_blueprint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateBlueprint", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.CreateBlueprint", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "blueprint_id", - "type": "TYPE_STRING" - }, - { - "name": "blueprint", - "type": ".google.cloud.telcoautomation.v1.Blueprint" - } - ], - "resultType": ".google.cloud.telcoautomation.v1.Blueprint", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomationClient" - }, - "method": { - "shortName": "CreateBlueprint", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.CreateBlueprint", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1_generated_TelcoAutomation_UpdateBlueprint_async", - "title": "TelcoAutomation updateBlueprint Sample", - "origin": "API_DEFINITION", - "description": " Updates a blueprint.", - "canonical": true, - "file": "telco_automation.update_blueprint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateBlueprint", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.UpdateBlueprint", - "async": true, - "parameters": [ - { - "name": "blueprint", - "type": ".google.cloud.telcoautomation.v1.Blueprint" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.telcoautomation.v1.Blueprint", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomationClient" - }, - "method": { - "shortName": "UpdateBlueprint", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.UpdateBlueprint", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1_generated_TelcoAutomation_GetBlueprint_async", - "title": "TelcoAutomation getBlueprint Sample", - "origin": "API_DEFINITION", - "description": " Returns the requested blueprint.", - "canonical": true, - "file": "telco_automation.get_blueprint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBlueprint", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.GetBlueprint", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.telcoautomation.v1.BlueprintView" - } - ], - "resultType": ".google.cloud.telcoautomation.v1.Blueprint", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomationClient" - }, - "method": { - "shortName": "GetBlueprint", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.GetBlueprint", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1_generated_TelcoAutomation_DeleteBlueprint_async", - "title": "TelcoAutomation deleteBlueprint Sample", - "origin": "API_DEFINITION", - "description": " Deletes a blueprint and all its revisions.", - "canonical": true, - "file": "telco_automation.delete_blueprint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteBlueprint", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.DeleteBlueprint", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomationClient" - }, - "method": { - "shortName": "DeleteBlueprint", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.DeleteBlueprint", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1_generated_TelcoAutomation_ListBlueprints_async", - "title": "TelcoAutomation listBlueprints Sample", - "origin": "API_DEFINITION", - "description": " List all blueprints.", - "canonical": true, - "file": "telco_automation.list_blueprints.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBlueprints", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.ListBlueprints", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.telcoautomation.v1.ListBlueprintsResponse", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomationClient" - }, - "method": { - "shortName": "ListBlueprints", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.ListBlueprints", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1_generated_TelcoAutomation_ApproveBlueprint_async", - "title": "TelcoAutomation approveBlueprint Sample", - "origin": "API_DEFINITION", - "description": " Approves a blueprint and commits a new revision.", - "canonical": true, - "file": "telco_automation.approve_blueprint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ApproveBlueprint", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.ApproveBlueprint", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.telcoautomation.v1.Blueprint", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomationClient" - }, - "method": { - "shortName": "ApproveBlueprint", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.ApproveBlueprint", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1_generated_TelcoAutomation_ProposeBlueprint_async", - "title": "TelcoAutomation proposeBlueprint Sample", - "origin": "API_DEFINITION", - "description": " Proposes a blueprint for approval of changes.", - "canonical": true, - "file": "telco_automation.propose_blueprint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ProposeBlueprint", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.ProposeBlueprint", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.telcoautomation.v1.Blueprint", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomationClient" - }, - "method": { - "shortName": "ProposeBlueprint", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.ProposeBlueprint", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1_generated_TelcoAutomation_RejectBlueprint_async", - "title": "TelcoAutomation rejectBlueprint Sample", - "origin": "API_DEFINITION", - "description": " Rejects a blueprint revision proposal and flips it back to Draft state.", - "canonical": true, - "file": "telco_automation.reject_blueprint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RejectBlueprint", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.RejectBlueprint", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.telcoautomation.v1.Blueprint", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomationClient" - }, - "method": { - "shortName": "RejectBlueprint", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.RejectBlueprint", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1_generated_TelcoAutomation_ListBlueprintRevisions_async", - "title": "TelcoAutomation listBlueprintRevisions Sample", - "origin": "API_DEFINITION", - "description": " List blueprint revisions of a given blueprint.", - "canonical": true, - "file": "telco_automation.list_blueprint_revisions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBlueprintRevisions", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.ListBlueprintRevisions", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.telcoautomation.v1.ListBlueprintRevisionsResponse", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomationClient" - }, - "method": { - "shortName": "ListBlueprintRevisions", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.ListBlueprintRevisions", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1_generated_TelcoAutomation_SearchBlueprintRevisions_async", - "title": "TelcoAutomation searchBlueprintRevisions Sample", - "origin": "API_DEFINITION", - "description": " Searches across blueprint revisions.", - "canonical": true, - "file": "telco_automation.search_blueprint_revisions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchBlueprintRevisions", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.SearchBlueprintRevisions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.telcoautomation.v1.SearchBlueprintRevisionsResponse", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomationClient" - }, - "method": { - "shortName": "SearchBlueprintRevisions", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.SearchBlueprintRevisions", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1_generated_TelcoAutomation_SearchDeploymentRevisions_async", - "title": "TelcoAutomation searchDeploymentRevisions Sample", - "origin": "API_DEFINITION", - "description": " Searches across deployment revisions.", - "canonical": true, - "file": "telco_automation.search_deployment_revisions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchDeploymentRevisions", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.SearchDeploymentRevisions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.telcoautomation.v1.SearchDeploymentRevisionsResponse", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomationClient" - }, - "method": { - "shortName": "SearchDeploymentRevisions", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.SearchDeploymentRevisions", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1_generated_TelcoAutomation_DiscardBlueprintChanges_async", - "title": "TelcoAutomation discardBlueprintChanges Sample", - "origin": "API_DEFINITION", - "description": " Discards the changes in a blueprint and reverts the blueprint to the last approved blueprint revision. No changes take place if a blueprint does not have revisions.", - "canonical": true, - "file": "telco_automation.discard_blueprint_changes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DiscardBlueprintChanges", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.DiscardBlueprintChanges", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.telcoautomation.v1.DiscardBlueprintChangesResponse", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomationClient" - }, - "method": { - "shortName": "DiscardBlueprintChanges", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.DiscardBlueprintChanges", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1_generated_TelcoAutomation_ListPublicBlueprints_async", - "title": "TelcoAutomation listPublicBlueprints Sample", - "origin": "API_DEFINITION", - "description": " Lists the blueprints in TNA's public catalog. Default page size = 20, Max Page Size = 100.", - "canonical": true, - "file": "telco_automation.list_public_blueprints.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPublicBlueprints", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.ListPublicBlueprints", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.telcoautomation.v1.ListPublicBlueprintsResponse", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomationClient" - }, - "method": { - "shortName": "ListPublicBlueprints", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.ListPublicBlueprints", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1_generated_TelcoAutomation_GetPublicBlueprint_async", - "title": "TelcoAutomation getPublicBlueprint Sample", - "origin": "API_DEFINITION", - "description": " Returns the requested public blueprint.", - "canonical": true, - "file": "telco_automation.get_public_blueprint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPublicBlueprint", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.GetPublicBlueprint", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.telcoautomation.v1.PublicBlueprint", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomationClient" - }, - "method": { - "shortName": "GetPublicBlueprint", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.GetPublicBlueprint", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1_generated_TelcoAutomation_CreateDeployment_async", - "title": "TelcoAutomation createDeployment Sample", - "origin": "API_DEFINITION", - "description": " Creates a deployment.", - "canonical": true, - "file": "telco_automation.create_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDeployment", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.CreateDeployment", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "deployment_id", - "type": "TYPE_STRING" - }, - { - "name": "deployment", - "type": ".google.cloud.telcoautomation.v1.Deployment" - } - ], - "resultType": ".google.cloud.telcoautomation.v1.Deployment", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomationClient" - }, - "method": { - "shortName": "CreateDeployment", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.CreateDeployment", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1_generated_TelcoAutomation_UpdateDeployment_async", - "title": "TelcoAutomation updateDeployment Sample", - "origin": "API_DEFINITION", - "description": " Updates a deployment.", - "canonical": true, - "file": "telco_automation.update_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDeployment", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.UpdateDeployment", - "async": true, - "parameters": [ - { - "name": "deployment", - "type": ".google.cloud.telcoautomation.v1.Deployment" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.telcoautomation.v1.Deployment", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomationClient" - }, - "method": { - "shortName": "UpdateDeployment", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.UpdateDeployment", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1_generated_TelcoAutomation_GetDeployment_async", - "title": "TelcoAutomation getDeployment Sample", - "origin": "API_DEFINITION", - "description": " Returns the requested deployment.", - "canonical": true, - "file": "telco_automation.get_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDeployment", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.GetDeployment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.telcoautomation.v1.DeploymentView" - } - ], - "resultType": ".google.cloud.telcoautomation.v1.Deployment", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomationClient" - }, - "method": { - "shortName": "GetDeployment", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.GetDeployment", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1_generated_TelcoAutomation_RemoveDeployment_async", - "title": "TelcoAutomation removeDeployment Sample", - "origin": "API_DEFINITION", - "description": " Removes the deployment by marking it as DELETING. Post which deployment and it's revisions gets deleted.", - "canonical": true, - "file": "telco_automation.remove_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveDeployment", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.RemoveDeployment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomationClient" - }, - "method": { - "shortName": "RemoveDeployment", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.RemoveDeployment", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1_generated_TelcoAutomation_ListDeployments_async", - "title": "TelcoAutomation listDeployments Sample", - "origin": "API_DEFINITION", - "description": " List all deployments.", - "canonical": true, - "file": "telco_automation.list_deployments.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDeployments", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.ListDeployments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.telcoautomation.v1.ListDeploymentsResponse", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomationClient" - }, - "method": { - "shortName": "ListDeployments", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.ListDeployments", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1_generated_TelcoAutomation_ListDeploymentRevisions_async", - "title": "TelcoAutomation listDeploymentRevisions Sample", - "origin": "API_DEFINITION", - "description": " List deployment revisions of a given deployment.", - "canonical": true, - "file": "telco_automation.list_deployment_revisions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDeploymentRevisions", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.ListDeploymentRevisions", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.telcoautomation.v1.ListDeploymentRevisionsResponse", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomationClient" - }, - "method": { - "shortName": "ListDeploymentRevisions", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.ListDeploymentRevisions", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1_generated_TelcoAutomation_DiscardDeploymentChanges_async", - "title": "TelcoAutomation discardDeploymentChanges Sample", - "origin": "API_DEFINITION", - "description": " Discards the changes in a deployment and reverts the deployment to the last approved deployment revision. No changes take place if a deployment does not have revisions.", - "canonical": true, - "file": "telco_automation.discard_deployment_changes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DiscardDeploymentChanges", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.DiscardDeploymentChanges", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.telcoautomation.v1.DiscardDeploymentChangesResponse", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomationClient" - }, - "method": { - "shortName": "DiscardDeploymentChanges", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.DiscardDeploymentChanges", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1_generated_TelcoAutomation_ApplyDeployment_async", - "title": "TelcoAutomation applyDeployment Sample", - "origin": "API_DEFINITION", - "description": " Applies the deployment's YAML files to the parent orchestration cluster.", - "canonical": true, - "file": "telco_automation.apply_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ApplyDeployment", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.ApplyDeployment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.telcoautomation.v1.Deployment", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomationClient" - }, - "method": { - "shortName": "ApplyDeployment", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.ApplyDeployment", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1_generated_TelcoAutomation_ComputeDeploymentStatus_async", - "title": "TelcoAutomation computeDeploymentStatus Sample", - "origin": "API_DEFINITION", - "description": " Returns the requested deployment status.", - "canonical": true, - "file": "telco_automation.compute_deployment_status.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ComputeDeploymentStatus", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.ComputeDeploymentStatus", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.telcoautomation.v1.ComputeDeploymentStatusResponse", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomationClient" - }, - "method": { - "shortName": "ComputeDeploymentStatus", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.ComputeDeploymentStatus", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1_generated_TelcoAutomation_RollbackDeployment_async", - "title": "TelcoAutomation rollbackDeployment Sample", - "origin": "API_DEFINITION", - "description": " Rollback the active deployment to the given past approved deployment revision.", - "canonical": true, - "file": "telco_automation.rollback_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RollbackDeployment", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.RollbackDeployment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "revision_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.telcoautomation.v1.Deployment", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomationClient" - }, - "method": { - "shortName": "RollbackDeployment", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.RollbackDeployment", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1_generated_TelcoAutomation_GetHydratedDeployment_async", - "title": "TelcoAutomation getHydratedDeployment Sample", - "origin": "API_DEFINITION", - "description": " Returns the requested hydrated deployment.", - "canonical": true, - "file": "telco_automation.get_hydrated_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetHydratedDeployment", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.GetHydratedDeployment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.telcoautomation.v1.HydratedDeployment", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomationClient" - }, - "method": { - "shortName": "GetHydratedDeployment", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.GetHydratedDeployment", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1_generated_TelcoAutomation_ListHydratedDeployments_async", - "title": "TelcoAutomation listHydratedDeployments Sample", - "origin": "API_DEFINITION", - "description": " List all hydrated deployments present under a deployment.", - "canonical": true, - "file": "telco_automation.list_hydrated_deployments.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListHydratedDeployments", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.ListHydratedDeployments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.telcoautomation.v1.ListHydratedDeploymentsResponse", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomationClient" - }, - "method": { - "shortName": "ListHydratedDeployments", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.ListHydratedDeployments", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1_generated_TelcoAutomation_UpdateHydratedDeployment_async", - "title": "TelcoAutomation updateHydratedDeployment Sample", - "origin": "API_DEFINITION", - "description": " Updates a hydrated deployment.", - "canonical": true, - "file": "telco_automation.update_hydrated_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateHydratedDeployment", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.UpdateHydratedDeployment", - "async": true, - "parameters": [ - { - "name": "hydrated_deployment", - "type": ".google.cloud.telcoautomation.v1.HydratedDeployment" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.telcoautomation.v1.HydratedDeployment", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomationClient" - }, - "method": { - "shortName": "UpdateHydratedDeployment", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.UpdateHydratedDeployment", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1_generated_TelcoAutomation_ApplyHydratedDeployment_async", - "title": "TelcoAutomation applyHydratedDeployment Sample", - "origin": "API_DEFINITION", - "description": " Applies a hydrated deployment to a workload cluster.", - "canonical": true, - "file": "telco_automation.apply_hydrated_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ApplyHydratedDeployment", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.ApplyHydratedDeployment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.telcoautomation.v1.HydratedDeployment", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomationClient" - }, - "method": { - "shortName": "ApplyHydratedDeployment", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation.ApplyHydratedDeployment", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1.TelcoAutomation" - } - } - } - } - ] -} diff --git a/packages/google-cloud-telcoautomation/samples/generated/v1alpha1/snippet_metadata_google.cloud.telcoautomation.v1alpha1.json b/packages/google-cloud-telcoautomation/samples/generated/v1alpha1/snippet_metadata_google.cloud.telcoautomation.v1alpha1.json deleted file mode 100644 index 3a45b2623edc..000000000000 --- a/packages/google-cloud-telcoautomation/samples/generated/v1alpha1/snippet_metadata_google.cloud.telcoautomation.v1alpha1.json +++ /dev/null @@ -1,1639 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-telcoautomation", - "version": "0.5.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.telcoautomation.v1alpha1", - "version": "v1alpha1" - } - ] - }, - "snippets": [ - { - "regionTag": "telcoautomation_v1alpha1_generated_TelcoAutomation_ListOrchestrationClusters_async", - "title": "TelcoAutomation listOrchestrationClusters Sample", - "origin": "API_DEFINITION", - "description": " Lists OrchestrationClusters in a given project and location.", - "canonical": true, - "file": "telco_automation.list_orchestration_clusters.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListOrchestrationClusters", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.ListOrchestrationClusters", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.telcoautomation.v1alpha1.ListOrchestrationClustersResponse", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient" - }, - "method": { - "shortName": "ListOrchestrationClusters", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.ListOrchestrationClusters", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1alpha1_generated_TelcoAutomation_GetOrchestrationCluster_async", - "title": "TelcoAutomation getOrchestrationCluster Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single OrchestrationCluster.", - "canonical": true, - "file": "telco_automation.get_orchestration_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetOrchestrationCluster", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.GetOrchestrationCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.telcoautomation.v1alpha1.OrchestrationCluster", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient" - }, - "method": { - "shortName": "GetOrchestrationCluster", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.GetOrchestrationCluster", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1alpha1_generated_TelcoAutomation_CreateOrchestrationCluster_async", - "title": "TelcoAutomation createOrchestrationCluster Sample", - "origin": "API_DEFINITION", - "description": " Creates a new OrchestrationCluster in a given project and location.", - "canonical": true, - "file": "telco_automation.create_orchestration_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateOrchestrationCluster", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.CreateOrchestrationCluster", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "orchestration_cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "orchestration_cluster", - "type": ".google.cloud.telcoautomation.v1alpha1.OrchestrationCluster" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient" - }, - "method": { - "shortName": "CreateOrchestrationCluster", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.CreateOrchestrationCluster", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1alpha1_generated_TelcoAutomation_DeleteOrchestrationCluster_async", - "title": "TelcoAutomation deleteOrchestrationCluster Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single OrchestrationCluster.", - "canonical": true, - "file": "telco_automation.delete_orchestration_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteOrchestrationCluster", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.DeleteOrchestrationCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient" - }, - "method": { - "shortName": "DeleteOrchestrationCluster", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.DeleteOrchestrationCluster", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1alpha1_generated_TelcoAutomation_ListEdgeSlms_async", - "title": "TelcoAutomation listEdgeSlms Sample", - "origin": "API_DEFINITION", - "description": " Lists EdgeSlms in a given project and location.", - "canonical": true, - "file": "telco_automation.list_edge_slms.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEdgeSlms", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.ListEdgeSlms", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.telcoautomation.v1alpha1.ListEdgeSlmsResponse", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient" - }, - "method": { - "shortName": "ListEdgeSlms", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.ListEdgeSlms", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1alpha1_generated_TelcoAutomation_GetEdgeSlm_async", - "title": "TelcoAutomation getEdgeSlm Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single EdgeSlm.", - "canonical": true, - "file": "telco_automation.get_edge_slm.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEdgeSlm", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.GetEdgeSlm", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.telcoautomation.v1alpha1.EdgeSlm", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient" - }, - "method": { - "shortName": "GetEdgeSlm", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.GetEdgeSlm", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1alpha1_generated_TelcoAutomation_CreateEdgeSlm_async", - "title": "TelcoAutomation createEdgeSlm Sample", - "origin": "API_DEFINITION", - "description": " Creates a new EdgeSlm in a given project and location.", - "canonical": true, - "file": "telco_automation.create_edge_slm.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateEdgeSlm", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.CreateEdgeSlm", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "edge_slm_id", - "type": "TYPE_STRING" - }, - { - "name": "edge_slm", - "type": ".google.cloud.telcoautomation.v1alpha1.EdgeSlm" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient" - }, - "method": { - "shortName": "CreateEdgeSlm", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.CreateEdgeSlm", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1alpha1_generated_TelcoAutomation_DeleteEdgeSlm_async", - "title": "TelcoAutomation deleteEdgeSlm Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single EdgeSlm.", - "canonical": true, - "file": "telco_automation.delete_edge_slm.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteEdgeSlm", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.DeleteEdgeSlm", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient" - }, - "method": { - "shortName": "DeleteEdgeSlm", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.DeleteEdgeSlm", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1alpha1_generated_TelcoAutomation_CreateBlueprint_async", - "title": "TelcoAutomation createBlueprint Sample", - "origin": "API_DEFINITION", - "description": " Creates a blueprint.", - "canonical": true, - "file": "telco_automation.create_blueprint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateBlueprint", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.CreateBlueprint", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "blueprint_id", - "type": "TYPE_STRING" - }, - { - "name": "blueprint", - "type": ".google.cloud.telcoautomation.v1alpha1.Blueprint" - } - ], - "resultType": ".google.cloud.telcoautomation.v1alpha1.Blueprint", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient" - }, - "method": { - "shortName": "CreateBlueprint", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.CreateBlueprint", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1alpha1_generated_TelcoAutomation_UpdateBlueprint_async", - "title": "TelcoAutomation updateBlueprint Sample", - "origin": "API_DEFINITION", - "description": " Updates a blueprint.", - "canonical": true, - "file": "telco_automation.update_blueprint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateBlueprint", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.UpdateBlueprint", - "async": true, - "parameters": [ - { - "name": "blueprint", - "type": ".google.cloud.telcoautomation.v1alpha1.Blueprint" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.telcoautomation.v1alpha1.Blueprint", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient" - }, - "method": { - "shortName": "UpdateBlueprint", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.UpdateBlueprint", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1alpha1_generated_TelcoAutomation_GetBlueprint_async", - "title": "TelcoAutomation getBlueprint Sample", - "origin": "API_DEFINITION", - "description": " Returns the requested blueprint.", - "canonical": true, - "file": "telco_automation.get_blueprint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBlueprint", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.GetBlueprint", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.telcoautomation.v1alpha1.BlueprintView" - } - ], - "resultType": ".google.cloud.telcoautomation.v1alpha1.Blueprint", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient" - }, - "method": { - "shortName": "GetBlueprint", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.GetBlueprint", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1alpha1_generated_TelcoAutomation_DeleteBlueprint_async", - "title": "TelcoAutomation deleteBlueprint Sample", - "origin": "API_DEFINITION", - "description": " Deletes a blueprint and all its revisions.", - "canonical": true, - "file": "telco_automation.delete_blueprint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteBlueprint", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.DeleteBlueprint", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient" - }, - "method": { - "shortName": "DeleteBlueprint", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.DeleteBlueprint", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1alpha1_generated_TelcoAutomation_ListBlueprints_async", - "title": "TelcoAutomation listBlueprints Sample", - "origin": "API_DEFINITION", - "description": " List all blueprints.", - "canonical": true, - "file": "telco_automation.list_blueprints.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBlueprints", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.ListBlueprints", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.telcoautomation.v1alpha1.ListBlueprintsResponse", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient" - }, - "method": { - "shortName": "ListBlueprints", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.ListBlueprints", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1alpha1_generated_TelcoAutomation_ApproveBlueprint_async", - "title": "TelcoAutomation approveBlueprint Sample", - "origin": "API_DEFINITION", - "description": " Approves a blueprint and commits a new revision.", - "canonical": true, - "file": "telco_automation.approve_blueprint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ApproveBlueprint", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.ApproveBlueprint", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.telcoautomation.v1alpha1.Blueprint", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient" - }, - "method": { - "shortName": "ApproveBlueprint", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.ApproveBlueprint", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1alpha1_generated_TelcoAutomation_ProposeBlueprint_async", - "title": "TelcoAutomation proposeBlueprint Sample", - "origin": "API_DEFINITION", - "description": " Proposes a blueprint for approval of changes.", - "canonical": true, - "file": "telco_automation.propose_blueprint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ProposeBlueprint", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.ProposeBlueprint", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.telcoautomation.v1alpha1.Blueprint", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient" - }, - "method": { - "shortName": "ProposeBlueprint", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.ProposeBlueprint", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1alpha1_generated_TelcoAutomation_RejectBlueprint_async", - "title": "TelcoAutomation rejectBlueprint Sample", - "origin": "API_DEFINITION", - "description": " Rejects a blueprint revision proposal and flips it back to Draft state.", - "canonical": true, - "file": "telco_automation.reject_blueprint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RejectBlueprint", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.RejectBlueprint", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.telcoautomation.v1alpha1.Blueprint", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient" - }, - "method": { - "shortName": "RejectBlueprint", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.RejectBlueprint", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1alpha1_generated_TelcoAutomation_ListBlueprintRevisions_async", - "title": "TelcoAutomation listBlueprintRevisions Sample", - "origin": "API_DEFINITION", - "description": " List blueprint revisions of a given blueprint.", - "canonical": true, - "file": "telco_automation.list_blueprint_revisions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBlueprintRevisions", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.ListBlueprintRevisions", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.telcoautomation.v1alpha1.ListBlueprintRevisionsResponse", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient" - }, - "method": { - "shortName": "ListBlueprintRevisions", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.ListBlueprintRevisions", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1alpha1_generated_TelcoAutomation_SearchBlueprintRevisions_async", - "title": "TelcoAutomation searchBlueprintRevisions Sample", - "origin": "API_DEFINITION", - "description": " Searches across blueprint revisions.", - "canonical": true, - "file": "telco_automation.search_blueprint_revisions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchBlueprintRevisions", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.SearchBlueprintRevisions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.telcoautomation.v1alpha1.SearchBlueprintRevisionsResponse", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient" - }, - "method": { - "shortName": "SearchBlueprintRevisions", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.SearchBlueprintRevisions", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1alpha1_generated_TelcoAutomation_SearchDeploymentRevisions_async", - "title": "TelcoAutomation searchDeploymentRevisions Sample", - "origin": "API_DEFINITION", - "description": " Searches across deployment revisions.", - "canonical": true, - "file": "telco_automation.search_deployment_revisions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchDeploymentRevisions", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.SearchDeploymentRevisions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.telcoautomation.v1alpha1.SearchDeploymentRevisionsResponse", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient" - }, - "method": { - "shortName": "SearchDeploymentRevisions", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.SearchDeploymentRevisions", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1alpha1_generated_TelcoAutomation_DiscardBlueprintChanges_async", - "title": "TelcoAutomation discardBlueprintChanges Sample", - "origin": "API_DEFINITION", - "description": " Discards the changes in a blueprint and reverts the blueprint to the last approved blueprint revision. No changes take place if a blueprint does not have revisions.", - "canonical": true, - "file": "telco_automation.discard_blueprint_changes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DiscardBlueprintChanges", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.DiscardBlueprintChanges", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.telcoautomation.v1alpha1.DiscardBlueprintChangesResponse", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient" - }, - "method": { - "shortName": "DiscardBlueprintChanges", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.DiscardBlueprintChanges", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1alpha1_generated_TelcoAutomation_ListPublicBlueprints_async", - "title": "TelcoAutomation listPublicBlueprints Sample", - "origin": "API_DEFINITION", - "description": " Lists the blueprints in TNA's public catalog. Default page size = 20, Max Page Size = 100.", - "canonical": true, - "file": "telco_automation.list_public_blueprints.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPublicBlueprints", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.ListPublicBlueprints", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.telcoautomation.v1alpha1.ListPublicBlueprintsResponse", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient" - }, - "method": { - "shortName": "ListPublicBlueprints", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.ListPublicBlueprints", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1alpha1_generated_TelcoAutomation_GetPublicBlueprint_async", - "title": "TelcoAutomation getPublicBlueprint Sample", - "origin": "API_DEFINITION", - "description": " Returns the requested public blueprint.", - "canonical": true, - "file": "telco_automation.get_public_blueprint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPublicBlueprint", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.GetPublicBlueprint", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.telcoautomation.v1alpha1.PublicBlueprint", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient" - }, - "method": { - "shortName": "GetPublicBlueprint", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.GetPublicBlueprint", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1alpha1_generated_TelcoAutomation_CreateDeployment_async", - "title": "TelcoAutomation createDeployment Sample", - "origin": "API_DEFINITION", - "description": " Creates a deployment.", - "canonical": true, - "file": "telco_automation.create_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDeployment", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.CreateDeployment", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "deployment_id", - "type": "TYPE_STRING" - }, - { - "name": "deployment", - "type": ".google.cloud.telcoautomation.v1alpha1.Deployment" - } - ], - "resultType": ".google.cloud.telcoautomation.v1alpha1.Deployment", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient" - }, - "method": { - "shortName": "CreateDeployment", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.CreateDeployment", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1alpha1_generated_TelcoAutomation_UpdateDeployment_async", - "title": "TelcoAutomation updateDeployment Sample", - "origin": "API_DEFINITION", - "description": " Updates a deployment.", - "canonical": true, - "file": "telco_automation.update_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDeployment", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.UpdateDeployment", - "async": true, - "parameters": [ - { - "name": "deployment", - "type": ".google.cloud.telcoautomation.v1alpha1.Deployment" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.telcoautomation.v1alpha1.Deployment", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient" - }, - "method": { - "shortName": "UpdateDeployment", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.UpdateDeployment", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1alpha1_generated_TelcoAutomation_GetDeployment_async", - "title": "TelcoAutomation getDeployment Sample", - "origin": "API_DEFINITION", - "description": " Returns the requested deployment.", - "canonical": true, - "file": "telco_automation.get_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDeployment", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.GetDeployment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.telcoautomation.v1alpha1.DeploymentView" - } - ], - "resultType": ".google.cloud.telcoautomation.v1alpha1.Deployment", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient" - }, - "method": { - "shortName": "GetDeployment", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.GetDeployment", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1alpha1_generated_TelcoAutomation_RemoveDeployment_async", - "title": "TelcoAutomation removeDeployment Sample", - "origin": "API_DEFINITION", - "description": " Removes the deployment by marking it as DELETING. Post which deployment and it's revisions gets deleted.", - "canonical": true, - "file": "telco_automation.remove_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveDeployment", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.RemoveDeployment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient" - }, - "method": { - "shortName": "RemoveDeployment", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.RemoveDeployment", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1alpha1_generated_TelcoAutomation_ListDeployments_async", - "title": "TelcoAutomation listDeployments Sample", - "origin": "API_DEFINITION", - "description": " List all deployments.", - "canonical": true, - "file": "telco_automation.list_deployments.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDeployments", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.ListDeployments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.telcoautomation.v1alpha1.ListDeploymentsResponse", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient" - }, - "method": { - "shortName": "ListDeployments", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.ListDeployments", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1alpha1_generated_TelcoAutomation_ListDeploymentRevisions_async", - "title": "TelcoAutomation listDeploymentRevisions Sample", - "origin": "API_DEFINITION", - "description": " List deployment revisions of a given deployment.", - "canonical": true, - "file": "telco_automation.list_deployment_revisions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDeploymentRevisions", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.ListDeploymentRevisions", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.telcoautomation.v1alpha1.ListDeploymentRevisionsResponse", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient" - }, - "method": { - "shortName": "ListDeploymentRevisions", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.ListDeploymentRevisions", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1alpha1_generated_TelcoAutomation_DiscardDeploymentChanges_async", - "title": "TelcoAutomation discardDeploymentChanges Sample", - "origin": "API_DEFINITION", - "description": " Discards the changes in a deployment and reverts the deployment to the last approved deployment revision. No changes take place if a deployment does not have revisions.", - "canonical": true, - "file": "telco_automation.discard_deployment_changes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DiscardDeploymentChanges", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.DiscardDeploymentChanges", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.telcoautomation.v1alpha1.DiscardDeploymentChangesResponse", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient" - }, - "method": { - "shortName": "DiscardDeploymentChanges", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.DiscardDeploymentChanges", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1alpha1_generated_TelcoAutomation_ApplyDeployment_async", - "title": "TelcoAutomation applyDeployment Sample", - "origin": "API_DEFINITION", - "description": " Applies the deployment's YAML files to the parent orchestration cluster.", - "canonical": true, - "file": "telco_automation.apply_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ApplyDeployment", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.ApplyDeployment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.telcoautomation.v1alpha1.Deployment", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient" - }, - "method": { - "shortName": "ApplyDeployment", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.ApplyDeployment", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1alpha1_generated_TelcoAutomation_ComputeDeploymentStatus_async", - "title": "TelcoAutomation computeDeploymentStatus Sample", - "origin": "API_DEFINITION", - "description": " Returns the requested deployment status.", - "canonical": true, - "file": "telco_automation.compute_deployment_status.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ComputeDeploymentStatus", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.ComputeDeploymentStatus", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.telcoautomation.v1alpha1.ComputeDeploymentStatusResponse", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient" - }, - "method": { - "shortName": "ComputeDeploymentStatus", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.ComputeDeploymentStatus", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1alpha1_generated_TelcoAutomation_RollbackDeployment_async", - "title": "TelcoAutomation rollbackDeployment Sample", - "origin": "API_DEFINITION", - "description": " Rollback the active deployment to the given past approved deployment revision.", - "canonical": true, - "file": "telco_automation.rollback_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RollbackDeployment", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.RollbackDeployment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "revision_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.telcoautomation.v1alpha1.Deployment", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient" - }, - "method": { - "shortName": "RollbackDeployment", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.RollbackDeployment", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1alpha1_generated_TelcoAutomation_GetHydratedDeployment_async", - "title": "TelcoAutomation getHydratedDeployment Sample", - "origin": "API_DEFINITION", - "description": " Returns the requested hydrated deployment.", - "canonical": true, - "file": "telco_automation.get_hydrated_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetHydratedDeployment", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.GetHydratedDeployment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.telcoautomation.v1alpha1.HydratedDeployment", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient" - }, - "method": { - "shortName": "GetHydratedDeployment", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.GetHydratedDeployment", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1alpha1_generated_TelcoAutomation_ListHydratedDeployments_async", - "title": "TelcoAutomation listHydratedDeployments Sample", - "origin": "API_DEFINITION", - "description": " List all hydrated deployments present under a deployment.", - "canonical": true, - "file": "telco_automation.list_hydrated_deployments.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListHydratedDeployments", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.ListHydratedDeployments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.telcoautomation.v1alpha1.ListHydratedDeploymentsResponse", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient" - }, - "method": { - "shortName": "ListHydratedDeployments", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.ListHydratedDeployments", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1alpha1_generated_TelcoAutomation_UpdateHydratedDeployment_async", - "title": "TelcoAutomation updateHydratedDeployment Sample", - "origin": "API_DEFINITION", - "description": " Updates a hydrated deployment.", - "canonical": true, - "file": "telco_automation.update_hydrated_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateHydratedDeployment", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.UpdateHydratedDeployment", - "async": true, - "parameters": [ - { - "name": "hydrated_deployment", - "type": ".google.cloud.telcoautomation.v1alpha1.HydratedDeployment" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.telcoautomation.v1alpha1.HydratedDeployment", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient" - }, - "method": { - "shortName": "UpdateHydratedDeployment", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.UpdateHydratedDeployment", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation" - } - } - } - }, - { - "regionTag": "telcoautomation_v1alpha1_generated_TelcoAutomation_ApplyHydratedDeployment_async", - "title": "TelcoAutomation applyHydratedDeployment Sample", - "origin": "API_DEFINITION", - "description": " Applies a hydrated deployment to a workload cluster.", - "canonical": true, - "file": "telco_automation.apply_hydrated_deployment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ApplyHydratedDeployment", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.ApplyHydratedDeployment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.telcoautomation.v1alpha1.HydratedDeployment", - "client": { - "shortName": "TelcoAutomationClient", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomationClient" - }, - "method": { - "shortName": "ApplyHydratedDeployment", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation.ApplyHydratedDeployment", - "service": { - "shortName": "TelcoAutomation", - "fullName": "google.cloud.telcoautomation.v1alpha1.TelcoAutomation" - } - } - } - } - ] -} diff --git a/packages/google-cloud-texttospeech/samples/generated/v1/snippet_metadata_google.cloud.texttospeech.v1.json b/packages/google-cloud-texttospeech/samples/generated/v1/snippet_metadata_google.cloud.texttospeech.v1.json deleted file mode 100644 index 689d501305a6..000000000000 --- a/packages/google-cloud-texttospeech/samples/generated/v1/snippet_metadata_google.cloud.texttospeech.v1.json +++ /dev/null @@ -1,207 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-texttospeech", - "version": "6.4.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.texttospeech.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "texttospeech_v1_generated_TextToSpeech_ListVoices_async", - "title": "TextToSpeech listVoices Sample", - "origin": "API_DEFINITION", - "description": " Returns a list of Voice supported for synthesis.", - "canonical": true, - "file": "text_to_speech.list_voices.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListVoices", - "fullName": "google.cloud.texttospeech.v1.TextToSpeech.ListVoices", - "async": true, - "parameters": [ - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.texttospeech.v1.ListVoicesResponse", - "client": { - "shortName": "TextToSpeechClient", - "fullName": "google.cloud.texttospeech.v1.TextToSpeechClient" - }, - "method": { - "shortName": "ListVoices", - "fullName": "google.cloud.texttospeech.v1.TextToSpeech.ListVoices", - "service": { - "shortName": "TextToSpeech", - "fullName": "google.cloud.texttospeech.v1.TextToSpeech" - } - } - } - }, - { - "regionTag": "texttospeech_v1_generated_TextToSpeech_SynthesizeSpeech_async", - "title": "TextToSpeech synthesizeSpeech Sample", - "origin": "API_DEFINITION", - "description": " Synthesizes speech synchronously: receive results after all text input has been processed.", - "canonical": true, - "file": "text_to_speech.synthesize_speech.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SynthesizeSpeech", - "fullName": "google.cloud.texttospeech.v1.TextToSpeech.SynthesizeSpeech", - "async": true, - "parameters": [ - { - "name": "input", - "type": ".google.cloud.texttospeech.v1.SynthesisInput" - }, - { - "name": "voice", - "type": ".google.cloud.texttospeech.v1.VoiceSelectionParams" - }, - { - "name": "audio_config", - "type": ".google.cloud.texttospeech.v1.AudioConfig" - }, - { - "name": "advanced_voice_options", - "type": ".google.cloud.texttospeech.v1.AdvancedVoiceOptions" - } - ], - "resultType": ".google.cloud.texttospeech.v1.SynthesizeSpeechResponse", - "client": { - "shortName": "TextToSpeechClient", - "fullName": "google.cloud.texttospeech.v1.TextToSpeechClient" - }, - "method": { - "shortName": "SynthesizeSpeech", - "fullName": "google.cloud.texttospeech.v1.TextToSpeech.SynthesizeSpeech", - "service": { - "shortName": "TextToSpeech", - "fullName": "google.cloud.texttospeech.v1.TextToSpeech" - } - } - } - }, - { - "regionTag": "texttospeech_v1_generated_TextToSpeech_StreamingSynthesize_async", - "title": "TextToSpeech streamingSynthesize Sample", - "origin": "API_DEFINITION", - "description": " Performs bidirectional streaming speech synthesis: receives audio while sending text.", - "canonical": true, - "file": "text_to_speech.streaming_synthesize.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StreamingSynthesize", - "fullName": "google.cloud.texttospeech.v1.TextToSpeech.StreamingSynthesize", - "async": true, - "parameters": [ - { - "name": "streaming_config", - "type": ".google.cloud.texttospeech.v1.StreamingSynthesizeConfig" - }, - { - "name": "input", - "type": ".google.cloud.texttospeech.v1.StreamingSynthesisInput" - } - ], - "resultType": ".google.cloud.texttospeech.v1.StreamingSynthesizeResponse", - "client": { - "shortName": "TextToSpeechClient", - "fullName": "google.cloud.texttospeech.v1.TextToSpeechClient" - }, - "method": { - "shortName": "StreamingSynthesize", - "fullName": "google.cloud.texttospeech.v1.TextToSpeech.StreamingSynthesize", - "service": { - "shortName": "TextToSpeech", - "fullName": "google.cloud.texttospeech.v1.TextToSpeech" - } - } - } - }, - { - "regionTag": "texttospeech_v1_generated_TextToSpeechLongAudioSynthesize_SynthesizeLongAudio_async", - "title": "TextToSpeech synthesizeLongAudio Sample", - "origin": "API_DEFINITION", - "description": " Synthesizes long form text asynchronously.", - "canonical": true, - "file": "text_to_speech_long_audio_synthesize.synthesize_long_audio.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SynthesizeLongAudio", - "fullName": "google.cloud.texttospeech.v1.TextToSpeechLongAudioSynthesize.SynthesizeLongAudio", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "input", - "type": ".google.cloud.texttospeech.v1.SynthesisInput" - }, - { - "name": "audio_config", - "type": ".google.cloud.texttospeech.v1.AudioConfig" - }, - { - "name": "output_gcs_uri", - "type": "TYPE_STRING" - }, - { - "name": "voice", - "type": ".google.cloud.texttospeech.v1.VoiceSelectionParams" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TextToSpeechLongAudioSynthesizeClient", - "fullName": "google.cloud.texttospeech.v1.TextToSpeechLongAudioSynthesizeClient" - }, - "method": { - "shortName": "SynthesizeLongAudio", - "fullName": "google.cloud.texttospeech.v1.TextToSpeechLongAudioSynthesize.SynthesizeLongAudio", - "service": { - "shortName": "TextToSpeechLongAudioSynthesize", - "fullName": "google.cloud.texttospeech.v1.TextToSpeechLongAudioSynthesize" - } - } - } - } - ] -} diff --git a/packages/google-cloud-texttospeech/samples/generated/v1beta1/snippet_metadata_google.cloud.texttospeech.v1beta1.json b/packages/google-cloud-texttospeech/samples/generated/v1beta1/snippet_metadata_google.cloud.texttospeech.v1beta1.json deleted file mode 100644 index b66f607ec7c1..000000000000 --- a/packages/google-cloud-texttospeech/samples/generated/v1beta1/snippet_metadata_google.cloud.texttospeech.v1beta1.json +++ /dev/null @@ -1,211 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-texttospeech", - "version": "6.4.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.texttospeech.v1beta1", - "version": "v1beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "texttospeech_v1beta1_generated_TextToSpeech_ListVoices_async", - "title": "TextToSpeech listVoices Sample", - "origin": "API_DEFINITION", - "description": " Returns a list of Voice supported for synthesis.", - "canonical": true, - "file": "text_to_speech.list_voices.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListVoices", - "fullName": "google.cloud.texttospeech.v1beta1.TextToSpeech.ListVoices", - "async": true, - "parameters": [ - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.texttospeech.v1beta1.ListVoicesResponse", - "client": { - "shortName": "TextToSpeechClient", - "fullName": "google.cloud.texttospeech.v1beta1.TextToSpeechClient" - }, - "method": { - "shortName": "ListVoices", - "fullName": "google.cloud.texttospeech.v1beta1.TextToSpeech.ListVoices", - "service": { - "shortName": "TextToSpeech", - "fullName": "google.cloud.texttospeech.v1beta1.TextToSpeech" - } - } - } - }, - { - "regionTag": "texttospeech_v1beta1_generated_TextToSpeech_SynthesizeSpeech_async", - "title": "TextToSpeech synthesizeSpeech Sample", - "origin": "API_DEFINITION", - "description": " Synthesizes speech synchronously: receive results after all text input has been processed.", - "canonical": true, - "file": "text_to_speech.synthesize_speech.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SynthesizeSpeech", - "fullName": "google.cloud.texttospeech.v1beta1.TextToSpeech.SynthesizeSpeech", - "async": true, - "parameters": [ - { - "name": "input", - "type": ".google.cloud.texttospeech.v1beta1.SynthesisInput" - }, - { - "name": "voice", - "type": ".google.cloud.texttospeech.v1beta1.VoiceSelectionParams" - }, - { - "name": "audio_config", - "type": ".google.cloud.texttospeech.v1beta1.AudioConfig" - }, - { - "name": "enable_time_pointing", - "type": "TYPE_ENUM[]" - }, - { - "name": "advanced_voice_options", - "type": ".google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions" - } - ], - "resultType": ".google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse", - "client": { - "shortName": "TextToSpeechClient", - "fullName": "google.cloud.texttospeech.v1beta1.TextToSpeechClient" - }, - "method": { - "shortName": "SynthesizeSpeech", - "fullName": "google.cloud.texttospeech.v1beta1.TextToSpeech.SynthesizeSpeech", - "service": { - "shortName": "TextToSpeech", - "fullName": "google.cloud.texttospeech.v1beta1.TextToSpeech" - } - } - } - }, - { - "regionTag": "texttospeech_v1beta1_generated_TextToSpeech_StreamingSynthesize_async", - "title": "TextToSpeech streamingSynthesize Sample", - "origin": "API_DEFINITION", - "description": " Performs bidirectional streaming speech synthesis: receives audio while sending text.", - "canonical": true, - "file": "text_to_speech.streaming_synthesize.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StreamingSynthesize", - "fullName": "google.cloud.texttospeech.v1beta1.TextToSpeech.StreamingSynthesize", - "async": true, - "parameters": [ - { - "name": "streaming_config", - "type": ".google.cloud.texttospeech.v1beta1.StreamingSynthesizeConfig" - }, - { - "name": "input", - "type": ".google.cloud.texttospeech.v1beta1.StreamingSynthesisInput" - } - ], - "resultType": ".google.cloud.texttospeech.v1beta1.StreamingSynthesizeResponse", - "client": { - "shortName": "TextToSpeechClient", - "fullName": "google.cloud.texttospeech.v1beta1.TextToSpeechClient" - }, - "method": { - "shortName": "StreamingSynthesize", - "fullName": "google.cloud.texttospeech.v1beta1.TextToSpeech.StreamingSynthesize", - "service": { - "shortName": "TextToSpeech", - "fullName": "google.cloud.texttospeech.v1beta1.TextToSpeech" - } - } - } - }, - { - "regionTag": "texttospeech_v1beta1_generated_TextToSpeechLongAudioSynthesize_SynthesizeLongAudio_async", - "title": "TextToSpeech synthesizeLongAudio Sample", - "origin": "API_DEFINITION", - "description": " Synthesizes long form text asynchronously.", - "canonical": true, - "file": "text_to_speech_long_audio_synthesize.synthesize_long_audio.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SynthesizeLongAudio", - "fullName": "google.cloud.texttospeech.v1beta1.TextToSpeechLongAudioSynthesize.SynthesizeLongAudio", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "input", - "type": ".google.cloud.texttospeech.v1beta1.SynthesisInput" - }, - { - "name": "audio_config", - "type": ".google.cloud.texttospeech.v1beta1.AudioConfig" - }, - { - "name": "output_gcs_uri", - "type": "TYPE_STRING" - }, - { - "name": "voice", - "type": ".google.cloud.texttospeech.v1beta1.VoiceSelectionParams" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TextToSpeechLongAudioSynthesizeClient", - "fullName": "google.cloud.texttospeech.v1beta1.TextToSpeechLongAudioSynthesizeClient" - }, - "method": { - "shortName": "SynthesizeLongAudio", - "fullName": "google.cloud.texttospeech.v1beta1.TextToSpeechLongAudioSynthesize.SynthesizeLongAudio", - "service": { - "shortName": "TextToSpeechLongAudioSynthesize", - "fullName": "google.cloud.texttospeech.v1beta1.TextToSpeechLongAudioSynthesize" - } - } - } - } - ] -} diff --git a/packages/google-cloud-tpu/samples/generated/v1/snippet_metadata_google.cloud.tpu.v1.json b/packages/google-cloud-tpu/samples/generated/v1/snippet_metadata_google.cloud.tpu.v1.json deleted file mode 100644 index f15e9ad502a8..000000000000 --- a/packages/google-cloud-tpu/samples/generated/v1/snippet_metadata_google.cloud.tpu.v1.json +++ /dev/null @@ -1,507 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-tpu", - "version": "4.1.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.tpu.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "tpu_v1_generated_Tpu_ListNodes_async", - "title": "Tpu listNodes Sample", - "origin": "API_DEFINITION", - "description": " Lists nodes.", - "canonical": true, - "file": "tpu.list_nodes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListNodes", - "fullName": "google.cloud.tpu.v1.Tpu.ListNodes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tpu.v1.ListNodesResponse", - "client": { - "shortName": "TpuClient", - "fullName": "google.cloud.tpu.v1.TpuClient" - }, - "method": { - "shortName": "ListNodes", - "fullName": "google.cloud.tpu.v1.Tpu.ListNodes", - "service": { - "shortName": "Tpu", - "fullName": "google.cloud.tpu.v1.Tpu" - } - } - } - }, - { - "regionTag": "tpu_v1_generated_Tpu_GetNode_async", - "title": "Tpu getNode Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a node.", - "canonical": true, - "file": "tpu.get_node.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetNode", - "fullName": "google.cloud.tpu.v1.Tpu.GetNode", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tpu.v1.Node", - "client": { - "shortName": "TpuClient", - "fullName": "google.cloud.tpu.v1.TpuClient" - }, - "method": { - "shortName": "GetNode", - "fullName": "google.cloud.tpu.v1.Tpu.GetNode", - "service": { - "shortName": "Tpu", - "fullName": "google.cloud.tpu.v1.Tpu" - } - } - } - }, - { - "regionTag": "tpu_v1_generated_Tpu_CreateNode_async", - "title": "Tpu createNode Sample", - "origin": "API_DEFINITION", - "description": " Creates a node.", - "canonical": true, - "file": "tpu.create_node.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateNode", - "fullName": "google.cloud.tpu.v1.Tpu.CreateNode", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "node_id", - "type": "TYPE_STRING" - }, - { - "name": "node", - "type": ".google.cloud.tpu.v1.Node" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TpuClient", - "fullName": "google.cloud.tpu.v1.TpuClient" - }, - "method": { - "shortName": "CreateNode", - "fullName": "google.cloud.tpu.v1.Tpu.CreateNode", - "service": { - "shortName": "Tpu", - "fullName": "google.cloud.tpu.v1.Tpu" - } - } - } - }, - { - "regionTag": "tpu_v1_generated_Tpu_DeleteNode_async", - "title": "Tpu deleteNode Sample", - "origin": "API_DEFINITION", - "description": " Deletes a node.", - "canonical": true, - "file": "tpu.delete_node.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteNode", - "fullName": "google.cloud.tpu.v1.Tpu.DeleteNode", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TpuClient", - "fullName": "google.cloud.tpu.v1.TpuClient" - }, - "method": { - "shortName": "DeleteNode", - "fullName": "google.cloud.tpu.v1.Tpu.DeleteNode", - "service": { - "shortName": "Tpu", - "fullName": "google.cloud.tpu.v1.Tpu" - } - } - } - }, - { - "regionTag": "tpu_v1_generated_Tpu_ReimageNode_async", - "title": "Tpu reimageNode Sample", - "origin": "API_DEFINITION", - "description": " Reimages a node's OS.", - "canonical": true, - "file": "tpu.reimage_node.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReimageNode", - "fullName": "google.cloud.tpu.v1.Tpu.ReimageNode", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "tensorflow_version", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TpuClient", - "fullName": "google.cloud.tpu.v1.TpuClient" - }, - "method": { - "shortName": "ReimageNode", - "fullName": "google.cloud.tpu.v1.Tpu.ReimageNode", - "service": { - "shortName": "Tpu", - "fullName": "google.cloud.tpu.v1.Tpu" - } - } - } - }, - { - "regionTag": "tpu_v1_generated_Tpu_StopNode_async", - "title": "Tpu stopNode Sample", - "origin": "API_DEFINITION", - "description": " Stops a node, this operation is only available with single TPU nodes.", - "canonical": true, - "file": "tpu.stop_node.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StopNode", - "fullName": "google.cloud.tpu.v1.Tpu.StopNode", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TpuClient", - "fullName": "google.cloud.tpu.v1.TpuClient" - }, - "method": { - "shortName": "StopNode", - "fullName": "google.cloud.tpu.v1.Tpu.StopNode", - "service": { - "shortName": "Tpu", - "fullName": "google.cloud.tpu.v1.Tpu" - } - } - } - }, - { - "regionTag": "tpu_v1_generated_Tpu_StartNode_async", - "title": "Tpu startNode Sample", - "origin": "API_DEFINITION", - "description": " Starts a node.", - "canonical": true, - "file": "tpu.start_node.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StartNode", - "fullName": "google.cloud.tpu.v1.Tpu.StartNode", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TpuClient", - "fullName": "google.cloud.tpu.v1.TpuClient" - }, - "method": { - "shortName": "StartNode", - "fullName": "google.cloud.tpu.v1.Tpu.StartNode", - "service": { - "shortName": "Tpu", - "fullName": "google.cloud.tpu.v1.Tpu" - } - } - } - }, - { - "regionTag": "tpu_v1_generated_Tpu_ListTensorFlowVersions_async", - "title": "Tpu listTensorFlowVersions Sample", - "origin": "API_DEFINITION", - "description": " List TensorFlow versions supported by this API.", - "canonical": true, - "file": "tpu.list_tensor_flow_versions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTensorFlowVersions", - "fullName": "google.cloud.tpu.v1.Tpu.ListTensorFlowVersions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tpu.v1.ListTensorFlowVersionsResponse", - "client": { - "shortName": "TpuClient", - "fullName": "google.cloud.tpu.v1.TpuClient" - }, - "method": { - "shortName": "ListTensorFlowVersions", - "fullName": "google.cloud.tpu.v1.Tpu.ListTensorFlowVersions", - "service": { - "shortName": "Tpu", - "fullName": "google.cloud.tpu.v1.Tpu" - } - } - } - }, - { - "regionTag": "tpu_v1_generated_Tpu_GetTensorFlowVersion_async", - "title": "Tpu getTensorFlowVersion Sample", - "origin": "API_DEFINITION", - "description": " Gets TensorFlow Version.", - "canonical": true, - "file": "tpu.get_tensor_flow_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTensorFlowVersion", - "fullName": "google.cloud.tpu.v1.Tpu.GetTensorFlowVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tpu.v1.TensorFlowVersion", - "client": { - "shortName": "TpuClient", - "fullName": "google.cloud.tpu.v1.TpuClient" - }, - "method": { - "shortName": "GetTensorFlowVersion", - "fullName": "google.cloud.tpu.v1.Tpu.GetTensorFlowVersion", - "service": { - "shortName": "Tpu", - "fullName": "google.cloud.tpu.v1.Tpu" - } - } - } - }, - { - "regionTag": "tpu_v1_generated_Tpu_ListAcceleratorTypes_async", - "title": "Tpu listAcceleratorTypes Sample", - "origin": "API_DEFINITION", - "description": " Lists accelerator types supported by this API.", - "canonical": true, - "file": "tpu.list_accelerator_types.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAcceleratorTypes", - "fullName": "google.cloud.tpu.v1.Tpu.ListAcceleratorTypes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tpu.v1.ListAcceleratorTypesResponse", - "client": { - "shortName": "TpuClient", - "fullName": "google.cloud.tpu.v1.TpuClient" - }, - "method": { - "shortName": "ListAcceleratorTypes", - "fullName": "google.cloud.tpu.v1.Tpu.ListAcceleratorTypes", - "service": { - "shortName": "Tpu", - "fullName": "google.cloud.tpu.v1.Tpu" - } - } - } - }, - { - "regionTag": "tpu_v1_generated_Tpu_GetAcceleratorType_async", - "title": "Tpu getAcceleratorType Sample", - "origin": "API_DEFINITION", - "description": " Gets AcceleratorType.", - "canonical": true, - "file": "tpu.get_accelerator_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAcceleratorType", - "fullName": "google.cloud.tpu.v1.Tpu.GetAcceleratorType", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tpu.v1.AcceleratorType", - "client": { - "shortName": "TpuClient", - "fullName": "google.cloud.tpu.v1.TpuClient" - }, - "method": { - "shortName": "GetAcceleratorType", - "fullName": "google.cloud.tpu.v1.Tpu.GetAcceleratorType", - "service": { - "shortName": "Tpu", - "fullName": "google.cloud.tpu.v1.Tpu" - } - } - } - } - ] -} diff --git a/packages/google-cloud-tpu/samples/generated/v2/snippet_metadata_google.cloud.tpu.v2.json b/packages/google-cloud-tpu/samples/generated/v2/snippet_metadata_google.cloud.tpu.v2.json deleted file mode 100644 index 943fcfa0aa19..000000000000 --- a/packages/google-cloud-tpu/samples/generated/v2/snippet_metadata_google.cloud.tpu.v2.json +++ /dev/null @@ -1,823 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-tpu", - "version": "4.1.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.tpu.v2", - "version": "v2" - } - ] - }, - "snippets": [ - { - "regionTag": "tpu_v2_generated_Tpu_ListNodes_async", - "title": "Tpu listNodes Sample", - "origin": "API_DEFINITION", - "description": " Lists nodes.", - "canonical": true, - "file": "tpu.list_nodes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListNodes", - "fullName": "google.cloud.tpu.v2.Tpu.ListNodes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tpu.v2.ListNodesResponse", - "client": { - "shortName": "TpuClient", - "fullName": "google.cloud.tpu.v2.TpuClient" - }, - "method": { - "shortName": "ListNodes", - "fullName": "google.cloud.tpu.v2.Tpu.ListNodes", - "service": { - "shortName": "Tpu", - "fullName": "google.cloud.tpu.v2.Tpu" - } - } - } - }, - { - "regionTag": "tpu_v2_generated_Tpu_GetNode_async", - "title": "Tpu getNode Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a node.", - "canonical": true, - "file": "tpu.get_node.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetNode", - "fullName": "google.cloud.tpu.v2.Tpu.GetNode", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tpu.v2.Node", - "client": { - "shortName": "TpuClient", - "fullName": "google.cloud.tpu.v2.TpuClient" - }, - "method": { - "shortName": "GetNode", - "fullName": "google.cloud.tpu.v2.Tpu.GetNode", - "service": { - "shortName": "Tpu", - "fullName": "google.cloud.tpu.v2.Tpu" - } - } - } - }, - { - "regionTag": "tpu_v2_generated_Tpu_CreateNode_async", - "title": "Tpu createNode Sample", - "origin": "API_DEFINITION", - "description": " Creates a node.", - "canonical": true, - "file": "tpu.create_node.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateNode", - "fullName": "google.cloud.tpu.v2.Tpu.CreateNode", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "node_id", - "type": "TYPE_STRING" - }, - { - "name": "node", - "type": ".google.cloud.tpu.v2.Node" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TpuClient", - "fullName": "google.cloud.tpu.v2.TpuClient" - }, - "method": { - "shortName": "CreateNode", - "fullName": "google.cloud.tpu.v2.Tpu.CreateNode", - "service": { - "shortName": "Tpu", - "fullName": "google.cloud.tpu.v2.Tpu" - } - } - } - }, - { - "regionTag": "tpu_v2_generated_Tpu_DeleteNode_async", - "title": "Tpu deleteNode Sample", - "origin": "API_DEFINITION", - "description": " Deletes a node.", - "canonical": true, - "file": "tpu.delete_node.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteNode", - "fullName": "google.cloud.tpu.v2.Tpu.DeleteNode", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TpuClient", - "fullName": "google.cloud.tpu.v2.TpuClient" - }, - "method": { - "shortName": "DeleteNode", - "fullName": "google.cloud.tpu.v2.Tpu.DeleteNode", - "service": { - "shortName": "Tpu", - "fullName": "google.cloud.tpu.v2.Tpu" - } - } - } - }, - { - "regionTag": "tpu_v2_generated_Tpu_StopNode_async", - "title": "Tpu stopNode Sample", - "origin": "API_DEFINITION", - "description": " Stops a node. This operation is only available with single TPU nodes.", - "canonical": true, - "file": "tpu.stop_node.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StopNode", - "fullName": "google.cloud.tpu.v2.Tpu.StopNode", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TpuClient", - "fullName": "google.cloud.tpu.v2.TpuClient" - }, - "method": { - "shortName": "StopNode", - "fullName": "google.cloud.tpu.v2.Tpu.StopNode", - "service": { - "shortName": "Tpu", - "fullName": "google.cloud.tpu.v2.Tpu" - } - } - } - }, - { - "regionTag": "tpu_v2_generated_Tpu_StartNode_async", - "title": "Tpu startNode Sample", - "origin": "API_DEFINITION", - "description": " Starts a node.", - "canonical": true, - "file": "tpu.start_node.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StartNode", - "fullName": "google.cloud.tpu.v2.Tpu.StartNode", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TpuClient", - "fullName": "google.cloud.tpu.v2.TpuClient" - }, - "method": { - "shortName": "StartNode", - "fullName": "google.cloud.tpu.v2.Tpu.StartNode", - "service": { - "shortName": "Tpu", - "fullName": "google.cloud.tpu.v2.Tpu" - } - } - } - }, - { - "regionTag": "tpu_v2_generated_Tpu_UpdateNode_async", - "title": "Tpu updateNode Sample", - "origin": "API_DEFINITION", - "description": " Updates the configurations of a node.", - "canonical": true, - "file": "tpu.update_node.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateNode", - "fullName": "google.cloud.tpu.v2.Tpu.UpdateNode", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "node", - "type": ".google.cloud.tpu.v2.Node" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TpuClient", - "fullName": "google.cloud.tpu.v2.TpuClient" - }, - "method": { - "shortName": "UpdateNode", - "fullName": "google.cloud.tpu.v2.Tpu.UpdateNode", - "service": { - "shortName": "Tpu", - "fullName": "google.cloud.tpu.v2.Tpu" - } - } - } - }, - { - "regionTag": "tpu_v2_generated_Tpu_ListQueuedResources_async", - "title": "Tpu listQueuedResources Sample", - "origin": "API_DEFINITION", - "description": " Lists queued resources.", - "canonical": true, - "file": "tpu.list_queued_resources.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListQueuedResources", - "fullName": "google.cloud.tpu.v2.Tpu.ListQueuedResources", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tpu.v2.ListQueuedResourcesResponse", - "client": { - "shortName": "TpuClient", - "fullName": "google.cloud.tpu.v2.TpuClient" - }, - "method": { - "shortName": "ListQueuedResources", - "fullName": "google.cloud.tpu.v2.Tpu.ListQueuedResources", - "service": { - "shortName": "Tpu", - "fullName": "google.cloud.tpu.v2.Tpu" - } - } - } - }, - { - "regionTag": "tpu_v2_generated_Tpu_GetQueuedResource_async", - "title": "Tpu getQueuedResource Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a queued resource.", - "canonical": true, - "file": "tpu.get_queued_resource.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetQueuedResource", - "fullName": "google.cloud.tpu.v2.Tpu.GetQueuedResource", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tpu.v2.QueuedResource", - "client": { - "shortName": "TpuClient", - "fullName": "google.cloud.tpu.v2.TpuClient" - }, - "method": { - "shortName": "GetQueuedResource", - "fullName": "google.cloud.tpu.v2.Tpu.GetQueuedResource", - "service": { - "shortName": "Tpu", - "fullName": "google.cloud.tpu.v2.Tpu" - } - } - } - }, - { - "regionTag": "tpu_v2_generated_Tpu_CreateQueuedResource_async", - "title": "Tpu createQueuedResource Sample", - "origin": "API_DEFINITION", - "description": " Creates a QueuedResource TPU instance.", - "canonical": true, - "file": "tpu.create_queued_resource.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateQueuedResource", - "fullName": "google.cloud.tpu.v2.Tpu.CreateQueuedResource", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "queued_resource_id", - "type": "TYPE_STRING" - }, - { - "name": "queued_resource", - "type": ".google.cloud.tpu.v2.QueuedResource" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TpuClient", - "fullName": "google.cloud.tpu.v2.TpuClient" - }, - "method": { - "shortName": "CreateQueuedResource", - "fullName": "google.cloud.tpu.v2.Tpu.CreateQueuedResource", - "service": { - "shortName": "Tpu", - "fullName": "google.cloud.tpu.v2.Tpu" - } - } - } - }, - { - "regionTag": "tpu_v2_generated_Tpu_DeleteQueuedResource_async", - "title": "Tpu deleteQueuedResource Sample", - "origin": "API_DEFINITION", - "description": " Deletes a QueuedResource TPU instance.", - "canonical": true, - "file": "tpu.delete_queued_resource.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteQueuedResource", - "fullName": "google.cloud.tpu.v2.Tpu.DeleteQueuedResource", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TpuClient", - "fullName": "google.cloud.tpu.v2.TpuClient" - }, - "method": { - "shortName": "DeleteQueuedResource", - "fullName": "google.cloud.tpu.v2.Tpu.DeleteQueuedResource", - "service": { - "shortName": "Tpu", - "fullName": "google.cloud.tpu.v2.Tpu" - } - } - } - }, - { - "regionTag": "tpu_v2_generated_Tpu_ResetQueuedResource_async", - "title": "Tpu resetQueuedResource Sample", - "origin": "API_DEFINITION", - "description": " Resets a QueuedResource TPU instance", - "canonical": true, - "file": "tpu.reset_queued_resource.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResetQueuedResource", - "fullName": "google.cloud.tpu.v2.Tpu.ResetQueuedResource", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TpuClient", - "fullName": "google.cloud.tpu.v2.TpuClient" - }, - "method": { - "shortName": "ResetQueuedResource", - "fullName": "google.cloud.tpu.v2.Tpu.ResetQueuedResource", - "service": { - "shortName": "Tpu", - "fullName": "google.cloud.tpu.v2.Tpu" - } - } - } - }, - { - "regionTag": "tpu_v2_generated_Tpu_GenerateServiceIdentity_async", - "title": "Tpu generateServiceIdentity Sample", - "origin": "API_DEFINITION", - "description": " Generates the Cloud TPU service identity for the project.", - "canonical": true, - "file": "tpu.generate_service_identity.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateServiceIdentity", - "fullName": "google.cloud.tpu.v2.Tpu.GenerateServiceIdentity", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tpu.v2.GenerateServiceIdentityResponse", - "client": { - "shortName": "TpuClient", - "fullName": "google.cloud.tpu.v2.TpuClient" - }, - "method": { - "shortName": "GenerateServiceIdentity", - "fullName": "google.cloud.tpu.v2.Tpu.GenerateServiceIdentity", - "service": { - "shortName": "Tpu", - "fullName": "google.cloud.tpu.v2.Tpu" - } - } - } - }, - { - "regionTag": "tpu_v2_generated_Tpu_ListAcceleratorTypes_async", - "title": "Tpu listAcceleratorTypes Sample", - "origin": "API_DEFINITION", - "description": " Lists accelerator types supported by this API.", - "canonical": true, - "file": "tpu.list_accelerator_types.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAcceleratorTypes", - "fullName": "google.cloud.tpu.v2.Tpu.ListAcceleratorTypes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tpu.v2.ListAcceleratorTypesResponse", - "client": { - "shortName": "TpuClient", - "fullName": "google.cloud.tpu.v2.TpuClient" - }, - "method": { - "shortName": "ListAcceleratorTypes", - "fullName": "google.cloud.tpu.v2.Tpu.ListAcceleratorTypes", - "service": { - "shortName": "Tpu", - "fullName": "google.cloud.tpu.v2.Tpu" - } - } - } - }, - { - "regionTag": "tpu_v2_generated_Tpu_GetAcceleratorType_async", - "title": "Tpu getAcceleratorType Sample", - "origin": "API_DEFINITION", - "description": " Gets AcceleratorType.", - "canonical": true, - "file": "tpu.get_accelerator_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAcceleratorType", - "fullName": "google.cloud.tpu.v2.Tpu.GetAcceleratorType", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tpu.v2.AcceleratorType", - "client": { - "shortName": "TpuClient", - "fullName": "google.cloud.tpu.v2.TpuClient" - }, - "method": { - "shortName": "GetAcceleratorType", - "fullName": "google.cloud.tpu.v2.Tpu.GetAcceleratorType", - "service": { - "shortName": "Tpu", - "fullName": "google.cloud.tpu.v2.Tpu" - } - } - } - }, - { - "regionTag": "tpu_v2_generated_Tpu_ListRuntimeVersions_async", - "title": "Tpu listRuntimeVersions Sample", - "origin": "API_DEFINITION", - "description": " Lists runtime versions supported by this API.", - "canonical": true, - "file": "tpu.list_runtime_versions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRuntimeVersions", - "fullName": "google.cloud.tpu.v2.Tpu.ListRuntimeVersions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tpu.v2.ListRuntimeVersionsResponse", - "client": { - "shortName": "TpuClient", - "fullName": "google.cloud.tpu.v2.TpuClient" - }, - "method": { - "shortName": "ListRuntimeVersions", - "fullName": "google.cloud.tpu.v2.Tpu.ListRuntimeVersions", - "service": { - "shortName": "Tpu", - "fullName": "google.cloud.tpu.v2.Tpu" - } - } - } - }, - { - "regionTag": "tpu_v2_generated_Tpu_GetRuntimeVersion_async", - "title": "Tpu getRuntimeVersion Sample", - "origin": "API_DEFINITION", - "description": " Gets a runtime version.", - "canonical": true, - "file": "tpu.get_runtime_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRuntimeVersion", - "fullName": "google.cloud.tpu.v2.Tpu.GetRuntimeVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tpu.v2.RuntimeVersion", - "client": { - "shortName": "TpuClient", - "fullName": "google.cloud.tpu.v2.TpuClient" - }, - "method": { - "shortName": "GetRuntimeVersion", - "fullName": "google.cloud.tpu.v2.Tpu.GetRuntimeVersion", - "service": { - "shortName": "Tpu", - "fullName": "google.cloud.tpu.v2.Tpu" - } - } - } - }, - { - "regionTag": "tpu_v2_generated_Tpu_GetGuestAttributes_async", - "title": "Tpu getGuestAttributes Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the guest attributes for the node.", - "canonical": true, - "file": "tpu.get_guest_attributes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetGuestAttributes", - "fullName": "google.cloud.tpu.v2.Tpu.GetGuestAttributes", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "query_path", - "type": "TYPE_STRING" - }, - { - "name": "worker_ids", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.cloud.tpu.v2.GetGuestAttributesResponse", - "client": { - "shortName": "TpuClient", - "fullName": "google.cloud.tpu.v2.TpuClient" - }, - "method": { - "shortName": "GetGuestAttributes", - "fullName": "google.cloud.tpu.v2.Tpu.GetGuestAttributes", - "service": { - "shortName": "Tpu", - "fullName": "google.cloud.tpu.v2.Tpu" - } - } - } - } - ] -} diff --git a/packages/google-cloud-tpu/samples/generated/v2alpha1/snippet_metadata_google.cloud.tpu.v2alpha1.json b/packages/google-cloud-tpu/samples/generated/v2alpha1/snippet_metadata_google.cloud.tpu.v2alpha1.json deleted file mode 100644 index 0b1ed3362ee4..000000000000 --- a/packages/google-cloud-tpu/samples/generated/v2alpha1/snippet_metadata_google.cloud.tpu.v2alpha1.json +++ /dev/null @@ -1,1007 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-tpu", - "version": "4.1.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.tpu.v2alpha1", - "version": "v2alpha1" - } - ] - }, - "snippets": [ - { - "regionTag": "tpu_v2alpha1_generated_Tpu_ListNodes_async", - "title": "Tpu listNodes Sample", - "origin": "API_DEFINITION", - "description": " Lists nodes.", - "canonical": true, - "file": "tpu.list_nodes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListNodes", - "fullName": "google.cloud.tpu.v2alpha1.Tpu.ListNodes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tpu.v2alpha1.ListNodesResponse", - "client": { - "shortName": "TpuClient", - "fullName": "google.cloud.tpu.v2alpha1.TpuClient" - }, - "method": { - "shortName": "ListNodes", - "fullName": "google.cloud.tpu.v2alpha1.Tpu.ListNodes", - "service": { - "shortName": "Tpu", - "fullName": "google.cloud.tpu.v2alpha1.Tpu" - } - } - } - }, - { - "regionTag": "tpu_v2alpha1_generated_Tpu_GetNode_async", - "title": "Tpu getNode Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a node.", - "canonical": true, - "file": "tpu.get_node.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetNode", - "fullName": "google.cloud.tpu.v2alpha1.Tpu.GetNode", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tpu.v2alpha1.Node", - "client": { - "shortName": "TpuClient", - "fullName": "google.cloud.tpu.v2alpha1.TpuClient" - }, - "method": { - "shortName": "GetNode", - "fullName": "google.cloud.tpu.v2alpha1.Tpu.GetNode", - "service": { - "shortName": "Tpu", - "fullName": "google.cloud.tpu.v2alpha1.Tpu" - } - } - } - }, - { - "regionTag": "tpu_v2alpha1_generated_Tpu_CreateNode_async", - "title": "Tpu createNode Sample", - "origin": "API_DEFINITION", - "description": " Creates a node.", - "canonical": true, - "file": "tpu.create_node.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateNode", - "fullName": "google.cloud.tpu.v2alpha1.Tpu.CreateNode", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "node_id", - "type": "TYPE_STRING" - }, - { - "name": "node", - "type": ".google.cloud.tpu.v2alpha1.Node" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TpuClient", - "fullName": "google.cloud.tpu.v2alpha1.TpuClient" - }, - "method": { - "shortName": "CreateNode", - "fullName": "google.cloud.tpu.v2alpha1.Tpu.CreateNode", - "service": { - "shortName": "Tpu", - "fullName": "google.cloud.tpu.v2alpha1.Tpu" - } - } - } - }, - { - "regionTag": "tpu_v2alpha1_generated_Tpu_DeleteNode_async", - "title": "Tpu deleteNode Sample", - "origin": "API_DEFINITION", - "description": " Deletes a node.", - "canonical": true, - "file": "tpu.delete_node.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteNode", - "fullName": "google.cloud.tpu.v2alpha1.Tpu.DeleteNode", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TpuClient", - "fullName": "google.cloud.tpu.v2alpha1.TpuClient" - }, - "method": { - "shortName": "DeleteNode", - "fullName": "google.cloud.tpu.v2alpha1.Tpu.DeleteNode", - "service": { - "shortName": "Tpu", - "fullName": "google.cloud.tpu.v2alpha1.Tpu" - } - } - } - }, - { - "regionTag": "tpu_v2alpha1_generated_Tpu_StopNode_async", - "title": "Tpu stopNode Sample", - "origin": "API_DEFINITION", - "description": " Stops a node. This operation is only available with single TPU nodes.", - "canonical": true, - "file": "tpu.stop_node.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StopNode", - "fullName": "google.cloud.tpu.v2alpha1.Tpu.StopNode", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TpuClient", - "fullName": "google.cloud.tpu.v2alpha1.TpuClient" - }, - "method": { - "shortName": "StopNode", - "fullName": "google.cloud.tpu.v2alpha1.Tpu.StopNode", - "service": { - "shortName": "Tpu", - "fullName": "google.cloud.tpu.v2alpha1.Tpu" - } - } - } - }, - { - "regionTag": "tpu_v2alpha1_generated_Tpu_StartNode_async", - "title": "Tpu startNode Sample", - "origin": "API_DEFINITION", - "description": " Starts a node.", - "canonical": true, - "file": "tpu.start_node.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StartNode", - "fullName": "google.cloud.tpu.v2alpha1.Tpu.StartNode", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TpuClient", - "fullName": "google.cloud.tpu.v2alpha1.TpuClient" - }, - "method": { - "shortName": "StartNode", - "fullName": "google.cloud.tpu.v2alpha1.Tpu.StartNode", - "service": { - "shortName": "Tpu", - "fullName": "google.cloud.tpu.v2alpha1.Tpu" - } - } - } - }, - { - "regionTag": "tpu_v2alpha1_generated_Tpu_UpdateNode_async", - "title": "Tpu updateNode Sample", - "origin": "API_DEFINITION", - "description": " Updates the configurations of a node.", - "canonical": true, - "file": "tpu.update_node.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateNode", - "fullName": "google.cloud.tpu.v2alpha1.Tpu.UpdateNode", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "node", - "type": ".google.cloud.tpu.v2alpha1.Node" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TpuClient", - "fullName": "google.cloud.tpu.v2alpha1.TpuClient" - }, - "method": { - "shortName": "UpdateNode", - "fullName": "google.cloud.tpu.v2alpha1.Tpu.UpdateNode", - "service": { - "shortName": "Tpu", - "fullName": "google.cloud.tpu.v2alpha1.Tpu" - } - } - } - }, - { - "regionTag": "tpu_v2alpha1_generated_Tpu_PerformMaintenance_async", - "title": "Tpu performMaintenance Sample", - "origin": "API_DEFINITION", - "description": " Perform manual maintenance on a node.", - "canonical": true, - "file": "tpu.perform_maintenance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PerformMaintenance", - "fullName": "google.cloud.tpu.v2alpha1.Tpu.PerformMaintenance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TpuClient", - "fullName": "google.cloud.tpu.v2alpha1.TpuClient" - }, - "method": { - "shortName": "PerformMaintenance", - "fullName": "google.cloud.tpu.v2alpha1.Tpu.PerformMaintenance", - "service": { - "shortName": "Tpu", - "fullName": "google.cloud.tpu.v2alpha1.Tpu" - } - } - } - }, - { - "regionTag": "tpu_v2alpha1_generated_Tpu_ListQueuedResources_async", - "title": "Tpu listQueuedResources Sample", - "origin": "API_DEFINITION", - "description": " Lists queued resources.", - "canonical": true, - "file": "tpu.list_queued_resources.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListQueuedResources", - "fullName": "google.cloud.tpu.v2alpha1.Tpu.ListQueuedResources", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse", - "client": { - "shortName": "TpuClient", - "fullName": "google.cloud.tpu.v2alpha1.TpuClient" - }, - "method": { - "shortName": "ListQueuedResources", - "fullName": "google.cloud.tpu.v2alpha1.Tpu.ListQueuedResources", - "service": { - "shortName": "Tpu", - "fullName": "google.cloud.tpu.v2alpha1.Tpu" - } - } - } - }, - { - "regionTag": "tpu_v2alpha1_generated_Tpu_GetQueuedResource_async", - "title": "Tpu getQueuedResource Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a queued resource.", - "canonical": true, - "file": "tpu.get_queued_resource.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetQueuedResource", - "fullName": "google.cloud.tpu.v2alpha1.Tpu.GetQueuedResource", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tpu.v2alpha1.QueuedResource", - "client": { - "shortName": "TpuClient", - "fullName": "google.cloud.tpu.v2alpha1.TpuClient" - }, - "method": { - "shortName": "GetQueuedResource", - "fullName": "google.cloud.tpu.v2alpha1.Tpu.GetQueuedResource", - "service": { - "shortName": "Tpu", - "fullName": "google.cloud.tpu.v2alpha1.Tpu" - } - } - } - }, - { - "regionTag": "tpu_v2alpha1_generated_Tpu_CreateQueuedResource_async", - "title": "Tpu createQueuedResource Sample", - "origin": "API_DEFINITION", - "description": " Creates a QueuedResource TPU instance.", - "canonical": true, - "file": "tpu.create_queued_resource.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateQueuedResource", - "fullName": "google.cloud.tpu.v2alpha1.Tpu.CreateQueuedResource", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "queued_resource_id", - "type": "TYPE_STRING" - }, - { - "name": "queued_resource", - "type": ".google.cloud.tpu.v2alpha1.QueuedResource" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TpuClient", - "fullName": "google.cloud.tpu.v2alpha1.TpuClient" - }, - "method": { - "shortName": "CreateQueuedResource", - "fullName": "google.cloud.tpu.v2alpha1.Tpu.CreateQueuedResource", - "service": { - "shortName": "Tpu", - "fullName": "google.cloud.tpu.v2alpha1.Tpu" - } - } - } - }, - { - "regionTag": "tpu_v2alpha1_generated_Tpu_DeleteQueuedResource_async", - "title": "Tpu deleteQueuedResource Sample", - "origin": "API_DEFINITION", - "description": " Deletes a QueuedResource TPU instance.", - "canonical": true, - "file": "tpu.delete_queued_resource.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteQueuedResource", - "fullName": "google.cloud.tpu.v2alpha1.Tpu.DeleteQueuedResource", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TpuClient", - "fullName": "google.cloud.tpu.v2alpha1.TpuClient" - }, - "method": { - "shortName": "DeleteQueuedResource", - "fullName": "google.cloud.tpu.v2alpha1.Tpu.DeleteQueuedResource", - "service": { - "shortName": "Tpu", - "fullName": "google.cloud.tpu.v2alpha1.Tpu" - } - } - } - }, - { - "regionTag": "tpu_v2alpha1_generated_Tpu_ResetQueuedResource_async", - "title": "Tpu resetQueuedResource Sample", - "origin": "API_DEFINITION", - "description": " Resets a QueuedResource TPU instance", - "canonical": true, - "file": "tpu.reset_queued_resource.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResetQueuedResource", - "fullName": "google.cloud.tpu.v2alpha1.Tpu.ResetQueuedResource", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TpuClient", - "fullName": "google.cloud.tpu.v2alpha1.TpuClient" - }, - "method": { - "shortName": "ResetQueuedResource", - "fullName": "google.cloud.tpu.v2alpha1.Tpu.ResetQueuedResource", - "service": { - "shortName": "Tpu", - "fullName": "google.cloud.tpu.v2alpha1.Tpu" - } - } - } - }, - { - "regionTag": "tpu_v2alpha1_generated_Tpu_PerformMaintenanceQueuedResource_async", - "title": "Tpu performMaintenanceQueuedResource Sample", - "origin": "API_DEFINITION", - "description": " Perform manual maintenance on specific nodes of a QueuedResource.", - "canonical": true, - "file": "tpu.perform_maintenance_queued_resource.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PerformMaintenanceQueuedResource", - "fullName": "google.cloud.tpu.v2alpha1.Tpu.PerformMaintenanceQueuedResource", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "node_names", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TpuClient", - "fullName": "google.cloud.tpu.v2alpha1.TpuClient" - }, - "method": { - "shortName": "PerformMaintenanceQueuedResource", - "fullName": "google.cloud.tpu.v2alpha1.Tpu.PerformMaintenanceQueuedResource", - "service": { - "shortName": "Tpu", - "fullName": "google.cloud.tpu.v2alpha1.Tpu" - } - } - } - }, - { - "regionTag": "tpu_v2alpha1_generated_Tpu_GenerateServiceIdentity_async", - "title": "Tpu generateServiceIdentity Sample", - "origin": "API_DEFINITION", - "description": " Generates the Cloud TPU service identity for the project.", - "canonical": true, - "file": "tpu.generate_service_identity.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateServiceIdentity", - "fullName": "google.cloud.tpu.v2alpha1.Tpu.GenerateServiceIdentity", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tpu.v2alpha1.GenerateServiceIdentityResponse", - "client": { - "shortName": "TpuClient", - "fullName": "google.cloud.tpu.v2alpha1.TpuClient" - }, - "method": { - "shortName": "GenerateServiceIdentity", - "fullName": "google.cloud.tpu.v2alpha1.Tpu.GenerateServiceIdentity", - "service": { - "shortName": "Tpu", - "fullName": "google.cloud.tpu.v2alpha1.Tpu" - } - } - } - }, - { - "regionTag": "tpu_v2alpha1_generated_Tpu_ListAcceleratorTypes_async", - "title": "Tpu listAcceleratorTypes Sample", - "origin": "API_DEFINITION", - "description": " Lists accelerator types supported by this API.", - "canonical": true, - "file": "tpu.list_accelerator_types.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAcceleratorTypes", - "fullName": "google.cloud.tpu.v2alpha1.Tpu.ListAcceleratorTypes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tpu.v2alpha1.ListAcceleratorTypesResponse", - "client": { - "shortName": "TpuClient", - "fullName": "google.cloud.tpu.v2alpha1.TpuClient" - }, - "method": { - "shortName": "ListAcceleratorTypes", - "fullName": "google.cloud.tpu.v2alpha1.Tpu.ListAcceleratorTypes", - "service": { - "shortName": "Tpu", - "fullName": "google.cloud.tpu.v2alpha1.Tpu" - } - } - } - }, - { - "regionTag": "tpu_v2alpha1_generated_Tpu_GetAcceleratorType_async", - "title": "Tpu getAcceleratorType Sample", - "origin": "API_DEFINITION", - "description": " Gets AcceleratorType.", - "canonical": true, - "file": "tpu.get_accelerator_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAcceleratorType", - "fullName": "google.cloud.tpu.v2alpha1.Tpu.GetAcceleratorType", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tpu.v2alpha1.AcceleratorType", - "client": { - "shortName": "TpuClient", - "fullName": "google.cloud.tpu.v2alpha1.TpuClient" - }, - "method": { - "shortName": "GetAcceleratorType", - "fullName": "google.cloud.tpu.v2alpha1.Tpu.GetAcceleratorType", - "service": { - "shortName": "Tpu", - "fullName": "google.cloud.tpu.v2alpha1.Tpu" - } - } - } - }, - { - "regionTag": "tpu_v2alpha1_generated_Tpu_ListRuntimeVersions_async", - "title": "Tpu listRuntimeVersions Sample", - "origin": "API_DEFINITION", - "description": " Lists runtime versions supported by this API.", - "canonical": true, - "file": "tpu.list_runtime_versions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRuntimeVersions", - "fullName": "google.cloud.tpu.v2alpha1.Tpu.ListRuntimeVersions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tpu.v2alpha1.ListRuntimeVersionsResponse", - "client": { - "shortName": "TpuClient", - "fullName": "google.cloud.tpu.v2alpha1.TpuClient" - }, - "method": { - "shortName": "ListRuntimeVersions", - "fullName": "google.cloud.tpu.v2alpha1.Tpu.ListRuntimeVersions", - "service": { - "shortName": "Tpu", - "fullName": "google.cloud.tpu.v2alpha1.Tpu" - } - } - } - }, - { - "regionTag": "tpu_v2alpha1_generated_Tpu_GetRuntimeVersion_async", - "title": "Tpu getRuntimeVersion Sample", - "origin": "API_DEFINITION", - "description": " Gets a runtime version.", - "canonical": true, - "file": "tpu.get_runtime_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRuntimeVersion", - "fullName": "google.cloud.tpu.v2alpha1.Tpu.GetRuntimeVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tpu.v2alpha1.RuntimeVersion", - "client": { - "shortName": "TpuClient", - "fullName": "google.cloud.tpu.v2alpha1.TpuClient" - }, - "method": { - "shortName": "GetRuntimeVersion", - "fullName": "google.cloud.tpu.v2alpha1.Tpu.GetRuntimeVersion", - "service": { - "shortName": "Tpu", - "fullName": "google.cloud.tpu.v2alpha1.Tpu" - } - } - } - }, - { - "regionTag": "tpu_v2alpha1_generated_Tpu_GetGuestAttributes_async", - "title": "Tpu getGuestAttributes Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the guest attributes for the node.", - "canonical": true, - "file": "tpu.get_guest_attributes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetGuestAttributes", - "fullName": "google.cloud.tpu.v2alpha1.Tpu.GetGuestAttributes", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "query_path", - "type": "TYPE_STRING" - }, - { - "name": "worker_ids", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.cloud.tpu.v2alpha1.GetGuestAttributesResponse", - "client": { - "shortName": "TpuClient", - "fullName": "google.cloud.tpu.v2alpha1.TpuClient" - }, - "method": { - "shortName": "GetGuestAttributes", - "fullName": "google.cloud.tpu.v2alpha1.Tpu.GetGuestAttributes", - "service": { - "shortName": "Tpu", - "fullName": "google.cloud.tpu.v2alpha1.Tpu" - } - } - } - }, - { - "regionTag": "tpu_v2alpha1_generated_Tpu_ListReservations_async", - "title": "Tpu listReservations Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the reservations for the given project in the given location.", - "canonical": true, - "file": "tpu.list_reservations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListReservations", - "fullName": "google.cloud.tpu.v2alpha1.Tpu.ListReservations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.tpu.v2alpha1.ListReservationsResponse", - "client": { - "shortName": "TpuClient", - "fullName": "google.cloud.tpu.v2alpha1.TpuClient" - }, - "method": { - "shortName": "ListReservations", - "fullName": "google.cloud.tpu.v2alpha1.Tpu.ListReservations", - "service": { - "shortName": "Tpu", - "fullName": "google.cloud.tpu.v2alpha1.Tpu" - } - } - } - }, - { - "regionTag": "tpu_v2alpha1_generated_Tpu_SimulateMaintenanceEvent_async", - "title": "Tpu simulateMaintenanceEvent Sample", - "origin": "API_DEFINITION", - "description": " Simulates a maintenance event.", - "canonical": true, - "file": "tpu.simulate_maintenance_event.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SimulateMaintenanceEvent", - "fullName": "google.cloud.tpu.v2alpha1.Tpu.SimulateMaintenanceEvent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "worker_ids", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TpuClient", - "fullName": "google.cloud.tpu.v2alpha1.TpuClient" - }, - "method": { - "shortName": "SimulateMaintenanceEvent", - "fullName": "google.cloud.tpu.v2alpha1.Tpu.SimulateMaintenanceEvent", - "service": { - "shortName": "Tpu", - "fullName": "google.cloud.tpu.v2alpha1.Tpu" - } - } - } - } - ] -} diff --git a/packages/google-cloud-translate/samples/generated/v3/snippet_metadata_google.cloud.translation.v3.json b/packages/google-cloud-translate/samples/generated/v3/snippet_metadata_google.cloud.translation.v3.json deleted file mode 100644 index f6b29018ce3a..000000000000 --- a/packages/google-cloud-translate/samples/generated/v3/snippet_metadata_google.cloud.translation.v3.json +++ /dev/null @@ -1,1851 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-translation", - "version": "9.4.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.translation.v3", - "version": "v3" - } - ] - }, - "snippets": [ - { - "regionTag": "translate_v3_generated_TranslationService_TranslateText_async", - "title": "TranslationService translateText Sample", - "origin": "API_DEFINITION", - "description": " Translates input text and returns translated text.", - "canonical": true, - "file": "translation_service.translate_text.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 125, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TranslateText", - "fullName": "google.cloud.translation.v3.TranslationService.TranslateText", - "async": true, - "parameters": [ - { - "name": "contents", - "type": "TYPE_STRING[]" - }, - { - "name": "mime_type", - "type": "TYPE_STRING" - }, - { - "name": "source_language_code", - "type": "TYPE_STRING" - }, - { - "name": "target_language_code", - "type": "TYPE_STRING" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "glossary_config", - "type": ".google.cloud.translation.v3.TranslateTextGlossaryConfig" - }, - { - "name": "transliteration_config", - "type": ".google.cloud.translation.v3.TransliterationConfig" - }, - { - "name": "labels", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.translation.v3.TranslateTextResponse", - "client": { - "shortName": "TranslationServiceClient", - "fullName": "google.cloud.translation.v3.TranslationServiceClient" - }, - "method": { - "shortName": "TranslateText", - "fullName": "google.cloud.translation.v3.TranslationService.TranslateText", - "service": { - "shortName": "TranslationService", - "fullName": "google.cloud.translation.v3.TranslationService" - } - } - } - }, - { - "regionTag": "translate_v3_generated_TranslationService_RomanizeText_async", - "title": "TranslationService romanizeText Sample", - "origin": "API_DEFINITION", - "description": " Romanize input text written in non-Latin scripts to Latin text.", - "canonical": true, - "file": "translation_service.romanize_text.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RomanizeText", - "fullName": "google.cloud.translation.v3.TranslationService.RomanizeText", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "contents", - "type": "TYPE_STRING[]" - }, - { - "name": "source_language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.translation.v3.RomanizeTextResponse", - "client": { - "shortName": "TranslationServiceClient", - "fullName": "google.cloud.translation.v3.TranslationServiceClient" - }, - "method": { - "shortName": "RomanizeText", - "fullName": "google.cloud.translation.v3.TranslationService.RomanizeText", - "service": { - "shortName": "TranslationService", - "fullName": "google.cloud.translation.v3.TranslationService" - } - } - } - }, - { - "regionTag": "translate_v3_generated_TranslationService_DetectLanguage_async", - "title": "TranslationService detectLanguage Sample", - "origin": "API_DEFINITION", - "description": " Detects the language of text within a request.", - "canonical": true, - "file": "translation_service.detect_language.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 88, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DetectLanguage", - "fullName": "google.cloud.translation.v3.TranslationService.DetectLanguage", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "content", - "type": "TYPE_STRING" - }, - { - "name": "mime_type", - "type": "TYPE_STRING" - }, - { - "name": "labels", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.translation.v3.DetectLanguageResponse", - "client": { - "shortName": "TranslationServiceClient", - "fullName": "google.cloud.translation.v3.TranslationServiceClient" - }, - "method": { - "shortName": "DetectLanguage", - "fullName": "google.cloud.translation.v3.TranslationService.DetectLanguage", - "service": { - "shortName": "TranslationService", - "fullName": "google.cloud.translation.v3.TranslationService" - } - } - } - }, - { - "regionTag": "translate_v3_generated_TranslationService_GetSupportedLanguages_async", - "title": "TranslationService getSupportedLanguages Sample", - "origin": "API_DEFINITION", - "description": " Returns a list of supported languages for translation.", - "canonical": true, - "file": "translation_service.get_supported_languages.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSupportedLanguages", - "fullName": "google.cloud.translation.v3.TranslationService.GetSupportedLanguages", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "display_language_code", - "type": "TYPE_STRING" - }, - { - "name": "model", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.translation.v3.SupportedLanguages", - "client": { - "shortName": "TranslationServiceClient", - "fullName": "google.cloud.translation.v3.TranslationServiceClient" - }, - "method": { - "shortName": "GetSupportedLanguages", - "fullName": "google.cloud.translation.v3.TranslationService.GetSupportedLanguages", - "service": { - "shortName": "TranslationService", - "fullName": "google.cloud.translation.v3.TranslationService" - } - } - } - }, - { - "regionTag": "translate_v3_generated_TranslationService_TranslateDocument_async", - "title": "TranslationService translateDocument Sample", - "origin": "API_DEFINITION", - "description": " Translates documents in synchronous mode.", - "canonical": true, - "file": "translation_service.translate_document.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 141, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TranslateDocument", - "fullName": "google.cloud.translation.v3.TranslationService.TranslateDocument", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "source_language_code", - "type": "TYPE_STRING" - }, - { - "name": "target_language_code", - "type": "TYPE_STRING" - }, - { - "name": "document_input_config", - "type": ".google.cloud.translation.v3.DocumentInputConfig" - }, - { - "name": "document_output_config", - "type": ".google.cloud.translation.v3.DocumentOutputConfig" - }, - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "glossary_config", - "type": ".google.cloud.translation.v3.TranslateTextGlossaryConfig" - }, - { - "name": "labels", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "customized_attribution", - "type": "TYPE_STRING" - }, - { - "name": "is_translate_native_pdf_only", - "type": "TYPE_BOOL" - }, - { - "name": "enable_shadow_removal_native_pdf", - "type": "TYPE_BOOL" - }, - { - "name": "enable_rotation_correction", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.translation.v3.TranslateDocumentResponse", - "client": { - "shortName": "TranslationServiceClient", - "fullName": "google.cloud.translation.v3.TranslationServiceClient" - }, - "method": { - "shortName": "TranslateDocument", - "fullName": "google.cloud.translation.v3.TranslationService.TranslateDocument", - "service": { - "shortName": "TranslationService", - "fullName": "google.cloud.translation.v3.TranslationService" - } - } - } - }, - { - "regionTag": "translate_v3_generated_TranslationService_BatchTranslateText_async", - "title": "TranslationService batchTranslateText Sample", - "origin": "API_DEFINITION", - "description": " Translates a large volume of text in asynchronous batch mode. This function provides real-time output as the inputs are being processed. If caller cancels a request, the partial results (for an input file, it's all or nothing) may still be available on the specified output location. This call returns immediately and you can use google.longrunning.Operation.name to poll the status of the call.", - "canonical": true, - "file": "translation_service.batch_translate_text.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 116, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchTranslateText", - "fullName": "google.cloud.translation.v3.TranslationService.BatchTranslateText", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "source_language_code", - "type": "TYPE_STRING" - }, - { - "name": "target_language_codes", - "type": "TYPE_STRING[]" - }, - { - "name": "models", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "input_configs", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "output_config", - "type": ".google.cloud.translation.v3.OutputConfig" - }, - { - "name": "glossaries", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "labels", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TranslationServiceClient", - "fullName": "google.cloud.translation.v3.TranslationServiceClient" - }, - "method": { - "shortName": "BatchTranslateText", - "fullName": "google.cloud.translation.v3.TranslationService.BatchTranslateText", - "service": { - "shortName": "TranslationService", - "fullName": "google.cloud.translation.v3.TranslationService" - } - } - } - }, - { - "regionTag": "translate_v3_generated_TranslationService_BatchTranslateDocument_async", - "title": "TranslationService batchTranslateDocument Sample", - "origin": "API_DEFINITION", - "description": " Translates a large volume of document in asynchronous batch mode. This function provides real-time output as the inputs are being processed. If caller cancels a request, the partial results (for an input file, it's all or nothing) may still be available on the specified output location. This call returns immediately and you can use google.longrunning.Operation.name to poll the status of the call.", - "canonical": true, - "file": "translation_service.batch_translate_document.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 135, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchTranslateDocument", - "fullName": "google.cloud.translation.v3.TranslationService.BatchTranslateDocument", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "source_language_code", - "type": "TYPE_STRING" - }, - { - "name": "target_language_codes", - "type": "TYPE_STRING[]" - }, - { - "name": "input_configs", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "output_config", - "type": ".google.cloud.translation.v3.BatchDocumentOutputConfig" - }, - { - "name": "models", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "glossaries", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "format_conversions", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "customized_attribution", - "type": "TYPE_STRING" - }, - { - "name": "enable_shadow_removal_native_pdf", - "type": "TYPE_BOOL" - }, - { - "name": "enable_rotation_correction", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TranslationServiceClient", - "fullName": "google.cloud.translation.v3.TranslationServiceClient" - }, - "method": { - "shortName": "BatchTranslateDocument", - "fullName": "google.cloud.translation.v3.TranslationService.BatchTranslateDocument", - "service": { - "shortName": "TranslationService", - "fullName": "google.cloud.translation.v3.TranslationService" - } - } - } - }, - { - "regionTag": "translate_v3_generated_TranslationService_CreateGlossary_async", - "title": "TranslationService createGlossary Sample", - "origin": "API_DEFINITION", - "description": " Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project doesn't exist.", - "canonical": true, - "file": "translation_service.create_glossary.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateGlossary", - "fullName": "google.cloud.translation.v3.TranslationService.CreateGlossary", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "glossary", - "type": ".google.cloud.translation.v3.Glossary" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TranslationServiceClient", - "fullName": "google.cloud.translation.v3.TranslationServiceClient" - }, - "method": { - "shortName": "CreateGlossary", - "fullName": "google.cloud.translation.v3.TranslationService.CreateGlossary", - "service": { - "shortName": "TranslationService", - "fullName": "google.cloud.translation.v3.TranslationService" - } - } - } - }, - { - "regionTag": "translate_v3_generated_TranslationService_UpdateGlossary_async", - "title": "TranslationService updateGlossary Sample", - "origin": "API_DEFINITION", - "description": " Updates a glossary. A LRO is used since the update can be async if the glossary's entry file is updated.", - "canonical": true, - "file": "translation_service.update_glossary.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateGlossary", - "fullName": "google.cloud.translation.v3.TranslationService.UpdateGlossary", - "async": true, - "parameters": [ - { - "name": "glossary", - "type": ".google.cloud.translation.v3.Glossary" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TranslationServiceClient", - "fullName": "google.cloud.translation.v3.TranslationServiceClient" - }, - "method": { - "shortName": "UpdateGlossary", - "fullName": "google.cloud.translation.v3.TranslationService.UpdateGlossary", - "service": { - "shortName": "TranslationService", - "fullName": "google.cloud.translation.v3.TranslationService" - } - } - } - }, - { - "regionTag": "translate_v3_generated_TranslationService_ListGlossaries_async", - "title": "TranslationService listGlossaries Sample", - "origin": "API_DEFINITION", - "description": " Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist.", - "canonical": true, - "file": "translation_service.list_glossaries.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListGlossaries", - "fullName": "google.cloud.translation.v3.TranslationService.ListGlossaries", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.translation.v3.ListGlossariesResponse", - "client": { - "shortName": "TranslationServiceClient", - "fullName": "google.cloud.translation.v3.TranslationServiceClient" - }, - "method": { - "shortName": "ListGlossaries", - "fullName": "google.cloud.translation.v3.TranslationService.ListGlossaries", - "service": { - "shortName": "TranslationService", - "fullName": "google.cloud.translation.v3.TranslationService" - } - } - } - }, - { - "regionTag": "translate_v3_generated_TranslationService_GetGlossary_async", - "title": "TranslationService getGlossary Sample", - "origin": "API_DEFINITION", - "description": " Gets a glossary. Returns NOT_FOUND, if the glossary doesn't exist.", - "canonical": true, - "file": "translation_service.get_glossary.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetGlossary", - "fullName": "google.cloud.translation.v3.TranslationService.GetGlossary", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.translation.v3.Glossary", - "client": { - "shortName": "TranslationServiceClient", - "fullName": "google.cloud.translation.v3.TranslationServiceClient" - }, - "method": { - "shortName": "GetGlossary", - "fullName": "google.cloud.translation.v3.TranslationService.GetGlossary", - "service": { - "shortName": "TranslationService", - "fullName": "google.cloud.translation.v3.TranslationService" - } - } - } - }, - { - "regionTag": "translate_v3_generated_TranslationService_DeleteGlossary_async", - "title": "TranslationService deleteGlossary Sample", - "origin": "API_DEFINITION", - "description": " Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns NOT_FOUND, if the glossary doesn't exist.", - "canonical": true, - "file": "translation_service.delete_glossary.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteGlossary", - "fullName": "google.cloud.translation.v3.TranslationService.DeleteGlossary", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TranslationServiceClient", - "fullName": "google.cloud.translation.v3.TranslationServiceClient" - }, - "method": { - "shortName": "DeleteGlossary", - "fullName": "google.cloud.translation.v3.TranslationService.DeleteGlossary", - "service": { - "shortName": "TranslationService", - "fullName": "google.cloud.translation.v3.TranslationService" - } - } - } - }, - { - "regionTag": "translate_v3_generated_TranslationService_GetGlossaryEntry_async", - "title": "TranslationService getGlossaryEntry Sample", - "origin": "API_DEFINITION", - "description": " Gets a single glossary entry by the given id.", - "canonical": true, - "file": "translation_service.get_glossary_entry.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetGlossaryEntry", - "fullName": "google.cloud.translation.v3.TranslationService.GetGlossaryEntry", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.translation.v3.GlossaryEntry", - "client": { - "shortName": "TranslationServiceClient", - "fullName": "google.cloud.translation.v3.TranslationServiceClient" - }, - "method": { - "shortName": "GetGlossaryEntry", - "fullName": "google.cloud.translation.v3.TranslationService.GetGlossaryEntry", - "service": { - "shortName": "TranslationService", - "fullName": "google.cloud.translation.v3.TranslationService" - } - } - } - }, - { - "regionTag": "translate_v3_generated_TranslationService_ListGlossaryEntries_async", - "title": "TranslationService listGlossaryEntries Sample", - "origin": "API_DEFINITION", - "description": " List the entries for the glossary.", - "canonical": true, - "file": "translation_service.list_glossary_entries.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListGlossaryEntries", - "fullName": "google.cloud.translation.v3.TranslationService.ListGlossaryEntries", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.translation.v3.ListGlossaryEntriesResponse", - "client": { - "shortName": "TranslationServiceClient", - "fullName": "google.cloud.translation.v3.TranslationServiceClient" - }, - "method": { - "shortName": "ListGlossaryEntries", - "fullName": "google.cloud.translation.v3.TranslationService.ListGlossaryEntries", - "service": { - "shortName": "TranslationService", - "fullName": "google.cloud.translation.v3.TranslationService" - } - } - } - }, - { - "regionTag": "translate_v3_generated_TranslationService_CreateGlossaryEntry_async", - "title": "TranslationService createGlossaryEntry Sample", - "origin": "API_DEFINITION", - "description": " Creates a glossary entry.", - "canonical": true, - "file": "translation_service.create_glossary_entry.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateGlossaryEntry", - "fullName": "google.cloud.translation.v3.TranslationService.CreateGlossaryEntry", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "glossary_entry", - "type": ".google.cloud.translation.v3.GlossaryEntry" - } - ], - "resultType": ".google.cloud.translation.v3.GlossaryEntry", - "client": { - "shortName": "TranslationServiceClient", - "fullName": "google.cloud.translation.v3.TranslationServiceClient" - }, - "method": { - "shortName": "CreateGlossaryEntry", - "fullName": "google.cloud.translation.v3.TranslationService.CreateGlossaryEntry", - "service": { - "shortName": "TranslationService", - "fullName": "google.cloud.translation.v3.TranslationService" - } - } - } - }, - { - "regionTag": "translate_v3_generated_TranslationService_UpdateGlossaryEntry_async", - "title": "TranslationService updateGlossaryEntry Sample", - "origin": "API_DEFINITION", - "description": " Updates a glossary entry.", - "canonical": true, - "file": "translation_service.update_glossary_entry.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateGlossaryEntry", - "fullName": "google.cloud.translation.v3.TranslationService.UpdateGlossaryEntry", - "async": true, - "parameters": [ - { - "name": "glossary_entry", - "type": ".google.cloud.translation.v3.GlossaryEntry" - } - ], - "resultType": ".google.cloud.translation.v3.GlossaryEntry", - "client": { - "shortName": "TranslationServiceClient", - "fullName": "google.cloud.translation.v3.TranslationServiceClient" - }, - "method": { - "shortName": "UpdateGlossaryEntry", - "fullName": "google.cloud.translation.v3.TranslationService.UpdateGlossaryEntry", - "service": { - "shortName": "TranslationService", - "fullName": "google.cloud.translation.v3.TranslationService" - } - } - } - }, - { - "regionTag": "translate_v3_generated_TranslationService_DeleteGlossaryEntry_async", - "title": "TranslationService deleteGlossaryEntry Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single entry from the glossary", - "canonical": true, - "file": "translation_service.delete_glossary_entry.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteGlossaryEntry", - "fullName": "google.cloud.translation.v3.TranslationService.DeleteGlossaryEntry", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "TranslationServiceClient", - "fullName": "google.cloud.translation.v3.TranslationServiceClient" - }, - "method": { - "shortName": "DeleteGlossaryEntry", - "fullName": "google.cloud.translation.v3.TranslationService.DeleteGlossaryEntry", - "service": { - "shortName": "TranslationService", - "fullName": "google.cloud.translation.v3.TranslationService" - } - } - } - }, - { - "regionTag": "translate_v3_generated_TranslationService_CreateDataset_async", - "title": "TranslationService createDataset Sample", - "origin": "API_DEFINITION", - "description": " Creates a Dataset.", - "canonical": true, - "file": "translation_service.create_dataset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDataset", - "fullName": "google.cloud.translation.v3.TranslationService.CreateDataset", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "dataset", - "type": ".google.cloud.translation.v3.Dataset" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TranslationServiceClient", - "fullName": "google.cloud.translation.v3.TranslationServiceClient" - }, - "method": { - "shortName": "CreateDataset", - "fullName": "google.cloud.translation.v3.TranslationService.CreateDataset", - "service": { - "shortName": "TranslationService", - "fullName": "google.cloud.translation.v3.TranslationService" - } - } - } - }, - { - "regionTag": "translate_v3_generated_TranslationService_GetDataset_async", - "title": "TranslationService getDataset Sample", - "origin": "API_DEFINITION", - "description": " Gets a Dataset.", - "canonical": true, - "file": "translation_service.get_dataset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDataset", - "fullName": "google.cloud.translation.v3.TranslationService.GetDataset", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.translation.v3.Dataset", - "client": { - "shortName": "TranslationServiceClient", - "fullName": "google.cloud.translation.v3.TranslationServiceClient" - }, - "method": { - "shortName": "GetDataset", - "fullName": "google.cloud.translation.v3.TranslationService.GetDataset", - "service": { - "shortName": "TranslationService", - "fullName": "google.cloud.translation.v3.TranslationService" - } - } - } - }, - { - "regionTag": "translate_v3_generated_TranslationService_ListDatasets_async", - "title": "TranslationService listDatasets Sample", - "origin": "API_DEFINITION", - "description": " Lists datasets.", - "canonical": true, - "file": "translation_service.list_datasets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDatasets", - "fullName": "google.cloud.translation.v3.TranslationService.ListDatasets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.translation.v3.ListDatasetsResponse", - "client": { - "shortName": "TranslationServiceClient", - "fullName": "google.cloud.translation.v3.TranslationServiceClient" - }, - "method": { - "shortName": "ListDatasets", - "fullName": "google.cloud.translation.v3.TranslationService.ListDatasets", - "service": { - "shortName": "TranslationService", - "fullName": "google.cloud.translation.v3.TranslationService" - } - } - } - }, - { - "regionTag": "translate_v3_generated_TranslationService_DeleteDataset_async", - "title": "TranslationService deleteDataset Sample", - "origin": "API_DEFINITION", - "description": " Deletes a dataset and all of its contents.", - "canonical": true, - "file": "translation_service.delete_dataset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDataset", - "fullName": "google.cloud.translation.v3.TranslationService.DeleteDataset", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TranslationServiceClient", - "fullName": "google.cloud.translation.v3.TranslationServiceClient" - }, - "method": { - "shortName": "DeleteDataset", - "fullName": "google.cloud.translation.v3.TranslationService.DeleteDataset", - "service": { - "shortName": "TranslationService", - "fullName": "google.cloud.translation.v3.TranslationService" - } - } - } - }, - { - "regionTag": "translate_v3_generated_TranslationService_CreateAdaptiveMtDataset_async", - "title": "TranslationService createAdaptiveMtDataset Sample", - "origin": "API_DEFINITION", - "description": " Creates an Adaptive MT dataset.", - "canonical": true, - "file": "translation_service.create_adaptive_mt_dataset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAdaptiveMtDataset", - "fullName": "google.cloud.translation.v3.TranslationService.CreateAdaptiveMtDataset", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "adaptive_mt_dataset", - "type": ".google.cloud.translation.v3.AdaptiveMtDataset" - } - ], - "resultType": ".google.cloud.translation.v3.AdaptiveMtDataset", - "client": { - "shortName": "TranslationServiceClient", - "fullName": "google.cloud.translation.v3.TranslationServiceClient" - }, - "method": { - "shortName": "CreateAdaptiveMtDataset", - "fullName": "google.cloud.translation.v3.TranslationService.CreateAdaptiveMtDataset", - "service": { - "shortName": "TranslationService", - "fullName": "google.cloud.translation.v3.TranslationService" - } - } - } - }, - { - "regionTag": "translate_v3_generated_TranslationService_DeleteAdaptiveMtDataset_async", - "title": "TranslationService deleteAdaptiveMtDataset Sample", - "origin": "API_DEFINITION", - "description": " Deletes an Adaptive MT dataset, including all its entries and associated metadata.", - "canonical": true, - "file": "translation_service.delete_adaptive_mt_dataset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAdaptiveMtDataset", - "fullName": "google.cloud.translation.v3.TranslationService.DeleteAdaptiveMtDataset", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "TranslationServiceClient", - "fullName": "google.cloud.translation.v3.TranslationServiceClient" - }, - "method": { - "shortName": "DeleteAdaptiveMtDataset", - "fullName": "google.cloud.translation.v3.TranslationService.DeleteAdaptiveMtDataset", - "service": { - "shortName": "TranslationService", - "fullName": "google.cloud.translation.v3.TranslationService" - } - } - } - }, - { - "regionTag": "translate_v3_generated_TranslationService_GetAdaptiveMtDataset_async", - "title": "TranslationService getAdaptiveMtDataset Sample", - "origin": "API_DEFINITION", - "description": " Gets the Adaptive MT dataset.", - "canonical": true, - "file": "translation_service.get_adaptive_mt_dataset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAdaptiveMtDataset", - "fullName": "google.cloud.translation.v3.TranslationService.GetAdaptiveMtDataset", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.translation.v3.AdaptiveMtDataset", - "client": { - "shortName": "TranslationServiceClient", - "fullName": "google.cloud.translation.v3.TranslationServiceClient" - }, - "method": { - "shortName": "GetAdaptiveMtDataset", - "fullName": "google.cloud.translation.v3.TranslationService.GetAdaptiveMtDataset", - "service": { - "shortName": "TranslationService", - "fullName": "google.cloud.translation.v3.TranslationService" - } - } - } - }, - { - "regionTag": "translate_v3_generated_TranslationService_ListAdaptiveMtDatasets_async", - "title": "TranslationService listAdaptiveMtDatasets Sample", - "origin": "API_DEFINITION", - "description": " Lists all Adaptive MT datasets for which the caller has read permission.", - "canonical": true, - "file": "translation_service.list_adaptive_mt_datasets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAdaptiveMtDatasets", - "fullName": "google.cloud.translation.v3.TranslationService.ListAdaptiveMtDatasets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.translation.v3.ListAdaptiveMtDatasetsResponse", - "client": { - "shortName": "TranslationServiceClient", - "fullName": "google.cloud.translation.v3.TranslationServiceClient" - }, - "method": { - "shortName": "ListAdaptiveMtDatasets", - "fullName": "google.cloud.translation.v3.TranslationService.ListAdaptiveMtDatasets", - "service": { - "shortName": "TranslationService", - "fullName": "google.cloud.translation.v3.TranslationService" - } - } - } - }, - { - "regionTag": "translate_v3_generated_TranslationService_AdaptiveMtTranslate_async", - "title": "TranslationService adaptiveMtTranslate Sample", - "origin": "API_DEFINITION", - "description": " Translate text using Adaptive MT.", - "canonical": true, - "file": "translation_service.adaptive_mt_translate.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AdaptiveMtTranslate", - "fullName": "google.cloud.translation.v3.TranslationService.AdaptiveMtTranslate", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "dataset", - "type": "TYPE_STRING" - }, - { - "name": "content", - "type": "TYPE_STRING[]" - }, - { - "name": "mime_type", - "type": "TYPE_STRING" - }, - { - "name": "reference_sentence_config", - "type": ".google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentenceConfig" - }, - { - "name": "glossary_config", - "type": ".google.cloud.translation.v3.AdaptiveMtTranslateRequest.GlossaryConfig" - } - ], - "resultType": ".google.cloud.translation.v3.AdaptiveMtTranslateResponse", - "client": { - "shortName": "TranslationServiceClient", - "fullName": "google.cloud.translation.v3.TranslationServiceClient" - }, - "method": { - "shortName": "AdaptiveMtTranslate", - "fullName": "google.cloud.translation.v3.TranslationService.AdaptiveMtTranslate", - "service": { - "shortName": "TranslationService", - "fullName": "google.cloud.translation.v3.TranslationService" - } - } - } - }, - { - "regionTag": "translate_v3_generated_TranslationService_GetAdaptiveMtFile_async", - "title": "TranslationService getAdaptiveMtFile Sample", - "origin": "API_DEFINITION", - "description": " Gets and AdaptiveMtFile", - "canonical": true, - "file": "translation_service.get_adaptive_mt_file.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAdaptiveMtFile", - "fullName": "google.cloud.translation.v3.TranslationService.GetAdaptiveMtFile", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.translation.v3.AdaptiveMtFile", - "client": { - "shortName": "TranslationServiceClient", - "fullName": "google.cloud.translation.v3.TranslationServiceClient" - }, - "method": { - "shortName": "GetAdaptiveMtFile", - "fullName": "google.cloud.translation.v3.TranslationService.GetAdaptiveMtFile", - "service": { - "shortName": "TranslationService", - "fullName": "google.cloud.translation.v3.TranslationService" - } - } - } - }, - { - "regionTag": "translate_v3_generated_TranslationService_DeleteAdaptiveMtFile_async", - "title": "TranslationService deleteAdaptiveMtFile Sample", - "origin": "API_DEFINITION", - "description": " Deletes an AdaptiveMtFile along with its sentences.", - "canonical": true, - "file": "translation_service.delete_adaptive_mt_file.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAdaptiveMtFile", - "fullName": "google.cloud.translation.v3.TranslationService.DeleteAdaptiveMtFile", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "TranslationServiceClient", - "fullName": "google.cloud.translation.v3.TranslationServiceClient" - }, - "method": { - "shortName": "DeleteAdaptiveMtFile", - "fullName": "google.cloud.translation.v3.TranslationService.DeleteAdaptiveMtFile", - "service": { - "shortName": "TranslationService", - "fullName": "google.cloud.translation.v3.TranslationService" - } - } - } - }, - { - "regionTag": "translate_v3_generated_TranslationService_ImportAdaptiveMtFile_async", - "title": "TranslationService importAdaptiveMtFile Sample", - "origin": "API_DEFINITION", - "description": " Imports an AdaptiveMtFile and adds all of its sentences into the AdaptiveMtDataset.", - "canonical": true, - "file": "translation_service.import_adaptive_mt_file.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportAdaptiveMtFile", - "fullName": "google.cloud.translation.v3.TranslationService.ImportAdaptiveMtFile", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "file_input_source", - "type": ".google.cloud.translation.v3.FileInputSource" - }, - { - "name": "gcs_input_source", - "type": ".google.cloud.translation.v3.GcsInputSource" - } - ], - "resultType": ".google.cloud.translation.v3.ImportAdaptiveMtFileResponse", - "client": { - "shortName": "TranslationServiceClient", - "fullName": "google.cloud.translation.v3.TranslationServiceClient" - }, - "method": { - "shortName": "ImportAdaptiveMtFile", - "fullName": "google.cloud.translation.v3.TranslationService.ImportAdaptiveMtFile", - "service": { - "shortName": "TranslationService", - "fullName": "google.cloud.translation.v3.TranslationService" - } - } - } - }, - { - "regionTag": "translate_v3_generated_TranslationService_ListAdaptiveMtFiles_async", - "title": "TranslationService listAdaptiveMtFiles Sample", - "origin": "API_DEFINITION", - "description": " Lists all AdaptiveMtFiles associated to an AdaptiveMtDataset.", - "canonical": true, - "file": "translation_service.list_adaptive_mt_files.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAdaptiveMtFiles", - "fullName": "google.cloud.translation.v3.TranslationService.ListAdaptiveMtFiles", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.translation.v3.ListAdaptiveMtFilesResponse", - "client": { - "shortName": "TranslationServiceClient", - "fullName": "google.cloud.translation.v3.TranslationServiceClient" - }, - "method": { - "shortName": "ListAdaptiveMtFiles", - "fullName": "google.cloud.translation.v3.TranslationService.ListAdaptiveMtFiles", - "service": { - "shortName": "TranslationService", - "fullName": "google.cloud.translation.v3.TranslationService" - } - } - } - }, - { - "regionTag": "translate_v3_generated_TranslationService_ListAdaptiveMtSentences_async", - "title": "TranslationService listAdaptiveMtSentences Sample", - "origin": "API_DEFINITION", - "description": " Lists all AdaptiveMtSentences under a given file/dataset.", - "canonical": true, - "file": "translation_service.list_adaptive_mt_sentences.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAdaptiveMtSentences", - "fullName": "google.cloud.translation.v3.TranslationService.ListAdaptiveMtSentences", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.translation.v3.ListAdaptiveMtSentencesResponse", - "client": { - "shortName": "TranslationServiceClient", - "fullName": "google.cloud.translation.v3.TranslationServiceClient" - }, - "method": { - "shortName": "ListAdaptiveMtSentences", - "fullName": "google.cloud.translation.v3.TranslationService.ListAdaptiveMtSentences", - "service": { - "shortName": "TranslationService", - "fullName": "google.cloud.translation.v3.TranslationService" - } - } - } - }, - { - "regionTag": "translate_v3_generated_TranslationService_ImportData_async", - "title": "TranslationService importData Sample", - "origin": "API_DEFINITION", - "description": " Import sentence pairs into translation Dataset.", - "canonical": true, - "file": "translation_service.import_data.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportData", - "fullName": "google.cloud.translation.v3.TranslationService.ImportData", - "async": true, - "parameters": [ - { - "name": "dataset", - "type": "TYPE_STRING" - }, - { - "name": "input_config", - "type": ".google.cloud.translation.v3.DatasetInputConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TranslationServiceClient", - "fullName": "google.cloud.translation.v3.TranslationServiceClient" - }, - "method": { - "shortName": "ImportData", - "fullName": "google.cloud.translation.v3.TranslationService.ImportData", - "service": { - "shortName": "TranslationService", - "fullName": "google.cloud.translation.v3.TranslationService" - } - } - } - }, - { - "regionTag": "translate_v3_generated_TranslationService_ExportData_async", - "title": "TranslationService exportData Sample", - "origin": "API_DEFINITION", - "description": " Exports dataset's data to the provided output location.", - "canonical": true, - "file": "translation_service.export_data.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportData", - "fullName": "google.cloud.translation.v3.TranslationService.ExportData", - "async": true, - "parameters": [ - { - "name": "dataset", - "type": "TYPE_STRING" - }, - { - "name": "output_config", - "type": ".google.cloud.translation.v3.DatasetOutputConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TranslationServiceClient", - "fullName": "google.cloud.translation.v3.TranslationServiceClient" - }, - "method": { - "shortName": "ExportData", - "fullName": "google.cloud.translation.v3.TranslationService.ExportData", - "service": { - "shortName": "TranslationService", - "fullName": "google.cloud.translation.v3.TranslationService" - } - } - } - }, - { - "regionTag": "translate_v3_generated_TranslationService_ListExamples_async", - "title": "TranslationService listExamples Sample", - "origin": "API_DEFINITION", - "description": " Lists sentence pairs in the dataset.", - "canonical": true, - "file": "translation_service.list_examples.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListExamples", - "fullName": "google.cloud.translation.v3.TranslationService.ListExamples", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.translation.v3.ListExamplesResponse", - "client": { - "shortName": "TranslationServiceClient", - "fullName": "google.cloud.translation.v3.TranslationServiceClient" - }, - "method": { - "shortName": "ListExamples", - "fullName": "google.cloud.translation.v3.TranslationService.ListExamples", - "service": { - "shortName": "TranslationService", - "fullName": "google.cloud.translation.v3.TranslationService" - } - } - } - }, - { - "regionTag": "translate_v3_generated_TranslationService_CreateModel_async", - "title": "TranslationService createModel Sample", - "origin": "API_DEFINITION", - "description": " Creates a Model.", - "canonical": true, - "file": "translation_service.create_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateModel", - "fullName": "google.cloud.translation.v3.TranslationService.CreateModel", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "model", - "type": ".google.cloud.translation.v3.Model" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TranslationServiceClient", - "fullName": "google.cloud.translation.v3.TranslationServiceClient" - }, - "method": { - "shortName": "CreateModel", - "fullName": "google.cloud.translation.v3.TranslationService.CreateModel", - "service": { - "shortName": "TranslationService", - "fullName": "google.cloud.translation.v3.TranslationService" - } - } - } - }, - { - "regionTag": "translate_v3_generated_TranslationService_ListModels_async", - "title": "TranslationService listModels Sample", - "origin": "API_DEFINITION", - "description": " Lists models.", - "canonical": true, - "file": "translation_service.list_models.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListModels", - "fullName": "google.cloud.translation.v3.TranslationService.ListModels", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.translation.v3.ListModelsResponse", - "client": { - "shortName": "TranslationServiceClient", - "fullName": "google.cloud.translation.v3.TranslationServiceClient" - }, - "method": { - "shortName": "ListModels", - "fullName": "google.cloud.translation.v3.TranslationService.ListModels", - "service": { - "shortName": "TranslationService", - "fullName": "google.cloud.translation.v3.TranslationService" - } - } - } - }, - { - "regionTag": "translate_v3_generated_TranslationService_GetModel_async", - "title": "TranslationService getModel Sample", - "origin": "API_DEFINITION", - "description": " Gets a model.", - "canonical": true, - "file": "translation_service.get_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetModel", - "fullName": "google.cloud.translation.v3.TranslationService.GetModel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.translation.v3.Model", - "client": { - "shortName": "TranslationServiceClient", - "fullName": "google.cloud.translation.v3.TranslationServiceClient" - }, - "method": { - "shortName": "GetModel", - "fullName": "google.cloud.translation.v3.TranslationService.GetModel", - "service": { - "shortName": "TranslationService", - "fullName": "google.cloud.translation.v3.TranslationService" - } - } - } - }, - { - "regionTag": "translate_v3_generated_TranslationService_DeleteModel_async", - "title": "TranslationService deleteModel Sample", - "origin": "API_DEFINITION", - "description": " Deletes a model.", - "canonical": true, - "file": "translation_service.delete_model.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteModel", - "fullName": "google.cloud.translation.v3.TranslationService.DeleteModel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TranslationServiceClient", - "fullName": "google.cloud.translation.v3.TranslationServiceClient" - }, - "method": { - "shortName": "DeleteModel", - "fullName": "google.cloud.translation.v3.TranslationService.DeleteModel", - "service": { - "shortName": "TranslationService", - "fullName": "google.cloud.translation.v3.TranslationService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-translate/samples/generated/v3beta1/snippet_metadata_google.cloud.translation.v3beta1.json b/packages/google-cloud-translate/samples/generated/v3beta1/snippet_metadata_google.cloud.translation.v3beta1.json deleted file mode 100644 index df7a9710c1a8..000000000000 --- a/packages/google-cloud-translate/samples/generated/v3beta1/snippet_metadata_google.cloud.translation.v3beta1.json +++ /dev/null @@ -1,651 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-translation", - "version": "9.4.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.translation.v3beta1", - "version": "v3beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "translate_v3beta1_generated_TranslationService_TranslateText_async", - "title": "TranslationService translateText Sample", - "origin": "API_DEFINITION", - "description": " Translates input text and returns translated text.", - "canonical": true, - "file": "translation_service.translate_text.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 119, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TranslateText", - "fullName": "google.cloud.translation.v3beta1.TranslationService.TranslateText", - "async": true, - "parameters": [ - { - "name": "contents", - "type": "TYPE_STRING[]" - }, - { - "name": "mime_type", - "type": "TYPE_STRING" - }, - { - "name": "source_language_code", - "type": "TYPE_STRING" - }, - { - "name": "target_language_code", - "type": "TYPE_STRING" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "glossary_config", - "type": ".google.cloud.translation.v3beta1.TranslateTextGlossaryConfig" - }, - { - "name": "labels", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.translation.v3beta1.TranslateTextResponse", - "client": { - "shortName": "TranslationServiceClient", - "fullName": "google.cloud.translation.v3beta1.TranslationServiceClient" - }, - "method": { - "shortName": "TranslateText", - "fullName": "google.cloud.translation.v3beta1.TranslationService.TranslateText", - "service": { - "shortName": "TranslationService", - "fullName": "google.cloud.translation.v3beta1.TranslationService" - } - } - } - }, - { - "regionTag": "translate_v3beta1_generated_TranslationService_DetectLanguage_async", - "title": "TranslationService detectLanguage Sample", - "origin": "API_DEFINITION", - "description": " Detects the language of text within a request.", - "canonical": true, - "file": "translation_service.detect_language.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DetectLanguage", - "fullName": "google.cloud.translation.v3beta1.TranslationService.DetectLanguage", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "content", - "type": "TYPE_STRING" - }, - { - "name": "mime_type", - "type": "TYPE_STRING" - }, - { - "name": "labels", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.translation.v3beta1.DetectLanguageResponse", - "client": { - "shortName": "TranslationServiceClient", - "fullName": "google.cloud.translation.v3beta1.TranslationServiceClient" - }, - "method": { - "shortName": "DetectLanguage", - "fullName": "google.cloud.translation.v3beta1.TranslationService.DetectLanguage", - "service": { - "shortName": "TranslationService", - "fullName": "google.cloud.translation.v3beta1.TranslationService" - } - } - } - }, - { - "regionTag": "translate_v3beta1_generated_TranslationService_GetSupportedLanguages_async", - "title": "TranslationService getSupportedLanguages Sample", - "origin": "API_DEFINITION", - "description": " Returns a list of supported languages for translation.", - "canonical": true, - "file": "translation_service.get_supported_languages.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSupportedLanguages", - "fullName": "google.cloud.translation.v3beta1.TranslationService.GetSupportedLanguages", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "display_language_code", - "type": "TYPE_STRING" - }, - { - "name": "model", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.translation.v3beta1.SupportedLanguages", - "client": { - "shortName": "TranslationServiceClient", - "fullName": "google.cloud.translation.v3beta1.TranslationServiceClient" - }, - "method": { - "shortName": "GetSupportedLanguages", - "fullName": "google.cloud.translation.v3beta1.TranslationService.GetSupportedLanguages", - "service": { - "shortName": "TranslationService", - "fullName": "google.cloud.translation.v3beta1.TranslationService" - } - } - } - }, - { - "regionTag": "translate_v3beta1_generated_TranslationService_TranslateDocument_async", - "title": "TranslationService translateDocument Sample", - "origin": "API_DEFINITION", - "description": " Translates documents in synchronous mode.", - "canonical": true, - "file": "translation_service.translate_document.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 140, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TranslateDocument", - "fullName": "google.cloud.translation.v3beta1.TranslationService.TranslateDocument", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "source_language_code", - "type": "TYPE_STRING" - }, - { - "name": "target_language_code", - "type": "TYPE_STRING" - }, - { - "name": "document_input_config", - "type": ".google.cloud.translation.v3beta1.DocumentInputConfig" - }, - { - "name": "document_output_config", - "type": ".google.cloud.translation.v3beta1.DocumentOutputConfig" - }, - { - "name": "model", - "type": "TYPE_STRING" - }, - { - "name": "glossary_config", - "type": ".google.cloud.translation.v3beta1.TranslateTextGlossaryConfig" - }, - { - "name": "labels", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "customized_attribution", - "type": "TYPE_STRING" - }, - { - "name": "is_translate_native_pdf_only", - "type": "TYPE_BOOL" - }, - { - "name": "enable_shadow_removal_native_pdf", - "type": "TYPE_BOOL" - }, - { - "name": "enable_rotation_correction", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.translation.v3beta1.TranslateDocumentResponse", - "client": { - "shortName": "TranslationServiceClient", - "fullName": "google.cloud.translation.v3beta1.TranslationServiceClient" - }, - "method": { - "shortName": "TranslateDocument", - "fullName": "google.cloud.translation.v3beta1.TranslationService.TranslateDocument", - "service": { - "shortName": "TranslationService", - "fullName": "google.cloud.translation.v3beta1.TranslationService" - } - } - } - }, - { - "regionTag": "translate_v3beta1_generated_TranslationService_BatchTranslateText_async", - "title": "TranslationService batchTranslateText Sample", - "origin": "API_DEFINITION", - "description": " Translates a large volume of text in asynchronous batch mode. This function provides real-time output as the inputs are being processed. If caller cancels a request, the partial results (for an input file, it's all or nothing) may still be available on the specified output location. This call returns immediately and you can use google.longrunning.Operation.name to poll the status of the call.", - "canonical": true, - "file": "translation_service.batch_translate_text.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 115, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchTranslateText", - "fullName": "google.cloud.translation.v3beta1.TranslationService.BatchTranslateText", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "source_language_code", - "type": "TYPE_STRING" - }, - { - "name": "target_language_codes", - "type": "TYPE_STRING[]" - }, - { - "name": "models", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "input_configs", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "output_config", - "type": ".google.cloud.translation.v3beta1.OutputConfig" - }, - { - "name": "glossaries", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "labels", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TranslationServiceClient", - "fullName": "google.cloud.translation.v3beta1.TranslationServiceClient" - }, - "method": { - "shortName": "BatchTranslateText", - "fullName": "google.cloud.translation.v3beta1.TranslationService.BatchTranslateText", - "service": { - "shortName": "TranslationService", - "fullName": "google.cloud.translation.v3beta1.TranslationService" - } - } - } - }, - { - "regionTag": "translate_v3beta1_generated_TranslationService_BatchTranslateDocument_async", - "title": "TranslationService batchTranslateDocument Sample", - "origin": "API_DEFINITION", - "description": " Translates a large volume of document in asynchronous batch mode. This function provides real-time output as the inputs are being processed. If caller cancels a request, the partial results (for an input file, it's all or nothing) may still be available on the specified output location. This call returns immediately and you can use google.longrunning.Operation.name to poll the status of the call.", - "canonical": true, - "file": "translation_service.batch_translate_document.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 139, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchTranslateDocument", - "fullName": "google.cloud.translation.v3beta1.TranslationService.BatchTranslateDocument", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "source_language_code", - "type": "TYPE_STRING" - }, - { - "name": "target_language_codes", - "type": "TYPE_STRING[]" - }, - { - "name": "input_configs", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "output_config", - "type": ".google.cloud.translation.v3beta1.BatchDocumentOutputConfig" - }, - { - "name": "models", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "glossaries", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "format_conversions", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "customized_attribution", - "type": "TYPE_STRING" - }, - { - "name": "enable_shadow_removal_native_pdf", - "type": "TYPE_BOOL" - }, - { - "name": "enable_rotation_correction", - "type": "TYPE_BOOL" - }, - { - "name": "pdf_native_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TranslationServiceClient", - "fullName": "google.cloud.translation.v3beta1.TranslationServiceClient" - }, - "method": { - "shortName": "BatchTranslateDocument", - "fullName": "google.cloud.translation.v3beta1.TranslationService.BatchTranslateDocument", - "service": { - "shortName": "TranslationService", - "fullName": "google.cloud.translation.v3beta1.TranslationService" - } - } - } - }, - { - "regionTag": "translate_v3beta1_generated_TranslationService_CreateGlossary_async", - "title": "TranslationService createGlossary Sample", - "origin": "API_DEFINITION", - "description": " Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project doesn't exist.", - "canonical": true, - "file": "translation_service.create_glossary.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateGlossary", - "fullName": "google.cloud.translation.v3beta1.TranslationService.CreateGlossary", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "glossary", - "type": ".google.cloud.translation.v3beta1.Glossary" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TranslationServiceClient", - "fullName": "google.cloud.translation.v3beta1.TranslationServiceClient" - }, - "method": { - "shortName": "CreateGlossary", - "fullName": "google.cloud.translation.v3beta1.TranslationService.CreateGlossary", - "service": { - "shortName": "TranslationService", - "fullName": "google.cloud.translation.v3beta1.TranslationService" - } - } - } - }, - { - "regionTag": "translate_v3beta1_generated_TranslationService_ListGlossaries_async", - "title": "TranslationService listGlossaries Sample", - "origin": "API_DEFINITION", - "description": " Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist.", - "canonical": true, - "file": "translation_service.list_glossaries.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListGlossaries", - "fullName": "google.cloud.translation.v3beta1.TranslationService.ListGlossaries", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.translation.v3beta1.ListGlossariesResponse", - "client": { - "shortName": "TranslationServiceClient", - "fullName": "google.cloud.translation.v3beta1.TranslationServiceClient" - }, - "method": { - "shortName": "ListGlossaries", - "fullName": "google.cloud.translation.v3beta1.TranslationService.ListGlossaries", - "service": { - "shortName": "TranslationService", - "fullName": "google.cloud.translation.v3beta1.TranslationService" - } - } - } - }, - { - "regionTag": "translate_v3beta1_generated_TranslationService_GetGlossary_async", - "title": "TranslationService getGlossary Sample", - "origin": "API_DEFINITION", - "description": " Gets a glossary. Returns NOT_FOUND, if the glossary doesn't exist.", - "canonical": true, - "file": "translation_service.get_glossary.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetGlossary", - "fullName": "google.cloud.translation.v3beta1.TranslationService.GetGlossary", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.translation.v3beta1.Glossary", - "client": { - "shortName": "TranslationServiceClient", - "fullName": "google.cloud.translation.v3beta1.TranslationServiceClient" - }, - "method": { - "shortName": "GetGlossary", - "fullName": "google.cloud.translation.v3beta1.TranslationService.GetGlossary", - "service": { - "shortName": "TranslationService", - "fullName": "google.cloud.translation.v3beta1.TranslationService" - } - } - } - }, - { - "regionTag": "translate_v3beta1_generated_TranslationService_DeleteGlossary_async", - "title": "TranslationService deleteGlossary Sample", - "origin": "API_DEFINITION", - "description": " Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns NOT_FOUND, if the glossary doesn't exist.", - "canonical": true, - "file": "translation_service.delete_glossary.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteGlossary", - "fullName": "google.cloud.translation.v3beta1.TranslationService.DeleteGlossary", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "TranslationServiceClient", - "fullName": "google.cloud.translation.v3beta1.TranslationServiceClient" - }, - "method": { - "shortName": "DeleteGlossary", - "fullName": "google.cloud.translation.v3beta1.TranslationService.DeleteGlossary", - "service": { - "shortName": "TranslationService", - "fullName": "google.cloud.translation.v3beta1.TranslationService" - } - } - } - }, - { - "regionTag": "translate_v3beta1_generated_TranslationService_RefineText_async", - "title": "TranslationService refineText Sample", - "origin": "API_DEFINITION", - "description": " Refines the input translated text to improve the quality.", - "canonical": true, - "file": "translation_service.refine_text.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RefineText", - "fullName": "google.cloud.translation.v3beta1.TranslationService.RefineText", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "refinement_entries", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "source_language_code", - "type": "TYPE_STRING" - }, - { - "name": "target_language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.translation.v3beta1.RefineTextResponse", - "client": { - "shortName": "TranslationServiceClient", - "fullName": "google.cloud.translation.v3beta1.TranslationServiceClient" - }, - "method": { - "shortName": "RefineText", - "fullName": "google.cloud.translation.v3beta1.TranslationService.RefineText", - "service": { - "shortName": "TranslationService", - "fullName": "google.cloud.translation.v3beta1.TranslationService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-vectorsearch/samples/generated/v1/snippet_metadata_google.cloud.vectorsearch.v1.json b/packages/google-cloud-vectorsearch/samples/generated/v1/snippet_metadata_google.cloud.vectorsearch.v1.json deleted file mode 100644 index 900975e2887b..000000000000 --- a/packages/google-cloud-vectorsearch/samples/generated/v1/snippet_metadata_google.cloud.vectorsearch.v1.json +++ /dev/null @@ -1,1103 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-vectorsearch", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.vectorsearch.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "vectorsearch_v1_generated_DataObjectSearchService_SearchDataObjects_async", - "title": "DataObjectSearchService searchDataObjects Sample", - "origin": "API_DEFINITION", - "description": " Searches data objects.", - "canonical": true, - "file": "data_object_search_service.search_data_objects.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchDataObjects", - "fullName": "google.cloud.vectorsearch.v1.DataObjectSearchService.SearchDataObjects", - "async": true, - "parameters": [ - { - "name": "vector_search", - "type": ".google.cloud.vectorsearch.v1.VectorSearch" - }, - { - "name": "semantic_search", - "type": ".google.cloud.vectorsearch.v1.SemanticSearch" - }, - { - "name": "text_search", - "type": ".google.cloud.vectorsearch.v1.TextSearch" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vectorsearch.v1.SearchDataObjectsResponse", - "client": { - "shortName": "DataObjectSearchServiceClient", - "fullName": "google.cloud.vectorsearch.v1.DataObjectSearchServiceClient" - }, - "method": { - "shortName": "SearchDataObjects", - "fullName": "google.cloud.vectorsearch.v1.DataObjectSearchService.SearchDataObjects", - "service": { - "shortName": "DataObjectSearchService", - "fullName": "google.cloud.vectorsearch.v1.DataObjectSearchService" - } - } - } - }, - { - "regionTag": "vectorsearch_v1_generated_DataObjectSearchService_QueryDataObjects_async", - "title": "DataObjectSearchService queryDataObjects Sample", - "origin": "API_DEFINITION", - "description": " Queries data objects.", - "canonical": true, - "file": "data_object_search_service.query_data_objects.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryDataObjects", - "fullName": "google.cloud.vectorsearch.v1.DataObjectSearchService.QueryDataObjects", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": ".google.protobuf.Struct" - }, - { - "name": "output_fields", - "type": ".google.cloud.vectorsearch.v1.OutputFields" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vectorsearch.v1.QueryDataObjectsResponse", - "client": { - "shortName": "DataObjectSearchServiceClient", - "fullName": "google.cloud.vectorsearch.v1.DataObjectSearchServiceClient" - }, - "method": { - "shortName": "QueryDataObjects", - "fullName": "google.cloud.vectorsearch.v1.DataObjectSearchService.QueryDataObjects", - "service": { - "shortName": "DataObjectSearchService", - "fullName": "google.cloud.vectorsearch.v1.DataObjectSearchService" - } - } - } - }, - { - "regionTag": "vectorsearch_v1_generated_DataObjectSearchService_AggregateDataObjects_async", - "title": "DataObjectSearchService aggregateDataObjects Sample", - "origin": "API_DEFINITION", - "description": " Aggregates data objects.", - "canonical": true, - "file": "data_object_search_service.aggregate_data_objects.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregateDataObjects", - "fullName": "google.cloud.vectorsearch.v1.DataObjectSearchService.AggregateDataObjects", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": ".google.protobuf.Struct" - }, - { - "name": "aggregate", - "type": ".google.cloud.vectorsearch.v1.AggregationMethod" - } - ], - "resultType": ".google.cloud.vectorsearch.v1.AggregateDataObjectsResponse", - "client": { - "shortName": "DataObjectSearchServiceClient", - "fullName": "google.cloud.vectorsearch.v1.DataObjectSearchServiceClient" - }, - "method": { - "shortName": "AggregateDataObjects", - "fullName": "google.cloud.vectorsearch.v1.DataObjectSearchService.AggregateDataObjects", - "service": { - "shortName": "DataObjectSearchService", - "fullName": "google.cloud.vectorsearch.v1.DataObjectSearchService" - } - } - } - }, - { - "regionTag": "vectorsearch_v1_generated_DataObjectSearchService_BatchSearchDataObjects_async", - "title": "DataObjectSearchService batchSearchDataObjects Sample", - "origin": "API_DEFINITION", - "description": " Batch searches data objects.", - "canonical": true, - "file": "data_object_search_service.batch_search_data_objects.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchSearchDataObjects", - "fullName": "google.cloud.vectorsearch.v1.DataObjectSearchService.BatchSearchDataObjects", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "searches", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "combine", - "type": ".google.cloud.vectorsearch.v1.BatchSearchDataObjectsRequest.CombineResultsOptions" - } - ], - "resultType": ".google.cloud.vectorsearch.v1.BatchSearchDataObjectsResponse", - "client": { - "shortName": "DataObjectSearchServiceClient", - "fullName": "google.cloud.vectorsearch.v1.DataObjectSearchServiceClient" - }, - "method": { - "shortName": "BatchSearchDataObjects", - "fullName": "google.cloud.vectorsearch.v1.DataObjectSearchService.BatchSearchDataObjects", - "service": { - "shortName": "DataObjectSearchService", - "fullName": "google.cloud.vectorsearch.v1.DataObjectSearchService" - } - } - } - }, - { - "regionTag": "vectorsearch_v1_generated_DataObjectService_CreateDataObject_async", - "title": "DataObjectSearchService createDataObject Sample", - "origin": "API_DEFINITION", - "description": " Creates a dataObject.", - "canonical": true, - "file": "data_object_service.create_data_object.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDataObject", - "fullName": "google.cloud.vectorsearch.v1.DataObjectService.CreateDataObject", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "data_object_id", - "type": "TYPE_STRING" - }, - { - "name": "data_object", - "type": ".google.cloud.vectorsearch.v1.DataObject" - } - ], - "resultType": ".google.cloud.vectorsearch.v1.DataObject", - "client": { - "shortName": "DataObjectServiceClient", - "fullName": "google.cloud.vectorsearch.v1.DataObjectServiceClient" - }, - "method": { - "shortName": "CreateDataObject", - "fullName": "google.cloud.vectorsearch.v1.DataObjectService.CreateDataObject", - "service": { - "shortName": "DataObjectService", - "fullName": "google.cloud.vectorsearch.v1.DataObjectService" - } - } - } - }, - { - "regionTag": "vectorsearch_v1_generated_DataObjectService_BatchCreateDataObjects_async", - "title": "DataObjectSearchService batchCreateDataObjects Sample", - "origin": "API_DEFINITION", - "description": " Creates a batch of dataObjects.", - "canonical": true, - "file": "data_object_service.batch_create_data_objects.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCreateDataObjects", - "fullName": "google.cloud.vectorsearch.v1.DataObjectService.BatchCreateDataObjects", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.vectorsearch.v1.BatchCreateDataObjectsResponse", - "client": { - "shortName": "DataObjectServiceClient", - "fullName": "google.cloud.vectorsearch.v1.DataObjectServiceClient" - }, - "method": { - "shortName": "BatchCreateDataObjects", - "fullName": "google.cloud.vectorsearch.v1.DataObjectService.BatchCreateDataObjects", - "service": { - "shortName": "DataObjectService", - "fullName": "google.cloud.vectorsearch.v1.DataObjectService" - } - } - } - }, - { - "regionTag": "vectorsearch_v1_generated_DataObjectService_GetDataObject_async", - "title": "DataObjectSearchService getDataObject Sample", - "origin": "API_DEFINITION", - "description": " Gets a data object.", - "canonical": true, - "file": "data_object_service.get_data_object.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDataObject", - "fullName": "google.cloud.vectorsearch.v1.DataObjectService.GetDataObject", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vectorsearch.v1.DataObject", - "client": { - "shortName": "DataObjectServiceClient", - "fullName": "google.cloud.vectorsearch.v1.DataObjectServiceClient" - }, - "method": { - "shortName": "GetDataObject", - "fullName": "google.cloud.vectorsearch.v1.DataObjectService.GetDataObject", - "service": { - "shortName": "DataObjectService", - "fullName": "google.cloud.vectorsearch.v1.DataObjectService" - } - } - } - }, - { - "regionTag": "vectorsearch_v1_generated_DataObjectService_UpdateDataObject_async", - "title": "DataObjectSearchService updateDataObject Sample", - "origin": "API_DEFINITION", - "description": " Updates a dataObject.", - "canonical": true, - "file": "data_object_service.update_data_object.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDataObject", - "fullName": "google.cloud.vectorsearch.v1.DataObjectService.UpdateDataObject", - "async": true, - "parameters": [ - { - "name": "data_object", - "type": ".google.cloud.vectorsearch.v1.DataObject" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.vectorsearch.v1.DataObject", - "client": { - "shortName": "DataObjectServiceClient", - "fullName": "google.cloud.vectorsearch.v1.DataObjectServiceClient" - }, - "method": { - "shortName": "UpdateDataObject", - "fullName": "google.cloud.vectorsearch.v1.DataObjectService.UpdateDataObject", - "service": { - "shortName": "DataObjectService", - "fullName": "google.cloud.vectorsearch.v1.DataObjectService" - } - } - } - }, - { - "regionTag": "vectorsearch_v1_generated_DataObjectService_BatchUpdateDataObjects_async", - "title": "DataObjectSearchService batchUpdateDataObjects Sample", - "origin": "API_DEFINITION", - "description": " Updates dataObjects in a batch.", - "canonical": true, - "file": "data_object_service.batch_update_data_objects.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchUpdateDataObjects", - "fullName": "google.cloud.vectorsearch.v1.DataObjectService.BatchUpdateDataObjects", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.vectorsearch.v1.BatchUpdateDataObjectsResponse", - "client": { - "shortName": "DataObjectServiceClient", - "fullName": "google.cloud.vectorsearch.v1.DataObjectServiceClient" - }, - "method": { - "shortName": "BatchUpdateDataObjects", - "fullName": "google.cloud.vectorsearch.v1.DataObjectService.BatchUpdateDataObjects", - "service": { - "shortName": "DataObjectService", - "fullName": "google.cloud.vectorsearch.v1.DataObjectService" - } - } - } - }, - { - "regionTag": "vectorsearch_v1_generated_DataObjectService_DeleteDataObject_async", - "title": "DataObjectSearchService deleteDataObject Sample", - "origin": "API_DEFINITION", - "description": " Deletes a dataObject.", - "canonical": true, - "file": "data_object_service.delete_data_object.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDataObject", - "fullName": "google.cloud.vectorsearch.v1.DataObjectService.DeleteDataObject", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DataObjectServiceClient", - "fullName": "google.cloud.vectorsearch.v1.DataObjectServiceClient" - }, - "method": { - "shortName": "DeleteDataObject", - "fullName": "google.cloud.vectorsearch.v1.DataObjectService.DeleteDataObject", - "service": { - "shortName": "DataObjectService", - "fullName": "google.cloud.vectorsearch.v1.DataObjectService" - } - } - } - }, - { - "regionTag": "vectorsearch_v1_generated_DataObjectService_BatchDeleteDataObjects_async", - "title": "DataObjectSearchService batchDeleteDataObjects Sample", - "origin": "API_DEFINITION", - "description": " Deletes dataObjects in a batch.", - "canonical": true, - "file": "data_object_service.batch_delete_data_objects.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchDeleteDataObjects", - "fullName": "google.cloud.vectorsearch.v1.DataObjectService.BatchDeleteDataObjects", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DataObjectServiceClient", - "fullName": "google.cloud.vectorsearch.v1.DataObjectServiceClient" - }, - "method": { - "shortName": "BatchDeleteDataObjects", - "fullName": "google.cloud.vectorsearch.v1.DataObjectService.BatchDeleteDataObjects", - "service": { - "shortName": "DataObjectService", - "fullName": "google.cloud.vectorsearch.v1.DataObjectService" - } - } - } - }, - { - "regionTag": "vectorsearch_v1_generated_VectorSearchService_ListCollections_async", - "title": "DataObjectSearchService listCollections Sample", - "origin": "API_DEFINITION", - "description": " Lists Collections in a given project and location.", - "canonical": true, - "file": "vector_search_service.list_collections.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCollections", - "fullName": "google.cloud.vectorsearch.v1.VectorSearchService.ListCollections", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vectorsearch.v1.ListCollectionsResponse", - "client": { - "shortName": "VectorSearchServiceClient", - "fullName": "google.cloud.vectorsearch.v1.VectorSearchServiceClient" - }, - "method": { - "shortName": "ListCollections", - "fullName": "google.cloud.vectorsearch.v1.VectorSearchService.ListCollections", - "service": { - "shortName": "VectorSearchService", - "fullName": "google.cloud.vectorsearch.v1.VectorSearchService" - } - } - } - }, - { - "regionTag": "vectorsearch_v1_generated_VectorSearchService_GetCollection_async", - "title": "DataObjectSearchService getCollection Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Collection.", - "canonical": true, - "file": "vector_search_service.get_collection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCollection", - "fullName": "google.cloud.vectorsearch.v1.VectorSearchService.GetCollection", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vectorsearch.v1.Collection", - "client": { - "shortName": "VectorSearchServiceClient", - "fullName": "google.cloud.vectorsearch.v1.VectorSearchServiceClient" - }, - "method": { - "shortName": "GetCollection", - "fullName": "google.cloud.vectorsearch.v1.VectorSearchService.GetCollection", - "service": { - "shortName": "VectorSearchService", - "fullName": "google.cloud.vectorsearch.v1.VectorSearchService" - } - } - } - }, - { - "regionTag": "vectorsearch_v1_generated_VectorSearchService_CreateCollection_async", - "title": "DataObjectSearchService createCollection Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Collection in a given project and location.", - "canonical": true, - "file": "vector_search_service.create_collection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCollection", - "fullName": "google.cloud.vectorsearch.v1.VectorSearchService.CreateCollection", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "collection_id", - "type": "TYPE_STRING" - }, - { - "name": "collection", - "type": ".google.cloud.vectorsearch.v1.Collection" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VectorSearchServiceClient", - "fullName": "google.cloud.vectorsearch.v1.VectorSearchServiceClient" - }, - "method": { - "shortName": "CreateCollection", - "fullName": "google.cloud.vectorsearch.v1.VectorSearchService.CreateCollection", - "service": { - "shortName": "VectorSearchService", - "fullName": "google.cloud.vectorsearch.v1.VectorSearchService" - } - } - } - }, - { - "regionTag": "vectorsearch_v1_generated_VectorSearchService_UpdateCollection_async", - "title": "DataObjectSearchService updateCollection Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Collection.", - "canonical": true, - "file": "vector_search_service.update_collection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCollection", - "fullName": "google.cloud.vectorsearch.v1.VectorSearchService.UpdateCollection", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "collection", - "type": ".google.cloud.vectorsearch.v1.Collection" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VectorSearchServiceClient", - "fullName": "google.cloud.vectorsearch.v1.VectorSearchServiceClient" - }, - "method": { - "shortName": "UpdateCollection", - "fullName": "google.cloud.vectorsearch.v1.VectorSearchService.UpdateCollection", - "service": { - "shortName": "VectorSearchService", - "fullName": "google.cloud.vectorsearch.v1.VectorSearchService" - } - } - } - }, - { - "regionTag": "vectorsearch_v1_generated_VectorSearchService_DeleteCollection_async", - "title": "DataObjectSearchService deleteCollection Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Collection.", - "canonical": true, - "file": "vector_search_service.delete_collection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCollection", - "fullName": "google.cloud.vectorsearch.v1.VectorSearchService.DeleteCollection", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VectorSearchServiceClient", - "fullName": "google.cloud.vectorsearch.v1.VectorSearchServiceClient" - }, - "method": { - "shortName": "DeleteCollection", - "fullName": "google.cloud.vectorsearch.v1.VectorSearchService.DeleteCollection", - "service": { - "shortName": "VectorSearchService", - "fullName": "google.cloud.vectorsearch.v1.VectorSearchService" - } - } - } - }, - { - "regionTag": "vectorsearch_v1_generated_VectorSearchService_ListIndexes_async", - "title": "DataObjectSearchService listIndexes Sample", - "origin": "API_DEFINITION", - "description": " Lists Indexes in a given project and location.", - "canonical": true, - "file": "vector_search_service.list_indexes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListIndexes", - "fullName": "google.cloud.vectorsearch.v1.VectorSearchService.ListIndexes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vectorsearch.v1.ListIndexesResponse", - "client": { - "shortName": "VectorSearchServiceClient", - "fullName": "google.cloud.vectorsearch.v1.VectorSearchServiceClient" - }, - "method": { - "shortName": "ListIndexes", - "fullName": "google.cloud.vectorsearch.v1.VectorSearchService.ListIndexes", - "service": { - "shortName": "VectorSearchService", - "fullName": "google.cloud.vectorsearch.v1.VectorSearchService" - } - } - } - }, - { - "regionTag": "vectorsearch_v1_generated_VectorSearchService_GetIndex_async", - "title": "DataObjectSearchService getIndex Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Index.", - "canonical": true, - "file": "vector_search_service.get_index.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIndex", - "fullName": "google.cloud.vectorsearch.v1.VectorSearchService.GetIndex", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vectorsearch.v1.Index", - "client": { - "shortName": "VectorSearchServiceClient", - "fullName": "google.cloud.vectorsearch.v1.VectorSearchServiceClient" - }, - "method": { - "shortName": "GetIndex", - "fullName": "google.cloud.vectorsearch.v1.VectorSearchService.GetIndex", - "service": { - "shortName": "VectorSearchService", - "fullName": "google.cloud.vectorsearch.v1.VectorSearchService" - } - } - } - }, - { - "regionTag": "vectorsearch_v1_generated_VectorSearchService_CreateIndex_async", - "title": "DataObjectSearchService createIndex Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Index in a given project and location.", - "canonical": true, - "file": "vector_search_service.create_index.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateIndex", - "fullName": "google.cloud.vectorsearch.v1.VectorSearchService.CreateIndex", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "index_id", - "type": "TYPE_STRING" - }, - { - "name": "index", - "type": ".google.cloud.vectorsearch.v1.Index" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VectorSearchServiceClient", - "fullName": "google.cloud.vectorsearch.v1.VectorSearchServiceClient" - }, - "method": { - "shortName": "CreateIndex", - "fullName": "google.cloud.vectorsearch.v1.VectorSearchService.CreateIndex", - "service": { - "shortName": "VectorSearchService", - "fullName": "google.cloud.vectorsearch.v1.VectorSearchService" - } - } - } - }, - { - "regionTag": "vectorsearch_v1_generated_VectorSearchService_UpdateIndex_async", - "title": "DataObjectSearchService updateIndex Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Index.", - "canonical": true, - "file": "vector_search_service.update_index.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateIndex", - "fullName": "google.cloud.vectorsearch.v1.VectorSearchService.UpdateIndex", - "async": true, - "parameters": [ - { - "name": "index", - "type": ".google.cloud.vectorsearch.v1.Index" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VectorSearchServiceClient", - "fullName": "google.cloud.vectorsearch.v1.VectorSearchServiceClient" - }, - "method": { - "shortName": "UpdateIndex", - "fullName": "google.cloud.vectorsearch.v1.VectorSearchService.UpdateIndex", - "service": { - "shortName": "VectorSearchService", - "fullName": "google.cloud.vectorsearch.v1.VectorSearchService" - } - } - } - }, - { - "regionTag": "vectorsearch_v1_generated_VectorSearchService_DeleteIndex_async", - "title": "DataObjectSearchService deleteIndex Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Index.", - "canonical": true, - "file": "vector_search_service.delete_index.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteIndex", - "fullName": "google.cloud.vectorsearch.v1.VectorSearchService.DeleteIndex", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VectorSearchServiceClient", - "fullName": "google.cloud.vectorsearch.v1.VectorSearchServiceClient" - }, - "method": { - "shortName": "DeleteIndex", - "fullName": "google.cloud.vectorsearch.v1.VectorSearchService.DeleteIndex", - "service": { - "shortName": "VectorSearchService", - "fullName": "google.cloud.vectorsearch.v1.VectorSearchService" - } - } - } - }, - { - "regionTag": "vectorsearch_v1_generated_VectorSearchService_ImportDataObjects_async", - "title": "DataObjectSearchService importDataObjects Sample", - "origin": "API_DEFINITION", - "description": " Initiates a Long-Running Operation to import DataObjects into a Collection.", - "canonical": true, - "file": "vector_search_service.import_data_objects.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportDataObjects", - "fullName": "google.cloud.vectorsearch.v1.VectorSearchService.ImportDataObjects", - "async": true, - "parameters": [ - { - "name": "gcs_import", - "type": ".google.cloud.vectorsearch.v1.ImportDataObjectsRequest.GcsImportConfig" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VectorSearchServiceClient", - "fullName": "google.cloud.vectorsearch.v1.VectorSearchServiceClient" - }, - "method": { - "shortName": "ImportDataObjects", - "fullName": "google.cloud.vectorsearch.v1.VectorSearchService.ImportDataObjects", - "service": { - "shortName": "VectorSearchService", - "fullName": "google.cloud.vectorsearch.v1.VectorSearchService" - } - } - } - }, - { - "regionTag": "vectorsearch_v1_generated_VectorSearchService_ExportDataObjects_async", - "title": "DataObjectSearchService exportDataObjects Sample", - "origin": "API_DEFINITION", - "description": " Initiates a Long-Running Operation to export DataObjects from a Collection.", - "canonical": true, - "file": "vector_search_service.export_data_objects.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportDataObjects", - "fullName": "google.cloud.vectorsearch.v1.VectorSearchService.ExportDataObjects", - "async": true, - "parameters": [ - { - "name": "gcs_destination", - "type": ".google.cloud.vectorsearch.v1.ExportDataObjectsRequest.GcsExportDestination" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VectorSearchServiceClient", - "fullName": "google.cloud.vectorsearch.v1.VectorSearchServiceClient" - }, - "method": { - "shortName": "ExportDataObjects", - "fullName": "google.cloud.vectorsearch.v1.VectorSearchService.ExportDataObjects", - "service": { - "shortName": "VectorSearchService", - "fullName": "google.cloud.vectorsearch.v1.VectorSearchService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-vectorsearch/samples/generated/v1beta/snippet_metadata_google.cloud.vectorsearch.v1beta.json b/packages/google-cloud-vectorsearch/samples/generated/v1beta/snippet_metadata_google.cloud.vectorsearch.v1beta.json deleted file mode 100644 index 72365cb661da..000000000000 --- a/packages/google-cloud-vectorsearch/samples/generated/v1beta/snippet_metadata_google.cloud.vectorsearch.v1beta.json +++ /dev/null @@ -1,1103 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-vectorsearch", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.vectorsearch.v1beta", - "version": "v1beta" - } - ] - }, - "snippets": [ - { - "regionTag": "vectorsearch_v1beta_generated_DataObjectSearchService_SearchDataObjects_async", - "title": "DataObjectSearchService searchDataObjects Sample", - "origin": "API_DEFINITION", - "description": " Searches data objects.", - "canonical": true, - "file": "data_object_search_service.search_data_objects.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchDataObjects", - "fullName": "google.cloud.vectorsearch.v1beta.DataObjectSearchService.SearchDataObjects", - "async": true, - "parameters": [ - { - "name": "vector_search", - "type": ".google.cloud.vectorsearch.v1beta.VectorSearch" - }, - { - "name": "semantic_search", - "type": ".google.cloud.vectorsearch.v1beta.SemanticSearch" - }, - { - "name": "text_search", - "type": ".google.cloud.vectorsearch.v1beta.TextSearch" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vectorsearch.v1beta.SearchDataObjectsResponse", - "client": { - "shortName": "DataObjectSearchServiceClient", - "fullName": "google.cloud.vectorsearch.v1beta.DataObjectSearchServiceClient" - }, - "method": { - "shortName": "SearchDataObjects", - "fullName": "google.cloud.vectorsearch.v1beta.DataObjectSearchService.SearchDataObjects", - "service": { - "shortName": "DataObjectSearchService", - "fullName": "google.cloud.vectorsearch.v1beta.DataObjectSearchService" - } - } - } - }, - { - "regionTag": "vectorsearch_v1beta_generated_DataObjectSearchService_QueryDataObjects_async", - "title": "DataObjectSearchService queryDataObjects Sample", - "origin": "API_DEFINITION", - "description": " Queries data objects.", - "canonical": true, - "file": "data_object_search_service.query_data_objects.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "QueryDataObjects", - "fullName": "google.cloud.vectorsearch.v1beta.DataObjectSearchService.QueryDataObjects", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": ".google.protobuf.Struct" - }, - { - "name": "output_fields", - "type": ".google.cloud.vectorsearch.v1beta.OutputFields" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vectorsearch.v1beta.QueryDataObjectsResponse", - "client": { - "shortName": "DataObjectSearchServiceClient", - "fullName": "google.cloud.vectorsearch.v1beta.DataObjectSearchServiceClient" - }, - "method": { - "shortName": "QueryDataObjects", - "fullName": "google.cloud.vectorsearch.v1beta.DataObjectSearchService.QueryDataObjects", - "service": { - "shortName": "DataObjectSearchService", - "fullName": "google.cloud.vectorsearch.v1beta.DataObjectSearchService" - } - } - } - }, - { - "regionTag": "vectorsearch_v1beta_generated_DataObjectSearchService_AggregateDataObjects_async", - "title": "DataObjectSearchService aggregateDataObjects Sample", - "origin": "API_DEFINITION", - "description": " Aggregates data objects.", - "canonical": true, - "file": "data_object_search_service.aggregate_data_objects.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregateDataObjects", - "fullName": "google.cloud.vectorsearch.v1beta.DataObjectSearchService.AggregateDataObjects", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": ".google.protobuf.Struct" - }, - { - "name": "aggregate", - "type": ".google.cloud.vectorsearch.v1beta.AggregationMethod" - } - ], - "resultType": ".google.cloud.vectorsearch.v1beta.AggregateDataObjectsResponse", - "client": { - "shortName": "DataObjectSearchServiceClient", - "fullName": "google.cloud.vectorsearch.v1beta.DataObjectSearchServiceClient" - }, - "method": { - "shortName": "AggregateDataObjects", - "fullName": "google.cloud.vectorsearch.v1beta.DataObjectSearchService.AggregateDataObjects", - "service": { - "shortName": "DataObjectSearchService", - "fullName": "google.cloud.vectorsearch.v1beta.DataObjectSearchService" - } - } - } - }, - { - "regionTag": "vectorsearch_v1beta_generated_DataObjectSearchService_BatchSearchDataObjects_async", - "title": "DataObjectSearchService batchSearchDataObjects Sample", - "origin": "API_DEFINITION", - "description": " Batch searches data objects.", - "canonical": true, - "file": "data_object_search_service.batch_search_data_objects.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchSearchDataObjects", - "fullName": "google.cloud.vectorsearch.v1beta.DataObjectSearchService.BatchSearchDataObjects", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "searches", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "combine", - "type": ".google.cloud.vectorsearch.v1beta.BatchSearchDataObjectsRequest.CombineResultsOptions" - } - ], - "resultType": ".google.cloud.vectorsearch.v1beta.BatchSearchDataObjectsResponse", - "client": { - "shortName": "DataObjectSearchServiceClient", - "fullName": "google.cloud.vectorsearch.v1beta.DataObjectSearchServiceClient" - }, - "method": { - "shortName": "BatchSearchDataObjects", - "fullName": "google.cloud.vectorsearch.v1beta.DataObjectSearchService.BatchSearchDataObjects", - "service": { - "shortName": "DataObjectSearchService", - "fullName": "google.cloud.vectorsearch.v1beta.DataObjectSearchService" - } - } - } - }, - { - "regionTag": "vectorsearch_v1beta_generated_DataObjectService_CreateDataObject_async", - "title": "DataObjectSearchService createDataObject Sample", - "origin": "API_DEFINITION", - "description": " Creates a dataObject.", - "canonical": true, - "file": "data_object_service.create_data_object.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDataObject", - "fullName": "google.cloud.vectorsearch.v1beta.DataObjectService.CreateDataObject", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "data_object_id", - "type": "TYPE_STRING" - }, - { - "name": "data_object", - "type": ".google.cloud.vectorsearch.v1beta.DataObject" - } - ], - "resultType": ".google.cloud.vectorsearch.v1beta.DataObject", - "client": { - "shortName": "DataObjectServiceClient", - "fullName": "google.cloud.vectorsearch.v1beta.DataObjectServiceClient" - }, - "method": { - "shortName": "CreateDataObject", - "fullName": "google.cloud.vectorsearch.v1beta.DataObjectService.CreateDataObject", - "service": { - "shortName": "DataObjectService", - "fullName": "google.cloud.vectorsearch.v1beta.DataObjectService" - } - } - } - }, - { - "regionTag": "vectorsearch_v1beta_generated_DataObjectService_BatchCreateDataObjects_async", - "title": "DataObjectSearchService batchCreateDataObjects Sample", - "origin": "API_DEFINITION", - "description": " Creates a batch of dataObjects.", - "canonical": true, - "file": "data_object_service.batch_create_data_objects.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCreateDataObjects", - "fullName": "google.cloud.vectorsearch.v1beta.DataObjectService.BatchCreateDataObjects", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.vectorsearch.v1beta.BatchCreateDataObjectsResponse", - "client": { - "shortName": "DataObjectServiceClient", - "fullName": "google.cloud.vectorsearch.v1beta.DataObjectServiceClient" - }, - "method": { - "shortName": "BatchCreateDataObjects", - "fullName": "google.cloud.vectorsearch.v1beta.DataObjectService.BatchCreateDataObjects", - "service": { - "shortName": "DataObjectService", - "fullName": "google.cloud.vectorsearch.v1beta.DataObjectService" - } - } - } - }, - { - "regionTag": "vectorsearch_v1beta_generated_DataObjectService_GetDataObject_async", - "title": "DataObjectSearchService getDataObject Sample", - "origin": "API_DEFINITION", - "description": " Gets a data object.", - "canonical": true, - "file": "data_object_service.get_data_object.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDataObject", - "fullName": "google.cloud.vectorsearch.v1beta.DataObjectService.GetDataObject", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vectorsearch.v1beta.DataObject", - "client": { - "shortName": "DataObjectServiceClient", - "fullName": "google.cloud.vectorsearch.v1beta.DataObjectServiceClient" - }, - "method": { - "shortName": "GetDataObject", - "fullName": "google.cloud.vectorsearch.v1beta.DataObjectService.GetDataObject", - "service": { - "shortName": "DataObjectService", - "fullName": "google.cloud.vectorsearch.v1beta.DataObjectService" - } - } - } - }, - { - "regionTag": "vectorsearch_v1beta_generated_DataObjectService_UpdateDataObject_async", - "title": "DataObjectSearchService updateDataObject Sample", - "origin": "API_DEFINITION", - "description": " Updates a dataObject.", - "canonical": true, - "file": "data_object_service.update_data_object.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDataObject", - "fullName": "google.cloud.vectorsearch.v1beta.DataObjectService.UpdateDataObject", - "async": true, - "parameters": [ - { - "name": "data_object", - "type": ".google.cloud.vectorsearch.v1beta.DataObject" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.vectorsearch.v1beta.DataObject", - "client": { - "shortName": "DataObjectServiceClient", - "fullName": "google.cloud.vectorsearch.v1beta.DataObjectServiceClient" - }, - "method": { - "shortName": "UpdateDataObject", - "fullName": "google.cloud.vectorsearch.v1beta.DataObjectService.UpdateDataObject", - "service": { - "shortName": "DataObjectService", - "fullName": "google.cloud.vectorsearch.v1beta.DataObjectService" - } - } - } - }, - { - "regionTag": "vectorsearch_v1beta_generated_DataObjectService_BatchUpdateDataObjects_async", - "title": "DataObjectSearchService batchUpdateDataObjects Sample", - "origin": "API_DEFINITION", - "description": " Updates dataObjects in a batch.", - "canonical": true, - "file": "data_object_service.batch_update_data_objects.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchUpdateDataObjects", - "fullName": "google.cloud.vectorsearch.v1beta.DataObjectService.BatchUpdateDataObjects", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.vectorsearch.v1beta.BatchUpdateDataObjectsResponse", - "client": { - "shortName": "DataObjectServiceClient", - "fullName": "google.cloud.vectorsearch.v1beta.DataObjectServiceClient" - }, - "method": { - "shortName": "BatchUpdateDataObjects", - "fullName": "google.cloud.vectorsearch.v1beta.DataObjectService.BatchUpdateDataObjects", - "service": { - "shortName": "DataObjectService", - "fullName": "google.cloud.vectorsearch.v1beta.DataObjectService" - } - } - } - }, - { - "regionTag": "vectorsearch_v1beta_generated_DataObjectService_DeleteDataObject_async", - "title": "DataObjectSearchService deleteDataObject Sample", - "origin": "API_DEFINITION", - "description": " Deletes a dataObject.", - "canonical": true, - "file": "data_object_service.delete_data_object.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDataObject", - "fullName": "google.cloud.vectorsearch.v1beta.DataObjectService.DeleteDataObject", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DataObjectServiceClient", - "fullName": "google.cloud.vectorsearch.v1beta.DataObjectServiceClient" - }, - "method": { - "shortName": "DeleteDataObject", - "fullName": "google.cloud.vectorsearch.v1beta.DataObjectService.DeleteDataObject", - "service": { - "shortName": "DataObjectService", - "fullName": "google.cloud.vectorsearch.v1beta.DataObjectService" - } - } - } - }, - { - "regionTag": "vectorsearch_v1beta_generated_DataObjectService_BatchDeleteDataObjects_async", - "title": "DataObjectSearchService batchDeleteDataObjects Sample", - "origin": "API_DEFINITION", - "description": " Deletes dataObjects in a batch.", - "canonical": true, - "file": "data_object_service.batch_delete_data_objects.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchDeleteDataObjects", - "fullName": "google.cloud.vectorsearch.v1beta.DataObjectService.BatchDeleteDataObjects", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DataObjectServiceClient", - "fullName": "google.cloud.vectorsearch.v1beta.DataObjectServiceClient" - }, - "method": { - "shortName": "BatchDeleteDataObjects", - "fullName": "google.cloud.vectorsearch.v1beta.DataObjectService.BatchDeleteDataObjects", - "service": { - "shortName": "DataObjectService", - "fullName": "google.cloud.vectorsearch.v1beta.DataObjectService" - } - } - } - }, - { - "regionTag": "vectorsearch_v1beta_generated_VectorSearchService_ListCollections_async", - "title": "DataObjectSearchService listCollections Sample", - "origin": "API_DEFINITION", - "description": " Lists Collections in a given project and location.", - "canonical": true, - "file": "vector_search_service.list_collections.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCollections", - "fullName": "google.cloud.vectorsearch.v1beta.VectorSearchService.ListCollections", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vectorsearch.v1beta.ListCollectionsResponse", - "client": { - "shortName": "VectorSearchServiceClient", - "fullName": "google.cloud.vectorsearch.v1beta.VectorSearchServiceClient" - }, - "method": { - "shortName": "ListCollections", - "fullName": "google.cloud.vectorsearch.v1beta.VectorSearchService.ListCollections", - "service": { - "shortName": "VectorSearchService", - "fullName": "google.cloud.vectorsearch.v1beta.VectorSearchService" - } - } - } - }, - { - "regionTag": "vectorsearch_v1beta_generated_VectorSearchService_GetCollection_async", - "title": "DataObjectSearchService getCollection Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Collection.", - "canonical": true, - "file": "vector_search_service.get_collection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCollection", - "fullName": "google.cloud.vectorsearch.v1beta.VectorSearchService.GetCollection", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vectorsearch.v1beta.Collection", - "client": { - "shortName": "VectorSearchServiceClient", - "fullName": "google.cloud.vectorsearch.v1beta.VectorSearchServiceClient" - }, - "method": { - "shortName": "GetCollection", - "fullName": "google.cloud.vectorsearch.v1beta.VectorSearchService.GetCollection", - "service": { - "shortName": "VectorSearchService", - "fullName": "google.cloud.vectorsearch.v1beta.VectorSearchService" - } - } - } - }, - { - "regionTag": "vectorsearch_v1beta_generated_VectorSearchService_CreateCollection_async", - "title": "DataObjectSearchService createCollection Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Collection in a given project and location.", - "canonical": true, - "file": "vector_search_service.create_collection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCollection", - "fullName": "google.cloud.vectorsearch.v1beta.VectorSearchService.CreateCollection", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "collection_id", - "type": "TYPE_STRING" - }, - { - "name": "collection", - "type": ".google.cloud.vectorsearch.v1beta.Collection" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VectorSearchServiceClient", - "fullName": "google.cloud.vectorsearch.v1beta.VectorSearchServiceClient" - }, - "method": { - "shortName": "CreateCollection", - "fullName": "google.cloud.vectorsearch.v1beta.VectorSearchService.CreateCollection", - "service": { - "shortName": "VectorSearchService", - "fullName": "google.cloud.vectorsearch.v1beta.VectorSearchService" - } - } - } - }, - { - "regionTag": "vectorsearch_v1beta_generated_VectorSearchService_UpdateCollection_async", - "title": "DataObjectSearchService updateCollection Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Collection.", - "canonical": true, - "file": "vector_search_service.update_collection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCollection", - "fullName": "google.cloud.vectorsearch.v1beta.VectorSearchService.UpdateCollection", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "collection", - "type": ".google.cloud.vectorsearch.v1beta.Collection" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VectorSearchServiceClient", - "fullName": "google.cloud.vectorsearch.v1beta.VectorSearchServiceClient" - }, - "method": { - "shortName": "UpdateCollection", - "fullName": "google.cloud.vectorsearch.v1beta.VectorSearchService.UpdateCollection", - "service": { - "shortName": "VectorSearchService", - "fullName": "google.cloud.vectorsearch.v1beta.VectorSearchService" - } - } - } - }, - { - "regionTag": "vectorsearch_v1beta_generated_VectorSearchService_DeleteCollection_async", - "title": "DataObjectSearchService deleteCollection Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Collection.", - "canonical": true, - "file": "vector_search_service.delete_collection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCollection", - "fullName": "google.cloud.vectorsearch.v1beta.VectorSearchService.DeleteCollection", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VectorSearchServiceClient", - "fullName": "google.cloud.vectorsearch.v1beta.VectorSearchServiceClient" - }, - "method": { - "shortName": "DeleteCollection", - "fullName": "google.cloud.vectorsearch.v1beta.VectorSearchService.DeleteCollection", - "service": { - "shortName": "VectorSearchService", - "fullName": "google.cloud.vectorsearch.v1beta.VectorSearchService" - } - } - } - }, - { - "regionTag": "vectorsearch_v1beta_generated_VectorSearchService_ListIndexes_async", - "title": "DataObjectSearchService listIndexes Sample", - "origin": "API_DEFINITION", - "description": " Lists Indexes in a given project and location.", - "canonical": true, - "file": "vector_search_service.list_indexes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListIndexes", - "fullName": "google.cloud.vectorsearch.v1beta.VectorSearchService.ListIndexes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vectorsearch.v1beta.ListIndexesResponse", - "client": { - "shortName": "VectorSearchServiceClient", - "fullName": "google.cloud.vectorsearch.v1beta.VectorSearchServiceClient" - }, - "method": { - "shortName": "ListIndexes", - "fullName": "google.cloud.vectorsearch.v1beta.VectorSearchService.ListIndexes", - "service": { - "shortName": "VectorSearchService", - "fullName": "google.cloud.vectorsearch.v1beta.VectorSearchService" - } - } - } - }, - { - "regionTag": "vectorsearch_v1beta_generated_VectorSearchService_GetIndex_async", - "title": "DataObjectSearchService getIndex Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Index.", - "canonical": true, - "file": "vector_search_service.get_index.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIndex", - "fullName": "google.cloud.vectorsearch.v1beta.VectorSearchService.GetIndex", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vectorsearch.v1beta.Index", - "client": { - "shortName": "VectorSearchServiceClient", - "fullName": "google.cloud.vectorsearch.v1beta.VectorSearchServiceClient" - }, - "method": { - "shortName": "GetIndex", - "fullName": "google.cloud.vectorsearch.v1beta.VectorSearchService.GetIndex", - "service": { - "shortName": "VectorSearchService", - "fullName": "google.cloud.vectorsearch.v1beta.VectorSearchService" - } - } - } - }, - { - "regionTag": "vectorsearch_v1beta_generated_VectorSearchService_CreateIndex_async", - "title": "DataObjectSearchService createIndex Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Index in a given project and location.", - "canonical": true, - "file": "vector_search_service.create_index.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateIndex", - "fullName": "google.cloud.vectorsearch.v1beta.VectorSearchService.CreateIndex", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "index_id", - "type": "TYPE_STRING" - }, - { - "name": "index", - "type": ".google.cloud.vectorsearch.v1beta.Index" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VectorSearchServiceClient", - "fullName": "google.cloud.vectorsearch.v1beta.VectorSearchServiceClient" - }, - "method": { - "shortName": "CreateIndex", - "fullName": "google.cloud.vectorsearch.v1beta.VectorSearchService.CreateIndex", - "service": { - "shortName": "VectorSearchService", - "fullName": "google.cloud.vectorsearch.v1beta.VectorSearchService" - } - } - } - }, - { - "regionTag": "vectorsearch_v1beta_generated_VectorSearchService_UpdateIndex_async", - "title": "DataObjectSearchService updateIndex Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Index.", - "canonical": true, - "file": "vector_search_service.update_index.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateIndex", - "fullName": "google.cloud.vectorsearch.v1beta.VectorSearchService.UpdateIndex", - "async": true, - "parameters": [ - { - "name": "index", - "type": ".google.cloud.vectorsearch.v1beta.Index" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VectorSearchServiceClient", - "fullName": "google.cloud.vectorsearch.v1beta.VectorSearchServiceClient" - }, - "method": { - "shortName": "UpdateIndex", - "fullName": "google.cloud.vectorsearch.v1beta.VectorSearchService.UpdateIndex", - "service": { - "shortName": "VectorSearchService", - "fullName": "google.cloud.vectorsearch.v1beta.VectorSearchService" - } - } - } - }, - { - "regionTag": "vectorsearch_v1beta_generated_VectorSearchService_DeleteIndex_async", - "title": "DataObjectSearchService deleteIndex Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Index.", - "canonical": true, - "file": "vector_search_service.delete_index.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteIndex", - "fullName": "google.cloud.vectorsearch.v1beta.VectorSearchService.DeleteIndex", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VectorSearchServiceClient", - "fullName": "google.cloud.vectorsearch.v1beta.VectorSearchServiceClient" - }, - "method": { - "shortName": "DeleteIndex", - "fullName": "google.cloud.vectorsearch.v1beta.VectorSearchService.DeleteIndex", - "service": { - "shortName": "VectorSearchService", - "fullName": "google.cloud.vectorsearch.v1beta.VectorSearchService" - } - } - } - }, - { - "regionTag": "vectorsearch_v1beta_generated_VectorSearchService_ImportDataObjects_async", - "title": "DataObjectSearchService importDataObjects Sample", - "origin": "API_DEFINITION", - "description": " Initiates a Long-Running Operation to import DataObjects into a Collection.", - "canonical": true, - "file": "vector_search_service.import_data_objects.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportDataObjects", - "fullName": "google.cloud.vectorsearch.v1beta.VectorSearchService.ImportDataObjects", - "async": true, - "parameters": [ - { - "name": "gcs_import", - "type": ".google.cloud.vectorsearch.v1beta.ImportDataObjectsRequest.GcsImportConfig" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VectorSearchServiceClient", - "fullName": "google.cloud.vectorsearch.v1beta.VectorSearchServiceClient" - }, - "method": { - "shortName": "ImportDataObjects", - "fullName": "google.cloud.vectorsearch.v1beta.VectorSearchService.ImportDataObjects", - "service": { - "shortName": "VectorSearchService", - "fullName": "google.cloud.vectorsearch.v1beta.VectorSearchService" - } - } - } - }, - { - "regionTag": "vectorsearch_v1beta_generated_VectorSearchService_ExportDataObjects_async", - "title": "DataObjectSearchService exportDataObjects Sample", - "origin": "API_DEFINITION", - "description": " Initiates a Long-Running Operation to export DataObjects from a Collection.", - "canonical": true, - "file": "vector_search_service.export_data_objects.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportDataObjects", - "fullName": "google.cloud.vectorsearch.v1beta.VectorSearchService.ExportDataObjects", - "async": true, - "parameters": [ - { - "name": "gcs_destination", - "type": ".google.cloud.vectorsearch.v1beta.ExportDataObjectsRequest.GcsExportDestination" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VectorSearchServiceClient", - "fullName": "google.cloud.vectorsearch.v1beta.VectorSearchServiceClient" - }, - "method": { - "shortName": "ExportDataObjects", - "fullName": "google.cloud.vectorsearch.v1beta.VectorSearchService.ExportDataObjects", - "service": { - "shortName": "VectorSearchService", - "fullName": "google.cloud.vectorsearch.v1beta.VectorSearchService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-video-livestream/samples/generated/v1/snippet_metadata_google.cloud.video.livestream.v1.json b/packages/google-cloud-video-livestream/samples/generated/v1/snippet_metadata_google.cloud.video.livestream.v1.json deleted file mode 100644 index 9ac96b873003..000000000000 --- a/packages/google-cloud-video-livestream/samples/generated/v1/snippet_metadata_google.cloud.video.livestream.v1.json +++ /dev/null @@ -1,1627 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-livestream", - "version": "2.2.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.video.livestream.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "livestream_v1_generated_LivestreamService_CreateChannel_async", - "title": "LivestreamService createChannel Sample", - "origin": "API_DEFINITION", - "description": " Creates a channel with the provided unique ID in the specified region.", - "canonical": true, - "file": "livestream_service.create_channel.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateChannel", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.CreateChannel", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "channel", - "type": ".google.cloud.video.livestream.v1.Channel" - }, - { - "name": "channel_id", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "LivestreamServiceClient", - "fullName": "google.cloud.video.livestream.v1.LivestreamServiceClient" - }, - "method": { - "shortName": "CreateChannel", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.CreateChannel", - "service": { - "shortName": "LivestreamService", - "fullName": "google.cloud.video.livestream.v1.LivestreamService" - } - } - } - }, - { - "regionTag": "livestream_v1_generated_LivestreamService_ListChannels_async", - "title": "LivestreamService listChannels Sample", - "origin": "API_DEFINITION", - "description": " Returns a list of all channels in the specified region.", - "canonical": true, - "file": "livestream_service.list_channels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListChannels", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.ListChannels", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.video.livestream.v1.ListChannelsResponse", - "client": { - "shortName": "LivestreamServiceClient", - "fullName": "google.cloud.video.livestream.v1.LivestreamServiceClient" - }, - "method": { - "shortName": "ListChannels", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.ListChannels", - "service": { - "shortName": "LivestreamService", - "fullName": "google.cloud.video.livestream.v1.LivestreamService" - } - } - } - }, - { - "regionTag": "livestream_v1_generated_LivestreamService_GetChannel_async", - "title": "LivestreamService getChannel Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified channel.", - "canonical": true, - "file": "livestream_service.get_channel.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetChannel", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.GetChannel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.video.livestream.v1.Channel", - "client": { - "shortName": "LivestreamServiceClient", - "fullName": "google.cloud.video.livestream.v1.LivestreamServiceClient" - }, - "method": { - "shortName": "GetChannel", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.GetChannel", - "service": { - "shortName": "LivestreamService", - "fullName": "google.cloud.video.livestream.v1.LivestreamService" - } - } - } - }, - { - "regionTag": "livestream_v1_generated_LivestreamService_DeleteChannel_async", - "title": "LivestreamService deleteChannel Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified channel.", - "canonical": true, - "file": "livestream_service.delete_channel.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteChannel", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.DeleteChannel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "LivestreamServiceClient", - "fullName": "google.cloud.video.livestream.v1.LivestreamServiceClient" - }, - "method": { - "shortName": "DeleteChannel", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.DeleteChannel", - "service": { - "shortName": "LivestreamService", - "fullName": "google.cloud.video.livestream.v1.LivestreamService" - } - } - } - }, - { - "regionTag": "livestream_v1_generated_LivestreamService_UpdateChannel_async", - "title": "LivestreamService updateChannel Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified channel.", - "canonical": true, - "file": "livestream_service.update_channel.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 88, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateChannel", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.UpdateChannel", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "channel", - "type": ".google.cloud.video.livestream.v1.Channel" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "LivestreamServiceClient", - "fullName": "google.cloud.video.livestream.v1.LivestreamServiceClient" - }, - "method": { - "shortName": "UpdateChannel", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.UpdateChannel", - "service": { - "shortName": "LivestreamService", - "fullName": "google.cloud.video.livestream.v1.LivestreamService" - } - } - } - }, - { - "regionTag": "livestream_v1_generated_LivestreamService_StartChannel_async", - "title": "LivestreamService startChannel Sample", - "origin": "API_DEFINITION", - "description": " Starts the specified channel. Part of the video pipeline will be created only when the StartChannel request is received by the server.", - "canonical": true, - "file": "livestream_service.start_channel.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StartChannel", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.StartChannel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "LivestreamServiceClient", - "fullName": "google.cloud.video.livestream.v1.LivestreamServiceClient" - }, - "method": { - "shortName": "StartChannel", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.StartChannel", - "service": { - "shortName": "LivestreamService", - "fullName": "google.cloud.video.livestream.v1.LivestreamService" - } - } - } - }, - { - "regionTag": "livestream_v1_generated_LivestreamService_StopChannel_async", - "title": "LivestreamService stopChannel Sample", - "origin": "API_DEFINITION", - "description": " Stops the specified channel. Part of the video pipeline will be released when the StopChannel request is received by the server.", - "canonical": true, - "file": "livestream_service.stop_channel.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StopChannel", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.StopChannel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "LivestreamServiceClient", - "fullName": "google.cloud.video.livestream.v1.LivestreamServiceClient" - }, - "method": { - "shortName": "StopChannel", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.StopChannel", - "service": { - "shortName": "LivestreamService", - "fullName": "google.cloud.video.livestream.v1.LivestreamService" - } - } - } - }, - { - "regionTag": "livestream_v1_generated_LivestreamService_StartDistribution_async", - "title": "LivestreamService startDistribution Sample", - "origin": "API_DEFINITION", - "description": " Starts distribution which delivers outputs to the destination indicated by the Distribution configuration.", - "canonical": true, - "file": "livestream_service.start_distribution.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StartDistribution", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.StartDistribution", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "distribution_keys", - "type": "TYPE_STRING[]" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "LivestreamServiceClient", - "fullName": "google.cloud.video.livestream.v1.LivestreamServiceClient" - }, - "method": { - "shortName": "StartDistribution", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.StartDistribution", - "service": { - "shortName": "LivestreamService", - "fullName": "google.cloud.video.livestream.v1.LivestreamService" - } - } - } - }, - { - "regionTag": "livestream_v1_generated_LivestreamService_StopDistribution_async", - "title": "LivestreamService stopDistribution Sample", - "origin": "API_DEFINITION", - "description": " Stops the specified distribution.", - "canonical": true, - "file": "livestream_service.stop_distribution.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StopDistribution", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.StopDistribution", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "distribution_keys", - "type": "TYPE_STRING[]" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "LivestreamServiceClient", - "fullName": "google.cloud.video.livestream.v1.LivestreamServiceClient" - }, - "method": { - "shortName": "StopDistribution", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.StopDistribution", - "service": { - "shortName": "LivestreamService", - "fullName": "google.cloud.video.livestream.v1.LivestreamService" - } - } - } - }, - { - "regionTag": "livestream_v1_generated_LivestreamService_CreateInput_async", - "title": "LivestreamService createInput Sample", - "origin": "API_DEFINITION", - "description": " Creates an input with the provided unique ID in the specified region.", - "canonical": true, - "file": "livestream_service.create_input.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateInput", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.CreateInput", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "input", - "type": ".google.cloud.video.livestream.v1.Input" - }, - { - "name": "input_id", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "LivestreamServiceClient", - "fullName": "google.cloud.video.livestream.v1.LivestreamServiceClient" - }, - "method": { - "shortName": "CreateInput", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.CreateInput", - "service": { - "shortName": "LivestreamService", - "fullName": "google.cloud.video.livestream.v1.LivestreamService" - } - } - } - }, - { - "regionTag": "livestream_v1_generated_LivestreamService_ListInputs_async", - "title": "LivestreamService listInputs Sample", - "origin": "API_DEFINITION", - "description": " Returns a list of all inputs in the specified region.", - "canonical": true, - "file": "livestream_service.list_inputs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListInputs", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.ListInputs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.video.livestream.v1.ListInputsResponse", - "client": { - "shortName": "LivestreamServiceClient", - "fullName": "google.cloud.video.livestream.v1.LivestreamServiceClient" - }, - "method": { - "shortName": "ListInputs", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.ListInputs", - "service": { - "shortName": "LivestreamService", - "fullName": "google.cloud.video.livestream.v1.LivestreamService" - } - } - } - }, - { - "regionTag": "livestream_v1_generated_LivestreamService_GetInput_async", - "title": "LivestreamService getInput Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified input.", - "canonical": true, - "file": "livestream_service.get_input.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetInput", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.GetInput", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.video.livestream.v1.Input", - "client": { - "shortName": "LivestreamServiceClient", - "fullName": "google.cloud.video.livestream.v1.LivestreamServiceClient" - }, - "method": { - "shortName": "GetInput", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.GetInput", - "service": { - "shortName": "LivestreamService", - "fullName": "google.cloud.video.livestream.v1.LivestreamService" - } - } - } - }, - { - "regionTag": "livestream_v1_generated_LivestreamService_DeleteInput_async", - "title": "LivestreamService deleteInput Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified input.", - "canonical": true, - "file": "livestream_service.delete_input.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteInput", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.DeleteInput", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "LivestreamServiceClient", - "fullName": "google.cloud.video.livestream.v1.LivestreamServiceClient" - }, - "method": { - "shortName": "DeleteInput", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.DeleteInput", - "service": { - "shortName": "LivestreamService", - "fullName": "google.cloud.video.livestream.v1.LivestreamService" - } - } - } - }, - { - "regionTag": "livestream_v1_generated_LivestreamService_UpdateInput_async", - "title": "LivestreamService updateInput Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified input.", - "canonical": true, - "file": "livestream_service.update_input.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateInput", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.UpdateInput", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "input", - "type": ".google.cloud.video.livestream.v1.Input" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "LivestreamServiceClient", - "fullName": "google.cloud.video.livestream.v1.LivestreamServiceClient" - }, - "method": { - "shortName": "UpdateInput", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.UpdateInput", - "service": { - "shortName": "LivestreamService", - "fullName": "google.cloud.video.livestream.v1.LivestreamService" - } - } - } - }, - { - "regionTag": "livestream_v1_generated_LivestreamService_PreviewInput_async", - "title": "LivestreamService previewInput Sample", - "origin": "API_DEFINITION", - "description": " Preview the streaming content of the specified input.", - "canonical": true, - "file": "livestream_service.preview_input.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PreviewInput", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.PreviewInput", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.video.livestream.v1.PreviewInputResponse", - "client": { - "shortName": "LivestreamServiceClient", - "fullName": "google.cloud.video.livestream.v1.LivestreamServiceClient" - }, - "method": { - "shortName": "PreviewInput", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.PreviewInput", - "service": { - "shortName": "LivestreamService", - "fullName": "google.cloud.video.livestream.v1.LivestreamService" - } - } - } - }, - { - "regionTag": "livestream_v1_generated_LivestreamService_CreateEvent_async", - "title": "LivestreamService createEvent Sample", - "origin": "API_DEFINITION", - "description": " Creates an event with the provided unique ID in the specified channel.", - "canonical": true, - "file": "livestream_service.create_event.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateEvent", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.CreateEvent", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "event", - "type": ".google.cloud.video.livestream.v1.Event" - }, - { - "name": "event_id", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.video.livestream.v1.Event", - "client": { - "shortName": "LivestreamServiceClient", - "fullName": "google.cloud.video.livestream.v1.LivestreamServiceClient" - }, - "method": { - "shortName": "CreateEvent", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.CreateEvent", - "service": { - "shortName": "LivestreamService", - "fullName": "google.cloud.video.livestream.v1.LivestreamService" - } - } - } - }, - { - "regionTag": "livestream_v1_generated_LivestreamService_ListEvents_async", - "title": "LivestreamService listEvents Sample", - "origin": "API_DEFINITION", - "description": " Returns a list of all events in the specified channel.", - "canonical": true, - "file": "livestream_service.list_events.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEvents", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.ListEvents", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.video.livestream.v1.ListEventsResponse", - "client": { - "shortName": "LivestreamServiceClient", - "fullName": "google.cloud.video.livestream.v1.LivestreamServiceClient" - }, - "method": { - "shortName": "ListEvents", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.ListEvents", - "service": { - "shortName": "LivestreamService", - "fullName": "google.cloud.video.livestream.v1.LivestreamService" - } - } - } - }, - { - "regionTag": "livestream_v1_generated_LivestreamService_GetEvent_async", - "title": "LivestreamService getEvent Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified event.", - "canonical": true, - "file": "livestream_service.get_event.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEvent", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.GetEvent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.video.livestream.v1.Event", - "client": { - "shortName": "LivestreamServiceClient", - "fullName": "google.cloud.video.livestream.v1.LivestreamServiceClient" - }, - "method": { - "shortName": "GetEvent", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.GetEvent", - "service": { - "shortName": "LivestreamService", - "fullName": "google.cloud.video.livestream.v1.LivestreamService" - } - } - } - }, - { - "regionTag": "livestream_v1_generated_LivestreamService_DeleteEvent_async", - "title": "LivestreamService deleteEvent Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified event.", - "canonical": true, - "file": "livestream_service.delete_event.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteEvent", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.DeleteEvent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "LivestreamServiceClient", - "fullName": "google.cloud.video.livestream.v1.LivestreamServiceClient" - }, - "method": { - "shortName": "DeleteEvent", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.DeleteEvent", - "service": { - "shortName": "LivestreamService", - "fullName": "google.cloud.video.livestream.v1.LivestreamService" - } - } - } - }, - { - "regionTag": "livestream_v1_generated_LivestreamService_ListClips_async", - "title": "LivestreamService listClips Sample", - "origin": "API_DEFINITION", - "description": " Returns a list of all clips in the specified channel.", - "canonical": true, - "file": "livestream_service.list_clips.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListClips", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.ListClips", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.video.livestream.v1.ListClipsResponse", - "client": { - "shortName": "LivestreamServiceClient", - "fullName": "google.cloud.video.livestream.v1.LivestreamServiceClient" - }, - "method": { - "shortName": "ListClips", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.ListClips", - "service": { - "shortName": "LivestreamService", - "fullName": "google.cloud.video.livestream.v1.LivestreamService" - } - } - } - }, - { - "regionTag": "livestream_v1_generated_LivestreamService_GetClip_async", - "title": "LivestreamService getClip Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified clip.", - "canonical": true, - "file": "livestream_service.get_clip.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetClip", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.GetClip", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.video.livestream.v1.Clip", - "client": { - "shortName": "LivestreamServiceClient", - "fullName": "google.cloud.video.livestream.v1.LivestreamServiceClient" - }, - "method": { - "shortName": "GetClip", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.GetClip", - "service": { - "shortName": "LivestreamService", - "fullName": "google.cloud.video.livestream.v1.LivestreamService" - } - } - } - }, - { - "regionTag": "livestream_v1_generated_LivestreamService_CreateClip_async", - "title": "LivestreamService createClip Sample", - "origin": "API_DEFINITION", - "description": " Creates a clip with the provided clip ID in the specified channel.", - "canonical": true, - "file": "livestream_service.create_clip.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateClip", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.CreateClip", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "clip_id", - "type": "TYPE_STRING" - }, - { - "name": "clip", - "type": ".google.cloud.video.livestream.v1.Clip" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "LivestreamServiceClient", - "fullName": "google.cloud.video.livestream.v1.LivestreamServiceClient" - }, - "method": { - "shortName": "CreateClip", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.CreateClip", - "service": { - "shortName": "LivestreamService", - "fullName": "google.cloud.video.livestream.v1.LivestreamService" - } - } - } - }, - { - "regionTag": "livestream_v1_generated_LivestreamService_DeleteClip_async", - "title": "LivestreamService deleteClip Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified clip job resource. This method only deletes the clip job and does not delete the VOD clip stored in Cloud Storage.", - "canonical": true, - "file": "livestream_service.delete_clip.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteClip", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.DeleteClip", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "LivestreamServiceClient", - "fullName": "google.cloud.video.livestream.v1.LivestreamServiceClient" - }, - "method": { - "shortName": "DeleteClip", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.DeleteClip", - "service": { - "shortName": "LivestreamService", - "fullName": "google.cloud.video.livestream.v1.LivestreamService" - } - } - } - }, - { - "regionTag": "livestream_v1_generated_LivestreamService_CreateDvrSession_async", - "title": "LivestreamService createDvrSession Sample", - "origin": "API_DEFINITION", - "description": " Creates a DVR session with the provided unique ID in the specified channel.", - "canonical": true, - "file": "livestream_service.create_dvr_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDvrSession", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.CreateDvrSession", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "dvr_session_id", - "type": "TYPE_STRING" - }, - { - "name": "dvr_session", - "type": ".google.cloud.video.livestream.v1.DvrSession" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "LivestreamServiceClient", - "fullName": "google.cloud.video.livestream.v1.LivestreamServiceClient" - }, - "method": { - "shortName": "CreateDvrSession", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.CreateDvrSession", - "service": { - "shortName": "LivestreamService", - "fullName": "google.cloud.video.livestream.v1.LivestreamService" - } - } - } - }, - { - "regionTag": "livestream_v1_generated_LivestreamService_ListDvrSessions_async", - "title": "LivestreamService listDvrSessions Sample", - "origin": "API_DEFINITION", - "description": " Returns a list of all DVR sessions in the specified channel.", - "canonical": true, - "file": "livestream_service.list_dvr_sessions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDvrSessions", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.ListDvrSessions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.video.livestream.v1.ListDvrSessionsResponse", - "client": { - "shortName": "LivestreamServiceClient", - "fullName": "google.cloud.video.livestream.v1.LivestreamServiceClient" - }, - "method": { - "shortName": "ListDvrSessions", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.ListDvrSessions", - "service": { - "shortName": "LivestreamService", - "fullName": "google.cloud.video.livestream.v1.LivestreamService" - } - } - } - }, - { - "regionTag": "livestream_v1_generated_LivestreamService_GetDvrSession_async", - "title": "LivestreamService getDvrSession Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified DVR session.", - "canonical": true, - "file": "livestream_service.get_dvr_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDvrSession", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.GetDvrSession", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.video.livestream.v1.DvrSession", - "client": { - "shortName": "LivestreamServiceClient", - "fullName": "google.cloud.video.livestream.v1.LivestreamServiceClient" - }, - "method": { - "shortName": "GetDvrSession", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.GetDvrSession", - "service": { - "shortName": "LivestreamService", - "fullName": "google.cloud.video.livestream.v1.LivestreamService" - } - } - } - }, - { - "regionTag": "livestream_v1_generated_LivestreamService_DeleteDvrSession_async", - "title": "LivestreamService deleteDvrSession Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified DVR session.", - "canonical": true, - "file": "livestream_service.delete_dvr_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDvrSession", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.DeleteDvrSession", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "LivestreamServiceClient", - "fullName": "google.cloud.video.livestream.v1.LivestreamServiceClient" - }, - "method": { - "shortName": "DeleteDvrSession", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.DeleteDvrSession", - "service": { - "shortName": "LivestreamService", - "fullName": "google.cloud.video.livestream.v1.LivestreamService" - } - } - } - }, - { - "regionTag": "livestream_v1_generated_LivestreamService_UpdateDvrSession_async", - "title": "LivestreamService updateDvrSession Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified DVR session.", - "canonical": true, - "file": "livestream_service.update_dvr_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDvrSession", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.UpdateDvrSession", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "dvr_session", - "type": ".google.cloud.video.livestream.v1.DvrSession" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "LivestreamServiceClient", - "fullName": "google.cloud.video.livestream.v1.LivestreamServiceClient" - }, - "method": { - "shortName": "UpdateDvrSession", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.UpdateDvrSession", - "service": { - "shortName": "LivestreamService", - "fullName": "google.cloud.video.livestream.v1.LivestreamService" - } - } - } - }, - { - "regionTag": "livestream_v1_generated_LivestreamService_CreateAsset_async", - "title": "LivestreamService createAsset Sample", - "origin": "API_DEFINITION", - "description": " Creates a Asset with the provided unique ID in the specified region.", - "canonical": true, - "file": "livestream_service.create_asset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAsset", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.CreateAsset", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "asset", - "type": ".google.cloud.video.livestream.v1.Asset" - }, - { - "name": "asset_id", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "LivestreamServiceClient", - "fullName": "google.cloud.video.livestream.v1.LivestreamServiceClient" - }, - "method": { - "shortName": "CreateAsset", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.CreateAsset", - "service": { - "shortName": "LivestreamService", - "fullName": "google.cloud.video.livestream.v1.LivestreamService" - } - } - } - }, - { - "regionTag": "livestream_v1_generated_LivestreamService_DeleteAsset_async", - "title": "LivestreamService deleteAsset Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified asset if it is not used.", - "canonical": true, - "file": "livestream_service.delete_asset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAsset", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.DeleteAsset", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "LivestreamServiceClient", - "fullName": "google.cloud.video.livestream.v1.LivestreamServiceClient" - }, - "method": { - "shortName": "DeleteAsset", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.DeleteAsset", - "service": { - "shortName": "LivestreamService", - "fullName": "google.cloud.video.livestream.v1.LivestreamService" - } - } - } - }, - { - "regionTag": "livestream_v1_generated_LivestreamService_GetAsset_async", - "title": "LivestreamService getAsset Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified asset.", - "canonical": true, - "file": "livestream_service.get_asset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAsset", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.GetAsset", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.video.livestream.v1.Asset", - "client": { - "shortName": "LivestreamServiceClient", - "fullName": "google.cloud.video.livestream.v1.LivestreamServiceClient" - }, - "method": { - "shortName": "GetAsset", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.GetAsset", - "service": { - "shortName": "LivestreamService", - "fullName": "google.cloud.video.livestream.v1.LivestreamService" - } - } - } - }, - { - "regionTag": "livestream_v1_generated_LivestreamService_ListAssets_async", - "title": "LivestreamService listAssets Sample", - "origin": "API_DEFINITION", - "description": " Returns a list of all assets in the specified region.", - "canonical": true, - "file": "livestream_service.list_assets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAssets", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.ListAssets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.video.livestream.v1.ListAssetsResponse", - "client": { - "shortName": "LivestreamServiceClient", - "fullName": "google.cloud.video.livestream.v1.LivestreamServiceClient" - }, - "method": { - "shortName": "ListAssets", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.ListAssets", - "service": { - "shortName": "LivestreamService", - "fullName": "google.cloud.video.livestream.v1.LivestreamService" - } - } - } - }, - { - "regionTag": "livestream_v1_generated_LivestreamService_GetPool_async", - "title": "LivestreamService getPool Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified pool.", - "canonical": true, - "file": "livestream_service.get_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPool", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.GetPool", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.video.livestream.v1.Pool", - "client": { - "shortName": "LivestreamServiceClient", - "fullName": "google.cloud.video.livestream.v1.LivestreamServiceClient" - }, - "method": { - "shortName": "GetPool", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.GetPool", - "service": { - "shortName": "LivestreamService", - "fullName": "google.cloud.video.livestream.v1.LivestreamService" - } - } - } - }, - { - "regionTag": "livestream_v1_generated_LivestreamService_UpdatePool_async", - "title": "LivestreamService updatePool Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified pool.", - "canonical": true, - "file": "livestream_service.update_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdatePool", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.UpdatePool", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "pool", - "type": ".google.cloud.video.livestream.v1.Pool" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "LivestreamServiceClient", - "fullName": "google.cloud.video.livestream.v1.LivestreamServiceClient" - }, - "method": { - "shortName": "UpdatePool", - "fullName": "google.cloud.video.livestream.v1.LivestreamService.UpdatePool", - "service": { - "shortName": "LivestreamService", - "fullName": "google.cloud.video.livestream.v1.LivestreamService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-video-stitcher/samples/generated/v1/snippet_metadata_google.cloud.video.stitcher.v1.json b/packages/google-cloud-video-stitcher/samples/generated/v1/snippet_metadata_google.cloud.video.stitcher.v1.json deleted file mode 100644 index 343f89e181f8..000000000000 --- a/packages/google-cloud-video-stitcher/samples/generated/v1/snippet_metadata_google.cloud.video.stitcher.v1.json +++ /dev/null @@ -1,1371 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-stitcher", - "version": "3.2.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.video.stitcher.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "videostitcher_v1_generated_VideoStitcherService_CreateCdnKey_async", - "title": "VideoStitcherService createCdnKey Sample", - "origin": "API_DEFINITION", - "description": " Creates a new CDN key.", - "canonical": true, - "file": "video_stitcher_service.create_cdn_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCdnKey", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.CreateCdnKey", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "cdn_key", - "type": ".google.cloud.video.stitcher.v1.CdnKey" - }, - { - "name": "cdn_key_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VideoStitcherServiceClient", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherServiceClient" - }, - "method": { - "shortName": "CreateCdnKey", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.CreateCdnKey", - "service": { - "shortName": "VideoStitcherService", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService" - } - } - } - }, - { - "regionTag": "videostitcher_v1_generated_VideoStitcherService_ListCdnKeys_async", - "title": "VideoStitcherService listCdnKeys Sample", - "origin": "API_DEFINITION", - "description": " Lists all CDN keys in the specified project and location.", - "canonical": true, - "file": "video_stitcher_service.list_cdn_keys.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCdnKeys", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.ListCdnKeys", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.video.stitcher.v1.ListCdnKeysResponse", - "client": { - "shortName": "VideoStitcherServiceClient", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherServiceClient" - }, - "method": { - "shortName": "ListCdnKeys", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.ListCdnKeys", - "service": { - "shortName": "VideoStitcherService", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService" - } - } - } - }, - { - "regionTag": "videostitcher_v1_generated_VideoStitcherService_GetCdnKey_async", - "title": "VideoStitcherService getCdnKey Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified CDN key.", - "canonical": true, - "file": "video_stitcher_service.get_cdn_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCdnKey", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.GetCdnKey", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.video.stitcher.v1.CdnKey", - "client": { - "shortName": "VideoStitcherServiceClient", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherServiceClient" - }, - "method": { - "shortName": "GetCdnKey", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.GetCdnKey", - "service": { - "shortName": "VideoStitcherService", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService" - } - } - } - }, - { - "regionTag": "videostitcher_v1_generated_VideoStitcherService_DeleteCdnKey_async", - "title": "VideoStitcherService deleteCdnKey Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified CDN key.", - "canonical": true, - "file": "video_stitcher_service.delete_cdn_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCdnKey", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.DeleteCdnKey", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VideoStitcherServiceClient", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherServiceClient" - }, - "method": { - "shortName": "DeleteCdnKey", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.DeleteCdnKey", - "service": { - "shortName": "VideoStitcherService", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService" - } - } - } - }, - { - "regionTag": "videostitcher_v1_generated_VideoStitcherService_UpdateCdnKey_async", - "title": "VideoStitcherService updateCdnKey Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified CDN key. Only update fields specified in the call method body.", - "canonical": true, - "file": "video_stitcher_service.update_cdn_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCdnKey", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.UpdateCdnKey", - "async": true, - "parameters": [ - { - "name": "cdn_key", - "type": ".google.cloud.video.stitcher.v1.CdnKey" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VideoStitcherServiceClient", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherServiceClient" - }, - "method": { - "shortName": "UpdateCdnKey", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.UpdateCdnKey", - "service": { - "shortName": "VideoStitcherService", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService" - } - } - } - }, - { - "regionTag": "videostitcher_v1_generated_VideoStitcherService_CreateVodSession_async", - "title": "VideoStitcherService createVodSession Sample", - "origin": "API_DEFINITION", - "description": " Creates a client side playback VOD session and returns the full tracking and playback metadata of the session.", - "canonical": true, - "file": "video_stitcher_service.create_vod_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateVodSession", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.CreateVodSession", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "vod_session", - "type": ".google.cloud.video.stitcher.v1.VodSession" - } - ], - "resultType": ".google.cloud.video.stitcher.v1.VodSession", - "client": { - "shortName": "VideoStitcherServiceClient", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherServiceClient" - }, - "method": { - "shortName": "CreateVodSession", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.CreateVodSession", - "service": { - "shortName": "VideoStitcherService", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService" - } - } - } - }, - { - "regionTag": "videostitcher_v1_generated_VideoStitcherService_GetVodSession_async", - "title": "VideoStitcherService getVodSession Sample", - "origin": "API_DEFINITION", - "description": " Returns the full tracking, playback metadata, and relevant ad-ops logs for the specified VOD session.", - "canonical": true, - "file": "video_stitcher_service.get_vod_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetVodSession", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.GetVodSession", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.video.stitcher.v1.VodSession", - "client": { - "shortName": "VideoStitcherServiceClient", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherServiceClient" - }, - "method": { - "shortName": "GetVodSession", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.GetVodSession", - "service": { - "shortName": "VideoStitcherService", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService" - } - } - } - }, - { - "regionTag": "videostitcher_v1_generated_VideoStitcherService_ListVodStitchDetails_async", - "title": "VideoStitcherService listVodStitchDetails Sample", - "origin": "API_DEFINITION", - "description": " Returns a list of detailed stitching information of the specified VOD session.", - "canonical": true, - "file": "video_stitcher_service.list_vod_stitch_details.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListVodStitchDetails", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.ListVodStitchDetails", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.video.stitcher.v1.ListVodStitchDetailsResponse", - "client": { - "shortName": "VideoStitcherServiceClient", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherServiceClient" - }, - "method": { - "shortName": "ListVodStitchDetails", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.ListVodStitchDetails", - "service": { - "shortName": "VideoStitcherService", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService" - } - } - } - }, - { - "regionTag": "videostitcher_v1_generated_VideoStitcherService_GetVodStitchDetail_async", - "title": "VideoStitcherService getVodStitchDetail Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified stitching information for the specified VOD session.", - "canonical": true, - "file": "video_stitcher_service.get_vod_stitch_detail.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetVodStitchDetail", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.GetVodStitchDetail", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.video.stitcher.v1.VodStitchDetail", - "client": { - "shortName": "VideoStitcherServiceClient", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherServiceClient" - }, - "method": { - "shortName": "GetVodStitchDetail", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.GetVodStitchDetail", - "service": { - "shortName": "VideoStitcherService", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService" - } - } - } - }, - { - "regionTag": "videostitcher_v1_generated_VideoStitcherService_ListVodAdTagDetails_async", - "title": "VideoStitcherService listVodAdTagDetails Sample", - "origin": "API_DEFINITION", - "description": " Return the list of ad tag details for the specified VOD session.", - "canonical": true, - "file": "video_stitcher_service.list_vod_ad_tag_details.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListVodAdTagDetails", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.ListVodAdTagDetails", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.video.stitcher.v1.ListVodAdTagDetailsResponse", - "client": { - "shortName": "VideoStitcherServiceClient", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherServiceClient" - }, - "method": { - "shortName": "ListVodAdTagDetails", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.ListVodAdTagDetails", - "service": { - "shortName": "VideoStitcherService", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService" - } - } - } - }, - { - "regionTag": "videostitcher_v1_generated_VideoStitcherService_GetVodAdTagDetail_async", - "title": "VideoStitcherService getVodAdTagDetail Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified ad tag detail for the specified VOD session.", - "canonical": true, - "file": "video_stitcher_service.get_vod_ad_tag_detail.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetVodAdTagDetail", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.GetVodAdTagDetail", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.video.stitcher.v1.VodAdTagDetail", - "client": { - "shortName": "VideoStitcherServiceClient", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherServiceClient" - }, - "method": { - "shortName": "GetVodAdTagDetail", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.GetVodAdTagDetail", - "service": { - "shortName": "VideoStitcherService", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService" - } - } - } - }, - { - "regionTag": "videostitcher_v1_generated_VideoStitcherService_ListLiveAdTagDetails_async", - "title": "VideoStitcherService listLiveAdTagDetails Sample", - "origin": "API_DEFINITION", - "description": " Return the list of ad tag details for the specified live session.", - "canonical": true, - "file": "video_stitcher_service.list_live_ad_tag_details.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListLiveAdTagDetails", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.ListLiveAdTagDetails", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.video.stitcher.v1.ListLiveAdTagDetailsResponse", - "client": { - "shortName": "VideoStitcherServiceClient", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherServiceClient" - }, - "method": { - "shortName": "ListLiveAdTagDetails", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.ListLiveAdTagDetails", - "service": { - "shortName": "VideoStitcherService", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService" - } - } - } - }, - { - "regionTag": "videostitcher_v1_generated_VideoStitcherService_GetLiveAdTagDetail_async", - "title": "VideoStitcherService getLiveAdTagDetail Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified ad tag detail for the specified live session.", - "canonical": true, - "file": "video_stitcher_service.get_live_ad_tag_detail.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetLiveAdTagDetail", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.GetLiveAdTagDetail", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.video.stitcher.v1.LiveAdTagDetail", - "client": { - "shortName": "VideoStitcherServiceClient", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherServiceClient" - }, - "method": { - "shortName": "GetLiveAdTagDetail", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.GetLiveAdTagDetail", - "service": { - "shortName": "VideoStitcherService", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService" - } - } - } - }, - { - "regionTag": "videostitcher_v1_generated_VideoStitcherService_CreateSlate_async", - "title": "VideoStitcherService createSlate Sample", - "origin": "API_DEFINITION", - "description": " Creates a slate.", - "canonical": true, - "file": "video_stitcher_service.create_slate.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSlate", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.CreateSlate", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "slate_id", - "type": "TYPE_STRING" - }, - { - "name": "slate", - "type": ".google.cloud.video.stitcher.v1.Slate" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VideoStitcherServiceClient", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherServiceClient" - }, - "method": { - "shortName": "CreateSlate", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.CreateSlate", - "service": { - "shortName": "VideoStitcherService", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService" - } - } - } - }, - { - "regionTag": "videostitcher_v1_generated_VideoStitcherService_ListSlates_async", - "title": "VideoStitcherService listSlates Sample", - "origin": "API_DEFINITION", - "description": " Lists all slates in the specified project and location.", - "canonical": true, - "file": "video_stitcher_service.list_slates.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSlates", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.ListSlates", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.video.stitcher.v1.ListSlatesResponse", - "client": { - "shortName": "VideoStitcherServiceClient", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherServiceClient" - }, - "method": { - "shortName": "ListSlates", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.ListSlates", - "service": { - "shortName": "VideoStitcherService", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService" - } - } - } - }, - { - "regionTag": "videostitcher_v1_generated_VideoStitcherService_GetSlate_async", - "title": "VideoStitcherService getSlate Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified slate.", - "canonical": true, - "file": "video_stitcher_service.get_slate.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSlate", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.GetSlate", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.video.stitcher.v1.Slate", - "client": { - "shortName": "VideoStitcherServiceClient", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherServiceClient" - }, - "method": { - "shortName": "GetSlate", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.GetSlate", - "service": { - "shortName": "VideoStitcherService", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService" - } - } - } - }, - { - "regionTag": "videostitcher_v1_generated_VideoStitcherService_UpdateSlate_async", - "title": "VideoStitcherService updateSlate Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified slate.", - "canonical": true, - "file": "video_stitcher_service.update_slate.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSlate", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.UpdateSlate", - "async": true, - "parameters": [ - { - "name": "slate", - "type": ".google.cloud.video.stitcher.v1.Slate" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VideoStitcherServiceClient", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherServiceClient" - }, - "method": { - "shortName": "UpdateSlate", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.UpdateSlate", - "service": { - "shortName": "VideoStitcherService", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService" - } - } - } - }, - { - "regionTag": "videostitcher_v1_generated_VideoStitcherService_DeleteSlate_async", - "title": "VideoStitcherService deleteSlate Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified slate.", - "canonical": true, - "file": "video_stitcher_service.delete_slate.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSlate", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.DeleteSlate", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VideoStitcherServiceClient", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherServiceClient" - }, - "method": { - "shortName": "DeleteSlate", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.DeleteSlate", - "service": { - "shortName": "VideoStitcherService", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService" - } - } - } - }, - { - "regionTag": "videostitcher_v1_generated_VideoStitcherService_CreateLiveSession_async", - "title": "VideoStitcherService createLiveSession Sample", - "origin": "API_DEFINITION", - "description": " Creates a new live session.", - "canonical": true, - "file": "video_stitcher_service.create_live_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateLiveSession", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.CreateLiveSession", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "live_session", - "type": ".google.cloud.video.stitcher.v1.LiveSession" - } - ], - "resultType": ".google.cloud.video.stitcher.v1.LiveSession", - "client": { - "shortName": "VideoStitcherServiceClient", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherServiceClient" - }, - "method": { - "shortName": "CreateLiveSession", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.CreateLiveSession", - "service": { - "shortName": "VideoStitcherService", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService" - } - } - } - }, - { - "regionTag": "videostitcher_v1_generated_VideoStitcherService_GetLiveSession_async", - "title": "VideoStitcherService getLiveSession Sample", - "origin": "API_DEFINITION", - "description": " Returns the details for the specified live session.", - "canonical": true, - "file": "video_stitcher_service.get_live_session.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetLiveSession", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.GetLiveSession", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.video.stitcher.v1.LiveSession", - "client": { - "shortName": "VideoStitcherServiceClient", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherServiceClient" - }, - "method": { - "shortName": "GetLiveSession", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.GetLiveSession", - "service": { - "shortName": "VideoStitcherService", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService" - } - } - } - }, - { - "regionTag": "videostitcher_v1_generated_VideoStitcherService_CreateLiveConfig_async", - "title": "VideoStitcherService createLiveConfig Sample", - "origin": "API_DEFINITION", - "description": " Registers the live config with the provided unique ID in the specified region.", - "canonical": true, - "file": "video_stitcher_service.create_live_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateLiveConfig", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.CreateLiveConfig", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "live_config_id", - "type": "TYPE_STRING" - }, - { - "name": "live_config", - "type": ".google.cloud.video.stitcher.v1.LiveConfig" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VideoStitcherServiceClient", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherServiceClient" - }, - "method": { - "shortName": "CreateLiveConfig", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.CreateLiveConfig", - "service": { - "shortName": "VideoStitcherService", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService" - } - } - } - }, - { - "regionTag": "videostitcher_v1_generated_VideoStitcherService_ListLiveConfigs_async", - "title": "VideoStitcherService listLiveConfigs Sample", - "origin": "API_DEFINITION", - "description": " Lists all live configs managed by the Video Stitcher that belong to the specified project and region.", - "canonical": true, - "file": "video_stitcher_service.list_live_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListLiveConfigs", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.ListLiveConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.video.stitcher.v1.ListLiveConfigsResponse", - "client": { - "shortName": "VideoStitcherServiceClient", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherServiceClient" - }, - "method": { - "shortName": "ListLiveConfigs", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.ListLiveConfigs", - "service": { - "shortName": "VideoStitcherService", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService" - } - } - } - }, - { - "regionTag": "videostitcher_v1_generated_VideoStitcherService_GetLiveConfig_async", - "title": "VideoStitcherService getLiveConfig Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified live config managed by the Video Stitcher service.", - "canonical": true, - "file": "video_stitcher_service.get_live_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetLiveConfig", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.GetLiveConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.video.stitcher.v1.LiveConfig", - "client": { - "shortName": "VideoStitcherServiceClient", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherServiceClient" - }, - "method": { - "shortName": "GetLiveConfig", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.GetLiveConfig", - "service": { - "shortName": "VideoStitcherService", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService" - } - } - } - }, - { - "regionTag": "videostitcher_v1_generated_VideoStitcherService_DeleteLiveConfig_async", - "title": "VideoStitcherService deleteLiveConfig Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified live config.", - "canonical": true, - "file": "video_stitcher_service.delete_live_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteLiveConfig", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.DeleteLiveConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VideoStitcherServiceClient", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherServiceClient" - }, - "method": { - "shortName": "DeleteLiveConfig", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.DeleteLiveConfig", - "service": { - "shortName": "VideoStitcherService", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService" - } - } - } - }, - { - "regionTag": "videostitcher_v1_generated_VideoStitcherService_UpdateLiveConfig_async", - "title": "VideoStitcherService updateLiveConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified LiveConfig. Only update fields specified in the call method body.", - "canonical": true, - "file": "video_stitcher_service.update_live_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateLiveConfig", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.UpdateLiveConfig", - "async": true, - "parameters": [ - { - "name": "live_config", - "type": ".google.cloud.video.stitcher.v1.LiveConfig" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VideoStitcherServiceClient", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherServiceClient" - }, - "method": { - "shortName": "UpdateLiveConfig", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.UpdateLiveConfig", - "service": { - "shortName": "VideoStitcherService", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService" - } - } - } - }, - { - "regionTag": "videostitcher_v1_generated_VideoStitcherService_CreateVodConfig_async", - "title": "VideoStitcherService createVodConfig Sample", - "origin": "API_DEFINITION", - "description": " Registers the VOD config with the provided unique ID in the specified region.", - "canonical": true, - "file": "video_stitcher_service.create_vod_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateVodConfig", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.CreateVodConfig", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "vod_config_id", - "type": "TYPE_STRING" - }, - { - "name": "vod_config", - "type": ".google.cloud.video.stitcher.v1.VodConfig" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VideoStitcherServiceClient", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherServiceClient" - }, - "method": { - "shortName": "CreateVodConfig", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.CreateVodConfig", - "service": { - "shortName": "VideoStitcherService", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService" - } - } - } - }, - { - "regionTag": "videostitcher_v1_generated_VideoStitcherService_ListVodConfigs_async", - "title": "VideoStitcherService listVodConfigs Sample", - "origin": "API_DEFINITION", - "description": " Lists all VOD configs managed by the Video Stitcher API that belong to the specified project and region.", - "canonical": true, - "file": "video_stitcher_service.list_vod_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListVodConfigs", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.ListVodConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.video.stitcher.v1.ListVodConfigsResponse", - "client": { - "shortName": "VideoStitcherServiceClient", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherServiceClient" - }, - "method": { - "shortName": "ListVodConfigs", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.ListVodConfigs", - "service": { - "shortName": "VideoStitcherService", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService" - } - } - } - }, - { - "regionTag": "videostitcher_v1_generated_VideoStitcherService_GetVodConfig_async", - "title": "VideoStitcherService getVodConfig Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified VOD config managed by the Video Stitcher API service.", - "canonical": true, - "file": "video_stitcher_service.get_vod_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetVodConfig", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.GetVodConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.video.stitcher.v1.VodConfig", - "client": { - "shortName": "VideoStitcherServiceClient", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherServiceClient" - }, - "method": { - "shortName": "GetVodConfig", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.GetVodConfig", - "service": { - "shortName": "VideoStitcherService", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService" - } - } - } - }, - { - "regionTag": "videostitcher_v1_generated_VideoStitcherService_DeleteVodConfig_async", - "title": "VideoStitcherService deleteVodConfig Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified VOD config.", - "canonical": true, - "file": "video_stitcher_service.delete_vod_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteVodConfig", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.DeleteVodConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VideoStitcherServiceClient", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherServiceClient" - }, - "method": { - "shortName": "DeleteVodConfig", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.DeleteVodConfig", - "service": { - "shortName": "VideoStitcherService", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService" - } - } - } - }, - { - "regionTag": "videostitcher_v1_generated_VideoStitcherService_UpdateVodConfig_async", - "title": "VideoStitcherService updateVodConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified VOD config. Only update fields specified in the call method body.", - "canonical": true, - "file": "video_stitcher_service.update_vod_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateVodConfig", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.UpdateVodConfig", - "async": true, - "parameters": [ - { - "name": "vod_config", - "type": ".google.cloud.video.stitcher.v1.VodConfig" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VideoStitcherServiceClient", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherServiceClient" - }, - "method": { - "shortName": "UpdateVodConfig", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService.UpdateVodConfig", - "service": { - "shortName": "VideoStitcherService", - "fullName": "google.cloud.video.stitcher.v1.VideoStitcherService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-video-transcoder/samples/generated/v1/snippet_metadata_google.cloud.video.transcoder.v1.json b/packages/google-cloud-video-transcoder/samples/generated/v1/snippet_metadata_google.cloud.video.transcoder.v1.json deleted file mode 100644 index 8eb9ff43084b..000000000000 --- a/packages/google-cloud-video-transcoder/samples/generated/v1/snippet_metadata_google.cloud.video.transcoder.v1.json +++ /dev/null @@ -1,387 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-transcoder", - "version": "4.4.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.video.transcoder.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "transcoder_v1_generated_TranscoderService_CreateJob_async", - "title": "TranscoderService createJob Sample", - "origin": "API_DEFINITION", - "description": " Creates a job in the specified region.", - "canonical": true, - "file": "transcoder_service.create_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateJob", - "fullName": "google.cloud.video.transcoder.v1.TranscoderService.CreateJob", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "job", - "type": ".google.cloud.video.transcoder.v1.Job" - } - ], - "resultType": ".google.cloud.video.transcoder.v1.Job", - "client": { - "shortName": "TranscoderServiceClient", - "fullName": "google.cloud.video.transcoder.v1.TranscoderServiceClient" - }, - "method": { - "shortName": "CreateJob", - "fullName": "google.cloud.video.transcoder.v1.TranscoderService.CreateJob", - "service": { - "shortName": "TranscoderService", - "fullName": "google.cloud.video.transcoder.v1.TranscoderService" - } - } - } - }, - { - "regionTag": "transcoder_v1_generated_TranscoderService_ListJobs_async", - "title": "TranscoderService listJobs Sample", - "origin": "API_DEFINITION", - "description": " Lists jobs in the specified region.", - "canonical": true, - "file": "transcoder_service.list_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListJobs", - "fullName": "google.cloud.video.transcoder.v1.TranscoderService.ListJobs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.video.transcoder.v1.ListJobsResponse", - "client": { - "shortName": "TranscoderServiceClient", - "fullName": "google.cloud.video.transcoder.v1.TranscoderServiceClient" - }, - "method": { - "shortName": "ListJobs", - "fullName": "google.cloud.video.transcoder.v1.TranscoderService.ListJobs", - "service": { - "shortName": "TranscoderService", - "fullName": "google.cloud.video.transcoder.v1.TranscoderService" - } - } - } - }, - { - "regionTag": "transcoder_v1_generated_TranscoderService_GetJob_async", - "title": "TranscoderService getJob Sample", - "origin": "API_DEFINITION", - "description": " Returns the job data.", - "canonical": true, - "file": "transcoder_service.get_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetJob", - "fullName": "google.cloud.video.transcoder.v1.TranscoderService.GetJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.video.transcoder.v1.Job", - "client": { - "shortName": "TranscoderServiceClient", - "fullName": "google.cloud.video.transcoder.v1.TranscoderServiceClient" - }, - "method": { - "shortName": "GetJob", - "fullName": "google.cloud.video.transcoder.v1.TranscoderService.GetJob", - "service": { - "shortName": "TranscoderService", - "fullName": "google.cloud.video.transcoder.v1.TranscoderService" - } - } - } - }, - { - "regionTag": "transcoder_v1_generated_TranscoderService_DeleteJob_async", - "title": "TranscoderService deleteJob Sample", - "origin": "API_DEFINITION", - "description": " Deletes a job.", - "canonical": true, - "file": "transcoder_service.delete_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteJob", - "fullName": "google.cloud.video.transcoder.v1.TranscoderService.DeleteJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "TranscoderServiceClient", - "fullName": "google.cloud.video.transcoder.v1.TranscoderServiceClient" - }, - "method": { - "shortName": "DeleteJob", - "fullName": "google.cloud.video.transcoder.v1.TranscoderService.DeleteJob", - "service": { - "shortName": "TranscoderService", - "fullName": "google.cloud.video.transcoder.v1.TranscoderService" - } - } - } - }, - { - "regionTag": "transcoder_v1_generated_TranscoderService_CreateJobTemplate_async", - "title": "TranscoderService createJobTemplate Sample", - "origin": "API_DEFINITION", - "description": " Creates a job template in the specified region.", - "canonical": true, - "file": "transcoder_service.create_job_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateJobTemplate", - "fullName": "google.cloud.video.transcoder.v1.TranscoderService.CreateJobTemplate", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "job_template", - "type": ".google.cloud.video.transcoder.v1.JobTemplate" - }, - { - "name": "job_template_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.video.transcoder.v1.JobTemplate", - "client": { - "shortName": "TranscoderServiceClient", - "fullName": "google.cloud.video.transcoder.v1.TranscoderServiceClient" - }, - "method": { - "shortName": "CreateJobTemplate", - "fullName": "google.cloud.video.transcoder.v1.TranscoderService.CreateJobTemplate", - "service": { - "shortName": "TranscoderService", - "fullName": "google.cloud.video.transcoder.v1.TranscoderService" - } - } - } - }, - { - "regionTag": "transcoder_v1_generated_TranscoderService_ListJobTemplates_async", - "title": "TranscoderService listJobTemplates Sample", - "origin": "API_DEFINITION", - "description": " Lists job templates in the specified region.", - "canonical": true, - "file": "transcoder_service.list_job_templates.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListJobTemplates", - "fullName": "google.cloud.video.transcoder.v1.TranscoderService.ListJobTemplates", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.video.transcoder.v1.ListJobTemplatesResponse", - "client": { - "shortName": "TranscoderServiceClient", - "fullName": "google.cloud.video.transcoder.v1.TranscoderServiceClient" - }, - "method": { - "shortName": "ListJobTemplates", - "fullName": "google.cloud.video.transcoder.v1.TranscoderService.ListJobTemplates", - "service": { - "shortName": "TranscoderService", - "fullName": "google.cloud.video.transcoder.v1.TranscoderService" - } - } - } - }, - { - "regionTag": "transcoder_v1_generated_TranscoderService_GetJobTemplate_async", - "title": "TranscoderService getJobTemplate Sample", - "origin": "API_DEFINITION", - "description": " Returns the job template data.", - "canonical": true, - "file": "transcoder_service.get_job_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetJobTemplate", - "fullName": "google.cloud.video.transcoder.v1.TranscoderService.GetJobTemplate", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.video.transcoder.v1.JobTemplate", - "client": { - "shortName": "TranscoderServiceClient", - "fullName": "google.cloud.video.transcoder.v1.TranscoderServiceClient" - }, - "method": { - "shortName": "GetJobTemplate", - "fullName": "google.cloud.video.transcoder.v1.TranscoderService.GetJobTemplate", - "service": { - "shortName": "TranscoderService", - "fullName": "google.cloud.video.transcoder.v1.TranscoderService" - } - } - } - }, - { - "regionTag": "transcoder_v1_generated_TranscoderService_DeleteJobTemplate_async", - "title": "TranscoderService deleteJobTemplate Sample", - "origin": "API_DEFINITION", - "description": " Deletes a job template.", - "canonical": true, - "file": "transcoder_service.delete_job_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteJobTemplate", - "fullName": "google.cloud.video.transcoder.v1.TranscoderService.DeleteJobTemplate", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "TranscoderServiceClient", - "fullName": "google.cloud.video.transcoder.v1.TranscoderServiceClient" - }, - "method": { - "shortName": "DeleteJobTemplate", - "fullName": "google.cloud.video.transcoder.v1.TranscoderService.DeleteJobTemplate", - "service": { - "shortName": "TranscoderService", - "fullName": "google.cloud.video.transcoder.v1.TranscoderService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-videointelligence/samples/generated/v1/snippet_metadata_google.cloud.videointelligence.v1.json b/packages/google-cloud-videointelligence/samples/generated/v1/snippet_metadata_google.cloud.videointelligence.v1.json deleted file mode 100644 index bac8c65d82ef..000000000000 --- a/packages/google-cloud-videointelligence/samples/generated/v1/snippet_metadata_google.cloud.videointelligence.v1.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-videointelligence", - "version": "6.2.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.videointelligence.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "videointelligence_v1_generated_VideoIntelligenceService_AnnotateVideo_async", - "title": "videointelligence annotateVideo Sample", - "origin": "API_DEFINITION", - "description": " Performs asynchronous video annotation. Progress and results can be retrieved through the `google.longrunning.Operations` interface. `Operation.metadata` contains `AnnotateVideoProgress` (progress). `Operation.response` contains `AnnotateVideoResponse` (results).", - "canonical": true, - "file": "video_intelligence_service.annotate_video.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 95, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AnnotateVideo", - "fullName": "google.cloud.videointelligence.v1.VideoIntelligenceService.AnnotateVideo", - "async": true, - "parameters": [ - { - "name": "input_uri", - "type": "TYPE_STRING" - }, - { - "name": "input_content", - "type": "TYPE_BYTES" - }, - { - "name": "features", - "type": "TYPE_ENUM[]" - }, - { - "name": "video_context", - "type": ".google.cloud.videointelligence.v1.VideoContext" - }, - { - "name": "output_uri", - "type": "TYPE_STRING" - }, - { - "name": "location_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VideoIntelligenceServiceClient", - "fullName": "google.cloud.videointelligence.v1.VideoIntelligenceServiceClient" - }, - "method": { - "shortName": "AnnotateVideo", - "fullName": "google.cloud.videointelligence.v1.VideoIntelligenceService.AnnotateVideo", - "service": { - "shortName": "VideoIntelligenceService", - "fullName": "google.cloud.videointelligence.v1.VideoIntelligenceService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-videointelligence/samples/generated/v1beta2/snippet_metadata_google.cloud.videointelligence.v1beta2.json b/packages/google-cloud-videointelligence/samples/generated/v1beta2/snippet_metadata_google.cloud.videointelligence.v1beta2.json deleted file mode 100644 index 358b0e76e43b..000000000000 --- a/packages/google-cloud-videointelligence/samples/generated/v1beta2/snippet_metadata_google.cloud.videointelligence.v1beta2.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-videointelligence", - "version": "6.2.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.videointelligence.v1beta2", - "version": "v1beta2" - } - ] - }, - "snippets": [ - { - "regionTag": "videointelligence_v1beta2_generated_VideoIntelligenceService_AnnotateVideo_async", - "title": "videointelligence annotateVideo Sample", - "origin": "API_DEFINITION", - "description": " Performs asynchronous video annotation. Progress and results can be retrieved through the `google.longrunning.Operations` interface. `Operation.metadata` contains `AnnotateVideoProgress` (progress). `Operation.response` contains `AnnotateVideoResponse` (results).", - "canonical": true, - "file": "video_intelligence_service.annotate_video.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 94, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AnnotateVideo", - "fullName": "google.cloud.videointelligence.v1beta2.VideoIntelligenceService.AnnotateVideo", - "async": true, - "parameters": [ - { - "name": "input_uri", - "type": "TYPE_STRING" - }, - { - "name": "input_content", - "type": "TYPE_BYTES" - }, - { - "name": "features", - "type": "TYPE_ENUM[]" - }, - { - "name": "video_context", - "type": ".google.cloud.videointelligence.v1beta2.VideoContext" - }, - { - "name": "output_uri", - "type": "TYPE_STRING" - }, - { - "name": "location_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VideoIntelligenceServiceClient", - "fullName": "google.cloud.videointelligence.v1beta2.VideoIntelligenceServiceClient" - }, - "method": { - "shortName": "AnnotateVideo", - "fullName": "google.cloud.videointelligence.v1beta2.VideoIntelligenceService.AnnotateVideo", - "service": { - "shortName": "VideoIntelligenceService", - "fullName": "google.cloud.videointelligence.v1beta2.VideoIntelligenceService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-videointelligence/samples/generated/v1p1beta1/snippet_metadata_google.cloud.videointelligence.v1p1beta1.json b/packages/google-cloud-videointelligence/samples/generated/v1p1beta1/snippet_metadata_google.cloud.videointelligence.v1p1beta1.json deleted file mode 100644 index 2131e859f5ad..000000000000 --- a/packages/google-cloud-videointelligence/samples/generated/v1p1beta1/snippet_metadata_google.cloud.videointelligence.v1p1beta1.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-videointelligence", - "version": "6.2.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.videointelligence.v1p1beta1", - "version": "v1p1beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "videointelligence_v1p1beta1_generated_VideoIntelligenceService_AnnotateVideo_async", - "title": "videointelligence annotateVideo Sample", - "origin": "API_DEFINITION", - "description": " Performs asynchronous video annotation. Progress and results can be retrieved through the `google.longrunning.Operations` interface. `Operation.metadata` contains `AnnotateVideoProgress` (progress). `Operation.response` contains `AnnotateVideoResponse` (results).", - "canonical": true, - "file": "video_intelligence_service.annotate_video.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 94, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AnnotateVideo", - "fullName": "google.cloud.videointelligence.v1p1beta1.VideoIntelligenceService.AnnotateVideo", - "async": true, - "parameters": [ - { - "name": "input_uri", - "type": "TYPE_STRING" - }, - { - "name": "input_content", - "type": "TYPE_BYTES" - }, - { - "name": "features", - "type": "TYPE_ENUM[]" - }, - { - "name": "video_context", - "type": ".google.cloud.videointelligence.v1p1beta1.VideoContext" - }, - { - "name": "output_uri", - "type": "TYPE_STRING" - }, - { - "name": "location_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VideoIntelligenceServiceClient", - "fullName": "google.cloud.videointelligence.v1p1beta1.VideoIntelligenceServiceClient" - }, - "method": { - "shortName": "AnnotateVideo", - "fullName": "google.cloud.videointelligence.v1p1beta1.VideoIntelligenceService.AnnotateVideo", - "service": { - "shortName": "VideoIntelligenceService", - "fullName": "google.cloud.videointelligence.v1p1beta1.VideoIntelligenceService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-videointelligence/samples/generated/v1p2beta1/snippet_metadata_google.cloud.videointelligence.v1p2beta1.json b/packages/google-cloud-videointelligence/samples/generated/v1p2beta1/snippet_metadata_google.cloud.videointelligence.v1p2beta1.json deleted file mode 100644 index 91d012015e85..000000000000 --- a/packages/google-cloud-videointelligence/samples/generated/v1p2beta1/snippet_metadata_google.cloud.videointelligence.v1p2beta1.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-videointelligence", - "version": "6.2.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.videointelligence.v1p2beta1", - "version": "v1p2beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "videointelligence_v1p2beta1_generated_VideoIntelligenceService_AnnotateVideo_async", - "title": "videointelligence annotateVideo Sample", - "origin": "API_DEFINITION", - "description": " Performs asynchronous video annotation. Progress and results can be retrieved through the `google.longrunning.Operations` interface. `Operation.metadata` contains `AnnotateVideoProgress` (progress). `Operation.response` contains `AnnotateVideoResponse` (results).", - "canonical": true, - "file": "video_intelligence_service.annotate_video.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 92, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AnnotateVideo", - "fullName": "google.cloud.videointelligence.v1p2beta1.VideoIntelligenceService.AnnotateVideo", - "async": true, - "parameters": [ - { - "name": "input_uri", - "type": "TYPE_STRING" - }, - { - "name": "input_content", - "type": "TYPE_BYTES" - }, - { - "name": "features", - "type": "TYPE_ENUM[]" - }, - { - "name": "video_context", - "type": ".google.cloud.videointelligence.v1p2beta1.VideoContext" - }, - { - "name": "output_uri", - "type": "TYPE_STRING" - }, - { - "name": "location_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VideoIntelligenceServiceClient", - "fullName": "google.cloud.videointelligence.v1p2beta1.VideoIntelligenceServiceClient" - }, - "method": { - "shortName": "AnnotateVideo", - "fullName": "google.cloud.videointelligence.v1p2beta1.VideoIntelligenceService.AnnotateVideo", - "service": { - "shortName": "VideoIntelligenceService", - "fullName": "google.cloud.videointelligence.v1p2beta1.VideoIntelligenceService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-videointelligence/samples/generated/v1p3beta1/snippet_metadata_google.cloud.videointelligence.v1p3beta1.json b/packages/google-cloud-videointelligence/samples/generated/v1p3beta1/snippet_metadata_google.cloud.videointelligence.v1p3beta1.json deleted file mode 100644 index 4bc2c27dde53..000000000000 --- a/packages/google-cloud-videointelligence/samples/generated/v1p3beta1/snippet_metadata_google.cloud.videointelligence.v1p3beta1.json +++ /dev/null @@ -1,119 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-videointelligence", - "version": "6.2.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.videointelligence.v1p3beta1", - "version": "v1p3beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "videointelligence_v1p3beta1_generated_StreamingVideoIntelligenceService_StreamingAnnotateVideo_async", - "title": "videointelligence streamingAnnotateVideo Sample", - "origin": "API_DEFINITION", - "description": " Performs video annotation with bidirectional streaming: emitting results while sending video/audio bytes. This method is only available via the gRPC API (not REST).", - "canonical": true, - "file": "streaming_video_intelligence_service.streaming_annotate_video.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StreamingAnnotateVideo", - "fullName": "google.cloud.videointelligence.v1p3beta1.StreamingVideoIntelligenceService.StreamingAnnotateVideo", - "async": true, - "parameters": [ - { - "name": "video_config", - "type": ".google.cloud.videointelligence.v1p3beta1.StreamingVideoConfig" - }, - { - "name": "input_content", - "type": "TYPE_BYTES" - } - ], - "resultType": ".google.cloud.videointelligence.v1p3beta1.StreamingAnnotateVideoResponse", - "client": { - "shortName": "StreamingVideoIntelligenceServiceClient", - "fullName": "google.cloud.videointelligence.v1p3beta1.StreamingVideoIntelligenceServiceClient" - }, - "method": { - "shortName": "StreamingAnnotateVideo", - "fullName": "google.cloud.videointelligence.v1p3beta1.StreamingVideoIntelligenceService.StreamingAnnotateVideo", - "service": { - "shortName": "StreamingVideoIntelligenceService", - "fullName": "google.cloud.videointelligence.v1p3beta1.StreamingVideoIntelligenceService" - } - } - } - }, - { - "regionTag": "videointelligence_v1p3beta1_generated_VideoIntelligenceService_AnnotateVideo_async", - "title": "videointelligence annotateVideo Sample", - "origin": "API_DEFINITION", - "description": " Performs asynchronous video annotation. Progress and results can be retrieved through the `google.longrunning.Operations` interface. `Operation.metadata` contains `AnnotateVideoProgress` (progress). `Operation.response` contains `AnnotateVideoResponse` (results).", - "canonical": true, - "file": "video_intelligence_service.annotate_video.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 95, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AnnotateVideo", - "fullName": "google.cloud.videointelligence.v1p3beta1.VideoIntelligenceService.AnnotateVideo", - "async": true, - "parameters": [ - { - "name": "input_uri", - "type": "TYPE_STRING" - }, - { - "name": "input_content", - "type": "TYPE_BYTES" - }, - { - "name": "features", - "type": "TYPE_ENUM[]" - }, - { - "name": "video_context", - "type": ".google.cloud.videointelligence.v1p3beta1.VideoContext" - }, - { - "name": "output_uri", - "type": "TYPE_STRING" - }, - { - "name": "location_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VideoIntelligenceServiceClient", - "fullName": "google.cloud.videointelligence.v1p3beta1.VideoIntelligenceServiceClient" - }, - "method": { - "shortName": "AnnotateVideo", - "fullName": "google.cloud.videointelligence.v1p3beta1.VideoIntelligenceService.AnnotateVideo", - "service": { - "shortName": "VideoIntelligenceService", - "fullName": "google.cloud.videointelligence.v1p3beta1.VideoIntelligenceService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-vision/samples/generated/v1/snippet_metadata_google.cloud.vision.v1.json b/packages/google-cloud-vision/samples/generated/v1/snippet_metadata_google.cloud.vision.v1.json deleted file mode 100644 index ccbc78f2df24..000000000000 --- a/packages/google-cloud-vision/samples/generated/v1/snippet_metadata_google.cloud.vision.v1.json +++ /dev/null @@ -1,1059 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-vision", - "version": "5.3.5", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.vision.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "vision_v1_generated_ImageAnnotator_BatchAnnotateImages_async", - "title": "vision batchAnnotateImages Sample", - "origin": "API_DEFINITION", - "description": " Run image detection and annotation for a batch of images.", - "canonical": true, - "file": "image_annotator.batch_annotate_images.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchAnnotateImages", - "fullName": "google.cloud.vision.v1.ImageAnnotator.BatchAnnotateImages", - "async": true, - "parameters": [ - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "labels", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.vision.v1.BatchAnnotateImagesResponse", - "client": { - "shortName": "ImageAnnotatorClient", - "fullName": "google.cloud.vision.v1.ImageAnnotatorClient" - }, - "method": { - "shortName": "BatchAnnotateImages", - "fullName": "google.cloud.vision.v1.ImageAnnotator.BatchAnnotateImages", - "service": { - "shortName": "ImageAnnotator", - "fullName": "google.cloud.vision.v1.ImageAnnotator" - } - } - } - }, - { - "regionTag": "vision_v1_generated_ImageAnnotator_BatchAnnotateFiles_async", - "title": "vision batchAnnotateFiles Sample", - "origin": "API_DEFINITION", - "description": " Service that performs image detection and annotation for a batch of files. Now only \"application/pdf\", \"image/tiff\" and \"image/gif\" are supported. This service will extract at most 5 (customers can specify which 5 in AnnotateFileRequest.pages) frames (gif) or pages (pdf or tiff) from each file provided and perform detection and annotation for each image extracted.", - "canonical": true, - "file": "image_annotator.batch_annotate_files.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchAnnotateFiles", - "fullName": "google.cloud.vision.v1.ImageAnnotator.BatchAnnotateFiles", - "async": true, - "parameters": [ - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "labels", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.vision.v1.BatchAnnotateFilesResponse", - "client": { - "shortName": "ImageAnnotatorClient", - "fullName": "google.cloud.vision.v1.ImageAnnotatorClient" - }, - "method": { - "shortName": "BatchAnnotateFiles", - "fullName": "google.cloud.vision.v1.ImageAnnotator.BatchAnnotateFiles", - "service": { - "shortName": "ImageAnnotator", - "fullName": "google.cloud.vision.v1.ImageAnnotator" - } - } - } - }, - { - "regionTag": "vision_v1_generated_ImageAnnotator_AsyncBatchAnnotateImages_async", - "title": "vision asyncBatchAnnotateImages Sample", - "origin": "API_DEFINITION", - "description": " Run asynchronous image detection and annotation for a list of images. Progress and results can be retrieved through the `google.longrunning.Operations` interface. `Operation.metadata` contains `OperationMetadata` (metadata). `Operation.response` contains `AsyncBatchAnnotateImagesResponse` (results). This service will write image annotation outputs to json files in customer GCS bucket, each json file containing BatchAnnotateImagesResponse proto.", - "canonical": true, - "file": "image_annotator.async_batch_annotate_images.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AsyncBatchAnnotateImages", - "fullName": "google.cloud.vision.v1.ImageAnnotator.AsyncBatchAnnotateImages", - "async": true, - "parameters": [ - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "output_config", - "type": ".google.cloud.vision.v1.OutputConfig" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "labels", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ImageAnnotatorClient", - "fullName": "google.cloud.vision.v1.ImageAnnotatorClient" - }, - "method": { - "shortName": "AsyncBatchAnnotateImages", - "fullName": "google.cloud.vision.v1.ImageAnnotator.AsyncBatchAnnotateImages", - "service": { - "shortName": "ImageAnnotator", - "fullName": "google.cloud.vision.v1.ImageAnnotator" - } - } - } - }, - { - "regionTag": "vision_v1_generated_ImageAnnotator_AsyncBatchAnnotateFiles_async", - "title": "vision asyncBatchAnnotateFiles Sample", - "origin": "API_DEFINITION", - "description": " Run asynchronous image detection and annotation for a list of generic files, such as PDF files, which may contain multiple pages and multiple images per page. Progress and results can be retrieved through the `google.longrunning.Operations` interface. `Operation.metadata` contains `OperationMetadata` (metadata). `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results).", - "canonical": true, - "file": "image_annotator.async_batch_annotate_files.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AsyncBatchAnnotateFiles", - "fullName": "google.cloud.vision.v1.ImageAnnotator.AsyncBatchAnnotateFiles", - "async": true, - "parameters": [ - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "labels", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ImageAnnotatorClient", - "fullName": "google.cloud.vision.v1.ImageAnnotatorClient" - }, - "method": { - "shortName": "AsyncBatchAnnotateFiles", - "fullName": "google.cloud.vision.v1.ImageAnnotator.AsyncBatchAnnotateFiles", - "service": { - "shortName": "ImageAnnotator", - "fullName": "google.cloud.vision.v1.ImageAnnotator" - } - } - } - }, - { - "regionTag": "vision_v1_generated_ProductSearch_CreateProductSet_async", - "title": "vision createProductSet Sample", - "origin": "API_DEFINITION", - "description": " Creates and returns a new ProductSet resource. Possible errors: * Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters.", - "canonical": true, - "file": "product_search.create_product_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateProductSet", - "fullName": "google.cloud.vision.v1.ProductSearch.CreateProductSet", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "product_set", - "type": ".google.cloud.vision.v1.ProductSet" - }, - { - "name": "product_set_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vision.v1.ProductSet", - "client": { - "shortName": "ProductSearchClient", - "fullName": "google.cloud.vision.v1.ProductSearchClient" - }, - "method": { - "shortName": "CreateProductSet", - "fullName": "google.cloud.vision.v1.ProductSearch.CreateProductSet", - "service": { - "shortName": "ProductSearch", - "fullName": "google.cloud.vision.v1.ProductSearch" - } - } - } - }, - { - "regionTag": "vision_v1_generated_ProductSearch_ListProductSets_async", - "title": "vision listProductSets Sample", - "origin": "API_DEFINITION", - "description": " Lists ProductSets in an unspecified order. Possible errors: * Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1.", - "canonical": true, - "file": "product_search.list_product_sets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListProductSets", - "fullName": "google.cloud.vision.v1.ProductSearch.ListProductSets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vision.v1.ListProductSetsResponse", - "client": { - "shortName": "ProductSearchClient", - "fullName": "google.cloud.vision.v1.ProductSearchClient" - }, - "method": { - "shortName": "ListProductSets", - "fullName": "google.cloud.vision.v1.ProductSearch.ListProductSets", - "service": { - "shortName": "ProductSearch", - "fullName": "google.cloud.vision.v1.ProductSearch" - } - } - } - }, - { - "regionTag": "vision_v1_generated_ProductSearch_GetProductSet_async", - "title": "vision getProductSet Sample", - "origin": "API_DEFINITION", - "description": " Gets information associated with a ProductSet. Possible errors: * Returns NOT_FOUND if the ProductSet does not exist.", - "canonical": true, - "file": "product_search.get_product_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetProductSet", - "fullName": "google.cloud.vision.v1.ProductSearch.GetProductSet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vision.v1.ProductSet", - "client": { - "shortName": "ProductSearchClient", - "fullName": "google.cloud.vision.v1.ProductSearchClient" - }, - "method": { - "shortName": "GetProductSet", - "fullName": "google.cloud.vision.v1.ProductSearch.GetProductSet", - "service": { - "shortName": "ProductSearch", - "fullName": "google.cloud.vision.v1.ProductSearch" - } - } - } - }, - { - "regionTag": "vision_v1_generated_ProductSearch_UpdateProductSet_async", - "title": "vision updateProductSet Sample", - "origin": "API_DEFINITION", - "description": " Makes changes to a ProductSet resource. Only display_name can be updated currently. Possible errors: * Returns NOT_FOUND if the ProductSet does not exist. * Returns INVALID_ARGUMENT if display_name is present in update_mask but missing from the request or longer than 4096 characters.", - "canonical": true, - "file": "product_search.update_product_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateProductSet", - "fullName": "google.cloud.vision.v1.ProductSearch.UpdateProductSet", - "async": true, - "parameters": [ - { - "name": "product_set", - "type": ".google.cloud.vision.v1.ProductSet" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.vision.v1.ProductSet", - "client": { - "shortName": "ProductSearchClient", - "fullName": "google.cloud.vision.v1.ProductSearchClient" - }, - "method": { - "shortName": "UpdateProductSet", - "fullName": "google.cloud.vision.v1.ProductSearch.UpdateProductSet", - "service": { - "shortName": "ProductSearch", - "fullName": "google.cloud.vision.v1.ProductSearch" - } - } - } - }, - { - "regionTag": "vision_v1_generated_ProductSearch_DeleteProductSet_async", - "title": "vision deleteProductSet Sample", - "origin": "API_DEFINITION", - "description": " Permanently deletes a ProductSet. Products and ReferenceImages in the ProductSet are not deleted. The actual image files are not deleted from Google Cloud Storage.", - "canonical": true, - "file": "product_search.delete_product_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteProductSet", - "fullName": "google.cloud.vision.v1.ProductSearch.DeleteProductSet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ProductSearchClient", - "fullName": "google.cloud.vision.v1.ProductSearchClient" - }, - "method": { - "shortName": "DeleteProductSet", - "fullName": "google.cloud.vision.v1.ProductSearch.DeleteProductSet", - "service": { - "shortName": "ProductSearch", - "fullName": "google.cloud.vision.v1.ProductSearch" - } - } - } - }, - { - "regionTag": "vision_v1_generated_ProductSearch_CreateProduct_async", - "title": "vision createProduct Sample", - "origin": "API_DEFINITION", - "description": " Creates and returns a new product resource. Possible errors: * Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 characters. * Returns INVALID_ARGUMENT if description is longer than 4096 characters. * Returns INVALID_ARGUMENT if product_category is missing or invalid.", - "canonical": true, - "file": "product_search.create_product.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateProduct", - "fullName": "google.cloud.vision.v1.ProductSearch.CreateProduct", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "product", - "type": ".google.cloud.vision.v1.Product" - }, - { - "name": "product_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vision.v1.Product", - "client": { - "shortName": "ProductSearchClient", - "fullName": "google.cloud.vision.v1.ProductSearchClient" - }, - "method": { - "shortName": "CreateProduct", - "fullName": "google.cloud.vision.v1.ProductSearch.CreateProduct", - "service": { - "shortName": "ProductSearch", - "fullName": "google.cloud.vision.v1.ProductSearch" - } - } - } - }, - { - "regionTag": "vision_v1_generated_ProductSearch_ListProducts_async", - "title": "vision listProducts Sample", - "origin": "API_DEFINITION", - "description": " Lists products in an unspecified order. Possible errors: * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.", - "canonical": true, - "file": "product_search.list_products.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListProducts", - "fullName": "google.cloud.vision.v1.ProductSearch.ListProducts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vision.v1.ListProductsResponse", - "client": { - "shortName": "ProductSearchClient", - "fullName": "google.cloud.vision.v1.ProductSearchClient" - }, - "method": { - "shortName": "ListProducts", - "fullName": "google.cloud.vision.v1.ProductSearch.ListProducts", - "service": { - "shortName": "ProductSearch", - "fullName": "google.cloud.vision.v1.ProductSearch" - } - } - } - }, - { - "regionTag": "vision_v1_generated_ProductSearch_GetProduct_async", - "title": "vision getProduct Sample", - "origin": "API_DEFINITION", - "description": " Gets information associated with a Product. Possible errors: * Returns NOT_FOUND if the Product does not exist.", - "canonical": true, - "file": "product_search.get_product.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetProduct", - "fullName": "google.cloud.vision.v1.ProductSearch.GetProduct", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vision.v1.Product", - "client": { - "shortName": "ProductSearchClient", - "fullName": "google.cloud.vision.v1.ProductSearchClient" - }, - "method": { - "shortName": "GetProduct", - "fullName": "google.cloud.vision.v1.ProductSearch.GetProduct", - "service": { - "shortName": "ProductSearch", - "fullName": "google.cloud.vision.v1.ProductSearch" - } - } - } - }, - { - "regionTag": "vision_v1_generated_ProductSearch_UpdateProduct_async", - "title": "vision updateProduct Sample", - "origin": "API_DEFINITION", - "description": " Makes changes to a Product resource. Only the `display_name`, `description`, and `labels` fields can be updated right now. If labels are updated, the change will not be reflected in queries until the next index time. Possible errors: * Returns NOT_FOUND if the Product does not exist. * Returns INVALID_ARGUMENT if display_name is present in update_mask but is missing from the request or longer than 4096 characters. * Returns INVALID_ARGUMENT if description is present in update_mask but is longer than 4096 characters. * Returns INVALID_ARGUMENT if product_category is present in update_mask.", - "canonical": true, - "file": "product_search.update_product.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateProduct", - "fullName": "google.cloud.vision.v1.ProductSearch.UpdateProduct", - "async": true, - "parameters": [ - { - "name": "product", - "type": ".google.cloud.vision.v1.Product" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.vision.v1.Product", - "client": { - "shortName": "ProductSearchClient", - "fullName": "google.cloud.vision.v1.ProductSearchClient" - }, - "method": { - "shortName": "UpdateProduct", - "fullName": "google.cloud.vision.v1.ProductSearch.UpdateProduct", - "service": { - "shortName": "ProductSearch", - "fullName": "google.cloud.vision.v1.ProductSearch" - } - } - } - }, - { - "regionTag": "vision_v1_generated_ProductSearch_DeleteProduct_async", - "title": "vision deleteProduct Sample", - "origin": "API_DEFINITION", - "description": " Permanently deletes a product and its reference images. Metadata of the product and all its images will be deleted right away, but search queries against ProductSets containing the product may still work until all related caches are refreshed.", - "canonical": true, - "file": "product_search.delete_product.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteProduct", - "fullName": "google.cloud.vision.v1.ProductSearch.DeleteProduct", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ProductSearchClient", - "fullName": "google.cloud.vision.v1.ProductSearchClient" - }, - "method": { - "shortName": "DeleteProduct", - "fullName": "google.cloud.vision.v1.ProductSearch.DeleteProduct", - "service": { - "shortName": "ProductSearch", - "fullName": "google.cloud.vision.v1.ProductSearch" - } - } - } - }, - { - "regionTag": "vision_v1_generated_ProductSearch_CreateReferenceImage_async", - "title": "vision createReferenceImage Sample", - "origin": "API_DEFINITION", - "description": " Creates and returns a new ReferenceImage resource. The `bounding_poly` field is optional. If `bounding_poly` is not specified, the system will try to detect regions of interest in the image that are compatible with the product_category on the parent product. If it is specified, detection is ALWAYS skipped. The system converts polygons into non-rotated rectangles. Note that the pipeline will resize the image if the image resolution is too large to process (above 50MP). Possible errors: * Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 characters. * Returns INVALID_ARGUMENT if the product does not exist. * Returns INVALID_ARGUMENT if bounding_poly is not provided, and nothing compatible with the parent product's product_category is detected. * Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons.", - "canonical": true, - "file": "product_search.create_reference_image.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateReferenceImage", - "fullName": "google.cloud.vision.v1.ProductSearch.CreateReferenceImage", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "reference_image", - "type": ".google.cloud.vision.v1.ReferenceImage" - }, - { - "name": "reference_image_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vision.v1.ReferenceImage", - "client": { - "shortName": "ProductSearchClient", - "fullName": "google.cloud.vision.v1.ProductSearchClient" - }, - "method": { - "shortName": "CreateReferenceImage", - "fullName": "google.cloud.vision.v1.ProductSearch.CreateReferenceImage", - "service": { - "shortName": "ProductSearch", - "fullName": "google.cloud.vision.v1.ProductSearch" - } - } - } - }, - { - "regionTag": "vision_v1_generated_ProductSearch_DeleteReferenceImage_async", - "title": "vision deleteReferenceImage Sample", - "origin": "API_DEFINITION", - "description": " Permanently deletes a reference image. The image metadata will be deleted right away, but search queries against ProductSets containing the image may still work until all related caches are refreshed. The actual image files are not deleted from Google Cloud Storage.", - "canonical": true, - "file": "product_search.delete_reference_image.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteReferenceImage", - "fullName": "google.cloud.vision.v1.ProductSearch.DeleteReferenceImage", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ProductSearchClient", - "fullName": "google.cloud.vision.v1.ProductSearchClient" - }, - "method": { - "shortName": "DeleteReferenceImage", - "fullName": "google.cloud.vision.v1.ProductSearch.DeleteReferenceImage", - "service": { - "shortName": "ProductSearch", - "fullName": "google.cloud.vision.v1.ProductSearch" - } - } - } - }, - { - "regionTag": "vision_v1_generated_ProductSearch_ListReferenceImages_async", - "title": "vision listReferenceImages Sample", - "origin": "API_DEFINITION", - "description": " Lists reference images. Possible errors: * Returns NOT_FOUND if the parent product does not exist. * Returns INVALID_ARGUMENT if the page_size is greater than 100, or less than 1.", - "canonical": true, - "file": "product_search.list_reference_images.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListReferenceImages", - "fullName": "google.cloud.vision.v1.ProductSearch.ListReferenceImages", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vision.v1.ListReferenceImagesResponse", - "client": { - "shortName": "ProductSearchClient", - "fullName": "google.cloud.vision.v1.ProductSearchClient" - }, - "method": { - "shortName": "ListReferenceImages", - "fullName": "google.cloud.vision.v1.ProductSearch.ListReferenceImages", - "service": { - "shortName": "ProductSearch", - "fullName": "google.cloud.vision.v1.ProductSearch" - } - } - } - }, - { - "regionTag": "vision_v1_generated_ProductSearch_GetReferenceImage_async", - "title": "vision getReferenceImage Sample", - "origin": "API_DEFINITION", - "description": " Gets information associated with a ReferenceImage. Possible errors: * Returns NOT_FOUND if the specified image does not exist.", - "canonical": true, - "file": "product_search.get_reference_image.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetReferenceImage", - "fullName": "google.cloud.vision.v1.ProductSearch.GetReferenceImage", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vision.v1.ReferenceImage", - "client": { - "shortName": "ProductSearchClient", - "fullName": "google.cloud.vision.v1.ProductSearchClient" - }, - "method": { - "shortName": "GetReferenceImage", - "fullName": "google.cloud.vision.v1.ProductSearch.GetReferenceImage", - "service": { - "shortName": "ProductSearch", - "fullName": "google.cloud.vision.v1.ProductSearch" - } - } - } - }, - { - "regionTag": "vision_v1_generated_ProductSearch_AddProductToProductSet_async", - "title": "vision addProductToProductSet Sample", - "origin": "API_DEFINITION", - "description": " Adds a Product to the specified ProductSet. If the Product is already present, no change is made. One Product can be added to at most 100 ProductSets. Possible errors: * Returns NOT_FOUND if the Product or the ProductSet doesn't exist.", - "canonical": true, - "file": "product_search.add_product_to_product_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddProductToProductSet", - "fullName": "google.cloud.vision.v1.ProductSearch.AddProductToProductSet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "product", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ProductSearchClient", - "fullName": "google.cloud.vision.v1.ProductSearchClient" - }, - "method": { - "shortName": "AddProductToProductSet", - "fullName": "google.cloud.vision.v1.ProductSearch.AddProductToProductSet", - "service": { - "shortName": "ProductSearch", - "fullName": "google.cloud.vision.v1.ProductSearch" - } - } - } - }, - { - "regionTag": "vision_v1_generated_ProductSearch_RemoveProductFromProductSet_async", - "title": "vision removeProductFromProductSet Sample", - "origin": "API_DEFINITION", - "description": " Removes a Product from the specified ProductSet.", - "canonical": true, - "file": "product_search.remove_product_from_product_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveProductFromProductSet", - "fullName": "google.cloud.vision.v1.ProductSearch.RemoveProductFromProductSet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "product", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ProductSearchClient", - "fullName": "google.cloud.vision.v1.ProductSearchClient" - }, - "method": { - "shortName": "RemoveProductFromProductSet", - "fullName": "google.cloud.vision.v1.ProductSearch.RemoveProductFromProductSet", - "service": { - "shortName": "ProductSearch", - "fullName": "google.cloud.vision.v1.ProductSearch" - } - } - } - }, - { - "regionTag": "vision_v1_generated_ProductSearch_ListProductsInProductSet_async", - "title": "vision listProductsInProductSet Sample", - "origin": "API_DEFINITION", - "description": " Lists the Products in a ProductSet, in an unspecified order. If the ProductSet does not exist, the products field of the response will be empty. Possible errors: * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.", - "canonical": true, - "file": "product_search.list_products_in_product_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListProductsInProductSet", - "fullName": "google.cloud.vision.v1.ProductSearch.ListProductsInProductSet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vision.v1.ListProductsInProductSetResponse", - "client": { - "shortName": "ProductSearchClient", - "fullName": "google.cloud.vision.v1.ProductSearchClient" - }, - "method": { - "shortName": "ListProductsInProductSet", - "fullName": "google.cloud.vision.v1.ProductSearch.ListProductsInProductSet", - "service": { - "shortName": "ProductSearch", - "fullName": "google.cloud.vision.v1.ProductSearch" - } - } - } - }, - { - "regionTag": "vision_v1_generated_ProductSearch_ImportProductSets_async", - "title": "vision importProductSets Sample", - "origin": "API_DEFINITION", - "description": " Asynchronous API that imports a list of reference images to specified product sets based on a list of image information. The [google.longrunning.Operation][google.longrunning.Operation] API can be used to keep track of the progress and results of the request. `Operation.metadata` contains `BatchOperationMetadata`. (progress) `Operation.response` contains `ImportProductSetsResponse`. (results) The input source of this method is a csv file on Google Cloud Storage. For the format of the csv file please see [ImportProductSetsGcsSource.csv_file_uri][google.cloud.vision.v1.ImportProductSetsGcsSource.csv_file_uri].", - "canonical": true, - "file": "product_search.import_product_sets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportProductSets", - "fullName": "google.cloud.vision.v1.ProductSearch.ImportProductSets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "input_config", - "type": ".google.cloud.vision.v1.ImportProductSetsInputConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ProductSearchClient", - "fullName": "google.cloud.vision.v1.ProductSearchClient" - }, - "method": { - "shortName": "ImportProductSets", - "fullName": "google.cloud.vision.v1.ProductSearch.ImportProductSets", - "service": { - "shortName": "ProductSearch", - "fullName": "google.cloud.vision.v1.ProductSearch" - } - } - } - }, - { - "regionTag": "vision_v1_generated_ProductSearch_PurgeProducts_async", - "title": "vision purgeProducts Sample", - "origin": "API_DEFINITION", - "description": " Asynchronous API to delete all Products in a ProductSet or all Products that are in no ProductSet. If a Product is a member of the specified ProductSet in addition to other ProductSets, the Product will still be deleted. It is recommended to not delete the specified ProductSet until after this operation has completed. It is also recommended to not add any of the Products involved in the batch delete to a new ProductSet while this operation is running because those Products may still end up deleted. It's not possible to undo the PurgeProducts operation. Therefore, it is recommended to keep the csv files used in ImportProductSets (if that was how you originally built the Product Set) before starting PurgeProducts, in case you need to re-import the data after deletion. If the plan is to purge all of the Products from a ProductSet and then re-use the empty ProductSet to re-import new Products into the empty ProductSet, you must wait until the PurgeProducts operation has finished for that ProductSet. The [google.longrunning.Operation][google.longrunning.Operation] API can be used to keep track of the progress and results of the request. `Operation.metadata` contains `BatchOperationMetadata`. (progress)", - "canonical": true, - "file": "product_search.purge_products.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PurgeProducts", - "fullName": "google.cloud.vision.v1.ProductSearch.PurgeProducts", - "async": true, - "parameters": [ - { - "name": "product_set_purge_config", - "type": ".google.cloud.vision.v1.ProductSetPurgeConfig" - }, - { - "name": "delete_orphan_products", - "type": "TYPE_BOOL" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ProductSearchClient", - "fullName": "google.cloud.vision.v1.ProductSearchClient" - }, - "method": { - "shortName": "PurgeProducts", - "fullName": "google.cloud.vision.v1.ProductSearch.PurgeProducts", - "service": { - "shortName": "ProductSearch", - "fullName": "google.cloud.vision.v1.ProductSearch" - } - } - } - } - ] -} diff --git a/packages/google-cloud-vision/samples/generated/v1p1beta1/snippet_metadata_google.cloud.vision.v1p1beta1.json b/packages/google-cloud-vision/samples/generated/v1p1beta1/snippet_metadata_google.cloud.vision.v1p1beta1.json deleted file mode 100644 index cd2a76407d11..000000000000 --- a/packages/google-cloud-vision/samples/generated/v1p1beta1/snippet_metadata_google.cloud.vision.v1p1beta1.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-vision", - "version": "5.3.5", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.vision.v1p1beta1", - "version": "v1p1beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "vision_v1p1beta1_generated_ImageAnnotator_BatchAnnotateImages_async", - "title": "vision batchAnnotateImages Sample", - "origin": "API_DEFINITION", - "description": " Run image detection and annotation for a batch of images.", - "canonical": true, - "file": "image_annotator.batch_annotate_images.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchAnnotateImages", - "fullName": "google.cloud.vision.v1p1beta1.ImageAnnotator.BatchAnnotateImages", - "async": true, - "parameters": [ - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.vision.v1p1beta1.BatchAnnotateImagesResponse", - "client": { - "shortName": "ImageAnnotatorClient", - "fullName": "google.cloud.vision.v1p1beta1.ImageAnnotatorClient" - }, - "method": { - "shortName": "BatchAnnotateImages", - "fullName": "google.cloud.vision.v1p1beta1.ImageAnnotator.BatchAnnotateImages", - "service": { - "shortName": "ImageAnnotator", - "fullName": "google.cloud.vision.v1p1beta1.ImageAnnotator" - } - } - } - } - ] -} diff --git a/packages/google-cloud-vision/samples/generated/v1p2beta1/snippet_metadata_google.cloud.vision.v1p2beta1.json b/packages/google-cloud-vision/samples/generated/v1p2beta1/snippet_metadata_google.cloud.vision.v1p2beta1.json deleted file mode 100644 index 364d1fade857..000000000000 --- a/packages/google-cloud-vision/samples/generated/v1p2beta1/snippet_metadata_google.cloud.vision.v1p2beta1.json +++ /dev/null @@ -1,95 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-vision", - "version": "5.3.5", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.vision.v1p2beta1", - "version": "v1p2beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "vision_v1p2beta1_generated_ImageAnnotator_BatchAnnotateImages_async", - "title": "vision batchAnnotateImages Sample", - "origin": "API_DEFINITION", - "description": " Run image detection and annotation for a batch of images.", - "canonical": true, - "file": "image_annotator.batch_annotate_images.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchAnnotateImages", - "fullName": "google.cloud.vision.v1p2beta1.ImageAnnotator.BatchAnnotateImages", - "async": true, - "parameters": [ - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.vision.v1p2beta1.BatchAnnotateImagesResponse", - "client": { - "shortName": "ImageAnnotatorClient", - "fullName": "google.cloud.vision.v1p2beta1.ImageAnnotatorClient" - }, - "method": { - "shortName": "BatchAnnotateImages", - "fullName": "google.cloud.vision.v1p2beta1.ImageAnnotator.BatchAnnotateImages", - "service": { - "shortName": "ImageAnnotator", - "fullName": "google.cloud.vision.v1p2beta1.ImageAnnotator" - } - } - } - }, - { - "regionTag": "vision_v1p2beta1_generated_ImageAnnotator_AsyncBatchAnnotateFiles_async", - "title": "vision asyncBatchAnnotateFiles Sample", - "origin": "API_DEFINITION", - "description": " Run async image detection and annotation for a list of generic files (e.g. PDF) which may contain multiple pages and multiple images per page. Progress and results can be retrieved through the `google.longrunning.Operations` interface. `Operation.metadata` contains `OperationMetadata` (metadata). `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results).", - "canonical": true, - "file": "image_annotator.async_batch_annotate_files.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AsyncBatchAnnotateFiles", - "fullName": "google.cloud.vision.v1p2beta1.ImageAnnotator.AsyncBatchAnnotateFiles", - "async": true, - "parameters": [ - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ImageAnnotatorClient", - "fullName": "google.cloud.vision.v1p2beta1.ImageAnnotatorClient" - }, - "method": { - "shortName": "AsyncBatchAnnotateFiles", - "fullName": "google.cloud.vision.v1p2beta1.ImageAnnotator.AsyncBatchAnnotateFiles", - "service": { - "shortName": "ImageAnnotator", - "fullName": "google.cloud.vision.v1p2beta1.ImageAnnotator" - } - } - } - } - ] -} diff --git a/packages/google-cloud-vision/samples/generated/v1p3beta1/snippet_metadata_google.cloud.vision.v1p3beta1.json b/packages/google-cloud-vision/samples/generated/v1p3beta1/snippet_metadata_google.cloud.vision.v1p3beta1.json deleted file mode 100644 index ee2d38a34d13..000000000000 --- a/packages/google-cloud-vision/samples/generated/v1p3beta1/snippet_metadata_google.cloud.vision.v1p3beta1.json +++ /dev/null @@ -1,891 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-vision", - "version": "5.3.5", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.vision.v1p3beta1", - "version": "v1p3beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "vision_v1p3beta1_generated_ImageAnnotator_BatchAnnotateImages_async", - "title": "vision batchAnnotateImages Sample", - "origin": "API_DEFINITION", - "description": " Run image detection and annotation for a batch of images.", - "canonical": true, - "file": "image_annotator.batch_annotate_images.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchAnnotateImages", - "fullName": "google.cloud.vision.v1p3beta1.ImageAnnotator.BatchAnnotateImages", - "async": true, - "parameters": [ - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.vision.v1p3beta1.BatchAnnotateImagesResponse", - "client": { - "shortName": "ImageAnnotatorClient", - "fullName": "google.cloud.vision.v1p3beta1.ImageAnnotatorClient" - }, - "method": { - "shortName": "BatchAnnotateImages", - "fullName": "google.cloud.vision.v1p3beta1.ImageAnnotator.BatchAnnotateImages", - "service": { - "shortName": "ImageAnnotator", - "fullName": "google.cloud.vision.v1p3beta1.ImageAnnotator" - } - } - } - }, - { - "regionTag": "vision_v1p3beta1_generated_ImageAnnotator_AsyncBatchAnnotateFiles_async", - "title": "vision asyncBatchAnnotateFiles Sample", - "origin": "API_DEFINITION", - "description": " Run asynchronous image detection and annotation for a list of generic files, such as PDF files, which may contain multiple pages and multiple images per page. Progress and results can be retrieved through the `google.longrunning.Operations` interface. `Operation.metadata` contains `OperationMetadata` (metadata). `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results).", - "canonical": true, - "file": "image_annotator.async_batch_annotate_files.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AsyncBatchAnnotateFiles", - "fullName": "google.cloud.vision.v1p3beta1.ImageAnnotator.AsyncBatchAnnotateFiles", - "async": true, - "parameters": [ - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ImageAnnotatorClient", - "fullName": "google.cloud.vision.v1p3beta1.ImageAnnotatorClient" - }, - "method": { - "shortName": "AsyncBatchAnnotateFiles", - "fullName": "google.cloud.vision.v1p3beta1.ImageAnnotator.AsyncBatchAnnotateFiles", - "service": { - "shortName": "ImageAnnotator", - "fullName": "google.cloud.vision.v1p3beta1.ImageAnnotator" - } - } - } - }, - { - "regionTag": "vision_v1p3beta1_generated_ProductSearch_CreateProductSet_async", - "title": "vision createProductSet Sample", - "origin": "API_DEFINITION", - "description": " Creates and returns a new ProductSet resource. Possible errors: * Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters.", - "canonical": true, - "file": "product_search.create_product_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateProductSet", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearch.CreateProductSet", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "product_set", - "type": ".google.cloud.vision.v1p3beta1.ProductSet" - }, - { - "name": "product_set_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vision.v1p3beta1.ProductSet", - "client": { - "shortName": "ProductSearchClient", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearchClient" - }, - "method": { - "shortName": "CreateProductSet", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearch.CreateProductSet", - "service": { - "shortName": "ProductSearch", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearch" - } - } - } - }, - { - "regionTag": "vision_v1p3beta1_generated_ProductSearch_ListProductSets_async", - "title": "vision listProductSets Sample", - "origin": "API_DEFINITION", - "description": " Lists ProductSets in an unspecified order. Possible errors: * Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1.", - "canonical": true, - "file": "product_search.list_product_sets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListProductSets", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearch.ListProductSets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vision.v1p3beta1.ListProductSetsResponse", - "client": { - "shortName": "ProductSearchClient", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearchClient" - }, - "method": { - "shortName": "ListProductSets", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearch.ListProductSets", - "service": { - "shortName": "ProductSearch", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearch" - } - } - } - }, - { - "regionTag": "vision_v1p3beta1_generated_ProductSearch_GetProductSet_async", - "title": "vision getProductSet Sample", - "origin": "API_DEFINITION", - "description": " Gets information associated with a ProductSet. Possible errors: * Returns NOT_FOUND if the ProductSet does not exist.", - "canonical": true, - "file": "product_search.get_product_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetProductSet", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearch.GetProductSet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vision.v1p3beta1.ProductSet", - "client": { - "shortName": "ProductSearchClient", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearchClient" - }, - "method": { - "shortName": "GetProductSet", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearch.GetProductSet", - "service": { - "shortName": "ProductSearch", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearch" - } - } - } - }, - { - "regionTag": "vision_v1p3beta1_generated_ProductSearch_UpdateProductSet_async", - "title": "vision updateProductSet Sample", - "origin": "API_DEFINITION", - "description": " Makes changes to a ProductSet resource. Only display_name can be updated currently. Possible errors: * Returns NOT_FOUND if the ProductSet does not exist. * Returns INVALID_ARGUMENT if display_name is present in update_mask but missing from the request or longer than 4096 characters.", - "canonical": true, - "file": "product_search.update_product_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateProductSet", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearch.UpdateProductSet", - "async": true, - "parameters": [ - { - "name": "product_set", - "type": ".google.cloud.vision.v1p3beta1.ProductSet" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.vision.v1p3beta1.ProductSet", - "client": { - "shortName": "ProductSearchClient", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearchClient" - }, - "method": { - "shortName": "UpdateProductSet", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearch.UpdateProductSet", - "service": { - "shortName": "ProductSearch", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearch" - } - } - } - }, - { - "regionTag": "vision_v1p3beta1_generated_ProductSearch_DeleteProductSet_async", - "title": "vision deleteProductSet Sample", - "origin": "API_DEFINITION", - "description": " Permanently deletes a ProductSet. All Products and ReferenceImages in the ProductSet will be deleted. The actual image files are not deleted from Google Cloud Storage. Possible errors: * Returns NOT_FOUND if the ProductSet does not exist.", - "canonical": true, - "file": "product_search.delete_product_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteProductSet", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearch.DeleteProductSet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ProductSearchClient", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearchClient" - }, - "method": { - "shortName": "DeleteProductSet", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearch.DeleteProductSet", - "service": { - "shortName": "ProductSearch", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearch" - } - } - } - }, - { - "regionTag": "vision_v1p3beta1_generated_ProductSearch_CreateProduct_async", - "title": "vision createProduct Sample", - "origin": "API_DEFINITION", - "description": " Creates and returns a new product resource. Possible errors: * Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 characters. * Returns INVALID_ARGUMENT if description is longer than 4096 characters. * Returns INVALID_ARGUMENT if product_category is missing or invalid.", - "canonical": true, - "file": "product_search.create_product.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateProduct", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearch.CreateProduct", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "product", - "type": ".google.cloud.vision.v1p3beta1.Product" - }, - { - "name": "product_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vision.v1p3beta1.Product", - "client": { - "shortName": "ProductSearchClient", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearchClient" - }, - "method": { - "shortName": "CreateProduct", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearch.CreateProduct", - "service": { - "shortName": "ProductSearch", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearch" - } - } - } - }, - { - "regionTag": "vision_v1p3beta1_generated_ProductSearch_ListProducts_async", - "title": "vision listProducts Sample", - "origin": "API_DEFINITION", - "description": " Lists products in an unspecified order. Possible errors: * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.", - "canonical": true, - "file": "product_search.list_products.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListProducts", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearch.ListProducts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vision.v1p3beta1.ListProductsResponse", - "client": { - "shortName": "ProductSearchClient", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearchClient" - }, - "method": { - "shortName": "ListProducts", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearch.ListProducts", - "service": { - "shortName": "ProductSearch", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearch" - } - } - } - }, - { - "regionTag": "vision_v1p3beta1_generated_ProductSearch_GetProduct_async", - "title": "vision getProduct Sample", - "origin": "API_DEFINITION", - "description": " Gets information associated with a Product. Possible errors: * Returns NOT_FOUND if the Product does not exist.", - "canonical": true, - "file": "product_search.get_product.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetProduct", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearch.GetProduct", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vision.v1p3beta1.Product", - "client": { - "shortName": "ProductSearchClient", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearchClient" - }, - "method": { - "shortName": "GetProduct", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearch.GetProduct", - "service": { - "shortName": "ProductSearch", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearch" - } - } - } - }, - { - "regionTag": "vision_v1p3beta1_generated_ProductSearch_UpdateProduct_async", - "title": "vision updateProduct Sample", - "origin": "API_DEFINITION", - "description": " Makes changes to a Product resource. Only display_name, description and labels can be updated right now. If labels are updated, the change will not be reflected in queries until the next index time. Possible errors: * Returns NOT_FOUND if the Product does not exist. * Returns INVALID_ARGUMENT if display_name is present in update_mask but is missing from the request or longer than 4096 characters. * Returns INVALID_ARGUMENT if description is present in update_mask but is longer than 4096 characters. * Returns INVALID_ARGUMENT if product_category is present in update_mask.", - "canonical": true, - "file": "product_search.update_product.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateProduct", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearch.UpdateProduct", - "async": true, - "parameters": [ - { - "name": "product", - "type": ".google.cloud.vision.v1p3beta1.Product" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.vision.v1p3beta1.Product", - "client": { - "shortName": "ProductSearchClient", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearchClient" - }, - "method": { - "shortName": "UpdateProduct", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearch.UpdateProduct", - "service": { - "shortName": "ProductSearch", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearch" - } - } - } - }, - { - "regionTag": "vision_v1p3beta1_generated_ProductSearch_DeleteProduct_async", - "title": "vision deleteProduct Sample", - "origin": "API_DEFINITION", - "description": " Permanently deletes a product and its reference images. Metadata of the product and all its images will be deleted right away, but search queries against ProductSets containing the product may still work until all related caches are refreshed. Possible errors: * Returns NOT_FOUND if the product does not exist.", - "canonical": true, - "file": "product_search.delete_product.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteProduct", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearch.DeleteProduct", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ProductSearchClient", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearchClient" - }, - "method": { - "shortName": "DeleteProduct", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearch.DeleteProduct", - "service": { - "shortName": "ProductSearch", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearch" - } - } - } - }, - { - "regionTag": "vision_v1p3beta1_generated_ProductSearch_CreateReferenceImage_async", - "title": "vision createReferenceImage Sample", - "origin": "API_DEFINITION", - "description": " Creates and returns a new ReferenceImage resource. The `bounding_poly` field is optional. If `bounding_poly` is not specified, the system will try to detect regions of interest in the image that are compatible with the product_category on the parent product. If it is specified, detection is ALWAYS skipped. The system converts polygons into non-rotated rectangles. Note that the pipeline will resize the image if the image resolution is too large to process (above 50MP). Possible errors: * Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 characters. * Returns INVALID_ARGUMENT if the product does not exist. * Returns INVALID_ARGUMENT if bounding_poly is not provided, and nothing compatible with the parent product's product_category is detected. * Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons.", - "canonical": true, - "file": "product_search.create_reference_image.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateReferenceImage", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearch.CreateReferenceImage", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "reference_image", - "type": ".google.cloud.vision.v1p3beta1.ReferenceImage" - }, - { - "name": "reference_image_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vision.v1p3beta1.ReferenceImage", - "client": { - "shortName": "ProductSearchClient", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearchClient" - }, - "method": { - "shortName": "CreateReferenceImage", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearch.CreateReferenceImage", - "service": { - "shortName": "ProductSearch", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearch" - } - } - } - }, - { - "regionTag": "vision_v1p3beta1_generated_ProductSearch_DeleteReferenceImage_async", - "title": "vision deleteReferenceImage Sample", - "origin": "API_DEFINITION", - "description": " Permanently deletes a reference image. The image metadata will be deleted right away, but search queries against ProductSets containing the image may still work until all related caches are refreshed. The actual image files are not deleted from Google Cloud Storage. Possible errors: * Returns NOT_FOUND if the reference image does not exist.", - "canonical": true, - "file": "product_search.delete_reference_image.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteReferenceImage", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearch.DeleteReferenceImage", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ProductSearchClient", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearchClient" - }, - "method": { - "shortName": "DeleteReferenceImage", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearch.DeleteReferenceImage", - "service": { - "shortName": "ProductSearch", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearch" - } - } - } - }, - { - "regionTag": "vision_v1p3beta1_generated_ProductSearch_ListReferenceImages_async", - "title": "vision listReferenceImages Sample", - "origin": "API_DEFINITION", - "description": " Lists reference images. Possible errors: * Returns NOT_FOUND if the parent product does not exist. * Returns INVALID_ARGUMENT if the page_size is greater than 100, or less than 1.", - "canonical": true, - "file": "product_search.list_reference_images.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListReferenceImages", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearch.ListReferenceImages", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vision.v1p3beta1.ListReferenceImagesResponse", - "client": { - "shortName": "ProductSearchClient", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearchClient" - }, - "method": { - "shortName": "ListReferenceImages", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearch.ListReferenceImages", - "service": { - "shortName": "ProductSearch", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearch" - } - } - } - }, - { - "regionTag": "vision_v1p3beta1_generated_ProductSearch_GetReferenceImage_async", - "title": "vision getReferenceImage Sample", - "origin": "API_DEFINITION", - "description": " Gets information associated with a ReferenceImage. Possible errors: * Returns NOT_FOUND if the specified image does not exist.", - "canonical": true, - "file": "product_search.get_reference_image.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetReferenceImage", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearch.GetReferenceImage", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vision.v1p3beta1.ReferenceImage", - "client": { - "shortName": "ProductSearchClient", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearchClient" - }, - "method": { - "shortName": "GetReferenceImage", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearch.GetReferenceImage", - "service": { - "shortName": "ProductSearch", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearch" - } - } - } - }, - { - "regionTag": "vision_v1p3beta1_generated_ProductSearch_AddProductToProductSet_async", - "title": "vision addProductToProductSet Sample", - "origin": "API_DEFINITION", - "description": " Adds a Product to the specified ProductSet. If the Product is already present, no change is made. One Product can be added to at most 100 ProductSets. Possible errors: * Returns NOT_FOUND if the Product or the ProductSet doesn't exist.", - "canonical": true, - "file": "product_search.add_product_to_product_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddProductToProductSet", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearch.AddProductToProductSet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "product", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ProductSearchClient", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearchClient" - }, - "method": { - "shortName": "AddProductToProductSet", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearch.AddProductToProductSet", - "service": { - "shortName": "ProductSearch", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearch" - } - } - } - }, - { - "regionTag": "vision_v1p3beta1_generated_ProductSearch_RemoveProductFromProductSet_async", - "title": "vision removeProductFromProductSet Sample", - "origin": "API_DEFINITION", - "description": " Removes a Product from the specified ProductSet. Possible errors: * Returns NOT_FOUND If the Product is not found under the ProductSet.", - "canonical": true, - "file": "product_search.remove_product_from_product_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveProductFromProductSet", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearch.RemoveProductFromProductSet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "product", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ProductSearchClient", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearchClient" - }, - "method": { - "shortName": "RemoveProductFromProductSet", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearch.RemoveProductFromProductSet", - "service": { - "shortName": "ProductSearch", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearch" - } - } - } - }, - { - "regionTag": "vision_v1p3beta1_generated_ProductSearch_ListProductsInProductSet_async", - "title": "vision listProductsInProductSet Sample", - "origin": "API_DEFINITION", - "description": " Lists the Products in a ProductSet, in an unspecified order. If the ProductSet does not exist, the products field of the response will be empty. Possible errors: * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.", - "canonical": true, - "file": "product_search.list_products_in_product_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListProductsInProductSet", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearch.ListProductsInProductSet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse", - "client": { - "shortName": "ProductSearchClient", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearchClient" - }, - "method": { - "shortName": "ListProductsInProductSet", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearch.ListProductsInProductSet", - "service": { - "shortName": "ProductSearch", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearch" - } - } - } - }, - { - "regionTag": "vision_v1p3beta1_generated_ProductSearch_ImportProductSets_async", - "title": "vision importProductSets Sample", - "origin": "API_DEFINITION", - "description": " Asynchronous API that imports a list of reference images to specified product sets based on a list of image information. The [google.longrunning.Operation][google.longrunning.Operation] API can be used to keep track of the progress and results of the request. `Operation.metadata` contains `BatchOperationMetadata`. (progress) `Operation.response` contains `ImportProductSetsResponse`. (results) The input source of this method is a csv file on Google Cloud Storage. For the format of the csv file please see [ImportProductSetsGcsSource.csv_file_uri][google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.csv_file_uri].", - "canonical": true, - "file": "product_search.import_product_sets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportProductSets", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearch.ImportProductSets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "input_config", - "type": ".google.cloud.vision.v1p3beta1.ImportProductSetsInputConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ProductSearchClient", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearchClient" - }, - "method": { - "shortName": "ImportProductSets", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearch.ImportProductSets", - "service": { - "shortName": "ProductSearch", - "fullName": "google.cloud.vision.v1p3beta1.ProductSearch" - } - } - } - } - ] -} diff --git a/packages/google-cloud-vision/samples/generated/v1p4beta1/snippet_metadata_google.cloud.vision.v1p4beta1.json b/packages/google-cloud-vision/samples/generated/v1p4beta1/snippet_metadata_google.cloud.vision.v1p4beta1.json deleted file mode 100644 index d892344b7b3f..000000000000 --- a/packages/google-cloud-vision/samples/generated/v1p4beta1/snippet_metadata_google.cloud.vision.v1p4beta1.json +++ /dev/null @@ -1,1027 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-vision", - "version": "5.3.5", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.vision.v1p4beta1", - "version": "v1p4beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "vision_v1p4beta1_generated_ImageAnnotator_BatchAnnotateImages_async", - "title": "vision batchAnnotateImages Sample", - "origin": "API_DEFINITION", - "description": " Run image detection and annotation for a batch of images.", - "canonical": true, - "file": "image_annotator.batch_annotate_images.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchAnnotateImages", - "fullName": "google.cloud.vision.v1p4beta1.ImageAnnotator.BatchAnnotateImages", - "async": true, - "parameters": [ - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse", - "client": { - "shortName": "ImageAnnotatorClient", - "fullName": "google.cloud.vision.v1p4beta1.ImageAnnotatorClient" - }, - "method": { - "shortName": "BatchAnnotateImages", - "fullName": "google.cloud.vision.v1p4beta1.ImageAnnotator.BatchAnnotateImages", - "service": { - "shortName": "ImageAnnotator", - "fullName": "google.cloud.vision.v1p4beta1.ImageAnnotator" - } - } - } - }, - { - "regionTag": "vision_v1p4beta1_generated_ImageAnnotator_BatchAnnotateFiles_async", - "title": "vision batchAnnotateFiles Sample", - "origin": "API_DEFINITION", - "description": " Service that performs image detection and annotation for a batch of files. Now only \"application/pdf\", \"image/tiff\" and \"image/gif\" are supported. This service will extract at most 5 (customers can specify which 5 in AnnotateFileRequest.pages) frames (gif) or pages (pdf or tiff) from each file provided and perform detection and annotation for each image extracted.", - "canonical": true, - "file": "image_annotator.batch_annotate_files.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchAnnotateFiles", - "fullName": "google.cloud.vision.v1p4beta1.ImageAnnotator.BatchAnnotateFiles", - "async": true, - "parameters": [ - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse", - "client": { - "shortName": "ImageAnnotatorClient", - "fullName": "google.cloud.vision.v1p4beta1.ImageAnnotatorClient" - }, - "method": { - "shortName": "BatchAnnotateFiles", - "fullName": "google.cloud.vision.v1p4beta1.ImageAnnotator.BatchAnnotateFiles", - "service": { - "shortName": "ImageAnnotator", - "fullName": "google.cloud.vision.v1p4beta1.ImageAnnotator" - } - } - } - }, - { - "regionTag": "vision_v1p4beta1_generated_ImageAnnotator_AsyncBatchAnnotateImages_async", - "title": "vision asyncBatchAnnotateImages Sample", - "origin": "API_DEFINITION", - "description": " Run asynchronous image detection and annotation for a list of images. Progress and results can be retrieved through the `google.longrunning.Operations` interface. `Operation.metadata` contains `OperationMetadata` (metadata). `Operation.response` contains `AsyncBatchAnnotateImagesResponse` (results). This service will write image annotation outputs to json files in customer GCS bucket, each json file containing BatchAnnotateImagesResponse proto.", - "canonical": true, - "file": "image_annotator.async_batch_annotate_images.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AsyncBatchAnnotateImages", - "fullName": "google.cloud.vision.v1p4beta1.ImageAnnotator.AsyncBatchAnnotateImages", - "async": true, - "parameters": [ - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "output_config", - "type": ".google.cloud.vision.v1p4beta1.OutputConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ImageAnnotatorClient", - "fullName": "google.cloud.vision.v1p4beta1.ImageAnnotatorClient" - }, - "method": { - "shortName": "AsyncBatchAnnotateImages", - "fullName": "google.cloud.vision.v1p4beta1.ImageAnnotator.AsyncBatchAnnotateImages", - "service": { - "shortName": "ImageAnnotator", - "fullName": "google.cloud.vision.v1p4beta1.ImageAnnotator" - } - } - } - }, - { - "regionTag": "vision_v1p4beta1_generated_ImageAnnotator_AsyncBatchAnnotateFiles_async", - "title": "vision asyncBatchAnnotateFiles Sample", - "origin": "API_DEFINITION", - "description": " Run asynchronous image detection and annotation for a list of generic files, such as PDF files, which may contain multiple pages and multiple images per page. Progress and results can be retrieved through the `google.longrunning.Operations` interface. `Operation.metadata` contains `OperationMetadata` (metadata). `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results).", - "canonical": true, - "file": "image_annotator.async_batch_annotate_files.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AsyncBatchAnnotateFiles", - "fullName": "google.cloud.vision.v1p4beta1.ImageAnnotator.AsyncBatchAnnotateFiles", - "async": true, - "parameters": [ - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ImageAnnotatorClient", - "fullName": "google.cloud.vision.v1p4beta1.ImageAnnotatorClient" - }, - "method": { - "shortName": "AsyncBatchAnnotateFiles", - "fullName": "google.cloud.vision.v1p4beta1.ImageAnnotator.AsyncBatchAnnotateFiles", - "service": { - "shortName": "ImageAnnotator", - "fullName": "google.cloud.vision.v1p4beta1.ImageAnnotator" - } - } - } - }, - { - "regionTag": "vision_v1p4beta1_generated_ProductSearch_CreateProductSet_async", - "title": "vision createProductSet Sample", - "origin": "API_DEFINITION", - "description": " Creates and returns a new ProductSet resource. Possible errors: * Returns INVALID_ARGUMENT if display_name is missing, or is longer than 4096 characters.", - "canonical": true, - "file": "product_search.create_product_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateProductSet", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearch.CreateProductSet", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "product_set", - "type": ".google.cloud.vision.v1p4beta1.ProductSet" - }, - { - "name": "product_set_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vision.v1p4beta1.ProductSet", - "client": { - "shortName": "ProductSearchClient", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearchClient" - }, - "method": { - "shortName": "CreateProductSet", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearch.CreateProductSet", - "service": { - "shortName": "ProductSearch", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearch" - } - } - } - }, - { - "regionTag": "vision_v1p4beta1_generated_ProductSearch_ListProductSets_async", - "title": "vision listProductSets Sample", - "origin": "API_DEFINITION", - "description": " Lists ProductSets in an unspecified order. Possible errors: * Returns INVALID_ARGUMENT if page_size is greater than 100, or less than 1.", - "canonical": true, - "file": "product_search.list_product_sets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListProductSets", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearch.ListProductSets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vision.v1p4beta1.ListProductSetsResponse", - "client": { - "shortName": "ProductSearchClient", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearchClient" - }, - "method": { - "shortName": "ListProductSets", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearch.ListProductSets", - "service": { - "shortName": "ProductSearch", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearch" - } - } - } - }, - { - "regionTag": "vision_v1p4beta1_generated_ProductSearch_GetProductSet_async", - "title": "vision getProductSet Sample", - "origin": "API_DEFINITION", - "description": " Gets information associated with a ProductSet. Possible errors: * Returns NOT_FOUND if the ProductSet does not exist.", - "canonical": true, - "file": "product_search.get_product_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetProductSet", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearch.GetProductSet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vision.v1p4beta1.ProductSet", - "client": { - "shortName": "ProductSearchClient", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearchClient" - }, - "method": { - "shortName": "GetProductSet", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearch.GetProductSet", - "service": { - "shortName": "ProductSearch", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearch" - } - } - } - }, - { - "regionTag": "vision_v1p4beta1_generated_ProductSearch_UpdateProductSet_async", - "title": "vision updateProductSet Sample", - "origin": "API_DEFINITION", - "description": " Makes changes to a ProductSet resource. Only display_name can be updated currently. Possible errors: * Returns NOT_FOUND if the ProductSet does not exist. * Returns INVALID_ARGUMENT if display_name is present in update_mask but missing from the request or longer than 4096 characters.", - "canonical": true, - "file": "product_search.update_product_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateProductSet", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearch.UpdateProductSet", - "async": true, - "parameters": [ - { - "name": "product_set", - "type": ".google.cloud.vision.v1p4beta1.ProductSet" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.vision.v1p4beta1.ProductSet", - "client": { - "shortName": "ProductSearchClient", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearchClient" - }, - "method": { - "shortName": "UpdateProductSet", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearch.UpdateProductSet", - "service": { - "shortName": "ProductSearch", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearch" - } - } - } - }, - { - "regionTag": "vision_v1p4beta1_generated_ProductSearch_DeleteProductSet_async", - "title": "vision deleteProductSet Sample", - "origin": "API_DEFINITION", - "description": " Permanently deletes a ProductSet. Products and ReferenceImages in the ProductSet are not deleted. The actual image files are not deleted from Google Cloud Storage.", - "canonical": true, - "file": "product_search.delete_product_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteProductSet", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearch.DeleteProductSet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ProductSearchClient", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearchClient" - }, - "method": { - "shortName": "DeleteProductSet", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearch.DeleteProductSet", - "service": { - "shortName": "ProductSearch", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearch" - } - } - } - }, - { - "regionTag": "vision_v1p4beta1_generated_ProductSearch_CreateProduct_async", - "title": "vision createProduct Sample", - "origin": "API_DEFINITION", - "description": " Creates and returns a new product resource. Possible errors: * Returns INVALID_ARGUMENT if display_name is missing or longer than 4096 characters. * Returns INVALID_ARGUMENT if description is longer than 4096 characters. * Returns INVALID_ARGUMENT if product_category is missing or invalid.", - "canonical": true, - "file": "product_search.create_product.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateProduct", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearch.CreateProduct", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "product", - "type": ".google.cloud.vision.v1p4beta1.Product" - }, - { - "name": "product_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vision.v1p4beta1.Product", - "client": { - "shortName": "ProductSearchClient", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearchClient" - }, - "method": { - "shortName": "CreateProduct", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearch.CreateProduct", - "service": { - "shortName": "ProductSearch", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearch" - } - } - } - }, - { - "regionTag": "vision_v1p4beta1_generated_ProductSearch_ListProducts_async", - "title": "vision listProducts Sample", - "origin": "API_DEFINITION", - "description": " Lists products in an unspecified order. Possible errors: * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.", - "canonical": true, - "file": "product_search.list_products.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListProducts", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearch.ListProducts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vision.v1p4beta1.ListProductsResponse", - "client": { - "shortName": "ProductSearchClient", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearchClient" - }, - "method": { - "shortName": "ListProducts", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearch.ListProducts", - "service": { - "shortName": "ProductSearch", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearch" - } - } - } - }, - { - "regionTag": "vision_v1p4beta1_generated_ProductSearch_GetProduct_async", - "title": "vision getProduct Sample", - "origin": "API_DEFINITION", - "description": " Gets information associated with a Product. Possible errors: * Returns NOT_FOUND if the Product does not exist.", - "canonical": true, - "file": "product_search.get_product.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetProduct", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearch.GetProduct", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vision.v1p4beta1.Product", - "client": { - "shortName": "ProductSearchClient", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearchClient" - }, - "method": { - "shortName": "GetProduct", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearch.GetProduct", - "service": { - "shortName": "ProductSearch", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearch" - } - } - } - }, - { - "regionTag": "vision_v1p4beta1_generated_ProductSearch_UpdateProduct_async", - "title": "vision updateProduct Sample", - "origin": "API_DEFINITION", - "description": " Makes changes to a Product resource. Only the `display_name`, `description`, and `labels` fields can be updated right now. If labels are updated, the change will not be reflected in queries until the next index time. Possible errors: * Returns NOT_FOUND if the Product does not exist. * Returns INVALID_ARGUMENT if display_name is present in update_mask but is missing from the request or longer than 4096 characters. * Returns INVALID_ARGUMENT if description is present in update_mask but is longer than 4096 characters. * Returns INVALID_ARGUMENT if product_category is present in update_mask.", - "canonical": true, - "file": "product_search.update_product.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateProduct", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearch.UpdateProduct", - "async": true, - "parameters": [ - { - "name": "product", - "type": ".google.cloud.vision.v1p4beta1.Product" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.vision.v1p4beta1.Product", - "client": { - "shortName": "ProductSearchClient", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearchClient" - }, - "method": { - "shortName": "UpdateProduct", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearch.UpdateProduct", - "service": { - "shortName": "ProductSearch", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearch" - } - } - } - }, - { - "regionTag": "vision_v1p4beta1_generated_ProductSearch_DeleteProduct_async", - "title": "vision deleteProduct Sample", - "origin": "API_DEFINITION", - "description": " Permanently deletes a product and its reference images. Metadata of the product and all its images will be deleted right away, but search queries against ProductSets containing the product may still work until all related caches are refreshed.", - "canonical": true, - "file": "product_search.delete_product.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteProduct", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearch.DeleteProduct", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ProductSearchClient", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearchClient" - }, - "method": { - "shortName": "DeleteProduct", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearch.DeleteProduct", - "service": { - "shortName": "ProductSearch", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearch" - } - } - } - }, - { - "regionTag": "vision_v1p4beta1_generated_ProductSearch_CreateReferenceImage_async", - "title": "vision createReferenceImage Sample", - "origin": "API_DEFINITION", - "description": " Creates and returns a new ReferenceImage resource. The `bounding_poly` field is optional. If `bounding_poly` is not specified, the system will try to detect regions of interest in the image that are compatible with the product_category on the parent product. If it is specified, detection is ALWAYS skipped. The system converts polygons into non-rotated rectangles. Note that the pipeline will resize the image if the image resolution is too large to process (above 50MP). Possible errors: * Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096 characters. * Returns INVALID_ARGUMENT if the product does not exist. * Returns INVALID_ARGUMENT if bounding_poly is not provided, and nothing compatible with the parent product's product_category is detected. * Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons.", - "canonical": true, - "file": "product_search.create_reference_image.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateReferenceImage", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearch.CreateReferenceImage", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "reference_image", - "type": ".google.cloud.vision.v1p4beta1.ReferenceImage" - }, - { - "name": "reference_image_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vision.v1p4beta1.ReferenceImage", - "client": { - "shortName": "ProductSearchClient", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearchClient" - }, - "method": { - "shortName": "CreateReferenceImage", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearch.CreateReferenceImage", - "service": { - "shortName": "ProductSearch", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearch" - } - } - } - }, - { - "regionTag": "vision_v1p4beta1_generated_ProductSearch_DeleteReferenceImage_async", - "title": "vision deleteReferenceImage Sample", - "origin": "API_DEFINITION", - "description": " Permanently deletes a reference image. The image metadata will be deleted right away, but search queries against ProductSets containing the image may still work until all related caches are refreshed. The actual image files are not deleted from Google Cloud Storage.", - "canonical": true, - "file": "product_search.delete_reference_image.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteReferenceImage", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearch.DeleteReferenceImage", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ProductSearchClient", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearchClient" - }, - "method": { - "shortName": "DeleteReferenceImage", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearch.DeleteReferenceImage", - "service": { - "shortName": "ProductSearch", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearch" - } - } - } - }, - { - "regionTag": "vision_v1p4beta1_generated_ProductSearch_ListReferenceImages_async", - "title": "vision listReferenceImages Sample", - "origin": "API_DEFINITION", - "description": " Lists reference images. Possible errors: * Returns NOT_FOUND if the parent product does not exist. * Returns INVALID_ARGUMENT if the page_size is greater than 100, or less than 1.", - "canonical": true, - "file": "product_search.list_reference_images.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListReferenceImages", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearch.ListReferenceImages", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vision.v1p4beta1.ListReferenceImagesResponse", - "client": { - "shortName": "ProductSearchClient", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearchClient" - }, - "method": { - "shortName": "ListReferenceImages", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearch.ListReferenceImages", - "service": { - "shortName": "ProductSearch", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearch" - } - } - } - }, - { - "regionTag": "vision_v1p4beta1_generated_ProductSearch_GetReferenceImage_async", - "title": "vision getReferenceImage Sample", - "origin": "API_DEFINITION", - "description": " Gets information associated with a ReferenceImage. Possible errors: * Returns NOT_FOUND if the specified image does not exist.", - "canonical": true, - "file": "product_search.get_reference_image.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetReferenceImage", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearch.GetReferenceImage", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vision.v1p4beta1.ReferenceImage", - "client": { - "shortName": "ProductSearchClient", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearchClient" - }, - "method": { - "shortName": "GetReferenceImage", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearch.GetReferenceImage", - "service": { - "shortName": "ProductSearch", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearch" - } - } - } - }, - { - "regionTag": "vision_v1p4beta1_generated_ProductSearch_AddProductToProductSet_async", - "title": "vision addProductToProductSet Sample", - "origin": "API_DEFINITION", - "description": " Adds a Product to the specified ProductSet. If the Product is already present, no change is made. One Product can be added to at most 100 ProductSets. Possible errors: * Returns NOT_FOUND if the Product or the ProductSet doesn't exist.", - "canonical": true, - "file": "product_search.add_product_to_product_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddProductToProductSet", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearch.AddProductToProductSet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "product", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ProductSearchClient", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearchClient" - }, - "method": { - "shortName": "AddProductToProductSet", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearch.AddProductToProductSet", - "service": { - "shortName": "ProductSearch", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearch" - } - } - } - }, - { - "regionTag": "vision_v1p4beta1_generated_ProductSearch_RemoveProductFromProductSet_async", - "title": "vision removeProductFromProductSet Sample", - "origin": "API_DEFINITION", - "description": " Removes a Product from the specified ProductSet.", - "canonical": true, - "file": "product_search.remove_product_from_product_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveProductFromProductSet", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearch.RemoveProductFromProductSet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "product", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ProductSearchClient", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearchClient" - }, - "method": { - "shortName": "RemoveProductFromProductSet", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearch.RemoveProductFromProductSet", - "service": { - "shortName": "ProductSearch", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearch" - } - } - } - }, - { - "regionTag": "vision_v1p4beta1_generated_ProductSearch_ListProductsInProductSet_async", - "title": "vision listProductsInProductSet Sample", - "origin": "API_DEFINITION", - "description": " Lists the Products in a ProductSet, in an unspecified order. If the ProductSet does not exist, the products field of the response will be empty. Possible errors: * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.", - "canonical": true, - "file": "product_search.list_products_in_product_set.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListProductsInProductSet", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearch.ListProductsInProductSet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vision.v1p4beta1.ListProductsInProductSetResponse", - "client": { - "shortName": "ProductSearchClient", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearchClient" - }, - "method": { - "shortName": "ListProductsInProductSet", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearch.ListProductsInProductSet", - "service": { - "shortName": "ProductSearch", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearch" - } - } - } - }, - { - "regionTag": "vision_v1p4beta1_generated_ProductSearch_ImportProductSets_async", - "title": "vision importProductSets Sample", - "origin": "API_DEFINITION", - "description": " Asynchronous API that imports a list of reference images to specified product sets based on a list of image information. The [google.longrunning.Operation][google.longrunning.Operation] API can be used to keep track of the progress and results of the request. `Operation.metadata` contains `BatchOperationMetadata`. (progress) `Operation.response` contains `ImportProductSetsResponse`. (results) The input source of this method is a csv file on Google Cloud Storage. For the format of the csv file please see [ImportProductSetsGcsSource.csv_file_uri][google.cloud.vision.v1p4beta1.ImportProductSetsGcsSource.csv_file_uri].", - "canonical": true, - "file": "product_search.import_product_sets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportProductSets", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearch.ImportProductSets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "input_config", - "type": ".google.cloud.vision.v1p4beta1.ImportProductSetsInputConfig" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ProductSearchClient", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearchClient" - }, - "method": { - "shortName": "ImportProductSets", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearch.ImportProductSets", - "service": { - "shortName": "ProductSearch", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearch" - } - } - } - }, - { - "regionTag": "vision_v1p4beta1_generated_ProductSearch_PurgeProducts_async", - "title": "vision purgeProducts Sample", - "origin": "API_DEFINITION", - "description": " Asynchronous API to delete all Products in a ProductSet or all Products that are in no ProductSet. If a Product is a member of the specified ProductSet in addition to other ProductSets, the Product will still be deleted. It is recommended to not delete the specified ProductSet until after this operation has completed. It is also recommended to not add any of the Products involved in the batch delete to a new ProductSet while this operation is running because those Products may still end up deleted. It's not possible to undo the PurgeProducts operation. Therefore, it is recommended to keep the csv files used in ImportProductSets (if that was how you originally built the Product Set) before starting PurgeProducts, in case you need to re-import the data after deletion. If the plan is to purge all of the Products from a ProductSet and then re-use the empty ProductSet to re-import new Products into the empty ProductSet, you must wait until the PurgeProducts operation has finished for that ProductSet. The [google.longrunning.Operation][google.longrunning.Operation] API can be used to keep track of the progress and results of the request. `Operation.metadata` contains `BatchOperationMetadata`. (progress)", - "canonical": true, - "file": "product_search.purge_products.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PurgeProducts", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearch.PurgeProducts", - "async": true, - "parameters": [ - { - "name": "product_set_purge_config", - "type": ".google.cloud.vision.v1p4beta1.ProductSetPurgeConfig" - }, - { - "name": "delete_orphan_products", - "type": "TYPE_BOOL" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ProductSearchClient", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearchClient" - }, - "method": { - "shortName": "PurgeProducts", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearch.PurgeProducts", - "service": { - "shortName": "ProductSearch", - "fullName": "google.cloud.vision.v1p4beta1.ProductSearch" - } - } - } - } - ] -} diff --git a/packages/google-cloud-visionai/samples/generated/v1/snippet_metadata_google.cloud.visionai.v1.json b/packages/google-cloud-visionai/samples/generated/v1/snippet_metadata_google.cloud.visionai.v1.json deleted file mode 100644 index 2eb32aa71cc7..000000000000 --- a/packages/google-cloud-visionai/samples/generated/v1/snippet_metadata_google.cloud.visionai.v1.json +++ /dev/null @@ -1,6391 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-visionai", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.visionai.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "warehouse-visionai_v1_generated_AppPlatform_ListApplications_async", - "title": "AppPlatform listApplications Sample", - "origin": "API_DEFINITION", - "description": " Lists Applications in a given project and location.", - "canonical": true, - "file": "app_platform.list_applications.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListApplications", - "fullName": "google.cloud.visionai.v1.AppPlatform.ListApplications", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.visionai.v1.ListApplicationsResponse", - "client": { - "shortName": "AppPlatformClient", - "fullName": "google.cloud.visionai.v1.AppPlatformClient" - }, - "method": { - "shortName": "ListApplications", - "fullName": "google.cloud.visionai.v1.AppPlatform.ListApplications", - "service": { - "shortName": "AppPlatform", - "fullName": "google.cloud.visionai.v1.AppPlatform" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_AppPlatform_GetApplication_async", - "title": "AppPlatform getApplication Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Application.", - "canonical": true, - "file": "app_platform.get_application.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetApplication", - "fullName": "google.cloud.visionai.v1.AppPlatform.GetApplication", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.visionai.v1.Application", - "client": { - "shortName": "AppPlatformClient", - "fullName": "google.cloud.visionai.v1.AppPlatformClient" - }, - "method": { - "shortName": "GetApplication", - "fullName": "google.cloud.visionai.v1.AppPlatform.GetApplication", - "service": { - "shortName": "AppPlatform", - "fullName": "google.cloud.visionai.v1.AppPlatform" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_AppPlatform_CreateApplication_async", - "title": "AppPlatform createApplication Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Application in a given project and location.", - "canonical": true, - "file": "app_platform.create_application.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateApplication", - "fullName": "google.cloud.visionai.v1.AppPlatform.CreateApplication", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "application_id", - "type": "TYPE_STRING" - }, - { - "name": "application", - "type": ".google.cloud.visionai.v1.Application" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AppPlatformClient", - "fullName": "google.cloud.visionai.v1.AppPlatformClient" - }, - "method": { - "shortName": "CreateApplication", - "fullName": "google.cloud.visionai.v1.AppPlatform.CreateApplication", - "service": { - "shortName": "AppPlatform", - "fullName": "google.cloud.visionai.v1.AppPlatform" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_AppPlatform_UpdateApplication_async", - "title": "AppPlatform updateApplication Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Application.", - "canonical": true, - "file": "app_platform.update_application.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateApplication", - "fullName": "google.cloud.visionai.v1.AppPlatform.UpdateApplication", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "application", - "type": ".google.cloud.visionai.v1.Application" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AppPlatformClient", - "fullName": "google.cloud.visionai.v1.AppPlatformClient" - }, - "method": { - "shortName": "UpdateApplication", - "fullName": "google.cloud.visionai.v1.AppPlatform.UpdateApplication", - "service": { - "shortName": "AppPlatform", - "fullName": "google.cloud.visionai.v1.AppPlatform" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_AppPlatform_DeleteApplication_async", - "title": "AppPlatform deleteApplication Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Application.", - "canonical": true, - "file": "app_platform.delete_application.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteApplication", - "fullName": "google.cloud.visionai.v1.AppPlatform.DeleteApplication", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AppPlatformClient", - "fullName": "google.cloud.visionai.v1.AppPlatformClient" - }, - "method": { - "shortName": "DeleteApplication", - "fullName": "google.cloud.visionai.v1.AppPlatform.DeleteApplication", - "service": { - "shortName": "AppPlatform", - "fullName": "google.cloud.visionai.v1.AppPlatform" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_AppPlatform_DeployApplication_async", - "title": "AppPlatform deployApplication Sample", - "origin": "API_DEFINITION", - "description": " Deploys a single Application.", - "canonical": true, - "file": "app_platform.deploy_application.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeployApplication", - "fullName": "google.cloud.visionai.v1.AppPlatform.DeployApplication", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "enable_monitoring", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AppPlatformClient", - "fullName": "google.cloud.visionai.v1.AppPlatformClient" - }, - "method": { - "shortName": "DeployApplication", - "fullName": "google.cloud.visionai.v1.AppPlatform.DeployApplication", - "service": { - "shortName": "AppPlatform", - "fullName": "google.cloud.visionai.v1.AppPlatform" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_AppPlatform_UndeployApplication_async", - "title": "AppPlatform undeployApplication Sample", - "origin": "API_DEFINITION", - "description": " Undeploys a single Application.", - "canonical": true, - "file": "app_platform.undeploy_application.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UndeployApplication", - "fullName": "google.cloud.visionai.v1.AppPlatform.UndeployApplication", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AppPlatformClient", - "fullName": "google.cloud.visionai.v1.AppPlatformClient" - }, - "method": { - "shortName": "UndeployApplication", - "fullName": "google.cloud.visionai.v1.AppPlatform.UndeployApplication", - "service": { - "shortName": "AppPlatform", - "fullName": "google.cloud.visionai.v1.AppPlatform" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_AppPlatform_AddApplicationStreamInput_async", - "title": "AppPlatform addApplicationStreamInput Sample", - "origin": "API_DEFINITION", - "description": " Adds target stream input to the Application. If the Application is deployed, the corresponding new Application instance will be created. If the stream has already been in the Application, the RPC will fail.", - "canonical": true, - "file": "app_platform.add_application_stream_input.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddApplicationStreamInput", - "fullName": "google.cloud.visionai.v1.AppPlatform.AddApplicationStreamInput", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "application_stream_inputs", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AppPlatformClient", - "fullName": "google.cloud.visionai.v1.AppPlatformClient" - }, - "method": { - "shortName": "AddApplicationStreamInput", - "fullName": "google.cloud.visionai.v1.AppPlatform.AddApplicationStreamInput", - "service": { - "shortName": "AppPlatform", - "fullName": "google.cloud.visionai.v1.AppPlatform" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_AppPlatform_RemoveApplicationStreamInput_async", - "title": "AppPlatform removeApplicationStreamInput Sample", - "origin": "API_DEFINITION", - "description": " Remove target stream input to the Application, if the Application is deployed, the corresponding instance based will be deleted. If the stream is not in the Application, the RPC will fail.", - "canonical": true, - "file": "app_platform.remove_application_stream_input.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveApplicationStreamInput", - "fullName": "google.cloud.visionai.v1.AppPlatform.RemoveApplicationStreamInput", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "target_stream_inputs", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AppPlatformClient", - "fullName": "google.cloud.visionai.v1.AppPlatformClient" - }, - "method": { - "shortName": "RemoveApplicationStreamInput", - "fullName": "google.cloud.visionai.v1.AppPlatform.RemoveApplicationStreamInput", - "service": { - "shortName": "AppPlatform", - "fullName": "google.cloud.visionai.v1.AppPlatform" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_AppPlatform_UpdateApplicationStreamInput_async", - "title": "AppPlatform updateApplicationStreamInput Sample", - "origin": "API_DEFINITION", - "description": " Update target stream input to the Application, if the Application is deployed, the corresponding instance based will be deployed. For CreateOrUpdate behavior, set allow_missing to true.", - "canonical": true, - "file": "app_platform.update_application_stream_input.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateApplicationStreamInput", - "fullName": "google.cloud.visionai.v1.AppPlatform.UpdateApplicationStreamInput", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "application_stream_inputs", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AppPlatformClient", - "fullName": "google.cloud.visionai.v1.AppPlatformClient" - }, - "method": { - "shortName": "UpdateApplicationStreamInput", - "fullName": "google.cloud.visionai.v1.AppPlatform.UpdateApplicationStreamInput", - "service": { - "shortName": "AppPlatform", - "fullName": "google.cloud.visionai.v1.AppPlatform" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_AppPlatform_ListInstances_async", - "title": "AppPlatform listInstances Sample", - "origin": "API_DEFINITION", - "description": " Lists Instances in a given project and location.", - "canonical": true, - "file": "app_platform.list_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListInstances", - "fullName": "google.cloud.visionai.v1.AppPlatform.ListInstances", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.visionai.v1.ListInstancesResponse", - "client": { - "shortName": "AppPlatformClient", - "fullName": "google.cloud.visionai.v1.AppPlatformClient" - }, - "method": { - "shortName": "ListInstances", - "fullName": "google.cloud.visionai.v1.AppPlatform.ListInstances", - "service": { - "shortName": "AppPlatform", - "fullName": "google.cloud.visionai.v1.AppPlatform" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_AppPlatform_GetInstance_async", - "title": "AppPlatform getInstance Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Instance.", - "canonical": true, - "file": "app_platform.get_instance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetInstance", - "fullName": "google.cloud.visionai.v1.AppPlatform.GetInstance", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.visionai.v1.Instance", - "client": { - "shortName": "AppPlatformClient", - "fullName": "google.cloud.visionai.v1.AppPlatformClient" - }, - "method": { - "shortName": "GetInstance", - "fullName": "google.cloud.visionai.v1.AppPlatform.GetInstance", - "service": { - "shortName": "AppPlatform", - "fullName": "google.cloud.visionai.v1.AppPlatform" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_AppPlatform_CreateApplicationInstances_async", - "title": "AppPlatform createApplicationInstances Sample", - "origin": "API_DEFINITION", - "description": " Adds target stream input to the Application. If the Application is deployed, the corresponding new Application instance will be created. If the stream has already been in the Application, the RPC will fail.", - "canonical": true, - "file": "app_platform.create_application_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateApplicationInstances", - "fullName": "google.cloud.visionai.v1.AppPlatform.CreateApplicationInstances", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "application_instances", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AppPlatformClient", - "fullName": "google.cloud.visionai.v1.AppPlatformClient" - }, - "method": { - "shortName": "CreateApplicationInstances", - "fullName": "google.cloud.visionai.v1.AppPlatform.CreateApplicationInstances", - "service": { - "shortName": "AppPlatform", - "fullName": "google.cloud.visionai.v1.AppPlatform" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_AppPlatform_DeleteApplicationInstances_async", - "title": "AppPlatform deleteApplicationInstances Sample", - "origin": "API_DEFINITION", - "description": " Remove target stream input to the Application, if the Application is deployed, the corresponding instance based will be deleted. If the stream is not in the Application, the RPC will fail.", - "canonical": true, - "file": "app_platform.delete_application_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteApplicationInstances", - "fullName": "google.cloud.visionai.v1.AppPlatform.DeleteApplicationInstances", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "instance_ids", - "type": "TYPE_STRING[]" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AppPlatformClient", - "fullName": "google.cloud.visionai.v1.AppPlatformClient" - }, - "method": { - "shortName": "DeleteApplicationInstances", - "fullName": "google.cloud.visionai.v1.AppPlatform.DeleteApplicationInstances", - "service": { - "shortName": "AppPlatform", - "fullName": "google.cloud.visionai.v1.AppPlatform" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_AppPlatform_UpdateApplicationInstances_async", - "title": "AppPlatform updateApplicationInstances Sample", - "origin": "API_DEFINITION", - "description": " Adds target stream input to the Application. If the Application is deployed, the corresponding new Application instance will be created. If the stream has already been in the Application, the RPC will fail.", - "canonical": true, - "file": "app_platform.update_application_instances.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateApplicationInstances", - "fullName": "google.cloud.visionai.v1.AppPlatform.UpdateApplicationInstances", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "application_instances", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AppPlatformClient", - "fullName": "google.cloud.visionai.v1.AppPlatformClient" - }, - "method": { - "shortName": "UpdateApplicationInstances", - "fullName": "google.cloud.visionai.v1.AppPlatform.UpdateApplicationInstances", - "service": { - "shortName": "AppPlatform", - "fullName": "google.cloud.visionai.v1.AppPlatform" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_AppPlatform_ListDrafts_async", - "title": "AppPlatform listDrafts Sample", - "origin": "API_DEFINITION", - "description": " Lists Drafts in a given project and location.", - "canonical": true, - "file": "app_platform.list_drafts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDrafts", - "fullName": "google.cloud.visionai.v1.AppPlatform.ListDrafts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.visionai.v1.ListDraftsResponse", - "client": { - "shortName": "AppPlatformClient", - "fullName": "google.cloud.visionai.v1.AppPlatformClient" - }, - "method": { - "shortName": "ListDrafts", - "fullName": "google.cloud.visionai.v1.AppPlatform.ListDrafts", - "service": { - "shortName": "AppPlatform", - "fullName": "google.cloud.visionai.v1.AppPlatform" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_AppPlatform_GetDraft_async", - "title": "AppPlatform getDraft Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Draft.", - "canonical": true, - "file": "app_platform.get_draft.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDraft", - "fullName": "google.cloud.visionai.v1.AppPlatform.GetDraft", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.visionai.v1.Draft", - "client": { - "shortName": "AppPlatformClient", - "fullName": "google.cloud.visionai.v1.AppPlatformClient" - }, - "method": { - "shortName": "GetDraft", - "fullName": "google.cloud.visionai.v1.AppPlatform.GetDraft", - "service": { - "shortName": "AppPlatform", - "fullName": "google.cloud.visionai.v1.AppPlatform" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_AppPlatform_CreateDraft_async", - "title": "AppPlatform createDraft Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Draft in a given project and location.", - "canonical": true, - "file": "app_platform.create_draft.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDraft", - "fullName": "google.cloud.visionai.v1.AppPlatform.CreateDraft", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "draft_id", - "type": "TYPE_STRING" - }, - { - "name": "draft", - "type": ".google.cloud.visionai.v1.Draft" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AppPlatformClient", - "fullName": "google.cloud.visionai.v1.AppPlatformClient" - }, - "method": { - "shortName": "CreateDraft", - "fullName": "google.cloud.visionai.v1.AppPlatform.CreateDraft", - "service": { - "shortName": "AppPlatform", - "fullName": "google.cloud.visionai.v1.AppPlatform" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_AppPlatform_UpdateDraft_async", - "title": "AppPlatform updateDraft Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Draft.", - "canonical": true, - "file": "app_platform.update_draft.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDraft", - "fullName": "google.cloud.visionai.v1.AppPlatform.UpdateDraft", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "draft", - "type": ".google.cloud.visionai.v1.Draft" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AppPlatformClient", - "fullName": "google.cloud.visionai.v1.AppPlatformClient" - }, - "method": { - "shortName": "UpdateDraft", - "fullName": "google.cloud.visionai.v1.AppPlatform.UpdateDraft", - "service": { - "shortName": "AppPlatform", - "fullName": "google.cloud.visionai.v1.AppPlatform" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_AppPlatform_DeleteDraft_async", - "title": "AppPlatform deleteDraft Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Draft.", - "canonical": true, - "file": "app_platform.delete_draft.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDraft", - "fullName": "google.cloud.visionai.v1.AppPlatform.DeleteDraft", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AppPlatformClient", - "fullName": "google.cloud.visionai.v1.AppPlatformClient" - }, - "method": { - "shortName": "DeleteDraft", - "fullName": "google.cloud.visionai.v1.AppPlatform.DeleteDraft", - "service": { - "shortName": "AppPlatform", - "fullName": "google.cloud.visionai.v1.AppPlatform" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_AppPlatform_ListProcessors_async", - "title": "AppPlatform listProcessors Sample", - "origin": "API_DEFINITION", - "description": " Lists Processors in a given project and location.", - "canonical": true, - "file": "app_platform.list_processors.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListProcessors", - "fullName": "google.cloud.visionai.v1.AppPlatform.ListProcessors", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.visionai.v1.ListProcessorsResponse", - "client": { - "shortName": "AppPlatformClient", - "fullName": "google.cloud.visionai.v1.AppPlatformClient" - }, - "method": { - "shortName": "ListProcessors", - "fullName": "google.cloud.visionai.v1.AppPlatform.ListProcessors", - "service": { - "shortName": "AppPlatform", - "fullName": "google.cloud.visionai.v1.AppPlatform" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_AppPlatform_ListPrebuiltProcessors_async", - "title": "AppPlatform listPrebuiltProcessors Sample", - "origin": "API_DEFINITION", - "description": " ListPrebuiltProcessors is a custom pass-through verb that Lists Prebuilt Processors.", - "canonical": true, - "file": "app_platform.list_prebuilt_processors.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPrebuiltProcessors", - "fullName": "google.cloud.visionai.v1.AppPlatform.ListPrebuiltProcessors", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.visionai.v1.ListPrebuiltProcessorsResponse", - "client": { - "shortName": "AppPlatformClient", - "fullName": "google.cloud.visionai.v1.AppPlatformClient" - }, - "method": { - "shortName": "ListPrebuiltProcessors", - "fullName": "google.cloud.visionai.v1.AppPlatform.ListPrebuiltProcessors", - "service": { - "shortName": "AppPlatform", - "fullName": "google.cloud.visionai.v1.AppPlatform" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_AppPlatform_GetProcessor_async", - "title": "AppPlatform getProcessor Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Processor.", - "canonical": true, - "file": "app_platform.get_processor.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetProcessor", - "fullName": "google.cloud.visionai.v1.AppPlatform.GetProcessor", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.visionai.v1.Processor", - "client": { - "shortName": "AppPlatformClient", - "fullName": "google.cloud.visionai.v1.AppPlatformClient" - }, - "method": { - "shortName": "GetProcessor", - "fullName": "google.cloud.visionai.v1.AppPlatform.GetProcessor", - "service": { - "shortName": "AppPlatform", - "fullName": "google.cloud.visionai.v1.AppPlatform" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_AppPlatform_CreateProcessor_async", - "title": "AppPlatform createProcessor Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Processor in a given project and location.", - "canonical": true, - "file": "app_platform.create_processor.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateProcessor", - "fullName": "google.cloud.visionai.v1.AppPlatform.CreateProcessor", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "processor_id", - "type": "TYPE_STRING" - }, - { - "name": "processor", - "type": ".google.cloud.visionai.v1.Processor" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AppPlatformClient", - "fullName": "google.cloud.visionai.v1.AppPlatformClient" - }, - "method": { - "shortName": "CreateProcessor", - "fullName": "google.cloud.visionai.v1.AppPlatform.CreateProcessor", - "service": { - "shortName": "AppPlatform", - "fullName": "google.cloud.visionai.v1.AppPlatform" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_AppPlatform_UpdateProcessor_async", - "title": "AppPlatform updateProcessor Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Processor.", - "canonical": true, - "file": "app_platform.update_processor.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateProcessor", - "fullName": "google.cloud.visionai.v1.AppPlatform.UpdateProcessor", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "processor", - "type": ".google.cloud.visionai.v1.Processor" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AppPlatformClient", - "fullName": "google.cloud.visionai.v1.AppPlatformClient" - }, - "method": { - "shortName": "UpdateProcessor", - "fullName": "google.cloud.visionai.v1.AppPlatform.UpdateProcessor", - "service": { - "shortName": "AppPlatform", - "fullName": "google.cloud.visionai.v1.AppPlatform" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_AppPlatform_DeleteProcessor_async", - "title": "AppPlatform deleteProcessor Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Processor.", - "canonical": true, - "file": "app_platform.delete_processor.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteProcessor", - "fullName": "google.cloud.visionai.v1.AppPlatform.DeleteProcessor", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AppPlatformClient", - "fullName": "google.cloud.visionai.v1.AppPlatformClient" - }, - "method": { - "shortName": "DeleteProcessor", - "fullName": "google.cloud.visionai.v1.AppPlatform.DeleteProcessor", - "service": { - "shortName": "AppPlatform", - "fullName": "google.cloud.visionai.v1.AppPlatform" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_HealthCheckService_HealthCheck_async", - "title": "AppPlatform healthCheck Sample", - "origin": "API_DEFINITION", - "description": " HealthCheck method checks the health status of the cluster.", - "canonical": true, - "file": "health_check_service.health_check.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 52, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "HealthCheck", - "fullName": "google.cloud.visionai.v1.HealthCheckService.HealthCheck", - "async": true, - "parameters": [ - { - "name": "cluster", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.visionai.v1.HealthCheckResponse", - "client": { - "shortName": "HealthCheckServiceClient", - "fullName": "google.cloud.visionai.v1.HealthCheckServiceClient" - }, - "method": { - "shortName": "HealthCheck", - "fullName": "google.cloud.visionai.v1.HealthCheckService.HealthCheck", - "service": { - "shortName": "HealthCheckService", - "fullName": "google.cloud.visionai.v1.HealthCheckService" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_LiveVideoAnalytics_ListPublicOperators_async", - "title": "AppPlatform listPublicOperators Sample", - "origin": "API_DEFINITION", - "description": " ListPublicOperators returns all the operators in public registry.", - "canonical": true, - "file": "live_video_analytics.list_public_operators.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPublicOperators", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalytics.ListPublicOperators", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.visionai.v1.ListPublicOperatorsResponse", - "client": { - "shortName": "LiveVideoAnalyticsClient", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalyticsClient" - }, - "method": { - "shortName": "ListPublicOperators", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalytics.ListPublicOperators", - "service": { - "shortName": "LiveVideoAnalytics", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalytics" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_LiveVideoAnalytics_ResolveOperatorInfo_async", - "title": "AppPlatform resolveOperatorInfo Sample", - "origin": "API_DEFINITION", - "description": " ResolveOperatorInfo returns the operator information based on the request.", - "canonical": true, - "file": "live_video_analytics.resolve_operator_info.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResolveOperatorInfo", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalytics.ResolveOperatorInfo", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "queries", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.cloud.visionai.v1.ResolveOperatorInfoResponse", - "client": { - "shortName": "LiveVideoAnalyticsClient", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalyticsClient" - }, - "method": { - "shortName": "ResolveOperatorInfo", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalytics.ResolveOperatorInfo", - "service": { - "shortName": "LiveVideoAnalytics", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalytics" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_LiveVideoAnalytics_ListOperators_async", - "title": "AppPlatform listOperators Sample", - "origin": "API_DEFINITION", - "description": " Lists Operators in a given project and location.", - "canonical": true, - "file": "live_video_analytics.list_operators.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListOperators", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalytics.ListOperators", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.visionai.v1.ListOperatorsResponse", - "client": { - "shortName": "LiveVideoAnalyticsClient", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalyticsClient" - }, - "method": { - "shortName": "ListOperators", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalytics.ListOperators", - "service": { - "shortName": "LiveVideoAnalytics", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalytics" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_LiveVideoAnalytics_GetOperator_async", - "title": "AppPlatform getOperator Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Operator.", - "canonical": true, - "file": "live_video_analytics.get_operator.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetOperator", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalytics.GetOperator", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.visionai.v1.Operator", - "client": { - "shortName": "LiveVideoAnalyticsClient", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalyticsClient" - }, - "method": { - "shortName": "GetOperator", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalytics.GetOperator", - "service": { - "shortName": "LiveVideoAnalytics", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalytics" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_LiveVideoAnalytics_CreateOperator_async", - "title": "AppPlatform createOperator Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Operator in a given project and location.", - "canonical": true, - "file": "live_video_analytics.create_operator.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateOperator", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalytics.CreateOperator", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "operator_id", - "type": "TYPE_STRING" - }, - { - "name": "operator", - "type": ".google.cloud.visionai.v1.Operator" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "LiveVideoAnalyticsClient", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalyticsClient" - }, - "method": { - "shortName": "CreateOperator", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalytics.CreateOperator", - "service": { - "shortName": "LiveVideoAnalytics", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalytics" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_LiveVideoAnalytics_UpdateOperator_async", - "title": "AppPlatform updateOperator Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Operator.", - "canonical": true, - "file": "live_video_analytics.update_operator.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateOperator", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalytics.UpdateOperator", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "operator", - "type": ".google.cloud.visionai.v1.Operator" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "LiveVideoAnalyticsClient", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalyticsClient" - }, - "method": { - "shortName": "UpdateOperator", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalytics.UpdateOperator", - "service": { - "shortName": "LiveVideoAnalytics", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalytics" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_LiveVideoAnalytics_DeleteOperator_async", - "title": "AppPlatform deleteOperator Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Operator.", - "canonical": true, - "file": "live_video_analytics.delete_operator.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteOperator", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalytics.DeleteOperator", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "LiveVideoAnalyticsClient", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalyticsClient" - }, - "method": { - "shortName": "DeleteOperator", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalytics.DeleteOperator", - "service": { - "shortName": "LiveVideoAnalytics", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalytics" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_LiveVideoAnalytics_ListAnalyses_async", - "title": "AppPlatform listAnalyses Sample", - "origin": "API_DEFINITION", - "description": " Lists Analyses in a given project and location.", - "canonical": true, - "file": "live_video_analytics.list_analyses.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAnalyses", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalytics.ListAnalyses", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.visionai.v1.ListAnalysesResponse", - "client": { - "shortName": "LiveVideoAnalyticsClient", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalyticsClient" - }, - "method": { - "shortName": "ListAnalyses", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalytics.ListAnalyses", - "service": { - "shortName": "LiveVideoAnalytics", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalytics" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_LiveVideoAnalytics_GetAnalysis_async", - "title": "AppPlatform getAnalysis Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Analysis.", - "canonical": true, - "file": "live_video_analytics.get_analysis.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAnalysis", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalytics.GetAnalysis", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.visionai.v1.Analysis", - "client": { - "shortName": "LiveVideoAnalyticsClient", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalyticsClient" - }, - "method": { - "shortName": "GetAnalysis", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalytics.GetAnalysis", - "service": { - "shortName": "LiveVideoAnalytics", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalytics" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_LiveVideoAnalytics_CreateAnalysis_async", - "title": "AppPlatform createAnalysis Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Analysis in a given project and location.", - "canonical": true, - "file": "live_video_analytics.create_analysis.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAnalysis", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalytics.CreateAnalysis", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "analysis_id", - "type": "TYPE_STRING" - }, - { - "name": "analysis", - "type": ".google.cloud.visionai.v1.Analysis" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "LiveVideoAnalyticsClient", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalyticsClient" - }, - "method": { - "shortName": "CreateAnalysis", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalytics.CreateAnalysis", - "service": { - "shortName": "LiveVideoAnalytics", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalytics" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_LiveVideoAnalytics_UpdateAnalysis_async", - "title": "AppPlatform updateAnalysis Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Analysis.", - "canonical": true, - "file": "live_video_analytics.update_analysis.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAnalysis", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalytics.UpdateAnalysis", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "analysis", - "type": ".google.cloud.visionai.v1.Analysis" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "LiveVideoAnalyticsClient", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalyticsClient" - }, - "method": { - "shortName": "UpdateAnalysis", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalytics.UpdateAnalysis", - "service": { - "shortName": "LiveVideoAnalytics", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalytics" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_LiveVideoAnalytics_DeleteAnalysis_async", - "title": "AppPlatform deleteAnalysis Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Analysis.", - "canonical": true, - "file": "live_video_analytics.delete_analysis.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAnalysis", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalytics.DeleteAnalysis", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "LiveVideoAnalyticsClient", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalyticsClient" - }, - "method": { - "shortName": "DeleteAnalysis", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalytics.DeleteAnalysis", - "service": { - "shortName": "LiveVideoAnalytics", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalytics" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_LiveVideoAnalytics_ListProcesses_async", - "title": "AppPlatform listProcesses Sample", - "origin": "API_DEFINITION", - "description": " Lists Processes in a given project and location.", - "canonical": true, - "file": "live_video_analytics.list_processes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListProcesses", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalytics.ListProcesses", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.visionai.v1.ListProcessesResponse", - "client": { - "shortName": "LiveVideoAnalyticsClient", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalyticsClient" - }, - "method": { - "shortName": "ListProcesses", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalytics.ListProcesses", - "service": { - "shortName": "LiveVideoAnalytics", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalytics" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_LiveVideoAnalytics_GetProcess_async", - "title": "AppPlatform getProcess Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Process.", - "canonical": true, - "file": "live_video_analytics.get_process.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetProcess", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalytics.GetProcess", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.visionai.v1.Process", - "client": { - "shortName": "LiveVideoAnalyticsClient", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalyticsClient" - }, - "method": { - "shortName": "GetProcess", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalytics.GetProcess", - "service": { - "shortName": "LiveVideoAnalytics", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalytics" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_LiveVideoAnalytics_CreateProcess_async", - "title": "AppPlatform createProcess Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Process in a given project and location.", - "canonical": true, - "file": "live_video_analytics.create_process.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateProcess", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalytics.CreateProcess", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "process_id", - "type": "TYPE_STRING" - }, - { - "name": "process", - "type": ".google.cloud.visionai.v1.Process" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "LiveVideoAnalyticsClient", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalyticsClient" - }, - "method": { - "shortName": "CreateProcess", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalytics.CreateProcess", - "service": { - "shortName": "LiveVideoAnalytics", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalytics" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_LiveVideoAnalytics_UpdateProcess_async", - "title": "AppPlatform updateProcess Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Process.", - "canonical": true, - "file": "live_video_analytics.update_process.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateProcess", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalytics.UpdateProcess", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "process", - "type": ".google.cloud.visionai.v1.Process" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "LiveVideoAnalyticsClient", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalyticsClient" - }, - "method": { - "shortName": "UpdateProcess", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalytics.UpdateProcess", - "service": { - "shortName": "LiveVideoAnalytics", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalytics" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_LiveVideoAnalytics_DeleteProcess_async", - "title": "AppPlatform deleteProcess Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Process.", - "canonical": true, - "file": "live_video_analytics.delete_process.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteProcess", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalytics.DeleteProcess", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "LiveVideoAnalyticsClient", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalyticsClient" - }, - "method": { - "shortName": "DeleteProcess", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalytics.DeleteProcess", - "service": { - "shortName": "LiveVideoAnalytics", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalytics" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_LiveVideoAnalytics_BatchRunProcess_async", - "title": "AppPlatform batchRunProcess Sample", - "origin": "API_DEFINITION", - "description": " Run all of the processes to \"completion\". Max time for each process is the LRO time limit.", - "canonical": true, - "file": "live_video_analytics.batch_run_process.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchRunProcess", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalytics.BatchRunProcess", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "options", - "type": ".google.cloud.visionai.v1.BatchRunProcessRequest.BatchRunProcessOptions" - }, - { - "name": "batch_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "LiveVideoAnalyticsClient", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalyticsClient" - }, - "method": { - "shortName": "BatchRunProcess", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalytics.BatchRunProcess", - "service": { - "shortName": "LiveVideoAnalytics", - "fullName": "google.cloud.visionai.v1.LiveVideoAnalytics" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_StreamingService_SendPackets_async", - "title": "AppPlatform sendPackets Sample", - "origin": "API_DEFINITION", - "description": " Send packets to the series.", - "canonical": true, - "file": "streaming_service.send_packets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SendPackets", - "fullName": "google.cloud.visionai.v1.StreamingService.SendPackets", - "async": true, - "parameters": [ - { - "name": "packet", - "type": ".google.cloud.visionai.v1.Packet" - }, - { - "name": "metadata", - "type": ".google.cloud.visionai.v1.RequestMetadata" - } - ], - "resultType": ".google.cloud.visionai.v1.SendPacketsResponse", - "client": { - "shortName": "StreamingServiceClient", - "fullName": "google.cloud.visionai.v1.StreamingServiceClient" - }, - "method": { - "shortName": "SendPackets", - "fullName": "google.cloud.visionai.v1.StreamingService.SendPackets", - "service": { - "shortName": "StreamingService", - "fullName": "google.cloud.visionai.v1.StreamingService" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_StreamingService_ReceivePackets_async", - "title": "AppPlatform receivePackets Sample", - "origin": "API_DEFINITION", - "description": " Receive packets from the series.", - "canonical": true, - "file": "streaming_service.receive_packets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReceivePackets", - "fullName": "google.cloud.visionai.v1.StreamingService.ReceivePackets", - "async": true, - "parameters": [ - { - "name": "setup_request", - "type": ".google.cloud.visionai.v1.ReceivePacketsRequest.SetupRequest" - }, - { - "name": "commit_request", - "type": ".google.cloud.visionai.v1.CommitRequest" - } - ], - "resultType": ".google.cloud.visionai.v1.ReceivePacketsResponse", - "client": { - "shortName": "StreamingServiceClient", - "fullName": "google.cloud.visionai.v1.StreamingServiceClient" - }, - "method": { - "shortName": "ReceivePackets", - "fullName": "google.cloud.visionai.v1.StreamingService.ReceivePackets", - "service": { - "shortName": "StreamingService", - "fullName": "google.cloud.visionai.v1.StreamingService" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_StreamingService_ReceiveEvents_async", - "title": "AppPlatform receiveEvents Sample", - "origin": "API_DEFINITION", - "description": " Receive events given the stream name.", - "canonical": true, - "file": "streaming_service.receive_events.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReceiveEvents", - "fullName": "google.cloud.visionai.v1.StreamingService.ReceiveEvents", - "async": true, - "parameters": [ - { - "name": "setup_request", - "type": ".google.cloud.visionai.v1.ReceiveEventsRequest.SetupRequest" - }, - { - "name": "commit_request", - "type": ".google.cloud.visionai.v1.CommitRequest" - } - ], - "resultType": ".google.cloud.visionai.v1.ReceiveEventsResponse", - "client": { - "shortName": "StreamingServiceClient", - "fullName": "google.cloud.visionai.v1.StreamingServiceClient" - }, - "method": { - "shortName": "ReceiveEvents", - "fullName": "google.cloud.visionai.v1.StreamingService.ReceiveEvents", - "service": { - "shortName": "StreamingService", - "fullName": "google.cloud.visionai.v1.StreamingService" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_StreamingService_AcquireLease_async", - "title": "AppPlatform acquireLease Sample", - "origin": "API_DEFINITION", - "description": " AcquireLease acquires a lease.", - "canonical": true, - "file": "streaming_service.acquire_lease.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AcquireLease", - "fullName": "google.cloud.visionai.v1.StreamingService.AcquireLease", - "async": true, - "parameters": [ - { - "name": "series", - "type": "TYPE_STRING" - }, - { - "name": "owner", - "type": "TYPE_STRING" - }, - { - "name": "term", - "type": ".google.protobuf.Duration" - }, - { - "name": "lease_type", - "type": ".google.cloud.visionai.v1.LeaseType" - } - ], - "resultType": ".google.cloud.visionai.v1.Lease", - "client": { - "shortName": "StreamingServiceClient", - "fullName": "google.cloud.visionai.v1.StreamingServiceClient" - }, - "method": { - "shortName": "AcquireLease", - "fullName": "google.cloud.visionai.v1.StreamingService.AcquireLease", - "service": { - "shortName": "StreamingService", - "fullName": "google.cloud.visionai.v1.StreamingService" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_StreamingService_RenewLease_async", - "title": "AppPlatform renewLease Sample", - "origin": "API_DEFINITION", - "description": " RenewLease renews a lease.", - "canonical": true, - "file": "streaming_service.renew_lease.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RenewLease", - "fullName": "google.cloud.visionai.v1.StreamingService.RenewLease", - "async": true, - "parameters": [ - { - "name": "id", - "type": "TYPE_STRING" - }, - { - "name": "series", - "type": "TYPE_STRING" - }, - { - "name": "owner", - "type": "TYPE_STRING" - }, - { - "name": "term", - "type": ".google.protobuf.Duration" - } - ], - "resultType": ".google.cloud.visionai.v1.Lease", - "client": { - "shortName": "StreamingServiceClient", - "fullName": "google.cloud.visionai.v1.StreamingServiceClient" - }, - "method": { - "shortName": "RenewLease", - "fullName": "google.cloud.visionai.v1.StreamingService.RenewLease", - "service": { - "shortName": "StreamingService", - "fullName": "google.cloud.visionai.v1.StreamingService" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_StreamingService_ReleaseLease_async", - "title": "AppPlatform releaseLease Sample", - "origin": "API_DEFINITION", - "description": " RleaseLease releases a lease.", - "canonical": true, - "file": "streaming_service.release_lease.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReleaseLease", - "fullName": "google.cloud.visionai.v1.StreamingService.ReleaseLease", - "async": true, - "parameters": [ - { - "name": "id", - "type": "TYPE_STRING" - }, - { - "name": "series", - "type": "TYPE_STRING" - }, - { - "name": "owner", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.visionai.v1.ReleaseLeaseResponse", - "client": { - "shortName": "StreamingServiceClient", - "fullName": "google.cloud.visionai.v1.StreamingServiceClient" - }, - "method": { - "shortName": "ReleaseLease", - "fullName": "google.cloud.visionai.v1.StreamingService.ReleaseLease", - "service": { - "shortName": "StreamingService", - "fullName": "google.cloud.visionai.v1.StreamingService" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_StreamsService_ListClusters_async", - "title": "AppPlatform listClusters Sample", - "origin": "API_DEFINITION", - "description": " Lists Clusters in a given project and location.", - "canonical": true, - "file": "streams_service.list_clusters.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListClusters", - "fullName": "google.cloud.visionai.v1.StreamsService.ListClusters", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.visionai.v1.ListClustersResponse", - "client": { - "shortName": "StreamsServiceClient", - "fullName": "google.cloud.visionai.v1.StreamsServiceClient" - }, - "method": { - "shortName": "ListClusters", - "fullName": "google.cloud.visionai.v1.StreamsService.ListClusters", - "service": { - "shortName": "StreamsService", - "fullName": "google.cloud.visionai.v1.StreamsService" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_StreamsService_GetCluster_async", - "title": "AppPlatform getCluster Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Cluster.", - "canonical": true, - "file": "streams_service.get_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCluster", - "fullName": "google.cloud.visionai.v1.StreamsService.GetCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.visionai.v1.Cluster", - "client": { - "shortName": "StreamsServiceClient", - "fullName": "google.cloud.visionai.v1.StreamsServiceClient" - }, - "method": { - "shortName": "GetCluster", - "fullName": "google.cloud.visionai.v1.StreamsService.GetCluster", - "service": { - "shortName": "StreamsService", - "fullName": "google.cloud.visionai.v1.StreamsService" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_StreamsService_CreateCluster_async", - "title": "AppPlatform createCluster Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Cluster in a given project and location.", - "canonical": true, - "file": "streams_service.create_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCluster", - "fullName": "google.cloud.visionai.v1.StreamsService.CreateCluster", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "cluster", - "type": ".google.cloud.visionai.v1.Cluster" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "StreamsServiceClient", - "fullName": "google.cloud.visionai.v1.StreamsServiceClient" - }, - "method": { - "shortName": "CreateCluster", - "fullName": "google.cloud.visionai.v1.StreamsService.CreateCluster", - "service": { - "shortName": "StreamsService", - "fullName": "google.cloud.visionai.v1.StreamsService" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_StreamsService_UpdateCluster_async", - "title": "AppPlatform updateCluster Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Cluster.", - "canonical": true, - "file": "streams_service.update_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCluster", - "fullName": "google.cloud.visionai.v1.StreamsService.UpdateCluster", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "cluster", - "type": ".google.cloud.visionai.v1.Cluster" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "StreamsServiceClient", - "fullName": "google.cloud.visionai.v1.StreamsServiceClient" - }, - "method": { - "shortName": "UpdateCluster", - "fullName": "google.cloud.visionai.v1.StreamsService.UpdateCluster", - "service": { - "shortName": "StreamsService", - "fullName": "google.cloud.visionai.v1.StreamsService" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_StreamsService_DeleteCluster_async", - "title": "AppPlatform deleteCluster Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Cluster.", - "canonical": true, - "file": "streams_service.delete_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCluster", - "fullName": "google.cloud.visionai.v1.StreamsService.DeleteCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "StreamsServiceClient", - "fullName": "google.cloud.visionai.v1.StreamsServiceClient" - }, - "method": { - "shortName": "DeleteCluster", - "fullName": "google.cloud.visionai.v1.StreamsService.DeleteCluster", - "service": { - "shortName": "StreamsService", - "fullName": "google.cloud.visionai.v1.StreamsService" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_StreamsService_ListStreams_async", - "title": "AppPlatform listStreams Sample", - "origin": "API_DEFINITION", - "description": " Lists Streams in a given project and location.", - "canonical": true, - "file": "streams_service.list_streams.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListStreams", - "fullName": "google.cloud.visionai.v1.StreamsService.ListStreams", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.visionai.v1.ListStreamsResponse", - "client": { - "shortName": "StreamsServiceClient", - "fullName": "google.cloud.visionai.v1.StreamsServiceClient" - }, - "method": { - "shortName": "ListStreams", - "fullName": "google.cloud.visionai.v1.StreamsService.ListStreams", - "service": { - "shortName": "StreamsService", - "fullName": "google.cloud.visionai.v1.StreamsService" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_StreamsService_GetStream_async", - "title": "AppPlatform getStream Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Stream.", - "canonical": true, - "file": "streams_service.get_stream.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetStream", - "fullName": "google.cloud.visionai.v1.StreamsService.GetStream", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.visionai.v1.Stream", - "client": { - "shortName": "StreamsServiceClient", - "fullName": "google.cloud.visionai.v1.StreamsServiceClient" - }, - "method": { - "shortName": "GetStream", - "fullName": "google.cloud.visionai.v1.StreamsService.GetStream", - "service": { - "shortName": "StreamsService", - "fullName": "google.cloud.visionai.v1.StreamsService" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_StreamsService_CreateStream_async", - "title": "AppPlatform createStream Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Stream in a given project and location.", - "canonical": true, - "file": "streams_service.create_stream.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateStream", - "fullName": "google.cloud.visionai.v1.StreamsService.CreateStream", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "stream_id", - "type": "TYPE_STRING" - }, - { - "name": "stream", - "type": ".google.cloud.visionai.v1.Stream" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "StreamsServiceClient", - "fullName": "google.cloud.visionai.v1.StreamsServiceClient" - }, - "method": { - "shortName": "CreateStream", - "fullName": "google.cloud.visionai.v1.StreamsService.CreateStream", - "service": { - "shortName": "StreamsService", - "fullName": "google.cloud.visionai.v1.StreamsService" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_StreamsService_UpdateStream_async", - "title": "AppPlatform updateStream Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Stream.", - "canonical": true, - "file": "streams_service.update_stream.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateStream", - "fullName": "google.cloud.visionai.v1.StreamsService.UpdateStream", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "stream", - "type": ".google.cloud.visionai.v1.Stream" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "StreamsServiceClient", - "fullName": "google.cloud.visionai.v1.StreamsServiceClient" - }, - "method": { - "shortName": "UpdateStream", - "fullName": "google.cloud.visionai.v1.StreamsService.UpdateStream", - "service": { - "shortName": "StreamsService", - "fullName": "google.cloud.visionai.v1.StreamsService" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_StreamsService_DeleteStream_async", - "title": "AppPlatform deleteStream Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Stream.", - "canonical": true, - "file": "streams_service.delete_stream.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteStream", - "fullName": "google.cloud.visionai.v1.StreamsService.DeleteStream", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "StreamsServiceClient", - "fullName": "google.cloud.visionai.v1.StreamsServiceClient" - }, - "method": { - "shortName": "DeleteStream", - "fullName": "google.cloud.visionai.v1.StreamsService.DeleteStream", - "service": { - "shortName": "StreamsService", - "fullName": "google.cloud.visionai.v1.StreamsService" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_StreamsService_GetStreamThumbnail_async", - "title": "AppPlatform getStreamThumbnail Sample", - "origin": "API_DEFINITION", - "description": " Gets the thumbnail (image snapshot) of a single Stream.", - "canonical": true, - "file": "streams_service.get_stream_thumbnail.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetStreamThumbnail", - "fullName": "google.cloud.visionai.v1.StreamsService.GetStreamThumbnail", - "async": true, - "parameters": [ - { - "name": "stream", - "type": "TYPE_STRING" - }, - { - "name": "gcs_object_name", - "type": "TYPE_STRING" - }, - { - "name": "event", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "StreamsServiceClient", - "fullName": "google.cloud.visionai.v1.StreamsServiceClient" - }, - "method": { - "shortName": "GetStreamThumbnail", - "fullName": "google.cloud.visionai.v1.StreamsService.GetStreamThumbnail", - "service": { - "shortName": "StreamsService", - "fullName": "google.cloud.visionai.v1.StreamsService" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_StreamsService_GenerateStreamHlsToken_async", - "title": "AppPlatform generateStreamHlsToken Sample", - "origin": "API_DEFINITION", - "description": " Generate the JWT auth token required to get the stream HLS contents.", - "canonical": true, - "file": "streams_service.generate_stream_hls_token.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateStreamHlsToken", - "fullName": "google.cloud.visionai.v1.StreamsService.GenerateStreamHlsToken", - "async": true, - "parameters": [ - { - "name": "stream", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.visionai.v1.GenerateStreamHlsTokenResponse", - "client": { - "shortName": "StreamsServiceClient", - "fullName": "google.cloud.visionai.v1.StreamsServiceClient" - }, - "method": { - "shortName": "GenerateStreamHlsToken", - "fullName": "google.cloud.visionai.v1.StreamsService.GenerateStreamHlsToken", - "service": { - "shortName": "StreamsService", - "fullName": "google.cloud.visionai.v1.StreamsService" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_StreamsService_ListEvents_async", - "title": "AppPlatform listEvents Sample", - "origin": "API_DEFINITION", - "description": " Lists Events in a given project and location.", - "canonical": true, - "file": "streams_service.list_events.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEvents", - "fullName": "google.cloud.visionai.v1.StreamsService.ListEvents", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.visionai.v1.ListEventsResponse", - "client": { - "shortName": "StreamsServiceClient", - "fullName": "google.cloud.visionai.v1.StreamsServiceClient" - }, - "method": { - "shortName": "ListEvents", - "fullName": "google.cloud.visionai.v1.StreamsService.ListEvents", - "service": { - "shortName": "StreamsService", - "fullName": "google.cloud.visionai.v1.StreamsService" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_StreamsService_GetEvent_async", - "title": "AppPlatform getEvent Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Event.", - "canonical": true, - "file": "streams_service.get_event.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEvent", - "fullName": "google.cloud.visionai.v1.StreamsService.GetEvent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.visionai.v1.Event", - "client": { - "shortName": "StreamsServiceClient", - "fullName": "google.cloud.visionai.v1.StreamsServiceClient" - }, - "method": { - "shortName": "GetEvent", - "fullName": "google.cloud.visionai.v1.StreamsService.GetEvent", - "service": { - "shortName": "StreamsService", - "fullName": "google.cloud.visionai.v1.StreamsService" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_StreamsService_CreateEvent_async", - "title": "AppPlatform createEvent Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Event in a given project and location.", - "canonical": true, - "file": "streams_service.create_event.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateEvent", - "fullName": "google.cloud.visionai.v1.StreamsService.CreateEvent", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "event_id", - "type": "TYPE_STRING" - }, - { - "name": "event", - "type": ".google.cloud.visionai.v1.Event" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "StreamsServiceClient", - "fullName": "google.cloud.visionai.v1.StreamsServiceClient" - }, - "method": { - "shortName": "CreateEvent", - "fullName": "google.cloud.visionai.v1.StreamsService.CreateEvent", - "service": { - "shortName": "StreamsService", - "fullName": "google.cloud.visionai.v1.StreamsService" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_StreamsService_UpdateEvent_async", - "title": "AppPlatform updateEvent Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Event.", - "canonical": true, - "file": "streams_service.update_event.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateEvent", - "fullName": "google.cloud.visionai.v1.StreamsService.UpdateEvent", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "event", - "type": ".google.cloud.visionai.v1.Event" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "StreamsServiceClient", - "fullName": "google.cloud.visionai.v1.StreamsServiceClient" - }, - "method": { - "shortName": "UpdateEvent", - "fullName": "google.cloud.visionai.v1.StreamsService.UpdateEvent", - "service": { - "shortName": "StreamsService", - "fullName": "google.cloud.visionai.v1.StreamsService" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_StreamsService_DeleteEvent_async", - "title": "AppPlatform deleteEvent Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Event.", - "canonical": true, - "file": "streams_service.delete_event.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteEvent", - "fullName": "google.cloud.visionai.v1.StreamsService.DeleteEvent", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "StreamsServiceClient", - "fullName": "google.cloud.visionai.v1.StreamsServiceClient" - }, - "method": { - "shortName": "DeleteEvent", - "fullName": "google.cloud.visionai.v1.StreamsService.DeleteEvent", - "service": { - "shortName": "StreamsService", - "fullName": "google.cloud.visionai.v1.StreamsService" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_StreamsService_ListSeries_async", - "title": "AppPlatform listSeries Sample", - "origin": "API_DEFINITION", - "description": " Lists Series in a given project and location.", - "canonical": true, - "file": "streams_service.list_series.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSeries", - "fullName": "google.cloud.visionai.v1.StreamsService.ListSeries", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.visionai.v1.ListSeriesResponse", - "client": { - "shortName": "StreamsServiceClient", - "fullName": "google.cloud.visionai.v1.StreamsServiceClient" - }, - "method": { - "shortName": "ListSeries", - "fullName": "google.cloud.visionai.v1.StreamsService.ListSeries", - "service": { - "shortName": "StreamsService", - "fullName": "google.cloud.visionai.v1.StreamsService" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_StreamsService_GetSeries_async", - "title": "AppPlatform getSeries Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Series.", - "canonical": true, - "file": "streams_service.get_series.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSeries", - "fullName": "google.cloud.visionai.v1.StreamsService.GetSeries", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.visionai.v1.Series", - "client": { - "shortName": "StreamsServiceClient", - "fullName": "google.cloud.visionai.v1.StreamsServiceClient" - }, - "method": { - "shortName": "GetSeries", - "fullName": "google.cloud.visionai.v1.StreamsService.GetSeries", - "service": { - "shortName": "StreamsService", - "fullName": "google.cloud.visionai.v1.StreamsService" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_StreamsService_CreateSeries_async", - "title": "AppPlatform createSeries Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Series in a given project and location.", - "canonical": true, - "file": "streams_service.create_series.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSeries", - "fullName": "google.cloud.visionai.v1.StreamsService.CreateSeries", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "series_id", - "type": "TYPE_STRING" - }, - { - "name": "series", - "type": ".google.cloud.visionai.v1.Series" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "StreamsServiceClient", - "fullName": "google.cloud.visionai.v1.StreamsServiceClient" - }, - "method": { - "shortName": "CreateSeries", - "fullName": "google.cloud.visionai.v1.StreamsService.CreateSeries", - "service": { - "shortName": "StreamsService", - "fullName": "google.cloud.visionai.v1.StreamsService" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_StreamsService_UpdateSeries_async", - "title": "AppPlatform updateSeries Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Event.", - "canonical": true, - "file": "streams_service.update_series.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSeries", - "fullName": "google.cloud.visionai.v1.StreamsService.UpdateSeries", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "series", - "type": ".google.cloud.visionai.v1.Series" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "StreamsServiceClient", - "fullName": "google.cloud.visionai.v1.StreamsServiceClient" - }, - "method": { - "shortName": "UpdateSeries", - "fullName": "google.cloud.visionai.v1.StreamsService.UpdateSeries", - "service": { - "shortName": "StreamsService", - "fullName": "google.cloud.visionai.v1.StreamsService" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_StreamsService_DeleteSeries_async", - "title": "AppPlatform deleteSeries Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Series.", - "canonical": true, - "file": "streams_service.delete_series.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSeries", - "fullName": "google.cloud.visionai.v1.StreamsService.DeleteSeries", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "StreamsServiceClient", - "fullName": "google.cloud.visionai.v1.StreamsServiceClient" - }, - "method": { - "shortName": "DeleteSeries", - "fullName": "google.cloud.visionai.v1.StreamsService.DeleteSeries", - "service": { - "shortName": "StreamsService", - "fullName": "google.cloud.visionai.v1.StreamsService" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_StreamsService_MaterializeChannel_async", - "title": "AppPlatform materializeChannel Sample", - "origin": "API_DEFINITION", - "description": " Materialize a channel.", - "canonical": true, - "file": "streams_service.materialize_channel.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "MaterializeChannel", - "fullName": "google.cloud.visionai.v1.StreamsService.MaterializeChannel", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "channel_id", - "type": "TYPE_STRING" - }, - { - "name": "channel", - "type": ".google.cloud.visionai.v1.Channel" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "StreamsServiceClient", - "fullName": "google.cloud.visionai.v1.StreamsServiceClient" - }, - "method": { - "shortName": "MaterializeChannel", - "fullName": "google.cloud.visionai.v1.StreamsService.MaterializeChannel", - "service": { - "shortName": "StreamsService", - "fullName": "google.cloud.visionai.v1.StreamsService" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_CreateAsset_async", - "title": "AppPlatform createAsset Sample", - "origin": "API_DEFINITION", - "description": " Creates an asset inside corpus.", - "canonical": true, - "file": "warehouse.create_asset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAsset", - "fullName": "google.cloud.visionai.v1.Warehouse.CreateAsset", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "asset", - "type": ".google.cloud.visionai.v1.Asset" - }, - { - "name": "asset_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.visionai.v1.Asset", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "CreateAsset", - "fullName": "google.cloud.visionai.v1.Warehouse.CreateAsset", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_UpdateAsset_async", - "title": "AppPlatform updateAsset Sample", - "origin": "API_DEFINITION", - "description": " Updates an asset inside corpus.", - "canonical": true, - "file": "warehouse.update_asset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAsset", - "fullName": "google.cloud.visionai.v1.Warehouse.UpdateAsset", - "async": true, - "parameters": [ - { - "name": "asset", - "type": ".google.cloud.visionai.v1.Asset" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.visionai.v1.Asset", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "UpdateAsset", - "fullName": "google.cloud.visionai.v1.Warehouse.UpdateAsset", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_GetAsset_async", - "title": "AppPlatform getAsset Sample", - "origin": "API_DEFINITION", - "description": " Reads an asset inside corpus.", - "canonical": true, - "file": "warehouse.get_asset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAsset", - "fullName": "google.cloud.visionai.v1.Warehouse.GetAsset", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.visionai.v1.Asset", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "GetAsset", - "fullName": "google.cloud.visionai.v1.Warehouse.GetAsset", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_ListAssets_async", - "title": "AppPlatform listAssets Sample", - "origin": "API_DEFINITION", - "description": " Lists an list of assets inside corpus.", - "canonical": true, - "file": "warehouse.list_assets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAssets", - "fullName": "google.cloud.visionai.v1.Warehouse.ListAssets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.visionai.v1.ListAssetsResponse", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "ListAssets", - "fullName": "google.cloud.visionai.v1.Warehouse.ListAssets", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_DeleteAsset_async", - "title": "AppPlatform deleteAsset Sample", - "origin": "API_DEFINITION", - "description": " Deletes asset inside corpus.", - "canonical": true, - "file": "warehouse.delete_asset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAsset", - "fullName": "google.cloud.visionai.v1.Warehouse.DeleteAsset", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "DeleteAsset", - "fullName": "google.cloud.visionai.v1.Warehouse.DeleteAsset", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_UploadAsset_async", - "title": "AppPlatform uploadAsset Sample", - "origin": "API_DEFINITION", - "description": " Upload asset by specifing the asset Cloud Storage uri. For video warehouse, it requires users who call this API have read access to the cloud storage file. Once it is uploaded, it can be retrieved by GenerateRetrievalUrl API which by default, only can retrieve cloud storage files from the same project of the warehouse. To allow retrieval cloud storage files that are in a separate project, it requires to find the vision ai service account (Go to IAM, check checkbox to show \"Include Google-provided role grants\", search for \"Cloud Vision AI Service Agent\") and grant the read access of the cloud storage files to that service account.", - "canonical": true, - "file": "warehouse.upload_asset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UploadAsset", - "fullName": "google.cloud.visionai.v1.Warehouse.UploadAsset", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "asset_source", - "type": ".google.cloud.visionai.v1.AssetSource" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "UploadAsset", - "fullName": "google.cloud.visionai.v1.Warehouse.UploadAsset", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_GenerateRetrievalUrl_async", - "title": "AppPlatform generateRetrievalUrl Sample", - "origin": "API_DEFINITION", - "description": " Generates a signed url for downloading the asset. For video warehouse, please see comment of UploadAsset about how to allow retrieval of cloud storage files in a different project.", - "canonical": true, - "file": "warehouse.generate_retrieval_url.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateRetrievalUrl", - "fullName": "google.cloud.visionai.v1.Warehouse.GenerateRetrievalUrl", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.visionai.v1.GenerateRetrievalUrlResponse", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "GenerateRetrievalUrl", - "fullName": "google.cloud.visionai.v1.Warehouse.GenerateRetrievalUrl", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_AnalyzeAsset_async", - "title": "AppPlatform analyzeAsset Sample", - "origin": "API_DEFINITION", - "description": " Analyze asset to power search capability.", - "canonical": true, - "file": "warehouse.analyze_asset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AnalyzeAsset", - "fullName": "google.cloud.visionai.v1.Warehouse.AnalyzeAsset", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "AnalyzeAsset", - "fullName": "google.cloud.visionai.v1.Warehouse.AnalyzeAsset", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_IndexAsset_async", - "title": "AppPlatform indexAsset Sample", - "origin": "API_DEFINITION", - "description": " Index one asset for search. Supported corpus type: Corpus.Type.VIDEO_ON_DEMAND", - "canonical": true, - "file": "warehouse.index_asset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "IndexAsset", - "fullName": "google.cloud.visionai.v1.Warehouse.IndexAsset", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "index", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "IndexAsset", - "fullName": "google.cloud.visionai.v1.Warehouse.IndexAsset", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_RemoveIndexAsset_async", - "title": "AppPlatform removeIndexAsset Sample", - "origin": "API_DEFINITION", - "description": " Remove one asset's index data for search. Supported corpus type: Corpus.Type.VIDEO_ON_DEMAND", - "canonical": true, - "file": "warehouse.remove_index_asset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveIndexAsset", - "fullName": "google.cloud.visionai.v1.Warehouse.RemoveIndexAsset", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "index", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "RemoveIndexAsset", - "fullName": "google.cloud.visionai.v1.Warehouse.RemoveIndexAsset", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_ViewIndexedAssets_async", - "title": "AppPlatform viewIndexedAssets Sample", - "origin": "API_DEFINITION", - "description": " Lists assets inside an index.", - "canonical": true, - "file": "warehouse.view_indexed_assets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ViewIndexedAssets", - "fullName": "google.cloud.visionai.v1.Warehouse.ViewIndexedAssets", - "async": true, - "parameters": [ - { - "name": "index", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.visionai.v1.ViewIndexedAssetsResponse", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "ViewIndexedAssets", - "fullName": "google.cloud.visionai.v1.Warehouse.ViewIndexedAssets", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_CreateIndex_async", - "title": "AppPlatform createIndex Sample", - "origin": "API_DEFINITION", - "description": " Creates an Index under the corpus.", - "canonical": true, - "file": "warehouse.create_index.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateIndex", - "fullName": "google.cloud.visionai.v1.Warehouse.CreateIndex", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "index_id", - "type": "TYPE_STRING" - }, - { - "name": "index", - "type": ".google.cloud.visionai.v1.Index" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "CreateIndex", - "fullName": "google.cloud.visionai.v1.Warehouse.CreateIndex", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_UpdateIndex_async", - "title": "AppPlatform updateIndex Sample", - "origin": "API_DEFINITION", - "description": " Updates an Index under the corpus. Users can perform a metadata-only update or trigger a full index rebuild with different update_mask values.", - "canonical": true, - "file": "warehouse.update_index.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateIndex", - "fullName": "google.cloud.visionai.v1.Warehouse.UpdateIndex", - "async": true, - "parameters": [ - { - "name": "index", - "type": ".google.cloud.visionai.v1.Index" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "UpdateIndex", - "fullName": "google.cloud.visionai.v1.Warehouse.UpdateIndex", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_GetIndex_async", - "title": "AppPlatform getIndex Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a single Index under a Corpus.", - "canonical": true, - "file": "warehouse.get_index.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIndex", - "fullName": "google.cloud.visionai.v1.Warehouse.GetIndex", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.visionai.v1.Index", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "GetIndex", - "fullName": "google.cloud.visionai.v1.Warehouse.GetIndex", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_ListIndexes_async", - "title": "AppPlatform listIndexes Sample", - "origin": "API_DEFINITION", - "description": " List all Indexes in a given Corpus.", - "canonical": true, - "file": "warehouse.list_indexes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListIndexes", - "fullName": "google.cloud.visionai.v1.Warehouse.ListIndexes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.visionai.v1.ListIndexesResponse", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "ListIndexes", - "fullName": "google.cloud.visionai.v1.Warehouse.ListIndexes", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_DeleteIndex_async", - "title": "AppPlatform deleteIndex Sample", - "origin": "API_DEFINITION", - "description": " Delete a single Index. In order to delete an index, the caller must make sure that it is not deployed to any index endpoint.", - "canonical": true, - "file": "warehouse.delete_index.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteIndex", - "fullName": "google.cloud.visionai.v1.Warehouse.DeleteIndex", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "DeleteIndex", - "fullName": "google.cloud.visionai.v1.Warehouse.DeleteIndex", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_CreateCorpus_async", - "title": "AppPlatform createCorpus Sample", - "origin": "API_DEFINITION", - "description": " Creates a corpus inside a project.", - "canonical": true, - "file": "warehouse.create_corpus.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCorpus", - "fullName": "google.cloud.visionai.v1.Warehouse.CreateCorpus", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "corpus", - "type": ".google.cloud.visionai.v1.Corpus" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "CreateCorpus", - "fullName": "google.cloud.visionai.v1.Warehouse.CreateCorpus", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_GetCorpus_async", - "title": "AppPlatform getCorpus Sample", - "origin": "API_DEFINITION", - "description": " Gets corpus details inside a project.", - "canonical": true, - "file": "warehouse.get_corpus.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCorpus", - "fullName": "google.cloud.visionai.v1.Warehouse.GetCorpus", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.visionai.v1.Corpus", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "GetCorpus", - "fullName": "google.cloud.visionai.v1.Warehouse.GetCorpus", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_UpdateCorpus_async", - "title": "AppPlatform updateCorpus Sample", - "origin": "API_DEFINITION", - "description": " Updates a corpus in a project.", - "canonical": true, - "file": "warehouse.update_corpus.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCorpus", - "fullName": "google.cloud.visionai.v1.Warehouse.UpdateCorpus", - "async": true, - "parameters": [ - { - "name": "corpus", - "type": ".google.cloud.visionai.v1.Corpus" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.visionai.v1.Corpus", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "UpdateCorpus", - "fullName": "google.cloud.visionai.v1.Warehouse.UpdateCorpus", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_ListCorpora_async", - "title": "AppPlatform listCorpora Sample", - "origin": "API_DEFINITION", - "description": " Lists all corpora in a project.", - "canonical": true, - "file": "warehouse.list_corpora.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCorpora", - "fullName": "google.cloud.visionai.v1.Warehouse.ListCorpora", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.visionai.v1.ListCorporaResponse", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "ListCorpora", - "fullName": "google.cloud.visionai.v1.Warehouse.ListCorpora", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_DeleteCorpus_async", - "title": "AppPlatform deleteCorpus Sample", - "origin": "API_DEFINITION", - "description": " Deletes a corpus only if its empty. Returns empty response.", - "canonical": true, - "file": "warehouse.delete_corpus.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCorpus", - "fullName": "google.cloud.visionai.v1.Warehouse.DeleteCorpus", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "DeleteCorpus", - "fullName": "google.cloud.visionai.v1.Warehouse.DeleteCorpus", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_AnalyzeCorpus_async", - "title": "AppPlatform analyzeCorpus Sample", - "origin": "API_DEFINITION", - "description": " Analyzes a corpus.", - "canonical": true, - "file": "warehouse.analyze_corpus.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AnalyzeCorpus", - "fullName": "google.cloud.visionai.v1.Warehouse.AnalyzeCorpus", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "AnalyzeCorpus", - "fullName": "google.cloud.visionai.v1.Warehouse.AnalyzeCorpus", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_CreateDataSchema_async", - "title": "AppPlatform createDataSchema Sample", - "origin": "API_DEFINITION", - "description": " Creates data schema inside corpus.", - "canonical": true, - "file": "warehouse.create_data_schema.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDataSchema", - "fullName": "google.cloud.visionai.v1.Warehouse.CreateDataSchema", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "data_schema", - "type": ".google.cloud.visionai.v1.DataSchema" - } - ], - "resultType": ".google.cloud.visionai.v1.DataSchema", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "CreateDataSchema", - "fullName": "google.cloud.visionai.v1.Warehouse.CreateDataSchema", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_UpdateDataSchema_async", - "title": "AppPlatform updateDataSchema Sample", - "origin": "API_DEFINITION", - "description": " Updates data schema inside corpus.", - "canonical": true, - "file": "warehouse.update_data_schema.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDataSchema", - "fullName": "google.cloud.visionai.v1.Warehouse.UpdateDataSchema", - "async": true, - "parameters": [ - { - "name": "data_schema", - "type": ".google.cloud.visionai.v1.DataSchema" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.visionai.v1.DataSchema", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "UpdateDataSchema", - "fullName": "google.cloud.visionai.v1.Warehouse.UpdateDataSchema", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_GetDataSchema_async", - "title": "AppPlatform getDataSchema Sample", - "origin": "API_DEFINITION", - "description": " Gets data schema inside corpus.", - "canonical": true, - "file": "warehouse.get_data_schema.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDataSchema", - "fullName": "google.cloud.visionai.v1.Warehouse.GetDataSchema", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.visionai.v1.DataSchema", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "GetDataSchema", - "fullName": "google.cloud.visionai.v1.Warehouse.GetDataSchema", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_DeleteDataSchema_async", - "title": "AppPlatform deleteDataSchema Sample", - "origin": "API_DEFINITION", - "description": " Deletes data schema inside corpus.", - "canonical": true, - "file": "warehouse.delete_data_schema.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDataSchema", - "fullName": "google.cloud.visionai.v1.Warehouse.DeleteDataSchema", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "DeleteDataSchema", - "fullName": "google.cloud.visionai.v1.Warehouse.DeleteDataSchema", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_ListDataSchemas_async", - "title": "AppPlatform listDataSchemas Sample", - "origin": "API_DEFINITION", - "description": " Lists a list of data schemas inside corpus.", - "canonical": true, - "file": "warehouse.list_data_schemas.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDataSchemas", - "fullName": "google.cloud.visionai.v1.Warehouse.ListDataSchemas", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.visionai.v1.ListDataSchemasResponse", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "ListDataSchemas", - "fullName": "google.cloud.visionai.v1.Warehouse.ListDataSchemas", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_CreateAnnotation_async", - "title": "AppPlatform createAnnotation Sample", - "origin": "API_DEFINITION", - "description": " Creates annotation inside asset.", - "canonical": true, - "file": "warehouse.create_annotation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAnnotation", - "fullName": "google.cloud.visionai.v1.Warehouse.CreateAnnotation", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "annotation", - "type": ".google.cloud.visionai.v1.Annotation" - }, - { - "name": "annotation_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.visionai.v1.Annotation", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "CreateAnnotation", - "fullName": "google.cloud.visionai.v1.Warehouse.CreateAnnotation", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_GetAnnotation_async", - "title": "AppPlatform getAnnotation Sample", - "origin": "API_DEFINITION", - "description": " Reads annotation inside asset.", - "canonical": true, - "file": "warehouse.get_annotation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAnnotation", - "fullName": "google.cloud.visionai.v1.Warehouse.GetAnnotation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.visionai.v1.Annotation", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "GetAnnotation", - "fullName": "google.cloud.visionai.v1.Warehouse.GetAnnotation", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_ListAnnotations_async", - "title": "AppPlatform listAnnotations Sample", - "origin": "API_DEFINITION", - "description": " Lists a list of annotations inside asset.", - "canonical": true, - "file": "warehouse.list_annotations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAnnotations", - "fullName": "google.cloud.visionai.v1.Warehouse.ListAnnotations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.visionai.v1.ListAnnotationsResponse", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "ListAnnotations", - "fullName": "google.cloud.visionai.v1.Warehouse.ListAnnotations", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_UpdateAnnotation_async", - "title": "AppPlatform updateAnnotation Sample", - "origin": "API_DEFINITION", - "description": " Updates annotation inside asset.", - "canonical": true, - "file": "warehouse.update_annotation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAnnotation", - "fullName": "google.cloud.visionai.v1.Warehouse.UpdateAnnotation", - "async": true, - "parameters": [ - { - "name": "annotation", - "type": ".google.cloud.visionai.v1.Annotation" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.visionai.v1.Annotation", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "UpdateAnnotation", - "fullName": "google.cloud.visionai.v1.Warehouse.UpdateAnnotation", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_DeleteAnnotation_async", - "title": "AppPlatform deleteAnnotation Sample", - "origin": "API_DEFINITION", - "description": " Deletes annotation inside asset.", - "canonical": true, - "file": "warehouse.delete_annotation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAnnotation", - "fullName": "google.cloud.visionai.v1.Warehouse.DeleteAnnotation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "DeleteAnnotation", - "fullName": "google.cloud.visionai.v1.Warehouse.DeleteAnnotation", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_IngestAsset_async", - "title": "AppPlatform ingestAsset Sample", - "origin": "API_DEFINITION", - "description": " Ingests data for the asset. It is not allowed to ingest a data chunk which is already expired according to TTL. This method is only available via the gRPC API (not HTTP since bi-directional streaming is not supported via HTTP).", - "canonical": true, - "file": "warehouse.ingest_asset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "IngestAsset", - "fullName": "google.cloud.visionai.v1.Warehouse.IngestAsset", - "async": true, - "parameters": [ - { - "name": "config", - "type": ".google.cloud.visionai.v1.IngestAssetRequest.Config" - }, - { - "name": "time_indexed_data", - "type": ".google.cloud.visionai.v1.IngestAssetRequest.TimeIndexedData" - } - ], - "resultType": ".google.cloud.visionai.v1.IngestAssetResponse", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "IngestAsset", - "fullName": "google.cloud.visionai.v1.Warehouse.IngestAsset", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_ClipAsset_async", - "title": "AppPlatform clipAsset Sample", - "origin": "API_DEFINITION", - "description": " Supported by STREAM_VIDEO corpus type. Generates clips for downloading. The api takes in a time range, and generates a clip of the first content available after start_time and before end_time, which may overflow beyond these bounds. Returned clips are truncated if the total size of the clips are larger than 100MB.", - "canonical": true, - "file": "warehouse.clip_asset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ClipAsset", - "fullName": "google.cloud.visionai.v1.Warehouse.ClipAsset", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "temporal_partition", - "type": ".google.cloud.visionai.v1.Partition.TemporalPartition" - } - ], - "resultType": ".google.cloud.visionai.v1.ClipAssetResponse", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "ClipAsset", - "fullName": "google.cloud.visionai.v1.Warehouse.ClipAsset", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_GenerateHlsUri_async", - "title": "AppPlatform generateHlsUri Sample", - "origin": "API_DEFINITION", - "description": " Generates a uri for an HLS manifest. The api takes in a collection of time ranges, and generates a URI for an HLS manifest that covers all the requested time ranges.", - "canonical": true, - "file": "warehouse.generate_hls_uri.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateHlsUri", - "fullName": "google.cloud.visionai.v1.Warehouse.GenerateHlsUri", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "temporal_partitions", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "live_view_enabled", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.visionai.v1.GenerateHlsUriResponse", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "GenerateHlsUri", - "fullName": "google.cloud.visionai.v1.Warehouse.GenerateHlsUri", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_ImportAssets_async", - "title": "AppPlatform importAssets Sample", - "origin": "API_DEFINITION", - "description": " Imports assets (images plus annotations) from a meta file on cloud storage. Each row in the meta file is corresponding to an image (specified by a cloud storage uri) and its annotations.", - "canonical": true, - "file": "warehouse.import_assets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportAssets", - "fullName": "google.cloud.visionai.v1.Warehouse.ImportAssets", - "async": true, - "parameters": [ - { - "name": "assets_gcs_uri", - "type": "TYPE_STRING" - }, - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "ImportAssets", - "fullName": "google.cloud.visionai.v1.Warehouse.ImportAssets", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_CreateSearchConfig_async", - "title": "AppPlatform createSearchConfig Sample", - "origin": "API_DEFINITION", - "description": " Creates a search configuration inside a corpus. Please follow the rules below to create a valid CreateSearchConfigRequest. --- General Rules --- 1. Request.search_config_id must not be associated with an existing SearchConfig. 2. Request must contain at least one non-empty search_criteria_property or facet_property. 3. mapped_fields must not be empty, and must map to existing UGA keys. 4. All mapped_fields must be of the same type. 5. All mapped_fields must share the same granularity. 6. All mapped_fields must share the same semantic SearchConfig match options. For property-specific rules, please reference the comments for FacetProperty and SearchCriteriaProperty.", - "canonical": true, - "file": "warehouse.create_search_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSearchConfig", - "fullName": "google.cloud.visionai.v1.Warehouse.CreateSearchConfig", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "search_config", - "type": ".google.cloud.visionai.v1.SearchConfig" - }, - { - "name": "search_config_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.visionai.v1.SearchConfig", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "CreateSearchConfig", - "fullName": "google.cloud.visionai.v1.Warehouse.CreateSearchConfig", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_UpdateSearchConfig_async", - "title": "AppPlatform updateSearchConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates a search configuration inside a corpus. Please follow the rules below to create a valid UpdateSearchConfigRequest. --- General Rules --- 1. Request.search_configuration.name must already exist. 2. Request must contain at least one non-empty search_criteria_property or facet_property. 3. mapped_fields must not be empty, and must map to existing UGA keys. 4. All mapped_fields must be of the same type. 5. All mapped_fields must share the same granularity. 6. All mapped_fields must share the same semantic SearchConfig match options. For property-specific rules, please reference the comments for FacetProperty and SearchCriteriaProperty.", - "canonical": true, - "file": "warehouse.update_search_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSearchConfig", - "fullName": "google.cloud.visionai.v1.Warehouse.UpdateSearchConfig", - "async": true, - "parameters": [ - { - "name": "search_config", - "type": ".google.cloud.visionai.v1.SearchConfig" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.visionai.v1.SearchConfig", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "UpdateSearchConfig", - "fullName": "google.cloud.visionai.v1.Warehouse.UpdateSearchConfig", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_GetSearchConfig_async", - "title": "AppPlatform getSearchConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets a search configuration inside a corpus.", - "canonical": true, - "file": "warehouse.get_search_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSearchConfig", - "fullName": "google.cloud.visionai.v1.Warehouse.GetSearchConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.visionai.v1.SearchConfig", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "GetSearchConfig", - "fullName": "google.cloud.visionai.v1.Warehouse.GetSearchConfig", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_DeleteSearchConfig_async", - "title": "AppPlatform deleteSearchConfig Sample", - "origin": "API_DEFINITION", - "description": " Deletes a search configuration inside a corpus. For a DeleteSearchConfigRequest to be valid, Request.search_configuration.name must already exist.", - "canonical": true, - "file": "warehouse.delete_search_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSearchConfig", - "fullName": "google.cloud.visionai.v1.Warehouse.DeleteSearchConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "DeleteSearchConfig", - "fullName": "google.cloud.visionai.v1.Warehouse.DeleteSearchConfig", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_ListSearchConfigs_async", - "title": "AppPlatform listSearchConfigs Sample", - "origin": "API_DEFINITION", - "description": " Lists all search configurations inside a corpus.", - "canonical": true, - "file": "warehouse.list_search_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSearchConfigs", - "fullName": "google.cloud.visionai.v1.Warehouse.ListSearchConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.visionai.v1.ListSearchConfigsResponse", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "ListSearchConfigs", - "fullName": "google.cloud.visionai.v1.Warehouse.ListSearchConfigs", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_CreateSearchHypernym_async", - "title": "AppPlatform createSearchHypernym Sample", - "origin": "API_DEFINITION", - "description": " Creates a SearchHypernym inside a corpus.", - "canonical": true, - "file": "warehouse.create_search_hypernym.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSearchHypernym", - "fullName": "google.cloud.visionai.v1.Warehouse.CreateSearchHypernym", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "search_hypernym", - "type": ".google.cloud.visionai.v1.SearchHypernym" - }, - { - "name": "search_hypernym_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.visionai.v1.SearchHypernym", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "CreateSearchHypernym", - "fullName": "google.cloud.visionai.v1.Warehouse.CreateSearchHypernym", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_UpdateSearchHypernym_async", - "title": "AppPlatform updateSearchHypernym Sample", - "origin": "API_DEFINITION", - "description": " Updates a SearchHypernym inside a corpus.", - "canonical": true, - "file": "warehouse.update_search_hypernym.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSearchHypernym", - "fullName": "google.cloud.visionai.v1.Warehouse.UpdateSearchHypernym", - "async": true, - "parameters": [ - { - "name": "search_hypernym", - "type": ".google.cloud.visionai.v1.SearchHypernym" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.visionai.v1.SearchHypernym", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "UpdateSearchHypernym", - "fullName": "google.cloud.visionai.v1.Warehouse.UpdateSearchHypernym", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_GetSearchHypernym_async", - "title": "AppPlatform getSearchHypernym Sample", - "origin": "API_DEFINITION", - "description": " Gets a SearchHypernym inside a corpus.", - "canonical": true, - "file": "warehouse.get_search_hypernym.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSearchHypernym", - "fullName": "google.cloud.visionai.v1.Warehouse.GetSearchHypernym", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.visionai.v1.SearchHypernym", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "GetSearchHypernym", - "fullName": "google.cloud.visionai.v1.Warehouse.GetSearchHypernym", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_DeleteSearchHypernym_async", - "title": "AppPlatform deleteSearchHypernym Sample", - "origin": "API_DEFINITION", - "description": " Deletes a SearchHypernym inside a corpus.", - "canonical": true, - "file": "warehouse.delete_search_hypernym.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSearchHypernym", - "fullName": "google.cloud.visionai.v1.Warehouse.DeleteSearchHypernym", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "DeleteSearchHypernym", - "fullName": "google.cloud.visionai.v1.Warehouse.DeleteSearchHypernym", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_ListSearchHypernyms_async", - "title": "AppPlatform listSearchHypernyms Sample", - "origin": "API_DEFINITION", - "description": " Lists SearchHypernyms inside a corpus.", - "canonical": true, - "file": "warehouse.list_search_hypernyms.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSearchHypernyms", - "fullName": "google.cloud.visionai.v1.Warehouse.ListSearchHypernyms", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.visionai.v1.ListSearchHypernymsResponse", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "ListSearchHypernyms", - "fullName": "google.cloud.visionai.v1.Warehouse.ListSearchHypernyms", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_SearchAssets_async", - "title": "AppPlatform searchAssets Sample", - "origin": "API_DEFINITION", - "description": " Search media asset.", - "canonical": true, - "file": "warehouse.search_assets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 100, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchAssets", - "fullName": "google.cloud.visionai.v1.Warehouse.SearchAssets", - "async": true, - "parameters": [ - { - "name": "schema_key_sorting_strategy", - "type": ".google.cloud.visionai.v1.SchemaKeySortingStrategy" - }, - { - "name": "corpus", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "content_time_ranges", - "type": ".google.cloud.visionai.v1.DateTimeRangeArray" - }, - { - "name": "criteria", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "facet_selections", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "result_annotation_keys", - "type": "TYPE_STRING[]" - }, - { - "name": "search_query", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.visionai.v1.SearchAssetsResponse", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "SearchAssets", - "fullName": "google.cloud.visionai.v1.Warehouse.SearchAssets", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_SearchIndexEndpoint_async", - "title": "AppPlatform searchIndexEndpoint Sample", - "origin": "API_DEFINITION", - "description": " Search a deployed index endpoint (IMAGE corpus type only).", - "canonical": true, - "file": "warehouse.search_index_endpoint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchIndexEndpoint", - "fullName": "google.cloud.visionai.v1.Warehouse.SearchIndexEndpoint", - "async": true, - "parameters": [ - { - "name": "image_query", - "type": ".google.cloud.visionai.v1.ImageQuery" - }, - { - "name": "text_query", - "type": "TYPE_STRING" - }, - { - "name": "index_endpoint", - "type": "TYPE_STRING" - }, - { - "name": "criteria", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "exclusion_criteria", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.visionai.v1.SearchIndexEndpointResponse", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "SearchIndexEndpoint", - "fullName": "google.cloud.visionai.v1.Warehouse.SearchIndexEndpoint", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_CreateIndexEndpoint_async", - "title": "AppPlatform createIndexEndpoint Sample", - "origin": "API_DEFINITION", - "description": " Creates an IndexEndpoint.", - "canonical": true, - "file": "warehouse.create_index_endpoint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateIndexEndpoint", - "fullName": "google.cloud.visionai.v1.Warehouse.CreateIndexEndpoint", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "index_endpoint_id", - "type": "TYPE_STRING" - }, - { - "name": "index_endpoint", - "type": ".google.cloud.visionai.v1.IndexEndpoint" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "CreateIndexEndpoint", - "fullName": "google.cloud.visionai.v1.Warehouse.CreateIndexEndpoint", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_GetIndexEndpoint_async", - "title": "AppPlatform getIndexEndpoint Sample", - "origin": "API_DEFINITION", - "description": " Gets an IndexEndpoint.", - "canonical": true, - "file": "warehouse.get_index_endpoint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIndexEndpoint", - "fullName": "google.cloud.visionai.v1.Warehouse.GetIndexEndpoint", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.visionai.v1.IndexEndpoint", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "GetIndexEndpoint", - "fullName": "google.cloud.visionai.v1.Warehouse.GetIndexEndpoint", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_ListIndexEndpoints_async", - "title": "AppPlatform listIndexEndpoints Sample", - "origin": "API_DEFINITION", - "description": " Lists all IndexEndpoints in a project.", - "canonical": true, - "file": "warehouse.list_index_endpoints.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListIndexEndpoints", - "fullName": "google.cloud.visionai.v1.Warehouse.ListIndexEndpoints", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.visionai.v1.ListIndexEndpointsResponse", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "ListIndexEndpoints", - "fullName": "google.cloud.visionai.v1.Warehouse.ListIndexEndpoints", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_UpdateIndexEndpoint_async", - "title": "AppPlatform updateIndexEndpoint Sample", - "origin": "API_DEFINITION", - "description": " Updates an IndexEndpoint.", - "canonical": true, - "file": "warehouse.update_index_endpoint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateIndexEndpoint", - "fullName": "google.cloud.visionai.v1.Warehouse.UpdateIndexEndpoint", - "async": true, - "parameters": [ - { - "name": "index_endpoint", - "type": ".google.cloud.visionai.v1.IndexEndpoint" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "UpdateIndexEndpoint", - "fullName": "google.cloud.visionai.v1.Warehouse.UpdateIndexEndpoint", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_DeleteIndexEndpoint_async", - "title": "AppPlatform deleteIndexEndpoint Sample", - "origin": "API_DEFINITION", - "description": " Deletes an IndexEndpoint.", - "canonical": true, - "file": "warehouse.delete_index_endpoint.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteIndexEndpoint", - "fullName": "google.cloud.visionai.v1.Warehouse.DeleteIndexEndpoint", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "DeleteIndexEndpoint", - "fullName": "google.cloud.visionai.v1.Warehouse.DeleteIndexEndpoint", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_DeployIndex_async", - "title": "AppPlatform deployIndex Sample", - "origin": "API_DEFINITION", - "description": " Deploys an Index to IndexEndpoint.", - "canonical": true, - "file": "warehouse.deploy_index.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeployIndex", - "fullName": "google.cloud.visionai.v1.Warehouse.DeployIndex", - "async": true, - "parameters": [ - { - "name": "index_endpoint", - "type": "TYPE_STRING" - }, - { - "name": "deployed_index", - "type": ".google.cloud.visionai.v1.DeployedIndex" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "DeployIndex", - "fullName": "google.cloud.visionai.v1.Warehouse.DeployIndex", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_UndeployIndex_async", - "title": "AppPlatform undeployIndex Sample", - "origin": "API_DEFINITION", - "description": " Undeploys an Index from IndexEndpoint.", - "canonical": true, - "file": "warehouse.undeploy_index.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UndeployIndex", - "fullName": "google.cloud.visionai.v1.Warehouse.UndeployIndex", - "async": true, - "parameters": [ - { - "name": "index_endpoint", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "UndeployIndex", - "fullName": "google.cloud.visionai.v1.Warehouse.UndeployIndex", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_CreateCollection_async", - "title": "AppPlatform createCollection Sample", - "origin": "API_DEFINITION", - "description": " Creates a collection.", - "canonical": true, - "file": "warehouse.create_collection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCollection", - "fullName": "google.cloud.visionai.v1.Warehouse.CreateCollection", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "collection", - "type": ".google.cloud.visionai.v1.Collection" - }, - { - "name": "collection_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "CreateCollection", - "fullName": "google.cloud.visionai.v1.Warehouse.CreateCollection", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_DeleteCollection_async", - "title": "AppPlatform deleteCollection Sample", - "origin": "API_DEFINITION", - "description": " Deletes a collection.", - "canonical": true, - "file": "warehouse.delete_collection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCollection", - "fullName": "google.cloud.visionai.v1.Warehouse.DeleteCollection", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "DeleteCollection", - "fullName": "google.cloud.visionai.v1.Warehouse.DeleteCollection", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_GetCollection_async", - "title": "AppPlatform getCollection Sample", - "origin": "API_DEFINITION", - "description": " Gets a collection.", - "canonical": true, - "file": "warehouse.get_collection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCollection", - "fullName": "google.cloud.visionai.v1.Warehouse.GetCollection", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.visionai.v1.Collection", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "GetCollection", - "fullName": "google.cloud.visionai.v1.Warehouse.GetCollection", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_UpdateCollection_async", - "title": "AppPlatform updateCollection Sample", - "origin": "API_DEFINITION", - "description": " Updates a collection.", - "canonical": true, - "file": "warehouse.update_collection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCollection", - "fullName": "google.cloud.visionai.v1.Warehouse.UpdateCollection", - "async": true, - "parameters": [ - { - "name": "collection", - "type": ".google.cloud.visionai.v1.Collection" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.visionai.v1.Collection", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "UpdateCollection", - "fullName": "google.cloud.visionai.v1.Warehouse.UpdateCollection", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_ListCollections_async", - "title": "AppPlatform listCollections Sample", - "origin": "API_DEFINITION", - "description": " Lists collections inside a corpus.", - "canonical": true, - "file": "warehouse.list_collections.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCollections", - "fullName": "google.cloud.visionai.v1.Warehouse.ListCollections", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.visionai.v1.ListCollectionsResponse", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "ListCollections", - "fullName": "google.cloud.visionai.v1.Warehouse.ListCollections", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_AddCollectionItem_async", - "title": "AppPlatform addCollectionItem Sample", - "origin": "API_DEFINITION", - "description": " Adds an item into a Collection.", - "canonical": true, - "file": "warehouse.add_collection_item.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddCollectionItem", - "fullName": "google.cloud.visionai.v1.Warehouse.AddCollectionItem", - "async": true, - "parameters": [ - { - "name": "item", - "type": ".google.cloud.visionai.v1.CollectionItem" - } - ], - "resultType": ".google.cloud.visionai.v1.AddCollectionItemResponse", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "AddCollectionItem", - "fullName": "google.cloud.visionai.v1.Warehouse.AddCollectionItem", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_RemoveCollectionItem_async", - "title": "AppPlatform removeCollectionItem Sample", - "origin": "API_DEFINITION", - "description": " Removes an item from a collection.", - "canonical": true, - "file": "warehouse.remove_collection_item.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveCollectionItem", - "fullName": "google.cloud.visionai.v1.Warehouse.RemoveCollectionItem", - "async": true, - "parameters": [ - { - "name": "item", - "type": ".google.cloud.visionai.v1.CollectionItem" - } - ], - "resultType": ".google.cloud.visionai.v1.RemoveCollectionItemResponse", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "RemoveCollectionItem", - "fullName": "google.cloud.visionai.v1.Warehouse.RemoveCollectionItem", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - }, - { - "regionTag": "warehouse-visionai_v1_generated_Warehouse_ViewCollectionItems_async", - "title": "AppPlatform viewCollectionItems Sample", - "origin": "API_DEFINITION", - "description": " View items inside a collection.", - "canonical": true, - "file": "warehouse.view_collection_items.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ViewCollectionItems", - "fullName": "google.cloud.visionai.v1.Warehouse.ViewCollectionItems", - "async": true, - "parameters": [ - { - "name": "collection", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.visionai.v1.ViewCollectionItemsResponse", - "client": { - "shortName": "WarehouseClient", - "fullName": "google.cloud.visionai.v1.WarehouseClient" - }, - "method": { - "shortName": "ViewCollectionItems", - "fullName": "google.cloud.visionai.v1.Warehouse.ViewCollectionItems", - "service": { - "shortName": "Warehouse", - "fullName": "google.cloud.visionai.v1.Warehouse" - } - } - } - } - ] -} diff --git a/packages/google-cloud-vmmigration/samples/generated/v1/snippet_metadata_google.cloud.vmmigration.v1.json b/packages/google-cloud-vmmigration/samples/generated/v1/snippet_metadata_google.cloud.vmmigration.v1.json deleted file mode 100644 index 27e63de0bbea..000000000000 --- a/packages/google-cloud-vmmigration/samples/generated/v1/snippet_metadata_google.cloud.vmmigration.v1.json +++ /dev/null @@ -1,2919 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-vmmigration", - "version": "4.3.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.vmmigration.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "vmmigration_v1_generated_VmMigration_ListSources_async", - "title": "VmMigration listSources Sample", - "origin": "API_DEFINITION", - "description": " Lists Sources in a given project and location.", - "canonical": true, - "file": "vm_migration.list_sources.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSources", - "fullName": "google.cloud.vmmigration.v1.VmMigration.ListSources", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vmmigration.v1.ListSourcesResponse", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "ListSources", - "fullName": "google.cloud.vmmigration.v1.VmMigration.ListSources", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_GetSource_async", - "title": "VmMigration getSource Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Source.", - "canonical": true, - "file": "vm_migration.get_source.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSource", - "fullName": "google.cloud.vmmigration.v1.VmMigration.GetSource", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vmmigration.v1.Source", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "GetSource", - "fullName": "google.cloud.vmmigration.v1.VmMigration.GetSource", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_CreateSource_async", - "title": "VmMigration createSource Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Source in a given project and location.", - "canonical": true, - "file": "vm_migration.create_source.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSource", - "fullName": "google.cloud.vmmigration.v1.VmMigration.CreateSource", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "source_id", - "type": "TYPE_STRING" - }, - { - "name": "source", - "type": ".google.cloud.vmmigration.v1.Source" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "CreateSource", - "fullName": "google.cloud.vmmigration.v1.VmMigration.CreateSource", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_UpdateSource_async", - "title": "VmMigration updateSource Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Source.", - "canonical": true, - "file": "vm_migration.update_source.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSource", - "fullName": "google.cloud.vmmigration.v1.VmMigration.UpdateSource", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "source", - "type": ".google.cloud.vmmigration.v1.Source" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "UpdateSource", - "fullName": "google.cloud.vmmigration.v1.VmMigration.UpdateSource", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_DeleteSource_async", - "title": "VmMigration deleteSource Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Source.", - "canonical": true, - "file": "vm_migration.delete_source.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSource", - "fullName": "google.cloud.vmmigration.v1.VmMigration.DeleteSource", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "DeleteSource", - "fullName": "google.cloud.vmmigration.v1.VmMigration.DeleteSource", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_FetchInventory_async", - "title": "VmMigration fetchInventory Sample", - "origin": "API_DEFINITION", - "description": " List remote source's inventory of VMs. The remote source is the onprem vCenter (remote in the sense it's not in Compute Engine). The inventory describes the list of existing VMs in that source. Note that this operation lists the VMs on the remote source, as opposed to listing the MigratingVms resources in the vmmigration service.", - "canonical": true, - "file": "vm_migration.fetch_inventory.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchInventory", - "fullName": "google.cloud.vmmigration.v1.VmMigration.FetchInventory", - "async": true, - "parameters": [ - { - "name": "source", - "type": "TYPE_STRING" - }, - { - "name": "force_refresh", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.cloud.vmmigration.v1.FetchInventoryResponse", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "FetchInventory", - "fullName": "google.cloud.vmmigration.v1.VmMigration.FetchInventory", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_FetchStorageInventory_async", - "title": "VmMigration fetchStorageInventory Sample", - "origin": "API_DEFINITION", - "description": " List remote source's inventory of storage resources. The remote source is another cloud vendor (e.g. AWS, Azure). The inventory describes the list of existing storage resources in that source. Note that this operation lists the resources on the remote source, as opposed to listing the MigratingVms resources in the vmmigration service.", - "canonical": true, - "file": "vm_migration.fetch_storage_inventory.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchStorageInventory", - "fullName": "google.cloud.vmmigration.v1.VmMigration.FetchStorageInventory", - "async": true, - "parameters": [ - { - "name": "source", - "type": "TYPE_STRING" - }, - { - "name": "type", - "type": ".google.cloud.vmmigration.v1.FetchStorageInventoryRequest.StorageType" - }, - { - "name": "force_refresh", - "type": "TYPE_BOOL" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vmmigration.v1.FetchStorageInventoryResponse", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "FetchStorageInventory", - "fullName": "google.cloud.vmmigration.v1.VmMigration.FetchStorageInventory", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_ListUtilizationReports_async", - "title": "VmMigration listUtilizationReports Sample", - "origin": "API_DEFINITION", - "description": " Lists Utilization Reports of the given Source.", - "canonical": true, - "file": "vm_migration.list_utilization_reports.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListUtilizationReports", - "fullName": "google.cloud.vmmigration.v1.VmMigration.ListUtilizationReports", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.vmmigration.v1.UtilizationReportView" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vmmigration.v1.ListUtilizationReportsResponse", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "ListUtilizationReports", - "fullName": "google.cloud.vmmigration.v1.VmMigration.ListUtilizationReports", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_GetUtilizationReport_async", - "title": "VmMigration getUtilizationReport Sample", - "origin": "API_DEFINITION", - "description": " Gets a single Utilization Report.", - "canonical": true, - "file": "vm_migration.get_utilization_report.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetUtilizationReport", - "fullName": "google.cloud.vmmigration.v1.VmMigration.GetUtilizationReport", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.vmmigration.v1.UtilizationReportView" - } - ], - "resultType": ".google.cloud.vmmigration.v1.UtilizationReport", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "GetUtilizationReport", - "fullName": "google.cloud.vmmigration.v1.VmMigration.GetUtilizationReport", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_CreateUtilizationReport_async", - "title": "VmMigration createUtilizationReport Sample", - "origin": "API_DEFINITION", - "description": " Creates a new UtilizationReport.", - "canonical": true, - "file": "vm_migration.create_utilization_report.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateUtilizationReport", - "fullName": "google.cloud.vmmigration.v1.VmMigration.CreateUtilizationReport", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "utilization_report", - "type": ".google.cloud.vmmigration.v1.UtilizationReport" - }, - { - "name": "utilization_report_id", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "CreateUtilizationReport", - "fullName": "google.cloud.vmmigration.v1.VmMigration.CreateUtilizationReport", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_DeleteUtilizationReport_async", - "title": "VmMigration deleteUtilizationReport Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Utilization Report.", - "canonical": true, - "file": "vm_migration.delete_utilization_report.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteUtilizationReport", - "fullName": "google.cloud.vmmigration.v1.VmMigration.DeleteUtilizationReport", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "DeleteUtilizationReport", - "fullName": "google.cloud.vmmigration.v1.VmMigration.DeleteUtilizationReport", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_ListDatacenterConnectors_async", - "title": "VmMigration listDatacenterConnectors Sample", - "origin": "API_DEFINITION", - "description": " Lists DatacenterConnectors in a given Source.", - "canonical": true, - "file": "vm_migration.list_datacenter_connectors.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDatacenterConnectors", - "fullName": "google.cloud.vmmigration.v1.VmMigration.ListDatacenterConnectors", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vmmigration.v1.ListDatacenterConnectorsResponse", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "ListDatacenterConnectors", - "fullName": "google.cloud.vmmigration.v1.VmMigration.ListDatacenterConnectors", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_GetDatacenterConnector_async", - "title": "VmMigration getDatacenterConnector Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single DatacenterConnector.", - "canonical": true, - "file": "vm_migration.get_datacenter_connector.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDatacenterConnector", - "fullName": "google.cloud.vmmigration.v1.VmMigration.GetDatacenterConnector", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vmmigration.v1.DatacenterConnector", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "GetDatacenterConnector", - "fullName": "google.cloud.vmmigration.v1.VmMigration.GetDatacenterConnector", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_CreateDatacenterConnector_async", - "title": "VmMigration createDatacenterConnector Sample", - "origin": "API_DEFINITION", - "description": " Creates a new DatacenterConnector in a given Source.", - "canonical": true, - "file": "vm_migration.create_datacenter_connector.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDatacenterConnector", - "fullName": "google.cloud.vmmigration.v1.VmMigration.CreateDatacenterConnector", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "datacenter_connector_id", - "type": "TYPE_STRING" - }, - { - "name": "datacenter_connector", - "type": ".google.cloud.vmmigration.v1.DatacenterConnector" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "CreateDatacenterConnector", - "fullName": "google.cloud.vmmigration.v1.VmMigration.CreateDatacenterConnector", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_DeleteDatacenterConnector_async", - "title": "VmMigration deleteDatacenterConnector Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single DatacenterConnector.", - "canonical": true, - "file": "vm_migration.delete_datacenter_connector.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDatacenterConnector", - "fullName": "google.cloud.vmmigration.v1.VmMigration.DeleteDatacenterConnector", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "DeleteDatacenterConnector", - "fullName": "google.cloud.vmmigration.v1.VmMigration.DeleteDatacenterConnector", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_UpgradeAppliance_async", - "title": "VmMigration upgradeAppliance Sample", - "origin": "API_DEFINITION", - "description": " Upgrades the appliance relate to this DatacenterConnector to the in-place updateable version.", - "canonical": true, - "file": "vm_migration.upgrade_appliance.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpgradeAppliance", - "fullName": "google.cloud.vmmigration.v1.VmMigration.UpgradeAppliance", - "async": true, - "parameters": [ - { - "name": "datacenter_connector", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "UpgradeAppliance", - "fullName": "google.cloud.vmmigration.v1.VmMigration.UpgradeAppliance", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_CreateMigratingVm_async", - "title": "VmMigration createMigratingVm Sample", - "origin": "API_DEFINITION", - "description": " Creates a new MigratingVm in a given Source.", - "canonical": true, - "file": "vm_migration.create_migrating_vm.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateMigratingVm", - "fullName": "google.cloud.vmmigration.v1.VmMigration.CreateMigratingVm", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "migrating_vm_id", - "type": "TYPE_STRING" - }, - { - "name": "migrating_vm", - "type": ".google.cloud.vmmigration.v1.MigratingVm" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "CreateMigratingVm", - "fullName": "google.cloud.vmmigration.v1.VmMigration.CreateMigratingVm", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_ListMigratingVms_async", - "title": "VmMigration listMigratingVms Sample", - "origin": "API_DEFINITION", - "description": " Lists MigratingVms in a given Source.", - "canonical": true, - "file": "vm_migration.list_migrating_vms.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMigratingVms", - "fullName": "google.cloud.vmmigration.v1.VmMigration.ListMigratingVms", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.vmmigration.v1.MigratingVmView" - } - ], - "resultType": ".google.cloud.vmmigration.v1.ListMigratingVmsResponse", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "ListMigratingVms", - "fullName": "google.cloud.vmmigration.v1.VmMigration.ListMigratingVms", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_GetMigratingVm_async", - "title": "VmMigration getMigratingVm Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single MigratingVm.", - "canonical": true, - "file": "vm_migration.get_migrating_vm.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMigratingVm", - "fullName": "google.cloud.vmmigration.v1.VmMigration.GetMigratingVm", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.vmmigration.v1.MigratingVmView" - } - ], - "resultType": ".google.cloud.vmmigration.v1.MigratingVm", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "GetMigratingVm", - "fullName": "google.cloud.vmmigration.v1.VmMigration.GetMigratingVm", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_UpdateMigratingVm_async", - "title": "VmMigration updateMigratingVm Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single MigratingVm.", - "canonical": true, - "file": "vm_migration.update_migrating_vm.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateMigratingVm", - "fullName": "google.cloud.vmmigration.v1.VmMigration.UpdateMigratingVm", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "migrating_vm", - "type": ".google.cloud.vmmigration.v1.MigratingVm" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "UpdateMigratingVm", - "fullName": "google.cloud.vmmigration.v1.VmMigration.UpdateMigratingVm", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_DeleteMigratingVm_async", - "title": "VmMigration deleteMigratingVm Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single MigratingVm.", - "canonical": true, - "file": "vm_migration.delete_migrating_vm.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteMigratingVm", - "fullName": "google.cloud.vmmigration.v1.VmMigration.DeleteMigratingVm", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "DeleteMigratingVm", - "fullName": "google.cloud.vmmigration.v1.VmMigration.DeleteMigratingVm", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_StartMigration_async", - "title": "VmMigration startMigration Sample", - "origin": "API_DEFINITION", - "description": " Starts migration for a VM. Starts the process of uploading data and creating snapshots, in replication cycles scheduled by the policy.", - "canonical": true, - "file": "vm_migration.start_migration.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StartMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration.StartMigration", - "async": true, - "parameters": [ - { - "name": "migrating_vm", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "StartMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration.StartMigration", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_ResumeMigration_async", - "title": "VmMigration resumeMigration Sample", - "origin": "API_DEFINITION", - "description": " Resumes a migration for a VM. When called on a paused migration, will start the process of uploading data and creating snapshots; when called on a completed cut-over migration, will update the migration to active state and start the process of uploading data and creating snapshots.", - "canonical": true, - "file": "vm_migration.resume_migration.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResumeMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration.ResumeMigration", - "async": true, - "parameters": [ - { - "name": "migrating_vm", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "ResumeMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration.ResumeMigration", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_PauseMigration_async", - "title": "VmMigration pauseMigration Sample", - "origin": "API_DEFINITION", - "description": " Pauses a migration for a VM. If cycle tasks are running they will be cancelled, preserving source task data. Further replication cycles will not be triggered while the VM is paused.", - "canonical": true, - "file": "vm_migration.pause_migration.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PauseMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration.PauseMigration", - "async": true, - "parameters": [ - { - "name": "migrating_vm", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "PauseMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration.PauseMigration", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_FinalizeMigration_async", - "title": "VmMigration finalizeMigration Sample", - "origin": "API_DEFINITION", - "description": " Marks a migration as completed, deleting migration resources that are no longer being used. Only applicable after cutover is done.", - "canonical": true, - "file": "vm_migration.finalize_migration.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FinalizeMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration.FinalizeMigration", - "async": true, - "parameters": [ - { - "name": "migrating_vm", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "FinalizeMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration.FinalizeMigration", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_ExtendMigration_async", - "title": "VmMigration extendMigration Sample", - "origin": "API_DEFINITION", - "description": " Extend the migrating VM time to live.", - "canonical": true, - "file": "vm_migration.extend_migration.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExtendMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration.ExtendMigration", - "async": true, - "parameters": [ - { - "name": "migrating_vm", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "ExtendMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration.ExtendMigration", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_CreateCloneJob_async", - "title": "VmMigration createCloneJob Sample", - "origin": "API_DEFINITION", - "description": " Initiates a Clone of a specific migrating VM.", - "canonical": true, - "file": "vm_migration.create_clone_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCloneJob", - "fullName": "google.cloud.vmmigration.v1.VmMigration.CreateCloneJob", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "clone_job_id", - "type": "TYPE_STRING" - }, - { - "name": "clone_job", - "type": ".google.cloud.vmmigration.v1.CloneJob" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "CreateCloneJob", - "fullName": "google.cloud.vmmigration.v1.VmMigration.CreateCloneJob", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_CancelCloneJob_async", - "title": "VmMigration cancelCloneJob Sample", - "origin": "API_DEFINITION", - "description": " Initiates the cancellation of a running clone job.", - "canonical": true, - "file": "vm_migration.cancel_clone_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CancelCloneJob", - "fullName": "google.cloud.vmmigration.v1.VmMigration.CancelCloneJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "CancelCloneJob", - "fullName": "google.cloud.vmmigration.v1.VmMigration.CancelCloneJob", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_ListCloneJobs_async", - "title": "VmMigration listCloneJobs Sample", - "origin": "API_DEFINITION", - "description": " Lists the CloneJobs of a migrating VM. Only 25 most recent CloneJobs are listed.", - "canonical": true, - "file": "vm_migration.list_clone_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCloneJobs", - "fullName": "google.cloud.vmmigration.v1.VmMigration.ListCloneJobs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vmmigration.v1.ListCloneJobsResponse", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "ListCloneJobs", - "fullName": "google.cloud.vmmigration.v1.VmMigration.ListCloneJobs", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_GetCloneJob_async", - "title": "VmMigration getCloneJob Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single CloneJob.", - "canonical": true, - "file": "vm_migration.get_clone_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCloneJob", - "fullName": "google.cloud.vmmigration.v1.VmMigration.GetCloneJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vmmigration.v1.CloneJob", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "GetCloneJob", - "fullName": "google.cloud.vmmigration.v1.VmMigration.GetCloneJob", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_CreateCutoverJob_async", - "title": "VmMigration createCutoverJob Sample", - "origin": "API_DEFINITION", - "description": " Initiates a Cutover of a specific migrating VM. The returned LRO is completed when the cutover job resource is created and the job is initiated.", - "canonical": true, - "file": "vm_migration.create_cutover_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCutoverJob", - "fullName": "google.cloud.vmmigration.v1.VmMigration.CreateCutoverJob", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "cutover_job_id", - "type": "TYPE_STRING" - }, - { - "name": "cutover_job", - "type": ".google.cloud.vmmigration.v1.CutoverJob" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "CreateCutoverJob", - "fullName": "google.cloud.vmmigration.v1.VmMigration.CreateCutoverJob", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_CancelCutoverJob_async", - "title": "VmMigration cancelCutoverJob Sample", - "origin": "API_DEFINITION", - "description": " Initiates the cancellation of a running cutover job.", - "canonical": true, - "file": "vm_migration.cancel_cutover_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CancelCutoverJob", - "fullName": "google.cloud.vmmigration.v1.VmMigration.CancelCutoverJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "CancelCutoverJob", - "fullName": "google.cloud.vmmigration.v1.VmMigration.CancelCutoverJob", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_ListCutoverJobs_async", - "title": "VmMigration listCutoverJobs Sample", - "origin": "API_DEFINITION", - "description": " Lists the CutoverJobs of a migrating VM. Only 25 most recent CutoverJobs are listed.", - "canonical": true, - "file": "vm_migration.list_cutover_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCutoverJobs", - "fullName": "google.cloud.vmmigration.v1.VmMigration.ListCutoverJobs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vmmigration.v1.ListCutoverJobsResponse", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "ListCutoverJobs", - "fullName": "google.cloud.vmmigration.v1.VmMigration.ListCutoverJobs", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_GetCutoverJob_async", - "title": "VmMigration getCutoverJob Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single CutoverJob.", - "canonical": true, - "file": "vm_migration.get_cutover_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCutoverJob", - "fullName": "google.cloud.vmmigration.v1.VmMigration.GetCutoverJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vmmigration.v1.CutoverJob", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "GetCutoverJob", - "fullName": "google.cloud.vmmigration.v1.VmMigration.GetCutoverJob", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_ListGroups_async", - "title": "VmMigration listGroups Sample", - "origin": "API_DEFINITION", - "description": " Lists Groups in a given project and location.", - "canonical": true, - "file": "vm_migration.list_groups.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListGroups", - "fullName": "google.cloud.vmmigration.v1.VmMigration.ListGroups", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vmmigration.v1.ListGroupsResponse", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "ListGroups", - "fullName": "google.cloud.vmmigration.v1.VmMigration.ListGroups", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_GetGroup_async", - "title": "VmMigration getGroup Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Group.", - "canonical": true, - "file": "vm_migration.get_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetGroup", - "fullName": "google.cloud.vmmigration.v1.VmMigration.GetGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vmmigration.v1.Group", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "GetGroup", - "fullName": "google.cloud.vmmigration.v1.VmMigration.GetGroup", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_CreateGroup_async", - "title": "VmMigration createGroup Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Group in a given project and location.", - "canonical": true, - "file": "vm_migration.create_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateGroup", - "fullName": "google.cloud.vmmigration.v1.VmMigration.CreateGroup", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "group_id", - "type": "TYPE_STRING" - }, - { - "name": "group", - "type": ".google.cloud.vmmigration.v1.Group" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "CreateGroup", - "fullName": "google.cloud.vmmigration.v1.VmMigration.CreateGroup", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_UpdateGroup_async", - "title": "VmMigration updateGroup Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Group.", - "canonical": true, - "file": "vm_migration.update_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateGroup", - "fullName": "google.cloud.vmmigration.v1.VmMigration.UpdateGroup", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "group", - "type": ".google.cloud.vmmigration.v1.Group" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "UpdateGroup", - "fullName": "google.cloud.vmmigration.v1.VmMigration.UpdateGroup", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_DeleteGroup_async", - "title": "VmMigration deleteGroup Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Group.", - "canonical": true, - "file": "vm_migration.delete_group.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteGroup", - "fullName": "google.cloud.vmmigration.v1.VmMigration.DeleteGroup", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "DeleteGroup", - "fullName": "google.cloud.vmmigration.v1.VmMigration.DeleteGroup", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_AddGroupMigration_async", - "title": "VmMigration addGroupMigration Sample", - "origin": "API_DEFINITION", - "description": " Adds a MigratingVm to a Group.", - "canonical": true, - "file": "vm_migration.add_group_migration.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AddGroupMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration.AddGroupMigration", - "async": true, - "parameters": [ - { - "name": "group", - "type": "TYPE_STRING" - }, - { - "name": "migrating_vm", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "AddGroupMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration.AddGroupMigration", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_RemoveGroupMigration_async", - "title": "VmMigration removeGroupMigration Sample", - "origin": "API_DEFINITION", - "description": " Removes a MigratingVm from a Group.", - "canonical": true, - "file": "vm_migration.remove_group_migration.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RemoveGroupMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration.RemoveGroupMigration", - "async": true, - "parameters": [ - { - "name": "group", - "type": "TYPE_STRING" - }, - { - "name": "migrating_vm", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "RemoveGroupMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration.RemoveGroupMigration", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_ListTargetProjects_async", - "title": "VmMigration listTargetProjects Sample", - "origin": "API_DEFINITION", - "description": " Lists TargetProjects in a given project. NOTE: TargetProject is a global resource; hence the only supported value for location is `global`.", - "canonical": true, - "file": "vm_migration.list_target_projects.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTargetProjects", - "fullName": "google.cloud.vmmigration.v1.VmMigration.ListTargetProjects", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vmmigration.v1.ListTargetProjectsResponse", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "ListTargetProjects", - "fullName": "google.cloud.vmmigration.v1.VmMigration.ListTargetProjects", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_GetTargetProject_async", - "title": "VmMigration getTargetProject Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single TargetProject. NOTE: TargetProject is a global resource; hence the only supported value for location is `global`.", - "canonical": true, - "file": "vm_migration.get_target_project.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTargetProject", - "fullName": "google.cloud.vmmigration.v1.VmMigration.GetTargetProject", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vmmigration.v1.TargetProject", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "GetTargetProject", - "fullName": "google.cloud.vmmigration.v1.VmMigration.GetTargetProject", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_CreateTargetProject_async", - "title": "VmMigration createTargetProject Sample", - "origin": "API_DEFINITION", - "description": " Creates a new TargetProject in a given project. NOTE: TargetProject is a global resource; hence the only supported value for location is `global`.", - "canonical": true, - "file": "vm_migration.create_target_project.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTargetProject", - "fullName": "google.cloud.vmmigration.v1.VmMigration.CreateTargetProject", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "target_project_id", - "type": "TYPE_STRING" - }, - { - "name": "target_project", - "type": ".google.cloud.vmmigration.v1.TargetProject" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "CreateTargetProject", - "fullName": "google.cloud.vmmigration.v1.VmMigration.CreateTargetProject", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_UpdateTargetProject_async", - "title": "VmMigration updateTargetProject Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single TargetProject. NOTE: TargetProject is a global resource; hence the only supported value for location is `global`.", - "canonical": true, - "file": "vm_migration.update_target_project.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTargetProject", - "fullName": "google.cloud.vmmigration.v1.VmMigration.UpdateTargetProject", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "target_project", - "type": ".google.cloud.vmmigration.v1.TargetProject" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "UpdateTargetProject", - "fullName": "google.cloud.vmmigration.v1.VmMigration.UpdateTargetProject", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_DeleteTargetProject_async", - "title": "VmMigration deleteTargetProject Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single TargetProject. NOTE: TargetProject is a global resource; hence the only supported value for location is `global`.", - "canonical": true, - "file": "vm_migration.delete_target_project.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTargetProject", - "fullName": "google.cloud.vmmigration.v1.VmMigration.DeleteTargetProject", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "DeleteTargetProject", - "fullName": "google.cloud.vmmigration.v1.VmMigration.DeleteTargetProject", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_ListReplicationCycles_async", - "title": "VmMigration listReplicationCycles Sample", - "origin": "API_DEFINITION", - "description": " Lists ReplicationCycles in a given MigratingVM.", - "canonical": true, - "file": "vm_migration.list_replication_cycles.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListReplicationCycles", - "fullName": "google.cloud.vmmigration.v1.VmMigration.ListReplicationCycles", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vmmigration.v1.ListReplicationCyclesResponse", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "ListReplicationCycles", - "fullName": "google.cloud.vmmigration.v1.VmMigration.ListReplicationCycles", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_GetReplicationCycle_async", - "title": "VmMigration getReplicationCycle Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single ReplicationCycle.", - "canonical": true, - "file": "vm_migration.get_replication_cycle.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetReplicationCycle", - "fullName": "google.cloud.vmmigration.v1.VmMigration.GetReplicationCycle", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vmmigration.v1.ReplicationCycle", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "GetReplicationCycle", - "fullName": "google.cloud.vmmigration.v1.VmMigration.GetReplicationCycle", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_ListImageImports_async", - "title": "VmMigration listImageImports Sample", - "origin": "API_DEFINITION", - "description": " Lists ImageImports in a given project.", - "canonical": true, - "file": "vm_migration.list_image_imports.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListImageImports", - "fullName": "google.cloud.vmmigration.v1.VmMigration.ListImageImports", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vmmigration.v1.ListImageImportsResponse", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "ListImageImports", - "fullName": "google.cloud.vmmigration.v1.VmMigration.ListImageImports", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_GetImageImport_async", - "title": "VmMigration getImageImport Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single ImageImport.", - "canonical": true, - "file": "vm_migration.get_image_import.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetImageImport", - "fullName": "google.cloud.vmmigration.v1.VmMigration.GetImageImport", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vmmigration.v1.ImageImport", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "GetImageImport", - "fullName": "google.cloud.vmmigration.v1.VmMigration.GetImageImport", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_CreateImageImport_async", - "title": "VmMigration createImageImport Sample", - "origin": "API_DEFINITION", - "description": " Creates a new ImageImport in a given project.", - "canonical": true, - "file": "vm_migration.create_image_import.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateImageImport", - "fullName": "google.cloud.vmmigration.v1.VmMigration.CreateImageImport", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "image_import_id", - "type": "TYPE_STRING" - }, - { - "name": "image_import", - "type": ".google.cloud.vmmigration.v1.ImageImport" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "CreateImageImport", - "fullName": "google.cloud.vmmigration.v1.VmMigration.CreateImageImport", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_DeleteImageImport_async", - "title": "VmMigration deleteImageImport Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single ImageImport.", - "canonical": true, - "file": "vm_migration.delete_image_import.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteImageImport", - "fullName": "google.cloud.vmmigration.v1.VmMigration.DeleteImageImport", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "DeleteImageImport", - "fullName": "google.cloud.vmmigration.v1.VmMigration.DeleteImageImport", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_ListImageImportJobs_async", - "title": "VmMigration listImageImportJobs Sample", - "origin": "API_DEFINITION", - "description": " Lists ImageImportJobs in a given project.", - "canonical": true, - "file": "vm_migration.list_image_import_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListImageImportJobs", - "fullName": "google.cloud.vmmigration.v1.VmMigration.ListImageImportJobs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vmmigration.v1.ListImageImportJobsResponse", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "ListImageImportJobs", - "fullName": "google.cloud.vmmigration.v1.VmMigration.ListImageImportJobs", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_GetImageImportJob_async", - "title": "VmMigration getImageImportJob Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single ImageImportJob.", - "canonical": true, - "file": "vm_migration.get_image_import_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetImageImportJob", - "fullName": "google.cloud.vmmigration.v1.VmMigration.GetImageImportJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vmmigration.v1.ImageImportJob", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "GetImageImportJob", - "fullName": "google.cloud.vmmigration.v1.VmMigration.GetImageImportJob", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_CancelImageImportJob_async", - "title": "VmMigration cancelImageImportJob Sample", - "origin": "API_DEFINITION", - "description": " Initiates the cancellation of a running ImageImportJob.", - "canonical": true, - "file": "vm_migration.cancel_image_import_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CancelImageImportJob", - "fullName": "google.cloud.vmmigration.v1.VmMigration.CancelImageImportJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "CancelImageImportJob", - "fullName": "google.cloud.vmmigration.v1.VmMigration.CancelImageImportJob", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_CreateDiskMigrationJob_async", - "title": "VmMigration createDiskMigrationJob Sample", - "origin": "API_DEFINITION", - "description": " Creates a new disk migration job in a given Source.", - "canonical": true, - "file": "vm_migration.create_disk_migration_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDiskMigrationJob", - "fullName": "google.cloud.vmmigration.v1.VmMigration.CreateDiskMigrationJob", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "disk_migration_job_id", - "type": "TYPE_STRING" - }, - { - "name": "disk_migration_job", - "type": ".google.cloud.vmmigration.v1.DiskMigrationJob" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "CreateDiskMigrationJob", - "fullName": "google.cloud.vmmigration.v1.VmMigration.CreateDiskMigrationJob", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_ListDiskMigrationJobs_async", - "title": "VmMigration listDiskMigrationJobs Sample", - "origin": "API_DEFINITION", - "description": " Lists DiskMigrationJobs in a given Source.", - "canonical": true, - "file": "vm_migration.list_disk_migration_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDiskMigrationJobs", - "fullName": "google.cloud.vmmigration.v1.VmMigration.ListDiskMigrationJobs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vmmigration.v1.ListDiskMigrationJobsResponse", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "ListDiskMigrationJobs", - "fullName": "google.cloud.vmmigration.v1.VmMigration.ListDiskMigrationJobs", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_GetDiskMigrationJob_async", - "title": "VmMigration getDiskMigrationJob Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single DiskMigrationJob.", - "canonical": true, - "file": "vm_migration.get_disk_migration_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDiskMigrationJob", - "fullName": "google.cloud.vmmigration.v1.VmMigration.GetDiskMigrationJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vmmigration.v1.DiskMigrationJob", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "GetDiskMigrationJob", - "fullName": "google.cloud.vmmigration.v1.VmMigration.GetDiskMigrationJob", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_UpdateDiskMigrationJob_async", - "title": "VmMigration updateDiskMigrationJob Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single DiskMigrationJob.", - "canonical": true, - "file": "vm_migration.update_disk_migration_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDiskMigrationJob", - "fullName": "google.cloud.vmmigration.v1.VmMigration.UpdateDiskMigrationJob", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "disk_migration_job", - "type": ".google.cloud.vmmigration.v1.DiskMigrationJob" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "UpdateDiskMigrationJob", - "fullName": "google.cloud.vmmigration.v1.VmMigration.UpdateDiskMigrationJob", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_DeleteDiskMigrationJob_async", - "title": "VmMigration deleteDiskMigrationJob Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single DiskMigrationJob.", - "canonical": true, - "file": "vm_migration.delete_disk_migration_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDiskMigrationJob", - "fullName": "google.cloud.vmmigration.v1.VmMigration.DeleteDiskMigrationJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "DeleteDiskMigrationJob", - "fullName": "google.cloud.vmmigration.v1.VmMigration.DeleteDiskMigrationJob", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_RunDiskMigrationJob_async", - "title": "VmMigration runDiskMigrationJob Sample", - "origin": "API_DEFINITION", - "description": " Runs the disk migration job.", - "canonical": true, - "file": "vm_migration.run_disk_migration_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RunDiskMigrationJob", - "fullName": "google.cloud.vmmigration.v1.VmMigration.RunDiskMigrationJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "RunDiskMigrationJob", - "fullName": "google.cloud.vmmigration.v1.VmMigration.RunDiskMigrationJob", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - }, - { - "regionTag": "vmmigration_v1_generated_VmMigration_CancelDiskMigrationJob_async", - "title": "VmMigration cancelDiskMigrationJob Sample", - "origin": "API_DEFINITION", - "description": " Cancels the disk migration job.", - "canonical": true, - "file": "vm_migration.cancel_disk_migration_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CancelDiskMigrationJob", - "fullName": "google.cloud.vmmigration.v1.VmMigration.CancelDiskMigrationJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmMigrationClient", - "fullName": "google.cloud.vmmigration.v1.VmMigrationClient" - }, - "method": { - "shortName": "CancelDiskMigrationJob", - "fullName": "google.cloud.vmmigration.v1.VmMigration.CancelDiskMigrationJob", - "service": { - "shortName": "VmMigration", - "fullName": "google.cloud.vmmigration.v1.VmMigration" - } - } - } - } - ] -} diff --git a/packages/google-cloud-vmwareengine/samples/generated/v1/snippet_metadata_google.cloud.vmwareengine.v1.json b/packages/google-cloud-vmwareengine/samples/generated/v1/snippet_metadata_google.cloud.vmwareengine.v1.json deleted file mode 100644 index e55ca886cf09..000000000000 --- a/packages/google-cloud-vmwareengine/samples/generated/v1/snippet_metadata_google.cloud.vmwareengine.v1.json +++ /dev/null @@ -1,3527 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-vmwareengine", - "version": "2.2.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.vmwareengine.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_ListPrivateClouds_async", - "title": "VmwareEngine listPrivateClouds Sample", - "origin": "API_DEFINITION", - "description": " Lists `PrivateCloud` resources in a given project and location.", - "canonical": true, - "file": "vmware_engine.list_private_clouds.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 106, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPrivateClouds", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListPrivateClouds", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vmwareengine.v1.ListPrivateCloudsResponse", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "ListPrivateClouds", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListPrivateClouds", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_GetPrivateCloud_async", - "title": "VmwareEngine getPrivateCloud Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a `PrivateCloud` resource by its resource name.", - "canonical": true, - "file": "vmware_engine.get_private_cloud.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPrivateCloud", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetPrivateCloud", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vmwareengine.v1.PrivateCloud", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "GetPrivateCloud", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetPrivateCloud", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_CreatePrivateCloud_async", - "title": "VmwareEngine createPrivateCloud Sample", - "origin": "API_DEFINITION", - "description": " Creates a new `PrivateCloud` resource in a given project and location. Private clouds of type `STANDARD` and `TIME_LIMITED` are zonal resources, `STRETCHED` private clouds are regional. Creating a private cloud also creates a [management cluster](https://cloud.google.com/vmware-engine/docs/concepts-vmware-components) for that private cloud.", - "canonical": true, - "file": "vmware_engine.create_private_cloud.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreatePrivateCloud", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.CreatePrivateCloud", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "private_cloud_id", - "type": "TYPE_STRING" - }, - { - "name": "private_cloud", - "type": ".google.cloud.vmwareengine.v1.PrivateCloud" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "CreatePrivateCloud", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.CreatePrivateCloud", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_UpdatePrivateCloud_async", - "title": "VmwareEngine updatePrivateCloud Sample", - "origin": "API_DEFINITION", - "description": " Modifies a `PrivateCloud` resource. Only the following fields can be updated: `description`. Only fields specified in `updateMask` are applied. During operation processing, the resource is temporarily in the `ACTIVE` state before the operation fully completes. For that period of time, you can't update the resource. Use the operation status to determine when the processing fully completes.", - "canonical": true, - "file": "vmware_engine.update_private_cloud.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdatePrivateCloud", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.UpdatePrivateCloud", - "async": true, - "parameters": [ - { - "name": "private_cloud", - "type": ".google.cloud.vmwareengine.v1.PrivateCloud" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "UpdatePrivateCloud", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.UpdatePrivateCloud", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_DeletePrivateCloud_async", - "title": "VmwareEngine deletePrivateCloud Sample", - "origin": "API_DEFINITION", - "description": " Schedules a `PrivateCloud` resource for deletion. A `PrivateCloud` resource scheduled for deletion has `PrivateCloud.state` set to `DELETED` and `expireTime` set to the time when deletion is final and can no longer be reversed. The delete operation is marked as done as soon as the `PrivateCloud` is successfully scheduled for deletion (this also applies when `delayHours` is set to zero), and the operation is not kept in pending state until `PrivateCloud` is purged. `PrivateCloud` can be restored using `UndeletePrivateCloud` method before the `expireTime` elapses. When `expireTime` is reached, deletion is final and all private cloud resources are irreversibly removed and billing stops. During the final removal process, `PrivateCloud.state` is set to `PURGING`. `PrivateCloud` can be polled using standard `GET` method for the whole period of deletion and purging. It will not be returned only when it is completely purged.", - "canonical": true, - "file": "vmware_engine.delete_private_cloud.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePrivateCloud", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.DeletePrivateCloud", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - }, - { - "name": "delay_hours", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "DeletePrivateCloud", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.DeletePrivateCloud", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_UndeletePrivateCloud_async", - "title": "VmwareEngine undeletePrivateCloud Sample", - "origin": "API_DEFINITION", - "description": " Restores a private cloud that was previously scheduled for deletion by `DeletePrivateCloud`. A `PrivateCloud` resource scheduled for deletion has `PrivateCloud.state` set to `DELETED` and `PrivateCloud.expireTime` set to the time when deletion can no longer be reversed.", - "canonical": true, - "file": "vmware_engine.undelete_private_cloud.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UndeletePrivateCloud", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.UndeletePrivateCloud", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "UndeletePrivateCloud", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.UndeletePrivateCloud", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_ListClusters_async", - "title": "VmwareEngine listClusters Sample", - "origin": "API_DEFINITION", - "description": " Lists `Cluster` resources in a given private cloud.", - "canonical": true, - "file": "vmware_engine.list_clusters.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 96, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListClusters", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListClusters", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vmwareengine.v1.ListClustersResponse", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "ListClusters", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListClusters", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_GetCluster_async", - "title": "VmwareEngine getCluster Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a `Cluster` resource by its resource name.", - "canonical": true, - "file": "vmware_engine.get_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCluster", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vmwareengine.v1.Cluster", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "GetCluster", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetCluster", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_CreateCluster_async", - "title": "VmwareEngine createCluster Sample", - "origin": "API_DEFINITION", - "description": " Creates a new cluster in a given private cloud. Creating a new cluster provides additional nodes for use in the parent private cloud and requires sufficient [node quota](https://cloud.google.com/vmware-engine/quotas).", - "canonical": true, - "file": "vmware_engine.create_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCluster", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.CreateCluster", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "cluster", - "type": ".google.cloud.vmwareengine.v1.Cluster" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "CreateCluster", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.CreateCluster", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_UpdateCluster_async", - "title": "VmwareEngine updateCluster Sample", - "origin": "API_DEFINITION", - "description": " Modifies a `Cluster` resource. Only fields specified in `updateMask` are applied. During operation processing, the resource is temporarily in the `ACTIVE` state before the operation fully completes. For that period of time, you can't update the resource. Use the operation status to determine when the processing fully completes.", - "canonical": true, - "file": "vmware_engine.update_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCluster", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.UpdateCluster", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "cluster", - "type": ".google.cloud.vmwareengine.v1.Cluster" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "UpdateCluster", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.UpdateCluster", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_DeleteCluster_async", - "title": "VmwareEngine deleteCluster Sample", - "origin": "API_DEFINITION", - "description": " Deletes a `Cluster` resource. To avoid unintended data loss, migrate or gracefully shut down any workloads running on the cluster before deletion. You cannot delete the management cluster of a private cloud using this method.", - "canonical": true, - "file": "vmware_engine.delete_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCluster", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.DeleteCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "DeleteCluster", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.DeleteCluster", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_ListNodes_async", - "title": "VmwareEngine listNodes Sample", - "origin": "API_DEFINITION", - "description": " Lists nodes in a given cluster.", - "canonical": true, - "file": "vmware_engine.list_nodes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListNodes", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListNodes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vmwareengine.v1.ListNodesResponse", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "ListNodes", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListNodes", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_GetNode_async", - "title": "VmwareEngine getNode Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single node.", - "canonical": true, - "file": "vmware_engine.get_node.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetNode", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetNode", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vmwareengine.v1.Node", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "GetNode", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetNode", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_ListExternalAddresses_async", - "title": "VmwareEngine listExternalAddresses Sample", - "origin": "API_DEFINITION", - "description": " Lists external IP addresses assigned to VMware workload VMs in a given private cloud.", - "canonical": true, - "file": "vmware_engine.list_external_addresses.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 107, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListExternalAddresses", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListExternalAddresses", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vmwareengine.v1.ListExternalAddressesResponse", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "ListExternalAddresses", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListExternalAddresses", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_FetchNetworkPolicyExternalAddresses_async", - "title": "VmwareEngine fetchNetworkPolicyExternalAddresses Sample", - "origin": "API_DEFINITION", - "description": " Lists external IP addresses assigned to VMware workload VMs within the scope of the given network policy.", - "canonical": true, - "file": "vmware_engine.fetch_network_policy_external_addresses.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchNetworkPolicyExternalAddresses", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.FetchNetworkPolicyExternalAddresses", - "async": true, - "parameters": [ - { - "name": "network_policy", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vmwareengine.v1.FetchNetworkPolicyExternalAddressesResponse", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "FetchNetworkPolicyExternalAddresses", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.FetchNetworkPolicyExternalAddresses", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_GetExternalAddress_async", - "title": "VmwareEngine getExternalAddress Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single external IP address.", - "canonical": true, - "file": "vmware_engine.get_external_address.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetExternalAddress", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetExternalAddress", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vmwareengine.v1.ExternalAddress", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "GetExternalAddress", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetExternalAddress", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_CreateExternalAddress_async", - "title": "VmwareEngine createExternalAddress Sample", - "origin": "API_DEFINITION", - "description": " Creates a new `ExternalAddress` resource in a given private cloud. The network policy that corresponds to the private cloud must have the external IP address network service enabled (`NetworkPolicy.external_ip`).", - "canonical": true, - "file": "vmware_engine.create_external_address.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 93, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateExternalAddress", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.CreateExternalAddress", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "external_address", - "type": ".google.cloud.vmwareengine.v1.ExternalAddress" - }, - { - "name": "external_address_id", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "CreateExternalAddress", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.CreateExternalAddress", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_UpdateExternalAddress_async", - "title": "VmwareEngine updateExternalAddress Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single external IP address. Only fields specified in `update_mask` are applied. During operation processing, the resource is temporarily in the `ACTIVE` state before the operation fully completes. For that period of time, you can't update the resource. Use the operation status to determine when the processing fully completes.", - "canonical": true, - "file": "vmware_engine.update_external_address.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateExternalAddress", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.UpdateExternalAddress", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "external_address", - "type": ".google.cloud.vmwareengine.v1.ExternalAddress" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "UpdateExternalAddress", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.UpdateExternalAddress", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_DeleteExternalAddress_async", - "title": "VmwareEngine deleteExternalAddress Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single external IP address. When you delete an external IP address, connectivity between the external IP address and the corresponding internal IP address is lost.", - "canonical": true, - "file": "vmware_engine.delete_external_address.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteExternalAddress", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.DeleteExternalAddress", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "DeleteExternalAddress", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.DeleteExternalAddress", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_ListSubnets_async", - "title": "VmwareEngine listSubnets Sample", - "origin": "API_DEFINITION", - "description": " Lists subnets in a given private cloud.", - "canonical": true, - "file": "vmware_engine.list_subnets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSubnets", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListSubnets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vmwareengine.v1.ListSubnetsResponse", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "ListSubnets", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListSubnets", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_GetSubnet_async", - "title": "VmwareEngine getSubnet Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single subnet.", - "canonical": true, - "file": "vmware_engine.get_subnet.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSubnet", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetSubnet", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vmwareengine.v1.Subnet", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "GetSubnet", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetSubnet", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_UpdateSubnet_async", - "title": "VmwareEngine updateSubnet Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single subnet. Only fields specified in `update_mask` are applied. *Note*: This API is synchronous and always returns a successful `google.longrunning.Operation` (LRO). The returned LRO will only have `done` and `response` fields.", - "canonical": true, - "file": "vmware_engine.update_subnet.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSubnet", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.UpdateSubnet", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "subnet", - "type": ".google.cloud.vmwareengine.v1.Subnet" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "UpdateSubnet", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.UpdateSubnet", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_ListExternalAccessRules_async", - "title": "VmwareEngine listExternalAccessRules Sample", - "origin": "API_DEFINITION", - "description": " Lists `ExternalAccessRule` resources in the specified network policy.", - "canonical": true, - "file": "vmware_engine.list_external_access_rules.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 107, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListExternalAccessRules", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListExternalAccessRules", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vmwareengine.v1.ListExternalAccessRulesResponse", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "ListExternalAccessRules", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListExternalAccessRules", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_GetExternalAccessRule_async", - "title": "VmwareEngine getExternalAccessRule Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single external access rule.", - "canonical": true, - "file": "vmware_engine.get_external_access_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetExternalAccessRule", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetExternalAccessRule", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vmwareengine.v1.ExternalAccessRule", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "GetExternalAccessRule", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetExternalAccessRule", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_CreateExternalAccessRule_async", - "title": "VmwareEngine createExternalAccessRule Sample", - "origin": "API_DEFINITION", - "description": " Creates a new external access rule in a given network policy.", - "canonical": true, - "file": "vmware_engine.create_external_access_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 93, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateExternalAccessRule", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.CreateExternalAccessRule", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "external_access_rule", - "type": ".google.cloud.vmwareengine.v1.ExternalAccessRule" - }, - { - "name": "external_access_rule_id", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "CreateExternalAccessRule", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.CreateExternalAccessRule", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_UpdateExternalAccessRule_async", - "title": "VmwareEngine updateExternalAccessRule Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single external access rule. Only fields specified in `update_mask` are applied.", - "canonical": true, - "file": "vmware_engine.update_external_access_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateExternalAccessRule", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.UpdateExternalAccessRule", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "external_access_rule", - "type": ".google.cloud.vmwareengine.v1.ExternalAccessRule" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "UpdateExternalAccessRule", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.UpdateExternalAccessRule", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_DeleteExternalAccessRule_async", - "title": "VmwareEngine deleteExternalAccessRule Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single external access rule.", - "canonical": true, - "file": "vmware_engine.delete_external_access_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteExternalAccessRule", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.DeleteExternalAccessRule", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "DeleteExternalAccessRule", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.DeleteExternalAccessRule", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_ListLoggingServers_async", - "title": "VmwareEngine listLoggingServers Sample", - "origin": "API_DEFINITION", - "description": " Lists logging servers configured for a given private cloud.", - "canonical": true, - "file": "vmware_engine.list_logging_servers.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 108, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListLoggingServers", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListLoggingServers", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vmwareengine.v1.ListLoggingServersResponse", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "ListLoggingServers", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListLoggingServers", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_GetLoggingServer_async", - "title": "VmwareEngine getLoggingServer Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a logging server.", - "canonical": true, - "file": "vmware_engine.get_logging_server.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetLoggingServer", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetLoggingServer", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vmwareengine.v1.LoggingServer", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "GetLoggingServer", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetLoggingServer", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_CreateLoggingServer_async", - "title": "VmwareEngine createLoggingServer Sample", - "origin": "API_DEFINITION", - "description": " Create a new logging server for a given private cloud.", - "canonical": true, - "file": "vmware_engine.create_logging_server.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 93, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateLoggingServer", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.CreateLoggingServer", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "logging_server", - "type": ".google.cloud.vmwareengine.v1.LoggingServer" - }, - { - "name": "logging_server_id", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "CreateLoggingServer", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.CreateLoggingServer", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_UpdateLoggingServer_async", - "title": "VmwareEngine updateLoggingServer Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single logging server. Only fields specified in `update_mask` are applied.", - "canonical": true, - "file": "vmware_engine.update_logging_server.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateLoggingServer", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.UpdateLoggingServer", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "logging_server", - "type": ".google.cloud.vmwareengine.v1.LoggingServer" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "UpdateLoggingServer", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.UpdateLoggingServer", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_DeleteLoggingServer_async", - "title": "VmwareEngine deleteLoggingServer Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single logging server.", - "canonical": true, - "file": "vmware_engine.delete_logging_server.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteLoggingServer", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.DeleteLoggingServer", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "DeleteLoggingServer", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.DeleteLoggingServer", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_ListNodeTypes_async", - "title": "VmwareEngine listNodeTypes Sample", - "origin": "API_DEFINITION", - "description": " Lists node types", - "canonical": true, - "file": "vmware_engine.list_node_types.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 98, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListNodeTypes", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListNodeTypes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vmwareengine.v1.ListNodeTypesResponse", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "ListNodeTypes", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListNodeTypes", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_GetNodeType_async", - "title": "VmwareEngine getNodeType Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single `NodeType`.", - "canonical": true, - "file": "vmware_engine.get_node_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetNodeType", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetNodeType", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vmwareengine.v1.NodeType", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "GetNodeType", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetNodeType", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_ShowNsxCredentials_async", - "title": "VmwareEngine showNsxCredentials Sample", - "origin": "API_DEFINITION", - "description": " Gets details of credentials for NSX appliance.", - "canonical": true, - "file": "vmware_engine.show_nsx_credentials.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ShowNsxCredentials", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ShowNsxCredentials", - "async": true, - "parameters": [ - { - "name": "private_cloud", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vmwareengine.v1.Credentials", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "ShowNsxCredentials", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ShowNsxCredentials", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_ShowVcenterCredentials_async", - "title": "VmwareEngine showVcenterCredentials Sample", - "origin": "API_DEFINITION", - "description": " Gets details of credentials for Vcenter appliance.", - "canonical": true, - "file": "vmware_engine.show_vcenter_credentials.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ShowVcenterCredentials", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ShowVcenterCredentials", - "async": true, - "parameters": [ - { - "name": "private_cloud", - "type": "TYPE_STRING" - }, - { - "name": "username", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vmwareengine.v1.Credentials", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "ShowVcenterCredentials", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ShowVcenterCredentials", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_ResetNsxCredentials_async", - "title": "VmwareEngine resetNsxCredentials Sample", - "origin": "API_DEFINITION", - "description": " Resets credentials of the NSX appliance.", - "canonical": true, - "file": "vmware_engine.reset_nsx_credentials.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResetNsxCredentials", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ResetNsxCredentials", - "async": true, - "parameters": [ - { - "name": "private_cloud", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "ResetNsxCredentials", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ResetNsxCredentials", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_ResetVcenterCredentials_async", - "title": "VmwareEngine resetVcenterCredentials Sample", - "origin": "API_DEFINITION", - "description": " Resets credentials of the Vcenter appliance.", - "canonical": true, - "file": "vmware_engine.reset_vcenter_credentials.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResetVcenterCredentials", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ResetVcenterCredentials", - "async": true, - "parameters": [ - { - "name": "private_cloud", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "username", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "ResetVcenterCredentials", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ResetVcenterCredentials", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_GetDnsForwarding_async", - "title": "VmwareEngine getDnsForwarding Sample", - "origin": "API_DEFINITION", - "description": " Gets details of the `DnsForwarding` config.", - "canonical": true, - "file": "vmware_engine.get_dns_forwarding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDnsForwarding", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetDnsForwarding", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vmwareengine.v1.DnsForwarding", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "GetDnsForwarding", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetDnsForwarding", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_UpdateDnsForwarding_async", - "title": "VmwareEngine updateDnsForwarding Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of the `DnsForwarding` config, like associated domains. Only fields specified in `update_mask` are applied.", - "canonical": true, - "file": "vmware_engine.update_dns_forwarding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDnsForwarding", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.UpdateDnsForwarding", - "async": true, - "parameters": [ - { - "name": "dns_forwarding", - "type": ".google.cloud.vmwareengine.v1.DnsForwarding" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "UpdateDnsForwarding", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.UpdateDnsForwarding", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_GetNetworkPeering_async", - "title": "VmwareEngine getNetworkPeering Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a `NetworkPeering` resource by its resource name. The resource contains details of the network peering, such as peered networks, import and export custom route configurations, and peering state. NetworkPeering is a global resource and location can only be global.", - "canonical": true, - "file": "vmware_engine.get_network_peering.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetNetworkPeering", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetNetworkPeering", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vmwareengine.v1.NetworkPeering", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "GetNetworkPeering", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetNetworkPeering", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_ListNetworkPeerings_async", - "title": "VmwareEngine listNetworkPeerings Sample", - "origin": "API_DEFINITION", - "description": " Lists `NetworkPeering` resources in a given project. NetworkPeering is a global resource and location can only be global.", - "canonical": true, - "file": "vmware_engine.list_network_peerings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 105, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListNetworkPeerings", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListNetworkPeerings", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vmwareengine.v1.ListNetworkPeeringsResponse", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "ListNetworkPeerings", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListNetworkPeerings", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_CreateNetworkPeering_async", - "title": "VmwareEngine createNetworkPeering Sample", - "origin": "API_DEFINITION", - "description": " Creates a new network peering between the peer network and VMware Engine network provided in a `NetworkPeering` resource. NetworkPeering is a global resource and location can only be global.", - "canonical": true, - "file": "vmware_engine.create_network_peering.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 92, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateNetworkPeering", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.CreateNetworkPeering", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "network_peering_id", - "type": "TYPE_STRING" - }, - { - "name": "network_peering", - "type": ".google.cloud.vmwareengine.v1.NetworkPeering" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "CreateNetworkPeering", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.CreateNetworkPeering", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_DeleteNetworkPeering_async", - "title": "VmwareEngine deleteNetworkPeering Sample", - "origin": "API_DEFINITION", - "description": " Deletes a `NetworkPeering` resource. When a network peering is deleted for a VMware Engine network, the peer network becomes inaccessible to that VMware Engine network. NetworkPeering is a global resource and location can only be global.", - "canonical": true, - "file": "vmware_engine.delete_network_peering.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteNetworkPeering", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.DeleteNetworkPeering", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "DeleteNetworkPeering", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.DeleteNetworkPeering", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_UpdateNetworkPeering_async", - "title": "VmwareEngine updateNetworkPeering Sample", - "origin": "API_DEFINITION", - "description": " Modifies a `NetworkPeering` resource. Only the `description` field can be updated. Only fields specified in `updateMask` are applied. NetworkPeering is a global resource and location can only be global.", - "canonical": true, - "file": "vmware_engine.update_network_peering.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateNetworkPeering", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.UpdateNetworkPeering", - "async": true, - "parameters": [ - { - "name": "network_peering", - "type": ".google.cloud.vmwareengine.v1.NetworkPeering" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "UpdateNetworkPeering", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.UpdateNetworkPeering", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_ListPeeringRoutes_async", - "title": "VmwareEngine listPeeringRoutes Sample", - "origin": "API_DEFINITION", - "description": " Lists the network peering routes exchanged over a peering connection. NetworkPeering is a global resource and location can only be global.", - "canonical": true, - "file": "vmware_engine.list_peering_routes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPeeringRoutes", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListPeeringRoutes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vmwareengine.v1.ListPeeringRoutesResponse", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "ListPeeringRoutes", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListPeeringRoutes", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_CreateHcxActivationKey_async", - "title": "VmwareEngine createHcxActivationKey Sample", - "origin": "API_DEFINITION", - "description": " Creates a new HCX activation key in a given private cloud.", - "canonical": true, - "file": "vmware_engine.create_hcx_activation_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 93, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateHcxActivationKey", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.CreateHcxActivationKey", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "hcx_activation_key", - "type": ".google.cloud.vmwareengine.v1.HcxActivationKey" - }, - { - "name": "hcx_activation_key_id", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "CreateHcxActivationKey", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.CreateHcxActivationKey", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_ListHcxActivationKeys_async", - "title": "VmwareEngine listHcxActivationKeys Sample", - "origin": "API_DEFINITION", - "description": " Lists `HcxActivationKey` resources in a given private cloud.", - "canonical": true, - "file": "vmware_engine.list_hcx_activation_keys.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListHcxActivationKeys", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListHcxActivationKeys", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vmwareengine.v1.ListHcxActivationKeysResponse", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "ListHcxActivationKeys", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListHcxActivationKeys", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_GetHcxActivationKey_async", - "title": "VmwareEngine getHcxActivationKey Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a `HcxActivationKey` resource by its resource name.", - "canonical": true, - "file": "vmware_engine.get_hcx_activation_key.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetHcxActivationKey", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetHcxActivationKey", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vmwareengine.v1.HcxActivationKey", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "GetHcxActivationKey", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetHcxActivationKey", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_GetNetworkPolicy_async", - "title": "VmwareEngine getNetworkPolicy Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a `NetworkPolicy` resource by its resource name.", - "canonical": true, - "file": "vmware_engine.get_network_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetNetworkPolicy", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetNetworkPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vmwareengine.v1.NetworkPolicy", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "GetNetworkPolicy", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetNetworkPolicy", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_ListNetworkPolicies_async", - "title": "VmwareEngine listNetworkPolicies Sample", - "origin": "API_DEFINITION", - "description": " Lists `NetworkPolicy` resources in a specified project and location.", - "canonical": true, - "file": "vmware_engine.list_network_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 106, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListNetworkPolicies", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListNetworkPolicies", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vmwareengine.v1.ListNetworkPoliciesResponse", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "ListNetworkPolicies", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListNetworkPolicies", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_CreateNetworkPolicy_async", - "title": "VmwareEngine createNetworkPolicy Sample", - "origin": "API_DEFINITION", - "description": " Creates a new network policy in a given VMware Engine network of a project and location (region). A new network policy cannot be created if another network policy already exists in the same scope.", - "canonical": true, - "file": "vmware_engine.create_network_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 94, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateNetworkPolicy", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.CreateNetworkPolicy", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "network_policy_id", - "type": "TYPE_STRING" - }, - { - "name": "network_policy", - "type": ".google.cloud.vmwareengine.v1.NetworkPolicy" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "CreateNetworkPolicy", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.CreateNetworkPolicy", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_UpdateNetworkPolicy_async", - "title": "VmwareEngine updateNetworkPolicy Sample", - "origin": "API_DEFINITION", - "description": " Modifies a `NetworkPolicy` resource. Only the following fields can be updated: `internet_access`, `external_ip`, `edge_services_cidr`. Only fields specified in `updateMask` are applied. When updating a network policy, the external IP network service can only be disabled if there are no external IP addresses present in the scope of the policy. Also, a `NetworkService` cannot be updated when `NetworkService.state` is set to `RECONCILING`. During operation processing, the resource is temporarily in the `ACTIVE` state before the operation fully completes. For that period of time, you can't update the resource. Use the operation status to determine when the processing fully completes.", - "canonical": true, - "file": "vmware_engine.update_network_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateNetworkPolicy", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.UpdateNetworkPolicy", - "async": true, - "parameters": [ - { - "name": "network_policy", - "type": ".google.cloud.vmwareengine.v1.NetworkPolicy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "UpdateNetworkPolicy", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.UpdateNetworkPolicy", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_DeleteNetworkPolicy_async", - "title": "VmwareEngine deleteNetworkPolicy Sample", - "origin": "API_DEFINITION", - "description": " Deletes a `NetworkPolicy` resource. A network policy cannot be deleted when `NetworkService.state` is set to `RECONCILING` for either its external IP or internet access service.", - "canonical": true, - "file": "vmware_engine.delete_network_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteNetworkPolicy", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.DeleteNetworkPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "DeleteNetworkPolicy", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.DeleteNetworkPolicy", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_ListManagementDnsZoneBindings_async", - "title": "VmwareEngine listManagementDnsZoneBindings Sample", - "origin": "API_DEFINITION", - "description": " Lists Consumer VPCs bound to Management DNS Zone of a given private cloud.", - "canonical": true, - "file": "vmware_engine.list_management_dns_zone_bindings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 108, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListManagementDnsZoneBindings", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListManagementDnsZoneBindings", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vmwareengine.v1.ListManagementDnsZoneBindingsResponse", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "ListManagementDnsZoneBindings", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListManagementDnsZoneBindings", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_GetManagementDnsZoneBinding_async", - "title": "VmwareEngine getManagementDnsZoneBinding Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a 'ManagementDnsZoneBinding' resource by its resource name.", - "canonical": true, - "file": "vmware_engine.get_management_dns_zone_binding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetManagementDnsZoneBinding", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetManagementDnsZoneBinding", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vmwareengine.v1.ManagementDnsZoneBinding", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "GetManagementDnsZoneBinding", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetManagementDnsZoneBinding", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_CreateManagementDnsZoneBinding_async", - "title": "VmwareEngine createManagementDnsZoneBinding Sample", - "origin": "API_DEFINITION", - "description": " Creates a new `ManagementDnsZoneBinding` resource in a private cloud. This RPC creates the DNS binding and the resource that represents the DNS binding of the consumer VPC network to the management DNS zone. A management DNS zone is the Cloud DNS cross-project binding zone that VMware Engine creates for each private cloud. It contains FQDNs and corresponding IP addresses for the private cloud's ESXi hosts and management VM appliances like vCenter and NSX Manager.", - "canonical": true, - "file": "vmware_engine.create_management_dns_zone_binding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 94, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateManagementDnsZoneBinding", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.CreateManagementDnsZoneBinding", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "management_dns_zone_binding", - "type": ".google.cloud.vmwareengine.v1.ManagementDnsZoneBinding" - }, - { - "name": "management_dns_zone_binding_id", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "CreateManagementDnsZoneBinding", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.CreateManagementDnsZoneBinding", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_UpdateManagementDnsZoneBinding_async", - "title": "VmwareEngine updateManagementDnsZoneBinding Sample", - "origin": "API_DEFINITION", - "description": " Updates a `ManagementDnsZoneBinding` resource. Only fields specified in `update_mask` are applied.", - "canonical": true, - "file": "vmware_engine.update_management_dns_zone_binding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateManagementDnsZoneBinding", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.UpdateManagementDnsZoneBinding", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "management_dns_zone_binding", - "type": ".google.cloud.vmwareengine.v1.ManagementDnsZoneBinding" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "UpdateManagementDnsZoneBinding", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.UpdateManagementDnsZoneBinding", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_DeleteManagementDnsZoneBinding_async", - "title": "VmwareEngine deleteManagementDnsZoneBinding Sample", - "origin": "API_DEFINITION", - "description": " Deletes a `ManagementDnsZoneBinding` resource. When a management DNS zone binding is deleted, the corresponding consumer VPC network is no longer bound to the management DNS zone.", - "canonical": true, - "file": "vmware_engine.delete_management_dns_zone_binding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteManagementDnsZoneBinding", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.DeleteManagementDnsZoneBinding", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "DeleteManagementDnsZoneBinding", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.DeleteManagementDnsZoneBinding", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_RepairManagementDnsZoneBinding_async", - "title": "VmwareEngine repairManagementDnsZoneBinding Sample", - "origin": "API_DEFINITION", - "description": " Retries to create a `ManagementDnsZoneBinding` resource that is in failed state.", - "canonical": true, - "file": "vmware_engine.repair_management_dns_zone_binding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RepairManagementDnsZoneBinding", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.RepairManagementDnsZoneBinding", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "RepairManagementDnsZoneBinding", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.RepairManagementDnsZoneBinding", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_CreateVmwareEngineNetwork_async", - "title": "VmwareEngine createVmwareEngineNetwork Sample", - "origin": "API_DEFINITION", - "description": " Creates a new VMware Engine network that can be used by a private cloud.", - "canonical": true, - "file": "vmware_engine.create_vmware_engine_network.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 97, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateVmwareEngineNetwork", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.CreateVmwareEngineNetwork", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "vmware_engine_network_id", - "type": "TYPE_STRING" - }, - { - "name": "vmware_engine_network", - "type": ".google.cloud.vmwareengine.v1.VmwareEngineNetwork" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "CreateVmwareEngineNetwork", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.CreateVmwareEngineNetwork", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_UpdateVmwareEngineNetwork_async", - "title": "VmwareEngine updateVmwareEngineNetwork Sample", - "origin": "API_DEFINITION", - "description": " Modifies a VMware Engine network resource. Only the following fields can be updated: `description`. Only fields specified in `updateMask` are applied.", - "canonical": true, - "file": "vmware_engine.update_vmware_engine_network.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateVmwareEngineNetwork", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.UpdateVmwareEngineNetwork", - "async": true, - "parameters": [ - { - "name": "vmware_engine_network", - "type": ".google.cloud.vmwareengine.v1.VmwareEngineNetwork" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "UpdateVmwareEngineNetwork", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.UpdateVmwareEngineNetwork", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_DeleteVmwareEngineNetwork_async", - "title": "VmwareEngine deleteVmwareEngineNetwork Sample", - "origin": "API_DEFINITION", - "description": " Deletes a `VmwareEngineNetwork` resource. You can only delete a VMware Engine network after all resources that refer to it are deleted. For example, a private cloud, a network peering, and a network policy can all refer to the same VMware Engine network.", - "canonical": true, - "file": "vmware_engine.delete_vmware_engine_network.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteVmwareEngineNetwork", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.DeleteVmwareEngineNetwork", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "DeleteVmwareEngineNetwork", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.DeleteVmwareEngineNetwork", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_GetVmwareEngineNetwork_async", - "title": "VmwareEngine getVmwareEngineNetwork Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a `VmwareEngineNetwork` resource by its resource name. The resource contains details of the VMware Engine network, such as its VMware Engine network type, peered networks in a service project, and state (for example, `CREATING`, `ACTIVE`, `DELETING`).", - "canonical": true, - "file": "vmware_engine.get_vmware_engine_network.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetVmwareEngineNetwork", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetVmwareEngineNetwork", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vmwareengine.v1.VmwareEngineNetwork", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "GetVmwareEngineNetwork", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetVmwareEngineNetwork", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_ListVmwareEngineNetworks_async", - "title": "VmwareEngine listVmwareEngineNetworks Sample", - "origin": "API_DEFINITION", - "description": " Lists `VmwareEngineNetwork` resources in a given project and location.", - "canonical": true, - "file": "vmware_engine.list_vmware_engine_networks.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 105, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListVmwareEngineNetworks", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListVmwareEngineNetworks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vmwareengine.v1.ListVmwareEngineNetworksResponse", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "ListVmwareEngineNetworks", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListVmwareEngineNetworks", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_CreatePrivateConnection_async", - "title": "VmwareEngine createPrivateConnection Sample", - "origin": "API_DEFINITION", - "description": " Creates a new private connection that can be used for accessing private Clouds.", - "canonical": true, - "file": "vmware_engine.create_private_connection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 92, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreatePrivateConnection", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.CreatePrivateConnection", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "private_connection_id", - "type": "TYPE_STRING" - }, - { - "name": "private_connection", - "type": ".google.cloud.vmwareengine.v1.PrivateConnection" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "CreatePrivateConnection", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.CreatePrivateConnection", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_GetPrivateConnection_async", - "title": "VmwareEngine getPrivateConnection Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a `PrivateConnection` resource by its resource name. The resource contains details of the private connection, such as connected network, routing mode and state.", - "canonical": true, - "file": "vmware_engine.get_private_connection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPrivateConnection", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetPrivateConnection", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vmwareengine.v1.PrivateConnection", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "GetPrivateConnection", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetPrivateConnection", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_ListPrivateConnections_async", - "title": "VmwareEngine listPrivateConnections Sample", - "origin": "API_DEFINITION", - "description": " Lists `PrivateConnection` resources in a given project and location.", - "canonical": true, - "file": "vmware_engine.list_private_connections.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 105, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPrivateConnections", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListPrivateConnections", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "ListPrivateConnections", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListPrivateConnections", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_UpdatePrivateConnection_async", - "title": "VmwareEngine updatePrivateConnection Sample", - "origin": "API_DEFINITION", - "description": " Modifies a `PrivateConnection` resource. Only `description` and `routing_mode` fields can be updated. Only fields specified in `updateMask` are applied.", - "canonical": true, - "file": "vmware_engine.update_private_connection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdatePrivateConnection", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.UpdatePrivateConnection", - "async": true, - "parameters": [ - { - "name": "private_connection", - "type": ".google.cloud.vmwareengine.v1.PrivateConnection" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "UpdatePrivateConnection", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.UpdatePrivateConnection", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_DeletePrivateConnection_async", - "title": "VmwareEngine deletePrivateConnection Sample", - "origin": "API_DEFINITION", - "description": " Deletes a `PrivateConnection` resource. When a private connection is deleted for a VMware Engine network, the connected network becomes inaccessible to that VMware Engine network.", - "canonical": true, - "file": "vmware_engine.delete_private_connection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePrivateConnection", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.DeletePrivateConnection", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "DeletePrivateConnection", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.DeletePrivateConnection", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_ListPrivateConnectionPeeringRoutes_async", - "title": "VmwareEngine listPrivateConnectionPeeringRoutes Sample", - "origin": "API_DEFINITION", - "description": " Lists the private connection routes exchanged over a peering connection.", - "canonical": true, - "file": "vmware_engine.list_private_connection_peering_routes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPrivateConnectionPeeringRoutes", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListPrivateConnectionPeeringRoutes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "ListPrivateConnectionPeeringRoutes", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.ListPrivateConnectionPeeringRoutes", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_GrantDnsBindPermission_async", - "title": "VmwareEngine grantDnsBindPermission Sample", - "origin": "API_DEFINITION", - "description": " Grants the bind permission to the customer provided principal(user / service account) to bind their DNS zone with the intranet VPC associated with the project. DnsBindPermission is a global resource and location can only be global.", - "canonical": true, - "file": "vmware_engine.grant_dns_bind_permission.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GrantDnsBindPermission", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GrantDnsBindPermission", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "principal", - "type": ".google.cloud.vmwareengine.v1.Principal" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "GrantDnsBindPermission", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GrantDnsBindPermission", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_GetDnsBindPermission_async", - "title": "VmwareEngine getDnsBindPermission Sample", - "origin": "API_DEFINITION", - "description": " Gets all the principals having bind permission on the intranet VPC associated with the consumer project granted by the Grant API. DnsBindPermission is a global resource and location can only be global.", - "canonical": true, - "file": "vmware_engine.get_dns_bind_permission.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDnsBindPermission", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetDnsBindPermission", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vmwareengine.v1.DnsBindPermission", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "GetDnsBindPermission", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.GetDnsBindPermission", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - }, - { - "regionTag": "vmwareengine_v1_generated_VmwareEngine_RevokeDnsBindPermission_async", - "title": "VmwareEngine revokeDnsBindPermission Sample", - "origin": "API_DEFINITION", - "description": " Revokes the bind permission from the customer provided principal(user / service account) on the intranet VPC associated with the consumer project. DnsBindPermission is a global resource and location can only be global.", - "canonical": true, - "file": "vmware_engine.revoke_dns_bind_permission.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RevokeDnsBindPermission", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.RevokeDnsBindPermission", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "principal", - "type": ".google.cloud.vmwareengine.v1.Principal" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VmwareEngineClient", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngineClient" - }, - "method": { - "shortName": "RevokeDnsBindPermission", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine.RevokeDnsBindPermission", - "service": { - "shortName": "VmwareEngine", - "fullName": "google.cloud.vmwareengine.v1.VmwareEngine" - } - } - } - } - ] -} diff --git a/packages/google-cloud-vpcaccess/samples/generated/v1/snippet_metadata_google.cloud.vpcaccess.v1.json b/packages/google-cloud-vpcaccess/samples/generated/v1/snippet_metadata_google.cloud.vpcaccess.v1.json deleted file mode 100644 index c55a2fe0e7f5..000000000000 --- a/packages/google-cloud-vpcaccess/samples/generated/v1/snippet_metadata_google.cloud.vpcaccess.v1.json +++ /dev/null @@ -1,191 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-vpcaccess", - "version": "4.2.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.vpcaccess.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "vpcaccess_v1_generated_VpcAccessService_CreateConnector_async", - "title": "VpcAccessService createConnector Sample", - "origin": "API_DEFINITION", - "description": " Creates a Serverless VPC Access connector, returns an operation.", - "canonical": true, - "file": "vpc_access_service.create_connector.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateConnector", - "fullName": "google.cloud.vpcaccess.v1.VpcAccessService.CreateConnector", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "connector_id", - "type": "TYPE_STRING" - }, - { - "name": "connector", - "type": ".google.cloud.vpcaccess.v1.Connector" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VpcAccessServiceClient", - "fullName": "google.cloud.vpcaccess.v1.VpcAccessServiceClient" - }, - "method": { - "shortName": "CreateConnector", - "fullName": "google.cloud.vpcaccess.v1.VpcAccessService.CreateConnector", - "service": { - "shortName": "VpcAccessService", - "fullName": "google.cloud.vpcaccess.v1.VpcAccessService" - } - } - } - }, - { - "regionTag": "vpcaccess_v1_generated_VpcAccessService_GetConnector_async", - "title": "VpcAccessService getConnector Sample", - "origin": "API_DEFINITION", - "description": " Gets a Serverless VPC Access connector. Returns NOT_FOUND if the resource does not exist.", - "canonical": true, - "file": "vpc_access_service.get_connector.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetConnector", - "fullName": "google.cloud.vpcaccess.v1.VpcAccessService.GetConnector", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vpcaccess.v1.Connector", - "client": { - "shortName": "VpcAccessServiceClient", - "fullName": "google.cloud.vpcaccess.v1.VpcAccessServiceClient" - }, - "method": { - "shortName": "GetConnector", - "fullName": "google.cloud.vpcaccess.v1.VpcAccessService.GetConnector", - "service": { - "shortName": "VpcAccessService", - "fullName": "google.cloud.vpcaccess.v1.VpcAccessService" - } - } - } - }, - { - "regionTag": "vpcaccess_v1_generated_VpcAccessService_ListConnectors_async", - "title": "VpcAccessService listConnectors Sample", - "origin": "API_DEFINITION", - "description": " Lists Serverless VPC Access connectors.", - "canonical": true, - "file": "vpc_access_service.list_connectors.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListConnectors", - "fullName": "google.cloud.vpcaccess.v1.VpcAccessService.ListConnectors", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.vpcaccess.v1.ListConnectorsResponse", - "client": { - "shortName": "VpcAccessServiceClient", - "fullName": "google.cloud.vpcaccess.v1.VpcAccessServiceClient" - }, - "method": { - "shortName": "ListConnectors", - "fullName": "google.cloud.vpcaccess.v1.VpcAccessService.ListConnectors", - "service": { - "shortName": "VpcAccessService", - "fullName": "google.cloud.vpcaccess.v1.VpcAccessService" - } - } - } - }, - { - "regionTag": "vpcaccess_v1_generated_VpcAccessService_DeleteConnector_async", - "title": "VpcAccessService deleteConnector Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Serverless VPC Access connector. Returns NOT_FOUND if the resource does not exist.", - "canonical": true, - "file": "vpc_access_service.delete_connector.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteConnector", - "fullName": "google.cloud.vpcaccess.v1.VpcAccessService.DeleteConnector", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "VpcAccessServiceClient", - "fullName": "google.cloud.vpcaccess.v1.VpcAccessServiceClient" - }, - "method": { - "shortName": "DeleteConnector", - "fullName": "google.cloud.vpcaccess.v1.VpcAccessService.DeleteConnector", - "service": { - "shortName": "VpcAccessService", - "fullName": "google.cloud.vpcaccess.v1.VpcAccessService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-webrisk/samples/generated/v1/snippet_metadata_google.cloud.webrisk.v1.json b/packages/google-cloud-webrisk/samples/generated/v1/snippet_metadata_google.cloud.webrisk.v1.json deleted file mode 100644 index bb1cd2aa2374..000000000000 --- a/packages/google-cloud-webrisk/samples/generated/v1/snippet_metadata_google.cloud.webrisk.v1.json +++ /dev/null @@ -1,247 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-webrisk", - "version": "5.3.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.webrisk.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "webrisk_v1_generated_WebRiskService_ComputeThreatListDiff_async", - "title": "WebRiskService computeThreatListDiff Sample", - "origin": "API_DEFINITION", - "description": " Gets the most recent threat list diffs. These diffs should be applied to a local database of hashes to keep it up-to-date. If the local database is empty or excessively out-of-date, a complete snapshot of the database will be returned. This Method only updates a single ThreatList at a time. To update multiple ThreatList databases, this method needs to be called once for each list.", - "canonical": true, - "file": "web_risk_service.compute_threat_list_diff.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ComputeThreatListDiff", - "fullName": "google.cloud.webrisk.v1.WebRiskService.ComputeThreatListDiff", - "async": true, - "parameters": [ - { - "name": "threat_type", - "type": ".google.cloud.webrisk.v1.ThreatType" - }, - { - "name": "version_token", - "type": "TYPE_BYTES" - }, - { - "name": "constraints", - "type": ".google.cloud.webrisk.v1.ComputeThreatListDiffRequest.Constraints" - } - ], - "resultType": ".google.cloud.webrisk.v1.ComputeThreatListDiffResponse", - "client": { - "shortName": "WebRiskServiceClient", - "fullName": "google.cloud.webrisk.v1.WebRiskServiceClient" - }, - "method": { - "shortName": "ComputeThreatListDiff", - "fullName": "google.cloud.webrisk.v1.WebRiskService.ComputeThreatListDiff", - "service": { - "shortName": "WebRiskService", - "fullName": "google.cloud.webrisk.v1.WebRiskService" - } - } - } - }, - { - "regionTag": "webrisk_v1_generated_WebRiskService_SearchUris_async", - "title": "WebRiskService searchUris Sample", - "origin": "API_DEFINITION", - "description": " This method is used to check whether a URI is on a given threatList. Multiple threatLists may be searched in a single query. The response will list all requested threatLists the URI was found to match. If the URI is not found on any of the requested ThreatList an empty response will be returned.", - "canonical": true, - "file": "web_risk_service.search_uris.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchUris", - "fullName": "google.cloud.webrisk.v1.WebRiskService.SearchUris", - "async": true, - "parameters": [ - { - "name": "uri", - "type": "TYPE_STRING" - }, - { - "name": "threat_types", - "type": "TYPE_ENUM[]" - } - ], - "resultType": ".google.cloud.webrisk.v1.SearchUrisResponse", - "client": { - "shortName": "WebRiskServiceClient", - "fullName": "google.cloud.webrisk.v1.WebRiskServiceClient" - }, - "method": { - "shortName": "SearchUris", - "fullName": "google.cloud.webrisk.v1.WebRiskService.SearchUris", - "service": { - "shortName": "WebRiskService", - "fullName": "google.cloud.webrisk.v1.WebRiskService" - } - } - } - }, - { - "regionTag": "webrisk_v1_generated_WebRiskService_SearchHashes_async", - "title": "WebRiskService searchHashes Sample", - "origin": "API_DEFINITION", - "description": " Gets the full hashes that match the requested hash prefix. This is used after a hash prefix is looked up in a threatList and there is a match. The client side threatList only holds partial hashes so the client must query this method to determine if there is a full hash match of a threat.", - "canonical": true, - "file": "web_risk_service.search_hashes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchHashes", - "fullName": "google.cloud.webrisk.v1.WebRiskService.SearchHashes", - "async": true, - "parameters": [ - { - "name": "hash_prefix", - "type": "TYPE_BYTES" - }, - { - "name": "threat_types", - "type": "TYPE_ENUM[]" - } - ], - "resultType": ".google.cloud.webrisk.v1.SearchHashesResponse", - "client": { - "shortName": "WebRiskServiceClient", - "fullName": "google.cloud.webrisk.v1.WebRiskServiceClient" - }, - "method": { - "shortName": "SearchHashes", - "fullName": "google.cloud.webrisk.v1.WebRiskService.SearchHashes", - "service": { - "shortName": "WebRiskService", - "fullName": "google.cloud.webrisk.v1.WebRiskService" - } - } - } - }, - { - "regionTag": "webrisk_v1_generated_WebRiskService_CreateSubmission_async", - "title": "WebRiskService createSubmission Sample", - "origin": "API_DEFINITION", - "description": " Creates a Submission of a URI suspected of containing phishing content to be reviewed. If the result verifies the existence of malicious phishing content, the site will be added to the [Google's Social Engineering lists](https://support.google.com/webmasters/answer/6350487/) in order to protect users that could get exposed to this threat in the future. Only allowlisted projects can use this method during Early Access. Please reach out to Sales or your customer engineer to obtain access.", - "canonical": true, - "file": "web_risk_service.create_submission.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSubmission", - "fullName": "google.cloud.webrisk.v1.WebRiskService.CreateSubmission", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "submission", - "type": ".google.cloud.webrisk.v1.Submission" - } - ], - "resultType": ".google.cloud.webrisk.v1.Submission", - "client": { - "shortName": "WebRiskServiceClient", - "fullName": "google.cloud.webrisk.v1.WebRiskServiceClient" - }, - "method": { - "shortName": "CreateSubmission", - "fullName": "google.cloud.webrisk.v1.WebRiskService.CreateSubmission", - "service": { - "shortName": "WebRiskService", - "fullName": "google.cloud.webrisk.v1.WebRiskService" - } - } - } - }, - { - "regionTag": "webrisk_v1_generated_WebRiskService_SubmitUri_async", - "title": "WebRiskService submitUri Sample", - "origin": "API_DEFINITION", - "description": " Submits a URI suspected of containing malicious content to be reviewed. Returns a google.longrunning.Operation which, once the review is complete, is updated with its result. You can use the [Pub/Sub API] (https://cloud.google.com/pubsub) to receive notifications for the returned Operation. If the result verifies the existence of malicious content, the site will be added to the [Google's Social Engineering lists] (https://support.google.com/webmasters/answer/6350487/) in order to protect users that could get exposed to this threat in the future. Only allowlisted projects can use this method during Early Access. Please reach out to Sales or your customer engineer to obtain access.", - "canonical": true, - "file": "web_risk_service.submit_uri.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SubmitUri", - "fullName": "google.cloud.webrisk.v1.WebRiskService.SubmitUri", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "submission", - "type": ".google.cloud.webrisk.v1.Submission" - }, - { - "name": "threat_info", - "type": ".google.cloud.webrisk.v1.ThreatInfo" - }, - { - "name": "threat_discovery", - "type": ".google.cloud.webrisk.v1.ThreatDiscovery" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WebRiskServiceClient", - "fullName": "google.cloud.webrisk.v1.WebRiskServiceClient" - }, - "method": { - "shortName": "SubmitUri", - "fullName": "google.cloud.webrisk.v1.WebRiskService.SubmitUri", - "service": { - "shortName": "WebRiskService", - "fullName": "google.cloud.webrisk.v1.WebRiskService" - } - } - } - } - ] -} diff --git a/packages/google-cloud-webrisk/samples/generated/v1beta1/snippet_metadata_google.cloud.webrisk.v1beta1.json b/packages/google-cloud-webrisk/samples/generated/v1beta1/snippet_metadata_google.cloud.webrisk.v1beta1.json deleted file mode 100644 index 09378c1e5fb9..000000000000 --- a/packages/google-cloud-webrisk/samples/generated/v1beta1/snippet_metadata_google.cloud.webrisk.v1beta1.json +++ /dev/null @@ -1,151 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-webrisk", - "version": "5.3.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.webrisk.v1beta1", - "version": "v1beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "webrisk_v1beta1_generated_WebRiskServiceV1Beta1_ComputeThreatListDiff_async", - "title": "WebRiskServiceV1Beta1 computeThreatListDiff Sample", - "origin": "API_DEFINITION", - "description": " Gets the most recent threat list diffs.", - "canonical": true, - "file": "web_risk_service_v1_beta1.compute_threat_list_diff.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ComputeThreatListDiff", - "fullName": "google.cloud.webrisk.v1beta1.WebRiskServiceV1Beta1.ComputeThreatListDiff", - "async": true, - "parameters": [ - { - "name": "threat_type", - "type": ".google.cloud.webrisk.v1beta1.ThreatType" - }, - { - "name": "version_token", - "type": "TYPE_BYTES" - }, - { - "name": "constraints", - "type": ".google.cloud.webrisk.v1beta1.ComputeThreatListDiffRequest.Constraints" - } - ], - "resultType": ".google.cloud.webrisk.v1beta1.ComputeThreatListDiffResponse", - "client": { - "shortName": "WebRiskServiceV1Beta1Client", - "fullName": "google.cloud.webrisk.v1beta1.WebRiskServiceV1Beta1Client" - }, - "method": { - "shortName": "ComputeThreatListDiff", - "fullName": "google.cloud.webrisk.v1beta1.WebRiskServiceV1Beta1.ComputeThreatListDiff", - "service": { - "shortName": "WebRiskServiceV1Beta1", - "fullName": "google.cloud.webrisk.v1beta1.WebRiskServiceV1Beta1" - } - } - } - }, - { - "regionTag": "webrisk_v1beta1_generated_WebRiskServiceV1Beta1_SearchUris_async", - "title": "WebRiskServiceV1Beta1 searchUris Sample", - "origin": "API_DEFINITION", - "description": " This method is used to check whether a URI is on a given threatList.", - "canonical": true, - "file": "web_risk_service_v1_beta1.search_uris.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchUris", - "fullName": "google.cloud.webrisk.v1beta1.WebRiskServiceV1Beta1.SearchUris", - "async": true, - "parameters": [ - { - "name": "uri", - "type": "TYPE_STRING" - }, - { - "name": "threat_types", - "type": "TYPE_ENUM[]" - } - ], - "resultType": ".google.cloud.webrisk.v1beta1.SearchUrisResponse", - "client": { - "shortName": "WebRiskServiceV1Beta1Client", - "fullName": "google.cloud.webrisk.v1beta1.WebRiskServiceV1Beta1Client" - }, - "method": { - "shortName": "SearchUris", - "fullName": "google.cloud.webrisk.v1beta1.WebRiskServiceV1Beta1.SearchUris", - "service": { - "shortName": "WebRiskServiceV1Beta1", - "fullName": "google.cloud.webrisk.v1beta1.WebRiskServiceV1Beta1" - } - } - } - }, - { - "regionTag": "webrisk_v1beta1_generated_WebRiskServiceV1Beta1_SearchHashes_async", - "title": "WebRiskServiceV1Beta1 searchHashes Sample", - "origin": "API_DEFINITION", - "description": " Gets the full hashes that match the requested hash prefix. This is used after a hash prefix is looked up in a threatList and there is a match. The client side threatList only holds partial hashes so the client must query this method to determine if there is a full hash match of a threat.", - "canonical": true, - "file": "web_risk_service_v1_beta1.search_hashes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchHashes", - "fullName": "google.cloud.webrisk.v1beta1.WebRiskServiceV1Beta1.SearchHashes", - "async": true, - "parameters": [ - { - "name": "hash_prefix", - "type": "TYPE_BYTES" - }, - { - "name": "threat_types", - "type": "TYPE_ENUM[]" - } - ], - "resultType": ".google.cloud.webrisk.v1beta1.SearchHashesResponse", - "client": { - "shortName": "WebRiskServiceV1Beta1Client", - "fullName": "google.cloud.webrisk.v1beta1.WebRiskServiceV1Beta1Client" - }, - "method": { - "shortName": "SearchHashes", - "fullName": "google.cloud.webrisk.v1beta1.WebRiskServiceV1Beta1.SearchHashes", - "service": { - "shortName": "WebRiskServiceV1Beta1", - "fullName": "google.cloud.webrisk.v1beta1.WebRiskServiceV1Beta1" - } - } - } - } - ] -} diff --git a/packages/google-cloud-websecurityscanner/samples/generated/v1/snippet_metadata_google.cloud.websecurityscanner.v1.json b/packages/google-cloud-websecurityscanner/samples/generated/v1/snippet_metadata_google.cloud.websecurityscanner.v1.json deleted file mode 100644 index 1847fa05be49..000000000000 --- a/packages/google-cloud-websecurityscanner/samples/generated/v1/snippet_metadata_google.cloud.websecurityscanner.v1.json +++ /dev/null @@ -1,579 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-websecurityscanner", - "version": "4.2.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.websecurityscanner.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "websecurityscanner_v1_generated_WebSecurityScanner_CreateScanConfig_async", - "title": "WebSecurityScanner createScanConfig Sample", - "origin": "API_DEFINITION", - "description": " Creates a new ScanConfig.", - "canonical": true, - "file": "web_security_scanner.create_scan_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateScanConfig", - "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner.CreateScanConfig", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "scan_config", - "type": ".google.cloud.websecurityscanner.v1.ScanConfig" - } - ], - "resultType": ".google.cloud.websecurityscanner.v1.ScanConfig", - "client": { - "shortName": "WebSecurityScannerClient", - "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScannerClient" - }, - "method": { - "shortName": "CreateScanConfig", - "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner.CreateScanConfig", - "service": { - "shortName": "WebSecurityScanner", - "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner" - } - } - } - }, - { - "regionTag": "websecurityscanner_v1_generated_WebSecurityScanner_DeleteScanConfig_async", - "title": "WebSecurityScanner deleteScanConfig Sample", - "origin": "API_DEFINITION", - "description": " Deletes an existing ScanConfig and its child resources.", - "canonical": true, - "file": "web_security_scanner.delete_scan_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteScanConfig", - "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner.DeleteScanConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "WebSecurityScannerClient", - "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScannerClient" - }, - "method": { - "shortName": "DeleteScanConfig", - "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner.DeleteScanConfig", - "service": { - "shortName": "WebSecurityScanner", - "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner" - } - } - } - }, - { - "regionTag": "websecurityscanner_v1_generated_WebSecurityScanner_GetScanConfig_async", - "title": "WebSecurityScanner getScanConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets a ScanConfig.", - "canonical": true, - "file": "web_security_scanner.get_scan_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetScanConfig", - "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner.GetScanConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.websecurityscanner.v1.ScanConfig", - "client": { - "shortName": "WebSecurityScannerClient", - "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScannerClient" - }, - "method": { - "shortName": "GetScanConfig", - "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner.GetScanConfig", - "service": { - "shortName": "WebSecurityScanner", - "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner" - } - } - } - }, - { - "regionTag": "websecurityscanner_v1_generated_WebSecurityScanner_ListScanConfigs_async", - "title": "WebSecurityScanner listScanConfigs Sample", - "origin": "API_DEFINITION", - "description": " Lists ScanConfigs under a given project.", - "canonical": true, - "file": "web_security_scanner.list_scan_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListScanConfigs", - "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner.ListScanConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.websecurityscanner.v1.ListScanConfigsResponse", - "client": { - "shortName": "WebSecurityScannerClient", - "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScannerClient" - }, - "method": { - "shortName": "ListScanConfigs", - "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner.ListScanConfigs", - "service": { - "shortName": "WebSecurityScanner", - "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner" - } - } - } - }, - { - "regionTag": "websecurityscanner_v1_generated_WebSecurityScanner_UpdateScanConfig_async", - "title": "WebSecurityScanner updateScanConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates a ScanConfig. This method support partial update of a ScanConfig.", - "canonical": true, - "file": "web_security_scanner.update_scan_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateScanConfig", - "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner.UpdateScanConfig", - "async": true, - "parameters": [ - { - "name": "scan_config", - "type": ".google.cloud.websecurityscanner.v1.ScanConfig" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.websecurityscanner.v1.ScanConfig", - "client": { - "shortName": "WebSecurityScannerClient", - "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScannerClient" - }, - "method": { - "shortName": "UpdateScanConfig", - "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner.UpdateScanConfig", - "service": { - "shortName": "WebSecurityScanner", - "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner" - } - } - } - }, - { - "regionTag": "websecurityscanner_v1_generated_WebSecurityScanner_StartScanRun_async", - "title": "WebSecurityScanner startScanRun Sample", - "origin": "API_DEFINITION", - "description": " Start a ScanRun according to the given ScanConfig.", - "canonical": true, - "file": "web_security_scanner.start_scan_run.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StartScanRun", - "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner.StartScanRun", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.websecurityscanner.v1.ScanRun", - "client": { - "shortName": "WebSecurityScannerClient", - "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScannerClient" - }, - "method": { - "shortName": "StartScanRun", - "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner.StartScanRun", - "service": { - "shortName": "WebSecurityScanner", - "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner" - } - } - } - }, - { - "regionTag": "websecurityscanner_v1_generated_WebSecurityScanner_GetScanRun_async", - "title": "WebSecurityScanner getScanRun Sample", - "origin": "API_DEFINITION", - "description": " Gets a ScanRun.", - "canonical": true, - "file": "web_security_scanner.get_scan_run.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetScanRun", - "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner.GetScanRun", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.websecurityscanner.v1.ScanRun", - "client": { - "shortName": "WebSecurityScannerClient", - "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScannerClient" - }, - "method": { - "shortName": "GetScanRun", - "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner.GetScanRun", - "service": { - "shortName": "WebSecurityScanner", - "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner" - } - } - } - }, - { - "regionTag": "websecurityscanner_v1_generated_WebSecurityScanner_ListScanRuns_async", - "title": "WebSecurityScanner listScanRuns Sample", - "origin": "API_DEFINITION", - "description": " Lists ScanRuns under a given ScanConfig, in descending order of ScanRun stop time.", - "canonical": true, - "file": "web_security_scanner.list_scan_runs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListScanRuns", - "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner.ListScanRuns", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.websecurityscanner.v1.ListScanRunsResponse", - "client": { - "shortName": "WebSecurityScannerClient", - "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScannerClient" - }, - "method": { - "shortName": "ListScanRuns", - "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner.ListScanRuns", - "service": { - "shortName": "WebSecurityScanner", - "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner" - } - } - } - }, - { - "regionTag": "websecurityscanner_v1_generated_WebSecurityScanner_StopScanRun_async", - "title": "WebSecurityScanner stopScanRun Sample", - "origin": "API_DEFINITION", - "description": " Stops a ScanRun. The stopped ScanRun is returned.", - "canonical": true, - "file": "web_security_scanner.stop_scan_run.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StopScanRun", - "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner.StopScanRun", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.websecurityscanner.v1.ScanRun", - "client": { - "shortName": "WebSecurityScannerClient", - "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScannerClient" - }, - "method": { - "shortName": "StopScanRun", - "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner.StopScanRun", - "service": { - "shortName": "WebSecurityScanner", - "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner" - } - } - } - }, - { - "regionTag": "websecurityscanner_v1_generated_WebSecurityScanner_ListCrawledUrls_async", - "title": "WebSecurityScanner listCrawledUrls Sample", - "origin": "API_DEFINITION", - "description": " List CrawledUrls under a given ScanRun.", - "canonical": true, - "file": "web_security_scanner.list_crawled_urls.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCrawledUrls", - "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner.ListCrawledUrls", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.websecurityscanner.v1.ListCrawledUrlsResponse", - "client": { - "shortName": "WebSecurityScannerClient", - "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScannerClient" - }, - "method": { - "shortName": "ListCrawledUrls", - "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner.ListCrawledUrls", - "service": { - "shortName": "WebSecurityScanner", - "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner" - } - } - } - }, - { - "regionTag": "websecurityscanner_v1_generated_WebSecurityScanner_GetFinding_async", - "title": "WebSecurityScanner getFinding Sample", - "origin": "API_DEFINITION", - "description": " Gets a Finding.", - "canonical": true, - "file": "web_security_scanner.get_finding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFinding", - "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner.GetFinding", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.websecurityscanner.v1.Finding", - "client": { - "shortName": "WebSecurityScannerClient", - "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScannerClient" - }, - "method": { - "shortName": "GetFinding", - "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner.GetFinding", - "service": { - "shortName": "WebSecurityScanner", - "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner" - } - } - } - }, - { - "regionTag": "websecurityscanner_v1_generated_WebSecurityScanner_ListFindings_async", - "title": "WebSecurityScanner listFindings Sample", - "origin": "API_DEFINITION", - "description": " List Findings under a given ScanRun.", - "canonical": true, - "file": "web_security_scanner.list_findings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFindings", - "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner.ListFindings", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.websecurityscanner.v1.ListFindingsResponse", - "client": { - "shortName": "WebSecurityScannerClient", - "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScannerClient" - }, - "method": { - "shortName": "ListFindings", - "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner.ListFindings", - "service": { - "shortName": "WebSecurityScanner", - "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner" - } - } - } - }, - { - "regionTag": "websecurityscanner_v1_generated_WebSecurityScanner_ListFindingTypeStats_async", - "title": "WebSecurityScanner listFindingTypeStats Sample", - "origin": "API_DEFINITION", - "description": " List all FindingTypeStats under a given ScanRun.", - "canonical": true, - "file": "web_security_scanner.list_finding_type_stats.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFindingTypeStats", - "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner.ListFindingTypeStats", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.websecurityscanner.v1.ListFindingTypeStatsResponse", - "client": { - "shortName": "WebSecurityScannerClient", - "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScannerClient" - }, - "method": { - "shortName": "ListFindingTypeStats", - "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner.ListFindingTypeStats", - "service": { - "shortName": "WebSecurityScanner", - "fullName": "google.cloud.websecurityscanner.v1.WebSecurityScanner" - } - } - } - } - ] -} diff --git a/packages/google-cloud-websecurityscanner/samples/generated/v1alpha/snippet_metadata_google.cloud.websecurityscanner.v1alpha.json b/packages/google-cloud-websecurityscanner/samples/generated/v1alpha/snippet_metadata_google.cloud.websecurityscanner.v1alpha.json deleted file mode 100644 index 515f00836ef7..000000000000 --- a/packages/google-cloud-websecurityscanner/samples/generated/v1alpha/snippet_metadata_google.cloud.websecurityscanner.v1alpha.json +++ /dev/null @@ -1,579 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-websecurityscanner", - "version": "4.2.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.websecurityscanner.v1alpha", - "version": "v1alpha" - } - ] - }, - "snippets": [ - { - "regionTag": "websecurityscanner_v1alpha_generated_WebSecurityScanner_CreateScanConfig_async", - "title": "WebSecurityScanner createScanConfig Sample", - "origin": "API_DEFINITION", - "description": " Creates a new ScanConfig.", - "canonical": true, - "file": "web_security_scanner.create_scan_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateScanConfig", - "fullName": "google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.CreateScanConfig", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "scan_config", - "type": ".google.cloud.websecurityscanner.v1alpha.ScanConfig" - } - ], - "resultType": ".google.cloud.websecurityscanner.v1alpha.ScanConfig", - "client": { - "shortName": "WebSecurityScannerClient", - "fullName": "google.cloud.websecurityscanner.v1alpha.WebSecurityScannerClient" - }, - "method": { - "shortName": "CreateScanConfig", - "fullName": "google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.CreateScanConfig", - "service": { - "shortName": "WebSecurityScanner", - "fullName": "google.cloud.websecurityscanner.v1alpha.WebSecurityScanner" - } - } - } - }, - { - "regionTag": "websecurityscanner_v1alpha_generated_WebSecurityScanner_DeleteScanConfig_async", - "title": "WebSecurityScanner deleteScanConfig Sample", - "origin": "API_DEFINITION", - "description": " Deletes an existing ScanConfig and its child resources.", - "canonical": true, - "file": "web_security_scanner.delete_scan_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteScanConfig", - "fullName": "google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.DeleteScanConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "WebSecurityScannerClient", - "fullName": "google.cloud.websecurityscanner.v1alpha.WebSecurityScannerClient" - }, - "method": { - "shortName": "DeleteScanConfig", - "fullName": "google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.DeleteScanConfig", - "service": { - "shortName": "WebSecurityScanner", - "fullName": "google.cloud.websecurityscanner.v1alpha.WebSecurityScanner" - } - } - } - }, - { - "regionTag": "websecurityscanner_v1alpha_generated_WebSecurityScanner_GetScanConfig_async", - "title": "WebSecurityScanner getScanConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets a ScanConfig.", - "canonical": true, - "file": "web_security_scanner.get_scan_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetScanConfig", - "fullName": "google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.GetScanConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.websecurityscanner.v1alpha.ScanConfig", - "client": { - "shortName": "WebSecurityScannerClient", - "fullName": "google.cloud.websecurityscanner.v1alpha.WebSecurityScannerClient" - }, - "method": { - "shortName": "GetScanConfig", - "fullName": "google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.GetScanConfig", - "service": { - "shortName": "WebSecurityScanner", - "fullName": "google.cloud.websecurityscanner.v1alpha.WebSecurityScanner" - } - } - } - }, - { - "regionTag": "websecurityscanner_v1alpha_generated_WebSecurityScanner_ListScanConfigs_async", - "title": "WebSecurityScanner listScanConfigs Sample", - "origin": "API_DEFINITION", - "description": " Lists ScanConfigs under a given project.", - "canonical": true, - "file": "web_security_scanner.list_scan_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListScanConfigs", - "fullName": "google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.ListScanConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.websecurityscanner.v1alpha.ListScanConfigsResponse", - "client": { - "shortName": "WebSecurityScannerClient", - "fullName": "google.cloud.websecurityscanner.v1alpha.WebSecurityScannerClient" - }, - "method": { - "shortName": "ListScanConfigs", - "fullName": "google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.ListScanConfigs", - "service": { - "shortName": "WebSecurityScanner", - "fullName": "google.cloud.websecurityscanner.v1alpha.WebSecurityScanner" - } - } - } - }, - { - "regionTag": "websecurityscanner_v1alpha_generated_WebSecurityScanner_UpdateScanConfig_async", - "title": "WebSecurityScanner updateScanConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates a ScanConfig. This method support partial update of a ScanConfig.", - "canonical": true, - "file": "web_security_scanner.update_scan_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateScanConfig", - "fullName": "google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.UpdateScanConfig", - "async": true, - "parameters": [ - { - "name": "scan_config", - "type": ".google.cloud.websecurityscanner.v1alpha.ScanConfig" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.websecurityscanner.v1alpha.ScanConfig", - "client": { - "shortName": "WebSecurityScannerClient", - "fullName": "google.cloud.websecurityscanner.v1alpha.WebSecurityScannerClient" - }, - "method": { - "shortName": "UpdateScanConfig", - "fullName": "google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.UpdateScanConfig", - "service": { - "shortName": "WebSecurityScanner", - "fullName": "google.cloud.websecurityscanner.v1alpha.WebSecurityScanner" - } - } - } - }, - { - "regionTag": "websecurityscanner_v1alpha_generated_WebSecurityScanner_StartScanRun_async", - "title": "WebSecurityScanner startScanRun Sample", - "origin": "API_DEFINITION", - "description": " Start a ScanRun according to the given ScanConfig.", - "canonical": true, - "file": "web_security_scanner.start_scan_run.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StartScanRun", - "fullName": "google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.StartScanRun", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.websecurityscanner.v1alpha.ScanRun", - "client": { - "shortName": "WebSecurityScannerClient", - "fullName": "google.cloud.websecurityscanner.v1alpha.WebSecurityScannerClient" - }, - "method": { - "shortName": "StartScanRun", - "fullName": "google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.StartScanRun", - "service": { - "shortName": "WebSecurityScanner", - "fullName": "google.cloud.websecurityscanner.v1alpha.WebSecurityScanner" - } - } - } - }, - { - "regionTag": "websecurityscanner_v1alpha_generated_WebSecurityScanner_GetScanRun_async", - "title": "WebSecurityScanner getScanRun Sample", - "origin": "API_DEFINITION", - "description": " Gets a ScanRun.", - "canonical": true, - "file": "web_security_scanner.get_scan_run.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetScanRun", - "fullName": "google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.GetScanRun", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.websecurityscanner.v1alpha.ScanRun", - "client": { - "shortName": "WebSecurityScannerClient", - "fullName": "google.cloud.websecurityscanner.v1alpha.WebSecurityScannerClient" - }, - "method": { - "shortName": "GetScanRun", - "fullName": "google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.GetScanRun", - "service": { - "shortName": "WebSecurityScanner", - "fullName": "google.cloud.websecurityscanner.v1alpha.WebSecurityScanner" - } - } - } - }, - { - "regionTag": "websecurityscanner_v1alpha_generated_WebSecurityScanner_ListScanRuns_async", - "title": "WebSecurityScanner listScanRuns Sample", - "origin": "API_DEFINITION", - "description": " Lists ScanRuns under a given ScanConfig, in descending order of ScanRun stop time.", - "canonical": true, - "file": "web_security_scanner.list_scan_runs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListScanRuns", - "fullName": "google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.ListScanRuns", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.websecurityscanner.v1alpha.ListScanRunsResponse", - "client": { - "shortName": "WebSecurityScannerClient", - "fullName": "google.cloud.websecurityscanner.v1alpha.WebSecurityScannerClient" - }, - "method": { - "shortName": "ListScanRuns", - "fullName": "google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.ListScanRuns", - "service": { - "shortName": "WebSecurityScanner", - "fullName": "google.cloud.websecurityscanner.v1alpha.WebSecurityScanner" - } - } - } - }, - { - "regionTag": "websecurityscanner_v1alpha_generated_WebSecurityScanner_StopScanRun_async", - "title": "WebSecurityScanner stopScanRun Sample", - "origin": "API_DEFINITION", - "description": " Stops a ScanRun. The stopped ScanRun is returned.", - "canonical": true, - "file": "web_security_scanner.stop_scan_run.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StopScanRun", - "fullName": "google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.StopScanRun", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.websecurityscanner.v1alpha.ScanRun", - "client": { - "shortName": "WebSecurityScannerClient", - "fullName": "google.cloud.websecurityscanner.v1alpha.WebSecurityScannerClient" - }, - "method": { - "shortName": "StopScanRun", - "fullName": "google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.StopScanRun", - "service": { - "shortName": "WebSecurityScanner", - "fullName": "google.cloud.websecurityscanner.v1alpha.WebSecurityScanner" - } - } - } - }, - { - "regionTag": "websecurityscanner_v1alpha_generated_WebSecurityScanner_ListCrawledUrls_async", - "title": "WebSecurityScanner listCrawledUrls Sample", - "origin": "API_DEFINITION", - "description": " List CrawledUrls under a given ScanRun.", - "canonical": true, - "file": "web_security_scanner.list_crawled_urls.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCrawledUrls", - "fullName": "google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.ListCrawledUrls", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.websecurityscanner.v1alpha.ListCrawledUrlsResponse", - "client": { - "shortName": "WebSecurityScannerClient", - "fullName": "google.cloud.websecurityscanner.v1alpha.WebSecurityScannerClient" - }, - "method": { - "shortName": "ListCrawledUrls", - "fullName": "google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.ListCrawledUrls", - "service": { - "shortName": "WebSecurityScanner", - "fullName": "google.cloud.websecurityscanner.v1alpha.WebSecurityScanner" - } - } - } - }, - { - "regionTag": "websecurityscanner_v1alpha_generated_WebSecurityScanner_GetFinding_async", - "title": "WebSecurityScanner getFinding Sample", - "origin": "API_DEFINITION", - "description": " Gets a Finding.", - "canonical": true, - "file": "web_security_scanner.get_finding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFinding", - "fullName": "google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.GetFinding", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.websecurityscanner.v1alpha.Finding", - "client": { - "shortName": "WebSecurityScannerClient", - "fullName": "google.cloud.websecurityscanner.v1alpha.WebSecurityScannerClient" - }, - "method": { - "shortName": "GetFinding", - "fullName": "google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.GetFinding", - "service": { - "shortName": "WebSecurityScanner", - "fullName": "google.cloud.websecurityscanner.v1alpha.WebSecurityScanner" - } - } - } - }, - { - "regionTag": "websecurityscanner_v1alpha_generated_WebSecurityScanner_ListFindings_async", - "title": "WebSecurityScanner listFindings Sample", - "origin": "API_DEFINITION", - "description": " List Findings under a given ScanRun.", - "canonical": true, - "file": "web_security_scanner.list_findings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFindings", - "fullName": "google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.ListFindings", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.websecurityscanner.v1alpha.ListFindingsResponse", - "client": { - "shortName": "WebSecurityScannerClient", - "fullName": "google.cloud.websecurityscanner.v1alpha.WebSecurityScannerClient" - }, - "method": { - "shortName": "ListFindings", - "fullName": "google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.ListFindings", - "service": { - "shortName": "WebSecurityScanner", - "fullName": "google.cloud.websecurityscanner.v1alpha.WebSecurityScanner" - } - } - } - }, - { - "regionTag": "websecurityscanner_v1alpha_generated_WebSecurityScanner_ListFindingTypeStats_async", - "title": "WebSecurityScanner listFindingTypeStats Sample", - "origin": "API_DEFINITION", - "description": " List all FindingTypeStats under a given ScanRun.", - "canonical": true, - "file": "web_security_scanner.list_finding_type_stats.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFindingTypeStats", - "fullName": "google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.ListFindingTypeStats", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.websecurityscanner.v1alpha.ListFindingTypeStatsResponse", - "client": { - "shortName": "WebSecurityScannerClient", - "fullName": "google.cloud.websecurityscanner.v1alpha.WebSecurityScannerClient" - }, - "method": { - "shortName": "ListFindingTypeStats", - "fullName": "google.cloud.websecurityscanner.v1alpha.WebSecurityScanner.ListFindingTypeStats", - "service": { - "shortName": "WebSecurityScanner", - "fullName": "google.cloud.websecurityscanner.v1alpha.WebSecurityScanner" - } - } - } - } - ] -} diff --git a/packages/google-cloud-websecurityscanner/samples/generated/v1beta/snippet_metadata_google.cloud.websecurityscanner.v1beta.json b/packages/google-cloud-websecurityscanner/samples/generated/v1beta/snippet_metadata_google.cloud.websecurityscanner.v1beta.json deleted file mode 100644 index b9bfa8dad6ca..000000000000 --- a/packages/google-cloud-websecurityscanner/samples/generated/v1beta/snippet_metadata_google.cloud.websecurityscanner.v1beta.json +++ /dev/null @@ -1,579 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-websecurityscanner", - "version": "4.2.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.websecurityscanner.v1beta", - "version": "v1beta" - } - ] - }, - "snippets": [ - { - "regionTag": "websecurityscanner_v1beta_generated_WebSecurityScanner_CreateScanConfig_async", - "title": "WebSecurityScanner createScanConfig Sample", - "origin": "API_DEFINITION", - "description": " Creates a new ScanConfig.", - "canonical": true, - "file": "web_security_scanner.create_scan_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateScanConfig", - "fullName": "google.cloud.websecurityscanner.v1beta.WebSecurityScanner.CreateScanConfig", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "scan_config", - "type": ".google.cloud.websecurityscanner.v1beta.ScanConfig" - } - ], - "resultType": ".google.cloud.websecurityscanner.v1beta.ScanConfig", - "client": { - "shortName": "WebSecurityScannerClient", - "fullName": "google.cloud.websecurityscanner.v1beta.WebSecurityScannerClient" - }, - "method": { - "shortName": "CreateScanConfig", - "fullName": "google.cloud.websecurityscanner.v1beta.WebSecurityScanner.CreateScanConfig", - "service": { - "shortName": "WebSecurityScanner", - "fullName": "google.cloud.websecurityscanner.v1beta.WebSecurityScanner" - } - } - } - }, - { - "regionTag": "websecurityscanner_v1beta_generated_WebSecurityScanner_DeleteScanConfig_async", - "title": "WebSecurityScanner deleteScanConfig Sample", - "origin": "API_DEFINITION", - "description": " Deletes an existing ScanConfig and its child resources.", - "canonical": true, - "file": "web_security_scanner.delete_scan_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteScanConfig", - "fullName": "google.cloud.websecurityscanner.v1beta.WebSecurityScanner.DeleteScanConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "WebSecurityScannerClient", - "fullName": "google.cloud.websecurityscanner.v1beta.WebSecurityScannerClient" - }, - "method": { - "shortName": "DeleteScanConfig", - "fullName": "google.cloud.websecurityscanner.v1beta.WebSecurityScanner.DeleteScanConfig", - "service": { - "shortName": "WebSecurityScanner", - "fullName": "google.cloud.websecurityscanner.v1beta.WebSecurityScanner" - } - } - } - }, - { - "regionTag": "websecurityscanner_v1beta_generated_WebSecurityScanner_GetScanConfig_async", - "title": "WebSecurityScanner getScanConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets a ScanConfig.", - "canonical": true, - "file": "web_security_scanner.get_scan_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetScanConfig", - "fullName": "google.cloud.websecurityscanner.v1beta.WebSecurityScanner.GetScanConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.websecurityscanner.v1beta.ScanConfig", - "client": { - "shortName": "WebSecurityScannerClient", - "fullName": "google.cloud.websecurityscanner.v1beta.WebSecurityScannerClient" - }, - "method": { - "shortName": "GetScanConfig", - "fullName": "google.cloud.websecurityscanner.v1beta.WebSecurityScanner.GetScanConfig", - "service": { - "shortName": "WebSecurityScanner", - "fullName": "google.cloud.websecurityscanner.v1beta.WebSecurityScanner" - } - } - } - }, - { - "regionTag": "websecurityscanner_v1beta_generated_WebSecurityScanner_ListScanConfigs_async", - "title": "WebSecurityScanner listScanConfigs Sample", - "origin": "API_DEFINITION", - "description": " Lists ScanConfigs under a given project.", - "canonical": true, - "file": "web_security_scanner.list_scan_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListScanConfigs", - "fullName": "google.cloud.websecurityscanner.v1beta.WebSecurityScanner.ListScanConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.websecurityscanner.v1beta.ListScanConfigsResponse", - "client": { - "shortName": "WebSecurityScannerClient", - "fullName": "google.cloud.websecurityscanner.v1beta.WebSecurityScannerClient" - }, - "method": { - "shortName": "ListScanConfigs", - "fullName": "google.cloud.websecurityscanner.v1beta.WebSecurityScanner.ListScanConfigs", - "service": { - "shortName": "WebSecurityScanner", - "fullName": "google.cloud.websecurityscanner.v1beta.WebSecurityScanner" - } - } - } - }, - { - "regionTag": "websecurityscanner_v1beta_generated_WebSecurityScanner_UpdateScanConfig_async", - "title": "WebSecurityScanner updateScanConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates a ScanConfig. This method support partial update of a ScanConfig.", - "canonical": true, - "file": "web_security_scanner.update_scan_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateScanConfig", - "fullName": "google.cloud.websecurityscanner.v1beta.WebSecurityScanner.UpdateScanConfig", - "async": true, - "parameters": [ - { - "name": "scan_config", - "type": ".google.cloud.websecurityscanner.v1beta.ScanConfig" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.cloud.websecurityscanner.v1beta.ScanConfig", - "client": { - "shortName": "WebSecurityScannerClient", - "fullName": "google.cloud.websecurityscanner.v1beta.WebSecurityScannerClient" - }, - "method": { - "shortName": "UpdateScanConfig", - "fullName": "google.cloud.websecurityscanner.v1beta.WebSecurityScanner.UpdateScanConfig", - "service": { - "shortName": "WebSecurityScanner", - "fullName": "google.cloud.websecurityscanner.v1beta.WebSecurityScanner" - } - } - } - }, - { - "regionTag": "websecurityscanner_v1beta_generated_WebSecurityScanner_StartScanRun_async", - "title": "WebSecurityScanner startScanRun Sample", - "origin": "API_DEFINITION", - "description": " Start a ScanRun according to the given ScanConfig.", - "canonical": true, - "file": "web_security_scanner.start_scan_run.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StartScanRun", - "fullName": "google.cloud.websecurityscanner.v1beta.WebSecurityScanner.StartScanRun", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.websecurityscanner.v1beta.ScanRun", - "client": { - "shortName": "WebSecurityScannerClient", - "fullName": "google.cloud.websecurityscanner.v1beta.WebSecurityScannerClient" - }, - "method": { - "shortName": "StartScanRun", - "fullName": "google.cloud.websecurityscanner.v1beta.WebSecurityScanner.StartScanRun", - "service": { - "shortName": "WebSecurityScanner", - "fullName": "google.cloud.websecurityscanner.v1beta.WebSecurityScanner" - } - } - } - }, - { - "regionTag": "websecurityscanner_v1beta_generated_WebSecurityScanner_GetScanRun_async", - "title": "WebSecurityScanner getScanRun Sample", - "origin": "API_DEFINITION", - "description": " Gets a ScanRun.", - "canonical": true, - "file": "web_security_scanner.get_scan_run.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetScanRun", - "fullName": "google.cloud.websecurityscanner.v1beta.WebSecurityScanner.GetScanRun", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.websecurityscanner.v1beta.ScanRun", - "client": { - "shortName": "WebSecurityScannerClient", - "fullName": "google.cloud.websecurityscanner.v1beta.WebSecurityScannerClient" - }, - "method": { - "shortName": "GetScanRun", - "fullName": "google.cloud.websecurityscanner.v1beta.WebSecurityScanner.GetScanRun", - "service": { - "shortName": "WebSecurityScanner", - "fullName": "google.cloud.websecurityscanner.v1beta.WebSecurityScanner" - } - } - } - }, - { - "regionTag": "websecurityscanner_v1beta_generated_WebSecurityScanner_ListScanRuns_async", - "title": "WebSecurityScanner listScanRuns Sample", - "origin": "API_DEFINITION", - "description": " Lists ScanRuns under a given ScanConfig, in descending order of ScanRun stop time.", - "canonical": true, - "file": "web_security_scanner.list_scan_runs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListScanRuns", - "fullName": "google.cloud.websecurityscanner.v1beta.WebSecurityScanner.ListScanRuns", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.websecurityscanner.v1beta.ListScanRunsResponse", - "client": { - "shortName": "WebSecurityScannerClient", - "fullName": "google.cloud.websecurityscanner.v1beta.WebSecurityScannerClient" - }, - "method": { - "shortName": "ListScanRuns", - "fullName": "google.cloud.websecurityscanner.v1beta.WebSecurityScanner.ListScanRuns", - "service": { - "shortName": "WebSecurityScanner", - "fullName": "google.cloud.websecurityscanner.v1beta.WebSecurityScanner" - } - } - } - }, - { - "regionTag": "websecurityscanner_v1beta_generated_WebSecurityScanner_StopScanRun_async", - "title": "WebSecurityScanner stopScanRun Sample", - "origin": "API_DEFINITION", - "description": " Stops a ScanRun. The stopped ScanRun is returned.", - "canonical": true, - "file": "web_security_scanner.stop_scan_run.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StopScanRun", - "fullName": "google.cloud.websecurityscanner.v1beta.WebSecurityScanner.StopScanRun", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.websecurityscanner.v1beta.ScanRun", - "client": { - "shortName": "WebSecurityScannerClient", - "fullName": "google.cloud.websecurityscanner.v1beta.WebSecurityScannerClient" - }, - "method": { - "shortName": "StopScanRun", - "fullName": "google.cloud.websecurityscanner.v1beta.WebSecurityScanner.StopScanRun", - "service": { - "shortName": "WebSecurityScanner", - "fullName": "google.cloud.websecurityscanner.v1beta.WebSecurityScanner" - } - } - } - }, - { - "regionTag": "websecurityscanner_v1beta_generated_WebSecurityScanner_ListCrawledUrls_async", - "title": "WebSecurityScanner listCrawledUrls Sample", - "origin": "API_DEFINITION", - "description": " List CrawledUrls under a given ScanRun.", - "canonical": true, - "file": "web_security_scanner.list_crawled_urls.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCrawledUrls", - "fullName": "google.cloud.websecurityscanner.v1beta.WebSecurityScanner.ListCrawledUrls", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.websecurityscanner.v1beta.ListCrawledUrlsResponse", - "client": { - "shortName": "WebSecurityScannerClient", - "fullName": "google.cloud.websecurityscanner.v1beta.WebSecurityScannerClient" - }, - "method": { - "shortName": "ListCrawledUrls", - "fullName": "google.cloud.websecurityscanner.v1beta.WebSecurityScanner.ListCrawledUrls", - "service": { - "shortName": "WebSecurityScanner", - "fullName": "google.cloud.websecurityscanner.v1beta.WebSecurityScanner" - } - } - } - }, - { - "regionTag": "websecurityscanner_v1beta_generated_WebSecurityScanner_GetFinding_async", - "title": "WebSecurityScanner getFinding Sample", - "origin": "API_DEFINITION", - "description": " Gets a Finding.", - "canonical": true, - "file": "web_security_scanner.get_finding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFinding", - "fullName": "google.cloud.websecurityscanner.v1beta.WebSecurityScanner.GetFinding", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.websecurityscanner.v1beta.Finding", - "client": { - "shortName": "WebSecurityScannerClient", - "fullName": "google.cloud.websecurityscanner.v1beta.WebSecurityScannerClient" - }, - "method": { - "shortName": "GetFinding", - "fullName": "google.cloud.websecurityscanner.v1beta.WebSecurityScanner.GetFinding", - "service": { - "shortName": "WebSecurityScanner", - "fullName": "google.cloud.websecurityscanner.v1beta.WebSecurityScanner" - } - } - } - }, - { - "regionTag": "websecurityscanner_v1beta_generated_WebSecurityScanner_ListFindings_async", - "title": "WebSecurityScanner listFindings Sample", - "origin": "API_DEFINITION", - "description": " List Findings under a given ScanRun.", - "canonical": true, - "file": "web_security_scanner.list_findings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFindings", - "fullName": "google.cloud.websecurityscanner.v1beta.WebSecurityScanner.ListFindings", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.cloud.websecurityscanner.v1beta.ListFindingsResponse", - "client": { - "shortName": "WebSecurityScannerClient", - "fullName": "google.cloud.websecurityscanner.v1beta.WebSecurityScannerClient" - }, - "method": { - "shortName": "ListFindings", - "fullName": "google.cloud.websecurityscanner.v1beta.WebSecurityScanner.ListFindings", - "service": { - "shortName": "WebSecurityScanner", - "fullName": "google.cloud.websecurityscanner.v1beta.WebSecurityScanner" - } - } - } - }, - { - "regionTag": "websecurityscanner_v1beta_generated_WebSecurityScanner_ListFindingTypeStats_async", - "title": "WebSecurityScanner listFindingTypeStats Sample", - "origin": "API_DEFINITION", - "description": " List all FindingTypeStats under a given ScanRun.", - "canonical": true, - "file": "web_security_scanner.list_finding_type_stats.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFindingTypeStats", - "fullName": "google.cloud.websecurityscanner.v1beta.WebSecurityScanner.ListFindingTypeStats", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.websecurityscanner.v1beta.ListFindingTypeStatsResponse", - "client": { - "shortName": "WebSecurityScannerClient", - "fullName": "google.cloud.websecurityscanner.v1beta.WebSecurityScannerClient" - }, - "method": { - "shortName": "ListFindingTypeStats", - "fullName": "google.cloud.websecurityscanner.v1beta.WebSecurityScanner.ListFindingTypeStats", - "service": { - "shortName": "WebSecurityScanner", - "fullName": "google.cloud.websecurityscanner.v1beta.WebSecurityScanner" - } - } - } - } - ] -} diff --git a/packages/google-cloud-workflows/samples/generated/v1/snippet_metadata_google.cloud.workflows.executions.v1.json b/packages/google-cloud-workflows/samples/generated/v1/snippet_metadata_google.cloud.workflows.executions.v1.json deleted file mode 100644 index dc3098506e35..000000000000 --- a/packages/google-cloud-workflows/samples/generated/v1/snippet_metadata_google.cloud.workflows.executions.v1.json +++ /dev/null @@ -1,203 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-executions", - "version": "5.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.workflows.executions.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "workflowexecutions_v1_generated_Executions_ListExecutions_async", - "title": "Executions listExecutions Sample", - "origin": "API_DEFINITION", - "description": " Returns a list of executions which belong to the workflow with the given name. The method returns executions of all workflow revisions. Returned executions are ordered by their start time (newest first).", - "canonical": true, - "file": "executions.list_executions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 92, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListExecutions", - "fullName": "google.cloud.workflows.executions.v1.Executions.ListExecutions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.workflows.executions.v1.ExecutionView" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.workflows.executions.v1.ListExecutionsResponse", - "client": { - "shortName": "ExecutionsClient", - "fullName": "google.cloud.workflows.executions.v1.ExecutionsClient" - }, - "method": { - "shortName": "ListExecutions", - "fullName": "google.cloud.workflows.executions.v1.Executions.ListExecutions", - "service": { - "shortName": "Executions", - "fullName": "google.cloud.workflows.executions.v1.Executions" - } - } - } - }, - { - "regionTag": "workflowexecutions_v1_generated_Executions_CreateExecution_async", - "title": "Executions createExecution Sample", - "origin": "API_DEFINITION", - "description": " Creates a new execution using the latest revision of the given workflow.", - "canonical": true, - "file": "executions.create_execution.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateExecution", - "fullName": "google.cloud.workflows.executions.v1.Executions.CreateExecution", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "execution", - "type": ".google.cloud.workflows.executions.v1.Execution" - } - ], - "resultType": ".google.cloud.workflows.executions.v1.Execution", - "client": { - "shortName": "ExecutionsClient", - "fullName": "google.cloud.workflows.executions.v1.ExecutionsClient" - }, - "method": { - "shortName": "CreateExecution", - "fullName": "google.cloud.workflows.executions.v1.Executions.CreateExecution", - "service": { - "shortName": "Executions", - "fullName": "google.cloud.workflows.executions.v1.Executions" - } - } - } - }, - { - "regionTag": "workflowexecutions_v1_generated_Executions_GetExecution_async", - "title": "Executions getExecution Sample", - "origin": "API_DEFINITION", - "description": " Returns an execution of the given name.", - "canonical": true, - "file": "executions.get_execution.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetExecution", - "fullName": "google.cloud.workflows.executions.v1.Executions.GetExecution", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.workflows.executions.v1.ExecutionView" - } - ], - "resultType": ".google.cloud.workflows.executions.v1.Execution", - "client": { - "shortName": "ExecutionsClient", - "fullName": "google.cloud.workflows.executions.v1.ExecutionsClient" - }, - "method": { - "shortName": "GetExecution", - "fullName": "google.cloud.workflows.executions.v1.Executions.GetExecution", - "service": { - "shortName": "Executions", - "fullName": "google.cloud.workflows.executions.v1.Executions" - } - } - } - }, - { - "regionTag": "workflowexecutions_v1_generated_Executions_CancelExecution_async", - "title": "Executions cancelExecution Sample", - "origin": "API_DEFINITION", - "description": " Cancels an execution of the given name.", - "canonical": true, - "file": "executions.cancel_execution.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CancelExecution", - "fullName": "google.cloud.workflows.executions.v1.Executions.CancelExecution", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.workflows.executions.v1.Execution", - "client": { - "shortName": "ExecutionsClient", - "fullName": "google.cloud.workflows.executions.v1.ExecutionsClient" - }, - "method": { - "shortName": "CancelExecution", - "fullName": "google.cloud.workflows.executions.v1.Executions.CancelExecution", - "service": { - "shortName": "Executions", - "fullName": "google.cloud.workflows.executions.v1.Executions" - } - } - } - } - ] -} diff --git a/packages/google-cloud-workflows/samples/generated/v1/snippet_metadata_google.cloud.workflows.v1.json b/packages/google-cloud-workflows/samples/generated/v1/snippet_metadata_google.cloud.workflows.v1.json deleted file mode 100644 index cf3b301b5882..000000000000 --- a/packages/google-cloud-workflows/samples/generated/v1/snippet_metadata_google.cloud.workflows.v1.json +++ /dev/null @@ -1,295 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-workflows", - "version": "5.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.workflows.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "workflows_v1_generated_Workflows_ListWorkflows_async", - "title": "Workflows listWorkflows Sample", - "origin": "API_DEFINITION", - "description": " Lists workflows in a given project and location. The default order is not specified.", - "canonical": true, - "file": "workflows.list_workflows.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListWorkflows", - "fullName": "google.cloud.workflows.v1.Workflows.ListWorkflows", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.workflows.v1.ListWorkflowsResponse", - "client": { - "shortName": "WorkflowsClient", - "fullName": "google.cloud.workflows.v1.WorkflowsClient" - }, - "method": { - "shortName": "ListWorkflows", - "fullName": "google.cloud.workflows.v1.Workflows.ListWorkflows", - "service": { - "shortName": "Workflows", - "fullName": "google.cloud.workflows.v1.Workflows" - } - } - } - }, - { - "regionTag": "workflows_v1_generated_Workflows_GetWorkflow_async", - "title": "Workflows getWorkflow Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single workflow.", - "canonical": true, - "file": "workflows.get_workflow.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetWorkflow", - "fullName": "google.cloud.workflows.v1.Workflows.GetWorkflow", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "revision_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.workflows.v1.Workflow", - "client": { - "shortName": "WorkflowsClient", - "fullName": "google.cloud.workflows.v1.WorkflowsClient" - }, - "method": { - "shortName": "GetWorkflow", - "fullName": "google.cloud.workflows.v1.Workflows.GetWorkflow", - "service": { - "shortName": "Workflows", - "fullName": "google.cloud.workflows.v1.Workflows" - } - } - } - }, - { - "regionTag": "workflows_v1_generated_Workflows_CreateWorkflow_async", - "title": "Workflows createWorkflow Sample", - "origin": "API_DEFINITION", - "description": " Creates a new workflow. If a workflow with the specified name already exists in the specified project and location, the long running operation returns a [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS] error.", - "canonical": true, - "file": "workflows.create_workflow.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateWorkflow", - "fullName": "google.cloud.workflows.v1.Workflows.CreateWorkflow", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "workflow", - "type": ".google.cloud.workflows.v1.Workflow" - }, - { - "name": "workflow_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkflowsClient", - "fullName": "google.cloud.workflows.v1.WorkflowsClient" - }, - "method": { - "shortName": "CreateWorkflow", - "fullName": "google.cloud.workflows.v1.Workflows.CreateWorkflow", - "service": { - "shortName": "Workflows", - "fullName": "google.cloud.workflows.v1.Workflows" - } - } - } - }, - { - "regionTag": "workflows_v1_generated_Workflows_DeleteWorkflow_async", - "title": "Workflows deleteWorkflow Sample", - "origin": "API_DEFINITION", - "description": " Deletes a workflow with the specified name. This method also cancels and deletes all running executions of the workflow.", - "canonical": true, - "file": "workflows.delete_workflow.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteWorkflow", - "fullName": "google.cloud.workflows.v1.Workflows.DeleteWorkflow", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkflowsClient", - "fullName": "google.cloud.workflows.v1.WorkflowsClient" - }, - "method": { - "shortName": "DeleteWorkflow", - "fullName": "google.cloud.workflows.v1.Workflows.DeleteWorkflow", - "service": { - "shortName": "Workflows", - "fullName": "google.cloud.workflows.v1.Workflows" - } - } - } - }, - { - "regionTag": "workflows_v1_generated_Workflows_UpdateWorkflow_async", - "title": "Workflows updateWorkflow Sample", - "origin": "API_DEFINITION", - "description": " Updates an existing workflow. Running this method has no impact on already running executions of the workflow. A new revision of the workflow might be created as a result of a successful update operation. In that case, the new revision is used in new workflow executions.", - "canonical": true, - "file": "workflows.update_workflow.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateWorkflow", - "fullName": "google.cloud.workflows.v1.Workflows.UpdateWorkflow", - "async": true, - "parameters": [ - { - "name": "workflow", - "type": ".google.cloud.workflows.v1.Workflow" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkflowsClient", - "fullName": "google.cloud.workflows.v1.WorkflowsClient" - }, - "method": { - "shortName": "UpdateWorkflow", - "fullName": "google.cloud.workflows.v1.Workflows.UpdateWorkflow", - "service": { - "shortName": "Workflows", - "fullName": "google.cloud.workflows.v1.Workflows" - } - } - } - }, - { - "regionTag": "workflows_v1_generated_Workflows_ListWorkflowRevisions_async", - "title": "Workflows listWorkflowRevisions Sample", - "origin": "API_DEFINITION", - "description": " Lists revisions for a given workflow.", - "canonical": true, - "file": "workflows.list_workflow_revisions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListWorkflowRevisions", - "fullName": "google.cloud.workflows.v1.Workflows.ListWorkflowRevisions", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.workflows.v1.ListWorkflowRevisionsResponse", - "client": { - "shortName": "WorkflowsClient", - "fullName": "google.cloud.workflows.v1.WorkflowsClient" - }, - "method": { - "shortName": "ListWorkflowRevisions", - "fullName": "google.cloud.workflows.v1.Workflows.ListWorkflowRevisions", - "service": { - "shortName": "Workflows", - "fullName": "google.cloud.workflows.v1.Workflows" - } - } - } - } - ] -} diff --git a/packages/google-cloud-workflows/samples/generated/v1beta/snippet_metadata_google.cloud.workflows.executions.v1beta.json b/packages/google-cloud-workflows/samples/generated/v1beta/snippet_metadata_google.cloud.workflows.executions.v1beta.json deleted file mode 100644 index 3047d1d64146..000000000000 --- a/packages/google-cloud-workflows/samples/generated/v1beta/snippet_metadata_google.cloud.workflows.executions.v1beta.json +++ /dev/null @@ -1,195 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-executions", - "version": "5.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.workflows.executions.v1beta", - "version": "v1beta" - } - ] - }, - "snippets": [ - { - "regionTag": "workflowexecutions_v1beta_generated_Executions_ListExecutions_async", - "title": "Executions listExecutions Sample", - "origin": "API_DEFINITION", - "description": " Returns a list of executions which belong to the workflow with the given name. The method returns executions of all workflow revisions. Returned executions are ordered by their start time (newest first).", - "canonical": true, - "file": "executions.list_executions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListExecutions", - "fullName": "google.cloud.workflows.executions.v1beta.Executions.ListExecutions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.workflows.executions.v1beta.ExecutionView" - } - ], - "resultType": ".google.cloud.workflows.executions.v1beta.ListExecutionsResponse", - "client": { - "shortName": "ExecutionsClient", - "fullName": "google.cloud.workflows.executions.v1beta.ExecutionsClient" - }, - "method": { - "shortName": "ListExecutions", - "fullName": "google.cloud.workflows.executions.v1beta.Executions.ListExecutions", - "service": { - "shortName": "Executions", - "fullName": "google.cloud.workflows.executions.v1beta.Executions" - } - } - } - }, - { - "regionTag": "workflowexecutions_v1beta_generated_Executions_CreateExecution_async", - "title": "Executions createExecution Sample", - "origin": "API_DEFINITION", - "description": " Creates a new execution using the latest revision of the given workflow.", - "canonical": true, - "file": "executions.create_execution.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateExecution", - "fullName": "google.cloud.workflows.executions.v1beta.Executions.CreateExecution", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "execution", - "type": ".google.cloud.workflows.executions.v1beta.Execution" - } - ], - "resultType": ".google.cloud.workflows.executions.v1beta.Execution", - "client": { - "shortName": "ExecutionsClient", - "fullName": "google.cloud.workflows.executions.v1beta.ExecutionsClient" - }, - "method": { - "shortName": "CreateExecution", - "fullName": "google.cloud.workflows.executions.v1beta.Executions.CreateExecution", - "service": { - "shortName": "Executions", - "fullName": "google.cloud.workflows.executions.v1beta.Executions" - } - } - } - }, - { - "regionTag": "workflowexecutions_v1beta_generated_Executions_GetExecution_async", - "title": "Executions getExecution Sample", - "origin": "API_DEFINITION", - "description": " Returns an execution of the given name.", - "canonical": true, - "file": "executions.get_execution.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetExecution", - "fullName": "google.cloud.workflows.executions.v1beta.Executions.GetExecution", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.cloud.workflows.executions.v1beta.ExecutionView" - } - ], - "resultType": ".google.cloud.workflows.executions.v1beta.Execution", - "client": { - "shortName": "ExecutionsClient", - "fullName": "google.cloud.workflows.executions.v1beta.ExecutionsClient" - }, - "method": { - "shortName": "GetExecution", - "fullName": "google.cloud.workflows.executions.v1beta.Executions.GetExecution", - "service": { - "shortName": "Executions", - "fullName": "google.cloud.workflows.executions.v1beta.Executions" - } - } - } - }, - { - "regionTag": "workflowexecutions_v1beta_generated_Executions_CancelExecution_async", - "title": "Executions cancelExecution Sample", - "origin": "API_DEFINITION", - "description": " Cancels an execution of the given name.", - "canonical": true, - "file": "executions.cancel_execution.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CancelExecution", - "fullName": "google.cloud.workflows.executions.v1beta.Executions.CancelExecution", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.workflows.executions.v1beta.Execution", - "client": { - "shortName": "ExecutionsClient", - "fullName": "google.cloud.workflows.executions.v1beta.ExecutionsClient" - }, - "method": { - "shortName": "CancelExecution", - "fullName": "google.cloud.workflows.executions.v1beta.Executions.CancelExecution", - "service": { - "shortName": "Executions", - "fullName": "google.cloud.workflows.executions.v1beta.Executions" - } - } - } - } - ] -} diff --git a/packages/google-cloud-workflows/samples/generated/v1beta/snippet_metadata_google.cloud.workflows.v1beta.json b/packages/google-cloud-workflows/samples/generated/v1beta/snippet_metadata_google.cloud.workflows.v1beta.json deleted file mode 100644 index 51ab6caba658..000000000000 --- a/packages/google-cloud-workflows/samples/generated/v1beta/snippet_metadata_google.cloud.workflows.v1beta.json +++ /dev/null @@ -1,243 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-workflows", - "version": "5.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.workflows.v1beta", - "version": "v1beta" - } - ] - }, - "snippets": [ - { - "regionTag": "workflows_v1beta_generated_Workflows_ListWorkflows_async", - "title": "Workflows listWorkflows Sample", - "origin": "API_DEFINITION", - "description": " Lists Workflows in a given project and location. The default order is not specified.", - "canonical": true, - "file": "workflows.list_workflows.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListWorkflows", - "fullName": "google.cloud.workflows.v1beta.Workflows.ListWorkflows", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.workflows.v1beta.ListWorkflowsResponse", - "client": { - "shortName": "WorkflowsClient", - "fullName": "google.cloud.workflows.v1beta.WorkflowsClient" - }, - "method": { - "shortName": "ListWorkflows", - "fullName": "google.cloud.workflows.v1beta.Workflows.ListWorkflows", - "service": { - "shortName": "Workflows", - "fullName": "google.cloud.workflows.v1beta.Workflows" - } - } - } - }, - { - "regionTag": "workflows_v1beta_generated_Workflows_GetWorkflow_async", - "title": "Workflows getWorkflow Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Workflow.", - "canonical": true, - "file": "workflows.get_workflow.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetWorkflow", - "fullName": "google.cloud.workflows.v1beta.Workflows.GetWorkflow", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.workflows.v1beta.Workflow", - "client": { - "shortName": "WorkflowsClient", - "fullName": "google.cloud.workflows.v1beta.WorkflowsClient" - }, - "method": { - "shortName": "GetWorkflow", - "fullName": "google.cloud.workflows.v1beta.Workflows.GetWorkflow", - "service": { - "shortName": "Workflows", - "fullName": "google.cloud.workflows.v1beta.Workflows" - } - } - } - }, - { - "regionTag": "workflows_v1beta_generated_Workflows_CreateWorkflow_async", - "title": "Workflows createWorkflow Sample", - "origin": "API_DEFINITION", - "description": " Creates a new workflow. If a workflow with the specified name already exists in the specified project and location, the long running operation will return [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS] error.", - "canonical": true, - "file": "workflows.create_workflow.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateWorkflow", - "fullName": "google.cloud.workflows.v1beta.Workflows.CreateWorkflow", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "workflow", - "type": ".google.cloud.workflows.v1beta.Workflow" - }, - { - "name": "workflow_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkflowsClient", - "fullName": "google.cloud.workflows.v1beta.WorkflowsClient" - }, - "method": { - "shortName": "CreateWorkflow", - "fullName": "google.cloud.workflows.v1beta.Workflows.CreateWorkflow", - "service": { - "shortName": "Workflows", - "fullName": "google.cloud.workflows.v1beta.Workflows" - } - } - } - }, - { - "regionTag": "workflows_v1beta_generated_Workflows_DeleteWorkflow_async", - "title": "Workflows deleteWorkflow Sample", - "origin": "API_DEFINITION", - "description": " Deletes a workflow with the specified name. This method also cancels and deletes all running executions of the workflow.", - "canonical": true, - "file": "workflows.delete_workflow.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteWorkflow", - "fullName": "google.cloud.workflows.v1beta.Workflows.DeleteWorkflow", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkflowsClient", - "fullName": "google.cloud.workflows.v1beta.WorkflowsClient" - }, - "method": { - "shortName": "DeleteWorkflow", - "fullName": "google.cloud.workflows.v1beta.Workflows.DeleteWorkflow", - "service": { - "shortName": "Workflows", - "fullName": "google.cloud.workflows.v1beta.Workflows" - } - } - } - }, - { - "regionTag": "workflows_v1beta_generated_Workflows_UpdateWorkflow_async", - "title": "Workflows updateWorkflow Sample", - "origin": "API_DEFINITION", - "description": " Updates an existing workflow. Running this method has no impact on already running executions of the workflow. A new revision of the workflow may be created as a result of a successful update operation. In that case, such revision will be used in new workflow executions.", - "canonical": true, - "file": "workflows.update_workflow.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateWorkflow", - "fullName": "google.cloud.workflows.v1beta.Workflows.UpdateWorkflow", - "async": true, - "parameters": [ - { - "name": "workflow", - "type": ".google.cloud.workflows.v1beta.Workflow" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkflowsClient", - "fullName": "google.cloud.workflows.v1beta.WorkflowsClient" - }, - "method": { - "shortName": "UpdateWorkflow", - "fullName": "google.cloud.workflows.v1beta.Workflows.UpdateWorkflow", - "service": { - "shortName": "Workflows", - "fullName": "google.cloud.workflows.v1beta.Workflows" - } - } - } - } - ] -} diff --git a/packages/google-cloud-workloadmanager/samples/generated/v1/snippet_metadata_google.cloud.workloadmanager.v1.json b/packages/google-cloud-workloadmanager/samples/generated/v1/snippet_metadata_google.cloud.workloadmanager.v1.json deleted file mode 100644 index 4fe4d6a37763..000000000000 --- a/packages/google-cloud-workloadmanager/samples/generated/v1/snippet_metadata_google.cloud.workloadmanager.v1.json +++ /dev/null @@ -1,623 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-workloadmanager", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.workloadmanager.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "workloadmanager_v1_generated_WorkloadManager_ListEvaluations_async", - "title": "WorkloadManager listEvaluations Sample", - "origin": "API_DEFINITION", - "description": " Lists Evaluations in a given project and location.", - "canonical": true, - "file": "workload_manager.list_evaluations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListEvaluations", - "fullName": "google.cloud.workloadmanager.v1.WorkloadManager.ListEvaluations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.workloadmanager.v1.ListEvaluationsResponse", - "client": { - "shortName": "WorkloadManagerClient", - "fullName": "google.cloud.workloadmanager.v1.WorkloadManagerClient" - }, - "method": { - "shortName": "ListEvaluations", - "fullName": "google.cloud.workloadmanager.v1.WorkloadManager.ListEvaluations", - "service": { - "shortName": "WorkloadManager", - "fullName": "google.cloud.workloadmanager.v1.WorkloadManager" - } - } - } - }, - { - "regionTag": "workloadmanager_v1_generated_WorkloadManager_GetEvaluation_async", - "title": "WorkloadManager getEvaluation Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Evaluation.", - "canonical": true, - "file": "workload_manager.get_evaluation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEvaluation", - "fullName": "google.cloud.workloadmanager.v1.WorkloadManager.GetEvaluation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.workloadmanager.v1.Evaluation", - "client": { - "shortName": "WorkloadManagerClient", - "fullName": "google.cloud.workloadmanager.v1.WorkloadManagerClient" - }, - "method": { - "shortName": "GetEvaluation", - "fullName": "google.cloud.workloadmanager.v1.WorkloadManager.GetEvaluation", - "service": { - "shortName": "WorkloadManager", - "fullName": "google.cloud.workloadmanager.v1.WorkloadManager" - } - } - } - }, - { - "regionTag": "workloadmanager_v1_generated_WorkloadManager_CreateEvaluation_async", - "title": "WorkloadManager createEvaluation Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Evaluation in a given project and location.", - "canonical": true, - "file": "workload_manager.create_evaluation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateEvaluation", - "fullName": "google.cloud.workloadmanager.v1.WorkloadManager.CreateEvaluation", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "evaluation_id", - "type": "TYPE_STRING" - }, - { - "name": "evaluation", - "type": ".google.cloud.workloadmanager.v1.Evaluation" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkloadManagerClient", - "fullName": "google.cloud.workloadmanager.v1.WorkloadManagerClient" - }, - "method": { - "shortName": "CreateEvaluation", - "fullName": "google.cloud.workloadmanager.v1.WorkloadManager.CreateEvaluation", - "service": { - "shortName": "WorkloadManager", - "fullName": "google.cloud.workloadmanager.v1.WorkloadManager" - } - } - } - }, - { - "regionTag": "workloadmanager_v1_generated_WorkloadManager_UpdateEvaluation_async", - "title": "WorkloadManager updateEvaluation Sample", - "origin": "API_DEFINITION", - "description": " Updates the parameters of a single Evaluation.", - "canonical": true, - "file": "workload_manager.update_evaluation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateEvaluation", - "fullName": "google.cloud.workloadmanager.v1.WorkloadManager.UpdateEvaluation", - "async": true, - "parameters": [ - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "evaluation", - "type": ".google.cloud.workloadmanager.v1.Evaluation" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkloadManagerClient", - "fullName": "google.cloud.workloadmanager.v1.WorkloadManagerClient" - }, - "method": { - "shortName": "UpdateEvaluation", - "fullName": "google.cloud.workloadmanager.v1.WorkloadManager.UpdateEvaluation", - "service": { - "shortName": "WorkloadManager", - "fullName": "google.cloud.workloadmanager.v1.WorkloadManager" - } - } - } - }, - { - "regionTag": "workloadmanager_v1_generated_WorkloadManager_DeleteEvaluation_async", - "title": "WorkloadManager deleteEvaluation Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Evaluation.", - "canonical": true, - "file": "workload_manager.delete_evaluation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteEvaluation", - "fullName": "google.cloud.workloadmanager.v1.WorkloadManager.DeleteEvaluation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkloadManagerClient", - "fullName": "google.cloud.workloadmanager.v1.WorkloadManagerClient" - }, - "method": { - "shortName": "DeleteEvaluation", - "fullName": "google.cloud.workloadmanager.v1.WorkloadManager.DeleteEvaluation", - "service": { - "shortName": "WorkloadManager", - "fullName": "google.cloud.workloadmanager.v1.WorkloadManager" - } - } - } - }, - { - "regionTag": "workloadmanager_v1_generated_WorkloadManager_ListExecutions_async", - "title": "WorkloadManager listExecutions Sample", - "origin": "API_DEFINITION", - "description": " Lists Executions in a given project and location.", - "canonical": true, - "file": "workload_manager.list_executions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListExecutions", - "fullName": "google.cloud.workloadmanager.v1.WorkloadManager.ListExecutions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.workloadmanager.v1.ListExecutionsResponse", - "client": { - "shortName": "WorkloadManagerClient", - "fullName": "google.cloud.workloadmanager.v1.WorkloadManagerClient" - }, - "method": { - "shortName": "ListExecutions", - "fullName": "google.cloud.workloadmanager.v1.WorkloadManager.ListExecutions", - "service": { - "shortName": "WorkloadManager", - "fullName": "google.cloud.workloadmanager.v1.WorkloadManager" - } - } - } - }, - { - "regionTag": "workloadmanager_v1_generated_WorkloadManager_GetExecution_async", - "title": "WorkloadManager getExecution Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single Execution.", - "canonical": true, - "file": "workload_manager.get_execution.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetExecution", - "fullName": "google.cloud.workloadmanager.v1.WorkloadManager.GetExecution", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.workloadmanager.v1.Execution", - "client": { - "shortName": "WorkloadManagerClient", - "fullName": "google.cloud.workloadmanager.v1.WorkloadManagerClient" - }, - "method": { - "shortName": "GetExecution", - "fullName": "google.cloud.workloadmanager.v1.WorkloadManager.GetExecution", - "service": { - "shortName": "WorkloadManager", - "fullName": "google.cloud.workloadmanager.v1.WorkloadManager" - } - } - } - }, - { - "regionTag": "workloadmanager_v1_generated_WorkloadManager_RunEvaluation_async", - "title": "WorkloadManager runEvaluation Sample", - "origin": "API_DEFINITION", - "description": " Creates a new Execution in a given project and location.", - "canonical": true, - "file": "workload_manager.run_evaluation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RunEvaluation", - "fullName": "google.cloud.workloadmanager.v1.WorkloadManager.RunEvaluation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "execution_id", - "type": "TYPE_STRING" - }, - { - "name": "execution", - "type": ".google.cloud.workloadmanager.v1.Execution" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkloadManagerClient", - "fullName": "google.cloud.workloadmanager.v1.WorkloadManagerClient" - }, - "method": { - "shortName": "RunEvaluation", - "fullName": "google.cloud.workloadmanager.v1.WorkloadManager.RunEvaluation", - "service": { - "shortName": "WorkloadManager", - "fullName": "google.cloud.workloadmanager.v1.WorkloadManager" - } - } - } - }, - { - "regionTag": "workloadmanager_v1_generated_WorkloadManager_DeleteExecution_async", - "title": "WorkloadManager deleteExecution Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Execution.", - "canonical": true, - "file": "workload_manager.delete_execution.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteExecution", - "fullName": "google.cloud.workloadmanager.v1.WorkloadManager.DeleteExecution", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkloadManagerClient", - "fullName": "google.cloud.workloadmanager.v1.WorkloadManagerClient" - }, - "method": { - "shortName": "DeleteExecution", - "fullName": "google.cloud.workloadmanager.v1.WorkloadManager.DeleteExecution", - "service": { - "shortName": "WorkloadManager", - "fullName": "google.cloud.workloadmanager.v1.WorkloadManager" - } - } - } - }, - { - "regionTag": "workloadmanager_v1_generated_WorkloadManager_ListExecutionResults_async", - "title": "WorkloadManager listExecutionResults Sample", - "origin": "API_DEFINITION", - "description": " Lists the result of a single evaluation.", - "canonical": true, - "file": "workload_manager.list_execution_results.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListExecutionResults", - "fullName": "google.cloud.workloadmanager.v1.WorkloadManager.ListExecutionResults", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.workloadmanager.v1.ListExecutionResultsResponse", - "client": { - "shortName": "WorkloadManagerClient", - "fullName": "google.cloud.workloadmanager.v1.WorkloadManagerClient" - }, - "method": { - "shortName": "ListExecutionResults", - "fullName": "google.cloud.workloadmanager.v1.WorkloadManager.ListExecutionResults", - "service": { - "shortName": "WorkloadManager", - "fullName": "google.cloud.workloadmanager.v1.WorkloadManager" - } - } - } - }, - { - "regionTag": "workloadmanager_v1_generated_WorkloadManager_ListRules_async", - "title": "WorkloadManager listRules Sample", - "origin": "API_DEFINITION", - "description": " Lists rules in a given project.", - "canonical": true, - "file": "workload_manager.list_rules.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRules", - "fullName": "google.cloud.workloadmanager.v1.WorkloadManager.ListRules", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "custom_rules_bucket", - "type": "TYPE_STRING" - }, - { - "name": "evaluation_type", - "type": ".google.cloud.workloadmanager.v1.Evaluation.EvaluationType" - } - ], - "resultType": ".google.cloud.workloadmanager.v1.ListRulesResponse", - "client": { - "shortName": "WorkloadManagerClient", - "fullName": "google.cloud.workloadmanager.v1.WorkloadManagerClient" - }, - "method": { - "shortName": "ListRules", - "fullName": "google.cloud.workloadmanager.v1.WorkloadManager.ListRules", - "service": { - "shortName": "WorkloadManager", - "fullName": "google.cloud.workloadmanager.v1.WorkloadManager" - } - } - } - }, - { - "regionTag": "workloadmanager_v1_generated_WorkloadManager_ListScannedResources_async", - "title": "WorkloadManager listScannedResources Sample", - "origin": "API_DEFINITION", - "description": " List all scanned resources for a single Execution.", - "canonical": true, - "file": "workload_manager.list_scanned_resources.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListScannedResources", - "fullName": "google.cloud.workloadmanager.v1.WorkloadManager.ListScannedResources", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "rule", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.workloadmanager.v1.ListScannedResourcesResponse", - "client": { - "shortName": "WorkloadManagerClient", - "fullName": "google.cloud.workloadmanager.v1.WorkloadManagerClient" - }, - "method": { - "shortName": "ListScannedResources", - "fullName": "google.cloud.workloadmanager.v1.WorkloadManager.ListScannedResources", - "service": { - "shortName": "WorkloadManager", - "fullName": "google.cloud.workloadmanager.v1.WorkloadManager" - } - } - } - } - ] -} diff --git a/packages/google-cloud-workstations/samples/generated/v1/snippet_metadata_google.cloud.workstations.v1.json b/packages/google-cloud-workstations/samples/generated/v1/snippet_metadata_google.cloud.workstations.v1.json deleted file mode 100644 index 2d67348b480f..000000000000 --- a/packages/google-cloud-workstations/samples/generated/v1/snippet_metadata_google.cloud.workstations.v1.json +++ /dev/null @@ -1,983 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-workstations", - "version": "2.2.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.workstations.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "workstations_v1_generated_Workstations_GetWorkstationCluster_async", - "title": "Workstations getWorkstationCluster Sample", - "origin": "API_DEFINITION", - "description": " Returns the requested workstation cluster.", - "canonical": true, - "file": "workstations.get_workstation_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetWorkstationCluster", - "fullName": "google.cloud.workstations.v1.Workstations.GetWorkstationCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.workstations.v1.WorkstationCluster", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1.WorkstationsClient" - }, - "method": { - "shortName": "GetWorkstationCluster", - "fullName": "google.cloud.workstations.v1.Workstations.GetWorkstationCluster", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1_generated_Workstations_ListWorkstationClusters_async", - "title": "Workstations listWorkstationClusters Sample", - "origin": "API_DEFINITION", - "description": " Returns all workstation clusters in the specified location.", - "canonical": true, - "file": "workstations.list_workstation_clusters.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListWorkstationClusters", - "fullName": "google.cloud.workstations.v1.Workstations.ListWorkstationClusters", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.workstations.v1.ListWorkstationClustersResponse", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1.WorkstationsClient" - }, - "method": { - "shortName": "ListWorkstationClusters", - "fullName": "google.cloud.workstations.v1.Workstations.ListWorkstationClusters", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1_generated_Workstations_CreateWorkstationCluster_async", - "title": "Workstations createWorkstationCluster Sample", - "origin": "API_DEFINITION", - "description": " Creates a new workstation cluster.", - "canonical": true, - "file": "workstations.create_workstation_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateWorkstationCluster", - "fullName": "google.cloud.workstations.v1.Workstations.CreateWorkstationCluster", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "workstation_cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "workstation_cluster", - "type": ".google.cloud.workstations.v1.WorkstationCluster" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1.WorkstationsClient" - }, - "method": { - "shortName": "CreateWorkstationCluster", - "fullName": "google.cloud.workstations.v1.Workstations.CreateWorkstationCluster", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1_generated_Workstations_UpdateWorkstationCluster_async", - "title": "Workstations updateWorkstationCluster Sample", - "origin": "API_DEFINITION", - "description": " Updates an existing workstation cluster.", - "canonical": true, - "file": "workstations.update_workstation_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateWorkstationCluster", - "fullName": "google.cloud.workstations.v1.Workstations.UpdateWorkstationCluster", - "async": true, - "parameters": [ - { - "name": "workstation_cluster", - "type": ".google.cloud.workstations.v1.WorkstationCluster" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1.WorkstationsClient" - }, - "method": { - "shortName": "UpdateWorkstationCluster", - "fullName": "google.cloud.workstations.v1.Workstations.UpdateWorkstationCluster", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1_generated_Workstations_DeleteWorkstationCluster_async", - "title": "Workstations deleteWorkstationCluster Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified workstation cluster.", - "canonical": true, - "file": "workstations.delete_workstation_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteWorkstationCluster", - "fullName": "google.cloud.workstations.v1.Workstations.DeleteWorkstationCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1.WorkstationsClient" - }, - "method": { - "shortName": "DeleteWorkstationCluster", - "fullName": "google.cloud.workstations.v1.Workstations.DeleteWorkstationCluster", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1_generated_Workstations_GetWorkstationConfig_async", - "title": "Workstations getWorkstationConfig Sample", - "origin": "API_DEFINITION", - "description": " Returns the requested workstation configuration.", - "canonical": true, - "file": "workstations.get_workstation_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetWorkstationConfig", - "fullName": "google.cloud.workstations.v1.Workstations.GetWorkstationConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.workstations.v1.WorkstationConfig", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1.WorkstationsClient" - }, - "method": { - "shortName": "GetWorkstationConfig", - "fullName": "google.cloud.workstations.v1.Workstations.GetWorkstationConfig", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1_generated_Workstations_ListWorkstationConfigs_async", - "title": "Workstations listWorkstationConfigs Sample", - "origin": "API_DEFINITION", - "description": " Returns all workstation configurations in the specified cluster.", - "canonical": true, - "file": "workstations.list_workstation_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListWorkstationConfigs", - "fullName": "google.cloud.workstations.v1.Workstations.ListWorkstationConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.workstations.v1.ListWorkstationConfigsResponse", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1.WorkstationsClient" - }, - "method": { - "shortName": "ListWorkstationConfigs", - "fullName": "google.cloud.workstations.v1.Workstations.ListWorkstationConfigs", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1_generated_Workstations_ListUsableWorkstationConfigs_async", - "title": "Workstations listUsableWorkstationConfigs Sample", - "origin": "API_DEFINITION", - "description": " Returns all workstation configurations in the specified cluster on which the caller has the \"workstations.workstation.create\" permission.", - "canonical": true, - "file": "workstations.list_usable_workstation_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListUsableWorkstationConfigs", - "fullName": "google.cloud.workstations.v1.Workstations.ListUsableWorkstationConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.workstations.v1.ListUsableWorkstationConfigsResponse", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1.WorkstationsClient" - }, - "method": { - "shortName": "ListUsableWorkstationConfigs", - "fullName": "google.cloud.workstations.v1.Workstations.ListUsableWorkstationConfigs", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1_generated_Workstations_CreateWorkstationConfig_async", - "title": "Workstations createWorkstationConfig Sample", - "origin": "API_DEFINITION", - "description": " Creates a new workstation configuration.", - "canonical": true, - "file": "workstations.create_workstation_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateWorkstationConfig", - "fullName": "google.cloud.workstations.v1.Workstations.CreateWorkstationConfig", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "workstation_config_id", - "type": "TYPE_STRING" - }, - { - "name": "workstation_config", - "type": ".google.cloud.workstations.v1.WorkstationConfig" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1.WorkstationsClient" - }, - "method": { - "shortName": "CreateWorkstationConfig", - "fullName": "google.cloud.workstations.v1.Workstations.CreateWorkstationConfig", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1_generated_Workstations_UpdateWorkstationConfig_async", - "title": "Workstations updateWorkstationConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates an existing workstation configuration.", - "canonical": true, - "file": "workstations.update_workstation_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateWorkstationConfig", - "fullName": "google.cloud.workstations.v1.Workstations.UpdateWorkstationConfig", - "async": true, - "parameters": [ - { - "name": "workstation_config", - "type": ".google.cloud.workstations.v1.WorkstationConfig" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1.WorkstationsClient" - }, - "method": { - "shortName": "UpdateWorkstationConfig", - "fullName": "google.cloud.workstations.v1.Workstations.UpdateWorkstationConfig", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1_generated_Workstations_DeleteWorkstationConfig_async", - "title": "Workstations deleteWorkstationConfig Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified workstation configuration.", - "canonical": true, - "file": "workstations.delete_workstation_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteWorkstationConfig", - "fullName": "google.cloud.workstations.v1.Workstations.DeleteWorkstationConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1.WorkstationsClient" - }, - "method": { - "shortName": "DeleteWorkstationConfig", - "fullName": "google.cloud.workstations.v1.Workstations.DeleteWorkstationConfig", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1_generated_Workstations_GetWorkstation_async", - "title": "Workstations getWorkstation Sample", - "origin": "API_DEFINITION", - "description": " Returns the requested workstation.", - "canonical": true, - "file": "workstations.get_workstation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetWorkstation", - "fullName": "google.cloud.workstations.v1.Workstations.GetWorkstation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.workstations.v1.Workstation", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1.WorkstationsClient" - }, - "method": { - "shortName": "GetWorkstation", - "fullName": "google.cloud.workstations.v1.Workstations.GetWorkstation", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1_generated_Workstations_ListWorkstations_async", - "title": "Workstations listWorkstations Sample", - "origin": "API_DEFINITION", - "description": " Returns all Workstations using the specified workstation configuration.", - "canonical": true, - "file": "workstations.list_workstations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListWorkstations", - "fullName": "google.cloud.workstations.v1.Workstations.ListWorkstations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.workstations.v1.ListWorkstationsResponse", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1.WorkstationsClient" - }, - "method": { - "shortName": "ListWorkstations", - "fullName": "google.cloud.workstations.v1.Workstations.ListWorkstations", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1_generated_Workstations_ListUsableWorkstations_async", - "title": "Workstations listUsableWorkstations Sample", - "origin": "API_DEFINITION", - "description": " Returns all workstations using the specified workstation configuration on which the caller has the \"workstations.workstations.use\" permission.", - "canonical": true, - "file": "workstations.list_usable_workstations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListUsableWorkstations", - "fullName": "google.cloud.workstations.v1.Workstations.ListUsableWorkstations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.workstations.v1.ListUsableWorkstationsResponse", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1.WorkstationsClient" - }, - "method": { - "shortName": "ListUsableWorkstations", - "fullName": "google.cloud.workstations.v1.Workstations.ListUsableWorkstations", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1_generated_Workstations_CreateWorkstation_async", - "title": "Workstations createWorkstation Sample", - "origin": "API_DEFINITION", - "description": " Creates a new workstation.", - "canonical": true, - "file": "workstations.create_workstation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateWorkstation", - "fullName": "google.cloud.workstations.v1.Workstations.CreateWorkstation", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "workstation_id", - "type": "TYPE_STRING" - }, - { - "name": "workstation", - "type": ".google.cloud.workstations.v1.Workstation" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1.WorkstationsClient" - }, - "method": { - "shortName": "CreateWorkstation", - "fullName": "google.cloud.workstations.v1.Workstations.CreateWorkstation", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1_generated_Workstations_UpdateWorkstation_async", - "title": "Workstations updateWorkstation Sample", - "origin": "API_DEFINITION", - "description": " Updates an existing workstation.", - "canonical": true, - "file": "workstations.update_workstation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateWorkstation", - "fullName": "google.cloud.workstations.v1.Workstations.UpdateWorkstation", - "async": true, - "parameters": [ - { - "name": "workstation", - "type": ".google.cloud.workstations.v1.Workstation" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1.WorkstationsClient" - }, - "method": { - "shortName": "UpdateWorkstation", - "fullName": "google.cloud.workstations.v1.Workstations.UpdateWorkstation", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1_generated_Workstations_DeleteWorkstation_async", - "title": "Workstations deleteWorkstation Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified workstation.", - "canonical": true, - "file": "workstations.delete_workstation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteWorkstation", - "fullName": "google.cloud.workstations.v1.Workstations.DeleteWorkstation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1.WorkstationsClient" - }, - "method": { - "shortName": "DeleteWorkstation", - "fullName": "google.cloud.workstations.v1.Workstations.DeleteWorkstation", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1_generated_Workstations_StartWorkstation_async", - "title": "Workstations startWorkstation Sample", - "origin": "API_DEFINITION", - "description": " Starts running a workstation so that users can connect to it.", - "canonical": true, - "file": "workstations.start_workstation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StartWorkstation", - "fullName": "google.cloud.workstations.v1.Workstations.StartWorkstation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1.WorkstationsClient" - }, - "method": { - "shortName": "StartWorkstation", - "fullName": "google.cloud.workstations.v1.Workstations.StartWorkstation", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1_generated_Workstations_StopWorkstation_async", - "title": "Workstations stopWorkstation Sample", - "origin": "API_DEFINITION", - "description": " Stops running a workstation, reducing costs.", - "canonical": true, - "file": "workstations.stop_workstation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StopWorkstation", - "fullName": "google.cloud.workstations.v1.Workstations.StopWorkstation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1.WorkstationsClient" - }, - "method": { - "shortName": "StopWorkstation", - "fullName": "google.cloud.workstations.v1.Workstations.StopWorkstation", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1_generated_Workstations_GenerateAccessToken_async", - "title": "Workstations generateAccessToken Sample", - "origin": "API_DEFINITION", - "description": " Returns a short-lived credential that can be used to send authenticated and authorized traffic to a workstation.", - "canonical": true, - "file": "workstations.generate_access_token.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateAccessToken", - "fullName": "google.cloud.workstations.v1.Workstations.GenerateAccessToken", - "async": true, - "parameters": [ - { - "name": "expire_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "ttl", - "type": ".google.protobuf.Duration" - }, - { - "name": "workstation", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.workstations.v1.GenerateAccessTokenResponse", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1.WorkstationsClient" - }, - "method": { - "shortName": "GenerateAccessToken", - "fullName": "google.cloud.workstations.v1.Workstations.GenerateAccessToken", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1.Workstations" - } - } - } - } - ] -} diff --git a/packages/google-cloud-workstations/samples/generated/v1beta/snippet_metadata_google.cloud.workstations.v1beta.json b/packages/google-cloud-workstations/samples/generated/v1beta/snippet_metadata_google.cloud.workstations.v1beta.json deleted file mode 100644 index e964d5c90767..000000000000 --- a/packages/google-cloud-workstations/samples/generated/v1beta/snippet_metadata_google.cloud.workstations.v1beta.json +++ /dev/null @@ -1,983 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-workstations", - "version": "2.2.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.cloud.workstations.v1beta", - "version": "v1beta" - } - ] - }, - "snippets": [ - { - "regionTag": "workstations_v1beta_generated_Workstations_GetWorkstationCluster_async", - "title": "Workstations getWorkstationCluster Sample", - "origin": "API_DEFINITION", - "description": " Returns the requested workstation cluster.", - "canonical": true, - "file": "workstations.get_workstation_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetWorkstationCluster", - "fullName": "google.cloud.workstations.v1beta.Workstations.GetWorkstationCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.workstations.v1beta.WorkstationCluster", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1beta.WorkstationsClient" - }, - "method": { - "shortName": "GetWorkstationCluster", - "fullName": "google.cloud.workstations.v1beta.Workstations.GetWorkstationCluster", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1beta.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1beta_generated_Workstations_ListWorkstationClusters_async", - "title": "Workstations listWorkstationClusters Sample", - "origin": "API_DEFINITION", - "description": " Returns all workstation clusters in the specified location.", - "canonical": true, - "file": "workstations.list_workstation_clusters.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListWorkstationClusters", - "fullName": "google.cloud.workstations.v1beta.Workstations.ListWorkstationClusters", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.workstations.v1beta.ListWorkstationClustersResponse", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1beta.WorkstationsClient" - }, - "method": { - "shortName": "ListWorkstationClusters", - "fullName": "google.cloud.workstations.v1beta.Workstations.ListWorkstationClusters", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1beta.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1beta_generated_Workstations_CreateWorkstationCluster_async", - "title": "Workstations createWorkstationCluster Sample", - "origin": "API_DEFINITION", - "description": " Creates a new workstation cluster.", - "canonical": true, - "file": "workstations.create_workstation_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateWorkstationCluster", - "fullName": "google.cloud.workstations.v1beta.Workstations.CreateWorkstationCluster", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "workstation_cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "workstation_cluster", - "type": ".google.cloud.workstations.v1beta.WorkstationCluster" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1beta.WorkstationsClient" - }, - "method": { - "shortName": "CreateWorkstationCluster", - "fullName": "google.cloud.workstations.v1beta.Workstations.CreateWorkstationCluster", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1beta.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1beta_generated_Workstations_UpdateWorkstationCluster_async", - "title": "Workstations updateWorkstationCluster Sample", - "origin": "API_DEFINITION", - "description": " Updates an existing workstation cluster.", - "canonical": true, - "file": "workstations.update_workstation_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateWorkstationCluster", - "fullName": "google.cloud.workstations.v1beta.Workstations.UpdateWorkstationCluster", - "async": true, - "parameters": [ - { - "name": "workstation_cluster", - "type": ".google.cloud.workstations.v1beta.WorkstationCluster" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1beta.WorkstationsClient" - }, - "method": { - "shortName": "UpdateWorkstationCluster", - "fullName": "google.cloud.workstations.v1beta.Workstations.UpdateWorkstationCluster", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1beta.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1beta_generated_Workstations_DeleteWorkstationCluster_async", - "title": "Workstations deleteWorkstationCluster Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified workstation cluster.", - "canonical": true, - "file": "workstations.delete_workstation_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteWorkstationCluster", - "fullName": "google.cloud.workstations.v1beta.Workstations.DeleteWorkstationCluster", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1beta.WorkstationsClient" - }, - "method": { - "shortName": "DeleteWorkstationCluster", - "fullName": "google.cloud.workstations.v1beta.Workstations.DeleteWorkstationCluster", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1beta.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1beta_generated_Workstations_GetWorkstationConfig_async", - "title": "Workstations getWorkstationConfig Sample", - "origin": "API_DEFINITION", - "description": " Returns the requested workstation configuration.", - "canonical": true, - "file": "workstations.get_workstation_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetWorkstationConfig", - "fullName": "google.cloud.workstations.v1beta.Workstations.GetWorkstationConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.workstations.v1beta.WorkstationConfig", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1beta.WorkstationsClient" - }, - "method": { - "shortName": "GetWorkstationConfig", - "fullName": "google.cloud.workstations.v1beta.Workstations.GetWorkstationConfig", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1beta.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1beta_generated_Workstations_ListWorkstationConfigs_async", - "title": "Workstations listWorkstationConfigs Sample", - "origin": "API_DEFINITION", - "description": " Returns all workstation configurations in the specified cluster.", - "canonical": true, - "file": "workstations.list_workstation_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListWorkstationConfigs", - "fullName": "google.cloud.workstations.v1beta.Workstations.ListWorkstationConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.workstations.v1beta.ListWorkstationConfigsResponse", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1beta.WorkstationsClient" - }, - "method": { - "shortName": "ListWorkstationConfigs", - "fullName": "google.cloud.workstations.v1beta.Workstations.ListWorkstationConfigs", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1beta.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1beta_generated_Workstations_ListUsableWorkstationConfigs_async", - "title": "Workstations listUsableWorkstationConfigs Sample", - "origin": "API_DEFINITION", - "description": " Returns all workstation configurations in the specified cluster on which the caller has the \"workstations.workstation.create\" permission.", - "canonical": true, - "file": "workstations.list_usable_workstation_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListUsableWorkstationConfigs", - "fullName": "google.cloud.workstations.v1beta.Workstations.ListUsableWorkstationConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.workstations.v1beta.ListUsableWorkstationConfigsResponse", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1beta.WorkstationsClient" - }, - "method": { - "shortName": "ListUsableWorkstationConfigs", - "fullName": "google.cloud.workstations.v1beta.Workstations.ListUsableWorkstationConfigs", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1beta.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1beta_generated_Workstations_CreateWorkstationConfig_async", - "title": "Workstations createWorkstationConfig Sample", - "origin": "API_DEFINITION", - "description": " Creates a new workstation configuration.", - "canonical": true, - "file": "workstations.create_workstation_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateWorkstationConfig", - "fullName": "google.cloud.workstations.v1beta.Workstations.CreateWorkstationConfig", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "workstation_config_id", - "type": "TYPE_STRING" - }, - { - "name": "workstation_config", - "type": ".google.cloud.workstations.v1beta.WorkstationConfig" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1beta.WorkstationsClient" - }, - "method": { - "shortName": "CreateWorkstationConfig", - "fullName": "google.cloud.workstations.v1beta.Workstations.CreateWorkstationConfig", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1beta.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1beta_generated_Workstations_UpdateWorkstationConfig_async", - "title": "Workstations updateWorkstationConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates an existing workstation configuration.", - "canonical": true, - "file": "workstations.update_workstation_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateWorkstationConfig", - "fullName": "google.cloud.workstations.v1beta.Workstations.UpdateWorkstationConfig", - "async": true, - "parameters": [ - { - "name": "workstation_config", - "type": ".google.cloud.workstations.v1beta.WorkstationConfig" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1beta.WorkstationsClient" - }, - "method": { - "shortName": "UpdateWorkstationConfig", - "fullName": "google.cloud.workstations.v1beta.Workstations.UpdateWorkstationConfig", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1beta.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1beta_generated_Workstations_DeleteWorkstationConfig_async", - "title": "Workstations deleteWorkstationConfig Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified workstation configuration.", - "canonical": true, - "file": "workstations.delete_workstation_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteWorkstationConfig", - "fullName": "google.cloud.workstations.v1beta.Workstations.DeleteWorkstationConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1beta.WorkstationsClient" - }, - "method": { - "shortName": "DeleteWorkstationConfig", - "fullName": "google.cloud.workstations.v1beta.Workstations.DeleteWorkstationConfig", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1beta.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1beta_generated_Workstations_GetWorkstation_async", - "title": "Workstations getWorkstation Sample", - "origin": "API_DEFINITION", - "description": " Returns the requested workstation.", - "canonical": true, - "file": "workstations.get_workstation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetWorkstation", - "fullName": "google.cloud.workstations.v1beta.Workstations.GetWorkstation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.workstations.v1beta.Workstation", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1beta.WorkstationsClient" - }, - "method": { - "shortName": "GetWorkstation", - "fullName": "google.cloud.workstations.v1beta.Workstations.GetWorkstation", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1beta.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1beta_generated_Workstations_ListWorkstations_async", - "title": "Workstations listWorkstations Sample", - "origin": "API_DEFINITION", - "description": " Returns all Workstations using the specified workstation configuration.", - "canonical": true, - "file": "workstations.list_workstations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListWorkstations", - "fullName": "google.cloud.workstations.v1beta.Workstations.ListWorkstations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.workstations.v1beta.ListWorkstationsResponse", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1beta.WorkstationsClient" - }, - "method": { - "shortName": "ListWorkstations", - "fullName": "google.cloud.workstations.v1beta.Workstations.ListWorkstations", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1beta.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1beta_generated_Workstations_ListUsableWorkstations_async", - "title": "Workstations listUsableWorkstations Sample", - "origin": "API_DEFINITION", - "description": " Returns all workstations using the specified workstation configuration on which the caller has the \"workstations.workstations.use\" permission.", - "canonical": true, - "file": "workstations.list_usable_workstations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListUsableWorkstations", - "fullName": "google.cloud.workstations.v1beta.Workstations.ListUsableWorkstations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.workstations.v1beta.ListUsableWorkstationsResponse", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1beta.WorkstationsClient" - }, - "method": { - "shortName": "ListUsableWorkstations", - "fullName": "google.cloud.workstations.v1beta.Workstations.ListUsableWorkstations", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1beta.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1beta_generated_Workstations_CreateWorkstation_async", - "title": "Workstations createWorkstation Sample", - "origin": "API_DEFINITION", - "description": " Creates a new workstation.", - "canonical": true, - "file": "workstations.create_workstation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateWorkstation", - "fullName": "google.cloud.workstations.v1beta.Workstations.CreateWorkstation", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "workstation_id", - "type": "TYPE_STRING" - }, - { - "name": "workstation", - "type": ".google.cloud.workstations.v1beta.Workstation" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1beta.WorkstationsClient" - }, - "method": { - "shortName": "CreateWorkstation", - "fullName": "google.cloud.workstations.v1beta.Workstations.CreateWorkstation", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1beta.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1beta_generated_Workstations_UpdateWorkstation_async", - "title": "Workstations updateWorkstation Sample", - "origin": "API_DEFINITION", - "description": " Updates an existing workstation.", - "canonical": true, - "file": "workstations.update_workstation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateWorkstation", - "fullName": "google.cloud.workstations.v1beta.Workstations.UpdateWorkstation", - "async": true, - "parameters": [ - { - "name": "workstation", - "type": ".google.cloud.workstations.v1beta.Workstation" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1beta.WorkstationsClient" - }, - "method": { - "shortName": "UpdateWorkstation", - "fullName": "google.cloud.workstations.v1beta.Workstations.UpdateWorkstation", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1beta.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1beta_generated_Workstations_DeleteWorkstation_async", - "title": "Workstations deleteWorkstation Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified workstation.", - "canonical": true, - "file": "workstations.delete_workstation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteWorkstation", - "fullName": "google.cloud.workstations.v1beta.Workstations.DeleteWorkstation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1beta.WorkstationsClient" - }, - "method": { - "shortName": "DeleteWorkstation", - "fullName": "google.cloud.workstations.v1beta.Workstations.DeleteWorkstation", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1beta.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1beta_generated_Workstations_StartWorkstation_async", - "title": "Workstations startWorkstation Sample", - "origin": "API_DEFINITION", - "description": " Starts running a workstation so that users can connect to it.", - "canonical": true, - "file": "workstations.start_workstation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StartWorkstation", - "fullName": "google.cloud.workstations.v1beta.Workstations.StartWorkstation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1beta.WorkstationsClient" - }, - "method": { - "shortName": "StartWorkstation", - "fullName": "google.cloud.workstations.v1beta.Workstations.StartWorkstation", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1beta.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1beta_generated_Workstations_StopWorkstation_async", - "title": "Workstations stopWorkstation Sample", - "origin": "API_DEFINITION", - "description": " Stops running a workstation, reducing costs.", - "canonical": true, - "file": "workstations.stop_workstation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StopWorkstation", - "fullName": "google.cloud.workstations.v1beta.Workstations.StopWorkstation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1beta.WorkstationsClient" - }, - "method": { - "shortName": "StopWorkstation", - "fullName": "google.cloud.workstations.v1beta.Workstations.StopWorkstation", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1beta.Workstations" - } - } - } - }, - { - "regionTag": "workstations_v1beta_generated_Workstations_GenerateAccessToken_async", - "title": "Workstations generateAccessToken Sample", - "origin": "API_DEFINITION", - "description": " Returns a short-lived credential that can be used to send authenticated and authorized traffic to a workstation.", - "canonical": true, - "file": "workstations.generate_access_token.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateAccessToken", - "fullName": "google.cloud.workstations.v1beta.Workstations.GenerateAccessToken", - "async": true, - "parameters": [ - { - "name": "expire_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "ttl", - "type": ".google.protobuf.Duration" - }, - { - "name": "workstation", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.cloud.workstations.v1beta.GenerateAccessTokenResponse", - "client": { - "shortName": "WorkstationsClient", - "fullName": "google.cloud.workstations.v1beta.WorkstationsClient" - }, - "method": { - "shortName": "GenerateAccessToken", - "fullName": "google.cloud.workstations.v1beta.Workstations.GenerateAccessToken", - "service": { - "shortName": "Workstations", - "fullName": "google.cloud.workstations.v1beta.Workstations" - } - } - } - } - ] -} diff --git a/packages/google-container/samples/generated/v1/snippet_metadata_google.container.v1.json b/packages/google-container/samples/generated/v1/snippet_metadata_google.container.v1.json deleted file mode 100644 index 39c0c1af7211..000000000000 --- a/packages/google-container/samples/generated/v1/snippet_metadata_google.container.v1.json +++ /dev/null @@ -1,2059 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-container", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.container.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "container_v1_generated_ClusterManager_ListClusters_async", - "title": "ClusterManager listClusters Sample", - "origin": "API_DEFINITION", - "description": " Lists all clusters owned by a project in either the specified zone or all zones.", - "canonical": true, - "file": "cluster_manager.list_clusters.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListClusters", - "fullName": "google.container.v1.ClusterManager.ListClusters", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1.ListClustersResponse", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" - }, - "method": { - "shortName": "ListClusters", - "fullName": "google.container.v1.ClusterManager.ListClusters", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_GetCluster_async", - "title": "ClusterManager getCluster Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a specific cluster.", - "canonical": true, - "file": "cluster_manager.get_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCluster", - "fullName": "google.container.v1.ClusterManager.GetCluster", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1.Cluster", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" - }, - "method": { - "shortName": "GetCluster", - "fullName": "google.container.v1.ClusterManager.GetCluster", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_CreateCluster_async", - "title": "ClusterManager createCluster Sample", - "origin": "API_DEFINITION", - "description": " Creates a cluster, consisting of the specified number and type of Google Compute Engine instances. By default, the cluster is created in the project's [default network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). One firewall is added for the cluster. After cluster creation, the kubelet creates routes for each node to allow the containers on that node to communicate with all other instances in the cluster. Finally, an entry is added to the project's global metadata indicating which CIDR range the cluster is using.", - "canonical": true, - "file": "cluster_manager.create_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCluster", - "fullName": "google.container.v1.ClusterManager.CreateCluster", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster", - "type": ".google.container.v1.Cluster" - }, - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" - }, - "method": { - "shortName": "CreateCluster", - "fullName": "google.container.v1.ClusterManager.CreateCluster", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_UpdateCluster_async", - "title": "ClusterManager updateCluster Sample", - "origin": "API_DEFINITION", - "description": " Updates the settings of a specific cluster.", - "canonical": true, - "file": "cluster_manager.update_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCluster", - "fullName": "google.container.v1.ClusterManager.UpdateCluster", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "update", - "type": ".google.container.v1.ClusterUpdate" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" - }, - "method": { - "shortName": "UpdateCluster", - "fullName": "google.container.v1.ClusterManager.UpdateCluster", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_UpdateNodePool_async", - "title": "ClusterManager updateNodePool Sample", - "origin": "API_DEFINITION", - "description": " Updates the version and/or image type for the specified node pool.", - "canonical": true, - "file": "cluster_manager.update_node_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 241, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateNodePool", - "fullName": "google.container.v1.ClusterManager.UpdateNodePool", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "node_pool_id", - "type": "TYPE_STRING" - }, - { - "name": "node_version", - "type": "TYPE_STRING" - }, - { - "name": "image_type", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "locations", - "type": "TYPE_STRING[]" - }, - { - "name": "workload_metadata_config", - "type": ".google.container.v1.WorkloadMetadataConfig" - }, - { - "name": "upgrade_settings", - "type": ".google.container.v1.NodePool.UpgradeSettings" - }, - { - "name": "tags", - "type": ".google.container.v1.NetworkTags" - }, - { - "name": "taints", - "type": ".google.container.v1.NodeTaints" - }, - { - "name": "labels", - "type": ".google.container.v1.NodeLabels" - }, - { - "name": "linux_node_config", - "type": ".google.container.v1.LinuxNodeConfig" - }, - { - "name": "kubelet_config", - "type": ".google.container.v1.NodeKubeletConfig" - }, - { - "name": "node_network_config", - "type": ".google.container.v1.NodeNetworkConfig" - }, - { - "name": "gcfs_config", - "type": ".google.container.v1.GcfsConfig" - }, - { - "name": "confidential_nodes", - "type": ".google.container.v1.ConfidentialNodes" - }, - { - "name": "gvnic", - "type": ".google.container.v1.VirtualNIC" - }, - { - "name": "etag", - "type": "TYPE_STRING" - }, - { - "name": "fast_socket", - "type": ".google.container.v1.FastSocket" - }, - { - "name": "logging_config", - "type": ".google.container.v1.NodePoolLoggingConfig" - }, - { - "name": "resource_labels", - "type": ".google.container.v1.ResourceLabels" - }, - { - "name": "windows_node_config", - "type": ".google.container.v1.WindowsNodeConfig" - }, - { - "name": "accelerators", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "machine_type", - "type": "TYPE_STRING" - }, - { - "name": "disk_type", - "type": "TYPE_STRING" - }, - { - "name": "disk_size_gb", - "type": "TYPE_INT64" - }, - { - "name": "resource_manager_tags", - "type": ".google.container.v1.ResourceManagerTags" - }, - { - "name": "containerd_config", - "type": ".google.container.v1.ContainerdConfig" - }, - { - "name": "queued_provisioning", - "type": ".google.container.v1.NodePool.QueuedProvisioning" - }, - { - "name": "storage_pools", - "type": "TYPE_STRING[]" - }, - { - "name": "max_run_duration", - "type": ".google.protobuf.Duration" - }, - { - "name": "flex_start", - "type": "TYPE_BOOL" - }, - { - "name": "boot_disk", - "type": ".google.container.v1.BootDisk" - }, - { - "name": "node_drain_config", - "type": ".google.container.v1.NodePool.NodeDrainConfig" - }, - { - "name": "consolidation_delay", - "type": ".google.protobuf.Duration" - }, - { - "name": "taint_config", - "type": ".google.container.v1.TaintConfig" - } - ], - "resultType": ".google.container.v1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" - }, - "method": { - "shortName": "UpdateNodePool", - "fullName": "google.container.v1.ClusterManager.UpdateNodePool", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_SetNodePoolAutoscaling_async", - "title": "ClusterManager setNodePoolAutoscaling Sample", - "origin": "API_DEFINITION", - "description": " Sets the autoscaling settings for the specified node pool.", - "canonical": true, - "file": "cluster_manager.set_node_pool_autoscaling.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetNodePoolAutoscaling", - "fullName": "google.container.v1.ClusterManager.SetNodePoolAutoscaling", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "node_pool_id", - "type": "TYPE_STRING" - }, - { - "name": "autoscaling", - "type": ".google.container.v1.NodePoolAutoscaling" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" - }, - "method": { - "shortName": "SetNodePoolAutoscaling", - "fullName": "google.container.v1.ClusterManager.SetNodePoolAutoscaling", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_SetLoggingService_async", - "title": "ClusterManager setLoggingService Sample", - "origin": "API_DEFINITION", - "description": " Sets the logging service for a specific cluster.", - "canonical": true, - "file": "cluster_manager.set_logging_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetLoggingService", - "fullName": "google.container.v1.ClusterManager.SetLoggingService", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "logging_service", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" - }, - "method": { - "shortName": "SetLoggingService", - "fullName": "google.container.v1.ClusterManager.SetLoggingService", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_SetMonitoringService_async", - "title": "ClusterManager setMonitoringService Sample", - "origin": "API_DEFINITION", - "description": " Sets the monitoring service for a specific cluster.", - "canonical": true, - "file": "cluster_manager.set_monitoring_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetMonitoringService", - "fullName": "google.container.v1.ClusterManager.SetMonitoringService", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "monitoring_service", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" - }, - "method": { - "shortName": "SetMonitoringService", - "fullName": "google.container.v1.ClusterManager.SetMonitoringService", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_SetAddonsConfig_async", - "title": "ClusterManager setAddonsConfig Sample", - "origin": "API_DEFINITION", - "description": " Sets the addons for a specific cluster.", - "canonical": true, - "file": "cluster_manager.set_addons_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetAddonsConfig", - "fullName": "google.container.v1.ClusterManager.SetAddonsConfig", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "addons_config", - "type": ".google.container.v1.AddonsConfig" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" - }, - "method": { - "shortName": "SetAddonsConfig", - "fullName": "google.container.v1.ClusterManager.SetAddonsConfig", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_SetLocations_async", - "title": "ClusterManager setLocations Sample", - "origin": "API_DEFINITION", - "description": " Sets the locations for a specific cluster. Deprecated. Use [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/update) instead.", - "canonical": true, - "file": "cluster_manager.set_locations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetLocations", - "fullName": "google.container.v1.ClusterManager.SetLocations", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "locations", - "type": "TYPE_STRING[]" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" - }, - "method": { - "shortName": "SetLocations", - "fullName": "google.container.v1.ClusterManager.SetLocations", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_UpdateMaster_async", - "title": "ClusterManager updateMaster Sample", - "origin": "API_DEFINITION", - "description": " Updates the master for a specific cluster.", - "canonical": true, - "file": "cluster_manager.update_master.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateMaster", - "fullName": "google.container.v1.ClusterManager.UpdateMaster", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "master_version", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" - }, - "method": { - "shortName": "UpdateMaster", - "fullName": "google.container.v1.ClusterManager.UpdateMaster", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_SetMasterAuth_async", - "title": "ClusterManager setMasterAuth Sample", - "origin": "API_DEFINITION", - "description": " Sets master auth materials. Currently supports changing the admin password or a specific cluster, either via password generation or explicitly setting the password.", - "canonical": true, - "file": "cluster_manager.set_master_auth.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetMasterAuth", - "fullName": "google.container.v1.ClusterManager.SetMasterAuth", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "action", - "type": ".google.container.v1.SetMasterAuthRequest.Action" - }, - { - "name": "update", - "type": ".google.container.v1.MasterAuth" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" - }, - "method": { - "shortName": "SetMasterAuth", - "fullName": "google.container.v1.ClusterManager.SetMasterAuth", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_DeleteCluster_async", - "title": "ClusterManager deleteCluster Sample", - "origin": "API_DEFINITION", - "description": " Deletes the cluster, including the Kubernetes endpoint and all worker nodes. Firewalls and routes that were configured during cluster creation are also deleted. Other Google Compute Engine resources that might be in use by the cluster, such as load balancer resources, are not deleted if they weren't present when the cluster was initially created.", - "canonical": true, - "file": "cluster_manager.delete_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCluster", - "fullName": "google.container.v1.ClusterManager.DeleteCluster", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" - }, - "method": { - "shortName": "DeleteCluster", - "fullName": "google.container.v1.ClusterManager.DeleteCluster", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_ListOperations_async", - "title": "ClusterManager listOperations Sample", - "origin": "API_DEFINITION", - "description": " Lists all operations in a project in a specific zone or all zones.", - "canonical": true, - "file": "cluster_manager.list_operations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListOperations", - "fullName": "google.container.v1.ClusterManager.ListOperations", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1.ListOperationsResponse", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" - }, - "method": { - "shortName": "ListOperations", - "fullName": "google.container.v1.ClusterManager.ListOperations", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_GetOperation_async", - "title": "ClusterManager getOperation Sample", - "origin": "API_DEFINITION", - "description": " Gets the specified operation.", - "canonical": true, - "file": "cluster_manager.get_operation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetOperation", - "fullName": "google.container.v1.ClusterManager.GetOperation", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "operation_id", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" - }, - "method": { - "shortName": "GetOperation", - "fullName": "google.container.v1.ClusterManager.GetOperation", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_CancelOperation_async", - "title": "ClusterManager cancelOperation Sample", - "origin": "API_DEFINITION", - "description": " Cancels the specified operation.", - "canonical": true, - "file": "cluster_manager.cancel_operation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CancelOperation", - "fullName": "google.container.v1.ClusterManager.CancelOperation", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "operation_id", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" - }, - "method": { - "shortName": "CancelOperation", - "fullName": "google.container.v1.ClusterManager.CancelOperation", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_GetServerConfig_async", - "title": "ClusterManager getServerConfig Sample", - "origin": "API_DEFINITION", - "description": " Returns configuration info about the Google Kubernetes Engine service.", - "canonical": true, - "file": "cluster_manager.get_server_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetServerConfig", - "fullName": "google.container.v1.ClusterManager.GetServerConfig", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1.ServerConfig", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" - }, - "method": { - "shortName": "GetServerConfig", - "fullName": "google.container.v1.ClusterManager.GetServerConfig", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_GetJSONWebKeys_async", - "title": "ClusterManager getJSONWebKeys Sample", - "origin": "API_DEFINITION", - "description": " Gets the public component of the cluster signing keys in JSON Web Key format.", - "canonical": true, - "file": "cluster_manager.get_j_s_o_n_web_keys.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetJSONWebKeys", - "fullName": "google.container.v1.ClusterManager.GetJSONWebKeys", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1.GetJSONWebKeysResponse", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" - }, - "method": { - "shortName": "GetJSONWebKeys", - "fullName": "google.container.v1.ClusterManager.GetJSONWebKeys", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_ListNodePools_async", - "title": "ClusterManager listNodePools Sample", - "origin": "API_DEFINITION", - "description": " Lists the node pools for a cluster.", - "canonical": true, - "file": "cluster_manager.list_node_pools.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListNodePools", - "fullName": "google.container.v1.ClusterManager.ListNodePools", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1.ListNodePoolsResponse", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" - }, - "method": { - "shortName": "ListNodePools", - "fullName": "google.container.v1.ClusterManager.ListNodePools", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_GetNodePool_async", - "title": "ClusterManager getNodePool Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the requested node pool.", - "canonical": true, - "file": "cluster_manager.get_node_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetNodePool", - "fullName": "google.container.v1.ClusterManager.GetNodePool", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "node_pool_id", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1.NodePool", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" - }, - "method": { - "shortName": "GetNodePool", - "fullName": "google.container.v1.ClusterManager.GetNodePool", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_CreateNodePool_async", - "title": "ClusterManager createNodePool Sample", - "origin": "API_DEFINITION", - "description": " Creates a node pool for a cluster.", - "canonical": true, - "file": "cluster_manager.create_node_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateNodePool", - "fullName": "google.container.v1.ClusterManager.CreateNodePool", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "node_pool", - "type": ".google.container.v1.NodePool" - }, - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" - }, - "method": { - "shortName": "CreateNodePool", - "fullName": "google.container.v1.ClusterManager.CreateNodePool", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_DeleteNodePool_async", - "title": "ClusterManager deleteNodePool Sample", - "origin": "API_DEFINITION", - "description": " Deletes a node pool from a cluster.", - "canonical": true, - "file": "cluster_manager.delete_node_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteNodePool", - "fullName": "google.container.v1.ClusterManager.DeleteNodePool", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "node_pool_id", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" - }, - "method": { - "shortName": "DeleteNodePool", - "fullName": "google.container.v1.ClusterManager.DeleteNodePool", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_CompleteNodePoolUpgrade_async", - "title": "ClusterManager completeNodePoolUpgrade Sample", - "origin": "API_DEFINITION", - "description": " CompleteNodePoolUpgrade will signal an on-going node pool upgrade to complete.", - "canonical": true, - "file": "cluster_manager.complete_node_pool_upgrade.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CompleteNodePoolUpgrade", - "fullName": "google.container.v1.ClusterManager.CompleteNodePoolUpgrade", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" - }, - "method": { - "shortName": "CompleteNodePoolUpgrade", - "fullName": "google.container.v1.ClusterManager.CompleteNodePoolUpgrade", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_RollbackNodePoolUpgrade_async", - "title": "ClusterManager rollbackNodePoolUpgrade Sample", - "origin": "API_DEFINITION", - "description": " Rolls back a previously Aborted or Failed NodePool upgrade. This makes no changes if the last upgrade successfully completed.", - "canonical": true, - "file": "cluster_manager.rollback_node_pool_upgrade.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RollbackNodePoolUpgrade", - "fullName": "google.container.v1.ClusterManager.RollbackNodePoolUpgrade", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "node_pool_id", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "respect_pdb", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.container.v1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" - }, - "method": { - "shortName": "RollbackNodePoolUpgrade", - "fullName": "google.container.v1.ClusterManager.RollbackNodePoolUpgrade", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_SetNodePoolManagement_async", - "title": "ClusterManager setNodePoolManagement Sample", - "origin": "API_DEFINITION", - "description": " Sets the NodeManagement options for a node pool.", - "canonical": true, - "file": "cluster_manager.set_node_pool_management.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetNodePoolManagement", - "fullName": "google.container.v1.ClusterManager.SetNodePoolManagement", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "node_pool_id", - "type": "TYPE_STRING" - }, - { - "name": "management", - "type": ".google.container.v1.NodeManagement" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" - }, - "method": { - "shortName": "SetNodePoolManagement", - "fullName": "google.container.v1.ClusterManager.SetNodePoolManagement", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_SetLabels_async", - "title": "ClusterManager setLabels Sample", - "origin": "API_DEFINITION", - "description": " Sets labels on a cluster.", - "canonical": true, - "file": "cluster_manager.set_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetLabels", - "fullName": "google.container.v1.ClusterManager.SetLabels", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "resource_labels", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "label_fingerprint", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" - }, - "method": { - "shortName": "SetLabels", - "fullName": "google.container.v1.ClusterManager.SetLabels", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_SetLegacyAbac_async", - "title": "ClusterManager setLegacyAbac Sample", - "origin": "API_DEFINITION", - "description": " Enables or disables the ABAC authorization mechanism on a cluster.", - "canonical": true, - "file": "cluster_manager.set_legacy_abac.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetLegacyAbac", - "fullName": "google.container.v1.ClusterManager.SetLegacyAbac", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "enabled", - "type": "TYPE_BOOL" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" - }, - "method": { - "shortName": "SetLegacyAbac", - "fullName": "google.container.v1.ClusterManager.SetLegacyAbac", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_StartIPRotation_async", - "title": "ClusterManager startIPRotation Sample", - "origin": "API_DEFINITION", - "description": " Starts master IP rotation.", - "canonical": true, - "file": "cluster_manager.start_i_p_rotation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StartIPRotation", - "fullName": "google.container.v1.ClusterManager.StartIPRotation", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "rotate_credentials", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.container.v1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" - }, - "method": { - "shortName": "StartIPRotation", - "fullName": "google.container.v1.ClusterManager.StartIPRotation", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_CompleteIPRotation_async", - "title": "ClusterManager completeIPRotation Sample", - "origin": "API_DEFINITION", - "description": " Completes master IP rotation.", - "canonical": true, - "file": "cluster_manager.complete_i_p_rotation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CompleteIPRotation", - "fullName": "google.container.v1.ClusterManager.CompleteIPRotation", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" - }, - "method": { - "shortName": "CompleteIPRotation", - "fullName": "google.container.v1.ClusterManager.CompleteIPRotation", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_SetNodePoolSize_async", - "title": "ClusterManager setNodePoolSize Sample", - "origin": "API_DEFINITION", - "description": " Sets the size for a specific node pool. The new size will be used for all replicas, including future replicas created by modifying [NodePool.locations][google.container.v1.NodePool.locations].", - "canonical": true, - "file": "cluster_manager.set_node_pool_size.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetNodePoolSize", - "fullName": "google.container.v1.ClusterManager.SetNodePoolSize", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "node_pool_id", - "type": "TYPE_STRING" - }, - { - "name": "node_count", - "type": "TYPE_INT32" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" - }, - "method": { - "shortName": "SetNodePoolSize", - "fullName": "google.container.v1.ClusterManager.SetNodePoolSize", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_SetNetworkPolicy_async", - "title": "ClusterManager setNetworkPolicy Sample", - "origin": "API_DEFINITION", - "description": " Enables or disables Network Policy for a cluster.", - "canonical": true, - "file": "cluster_manager.set_network_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetNetworkPolicy", - "fullName": "google.container.v1.ClusterManager.SetNetworkPolicy", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "network_policy", - "type": ".google.container.v1.NetworkPolicy" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" - }, - "method": { - "shortName": "SetNetworkPolicy", - "fullName": "google.container.v1.ClusterManager.SetNetworkPolicy", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_SetMaintenancePolicy_async", - "title": "ClusterManager setMaintenancePolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the maintenance policy for a cluster.", - "canonical": true, - "file": "cluster_manager.set_maintenance_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetMaintenancePolicy", - "fullName": "google.container.v1.ClusterManager.SetMaintenancePolicy", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "maintenance_policy", - "type": ".google.container.v1.MaintenancePolicy" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" - }, - "method": { - "shortName": "SetMaintenancePolicy", - "fullName": "google.container.v1.ClusterManager.SetMaintenancePolicy", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_ListUsableSubnetworks_async", - "title": "ClusterManager listUsableSubnetworks Sample", - "origin": "API_DEFINITION", - "description": " Lists subnetworks that are usable for creating clusters in a project.", - "canonical": true, - "file": "cluster_manager.list_usable_subnetworks.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListUsableSubnetworks", - "fullName": "google.container.v1.ClusterManager.ListUsableSubnetworks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1.ListUsableSubnetworksResponse", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" - }, - "method": { - "shortName": "ListUsableSubnetworks", - "fullName": "google.container.v1.ClusterManager.ListUsableSubnetworks", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_CheckAutopilotCompatibility_async", - "title": "ClusterManager checkAutopilotCompatibility Sample", - "origin": "API_DEFINITION", - "description": " Checks the cluster compatibility with Autopilot mode, and returns a list of compatibility issues.", - "canonical": true, - "file": "cluster_manager.check_autopilot_compatibility.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CheckAutopilotCompatibility", - "fullName": "google.container.v1.ClusterManager.CheckAutopilotCompatibility", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1.CheckAutopilotCompatibilityResponse", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" - }, - "method": { - "shortName": "CheckAutopilotCompatibility", - "fullName": "google.container.v1.ClusterManager.CheckAutopilotCompatibility", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_FetchClusterUpgradeInfo_async", - "title": "ClusterManager fetchClusterUpgradeInfo Sample", - "origin": "API_DEFINITION", - "description": " Fetch upgrade information of a specific cluster.", - "canonical": true, - "file": "cluster_manager.fetch_cluster_upgrade_info.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchClusterUpgradeInfo", - "fullName": "google.container.v1.ClusterManager.FetchClusterUpgradeInfo", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "version", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1.ClusterUpgradeInfo", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" - }, - "method": { - "shortName": "FetchClusterUpgradeInfo", - "fullName": "google.container.v1.ClusterManager.FetchClusterUpgradeInfo", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_FetchNodePoolUpgradeInfo_async", - "title": "ClusterManager fetchNodePoolUpgradeInfo Sample", - "origin": "API_DEFINITION", - "description": " Fetch upgrade information of a specific node pool.", - "canonical": true, - "file": "cluster_manager.fetch_node_pool_upgrade_info.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchNodePoolUpgradeInfo", - "fullName": "google.container.v1.ClusterManager.FetchNodePoolUpgradeInfo", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "version", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1.NodePoolUpgradeInfo", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" - }, - "method": { - "shortName": "FetchNodePoolUpgradeInfo", - "fullName": "google.container.v1.ClusterManager.FetchNodePoolUpgradeInfo", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - } - ] -} diff --git a/packages/google-container/samples/generated/v1beta1/snippet_metadata_google.container.v1beta1.json b/packages/google-container/samples/generated/v1beta1/snippet_metadata_google.container.v1beta1.json deleted file mode 100644 index 9fbe49aab6a0..000000000000 --- a/packages/google-container/samples/generated/v1beta1/snippet_metadata_google.container.v1beta1.json +++ /dev/null @@ -1,2151 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-container", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.container.v1beta1", - "version": "v1beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "container_v1beta1_generated_ClusterManager_ListClusters_async", - "title": "ClusterManager listClusters Sample", - "origin": "API_DEFINITION", - "description": " Lists all clusters owned by a project in either the specified zone or all zones.", - "canonical": true, - "file": "cluster_manager.list_clusters.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListClusters", - "fullName": "google.container.v1beta1.ClusterManager.ListClusters", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1beta1.ListClustersResponse", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1beta1.ClusterManagerClient" - }, - "method": { - "shortName": "ListClusters", - "fullName": "google.container.v1beta1.ClusterManager.ListClusters", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1beta1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1beta1_generated_ClusterManager_GetCluster_async", - "title": "ClusterManager getCluster Sample", - "origin": "API_DEFINITION", - "description": " Gets the details for a specific cluster.", - "canonical": true, - "file": "cluster_manager.get_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCluster", - "fullName": "google.container.v1beta1.ClusterManager.GetCluster", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1beta1.Cluster", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1beta1.ClusterManagerClient" - }, - "method": { - "shortName": "GetCluster", - "fullName": "google.container.v1beta1.ClusterManager.GetCluster", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1beta1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1beta1_generated_ClusterManager_CreateCluster_async", - "title": "ClusterManager createCluster Sample", - "origin": "API_DEFINITION", - "description": " Creates a cluster, consisting of the specified number and type of Google Compute Engine instances. By default, the cluster is created in the project's [default network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). One firewall is added for the cluster. After cluster creation, the kubelet creates routes for each node to allow the containers on that node to communicate with all other instances in the cluster. Finally, an entry is added to the project's global metadata indicating which CIDR range the cluster is using.", - "canonical": true, - "file": "cluster_manager.create_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCluster", - "fullName": "google.container.v1beta1.ClusterManager.CreateCluster", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster", - "type": ".google.container.v1beta1.Cluster" - }, - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1beta1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1beta1.ClusterManagerClient" - }, - "method": { - "shortName": "CreateCluster", - "fullName": "google.container.v1beta1.ClusterManager.CreateCluster", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1beta1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1beta1_generated_ClusterManager_UpdateCluster_async", - "title": "ClusterManager updateCluster Sample", - "origin": "API_DEFINITION", - "description": " Updates the settings for a specific cluster.", - "canonical": true, - "file": "cluster_manager.update_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCluster", - "fullName": "google.container.v1beta1.ClusterManager.UpdateCluster", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "update", - "type": ".google.container.v1beta1.ClusterUpdate" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1beta1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1beta1.ClusterManagerClient" - }, - "method": { - "shortName": "UpdateCluster", - "fullName": "google.container.v1beta1.ClusterManager.UpdateCluster", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1beta1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1beta1_generated_ClusterManager_UpdateNodePool_async", - "title": "ClusterManager updateNodePool Sample", - "origin": "API_DEFINITION", - "description": " Updates the version and/or image type of a specific node pool.", - "canonical": true, - "file": "cluster_manager.update_node_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 248, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateNodePool", - "fullName": "google.container.v1beta1.ClusterManager.UpdateNodePool", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "node_pool_id", - "type": "TYPE_STRING" - }, - { - "name": "node_version", - "type": "TYPE_STRING" - }, - { - "name": "image_type", - "type": "TYPE_STRING" - }, - { - "name": "image", - "type": "TYPE_STRING" - }, - { - "name": "image_project", - "type": "TYPE_STRING" - }, - { - "name": "locations", - "type": "TYPE_STRING[]" - }, - { - "name": "workload_metadata_config", - "type": ".google.container.v1beta1.WorkloadMetadataConfig" - }, - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "upgrade_settings", - "type": ".google.container.v1beta1.NodePool.UpgradeSettings" - }, - { - "name": "tags", - "type": ".google.container.v1beta1.NetworkTags" - }, - { - "name": "taints", - "type": ".google.container.v1beta1.NodeTaints" - }, - { - "name": "labels", - "type": ".google.container.v1beta1.NodeLabels" - }, - { - "name": "linux_node_config", - "type": ".google.container.v1beta1.LinuxNodeConfig" - }, - { - "name": "kubelet_config", - "type": ".google.container.v1beta1.NodeKubeletConfig" - }, - { - "name": "node_network_config", - "type": ".google.container.v1beta1.NodeNetworkConfig" - }, - { - "name": "gcfs_config", - "type": ".google.container.v1beta1.GcfsConfig" - }, - { - "name": "confidential_nodes", - "type": ".google.container.v1beta1.ConfidentialNodes" - }, - { - "name": "gvnic", - "type": ".google.container.v1beta1.VirtualNIC" - }, - { - "name": "etag", - "type": "TYPE_STRING" - }, - { - "name": "fast_socket", - "type": ".google.container.v1beta1.FastSocket" - }, - { - "name": "logging_config", - "type": ".google.container.v1beta1.NodePoolLoggingConfig" - }, - { - "name": "resource_labels", - "type": ".google.container.v1beta1.ResourceLabels" - }, - { - "name": "windows_node_config", - "type": ".google.container.v1beta1.WindowsNodeConfig" - }, - { - "name": "accelerators", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "machine_type", - "type": "TYPE_STRING" - }, - { - "name": "disk_type", - "type": "TYPE_STRING" - }, - { - "name": "disk_size_gb", - "type": "TYPE_INT64" - }, - { - "name": "resource_manager_tags", - "type": ".google.container.v1beta1.ResourceManagerTags" - }, - { - "name": "containerd_config", - "type": ".google.container.v1beta1.ContainerdConfig" - }, - { - "name": "queued_provisioning", - "type": ".google.container.v1beta1.NodePool.QueuedProvisioning" - }, - { - "name": "storage_pools", - "type": "TYPE_STRING[]" - }, - { - "name": "max_run_duration", - "type": ".google.protobuf.Duration" - }, - { - "name": "flex_start", - "type": "TYPE_BOOL" - }, - { - "name": "boot_disk", - "type": ".google.container.v1beta1.BootDisk" - }, - { - "name": "node_drain_config", - "type": ".google.container.v1beta1.NodePool.NodeDrainConfig" - }, - { - "name": "consolidation_delay", - "type": ".google.protobuf.Duration" - }, - { - "name": "taint_config", - "type": ".google.container.v1beta1.TaintConfig" - } - ], - "resultType": ".google.container.v1beta1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1beta1.ClusterManagerClient" - }, - "method": { - "shortName": "UpdateNodePool", - "fullName": "google.container.v1beta1.ClusterManager.UpdateNodePool", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1beta1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1beta1_generated_ClusterManager_SetNodePoolAutoscaling_async", - "title": "ClusterManager setNodePoolAutoscaling Sample", - "origin": "API_DEFINITION", - "description": " Sets the autoscaling settings of a specific node pool.", - "canonical": true, - "file": "cluster_manager.set_node_pool_autoscaling.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetNodePoolAutoscaling", - "fullName": "google.container.v1beta1.ClusterManager.SetNodePoolAutoscaling", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "node_pool_id", - "type": "TYPE_STRING" - }, - { - "name": "autoscaling", - "type": ".google.container.v1beta1.NodePoolAutoscaling" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1beta1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1beta1.ClusterManagerClient" - }, - "method": { - "shortName": "SetNodePoolAutoscaling", - "fullName": "google.container.v1beta1.ClusterManager.SetNodePoolAutoscaling", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1beta1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1beta1_generated_ClusterManager_SetLoggingService_async", - "title": "ClusterManager setLoggingService Sample", - "origin": "API_DEFINITION", - "description": " Sets the logging service for a specific cluster.", - "canonical": true, - "file": "cluster_manager.set_logging_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetLoggingService", - "fullName": "google.container.v1beta1.ClusterManager.SetLoggingService", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "logging_service", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1beta1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1beta1.ClusterManagerClient" - }, - "method": { - "shortName": "SetLoggingService", - "fullName": "google.container.v1beta1.ClusterManager.SetLoggingService", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1beta1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1beta1_generated_ClusterManager_SetMonitoringService_async", - "title": "ClusterManager setMonitoringService Sample", - "origin": "API_DEFINITION", - "description": " Sets the monitoring service for a specific cluster.", - "canonical": true, - "file": "cluster_manager.set_monitoring_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetMonitoringService", - "fullName": "google.container.v1beta1.ClusterManager.SetMonitoringService", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "monitoring_service", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1beta1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1beta1.ClusterManagerClient" - }, - "method": { - "shortName": "SetMonitoringService", - "fullName": "google.container.v1beta1.ClusterManager.SetMonitoringService", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1beta1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1beta1_generated_ClusterManager_SetAddonsConfig_async", - "title": "ClusterManager setAddonsConfig Sample", - "origin": "API_DEFINITION", - "description": " Sets the addons for a specific cluster.", - "canonical": true, - "file": "cluster_manager.set_addons_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetAddonsConfig", - "fullName": "google.container.v1beta1.ClusterManager.SetAddonsConfig", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "addons_config", - "type": ".google.container.v1beta1.AddonsConfig" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1beta1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1beta1.ClusterManagerClient" - }, - "method": { - "shortName": "SetAddonsConfig", - "fullName": "google.container.v1beta1.ClusterManager.SetAddonsConfig", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1beta1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1beta1_generated_ClusterManager_SetLocations_async", - "title": "ClusterManager setLocations Sample", - "origin": "API_DEFINITION", - "description": " Sets the locations for a specific cluster. Deprecated. Use [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters/update) instead.", - "canonical": true, - "file": "cluster_manager.set_locations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetLocations", - "fullName": "google.container.v1beta1.ClusterManager.SetLocations", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "locations", - "type": "TYPE_STRING[]" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1beta1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1beta1.ClusterManagerClient" - }, - "method": { - "shortName": "SetLocations", - "fullName": "google.container.v1beta1.ClusterManager.SetLocations", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1beta1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1beta1_generated_ClusterManager_UpdateMaster_async", - "title": "ClusterManager updateMaster Sample", - "origin": "API_DEFINITION", - "description": " Updates the master for a specific cluster.", - "canonical": true, - "file": "cluster_manager.update_master.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateMaster", - "fullName": "google.container.v1beta1.ClusterManager.UpdateMaster", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "master_version", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1beta1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1beta1.ClusterManagerClient" - }, - "method": { - "shortName": "UpdateMaster", - "fullName": "google.container.v1beta1.ClusterManager.UpdateMaster", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1beta1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1beta1_generated_ClusterManager_SetMasterAuth_async", - "title": "ClusterManager setMasterAuth Sample", - "origin": "API_DEFINITION", - "description": " Sets master auth materials. Currently supports changing the admin password or a specific cluster, either via password generation or explicitly setting the password.", - "canonical": true, - "file": "cluster_manager.set_master_auth.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetMasterAuth", - "fullName": "google.container.v1beta1.ClusterManager.SetMasterAuth", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "action", - "type": ".google.container.v1beta1.SetMasterAuthRequest.Action" - }, - { - "name": "update", - "type": ".google.container.v1beta1.MasterAuth" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1beta1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1beta1.ClusterManagerClient" - }, - "method": { - "shortName": "SetMasterAuth", - "fullName": "google.container.v1beta1.ClusterManager.SetMasterAuth", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1beta1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1beta1_generated_ClusterManager_DeleteCluster_async", - "title": "ClusterManager deleteCluster Sample", - "origin": "API_DEFINITION", - "description": " Deletes the cluster, including the Kubernetes endpoint and all worker nodes. Firewalls and routes that were configured during cluster creation are also deleted. Other Google Compute Engine resources that might be in use by the cluster, such as load balancer resources, are not deleted if they weren't present when the cluster was initially created.", - "canonical": true, - "file": "cluster_manager.delete_cluster.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCluster", - "fullName": "google.container.v1beta1.ClusterManager.DeleteCluster", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1beta1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1beta1.ClusterManagerClient" - }, - "method": { - "shortName": "DeleteCluster", - "fullName": "google.container.v1beta1.ClusterManager.DeleteCluster", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1beta1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1beta1_generated_ClusterManager_ListOperations_async", - "title": "ClusterManager listOperations Sample", - "origin": "API_DEFINITION", - "description": " Lists all operations in a project in the specified zone or all zones.", - "canonical": true, - "file": "cluster_manager.list_operations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListOperations", - "fullName": "google.container.v1beta1.ClusterManager.ListOperations", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1beta1.ListOperationsResponse", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1beta1.ClusterManagerClient" - }, - "method": { - "shortName": "ListOperations", - "fullName": "google.container.v1beta1.ClusterManager.ListOperations", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1beta1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1beta1_generated_ClusterManager_GetOperation_async", - "title": "ClusterManager getOperation Sample", - "origin": "API_DEFINITION", - "description": " Gets the specified operation.", - "canonical": true, - "file": "cluster_manager.get_operation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetOperation", - "fullName": "google.container.v1beta1.ClusterManager.GetOperation", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "operation_id", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1beta1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1beta1.ClusterManagerClient" - }, - "method": { - "shortName": "GetOperation", - "fullName": "google.container.v1beta1.ClusterManager.GetOperation", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1beta1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1beta1_generated_ClusterManager_CancelOperation_async", - "title": "ClusterManager cancelOperation Sample", - "origin": "API_DEFINITION", - "description": " Cancels the specified operation.", - "canonical": true, - "file": "cluster_manager.cancel_operation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CancelOperation", - "fullName": "google.container.v1beta1.ClusterManager.CancelOperation", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "operation_id", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1beta1.ClusterManagerClient" - }, - "method": { - "shortName": "CancelOperation", - "fullName": "google.container.v1beta1.ClusterManager.CancelOperation", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1beta1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1beta1_generated_ClusterManager_GetServerConfig_async", - "title": "ClusterManager getServerConfig Sample", - "origin": "API_DEFINITION", - "description": " Returns configuration info about the Google Kubernetes Engine service.", - "canonical": true, - "file": "cluster_manager.get_server_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetServerConfig", - "fullName": "google.container.v1beta1.ClusterManager.GetServerConfig", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1beta1.ServerConfig", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1beta1.ClusterManagerClient" - }, - "method": { - "shortName": "GetServerConfig", - "fullName": "google.container.v1beta1.ClusterManager.GetServerConfig", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1beta1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1beta1_generated_ClusterManager_GetJSONWebKeys_async", - "title": "ClusterManager getJSONWebKeys Sample", - "origin": "API_DEFINITION", - "description": " Gets the public component of the cluster signing keys in JSON Web Key format.", - "canonical": true, - "file": "cluster_manager.get_j_s_o_n_web_keys.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetJSONWebKeys", - "fullName": "google.container.v1beta1.ClusterManager.GetJSONWebKeys", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1beta1.GetJSONWebKeysResponse", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1beta1.ClusterManagerClient" - }, - "method": { - "shortName": "GetJSONWebKeys", - "fullName": "google.container.v1beta1.ClusterManager.GetJSONWebKeys", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1beta1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1beta1_generated_ClusterManager_ListNodePools_async", - "title": "ClusterManager listNodePools Sample", - "origin": "API_DEFINITION", - "description": " Lists the node pools for a cluster.", - "canonical": true, - "file": "cluster_manager.list_node_pools.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListNodePools", - "fullName": "google.container.v1beta1.ClusterManager.ListNodePools", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1beta1.ListNodePoolsResponse", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1beta1.ClusterManagerClient" - }, - "method": { - "shortName": "ListNodePools", - "fullName": "google.container.v1beta1.ClusterManager.ListNodePools", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1beta1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1beta1_generated_ClusterManager_GetNodePool_async", - "title": "ClusterManager getNodePool Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the requested node pool.", - "canonical": true, - "file": "cluster_manager.get_node_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetNodePool", - "fullName": "google.container.v1beta1.ClusterManager.GetNodePool", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "node_pool_id", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1beta1.NodePool", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1beta1.ClusterManagerClient" - }, - "method": { - "shortName": "GetNodePool", - "fullName": "google.container.v1beta1.ClusterManager.GetNodePool", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1beta1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1beta1_generated_ClusterManager_CreateNodePool_async", - "title": "ClusterManager createNodePool Sample", - "origin": "API_DEFINITION", - "description": " Creates a node pool for a cluster.", - "canonical": true, - "file": "cluster_manager.create_node_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateNodePool", - "fullName": "google.container.v1beta1.ClusterManager.CreateNodePool", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "node_pool", - "type": ".google.container.v1beta1.NodePool" - }, - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1beta1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1beta1.ClusterManagerClient" - }, - "method": { - "shortName": "CreateNodePool", - "fullName": "google.container.v1beta1.ClusterManager.CreateNodePool", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1beta1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1beta1_generated_ClusterManager_DeleteNodePool_async", - "title": "ClusterManager deleteNodePool Sample", - "origin": "API_DEFINITION", - "description": " Deletes a node pool from a cluster.", - "canonical": true, - "file": "cluster_manager.delete_node_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteNodePool", - "fullName": "google.container.v1beta1.ClusterManager.DeleteNodePool", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "node_pool_id", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1beta1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1beta1.ClusterManagerClient" - }, - "method": { - "shortName": "DeleteNodePool", - "fullName": "google.container.v1beta1.ClusterManager.DeleteNodePool", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1beta1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1beta1_generated_ClusterManager_CompleteNodePoolUpgrade_async", - "title": "ClusterManager completeNodePoolUpgrade Sample", - "origin": "API_DEFINITION", - "description": " CompleteNodePoolUpgrade will signal an on-going node pool upgrade to complete.", - "canonical": true, - "file": "cluster_manager.complete_node_pool_upgrade.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CompleteNodePoolUpgrade", - "fullName": "google.container.v1beta1.ClusterManager.CompleteNodePoolUpgrade", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1beta1.ClusterManagerClient" - }, - "method": { - "shortName": "CompleteNodePoolUpgrade", - "fullName": "google.container.v1beta1.ClusterManager.CompleteNodePoolUpgrade", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1beta1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1beta1_generated_ClusterManager_RollbackNodePoolUpgrade_async", - "title": "ClusterManager rollbackNodePoolUpgrade Sample", - "origin": "API_DEFINITION", - "description": " Rolls back a previously Aborted or Failed NodePool upgrade. This makes no changes if the last upgrade successfully completed.", - "canonical": true, - "file": "cluster_manager.rollback_node_pool_upgrade.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RollbackNodePoolUpgrade", - "fullName": "google.container.v1beta1.ClusterManager.RollbackNodePoolUpgrade", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "node_pool_id", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "respect_pdb", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.container.v1beta1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1beta1.ClusterManagerClient" - }, - "method": { - "shortName": "RollbackNodePoolUpgrade", - "fullName": "google.container.v1beta1.ClusterManager.RollbackNodePoolUpgrade", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1beta1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1beta1_generated_ClusterManager_SetNodePoolManagement_async", - "title": "ClusterManager setNodePoolManagement Sample", - "origin": "API_DEFINITION", - "description": " Sets the NodeManagement options for a node pool.", - "canonical": true, - "file": "cluster_manager.set_node_pool_management.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetNodePoolManagement", - "fullName": "google.container.v1beta1.ClusterManager.SetNodePoolManagement", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "node_pool_id", - "type": "TYPE_STRING" - }, - { - "name": "management", - "type": ".google.container.v1beta1.NodeManagement" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1beta1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1beta1.ClusterManagerClient" - }, - "method": { - "shortName": "SetNodePoolManagement", - "fullName": "google.container.v1beta1.ClusterManager.SetNodePoolManagement", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1beta1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1beta1_generated_ClusterManager_SetLabels_async", - "title": "ClusterManager setLabels Sample", - "origin": "API_DEFINITION", - "description": " Sets labels on a cluster.", - "canonical": true, - "file": "cluster_manager.set_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetLabels", - "fullName": "google.container.v1beta1.ClusterManager.SetLabels", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "resource_labels", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "label_fingerprint", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1beta1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1beta1.ClusterManagerClient" - }, - "method": { - "shortName": "SetLabels", - "fullName": "google.container.v1beta1.ClusterManager.SetLabels", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1beta1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1beta1_generated_ClusterManager_SetLegacyAbac_async", - "title": "ClusterManager setLegacyAbac Sample", - "origin": "API_DEFINITION", - "description": " Enables or disables the ABAC authorization mechanism on a cluster.", - "canonical": true, - "file": "cluster_manager.set_legacy_abac.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetLegacyAbac", - "fullName": "google.container.v1beta1.ClusterManager.SetLegacyAbac", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "enabled", - "type": "TYPE_BOOL" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1beta1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1beta1.ClusterManagerClient" - }, - "method": { - "shortName": "SetLegacyAbac", - "fullName": "google.container.v1beta1.ClusterManager.SetLegacyAbac", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1beta1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1beta1_generated_ClusterManager_StartIPRotation_async", - "title": "ClusterManager startIPRotation Sample", - "origin": "API_DEFINITION", - "description": " Starts master IP rotation.", - "canonical": true, - "file": "cluster_manager.start_i_p_rotation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StartIPRotation", - "fullName": "google.container.v1beta1.ClusterManager.StartIPRotation", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "rotate_credentials", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.container.v1beta1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1beta1.ClusterManagerClient" - }, - "method": { - "shortName": "StartIPRotation", - "fullName": "google.container.v1beta1.ClusterManager.StartIPRotation", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1beta1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1beta1_generated_ClusterManager_CompleteIPRotation_async", - "title": "ClusterManager completeIPRotation Sample", - "origin": "API_DEFINITION", - "description": " Completes master IP rotation.", - "canonical": true, - "file": "cluster_manager.complete_i_p_rotation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CompleteIPRotation", - "fullName": "google.container.v1beta1.ClusterManager.CompleteIPRotation", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1beta1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1beta1.ClusterManagerClient" - }, - "method": { - "shortName": "CompleteIPRotation", - "fullName": "google.container.v1beta1.ClusterManager.CompleteIPRotation", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1beta1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1beta1_generated_ClusterManager_SetNodePoolSize_async", - "title": "ClusterManager setNodePoolSize Sample", - "origin": "API_DEFINITION", - "description": " SetNodePoolSizeRequest sets the size of a node pool. The new size will be used for all replicas, including future replicas created by modifying [NodePool.locations][google.container.v1beta1.NodePool.locations].", - "canonical": true, - "file": "cluster_manager.set_node_pool_size.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetNodePoolSize", - "fullName": "google.container.v1beta1.ClusterManager.SetNodePoolSize", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "node_pool_id", - "type": "TYPE_STRING" - }, - { - "name": "node_count", - "type": "TYPE_INT32" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1beta1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1beta1.ClusterManagerClient" - }, - "method": { - "shortName": "SetNodePoolSize", - "fullName": "google.container.v1beta1.ClusterManager.SetNodePoolSize", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1beta1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1beta1_generated_ClusterManager_SetNetworkPolicy_async", - "title": "ClusterManager setNetworkPolicy Sample", - "origin": "API_DEFINITION", - "description": " Enables or disables Network Policy for a cluster.", - "canonical": true, - "file": "cluster_manager.set_network_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetNetworkPolicy", - "fullName": "google.container.v1beta1.ClusterManager.SetNetworkPolicy", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "network_policy", - "type": ".google.container.v1beta1.NetworkPolicy" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1beta1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1beta1.ClusterManagerClient" - }, - "method": { - "shortName": "SetNetworkPolicy", - "fullName": "google.container.v1beta1.ClusterManager.SetNetworkPolicy", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1beta1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1beta1_generated_ClusterManager_SetMaintenancePolicy_async", - "title": "ClusterManager setMaintenancePolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the maintenance policy for a cluster.", - "canonical": true, - "file": "cluster_manager.set_maintenance_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetMaintenancePolicy", - "fullName": "google.container.v1beta1.ClusterManager.SetMaintenancePolicy", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "maintenance_policy", - "type": ".google.container.v1beta1.MaintenancePolicy" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1beta1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1beta1.ClusterManagerClient" - }, - "method": { - "shortName": "SetMaintenancePolicy", - "fullName": "google.container.v1beta1.ClusterManager.SetMaintenancePolicy", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1beta1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1beta1_generated_ClusterManager_ListUsableSubnetworks_async", - "title": "ClusterManager listUsableSubnetworks Sample", - "origin": "API_DEFINITION", - "description": " Lists subnetworks that can be used for creating clusters in a project.", - "canonical": true, - "file": "cluster_manager.list_usable_subnetworks.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListUsableSubnetworks", - "fullName": "google.container.v1beta1.ClusterManager.ListUsableSubnetworks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1beta1.ListUsableSubnetworksResponse", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1beta1.ClusterManagerClient" - }, - "method": { - "shortName": "ListUsableSubnetworks", - "fullName": "google.container.v1beta1.ClusterManager.ListUsableSubnetworks", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1beta1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1beta1_generated_ClusterManager_CheckAutopilotCompatibility_async", - "title": "ClusterManager checkAutopilotCompatibility Sample", - "origin": "API_DEFINITION", - "description": " Checks the cluster compatibility with Autopilot mode, and returns a list of compatibility issues.", - "canonical": true, - "file": "cluster_manager.check_autopilot_compatibility.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CheckAutopilotCompatibility", - "fullName": "google.container.v1beta1.ClusterManager.CheckAutopilotCompatibility", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1beta1.CheckAutopilotCompatibilityResponse", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1beta1.ClusterManagerClient" - }, - "method": { - "shortName": "CheckAutopilotCompatibility", - "fullName": "google.container.v1beta1.ClusterManager.CheckAutopilotCompatibility", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1beta1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1beta1_generated_ClusterManager_ListLocations_async", - "title": "ClusterManager listLocations Sample", - "origin": "API_DEFINITION", - "description": " Fetches locations that offer Google Kubernetes Engine.", - "canonical": true, - "file": "cluster_manager.list_locations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListLocations", - "fullName": "google.container.v1beta1.ClusterManager.ListLocations", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1beta1.ListLocationsResponse", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1beta1.ClusterManagerClient" - }, - "method": { - "shortName": "ListLocations", - "fullName": "google.container.v1beta1.ClusterManager.ListLocations", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1beta1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1beta1_generated_ClusterManager_FetchClusterUpgradeInfo_async", - "title": "ClusterManager fetchClusterUpgradeInfo Sample", - "origin": "API_DEFINITION", - "description": " Fetch upgrade information of a specific cluster.", - "canonical": true, - "file": "cluster_manager.fetch_cluster_upgrade_info.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchClusterUpgradeInfo", - "fullName": "google.container.v1beta1.ClusterManager.FetchClusterUpgradeInfo", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "version", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1beta1.ClusterUpgradeInfo", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1beta1.ClusterManagerClient" - }, - "method": { - "shortName": "FetchClusterUpgradeInfo", - "fullName": "google.container.v1beta1.ClusterManager.FetchClusterUpgradeInfo", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1beta1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1beta1_generated_ClusterManager_FetchNodePoolUpgradeInfo_async", - "title": "ClusterManager fetchNodePoolUpgradeInfo Sample", - "origin": "API_DEFINITION", - "description": " Fetch upgrade information of a specific node pool.", - "canonical": true, - "file": "cluster_manager.fetch_node_pool_upgrade_info.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchNodePoolUpgradeInfo", - "fullName": "google.container.v1beta1.ClusterManager.FetchNodePoolUpgradeInfo", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "version", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1beta1.NodePoolUpgradeInfo", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1beta1.ClusterManagerClient" - }, - "method": { - "shortName": "FetchNodePoolUpgradeInfo", - "fullName": "google.container.v1beta1.ClusterManager.FetchNodePoolUpgradeInfo", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1beta1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1beta1_generated_ClusterManager_CompleteControlPlaneUpgrade_async", - "title": "ClusterManager completeControlPlaneUpgrade Sample", - "origin": "API_DEFINITION", - "description": " CompleteControlPlaneUpgrade completes the rollback-safe upgrade by performing the step two upgrade for a specific cluster.", - "canonical": true, - "file": "cluster_manager.complete_control_plane_upgrade.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CompleteControlPlaneUpgrade", - "fullName": "google.container.v1beta1.ClusterManager.CompleteControlPlaneUpgrade", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "version", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1beta1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1beta1.ClusterManagerClient" - }, - "method": { - "shortName": "CompleteControlPlaneUpgrade", - "fullName": "google.container.v1beta1.ClusterManager.CompleteControlPlaneUpgrade", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1beta1.ClusterManager" - } - } - } - } - ] -} diff --git a/packages/google-dataflow/samples/generated/v1beta3/snippet_metadata_google.dataflow.v1beta3.json b/packages/google-dataflow/samples/generated/v1beta3/snippet_metadata_google.dataflow.v1beta3.json deleted file mode 100644 index 7790a0d7e3ad..000000000000 --- a/packages/google-dataflow/samples/generated/v1beta3/snippet_metadata_google.dataflow.v1beta3.json +++ /dev/null @@ -1,1019 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-dataflow", - "version": "4.1.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.dataflow.v1beta3", - "version": "v1beta3" - } - ] - }, - "snippets": [ - { - "regionTag": "dataflow_v1beta3_generated_FlexTemplatesService_LaunchFlexTemplate_async", - "title": "FlexTemplatesService launchFlexTemplate Sample", - "origin": "API_DEFINITION", - "description": " Launch a job with a FlexTemplate.", - "canonical": true, - "file": "flex_templates_service.launch_flex_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "LaunchFlexTemplate", - "fullName": "google.dataflow.v1beta3.FlexTemplatesService.LaunchFlexTemplate", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "launch_parameter", - "type": ".google.dataflow.v1beta3.LaunchFlexTemplateParameter" - }, - { - "name": "location", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.dataflow.v1beta3.LaunchFlexTemplateResponse", - "client": { - "shortName": "FlexTemplatesServiceClient", - "fullName": "google.dataflow.v1beta3.FlexTemplatesServiceClient" - }, - "method": { - "shortName": "LaunchFlexTemplate", - "fullName": "google.dataflow.v1beta3.FlexTemplatesService.LaunchFlexTemplate", - "service": { - "shortName": "FlexTemplatesService", - "fullName": "google.dataflow.v1beta3.FlexTemplatesService" - } - } - } - }, - { - "regionTag": "dataflow_v1beta3_generated_JobsV1Beta3_CreateJob_async", - "title": "FlexTemplatesService createJob Sample", - "origin": "API_DEFINITION", - "description": " Creates a Dataflow job. To create a job, we recommend using `projects.locations.jobs.create` with a [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using `projects.jobs.create` is not recommended, as your job will always start in `us-central1`. Do not enter confidential information when you supply string values using the API.", - "canonical": true, - "file": "jobs_v1_beta3.create_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateJob", - "fullName": "google.dataflow.v1beta3.JobsV1Beta3.CreateJob", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "job", - "type": ".google.dataflow.v1beta3.Job" - }, - { - "name": "view", - "type": ".google.dataflow.v1beta3.JobView" - }, - { - "name": "replace_job_id", - "type": "TYPE_STRING" - }, - { - "name": "location", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.dataflow.v1beta3.Job", - "client": { - "shortName": "JobsV1Beta3Client", - "fullName": "google.dataflow.v1beta3.JobsV1Beta3Client" - }, - "method": { - "shortName": "CreateJob", - "fullName": "google.dataflow.v1beta3.JobsV1Beta3.CreateJob", - "service": { - "shortName": "JobsV1Beta3", - "fullName": "google.dataflow.v1beta3.JobsV1Beta3" - } - } - } - }, - { - "regionTag": "dataflow_v1beta3_generated_JobsV1Beta3_GetJob_async", - "title": "FlexTemplatesService getJob Sample", - "origin": "API_DEFINITION", - "description": " Gets the state of the specified Cloud Dataflow job. To get the state of a job, we recommend using `projects.locations.jobs.get` with a [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using `projects.jobs.get` is not recommended, as you can only get the state of jobs that are running in `us-central1`.", - "canonical": true, - "file": "jobs_v1_beta3.get_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetJob", - "fullName": "google.dataflow.v1beta3.JobsV1Beta3.GetJob", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "job_id", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.dataflow.v1beta3.JobView" - }, - { - "name": "location", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.dataflow.v1beta3.Job", - "client": { - "shortName": "JobsV1Beta3Client", - "fullName": "google.dataflow.v1beta3.JobsV1Beta3Client" - }, - "method": { - "shortName": "GetJob", - "fullName": "google.dataflow.v1beta3.JobsV1Beta3.GetJob", - "service": { - "shortName": "JobsV1Beta3", - "fullName": "google.dataflow.v1beta3.JobsV1Beta3" - } - } - } - }, - { - "regionTag": "dataflow_v1beta3_generated_JobsV1Beta3_UpdateJob_async", - "title": "FlexTemplatesService updateJob Sample", - "origin": "API_DEFINITION", - "description": " Updates the state of an existing Cloud Dataflow job. To update the state of an existing job, we recommend using `projects.locations.jobs.update` with a [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using `projects.jobs.update` is not recommended, as you can only update the state of jobs that are running in `us-central1`.", - "canonical": true, - "file": "jobs_v1_beta3.update_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateJob", - "fullName": "google.dataflow.v1beta3.JobsV1Beta3.UpdateJob", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "job_id", - "type": "TYPE_STRING" - }, - { - "name": "job", - "type": ".google.dataflow.v1beta3.Job" - }, - { - "name": "location", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.dataflow.v1beta3.Job", - "client": { - "shortName": "JobsV1Beta3Client", - "fullName": "google.dataflow.v1beta3.JobsV1Beta3Client" - }, - "method": { - "shortName": "UpdateJob", - "fullName": "google.dataflow.v1beta3.JobsV1Beta3.UpdateJob", - "service": { - "shortName": "JobsV1Beta3", - "fullName": "google.dataflow.v1beta3.JobsV1Beta3" - } - } - } - }, - { - "regionTag": "dataflow_v1beta3_generated_JobsV1Beta3_ListJobs_async", - "title": "FlexTemplatesService listJobs Sample", - "origin": "API_DEFINITION", - "description": " List the jobs of a project. To list the jobs of a project in a region, we recommend using `projects.locations.jobs.list` with a [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). To list the all jobs across all regions, use `projects.jobs.aggregated`. Using `projects.jobs.list` is not recommended, because you can only get the list of jobs that are running in `us-central1`. `projects.locations.jobs.list` and `projects.jobs.list` support filtering the list of jobs by name. Filtering by name isn't supported by `projects.jobs.aggregated`.", - "canonical": true, - "file": "jobs_v1_beta3.list_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListJobs", - "fullName": "google.dataflow.v1beta3.JobsV1Beta3.ListJobs", - "async": true, - "parameters": [ - { - "name": "filter", - "type": ".google.dataflow.v1beta3.ListJobsRequest.Filter" - }, - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.dataflow.v1beta3.JobView" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "location", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.dataflow.v1beta3.ListJobsResponse", - "client": { - "shortName": "JobsV1Beta3Client", - "fullName": "google.dataflow.v1beta3.JobsV1Beta3Client" - }, - "method": { - "shortName": "ListJobs", - "fullName": "google.dataflow.v1beta3.JobsV1Beta3.ListJobs", - "service": { - "shortName": "JobsV1Beta3", - "fullName": "google.dataflow.v1beta3.JobsV1Beta3" - } - } - } - }, - { - "regionTag": "dataflow_v1beta3_generated_JobsV1Beta3_AggregatedListJobs_async", - "title": "FlexTemplatesService aggregatedListJobs Sample", - "origin": "API_DEFINITION", - "description": " List the jobs of a project across all regions. **Note:** This method doesn't support filtering the list of jobs by name.", - "canonical": true, - "file": "jobs_v1_beta3.aggregated_list_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AggregatedListJobs", - "fullName": "google.dataflow.v1beta3.JobsV1Beta3.AggregatedListJobs", - "async": true, - "parameters": [ - { - "name": "filter", - "type": ".google.dataflow.v1beta3.ListJobsRequest.Filter" - }, - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.dataflow.v1beta3.JobView" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "location", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.dataflow.v1beta3.ListJobsResponse", - "client": { - "shortName": "JobsV1Beta3Client", - "fullName": "google.dataflow.v1beta3.JobsV1Beta3Client" - }, - "method": { - "shortName": "AggregatedListJobs", - "fullName": "google.dataflow.v1beta3.JobsV1Beta3.AggregatedListJobs", - "service": { - "shortName": "JobsV1Beta3", - "fullName": "google.dataflow.v1beta3.JobsV1Beta3" - } - } - } - }, - { - "regionTag": "dataflow_v1beta3_generated_JobsV1Beta3_CheckActiveJobs_async", - "title": "FlexTemplatesService checkActiveJobs Sample", - "origin": "API_DEFINITION", - "description": " Check for existence of active jobs in the given project across all regions.", - "canonical": true, - "file": "jobs_v1_beta3.check_active_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 52, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CheckActiveJobs", - "fullName": "google.dataflow.v1beta3.JobsV1Beta3.CheckActiveJobs", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.dataflow.v1beta3.CheckActiveJobsResponse", - "client": { - "shortName": "JobsV1Beta3Client", - "fullName": "google.dataflow.v1beta3.JobsV1Beta3Client" - }, - "method": { - "shortName": "CheckActiveJobs", - "fullName": "google.dataflow.v1beta3.JobsV1Beta3.CheckActiveJobs", - "service": { - "shortName": "JobsV1Beta3", - "fullName": "google.dataflow.v1beta3.JobsV1Beta3" - } - } - } - }, - { - "regionTag": "dataflow_v1beta3_generated_JobsV1Beta3_SnapshotJob_async", - "title": "FlexTemplatesService snapshotJob Sample", - "origin": "API_DEFINITION", - "description": " Snapshot the state of a streaming job.", - "canonical": true, - "file": "jobs_v1_beta3.snapshot_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SnapshotJob", - "fullName": "google.dataflow.v1beta3.JobsV1Beta3.SnapshotJob", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "job_id", - "type": "TYPE_STRING" - }, - { - "name": "ttl", - "type": ".google.protobuf.Duration" - }, - { - "name": "location", - "type": "TYPE_STRING" - }, - { - "name": "snapshot_sources", - "type": "TYPE_BOOL" - }, - { - "name": "description", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.dataflow.v1beta3.Snapshot", - "client": { - "shortName": "JobsV1Beta3Client", - "fullName": "google.dataflow.v1beta3.JobsV1Beta3Client" - }, - "method": { - "shortName": "SnapshotJob", - "fullName": "google.dataflow.v1beta3.JobsV1Beta3.SnapshotJob", - "service": { - "shortName": "JobsV1Beta3", - "fullName": "google.dataflow.v1beta3.JobsV1Beta3" - } - } - } - }, - { - "regionTag": "dataflow_v1beta3_generated_MessagesV1Beta3_ListJobMessages_async", - "title": "FlexTemplatesService listJobMessages Sample", - "origin": "API_DEFINITION", - "description": " Request the job status. To request the status of a job, we recommend using `projects.locations.jobs.messages.list` with a [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using `projects.jobs.messages.list` is not recommended, as you can only request the status of jobs that are running in `us-central1`.", - "canonical": true, - "file": "messages_v1_beta3.list_job_messages.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 90, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListJobMessages", - "fullName": "google.dataflow.v1beta3.MessagesV1Beta3.ListJobMessages", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "job_id", - "type": "TYPE_STRING" - }, - { - "name": "minimum_importance", - "type": ".google.dataflow.v1beta3.JobMessageImportance" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "start_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "end_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "location", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.dataflow.v1beta3.ListJobMessagesResponse", - "client": { - "shortName": "MessagesV1Beta3Client", - "fullName": "google.dataflow.v1beta3.MessagesV1Beta3Client" - }, - "method": { - "shortName": "ListJobMessages", - "fullName": "google.dataflow.v1beta3.MessagesV1Beta3.ListJobMessages", - "service": { - "shortName": "MessagesV1Beta3", - "fullName": "google.dataflow.v1beta3.MessagesV1Beta3" - } - } - } - }, - { - "regionTag": "dataflow_v1beta3_generated_MetricsV1Beta3_GetJobMetrics_async", - "title": "FlexTemplatesService getJobMetrics Sample", - "origin": "API_DEFINITION", - "description": " Request the job status. To request the status of a job, we recommend using `projects.locations.jobs.getMetrics` with a [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using `projects.jobs.getMetrics` is not recommended, as you can only request the status of jobs that are running in `us-central1`.", - "canonical": true, - "file": "metrics_v1_beta3.get_job_metrics.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetJobMetrics", - "fullName": "google.dataflow.v1beta3.MetricsV1Beta3.GetJobMetrics", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "job_id", - "type": "TYPE_STRING" - }, - { - "name": "start_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "location", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.dataflow.v1beta3.JobMetrics", - "client": { - "shortName": "MetricsV1Beta3Client", - "fullName": "google.dataflow.v1beta3.MetricsV1Beta3Client" - }, - "method": { - "shortName": "GetJobMetrics", - "fullName": "google.dataflow.v1beta3.MetricsV1Beta3.GetJobMetrics", - "service": { - "shortName": "MetricsV1Beta3", - "fullName": "google.dataflow.v1beta3.MetricsV1Beta3" - } - } - } - }, - { - "regionTag": "dataflow_v1beta3_generated_MetricsV1Beta3_GetJobExecutionDetails_async", - "title": "FlexTemplatesService getJobExecutionDetails Sample", - "origin": "API_DEFINITION", - "description": " Request detailed information about the execution status of the job. EXPERIMENTAL. This API is subject to change or removal without notice.", - "canonical": true, - "file": "metrics_v1_beta3.get_job_execution_details.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetJobExecutionDetails", - "fullName": "google.dataflow.v1beta3.MetricsV1Beta3.GetJobExecutionDetails", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "job_id", - "type": "TYPE_STRING" - }, - { - "name": "location", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.dataflow.v1beta3.JobExecutionDetails", - "client": { - "shortName": "MetricsV1Beta3Client", - "fullName": "google.dataflow.v1beta3.MetricsV1Beta3Client" - }, - "method": { - "shortName": "GetJobExecutionDetails", - "fullName": "google.dataflow.v1beta3.MetricsV1Beta3.GetJobExecutionDetails", - "service": { - "shortName": "MetricsV1Beta3", - "fullName": "google.dataflow.v1beta3.MetricsV1Beta3" - } - } - } - }, - { - "regionTag": "dataflow_v1beta3_generated_MetricsV1Beta3_GetStageExecutionDetails_async", - "title": "FlexTemplatesService getStageExecutionDetails Sample", - "origin": "API_DEFINITION", - "description": " Request detailed information about the execution status of a stage of the job. EXPERIMENTAL. This API is subject to change or removal without notice.", - "canonical": true, - "file": "metrics_v1_beta3.get_stage_execution_details.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 88, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetStageExecutionDetails", - "fullName": "google.dataflow.v1beta3.MetricsV1Beta3.GetStageExecutionDetails", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "job_id", - "type": "TYPE_STRING" - }, - { - "name": "location", - "type": "TYPE_STRING" - }, - { - "name": "stage_id", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "start_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "end_time", - "type": ".google.protobuf.Timestamp" - } - ], - "resultType": ".google.dataflow.v1beta3.StageExecutionDetails", - "client": { - "shortName": "MetricsV1Beta3Client", - "fullName": "google.dataflow.v1beta3.MetricsV1Beta3Client" - }, - "method": { - "shortName": "GetStageExecutionDetails", - "fullName": "google.dataflow.v1beta3.MetricsV1Beta3.GetStageExecutionDetails", - "service": { - "shortName": "MetricsV1Beta3", - "fullName": "google.dataflow.v1beta3.MetricsV1Beta3" - } - } - } - }, - { - "regionTag": "dataflow_v1beta3_generated_SnapshotsV1Beta3_GetSnapshot_async", - "title": "FlexTemplatesService getSnapshot Sample", - "origin": "API_DEFINITION", - "description": " Gets information about a snapshot.", - "canonical": true, - "file": "snapshots_v1_beta3.get_snapshot.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSnapshot", - "fullName": "google.dataflow.v1beta3.SnapshotsV1Beta3.GetSnapshot", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "snapshot_id", - "type": "TYPE_STRING" - }, - { - "name": "location", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.dataflow.v1beta3.Snapshot", - "client": { - "shortName": "SnapshotsV1Beta3Client", - "fullName": "google.dataflow.v1beta3.SnapshotsV1Beta3Client" - }, - "method": { - "shortName": "GetSnapshot", - "fullName": "google.dataflow.v1beta3.SnapshotsV1Beta3.GetSnapshot", - "service": { - "shortName": "SnapshotsV1Beta3", - "fullName": "google.dataflow.v1beta3.SnapshotsV1Beta3" - } - } - } - }, - { - "regionTag": "dataflow_v1beta3_generated_SnapshotsV1Beta3_DeleteSnapshot_async", - "title": "FlexTemplatesService deleteSnapshot Sample", - "origin": "API_DEFINITION", - "description": " Deletes a snapshot.", - "canonical": true, - "file": "snapshots_v1_beta3.delete_snapshot.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSnapshot", - "fullName": "google.dataflow.v1beta3.SnapshotsV1Beta3.DeleteSnapshot", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "snapshot_id", - "type": "TYPE_STRING" - }, - { - "name": "location", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.dataflow.v1beta3.DeleteSnapshotResponse", - "client": { - "shortName": "SnapshotsV1Beta3Client", - "fullName": "google.dataflow.v1beta3.SnapshotsV1Beta3Client" - }, - "method": { - "shortName": "DeleteSnapshot", - "fullName": "google.dataflow.v1beta3.SnapshotsV1Beta3.DeleteSnapshot", - "service": { - "shortName": "SnapshotsV1Beta3", - "fullName": "google.dataflow.v1beta3.SnapshotsV1Beta3" - } - } - } - }, - { - "regionTag": "dataflow_v1beta3_generated_SnapshotsV1Beta3_ListSnapshots_async", - "title": "FlexTemplatesService listSnapshots Sample", - "origin": "API_DEFINITION", - "description": " Lists snapshots.", - "canonical": true, - "file": "snapshots_v1_beta3.list_snapshots.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSnapshots", - "fullName": "google.dataflow.v1beta3.SnapshotsV1Beta3.ListSnapshots", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "job_id", - "type": "TYPE_STRING" - }, - { - "name": "location", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.dataflow.v1beta3.ListSnapshotsResponse", - "client": { - "shortName": "SnapshotsV1Beta3Client", - "fullName": "google.dataflow.v1beta3.SnapshotsV1Beta3Client" - }, - "method": { - "shortName": "ListSnapshots", - "fullName": "google.dataflow.v1beta3.SnapshotsV1Beta3.ListSnapshots", - "service": { - "shortName": "SnapshotsV1Beta3", - "fullName": "google.dataflow.v1beta3.SnapshotsV1Beta3" - } - } - } - }, - { - "regionTag": "dataflow_v1beta3_generated_TemplatesService_CreateJobFromTemplate_async", - "title": "FlexTemplatesService createJobFromTemplate Sample", - "origin": "API_DEFINITION", - "description": " Creates a Cloud Dataflow job from a template. Do not enter confidential information when you supply string values using the API. To create a job, we recommend using `projects.locations.templates.create` with a [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using `projects.templates.create` is not recommended, because your job will always start in `us-central1`.", - "canonical": true, - "file": "templates_service.create_job_from_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateJobFromTemplate", - "fullName": "google.dataflow.v1beta3.TemplatesService.CreateJobFromTemplate", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "job_name", - "type": "TYPE_STRING" - }, - { - "name": "gcs_path", - "type": "TYPE_STRING" - }, - { - "name": "parameters", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "environment", - "type": ".google.dataflow.v1beta3.RuntimeEnvironment" - }, - { - "name": "location", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.dataflow.v1beta3.Job", - "client": { - "shortName": "TemplatesServiceClient", - "fullName": "google.dataflow.v1beta3.TemplatesServiceClient" - }, - "method": { - "shortName": "CreateJobFromTemplate", - "fullName": "google.dataflow.v1beta3.TemplatesService.CreateJobFromTemplate", - "service": { - "shortName": "TemplatesService", - "fullName": "google.dataflow.v1beta3.TemplatesService" - } - } - } - }, - { - "regionTag": "dataflow_v1beta3_generated_TemplatesService_LaunchTemplate_async", - "title": "FlexTemplatesService launchTemplate Sample", - "origin": "API_DEFINITION", - "description": " Launches a template. To launch a template, we recommend using `projects.locations.templates.launch` with a [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using `projects.templates.launch` is not recommended, because jobs launched from the template will always start in `us-central1`.", - "canonical": true, - "file": "templates_service.launch_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "LaunchTemplate", - "fullName": "google.dataflow.v1beta3.TemplatesService.LaunchTemplate", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "gcs_path", - "type": "TYPE_STRING" - }, - { - "name": "dynamic_template", - "type": ".google.dataflow.v1beta3.DynamicTemplateLaunchParams" - }, - { - "name": "launch_parameters", - "type": ".google.dataflow.v1beta3.LaunchTemplateParameters" - }, - { - "name": "location", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.dataflow.v1beta3.LaunchTemplateResponse", - "client": { - "shortName": "TemplatesServiceClient", - "fullName": "google.dataflow.v1beta3.TemplatesServiceClient" - }, - "method": { - "shortName": "LaunchTemplate", - "fullName": "google.dataflow.v1beta3.TemplatesService.LaunchTemplate", - "service": { - "shortName": "TemplatesService", - "fullName": "google.dataflow.v1beta3.TemplatesService" - } - } - } - }, - { - "regionTag": "dataflow_v1beta3_generated_TemplatesService_GetTemplate_async", - "title": "FlexTemplatesService getTemplate Sample", - "origin": "API_DEFINITION", - "description": " Get the template associated with a template. To get the template, we recommend using `projects.locations.templates.get` with a [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using `projects.templates.get` is not recommended, because only templates that are running in `us-central1` are retrieved.", - "canonical": true, - "file": "templates_service.get_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTemplate", - "fullName": "google.dataflow.v1beta3.TemplatesService.GetTemplate", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "gcs_path", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.dataflow.v1beta3.GetTemplateRequest.TemplateView" - }, - { - "name": "location", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.dataflow.v1beta3.GetTemplateResponse", - "client": { - "shortName": "TemplatesServiceClient", - "fullName": "google.dataflow.v1beta3.TemplatesServiceClient" - }, - "method": { - "shortName": "GetTemplate", - "fullName": "google.dataflow.v1beta3.TemplatesService.GetTemplate", - "service": { - "shortName": "TemplatesService", - "fullName": "google.dataflow.v1beta3.TemplatesService" - } - } - } - } - ] -} diff --git a/packages/google-devicesandservices-health/samples/generated/v4/snippet_metadata_google.devicesandservices.health.v4.json b/packages/google-devicesandservices-health/samples/generated/v4/snippet_metadata_google.devicesandservices.health.v4.json deleted file mode 100644 index 8a4665550d33..000000000000 --- a/packages/google-devicesandservices-health/samples/generated/v4/snippet_metadata_google.devicesandservices.health.v4.json +++ /dev/null @@ -1,1159 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-health", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.devicesandservices.health.v4", - "version": "v4" - } - ] - }, - "snippets": [ - { - "regionTag": "health_v4_generated_DataPointsService_GetDataPoint_async", - "title": "DataPointsService getDataPoint Sample", - "origin": "API_DEFINITION", - "description": " Get a single identifyable data point.", - "canonical": true, - "file": "data_points_service.get_data_point.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDataPoint", - "fullName": "google.devicesandservices.health.v4.DataPointsService.GetDataPoint", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devicesandservices.health.v4.DataPoint", - "client": { - "shortName": "DataPointsServiceClient", - "fullName": "google.devicesandservices.health.v4.DataPointsServiceClient" - }, - "method": { - "shortName": "GetDataPoint", - "fullName": "google.devicesandservices.health.v4.DataPointsService.GetDataPoint", - "service": { - "shortName": "DataPointsService", - "fullName": "google.devicesandservices.health.v4.DataPointsService" - } - } - } - }, - { - "regionTag": "health_v4_generated_DataPointsService_ListDataPoints_async", - "title": "DataPointsService listDataPoints Sample", - "origin": "API_DEFINITION", - "description": " Query user health and fitness data points.", - "canonical": true, - "file": "data_points_service.list_data_points.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 164, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDataPoints", - "fullName": "google.devicesandservices.health.v4.DataPointsService.ListDataPoints", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devicesandservices.health.v4.ListDataPointsResponse", - "client": { - "shortName": "DataPointsServiceClient", - "fullName": "google.devicesandservices.health.v4.DataPointsServiceClient" - }, - "method": { - "shortName": "ListDataPoints", - "fullName": "google.devicesandservices.health.v4.DataPointsService.ListDataPoints", - "service": { - "shortName": "DataPointsService", - "fullName": "google.devicesandservices.health.v4.DataPointsService" - } - } - } - }, - { - "regionTag": "health_v4_generated_DataPointsService_CreateDataPoint_async", - "title": "DataPointsService createDataPoint Sample", - "origin": "API_DEFINITION", - "description": " Creates a single identifiable data point.", - "canonical": true, - "file": "data_points_service.create_data_point.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDataPoint", - "fullName": "google.devicesandservices.health.v4.DataPointsService.CreateDataPoint", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "data_point", - "type": ".google.devicesandservices.health.v4.DataPoint" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataPointsServiceClient", - "fullName": "google.devicesandservices.health.v4.DataPointsServiceClient" - }, - "method": { - "shortName": "CreateDataPoint", - "fullName": "google.devicesandservices.health.v4.DataPointsService.CreateDataPoint", - "service": { - "shortName": "DataPointsService", - "fullName": "google.devicesandservices.health.v4.DataPointsService" - } - } - } - }, - { - "regionTag": "health_v4_generated_DataPointsService_UpdateDataPoint_async", - "title": "DataPointsService updateDataPoint Sample", - "origin": "API_DEFINITION", - "description": " Updates a single identifiable data point. If a data point with the specified `name` is not found, the request will fail.", - "canonical": true, - "file": "data_points_service.update_data_point.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDataPoint", - "fullName": "google.devicesandservices.health.v4.DataPointsService.UpdateDataPoint", - "async": true, - "parameters": [ - { - "name": "data_point", - "type": ".google.devicesandservices.health.v4.DataPoint" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataPointsServiceClient", - "fullName": "google.devicesandservices.health.v4.DataPointsServiceClient" - }, - "method": { - "shortName": "UpdateDataPoint", - "fullName": "google.devicesandservices.health.v4.DataPointsService.UpdateDataPoint", - "service": { - "shortName": "DataPointsService", - "fullName": "google.devicesandservices.health.v4.DataPointsService" - } - } - } - }, - { - "regionTag": "health_v4_generated_DataPointsService_BatchDeleteDataPoints_async", - "title": "DataPointsService batchDeleteDataPoints Sample", - "origin": "API_DEFINITION", - "description": " Delete a batch of identifyable data points.", - "canonical": true, - "file": "data_points_service.batch_delete_data_points.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchDeleteDataPoints", - "fullName": "google.devicesandservices.health.v4.DataPointsService.BatchDeleteDataPoints", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "names", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataPointsServiceClient", - "fullName": "google.devicesandservices.health.v4.DataPointsServiceClient" - }, - "method": { - "shortName": "BatchDeleteDataPoints", - "fullName": "google.devicesandservices.health.v4.DataPointsService.BatchDeleteDataPoints", - "service": { - "shortName": "DataPointsService", - "fullName": "google.devicesandservices.health.v4.DataPointsService" - } - } - } - }, - { - "regionTag": "health_v4_generated_DataPointsService_ReconcileDataPoints_async", - "title": "DataPointsService reconcileDataPoints Sample", - "origin": "API_DEFINITION", - "description": " Reconcile data points from multiple data sources into a single data stream.", - "canonical": true, - "file": "data_points_service.reconcile_data_points.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 94, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReconcileDataPoints", - "fullName": "google.devicesandservices.health.v4.DataPointsService.ReconcileDataPoints", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "data_source_family", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devicesandservices.health.v4.ReconcileDataPointsResponse", - "client": { - "shortName": "DataPointsServiceClient", - "fullName": "google.devicesandservices.health.v4.DataPointsServiceClient" - }, - "method": { - "shortName": "ReconcileDataPoints", - "fullName": "google.devicesandservices.health.v4.DataPointsService.ReconcileDataPoints", - "service": { - "shortName": "DataPointsService", - "fullName": "google.devicesandservices.health.v4.DataPointsService" - } - } - } - }, - { - "regionTag": "health_v4_generated_DataPointsService_RollUpDataPoints_async", - "title": "DataPointsService rollUpDataPoints Sample", - "origin": "API_DEFINITION", - "description": " Roll up data points over physical time intervals for supported data types.", - "canonical": true, - "file": "data_points_service.roll_up_data_points.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 99, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RollUpDataPoints", - "fullName": "google.devicesandservices.health.v4.DataPointsService.RollUpDataPoints", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "range", - "type": ".google.type.Interval" - }, - { - "name": "window_size", - "type": ".google.protobuf.Duration" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "data_source_family", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devicesandservices.health.v4.RollUpDataPointsResponse", - "client": { - "shortName": "DataPointsServiceClient", - "fullName": "google.devicesandservices.health.v4.DataPointsServiceClient" - }, - "method": { - "shortName": "RollUpDataPoints", - "fullName": "google.devicesandservices.health.v4.DataPointsService.RollUpDataPoints", - "service": { - "shortName": "DataPointsService", - "fullName": "google.devicesandservices.health.v4.DataPointsService" - } - } - } - }, - { - "regionTag": "health_v4_generated_DataPointsService_DailyRollUpDataPoints_async", - "title": "DataPointsService dailyRollUpDataPoints Sample", - "origin": "API_DEFINITION", - "description": " Roll up data points over civil time intervals for supported data types.", - "canonical": true, - "file": "data_points_service.daily_roll_up_data_points.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 97, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DailyRollUpDataPoints", - "fullName": "google.devicesandservices.health.v4.DataPointsService.DailyRollUpDataPoints", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "range", - "type": ".google.devicesandservices.health.v4.CivilTimeInterval" - }, - { - "name": "window_size_days", - "type": "TYPE_INT32" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "data_source_family", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devicesandservices.health.v4.DailyRollUpDataPointsResponse", - "client": { - "shortName": "DataPointsServiceClient", - "fullName": "google.devicesandservices.health.v4.DataPointsServiceClient" - }, - "method": { - "shortName": "DailyRollUpDataPoints", - "fullName": "google.devicesandservices.health.v4.DataPointsService.DailyRollUpDataPoints", - "service": { - "shortName": "DataPointsService", - "fullName": "google.devicesandservices.health.v4.DataPointsService" - } - } - } - }, - { - "regionTag": "health_v4_generated_DataPointsService_ExportExerciseTcx_async", - "title": "DataPointsService exportExerciseTcx Sample", - "origin": "API_DEFINITION", - "description": " Exports exercise data in TCX format. **IMPORTANT:** HTTP clients must append `?alt=media` to the request URL to download the raw TCX file. Example: `https://health.googleapis.com/v4/users/me/dataTypes/exercise/dataPoints/EXERCISE_ID:exportExerciseTcx?alt=media` Without `alt=media`, the server returns a JSON response (`ExportExerciseTcxResponse`) which is intended primarily for gRPC clients. **Note:** While the Authorization section below states that any one of the listed scopes is accepted, this specific method requires the user to provide both one of the `activity_and_fitness` scopes (`normal` or `readonly`) AND one of the `location` scopes (`normal` or `readonly`) in their access token to succeed.", - "canonical": true, - "file": "data_points_service.export_exercise_tcx.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportExerciseTcx", - "fullName": "google.devicesandservices.health.v4.DataPointsService.ExportExerciseTcx", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "partial_data", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.devicesandservices.health.v4.ExportExerciseTcxResponse", - "client": { - "shortName": "DataPointsServiceClient", - "fullName": "google.devicesandservices.health.v4.DataPointsServiceClient" - }, - "method": { - "shortName": "ExportExerciseTcx", - "fullName": "google.devicesandservices.health.v4.DataPointsService.ExportExerciseTcx", - "service": { - "shortName": "DataPointsService", - "fullName": "google.devicesandservices.health.v4.DataPointsService" - } - } - } - }, - { - "regionTag": "health_v4_generated_DataSubscriptionService_CreateSubscriber_async", - "title": "DataPointsService createSubscriber Sample", - "origin": "API_DEFINITION", - "description": " Registers a new subscriber endpoint to receive notifications. A subscriber represents an application or service that wishes to receive data change notifications for users who have granted consent. **Endpoint Verification:** For a subscriber to be successfully created, the provided `endpoint_uri` must be a valid HTTPS endpoint and must pass an automated verification check. The backend will send two HTTP POST requests to the `endpoint_uri`: 1. **Verification with Authorization:** * **Headers:** Includes `Content-Type: application/json` and `Authorization` (with the exact value from `CreateSubscriberPayload.endpoint_authorization.secret`). * **Body:** `{\"type\": \"verification\"}` * **Expected Response:** HTTP `201 Created`. 2. **Verification without Authorization:** * **Headers:** Includes `Content-Type: application/json`. The `Authorization` header is OMITTED. * **Body:** `{\"type\": \"verification\"}` * **Expected Response:** HTTP `401 Unauthorized` or `403 Forbidden`. Both tests must pass for the subscriber creation to succeed. If verification fails, the operation will not be completed and an error will be returned. This process ensures the endpoint is reachable and correctly validates the `Authorization` header.", - "canonical": true, - "file": "data_subscription_service.create_subscriber.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSubscriber", - "fullName": "google.devicesandservices.health.v4.DataSubscriptionService.CreateSubscriber", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "subscriber", - "type": ".google.devicesandservices.health.v4.CreateSubscriberPayload" - }, - { - "name": "subscriber_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataSubscriptionServiceClient", - "fullName": "google.devicesandservices.health.v4.DataSubscriptionServiceClient" - }, - "method": { - "shortName": "CreateSubscriber", - "fullName": "google.devicesandservices.health.v4.DataSubscriptionService.CreateSubscriber", - "service": { - "shortName": "DataSubscriptionService", - "fullName": "google.devicesandservices.health.v4.DataSubscriptionService" - } - } - } - }, - { - "regionTag": "health_v4_generated_DataSubscriptionService_ListSubscribers_async", - "title": "DataPointsService listSubscribers Sample", - "origin": "API_DEFINITION", - "description": " Lists all subscribers registered within the owned Google Cloud Project.", - "canonical": true, - "file": "data_subscription_service.list_subscribers.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSubscribers", - "fullName": "google.devicesandservices.health.v4.DataSubscriptionService.ListSubscribers", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devicesandservices.health.v4.ListSubscribersResponse", - "client": { - "shortName": "DataSubscriptionServiceClient", - "fullName": "google.devicesandservices.health.v4.DataSubscriptionServiceClient" - }, - "method": { - "shortName": "ListSubscribers", - "fullName": "google.devicesandservices.health.v4.DataSubscriptionService.ListSubscribers", - "service": { - "shortName": "DataSubscriptionService", - "fullName": "google.devicesandservices.health.v4.DataSubscriptionService" - } - } - } - }, - { - "regionTag": "health_v4_generated_DataSubscriptionService_UpdateSubscriber_async", - "title": "DataPointsService updateSubscriber Sample", - "origin": "API_DEFINITION", - "description": " Updates the configuration of an existing subscriber, such as the endpoint URI or the data types it's interested in. **Endpoint Verification:** If the `endpoint_uri` or `endpoint_authorization` field is included in the `update_mask`, the backend will re-verify the endpoint. The verification process is the same as described in `CreateSubscriber`: 1. **Verification with Authorization:** POST to the new or existing `endpoint_uri` with the new or existing `Authorization` secret. Expects HTTP `201 Created`. 2. **Verification without Authorization:** POST to the `endpoint_uri` without the `Authorization` header. Expects HTTP `401 Unauthorized` or `403 Forbidden`. Both tests must pass using the potentially updated values for the subscriber update to succeed. If verification fails, the update will not be applied, and an error will be returned.", - "canonical": true, - "file": "data_subscription_service.update_subscriber.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSubscriber", - "fullName": "google.devicesandservices.health.v4.DataSubscriptionService.UpdateSubscriber", - "async": true, - "parameters": [ - { - "name": "subscriber", - "type": ".google.devicesandservices.health.v4.Subscriber" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataSubscriptionServiceClient", - "fullName": "google.devicesandservices.health.v4.DataSubscriptionServiceClient" - }, - "method": { - "shortName": "UpdateSubscriber", - "fullName": "google.devicesandservices.health.v4.DataSubscriptionService.UpdateSubscriber", - "service": { - "shortName": "DataSubscriptionService", - "fullName": "google.devicesandservices.health.v4.DataSubscriptionService" - } - } - } - }, - { - "regionTag": "health_v4_generated_DataSubscriptionService_DeleteSubscriber_async", - "title": "DataPointsService deleteSubscriber Sample", - "origin": "API_DEFINITION", - "description": " Deletes a subscriber registration. This will stop all notifications to the subscriber's endpoint.", - "canonical": true, - "file": "data_subscription_service.delete_subscriber.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSubscriber", - "fullName": "google.devicesandservices.health.v4.DataSubscriptionService.DeleteSubscriber", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "DataSubscriptionServiceClient", - "fullName": "google.devicesandservices.health.v4.DataSubscriptionServiceClient" - }, - "method": { - "shortName": "DeleteSubscriber", - "fullName": "google.devicesandservices.health.v4.DataSubscriptionService.DeleteSubscriber", - "service": { - "shortName": "DataSubscriptionService", - "fullName": "google.devicesandservices.health.v4.DataSubscriptionService" - } - } - } - }, - { - "regionTag": "health_v4_generated_DataSubscriptionService_CreateSubscription_async", - "title": "DataPointsService createSubscription Sample", - "origin": "API_DEFINITION", - "description": " Creates a subscription for a specific user to a specific subscriber. This method requires the subscriber to have a `SubscriptionCreatePolicy` set to `MANUAL` for the given data types.", - "canonical": true, - "file": "data_subscription_service.create_subscription.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateSubscription", - "fullName": "google.devicesandservices.health.v4.DataSubscriptionService.CreateSubscription", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "subscription_id", - "type": "TYPE_STRING" - }, - { - "name": "subscription", - "type": ".google.devicesandservices.health.v4.CreateSubscriptionPayload" - } - ], - "resultType": ".google.devicesandservices.health.v4.Subscription", - "client": { - "shortName": "DataSubscriptionServiceClient", - "fullName": "google.devicesandservices.health.v4.DataSubscriptionServiceClient" - }, - "method": { - "shortName": "CreateSubscription", - "fullName": "google.devicesandservices.health.v4.DataSubscriptionService.CreateSubscription", - "service": { - "shortName": "DataSubscriptionService", - "fullName": "google.devicesandservices.health.v4.DataSubscriptionService" - } - } - } - }, - { - "regionTag": "health_v4_generated_DataSubscriptionService_ListSubscriptions_async", - "title": "DataPointsService listSubscriptions Sample", - "origin": "API_DEFINITION", - "description": " Lists all active subscriptions for a given subscriber. This can be filtered, for example, by user or data type.", - "canonical": true, - "file": "data_subscription_service.list_subscriptions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSubscriptions", - "fullName": "google.devicesandservices.health.v4.DataSubscriptionService.ListSubscriptions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devicesandservices.health.v4.ListSubscriptionsResponse", - "client": { - "shortName": "DataSubscriptionServiceClient", - "fullName": "google.devicesandservices.health.v4.DataSubscriptionServiceClient" - }, - "method": { - "shortName": "ListSubscriptions", - "fullName": "google.devicesandservices.health.v4.DataSubscriptionService.ListSubscriptions", - "service": { - "shortName": "DataSubscriptionService", - "fullName": "google.devicesandservices.health.v4.DataSubscriptionService" - } - } - } - }, - { - "regionTag": "health_v4_generated_DataSubscriptionService_UpdateSubscription_async", - "title": "DataPointsService updateSubscription Sample", - "origin": "API_DEFINITION", - "description": " Updates the data types for an existing user subscription.", - "canonical": true, - "file": "data_subscription_service.update_subscription.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSubscription", - "fullName": "google.devicesandservices.health.v4.DataSubscriptionService.UpdateSubscription", - "async": true, - "parameters": [ - { - "name": "subscription", - "type": ".google.devicesandservices.health.v4.Subscription" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.devicesandservices.health.v4.Subscription", - "client": { - "shortName": "DataSubscriptionServiceClient", - "fullName": "google.devicesandservices.health.v4.DataSubscriptionServiceClient" - }, - "method": { - "shortName": "UpdateSubscription", - "fullName": "google.devicesandservices.health.v4.DataSubscriptionService.UpdateSubscription", - "service": { - "shortName": "DataSubscriptionService", - "fullName": "google.devicesandservices.health.v4.DataSubscriptionService" - } - } - } - }, - { - "regionTag": "health_v4_generated_DataSubscriptionService_DeleteSubscription_async", - "title": "DataPointsService deleteSubscription Sample", - "origin": "API_DEFINITION", - "description": " Deletes a specific user subscription, stopping notifications for this user to this subscriber.", - "canonical": true, - "file": "data_subscription_service.delete_subscription.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteSubscription", - "fullName": "google.devicesandservices.health.v4.DataSubscriptionService.DeleteSubscription", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DataSubscriptionServiceClient", - "fullName": "google.devicesandservices.health.v4.DataSubscriptionServiceClient" - }, - "method": { - "shortName": "DeleteSubscription", - "fullName": "google.devicesandservices.health.v4.DataSubscriptionService.DeleteSubscription", - "service": { - "shortName": "DataSubscriptionService", - "fullName": "google.devicesandservices.health.v4.DataSubscriptionService" - } - } - } - }, - { - "regionTag": "health_v4_generated_HealthProfileService_GetProfile_async", - "title": "DataPointsService getProfile Sample", - "origin": "API_DEFINITION", - "description": " Returns user Profile details.", - "canonical": true, - "file": "health_profile_service.get_profile.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetProfile", - "fullName": "google.devicesandservices.health.v4.HealthProfileService.GetProfile", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devicesandservices.health.v4.Profile", - "client": { - "shortName": "HealthProfileServiceClient", - "fullName": "google.devicesandservices.health.v4.HealthProfileServiceClient" - }, - "method": { - "shortName": "GetProfile", - "fullName": "google.devicesandservices.health.v4.HealthProfileService.GetProfile", - "service": { - "shortName": "HealthProfileService", - "fullName": "google.devicesandservices.health.v4.HealthProfileService" - } - } - } - }, - { - "regionTag": "health_v4_generated_HealthProfileService_UpdateProfile_async", - "title": "DataPointsService updateProfile Sample", - "origin": "API_DEFINITION", - "description": " Updates the user's profile details.", - "canonical": true, - "file": "health_profile_service.update_profile.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateProfile", - "fullName": "google.devicesandservices.health.v4.HealthProfileService.UpdateProfile", - "async": true, - "parameters": [ - { - "name": "profile", - "type": ".google.devicesandservices.health.v4.Profile" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.devicesandservices.health.v4.Profile", - "client": { - "shortName": "HealthProfileServiceClient", - "fullName": "google.devicesandservices.health.v4.HealthProfileServiceClient" - }, - "method": { - "shortName": "UpdateProfile", - "fullName": "google.devicesandservices.health.v4.HealthProfileService.UpdateProfile", - "service": { - "shortName": "HealthProfileService", - "fullName": "google.devicesandservices.health.v4.HealthProfileService" - } - } - } - }, - { - "regionTag": "health_v4_generated_HealthProfileService_GetSettings_async", - "title": "DataPointsService getSettings Sample", - "origin": "API_DEFINITION", - "description": " Returns user settings details.", - "canonical": true, - "file": "health_profile_service.get_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetSettings", - "fullName": "google.devicesandservices.health.v4.HealthProfileService.GetSettings", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devicesandservices.health.v4.Settings", - "client": { - "shortName": "HealthProfileServiceClient", - "fullName": "google.devicesandservices.health.v4.HealthProfileServiceClient" - }, - "method": { - "shortName": "GetSettings", - "fullName": "google.devicesandservices.health.v4.HealthProfileService.GetSettings", - "service": { - "shortName": "HealthProfileService", - "fullName": "google.devicesandservices.health.v4.HealthProfileService" - } - } - } - }, - { - "regionTag": "health_v4_generated_HealthProfileService_UpdateSettings_async", - "title": "DataPointsService updateSettings Sample", - "origin": "API_DEFINITION", - "description": " Updates the user's settings details.", - "canonical": true, - "file": "health_profile_service.update_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateSettings", - "fullName": "google.devicesandservices.health.v4.HealthProfileService.UpdateSettings", - "async": true, - "parameters": [ - { - "name": "settings", - "type": ".google.devicesandservices.health.v4.Settings" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.devicesandservices.health.v4.Settings", - "client": { - "shortName": "HealthProfileServiceClient", - "fullName": "google.devicesandservices.health.v4.HealthProfileServiceClient" - }, - "method": { - "shortName": "UpdateSettings", - "fullName": "google.devicesandservices.health.v4.HealthProfileService.UpdateSettings", - "service": { - "shortName": "HealthProfileService", - "fullName": "google.devicesandservices.health.v4.HealthProfileService" - } - } - } - }, - { - "regionTag": "health_v4_generated_HealthProfileService_GetIdentity_async", - "title": "DataPointsService getIdentity Sample", - "origin": "API_DEFINITION", - "description": " Gets the user's identity. It includes the legacy Fitbit user ID and the Google user ID and it can be used by migrating clients to map identifiers between the two systems.", - "canonical": true, - "file": "health_profile_service.get_identity.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIdentity", - "fullName": "google.devicesandservices.health.v4.HealthProfileService.GetIdentity", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devicesandservices.health.v4.Identity", - "client": { - "shortName": "HealthProfileServiceClient", - "fullName": "google.devicesandservices.health.v4.HealthProfileServiceClient" - }, - "method": { - "shortName": "GetIdentity", - "fullName": "google.devicesandservices.health.v4.HealthProfileService.GetIdentity", - "service": { - "shortName": "HealthProfileService", - "fullName": "google.devicesandservices.health.v4.HealthProfileService" - } - } - } - }, - { - "regionTag": "health_v4_generated_HealthProfileService_GetIrnProfile_async", - "title": "DataPointsService getIrnProfile Sample", - "origin": "API_DEFINITION", - "description": " Returns user's IRN Profile details.", - "canonical": true, - "file": "health_profile_service.get_irn_profile.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIrnProfile", - "fullName": "google.devicesandservices.health.v4.HealthProfileService.GetIrnProfile", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devicesandservices.health.v4.IrnProfile", - "client": { - "shortName": "HealthProfileServiceClient", - "fullName": "google.devicesandservices.health.v4.HealthProfileServiceClient" - }, - "method": { - "shortName": "GetIrnProfile", - "fullName": "google.devicesandservices.health.v4.HealthProfileService.GetIrnProfile", - "service": { - "shortName": "HealthProfileService", - "fullName": "google.devicesandservices.health.v4.HealthProfileService" - } - } - } - }, - { - "regionTag": "health_v4_generated_HealthProfileService_GetPairedDevice_async", - "title": "DataPointsService getPairedDevice Sample", - "origin": "API_DEFINITION", - "description": " Returns user's Device.", - "canonical": true, - "file": "health_profile_service.get_paired_device.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPairedDevice", - "fullName": "google.devicesandservices.health.v4.HealthProfileService.GetPairedDevice", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devicesandservices.health.v4.PairedDevice", - "client": { - "shortName": "HealthProfileServiceClient", - "fullName": "google.devicesandservices.health.v4.HealthProfileServiceClient" - }, - "method": { - "shortName": "GetPairedDevice", - "fullName": "google.devicesandservices.health.v4.HealthProfileService.GetPairedDevice", - "service": { - "shortName": "HealthProfileService", - "fullName": "google.devicesandservices.health.v4.HealthProfileService" - } - } - } - }, - { - "regionTag": "health_v4_generated_HealthProfileService_ListPairedDevices_async", - "title": "DataPointsService listPairedDevices Sample", - "origin": "API_DEFINITION", - "description": " Returns the user's list of paired 1P trackers and smartwatches.", - "canonical": true, - "file": "health_profile_service.list_paired_devices.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPairedDevices", - "fullName": "google.devicesandservices.health.v4.HealthProfileService.ListPairedDevices", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devicesandservices.health.v4.ListPairedDevicesResponse", - "client": { - "shortName": "HealthProfileServiceClient", - "fullName": "google.devicesandservices.health.v4.HealthProfileServiceClient" - }, - "method": { - "shortName": "ListPairedDevices", - "fullName": "google.devicesandservices.health.v4.HealthProfileService.ListPairedDevices", - "service": { - "shortName": "HealthProfileService", - "fullName": "google.devicesandservices.health.v4.HealthProfileService" - } - } - } - } - ] -} diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1/snippet_metadata_google.devtools.artifactregistry.v1.json b/packages/google-devtools-artifactregistry/samples/generated/v1/snippet_metadata_google.devtools.artifactregistry.v1.json deleted file mode 100644 index 74deffae7373..000000000000 --- a/packages/google-devtools-artifactregistry/samples/generated/v1/snippet_metadata_google.devtools.artifactregistry.v1.json +++ /dev/null @@ -1,2267 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-artifactregistry", - "version": "4.7.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.devtools.artifactregistry.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "artifactregistry_v1_generated_ArtifactRegistry_ListDockerImages_async", - "title": "ArtifactRegistry listDockerImages Sample", - "origin": "API_DEFINITION", - "description": " Lists docker images.", - "canonical": true, - "file": "artifact_registry.list_docker_images.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDockerImages", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.ListDockerImages", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devtools.artifactregistry.v1.ListDockerImagesResponse", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistryClient" - }, - "method": { - "shortName": "ListDockerImages", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.ListDockerImages", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1_generated_ArtifactRegistry_GetDockerImage_async", - "title": "ArtifactRegistry getDockerImage Sample", - "origin": "API_DEFINITION", - "description": " Gets a docker image.", - "canonical": true, - "file": "artifact_registry.get_docker_image.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDockerImage", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.GetDockerImage", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devtools.artifactregistry.v1.DockerImage", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistryClient" - }, - "method": { - "shortName": "GetDockerImage", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.GetDockerImage", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1_generated_ArtifactRegistry_ListMavenArtifacts_async", - "title": "ArtifactRegistry listMavenArtifacts Sample", - "origin": "API_DEFINITION", - "description": " Lists maven artifacts.", - "canonical": true, - "file": "artifact_registry.list_maven_artifacts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMavenArtifacts", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.ListMavenArtifacts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devtools.artifactregistry.v1.ListMavenArtifactsResponse", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistryClient" - }, - "method": { - "shortName": "ListMavenArtifacts", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.ListMavenArtifacts", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1_generated_ArtifactRegistry_GetMavenArtifact_async", - "title": "ArtifactRegistry getMavenArtifact Sample", - "origin": "API_DEFINITION", - "description": " Gets a maven artifact.", - "canonical": true, - "file": "artifact_registry.get_maven_artifact.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMavenArtifact", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.GetMavenArtifact", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devtools.artifactregistry.v1.MavenArtifact", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistryClient" - }, - "method": { - "shortName": "GetMavenArtifact", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.GetMavenArtifact", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1_generated_ArtifactRegistry_ListNpmPackages_async", - "title": "ArtifactRegistry listNpmPackages Sample", - "origin": "API_DEFINITION", - "description": " Lists npm packages.", - "canonical": true, - "file": "artifact_registry.list_npm_packages.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListNpmPackages", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.ListNpmPackages", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devtools.artifactregistry.v1.ListNpmPackagesResponse", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistryClient" - }, - "method": { - "shortName": "ListNpmPackages", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.ListNpmPackages", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1_generated_ArtifactRegistry_GetNpmPackage_async", - "title": "ArtifactRegistry getNpmPackage Sample", - "origin": "API_DEFINITION", - "description": " Gets a npm package.", - "canonical": true, - "file": "artifact_registry.get_npm_package.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetNpmPackage", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.GetNpmPackage", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devtools.artifactregistry.v1.NpmPackage", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistryClient" - }, - "method": { - "shortName": "GetNpmPackage", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.GetNpmPackage", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1_generated_ArtifactRegistry_ListPythonPackages_async", - "title": "ArtifactRegistry listPythonPackages Sample", - "origin": "API_DEFINITION", - "description": " Lists python packages.", - "canonical": true, - "file": "artifact_registry.list_python_packages.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPythonPackages", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.ListPythonPackages", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devtools.artifactregistry.v1.ListPythonPackagesResponse", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistryClient" - }, - "method": { - "shortName": "ListPythonPackages", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.ListPythonPackages", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1_generated_ArtifactRegistry_GetPythonPackage_async", - "title": "ArtifactRegistry getPythonPackage Sample", - "origin": "API_DEFINITION", - "description": " Gets a python package.", - "canonical": true, - "file": "artifact_registry.get_python_package.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPythonPackage", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.GetPythonPackage", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devtools.artifactregistry.v1.PythonPackage", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistryClient" - }, - "method": { - "shortName": "GetPythonPackage", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.GetPythonPackage", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1_generated_ArtifactRegistry_ImportAptArtifacts_async", - "title": "ArtifactRegistry importAptArtifacts Sample", - "origin": "API_DEFINITION", - "description": " Imports Apt artifacts. The returned Operation will complete once the resources are imported. Package, Version, and File resources are created based on the imported artifacts. Imported artifacts that conflict with existing resources are ignored.", - "canonical": true, - "file": "artifact_registry.import_apt_artifacts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportAptArtifacts", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.ImportAptArtifacts", - "async": true, - "parameters": [ - { - "name": "gcs_source", - "type": ".google.devtools.artifactregistry.v1.ImportAptArtifactsGcsSource" - }, - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistryClient" - }, - "method": { - "shortName": "ImportAptArtifacts", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.ImportAptArtifacts", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1_generated_ArtifactRegistry_ImportYumArtifacts_async", - "title": "ArtifactRegistry importYumArtifacts Sample", - "origin": "API_DEFINITION", - "description": " Imports Yum (RPM) artifacts. The returned Operation will complete once the resources are imported. Package, Version, and File resources are created based on the imported artifacts. Imported artifacts that conflict with existing resources are ignored.", - "canonical": true, - "file": "artifact_registry.import_yum_artifacts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportYumArtifacts", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.ImportYumArtifacts", - "async": true, - "parameters": [ - { - "name": "gcs_source", - "type": ".google.devtools.artifactregistry.v1.ImportYumArtifactsGcsSource" - }, - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistryClient" - }, - "method": { - "shortName": "ImportYumArtifacts", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.ImportYumArtifacts", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1_generated_ArtifactRegistry_ListRepositories_async", - "title": "ArtifactRegistry listRepositories Sample", - "origin": "API_DEFINITION", - "description": " Lists repositories.", - "canonical": true, - "file": "artifact_registry.list_repositories.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRepositories", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.ListRepositories", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devtools.artifactregistry.v1.ListRepositoriesResponse", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistryClient" - }, - "method": { - "shortName": "ListRepositories", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.ListRepositories", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1_generated_ArtifactRegistry_GetRepository_async", - "title": "ArtifactRegistry getRepository Sample", - "origin": "API_DEFINITION", - "description": " Gets a repository.", - "canonical": true, - "file": "artifact_registry.get_repository.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRepository", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.GetRepository", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devtools.artifactregistry.v1.Repository", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistryClient" - }, - "method": { - "shortName": "GetRepository", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.GetRepository", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1_generated_ArtifactRegistry_CreateRepository_async", - "title": "ArtifactRegistry createRepository Sample", - "origin": "API_DEFINITION", - "description": " Creates a repository. The returned Operation will finish once the repository has been created. Its response will be the created Repository.", - "canonical": true, - "file": "artifact_registry.create_repository.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateRepository", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.CreateRepository", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "repository_id", - "type": "TYPE_STRING" - }, - { - "name": "repository", - "type": ".google.devtools.artifactregistry.v1.Repository" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistryClient" - }, - "method": { - "shortName": "CreateRepository", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.CreateRepository", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1_generated_ArtifactRegistry_UpdateRepository_async", - "title": "ArtifactRegistry updateRepository Sample", - "origin": "API_DEFINITION", - "description": " Updates a repository.", - "canonical": true, - "file": "artifact_registry.update_repository.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateRepository", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.UpdateRepository", - "async": true, - "parameters": [ - { - "name": "repository", - "type": ".google.devtools.artifactregistry.v1.Repository" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.devtools.artifactregistry.v1.Repository", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistryClient" - }, - "method": { - "shortName": "UpdateRepository", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.UpdateRepository", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1_generated_ArtifactRegistry_DeleteRepository_async", - "title": "ArtifactRegistry deleteRepository Sample", - "origin": "API_DEFINITION", - "description": " Deletes a repository and all of its contents. The returned Operation will finish once the repository has been deleted. It will not have any Operation metadata and will return a google.protobuf.Empty response.", - "canonical": true, - "file": "artifact_registry.delete_repository.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteRepository", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.DeleteRepository", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistryClient" - }, - "method": { - "shortName": "DeleteRepository", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.DeleteRepository", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1_generated_ArtifactRegistry_ListPackages_async", - "title": "ArtifactRegistry listPackages Sample", - "origin": "API_DEFINITION", - "description": " Lists packages.", - "canonical": true, - "file": "artifact_registry.list_packages.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 101, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPackages", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.ListPackages", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devtools.artifactregistry.v1.ListPackagesResponse", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistryClient" - }, - "method": { - "shortName": "ListPackages", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.ListPackages", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1_generated_ArtifactRegistry_GetPackage_async", - "title": "ArtifactRegistry getPackage Sample", - "origin": "API_DEFINITION", - "description": " Gets a package.", - "canonical": true, - "file": "artifact_registry.get_package.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPackage", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.GetPackage", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devtools.artifactregistry.v1.Package", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistryClient" - }, - "method": { - "shortName": "GetPackage", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.GetPackage", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1_generated_ArtifactRegistry_DeletePackage_async", - "title": "ArtifactRegistry deletePackage Sample", - "origin": "API_DEFINITION", - "description": " Deletes a package and all of its versions and tags. The returned operation will complete once the package has been deleted.", - "canonical": true, - "file": "artifact_registry.delete_package.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePackage", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.DeletePackage", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistryClient" - }, - "method": { - "shortName": "DeletePackage", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.DeletePackage", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1_generated_ArtifactRegistry_ListVersions_async", - "title": "ArtifactRegistry listVersions Sample", - "origin": "API_DEFINITION", - "description": " Lists versions.", - "canonical": true, - "file": "artifact_registry.list_versions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 104, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListVersions", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.ListVersions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.devtools.artifactregistry.v1.VersionView" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devtools.artifactregistry.v1.ListVersionsResponse", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistryClient" - }, - "method": { - "shortName": "ListVersions", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.ListVersions", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1_generated_ArtifactRegistry_GetVersion_async", - "title": "ArtifactRegistry getVersion Sample", - "origin": "API_DEFINITION", - "description": " Gets a version", - "canonical": true, - "file": "artifact_registry.get_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetVersion", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.GetVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.devtools.artifactregistry.v1.VersionView" - } - ], - "resultType": ".google.devtools.artifactregistry.v1.Version", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistryClient" - }, - "method": { - "shortName": "GetVersion", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.GetVersion", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1_generated_ArtifactRegistry_DeleteVersion_async", - "title": "ArtifactRegistry deleteVersion Sample", - "origin": "API_DEFINITION", - "description": " Deletes a version and all of its content. The returned operation will complete once the version has been deleted.", - "canonical": true, - "file": "artifact_registry.delete_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteVersion", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.DeleteVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistryClient" - }, - "method": { - "shortName": "DeleteVersion", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.DeleteVersion", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1_generated_ArtifactRegistry_BatchDeleteVersions_async", - "title": "ArtifactRegistry batchDeleteVersions Sample", - "origin": "API_DEFINITION", - "description": " Deletes multiple versions across a repository. The returned operation will complete once the versions have been deleted.", - "canonical": true, - "file": "artifact_registry.batch_delete_versions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchDeleteVersions", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.BatchDeleteVersions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "names", - "type": "TYPE_STRING[]" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistryClient" - }, - "method": { - "shortName": "BatchDeleteVersions", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.BatchDeleteVersions", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1_generated_ArtifactRegistry_UpdateVersion_async", - "title": "ArtifactRegistry updateVersion Sample", - "origin": "API_DEFINITION", - "description": " Updates a version.", - "canonical": true, - "file": "artifact_registry.update_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateVersion", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.UpdateVersion", - "async": true, - "parameters": [ - { - "name": "version", - "type": ".google.devtools.artifactregistry.v1.Version" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.devtools.artifactregistry.v1.Version", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistryClient" - }, - "method": { - "shortName": "UpdateVersion", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.UpdateVersion", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1_generated_ArtifactRegistry_ListFiles_async", - "title": "ArtifactRegistry listFiles Sample", - "origin": "API_DEFINITION", - "description": " Lists files.", - "canonical": true, - "file": "artifact_registry.list_files.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 105, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFiles", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.ListFiles", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devtools.artifactregistry.v1.ListFilesResponse", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistryClient" - }, - "method": { - "shortName": "ListFiles", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.ListFiles", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1_generated_ArtifactRegistry_GetFile_async", - "title": "ArtifactRegistry getFile Sample", - "origin": "API_DEFINITION", - "description": " Gets a file.", - "canonical": true, - "file": "artifact_registry.get_file.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFile", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.GetFile", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devtools.artifactregistry.v1.File", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistryClient" - }, - "method": { - "shortName": "GetFile", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.GetFile", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1_generated_ArtifactRegistry_DeleteFile_async", - "title": "ArtifactRegistry deleteFile Sample", - "origin": "API_DEFINITION", - "description": " Deletes a file and all of its content. It is only allowed on generic repositories. The returned operation will complete once the file has been deleted.", - "canonical": true, - "file": "artifact_registry.delete_file.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteFile", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.DeleteFile", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistryClient" - }, - "method": { - "shortName": "DeleteFile", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.DeleteFile", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1_generated_ArtifactRegistry_UpdateFile_async", - "title": "ArtifactRegistry updateFile Sample", - "origin": "API_DEFINITION", - "description": " Updates a file.", - "canonical": true, - "file": "artifact_registry.update_file.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateFile", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.UpdateFile", - "async": true, - "parameters": [ - { - "name": "file", - "type": ".google.devtools.artifactregistry.v1.File" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.devtools.artifactregistry.v1.File", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistryClient" - }, - "method": { - "shortName": "UpdateFile", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.UpdateFile", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1_generated_ArtifactRegistry_ListTags_async", - "title": "ArtifactRegistry listTags Sample", - "origin": "API_DEFINITION", - "description": " Lists tags.", - "canonical": true, - "file": "artifact_registry.list_tags.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTags", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.ListTags", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devtools.artifactregistry.v1.ListTagsResponse", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistryClient" - }, - "method": { - "shortName": "ListTags", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.ListTags", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1_generated_ArtifactRegistry_GetTag_async", - "title": "ArtifactRegistry getTag Sample", - "origin": "API_DEFINITION", - "description": " Gets a tag.", - "canonical": true, - "file": "artifact_registry.get_tag.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 52, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTag", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.GetTag", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devtools.artifactregistry.v1.Tag", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistryClient" - }, - "method": { - "shortName": "GetTag", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.GetTag", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1_generated_ArtifactRegistry_CreateTag_async", - "title": "ArtifactRegistry createTag Sample", - "origin": "API_DEFINITION", - "description": " Creates a tag.", - "canonical": true, - "file": "artifact_registry.create_tag.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTag", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.CreateTag", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "tag_id", - "type": "TYPE_STRING" - }, - { - "name": "tag", - "type": ".google.devtools.artifactregistry.v1.Tag" - } - ], - "resultType": ".google.devtools.artifactregistry.v1.Tag", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistryClient" - }, - "method": { - "shortName": "CreateTag", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.CreateTag", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1_generated_ArtifactRegistry_UpdateTag_async", - "title": "ArtifactRegistry updateTag Sample", - "origin": "API_DEFINITION", - "description": " Updates a tag.", - "canonical": true, - "file": "artifact_registry.update_tag.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTag", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.UpdateTag", - "async": true, - "parameters": [ - { - "name": "tag", - "type": ".google.devtools.artifactregistry.v1.Tag" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.devtools.artifactregistry.v1.Tag", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistryClient" - }, - "method": { - "shortName": "UpdateTag", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.UpdateTag", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1_generated_ArtifactRegistry_DeleteTag_async", - "title": "ArtifactRegistry deleteTag Sample", - "origin": "API_DEFINITION", - "description": " Deletes a tag.", - "canonical": true, - "file": "artifact_registry.delete_tag.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 52, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTag", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.DeleteTag", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistryClient" - }, - "method": { - "shortName": "DeleteTag", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.DeleteTag", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1_generated_ArtifactRegistry_CreateRule_async", - "title": "ArtifactRegistry createRule Sample", - "origin": "API_DEFINITION", - "description": " Creates a rule.", - "canonical": true, - "file": "artifact_registry.create_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateRule", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.CreateRule", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "rule_id", - "type": "TYPE_STRING" - }, - { - "name": "rule", - "type": ".google.devtools.artifactregistry.v1.Rule" - } - ], - "resultType": ".google.devtools.artifactregistry.v1.Rule", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistryClient" - }, - "method": { - "shortName": "CreateRule", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.CreateRule", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1_generated_ArtifactRegistry_ListRules_async", - "title": "ArtifactRegistry listRules Sample", - "origin": "API_DEFINITION", - "description": " Lists rules.", - "canonical": true, - "file": "artifact_registry.list_rules.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRules", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.ListRules", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devtools.artifactregistry.v1.ListRulesResponse", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistryClient" - }, - "method": { - "shortName": "ListRules", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.ListRules", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1_generated_ArtifactRegistry_GetRule_async", - "title": "ArtifactRegistry getRule Sample", - "origin": "API_DEFINITION", - "description": " Gets a rule.", - "canonical": true, - "file": "artifact_registry.get_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRule", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.GetRule", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devtools.artifactregistry.v1.Rule", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistryClient" - }, - "method": { - "shortName": "GetRule", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.GetRule", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1_generated_ArtifactRegistry_UpdateRule_async", - "title": "ArtifactRegistry updateRule Sample", - "origin": "API_DEFINITION", - "description": " Updates a rule.", - "canonical": true, - "file": "artifact_registry.update_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateRule", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.UpdateRule", - "async": true, - "parameters": [ - { - "name": "rule", - "type": ".google.devtools.artifactregistry.v1.Rule" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.devtools.artifactregistry.v1.Rule", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistryClient" - }, - "method": { - "shortName": "UpdateRule", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.UpdateRule", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1_generated_ArtifactRegistry_DeleteRule_async", - "title": "ArtifactRegistry deleteRule Sample", - "origin": "API_DEFINITION", - "description": " Deletes a rule.", - "canonical": true, - "file": "artifact_registry.delete_rule.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteRule", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.DeleteRule", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistryClient" - }, - "method": { - "shortName": "DeleteRule", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.DeleteRule", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1_generated_ArtifactRegistry_SetIamPolicy_async", - "title": "ArtifactRegistry setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Updates the IAM policy for a given resource.", - "canonical": true, - "file": "artifact_registry.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.iam.v1.Policy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistryClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.SetIamPolicy", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1_generated_ArtifactRegistry_GetIamPolicy_async", - "title": "ArtifactRegistry getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the IAM policy for a given resource.", - "canonical": true, - "file": "artifact_registry.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": ".google.iam.v1.GetPolicyOptions" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistryClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.GetIamPolicy", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1_generated_ArtifactRegistry_TestIamPermissions_async", - "title": "ArtifactRegistry testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Tests if the caller has a list of permissions on a resource.", - "canonical": true, - "file": "artifact_registry.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "permissions", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.iam.v1.TestIamPermissionsResponse", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistryClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.TestIamPermissions", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1_generated_ArtifactRegistry_GetProjectSettings_async", - "title": "ArtifactRegistry getProjectSettings Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the Settings for the Project.", - "canonical": true, - "file": "artifact_registry.get_project_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetProjectSettings", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.GetProjectSettings", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devtools.artifactregistry.v1.ProjectSettings", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistryClient" - }, - "method": { - "shortName": "GetProjectSettings", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.GetProjectSettings", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1_generated_ArtifactRegistry_UpdateProjectSettings_async", - "title": "ArtifactRegistry updateProjectSettings Sample", - "origin": "API_DEFINITION", - "description": " Updates the Settings for the Project.", - "canonical": true, - "file": "artifact_registry.update_project_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateProjectSettings", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.UpdateProjectSettings", - "async": true, - "parameters": [ - { - "name": "project_settings", - "type": ".google.devtools.artifactregistry.v1.ProjectSettings" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.devtools.artifactregistry.v1.ProjectSettings", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistryClient" - }, - "method": { - "shortName": "UpdateProjectSettings", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.UpdateProjectSettings", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1_generated_ArtifactRegistry_GetVPCSCConfig_async", - "title": "ArtifactRegistry getVPCSCConfig Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the VPCSC Config for the Project.", - "canonical": true, - "file": "artifact_registry.get_v_p_c_s_c_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetVPCSCConfig", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.GetVPCSCConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devtools.artifactregistry.v1.VPCSCConfig", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistryClient" - }, - "method": { - "shortName": "GetVPCSCConfig", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.GetVPCSCConfig", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1_generated_ArtifactRegistry_UpdateVPCSCConfig_async", - "title": "ArtifactRegistry updateVPCSCConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates the VPCSC Config for the Project.", - "canonical": true, - "file": "artifact_registry.update_v_p_c_s_c_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateVPCSCConfig", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.UpdateVPCSCConfig", - "async": true, - "parameters": [ - { - "name": "vpcsc_config", - "type": ".google.devtools.artifactregistry.v1.VPCSCConfig" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.devtools.artifactregistry.v1.VPCSCConfig", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistryClient" - }, - "method": { - "shortName": "UpdateVPCSCConfig", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.UpdateVPCSCConfig", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1_generated_ArtifactRegistry_UpdatePackage_async", - "title": "ArtifactRegistry updatePackage Sample", - "origin": "API_DEFINITION", - "description": " Updates a package.", - "canonical": true, - "file": "artifact_registry.update_package.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdatePackage", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.UpdatePackage", - "async": true, - "parameters": [ - { - "name": "package", - "type": ".google.devtools.artifactregistry.v1.Package" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.devtools.artifactregistry.v1.Package", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistryClient" - }, - "method": { - "shortName": "UpdatePackage", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.UpdatePackage", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1_generated_ArtifactRegistry_ListAttachments_async", - "title": "ArtifactRegistry listAttachments Sample", - "origin": "API_DEFINITION", - "description": " Lists attachments.", - "canonical": true, - "file": "artifact_registry.list_attachments.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAttachments", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.ListAttachments", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devtools.artifactregistry.v1.ListAttachmentsResponse", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistryClient" - }, - "method": { - "shortName": "ListAttachments", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.ListAttachments", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1_generated_ArtifactRegistry_GetAttachment_async", - "title": "ArtifactRegistry getAttachment Sample", - "origin": "API_DEFINITION", - "description": " Gets an attachment.", - "canonical": true, - "file": "artifact_registry.get_attachment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAttachment", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.GetAttachment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devtools.artifactregistry.v1.Attachment", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistryClient" - }, - "method": { - "shortName": "GetAttachment", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.GetAttachment", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1_generated_ArtifactRegistry_CreateAttachment_async", - "title": "ArtifactRegistry createAttachment Sample", - "origin": "API_DEFINITION", - "description": " Creates an attachment. The returned Operation will finish once the attachment has been created. Its response will be the created attachment.", - "canonical": true, - "file": "artifact_registry.create_attachment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAttachment", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.CreateAttachment", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "attachment_id", - "type": "TYPE_STRING" - }, - { - "name": "attachment", - "type": ".google.devtools.artifactregistry.v1.Attachment" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistryClient" - }, - "method": { - "shortName": "CreateAttachment", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.CreateAttachment", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1_generated_ArtifactRegistry_DeleteAttachment_async", - "title": "ArtifactRegistry deleteAttachment Sample", - "origin": "API_DEFINITION", - "description": " Deletes an attachment. The returned Operation will finish once the attachments has been deleted. It will not have any Operation metadata and will return a `google.protobuf.Empty` response.", - "canonical": true, - "file": "artifact_registry.delete_attachment.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAttachment", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.DeleteAttachment", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistryClient" - }, - "method": { - "shortName": "DeleteAttachment", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.DeleteAttachment", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1_generated_ArtifactRegistry_ExportArtifact_async", - "title": "ArtifactRegistry exportArtifact Sample", - "origin": "API_DEFINITION", - "description": " Exports an artifact to a Cloud Storage bucket.", - "canonical": true, - "file": "artifact_registry.export_artifact.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportArtifact", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.ExportArtifact", - "async": true, - "parameters": [ - { - "name": "source_version", - "type": "TYPE_STRING" - }, - { - "name": "source_tag", - "type": "TYPE_STRING" - }, - { - "name": "gcs_path", - "type": "TYPE_STRING" - }, - { - "name": "repository", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistryClient" - }, - "method": { - "shortName": "ExportArtifact", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry.ExportArtifact", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1.ArtifactRegistry" - } - } - } - } - ] -} diff --git a/packages/google-devtools-artifactregistry/samples/generated/v1beta2/snippet_metadata_google.devtools.artifactregistry.v1beta2.json b/packages/google-devtools-artifactregistry/samples/generated/v1beta2/snippet_metadata_google.devtools.artifactregistry.v1beta2.json deleted file mode 100644 index 2120ed286b0c..000000000000 --- a/packages/google-devtools-artifactregistry/samples/generated/v1beta2/snippet_metadata_google.devtools.artifactregistry.v1beta2.json +++ /dev/null @@ -1,1131 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-artifactregistry", - "version": "4.7.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.devtools.artifactregistry.v1beta2", - "version": "v1beta2" - } - ] - }, - "snippets": [ - { - "regionTag": "artifactregistry_v1beta2_generated_ArtifactRegistry_ImportAptArtifacts_async", - "title": "ArtifactRegistry importAptArtifacts Sample", - "origin": "API_DEFINITION", - "description": " Imports Apt artifacts. The returned Operation will complete once the resources are imported. Package, Version, and File resources are created based on the imported artifacts. Imported artifacts that conflict with existing resources are ignored.", - "canonical": true, - "file": "artifact_registry.import_apt_artifacts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportAptArtifacts", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry.ImportAptArtifacts", - "async": true, - "parameters": [ - { - "name": "gcs_source", - "type": ".google.devtools.artifactregistry.v1beta2.ImportAptArtifactsGcsSource" - }, - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistryClient" - }, - "method": { - "shortName": "ImportAptArtifacts", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry.ImportAptArtifacts", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1beta2_generated_ArtifactRegistry_ImportYumArtifacts_async", - "title": "ArtifactRegistry importYumArtifacts Sample", - "origin": "API_DEFINITION", - "description": " Imports Yum (RPM) artifacts. The returned Operation will complete once the resources are imported. Package, Version, and File resources are created based on the imported artifacts. Imported artifacts that conflict with existing resources are ignored.", - "canonical": true, - "file": "artifact_registry.import_yum_artifacts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ImportYumArtifacts", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry.ImportYumArtifacts", - "async": true, - "parameters": [ - { - "name": "gcs_source", - "type": ".google.devtools.artifactregistry.v1beta2.ImportYumArtifactsGcsSource" - }, - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistryClient" - }, - "method": { - "shortName": "ImportYumArtifacts", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry.ImportYumArtifacts", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1beta2_generated_ArtifactRegistry_ListRepositories_async", - "title": "ArtifactRegistry listRepositories Sample", - "origin": "API_DEFINITION", - "description": " Lists repositories.", - "canonical": true, - "file": "artifact_registry.list_repositories.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRepositories", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry.ListRepositories", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devtools.artifactregistry.v1beta2.ListRepositoriesResponse", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistryClient" - }, - "method": { - "shortName": "ListRepositories", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry.ListRepositories", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1beta2_generated_ArtifactRegistry_GetRepository_async", - "title": "ArtifactRegistry getRepository Sample", - "origin": "API_DEFINITION", - "description": " Gets a repository.", - "canonical": true, - "file": "artifact_registry.get_repository.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRepository", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry.GetRepository", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devtools.artifactregistry.v1beta2.Repository", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistryClient" - }, - "method": { - "shortName": "GetRepository", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry.GetRepository", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1beta2_generated_ArtifactRegistry_CreateRepository_async", - "title": "ArtifactRegistry createRepository Sample", - "origin": "API_DEFINITION", - "description": " Creates a repository. The returned Operation will finish once the repository has been created. Its response will be the created Repository.", - "canonical": true, - "file": "artifact_registry.create_repository.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateRepository", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry.CreateRepository", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "repository_id", - "type": "TYPE_STRING" - }, - { - "name": "repository", - "type": ".google.devtools.artifactregistry.v1beta2.Repository" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistryClient" - }, - "method": { - "shortName": "CreateRepository", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry.CreateRepository", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1beta2_generated_ArtifactRegistry_UpdateRepository_async", - "title": "ArtifactRegistry updateRepository Sample", - "origin": "API_DEFINITION", - "description": " Updates a repository.", - "canonical": true, - "file": "artifact_registry.update_repository.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateRepository", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry.UpdateRepository", - "async": true, - "parameters": [ - { - "name": "repository", - "type": ".google.devtools.artifactregistry.v1beta2.Repository" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.devtools.artifactregistry.v1beta2.Repository", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistryClient" - }, - "method": { - "shortName": "UpdateRepository", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry.UpdateRepository", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1beta2_generated_ArtifactRegistry_DeleteRepository_async", - "title": "ArtifactRegistry deleteRepository Sample", - "origin": "API_DEFINITION", - "description": " Deletes a repository and all of its contents. The returned Operation will finish once the repository has been deleted. It will not have any Operation metadata and will return a google.protobuf.Empty response.", - "canonical": true, - "file": "artifact_registry.delete_repository.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteRepository", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry.DeleteRepository", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistryClient" - }, - "method": { - "shortName": "DeleteRepository", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry.DeleteRepository", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1beta2_generated_ArtifactRegistry_ListPackages_async", - "title": "ArtifactRegistry listPackages Sample", - "origin": "API_DEFINITION", - "description": " Lists packages.", - "canonical": true, - "file": "artifact_registry.list_packages.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPackages", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry.ListPackages", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devtools.artifactregistry.v1beta2.ListPackagesResponse", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistryClient" - }, - "method": { - "shortName": "ListPackages", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry.ListPackages", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1beta2_generated_ArtifactRegistry_GetPackage_async", - "title": "ArtifactRegistry getPackage Sample", - "origin": "API_DEFINITION", - "description": " Gets a package.", - "canonical": true, - "file": "artifact_registry.get_package.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 52, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPackage", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry.GetPackage", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devtools.artifactregistry.v1beta2.Package", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistryClient" - }, - "method": { - "shortName": "GetPackage", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry.GetPackage", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1beta2_generated_ArtifactRegistry_DeletePackage_async", - "title": "ArtifactRegistry deletePackage Sample", - "origin": "API_DEFINITION", - "description": " Deletes a package and all of its versions and tags. The returned operation will complete once the package has been deleted.", - "canonical": true, - "file": "artifact_registry.delete_package.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePackage", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry.DeletePackage", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistryClient" - }, - "method": { - "shortName": "DeletePackage", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry.DeletePackage", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1beta2_generated_ArtifactRegistry_ListVersions_async", - "title": "ArtifactRegistry listVersions Sample", - "origin": "API_DEFINITION", - "description": " Lists versions.", - "canonical": true, - "file": "artifact_registry.list_versions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListVersions", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry.ListVersions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.devtools.artifactregistry.v1beta2.VersionView" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devtools.artifactregistry.v1beta2.ListVersionsResponse", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistryClient" - }, - "method": { - "shortName": "ListVersions", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry.ListVersions", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1beta2_generated_ArtifactRegistry_GetVersion_async", - "title": "ArtifactRegistry getVersion Sample", - "origin": "API_DEFINITION", - "description": " Gets a version", - "canonical": true, - "file": "artifact_registry.get_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetVersion", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry.GetVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.devtools.artifactregistry.v1beta2.VersionView" - } - ], - "resultType": ".google.devtools.artifactregistry.v1beta2.Version", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistryClient" - }, - "method": { - "shortName": "GetVersion", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry.GetVersion", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1beta2_generated_ArtifactRegistry_DeleteVersion_async", - "title": "ArtifactRegistry deleteVersion Sample", - "origin": "API_DEFINITION", - "description": " Deletes a version and all of its content. The returned operation will complete once the version has been deleted.", - "canonical": true, - "file": "artifact_registry.delete_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteVersion", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry.DeleteVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistryClient" - }, - "method": { - "shortName": "DeleteVersion", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry.DeleteVersion", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1beta2_generated_ArtifactRegistry_ListFiles_async", - "title": "ArtifactRegistry listFiles Sample", - "origin": "API_DEFINITION", - "description": " Lists files.", - "canonical": true, - "file": "artifact_registry.list_files.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFiles", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry.ListFiles", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devtools.artifactregistry.v1beta2.ListFilesResponse", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistryClient" - }, - "method": { - "shortName": "ListFiles", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry.ListFiles", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1beta2_generated_ArtifactRegistry_GetFile_async", - "title": "ArtifactRegistry getFile Sample", - "origin": "API_DEFINITION", - "description": " Gets a file.", - "canonical": true, - "file": "artifact_registry.get_file.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 52, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFile", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry.GetFile", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devtools.artifactregistry.v1beta2.File", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistryClient" - }, - "method": { - "shortName": "GetFile", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry.GetFile", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1beta2_generated_ArtifactRegistry_ListTags_async", - "title": "ArtifactRegistry listTags Sample", - "origin": "API_DEFINITION", - "description": " Lists tags.", - "canonical": true, - "file": "artifact_registry.list_tags.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTags", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry.ListTags", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devtools.artifactregistry.v1beta2.ListTagsResponse", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistryClient" - }, - "method": { - "shortName": "ListTags", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry.ListTags", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1beta2_generated_ArtifactRegistry_GetTag_async", - "title": "ArtifactRegistry getTag Sample", - "origin": "API_DEFINITION", - "description": " Gets a tag.", - "canonical": true, - "file": "artifact_registry.get_tag.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 52, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTag", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry.GetTag", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devtools.artifactregistry.v1beta2.Tag", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistryClient" - }, - "method": { - "shortName": "GetTag", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry.GetTag", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1beta2_generated_ArtifactRegistry_CreateTag_async", - "title": "ArtifactRegistry createTag Sample", - "origin": "API_DEFINITION", - "description": " Creates a tag.", - "canonical": true, - "file": "artifact_registry.create_tag.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTag", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry.CreateTag", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "tag_id", - "type": "TYPE_STRING" - }, - { - "name": "tag", - "type": ".google.devtools.artifactregistry.v1beta2.Tag" - } - ], - "resultType": ".google.devtools.artifactregistry.v1beta2.Tag", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistryClient" - }, - "method": { - "shortName": "CreateTag", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry.CreateTag", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1beta2_generated_ArtifactRegistry_UpdateTag_async", - "title": "ArtifactRegistry updateTag Sample", - "origin": "API_DEFINITION", - "description": " Updates a tag.", - "canonical": true, - "file": "artifact_registry.update_tag.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTag", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry.UpdateTag", - "async": true, - "parameters": [ - { - "name": "tag", - "type": ".google.devtools.artifactregistry.v1beta2.Tag" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.devtools.artifactregistry.v1beta2.Tag", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistryClient" - }, - "method": { - "shortName": "UpdateTag", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry.UpdateTag", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1beta2_generated_ArtifactRegistry_DeleteTag_async", - "title": "ArtifactRegistry deleteTag Sample", - "origin": "API_DEFINITION", - "description": " Deletes a tag.", - "canonical": true, - "file": "artifact_registry.delete_tag.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 52, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTag", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry.DeleteTag", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistryClient" - }, - "method": { - "shortName": "DeleteTag", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry.DeleteTag", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1beta2_generated_ArtifactRegistry_SetIamPolicy_async", - "title": "ArtifactRegistry setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Updates the IAM policy for a given resource.", - "canonical": true, - "file": "artifact_registry.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.iam.v1.Policy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistryClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry.SetIamPolicy", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1beta2_generated_ArtifactRegistry_GetIamPolicy_async", - "title": "ArtifactRegistry getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the IAM policy for a given resource.", - "canonical": true, - "file": "artifact_registry.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": ".google.iam.v1.GetPolicyOptions" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistryClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry.GetIamPolicy", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1beta2_generated_ArtifactRegistry_TestIamPermissions_async", - "title": "ArtifactRegistry testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Tests if the caller has a list of permissions on a resource.", - "canonical": true, - "file": "artifact_registry.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "permissions", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.iam.v1.TestIamPermissionsResponse", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistryClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry.TestIamPermissions", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1beta2_generated_ArtifactRegistry_GetProjectSettings_async", - "title": "ArtifactRegistry getProjectSettings Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the Settings for the Project.", - "canonical": true, - "file": "artifact_registry.get_project_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetProjectSettings", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry.GetProjectSettings", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devtools.artifactregistry.v1beta2.ProjectSettings", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistryClient" - }, - "method": { - "shortName": "GetProjectSettings", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry.GetProjectSettings", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry" - } - } - } - }, - { - "regionTag": "artifactregistry_v1beta2_generated_ArtifactRegistry_UpdateProjectSettings_async", - "title": "ArtifactRegistry updateProjectSettings Sample", - "origin": "API_DEFINITION", - "description": " Updates the Settings for the Project.", - "canonical": true, - "file": "artifact_registry.update_project_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateProjectSettings", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry.UpdateProjectSettings", - "async": true, - "parameters": [ - { - "name": "project_settings", - "type": ".google.devtools.artifactregistry.v1beta2.ProjectSettings" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.devtools.artifactregistry.v1beta2.ProjectSettings", - "client": { - "shortName": "ArtifactRegistryClient", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistryClient" - }, - "method": { - "shortName": "UpdateProjectSettings", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry.UpdateProjectSettings", - "service": { - "shortName": "ArtifactRegistry", - "fullName": "google.devtools.artifactregistry.v1beta2.ArtifactRegistry" - } - } - } - } - ] -} diff --git a/packages/google-devtools-cloudbuild/samples/generated/v1/snippet_metadata_google.devtools.cloudbuild.v1.json b/packages/google-devtools-cloudbuild/samples/generated/v1/snippet_metadata_google.devtools.cloudbuild.v1.json deleted file mode 100644 index c304f3ae2fe0..000000000000 --- a/packages/google-devtools-cloudbuild/samples/generated/v1/snippet_metadata_google.devtools.cloudbuild.v1.json +++ /dev/null @@ -1,943 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-cloudbuild", - "version": "5.5.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.devtools.cloudbuild.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "cloudbuild_v1_generated_CloudBuild_CreateBuild_async", - "title": "CloudBuild createBuild Sample", - "origin": "API_DEFINITION", - "description": " Starts a build with the specified configuration. This method returns a long-running `Operation`, which includes the build ID. Pass the build ID to `GetBuild` to determine the build status (such as `SUCCESS` or `FAILURE`).", - "canonical": true, - "file": "cloud_build.create_build.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateBuild", - "fullName": "google.devtools.cloudbuild.v1.CloudBuild.CreateBuild", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "build", - "type": ".google.devtools.cloudbuild.v1.Build" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudBuildClient", - "fullName": "google.devtools.cloudbuild.v1.CloudBuildClient" - }, - "method": { - "shortName": "CreateBuild", - "fullName": "google.devtools.cloudbuild.v1.CloudBuild.CreateBuild", - "service": { - "shortName": "CloudBuild", - "fullName": "google.devtools.cloudbuild.v1.CloudBuild" - } - } - } - }, - { - "regionTag": "cloudbuild_v1_generated_CloudBuild_GetBuild_async", - "title": "CloudBuild getBuild Sample", - "origin": "API_DEFINITION", - "description": " Returns information about a previously requested build. The `Build` that is returned includes its status (such as `SUCCESS`, `FAILURE`, or `WORKING`), and timing information.", - "canonical": true, - "file": "cloud_build.get_build.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBuild", - "fullName": "google.devtools.cloudbuild.v1.CloudBuild.GetBuild", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devtools.cloudbuild.v1.Build", - "client": { - "shortName": "CloudBuildClient", - "fullName": "google.devtools.cloudbuild.v1.CloudBuildClient" - }, - "method": { - "shortName": "GetBuild", - "fullName": "google.devtools.cloudbuild.v1.CloudBuild.GetBuild", - "service": { - "shortName": "CloudBuild", - "fullName": "google.devtools.cloudbuild.v1.CloudBuild" - } - } - } - }, - { - "regionTag": "cloudbuild_v1_generated_CloudBuild_ListBuilds_async", - "title": "CloudBuild listBuilds Sample", - "origin": "API_DEFINITION", - "description": " Lists previously requested builds. Previously requested builds may still be in-progress, or may have finished successfully or unsuccessfully.", - "canonical": true, - "file": "cloud_build.list_builds.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBuilds", - "fullName": "google.devtools.cloudbuild.v1.CloudBuild.ListBuilds", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devtools.cloudbuild.v1.ListBuildsResponse", - "client": { - "shortName": "CloudBuildClient", - "fullName": "google.devtools.cloudbuild.v1.CloudBuildClient" - }, - "method": { - "shortName": "ListBuilds", - "fullName": "google.devtools.cloudbuild.v1.CloudBuild.ListBuilds", - "service": { - "shortName": "CloudBuild", - "fullName": "google.devtools.cloudbuild.v1.CloudBuild" - } - } - } - }, - { - "regionTag": "cloudbuild_v1_generated_CloudBuild_CancelBuild_async", - "title": "CloudBuild cancelBuild Sample", - "origin": "API_DEFINITION", - "description": " Cancels a build in progress.", - "canonical": true, - "file": "cloud_build.cancel_build.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CancelBuild", - "fullName": "google.devtools.cloudbuild.v1.CloudBuild.CancelBuild", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devtools.cloudbuild.v1.Build", - "client": { - "shortName": "CloudBuildClient", - "fullName": "google.devtools.cloudbuild.v1.CloudBuildClient" - }, - "method": { - "shortName": "CancelBuild", - "fullName": "google.devtools.cloudbuild.v1.CloudBuild.CancelBuild", - "service": { - "shortName": "CloudBuild", - "fullName": "google.devtools.cloudbuild.v1.CloudBuild" - } - } - } - }, - { - "regionTag": "cloudbuild_v1_generated_CloudBuild_RetryBuild_async", - "title": "CloudBuild retryBuild Sample", - "origin": "API_DEFINITION", - "description": " Creates a new build based on the specified build. This method creates a new build using the original build request, which may or may not result in an identical build. For triggered builds: * Triggered builds resolve to a precise revision; therefore a retry of a triggered build will result in a build that uses the same revision. For non-triggered builds that specify `RepoSource`: * If the original build built from the tip of a branch, the retried build will build from the tip of that branch, which may not be the same revision as the original build. * If the original build specified a commit sha or revision ID, the retried build will use the identical source. For builds that specify `StorageSource`: * If the original build pulled source from Cloud Storage without specifying the generation of the object, the new build will use the current object, which may be different from the original build source. * If the original build pulled source from Cloud Storage and specified the generation of the object, the new build will attempt to use the same object, which may or may not be available depending on the bucket's lifecycle management settings.", - "canonical": true, - "file": "cloud_build.retry_build.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RetryBuild", - "fullName": "google.devtools.cloudbuild.v1.CloudBuild.RetryBuild", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudBuildClient", - "fullName": "google.devtools.cloudbuild.v1.CloudBuildClient" - }, - "method": { - "shortName": "RetryBuild", - "fullName": "google.devtools.cloudbuild.v1.CloudBuild.RetryBuild", - "service": { - "shortName": "CloudBuild", - "fullName": "google.devtools.cloudbuild.v1.CloudBuild" - } - } - } - }, - { - "regionTag": "cloudbuild_v1_generated_CloudBuild_ApproveBuild_async", - "title": "CloudBuild approveBuild Sample", - "origin": "API_DEFINITION", - "description": " Approves or rejects a pending build. If approved, the returned long-running operation (LRO) will be analogous to the LRO returned from a CreateBuild call. If rejected, the returned LRO will be immediately done.", - "canonical": true, - "file": "cloud_build.approve_build.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ApproveBuild", - "fullName": "google.devtools.cloudbuild.v1.CloudBuild.ApproveBuild", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "approval_result", - "type": ".google.devtools.cloudbuild.v1.ApprovalResult" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudBuildClient", - "fullName": "google.devtools.cloudbuild.v1.CloudBuildClient" - }, - "method": { - "shortName": "ApproveBuild", - "fullName": "google.devtools.cloudbuild.v1.CloudBuild.ApproveBuild", - "service": { - "shortName": "CloudBuild", - "fullName": "google.devtools.cloudbuild.v1.CloudBuild" - } - } - } - }, - { - "regionTag": "cloudbuild_v1_generated_CloudBuild_CreateBuildTrigger_async", - "title": "CloudBuild createBuildTrigger Sample", - "origin": "API_DEFINITION", - "description": " Creates a new `BuildTrigger`.", - "canonical": true, - "file": "cloud_build.create_build_trigger.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateBuildTrigger", - "fullName": "google.devtools.cloudbuild.v1.CloudBuild.CreateBuildTrigger", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "trigger", - "type": ".google.devtools.cloudbuild.v1.BuildTrigger" - } - ], - "resultType": ".google.devtools.cloudbuild.v1.BuildTrigger", - "client": { - "shortName": "CloudBuildClient", - "fullName": "google.devtools.cloudbuild.v1.CloudBuildClient" - }, - "method": { - "shortName": "CreateBuildTrigger", - "fullName": "google.devtools.cloudbuild.v1.CloudBuild.CreateBuildTrigger", - "service": { - "shortName": "CloudBuild", - "fullName": "google.devtools.cloudbuild.v1.CloudBuild" - } - } - } - }, - { - "regionTag": "cloudbuild_v1_generated_CloudBuild_GetBuildTrigger_async", - "title": "CloudBuild getBuildTrigger Sample", - "origin": "API_DEFINITION", - "description": " Returns information about a `BuildTrigger`.", - "canonical": true, - "file": "cloud_build.get_build_trigger.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBuildTrigger", - "fullName": "google.devtools.cloudbuild.v1.CloudBuild.GetBuildTrigger", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "trigger_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devtools.cloudbuild.v1.BuildTrigger", - "client": { - "shortName": "CloudBuildClient", - "fullName": "google.devtools.cloudbuild.v1.CloudBuildClient" - }, - "method": { - "shortName": "GetBuildTrigger", - "fullName": "google.devtools.cloudbuild.v1.CloudBuild.GetBuildTrigger", - "service": { - "shortName": "CloudBuild", - "fullName": "google.devtools.cloudbuild.v1.CloudBuild" - } - } - } - }, - { - "regionTag": "cloudbuild_v1_generated_CloudBuild_ListBuildTriggers_async", - "title": "CloudBuild listBuildTriggers Sample", - "origin": "API_DEFINITION", - "description": " Lists existing `BuildTrigger`s.", - "canonical": true, - "file": "cloud_build.list_build_triggers.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBuildTriggers", - "fullName": "google.devtools.cloudbuild.v1.CloudBuild.ListBuildTriggers", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devtools.cloudbuild.v1.ListBuildTriggersResponse", - "client": { - "shortName": "CloudBuildClient", - "fullName": "google.devtools.cloudbuild.v1.CloudBuildClient" - }, - "method": { - "shortName": "ListBuildTriggers", - "fullName": "google.devtools.cloudbuild.v1.CloudBuild.ListBuildTriggers", - "service": { - "shortName": "CloudBuild", - "fullName": "google.devtools.cloudbuild.v1.CloudBuild" - } - } - } - }, - { - "regionTag": "cloudbuild_v1_generated_CloudBuild_DeleteBuildTrigger_async", - "title": "CloudBuild deleteBuildTrigger Sample", - "origin": "API_DEFINITION", - "description": " Deletes a `BuildTrigger` by its project ID and trigger ID.", - "canonical": true, - "file": "cloud_build.delete_build_trigger.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteBuildTrigger", - "fullName": "google.devtools.cloudbuild.v1.CloudBuild.DeleteBuildTrigger", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "trigger_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "CloudBuildClient", - "fullName": "google.devtools.cloudbuild.v1.CloudBuildClient" - }, - "method": { - "shortName": "DeleteBuildTrigger", - "fullName": "google.devtools.cloudbuild.v1.CloudBuild.DeleteBuildTrigger", - "service": { - "shortName": "CloudBuild", - "fullName": "google.devtools.cloudbuild.v1.CloudBuild" - } - } - } - }, - { - "regionTag": "cloudbuild_v1_generated_CloudBuild_UpdateBuildTrigger_async", - "title": "CloudBuild updateBuildTrigger Sample", - "origin": "API_DEFINITION", - "description": " Updates a `BuildTrigger` by its project ID and trigger ID.", - "canonical": true, - "file": "cloud_build.update_build_trigger.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateBuildTrigger", - "fullName": "google.devtools.cloudbuild.v1.CloudBuild.UpdateBuildTrigger", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "trigger_id", - "type": "TYPE_STRING" - }, - { - "name": "trigger", - "type": ".google.devtools.cloudbuild.v1.BuildTrigger" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.devtools.cloudbuild.v1.BuildTrigger", - "client": { - "shortName": "CloudBuildClient", - "fullName": "google.devtools.cloudbuild.v1.CloudBuildClient" - }, - "method": { - "shortName": "UpdateBuildTrigger", - "fullName": "google.devtools.cloudbuild.v1.CloudBuild.UpdateBuildTrigger", - "service": { - "shortName": "CloudBuild", - "fullName": "google.devtools.cloudbuild.v1.CloudBuild" - } - } - } - }, - { - "regionTag": "cloudbuild_v1_generated_CloudBuild_RunBuildTrigger_async", - "title": "CloudBuild runBuildTrigger Sample", - "origin": "API_DEFINITION", - "description": " Runs a `BuildTrigger` at a particular source revision. To run a regional or global trigger, use the POST request that includes the location endpoint in the path (ex. v1/projects/{projectId}/locations/{region}/triggers/{triggerId}:run). The POST request that does not include the location endpoint in the path can only be used when running global triggers.", - "canonical": true, - "file": "cloud_build.run_build_trigger.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RunBuildTrigger", - "fullName": "google.devtools.cloudbuild.v1.CloudBuild.RunBuildTrigger", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "trigger_id", - "type": "TYPE_STRING" - }, - { - "name": "source", - "type": ".google.devtools.cloudbuild.v1.RepoSource" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudBuildClient", - "fullName": "google.devtools.cloudbuild.v1.CloudBuildClient" - }, - "method": { - "shortName": "RunBuildTrigger", - "fullName": "google.devtools.cloudbuild.v1.CloudBuild.RunBuildTrigger", - "service": { - "shortName": "CloudBuild", - "fullName": "google.devtools.cloudbuild.v1.CloudBuild" - } - } - } - }, - { - "regionTag": "cloudbuild_v1_generated_CloudBuild_ReceiveTriggerWebhook_async", - "title": "CloudBuild receiveTriggerWebhook Sample", - "origin": "API_DEFINITION", - "description": " ReceiveTriggerWebhook [Experimental] is called when the API receives a webhook request targeted at a specific trigger.", - "canonical": true, - "file": "cloud_build.receive_trigger_webhook.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReceiveTriggerWebhook", - "fullName": "google.devtools.cloudbuild.v1.CloudBuild.ReceiveTriggerWebhook", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "body", - "type": ".google.api.HttpBody" - }, - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "trigger", - "type": "TYPE_STRING" - }, - { - "name": "secret", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devtools.cloudbuild.v1.ReceiveTriggerWebhookResponse", - "client": { - "shortName": "CloudBuildClient", - "fullName": "google.devtools.cloudbuild.v1.CloudBuildClient" - }, - "method": { - "shortName": "ReceiveTriggerWebhook", - "fullName": "google.devtools.cloudbuild.v1.CloudBuild.ReceiveTriggerWebhook", - "service": { - "shortName": "CloudBuild", - "fullName": "google.devtools.cloudbuild.v1.CloudBuild" - } - } - } - }, - { - "regionTag": "cloudbuild_v1_generated_CloudBuild_CreateWorkerPool_async", - "title": "CloudBuild createWorkerPool Sample", - "origin": "API_DEFINITION", - "description": " Creates a `WorkerPool`.", - "canonical": true, - "file": "cloud_build.create_worker_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateWorkerPool", - "fullName": "google.devtools.cloudbuild.v1.CloudBuild.CreateWorkerPool", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "worker_pool", - "type": ".google.devtools.cloudbuild.v1.WorkerPool" - }, - { - "name": "worker_pool_id", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudBuildClient", - "fullName": "google.devtools.cloudbuild.v1.CloudBuildClient" - }, - "method": { - "shortName": "CreateWorkerPool", - "fullName": "google.devtools.cloudbuild.v1.CloudBuild.CreateWorkerPool", - "service": { - "shortName": "CloudBuild", - "fullName": "google.devtools.cloudbuild.v1.CloudBuild" - } - } - } - }, - { - "regionTag": "cloudbuild_v1_generated_CloudBuild_GetWorkerPool_async", - "title": "CloudBuild getWorkerPool Sample", - "origin": "API_DEFINITION", - "description": " Returns details of a `WorkerPool`.", - "canonical": true, - "file": "cloud_build.get_worker_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetWorkerPool", - "fullName": "google.devtools.cloudbuild.v1.CloudBuild.GetWorkerPool", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devtools.cloudbuild.v1.WorkerPool", - "client": { - "shortName": "CloudBuildClient", - "fullName": "google.devtools.cloudbuild.v1.CloudBuildClient" - }, - "method": { - "shortName": "GetWorkerPool", - "fullName": "google.devtools.cloudbuild.v1.CloudBuild.GetWorkerPool", - "service": { - "shortName": "CloudBuild", - "fullName": "google.devtools.cloudbuild.v1.CloudBuild" - } - } - } - }, - { - "regionTag": "cloudbuild_v1_generated_CloudBuild_DeleteWorkerPool_async", - "title": "CloudBuild deleteWorkerPool Sample", - "origin": "API_DEFINITION", - "description": " Deletes a `WorkerPool`.", - "canonical": true, - "file": "cloud_build.delete_worker_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteWorkerPool", - "fullName": "google.devtools.cloudbuild.v1.CloudBuild.DeleteWorkerPool", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudBuildClient", - "fullName": "google.devtools.cloudbuild.v1.CloudBuildClient" - }, - "method": { - "shortName": "DeleteWorkerPool", - "fullName": "google.devtools.cloudbuild.v1.CloudBuild.DeleteWorkerPool", - "service": { - "shortName": "CloudBuild", - "fullName": "google.devtools.cloudbuild.v1.CloudBuild" - } - } - } - }, - { - "regionTag": "cloudbuild_v1_generated_CloudBuild_UpdateWorkerPool_async", - "title": "CloudBuild updateWorkerPool Sample", - "origin": "API_DEFINITION", - "description": " Updates a `WorkerPool`.", - "canonical": true, - "file": "cloud_build.update_worker_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateWorkerPool", - "fullName": "google.devtools.cloudbuild.v1.CloudBuild.UpdateWorkerPool", - "async": true, - "parameters": [ - { - "name": "worker_pool", - "type": ".google.devtools.cloudbuild.v1.WorkerPool" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "CloudBuildClient", - "fullName": "google.devtools.cloudbuild.v1.CloudBuildClient" - }, - "method": { - "shortName": "UpdateWorkerPool", - "fullName": "google.devtools.cloudbuild.v1.CloudBuild.UpdateWorkerPool", - "service": { - "shortName": "CloudBuild", - "fullName": "google.devtools.cloudbuild.v1.CloudBuild" - } - } - } - }, - { - "regionTag": "cloudbuild_v1_generated_CloudBuild_ListWorkerPools_async", - "title": "CloudBuild listWorkerPools Sample", - "origin": "API_DEFINITION", - "description": " Lists `WorkerPool`s.", - "canonical": true, - "file": "cloud_build.list_worker_pools.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListWorkerPools", - "fullName": "google.devtools.cloudbuild.v1.CloudBuild.ListWorkerPools", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devtools.cloudbuild.v1.ListWorkerPoolsResponse", - "client": { - "shortName": "CloudBuildClient", - "fullName": "google.devtools.cloudbuild.v1.CloudBuildClient" - }, - "method": { - "shortName": "ListWorkerPools", - "fullName": "google.devtools.cloudbuild.v1.CloudBuild.ListWorkerPools", - "service": { - "shortName": "CloudBuild", - "fullName": "google.devtools.cloudbuild.v1.CloudBuild" - } - } - } - }, - { - "regionTag": "cloudbuild_v1_generated_CloudBuild_GetDefaultServiceAccount_async", - "title": "CloudBuild getDefaultServiceAccount Sample", - "origin": "API_DEFINITION", - "description": " Returns the `DefaultServiceAccount` used by the project.", - "canonical": true, - "file": "cloud_build.get_default_service_account.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDefaultServiceAccount", - "fullName": "google.devtools.cloudbuild.v1.CloudBuild.GetDefaultServiceAccount", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devtools.cloudbuild.v1.DefaultServiceAccount", - "client": { - "shortName": "CloudBuildClient", - "fullName": "google.devtools.cloudbuild.v1.CloudBuildClient" - }, - "method": { - "shortName": "GetDefaultServiceAccount", - "fullName": "google.devtools.cloudbuild.v1.CloudBuild.GetDefaultServiceAccount", - "service": { - "shortName": "CloudBuild", - "fullName": "google.devtools.cloudbuild.v1.CloudBuild" - } - } - } - } - ] -} diff --git a/packages/google-devtools-cloudbuild/samples/generated/v2/snippet_metadata_google.devtools.cloudbuild.v2.json b/packages/google-devtools-cloudbuild/samples/generated/v2/snippet_metadata_google.devtools.cloudbuild.v2.json deleted file mode 100644 index af0168df9a1e..000000000000 --- a/packages/google-devtools-cloudbuild/samples/generated/v2/snippet_metadata_google.devtools.cloudbuild.v2.json +++ /dev/null @@ -1,655 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-cloudbuild", - "version": "5.5.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.devtools.cloudbuild.v2", - "version": "v2" - } - ] - }, - "snippets": [ - { - "regionTag": "cloudbuild_v2_generated_RepositoryManager_CreateConnection_async", - "title": "RepositoryManager createConnection Sample", - "origin": "API_DEFINITION", - "description": " Creates a Connection.", - "canonical": true, - "file": "repository_manager.create_connection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateConnection", - "fullName": "google.devtools.cloudbuild.v2.RepositoryManager.CreateConnection", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "connection", - "type": ".google.devtools.cloudbuild.v2.Connection" - }, - { - "name": "connection_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "RepositoryManagerClient", - "fullName": "google.devtools.cloudbuild.v2.RepositoryManagerClient" - }, - "method": { - "shortName": "CreateConnection", - "fullName": "google.devtools.cloudbuild.v2.RepositoryManager.CreateConnection", - "service": { - "shortName": "RepositoryManager", - "fullName": "google.devtools.cloudbuild.v2.RepositoryManager" - } - } - } - }, - { - "regionTag": "cloudbuild_v2_generated_RepositoryManager_GetConnection_async", - "title": "RepositoryManager getConnection Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single connection.", - "canonical": true, - "file": "repository_manager.get_connection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetConnection", - "fullName": "google.devtools.cloudbuild.v2.RepositoryManager.GetConnection", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devtools.cloudbuild.v2.Connection", - "client": { - "shortName": "RepositoryManagerClient", - "fullName": "google.devtools.cloudbuild.v2.RepositoryManagerClient" - }, - "method": { - "shortName": "GetConnection", - "fullName": "google.devtools.cloudbuild.v2.RepositoryManager.GetConnection", - "service": { - "shortName": "RepositoryManager", - "fullName": "google.devtools.cloudbuild.v2.RepositoryManager" - } - } - } - }, - { - "regionTag": "cloudbuild_v2_generated_RepositoryManager_ListConnections_async", - "title": "RepositoryManager listConnections Sample", - "origin": "API_DEFINITION", - "description": " Lists Connections in a given project and location.", - "canonical": true, - "file": "repository_manager.list_connections.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListConnections", - "fullName": "google.devtools.cloudbuild.v2.RepositoryManager.ListConnections", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devtools.cloudbuild.v2.ListConnectionsResponse", - "client": { - "shortName": "RepositoryManagerClient", - "fullName": "google.devtools.cloudbuild.v2.RepositoryManagerClient" - }, - "method": { - "shortName": "ListConnections", - "fullName": "google.devtools.cloudbuild.v2.RepositoryManager.ListConnections", - "service": { - "shortName": "RepositoryManager", - "fullName": "google.devtools.cloudbuild.v2.RepositoryManager" - } - } - } - }, - { - "regionTag": "cloudbuild_v2_generated_RepositoryManager_UpdateConnection_async", - "title": "RepositoryManager updateConnection Sample", - "origin": "API_DEFINITION", - "description": " Updates a single connection.", - "canonical": true, - "file": "repository_manager.update_connection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateConnection", - "fullName": "google.devtools.cloudbuild.v2.RepositoryManager.UpdateConnection", - "async": true, - "parameters": [ - { - "name": "connection", - "type": ".google.devtools.cloudbuild.v2.Connection" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "allow_missing", - "type": "TYPE_BOOL" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "RepositoryManagerClient", - "fullName": "google.devtools.cloudbuild.v2.RepositoryManagerClient" - }, - "method": { - "shortName": "UpdateConnection", - "fullName": "google.devtools.cloudbuild.v2.RepositoryManager.UpdateConnection", - "service": { - "shortName": "RepositoryManager", - "fullName": "google.devtools.cloudbuild.v2.RepositoryManager" - } - } - } - }, - { - "regionTag": "cloudbuild_v2_generated_RepositoryManager_DeleteConnection_async", - "title": "RepositoryManager deleteConnection Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single connection.", - "canonical": true, - "file": "repository_manager.delete_connection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteConnection", - "fullName": "google.devtools.cloudbuild.v2.RepositoryManager.DeleteConnection", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "RepositoryManagerClient", - "fullName": "google.devtools.cloudbuild.v2.RepositoryManagerClient" - }, - "method": { - "shortName": "DeleteConnection", - "fullName": "google.devtools.cloudbuild.v2.RepositoryManager.DeleteConnection", - "service": { - "shortName": "RepositoryManager", - "fullName": "google.devtools.cloudbuild.v2.RepositoryManager" - } - } - } - }, - { - "regionTag": "cloudbuild_v2_generated_RepositoryManager_CreateRepository_async", - "title": "RepositoryManager createRepository Sample", - "origin": "API_DEFINITION", - "description": " Creates a Repository.", - "canonical": true, - "file": "repository_manager.create_repository.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateRepository", - "fullName": "google.devtools.cloudbuild.v2.RepositoryManager.CreateRepository", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "repository", - "type": ".google.devtools.cloudbuild.v2.Repository" - }, - { - "name": "repository_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "RepositoryManagerClient", - "fullName": "google.devtools.cloudbuild.v2.RepositoryManagerClient" - }, - "method": { - "shortName": "CreateRepository", - "fullName": "google.devtools.cloudbuild.v2.RepositoryManager.CreateRepository", - "service": { - "shortName": "RepositoryManager", - "fullName": "google.devtools.cloudbuild.v2.RepositoryManager" - } - } - } - }, - { - "regionTag": "cloudbuild_v2_generated_RepositoryManager_BatchCreateRepositories_async", - "title": "RepositoryManager batchCreateRepositories Sample", - "origin": "API_DEFINITION", - "description": " Creates multiple repositories inside a connection.", - "canonical": true, - "file": "repository_manager.batch_create_repositories.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCreateRepositories", - "fullName": "google.devtools.cloudbuild.v2.RepositoryManager.BatchCreateRepositories", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "RepositoryManagerClient", - "fullName": "google.devtools.cloudbuild.v2.RepositoryManagerClient" - }, - "method": { - "shortName": "BatchCreateRepositories", - "fullName": "google.devtools.cloudbuild.v2.RepositoryManager.BatchCreateRepositories", - "service": { - "shortName": "RepositoryManager", - "fullName": "google.devtools.cloudbuild.v2.RepositoryManager" - } - } - } - }, - { - "regionTag": "cloudbuild_v2_generated_RepositoryManager_GetRepository_async", - "title": "RepositoryManager getRepository Sample", - "origin": "API_DEFINITION", - "description": " Gets details of a single repository.", - "canonical": true, - "file": "repository_manager.get_repository.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRepository", - "fullName": "google.devtools.cloudbuild.v2.RepositoryManager.GetRepository", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devtools.cloudbuild.v2.Repository", - "client": { - "shortName": "RepositoryManagerClient", - "fullName": "google.devtools.cloudbuild.v2.RepositoryManagerClient" - }, - "method": { - "shortName": "GetRepository", - "fullName": "google.devtools.cloudbuild.v2.RepositoryManager.GetRepository", - "service": { - "shortName": "RepositoryManager", - "fullName": "google.devtools.cloudbuild.v2.RepositoryManager" - } - } - } - }, - { - "regionTag": "cloudbuild_v2_generated_RepositoryManager_ListRepositories_async", - "title": "RepositoryManager listRepositories Sample", - "origin": "API_DEFINITION", - "description": " Lists Repositories in a given connection.", - "canonical": true, - "file": "repository_manager.list_repositories.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRepositories", - "fullName": "google.devtools.cloudbuild.v2.RepositoryManager.ListRepositories", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devtools.cloudbuild.v2.ListRepositoriesResponse", - "client": { - "shortName": "RepositoryManagerClient", - "fullName": "google.devtools.cloudbuild.v2.RepositoryManagerClient" - }, - "method": { - "shortName": "ListRepositories", - "fullName": "google.devtools.cloudbuild.v2.RepositoryManager.ListRepositories", - "service": { - "shortName": "RepositoryManager", - "fullName": "google.devtools.cloudbuild.v2.RepositoryManager" - } - } - } - }, - { - "regionTag": "cloudbuild_v2_generated_RepositoryManager_DeleteRepository_async", - "title": "RepositoryManager deleteRepository Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single repository.", - "canonical": true, - "file": "repository_manager.delete_repository.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteRepository", - "fullName": "google.devtools.cloudbuild.v2.RepositoryManager.DeleteRepository", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "RepositoryManagerClient", - "fullName": "google.devtools.cloudbuild.v2.RepositoryManagerClient" - }, - "method": { - "shortName": "DeleteRepository", - "fullName": "google.devtools.cloudbuild.v2.RepositoryManager.DeleteRepository", - "service": { - "shortName": "RepositoryManager", - "fullName": "google.devtools.cloudbuild.v2.RepositoryManager" - } - } - } - }, - { - "regionTag": "cloudbuild_v2_generated_RepositoryManager_FetchReadWriteToken_async", - "title": "RepositoryManager fetchReadWriteToken Sample", - "origin": "API_DEFINITION", - "description": " Fetches read/write token of a given repository.", - "canonical": true, - "file": "repository_manager.fetch_read_write_token.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchReadWriteToken", - "fullName": "google.devtools.cloudbuild.v2.RepositoryManager.FetchReadWriteToken", - "async": true, - "parameters": [ - { - "name": "repository", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devtools.cloudbuild.v2.FetchReadWriteTokenResponse", - "client": { - "shortName": "RepositoryManagerClient", - "fullName": "google.devtools.cloudbuild.v2.RepositoryManagerClient" - }, - "method": { - "shortName": "FetchReadWriteToken", - "fullName": "google.devtools.cloudbuild.v2.RepositoryManager.FetchReadWriteToken", - "service": { - "shortName": "RepositoryManager", - "fullName": "google.devtools.cloudbuild.v2.RepositoryManager" - } - } - } - }, - { - "regionTag": "cloudbuild_v2_generated_RepositoryManager_FetchReadToken_async", - "title": "RepositoryManager fetchReadToken Sample", - "origin": "API_DEFINITION", - "description": " Fetches read token of a given repository.", - "canonical": true, - "file": "repository_manager.fetch_read_token.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchReadToken", - "fullName": "google.devtools.cloudbuild.v2.RepositoryManager.FetchReadToken", - "async": true, - "parameters": [ - { - "name": "repository", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devtools.cloudbuild.v2.FetchReadTokenResponse", - "client": { - "shortName": "RepositoryManagerClient", - "fullName": "google.devtools.cloudbuild.v2.RepositoryManagerClient" - }, - "method": { - "shortName": "FetchReadToken", - "fullName": "google.devtools.cloudbuild.v2.RepositoryManager.FetchReadToken", - "service": { - "shortName": "RepositoryManager", - "fullName": "google.devtools.cloudbuild.v2.RepositoryManager" - } - } - } - }, - { - "regionTag": "cloudbuild_v2_generated_RepositoryManager_FetchLinkableRepositories_async", - "title": "RepositoryManager fetchLinkableRepositories Sample", - "origin": "API_DEFINITION", - "description": " FetchLinkableRepositories get repositories from SCM that are accessible and could be added to the connection.", - "canonical": true, - "file": "repository_manager.fetch_linkable_repositories.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchLinkableRepositories", - "fullName": "google.devtools.cloudbuild.v2.RepositoryManager.FetchLinkableRepositories", - "async": true, - "parameters": [ - { - "name": "connection", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devtools.cloudbuild.v2.FetchLinkableRepositoriesResponse", - "client": { - "shortName": "RepositoryManagerClient", - "fullName": "google.devtools.cloudbuild.v2.RepositoryManagerClient" - }, - "method": { - "shortName": "FetchLinkableRepositories", - "fullName": "google.devtools.cloudbuild.v2.RepositoryManager.FetchLinkableRepositories", - "service": { - "shortName": "RepositoryManager", - "fullName": "google.devtools.cloudbuild.v2.RepositoryManager" - } - } - } - }, - { - "regionTag": "cloudbuild_v2_generated_RepositoryManager_FetchGitRefs_async", - "title": "RepositoryManager fetchGitRefs Sample", - "origin": "API_DEFINITION", - "description": " Fetch the list of branches or tags for a given repository.", - "canonical": true, - "file": "repository_manager.fetch_git_refs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchGitRefs", - "fullName": "google.devtools.cloudbuild.v2.RepositoryManager.FetchGitRefs", - "async": true, - "parameters": [ - { - "name": "repository", - "type": "TYPE_STRING" - }, - { - "name": "ref_type", - "type": ".google.devtools.cloudbuild.v2.FetchGitRefsRequest.RefType" - } - ], - "resultType": ".google.devtools.cloudbuild.v2.FetchGitRefsResponse", - "client": { - "shortName": "RepositoryManagerClient", - "fullName": "google.devtools.cloudbuild.v2.RepositoryManagerClient" - }, - "method": { - "shortName": "FetchGitRefs", - "fullName": "google.devtools.cloudbuild.v2.RepositoryManager.FetchGitRefs", - "service": { - "shortName": "RepositoryManager", - "fullName": "google.devtools.cloudbuild.v2.RepositoryManager" - } - } - } - } - ] -} diff --git a/packages/google-devtools-cloudprofiler/samples/generated/v2/snippet_metadata_google.devtools.cloudprofiler.v2.json b/packages/google-devtools-cloudprofiler/samples/generated/v2/snippet_metadata_google.devtools.cloudprofiler.v2.json deleted file mode 100644 index 2c873442c667..000000000000 --- a/packages/google-devtools-cloudprofiler/samples/generated/v2/snippet_metadata_google.devtools.cloudprofiler.v2.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-cloudprofiler", - "version": "0.9.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.devtools.cloudprofiler.v2", - "version": "v2" - } - ] - }, - "snippets": [ - { - "regionTag": "cloudprofiler_v2_generated_ExportService_ListProfiles_async", - "title": "ExportService listProfiles Sample", - "origin": "API_DEFINITION", - "description": " Lists profiles which have been collected so far and for which the caller has permission to view.", - "canonical": true, - "file": "export_service.list_profiles.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListProfiles", - "fullName": "google.devtools.cloudprofiler.v2.ExportService.ListProfiles", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devtools.cloudprofiler.v2.ListProfilesResponse", - "client": { - "shortName": "ExportServiceClient", - "fullName": "google.devtools.cloudprofiler.v2.ExportServiceClient" - }, - "method": { - "shortName": "ListProfiles", - "fullName": "google.devtools.cloudprofiler.v2.ExportService.ListProfiles", - "service": { - "shortName": "ExportService", - "fullName": "google.devtools.cloudprofiler.v2.ExportService" - } - } - } - }, - { - "regionTag": "cloudprofiler_v2_generated_ProfilerService_CreateProfile_async", - "title": "ExportService createProfile Sample", - "origin": "API_DEFINITION", - "description": " CreateProfile creates a new profile resource in the online mode. _Direct use of this API is discouraged, please use a [supported profiler agent](https://cloud.google.com/profiler/docs/about-profiler#profiling_agent) instead for profile collection._ The server ensures that the new profiles are created at a constant rate per deployment, so the creation request may hang for some time until the next profile session is available. The request may fail with ABORTED error if the creation is not available within ~1m, the response will indicate the duration of the backoff the client should take before attempting creating a profile again. The backoff duration is returned in google.rpc.RetryInfo extension on the response status. To a gRPC client, the extension will be return as a binary-serialized proto in the trailing metadata item named \"google.rpc.retryinfo-bin\".", - "canonical": true, - "file": "profiler_service.create_profile.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateProfile", - "fullName": "google.devtools.cloudprofiler.v2.ProfilerService.CreateProfile", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "deployment", - "type": ".google.devtools.cloudprofiler.v2.Deployment" - }, - { - "name": "profile_type", - "type": "TYPE_ENUM[]" - } - ], - "resultType": ".google.devtools.cloudprofiler.v2.Profile", - "client": { - "shortName": "ProfilerServiceClient", - "fullName": "google.devtools.cloudprofiler.v2.ProfilerServiceClient" - }, - "method": { - "shortName": "CreateProfile", - "fullName": "google.devtools.cloudprofiler.v2.ProfilerService.CreateProfile", - "service": { - "shortName": "ProfilerService", - "fullName": "google.devtools.cloudprofiler.v2.ProfilerService" - } - } - } - }, - { - "regionTag": "cloudprofiler_v2_generated_ProfilerService_CreateOfflineProfile_async", - "title": "ExportService createOfflineProfile Sample", - "origin": "API_DEFINITION", - "description": " CreateOfflineProfile creates a new profile resource in the offline mode. The client provides the profile to create along with the profile bytes, the server records it. _Direct use of this API is discouraged, please use a [supported profiler agent](https://cloud.google.com/profiler/docs/about-profiler#profiling_agent) instead for profile collection._", - "canonical": true, - "file": "profiler_service.create_offline_profile.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateOfflineProfile", - "fullName": "google.devtools.cloudprofiler.v2.ProfilerService.CreateOfflineProfile", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "profile", - "type": ".google.devtools.cloudprofiler.v2.Profile" - } - ], - "resultType": ".google.devtools.cloudprofiler.v2.Profile", - "client": { - "shortName": "ProfilerServiceClient", - "fullName": "google.devtools.cloudprofiler.v2.ProfilerServiceClient" - }, - "method": { - "shortName": "CreateOfflineProfile", - "fullName": "google.devtools.cloudprofiler.v2.ProfilerService.CreateOfflineProfile", - "service": { - "shortName": "ProfilerService", - "fullName": "google.devtools.cloudprofiler.v2.ProfilerService" - } - } - } - }, - { - "regionTag": "cloudprofiler_v2_generated_ProfilerService_UpdateProfile_async", - "title": "ExportService updateProfile Sample", - "origin": "API_DEFINITION", - "description": " UpdateProfile updates the profile bytes and labels on the profile resource created in the online mode. Updating the bytes for profiles created in the offline mode is currently not supported: the profile content must be provided at the time of the profile creation. _Direct use of this API is discouraged, please use a [supported profiler agent](https://cloud.google.com/profiler/docs/about-profiler#profiling_agent) instead for profile collection._", - "canonical": true, - "file": "profiler_service.update_profile.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateProfile", - "fullName": "google.devtools.cloudprofiler.v2.ProfilerService.UpdateProfile", - "async": true, - "parameters": [ - { - "name": "profile", - "type": ".google.devtools.cloudprofiler.v2.Profile" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.devtools.cloudprofiler.v2.Profile", - "client": { - "shortName": "ProfilerServiceClient", - "fullName": "google.devtools.cloudprofiler.v2.ProfilerServiceClient" - }, - "method": { - "shortName": "UpdateProfile", - "fullName": "google.devtools.cloudprofiler.v2.ProfilerService.UpdateProfile", - "service": { - "shortName": "ProfilerService", - "fullName": "google.devtools.cloudprofiler.v2.ProfilerService" - } - } - } - } - ] -} diff --git a/packages/google-devtools-containeranalysis/samples/generated/v1/snippet_metadata_google.devtools.containeranalysis.v1.json b/packages/google-devtools-containeranalysis/samples/generated/v1/snippet_metadata_google.devtools.containeranalysis.v1.json deleted file mode 100644 index 2715a83d26be..000000000000 --- a/packages/google-devtools-containeranalysis/samples/generated/v1/snippet_metadata_google.devtools.containeranalysis.v1.json +++ /dev/null @@ -1,879 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-containeranalysis", - "version": "6.7.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.devtools.containeranalysis.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "containeranalysis_v1_generated_ContainerAnalysis_SetIamPolicy_async", - "title": "containeranalysis setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified note or occurrence. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or an occurrence, respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.", - "canonical": true, - "file": "container_analysis.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.devtools.containeranalysis.v1.ContainerAnalysis.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.iam.v1.Policy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "ContainerAnalysisClient", - "fullName": "google.devtools.containeranalysis.v1.ContainerAnalysisClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.devtools.containeranalysis.v1.ContainerAnalysis.SetIamPolicy", - "service": { - "shortName": "ContainerAnalysis", - "fullName": "google.devtools.containeranalysis.v1.ContainerAnalysis" - } - } - } - }, - { - "regionTag": "containeranalysis_v1_generated_ContainerAnalysis_GetIamPolicy_async", - "title": "containeranalysis getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a note or an occurrence resource. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or occurrence, respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.", - "canonical": true, - "file": "container_analysis.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.devtools.containeranalysis.v1.ContainerAnalysis.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": ".google.iam.v1.GetPolicyOptions" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "ContainerAnalysisClient", - "fullName": "google.devtools.containeranalysis.v1.ContainerAnalysisClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.devtools.containeranalysis.v1.ContainerAnalysis.GetIamPolicy", - "service": { - "shortName": "ContainerAnalysis", - "fullName": "google.devtools.containeranalysis.v1.ContainerAnalysis" - } - } - } - }, - { - "regionTag": "containeranalysis_v1_generated_ContainerAnalysis_TestIamPermissions_async", - "title": "containeranalysis testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns the permissions that a caller has on the specified note or occurrence. Requires list permission on the project (for example, `containeranalysis.notes.list`). The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.", - "canonical": true, - "file": "container_analysis.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.devtools.containeranalysis.v1.ContainerAnalysis.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "permissions", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.iam.v1.TestIamPermissionsResponse", - "client": { - "shortName": "ContainerAnalysisClient", - "fullName": "google.devtools.containeranalysis.v1.ContainerAnalysisClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.devtools.containeranalysis.v1.ContainerAnalysis.TestIamPermissions", - "service": { - "shortName": "ContainerAnalysis", - "fullName": "google.devtools.containeranalysis.v1.ContainerAnalysis" - } - } - } - }, - { - "regionTag": "containeranalysis_v1_generated_ContainerAnalysis_GetVulnerabilityOccurrencesSummary_async", - "title": "containeranalysis getVulnerabilityOccurrencesSummary Sample", - "origin": "API_DEFINITION", - "description": " Gets a summary of the number and severity of occurrences.", - "canonical": true, - "file": "container_analysis.get_vulnerability_occurrences_summary.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetVulnerabilityOccurrencesSummary", - "fullName": "google.devtools.containeranalysis.v1.ContainerAnalysis.GetVulnerabilityOccurrencesSummary", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devtools.containeranalysis.v1.VulnerabilityOccurrencesSummary", - "client": { - "shortName": "ContainerAnalysisClient", - "fullName": "google.devtools.containeranalysis.v1.ContainerAnalysisClient" - }, - "method": { - "shortName": "GetVulnerabilityOccurrencesSummary", - "fullName": "google.devtools.containeranalysis.v1.ContainerAnalysis.GetVulnerabilityOccurrencesSummary", - "service": { - "shortName": "ContainerAnalysis", - "fullName": "google.devtools.containeranalysis.v1.ContainerAnalysis" - } - } - } - }, - { - "regionTag": "containeranalysis_v1_generated_ContainerAnalysis_ExportSBOM_async", - "title": "containeranalysis exportSBOM Sample", - "origin": "API_DEFINITION", - "description": " Generates an SBOM for the given resource.", - "canonical": true, - "file": "container_analysis.export_s_b_o_m.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportSBOM", - "fullName": "google.devtools.containeranalysis.v1.ContainerAnalysis.ExportSBOM", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "cloud_storage_location", - "type": ".google.devtools.containeranalysis.v1.ExportSBOMRequest.CloudStorageLocation" - } - ], - "resultType": ".google.devtools.containeranalysis.v1.ExportSBOMResponse", - "client": { - "shortName": "ContainerAnalysisClient", - "fullName": "google.devtools.containeranalysis.v1.ContainerAnalysisClient" - }, - "method": { - "shortName": "ExportSBOM", - "fullName": "google.devtools.containeranalysis.v1.ContainerAnalysis.ExportSBOM", - "service": { - "shortName": "ContainerAnalysis", - "fullName": "google.devtools.containeranalysis.v1.ContainerAnalysis" - } - } - } - }, - { - "regionTag": "containeranalysis_v1_generated_Grafeas_GetOccurrence_async", - "title": "containeranalysis getOccurrence Sample", - "origin": "API_DEFINITION", - "description": " Gets the specified occurrence.", - "canonical": true, - "file": "grafeas.get_occurrence.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetOccurrence", - "fullName": "google.devtools.containeranalysis.v1.Grafeas.GetOccurrence", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".grafeas.v1.Occurrence", - "client": { - "shortName": "GrafeasClient", - "fullName": "google.devtools.containeranalysis.v1.GrafeasClient" - }, - "method": { - "shortName": "GetOccurrence", - "fullName": "google.devtools.containeranalysis.v1.Grafeas.GetOccurrence", - "service": { - "shortName": "Grafeas", - "fullName": "google.devtools.containeranalysis.v1.Grafeas" - } - } - } - }, - { - "regionTag": "containeranalysis_v1_generated_Grafeas_ListOccurrences_async", - "title": "containeranalysis listOccurrences Sample", - "origin": "API_DEFINITION", - "description": " Lists occurrences for the specified project.", - "canonical": true, - "file": "grafeas.list_occurrences.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListOccurrences", - "fullName": "google.devtools.containeranalysis.v1.Grafeas.ListOccurrences", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".grafeas.v1.ListOccurrencesResponse", - "client": { - "shortName": "GrafeasClient", - "fullName": "google.devtools.containeranalysis.v1.GrafeasClient" - }, - "method": { - "shortName": "ListOccurrences", - "fullName": "google.devtools.containeranalysis.v1.Grafeas.ListOccurrences", - "service": { - "shortName": "Grafeas", - "fullName": "google.devtools.containeranalysis.v1.Grafeas" - } - } - } - }, - { - "regionTag": "containeranalysis_v1_generated_Grafeas_DeleteOccurrence_async", - "title": "containeranalysis deleteOccurrence Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified occurrence. For example, use this method to delete an occurrence when the occurrence is no longer applicable for the given resource.", - "canonical": true, - "file": "grafeas.delete_occurrence.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteOccurrence", - "fullName": "google.devtools.containeranalysis.v1.Grafeas.DeleteOccurrence", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "GrafeasClient", - "fullName": "google.devtools.containeranalysis.v1.GrafeasClient" - }, - "method": { - "shortName": "DeleteOccurrence", - "fullName": "google.devtools.containeranalysis.v1.Grafeas.DeleteOccurrence", - "service": { - "shortName": "Grafeas", - "fullName": "google.devtools.containeranalysis.v1.Grafeas" - } - } - } - }, - { - "regionTag": "containeranalysis_v1_generated_Grafeas_CreateOccurrence_async", - "title": "containeranalysis createOccurrence Sample", - "origin": "API_DEFINITION", - "description": " Creates a new occurrence.", - "canonical": true, - "file": "grafeas.create_occurrence.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateOccurrence", - "fullName": "google.devtools.containeranalysis.v1.Grafeas.CreateOccurrence", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "occurrence", - "type": ".grafeas.v1.Occurrence" - } - ], - "resultType": ".grafeas.v1.Occurrence", - "client": { - "shortName": "GrafeasClient", - "fullName": "google.devtools.containeranalysis.v1.GrafeasClient" - }, - "method": { - "shortName": "CreateOccurrence", - "fullName": "google.devtools.containeranalysis.v1.Grafeas.CreateOccurrence", - "service": { - "shortName": "Grafeas", - "fullName": "google.devtools.containeranalysis.v1.Grafeas" - } - } - } - }, - { - "regionTag": "containeranalysis_v1_generated_Grafeas_BatchCreateOccurrences_async", - "title": "containeranalysis batchCreateOccurrences Sample", - "origin": "API_DEFINITION", - "description": " Creates new occurrences in batch.", - "canonical": true, - "file": "grafeas.batch_create_occurrences.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCreateOccurrences", - "fullName": "google.devtools.containeranalysis.v1.Grafeas.BatchCreateOccurrences", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "occurrences", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".grafeas.v1.BatchCreateOccurrencesResponse", - "client": { - "shortName": "GrafeasClient", - "fullName": "google.devtools.containeranalysis.v1.GrafeasClient" - }, - "method": { - "shortName": "BatchCreateOccurrences", - "fullName": "google.devtools.containeranalysis.v1.Grafeas.BatchCreateOccurrences", - "service": { - "shortName": "Grafeas", - "fullName": "google.devtools.containeranalysis.v1.Grafeas" - } - } - } - }, - { - "regionTag": "containeranalysis_v1_generated_Grafeas_UpdateOccurrence_async", - "title": "containeranalysis updateOccurrence Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified occurrence.", - "canonical": true, - "file": "grafeas.update_occurrence.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateOccurrence", - "fullName": "google.devtools.containeranalysis.v1.Grafeas.UpdateOccurrence", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "occurrence", - "type": ".grafeas.v1.Occurrence" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".grafeas.v1.Occurrence", - "client": { - "shortName": "GrafeasClient", - "fullName": "google.devtools.containeranalysis.v1.GrafeasClient" - }, - "method": { - "shortName": "UpdateOccurrence", - "fullName": "google.devtools.containeranalysis.v1.Grafeas.UpdateOccurrence", - "service": { - "shortName": "Grafeas", - "fullName": "google.devtools.containeranalysis.v1.Grafeas" - } - } - } - }, - { - "regionTag": "containeranalysis_v1_generated_Grafeas_GetOccurrenceNote_async", - "title": "containeranalysis getOccurrenceNote Sample", - "origin": "API_DEFINITION", - "description": " Gets the note attached to the specified occurrence. Consumer projects can use this method to get a note that belongs to a provider project.", - "canonical": true, - "file": "grafeas.get_occurrence_note.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetOccurrenceNote", - "fullName": "google.devtools.containeranalysis.v1.Grafeas.GetOccurrenceNote", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".grafeas.v1.Note", - "client": { - "shortName": "GrafeasClient", - "fullName": "google.devtools.containeranalysis.v1.GrafeasClient" - }, - "method": { - "shortName": "GetOccurrenceNote", - "fullName": "google.devtools.containeranalysis.v1.Grafeas.GetOccurrenceNote", - "service": { - "shortName": "Grafeas", - "fullName": "google.devtools.containeranalysis.v1.Grafeas" - } - } - } - }, - { - "regionTag": "containeranalysis_v1_generated_Grafeas_GetNote_async", - "title": "containeranalysis getNote Sample", - "origin": "API_DEFINITION", - "description": " Gets the specified note.", - "canonical": true, - "file": "grafeas.get_note.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetNote", - "fullName": "google.devtools.containeranalysis.v1.Grafeas.GetNote", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".grafeas.v1.Note", - "client": { - "shortName": "GrafeasClient", - "fullName": "google.devtools.containeranalysis.v1.GrafeasClient" - }, - "method": { - "shortName": "GetNote", - "fullName": "google.devtools.containeranalysis.v1.Grafeas.GetNote", - "service": { - "shortName": "Grafeas", - "fullName": "google.devtools.containeranalysis.v1.Grafeas" - } - } - } - }, - { - "regionTag": "containeranalysis_v1_generated_Grafeas_ListNotes_async", - "title": "containeranalysis listNotes Sample", - "origin": "API_DEFINITION", - "description": " Lists notes for the specified project.", - "canonical": true, - "file": "grafeas.list_notes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListNotes", - "fullName": "google.devtools.containeranalysis.v1.Grafeas.ListNotes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".grafeas.v1.ListNotesResponse", - "client": { - "shortName": "GrafeasClient", - "fullName": "google.devtools.containeranalysis.v1.GrafeasClient" - }, - "method": { - "shortName": "ListNotes", - "fullName": "google.devtools.containeranalysis.v1.Grafeas.ListNotes", - "service": { - "shortName": "Grafeas", - "fullName": "google.devtools.containeranalysis.v1.Grafeas" - } - } - } - }, - { - "regionTag": "containeranalysis_v1_generated_Grafeas_DeleteNote_async", - "title": "containeranalysis deleteNote Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified note.", - "canonical": true, - "file": "grafeas.delete_note.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteNote", - "fullName": "google.devtools.containeranalysis.v1.Grafeas.DeleteNote", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "GrafeasClient", - "fullName": "google.devtools.containeranalysis.v1.GrafeasClient" - }, - "method": { - "shortName": "DeleteNote", - "fullName": "google.devtools.containeranalysis.v1.Grafeas.DeleteNote", - "service": { - "shortName": "Grafeas", - "fullName": "google.devtools.containeranalysis.v1.Grafeas" - } - } - } - }, - { - "regionTag": "containeranalysis_v1_generated_Grafeas_CreateNote_async", - "title": "containeranalysis createNote Sample", - "origin": "API_DEFINITION", - "description": " Creates a new note.", - "canonical": true, - "file": "grafeas.create_note.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateNote", - "fullName": "google.devtools.containeranalysis.v1.Grafeas.CreateNote", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "note_id", - "type": "TYPE_STRING" - }, - { - "name": "note", - "type": ".grafeas.v1.Note" - } - ], - "resultType": ".grafeas.v1.Note", - "client": { - "shortName": "GrafeasClient", - "fullName": "google.devtools.containeranalysis.v1.GrafeasClient" - }, - "method": { - "shortName": "CreateNote", - "fullName": "google.devtools.containeranalysis.v1.Grafeas.CreateNote", - "service": { - "shortName": "Grafeas", - "fullName": "google.devtools.containeranalysis.v1.Grafeas" - } - } - } - }, - { - "regionTag": "containeranalysis_v1_generated_Grafeas_BatchCreateNotes_async", - "title": "containeranalysis batchCreateNotes Sample", - "origin": "API_DEFINITION", - "description": " Creates new notes in batch.", - "canonical": true, - "file": "grafeas.batch_create_notes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCreateNotes", - "fullName": "google.devtools.containeranalysis.v1.Grafeas.BatchCreateNotes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "notes", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".grafeas.v1.BatchCreateNotesResponse", - "client": { - "shortName": "GrafeasClient", - "fullName": "google.devtools.containeranalysis.v1.GrafeasClient" - }, - "method": { - "shortName": "BatchCreateNotes", - "fullName": "google.devtools.containeranalysis.v1.Grafeas.BatchCreateNotes", - "service": { - "shortName": "Grafeas", - "fullName": "google.devtools.containeranalysis.v1.Grafeas" - } - } - } - }, - { - "regionTag": "containeranalysis_v1_generated_Grafeas_UpdateNote_async", - "title": "containeranalysis updateNote Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified note.", - "canonical": true, - "file": "grafeas.update_note.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateNote", - "fullName": "google.devtools.containeranalysis.v1.Grafeas.UpdateNote", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "note", - "type": ".grafeas.v1.Note" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".grafeas.v1.Note", - "client": { - "shortName": "GrafeasClient", - "fullName": "google.devtools.containeranalysis.v1.GrafeasClient" - }, - "method": { - "shortName": "UpdateNote", - "fullName": "google.devtools.containeranalysis.v1.Grafeas.UpdateNote", - "service": { - "shortName": "Grafeas", - "fullName": "google.devtools.containeranalysis.v1.Grafeas" - } - } - } - }, - { - "regionTag": "containeranalysis_v1_generated_Grafeas_ListNoteOccurrences_async", - "title": "containeranalysis listNoteOccurrences Sample", - "origin": "API_DEFINITION", - "description": " Lists occurrences referencing the specified note. Provider projects can use this method to get all occurrences across consumer projects referencing the specified note.", - "canonical": true, - "file": "grafeas.list_note_occurrences.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListNoteOccurrences", - "fullName": "google.devtools.containeranalysis.v1.Grafeas.ListNoteOccurrences", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".grafeas.v1.ListNoteOccurrencesResponse", - "client": { - "shortName": "GrafeasClient", - "fullName": "google.devtools.containeranalysis.v1.GrafeasClient" - }, - "method": { - "shortName": "ListNoteOccurrences", - "fullName": "google.devtools.containeranalysis.v1.Grafeas.ListNoteOccurrences", - "service": { - "shortName": "Grafeas", - "fullName": "google.devtools.containeranalysis.v1.Grafeas" - } - } - } - } - ] -} diff --git a/packages/google-devtools-containeranalysis/samples/generated/v1beta1/snippet_metadata_google.devtools.containeranalysis.v1beta1.json b/packages/google-devtools-containeranalysis/samples/generated/v1beta1/snippet_metadata_google.devtools.containeranalysis.v1beta1.json deleted file mode 100644 index d7f71f33bbe2..000000000000 --- a/packages/google-devtools-containeranalysis/samples/generated/v1beta1/snippet_metadata_google.devtools.containeranalysis.v1beta1.json +++ /dev/null @@ -1,907 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-containeranalysis", - "version": "6.7.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.devtools.containeranalysis.v1beta1", - "version": "v1beta1" - } - ] - }, - "snippets": [ - { - "regionTag": "containeranalysis_v1beta1_generated_ContainerAnalysisV1Beta1_SetIamPolicy_async", - "title": "containeranalysis setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the access control policy on the specified note or occurrence. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or an occurrence, respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.", - "canonical": true, - "file": "container_analysis_v1_beta1.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.iam.v1.Policy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "ContainerAnalysisV1Beta1Client", - "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1Client" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1.SetIamPolicy", - "service": { - "shortName": "ContainerAnalysisV1Beta1", - "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1" - } - } - } - }, - { - "regionTag": "containeranalysis_v1beta1_generated_ContainerAnalysisV1Beta1_GetIamPolicy_async", - "title": "containeranalysis getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the access control policy for a note or an occurrence resource. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or occurrence, respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.", - "canonical": true, - "file": "container_analysis_v1_beta1.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": ".google.iam.v1.GetPolicyOptions" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "ContainerAnalysisV1Beta1Client", - "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1Client" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1.GetIamPolicy", - "service": { - "shortName": "ContainerAnalysisV1Beta1", - "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1" - } - } - } - }, - { - "regionTag": "containeranalysis_v1beta1_generated_ContainerAnalysisV1Beta1_TestIamPermissions_async", - "title": "containeranalysis testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns the permissions that a caller has on the specified note or occurrence. Requires list permission on the project (for example, `containeranalysis.notes.list`). The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.", - "canonical": true, - "file": "container_analysis_v1_beta1.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "permissions", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.iam.v1.TestIamPermissionsResponse", - "client": { - "shortName": "ContainerAnalysisV1Beta1Client", - "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1Client" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1.TestIamPermissions", - "service": { - "shortName": "ContainerAnalysisV1Beta1", - "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1" - } - } - } - }, - { - "regionTag": "containeranalysis_v1beta1_generated_ContainerAnalysisV1Beta1_GeneratePackagesSummary_async", - "title": "containeranalysis generatePackagesSummary Sample", - "origin": "API_DEFINITION", - "description": " Gets a summary of the packages within a given resource.", - "canonical": true, - "file": "container_analysis_v1_beta1.generate_packages_summary.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GeneratePackagesSummary", - "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1.GeneratePackagesSummary", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devtools.containeranalysis.v1beta1.PackagesSummaryResponse", - "client": { - "shortName": "ContainerAnalysisV1Beta1Client", - "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1Client" - }, - "method": { - "shortName": "GeneratePackagesSummary", - "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1.GeneratePackagesSummary", - "service": { - "shortName": "ContainerAnalysisV1Beta1", - "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1" - } - } - } - }, - { - "regionTag": "containeranalysis_v1beta1_generated_ContainerAnalysisV1Beta1_ExportSBOM_async", - "title": "containeranalysis exportSBOM Sample", - "origin": "API_DEFINITION", - "description": " Generates an SBOM and other dependency information for the given resource.", - "canonical": true, - "file": "container_analysis_v1_beta1.export_s_b_o_m.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ExportSBOM", - "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1.ExportSBOM", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.devtools.containeranalysis.v1beta1.ExportSBOMResponse", - "client": { - "shortName": "ContainerAnalysisV1Beta1Client", - "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1Client" - }, - "method": { - "shortName": "ExportSBOM", - "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1.ExportSBOM", - "service": { - "shortName": "ContainerAnalysisV1Beta1", - "fullName": "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1" - } - } - } - }, - { - "regionTag": "containeranalysis_v1beta1_generated_GrafeasV1Beta1_GetOccurrence_async", - "title": "containeranalysis getOccurrence Sample", - "origin": "API_DEFINITION", - "description": " Gets the specified occurrence.", - "canonical": true, - "file": "grafeas_v1_beta1.get_occurrence.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetOccurrence", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.GetOccurrence", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".grafeas.v1beta1.Occurrence", - "client": { - "shortName": "GrafeasV1Beta1Client", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1Client" - }, - "method": { - "shortName": "GetOccurrence", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.GetOccurrence", - "service": { - "shortName": "GrafeasV1Beta1", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1" - } - } - } - }, - { - "regionTag": "containeranalysis_v1beta1_generated_GrafeasV1Beta1_ListOccurrences_async", - "title": "containeranalysis listOccurrences Sample", - "origin": "API_DEFINITION", - "description": " Lists occurrences for the specified project.", - "canonical": true, - "file": "grafeas_v1_beta1.list_occurrences.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListOccurrences", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.ListOccurrences", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".grafeas.v1beta1.ListOccurrencesResponse", - "client": { - "shortName": "GrafeasV1Beta1Client", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1Client" - }, - "method": { - "shortName": "ListOccurrences", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.ListOccurrences", - "service": { - "shortName": "GrafeasV1Beta1", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1" - } - } - } - }, - { - "regionTag": "containeranalysis_v1beta1_generated_GrafeasV1Beta1_DeleteOccurrence_async", - "title": "containeranalysis deleteOccurrence Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified occurrence. For example, use this method to delete an occurrence when the occurrence is no longer applicable for the given resource.", - "canonical": true, - "file": "grafeas_v1_beta1.delete_occurrence.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteOccurrence", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.DeleteOccurrence", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "GrafeasV1Beta1Client", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1Client" - }, - "method": { - "shortName": "DeleteOccurrence", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.DeleteOccurrence", - "service": { - "shortName": "GrafeasV1Beta1", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1" - } - } - } - }, - { - "regionTag": "containeranalysis_v1beta1_generated_GrafeasV1Beta1_CreateOccurrence_async", - "title": "containeranalysis createOccurrence Sample", - "origin": "API_DEFINITION", - "description": " Creates a new occurrence.", - "canonical": true, - "file": "grafeas_v1_beta1.create_occurrence.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateOccurrence", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.CreateOccurrence", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "occurrence", - "type": ".grafeas.v1beta1.Occurrence" - } - ], - "resultType": ".grafeas.v1beta1.Occurrence", - "client": { - "shortName": "GrafeasV1Beta1Client", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1Client" - }, - "method": { - "shortName": "CreateOccurrence", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.CreateOccurrence", - "service": { - "shortName": "GrafeasV1Beta1", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1" - } - } - } - }, - { - "regionTag": "containeranalysis_v1beta1_generated_GrafeasV1Beta1_BatchCreateOccurrences_async", - "title": "containeranalysis batchCreateOccurrences Sample", - "origin": "API_DEFINITION", - "description": " Creates new occurrences in batch.", - "canonical": true, - "file": "grafeas_v1_beta1.batch_create_occurrences.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCreateOccurrences", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.BatchCreateOccurrences", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "occurrences", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".grafeas.v1beta1.BatchCreateOccurrencesResponse", - "client": { - "shortName": "GrafeasV1Beta1Client", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1Client" - }, - "method": { - "shortName": "BatchCreateOccurrences", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.BatchCreateOccurrences", - "service": { - "shortName": "GrafeasV1Beta1", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1" - } - } - } - }, - { - "regionTag": "containeranalysis_v1beta1_generated_GrafeasV1Beta1_UpdateOccurrence_async", - "title": "containeranalysis updateOccurrence Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified occurrence.", - "canonical": true, - "file": "grafeas_v1_beta1.update_occurrence.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateOccurrence", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.UpdateOccurrence", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "occurrence", - "type": ".grafeas.v1beta1.Occurrence" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".grafeas.v1beta1.Occurrence", - "client": { - "shortName": "GrafeasV1Beta1Client", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1Client" - }, - "method": { - "shortName": "UpdateOccurrence", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.UpdateOccurrence", - "service": { - "shortName": "GrafeasV1Beta1", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1" - } - } - } - }, - { - "regionTag": "containeranalysis_v1beta1_generated_GrafeasV1Beta1_GetOccurrenceNote_async", - "title": "containeranalysis getOccurrenceNote Sample", - "origin": "API_DEFINITION", - "description": " Gets the note attached to the specified occurrence. Consumer projects can use this method to get a note that belongs to a provider project.", - "canonical": true, - "file": "grafeas_v1_beta1.get_occurrence_note.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetOccurrenceNote", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.GetOccurrenceNote", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".grafeas.v1beta1.Note", - "client": { - "shortName": "GrafeasV1Beta1Client", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1Client" - }, - "method": { - "shortName": "GetOccurrenceNote", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.GetOccurrenceNote", - "service": { - "shortName": "GrafeasV1Beta1", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1" - } - } - } - }, - { - "regionTag": "containeranalysis_v1beta1_generated_GrafeasV1Beta1_GetNote_async", - "title": "containeranalysis getNote Sample", - "origin": "API_DEFINITION", - "description": " Gets the specified note.", - "canonical": true, - "file": "grafeas_v1_beta1.get_note.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetNote", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.GetNote", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".grafeas.v1beta1.Note", - "client": { - "shortName": "GrafeasV1Beta1Client", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1Client" - }, - "method": { - "shortName": "GetNote", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.GetNote", - "service": { - "shortName": "GrafeasV1Beta1", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1" - } - } - } - }, - { - "regionTag": "containeranalysis_v1beta1_generated_GrafeasV1Beta1_ListNotes_async", - "title": "containeranalysis listNotes Sample", - "origin": "API_DEFINITION", - "description": " Lists notes for the specified project.", - "canonical": true, - "file": "grafeas_v1_beta1.list_notes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListNotes", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.ListNotes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".grafeas.v1beta1.ListNotesResponse", - "client": { - "shortName": "GrafeasV1Beta1Client", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1Client" - }, - "method": { - "shortName": "ListNotes", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.ListNotes", - "service": { - "shortName": "GrafeasV1Beta1", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1" - } - } - } - }, - { - "regionTag": "containeranalysis_v1beta1_generated_GrafeasV1Beta1_DeleteNote_async", - "title": "containeranalysis deleteNote Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified note.", - "canonical": true, - "file": "grafeas_v1_beta1.delete_note.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteNote", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.DeleteNote", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "GrafeasV1Beta1Client", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1Client" - }, - "method": { - "shortName": "DeleteNote", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.DeleteNote", - "service": { - "shortName": "GrafeasV1Beta1", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1" - } - } - } - }, - { - "regionTag": "containeranalysis_v1beta1_generated_GrafeasV1Beta1_CreateNote_async", - "title": "containeranalysis createNote Sample", - "origin": "API_DEFINITION", - "description": " Creates a new note.", - "canonical": true, - "file": "grafeas_v1_beta1.create_note.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateNote", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.CreateNote", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "note_id", - "type": "TYPE_STRING" - }, - { - "name": "note", - "type": ".grafeas.v1beta1.Note" - } - ], - "resultType": ".grafeas.v1beta1.Note", - "client": { - "shortName": "GrafeasV1Beta1Client", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1Client" - }, - "method": { - "shortName": "CreateNote", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.CreateNote", - "service": { - "shortName": "GrafeasV1Beta1", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1" - } - } - } - }, - { - "regionTag": "containeranalysis_v1beta1_generated_GrafeasV1Beta1_BatchCreateNotes_async", - "title": "containeranalysis batchCreateNotes Sample", - "origin": "API_DEFINITION", - "description": " Creates new notes in batch.", - "canonical": true, - "file": "grafeas_v1_beta1.batch_create_notes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCreateNotes", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.BatchCreateNotes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "notes", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".grafeas.v1beta1.BatchCreateNotesResponse", - "client": { - "shortName": "GrafeasV1Beta1Client", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1Client" - }, - "method": { - "shortName": "BatchCreateNotes", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.BatchCreateNotes", - "service": { - "shortName": "GrafeasV1Beta1", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1" - } - } - } - }, - { - "regionTag": "containeranalysis_v1beta1_generated_GrafeasV1Beta1_UpdateNote_async", - "title": "containeranalysis updateNote Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified note.", - "canonical": true, - "file": "grafeas_v1_beta1.update_note.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateNote", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.UpdateNote", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "note", - "type": ".grafeas.v1beta1.Note" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".grafeas.v1beta1.Note", - "client": { - "shortName": "GrafeasV1Beta1Client", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1Client" - }, - "method": { - "shortName": "UpdateNote", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.UpdateNote", - "service": { - "shortName": "GrafeasV1Beta1", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1" - } - } - } - }, - { - "regionTag": "containeranalysis_v1beta1_generated_GrafeasV1Beta1_ListNoteOccurrences_async", - "title": "containeranalysis listNoteOccurrences Sample", - "origin": "API_DEFINITION", - "description": " Lists occurrences referencing the specified note. Provider projects can use this method to get all occurrences across consumer projects referencing the specified note.", - "canonical": true, - "file": "grafeas_v1_beta1.list_note_occurrences.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListNoteOccurrences", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.ListNoteOccurrences", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".grafeas.v1beta1.ListNoteOccurrencesResponse", - "client": { - "shortName": "GrafeasV1Beta1Client", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1Client" - }, - "method": { - "shortName": "ListNoteOccurrences", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.ListNoteOccurrences", - "service": { - "shortName": "GrafeasV1Beta1", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1" - } - } - } - }, - { - "regionTag": "containeranalysis_v1beta1_generated_GrafeasV1Beta1_GetVulnerabilityOccurrencesSummary_async", - "title": "containeranalysis getVulnerabilityOccurrencesSummary Sample", - "origin": "API_DEFINITION", - "description": " Gets a summary of the number and severity of occurrences.", - "canonical": true, - "file": "grafeas_v1_beta1.get_vulnerability_occurrences_summary.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetVulnerabilityOccurrencesSummary", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.GetVulnerabilityOccurrencesSummary", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".grafeas.v1beta1.VulnerabilityOccurrencesSummary", - "client": { - "shortName": "GrafeasV1Beta1Client", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1Client" - }, - "method": { - "shortName": "GetVulnerabilityOccurrencesSummary", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1.GetVulnerabilityOccurrencesSummary", - "service": { - "shortName": "GrafeasV1Beta1", - "fullName": "google.devtools.containeranalysis.v1beta1.GrafeasV1Beta1" - } - } - } - } - ] -} diff --git a/packages/google-iam-credentials/samples/generated/v1/snippet_metadata_google.iam.credentials.v1.json b/packages/google-iam-credentials/samples/generated/v1/snippet_metadata_google.iam.credentials.v1.json deleted file mode 100644 index f1e78564008c..000000000000 --- a/packages/google-iam-credentials/samples/generated/v1/snippet_metadata_google.iam.credentials.v1.json +++ /dev/null @@ -1,215 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-credentials", - "version": "4.2.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.iam.credentials.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "iamcredentials_v1_generated_IAMCredentials_GenerateAccessToken_async", - "title": "IAMCredentials generateAccessToken Sample", - "origin": "API_DEFINITION", - "description": " Generates an OAuth 2.0 access token for a service account.", - "canonical": true, - "file": "i_a_m_credentials.generate_access_token.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateAccessToken", - "fullName": "google.iam.credentials.v1.IAMCredentials.GenerateAccessToken", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "delegates", - "type": "TYPE_STRING[]" - }, - { - "name": "scope", - "type": "TYPE_STRING[]" - }, - { - "name": "lifetime", - "type": ".google.protobuf.Duration" - } - ], - "resultType": ".google.iam.credentials.v1.GenerateAccessTokenResponse", - "client": { - "shortName": "IAMCredentialsClient", - "fullName": "google.iam.credentials.v1.IAMCredentialsClient" - }, - "method": { - "shortName": "GenerateAccessToken", - "fullName": "google.iam.credentials.v1.IAMCredentials.GenerateAccessToken", - "service": { - "shortName": "IAMCredentials", - "fullName": "google.iam.credentials.v1.IAMCredentials" - } - } - } - }, - { - "regionTag": "iamcredentials_v1_generated_IAMCredentials_GenerateIdToken_async", - "title": "IAMCredentials generateIdToken Sample", - "origin": "API_DEFINITION", - "description": " Generates an OpenID Connect ID token for a service account.", - "canonical": true, - "file": "i_a_m_credentials.generate_id_token.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GenerateIdToken", - "fullName": "google.iam.credentials.v1.IAMCredentials.GenerateIdToken", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "delegates", - "type": "TYPE_STRING[]" - }, - { - "name": "audience", - "type": "TYPE_STRING" - }, - { - "name": "include_email", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.iam.credentials.v1.GenerateIdTokenResponse", - "client": { - "shortName": "IAMCredentialsClient", - "fullName": "google.iam.credentials.v1.IAMCredentialsClient" - }, - "method": { - "shortName": "GenerateIdToken", - "fullName": "google.iam.credentials.v1.IAMCredentials.GenerateIdToken", - "service": { - "shortName": "IAMCredentials", - "fullName": "google.iam.credentials.v1.IAMCredentials" - } - } - } - }, - { - "regionTag": "iamcredentials_v1_generated_IAMCredentials_SignBlob_async", - "title": "IAMCredentials signBlob Sample", - "origin": "API_DEFINITION", - "description": " Signs a blob using a service account's system-managed private key.", - "canonical": true, - "file": "i_a_m_credentials.sign_blob.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SignBlob", - "fullName": "google.iam.credentials.v1.IAMCredentials.SignBlob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "delegates", - "type": "TYPE_STRING[]" - }, - { - "name": "payload", - "type": "TYPE_BYTES" - } - ], - "resultType": ".google.iam.credentials.v1.SignBlobResponse", - "client": { - "shortName": "IAMCredentialsClient", - "fullName": "google.iam.credentials.v1.IAMCredentialsClient" - }, - "method": { - "shortName": "SignBlob", - "fullName": "google.iam.credentials.v1.IAMCredentials.SignBlob", - "service": { - "shortName": "IAMCredentials", - "fullName": "google.iam.credentials.v1.IAMCredentials" - } - } - } - }, - { - "regionTag": "iamcredentials_v1_generated_IAMCredentials_SignJwt_async", - "title": "IAMCredentials signJwt Sample", - "origin": "API_DEFINITION", - "description": " Signs a JWT using a service account's system-managed private key.", - "canonical": true, - "file": "i_a_m_credentials.sign_jwt.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SignJwt", - "fullName": "google.iam.credentials.v1.IAMCredentials.SignJwt", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "delegates", - "type": "TYPE_STRING[]" - }, - { - "name": "payload", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.iam.credentials.v1.SignJwtResponse", - "client": { - "shortName": "IAMCredentialsClient", - "fullName": "google.iam.credentials.v1.IAMCredentialsClient" - }, - "method": { - "shortName": "SignJwt", - "fullName": "google.iam.credentials.v1.IAMCredentials.SignJwt", - "service": { - "shortName": "IAMCredentials", - "fullName": "google.iam.credentials.v1.IAMCredentials" - } - } - } - } - ] -} diff --git a/packages/google-iam/samples/generated/v1beta/snippet_metadata_google.iam.v1beta.json b/packages/google-iam/samples/generated/v1beta/snippet_metadata_google.iam.v1beta.json deleted file mode 100644 index e72290cdd97c..000000000000 --- a/packages/google-iam/samples/generated/v1beta/snippet_metadata_google.iam.v1beta.json +++ /dev/null @@ -1,543 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-iam", - "version": "2.3.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.iam.v1beta", - "version": "v1beta" - } - ] - }, - "snippets": [ - { - "regionTag": "iam_v1beta_generated_WorkloadIdentityPools_ListWorkloadIdentityPools_async", - "title": "WorkloadIdentityPools listWorkloadIdentityPools Sample", - "origin": "API_DEFINITION", - "description": " Lists all non-deleted [WorkloadIdentityPool][google.iam.v1beta.WorkloadIdentityPool]s in a project. If `show_deleted` is set to `true`, then deleted pools are also listed.", - "canonical": true, - "file": "workload_identity_pools.list_workload_identity_pools.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListWorkloadIdentityPools", - "fullName": "google.iam.v1beta.WorkloadIdentityPools.ListWorkloadIdentityPools", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "show_deleted", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.iam.v1beta.ListWorkloadIdentityPoolsResponse", - "client": { - "shortName": "WorkloadIdentityPoolsClient", - "fullName": "google.iam.v1beta.WorkloadIdentityPoolsClient" - }, - "method": { - "shortName": "ListWorkloadIdentityPools", - "fullName": "google.iam.v1beta.WorkloadIdentityPools.ListWorkloadIdentityPools", - "service": { - "shortName": "WorkloadIdentityPools", - "fullName": "google.iam.v1beta.WorkloadIdentityPools" - } - } - } - }, - { - "regionTag": "iam_v1beta_generated_WorkloadIdentityPools_GetWorkloadIdentityPool_async", - "title": "WorkloadIdentityPools getWorkloadIdentityPool Sample", - "origin": "API_DEFINITION", - "description": " Gets an individual [WorkloadIdentityPool][google.iam.v1beta.WorkloadIdentityPool].", - "canonical": true, - "file": "workload_identity_pools.get_workload_identity_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetWorkloadIdentityPool", - "fullName": "google.iam.v1beta.WorkloadIdentityPools.GetWorkloadIdentityPool", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.iam.v1beta.WorkloadIdentityPool", - "client": { - "shortName": "WorkloadIdentityPoolsClient", - "fullName": "google.iam.v1beta.WorkloadIdentityPoolsClient" - }, - "method": { - "shortName": "GetWorkloadIdentityPool", - "fullName": "google.iam.v1beta.WorkloadIdentityPools.GetWorkloadIdentityPool", - "service": { - "shortName": "WorkloadIdentityPools", - "fullName": "google.iam.v1beta.WorkloadIdentityPools" - } - } - } - }, - { - "regionTag": "iam_v1beta_generated_WorkloadIdentityPools_CreateWorkloadIdentityPool_async", - "title": "WorkloadIdentityPools createWorkloadIdentityPool Sample", - "origin": "API_DEFINITION", - "description": " Creates a new [WorkloadIdentityPool][google.iam.v1beta.WorkloadIdentityPool]. You cannot reuse the name of a deleted pool until 30 days after deletion.", - "canonical": true, - "file": "workload_identity_pools.create_workload_identity_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateWorkloadIdentityPool", - "fullName": "google.iam.v1beta.WorkloadIdentityPools.CreateWorkloadIdentityPool", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "workload_identity_pool", - "type": ".google.iam.v1beta.WorkloadIdentityPool" - }, - { - "name": "workload_identity_pool_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkloadIdentityPoolsClient", - "fullName": "google.iam.v1beta.WorkloadIdentityPoolsClient" - }, - "method": { - "shortName": "CreateWorkloadIdentityPool", - "fullName": "google.iam.v1beta.WorkloadIdentityPools.CreateWorkloadIdentityPool", - "service": { - "shortName": "WorkloadIdentityPools", - "fullName": "google.iam.v1beta.WorkloadIdentityPools" - } - } - } - }, - { - "regionTag": "iam_v1beta_generated_WorkloadIdentityPools_UpdateWorkloadIdentityPool_async", - "title": "WorkloadIdentityPools updateWorkloadIdentityPool Sample", - "origin": "API_DEFINITION", - "description": " Updates an existing [WorkloadIdentityPool][google.iam.v1beta.WorkloadIdentityPool].", - "canonical": true, - "file": "workload_identity_pools.update_workload_identity_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateWorkloadIdentityPool", - "fullName": "google.iam.v1beta.WorkloadIdentityPools.UpdateWorkloadIdentityPool", - "async": true, - "parameters": [ - { - "name": "workload_identity_pool", - "type": ".google.iam.v1beta.WorkloadIdentityPool" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkloadIdentityPoolsClient", - "fullName": "google.iam.v1beta.WorkloadIdentityPoolsClient" - }, - "method": { - "shortName": "UpdateWorkloadIdentityPool", - "fullName": "google.iam.v1beta.WorkloadIdentityPools.UpdateWorkloadIdentityPool", - "service": { - "shortName": "WorkloadIdentityPools", - "fullName": "google.iam.v1beta.WorkloadIdentityPools" - } - } - } - }, - { - "regionTag": "iam_v1beta_generated_WorkloadIdentityPools_DeleteWorkloadIdentityPool_async", - "title": "WorkloadIdentityPools deleteWorkloadIdentityPool Sample", - "origin": "API_DEFINITION", - "description": " Deletes a [WorkloadIdentityPool][google.iam.v1beta.WorkloadIdentityPool]. You cannot use a deleted pool to exchange external credentials for Google Cloud credentials. However, deletion does not revoke credentials that have already been issued. Credentials issued for a deleted pool do not grant access to resources. If the pool is undeleted, and the credentials are not expired, they grant access again. You can undelete a pool for 30 days. After 30 days, deletion is permanent. You cannot update deleted pools. However, you can view and list them.", - "canonical": true, - "file": "workload_identity_pools.delete_workload_identity_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteWorkloadIdentityPool", - "fullName": "google.iam.v1beta.WorkloadIdentityPools.DeleteWorkloadIdentityPool", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkloadIdentityPoolsClient", - "fullName": "google.iam.v1beta.WorkloadIdentityPoolsClient" - }, - "method": { - "shortName": "DeleteWorkloadIdentityPool", - "fullName": "google.iam.v1beta.WorkloadIdentityPools.DeleteWorkloadIdentityPool", - "service": { - "shortName": "WorkloadIdentityPools", - "fullName": "google.iam.v1beta.WorkloadIdentityPools" - } - } - } - }, - { - "regionTag": "iam_v1beta_generated_WorkloadIdentityPools_UndeleteWorkloadIdentityPool_async", - "title": "WorkloadIdentityPools undeleteWorkloadIdentityPool Sample", - "origin": "API_DEFINITION", - "description": " Undeletes a [WorkloadIdentityPool][google.iam.v1beta.WorkloadIdentityPool], as long as it was deleted fewer than 30 days ago.", - "canonical": true, - "file": "workload_identity_pools.undelete_workload_identity_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UndeleteWorkloadIdentityPool", - "fullName": "google.iam.v1beta.WorkloadIdentityPools.UndeleteWorkloadIdentityPool", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkloadIdentityPoolsClient", - "fullName": "google.iam.v1beta.WorkloadIdentityPoolsClient" - }, - "method": { - "shortName": "UndeleteWorkloadIdentityPool", - "fullName": "google.iam.v1beta.WorkloadIdentityPools.UndeleteWorkloadIdentityPool", - "service": { - "shortName": "WorkloadIdentityPools", - "fullName": "google.iam.v1beta.WorkloadIdentityPools" - } - } - } - }, - { - "regionTag": "iam_v1beta_generated_WorkloadIdentityPools_ListWorkloadIdentityPoolProviders_async", - "title": "WorkloadIdentityPools listWorkloadIdentityPoolProviders Sample", - "origin": "API_DEFINITION", - "description": " Lists all non-deleted [WorkloadIdentityPoolProvider][google.iam.v1beta.WorkloadIdentityPoolProvider]s in a [WorkloadIdentityPool][google.iam.v1beta.WorkloadIdentityPool]. If `show_deleted` is set to `true`, then deleted providers are also listed.", - "canonical": true, - "file": "workload_identity_pools.list_workload_identity_pool_providers.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListWorkloadIdentityPoolProviders", - "fullName": "google.iam.v1beta.WorkloadIdentityPools.ListWorkloadIdentityPoolProviders", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "show_deleted", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.iam.v1beta.ListWorkloadIdentityPoolProvidersResponse", - "client": { - "shortName": "WorkloadIdentityPoolsClient", - "fullName": "google.iam.v1beta.WorkloadIdentityPoolsClient" - }, - "method": { - "shortName": "ListWorkloadIdentityPoolProviders", - "fullName": "google.iam.v1beta.WorkloadIdentityPools.ListWorkloadIdentityPoolProviders", - "service": { - "shortName": "WorkloadIdentityPools", - "fullName": "google.iam.v1beta.WorkloadIdentityPools" - } - } - } - }, - { - "regionTag": "iam_v1beta_generated_WorkloadIdentityPools_GetWorkloadIdentityPoolProvider_async", - "title": "WorkloadIdentityPools getWorkloadIdentityPoolProvider Sample", - "origin": "API_DEFINITION", - "description": " Gets an individual [WorkloadIdentityPoolProvider][google.iam.v1beta.WorkloadIdentityPoolProvider].", - "canonical": true, - "file": "workload_identity_pools.get_workload_identity_pool_provider.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetWorkloadIdentityPoolProvider", - "fullName": "google.iam.v1beta.WorkloadIdentityPools.GetWorkloadIdentityPoolProvider", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.iam.v1beta.WorkloadIdentityPoolProvider", - "client": { - "shortName": "WorkloadIdentityPoolsClient", - "fullName": "google.iam.v1beta.WorkloadIdentityPoolsClient" - }, - "method": { - "shortName": "GetWorkloadIdentityPoolProvider", - "fullName": "google.iam.v1beta.WorkloadIdentityPools.GetWorkloadIdentityPoolProvider", - "service": { - "shortName": "WorkloadIdentityPools", - "fullName": "google.iam.v1beta.WorkloadIdentityPools" - } - } - } - }, - { - "regionTag": "iam_v1beta_generated_WorkloadIdentityPools_CreateWorkloadIdentityPoolProvider_async", - "title": "WorkloadIdentityPools createWorkloadIdentityPoolProvider Sample", - "origin": "API_DEFINITION", - "description": " Creates a new [WorkloadIdentityPoolProvider][google.iam.v1beta.WorkloadIdentityProvider] in a [WorkloadIdentityPool][google.iam.v1beta.WorkloadIdentityPool]. You cannot reuse the name of a deleted provider until 30 days after deletion.", - "canonical": true, - "file": "workload_identity_pools.create_workload_identity_pool_provider.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateWorkloadIdentityPoolProvider", - "fullName": "google.iam.v1beta.WorkloadIdentityPools.CreateWorkloadIdentityPoolProvider", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "workload_identity_pool_provider", - "type": ".google.iam.v1beta.WorkloadIdentityPoolProvider" - }, - { - "name": "workload_identity_pool_provider_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkloadIdentityPoolsClient", - "fullName": "google.iam.v1beta.WorkloadIdentityPoolsClient" - }, - "method": { - "shortName": "CreateWorkloadIdentityPoolProvider", - "fullName": "google.iam.v1beta.WorkloadIdentityPools.CreateWorkloadIdentityPoolProvider", - "service": { - "shortName": "WorkloadIdentityPools", - "fullName": "google.iam.v1beta.WorkloadIdentityPools" - } - } - } - }, - { - "regionTag": "iam_v1beta_generated_WorkloadIdentityPools_UpdateWorkloadIdentityPoolProvider_async", - "title": "WorkloadIdentityPools updateWorkloadIdentityPoolProvider Sample", - "origin": "API_DEFINITION", - "description": " Updates an existing [WorkloadIdentityPoolProvider][google.iam.v1beta.WorkloadIdentityProvider].", - "canonical": true, - "file": "workload_identity_pools.update_workload_identity_pool_provider.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateWorkloadIdentityPoolProvider", - "fullName": "google.iam.v1beta.WorkloadIdentityPools.UpdateWorkloadIdentityPoolProvider", - "async": true, - "parameters": [ - { - "name": "workload_identity_pool_provider", - "type": ".google.iam.v1beta.WorkloadIdentityPoolProvider" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkloadIdentityPoolsClient", - "fullName": "google.iam.v1beta.WorkloadIdentityPoolsClient" - }, - "method": { - "shortName": "UpdateWorkloadIdentityPoolProvider", - "fullName": "google.iam.v1beta.WorkloadIdentityPools.UpdateWorkloadIdentityPoolProvider", - "service": { - "shortName": "WorkloadIdentityPools", - "fullName": "google.iam.v1beta.WorkloadIdentityPools" - } - } - } - }, - { - "regionTag": "iam_v1beta_generated_WorkloadIdentityPools_DeleteWorkloadIdentityPoolProvider_async", - "title": "WorkloadIdentityPools deleteWorkloadIdentityPoolProvider Sample", - "origin": "API_DEFINITION", - "description": " Deletes a [WorkloadIdentityPoolProvider][google.iam.v1beta.WorkloadIdentityProvider]. Deleting a provider does not revoke credentials that have already been issued; they continue to grant access. You can undelete a provider for 30 days. After 30 days, deletion is permanent. You cannot update deleted providers. However, you can view and list them.", - "canonical": true, - "file": "workload_identity_pools.delete_workload_identity_pool_provider.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteWorkloadIdentityPoolProvider", - "fullName": "google.iam.v1beta.WorkloadIdentityPools.DeleteWorkloadIdentityPoolProvider", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkloadIdentityPoolsClient", - "fullName": "google.iam.v1beta.WorkloadIdentityPoolsClient" - }, - "method": { - "shortName": "DeleteWorkloadIdentityPoolProvider", - "fullName": "google.iam.v1beta.WorkloadIdentityPools.DeleteWorkloadIdentityPoolProvider", - "service": { - "shortName": "WorkloadIdentityPools", - "fullName": "google.iam.v1beta.WorkloadIdentityPools" - } - } - } - }, - { - "regionTag": "iam_v1beta_generated_WorkloadIdentityPools_UndeleteWorkloadIdentityPoolProvider_async", - "title": "WorkloadIdentityPools undeleteWorkloadIdentityPoolProvider Sample", - "origin": "API_DEFINITION", - "description": " Undeletes a [WorkloadIdentityPoolProvider][google.iam.v1beta.WorkloadIdentityProvider], as long as it was deleted fewer than 30 days ago.", - "canonical": true, - "file": "workload_identity_pools.undelete_workload_identity_pool_provider.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UndeleteWorkloadIdentityPoolProvider", - "fullName": "google.iam.v1beta.WorkloadIdentityPools.UndeleteWorkloadIdentityPoolProvider", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "WorkloadIdentityPoolsClient", - "fullName": "google.iam.v1beta.WorkloadIdentityPoolsClient" - }, - "method": { - "shortName": "UndeleteWorkloadIdentityPoolProvider", - "fullName": "google.iam.v1beta.WorkloadIdentityPools.UndeleteWorkloadIdentityPoolProvider", - "service": { - "shortName": "WorkloadIdentityPools", - "fullName": "google.iam.v1beta.WorkloadIdentityPools" - } - } - } - } - ] -} diff --git a/packages/google-iam/samples/generated/v2/snippet_metadata_google.iam.v2.json b/packages/google-iam/samples/generated/v2/snippet_metadata_google.iam.v2.json deleted file mode 100644 index 424a5a145503..000000000000 --- a/packages/google-iam/samples/generated/v2/snippet_metadata_google.iam.v2.json +++ /dev/null @@ -1,235 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-iam", - "version": "2.3.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.iam.v2", - "version": "v2" - } - ] - }, - "snippets": [ - { - "regionTag": "iam_v2_generated_Policies_ListPolicies_async", - "title": "Policies listPolicies Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the policies of the specified kind that are attached to a resource. The response lists only policy metadata. In particular, policy rules are omitted.", - "canonical": true, - "file": "policies.list_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPolicies", - "fullName": "google.iam.v2.Policies.ListPolicies", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.iam.v2.ListPoliciesResponse", - "client": { - "shortName": "PoliciesClient", - "fullName": "google.iam.v2.PoliciesClient" - }, - "method": { - "shortName": "ListPolicies", - "fullName": "google.iam.v2.Policies.ListPolicies", - "service": { - "shortName": "Policies", - "fullName": "google.iam.v2.Policies" - } - } - } - }, - { - "regionTag": "iam_v2_generated_Policies_GetPolicy_async", - "title": "Policies getPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets a policy.", - "canonical": true, - "file": "policies.get_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPolicy", - "fullName": "google.iam.v2.Policies.GetPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.iam.v2.Policy", - "client": { - "shortName": "PoliciesClient", - "fullName": "google.iam.v2.PoliciesClient" - }, - "method": { - "shortName": "GetPolicy", - "fullName": "google.iam.v2.Policies.GetPolicy", - "service": { - "shortName": "Policies", - "fullName": "google.iam.v2.Policies" - } - } - } - }, - { - "regionTag": "iam_v2_generated_Policies_CreatePolicy_async", - "title": "Policies createPolicy Sample", - "origin": "API_DEFINITION", - "description": " Creates a policy.", - "canonical": true, - "file": "policies.create_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreatePolicy", - "fullName": "google.iam.v2.Policies.CreatePolicy", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.iam.v2.Policy" - }, - { - "name": "policy_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "PoliciesClient", - "fullName": "google.iam.v2.PoliciesClient" - }, - "method": { - "shortName": "CreatePolicy", - "fullName": "google.iam.v2.Policies.CreatePolicy", - "service": { - "shortName": "Policies", - "fullName": "google.iam.v2.Policies" - } - } - } - }, - { - "regionTag": "iam_v2_generated_Policies_UpdatePolicy_async", - "title": "Policies updatePolicy Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified policy. You can update only the rules and the display name for the policy. To update a policy, you should use a read-modify-write loop: 1. Use [GetPolicy][google.iam.v2.Policies.GetPolicy] to read the current version of the policy. 2. Modify the policy as needed. 3. Use `UpdatePolicy` to write the updated policy. This pattern helps prevent conflicts between concurrent updates.", - "canonical": true, - "file": "policies.update_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdatePolicy", - "fullName": "google.iam.v2.Policies.UpdatePolicy", - "async": true, - "parameters": [ - { - "name": "policy", - "type": ".google.iam.v2.Policy" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "PoliciesClient", - "fullName": "google.iam.v2.PoliciesClient" - }, - "method": { - "shortName": "UpdatePolicy", - "fullName": "google.iam.v2.Policies.UpdatePolicy", - "service": { - "shortName": "Policies", - "fullName": "google.iam.v2.Policies" - } - } - } - }, - { - "regionTag": "iam_v2_generated_Policies_DeletePolicy_async", - "title": "Policies deletePolicy Sample", - "origin": "API_DEFINITION", - "description": " Deletes a policy. This action is permanent.", - "canonical": true, - "file": "policies.delete_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePolicy", - "fullName": "google.iam.v2.Policies.DeletePolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "PoliciesClient", - "fullName": "google.iam.v2.PoliciesClient" - }, - "method": { - "shortName": "DeletePolicy", - "fullName": "google.iam.v2.Policies.DeletePolicy", - "service": { - "shortName": "Policies", - "fullName": "google.iam.v2.Policies" - } - } - } - } - ] -} diff --git a/packages/google-iam/samples/generated/v2beta/snippet_metadata_google.iam.v2beta.json b/packages/google-iam/samples/generated/v2beta/snippet_metadata_google.iam.v2beta.json deleted file mode 100644 index 38c2467735aa..000000000000 --- a/packages/google-iam/samples/generated/v2beta/snippet_metadata_google.iam.v2beta.json +++ /dev/null @@ -1,235 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-iam", - "version": "2.3.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.iam.v2beta", - "version": "v2beta" - } - ] - }, - "snippets": [ - { - "regionTag": "iam_v2beta_generated_Policies_ListPolicies_async", - "title": "Policies listPolicies Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the policies of the specified kind that are attached to a resource. The response lists only policy metadata. In particular, policy rules are omitted.", - "canonical": true, - "file": "policies.list_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPolicies", - "fullName": "google.iam.v2beta.Policies.ListPolicies", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.iam.v2beta.ListPoliciesResponse", - "client": { - "shortName": "PoliciesClient", - "fullName": "google.iam.v2beta.PoliciesClient" - }, - "method": { - "shortName": "ListPolicies", - "fullName": "google.iam.v2beta.Policies.ListPolicies", - "service": { - "shortName": "Policies", - "fullName": "google.iam.v2beta.Policies" - } - } - } - }, - { - "regionTag": "iam_v2beta_generated_Policies_GetPolicy_async", - "title": "Policies getPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets a policy.", - "canonical": true, - "file": "policies.get_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPolicy", - "fullName": "google.iam.v2beta.Policies.GetPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.iam.v2beta.Policy", - "client": { - "shortName": "PoliciesClient", - "fullName": "google.iam.v2beta.PoliciesClient" - }, - "method": { - "shortName": "GetPolicy", - "fullName": "google.iam.v2beta.Policies.GetPolicy", - "service": { - "shortName": "Policies", - "fullName": "google.iam.v2beta.Policies" - } - } - } - }, - { - "regionTag": "iam_v2beta_generated_Policies_CreatePolicy_async", - "title": "Policies createPolicy Sample", - "origin": "API_DEFINITION", - "description": " Creates a policy.", - "canonical": true, - "file": "policies.create_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreatePolicy", - "fullName": "google.iam.v2beta.Policies.CreatePolicy", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.iam.v2beta.Policy" - }, - { - "name": "policy_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "PoliciesClient", - "fullName": "google.iam.v2beta.PoliciesClient" - }, - "method": { - "shortName": "CreatePolicy", - "fullName": "google.iam.v2beta.Policies.CreatePolicy", - "service": { - "shortName": "Policies", - "fullName": "google.iam.v2beta.Policies" - } - } - } - }, - { - "regionTag": "iam_v2beta_generated_Policies_UpdatePolicy_async", - "title": "Policies updatePolicy Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified policy. You can update only the rules and the display name for the policy. To update a policy, you should use a read-modify-write loop: 1. Use [GetPolicy][google.iam.v2beta.Policies.GetPolicy] to read the current version of the policy. 2. Modify the policy as needed. 3. Use `UpdatePolicy` to write the updated policy. This pattern helps prevent conflicts between concurrent updates.", - "canonical": true, - "file": "policies.update_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdatePolicy", - "fullName": "google.iam.v2beta.Policies.UpdatePolicy", - "async": true, - "parameters": [ - { - "name": "policy", - "type": ".google.iam.v2beta.Policy" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "PoliciesClient", - "fullName": "google.iam.v2beta.PoliciesClient" - }, - "method": { - "shortName": "UpdatePolicy", - "fullName": "google.iam.v2beta.Policies.UpdatePolicy", - "service": { - "shortName": "Policies", - "fullName": "google.iam.v2beta.Policies" - } - } - } - }, - { - "regionTag": "iam_v2beta_generated_Policies_DeletePolicy_async", - "title": "Policies deletePolicy Sample", - "origin": "API_DEFINITION", - "description": " Deletes a policy. This action is permanent.", - "canonical": true, - "file": "policies.delete_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePolicy", - "fullName": "google.iam.v2beta.Policies.DeletePolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "PoliciesClient", - "fullName": "google.iam.v2beta.PoliciesClient" - }, - "method": { - "shortName": "DeletePolicy", - "fullName": "google.iam.v2beta.Policies.DeletePolicy", - "service": { - "shortName": "Policies", - "fullName": "google.iam.v2beta.Policies" - } - } - } - } - ] -} diff --git a/packages/google-iam/samples/generated/v3/snippet_metadata_google.iam.v3.json b/packages/google-iam/samples/generated/v3/snippet_metadata_google.iam.v3.json deleted file mode 100644 index 80221e3f6960..000000000000 --- a/packages/google-iam/samples/generated/v3/snippet_metadata_google.iam.v3.json +++ /dev/null @@ -1,595 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-iam", - "version": "2.3.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.iam.v3", - "version": "v3" - } - ] - }, - "snippets": [ - { - "regionTag": "iam_v3_generated_PolicyBindings_CreatePolicyBinding_async", - "title": "PolicyBindings createPolicyBinding Sample", - "origin": "API_DEFINITION", - "description": " Creates a policy binding and returns a long-running operation. Callers will need the IAM permissions on both the policy and target. Once the binding is created, the policy is applied to the target.", - "canonical": true, - "file": "policy_bindings.create_policy_binding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreatePolicyBinding", - "fullName": "google.iam.v3.PolicyBindings.CreatePolicyBinding", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "policy_binding_id", - "type": "TYPE_STRING" - }, - { - "name": "policy_binding", - "type": ".google.iam.v3.PolicyBinding" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "PolicyBindingsClient", - "fullName": "google.iam.v3.PolicyBindingsClient" - }, - "method": { - "shortName": "CreatePolicyBinding", - "fullName": "google.iam.v3.PolicyBindings.CreatePolicyBinding", - "service": { - "shortName": "PolicyBindings", - "fullName": "google.iam.v3.PolicyBindings" - } - } - } - }, - { - "regionTag": "iam_v3_generated_PolicyBindings_GetPolicyBinding_async", - "title": "PolicyBindings getPolicyBinding Sample", - "origin": "API_DEFINITION", - "description": " Gets a policy binding.", - "canonical": true, - "file": "policy_bindings.get_policy_binding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPolicyBinding", - "fullName": "google.iam.v3.PolicyBindings.GetPolicyBinding", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.iam.v3.PolicyBinding", - "client": { - "shortName": "PolicyBindingsClient", - "fullName": "google.iam.v3.PolicyBindingsClient" - }, - "method": { - "shortName": "GetPolicyBinding", - "fullName": "google.iam.v3.PolicyBindings.GetPolicyBinding", - "service": { - "shortName": "PolicyBindings", - "fullName": "google.iam.v3.PolicyBindings" - } - } - } - }, - { - "regionTag": "iam_v3_generated_PolicyBindings_UpdatePolicyBinding_async", - "title": "PolicyBindings updatePolicyBinding Sample", - "origin": "API_DEFINITION", - "description": " Updates a policy binding and returns a long-running operation. Callers will need the IAM permissions on the policy and target in the binding to update, and the IAM permission to remove the existing policy from the binding. Target is immutable and cannot be updated. Once the binding is updated, the new policy is applied to the target.", - "canonical": true, - "file": "policy_bindings.update_policy_binding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdatePolicyBinding", - "fullName": "google.iam.v3.PolicyBindings.UpdatePolicyBinding", - "async": true, - "parameters": [ - { - "name": "policy_binding", - "type": ".google.iam.v3.PolicyBinding" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "PolicyBindingsClient", - "fullName": "google.iam.v3.PolicyBindingsClient" - }, - "method": { - "shortName": "UpdatePolicyBinding", - "fullName": "google.iam.v3.PolicyBindings.UpdatePolicyBinding", - "service": { - "shortName": "PolicyBindings", - "fullName": "google.iam.v3.PolicyBindings" - } - } - } - }, - { - "regionTag": "iam_v3_generated_PolicyBindings_DeletePolicyBinding_async", - "title": "PolicyBindings deletePolicyBinding Sample", - "origin": "API_DEFINITION", - "description": " Deletes a policy binding and returns a long-running operation. Callers will need the IAM permissions on both the policy and target. Once the binding is deleted, the policy no longer applies to the target.", - "canonical": true, - "file": "policy_bindings.delete_policy_binding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePolicyBinding", - "fullName": "google.iam.v3.PolicyBindings.DeletePolicyBinding", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "PolicyBindingsClient", - "fullName": "google.iam.v3.PolicyBindingsClient" - }, - "method": { - "shortName": "DeletePolicyBinding", - "fullName": "google.iam.v3.PolicyBindings.DeletePolicyBinding", - "service": { - "shortName": "PolicyBindings", - "fullName": "google.iam.v3.PolicyBindings" - } - } - } - }, - { - "regionTag": "iam_v3_generated_PolicyBindings_ListPolicyBindings_async", - "title": "PolicyBindings listPolicyBindings Sample", - "origin": "API_DEFINITION", - "description": " Lists policy bindings.", - "canonical": true, - "file": "policy_bindings.list_policy_bindings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPolicyBindings", - "fullName": "google.iam.v3.PolicyBindings.ListPolicyBindings", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.iam.v3.ListPolicyBindingsResponse", - "client": { - "shortName": "PolicyBindingsClient", - "fullName": "google.iam.v3.PolicyBindingsClient" - }, - "method": { - "shortName": "ListPolicyBindings", - "fullName": "google.iam.v3.PolicyBindings.ListPolicyBindings", - "service": { - "shortName": "PolicyBindings", - "fullName": "google.iam.v3.PolicyBindings" - } - } - } - }, - { - "regionTag": "iam_v3_generated_PolicyBindings_SearchTargetPolicyBindings_async", - "title": "PolicyBindings searchTargetPolicyBindings Sample", - "origin": "API_DEFINITION", - "description": " Search policy bindings by target. Returns all policy binding objects bound directly to target.", - "canonical": true, - "file": "policy_bindings.search_target_policy_bindings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 90, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchTargetPolicyBindings", - "fullName": "google.iam.v3.PolicyBindings.SearchTargetPolicyBindings", - "async": true, - "parameters": [ - { - "name": "target", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.iam.v3.SearchTargetPolicyBindingsResponse", - "client": { - "shortName": "PolicyBindingsClient", - "fullName": "google.iam.v3.PolicyBindingsClient" - }, - "method": { - "shortName": "SearchTargetPolicyBindings", - "fullName": "google.iam.v3.PolicyBindings.SearchTargetPolicyBindings", - "service": { - "shortName": "PolicyBindings", - "fullName": "google.iam.v3.PolicyBindings" - } - } - } - }, - { - "regionTag": "iam_v3_generated_PrincipalAccessBoundaryPolicies_CreatePrincipalAccessBoundaryPolicy_async", - "title": "PolicyBindings createPrincipalAccessBoundaryPolicy Sample", - "origin": "API_DEFINITION", - "description": " Creates a principal access boundary policy, and returns a long running operation.", - "canonical": true, - "file": "principal_access_boundary_policies.create_principal_access_boundary_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreatePrincipalAccessBoundaryPolicy", - "fullName": "google.iam.v3.PrincipalAccessBoundaryPolicies.CreatePrincipalAccessBoundaryPolicy", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "principal_access_boundary_policy_id", - "type": "TYPE_STRING" - }, - { - "name": "principal_access_boundary_policy", - "type": ".google.iam.v3.PrincipalAccessBoundaryPolicy" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "PrincipalAccessBoundaryPoliciesClient", - "fullName": "google.iam.v3.PrincipalAccessBoundaryPoliciesClient" - }, - "method": { - "shortName": "CreatePrincipalAccessBoundaryPolicy", - "fullName": "google.iam.v3.PrincipalAccessBoundaryPolicies.CreatePrincipalAccessBoundaryPolicy", - "service": { - "shortName": "PrincipalAccessBoundaryPolicies", - "fullName": "google.iam.v3.PrincipalAccessBoundaryPolicies" - } - } - } - }, - { - "regionTag": "iam_v3_generated_PrincipalAccessBoundaryPolicies_GetPrincipalAccessBoundaryPolicy_async", - "title": "PolicyBindings getPrincipalAccessBoundaryPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets a principal access boundary policy.", - "canonical": true, - "file": "principal_access_boundary_policies.get_principal_access_boundary_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPrincipalAccessBoundaryPolicy", - "fullName": "google.iam.v3.PrincipalAccessBoundaryPolicies.GetPrincipalAccessBoundaryPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.iam.v3.PrincipalAccessBoundaryPolicy", - "client": { - "shortName": "PrincipalAccessBoundaryPoliciesClient", - "fullName": "google.iam.v3.PrincipalAccessBoundaryPoliciesClient" - }, - "method": { - "shortName": "GetPrincipalAccessBoundaryPolicy", - "fullName": "google.iam.v3.PrincipalAccessBoundaryPolicies.GetPrincipalAccessBoundaryPolicy", - "service": { - "shortName": "PrincipalAccessBoundaryPolicies", - "fullName": "google.iam.v3.PrincipalAccessBoundaryPolicies" - } - } - } - }, - { - "regionTag": "iam_v3_generated_PrincipalAccessBoundaryPolicies_UpdatePrincipalAccessBoundaryPolicy_async", - "title": "PolicyBindings updatePrincipalAccessBoundaryPolicy Sample", - "origin": "API_DEFINITION", - "description": " Updates a principal access boundary policy.", - "canonical": true, - "file": "principal_access_boundary_policies.update_principal_access_boundary_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdatePrincipalAccessBoundaryPolicy", - "fullName": "google.iam.v3.PrincipalAccessBoundaryPolicies.UpdatePrincipalAccessBoundaryPolicy", - "async": true, - "parameters": [ - { - "name": "principal_access_boundary_policy", - "type": ".google.iam.v3.PrincipalAccessBoundaryPolicy" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "PrincipalAccessBoundaryPoliciesClient", - "fullName": "google.iam.v3.PrincipalAccessBoundaryPoliciesClient" - }, - "method": { - "shortName": "UpdatePrincipalAccessBoundaryPolicy", - "fullName": "google.iam.v3.PrincipalAccessBoundaryPolicies.UpdatePrincipalAccessBoundaryPolicy", - "service": { - "shortName": "PrincipalAccessBoundaryPolicies", - "fullName": "google.iam.v3.PrincipalAccessBoundaryPolicies" - } - } - } - }, - { - "regionTag": "iam_v3_generated_PrincipalAccessBoundaryPolicies_DeletePrincipalAccessBoundaryPolicy_async", - "title": "PolicyBindings deletePrincipalAccessBoundaryPolicy Sample", - "origin": "API_DEFINITION", - "description": " Deletes a principal access boundary policy.", - "canonical": true, - "file": "principal_access_boundary_policies.delete_principal_access_boundary_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePrincipalAccessBoundaryPolicy", - "fullName": "google.iam.v3.PrincipalAccessBoundaryPolicies.DeletePrincipalAccessBoundaryPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "PrincipalAccessBoundaryPoliciesClient", - "fullName": "google.iam.v3.PrincipalAccessBoundaryPoliciesClient" - }, - "method": { - "shortName": "DeletePrincipalAccessBoundaryPolicy", - "fullName": "google.iam.v3.PrincipalAccessBoundaryPolicies.DeletePrincipalAccessBoundaryPolicy", - "service": { - "shortName": "PrincipalAccessBoundaryPolicies", - "fullName": "google.iam.v3.PrincipalAccessBoundaryPolicies" - } - } - } - }, - { - "regionTag": "iam_v3_generated_PrincipalAccessBoundaryPolicies_ListPrincipalAccessBoundaryPolicies_async", - "title": "PolicyBindings listPrincipalAccessBoundaryPolicies Sample", - "origin": "API_DEFINITION", - "description": " Lists principal access boundary policies.", - "canonical": true, - "file": "principal_access_boundary_policies.list_principal_access_boundary_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPrincipalAccessBoundaryPolicies", - "fullName": "google.iam.v3.PrincipalAccessBoundaryPolicies.ListPrincipalAccessBoundaryPolicies", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.iam.v3.ListPrincipalAccessBoundaryPoliciesResponse", - "client": { - "shortName": "PrincipalAccessBoundaryPoliciesClient", - "fullName": "google.iam.v3.PrincipalAccessBoundaryPoliciesClient" - }, - "method": { - "shortName": "ListPrincipalAccessBoundaryPolicies", - "fullName": "google.iam.v3.PrincipalAccessBoundaryPolicies.ListPrincipalAccessBoundaryPolicies", - "service": { - "shortName": "PrincipalAccessBoundaryPolicies", - "fullName": "google.iam.v3.PrincipalAccessBoundaryPolicies" - } - } - } - }, - { - "regionTag": "iam_v3_generated_PrincipalAccessBoundaryPolicies_SearchPrincipalAccessBoundaryPolicyBindings_async", - "title": "PolicyBindings searchPrincipalAccessBoundaryPolicyBindings Sample", - "origin": "API_DEFINITION", - "description": " Returns all policy bindings that bind a specific policy if a user has searchPolicyBindings permission on that policy.", - "canonical": true, - "file": "principal_access_boundary_policies.search_principal_access_boundary_policy_bindings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchPrincipalAccessBoundaryPolicyBindings", - "fullName": "google.iam.v3.PrincipalAccessBoundaryPolicies.SearchPrincipalAccessBoundaryPolicyBindings", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.iam.v3.SearchPrincipalAccessBoundaryPolicyBindingsResponse", - "client": { - "shortName": "PrincipalAccessBoundaryPoliciesClient", - "fullName": "google.iam.v3.PrincipalAccessBoundaryPoliciesClient" - }, - "method": { - "shortName": "SearchPrincipalAccessBoundaryPolicyBindings", - "fullName": "google.iam.v3.PrincipalAccessBoundaryPolicies.SearchPrincipalAccessBoundaryPolicyBindings", - "service": { - "shortName": "PrincipalAccessBoundaryPolicies", - "fullName": "google.iam.v3.PrincipalAccessBoundaryPolicies" - } - } - } - } - ] -} diff --git a/packages/google-iam/samples/generated/v3beta/snippet_metadata_google.iam.v3beta.json b/packages/google-iam/samples/generated/v3beta/snippet_metadata_google.iam.v3beta.json deleted file mode 100644 index 426d1d946280..000000000000 --- a/packages/google-iam/samples/generated/v3beta/snippet_metadata_google.iam.v3beta.json +++ /dev/null @@ -1,883 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-iam", - "version": "2.3.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.iam.v3beta", - "version": "v3beta" - } - ] - }, - "snippets": [ - { - "regionTag": "iam_v3beta_generated_AccessPolicies_CreateAccessPolicy_async", - "title": "AccessPolicies createAccessPolicy Sample", - "origin": "API_DEFINITION", - "description": " Creates an access policy, and returns a long running operation.", - "canonical": true, - "file": "access_policies.create_access_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAccessPolicy", - "fullName": "google.iam.v3beta.AccessPolicies.CreateAccessPolicy", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "access_policy_id", - "type": "TYPE_STRING" - }, - { - "name": "access_policy", - "type": ".google.iam.v3beta.AccessPolicy" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AccessPoliciesClient", - "fullName": "google.iam.v3beta.AccessPoliciesClient" - }, - "method": { - "shortName": "CreateAccessPolicy", - "fullName": "google.iam.v3beta.AccessPolicies.CreateAccessPolicy", - "service": { - "shortName": "AccessPolicies", - "fullName": "google.iam.v3beta.AccessPolicies" - } - } - } - }, - { - "regionTag": "iam_v3beta_generated_AccessPolicies_GetAccessPolicy_async", - "title": "AccessPolicies getAccessPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets an access policy.", - "canonical": true, - "file": "access_policies.get_access_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAccessPolicy", - "fullName": "google.iam.v3beta.AccessPolicies.GetAccessPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.iam.v3beta.AccessPolicy", - "client": { - "shortName": "AccessPoliciesClient", - "fullName": "google.iam.v3beta.AccessPoliciesClient" - }, - "method": { - "shortName": "GetAccessPolicy", - "fullName": "google.iam.v3beta.AccessPolicies.GetAccessPolicy", - "service": { - "shortName": "AccessPolicies", - "fullName": "google.iam.v3beta.AccessPolicies" - } - } - } - }, - { - "regionTag": "iam_v3beta_generated_AccessPolicies_UpdateAccessPolicy_async", - "title": "AccessPolicies updateAccessPolicy Sample", - "origin": "API_DEFINITION", - "description": " Updates an access policy.", - "canonical": true, - "file": "access_policies.update_access_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAccessPolicy", - "fullName": "google.iam.v3beta.AccessPolicies.UpdateAccessPolicy", - "async": true, - "parameters": [ - { - "name": "access_policy", - "type": ".google.iam.v3beta.AccessPolicy" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AccessPoliciesClient", - "fullName": "google.iam.v3beta.AccessPoliciesClient" - }, - "method": { - "shortName": "UpdateAccessPolicy", - "fullName": "google.iam.v3beta.AccessPolicies.UpdateAccessPolicy", - "service": { - "shortName": "AccessPolicies", - "fullName": "google.iam.v3beta.AccessPolicies" - } - } - } - }, - { - "regionTag": "iam_v3beta_generated_AccessPolicies_DeleteAccessPolicy_async", - "title": "AccessPolicies deleteAccessPolicy Sample", - "origin": "API_DEFINITION", - "description": " Deletes an access policy.", - "canonical": true, - "file": "access_policies.delete_access_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAccessPolicy", - "fullName": "google.iam.v3beta.AccessPolicies.DeleteAccessPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AccessPoliciesClient", - "fullName": "google.iam.v3beta.AccessPoliciesClient" - }, - "method": { - "shortName": "DeleteAccessPolicy", - "fullName": "google.iam.v3beta.AccessPolicies.DeleteAccessPolicy", - "service": { - "shortName": "AccessPolicies", - "fullName": "google.iam.v3beta.AccessPolicies" - } - } - } - }, - { - "regionTag": "iam_v3beta_generated_AccessPolicies_ListAccessPolicies_async", - "title": "AccessPolicies listAccessPolicies Sample", - "origin": "API_DEFINITION", - "description": " Lists access policies.", - "canonical": true, - "file": "access_policies.list_access_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAccessPolicies", - "fullName": "google.iam.v3beta.AccessPolicies.ListAccessPolicies", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.iam.v3beta.ListAccessPoliciesResponse", - "client": { - "shortName": "AccessPoliciesClient", - "fullName": "google.iam.v3beta.AccessPoliciesClient" - }, - "method": { - "shortName": "ListAccessPolicies", - "fullName": "google.iam.v3beta.AccessPolicies.ListAccessPolicies", - "service": { - "shortName": "AccessPolicies", - "fullName": "google.iam.v3beta.AccessPolicies" - } - } - } - }, - { - "regionTag": "iam_v3beta_generated_AccessPolicies_SearchAccessPolicyBindings_async", - "title": "AccessPolicies searchAccessPolicyBindings Sample", - "origin": "API_DEFINITION", - "description": " Returns all policy bindings that bind a specific policy if a user has searchPolicyBindings permission on that policy.", - "canonical": true, - "file": "access_policies.search_access_policy_bindings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchAccessPolicyBindings", - "fullName": "google.iam.v3beta.AccessPolicies.SearchAccessPolicyBindings", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.iam.v3beta.SearchAccessPolicyBindingsResponse", - "client": { - "shortName": "AccessPoliciesClient", - "fullName": "google.iam.v3beta.AccessPoliciesClient" - }, - "method": { - "shortName": "SearchAccessPolicyBindings", - "fullName": "google.iam.v3beta.AccessPolicies.SearchAccessPolicyBindings", - "service": { - "shortName": "AccessPolicies", - "fullName": "google.iam.v3beta.AccessPolicies" - } - } - } - }, - { - "regionTag": "iam_v3beta_generated_PolicyBindings_CreatePolicyBinding_async", - "title": "AccessPolicies createPolicyBinding Sample", - "origin": "API_DEFINITION", - "description": " Creates a policy binding and returns a long-running operation. Callers will need the IAM permissions on both the policy and target. After the binding is created, the policy is applied to the target.", - "canonical": true, - "file": "policy_bindings.create_policy_binding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreatePolicyBinding", - "fullName": "google.iam.v3beta.PolicyBindings.CreatePolicyBinding", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "policy_binding_id", - "type": "TYPE_STRING" - }, - { - "name": "policy_binding", - "type": ".google.iam.v3beta.PolicyBinding" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "PolicyBindingsClient", - "fullName": "google.iam.v3beta.PolicyBindingsClient" - }, - "method": { - "shortName": "CreatePolicyBinding", - "fullName": "google.iam.v3beta.PolicyBindings.CreatePolicyBinding", - "service": { - "shortName": "PolicyBindings", - "fullName": "google.iam.v3beta.PolicyBindings" - } - } - } - }, - { - "regionTag": "iam_v3beta_generated_PolicyBindings_GetPolicyBinding_async", - "title": "AccessPolicies getPolicyBinding Sample", - "origin": "API_DEFINITION", - "description": " Gets a policy binding.", - "canonical": true, - "file": "policy_bindings.get_policy_binding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPolicyBinding", - "fullName": "google.iam.v3beta.PolicyBindings.GetPolicyBinding", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.iam.v3beta.PolicyBinding", - "client": { - "shortName": "PolicyBindingsClient", - "fullName": "google.iam.v3beta.PolicyBindingsClient" - }, - "method": { - "shortName": "GetPolicyBinding", - "fullName": "google.iam.v3beta.PolicyBindings.GetPolicyBinding", - "service": { - "shortName": "PolicyBindings", - "fullName": "google.iam.v3beta.PolicyBindings" - } - } - } - }, - { - "regionTag": "iam_v3beta_generated_PolicyBindings_UpdatePolicyBinding_async", - "title": "AccessPolicies updatePolicyBinding Sample", - "origin": "API_DEFINITION", - "description": " Updates a policy binding and returns a long-running operation. Callers will need the IAM permissions on the policy and target in the binding to update. Target and policy are immutable and cannot be updated.", - "canonical": true, - "file": "policy_bindings.update_policy_binding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdatePolicyBinding", - "fullName": "google.iam.v3beta.PolicyBindings.UpdatePolicyBinding", - "async": true, - "parameters": [ - { - "name": "policy_binding", - "type": ".google.iam.v3beta.PolicyBinding" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "PolicyBindingsClient", - "fullName": "google.iam.v3beta.PolicyBindingsClient" - }, - "method": { - "shortName": "UpdatePolicyBinding", - "fullName": "google.iam.v3beta.PolicyBindings.UpdatePolicyBinding", - "service": { - "shortName": "PolicyBindings", - "fullName": "google.iam.v3beta.PolicyBindings" - } - } - } - }, - { - "regionTag": "iam_v3beta_generated_PolicyBindings_DeletePolicyBinding_async", - "title": "AccessPolicies deletePolicyBinding Sample", - "origin": "API_DEFINITION", - "description": " Deletes a policy binding and returns a long-running operation. Callers will need the IAM permissions on both the policy and target. After the binding is deleted, the policy no longer applies to the target.", - "canonical": true, - "file": "policy_bindings.delete_policy_binding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePolicyBinding", - "fullName": "google.iam.v3beta.PolicyBindings.DeletePolicyBinding", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "PolicyBindingsClient", - "fullName": "google.iam.v3beta.PolicyBindingsClient" - }, - "method": { - "shortName": "DeletePolicyBinding", - "fullName": "google.iam.v3beta.PolicyBindings.DeletePolicyBinding", - "service": { - "shortName": "PolicyBindings", - "fullName": "google.iam.v3beta.PolicyBindings" - } - } - } - }, - { - "regionTag": "iam_v3beta_generated_PolicyBindings_ListPolicyBindings_async", - "title": "AccessPolicies listPolicyBindings Sample", - "origin": "API_DEFINITION", - "description": " Lists policy bindings.", - "canonical": true, - "file": "policy_bindings.list_policy_bindings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPolicyBindings", - "fullName": "google.iam.v3beta.PolicyBindings.ListPolicyBindings", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.iam.v3beta.ListPolicyBindingsResponse", - "client": { - "shortName": "PolicyBindingsClient", - "fullName": "google.iam.v3beta.PolicyBindingsClient" - }, - "method": { - "shortName": "ListPolicyBindings", - "fullName": "google.iam.v3beta.PolicyBindings.ListPolicyBindings", - "service": { - "shortName": "PolicyBindings", - "fullName": "google.iam.v3beta.PolicyBindings" - } - } - } - }, - { - "regionTag": "iam_v3beta_generated_PolicyBindings_SearchTargetPolicyBindings_async", - "title": "AccessPolicies searchTargetPolicyBindings Sample", - "origin": "API_DEFINITION", - "description": " Search policy bindings by target. Returns all policy binding objects bound directly to target.", - "canonical": true, - "file": "policy_bindings.search_target_policy_bindings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 99, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchTargetPolicyBindings", - "fullName": "google.iam.v3beta.PolicyBindings.SearchTargetPolicyBindings", - "async": true, - "parameters": [ - { - "name": "target", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.iam.v3beta.SearchTargetPolicyBindingsResponse", - "client": { - "shortName": "PolicyBindingsClient", - "fullName": "google.iam.v3beta.PolicyBindingsClient" - }, - "method": { - "shortName": "SearchTargetPolicyBindings", - "fullName": "google.iam.v3beta.PolicyBindings.SearchTargetPolicyBindings", - "service": { - "shortName": "PolicyBindings", - "fullName": "google.iam.v3beta.PolicyBindings" - } - } - } - }, - { - "regionTag": "iam_v3beta_generated_PrincipalAccessBoundaryPolicies_CreatePrincipalAccessBoundaryPolicy_async", - "title": "AccessPolicies createPrincipalAccessBoundaryPolicy Sample", - "origin": "API_DEFINITION", - "description": " Creates a principal access boundary policy, and returns a long running operation.", - "canonical": true, - "file": "principal_access_boundary_policies.create_principal_access_boundary_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreatePrincipalAccessBoundaryPolicy", - "fullName": "google.iam.v3beta.PrincipalAccessBoundaryPolicies.CreatePrincipalAccessBoundaryPolicy", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "principal_access_boundary_policy_id", - "type": "TYPE_STRING" - }, - { - "name": "principal_access_boundary_policy", - "type": ".google.iam.v3beta.PrincipalAccessBoundaryPolicy" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "PrincipalAccessBoundaryPoliciesClient", - "fullName": "google.iam.v3beta.PrincipalAccessBoundaryPoliciesClient" - }, - "method": { - "shortName": "CreatePrincipalAccessBoundaryPolicy", - "fullName": "google.iam.v3beta.PrincipalAccessBoundaryPolicies.CreatePrincipalAccessBoundaryPolicy", - "service": { - "shortName": "PrincipalAccessBoundaryPolicies", - "fullName": "google.iam.v3beta.PrincipalAccessBoundaryPolicies" - } - } - } - }, - { - "regionTag": "iam_v3beta_generated_PrincipalAccessBoundaryPolicies_GetPrincipalAccessBoundaryPolicy_async", - "title": "AccessPolicies getPrincipalAccessBoundaryPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets a principal access boundary policy.", - "canonical": true, - "file": "principal_access_boundary_policies.get_principal_access_boundary_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPrincipalAccessBoundaryPolicy", - "fullName": "google.iam.v3beta.PrincipalAccessBoundaryPolicies.GetPrincipalAccessBoundaryPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.iam.v3beta.PrincipalAccessBoundaryPolicy", - "client": { - "shortName": "PrincipalAccessBoundaryPoliciesClient", - "fullName": "google.iam.v3beta.PrincipalAccessBoundaryPoliciesClient" - }, - "method": { - "shortName": "GetPrincipalAccessBoundaryPolicy", - "fullName": "google.iam.v3beta.PrincipalAccessBoundaryPolicies.GetPrincipalAccessBoundaryPolicy", - "service": { - "shortName": "PrincipalAccessBoundaryPolicies", - "fullName": "google.iam.v3beta.PrincipalAccessBoundaryPolicies" - } - } - } - }, - { - "regionTag": "iam_v3beta_generated_PrincipalAccessBoundaryPolicies_UpdatePrincipalAccessBoundaryPolicy_async", - "title": "AccessPolicies updatePrincipalAccessBoundaryPolicy Sample", - "origin": "API_DEFINITION", - "description": " Updates a principal access boundary policy.", - "canonical": true, - "file": "principal_access_boundary_policies.update_principal_access_boundary_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdatePrincipalAccessBoundaryPolicy", - "fullName": "google.iam.v3beta.PrincipalAccessBoundaryPolicies.UpdatePrincipalAccessBoundaryPolicy", - "async": true, - "parameters": [ - { - "name": "principal_access_boundary_policy", - "type": ".google.iam.v3beta.PrincipalAccessBoundaryPolicy" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "PrincipalAccessBoundaryPoliciesClient", - "fullName": "google.iam.v3beta.PrincipalAccessBoundaryPoliciesClient" - }, - "method": { - "shortName": "UpdatePrincipalAccessBoundaryPolicy", - "fullName": "google.iam.v3beta.PrincipalAccessBoundaryPolicies.UpdatePrincipalAccessBoundaryPolicy", - "service": { - "shortName": "PrincipalAccessBoundaryPolicies", - "fullName": "google.iam.v3beta.PrincipalAccessBoundaryPolicies" - } - } - } - }, - { - "regionTag": "iam_v3beta_generated_PrincipalAccessBoundaryPolicies_DeletePrincipalAccessBoundaryPolicy_async", - "title": "AccessPolicies deletePrincipalAccessBoundaryPolicy Sample", - "origin": "API_DEFINITION", - "description": " Deletes a principal access boundary policy.", - "canonical": true, - "file": "principal_access_boundary_policies.delete_principal_access_boundary_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePrincipalAccessBoundaryPolicy", - "fullName": "google.iam.v3beta.PrincipalAccessBoundaryPolicies.DeletePrincipalAccessBoundaryPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "PrincipalAccessBoundaryPoliciesClient", - "fullName": "google.iam.v3beta.PrincipalAccessBoundaryPoliciesClient" - }, - "method": { - "shortName": "DeletePrincipalAccessBoundaryPolicy", - "fullName": "google.iam.v3beta.PrincipalAccessBoundaryPolicies.DeletePrincipalAccessBoundaryPolicy", - "service": { - "shortName": "PrincipalAccessBoundaryPolicies", - "fullName": "google.iam.v3beta.PrincipalAccessBoundaryPolicies" - } - } - } - }, - { - "regionTag": "iam_v3beta_generated_PrincipalAccessBoundaryPolicies_ListPrincipalAccessBoundaryPolicies_async", - "title": "AccessPolicies listPrincipalAccessBoundaryPolicies Sample", - "origin": "API_DEFINITION", - "description": " Lists principal access boundary policies.", - "canonical": true, - "file": "principal_access_boundary_policies.list_principal_access_boundary_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPrincipalAccessBoundaryPolicies", - "fullName": "google.iam.v3beta.PrincipalAccessBoundaryPolicies.ListPrincipalAccessBoundaryPolicies", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.iam.v3beta.ListPrincipalAccessBoundaryPoliciesResponse", - "client": { - "shortName": "PrincipalAccessBoundaryPoliciesClient", - "fullName": "google.iam.v3beta.PrincipalAccessBoundaryPoliciesClient" - }, - "method": { - "shortName": "ListPrincipalAccessBoundaryPolicies", - "fullName": "google.iam.v3beta.PrincipalAccessBoundaryPolicies.ListPrincipalAccessBoundaryPolicies", - "service": { - "shortName": "PrincipalAccessBoundaryPolicies", - "fullName": "google.iam.v3beta.PrincipalAccessBoundaryPolicies" - } - } - } - }, - { - "regionTag": "iam_v3beta_generated_PrincipalAccessBoundaryPolicies_SearchPrincipalAccessBoundaryPolicyBindings_async", - "title": "AccessPolicies searchPrincipalAccessBoundaryPolicyBindings Sample", - "origin": "API_DEFINITION", - "description": " Returns all policy bindings that bind a specific policy if a user has searchPolicyBindings permission on that policy.", - "canonical": true, - "file": "principal_access_boundary_policies.search_principal_access_boundary_policy_bindings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchPrincipalAccessBoundaryPolicyBindings", - "fullName": "google.iam.v3beta.PrincipalAccessBoundaryPolicies.SearchPrincipalAccessBoundaryPolicyBindings", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.iam.v3beta.SearchPrincipalAccessBoundaryPolicyBindingsResponse", - "client": { - "shortName": "PrincipalAccessBoundaryPoliciesClient", - "fullName": "google.iam.v3beta.PrincipalAccessBoundaryPoliciesClient" - }, - "method": { - "shortName": "SearchPrincipalAccessBoundaryPolicyBindings", - "fullName": "google.iam.v3beta.PrincipalAccessBoundaryPolicies.SearchPrincipalAccessBoundaryPolicyBindings", - "service": { - "shortName": "PrincipalAccessBoundaryPolicies", - "fullName": "google.iam.v3beta.PrincipalAccessBoundaryPolicies" - } - } - } - } - ] -} diff --git a/packages/google-identity-accesscontextmanager/samples/generated/v1/snippet_metadata_google.identity.accesscontextmanager.v1.json b/packages/google-identity-accesscontextmanager/samples/generated/v1/snippet_metadata_google.identity.accesscontextmanager.v1.json deleted file mode 100644 index 1d903b272fb2..000000000000 --- a/packages/google-identity-accesscontextmanager/samples/generated/v1/snippet_metadata_google.identity.accesscontextmanager.v1.json +++ /dev/null @@ -1,1183 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-accesscontextmanager", - "version": "4.2.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.identity.accesscontextmanager.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "accesscontextmanager_v1_generated_AccessContextManager_ListAccessPolicies_async", - "title": "AccessContextManager listAccessPolicies Sample", - "origin": "API_DEFINITION", - "description": " Lists all [access policies] [google.identity.accesscontextmanager.v1.AccessPolicy] in an organization.", - "canonical": true, - "file": "access_context_manager.list_access_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAccessPolicies", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager.ListAccessPolicies", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.identity.accesscontextmanager.v1.ListAccessPoliciesResponse", - "client": { - "shortName": "AccessContextManagerClient", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManagerClient" - }, - "method": { - "shortName": "ListAccessPolicies", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager.ListAccessPolicies", - "service": { - "shortName": "AccessContextManager", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager" - } - } - } - }, - { - "regionTag": "accesscontextmanager_v1_generated_AccessContextManager_GetAccessPolicy_async", - "title": "AccessContextManager getAccessPolicy Sample", - "origin": "API_DEFINITION", - "description": " Returns an [access policy] [google.identity.accesscontextmanager.v1.AccessPolicy] based on the name.", - "canonical": true, - "file": "access_context_manager.get_access_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAccessPolicy", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager.GetAccessPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.identity.accesscontextmanager.v1.AccessPolicy", - "client": { - "shortName": "AccessContextManagerClient", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManagerClient" - }, - "method": { - "shortName": "GetAccessPolicy", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager.GetAccessPolicy", - "service": { - "shortName": "AccessContextManager", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager" - } - } - } - }, - { - "regionTag": "accesscontextmanager_v1_generated_AccessContextManager_CreateAccessPolicy_async", - "title": "AccessContextManager createAccessPolicy Sample", - "origin": "API_DEFINITION", - "description": " Creates an access policy. This method fails if the organization already has an access policy. The long-running operation has a successful status after the access policy propagates to long-lasting storage. Syntactic and basic semantic errors are returned in `metadata` as a BadRequest proto.", - "canonical": true, - "file": "access_context_manager.create_access_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 96, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAccessPolicy", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager.CreateAccessPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "title", - "type": "TYPE_STRING" - }, - { - "name": "scopes", - "type": "TYPE_STRING[]" - }, - { - "name": "create_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "update_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AccessContextManagerClient", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManagerClient" - }, - "method": { - "shortName": "CreateAccessPolicy", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager.CreateAccessPolicy", - "service": { - "shortName": "AccessContextManager", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager" - } - } - } - }, - { - "regionTag": "accesscontextmanager_v1_generated_AccessContextManager_UpdateAccessPolicy_async", - "title": "AccessContextManager updateAccessPolicy Sample", - "origin": "API_DEFINITION", - "description": " Updates an [access policy] [google.identity.accesscontextmanager.v1.AccessPolicy]. The long-running operation from this RPC has a successful status after the changes to the [access policy] [google.identity.accesscontextmanager.v1.AccessPolicy] propagate to long-lasting storage.", - "canonical": true, - "file": "access_context_manager.update_access_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAccessPolicy", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager.UpdateAccessPolicy", - "async": true, - "parameters": [ - { - "name": "policy", - "type": ".google.identity.accesscontextmanager.v1.AccessPolicy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AccessContextManagerClient", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManagerClient" - }, - "method": { - "shortName": "UpdateAccessPolicy", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager.UpdateAccessPolicy", - "service": { - "shortName": "AccessContextManager", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager" - } - } - } - }, - { - "regionTag": "accesscontextmanager_v1_generated_AccessContextManager_DeleteAccessPolicy_async", - "title": "AccessContextManager deleteAccessPolicy Sample", - "origin": "API_DEFINITION", - "description": " Deletes an [access policy] [google.identity.accesscontextmanager.v1.AccessPolicy] based on the resource name. The long-running operation has a successful status after the [access policy] [google.identity.accesscontextmanager.v1.AccessPolicy] is removed from long-lasting storage.", - "canonical": true, - "file": "access_context_manager.delete_access_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAccessPolicy", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager.DeleteAccessPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AccessContextManagerClient", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManagerClient" - }, - "method": { - "shortName": "DeleteAccessPolicy", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager.DeleteAccessPolicy", - "service": { - "shortName": "AccessContextManager", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager" - } - } - } - }, - { - "regionTag": "accesscontextmanager_v1_generated_AccessContextManager_ListAccessLevels_async", - "title": "AccessContextManager listAccessLevels Sample", - "origin": "API_DEFINITION", - "description": " Lists all [access levels] [google.identity.accesscontextmanager.v1.AccessLevel] for an access policy.", - "canonical": true, - "file": "access_context_manager.list_access_levels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAccessLevels", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager.ListAccessLevels", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "access_level_format", - "type": ".google.identity.accesscontextmanager.v1.LevelFormat" - } - ], - "resultType": ".google.identity.accesscontextmanager.v1.ListAccessLevelsResponse", - "client": { - "shortName": "AccessContextManagerClient", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManagerClient" - }, - "method": { - "shortName": "ListAccessLevels", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager.ListAccessLevels", - "service": { - "shortName": "AccessContextManager", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager" - } - } - } - }, - { - "regionTag": "accesscontextmanager_v1_generated_AccessContextManager_GetAccessLevel_async", - "title": "AccessContextManager getAccessLevel Sample", - "origin": "API_DEFINITION", - "description": " Gets an [access level] [google.identity.accesscontextmanager.v1.AccessLevel] based on the resource name.", - "canonical": true, - "file": "access_context_manager.get_access_level.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAccessLevel", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager.GetAccessLevel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "access_level_format", - "type": ".google.identity.accesscontextmanager.v1.LevelFormat" - } - ], - "resultType": ".google.identity.accesscontextmanager.v1.AccessLevel", - "client": { - "shortName": "AccessContextManagerClient", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManagerClient" - }, - "method": { - "shortName": "GetAccessLevel", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager.GetAccessLevel", - "service": { - "shortName": "AccessContextManager", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager" - } - } - } - }, - { - "regionTag": "accesscontextmanager_v1_generated_AccessContextManager_CreateAccessLevel_async", - "title": "AccessContextManager createAccessLevel Sample", - "origin": "API_DEFINITION", - "description": " Creates an [access level] [google.identity.accesscontextmanager.v1.AccessLevel]. The long-running operation from this RPC has a successful status after the [access level] [google.identity.accesscontextmanager.v1.AccessLevel] propagates to long-lasting storage. If [access levels] [google.identity.accesscontextmanager.v1.AccessLevel] contain errors, an error response is returned for the first error encountered.", - "canonical": true, - "file": "access_context_manager.create_access_level.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAccessLevel", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager.CreateAccessLevel", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "access_level", - "type": ".google.identity.accesscontextmanager.v1.AccessLevel" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AccessContextManagerClient", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManagerClient" - }, - "method": { - "shortName": "CreateAccessLevel", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager.CreateAccessLevel", - "service": { - "shortName": "AccessContextManager", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager" - } - } - } - }, - { - "regionTag": "accesscontextmanager_v1_generated_AccessContextManager_UpdateAccessLevel_async", - "title": "AccessContextManager updateAccessLevel Sample", - "origin": "API_DEFINITION", - "description": " Updates an [access level] [google.identity.accesscontextmanager.v1.AccessLevel]. The long-running operation from this RPC has a successful status after the changes to the [access level] [google.identity.accesscontextmanager.v1.AccessLevel] propagate to long-lasting storage. If [access levels] [google.identity.accesscontextmanager.v1.AccessLevel] contain errors, an error response is returned for the first error encountered.", - "canonical": true, - "file": "access_context_manager.update_access_level.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAccessLevel", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager.UpdateAccessLevel", - "async": true, - "parameters": [ - { - "name": "access_level", - "type": ".google.identity.accesscontextmanager.v1.AccessLevel" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AccessContextManagerClient", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManagerClient" - }, - "method": { - "shortName": "UpdateAccessLevel", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager.UpdateAccessLevel", - "service": { - "shortName": "AccessContextManager", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager" - } - } - } - }, - { - "regionTag": "accesscontextmanager_v1_generated_AccessContextManager_DeleteAccessLevel_async", - "title": "AccessContextManager deleteAccessLevel Sample", - "origin": "API_DEFINITION", - "description": " Deletes an [access level] [google.identity.accesscontextmanager.v1.AccessLevel] based on the resource name. The long-running operation from this RPC has a successful status after the [access level] [google.identity.accesscontextmanager.v1.AccessLevel] has been removed from long-lasting storage.", - "canonical": true, - "file": "access_context_manager.delete_access_level.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAccessLevel", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager.DeleteAccessLevel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AccessContextManagerClient", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManagerClient" - }, - "method": { - "shortName": "DeleteAccessLevel", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager.DeleteAccessLevel", - "service": { - "shortName": "AccessContextManager", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager" - } - } - } - }, - { - "regionTag": "accesscontextmanager_v1_generated_AccessContextManager_ReplaceAccessLevels_async", - "title": "AccessContextManager replaceAccessLevels Sample", - "origin": "API_DEFINITION", - "description": " Replaces all existing [access levels] [google.identity.accesscontextmanager.v1.AccessLevel] in an [access policy] [google.identity.accesscontextmanager.v1.AccessPolicy] with the [access levels] [google.identity.accesscontextmanager.v1.AccessLevel] provided. This is done atomically. The long-running operation from this RPC has a successful status after all replacements propagate to long-lasting storage. If the replacement contains errors, an error response is returned for the first error encountered. Upon error, the replacement is cancelled, and existing [access levels] [google.identity.accesscontextmanager.v1.AccessLevel] are not affected. The Operation.response field contains ReplaceAccessLevelsResponse. Removing [access levels] [google.identity.accesscontextmanager.v1.AccessLevel] contained in existing [service perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] result in an error.", - "canonical": true, - "file": "access_context_manager.replace_access_levels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReplaceAccessLevels", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager.ReplaceAccessLevels", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "access_levels", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AccessContextManagerClient", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManagerClient" - }, - "method": { - "shortName": "ReplaceAccessLevels", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager.ReplaceAccessLevels", - "service": { - "shortName": "AccessContextManager", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager" - } - } - } - }, - { - "regionTag": "accesscontextmanager_v1_generated_AccessContextManager_ListServicePerimeters_async", - "title": "AccessContextManager listServicePerimeters Sample", - "origin": "API_DEFINITION", - "description": " Lists all [service perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] for an access policy.", - "canonical": true, - "file": "access_context_manager.list_service_perimeters.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListServicePerimeters", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager.ListServicePerimeters", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.identity.accesscontextmanager.v1.ListServicePerimetersResponse", - "client": { - "shortName": "AccessContextManagerClient", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManagerClient" - }, - "method": { - "shortName": "ListServicePerimeters", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager.ListServicePerimeters", - "service": { - "shortName": "AccessContextManager", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager" - } - } - } - }, - { - "regionTag": "accesscontextmanager_v1_generated_AccessContextManager_GetServicePerimeter_async", - "title": "AccessContextManager getServicePerimeter Sample", - "origin": "API_DEFINITION", - "description": " Gets a [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] based on the resource name.", - "canonical": true, - "file": "access_context_manager.get_service_perimeter.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetServicePerimeter", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager.GetServicePerimeter", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.identity.accesscontextmanager.v1.ServicePerimeter", - "client": { - "shortName": "AccessContextManagerClient", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManagerClient" - }, - "method": { - "shortName": "GetServicePerimeter", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager.GetServicePerimeter", - "service": { - "shortName": "AccessContextManager", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager" - } - } - } - }, - { - "regionTag": "accesscontextmanager_v1_generated_AccessContextManager_CreateServicePerimeter_async", - "title": "AccessContextManager createServicePerimeter Sample", - "origin": "API_DEFINITION", - "description": " Creates a [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter]. The long-running operation from this RPC has a successful status after the [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] propagates to long-lasting storage. If a [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] contains errors, an error response is returned for the first error encountered.", - "canonical": true, - "file": "access_context_manager.create_service_perimeter.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateServicePerimeter", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager.CreateServicePerimeter", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "service_perimeter", - "type": ".google.identity.accesscontextmanager.v1.ServicePerimeter" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AccessContextManagerClient", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManagerClient" - }, - "method": { - "shortName": "CreateServicePerimeter", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager.CreateServicePerimeter", - "service": { - "shortName": "AccessContextManager", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager" - } - } - } - }, - { - "regionTag": "accesscontextmanager_v1_generated_AccessContextManager_UpdateServicePerimeter_async", - "title": "AccessContextManager updateServicePerimeter Sample", - "origin": "API_DEFINITION", - "description": " Updates a [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter]. The long-running operation from this RPC has a successful status after the [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] propagates to long-lasting storage. If a [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] contains errors, an error response is returned for the first error encountered.", - "canonical": true, - "file": "access_context_manager.update_service_perimeter.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateServicePerimeter", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager.UpdateServicePerimeter", - "async": true, - "parameters": [ - { - "name": "service_perimeter", - "type": ".google.identity.accesscontextmanager.v1.ServicePerimeter" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AccessContextManagerClient", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManagerClient" - }, - "method": { - "shortName": "UpdateServicePerimeter", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager.UpdateServicePerimeter", - "service": { - "shortName": "AccessContextManager", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager" - } - } - } - }, - { - "regionTag": "accesscontextmanager_v1_generated_AccessContextManager_DeleteServicePerimeter_async", - "title": "AccessContextManager deleteServicePerimeter Sample", - "origin": "API_DEFINITION", - "description": " Deletes a [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] based on the resource name. The long-running operation from this RPC has a successful status after the [service perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter] is removed from long-lasting storage.", - "canonical": true, - "file": "access_context_manager.delete_service_perimeter.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteServicePerimeter", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager.DeleteServicePerimeter", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AccessContextManagerClient", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManagerClient" - }, - "method": { - "shortName": "DeleteServicePerimeter", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager.DeleteServicePerimeter", - "service": { - "shortName": "AccessContextManager", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager" - } - } - } - }, - { - "regionTag": "accesscontextmanager_v1_generated_AccessContextManager_ReplaceServicePerimeters_async", - "title": "AccessContextManager replaceServicePerimeters Sample", - "origin": "API_DEFINITION", - "description": " Replace all existing [service perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] in an [access policy] [google.identity.accesscontextmanager.v1.AccessPolicy] with the [service perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] provided. This is done atomically. The long-running operation from this RPC has a successful status after all replacements propagate to long-lasting storage. Replacements containing errors result in an error response for the first error encountered. Upon an error, replacement are cancelled and existing [service perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] are not affected. The Operation.response field contains ReplaceServicePerimetersResponse.", - "canonical": true, - "file": "access_context_manager.replace_service_perimeters.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReplaceServicePerimeters", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager.ReplaceServicePerimeters", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "service_perimeters", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AccessContextManagerClient", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManagerClient" - }, - "method": { - "shortName": "ReplaceServicePerimeters", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager.ReplaceServicePerimeters", - "service": { - "shortName": "AccessContextManager", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager" - } - } - } - }, - { - "regionTag": "accesscontextmanager_v1_generated_AccessContextManager_CommitServicePerimeters_async", - "title": "AccessContextManager commitServicePerimeters Sample", - "origin": "API_DEFINITION", - "description": " Commits the dry-run specification for all the [service perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] in an [access policy][google.identity.accesscontextmanager.v1.AccessPolicy]. A commit operation on a service perimeter involves copying its `spec` field to the `status` field of the service perimeter. Only [service perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] with `use_explicit_dry_run_spec` field set to true are affected by a commit operation. The long-running operation from this RPC has a successful status after the dry-run specifications for all the [service perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] have been committed. If a commit fails, it causes the long-running operation to return an error response and the entire commit operation is cancelled. When successful, the Operation.response field contains CommitServicePerimetersResponse. The `dry_run` and the `spec` fields are cleared after a successful commit operation.", - "canonical": true, - "file": "access_context_manager.commit_service_perimeters.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CommitServicePerimeters", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager.CommitServicePerimeters", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "etag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AccessContextManagerClient", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManagerClient" - }, - "method": { - "shortName": "CommitServicePerimeters", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager.CommitServicePerimeters", - "service": { - "shortName": "AccessContextManager", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager" - } - } - } - }, - { - "regionTag": "accesscontextmanager_v1_generated_AccessContextManager_ListGcpUserAccessBindings_async", - "title": "AccessContextManager listGcpUserAccessBindings Sample", - "origin": "API_DEFINITION", - "description": " Lists all [GcpUserAccessBindings] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding] for a Google Cloud organization.", - "canonical": true, - "file": "access_context_manager.list_gcp_user_access_bindings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListGcpUserAccessBindings", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager.ListGcpUserAccessBindings", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.identity.accesscontextmanager.v1.ListGcpUserAccessBindingsResponse", - "client": { - "shortName": "AccessContextManagerClient", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManagerClient" - }, - "method": { - "shortName": "ListGcpUserAccessBindings", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager.ListGcpUserAccessBindings", - "service": { - "shortName": "AccessContextManager", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager" - } - } - } - }, - { - "regionTag": "accesscontextmanager_v1_generated_AccessContextManager_GetGcpUserAccessBinding_async", - "title": "AccessContextManager getGcpUserAccessBinding Sample", - "origin": "API_DEFINITION", - "description": " Gets the [GcpUserAccessBinding] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding] with the given name.", - "canonical": true, - "file": "access_context_manager.get_gcp_user_access_binding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetGcpUserAccessBinding", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager.GetGcpUserAccessBinding", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.identity.accesscontextmanager.v1.GcpUserAccessBinding", - "client": { - "shortName": "AccessContextManagerClient", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManagerClient" - }, - "method": { - "shortName": "GetGcpUserAccessBinding", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager.GetGcpUserAccessBinding", - "service": { - "shortName": "AccessContextManager", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager" - } - } - } - }, - { - "regionTag": "accesscontextmanager_v1_generated_AccessContextManager_CreateGcpUserAccessBinding_async", - "title": "AccessContextManager createGcpUserAccessBinding Sample", - "origin": "API_DEFINITION", - "description": " Creates a [GcpUserAccessBinding] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding]. If the client specifies a [name] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding.name], the server ignores it. Fails if a resource already exists with the same [group_key] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding.group_key]. Completion of this long-running operation does not necessarily signify that the new binding is deployed onto all affected users, which may take more time.", - "canonical": true, - "file": "access_context_manager.create_gcp_user_access_binding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateGcpUserAccessBinding", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager.CreateGcpUserAccessBinding", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "gcp_user_access_binding", - "type": ".google.identity.accesscontextmanager.v1.GcpUserAccessBinding" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AccessContextManagerClient", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManagerClient" - }, - "method": { - "shortName": "CreateGcpUserAccessBinding", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager.CreateGcpUserAccessBinding", - "service": { - "shortName": "AccessContextManager", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager" - } - } - } - }, - { - "regionTag": "accesscontextmanager_v1_generated_AccessContextManager_UpdateGcpUserAccessBinding_async", - "title": "AccessContextManager updateGcpUserAccessBinding Sample", - "origin": "API_DEFINITION", - "description": " Updates a [GcpUserAccessBinding] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding]. Completion of this long-running operation does not necessarily signify that the changed binding is deployed onto all affected users, which may take more time.", - "canonical": true, - "file": "access_context_manager.update_gcp_user_access_binding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateGcpUserAccessBinding", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager.UpdateGcpUserAccessBinding", - "async": true, - "parameters": [ - { - "name": "gcp_user_access_binding", - "type": ".google.identity.accesscontextmanager.v1.GcpUserAccessBinding" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AccessContextManagerClient", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManagerClient" - }, - "method": { - "shortName": "UpdateGcpUserAccessBinding", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager.UpdateGcpUserAccessBinding", - "service": { - "shortName": "AccessContextManager", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager" - } - } - } - }, - { - "regionTag": "accesscontextmanager_v1_generated_AccessContextManager_DeleteGcpUserAccessBinding_async", - "title": "AccessContextManager deleteGcpUserAccessBinding Sample", - "origin": "API_DEFINITION", - "description": " Deletes a [GcpUserAccessBinding] [google.identity.accesscontextmanager.v1.GcpUserAccessBinding]. Completion of this long-running operation does not necessarily signify that the binding deletion is deployed onto all affected users, which may take more time.", - "canonical": true, - "file": "access_context_manager.delete_gcp_user_access_binding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteGcpUserAccessBinding", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager.DeleteGcpUserAccessBinding", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "AccessContextManagerClient", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManagerClient" - }, - "method": { - "shortName": "DeleteGcpUserAccessBinding", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager.DeleteGcpUserAccessBinding", - "service": { - "shortName": "AccessContextManager", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager" - } - } - } - }, - { - "regionTag": "accesscontextmanager_v1_generated_AccessContextManager_SetIamPolicy_async", - "title": "AccessContextManager setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the IAM policy for the specified Access Context Manager [access policy][google.identity.accesscontextmanager.v1.AccessPolicy]. This method replaces the existing IAM policy on the access policy. The IAM policy controls the set of users who can perform specific operations on the Access Context Manager [access policy][google.identity.accesscontextmanager.v1.AccessPolicy].", - "canonical": true, - "file": "access_context_manager.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.iam.v1.Policy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "AccessContextManagerClient", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManagerClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager.SetIamPolicy", - "service": { - "shortName": "AccessContextManager", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager" - } - } - } - }, - { - "regionTag": "accesscontextmanager_v1_generated_AccessContextManager_GetIamPolicy_async", - "title": "AccessContextManager getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the IAM policy for the specified Access Context Manager [access policy][google.identity.accesscontextmanager.v1.AccessPolicy].", - "canonical": true, - "file": "access_context_manager.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": ".google.iam.v1.GetPolicyOptions" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "AccessContextManagerClient", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManagerClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager.GetIamPolicy", - "service": { - "shortName": "AccessContextManager", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager" - } - } - } - }, - { - "regionTag": "accesscontextmanager_v1_generated_AccessContextManager_TestIamPermissions_async", - "title": "AccessContextManager testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Returns the IAM permissions that the caller has on the specified Access Context Manager resource. The resource can be an [AccessPolicy][google.identity.accesscontextmanager.v1.AccessPolicy], [AccessLevel][google.identity.accesscontextmanager.v1.AccessLevel], or [ServicePerimeter][google.identity.accesscontextmanager.v1.ServicePerimeter ]. This method does not support other resources.", - "canonical": true, - "file": "access_context_manager.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "permissions", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.iam.v1.TestIamPermissionsResponse", - "client": { - "shortName": "AccessContextManagerClient", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManagerClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager.TestIamPermissions", - "service": { - "shortName": "AccessContextManager", - "fullName": "google.identity.accesscontextmanager.v1.AccessContextManager" - } - } - } - } - ] -} diff --git a/packages/google-maps-addressvalidation/samples/generated/v1/snippet_metadata_google.maps.addressvalidation.v1.json b/packages/google-maps-addressvalidation/samples/generated/v1/snippet_metadata_google.maps.addressvalidation.v1.json deleted file mode 100644 index 81f6a933f444..000000000000 --- a/packages/google-maps-addressvalidation/samples/generated/v1/snippet_metadata_google.maps.addressvalidation.v1.json +++ /dev/null @@ -1,111 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-addressvalidation", - "version": "3.2.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.maps.addressvalidation.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "addressvalidation_v1_generated_AddressValidation_ValidateAddress_async", - "title": "AddressValidation validateAddress Sample", - "origin": "API_DEFINITION", - "description": " Validates an address.", - "canonical": true, - "file": "address_validation.validate_address.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 111, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ValidateAddress", - "fullName": "google.maps.addressvalidation.v1.AddressValidation.ValidateAddress", - "async": true, - "parameters": [ - { - "name": "address", - "type": ".google.type.PostalAddress" - }, - { - "name": "previous_response_id", - "type": "TYPE_STRING" - }, - { - "name": "enable_usps_cass", - "type": "TYPE_BOOL" - }, - { - "name": "session_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.maps.addressvalidation.v1.ValidateAddressResponse", - "client": { - "shortName": "AddressValidationClient", - "fullName": "google.maps.addressvalidation.v1.AddressValidationClient" - }, - "method": { - "shortName": "ValidateAddress", - "fullName": "google.maps.addressvalidation.v1.AddressValidation.ValidateAddress", - "service": { - "shortName": "AddressValidation", - "fullName": "google.maps.addressvalidation.v1.AddressValidation" - } - } - } - }, - { - "regionTag": "addressvalidation_v1_generated_AddressValidation_ProvideValidationFeedback_async", - "title": "AddressValidation provideValidationFeedback Sample", - "origin": "API_DEFINITION", - "description": " Feedback about the outcome of the sequence of validation attempts. This should be the last call made after a sequence of validation calls for the same address, and should be called once the transaction is concluded. This should only be sent once for the sequence of `ValidateAddress` requests needed to validate an address fully.", - "canonical": true, - "file": "address_validation.provide_validation_feedback.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ProvideValidationFeedback", - "fullName": "google.maps.addressvalidation.v1.AddressValidation.ProvideValidationFeedback", - "async": true, - "parameters": [ - { - "name": "conclusion", - "type": ".google.maps.addressvalidation.v1.ProvideValidationFeedbackRequest.ValidationConclusion" - }, - { - "name": "response_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.maps.addressvalidation.v1.ProvideValidationFeedbackResponse", - "client": { - "shortName": "AddressValidationClient", - "fullName": "google.maps.addressvalidation.v1.AddressValidationClient" - }, - "method": { - "shortName": "ProvideValidationFeedback", - "fullName": "google.maps.addressvalidation.v1.AddressValidation.ProvideValidationFeedback", - "service": { - "shortName": "AddressValidation", - "fullName": "google.maps.addressvalidation.v1.AddressValidation" - } - } - } - } - ] -} diff --git a/packages/google-maps-areainsights/samples/generated/v1/snippet_metadata_google.maps.areainsights.v1.json b/packages/google-maps-areainsights/samples/generated/v1/snippet_metadata_google.maps.areainsights.v1.json deleted file mode 100644 index 3c06ede3c4a0..000000000000 --- a/packages/google-maps-areainsights/samples/generated/v1/snippet_metadata_google.maps.areainsights.v1.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-areainsights", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.maps.areainsights.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "areainsights_v1_generated_AreaInsights_ComputeInsights_async", - "title": "AreaInsights computeInsights Sample", - "origin": "API_DEFINITION", - "description": " This method lets you retrieve insights about areas using a variety of filter such as: area, place type, operating status, price level and ratings. Currently \"count\" and \"places\" insights are supported. With \"count\" insights you can answer questions such as \"How many restaurant are located in California that are operational, are inexpensive and have an average rating of at least 4 stars\" (see `insight` enum for more details). With \"places\" insights, you can determine which places match the requested filter. Clients can then use those place resource names to fetch more details about each individual place using the Places API.", - "canonical": true, - "file": "area_insights.compute_insights.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ComputeInsights", - "fullName": "google.maps.areainsights.v1.AreaInsights.ComputeInsights", - "async": true, - "parameters": [ - { - "name": "insights", - "type": "TYPE_ENUM[]" - }, - { - "name": "filter", - "type": ".google.maps.areainsights.v1.Filter" - } - ], - "resultType": ".google.maps.areainsights.v1.ComputeInsightsResponse", - "client": { - "shortName": "AreaInsightsClient", - "fullName": "google.maps.areainsights.v1.AreaInsightsClient" - }, - "method": { - "shortName": "ComputeInsights", - "fullName": "google.maps.areainsights.v1.AreaInsights.ComputeInsights", - "service": { - "shortName": "AreaInsights", - "fullName": "google.maps.areainsights.v1.AreaInsights" - } - } - } - } - ] -} diff --git a/packages/google-maps-fleetengine-delivery/samples/generated/v1/snippet_metadata_maps.fleetengine.delivery.v1.json b/packages/google-maps-fleetengine-delivery/samples/generated/v1/snippet_metadata_maps.fleetengine.delivery.v1.json deleted file mode 100644 index 8be51681a521..000000000000 --- a/packages/google-maps-fleetengine-delivery/samples/generated/v1/snippet_metadata_maps.fleetengine.delivery.v1.json +++ /dev/null @@ -1,599 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-delivery", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "maps.fleetengine.delivery.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "fleetengine_v1_generated_DeliveryService_CreateDeliveryVehicle_async", - "title": "DeliveryService createDeliveryVehicle Sample", - "origin": "API_DEFINITION", - "description": " Creates and returns a new `DeliveryVehicle`.", - "canonical": true, - "file": "delivery_service.create_delivery_vehicle.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDeliveryVehicle", - "fullName": "maps.fleetengine.delivery.v1.DeliveryService.CreateDeliveryVehicle", - "async": true, - "parameters": [ - { - "name": "header", - "type": ".maps.fleetengine.delivery.v1.DeliveryRequestHeader" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "delivery_vehicle_id", - "type": "TYPE_STRING" - }, - { - "name": "delivery_vehicle", - "type": ".maps.fleetengine.delivery.v1.DeliveryVehicle" - } - ], - "resultType": ".maps.fleetengine.delivery.v1.DeliveryVehicle", - "client": { - "shortName": "DeliveryServiceClient", - "fullName": "maps.fleetengine.delivery.v1.DeliveryServiceClient" - }, - "method": { - "shortName": "CreateDeliveryVehicle", - "fullName": "maps.fleetengine.delivery.v1.DeliveryService.CreateDeliveryVehicle", - "service": { - "shortName": "DeliveryService", - "fullName": "maps.fleetengine.delivery.v1.DeliveryService" - } - } - } - }, - { - "regionTag": "fleetengine_v1_generated_DeliveryService_GetDeliveryVehicle_async", - "title": "DeliveryService getDeliveryVehicle Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified `DeliveryVehicle` instance.", - "canonical": true, - "file": "delivery_service.get_delivery_vehicle.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDeliveryVehicle", - "fullName": "maps.fleetengine.delivery.v1.DeliveryService.GetDeliveryVehicle", - "async": true, - "parameters": [ - { - "name": "header", - "type": ".maps.fleetengine.delivery.v1.DeliveryRequestHeader" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".maps.fleetengine.delivery.v1.DeliveryVehicle", - "client": { - "shortName": "DeliveryServiceClient", - "fullName": "maps.fleetengine.delivery.v1.DeliveryServiceClient" - }, - "method": { - "shortName": "GetDeliveryVehicle", - "fullName": "maps.fleetengine.delivery.v1.DeliveryService.GetDeliveryVehicle", - "service": { - "shortName": "DeliveryService", - "fullName": "maps.fleetengine.delivery.v1.DeliveryService" - } - } - } - }, - { - "regionTag": "fleetengine_v1_generated_DeliveryService_DeleteDeliveryVehicle_async", - "title": "DeliveryService deleteDeliveryVehicle Sample", - "origin": "API_DEFINITION", - "description": " Deletes a DeliveryVehicle from the Fleet Engine. Returns FAILED_PRECONDITION if the DeliveryVehicle has OPEN Tasks assigned to it.", - "canonical": true, - "file": "delivery_service.delete_delivery_vehicle.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDeliveryVehicle", - "fullName": "maps.fleetengine.delivery.v1.DeliveryService.DeleteDeliveryVehicle", - "async": true, - "parameters": [ - { - "name": "header", - "type": ".maps.fleetengine.delivery.v1.DeliveryRequestHeader" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DeliveryServiceClient", - "fullName": "maps.fleetengine.delivery.v1.DeliveryServiceClient" - }, - "method": { - "shortName": "DeleteDeliveryVehicle", - "fullName": "maps.fleetengine.delivery.v1.DeliveryService.DeleteDeliveryVehicle", - "service": { - "shortName": "DeliveryService", - "fullName": "maps.fleetengine.delivery.v1.DeliveryService" - } - } - } - }, - { - "regionTag": "fleetengine_v1_generated_DeliveryService_UpdateDeliveryVehicle_async", - "title": "DeliveryService updateDeliveryVehicle Sample", - "origin": "API_DEFINITION", - "description": " Writes updated `DeliveryVehicle` data to Fleet Engine, and assigns `Tasks` to the `DeliveryVehicle`. You cannot update the name of the `DeliveryVehicle`. You *can* update `remaining_vehicle_journey_segments`, but it must contain all of the `VehicleJourneySegment`s to be persisted on the `DeliveryVehicle`. The `task_id`s are retrieved from `remaining_vehicle_journey_segments`, and their corresponding `Tasks` are assigned to the `DeliveryVehicle` if they have not yet been assigned.", - "canonical": true, - "file": "delivery_service.update_delivery_vehicle.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDeliveryVehicle", - "fullName": "maps.fleetengine.delivery.v1.DeliveryService.UpdateDeliveryVehicle", - "async": true, - "parameters": [ - { - "name": "header", - "type": ".maps.fleetengine.delivery.v1.DeliveryRequestHeader" - }, - { - "name": "delivery_vehicle", - "type": ".maps.fleetengine.delivery.v1.DeliveryVehicle" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".maps.fleetengine.delivery.v1.DeliveryVehicle", - "client": { - "shortName": "DeliveryServiceClient", - "fullName": "maps.fleetengine.delivery.v1.DeliveryServiceClient" - }, - "method": { - "shortName": "UpdateDeliveryVehicle", - "fullName": "maps.fleetengine.delivery.v1.DeliveryService.UpdateDeliveryVehicle", - "service": { - "shortName": "DeliveryService", - "fullName": "maps.fleetengine.delivery.v1.DeliveryService" - } - } - } - }, - { - "regionTag": "fleetengine_v1_generated_DeliveryService_BatchCreateTasks_async", - "title": "DeliveryService batchCreateTasks Sample", - "origin": "API_DEFINITION", - "description": " Creates and returns a batch of new `Task` objects.", - "canonical": true, - "file": "delivery_service.batch_create_tasks.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCreateTasks", - "fullName": "maps.fleetengine.delivery.v1.DeliveryService.BatchCreateTasks", - "async": true, - "parameters": [ - { - "name": "header", - "type": ".maps.fleetengine.delivery.v1.DeliveryRequestHeader" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".maps.fleetengine.delivery.v1.BatchCreateTasksResponse", - "client": { - "shortName": "DeliveryServiceClient", - "fullName": "maps.fleetengine.delivery.v1.DeliveryServiceClient" - }, - "method": { - "shortName": "BatchCreateTasks", - "fullName": "maps.fleetengine.delivery.v1.DeliveryService.BatchCreateTasks", - "service": { - "shortName": "DeliveryService", - "fullName": "maps.fleetengine.delivery.v1.DeliveryService" - } - } - } - }, - { - "regionTag": "fleetengine_v1_generated_DeliveryService_CreateTask_async", - "title": "DeliveryService createTask Sample", - "origin": "API_DEFINITION", - "description": " Creates and returns a new `Task` object.", - "canonical": true, - "file": "delivery_service.create_task.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 90, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTask", - "fullName": "maps.fleetengine.delivery.v1.DeliveryService.CreateTask", - "async": true, - "parameters": [ - { - "name": "header", - "type": ".maps.fleetengine.delivery.v1.DeliveryRequestHeader" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "task_id", - "type": "TYPE_STRING" - }, - { - "name": "task", - "type": ".maps.fleetengine.delivery.v1.Task" - } - ], - "resultType": ".maps.fleetengine.delivery.v1.Task", - "client": { - "shortName": "DeliveryServiceClient", - "fullName": "maps.fleetengine.delivery.v1.DeliveryServiceClient" - }, - "method": { - "shortName": "CreateTask", - "fullName": "maps.fleetengine.delivery.v1.DeliveryService.CreateTask", - "service": { - "shortName": "DeliveryService", - "fullName": "maps.fleetengine.delivery.v1.DeliveryService" - } - } - } - }, - { - "regionTag": "fleetengine_v1_generated_DeliveryService_GetTask_async", - "title": "DeliveryService getTask Sample", - "origin": "API_DEFINITION", - "description": " Gets information about a `Task`.", - "canonical": true, - "file": "delivery_service.get_task.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTask", - "fullName": "maps.fleetengine.delivery.v1.DeliveryService.GetTask", - "async": true, - "parameters": [ - { - "name": "header", - "type": ".maps.fleetengine.delivery.v1.DeliveryRequestHeader" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".maps.fleetengine.delivery.v1.Task", - "client": { - "shortName": "DeliveryServiceClient", - "fullName": "maps.fleetengine.delivery.v1.DeliveryServiceClient" - }, - "method": { - "shortName": "GetTask", - "fullName": "maps.fleetengine.delivery.v1.DeliveryService.GetTask", - "service": { - "shortName": "DeliveryService", - "fullName": "maps.fleetengine.delivery.v1.DeliveryService" - } - } - } - }, - { - "regionTag": "fleetengine_v1_generated_DeliveryService_DeleteTask_async", - "title": "DeliveryService deleteTask Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Task. Returns FAILED_PRECONDITION if the Task is OPEN and assigned to a DeliveryVehicle.", - "canonical": true, - "file": "delivery_service.delete_task.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTask", - "fullName": "maps.fleetengine.delivery.v1.DeliveryService.DeleteTask", - "async": true, - "parameters": [ - { - "name": "header", - "type": ".maps.fleetengine.delivery.v1.DeliveryRequestHeader" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DeliveryServiceClient", - "fullName": "maps.fleetengine.delivery.v1.DeliveryServiceClient" - }, - "method": { - "shortName": "DeleteTask", - "fullName": "maps.fleetengine.delivery.v1.DeliveryService.DeleteTask", - "service": { - "shortName": "DeliveryService", - "fullName": "maps.fleetengine.delivery.v1.DeliveryService" - } - } - } - }, - { - "regionTag": "fleetengine_v1_generated_DeliveryService_UpdateTask_async", - "title": "DeliveryService updateTask Sample", - "origin": "API_DEFINITION", - "description": " Updates `Task` data.", - "canonical": true, - "file": "delivery_service.update_task.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTask", - "fullName": "maps.fleetengine.delivery.v1.DeliveryService.UpdateTask", - "async": true, - "parameters": [ - { - "name": "header", - "type": ".maps.fleetengine.delivery.v1.DeliveryRequestHeader" - }, - { - "name": "task", - "type": ".maps.fleetengine.delivery.v1.Task" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".maps.fleetengine.delivery.v1.Task", - "client": { - "shortName": "DeliveryServiceClient", - "fullName": "maps.fleetengine.delivery.v1.DeliveryServiceClient" - }, - "method": { - "shortName": "UpdateTask", - "fullName": "maps.fleetengine.delivery.v1.DeliveryService.UpdateTask", - "service": { - "shortName": "DeliveryService", - "fullName": "maps.fleetengine.delivery.v1.DeliveryService" - } - } - } - }, - { - "regionTag": "fleetengine_v1_generated_DeliveryService_ListTasks_async", - "title": "DeliveryService listTasks Sample", - "origin": "API_DEFINITION", - "description": " Gets all `Task`s that meet the specified filtering criteria.", - "canonical": true, - "file": "delivery_service.list_tasks.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTasks", - "fullName": "maps.fleetengine.delivery.v1.DeliveryService.ListTasks", - "async": true, - "parameters": [ - { - "name": "header", - "type": ".maps.fleetengine.delivery.v1.DeliveryRequestHeader" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".maps.fleetengine.delivery.v1.ListTasksResponse", - "client": { - "shortName": "DeliveryServiceClient", - "fullName": "maps.fleetengine.delivery.v1.DeliveryServiceClient" - }, - "method": { - "shortName": "ListTasks", - "fullName": "maps.fleetengine.delivery.v1.DeliveryService.ListTasks", - "service": { - "shortName": "DeliveryService", - "fullName": "maps.fleetengine.delivery.v1.DeliveryService" - } - } - } - }, - { - "regionTag": "fleetengine_v1_generated_DeliveryService_GetTaskTrackingInfo_async", - "title": "DeliveryService getTaskTrackingInfo Sample", - "origin": "API_DEFINITION", - "description": " Returns the specified `TaskTrackingInfo` instance.", - "canonical": true, - "file": "delivery_service.get_task_tracking_info.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTaskTrackingInfo", - "fullName": "maps.fleetengine.delivery.v1.DeliveryService.GetTaskTrackingInfo", - "async": true, - "parameters": [ - { - "name": "header", - "type": ".maps.fleetengine.delivery.v1.DeliveryRequestHeader" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".maps.fleetengine.delivery.v1.TaskTrackingInfo", - "client": { - "shortName": "DeliveryServiceClient", - "fullName": "maps.fleetengine.delivery.v1.DeliveryServiceClient" - }, - "method": { - "shortName": "GetTaskTrackingInfo", - "fullName": "maps.fleetengine.delivery.v1.DeliveryService.GetTaskTrackingInfo", - "service": { - "shortName": "DeliveryService", - "fullName": "maps.fleetengine.delivery.v1.DeliveryService" - } - } - } - }, - { - "regionTag": "fleetengine_v1_generated_DeliveryService_ListDeliveryVehicles_async", - "title": "DeliveryService listDeliveryVehicles Sample", - "origin": "API_DEFINITION", - "description": " Gets all `DeliveryVehicle`s that meet the specified filtering criteria.", - "canonical": true, - "file": "delivery_service.list_delivery_vehicles.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 98, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDeliveryVehicles", - "fullName": "maps.fleetengine.delivery.v1.DeliveryService.ListDeliveryVehicles", - "async": true, - "parameters": [ - { - "name": "header", - "type": ".maps.fleetengine.delivery.v1.DeliveryRequestHeader" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "viewport", - "type": ".google.geo.type.Viewport" - } - ], - "resultType": ".maps.fleetengine.delivery.v1.ListDeliveryVehiclesResponse", - "client": { - "shortName": "DeliveryServiceClient", - "fullName": "maps.fleetengine.delivery.v1.DeliveryServiceClient" - }, - "method": { - "shortName": "ListDeliveryVehicles", - "fullName": "maps.fleetengine.delivery.v1.DeliveryService.ListDeliveryVehicles", - "service": { - "shortName": "DeliveryService", - "fullName": "maps.fleetengine.delivery.v1.DeliveryService" - } - } - } - } - ] -} diff --git a/packages/google-maps-fleetengine/samples/generated/v1/snippet_metadata_maps.fleetengine.v1.json b/packages/google-maps-fleetengine/samples/generated/v1/snippet_metadata_maps.fleetengine.v1.json deleted file mode 100644 index 0f497d4171ec..000000000000 --- a/packages/google-maps-fleetengine/samples/generated/v1/snippet_metadata_maps.fleetengine.v1.json +++ /dev/null @@ -1,803 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-fleetengine", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "maps.fleetengine.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "fleetengine_v1_generated_TripService_CreateTrip_async", - "title": "TripService createTrip Sample", - "origin": "API_DEFINITION", - "description": " Creates a trip in the Fleet Engine and returns the new trip.", - "canonical": true, - "file": "trip_service.create_trip.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 102, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTrip", - "fullName": "maps.fleetengine.v1.TripService.CreateTrip", - "async": true, - "parameters": [ - { - "name": "header", - "type": ".maps.fleetengine.v1.RequestHeader" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "trip_id", - "type": "TYPE_STRING" - }, - { - "name": "trip", - "type": ".maps.fleetengine.v1.Trip" - } - ], - "resultType": ".maps.fleetengine.v1.Trip", - "client": { - "shortName": "TripServiceClient", - "fullName": "maps.fleetengine.v1.TripServiceClient" - }, - "method": { - "shortName": "CreateTrip", - "fullName": "maps.fleetengine.v1.TripService.CreateTrip", - "service": { - "shortName": "TripService", - "fullName": "maps.fleetengine.v1.TripService" - } - } - } - }, - { - "regionTag": "fleetengine_v1_generated_TripService_GetTrip_async", - "title": "TripService getTrip Sample", - "origin": "API_DEFINITION", - "description": " Get information about a single trip.", - "canonical": true, - "file": "trip_service.get_trip.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 95, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTrip", - "fullName": "maps.fleetengine.v1.TripService.GetTrip", - "async": true, - "parameters": [ - { - "name": "header", - "type": ".maps.fleetengine.v1.RequestHeader" - }, - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".maps.fleetengine.v1.TripView" - }, - { - "name": "current_route_segment_version", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "remaining_waypoints_version", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "route_format_type", - "type": ".maps.fleetengine.v1.PolylineFormatType" - }, - { - "name": "current_route_segment_traffic_version", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "remaining_waypoints_route_version", - "type": ".google.protobuf.Timestamp" - } - ], - "resultType": ".maps.fleetengine.v1.Trip", - "client": { - "shortName": "TripServiceClient", - "fullName": "maps.fleetengine.v1.TripServiceClient" - }, - "method": { - "shortName": "GetTrip", - "fullName": "maps.fleetengine.v1.TripService.GetTrip", - "service": { - "shortName": "TripService", - "fullName": "maps.fleetengine.v1.TripService" - } - } - } - }, - { - "regionTag": "fleetengine_v1_generated_TripService_DeleteTrip_async", - "title": "TripService deleteTrip Sample", - "origin": "API_DEFINITION", - "description": " Deletes a single Trip. Returns FAILED_PRECONDITION if the Trip is active and assigned to a vehicle.", - "canonical": true, - "file": "trip_service.delete_trip.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTrip", - "fullName": "maps.fleetengine.v1.TripService.DeleteTrip", - "async": true, - "parameters": [ - { - "name": "header", - "type": ".maps.fleetengine.v1.RequestHeader" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "TripServiceClient", - "fullName": "maps.fleetengine.v1.TripServiceClient" - }, - "method": { - "shortName": "DeleteTrip", - "fullName": "maps.fleetengine.v1.TripService.DeleteTrip", - "service": { - "shortName": "TripService", - "fullName": "maps.fleetengine.v1.TripService" - } - } - } - }, - { - "regionTag": "fleetengine_v1_generated_TripService_ReportBillableTrip_async", - "title": "TripService reportBillableTrip Sample", - "origin": "API_DEFINITION", - "description": " Report billable trip usage.", - "canonical": true, - "file": "trip_service.report_billable_trip.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReportBillableTrip", - "fullName": "maps.fleetengine.v1.TripService.ReportBillableTrip", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "country_code", - "type": "TYPE_STRING" - }, - { - "name": "platform", - "type": ".maps.fleetengine.v1.BillingPlatformIdentifier" - }, - { - "name": "related_ids", - "type": "TYPE_STRING[]" - }, - { - "name": "solution_type", - "type": ".maps.fleetengine.v1.ReportBillableTripRequest.SolutionType" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "TripServiceClient", - "fullName": "maps.fleetengine.v1.TripServiceClient" - }, - "method": { - "shortName": "ReportBillableTrip", - "fullName": "maps.fleetengine.v1.TripService.ReportBillableTrip", - "service": { - "shortName": "TripService", - "fullName": "maps.fleetengine.v1.TripService" - } - } - } - }, - { - "regionTag": "fleetengine_v1_generated_TripService_SearchTrips_async", - "title": "TripService searchTrips Sample", - "origin": "API_DEFINITION", - "description": " Get all the trips for a specific vehicle.", - "canonical": true, - "file": "trip_service.search_trips.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 90, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchTrips", - "fullName": "maps.fleetengine.v1.TripService.SearchTrips", - "async": true, - "parameters": [ - { - "name": "header", - "type": ".maps.fleetengine.v1.RequestHeader" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "vehicle_id", - "type": "TYPE_STRING" - }, - { - "name": "active_trips_only", - "type": "TYPE_BOOL" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "minimum_staleness", - "type": ".google.protobuf.Duration" - } - ], - "resultType": ".maps.fleetengine.v1.SearchTripsResponse", - "client": { - "shortName": "TripServiceClient", - "fullName": "maps.fleetengine.v1.TripServiceClient" - }, - "method": { - "shortName": "SearchTrips", - "fullName": "maps.fleetengine.v1.TripService.SearchTrips", - "service": { - "shortName": "TripService", - "fullName": "maps.fleetengine.v1.TripService" - } - } - } - }, - { - "regionTag": "fleetengine_v1_generated_TripService_UpdateTrip_async", - "title": "TripService updateTrip Sample", - "origin": "API_DEFINITION", - "description": " Updates trip data.", - "canonical": true, - "file": "trip_service.update_trip.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 106, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTrip", - "fullName": "maps.fleetengine.v1.TripService.UpdateTrip", - "async": true, - "parameters": [ - { - "name": "header", - "type": ".maps.fleetengine.v1.RequestHeader" - }, - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "trip", - "type": ".maps.fleetengine.v1.Trip" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".maps.fleetengine.v1.Trip", - "client": { - "shortName": "TripServiceClient", - "fullName": "maps.fleetengine.v1.TripServiceClient" - }, - "method": { - "shortName": "UpdateTrip", - "fullName": "maps.fleetengine.v1.TripService.UpdateTrip", - "service": { - "shortName": "TripService", - "fullName": "maps.fleetengine.v1.TripService" - } - } - } - }, - { - "regionTag": "fleetengine_v1_generated_VehicleService_CreateVehicle_async", - "title": "TripService createVehicle Sample", - "origin": "API_DEFINITION", - "description": " Instantiates a new vehicle associated with an on-demand rideshare or deliveries provider. Each `Vehicle` must have a unique vehicle ID. The following `Vehicle` fields are required when creating a `Vehicle`: * `vehicleState` * `supportedTripTypes` * `maximumCapacity` * `vehicleType` The following `Vehicle` fields are ignored when creating a `Vehicle`: * `name` * `currentTrips` * `availableCapacity` * `current_route_segment` * `current_route_segment_end_point` * `current_route_segment_version` * `current_route_segment_traffic` * `route` * `waypoints` * `waypoints_version` * `remaining_distance_meters` * `remaining_time_seconds` * `eta_to_next_waypoint` * `navigation_status` All other fields are optional and used if provided.", - "canonical": true, - "file": "vehicle_service.create_vehicle.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 98, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateVehicle", - "fullName": "maps.fleetengine.v1.VehicleService.CreateVehicle", - "async": true, - "parameters": [ - { - "name": "header", - "type": ".maps.fleetengine.v1.RequestHeader" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "vehicle_id", - "type": "TYPE_STRING" - }, - { - "name": "vehicle", - "type": ".maps.fleetengine.v1.Vehicle" - } - ], - "resultType": ".maps.fleetengine.v1.Vehicle", - "client": { - "shortName": "VehicleServiceClient", - "fullName": "maps.fleetengine.v1.VehicleServiceClient" - }, - "method": { - "shortName": "CreateVehicle", - "fullName": "maps.fleetengine.v1.VehicleService.CreateVehicle", - "service": { - "shortName": "VehicleService", - "fullName": "maps.fleetengine.v1.VehicleService" - } - } - } - }, - { - "regionTag": "fleetengine_v1_generated_VehicleService_GetVehicle_async", - "title": "TripService getVehicle Sample", - "origin": "API_DEFINITION", - "description": " Returns a vehicle from the Fleet Engine.", - "canonical": true, - "file": "vehicle_service.get_vehicle.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetVehicle", - "fullName": "maps.fleetengine.v1.VehicleService.GetVehicle", - "async": true, - "parameters": [ - { - "name": "header", - "type": ".maps.fleetengine.v1.RequestHeader" - }, - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "current_route_segment_version", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "waypoints_version", - "type": ".google.protobuf.Timestamp" - } - ], - "resultType": ".maps.fleetengine.v1.Vehicle", - "client": { - "shortName": "VehicleServiceClient", - "fullName": "maps.fleetengine.v1.VehicleServiceClient" - }, - "method": { - "shortName": "GetVehicle", - "fullName": "maps.fleetengine.v1.VehicleService.GetVehicle", - "service": { - "shortName": "VehicleService", - "fullName": "maps.fleetengine.v1.VehicleService" - } - } - } - }, - { - "regionTag": "fleetengine_v1_generated_VehicleService_DeleteVehicle_async", - "title": "TripService deleteVehicle Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Vehicle from the Fleet Engine. Returns FAILED_PRECONDITION if the Vehicle has active Trips. assigned to it.", - "canonical": true, - "file": "vehicle_service.delete_vehicle.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteVehicle", - "fullName": "maps.fleetengine.v1.VehicleService.DeleteVehicle", - "async": true, - "parameters": [ - { - "name": "header", - "type": ".maps.fleetengine.v1.RequestHeader" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "VehicleServiceClient", - "fullName": "maps.fleetengine.v1.VehicleServiceClient" - }, - "method": { - "shortName": "DeleteVehicle", - "fullName": "maps.fleetengine.v1.VehicleService.DeleteVehicle", - "service": { - "shortName": "VehicleService", - "fullName": "maps.fleetengine.v1.VehicleService" - } - } - } - }, - { - "regionTag": "fleetengine_v1_generated_VehicleService_UpdateVehicle_async", - "title": "TripService updateVehicle Sample", - "origin": "API_DEFINITION", - "description": " Writes updated vehicle data to the Fleet Engine. When updating a `Vehicle`, the following fields cannot be updated since they are managed by the server: * `currentTrips` * `availableCapacity` * `current_route_segment_version` * `waypoints_version` The vehicle `name` also cannot be updated. If the `attributes` field is updated, **all** the vehicle's attributes are replaced with the attributes provided in the request. If you want to update only some attributes, see the `UpdateVehicleAttributes` method. Likewise, the `waypoints` field can be updated, but must contain all the waypoints currently on the vehicle, and no other waypoints.", - "canonical": true, - "file": "vehicle_service.update_vehicle.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 84, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateVehicle", - "fullName": "maps.fleetengine.v1.VehicleService.UpdateVehicle", - "async": true, - "parameters": [ - { - "name": "header", - "type": ".maps.fleetengine.v1.RequestHeader" - }, - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "vehicle", - "type": ".maps.fleetengine.v1.Vehicle" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".maps.fleetengine.v1.Vehicle", - "client": { - "shortName": "VehicleServiceClient", - "fullName": "maps.fleetengine.v1.VehicleServiceClient" - }, - "method": { - "shortName": "UpdateVehicle", - "fullName": "maps.fleetengine.v1.VehicleService.UpdateVehicle", - "service": { - "shortName": "VehicleService", - "fullName": "maps.fleetengine.v1.VehicleService" - } - } - } - }, - { - "regionTag": "fleetengine_v1_generated_VehicleService_UpdateVehicleAttributes_async", - "title": "TripService updateVehicleAttributes Sample", - "origin": "API_DEFINITION", - "description": " Partially updates a vehicle's attributes. Only the attributes mentioned in the request will be updated, other attributes will NOT be altered. Note: this is different in `UpdateVehicle`, where the whole `attributes` field will be replaced by the one in `UpdateVehicleRequest`, attributes not in the request would be removed.", - "canonical": true, - "file": "vehicle_service.update_vehicle_attributes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateVehicleAttributes", - "fullName": "maps.fleetengine.v1.VehicleService.UpdateVehicleAttributes", - "async": true, - "parameters": [ - { - "name": "header", - "type": ".maps.fleetengine.v1.RequestHeader" - }, - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "attributes", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".maps.fleetengine.v1.UpdateVehicleAttributesResponse", - "client": { - "shortName": "VehicleServiceClient", - "fullName": "maps.fleetengine.v1.VehicleServiceClient" - }, - "method": { - "shortName": "UpdateVehicleAttributes", - "fullName": "maps.fleetengine.v1.VehicleService.UpdateVehicleAttributes", - "service": { - "shortName": "VehicleService", - "fullName": "maps.fleetengine.v1.VehicleService" - } - } - } - }, - { - "regionTag": "fleetengine_v1_generated_VehicleService_ListVehicles_async", - "title": "TripService listVehicles Sample", - "origin": "API_DEFINITION", - "description": " Returns a paginated list of vehicles associated with a provider that match the request options.", - "canonical": true, - "file": "vehicle_service.list_vehicles.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 190, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListVehicles", - "fullName": "maps.fleetengine.v1.VehicleService.ListVehicles", - "async": true, - "parameters": [ - { - "name": "header", - "type": ".maps.fleetengine.v1.RequestHeader" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "minimum_capacity", - "type": ".google.protobuf.Int32Value" - }, - { - "name": "trip_types", - "type": "TYPE_ENUM[]" - }, - { - "name": "maximum_staleness", - "type": ".google.protobuf.Duration" - }, - { - "name": "vehicle_type_categories", - "type": "TYPE_ENUM[]" - }, - { - "name": "required_attributes", - "type": "TYPE_STRING[]" - }, - { - "name": "required_one_of_attributes", - "type": "TYPE_STRING[]" - }, - { - "name": "required_one_of_attribute_sets", - "type": "TYPE_STRING[]" - }, - { - "name": "vehicle_state", - "type": ".maps.fleetengine.v1.VehicleState" - }, - { - "name": "on_trip_only", - "type": "TYPE_BOOL" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "viewport", - "type": ".google.geo.type.Viewport" - } - ], - "resultType": ".maps.fleetengine.v1.ListVehiclesResponse", - "client": { - "shortName": "VehicleServiceClient", - "fullName": "maps.fleetengine.v1.VehicleServiceClient" - }, - "method": { - "shortName": "ListVehicles", - "fullName": "maps.fleetengine.v1.VehicleService.ListVehicles", - "service": { - "shortName": "VehicleService", - "fullName": "maps.fleetengine.v1.VehicleService" - } - } - } - }, - { - "regionTag": "fleetengine_v1_generated_VehicleService_SearchVehicles_async", - "title": "TripService searchVehicles Sample", - "origin": "API_DEFINITION", - "description": " Returns a list of vehicles that match the request options.", - "canonical": true, - "file": "vehicle_service.search_vehicles.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 214, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchVehicles", - "fullName": "maps.fleetengine.v1.VehicleService.SearchVehicles", - "async": true, - "parameters": [ - { - "name": "header", - "type": ".maps.fleetengine.v1.RequestHeader" - }, - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "pickup_point", - "type": ".maps.fleetengine.v1.TerminalLocation" - }, - { - "name": "dropoff_point", - "type": ".maps.fleetengine.v1.TerminalLocation" - }, - { - "name": "pickup_radius_meters", - "type": "TYPE_INT32" - }, - { - "name": "count", - "type": "TYPE_INT32" - }, - { - "name": "minimum_capacity", - "type": "TYPE_INT32" - }, - { - "name": "trip_types", - "type": "TYPE_ENUM[]" - }, - { - "name": "maximum_staleness", - "type": ".google.protobuf.Duration" - }, - { - "name": "vehicle_types", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "required_attributes", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "required_one_of_attributes", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "required_one_of_attribute_sets", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "order_by", - "type": ".maps.fleetengine.v1.SearchVehiclesRequest.VehicleMatchOrder" - }, - { - "name": "include_back_to_back", - "type": "TYPE_BOOL" - }, - { - "name": "trip_id", - "type": "TYPE_STRING" - }, - { - "name": "current_trips_present", - "type": ".maps.fleetengine.v1.SearchVehiclesRequest.CurrentTripsPresent" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".maps.fleetengine.v1.SearchVehiclesResponse", - "client": { - "shortName": "VehicleServiceClient", - "fullName": "maps.fleetengine.v1.VehicleServiceClient" - }, - "method": { - "shortName": "SearchVehicles", - "fullName": "maps.fleetengine.v1.VehicleService.SearchVehicles", - "service": { - "shortName": "VehicleService", - "fullName": "maps.fleetengine.v1.VehicleService" - } - } - } - } - ] -} diff --git a/packages/google-maps-geocode/samples/generated/v4/snippet_metadata_google.maps.geocode.v4.json b/packages/google-maps-geocode/samples/generated/v4/snippet_metadata_google.maps.geocode.v4.json deleted file mode 100644 index 3d53a42446b2..000000000000 --- a/packages/google-maps-geocode/samples/generated/v4/snippet_metadata_google.maps.geocode.v4.json +++ /dev/null @@ -1,239 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-geocode", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.maps.geocode.v4", - "version": "v4" - } - ] - }, - "snippets": [ - { - "regionTag": "geocoding-backend_v4_generated_DestinationService_SearchDestinations_async", - "title": "DestinationService searchDestinations Sample", - "origin": "API_DEFINITION", - "description": " This method performs a destination lookup and returns a list of destinations.", - "canonical": true, - "file": "destination_service.search_destinations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchDestinations", - "fullName": "google.maps.geocode.v4.DestinationService.SearchDestinations", - "async": true, - "parameters": [ - { - "name": "place", - "type": "TYPE_STRING" - }, - { - "name": "address_query", - "type": ".google.maps.geocode.v4.SearchDestinationsRequest.AddressQuery" - }, - { - "name": "location_query", - "type": ".google.maps.geocode.v4.SearchDestinationsRequest.LocationQuery" - }, - { - "name": "travel_modes", - "type": "TYPE_ENUM[]" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "region_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.maps.geocode.v4.SearchDestinationsResponse", - "client": { - "shortName": "DestinationServiceClient", - "fullName": "google.maps.geocode.v4.DestinationServiceClient" - }, - "method": { - "shortName": "SearchDestinations", - "fullName": "google.maps.geocode.v4.DestinationService.SearchDestinations", - "service": { - "shortName": "DestinationService", - "fullName": "google.maps.geocode.v4.DestinationService" - } - } - } - }, - { - "regionTag": "geocoding-backend_v4_generated_GeocodeService_GeocodeAddress_async", - "title": "DestinationService geocodeAddress Sample", - "origin": "API_DEFINITION", - "description": " This method performs an address geocode, which maps an address to a LatLng. It also provides structured information about the address.", - "canonical": true, - "file": "geocode_service.geocode_address.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GeocodeAddress", - "fullName": "google.maps.geocode.v4.GeocodeService.GeocodeAddress", - "async": true, - "parameters": [ - { - "name": "address_query", - "type": "TYPE_STRING" - }, - { - "name": "address", - "type": ".google.type.PostalAddress" - }, - { - "name": "location_bias", - "type": ".google.maps.geocode.v4.GeocodeAddressRequest.LocationBias" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "region_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.maps.geocode.v4.GeocodeAddressResponse", - "client": { - "shortName": "GeocodeServiceClient", - "fullName": "google.maps.geocode.v4.GeocodeServiceClient" - }, - "method": { - "shortName": "GeocodeAddress", - "fullName": "google.maps.geocode.v4.GeocodeService.GeocodeAddress", - "service": { - "shortName": "GeocodeService", - "fullName": "google.maps.geocode.v4.GeocodeService" - } - } - } - }, - { - "regionTag": "geocoding-backend_v4_generated_GeocodeService_GeocodeLocation_async", - "title": "DestinationService geocodeLocation Sample", - "origin": "API_DEFINITION", - "description": " This method performs a location geocode, which maps a LatLng to an address. It also provides structured information about the address.", - "canonical": true, - "file": "geocode_service.geocode_location.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GeocodeLocation", - "fullName": "google.maps.geocode.v4.GeocodeService.GeocodeLocation", - "async": true, - "parameters": [ - { - "name": "location_query", - "type": "TYPE_STRING" - }, - { - "name": "location", - "type": ".google.type.LatLng" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "region_code", - "type": "TYPE_STRING" - }, - { - "name": "types", - "type": "TYPE_STRING[]" - }, - { - "name": "granularity", - "type": "TYPE_ENUM[]" - } - ], - "resultType": ".google.maps.geocode.v4.GeocodeLocationResponse", - "client": { - "shortName": "GeocodeServiceClient", - "fullName": "google.maps.geocode.v4.GeocodeServiceClient" - }, - "method": { - "shortName": "GeocodeLocation", - "fullName": "google.maps.geocode.v4.GeocodeService.GeocodeLocation", - "service": { - "shortName": "GeocodeService", - "fullName": "google.maps.geocode.v4.GeocodeService" - } - } - } - }, - { - "regionTag": "geocoding-backend_v4_generated_GeocodeService_GeocodePlace_async", - "title": "DestinationService geocodePlace Sample", - "origin": "API_DEFINITION", - "description": " This method performs a geocode lookup using a place ID.", - "canonical": true, - "file": "geocode_service.geocode_place.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GeocodePlace", - "fullName": "google.maps.geocode.v4.GeocodeService.GeocodePlace", - "async": true, - "parameters": [ - { - "name": "place", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "region_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.maps.geocode.v4.GeocodeResult", - "client": { - "shortName": "GeocodeServiceClient", - "fullName": "google.maps.geocode.v4.GeocodeServiceClient" - }, - "method": { - "shortName": "GeocodePlace", - "fullName": "google.maps.geocode.v4.GeocodeService.GeocodePlace", - "service": { - "shortName": "GeocodeService", - "fullName": "google.maps.geocode.v4.GeocodeService" - } - } - } - } - ] -} diff --git a/packages/google-maps-mapsplatformdatasets/samples/generated/v1/snippet_metadata_google.maps.mapsplatformdatasets.v1.json b/packages/google-maps-mapsplatformdatasets/samples/generated/v1/snippet_metadata_google.maps.mapsplatformdatasets.v1.json deleted file mode 100644 index f142fab9928c..000000000000 --- a/packages/google-maps-mapsplatformdatasets/samples/generated/v1/snippet_metadata_google.maps.mapsplatformdatasets.v1.json +++ /dev/null @@ -1,283 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-mapsplatformdatasets", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.maps.mapsplatformdatasets.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "mapsplatformdatasets_v1_generated_MapsPlatformDatasets_CreateDataset_async", - "title": "MapsPlatformDatasets createDataset Sample", - "origin": "API_DEFINITION", - "description": " Creates a new dataset for the specified project.", - "canonical": true, - "file": "maps_platform_datasets.create_dataset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDataset", - "fullName": "google.maps.mapsplatformdatasets.v1.MapsPlatformDatasets.CreateDataset", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "dataset", - "type": ".google.maps.mapsplatformdatasets.v1.Dataset" - } - ], - "resultType": ".google.maps.mapsplatformdatasets.v1.Dataset", - "client": { - "shortName": "MapsPlatformDatasetsClient", - "fullName": "google.maps.mapsplatformdatasets.v1.MapsPlatformDatasetsClient" - }, - "method": { - "shortName": "CreateDataset", - "fullName": "google.maps.mapsplatformdatasets.v1.MapsPlatformDatasets.CreateDataset", - "service": { - "shortName": "MapsPlatformDatasets", - "fullName": "google.maps.mapsplatformdatasets.v1.MapsPlatformDatasets" - } - } - } - }, - { - "regionTag": "mapsplatformdatasets_v1_generated_MapsPlatformDatasets_UpdateDatasetMetadata_async", - "title": "MapsPlatformDatasets updateDatasetMetadata Sample", - "origin": "API_DEFINITION", - "description": " Updates the metadata for the dataset.", - "canonical": true, - "file": "maps_platform_datasets.update_dataset_metadata.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDatasetMetadata", - "fullName": "google.maps.mapsplatformdatasets.v1.MapsPlatformDatasets.UpdateDatasetMetadata", - "async": true, - "parameters": [ - { - "name": "dataset", - "type": ".google.maps.mapsplatformdatasets.v1.Dataset" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.maps.mapsplatformdatasets.v1.Dataset", - "client": { - "shortName": "MapsPlatformDatasetsClient", - "fullName": "google.maps.mapsplatformdatasets.v1.MapsPlatformDatasetsClient" - }, - "method": { - "shortName": "UpdateDatasetMetadata", - "fullName": "google.maps.mapsplatformdatasets.v1.MapsPlatformDatasets.UpdateDatasetMetadata", - "service": { - "shortName": "MapsPlatformDatasets", - "fullName": "google.maps.mapsplatformdatasets.v1.MapsPlatformDatasets" - } - } - } - }, - { - "regionTag": "mapsplatformdatasets_v1_generated_MapsPlatformDatasets_GetDataset_async", - "title": "MapsPlatformDatasets getDataset Sample", - "origin": "API_DEFINITION", - "description": " Gets the dataset.", - "canonical": true, - "file": "maps_platform_datasets.get_dataset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDataset", - "fullName": "google.maps.mapsplatformdatasets.v1.MapsPlatformDatasets.GetDataset", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.maps.mapsplatformdatasets.v1.Dataset", - "client": { - "shortName": "MapsPlatformDatasetsClient", - "fullName": "google.maps.mapsplatformdatasets.v1.MapsPlatformDatasetsClient" - }, - "method": { - "shortName": "GetDataset", - "fullName": "google.maps.mapsplatformdatasets.v1.MapsPlatformDatasets.GetDataset", - "service": { - "shortName": "MapsPlatformDatasets", - "fullName": "google.maps.mapsplatformdatasets.v1.MapsPlatformDatasets" - } - } - } - }, - { - "regionTag": "mapsplatformdatasets_v1_generated_MapsPlatformDatasets_FetchDatasetErrors_async", - "title": "MapsPlatformDatasets fetchDatasetErrors Sample", - "origin": "API_DEFINITION", - "description": " Gets all the errors of a dataset.", - "canonical": true, - "file": "maps_platform_datasets.fetch_dataset_errors.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchDatasetErrors", - "fullName": "google.maps.mapsplatformdatasets.v1.MapsPlatformDatasets.FetchDatasetErrors", - "async": true, - "parameters": [ - { - "name": "dataset", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.maps.mapsplatformdatasets.v1.FetchDatasetErrorsResponse", - "client": { - "shortName": "MapsPlatformDatasetsClient", - "fullName": "google.maps.mapsplatformdatasets.v1.MapsPlatformDatasetsClient" - }, - "method": { - "shortName": "FetchDatasetErrors", - "fullName": "google.maps.mapsplatformdatasets.v1.MapsPlatformDatasets.FetchDatasetErrors", - "service": { - "shortName": "MapsPlatformDatasets", - "fullName": "google.maps.mapsplatformdatasets.v1.MapsPlatformDatasets" - } - } - } - }, - { - "regionTag": "mapsplatformdatasets_v1_generated_MapsPlatformDatasets_ListDatasets_async", - "title": "MapsPlatformDatasets listDatasets Sample", - "origin": "API_DEFINITION", - "description": " Lists all the datasets for the specified project.", - "canonical": true, - "file": "maps_platform_datasets.list_datasets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDatasets", - "fullName": "google.maps.mapsplatformdatasets.v1.MapsPlatformDatasets.ListDatasets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "tag", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.maps.mapsplatformdatasets.v1.ListDatasetsResponse", - "client": { - "shortName": "MapsPlatformDatasetsClient", - "fullName": "google.maps.mapsplatformdatasets.v1.MapsPlatformDatasetsClient" - }, - "method": { - "shortName": "ListDatasets", - "fullName": "google.maps.mapsplatformdatasets.v1.MapsPlatformDatasets.ListDatasets", - "service": { - "shortName": "MapsPlatformDatasets", - "fullName": "google.maps.mapsplatformdatasets.v1.MapsPlatformDatasets" - } - } - } - }, - { - "regionTag": "mapsplatformdatasets_v1_generated_MapsPlatformDatasets_DeleteDataset_async", - "title": "MapsPlatformDatasets deleteDataset Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified dataset.", - "canonical": true, - "file": "maps_platform_datasets.delete_dataset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDataset", - "fullName": "google.maps.mapsplatformdatasets.v1.MapsPlatformDatasets.DeleteDataset", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "MapsPlatformDatasetsClient", - "fullName": "google.maps.mapsplatformdatasets.v1.MapsPlatformDatasetsClient" - }, - "method": { - "shortName": "DeleteDataset", - "fullName": "google.maps.mapsplatformdatasets.v1.MapsPlatformDatasets.DeleteDataset", - "service": { - "shortName": "MapsPlatformDatasets", - "fullName": "google.maps.mapsplatformdatasets.v1.MapsPlatformDatasets" - } - } - } - } - ] -} diff --git a/packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/snippet_metadata_google.maps.mapsplatformdatasets.v1alpha.json b/packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/snippet_metadata_google.maps.mapsplatformdatasets.v1alpha.json deleted file mode 100644 index a2a2a3d70c83..000000000000 --- a/packages/google-maps-mapsplatformdatasets/samples/generated/v1alpha/snippet_metadata_google.maps.mapsplatformdatasets.v1alpha.json +++ /dev/null @@ -1,327 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-mapsplatformdatasets", - "version": "3.1.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.maps.mapsplatformdatasets.v1alpha", - "version": "v1alpha" - } - ] - }, - "snippets": [ - { - "regionTag": "mapsplatformdatasets_v1alpha_generated_MapsPlatformDatasetsV1Alpha_CreateDataset_async", - "title": "MapsPlatformDatasetsV1Alpha createDataset Sample", - "origin": "API_DEFINITION", - "description": " Create a new dataset for the specified project.", - "canonical": true, - "file": "maps_platform_datasets_v1_alpha.create_dataset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDataset", - "fullName": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha.CreateDataset", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "dataset", - "type": ".google.maps.mapsplatformdatasets.v1alpha.Dataset" - } - ], - "resultType": ".google.maps.mapsplatformdatasets.v1alpha.Dataset", - "client": { - "shortName": "MapsPlatformDatasetsV1AlphaClient", - "fullName": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1AlphaClient" - }, - "method": { - "shortName": "CreateDataset", - "fullName": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha.CreateDataset", - "service": { - "shortName": "MapsPlatformDatasetsV1Alpha", - "fullName": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha" - } - } - } - }, - { - "regionTag": "mapsplatformdatasets_v1alpha_generated_MapsPlatformDatasetsV1Alpha_UpdateDatasetMetadata_async", - "title": "MapsPlatformDatasetsV1Alpha updateDatasetMetadata Sample", - "origin": "API_DEFINITION", - "description": " Update the metadata for the dataset. To update the data use: UploadDataset.", - "canonical": true, - "file": "maps_platform_datasets_v1_alpha.update_dataset_metadata.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDatasetMetadata", - "fullName": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha.UpdateDatasetMetadata", - "async": true, - "parameters": [ - { - "name": "dataset", - "type": ".google.maps.mapsplatformdatasets.v1alpha.Dataset" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.maps.mapsplatformdatasets.v1alpha.Dataset", - "client": { - "shortName": "MapsPlatformDatasetsV1AlphaClient", - "fullName": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1AlphaClient" - }, - "method": { - "shortName": "UpdateDatasetMetadata", - "fullName": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha.UpdateDatasetMetadata", - "service": { - "shortName": "MapsPlatformDatasetsV1Alpha", - "fullName": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha" - } - } - } - }, - { - "regionTag": "mapsplatformdatasets_v1alpha_generated_MapsPlatformDatasetsV1Alpha_GetDataset_async", - "title": "MapsPlatformDatasetsV1Alpha getDataset Sample", - "origin": "API_DEFINITION", - "description": " Get the published or latest version of the dataset.", - "canonical": true, - "file": "maps_platform_datasets_v1_alpha.get_dataset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDataset", - "fullName": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha.GetDataset", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "published_usage", - "type": ".google.maps.mapsplatformdatasets.v1alpha.Usage" - } - ], - "resultType": ".google.maps.mapsplatformdatasets.v1alpha.Dataset", - "client": { - "shortName": "MapsPlatformDatasetsV1AlphaClient", - "fullName": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1AlphaClient" - }, - "method": { - "shortName": "GetDataset", - "fullName": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha.GetDataset", - "service": { - "shortName": "MapsPlatformDatasetsV1Alpha", - "fullName": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha" - } - } - } - }, - { - "regionTag": "mapsplatformdatasets_v1alpha_generated_MapsPlatformDatasetsV1Alpha_ListDatasetVersions_async", - "title": "MapsPlatformDatasetsV1Alpha listDatasetVersions Sample", - "origin": "API_DEFINITION", - "description": " List all the versions of a dataset.", - "canonical": true, - "file": "maps_platform_datasets_v1_alpha.list_dataset_versions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDatasetVersions", - "fullName": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha.ListDatasetVersions", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.maps.mapsplatformdatasets.v1alpha.ListDatasetVersionsResponse", - "client": { - "shortName": "MapsPlatformDatasetsV1AlphaClient", - "fullName": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1AlphaClient" - }, - "method": { - "shortName": "ListDatasetVersions", - "fullName": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha.ListDatasetVersions", - "service": { - "shortName": "MapsPlatformDatasetsV1Alpha", - "fullName": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha" - } - } - } - }, - { - "regionTag": "mapsplatformdatasets_v1alpha_generated_MapsPlatformDatasetsV1Alpha_ListDatasets_async", - "title": "MapsPlatformDatasetsV1Alpha listDatasets Sample", - "origin": "API_DEFINITION", - "description": " List all the datasets for the specified project.", - "canonical": true, - "file": "maps_platform_datasets_v1_alpha.list_datasets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDatasets", - "fullName": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha.ListDatasets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.maps.mapsplatformdatasets.v1alpha.ListDatasetsResponse", - "client": { - "shortName": "MapsPlatformDatasetsV1AlphaClient", - "fullName": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1AlphaClient" - }, - "method": { - "shortName": "ListDatasets", - "fullName": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha.ListDatasets", - "service": { - "shortName": "MapsPlatformDatasetsV1Alpha", - "fullName": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha" - } - } - } - }, - { - "regionTag": "mapsplatformdatasets_v1alpha_generated_MapsPlatformDatasetsV1Alpha_DeleteDataset_async", - "title": "MapsPlatformDatasetsV1Alpha deleteDataset Sample", - "origin": "API_DEFINITION", - "description": " Delete the specified dataset and optionally all its corresponding versions.", - "canonical": true, - "file": "maps_platform_datasets_v1_alpha.delete_dataset.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDataset", - "fullName": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha.DeleteDataset", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "MapsPlatformDatasetsV1AlphaClient", - "fullName": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1AlphaClient" - }, - "method": { - "shortName": "DeleteDataset", - "fullName": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha.DeleteDataset", - "service": { - "shortName": "MapsPlatformDatasetsV1Alpha", - "fullName": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha" - } - } - } - }, - { - "regionTag": "mapsplatformdatasets_v1alpha_generated_MapsPlatformDatasetsV1Alpha_DeleteDatasetVersion_async", - "title": "MapsPlatformDatasetsV1Alpha deleteDatasetVersion Sample", - "origin": "API_DEFINITION", - "description": " Delete a specific version of the dataset.", - "canonical": true, - "file": "maps_platform_datasets_v1_alpha.delete_dataset_version.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDatasetVersion", - "fullName": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha.DeleteDatasetVersion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "MapsPlatformDatasetsV1AlphaClient", - "fullName": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1AlphaClient" - }, - "method": { - "shortName": "DeleteDatasetVersion", - "fullName": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha.DeleteDatasetVersion", - "service": { - "shortName": "MapsPlatformDatasetsV1Alpha", - "fullName": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha" - } - } - } - } - ] -} diff --git a/packages/google-maps-navconnect/samples/generated/v1/snippet_metadata_google.maps.navconnect.v1.json b/packages/google-maps-navconnect/samples/generated/v1/snippet_metadata_google.maps.navconnect.v1.json deleted file mode 100644 index fc77288962bd..000000000000 --- a/packages/google-maps-navconnect/samples/generated/v1/snippet_metadata_google.maps.navconnect.v1.json +++ /dev/null @@ -1,103 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-navconnect", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.maps.navconnect.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "navigationconnect_v1_generated_NavConnectService_CreateTrip_async", - "title": "NavConnectService createTrip Sample", - "origin": "API_DEFINITION", - "description": " Creates a trip. This must be called before the mobile application can start the trip. The returned trip will have the `auth_token` field set.", - "canonical": true, - "file": "nav_connect_service.create_trip.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTrip", - "fullName": "google.maps.navconnect.v1.NavConnectService.CreateTrip", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "trip_id", - "type": "TYPE_STRING" - }, - { - "name": "trip", - "type": ".google.maps.navconnect.v1.Trip" - } - ], - "resultType": ".google.maps.navconnect.v1.Trip", - "client": { - "shortName": "NavConnectServiceClient", - "fullName": "google.maps.navconnect.v1.NavConnectServiceClient" - }, - "method": { - "shortName": "CreateTrip", - "fullName": "google.maps.navconnect.v1.NavConnectService.CreateTrip", - "service": { - "shortName": "NavConnectService", - "fullName": "google.maps.navconnect.v1.NavConnectService" - } - } - } - }, - { - "regionTag": "navigationconnect_v1_generated_NavConnectService_GetTrip_async", - "title": "NavConnectService getTrip Sample", - "origin": "API_DEFINITION", - "description": " Gets a trip.", - "canonical": true, - "file": "nav_connect_service.get_trip.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTrip", - "fullName": "google.maps.navconnect.v1.NavConnectService.GetTrip", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.maps.navconnect.v1.Trip", - "client": { - "shortName": "NavConnectServiceClient", - "fullName": "google.maps.navconnect.v1.NavConnectServiceClient" - }, - "method": { - "shortName": "GetTrip", - "fullName": "google.maps.navconnect.v1.NavConnectService.GetTrip", - "service": { - "shortName": "NavConnectService", - "fullName": "google.maps.navconnect.v1.NavConnectService" - } - } - } - } - ] -} diff --git a/packages/google-maps-places/samples/generated/v1/snippet_metadata_google.maps.places.v1.json b/packages/google-maps-places/samples/generated/v1/snippet_metadata_google.maps.places.v1.json deleted file mode 100644 index 83e5b70222a4..000000000000 --- a/packages/google-maps-places/samples/generated/v1/snippet_metadata_google.maps.places.v1.json +++ /dev/null @@ -1,391 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-places", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.maps.places.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "places_v1_generated_Places_SearchNearby_async", - "title": "Places searchNearby Sample", - "origin": "API_DEFINITION", - "description": " Search for places near locations.", - "canonical": true, - "file": "places.search_nearby.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 161, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchNearby", - "fullName": "google.maps.places.v1.Places.SearchNearby", - "async": true, - "parameters": [ - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "region_code", - "type": "TYPE_STRING" - }, - { - "name": "included_types", - "type": "TYPE_STRING[]" - }, - { - "name": "excluded_types", - "type": "TYPE_STRING[]" - }, - { - "name": "included_primary_types", - "type": "TYPE_STRING[]" - }, - { - "name": "excluded_primary_types", - "type": "TYPE_STRING[]" - }, - { - "name": "max_result_count", - "type": "TYPE_INT32" - }, - { - "name": "location_restriction", - "type": ".google.maps.places.v1.SearchNearbyRequest.LocationRestriction" - }, - { - "name": "rank_preference", - "type": ".google.maps.places.v1.SearchNearbyRequest.RankPreference" - }, - { - "name": "routing_parameters", - "type": ".google.maps.places.v1.RoutingParameters" - }, - { - "name": "include_future_opening_businesses", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.maps.places.v1.SearchNearbyResponse", - "client": { - "shortName": "PlacesClient", - "fullName": "google.maps.places.v1.PlacesClient" - }, - "method": { - "shortName": "SearchNearby", - "fullName": "google.maps.places.v1.Places.SearchNearby", - "service": { - "shortName": "Places", - "fullName": "google.maps.places.v1.Places" - } - } - } - }, - { - "regionTag": "places_v1_generated_Places_SearchText_async", - "title": "Places searchText Sample", - "origin": "API_DEFINITION", - "description": " Text query based place search.", - "canonical": true, - "file": "places.search_text.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 152, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchText", - "fullName": "google.maps.places.v1.Places.SearchText", - "async": true, - "parameters": [ - { - "name": "text_query", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "region_code", - "type": "TYPE_STRING" - }, - { - "name": "rank_preference", - "type": ".google.maps.places.v1.SearchTextRequest.RankPreference" - }, - { - "name": "included_type", - "type": "TYPE_STRING" - }, - { - "name": "open_now", - "type": "TYPE_BOOL" - }, - { - "name": "min_rating", - "type": "TYPE_DOUBLE" - }, - { - "name": "max_result_count", - "type": "TYPE_INT32" - }, - { - "name": "price_levels", - "type": "TYPE_ENUM[]" - }, - { - "name": "strict_type_filtering", - "type": "TYPE_BOOL" - }, - { - "name": "location_bias", - "type": ".google.maps.places.v1.SearchTextRequest.LocationBias" - }, - { - "name": "location_restriction", - "type": ".google.maps.places.v1.SearchTextRequest.LocationRestriction" - }, - { - "name": "ev_options", - "type": ".google.maps.places.v1.SearchTextRequest.EVOptions" - }, - { - "name": "routing_parameters", - "type": ".google.maps.places.v1.RoutingParameters" - }, - { - "name": "search_along_route_parameters", - "type": ".google.maps.places.v1.SearchTextRequest.SearchAlongRouteParameters" - }, - { - "name": "include_pure_service_area_businesses", - "type": "TYPE_BOOL" - }, - { - "name": "include_future_opening_businesses", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.maps.places.v1.SearchTextResponse", - "client": { - "shortName": "PlacesClient", - "fullName": "google.maps.places.v1.PlacesClient" - }, - "method": { - "shortName": "SearchText", - "fullName": "google.maps.places.v1.Places.SearchText", - "service": { - "shortName": "Places", - "fullName": "google.maps.places.v1.Places" - } - } - } - }, - { - "regionTag": "places_v1_generated_Places_GetPhotoMedia_async", - "title": "Places getPhotoMedia Sample", - "origin": "API_DEFINITION", - "description": " Get a photo media with a photo reference string.", - "canonical": true, - "file": "places.get_photo_media.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 91, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPhotoMedia", - "fullName": "google.maps.places.v1.Places.GetPhotoMedia", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "max_width_px", - "type": "TYPE_INT32" - }, - { - "name": "max_height_px", - "type": "TYPE_INT32" - }, - { - "name": "skip_http_redirect", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.maps.places.v1.PhotoMedia", - "client": { - "shortName": "PlacesClient", - "fullName": "google.maps.places.v1.PlacesClient" - }, - "method": { - "shortName": "GetPhotoMedia", - "fullName": "google.maps.places.v1.Places.GetPhotoMedia", - "service": { - "shortName": "Places", - "fullName": "google.maps.places.v1.Places" - } - } - } - }, - { - "regionTag": "places_v1_generated_Places_GetPlace_async", - "title": "Places getPlace Sample", - "origin": "API_DEFINITION", - "description": " Get the details of a place based on its resource name, which is a string in the `places/{place_id}` format.", - "canonical": true, - "file": "places.get_place.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 96, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPlace", - "fullName": "google.maps.places.v1.Places.GetPlace", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "region_code", - "type": "TYPE_STRING" - }, - { - "name": "session_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.maps.places.v1.Place", - "client": { - "shortName": "PlacesClient", - "fullName": "google.maps.places.v1.PlacesClient" - }, - "method": { - "shortName": "GetPlace", - "fullName": "google.maps.places.v1.Places.GetPlace", - "service": { - "shortName": "Places", - "fullName": "google.maps.places.v1.Places" - } - } - } - }, - { - "regionTag": "places_v1_generated_Places_AutocompletePlaces_async", - "title": "Places autocompletePlaces Sample", - "origin": "API_DEFINITION", - "description": " Returns predictions for the given input.", - "canonical": true, - "file": "places.autocomplete_places.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 158, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AutocompletePlaces", - "fullName": "google.maps.places.v1.Places.AutocompletePlaces", - "async": true, - "parameters": [ - { - "name": "input", - "type": "TYPE_STRING" - }, - { - "name": "location_bias", - "type": ".google.maps.places.v1.AutocompletePlacesRequest.LocationBias" - }, - { - "name": "location_restriction", - "type": ".google.maps.places.v1.AutocompletePlacesRequest.LocationRestriction" - }, - { - "name": "included_primary_types", - "type": "TYPE_STRING[]" - }, - { - "name": "included_region_codes", - "type": "TYPE_STRING[]" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "region_code", - "type": "TYPE_STRING" - }, - { - "name": "origin", - "type": ".google.type.LatLng" - }, - { - "name": "input_offset", - "type": "TYPE_INT32" - }, - { - "name": "include_query_predictions", - "type": "TYPE_BOOL" - }, - { - "name": "session_token", - "type": "TYPE_STRING" - }, - { - "name": "include_pure_service_area_businesses", - "type": "TYPE_BOOL" - }, - { - "name": "include_future_opening_businesses", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.maps.places.v1.AutocompletePlacesResponse", - "client": { - "shortName": "PlacesClient", - "fullName": "google.maps.places.v1.PlacesClient" - }, - "method": { - "shortName": "AutocompletePlaces", - "fullName": "google.maps.places.v1.Places.AutocompletePlaces", - "service": { - "shortName": "Places", - "fullName": "google.maps.places.v1.Places" - } - } - } - } - ] -} diff --git a/packages/google-maps-routeoptimization/samples/generated/v1/snippet_metadata_google.maps.routeoptimization.v1.json b/packages/google-maps-routeoptimization/samples/generated/v1/snippet_metadata_google.maps.routeoptimization.v1.json deleted file mode 100644 index fe41a7271c17..000000000000 --- a/packages/google-maps-routeoptimization/samples/generated/v1/snippet_metadata_google.maps.routeoptimization.v1.json +++ /dev/null @@ -1,315 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-routeoptimization", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.maps.routeoptimization.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "routeoptimization_v1_generated_RouteOptimization_OptimizeTours_async", - "title": "RouteOptimization optimizeTours Sample", - "origin": "API_DEFINITION", - "description": " Sends an `OptimizeToursRequest` containing a `ShipmentModel` and returns an `OptimizeToursResponse` containing `ShipmentRoute`s, which are a set of routes to be performed by vehicles minimizing the overall cost. A `ShipmentModel` model consists mainly of `Shipment`s that need to be carried out and `Vehicle`s that can be used to transport the `Shipment`s. The `ShipmentRoute`s assign `Shipment`s to `Vehicle`s. More specifically, they assign a series of `Visit`s to each vehicle, where a `Visit` corresponds to a `VisitRequest`, which is a pickup or delivery for a `Shipment`. The goal is to provide an assignment of `ShipmentRoute`s to `Vehicle`s that minimizes the total cost where cost has many components defined in the `ShipmentModel`.", - "canonical": true, - "file": "route_optimization.optimize_tours.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 246, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "OptimizeTours", - "fullName": "google.maps.routeoptimization.v1.RouteOptimization.OptimizeTours", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "timeout", - "type": ".google.protobuf.Duration" - }, - { - "name": "model", - "type": ".google.maps.routeoptimization.v1.ShipmentModel" - }, - { - "name": "solving_mode", - "type": ".google.maps.routeoptimization.v1.OptimizeToursRequest.SolvingMode" - }, - { - "name": "search_mode", - "type": ".google.maps.routeoptimization.v1.OptimizeToursRequest.SearchMode" - }, - { - "name": "injected_first_solution_routes", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "injected_solution_constraint", - "type": ".google.maps.routeoptimization.v1.InjectedSolutionConstraint" - }, - { - "name": "refresh_details_routes", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "interpret_injected_solutions_using_labels", - "type": "TYPE_BOOL" - }, - { - "name": "consider_road_traffic", - "type": "TYPE_BOOL" - }, - { - "name": "populate_polylines", - "type": "TYPE_BOOL" - }, - { - "name": "populate_transition_polylines", - "type": "TYPE_BOOL" - }, - { - "name": "allow_large_deadline_despite_interruption_risk", - "type": "TYPE_BOOL" - }, - { - "name": "use_geodesic_distances", - "type": "TYPE_BOOL" - }, - { - "name": "geodesic_meters_per_second", - "type": "TYPE_DOUBLE" - }, - { - "name": "max_validation_errors", - "type": "TYPE_INT32" - }, - { - "name": "label", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.maps.routeoptimization.v1.OptimizeToursResponse", - "client": { - "shortName": "RouteOptimizationClient", - "fullName": "google.maps.routeoptimization.v1.RouteOptimizationClient" - }, - "method": { - "shortName": "OptimizeTours", - "fullName": "google.maps.routeoptimization.v1.RouteOptimization.OptimizeTours", - "service": { - "shortName": "RouteOptimization", - "fullName": "google.maps.routeoptimization.v1.RouteOptimization" - } - } - } - }, - { - "regionTag": "routeoptimization_v1_generated_RouteOptimization_BatchOptimizeTours_async", - "title": "RouteOptimization batchOptimizeTours Sample", - "origin": "API_DEFINITION", - "description": " Optimizes vehicle tours for one or more `OptimizeToursRequest` messages as a batch. This method is a Long Running Operation (LRO). The inputs for optimization (`OptimizeToursRequest` messages) and outputs (`OptimizeToursResponse` messages) are read from and written to Cloud Storage in user-specified format. Like the `OptimizeTours` method, each `OptimizeToursRequest` contains a `ShipmentModel` and returns an `OptimizeToursResponse` containing `ShipmentRoute` fields, which are a set of routes to be performed by vehicles minimizing the overall cost. The user can poll `operations.get` to check the status of the LRO: If the LRO `done` field is false, then at least one request is still being processed. Other requests may have completed successfully and their results are available in Cloud Storage. If the LRO's `done` field is true, then all requests have been processed. Any successfully processed requests will have their results available in Cloud Storage. Any requests that failed will not have their results available in Cloud Storage. If the LRO's `error` field is set, then it contains the error from one of the failed requests.", - "canonical": true, - "file": "route_optimization.batch_optimize_tours.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchOptimizeTours", - "fullName": "google.maps.routeoptimization.v1.RouteOptimization.BatchOptimizeTours", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "model_configs", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "RouteOptimizationClient", - "fullName": "google.maps.routeoptimization.v1.RouteOptimizationClient" - }, - "method": { - "shortName": "BatchOptimizeTours", - "fullName": "google.maps.routeoptimization.v1.RouteOptimization.BatchOptimizeTours", - "service": { - "shortName": "RouteOptimization", - "fullName": "google.maps.routeoptimization.v1.RouteOptimization" - } - } - } - }, - { - "regionTag": "routeoptimization_v1_generated_RouteOptimization_OptimizeToursLongRunning_async", - "title": "RouteOptimization optimizeToursLongRunning Sample", - "origin": "API_DEFINITION", - "description": " This is a variant of the [OptimizeTours][google.maps.routeoptimization.v1.RouteOptimization.OptimizeTours] method designed for optimizations with large timeout values. It should be preferred over the `OptimizeTours` method for optimizations that take longer than a few minutes. The returned [long-running operation][google.longrunning.Operation] (LRO) will have a name of the format `/operations/` and can be used to track progress of the computation. The [metadata][google.longrunning.Operation.metadata] field type is [OptimizeToursLongRunningMetadata][google.maps.routeoptimization.v1.OptimizeToursLongRunningMetadata]. The [response][google.longrunning.Operation.response] field type is [OptimizeToursResponse][google.maps.routeoptimization.v1.OptimizeToursResponse], if successful. Experimental: See https://developers.google.com/maps/tt/route-optimization/experimental/otlr/make-request for more details.", - "canonical": true, - "file": "route_optimization.optimize_tours_long_running.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 247, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "OptimizeToursLongRunning", - "fullName": "google.maps.routeoptimization.v1.RouteOptimization.OptimizeToursLongRunning", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "timeout", - "type": ".google.protobuf.Duration" - }, - { - "name": "model", - "type": ".google.maps.routeoptimization.v1.ShipmentModel" - }, - { - "name": "solving_mode", - "type": ".google.maps.routeoptimization.v1.OptimizeToursRequest.SolvingMode" - }, - { - "name": "search_mode", - "type": ".google.maps.routeoptimization.v1.OptimizeToursRequest.SearchMode" - }, - { - "name": "injected_first_solution_routes", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "injected_solution_constraint", - "type": ".google.maps.routeoptimization.v1.InjectedSolutionConstraint" - }, - { - "name": "refresh_details_routes", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "interpret_injected_solutions_using_labels", - "type": "TYPE_BOOL" - }, - { - "name": "consider_road_traffic", - "type": "TYPE_BOOL" - }, - { - "name": "populate_polylines", - "type": "TYPE_BOOL" - }, - { - "name": "populate_transition_polylines", - "type": "TYPE_BOOL" - }, - { - "name": "allow_large_deadline_despite_interruption_risk", - "type": "TYPE_BOOL" - }, - { - "name": "use_geodesic_distances", - "type": "TYPE_BOOL" - }, - { - "name": "geodesic_meters_per_second", - "type": "TYPE_DOUBLE" - }, - { - "name": "max_validation_errors", - "type": "TYPE_INT32" - }, - { - "name": "label", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "RouteOptimizationClient", - "fullName": "google.maps.routeoptimization.v1.RouteOptimizationClient" - }, - "method": { - "shortName": "OptimizeToursLongRunning", - "fullName": "google.maps.routeoptimization.v1.RouteOptimization.OptimizeToursLongRunning", - "service": { - "shortName": "RouteOptimization", - "fullName": "google.maps.routeoptimization.v1.RouteOptimization" - } - } - } - }, - { - "regionTag": "routeoptimization_v1_generated_RouteOptimization_OptimizeToursUri_async", - "title": "RouteOptimization optimizeToursUri Sample", - "origin": "API_DEFINITION", - "description": " This is a variant of the [OptimizeToursLongRunning][google.maps.routeoptimization.v1.RouteOptimization.OptimizeToursLongRunning] method designed for optimizations with large timeout values and large input/output sizes. The client specifies the URI of the `OptimizeToursRequest` stored in Google Cloud Storage and the server writes the `OptimizeToursResponse` to a client-specified Google Cloud Storage URI. This method should be preferred over the `OptimizeTours` method for optimizations that take longer than a few minutes and input/output sizes that are larger than 8MB, though it can be used for shorter and smaller optimizations as well. The returned [long-running operation][google.longrunning.Operation] (LRO) will have a name of the format `/operations/` and can be used to track progress of the computation. The [metadata][google.longrunning.Operation.metadata] field type is [OptimizeToursLongRunningMetadata][google.maps.routeoptimization.v1.OptimizeToursUriMetadata]. The [response][google.longrunning.Operation.response] field type is [OptimizeToursUriResponse][google.maps.routeoptimization.v1.OptimizeToursUriResponse], if successful. Experimental: See https://developers.google.com/maps/tt/route-optimization/experimental/otlr/make-request for more details.", - "canonical": true, - "file": "route_optimization.optimize_tours_uri.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "OptimizeToursUri", - "fullName": "google.maps.routeoptimization.v1.RouteOptimization.OptimizeToursUri", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "input", - "type": ".google.maps.routeoptimization.v1.Uri" - }, - { - "name": "output", - "type": ".google.maps.routeoptimization.v1.Uri" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "RouteOptimizationClient", - "fullName": "google.maps.routeoptimization.v1.RouteOptimizationClient" - }, - "method": { - "shortName": "OptimizeToursUri", - "fullName": "google.maps.routeoptimization.v1.RouteOptimization.OptimizeToursUri", - "service": { - "shortName": "RouteOptimization", - "fullName": "google.maps.routeoptimization.v1.RouteOptimization" - } - } - } - } - ] -} diff --git a/packages/google-maps-routing/samples/generated/v2/snippet_metadata_google.maps.routing.v2.json b/packages/google-maps-routing/samples/generated/v2/snippet_metadata_google.maps.routing.v2.json deleted file mode 100644 index fe1c5b047d22..000000000000 --- a/packages/google-maps-routing/samples/generated/v2/snippet_metadata_google.maps.routing.v2.json +++ /dev/null @@ -1,211 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-routing", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.maps.routing.v2", - "version": "v2" - } - ] - }, - "snippets": [ - { - "regionTag": "routes_v2_generated_Routes_ComputeRoutes_async", - "title": "Routes computeRoutes Sample", - "origin": "API_DEFINITION", - "description": " Returns the primary route along with optional alternate routes, given a set of terminal and intermediate waypoints. **NOTE:** This method requires that you specify a response field mask in the input. You can provide the response field mask by using URL parameter `$fields` or `fields`, or by using an HTTP/gRPC header `X-Goog-FieldMask` (see the [available URL parameters and headers](https://cloud.google.com/apis/docs/system-parameters)). The value is a comma separated list of field paths. See detailed documentation about [how to construct the field paths](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/field_mask.proto). For example, in this method: * Field mask of all available fields (for manual inspection): `X-Goog-FieldMask: *` * Field mask of Route-level duration, distance, and polyline (an example production setup): `X-Goog-FieldMask: routes.duration,routes.distanceMeters,routes.polyline.encodedPolyline` Google discourage the use of the wildcard (`*`) response field mask, or specifying the field mask at the top level (`routes`), because: * Selecting only the fields that you need helps our server save computation cycles, allowing us to return the result to you with a lower latency. * Selecting only the fields that you need in your production job ensures stable latency performance. We might add more response fields in the future, and those new fields might require extra computation time. If you select all fields, or if you select all fields at the top level, then you might experience performance degradation because any new field we add will be automatically included in the response. * Selecting only the fields that you need results in a smaller response size, and thus higher network throughput.", - "canonical": true, - "file": "routes.compute_routes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 191, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ComputeRoutes", - "fullName": "google.maps.routing.v2.Routes.ComputeRoutes", - "async": true, - "parameters": [ - { - "name": "origin", - "type": ".google.maps.routing.v2.Waypoint" - }, - { - "name": "destination", - "type": ".google.maps.routing.v2.Waypoint" - }, - { - "name": "intermediates", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "travel_mode", - "type": ".google.maps.routing.v2.RouteTravelMode" - }, - { - "name": "routing_preference", - "type": ".google.maps.routing.v2.RoutingPreference" - }, - { - "name": "polyline_quality", - "type": ".google.maps.routing.v2.PolylineQuality" - }, - { - "name": "polyline_encoding", - "type": ".google.maps.routing.v2.PolylineEncoding" - }, - { - "name": "departure_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "arrival_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "compute_alternative_routes", - "type": "TYPE_BOOL" - }, - { - "name": "route_modifiers", - "type": ".google.maps.routing.v2.RouteModifiers" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "region_code", - "type": "TYPE_STRING" - }, - { - "name": "units", - "type": ".google.maps.routing.v2.Units" - }, - { - "name": "optimize_waypoint_order", - "type": "TYPE_BOOL" - }, - { - "name": "requested_reference_routes", - "type": "TYPE_ENUM[]" - }, - { - "name": "extra_computations", - "type": "TYPE_ENUM[]" - }, - { - "name": "traffic_model", - "type": ".google.maps.routing.v2.TrafficModel" - }, - { - "name": "transit_preferences", - "type": ".google.maps.routing.v2.TransitPreferences" - } - ], - "resultType": ".google.maps.routing.v2.ComputeRoutesResponse", - "client": { - "shortName": "RoutesClient", - "fullName": "google.maps.routing.v2.RoutesClient" - }, - "method": { - "shortName": "ComputeRoutes", - "fullName": "google.maps.routing.v2.Routes.ComputeRoutes", - "service": { - "shortName": "Routes", - "fullName": "google.maps.routing.v2.Routes" - } - } - } - }, - { - "regionTag": "routes_v2_generated_Routes_ComputeRouteMatrix_async", - "title": "Routes computeRouteMatrix Sample", - "origin": "API_DEFINITION", - "description": " Takes in a list of origins and destinations and returns a stream containing route information for each combination of origin and destination. **NOTE:** This method requires that you specify a response field mask in the input. You can provide the response field mask by using the URL parameter `$fields` or `fields`, or by using the HTTP/gRPC header `X-Goog-FieldMask` (see the [available URL parameters and headers](https://cloud.google.com/apis/docs/system-parameters)). The value is a comma separated list of field paths. See this detailed documentation about [how to construct the field paths](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/field_mask.proto). For example, in this method: * Field mask of all available fields (for manual inspection): `X-Goog-FieldMask: *` * Field mask of route durations, distances, element status, condition, and element indices (an example production setup): `X-Goog-FieldMask: originIndex,destinationIndex,status,condition,distanceMeters,duration` It is critical that you include `status` in your field mask as otherwise all messages will appear to be OK. Google discourages the use of the wildcard (`*`) response field mask, because: * Selecting only the fields that you need helps our server save computation cycles, allowing us to return the result to you with a lower latency. * Selecting only the fields that you need in your production job ensures stable latency performance. We might add more response fields in the future, and those new fields might require extra computation time. If you select all fields, or if you select all fields at the top level, then you might experience performance degradation because any new field we add will be automatically included in the response. * Selecting only the fields that you need results in a smaller response size, and thus higher network throughput.", - "canonical": true, - "file": "routes.compute_route_matrix.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 146, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ComputeRouteMatrix", - "fullName": "google.maps.routing.v2.Routes.ComputeRouteMatrix", - "async": true, - "parameters": [ - { - "name": "origins", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "destinations", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "travel_mode", - "type": ".google.maps.routing.v2.RouteTravelMode" - }, - { - "name": "routing_preference", - "type": ".google.maps.routing.v2.RoutingPreference" - }, - { - "name": "departure_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "arrival_time", - "type": ".google.protobuf.Timestamp" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "region_code", - "type": "TYPE_STRING" - }, - { - "name": "units", - "type": ".google.maps.routing.v2.Units" - }, - { - "name": "extra_computations", - "type": "TYPE_ENUM[]" - }, - { - "name": "traffic_model", - "type": ".google.maps.routing.v2.TrafficModel" - }, - { - "name": "transit_preferences", - "type": ".google.maps.routing.v2.TransitPreferences" - } - ], - "resultType": ".google.maps.routing.v2.RouteMatrixElement", - "client": { - "shortName": "RoutesClient", - "fullName": "google.maps.routing.v2.RoutesClient" - }, - "method": { - "shortName": "ComputeRouteMatrix", - "fullName": "google.maps.routing.v2.Routes.ComputeRouteMatrix", - "service": { - "shortName": "Routes", - "fullName": "google.maps.routing.v2.Routes" - } - } - } - } - ] -} diff --git a/packages/google-maps-solar/samples/generated/v1/snippet_metadata_google.maps.solar.v1.json b/packages/google-maps-solar/samples/generated/v1/snippet_metadata_google.maps.solar.v1.json deleted file mode 100644 index baa28cc74071..000000000000 --- a/packages/google-maps-solar/samples/generated/v1/snippet_metadata_google.maps.solar.v1.json +++ /dev/null @@ -1,171 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-solar", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.maps.solar.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "solar_v1_generated_Solar_FindClosestBuildingInsights_async", - "title": "Solar findClosestBuildingInsights Sample", - "origin": "API_DEFINITION", - "description": " Locates the building whose centroid is closest to a query point. Returns an error with code `NOT_FOUND` if there are no buildings within approximately 50m of the query point.", - "canonical": true, - "file": "solar.find_closest_building_insights.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FindClosestBuildingInsights", - "fullName": "google.maps.solar.v1.Solar.FindClosestBuildingInsights", - "async": true, - "parameters": [ - { - "name": "location", - "type": ".google.type.LatLng" - }, - { - "name": "required_quality", - "type": ".google.maps.solar.v1.ImageryQuality" - }, - { - "name": "exact_quality_required", - "type": "TYPE_BOOL" - }, - { - "name": "experiments", - "type": "TYPE_ENUM[]" - } - ], - "resultType": ".google.maps.solar.v1.BuildingInsights", - "client": { - "shortName": "SolarClient", - "fullName": "google.maps.solar.v1.SolarClient" - }, - "method": { - "shortName": "FindClosestBuildingInsights", - "fullName": "google.maps.solar.v1.Solar.FindClosestBuildingInsights", - "service": { - "shortName": "Solar", - "fullName": "google.maps.solar.v1.Solar" - } - } - } - }, - { - "regionTag": "solar_v1_generated_Solar_GetDataLayers_async", - "title": "Solar getDataLayers Sample", - "origin": "API_DEFINITION", - "description": " Gets solar information for a region surrounding a location. Returns an error with code `NOT_FOUND` if the location is outside the coverage area.", - "canonical": true, - "file": "solar.get_data_layers.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 99, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDataLayers", - "fullName": "google.maps.solar.v1.Solar.GetDataLayers", - "async": true, - "parameters": [ - { - "name": "location", - "type": ".google.type.LatLng" - }, - { - "name": "radius_meters", - "type": "TYPE_FLOAT" - }, - { - "name": "view", - "type": ".google.maps.solar.v1.DataLayerView" - }, - { - "name": "required_quality", - "type": ".google.maps.solar.v1.ImageryQuality" - }, - { - "name": "pixel_size_meters", - "type": "TYPE_FLOAT" - }, - { - "name": "exact_quality_required", - "type": "TYPE_BOOL" - }, - { - "name": "experiments", - "type": "TYPE_ENUM[]" - } - ], - "resultType": ".google.maps.solar.v1.DataLayers", - "client": { - "shortName": "SolarClient", - "fullName": "google.maps.solar.v1.SolarClient" - }, - "method": { - "shortName": "GetDataLayers", - "fullName": "google.maps.solar.v1.Solar.GetDataLayers", - "service": { - "shortName": "Solar", - "fullName": "google.maps.solar.v1.Solar" - } - } - } - }, - { - "regionTag": "solar_v1_generated_Solar_GetGeoTiff_async", - "title": "Solar getGeoTiff Sample", - "origin": "API_DEFINITION", - "description": " Returns an image by its ID.", - "canonical": true, - "file": "solar.get_geo_tiff.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetGeoTiff", - "fullName": "google.maps.solar.v1.Solar.GetGeoTiff", - "async": true, - "parameters": [ - { - "name": "id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.api.HttpBody", - "client": { - "shortName": "SolarClient", - "fullName": "google.maps.solar.v1.SolarClient" - }, - "method": { - "shortName": "GetGeoTiff", - "fullName": "google.maps.solar.v1.Solar.GetGeoTiff", - "service": { - "shortName": "Solar", - "fullName": "google.maps.solar.v1.Solar" - } - } - } - } - ] -} diff --git a/packages/google-marketingplatform-admin/samples/generated/v1alpha/snippet_metadata_google.marketingplatform.admin.v1alpha.json b/packages/google-marketingplatform-admin/samples/generated/v1alpha/snippet_metadata_google.marketingplatform.admin.v1alpha.json deleted file mode 100644 index 64b45e5ff804..000000000000 --- a/packages/google-marketingplatform-admin/samples/generated/v1alpha/snippet_metadata_google.marketingplatform.admin.v1alpha.json +++ /dev/null @@ -1,367 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-admin", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.marketingplatform.admin.v1alpha", - "version": "v1alpha" - } - ] - }, - "snippets": [ - { - "regionTag": "marketingplatformadmin_v1alpha_generated_MarketingplatformAdminService_GetOrganization_async", - "title": "MarketingplatformAdminService getOrganization Sample", - "origin": "API_DEFINITION", - "description": " Lookup for a single organization.", - "canonical": true, - "file": "marketingplatform_admin_service.get_organization.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetOrganization", - "fullName": "google.marketingplatform.admin.v1alpha.MarketingplatformAdminService.GetOrganization", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.marketingplatform.admin.v1alpha.Organization", - "client": { - "shortName": "MarketingplatformAdminServiceClient", - "fullName": "google.marketingplatform.admin.v1alpha.MarketingplatformAdminServiceClient" - }, - "method": { - "shortName": "GetOrganization", - "fullName": "google.marketingplatform.admin.v1alpha.MarketingplatformAdminService.GetOrganization", - "service": { - "shortName": "MarketingplatformAdminService", - "fullName": "google.marketingplatform.admin.v1alpha.MarketingplatformAdminService" - } - } - } - }, - { - "regionTag": "marketingplatformadmin_v1alpha_generated_MarketingplatformAdminService_ListOrganizations_async", - "title": "MarketingplatformAdminService listOrganizations Sample", - "origin": "API_DEFINITION", - "description": " Returns a list of organizations that the user has access to.", - "canonical": true, - "file": "marketingplatform_admin_service.list_organizations.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListOrganizations", - "fullName": "google.marketingplatform.admin.v1alpha.MarketingplatformAdminService.ListOrganizations", - "async": true, - "parameters": [ - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.marketingplatform.admin.v1alpha.ListOrganizationsResponse", - "client": { - "shortName": "MarketingplatformAdminServiceClient", - "fullName": "google.marketingplatform.admin.v1alpha.MarketingplatformAdminServiceClient" - }, - "method": { - "shortName": "ListOrganizations", - "fullName": "google.marketingplatform.admin.v1alpha.MarketingplatformAdminService.ListOrganizations", - "service": { - "shortName": "MarketingplatformAdminService", - "fullName": "google.marketingplatform.admin.v1alpha.MarketingplatformAdminService" - } - } - } - }, - { - "regionTag": "marketingplatformadmin_v1alpha_generated_MarketingplatformAdminService_FindSalesPartnerManagedClients_async", - "title": "MarketingplatformAdminService findSalesPartnerManagedClients Sample", - "origin": "API_DEFINITION", - "description": " Returns a list of clients managed by the sales partner organization. User needs to be an OrgAdmin/BillingAdmin on the sales partner organization in order to view the end clients.", - "canonical": true, - "file": "marketingplatform_admin_service.find_sales_partner_managed_clients.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FindSalesPartnerManagedClients", - "fullName": "google.marketingplatform.admin.v1alpha.MarketingplatformAdminService.FindSalesPartnerManagedClients", - "async": true, - "parameters": [ - { - "name": "organization", - "type": "TYPE_STRING" - }, - { - "name": "is_active", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.marketingplatform.admin.v1alpha.FindSalesPartnerManagedClientsResponse", - "client": { - "shortName": "MarketingplatformAdminServiceClient", - "fullName": "google.marketingplatform.admin.v1alpha.MarketingplatformAdminServiceClient" - }, - "method": { - "shortName": "FindSalesPartnerManagedClients", - "fullName": "google.marketingplatform.admin.v1alpha.MarketingplatformAdminService.FindSalesPartnerManagedClients", - "service": { - "shortName": "MarketingplatformAdminService", - "fullName": "google.marketingplatform.admin.v1alpha.MarketingplatformAdminService" - } - } - } - }, - { - "regionTag": "marketingplatformadmin_v1alpha_generated_MarketingplatformAdminService_ListAnalyticsAccountLinks_async", - "title": "MarketingplatformAdminService listAnalyticsAccountLinks Sample", - "origin": "API_DEFINITION", - "description": " Lists the Google Analytics accounts link to the specified Google Marketing Platform organization.", - "canonical": true, - "file": "marketingplatform_admin_service.list_analytics_account_links.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAnalyticsAccountLinks", - "fullName": "google.marketingplatform.admin.v1alpha.MarketingplatformAdminService.ListAnalyticsAccountLinks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.marketingplatform.admin.v1alpha.ListAnalyticsAccountLinksResponse", - "client": { - "shortName": "MarketingplatformAdminServiceClient", - "fullName": "google.marketingplatform.admin.v1alpha.MarketingplatformAdminServiceClient" - }, - "method": { - "shortName": "ListAnalyticsAccountLinks", - "fullName": "google.marketingplatform.admin.v1alpha.MarketingplatformAdminService.ListAnalyticsAccountLinks", - "service": { - "shortName": "MarketingplatformAdminService", - "fullName": "google.marketingplatform.admin.v1alpha.MarketingplatformAdminService" - } - } - } - }, - { - "regionTag": "marketingplatformadmin_v1alpha_generated_MarketingplatformAdminService_CreateAnalyticsAccountLink_async", - "title": "MarketingplatformAdminService createAnalyticsAccountLink Sample", - "origin": "API_DEFINITION", - "description": " Creates the link between the Analytics account and the Google Marketing Platform organization. User needs to be an org user, and admin on the Analytics account to create the link. If the account is already linked to an organization, user needs to unlink the account from the current organization, then try link again.", - "canonical": true, - "file": "marketingplatform_admin_service.create_analytics_account_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAnalyticsAccountLink", - "fullName": "google.marketingplatform.admin.v1alpha.MarketingplatformAdminService.CreateAnalyticsAccountLink", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "analytics_account_link", - "type": ".google.marketingplatform.admin.v1alpha.AnalyticsAccountLink" - } - ], - "resultType": ".google.marketingplatform.admin.v1alpha.AnalyticsAccountLink", - "client": { - "shortName": "MarketingplatformAdminServiceClient", - "fullName": "google.marketingplatform.admin.v1alpha.MarketingplatformAdminServiceClient" - }, - "method": { - "shortName": "CreateAnalyticsAccountLink", - "fullName": "google.marketingplatform.admin.v1alpha.MarketingplatformAdminService.CreateAnalyticsAccountLink", - "service": { - "shortName": "MarketingplatformAdminService", - "fullName": "google.marketingplatform.admin.v1alpha.MarketingplatformAdminService" - } - } - } - }, - { - "regionTag": "marketingplatformadmin_v1alpha_generated_MarketingplatformAdminService_DeleteAnalyticsAccountLink_async", - "title": "MarketingplatformAdminService deleteAnalyticsAccountLink Sample", - "origin": "API_DEFINITION", - "description": " Deletes the AnalyticsAccountLink, which detaches the Analytics account from the Google Marketing Platform organization. User needs to be an org user, and admin on the Analytics account in order to delete the link.", - "canonical": true, - "file": "marketingplatform_admin_service.delete_analytics_account_link.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAnalyticsAccountLink", - "fullName": "google.marketingplatform.admin.v1alpha.MarketingplatformAdminService.DeleteAnalyticsAccountLink", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "MarketingplatformAdminServiceClient", - "fullName": "google.marketingplatform.admin.v1alpha.MarketingplatformAdminServiceClient" - }, - "method": { - "shortName": "DeleteAnalyticsAccountLink", - "fullName": "google.marketingplatform.admin.v1alpha.MarketingplatformAdminService.DeleteAnalyticsAccountLink", - "service": { - "shortName": "MarketingplatformAdminService", - "fullName": "google.marketingplatform.admin.v1alpha.MarketingplatformAdminService" - } - } - } - }, - { - "regionTag": "marketingplatformadmin_v1alpha_generated_MarketingplatformAdminService_SetPropertyServiceLevel_async", - "title": "MarketingplatformAdminService setPropertyServiceLevel Sample", - "origin": "API_DEFINITION", - "description": " Updates the service level for an Analytics property.", - "canonical": true, - "file": "marketingplatform_admin_service.set_property_service_level.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetPropertyServiceLevel", - "fullName": "google.marketingplatform.admin.v1alpha.MarketingplatformAdminService.SetPropertyServiceLevel", - "async": true, - "parameters": [ - { - "name": "analytics_account_link", - "type": "TYPE_STRING" - }, - { - "name": "analytics_property", - "type": "TYPE_STRING" - }, - { - "name": "service_level", - "type": ".google.marketingplatform.admin.v1alpha.AnalyticsServiceLevel" - } - ], - "resultType": ".google.marketingplatform.admin.v1alpha.SetPropertyServiceLevelResponse", - "client": { - "shortName": "MarketingplatformAdminServiceClient", - "fullName": "google.marketingplatform.admin.v1alpha.MarketingplatformAdminServiceClient" - }, - "method": { - "shortName": "SetPropertyServiceLevel", - "fullName": "google.marketingplatform.admin.v1alpha.MarketingplatformAdminService.SetPropertyServiceLevel", - "service": { - "shortName": "MarketingplatformAdminService", - "fullName": "google.marketingplatform.admin.v1alpha.MarketingplatformAdminService" - } - } - } - }, - { - "regionTag": "marketingplatformadmin_v1alpha_generated_MarketingplatformAdminService_ReportPropertyUsage_async", - "title": "MarketingplatformAdminService reportPropertyUsage Sample", - "origin": "API_DEFINITION", - "description": " Get the usage and billing data for properties within the organization for the specified month. Per direct client org, user needs to be OrgAdmin/BillingAdmin on the organization in order to view the billing and usage data. Per sales partner client org, user needs to be OrgAdmin/BillingAdmin on the sales partner org in order to view the billing and usage data, or OrgAdmin/BillingAdmin on the sales partner client org in order to view the usage data only.", - "canonical": true, - "file": "marketingplatform_admin_service.report_property_usage.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReportPropertyUsage", - "fullName": "google.marketingplatform.admin.v1alpha.MarketingplatformAdminService.ReportPropertyUsage", - "async": true, - "parameters": [ - { - "name": "organization", - "type": "TYPE_STRING" - }, - { - "name": "month", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.marketingplatform.admin.v1alpha.ReportPropertyUsageResponse", - "client": { - "shortName": "MarketingplatformAdminServiceClient", - "fullName": "google.marketingplatform.admin.v1alpha.MarketingplatformAdminServiceClient" - }, - "method": { - "shortName": "ReportPropertyUsage", - "fullName": "google.marketingplatform.admin.v1alpha.MarketingplatformAdminService.ReportPropertyUsage", - "service": { - "shortName": "MarketingplatformAdminService", - "fullName": "google.marketingplatform.admin.v1alpha.MarketingplatformAdminService" - } - } - } - } - ] -} diff --git a/packages/google-monitoring-dashboard/samples/generated/v1/snippet_metadata_google.monitoring.dashboard.v1.json b/packages/google-monitoring-dashboard/samples/generated/v1/snippet_metadata_google.monitoring.dashboard.v1.json deleted file mode 100644 index 0298e06e8a8e..000000000000 --- a/packages/google-monitoring-dashboard/samples/generated/v1/snippet_metadata_google.monitoring.dashboard.v1.json +++ /dev/null @@ -1,235 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-dashboard", - "version": "4.1.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.monitoring.dashboard.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "monitoring_v1_generated_DashboardsService_CreateDashboard_async", - "title": "DashboardsService createDashboard Sample", - "origin": "API_DEFINITION", - "description": " Creates a new custom dashboard. For examples on how you can use this API to create dashboards, see [Managing dashboards by API](https://cloud.google.com/monitoring/dashboards/api-dashboard). This method requires the `monitoring.dashboards.create` permission on the specified project. For more information about permissions, see [Cloud Identity and Access Management](https://cloud.google.com/iam).", - "canonical": true, - "file": "dashboards_service.create_dashboard.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDashboard", - "fullName": "google.monitoring.dashboard.v1.DashboardsService.CreateDashboard", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "dashboard", - "type": ".google.monitoring.dashboard.v1.Dashboard" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.monitoring.dashboard.v1.Dashboard", - "client": { - "shortName": "DashboardsServiceClient", - "fullName": "google.monitoring.dashboard.v1.DashboardsServiceClient" - }, - "method": { - "shortName": "CreateDashboard", - "fullName": "google.monitoring.dashboard.v1.DashboardsService.CreateDashboard", - "service": { - "shortName": "DashboardsService", - "fullName": "google.monitoring.dashboard.v1.DashboardsService" - } - } - } - }, - { - "regionTag": "monitoring_v1_generated_DashboardsService_ListDashboards_async", - "title": "DashboardsService listDashboards Sample", - "origin": "API_DEFINITION", - "description": " Lists the existing dashboards. This method requires the `monitoring.dashboards.list` permission on the specified project. For more information, see [Cloud Identity and Access Management](https://cloud.google.com/iam).", - "canonical": true, - "file": "dashboards_service.list_dashboards.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDashboards", - "fullName": "google.monitoring.dashboard.v1.DashboardsService.ListDashboards", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.monitoring.dashboard.v1.ListDashboardsResponse", - "client": { - "shortName": "DashboardsServiceClient", - "fullName": "google.monitoring.dashboard.v1.DashboardsServiceClient" - }, - "method": { - "shortName": "ListDashboards", - "fullName": "google.monitoring.dashboard.v1.DashboardsService.ListDashboards", - "service": { - "shortName": "DashboardsService", - "fullName": "google.monitoring.dashboard.v1.DashboardsService" - } - } - } - }, - { - "regionTag": "monitoring_v1_generated_DashboardsService_GetDashboard_async", - "title": "DashboardsService getDashboard Sample", - "origin": "API_DEFINITION", - "description": " Fetches a specific dashboard. This method requires the `monitoring.dashboards.get` permission on the specified dashboard. For more information, see [Cloud Identity and Access Management](https://cloud.google.com/iam).", - "canonical": true, - "file": "dashboards_service.get_dashboard.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDashboard", - "fullName": "google.monitoring.dashboard.v1.DashboardsService.GetDashboard", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.monitoring.dashboard.v1.Dashboard", - "client": { - "shortName": "DashboardsServiceClient", - "fullName": "google.monitoring.dashboard.v1.DashboardsServiceClient" - }, - "method": { - "shortName": "GetDashboard", - "fullName": "google.monitoring.dashboard.v1.DashboardsService.GetDashboard", - "service": { - "shortName": "DashboardsService", - "fullName": "google.monitoring.dashboard.v1.DashboardsService" - } - } - } - }, - { - "regionTag": "monitoring_v1_generated_DashboardsService_DeleteDashboard_async", - "title": "DashboardsService deleteDashboard Sample", - "origin": "API_DEFINITION", - "description": " Deletes an existing custom dashboard. This method requires the `monitoring.dashboards.delete` permission on the specified dashboard. For more information, see [Cloud Identity and Access Management](https://cloud.google.com/iam).", - "canonical": true, - "file": "dashboards_service.delete_dashboard.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDashboard", - "fullName": "google.monitoring.dashboard.v1.DashboardsService.DeleteDashboard", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DashboardsServiceClient", - "fullName": "google.monitoring.dashboard.v1.DashboardsServiceClient" - }, - "method": { - "shortName": "DeleteDashboard", - "fullName": "google.monitoring.dashboard.v1.DashboardsService.DeleteDashboard", - "service": { - "shortName": "DashboardsService", - "fullName": "google.monitoring.dashboard.v1.DashboardsService" - } - } - } - }, - { - "regionTag": "monitoring_v1_generated_DashboardsService_UpdateDashboard_async", - "title": "DashboardsService updateDashboard Sample", - "origin": "API_DEFINITION", - "description": " Replaces an existing custom dashboard with a new definition. This method requires the `monitoring.dashboards.update` permission on the specified dashboard. For more information, see [Cloud Identity and Access Management](https://cloud.google.com/iam).", - "canonical": true, - "file": "dashboards_service.update_dashboard.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDashboard", - "fullName": "google.monitoring.dashboard.v1.DashboardsService.UpdateDashboard", - "async": true, - "parameters": [ - { - "name": "dashboard", - "type": ".google.monitoring.dashboard.v1.Dashboard" - }, - { - "name": "validate_only", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.monitoring.dashboard.v1.Dashboard", - "client": { - "shortName": "DashboardsServiceClient", - "fullName": "google.monitoring.dashboard.v1.DashboardsServiceClient" - }, - "method": { - "shortName": "UpdateDashboard", - "fullName": "google.monitoring.dashboard.v1.DashboardsService.UpdateDashboard", - "service": { - "shortName": "DashboardsService", - "fullName": "google.monitoring.dashboard.v1.DashboardsService" - } - } - } - } - ] -} diff --git a/packages/google-privacy-dlp/samples/generated/v2/snippet_metadata_google.privacy.dlp.v2.json b/packages/google-privacy-dlp/samples/generated/v2/snippet_metadata_google.privacy.dlp.v2.json deleted file mode 100644 index 0595c86720c0..000000000000 --- a/packages/google-privacy-dlp/samples/generated/v2/snippet_metadata_google.privacy.dlp.v2.json +++ /dev/null @@ -1,2647 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-dlp", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.privacy.dlp.v2", - "version": "v2" - } - ] - }, - "snippets": [ - { - "regionTag": "dlp_v2_generated_DlpService_InspectContent_async", - "title": "DlpService inspectContent Sample", - "origin": "API_DEFINITION", - "description": " Finds potentially sensitive info in content. This method has limits on input size, processing time, and output size. When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated. For how to guides, see https://cloud.google.com/sensitive-data-protection/docs/inspecting-images and https://cloud.google.com/sensitive-data-protection/docs/inspecting-text,", - "canonical": true, - "file": "dlp_service.inspect_content.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "InspectContent", - "fullName": "google.privacy.dlp.v2.DlpService.InspectContent", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "inspect_config", - "type": ".google.privacy.dlp.v2.InspectConfig" - }, - { - "name": "item", - "type": ".google.privacy.dlp.v2.ContentItem" - }, - { - "name": "inspect_template_name", - "type": "TYPE_STRING" - }, - { - "name": "location_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.privacy.dlp.v2.InspectContentResponse", - "client": { - "shortName": "DlpServiceClient", - "fullName": "google.privacy.dlp.v2.DlpServiceClient" - }, - "method": { - "shortName": "InspectContent", - "fullName": "google.privacy.dlp.v2.DlpService.InspectContent", - "service": { - "shortName": "DlpService", - "fullName": "google.privacy.dlp.v2.DlpService" - } - } - } - }, - { - "regionTag": "dlp_v2_generated_DlpService_RedactImage_async", - "title": "DlpService redactImage Sample", - "origin": "API_DEFINITION", - "description": " Redacts potentially sensitive info from an image. This method has limits on input size, processing time, and output size. See https://cloud.google.com/sensitive-data-protection/docs/redacting-sensitive-data-images to learn more. When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated. Only the first frame of each multiframe image is redacted. Metadata and other frames are omitted in the response.", - "canonical": true, - "file": "dlp_service.redact_image.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 99, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RedactImage", - "fullName": "google.privacy.dlp.v2.DlpService.RedactImage", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "location_id", - "type": "TYPE_STRING" - }, - { - "name": "inspect_config", - "type": ".google.privacy.dlp.v2.InspectConfig" - }, - { - "name": "image_redaction_configs", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "include_findings", - "type": "TYPE_BOOL" - }, - { - "name": "byte_item", - "type": ".google.privacy.dlp.v2.ByteContentItem" - }, - { - "name": "inspect_template", - "type": "TYPE_STRING" - }, - { - "name": "deidentify_template", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.privacy.dlp.v2.RedactImageResponse", - "client": { - "shortName": "DlpServiceClient", - "fullName": "google.privacy.dlp.v2.DlpServiceClient" - }, - "method": { - "shortName": "RedactImage", - "fullName": "google.privacy.dlp.v2.DlpService.RedactImage", - "service": { - "shortName": "DlpService", - "fullName": "google.privacy.dlp.v2.DlpService" - } - } - } - }, - { - "regionTag": "dlp_v2_generated_DlpService_DeidentifyContent_async", - "title": "DlpService deidentifyContent Sample", - "origin": "API_DEFINITION", - "description": " De-identifies potentially sensitive info from a ContentItem. This method has limits on input size and output size. See https://cloud.google.com/sensitive-data-protection/docs/deidentify-sensitive-data to learn more. When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.", - "canonical": true, - "file": "dlp_service.deidentify_content.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 101, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeidentifyContent", - "fullName": "google.privacy.dlp.v2.DlpService.DeidentifyContent", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "deidentify_config", - "type": ".google.privacy.dlp.v2.DeidentifyConfig" - }, - { - "name": "inspect_config", - "type": ".google.privacy.dlp.v2.InspectConfig" - }, - { - "name": "item", - "type": ".google.privacy.dlp.v2.ContentItem" - }, - { - "name": "inspect_template_name", - "type": "TYPE_STRING" - }, - { - "name": "deidentify_template_name", - "type": "TYPE_STRING" - }, - { - "name": "location_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.privacy.dlp.v2.DeidentifyContentResponse", - "client": { - "shortName": "DlpServiceClient", - "fullName": "google.privacy.dlp.v2.DlpServiceClient" - }, - "method": { - "shortName": "DeidentifyContent", - "fullName": "google.privacy.dlp.v2.DlpService.DeidentifyContent", - "service": { - "shortName": "DlpService", - "fullName": "google.privacy.dlp.v2.DlpService" - } - } - } - }, - { - "regionTag": "dlp_v2_generated_DlpService_ReidentifyContent_async", - "title": "DlpService reidentifyContent Sample", - "origin": "API_DEFINITION", - "description": " Re-identifies content that has been de-identified. See https://cloud.google.com/sensitive-data-protection/docs/pseudonymization#re-identification_in_free_text_code_example to learn more.", - "canonical": true, - "file": "dlp_service.reidentify_content.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 102, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ReidentifyContent", - "fullName": "google.privacy.dlp.v2.DlpService.ReidentifyContent", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "reidentify_config", - "type": ".google.privacy.dlp.v2.DeidentifyConfig" - }, - { - "name": "inspect_config", - "type": ".google.privacy.dlp.v2.InspectConfig" - }, - { - "name": "item", - "type": ".google.privacy.dlp.v2.ContentItem" - }, - { - "name": "inspect_template_name", - "type": "TYPE_STRING" - }, - { - "name": "reidentify_template_name", - "type": "TYPE_STRING" - }, - { - "name": "location_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.privacy.dlp.v2.ReidentifyContentResponse", - "client": { - "shortName": "DlpServiceClient", - "fullName": "google.privacy.dlp.v2.DlpServiceClient" - }, - "method": { - "shortName": "ReidentifyContent", - "fullName": "google.privacy.dlp.v2.DlpService.ReidentifyContent", - "service": { - "shortName": "DlpService", - "fullName": "google.privacy.dlp.v2.DlpService" - } - } - } - }, - { - "regionTag": "dlp_v2_generated_DlpService_ListInfoTypes_async", - "title": "DlpService listInfoTypes Sample", - "origin": "API_DEFINITION", - "description": " Returns a list of the sensitive information types that the DLP API supports. See https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference to learn more.", - "canonical": true, - "file": "dlp_service.list_info_types.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListInfoTypes", - "fullName": "google.privacy.dlp.v2.DlpService.ListInfoTypes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "location_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.privacy.dlp.v2.ListInfoTypesResponse", - "client": { - "shortName": "DlpServiceClient", - "fullName": "google.privacy.dlp.v2.DlpServiceClient" - }, - "method": { - "shortName": "ListInfoTypes", - "fullName": "google.privacy.dlp.v2.DlpService.ListInfoTypes", - "service": { - "shortName": "DlpService", - "fullName": "google.privacy.dlp.v2.DlpService" - } - } - } - }, - { - "regionTag": "dlp_v2_generated_DlpService_CreateInspectTemplate_async", - "title": "DlpService createInspectTemplate Sample", - "origin": "API_DEFINITION", - "description": " Creates an InspectTemplate for reusing frequently used configuration for inspecting content, images, and storage. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.", - "canonical": true, - "file": "dlp_service.create_inspect_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateInspectTemplate", - "fullName": "google.privacy.dlp.v2.DlpService.CreateInspectTemplate", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "inspect_template", - "type": ".google.privacy.dlp.v2.InspectTemplate" - }, - { - "name": "template_id", - "type": "TYPE_STRING" - }, - { - "name": "location_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.privacy.dlp.v2.InspectTemplate", - "client": { - "shortName": "DlpServiceClient", - "fullName": "google.privacy.dlp.v2.DlpServiceClient" - }, - "method": { - "shortName": "CreateInspectTemplate", - "fullName": "google.privacy.dlp.v2.DlpService.CreateInspectTemplate", - "service": { - "shortName": "DlpService", - "fullName": "google.privacy.dlp.v2.DlpService" - } - } - } - }, - { - "regionTag": "dlp_v2_generated_DlpService_UpdateInspectTemplate_async", - "title": "DlpService updateInspectTemplate Sample", - "origin": "API_DEFINITION", - "description": " Updates the InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.", - "canonical": true, - "file": "dlp_service.update_inspect_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateInspectTemplate", - "fullName": "google.privacy.dlp.v2.DlpService.UpdateInspectTemplate", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "inspect_template", - "type": ".google.privacy.dlp.v2.InspectTemplate" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.privacy.dlp.v2.InspectTemplate", - "client": { - "shortName": "DlpServiceClient", - "fullName": "google.privacy.dlp.v2.DlpServiceClient" - }, - "method": { - "shortName": "UpdateInspectTemplate", - "fullName": "google.privacy.dlp.v2.DlpService.UpdateInspectTemplate", - "service": { - "shortName": "DlpService", - "fullName": "google.privacy.dlp.v2.DlpService" - } - } - } - }, - { - "regionTag": "dlp_v2_generated_DlpService_GetInspectTemplate_async", - "title": "DlpService getInspectTemplate Sample", - "origin": "API_DEFINITION", - "description": " Gets an InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.", - "canonical": true, - "file": "dlp_service.get_inspect_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetInspectTemplate", - "fullName": "google.privacy.dlp.v2.DlpService.GetInspectTemplate", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.privacy.dlp.v2.InspectTemplate", - "client": { - "shortName": "DlpServiceClient", - "fullName": "google.privacy.dlp.v2.DlpServiceClient" - }, - "method": { - "shortName": "GetInspectTemplate", - "fullName": "google.privacy.dlp.v2.DlpService.GetInspectTemplate", - "service": { - "shortName": "DlpService", - "fullName": "google.privacy.dlp.v2.DlpService" - } - } - } - }, - { - "regionTag": "dlp_v2_generated_DlpService_ListInspectTemplates_async", - "title": "DlpService listInspectTemplates Sample", - "origin": "API_DEFINITION", - "description": " Lists InspectTemplates. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.", - "canonical": true, - "file": "dlp_service.list_inspect_templates.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 93, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListInspectTemplates", - "fullName": "google.privacy.dlp.v2.DlpService.ListInspectTemplates", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "location_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.privacy.dlp.v2.ListInspectTemplatesResponse", - "client": { - "shortName": "DlpServiceClient", - "fullName": "google.privacy.dlp.v2.DlpServiceClient" - }, - "method": { - "shortName": "ListInspectTemplates", - "fullName": "google.privacy.dlp.v2.DlpService.ListInspectTemplates", - "service": { - "shortName": "DlpService", - "fullName": "google.privacy.dlp.v2.DlpService" - } - } - } - }, - { - "regionTag": "dlp_v2_generated_DlpService_DeleteInspectTemplate_async", - "title": "DlpService deleteInspectTemplate Sample", - "origin": "API_DEFINITION", - "description": " Deletes an InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more.", - "canonical": true, - "file": "dlp_service.delete_inspect_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteInspectTemplate", - "fullName": "google.privacy.dlp.v2.DlpService.DeleteInspectTemplate", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DlpServiceClient", - "fullName": "google.privacy.dlp.v2.DlpServiceClient" - }, - "method": { - "shortName": "DeleteInspectTemplate", - "fullName": "google.privacy.dlp.v2.DlpService.DeleteInspectTemplate", - "service": { - "shortName": "DlpService", - "fullName": "google.privacy.dlp.v2.DlpService" - } - } - } - }, - { - "regionTag": "dlp_v2_generated_DlpService_CreateDeidentifyTemplate_async", - "title": "DlpService createDeidentifyTemplate Sample", - "origin": "API_DEFINITION", - "description": " Creates a DeidentifyTemplate for reusing frequently used configuration for de-identifying content, images, and storage. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.", - "canonical": true, - "file": "dlp_service.create_deidentify_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDeidentifyTemplate", - "fullName": "google.privacy.dlp.v2.DlpService.CreateDeidentifyTemplate", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "deidentify_template", - "type": ".google.privacy.dlp.v2.DeidentifyTemplate" - }, - { - "name": "template_id", - "type": "TYPE_STRING" - }, - { - "name": "location_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.privacy.dlp.v2.DeidentifyTemplate", - "client": { - "shortName": "DlpServiceClient", - "fullName": "google.privacy.dlp.v2.DlpServiceClient" - }, - "method": { - "shortName": "CreateDeidentifyTemplate", - "fullName": "google.privacy.dlp.v2.DlpService.CreateDeidentifyTemplate", - "service": { - "shortName": "DlpService", - "fullName": "google.privacy.dlp.v2.DlpService" - } - } - } - }, - { - "regionTag": "dlp_v2_generated_DlpService_UpdateDeidentifyTemplate_async", - "title": "DlpService updateDeidentifyTemplate Sample", - "origin": "API_DEFINITION", - "description": " Updates the DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.", - "canonical": true, - "file": "dlp_service.update_deidentify_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDeidentifyTemplate", - "fullName": "google.privacy.dlp.v2.DlpService.UpdateDeidentifyTemplate", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "deidentify_template", - "type": ".google.privacy.dlp.v2.DeidentifyTemplate" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.privacy.dlp.v2.DeidentifyTemplate", - "client": { - "shortName": "DlpServiceClient", - "fullName": "google.privacy.dlp.v2.DlpServiceClient" - }, - "method": { - "shortName": "UpdateDeidentifyTemplate", - "fullName": "google.privacy.dlp.v2.DlpService.UpdateDeidentifyTemplate", - "service": { - "shortName": "DlpService", - "fullName": "google.privacy.dlp.v2.DlpService" - } - } - } - }, - { - "regionTag": "dlp_v2_generated_DlpService_GetDeidentifyTemplate_async", - "title": "DlpService getDeidentifyTemplate Sample", - "origin": "API_DEFINITION", - "description": " Gets a DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.", - "canonical": true, - "file": "dlp_service.get_deidentify_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDeidentifyTemplate", - "fullName": "google.privacy.dlp.v2.DlpService.GetDeidentifyTemplate", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.privacy.dlp.v2.DeidentifyTemplate", - "client": { - "shortName": "DlpServiceClient", - "fullName": "google.privacy.dlp.v2.DlpServiceClient" - }, - "method": { - "shortName": "GetDeidentifyTemplate", - "fullName": "google.privacy.dlp.v2.DlpService.GetDeidentifyTemplate", - "service": { - "shortName": "DlpService", - "fullName": "google.privacy.dlp.v2.DlpService" - } - } - } - }, - { - "regionTag": "dlp_v2_generated_DlpService_ListDeidentifyTemplates_async", - "title": "DlpService listDeidentifyTemplates Sample", - "origin": "API_DEFINITION", - "description": " Lists DeidentifyTemplates. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.", - "canonical": true, - "file": "dlp_service.list_deidentify_templates.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 93, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDeidentifyTemplates", - "fullName": "google.privacy.dlp.v2.DlpService.ListDeidentifyTemplates", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "location_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.privacy.dlp.v2.ListDeidentifyTemplatesResponse", - "client": { - "shortName": "DlpServiceClient", - "fullName": "google.privacy.dlp.v2.DlpServiceClient" - }, - "method": { - "shortName": "ListDeidentifyTemplates", - "fullName": "google.privacy.dlp.v2.DlpService.ListDeidentifyTemplates", - "service": { - "shortName": "DlpService", - "fullName": "google.privacy.dlp.v2.DlpService" - } - } - } - }, - { - "regionTag": "dlp_v2_generated_DlpService_DeleteDeidentifyTemplate_async", - "title": "DlpService deleteDeidentifyTemplate Sample", - "origin": "API_DEFINITION", - "description": " Deletes a DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more.", - "canonical": true, - "file": "dlp_service.delete_deidentify_template.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDeidentifyTemplate", - "fullName": "google.privacy.dlp.v2.DlpService.DeleteDeidentifyTemplate", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DlpServiceClient", - "fullName": "google.privacy.dlp.v2.DlpServiceClient" - }, - "method": { - "shortName": "DeleteDeidentifyTemplate", - "fullName": "google.privacy.dlp.v2.DlpService.DeleteDeidentifyTemplate", - "service": { - "shortName": "DlpService", - "fullName": "google.privacy.dlp.v2.DlpService" - } - } - } - }, - { - "regionTag": "dlp_v2_generated_DlpService_CreateJobTrigger_async", - "title": "DlpService createJobTrigger Sample", - "origin": "API_DEFINITION", - "description": " Creates a job trigger to run DLP actions such as scanning storage for sensitive information on a set schedule. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.", - "canonical": true, - "file": "dlp_service.create_job_trigger.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateJobTrigger", - "fullName": "google.privacy.dlp.v2.DlpService.CreateJobTrigger", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "job_trigger", - "type": ".google.privacy.dlp.v2.JobTrigger" - }, - { - "name": "trigger_id", - "type": "TYPE_STRING" - }, - { - "name": "location_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.privacy.dlp.v2.JobTrigger", - "client": { - "shortName": "DlpServiceClient", - "fullName": "google.privacy.dlp.v2.DlpServiceClient" - }, - "method": { - "shortName": "CreateJobTrigger", - "fullName": "google.privacy.dlp.v2.DlpService.CreateJobTrigger", - "service": { - "shortName": "DlpService", - "fullName": "google.privacy.dlp.v2.DlpService" - } - } - } - }, - { - "regionTag": "dlp_v2_generated_DlpService_UpdateJobTrigger_async", - "title": "DlpService updateJobTrigger Sample", - "origin": "API_DEFINITION", - "description": " Updates a job trigger. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.", - "canonical": true, - "file": "dlp_service.update_job_trigger.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateJobTrigger", - "fullName": "google.privacy.dlp.v2.DlpService.UpdateJobTrigger", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "job_trigger", - "type": ".google.privacy.dlp.v2.JobTrigger" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.privacy.dlp.v2.JobTrigger", - "client": { - "shortName": "DlpServiceClient", - "fullName": "google.privacy.dlp.v2.DlpServiceClient" - }, - "method": { - "shortName": "UpdateJobTrigger", - "fullName": "google.privacy.dlp.v2.DlpService.UpdateJobTrigger", - "service": { - "shortName": "DlpService", - "fullName": "google.privacy.dlp.v2.DlpService" - } - } - } - }, - { - "regionTag": "dlp_v2_generated_DlpService_HybridInspectJobTrigger_async", - "title": "DlpService hybridInspectJobTrigger Sample", - "origin": "API_DEFINITION", - "description": " Inspect hybrid content and store findings to a trigger. The inspection will be processed asynchronously. To review the findings monitor the jobs within the trigger.", - "canonical": true, - "file": "dlp_service.hybrid_inspect_job_trigger.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "HybridInspectJobTrigger", - "fullName": "google.privacy.dlp.v2.DlpService.HybridInspectJobTrigger", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "hybrid_item", - "type": ".google.privacy.dlp.v2.HybridContentItem" - } - ], - "resultType": ".google.privacy.dlp.v2.HybridInspectResponse", - "client": { - "shortName": "DlpServiceClient", - "fullName": "google.privacy.dlp.v2.DlpServiceClient" - }, - "method": { - "shortName": "HybridInspectJobTrigger", - "fullName": "google.privacy.dlp.v2.DlpService.HybridInspectJobTrigger", - "service": { - "shortName": "DlpService", - "fullName": "google.privacy.dlp.v2.DlpService" - } - } - } - }, - { - "regionTag": "dlp_v2_generated_DlpService_GetJobTrigger_async", - "title": "DlpService getJobTrigger Sample", - "origin": "API_DEFINITION", - "description": " Gets a job trigger. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.", - "canonical": true, - "file": "dlp_service.get_job_trigger.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetJobTrigger", - "fullName": "google.privacy.dlp.v2.DlpService.GetJobTrigger", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.privacy.dlp.v2.JobTrigger", - "client": { - "shortName": "DlpServiceClient", - "fullName": "google.privacy.dlp.v2.DlpServiceClient" - }, - "method": { - "shortName": "GetJobTrigger", - "fullName": "google.privacy.dlp.v2.DlpService.GetJobTrigger", - "service": { - "shortName": "DlpService", - "fullName": "google.privacy.dlp.v2.DlpService" - } - } - } - }, - { - "regionTag": "dlp_v2_generated_DlpService_ListJobTriggers_async", - "title": "DlpService listJobTriggers Sample", - "origin": "API_DEFINITION", - "description": " Lists job triggers. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.", - "canonical": true, - "file": "dlp_service.list_job_triggers.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 118, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListJobTriggers", - "fullName": "google.privacy.dlp.v2.DlpService.ListJobTriggers", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "type", - "type": ".google.privacy.dlp.v2.DlpJobType" - }, - { - "name": "location_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.privacy.dlp.v2.ListJobTriggersResponse", - "client": { - "shortName": "DlpServiceClient", - "fullName": "google.privacy.dlp.v2.DlpServiceClient" - }, - "method": { - "shortName": "ListJobTriggers", - "fullName": "google.privacy.dlp.v2.DlpService.ListJobTriggers", - "service": { - "shortName": "DlpService", - "fullName": "google.privacy.dlp.v2.DlpService" - } - } - } - }, - { - "regionTag": "dlp_v2_generated_DlpService_DeleteJobTrigger_async", - "title": "DlpService deleteJobTrigger Sample", - "origin": "API_DEFINITION", - "description": " Deletes a job trigger. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more.", - "canonical": true, - "file": "dlp_service.delete_job_trigger.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteJobTrigger", - "fullName": "google.privacy.dlp.v2.DlpService.DeleteJobTrigger", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DlpServiceClient", - "fullName": "google.privacy.dlp.v2.DlpServiceClient" - }, - "method": { - "shortName": "DeleteJobTrigger", - "fullName": "google.privacy.dlp.v2.DlpService.DeleteJobTrigger", - "service": { - "shortName": "DlpService", - "fullName": "google.privacy.dlp.v2.DlpService" - } - } - } - }, - { - "regionTag": "dlp_v2_generated_DlpService_ActivateJobTrigger_async", - "title": "DlpService activateJobTrigger Sample", - "origin": "API_DEFINITION", - "description": " Activate a job trigger. Causes the immediate execute of a trigger instead of waiting on the trigger event to occur.", - "canonical": true, - "file": "dlp_service.activate_job_trigger.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ActivateJobTrigger", - "fullName": "google.privacy.dlp.v2.DlpService.ActivateJobTrigger", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.privacy.dlp.v2.DlpJob", - "client": { - "shortName": "DlpServiceClient", - "fullName": "google.privacy.dlp.v2.DlpServiceClient" - }, - "method": { - "shortName": "ActivateJobTrigger", - "fullName": "google.privacy.dlp.v2.DlpService.ActivateJobTrigger", - "service": { - "shortName": "DlpService", - "fullName": "google.privacy.dlp.v2.DlpService" - } - } - } - }, - { - "regionTag": "dlp_v2_generated_DlpService_CreateDiscoveryConfig_async", - "title": "DlpService createDiscoveryConfig Sample", - "origin": "API_DEFINITION", - "description": " Creates a config for discovery to scan and profile storage.", - "canonical": true, - "file": "dlp_service.create_discovery_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDiscoveryConfig", - "fullName": "google.privacy.dlp.v2.DlpService.CreateDiscoveryConfig", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "discovery_config", - "type": ".google.privacy.dlp.v2.DiscoveryConfig" - }, - { - "name": "config_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.privacy.dlp.v2.DiscoveryConfig", - "client": { - "shortName": "DlpServiceClient", - "fullName": "google.privacy.dlp.v2.DlpServiceClient" - }, - "method": { - "shortName": "CreateDiscoveryConfig", - "fullName": "google.privacy.dlp.v2.DlpService.CreateDiscoveryConfig", - "service": { - "shortName": "DlpService", - "fullName": "google.privacy.dlp.v2.DlpService" - } - } - } - }, - { - "regionTag": "dlp_v2_generated_DlpService_UpdateDiscoveryConfig_async", - "title": "DlpService updateDiscoveryConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates a discovery configuration.", - "canonical": true, - "file": "dlp_service.update_discovery_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDiscoveryConfig", - "fullName": "google.privacy.dlp.v2.DlpService.UpdateDiscoveryConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "discovery_config", - "type": ".google.privacy.dlp.v2.DiscoveryConfig" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.privacy.dlp.v2.DiscoveryConfig", - "client": { - "shortName": "DlpServiceClient", - "fullName": "google.privacy.dlp.v2.DlpServiceClient" - }, - "method": { - "shortName": "UpdateDiscoveryConfig", - "fullName": "google.privacy.dlp.v2.DlpService.UpdateDiscoveryConfig", - "service": { - "shortName": "DlpService", - "fullName": "google.privacy.dlp.v2.DlpService" - } - } - } - }, - { - "regionTag": "dlp_v2_generated_DlpService_GetDiscoveryConfig_async", - "title": "DlpService getDiscoveryConfig Sample", - "origin": "API_DEFINITION", - "description": " Gets a discovery configuration.", - "canonical": true, - "file": "dlp_service.get_discovery_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDiscoveryConfig", - "fullName": "google.privacy.dlp.v2.DlpService.GetDiscoveryConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.privacy.dlp.v2.DiscoveryConfig", - "client": { - "shortName": "DlpServiceClient", - "fullName": "google.privacy.dlp.v2.DlpServiceClient" - }, - "method": { - "shortName": "GetDiscoveryConfig", - "fullName": "google.privacy.dlp.v2.DlpService.GetDiscoveryConfig", - "service": { - "shortName": "DlpService", - "fullName": "google.privacy.dlp.v2.DlpService" - } - } - } - }, - { - "regionTag": "dlp_v2_generated_DlpService_ListDiscoveryConfigs_async", - "title": "DlpService listDiscoveryConfigs Sample", - "origin": "API_DEFINITION", - "description": " Lists discovery configurations.", - "canonical": true, - "file": "dlp_service.list_discovery_configs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDiscoveryConfigs", - "fullName": "google.privacy.dlp.v2.DlpService.ListDiscoveryConfigs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.privacy.dlp.v2.ListDiscoveryConfigsResponse", - "client": { - "shortName": "DlpServiceClient", - "fullName": "google.privacy.dlp.v2.DlpServiceClient" - }, - "method": { - "shortName": "ListDiscoveryConfigs", - "fullName": "google.privacy.dlp.v2.DlpService.ListDiscoveryConfigs", - "service": { - "shortName": "DlpService", - "fullName": "google.privacy.dlp.v2.DlpService" - } - } - } - }, - { - "regionTag": "dlp_v2_generated_DlpService_DeleteDiscoveryConfig_async", - "title": "DlpService deleteDiscoveryConfig Sample", - "origin": "API_DEFINITION", - "description": " Deletes a discovery configuration.", - "canonical": true, - "file": "dlp_service.delete_discovery_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDiscoveryConfig", - "fullName": "google.privacy.dlp.v2.DlpService.DeleteDiscoveryConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DlpServiceClient", - "fullName": "google.privacy.dlp.v2.DlpServiceClient" - }, - "method": { - "shortName": "DeleteDiscoveryConfig", - "fullName": "google.privacy.dlp.v2.DlpService.DeleteDiscoveryConfig", - "service": { - "shortName": "DlpService", - "fullName": "google.privacy.dlp.v2.DlpService" - } - } - } - }, - { - "regionTag": "dlp_v2_generated_DlpService_CreateDlpJob_async", - "title": "DlpService createDlpJob Sample", - "origin": "API_DEFINITION", - "description": " Creates a new job to inspect storage or calculate risk metrics. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more. When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated.", - "canonical": true, - "file": "dlp_service.create_dlp_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDlpJob", - "fullName": "google.privacy.dlp.v2.DlpService.CreateDlpJob", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "inspect_job", - "type": ".google.privacy.dlp.v2.InspectJobConfig" - }, - { - "name": "risk_job", - "type": ".google.privacy.dlp.v2.RiskAnalysisJobConfig" - }, - { - "name": "job_id", - "type": "TYPE_STRING" - }, - { - "name": "location_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.privacy.dlp.v2.DlpJob", - "client": { - "shortName": "DlpServiceClient", - "fullName": "google.privacy.dlp.v2.DlpServiceClient" - }, - "method": { - "shortName": "CreateDlpJob", - "fullName": "google.privacy.dlp.v2.DlpService.CreateDlpJob", - "service": { - "shortName": "DlpService", - "fullName": "google.privacy.dlp.v2.DlpService" - } - } - } - }, - { - "regionTag": "dlp_v2_generated_DlpService_ListDlpJobs_async", - "title": "DlpService listDlpJobs Sample", - "origin": "API_DEFINITION", - "description": " Lists DlpJobs that match the specified filter in the request. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.", - "canonical": true, - "file": "dlp_service.list_dlp_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 118, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDlpJobs", - "fullName": "google.privacy.dlp.v2.DlpService.ListDlpJobs", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "type", - "type": ".google.privacy.dlp.v2.DlpJobType" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "location_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.privacy.dlp.v2.ListDlpJobsResponse", - "client": { - "shortName": "DlpServiceClient", - "fullName": "google.privacy.dlp.v2.DlpServiceClient" - }, - "method": { - "shortName": "ListDlpJobs", - "fullName": "google.privacy.dlp.v2.DlpService.ListDlpJobs", - "service": { - "shortName": "DlpService", - "fullName": "google.privacy.dlp.v2.DlpService" - } - } - } - }, - { - "regionTag": "dlp_v2_generated_DlpService_GetDlpJob_async", - "title": "DlpService getDlpJob Sample", - "origin": "API_DEFINITION", - "description": " Gets the latest state of a long-running DlpJob. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.", - "canonical": true, - "file": "dlp_service.get_dlp_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDlpJob", - "fullName": "google.privacy.dlp.v2.DlpService.GetDlpJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.privacy.dlp.v2.DlpJob", - "client": { - "shortName": "DlpServiceClient", - "fullName": "google.privacy.dlp.v2.DlpServiceClient" - }, - "method": { - "shortName": "GetDlpJob", - "fullName": "google.privacy.dlp.v2.DlpService.GetDlpJob", - "service": { - "shortName": "DlpService", - "fullName": "google.privacy.dlp.v2.DlpService" - } - } - } - }, - { - "regionTag": "dlp_v2_generated_DlpService_DeleteDlpJob_async", - "title": "DlpService deleteDlpJob Sample", - "origin": "API_DEFINITION", - "description": " Deletes a long-running DlpJob. This method indicates that the client is no longer interested in the DlpJob result. The job will be canceled if possible. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.", - "canonical": true, - "file": "dlp_service.delete_dlp_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDlpJob", - "fullName": "google.privacy.dlp.v2.DlpService.DeleteDlpJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DlpServiceClient", - "fullName": "google.privacy.dlp.v2.DlpServiceClient" - }, - "method": { - "shortName": "DeleteDlpJob", - "fullName": "google.privacy.dlp.v2.DlpService.DeleteDlpJob", - "service": { - "shortName": "DlpService", - "fullName": "google.privacy.dlp.v2.DlpService" - } - } - } - }, - { - "regionTag": "dlp_v2_generated_DlpService_CancelDlpJob_async", - "title": "DlpService cancelDlpJob Sample", - "origin": "API_DEFINITION", - "description": " Starts asynchronous cancellation on a long-running DlpJob. The server makes a best effort to cancel the DlpJob, but success is not guaranteed. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more.", - "canonical": true, - "file": "dlp_service.cancel_dlp_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CancelDlpJob", - "fullName": "google.privacy.dlp.v2.DlpService.CancelDlpJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DlpServiceClient", - "fullName": "google.privacy.dlp.v2.DlpServiceClient" - }, - "method": { - "shortName": "CancelDlpJob", - "fullName": "google.privacy.dlp.v2.DlpService.CancelDlpJob", - "service": { - "shortName": "DlpService", - "fullName": "google.privacy.dlp.v2.DlpService" - } - } - } - }, - { - "regionTag": "dlp_v2_generated_DlpService_CreateStoredInfoType_async", - "title": "DlpService createStoredInfoType Sample", - "origin": "API_DEFINITION", - "description": " Creates a pre-built stored infoType to be used for inspection. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.", - "canonical": true, - "file": "dlp_service.create_stored_info_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateStoredInfoType", - "fullName": "google.privacy.dlp.v2.DlpService.CreateStoredInfoType", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "config", - "type": ".google.privacy.dlp.v2.StoredInfoTypeConfig" - }, - { - "name": "stored_info_type_id", - "type": "TYPE_STRING" - }, - { - "name": "location_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.privacy.dlp.v2.StoredInfoType", - "client": { - "shortName": "DlpServiceClient", - "fullName": "google.privacy.dlp.v2.DlpServiceClient" - }, - "method": { - "shortName": "CreateStoredInfoType", - "fullName": "google.privacy.dlp.v2.DlpService.CreateStoredInfoType", - "service": { - "shortName": "DlpService", - "fullName": "google.privacy.dlp.v2.DlpService" - } - } - } - }, - { - "regionTag": "dlp_v2_generated_DlpService_UpdateStoredInfoType_async", - "title": "DlpService updateStoredInfoType Sample", - "origin": "API_DEFINITION", - "description": " Updates the stored infoType by creating a new version. The existing version will continue to be used until the new version is ready. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.", - "canonical": true, - "file": "dlp_service.update_stored_info_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateStoredInfoType", - "fullName": "google.privacy.dlp.v2.DlpService.UpdateStoredInfoType", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "config", - "type": ".google.privacy.dlp.v2.StoredInfoTypeConfig" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.privacy.dlp.v2.StoredInfoType", - "client": { - "shortName": "DlpServiceClient", - "fullName": "google.privacy.dlp.v2.DlpServiceClient" - }, - "method": { - "shortName": "UpdateStoredInfoType", - "fullName": "google.privacy.dlp.v2.DlpService.UpdateStoredInfoType", - "service": { - "shortName": "DlpService", - "fullName": "google.privacy.dlp.v2.DlpService" - } - } - } - }, - { - "regionTag": "dlp_v2_generated_DlpService_GetStoredInfoType_async", - "title": "DlpService getStoredInfoType Sample", - "origin": "API_DEFINITION", - "description": " Gets a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.", - "canonical": true, - "file": "dlp_service.get_stored_info_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetStoredInfoType", - "fullName": "google.privacy.dlp.v2.DlpService.GetStoredInfoType", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.privacy.dlp.v2.StoredInfoType", - "client": { - "shortName": "DlpServiceClient", - "fullName": "google.privacy.dlp.v2.DlpServiceClient" - }, - "method": { - "shortName": "GetStoredInfoType", - "fullName": "google.privacy.dlp.v2.DlpService.GetStoredInfoType", - "service": { - "shortName": "DlpService", - "fullName": "google.privacy.dlp.v2.DlpService" - } - } - } - }, - { - "regionTag": "dlp_v2_generated_DlpService_ListStoredInfoTypes_async", - "title": "DlpService listStoredInfoTypes Sample", - "origin": "API_DEFINITION", - "description": " Lists stored infoTypes. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.", - "canonical": true, - "file": "dlp_service.list_stored_info_types.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 90, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListStoredInfoTypes", - "fullName": "google.privacy.dlp.v2.DlpService.ListStoredInfoTypes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "location_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.privacy.dlp.v2.ListStoredInfoTypesResponse", - "client": { - "shortName": "DlpServiceClient", - "fullName": "google.privacy.dlp.v2.DlpServiceClient" - }, - "method": { - "shortName": "ListStoredInfoTypes", - "fullName": "google.privacy.dlp.v2.DlpService.ListStoredInfoTypes", - "service": { - "shortName": "DlpService", - "fullName": "google.privacy.dlp.v2.DlpService" - } - } - } - }, - { - "regionTag": "dlp_v2_generated_DlpService_DeleteStoredInfoType_async", - "title": "DlpService deleteStoredInfoType Sample", - "origin": "API_DEFINITION", - "description": " Deletes a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more.", - "canonical": true, - "file": "dlp_service.delete_stored_info_type.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteStoredInfoType", - "fullName": "google.privacy.dlp.v2.DlpService.DeleteStoredInfoType", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DlpServiceClient", - "fullName": "google.privacy.dlp.v2.DlpServiceClient" - }, - "method": { - "shortName": "DeleteStoredInfoType", - "fullName": "google.privacy.dlp.v2.DlpService.DeleteStoredInfoType", - "service": { - "shortName": "DlpService", - "fullName": "google.privacy.dlp.v2.DlpService" - } - } - } - }, - { - "regionTag": "dlp_v2_generated_DlpService_ListProjectDataProfiles_async", - "title": "DlpService listProjectDataProfiles Sample", - "origin": "API_DEFINITION", - "description": " Lists project data profiles for an organization.", - "canonical": true, - "file": "dlp_service.list_project_data_profiles.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 105, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListProjectDataProfiles", - "fullName": "google.privacy.dlp.v2.DlpService.ListProjectDataProfiles", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.privacy.dlp.v2.ListProjectDataProfilesResponse", - "client": { - "shortName": "DlpServiceClient", - "fullName": "google.privacy.dlp.v2.DlpServiceClient" - }, - "method": { - "shortName": "ListProjectDataProfiles", - "fullName": "google.privacy.dlp.v2.DlpService.ListProjectDataProfiles", - "service": { - "shortName": "DlpService", - "fullName": "google.privacy.dlp.v2.DlpService" - } - } - } - }, - { - "regionTag": "dlp_v2_generated_DlpService_ListTableDataProfiles_async", - "title": "DlpService listTableDataProfiles Sample", - "origin": "API_DEFINITION", - "description": " Lists table data profiles for an organization.", - "canonical": true, - "file": "dlp_service.list_table_data_profiles.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 117, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTableDataProfiles", - "fullName": "google.privacy.dlp.v2.DlpService.ListTableDataProfiles", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.privacy.dlp.v2.ListTableDataProfilesResponse", - "client": { - "shortName": "DlpServiceClient", - "fullName": "google.privacy.dlp.v2.DlpServiceClient" - }, - "method": { - "shortName": "ListTableDataProfiles", - "fullName": "google.privacy.dlp.v2.DlpService.ListTableDataProfiles", - "service": { - "shortName": "DlpService", - "fullName": "google.privacy.dlp.v2.DlpService" - } - } - } - }, - { - "regionTag": "dlp_v2_generated_DlpService_ListColumnDataProfiles_async", - "title": "DlpService listColumnDataProfiles Sample", - "origin": "API_DEFINITION", - "description": " Lists column data profiles for an organization.", - "canonical": true, - "file": "dlp_service.list_column_data_profiles.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 118, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListColumnDataProfiles", - "fullName": "google.privacy.dlp.v2.DlpService.ListColumnDataProfiles", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.privacy.dlp.v2.ListColumnDataProfilesResponse", - "client": { - "shortName": "DlpServiceClient", - "fullName": "google.privacy.dlp.v2.DlpServiceClient" - }, - "method": { - "shortName": "ListColumnDataProfiles", - "fullName": "google.privacy.dlp.v2.DlpService.ListColumnDataProfiles", - "service": { - "shortName": "DlpService", - "fullName": "google.privacy.dlp.v2.DlpService" - } - } - } - }, - { - "regionTag": "dlp_v2_generated_DlpService_GetProjectDataProfile_async", - "title": "DlpService getProjectDataProfile Sample", - "origin": "API_DEFINITION", - "description": " Gets a project data profile.", - "canonical": true, - "file": "dlp_service.get_project_data_profile.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetProjectDataProfile", - "fullName": "google.privacy.dlp.v2.DlpService.GetProjectDataProfile", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.privacy.dlp.v2.ProjectDataProfile", - "client": { - "shortName": "DlpServiceClient", - "fullName": "google.privacy.dlp.v2.DlpServiceClient" - }, - "method": { - "shortName": "GetProjectDataProfile", - "fullName": "google.privacy.dlp.v2.DlpService.GetProjectDataProfile", - "service": { - "shortName": "DlpService", - "fullName": "google.privacy.dlp.v2.DlpService" - } - } - } - }, - { - "regionTag": "dlp_v2_generated_DlpService_ListFileStoreDataProfiles_async", - "title": "DlpService listFileStoreDataProfiles Sample", - "origin": "API_DEFINITION", - "description": " Lists file store data profiles for an organization.", - "canonical": true, - "file": "dlp_service.list_file_store_data_profiles.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 121, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFileStoreDataProfiles", - "fullName": "google.privacy.dlp.v2.DlpService.ListFileStoreDataProfiles", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "order_by", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.privacy.dlp.v2.ListFileStoreDataProfilesResponse", - "client": { - "shortName": "DlpServiceClient", - "fullName": "google.privacy.dlp.v2.DlpServiceClient" - }, - "method": { - "shortName": "ListFileStoreDataProfiles", - "fullName": "google.privacy.dlp.v2.DlpService.ListFileStoreDataProfiles", - "service": { - "shortName": "DlpService", - "fullName": "google.privacy.dlp.v2.DlpService" - } - } - } - }, - { - "regionTag": "dlp_v2_generated_DlpService_GetFileStoreDataProfile_async", - "title": "DlpService getFileStoreDataProfile Sample", - "origin": "API_DEFINITION", - "description": " Gets a file store data profile.", - "canonical": true, - "file": "dlp_service.get_file_store_data_profile.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFileStoreDataProfile", - "fullName": "google.privacy.dlp.v2.DlpService.GetFileStoreDataProfile", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.privacy.dlp.v2.FileStoreDataProfile", - "client": { - "shortName": "DlpServiceClient", - "fullName": "google.privacy.dlp.v2.DlpServiceClient" - }, - "method": { - "shortName": "GetFileStoreDataProfile", - "fullName": "google.privacy.dlp.v2.DlpService.GetFileStoreDataProfile", - "service": { - "shortName": "DlpService", - "fullName": "google.privacy.dlp.v2.DlpService" - } - } - } - }, - { - "regionTag": "dlp_v2_generated_DlpService_DeleteFileStoreDataProfile_async", - "title": "DlpService deleteFileStoreDataProfile Sample", - "origin": "API_DEFINITION", - "description": " Delete a FileStoreDataProfile. Will not prevent the profile from being regenerated if the resource is still included in a discovery configuration.", - "canonical": true, - "file": "dlp_service.delete_file_store_data_profile.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteFileStoreDataProfile", - "fullName": "google.privacy.dlp.v2.DlpService.DeleteFileStoreDataProfile", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DlpServiceClient", - "fullName": "google.privacy.dlp.v2.DlpServiceClient" - }, - "method": { - "shortName": "DeleteFileStoreDataProfile", - "fullName": "google.privacy.dlp.v2.DlpService.DeleteFileStoreDataProfile", - "service": { - "shortName": "DlpService", - "fullName": "google.privacy.dlp.v2.DlpService" - } - } - } - }, - { - "regionTag": "dlp_v2_generated_DlpService_GetTableDataProfile_async", - "title": "DlpService getTableDataProfile Sample", - "origin": "API_DEFINITION", - "description": " Gets a table data profile.", - "canonical": true, - "file": "dlp_service.get_table_data_profile.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTableDataProfile", - "fullName": "google.privacy.dlp.v2.DlpService.GetTableDataProfile", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.privacy.dlp.v2.TableDataProfile", - "client": { - "shortName": "DlpServiceClient", - "fullName": "google.privacy.dlp.v2.DlpServiceClient" - }, - "method": { - "shortName": "GetTableDataProfile", - "fullName": "google.privacy.dlp.v2.DlpService.GetTableDataProfile", - "service": { - "shortName": "DlpService", - "fullName": "google.privacy.dlp.v2.DlpService" - } - } - } - }, - { - "regionTag": "dlp_v2_generated_DlpService_GetColumnDataProfile_async", - "title": "DlpService getColumnDataProfile Sample", - "origin": "API_DEFINITION", - "description": " Gets a column data profile.", - "canonical": true, - "file": "dlp_service.get_column_data_profile.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetColumnDataProfile", - "fullName": "google.privacy.dlp.v2.DlpService.GetColumnDataProfile", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.privacy.dlp.v2.ColumnDataProfile", - "client": { - "shortName": "DlpServiceClient", - "fullName": "google.privacy.dlp.v2.DlpServiceClient" - }, - "method": { - "shortName": "GetColumnDataProfile", - "fullName": "google.privacy.dlp.v2.DlpService.GetColumnDataProfile", - "service": { - "shortName": "DlpService", - "fullName": "google.privacy.dlp.v2.DlpService" - } - } - } - }, - { - "regionTag": "dlp_v2_generated_DlpService_DeleteTableDataProfile_async", - "title": "DlpService deleteTableDataProfile Sample", - "origin": "API_DEFINITION", - "description": " Delete a TableDataProfile. Will not prevent the profile from being regenerated if the table is still included in a discovery configuration.", - "canonical": true, - "file": "dlp_service.delete_table_data_profile.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTableDataProfile", - "fullName": "google.privacy.dlp.v2.DlpService.DeleteTableDataProfile", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DlpServiceClient", - "fullName": "google.privacy.dlp.v2.DlpServiceClient" - }, - "method": { - "shortName": "DeleteTableDataProfile", - "fullName": "google.privacy.dlp.v2.DlpService.DeleteTableDataProfile", - "service": { - "shortName": "DlpService", - "fullName": "google.privacy.dlp.v2.DlpService" - } - } - } - }, - { - "regionTag": "dlp_v2_generated_DlpService_HybridInspectDlpJob_async", - "title": "DlpService hybridInspectDlpJob Sample", - "origin": "API_DEFINITION", - "description": " Inspect hybrid content and store findings to a job. To review the findings, inspect the job. Inspection will occur asynchronously.", - "canonical": true, - "file": "dlp_service.hybrid_inspect_dlp_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "HybridInspectDlpJob", - "fullName": "google.privacy.dlp.v2.DlpService.HybridInspectDlpJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "hybrid_item", - "type": ".google.privacy.dlp.v2.HybridContentItem" - } - ], - "resultType": ".google.privacy.dlp.v2.HybridInspectResponse", - "client": { - "shortName": "DlpServiceClient", - "fullName": "google.privacy.dlp.v2.DlpServiceClient" - }, - "method": { - "shortName": "HybridInspectDlpJob", - "fullName": "google.privacy.dlp.v2.DlpService.HybridInspectDlpJob", - "service": { - "shortName": "DlpService", - "fullName": "google.privacy.dlp.v2.DlpService" - } - } - } - }, - { - "regionTag": "dlp_v2_generated_DlpService_FinishDlpJob_async", - "title": "DlpService finishDlpJob Sample", - "origin": "API_DEFINITION", - "description": " Finish a running hybrid DlpJob. Triggers the finalization steps and running of any enabled actions that have not yet run.", - "canonical": true, - "file": "dlp_service.finish_dlp_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FinishDlpJob", - "fullName": "google.privacy.dlp.v2.DlpService.FinishDlpJob", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DlpServiceClient", - "fullName": "google.privacy.dlp.v2.DlpServiceClient" - }, - "method": { - "shortName": "FinishDlpJob", - "fullName": "google.privacy.dlp.v2.DlpService.FinishDlpJob", - "service": { - "shortName": "DlpService", - "fullName": "google.privacy.dlp.v2.DlpService" - } - } - } - }, - { - "regionTag": "dlp_v2_generated_DlpService_CreateConnection_async", - "title": "DlpService createConnection Sample", - "origin": "API_DEFINITION", - "description": " Create a Connection to an external data source.", - "canonical": true, - "file": "dlp_service.create_connection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateConnection", - "fullName": "google.privacy.dlp.v2.DlpService.CreateConnection", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "connection", - "type": ".google.privacy.dlp.v2.Connection" - } - ], - "resultType": ".google.privacy.dlp.v2.Connection", - "client": { - "shortName": "DlpServiceClient", - "fullName": "google.privacy.dlp.v2.DlpServiceClient" - }, - "method": { - "shortName": "CreateConnection", - "fullName": "google.privacy.dlp.v2.DlpService.CreateConnection", - "service": { - "shortName": "DlpService", - "fullName": "google.privacy.dlp.v2.DlpService" - } - } - } - }, - { - "regionTag": "dlp_v2_generated_DlpService_GetConnection_async", - "title": "DlpService getConnection Sample", - "origin": "API_DEFINITION", - "description": " Get a Connection by name.", - "canonical": true, - "file": "dlp_service.get_connection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetConnection", - "fullName": "google.privacy.dlp.v2.DlpService.GetConnection", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.privacy.dlp.v2.Connection", - "client": { - "shortName": "DlpServiceClient", - "fullName": "google.privacy.dlp.v2.DlpServiceClient" - }, - "method": { - "shortName": "GetConnection", - "fullName": "google.privacy.dlp.v2.DlpService.GetConnection", - "service": { - "shortName": "DlpService", - "fullName": "google.privacy.dlp.v2.DlpService" - } - } - } - }, - { - "regionTag": "dlp_v2_generated_DlpService_ListConnections_async", - "title": "DlpService listConnections Sample", - "origin": "API_DEFINITION", - "description": " Lists Connections in a parent. Use SearchConnections to see all connections within an organization.", - "canonical": true, - "file": "dlp_service.list_connections.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListConnections", - "fullName": "google.privacy.dlp.v2.DlpService.ListConnections", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.privacy.dlp.v2.ListConnectionsResponse", - "client": { - "shortName": "DlpServiceClient", - "fullName": "google.privacy.dlp.v2.DlpServiceClient" - }, - "method": { - "shortName": "ListConnections", - "fullName": "google.privacy.dlp.v2.DlpService.ListConnections", - "service": { - "shortName": "DlpService", - "fullName": "google.privacy.dlp.v2.DlpService" - } - } - } - }, - { - "regionTag": "dlp_v2_generated_DlpService_SearchConnections_async", - "title": "DlpService searchConnections Sample", - "origin": "API_DEFINITION", - "description": " Searches for Connections in a parent.", - "canonical": true, - "file": "dlp_service.search_connections.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SearchConnections", - "fullName": "google.privacy.dlp.v2.DlpService.SearchConnections", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.privacy.dlp.v2.SearchConnectionsResponse", - "client": { - "shortName": "DlpServiceClient", - "fullName": "google.privacy.dlp.v2.DlpServiceClient" - }, - "method": { - "shortName": "SearchConnections", - "fullName": "google.privacy.dlp.v2.DlpService.SearchConnections", - "service": { - "shortName": "DlpService", - "fullName": "google.privacy.dlp.v2.DlpService" - } - } - } - }, - { - "regionTag": "dlp_v2_generated_DlpService_DeleteConnection_async", - "title": "DlpService deleteConnection Sample", - "origin": "API_DEFINITION", - "description": " Delete a Connection.", - "canonical": true, - "file": "dlp_service.delete_connection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteConnection", - "fullName": "google.privacy.dlp.v2.DlpService.DeleteConnection", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DlpServiceClient", - "fullName": "google.privacy.dlp.v2.DlpServiceClient" - }, - "method": { - "shortName": "DeleteConnection", - "fullName": "google.privacy.dlp.v2.DlpService.DeleteConnection", - "service": { - "shortName": "DlpService", - "fullName": "google.privacy.dlp.v2.DlpService" - } - } - } - }, - { - "regionTag": "dlp_v2_generated_DlpService_UpdateConnection_async", - "title": "DlpService updateConnection Sample", - "origin": "API_DEFINITION", - "description": " Update a Connection.", - "canonical": true, - "file": "dlp_service.update_connection.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateConnection", - "fullName": "google.privacy.dlp.v2.DlpService.UpdateConnection", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "connection", - "type": ".google.privacy.dlp.v2.Connection" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.privacy.dlp.v2.Connection", - "client": { - "shortName": "DlpServiceClient", - "fullName": "google.privacy.dlp.v2.DlpServiceClient" - }, - "method": { - "shortName": "UpdateConnection", - "fullName": "google.privacy.dlp.v2.DlpService.UpdateConnection", - "service": { - "shortName": "DlpService", - "fullName": "google.privacy.dlp.v2.DlpService" - } - } - } - } - ] -} diff --git a/packages/google-shopping-css/samples/generated/v1/snippet_metadata_google.shopping.css.v1.json b/packages/google-shopping-css/samples/generated/v1/snippet_metadata_google.shopping.css.v1.json deleted file mode 100644 index c6d40a5cc8d7..000000000000 --- a/packages/google-shopping-css/samples/generated/v1/snippet_metadata_google.shopping.css.v1.json +++ /dev/null @@ -1,607 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-css", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.shopping.css.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "css_v1_generated_AccountLabelsService_ListAccountLabels_async", - "title": "AccountLabelsService listAccountLabels Sample", - "origin": "API_DEFINITION", - "description": " Lists the labels owned by an account.", - "canonical": true, - "file": "account_labels_service.list_account_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAccountLabels", - "fullName": "google.shopping.css.v1.AccountLabelsService.ListAccountLabels", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.css.v1.ListAccountLabelsResponse", - "client": { - "shortName": "AccountLabelsServiceClient", - "fullName": "google.shopping.css.v1.AccountLabelsServiceClient" - }, - "method": { - "shortName": "ListAccountLabels", - "fullName": "google.shopping.css.v1.AccountLabelsService.ListAccountLabels", - "service": { - "shortName": "AccountLabelsService", - "fullName": "google.shopping.css.v1.AccountLabelsService" - } - } - } - }, - { - "regionTag": "css_v1_generated_AccountLabelsService_CreateAccountLabel_async", - "title": "AccountLabelsService createAccountLabel Sample", - "origin": "API_DEFINITION", - "description": " Creates a new label, not assigned to any account.", - "canonical": true, - "file": "account_labels_service.create_account_label.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAccountLabel", - "fullName": "google.shopping.css.v1.AccountLabelsService.CreateAccountLabel", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "account_label", - "type": ".google.shopping.css.v1.AccountLabel" - } - ], - "resultType": ".google.shopping.css.v1.AccountLabel", - "client": { - "shortName": "AccountLabelsServiceClient", - "fullName": "google.shopping.css.v1.AccountLabelsServiceClient" - }, - "method": { - "shortName": "CreateAccountLabel", - "fullName": "google.shopping.css.v1.AccountLabelsService.CreateAccountLabel", - "service": { - "shortName": "AccountLabelsService", - "fullName": "google.shopping.css.v1.AccountLabelsService" - } - } - } - }, - { - "regionTag": "css_v1_generated_AccountLabelsService_UpdateAccountLabel_async", - "title": "AccountLabelsService updateAccountLabel Sample", - "origin": "API_DEFINITION", - "description": " Updates a label.", - "canonical": true, - "file": "account_labels_service.update_account_label.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAccountLabel", - "fullName": "google.shopping.css.v1.AccountLabelsService.UpdateAccountLabel", - "async": true, - "parameters": [ - { - "name": "account_label", - "type": ".google.shopping.css.v1.AccountLabel" - } - ], - "resultType": ".google.shopping.css.v1.AccountLabel", - "client": { - "shortName": "AccountLabelsServiceClient", - "fullName": "google.shopping.css.v1.AccountLabelsServiceClient" - }, - "method": { - "shortName": "UpdateAccountLabel", - "fullName": "google.shopping.css.v1.AccountLabelsService.UpdateAccountLabel", - "service": { - "shortName": "AccountLabelsService", - "fullName": "google.shopping.css.v1.AccountLabelsService" - } - } - } - }, - { - "regionTag": "css_v1_generated_AccountLabelsService_DeleteAccountLabel_async", - "title": "AccountLabelsService deleteAccountLabel Sample", - "origin": "API_DEFINITION", - "description": " Deletes a label and removes it from all accounts to which it was assigned.", - "canonical": true, - "file": "account_labels_service.delete_account_label.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAccountLabel", - "fullName": "google.shopping.css.v1.AccountLabelsService.DeleteAccountLabel", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AccountLabelsServiceClient", - "fullName": "google.shopping.css.v1.AccountLabelsServiceClient" - }, - "method": { - "shortName": "DeleteAccountLabel", - "fullName": "google.shopping.css.v1.AccountLabelsService.DeleteAccountLabel", - "service": { - "shortName": "AccountLabelsService", - "fullName": "google.shopping.css.v1.AccountLabelsService" - } - } - } - }, - { - "regionTag": "css_v1_generated_AccountsService_ListChildAccounts_async", - "title": "AccountLabelsService listChildAccounts Sample", - "origin": "API_DEFINITION", - "description": " Lists all the accounts under the specified CSS account ID, and optionally filters by label ID and account name.", - "canonical": true, - "file": "accounts_service.list_child_accounts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 79, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListChildAccounts", - "fullName": "google.shopping.css.v1.AccountsService.ListChildAccounts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "label_id", - "type": "TYPE_INT64" - }, - { - "name": "full_name", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.css.v1.ListChildAccountsResponse", - "client": { - "shortName": "AccountsServiceClient", - "fullName": "google.shopping.css.v1.AccountsServiceClient" - }, - "method": { - "shortName": "ListChildAccounts", - "fullName": "google.shopping.css.v1.AccountsService.ListChildAccounts", - "service": { - "shortName": "AccountsService", - "fullName": "google.shopping.css.v1.AccountsService" - } - } - } - }, - { - "regionTag": "css_v1_generated_AccountsService_GetAccount_async", - "title": "AccountLabelsService getAccount Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a single CSS/MC account by ID.", - "canonical": true, - "file": "accounts_service.get_account.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAccount", - "fullName": "google.shopping.css.v1.AccountsService.GetAccount", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.css.v1.Account", - "client": { - "shortName": "AccountsServiceClient", - "fullName": "google.shopping.css.v1.AccountsServiceClient" - }, - "method": { - "shortName": "GetAccount", - "fullName": "google.shopping.css.v1.AccountsService.GetAccount", - "service": { - "shortName": "AccountsService", - "fullName": "google.shopping.css.v1.AccountsService" - } - } - } - }, - { - "regionTag": "css_v1_generated_AccountsService_UpdateLabels_async", - "title": "AccountLabelsService updateLabels Sample", - "origin": "API_DEFINITION", - "description": " Updates labels assigned to CSS/MC accounts by a CSS domain.", - "canonical": true, - "file": "accounts_service.update_labels.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateLabels", - "fullName": "google.shopping.css.v1.AccountsService.UpdateLabels", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "label_ids", - "type": "TYPE_INT64[]" - }, - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.css.v1.Account", - "client": { - "shortName": "AccountsServiceClient", - "fullName": "google.shopping.css.v1.AccountsServiceClient" - }, - "method": { - "shortName": "UpdateLabels", - "fullName": "google.shopping.css.v1.AccountsService.UpdateLabels", - "service": { - "shortName": "AccountsService", - "fullName": "google.shopping.css.v1.AccountsService" - } - } - } - }, - { - "regionTag": "css_v1_generated_CssProductInputsService_InsertCssProductInput_async", - "title": "AccountLabelsService insertCssProductInput Sample", - "origin": "API_DEFINITION", - "description": " Uploads a CssProductInput to your CSS Center account. If an input with the same contentLanguage, identity, feedLabel and feedId already exists, this method replaces that entry. After inserting, updating, or deleting a CSS Product input, it may take several minutes before the processed CSS Product can be retrieved.", - "canonical": true, - "file": "css_product_inputs_service.insert_css_product_input.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "InsertCssProductInput", - "fullName": "google.shopping.css.v1.CssProductInputsService.InsertCssProductInput", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "css_product_input", - "type": ".google.shopping.css.v1.CssProductInput" - }, - { - "name": "feed_id", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.shopping.css.v1.CssProductInput", - "client": { - "shortName": "CssProductInputsServiceClient", - "fullName": "google.shopping.css.v1.CssProductInputsServiceClient" - }, - "method": { - "shortName": "InsertCssProductInput", - "fullName": "google.shopping.css.v1.CssProductInputsService.InsertCssProductInput", - "service": { - "shortName": "CssProductInputsService", - "fullName": "google.shopping.css.v1.CssProductInputsService" - } - } - } - }, - { - "regionTag": "css_v1_generated_CssProductInputsService_UpdateCssProductInput_async", - "title": "AccountLabelsService updateCssProductInput Sample", - "origin": "API_DEFINITION", - "description": " Updates the existing Css Product input in your CSS Center account. After inserting, updating, or deleting a CSS Product input, it may take several minutes before the processed Css Product can be retrieved.", - "canonical": true, - "file": "css_product_inputs_service.update_css_product_input.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCssProductInput", - "fullName": "google.shopping.css.v1.CssProductInputsService.UpdateCssProductInput", - "async": true, - "parameters": [ - { - "name": "css_product_input", - "type": ".google.shopping.css.v1.CssProductInput" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.shopping.css.v1.CssProductInput", - "client": { - "shortName": "CssProductInputsServiceClient", - "fullName": "google.shopping.css.v1.CssProductInputsServiceClient" - }, - "method": { - "shortName": "UpdateCssProductInput", - "fullName": "google.shopping.css.v1.CssProductInputsService.UpdateCssProductInput", - "service": { - "shortName": "CssProductInputsService", - "fullName": "google.shopping.css.v1.CssProductInputsService" - } - } - } - }, - { - "regionTag": "css_v1_generated_CssProductInputsService_DeleteCssProductInput_async", - "title": "AccountLabelsService deleteCssProductInput Sample", - "origin": "API_DEFINITION", - "description": " Deletes a CSS Product input from your CSS Center account. After a delete it may take several minutes until the input is no longer available.", - "canonical": true, - "file": "css_product_inputs_service.delete_css_product_input.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCssProductInput", - "fullName": "google.shopping.css.v1.CssProductInputsService.DeleteCssProductInput", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "supplemental_feed_id", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "CssProductInputsServiceClient", - "fullName": "google.shopping.css.v1.CssProductInputsServiceClient" - }, - "method": { - "shortName": "DeleteCssProductInput", - "fullName": "google.shopping.css.v1.CssProductInputsService.DeleteCssProductInput", - "service": { - "shortName": "CssProductInputsService", - "fullName": "google.shopping.css.v1.CssProductInputsService" - } - } - } - }, - { - "regionTag": "css_v1_generated_CssProductsService_GetCssProduct_async", - "title": "AccountLabelsService getCssProduct Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the processed CSS Product from your CSS Center account. After inserting, updating, or deleting a product input, it may take several minutes before the updated final product can be retrieved.", - "canonical": true, - "file": "css_products_service.get_css_product.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCssProduct", - "fullName": "google.shopping.css.v1.CssProductsService.GetCssProduct", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.css.v1.CssProduct", - "client": { - "shortName": "CssProductsServiceClient", - "fullName": "google.shopping.css.v1.CssProductsServiceClient" - }, - "method": { - "shortName": "GetCssProduct", - "fullName": "google.shopping.css.v1.CssProductsService.GetCssProduct", - "service": { - "shortName": "CssProductsService", - "fullName": "google.shopping.css.v1.CssProductsService" - } - } - } - }, - { - "regionTag": "css_v1_generated_CssProductsService_ListCssProducts_async", - "title": "AccountLabelsService listCssProducts Sample", - "origin": "API_DEFINITION", - "description": " Lists the processed CSS Products in your CSS Center account. The response might contain fewer items than specified by pageSize. Rely on pageToken to determine if there are more items to be requested. After inserting, updating, or deleting a CSS product input, it may take several minutes before the updated processed CSS product can be retrieved.", - "canonical": true, - "file": "css_products_service.list_css_products.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListCssProducts", - "fullName": "google.shopping.css.v1.CssProductsService.ListCssProducts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.css.v1.ListCssProductsResponse", - "client": { - "shortName": "CssProductsServiceClient", - "fullName": "google.shopping.css.v1.CssProductsServiceClient" - }, - "method": { - "shortName": "ListCssProducts", - "fullName": "google.shopping.css.v1.CssProductsService.ListCssProducts", - "service": { - "shortName": "CssProductsService", - "fullName": "google.shopping.css.v1.CssProductsService" - } - } - } - }, - { - "regionTag": "css_v1_generated_QuotaService_ListQuotaGroups_async", - "title": "AccountLabelsService listQuotaGroups Sample", - "origin": "API_DEFINITION", - "description": " Lists the daily call quota and usage per group for your CSS Center account.", - "canonical": true, - "file": "quota_service.list_quota_groups.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListQuotaGroups", - "fullName": "google.shopping.css.v1.QuotaService.ListQuotaGroups", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.css.v1.ListQuotaGroupsResponse", - "client": { - "shortName": "QuotaServiceClient", - "fullName": "google.shopping.css.v1.QuotaServiceClient" - }, - "method": { - "shortName": "ListQuotaGroups", - "fullName": "google.shopping.css.v1.QuotaService.ListQuotaGroups", - "service": { - "shortName": "QuotaService", - "fullName": "google.shopping.css.v1.QuotaService" - } - } - } - } - ] -} diff --git a/packages/google-shopping-merchant-accounts/samples/generated/v1/snippet_metadata_google.shopping.merchant.accounts.v1.json b/packages/google-shopping-merchant-accounts/samples/generated/v1/snippet_metadata_google.shopping.merchant.accounts.v1.json deleted file mode 100644 index dc6314070c00..000000000000 --- a/packages/google-shopping-merchant-accounts/samples/generated/v1/snippet_metadata_google.shopping.merchant.accounts.v1.json +++ /dev/null @@ -1,3302 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-accounts", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.shopping.merchant.accounts.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "merchantapi_v1_generated_AccountIssueService_ListAccountIssues_async", - "title": "AccountIssueService listAccountIssues Sample", - "origin": "API_DEFINITION", - "description": " Lists all account issues of a Merchant Center account. When called on a multi-client account, this method only returns issues belonging to that account, not its sub-accounts. To retrieve issues for sub-accounts, you must first call the [accounts.listSubaccounts][google.shopping.merchant.accounts.v1.AccountsService.ListSubAccounts] method to obtain a list of sub-accounts, and then call `accounts.issues.list` for each sub-account individually.", - "canonical": true, - "file": "account_issue_service.list_account_issues.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAccountIssues", - "fullName": "google.shopping.merchant.accounts.v1.AccountIssueService.ListAccountIssues", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "time_zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.ListAccountIssuesResponse", - "client": { - "shortName": "AccountIssueServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.AccountIssueServiceClient" - }, - "method": { - "shortName": "ListAccountIssues", - "fullName": "google.shopping.merchant.accounts.v1.AccountIssueService.ListAccountIssues", - "service": { - "shortName": "AccountIssueService", - "fullName": "google.shopping.merchant.accounts.v1.AccountIssueService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_AccountRelationshipsService_GetAccountRelationship_async", - "title": "AccountIssueService getAccountRelationship Sample", - "origin": "API_DEFINITION", - "description": " Retrieve an account relationship.", - "canonical": true, - "file": "account_relationships_service.get_account_relationship.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAccountRelationship", - "fullName": "google.shopping.merchant.accounts.v1.AccountRelationshipsService.GetAccountRelationship", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.AccountRelationship", - "client": { - "shortName": "AccountRelationshipsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.AccountRelationshipsServiceClient" - }, - "method": { - "shortName": "GetAccountRelationship", - "fullName": "google.shopping.merchant.accounts.v1.AccountRelationshipsService.GetAccountRelationship", - "service": { - "shortName": "AccountRelationshipsService", - "fullName": "google.shopping.merchant.accounts.v1.AccountRelationshipsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_AccountRelationshipsService_UpdateAccountRelationship_async", - "title": "AccountIssueService updateAccountRelationship Sample", - "origin": "API_DEFINITION", - "description": " Updates the account relationship. Executing this method requires admin access.", - "canonical": true, - "file": "account_relationships_service.update_account_relationship.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAccountRelationship", - "fullName": "google.shopping.merchant.accounts.v1.AccountRelationshipsService.UpdateAccountRelationship", - "async": true, - "parameters": [ - { - "name": "account_relationship", - "type": ".google.shopping.merchant.accounts.v1.AccountRelationship" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.AccountRelationship", - "client": { - "shortName": "AccountRelationshipsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.AccountRelationshipsServiceClient" - }, - "method": { - "shortName": "UpdateAccountRelationship", - "fullName": "google.shopping.merchant.accounts.v1.AccountRelationshipsService.UpdateAccountRelationship", - "service": { - "shortName": "AccountRelationshipsService", - "fullName": "google.shopping.merchant.accounts.v1.AccountRelationshipsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_AccountRelationshipsService_ListAccountRelationships_async", - "title": "AccountIssueService listAccountRelationships Sample", - "origin": "API_DEFINITION", - "description": " List account relationships for the specified account.", - "canonical": true, - "file": "account_relationships_service.list_account_relationships.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAccountRelationships", - "fullName": "google.shopping.merchant.accounts.v1.AccountRelationshipsService.ListAccountRelationships", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.ListAccountRelationshipsResponse", - "client": { - "shortName": "AccountRelationshipsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.AccountRelationshipsServiceClient" - }, - "method": { - "shortName": "ListAccountRelationships", - "fullName": "google.shopping.merchant.accounts.v1.AccountRelationshipsService.ListAccountRelationships", - "service": { - "shortName": "AccountRelationshipsService", - "fullName": "google.shopping.merchant.accounts.v1.AccountRelationshipsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_AccountServicesService_GetAccountService_async", - "title": "AccountIssueService getAccountService Sample", - "origin": "API_DEFINITION", - "description": " Retrieve an account service.", - "canonical": true, - "file": "account_services_service.get_account_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAccountService", - "fullName": "google.shopping.merchant.accounts.v1.AccountServicesService.GetAccountService", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.AccountService", - "client": { - "shortName": "AccountServicesServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.AccountServicesServiceClient" - }, - "method": { - "shortName": "GetAccountService", - "fullName": "google.shopping.merchant.accounts.v1.AccountServicesService.GetAccountService", - "service": { - "shortName": "AccountServicesService", - "fullName": "google.shopping.merchant.accounts.v1.AccountServicesService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_AccountServicesService_ListAccountServices_async", - "title": "AccountIssueService listAccountServices Sample", - "origin": "API_DEFINITION", - "description": " List account services for the specified accounts. Supports filtering.", - "canonical": true, - "file": "account_services_service.list_account_services.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAccountServices", - "fullName": "google.shopping.merchant.accounts.v1.AccountServicesService.ListAccountServices", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.ListAccountServicesResponse", - "client": { - "shortName": "AccountServicesServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.AccountServicesServiceClient" - }, - "method": { - "shortName": "ListAccountServices", - "fullName": "google.shopping.merchant.accounts.v1.AccountServicesService.ListAccountServices", - "service": { - "shortName": "AccountServicesService", - "fullName": "google.shopping.merchant.accounts.v1.AccountServicesService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_AccountServicesService_ProposeAccountService_async", - "title": "AccountIssueService proposeAccountService Sample", - "origin": "API_DEFINITION", - "description": " Propose an account service.", - "canonical": true, - "file": "account_services_service.propose_account_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ProposeAccountService", - "fullName": "google.shopping.merchant.accounts.v1.AccountServicesService.ProposeAccountService", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "provider", - "type": "TYPE_STRING" - }, - { - "name": "account_service", - "type": ".google.shopping.merchant.accounts.v1.AccountService" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.AccountService", - "client": { - "shortName": "AccountServicesServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.AccountServicesServiceClient" - }, - "method": { - "shortName": "ProposeAccountService", - "fullName": "google.shopping.merchant.accounts.v1.AccountServicesService.ProposeAccountService", - "service": { - "shortName": "AccountServicesService", - "fullName": "google.shopping.merchant.accounts.v1.AccountServicesService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_AccountServicesService_ApproveAccountService_async", - "title": "AccountIssueService approveAccountService Sample", - "origin": "API_DEFINITION", - "description": " Approve an account service proposal.", - "canonical": true, - "file": "account_services_service.approve_account_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ApproveAccountService", - "fullName": "google.shopping.merchant.accounts.v1.AccountServicesService.ApproveAccountService", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.AccountService", - "client": { - "shortName": "AccountServicesServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.AccountServicesServiceClient" - }, - "method": { - "shortName": "ApproveAccountService", - "fullName": "google.shopping.merchant.accounts.v1.AccountServicesService.ApproveAccountService", - "service": { - "shortName": "AccountServicesService", - "fullName": "google.shopping.merchant.accounts.v1.AccountServicesService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_AccountServicesService_RejectAccountService_async", - "title": "AccountIssueService rejectAccountService Sample", - "origin": "API_DEFINITION", - "description": " Reject an account service (both proposed and approve services can be rejected).", - "canonical": true, - "file": "account_services_service.reject_account_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RejectAccountService", - "fullName": "google.shopping.merchant.accounts.v1.AccountServicesService.RejectAccountService", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AccountServicesServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.AccountServicesServiceClient" - }, - "method": { - "shortName": "RejectAccountService", - "fullName": "google.shopping.merchant.accounts.v1.AccountServicesService.RejectAccountService", - "service": { - "shortName": "AccountServicesService", - "fullName": "google.shopping.merchant.accounts.v1.AccountServicesService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_AccountsService_GetAccount_async", - "title": "AccountIssueService getAccount Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an account from your Merchant Center account. After inserting, updating, or deleting an account, it may take several minutes before changes take effect.", - "canonical": true, - "file": "accounts_service.get_account.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAccount", - "fullName": "google.shopping.merchant.accounts.v1.AccountsService.GetAccount", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.Account", - "client": { - "shortName": "AccountsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.AccountsServiceClient" - }, - "method": { - "shortName": "GetAccount", - "fullName": "google.shopping.merchant.accounts.v1.AccountsService.GetAccount", - "service": { - "shortName": "AccountsService", - "fullName": "google.shopping.merchant.accounts.v1.AccountsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_AccountsService_CreateAndConfigureAccount_async", - "title": "AccountIssueService createAndConfigureAccount Sample", - "origin": "API_DEFINITION", - "description": " Creates a Merchant Center account with additional configuration. Adds the user that makes the request as an admin for the new account.", - "canonical": true, - "file": "accounts_service.create_and_configure_account.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAndConfigureAccount", - "fullName": "google.shopping.merchant.accounts.v1.AccountsService.CreateAndConfigureAccount", - "async": true, - "parameters": [ - { - "name": "account", - "type": ".google.shopping.merchant.accounts.v1.Account" - }, - { - "name": "user", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "service", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "set_alias", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.Account", - "client": { - "shortName": "AccountsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.AccountsServiceClient" - }, - "method": { - "shortName": "CreateAndConfigureAccount", - "fullName": "google.shopping.merchant.accounts.v1.AccountsService.CreateAndConfigureAccount", - "service": { - "shortName": "AccountsService", - "fullName": "google.shopping.merchant.accounts.v1.AccountsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_AccountsService_CreateTestAccount_async", - "title": "AccountIssueService createTestAccount Sample", - "origin": "API_DEFINITION", - "description": " Creates a Merchant Center test account. Test accounts are intended for development and testing purposes, such as validating API integrations or new feature behavior. Key characteristics and limitations of test accounts: - Immutable Type: A test account cannot be converted into a regular (live) Merchant Center account. Likewise, a regular account cannot be converted into a test account. - Non-Serving Products: Any products, offers, or data created within a test account will not be published or made visible to end-users on any Google surfaces. They are strictly for testing environments. - Separate Environment: Test accounts operate in a sandbox-like manner, isolated from live serving and real user traffic.", - "canonical": true, - "file": "accounts_service.create_test_account.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTestAccount", - "fullName": "google.shopping.merchant.accounts.v1.AccountsService.CreateTestAccount", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "account", - "type": ".google.shopping.merchant.accounts.v1.Account" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.Account", - "client": { - "shortName": "AccountsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.AccountsServiceClient" - }, - "method": { - "shortName": "CreateTestAccount", - "fullName": "google.shopping.merchant.accounts.v1.AccountsService.CreateTestAccount", - "service": { - "shortName": "AccountsService", - "fullName": "google.shopping.merchant.accounts.v1.AccountsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_AccountsService_DeleteAccount_async", - "title": "AccountIssueService deleteAccount Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified account regardless of its type: standalone, advanced account or sub-account. Deleting an advanced account leads to the deletion of all of its sub-accounts. This also deletes the account's [developer registration entity](/merchant/api/reference/rest/accounts_v1/accounts.developerRegistration) and any associated GCP project to the account. Executing this method requires admin access. The deletion succeeds only if the account does not provide services to any other account and has no processed offers. You can use the `force` parameter to override this.", - "canonical": true, - "file": "accounts_service.delete_account.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAccount", - "fullName": "google.shopping.merchant.accounts.v1.AccountsService.DeleteAccount", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AccountsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.AccountsServiceClient" - }, - "method": { - "shortName": "DeleteAccount", - "fullName": "google.shopping.merchant.accounts.v1.AccountsService.DeleteAccount", - "service": { - "shortName": "AccountsService", - "fullName": "google.shopping.merchant.accounts.v1.AccountsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_AccountsService_UpdateAccount_async", - "title": "AccountIssueService updateAccount Sample", - "origin": "API_DEFINITION", - "description": " Updates an account regardless of its type: standalone, advanced account or sub-account. Executing this method requires admin access.", - "canonical": true, - "file": "accounts_service.update_account.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAccount", - "fullName": "google.shopping.merchant.accounts.v1.AccountsService.UpdateAccount", - "async": true, - "parameters": [ - { - "name": "account", - "type": ".google.shopping.merchant.accounts.v1.Account" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.Account", - "client": { - "shortName": "AccountsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.AccountsServiceClient" - }, - "method": { - "shortName": "UpdateAccount", - "fullName": "google.shopping.merchant.accounts.v1.AccountsService.UpdateAccount", - "service": { - "shortName": "AccountsService", - "fullName": "google.shopping.merchant.accounts.v1.AccountsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_AccountsService_ListAccounts_async", - "title": "AccountIssueService listAccounts Sample", - "origin": "API_DEFINITION", - "description": " Note: For the `accounts.list` method, quota and limits usage are charged for each user, and not for the Merchant Center ID or the advanced account ID. To list several sub-accounts, you should use the `accounts.listSubaccounts` method, which is more suitable for advanced accounts use case.", - "canonical": true, - "file": "accounts_service.list_accounts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAccounts", - "fullName": "google.shopping.merchant.accounts.v1.AccountsService.ListAccounts", - "async": true, - "parameters": [ - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.ListAccountsResponse", - "client": { - "shortName": "AccountsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.AccountsServiceClient" - }, - "method": { - "shortName": "ListAccounts", - "fullName": "google.shopping.merchant.accounts.v1.AccountsService.ListAccounts", - "service": { - "shortName": "AccountsService", - "fullName": "google.shopping.merchant.accounts.v1.AccountsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_AccountsService_ListSubAccounts_async", - "title": "AccountIssueService listSubAccounts Sample", - "origin": "API_DEFINITION", - "description": " List all sub-accounts for a given advanced account. This is a convenience wrapper for the more powerful `accounts.list` method. This method will produce the same results as calling `ListsAccounts` with the following filter: `relationship(providerId={parent} AND service(type=\"ACCOUNT_AGGREGATION\"))`", - "canonical": true, - "file": "accounts_service.list_sub_accounts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSubAccounts", - "fullName": "google.shopping.merchant.accounts.v1.AccountsService.ListSubAccounts", - "async": true, - "parameters": [ - { - "name": "provider", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.ListSubAccountsResponse", - "client": { - "shortName": "AccountsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.AccountsServiceClient" - }, - "method": { - "shortName": "ListSubAccounts", - "fullName": "google.shopping.merchant.accounts.v1.AccountsService.ListSubAccounts", - "service": { - "shortName": "AccountsService", - "fullName": "google.shopping.merchant.accounts.v1.AccountsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_AutofeedSettingsService_GetAutofeedSettings_async", - "title": "AccountIssueService getAutofeedSettings Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the autofeed settings of an account.", - "canonical": true, - "file": "autofeed_settings_service.get_autofeed_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAutofeedSettings", - "fullName": "google.shopping.merchant.accounts.v1.AutofeedSettingsService.GetAutofeedSettings", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.AutofeedSettings", - "client": { - "shortName": "AutofeedSettingsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.AutofeedSettingsServiceClient" - }, - "method": { - "shortName": "GetAutofeedSettings", - "fullName": "google.shopping.merchant.accounts.v1.AutofeedSettingsService.GetAutofeedSettings", - "service": { - "shortName": "AutofeedSettingsService", - "fullName": "google.shopping.merchant.accounts.v1.AutofeedSettingsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_AutofeedSettingsService_UpdateAutofeedSettings_async", - "title": "AccountIssueService updateAutofeedSettings Sample", - "origin": "API_DEFINITION", - "description": " Updates the autofeed settings of an account.", - "canonical": true, - "file": "autofeed_settings_service.update_autofeed_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAutofeedSettings", - "fullName": "google.shopping.merchant.accounts.v1.AutofeedSettingsService.UpdateAutofeedSettings", - "async": true, - "parameters": [ - { - "name": "autofeed_settings", - "type": ".google.shopping.merchant.accounts.v1.AutofeedSettings" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.AutofeedSettings", - "client": { - "shortName": "AutofeedSettingsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.AutofeedSettingsServiceClient" - }, - "method": { - "shortName": "UpdateAutofeedSettings", - "fullName": "google.shopping.merchant.accounts.v1.AutofeedSettingsService.UpdateAutofeedSettings", - "service": { - "shortName": "AutofeedSettingsService", - "fullName": "google.shopping.merchant.accounts.v1.AutofeedSettingsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_AutomaticImprovementsService_GetAutomaticImprovements_async", - "title": "AccountIssueService getAutomaticImprovements Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the automatic improvements of an account.", - "canonical": true, - "file": "automatic_improvements_service.get_automatic_improvements.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAutomaticImprovements", - "fullName": "google.shopping.merchant.accounts.v1.AutomaticImprovementsService.GetAutomaticImprovements", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.AutomaticImprovements", - "client": { - "shortName": "AutomaticImprovementsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.AutomaticImprovementsServiceClient" - }, - "method": { - "shortName": "GetAutomaticImprovements", - "fullName": "google.shopping.merchant.accounts.v1.AutomaticImprovementsService.GetAutomaticImprovements", - "service": { - "shortName": "AutomaticImprovementsService", - "fullName": "google.shopping.merchant.accounts.v1.AutomaticImprovementsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_AutomaticImprovementsService_UpdateAutomaticImprovements_async", - "title": "AccountIssueService updateAutomaticImprovements Sample", - "origin": "API_DEFINITION", - "description": " Updates the automatic improvements of an account.", - "canonical": true, - "file": "automatic_improvements_service.update_automatic_improvements.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAutomaticImprovements", - "fullName": "google.shopping.merchant.accounts.v1.AutomaticImprovementsService.UpdateAutomaticImprovements", - "async": true, - "parameters": [ - { - "name": "automatic_improvements", - "type": ".google.shopping.merchant.accounts.v1.AutomaticImprovements" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.AutomaticImprovements", - "client": { - "shortName": "AutomaticImprovementsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.AutomaticImprovementsServiceClient" - }, - "method": { - "shortName": "UpdateAutomaticImprovements", - "fullName": "google.shopping.merchant.accounts.v1.AutomaticImprovementsService.UpdateAutomaticImprovements", - "service": { - "shortName": "AutomaticImprovementsService", - "fullName": "google.shopping.merchant.accounts.v1.AutomaticImprovementsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_BusinessIdentityService_GetBusinessIdentity_async", - "title": "AccountIssueService getBusinessIdentity Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the business identity of an account.", - "canonical": true, - "file": "business_identity_service.get_business_identity.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBusinessIdentity", - "fullName": "google.shopping.merchant.accounts.v1.BusinessIdentityService.GetBusinessIdentity", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.BusinessIdentity", - "client": { - "shortName": "BusinessIdentityServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.BusinessIdentityServiceClient" - }, - "method": { - "shortName": "GetBusinessIdentity", - "fullName": "google.shopping.merchant.accounts.v1.BusinessIdentityService.GetBusinessIdentity", - "service": { - "shortName": "BusinessIdentityService", - "fullName": "google.shopping.merchant.accounts.v1.BusinessIdentityService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_BusinessIdentityService_UpdateBusinessIdentity_async", - "title": "AccountIssueService updateBusinessIdentity Sample", - "origin": "API_DEFINITION", - "description": " Updates the business identity of an account. Executing this method requires admin access.", - "canonical": true, - "file": "business_identity_service.update_business_identity.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateBusinessIdentity", - "fullName": "google.shopping.merchant.accounts.v1.BusinessIdentityService.UpdateBusinessIdentity", - "async": true, - "parameters": [ - { - "name": "business_identity", - "type": ".google.shopping.merchant.accounts.v1.BusinessIdentity" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.BusinessIdentity", - "client": { - "shortName": "BusinessIdentityServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.BusinessIdentityServiceClient" - }, - "method": { - "shortName": "UpdateBusinessIdentity", - "fullName": "google.shopping.merchant.accounts.v1.BusinessIdentityService.UpdateBusinessIdentity", - "service": { - "shortName": "BusinessIdentityService", - "fullName": "google.shopping.merchant.accounts.v1.BusinessIdentityService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_BusinessInfoService_GetBusinessInfo_async", - "title": "AccountIssueService getBusinessInfo Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the business info of an account.", - "canonical": true, - "file": "business_info_service.get_business_info.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBusinessInfo", - "fullName": "google.shopping.merchant.accounts.v1.BusinessInfoService.GetBusinessInfo", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.BusinessInfo", - "client": { - "shortName": "BusinessInfoServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.BusinessInfoServiceClient" - }, - "method": { - "shortName": "GetBusinessInfo", - "fullName": "google.shopping.merchant.accounts.v1.BusinessInfoService.GetBusinessInfo", - "service": { - "shortName": "BusinessInfoService", - "fullName": "google.shopping.merchant.accounts.v1.BusinessInfoService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_BusinessInfoService_UpdateBusinessInfo_async", - "title": "AccountIssueService updateBusinessInfo Sample", - "origin": "API_DEFINITION", - "description": " Updates the business info of an account. Executing this method requires admin access.", - "canonical": true, - "file": "business_info_service.update_business_info.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateBusinessInfo", - "fullName": "google.shopping.merchant.accounts.v1.BusinessInfoService.UpdateBusinessInfo", - "async": true, - "parameters": [ - { - "name": "business_info", - "type": ".google.shopping.merchant.accounts.v1.BusinessInfo" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.BusinessInfo", - "client": { - "shortName": "BusinessInfoServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.BusinessInfoServiceClient" - }, - "method": { - "shortName": "UpdateBusinessInfo", - "fullName": "google.shopping.merchant.accounts.v1.BusinessInfoService.UpdateBusinessInfo", - "service": { - "shortName": "BusinessInfoService", - "fullName": "google.shopping.merchant.accounts.v1.BusinessInfoService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_CheckoutSettingsService_GetCheckoutSettings_async", - "title": "AccountIssueService getCheckoutSettings Sample", - "origin": "API_DEFINITION", - "description": " Gets `CheckoutSettings` for the given merchant. This includes information about review state, enrollment state and URL settings.", - "canonical": true, - "file": "checkout_settings_service.get_checkout_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCheckoutSettings", - "fullName": "google.shopping.merchant.accounts.v1.CheckoutSettingsService.GetCheckoutSettings", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.CheckoutSettings", - "client": { - "shortName": "CheckoutSettingsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.CheckoutSettingsServiceClient" - }, - "method": { - "shortName": "GetCheckoutSettings", - "fullName": "google.shopping.merchant.accounts.v1.CheckoutSettingsService.GetCheckoutSettings", - "service": { - "shortName": "CheckoutSettingsService", - "fullName": "google.shopping.merchant.accounts.v1.CheckoutSettingsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_CheckoutSettingsService_CreateCheckoutSettings_async", - "title": "AccountIssueService createCheckoutSettings Sample", - "origin": "API_DEFINITION", - "description": " Creates `CheckoutSettings` for the given merchant.", - "canonical": true, - "file": "checkout_settings_service.create_checkout_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCheckoutSettings", - "fullName": "google.shopping.merchant.accounts.v1.CheckoutSettingsService.CreateCheckoutSettings", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "checkout_settings", - "type": ".google.shopping.merchant.accounts.v1.CheckoutSettings" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.CheckoutSettings", - "client": { - "shortName": "CheckoutSettingsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.CheckoutSettingsServiceClient" - }, - "method": { - "shortName": "CreateCheckoutSettings", - "fullName": "google.shopping.merchant.accounts.v1.CheckoutSettingsService.CreateCheckoutSettings", - "service": { - "shortName": "CheckoutSettingsService", - "fullName": "google.shopping.merchant.accounts.v1.CheckoutSettingsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_CheckoutSettingsService_UpdateCheckoutSettings_async", - "title": "AccountIssueService updateCheckoutSettings Sample", - "origin": "API_DEFINITION", - "description": " Updates `CheckoutSettings` for the given merchant.", - "canonical": true, - "file": "checkout_settings_service.update_checkout_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCheckoutSettings", - "fullName": "google.shopping.merchant.accounts.v1.CheckoutSettingsService.UpdateCheckoutSettings", - "async": true, - "parameters": [ - { - "name": "checkout_settings", - "type": ".google.shopping.merchant.accounts.v1.CheckoutSettings" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.CheckoutSettings", - "client": { - "shortName": "CheckoutSettingsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.CheckoutSettingsServiceClient" - }, - "method": { - "shortName": "UpdateCheckoutSettings", - "fullName": "google.shopping.merchant.accounts.v1.CheckoutSettingsService.UpdateCheckoutSettings", - "service": { - "shortName": "CheckoutSettingsService", - "fullName": "google.shopping.merchant.accounts.v1.CheckoutSettingsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_CheckoutSettingsService_DeleteCheckoutSettings_async", - "title": "AccountIssueService deleteCheckoutSettings Sample", - "origin": "API_DEFINITION", - "description": " Deletes `CheckoutSettings` and unenrolls merchant from `Checkout` program.", - "canonical": true, - "file": "checkout_settings_service.delete_checkout_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCheckoutSettings", - "fullName": "google.shopping.merchant.accounts.v1.CheckoutSettingsService.DeleteCheckoutSettings", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "CheckoutSettingsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.CheckoutSettingsServiceClient" - }, - "method": { - "shortName": "DeleteCheckoutSettings", - "fullName": "google.shopping.merchant.accounts.v1.CheckoutSettingsService.DeleteCheckoutSettings", - "service": { - "shortName": "CheckoutSettingsService", - "fullName": "google.shopping.merchant.accounts.v1.CheckoutSettingsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_DeveloperRegistrationService_RegisterGcp_async", - "title": "AccountIssueService registerGcp Sample", - "origin": "API_DEFINITION", - "description": " Registers the GCP used for the API call to the shopping account passed in the request. Will create a user with an \"API developer\" and add the \"developer_email\" as a contact with \"API notifications\" email preference on.", - "canonical": true, - "file": "developer_registration_service.register_gcp.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RegisterGcp", - "fullName": "google.shopping.merchant.accounts.v1.DeveloperRegistrationService.RegisterGcp", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "developer_email", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.DeveloperRegistration", - "client": { - "shortName": "DeveloperRegistrationServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.DeveloperRegistrationServiceClient" - }, - "method": { - "shortName": "RegisterGcp", - "fullName": "google.shopping.merchant.accounts.v1.DeveloperRegistrationService.RegisterGcp", - "service": { - "shortName": "DeveloperRegistrationService", - "fullName": "google.shopping.merchant.accounts.v1.DeveloperRegistrationService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_DeveloperRegistrationService_GetDeveloperRegistration_async", - "title": "AccountIssueService getDeveloperRegistration Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a developer registration for a merchant.", - "canonical": true, - "file": "developer_registration_service.get_developer_registration.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDeveloperRegistration", - "fullName": "google.shopping.merchant.accounts.v1.DeveloperRegistrationService.GetDeveloperRegistration", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.DeveloperRegistration", - "client": { - "shortName": "DeveloperRegistrationServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.DeveloperRegistrationServiceClient" - }, - "method": { - "shortName": "GetDeveloperRegistration", - "fullName": "google.shopping.merchant.accounts.v1.DeveloperRegistrationService.GetDeveloperRegistration", - "service": { - "shortName": "DeveloperRegistrationService", - "fullName": "google.shopping.merchant.accounts.v1.DeveloperRegistrationService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_DeveloperRegistrationService_UnregisterGcp_async", - "title": "AccountIssueService unregisterGcp Sample", - "origin": "API_DEFINITION", - "description": " Unregister the calling GCP from the calling shopping account. Note that the GCP will still be able to access the API for at most 1 day from the unregister succussful call.", - "canonical": true, - "file": "developer_registration_service.unregister_gcp.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UnregisterGcp", - "fullName": "google.shopping.merchant.accounts.v1.DeveloperRegistrationService.UnregisterGcp", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DeveloperRegistrationServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.DeveloperRegistrationServiceClient" - }, - "method": { - "shortName": "UnregisterGcp", - "fullName": "google.shopping.merchant.accounts.v1.DeveloperRegistrationService.UnregisterGcp", - "service": { - "shortName": "DeveloperRegistrationService", - "fullName": "google.shopping.merchant.accounts.v1.DeveloperRegistrationService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_DeveloperRegistrationService_GetAccountForGcpRegistration_async", - "title": "AccountIssueService getAccountForGcpRegistration Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the merchant account that the calling GCP is registered with.", - "canonical": true, - "file": "developer_registration_service.get_account_for_gcp_registration.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 48, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAccountForGcpRegistration", - "fullName": "google.shopping.merchant.accounts.v1.DeveloperRegistrationService.GetAccountForGcpRegistration", - "async": true, - "parameters": [], - "resultType": ".google.shopping.merchant.accounts.v1.GetAccountForGcpRegistrationResponse", - "client": { - "shortName": "DeveloperRegistrationServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.DeveloperRegistrationServiceClient" - }, - "method": { - "shortName": "GetAccountForGcpRegistration", - "fullName": "google.shopping.merchant.accounts.v1.DeveloperRegistrationService.GetAccountForGcpRegistration", - "service": { - "shortName": "DeveloperRegistrationService", - "fullName": "google.shopping.merchant.accounts.v1.DeveloperRegistrationService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_EmailPreferencesService_GetEmailPreferences_async", - "title": "AccountIssueService getEmailPreferences Sample", - "origin": "API_DEFINITION", - "description": " Returns the email preferences for a Merchant Center account user. This service only permits retrieving and updating email preferences for the authenticated user. Use the name=accounts/*/users/me/emailPreferences alias to get preferences for the authenticated user.", - "canonical": true, - "file": "email_preferences_service.get_email_preferences.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEmailPreferences", - "fullName": "google.shopping.merchant.accounts.v1.EmailPreferencesService.GetEmailPreferences", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.EmailPreferences", - "client": { - "shortName": "EmailPreferencesServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.EmailPreferencesServiceClient" - }, - "method": { - "shortName": "GetEmailPreferences", - "fullName": "google.shopping.merchant.accounts.v1.EmailPreferencesService.GetEmailPreferences", - "service": { - "shortName": "EmailPreferencesService", - "fullName": "google.shopping.merchant.accounts.v1.EmailPreferencesService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_EmailPreferencesService_UpdateEmailPreferences_async", - "title": "AccountIssueService updateEmailPreferences Sample", - "origin": "API_DEFINITION", - "description": " Updates the email preferences for a Merchant Center account user. Advanced account users should specify the advanced account rather than a sub-account of the advanced account. Preferences which are not explicitly selected in the update mask will not be updated. It is invalid for updates to specify an UNCONFIRMED opt-in status value. Use the name=accounts/*/users/me/emailPreferences alias to update preferences for the authenticated user.", - "canonical": true, - "file": "email_preferences_service.update_email_preferences.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateEmailPreferences", - "fullName": "google.shopping.merchant.accounts.v1.EmailPreferencesService.UpdateEmailPreferences", - "async": true, - "parameters": [ - { - "name": "email_preferences", - "type": ".google.shopping.merchant.accounts.v1.EmailPreferences" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.EmailPreferences", - "client": { - "shortName": "EmailPreferencesServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.EmailPreferencesServiceClient" - }, - "method": { - "shortName": "UpdateEmailPreferences", - "fullName": "google.shopping.merchant.accounts.v1.EmailPreferencesService.UpdateEmailPreferences", - "service": { - "shortName": "EmailPreferencesService", - "fullName": "google.shopping.merchant.accounts.v1.EmailPreferencesService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_GbpAccountsService_ListGbpAccounts_async", - "title": "AccountIssueService listGbpAccounts Sample", - "origin": "API_DEFINITION", - "description": " List the GBP accounts for a given merchant.", - "canonical": true, - "file": "gbp_accounts_service.list_gbp_accounts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListGbpAccounts", - "fullName": "google.shopping.merchant.accounts.v1.GbpAccountsService.ListGbpAccounts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.ListGbpAccountsResponse", - "client": { - "shortName": "GbpAccountsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.GbpAccountsServiceClient" - }, - "method": { - "shortName": "ListGbpAccounts", - "fullName": "google.shopping.merchant.accounts.v1.GbpAccountsService.ListGbpAccounts", - "service": { - "shortName": "GbpAccountsService", - "fullName": "google.shopping.merchant.accounts.v1.GbpAccountsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_GbpAccountsService_LinkGbpAccount_async", - "title": "AccountIssueService linkGbpAccount Sample", - "origin": "API_DEFINITION", - "description": " Link the specified merchant to a GBP account for all countries. To run this method, you must have admin access to the Merchant Center account. If you don't have admin access, the request fails with the error message `User is not an administrator of account {ACCOUNT_ID}`.", - "canonical": true, - "file": "gbp_accounts_service.link_gbp_account.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "LinkGbpAccount", - "fullName": "google.shopping.merchant.accounts.v1.GbpAccountsService.LinkGbpAccount", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "gbp_email", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.LinkGbpAccountResponse", - "client": { - "shortName": "GbpAccountsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.GbpAccountsServiceClient" - }, - "method": { - "shortName": "LinkGbpAccount", - "fullName": "google.shopping.merchant.accounts.v1.GbpAccountsService.LinkGbpAccount", - "service": { - "shortName": "GbpAccountsService", - "fullName": "google.shopping.merchant.accounts.v1.GbpAccountsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_HomepageService_GetHomepage_async", - "title": "AccountIssueService getHomepage Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a store's homepage.", - "canonical": true, - "file": "homepage_service.get_homepage.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetHomepage", - "fullName": "google.shopping.merchant.accounts.v1.HomepageService.GetHomepage", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.Homepage", - "client": { - "shortName": "HomepageServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.HomepageServiceClient" - }, - "method": { - "shortName": "GetHomepage", - "fullName": "google.shopping.merchant.accounts.v1.HomepageService.GetHomepage", - "service": { - "shortName": "HomepageService", - "fullName": "google.shopping.merchant.accounts.v1.HomepageService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_HomepageService_UpdateHomepage_async", - "title": "AccountIssueService updateHomepage Sample", - "origin": "API_DEFINITION", - "description": " Updates a store's homepage. Executing this method requires admin access.", - "canonical": true, - "file": "homepage_service.update_homepage.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateHomepage", - "fullName": "google.shopping.merchant.accounts.v1.HomepageService.UpdateHomepage", - "async": true, - "parameters": [ - { - "name": "homepage", - "type": ".google.shopping.merchant.accounts.v1.Homepage" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.Homepage", - "client": { - "shortName": "HomepageServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.HomepageServiceClient" - }, - "method": { - "shortName": "UpdateHomepage", - "fullName": "google.shopping.merchant.accounts.v1.HomepageService.UpdateHomepage", - "service": { - "shortName": "HomepageService", - "fullName": "google.shopping.merchant.accounts.v1.HomepageService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_HomepageService_ClaimHomepage_async", - "title": "AccountIssueService claimHomepage Sample", - "origin": "API_DEFINITION", - "description": " Claims a store's homepage. Executing this method requires admin access. If the homepage is already claimed, this will recheck the verification (unless the business is exempted from claiming, which also exempts from verification) and return a successful response. If ownership can no longer be verified, it will return an error, but it won't clear the claim. In case of failure, a canonical error message is returned: * PERMISSION_DENIED: User doesn't have the necessary permissions on this Merchant Center account. * FAILED_PRECONDITION: - The account is not a Merchant Center account. - Merchant Center account doesn't have a homepage. - Claiming failed (in this case the error message contains more details).", - "canonical": true, - "file": "homepage_service.claim_homepage.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ClaimHomepage", - "fullName": "google.shopping.merchant.accounts.v1.HomepageService.ClaimHomepage", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "overwrite", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.Homepage", - "client": { - "shortName": "HomepageServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.HomepageServiceClient" - }, - "method": { - "shortName": "ClaimHomepage", - "fullName": "google.shopping.merchant.accounts.v1.HomepageService.ClaimHomepage", - "service": { - "shortName": "HomepageService", - "fullName": "google.shopping.merchant.accounts.v1.HomepageService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_HomepageService_UnclaimHomepage_async", - "title": "AccountIssueService unclaimHomepage Sample", - "origin": "API_DEFINITION", - "description": " Unclaims a store's homepage. Executing this method requires admin access.", - "canonical": true, - "file": "homepage_service.unclaim_homepage.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UnclaimHomepage", - "fullName": "google.shopping.merchant.accounts.v1.HomepageService.UnclaimHomepage", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.Homepage", - "client": { - "shortName": "HomepageServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.HomepageServiceClient" - }, - "method": { - "shortName": "UnclaimHomepage", - "fullName": "google.shopping.merchant.accounts.v1.HomepageService.UnclaimHomepage", - "service": { - "shortName": "HomepageService", - "fullName": "google.shopping.merchant.accounts.v1.HomepageService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_LfpProvidersService_FindLfpProviders_async", - "title": "AccountIssueService findLfpProviders Sample", - "origin": "API_DEFINITION", - "description": " Find the LFP provider candidates in a given country.", - "canonical": true, - "file": "lfp_providers_service.find_lfp_providers.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FindLfpProviders", - "fullName": "google.shopping.merchant.accounts.v1.LfpProvidersService.FindLfpProviders", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.FindLfpProvidersResponse", - "client": { - "shortName": "LfpProvidersServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.LfpProvidersServiceClient" - }, - "method": { - "shortName": "FindLfpProviders", - "fullName": "google.shopping.merchant.accounts.v1.LfpProvidersService.FindLfpProviders", - "service": { - "shortName": "LfpProvidersService", - "fullName": "google.shopping.merchant.accounts.v1.LfpProvidersService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_LfpProvidersService_LinkLfpProvider_async", - "title": "AccountIssueService linkLfpProvider Sample", - "origin": "API_DEFINITION", - "description": " Link the specified merchant to a LFP provider for the specified country.", - "canonical": true, - "file": "lfp_providers_service.link_lfp_provider.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "LinkLfpProvider", - "fullName": "google.shopping.merchant.accounts.v1.LfpProvidersService.LinkLfpProvider", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "external_account_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.LinkLfpProviderResponse", - "client": { - "shortName": "LfpProvidersServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.LfpProvidersServiceClient" - }, - "method": { - "shortName": "LinkLfpProvider", - "fullName": "google.shopping.merchant.accounts.v1.LfpProvidersService.LinkLfpProvider", - "service": { - "shortName": "LfpProvidersService", - "fullName": "google.shopping.merchant.accounts.v1.LfpProvidersService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_OmnichannelSettingsService_GetOmnichannelSetting_async", - "title": "AccountIssueService getOmnichannelSetting Sample", - "origin": "API_DEFINITION", - "description": " Get the omnichannel settings for a given merchant.", - "canonical": true, - "file": "omnichannel_settings_service.get_omnichannel_setting.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetOmnichannelSetting", - "fullName": "google.shopping.merchant.accounts.v1.OmnichannelSettingsService.GetOmnichannelSetting", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.OmnichannelSetting", - "client": { - "shortName": "OmnichannelSettingsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.OmnichannelSettingsServiceClient" - }, - "method": { - "shortName": "GetOmnichannelSetting", - "fullName": "google.shopping.merchant.accounts.v1.OmnichannelSettingsService.GetOmnichannelSetting", - "service": { - "shortName": "OmnichannelSettingsService", - "fullName": "google.shopping.merchant.accounts.v1.OmnichannelSettingsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_OmnichannelSettingsService_ListOmnichannelSettings_async", - "title": "AccountIssueService listOmnichannelSettings Sample", - "origin": "API_DEFINITION", - "description": " List all the omnichannel settings for a given merchant.", - "canonical": true, - "file": "omnichannel_settings_service.list_omnichannel_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListOmnichannelSettings", - "fullName": "google.shopping.merchant.accounts.v1.OmnichannelSettingsService.ListOmnichannelSettings", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.ListOmnichannelSettingsResponse", - "client": { - "shortName": "OmnichannelSettingsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.OmnichannelSettingsServiceClient" - }, - "method": { - "shortName": "ListOmnichannelSettings", - "fullName": "google.shopping.merchant.accounts.v1.OmnichannelSettingsService.ListOmnichannelSettings", - "service": { - "shortName": "OmnichannelSettingsService", - "fullName": "google.shopping.merchant.accounts.v1.OmnichannelSettingsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_OmnichannelSettingsService_CreateOmnichannelSetting_async", - "title": "AccountIssueService createOmnichannelSetting Sample", - "origin": "API_DEFINITION", - "description": " Create the omnichannel settings for a given merchant.", - "canonical": true, - "file": "omnichannel_settings_service.create_omnichannel_setting.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateOmnichannelSetting", - "fullName": "google.shopping.merchant.accounts.v1.OmnichannelSettingsService.CreateOmnichannelSetting", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "omnichannel_setting", - "type": ".google.shopping.merchant.accounts.v1.OmnichannelSetting" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.OmnichannelSetting", - "client": { - "shortName": "OmnichannelSettingsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.OmnichannelSettingsServiceClient" - }, - "method": { - "shortName": "CreateOmnichannelSetting", - "fullName": "google.shopping.merchant.accounts.v1.OmnichannelSettingsService.CreateOmnichannelSetting", - "service": { - "shortName": "OmnichannelSettingsService", - "fullName": "google.shopping.merchant.accounts.v1.OmnichannelSettingsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_OmnichannelSettingsService_UpdateOmnichannelSetting_async", - "title": "AccountIssueService updateOmnichannelSetting Sample", - "origin": "API_DEFINITION", - "description": " Update the omnichannel setting for a given merchant in a given country.", - "canonical": true, - "file": "omnichannel_settings_service.update_omnichannel_setting.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateOmnichannelSetting", - "fullName": "google.shopping.merchant.accounts.v1.OmnichannelSettingsService.UpdateOmnichannelSetting", - "async": true, - "parameters": [ - { - "name": "omnichannel_setting", - "type": ".google.shopping.merchant.accounts.v1.OmnichannelSetting" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.OmnichannelSetting", - "client": { - "shortName": "OmnichannelSettingsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.OmnichannelSettingsServiceClient" - }, - "method": { - "shortName": "UpdateOmnichannelSetting", - "fullName": "google.shopping.merchant.accounts.v1.OmnichannelSettingsService.UpdateOmnichannelSetting", - "service": { - "shortName": "OmnichannelSettingsService", - "fullName": "google.shopping.merchant.accounts.v1.OmnichannelSettingsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_OmnichannelSettingsService_RequestInventoryVerification_async", - "title": "AccountIssueService requestInventoryVerification Sample", - "origin": "API_DEFINITION", - "description": " Requests inventory verification for a given merchant in a given country.", - "canonical": true, - "file": "omnichannel_settings_service.request_inventory_verification.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RequestInventoryVerification", - "fullName": "google.shopping.merchant.accounts.v1.OmnichannelSettingsService.RequestInventoryVerification", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.RequestInventoryVerificationResponse", - "client": { - "shortName": "OmnichannelSettingsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.OmnichannelSettingsServiceClient" - }, - "method": { - "shortName": "RequestInventoryVerification", - "fullName": "google.shopping.merchant.accounts.v1.OmnichannelSettingsService.RequestInventoryVerification", - "service": { - "shortName": "OmnichannelSettingsService", - "fullName": "google.shopping.merchant.accounts.v1.OmnichannelSettingsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_OnlineReturnPolicyService_GetOnlineReturnPolicy_async", - "title": "AccountIssueService getOnlineReturnPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets an existing return policy for a given business.", - "canonical": true, - "file": "online_return_policy_service.get_online_return_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetOnlineReturnPolicy", - "fullName": "google.shopping.merchant.accounts.v1.OnlineReturnPolicyService.GetOnlineReturnPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.OnlineReturnPolicy", - "client": { - "shortName": "OnlineReturnPolicyServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.OnlineReturnPolicyServiceClient" - }, - "method": { - "shortName": "GetOnlineReturnPolicy", - "fullName": "google.shopping.merchant.accounts.v1.OnlineReturnPolicyService.GetOnlineReturnPolicy", - "service": { - "shortName": "OnlineReturnPolicyService", - "fullName": "google.shopping.merchant.accounts.v1.OnlineReturnPolicyService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_OnlineReturnPolicyService_ListOnlineReturnPolicies_async", - "title": "AccountIssueService listOnlineReturnPolicies Sample", - "origin": "API_DEFINITION", - "description": " Lists all existing return policies for a given business.", - "canonical": true, - "file": "online_return_policy_service.list_online_return_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListOnlineReturnPolicies", - "fullName": "google.shopping.merchant.accounts.v1.OnlineReturnPolicyService.ListOnlineReturnPolicies", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.ListOnlineReturnPoliciesResponse", - "client": { - "shortName": "OnlineReturnPolicyServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.OnlineReturnPolicyServiceClient" - }, - "method": { - "shortName": "ListOnlineReturnPolicies", - "fullName": "google.shopping.merchant.accounts.v1.OnlineReturnPolicyService.ListOnlineReturnPolicies", - "service": { - "shortName": "OnlineReturnPolicyService", - "fullName": "google.shopping.merchant.accounts.v1.OnlineReturnPolicyService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_OnlineReturnPolicyService_CreateOnlineReturnPolicy_async", - "title": "AccountIssueService createOnlineReturnPolicy Sample", - "origin": "API_DEFINITION", - "description": " Creates a new return policy for a given business.", - "canonical": true, - "file": "online_return_policy_service.create_online_return_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateOnlineReturnPolicy", - "fullName": "google.shopping.merchant.accounts.v1.OnlineReturnPolicyService.CreateOnlineReturnPolicy", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "online_return_policy", - "type": ".google.shopping.merchant.accounts.v1.OnlineReturnPolicy" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.OnlineReturnPolicy", - "client": { - "shortName": "OnlineReturnPolicyServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.OnlineReturnPolicyServiceClient" - }, - "method": { - "shortName": "CreateOnlineReturnPolicy", - "fullName": "google.shopping.merchant.accounts.v1.OnlineReturnPolicyService.CreateOnlineReturnPolicy", - "service": { - "shortName": "OnlineReturnPolicyService", - "fullName": "google.shopping.merchant.accounts.v1.OnlineReturnPolicyService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_OnlineReturnPolicyService_DeleteOnlineReturnPolicy_async", - "title": "AccountIssueService deleteOnlineReturnPolicy Sample", - "origin": "API_DEFINITION", - "description": " Deletes an existing return policy.", - "canonical": true, - "file": "online_return_policy_service.delete_online_return_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteOnlineReturnPolicy", - "fullName": "google.shopping.merchant.accounts.v1.OnlineReturnPolicyService.DeleteOnlineReturnPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "OnlineReturnPolicyServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.OnlineReturnPolicyServiceClient" - }, - "method": { - "shortName": "DeleteOnlineReturnPolicy", - "fullName": "google.shopping.merchant.accounts.v1.OnlineReturnPolicyService.DeleteOnlineReturnPolicy", - "service": { - "shortName": "OnlineReturnPolicyService", - "fullName": "google.shopping.merchant.accounts.v1.OnlineReturnPolicyService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_ProgramsService_GetProgram_async", - "title": "AccountIssueService getProgram Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified program for the account.", - "canonical": true, - "file": "programs_service.get_program.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetProgram", - "fullName": "google.shopping.merchant.accounts.v1.ProgramsService.GetProgram", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.Program", - "client": { - "shortName": "ProgramsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.ProgramsServiceClient" - }, - "method": { - "shortName": "GetProgram", - "fullName": "google.shopping.merchant.accounts.v1.ProgramsService.GetProgram", - "service": { - "shortName": "ProgramsService", - "fullName": "google.shopping.merchant.accounts.v1.ProgramsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_ProgramsService_ListPrograms_async", - "title": "AccountIssueService listPrograms Sample", - "origin": "API_DEFINITION", - "description": " Retrieves all programs for the account.", - "canonical": true, - "file": "programs_service.list_programs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPrograms", - "fullName": "google.shopping.merchant.accounts.v1.ProgramsService.ListPrograms", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.ListProgramsResponse", - "client": { - "shortName": "ProgramsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.ProgramsServiceClient" - }, - "method": { - "shortName": "ListPrograms", - "fullName": "google.shopping.merchant.accounts.v1.ProgramsService.ListPrograms", - "service": { - "shortName": "ProgramsService", - "fullName": "google.shopping.merchant.accounts.v1.ProgramsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_ProgramsService_EnableProgram_async", - "title": "AccountIssueService enableProgram Sample", - "origin": "API_DEFINITION", - "description": " Enable participation in the specified program for the account.", - "canonical": true, - "file": "programs_service.enable_program.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "EnableProgram", - "fullName": "google.shopping.merchant.accounts.v1.ProgramsService.EnableProgram", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.Program", - "client": { - "shortName": "ProgramsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.ProgramsServiceClient" - }, - "method": { - "shortName": "EnableProgram", - "fullName": "google.shopping.merchant.accounts.v1.ProgramsService.EnableProgram", - "service": { - "shortName": "ProgramsService", - "fullName": "google.shopping.merchant.accounts.v1.ProgramsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_ProgramsService_DisableProgram_async", - "title": "AccountIssueService disableProgram Sample", - "origin": "API_DEFINITION", - "description": " Disable participation in the specified program for the account.", - "canonical": true, - "file": "programs_service.disable_program.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DisableProgram", - "fullName": "google.shopping.merchant.accounts.v1.ProgramsService.DisableProgram", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.Program", - "client": { - "shortName": "ProgramsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.ProgramsServiceClient" - }, - "method": { - "shortName": "DisableProgram", - "fullName": "google.shopping.merchant.accounts.v1.ProgramsService.DisableProgram", - "service": { - "shortName": "ProgramsService", - "fullName": "google.shopping.merchant.accounts.v1.ProgramsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_RegionsService_GetRegion_async", - "title": "AccountIssueService getRegion Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a region defined in your Merchant Center account.", - "canonical": true, - "file": "regions_service.get_region.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRegion", - "fullName": "google.shopping.merchant.accounts.v1.RegionsService.GetRegion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.Region", - "client": { - "shortName": "RegionsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.RegionsServiceClient" - }, - "method": { - "shortName": "GetRegion", - "fullName": "google.shopping.merchant.accounts.v1.RegionsService.GetRegion", - "service": { - "shortName": "RegionsService", - "fullName": "google.shopping.merchant.accounts.v1.RegionsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_RegionsService_CreateRegion_async", - "title": "AccountIssueService createRegion Sample", - "origin": "API_DEFINITION", - "description": " Creates a region definition in your Merchant Center account. Executing this method requires admin access.", - "canonical": true, - "file": "regions_service.create_region.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateRegion", - "fullName": "google.shopping.merchant.accounts.v1.RegionsService.CreateRegion", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "region_id", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": ".google.shopping.merchant.accounts.v1.Region" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.Region", - "client": { - "shortName": "RegionsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.RegionsServiceClient" - }, - "method": { - "shortName": "CreateRegion", - "fullName": "google.shopping.merchant.accounts.v1.RegionsService.CreateRegion", - "service": { - "shortName": "RegionsService", - "fullName": "google.shopping.merchant.accounts.v1.RegionsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_RegionsService_BatchCreateRegions_async", - "title": "AccountIssueService batchCreateRegions Sample", - "origin": "API_DEFINITION", - "description": " Creates one or more regions in your Merchant Center account. Executing this method requires admin access.", - "canonical": true, - "file": "regions_service.batch_create_regions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCreateRegions", - "fullName": "google.shopping.merchant.accounts.v1.RegionsService.BatchCreateRegions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse", - "client": { - "shortName": "RegionsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.RegionsServiceClient" - }, - "method": { - "shortName": "BatchCreateRegions", - "fullName": "google.shopping.merchant.accounts.v1.RegionsService.BatchCreateRegions", - "service": { - "shortName": "RegionsService", - "fullName": "google.shopping.merchant.accounts.v1.RegionsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_RegionsService_UpdateRegion_async", - "title": "AccountIssueService updateRegion Sample", - "origin": "API_DEFINITION", - "description": " Updates a region definition in your Merchant Center account. Executing this method requires admin access.", - "canonical": true, - "file": "regions_service.update_region.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateRegion", - "fullName": "google.shopping.merchant.accounts.v1.RegionsService.UpdateRegion", - "async": true, - "parameters": [ - { - "name": "region", - "type": ".google.shopping.merchant.accounts.v1.Region" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.Region", - "client": { - "shortName": "RegionsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.RegionsServiceClient" - }, - "method": { - "shortName": "UpdateRegion", - "fullName": "google.shopping.merchant.accounts.v1.RegionsService.UpdateRegion", - "service": { - "shortName": "RegionsService", - "fullName": "google.shopping.merchant.accounts.v1.RegionsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_RegionsService_BatchUpdateRegions_async", - "title": "AccountIssueService batchUpdateRegions Sample", - "origin": "API_DEFINITION", - "description": " Updates one or more regions in your Merchant Center account. Executing this method requires admin access.", - "canonical": true, - "file": "regions_service.batch_update_regions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchUpdateRegions", - "fullName": "google.shopping.merchant.accounts.v1.RegionsService.BatchUpdateRegions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse", - "client": { - "shortName": "RegionsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.RegionsServiceClient" - }, - "method": { - "shortName": "BatchUpdateRegions", - "fullName": "google.shopping.merchant.accounts.v1.RegionsService.BatchUpdateRegions", - "service": { - "shortName": "RegionsService", - "fullName": "google.shopping.merchant.accounts.v1.RegionsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_RegionsService_DeleteRegion_async", - "title": "AccountIssueService deleteRegion Sample", - "origin": "API_DEFINITION", - "description": " Deletes a region definition from your Merchant Center account. Executing this method requires admin access.", - "canonical": true, - "file": "regions_service.delete_region.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteRegion", - "fullName": "google.shopping.merchant.accounts.v1.RegionsService.DeleteRegion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "RegionsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.RegionsServiceClient" - }, - "method": { - "shortName": "DeleteRegion", - "fullName": "google.shopping.merchant.accounts.v1.RegionsService.DeleteRegion", - "service": { - "shortName": "RegionsService", - "fullName": "google.shopping.merchant.accounts.v1.RegionsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_RegionsService_BatchDeleteRegions_async", - "title": "AccountIssueService batchDeleteRegions Sample", - "origin": "API_DEFINITION", - "description": " Deletes multiple regions by name from your Merchant Center account. Executing this method requires admin access.", - "canonical": true, - "file": "regions_service.batch_delete_regions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchDeleteRegions", - "fullName": "google.shopping.merchant.accounts.v1.RegionsService.BatchDeleteRegions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "RegionsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.RegionsServiceClient" - }, - "method": { - "shortName": "BatchDeleteRegions", - "fullName": "google.shopping.merchant.accounts.v1.RegionsService.BatchDeleteRegions", - "service": { - "shortName": "RegionsService", - "fullName": "google.shopping.merchant.accounts.v1.RegionsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_RegionsService_ListRegions_async", - "title": "AccountIssueService listRegions Sample", - "origin": "API_DEFINITION", - "description": " Lists the regions in your Merchant Center account.", - "canonical": true, - "file": "regions_service.list_regions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRegions", - "fullName": "google.shopping.merchant.accounts.v1.RegionsService.ListRegions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.ListRegionsResponse", - "client": { - "shortName": "RegionsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.RegionsServiceClient" - }, - "method": { - "shortName": "ListRegions", - "fullName": "google.shopping.merchant.accounts.v1.RegionsService.ListRegions", - "service": { - "shortName": "RegionsService", - "fullName": "google.shopping.merchant.accounts.v1.RegionsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_ShippingSettingsService_GetShippingSettings_async", - "title": "AccountIssueService getShippingSettings Sample", - "origin": "API_DEFINITION", - "description": " Retrieve shipping setting information.", - "canonical": true, - "file": "shipping_settings_service.get_shipping_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetShippingSettings", - "fullName": "google.shopping.merchant.accounts.v1.ShippingSettingsService.GetShippingSettings", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.ShippingSettings", - "client": { - "shortName": "ShippingSettingsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.ShippingSettingsServiceClient" - }, - "method": { - "shortName": "GetShippingSettings", - "fullName": "google.shopping.merchant.accounts.v1.ShippingSettingsService.GetShippingSettings", - "service": { - "shortName": "ShippingSettingsService", - "fullName": "google.shopping.merchant.accounts.v1.ShippingSettingsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_ShippingSettingsService_InsertShippingSettings_async", - "title": "AccountIssueService insertShippingSettings Sample", - "origin": "API_DEFINITION", - "description": " Replace the shipping setting of a business with the request shipping setting. Executing this method requires admin access.", - "canonical": true, - "file": "shipping_settings_service.insert_shipping_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "InsertShippingSettings", - "fullName": "google.shopping.merchant.accounts.v1.ShippingSettingsService.InsertShippingSettings", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "shipping_setting", - "type": ".google.shopping.merchant.accounts.v1.ShippingSettings" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.ShippingSettings", - "client": { - "shortName": "ShippingSettingsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.ShippingSettingsServiceClient" - }, - "method": { - "shortName": "InsertShippingSettings", - "fullName": "google.shopping.merchant.accounts.v1.ShippingSettingsService.InsertShippingSettings", - "service": { - "shortName": "ShippingSettingsService", - "fullName": "google.shopping.merchant.accounts.v1.ShippingSettingsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_TermsOfServiceAgreementStateService_GetTermsOfServiceAgreementState_async", - "title": "AccountIssueService getTermsOfServiceAgreementState Sample", - "origin": "API_DEFINITION", - "description": " Returns the state of a terms of service agreement.", - "canonical": true, - "file": "terms_of_service_agreement_state_service.get_terms_of_service_agreement_state.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTermsOfServiceAgreementState", - "fullName": "google.shopping.merchant.accounts.v1.TermsOfServiceAgreementStateService.GetTermsOfServiceAgreementState", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.TermsOfServiceAgreementState", - "client": { - "shortName": "TermsOfServiceAgreementStateServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.TermsOfServiceAgreementStateServiceClient" - }, - "method": { - "shortName": "GetTermsOfServiceAgreementState", - "fullName": "google.shopping.merchant.accounts.v1.TermsOfServiceAgreementStateService.GetTermsOfServiceAgreementState", - "service": { - "shortName": "TermsOfServiceAgreementStateService", - "fullName": "google.shopping.merchant.accounts.v1.TermsOfServiceAgreementStateService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_TermsOfServiceAgreementStateService_RetrieveForApplicationTermsOfServiceAgreementState_async", - "title": "AccountIssueService retrieveForApplicationTermsOfServiceAgreementState Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the state of the agreement for the application terms of service. Application terms of service covers permissions related to the usage of data provided through Merchant Center, CSS Center, Manufacturer Center, and more.", - "canonical": true, - "file": "terms_of_service_agreement_state_service.retrieve_for_application_terms_of_service_agreement_state.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RetrieveForApplicationTermsOfServiceAgreementState", - "fullName": "google.shopping.merchant.accounts.v1.TermsOfServiceAgreementStateService.RetrieveForApplicationTermsOfServiceAgreementState", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.TermsOfServiceAgreementState", - "client": { - "shortName": "TermsOfServiceAgreementStateServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.TermsOfServiceAgreementStateServiceClient" - }, - "method": { - "shortName": "RetrieveForApplicationTermsOfServiceAgreementState", - "fullName": "google.shopping.merchant.accounts.v1.TermsOfServiceAgreementStateService.RetrieveForApplicationTermsOfServiceAgreementState", - "service": { - "shortName": "TermsOfServiceAgreementStateService", - "fullName": "google.shopping.merchant.accounts.v1.TermsOfServiceAgreementStateService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_TermsOfServiceService_GetTermsOfService_async", - "title": "AccountIssueService getTermsOfService Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the `TermsOfService` associated with the provided version.", - "canonical": true, - "file": "terms_of_service_service.get_terms_of_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTermsOfService", - "fullName": "google.shopping.merchant.accounts.v1.TermsOfServiceService.GetTermsOfService", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.TermsOfService", - "client": { - "shortName": "TermsOfServiceServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.TermsOfServiceServiceClient" - }, - "method": { - "shortName": "GetTermsOfService", - "fullName": "google.shopping.merchant.accounts.v1.TermsOfServiceService.GetTermsOfService", - "service": { - "shortName": "TermsOfServiceService", - "fullName": "google.shopping.merchant.accounts.v1.TermsOfServiceService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_TermsOfServiceService_RetrieveLatestTermsOfService_async", - "title": "AccountIssueService retrieveLatestTermsOfService Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the latest version of the `TermsOfService` for a given `kind` and `region_code`.", - "canonical": true, - "file": "terms_of_service_service.retrieve_latest_terms_of_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RetrieveLatestTermsOfService", - "fullName": "google.shopping.merchant.accounts.v1.TermsOfServiceService.RetrieveLatestTermsOfService", - "async": true, - "parameters": [ - { - "name": "region_code", - "type": "TYPE_STRING" - }, - { - "name": "kind", - "type": ".google.shopping.merchant.accounts.v1.TermsOfServiceKind" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.TermsOfService", - "client": { - "shortName": "TermsOfServiceServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.TermsOfServiceServiceClient" - }, - "method": { - "shortName": "RetrieveLatestTermsOfService", - "fullName": "google.shopping.merchant.accounts.v1.TermsOfServiceService.RetrieveLatestTermsOfService", - "service": { - "shortName": "TermsOfServiceService", - "fullName": "google.shopping.merchant.accounts.v1.TermsOfServiceService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_TermsOfServiceService_AcceptTermsOfService_async", - "title": "AccountIssueService acceptTermsOfService Sample", - "origin": "API_DEFINITION", - "description": " Accepts a `TermsOfService`. Executing this method requires admin access.", - "canonical": true, - "file": "terms_of_service_service.accept_terms_of_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AcceptTermsOfService", - "fullName": "google.shopping.merchant.accounts.v1.TermsOfServiceService.AcceptTermsOfService", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "account", - "type": "TYPE_STRING" - }, - { - "name": "region_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.AcceptTermsOfServiceResponse", - "client": { - "shortName": "TermsOfServiceServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.TermsOfServiceServiceClient" - }, - "method": { - "shortName": "AcceptTermsOfService", - "fullName": "google.shopping.merchant.accounts.v1.TermsOfServiceService.AcceptTermsOfService", - "service": { - "shortName": "TermsOfServiceService", - "fullName": "google.shopping.merchant.accounts.v1.TermsOfServiceService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_UserService_GetUser_async", - "title": "AccountIssueService getUser Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a Merchant Center account user.", - "canonical": true, - "file": "user_service.get_user.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetUser", - "fullName": "google.shopping.merchant.accounts.v1.UserService.GetUser", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.User", - "client": { - "shortName": "UserServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.UserServiceClient" - }, - "method": { - "shortName": "GetUser", - "fullName": "google.shopping.merchant.accounts.v1.UserService.GetUser", - "service": { - "shortName": "UserService", - "fullName": "google.shopping.merchant.accounts.v1.UserService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_UserService_CreateUser_async", - "title": "AccountIssueService createUser Sample", - "origin": "API_DEFINITION", - "description": " Creates a Merchant Center account user. Executing this method requires admin access.", - "canonical": true, - "file": "user_service.create_user.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateUser", - "fullName": "google.shopping.merchant.accounts.v1.UserService.CreateUser", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "user_id", - "type": "TYPE_STRING" - }, - { - "name": "user", - "type": ".google.shopping.merchant.accounts.v1.User" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.User", - "client": { - "shortName": "UserServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.UserServiceClient" - }, - "method": { - "shortName": "CreateUser", - "fullName": "google.shopping.merchant.accounts.v1.UserService.CreateUser", - "service": { - "shortName": "UserService", - "fullName": "google.shopping.merchant.accounts.v1.UserService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_UserService_DeleteUser_async", - "title": "AccountIssueService deleteUser Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Merchant Center account user. Executing this method requires admin access. The user to be deleted can't be the last admin user of that account.", - "canonical": true, - "file": "user_service.delete_user.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteUser", - "fullName": "google.shopping.merchant.accounts.v1.UserService.DeleteUser", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "UserServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.UserServiceClient" - }, - "method": { - "shortName": "DeleteUser", - "fullName": "google.shopping.merchant.accounts.v1.UserService.DeleteUser", - "service": { - "shortName": "UserService", - "fullName": "google.shopping.merchant.accounts.v1.UserService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_UserService_UpdateUser_async", - "title": "AccountIssueService updateUser Sample", - "origin": "API_DEFINITION", - "description": " Updates a Merchant Center account user. Executing this method requires admin access.", - "canonical": true, - "file": "user_service.update_user.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateUser", - "fullName": "google.shopping.merchant.accounts.v1.UserService.UpdateUser", - "async": true, - "parameters": [ - { - "name": "user", - "type": ".google.shopping.merchant.accounts.v1.User" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.User", - "client": { - "shortName": "UserServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.UserServiceClient" - }, - "method": { - "shortName": "UpdateUser", - "fullName": "google.shopping.merchant.accounts.v1.UserService.UpdateUser", - "service": { - "shortName": "UserService", - "fullName": "google.shopping.merchant.accounts.v1.UserService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_UserService_ListUsers_async", - "title": "AccountIssueService listUsers Sample", - "origin": "API_DEFINITION", - "description": " Lists all users of a Merchant Center account.", - "canonical": true, - "file": "user_service.list_users.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListUsers", - "fullName": "google.shopping.merchant.accounts.v1.UserService.ListUsers", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.ListUsersResponse", - "client": { - "shortName": "UserServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.UserServiceClient" - }, - "method": { - "shortName": "ListUsers", - "fullName": "google.shopping.merchant.accounts.v1.UserService.ListUsers", - "service": { - "shortName": "UserService", - "fullName": "google.shopping.merchant.accounts.v1.UserService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_UserService_VerifySelf_async", - "title": "AccountIssueService verifySelf Sample", - "origin": "API_DEFINITION", - "description": " Updates the user that is represented by the caller from pending to verified.", - "canonical": true, - "file": "user_service.verify_self.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "VerifySelf", - "fullName": "google.shopping.merchant.accounts.v1.UserService.VerifySelf", - "async": true, - "parameters": [ - { - "name": "account", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1.User", - "client": { - "shortName": "UserServiceClient", - "fullName": "google.shopping.merchant.accounts.v1.UserServiceClient" - }, - "method": { - "shortName": "VerifySelf", - "fullName": "google.shopping.merchant.accounts.v1.UserService.VerifySelf", - "service": { - "shortName": "UserService", - "fullName": "google.shopping.merchant.accounts.v1.UserService" - } - } - } - } - ] -} diff --git a/packages/google-shopping-merchant-accounts/samples/generated/v1beta/snippet_metadata_google.shopping.merchant.accounts.v1beta.json b/packages/google-shopping-merchant-accounts/samples/generated/v1beta/snippet_metadata_google.shopping.merchant.accounts.v1beta.json deleted file mode 100644 index f0e123648825..000000000000 --- a/packages/google-shopping-merchant-accounts/samples/generated/v1beta/snippet_metadata_google.shopping.merchant.accounts.v1beta.json +++ /dev/null @@ -1,2751 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-accounts", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.shopping.merchant.accounts.v1beta", - "version": "v1beta" - } - ] - }, - "snippets": [ - { - "regionTag": "merchantapi_v1beta_generated_AccountIssueService_ListAccountIssues_async", - "title": "AccountIssueService listAccountIssues Sample", - "origin": "API_DEFINITION", - "description": " Lists all account issues of a Merchant Center account.", - "canonical": true, - "file": "account_issue_service.list_account_issues.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAccountIssues", - "fullName": "google.shopping.merchant.accounts.v1beta.AccountIssueService.ListAccountIssues", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "time_zone", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1beta.ListAccountIssuesResponse", - "client": { - "shortName": "AccountIssueServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.AccountIssueServiceClient" - }, - "method": { - "shortName": "ListAccountIssues", - "fullName": "google.shopping.merchant.accounts.v1beta.AccountIssueService.ListAccountIssues", - "service": { - "shortName": "AccountIssueService", - "fullName": "google.shopping.merchant.accounts.v1beta.AccountIssueService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_AccountsService_GetAccount_async", - "title": "AccountIssueService getAccount Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an account from your Merchant Center account. After inserting, updating, or deleting an account, it may take several minutes before changes take effect.", - "canonical": true, - "file": "accounts_service.get_account.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAccount", - "fullName": "google.shopping.merchant.accounts.v1beta.AccountsService.GetAccount", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1beta.Account", - "client": { - "shortName": "AccountsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.AccountsServiceClient" - }, - "method": { - "shortName": "GetAccount", - "fullName": "google.shopping.merchant.accounts.v1beta.AccountsService.GetAccount", - "service": { - "shortName": "AccountsService", - "fullName": "google.shopping.merchant.accounts.v1beta.AccountsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_AccountsService_CreateAndConfigureAccount_async", - "title": "AccountIssueService createAndConfigureAccount Sample", - "origin": "API_DEFINITION", - "description": " Creates a standalone Merchant Center account with additional configuration. Adds the user that makes the request as an admin for the new account.", - "canonical": true, - "file": "accounts_service.create_and_configure_account.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAndConfigureAccount", - "fullName": "google.shopping.merchant.accounts.v1beta.AccountsService.CreateAndConfigureAccount", - "async": true, - "parameters": [ - { - "name": "account", - "type": ".google.shopping.merchant.accounts.v1beta.Account" - }, - { - "name": "users", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "accept_terms_of_service", - "type": ".google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AcceptTermsOfService" - }, - { - "name": "service", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1beta.Account", - "client": { - "shortName": "AccountsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.AccountsServiceClient" - }, - "method": { - "shortName": "CreateAndConfigureAccount", - "fullName": "google.shopping.merchant.accounts.v1beta.AccountsService.CreateAndConfigureAccount", - "service": { - "shortName": "AccountsService", - "fullName": "google.shopping.merchant.accounts.v1beta.AccountsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_AccountsService_DeleteAccount_async", - "title": "AccountIssueService deleteAccount Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified account regardless of its type: standalone, MCA or sub-account. Deleting an MCA leads to the deletion of all of its sub-accounts. Executing this method requires admin access. The deletion succeeds only if the account does not provide services to any other account and has no processed offers. You can use the `force` parameter to override this.", - "canonical": true, - "file": "accounts_service.delete_account.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAccount", - "fullName": "google.shopping.merchant.accounts.v1beta.AccountsService.DeleteAccount", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "force", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "AccountsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.AccountsServiceClient" - }, - "method": { - "shortName": "DeleteAccount", - "fullName": "google.shopping.merchant.accounts.v1beta.AccountsService.DeleteAccount", - "service": { - "shortName": "AccountsService", - "fullName": "google.shopping.merchant.accounts.v1beta.AccountsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_AccountsService_UpdateAccount_async", - "title": "AccountIssueService updateAccount Sample", - "origin": "API_DEFINITION", - "description": " Updates an account regardless of its type: standalone, MCA or sub-account. Executing this method requires admin access.", - "canonical": true, - "file": "accounts_service.update_account.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAccount", - "fullName": "google.shopping.merchant.accounts.v1beta.AccountsService.UpdateAccount", - "async": true, - "parameters": [ - { - "name": "account", - "type": ".google.shopping.merchant.accounts.v1beta.Account" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1beta.Account", - "client": { - "shortName": "AccountsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.AccountsServiceClient" - }, - "method": { - "shortName": "UpdateAccount", - "fullName": "google.shopping.merchant.accounts.v1beta.AccountsService.UpdateAccount", - "service": { - "shortName": "AccountsService", - "fullName": "google.shopping.merchant.accounts.v1beta.AccountsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_AccountsService_ListAccounts_async", - "title": "AccountIssueService listAccounts Sample", - "origin": "API_DEFINITION", - "description": " Lists accounts accessible to the calling user and matching the constraints of the request such as page size or filters. This is not just listing the sub-accounts of an MCA, but all accounts the calling user has access to including other MCAs, linked accounts, standalone accounts and so on. If no filter is provided, then it returns accounts the user is directly added to.", - "canonical": true, - "file": "accounts_service.list_accounts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAccounts", - "fullName": "google.shopping.merchant.accounts.v1beta.AccountsService.ListAccounts", - "async": true, - "parameters": [ - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1beta.ListAccountsResponse", - "client": { - "shortName": "AccountsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.AccountsServiceClient" - }, - "method": { - "shortName": "ListAccounts", - "fullName": "google.shopping.merchant.accounts.v1beta.AccountsService.ListAccounts", - "service": { - "shortName": "AccountsService", - "fullName": "google.shopping.merchant.accounts.v1beta.AccountsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_AccountsService_ListSubAccounts_async", - "title": "AccountIssueService listSubAccounts Sample", - "origin": "API_DEFINITION", - "description": " List all sub-accounts for a given multi client account. This is a convenience wrapper for the more powerful `ListAccounts` method. This method will produce the same results as calling `ListsAccounts` with the following filter: `relationship(providerId={parent} AND service(type=\"ACCOUNT_AGGREGATION\"))`", - "canonical": true, - "file": "accounts_service.list_sub_accounts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListSubAccounts", - "fullName": "google.shopping.merchant.accounts.v1beta.AccountsService.ListSubAccounts", - "async": true, - "parameters": [ - { - "name": "provider", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1beta.ListSubAccountsResponse", - "client": { - "shortName": "AccountsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.AccountsServiceClient" - }, - "method": { - "shortName": "ListSubAccounts", - "fullName": "google.shopping.merchant.accounts.v1beta.AccountsService.ListSubAccounts", - "service": { - "shortName": "AccountsService", - "fullName": "google.shopping.merchant.accounts.v1beta.AccountsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_AccountTaxService_GetAccountTax_async", - "title": "AccountIssueService getAccountTax Sample", - "origin": "API_DEFINITION", - "description": " Returns the tax rules that match the conditions of GetAccountTaxRequest", - "canonical": true, - "file": "account_tax_service.get_account_tax.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAccountTax", - "fullName": "google.shopping.merchant.accounts.v1beta.AccountTaxService.GetAccountTax", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1beta.AccountTax", - "client": { - "shortName": "AccountTaxServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.AccountTaxServiceClient" - }, - "method": { - "shortName": "GetAccountTax", - "fullName": "google.shopping.merchant.accounts.v1beta.AccountTaxService.GetAccountTax", - "service": { - "shortName": "AccountTaxService", - "fullName": "google.shopping.merchant.accounts.v1beta.AccountTaxService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_AccountTaxService_ListAccountTax_async", - "title": "AccountIssueService listAccountTax Sample", - "origin": "API_DEFINITION", - "description": " Lists the tax settings of the sub-accounts only in your Merchant Center account. This method can only be called on a multi-client account, otherwise it'll return an error.", - "canonical": true, - "file": "account_tax_service.list_account_tax.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAccountTax", - "fullName": "google.shopping.merchant.accounts.v1beta.AccountTaxService.ListAccountTax", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1beta.ListAccountTaxResponse", - "client": { - "shortName": "AccountTaxServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.AccountTaxServiceClient" - }, - "method": { - "shortName": "ListAccountTax", - "fullName": "google.shopping.merchant.accounts.v1beta.AccountTaxService.ListAccountTax", - "service": { - "shortName": "AccountTaxService", - "fullName": "google.shopping.merchant.accounts.v1beta.AccountTaxService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_AccountTaxService_UpdateAccountTax_async", - "title": "AccountIssueService updateAccountTax Sample", - "origin": "API_DEFINITION", - "description": " Updates the tax settings of the account.", - "canonical": true, - "file": "account_tax_service.update_account_tax.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAccountTax", - "fullName": "google.shopping.merchant.accounts.v1beta.AccountTaxService.UpdateAccountTax", - "async": true, - "parameters": [ - { - "name": "account_tax", - "type": ".google.shopping.merchant.accounts.v1beta.AccountTax" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1beta.AccountTax", - "client": { - "shortName": "AccountTaxServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.AccountTaxServiceClient" - }, - "method": { - "shortName": "UpdateAccountTax", - "fullName": "google.shopping.merchant.accounts.v1beta.AccountTaxService.UpdateAccountTax", - "service": { - "shortName": "AccountTaxService", - "fullName": "google.shopping.merchant.accounts.v1beta.AccountTaxService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_AutofeedSettingsService_GetAutofeedSettings_async", - "title": "AccountIssueService getAutofeedSettings Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the autofeed settings of an account.", - "canonical": true, - "file": "autofeed_settings_service.get_autofeed_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAutofeedSettings", - "fullName": "google.shopping.merchant.accounts.v1beta.AutofeedSettingsService.GetAutofeedSettings", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1beta.AutofeedSettings", - "client": { - "shortName": "AutofeedSettingsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.AutofeedSettingsServiceClient" - }, - "method": { - "shortName": "GetAutofeedSettings", - "fullName": "google.shopping.merchant.accounts.v1beta.AutofeedSettingsService.GetAutofeedSettings", - "service": { - "shortName": "AutofeedSettingsService", - "fullName": "google.shopping.merchant.accounts.v1beta.AutofeedSettingsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_AutofeedSettingsService_UpdateAutofeedSettings_async", - "title": "AccountIssueService updateAutofeedSettings Sample", - "origin": "API_DEFINITION", - "description": " Updates the autofeed settings of an account.", - "canonical": true, - "file": "autofeed_settings_service.update_autofeed_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAutofeedSettings", - "fullName": "google.shopping.merchant.accounts.v1beta.AutofeedSettingsService.UpdateAutofeedSettings", - "async": true, - "parameters": [ - { - "name": "autofeed_settings", - "type": ".google.shopping.merchant.accounts.v1beta.AutofeedSettings" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1beta.AutofeedSettings", - "client": { - "shortName": "AutofeedSettingsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.AutofeedSettingsServiceClient" - }, - "method": { - "shortName": "UpdateAutofeedSettings", - "fullName": "google.shopping.merchant.accounts.v1beta.AutofeedSettingsService.UpdateAutofeedSettings", - "service": { - "shortName": "AutofeedSettingsService", - "fullName": "google.shopping.merchant.accounts.v1beta.AutofeedSettingsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_AutomaticImprovementsService_GetAutomaticImprovements_async", - "title": "AccountIssueService getAutomaticImprovements Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the automatic improvements of an account.", - "canonical": true, - "file": "automatic_improvements_service.get_automatic_improvements.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAutomaticImprovements", - "fullName": "google.shopping.merchant.accounts.v1beta.AutomaticImprovementsService.GetAutomaticImprovements", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1beta.AutomaticImprovements", - "client": { - "shortName": "AutomaticImprovementsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.AutomaticImprovementsServiceClient" - }, - "method": { - "shortName": "GetAutomaticImprovements", - "fullName": "google.shopping.merchant.accounts.v1beta.AutomaticImprovementsService.GetAutomaticImprovements", - "service": { - "shortName": "AutomaticImprovementsService", - "fullName": "google.shopping.merchant.accounts.v1beta.AutomaticImprovementsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_AutomaticImprovementsService_UpdateAutomaticImprovements_async", - "title": "AccountIssueService updateAutomaticImprovements Sample", - "origin": "API_DEFINITION", - "description": " Updates the automatic improvements of an account.", - "canonical": true, - "file": "automatic_improvements_service.update_automatic_improvements.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAutomaticImprovements", - "fullName": "google.shopping.merchant.accounts.v1beta.AutomaticImprovementsService.UpdateAutomaticImprovements", - "async": true, - "parameters": [ - { - "name": "automatic_improvements", - "type": ".google.shopping.merchant.accounts.v1beta.AutomaticImprovements" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1beta.AutomaticImprovements", - "client": { - "shortName": "AutomaticImprovementsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.AutomaticImprovementsServiceClient" - }, - "method": { - "shortName": "UpdateAutomaticImprovements", - "fullName": "google.shopping.merchant.accounts.v1beta.AutomaticImprovementsService.UpdateAutomaticImprovements", - "service": { - "shortName": "AutomaticImprovementsService", - "fullName": "google.shopping.merchant.accounts.v1beta.AutomaticImprovementsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_BusinessIdentityService_GetBusinessIdentity_async", - "title": "AccountIssueService getBusinessIdentity Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the business identity of an account.", - "canonical": true, - "file": "business_identity_service.get_business_identity.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBusinessIdentity", - "fullName": "google.shopping.merchant.accounts.v1beta.BusinessIdentityService.GetBusinessIdentity", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1beta.BusinessIdentity", - "client": { - "shortName": "BusinessIdentityServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.BusinessIdentityServiceClient" - }, - "method": { - "shortName": "GetBusinessIdentity", - "fullName": "google.shopping.merchant.accounts.v1beta.BusinessIdentityService.GetBusinessIdentity", - "service": { - "shortName": "BusinessIdentityService", - "fullName": "google.shopping.merchant.accounts.v1beta.BusinessIdentityService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_BusinessIdentityService_UpdateBusinessIdentity_async", - "title": "AccountIssueService updateBusinessIdentity Sample", - "origin": "API_DEFINITION", - "description": " Updates the business identity of an account. Executing this method requires admin access.", - "canonical": true, - "file": "business_identity_service.update_business_identity.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateBusinessIdentity", - "fullName": "google.shopping.merchant.accounts.v1beta.BusinessIdentityService.UpdateBusinessIdentity", - "async": true, - "parameters": [ - { - "name": "business_identity", - "type": ".google.shopping.merchant.accounts.v1beta.BusinessIdentity" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1beta.BusinessIdentity", - "client": { - "shortName": "BusinessIdentityServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.BusinessIdentityServiceClient" - }, - "method": { - "shortName": "UpdateBusinessIdentity", - "fullName": "google.shopping.merchant.accounts.v1beta.BusinessIdentityService.UpdateBusinessIdentity", - "service": { - "shortName": "BusinessIdentityService", - "fullName": "google.shopping.merchant.accounts.v1beta.BusinessIdentityService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_BusinessInfoService_GetBusinessInfo_async", - "title": "AccountIssueService getBusinessInfo Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the business info of an account.", - "canonical": true, - "file": "business_info_service.get_business_info.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBusinessInfo", - "fullName": "google.shopping.merchant.accounts.v1beta.BusinessInfoService.GetBusinessInfo", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1beta.BusinessInfo", - "client": { - "shortName": "BusinessInfoServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.BusinessInfoServiceClient" - }, - "method": { - "shortName": "GetBusinessInfo", - "fullName": "google.shopping.merchant.accounts.v1beta.BusinessInfoService.GetBusinessInfo", - "service": { - "shortName": "BusinessInfoService", - "fullName": "google.shopping.merchant.accounts.v1beta.BusinessInfoService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_BusinessInfoService_UpdateBusinessInfo_async", - "title": "AccountIssueService updateBusinessInfo Sample", - "origin": "API_DEFINITION", - "description": " Updates the business info of an account. Executing this method requires admin access.", - "canonical": true, - "file": "business_info_service.update_business_info.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateBusinessInfo", - "fullName": "google.shopping.merchant.accounts.v1beta.BusinessInfoService.UpdateBusinessInfo", - "async": true, - "parameters": [ - { - "name": "business_info", - "type": ".google.shopping.merchant.accounts.v1beta.BusinessInfo" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1beta.BusinessInfo", - "client": { - "shortName": "BusinessInfoServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.BusinessInfoServiceClient" - }, - "method": { - "shortName": "UpdateBusinessInfo", - "fullName": "google.shopping.merchant.accounts.v1beta.BusinessInfoService.UpdateBusinessInfo", - "service": { - "shortName": "BusinessInfoService", - "fullName": "google.shopping.merchant.accounts.v1beta.BusinessInfoService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_CheckoutSettingsService_GetCheckoutSettings_async", - "title": "AccountIssueService getCheckoutSettings Sample", - "origin": "API_DEFINITION", - "description": " Gets `CheckoutSettings` for the given merchant. This includes information about review state, enrollment state and URL settings.", - "canonical": true, - "file": "checkout_settings_service.get_checkout_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCheckoutSettings", - "fullName": "google.shopping.merchant.accounts.v1beta.CheckoutSettingsService.GetCheckoutSettings", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1beta.CheckoutSettings", - "client": { - "shortName": "CheckoutSettingsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.CheckoutSettingsServiceClient" - }, - "method": { - "shortName": "GetCheckoutSettings", - "fullName": "google.shopping.merchant.accounts.v1beta.CheckoutSettingsService.GetCheckoutSettings", - "service": { - "shortName": "CheckoutSettingsService", - "fullName": "google.shopping.merchant.accounts.v1beta.CheckoutSettingsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_CheckoutSettingsService_CreateCheckoutSettings_async", - "title": "AccountIssueService createCheckoutSettings Sample", - "origin": "API_DEFINITION", - "description": " Creates `CheckoutSettings` for the given merchant.", - "canonical": true, - "file": "checkout_settings_service.create_checkout_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCheckoutSettings", - "fullName": "google.shopping.merchant.accounts.v1beta.CheckoutSettingsService.CreateCheckoutSettings", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "checkout_settings", - "type": ".google.shopping.merchant.accounts.v1beta.CheckoutSettings" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1beta.CheckoutSettings", - "client": { - "shortName": "CheckoutSettingsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.CheckoutSettingsServiceClient" - }, - "method": { - "shortName": "CreateCheckoutSettings", - "fullName": "google.shopping.merchant.accounts.v1beta.CheckoutSettingsService.CreateCheckoutSettings", - "service": { - "shortName": "CheckoutSettingsService", - "fullName": "google.shopping.merchant.accounts.v1beta.CheckoutSettingsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_CheckoutSettingsService_UpdateCheckoutSettings_async", - "title": "AccountIssueService updateCheckoutSettings Sample", - "origin": "API_DEFINITION", - "description": " Updates `CheckoutSettings` for the given merchant.", - "canonical": true, - "file": "checkout_settings_service.update_checkout_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCheckoutSettings", - "fullName": "google.shopping.merchant.accounts.v1beta.CheckoutSettingsService.UpdateCheckoutSettings", - "async": true, - "parameters": [ - { - "name": "checkout_settings", - "type": ".google.shopping.merchant.accounts.v1beta.CheckoutSettings" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1beta.CheckoutSettings", - "client": { - "shortName": "CheckoutSettingsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.CheckoutSettingsServiceClient" - }, - "method": { - "shortName": "UpdateCheckoutSettings", - "fullName": "google.shopping.merchant.accounts.v1beta.CheckoutSettingsService.UpdateCheckoutSettings", - "service": { - "shortName": "CheckoutSettingsService", - "fullName": "google.shopping.merchant.accounts.v1beta.CheckoutSettingsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_CheckoutSettingsService_DeleteCheckoutSettings_async", - "title": "AccountIssueService deleteCheckoutSettings Sample", - "origin": "API_DEFINITION", - "description": " Deletes `CheckoutSettings` and unenrolls merchant from `Checkout` program.", - "canonical": true, - "file": "checkout_settings_service.delete_checkout_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCheckoutSettings", - "fullName": "google.shopping.merchant.accounts.v1beta.CheckoutSettingsService.DeleteCheckoutSettings", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "CheckoutSettingsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.CheckoutSettingsServiceClient" - }, - "method": { - "shortName": "DeleteCheckoutSettings", - "fullName": "google.shopping.merchant.accounts.v1beta.CheckoutSettingsService.DeleteCheckoutSettings", - "service": { - "shortName": "CheckoutSettingsService", - "fullName": "google.shopping.merchant.accounts.v1beta.CheckoutSettingsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_EmailPreferencesService_GetEmailPreferences_async", - "title": "AccountIssueService getEmailPreferences Sample", - "origin": "API_DEFINITION", - "description": " Returns the email preferences for a Merchant Center account user. Use the name=accounts/*/users/me/emailPreferences alias to get preferences for the authenticated user.", - "canonical": true, - "file": "email_preferences_service.get_email_preferences.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetEmailPreferences", - "fullName": "google.shopping.merchant.accounts.v1beta.EmailPreferencesService.GetEmailPreferences", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1beta.EmailPreferences", - "client": { - "shortName": "EmailPreferencesServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.EmailPreferencesServiceClient" - }, - "method": { - "shortName": "GetEmailPreferences", - "fullName": "google.shopping.merchant.accounts.v1beta.EmailPreferencesService.GetEmailPreferences", - "service": { - "shortName": "EmailPreferencesService", - "fullName": "google.shopping.merchant.accounts.v1beta.EmailPreferencesService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_EmailPreferencesService_UpdateEmailPreferences_async", - "title": "AccountIssueService updateEmailPreferences Sample", - "origin": "API_DEFINITION", - "description": " Updates the email preferences for a Merchant Center account user. MCA users should specify the MCA account rather than a sub-account of the MCA. Preferences which are not explicitly selected in the update mask will not be updated. It is invalid for updates to specify an UNCONFIRMED opt-in status value. Use the name=accounts/*/users/me/emailPreferences alias to update preferences for the authenticated user.", - "canonical": true, - "file": "email_preferences_service.update_email_preferences.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateEmailPreferences", - "fullName": "google.shopping.merchant.accounts.v1beta.EmailPreferencesService.UpdateEmailPreferences", - "async": true, - "parameters": [ - { - "name": "email_preferences", - "type": ".google.shopping.merchant.accounts.v1beta.EmailPreferences" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1beta.EmailPreferences", - "client": { - "shortName": "EmailPreferencesServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.EmailPreferencesServiceClient" - }, - "method": { - "shortName": "UpdateEmailPreferences", - "fullName": "google.shopping.merchant.accounts.v1beta.EmailPreferencesService.UpdateEmailPreferences", - "service": { - "shortName": "EmailPreferencesService", - "fullName": "google.shopping.merchant.accounts.v1beta.EmailPreferencesService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_GbpAccountsService_ListGbpAccounts_async", - "title": "AccountIssueService listGbpAccounts Sample", - "origin": "API_DEFINITION", - "description": " List the GBP accounts for a given merchant.", - "canonical": true, - "file": "gbp_accounts_service.list_gbp_accounts.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListGbpAccounts", - "fullName": "google.shopping.merchant.accounts.v1beta.GbpAccountsService.ListGbpAccounts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1beta.ListGbpAccountsResponse", - "client": { - "shortName": "GbpAccountsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.GbpAccountsServiceClient" - }, - "method": { - "shortName": "ListGbpAccounts", - "fullName": "google.shopping.merchant.accounts.v1beta.GbpAccountsService.ListGbpAccounts", - "service": { - "shortName": "GbpAccountsService", - "fullName": "google.shopping.merchant.accounts.v1beta.GbpAccountsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_GbpAccountsService_LinkGbpAccount_async", - "title": "AccountIssueService linkGbpAccount Sample", - "origin": "API_DEFINITION", - "description": " Link the specified merchant to a GBP account for all countries.", - "canonical": true, - "file": "gbp_accounts_service.link_gbp_account.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "LinkGbpAccount", - "fullName": "google.shopping.merchant.accounts.v1beta.GbpAccountsService.LinkGbpAccount", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "gbp_email", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1beta.LinkGbpAccountResponse", - "client": { - "shortName": "GbpAccountsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.GbpAccountsServiceClient" - }, - "method": { - "shortName": "LinkGbpAccount", - "fullName": "google.shopping.merchant.accounts.v1beta.GbpAccountsService.LinkGbpAccount", - "service": { - "shortName": "GbpAccountsService", - "fullName": "google.shopping.merchant.accounts.v1beta.GbpAccountsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_HomepageService_GetHomepage_async", - "title": "AccountIssueService getHomepage Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a store's homepage.", - "canonical": true, - "file": "homepage_service.get_homepage.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetHomepage", - "fullName": "google.shopping.merchant.accounts.v1beta.HomepageService.GetHomepage", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1beta.Homepage", - "client": { - "shortName": "HomepageServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.HomepageServiceClient" - }, - "method": { - "shortName": "GetHomepage", - "fullName": "google.shopping.merchant.accounts.v1beta.HomepageService.GetHomepage", - "service": { - "shortName": "HomepageService", - "fullName": "google.shopping.merchant.accounts.v1beta.HomepageService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_HomepageService_UpdateHomepage_async", - "title": "AccountIssueService updateHomepage Sample", - "origin": "API_DEFINITION", - "description": " Updates a store's homepage. Executing this method requires admin access.", - "canonical": true, - "file": "homepage_service.update_homepage.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateHomepage", - "fullName": "google.shopping.merchant.accounts.v1beta.HomepageService.UpdateHomepage", - "async": true, - "parameters": [ - { - "name": "homepage", - "type": ".google.shopping.merchant.accounts.v1beta.Homepage" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1beta.Homepage", - "client": { - "shortName": "HomepageServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.HomepageServiceClient" - }, - "method": { - "shortName": "UpdateHomepage", - "fullName": "google.shopping.merchant.accounts.v1beta.HomepageService.UpdateHomepage", - "service": { - "shortName": "HomepageService", - "fullName": "google.shopping.merchant.accounts.v1beta.HomepageService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_HomepageService_ClaimHomepage_async", - "title": "AccountIssueService claimHomepage Sample", - "origin": "API_DEFINITION", - "description": " Claims a store's homepage. Executing this method requires admin access. If the homepage is already claimed, this will recheck the verification (unless the merchant is exempted from claiming, which also exempts from verification) and return a successful response. If ownership can no longer be verified, it will return an error, but it won't clear the claim. In case of failure, a canonical error message will be returned: * PERMISSION_DENIED: user doesn't have the necessary permissions on this MC account; * FAILED_PRECONDITION: - The account is not a Merchant Center account; - MC account doesn't have a homepage; - claiming failed (in this case the error message will contain more details).", - "canonical": true, - "file": "homepage_service.claim_homepage.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ClaimHomepage", - "fullName": "google.shopping.merchant.accounts.v1beta.HomepageService.ClaimHomepage", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1beta.Homepage", - "client": { - "shortName": "HomepageServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.HomepageServiceClient" - }, - "method": { - "shortName": "ClaimHomepage", - "fullName": "google.shopping.merchant.accounts.v1beta.HomepageService.ClaimHomepage", - "service": { - "shortName": "HomepageService", - "fullName": "google.shopping.merchant.accounts.v1beta.HomepageService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_HomepageService_UnclaimHomepage_async", - "title": "AccountIssueService unclaimHomepage Sample", - "origin": "API_DEFINITION", - "description": " Unclaims a store's homepage. Executing this method requires admin access.", - "canonical": true, - "file": "homepage_service.unclaim_homepage.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UnclaimHomepage", - "fullName": "google.shopping.merchant.accounts.v1beta.HomepageService.UnclaimHomepage", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1beta.Homepage", - "client": { - "shortName": "HomepageServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.HomepageServiceClient" - }, - "method": { - "shortName": "UnclaimHomepage", - "fullName": "google.shopping.merchant.accounts.v1beta.HomepageService.UnclaimHomepage", - "service": { - "shortName": "HomepageService", - "fullName": "google.shopping.merchant.accounts.v1beta.HomepageService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_LfpProvidersService_FindLfpProviders_async", - "title": "AccountIssueService findLfpProviders Sample", - "origin": "API_DEFINITION", - "description": " Find the LFP provider candidates in a given country.", - "canonical": true, - "file": "lfp_providers_service.find_lfp_providers.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FindLfpProviders", - "fullName": "google.shopping.merchant.accounts.v1beta.LfpProvidersService.FindLfpProviders", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1beta.FindLfpProvidersResponse", - "client": { - "shortName": "LfpProvidersServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.LfpProvidersServiceClient" - }, - "method": { - "shortName": "FindLfpProviders", - "fullName": "google.shopping.merchant.accounts.v1beta.LfpProvidersService.FindLfpProviders", - "service": { - "shortName": "LfpProvidersService", - "fullName": "google.shopping.merchant.accounts.v1beta.LfpProvidersService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_LfpProvidersService_LinkLfpProvider_async", - "title": "AccountIssueService linkLfpProvider Sample", - "origin": "API_DEFINITION", - "description": " Link the specified merchant to a LFP provider for the specified country.", - "canonical": true, - "file": "lfp_providers_service.link_lfp_provider.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "LinkLfpProvider", - "fullName": "google.shopping.merchant.accounts.v1beta.LfpProvidersService.LinkLfpProvider", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "external_account_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1beta.LinkLfpProviderResponse", - "client": { - "shortName": "LfpProvidersServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.LfpProvidersServiceClient" - }, - "method": { - "shortName": "LinkLfpProvider", - "fullName": "google.shopping.merchant.accounts.v1beta.LfpProvidersService.LinkLfpProvider", - "service": { - "shortName": "LfpProvidersService", - "fullName": "google.shopping.merchant.accounts.v1beta.LfpProvidersService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_OmnichannelSettingsService_GetOmnichannelSetting_async", - "title": "AccountIssueService getOmnichannelSetting Sample", - "origin": "API_DEFINITION", - "description": " Get the omnichannel settings for a given merchant.", - "canonical": true, - "file": "omnichannel_settings_service.get_omnichannel_setting.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetOmnichannelSetting", - "fullName": "google.shopping.merchant.accounts.v1beta.OmnichannelSettingsService.GetOmnichannelSetting", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1beta.OmnichannelSetting", - "client": { - "shortName": "OmnichannelSettingsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.OmnichannelSettingsServiceClient" - }, - "method": { - "shortName": "GetOmnichannelSetting", - "fullName": "google.shopping.merchant.accounts.v1beta.OmnichannelSettingsService.GetOmnichannelSetting", - "service": { - "shortName": "OmnichannelSettingsService", - "fullName": "google.shopping.merchant.accounts.v1beta.OmnichannelSettingsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_OmnichannelSettingsService_ListOmnichannelSettings_async", - "title": "AccountIssueService listOmnichannelSettings Sample", - "origin": "API_DEFINITION", - "description": " List all the omnichannel settings for a given merchant.", - "canonical": true, - "file": "omnichannel_settings_service.list_omnichannel_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListOmnichannelSettings", - "fullName": "google.shopping.merchant.accounts.v1beta.OmnichannelSettingsService.ListOmnichannelSettings", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1beta.ListOmnichannelSettingsResponse", - "client": { - "shortName": "OmnichannelSettingsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.OmnichannelSettingsServiceClient" - }, - "method": { - "shortName": "ListOmnichannelSettings", - "fullName": "google.shopping.merchant.accounts.v1beta.OmnichannelSettingsService.ListOmnichannelSettings", - "service": { - "shortName": "OmnichannelSettingsService", - "fullName": "google.shopping.merchant.accounts.v1beta.OmnichannelSettingsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_OmnichannelSettingsService_CreateOmnichannelSetting_async", - "title": "AccountIssueService createOmnichannelSetting Sample", - "origin": "API_DEFINITION", - "description": " Create the omnichannel settings for a given merchant.", - "canonical": true, - "file": "omnichannel_settings_service.create_omnichannel_setting.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateOmnichannelSetting", - "fullName": "google.shopping.merchant.accounts.v1beta.OmnichannelSettingsService.CreateOmnichannelSetting", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "omnichannel_setting", - "type": ".google.shopping.merchant.accounts.v1beta.OmnichannelSetting" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1beta.OmnichannelSetting", - "client": { - "shortName": "OmnichannelSettingsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.OmnichannelSettingsServiceClient" - }, - "method": { - "shortName": "CreateOmnichannelSetting", - "fullName": "google.shopping.merchant.accounts.v1beta.OmnichannelSettingsService.CreateOmnichannelSetting", - "service": { - "shortName": "OmnichannelSettingsService", - "fullName": "google.shopping.merchant.accounts.v1beta.OmnichannelSettingsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_OmnichannelSettingsService_UpdateOmnichannelSetting_async", - "title": "AccountIssueService updateOmnichannelSetting Sample", - "origin": "API_DEFINITION", - "description": " Update the omnichannel setting for a given merchant in a given country.", - "canonical": true, - "file": "omnichannel_settings_service.update_omnichannel_setting.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateOmnichannelSetting", - "fullName": "google.shopping.merchant.accounts.v1beta.OmnichannelSettingsService.UpdateOmnichannelSetting", - "async": true, - "parameters": [ - { - "name": "omnichannel_setting", - "type": ".google.shopping.merchant.accounts.v1beta.OmnichannelSetting" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1beta.OmnichannelSetting", - "client": { - "shortName": "OmnichannelSettingsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.OmnichannelSettingsServiceClient" - }, - "method": { - "shortName": "UpdateOmnichannelSetting", - "fullName": "google.shopping.merchant.accounts.v1beta.OmnichannelSettingsService.UpdateOmnichannelSetting", - "service": { - "shortName": "OmnichannelSettingsService", - "fullName": "google.shopping.merchant.accounts.v1beta.OmnichannelSettingsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_OmnichannelSettingsService_RequestInventoryVerification_async", - "title": "AccountIssueService requestInventoryVerification Sample", - "origin": "API_DEFINITION", - "description": " Requests inventory verification for a given merchant in a given country.", - "canonical": true, - "file": "omnichannel_settings_service.request_inventory_verification.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RequestInventoryVerification", - "fullName": "google.shopping.merchant.accounts.v1beta.OmnichannelSettingsService.RequestInventoryVerification", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1beta.RequestInventoryVerificationResponse", - "client": { - "shortName": "OmnichannelSettingsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.OmnichannelSettingsServiceClient" - }, - "method": { - "shortName": "RequestInventoryVerification", - "fullName": "google.shopping.merchant.accounts.v1beta.OmnichannelSettingsService.RequestInventoryVerification", - "service": { - "shortName": "OmnichannelSettingsService", - "fullName": "google.shopping.merchant.accounts.v1beta.OmnichannelSettingsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_OnlineReturnPolicyService_GetOnlineReturnPolicy_async", - "title": "AccountIssueService getOnlineReturnPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets an existing return policy for a given merchant.", - "canonical": true, - "file": "online_return_policy_service.get_online_return_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetOnlineReturnPolicy", - "fullName": "google.shopping.merchant.accounts.v1beta.OnlineReturnPolicyService.GetOnlineReturnPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy", - "client": { - "shortName": "OnlineReturnPolicyServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.OnlineReturnPolicyServiceClient" - }, - "method": { - "shortName": "GetOnlineReturnPolicy", - "fullName": "google.shopping.merchant.accounts.v1beta.OnlineReturnPolicyService.GetOnlineReturnPolicy", - "service": { - "shortName": "OnlineReturnPolicyService", - "fullName": "google.shopping.merchant.accounts.v1beta.OnlineReturnPolicyService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_OnlineReturnPolicyService_ListOnlineReturnPolicies_async", - "title": "AccountIssueService listOnlineReturnPolicies Sample", - "origin": "API_DEFINITION", - "description": " Lists all existing return policies for a given merchant.", - "canonical": true, - "file": "online_return_policy_service.list_online_return_policies.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListOnlineReturnPolicies", - "fullName": "google.shopping.merchant.accounts.v1beta.OnlineReturnPolicyService.ListOnlineReturnPolicies", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1beta.ListOnlineReturnPoliciesResponse", - "client": { - "shortName": "OnlineReturnPolicyServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.OnlineReturnPolicyServiceClient" - }, - "method": { - "shortName": "ListOnlineReturnPolicies", - "fullName": "google.shopping.merchant.accounts.v1beta.OnlineReturnPolicyService.ListOnlineReturnPolicies", - "service": { - "shortName": "OnlineReturnPolicyService", - "fullName": "google.shopping.merchant.accounts.v1beta.OnlineReturnPolicyService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_OnlineReturnPolicyService_CreateOnlineReturnPolicy_async", - "title": "AccountIssueService createOnlineReturnPolicy Sample", - "origin": "API_DEFINITION", - "description": " Creates a new return policy for a given merchant.", - "canonical": true, - "file": "online_return_policy_service.create_online_return_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateOnlineReturnPolicy", - "fullName": "google.shopping.merchant.accounts.v1beta.OnlineReturnPolicyService.CreateOnlineReturnPolicy", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "online_return_policy", - "type": ".google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy", - "client": { - "shortName": "OnlineReturnPolicyServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.OnlineReturnPolicyServiceClient" - }, - "method": { - "shortName": "CreateOnlineReturnPolicy", - "fullName": "google.shopping.merchant.accounts.v1beta.OnlineReturnPolicyService.CreateOnlineReturnPolicy", - "service": { - "shortName": "OnlineReturnPolicyService", - "fullName": "google.shopping.merchant.accounts.v1beta.OnlineReturnPolicyService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_OnlineReturnPolicyService_UpdateOnlineReturnPolicy_async", - "title": "AccountIssueService updateOnlineReturnPolicy Sample", - "origin": "API_DEFINITION", - "description": " Updates an existing return policy for a given merchant.", - "canonical": true, - "file": "online_return_policy_service.update_online_return_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateOnlineReturnPolicy", - "fullName": "google.shopping.merchant.accounts.v1beta.OnlineReturnPolicyService.UpdateOnlineReturnPolicy", - "async": true, - "parameters": [ - { - "name": "online_return_policy", - "type": ".google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy", - "client": { - "shortName": "OnlineReturnPolicyServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.OnlineReturnPolicyServiceClient" - }, - "method": { - "shortName": "UpdateOnlineReturnPolicy", - "fullName": "google.shopping.merchant.accounts.v1beta.OnlineReturnPolicyService.UpdateOnlineReturnPolicy", - "service": { - "shortName": "OnlineReturnPolicyService", - "fullName": "google.shopping.merchant.accounts.v1beta.OnlineReturnPolicyService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_OnlineReturnPolicyService_DeleteOnlineReturnPolicy_async", - "title": "AccountIssueService deleteOnlineReturnPolicy Sample", - "origin": "API_DEFINITION", - "description": " Deletes an existing return policy.", - "canonical": true, - "file": "online_return_policy_service.delete_online_return_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteOnlineReturnPolicy", - "fullName": "google.shopping.merchant.accounts.v1beta.OnlineReturnPolicyService.DeleteOnlineReturnPolicy", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "OnlineReturnPolicyServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.OnlineReturnPolicyServiceClient" - }, - "method": { - "shortName": "DeleteOnlineReturnPolicy", - "fullName": "google.shopping.merchant.accounts.v1beta.OnlineReturnPolicyService.DeleteOnlineReturnPolicy", - "service": { - "shortName": "OnlineReturnPolicyService", - "fullName": "google.shopping.merchant.accounts.v1beta.OnlineReturnPolicyService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_ProgramsService_GetProgram_async", - "title": "AccountIssueService getProgram Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the specified program for the account.", - "canonical": true, - "file": "programs_service.get_program.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetProgram", - "fullName": "google.shopping.merchant.accounts.v1beta.ProgramsService.GetProgram", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1beta.Program", - "client": { - "shortName": "ProgramsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.ProgramsServiceClient" - }, - "method": { - "shortName": "GetProgram", - "fullName": "google.shopping.merchant.accounts.v1beta.ProgramsService.GetProgram", - "service": { - "shortName": "ProgramsService", - "fullName": "google.shopping.merchant.accounts.v1beta.ProgramsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_ProgramsService_ListPrograms_async", - "title": "AccountIssueService listPrograms Sample", - "origin": "API_DEFINITION", - "description": " Retrieves all programs for the account.", - "canonical": true, - "file": "programs_service.list_programs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPrograms", - "fullName": "google.shopping.merchant.accounts.v1beta.ProgramsService.ListPrograms", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1beta.ListProgramsResponse", - "client": { - "shortName": "ProgramsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.ProgramsServiceClient" - }, - "method": { - "shortName": "ListPrograms", - "fullName": "google.shopping.merchant.accounts.v1beta.ProgramsService.ListPrograms", - "service": { - "shortName": "ProgramsService", - "fullName": "google.shopping.merchant.accounts.v1beta.ProgramsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_ProgramsService_EnableProgram_async", - "title": "AccountIssueService enableProgram Sample", - "origin": "API_DEFINITION", - "description": " Enable participation in the specified program for the account. Executing this method requires admin access.", - "canonical": true, - "file": "programs_service.enable_program.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "EnableProgram", - "fullName": "google.shopping.merchant.accounts.v1beta.ProgramsService.EnableProgram", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1beta.Program", - "client": { - "shortName": "ProgramsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.ProgramsServiceClient" - }, - "method": { - "shortName": "EnableProgram", - "fullName": "google.shopping.merchant.accounts.v1beta.ProgramsService.EnableProgram", - "service": { - "shortName": "ProgramsService", - "fullName": "google.shopping.merchant.accounts.v1beta.ProgramsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_ProgramsService_DisableProgram_async", - "title": "AccountIssueService disableProgram Sample", - "origin": "API_DEFINITION", - "description": " Disable participation in the specified program for the account. Executing this method requires admin access.", - "canonical": true, - "file": "programs_service.disable_program.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DisableProgram", - "fullName": "google.shopping.merchant.accounts.v1beta.ProgramsService.DisableProgram", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1beta.Program", - "client": { - "shortName": "ProgramsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.ProgramsServiceClient" - }, - "method": { - "shortName": "DisableProgram", - "fullName": "google.shopping.merchant.accounts.v1beta.ProgramsService.DisableProgram", - "service": { - "shortName": "ProgramsService", - "fullName": "google.shopping.merchant.accounts.v1beta.ProgramsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_RegionsService_GetRegion_async", - "title": "AccountIssueService getRegion Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a region defined in your Merchant Center account.", - "canonical": true, - "file": "regions_service.get_region.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetRegion", - "fullName": "google.shopping.merchant.accounts.v1beta.RegionsService.GetRegion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1beta.Region", - "client": { - "shortName": "RegionsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.RegionsServiceClient" - }, - "method": { - "shortName": "GetRegion", - "fullName": "google.shopping.merchant.accounts.v1beta.RegionsService.GetRegion", - "service": { - "shortName": "RegionsService", - "fullName": "google.shopping.merchant.accounts.v1beta.RegionsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_RegionsService_CreateRegion_async", - "title": "AccountIssueService createRegion Sample", - "origin": "API_DEFINITION", - "description": " Creates a region definition in your Merchant Center account. Executing this method requires admin access.", - "canonical": true, - "file": "regions_service.create_region.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateRegion", - "fullName": "google.shopping.merchant.accounts.v1beta.RegionsService.CreateRegion", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "region_id", - "type": "TYPE_STRING" - }, - { - "name": "region", - "type": ".google.shopping.merchant.accounts.v1beta.Region" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1beta.Region", - "client": { - "shortName": "RegionsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.RegionsServiceClient" - }, - "method": { - "shortName": "CreateRegion", - "fullName": "google.shopping.merchant.accounts.v1beta.RegionsService.CreateRegion", - "service": { - "shortName": "RegionsService", - "fullName": "google.shopping.merchant.accounts.v1beta.RegionsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_RegionsService_UpdateRegion_async", - "title": "AccountIssueService updateRegion Sample", - "origin": "API_DEFINITION", - "description": " Updates a region definition in your Merchant Center account. Executing this method requires admin access.", - "canonical": true, - "file": "regions_service.update_region.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateRegion", - "fullName": "google.shopping.merchant.accounts.v1beta.RegionsService.UpdateRegion", - "async": true, - "parameters": [ - { - "name": "region", - "type": ".google.shopping.merchant.accounts.v1beta.Region" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1beta.Region", - "client": { - "shortName": "RegionsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.RegionsServiceClient" - }, - "method": { - "shortName": "UpdateRegion", - "fullName": "google.shopping.merchant.accounts.v1beta.RegionsService.UpdateRegion", - "service": { - "shortName": "RegionsService", - "fullName": "google.shopping.merchant.accounts.v1beta.RegionsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_RegionsService_DeleteRegion_async", - "title": "AccountIssueService deleteRegion Sample", - "origin": "API_DEFINITION", - "description": " Deletes a region definition from your Merchant Center account. Executing this method requires admin access.", - "canonical": true, - "file": "regions_service.delete_region.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteRegion", - "fullName": "google.shopping.merchant.accounts.v1beta.RegionsService.DeleteRegion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "RegionsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.RegionsServiceClient" - }, - "method": { - "shortName": "DeleteRegion", - "fullName": "google.shopping.merchant.accounts.v1beta.RegionsService.DeleteRegion", - "service": { - "shortName": "RegionsService", - "fullName": "google.shopping.merchant.accounts.v1beta.RegionsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_RegionsService_ListRegions_async", - "title": "AccountIssueService listRegions Sample", - "origin": "API_DEFINITION", - "description": " Lists the regions in your Merchant Center account.", - "canonical": true, - "file": "regions_service.list_regions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRegions", - "fullName": "google.shopping.merchant.accounts.v1beta.RegionsService.ListRegions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1beta.ListRegionsResponse", - "client": { - "shortName": "RegionsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.RegionsServiceClient" - }, - "method": { - "shortName": "ListRegions", - "fullName": "google.shopping.merchant.accounts.v1beta.RegionsService.ListRegions", - "service": { - "shortName": "RegionsService", - "fullName": "google.shopping.merchant.accounts.v1beta.RegionsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_ShippingSettingsService_GetShippingSettings_async", - "title": "AccountIssueService getShippingSettings Sample", - "origin": "API_DEFINITION", - "description": " Retrieve shipping setting information.", - "canonical": true, - "file": "shipping_settings_service.get_shipping_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetShippingSettings", - "fullName": "google.shopping.merchant.accounts.v1beta.ShippingSettingsService.GetShippingSettings", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1beta.ShippingSettings", - "client": { - "shortName": "ShippingSettingsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.ShippingSettingsServiceClient" - }, - "method": { - "shortName": "GetShippingSettings", - "fullName": "google.shopping.merchant.accounts.v1beta.ShippingSettingsService.GetShippingSettings", - "service": { - "shortName": "ShippingSettingsService", - "fullName": "google.shopping.merchant.accounts.v1beta.ShippingSettingsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_ShippingSettingsService_InsertShippingSettings_async", - "title": "AccountIssueService insertShippingSettings Sample", - "origin": "API_DEFINITION", - "description": " Replace the shipping setting of a merchant with the request shipping setting. Executing this method requires admin access.", - "canonical": true, - "file": "shipping_settings_service.insert_shipping_settings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "InsertShippingSettings", - "fullName": "google.shopping.merchant.accounts.v1beta.ShippingSettingsService.InsertShippingSettings", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "shipping_setting", - "type": ".google.shopping.merchant.accounts.v1beta.ShippingSettings" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1beta.ShippingSettings", - "client": { - "shortName": "ShippingSettingsServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.ShippingSettingsServiceClient" - }, - "method": { - "shortName": "InsertShippingSettings", - "fullName": "google.shopping.merchant.accounts.v1beta.ShippingSettingsService.InsertShippingSettings", - "service": { - "shortName": "ShippingSettingsService", - "fullName": "google.shopping.merchant.accounts.v1beta.ShippingSettingsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_TermsOfServiceAgreementStateService_GetTermsOfServiceAgreementState_async", - "title": "AccountIssueService getTermsOfServiceAgreementState Sample", - "origin": "API_DEFINITION", - "description": " Returns the state of a terms of service agreement.", - "canonical": true, - "file": "terms_of_service_agreement_state_service.get_terms_of_service_agreement_state.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTermsOfServiceAgreementState", - "fullName": "google.shopping.merchant.accounts.v1beta.TermsOfServiceAgreementStateService.GetTermsOfServiceAgreementState", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1beta.TermsOfServiceAgreementState", - "client": { - "shortName": "TermsOfServiceAgreementStateServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.TermsOfServiceAgreementStateServiceClient" - }, - "method": { - "shortName": "GetTermsOfServiceAgreementState", - "fullName": "google.shopping.merchant.accounts.v1beta.TermsOfServiceAgreementStateService.GetTermsOfServiceAgreementState", - "service": { - "shortName": "TermsOfServiceAgreementStateService", - "fullName": "google.shopping.merchant.accounts.v1beta.TermsOfServiceAgreementStateService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_TermsOfServiceAgreementStateService_RetrieveForApplicationTermsOfServiceAgreementState_async", - "title": "AccountIssueService retrieveForApplicationTermsOfServiceAgreementState Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the state of the agreement for the application terms of service.", - "canonical": true, - "file": "terms_of_service_agreement_state_service.retrieve_for_application_terms_of_service_agreement_state.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RetrieveForApplicationTermsOfServiceAgreementState", - "fullName": "google.shopping.merchant.accounts.v1beta.TermsOfServiceAgreementStateService.RetrieveForApplicationTermsOfServiceAgreementState", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1beta.TermsOfServiceAgreementState", - "client": { - "shortName": "TermsOfServiceAgreementStateServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.TermsOfServiceAgreementStateServiceClient" - }, - "method": { - "shortName": "RetrieveForApplicationTermsOfServiceAgreementState", - "fullName": "google.shopping.merchant.accounts.v1beta.TermsOfServiceAgreementStateService.RetrieveForApplicationTermsOfServiceAgreementState", - "service": { - "shortName": "TermsOfServiceAgreementStateService", - "fullName": "google.shopping.merchant.accounts.v1beta.TermsOfServiceAgreementStateService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_TermsOfServiceService_GetTermsOfService_async", - "title": "AccountIssueService getTermsOfService Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the `TermsOfService` associated with the provided version.", - "canonical": true, - "file": "terms_of_service_service.get_terms_of_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTermsOfService", - "fullName": "google.shopping.merchant.accounts.v1beta.TermsOfServiceService.GetTermsOfService", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1beta.TermsOfService", - "client": { - "shortName": "TermsOfServiceServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.TermsOfServiceServiceClient" - }, - "method": { - "shortName": "GetTermsOfService", - "fullName": "google.shopping.merchant.accounts.v1beta.TermsOfServiceService.GetTermsOfService", - "service": { - "shortName": "TermsOfServiceService", - "fullName": "google.shopping.merchant.accounts.v1beta.TermsOfServiceService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_TermsOfServiceService_RetrieveLatestTermsOfService_async", - "title": "AccountIssueService retrieveLatestTermsOfService Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the latest version of the `TermsOfService` for a given `kind` and `region_code`.", - "canonical": true, - "file": "terms_of_service_service.retrieve_latest_terms_of_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RetrieveLatestTermsOfService", - "fullName": "google.shopping.merchant.accounts.v1beta.TermsOfServiceService.RetrieveLatestTermsOfService", - "async": true, - "parameters": [ - { - "name": "region_code", - "type": "TYPE_STRING" - }, - { - "name": "kind", - "type": ".google.shopping.merchant.accounts.v1beta.TermsOfServiceKind" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1beta.TermsOfService", - "client": { - "shortName": "TermsOfServiceServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.TermsOfServiceServiceClient" - }, - "method": { - "shortName": "RetrieveLatestTermsOfService", - "fullName": "google.shopping.merchant.accounts.v1beta.TermsOfServiceService.RetrieveLatestTermsOfService", - "service": { - "shortName": "TermsOfServiceService", - "fullName": "google.shopping.merchant.accounts.v1beta.TermsOfServiceService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_TermsOfServiceService_AcceptTermsOfService_async", - "title": "AccountIssueService acceptTermsOfService Sample", - "origin": "API_DEFINITION", - "description": " Accepts a `TermsOfService`. Executing this method requires admin access.", - "canonical": true, - "file": "terms_of_service_service.accept_terms_of_service.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "AcceptTermsOfService", - "fullName": "google.shopping.merchant.accounts.v1beta.TermsOfServiceService.AcceptTermsOfService", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "account", - "type": "TYPE_STRING" - }, - { - "name": "region_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "TermsOfServiceServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.TermsOfServiceServiceClient" - }, - "method": { - "shortName": "AcceptTermsOfService", - "fullName": "google.shopping.merchant.accounts.v1beta.TermsOfServiceService.AcceptTermsOfService", - "service": { - "shortName": "TermsOfServiceService", - "fullName": "google.shopping.merchant.accounts.v1beta.TermsOfServiceService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_UserService_GetUser_async", - "title": "AccountIssueService getUser Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a Merchant Center account user.", - "canonical": true, - "file": "user_service.get_user.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetUser", - "fullName": "google.shopping.merchant.accounts.v1beta.UserService.GetUser", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1beta.User", - "client": { - "shortName": "UserServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.UserServiceClient" - }, - "method": { - "shortName": "GetUser", - "fullName": "google.shopping.merchant.accounts.v1beta.UserService.GetUser", - "service": { - "shortName": "UserService", - "fullName": "google.shopping.merchant.accounts.v1beta.UserService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_UserService_CreateUser_async", - "title": "AccountIssueService createUser Sample", - "origin": "API_DEFINITION", - "description": " Creates a Merchant Center account user. Executing this method requires admin access.", - "canonical": true, - "file": "user_service.create_user.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateUser", - "fullName": "google.shopping.merchant.accounts.v1beta.UserService.CreateUser", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "user_id", - "type": "TYPE_STRING" - }, - { - "name": "user", - "type": ".google.shopping.merchant.accounts.v1beta.User" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1beta.User", - "client": { - "shortName": "UserServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.UserServiceClient" - }, - "method": { - "shortName": "CreateUser", - "fullName": "google.shopping.merchant.accounts.v1beta.UserService.CreateUser", - "service": { - "shortName": "UserService", - "fullName": "google.shopping.merchant.accounts.v1beta.UserService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_UserService_DeleteUser_async", - "title": "AccountIssueService deleteUser Sample", - "origin": "API_DEFINITION", - "description": " Deletes a Merchant Center account user. Executing this method requires admin access.", - "canonical": true, - "file": "user_service.delete_user.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteUser", - "fullName": "google.shopping.merchant.accounts.v1beta.UserService.DeleteUser", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "UserServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.UserServiceClient" - }, - "method": { - "shortName": "DeleteUser", - "fullName": "google.shopping.merchant.accounts.v1beta.UserService.DeleteUser", - "service": { - "shortName": "UserService", - "fullName": "google.shopping.merchant.accounts.v1beta.UserService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_UserService_UpdateUser_async", - "title": "AccountIssueService updateUser Sample", - "origin": "API_DEFINITION", - "description": " Updates a Merchant Center account user. Executing this method requires admin access.", - "canonical": true, - "file": "user_service.update_user.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateUser", - "fullName": "google.shopping.merchant.accounts.v1beta.UserService.UpdateUser", - "async": true, - "parameters": [ - { - "name": "user", - "type": ".google.shopping.merchant.accounts.v1beta.User" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1beta.User", - "client": { - "shortName": "UserServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.UserServiceClient" - }, - "method": { - "shortName": "UpdateUser", - "fullName": "google.shopping.merchant.accounts.v1beta.UserService.UpdateUser", - "service": { - "shortName": "UserService", - "fullName": "google.shopping.merchant.accounts.v1beta.UserService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_UserService_ListUsers_async", - "title": "AccountIssueService listUsers Sample", - "origin": "API_DEFINITION", - "description": " Lists all users of a Merchant Center account.", - "canonical": true, - "file": "user_service.list_users.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListUsers", - "fullName": "google.shopping.merchant.accounts.v1beta.UserService.ListUsers", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.accounts.v1beta.ListUsersResponse", - "client": { - "shortName": "UserServiceClient", - "fullName": "google.shopping.merchant.accounts.v1beta.UserServiceClient" - }, - "method": { - "shortName": "ListUsers", - "fullName": "google.shopping.merchant.accounts.v1beta.UserService.ListUsers", - "service": { - "shortName": "UserService", - "fullName": "google.shopping.merchant.accounts.v1beta.UserService" - } - } - } - } - ] -} diff --git a/packages/google-shopping-merchant-conversions/samples/generated/v1/snippet_metadata_google.shopping.merchant.conversions.v1.json b/packages/google-shopping-merchant-conversions/samples/generated/v1/snippet_metadata_google.shopping.merchant.conversions.v1.json deleted file mode 100644 index 31ebed841f93..000000000000 --- a/packages/google-shopping-merchant-conversions/samples/generated/v1/snippet_metadata_google.shopping.merchant.conversions.v1.json +++ /dev/null @@ -1,275 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-conversions", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.shopping.merchant.conversions.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "merchantapi_v1_generated_ConversionSourcesService_CreateConversionSource_async", - "title": "ConversionSourcesService createConversionSource Sample", - "origin": "API_DEFINITION", - "description": " Creates a new conversion source.", - "canonical": true, - "file": "conversion_sources_service.create_conversion_source.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateConversionSource", - "fullName": "google.shopping.merchant.conversions.v1.ConversionSourcesService.CreateConversionSource", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "conversion_source", - "type": ".google.shopping.merchant.conversions.v1.ConversionSource" - } - ], - "resultType": ".google.shopping.merchant.conversions.v1.ConversionSource", - "client": { - "shortName": "ConversionSourcesServiceClient", - "fullName": "google.shopping.merchant.conversions.v1.ConversionSourcesServiceClient" - }, - "method": { - "shortName": "CreateConversionSource", - "fullName": "google.shopping.merchant.conversions.v1.ConversionSourcesService.CreateConversionSource", - "service": { - "shortName": "ConversionSourcesService", - "fullName": "google.shopping.merchant.conversions.v1.ConversionSourcesService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_ConversionSourcesService_UpdateConversionSource_async", - "title": "ConversionSourcesService updateConversionSource Sample", - "origin": "API_DEFINITION", - "description": " Updates information of an existing conversion source. Available only for Merchant Center Destination conversion sources.", - "canonical": true, - "file": "conversion_sources_service.update_conversion_source.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 57, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateConversionSource", - "fullName": "google.shopping.merchant.conversions.v1.ConversionSourcesService.UpdateConversionSource", - "async": true, - "parameters": [ - { - "name": "conversion_source", - "type": ".google.shopping.merchant.conversions.v1.ConversionSource" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.shopping.merchant.conversions.v1.ConversionSource", - "client": { - "shortName": "ConversionSourcesServiceClient", - "fullName": "google.shopping.merchant.conversions.v1.ConversionSourcesServiceClient" - }, - "method": { - "shortName": "UpdateConversionSource", - "fullName": "google.shopping.merchant.conversions.v1.ConversionSourcesService.UpdateConversionSource", - "service": { - "shortName": "ConversionSourcesService", - "fullName": "google.shopping.merchant.conversions.v1.ConversionSourcesService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_ConversionSourcesService_DeleteConversionSource_async", - "title": "ConversionSourcesService deleteConversionSource Sample", - "origin": "API_DEFINITION", - "description": " Archives an existing conversion source. If the conversion source is a Merchant Center Destination, it will be recoverable for 30 days. If the conversion source is a Google Analytics Link, it will be deleted immediately and can be restored by creating a new one.", - "canonical": true, - "file": "conversion_sources_service.delete_conversion_source.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteConversionSource", - "fullName": "google.shopping.merchant.conversions.v1.ConversionSourcesService.DeleteConversionSource", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ConversionSourcesServiceClient", - "fullName": "google.shopping.merchant.conversions.v1.ConversionSourcesServiceClient" - }, - "method": { - "shortName": "DeleteConversionSource", - "fullName": "google.shopping.merchant.conversions.v1.ConversionSourcesService.DeleteConversionSource", - "service": { - "shortName": "ConversionSourcesService", - "fullName": "google.shopping.merchant.conversions.v1.ConversionSourcesService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_ConversionSourcesService_UndeleteConversionSource_async", - "title": "ConversionSourcesService undeleteConversionSource Sample", - "origin": "API_DEFINITION", - "description": " Re-enables an archived conversion source. Only Available for Merchant Center Destination conversion sources.", - "canonical": true, - "file": "conversion_sources_service.undelete_conversion_source.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UndeleteConversionSource", - "fullName": "google.shopping.merchant.conversions.v1.ConversionSourcesService.UndeleteConversionSource", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.conversions.v1.ConversionSource", - "client": { - "shortName": "ConversionSourcesServiceClient", - "fullName": "google.shopping.merchant.conversions.v1.ConversionSourcesServiceClient" - }, - "method": { - "shortName": "UndeleteConversionSource", - "fullName": "google.shopping.merchant.conversions.v1.ConversionSourcesService.UndeleteConversionSource", - "service": { - "shortName": "ConversionSourcesService", - "fullName": "google.shopping.merchant.conversions.v1.ConversionSourcesService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_ConversionSourcesService_GetConversionSource_async", - "title": "ConversionSourcesService getConversionSource Sample", - "origin": "API_DEFINITION", - "description": " Fetches a conversion source.", - "canonical": true, - "file": "conversion_sources_service.get_conversion_source.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetConversionSource", - "fullName": "google.shopping.merchant.conversions.v1.ConversionSourcesService.GetConversionSource", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.conversions.v1.ConversionSource", - "client": { - "shortName": "ConversionSourcesServiceClient", - "fullName": "google.shopping.merchant.conversions.v1.ConversionSourcesServiceClient" - }, - "method": { - "shortName": "GetConversionSource", - "fullName": "google.shopping.merchant.conversions.v1.ConversionSourcesService.GetConversionSource", - "service": { - "shortName": "ConversionSourcesService", - "fullName": "google.shopping.merchant.conversions.v1.ConversionSourcesService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_ConversionSourcesService_ListConversionSources_async", - "title": "ConversionSourcesService listConversionSources Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of conversion sources the caller has access to.", - "canonical": true, - "file": "conversion_sources_service.list_conversion_sources.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListConversionSources", - "fullName": "google.shopping.merchant.conversions.v1.ConversionSourcesService.ListConversionSources", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "show_deleted", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.shopping.merchant.conversions.v1.ListConversionSourcesResponse", - "client": { - "shortName": "ConversionSourcesServiceClient", - "fullName": "google.shopping.merchant.conversions.v1.ConversionSourcesServiceClient" - }, - "method": { - "shortName": "ListConversionSources", - "fullName": "google.shopping.merchant.conversions.v1.ConversionSourcesService.ListConversionSources", - "service": { - "shortName": "ConversionSourcesService", - "fullName": "google.shopping.merchant.conversions.v1.ConversionSourcesService" - } - } - } - } - ] -} diff --git a/packages/google-shopping-merchant-conversions/samples/generated/v1beta/snippet_metadata_google.shopping.merchant.conversions.v1beta.json b/packages/google-shopping-merchant-conversions/samples/generated/v1beta/snippet_metadata_google.shopping.merchant.conversions.v1beta.json deleted file mode 100644 index c5dca5978f81..000000000000 --- a/packages/google-shopping-merchant-conversions/samples/generated/v1beta/snippet_metadata_google.shopping.merchant.conversions.v1beta.json +++ /dev/null @@ -1,275 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-conversions", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.shopping.merchant.conversions.v1beta", - "version": "v1beta" - } - ] - }, - "snippets": [ - { - "regionTag": "merchantapi_v1beta_generated_ConversionSourcesService_CreateConversionSource_async", - "title": "ConversionSourcesService createConversionSource Sample", - "origin": "API_DEFINITION", - "description": " Creates a new conversion source.", - "canonical": true, - "file": "conversion_sources_service.create_conversion_source.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateConversionSource", - "fullName": "google.shopping.merchant.conversions.v1beta.ConversionSourcesService.CreateConversionSource", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "conversion_source", - "type": ".google.shopping.merchant.conversions.v1beta.ConversionSource" - } - ], - "resultType": ".google.shopping.merchant.conversions.v1beta.ConversionSource", - "client": { - "shortName": "ConversionSourcesServiceClient", - "fullName": "google.shopping.merchant.conversions.v1beta.ConversionSourcesServiceClient" - }, - "method": { - "shortName": "CreateConversionSource", - "fullName": "google.shopping.merchant.conversions.v1beta.ConversionSourcesService.CreateConversionSource", - "service": { - "shortName": "ConversionSourcesService", - "fullName": "google.shopping.merchant.conversions.v1beta.ConversionSourcesService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_ConversionSourcesService_UpdateConversionSource_async", - "title": "ConversionSourcesService updateConversionSource Sample", - "origin": "API_DEFINITION", - "description": " Updates information of an existing conversion source. Available only for Merchant Center Destination conversion sources.", - "canonical": true, - "file": "conversion_sources_service.update_conversion_source.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateConversionSource", - "fullName": "google.shopping.merchant.conversions.v1beta.ConversionSourcesService.UpdateConversionSource", - "async": true, - "parameters": [ - { - "name": "conversion_source", - "type": ".google.shopping.merchant.conversions.v1beta.ConversionSource" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.shopping.merchant.conversions.v1beta.ConversionSource", - "client": { - "shortName": "ConversionSourcesServiceClient", - "fullName": "google.shopping.merchant.conversions.v1beta.ConversionSourcesServiceClient" - }, - "method": { - "shortName": "UpdateConversionSource", - "fullName": "google.shopping.merchant.conversions.v1beta.ConversionSourcesService.UpdateConversionSource", - "service": { - "shortName": "ConversionSourcesService", - "fullName": "google.shopping.merchant.conversions.v1beta.ConversionSourcesService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_ConversionSourcesService_DeleteConversionSource_async", - "title": "ConversionSourcesService deleteConversionSource Sample", - "origin": "API_DEFINITION", - "description": " Archives an existing conversion source. If the conversion source is a Merchant Center Destination, it will be recoverable for 30 days. If the conversion source is a Google Analytics Link, it will be deleted immediately and can be restored by creating a new one.", - "canonical": true, - "file": "conversion_sources_service.delete_conversion_source.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteConversionSource", - "fullName": "google.shopping.merchant.conversions.v1beta.ConversionSourcesService.DeleteConversionSource", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ConversionSourcesServiceClient", - "fullName": "google.shopping.merchant.conversions.v1beta.ConversionSourcesServiceClient" - }, - "method": { - "shortName": "DeleteConversionSource", - "fullName": "google.shopping.merchant.conversions.v1beta.ConversionSourcesService.DeleteConversionSource", - "service": { - "shortName": "ConversionSourcesService", - "fullName": "google.shopping.merchant.conversions.v1beta.ConversionSourcesService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_ConversionSourcesService_UndeleteConversionSource_async", - "title": "ConversionSourcesService undeleteConversionSource Sample", - "origin": "API_DEFINITION", - "description": " Re-enables an archived conversion source. Only Available for Merchant Center Destination conversion sources.", - "canonical": true, - "file": "conversion_sources_service.undelete_conversion_source.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UndeleteConversionSource", - "fullName": "google.shopping.merchant.conversions.v1beta.ConversionSourcesService.UndeleteConversionSource", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.conversions.v1beta.ConversionSource", - "client": { - "shortName": "ConversionSourcesServiceClient", - "fullName": "google.shopping.merchant.conversions.v1beta.ConversionSourcesServiceClient" - }, - "method": { - "shortName": "UndeleteConversionSource", - "fullName": "google.shopping.merchant.conversions.v1beta.ConversionSourcesService.UndeleteConversionSource", - "service": { - "shortName": "ConversionSourcesService", - "fullName": "google.shopping.merchant.conversions.v1beta.ConversionSourcesService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_ConversionSourcesService_GetConversionSource_async", - "title": "ConversionSourcesService getConversionSource Sample", - "origin": "API_DEFINITION", - "description": " Fetches a conversion source.", - "canonical": true, - "file": "conversion_sources_service.get_conversion_source.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetConversionSource", - "fullName": "google.shopping.merchant.conversions.v1beta.ConversionSourcesService.GetConversionSource", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.conversions.v1beta.ConversionSource", - "client": { - "shortName": "ConversionSourcesServiceClient", - "fullName": "google.shopping.merchant.conversions.v1beta.ConversionSourcesServiceClient" - }, - "method": { - "shortName": "GetConversionSource", - "fullName": "google.shopping.merchant.conversions.v1beta.ConversionSourcesService.GetConversionSource", - "service": { - "shortName": "ConversionSourcesService", - "fullName": "google.shopping.merchant.conversions.v1beta.ConversionSourcesService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_ConversionSourcesService_ListConversionSources_async", - "title": "ConversionSourcesService listConversionSources Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the list of conversion sources the caller has access to.", - "canonical": true, - "file": "conversion_sources_service.list_conversion_sources.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListConversionSources", - "fullName": "google.shopping.merchant.conversions.v1beta.ConversionSourcesService.ListConversionSources", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "show_deleted", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.shopping.merchant.conversions.v1beta.ListConversionSourcesResponse", - "client": { - "shortName": "ConversionSourcesServiceClient", - "fullName": "google.shopping.merchant.conversions.v1beta.ConversionSourcesServiceClient" - }, - "method": { - "shortName": "ListConversionSources", - "fullName": "google.shopping.merchant.conversions.v1beta.ConversionSourcesService.ListConversionSources", - "service": { - "shortName": "ConversionSourcesService", - "fullName": "google.shopping.merchant.conversions.v1beta.ConversionSourcesService" - } - } - } - } - ] -} diff --git a/packages/google-shopping-merchant-datasources/samples/generated/v1/snippet_metadata_google.shopping.merchant.datasources.v1.json b/packages/google-shopping-merchant-datasources/samples/generated/v1/snippet_metadata_google.shopping.merchant.datasources.v1.json deleted file mode 100644 index ff28d586dd29..000000000000 --- a/packages/google-shopping-merchant-datasources/samples/generated/v1/snippet_metadata_google.shopping.merchant.datasources.v1.json +++ /dev/null @@ -1,311 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-datasources", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.shopping.merchant.datasources.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "merchantapi_v1_generated_DataSourcesService_GetDataSource_async", - "title": "DataSourcesService getDataSource Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the data source configuration for the given account.", - "canonical": true, - "file": "data_sources_service.get_data_source.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDataSource", - "fullName": "google.shopping.merchant.datasources.v1.DataSourcesService.GetDataSource", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.datasources.v1.DataSource", - "client": { - "shortName": "DataSourcesServiceClient", - "fullName": "google.shopping.merchant.datasources.v1.DataSourcesServiceClient" - }, - "method": { - "shortName": "GetDataSource", - "fullName": "google.shopping.merchant.datasources.v1.DataSourcesService.GetDataSource", - "service": { - "shortName": "DataSourcesService", - "fullName": "google.shopping.merchant.datasources.v1.DataSourcesService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_DataSourcesService_ListDataSources_async", - "title": "DataSourcesService listDataSources Sample", - "origin": "API_DEFINITION", - "description": " Lists the configurations for data sources for the given account.", - "canonical": true, - "file": "data_sources_service.list_data_sources.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDataSources", - "fullName": "google.shopping.merchant.datasources.v1.DataSourcesService.ListDataSources", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.datasources.v1.ListDataSourcesResponse", - "client": { - "shortName": "DataSourcesServiceClient", - "fullName": "google.shopping.merchant.datasources.v1.DataSourcesServiceClient" - }, - "method": { - "shortName": "ListDataSources", - "fullName": "google.shopping.merchant.datasources.v1.DataSourcesService.ListDataSources", - "service": { - "shortName": "DataSourcesService", - "fullName": "google.shopping.merchant.datasources.v1.DataSourcesService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_DataSourcesService_CreateDataSource_async", - "title": "DataSourcesService createDataSource Sample", - "origin": "API_DEFINITION", - "description": " Creates the new data source configuration for the given account. This method always creates a new data source.", - "canonical": true, - "file": "data_sources_service.create_data_source.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDataSource", - "fullName": "google.shopping.merchant.datasources.v1.DataSourcesService.CreateDataSource", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "data_source", - "type": ".google.shopping.merchant.datasources.v1.DataSource" - } - ], - "resultType": ".google.shopping.merchant.datasources.v1.DataSource", - "client": { - "shortName": "DataSourcesServiceClient", - "fullName": "google.shopping.merchant.datasources.v1.DataSourcesServiceClient" - }, - "method": { - "shortName": "CreateDataSource", - "fullName": "google.shopping.merchant.datasources.v1.DataSourcesService.CreateDataSource", - "service": { - "shortName": "DataSourcesService", - "fullName": "google.shopping.merchant.datasources.v1.DataSourcesService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_DataSourcesService_UpdateDataSource_async", - "title": "DataSourcesService updateDataSource Sample", - "origin": "API_DEFINITION", - "description": " Updates the existing data source configuration. The fields that are set in the update mask but not provided in the resource will be deleted.", - "canonical": true, - "file": "data_sources_service.update_data_source.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDataSource", - "fullName": "google.shopping.merchant.datasources.v1.DataSourcesService.UpdateDataSource", - "async": true, - "parameters": [ - { - "name": "data_source", - "type": ".google.shopping.merchant.datasources.v1.DataSource" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.shopping.merchant.datasources.v1.DataSource", - "client": { - "shortName": "DataSourcesServiceClient", - "fullName": "google.shopping.merchant.datasources.v1.DataSourcesServiceClient" - }, - "method": { - "shortName": "UpdateDataSource", - "fullName": "google.shopping.merchant.datasources.v1.DataSourcesService.UpdateDataSource", - "service": { - "shortName": "DataSourcesService", - "fullName": "google.shopping.merchant.datasources.v1.DataSourcesService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_DataSourcesService_DeleteDataSource_async", - "title": "DataSourcesService deleteDataSource Sample", - "origin": "API_DEFINITION", - "description": " Deletes a data source from your Merchant Center account.", - "canonical": true, - "file": "data_sources_service.delete_data_source.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDataSource", - "fullName": "google.shopping.merchant.datasources.v1.DataSourcesService.DeleteDataSource", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DataSourcesServiceClient", - "fullName": "google.shopping.merchant.datasources.v1.DataSourcesServiceClient" - }, - "method": { - "shortName": "DeleteDataSource", - "fullName": "google.shopping.merchant.datasources.v1.DataSourcesService.DeleteDataSource", - "service": { - "shortName": "DataSourcesService", - "fullName": "google.shopping.merchant.datasources.v1.DataSourcesService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_DataSourcesService_FetchDataSource_async", - "title": "DataSourcesService fetchDataSource Sample", - "origin": "API_DEFINITION", - "description": " Performs the data fetch immediately (even outside fetch schedule) on a data source from your Merchant Center Account. If you need to call this method more than once per day, you should use the Products service to update your product data instead. This method only works on data sources with a file input set.", - "canonical": true, - "file": "data_sources_service.fetch_data_source.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchDataSource", - "fullName": "google.shopping.merchant.datasources.v1.DataSourcesService.FetchDataSource", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DataSourcesServiceClient", - "fullName": "google.shopping.merchant.datasources.v1.DataSourcesServiceClient" - }, - "method": { - "shortName": "FetchDataSource", - "fullName": "google.shopping.merchant.datasources.v1.DataSourcesService.FetchDataSource", - "service": { - "shortName": "DataSourcesService", - "fullName": "google.shopping.merchant.datasources.v1.DataSourcesService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_FileUploadsService_GetFileUpload_async", - "title": "DataSourcesService getFileUpload Sample", - "origin": "API_DEFINITION", - "description": " Gets the latest data source file upload. Only the `latest` alias is accepted for a file upload.", - "canonical": true, - "file": "file_uploads_service.get_file_upload.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFileUpload", - "fullName": "google.shopping.merchant.datasources.v1.FileUploadsService.GetFileUpload", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.datasources.v1.FileUpload", - "client": { - "shortName": "FileUploadsServiceClient", - "fullName": "google.shopping.merchant.datasources.v1.FileUploadsServiceClient" - }, - "method": { - "shortName": "GetFileUpload", - "fullName": "google.shopping.merchant.datasources.v1.FileUploadsService.GetFileUpload", - "service": { - "shortName": "FileUploadsService", - "fullName": "google.shopping.merchant.datasources.v1.FileUploadsService" - } - } - } - } - ] -} diff --git a/packages/google-shopping-merchant-datasources/samples/generated/v1beta/snippet_metadata_google.shopping.merchant.datasources.v1beta.json b/packages/google-shopping-merchant-datasources/samples/generated/v1beta/snippet_metadata_google.shopping.merchant.datasources.v1beta.json deleted file mode 100644 index 48cc2265671f..000000000000 --- a/packages/google-shopping-merchant-datasources/samples/generated/v1beta/snippet_metadata_google.shopping.merchant.datasources.v1beta.json +++ /dev/null @@ -1,311 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-datasources", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.shopping.merchant.datasources.v1beta", - "version": "v1beta" - } - ] - }, - "snippets": [ - { - "regionTag": "merchantapi_v1beta_generated_DataSourcesService_GetDataSource_async", - "title": "DataSourcesService getDataSource Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the data source configuration for the given account.", - "canonical": true, - "file": "data_sources_service.get_data_source.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetDataSource", - "fullName": "google.shopping.merchant.datasources.v1beta.DataSourcesService.GetDataSource", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.datasources.v1beta.DataSource", - "client": { - "shortName": "DataSourcesServiceClient", - "fullName": "google.shopping.merchant.datasources.v1beta.DataSourcesServiceClient" - }, - "method": { - "shortName": "GetDataSource", - "fullName": "google.shopping.merchant.datasources.v1beta.DataSourcesService.GetDataSource", - "service": { - "shortName": "DataSourcesService", - "fullName": "google.shopping.merchant.datasources.v1beta.DataSourcesService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_DataSourcesService_ListDataSources_async", - "title": "DataSourcesService listDataSources Sample", - "origin": "API_DEFINITION", - "description": " Lists the configurations for data sources for the given account.", - "canonical": true, - "file": "data_sources_service.list_data_sources.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListDataSources", - "fullName": "google.shopping.merchant.datasources.v1beta.DataSourcesService.ListDataSources", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.datasources.v1beta.ListDataSourcesResponse", - "client": { - "shortName": "DataSourcesServiceClient", - "fullName": "google.shopping.merchant.datasources.v1beta.DataSourcesServiceClient" - }, - "method": { - "shortName": "ListDataSources", - "fullName": "google.shopping.merchant.datasources.v1beta.DataSourcesService.ListDataSources", - "service": { - "shortName": "DataSourcesService", - "fullName": "google.shopping.merchant.datasources.v1beta.DataSourcesService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_DataSourcesService_CreateDataSource_async", - "title": "DataSourcesService createDataSource Sample", - "origin": "API_DEFINITION", - "description": " Creates the new data source configuration for the given account.", - "canonical": true, - "file": "data_sources_service.create_data_source.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateDataSource", - "fullName": "google.shopping.merchant.datasources.v1beta.DataSourcesService.CreateDataSource", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "data_source", - "type": ".google.shopping.merchant.datasources.v1beta.DataSource" - } - ], - "resultType": ".google.shopping.merchant.datasources.v1beta.DataSource", - "client": { - "shortName": "DataSourcesServiceClient", - "fullName": "google.shopping.merchant.datasources.v1beta.DataSourcesServiceClient" - }, - "method": { - "shortName": "CreateDataSource", - "fullName": "google.shopping.merchant.datasources.v1beta.DataSourcesService.CreateDataSource", - "service": { - "shortName": "DataSourcesService", - "fullName": "google.shopping.merchant.datasources.v1beta.DataSourcesService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_DataSourcesService_UpdateDataSource_async", - "title": "DataSourcesService updateDataSource Sample", - "origin": "API_DEFINITION", - "description": " Updates the existing data source configuration. The fields that are set in the update mask but not provided in the resource will be deleted.", - "canonical": true, - "file": "data_sources_service.update_data_source.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateDataSource", - "fullName": "google.shopping.merchant.datasources.v1beta.DataSourcesService.UpdateDataSource", - "async": true, - "parameters": [ - { - "name": "data_source", - "type": ".google.shopping.merchant.datasources.v1beta.DataSource" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.shopping.merchant.datasources.v1beta.DataSource", - "client": { - "shortName": "DataSourcesServiceClient", - "fullName": "google.shopping.merchant.datasources.v1beta.DataSourcesServiceClient" - }, - "method": { - "shortName": "UpdateDataSource", - "fullName": "google.shopping.merchant.datasources.v1beta.DataSourcesService.UpdateDataSource", - "service": { - "shortName": "DataSourcesService", - "fullName": "google.shopping.merchant.datasources.v1beta.DataSourcesService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_DataSourcesService_DeleteDataSource_async", - "title": "DataSourcesService deleteDataSource Sample", - "origin": "API_DEFINITION", - "description": " Deletes a data source from your Merchant Center account.", - "canonical": true, - "file": "data_sources_service.delete_data_source.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteDataSource", - "fullName": "google.shopping.merchant.datasources.v1beta.DataSourcesService.DeleteDataSource", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DataSourcesServiceClient", - "fullName": "google.shopping.merchant.datasources.v1beta.DataSourcesServiceClient" - }, - "method": { - "shortName": "DeleteDataSource", - "fullName": "google.shopping.merchant.datasources.v1beta.DataSourcesService.DeleteDataSource", - "service": { - "shortName": "DataSourcesService", - "fullName": "google.shopping.merchant.datasources.v1beta.DataSourcesService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_DataSourcesService_FetchDataSource_async", - "title": "DataSourcesService fetchDataSource Sample", - "origin": "API_DEFINITION", - "description": " Performs the data fetch immediately (even outside fetch schedule) on a data source from your Merchant Center Account. If you need to call this method more than once per day, you should use the Products service to update your product data instead. This method only works on data sources with a file input set.", - "canonical": true, - "file": "data_sources_service.fetch_data_source.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "FetchDataSource", - "fullName": "google.shopping.merchant.datasources.v1beta.DataSourcesService.FetchDataSource", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "DataSourcesServiceClient", - "fullName": "google.shopping.merchant.datasources.v1beta.DataSourcesServiceClient" - }, - "method": { - "shortName": "FetchDataSource", - "fullName": "google.shopping.merchant.datasources.v1beta.DataSourcesService.FetchDataSource", - "service": { - "shortName": "DataSourcesService", - "fullName": "google.shopping.merchant.datasources.v1beta.DataSourcesService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_FileUploadsService_GetFileUpload_async", - "title": "DataSourcesService getFileUpload Sample", - "origin": "API_DEFINITION", - "description": " Gets the latest data source file upload. Only the `latest` alias is accepted for a file upload.", - "canonical": true, - "file": "file_uploads_service.get_file_upload.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFileUpload", - "fullName": "google.shopping.merchant.datasources.v1beta.FileUploadsService.GetFileUpload", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.datasources.v1beta.FileUpload", - "client": { - "shortName": "FileUploadsServiceClient", - "fullName": "google.shopping.merchant.datasources.v1beta.FileUploadsServiceClient" - }, - "method": { - "shortName": "GetFileUpload", - "fullName": "google.shopping.merchant.datasources.v1beta.FileUploadsService.GetFileUpload", - "service": { - "shortName": "FileUploadsService", - "fullName": "google.shopping.merchant.datasources.v1beta.FileUploadsService" - } - } - } - } - ] -} diff --git a/packages/google-shopping-merchant-inventories/samples/generated/v1/snippet_metadata_google.shopping.merchant.inventories.v1.json b/packages/google-shopping-merchant-inventories/samples/generated/v1/snippet_metadata_google.shopping.merchant.inventories.v1.json deleted file mode 100644 index 2c8e3a48342a..000000000000 --- a/packages/google-shopping-merchant-inventories/samples/generated/v1/snippet_metadata_google.shopping.merchant.inventories.v1.json +++ /dev/null @@ -1,279 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-inventories", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.shopping.merchant.inventories.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "merchantapi_v1_generated_LocalInventoryService_ListLocalInventories_async", - "title": "LocalInventoryService listLocalInventories Sample", - "origin": "API_DEFINITION", - "description": " Lists the `LocalInventory` resources for the given product in your merchant account. The response might contain fewer items than specified by `pageSize`. If `pageToken` was returned in previous request, it can be used to obtain additional results. `LocalInventory` resources are listed per product for a given account.", - "canonical": true, - "file": "local_inventory_service.list_local_inventories.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 99, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListLocalInventories", - "fullName": "google.shopping.merchant.inventories.v1.LocalInventoryService.ListLocalInventories", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.inventories.v1.ListLocalInventoriesResponse", - "client": { - "shortName": "LocalInventoryServiceClient", - "fullName": "google.shopping.merchant.inventories.v1.LocalInventoryServiceClient" - }, - "method": { - "shortName": "ListLocalInventories", - "fullName": "google.shopping.merchant.inventories.v1.LocalInventoryService.ListLocalInventories", - "service": { - "shortName": "LocalInventoryService", - "fullName": "google.shopping.merchant.inventories.v1.LocalInventoryService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_LocalInventoryService_InsertLocalInventory_async", - "title": "LocalInventoryService insertLocalInventory Sample", - "origin": "API_DEFINITION", - "description": " Inserts a `LocalInventory` resource to a product in your merchant account. Replaces the full `LocalInventory` resource if an entry with the same [`storeCode`][google.shopping.merchant.inventories.v1.LocalInventory.store_code] already exists for the product. It might take up to 30 minutes for the new or updated `LocalInventory` resource to appear in products.", - "canonical": true, - "file": "local_inventory_service.insert_local_inventory.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "InsertLocalInventory", - "fullName": "google.shopping.merchant.inventories.v1.LocalInventoryService.InsertLocalInventory", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "local_inventory", - "type": ".google.shopping.merchant.inventories.v1.LocalInventory" - } - ], - "resultType": ".google.shopping.merchant.inventories.v1.LocalInventory", - "client": { - "shortName": "LocalInventoryServiceClient", - "fullName": "google.shopping.merchant.inventories.v1.LocalInventoryServiceClient" - }, - "method": { - "shortName": "InsertLocalInventory", - "fullName": "google.shopping.merchant.inventories.v1.LocalInventoryService.InsertLocalInventory", - "service": { - "shortName": "LocalInventoryService", - "fullName": "google.shopping.merchant.inventories.v1.LocalInventoryService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_LocalInventoryService_DeleteLocalInventory_async", - "title": "LocalInventoryService deleteLocalInventory Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified `LocalInventory` from the given product in your merchant account. It might take a up to an hour for the `LocalInventory` to be deleted from the specific product. Once you have received a successful delete response, wait for that period before attempting a delete again.", - "canonical": true, - "file": "local_inventory_service.delete_local_inventory.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteLocalInventory", - "fullName": "google.shopping.merchant.inventories.v1.LocalInventoryService.DeleteLocalInventory", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "LocalInventoryServiceClient", - "fullName": "google.shopping.merchant.inventories.v1.LocalInventoryServiceClient" - }, - "method": { - "shortName": "DeleteLocalInventory", - "fullName": "google.shopping.merchant.inventories.v1.LocalInventoryService.DeleteLocalInventory", - "service": { - "shortName": "LocalInventoryService", - "fullName": "google.shopping.merchant.inventories.v1.LocalInventoryService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_RegionalInventoryService_ListRegionalInventories_async", - "title": "LocalInventoryService listRegionalInventories Sample", - "origin": "API_DEFINITION", - "description": " Lists the `RegionalInventory` resources for the given product in your merchant account. The response might contain fewer items than specified by `pageSize`. If `pageToken` was returned in previous request, it can be used to obtain additional results. `RegionalInventory` resources are listed per product for a given account.", - "canonical": true, - "file": "regional_inventory_service.list_regional_inventories.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 99, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRegionalInventories", - "fullName": "google.shopping.merchant.inventories.v1.RegionalInventoryService.ListRegionalInventories", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.inventories.v1.ListRegionalInventoriesResponse", - "client": { - "shortName": "RegionalInventoryServiceClient", - "fullName": "google.shopping.merchant.inventories.v1.RegionalInventoryServiceClient" - }, - "method": { - "shortName": "ListRegionalInventories", - "fullName": "google.shopping.merchant.inventories.v1.RegionalInventoryService.ListRegionalInventories", - "service": { - "shortName": "RegionalInventoryService", - "fullName": "google.shopping.merchant.inventories.v1.RegionalInventoryService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_RegionalInventoryService_InsertRegionalInventory_async", - "title": "LocalInventoryService insertRegionalInventory Sample", - "origin": "API_DEFINITION", - "description": " Inserts a `RegionalInventory` to a given product in your merchant account. Replaces the full `RegionalInventory` resource if an entry with the same [`region`][google.shopping.merchant.inventories.v1.RegionalInventory.region] already exists for the product. It might take up to 30 minutes for the new or updated `RegionalInventory` resource to appear in products.", - "canonical": true, - "file": "regional_inventory_service.insert_regional_inventory.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 87, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "InsertRegionalInventory", - "fullName": "google.shopping.merchant.inventories.v1.RegionalInventoryService.InsertRegionalInventory", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "regional_inventory", - "type": ".google.shopping.merchant.inventories.v1.RegionalInventory" - } - ], - "resultType": ".google.shopping.merchant.inventories.v1.RegionalInventory", - "client": { - "shortName": "RegionalInventoryServiceClient", - "fullName": "google.shopping.merchant.inventories.v1.RegionalInventoryServiceClient" - }, - "method": { - "shortName": "InsertRegionalInventory", - "fullName": "google.shopping.merchant.inventories.v1.RegionalInventoryService.InsertRegionalInventory", - "service": { - "shortName": "RegionalInventoryService", - "fullName": "google.shopping.merchant.inventories.v1.RegionalInventoryService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_RegionalInventoryService_DeleteRegionalInventory_async", - "title": "LocalInventoryService deleteRegionalInventory Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified `RegionalInventory` resource from the given product in your merchant account. It might take up to an hour for the `RegionalInventory` to be deleted from the specific product. Once you have received a successful delete response, wait for that period before attempting a delete again.", - "canonical": true, - "file": "regional_inventory_service.delete_regional_inventory.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteRegionalInventory", - "fullName": "google.shopping.merchant.inventories.v1.RegionalInventoryService.DeleteRegionalInventory", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "RegionalInventoryServiceClient", - "fullName": "google.shopping.merchant.inventories.v1.RegionalInventoryServiceClient" - }, - "method": { - "shortName": "DeleteRegionalInventory", - "fullName": "google.shopping.merchant.inventories.v1.RegionalInventoryService.DeleteRegionalInventory", - "service": { - "shortName": "RegionalInventoryService", - "fullName": "google.shopping.merchant.inventories.v1.RegionalInventoryService" - } - } - } - } - ] -} diff --git a/packages/google-shopping-merchant-inventories/samples/generated/v1beta/snippet_metadata_google.shopping.merchant.inventories.v1beta.json b/packages/google-shopping-merchant-inventories/samples/generated/v1beta/snippet_metadata_google.shopping.merchant.inventories.v1beta.json deleted file mode 100644 index 8dca5543221a..000000000000 --- a/packages/google-shopping-merchant-inventories/samples/generated/v1beta/snippet_metadata_google.shopping.merchant.inventories.v1beta.json +++ /dev/null @@ -1,279 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-inventories", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.shopping.merchant.inventories.v1beta", - "version": "v1beta" - } - ] - }, - "snippets": [ - { - "regionTag": "merchantapi_v1beta_generated_LocalInventoryService_ListLocalInventories_async", - "title": "LocalInventoryService listLocalInventories Sample", - "origin": "API_DEFINITION", - "description": " Lists the `LocalInventory` resources for the given product in your merchant account. The response might contain fewer items than specified by `pageSize`. If `pageToken` was returned in previous request, it can be used to obtain additional results. `LocalInventory` resources are listed per product for a given account.", - "canonical": true, - "file": "local_inventory_service.list_local_inventories.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 74, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListLocalInventories", - "fullName": "google.shopping.merchant.inventories.v1beta.LocalInventoryService.ListLocalInventories", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse", - "client": { - "shortName": "LocalInventoryServiceClient", - "fullName": "google.shopping.merchant.inventories.v1beta.LocalInventoryServiceClient" - }, - "method": { - "shortName": "ListLocalInventories", - "fullName": "google.shopping.merchant.inventories.v1beta.LocalInventoryService.ListLocalInventories", - "service": { - "shortName": "LocalInventoryService", - "fullName": "google.shopping.merchant.inventories.v1beta.LocalInventoryService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_LocalInventoryService_InsertLocalInventory_async", - "title": "LocalInventoryService insertLocalInventory Sample", - "origin": "API_DEFINITION", - "description": " Inserts a `LocalInventory` resource to a product in your merchant account. Replaces the full `LocalInventory` resource if an entry with the same [`storeCode`][google.shopping.merchant.inventories.v1beta.LocalInventory.store_code] already exists for the product. It might take up to 30 minutes for the new or updated `LocalInventory` resource to appear in products.", - "canonical": true, - "file": "local_inventory_service.insert_local_inventory.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "InsertLocalInventory", - "fullName": "google.shopping.merchant.inventories.v1beta.LocalInventoryService.InsertLocalInventory", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "local_inventory", - "type": ".google.shopping.merchant.inventories.v1beta.LocalInventory" - } - ], - "resultType": ".google.shopping.merchant.inventories.v1beta.LocalInventory", - "client": { - "shortName": "LocalInventoryServiceClient", - "fullName": "google.shopping.merchant.inventories.v1beta.LocalInventoryServiceClient" - }, - "method": { - "shortName": "InsertLocalInventory", - "fullName": "google.shopping.merchant.inventories.v1beta.LocalInventoryService.InsertLocalInventory", - "service": { - "shortName": "LocalInventoryService", - "fullName": "google.shopping.merchant.inventories.v1beta.LocalInventoryService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_LocalInventoryService_DeleteLocalInventory_async", - "title": "LocalInventoryService deleteLocalInventory Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified `LocalInventory` from the given product in your merchant account. It might take a up to an hour for the `LocalInventory` to be deleted from the specific product. Once you have received a successful delete response, wait for that period before attempting a delete again.", - "canonical": true, - "file": "local_inventory_service.delete_local_inventory.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteLocalInventory", - "fullName": "google.shopping.merchant.inventories.v1beta.LocalInventoryService.DeleteLocalInventory", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "LocalInventoryServiceClient", - "fullName": "google.shopping.merchant.inventories.v1beta.LocalInventoryServiceClient" - }, - "method": { - "shortName": "DeleteLocalInventory", - "fullName": "google.shopping.merchant.inventories.v1beta.LocalInventoryService.DeleteLocalInventory", - "service": { - "shortName": "LocalInventoryService", - "fullName": "google.shopping.merchant.inventories.v1beta.LocalInventoryService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_RegionalInventoryService_ListRegionalInventories_async", - "title": "LocalInventoryService listRegionalInventories Sample", - "origin": "API_DEFINITION", - "description": " Lists the `RegionalInventory` resources for the given product in your merchant account. The response might contain fewer items than specified by `pageSize`. If `pageToken` was returned in previous request, it can be used to obtain additional results. `RegionalInventory` resources are listed per product for a given account.", - "canonical": true, - "file": "regional_inventory_service.list_regional_inventories.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListRegionalInventories", - "fullName": "google.shopping.merchant.inventories.v1beta.RegionalInventoryService.ListRegionalInventories", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse", - "client": { - "shortName": "RegionalInventoryServiceClient", - "fullName": "google.shopping.merchant.inventories.v1beta.RegionalInventoryServiceClient" - }, - "method": { - "shortName": "ListRegionalInventories", - "fullName": "google.shopping.merchant.inventories.v1beta.RegionalInventoryService.ListRegionalInventories", - "service": { - "shortName": "RegionalInventoryService", - "fullName": "google.shopping.merchant.inventories.v1beta.RegionalInventoryService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_RegionalInventoryService_InsertRegionalInventory_async", - "title": "LocalInventoryService insertRegionalInventory Sample", - "origin": "API_DEFINITION", - "description": " Inserts a `RegionalInventory` to a given product in your merchant account. Replaces the full `RegionalInventory` resource if an entry with the same [`region`][google.shopping.merchant.inventories.v1beta.RegionalInventory.region] already exists for the product. It might take up to 30 minutes for the new or updated `RegionalInventory` resource to appear in products.", - "canonical": true, - "file": "regional_inventory_service.insert_regional_inventory.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "InsertRegionalInventory", - "fullName": "google.shopping.merchant.inventories.v1beta.RegionalInventoryService.InsertRegionalInventory", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "regional_inventory", - "type": ".google.shopping.merchant.inventories.v1beta.RegionalInventory" - } - ], - "resultType": ".google.shopping.merchant.inventories.v1beta.RegionalInventory", - "client": { - "shortName": "RegionalInventoryServiceClient", - "fullName": "google.shopping.merchant.inventories.v1beta.RegionalInventoryServiceClient" - }, - "method": { - "shortName": "InsertRegionalInventory", - "fullName": "google.shopping.merchant.inventories.v1beta.RegionalInventoryService.InsertRegionalInventory", - "service": { - "shortName": "RegionalInventoryService", - "fullName": "google.shopping.merchant.inventories.v1beta.RegionalInventoryService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_RegionalInventoryService_DeleteRegionalInventory_async", - "title": "LocalInventoryService deleteRegionalInventory Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified `RegionalInventory` resource from the given product in your merchant account. It might take up to an hour for the `RegionalInventory` to be deleted from the specific product. Once you have received a successful delete response, wait for that period before attempting a delete again.", - "canonical": true, - "file": "regional_inventory_service.delete_regional_inventory.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteRegionalInventory", - "fullName": "google.shopping.merchant.inventories.v1beta.RegionalInventoryService.DeleteRegionalInventory", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "RegionalInventoryServiceClient", - "fullName": "google.shopping.merchant.inventories.v1beta.RegionalInventoryServiceClient" - }, - "method": { - "shortName": "DeleteRegionalInventory", - "fullName": "google.shopping.merchant.inventories.v1beta.RegionalInventoryService.DeleteRegionalInventory", - "service": { - "shortName": "RegionalInventoryService", - "fullName": "google.shopping.merchant.inventories.v1beta.RegionalInventoryService" - } - } - } - } - ] -} diff --git a/packages/google-shopping-merchant-issueresolution/samples/generated/v1/snippet_metadata_google.shopping.merchant.issueresolution.v1.json b/packages/google-shopping-merchant-issueresolution/samples/generated/v1/snippet_metadata_google.shopping.merchant.issueresolution.v1.json deleted file mode 100644 index 6e62505cfa65..000000000000 --- a/packages/google-shopping-merchant-issueresolution/samples/generated/v1/snippet_metadata_google.shopping.merchant.issueresolution.v1.json +++ /dev/null @@ -1,219 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-issueresolution", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.shopping.merchant.issueresolution.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "merchantapi_v1_generated_AggregateProductStatusesService_ListAggregateProductStatuses_async", - "title": "AggregateProductStatusesService listAggregateProductStatuses Sample", - "origin": "API_DEFINITION", - "description": " Lists the `AggregateProductStatuses` resources for your merchant account. The response might contain fewer items than specified by `pageSize`. If `pageToken` was returned in previous request, it can be used to obtain additional results.", - "canonical": true, - "file": "aggregate_product_statuses_service.list_aggregate_product_statuses.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAggregateProductStatuses", - "fullName": "google.shopping.merchant.issueresolution.v1.AggregateProductStatusesService.ListAggregateProductStatuses", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.issueresolution.v1.ListAggregateProductStatusesResponse", - "client": { - "shortName": "AggregateProductStatusesServiceClient", - "fullName": "google.shopping.merchant.issueresolution.v1.AggregateProductStatusesServiceClient" - }, - "method": { - "shortName": "ListAggregateProductStatuses", - "fullName": "google.shopping.merchant.issueresolution.v1.AggregateProductStatusesService.ListAggregateProductStatuses", - "service": { - "shortName": "AggregateProductStatusesService", - "fullName": "google.shopping.merchant.issueresolution.v1.AggregateProductStatusesService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_IssueResolutionService_RenderAccountIssues_async", - "title": "AggregateProductStatusesService renderAccountIssues Sample", - "origin": "API_DEFINITION", - "description": " Provide a list of business's account issues with an issue resolution content and available actions. This content and actions are meant to be rendered and shown in third-party applications.", - "canonical": true, - "file": "issue_resolution_service.render_account_issues.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RenderAccountIssues", - "fullName": "google.shopping.merchant.issueresolution.v1.IssueResolutionService.RenderAccountIssues", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "time_zone", - "type": "TYPE_STRING" - }, - { - "name": "payload", - "type": ".google.shopping.merchant.issueresolution.v1.RenderIssuesRequestPayload" - } - ], - "resultType": ".google.shopping.merchant.issueresolution.v1.RenderAccountIssuesResponse", - "client": { - "shortName": "IssueResolutionServiceClient", - "fullName": "google.shopping.merchant.issueresolution.v1.IssueResolutionServiceClient" - }, - "method": { - "shortName": "RenderAccountIssues", - "fullName": "google.shopping.merchant.issueresolution.v1.IssueResolutionService.RenderAccountIssues", - "service": { - "shortName": "IssueResolutionService", - "fullName": "google.shopping.merchant.issueresolution.v1.IssueResolutionService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_IssueResolutionService_RenderProductIssues_async", - "title": "AggregateProductStatusesService renderProductIssues Sample", - "origin": "API_DEFINITION", - "description": " Provide a list of issues for business's product with an issue resolution content and available actions. This content and actions are meant to be rendered and shown in third-party applications.", - "canonical": true, - "file": "issue_resolution_service.render_product_issues.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RenderProductIssues", - "fullName": "google.shopping.merchant.issueresolution.v1.IssueResolutionService.RenderProductIssues", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "time_zone", - "type": "TYPE_STRING" - }, - { - "name": "payload", - "type": ".google.shopping.merchant.issueresolution.v1.RenderIssuesRequestPayload" - } - ], - "resultType": ".google.shopping.merchant.issueresolution.v1.RenderProductIssuesResponse", - "client": { - "shortName": "IssueResolutionServiceClient", - "fullName": "google.shopping.merchant.issueresolution.v1.IssueResolutionServiceClient" - }, - "method": { - "shortName": "RenderProductIssues", - "fullName": "google.shopping.merchant.issueresolution.v1.IssueResolutionService.RenderProductIssues", - "service": { - "shortName": "IssueResolutionService", - "fullName": "google.shopping.merchant.issueresolution.v1.IssueResolutionService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_IssueResolutionService_TriggerAction_async", - "title": "AggregateProductStatusesService triggerAction Sample", - "origin": "API_DEFINITION", - "description": " Start an action. The action can be requested by a business in third-party application. Before the business can request the action, the third-party application needs to show them action specific content and display a user input form. The action can be successfully started only once all `required` inputs are provided. If any `required` input is missing, or invalid value was provided, the service will return 400 error. Validation errors will contain [Ids][google.shopping.merchant.issueresolution.v1.InputField.id] for all problematic field together with translated, human readable error messages that can be shown to the user.", - "canonical": true, - "file": "issue_resolution_service.trigger_action.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TriggerAction", - "fullName": "google.shopping.merchant.issueresolution.v1.IssueResolutionService.TriggerAction", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "payload", - "type": ".google.shopping.merchant.issueresolution.v1.TriggerActionPayload" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.issueresolution.v1.TriggerActionResponse", - "client": { - "shortName": "IssueResolutionServiceClient", - "fullName": "google.shopping.merchant.issueresolution.v1.IssueResolutionServiceClient" - }, - "method": { - "shortName": "TriggerAction", - "fullName": "google.shopping.merchant.issueresolution.v1.IssueResolutionService.TriggerAction", - "service": { - "shortName": "IssueResolutionService", - "fullName": "google.shopping.merchant.issueresolution.v1.IssueResolutionService" - } - } - } - } - ] -} diff --git a/packages/google-shopping-merchant-issueresolution/samples/generated/v1beta/snippet_metadata_google.shopping.merchant.issueresolution.v1beta.json b/packages/google-shopping-merchant-issueresolution/samples/generated/v1beta/snippet_metadata_google.shopping.merchant.issueresolution.v1beta.json deleted file mode 100644 index 656dc7a38c6f..000000000000 --- a/packages/google-shopping-merchant-issueresolution/samples/generated/v1beta/snippet_metadata_google.shopping.merchant.issueresolution.v1beta.json +++ /dev/null @@ -1,219 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-issueresolution", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.shopping.merchant.issueresolution.v1beta", - "version": "v1beta" - } - ] - }, - "snippets": [ - { - "regionTag": "merchantapi_v1beta_generated_AggregateProductStatusesService_ListAggregateProductStatuses_async", - "title": "AggregateProductStatusesService listAggregateProductStatuses Sample", - "origin": "API_DEFINITION", - "description": " Lists the `AggregateProductStatuses` resources for your merchant account. The response might contain fewer items than specified by `pageSize`. If `pageToken` was returned in previous request, it can be used to obtain additional results.", - "canonical": true, - "file": "aggregate_product_statuses_service.list_aggregate_product_statuses.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAggregateProductStatuses", - "fullName": "google.shopping.merchant.issueresolution.v1beta.AggregateProductStatusesService.ListAggregateProductStatuses", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.issueresolution.v1beta.ListAggregateProductStatusesResponse", - "client": { - "shortName": "AggregateProductStatusesServiceClient", - "fullName": "google.shopping.merchant.issueresolution.v1beta.AggregateProductStatusesServiceClient" - }, - "method": { - "shortName": "ListAggregateProductStatuses", - "fullName": "google.shopping.merchant.issueresolution.v1beta.AggregateProductStatusesService.ListAggregateProductStatuses", - "service": { - "shortName": "AggregateProductStatusesService", - "fullName": "google.shopping.merchant.issueresolution.v1beta.AggregateProductStatusesService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_IssueResolutionService_RenderAccountIssues_async", - "title": "AggregateProductStatusesService renderAccountIssues Sample", - "origin": "API_DEFINITION", - "description": " Provide a list of business's account issues with an issue resolution content and available actions. This content and actions are meant to be rendered and shown in third-party applications.", - "canonical": true, - "file": "issue_resolution_service.render_account_issues.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RenderAccountIssues", - "fullName": "google.shopping.merchant.issueresolution.v1beta.IssueResolutionService.RenderAccountIssues", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "time_zone", - "type": "TYPE_STRING" - }, - { - "name": "payload", - "type": ".google.shopping.merchant.issueresolution.v1beta.RenderIssuesRequestPayload" - } - ], - "resultType": ".google.shopping.merchant.issueresolution.v1beta.RenderAccountIssuesResponse", - "client": { - "shortName": "IssueResolutionServiceClient", - "fullName": "google.shopping.merchant.issueresolution.v1beta.IssueResolutionServiceClient" - }, - "method": { - "shortName": "RenderAccountIssues", - "fullName": "google.shopping.merchant.issueresolution.v1beta.IssueResolutionService.RenderAccountIssues", - "service": { - "shortName": "IssueResolutionService", - "fullName": "google.shopping.merchant.issueresolution.v1beta.IssueResolutionService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_IssueResolutionService_RenderProductIssues_async", - "title": "AggregateProductStatusesService renderProductIssues Sample", - "origin": "API_DEFINITION", - "description": " Provide a list of issues for business's product with an issue resolution content and available actions. This content and actions are meant to be rendered and shown in third-party applications.", - "canonical": true, - "file": "issue_resolution_service.render_product_issues.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RenderProductIssues", - "fullName": "google.shopping.merchant.issueresolution.v1beta.IssueResolutionService.RenderProductIssues", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - }, - { - "name": "time_zone", - "type": "TYPE_STRING" - }, - { - "name": "payload", - "type": ".google.shopping.merchant.issueresolution.v1beta.RenderIssuesRequestPayload" - } - ], - "resultType": ".google.shopping.merchant.issueresolution.v1beta.RenderProductIssuesResponse", - "client": { - "shortName": "IssueResolutionServiceClient", - "fullName": "google.shopping.merchant.issueresolution.v1beta.IssueResolutionServiceClient" - }, - "method": { - "shortName": "RenderProductIssues", - "fullName": "google.shopping.merchant.issueresolution.v1beta.IssueResolutionService.RenderProductIssues", - "service": { - "shortName": "IssueResolutionService", - "fullName": "google.shopping.merchant.issueresolution.v1beta.IssueResolutionService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_IssueResolutionService_TriggerAction_async", - "title": "AggregateProductStatusesService triggerAction Sample", - "origin": "API_DEFINITION", - "description": " Start an action. The action can be requested by a business in third-party application. Before the business can request the action, the third-party application needs to show them action specific content and display a user input form. The action can be successfully started only once all `required` inputs are provided. If any `required` input is missing, or invalid value was provided, the service will return 400 error. Validation errors will contain [Ids][google.shopping.merchant.issueresolution.v1beta.InputField.id] for all problematic field together with translated, human readable error messages that can be shown to the user.", - "canonical": true, - "file": "issue_resolution_service.trigger_action.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TriggerAction", - "fullName": "google.shopping.merchant.issueresolution.v1beta.IssueResolutionService.TriggerAction", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "payload", - "type": ".google.shopping.merchant.issueresolution.v1beta.TriggerActionPayload" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.issueresolution.v1beta.TriggerActionResponse", - "client": { - "shortName": "IssueResolutionServiceClient", - "fullName": "google.shopping.merchant.issueresolution.v1beta.IssueResolutionServiceClient" - }, - "method": { - "shortName": "TriggerAction", - "fullName": "google.shopping.merchant.issueresolution.v1beta.IssueResolutionService.TriggerAction", - "service": { - "shortName": "IssueResolutionService", - "fullName": "google.shopping.merchant.issueresolution.v1beta.IssueResolutionService" - } - } - } - } - ] -} diff --git a/packages/google-shopping-merchant-lfp/samples/generated/v1/snippet_metadata_google.shopping.merchant.lfp.v1.json b/packages/google-shopping-merchant-lfp/samples/generated/v1/snippet_metadata_google.shopping.merchant.lfp.v1.json deleted file mode 100644 index fa75465336e1..000000000000 --- a/packages/google-shopping-merchant-lfp/samples/generated/v1/snippet_metadata_google.shopping.merchant.lfp.v1.json +++ /dev/null @@ -1,319 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-lfp", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.shopping.merchant.lfp.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "merchantapi_v1_generated_LfpInventoryService_InsertLfpInventory_async", - "title": "LfpInventoryService insertLfpInventory Sample", - "origin": "API_DEFINITION", - "description": " Inserts a `LfpInventory` resource for the given target merchant account. If the resource already exists, it will be replaced. The inventory automatically expires after 30 days.", - "canonical": true, - "file": "lfp_inventory_service.insert_lfp_inventory.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "InsertLfpInventory", - "fullName": "google.shopping.merchant.lfp.v1.LfpInventoryService.InsertLfpInventory", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "lfp_inventory", - "type": ".google.shopping.merchant.lfp.v1.LfpInventory" - } - ], - "resultType": ".google.shopping.merchant.lfp.v1.LfpInventory", - "client": { - "shortName": "LfpInventoryServiceClient", - "fullName": "google.shopping.merchant.lfp.v1.LfpInventoryServiceClient" - }, - "method": { - "shortName": "InsertLfpInventory", - "fullName": "google.shopping.merchant.lfp.v1.LfpInventoryService.InsertLfpInventory", - "service": { - "shortName": "LfpInventoryService", - "fullName": "google.shopping.merchant.lfp.v1.LfpInventoryService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_LfpMerchantStateService_GetLfpMerchantState_async", - "title": "LfpInventoryService getLfpMerchantState Sample", - "origin": "API_DEFINITION", - "description": " Gets the LFP state of a merchant", - "canonical": true, - "file": "lfp_merchant_state_service.get_lfp_merchant_state.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetLfpMerchantState", - "fullName": "google.shopping.merchant.lfp.v1.LfpMerchantStateService.GetLfpMerchantState", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.lfp.v1.LfpMerchantState", - "client": { - "shortName": "LfpMerchantStateServiceClient", - "fullName": "google.shopping.merchant.lfp.v1.LfpMerchantStateServiceClient" - }, - "method": { - "shortName": "GetLfpMerchantState", - "fullName": "google.shopping.merchant.lfp.v1.LfpMerchantStateService.GetLfpMerchantState", - "service": { - "shortName": "LfpMerchantStateService", - "fullName": "google.shopping.merchant.lfp.v1.LfpMerchantStateService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_LfpSaleService_InsertLfpSale_async", - "title": "LfpInventoryService insertLfpSale Sample", - "origin": "API_DEFINITION", - "description": " Inserts a `LfpSale` for the given merchant.", - "canonical": true, - "file": "lfp_sale_service.insert_lfp_sale.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "InsertLfpSale", - "fullName": "google.shopping.merchant.lfp.v1.LfpSaleService.InsertLfpSale", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "lfp_sale", - "type": ".google.shopping.merchant.lfp.v1.LfpSale" - } - ], - "resultType": ".google.shopping.merchant.lfp.v1.LfpSale", - "client": { - "shortName": "LfpSaleServiceClient", - "fullName": "google.shopping.merchant.lfp.v1.LfpSaleServiceClient" - }, - "method": { - "shortName": "InsertLfpSale", - "fullName": "google.shopping.merchant.lfp.v1.LfpSaleService.InsertLfpSale", - "service": { - "shortName": "LfpSaleService", - "fullName": "google.shopping.merchant.lfp.v1.LfpSaleService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_LfpStoreService_GetLfpStore_async", - "title": "LfpInventoryService getLfpStore Sample", - "origin": "API_DEFINITION", - "description": " Retrieves information about a store.", - "canonical": true, - "file": "lfp_store_service.get_lfp_store.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetLfpStore", - "fullName": "google.shopping.merchant.lfp.v1.LfpStoreService.GetLfpStore", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.lfp.v1.LfpStore", - "client": { - "shortName": "LfpStoreServiceClient", - "fullName": "google.shopping.merchant.lfp.v1.LfpStoreServiceClient" - }, - "method": { - "shortName": "GetLfpStore", - "fullName": "google.shopping.merchant.lfp.v1.LfpStoreService.GetLfpStore", - "service": { - "shortName": "LfpStoreService", - "fullName": "google.shopping.merchant.lfp.v1.LfpStoreService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_LfpStoreService_InsertLfpStore_async", - "title": "LfpInventoryService insertLfpStore Sample", - "origin": "API_DEFINITION", - "description": " Inserts a store for the target merchant. If the store with the same store code already exists, it will be replaced.", - "canonical": true, - "file": "lfp_store_service.insert_lfp_store.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "InsertLfpStore", - "fullName": "google.shopping.merchant.lfp.v1.LfpStoreService.InsertLfpStore", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "lfp_store", - "type": ".google.shopping.merchant.lfp.v1.LfpStore" - } - ], - "resultType": ".google.shopping.merchant.lfp.v1.LfpStore", - "client": { - "shortName": "LfpStoreServiceClient", - "fullName": "google.shopping.merchant.lfp.v1.LfpStoreServiceClient" - }, - "method": { - "shortName": "InsertLfpStore", - "fullName": "google.shopping.merchant.lfp.v1.LfpStoreService.InsertLfpStore", - "service": { - "shortName": "LfpStoreService", - "fullName": "google.shopping.merchant.lfp.v1.LfpStoreService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_LfpStoreService_DeleteLfpStore_async", - "title": "LfpInventoryService deleteLfpStore Sample", - "origin": "API_DEFINITION", - "description": " Deletes a store for a target merchant.", - "canonical": true, - "file": "lfp_store_service.delete_lfp_store.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteLfpStore", - "fullName": "google.shopping.merchant.lfp.v1.LfpStoreService.DeleteLfpStore", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "LfpStoreServiceClient", - "fullName": "google.shopping.merchant.lfp.v1.LfpStoreServiceClient" - }, - "method": { - "shortName": "DeleteLfpStore", - "fullName": "google.shopping.merchant.lfp.v1.LfpStoreService.DeleteLfpStore", - "service": { - "shortName": "LfpStoreService", - "fullName": "google.shopping.merchant.lfp.v1.LfpStoreService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_LfpStoreService_ListLfpStores_async", - "title": "LfpInventoryService listLfpStores Sample", - "origin": "API_DEFINITION", - "description": " Lists the stores of the target merchant, specified by the filter in `ListLfpStoresRequest`.", - "canonical": true, - "file": "lfp_store_service.list_lfp_stores.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListLfpStores", - "fullName": "google.shopping.merchant.lfp.v1.LfpStoreService.ListLfpStores", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "target_account", - "type": "TYPE_INT64" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.lfp.v1.ListLfpStoresResponse", - "client": { - "shortName": "LfpStoreServiceClient", - "fullName": "google.shopping.merchant.lfp.v1.LfpStoreServiceClient" - }, - "method": { - "shortName": "ListLfpStores", - "fullName": "google.shopping.merchant.lfp.v1.LfpStoreService.ListLfpStores", - "service": { - "shortName": "LfpStoreService", - "fullName": "google.shopping.merchant.lfp.v1.LfpStoreService" - } - } - } - } - ] -} diff --git a/packages/google-shopping-merchant-lfp/samples/generated/v1beta/snippet_metadata_google.shopping.merchant.lfp.v1beta.json b/packages/google-shopping-merchant-lfp/samples/generated/v1beta/snippet_metadata_google.shopping.merchant.lfp.v1beta.json deleted file mode 100644 index 552a6be8600d..000000000000 --- a/packages/google-shopping-merchant-lfp/samples/generated/v1beta/snippet_metadata_google.shopping.merchant.lfp.v1beta.json +++ /dev/null @@ -1,319 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-lfp", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.shopping.merchant.lfp.v1beta", - "version": "v1beta" - } - ] - }, - "snippets": [ - { - "regionTag": "merchantapi_v1beta_generated_LfpInventoryService_InsertLfpInventory_async", - "title": "LfpInventoryService insertLfpInventory Sample", - "origin": "API_DEFINITION", - "description": " Inserts a `LfpInventory` resource for the given target merchant account. If the resource already exists, it will be replaced. The inventory automatically expires after 30 days.", - "canonical": true, - "file": "lfp_inventory_service.insert_lfp_inventory.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "InsertLfpInventory", - "fullName": "google.shopping.merchant.lfp.v1beta.LfpInventoryService.InsertLfpInventory", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "lfp_inventory", - "type": ".google.shopping.merchant.lfp.v1beta.LfpInventory" - } - ], - "resultType": ".google.shopping.merchant.lfp.v1beta.LfpInventory", - "client": { - "shortName": "LfpInventoryServiceClient", - "fullName": "google.shopping.merchant.lfp.v1beta.LfpInventoryServiceClient" - }, - "method": { - "shortName": "InsertLfpInventory", - "fullName": "google.shopping.merchant.lfp.v1beta.LfpInventoryService.InsertLfpInventory", - "service": { - "shortName": "LfpInventoryService", - "fullName": "google.shopping.merchant.lfp.v1beta.LfpInventoryService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_LfpMerchantStateService_GetLfpMerchantState_async", - "title": "LfpInventoryService getLfpMerchantState Sample", - "origin": "API_DEFINITION", - "description": " Gets the LFP state of a merchant", - "canonical": true, - "file": "lfp_merchant_state_service.get_lfp_merchant_state.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetLfpMerchantState", - "fullName": "google.shopping.merchant.lfp.v1beta.LfpMerchantStateService.GetLfpMerchantState", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.lfp.v1beta.LfpMerchantState", - "client": { - "shortName": "LfpMerchantStateServiceClient", - "fullName": "google.shopping.merchant.lfp.v1beta.LfpMerchantStateServiceClient" - }, - "method": { - "shortName": "GetLfpMerchantState", - "fullName": "google.shopping.merchant.lfp.v1beta.LfpMerchantStateService.GetLfpMerchantState", - "service": { - "shortName": "LfpMerchantStateService", - "fullName": "google.shopping.merchant.lfp.v1beta.LfpMerchantStateService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_LfpSaleService_InsertLfpSale_async", - "title": "LfpInventoryService insertLfpSale Sample", - "origin": "API_DEFINITION", - "description": " Inserts a `LfpSale` for the given merchant.", - "canonical": true, - "file": "lfp_sale_service.insert_lfp_sale.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "InsertLfpSale", - "fullName": "google.shopping.merchant.lfp.v1beta.LfpSaleService.InsertLfpSale", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "lfp_sale", - "type": ".google.shopping.merchant.lfp.v1beta.LfpSale" - } - ], - "resultType": ".google.shopping.merchant.lfp.v1beta.LfpSale", - "client": { - "shortName": "LfpSaleServiceClient", - "fullName": "google.shopping.merchant.lfp.v1beta.LfpSaleServiceClient" - }, - "method": { - "shortName": "InsertLfpSale", - "fullName": "google.shopping.merchant.lfp.v1beta.LfpSaleService.InsertLfpSale", - "service": { - "shortName": "LfpSaleService", - "fullName": "google.shopping.merchant.lfp.v1beta.LfpSaleService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_LfpStoreService_GetLfpStore_async", - "title": "LfpInventoryService getLfpStore Sample", - "origin": "API_DEFINITION", - "description": " Retrieves information about a store.", - "canonical": true, - "file": "lfp_store_service.get_lfp_store.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetLfpStore", - "fullName": "google.shopping.merchant.lfp.v1beta.LfpStoreService.GetLfpStore", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.lfp.v1beta.LfpStore", - "client": { - "shortName": "LfpStoreServiceClient", - "fullName": "google.shopping.merchant.lfp.v1beta.LfpStoreServiceClient" - }, - "method": { - "shortName": "GetLfpStore", - "fullName": "google.shopping.merchant.lfp.v1beta.LfpStoreService.GetLfpStore", - "service": { - "shortName": "LfpStoreService", - "fullName": "google.shopping.merchant.lfp.v1beta.LfpStoreService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_LfpStoreService_InsertLfpStore_async", - "title": "LfpInventoryService insertLfpStore Sample", - "origin": "API_DEFINITION", - "description": " Inserts a store for the target merchant. If the store with the same store code already exists, it will be replaced.", - "canonical": true, - "file": "lfp_store_service.insert_lfp_store.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "InsertLfpStore", - "fullName": "google.shopping.merchant.lfp.v1beta.LfpStoreService.InsertLfpStore", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "lfp_store", - "type": ".google.shopping.merchant.lfp.v1beta.LfpStore" - } - ], - "resultType": ".google.shopping.merchant.lfp.v1beta.LfpStore", - "client": { - "shortName": "LfpStoreServiceClient", - "fullName": "google.shopping.merchant.lfp.v1beta.LfpStoreServiceClient" - }, - "method": { - "shortName": "InsertLfpStore", - "fullName": "google.shopping.merchant.lfp.v1beta.LfpStoreService.InsertLfpStore", - "service": { - "shortName": "LfpStoreService", - "fullName": "google.shopping.merchant.lfp.v1beta.LfpStoreService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_LfpStoreService_DeleteLfpStore_async", - "title": "LfpInventoryService deleteLfpStore Sample", - "origin": "API_DEFINITION", - "description": " Deletes a store for a target merchant.", - "canonical": true, - "file": "lfp_store_service.delete_lfp_store.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteLfpStore", - "fullName": "google.shopping.merchant.lfp.v1beta.LfpStoreService.DeleteLfpStore", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "LfpStoreServiceClient", - "fullName": "google.shopping.merchant.lfp.v1beta.LfpStoreServiceClient" - }, - "method": { - "shortName": "DeleteLfpStore", - "fullName": "google.shopping.merchant.lfp.v1beta.LfpStoreService.DeleteLfpStore", - "service": { - "shortName": "LfpStoreService", - "fullName": "google.shopping.merchant.lfp.v1beta.LfpStoreService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_LfpStoreService_ListLfpStores_async", - "title": "LfpInventoryService listLfpStores Sample", - "origin": "API_DEFINITION", - "description": " Lists the stores of the target merchant, specified by the filter in `ListLfpStoresRequest`.", - "canonical": true, - "file": "lfp_store_service.list_lfp_stores.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListLfpStores", - "fullName": "google.shopping.merchant.lfp.v1beta.LfpStoreService.ListLfpStores", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "target_account", - "type": "TYPE_INT64" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.lfp.v1beta.ListLfpStoresResponse", - "client": { - "shortName": "LfpStoreServiceClient", - "fullName": "google.shopping.merchant.lfp.v1beta.LfpStoreServiceClient" - }, - "method": { - "shortName": "ListLfpStores", - "fullName": "google.shopping.merchant.lfp.v1beta.LfpStoreService.ListLfpStores", - "service": { - "shortName": "LfpStoreService", - "fullName": "google.shopping.merchant.lfp.v1beta.LfpStoreService" - } - } - } - } - ] -} diff --git a/packages/google-shopping-merchant-notifications/samples/generated/v1/snippet_metadata_google.shopping.merchant.notifications.v1.json b/packages/google-shopping-merchant-notifications/samples/generated/v1/snippet_metadata_google.shopping.merchant.notifications.v1.json deleted file mode 100644 index 365bb535d2de..000000000000 --- a/packages/google-shopping-merchant-notifications/samples/generated/v1/snippet_metadata_google.shopping.merchant.notifications.v1.json +++ /dev/null @@ -1,271 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-notifications", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.shopping.merchant.notifications.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "merchantapi_v1_generated_NotificationsApiService_GetNotificationSubscription_async", - "title": "NotificationsApiService getNotificationSubscription Sample", - "origin": "API_DEFINITION", - "description": " Gets notification subscriptions for an account.", - "canonical": true, - "file": "notifications_api_service.get_notification_subscription.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetNotificationSubscription", - "fullName": "google.shopping.merchant.notifications.v1.NotificationsApiService.GetNotificationSubscription", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.notifications.v1.NotificationSubscription", - "client": { - "shortName": "NotificationsApiServiceClient", - "fullName": "google.shopping.merchant.notifications.v1.NotificationsApiServiceClient" - }, - "method": { - "shortName": "GetNotificationSubscription", - "fullName": "google.shopping.merchant.notifications.v1.NotificationsApiService.GetNotificationSubscription", - "service": { - "shortName": "NotificationsApiService", - "fullName": "google.shopping.merchant.notifications.v1.NotificationsApiService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_NotificationsApiService_CreateNotificationSubscription_async", - "title": "NotificationsApiService createNotificationSubscription Sample", - "origin": "API_DEFINITION", - "description": " Creates a notification subscription for a business. For standalone or subaccounts accounts, the business can create a subscription for self. For MCAs, the business can create a subscription for all managed accounts or for a specific subaccount. We will allow the following types of notification subscriptions to exist together (per business as a subscriber per event type): 1. Subscription for all managed accounts + subscription for self. 2. Multiple \"partial\" subscriptions for managed accounts + subscription for self. we will not allow (per business as a subscriber per event type): 1. Multiple self subscriptions. 2. Multiple \"all managed accounts\" subscriptions. 3. \"All managed accounts\" subscription and partial subscriptions at the same time. 4. Multiple partial subscriptions for the same target account.", - "canonical": true, - "file": "notifications_api_service.create_notification_subscription.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateNotificationSubscription", - "fullName": "google.shopping.merchant.notifications.v1.NotificationsApiService.CreateNotificationSubscription", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "notification_subscription", - "type": ".google.shopping.merchant.notifications.v1.NotificationSubscription" - } - ], - "resultType": ".google.shopping.merchant.notifications.v1.NotificationSubscription", - "client": { - "shortName": "NotificationsApiServiceClient", - "fullName": "google.shopping.merchant.notifications.v1.NotificationsApiServiceClient" - }, - "method": { - "shortName": "CreateNotificationSubscription", - "fullName": "google.shopping.merchant.notifications.v1.NotificationsApiService.CreateNotificationSubscription", - "service": { - "shortName": "NotificationsApiService", - "fullName": "google.shopping.merchant.notifications.v1.NotificationsApiService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_NotificationsApiService_UpdateNotificationSubscription_async", - "title": "NotificationsApiService updateNotificationSubscription Sample", - "origin": "API_DEFINITION", - "description": " Updates an existing notification subscription for a merchant.", - "canonical": true, - "file": "notifications_api_service.update_notification_subscription.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateNotificationSubscription", - "fullName": "google.shopping.merchant.notifications.v1.NotificationsApiService.UpdateNotificationSubscription", - "async": true, - "parameters": [ - { - "name": "notification_subscription", - "type": ".google.shopping.merchant.notifications.v1.NotificationSubscription" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.shopping.merchant.notifications.v1.NotificationSubscription", - "client": { - "shortName": "NotificationsApiServiceClient", - "fullName": "google.shopping.merchant.notifications.v1.NotificationsApiServiceClient" - }, - "method": { - "shortName": "UpdateNotificationSubscription", - "fullName": "google.shopping.merchant.notifications.v1.NotificationsApiService.UpdateNotificationSubscription", - "service": { - "shortName": "NotificationsApiService", - "fullName": "google.shopping.merchant.notifications.v1.NotificationsApiService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_NotificationsApiService_DeleteNotificationSubscription_async", - "title": "NotificationsApiService deleteNotificationSubscription Sample", - "origin": "API_DEFINITION", - "description": " Deletes a notification subscription for a merchant.", - "canonical": true, - "file": "notifications_api_service.delete_notification_subscription.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteNotificationSubscription", - "fullName": "google.shopping.merchant.notifications.v1.NotificationsApiService.DeleteNotificationSubscription", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "NotificationsApiServiceClient", - "fullName": "google.shopping.merchant.notifications.v1.NotificationsApiServiceClient" - }, - "method": { - "shortName": "DeleteNotificationSubscription", - "fullName": "google.shopping.merchant.notifications.v1.NotificationsApiService.DeleteNotificationSubscription", - "service": { - "shortName": "NotificationsApiService", - "fullName": "google.shopping.merchant.notifications.v1.NotificationsApiService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_NotificationsApiService_ListNotificationSubscriptions_async", - "title": "NotificationsApiService listNotificationSubscriptions Sample", - "origin": "API_DEFINITION", - "description": " Gets all the notification subscriptions for a merchant.", - "canonical": true, - "file": "notifications_api_service.list_notification_subscriptions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListNotificationSubscriptions", - "fullName": "google.shopping.merchant.notifications.v1.NotificationsApiService.ListNotificationSubscriptions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.notifications.v1.ListNotificationSubscriptionsResponse", - "client": { - "shortName": "NotificationsApiServiceClient", - "fullName": "google.shopping.merchant.notifications.v1.NotificationsApiServiceClient" - }, - "method": { - "shortName": "ListNotificationSubscriptions", - "fullName": "google.shopping.merchant.notifications.v1.NotificationsApiService.ListNotificationSubscriptions", - "service": { - "shortName": "NotificationsApiService", - "fullName": "google.shopping.merchant.notifications.v1.NotificationsApiService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_NotificationsApiService_GetNotificationSubscriptionHealthMetrics_async", - "title": "NotificationsApiService getNotificationSubscriptionHealthMetrics Sample", - "origin": "API_DEFINITION", - "description": " Retrieves notification subscription health metrics for a merchant. We recommend calling this periodically (hourly or daily) to monitor health of your callback endpoint.", - "canonical": true, - "file": "notifications_api_service.get_notification_subscription_health_metrics.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetNotificationSubscriptionHealthMetrics", - "fullName": "google.shopping.merchant.notifications.v1.NotificationsApiService.GetNotificationSubscriptionHealthMetrics", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.notifications.v1.NotificationSubscriptionHealthMetrics", - "client": { - "shortName": "NotificationsApiServiceClient", - "fullName": "google.shopping.merchant.notifications.v1.NotificationsApiServiceClient" - }, - "method": { - "shortName": "GetNotificationSubscriptionHealthMetrics", - "fullName": "google.shopping.merchant.notifications.v1.NotificationsApiService.GetNotificationSubscriptionHealthMetrics", - "service": { - "shortName": "NotificationsApiService", - "fullName": "google.shopping.merchant.notifications.v1.NotificationsApiService" - } - } - } - } - ] -} diff --git a/packages/google-shopping-merchant-notifications/samples/generated/v1beta/snippet_metadata_google.shopping.merchant.notifications.v1beta.json b/packages/google-shopping-merchant-notifications/samples/generated/v1beta/snippet_metadata_google.shopping.merchant.notifications.v1beta.json deleted file mode 100644 index 1cecb521cf5f..000000000000 --- a/packages/google-shopping-merchant-notifications/samples/generated/v1beta/snippet_metadata_google.shopping.merchant.notifications.v1beta.json +++ /dev/null @@ -1,231 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-notifications", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.shopping.merchant.notifications.v1beta", - "version": "v1beta" - } - ] - }, - "snippets": [ - { - "regionTag": "merchantapi_v1beta_generated_NotificationsApiService_GetNotificationSubscription_async", - "title": "NotificationsApiService getNotificationSubscription Sample", - "origin": "API_DEFINITION", - "description": " Gets notification subscriptions for an account.", - "canonical": true, - "file": "notifications_api_service.get_notification_subscription.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetNotificationSubscription", - "fullName": "google.shopping.merchant.notifications.v1beta.NotificationsApiService.GetNotificationSubscription", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.notifications.v1beta.NotificationSubscription", - "client": { - "shortName": "NotificationsApiServiceClient", - "fullName": "google.shopping.merchant.notifications.v1beta.NotificationsApiServiceClient" - }, - "method": { - "shortName": "GetNotificationSubscription", - "fullName": "google.shopping.merchant.notifications.v1beta.NotificationsApiService.GetNotificationSubscription", - "service": { - "shortName": "NotificationsApiService", - "fullName": "google.shopping.merchant.notifications.v1beta.NotificationsApiService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_NotificationsApiService_CreateNotificationSubscription_async", - "title": "NotificationsApiService createNotificationSubscription Sample", - "origin": "API_DEFINITION", - "description": " Creates a notification subscription for a merchant. We will allow the following types of notification subscriptions to exist together (per merchant as a subscriber per event type): 1. Subscription for all managed accounts + subscription for self 2. Multiple \"partial\" subscriptions for managed accounts + subscription for self we will not allow (per merchant as a subscriber per event type): 1. multiple self subscriptions. 2. multiple \"all managed accounts\" subscriptions. 3. all and partial subscriptions at the same time. 4. multiple partial subscriptions for the same target account", - "canonical": true, - "file": "notifications_api_service.create_notification_subscription.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateNotificationSubscription", - "fullName": "google.shopping.merchant.notifications.v1beta.NotificationsApiService.CreateNotificationSubscription", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "notification_subscription", - "type": ".google.shopping.merchant.notifications.v1beta.NotificationSubscription" - } - ], - "resultType": ".google.shopping.merchant.notifications.v1beta.NotificationSubscription", - "client": { - "shortName": "NotificationsApiServiceClient", - "fullName": "google.shopping.merchant.notifications.v1beta.NotificationsApiServiceClient" - }, - "method": { - "shortName": "CreateNotificationSubscription", - "fullName": "google.shopping.merchant.notifications.v1beta.NotificationsApiService.CreateNotificationSubscription", - "service": { - "shortName": "NotificationsApiService", - "fullName": "google.shopping.merchant.notifications.v1beta.NotificationsApiService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_NotificationsApiService_UpdateNotificationSubscription_async", - "title": "NotificationsApiService updateNotificationSubscription Sample", - "origin": "API_DEFINITION", - "description": " Updates an existing notification subscription for a merchant.", - "canonical": true, - "file": "notifications_api_service.update_notification_subscription.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateNotificationSubscription", - "fullName": "google.shopping.merchant.notifications.v1beta.NotificationsApiService.UpdateNotificationSubscription", - "async": true, - "parameters": [ - { - "name": "notification_subscription", - "type": ".google.shopping.merchant.notifications.v1beta.NotificationSubscription" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.shopping.merchant.notifications.v1beta.NotificationSubscription", - "client": { - "shortName": "NotificationsApiServiceClient", - "fullName": "google.shopping.merchant.notifications.v1beta.NotificationsApiServiceClient" - }, - "method": { - "shortName": "UpdateNotificationSubscription", - "fullName": "google.shopping.merchant.notifications.v1beta.NotificationsApiService.UpdateNotificationSubscription", - "service": { - "shortName": "NotificationsApiService", - "fullName": "google.shopping.merchant.notifications.v1beta.NotificationsApiService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_NotificationsApiService_DeleteNotificationSubscription_async", - "title": "NotificationsApiService deleteNotificationSubscription Sample", - "origin": "API_DEFINITION", - "description": " Deletes a notification subscription for a merchant.", - "canonical": true, - "file": "notifications_api_service.delete_notification_subscription.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteNotificationSubscription", - "fullName": "google.shopping.merchant.notifications.v1beta.NotificationsApiService.DeleteNotificationSubscription", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "NotificationsApiServiceClient", - "fullName": "google.shopping.merchant.notifications.v1beta.NotificationsApiServiceClient" - }, - "method": { - "shortName": "DeleteNotificationSubscription", - "fullName": "google.shopping.merchant.notifications.v1beta.NotificationsApiService.DeleteNotificationSubscription", - "service": { - "shortName": "NotificationsApiService", - "fullName": "google.shopping.merchant.notifications.v1beta.NotificationsApiService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_NotificationsApiService_ListNotificationSubscriptions_async", - "title": "NotificationsApiService listNotificationSubscriptions Sample", - "origin": "API_DEFINITION", - "description": " Gets all the notification subscriptions for a merchant.", - "canonical": true, - "file": "notifications_api_service.list_notification_subscriptions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListNotificationSubscriptions", - "fullName": "google.shopping.merchant.notifications.v1beta.NotificationsApiService.ListNotificationSubscriptions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.notifications.v1beta.ListNotificationSubscriptionsResponse", - "client": { - "shortName": "NotificationsApiServiceClient", - "fullName": "google.shopping.merchant.notifications.v1beta.NotificationsApiServiceClient" - }, - "method": { - "shortName": "ListNotificationSubscriptions", - "fullName": "google.shopping.merchant.notifications.v1beta.NotificationsApiService.ListNotificationSubscriptions", - "service": { - "shortName": "NotificationsApiService", - "fullName": "google.shopping.merchant.notifications.v1beta.NotificationsApiService" - } - } - } - } - ] -} diff --git a/packages/google-shopping-merchant-ordertracking/samples/generated/v1/snippet_metadata_google.shopping.merchant.ordertracking.v1.json b/packages/google-shopping-merchant-ordertracking/samples/generated/v1/snippet_metadata_google.shopping.merchant.ordertracking.v1.json deleted file mode 100644 index 2bb698927b81..000000000000 --- a/packages/google-shopping-merchant-ordertracking/samples/generated/v1/snippet_metadata_google.shopping.merchant.ordertracking.v1.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-ordertracking", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.shopping.merchant.ordertracking.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "merchantapi_v1_generated_OrderTrackingSignalsService_CreateOrderTrackingSignal_async", - "title": "OrderTrackingSignalsService createOrderTrackingSignal Sample", - "origin": "API_DEFINITION", - "description": " Creates new order tracking signal.", - "canonical": true, - "file": "order_tracking_signals_service.create_order_tracking_signal.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateOrderTrackingSignal", - "fullName": "google.shopping.merchant.ordertracking.v1.OrderTrackingSignalsService.CreateOrderTrackingSignal", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "order_tracking_signal_id", - "type": "TYPE_STRING" - }, - { - "name": "order_tracking_signal", - "type": ".google.shopping.merchant.ordertracking.v1.OrderTrackingSignal" - } - ], - "resultType": ".google.shopping.merchant.ordertracking.v1.OrderTrackingSignal", - "client": { - "shortName": "OrderTrackingSignalsServiceClient", - "fullName": "google.shopping.merchant.ordertracking.v1.OrderTrackingSignalsServiceClient" - }, - "method": { - "shortName": "CreateOrderTrackingSignal", - "fullName": "google.shopping.merchant.ordertracking.v1.OrderTrackingSignalsService.CreateOrderTrackingSignal", - "service": { - "shortName": "OrderTrackingSignalsService", - "fullName": "google.shopping.merchant.ordertracking.v1.OrderTrackingSignalsService" - } - } - } - } - ] -} diff --git a/packages/google-shopping-merchant-ordertracking/samples/generated/v1beta/snippet_metadata_google.shopping.merchant.ordertracking.v1beta.json b/packages/google-shopping-merchant-ordertracking/samples/generated/v1beta/snippet_metadata_google.shopping.merchant.ordertracking.v1beta.json deleted file mode 100644 index 4ff4b1aab981..000000000000 --- a/packages/google-shopping-merchant-ordertracking/samples/generated/v1beta/snippet_metadata_google.shopping.merchant.ordertracking.v1beta.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-ordertracking", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.shopping.merchant.ordertracking.v1beta", - "version": "v1beta" - } - ] - }, - "snippets": [ - { - "regionTag": "merchantapi_v1beta_generated_OrderTrackingSignalsService_CreateOrderTrackingSignal_async", - "title": "OrderTrackingSignalsService createOrderTrackingSignal Sample", - "origin": "API_DEFINITION", - "description": " Creates new order tracking signal.", - "canonical": true, - "file": "order_tracking_signals_service.create_order_tracking_signal.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateOrderTrackingSignal", - "fullName": "google.shopping.merchant.ordertracking.v1beta.OrderTrackingSignalsService.CreateOrderTrackingSignal", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "order_tracking_signal_id", - "type": "TYPE_STRING" - }, - { - "name": "order_tracking_signal", - "type": ".google.shopping.merchant.ordertracking.v1beta.OrderTrackingSignal" - } - ], - "resultType": ".google.shopping.merchant.ordertracking.v1beta.OrderTrackingSignal", - "client": { - "shortName": "OrderTrackingSignalsServiceClient", - "fullName": "google.shopping.merchant.ordertracking.v1beta.OrderTrackingSignalsServiceClient" - }, - "method": { - "shortName": "CreateOrderTrackingSignal", - "fullName": "google.shopping.merchant.ordertracking.v1beta.OrderTrackingSignalsService.CreateOrderTrackingSignal", - "service": { - "shortName": "OrderTrackingSignalsService", - "fullName": "google.shopping.merchant.ordertracking.v1beta.OrderTrackingSignalsService" - } - } - } - } - ] -} diff --git a/packages/google-shopping-merchant-products/samples/generated/v1/snippet_metadata_google.shopping.merchant.products.v1.json b/packages/google-shopping-merchant-products/samples/generated/v1/snippet_metadata_google.shopping.merchant.products.v1.json deleted file mode 100644 index e6f7983632bc..000000000000 --- a/packages/google-shopping-merchant-products/samples/generated/v1/snippet_metadata_google.shopping.merchant.products.v1.json +++ /dev/null @@ -1,243 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-products", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.shopping.merchant.products.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "merchantapi_v1_generated_ProductInputsService_InsertProductInput_async", - "title": "ProductInputsService insertProductInput Sample", - "origin": "API_DEFINITION", - "description": " [Uploads a product input to your Merchant Center account](/merchant/api/guides/products/add-manage#add_a_product). You must have a products [data source](/merchant/api/guides/data-sources/api-sources#create-primary-data-source) to be able to insert a product. The unique identifier of the data source is passed as a query parameter in the request URL. If a product input with the same contentLanguage, offerId, and dataSource already exists, then the product input inserted by this method replaces that entry. After inserting, updating, or deleting a product input, it may take several minutes before the processed product can be retrieved.", - "canonical": true, - "file": "product_inputs_service.insert_product_input.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "InsertProductInput", - "fullName": "google.shopping.merchant.products.v1.ProductInputsService.InsertProductInput", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "product_input", - "type": ".google.shopping.merchant.products.v1.ProductInput" - }, - { - "name": "data_source", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.products.v1.ProductInput", - "client": { - "shortName": "ProductInputsServiceClient", - "fullName": "google.shopping.merchant.products.v1.ProductInputsServiceClient" - }, - "method": { - "shortName": "InsertProductInput", - "fullName": "google.shopping.merchant.products.v1.ProductInputsService.InsertProductInput", - "service": { - "shortName": "ProductInputsService", - "fullName": "google.shopping.merchant.products.v1.ProductInputsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_ProductInputsService_UpdateProductInput_async", - "title": "ProductInputsService updateProductInput Sample", - "origin": "API_DEFINITION", - "description": " Updates the existing product input in your Merchant Center account. The name of the product input to update is taken from the `name` field within the `ProductInput` resource. After inserting, updating, or deleting a product input, it may take several minutes before the processed product can be retrieved.", - "canonical": true, - "file": "product_inputs_service.update_product_input.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateProductInput", - "fullName": "google.shopping.merchant.products.v1.ProductInputsService.UpdateProductInput", - "async": true, - "parameters": [ - { - "name": "product_input", - "type": ".google.shopping.merchant.products.v1.ProductInput" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "data_source", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.products.v1.ProductInput", - "client": { - "shortName": "ProductInputsServiceClient", - "fullName": "google.shopping.merchant.products.v1.ProductInputsServiceClient" - }, - "method": { - "shortName": "UpdateProductInput", - "fullName": "google.shopping.merchant.products.v1.ProductInputsService.UpdateProductInput", - "service": { - "shortName": "ProductInputsService", - "fullName": "google.shopping.merchant.products.v1.ProductInputsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_ProductInputsService_DeleteProductInput_async", - "title": "ProductInputsService deleteProductInput Sample", - "origin": "API_DEFINITION", - "description": " Deletes a product input from your Merchant Center account. After inserting, updating, or deleting a product input, it may take several minutes before the processed product can be retrieved.", - "canonical": true, - "file": "product_inputs_service.delete_product_input.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 89, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteProductInput", - "fullName": "google.shopping.merchant.products.v1.ProductInputsService.DeleteProductInput", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "data_source", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ProductInputsServiceClient", - "fullName": "google.shopping.merchant.products.v1.ProductInputsServiceClient" - }, - "method": { - "shortName": "DeleteProductInput", - "fullName": "google.shopping.merchant.products.v1.ProductInputsService.DeleteProductInput", - "service": { - "shortName": "ProductInputsService", - "fullName": "google.shopping.merchant.products.v1.ProductInputsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_ProductsService_GetProduct_async", - "title": "ProductInputsService getProduct Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the processed product from your Merchant Center account. After inserting, updating, or deleting a product input, it may take several minutes before the updated final product can be retrieved.", - "canonical": true, - "file": "products_service.get_product.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 82, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetProduct", - "fullName": "google.shopping.merchant.products.v1.ProductsService.GetProduct", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.products.v1.Product", - "client": { - "shortName": "ProductsServiceClient", - "fullName": "google.shopping.merchant.products.v1.ProductsServiceClient" - }, - "method": { - "shortName": "GetProduct", - "fullName": "google.shopping.merchant.products.v1.ProductsService.GetProduct", - "service": { - "shortName": "ProductsService", - "fullName": "google.shopping.merchant.products.v1.ProductsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_ProductsService_ListProducts_async", - "title": "ProductInputsService listProducts Sample", - "origin": "API_DEFINITION", - "description": " Lists the processed products in your Merchant Center account. The response might contain fewer items than specified by `pageSize`. Rely on `pageToken` to determine if there are more items to be requested. After inserting, updating, or deleting a product input, it may take several minutes before the updated processed product can be retrieved.", - "canonical": true, - "file": "products_service.list_products.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListProducts", - "fullName": "google.shopping.merchant.products.v1.ProductsService.ListProducts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.products.v1.ListProductsResponse", - "client": { - "shortName": "ProductsServiceClient", - "fullName": "google.shopping.merchant.products.v1.ProductsServiceClient" - }, - "method": { - "shortName": "ListProducts", - "fullName": "google.shopping.merchant.products.v1.ProductsService.ListProducts", - "service": { - "shortName": "ProductsService", - "fullName": "google.shopping.merchant.products.v1.ProductsService" - } - } - } - } - ] -} diff --git a/packages/google-shopping-merchant-products/samples/generated/v1beta/snippet_metadata_google.shopping.merchant.products.v1beta.json b/packages/google-shopping-merchant-products/samples/generated/v1beta/snippet_metadata_google.shopping.merchant.products.v1beta.json deleted file mode 100644 index 89d772f886d4..000000000000 --- a/packages/google-shopping-merchant-products/samples/generated/v1beta/snippet_metadata_google.shopping.merchant.products.v1beta.json +++ /dev/null @@ -1,243 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-products", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.shopping.merchant.products.v1beta", - "version": "v1beta" - } - ] - }, - "snippets": [ - { - "regionTag": "merchantapi_v1beta_generated_ProductInputsService_InsertProductInput_async", - "title": "ProductInputsService insertProductInput Sample", - "origin": "API_DEFINITION", - "description": " [Uploads a product input to your Merchant Center account](/merchant/api/guides/products/overview#upload-product-input). You must have a products data source to be able to insert a product. The unique identifier of the data source is passed as a query parameter in the request URL. If an input with the same contentLanguage, offerId, and dataSource already exists, this method replaces that entry. After inserting, updating, or deleting a product input, it may take several minutes before the processed product can be retrieved.", - "canonical": true, - "file": "product_inputs_service.insert_product_input.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "InsertProductInput", - "fullName": "google.shopping.merchant.products.v1beta.ProductInputsService.InsertProductInput", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "product_input", - "type": ".google.shopping.merchant.products.v1beta.ProductInput" - }, - { - "name": "data_source", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.products.v1beta.ProductInput", - "client": { - "shortName": "ProductInputsServiceClient", - "fullName": "google.shopping.merchant.products.v1beta.ProductInputsServiceClient" - }, - "method": { - "shortName": "InsertProductInput", - "fullName": "google.shopping.merchant.products.v1beta.ProductInputsService.InsertProductInput", - "service": { - "shortName": "ProductInputsService", - "fullName": "google.shopping.merchant.products.v1beta.ProductInputsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_ProductInputsService_UpdateProductInput_async", - "title": "ProductInputsService updateProductInput Sample", - "origin": "API_DEFINITION", - "description": " Updates the existing product input in your Merchant Center account. After inserting, updating, or deleting a product input, it may take several minutes before the processed product can be retrieved.", - "canonical": true, - "file": "product_inputs_service.update_product_input.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateProductInput", - "fullName": "google.shopping.merchant.products.v1beta.ProductInputsService.UpdateProductInput", - "async": true, - "parameters": [ - { - "name": "product_input", - "type": ".google.shopping.merchant.products.v1beta.ProductInput" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "data_source", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.products.v1beta.ProductInput", - "client": { - "shortName": "ProductInputsServiceClient", - "fullName": "google.shopping.merchant.products.v1beta.ProductInputsServiceClient" - }, - "method": { - "shortName": "UpdateProductInput", - "fullName": "google.shopping.merchant.products.v1beta.ProductInputsService.UpdateProductInput", - "service": { - "shortName": "ProductInputsService", - "fullName": "google.shopping.merchant.products.v1beta.ProductInputsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_ProductInputsService_DeleteProductInput_async", - "title": "ProductInputsService deleteProductInput Sample", - "origin": "API_DEFINITION", - "description": " Deletes a product input from your Merchant Center account. After inserting, updating, or deleting a product input, it may take several minutes before the processed product can be retrieved.", - "canonical": true, - "file": "product_inputs_service.delete_product_input.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteProductInput", - "fullName": "google.shopping.merchant.products.v1beta.ProductInputsService.DeleteProductInput", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "data_source", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ProductInputsServiceClient", - "fullName": "google.shopping.merchant.products.v1beta.ProductInputsServiceClient" - }, - "method": { - "shortName": "DeleteProductInput", - "fullName": "google.shopping.merchant.products.v1beta.ProductInputsService.DeleteProductInput", - "service": { - "shortName": "ProductInputsService", - "fullName": "google.shopping.merchant.products.v1beta.ProductInputsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_ProductsService_GetProduct_async", - "title": "ProductInputsService getProduct Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the processed product from your Merchant Center account. After inserting, updating, or deleting a product input, it may take several minutes before the updated final product can be retrieved.", - "canonical": true, - "file": "products_service.get_product.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 58, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetProduct", - "fullName": "google.shopping.merchant.products.v1beta.ProductsService.GetProduct", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.products.v1beta.Product", - "client": { - "shortName": "ProductsServiceClient", - "fullName": "google.shopping.merchant.products.v1beta.ProductsServiceClient" - }, - "method": { - "shortName": "GetProduct", - "fullName": "google.shopping.merchant.products.v1beta.ProductsService.GetProduct", - "service": { - "shortName": "ProductsService", - "fullName": "google.shopping.merchant.products.v1beta.ProductsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_ProductsService_ListProducts_async", - "title": "ProductInputsService listProducts Sample", - "origin": "API_DEFINITION", - "description": " Lists the processed products in your Merchant Center account. The response might contain fewer items than specified by `pageSize`. Rely on `pageToken` to determine if there are more items to be requested. After inserting, updating, or deleting a product input, it may take several minutes before the updated processed product can be retrieved.", - "canonical": true, - "file": "products_service.list_products.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListProducts", - "fullName": "google.shopping.merchant.products.v1beta.ProductsService.ListProducts", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.products.v1beta.ListProductsResponse", - "client": { - "shortName": "ProductsServiceClient", - "fullName": "google.shopping.merchant.products.v1beta.ProductsServiceClient" - }, - "method": { - "shortName": "ListProducts", - "fullName": "google.shopping.merchant.products.v1beta.ProductsService.ListProducts", - "service": { - "shortName": "ProductsService", - "fullName": "google.shopping.merchant.products.v1beta.ProductsService" - } - } - } - } - ] -} diff --git a/packages/google-shopping-merchant-promotions/samples/generated/v1/snippet_metadata_google.shopping.merchant.promotions.v1.json b/packages/google-shopping-merchant-promotions/samples/generated/v1/snippet_metadata_google.shopping.merchant.promotions.v1.json deleted file mode 100644 index c12a3085f035..000000000000 --- a/packages/google-shopping-merchant-promotions/samples/generated/v1/snippet_metadata_google.shopping.merchant.promotions.v1.json +++ /dev/null @@ -1,151 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-promotions", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.shopping.merchant.promotions.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "merchantapi_v1_generated_PromotionsService_InsertPromotion_async", - "title": "PromotionsService insertPromotion Sample", - "origin": "API_DEFINITION", - "description": " Inserts a promotion for your Merchant Center account. If the promotion already exists, then it updates the promotion instead.", - "canonical": true, - "file": "promotions_service.insert_promotion.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "InsertPromotion", - "fullName": "google.shopping.merchant.promotions.v1.PromotionsService.InsertPromotion", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "promotion", - "type": ".google.shopping.merchant.promotions.v1.Promotion" - }, - { - "name": "data_source", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.promotions.v1.Promotion", - "client": { - "shortName": "PromotionsServiceClient", - "fullName": "google.shopping.merchant.promotions.v1.PromotionsServiceClient" - }, - "method": { - "shortName": "InsertPromotion", - "fullName": "google.shopping.merchant.promotions.v1.PromotionsService.InsertPromotion", - "service": { - "shortName": "PromotionsService", - "fullName": "google.shopping.merchant.promotions.v1.PromotionsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_PromotionsService_GetPromotion_async", - "title": "PromotionsService getPromotion Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the promotion from your Merchant Center account. After inserting or updating a promotion input, it may take several minutes before the updated promotion can be retrieved.", - "canonical": true, - "file": "promotions_service.get_promotion.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPromotion", - "fullName": "google.shopping.merchant.promotions.v1.PromotionsService.GetPromotion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.promotions.v1.Promotion", - "client": { - "shortName": "PromotionsServiceClient", - "fullName": "google.shopping.merchant.promotions.v1.PromotionsServiceClient" - }, - "method": { - "shortName": "GetPromotion", - "fullName": "google.shopping.merchant.promotions.v1.PromotionsService.GetPromotion", - "service": { - "shortName": "PromotionsService", - "fullName": "google.shopping.merchant.promotions.v1.PromotionsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_PromotionsService_ListPromotions_async", - "title": "PromotionsService listPromotions Sample", - "origin": "API_DEFINITION", - "description": " Lists the promotions in your Merchant Center account. The response might contain fewer items than specified by `pageSize`. Rely on `pageToken` to determine if there are more items to be requested. After inserting or updating a promotion, it may take several minutes before the updated processed promotion can be retrieved.", - "canonical": true, - "file": "promotions_service.list_promotions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPromotions", - "fullName": "google.shopping.merchant.promotions.v1.PromotionsService.ListPromotions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.promotions.v1.ListPromotionsResponse", - "client": { - "shortName": "PromotionsServiceClient", - "fullName": "google.shopping.merchant.promotions.v1.PromotionsServiceClient" - }, - "method": { - "shortName": "ListPromotions", - "fullName": "google.shopping.merchant.promotions.v1.PromotionsService.ListPromotions", - "service": { - "shortName": "PromotionsService", - "fullName": "google.shopping.merchant.promotions.v1.PromotionsService" - } - } - } - } - ] -} diff --git a/packages/google-shopping-merchant-promotions/samples/generated/v1beta/snippet_metadata_google.shopping.merchant.promotions.v1beta.json b/packages/google-shopping-merchant-promotions/samples/generated/v1beta/snippet_metadata_google.shopping.merchant.promotions.v1beta.json deleted file mode 100644 index 590f30d3e354..000000000000 --- a/packages/google-shopping-merchant-promotions/samples/generated/v1beta/snippet_metadata_google.shopping.merchant.promotions.v1beta.json +++ /dev/null @@ -1,151 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-promotions", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.shopping.merchant.promotions.v1beta", - "version": "v1beta" - } - ] - }, - "snippets": [ - { - "regionTag": "merchantapi_v1beta_generated_PromotionsService_InsertPromotion_async", - "title": "PromotionsService insertPromotion Sample", - "origin": "API_DEFINITION", - "description": " Inserts a promotion for your Merchant Center account. If the promotion already exists, then it updates the promotion instead.", - "canonical": true, - "file": "promotions_service.insert_promotion.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "InsertPromotion", - "fullName": "google.shopping.merchant.promotions.v1beta.PromotionsService.InsertPromotion", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "promotion", - "type": ".google.shopping.merchant.promotions.v1beta.Promotion" - }, - { - "name": "data_source", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.promotions.v1beta.Promotion", - "client": { - "shortName": "PromotionsServiceClient", - "fullName": "google.shopping.merchant.promotions.v1beta.PromotionsServiceClient" - }, - "method": { - "shortName": "InsertPromotion", - "fullName": "google.shopping.merchant.promotions.v1beta.PromotionsService.InsertPromotion", - "service": { - "shortName": "PromotionsService", - "fullName": "google.shopping.merchant.promotions.v1beta.PromotionsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_PromotionsService_GetPromotion_async", - "title": "PromotionsService getPromotion Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the promotion from your Merchant Center account. After inserting or updating a promotion input, it may take several minutes before the updated promotion can be retrieved.", - "canonical": true, - "file": "promotions_service.get_promotion.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPromotion", - "fullName": "google.shopping.merchant.promotions.v1beta.PromotionsService.GetPromotion", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.promotions.v1beta.Promotion", - "client": { - "shortName": "PromotionsServiceClient", - "fullName": "google.shopping.merchant.promotions.v1beta.PromotionsServiceClient" - }, - "method": { - "shortName": "GetPromotion", - "fullName": "google.shopping.merchant.promotions.v1beta.PromotionsService.GetPromotion", - "service": { - "shortName": "PromotionsService", - "fullName": "google.shopping.merchant.promotions.v1beta.PromotionsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_PromotionsService_ListPromotions_async", - "title": "PromotionsService listPromotions Sample", - "origin": "API_DEFINITION", - "description": " Lists the promotions in your Merchant Center account. The response might contain fewer items than specified by `pageSize`. Rely on `pageToken` to determine if there are more items to be requested. After inserting or updating a promotion, it may take several minutes before the updated processed promotion can be retrieved.", - "canonical": true, - "file": "promotions_service.list_promotions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPromotions", - "fullName": "google.shopping.merchant.promotions.v1beta.PromotionsService.ListPromotions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.promotions.v1beta.ListPromotionsResponse", - "client": { - "shortName": "PromotionsServiceClient", - "fullName": "google.shopping.merchant.promotions.v1beta.PromotionsServiceClient" - }, - "method": { - "shortName": "ListPromotions", - "fullName": "google.shopping.merchant.promotions.v1beta.PromotionsService.ListPromotions", - "service": { - "shortName": "PromotionsService", - "fullName": "google.shopping.merchant.promotions.v1beta.PromotionsService" - } - } - } - } - ] -} diff --git a/packages/google-shopping-merchant-quota/samples/generated/v1/snippet_metadata_google.shopping.merchant.quota.v1.json b/packages/google-shopping-merchant-quota/samples/generated/v1/snippet_metadata_google.shopping.merchant.quota.v1.json deleted file mode 100644 index ab879fcd9ceb..000000000000 --- a/packages/google-shopping-merchant-quota/samples/generated/v1/snippet_metadata_google.shopping.merchant.quota.v1.json +++ /dev/null @@ -1,155 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-quota", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.shopping.merchant.quota.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "merchantapi_v1_generated_AccountLimitsService_GetAccountLimit_async", - "title": "AccountLimitsService getAccountLimit Sample", - "origin": "API_DEFINITION", - "description": " Retrieves an account limit.", - "canonical": true, - "file": "account_limits_service.get_account_limit.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAccountLimit", - "fullName": "google.shopping.merchant.quota.v1.AccountLimitsService.GetAccountLimit", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.quota.v1.AccountLimit", - "client": { - "shortName": "AccountLimitsServiceClient", - "fullName": "google.shopping.merchant.quota.v1.AccountLimitsServiceClient" - }, - "method": { - "shortName": "GetAccountLimit", - "fullName": "google.shopping.merchant.quota.v1.AccountLimitsService.GetAccountLimit", - "service": { - "shortName": "AccountLimitsService", - "fullName": "google.shopping.merchant.quota.v1.AccountLimitsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_AccountLimitsService_ListAccountLimits_async", - "title": "AccountLimitsService listAccountLimits Sample", - "origin": "API_DEFINITION", - "description": " Lists the limits of an account.", - "canonical": true, - "file": "account_limits_service.list_account_limits.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAccountLimits", - "fullName": "google.shopping.merchant.quota.v1.AccountLimitsService.ListAccountLimits", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.quota.v1.ListAccountLimitsResponse", - "client": { - "shortName": "AccountLimitsServiceClient", - "fullName": "google.shopping.merchant.quota.v1.AccountLimitsServiceClient" - }, - "method": { - "shortName": "ListAccountLimits", - "fullName": "google.shopping.merchant.quota.v1.AccountLimitsService.ListAccountLimits", - "service": { - "shortName": "AccountLimitsService", - "fullName": "google.shopping.merchant.quota.v1.AccountLimitsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1_generated_QuotaService_ListQuotaGroups_async", - "title": "AccountLimitsService listQuotaGroups Sample", - "origin": "API_DEFINITION", - "description": " Lists the daily call quota and usage per group for your Merchant Center account.", - "canonical": true, - "file": "quota_service.list_quota_groups.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListQuotaGroups", - "fullName": "google.shopping.merchant.quota.v1.QuotaService.ListQuotaGroups", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.quota.v1.ListQuotaGroupsResponse", - "client": { - "shortName": "QuotaServiceClient", - "fullName": "google.shopping.merchant.quota.v1.QuotaServiceClient" - }, - "method": { - "shortName": "ListQuotaGroups", - "fullName": "google.shopping.merchant.quota.v1.QuotaService.ListQuotaGroups", - "service": { - "shortName": "QuotaService", - "fullName": "google.shopping.merchant.quota.v1.QuotaService" - } - } - } - } - ] -} diff --git a/packages/google-shopping-merchant-quota/samples/generated/v1beta/snippet_metadata_google.shopping.merchant.quota.v1beta.json b/packages/google-shopping-merchant-quota/samples/generated/v1beta/snippet_metadata_google.shopping.merchant.quota.v1beta.json deleted file mode 100644 index 3aa64a90993d..000000000000 --- a/packages/google-shopping-merchant-quota/samples/generated/v1beta/snippet_metadata_google.shopping.merchant.quota.v1beta.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-quota", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.shopping.merchant.quota.v1beta", - "version": "v1beta" - } - ] - }, - "snippets": [ - { - "regionTag": "merchantapi_v1beta_generated_QuotaService_ListQuotaGroups_async", - "title": "QuotaService listQuotaGroups Sample", - "origin": "API_DEFINITION", - "description": " Lists the daily call quota and usage per group for your Merchant Center account.", - "canonical": true, - "file": "quota_service.list_quota_groups.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 66, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListQuotaGroups", - "fullName": "google.shopping.merchant.quota.v1beta.QuotaService.ListQuotaGroups", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.quota.v1beta.ListQuotaGroupsResponse", - "client": { - "shortName": "QuotaServiceClient", - "fullName": "google.shopping.merchant.quota.v1beta.QuotaServiceClient" - }, - "method": { - "shortName": "ListQuotaGroups", - "fullName": "google.shopping.merchant.quota.v1beta.QuotaService.ListQuotaGroups", - "service": { - "shortName": "QuotaService", - "fullName": "google.shopping.merchant.quota.v1beta.QuotaService" - } - } - } - } - ] -} diff --git a/packages/google-shopping-merchant-reports/samples/generated/v1/snippet_metadata_google.shopping.merchant.reports.v1.json b/packages/google-shopping-merchant-reports/samples/generated/v1/snippet_metadata_google.shopping.merchant.reports.v1.json deleted file mode 100644 index 34f7aaa84bdb..000000000000 --- a/packages/google-shopping-merchant-reports/samples/generated/v1/snippet_metadata_google.shopping.merchant.reports.v1.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-reports", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.shopping.merchant.reports.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "merchantapi_v1_generated_ReportService_Search_async", - "title": "ReportService search Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a report defined by a search query. The response might contain fewer rows than specified by `page_size`. Rely on `next_page_token` to determine if there are more rows to be requested.", - "canonical": true, - "file": "report_service.search.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Search", - "fullName": "google.shopping.merchant.reports.v1.ReportService.Search", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.reports.v1.SearchResponse", - "client": { - "shortName": "ReportServiceClient", - "fullName": "google.shopping.merchant.reports.v1.ReportServiceClient" - }, - "method": { - "shortName": "Search", - "fullName": "google.shopping.merchant.reports.v1.ReportService.Search", - "service": { - "shortName": "ReportService", - "fullName": "google.shopping.merchant.reports.v1.ReportService" - } - } - } - } - ] -} diff --git a/packages/google-shopping-merchant-reports/samples/generated/v1alpha/snippet_metadata_google.shopping.merchant.reports.v1alpha.json b/packages/google-shopping-merchant-reports/samples/generated/v1alpha/snippet_metadata_google.shopping.merchant.reports.v1alpha.json deleted file mode 100644 index cecb49db7ca8..000000000000 --- a/packages/google-shopping-merchant-reports/samples/generated/v1alpha/snippet_metadata_google.shopping.merchant.reports.v1alpha.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-reports", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.shopping.merchant.reports.v1alpha", - "version": "v1alpha" - } - ] - }, - "snippets": [ - { - "regionTag": "merchantapi_v1alpha_generated_ReportService_Search_async", - "title": "ReportService search Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a report defined by a search query. The response might contain fewer rows than specified by `page_size`. Rely on `next_page_token` to determine if there are more rows to be requested.", - "canonical": true, - "file": "report_service.search.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Search", - "fullName": "google.shopping.merchant.reports.v1alpha.ReportService.Search", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.reports.v1alpha.SearchResponse", - "client": { - "shortName": "ReportServiceClient", - "fullName": "google.shopping.merchant.reports.v1alpha.ReportServiceClient" - }, - "method": { - "shortName": "Search", - "fullName": "google.shopping.merchant.reports.v1alpha.ReportService.Search", - "service": { - "shortName": "ReportService", - "fullName": "google.shopping.merchant.reports.v1alpha.ReportService" - } - } - } - } - ] -} diff --git a/packages/google-shopping-merchant-reports/samples/generated/v1beta/snippet_metadata_google.shopping.merchant.reports.v1beta.json b/packages/google-shopping-merchant-reports/samples/generated/v1beta/snippet_metadata_google.shopping.merchant.reports.v1beta.json deleted file mode 100644 index b2c376ae1df0..000000000000 --- a/packages/google-shopping-merchant-reports/samples/generated/v1beta/snippet_metadata_google.shopping.merchant.reports.v1beta.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-reports", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.shopping.merchant.reports.v1beta", - "version": "v1beta" - } - ] - }, - "snippets": [ - { - "regionTag": "merchantapi_v1beta_generated_ReportService_Search_async", - "title": "ReportService search Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a report defined by a search query. The response might contain fewer rows than specified by `page_size`. Rely on `next_page_token` to determine if there are more rows to be requested.", - "canonical": true, - "file": "report_service.search.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "Search", - "fullName": "google.shopping.merchant.reports.v1beta.ReportService.Search", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "query", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.reports.v1beta.SearchResponse", - "client": { - "shortName": "ReportServiceClient", - "fullName": "google.shopping.merchant.reports.v1beta.ReportServiceClient" - }, - "method": { - "shortName": "Search", - "fullName": "google.shopping.merchant.reports.v1beta.ReportService.Search", - "service": { - "shortName": "ReportService", - "fullName": "google.shopping.merchant.reports.v1beta.ReportService" - } - } - } - } - ] -} diff --git a/packages/google-shopping-merchant-reviews/samples/generated/v1beta/snippet_metadata_google.shopping.merchant.reviews.v1beta.json b/packages/google-shopping-merchant-reviews/samples/generated/v1beta/snippet_metadata_google.shopping.merchant.reviews.v1beta.json deleted file mode 100644 index b7d28b2edf46..000000000000 --- a/packages/google-shopping-merchant-reviews/samples/generated/v1beta/snippet_metadata_google.shopping.merchant.reviews.v1beta.json +++ /dev/null @@ -1,367 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-reviews", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.shopping.merchant.reviews.v1beta", - "version": "v1beta" - } - ] - }, - "snippets": [ - { - "regionTag": "merchantapi_v1beta_generated_MerchantReviewsService_GetMerchantReview_async", - "title": "MerchantReviewsService getMerchantReview Sample", - "origin": "API_DEFINITION", - "description": " Gets a merchant review.", - "canonical": true, - "file": "merchant_reviews_service.get_merchant_review.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetMerchantReview", - "fullName": "google.shopping.merchant.reviews.v1beta.MerchantReviewsService.GetMerchantReview", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.reviews.v1beta.MerchantReview", - "client": { - "shortName": "MerchantReviewsServiceClient", - "fullName": "google.shopping.merchant.reviews.v1beta.MerchantReviewsServiceClient" - }, - "method": { - "shortName": "GetMerchantReview", - "fullName": "google.shopping.merchant.reviews.v1beta.MerchantReviewsService.GetMerchantReview", - "service": { - "shortName": "MerchantReviewsService", - "fullName": "google.shopping.merchant.reviews.v1beta.MerchantReviewsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_MerchantReviewsService_ListMerchantReviews_async", - "title": "MerchantReviewsService listMerchantReviews Sample", - "origin": "API_DEFINITION", - "description": " Lists merchant reviews.", - "canonical": true, - "file": "merchant_reviews_service.list_merchant_reviews.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListMerchantReviews", - "fullName": "google.shopping.merchant.reviews.v1beta.MerchantReviewsService.ListMerchantReviews", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.reviews.v1beta.ListMerchantReviewsResponse", - "client": { - "shortName": "MerchantReviewsServiceClient", - "fullName": "google.shopping.merchant.reviews.v1beta.MerchantReviewsServiceClient" - }, - "method": { - "shortName": "ListMerchantReviews", - "fullName": "google.shopping.merchant.reviews.v1beta.MerchantReviewsService.ListMerchantReviews", - "service": { - "shortName": "MerchantReviewsService", - "fullName": "google.shopping.merchant.reviews.v1beta.MerchantReviewsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_MerchantReviewsService_InsertMerchantReview_async", - "title": "MerchantReviewsService insertMerchantReview Sample", - "origin": "API_DEFINITION", - "description": " Inserts a review for your Merchant Center account. If the review already exists, then the review is replaced with the new instance.", - "canonical": true, - "file": "merchant_reviews_service.insert_merchant_review.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "InsertMerchantReview", - "fullName": "google.shopping.merchant.reviews.v1beta.MerchantReviewsService.InsertMerchantReview", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "merchant_review", - "type": ".google.shopping.merchant.reviews.v1beta.MerchantReview" - }, - { - "name": "data_source", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.reviews.v1beta.MerchantReview", - "client": { - "shortName": "MerchantReviewsServiceClient", - "fullName": "google.shopping.merchant.reviews.v1beta.MerchantReviewsServiceClient" - }, - "method": { - "shortName": "InsertMerchantReview", - "fullName": "google.shopping.merchant.reviews.v1beta.MerchantReviewsService.InsertMerchantReview", - "service": { - "shortName": "MerchantReviewsService", - "fullName": "google.shopping.merchant.reviews.v1beta.MerchantReviewsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_MerchantReviewsService_DeleteMerchantReview_async", - "title": "MerchantReviewsService deleteMerchantReview Sample", - "origin": "API_DEFINITION", - "description": " Deletes merchant review.", - "canonical": true, - "file": "merchant_reviews_service.delete_merchant_review.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteMerchantReview", - "fullName": "google.shopping.merchant.reviews.v1beta.MerchantReviewsService.DeleteMerchantReview", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "MerchantReviewsServiceClient", - "fullName": "google.shopping.merchant.reviews.v1beta.MerchantReviewsServiceClient" - }, - "method": { - "shortName": "DeleteMerchantReview", - "fullName": "google.shopping.merchant.reviews.v1beta.MerchantReviewsService.DeleteMerchantReview", - "service": { - "shortName": "MerchantReviewsService", - "fullName": "google.shopping.merchant.reviews.v1beta.MerchantReviewsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_ProductReviewsService_GetProductReview_async", - "title": "MerchantReviewsService getProductReview Sample", - "origin": "API_DEFINITION", - "description": " Gets a product review.", - "canonical": true, - "file": "product_reviews_service.get_product_review.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetProductReview", - "fullName": "google.shopping.merchant.reviews.v1beta.ProductReviewsService.GetProductReview", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.reviews.v1beta.ProductReview", - "client": { - "shortName": "ProductReviewsServiceClient", - "fullName": "google.shopping.merchant.reviews.v1beta.ProductReviewsServiceClient" - }, - "method": { - "shortName": "GetProductReview", - "fullName": "google.shopping.merchant.reviews.v1beta.ProductReviewsService.GetProductReview", - "service": { - "shortName": "ProductReviewsService", - "fullName": "google.shopping.merchant.reviews.v1beta.ProductReviewsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_ProductReviewsService_ListProductReviews_async", - "title": "MerchantReviewsService listProductReviews Sample", - "origin": "API_DEFINITION", - "description": " Lists product reviews.", - "canonical": true, - "file": "product_reviews_service.list_product_reviews.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListProductReviews", - "fullName": "google.shopping.merchant.reviews.v1beta.ProductReviewsService.ListProductReviews", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.reviews.v1beta.ListProductReviewsResponse", - "client": { - "shortName": "ProductReviewsServiceClient", - "fullName": "google.shopping.merchant.reviews.v1beta.ProductReviewsServiceClient" - }, - "method": { - "shortName": "ListProductReviews", - "fullName": "google.shopping.merchant.reviews.v1beta.ProductReviewsService.ListProductReviews", - "service": { - "shortName": "ProductReviewsService", - "fullName": "google.shopping.merchant.reviews.v1beta.ProductReviewsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_ProductReviewsService_InsertProductReview_async", - "title": "MerchantReviewsService insertProductReview Sample", - "origin": "API_DEFINITION", - "description": " Inserts a product review.", - "canonical": true, - "file": "product_reviews_service.insert_product_review.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "InsertProductReview", - "fullName": "google.shopping.merchant.reviews.v1beta.ProductReviewsService.InsertProductReview", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "product_review", - "type": ".google.shopping.merchant.reviews.v1beta.ProductReview" - }, - { - "name": "data_source", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.shopping.merchant.reviews.v1beta.ProductReview", - "client": { - "shortName": "ProductReviewsServiceClient", - "fullName": "google.shopping.merchant.reviews.v1beta.ProductReviewsServiceClient" - }, - "method": { - "shortName": "InsertProductReview", - "fullName": "google.shopping.merchant.reviews.v1beta.ProductReviewsService.InsertProductReview", - "service": { - "shortName": "ProductReviewsService", - "fullName": "google.shopping.merchant.reviews.v1beta.ProductReviewsService" - } - } - } - }, - { - "regionTag": "merchantapi_v1beta_generated_ProductReviewsService_DeleteProductReview_async", - "title": "MerchantReviewsService deleteProductReview Sample", - "origin": "API_DEFINITION", - "description": " Deletes a product review.", - "canonical": true, - "file": "product_reviews_service.delete_product_review.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteProductReview", - "fullName": "google.shopping.merchant.reviews.v1beta.ProductReviewsService.DeleteProductReview", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ProductReviewsServiceClient", - "fullName": "google.shopping.merchant.reviews.v1beta.ProductReviewsServiceClient" - }, - "method": { - "shortName": "DeleteProductReview", - "fullName": "google.shopping.merchant.reviews.v1beta.ProductReviewsService.DeleteProductReview", - "service": { - "shortName": "ProductReviewsService", - "fullName": "google.shopping.merchant.reviews.v1beta.ProductReviewsService" - } - } - } - } - ] -} diff --git a/packages/google-storage-control/samples/generated/v2/snippet_metadata_google.storage.control.v2.json b/packages/google-storage-control/samples/generated/v2/snippet_metadata_google.storage.control.v2.json deleted file mode 100644 index 13c7f54ec846..000000000000 --- a/packages/google-storage-control/samples/generated/v2/snippet_metadata_google.storage.control.v2.json +++ /dev/null @@ -1,1575 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-control", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.storage.control.v2", - "version": "v2" - } - ] - }, - "snippets": [ - { - "regionTag": "storage_v2_generated_StorageControl_CreateFolder_async", - "title": "StorageControl createFolder Sample", - "origin": "API_DEFINITION", - "description": " Creates a new folder. This operation is only applicable to a hierarchical namespace enabled bucket.", - "canonical": true, - "file": "storage_control.create_folder.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 81, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateFolder", - "fullName": "google.storage.control.v2.StorageControl.CreateFolder", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "folder", - "type": ".google.storage.control.v2.Folder" - }, - { - "name": "folder_id", - "type": "TYPE_STRING" - }, - { - "name": "recursive", - "type": "TYPE_BOOL" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.storage.control.v2.Folder", - "client": { - "shortName": "StorageControlClient", - "fullName": "google.storage.control.v2.StorageControlClient" - }, - "method": { - "shortName": "CreateFolder", - "fullName": "google.storage.control.v2.StorageControl.CreateFolder", - "service": { - "shortName": "StorageControl", - "fullName": "google.storage.control.v2.StorageControl" - } - } - } - }, - { - "regionTag": "storage_v2_generated_StorageControl_DeleteFolder_async", - "title": "StorageControl deleteFolder Sample", - "origin": "API_DEFINITION", - "description": " Permanently deletes an empty folder. This operation is only applicable to a hierarchical namespace enabled bucket.", - "canonical": true, - "file": "storage_control.delete_folder.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteFolder", - "fullName": "google.storage.control.v2.StorageControl.DeleteFolder", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "if_metageneration_match", - "type": "TYPE_INT64" - }, - { - "name": "if_metageneration_not_match", - "type": "TYPE_INT64" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "StorageControlClient", - "fullName": "google.storage.control.v2.StorageControlClient" - }, - "method": { - "shortName": "DeleteFolder", - "fullName": "google.storage.control.v2.StorageControl.DeleteFolder", - "service": { - "shortName": "StorageControl", - "fullName": "google.storage.control.v2.StorageControl" - } - } - } - }, - { - "regionTag": "storage_v2_generated_StorageControl_GetFolder_async", - "title": "StorageControl getFolder Sample", - "origin": "API_DEFINITION", - "description": " Returns metadata for the specified folder. This operation is only applicable to a hierarchical namespace enabled bucket.", - "canonical": true, - "file": "storage_control.get_folder.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFolder", - "fullName": "google.storage.control.v2.StorageControl.GetFolder", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "if_metageneration_match", - "type": "TYPE_INT64" - }, - { - "name": "if_metageneration_not_match", - "type": "TYPE_INT64" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.storage.control.v2.Folder", - "client": { - "shortName": "StorageControlClient", - "fullName": "google.storage.control.v2.StorageControlClient" - }, - "method": { - "shortName": "GetFolder", - "fullName": "google.storage.control.v2.StorageControl.GetFolder", - "service": { - "shortName": "StorageControl", - "fullName": "google.storage.control.v2.StorageControl" - } - } - } - }, - { - "regionTag": "storage_v2_generated_StorageControl_ListFolders_async", - "title": "StorageControl listFolders Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of folders. This operation is only applicable to a hierarchical namespace enabled bucket.", - "canonical": true, - "file": "storage_control.list_folders.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 96, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListFolders", - "fullName": "google.storage.control.v2.StorageControl.ListFolders", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "prefix", - "type": "TYPE_STRING" - }, - { - "name": "delimiter", - "type": "TYPE_STRING" - }, - { - "name": "lexicographic_start", - "type": "TYPE_STRING" - }, - { - "name": "lexicographic_end", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.storage.control.v2.ListFoldersResponse", - "client": { - "shortName": "StorageControlClient", - "fullName": "google.storage.control.v2.StorageControlClient" - }, - "method": { - "shortName": "ListFolders", - "fullName": "google.storage.control.v2.StorageControl.ListFolders", - "service": { - "shortName": "StorageControl", - "fullName": "google.storage.control.v2.StorageControl" - } - } - } - }, - { - "regionTag": "storage_v2_generated_StorageControl_RenameFolder_async", - "title": "StorageControl renameFolder Sample", - "origin": "API_DEFINITION", - "description": " Renames a source folder to a destination folder. This operation is only applicable to a hierarchical namespace enabled bucket. During a rename, the source and destination folders are locked until the long running operation completes.", - "canonical": true, - "file": "storage_control.rename_folder.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 76, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RenameFolder", - "fullName": "google.storage.control.v2.StorageControl.RenameFolder", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "destination_folder_id", - "type": "TYPE_STRING" - }, - { - "name": "if_metageneration_match", - "type": "TYPE_INT64" - }, - { - "name": "if_metageneration_not_match", - "type": "TYPE_INT64" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "StorageControlClient", - "fullName": "google.storage.control.v2.StorageControlClient" - }, - "method": { - "shortName": "RenameFolder", - "fullName": "google.storage.control.v2.StorageControl.RenameFolder", - "service": { - "shortName": "StorageControl", - "fullName": "google.storage.control.v2.StorageControl" - } - } - } - }, - { - "regionTag": "storage_v2_generated_StorageControl_DeleteFolderRecursive_async", - "title": "StorageControl deleteFolderRecursive Sample", - "origin": "API_DEFINITION", - "description": " Deletes a folder recursively. This operation is only applicable to a hierarchical namespace enabled bucket.", - "canonical": true, - "file": "storage_control.delete_folder_recursive.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteFolderRecursive", - "fullName": "google.storage.control.v2.StorageControl.DeleteFolderRecursive", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "if_metageneration_match", - "type": "TYPE_INT64" - }, - { - "name": "if_metageneration_not_match", - "type": "TYPE_INT64" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "StorageControlClient", - "fullName": "google.storage.control.v2.StorageControlClient" - }, - "method": { - "shortName": "DeleteFolderRecursive", - "fullName": "google.storage.control.v2.StorageControl.DeleteFolderRecursive", - "service": { - "shortName": "StorageControl", - "fullName": "google.storage.control.v2.StorageControl" - } - } - } - }, - { - "regionTag": "storage_v2_generated_StorageControl_GetStorageLayout_async", - "title": "StorageControl getStorageLayout Sample", - "origin": "API_DEFINITION", - "description": " Returns the storage layout configuration for a given bucket.", - "canonical": true, - "file": "storage_control.get_storage_layout.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetStorageLayout", - "fullName": "google.storage.control.v2.StorageControl.GetStorageLayout", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "prefix", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.storage.control.v2.StorageLayout", - "client": { - "shortName": "StorageControlClient", - "fullName": "google.storage.control.v2.StorageControlClient" - }, - "method": { - "shortName": "GetStorageLayout", - "fullName": "google.storage.control.v2.StorageControl.GetStorageLayout", - "service": { - "shortName": "StorageControl", - "fullName": "google.storage.control.v2.StorageControl" - } - } - } - }, - { - "regionTag": "storage_v2_generated_StorageControl_CreateManagedFolder_async", - "title": "StorageControl createManagedFolder Sample", - "origin": "API_DEFINITION", - "description": " Creates a new managed folder.", - "canonical": true, - "file": "storage_control.create_managed_folder.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateManagedFolder", - "fullName": "google.storage.control.v2.StorageControl.CreateManagedFolder", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "managed_folder", - "type": ".google.storage.control.v2.ManagedFolder" - }, - { - "name": "managed_folder_id", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.storage.control.v2.ManagedFolder", - "client": { - "shortName": "StorageControlClient", - "fullName": "google.storage.control.v2.StorageControlClient" - }, - "method": { - "shortName": "CreateManagedFolder", - "fullName": "google.storage.control.v2.StorageControl.CreateManagedFolder", - "service": { - "shortName": "StorageControl", - "fullName": "google.storage.control.v2.StorageControl" - } - } - } - }, - { - "regionTag": "storage_v2_generated_StorageControl_DeleteManagedFolder_async", - "title": "StorageControl deleteManagedFolder Sample", - "origin": "API_DEFINITION", - "description": " Permanently deletes an empty managed folder.", - "canonical": true, - "file": "storage_control.delete_managed_folder.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 77, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteManagedFolder", - "fullName": "google.storage.control.v2.StorageControl.DeleteManagedFolder", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "if_metageneration_match", - "type": "TYPE_INT64" - }, - { - "name": "if_metageneration_not_match", - "type": "TYPE_INT64" - }, - { - "name": "allow_non_empty", - "type": "TYPE_BOOL" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "StorageControlClient", - "fullName": "google.storage.control.v2.StorageControlClient" - }, - "method": { - "shortName": "DeleteManagedFolder", - "fullName": "google.storage.control.v2.StorageControl.DeleteManagedFolder", - "service": { - "shortName": "StorageControl", - "fullName": "google.storage.control.v2.StorageControl" - } - } - } - }, - { - "regionTag": "storage_v2_generated_StorageControl_GetManagedFolder_async", - "title": "StorageControl getManagedFolder Sample", - "origin": "API_DEFINITION", - "description": " Returns metadata for the specified managed folder.", - "canonical": true, - "file": "storage_control.get_managed_folder.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetManagedFolder", - "fullName": "google.storage.control.v2.StorageControl.GetManagedFolder", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "if_metageneration_match", - "type": "TYPE_INT64" - }, - { - "name": "if_metageneration_not_match", - "type": "TYPE_INT64" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.storage.control.v2.ManagedFolder", - "client": { - "shortName": "StorageControlClient", - "fullName": "google.storage.control.v2.StorageControlClient" - }, - "method": { - "shortName": "GetManagedFolder", - "fullName": "google.storage.control.v2.StorageControl.GetManagedFolder", - "service": { - "shortName": "StorageControl", - "fullName": "google.storage.control.v2.StorageControl" - } - } - } - }, - { - "regionTag": "storage_v2_generated_StorageControl_ListManagedFolders_async", - "title": "StorageControl listManagedFolders Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of managed folders for a given bucket.", - "canonical": true, - "file": "storage_control.list_managed_folders.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListManagedFolders", - "fullName": "google.storage.control.v2.StorageControl.ListManagedFolders", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "prefix", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.storage.control.v2.ListManagedFoldersResponse", - "client": { - "shortName": "StorageControlClient", - "fullName": "google.storage.control.v2.StorageControlClient" - }, - "method": { - "shortName": "ListManagedFolders", - "fullName": "google.storage.control.v2.StorageControl.ListManagedFolders", - "service": { - "shortName": "StorageControl", - "fullName": "google.storage.control.v2.StorageControl" - } - } - } - }, - { - "regionTag": "storage_v2_generated_StorageControl_CreateAnywhereCache_async", - "title": "StorageControl createAnywhereCache Sample", - "origin": "API_DEFINITION", - "description": " Creates an Anywhere Cache instance.", - "canonical": true, - "file": "storage_control.create_anywhere_cache.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAnywhereCache", - "fullName": "google.storage.control.v2.StorageControl.CreateAnywhereCache", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "anywhere_cache", - "type": ".google.storage.control.v2.AnywhereCache" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "StorageControlClient", - "fullName": "google.storage.control.v2.StorageControlClient" - }, - "method": { - "shortName": "CreateAnywhereCache", - "fullName": "google.storage.control.v2.StorageControl.CreateAnywhereCache", - "service": { - "shortName": "StorageControl", - "fullName": "google.storage.control.v2.StorageControl" - } - } - } - }, - { - "regionTag": "storage_v2_generated_StorageControl_UpdateAnywhereCache_async", - "title": "StorageControl updateAnywhereCache Sample", - "origin": "API_DEFINITION", - "description": " Updates an Anywhere Cache instance. Mutable fields include `ttl` and `admission_policy`.", - "canonical": true, - "file": "storage_control.update_anywhere_cache.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAnywhereCache", - "fullName": "google.storage.control.v2.StorageControl.UpdateAnywhereCache", - "async": true, - "parameters": [ - { - "name": "anywhere_cache", - "type": ".google.storage.control.v2.AnywhereCache" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "StorageControlClient", - "fullName": "google.storage.control.v2.StorageControlClient" - }, - "method": { - "shortName": "UpdateAnywhereCache", - "fullName": "google.storage.control.v2.StorageControl.UpdateAnywhereCache", - "service": { - "shortName": "StorageControl", - "fullName": "google.storage.control.v2.StorageControl" - } - } - } - }, - { - "regionTag": "storage_v2_generated_StorageControl_DisableAnywhereCache_async", - "title": "StorageControl disableAnywhereCache Sample", - "origin": "API_DEFINITION", - "description": " Disables an Anywhere Cache instance. A disabled instance is read-only. The disablement could be revoked by calling ResumeAnywhereCache. The cache instance will be deleted automatically if it remains in the disabled state for at least one hour.", - "canonical": true, - "file": "storage_control.disable_anywhere_cache.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DisableAnywhereCache", - "fullName": "google.storage.control.v2.StorageControl.DisableAnywhereCache", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.storage.control.v2.AnywhereCache", - "client": { - "shortName": "StorageControlClient", - "fullName": "google.storage.control.v2.StorageControlClient" - }, - "method": { - "shortName": "DisableAnywhereCache", - "fullName": "google.storage.control.v2.StorageControl.DisableAnywhereCache", - "service": { - "shortName": "StorageControl", - "fullName": "google.storage.control.v2.StorageControl" - } - } - } - }, - { - "regionTag": "storage_v2_generated_StorageControl_PauseAnywhereCache_async", - "title": "StorageControl pauseAnywhereCache Sample", - "origin": "API_DEFINITION", - "description": " Pauses an Anywhere Cache instance.", - "canonical": true, - "file": "storage_control.pause_anywhere_cache.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PauseAnywhereCache", - "fullName": "google.storage.control.v2.StorageControl.PauseAnywhereCache", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.storage.control.v2.AnywhereCache", - "client": { - "shortName": "StorageControlClient", - "fullName": "google.storage.control.v2.StorageControlClient" - }, - "method": { - "shortName": "PauseAnywhereCache", - "fullName": "google.storage.control.v2.StorageControl.PauseAnywhereCache", - "service": { - "shortName": "StorageControl", - "fullName": "google.storage.control.v2.StorageControl" - } - } - } - }, - { - "regionTag": "storage_v2_generated_StorageControl_ResumeAnywhereCache_async", - "title": "StorageControl resumeAnywhereCache Sample", - "origin": "API_DEFINITION", - "description": " Resumes a disabled or paused Anywhere Cache instance.", - "canonical": true, - "file": "storage_control.resume_anywhere_cache.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResumeAnywhereCache", - "fullName": "google.storage.control.v2.StorageControl.ResumeAnywhereCache", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.storage.control.v2.AnywhereCache", - "client": { - "shortName": "StorageControlClient", - "fullName": "google.storage.control.v2.StorageControlClient" - }, - "method": { - "shortName": "ResumeAnywhereCache", - "fullName": "google.storage.control.v2.StorageControl.ResumeAnywhereCache", - "service": { - "shortName": "StorageControl", - "fullName": "google.storage.control.v2.StorageControl" - } - } - } - }, - { - "regionTag": "storage_v2_generated_StorageControl_GetAnywhereCache_async", - "title": "StorageControl getAnywhereCache Sample", - "origin": "API_DEFINITION", - "description": " Gets an Anywhere Cache instance.", - "canonical": true, - "file": "storage_control.get_anywhere_cache.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAnywhereCache", - "fullName": "google.storage.control.v2.StorageControl.GetAnywhereCache", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.storage.control.v2.AnywhereCache", - "client": { - "shortName": "StorageControlClient", - "fullName": "google.storage.control.v2.StorageControlClient" - }, - "method": { - "shortName": "GetAnywhereCache", - "fullName": "google.storage.control.v2.StorageControl.GetAnywhereCache", - "service": { - "shortName": "StorageControl", - "fullName": "google.storage.control.v2.StorageControl" - } - } - } - }, - { - "regionTag": "storage_v2_generated_StorageControl_ListAnywhereCaches_async", - "title": "StorageControl listAnywhereCaches Sample", - "origin": "API_DEFINITION", - "description": " Lists Anywhere Cache instances for a given bucket.", - "canonical": true, - "file": "storage_control.list_anywhere_caches.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAnywhereCaches", - "fullName": "google.storage.control.v2.StorageControl.ListAnywhereCaches", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.storage.control.v2.ListAnywhereCachesResponse", - "client": { - "shortName": "StorageControlClient", - "fullName": "google.storage.control.v2.StorageControlClient" - }, - "method": { - "shortName": "ListAnywhereCaches", - "fullName": "google.storage.control.v2.StorageControl.ListAnywhereCaches", - "service": { - "shortName": "StorageControl", - "fullName": "google.storage.control.v2.StorageControl" - } - } - } - }, - { - "regionTag": "storage_v2_generated_StorageControl_GetProjectIntelligenceConfig_async", - "title": "StorageControl getProjectIntelligenceConfig Sample", - "origin": "API_DEFINITION", - "description": " Returns the Project scoped singleton IntelligenceConfig resource.", - "canonical": true, - "file": "storage_control.get_project_intelligence_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetProjectIntelligenceConfig", - "fullName": "google.storage.control.v2.StorageControl.GetProjectIntelligenceConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.storage.control.v2.IntelligenceConfig", - "client": { - "shortName": "StorageControlClient", - "fullName": "google.storage.control.v2.StorageControlClient" - }, - "method": { - "shortName": "GetProjectIntelligenceConfig", - "fullName": "google.storage.control.v2.StorageControl.GetProjectIntelligenceConfig", - "service": { - "shortName": "StorageControl", - "fullName": "google.storage.control.v2.StorageControl" - } - } - } - }, - { - "regionTag": "storage_v2_generated_StorageControl_UpdateProjectIntelligenceConfig_async", - "title": "StorageControl updateProjectIntelligenceConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates the Project scoped singleton IntelligenceConfig resource.", - "canonical": true, - "file": "storage_control.update_project_intelligence_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateProjectIntelligenceConfig", - "fullName": "google.storage.control.v2.StorageControl.UpdateProjectIntelligenceConfig", - "async": true, - "parameters": [ - { - "name": "intelligence_config", - "type": ".google.storage.control.v2.IntelligenceConfig" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.storage.control.v2.IntelligenceConfig", - "client": { - "shortName": "StorageControlClient", - "fullName": "google.storage.control.v2.StorageControlClient" - }, - "method": { - "shortName": "UpdateProjectIntelligenceConfig", - "fullName": "google.storage.control.v2.StorageControl.UpdateProjectIntelligenceConfig", - "service": { - "shortName": "StorageControl", - "fullName": "google.storage.control.v2.StorageControl" - } - } - } - }, - { - "regionTag": "storage_v2_generated_StorageControl_GetFolderIntelligenceConfig_async", - "title": "StorageControl getFolderIntelligenceConfig Sample", - "origin": "API_DEFINITION", - "description": " Returns the Folder scoped singleton IntelligenceConfig resource.", - "canonical": true, - "file": "storage_control.get_folder_intelligence_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetFolderIntelligenceConfig", - "fullName": "google.storage.control.v2.StorageControl.GetFolderIntelligenceConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.storage.control.v2.IntelligenceConfig", - "client": { - "shortName": "StorageControlClient", - "fullName": "google.storage.control.v2.StorageControlClient" - }, - "method": { - "shortName": "GetFolderIntelligenceConfig", - "fullName": "google.storage.control.v2.StorageControl.GetFolderIntelligenceConfig", - "service": { - "shortName": "StorageControl", - "fullName": "google.storage.control.v2.StorageControl" - } - } - } - }, - { - "regionTag": "storage_v2_generated_StorageControl_UpdateFolderIntelligenceConfig_async", - "title": "StorageControl updateFolderIntelligenceConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates the Folder scoped singleton IntelligenceConfig resource.", - "canonical": true, - "file": "storage_control.update_folder_intelligence_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateFolderIntelligenceConfig", - "fullName": "google.storage.control.v2.StorageControl.UpdateFolderIntelligenceConfig", - "async": true, - "parameters": [ - { - "name": "intelligence_config", - "type": ".google.storage.control.v2.IntelligenceConfig" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.storage.control.v2.IntelligenceConfig", - "client": { - "shortName": "StorageControlClient", - "fullName": "google.storage.control.v2.StorageControlClient" - }, - "method": { - "shortName": "UpdateFolderIntelligenceConfig", - "fullName": "google.storage.control.v2.StorageControl.UpdateFolderIntelligenceConfig", - "service": { - "shortName": "StorageControl", - "fullName": "google.storage.control.v2.StorageControl" - } - } - } - }, - { - "regionTag": "storage_v2_generated_StorageControl_GetOrganizationIntelligenceConfig_async", - "title": "StorageControl getOrganizationIntelligenceConfig Sample", - "origin": "API_DEFINITION", - "description": " Returns the Organization scoped singleton IntelligenceConfig resource.", - "canonical": true, - "file": "storage_control.get_organization_intelligence_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetOrganizationIntelligenceConfig", - "fullName": "google.storage.control.v2.StorageControl.GetOrganizationIntelligenceConfig", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.storage.control.v2.IntelligenceConfig", - "client": { - "shortName": "StorageControlClient", - "fullName": "google.storage.control.v2.StorageControlClient" - }, - "method": { - "shortName": "GetOrganizationIntelligenceConfig", - "fullName": "google.storage.control.v2.StorageControl.GetOrganizationIntelligenceConfig", - "service": { - "shortName": "StorageControl", - "fullName": "google.storage.control.v2.StorageControl" - } - } - } - }, - { - "regionTag": "storage_v2_generated_StorageControl_UpdateOrganizationIntelligenceConfig_async", - "title": "StorageControl updateOrganizationIntelligenceConfig Sample", - "origin": "API_DEFINITION", - "description": " Updates the Organization scoped singleton IntelligenceConfig resource.", - "canonical": true, - "file": "storage_control.update_organization_intelligence_config.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateOrganizationIntelligenceConfig", - "fullName": "google.storage.control.v2.StorageControl.UpdateOrganizationIntelligenceConfig", - "async": true, - "parameters": [ - { - "name": "intelligence_config", - "type": ".google.storage.control.v2.IntelligenceConfig" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "request_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.storage.control.v2.IntelligenceConfig", - "client": { - "shortName": "StorageControlClient", - "fullName": "google.storage.control.v2.StorageControlClient" - }, - "method": { - "shortName": "UpdateOrganizationIntelligenceConfig", - "fullName": "google.storage.control.v2.StorageControl.UpdateOrganizationIntelligenceConfig", - "service": { - "shortName": "StorageControl", - "fullName": "google.storage.control.v2.StorageControl" - } - } - } - }, - { - "regionTag": "storage_v2_generated_StorageControl_GetIamPolicy_async", - "title": "StorageControl getIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Gets the IAM policy for a specified bucket. The `resource` field in the request should be `projects/_/buckets/{bucket}` for a bucket, or `projects/_/buckets/{bucket}/managedFolders/{managedFolder}` for a managed folder.", - "canonical": true, - "file": "storage_control.get_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIamPolicy", - "fullName": "google.storage.control.v2.StorageControl.GetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "options", - "type": ".google.iam.v1.GetPolicyOptions" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "StorageControlClient", - "fullName": "google.storage.control.v2.StorageControlClient" - }, - "method": { - "shortName": "GetIamPolicy", - "fullName": "google.storage.control.v2.StorageControl.GetIamPolicy", - "service": { - "shortName": "StorageControl", - "fullName": "google.storage.control.v2.StorageControl" - } - } - } - }, - { - "regionTag": "storage_v2_generated_StorageControl_SetIamPolicy_async", - "title": "StorageControl setIamPolicy Sample", - "origin": "API_DEFINITION", - "description": " Updates an IAM policy for the specified bucket. The `resource` field in the request should be `projects/_/buckets/{bucket}` for a bucket, or `projects/_/buckets/{bucket}/managedFolders/{managedFolder}` for a managed folder.", - "canonical": true, - "file": "storage_control.set_iam_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetIamPolicy", - "fullName": "google.storage.control.v2.StorageControl.SetIamPolicy", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "policy", - "type": ".google.iam.v1.Policy" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.iam.v1.Policy", - "client": { - "shortName": "StorageControlClient", - "fullName": "google.storage.control.v2.StorageControlClient" - }, - "method": { - "shortName": "SetIamPolicy", - "fullName": "google.storage.control.v2.StorageControl.SetIamPolicy", - "service": { - "shortName": "StorageControl", - "fullName": "google.storage.control.v2.StorageControl" - } - } - } - }, - { - "regionTag": "storage_v2_generated_StorageControl_TestIamPermissions_async", - "title": "StorageControl testIamPermissions Sample", - "origin": "API_DEFINITION", - "description": " Tests a set of permissions on the given bucket, object, or managed folder to see which, if any, are held by the caller. The `resource` field in the request should be `projects/_/buckets/{bucket}` for a bucket, `projects/_/buckets/{bucket}/objects/{object}` for an object, or `projects/_/buckets/{bucket}/managedFolders/{managedFolder}` for a managed folder.", - "canonical": true, - "file": "storage_control.test_iam_permissions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "TestIamPermissions", - "fullName": "google.storage.control.v2.StorageControl.TestIamPermissions", - "async": true, - "parameters": [ - { - "name": "resource", - "type": "TYPE_STRING" - }, - { - "name": "permissions", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.iam.v1.TestIamPermissionsResponse", - "client": { - "shortName": "StorageControlClient", - "fullName": "google.storage.control.v2.StorageControlClient" - }, - "method": { - "shortName": "TestIamPermissions", - "fullName": "google.storage.control.v2.StorageControl.TestIamPermissions", - "service": { - "shortName": "StorageControl", - "fullName": "google.storage.control.v2.StorageControl" - } - } - } - }, - { - "regionTag": "storage_v2_generated_StorageControl_GetIntelligenceFinding_async", - "title": "StorageControl getIntelligenceFinding Sample", - "origin": "API_DEFINITION", - "description": " Gets the `IntelligenceFinding` for a project.", - "canonical": true, - "file": "storage_control.get_intelligence_finding.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIntelligenceFinding", - "fullName": "google.storage.control.v2.StorageControl.GetIntelligenceFinding", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.storage.control.v2.IntelligenceFinding", - "client": { - "shortName": "StorageControlClient", - "fullName": "google.storage.control.v2.StorageControlClient" - }, - "method": { - "shortName": "GetIntelligenceFinding", - "fullName": "google.storage.control.v2.StorageControl.GetIntelligenceFinding", - "service": { - "shortName": "StorageControl", - "fullName": "google.storage.control.v2.StorageControl" - } - } - } - }, - { - "regionTag": "storage_v2_generated_StorageControl_ListIntelligenceFindings_async", - "title": "StorageControl listIntelligenceFindings Sample", - "origin": "API_DEFINITION", - "description": " Lists the `IntelligenceFinding` resources for the specified project.", - "canonical": true, - "file": "storage_control.list_intelligence_findings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListIntelligenceFindings", - "fullName": "google.storage.control.v2.StorageControl.ListIntelligenceFindings", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.storage.control.v2.ListIntelligenceFindingsResponse", - "client": { - "shortName": "StorageControlClient", - "fullName": "google.storage.control.v2.StorageControlClient" - }, - "method": { - "shortName": "ListIntelligenceFindings", - "fullName": "google.storage.control.v2.StorageControl.ListIntelligenceFindings", - "service": { - "shortName": "StorageControl", - "fullName": "google.storage.control.v2.StorageControl" - } - } - } - }, - { - "regionTag": "storage_v2_generated_StorageControl_SummarizeIntelligenceFindings_async", - "title": "StorageControl summarizeIntelligenceFindings Sample", - "origin": "API_DEFINITION", - "description": " Summarize the intelligence findings for the specified scope(org, folder or project).", - "canonical": true, - "file": "storage_control.summarize_intelligence_findings.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 91, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SummarizeIntelligenceFindings", - "fullName": "google.storage.control.v2.StorageControl.SummarizeIntelligenceFindings", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "resource_scope", - "type": ".google.storage.control.v2.SummarizeIntelligenceFindingsRequest.ResourceScope" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.storage.control.v2.SummarizeIntelligenceFindingsResponse", - "client": { - "shortName": "StorageControlClient", - "fullName": "google.storage.control.v2.StorageControlClient" - }, - "method": { - "shortName": "SummarizeIntelligenceFindings", - "fullName": "google.storage.control.v2.StorageControl.SummarizeIntelligenceFindings", - "service": { - "shortName": "StorageControl", - "fullName": "google.storage.control.v2.StorageControl" - } - } - } - }, - { - "regionTag": "storage_v2_generated_StorageControl_GetIntelligenceFindingRevision_async", - "title": "StorageControl getIntelligenceFindingRevision Sample", - "origin": "API_DEFINITION", - "description": " Gets the `IntelligenceFindingRevision` resource.", - "canonical": true, - "file": "storage_control.get_intelligence_finding_revision.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetIntelligenceFindingRevision", - "fullName": "google.storage.control.v2.StorageControl.GetIntelligenceFindingRevision", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.storage.control.v2.IntelligenceFindingRevision", - "client": { - "shortName": "StorageControlClient", - "fullName": "google.storage.control.v2.StorageControlClient" - }, - "method": { - "shortName": "GetIntelligenceFindingRevision", - "fullName": "google.storage.control.v2.StorageControl.GetIntelligenceFindingRevision", - "service": { - "shortName": "StorageControl", - "fullName": "google.storage.control.v2.StorageControl" - } - } - } - }, - { - "regionTag": "storage_v2_generated_StorageControl_ListIntelligenceFindingRevisions_async", - "title": "StorageControl listIntelligenceFindingRevisions Sample", - "origin": "API_DEFINITION", - "description": " Lists all the revisions of an `IntelligenceFinding` resource.", - "canonical": true, - "file": "storage_control.list_intelligence_finding_revisions.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 70, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListIntelligenceFindingRevisions", - "fullName": "google.storage.control.v2.StorageControl.ListIntelligenceFindingRevisions", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.storage.control.v2.ListIntelligenceFindingRevisionsResponse", - "client": { - "shortName": "StorageControlClient", - "fullName": "google.storage.control.v2.StorageControlClient" - }, - "method": { - "shortName": "ListIntelligenceFindingRevisions", - "fullName": "google.storage.control.v2.StorageControl.ListIntelligenceFindingRevisions", - "service": { - "shortName": "StorageControl", - "fullName": "google.storage.control.v2.StorageControl" - } - } - } - } - ] -} diff --git a/packages/google-storage-control/samples/generated/v2/snippet_metadata_google.storage.v2.json b/packages/google-storage-control/samples/generated/v2/snippet_metadata_google.storage.v2.json deleted file mode 100644 index 7d8ebc43fb2f..000000000000 --- a/packages/google-storage-control/samples/generated/v2/snippet_metadata_google.storage.v2.json +++ /dev/null @@ -1,339 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-storage", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.storage.v2", - "version": "v2" - } - ] - }, - "snippets": [ - { - "regionTag": "storage_v2_generated_Storage_DeleteBucket_async", - "title": "Storage deleteBucket Sample", - "origin": "API_DEFINITION", - "description": " Permanently deletes an empty bucket. The request fails if there are any live or noncurrent objects in the bucket, but the request succeeds if the bucket only contains soft-deleted objects or incomplete uploads, such as ongoing XML API multipart uploads. Does not permanently delete soft-deleted objects. When this API is used to delete a bucket containing an object that has a soft delete policy enabled, the object becomes soft deleted, and the `softDeleteTime` and `hardDeleteTime` properties are set on the object. Objects and multipart uploads that were in the bucket at the time of deletion are also retained for the specified retention duration. When a soft-deleted bucket reaches the end of its retention duration, it is permanently deleted. The `hardDeleteTime` of the bucket always equals or exceeds the expiration time of the last soft-deleted object in the bucket. **IAM Permissions**: Requires `storage.buckets.delete` IAM permission on the bucket.", - "canonical": true, - "file": "storage.delete_bucket.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteBucket", - "fullName": "google.storage.v2.Storage.DeleteBucket", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "if_metageneration_match", - "type": "TYPE_INT64" - }, - { - "name": "if_metageneration_not_match", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "StorageClient", - "fullName": "google.storage.v2.StorageClient" - }, - "method": { - "shortName": "DeleteBucket", - "fullName": "google.storage.v2.Storage.DeleteBucket", - "service": { - "shortName": "Storage", - "fullName": "google.storage.v2.Storage" - } - } - } - }, - { - "regionTag": "storage_v2_generated_Storage_GetBucket_async", - "title": "Storage getBucket Sample", - "origin": "API_DEFINITION", - "description": " Returns metadata for the specified bucket. **IAM Permissions**: Requires `storage.buckets.get` IAM permission on the bucket. Additionally, to return specific bucket metadata, the authenticated user must have the following permissions: - To return the IAM policies: `storage.buckets.getIamPolicy` - To return the bucket IP filtering rules: `storage.buckets.getIpFilter`", - "canonical": true, - "file": "storage.get_bucket.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetBucket", - "fullName": "google.storage.v2.Storage.GetBucket", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "if_metageneration_match", - "type": "TYPE_INT64" - }, - { - "name": "if_metageneration_not_match", - "type": "TYPE_INT64" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.storage.v2.Bucket", - "client": { - "shortName": "StorageClient", - "fullName": "google.storage.v2.StorageClient" - }, - "method": { - "shortName": "GetBucket", - "fullName": "google.storage.v2.Storage.GetBucket", - "service": { - "shortName": "Storage", - "fullName": "google.storage.v2.Storage" - } - } - } - }, - { - "regionTag": "storage_v2_generated_Storage_CreateBucket_async", - "title": "Storage createBucket Sample", - "origin": "API_DEFINITION", - "description": " Creates a new bucket. **IAM Permissions**: Requires `storage.buckets.create` IAM permission on the bucket. Additionally, to enable specific bucket features, the authenticated user must have the following permissions: - To enable object retention using the `enableObjectRetention` query parameter: `storage.buckets.enableObjectRetention` - To set the bucket IP filtering rules: `storage.buckets.setIpFilter`", - "canonical": true, - "file": "storage.create_bucket.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 88, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateBucket", - "fullName": "google.storage.v2.Storage.CreateBucket", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "bucket", - "type": ".google.storage.v2.Bucket" - }, - { - "name": "bucket_id", - "type": "TYPE_STRING" - }, - { - "name": "predefined_acl", - "type": "TYPE_STRING" - }, - { - "name": "predefined_default_object_acl", - "type": "TYPE_STRING" - }, - { - "name": "enable_object_retention", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.storage.v2.Bucket", - "client": { - "shortName": "StorageClient", - "fullName": "google.storage.v2.StorageClient" - }, - "method": { - "shortName": "CreateBucket", - "fullName": "google.storage.v2.Storage.CreateBucket", - "service": { - "shortName": "Storage", - "fullName": "google.storage.v2.Storage" - } - } - } - }, - { - "regionTag": "storage_v2_generated_Storage_ListBuckets_async", - "title": "Storage listBuckets Sample", - "origin": "API_DEFINITION", - "description": " Retrieves a list of buckets for a given project, ordered lexicographically by name. **IAM Permissions**: Requires `storage.buckets.list` IAM permission on the bucket. Additionally, to enable specific bucket features, the authenticated user must have the following permissions: - To list the IAM policies: `storage.buckets.getIamPolicy` - To list the bucket IP filtering rules: `storage.buckets.getIpFilter`", - "canonical": true, - "file": "storage.list_buckets.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 83, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListBuckets", - "fullName": "google.storage.v2.Storage.ListBuckets", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "prefix", - "type": "TYPE_STRING" - }, - { - "name": "read_mask", - "type": ".google.protobuf.FieldMask" - }, - { - "name": "return_partial_success", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.storage.v2.ListBucketsResponse", - "client": { - "shortName": "StorageClient", - "fullName": "google.storage.v2.StorageClient" - }, - "method": { - "shortName": "ListBuckets", - "fullName": "google.storage.v2.Storage.ListBuckets", - "service": { - "shortName": "Storage", - "fullName": "google.storage.v2.Storage" - } - } - } - }, - { - "regionTag": "storage_v2_generated_Storage_LockBucketRetentionPolicy_async", - "title": "Storage lockBucketRetentionPolicy Sample", - "origin": "API_DEFINITION", - "description": " Permanently locks the retention policy that is currently applied to the specified bucket. Caution: Locking a bucket is an irreversible action. Once you lock a bucket: - You cannot remove the retention policy from the bucket. - You cannot decrease the retention period for the policy. Once locked, you must delete the entire bucket in order to remove the bucket's retention policy. However, before you can delete the bucket, you must delete all the objects in the bucket, which is only possible if all the objects have reached the retention period set by the retention policy. **IAM Permissions**: Requires `storage.buckets.update` IAM permission on the bucket.", - "canonical": true, - "file": "storage.lock_bucket_retention_policy.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "LockBucketRetentionPolicy", - "fullName": "google.storage.v2.Storage.LockBucketRetentionPolicy", - "async": true, - "parameters": [ - { - "name": "bucket", - "type": "TYPE_STRING" - }, - { - "name": "if_metageneration_match", - "type": "TYPE_INT64" - } - ], - "resultType": ".google.storage.v2.Bucket", - "client": { - "shortName": "StorageClient", - "fullName": "google.storage.v2.StorageClient" - }, - "method": { - "shortName": "LockBucketRetentionPolicy", - "fullName": "google.storage.v2.Storage.LockBucketRetentionPolicy", - "service": { - "shortName": "Storage", - "fullName": "google.storage.v2.Storage" - } - } - } - }, - { - "regionTag": "storage_v2_generated_Storage_UpdateBucket_async", - "title": "Storage updateBucket Sample", - "origin": "API_DEFINITION", - "description": " Updates a bucket. Changes to the bucket are readable immediately after writing, but configuration changes might take time to propagate. This method supports `patch` semantics. **IAM Permissions**: Requires `storage.buckets.update` IAM permission on the bucket. Additionally, to enable specific bucket features, the authenticated user must have the following permissions: - To set bucket IP filtering rules: `storage.buckets.setIpFilter` - To update public access prevention policies or access control lists (ACLs): `storage.buckets.setIamPolicy`", - "canonical": true, - "file": "storage.update_bucket.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateBucket", - "fullName": "google.storage.v2.Storage.UpdateBucket", - "async": true, - "parameters": [ - { - "name": "bucket", - "type": ".google.storage.v2.Bucket" - }, - { - "name": "if_metageneration_match", - "type": "TYPE_INT64" - }, - { - "name": "if_metageneration_not_match", - "type": "TYPE_INT64" - }, - { - "name": "predefined_acl", - "type": "TYPE_STRING" - }, - { - "name": "predefined_default_object_acl", - "type": "TYPE_STRING" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.storage.v2.Bucket", - "client": { - "shortName": "StorageClient", - "fullName": "google.storage.v2.StorageClient" - }, - "method": { - "shortName": "UpdateBucket", - "fullName": "google.storage.v2.Storage.UpdateBucket", - "service": { - "shortName": "Storage", - "fullName": "google.storage.v2.Storage" - } - } - } - } - ] -} diff --git a/packages/google-storagetransfer/samples/generated/v1/snippet_metadata_google.storagetransfer.v1.json b/packages/google-storagetransfer/samples/generated/v1/snippet_metadata_google.storagetransfer.v1.json deleted file mode 100644 index 859d31113598..000000000000 --- a/packages/google-storagetransfer/samples/generated/v1/snippet_metadata_google.storagetransfer.v1.json +++ /dev/null @@ -1,631 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-storagetransfer", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.storagetransfer.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "storagetransfer_v1_generated_StorageTransferService_GetGoogleServiceAccount_async", - "title": "StorageTransferService getGoogleServiceAccount Sample", - "origin": "API_DEFINITION", - "description": " Returns the Google service account that is used by Storage Transfer Service to access buckets in the project where transfers run or in other projects. Each Google service account is associated with one Google Cloud project. Users should add this service account to the Google Cloud Storage bucket ACLs to grant access to Storage Transfer Service. This service account is created and owned by Storage Transfer Service and can only be used by Storage Transfer Service.", - "canonical": true, - "file": "storage_transfer_service.get_google_service_account.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetGoogleServiceAccount", - "fullName": "google.storagetransfer.v1.StorageTransferService.GetGoogleServiceAccount", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.storagetransfer.v1.GoogleServiceAccount", - "client": { - "shortName": "StorageTransferServiceClient", - "fullName": "google.storagetransfer.v1.StorageTransferServiceClient" - }, - "method": { - "shortName": "GetGoogleServiceAccount", - "fullName": "google.storagetransfer.v1.StorageTransferService.GetGoogleServiceAccount", - "service": { - "shortName": "StorageTransferService", - "fullName": "google.storagetransfer.v1.StorageTransferService" - } - } - } - }, - { - "regionTag": "storagetransfer_v1_generated_StorageTransferService_CreateTransferJob_async", - "title": "StorageTransferService createTransferJob Sample", - "origin": "API_DEFINITION", - "description": " Creates a transfer job that runs periodically.", - "canonical": true, - "file": "storage_transfer_service.create_transfer_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateTransferJob", - "fullName": "google.storagetransfer.v1.StorageTransferService.CreateTransferJob", - "async": true, - "parameters": [ - { - "name": "transfer_job", - "type": ".google.storagetransfer.v1.TransferJob" - } - ], - "resultType": ".google.storagetransfer.v1.TransferJob", - "client": { - "shortName": "StorageTransferServiceClient", - "fullName": "google.storagetransfer.v1.StorageTransferServiceClient" - }, - "method": { - "shortName": "CreateTransferJob", - "fullName": "google.storagetransfer.v1.StorageTransferService.CreateTransferJob", - "service": { - "shortName": "StorageTransferService", - "fullName": "google.storagetransfer.v1.StorageTransferService" - } - } - } - }, - { - "regionTag": "storagetransfer_v1_generated_StorageTransferService_UpdateTransferJob_async", - "title": "StorageTransferService updateTransferJob Sample", - "origin": "API_DEFINITION", - "description": " Updates a transfer job. Updating a job's transfer spec does not affect transfer operations that are running already. **Note:** The job's [status][google.storagetransfer.v1.TransferJob.status] field can be modified using this RPC (for example, to set a job's status to [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED], [DISABLED][google.storagetransfer.v1.TransferJob.Status.DISABLED], or [ENABLED][google.storagetransfer.v1.TransferJob.Status.ENABLED]).", - "canonical": true, - "file": "storage_transfer_service.update_transfer_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 89, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateTransferJob", - "fullName": "google.storagetransfer.v1.StorageTransferService.UpdateTransferJob", - "async": true, - "parameters": [ - { - "name": "job_name", - "type": "TYPE_STRING" - }, - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "transfer_job", - "type": ".google.storagetransfer.v1.TransferJob" - }, - { - "name": "update_transfer_job_field_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.storagetransfer.v1.TransferJob", - "client": { - "shortName": "StorageTransferServiceClient", - "fullName": "google.storagetransfer.v1.StorageTransferServiceClient" - }, - "method": { - "shortName": "UpdateTransferJob", - "fullName": "google.storagetransfer.v1.StorageTransferService.UpdateTransferJob", - "service": { - "shortName": "StorageTransferService", - "fullName": "google.storagetransfer.v1.StorageTransferService" - } - } - } - }, - { - "regionTag": "storagetransfer_v1_generated_StorageTransferService_GetTransferJob_async", - "title": "StorageTransferService getTransferJob Sample", - "origin": "API_DEFINITION", - "description": " Gets a transfer job.", - "canonical": true, - "file": "storage_transfer_service.get_transfer_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetTransferJob", - "fullName": "google.storagetransfer.v1.StorageTransferService.GetTransferJob", - "async": true, - "parameters": [ - { - "name": "job_name", - "type": "TYPE_STRING" - }, - { - "name": "project_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.storagetransfer.v1.TransferJob", - "client": { - "shortName": "StorageTransferServiceClient", - "fullName": "google.storagetransfer.v1.StorageTransferServiceClient" - }, - "method": { - "shortName": "GetTransferJob", - "fullName": "google.storagetransfer.v1.StorageTransferService.GetTransferJob", - "service": { - "shortName": "StorageTransferService", - "fullName": "google.storagetransfer.v1.StorageTransferService" - } - } - } - }, - { - "regionTag": "storagetransfer_v1_generated_StorageTransferService_ListTransferJobs_async", - "title": "StorageTransferService listTransferJobs Sample", - "origin": "API_DEFINITION", - "description": " Lists transfer jobs.", - "canonical": true, - "file": "storage_transfer_service.list_transfer_jobs.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 86, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListTransferJobs", - "fullName": "google.storagetransfer.v1.StorageTransferService.ListTransferJobs", - "async": true, - "parameters": [ - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.storagetransfer.v1.ListTransferJobsResponse", - "client": { - "shortName": "StorageTransferServiceClient", - "fullName": "google.storagetransfer.v1.StorageTransferServiceClient" - }, - "method": { - "shortName": "ListTransferJobs", - "fullName": "google.storagetransfer.v1.StorageTransferService.ListTransferJobs", - "service": { - "shortName": "StorageTransferService", - "fullName": "google.storagetransfer.v1.StorageTransferService" - } - } - } - }, - { - "regionTag": "storagetransfer_v1_generated_StorageTransferService_PauseTransferOperation_async", - "title": "StorageTransferService pauseTransferOperation Sample", - "origin": "API_DEFINITION", - "description": " Pauses a transfer operation.", - "canonical": true, - "file": "storage_transfer_service.pause_transfer_operation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "PauseTransferOperation", - "fullName": "google.storagetransfer.v1.StorageTransferService.PauseTransferOperation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "StorageTransferServiceClient", - "fullName": "google.storagetransfer.v1.StorageTransferServiceClient" - }, - "method": { - "shortName": "PauseTransferOperation", - "fullName": "google.storagetransfer.v1.StorageTransferService.PauseTransferOperation", - "service": { - "shortName": "StorageTransferService", - "fullName": "google.storagetransfer.v1.StorageTransferService" - } - } - } - }, - { - "regionTag": "storagetransfer_v1_generated_StorageTransferService_ResumeTransferOperation_async", - "title": "StorageTransferService resumeTransferOperation Sample", - "origin": "API_DEFINITION", - "description": " Resumes a transfer operation that is paused.", - "canonical": true, - "file": "storage_transfer_service.resume_transfer_operation.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ResumeTransferOperation", - "fullName": "google.storagetransfer.v1.StorageTransferService.ResumeTransferOperation", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "StorageTransferServiceClient", - "fullName": "google.storagetransfer.v1.StorageTransferServiceClient" - }, - "method": { - "shortName": "ResumeTransferOperation", - "fullName": "google.storagetransfer.v1.StorageTransferService.ResumeTransferOperation", - "service": { - "shortName": "StorageTransferService", - "fullName": "google.storagetransfer.v1.StorageTransferService" - } - } - } - }, - { - "regionTag": "storagetransfer_v1_generated_StorageTransferService_RunTransferJob_async", - "title": "StorageTransferService runTransferJob Sample", - "origin": "API_DEFINITION", - "description": " Starts a new operation for the specified transfer job. A `TransferJob` has a maximum of one active `TransferOperation`. If this method is called while a `TransferOperation` is active, an error is returned.", - "canonical": true, - "file": "storage_transfer_service.run_transfer_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RunTransferJob", - "fullName": "google.storagetransfer.v1.StorageTransferService.RunTransferJob", - "async": true, - "parameters": [ - { - "name": "job_name", - "type": "TYPE_STRING" - }, - { - "name": "project_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "StorageTransferServiceClient", - "fullName": "google.storagetransfer.v1.StorageTransferServiceClient" - }, - "method": { - "shortName": "RunTransferJob", - "fullName": "google.storagetransfer.v1.StorageTransferService.RunTransferJob", - "service": { - "shortName": "StorageTransferService", - "fullName": "google.storagetransfer.v1.StorageTransferService" - } - } - } - }, - { - "regionTag": "storagetransfer_v1_generated_StorageTransferService_DeleteTransferJob_async", - "title": "StorageTransferService deleteTransferJob Sample", - "origin": "API_DEFINITION", - "description": " Deletes a transfer job. Deleting a transfer job sets its status to [DELETED][google.storagetransfer.v1.TransferJob.Status.DELETED].", - "canonical": true, - "file": "storage_transfer_service.delete_transfer_job.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteTransferJob", - "fullName": "google.storagetransfer.v1.StorageTransferService.DeleteTransferJob", - "async": true, - "parameters": [ - { - "name": "job_name", - "type": "TYPE_STRING" - }, - { - "name": "project_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "StorageTransferServiceClient", - "fullName": "google.storagetransfer.v1.StorageTransferServiceClient" - }, - "method": { - "shortName": "DeleteTransferJob", - "fullName": "google.storagetransfer.v1.StorageTransferService.DeleteTransferJob", - "service": { - "shortName": "StorageTransferService", - "fullName": "google.storagetransfer.v1.StorageTransferService" - } - } - } - }, - { - "regionTag": "storagetransfer_v1_generated_StorageTransferService_CreateAgentPool_async", - "title": "StorageTransferService createAgentPool Sample", - "origin": "API_DEFINITION", - "description": " Creates an agent pool resource.", - "canonical": true, - "file": "storage_transfer_service.create_agent_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 73, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateAgentPool", - "fullName": "google.storagetransfer.v1.StorageTransferService.CreateAgentPool", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "agent_pool", - "type": ".google.storagetransfer.v1.AgentPool" - }, - { - "name": "agent_pool_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.storagetransfer.v1.AgentPool", - "client": { - "shortName": "StorageTransferServiceClient", - "fullName": "google.storagetransfer.v1.StorageTransferServiceClient" - }, - "method": { - "shortName": "CreateAgentPool", - "fullName": "google.storagetransfer.v1.StorageTransferService.CreateAgentPool", - "service": { - "shortName": "StorageTransferService", - "fullName": "google.storagetransfer.v1.StorageTransferService" - } - } - } - }, - { - "regionTag": "storagetransfer_v1_generated_StorageTransferService_UpdateAgentPool_async", - "title": "StorageTransferService updateAgentPool Sample", - "origin": "API_DEFINITION", - "description": " Updates an existing agent pool resource.", - "canonical": true, - "file": "storage_transfer_service.update_agent_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateAgentPool", - "fullName": "google.storagetransfer.v1.StorageTransferService.UpdateAgentPool", - "async": true, - "parameters": [ - { - "name": "agent_pool", - "type": ".google.storagetransfer.v1.AgentPool" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.storagetransfer.v1.AgentPool", - "client": { - "shortName": "StorageTransferServiceClient", - "fullName": "google.storagetransfer.v1.StorageTransferServiceClient" - }, - "method": { - "shortName": "UpdateAgentPool", - "fullName": "google.storagetransfer.v1.StorageTransferService.UpdateAgentPool", - "service": { - "shortName": "StorageTransferService", - "fullName": "google.storagetransfer.v1.StorageTransferService" - } - } - } - }, - { - "regionTag": "storagetransfer_v1_generated_StorageTransferService_GetAgentPool_async", - "title": "StorageTransferService getAgentPool Sample", - "origin": "API_DEFINITION", - "description": " Gets an agent pool.", - "canonical": true, - "file": "storage_transfer_service.get_agent_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetAgentPool", - "fullName": "google.storagetransfer.v1.StorageTransferService.GetAgentPool", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.storagetransfer.v1.AgentPool", - "client": { - "shortName": "StorageTransferServiceClient", - "fullName": "google.storagetransfer.v1.StorageTransferServiceClient" - }, - "method": { - "shortName": "GetAgentPool", - "fullName": "google.storagetransfer.v1.StorageTransferService.GetAgentPool", - "service": { - "shortName": "StorageTransferService", - "fullName": "google.storagetransfer.v1.StorageTransferService" - } - } - } - }, - { - "regionTag": "storagetransfer_v1_generated_StorageTransferService_ListAgentPools_async", - "title": "StorageTransferService listAgentPools Sample", - "origin": "API_DEFINITION", - "description": " Lists agent pools.", - "canonical": true, - "file": "storage_transfer_service.list_agent_pools.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 72, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListAgentPools", - "fullName": "google.storagetransfer.v1.StorageTransferService.ListAgentPools", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.storagetransfer.v1.ListAgentPoolsResponse", - "client": { - "shortName": "StorageTransferServiceClient", - "fullName": "google.storagetransfer.v1.StorageTransferServiceClient" - }, - "method": { - "shortName": "ListAgentPools", - "fullName": "google.storagetransfer.v1.StorageTransferService.ListAgentPools", - "service": { - "shortName": "StorageTransferService", - "fullName": "google.storagetransfer.v1.StorageTransferService" - } - } - } - }, - { - "regionTag": "storagetransfer_v1_generated_StorageTransferService_DeleteAgentPool_async", - "title": "StorageTransferService deleteAgentPool Sample", - "origin": "API_DEFINITION", - "description": " Deletes an agent pool.", - "canonical": true, - "file": "storage_transfer_service.delete_agent_pool.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteAgentPool", - "fullName": "google.storagetransfer.v1.StorageTransferService.DeleteAgentPool", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "StorageTransferServiceClient", - "fullName": "google.storagetransfer.v1.StorageTransferServiceClient" - }, - "method": { - "shortName": "DeleteAgentPool", - "fullName": "google.storagetransfer.v1.StorageTransferService.DeleteAgentPool", - "service": { - "shortName": "StorageTransferService", - "fullName": "google.storagetransfer.v1.StorageTransferService" - } - } - } - } - ] -} diff --git a/packages/google-streetview-publish/samples/generated/v1/snippet_metadata_google.streetview.publish.v1.json b/packages/google-streetview-publish/samples/generated/v1/snippet_metadata_google.streetview.publish.v1.json deleted file mode 100644 index 54315435882a..000000000000 --- a/packages/google-streetview-publish/samples/generated/v1/snippet_metadata_google.streetview.publish.v1.json +++ /dev/null @@ -1,621 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-publish", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.streetview.publish.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "streetviewpublish_v1_generated_StreetViewPublishService_StartUpload_async", - "title": "StreetViewPublishService startUpload Sample", - "origin": "API_DEFINITION", - "description": " Creates an upload session to start uploading photo bytes. The method uses the upload URL of the returned [UploadRef][google.streetview.publish.v1.UploadRef] to upload the bytes for the [Photo][google.streetview.publish.v1.Photo]. In addition to the photo requirements shown in https://support.google.com/maps/answer/7012050?ref_topic=6275604, the photo must meet the following requirements: * Photo Sphere XMP metadata must be included in the photo metadata. See https://developers.google.com/streetview/spherical-metadata for the required fields. * The pixel size of the photo must meet the size requirements listed in https://support.google.com/maps/answer/7012050?ref_topic=6275604, and the photo must be a full 360 horizontally. After the upload completes, the method uses [UploadRef][google.streetview.publish.v1.UploadRef] with [CreatePhoto][google.streetview.publish.v1.StreetViewPublishService.CreatePhoto] to create the [Photo][google.streetview.publish.v1.Photo] object entry.", - "canonical": true, - "file": "street_view_publish_service.start_upload.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 48, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StartUpload", - "fullName": "google.streetview.publish.v1.StreetViewPublishService.StartUpload", - "async": true, - "parameters": [], - "resultType": ".google.streetview.publish.v1.UploadRef", - "client": { - "shortName": "StreetViewPublishServiceClient", - "fullName": "google.streetview.publish.v1.StreetViewPublishServiceClient" - }, - "method": { - "shortName": "StartUpload", - "fullName": "google.streetview.publish.v1.StreetViewPublishService.StartUpload", - "service": { - "shortName": "StreetViewPublishService", - "fullName": "google.streetview.publish.v1.StreetViewPublishService" - } - } - } - }, - { - "regionTag": "streetviewpublish_v1_generated_StreetViewPublishService_CreatePhoto_async", - "title": "StreetViewPublishService createPhoto Sample", - "origin": "API_DEFINITION", - "description": " After the client finishes uploading the photo with the returned [UploadRef][google.streetview.publish.v1.UploadRef], [CreatePhoto][google.streetview.publish.v1.StreetViewPublishService.CreatePhoto] publishes the uploaded [Photo][google.streetview.publish.v1.Photo] to Street View on Google Maps. Currently, the only way to set heading, pitch, and roll in CreatePhoto is through the [Photo Sphere XMP metadata](https://developers.google.com/streetview/spherical-metadata) in the photo bytes. CreatePhoto ignores the `pose.heading`, `pose.pitch`, `pose.roll`, `pose.altitude`, and `pose.level` fields in Pose. This method returns the following error codes: * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT] if the request is malformed or if the uploaded photo is not a 360 photo. * [google.rpc.Code.NOT_FOUND][google.rpc.Code.NOT_FOUND] if the upload reference does not exist. * [google.rpc.Code.RESOURCE_EXHAUSTED][google.rpc.Code.RESOURCE_EXHAUSTED] if the account has reached the storage limit.", - "canonical": true, - "file": "street_view_publish_service.create_photo.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreatePhoto", - "fullName": "google.streetview.publish.v1.StreetViewPublishService.CreatePhoto", - "async": true, - "parameters": [ - { - "name": "photo", - "type": ".google.streetview.publish.v1.Photo" - } - ], - "resultType": ".google.streetview.publish.v1.Photo", - "client": { - "shortName": "StreetViewPublishServiceClient", - "fullName": "google.streetview.publish.v1.StreetViewPublishServiceClient" - }, - "method": { - "shortName": "CreatePhoto", - "fullName": "google.streetview.publish.v1.StreetViewPublishService.CreatePhoto", - "service": { - "shortName": "StreetViewPublishService", - "fullName": "google.streetview.publish.v1.StreetViewPublishService" - } - } - } - }, - { - "regionTag": "streetviewpublish_v1_generated_StreetViewPublishService_GetPhoto_async", - "title": "StreetViewPublishService getPhoto Sample", - "origin": "API_DEFINITION", - "description": " Gets the metadata of the specified [Photo][google.streetview.publish.v1.Photo]. This method returns the following error codes: * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED] if the requesting user did not create the requested [Photo][google.streetview.publish.v1.Photo]. * [google.rpc.Code.NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested [Photo][google.streetview.publish.v1.Photo] does not exist. * [google.rpc.Code.UNAVAILABLE][google.rpc.Code.UNAVAILABLE] if the requested [Photo][google.streetview.publish.v1.Photo] is still being indexed.", - "canonical": true, - "file": "street_view_publish_service.get_photo.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPhoto", - "fullName": "google.streetview.publish.v1.StreetViewPublishService.GetPhoto", - "async": true, - "parameters": [ - { - "name": "photo_id", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.streetview.publish.v1.PhotoView" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.streetview.publish.v1.Photo", - "client": { - "shortName": "StreetViewPublishServiceClient", - "fullName": "google.streetview.publish.v1.StreetViewPublishServiceClient" - }, - "method": { - "shortName": "GetPhoto", - "fullName": "google.streetview.publish.v1.StreetViewPublishService.GetPhoto", - "service": { - "shortName": "StreetViewPublishService", - "fullName": "google.streetview.publish.v1.StreetViewPublishService" - } - } - } - }, - { - "regionTag": "streetviewpublish_v1_generated_StreetViewPublishService_BatchGetPhotos_async", - "title": "StreetViewPublishService batchGetPhotos Sample", - "origin": "API_DEFINITION", - "description": " Gets the metadata of the specified [Photo][google.streetview.publish.v1.Photo] batch. Note that if [BatchGetPhotos][google.streetview.publish.v1.StreetViewPublishService.BatchGetPhotos] fails, either critical fields are missing or there is an authentication error. Even if [BatchGetPhotos][google.streetview.publish.v1.StreetViewPublishService.BatchGetPhotos] succeeds, individual photos in the batch may have failures. These failures are specified in each [PhotoResponse.status][google.streetview.publish.v1.PhotoResponse.status] in [BatchGetPhotosResponse.results][google.streetview.publish.v1.BatchGetPhotosResponse.results]. See [GetPhoto][google.streetview.publish.v1.StreetViewPublishService.GetPhoto] for specific failures that can occur per photo.", - "canonical": true, - "file": "street_view_publish_service.batch_get_photos.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchGetPhotos", - "fullName": "google.streetview.publish.v1.StreetViewPublishService.BatchGetPhotos", - "async": true, - "parameters": [ - { - "name": "photo_ids", - "type": "TYPE_STRING[]" - }, - { - "name": "view", - "type": ".google.streetview.publish.v1.PhotoView" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.streetview.publish.v1.BatchGetPhotosResponse", - "client": { - "shortName": "StreetViewPublishServiceClient", - "fullName": "google.streetview.publish.v1.StreetViewPublishServiceClient" - }, - "method": { - "shortName": "BatchGetPhotos", - "fullName": "google.streetview.publish.v1.StreetViewPublishService.BatchGetPhotos", - "service": { - "shortName": "StreetViewPublishService", - "fullName": "google.streetview.publish.v1.StreetViewPublishService" - } - } - } - }, - { - "regionTag": "streetviewpublish_v1_generated_StreetViewPublishService_ListPhotos_async", - "title": "StreetViewPublishService listPhotos Sample", - "origin": "API_DEFINITION", - "description": " Lists all the [Photos][google.streetview.publish.v1.Photo] that belong to the user. > Note: Recently created photos that are still being indexed are not returned in the response.", - "canonical": true, - "file": "street_view_publish_service.list_photos.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 88, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPhotos", - "fullName": "google.streetview.publish.v1.StreetViewPublishService.ListPhotos", - "async": true, - "parameters": [ - { - "name": "view", - "type": ".google.streetview.publish.v1.PhotoView" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "language_code", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.streetview.publish.v1.ListPhotosResponse", - "client": { - "shortName": "StreetViewPublishServiceClient", - "fullName": "google.streetview.publish.v1.StreetViewPublishServiceClient" - }, - "method": { - "shortName": "ListPhotos", - "fullName": "google.streetview.publish.v1.StreetViewPublishService.ListPhotos", - "service": { - "shortName": "StreetViewPublishService", - "fullName": "google.streetview.publish.v1.StreetViewPublishService" - } - } - } - }, - { - "regionTag": "streetviewpublish_v1_generated_StreetViewPublishService_UpdatePhoto_async", - "title": "StreetViewPublishService updatePhoto Sample", - "origin": "API_DEFINITION", - "description": " Updates the metadata of a [Photo][google.streetview.publish.v1.Photo], such as pose, place association, connections, etc. Changing the pixels of a photo is not supported. Only the fields specified in the [updateMask][google.streetview.publish.v1.UpdatePhotoRequest.update_mask] field are used. If `updateMask` is not present, the update applies to all fields. This method returns the following error codes: * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED] if the requesting user did not create the requested photo. * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT] if the request is malformed. * [google.rpc.Code.NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested photo does not exist. * [google.rpc.Code.UNAVAILABLE][google.rpc.Code.UNAVAILABLE] if the requested [Photo][google.streetview.publish.v1.Photo] is still being indexed.", - "canonical": true, - "file": "street_view_publish_service.update_photo.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 80, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdatePhoto", - "fullName": "google.streetview.publish.v1.StreetViewPublishService.UpdatePhoto", - "async": true, - "parameters": [ - { - "name": "photo", - "type": ".google.streetview.publish.v1.Photo" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".google.streetview.publish.v1.Photo", - "client": { - "shortName": "StreetViewPublishServiceClient", - "fullName": "google.streetview.publish.v1.StreetViewPublishServiceClient" - }, - "method": { - "shortName": "UpdatePhoto", - "fullName": "google.streetview.publish.v1.StreetViewPublishService.UpdatePhoto", - "service": { - "shortName": "StreetViewPublishService", - "fullName": "google.streetview.publish.v1.StreetViewPublishService" - } - } - } - }, - { - "regionTag": "streetviewpublish_v1_generated_StreetViewPublishService_BatchUpdatePhotos_async", - "title": "StreetViewPublishService batchUpdatePhotos Sample", - "origin": "API_DEFINITION", - "description": " Updates the metadata of [Photos][google.streetview.publish.v1.Photo], such as pose, place association, connections, etc. Changing the pixels of photos is not supported. Note that if [BatchUpdatePhotos][google.streetview.publish.v1.StreetViewPublishService.BatchUpdatePhotos] fails, either critical fields are missing or there is an authentication error. Even if [BatchUpdatePhotos][google.streetview.publish.v1.StreetViewPublishService.BatchUpdatePhotos] succeeds, individual photos in the batch may have failures. These failures are specified in each [PhotoResponse.status][google.streetview.publish.v1.PhotoResponse.status] in [BatchUpdatePhotosResponse.results][google.streetview.publish.v1.BatchUpdatePhotosResponse.results]. See [UpdatePhoto][google.streetview.publish.v1.StreetViewPublishService.UpdatePhoto] for specific failures that can occur per photo. Only the fields specified in [updateMask][google.streetview.publish.v1.UpdatePhotoRequest.update_mask] field are used. If `updateMask` is not present, the update applies to all fields. The number of [UpdatePhotoRequest][google.streetview.publish.v1.UpdatePhotoRequest] messages in a [BatchUpdatePhotosRequest][google.streetview.publish.v1.BatchUpdatePhotosRequest] must not exceed 20. > Note: To update [Pose.altitude][google.streetview.publish.v1.Pose.altitude], [Pose.latLngPair][google.streetview.publish.v1.Pose.lat_lng_pair] has to be filled as well. Otherwise, the request will fail.", - "canonical": true, - "file": "street_view_publish_service.batch_update_photos.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchUpdatePhotos", - "fullName": "google.streetview.publish.v1.StreetViewPublishService.BatchUpdatePhotos", - "async": true, - "parameters": [ - { - "name": "update_photo_requests", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".google.streetview.publish.v1.BatchUpdatePhotosResponse", - "client": { - "shortName": "StreetViewPublishServiceClient", - "fullName": "google.streetview.publish.v1.StreetViewPublishServiceClient" - }, - "method": { - "shortName": "BatchUpdatePhotos", - "fullName": "google.streetview.publish.v1.StreetViewPublishService.BatchUpdatePhotos", - "service": { - "shortName": "StreetViewPublishService", - "fullName": "google.streetview.publish.v1.StreetViewPublishService" - } - } - } - }, - { - "regionTag": "streetviewpublish_v1_generated_StreetViewPublishService_DeletePhoto_async", - "title": "StreetViewPublishService deletePhoto Sample", - "origin": "API_DEFINITION", - "description": " Deletes a [Photo][google.streetview.publish.v1.Photo] and its metadata. This method returns the following error codes: * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED] if the requesting user did not create the requested photo. * [google.rpc.Code.NOT_FOUND][google.rpc.Code.NOT_FOUND] if the photo ID does not exist.", - "canonical": true, - "file": "street_view_publish_service.delete_photo.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 53, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePhoto", - "fullName": "google.streetview.publish.v1.StreetViewPublishService.DeletePhoto", - "async": true, - "parameters": [ - { - "name": "photo_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "StreetViewPublishServiceClient", - "fullName": "google.streetview.publish.v1.StreetViewPublishServiceClient" - }, - "method": { - "shortName": "DeletePhoto", - "fullName": "google.streetview.publish.v1.StreetViewPublishService.DeletePhoto", - "service": { - "shortName": "StreetViewPublishService", - "fullName": "google.streetview.publish.v1.StreetViewPublishService" - } - } - } - }, - { - "regionTag": "streetviewpublish_v1_generated_StreetViewPublishService_BatchDeletePhotos_async", - "title": "StreetViewPublishService batchDeletePhotos Sample", - "origin": "API_DEFINITION", - "description": " Deletes a list of [Photos][google.streetview.publish.v1.Photo] and their metadata. Note that if [BatchDeletePhotos][google.streetview.publish.v1.StreetViewPublishService.BatchDeletePhotos] fails, either critical fields are missing or there is an authentication error. Even if [BatchDeletePhotos][google.streetview.publish.v1.StreetViewPublishService.BatchDeletePhotos] succeeds, individual photos in the batch may have failures. These failures are specified in each [PhotoResponse.status][google.streetview.publish.v1.PhotoResponse.status] in [BatchDeletePhotosResponse.results][google.streetview.publish.v1.BatchDeletePhotosResponse.status]. See [DeletePhoto][google.streetview.publish.v1.StreetViewPublishService.DeletePhoto] for specific failures that can occur per photo.", - "canonical": true, - "file": "street_view_publish_service.batch_delete_photos.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchDeletePhotos", - "fullName": "google.streetview.publish.v1.StreetViewPublishService.BatchDeletePhotos", - "async": true, - "parameters": [ - { - "name": "photo_ids", - "type": "TYPE_STRING[]" - } - ], - "resultType": ".google.streetview.publish.v1.BatchDeletePhotosResponse", - "client": { - "shortName": "StreetViewPublishServiceClient", - "fullName": "google.streetview.publish.v1.StreetViewPublishServiceClient" - }, - "method": { - "shortName": "BatchDeletePhotos", - "fullName": "google.streetview.publish.v1.StreetViewPublishService.BatchDeletePhotos", - "service": { - "shortName": "StreetViewPublishService", - "fullName": "google.streetview.publish.v1.StreetViewPublishService" - } - } - } - }, - { - "regionTag": "streetviewpublish_v1_generated_StreetViewPublishService_StartPhotoSequenceUpload_async", - "title": "StreetViewPublishService startPhotoSequenceUpload Sample", - "origin": "API_DEFINITION", - "description": " Creates an upload session to start uploading photo sequence data. The upload URL of the returned [UploadRef][google.streetview.publish.v1.UploadRef] is used to upload the data for the `photoSequence`. After the upload is complete, the [UploadRef][google.streetview.publish.v1.UploadRef] is used with [CreatePhotoSequence][google.streetview.publish.v1.StreetViewPublishService.CreatePhotoSequence] to create the [PhotoSequence][google.streetview.publish.v1.PhotoSequence] object entry.", - "canonical": true, - "file": "street_view_publish_service.start_photo_sequence_upload.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 48, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StartPhotoSequenceUpload", - "fullName": "google.streetview.publish.v1.StreetViewPublishService.StartPhotoSequenceUpload", - "async": true, - "parameters": [], - "resultType": ".google.streetview.publish.v1.UploadRef", - "client": { - "shortName": "StreetViewPublishServiceClient", - "fullName": "google.streetview.publish.v1.StreetViewPublishServiceClient" - }, - "method": { - "shortName": "StartPhotoSequenceUpload", - "fullName": "google.streetview.publish.v1.StreetViewPublishService.StartPhotoSequenceUpload", - "service": { - "shortName": "StreetViewPublishService", - "fullName": "google.streetview.publish.v1.StreetViewPublishService" - } - } - } - }, - { - "regionTag": "streetviewpublish_v1_generated_StreetViewPublishService_CreatePhotoSequence_async", - "title": "StreetViewPublishService createPhotoSequence Sample", - "origin": "API_DEFINITION", - "description": " After the client finishes uploading the [PhotoSequence][google.streetview.publish.v1.PhotoSequence] with the returned [UploadRef][google.streetview.publish.v1.UploadRef], [CreatePhotoSequence][google.streetview.publish.v1.StreetViewPublishService.CreatePhotoSequence] extracts a sequence of 360 photos from a video or Extensible Device Metadata (XDM, http://www.xdm.org/) to be published to Street View on Google Maps. `CreatePhotoSequence` returns an [Operation][google.longrunning.Operation], with the [PhotoSequence][google.streetview.publish.v1.PhotoSequence] Id set in the `Operation.name` field. This method returns the following error codes: * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT] if the request is malformed. * [google.rpc.Code.NOT_FOUND][google.rpc.Code.NOT_FOUND] if the upload reference does not exist.", - "canonical": true, - "file": "street_view_publish_service.create_photo_sequence.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 61, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreatePhotoSequence", - "fullName": "google.streetview.publish.v1.StreetViewPublishService.CreatePhotoSequence", - "async": true, - "parameters": [ - { - "name": "photo_sequence", - "type": ".google.streetview.publish.v1.PhotoSequence" - }, - { - "name": "input_type", - "type": ".google.streetview.publish.v1.CreatePhotoSequenceRequest.InputType" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "StreetViewPublishServiceClient", - "fullName": "google.streetview.publish.v1.StreetViewPublishServiceClient" - }, - "method": { - "shortName": "CreatePhotoSequence", - "fullName": "google.streetview.publish.v1.StreetViewPublishService.CreatePhotoSequence", - "service": { - "shortName": "StreetViewPublishService", - "fullName": "google.streetview.publish.v1.StreetViewPublishService" - } - } - } - }, - { - "regionTag": "streetviewpublish_v1_generated_StreetViewPublishService_GetPhotoSequence_async", - "title": "StreetViewPublishService getPhotoSequence Sample", - "origin": "API_DEFINITION", - "description": " Gets the metadata of the specified [PhotoSequence][google.streetview.publish.v1.PhotoSequence] via the [Operation][google.longrunning.Operation] interface. This method returns the following three types of responses: * `Operation.done` = false, if the processing of [PhotoSequence][google.streetview.publish.v1.PhotoSequence] is not finished yet. * `Operation.done` = true and `Operation.error` is populated, if there was an error in processing. * `Operation.done` = true and `Operation.response` is poulated, which contains a [PhotoSequence][google.streetview.publish.v1.PhotoSequence] message. This method returns the following error codes: * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED] if the requesting user did not create the requested [PhotoSequence][google.streetview.publish.v1.PhotoSequence]. * [google.rpc.Code.NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested [PhotoSequence][google.streetview.publish.v1.PhotoSequence] does not exist.", - "canonical": true, - "file": "street_view_publish_service.get_photo_sequence.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 67, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetPhotoSequence", - "fullName": "google.streetview.publish.v1.StreetViewPublishService.GetPhotoSequence", - "async": true, - "parameters": [ - { - "name": "sequence_id", - "type": "TYPE_STRING" - }, - { - "name": "view", - "type": ".google.streetview.publish.v1.PhotoView" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.longrunning.Operation", - "client": { - "shortName": "StreetViewPublishServiceClient", - "fullName": "google.streetview.publish.v1.StreetViewPublishServiceClient" - }, - "method": { - "shortName": "GetPhotoSequence", - "fullName": "google.streetview.publish.v1.StreetViewPublishService.GetPhotoSequence", - "service": { - "shortName": "StreetViewPublishService", - "fullName": "google.streetview.publish.v1.StreetViewPublishService" - } - } - } - }, - { - "regionTag": "streetviewpublish_v1_generated_StreetViewPublishService_ListPhotoSequences_async", - "title": "StreetViewPublishService listPhotoSequences Sample", - "origin": "API_DEFINITION", - "description": " Lists all the [PhotoSequences][google.streetview.publish.v1.PhotoSequence] that belong to the user, in descending CreatePhotoSequence timestamp order.", - "canonical": true, - "file": "street_view_publish_service.list_photo_sequences.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 78, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListPhotoSequences", - "fullName": "google.streetview.publish.v1.StreetViewPublishService.ListPhotoSequences", - "async": true, - "parameters": [ - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.streetview.publish.v1.ListPhotoSequencesResponse", - "client": { - "shortName": "StreetViewPublishServiceClient", - "fullName": "google.streetview.publish.v1.StreetViewPublishServiceClient" - }, - "method": { - "shortName": "ListPhotoSequences", - "fullName": "google.streetview.publish.v1.StreetViewPublishService.ListPhotoSequences", - "service": { - "shortName": "StreetViewPublishService", - "fullName": "google.streetview.publish.v1.StreetViewPublishService" - } - } - } - }, - { - "regionTag": "streetviewpublish_v1_generated_StreetViewPublishService_DeletePhotoSequence_async", - "title": "StreetViewPublishService deletePhotoSequence Sample", - "origin": "API_DEFINITION", - "description": " Deletes a [PhotoSequence][google.streetview.publish.v1.PhotoSequence] and its metadata. This method returns the following error codes: * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED] if the requesting user did not create the requested photo sequence. * [google.rpc.Code.NOT_FOUND][google.rpc.Code.NOT_FOUND] if the photo sequence ID does not exist. * [google.rpc.Code.FAILED_PRECONDITION][google.rpc.Code.FAILED_PRECONDITION] if the photo sequence ID is not yet finished processing.", - "canonical": true, - "file": "street_view_publish_service.delete_photo_sequence.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeletePhotoSequence", - "fullName": "google.streetview.publish.v1.StreetViewPublishService.DeletePhotoSequence", - "async": true, - "parameters": [ - { - "name": "sequence_id", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "StreetViewPublishServiceClient", - "fullName": "google.streetview.publish.v1.StreetViewPublishServiceClient" - }, - "method": { - "shortName": "DeletePhotoSequence", - "fullName": "google.streetview.publish.v1.StreetViewPublishService.DeletePhotoSequence", - "service": { - "shortName": "StreetViewPublishService", - "fullName": "google.streetview.publish.v1.StreetViewPublishService" - } - } - } - } - ] -} diff --git a/packages/grafeas/samples/generated/v1/snippet_metadata_grafeas.v1.json b/packages/grafeas/samples/generated/v1/snippet_metadata_grafeas.v1.json deleted file mode 100644 index 481d4bd519a4..000000000000 --- a/packages/grafeas/samples/generated/v1/snippet_metadata_grafeas.v1.json +++ /dev/null @@ -1,647 +0,0 @@ -{ - "clientLibrary": { - "name": "nodejs-grafeas", - "version": "6.1.1", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "grafeas.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "containeranalysis_v1_generated_Grafeas_GetOccurrence_async", - "title": "Grafeas getOccurrence Sample", - "origin": "API_DEFINITION", - "description": " Gets the specified occurrence.", - "canonical": true, - "file": "grafeas.get_occurrence.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetOccurrence", - "fullName": "grafeas.v1.Grafeas.GetOccurrence", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".grafeas.v1.Occurrence", - "client": { - "shortName": "GrafeasClient", - "fullName": "grafeas.v1.GrafeasClient" - }, - "method": { - "shortName": "GetOccurrence", - "fullName": "grafeas.v1.Grafeas.GetOccurrence", - "service": { - "shortName": "Grafeas", - "fullName": "grafeas.v1.Grafeas" - } - } - } - }, - { - "regionTag": "containeranalysis_v1_generated_Grafeas_ListOccurrences_async", - "title": "Grafeas listOccurrences Sample", - "origin": "API_DEFINITION", - "description": " Lists occurrences for the specified project.", - "canonical": true, - "file": "grafeas.list_occurrences.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListOccurrences", - "fullName": "grafeas.v1.Grafeas.ListOccurrences", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".grafeas.v1.ListOccurrencesResponse", - "client": { - "shortName": "GrafeasClient", - "fullName": "grafeas.v1.GrafeasClient" - }, - "method": { - "shortName": "ListOccurrences", - "fullName": "grafeas.v1.Grafeas.ListOccurrences", - "service": { - "shortName": "Grafeas", - "fullName": "grafeas.v1.Grafeas" - } - } - } - }, - { - "regionTag": "containeranalysis_v1_generated_Grafeas_DeleteOccurrence_async", - "title": "Grafeas deleteOccurrence Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified occurrence. For example, use this method to delete an occurrence when the occurrence is no longer applicable for the given resource.", - "canonical": true, - "file": "grafeas.delete_occurrence.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteOccurrence", - "fullName": "grafeas.v1.Grafeas.DeleteOccurrence", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "GrafeasClient", - "fullName": "grafeas.v1.GrafeasClient" - }, - "method": { - "shortName": "DeleteOccurrence", - "fullName": "grafeas.v1.Grafeas.DeleteOccurrence", - "service": { - "shortName": "Grafeas", - "fullName": "grafeas.v1.Grafeas" - } - } - } - }, - { - "regionTag": "containeranalysis_v1_generated_Grafeas_CreateOccurrence_async", - "title": "Grafeas createOccurrence Sample", - "origin": "API_DEFINITION", - "description": " Creates a new occurrence.", - "canonical": true, - "file": "grafeas.create_occurrence.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateOccurrence", - "fullName": "grafeas.v1.Grafeas.CreateOccurrence", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "occurrence", - "type": ".grafeas.v1.Occurrence" - } - ], - "resultType": ".grafeas.v1.Occurrence", - "client": { - "shortName": "GrafeasClient", - "fullName": "grafeas.v1.GrafeasClient" - }, - "method": { - "shortName": "CreateOccurrence", - "fullName": "grafeas.v1.Grafeas.CreateOccurrence", - "service": { - "shortName": "Grafeas", - "fullName": "grafeas.v1.Grafeas" - } - } - } - }, - { - "regionTag": "containeranalysis_v1_generated_Grafeas_BatchCreateOccurrences_async", - "title": "Grafeas batchCreateOccurrences Sample", - "origin": "API_DEFINITION", - "description": " Creates new occurrences in batch.", - "canonical": true, - "file": "grafeas.batch_create_occurrences.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCreateOccurrences", - "fullName": "grafeas.v1.Grafeas.BatchCreateOccurrences", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "occurrences", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".grafeas.v1.BatchCreateOccurrencesResponse", - "client": { - "shortName": "GrafeasClient", - "fullName": "grafeas.v1.GrafeasClient" - }, - "method": { - "shortName": "BatchCreateOccurrences", - "fullName": "grafeas.v1.Grafeas.BatchCreateOccurrences", - "service": { - "shortName": "Grafeas", - "fullName": "grafeas.v1.Grafeas" - } - } - } - }, - { - "regionTag": "containeranalysis_v1_generated_Grafeas_UpdateOccurrence_async", - "title": "Grafeas updateOccurrence Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified occurrence.", - "canonical": true, - "file": "grafeas.update_occurrence.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateOccurrence", - "fullName": "grafeas.v1.Grafeas.UpdateOccurrence", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "occurrence", - "type": ".grafeas.v1.Occurrence" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".grafeas.v1.Occurrence", - "client": { - "shortName": "GrafeasClient", - "fullName": "grafeas.v1.GrafeasClient" - }, - "method": { - "shortName": "UpdateOccurrence", - "fullName": "grafeas.v1.Grafeas.UpdateOccurrence", - "service": { - "shortName": "Grafeas", - "fullName": "grafeas.v1.Grafeas" - } - } - } - }, - { - "regionTag": "containeranalysis_v1_generated_Grafeas_GetOccurrenceNote_async", - "title": "Grafeas getOccurrenceNote Sample", - "origin": "API_DEFINITION", - "description": " Gets the note attached to the specified occurrence. Consumer projects can use this method to get a note that belongs to a provider project.", - "canonical": true, - "file": "grafeas.get_occurrence_note.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetOccurrenceNote", - "fullName": "grafeas.v1.Grafeas.GetOccurrenceNote", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".grafeas.v1.Note", - "client": { - "shortName": "GrafeasClient", - "fullName": "grafeas.v1.GrafeasClient" - }, - "method": { - "shortName": "GetOccurrenceNote", - "fullName": "grafeas.v1.Grafeas.GetOccurrenceNote", - "service": { - "shortName": "Grafeas", - "fullName": "grafeas.v1.Grafeas" - } - } - } - }, - { - "regionTag": "containeranalysis_v1_generated_Grafeas_GetNote_async", - "title": "Grafeas getNote Sample", - "origin": "API_DEFINITION", - "description": " Gets the specified note.", - "canonical": true, - "file": "grafeas.get_note.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetNote", - "fullName": "grafeas.v1.Grafeas.GetNote", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".grafeas.v1.Note", - "client": { - "shortName": "GrafeasClient", - "fullName": "grafeas.v1.GrafeasClient" - }, - "method": { - "shortName": "GetNote", - "fullName": "grafeas.v1.Grafeas.GetNote", - "service": { - "shortName": "Grafeas", - "fullName": "grafeas.v1.Grafeas" - } - } - } - }, - { - "regionTag": "containeranalysis_v1_generated_Grafeas_ListNotes_async", - "title": "Grafeas listNotes Sample", - "origin": "API_DEFINITION", - "description": " Lists notes for the specified project.", - "canonical": true, - "file": "grafeas.list_notes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 69, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListNotes", - "fullName": "grafeas.v1.Grafeas.ListNotes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".grafeas.v1.ListNotesResponse", - "client": { - "shortName": "GrafeasClient", - "fullName": "grafeas.v1.GrafeasClient" - }, - "method": { - "shortName": "ListNotes", - "fullName": "grafeas.v1.Grafeas.ListNotes", - "service": { - "shortName": "Grafeas", - "fullName": "grafeas.v1.Grafeas" - } - } - } - }, - { - "regionTag": "containeranalysis_v1_generated_Grafeas_DeleteNote_async", - "title": "Grafeas deleteNote Sample", - "origin": "API_DEFINITION", - "description": " Deletes the specified note.", - "canonical": true, - "file": "grafeas.delete_note.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteNote", - "fullName": "grafeas.v1.Grafeas.DeleteNote", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "GrafeasClient", - "fullName": "grafeas.v1.GrafeasClient" - }, - "method": { - "shortName": "DeleteNote", - "fullName": "grafeas.v1.Grafeas.DeleteNote", - "service": { - "shortName": "Grafeas", - "fullName": "grafeas.v1.Grafeas" - } - } - } - }, - { - "regionTag": "containeranalysis_v1_generated_Grafeas_CreateNote_async", - "title": "Grafeas createNote Sample", - "origin": "API_DEFINITION", - "description": " Creates a new note.", - "canonical": true, - "file": "grafeas.create_note.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 64, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateNote", - "fullName": "grafeas.v1.Grafeas.CreateNote", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "note_id", - "type": "TYPE_STRING" - }, - { - "name": "note", - "type": ".grafeas.v1.Note" - } - ], - "resultType": ".grafeas.v1.Note", - "client": { - "shortName": "GrafeasClient", - "fullName": "grafeas.v1.GrafeasClient" - }, - "method": { - "shortName": "CreateNote", - "fullName": "grafeas.v1.Grafeas.CreateNote", - "service": { - "shortName": "Grafeas", - "fullName": "grafeas.v1.Grafeas" - } - } - } - }, - { - "regionTag": "containeranalysis_v1_generated_Grafeas_BatchCreateNotes_async", - "title": "Grafeas batchCreateNotes Sample", - "origin": "API_DEFINITION", - "description": " Creates new notes in batch.", - "canonical": true, - "file": "grafeas.batch_create_notes.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 59, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "BatchCreateNotes", - "fullName": "grafeas.v1.Grafeas.BatchCreateNotes", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "notes", - "type": "TYPE_MESSAGE[]" - } - ], - "resultType": ".grafeas.v1.BatchCreateNotesResponse", - "client": { - "shortName": "GrafeasClient", - "fullName": "grafeas.v1.GrafeasClient" - }, - "method": { - "shortName": "BatchCreateNotes", - "fullName": "grafeas.v1.Grafeas.BatchCreateNotes", - "service": { - "shortName": "Grafeas", - "fullName": "grafeas.v1.Grafeas" - } - } - } - }, - { - "regionTag": "containeranalysis_v1_generated_Grafeas_UpdateNote_async", - "title": "Grafeas updateNote Sample", - "origin": "API_DEFINITION", - "description": " Updates the specified note.", - "canonical": true, - "file": "grafeas.update_note.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateNote", - "fullName": "grafeas.v1.Grafeas.UpdateNote", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "note", - "type": ".grafeas.v1.Note" - }, - { - "name": "update_mask", - "type": ".google.protobuf.FieldMask" - } - ], - "resultType": ".grafeas.v1.Note", - "client": { - "shortName": "GrafeasClient", - "fullName": "grafeas.v1.GrafeasClient" - }, - "method": { - "shortName": "UpdateNote", - "fullName": "grafeas.v1.Grafeas.UpdateNote", - "service": { - "shortName": "Grafeas", - "fullName": "grafeas.v1.Grafeas" - } - } - } - }, - { - "regionTag": "containeranalysis_v1_generated_Grafeas_ListNoteOccurrences_async", - "title": "Grafeas listNoteOccurrences Sample", - "origin": "API_DEFINITION", - "description": " Lists occurrences referencing the specified note. Provider projects can use this method to get all occurrences across consumer projects referencing the specified note.", - "canonical": true, - "file": "grafeas.list_note_occurrences.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 68, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListNoteOccurrences", - "fullName": "grafeas.v1.Grafeas.ListNoteOccurrences", - "async": true, - "parameters": [ - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".grafeas.v1.ListNoteOccurrencesResponse", - "client": { - "shortName": "GrafeasClient", - "fullName": "grafeas.v1.GrafeasClient" - }, - "method": { - "shortName": "ListNoteOccurrences", - "fullName": "grafeas.v1.Grafeas.ListNoteOccurrences", - "service": { - "shortName": "Grafeas", - "fullName": "grafeas.v1.Grafeas" - } - } - } - } - ] -}